Files
sociology_app/unpackage/dist/build/app-plus/pages/component/map/map.js
2025-03-17 11:31:25 +08:00

2 lines
192 KiB
JavaScript

/*! For license information please see map.js.LICENSE.txt */
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.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 r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));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=77)}([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},function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s,c,u){var l,d="function"==typeof e?e.options:e;if(c){d.components||(d.components={});var f=Object.prototype.hasOwnProperty;for(var p in c)f.call(c,p)&&!f.call(d.components,p)&&(d.components[p]=c[p])}if(u&&("function"==typeof u.beforeCreate&&(u.beforeCreate=[u.beforeCreate]),(u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(d.mixins||(d.mixins=[])).push(u)),t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),o&&(d._scopeId="data-v-"+o),a?(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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(d.functional){d._injectStyles=l;var h=d.render;d.render=function(e,t){return l.call(t),h(e,t)}}else{var g=d.beforeCreate;d.beforeCreate=g?[].concat(g,l):[l]}return{exports:e,options:d}}n.d(t,"a",(function(){return i}))},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},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},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(6);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},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<t;n++)i[n]=e[n];return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(8);e.exports=function(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(0).default,r=n(29);e.exports=function(e){var t=r(e,"string");return"symbol"==i(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(2);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(0).default,r=n(4);e.exports=function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},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},function(e,t,n){var i=n(8);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.r(t),t.default={appid:"__UNI__5D0ED80"}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){(function(e){var t=n(9),i=n(10),r=n(3),o=n(11),a=n(12),s=n(0),c=n(7);function u(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,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return i(this,n)}}var l=uni.getSystemInfoSync(),d="__UNI__5D0ED80",f=function(e,t){var n=uni.getStorageSync("$$STAT__DBDATA:"+d)||{};n||(n={}),n[e]=t,uni.setStorageSync("$$STAT__DBDATA:"+d,n)},p=function(e){var t=uni.getStorageSync("$$STAT__DBDATA:"+d)||{};if(!t[e]){var n=uni.getStorageSync("$$STAT__DBDATA:"+d);if(n||(n={}),!n[e])return;t[e]=n[e]}return t[e]},h=function(e){var t=uni.getStorageSync("$$STAT__DBDATA:"+d)||{};(t[e]||(t=uni.getStorageSync("$$STAT__DBDATA:"+d))[e])&&(delete t[e],uni.setStorageSync("$$STAT__DBDATA:"+d,t))},g={version:"2",enable:!0},m={},v=n(35).default.pages;for(var _ in v){var y,b=v[_],w=b.navigationBarTitleText||b.defaultTitle||(null===(y=b.navigationBar)||void 0===y?void 0:y.titleText)||"";w&&(m[_]=w)}function x(){var e="";if("n"===P()){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 k,T,S={appid:"__UNI__5D0ED80"},P=function(){var e,t=(c(e={app:"n","app-plus":"n",h5:"h5","mp-weixin":"wx"},["y","a","p","mp-ali"].reverse().join(""),"ali"),c(e,"mp-baidu","bd"),c(e,"mp-toutiao","tt"),c(e,"mp-qq","qq"),c(e,"quickapp-native","qn"),c(e,"mp-kuaishou","ks"),c(e,"mp-lark","lark"),c(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"]},I=function(e){var t=P(),n="";return e||("wx"===t&&(n=uni.getLaunchOptionsSync().scene),n)},A=function(e){var t=e||D();if("bd"===P()){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},O=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||""},D=function(){var e=getCurrentPages(),t=e[e.length-1];return t?t.$vm:null},C=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},R=function(e){var t=[],n=[],i=[],r=function(r){e[r].forEach((function(e){var o;o=e,0===r?t.push(o):3===r?i.push(o):n.push(o)}))};for(var o in e)r(o);return t.push.apply(t,n.concat(i)),JSON.stringify(t)},E=function(e){return m&&m[e]||""},L=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})}})},N=function(){if(g.collectItems){var e=g.collectItems.uniStatPageLog;return void 0===e||("boolean"!=typeof e||e)}return!0},U=function(){return parseInt((new Date).getTime()/1e3)},B=function(){var e=p("__first__visit__time"),t=0;return e?t=e:(t=U(),f("__first__visit__time",t),h("__last__visit__time")),t},j=0,M=0,q=function(){return j=U(),f("__page__residence__time",j),j},F=function(){var e=p("__total__visit__count"),t=1;return e&&(t=e,t++),f("__total__visit__count",t),t},V=function(){var e=U();return f("__first_time",e)},$=function(e){var t=0,n=p("__first_time"),i=U();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}},K=function(e){var t=g.reportInterval;if(0===Number(t))return 0;return/(^[1-9]\d*$)/.test(t=t||e)?Number(t):e}(10),H={uuid:l.deviceId||x(),ak:S.appid,p:"android"===l.platform?"a":"i",ut:P(),mpn:(T="","wx"!==P()&&"qq"!==P()||uni.canIUse("getAccountInfoSync")&&(T=uni.getAccountInfoSync().miniProgram.appId||""),P(),T),usv:"4.15",v:"n"===P()?plus.runtime.version:"",ch:(k="","n"===P()&&(k=plus.runtime.channel),k),cn:"",pn:"",ct:"",t:U(),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},G=function(n){"use strict";t(r,n);var i=u(r);function r(){return o(this,r),i.call(this)}return a(r,[{key:"pushEvent",value:function(e){var t=this,n=function(){if(g.collectItems){var e=g.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){q(),this.__licationShow=!0,f("__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"===C(e))&&(N()&&this.pageShow(e));"app"===C(e)&&this.appShow()}},{key:"hide",value:function(e){(this.self=e,"page"===C(e))&&(N()&&this.pageHide(e));"app"===C(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 r);var t,n,i,o,a,s,c,u=(t=e.config,i=(n={}||{}).spaceId,a=n.clientSecret,s=n.secretKey,c=n.secretId,-1!==["tcb","tencent","aliyun","alipay"].indexOf(o=n.provider)&&("aliyun"===o&&i&&a||("tcb"===o||"tencent"===o)&&i||"alipay"===o&&i&&s&&c)?n:t&&t.spaceId?t:null);if(!uni.__stat_uniCloud_space)if(u&&0!==Object.keys(u).length){var l={provider:u.provider,spaceId:u.spaceId,clientSecret:u.clientSecret};u.endpoint&&(l.endpoint=u.endpoint),"alipay"===u.provider&&(l.secretKey=u.secretKey,l.accessKey=u.accessKey||u.secretId,l.spaceAppId=u.spaceAppId||u.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}}]),r}(function(){"use strict";function e(){o(this,e),this.self="",this.__licationShow=!1,this.__licationHide=!1,this.statData=H,this._navigationBarTitle={config:"",page:"",report:"",lt:""},this._query={},"function"==typeof uni.addInterceptor&&(this.addInterceptorInit(),this.interceptLogin(),this.interceptShare(!0),this.interceptRequestPayment())}return a(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=D()),this.__licationHide=!0;var n=$(),i=O(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=O(e),n=A(e);if(this._navigationBarTitle.config=E(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=O(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=E(e.path);var n,i,r,o=e.query&&"{}"!==JSON.stringify(e.query)?"?"+JSON.stringify(e.query):"",a=(n=p("__last__visit__time"),i=0,n&&(i=n),f("__last__visit__time",U()),i);if(0!==a||!a){var s=function(e){var t="";if("n"===P()){try{t=plus.device.uuid}catch(e){t=""}return t}return l.deviceId||x()}();(r=p("is_handle_device_id")||"",f("is_handle_device_id","1"),"1"===r)||(this.statData.odid=s)}Object.assign(this.statData,{lt:"1",url:e.path+o||"",t:U(),sc:I(e.scene),fvts:B(),lvts:a,tvc:F(),cst:e.cst||1}),"n"===P()?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 r={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:U()};this.request(r)}},{key:"sendHideRequest",value:function(e,t){var n=e.urlref,i=e.urlref_ts,r={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:U()};this.request(r,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,r=void 0===i?"":i,o="";try{o=A()}catch(e){var a=p("__launch_options");o=a.path}this._navigationBarTitle.config=E(o),this._navigationBarTitle.lt="21";var c={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"21",ut:this.statData.ut,url:o,ch:this.statData.ch,e_n:n,e_v:"object"===s(r)?JSON.stringify(r):r.toString(),usv:this.statData.usv,t:U()};this.request(c)}},{key:"sendPushRequest",value:function(e,t){var n=this,i=U(),r={lt:"101",cid:t,t:i,ut:this.statData.ut};var o={usv:"4.15",t:i,requests:R({101:[r]})};"n"!==P()||"a"!==this.statData.p?this.sendRequest(o):setTimeout((function(){n.sendRequest(o)}),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;S.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=U(),r=this._navigationBarTitle;Object.assign(e,{ttn:r.page,ttpj:r.config,ttc:r.report});var o=p("__UNI__STAT__DATA")||{};if(o[e.lt]||(o[e.lt]=[]),o[e.lt].push(e),f("__UNI__STAT__DATA",o),!((M=U(),j=p("__page__residence__time"),M-j)<K)||t){q();var a={usv:"4.15",t:i,requests:R(o)};h("__UNI__STAT__DATA"),"n"!==P()||"a"!==this.statData.p?this.sendRequest(a):setTimeout((function(){n.sendRequest(a)}),200)}}},{key:"getIsReportData",value:function(){return new Promise((function(e,t){var n="",i=(new Date).getTime(),r=1;try{n=uni.getStorageSync("Report_Data_Time"),r=uni.getStorageSync("Report_Status")}catch(e){n="",r=1}""!==r?(1===r&&e(),n||(uni.setStorageSync("Report_Data_Time",i),n=i),i-n>864e5&&L((function(e){var t=e.enable;uni.setStorageSync("Report_Data_Time",i),uni.setStorageSync("Report_Status",t)}))):L((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 r in t)n[t[r]]=e[t[r]],i+=t[r]+"="+e[t[r]]+"&";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(),W=!1,z={onLaunch:function(e){G.launch(e,this),G.pushEvent(e)},onLoad:function(e){if(G.load(e,this),this.$scope&&this.$scope.onShareAppMessage){var t=this.$scope.onShareAppMessage;this.$scope.onShareAppMessage=function(e){return G.interceptShare(!1),t.call(this,e)}}},onShow:function(){W=!1,G.show(this)},onHide:function(){W=!0,G.hide(this)},onUnload:function(){W?W=!1:G.hide(this)},onError:function(e){G.error(e)}};function J(){var e=n(36);(e.default||e).mixin(z),uni.report=function(e,t){G.sendEvent(e,t)}}J()}).call(this,n(16).default)},function(e,t,n){"use strict";(function(e){var i=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(18)),o=i(n(4)),a=i(n(20)),s=i(n(0)),c=i(n(24)),u=i(n(28)),l=i(n(7)),d=i(n(9)),f=i(n(10)),p=i(n(3)),h=i(n(30)),g=i(n(11)),m=i(n(12)),v=i(n(34));function _(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){(0,l.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(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,i=(0,p.default)(e);if(t){var r=(0,p.default)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return(0,f.default)(this,n)}}function k(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var T=k((function(e,t){var n;e.exports=n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},r=i.lib={},o=r.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,r=e.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[i+o>>>2]|=a<<24-(i+o)%4*8}else for(o=0;o<r;o+=4)t[i+o>>>2]=n[o>>>2];return this.sigBytes+=r,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=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,i=[],r=function(t){t=t;var n=987654321,i=4294967295;return function(){var r=((n=36969*(65535&n)+(n>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return r/=4294967296,(r+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=r(4294967296*(n||e.random()));n=987654071*s(),i.push(4294967296*s()|0)}return new a.init(i,t)}}),s=i.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r++){var o=t[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r++){var o=t[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},d=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.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,r=n.sigBytes,o=this.blockSize,s=r/(4*o),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,u=e.min(4*c,r);if(c){for(var l=0;l<c;l+=o)this._doProcessBlock(i,l);var d=i.splice(0,c);n.sigBytes-=u}return new a.init(d,u)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=d.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}});var f=i.algo={};return i}(Math)})),S=(k((function(e,t){var n;e.exports=(n=T,function(e){var t=n,i=t.lib,r=i.WordArray,o=i.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,r=e[i];e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],p=e[t+2],h=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],_=e[t+7],y=e[t+8],b=e[t+9],w=e[t+10],x=e[t+11],k=e[t+12],T=e[t+13],S=e[t+14],P=e[t+15],I=o[0],A=o[1],O=o[2],D=o[3];I=u(I,A,O,D,a,7,s[0]),D=u(D,I,A,O,c,12,s[1]),O=u(O,D,I,A,p,17,s[2]),A=u(A,O,D,I,h,22,s[3]),I=u(I,A,O,D,g,7,s[4]),D=u(D,I,A,O,m,12,s[5]),O=u(O,D,I,A,v,17,s[6]),A=u(A,O,D,I,_,22,s[7]),I=u(I,A,O,D,y,7,s[8]),D=u(D,I,A,O,b,12,s[9]),O=u(O,D,I,A,w,17,s[10]),A=u(A,O,D,I,x,22,s[11]),I=u(I,A,O,D,k,7,s[12]),D=u(D,I,A,O,T,12,s[13]),O=u(O,D,I,A,S,17,s[14]),I=l(I,A=u(A,O,D,I,P,22,s[15]),O,D,c,5,s[16]),D=l(D,I,A,O,v,9,s[17]),O=l(O,D,I,A,x,14,s[18]),A=l(A,O,D,I,a,20,s[19]),I=l(I,A,O,D,m,5,s[20]),D=l(D,I,A,O,w,9,s[21]),O=l(O,D,I,A,P,14,s[22]),A=l(A,O,D,I,g,20,s[23]),I=l(I,A,O,D,b,5,s[24]),D=l(D,I,A,O,S,9,s[25]),O=l(O,D,I,A,h,14,s[26]),A=l(A,O,D,I,y,20,s[27]),I=l(I,A,O,D,T,5,s[28]),D=l(D,I,A,O,p,9,s[29]),O=l(O,D,I,A,_,14,s[30]),I=d(I,A=l(A,O,D,I,k,20,s[31]),O,D,m,4,s[32]),D=d(D,I,A,O,y,11,s[33]),O=d(O,D,I,A,x,16,s[34]),A=d(A,O,D,I,S,23,s[35]),I=d(I,A,O,D,c,4,s[36]),D=d(D,I,A,O,g,11,s[37]),O=d(O,D,I,A,_,16,s[38]),A=d(A,O,D,I,w,23,s[39]),I=d(I,A,O,D,T,4,s[40]),D=d(D,I,A,O,a,11,s[41]),O=d(O,D,I,A,h,16,s[42]),A=d(A,O,D,I,v,23,s[43]),I=d(I,A,O,D,b,4,s[44]),D=d(D,I,A,O,k,11,s[45]),O=d(O,D,I,A,P,16,s[46]),I=f(I,A=d(A,O,D,I,p,23,s[47]),O,D,a,6,s[48]),D=f(D,I,A,O,_,10,s[49]),O=f(O,D,I,A,S,15,s[50]),A=f(A,O,D,I,m,21,s[51]),I=f(I,A,O,D,k,6,s[52]),D=f(D,I,A,O,h,10,s[53]),O=f(O,D,I,A,w,15,s[54]),A=f(A,O,D,I,c,21,s[55]),I=f(I,A,O,D,y,6,s[56]),D=f(D,I,A,O,P,10,s[57]),O=f(O,D,I,A,v,15,s[58]),A=f(A,O,D,I,T,21,s[59]),I=f(I,A,O,D,g,6,s[60]),D=f(D,I,A,O,x,10,s[61]),O=f(O,D,I,A,p,15,s[62]),A=f(A,O,D,I,b,21,s[63]),o[0]=o[0]+I|0,o[1]=o[1]+A|0,o[2]=o[2]+O|0,o[3]=o[3]+D|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var o=e.floor(i/4294967296),a=i;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,i,r,o,a){var s=e+(t&n|~t&i)+r+a;return(s<<o|s>>>32-o)+t}function l(e,t,n,i,r,o,a){var s=e+(t&i|n&~i)+r+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,i,r,o,a){var s=e+(t^n^i)+r+a;return(s<<o|s>>>32-o)+t}function f(e,t,n,i,r,o,a){var s=e+(n^(t|~i))+r+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)})),k((function(e,t){var n;e.exports=(n=T,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,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,c=a.words,u=0;u<n;u++)s[u]^=1549556828,c[u]^=909522486;o.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}())})),k((function(e,t){e.exports=T.HmacMD5}))),P=k((function(e,t){e.exports=T.enc.Utf8})),I=k((function(e,t){var n;e.exports=(n=T,function(){var e=n,t=e.lib.WordArray;function i(e,n,i){for(var r=[],o=0,a=0;a<n;a++)if(a%4){var s=i[e.charCodeAt(a-1)]<<a%4*2,c=i[e.charCodeAt(a)]>>>6-a%4*2;r[o>>>2]|=(s|c)<<24-o%4*8,o++}return t.create(r,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var r=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)r.push(i.charAt(a>>>6*(3-s)&63));var c=i.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o<n.length;o++)r[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return i(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)})),A="FUNCTION",O="OBJECT",D="pending",C="fulfilled",R="rejected";function E(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function L(e){return"object"===E(e)}function N(e){return"function"==typeof e}function U(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}var B="REJECTED",j="NOT_PENDING",M=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,i=t.retryRule,r=void 0===i?B:i;(0,g.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=r}return(0,m.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case B:return this.status===R;case j:return this.status!==D}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=D,this.promise=this.createPromise().then((function(t){return e.status=C,Promise.resolve(t)}),(function(t){return e.status=R,Promise.reject(t)})),this.promise):this.promise}}]),e}();function q(e){return e&&"string"==typeof e?JSON.parse(e):e}var F=q([]),V="app",$=(q(void 0),q([{provider:"aliyun",spaceName:"nuttyreading",spaceId:"mp-3614b80b-2d75-4462-a481-4998f8187274",clientSecret:"ogncD4XunyyFxHlbDFZ/Ww==",endpoint:"https://api.next.bspapp.com"}])||[]);try{(n(13).default||n(13)).appid}catch(ke){}var K={};function H(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=K,n=e,Object.prototype.hasOwnProperty.call(t,n)||(K[e]=i),K[e]}"app"===V&&(K=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});var G=["invoke","success","fail","complete"],W=H("_globalUniCloudInterceptor");function z(e,t){W[e]||(W[e]={}),L(t)&&Object.keys(t).forEach((function(n){G.indexOf(n)>-1&&function(e,t,n){var i=W[e][t];i||(i=W[e][t]=[]),-1===i.indexOf(n)&&N(n)&&i.push(n)}(e,n,t[n])}))}function J(e,t){W[e]||(W[e]={}),L(t)?Object.keys(t).forEach((function(n){G.indexOf(n)>-1&&function(e,t,n){var i=W[e][t];if(i){var r=i.indexOf(n);r>-1&&i.splice(r,1)}}(e,n,t[n])})):delete W[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 W[e]&&W[e][t]||[]}function X(e){z("callObject",e)}var Z=H("_globalUniCloudListener"),ee="response",te="needLogin",ne="refreshToken",ie="clientdb",re="cloudfunction",oe="cloudobject";function ae(e){return Z[e]||(Z[e]=[]),Z[e]}function se(e,t){var n=ae(e);n.includes(t)||n.push(t)}function ce(e,t){var n=ae(e),i=n.indexOf(t);-1!==i&&n.splice(i,1)}function ue(e,t){for(var n=ae(e),i=0;i<n.length;i++)(0,n[i])(t)}var le,de=!1;function fe(){return le||(le=new Promise((function(e){de&&e(),function t(){if("function"==typeof getCurrentPages){var n=getCurrentPages();n&&n[0]&&(de=!0,e())}de||setTimeout((function(){t()}),30)}()})))}function pe(e){var t={};for(var n in e){var i=e[n];N(i)&&(t[n]=U(i))}return t}var he,ge,me=function(e){(0,d.default)(n,e);var t=x(n);function n(e){var i;return(0,g.default)(this,n),(i=t.call(this,e.message)).errMsg=e.message||e.errMsg||"unknown system error",i.code=i.errCode=e.code||e.errCode||"SYSTEM_ERROR",i.errSubject=i.subject=e.subject||e.errSubject,i.cause=e.cause,i.requestId=e.requestId,i}return(0,m.default)(n,[{key:"toJson",value:function(){var e=arguments.length>0&&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,h.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 _e(){return{token:ve.getStorageSync("uni_id_token")||ve.getStorageSync("uniIdToken"),tokenExpired:ve.getStorageSync("uni_id_token_expired")}}function ye(){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 be(){return he||(he=uni.getSystemInfoSync()),he}function we(){var e=uni.getLocale&&uni.getLocale()||"en";if(ge)return w(w({},ge),{},{locale:e,LOCALE:e});for(var t=be(),n=t.deviceId,i=t.osName,r=t.uniPlatform,o=t.appId,a=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"],s=0;s<a.length;s++)delete t[a[s]];return ge=w(w({PLATFORM:r,OS:i,APPID:o,DEVICEID:n},function(){var e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var n=uni.getLaunchOptionsSync(),i=n.scene;e=n.channel,t=i}}catch(e){}return{channel:e,scene:t}}()),t),w(w({},ge),{},{locale:e,LOCALE:e})}var xe,ke,Te=function(e,t){var n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),S(n,t).toString()},Se=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 r=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",o=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return i(new me({code:r,message:o,requestId:t}))}var a=e.data;if(a.error)return i(new me({code:a.error.code,message:a.error.message,requestId:t}));a.result=a.data,a.requestId=t,delete a.data,n(a)}}))}))},Pe=function(e){return I.stringify(P.parse(e))},Ie=function(){function e(t){var n=this;(0,g.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:j})}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 Se(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"]=Te(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"]=Te(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,u.default)(r.default.mark((function e(){return r.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,r=e.name,o=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:n,formData:i,name:r,filePath:o,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):c(new me({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))},fail:function(e){c(new me({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.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,u.default)(r.default.mark((function e(t){var n,i,o,a,s,c,u,l,d,f,p,h,g,m,v,_,y,b,w,x,k,T;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.filePath,i=t.cloudPath,o=t.fileType,a=void 0===o?"image":o,s=t.cloudPathAsRealPath,c=void 0!==s&&s,u=t.onUploadProgress,l=t.config,"string"===E(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(d=l&&l.envType||this.config.envType,!(c&&("/"!==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:d,filename:c?i.split("/").pop():i,fileId:c?i:void 0});case 12:return f=e.sent.result,p="https://"+f.cdnDomain+"/"+f.ossPath,h=f.securityToken,g=f.accessKeyId,m=f.signature,v=f.host,_=f.ossPath,y=f.id,b=f.policy,w=f.ossCallbackUrl,x={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:g,Signature:m,host:v,id:y,key:_,policy:b,success_action_status:200},h&&(x["x-oss-security-token"]=h),w&&(k=JSON.stringify({callbackUrl:w,callbackBody:JSON.stringify({fileId:y,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),x.callback=Pe(k)),T={url:"https://"+f.host,formData:x,fileName:"file",name:"file",filePath:n,fileType:a},e.next=27,this.uploadFileToOSS(Object.assign({},T,{onUploadProgress:u}));case 27:if(!w){e.next=29;break}return e.abrupt("return",{success:!0,filePath:n,fileID:p});case 29:return e.next=31,this.reportOSSUpload({id:y});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:n,fileID:p});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,u.default)(r.default.mark((function e(){var t,n,i,o=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[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}(),Ae={init:function(e){var t=new Ie(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Oe="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";(ke=xe||(xe={})).local="local",ke.none="none",ke.session="session";var De,Ce=function(){},Re=k((function(e,t){var n;e.exports=(n=T,function(e){var t=n,i=t.lib,r=i.WordArray,o=i.Hasher,a=t.algo,s=[],c=[];!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,r=0;r<64;)t(i)&&(r<8&&(s[r]=n(e.pow(i,.5))),c[r]=n(e.pow(i,1/3)),r++),i++}();var u=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],d=n[6],f=n[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var h=u[p-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,m=u[p-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[p]=g+u[p-7]+v+u[p-16]}var _=i&r^i&o^r&o,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),b=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&d)+c[p]+u[p];f=d,d=l,l=s,s=a+b|0,a=o,o=r,r=i,i=b+(y+_)|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),n.SHA256)})),Ee=k((function(e,t){e.exports=T.HmacSHA256})),Le=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 Ne(e){return void 0===e}function Ue(e){return"[object Null]"===Object.prototype.toString.call(e)}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(De||(De={}));var Be={adapter:null,runtime:void 0},je=["anonymousUuidKey"],Me=function(e){(0,d.default)(n,e);var t=x(n);function n(){var e;return(0,g.default)(this,n),e=t.call(this),Be.adapter.root.tcbObject||(Be.adapter.root.tcbObject={}),e}return(0,m.default)(n,[{key:"setItem",value:function(e,t){Be.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Be.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Be.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Be.adapter.root.tcbObject}}]),n}(Ce);function qe(e,t){switch(e){case"local":return t.localStorage||new Me;case"none":return new Me;default:return t.sessionStorage||new Me}}var Fe=function(){function e(t){if((0,g.default)(this,e),!this._storage){this._persistence=Be.adapter.primaryStorage||t.persistence,this._storage=qe(this._persistence,Be.adapter);var n="access_token_".concat(t.env),i="access_token_expire_".concat(t.env),r="refresh_token_".concat(t.env),o="anonymous_uuid_".concat(t.env),a="login_type_".concat(t.env),s="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:i,refreshTokenKey:r,anonymousUuidKey:o,loginTypeKey:a,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=qe(e,Be.adapter);for(var i in this.keys){var r=this.keys[i];if(!t||!je.includes(i)){var o=this._storage.getItem(r);Ne(o)||Ue(o)||(n.setItem(r,o),this._storage.removeItem(r))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var i={version:n||"localCachev1",content:t},r=JSON.stringify(i);try{this._storage.setItem(e,r)}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 Ke(e){return Ve[e]}var He=(0,m.default)((function e(t,n){(0,g.default)(this,e),this.data=n||null,this.name=t})),Ge=function(e){(0,d.default)(n,e);var t=x(n);function n(e,i){var r;return(0,g.default)(this,n),(r=t.call(this,"error",{error:e,data:i})).error=e,r}return(0,m.default)(n)}(He),We=new(function(){function e(){(0,g.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 Ge)return console.error(e.error),this;var n="string"==typeof e?new He(e,t||{}):e,i=n.name;if(this._listens(i)){n.target=this;var r,o=_(this._listeners[i]?(0,c.default)(this._listeners[i]):[]);try{for(o.s();!(r=o.n()).done;){r.value.call(this,n)}}catch(e){o.e(e)}finally{o.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function ze(e,t){We.on(e,t)}function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};We.fire(e,t)}function Qe(e,t){We.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"],rt={"X-SDK-Version":"1.3.5"};function ot(e,t,n){var i=e[t];e[t]=function(t){var r={},o={};n.forEach((function(n){var i=n.call(e,t),a=i.data,s=i.headers;Object.assign(r,a),Object.assign(o,s)}));var a=t.data;return a&&function(){var e;if(e=a,"[object FormData]"!==Object.prototype.toString.call(e))t.data=w(w({},a),r);else for(var n in r)a.append(n,r[n])}(),t.headers=w(w({},t.headers||{}),o),i.call(e,t)}}function at(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:w(w({},rt),{},{"x-seqid":e})}}var st=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,g.default)(this,e),this.config=n,this._reqClass=new Be.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=Ke(this.config.env),this._localCache=(t=this.config.env,$e[t]),ot(this._reqClass,"post",[at]),ot(this._reqClass,"upload",[at]),ot(this._reqClass,"download",[at])}var t,n,i,o,a,s,c,l;return(0,m.default)(e,[{key:"post",value:(l=(0,u.default)(r.default.mark((function e(t){return r.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:(c=(0,u.default)(r.default.mark((function e(t){return r.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 c.apply(this,arguments)})},{key:"download",value:(s=(0,u.default)(r.default.mark((function e(t){return r.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:(a=(0,u.default)(r.default.mark((function e(){var t,n;return r.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 a.apply(this,arguments)})},{key:"_refreshAccessToken",value:(o=(0,u.default)(r.default.mark((function e(){var t,n,i,o,a,s,c,u,l,d,f,p,h;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,i=t.accessTokenExpireKey,o=t.refreshTokenKey,a=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(i),c=this._cache.getStore(o)){e.next=5;break}throw new me({message:"\u672a\u767b\u5f55CloudBase"});case 5:return u={refresh_token:c},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",u);case 8:if(!(l=e.sent).data.code){e.next=21;break}if("SIGN_PARAM_INVALID"!==(d=l.data.code)&&"REFRESH_TOKEN_EXPIRED"!==d&&"INVALID_REFRESH_TOKEN"!==d){e.next=20;break}if(this._cache.getStore(a)!==Ye.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==d){e.next=19;break}return f=this._cache.getStore(s),p=this._cache.getStore(o),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:f,refresh_token:p});case 17:return h=e.sent,e.abrupt("return",(this.setRefreshToken(h.refresh_token),this._refreshAccessToken()));case 19:Je(Ze),this._cache.removeStore(o);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(o),this._cache.setStore(o,l.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"getAccessToken",value:(i=(0,u.default)(r.default.mark((function e(){var t,n,i,o,a,s,c;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,i=t.accessTokenExpireKey,o=t.refreshTokenKey,this._cache.getStore(o)){e.next=3;break}throw new me({message:"refresh token\u4e0d\u5b58\u5728\uff0c\u767b\u5f55\u72b6\u6001\u5f02\u5e38"});case 3:if(a=this._cache.getStore(n),s=this._cache.getStore(i),c=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(a,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}c=!1;case 12:return e.abrupt("return",(!a||!s||s<Date.now())&&c?this.refreshAccessToken():{accessToken:a,accessTokenExpire:s});case 13:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"request",value:(n=(0,u.default)(r.default.mark((function e(t,n,i){var o,a,s,c,u,l,d,f,p,h,g,m,v,_,y,b;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o="x-tcb-trace_".concat(this.config.env),a="application/x-www-form-urlencoded",s=w({action:t,env:this.config.env,dataVersion:"2019-08-16"},n),-1!==it.indexOf(t)){e.next=10;break}if(c=this._cache.keys.refreshTokenKey,e.t0=this._cache.getStore(c),!e.t0){e.next=10;break}return e.next=9,this.getAccessToken();case 9:s.access_token=e.sent.accessToken;case 10:if("storage.uploadFile"===t){for(l in u=new FormData)u.hasOwnProperty(l)&&void 0!==u[l]&&u.append(l,s[l]);a="multipart/form-data"}else for(d in a="application/json",u={},s)void 0!==s[d]&&(u[d]=s[d]);return f={headers:{"content-type":a}},i&&i.onUploadProgress&&(f.onUploadProgress=i.onUploadProgress),(p=this._localCache.getStore(o))&&(f.headers["X-TCB-Trace"]=p),h=n.parse,g=n.inQuery,m=n.search,v={env:this.config.env},h&&(v.parse=!0),g&&(v=w(w({},g),v)),_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=/\?/.test(t),r="";for(var o in n)""===r?!i&&(t+="?"):r+="&",r+="".concat(o,"=").concat(encodeURIComponent(n[o]));return/^http(s)?\:\/\//.test(t+=r)?t:"".concat(e).concat(t)}(Oe,"//tcb-api.tencentcloudapi.com/web",v),m&&(_+=m),e.next=22,this.post(w({url:_,data:u},f));case 22:if(y=e.sent,(b=y.header&&y.header["x-tcb-trace"])&&this._localCache.setStore(o,b),(200===Number(y.status)||200===Number(y.statusCode))&&y.data){e.next=26;break}throw new me({code:"NETWORK_ERROR",message:"network request error"});case 26:return e.abrupt("return",y);case 27:case"end":return e.stop()}}),e,this)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"send",value:(t=(0,u.default)(r.default.mark((function e(t){var n,i,o,a=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[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(!(o=e.sent).data.code){e.next=12;break}throw new me({code:o.data.code,message:o.data.message});case 12:return e.abrupt("return",o.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,r=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(i),this._cache.setStore(r,e)}}]),e}(),ct={};function ut(e){return ct[e]}var lt=function(){function e(t){(0,g.default)(this,e),this.config=t,this._cache=Ke(t.env),this._request=ut(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,r=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(i),this._cache.setStore(r,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,i=n.accessTokenKey,r=n.accessTokenExpireKey;this._cache.setStore(i,e),this._cache.setStore(r,t)}},{key:"refreshUserInfo",value:(t=(0,u.default)(r.default.mark((function e(){var t,n;return r.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}(),dt=function(){function e(t){if((0,g.default)(this,e),!t)throw new me({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=Ke(this._envId),this._request=ut(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,u.default)(r.default.mark((function e(){var t,n,i,o;return r.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,o=n.users,e.abrupt("return",(o.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(i=!0)})),{users:o,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,u.default)(r.default.mark((function e(t){var n,i,o,a,s,c,u,l;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.nickName,i=t.gender,o=t.avatarUrl,a=t.province,s=t.country,c=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:i,avatarUrl:o,province:a,country:s,city:c});case 8:u=e.sent,l=u.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,u.default)(r.default.mark((function e(){var t,n;return r.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}(),ft=function(){function e(t){if((0,g.default)(this,e),!t)throw new me({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Ke(t);var n=this._cache.keys,i=n.refreshTokenKey,r=n.accessTokenKey,o=n.accessTokenExpireKey,a=this._cache.getStore(i),s=this._cache.getStore(r),c=this._cache.getStore(o);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:c},this.user=new dt(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}(),pt=function(e){(0,d.default)(o,e);var t,n,i=x(o);function o(){return(0,g.default)(this,o),i.apply(this,arguments)}return(0,m.default)(o,[{key:"signIn",value:(n=(0,u.default)(r.default.mark((function e(){var t,n,i,o,a,s,c;return r.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,o=this._cache.getStore(n)||void 0,a=this._cache.getStore(i)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:o,refresh_token:a});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"}),c=new ft(this.config.env),e.next=19,c.user.refresh();case 19:return e.abrupt("return",c);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,u.default)(r.default.mark((function e(t){var n,i,o,a,s,c;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._cache.keys,i=n.anonymousUuidKey,o=n.refreshTokenKey,a=this._cache.getStore(i),s=this._cache.getStore(o),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:a,refresh_token:s,ticket:t});case 7:if(!(c=e.sent).refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(c.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:c.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)}}]),o}(lt),ht=function(e){(0,d.default)(i,e);var t,n=x(i);function i(){return(0,g.default)(this,i),n.apply(this,arguments)}return(0,m.default)(i,[{key:"signIn",value:(t=(0,u.default)(r.default.mark((function e(t){var n,i;return r.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 ft(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),gt=function(e){(0,d.default)(a,e);var t,n,i,o=x(a);function a(){return(0,g.default)(this,a),o.apply(this,arguments)}return(0,m.default)(a,[{key:"signIn",value:(i=(0,u.default)(r.default.mark((function e(t,n){var i,o,a,s,c;return r.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(o=e.sent,a=o.refresh_token,s=o.access_token,c=o.access_token_expire,!a){e.next=22;break}if(this.setRefreshToken(a),!s||!c){e.next=15;break}this.setAccessToken(s,c),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return Je(Xe),Je(et,{env:this.config.env,loginType:Ye.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new ft(this.config.env));case 22:throw o.code?new me({code:o.code,message:"\u90ae\u7bb1\u767b\u5f55\u5931\u8d25: ".concat(o.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,u.default)(r.default.mark((function e(t){return r.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,u.default)(r.default.mark((function e(t,n){return r.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)})}]),a}(lt),mt=function(e){(0,d.default)(i,e);var t,n=x(i);function i(){return(0,g.default)(this,i),n.apply(this,arguments)}return(0,m.default)(i,[{key:"signIn",value:(t=(0,u.default)(r.default.mark((function e(t,n){var i,o,a,s,c;return r.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(o=e.sent,a=o.refresh_token,s=o.access_token_expire,c=o.access_token,!a){e.next=23;break}if(this.setRefreshToken(a),!c||!s){e.next=16;break}this.setAccessToken(c,s),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return Je(Xe),Je(et,{env:this.config.env,loginType:Ye.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new ft(this.config.env));case 23:throw o.code?new me({code:o.code,message:"\u7528\u6237\u540d\u5bc6\u7801\u767b\u5f55\u5931\u8d25: ".concat(o.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,g.default)(this,e),this.config=t,this._cache=Ke(t.env),this._request=ut(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),ze(et,this._onLoginTypeChanged)}var t,n,i,o,a,s,c,l,d;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 pt(this.config)}},{key:"customAuthProvider",value:function(){return new ht(this.config)}},{key:"emailAuthProvider",value:function(){return new gt(this.config)}},{key:"usernameAuthProvider",value:function(){return new mt(this.config)}},{key:"signInAnonymously",value:(d=(0,u.default)(r.default.mark((function e(){return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new pt(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"signInWithEmailAndPassword",value:(l=(0,u.default)(r.default.mark((function e(t,n){return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new gt(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:(c=(0,u.default)(r.default.mark((function e(t){return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new pt(this.config)),ze(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 c.apply(this,arguments)})},{key:"signOut",value:(s=(0,u.default)(r.default.mark((function e(){var t,n,i,o,a,s;return r.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,o=t.accessTokenExpireKey,a=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:a});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(i),this._cache.removeStore(o),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:(a=(0,u.default)(r.default.mark((function e(t,n){return r.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 a.apply(this,arguments)})},{key:"sendPasswordResetEmail",value:(o=(0,u.default)(r.default.mark((function e(t){return r.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 o.apply(this,arguments)})},{key:"onLoginStateChanged",value:function(e){var t=this;ze(Xe,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){ze(Ze,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){ze(nt,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){ze(tt,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;ze(et,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:(i=(0,u.default)(r.default.mark((function e(){return r.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 ft(this.config.env):null}},{key:"isUsernameRegistered",value:(n=(0,u.default)(r.default.mark((function e(t){var n,i;return r.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,u.default)(r.default.mark((function e(t){return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new ht(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:w(w({},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}(),_t=function(e,t){t=t||Le();var n=ut(this.config.env),i=e.cloudPath,r=e.filePath,o=e.onUploadProgress,a=e.fileType,s=void 0===a?"image":a;return n.send("storage.getUploadMetadata",{path:i}).then((function(e){var a=e.data,c=a.url,u=a.authorization,l=a.token,d=a.fileId,f=a.cosFileId,p=e.requestId,h={key:i,signature:u,"x-cos-meta-fileid":f,success_action_status:"201","x-cos-security-token":l};n.upload({url:c,data:h,file:r,name:i,fileType:s,onUploadProgress:o}).then((function(e){201===e.statusCode?t(null,{fileID:d,requestId:p}):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},yt=function(e,t){t=t||Le();var n=ut(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},bt=function(e,t){var n=e.fileList;if(t=t||Le(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u6570\u7ec4"};var i,r=_(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(!o||"string"!=typeof o)return{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u5b57\u7b26\u4e32"}}}catch(e){r.e(e)}finally{r.f()}var a={fileid_list:n};return ut(this.config.env).send("storage.batchDeleteFile",a).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},wt=function(e,t){var n=e.fileList;t=t||Le(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u6570\u7ec4"});var i,r=[],o=_(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;"object"==(0,s.default)(a)?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u5305\u542bfileID\u548cmaxAge\u7684\u5bf9\u8c61"}),r.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?r.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u5b57\u7b26\u4e32"})}}catch(e){o.e(e)}finally{o.f()}var c={file_list:r};return ut(this.config.env).send("storage.batchGetDownloadUrl",c).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},xt=function(){var e=(0,u.default)(r.default.mark((function e(t,n){var i,o,a,s;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.fileID,e.next=3,wt.call(this,{fileList:[{fileID:i,maxAge:600}]});case 3:if("SUCCESS"===(o=e.sent.fileList[0]).code){e.next=6;break}return e.abrupt("return",n?n(o):new Promise((function(e){e(o)})));case 6:if(a=ut(this.config.env),s=o.download_url,s=encodeURI(s),n){e.next=10;break}return e.abrupt("return",a.download({url:s}));case 10:return e.t0=n,e.next=13,a.download({url:s});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),kt=function(e,t){var n,i=e.name,r=e.data,o=e.query,a=e.parse,s=e.search,c=t||Le();try{n=r?JSON.stringify(r):""}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 u={inQuery:o,parse:a,search:s,function_name:i,request_data:n};return ut(this.config.env).send("functions.invokeFunction",u).then((function(e){if(e.code)c(null,e);else{var t=e.data.response_data;if(a)c(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),c(null,{result:t,requestId:e.requestId})}catch(e){c(new me({message:"response data must be json"}))}}return c.promise})).catch((function(e){c(e)})),c.promise},Tt={timeout:15e3,persistence:"session"},St={},Pt=new(function(){function e(t){(0,g.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(Be.adapter||(this.requestClient=new Be.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=w(w({},Tt),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||Be.adapter.primaryStorage||Tt.persistence;return i!==this.config.persistence&&(this.config.persistence=i),function(e){var t=e.env;Ve[t]=new Fe(e),$e[t]=new Fe(w(w({},e),{},{persistence:"local"}))}(this.config),n=this.config,ct[n.env]=new st(n),this.authObj=new vt(this.config),this.authObj}},{key:"on",value:function(e,t){return ze.apply(this,[e,t])}},{key:"off",value:function(e,t){return Qe.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return kt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return bt.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return wt.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return xt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return _t.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return yt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){St[e.name]=e}},{key:"invokeExtension",value:(t=(0,u.default)(r.default.mark((function e(t,n){var i;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=St[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=_((t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.isMatch,a=r.genAdapter,s=r.runtime;if(o())return{adapter:a(),runtime:s}}}catch(e){i.e(e)}finally{i.f()}}(e)||{},n=t.adapter,i=t.runtime;n&&(Be.adapter=n),i&&(Be.runtime=i)}}]),e}());function It(e,t,n){void 0===n&&(n={});var i=/\?/.test(t),r="";for(var o in n)""===r?!i&&(t+="?"):r+="&",r+=o+"="+encodeURIComponent(n[o]);return/^http(s)?:\/\//.test(t+=r)?t:""+e+t}var At=function(){function e(){(0,g.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,r){ve.request({url:It("https:",t),data:n,method:"POST",header:i,success:function(t){e(t)},fail:function(e){r(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var i=e.url,r=e.file,o=e.data,a=e.headers,s=e.fileType,c=ve.uploadFile({url:It("https:",i),name:"file",formData:Object.assign({},o),filePath:r,fileType:s,header:a,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(n.statusCode=parseInt(o.success_action_status,10)),t(n)},fail:function(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),Ot={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()}},Dt={genAdapter:function(){return{root:{},reqClass:At,localStorage:Ot,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Pt.useAdapters(Dt);var Ct=Pt,Rt=Ct.init;Ct.init=function(e){e.env=e.spaceId;var t=Rt.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=pe(e=e||{}),i=t.success,r=t.fail,o=t.complete;if(!(i||r||o))return n.call(this,e);n.call(this,e).then((function(e){i&&i(e),o&&o(e)}),(function(e){r&&r(e),o&&o(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Et=Ct,Lt=function(e){(0,d.default)(n,e);var t=x(n);function n(){return(0,g.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"]=Te(n,this.config.clientSecret);var r=we();i["x-client-info"]=encodeURIComponent(JSON.stringify(r));var o=_e().token;return i["x-client-token"]=o,{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,r=e.name,o=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:n,formData:i,name:r,filePath:o,fileType:a,success:function(t){t&&t.statusCode<400?e(t):c(new me({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))},fail:function(e){c(new me({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(e){var t,n=this,i=e.filePath,r=e.cloudPath,o=e.fileType,a=void 0===o?"image":o,s=e.onUploadProgress;if(!r)throw new me({code:"CLOUDPATH_REQUIRED",message:"cloudPath\u4e0d\u53ef\u4e3a\u7a7a"});return this.getOSSUploadOptionsFromPath({cloudPath:r}).then((function(e){var r=e.result,o=r.url,c=r.formData,u=r.name;t=e.result.fileUrl;var l={url:o,formData:c,name:u,filePath:i,fileType:a};return n.uploadFileToOSS(Object.assign({},l,{onUploadProgress:s}))})).then((function(){return n.reportOSSUpload({cloudPath:r})})).then((function(e){return new Promise((function(n,r){e.success?n({success:!0,filePath:i,fileID:t}):r(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}(Ie),Nt={init:function(e){var t=new Lt(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Ut=k((function(e,t){e.exports=T.enc.Hex}));function Bt(){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,r=t.method,o=t.headers,s=t.signHeaderKeys,c=void 0===s?[]:s,u=t.config,l=Date.now(),d="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)})),f=Object.assign({},o,{"x-from-app-id":u.spaceAppId,"x-from-env-id":u.spaceId,"x-to-env-id":u.spaceId,"x-from-instance-id":l,"x-from-function-name":i,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":d,"x-alipay-callid":d,"x-trace-id":d}),p=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(c),h=e.split("?")||[],g=(0,a.default)(h,2),m=g[0],v=void 0===m?"":m,_=g[1],y=void 0===_?"":_,b=function(e){var t=e.signedHeaders.join(";"),n=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),i=Re(e.body).toString(Ut),r="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(n,"\n").concat(t,"\n").concat(i,"\n"),o=Re(r).toString(Ut),a="HMAC-SHA256\n".concat(e.timestamp,"\n").concat(o,"\n"),s=Ee(a,e.secretKey).toString(Ut);return"HMAC-SHA256 Credential=".concat(e.secretId,", SignedHeaders=").concat(t,", Signature=").concat(s)}({path:v,query:y,method:r,headers:f,timestamp:l,body:JSON.stringify(n),secretId:u.accessKey,secretKey:u.secretKey,signedHeaders:p.sort()});return{url:"".concat(u.endpoint).concat(e),headers:Object.assign({},f,{Authorization:b})}}function jt(e){var t=e.url,n=e.data,i=e.method,r=void 0===i?"POST":i,o=e.headers,a=void 0===o?{}:o;return new Promise((function(e,i){ve.request({url:t,method:r,data:n,header:a,dataType:"json",complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var r=t.data||{},o=r.message,s=r.errMsg,c=r.trace_id;return i(new me({code:"SYS_ERR",message:o||s||"request:fail",requestId:c||n}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:n})}})}))}function Mt(e,t){var n=e.path,i=e.data,r=e.method,o=void 0===r?"GET":r,a=Bt(n,{functionName:"",data:i,method:o,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 jt({url:a.url,data:i,method:o,headers:a.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 qt(){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),r=t.substring(n+1);return i!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),r}function Ft(){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,g.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,r="POST",o=Bt("/functions/invokeFunction",{functionName:n,data:i,method:r,headers:{"x-to-function-name":n},signHeaderKeys:["x-to-function-name"],config:t});return jt({url:o.url,data:i,method:r,headers:o.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,r=e.formData,o=e.onUploadProgress;return new Promise((function(e,a){var s=ve.uploadFile({url:t,filePath:n,fileType:i,formData:r,name:"file",success:function(t){t&&t.statusCode<400?e(t):a(new me({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))},fail:function(e){a(new me({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}});"function"==typeof o&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:(n=(0,u.default)(r.default.mark((function e(t){var n,i,o,a,s,c,u,l,d,f,p;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.filePath,i=t.cloudPath,o=void 0===i?"":i,a=t.fileType,s=void 0===a?"image":a,c=t.onUploadProgress,"string"===E(o)){e.next=3;break}throw new me({code:"INVALID_PARAM",message:"cloudPath\u5fc5\u987b\u4e3a\u5b57\u7b26\u4e32\u7c7b\u578b"});case 3:if(o=o.trim()){e.next=5;break}throw new me({code:"INVALID_PARAM",message:"cloudPath\u4e0d\u53ef\u4e3a\u7a7a"});case 5:if(!/:\/\//.test(o)){e.next=7;break}throw new me({code:"INVALID_PARAM",message:"cloudPath\u4e0d\u5408\u6cd5"});case 7:return e.next=9,Mt({path:"/".concat(o.replace(/^\//,""),"?post_url")},this.config);case 9:return u=e.sent,l=u.file_id,d=u.upload_url,f=u.form_data,p=f&&f.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:d,filePath:n,fileType:s,formData:p,onUploadProgress:c}).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,u.default)(r.default.mark((function e(t){var n,i=this;return r.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 r,o=[],a=_(n);try{for(a.s();!(r=a.n()).done;){var s=r.value;"string"!==E(s)&&t(new me({errCode:"INVALID_PARAM",errMsg:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u5b57\u7b26\u4e32"}));var c=qt.call(i,s);o.push({file_id:c,expire:600})}}catch(e){a.e(e)}finally{a.f()}Mt({path:"/?download_url",data:{file_list:o},method:"POST"},i.config).then((function(t){var n=t.file_list;e({fileList:(void 0===n?[]:n).map((function(e){return{fileID:Ft.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 Kt(e){var t,n=e.data;t=we();var i=JSON.parse(JSON.stringify(n||{}));if(Object.assign(i,{clientInfo:t}),!i.uniIdToken){var r=_e().token;r&&(i.uniIdToken=r)}return i}var Ht=[{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"}],Gt=/[\\^$.*+?()[\]{}|]/g,Wt=RegExp(Gt.source);function zt(e,t,n){return e.replace(new RegExp((i=t)&&Wt.test(i)?i.replace(Gt,"\\$&"):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,r=t.errCode,o=t.errMsg,a=t.code,s=t.message,c=t.cause;return new me({subject:n||i||"uni-secure-network",code:r||a||Xt,message:o||s,cause:c})}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 rn(){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 on(e){e.functionName,e.result,e.logPvd}function an(e){var t=e.callFunction,n=function(n){var i=this,r=n.name;n.data=Kt.call(e,{data:n.data});var o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],a=nn(n),s=rn(n),c=a||s;return t.call(this,n).then((function(e){return e.errCode=0,!c&&on.call(i,{functionName:r,result:e,logPvd:o}),Promise.resolve(e)}),(function(e){return!c&&on.call(i,{functionName:r,result:e,logPvd:o}),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,r=void 0===i?{}:i,o=e.formatter,a=void 0===o?[]:o,s=0;s<a.length;s++){var c=a[s],u=c.rule,l=c.content,d=c.mode,f=n.match(u);if(f){for(var p=l,h=1;h<f.length;h++)p=zt(p,"{$".concat(h,"}"),f[h]);for(var g in r)p=zt(p,"{".concat(g,"}"),r[g]);return"replace"===d?p:n+p}}return n}({message:"[".concat(n.name,"]: ").concat(e.message),formatter:Ht,extraInfo:{functionName:r}})),Promise.reject(e)}))};e.callFunction=function(t){var i,r,o=e.config,a=o.provider,s=o.spaceId,c=t.name;return t.data=t.data||{},i=(i=n).bind(e),r=rn(t)?n.call(e,t):function(e){var t=e.name,n=e.data;return"mp-weixin"===V&&"uni-id-co"===t&&"secureNetworkHandshakeByWeixin"===(void 0===n?{}:n).method}(t)?i.call(e,t):nn(t)?new tn({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(n.bind(e))(t):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,i=e.functionName,r=be(),o=r.appId,a=r.uniPlatform,s=r.osName,c=a;"app"===a&&(c=s);var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,i=F;if(!i)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var r=i.find((function(e){return e.provider===t&&e.spaceId===n}));return r&&r.config}({provider:t,spaceId:n});if(!u||!u.accessControl||!u.accessControl.enable)return!1;var l=u.accessControl.function||{},d=Object.keys(l);if(0===d.length)return!0;var f=function(e,t){for(var n,i,r,o=0;o<e.length;o++){var a=e[o];a!==t?"*"!==a?a.split(",").map((function(e){return e.trim()})).indexOf(t)>-1&&(i=a):r=a:n=a}return n||i||r}(d,i);if(!f)return!1;if((l[f]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===o&&(e.platform||"").toLowerCase()===c.toLowerCase()})))return!0;throw console.error("\u6b64\u5e94\u7528[appId: ".concat(o,", platform: ").concat(c,"]\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:a,spaceId:s,functionName:c})?new tn({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):i(t),Object.defineProperty(r,"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"),{}}}),r.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,g.default)(this,e),en({message:"Platform ".concat(V," is not supported by secure network")})}))}():function(){return(0,m.default)((function e(){throw(0,g.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 cn(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 r=e[n];return"function"==typeof r?r.bind(e):r}return t.get(e,n,i)}})}function un(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 dn(e,t){return ln.indexOf("".concat(e,".").concat(t))>-1}function fn(e){switch(E(e)){case"array":return e.map((function(e){return fn(e)}));case"object":return e._internalType===sn||Object.keys(e).forEach((function(t){e[t]=fn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function pn(e){return e&&e.content&&e.content.$method}var hn=function(){function e(t,n,i){(0,g.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:fn(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=pn(e),n=pn(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"===pn(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=pn(e),n=pn(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 gn({$method:e,$param:fn(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:fn(t)}),this._database._callCloudFunction({action:n,command:i})}}]),e}();function gn(e,t,n){return cn(new hn(e,t,n),{get:function(e,t){var i="db";return e&&e.content&&(i=e.content.$method),dn(i,t)?gn({$method:t},e,n):function(){return gn({$method:t,$param:fn(Array.from(arguments))},e,n)}}})}function mn(e){var t=e.path,n=e.method;return function(){function e(){(0,g.default)(this,e),this.param=Array.from(arguments)}return(0,m.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,c.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 cn(new e(t),{get:function(e,t){return dn("db",t)?gn({$method:t},null,e):function(){return gn({$method:t,$param:fn(Array.from(arguments))},null,e)}}})}var _n=function(e){(0,d.default)(n,e);var t=x(n);function n(){return(0,g.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,r=e.multiCommand,o=e.queryList;function a(e,t){if(r&&o)for(var n=0;n<o.length;n++){var i=o[n];i.udb&&"function"==typeof i.udb.setResult&&(t?i.udb.setResult(t):i.udb.setResult(e.result.dataList[n]))}}var s=this,c=this._isJQL?"databaseForJQL":"database";function u(e){return s._callback("error",[e]),Q(Y(c,"fail"),e).then((function(){return Q(Y(c,"complete"),e)})).then((function(){return a(null,e),ue(ee,{type:ie,content:e}),Promise.reject(e)}))}var l=Q(Y(c,"invoke")),d=this._uniClient;return l.then((function(){return d.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:n,command:i,multiCommand:r}})})).then((function(e){var n=e.result,i=n.code,r=n.message,o=n.token,l=n.tokenExpired,d=n.systemInfo,f=void 0===d?[]:d;if(f)for(var p=0;p<f.length;p++){var h=f[p],g=h.level,m=h.message,v=h.detail,_=console["app"===V&&"warn"===g?"error":g]||console.log,y="[System Info]"+m;v&&(y="".concat(y,"\n\u8be6\u7ec6\u4fe1\u606f\uff1a").concat(v)),_(y)}if(i)return u(new me({code:i,message:r,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,o&&l&&(ye({token:o,tokenExpired:l}),t._callbackAuth("refreshToken",[{token:o,tokenExpired:l}]),t._callback("refreshToken",[{token:o,tokenExpired:l}]),ue(ne,{token:o,tokenExpired:l}));for(var b=[{prop:"affectedDocs",tips:"affectedDocs\u4e0d\u518d\u63a8\u8350\u4f7f\u7528\uff0c\u8bf7\u4f7f\u7528inserted/deleted/updated/data.length\u66ff\u4ee3"},{prop:"code",tips:"code\u4e0d\u518d\u63a8\u8350\u4f7f\u7528\uff0c\u8bf7\u4f7f\u7528errCode\u66ff\u4ee3"},{prop:"message",tips:"message\u4e0d\u518d\u63a8\u8350\u4f7f\u7528\uff0c\u8bf7\u4f7f\u7528errMsg\u66ff\u4ee3"}],w=function(t){var n=b[t],i=n.prop,r=n.tips;if(i in e.result){var o=e.result[i];Object.defineProperty(e.result,i,{get:function(){return console.warn(r),o}})}},x=0;x<b.length;x++)w(x);return function(e){return Q(Y(c,"success"),e).then((function(){return Q(Y(c,"complete"),e)})).then((function(){a(e,null);var t=s._parseResult(e);return ue(ee,{type:ie,content:t}),Promise.resolve(t)}))}(e)}),(function(e){return/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB\u672a\u521d\u59cb\u5316\uff0c\u8bf7\u5728web\u63a7\u5236\u53f0\u4fdd\u5b58\u4e00\u6b21schema\u4ee5\u5f00\u542fclientDB"),u(new me({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))}))}}]),n}(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,i=void 0===n?{}:n,r=t.isJQL,o=void 0!==r&&r;(0,g.default)(this,e),this._uniClient=i,this._authCallBacks={},this._dbCallBacks={},i._isDefault&&(this._dbCallBacks=H("_globalUniCloudDatabaseCallback")),o||(this.auth=un(this._authCallBacks)),this._isJQL=o,Object.assign(this,un(this._dbCallBacks)),this.env=cn({},{get:function(e,t){return{$env:t}}}),this.Geo=cn({},{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,c.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,c.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}()),yn="token\u65e0\u6548\uff0c\u8df3\u8f6c\u767b\u5f55\u9875\u9762",bn="token\u8fc7\u671f\uff0c\u8df3\u8f6c\u767b\u5f55\u9875\u9762",wn={TOKEN_INVALID_TOKEN_EXPIRED:bn,TOKEN_INVALID_INVALID_CLIENTID:yn,TOKEN_INVALID:yn,TOKEN_INVALID_WRONG_TOKEN:yn,TOKEN_INVALID_ANONYMOUS_USER:yn},xn={"uni-id-token-expired":bn,"uni-id-check-token-failed":yn,"uni-id-token-not-exist":yn,"uni-id-check-device-feature-failed":yn};function kn(e,t){return(e?"".concat(e,"/").concat(t):t).replace(/^\//,"")}function Tn(){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(kn(t,e.path)):!1===e.needLogin&&i.push(kn(t,e.path))})),{needLoginPage:n,notNeedLoginPage:i}}function Sn(e){return e.split("?")[0].replace(/^\//,"")}function Pn(){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 In(){return Sn(Pn())}function An(){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=Sn(e);return n.some((function(e){return e.pagePath===i}))}var On,Dn=!!v.default.uniIdRouter,Cn=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,r=void 0===i?[]:i,o=e.uniIdRouter,a=void 0===o?{}:o,s=e.tabBar,u=void 0===s?{}:s,l=a.loginPage,d=a.needLogin,f=void 0===d?[]:d,p=a.resToLogin,h=void 0===p||p,g=Tn(n),m=g.needLoginPage,_=g.notNeedLoginPage,y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var i=e.root,r=e.pages,o=Tn(void 0===r?[]:r,i),a=o.needLoginPage,s=o.notNeedLoginPage;t.push.apply(t,(0,c.default)(a)),n.push.apply(n,(0,c.default)(s))})),{needLoginPage:t,notNeedLoginPage:n}}(r),b=y.needLoginPage,w=y.notNeedLoginPage;return{loginPage:l,routerNeedLogin:f,resToLogin:h,needLoginPage:[].concat((0,c.default)(m),(0,c.default)(b)),notNeedLoginPage:[].concat((0,c.default)(_),(0,c.default)(w)),loginPageInTabBar:An(l,u)}}(),Rn=Cn.loginPage,En=Cn.routerNeedLogin,Ln=Cn.resToLogin,Nn=Cn.needLoginPage,Un=Cn.notNeedLoginPage,Bn=Cn.loginPageInTabBar;if(Nn.indexOf(Rn)>-1)throw new Error("Login page [".concat(Rn,'] should not be "needLogin", please check your pages.json'));function jn(e){var t=In();if("/"===e.charAt(0))return e;var n=e.split("?"),i=(0,a.default)(n,2),r=i[0],o=i[1],s=r.replace(/^\//,"").split("/"),c=t.split("/");c.pop();for(var u=0;u<s.length;u++){var l=s[u];".."===l?c.pop():"."!==l&&c.push(l)}return""===c[0]&&c.shift(),"/"+c.join("/")+(o?"?"+o:"")}function Mn(e){var t=Sn(jn(e));return!(Un.indexOf(t)>-1)&&(Nn.indexOf(t)>-1||En.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function qn(e){var t=Sn(e.redirect),n=Sn(Rn);return In()!==n&&t!==n}function Fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&qn({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}(Rn,n);Bn?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var r={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((function(){r[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=_e(),n=t.token,i=t.tokenExpired;if(n){if(i<Date.now()){var r="uni-id-token-expired";e={errCode:r,errMsg:xn[r]}}}else{var o="uni-id-check-token-failed";e={errCode:o,errMsg:xn[o]}}return e}();if(Mn(t)&&i){if(i.uniIdRedirectUrl=t,ae(te).length>0)return setTimeout((function(){ue(te,i)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function $n(){!function(){var e=Pn(),t=Vn({url:e}),n=t.abortLoginPageJump,i=t.autoToLoginPage;n||i&&Fn({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,r=t.autoToLoginPage;return i?e:r?(Fn({api:n,redirect:jn(e.url)}),!1):e}})},n=0;n<e.length;n++)t(n)}function Kn(){this.onResponse((function(e){var t=e.type,n=e.content,i=!1;switch(t){case"cloudobject":i=function(e){return"object"==(0,s.default)(e)&&(e||{}).errCode in xn}(n);break;case"clientdb":i=function(e){return"object"==(0,s.default)(e)&&(e||{}).errCode in wn}(n)}i&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ae(te);fe().then((function(){var n=Pn();if(n&&qn({redirect:n}))return t.length>0?ue(te,Object.assign({uniIdRedirectUrl:n},e)):void(Rn&&Fn({api:"navigateTo",redirect:n}))}))}(n)}))}function Hn(e){!function(e){e.onResponse=function(e){se(ee,e)},e.offResponse=function(e){ce(ee,e)}}(e),function(e){e.onNeedLogin=function(e){se(te,e)},e.offNeedLogin=function(e){ce(te,e)},Dn&&(H("_globalUniCloudStatus").needLoginInit||(H("_globalUniCloudStatus").needLoginInit=!0,fe().then((function(){$n.call(e)})),Ln&&Kn.call(e)))}(e),function(e){e.onRefreshToken=function(e){se(ne,e)},e.offRefreshToken=function(e){ce(ne,e)}}(e)}var Gn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Wn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function zn(){var e,t,n=_e().token||"",i=n.split(".");if(!n||3!==i.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=i[1],decodeURIComponent(On(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}On="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Wn.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,r="",o=0;o<e.length;)t=Gn.indexOf(e.charAt(o++))<<18|Gn.indexOf(e.charAt(o++))<<12|(n=Gn.indexOf(e.charAt(o++)))<<6|(i=Gn.indexOf(e.charAt(o++))),r+=64===n?String.fromCharCode(t>>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}:atob;var Jn=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(k((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function r(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 o(e,t,i){var r=i.onChooseFile,o=i.onUploadProgress;return t.then((function(e){if(r){var t=r(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,r=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var o=t.tempFiles,a=o.length,s=0;return new Promise((function(n){for(;s<i;)c();function c(){var i=s++;if(i>=a)!o.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var u=o[i];e.uploadFile({provider:u.provider,filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,cloudPathAsRealPath:u.cloudPathAsRealPath,onUploadProgress:function(e){e.index=i,e.tempFile=u,e.tempFilePath=u.path,r&&r(e)}}).then((function(e){u.url=e.fileID,i<a&&c()})).catch((function(e){u.errMsg=e.errMsg||e.message,i<a&&c()}))}}}))}(e,t,5,o)}))}t.initChooseAndUploadFile=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?o(e,function(e){var t=e.count,n=e.sizeType,o=e.sourceType,a=void 0===o?["album","camera"]:o,s=e.extension;return new Promise((function(e,o){uni.chooseImage({count:t,sizeType:n,sourceType:a,extension:s,success:function(t){e(r(t,"image"))},fail:function(e){o({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(t),t):"video"===t.type?o(e,function(e){var t=e.camera,n=e.compressed,o=e.maxDuration,a=e.sourceType,s=void 0===a?["album","camera"]:a,c=e.extension;return new Promise((function(e,a){uni.chooseVideo({camera:t,compressed:n,maxDuration:o,sourceType:s,extension:c,success:function(t){var n=t.tempFilePath,i=t.duration,o=t.size,a=t.height,s=t.width;e(r({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:o,type:t.tempFile&&t.tempFile.type||"",width:s,height:a,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){a({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(t),t):o(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,o){var a=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(a=wx.chooseMessageFile),"function"!=typeof a)return o({errMsg:i+" \u8bf7\u6307\u5b9a type \u7c7b\u578b\uff0c\u8be5\u5e73\u53f0\u4ec5\u652f\u6301\u9009\u62e9 image \u6216 video\u3002"});a({type:"all",count:t,extension:n,success:function(t){e(r(t))},fail:function(e){o({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,r=[],o=2;o<t.length;o++)t[o]!==n[o]&&(r.push(t[o]),i=!0);t[0]!==n[0]&&(e.mixinDatacomPage.current=e.pageCurrent),e.mixinDatacomPage.size=e.pageSize,e.onMixinDatacomPropsChange(i,r)}}))},methods:{onMixinDatacomPropsChange:function(e,t){},mixinDatacomEasyGet:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,i=void 0!==n&&n,r=t.success,o=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,o=n.data,a=n.count;e.getcount&&(e.mixinDatacomPage.count=a),e.mixinDatacomHasMore=o.length<e.pageSize;var s=i?o.length?o[0]:void 0:o;e.mixinDatacomResData=s,r&&r(s)})).catch((function(t){e.mixinDatacomLoading=!1,e.mixinDatacomErrorMessage=t,e.mixinDatacomError=t,o&&o(t)})))},mixinDatacomGet:function(){var t,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i=i||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);var r=i.action||this.action;r&&(n=n.action(r));var o=i.collection||this.collection;n=Array.isArray(o)?(t=n).collection.apply(t,(0,c.default)(o)):n.collection(o);var a=i.where||this.where;a&&Object.keys(a).length&&(n=n.where(a));var s=i.field||this.field;s&&(n=n.field(s));var u=i.foreignKey||this.foreignKey;u&&(n=n.foreignKey(u));var l=i.groupby||this.groupby;l&&(n=n.groupBy(l));var d=i.groupField||this.groupField;d&&(n=n.groupField(d)),!0===(void 0!==i.distinct?i.distinct:this.distinct)&&(n=n.distinct());var f=i.orderby||this.orderby;f&&(n=n.orderBy(f));var p=void 0!==i.pageCurrent?i.pageCurrent:this.mixinDatacomPage.current,h=void 0!==i.pageSize?i.pageSize:this.mixinDatacomPage.size,g=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,_={getCount:g},y={limitLevel:void 0!==i.limitlevel?i.limitlevel:this.limitlevel,startWith:void 0!==i.startwith?i.startwith:this.startwith};return m&&(_.getTree=y),v&&(_.getTreePath=y),n=n.skip(h*(p-1)).limit(h).get(_)}}}}function Yn(e){return H("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}function Xn(){return Zn.apply(this,arguments)}function Zn(){return(Zn=(0,u.default)(r.default.mark((function e(){var t,n,i,o,a,s,c,u=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=u.length>0&&void 0!==u[0]?u[0]:{},n=t.openid,i=t.callLoginByWeixin,o=void 0!==i&&i,a=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||!o){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",(a.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,c=this.importObject("uni-id-co",{customUI:!0}),e.next=14,c.secureNetworkHandshakeByWeixin({code:s,callLoginByWeixin:o});case 14:return a.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,u.default)(r.default.mark((function e(t){var n;return r.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,r){t[e](w(w({},n),{},{success:function(e){i(e)},fail:function(e){r(e)}}))}))}}var ii=function(e){(0,d.default)(i,e);var t,n=x(i);function i(){var e;return(0,g.default)(this,i),(e=n.call(this))._uniPushMessageCallback=e._receivePushMessage.bind((0,o.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,a.default)(t,2),i=n[0],r=(i=void 0===i?{}:i).appId,o=n[1],s=(o=void 0===o?{}:o).cid;if(!r)throw new Error("Invalid appId, please check the manifest.json file");if(!s)throw new Error("Invalid push client id");e._appId=r,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,u.default)(r.default.mark((function e(){return r.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,r=t.message;this._payloadQueue.push({action:n,messageId:i,message:r}),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,g.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),r=1;r<n;r++)i[r-1]=arguments[r];if(t)for(var o=0;o<t.length;o++)t[o].apply(t,i)}}]),e}());var ri={tcb:Et,tencent:Et,aliyun:Ae,private:Nt,alipay:$t},oi=new(function(){function e(){(0,g.default)(this,e)}return(0,m.default)(e,[{key:"init",value:function(e){var t={},n=ri[e.provider];if(!n)throw new Error("\u672a\u63d0\u4f9b\u6b63\u786e\u7684provider\u53c2\u6570");return function(e){e._initPromiseHub||(e._initPromiseHub=new M({createPromise:function(){var t=Promise.resolve();t=new Promise((function(e){setTimeout((function(){e()}),1)}));var n=e.auth();return t.then((function(){return n.getLoginState()})).then((function(e){return e?Promise.resolve():n.signInAnonymously()}))}}))}(t=n.init(e)),an(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),function(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;var n=vn(_n,{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(_n,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=zn,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,r=void 0!==i&&i;return ei.call(e,{openid:n,callLoginByWeixin:r})}}(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),o=i.customUI,a=i.loadingOptions,c=i.errorOptions,l=i.parseSystemError,d=!o;return new Proxy({},{get:function(i,o){switch(o){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,u.default)(r.default.mark((function e(){var o,a,s,c,u,l,d=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(o=d.length,a=new Array(o),s=0;s<o;s++)a[s]=d[s];return c=i?i({params:a}):{},e.prev=2,e.next=5,Q(Y(n,"invoke"),w({},c));case 5:return e.next=7,t.apply(void 0,a);case 7:return u=e.sent,e.next=10,Q(Y(n,"success"),w(w({},c),{},{result:u}));case 10:return e.abrupt("return",u);case 13:return e.prev=13,e.t0=e.catch(2),l=e.t0,e.next=18,Q(Y(n,"fail"),w(w({},c),{},{error:l}));case 18:throw l;case 19:return e.prev=19,e.next=22,Q(Y(n,"complete"),w(w({},c),{},l?{error:l}:{result:u}));case 22:return e.finish(19);case 23:case"end":return e.stop()}}),e,null,[[2,13,19,23]])})))}({fn:function(){var i=(0,u.default)(r.default.mark((function i(){var p,h,g,m,v,_,y,b,x,k,T,S,P,I,A,D=arguments;return r.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:for(d&&uni.showLoading({title:a.title,mask:a.mask}),h=D.length,g=new Array(h),m=0;m<h;m++)g[m]=D[m];return v={name:t,type:O,data:{method:o,params:g}},"object"==(0,s.default)(n.secretMethods)&&function(e,t){var n=t.data.method,i=e.secretMethods||{},r=i[n]||i["*"];r&&(t.secretType=r)}(n,v),_=!1,i.prev=5,i.next=8,e.callFunction(v);case 8:p=i.sent,i.next=14;break;case 11:i.prev=11,i.t0=i.catch(5),_=!0,p={result:new me(i.t0)};case 14:if(y=p.result||{},b=y.errSubject,x=y.errCode,k=y.errMsg,T=y.newToken,d&&uni.hideLoading(),T&&T.token&&T.tokenExpired&&(ye(T),ue(ne,w({},T))),!x){i.next=39;break}if(S=k,!_||!l){i.next=24;break}return i.next=20,l({objectName:t,methodName:o,params:g,errSubject:b,errCode:x,errMsg:k});case 20:if(i.t1=i.sent.errMsg,i.t1){i.next=23;break}i.t1=k;case 23:S=i.t1;case 24:if(!d){i.next=37;break}if("toast"!==c.type){i.next=29;break}uni.showToast({title:S,icon:"none"}),i.next=37;break;case 29:if("modal"===c.type){i.next=31;break}throw new Error("Invalid errorOptions.type: ".concat(c.type));case 31:return i.next=33,(0,u.default)(r.default.mark((function e(){var t,n,i,o,a,s,c=arguments;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.title,i=t.content,o=t.showCancel,a=t.cancelText,s=t.confirmText,e.abrupt("return",new Promise((function(e,t){uni.showModal({title:n,content:i,showCancel:o,cancelText:a,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:S,showCancel:c.retry,cancelText:"\u53d6\u6d88",confirmText:c.retry?"\u91cd\u8bd5":"\u786e\u5b9a"});case 33:if(P=i.sent,I=P.confirm,!c.retry||!I){i.next=37;break}return i.abrupt("return",f.apply(void 0,g));case 37:throw(A=new me({subject:b,code:x,message:k,requestId:p.requestId})).detail=p.result,ue(ee,{type:oe,content:A}),A;case 39:return i.abrupt("return",(ue(ee,{type:oe,content:p.result}),p.result));case 40:case"end":return i.stop()}}),i,null,[[5,11]])})));function f(){return i.apply(this,arguments)}return f}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:o,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,r=!1;if("callFunction"===t){var o=n&&n.type||A;r=o!==A}var a="callFunction"===t&&!r,s=this._initPromiseHub.exec(),c=pe(n=n||{}),u=c.success,l=c.fail,d=c.complete,f=s.then((function(){return r?Promise.resolve():Q(Y(t,"invoke"),n)})).then((function(){return e.call(i,n)})).then((function(e){return r?Promise.resolve(e):Q(Y(t,"success"),e).then((function(){return Q(Y(t,"complete"),e)})).then((function(){return a&&ue(ee,{type:re,content:e}),Promise.resolve(e)}))}),(function(e){return r?Promise.reject(e):Q(Y(t,"fail"),e).then((function(){return Q(Y(t,"complete"),e)})).then((function(){return ue(ee,{type:re,content:e}),Promise.reject(e)}))}));if(!(u||l||d))return f;f.then((function(e){u&&u(e),d&&d(e),a&&ue(ee,{type:re,content:e})}),(function(e){l&&l(e),d&&d(e),a&&ue(ee,{type:re,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],(oi=oi.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){oi[e]=function(){return console.error(n),Promise.reject(new me({code:"SYS_ERR",message:n}))}}))}Object.assign(oi,{get mixinDatacom(){return Qn(oi)}}),Hn(oi),oi.addInterceptor=z,oi.removeInterceptor=J,oi.interceptObject=X}();var ai=oi;t.default=ai}).call(this,n(17).default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return weex.requireModule(e)}},function(e,t,n){var i=n(0),r=n(19)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"===("undefined"==typeof globalThis?"undefined":i(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var i=n(0).default;function r(){"use strict";e.exports=r=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function p(e,t,n,i){var r=t&&t.prototype instanceof y?t:y,o=Object.create(r.prototype),a=new R(i||[]);return s(o,"_invoke",{value:A(e,n,a)}),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var g="suspendedStart",m="executing",v="completed",_={};function y(){}function b(){}function w(){}var x={};f(x,u,(function(){return this}));var k=Object.getPrototypeOf,T=k&&k(k(E([])));T&&T!==o&&a.call(T,u)&&(x=T);var S=w.prototype=y.prototype=Object.create(x);function P(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(r,o,s,c){var u=h(e[r],e,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==i(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var r;s(this,"_invoke",{value:function(e,i){function o(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(o,o):o()}})}function A(e,n,i){var r=g;return function(o,a){if(r===m)throw Error("Generator is already running");if(r===v){if("throw"===o)throw a;return{value:t,done:!0}}for(i.method=o,i.arg=a;;){var s=i.delegate;if(s){var c=O(s,i);if(c){if(c===_)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===g)throw r=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=m;var u=h(e,n,i);if("normal"===u.type){if(r=i.done?v:"suspendedYield",u.arg===_)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=v,i.method="throw",i.arg=u.arg)}}}function O(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),_;var o=h(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,_;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,_):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,_)}function D(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(i(e)+" is not iterable")}return b.prototype=w,s(S,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:b,configurable:!0}),b.displayName=f(w,d,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,f(e,d,"GeneratorFunction")),e.prototype=Object.create(S),e},n.awrap=function(e){return{__await:e}},P(I.prototype),f(I.prototype,l,(function(){return this})),n.AsyncIterator=I,n.async=function(e,t,i,r,o){void 0===o&&(o=Promise);var a=new I(p(e,t,i,r),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(S),f(S,d,"Generator"),f(S,u,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},n.values=E,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,_):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),_},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),_}},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 r=i.arg;C(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:E(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),_}},n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(21),r=n(22),o=n(5),a=n(23);e.exports=function(e,t){return i(e)||r(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},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,r,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},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},function(e,t,n){var i=n(25),r=n(26),o=n(5),a=n(27);e.exports=function(e){return i(e)||r(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(6);e.exports=function(e){if(Array.isArray(e))return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},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},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},function(e,t){function n(e,t,n,i,r,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(i,r)}e.exports=function(e){return function(){var t=this,i=arguments;return new Promise((function(r,o){var a=e.apply(t,i);function s(e){n(a,r,o,s,c,"next",e)}function c(e){n(a,r,o,s,c,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},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 r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(3),r=n(2),o=n(31),a=n(32);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(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 a(e,arguments,i(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){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},function(e,t,n){var i=n(2),r=n(33);e.exports=function(e,t,n){if(r())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var a=new(e.bind.apply(e,o));return n&&i(a,n.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports},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},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/user/visitor",style:{navigationBarTitleText:"\u6e38\u5ba2\u767b\u5f55",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/user/cateList",style:{navigationBarTitleText:"\u5206\u7c7b\u5217\u8868",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/user/curriculumDetail",style:{navigationBarTitleText:"\u8bfe\u7a0b\u8be6\u60c5",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/mine/wallet/couponList",style:{navigationBarTitleText:"\u7528\u6237\u4f18\u60e0\u5238\u5217\u8868",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/homePage/index/index",style:{navigationBarTitleText:"\u9996\u9875",enablePullDownRefresh:!1,onReachBottomDistance:100,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/TaihuPublicWelfare/index/index",style:{navigationBarTitleText:"\u592a\u6e56\u516c\u76ca",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/aboutUs/setFontSize",style:{navigationBarTitleText:"\u8bbe\u7f6e\u5b57\u4f53",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/mine/aboutUs/agreement",style:{navigationBarTitleText:"\u534f\u8bae",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/mine/vip/index",style:{navigationBarTitleText:"vip",enablePullDownRefresh:!1,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"}},renderjs:"renderjs/custom.js"},{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/template/template",style:{navigationBarTitleText:"\u6a21\u7248","app-plus":{titleNView:{buttons:[{text:"\ue534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}}},{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"}]}}}},{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"}}},{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}},{path:"pages/homePage/index/workOrder",style:{navigationBarTitleText:"\u53cd\u9988\u5de5\u5355",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}}],subPackages:[],globalStyle:{pageOrientation:"portrait",navigationBarTitleText:"Hello uniapp",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#007AFF",backgroundColor:"#EDF6F5",backgroundColorTop:"#F4F5F6",backgroundColorBottom:"#F4F5F6","mp-360":{navigationStyle:"custom"},h5:{maxWidth:1190,navigationBarTextStyle:"black",navigationBarBackgroundColor:"#F1F1F1"},"app-plus":{bounce:"none"}},tabBar:{color:"#7b7b7b",selectedColor:"#5599A7",fontSize:"14px",borderStyle:"black",backgroundColor:"#fff",list:[{pagePath:"pages/homePage/index/index",iconPath:"static/tab/home.png",selectedIconPath:"static/tab/home_active.png",text:"\u9996\u9875"},{pagePath:"pages/TaihuPublicWelfare/index/index",iconPath:"static/tab/thgy.png",selectedIconPath:"static/tab/thgy_active.png",text:"\u592a\u6e56\u516c\u76ca"},{pagePath:"pages/bookShop/orderList",iconPath:"static/tab/order.png",selectedIconPath:"static/tab/order_active.png",text:"\u8ba2\u5355"},{pagePath:"pages/mine/mine/index",iconPath:"static/tab/mine.png",selectedIconPath:"static/tab/mine_active.png",text:"\u6211\u7684"}]},nvue:{pages:[{path:"pages/component/cover-view/cover-view.html",style:{navigationBarTitleText:"cover-view"}},{path:"pages/component/video/video.html",style:{navigationBarTitleText:"video"}},{path:"pages/component/map/map.html",style:{navigationBarTitleText:"map"}}]}}},function(e,t,n){"use strict";n.r(t),t.default={pages:{},globalStyle:{}}},function(e,t){e.exports=Vue},function(e,t){},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}},function(e,t,n){"use strict";var i=n(63),r=n(54),o=n(1);var a=Object(o.a)(r.default,i.b,i.c,!1,null,null,"f9c55f04",!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(74).default,this.options.style):Object.assign(this.options.style,n(74).default)}).call(a),t.default=a.exports},,,function(e,t,n){"use strict";n.r(t);var i=n(43),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t.default=r.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"uniList","mp-weixin":{options:{multipleSlots:!1}},props:{enableBackToTop:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},border:{type:Boolean,default:!0}},created:function(){this.firstChildAppend=!1},methods:{loadMore:function(e){this.$emit("scrolltolower")}}};t.default=i},function(e,t){e.exports={"uni-list":{backgroundColor:"#ffffff",position:"relative",flexDirection:"column"},"uni-list--border":{position:"relative",borderTopColor:"#e5e5e5",borderTopStyle:"solid",borderTopWidth:"0.5",borderBottomColor:"#e5e5e5",borderBottomStyle:"solid",borderBottomWidth:"0.5",zIndex:-1},"@VERSION":2}},function(e,t,n){"use strict";n.r(t);var i=n(46),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t.default=r.a},function(e,t,n){"use strict";var i=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(81)),o=i(n(82));weex.requireModule("dom").addRule("fontFace",{fontFamily:"uniicons",src:"url('"+o.default+"')"});var a={name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""}},data:function(){return{icons:r.default.glyphs}},computed:{unicode:function(){var e=this,t=this.icons.find((function(t){return t.font_class===e.type}));return t?unescape("%u".concat(t.unicode)):""},iconSize:function(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e}},methods:{_onClick:function(){this.$emit("click")}}};t.default=a},function(e,t){e.exports={"uni-icons":{fontFamily:"uniicons",textDecoration:"none",textAlign:"center"},"@VERSION":2}},function(e,t,n){"use strict";n.r(t);var i=n(49),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t.default=r.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"UniBadge",emits:["click"],props:{type:{type:String,default:"error"},inverted:{type:Boolean,default:!1},isDot:{type:Boolean,default:!1},maxNum:{type:Number,default:99},absolute:{type:String,default:""},offset:{type:Array,default:function(){return[0,0]}},text:{type:[String,Number],default:""},size:{type:String,default:"small"},customStyle:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{width:function(){return 8*String(this.text).length+12},classNames:function(){var e=this.inverted,t=this.type;return[e?"uni-badge--"+t+"-inverted":"","uni-badge--"+t,"uni-badge--"+this.size,this.absolute?"uni-badge--absolute":""].join(" ")},positionStyle:function(){if(!this.absolute)return{};var e=this.width/2,t=10;this.isDot&&(e=5,t=5);var n="".concat(-e+this.offset[0],"px"),i="".concat(-t+this.offset[1],"px"),r={rightTop:{right:n,top:i},rightBottom:{right:n,bottom:i},leftBottom:{left:n,bottom:i},leftTop:{left:n,top:i}},o=r[this.absolute];return o||r.rightTop},dotStyle:function(){return this.isDot?{width:"10px",minWidth:"0",height:"10px",padding:"0",borderRadius:"10px"}:{}},displayValue:function(){var e=this.isDot,t=this.text,n=this.maxNum;return e?"":Number(t)>n?"".concat(n,"+"):t}},methods:{onClick:function(){this.$emit("click")}}};t.default=i},function(e,t){e.exports={"uni-badge--x":{position:"relative"},"uni-badge--absolute":{position:"absolute"},"uni-badge--small":{transform:"scale(0.8)",transformOrigin:"center center"},"uni-badge":{justifyContent:"center",flexDirection:"row",height:"20",minWidth:"20",paddingTop:0,paddingRight:"4",paddingBottom:0,paddingLeft:"4",lineHeight:"18",color:"#ffffff",borderRadius:"100",backgroundColor:"rgba(0,0,0,0)",borderWidth:"1",borderStyle:"solid",borderColor:"#ffffff",textAlign:"center",fontFamily:"'Helvetica Neue', Helvetica, sans-serif",fontFeatureSettings:'"tnum"',fontSize:"12"},"uni-badge--info":{color:"#ffffff",backgroundColor:"#909399"},"uni-badge--primary":{backgroundColor:"#2979ff"},"uni-badge--success":{backgroundColor:"#4cd964"},"uni-badge--warning":{backgroundColor:"#f0ad4e"},"uni-badge--error":{backgroundColor:"#dd524d"},"uni-badge--inverted":{paddingTop:0,paddingRight:"5",paddingBottom:0,paddingLeft:0,color:"#909399"},"uni-badge--info-inverted":{color:"#909399",backgroundColor:"rgba(0,0,0,0)"},"uni-badge--primary-inverted":{color:"#2979ff",backgroundColor:"rgba(0,0,0,0)"},"uni-badge--success-inverted":{color:"#4cd964",backgroundColor:"rgba(0,0,0,0)"},"uni-badge--warning-inverted":{color:"#f0ad4e",backgroundColor:"rgba(0,0,0,0)"},"uni-badge--error-inverted":{color:"#dd524d",backgroundColor:"rgba(0,0,0,0)"},"@VERSION":2}},function(e,t,n){"use strict";n.r(t);var i=n(52),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t.default=r.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"UniListItem",emits:["click","switchChange"],props:{direction:{type:String,default:"row"},title:{type:String,default:""},note:{type:String,default:""},ellipsis:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1},clickable:{type:Boolean,default:!1},showArrow:{type:[Boolean,String],default:!1},link:{type:[Boolean,String],default:!1},to:{type:String,default:""},showBadge:{type:[Boolean,String],default:!1},showSwitch:{type:[Boolean,String],default:!1},switchChecked:{type:[Boolean,String],default:!1},badgeText:{type:String,default:""},badgeType:{type:String,default:"success"},badgeStyle:{type:Object,default:function(){return{}}},rightText:{type:String,default:""},thumb:{type:String,default:""},thumbSize:{type:String,default:"base"},showExtraIcon:{type:[Boolean,String],default:!1},extraIcon:{type:Object,default:function(){return{type:"",color:"#000000",size:20}}},border:{type:Boolean,default:!0}},data:function(){return{isFirstChild:!1}},mounted:function(){this.list=this.getForm(),this.list&&(this.list.firstChildAppend||(this.list.firstChildAppend=!0,this.isFirstChild=!0))},methods:{getForm:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniList",t=this.$parent,n=t.$options.name;n!==e;){if(!(t=t.$parent))return!1;n=t.$options.name}return t},onClick:function(){""===this.to?(this.clickable||this.link)&&this.$emit("click",{data:{}}):this.openPage()},onSwitchChange:function(e){this.$emit("switchChange",e.detail)},openPage:function(){-1!==["navigateTo","redirectTo","reLaunch","switchTab"].indexOf(this.link)?this.pageApi(this.link):this.pageApi("navigateTo")},pageApi:function(e){var t=this,n={url:this.to,success:function(e){t.$emit("click",{data:e})},fail:function(e){t.$emit("click",{data:e})}};switch(e){case"navigateTo":uni.navigateTo(n);break;case"redirectTo":uni.redirectTo(n);break;case"reLaunch":uni.reLaunch(n);break;case"switchTab":uni.switchTab(n);break;default:uni.navigateTo(n)}}}};t.default=i},function(e,t){e.exports={"uni-list-item":{fontSize:"16",position:"relative",justifyContent:"space-between",alignItems:"center",backgroundColor:"#ffffff",flexDirection:"row"},"uni-list-item--disabled":{opacity:.3},"uni-list-item--hover":{backgroundColor:"#f1f1f1"},"uni-list-item__container":{position:"relative",flexDirection:"row",paddingTop:"12",paddingRight:"15",paddingBottom:"12",paddingLeft:"15",flex:1,overflow:"hidden"},"container--right":{paddingRight:0},"uni-list--border":{position:"absolute",top:0,right:0,left:0,borderTopColor:"#e5e5e5",borderTopStyle:"solid",borderTopWidth:"0.5"},"uni-list-item__content":{paddingRight:"8",flex:1,color:"#3b4144",flexDirection:"column",justifyContent:"space-between",overflow:"hidden"},"uni-list-item__content--center":{justifyContent:"center"},"uni-list-item__content-title":{fontSize:"14",color:"#3b4144",overflow:"hidden"},"uni-list-item__content-note":{marginTop:6,color:"#999999",fontSize:"12",overflow:"hidden"},"uni-list-item__extra":{flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},"uni-list-item__header":{flexDirection:"row",alignItems:"center"},"uni-list-item__icon":{marginRight:18,flexDirection:"row",justifyContent:"center",alignItems:"center"},"uni-list-item__icon-img":{height:"26",width:"26",marginRight:"10"},"uni-icon-wrapper":{alignItems:"center",paddingTop:0,paddingRight:"10",paddingBottom:0,paddingLeft:"10"},"flex--direction":{flexDirection:"column"},"uni-list--lg":{height:"40",width:"40"},"uni-list--base":{height:"26",width:"26"},"uni-list--sm":{height:"20",width:"20"},"uni-list-item__extra-text":{color:"#999999",fontSize:"12"},"uni-ellipsis-1":{lines:1,textOverflow:"ellipsis"},"uni-ellipsis-2":{lines:2,textOverflow:"ellipsis"},"@VERSION":2}},function(e,t,n){"use strict";var i=n(55),r=n.n(i);t.default=r.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={data:function(){return{location:{longitude:116.397477,latitude:39.908692},controls:[{id:1,position:{left:5,top:180,width:30,height:30},iconPath:"/static/logo.png",clickable:!0}],showLocation:!1,scale:13,showCompass:!0,enable3D:!0,enableOverlooking:!0,enableZoom:!0,enableScroll:!0,enableRotate:!0,enableSatellite:!1,enableTraffic:!1,polyline:[],markers:[],polygons:[],circles:[],includePoints:[],rotate:0,skew:0}},onLoad:function(){},methods:{changeScale:function(){this.scale=9==this.scale?15:9},changeRotate:function(){this.rotate=90==this.rotate?0:90},changeSkew:function(){this.skew=30==this.skew?0:30},enableThreeD:function(e){this.enable3D=e.value},changeShowCompass:function(e){this.showCompass=e.value},changeEnableOverlooking:function(e){this.enableOverlooking=e.value},changeEnableZoom:function(e){this.enableZoom=e.value},changeEnableScroll:function(e){this.enableScroll=e.value},changeEnableRotate:function(e){this.enableRotate=e.value},changeEnableSatellite:function(e){this.enableSatellite=e.value},changeEnableTraffic:function(e){this.enableTraffic=e.value}}}},function(e,t){e.exports={content:{flex:1},map:{width:750,height:"250",backgroundColor:"#f5f5f5"},line:{height:"4"},scrollview:{flex:1},"@VERSION":2}},,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={uniList:n(78).default,uniListItem:n(79).default},r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("view",{staticClass:["content"]},[n("map",{ref:"map1",staticClass:["map"],attrs:{controls:e.controls,scale:e.scale,longitude:e.location.longitude,latitude:e.location.latitude,showLocation:e.showLocation,enable3D:e.enable3D,rotate:e.rotate,skew:e.skew,showCompass:e.showCompass,enableOverlooking:e.enableOverlooking,enableZoom:e.enableZoom,enableScroll:e.enableScroll,enableRotate:e.enableRotate,enableSatellite:e.enableSatellite,enableTraffic:e.enableTraffic,markers:e.markers,polyline:e.polyline,circles:e.circles,polygons:e.polygons,includePoints:e.includePoints}}),n("view",{staticClass:["line"]}),n("uni-list",{staticClass:["scrollview"]},[n("uni-list-item",{attrs:{showArrow:!1,showSwitch:!0,switchChecked:e.enable3D,title:"\u663e\u793a3D\u697c\u5757"},on:{switchChange:e.enableThreeD}}),n("uni-list-item",{attrs:{showArrow:!1,showSwitch:!0,switchChecked:e.showCompass,title:"\u663e\u793a\u6307\u5357\u9488"},on:{switchChange:e.changeShowCompass}}),n("uni-list-item",{attrs:{showArrow:!1,showSwitch:!0,switchChecked:e.enableZoom,title:"\u662f\u5426\u652f\u6301\u7f29\u653e"},on:{switchChange:e.changeEnableZoom}}),n("uni-list-item",{attrs:{showArrow:!1,showSwitch:!0,switchChecked:e.enableScroll,title:"\u662f\u5426\u652f\u6301\u62d6\u52a8"},on:{switchChange:e.changeEnableScroll}}),n("uni-list-item",{attrs:{showArrow:!1,showSwitch:!0,switchChecked:e.enableRotate,title:"\u662f\u5426\u652f\u6301\u65cb\u8f6c"},on:{switchChange:e.changeEnableRotate}}),n("uni-list-item",{attrs:{showArrow:!1,showSwitch:!0,switchChecked:e.enableSatellite,title:"\u662f\u5426\u5f00\u542f\u536b\u661f\u56fe"},on:{switchChange:e.changeEnableSatellite}}),n("uni-list-item",{attrs:{showArrow:!1,showSwitch:!0,switchChecked:e.enableTraffic,title:"\u662f\u5426\u5f00\u542f\u5b9e\u65f6\u8def\u51b5"},on:{switchChange:e.changeEnableTraffic}})],1)],1)},o=[]},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement;return(this._self._c||e)("list",{staticClass:["uni-list"],class:{"uni-list--border":this.border},attrs:{enableBackToTop:this.enableBackToTop,loadmoreoffset:"15"}},[this._t("default")],2)},r=[]},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={uniIcons:n(80).default,uniBadge:n(83).default},r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("cell",{appendAsTree:!0,attrs:{append:"tree"}},[n("view",{staticClass:["uni-list-item"],class:{"uni-list-item--disabled":e.disabled},attrs:{hoverClass:!e.clickable&&!e.link||e.disabled||e.showSwitch?"":"uni-list-item--hover"},on:{click:e.onClick}},[e.isFirstChild?e._e():n("view",{staticClass:["border--left"],class:{"uni-list--border":e.border}}),n("view",{staticClass:["uni-list-item__container"],class:{"container--right":e.showArrow||e.link,"flex--direction":"column"===e.direction}},[e._t("header",[n("view",{staticClass:["uni-list-item__header"]},[e.thumb?n("view",{staticClass:["uni-list-item__icon"]},[n("image",{staticClass:["uni-list-item__icon-img"],class:["uni-list--"+e.thumbSize],attrs:{src:e.thumb}})]):e.showExtraIcon?n("view",{staticClass:["uni-list-item__icon"]},[n("uni-icons",{attrs:{color:e.extraIcon.color,size:e.extraIcon.size,type:e.extraIcon.type}})],1):e._e()])]),e._t("body",[n("view",{staticClass:["uni-list-item__content"],class:{"uni-list-item__content--center":e.thumb||e.showExtraIcon||e.showBadge||e.showSwitch}},[e.title?n("text",{staticClass:["uni-list-item__content-title"],class:[0!==e.ellipsis&&e.ellipsis<=2?"uni-ellipsis-"+e.ellipsis:""],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(e.title))]):e._e(),e.note?n("text",{staticClass:["uni-list-item__content-note"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(e.note))]):e._e()])]),e._t("footer",[e.rightText||e.showBadge||e.showSwitch?n("view",{staticClass:["uni-list-item__extra"],class:{"flex--justify":"column"===e.direction}},[e.rightText?n("text",{staticClass:["uni-list-item__extra-text"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(e.rightText))]):e._e(),e.showBadge?n("uni-badge",{attrs:{type:e.badgeType,text:e.badgeText,customStyle:e.badgeStyle}}):e._e(),e.showSwitch?n("switch",{attrs:{disabled:e.disabled,checked:e.switchChecked},on:{change:e.onSwitchChange}}):e._e()],1):e._e()])],2),e.showArrow||e.link?n("uni-icons",{staticClass:["uni-icon-wrapper"],attrs:{size:16,color:"#bbb",type:"arrowright"}}):e._e()],1)])},o=[]},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement;return(this._self._c||e)("text",{staticClass:["uni-icons"],style:{color:this.color,"font-size":this.iconSize},appendAsTree:!0,attrs:{append:"tree"},on:{click:this._onClick}},[this._v(this._s(this.unicode))])},r=[]},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("view",{staticClass:["uni-badge--x"]},[e._t("default"),e.text?n("text",{staticClass:["uni-badge"],class:e.classNames,style:[e.positionStyle,e.customStyle,e.dotStyle],appendAsTree:!0,attrs:{append:"tree"},on:{click:function(t){e.onClick()}}},[e._v(e._s(e.displayValue))]):e._e()],2)},r=[]},function(e,t,n){"use strict";n.r(t);var i=n(44),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t.default=r.a},function(e,t,n){"use strict";n.r(t);var i=n(47),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t.default=r.a},function(e,t,n){"use strict";n.r(t);var i=n(50),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t.default=r.a},function(e,t,n){"use strict";n.r(t);var i=n(53),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t.default=r.a},function(e,t,n){"use strict";n.r(t);var i=n(56),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t.default=r.a},,,function(e,t,n){"use strict";n.r(t);n(15),n(37),n(38);var i=n(39);i.default.mpType="page",i.default.route="pages/component/map/map",i.default.el="#root",new Vue(i.default)},function(e,t,n){"use strict";n.r(t);var i=n(66),r=n(42);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var a=n(1);var s=Object(a.a)(r.default,i.b,i.c,!1,null,null,"8b9a1404",!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(70).default,this.options.style):Object.assign(this.options.style,n(70).default)}).call(s),t.default=s.exports},function(e,t,n){"use strict";n.r(t);var i=n(67),r=n(51);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var a=n(1);var s=Object(a.a)(r.default,i.b,i.c,!1,null,null,"81b4daa0",!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(73).default,this.options.style):Object.assign(this.options.style,n(73).default)}).call(s),t.default=s.exports},function(e,t,n){"use strict";n.r(t);var i=n(68),r=n(45);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var a=n(1);var s=Object(a.a)(r.default,i.b,i.c,!1,null,null,"792dd300",!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(71).default,this.options.style):Object.assign(this.options.style,n(71).default)}).call(s),t.default=s.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={id:"2852637",name:"uniui\u56fe\u6807\u5e93",font_family:"uniicons",css_prefix_text:"uniui-",description:"",glyphs:[{icon_id:"25027049",name:"yanse",font_class:"color",unicode:"e6cf",unicode_decimal:59087},{icon_id:"25027048",name:"wallet",font_class:"wallet",unicode:"e6b1",unicode_decimal:59057},{icon_id:"25015720",name:"settings-filled",font_class:"settings-filled",unicode:"e6ce",unicode_decimal:59086},{icon_id:"25015434",name:"shimingrenzheng-filled",font_class:"auth-filled",unicode:"e6cc",unicode_decimal:59084},{icon_id:"24934246",name:"shop-filled",font_class:"shop-filled",unicode:"e6cd",unicode_decimal:59085},{icon_id:"24934159",name:"staff-filled-01",font_class:"staff-filled",unicode:"e6cb",unicode_decimal:59083},{icon_id:"24932461",name:"VIP-filled",font_class:"vip-filled",unicode:"e6c6",unicode_decimal:59078},{icon_id:"24932462",name:"plus_circle_fill",font_class:"plus-filled",unicode:"e6c7",unicode_decimal:59079},{icon_id:"24932463",name:"folder_add-filled",font_class:"folder-add-filled",unicode:"e6c8",unicode_decimal:59080},{icon_id:"24932464",name:"yanse-filled",font_class:"color-filled",unicode:"e6c9",unicode_decimal:59081},{icon_id:"24932465",name:"tune-filled",font_class:"tune-filled",unicode:"e6ca",unicode_decimal:59082},{icon_id:"24932455",name:"a-rilidaka-filled",font_class:"calendar-filled",unicode:"e6c0",unicode_decimal:59072},{icon_id:"24932456",name:"notification-filled",font_class:"notification-filled",unicode:"e6c1",unicode_decimal:59073},{icon_id:"24932457",name:"wallet-filled",font_class:"wallet-filled",unicode:"e6c2",unicode_decimal:59074},{icon_id:"24932458",name:"paihangbang-filled",font_class:"medal-filled",unicode:"e6c3",unicode_decimal:59075},{icon_id:"24932459",name:"gift-filled",font_class:"gift-filled",unicode:"e6c4",unicode_decimal:59076},{icon_id:"24932460",name:"fire-filled",font_class:"fire-filled",unicode:"e6c5",unicode_decimal:59077},{icon_id:"24928001",name:"refreshempty",font_class:"refreshempty",unicode:"e6bf",unicode_decimal:59071},{icon_id:"24926853",name:"location-ellipse",font_class:"location-filled",unicode:"e6af",unicode_decimal:59055},{icon_id:"24926735",name:"person-filled",font_class:"person-filled",unicode:"e69d",unicode_decimal:59037},{icon_id:"24926703",name:"personadd-filled",font_class:"personadd-filled",unicode:"e698",unicode_decimal:59032},{icon_id:"24923351",name:"back",font_class:"back",unicode:"e6b9",unicode_decimal:59065},{icon_id:"24923352",name:"forward",font_class:"forward",unicode:"e6ba",unicode_decimal:59066},{icon_id:"24923353",name:"arrowthinright",font_class:"arrow-right",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923353",name:"arrowthinright",font_class:"arrowthinright",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrow-left",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrowthinleft",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923355",name:"arrowthinup",font_class:"arrow-up",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923355",name:"arrowthinup",font_class:"arrowthinup",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923356",name:"arrowthindown",font_class:"arrow-down",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923356",name:"arrowthindown",font_class:"arrowthindown",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923349",name:"arrowdown",font_class:"bottom",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923349",name:"arrowdown",font_class:"arrowdown",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923346",name:"arrowright",font_class:"right",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923346",name:"arrowright",font_class:"arrowright",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923347",name:"arrowup",font_class:"top",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923347",name:"arrowup",font_class:"arrowup",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923348",name:"arrowleft",font_class:"left",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923348",name:"arrowleft",font_class:"arrowleft",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923334",name:"eye",font_class:"eye",unicode:"e651",unicode_decimal:58961},{icon_id:"24923335",name:"eye-filled",font_class:"eye-filled",unicode:"e66a",unicode_decimal:58986},{icon_id:"24923336",name:"eye-slash",font_class:"eye-slash",unicode:"e6b3",unicode_decimal:59059},{icon_id:"24923337",name:"eye-slash-filled",font_class:"eye-slash-filled",unicode:"e6b4",unicode_decimal:59060},{icon_id:"24923305",name:"info-filled",font_class:"info-filled",unicode:"e649",unicode_decimal:58953},{icon_id:"24923299",name:"reload-01",font_class:"reload",unicode:"e6b2",unicode_decimal:59058},{icon_id:"24923195",name:"mic_slash_fill",font_class:"micoff-filled",unicode:"e6b0",unicode_decimal:59056},{icon_id:"24923165",name:"map-pin-ellipse",font_class:"map-pin-ellipse",unicode:"e6ac",unicode_decimal:59052},{icon_id:"24923166",name:"map-pin",font_class:"map-pin",unicode:"e6ad",unicode_decimal:59053},{icon_id:"24923167",name:"location",font_class:"location",unicode:"e6ae",unicode_decimal:59054},{icon_id:"24923064",name:"starhalf",font_class:"starhalf",unicode:"e683",unicode_decimal:59011},{icon_id:"24923065",name:"star",font_class:"star",unicode:"e688",unicode_decimal:59016},{icon_id:"24923066",name:"star-filled",font_class:"star-filled",unicode:"e68f",unicode_decimal:59023},{icon_id:"24899646",name:"a-rilidaka",font_class:"calendar",unicode:"e6a0",unicode_decimal:59040},{icon_id:"24899647",name:"fire",font_class:"fire",unicode:"e6a1",unicode_decimal:59041},{icon_id:"24899648",name:"paihangbang",font_class:"medal",unicode:"e6a2",unicode_decimal:59042},{icon_id:"24899649",name:"font",font_class:"font",unicode:"e6a3",unicode_decimal:59043},{icon_id:"24899650",name:"gift",font_class:"gift",unicode:"e6a4",unicode_decimal:59044},{icon_id:"24899651",name:"link",font_class:"link",unicode:"e6a5",unicode_decimal:59045},{icon_id:"24899652",name:"notification",font_class:"notification",unicode:"e6a6",unicode_decimal:59046},{icon_id:"24899653",name:"staff",font_class:"staff",unicode:"e6a7",unicode_decimal:59047},{icon_id:"24899654",name:"VIP",font_class:"vip",unicode:"e6a8",unicode_decimal:59048},{icon_id:"24899655",name:"folder_add",font_class:"folder-add",unicode:"e6a9",unicode_decimal:59049},{icon_id:"24899656",name:"tune",font_class:"tune",unicode:"e6aa",unicode_decimal:59050},{icon_id:"24899657",name:"shimingrenzheng",font_class:"auth",unicode:"e6ab",unicode_decimal:59051},{icon_id:"24899565",name:"person",font_class:"person",unicode:"e699",unicode_decimal:59033},{icon_id:"24899566",name:"email-filled",font_class:"email-filled",unicode:"e69a",unicode_decimal:59034},{icon_id:"24899567",name:"phone-filled",font_class:"phone-filled",unicode:"e69b",unicode_decimal:59035},{icon_id:"24899568",name:"phone",font_class:"phone",unicode:"e69c",unicode_decimal:59036},{icon_id:"24899570",name:"email",font_class:"email",unicode:"e69e",unicode_decimal:59038},{icon_id:"24899571",name:"personadd",font_class:"personadd",unicode:"e69f",unicode_decimal:59039},{icon_id:"24899558",name:"chatboxes-filled",font_class:"chatboxes-filled",unicode:"e692",unicode_decimal:59026},{icon_id:"24899559",name:"contact",font_class:"contact",unicode:"e693",unicode_decimal:59027},{icon_id:"24899560",name:"chatbubble-filled",font_class:"chatbubble-filled",unicode:"e694",unicode_decimal:59028},{icon_id:"24899561",name:"contact-filled",font_class:"contact-filled",unicode:"e695",unicode_decimal:59029},{icon_id:"24899562",name:"chatboxes",font_class:"chatboxes",unicode:"e696",unicode_decimal:59030},{icon_id:"24899563",name:"chatbubble",font_class:"chatbubble",unicode:"e697",unicode_decimal:59031},{icon_id:"24881290",name:"upload-filled",font_class:"upload-filled",unicode:"e68e",unicode_decimal:59022},{icon_id:"24881292",name:"upload",font_class:"upload",unicode:"e690",unicode_decimal:59024},{icon_id:"24881293",name:"weixin",font_class:"weixin",unicode:"e691",unicode_decimal:59025},{icon_id:"24881274",name:"compose",font_class:"compose",unicode:"e67f",unicode_decimal:59007},{icon_id:"24881275",name:"qq",font_class:"qq",unicode:"e680",unicode_decimal:59008},{icon_id:"24881276",name:"download-filled",font_class:"download-filled",unicode:"e681",unicode_decimal:59009},{icon_id:"24881277",name:"pengyouquan",font_class:"pyq",unicode:"e682",unicode_decimal:59010},{icon_id:"24881279",name:"sound",font_class:"sound",unicode:"e684",unicode_decimal:59012},{icon_id:"24881280",name:"trash-filled",font_class:"trash-filled",unicode:"e685",unicode_decimal:59013},{icon_id:"24881281",name:"sound-filled",font_class:"sound-filled",unicode:"e686",unicode_decimal:59014},{icon_id:"24881282",name:"trash",font_class:"trash",unicode:"e687",unicode_decimal:59015},{icon_id:"24881284",name:"videocam-filled",font_class:"videocam-filled",unicode:"e689",unicode_decimal:59017},{icon_id:"24881285",name:"spinner-cycle",font_class:"spinner-cycle",unicode:"e68a",unicode_decimal:59018},{icon_id:"24881286",name:"weibo",font_class:"weibo",unicode:"e68b",unicode_decimal:59019},{icon_id:"24881288",name:"videocam",font_class:"videocam",unicode:"e68c",unicode_decimal:59020},{icon_id:"24881289",name:"download",font_class:"download",unicode:"e68d",unicode_decimal:59021},{icon_id:"24879601",name:"help",font_class:"help",unicode:"e679",unicode_decimal:59001},{icon_id:"24879602",name:"navigate-filled",font_class:"navigate-filled",unicode:"e67a",unicode_decimal:59002},{icon_id:"24879603",name:"plusempty",font_class:"plusempty",unicode:"e67b",unicode_decimal:59003},{icon_id:"24879604",name:"smallcircle",font_class:"smallcircle",unicode:"e67c",unicode_decimal:59004},{icon_id:"24879605",name:"minus-filled",font_class:"minus-filled",unicode:"e67d",unicode_decimal:59005},{icon_id:"24879606",name:"micoff",font_class:"micoff",unicode:"e67e",unicode_decimal:59006},{icon_id:"24879588",name:"closeempty",font_class:"closeempty",unicode:"e66c",unicode_decimal:58988},{icon_id:"24879589",name:"clear",font_class:"clear",unicode:"e66d",unicode_decimal:58989},{icon_id:"24879590",name:"navigate",font_class:"navigate",unicode:"e66e",unicode_decimal:58990},{icon_id:"24879591",name:"minus",font_class:"minus",unicode:"e66f",unicode_decimal:58991},{icon_id:"24879592",name:"image",font_class:"image",unicode:"e670",unicode_decimal:58992},{icon_id:"24879593",name:"mic",font_class:"mic",unicode:"e671",unicode_decimal:58993},{icon_id:"24879594",name:"paperplane",font_class:"paperplane",unicode:"e672",unicode_decimal:58994},{icon_id:"24879595",name:"close",font_class:"close",unicode:"e673",unicode_decimal:58995},{icon_id:"24879596",name:"help-filled",font_class:"help-filled",unicode:"e674",unicode_decimal:58996},{icon_id:"24879597",name:"plus-filled",font_class:"paperplane-filled",unicode:"e675",unicode_decimal:58997},{icon_id:"24879598",name:"plus",font_class:"plus",unicode:"e676",unicode_decimal:58998},{icon_id:"24879599",name:"mic-filled",font_class:"mic-filled",unicode:"e677",unicode_decimal:58999},{icon_id:"24879600",name:"image-filled",font_class:"image-filled",unicode:"e678",unicode_decimal:59e3},{icon_id:"24855900",name:"locked-filled",font_class:"locked-filled",unicode:"e668",unicode_decimal:58984},{icon_id:"24855901",name:"info",font_class:"info",unicode:"e669",unicode_decimal:58985},{icon_id:"24855903",name:"locked",font_class:"locked",unicode:"e66b",unicode_decimal:58987},{icon_id:"24855884",name:"camera-filled",font_class:"camera-filled",unicode:"e658",unicode_decimal:58968},{icon_id:"24855885",name:"chat-filled",font_class:"chat-filled",unicode:"e659",unicode_decimal:58969},{icon_id:"24855886",name:"camera",font_class:"camera",unicode:"e65a",unicode_decimal:58970},{icon_id:"24855887",name:"circle",font_class:"circle",unicode:"e65b",unicode_decimal:58971},{icon_id:"24855888",name:"checkmarkempty",font_class:"checkmarkempty",unicode:"e65c",unicode_decimal:58972},{icon_id:"24855889",name:"chat",font_class:"chat",unicode:"e65d",unicode_decimal:58973},{icon_id:"24855890",name:"circle-filled",font_class:"circle-filled",unicode:"e65e",unicode_decimal:58974},{icon_id:"24855891",name:"flag",font_class:"flag",unicode:"e65f",unicode_decimal:58975},{icon_id:"24855892",name:"flag-filled",font_class:"flag-filled",unicode:"e660",unicode_decimal:58976},{icon_id:"24855893",name:"gear-filled",font_class:"gear-filled",unicode:"e661",unicode_decimal:58977},{icon_id:"24855894",name:"home",font_class:"home",unicode:"e662",unicode_decimal:58978},{icon_id:"24855895",name:"home-filled",font_class:"home-filled",unicode:"e663",unicode_decimal:58979},{icon_id:"24855896",name:"gear",font_class:"gear",unicode:"e664",unicode_decimal:58980},{icon_id:"24855897",name:"smallcircle-filled",font_class:"smallcircle-filled",unicode:"e665",unicode_decimal:58981},{icon_id:"24855898",name:"map-filled",font_class:"map-filled",unicode:"e666",unicode_decimal:58982},{icon_id:"24855899",name:"map",font_class:"map",unicode:"e667",unicode_decimal:58983},{icon_id:"24855825",name:"refresh-filled",font_class:"refresh-filled",unicode:"e656",unicode_decimal:58966},{icon_id:"24855826",name:"refresh",font_class:"refresh",unicode:"e657",unicode_decimal:58967},{icon_id:"24855808",name:"cloud-upload",font_class:"cloud-upload",unicode:"e645",unicode_decimal:58949},{icon_id:"24855809",name:"cloud-download-filled",font_class:"cloud-download-filled",unicode:"e646",unicode_decimal:58950},{icon_id:"24855810",name:"cloud-download",font_class:"cloud-download",unicode:"e647",unicode_decimal:58951},{icon_id:"24855811",name:"cloud-upload-filled",font_class:"cloud-upload-filled",unicode:"e648",unicode_decimal:58952},{icon_id:"24855813",name:"redo",font_class:"redo",unicode:"e64a",unicode_decimal:58954},{icon_id:"24855814",name:"images-filled",font_class:"images-filled",unicode:"e64b",unicode_decimal:58955},{icon_id:"24855815",name:"undo-filled",font_class:"undo-filled",unicode:"e64c",unicode_decimal:58956},{icon_id:"24855816",name:"more",font_class:"more",unicode:"e64d",unicode_decimal:58957},{icon_id:"24855817",name:"more-filled",font_class:"more-filled",unicode:"e64e",unicode_decimal:58958},{icon_id:"24855818",name:"undo",font_class:"undo",unicode:"e64f",unicode_decimal:58959},{icon_id:"24855819",name:"images",font_class:"images",unicode:"e650",unicode_decimal:58960},{icon_id:"24855821",name:"paperclip",font_class:"paperclip",unicode:"e652",unicode_decimal:58962},{icon_id:"24855822",name:"settings",font_class:"settings",unicode:"e653",unicode_decimal:58963},{icon_id:"24855823",name:"search",font_class:"search",unicode:"e654",unicode_decimal:58964},{icon_id:"24855824",name:"redo-filled",font_class:"redo-filled",unicode:"e655",unicode_decimal:58965},{icon_id:"24841702",name:"list",font_class:"list",unicode:"e644",unicode_decimal:58948},{icon_id:"24841489",name:"mail-open-filled",font_class:"mail-open-filled",unicode:"e63a",unicode_decimal:58938},{icon_id:"24841491",name:"hand-thumbsdown-filled",font_class:"hand-down-filled",unicode:"e63c",unicode_decimal:58940},{icon_id:"24841492",name:"hand-thumbsdown",font_class:"hand-down",unicode:"e63d",unicode_decimal:58941},{icon_id:"24841493",name:"hand-thumbsup-filled",font_class:"hand-up-filled",unicode:"e63e",unicode_decimal:58942},{icon_id:"24841494",name:"hand-thumbsup",font_class:"hand-up",unicode:"e63f",unicode_decimal:58943},{icon_id:"24841496",name:"heart-filled",font_class:"heart-filled",unicode:"e641",unicode_decimal:58945},{icon_id:"24841498",name:"mail-open",font_class:"mail-open",unicode:"e643",unicode_decimal:58947},{icon_id:"24841488",name:"heart",font_class:"heart",unicode:"e639",unicode_decimal:58937},{icon_id:"24839963",name:"loop",font_class:"loop",unicode:"e633",unicode_decimal:58931},{icon_id:"24839866",name:"pulldown",font_class:"pulldown",unicode:"e632",unicode_decimal:58930},{icon_id:"24813798",name:"scan",font_class:"scan",unicode:"e62a",unicode_decimal:58922},{icon_id:"24813786",name:"bars",font_class:"bars",unicode:"e627",unicode_decimal:58919},{icon_id:"24813788",name:"cart-filled",font_class:"cart-filled",unicode:"e629",unicode_decimal:58921},{icon_id:"24813790",name:"checkbox",font_class:"checkbox",unicode:"e62b",unicode_decimal:58923},{icon_id:"24813791",name:"checkbox-filled",font_class:"checkbox-filled",unicode:"e62c",unicode_decimal:58924},{icon_id:"24813794",name:"shop",font_class:"shop",unicode:"e62f",unicode_decimal:58927},{icon_id:"24813795",name:"headphones",font_class:"headphones",unicode:"e630",unicode_decimal:58928},{icon_id:"24813796",name:"cart",font_class:"cart",unicode:"e631",unicode_decimal:58929}]}},function(e,t,n){e.exports=n.p+"assets/uniicons.b6d3756e.ttf"},function(e,t,n){"use strict";n.r(t);var i=n(69),r=n(48);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var a=n(1);var s=Object(a.a)(r.default,i.b,i.c,!1,null,null,"e72292ae",!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(72).default,this.options.style):Object.assign(this.options.style,n(72).default)}).call(s),t.default=s.exports}]);