123456789101112131415161718192021222324252627 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],o=["lanDebug","router","worklet"],i="undefined"!==typeof globalThis?globalThis:function(){return this}(),a=["w","x"].join(""),s=i[a],u=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function c(e){return(!u||1154!==u.scene||!o.includes(e))&&(r.indexOf(e)>-1||"function"===typeof s[e])}function l(){var e={};for(var t in s)c(t)&&(e[t]=s[t]);return e}i[a]=l();var f=i[a];t.default=f},10:function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},11:function(e,t,n){var r=n(12);function o(e,t,n){return t=r(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},12:function(e,t,n){var r=n(13)["default"],o=n(14);function i(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},13: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},14:function(e,t,n){var r=n(13)["default"];function o(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},15:function(e,t,n){var r=n(16),o=n(17);function i(e,t,n){if(o())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var a=new(e.bind.apply(e,i));return n&&r(a,n.prototype),a}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},16:function(e,t){function n(t,r){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,r)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},17: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},18:function(e,t,n){var r=n(19),o=n(20),i=n(8),a=n(21);function s(e){return r(e)||o(e)||i(e)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},185:function(e,t,n){(function(t){var r=n(58),o=n(60);e.exports={data:function(){return{}},onLoad:function(){this.updateCustomBarInfo()},methods:{goBack:function(){var e=getCurrentPages();if(e&&e.length>0){var n=e[0];1!=e.length||n.route&&"pages/index"==n.route?t.navigateBack({delta:1}):t.reLaunch({url:"/pages/index"})}else t.reLaunch({url:"/pages/index"})},updateCustomBarInfo:function(){var e=this;return o(r.mark((function t(){var n,o,i;return r.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.vuex_custom_bar_height,o=e.vuex_status_bar_height,n){t.next=15;break}return t.prev=3,t.next=6,e.$t.updateCustomBar();case 6:i=t.sent,n=i.customBarHeight,o=i.statusBarHeight,t.next=15;break;case 11:return t.prev=11,t.t0=t["catch"](3),setTimeout((function(){e.updateCustomBarInfo()}),10),t.abrupt("return");case 15:e.$t.vuex("vuex_status_bar_height",o),e.$t.vuex("vuex_custom_bar_height",n);case 17:case"end":return t.stop()}}),t,null,[[3,11]])})))()}}}}).call(this,n(2)["default"])},19:function(e,t,n){var r=n(9);function o(e){if(Array.isArray(e))return r(e)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},2:function(e,t,n){"use strict";(function(e,r){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=Nn,t.createComponent=Gn,t.createPage=Jn,t.createPlugin=Zn,t.createSubpackageApp=Xn,t.default=void 0;var i,a=o(n(5)),s=o(n(11)),u=o(n(15)),c=o(n(18)),l=o(n(13)),f=n(22),d=o(n(25));function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",g=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function y(e){return decodeURIComponent(i(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function m(){var t,n=e.getStorageSync("uni_id_token")||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse(y(r[1]))}catch(o){throw new Error("获取当前用户信息出错,详细错误信息为:"+o.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}function _(e){e.prototype.uniIDHasRole=function(e){var t=m(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=m(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=m(),t=e.tokenExpired;return t>Date.now()}}i="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!g.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,o="",i=0;i<e.length;)t=v.indexOf(e.charAt(i++))<<18|v.indexOf(e.charAt(i++))<<12|(n=v.indexOf(e.charAt(i++)))<<6|(r=v.indexOf(e.charAt(i++))),o+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;var b=Object.prototype.toString,w=Object.prototype.hasOwnProperty;function k(e){return"function"===typeof e}function x(e){return"string"===typeof e}function O(e){return null!==e&&"object"===(0,l.default)(e)}function A(e){return"[object Object]"===b.call(e)}function S(e,t){return w.call(e,t)}function P(){}function C(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var E=/-(\w)/g,T=C((function(e){return e.replace(E,(function(e,t){return t?t.toUpperCase():""}))}));function I(e){var t={};return A(e)&&Object.keys(e).sort().forEach((function(n){t[n]=e[n]})),Object.keys(t)?t:e}var j=["invoke","success","fail","complete","returnValue"],$={},M={};function R(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?L(n):n}function L(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function N(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function D(e,t){Object.keys(t).forEach((function(n){-1!==j.indexOf(n)&&k(t[n])&&(e[n]=R(e[n],t[n]))}))}function U(e,t){e&&t&&Object.keys(t).forEach((function(n){-1!==j.indexOf(n)&&k(t[n])&&N(e[n],t[n])}))}function F(e,t){"string"===typeof e&&A(t)?D(M[e]||(M[e]={}),t):A(e)&&D($,e)}function B(e,t){"string"===typeof e?A(t)?U(M[e],t):delete M[e]:A(e)&&U($,e)}function H(e,t){return function(n){return e(n,t)||n}}function q(e){return!!e&&("object"===(0,l.default)(e)||"function"===typeof e)&&"function"===typeof e.then}function V(e,t,n){for(var r=!1,o=0;o<e.length;o++){var i=e[o];if(r)r=Promise.resolve(H(i,n));else{var a=i(t,n);if(q(a)&&(r=Promise.resolve(a)),!1===a)return{then:function(){}}}}return r||{then:function(e){return e(t)}}}function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(e[n])){var r=t[n];t[n]=function(o){V(e[n],o,t).then((function(e){return k(r)&&r(e)||e}))}}})),t}function z(e,t){var n=[];Array.isArray($.returnValue)&&n.push.apply(n,(0,c.default)($.returnValue));var r=M[e];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,(0,c.default)(r.returnValue)),n.forEach((function(e){t=e(t)||t})),t}function W(e){var t=Object.create(null);Object.keys($).forEach((function(e){"returnValue"!==e&&(t[e]=$[e].slice())}));var n=M[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function J(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var a=W(e);if(a&&Object.keys(a).length){if(Array.isArray(a.invoke)){var s=V(a.invoke,n);return s.then((function(n){return t.apply(void 0,[K(W(e),n)].concat(o))}))}return t.apply(void 0,[K(a,n)].concat(o))}return t.apply(void 0,[n].concat(o))}var G={returnValue:function(e){return q(e)?new Promise((function(t,n){e.then((function(e){e[0]?n(e[0]):t(e[1])}))})):e}},X=/^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/,Z=/^create|Manager$/,Y=["createBLEConnection"],Q=["createBLEConnection","createPushMessage"],ee=/^on|^off/;function te(e){return Z.test(e)&&-1===Y.indexOf(e)}function ne(e){return X.test(e)&&-1===Q.indexOf(e)}function re(e){return ee.test(e)&&"onPush"!==e}function oe(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function ie(e){return!(te(e)||ne(e)||re(e))}function ae(e,t){return ie(e)&&k(t)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return k(n.success)||k(n.fail)||k(n.complete)?z(e,J.apply(void 0,[e,t,n].concat(o))):z(e,oe(new Promise((function(r,i){J.apply(void 0,[e,t,Object.assign({},n,{success:r,fail:i})].concat(o))}))))}:t}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}))}))});var se=1e-4,ue=750,ce=!1,le=0,fe=0;function de(){var t=e.getSystemInfoSync(),n=t.platform,r=t.pixelRatio,o=t.windowWidth;le=o,fe=r,ce="ios"===n}function pe(e,t){if(0===le&&de(),e=Number(e),0===e)return 0;var n=e/ue*(t||le);return n<0&&(n=-n),n=Math.floor(n+se),0===n&&(n=1!==fe&&ce?.5:1),e<0?-n:n}var he,ve="zh-Hans",ge="zh-Hant",ye="en",me="fr",_e="es",be={};function we(){if(Ae()){var e=Object.keys(__uniConfig.locales);e.length&&e.forEach((function(e){var t=be[e],n=__uniConfig.locales[e];t?Object.assign(t,n):be[e]=n}))}}he=Ce(e.getSystemInfoSync().language)||ye,we();var ke=(0,f.initVueI18n)(he,{}),xe=ke.t;ke.mixin={beforeCreate:function(){var e=this,t=ke.i18n.watchLocale((function(){e.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){t()}))},methods:{$$t:function(e,t){return xe(e,t)}}},ke.setLocale,ke.getLocale;function Oe(e,t,n){var r=e.observable({locale:n||ke.getLocale()}),o=[];t.$watchLocale=function(e){o.push(e)},Object.defineProperty(t,"$locale",{get:function(){return r.locale},set:function(e){r.locale=e,o.forEach((function(t){return t(e)}))}})}function Ae(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}function Se(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}function Pe(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}function Ce(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return ve;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?ve:e.indexOf("-hant")>-1||Se(e,["-tw","-hk","-mo","-cht"])?ge:ve;var n=Pe(e,[ye,me,_e]);return n||void 0}}function Ee(){if(k(getApp)){var t=getApp({allowDefault:!0});if(t&&t.$vm)return t.$vm.$locale}return Ce(e.getSystemInfoSync().language)||ye}function Te(e){var t=!!k(getApp)&&getApp();if(!t)return!1;var n=t.$vm.$locale;return n!==e&&(t.$vm.$locale=e,Ie.forEach((function(t){return t({locale:e})})),!0)}var Ie=[];function je(e){-1===Ie.indexOf(e)&&Ie.push(e)}"undefined"!==typeof r&&(r.getLocale=Ee);var $e={promiseInterceptor:G},Me=Object.freeze({__proto__:null,upx2px:pe,getLocale:Ee,setLocale:Te,onLocaleChange:je,addInterceptor:F,removeInterceptor:B,interceptors:$e});function Re(e){var t=getCurrentPages(),n=t.length;while(n--){var r=t[n];if(r.$page&&r.$page.fullPath===e)return n}return-1}var Le,Ne={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=Re(e.url);if(-1!==t){var n=getCurrentPages().length-1-t;n>0&&(e.delta=n)}}}},De={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var n=e.urls;if(Array.isArray(n)){var r=n.length;if(r)return t<0?t=0:t>=r&&(t=r-1),t>0?(e.current=n[t],e.urls=n.filter((function(e,r){return!(r<t)||e!==n[t]}))):e.current=n[0],{indicator:!1,loop:!1}}}}},Ue="__DC_STAT_UUID";function Fe(t){Le=Le||e.getStorageSync(Ue),Le||(Le=Date.now()+""+Math.floor(1e7*Math.random()),e.setStorage({key:Ue,data:Le})),t.deviceId=Le}function Be(e){if(e.safeArea){var t=e.safeArea;e.safeAreaInsets={top:t.top,left:t.left,right:e.windowWidth-t.right,bottom:e.screenHeight-t.bottom}}}function He(e){var t=e.brand,n=void 0===t?"":t,r=e.model,o=void 0===r?"":r,i=e.system,a=void 0===i?"":i,s=e.language,u=void 0===s?"":s,c=e.theme,l=e.version,f=(e.platform,e.fontSizeSetting),d=e.SDKVersion,p=e.pixelRatio,h=e.deviceOrientation,v={},g="",y="";g=a.split(" ")[0]||"",y=a.split(" ")[1]||"";var m=l,_=qe(e,o),b=Ve(n),w=ze(e),k=h,x=p,O=d,A=u.replace(/_/g,"-"),S={appId:"__UNI__1EF8770",appName:"速立保",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Ke(A),uniCompileVersion:"4.29",uniRuntimeVersion:"4.29",uniPlatform:"mp-weixin",deviceBrand:b,deviceModel:o,deviceType:_,devicePixelRatio:x,deviceOrientation:k,osName:g.toLocaleLowerCase(),osVersion:y,hostTheme:c,hostVersion:m,hostLanguage:A,hostName:w,hostSDKVersion:O,hostFontSizeSetting:f,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0};Object.assign(e,S,v)}function qe(e,t){for(var n=e.deviceType||"phone",r={ipad:"pad",windows:"pc",mac:"pc"},o=Object.keys(r),i=t.toLocaleLowerCase(),a=0;a<o.length;a++){var s=o[a];if(-1!==i.indexOf(s)){n=r[s];break}}return n}function Ve(e){var t=e;return t&&(t=e.toLocaleLowerCase()),t}function Ke(e){return Ee?Ee():e}function ze(e){var t="WeChat",n=e.hostName||t;return e.environment?n=e.environment:e.host&&e.host.env&&(n=e.host.env),n}var We={returnValue:function(e){Fe(e),Be(e),He(e)}},Je={args:function(e){"object"===(0,l.default)(e)&&(e.alertText=e.title)}},Ge={returnValue:function(e){var t=e,n=t.version,r=t.language,o=t.SDKVersion,i=t.theme,a=ze(e),s=r.replace("_","-");e=I(Object.assign(e,{appId:"__UNI__1EF8770",appName:"速立保",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Ke(s),hostVersion:n,hostLanguage:s,hostName:a,hostSDKVersion:o,hostTheme:i}))}},Xe={returnValue:function(e){var t=e,n=t.brand,r=t.model,o=qe(e,r),i=Ve(n);Fe(e),e=I(Object.assign(e,{deviceType:o,deviceBrand:i,deviceModel:r}))}},Ze={returnValue:function(e){Be(e),e=I(Object.assign(e,{windowTop:0,windowBottom:0}))}},Ye={returnValue:function(e){var t=e.locationReducedAccuracy;e.locationAccuracy="unsupported",!0===t?e.locationAccuracy="reduced":!1===t&&(e.locationAccuracy="full")}},Qe={args:function(e){e.compressedHeight&&!e.compressHeight&&(e.compressHeight=e.compressedHeight),e.compressedWidth&&!e.compressWidth&&(e.compressWidth=e.compressedWidth)}},et={redirectTo:Ne,previewImage:De,getSystemInfo:We,getSystemInfoSync:We,showActionSheet:Je,getAppBaseInfo:Ge,getDeviceInfo:Xe,getWindowInfo:Ze,getAppAuthorizeSetting:Ye,compressImage:Qe},tt=["vibrate","preloadPage","unPreloadPage","loadSubPackage"],nt=[],rt=["success","fail","cancel","complete"];function ot(e,t,n){return function(r){return t(at(e,r,n))}}function it(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(A(t)){var i=!0===o?t:{};for(var a in k(n)&&(n=n(t,i)||{}),t)if(S(n,a)){var s=n[a];k(s)&&(s=s(t[a],t,i)),s?x(s)?i[s]=t[a]:A(s)&&(i[s.name?s.name:a]=s.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(a,"'"))}else-1!==rt.indexOf(a)?k(t[a])&&(i[a]=ot(e,t[a],r)):o||(i[a]=t[a]);return i}return k(t)&&(t=ot(e,t,r)),t}function at(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return k(et.returnValue)&&(t=et.returnValue(e,t)),it(e,t,n,{},r)}function st(t,n){if(S(et,t)){var r=et[t];return r?function(n,o){var i=r;k(r)&&(i=r(n)),n=it(t,n,i.args,i.returnValue);var a=[n];"undefined"!==typeof o&&a.push(o),k(i.name)?t=i.name(n):x(i.name)&&(t=i.name);var s=e[t].apply(e,a);return ne(t)?at(t,s,i.returnValue,te(t)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return n}var ut=Object.create(null),ct=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function lt(e){return function(t){var n=t.fail,r=t.complete,o={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};k(n)&&n(o),k(r)&&r(o)}}ct.forEach((function(e){ut[e]=lt(e)}));var ft={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function dt(e){var t=e.service,n=e.success,r=e.fail,o=e.complete,i=!1;ft[t]?(i={errMsg:"getProvider:ok",service:t,provider:ft[t]},k(n)&&n(i)):(i={errMsg:"getProvider:fail service not found"},k(r)&&r(i)),k(o)&&o(i)}var pt=Object.freeze({__proto__:null,getProvider:dt}),ht=function(){var e;return function(){return e||(e=new d.default),e}}();function vt(e,t,n){return e[t].apply(e,n)}function gt(){return vt(ht(),"$on",Array.prototype.slice.call(arguments))}function yt(){return vt(ht(),"$off",Array.prototype.slice.call(arguments))}function mt(){return vt(ht(),"$once",Array.prototype.slice.call(arguments))}function _t(){return vt(ht(),"$emit",Array.prototype.slice.call(arguments))}var bt,wt,kt,xt=Object.freeze({__proto__:null,$on:gt,$off:yt,$once:mt,$emit:_t});function Ot(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function At(e){var t={};for(var n in e){var r=e[n];k(r)&&(t[n]=Ot(r),delete e[n])}return t}function St(e){try{return JSON.parse(e)}catch(t){}return e}function Pt(e){if("enabled"===e.type)kt=!0;else if("clientId"===e.type)bt=e.cid,wt=e.errMsg,Et(bt,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:St(e.message)},n=0;n<It.length;n++){var r=It[n];if(r(t),t.stopped)break}else"click"===e.type&&It.forEach((function(t){t({type:"click",data:St(e.message)})}))}var Ct=[];function Et(e,t){Ct.forEach((function(n){n(e,t)})),Ct.length=0}function Tt(e){A(e)||(e={});var t=At(e),n=t.success,r=t.fail,o=t.complete,i=k(n),a=k(r),s=k(o);Promise.resolve().then((function(){"undefined"===typeof kt&&(kt=!1,bt="",wt="uniPush is not enabled"),Ct.push((function(e,t){var u;e?(u={errMsg:"getPushClientId:ok",cid:e},i&&n(u)):(u={errMsg:"getPushClientId:fail"+(t?" "+t:"")},a&&r(u)),s&&o(u)})),"undefined"!==typeof bt&&Et(bt,wt)}))}var It=[],jt=function(e){-1===It.indexOf(e)&&It.push(e)},$t=function(e){if(e){var t=It.indexOf(e);t>-1&&It.splice(t,1)}else It.length=0},Mt=e.getAppBaseInfo&&e.getAppBaseInfo();Mt||(Mt=e.getSystemInfoSync());var Rt=Mt?Mt.host:null,Lt=Rt&&"SAAASDK"===Rt.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,Nt=Object.freeze({__proto__:null,shareVideoMessage:Lt,getPushClientId:Tt,onPushMessage:jt,offPushMessage:$t,invokePushCallback:Pt}),Dt=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function Ut(e,t){for(var n,r=e.$children,o=r.length-1;o>=0;o--){var i=r[o];if(i.$scope._$vueId===t)return i}for(var a=r.length-1;a>=0;a--)if(n=Ut(r[a],t),n)return n}function Ft(e){return Behavior(e)}function Bt(){return!!this.route}function Ht(e){this.triggerEvent("__l",e)}function qt(e,t,n){var r=e.selectAllComponents(t)||[];r.forEach((function(e){var r=e.dataset.ref;n[r]=e.$vm||Jt(e),"scoped"===e.dataset.vueGeneric&&e.selectAllComponents(".scoped-ref").forEach((function(e){qt(e,t,n)}))}))}function Vt(e,t){var n=(0,u.default)(Set,(0,c.default)(Object.keys(e))),r=Object.keys(t);return r.forEach((function(r){var o=e[r],i=t[r];Array.isArray(o)&&Array.isArray(i)&&o.length===i.length&&i.every((function(e){return o.includes(e)}))||(e[r]=i,n.delete(r))})),n.forEach((function(t){delete e[t]})),e}function Kt(e){var t=e.$scope,n={};Object.defineProperty(e,"$refs",{get:function(){var e={};qt(t,".vue-ref",e);var r=t.selectAllComponents(".vue-ref-in-for")||[];return r.forEach((function(t){var n=t.dataset.ref;e[n]||(e[n]=[]),e[n].push(t.$vm||Jt(t))})),Vt(n,e)}})}function zt(e){var t,n=e.detail||e.value,r=n.vuePid,o=n.vueOptions;r&&(t=Ut(this.$vm,r)),t||(t=this.$vm),o.parent=t}function Wt(e){var t="__v_isMPComponent";return Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:!0}),e}function Jt(e){var t="__ob__",n="__v_skip";return O(e)&&Object.isExtensible(e)&&Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:(0,s.default)({},n,!0)}),e}var Gt=/_(.*)_worklet_factory_/;function Xt(e,t){t&&Object.keys(t).forEach((function(n){var r=n.match(Gt);if(r){var o=r[1];e[n]=t[n],e[o]=t[o]}}))}var Zt=Page,Yt=Component,Qt=/:/g,en=C((function(e){return T(e.replace(Qt,"-"))}));function tn(e){var t=e.triggerEvent,n=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.$vm||this.dataset&&this.dataset.comType)e=en(e);else{var i=en(e);i!==e&&t.apply(this,[i].concat(r))}return t.apply(this,[e].concat(r))};try{e.triggerEvent=n}catch(r){e._triggerEvent=n}}function nn(e,t,n){var r=t[e];t[e]=function(){if(Wt(this),tn(this),r){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.apply(this,t)}}}Zt.__$wrappered||(Zt.__$wrappered=!0,Page=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return nn("onLoad",e),Zt(e)},Page.after=Zt.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return nn("created",e),Yt(e)});var rn=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function on(e,t){var n=e.$mp[e.mpType];t.forEach((function(t){S(n,t)&&(e[t]=n[t])}))}function an(e,t){if(!t)return!0;if(d.default.options&&Array.isArray(d.default.options[e]))return!0;if(t=t.default||t,k(t))return!!k(t.extendOptions[e])||!!(t.super&&t.super.options&&Array.isArray(t.super.options[e]));if(k(t[e])||Array.isArray(t[e]))return!0;var n=t.mixins;return Array.isArray(n)?!!n.find((function(t){return an(e,t)})):void 0}function sn(e,t,n){t.forEach((function(t){an(t,n)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function un(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];cn(t).forEach((function(t){return ln(e,t,n)}))}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(n){0===n.indexOf("on")&&k(e[n])&&t.push(n)})),t}function ln(e,t,n){-1!==n.indexOf(t)||S(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function fn(e,t){var n;return t=t.default||t,n=k(t)?t:e.extend(t),t=n.options,[n,t]}function dn(e,t){if(Array.isArray(t)&&t.length){var n=Object.create(null);t.forEach((function(e){n[e]=!0})),e.$scopedSlots=e.$slots=n}}function pn(e,t){e=(e||"").split(",");var n=e.length;1===n?t._$vueId=e[0]:2===n&&(t._$vueId=e[0],t._$vuePid=e[1])}function hn(e,t){var n=e.data||{},r=e.methods||{};if("function"===typeof n)try{n=n.call(t)}catch(o){Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"速立保",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"development",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(o){}return A(n)||(n={}),Object.keys(r).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||S(n,e)||(n[e]=r[e])})),n}var vn=[String,Number,Boolean,Object,Array,null];function gn(e){return function(t,n){this.$vm&&(this.$vm[e]=t)}}function yn(e,t){var n=e.behaviors,r=e.extends,o=e.mixins,i=e.props;i||(e.props=i=[]);var a=[];return Array.isArray(n)&&n.forEach((function(e){a.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(i)?(i.push("name"),i.push("value")):(i.name={type:String,default:""},i.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),A(r)&&r.props&&a.push(t({properties:_n(r.props,!0)})),Array.isArray(o)&&o.forEach((function(e){A(e)&&e.props&&a.push(t({properties:_n(e.props,!0)}))})),a}function mn(e,t,n,r){return Array.isArray(t)&&1===t.length?t[0]:t}function _n(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0,r={};return t||(r.vueId={type:String,value:""},n.virtualHost&&(r.virtualHostStyle={type:null,value:""},r.virtualHostClass={type:null,value:""}),r.scopedSlotsCompiler={type:String,value:""},r.vueSlots={type:null,value:[],observer:function(e,t){var n=Object.create(null);e.forEach((function(e){n[e]=!0})),this.setData({$slots:n})}}),Array.isArray(e)?e.forEach((function(e){r[e]={type:null,observer:gn(e)}})):A(e)&&Object.keys(e).forEach((function(t){var n=e[t];if(A(n)){var o=n.default;k(o)&&(o=o()),n.type=mn(t,n.type),r[t]={type:-1!==vn.indexOf(n.type)?n.type:null,value:o,observer:gn(t)}}else{var i=mn(t,n);r[t]={type:-1!==vn.indexOf(i)?i:null,observer:gn(t)}}})),r}function bn(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=P,e.preventDefault=P,e.target=e.target||{},S(e,"detail")||(e.detail={}),S(e,"markerId")&&(e.detail="object"===(0,l.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),A(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}function wn(e,t){var n=e;return t.forEach((function(t){var r=t[0],o=t[2];if(r||"undefined"!==typeof o){var i,a=t[1],s=t[3];Number.isInteger(r)?i=r:r?"string"===typeof r&&r&&(i=0===r.indexOf("#s#")?r.substr(3):e.__get_value(r,n)):i=n,Number.isInteger(i)?n=o:a?Array.isArray(i)?n=i.find((function(t){return e.__get_value(a,t)===o})):A(i)?n=Object.keys(i).find((function(t){return e.__get_value(a,i[t])===o})):console.error("v-for 暂不支持循环数据:",i):n=i[o],s&&(n=e.__get_value(s,n))}})),n}function kn(e,t,n,r){var o={};return Array.isArray(t)&&t.length&&t.forEach((function(t,i){"string"===typeof t?t?"$event"===t?o["$"+i]=n:"arguments"===t?o["$"+i]=n.detail&&n.detail.__args__||r:0===t.indexOf("$event.")?o["$"+i]=e.__get_value(t.replace("$event.",""),n):o["$"+i]=e.__get_value(t):o["$"+i]=e:o["$"+i]=wn(e,t)})),o}function xn(e){for(var t={},n=1;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t}function On(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=!1,s=A(t.detail)&&t.detail.__args__||[t.detail];if(o&&(a=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!n.length))return a?[t]:s;var u=kn(e,r,t,s),c=[];return n.forEach((function(e){"$event"===e?"__set_model"!==i||o?o&&!a?c.push(s[0]):c.push(t):c.push(t.target.value):Array.isArray(e)&&"o"===e[0]?c.push(xn(e)):"string"===typeof e&&S(u,e)?c.push(u[e]):c.push(e)})),c}var An="~",Sn="^";function Pn(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}function Cn(e){var t=e.$parent;while(t&&t.$parent&&(t.$options.generic||t.$parent.$options.generic||t.$scope._$vuePid))t=t.$parent;return t&&t.$parent}function En(e){var t=this;e=bn(e);var n=(e.currentTarget||e.target).dataset;if(!n)return console.warn("事件信息不存在");var r=n.eventOpts||n["event-opts"];if(!r)return console.warn("事件信息不存在");var o=e.type,i=[];return r.forEach((function(n){var r=n[0],a=n[1],s=r.charAt(0)===Sn;r=s?r.slice(1):r;var u=r.charAt(0)===An;r=u?r.slice(1):r,a&&Pn(o,r)&&a.forEach((function(n){var r=n[0];if(r){var o=t.$vm;if(o.$options.generic&&(o=Cn(o)||o),"$emit"===r)return void o.$emit.apply(o,On(t.$vm,e,n[1],n[2],s,r));var a=o[r];if(!k(a)){var c="page"===t.$vm.mpType?"Page":"Component",l=t.route||t.is;throw new Error("".concat(c,' "').concat(l,'" does not have a method "').concat(r,'"'))}if(u){if(a.once)return;a.once=!0}var f=On(t.$vm,e,n[1],n[2],s,r);f=Array.isArray(f)?f:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(f=f.concat([,,,,,,,,,,e])),i.push(a.apply(o,f))}}))})),"input"===o&&1===i.length&&"undefined"!==typeof i[0]?i[0]:void 0}var Tn={};function In(e){var t=Tn[e];return delete Tn[e],t}var jn=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function $n(){d.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=d.default.prototype.__call_hook;d.default.prototype.__call_hook=function(t,n){return"onLoad"===t&&n&&n.__id__&&(this.__eventChannel__=In(n.__id__),delete n.__id__),e.call(this,t,n)}}function Mn(){var e={},t={};function n(e){var t=this.$options.propsData.vueId;if(t){var n=t.split(",")[0];e(n)}}d.default.prototype.$hasSSP=function(n){var r=e[n];return r||(t[n]=this,this.$on("hook:destroyed",(function(){delete t[n]}))),r},d.default.prototype.$getSSP=function(t,n,r){var o=e[t];if(o){var i=o[n]||[];return r?i:i[0]}},d.default.prototype.$setSSP=function(t,r){var o=0;return n.call(this,(function(n){var i=e[n],a=i[t]=i[t]||[];a.push(r),o=a.length-1})),o},d.default.prototype.$initSSP=function(){n.call(this,(function(t){e[t]={}}))},d.default.prototype.$callSSP=function(){n.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},d.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete e[r],delete t[r])}})}function Rn(t,n){var r=n.mocks,o=n.initRefs;$n(),Mn(),t.$options.store&&(d.default.prototype.$store=t.$options.store),_(d.default),d.default.prototype.mpHost="mp-weixin",d.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,s.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(o(this),on(this,r))}}});var i={onLaunch:function(n){this.$vm||(e.canIUse&&!e.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",n),this.$vm.__call_hook("onLaunch",n))}};i.globalData=t.$options.globalData||{};var a=t.$options.methods;return a&&Object.keys(a).forEach((function(e){i[e]=a[e]})),Oe(d.default,t,Ce(e.getSystemInfoSync().language)||ye),sn(i,jn),un(i,t.$options),i}function Ln(e){return Rn(e,{mocks:Dt,initRefs:Kt})}function Nn(e){return App(Ln(e)),e}var Dn=/[!'()*]/g,Un=function(e){return"%"+e.charCodeAt(0).toString(16)},Fn=/%2C/g,Bn=function(e){return encodeURIComponent(e).replace(Dn,Un).replace(Fn,",")};function Hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bn,n=e?Object.keys(e).map((function(n){var r=e[n];if(void 0===r)return"";if(null===r)return t(n);if(Array.isArray(r)){var o=[];return r.forEach((function(e){void 0!==e&&(null===e?o.push(t(n)):o.push(t(n)+"="+t(e)))})),o.join("&")}return t(n)+"="+t(r)})).filter((function(e){return e.length>0})).join("&"):null;return n?"?".concat(n):""}function qn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isPage,r=t.initRelation,o=arguments.length>2?arguments[2]:void 0,i=fn(d.default,e),s=(0,a.default)(i,2),u=s[0],c=s[1],l=h({multipleSlots:!0,addGlobalClass:!0},c.options||{});c["mp-weixin"]&&c["mp-weixin"].options&&Object.assign(l,c["mp-weixin"].options);var f={options:l,data:hn(c,d.default.prototype),behaviors:yn(c,Ft),properties:_n(c.props,!1,c.__file,l),lifetimes:{attached:function(){var e=this.properties,t={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:e};pn(e.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new u(t),dn(this.$vm,e.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:zt,__e:En}};return c.externalClasses&&(f.externalClasses=c.externalClasses),Array.isArray(c.wxsCallMethods)&&c.wxsCallMethods.forEach((function(e){f.methods[e]=function(t){return this.$vm[e](t)}})),o?[f,c,u]:n?f:[f,u]}function Vn(e,t){return qn(e,{isPage:Bt,initRelation:Ht},t)}var Kn=["onShow","onHide","onUnload"];function zn(e){var t=Vn(e,!0),n=(0,a.default)(t,2),r=n[0],o=n[1];return sn(r.methods,Kn,o),r.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Hn(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},un(r.methods,e,["onReady"]),Xt(r.methods,o.methods),r}function Wn(e){return zn(e)}function Jn(e){return Component(Wn(e))}function Gn(e){return Component(Vn(e))}function Xn(t){var n=Ln(t),r=getApp({allowDefault:!0});t.$scope=r;var o=r.globalData;if(o&&Object.keys(n.globalData).forEach((function(e){S(o,e)||(o[e]=n.globalData[e])})),Object.keys(n).forEach((function(e){S(r,e)||(r[e]=n[e])})),k(n.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onShow",n)})),k(n.onHide)&&e.onAppHide&&e.onAppHide((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onHide",n)})),k(n.onLaunch)){var i=e.getLaunchOptionsSync&&e.getLaunchOptionsSync();t.__call_hook("onLaunch",i)}return t}function Zn(t){var n=Ln(t);if(k(n.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onShow",n)})),k(n.onHide)&&e.onAppHide&&e.onAppHide((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onHide",n)})),k(n.onLaunch)){var r=e.getLaunchOptionsSync&&e.getLaunchOptionsSync();t.__call_hook("onLaunch",r)}return t}Kn.push.apply(Kn,rn),tt.forEach((function(e){et[e]=!1})),nt.forEach((function(t){var n=et[t]&&et[t].name?et[t].name:t;e.canIUse(n)||(et[t]=!1)}));var Yn={};"undefined"!==typeof Proxy?Yn=new Proxy({},{get:function(t,n){return S(t,n)?t[n]:Me[n]?Me[n]:Nt[n]?ae(n,Nt[n]):pt[n]?ae(n,pt[n]):ut[n]?ae(n,ut[n]):xt[n]?xt[n]:ae(n,st(n,e[n]))},set:function(e,t,n){return e[t]=n,!0}}):(Object.keys(Me).forEach((function(e){Yn[e]=Me[e]})),Object.keys(ut).forEach((function(e){Yn[e]=ae(e,ut[e])})),Object.keys(pt).forEach((function(e){Yn[e]=ae(e,pt[e])})),Object.keys(xt).forEach((function(e){Yn[e]=xt[e]})),Object.keys(Nt).forEach((function(e){Yn[e]=ae(e,Nt[e])})),Object.keys(e).forEach((function(t){(S(e,t)||S(et,t))&&(Yn[t]=ae(t,st(t,e[t])))}))),e.createApp=Nn,e.createPage=Jn,e.createComponent=Gn,e.createSubpackageApp=Xn,e.createPlugin=Zn;var Qn=Yn,er=Qn;t.default=er}).call(this,n(1)["default"],n(3))},20:function(e,t){function n(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},209:function(e,t){e.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$t.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$t.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$t.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$t.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$t.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},21:function(e,t){function n(){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=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},22:function(e,t,n){"use strict";(function(e,r){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.LOCALE_ZH_HANT=t.LOCALE_ZH_HANS=t.LOCALE_FR=t.LOCALE_ES=t.LOCALE_EN=t.I18n=t.Formatter=void 0,t.compileI18nJsonStr=R,t.hasI18nJson=$,t.initVueI18n=T,t.isI18nStr=L,t.isString=void 0,t.normalizeLocale=S,t.parseI18nJson=M,t.resolveLocale=B;var i=o(n(5)),a=o(n(23)),s=o(n(24)),u=o(n(13)),c=function(e){return null!==e&&"object"===(0,u.default)(e)},l=["{","}"],f=function(){function e(){(0,a.default)(this,e),this._caches=Object.create(null)}return(0,s.default)(e,[{key:"interpolate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;if(!t)return[e];var r=this._caches[e];return r||(r=h(e,n),this._caches[e]=r),v(r,t)}}]),e}();t.Formatter=f;var d=/^(?:\d)+/,p=/^(?:\w)+/;function h(e,t){var n=(0,i.default)(t,2),r=n[0],o=n[1],a=[],s=0,u="";while(s<e.length){var c=e[s++];if(c===r){u&&a.push({type:"text",value:u}),u="";var l="";c=e[s++];while(void 0!==c&&c!==o)l+=c,c=e[s++];var f=c===o,h=d.test(l)?"list":f&&p.test(l)?"named":"unknown";a.push({value:l,type:h})}else u+=c}return u&&a.push({type:"text",value:u}),a}function v(e,t){var n=[],r=0,o=Array.isArray(t)?"list":c(t)?"named":"unknown";if("unknown"===o)return n;while(r<e.length){var i=e[r];switch(i.type){case"text":n.push(i.value);break;case"list":n.push(t[parseInt(i.value,10)]);break;case"named":"named"===o?n.push(t[i.value]):console.warn("Type of token '".concat(i.type,"' and format of value '").concat(o,"' don't match!"));break;case"unknown":console.warn("Detect 'unknown' type of token!");break}r++}return n}var g="zh-Hans";t.LOCALE_ZH_HANS=g;var y="zh-Hant";t.LOCALE_ZH_HANT=y;var m="en";t.LOCALE_EN=m;var _="fr";t.LOCALE_FR=_;var b="es";t.LOCALE_ES=b;var w=Object.prototype.hasOwnProperty,k=function(e,t){return w.call(e,t)},x=new f;function O(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}function A(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}function S(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return g;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?g:e.indexOf("-hant")>-1||O(e,["-tw","-hk","-mo","-cht"])?y:g;var n=[m,_,b];t&&Object.keys(t).length>0&&(n=Object.keys(t));var r=A(e,n);return r||void 0}}var P=function(){function e(t){var n=t.locale,r=t.fallbackLocale,o=t.messages,i=t.watcher,s=t.formater;(0,a.default)(this,e),this.locale=m,this.fallbackLocale=m,this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=s||x,this.messages=o||{},this.setLocale(n||m),i&&this.watchLocale(i)}return(0,s.default)(e,[{key:"setLocale",value:function(e){var t=this,n=this.locale;this.locale=S(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(e){e(t.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,n=this.watchers.push(e)-1;return function(){t.watchers.splice(n,1)}}},{key:"add",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[e];r?n?Object.assign(r,t):Object.keys(t).forEach((function(e){k(r,e)||(r[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,n){return this.formater.interpolate(e,t,n).join("")}},{key:"t",value:function(e,t,n){var r=this.message;return"string"===typeof t?(t=S(t,this.messages),t&&(r=this.messages[t])):n=t,k(r,e)?this.formater.interpolate(r[e],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function C(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function E(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():m}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var o=[t,e];e=o[0],t=o[1]}"string"!==typeof e&&(e=E()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||m);var i=new P({locale:e,fallbackLocale:n,messages:t,watcher:r}),a=function(e,t){if("function"!==typeof getApp)a=function(e,t){return i.t(e,t)};else{var n=!1;a=function(e,t){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,C(r,i))),i.t(e,t)}}return a(e,t)};return{i18n:i,f:function(e,t,n){return i.f(e,t,n)},t:function(e,t){return a(e,t)},add:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return i.add(e,t,n)},watch:function(e){return i.watchLocale(e)},getLocale:function(){return i.getLocale()},setLocale:function(e){return i.setLocale(e)}}}t.I18n=P;var I,j=function(e){return"string"===typeof e};function $(e,t){return I||(I=new f),F(e,(function(e,n){var r=e[n];return j(r)?!!L(r,t)||void 0:$(r,t)}))}function M(e,t,n){return I||(I=new f),F(e,(function(e,r){var o=e[r];j(o)?L(o,n)&&(e[r]=N(o,t,n)):M(o,t,n)})),e}function R(e,t){var n=t.locale,r=t.locales,o=t.delimiters;if(!L(e,o))return e;I||(I=new f);var i=[];Object.keys(r).forEach((function(e){e!==n&&i.push({locale:e,values:r[e]})})),i.unshift({locale:n,values:r[n]});try{return JSON.stringify(U(JSON.parse(e),i,o),null,2)}catch(a){}return e}function L(e,t){return e.indexOf(t[0])>-1}function N(e,t,n){return I.interpolate(e,t,n).join("")}function D(e,t,n,r){var o=e[t];if(j(o)){if(L(o,r)&&(e[t]=N(o,n[0].values,r),n.length>1)){var i=e[t+"Locales"]={};n.forEach((function(e){i[e.locale]=N(o,e.values,r)}))}}else U(o,n,r)}function U(e,t,n){return F(e,(function(e,r){D(e,r,t,n)})),e}function F(e,t){if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(t(e,n))return!0}else if(c(e))for(var r in e)if(t(e,r))return!0;return!1}function B(e){return function(t){return t?(t=S(t)||t,H(t).find((function(t){return e.indexOf(t)>-1}))):t}}function H(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}t.isString=j}).call(this,n(2)["default"],n(3))},23:function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},24:function(e,t,n){var r=n(12);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},25:function(e,t,n){"use strict";n.r(t),function(e){
- /*!
- * Vue.js v2.6.11
- * (c) 2014-2023 Evan You
- * Released under the MIT License.
- */
- var n=Object.freeze({});function r(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function i(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function u(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function l(e){return c.call(e).slice(8,-1)}function f(e){return"[object Object]"===c.call(e)}function d(e){return"[object RegExp]"===c.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function y(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var m=y("slot,component",!0),_=y("key,ref,slot,slot-scope,is");function b(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var w=Object.prototype.hasOwnProperty;function k(e,t){return w.call(e,t)}function x(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var O=/-(\w)/g,A=x((function(e){return e.replace(O,(function(e,t){return t?t.toUpperCase():""}))})),S=x((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),P=/\B([A-Z])/g,C=x((function(e){return e.replace(P,"-$1").toLowerCase()}));function E(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function T(e,t){return e.bind(t)}var I=Function.prototype.bind?T:E;function j(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function $(e,t){for(var n in t)e[n]=t[n];return e}function M(e){for(var t={},n=0;n<e.length;n++)e[n]&&$(t,e[n]);return t}function R(e,t,n){}var L=function(e,t,n){return!1},N=function(e){return e};function D(e,t){if(e===t)return!0;var n=u(e),r=u(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=Array.isArray(e),i=Array.isArray(t);if(o&&i)return e.length===t.length&&e.every((function(e,n){return D(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(o||i)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return D(e[n],t[n])}))}catch(c){return!1}}function U(e,t){for(var n=0;n<e.length;n++)if(D(e[n],t))return n;return-1}function F(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var B=["component","directive","filter"],H=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!0,devtools:!0,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:L,isReservedAttr:L,isUnknownElement:L,getTagNamespace:R,parsePlatformTagName:N,mustUseProp:L,async:!0,_lifecycleHooks:H},V=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function K(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function z(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^"+V.source+".$_\\d]");function J(e){if(!W.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var G,X="__proto__"in{},Z="undefined"!==typeof window,Y="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Q=Y&&WXEnvironment.platform.toLowerCase(),ee=Z&&window.navigator.userAgent.toLowerCase(),te=ee&&/msie|trident/.test(ee),ne=(ee&&ee.indexOf("msie 9.0"),ee&&ee.indexOf("edge/")>0),re=(ee&&ee.indexOf("android"),ee&&/iphone|ipad|ipod|ios/.test(ee)||"ios"===Q),oe=(ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee),ee&&ee.match(/firefox\/(\d+)/),{}.watch);if(Z)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){}}),window.addEventListener("test-passive",null,ie)}catch(Fo){}var ae=function(){return void 0===G&&(G=!Z&&!Y&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),G},se=Z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ue(e){return"function"===typeof e&&/native code/.test(e.toString())}var ce,le="undefined"!==typeof Symbol&&ue(Symbol)&&"undefined"!==typeof Reflect&&ue(Reflect.ownKeys);ce="undefined"!==typeof Set&&ue(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var fe=R,de=R,pe=R,he=R,ve="undefined"!==typeof console,ge=/(?:^|[-_])(\w)/g,ye=function(e){return e.replace(ge,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};fe=function(e,t){var n=t?pe(t):"";q.warnHandler?q.warnHandler.call(null,e,t,n):ve&&!q.silent&&console.error("[Vue warn]: "+e+n)},de=function(e,t){ve&&!q.silent&&console.warn("[Vue tip]: "+e+(t?pe(t):""))},he=function(e,t){if(e.$root===e)return e.$options&&e.$options.__file?""+e.$options.__file:"<Root>";var n="function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e,r=n.name||n._componentTag,o=n.__file;if(!r&&o){var i=o.match(/([^/\\]+)\.vue$/);r=i&&i[1]}return(r?"<"+ye(r)+">":"<Anonymous>")+(o&&!1!==t?" at "+o:"")};var me=function(e,t){var n="";while(t)t%2===1&&(n+=e),t>1&&(e+=e),t>>=1;return n};pe=function(e){if(e._isVue&&e.$parent){var t=[],n=0;while(e&&"PageBody"!==e.$options.name){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}!e.$options.isReserved&&t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((function(e,t){return""+(0===t?"---\x3e ":me(" ",5+2*t))+(Array.isArray(e)?he(e[0])+"... ("+e[1]+" recursive calls)":he(e))})).join("\n")}return"\n\n(found in "+he(e)+")"};var _e=0,be=function(){this.id=_e++,this.subs=[]};function we(e){be.SharedObject.targetStack.push(e),be.SharedObject.target=e,be.target=e}function ke(){be.SharedObject.targetStack.pop(),be.SharedObject.target=be.SharedObject.targetStack[be.SharedObject.targetStack.length-1],be.target=be.SharedObject.target}be.prototype.addSub=function(e){this.subs.push(e)},be.prototype.removeSub=function(e){b(this.subs,e)},be.prototype.depend=function(){be.SharedObject.target&&be.SharedObject.target.addDep(this)},be.prototype.notify=function(){var e=this.subs.slice();q.async||e.sort((function(e,t){return e.id-t.id}));for(var t=0,n=e.length;t<n;t++)e[t].update()},be.SharedObject={},be.SharedObject.target=null,be.SharedObject.targetStack=[];var xe=function(e,t,n,r,o,i,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Oe={child:{configurable:!0}};Oe.child.get=function(){return this.componentInstance},Object.defineProperties(xe.prototype,Oe);var Ae=function(e){void 0===e&&(e="");var t=new xe;return t.text=e,t.isComment=!0,t};function Se(e){return new xe(void 0,void 0,void 0,String(e))}function Pe(e){var t=new xe(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Ce=Array.prototype,Ee=Object.create(Ce),Te=["push","pop","shift","unshift","splice","sort","reverse"];Te.forEach((function(e){var t=Ce[e];z(Ee,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var o,i=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2);break}return o&&a.observeArray(o),a.dep.notify(),i}))}));var Ie=Object.getOwnPropertyNames(Ee),je=!0;function $e(e){je=e}var Me=function(e){this.value=e,this.dep=new be,this.vmCount=0,z(e,"__ob__",this),Array.isArray(e)?(X?e.push!==e.__proto__.push?Le(e,Ee,Ie):Re(e,Ee):Le(e,Ee,Ie),this.observeArray(e)):this.walk(e)};function Re(e,t){e.__proto__=t}function Le(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];z(e,i,t[i])}}function Ne(e,t){var n;if(u(e)&&!(e instanceof xe))return k(e,"__ob__")&&e.__ob__ instanceof Me?n=e.__ob__:!je||ae()||!Array.isArray(e)&&!f(e)||!Object.isExtensible(e)||e._isVue||e.__v_isMPComponent||(n=new Me(e)),t&&n&&n.vmCount++,n}function De(e,t,n,r,o){var i=new be,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set;s&&!u||2!==arguments.length||(n=e[t]);var c=!o&&Ne(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return be.SharedObject.target&&(i.depend(),c&&(c.dep.depend(),Array.isArray(t)&&Be(t))),t},set:function(t){var a=s?s.call(e):n;t===a||t!==t&&a!==a||(r&&r(),s&&!u||(u?u.call(e,t):n=t,c=!o&&Ne(t),i.notify()))}})}}function Ue(e,t,n){if((r(e)||s(e))&&fe("Cannot set reactive property on undefined, null, or primitive value: "+e),Array.isArray(e)&&p(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var o=e.__ob__;return e._isVue||o&&o.vmCount?(fe("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),n):o?(De(o.value,t,n),o.dep.notify(),n):(e[t]=n,n)}function Fe(e,t){if((r(e)||s(e))&&fe("Cannot delete reactive property on undefined, null, or primitive value: "+e),Array.isArray(e)&&p(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount?fe("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):k(e,t)&&(delete e[t],n&&n.dep.notify())}}function Be(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Be(t)}Me.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)De(e,t[n])},Me.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ne(e[t])};var He=q.optionMergeStrategies;function qe(e,t){if(!t)return e;for(var n,r,o,i=le?Reflect.ownKeys(t):Object.keys(t),a=0;a<i.length;a++)n=i[a],"__ob__"!==n&&(r=e[n],o=t[n],k(e,n)?r!==o&&f(r)&&f(o)&&qe(r,o):Ue(e,n,o));return e}function Ve(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,o="function"===typeof e?e.call(n,n):e;return r?qe(r,o):o}:t?e?function(){return qe("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Ke(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?ze(n):n}function ze(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function We(e,t,n,r){var o=Object.create(e||null);return t?(et(r,t,n),$(o,t)):o}He.el=He.propsData=function(e,t,n,r){return n||fe('option "'+r+'" can only be used during instance creation with the `new` keyword.'),Je(e,t)},He.data=function(e,t,n){return n?Ve(e,t,n):t&&"function"!==typeof t?(fe('The "data" option should be a function that returns a per-instance value in component definitions.',n),e):Ve(e,t)},H.forEach((function(e){He[e]=Ke})),B.forEach((function(e){He[e+"s"]=We})),He.watch=function(e,t,n,r){if(e===oe&&(e=void 0),t===oe&&(t=void 0),!t)return Object.create(e||null);if(et(r,t,n),!e)return t;var o={};for(var i in $(o,e),t){var a=o[i],s=t[i];a&&!Array.isArray(a)&&(a=[a]),o[i]=a?a.concat(s):Array.isArray(s)?s:[s]}return o},He.props=He.methods=He.inject=He.computed=function(e,t,n,r){if(t&&et(r,t,n),!e)return t;var o=Object.create(null);return $(o,e),t&&$(o,t),o},He.provide=Ve;var Je=function(e,t){return void 0===t?e:t};function Ge(e){for(var t in e.components)Xe(t)}function Xe(e){new RegExp("^[a-zA-Z][\\-\\.0-9_"+V.source+"]*$").test(e)||fe('Invalid component name: "'+e+'". Component names should conform to valid custom element name in html5 specification.'),(m(e)||q.isReservedTag(e))&&fe("Do not use built-in or reserved HTML elements as component id: "+e)}function Ze(e,t){var n=e.props;if(n){var r,o,i,a={};if(Array.isArray(n)){r=n.length;while(r--)o=n[r],"string"===typeof o?(i=A(o),a[i]={type:null}):fe("props must be strings when using array syntax.")}else if(f(n))for(var s in n)o=n[s],i=A(s),a[i]=f(o)?o:{type:o};else fe('Invalid value for option "props": expected an Array or an Object, but got '+l(n)+".",t);e.props=a}}function Ye(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var o=0;o<n.length;o++)r[n[o]]={from:n[o]};else if(f(n))for(var i in n){var a=n[i];r[i]=f(a)?$({from:i},a):{from:a}}else fe('Invalid value for option "inject": expected an Array or an Object, but got '+l(n)+".",t)}}function Qe(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}function et(e,t,n){f(t)||fe('Invalid value for option "'+e+'": expected an Object, but got '+l(t)+".",n)}function tt(e,t,n){if(Ge(t),"function"===typeof t&&(t=t.options),Ze(t,n),Ye(t,n),Qe(t),!t._base&&(t.extends&&(e=tt(e,t.extends,n)),t.mixins))for(var r=0,o=t.mixins.length;r<o;r++)e=tt(e,t.mixins[r],n);var i,a={};for(i in e)s(i);for(i in t)k(e,i)||s(i);function s(r){var o=He[r]||Je;a[r]=o(e[r],t[r],n,r)}return a}function nt(e,t,n,r){if("string"===typeof n){var o=e[t];if(k(o,n))return o[n];var i=A(n);if(k(o,i))return o[i];var a=S(i);if(k(o,a))return o[a];var s=o[n]||o[i]||o[a];return r&&!s&&fe("Failed to resolve "+t.slice(0,-1)+": "+n,e),s}}function rt(e,t,n,r){var o=t[e],i=!k(n,e),a=n[e],s=lt(Boolean,o.type);if(s>-1)if(i&&!k(o,"default"))a=!1;else if(""===a||a===C(e)){var u=lt(String,o.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=ot(r,o,e);var c=je;$e(!0),Ne(a),$e(c)}return it(o,e,a,r,i),a}function ot(e,t,n){if(k(t,"default")){var r=t.default;return u(r)&&fe('Invalid default value for prop "'+n+'": Props with type Object/Array must use a factory function to return the default value.',e),e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof r&&"Function"!==ut(t.type)?r.call(e):r}}function it(e,t,n,r,o){if(e.required&&o)fe('Missing required prop: "'+t+'"',r);else if(null!=n||e.required){var i=e.type,a=!i||!0===i,s=[];if(i){Array.isArray(i)||(i=[i]);for(var u=0;u<i.length&&!a;u++){var c=st(n,i[u]);s.push(c.expectedType||""),a=c.valid}}if(a){var l=e.validator;l&&(l(n)||fe('Invalid prop: custom validator check failed for prop "'+t+'".',r))}else fe(ft(t,n,s),r)}}var at=/^(String|Number|Boolean|Function|Symbol)$/;function st(e,t){var n,r=ut(t);if(at.test(r)){var o=typeof e;n=o===r.toLowerCase(),n||"object"!==o||(n=e instanceof t)}else n="Object"===r?f(e):"Array"===r?Array.isArray(e):e instanceof t;return{valid:n,expectedType:r}}function ut(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function ct(e,t){return ut(e)===ut(t)}function lt(e,t){if(!Array.isArray(t))return ct(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(ct(t[n],e))return n;return-1}function ft(e,t,n){var r='Invalid prop: type check failed for prop "'+e+'". Expected '+n.map(S).join(", "),o=n[0],i=l(t),a=dt(t,o),s=dt(t,i);return 1===n.length&&pt(o)&&!ht(o,i)&&(r+=" with value "+a),r+=", got "+i+" ",pt(i)&&(r+="with value "+s+"."),r}function dt(e,t){return"String"===t?'"'+e+'"':"Number"===t?""+Number(e):""+e}function pt(e){var t=["string","number","boolean"];return t.some((function(t){return e.toLowerCase()===t}))}function ht(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];return e.some((function(e){return"boolean"===e.toLowerCase()}))}function vt(e,t,n){we();try{if(t){var r=t;while(r=r.$parent){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{var a=!1===o[i].call(r,e,t,n);if(a)return}catch(Fo){yt(Fo,r,"errorCaptured hook")}}}yt(e,t,n)}finally{ke()}}function gt(e,t,n,r,o){var i;try{i=n?e.apply(t,n):e.call(t),i&&!i._isVue&&h(i)&&!i._handled&&(i.catch((function(e){return vt(e,r,o+" (Promise/async)")})),i._handled=!0)}catch(Fo){vt(Fo,r,o)}return i}function yt(e,t,n){if(q.errorHandler)try{return q.errorHandler.call(null,e,t,n)}catch(Fo){Fo!==e&&mt(Fo,null,"config.errorHandler")}mt(e,t,n)}function mt(e,t,n){if(fe("Error in "+n+': "'+e.toString()+'"',t),!Z&&!Y||"undefined"===typeof console)throw e;console.error(e)}var _t,bt,wt=[],kt=!1;function xt(){kt=!1;var e=wt.slice(0);wt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&ue(Promise)){var Ot=Promise.resolve();_t=function(){Ot.then(xt),re&&setTimeout(R)}}else if(te||"undefined"===typeof MutationObserver||!ue(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())_t="undefined"!==typeof setImmediate&&ue(setImmediate)?function(){setImmediate(xt)}:function(){setTimeout(xt,0)};else{var At=1,St=new MutationObserver(xt),Pt=document.createTextNode(String(At));St.observe(Pt,{characterData:!0}),_t=function(){At=(At+1)%2,Pt.data=String(At)}}function Ct(e,t){var n;if(wt.push((function(){if(e)try{e.call(t)}catch(Fo){vt(Fo,t,"nextTick")}else n&&n(t)})),kt||(kt=!0,_t()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var Et=y("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"),Tt=function(e,t){fe('Property or method "'+t+'" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',e)},It=function(e,t){fe('Property "'+t+'" must be accessed with "$data.'+t+'" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internals. See: https://vuejs.org/v2/api/#data',e)},jt="undefined"!==typeof Proxy&&ue(Proxy);if(jt){var $t=y("stop,prevent,self,ctrl,shift,alt,meta,exact");q.keyCodes=new Proxy(q.keyCodes,{set:function(e,t,n){return $t(t)?(fe("Avoid overwriting built-in modifier in config.keyCodes: ."+t),!1):(e[t]=n,!0)}})}var Mt={has:function(e,t){var n=t in e,r=Et(t)||"string"===typeof t&&"_"===t.charAt(0)&&!(t in e.$data);return n||r||(t in e.$data?It(e,t):Tt(e,t)),n||!r}},Rt={get:function(e,t){return"string"!==typeof t||t in e||(t in e.$data?It(e,t):Tt(e,t)),e[t]}};bt=function(e){if(jt){var t=e.$options,n=t.render&&t.render._withStripped?Rt:Mt;e._renderProxy=new Proxy(e,n)}else e._renderProxy=e};var Lt,Nt,Dt=new ce;function Ut(e){Ft(e,Dt),Dt.clear()}function Ft(e,t){var n,r,o=Array.isArray(e);if(!(!o&&!u(e)||Object.isFrozen(e)||e instanceof xe)){if(e.__ob__){var i=e.__ob__.dep.id;if(t.has(i))return;t.add(i)}if(o){n=e.length;while(n--)Ft(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)Ft(e[r[n]],t)}}}var Bt=Z&&window.performance;Bt&&Bt.mark&&Bt.measure&&Bt.clearMarks&&Bt.clearMeasures&&(Lt=function(e){return Bt.mark(e)},Nt=function(e,t,n){Bt.measure(e,t,n),Bt.clearMarks(t),Bt.clearMarks(n)});var Ht=x((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function qt(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return gt(r,null,arguments,t,"v-on handler");for(var o=r.slice(),i=0;i<o.length;i++)gt(o[i],null,e,t,"v-on handler")}return n.fns=e,n}function Vt(e,t,n,o,a,s){var u,c,l,f;for(u in e)c=e[u],l=t[u],f=Ht(u),r(c)?fe('Invalid handler for event "'+f.name+'": got '+String(c),s):r(l)?(r(c.fns)&&(c=e[u]=qt(c,s)),i(f.once)&&(c=e[u]=a(f.name,c,f.capture)),n(f.name,c,f.capture,f.passive,f.params)):c!==l&&(l.fns=c,e[u]=l);for(u in t)r(e[u])&&(f=Ht(u),o(f.name,t[u],f.capture))}function Kt(e,t,n,i){var a=t.options.mpOptions&&t.options.mpOptions.properties;if(r(a))return n;var s=t.options.mpOptions.externalClasses||[],u=e.attrs,c=e.props;if(o(u)||o(c))for(var l in a){var f=C(l),d=Wt(n,c,l,f,!0)||Wt(n,u,l,f,!1);d&&n[l]&&-1!==s.indexOf(f)&&i[A(n[l])]&&(n[l]=i[A(n[l])])}return n}function zt(e,t,n,i){var a=t.options.props;if(r(a))return Kt(e,t,{},i);var s={},u=e.attrs,c=e.props;if(o(u)||o(c))for(var l in a){var f=C(l),d=l.toLowerCase();l!==d&&u&&k(u,d)&&de('Prop "'+d+'" is passed to component '+he(n||t)+', but the declared prop name is "'+l+'". Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use "'+f+'" instead of "'+l+'".'),Wt(s,c,l,f,!0)||Wt(s,u,l,f,!1)}return Kt(e,t,s,i)}function Wt(e,t,n,r,i){if(o(t)){if(k(t,n))return e[n]=t[n],i||delete t[n],!0;if(k(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function Jt(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function Gt(e){return s(e)?[Se(e)]:Array.isArray(e)?Zt(e):void 0}function Xt(e){return o(e)&&o(e.text)&&a(e.isComment)}function Zt(e,t){var n,a,u,c,l=[];for(n=0;n<e.length;n++)a=e[n],r(a)||"boolean"===typeof a||(u=l.length-1,c=l[u],Array.isArray(a)?a.length>0&&(a=Zt(a,(t||"")+"_"+n),Xt(a[0])&&Xt(c)&&(l[u]=Se(c.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?Xt(c)?l[u]=Se(c.text+a):""!==a&&l.push(Se(a)):Xt(a)&&Xt(c)?l[u]=Se(c.text+a.text):(i(e._isVList)&&o(a.tag)&&r(a.key)&&o(t)&&(a.key="__vlist"+t+"_"+n+"__"),l.push(a)));return l}function Yt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Qt(e){var t=en(e.$options.inject,e);t&&($e(!1),Object.keys(t).forEach((function(n){De(e,n,t[n],(function(){fe('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+n+'"',e)}))})),$e(!0))}function en(e,t){if(e){for(var n=Object.create(null),r=le?Reflect.ownKeys(e):Object.keys(e),o=0;o<r.length;o++){var i=r[o];if("__ob__"!==i){var a=e[i].from,s=t;while(s){if(s._provided&&k(s._provided,a)){n[i]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[i]){var u=e[i].default;n[i]="function"===typeof u?u.call(t):u}else fe('Injection "'+i+'" not found',t)}}return n}}function tn(e,t){if(!e||!e.length)return{};for(var n={},r=0,o=e.length;r<o;r++){var i=e[r],a=i.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,i.context!==t&&i.fnContext!==t||!a||null==a.slot)i.asyncMeta&&i.asyncMeta.data&&"page"===i.asyncMeta.data.slot?(n["page"]||(n["page"]=[])).push(i):(n.default||(n.default=[])).push(i);else{var s=a.slot,u=n[s]||(n[s]=[]);"template"===i.tag?u.push.apply(u,i.children||[]):u.push(i)}}for(var c in n)n[c].every(nn)&&delete n[c];return n}function nn(e){return e.isComment&&!e.asyncFactory||" "===e.text}function rn(e,t,r){var o,i=Object.keys(t).length>0,a=e?!!e.$stable:!i,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!i&&!r.$hasNormal)return r;for(var u in o={},e)e[u]&&"$"!==u[0]&&(o[u]=on(t,u,e[u]))}else o={};for(var c in t)c in o||(o[c]=an(t,c));return e&&Object.isExtensible(e)&&(e._normalized=o),z(o,"$stable",a),z(o,"$key",s),z(o,"$hasNormal",i),o}function on(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Gt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function an(e,t){return function(){return e[t]}}function sn(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r,r,r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r,r,r);else if(u(e))if(le&&e[Symbol.iterator]){n=[];var c=e[Symbol.iterator](),l=c.next();while(!l.done)n.push(t(l.value,n.length,r,r++)),l=c.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,i=a.length;r<i;r++)s=a[r],n[r]=t(e[s],s,r,r);return o(n)||(n=[]),n._isVList=!0,n}function un(e,t,n,r){var o,i=this.$scopedSlots[e];i?(n=n||{},r&&(u(r)||fe("slot v-bind without argument expects an Object",this),n=$($({},r),n)),o=i(n,this,n._i)||t):o=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},o):o}function cn(e){return nt(this.$options,"filters",e,!0)||N}function ln(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function fn(e,t,n,r,o){var i=q.keyCodes[t]||n;return o&&r&&!q.keyCodes[t]?ln(o,r):i?ln(i,e):r?C(r)!==t:void 0}function dn(e,t,n,r,o){if(n)if(u(n)){var i;Array.isArray(n)&&(n=M(n));var a=function(a){if("class"===a||"style"===a||_(a))i=e;else{var s=e.attrs&&e.attrs.type;i=r||q.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var u=A(a),c=C(a);if(!(u in i)&&!(c in i)&&(i[a]=n[a],o)){var l=e.on||(e.on={});l["update:"+a]=function(e){n[a]=e}}};for(var s in n)a(s)}else fe("v-bind without argument expects an Object or Array value",this);return e}function pn(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),vn(r,"__static__"+e,!1)),r}function hn(e,t,n){return vn(e,"__once__"+t+(n?"_"+n:""),!0),e}function vn(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&gn(e[r],t+"_"+r,n);else gn(e,t,n)}function gn(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function yn(e,t){if(t)if(f(t)){var n=e.on=e.on?$({},e.on):{};for(var r in t){var o=n[r],i=t[r];n[r]=o?[].concat(o,i):i}}else fe("v-on without argument expects an Object value",this);return e}function mn(e,t,n,r){t=t||{$stable:!n};for(var o=0;o<e.length;o++){var i=e[o];Array.isArray(i)?mn(i,t,n):i&&(i.proxy&&(i.fn.proxy=!0),t[i.key]=i.fn)}return r&&(t.$key=r),t}function _n(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r?e[t[n]]=t[n+1]:""!==r&&null!==r&&fe("Invalid value for dynamic directive argument (expected string or null): "+r,this)}return e}function bn(e,t){return"string"===typeof e?t+e:e}function wn(e){e._o=hn,e._n=g,e._s=v,e._l=sn,e._t=un,e._q=D,e._i=U,e._m=pn,e._f=cn,e._k=fn,e._b=dn,e._v=Se,e._e=Ae,e._u=mn,e._g=yn,e._d=_n,e._p=bn}function kn(e,t,r,o,a){var s,u=this,c=a.options;k(o,"_uid")?(s=Object.create(o),s._original=o):(s=o,o=o._original);var l=i(c._compiled),f=!l;this.data=e,this.props=t,this.children=r,this.parent=o,this.listeners=e.on||n,this.injections=en(c.inject,o),this.slots=function(){return u.$slots||rn(e.scopedSlots,u.$slots=tn(r,o)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return rn(e.scopedSlots,this.slots())}}),l&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=rn(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,n,r){var i=Rn(s,e,t,n,r,f);return i&&!Array.isArray(i)&&(i.fnScopeId=c._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return Rn(s,e,t,n,r,f)}}function xn(e,t,r,i,a){var s=e.options,u={},c=s.props;if(o(c))for(var l in c)u[l]=rt(l,c,t||n);else o(r.attrs)&&An(u,r.attrs),o(r.props)&&An(u,r.props);var f=new kn(r,u,a,i,e),d=s.render.call(null,f._c,f);if(d instanceof xe)return On(d,r,f.parent,s,f);if(Array.isArray(d)){for(var p=Gt(d)||[],h=new Array(p.length),v=0;v<p.length;v++)h[v]=On(p[v],r,f.parent,s,f);return h}}function On(e,t,n,r,o){var i=Pe(e);return i.fnContext=n,i.fnOptions=r,(i.devtoolsMeta=i.devtoolsMeta||{}).renderContext=o,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function An(e,t){for(var n in t)e[A(n)]=t[n]}wn(kn.prototype);var Sn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Sn.prepatch(n,n)}else{var r=e.componentInstance=En(e,er);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;ir(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(cr(n,"onServiceCreated"),cr(n,"onServiceAttached"),n._isMounted=!0,cr(n,"mounted")),e.data.keepAlive&&(t._isMounted?xr(n):sr(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?ur(t,!0):t.$destroy())}},Pn=Object.keys(Sn);function Cn(e,t,n,a,s){if(!r(e)){var c=n.$options._base;if(u(e)&&(e=c.extend(e)),"function"===typeof e){var l;if(r(e.cid)&&(l=e,e=Kn(l,c),void 0===e))return Vn(l,t,n,a,s);t=t||{},zr(e),o(t.model)&&jn(e.options,t);var f=zt(t,e,s,n);if(i(e.options.functional))return xn(e,f,t,n,a);var d=t.on;if(t.on=t.nativeOn,i(e.options.abstract)){var p=t.slot;t={},p&&(t.slot=p)}Tn(t);var h=e.options.name||s,v=new xe("vue-component-"+e.cid+(h?"-"+h:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:d,tag:s,children:a},l);return v}fe("Invalid Component definition: "+String(e),n)}}function En(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function Tn(e){for(var t=e.hook||(e.hook={}),n=0;n<Pn.length;n++){var r=Pn[n],o=t[r],i=Sn[r];o===i||o&&o._merged||(t[r]=o?In(i,o):i)}}function In(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function jn(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),a=i[r],s=t.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(i[r]=[s].concat(a)):i[r]=s}var $n=1,Mn=2;function Rn(e,t,n,r,o,a){return(Array.isArray(n)||s(n))&&(o=r,r=n,n=void 0),i(a)&&(o=Mn),Ln(e,t,n,r,o)}function Ln(e,t,n,r,i){if(o(n)&&o(n.__ob__))return fe("Avoid using observed data object as vnode data: "+JSON.stringify(n)+"\nAlways create fresh vnode data objects in each render!",e),Ae();if(o(n)&&o(n.is)&&(t=n.is),!t)return Ae();var a,u,c;(o(n)&&o(n.key)&&!s(n.key)&&fe("Avoid using non-primitive value as key, use string/number value instead.",e),Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),i===Mn?r=Gt(r):i===$n&&(r=Jt(r)),"string"===typeof t)?(u=e.$vnode&&e.$vnode.ns||q.getTagNamespace(t),q.isReservedTag(t)?(o(n)&&o(n.nativeOn)&&fe("The .native modifier for v-on is only valid on components but it was used on <"+t+">.",e),a=new xe(q.parsePlatformTagName(t),n,r,void 0,void 0,e)):a=n&&n.pre||!o(c=nt(e.$options,"components",t))?new xe(t,n,r,void 0,void 0,e):Cn(c,n,e,r,t)):a=Cn(t,n,e,r);return Array.isArray(a)?a:o(a)?(o(u)&&Nn(a,u),o(n)&&Dn(n),a):Ae()}function Nn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),o(e.children))for(var a=0,s=e.children.length;a<s;a++){var u=e.children[a];o(u.tag)&&(r(u.ns)||i(n)&&"svg"!==u.tag)&&Nn(u,t,n)}}function Dn(e){u(e.style)&&Ut(e.style),u(e.class)&&Ut(e.class)}function Un(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,o=r&&r.context;e.$slots=tn(t._renderChildren,o),e.$scopedSlots=n,e._c=function(t,n,r,o){return Rn(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return Rn(e,t,n,r,o,!0)};var i=r&&r.data;De(e,"$attrs",i&&i.attrs||n,(function(){!tr&&fe("$attrs is readonly.",e)}),!0),De(e,"$listeners",t._parentListeners||n,(function(){!tr&&fe("$listeners is readonly.",e)}),!0)}var Fn,Bn=null;function Hn(e){wn(e.prototype),e.prototype.$nextTick=function(e){return Ct(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,o=n._parentVnode;o&&(t.$scopedSlots=rn(o.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=o;try{Bn=t,e=r.call(t._renderProxy,t.$createElement)}catch(Fo){if(vt(Fo,t,"render"),t.$options.renderError)try{e=t.$options.renderError.call(t._renderProxy,t.$createElement,Fo)}catch(Fo){vt(Fo,t,"renderError"),e=t._vnode}else e=t._vnode}finally{Bn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof xe||(Array.isArray(e)&&fe("Multiple root nodes returned from render function. Render function should return a single root node.",t),e=Ae()),e.parent=o,e}}function qn(e,t){return(e.__esModule||le&&"Module"===e[Symbol.toStringTag])&&(e=e.default),u(e)?t.extend(e):e}function Vn(e,t,n,r,o){var i=Ae();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}function Kn(e,t){if(i(e.error)&&o(e.errorComp))return e.errorComp;if(o(e.resolved))return e.resolved;var n=Bn;if(n&&o(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),i(e.loading)&&o(e.loadingComp))return e.loadingComp;if(n&&!o(e.owners)){var a=e.owners=[n],s=!0,c=null,l=null;n.$on("hook:destroyed",(function(){return b(a,n)}));var f=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==c&&(clearTimeout(c),c=null),null!==l&&(clearTimeout(l),l=null))},d=F((function(n){e.resolved=qn(n,t),s?a.length=0:f(!0)})),p=F((function(t){fe("Failed to resolve async component: "+String(e)+(t?"\nReason: "+t:"")),o(e.errorComp)&&(e.error=!0,f(!0))})),v=e(d,p);return u(v)&&(h(v)?r(e.resolved)&&v.then(d,p):h(v.component)&&(v.component.then(d,p),o(v.error)&&(e.errorComp=qn(v.error,t)),o(v.loading)&&(e.loadingComp=qn(v.loading,t),0===v.delay?e.loading=!0:c=setTimeout((function(){c=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,f(!1))}),v.delay||200)),o(v.timeout)&&(l=setTimeout((function(){l=null,r(e.resolved)&&p("timeout ("+v.timeout+"ms)")}),v.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function zn(e){return e.isComment&&e.asyncFactory}function Wn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(o(n)&&(o(n.componentOptions)||zn(n)))return n}}function Jn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Yn(e,t)}function Gn(e,t){Fn.$on(e,t)}function Xn(e,t){Fn.$off(e,t)}function Zn(e,t){var n=Fn;return function r(){var o=t.apply(null,arguments);null!==o&&n.$off(e,r)}}function Yn(e,t,n){Fn=e,Vt(t,n||{},Gn,Xn,Zn,e),Fn=void 0}function Qn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var o=0,i=e.length;o<i;o++)r.$on(e[o],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,o=e.length;r<o;r++)n.$off(e[r],t);return n}var i,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var s=a.length;while(s--)if(i=a[s],i===t||i.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=e.toLowerCase();n!==e&&t._events[n]&&de('Event "'+n+'" is emitted in component '+he(t)+' but the handler is registered for "'+e+'". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "'+C(e)+'" instead of "'+e+'".');var r=t._events[e];if(r){r=r.length>1?j(r):r;for(var o=j(arguments,1),i='event handler for "'+e+'"',a=0,s=r.length;a<s;a++)gt(r[a],t,o,t,i)}return t}}var er=null,tr=!1;function nr(e){var t=er;return er=e,function(){er=t}}function rr(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function or(e){e.prototype._update=function(e,t){var n=this,r=n.$el,o=n._vnode,i=nr(n);n._vnode=e,n.$el=o?n.__patch__(o,e):n.__patch__(n.$el,e,t,!1),i(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){cr(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),cr(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function ir(e,t,r,o,i){tr=!0;var a=o.data.scopedSlots,s=e.$scopedSlots,u=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),c=!!(i||e.$options._renderChildren||u);if(e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o),e.$options._renderChildren=i,e.$attrs=o.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){$e(!1);for(var l=e._props,f=e.$options._propKeys||[],d=0;d<f.length;d++){var p=f[d],h=e.$options.props;l[p]=rt(p,h,t,e)}$e(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),r=r||n;var v=e.$options._parentListeners;e.$options._parentListeners=r,Yn(e,r,v),c&&(e.$slots=tn(i,o.context),e.$forceUpdate()),tr=!1}function ar(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function sr(e,t){if(t){if(e._directInactive=!1,ar(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)sr(e.$children[n]);cr(e,"activated")}}function ur(e,t){if((!t||(e._directInactive=!0,!ar(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)ur(e.$children[n]);cr(e,"deactivated")}}function cr(e,t){we();var n=e.$options[t],r=t+" hook";if(n)for(var o=0,i=n.length;o<i;o++)gt(n[o],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),ke()}var lr=100,fr=[],dr=[],pr={},hr={},vr=!1,gr=!1,yr=0;function mr(){yr=fr.length=dr.length=0,pr={},hr={},vr=gr=!1}var _r=Date.now;if(Z&&!te){var br=window.performance;br&&"function"===typeof br.now&&_r()>document.createEvent("Event").timeStamp&&(_r=function(){return br.now()})}function wr(){var e,t;for(_r(),gr=!0,fr.sort((function(e,t){return e.id-t.id})),yr=0;yr<fr.length;yr++)if(e=fr[yr],e.before&&e.before(),t=e.id,pr[t]=null,e.run(),null!=pr[t]&&(hr[t]=(hr[t]||0)+1,hr[t]>lr)){fe("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}var n=dr.slice(),r=fr.slice();mr(),Or(n),kr(r),se&&q.devtools&&se.emit("flush")}function kr(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&cr(r,"updated")}}function xr(e){e._inactive=!1,dr.push(e)}function Or(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,sr(e[t],!0)}function Ar(e){var t=e.id;if(null==pr[t]){if(pr[t]=!0,gr){var n=fr.length-1;while(n>yr&&fr[n].id>e.id)n--;fr.splice(n+1,0,e)}else fr.push(e);if(!vr){if(vr=!0,!q.async)return void wr();Ct(wr)}}}var Sr=0,Pr=function(e,t,n,r,o){this.vm=e,o&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Sr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ce,this.newDepIds=new ce,this.expression=t.toString(),"function"===typeof t?this.getter=t:(this.getter=J(t),this.getter||(this.getter=R,fe('Failed watching path: "'+t+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',e))),this.value=this.lazy?void 0:this.get()};Pr.prototype.get=function(){var e;we(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Fo){if(!this.user)throw Fo;vt(Fo,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Ut(e),ke(),this.cleanupDeps()}return e},Pr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Pr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Pr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Ar(this)},Pr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Fo){vt(Fo,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Pr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Pr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},Pr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var Cr={enumerable:!0,configurable:!0,get:R,set:R};function Er(e,t,n){Cr.get=function(){return this[t][n]},Cr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Cr)}function Tr(e){e._watchers=[];var t=e.$options;t.props&&Ir(e,t.props),t.methods&&Ur(e,t.methods),t.data?jr(e):Ne(e._data={},!0),t.computed&&Rr(e,t.computed),t.watch&&t.watch!==oe&&Fr(e,t.watch)}function Ir(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;i||$e(!1);var a=function(a){o.push(a);var s=rt(a,t,n,e),u=C(a);(_(u)||q.isReservedAttr(u))&&fe('"'+u+'" is a reserved attribute and cannot be used as component prop.',e),De(r,a,s,(function(){if(!i&&!tr){if("mp-baidu"===e.mpHost||"mp-kuaishou"===e.mpHost||"mp-xhs"===e.mpHost)return;if("value"===a&&Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field"))return;if(e._getFormData)return;var t=e.$parent;while(t){if(t.__next_tick_pending)return;t=t.$parent}fe("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+a+'"',e)}})),a in e||Er(e,"_props",a)};for(var s in t)a(s);$e(!0)}function jr(e){var t=e.$options.data;t=e._data="function"===typeof t?$r(t,e):t||{},f(t)||(t={},fe("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));var n=Object.keys(t),r=e.$options.props,o=e.$options.methods,i=n.length;while(i--){var a=n[i];o&&k(o,a)&&fe('Method "'+a+'" has already been defined as a data property.',e),r&&k(r,a)?fe('The data property "'+a+'" is already declared as a prop. Use prop default value instead.',e):K(a)||Er(e,"_data",a)}Ne(t,!0)}function $r(e,t){we();try{return e.call(t,t)}catch(Fo){return vt(Fo,t,"data()"),{}}finally{ke()}}var Mr={lazy:!0};function Rr(e,t){var n=e._computedWatchers=Object.create(null),r=ae();for(var o in t){var i=t[o],a="function"===typeof i?i:i.get;null==a&&fe('Getter is missing for computed property "'+o+'".',e),r||(n[o]=new Pr(e,a||R,R,Mr)),o in e?o in e.$data?fe('The computed property "'+o+'" is already defined in data.',e):e.$options.props&&o in e.$options.props&&fe('The computed property "'+o+'" is already defined as a prop.',e):Lr(e,o,i)}}function Lr(e,t,n){var r=!ae();"function"===typeof n?(Cr.get=r?Nr(t):Dr(n),Cr.set=R):(Cr.get=n.get?r&&!1!==n.cache?Nr(t):Dr(n.get):R,Cr.set=n.set||R),Cr.set===R&&(Cr.set=function(){fe('Computed property "'+t+'" was assigned to but it has no setter.',this)}),Object.defineProperty(e,t,Cr)}function Nr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),be.SharedObject.target&&t.depend(),t.value}}function Dr(e){return function(){return e.call(this,this)}}function Ur(e,t){var n=e.$options.props;for(var r in t)"function"!==typeof t[r]&&fe('Method "'+r+'" has type "'+typeof t[r]+'" in the component definition. Did you reference the function correctly?',e),n&&k(n,r)&&fe('Method "'+r+'" has already been defined as a prop.',e),r in e&&K(r)&&fe('Method "'+r+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),e[r]="function"!==typeof t[r]?R:I(t[r],e)}function Fr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)Br(e,n,r[o]);else Br(e,n,r)}}function Br(e,t,n,r){return f(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function Hr(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};t.set=function(){fe("Avoid replacing instance root $data. Use nested data properties instead.",this)},n.set=function(){fe("$props is readonly.",this)},Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ue,e.prototype.$delete=Fe,e.prototype.$watch=function(e,t,n){var r=this;if(f(t))return Br(r,e,t,n);n=n||{},n.user=!0;var o=new Pr(r,e,t,n);if(n.immediate)try{t.call(r,o.value)}catch(i){vt(i,r,'callback for immediate watcher "'+o.expression+'"')}return function(){o.teardown()}}}var qr=0;function Vr(e){e.prototype._init=function(e){var t,n,r=this;r._uid=qr++,q.performance&&Lt&&(t="vue-perf-start:"+r._uid,n="vue-perf-end:"+r._uid,Lt(t)),r._isVue=!0,e&&e._isComponent?Kr(r,e):r.$options=tt(zr(r.constructor),e||{},r),bt(r),r._self=r,rr(r),Jn(r),Un(r),cr(r,"beforeCreate"),!r._$fallback&&Qt(r),Tr(r),!r._$fallback&&Yt(r),!r._$fallback&&cr(r,"created"),q.performance&&Lt&&(r._name=he(r,!1),Lt(n),Nt("vue "+r._name+" init",t,n)),r.$options.el&&r.$mount(r.$options.el)}}function Kr(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function zr(e){var t=e.options;if(e.super){var n=zr(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var o=Wr(e);o&&$(e.extendOptions,o),t=e.options=tt(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Wr(e){var t,n=e.options,r=e.sealedOptions;for(var o in n)n[o]!==r[o]&&(t||(t={}),t[o]=n[o]);return t}function Jr(e){this instanceof Jr||fe("Vue is a constructor and should be called with the `new` keyword"),this._init(e)}function Gr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=j(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Xr(e){e.mixin=function(e){return this.options=tt(this.options,e),this}}function Zr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name;i&&Xe(i);var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=tt(n.options,e),a["super"]=n,a.options.props&&Yr(a),a.options.computed&&Qr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,B.forEach((function(e){a[e]=n[e]})),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=$({},a.options),o[r]=a,a}}function Yr(e){var t=e.options.props;for(var n in t)Er(e.prototype,"_props",n)}function Qr(e){var t=e.options.computed;for(var n in t)Lr(e.prototype,n,t[n])}function eo(e){B.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&Xe(e),"component"===t&&f(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function to(e){return e&&(e.Ctor.options.name||e.tag)}function no(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function ro(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=to(a.componentOptions);s&&!t(s)&&oo(n,i,r,o)}}}function oo(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,b(n,t)}Vr(Jr),Hr(Jr),Qn(Jr),or(Jr),Hn(Jr);var io=[String,RegExp,Array],ao={name:"keep-alive",abstract:!0,props:{include:io,exclude:io,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)oo(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){ro(e,(function(e){return no(t,e)}))})),this.$watch("exclude",(function(t){ro(e,(function(e){return!no(t,e)}))}))},render:function(){var e=this.$slots.default,t=Wn(e),n=t&&t.componentOptions;if(n){var r=to(n),o=this,i=o.include,a=o.exclude;if(i&&(!r||!no(i,r))||a&&r&&no(a,r))return t;var s=this,u=s.cache,c=s.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;u[l]?(t.componentInstance=u[l].componentInstance,b(c,l),c.push(l)):(u[l]=t,c.push(l),this.max&&c.length>parseInt(this.max)&&oo(u,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},so={KeepAlive:ao};function uo(e){var t={get:function(){return q},set:function(){fe("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:$,mergeOptions:tt,defineReactive:De},e.set=Ue,e.delete=Fe,e.nextTick=Ct,e.observable=function(e){return Ne(e),e},e.options=Object.create(null),B.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,$(e.options.components,so),Gr(e),Xr(e),Zr(e),eo(e)}uo(Jr),Object.defineProperty(Jr.prototype,"$isServer",{get:ae}),Object.defineProperty(Jr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Jr,"FunctionalRenderContext",{value:kn}),Jr.version="2.6.11";var co="[object Array]",lo="[object Object]",fo="[object Null]",po="[object Undefined]";function ho(e,t){var n={};return vo(e,t),yo(e,t,"",n),n}function vo(e,t){if(e!==t){var n=_o(e),r=_o(t);if(n==lo&&r==lo){if(Object.keys(e).length>=Object.keys(t).length)for(var o in t){var i=e[o];void 0===i?e[o]=null:vo(i,t[o])}}else n==co&&r==co&&e.length>=t.length&&t.forEach((function(t,n){vo(e[n],t)}))}}function go(e,t){return e!==fo&&e!==po||t!==fo&&t!==po}function yo(e,t,n,r){if(e!==t){var o=_o(e),i=_o(t);if(o==lo)if(i!=lo||Object.keys(e).length<Object.keys(t).length)mo(r,n,e);else{var a=function(o){var i=e[o],a=t[o],s=_o(i),u=_o(a);if(s!=co&&s!=lo)i!==t[o]&&go(s,u)&&mo(r,(""==n?"":n+".")+o,i);else if(s==co)u!=co||i.length<a.length?mo(r,(""==n?"":n+".")+o,i):i.forEach((function(e,t){yo(e,a[t],(""==n?"":n+".")+o+"["+t+"]",r)}));else if(s==lo)if(u!=lo||Object.keys(i).length<Object.keys(a).length)mo(r,(""==n?"":n+".")+o,i);else for(var c in i)yo(i[c],a[c],(""==n?"":n+".")+o+"."+c,r)};for(var s in e)a(s)}else o==co?i!=co||e.length<t.length?mo(r,n,e):e.forEach((function(e,o){yo(e,t[o],n+"["+o+"]",r)})):mo(r,n,e)}}function mo(e,t,n){e[t]=n}function _o(e){return Object.prototype.toString.call(e)}function bo(e){if(e.__next_tick_callbacks&&e.__next_tick_callbacks.length){if(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"速立保",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"development",BASE_URL:"/"}).VUE_APP_DEBUG){var t=e.$scope;console.log("["+ +new Date+"]["+(t.is||t.route)+"]["+e._uid+"]:flushCallbacks["+e.__next_tick_callbacks.length+"]")}var n=e.__next_tick_callbacks.slice(0);e.__next_tick_callbacks.length=0;for(var r=0;r<n.length;r++)n[r]()}}function wo(e){return fr.find((function(t){return e._watcher===t}))}function ko(e,t){if(!e.__next_tick_pending&&!wo(e)){if(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"速立保",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"development",BASE_URL:"/"}).VUE_APP_DEBUG){var n=e.$scope;console.log("["+ +new Date+"]["+(n.is||n.route)+"]["+e._uid+"]:nextVueTick")}return Ct(t,e)}if(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"速立保",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"development",BASE_URL:"/"}).VUE_APP_DEBUG){var r=e.$scope;console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+e._uid+"]:nextMPTick")}var o;if(e.__next_tick_callbacks||(e.__next_tick_callbacks=[]),e.__next_tick_callbacks.push((function(){if(t)try{t.call(e)}catch(Fo){vt(Fo,e,"nextTick")}else o&&o(e)})),!t&&"undefined"!==typeof Promise)return new Promise((function(e){o=e}))}function xo(e,t){return t&&(t._isVue||t.__v_isMPComponent)?{}:t}function Oo(e){var t=Object.create(null),n=[].concat(Object.keys(e._data||{}),Object.keys(e._computedWatchers||{}));n.reduce((function(t,n){return t[n]=e[n],t}),t);var r=e.__composition_api_state__||e.__secret_vfa_state__,o=r&&r.rawBindings;return o&&Object.keys(o).forEach((function(n){t[n]=e[n]})),Object.assign(t,e.$mp.data||{}),Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field")&&(t["name"]=e.name,t["value"]=e.value),JSON.parse(JSON.stringify(t,xo))}var Ao=function(e,t){var n=this;if(null!==t&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,o=Object.create(null);try{o=Oo(this)}catch(s){console.error(s)}o.__webviewId__=r.data.__webviewId__;var i=Object.create(null);Object.keys(o).forEach((function(e){i[e]=r.data[e]}));var a=!1===this.$shouldDiffData?o:ho(o,i);Object.keys(a).length?(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"速立保",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"development",BASE_URL:"/"}).VUE_APP_DEBUG&&console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+this._uid+"]差量更新",JSON.stringify(a)),this.__next_tick_pending=!0,r.setData(a,(function(){n.__next_tick_pending=!1,bo(n)}))):bo(this)}};function So(){}function Po(e,t,n){if(!e.mpType)return e;"app"===e.mpType&&(e.$options.render=So),e.$options.render||(e.$options.render=So,e.$options.template&&"#"!==e.$options.template.charAt(0)||e.$options.el||t?fe("You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",e):fe("Failed to mount component: template or render function not defined.",e)),!e._$fallback&&cr(e,"beforeMount");var r=function(){e._update(e._render(),n)};return new Pr(e,r,R,{before:function(){e._isMounted&&!e._isDestroyed&&cr(e,"beforeUpdate")}},!0),n=!1,e}function Co(e,t){return o(e)||o(t)?Eo(e,To(t)):""}function Eo(e,t){return e?t?e+" "+t:e:t||""}function To(e){return Array.isArray(e)?Io(e):u(e)?jo(e):"string"===typeof e?e:""}function Io(e){for(var t,n="",r=0,i=e.length;r<i;r++)o(t=To(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function jo(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var $o=x((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Mo(e){return Array.isArray(e)?M(e):"string"===typeof e?$o(e):e}var Ro=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Lo(e,t){var n=t.split("."),r=n[0];return 0===r.indexOf("__$n")&&(r=parseInt(r.replace("__$n",""))),1===n.length?e[r]:Lo(e[r],n.slice(1).join("."))}function No(e){e.config.errorHandler=function(t,n,r){e.util.warn("Error in "+r+': "'+t.toString()+'"',n),console.error(t);var o="function"===typeof getApp&&getApp();o&&o.onError&&o.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var n=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(n)try{n.call(this.$scope,e,{__args__:j(arguments,1)})}catch(r){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return ko(this,e)},Ro.forEach((function(t){e.prototype[t]=function(e){return this.$scope&&this.$scope[t]?this.$scope[t](e):"undefined"!==typeof my?"createSelectorQuery"===t?my.createSelectorQuery(e):"createIntersectionObserver"===t?my.createIntersectionObserver(e):void 0:void 0}})),e.prototype.__init_provide=Yt,e.prototype.__init_injections=Qt,e.prototype.__call_hook=function(e,t){var n=this;we();var r,o=n.$options[e],i=e+" hook";if(o)for(var a=0,s=o.length;a<s;a++)r=gt(o[a],n,t?[t]:null,n,i);return n._hasHookEvent&&n.$emit("hook:"+e,t),ke(),r},e.prototype.__set_model=function(t,n,r,o){Array.isArray(o)&&(-1!==o.indexOf("trim")&&(r=r.trim()),-1!==o.indexOf("number")&&(r=this._n(r))),t||(t=this),e.set(t,n,r)},e.prototype.__set_sync=function(t,n,r){t||(t=this),e.set(t,n,r)},e.prototype.__get_orig=function(e){return f(e)&&e["$orig"]||e},e.prototype.__get_value=function(e,t){return Lo(t||this,e)},e.prototype.__get_class=function(e,t){return Co(t,e)},e.prototype.__get_style=function(e,t){if(!e&&!t)return"";var n=Mo(e),r=t?$(t,n):n;return Object.keys(r).map((function(e){return C(e)+":"+r[e]})).join(";")},e.prototype.__map=function(e,t){var n,r,o,i,a;if(Array.isArray(e)){for(n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]=t(e[r],r);return n}if(u(e)){for(i=Object.keys(e),n=Object.create(null),r=0,o=i.length;r<o;r++)a=i[r],n[a]=t(e[a],a,r);return n}if("number"===typeof e){for(n=new Array(e),r=0,o=e;r<o;r++)n[r]=t(r,r);return n}return[]}}var Do=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onUploadDouyinVideo","onNFCReadMessage","onPageShow","onPageHide","onPageResize"];function Uo(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;return n&&Object.keys(n).forEach((function(t){-1!==Do.indexOf(t)&&(e[t]=n[t],delete n[t])})),t.call(this,e)};var n=e.config.optionMergeStrategies,r=n.created;Do.forEach((function(e){n[e]=r})),e.prototype.__lifecycle_hooks__=Do}Jr.prototype.__patch__=Ao,Jr.prototype.$mount=function(e,t){return Po(this,e,t)},Uo(Jr),No(Jr),t["default"]=Jr}.call(this,n(3))},26:function(e,t){},264:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={options:{virtualHost:!0}};t.default=r},265:function(e,t,n){"use strict";(function(e){var r=n(4),o=n(13);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(11)),a=d(n(266)),s=d(n(267)),u=r(n(270)),c=r(n(271)),l=r(n(272));function f(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v={props:{customStyle:{type:[Object,String],default:function(){return{}}},customClass:{type:String,default:""},url:{type:String,default:""},linkType:{type:String,default:"navigateTo"}},data:function(){return{}},onLoad:function(){this.$uv.getRect=this.$uvGetRect},created:function(){this.$uv.getRect=this.$uvGetRect},computed:{$uv:function(){var t,n,r;return h(h({},a),{},{test:s,route:u.default,debounce:c.default,throttle:l.default,unit:null===(t=e)||void 0===t||null===(n=t.$uv)||void 0===n||null===(r=n.config)||void 0===r?void 0:r.unit})},bem:function(){return function(e,t,n){var r=this,o="uv-".concat(e,"--"),i={};return t&&t.map((function(e){i[o+r[e]]=!0})),n&&n.map((function(e){r[e]?i[o+e]=r[e]:delete i[o+e]})),Object.keys(i)}}},methods:{openPage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"url",n=this[t];n&&e[this.linkType]({url:n})},$uvGetRect:function(t,n){var r=this;return new Promise((function(o){e.createSelectorQuery().in(r)[n?"selectAll":"select"](t).boundingClientRect((function(e){n&&Array.isArray(e)&&e.length&&o(e),!n&&e&&o(e)})).exec()}))},getParentData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent={}),this.parent=this.$uv.$parent.call(this,t),this.parent.children&&-1===this.parent.children.indexOf(this)&&this.parent.children.push(this),this.parent&&this.parentData&&Object.keys(this.parentData).map((function(t){e.parentData[t]=e.parent[t]}))},preventEvent:function(e){e&&"function"===typeof e.stopPropagation&&e.stopPropagation()},noop:function(e){this.preventEvent(e)}},onReachBottom:function(){e.$emit("uvOnReachBottom")},beforeDestroy:function(){var e=this;if(this.parent&&s.array(this.parent.children)){var t=this.parent.children;t.map((function(n,r){n===e&&t.splice(r,1)}))}},unmounted:function(){var e=this;if(this.parent&&s.array(this.parent.children)){var t=this.parent.children;t.map((function(n,r){n===e&&t.splice(r,1)}))}}};t.default=v}).call(this,n(2)["default"])},266:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.$parent=v,t.addStyle=g,t.addUnit=y,t.deepClone=m,t.deepMerge=_,t.error=b,t.formValidate=I,t.getDuration=E,t.getHistoryPage=L,t.getProperty=j,t.getPx=c,t.guid=h,t.os=f,t.padZero=T,t.page=M,t.pages=R,t.priceFormat=C,t.queryParams=A,t.random=p,t.randomArray=w,t.range=u,t.setConfig=N,t.setProperty=$,t.sleep=l,t.sys=d,t.timeFormat=k,t.timeFrom=x,t.toast=S,t.trim=O,t.type2icon=P;var o=r(n(5)),i=r(n(13)),a=n(267),s=n(268);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(e,Math.min(t,Number(n)))}function c(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,a.number)(t)?n?"".concat(t,"px"):Number(t):/(rpx|upx)$/.test(t)?n?"".concat(e.upx2px(parseInt(t)),"px"):Number(e.upx2px(parseInt(t))):n?"".concat(parseInt(t),"px"):parseInt(t)}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30;return new Promise((function(t){setTimeout((function(){t()}),e)}))}function f(){return e.getSystemInfoSync().platform.toLowerCase()}function d(){return e.getSystemInfoSync()}function p(e,t){if(e>=0&&t>0&&t>=e){var n=t-e+1;return Math.floor(Math.random()*n+e)}return 0}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(n=n||r.length,e)for(var i=0;i<e;i++)o[i]=r[0|Math.random()*n];else{var a;o[8]=o[13]=o[18]=o[23]="-",o[14]="4";for(var s=0;s<36;s++)o[s]||(a=0|16*Math.random(),o[s]=r[19==s?3&a|8:a])}return t?(o.shift(),"u".concat(o.join(""))):o.join("")}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this.$parent;while(t){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object";if((0,a.empty)(e)||"object"===(0,i.default)(e)&&"object"===t||"string"===t&&"string"===typeof e)return e;if("object"===t){e=O(e);for(var n=e.split(";"),r={},o=0;o<n.length;o++)if(n[o]){var s=n[o].split(":");r[O(s[0])]=O(s[1])}return r}var u="";for(var c in e){var l=c.replace(/([A-Z])/g,"-$1").toLowerCase();u+="".concat(l,":").concat(e[c],";")}return O(u)}function y(){var t,n,r,o,i,s,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null!==(t=e)&&void 0!==t&&null!==(n=t.$uv)&&void 0!==n&&null!==(r=n.config)&&void 0!==r&&r.unit?null===(o=e)||void 0===o||null===(i=o.$uv)||void 0===i||null===(s=i.config)||void 0===s?void 0:s.unit:"px";return u=String(u),(0,a.number)(u)?"".concat(u).concat(c):u}function m(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null===e||"object"!==(0,i.default)(e))return e;if(n.has(e))return n.get(e);if(e instanceof Date)t=new Date(e.getTime());else if(e instanceof RegExp)t=new RegExp(e);else if(e instanceof Map)t=new Map(Array.from(e,(function(e){var t=(0,o.default)(e,2),r=t[0],i=t[1];return[r,m(i,n)]})));else if(e instanceof Set)t=new Set(Array.from(e,(function(e){return m(e,n)})));else if(Array.isArray(e))t=e.map((function(e){return m(e,n)}));else if("[object Object]"===Object.prototype.toString.call(e)){t=Object.create(Object.getPrototypeOf(e)),n.set(e,t);for(var r=0,a=Object.entries(e);r<a.length;r++){var s=(0,o.default)(a[r],2),u=s[0],c=s[1];t[u]=m(c,n)}}else t=Object.assign({},e);return n.set(e,t),t}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=m(e),"object"!==(0,i.default)(e)||null===e||"object"!==(0,i.default)(t)||null===t)return e;var n=Array.isArray(e)?e.slice():Object.assign({},e);for(var r in t)if(t.hasOwnProperty(r)){var o=t[r],a=n[r];o instanceof Date?n[r]=new Date(o):o instanceof RegExp?n[r]=new RegExp(o):o instanceof Map?n[r]=new Map(o):o instanceof Set?n[r]=new Set(o):"object"===(0,i.default)(o)&&null!==o?n[r]=_(a,o):n[r]=o}return n}function b(e){console.error("uvui提示:".concat(e))}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(){return Math.random()-.5}))}function k(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";e=t?/^\d{10}$/.test(null===t||void 0===t?void 0:t.toString().trim())?new Date(1e3*t):"string"===typeof t&&/^\d+$/.test(t.trim())?new Date(Number(t)):"string"===typeof t&&t.includes("-")&&!t.includes("T")?new Date(t.replace(/-/g,"/")):new Date(t):new Date;var r={y:e.getFullYear().toString(),m:(e.getMonth()+1).toString().padStart(2,"0"),d:e.getDate().toString().padStart(2,"0"),h:e.getHours().toString().padStart(2,"0"),M:e.getMinutes().toString().padStart(2,"0"),s:e.getSeconds().toString().padStart(2,"0")};for(var i in r){var a=new RegExp("".concat(i,"+")).exec(n)||[],s=(0,o.default)(a,1),u=s[0];if(u){var c="y"===i&&2===u.length?2:0;n=n.replace(u,r[i].slice(c))}}return n}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";null==e&&(e=Number(new Date)),e=parseInt(e),10==e.toString().length&&(e*=1e3);var n=(new Date).getTime()-e;n=parseInt(n/1e3);var r="";switch(!0){case n<300:r="刚刚";break;case n>=300&&n<3600:r="".concat(parseInt(n/60),"分钟前");break;case n>=3600&&n<86400:r="".concat(parseInt(n/3600),"小时前");break;case n>=86400&&n<2592e3:r="".concat(parseInt(n/86400),"天前");break;default:r=!1===t?n>=2592e3&&n<31536e3?"".concat(parseInt(n/2592e3),"个月前"):"".concat(parseInt(n/31536e3),"年前"):k(e,t)}return r}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return e=String(e),"both"==t?e.replace(/^\s+|\s+$/g,""):"left"==t?e.replace(/^\s*/,""):"right"==t?e.replace(/(\s*$)/g,""):"all"==t?e.replace(/\s+/g,""):e}function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",r=t?"?":"",o=[];-1==["indices","brackets","repeat","comma"].indexOf(n)&&(n="brackets");var i=function(t){var r=e[t];if(["",void 0,null].indexOf(r)>=0)return"continue";if(r.constructor===Array)switch(n){case"indices":for(var i=0;i<r.length;i++)o.push("".concat(t,"[").concat(i,"]=").concat(r[i]));break;case"brackets":r.forEach((function(e){o.push("".concat(t,"[]=").concat(e))}));break;case"repeat":r.forEach((function(e){o.push("".concat(t,"=").concat(e))}));break;case"comma":var a="";r.forEach((function(e){a+=(a?",":"")+e})),o.push("".concat(t,"=").concat(a));break;default:r.forEach((function(e){o.push("".concat(t,"[]=").concat(e))}))}else o.push("".concat(t,"=").concat(r))};for(var a in e)i(a);return o.length?r+o.join("&"):""}function S(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;e.showToast({title:String(t),icon:"none",duration:n})}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];-1==["primary","info","error","warning","success"].indexOf(e)&&(e="success");var n="";switch(e){case"primary":n="info-circle";break;case"info":n="info-circle";break;case"error":n="close-circle";break;case"warning":n="error-circle";break;case"success":n="checkmark-circle";break;default:n="checkmark-circle"}return t&&(n+="-fill"),n}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";e="".concat(e).replace(/[^0-9+-Ee.]/g,"");var o=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,a="undefined"===typeof r?",":r,u="undefined"===typeof n?".":n,c="";c=(i?(0,s.round)(o,i)+"":"".concat(Math.round(o))).split(".");var l=/(-?\d+)(\d{3})/;while(l.test(c[0]))c[0]=c[0].replace(l,"$1".concat(a,"$2"));return(c[1]||"").length<i&&(c[1]=c[1]||"",c[1]+=new Array(i-c[1].length+1).join("0")),c.join(u)}function E(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=parseInt(e);return t?/s$/.test(e)?e:"".concat(e,e>30?"ms":"s"):/ms$/.test(e)?n:/s$/.test(e)?n>30?n:1e3*n:n}function T(e){return"00".concat(e).slice(-2)}function I(e,t){var n=v.call(e,"uv-form-item"),r=v.call(e,"uv-form");n&&r&&r.validateField(n.prop,(function(){}),t)}function j(e,t){if(e){if("string"!==typeof t||""===t)return"";if(-1!==t.indexOf(".")){for(var n=t.split("."),r=e[n[0]]||{},o=1;o<n.length;o++)r&&(r=r[n[o]]);return r}return e[t]}}function $(e,t,n){if(e){var r=function e(t,n,r){if(1!==n.length)while(n.length>1){var o=n[0];t[o]&&"object"===(0,i.default)(t[o])||(t[o]={});n.shift();e(t[o],n,r)}else t[n[0]]=r};if("string"!==typeof t||""===t);else if(-1!==t.indexOf(".")){var o=t.split(".");r(e,o,n)}else e[t]=n}}function M(){var e,t=getCurrentPages(),n=null===(e=t[t.length-1])||void 0===e?void 0:e.route;return"/".concat(n||"")}function R(){var e=getCurrentPages();return e}function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=getCurrentPages(),n=t.length;return t[n-1+e]}function N(t){var n=t.props,r=void 0===n?{}:n,o=t.config,i=void 0===o?{}:o,a=t.color,s=void 0===a?{}:a,u=t.zIndex,c=void 0===u?{}:u,l=e.$uv.deepMerge;e.$uv.config=l(e.$uv.config,i),e.$uv.props=l(e.$uv.props,r),e.$uv.color=l(e.$uv.color,s),e.$uv.zIndex=l(e.$uv.zIndex,c)}String.prototype.padStart||(String.prototype.padStart=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("fillString must be String");var n=this;if(n.length>=e)return String(n);var r=e-n.length,o=Math.ceil(r/t.length);while(o>>=1)t+=t,1===o&&(t+=t);return t.slice(0,r)+n})}).call(this,n(2)["default"])},267:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.amount=v,t.array=A,t.carNo=h,t.chinese=g,t.code=P,t.contains=_,t.date=u,t.dateISO=c,t.digits=d,t.email=i,t.empty=x,t.enOrNum=m,t.func=C,t.idCard=p,t.image=T,t.jsonString=O,t.landline=k,t.letter=y,t.mobile=a,t.number=l,t.object=S,t.promise=E,t.range=b,t.rangeLength=w,t.regExp=j,t.string=f,t.url=s,t.video=I;var o=r(n(13));function i(e){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e)}function a(e){return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(e)}function s(e){return/^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(e)}function u(e){return!!e&&(l(e)&&(e=+e),!/Invalid|NaN/.test(new Date(e).toString()))}function c(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)}function l(e){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(e)}function f(e){return"string"===typeof e}function d(e){return/^\d+$/.test(e)}function p(e){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e)}function h(e){var t=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,n=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return 7===e.length?n.test(e):8===e.length&&t.test(e)}function v(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)}function g(e){var t=/^[\u4e00-\u9fa5]+$/gi;return t.test(e)}function y(e){return/^[a-zA-Z]*$/.test(e)}function m(e){var t=/^[0-9a-zA-Z]*$/g;return t.test(e)}function _(e,t){return e.indexOf(t)>=0}function b(e,t){return e>=t[0]&&e<=t[1]}function w(e,t){return e.length>=t[0]&&e.length<=t[1]}function k(e){var t=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return t.test(e)}function x(e){switch((0,o.default)(e)){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}function O(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!==(0,o.default)(t)||!t)}catch(n){return!1}return!1}function A(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function S(e){return"[object Object]"===Object.prototype.toString.call(e)}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(t,"}$")).test(e)}function C(e){return"function"===typeof e}function E(e){return S(e)&&C(e.then)&&C(e.catch)}function T(e){var t=e.split("?")[0],n=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return n.test(t)}function I(e){var t=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return t.test(e)}function j(e){return e&&"[object RegExp]"===Object.prototype.toString.call(e)}},268:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.divide=h,t.enableBoundaryChecking=g,t.minus=p,t.plus=d,t.round=v,t.times=f;var o=r(n(269)),i=!0;function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return+parseFloat(Number(e).toPrecision(t))}function s(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function u(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));var t=s(e);return t>0?a(Number(e)*Math.pow(10,t)):Number(e)}function c(e){i&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&console.warn("".concat(e," 超出了精度限制,结果可能不正确"))}function l(e,t){var n=(0,o.default)(e),r=n[0],i=n[1],a=n.slice(2),s=t(r,i);return a.forEach((function(e){s=t(s,e)})),s}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>2)return l(t,f);var r=t[0],o=t[1],i=u(r),a=u(o),d=s(r)+s(o),p=i*a;return c(p),p/Math.pow(10,d)}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>2)return l(t,d);var r=t[0],o=t[1],i=Math.pow(10,Math.max(s(r),s(o)));return(f(r,i)+f(o,i))/i}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>2)return l(t,p);var r=t[0],o=t[1],i=Math.pow(10,Math.max(s(r),s(o)));return(f(r,i)-f(o,i))/i}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>2)return l(t,h);var r=t[0],o=t[1],i=u(r),d=u(o);return c(i),c(d),f(i/d,a(Math.pow(10,s(o)-s(r))))}function v(e,t){var n=Math.pow(10,t),r=h(Math.round(Math.abs(f(e,n))),n);return e<0&&0!==r&&(r=f(r,-1)),r}function g(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];i=e}var y={times:f,plus:d,minus:p,divide:h,round:v,enableBoundaryChecking:g};t.default=y},269:function(e,t,n){var r=n(6),o=n(20),i=n(8),a=n(10);function s(e){return r(e)||o(e)||i(e)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},270:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(58)),i=r(n(60)),a=r(n(23)),s=r(n(24)),u=n(266),c=function(){function t(){(0,a.default)(this,t),this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1,events:{}},this.route=this.route.bind(this)}return(0,s.default)(t,[{key:"addRootPath",value:function(e){return"/"===e[0]?e:"/".concat(e)}},{key:"mixinParam",value:function(e,t){e=e&&this.addRootPath(e);var n="";return/.*\/.*\?.*=.*/.test(e)?(n=(0,u.queryParams)(t,!1),e+"&".concat(n)):(n=(0,u.queryParams)(t),e+n)}},{key:"route",value:function(){var e=(0,i.default)(o.default.mark((function e(){var t,n,r,i,a=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]?a[0]:{},n=a.length>1&&void 0!==a[1]?a[1]:{},r={},"string"===typeof t?(r.url=this.mixinParam(t,n),r.type="navigateTo"):(r=(0,u.deepMerge)(this.config,t),r.url=this.mixinParam(t.url,t.params)),r.url!==(0,u.page)()){e.next=6;break}return e.abrupt("return");case 6:if(n.intercept&&(r.intercept=n.intercept),r.params=n,r=(0,u.deepMerge)(this.config,r),"function"!==typeof r.intercept){e.next=16;break}return e.next=12,new Promise((function(e,t){r.intercept(r,e)}));case 12:i=e.sent,i&&this.openPage(r),e.next=17;break;case 16:this.openPage(r);case 17:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"openPage",value:function(t){var n=t.url,r=(t.type,t.delta),o=t.animationType,i=t.animationDuration,a=t.events;"navigateTo"!=t.type&&"to"!=t.type||e.navigateTo({url:n,animationType:o,animationDuration:i,events:a}),"redirectTo"!=t.type&&"redirect"!=t.type||e.redirectTo({url:n}),"switchTab"!=t.type&&"tab"!=t.type||e.switchTab({url:n}),"reLaunch"!=t.type&&"launch"!=t.type||e.reLaunch({url:n}),"navigateBack"!=t.type&&"back"!=t.type||e.navigateBack({delta:r})}}]),t}(),l=(new c).route;t.default=l}).call(this,n(2)["default"])},271:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=null;function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==r&&clearTimeout(r),n){var o=!r;r=setTimeout((function(){r=null}),t),o&&"function"===typeof e&&e()}else r=setTimeout((function(){"function"===typeof e&&e()}),t)}var i=o;t.default=i},272:function(e,t,n){"use strict";var r;function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n?r||(r=!0,"function"===typeof e&&e(),setTimeout((function(){r=!1}),t)):r||(r=!0,setTimeout((function(){r=!1,"function"===typeof e&&e()}),t))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o;t.default=i},273:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i,a=r(n(11));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c={props:u({offsetTop:{type:[String,Number],default:0},customNavHeight:{type:[String,Number],default:0},disabled:{type:Boolean,default:!1},bgColor:{type:String,default:"transparent"},zIndex:{type:[String,Number],default:""},index:{type:[String,Number],default:""}},null===(o=e.$uv)||void 0===o||null===(i=o.props)||void 0===i?void 0:i.sticky)};t.default=c}).call(this,n(2)["default"])},3:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},30:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25)),i=r(n(31)),a=r(n(32));o.default.use(i.default);var s={};try{s=e.getStorageSync("lifeData")}catch(d){}var u=["vuex_user"],c=function(t,n){if(-1!=u.indexOf(t)){var r=e.getStorageSync("lifeData");r=r||{},r[t]=n,e.setStorageSync("lifeData",r)}},l=new i.default.Store({state:{vuex_user:s.vuex_user?s.vuex_user:{name:"速立保"},vuex_version:"1.0.0",vuex_custom_nav_bar:!0,vuex_status_bar_height:0,vuex_custom_bar_height:0,token:null,openId:null,userInfo:null,expires_time:null,isGOAuth:!1,isFirstLoad:!0,authPopupShow:!1,engAdmin:!1},mutations:{LOGOUT:function(e){e.token=null,e.userInfo=null,a.default.remove("openId"),a.default.remove("userInfo"),a.default.remove("token"),a.default.remove("memberNo"),a.default.remove("myUsername"),a.default.remove("accountName")},LOGIN:function(e,t){var n=t.token,r=t.openId,o=t.expires_time;e.token=n,e.openId=r,e.expires_time=o,a.default.set("token",n),a.default.set("openId",r),a.default.set("expires_time",o)},UPDATE_USERINFO:function(t,n){t.userInfo=n,a.default.set("userInfo",n),n&&(a.default.set("memberNo",n.member_no),a.default.set("accountName",n.account_name),e.setStorageSync("myUsername",n.account_name),t.engAdmin=!1,n.engAdmin&&(t.engAdmin=n.engAdmin))},SET_GO_AUTH:function(e,t){e.isGOAuth=t},SHOW_AUTH_POPUP_SHOW:function(e){e.authPopupShow=!0},HIDE_AUTH_POPUP_SHOW:function(e){e.authPopupShow=!1},$tStore:function(e,t){var n=t.name.split("."),r="",o=n.length;if(o>=2){for(var i=e[n[0]],a=1;a<o-1;a++)i=i[n[a]];i[n[o-1]]=t.value,r=n[0]}else e[t.name]=t.value,r=t.name;c(r,e[r])}},actions:{},getters:{token:function(e){return e.token},userInfo:function(e){return e.userInfo||{}},expires_time:function(e){return e.expires_time},authPopupShow:function(e){return e.authPopupShow}}}),f=l;t.default=f}).call(this,n(2)["default"])},31:function(e,t,n){"use strict";(function(t){
- /*!
- * vuex v3.6.2
- * (c) 2021 Evan You
- * @license MIT
- */
- function n(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},o=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function s(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=a(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=s(e[n],t)})),r}function u(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function l(e){return e&&"function"===typeof e.then}function f(e,t){if(!e)throw new Error("[vuex] "+t)}function d(e,t){return function(){return e(t)}}var p=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},h={namespaced:{configurable:!0}};h.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(e,t){this._children[e]=t},p.prototype.removeChild=function(e){delete this._children[e]},p.prototype.getChild=function(e){return this._children[e]},p.prototype.hasChild=function(e){return e in this._children},p.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},p.prototype.forEachChild=function(e){u(this._children,e)},p.prototype.forEachGetter=function(e){this._rawModule.getters&&u(this._rawModule.getters,e)},p.prototype.forEachAction=function(e){this._rawModule.actions&&u(this._rawModule.actions,e)},p.prototype.forEachMutation=function(e){this._rawModule.mutations&&u(this._rawModule.mutations,e)},Object.defineProperties(p.prototype,h);var v=function(e){this.register([],e,!1)};function g(e,t,n){if(w(e,n),t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");g(e.concat(r),t.getChild(r),n.modules[r])}}v.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},v.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},v.prototype.update=function(e){g([],this.root,e)},v.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0),w(e,t);var o=new p(t,n);if(0===e.length)this.root=o;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],o)}t.modules&&u(t.modules,(function(t,o){r.register(e.concat(o),t,n)}))},v.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r?r.runtime&&t.removeChild(n):console.warn("[vuex] trying to unregister module '"+n+"', which is not registered")},v.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var y,m={assert:function(e){return"function"===typeof e},expected:"function"},_={assert:function(e){return"function"===typeof e||"object"===typeof e&&"function"===typeof e.handler},expected:'function or object with "handler" function'},b={getters:m,mutations:m,actions:_};function w(e,t){Object.keys(b).forEach((function(n){if(t[n]){var r=b[n];u(t[n],(function(t,o){f(r.assert(t),k(e,n,o,t,r.expected))}))}}))}function k(e,t,n,r,o){var i=t+" should be "+o+' but "'+t+"."+n+'"';return e.length>0&&(i+=' in module "'+e.join(".")+'"'),i+=" is "+JSON.stringify(r)+".",i}var x=function e(t){var n=this;void 0===t&&(t={}),!y&&"undefined"!==typeof window&&window.Vue&&N(window.Vue),f(y,"must call Vue.use(Vuex) before creating a store instance."),f("undefined"!==typeof Promise,"vuex requires a Promise polyfill in this browser."),f(this instanceof e,"store must be called with the new operator.");var r=t.plugins;void 0===r&&(r=[]);var o=t.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new v(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new y,this._makeLocalGettersCache=Object.create(null);var a=this,s=this,u=s.dispatch,c=s.commit;this.dispatch=function(e,t){return u.call(a,e,t)},this.commit=function(e,t,n){return c.call(a,e,t,n)},this.strict=o;var l=this._modules.root.state;C(this,l,[],this._modules.root),P(this,l),r.forEach((function(e){return e(n)}));var d=void 0!==t.devtools?t.devtools:y.config.devtools;d&&i(this)},O={state:{configurable:!0}};function A(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function S(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;C(e,n,[],e._modules.root,!0),P(e,n,t)}function P(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,i={};u(o,(function(t,n){i[n]=d(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=y.config.silent;y.config.silent=!0,e._vm=new y({data:{$$state:t},computed:i}),y.config.silent=a,e.strict&&M(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),y.nextTick((function(){return r.$destroy()})))}function C(e,t,n,r,o){var i=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a]&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[a]=r),!i&&!o){var s=R(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit((function(){u in s&&console.warn('[vuex] state field "'+u+'" was overridden by a module with the same name at "'+n.join(".")+'"'),y.set(s,u,r.state)}))}var c=r.context=E(e,a,n);r.forEachMutation((function(t,n){var r=a+n;I(e,r,t,c)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,o=t.handler||t;j(e,r,o,c)})),r.forEachGetter((function(t,n){var r=a+n;$(e,r,t,c)})),r.forEachChild((function(r,i){C(e,t,n.concat(i),r,o)}))}function E(e,t,n){var r=""===t,o={dispatch:r?e.dispatch:function(n,r,o){var i=L(n,r,o),a=i.payload,s=i.options,u=i.type;if(s&&s.root||(u=t+u,e._actions[u]))return e.dispatch(u,a);console.error("[vuex] unknown local action type: "+i.type+", global type: "+u)},commit:r?e.commit:function(n,r,o){var i=L(n,r,o),a=i.payload,s=i.options,u=i.type;s&&s.root||(u=t+u,e._mutations[u])?e.commit(u,a,s):console.error("[vuex] unknown local mutation type: "+i.type+", global type: "+u)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return T(e,t)}},state:{get:function(){return R(e.state,n)}}}),o}function T(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,r)===t){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function I(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push((function(t){n.call(e,r.state,t)}))}function j(e,t,n,r){var o=e._actions[t]||(e._actions[t]=[]);o.push((function(t){var o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return l(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function $(e,t,n,r){e._wrappedGetters[t]?console.error("[vuex] duplicate getter key: "+t):e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}function M(e){e._vm.$watch((function(){return this._data.$$state}),(function(){f(e._committing,"do not mutate vuex store state outside mutation handlers.")}),{deep:!0,sync:!0})}function R(e,t){return t.reduce((function(e,t){return e[t]}),e)}function L(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),f("string"===typeof e,"expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}function N(e){y&&e===y?console.error("[vuex] already installed. Vue.use(Vuex) should be called only once."):(y=e,n(y))}O.state.get=function(){return this._vm._data.$$state},O.state.set=function(e){f(!1,"use store.replaceState() to explicit replace store state.")},x.prototype.commit=function(e,t,n){var r=this,o=L(e,t,n),i=o.type,a=o.payload,s=o.options,u={type:i,payload:a},c=this._mutations[i];c?(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(u,r.state)})),s&&s.silent&&console.warn("[vuex] mutation type: "+i+". Silent option has been removed. Use the filter functionality in the vue-devtools")):console.error("[vuex] unknown mutation type: "+i)},x.prototype.dispatch=function(e,t){var n=this,r=L(e,t),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(c){console.warn("[vuex] error in before action subscribers: "),console.error(c)}var u=s.length>1?Promise.all(s.map((function(e){return e(i)}))):s[0](i);return new Promise((function(e,t){u.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(c){console.warn("[vuex] error in after action subscribers: "),console.error(c)}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(c){console.warn("[vuex] error in error action subscribers: "),console.error(c)}t(e)}))}))}console.error("[vuex] unknown action type: "+o)},x.prototype.subscribe=function(e,t){return A(e,this._subscribers,t)},x.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return A(n,this._actionSubscribers,t)},x.prototype.watch=function(e,t,n){var r=this;return f("function"===typeof e,"store.watch only accepts a function."),this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},x.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},x.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),f(Array.isArray(e),"module path must be a string or an Array."),f(e.length>0,"cannot register the root module by using registerModule."),this._modules.register(e,t),C(this,this.state,e,this._modules.get(e),n.preserveState),P(this,this.state)},x.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),f(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit((function(){var n=R(t.state,e.slice(0,-1));y.delete(n,e[e.length-1])})),S(this)},x.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),f(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},x.prototype[[104,111,116,85,112,100,97,116,101].map((function(e){return String.fromCharCode(e)})).join("")]=function(e){this._modules.update(e),S(this,!0)},x.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(x.prototype,O);var D=K((function(e,t){var n={};return V(t)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),q(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=z(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof o?o.call(this,t,n):t[o]},n[r].vuex=!0})),n})),U=K((function(e,t){var n={};return V(t)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),q(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var i=z(this.$store,"mapMutations",e);if(!i)return;r=i.context.commit}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),F=K((function(e,t){var n={};return V(t)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),q(t).forEach((function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||z(this.$store,"mapGetters",e)){if(o in this.$store.getters)return this.$store.getters[o];console.error("[vuex] unknown getter: "+o)}},n[r].vuex=!0})),n})),B=K((function(e,t){var n={};return V(t)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),q(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var i=z(this.$store,"mapActions",e);if(!i)return;r=i.context.dispatch}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),H=function(e){return{mapState:D.bind(null,e),mapGetters:F.bind(null,e),mapMutations:U.bind(null,e),mapActions:B.bind(null,e)}};function q(e){return V(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function V(e){return Array.isArray(e)||c(e)}function K(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function z(e,t,n){var r=e._modulesNamespaceMap[n];return r||console.error("[vuex] module namespace not found in "+t+"(): "+n),r}function W(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var o=e.mutationTransformer;void 0===o&&(o=function(e){return e});var i=e.actionFilter;void 0===i&&(i=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var u=e.logMutations;void 0===u&&(u=!0);var c=e.logActions;void 0===c&&(c=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var f=s(e.state);"undefined"!==typeof l&&(u&&e.subscribe((function(e,i){var a=s(i);if(n(e,f,a)){var u=X(),c=o(e),d="mutation "+e.type+u;J(l,d,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",c),l.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),G(l)}f=a})),c&&e.subscribeAction((function(e,n){if(i(e,n)){var r=X(),o=a(e),s="action "+e.type+r;J(l,s,t),l.log("%c action","color: #03A9F4; font-weight: bold",o),G(l)}})))}}function J(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(o){e.log(t)}}function G(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function X(){var e=new Date;return" @ "+Y(e.getHours(),2)+":"+Y(e.getMinutes(),2)+":"+Y(e.getSeconds(),2)+"."+Y(e.getMilliseconds(),3)}function Z(e,t){return new Array(t+1).join(e)}function Y(e,t){return Z("0",t-e.toString().length)+e}var Q={Store:x,install:N,version:"3.6.2",mapState:D,mapMutations:U,mapGetters:F,mapActions:B,createNamespacedHelpers:H,createLogger:W};e.exports=Q}).call(this,n(3))},316:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{}},created:function(){this.popup=this.getParent()},methods:{getParent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniPopup",t=this.$parent,n=t.$options.name;while(n!==e){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}};t.default=r},317:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(318)),i=r(n(319)),a=r(n(320)),s={en:o.default,"zh-Hans":i.default,"zh-Hant":a.default};t.default=s},318:function(e){e.exports=JSON.parse('{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"}')},319:function(e){e.exports=JSON.parse('{"uni-popup.cancel":"取消","uni-popup.ok":"确定","uni-popup.placeholder":"请输入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}')},32:function(e,t,n){"use strict";(function(e){function n(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{if(r)return e.setStorageSync(t,n);e.setStorage({key:t,data:n,success:function(e){}})}catch(o){return!1}}function r(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{if(n)return e.getStorageSync(t);var r="";return e.getStorage({key:t,success:function(e){r=e.data}}),r}catch(o){return!1}}function o(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{if(t)return e.getStorageInfoSync();var n="";return e.getStorageInfo({success:function(e){n=e}}),n}catch(r){return!1}}function i(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{if(n)return e.removeStorageSync(t);e.removeStorage({key:t})}catch(r){return!1}}function a(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];try{if(t)return e.clearStorageSync();e.clearStorage()}catch(n){return!1}}function s(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{if(n)return null!==e.getStorageSync(t);var r=!1;return e.getStorage({key:t,success:function(e){r=null!==e.data}}),r}catch(o){return!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u={get:r,set:n,info:o,remove:i,clear:a,has:s},c=u;t.default=c}).call(this,n(2)["default"])},320:function(e){e.exports=JSON.parse('{"uni-popup.cancel":"取消","uni-popup.ok":"確定","uni-popup.placeholder":"請輸入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}')},33:function(e,t,n){"use strict";(function(e,n){function r(){return new Promise((function(t,r){e.getSystemInfo({success:function(e){var r=0,o=0;r=e.statusBarHeight;var i=n.getMenuButtonBoundingClientRect();o=i.bottom+(i.top-e.statusBarHeight<=4?i.top-e.statusBarHeight+4:i.top-e.statusBarHeight),t({statusBarHeight:r,customBarHeight:o})},fail:function(e){console.log("获取设备信息失败",e),r()}})}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r;t.default=o}).call(this,n(2)["default"],n(1)["default"])},356:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(357)),i=r(n(358)),a=r(n(359)),s={en:o.default,"zh-Hans":i.default,"zh-Hant":a.default};t.default=s},357:function(e){e.exports=JSON.parse('{"uni-search-bar.cancel":"cancel","uni-search-bar.placeholder":"Search enter content"}')},358:function(e){e.exports=JSON.parse('{"uni-search-bar.cancel":"取消","uni-search-bar.placeholder":"请输入搜索内容"}')},359:function(e){e.exports=JSON.parse('{"uni-search-bar.cancel":"取消","uni-search-bar.placeholder":"請輸入搜索內容"}')},36:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s,u,c){var l,f="function"===typeof e?e.options:e;if(u){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var p in u)d.call(u,p)&&!d.call(f.components,p)&&(f.components[p]=u[p])}if(c&&("function"===typeof c.beforeCreate&&(c.beforeCreate=[c.beforeCreate]),(c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(f.mixins||(f.mixins=[])).push(c)),t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},f._ssrRegister=l):o&&(l=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(f.functional){f._injectStyles=l;var h=f.render;f.render=function(e,t){return l.call(t),h(e,t)}}else{var v=f.beforeCreate;f.beforeCreate=v?[].concat(v,l):[l]}return{exports:e,options:f}}n.r(t),n.d(t,"default",(function(){return r}))},367:function(e,t,n){"use strict";(function(e,r,o){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UniCloudError=void 0;var a=i(n(58)),s=i(n(368)),u=i(n(5)),c=i(n(13)),l=i(n(18)),f=i(n(60)),d=i(n(11)),p=i(n(369)),h=i(n(370)),v=i(n(371)),g=i(n(372)),y=i(n(23)),m=i(n(24)),_=i(n(374));function b(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=w(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,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,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function w(e,t){if(e){if("string"===typeof e)return k(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)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){(0,d.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e){var t=S();return function(){var n,r=(0,v.default)(e);if(t){var o=(0,v.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,h.default)(this,n)}}function S(){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}}function P(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function C(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 e||"undefined"!=typeof self&&self;var E=C((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}}(),r={},o=r.lib={},i=o.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=o.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(i=0;i<o;i+=4)t[r+i>>>2]=n[i>>>2];return this.sigBytes+=o,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=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){t=t;var n=987654321,r=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},i=0;i<t;i+=4){var s=o(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,t)}}),s=r.enc={},u=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=i.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,r=n.words,o=n.sigBytes,i=this.blockSize,s=o/(4*i),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*i,c=e.min(4*u,o);if(u){for(var l=0;l<u;l+=i)this._doProcessBlock(r,l);var f=r.splice(0,u);n.sigBytes-=c}return new a.init(f,c)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=f.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.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 d.HMAC.init(e,n).finalize(t)}}});var d=r.algo={};return r}(Math),n)})),T=E,I=(C((function(e,t){var n;e.exports=(n=T,function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],u=e[t+1],p=e[t+2],h=e[t+3],v=e[t+4],g=e[t+5],y=e[t+6],m=e[t+7],_=e[t+8],b=e[t+9],w=e[t+10],k=e[t+11],x=e[t+12],O=e[t+13],A=e[t+14],S=e[t+15],P=i[0],C=i[1],E=i[2],T=i[3];P=c(P,C,E,T,a,7,s[0]),T=c(T,P,C,E,u,12,s[1]),E=c(E,T,P,C,p,17,s[2]),C=c(C,E,T,P,h,22,s[3]),P=c(P,C,E,T,v,7,s[4]),T=c(T,P,C,E,g,12,s[5]),E=c(E,T,P,C,y,17,s[6]),C=c(C,E,T,P,m,22,s[7]),P=c(P,C,E,T,_,7,s[8]),T=c(T,P,C,E,b,12,s[9]),E=c(E,T,P,C,w,17,s[10]),C=c(C,E,T,P,k,22,s[11]),P=c(P,C,E,T,x,7,s[12]),T=c(T,P,C,E,O,12,s[13]),E=c(E,T,P,C,A,17,s[14]),P=l(P,C=c(C,E,T,P,S,22,s[15]),E,T,u,5,s[16]),T=l(T,P,C,E,y,9,s[17]),E=l(E,T,P,C,k,14,s[18]),C=l(C,E,T,P,a,20,s[19]),P=l(P,C,E,T,g,5,s[20]),T=l(T,P,C,E,w,9,s[21]),E=l(E,T,P,C,S,14,s[22]),C=l(C,E,T,P,v,20,s[23]),P=l(P,C,E,T,b,5,s[24]),T=l(T,P,C,E,A,9,s[25]),E=l(E,T,P,C,h,14,s[26]),C=l(C,E,T,P,_,20,s[27]),P=l(P,C,E,T,O,5,s[28]),T=l(T,P,C,E,p,9,s[29]),E=l(E,T,P,C,m,14,s[30]),P=f(P,C=l(C,E,T,P,x,20,s[31]),E,T,g,4,s[32]),T=f(T,P,C,E,_,11,s[33]),E=f(E,T,P,C,k,16,s[34]),C=f(C,E,T,P,A,23,s[35]),P=f(P,C,E,T,u,4,s[36]),T=f(T,P,C,E,v,11,s[37]),E=f(E,T,P,C,m,16,s[38]),C=f(C,E,T,P,w,23,s[39]),P=f(P,C,E,T,O,4,s[40]),T=f(T,P,C,E,a,11,s[41]),E=f(E,T,P,C,h,16,s[42]),C=f(C,E,T,P,y,23,s[43]),P=f(P,C,E,T,b,4,s[44]),T=f(T,P,C,E,x,11,s[45]),E=f(E,T,P,C,S,16,s[46]),P=d(P,C=f(C,E,T,P,p,23,s[47]),E,T,a,6,s[48]),T=d(T,P,C,E,m,10,s[49]),E=d(E,T,P,C,A,15,s[50]),C=d(C,E,T,P,g,21,s[51]),P=d(P,C,E,T,x,6,s[52]),T=d(T,P,C,E,h,10,s[53]),E=d(E,T,P,C,w,15,s[54]),C=d(C,E,T,P,u,21,s[55]),P=d(P,C,E,T,_,6,s[56]),T=d(T,P,C,E,S,10,s[57]),E=d(E,T,P,C,y,15,s[58]),C=d(C,E,T,P,O,21,s[59]),P=d(P,C,E,T,v,6,s[60]),T=d(T,P,C,E,k,10,s[61]),E=d(E,T,P,C,p,15,s[62]),C=d(C,E,T,P,b,21,s[63]),i[0]=i[0]+P|0,i[1]=i[1]+C|0,i[2]=i[2]+E|0,i[3]=i[3]+T|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+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,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+o+a;return(s<<i|s>>>32-i)+t}function l(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<<i|s>>>32-i)+t}function f(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<<i|s>>>32-i)+t}function d(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<<i|s>>>32-i)+t}t.MD5=i._createHelper(u),t.HmacMD5=i._createHmacHelper(u)}(Math),n.MD5)})),C((function(e,t){var n;e.exports=(n=T,void function(){var e=n,t=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,u=a.words,c=0;c<n;c++)s[c]^=1549556828,u[c]^=909522486;i.sigBytes=a.sigBytes=o,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))}})}())})),C((function(e,t){e.exports=T.HmacMD5}))),j=C((function(e,t){e.exports=T.enc.Utf8})),$=C((function(e,t){var n;e.exports=(n=T,function(){var e=n,t=e.lib.WordArray;function r(e,n,r){for(var o=[],i=0,a=0;a<n;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2,u=r[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=(s|u)<<24-i%4*8,i++}return t.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<n;s++)o.push(r.charAt(a>>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)})),M="FUNCTION",R="OBJECT",L="CLIENT_DB",N="pending",D="fulfilled",U="rejected";function F(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function B(e){return"object"===F(e)}function H(e){return"function"==typeof e}function q(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}var V="REJECTED",K="NOT_PENDING",z=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,r=t.retryRule,o=void 0===r?V:r;(0,y.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=o}return(0,m.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case V:return this.status===U;case K:return this.status!==N}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=N,this.promise=this.createPromise().then((function(t){return e.status=D,Promise.resolve(t)}),(function(t){return e.status=U,Promise.reject(t)})),this.promise):this.promise}}]),e}();function W(e){return e&&"string"==typeof e?JSON.parse(e):e}var J=!0,G="mp-weixin",X=!1,Z=W([]),Y="h5"===G?"web":"app-plus"===G?"app":G,Q=W(void 0),ee=W([])||[],te=!0;try{(n(375).default||n(375)).appid}catch(Eo){}var ne={};function re(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=ne,n=e,Object.prototype.hasOwnProperty.call(t,n)||(ne[e]=r),ne[e]}"app"===Y&&(ne=r._globalUniCloudObj?r._globalUniCloudObj:r._globalUniCloudObj={});var oe=["invoke","success","fail","complete"],ie=re("_globalUniCloudInterceptor");function ae(e,t){ie[e]||(ie[e]={}),B(t)&&Object.keys(t).forEach((function(n){oe.indexOf(n)>-1&&function(e,t,n){var r=ie[e][t];r||(r=ie[e][t]=[]),-1===r.indexOf(n)&&H(n)&&r.push(n)}(e,n,t[n])}))}function se(e,t){ie[e]||(ie[e]={}),B(t)?Object.keys(t).forEach((function(n){oe.indexOf(n)>-1&&function(e,t,n){var r=ie[e][t];if(r){var o=r.indexOf(n);o>-1&&r.splice(o,1)}}(e,n,t[n])})):delete ie[e]}function ue(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function ce(e,t){return ie[e]&&ie[e][t]||[]}function le(e){ae("callObject",e)}var fe=re("_globalUniCloudListener"),de="response",pe="needLogin",he="refreshToken",ve="clientdb",ge="cloudfunction",ye="cloudobject";function me(e){return fe[e]||(fe[e]=[]),fe[e]}function _e(e,t){var n=me(e);n.includes(t)||n.push(t)}function be(e,t){var n=me(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function we(e,t){for(var n=me(e),r=0;r<n.length;r++)(0,n[r])(t)}var ke,xe=!1;function Oe(){return ke||(ke=new Promise((function(e){xe&&e(),function t(){if("function"==typeof getCurrentPages){var n=getCurrentPages();n&&n[0]&&(xe=!0,e())}xe||setTimeout((function(){t()}),30)}()})),ke)}function Ae(e){var t={};for(var n in e){var r=e[n];H(r)&&(t[n]=q(r))}return t}var Se=function(e){(0,p.default)(n,e);var t=A(n);function n(e){var r;return(0,y.default)(this,n),r=t.call(this,e.message),r.errMsg=e.message||e.errMsg||"unknown system error",r.code=r.errCode=e.code||e.errCode||"SYSTEM_ERROR",r.errSubject=r.subject=e.subject||e.errSubject,r.cause=e.cause,r.requestId=e.requestId,r}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,g.default)(Error));t.UniCloudError=Se;var Pe,Ce,Ee={request:function(e){return r.request(e)},uploadFile:function(e){return r.uploadFile(e)},setStorageSync:function(e,t){return r.setStorageSync(e,t)},getStorageSync:function(e){return r.getStorageSync(e)},removeStorageSync:function(e){return r.removeStorageSync(e)},clearStorageSync:function(){return r.clearStorageSync()},connectSocket:function(e){return r.connectSocket(e)}};function Te(){return{token:Ee.getStorageSync("uni_id_token")||Ee.getStorageSync("uniIdToken"),tokenExpired:Ee.getStorageSync("uni_id_token_expired")}}function Ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&Ee.setStorageSync("uni_id_token",t),n&&Ee.setStorageSync("uni_id_token_expired",n)}function je(){return Pe||(Pe=r.getSystemInfoSync()),Pe}function $e(){var e,t;try{if(r.getLaunchOptionsSync){if(r.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var n=r.getLaunchOptionsSync(),o=n.scene,i=n.channel;e=i,t=o}}catch(e){}return{channel:e,scene:t}}var Me={};function Re(){var e=r.getLocale&&r.getLocale()||"en";if(Ce)return O(O(O({},Me),Ce),{},{locale:e,LOCALE:e});var t=je(),n=t.deviceId,o=t.osName,i=t.uniPlatform,a=t.appId,s=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(var u in t)Object.hasOwnProperty.call(t,u)&&-1===s.indexOf(u)&&delete t[u];return Ce=O(O({PLATFORM:i,OS:o,APPID:a,DEVICEID:n},$e()),t),O(O(O({},Me),Ce),{},{locale:e,LOCALE:e})}var Le,Ne={sign:function(e,t){var n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),I(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,r){t(Object.assign(e,{complete:function(e){e||(e={}),J&&"web"===Y&&e.errMsg&&0===e.errMsg.indexOf("request:fail")&&console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){var o=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",i=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return r(new Se({code:o,message:i,requestId:t}))}var a=e.data;if(a.error)return r(new Se({code:a.error.code,message:a.error.message,requestId:t}));a.result=a.data,a.requestId=t,delete a.data,n(a)}}))}))},toBase64:function(e){return $.stringify(j.parse(e))}},De=function(){function e(t){var n=this;(0,y.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Ee,this._getAccessTokenPromiseHub=new z({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 Se({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(e.result.accessToken)}))},retryRule:K})}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 Ne.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?t?n.requestWrapped(e):n.requestWrapped(e).catch((function(t){return new Promise((function(e,n){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((function(){return n.getAccessToken()})).then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))})):n.getAccessToken().then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=Ne.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Ne.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(O(O({},this.setupRequest(t)),{},{timeout:e.timeout}))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,o=e.name,i=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,u){var c=t.adapter.uploadFile({url:n,formData:r,name:o,filePath:i,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):u(new Se({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new Se({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,o,i,s,u,c,l,f,d,p,h,v,g,y,m,_,b,w,k,x,O;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,o=t.fileType,i=void 0===o?"image":o,s=t.cloudPathAsRealPath,u=void 0!==s&&s,c=t.onUploadProgress,l=t.config,"string"===F(r)){e.next=3;break}throw new Se({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(r=r.trim()){e.next=5;break}throw new Se({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(r)){e.next=7;break}throw new Se({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(f=l&&l.envType||this.config.envType,!(u&&("/"!==r[0]&&(r="/"+r),r.indexOf("\\")>-1))){e.next=10;break}throw new Se({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:f,filename:u?r.split("/").pop():r,fileId:u?r:void 0});case 12:return d=e.sent.result,p="https://"+d.cdnDomain+"/"+d.ossPath,h=d.securityToken,v=d.accessKeyId,g=d.signature,y=d.host,m=d.ossPath,_=d.id,b=d.policy,w=d.ossCallbackUrl,k={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:v,Signature:g,host:y,id:_,key:m,policy:b,success_action_status:200},h&&(k["x-oss-security-token"]=h),w&&(x=JSON.stringify({callbackUrl:w,callbackBody:JSON.stringify({fileId:_,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),k.callback=Ne.toBase64(x)),O={url:"https://"+d.host,formData:k,fileName:"file",name:"file",filePath:n,fileType:i},e.next=27,this.uploadFileToOSS(Object.assign({},O,{onUploadProgress:c}));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:_});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:n,fileID:p});case 33:throw new Se({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;return new Promise((function(e,n){Array.isArray(t)&&0!==t.length||n(new Se({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"getFileInfo",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,o=arguments;return a.default.wrap((function(e){while(1)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 Se({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return r={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(r));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),e}(),Ue={init:function(e){var t=new De(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Fe="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(Le||(Le={}));var Be,He=function(){},qe=C((function(e,t){var n;e.exports=(n=T,function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(s[o]=n(e.pow(r,.5))),u[o]=n(e.pow(r,1/3)),o++),r++}();var c=[],l=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5],f=n[6],d=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var h=c[p-15],v=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,g=c[p-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=v+c[p-7]+y+c[p-16]}var m=r&o^r&i^o&i,_=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+u[p]+c[p];d=f,f=l,l=s,s=a+b|0,a=i,i=o,o=r,r=b+(_+m)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),n.SHA256)})),Ve=qe,Ke=C((function(e,t){e.exports=T.HmacSHA256})),ze=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new Se({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise((function(t,n){e=function(e,r){return e?n(e):t(r)}}));return e.promise=n,e};function We(e){return void 0===e}function Je(e){return"[object Null]"===Object.prototype.toString.call(e)}function Ge(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),o=b(r);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=i.isMatch,s=i.genAdapter,u=i.runtime;if(a())return{adapter:s(),runtime:u}}}catch(c){o.e(c)}finally{o.f()}}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Be||(Be={}));var Xe={adapter:null,runtime:void 0},Ze=["anonymousUuidKey"],Ye=function(e){(0,p.default)(n,e);var t=A(n);function n(){var e;return(0,y.default)(this,n),e=t.call(this),Xe.adapter.root.tcbObject||(Xe.adapter.root.tcbObject={}),e}return(0,m.default)(n,[{key:"setItem",value:function(e,t){Xe.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Xe.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Xe.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Xe.adapter.root.tcbObject}}]),n}(He);function Qe(e,t){switch(e){case"local":return t.localStorage||new Ye;case"none":return new Ye;default:return t.sessionStorage||new Ye}}var et=function(){function e(t){if((0,y.default)(this,e),!this._storage){this._persistence=Xe.adapter.primaryStorage||t.persistence,this._storage=Qe(this._persistence,Xe.adapter);var n="access_token_".concat(t.env),r="access_token_expire_".concat(t.env),o="refresh_token_".concat(t.env),i="anonymous_uuid_".concat(t.env),a="login_type_".concat(t.env),s="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:o,anonymousUuidKey:i,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,Xe.adapter);for(var r in this.keys){var o=this.keys[r];if(!t||!Ze.includes(r)){var i=this._storage.getItem(o);We(i)||Je(i)||(n.setItem(o,i),this._storage.removeItem(o))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var r={version:n||"localCachev1",content:t},o=JSON.stringify(r);try{this._storage.setItem(e,o)}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}(),tt={},nt={};function rt(e){return tt[e]}var ot=(0,m.default)((function e(t,n){(0,y.default)(this,e),this.data=n||null,this.name=t})),it=function(e){(0,p.default)(n,e);var t=A(n);function n(e,r){var o;return(0,y.default)(this,n),o=t.call(this,"error",{error:e,data:r}),o.error=e,o}return(0,m.default)(n)}(ot),at=new(function(){function e(){(0,y.default)(this,e),this._listeners={}}return(0,m.default)(e,[{key:"on",value:function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof it)return console.error(e.error),this;var n="string"==typeof e?new ot(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var o,i=this._listeners[r]?(0,l.default)(this._listeners[r]):[],a=b(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.call(this,n)}}catch(u){a.e(u)}finally{a.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function st(e,t){at.on(e,t)}function ut(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};at.fire(e,t)}function ct(e,t){at.off(e,t)}var lt,ft="loginStateChanged",dt="loginStateExpire",pt="loginTypeChanged",ht="anonymousConverted",vt="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"}(lt||(lt={}));var gt=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],yt={"X-SDK-Version":"1.3.5"};function mt(e,t,n){var r=e[t];e[t]=function(t){var o={},i={};n.forEach((function(n){var r=n.call(e,t),a=r.data,s=r.headers;Object.assign(o,a),Object.assign(i,s)}));var a=t.data;return a&&function(){var e;if(e=a,"[object FormData]"!==Object.prototype.toString.call(e))t.data=O(O({},a),o);else for(var n in o)a.append(n,o[n])}(),t.headers=O(O({},t.headers||{}),i),r.call(e,t)}}function _t(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:O(O({},yt),{},{"x-seqid":e})}}var bt=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,y.default)(this,e),this.config=n,this._reqClass=new Xe.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=rt(this.config.env),this._localCache=(t=this.config.env,nt[t]),mt(this._reqClass,"post",[_t]),mt(this._reqClass,"upload",[_t]),mt(this._reqClass,"download",[_t])}return(0,m.default)(e,[{key:"post",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"upload",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"download",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refreshAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),n=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){e.next=12;break}throw n;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"_refreshAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,o,i,s,u,c,l,f,d,p,h;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey,i=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),u=this._cache.getStore(o),u){e.next=5;break}throw new Se({message:"未登录CloudBase"});case 5:return c={refresh_token:u},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",c);case 8:if(l=e.sent,!l.data.code){e.next=21;break}if(f=l.data.code,"SIGN_PARAM_INVALID"!==f&&"REFRESH_TOKEN_EXPIRED"!==f&&"INVALID_REFRESH_TOKEN"!==f){e.next=20;break}if(this._cache.getStore(i)!==lt.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==f){e.next=19;break}return d=this._cache.getStore(s),p=this._cache.getStore(o),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:p});case 17:return h=e.sent,e.abrupt("return",(this.setRefreshToken(h.refresh_token),this._refreshAccessToken()));case 19:ut(dt),this._cache.removeStore(o);case 20:throw new Se({code:l.data.code,message:"刷新access token失败:".concat(l.data.code)});case 21:if(!l.data.access_token){e.next=23;break}return e.abrupt("return",(ut(vt),this._cache.setStore(n,l.data.access_token),this._cache.setStore(r,l.data.access_token_expire+Date.now()),{accessToken:l.data.access_token,accessTokenExpire:l.data.access_token_expire}));case 23:l.data.refresh_token&&(this._cache.removeStore(o),this._cache.setStore(o,l.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,o,i,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey,this._cache.getStore(o)){e.next=3;break}throw new Se({message:"refresh token不存在,登录状态异常"});case 3:if(i=this._cache.getStore(n),s=this._cache.getStore(r),u=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(i,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}u=!1;case 12:return e.abrupt("return",(!i||!s||s<Date.now())&&u?this.refreshAccessToken():{accessToken:i,accessTokenExpire:s});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"request",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n,r){var o,i,s,u,c,l,f,d,p,h,v,g,y,m,_,b;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o="x-tcb-trace_".concat(this.config.env),i="application/x-www-form-urlencoded",s=O({action:t,env:this.config.env,dataVersion:"2019-08-16"},n),-1!==gt.indexOf(t)){e.next=10;break}if(u=this._cache.keys.refreshTokenKey,e.t0=this._cache.getStore(u),!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 c=new FormData,c)c.hasOwnProperty(l)&&void 0!==c[l]&&c.append(l,s[l]);i="multipart/form-data"}else for(f in i="application/json",c={},s)void 0!==s[f]&&(c[f]=s[f]);return d={headers:{"content-type":i}},r&&r.timeout&&(d.timeout=r.timeout),r&&r.onUploadProgress&&(d.onUploadProgress=r.onUploadProgress),p=this._localCache.getStore(o),p&&(d.headers["X-TCB-Trace"]=p),h=n.parse,v=n.inQuery,g=n.search,y={env:this.config.env},h&&(y.parse=!0),v&&(y=O(O({},v),y)),m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),o="";for(var i in n)""===o?!r&&(t+="?"):o+="&",o+="".concat(i,"=").concat(encodeURIComponent(n[i]));return/^http(s)?\:\/\//.test(t+=o)?t:"".concat(e).concat(t)}(Fe,"//tcb-api.tencentcloudapi.com/web",y),g&&(m+=g),e.next=22,this.post(O({url:m,data:c},d));case 22:if(_=e.sent,b=_.header&&_.header["x-tcb-trace"],b&&this._localCache.setStore(o,b),(200===Number(_.status)||200===Number(_.statusCode))&&_.data){e.next=26;break}throw new Se({code:"NETWORK_ERROR",message:"network request error"});case 26:return e.abrupt("return",_);case 27:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"send",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,o,i,s=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},r=s.length>2&&void 0!==s[2]?s[2]:{},e.next=4,this.request(t,n,O(O({},r),{},{onUploadProgress:n.onUploadProgress}));case 4:if(o=e.sent,"ACCESS_TOKEN_EXPIRED"!==o.data.code||-1!==gt.indexOf(t)){e.next=14;break}return e.next=8,this.refreshAccessToken();case 8:return e.next=10,this.request(t,n,O(O({},r),{},{onUploadProgress:n.onUploadProgress}));case 10:if(i=e.sent,!i.data.code){e.next=13;break}throw new Se({code:i.data.code,message:i.data.message});case 13:return e.abrupt("return",i.data);case 14:if(!o.data.code){e.next=16;break}throw new Se({code:o.data.code,message:o.data.message});case 16:return e.abrupt("return",o.data);case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(o,e)}}]),e}(),wt={};function kt(e){return wt[e]}var xt=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=rt(t.env),this._request=kt(t.env)}return(0,m.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(o,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,o=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(o,t)}},{key:"refreshUserInfo",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),Ot=function(){function e(t){if((0,y.default)(this,e),!t)throw new Se({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=rt(this._envId),this._request=kt(this._envId),this.setUserInfo()}return(0,m.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new Se({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 Se({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,n=t.data,r=!1,o=n.users,e.abrupt("return",(o.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:o,hasPrimaryUid:r}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,o,i,s,u,c,l;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,o=t.avatarUrl,i=t.province,s=t.country,u=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:o,province:i,country:s,city:u});case 8:c=e.sent,l=c.data,this.setLocalUserInfo(l);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refresh",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{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}(),At=function(){function e(t){if((0,y.default)(this,e),!t)throw new Se({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=rt(t);var n=this._cache.keys,r=n.refreshTokenKey,o=n.accessTokenKey,i=n.accessTokenExpireKey,a=this._cache.getStore(r),s=this._cache.getStore(o),u=this._cache.getStore(i);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:u},this.user=new Ot(t)}return(0,m.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===lt.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===lt.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===lt.WECHAT||this.loginType===lt.WECHAT_OPEN||this.loginType===lt.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),St=function(e){(0,p.default)(n,e);var t=A(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,o,i,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),t=this._cache.keys,n=t.anonymousUuidKey,r=t.refreshTokenKey,o=this._cache.getStore(n)||void 0,i=this._cache.getStore(r)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:o,refresh_token:i});case 8:if(s=e.sent,!s.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 ut(ft),ut(pt,{env:this.config.env,loginType:lt.ANONYMOUS,persistence:"local"}),u=new At(this.config.env),e.next=19,u.user.refresh();case 19:return e.abrupt("return",u);case 20:throw new Se({message:"匿名登录失败"});case 21:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,o,i,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,o=n.refreshTokenKey,i=this._cache.getStore(r),s=this._cache.getStore(o),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:i,refresh_token:s,ticket:t});case 7:if(u=e.sent,!u.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(u.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return ut(ht,{env:this.config.env}),ut(pt,{loginType:lt.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:u.refresh_token}});case 16:throw new Se({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,n=t.anonymousUuidKey,r=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(r,lt.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(xt),Pt=function(e){(0,p.default)(n,e);var t=A(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Se({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(r=e.sent,!r.refresh_token){e.next=15;break}return this.setRefreshToken(r.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return ut(ft),ut(pt,{env:this.config.env,loginType:lt.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new At(this.config.env));case 15:throw new Se({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),n}(xt),Ct=function(e){(0,p.default)(n,e);var t=A(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){var r,o,i,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Se({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(o=e.sent,i=o.refresh_token,s=o.access_token,u=o.access_token_expire,!i){e.next=22;break}if(this.setRefreshToken(i),!s||!u){e.next=15;break}this.setAccessToken(s,u),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return ut(ft),ut(pt,{env:this.config.env,loginType:lt.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new At(this.config.env));case 22:throw o.code?new Se({code:o.code,message:"邮箱登录失败: ".concat(o.message)}):new Se({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"activate",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"resetPasswordWithToken",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),n}(xt),Et=function(e){(0,p.default)(n,e);var t=A(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){var r,o,i,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Se({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),r=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:lt.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(o=e.sent,i=o.refresh_token,s=o.access_token_expire,u=o.access_token,!i){e.next=23;break}if(this.setRefreshToken(i),!u||!s){e.next=16;break}this.setAccessToken(u,s),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return ut(ft),ut(pt,{env:this.config.env,loginType:lt.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new At(this.config.env));case 23:throw o.code?new Se({code:o.code,message:"用户名密码登录失败: ".concat(o.message)}):new Se({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),n}(xt),Tt=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=rt(t.env),this._request=kt(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),st(pt,this._onLoginTypeChanged)}return(0,m.default)(e,[{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new St(this.config)}},{key:"customAuthProvider",value:function(){return new Pt(this.config)}},{key:"emailAuthProvider",value:function(){return new Ct(this.config)}},{key:"usernameAuthProvider",value:function(){return new Et(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new St(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Ct(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new Et(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new St(this.config)),st(ht,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"signOut",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,o,i,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==lt.ANONYMOUS){e.next=2;break}throw new Se({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,o=t.accessTokenExpireKey,i=this._cache.getStore(n),i){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:i});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(o),ut(ft),ut(pt,{env:this.config.env,loginType:lt.NULL,persistence:this.config.persistence}),s));case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:n}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onLoginStateChanged",value:function(e){var t=this;st(ft,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){st(dt,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){st(vt,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){st(ht,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;st(pt,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hasLoginState",value:function(){var e=this._cache.keys.refreshTokenKey;return this._cache.getStore(e)?new At(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Se({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return n=e.sent,r=n.data,e.abrupt("return",r&&r.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Pt(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:O(O({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,n=t.loginType,r=t.persistence,o=t.env;o===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),e}(),It=function(e,t){t=t||ze();var n=kt(this.config.env),r=e.cloudPath,o=e.filePath,i=e.onUploadProgress,a=e.fileType,s=void 0===a?"image":a;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var a=e.data,u=a.url,c=a.authorization,l=a.token,f=a.fileId,d=a.cosFileId,p=e.requestId,h={key:r,signature:c,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};n.upload({url:u,data:h,file:o,name:r,fileType:s,onUploadProgress:i}).then((function(e){201===e.statusCode?t(null,{fileID:f,requestId:p}):t(new Se({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},jt=function(e,t){t=t||ze();var n=kt(this.config.env),r=e.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},$t=function(e,t){var n=e.fileList;if(t=t||ze(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,o=b(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){o.e(s)}finally{o.f()}var a={fileid_list:n};return kt(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},Mt=function(e,t){var n=e.fileList;t=t||ze(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,o=[],i=b(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;"object"==(0,c.default)(a)?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),o.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?o.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(u){i.e(u)}finally{i.f()}var s={file_list:o};return kt(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},Rt=function(){var e=(0,f.default)(a.default.mark((function e(t,n){var r,o,i,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,Mt.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(o=e.sent.fileList[0],"SUCCESS"===o.code){e.next=6;break}return e.abrupt("return",n?n(o):new Promise((function(e){e(o)})));case 6:if(i=kt(this.config.env),s=o.download_url,s=encodeURI(s),n){e.next=10;break}return e.abrupt("return",i.download({url:s}));case 10:return e.t0=n,e.next=13,i.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)}}(),Lt=function(e,t){var n,r=e.name,o=e.data,i=e.query,a=e.parse,s=e.search,u=e.timeout,c=t||ze();try{n=o?JSON.stringify(o):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new Se({code:"PARAM_ERROR",message:"函数名不能为空"}));var l={inQuery:i,parse:a,search:s,function_name:r,request_data:n};return kt(this.config.env).send("functions.invokeFunction",l,{timeout:u}).then((function(e){if(e.code)c(null,e);else{var t=e.data.response_data;if(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 Se({message:"response data must be json"}))}}return c.promise})).catch((function(e){c(e)})),c.promise},Nt={timeout:15e3,persistence:"session"},Dt={},Ut=function(){function e(t){(0,y.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,m.default)(e,[{key:"init",value:function(t){switch(Xe.adapter||(this.requestClient=new Xe.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=O(O({},Nt),t),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var n,r=t||Xe.adapter.primaryStorage||Nt.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;tt[t]=new et(e),nt[t]=new et(O(O({},e),{},{persistence:"local"}))}(this.config),n=this.config,wt[n.env]=new bt(n),this.authObj=new Tt(this.config),this.authObj}},{key:"on",value:function(e,t){return st.apply(this,[e,t])}},{key:"off",value:function(e,t){return ct.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return Lt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return $t.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return Mt.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return Rt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return It.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return jt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Dt[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){var r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=Dt[t],r){e.next=3;break}throw new Se({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,r.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"useAdapters",value:function(e){var t=Ge(e)||{},n=t.adapter,r=t.runtime;n&&(Xe.adapter=n),r&&(Xe.runtime=r)}}]),e}(),Ft=new Ut;function Bt(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";for(var i in n)""===o?!r&&(t+="?"):o+="&",o+=i+"="+encodeURIComponent(n[i]);return/^http(s)?:\/\//.test(t+=o)?t:""+e+t}var Ht=function(){function e(){(0,y.default)(this,e)}return(0,m.default)(e,[{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers,o=e.timeout;return new Promise((function(e,i){Ee.request({url:Bt("https:",t),data:n,method:"POST",header:r,timeout:o,success:function(t){e(t)},fail:function(e){i(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,o=e.file,i=e.data,a=e.headers,s=e.fileType,u=Ee.uploadFile({url:Bt("https:",r),name:"file",formData:Object.assign({},i),filePath:o,fileType:s,header:a,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&i.success_action_status&&(n.statusCode=parseInt(i.success_action_status,10)),t(n)},fail:function(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),qt={setItem:function(e,t){Ee.setStorageSync(e,t)},getItem:function(e){return Ee.getStorageSync(e)},removeItem:function(e){Ee.removeStorageSync(e)},clear:function(){Ee.clearStorageSync()}},Vt={genAdapter:function(){return{root:{},reqClass:Ht,localStorage:qt,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Ft.useAdapters(Vt);var Kt=Ft,zt=Kt.init;Kt.init=function(e){e.env=e.spaceId;var t=zt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var n=t.auth;return t.auth=function(e){var t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var n;t[e]=(n=t[e],function(e){e=e||{};var t=Ae(e),r=t.success,o=t.fail,i=t.complete;if(!(r||o||i))return n.call(this,e);n.call(this,e).then((function(e){r&&r(e),i&&i(e)}),(function(e){o&&o(e),i&&i(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Wt=Kt;function Jt(e,t){return Gt.apply(this,arguments)}function Gt(){return Gt=(0,f.default)(a.default.mark((function e(t,n){var r,o,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r="http://".concat(t,":").concat(n,"/system/ping"),e.prev=1,e.next=4,i={url:r,timeout:500},new Promise((function(e,t){Ee.request(O(O({},i),{},{success:function(t){e(t)},fail:function(e){t(e)}}))}));case 4:return o=e.sent,e.abrupt("return",!(!o.data||0!==o.data.code));case 8:return e.prev=8,e.t0=e["catch"](1),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),Gt.apply(this,arguments)}function Xt(e,t){return Zt.apply(this,arguments)}function Zt(){return Zt=(0,f.default)(a.default.mark((function e(t,n){var r,o,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=0;case 1:if(!(o<t.length)){e.next=11;break}return i=t[o],e.next=5,Jt(i,n);case 5:if(!e.sent){e.next=8;break}return r=i,e.abrupt("break",11);case 8:o++,e.next=1;break;case 11:return e.abrupt("return",{address:r,port:n});case 12:case"end":return e.stop()}}),e)}))),Zt.apply(this,arguments)}var Yt={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"},Qt=function(){function e(t){if((0,y.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),!t.endpoint)throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");this.config=Object.assign({},t),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=Ee}return(0,m.default)(e,[{key:"request",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,o=this,i=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=!(i.length>1&&void 0!==i[1])||i[1],r=J&&n,!r){e.next=8;break}return e.next=5,this.setupLocalRequest(t);case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=this.setupRequest(t);case 9:return t=e.t0,e.abrupt("return",Promise.resolve().then((function(){return r?o.requestLocal(t):Ne.wrappedRequest(t,o.adapter.request)})));case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"requestLocal",value:function(e){var t=this;return new Promise((function(n,r){t.adapter.request(Object.assign(e,{complete:function(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){var t=e.data&&e.data.code||"SYS_ERR",o=e.data&&e.data.message||"request:fail";return r(new Se({code:t,message:o}))}n({success:!0,result:e.data})}}))}))}},{key:"setupRequest",value:function(e){var t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};n["x-serverless-sign"]=Ne.sign(t,this.config.clientSecret);var r=Re();n["x-client-info"]=encodeURIComponent(JSON.stringify(r));var o=Te(),i=o.token;return n["x-client-token"]=i,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(n))}}},{key:"setupLocalRequest",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,o,i,s,u,c,l,f;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Re(),r=Te(),o=r.token,i=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:n,token:o}),s=this.__dev__&&this.__dev__.debugInfo||{},u=s.address,c=s.servePort,e.next=9,Xt(u,c);case 9:return l=e.sent,f=l.address,e.abrupt("return",{url:"http://".concat(f,":").concat(c,"/").concat(Yt[t.method]),method:"POST",data:i,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))});case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(t,!1)}},{key:"getUploadFileOptions",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(t)}},{key:"reportUploadFile",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(t)}},{key:"uploadFile",value:function(e){var t,n=this,r=e.filePath,o=e.cloudPath,i=e.fileType,a=void 0===i?"image":i,s=e.onUploadProgress;if(!o)throw new Se({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getUploadFileOptions({cloudPath:o}).then((function(e){var o=e.result,i=o.url,u=o.formData,c=o.name;return t=e.result.fileUrl,new Promise((function(e,t){var o=n.adapter.uploadFile({url:i,formData:u,name:c,filePath:r,fileType:a,success:function(n){n&&n.statusCode<400?e(n):t(new Se({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){t(new Se({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&o&&"function"==typeof o.onProgressUpdate&&o.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))})).then((function(){return n.reportUploadFile({cloudPath:o})})).then((function(e){return new Promise((function(n,o){e.success?n({success:!0,filePath:r,fileID:t}):o(new Se({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(n).then((function(e){if(e.success)return e.result;throw new Se({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new Se({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:n})};return this.request(r).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new Se({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),e}(),en={init:function(e){var t=new Qt(e),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},tn=C((function(e,t){e.exports=T.enc.Hex}));function nn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function rn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,r=t.functionName,o=t.method,i=t.headers,a=t.signHeaderKeys,s=void 0===a?[]:a,c=t.config,l=Date.now(),f=nn(),d=Object.assign({},i,{"x-from-app-id":c.spaceAppId,"x-from-env-id":c.spaceId,"x-to-env-id":c.spaceId,"x-from-instance-id":l,"x-from-function-name":r,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":f,"x-alipay-callid":f,"x-trace-id":f}),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(s),h=e.split("?")||[],v=(0,u.default)(h,2),g=v[0],y=void 0===g?"":g,m=v[1],_=void 0===m?"":m,b=function(e){var t=e.signedHeaders.join(";"),n=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),r=Ve(e.body).toString(tn),o="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(n,"\n").concat(t,"\n").concat(r,"\n"),i=Ve(o).toString(tn),a="HMAC-SHA256\n".concat(e.timestamp,"\n").concat(i,"\n"),s=Ke(a,e.secretKey).toString(tn);return"HMAC-SHA256 Credential=".concat(e.secretId,", SignedHeaders=").concat(t,", Signature=").concat(s)}({path:y,query:_,method:o,headers:d,timestamp:l,body:JSON.stringify(n),secretId:c.accessKey,secretKey:c.secretKey,signedHeaders:p.sort()});return{url:"".concat(c.endpoint).concat(e),headers:Object.assign({},d,{Authorization:b})}}function on(e){var t=e.url,n=e.data,r=e.method,o=void 0===r?"POST":r,i=e.headers,a=void 0===i?{}:i,s=e.timeout;return new Promise((function(e,r){Ee.request({url:t,method:o,data:"object"==(0,c.default)(n)?JSON.stringify(n):n,header:a,dataType:"json",timeout:s,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 o=t.data||{},i=o.message,s=o.errMsg,u=o.trace_id;return r(new Se({code:"SYS_ERR",message:i||s||"request:fail",requestId:u||n}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:n})}})}))}function an(e,t){var n=e.path,r=e.data,o=e.method,i=void 0===o?"GET":o,a=rn(n,{functionName:"",data:r,method:i,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t}),s=a.url,u=a.headers;return on({url:s,data:r,method:i,headers:u}).then((function(e){var t=e.data||{};if(!t.success)throw new Se({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new Se({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function sn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new Se({code:"INVALID_PARAM",message:"fileID不合法"});var r=t.substring(0,n),o=t.substring(n+1);return r!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),o}function un(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var cn=function(){function e(t){(0,y.default)(this,e),this.config=t}return(0,m.default)(e,[{key:"signedURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/ws/function/".concat(e),r=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),o=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:nn(),timestamp:""+Date.now()}),i=[n,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return o[e]?"".concat(e,"=").concat(o[e]):null})).filter(Boolean).join("&"),"host:".concat(r)].join("\n"),a=["HMAC-SHA256",Ve(i).toString(tn)].join("\n"),s=Ke(a,this.config.secretKey).toString(tn),u=Object.keys(o).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(o[e]))})).join("&");return"".concat(this.config.wsEndpoint).concat(n,"?").concat(u,"&signature=").concat(s)}}]),e}(),ln=function(){function e(t){if((0,y.default)(this,e),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||"https://".concat(t.spaceId,".api-hz.cloudbasefunction.cn"),wsEndpoint:t.wsEndpoint||"wss://".concat(t.spaceId,".api-hz.cloudbasefunction.cn")}),this._websocket=new cn(this.config)}return(0,m.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var n=e.name,r=e.data,o=e.async,i=void 0!==o&&o,a=e.timeout,s="POST",u={"x-to-function-name":n};i&&(u["x-function-invoke-type"]="async");var c=rn("/functions/invokeFunction",{functionName:n,data:r,method:s,headers:u,signHeaderKeys:["x-to-function-name"],config:t}),l=c.url,f=c.headers;return on({url:l,data:r,method:s,headers:f,timeout:a}).then((function(e){var t=0;if(i){var n=e.data||{};t="200"===n.errCode?0:n.errCode,e.data=n.data||{},e.errMsg=n.errMsg}if(0!==t)throw new Se({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((function(e){throw new Se({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,n=e.filePath,r=e.fileType,o=e.formData,i=e.onUploadProgress;return new Promise((function(e,a){var s=Ee.uploadFile({url:t,filePath:n,fileType:r,formData:o,name:"file",success:function(t){t&&t.statusCode<400?e(t):a(new Se({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){a(new Se({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,o,i,s,u,c,l,f,d,p;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,o=void 0===r?"":r,i=t.fileType,s=void 0===i?"image":i,u=t.onUploadProgress,"string"===F(o)){e.next=3;break}throw new Se({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(o=o.trim()){e.next=5;break}throw new Se({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(o)){e.next=7;break}throw new Se({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,an({path:"/".concat(o.replace(/^\//,""),"?post_url")},this.config);case 9:return c=e.sent,l=c.file_id,f=c.upload_url,d=c.form_data,p=d&&d.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:f,filePath:n,fileType:s,formData:p,onUploadProgress:u}).then((function(){return{fileID:l}})));case 15:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getTempFileURL",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileList,e.abrupt("return",new Promise((function(e,t){(!n||n.length<0)&&t(new Se({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),n.length>50&&t(new Se({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));var o,i=[],a=b(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;"string"!==F(s)&&t(new Se({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));var u=sn.call(r,s);i.push({file_id:u,expire:600})}}catch(c){a.e(c)}finally{a.f()}an({path:"/?download_url",data:{file_list:i},method:"POST"},r.config).then((function(t){var n=t.file_list,o=void 0===n?[]:n;e({fileList:o.map((function(e){return{fileID:un.call(r,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"connectWebSocket",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,r=t.query,e.abrupt("return",Ee.connectSocket({url:this._websocket.signedURL(n,r),complete:function(){}}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}(),fn={init:function(e){e.provider="alipay";var t=new ln(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function dn(e){var t,n=e.data;t=Re();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var o=Te(),i=o.token;i&&(r.uniIdToken=i)}return r}function pn(){return hn.apply(this,arguments)}function hn(){return hn=(0,f.default)(a.default.mark((function e(){var t,n,r,o,i,s,u,c,l=this,f=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=f.length>0&&void 0!==f[0]?f[0]:{},e.next=3,this.__dev__.initLocalNetwork();case 3:return n=this.__dev__,r=n.localAddress,o=n.localPort,i={aliyun:"aliyun",tencent:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],s=this.config.spaceId,u="http://".concat(r,":").concat(o,"/system/check-function"),c="http://".concat(r,":").concat(o,"/cloudfunctions/").concat(t.name),e.abrupt("return",new Promise((function(e,n){Ee.request({method:"POST",url:u,data:{name:t.name,platform:Y,provider:i,spaceId:s},timeout:3e3,success:function(t){e(t)},fail:function(){e({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=t||{},r=n.code,o=n.message;return{code:0===r?0:r||"SYS_ERR",message:o||"SYS_ERR"}})).then((function(e){var n=e.code,r=e.message;if(0!==n){switch(n){case"MODULE_ENCRYPTED":console.error("此云函数(".concat(t.name,")依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数"));break;case"FUNCTION_ENCRYPTED":console.error("此云函数(".concat(t.name,")已加密不可本地调试,自动切换为云端已部署的云函数"));break;case"ACTION_ENCRYPTED":console.error(r||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":console.error(r||"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下");break;case"SWITCH_TO_CLOUD":break;default:var o="检测本地调试服务出现错误:".concat(r,",请检查网络环境或重启客户端再试");throw console.error(o),new Error(o)}return l._callCloudFunction(t)}return new Promise((function(e,n){var r=dn.call(l,{data:t.data});Ee.request({method:"POST",url:c,data:{provider:i,platform:Y,param:r},timeout:t.timeout,success:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.statusCode,o=t.data;return!r||r>=400?n(new Se({code:o.code||"SYS_ERR",message:o.message||"request:fail"})):e({result:o})},fail:function(e){n(new Se({code:e.code||e.errCode||"SYS_ERR",message:e.message||e.errMsg||"request:fail"}))}})}))})));case 5:case"end":return e.stop()}}),e,this)}))),hn.apply(this,arguments)}var vn=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],gn=/[\\^$.*+?()[\]{}|]/g,yn=RegExp(gn.source);function mn(e,t,n){return e.replace(new RegExp((r=t)&&yn.test(r)?r.replace(gn,"\\$&"):r,"g"),n);var r}var _n="none",bn="request",wn="response",kn="both",xn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.secretType,r=t.uniCloudIns;(0,y.default)(this,e),this.clientType="",this.secretType=n||_n,this.uniCloudIns=r;var o,i=this.uniCloudIns.config,a=i.provider,s=i.spaceId;this.provider=a,this.spaceId=s,this.scopedGlobalCache=(o=this.uniCloudIns,re("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",o.config.spaceId)))}return(0,m.default)(e,[{key:"getSystemInfo",value:function(){return this._systemInfo||(this._systemInfo=je()),this._systemInfo}},{key:"appId",get:function(){return this.getSystemInfo().appId}},{key:"deviceId",get:function(){return this.getSystemInfo().deviceId}},{key:"encryptData",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.secretType===_n?t:this.platformEncryptData(t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"decryptResult",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.secretType!==_n){e.next=2;break}return e.abrupt("return",t);case 2:return n=t||{},r=n.errCode,o=n.content,e.abrupt("return",r||!o?t:this.secretType===bn?o:this.platformDecryptResult(t));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"wrapVerifyClientCallFunction",value:function(e){var t=this;return(0,f.default)(a.default.mark((function n(){var r,o,i,s,u,c=arguments;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=c.length>0&&void 0!==c[0]?c[0]:{},o=r.name,i=r.data,s=void 0===i?{}:i,n.next=3,t.prepare();case 3:return n.next=5,t.platformGetSignOption();case 5:return(s=JSON.parse(JSON.stringify(s)))._uniCloudOptions=n.sent,n.next=8,e({name:o,data:s});case 8:if(u=n.sent,n.t0=t.isClientKeyNotFound(u),!n.t0){n.next=19;break}return n.next=13,t.prepare({forceUpdate:!0});case 13:return n.next=15,t.platformGetSignOption();case 15:return s._uniCloudOptions=n.sent,n.next=18,e({name:o,data:s});case 18:u=n.sent;case 19:return n.abrupt("return",u);case 20:case"end":return n.stop()}}),n)})))}},{key:"wrapEncryptDataCallFunction",value:function(e){var t=this;return(0,f.default)(a.default.mark((function n(){var r,o,i,s,u,c,l,f=arguments;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=f.length>0&&void 0!==f[0]?f[0]:{},o=r.name,i=r.data,s=void 0===i?{}:i,n.next=3,t.prepare();case 3:return n.next=5,t.encryptData(s);case 5:return u=n.sent,n.next=8,e({name:o,data:u});case 8:if(c=n.sent,!t.isClientKeyNotFound(c)){n.next=21;break}return n.next=12,t.prepare({forceUpdate:!0});case 12:return n.next=14,t.encryptData(s);case 14:return l=n.sent,n.next=17,t.platformGetSignOption();case 17:return s._uniCloudOptions=n.sent,n.next=20,e({name:o,data:l});case 20:c=n.sent;case 21:return n.next=23,t.decryptResult(c.result);case 23:return c.result=n.sent,n.abrupt("return",c);case 25:case"end":return n.stop()}}),n)})))}}]),e}();
- /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
- function On(e){return parseInt(e)===e}function An(e){if(!On(e.length))return!1;for(var t=0;t<e.length;t++)if(!On(e[t])||e[t]<0||e[t]>255)return!1;return!0}function Sn(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!An(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(On(e.length)&&An(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function Pn(e){return new Uint8Array(e)}function Cn(e,t,n,r,o){null==r&&null==o||(e=e.slice?e.slice(r,o):Array.prototype.slice.call(e,r,o)),t.set(e,n)}var En,Tn={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n<e.length;){var r=e.charCodeAt(n++);37===r?(t.push(parseInt(e.substr(n,2),16)),n+=2):t.push(r)}return Sn(t)},fromBytes:function(e){for(var t=[],n=0;n<e.length;){var r=e[n];r<128?(t.push(String.fromCharCode(r)),n++):r>191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},In=(En="0123456789abcdef",{toBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},fromBytes:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(En[(240&r)>>4]+En[15&r])}return t.join("")}}),jn={16:10,24:12,32:14},$n=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],Mn=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Rn=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],Ln=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],Nn=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],Dn=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],Un=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],Fn=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],Bn=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],Hn=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],qn=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],Vn=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],Kn=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],zn=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],Wn=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Jn(e){for(var t=[],n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}var Gn=function(){function e(t){if((0,y.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:Sn(t,!0)}),this._prepare()}return(0,m.default)(e,[{key:"_prepare",value:function(){var e=jn[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var n,r=4*(e+1),o=this.key.length/4,i=Jn(this.key);for(t=0;t<o;t++)n=t>>2,this._Ke[n][t%4]=i[t],this._Kd[e-n][t%4]=i[t];for(var a,s=0,u=o;u<r;){if(a=i[o-1],i[0]^=Mn[a>>16&255]<<24^Mn[a>>8&255]<<16^Mn[255&a]<<8^Mn[a>>24&255]^$n[s]<<24,s+=1,8!=o)for(t=1;t<o;t++)i[t]^=i[t-1];else{for(t=1;t<o/2;t++)i[t]^=i[t-1];for(a=i[o/2-1],i[o/2]^=Mn[255&a]^Mn[a>>8&255]<<8^Mn[a>>16&255]<<16^Mn[a>>24&255]<<24,t=o/2+1;t<o;t++)i[t]^=i[t-1]}for(t=0;t<o&&u<r;)c=u>>2,l=u%4,this._Ke[c][l]=i[t],this._Kd[e-c][l]=i[t++],u++}for(var c=1;c<e;c++)for(var l=0;l<4;l++)a=this._Kd[c][l],this._Kd[c][l]=Vn[a>>24&255]^Kn[a>>16&255]^zn[a>>8&255]^Wn[255&a]}},{key:"encrypt",value:function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=Jn(e),o=0;o<4;o++)r[o]^=this._Ke[0][o];for(var i=1;i<t;i++){for(o=0;o<4;o++)n[o]=Ln[r[o]>>24&255]^Nn[r[(o+1)%4]>>16&255]^Dn[r[(o+2)%4]>>8&255]^Un[255&r[(o+3)%4]]^this._Ke[i][o];r=n.slice()}var a,s=Pn(16);for(o=0;o<4;o++)a=this._Ke[t][o],s[4*o]=255&(Mn[r[o]>>24&255]^a>>24),s[4*o+1]=255&(Mn[r[(o+1)%4]>>16&255]^a>>16),s[4*o+2]=255&(Mn[r[(o+2)%4]>>8&255]^a>>8),s[4*o+3]=255&(Mn[255&r[(o+3)%4]]^a);return s}},{key:"decrypt",value:function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=Jn(e),o=0;o<4;o++)r[o]^=this._Kd[0][o];for(var i=1;i<t;i++){for(o=0;o<4;o++)n[o]=Fn[r[o]>>24&255]^Bn[r[(o+3)%4]>>16&255]^Hn[r[(o+2)%4]>>8&255]^qn[255&r[(o+1)%4]]^this._Kd[i][o];r=n.slice()}var a,s=Pn(16);for(o=0;o<4;o++)a=this._Kd[t][o],s[4*o]=255&(Rn[r[o]>>24&255]^a>>24),s[4*o+1]=255&(Rn[r[(o+3)%4]>>16&255]^a>>16),s[4*o+2]=255&(Rn[r[(o+2)%4]>>8&255]^a>>8),s[4*o+3]=255&(Rn[255&r[(o+1)%4]]^a);return s}}]),e}(),Xn=function(){function e(t){if((0,y.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Gn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){if((e=Sn(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=Pn(e.length),n=Pn(16),r=0;r<e.length;r+=16)Cn(e,n,0,r,r+16),Cn(n=this._aes.encrypt(n),t,r);return t}},{key:"decrypt",value:function(e){if((e=Sn(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=Pn(e.length),n=Pn(16),r=0;r<e.length;r+=16)Cn(e,n,0,r,r+16),Cn(n=this._aes.decrypt(n),t,r);return t}}]),e}(),Zn=function(){function e(t,n){if((0,y.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else n=Pn(16);this._lastCipherblock=Sn(n,!0),this._aes=new Gn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){if((e=Sn(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=Pn(e.length),n=Pn(16),r=0;r<e.length;r+=16){Cn(e,n,0,r,r+16);for(var o=0;o<16;o++)n[o]^=this._lastCipherblock[o];this._lastCipherblock=this._aes.encrypt(n),Cn(this._lastCipherblock,t,r)}return t}},{key:"decrypt",value:function(e){if((e=Sn(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=Pn(e.length),n=Pn(16),r=0;r<e.length;r+=16){Cn(e,n,0,r,r+16),n=this._aes.decrypt(n);for(var o=0;o<16;o++)t[r+o]=n[o]^this._lastCipherblock[o];Cn(e,this._lastCipherblock,0,r,r+16)}return t}}]),e}(),Yn=function(){function e(t,n,r){if((0,y.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 size)")}else n=Pn(16);r||(r=1),this.segmentSize=r,this._shiftRegister=Sn(n,!0),this._aes=new Gn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,n=Sn(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)n[r+o]^=t[o];Cn(this._shiftRegister,this._shiftRegister,0,this.segmentSize),Cn(n,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n}},{key:"decrypt",value:function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,n=Sn(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)n[r+o]^=t[o];Cn(this._shiftRegister,this._shiftRegister,0,this.segmentSize),Cn(e,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n}}]),e}(),Qn=function(){function e(t,n){if((0,y.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else n=Pn(16);this._lastPrecipher=Sn(n,!0),this._lastPrecipherIndex=16,this._aes=new Gn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){for(var t=Sn(e,!0),n=0;n<t.length;n++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[n]^=this._lastPrecipher[this._lastPrecipherIndex++];return t}},{key:"decrypt",value:function(e){return this.encrypt(e)}}]),e}(),er=function(){function e(t){if((0,y.default)(this,e),!(this instanceof e))throw Error("Counter must be instanitated with `new`");0===t||t||(t=1),"number"==typeof t?(this._counter=Pn(16),this.setValue(t)):this.setBytes(t)}return(0,m.default)(e,[{key:"setValue",value:function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");if(e>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)}},{key:"setBytes",value:function(e){if(16!=(e=Sn(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e}},{key:"increment",value:function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}}}]),e}(),tr=function(){function e(t,n){if((0,y.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",n instanceof er||(n=new er(n)),this._counter=n,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Gn(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){for(var t=Sn(e,!0),n=0;n<t.length;n++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[n]^=this._remainingCounter[this._remainingCounterIndex++];return t}},{key:"decrypt",value:function(e){return this.encrypt(e)}}]),e}(),nr={AES:Gn,Counter:er,ModeOfOperation:{ecb:Xn,cbc:Zn,cfb:Yn,ofb:Qn,ctr:tr},utils:{hex:In,utf8:Tn},padding:{pkcs7:{pad:function(e){var t=16-(e=Sn(e,!0)).length%16,n=Pn(e.length+t);Cn(e,n);for(var r=e.length;r<n.length;r++)n[r]=t;return n},strip:function(e){if((e=Sn(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;r<t;r++)if(e[n+r]!==t)throw new Error("PKCS#7 invalid padding byte");var o=Pn(n);return Cn(e,o,0,0,n),o}}},_arrayTest:{coerceArray:Sn,createArray:Pn,copyArray:Cn}};function rr(e,t,n){var o=new Uint8Array(r.base64ToArrayBuffer(t)),i=nr.utils.utf8.toBytes(n),a=nr.utils.utf8.toBytes(e),s=new nr.ModeOfOperation.cbc(o,i),u=nr.padding.pkcs7.pad(a),c=s.encrypt(u);return r.arrayBufferToBase64(c)}var or={code:2e4,message:"System error"},ir={code:20101,message:"Invalid client"},ar={code:20102,message:"Get encrypt key failed"},sr={10001:"Secure network is not supported on current playground or unimpsdk",10003:"Config missing in current app. If the problem pesist, please contact DCloud.",10009:"Encrypt payload failed",10010:"Decrypt response failed"};function ur(e){var t=e||{},n=t.errSubject,r=t.subject,o=t.errCode,i=t.errMsg,a=t.code,s=t.message,u=t.cause;return new Se({subject:n||r||"uni-secure-network",code:o||a||or.code,message:i||s,cause:u})}var cr,lr,fr=null,dr=function(e){(0,p.default)(n,e);var t=A(n);function n(e){var r;return(0,y.default)(this,n),r=t.call(this,e),r.clientType="mp-weixin",r.userEncryptKey=null,r}return(0,m.default)(n,[{key:"isLogin",value:function(){return!!this.scopedGlobalCache.mpWeixinCode||!!this.scopedGlobalCache.mpWeixinOpenid}},{key:"prepare",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.isLogin()){e.next=7;break}if(this.scopedGlobalCache.initPromise){e.next=3;break}throw new Error("`uniCloud.initSecureNetworkByWeixin` has not yet been called");case 3:return e.next=5,this.scopedGlobalCache.initPromise;case 5:if(this.isLogin()){e.next=7;break}throw new Error("uniCloud.initSecureNetworkByWeixin` has not yet been called or successfully excuted");case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getUserEncryptKey",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.userEncryptKey){e.next=2;break}return e.abrupt("return",this.userEncryptKey);case 2:if(!fr||!fr.expireTime){e.next=6;break}if(t=Date.now(),!(fr.expireTime-t>0)){e.next=6;break}return e.abrupt("return",(this.userEncryptKey=fr,this.userEncryptKey));case 6:return e.abrupt("return",new Promise((function(e,t){r.getUserCryptoManager().getLatestUserKey({success:function(t){fr=t,n.userEncryptKey=t,e(n.userEncryptKey)},fail:function(e){t(ur(O(O({},ar),{},{cause:e})))}})})));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getWxAppId",value:function(){return o.getAccountInfoSync().miniProgram.appId}},{key:"platformGetSignOption",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getUserEncryptKey();case 2:return t=e.sent,n=t.encryptKey,r=t.iv,o=t.version,e.abrupt("return",{verifyClientSign:rr(JSON.stringify({data:JSON.stringify({}),appId:this.appId,deviceId:this.deviceId,wxAppId:this.getWxAppId(),simulator:"devtools"===je().platform,timestamp:Date.now()}),n,r),encryptKeyId:o,mpWeixinCode:this.scopedGlobalCache.mpWeixinCode,mpWeixinOpenid:this.scopedGlobalCache.mpWeixinOpenid});case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformEncryptData",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,o,i,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getUserEncryptKey();case 2:return n=e.sent,r=n.encryptKey,o=n.iv,i=n.version,s={secretType:this.secretType,encryptKeyId:i,mpWeixinCode:this.scopedGlobalCache.mpWeixinCode,mpWeixinOpenid:this.scopedGlobalCache.mpWeixinOpenid},e.abrupt("return",this.secretType===wn?{content:t,_uniCloudOptions:s}:{content:rr(JSON.stringify({data:JSON.stringify(t),appId:this.appId,deviceId:this.deviceId,wxAppId:this.getWxAppId(),simulator:"devtools"===je().platform,timestamp:Date.now()}),r,o),_uniCloudOptions:s});case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"platformDecryptResult",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,o,i,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.content,e.next=3,this.getUserEncryptKey();case 3:return o=e.sent,i=o.encryptKey,s=o.iv,e.abrupt("return",JSON.parse(function(e,t,n){var o=new Uint8Array(r.base64ToArrayBuffer(e)),i=new Uint8Array(r.base64ToArrayBuffer(t)),a=nr.utils.utf8.toBytes(n),s=new nr.ModeOfOperation.cbc(i,a),u=nr.padding.pkcs7.strip(s.decrypt(o));return nr.utils.utf8.fromBytes(u)}(n,i,s)));case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"isClientKeyNotFound",value:function(){return!1}}]),n}(xn);function pr(e){for(var t=["hasClientKey","encryptGetClientKeyPayload","setClientKey","encrypt","decrypt"],n={},r=function(r){var o=t[r];n[o]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new Promise((function(t,r){"function"==typeof e[o]?e[o].apply(e,n.concat([function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.type,o=e.data,i=e.errCode,a=e.errMsg,s=e.errSubject,u=e.message;"success"===n?t(o):r(ur({errCode:i,errMsg:sr[i]||a||u,errSubject:s}))}])):r(ur({message:"请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"}))}))}},o=0;o<t.length;o++)r(o);return n}var hr=function(e){(0,p.default)(n,e);var t=A(n);function n(e){var o;return(0,y.default)(this,n),o=t.call(this,e),o.clientType="app",o.appUtils=O({},pr(r.requireNativePlugin("plus"))),o.systemInfo=cr||(cr=je()),o}return(0,m.default)(n,[{key:"hasClientKey",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.hasClientKey({provider:this.provider,spaceId:this.spaceId});case 2:return this._hasClientKey=e.sent,e.abrupt("return",this._hasClientKey);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAppClientKey",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,o,i,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.encryptGetClientKeyPayload({data:JSON.stringify({})});case 2:return t=e.sent,n=t.data,r=t.key,e.next=7,this.uniCloudIns.callFunction({name:"DCloud-clientDB",data:{redirectTo:"encryption",action:"getAppClientKey",data:n,key:r}});case 7:if(e.t0=e.sent.result,e.t0){e.next=10;break}e.t0={};case 10:if(o=e.t0,0===o.errCode){e.next=13;break}throw function(e){return new Se({subject:e.errSubject||"uni-secure-network",code:e.errCode||e.code||or.code,message:e.errMsg||e.message})}(o);case 13:return i=o.clientKey,s=o.key,e.next=16,this.appUtils.setClientKey({provider:this.provider,spaceId:this.spaceId,clientKey:i,key:s});case 16:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"ensureClientKey",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,o=this,i=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.forceUpdate,r=void 0!==n&&n,e.t1=!0,e.next=4,this.hasClientKey();case 4:if(e.t2=e.sent,e.t0=e.t1!==e.t2,e.t0){e.next=8;break}e.t0=r;case 8:if(!e.t0){e.next=10;break}return e.abrupt("return",(r&&this.scopedGlobalCache.initPromise&&this.scopedGlobalCache.initStatus===N||!r&&this.scopedGlobalCache.initPromise&&this.scopedGlobalCache.initStatus!==U||(this.scopedGlobalCache.initPromise=this.getAppClientKey(),this.scopedGlobalCache.initPromise.then((function(e){o.scopedGlobalCache.initStatus=D})).catch((function(e){throw o.scopedGlobalCache.initStatus=U,e})),this.scopedGlobalCache.initStatus=N),this.scopedGlobalCache.initPromise));case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"prepare",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,o=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},n=t.forceUpdate,r=void 0!==n&&n,e.next=3,this.ensureClientKey({forceUpdate:r});case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformGetSignOption",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.encrypt({provider:this.provider,spaceId:this.spaceId,data:JSON.stringify({})});case 2:return t=e.sent,n=t.data,r=t.key,e.abrupt("return",{verifyClientSign:n,encryptKeyId:r});case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformEncryptData",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,o,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.encrypt({provider:this.provider,spaceId:this.spaceId,data:JSON.stringify(t)});case 2:return n=e.sent,r=n.data,o=n.key,i={secretType:this.secretType,encryptKeyId:o},e.abrupt("return",this.secretType===wn?{content:t,_uniCloudOptions:i}:{content:r,_uniCloudOptions:i});case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"platformDecryptResult",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,o,i,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.content,r=t._uniCloudOptions,o=void 0===r?{}:r,i=o.encryptKeyId,e.next=6,this.appUtils.decrypt({provider:this.provider,spaceId:this.spaceId,data:n,key:i});case 6:return s=e.sent,e.abrupt("return",JSON.parse(s.data));case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"isClientKeyNotFound",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.result||{};return 70009===t.errCode&&"uni-secure-network"===t.errSubject}}]),n}(xn);function vr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===bn||t===wn||t===kn}function gr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.data,r=void 0===n?{}:n;return"app"===Y&&"DCloud-clientDB"===t&&"encryption"===r.redirectTo&&"getAppClientKey"===r.action}function yr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=e.functionName,o=je(),i=o.appId,a=o.uniPlatform,s=o.osName,u=a;"app"===a&&(u=s);var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=Z;if(!r)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var o=r.find((function(e){return e.provider===t&&e.spaceId===n}));return o&&o.config}({provider:t,spaceId:n});if(!c||!c.accessControl||!c.accessControl.enable)return!1;var l=c.accessControl.function||{},f=Object.keys(l);if(0===f.length)return!0;var d=function(e,t){for(var n,r,o,i=0;i<e.length;i++){var a=e[i];a!==t?"*"!==a?a.split(",").map((function(e){return e.trim()})).indexOf(t)>-1&&(r=a):o=a:n=a}return n||r||o}(f,r);if(!d)return!1;if((l[d]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===i&&(e.platform||"").toLowerCase()===u.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(i,", platform: ").concat(u,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),ur(ir)}function mr(e){var t=e.functionName,n=e.result,r=e.logPvd;if(J&&this.__dev__.debugLog&&n&&n.requestId){var o=JSON.stringify({spaceId:this.config.spaceId,functionName:t,requestId:n.requestId});console.log("[".concat(r,"-request]").concat(o,"[/").concat(r,"-request]"))}}function _r(e){var t=e.callFunction,n=function(n){var r=this,o=n.name;n.data=dn.call(e,{data:n.data});var i={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],a=vr(n),s=gr(n),u=a||s;return t.call(this,n).then((function(e){return e.errCode=0,!u&&mr.call(r,{functionName:o,result:e,logPvd:i}),Promise.resolve(e)}),(function(e){return!u&&mr.call(r,{functionName:o,result:e,logPvd:i}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.extraInfo,o=void 0===r?{}:r,i=e.formatter,a=void 0===i?[]:i,s=0;s<a.length;s++){var u=a[s],c=u.rule,l=u.content,f=u.mode,d=n.match(c);if(d){for(var p=l,h=1;h<d.length;h++)p=mn(p,"{$".concat(h,"}"),d[h]);for(var v in o)p=mn(p,"{".concat(v,"}"),o[v]);return"replace"===f?p:n+p}}return n}({message:"[".concat(n.name,"]: ").concat(e.message),formatter:vn,extraInfo:{functionName:o}})),Promise.reject(e)}))};e.callFunction=function(t){var r,o,i=e.config,a=i.provider,s=i.spaceId,u=t.name;return t.data=t.data||{},J&&e.__dev__.debugInfo&&!e.__dev__.debugInfo.forceRemote&&ee?(e._callCloudFunction||(e._callCloudFunction=n,e._callLocalFunction=pn),r=pn):r=n,r=r.bind(e),o=gr(t)?n.call(e,t):function(e){var t=e.name,n=e.data,r=void 0===n?{}:n;return"mp-weixin"===Y&&"uni-id-co"===t&&"secureNetworkHandshakeByWeixin"===r.method}(t)?r.call(e,t):vr(t)?new lr({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(n.bind(e))(t):yr({provider:a,spaceId:s,functionName:u})?new lr({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t),Object.defineProperty(o,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),o.then((function(e){return"undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e}))}}lr="mp-weixin"!==Y&&"app"!==Y?function(){function e(){throw(0,y.default)(this,e),ur({message:"Platform ".concat(Y," is not supported by secure network")})}return(0,m.default)(e)}():X?"mp-weixin"===Y?dr:hr:function(){function e(){throw(0,y.default)(this,e),ur({message:"Platform ".concat(Y," is not enabled, please check whether secure network module is enabled in your manifest.json")})}return(0,m.default)(e)}();var br=Symbol("CLIENT_DB_INTERNAL");function wr(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=br,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,n,r){if("_uniClient"===n)return null;if("symbol"==(0,c.default)(n))return e[n];if(n in e||"string"!=typeof n){var o=e[n];return"function"==typeof o?o.bind(e):o}return t.get(e,n,r)}})}function kr(e){return{on:function(t,n){e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:function(t,n){e[t]=e[t]||[];var r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}}var xr=["db.Geo","db.command","command.aggregate"];function Or(e,t){return xr.indexOf("".concat(e,".").concat(t))>-1}function Ar(e){switch(F(e)){case"array":return e.map((function(e){return Ar(e)}));case"object":return e._internalType===br||Object.keys(e).forEach((function(t){e[t]=Ar(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Sr(e){return e&&e.content&&e.content.$method}var Pr=function(){function e(t,n,r){(0,y.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=r}return(0,m.default)(e,[{key:"toJSON",value:function(){for(var e=this,t=[e.content];e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((function(e){return{$method:e.$method,$param:Ar(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=Sr(e),n=Sr(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"===Sr(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=Sr(e),n=Sr(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 Cr({$method:e,$param:Ar(Array.from(arguments))},t,t._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(e,t){var n=this.getAction(),r=this.getCommand();if(r.$db.push({$method:e,$param:Ar(t)}),J){var o=r.$db.find((function(e){return"collection"===e.$method})),i=o&&o.$param;i&&1===i.length&&"string"==typeof o.$param[0]&&o.$param[0].indexOf(",")>-1&&console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。")}return this._database._callCloudFunction({action:n,command:r})}}]),e}();function Cr(e,t,n){return wr(new Pr(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),Or(r,t)?Cr({$method:t},e,n):function(){return Cr({$method:t,$param:Ar(Array.from(arguments))},e,n)}}})}function Er(e){var t=e.path,n=e.method;return function(){function e(){(0,y.default)(this,e),this.param=Array.from(arguments)}return(0,m.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,l.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}function Tr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return wr(new e(t),{get:function(e,t){return Or("db",t)?Cr({$method:t},null,e):function(){return Cr({$method:t,$param:Ar(Array.from(arguments))},null,e)}}})}var Ir=function(e){(0,p.default)(n,e);var t=A(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,o=e.multiCommand,i=e.queryList;function a(e,t){if(o&&i)for(var n=0;n<i.length;n++){var r=i[n];r.udb&&"function"==typeof r.udb.setResult&&(t?r.udb.setResult(t):r.udb.setResult(e.result.dataList[n]))}}var s=this,u=this._isJQL?"databaseForJQL":"database";function c(e){return s._callback("error",[e]),ue(ce(u,"fail"),e).then((function(){return ue(ce(u,"complete"),e)})).then((function(){return a(null,e),we(de,{type:ve,content:e}),Promise.reject(e)}))}var l=ue(ce(u,"invoke")),f=this._uniClient;return l.then((function(){return f.callFunction({name:"DCloud-clientDB",type:L,data:{action:n,command:r,multiCommand:o}})})).then((function(e){var n=e.result,r=n.code,o=n.message,i=n.token,l=n.tokenExpired,f=n.systemInfo,d=void 0===f?[]:f;if(d)for(var p=0;p<d.length;p++){var h=d[p],v=h.level,g=h.message,y=h.detail,m=console["app"===Y&&"warn"===v?"error":v]||console.log,_="[System Info]"+g;y&&(_="".concat(_,"\n详细信息:").concat(y)),m(_)}if(r)return c(new Se({code:r,message:o,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,i&&l&&(Ie({token:i,tokenExpired:l}),t._callbackAuth("refreshToken",[{token:i,tokenExpired:l}]),t._callback("refreshToken",[{token:i,tokenExpired:l}]),we(he,{token:i,tokenExpired:l}));for(var b=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}],w=function(t){var n=b[t],r=n.prop,o=n.tips;if(r in e.result){var i=e.result[r];Object.defineProperty(e.result,r,{get:function(){return console.warn(o),i}})}},k=0;k<b.length;k++)w(k);return function(e){return ue(ce(u,"success"),e).then((function(){return ue(ce(u,"complete"),e)})).then((function(){a(e,null);var t=s._parseResult(e);return we(de,{type:ve,content:t}),Promise.resolve(t)}))}(e)}),(function(e){return/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),c(new Se({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,r=void 0===n?{}:n,o=t.isJQL,i=void 0!==o&&o;(0,y.default)(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r._isDefault&&(this._dbCallBacks=re("_globalUniCloudDatabaseCallback")),i||(this.auth=kr(this._authCallBacks)),this._isJQL=i,Object.assign(this,kr(this._dbCallBacks)),this.env=wr({},{get:function(e,t){return{$env:t}}}),this.Geo=wr({},{get:function(e,t){return Er({path:["Geo"],method:t})}}),this.serverDate=Er({path:[],method:"serverDate"}),this.RegExp=Er({path:[],method:"RegExp"})}return(0,m.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var n=this._dbCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,l.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,l.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}()),jr="token无效,跳转登录页面",$r="token过期,跳转登录页面",Mr={TOKEN_INVALID_TOKEN_EXPIRED:$r,TOKEN_INVALID_INVALID_CLIENTID:jr,TOKEN_INVALID:jr,TOKEN_INVALID_WRONG_TOKEN:jr,TOKEN_INVALID_ANONYMOUS_USER:jr},Rr={"uni-id-token-expired":$r,"uni-id-check-token-failed":jr,"uni-id-token-not-exist":jr,"uni-id-check-device-feature-failed":jr};function Lr(e,t){var n="";return n=e?"".concat(e,"/").concat(t):t,n.replace(/^\//,"")}function Nr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=[];return e.forEach((function(e){!0===e.needLogin?n.push(Lr(t,e.path)):!1===e.needLogin&&r.push(Lr(t,e.path))})),{needLoginPage:n,notNeedLoginPage:r}}function Dr(e){return e.split("?")[0].replace(/^\//,"")}function Ur(){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 Fr(){return Dr(Ur())}function Br(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var n=t.list,r=Dr(e);return n.some((function(e){return e.pagePath===r}))}var Hr,qr=!!_.default.uniIdRouter,Vr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_.default,t=e.pages,n=void 0===t?[]:t,r=e.subPackages,o=void 0===r?[]:r,i=e.uniIdRouter,a=void 0===i?{}:i,s=e.tabBar,u=void 0===s?{}:s,c=a.loginPage,f=a.needLogin,d=void 0===f?[]:f,p=a.resToLogin,h=void 0===p||p,v=Nr(n),g=v.needLoginPage,y=v.notNeedLoginPage,m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var r=e.root,o=e.pages,i=void 0===o?[]:o,a=Nr(i,r),s=a.needLoginPage,u=a.notNeedLoginPage;t.push.apply(t,(0,l.default)(s)),n.push.apply(n,(0,l.default)(u))})),{needLoginPage:t,notNeedLoginPage:n}}(o),b=m.needLoginPage,w=m.notNeedLoginPage;return{loginPage:c,routerNeedLogin:d,resToLogin:h,needLoginPage:[].concat((0,l.default)(g),(0,l.default)(b)),notNeedLoginPage:[].concat((0,l.default)(y),(0,l.default)(w)),loginPageInTabBar:Br(c,u)}}(),Kr=Vr.loginPage,zr=Vr.routerNeedLogin,Wr=Vr.resToLogin,Jr=Vr.needLoginPage,Gr=Vr.notNeedLoginPage,Xr=Vr.loginPageInTabBar;if(Jr.indexOf(Kr)>-1)throw new Error("Login page [".concat(Kr,'] should not be "needLogin", please check your pages.json'));function Zr(e){var t=Fr();if("/"===e.charAt(0))return e;var n=e.split("?"),r=(0,u.default)(n,2),o=r[0],i=r[1],a=o.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(var c=0;c<a.length;c++){var l=a[c];".."===l?s.pop():"."!==l&&s.push(l)}return""===s[0]&&s.shift(),"/"+s.join("/")+(i?"?"+i:"")}function Yr(e){var t=Dr(Zr(e));return!(Gr.indexOf(t)>-1)&&(Jr.indexOf(t)>-1||zr.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function Qr(e){var t=e.redirect,n=Dr(t),r=Dr(Kr);return Fr()!==r&&n!==r}function eo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&Qr({redirect:n})){var o=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(Kr,n);Xr?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var i={navigateTo:r.navigateTo,redirectTo:r.redirectTo,switchTab:r.switchTab,reLaunch:r.reLaunch};setTimeout((function(){i[t]({url:o})}),0)}}function to(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var e,t=Te(),n=t.token,r=t.tokenExpired;if(n){if(r<Date.now()){var o="uni-id-token-expired";e={errCode:o,errMsg:Rr[o]}}}else{var i="uni-id-check-token-failed";e={errCode:i,errMsg:Rr[i]}}return e}();if(Yr(t)&&r){if(r.uniIdRedirectUrl=t,me(pe).length>0)return setTimeout((function(){we(pe,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function no(){!function(){var e=Ur(),t=to({url:e}),n=t.abortLoginPageJump,r=t.autoToLoginPage;n||r&&eo({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var n=e[t];r.addInterceptor(n,{invoke:function(e){var t=to({url:e.url}),r=t.abortLoginPageJump,o=t.autoToLoginPage;return r?e:o?(eo({api:n,redirect:Zr(e.url)}),!1):e}})},n=0;n<e.length;n++)t(n)}function ro(){this.onResponse((function(e){var t=e.type,n=e.content,r=!1;switch(t){case"cloudobject":r=function(e){if("object"!=(0,c.default)(e))return!1;var t=e||{},n=t.errCode;return n in Rr}(n);break;case"clientdb":r=function(e){if("object"!=(0,c.default)(e))return!1;var t=e||{},n=t.errCode;return n in Mr}(n)}r&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=me(pe);Oe().then((function(){var n=Ur();if(n&&Qr({redirect:n}))return t.length>0?we(pe,Object.assign({uniIdRedirectUrl:n},e)):void(Kr&&eo({api:"navigateTo",redirect:n}))}))}(n)}))}function oo(e){!function(e){e.onResponse=function(e){_e(de,e)},e.offResponse=function(e){be(de,e)}}(e),function(e){e.onNeedLogin=function(e){_e(pe,e)},e.offNeedLogin=function(e){be(pe,e)},qr&&(re("_globalUniCloudStatus").needLoginInit||(re("_globalUniCloudStatus").needLoginInit=!0,Oe().then((function(){no.call(e)})),Wr&&ro.call(e)))}(e),function(e){e.onRefreshToken=function(e){_e(he,e)},e.offRefreshToken=function(e){be(he,e)}}(e)}var io="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ao=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function so(){var e,t,n=Te().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(Hr(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}Hr="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!ao.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,o="",i=0;i<e.length;)t=io.indexOf(e.charAt(i++))<<18|io.indexOf(e.charAt(i++))<<12|(n=io.indexOf(e.charAt(i++)))<<6|(r=io.indexOf(e.charAt(i++))),o+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;var uo=C((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function s(e,t,r){var o=r.onChooseFile,i=r.onUploadProgress;return t.then((function(e){if(o){var t=o(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,o=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var i=t.tempFiles,a=i.length,s=0;return new Promise((function(n){for(;s<r;)u();function u(){var r=s++;if(r>=a)!i.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var c=i[r];e.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress:function(e){e.index=r,e.tempFile=c,e.tempFilePath=c.path,o&&o(e)}}).then((function(e){c.url=e.fileID,r<a&&u()})).catch((function(e){c.errMsg=e.errMsg||e.message,r<a&&u()}))}}}))}(e,t,5,i)}))}t.initChooseAndUploadFile=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?s(e,function(e){var t=e.count,n=e.sizeType,o=e.sourceType,s=void 0===o?["album","camera"]:o,u=e.extension;return new Promise((function(e,o){r.chooseImage({count:t,sizeType:n,sourceType:s,extension:u,success:function(t){e(a(t,"image"))},fail:function(e){o({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(t),t):"video"===t.type?s(e,function(e){var t=e.camera,n=e.compressed,o=e.maxDuration,s=e.sourceType,u=void 0===s?["album","camera"]:s,c=e.extension;return new Promise((function(e,s){r.chooseVideo({camera:t,compressed:n,maxDuration:o,sourceType:u,extension:c,success:function(t){var n=t.tempFilePath,r=t.duration,o=t.size,i=t.height,s=t.width;e(a({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:i,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(t),t):s(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,s){var u=r.chooseFile;if("undefined"!=typeof o&&"function"==typeof o.chooseMessageFile&&(u=o.chooseMessageFile),"function"!=typeof u)return s({errMsg:i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});u({type:"all",count:t,extension:n,success:function(t){e(a(t))},fail:function(e){s({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}(t),t)}}})),co=P(uo),lo="manual";function fo(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){t.push(e[n])})),t}),(function(t,n){if(e.loadtime!==lo){for(var r=!1,o=[],i=2;i<t.length;i++)t[i]!==n[i]&&(o.push(t[i]),r=!0);t[0]!==n[0]&&(e.mixinDatacomPage.current=e.pageCurrent),e.mixinDatacomPage.size=e.pageSize,e.onMixinDatacomPropsChange(r,o)}}))},methods:{onMixinDatacomPropsChange:function(e,t){},mixinDatacomEasyGet:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,r=void 0!==n&&n,o=t.success,i=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,i=n.data,a=n.count;e.getcount&&(e.mixinDatacomPage.count=a),e.mixinDatacomHasMore=i.length<e.pageSize;var s=r?i.length?i[0]:void 0:i;e.mixinDatacomResData=s,o&&o(s)})).catch((function(t){e.mixinDatacomLoading=!1,e.mixinDatacomErrorMessage=t,e.mixinDatacomError=t,i&&i(t)})))},mixinDatacomGet:function(){var t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r=r||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);var o=r.action||this.action;o&&(n=n.action(o));var i=r.collection||this.collection;n=Array.isArray(i)?(t=n).collection.apply(t,(0,l.default)(i)):n.collection(i);var a=r.where||this.where;a&&Object.keys(a).length&&(n=n.where(a));var s=r.field||this.field;s&&(n=n.field(s));var u=r.foreignKey||this.foreignKey;u&&(n=n.foreignKey(u));var c=r.groupby||this.groupby;c&&(n=n.groupBy(c));var f=r.groupField||this.groupField;f&&(n=n.groupField(f)),!0===(void 0!==r.distinct?r.distinct:this.distinct)&&(n=n.distinct());var d=r.orderby||this.orderby;d&&(n=n.orderBy(d));var p=void 0!==r.pageCurrent?r.pageCurrent:this.mixinDatacomPage.current,h=void 0!==r.pageSize?r.pageSize:this.mixinDatacomPage.size,v=void 0!==r.getcount?r.getcount:this.getcount,g=void 0!==r.gettree?r.gettree:this.gettree,y=void 0!==r.gettreepath?r.gettreepath:this.gettreepath,m={getCount:v},_={limitLevel:void 0!==r.limitlevel?r.limitlevel:this.limitlevel,startWith:void 0!==r.startwith?r.startwith:this.startwith};return g&&(m.getTree=_),y&&(m.getTreePath=_),n=n.skip(h*(p-1)).limit(h).get(m),n}}}}function po(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,c.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var o=n,i=o.customUI,s=o.loadingOptions,u=o.errorOptions,l=o.parseSystemError,d=!i;return new Proxy({},{get:function(o,i){switch(i){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,r=e.getCallbackArgs;return(0,f.default)(a.default.mark((function e(){var o,i,s,u,c,l,f=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(o=f.length,i=new Array(o),s=0;s<o;s++)i[s]=f[s];return u=r?r({params:i}):{},e.prev=2,e.next=5,ue(ce(n,"invoke"),O({},u));case 5:return e.next=7,t.apply(void 0,i);case 7:return c=e.sent,e.next=10,ue(ce(n,"success"),O(O({},u),{},{result:c}));case 10:return e.abrupt("return",c);case 13:return e.prev=13,e.t0=e["catch"](2),l=e.t0,e.next=18,ue(ce(n,"fail"),O(O({},u),{},{error:l}));case 18:throw l;case 19:return e.prev=19,e.next=22,ue(ce(n,"complete"),O(O({},u),{},l?{error:l}:{result:c}));case 22:return e.finish(19);case 23:case"end":return e.stop()}}),e,null,[[2,13,19,23]])})))}({fn:function(){var o=(0,f.default)(a.default.mark((function o(){var h,v,g,y,m,_,b,w,k,x,A,S,P,C,E,T=arguments;return a.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:for(d&&r.showLoading({title:s.title,mask:s.mask}),v=T.length,g=new Array(v),y=0;y<v;y++)g[y]=T[y];return m={name:t,type:R,data:{method:i,params:g}},"object"==(0,c.default)(n.secretMethods)&&function(e,t){var n=t.data.method,r=e.secretMethods||{},o=r[n]||r["*"];o&&(t.secretType=o)}(n,m),_=!1,o.prev=5,o.next=8,e.callFunction(m);case 8:h=o.sent,o.next=14;break;case 11:o.prev=11,o.t0=o["catch"](5),_=!0,h={result:new Se(o.t0)};case 14:if(b=h.result||{},w=b.errSubject,k=b.errCode,x=b.errMsg,A=b.newToken,d&&r.hideLoading(),A&&A.token&&A.tokenExpired&&(Ie(A),we(he,O({},A))),!k){o.next=39;break}if(S=x,!_||!l){o.next=24;break}return o.next=20,l({objectName:t,methodName:i,params:g,errSubject:w,errCode:k,errMsg:x});case 20:if(o.t1=o.sent.errMsg,o.t1){o.next=23;break}o.t1=x;case 23:S=o.t1;case 24:if(!d){o.next=37;break}if("toast"!==u.type){o.next=29;break}r.showToast({title:S,icon:"none"}),o.next=37;break;case 29:if("modal"===u.type){o.next=31;break}throw new Error("Invalid errorOptions.type: ".concat(u.type));case 31:return o.next=33,(0,f.default)(a.default.mark((function e(){var t,n,o,i,s,u,c=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.title,o=t.content,i=t.showCancel,s=t.cancelText,u=t.confirmText,e.abrupt("return",new Promise((function(e,t){r.showModal({title:n,content:o,showCancel:i,cancelText:s,confirmText:u,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:S,showCancel:u.retry,cancelText:"取消",confirmText:u.retry?"重试":"确定"});case 33:if(P=o.sent,C=P.confirm,!u.retry||!C){o.next=37;break}return o.abrupt("return",p.apply(void 0,g));case 37:throw E=new Se({subject:w,code:k,message:x,requestId:h.requestId}),E.detail=h.result,we(de,{type:ye,content:E}),E;case 39:return o.abrupt("return",(we(de,{type:ye,content:h.result}),h.result));case 40:case"end":return o.stop()}}),o,null,[[5,11]])})));function p(){return o.apply(this,arguments)}return p}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:i,params:n}}})}})}}function ho(e){return re("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}function vo(){return go.apply(this,arguments)}function go(){return go=(0,f.default)(a.default.mark((function e(){var t,n,o,i,s,u,c,l=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:{},n=t.openid,o=t.callLoginByWeixin,i=void 0!==o&&o,s=ho(this),"mp-weixin"===Y){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(Y,"`"));case 4:if(!n||!i){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){e.next=8;break}return e.abrupt("return",(s.mpWeixinOpenid=n,{}));case 8:return e.next=10,new Promise((function(e,t){r.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return u=e.sent,c=this.importObject("uni-id-co",{customUI:!0}),e.next=14,c.secureNetworkHandshakeByWeixin({code:u,callLoginByWeixin:i});case 14:return s.mpWeixinCode=u,e.abrupt("return",{code:u});case 16:case"end":return e.stop()}}),e,this)}))),go.apply(this,arguments)}function yo(e){return mo.apply(this,arguments)}function mo(){return mo=(0,f.default)(a.default.mark((function e(t){var n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=ho(this),e.abrupt("return",(n.initPromise||(n.initPromise=vo.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)}))),mo.apply(this,arguments)}function _o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openid,r=t.callLoginByWeixin,o=void 0!==r&&r;return yo.call(e,{openid:n,callLoginByWeixin:o})}}function bo(e){!function(e){Me=e}(e)}function wo(e){var t={getSystemInfo:r.getSystemInfo,getPushClientId:r.getPushClientId};return function(n){return new Promise((function(r,o){t[e](O(O({},n),{},{success:function(e){r(e)},fail:function(e){o(e)}}))}))}}var ko=function(e){(0,p.default)(n,e);var t=A(n);function n(){var e;return(0,y.default)(this,n),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,s.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,m.default)(n,[{key:"init",value:function(){var e=this;return Promise.all([wo("getSystemInfo")(),wo("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,u.default)(t,2),r=n[0];r=void 0===r?{}:r;var o=r.appId,i=n[1];i=void 0===i?{}:i;var a=i.cid;if(!o)throw new Error("Invalid appId, please check the manifest.json file");if(!a)throw new Error("Invalid push client id");e._appId=o,e._pushClientId=a,e._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),e.emit("open"),e._initMessageListener()}),(function(t){throw e.emit("error",t),e.close(),t}))}},{key:"open",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,n=t.action,r=t.messageId,o=t.message;this._payloadQueue.push({action:n,messageId:r,message:o}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,n=e.messageId,r=e.message;"end"===t?this._end({messageId:n,message:r}):"message"===t&&this._appendMessage({messageId:n,message:r})}},{key:"_appendMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("message",t)}},{key:"_end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("end",t),this.close()}},{key:"_initMessageListener",value:function(){r.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){r.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),n}(function(){function e(){(0,y.default)(this,e),this._callback={}}return(0,m.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var n=this._callback[e];if(n){var r=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(r,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(t)for(var i=0;i<t.length;i++)t[i].apply(t,r)}}]),e}());function xo(e){return Oo.apply(this,arguments)}function Oo(){return Oo=(0,f.default)(a.default.mark((function e(t){var n,r,o,i,s,u,c,l,f,d,p;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(J){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:if("app"===Y&&(n=je(),r=n.osName,o=n.osVersion,"ios"===r&&function(e){if(!e||"string"!=typeof e)return 0;var t=e.match(/^(\d+)./);return t&&t[1]?parseInt(t[1]):0}(o)>=14&&console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发期间需要,发行后不需要)")),i=t.__dev__,i.debugInfo){e.next=6;break}return e.abrupt("return");case 6:return s=i.debugInfo,u=s.address,c=s.servePort,e.next=11,Xt(u,c);case 11:if(l=e.sent,f=l.address,!f){e.next=15;break}return e.abrupt("return",(i.localAddress=f,void(i.localPort=c)));case 15:if(d=console["app"===Y?"error":"warn"],p="","remote"===i.debugInfo.initialLaunchType?(i.debugInfo.forceRemote=!0,p="当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。"):p="无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。",p+="\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs\n- 检查是否错误的使用拦截器修改uni.request方法的参数","web"===Y&&(p+="\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"),0===Y.indexOf("mp-")&&(p+="\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"),i.debugInfo.forceRemote){e.next=19;break}throw new Error(p);case 19:d(p);case 20:case"end":return e.stop()}}),e)}))),Oo.apply(this,arguments)}function Ao(e){e._initPromiseHub||(e._initPromiseHub=new z({createPromise:function(){var t,n=Promise.resolve();t=1,n=new Promise((function(e){setTimeout((function(){e()}),t)}));var r=e.auth();return n.then((function(){return r.getLoginState()})).then((function(e){return e?Promise.resolve():r.signInAnonymously()}))}}))}var So={tcb:Wt,tencent:Wt,aliyun:Ue,private:en,dcloud:en,alipay:fn},Po=new(function(){function e(){(0,y.default)(this,e)}return(0,m.default)(e,[{key:"init",value:function(e){var t={},n=So[e.provider];if(!n)throw new Error("未提供正确的provider参数");return t=n.init(e),J&&function(e){if(J){var t={};e.__dev__=t,t.debugLog=J&&("web"===Y&&navigator.userAgent.indexOf("HBuilderX")>0||"app"===Y);var n=Q;n&&!n.code&&(t.debugInfo=n);var r=new z({createPromise:function(){return xo(e)}});t.initLocalNetwork=function(){return r.exec()}}}(t),Ao(t),_r(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=Tr(Ir,{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=Tr(Ir,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=so,e.chooseAndUploadFile=co.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return fo(e)}}),e.SSEChannel=ko,e.initSecureNetworkByWeixin=_o(e),e.setCustomClientInfo=bo,e.importObject=po(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){var r=this,o=!1;if("callFunction"===t){var i=n&&n.type||M;o=i!==M}var a="callFunction"===t&&!o,s=this._initPromiseHub.exec();n=n||{};var u=Ae(n),c=u.success,l=u.fail,f=u.complete,d=s.then((function(){return o?Promise.resolve():ue(ce(t,"invoke"),n)})).then((function(){return e.call(r,n)})).then((function(e){return o?Promise.resolve(e):ue(ce(t,"success"),e).then((function(){return ue(ce(t,"complete"),e)})).then((function(){return a&&we(de,{type:ge,content:e}),Promise.resolve(e)}))}),(function(e){return o?Promise.reject(e):ue(ce(t,"fail"),e).then((function(){return ue(ce(t,"complete"),e)})).then((function(){return we(de,{type:ge,content:e}),Promise.reject(e)}))}));if(!(c||l||f))return d;d.then((function(e){c&&c(e),f&&f(e),a&&we(de,{type:ge,content:e})}),(function(e){l&&l(e),f&&f(e),a&&we(de,{type:ge,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=ee,t={};if(e&&1===e.length)t=e[0],Po=Po.init(t),Po._isDefault=!0;else{var n,r=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":te?"应用未关联服务空间,请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",r.forEach((function(e){Po[e]=function(){return console.error(n),Promise.reject(new Se({code:"SYS_ERR",message:n}))}}))}Object.assign(Po,{get mixinDatacom(){return fo(Po)}}),oo(Po),Po.addInterceptor=ae,Po.removeInterceptor=se,Po.interceptObject=le,J&&"web"===Y&&(window.uniCloud=Po)})();var Co=Po;t.default=Co}).call(this,n(3),n(2)["default"],n(1)["default"])},368:function(e,t){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},369:function(e,t,n){var r=n(16);function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},37:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(38)),i=r(n(33)),a=r(n(39)),s=r(n(40)),u=r(n(41)),c=r(n(42)),l=r(n(43)),f=r(n(44)),d=r(n(45)),p=r(n(46)),h=r(n(47)),v=r(n(48)),g=r(n(49));var y={updateCustomBar:i.default,color:a.default,message:s.default,uuid:u.default,array:c.default,test:l.default,$parent:f.default,string:d.default,number:p.default,deepClone:h.default,zIndex:v.default,colorInfo:g.default};e.$t=y;var m=function(e){e.mixin(o.default),e.prototype.$t=y},_={install:m};t.default=_}).call(this,n(2)["default"])},370:function(e,t,n){var r=n(13)["default"],o=n(368);function i(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},371: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},372:function(e,t,n){var r=n(371),o=n(16),i=n(373),a=n(15);function s(t){var n="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},373:function(e,t){function n(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"===typeof e}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},374:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={easycom:{"^tn-(.*)":"@/tuniao-ui/components/tn-$1/tn-$1.vue"},pages:[{path:"pages/index/index",style:{"mp-weixin":{disableScroll:!0},"app-plus":{bounce:"none"},"mp-alipay":{allowsBounceVertical:"NO"},"mp-baidu":{disableScroll:!0}}},{path:"pages/index/auth",style:{navigationBarTitleText:""}},{path:"pages/login/login",style:{navigationBarTitleText:"登录"}},{path:"pages/login/info",style:{navigationBarTitleText:"用户协议"}},{path:"pages/mine/need",style:{navigationBarTitleText:"我的需求"}},{path:"pages/mine/share",style:{navigationBarTitleText:"我的供应"}},{path:"pages/webview/web-view",style:{navigationBarTitleText:""}},{path:"pages/mine/coll",style:{navigationBarTitleText:"我的收藏"}},{path:"pages/comm/search",style:{navigationBarTitleText:"搜索"}},{path:"pages/mine/feedback",style:{navigationBarTitleText:"问题反馈",enablePullDownRefresh:!0}},{path:"pages/mine/addFeed",style:{navigationBarTitleText:"问题反馈"}},{path:"pages/mine/about",style:{navigationBarTitleText:"了解速立保"}},{path:"pages/comm/search2",style:{navigationBarTitleText:"搜索"}},{path:"pages/index/detail/detail",style:{navigationBarTitleText:"详情"}},{path:"pages/login/loginByCode",style:{navigationBarTitleText:"账号登录"}}],subPackages:[{root:"homePages",pages:[]},{root:"circlePages",pages:[{path:"circle",style:{navigationBarTitleText:"晒帖子",enablePullDownRefresh:!1}},{path:"addShare",style:{navigationBarTitleText:"发布供应"}}]},{root:"minePages",pages:[{path:"set",style:{navigationBarTitleText:"设置",enablePullDownRefresh:!1}}]}],globalStyle:{navigationStyle:"custom",navigationBarTextStyle:"black",navigationBarTitleText:"速立保",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"}};t.default=r},375:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={appid:"__UNI__1EF8770"};t.default=r},38:function(e,t,n){(function(t){e.exports={data:function(){return{}},onLoad:function(){this.$t.getRect=this._tGetRect},beforeDestory:function(){var e=this;if(this.parent&&t.$t.test.array(this.parent.children)){var n=this.parent.children;n.map((function(t,r){t===e&&n.splice(r,1)}))}},methods:{_tGetRect:function(e,n){var r=this;return new Promise((function(o){t.createSelectorQuery().in(r)[n?"selectAll":"select"](e).boundingClientRect((function(e){n&&Array.isArray(e)&&e.length&&o(e),!n&&e&&o(e)})).exec()}))},getParentData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent=!1),this.parent=this.$t.$parent.call(this,t),this.parent&&Object.keys(this.parentData).map((function(t){e.parentData[t]=e.parent[t]}))},preventEvent:function(e){e&&e.stopPropagation&&e.stopPropagation()}}}}).call(this,n(2)["default"])},383:function(e,t,n){"use strict";(function(e,n,r){Object.defineProperty(t,"__esModule",{value:!0}),t.chooseAndUploadFile=d,t.uploadCloudFiles=l;var o="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function a(t){var n=t.count,r=t.sizeType,o=void 0===r?["original","compressed"]:r,a=t.sourceType,s=t.extension;return new Promise((function(t,r){e.chooseMedia({count:n,sizeType:o,sourceType:a,mediaType:["image"],extension:s,success:function(e){e.tempFiles.forEach((function(e){e.path=e.tempFilePath})),t(c(e,"image"))},fail:function(e){r({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}function s(t){var n=t.count,r=(t.camera,t.compressed),o=t.maxDuration,a=t.sourceType,s=t.extension;return new Promise((function(t,u){e.chooseMedia({count:n,compressed:r,maxDuration:o,sourceType:a,extension:s,mediaType:["video"],success:function(e){var n=e.tempFiles;t(c({errMsg:"chooseVideo:ok",tempFiles:n.map((function(t){return{name:t.name||"",path:t.tempFilePath,thumbTempFilePath:t.thumbTempFilePath,size:t.size,type:e.tempFile&&e.tempFile.type||"",width:t.width,height:t.height,duration:t.duration,fileType:"video",cloudPath:""}}))},"video"))},fail:function(e){u({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}function u(t){var r=t.count,o=t.extension;return new Promise((function(t,a){var s=e.chooseFile;if("undefined"!==typeof n&&"function"===typeof n.chooseMessageFile&&(s=n.chooseMessageFile),"function"!==typeof s)return a({errMsg:i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});s({type:"all",count:r,extension:o,success:function(e){t(c(e))},fail:function(e){a({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}function c(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 l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=arguments.length>2?arguments[2]:void 0;e=JSON.parse(JSON.stringify(e));var o=e.length,i=0,a=this;return new Promise((function(s){while(i<t)u();function u(){var t=i++;if(t>=o)!e.find((function(e){return!e.url&&!e.errMsg}))&&s(e);else{var c=e[t],l=a.files.findIndex((function(e){return e.uuid===c.uuid}));c.url="",delete c.errMsg,r.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,onUploadProgress:function(e){e.index=l,n&&n(e)}}).then((function(e){c.url=e.fileID,c.index=l,t<o&&u()})).catch((function(e){c.errMsg=e.errMsg||e.message,c.index=l,t<o&&u()}))}}}))}function f(e,t){var n=t.onChooseFile;t.onUploadProgress;return e.then((function(e){if(n){var t=n(e);if("undefined"!==typeof t)return Promise.resolve(t).then((function(t){return"undefined"===typeof t?e:t}))}return e})).then((function(e){return!1===e?{errMsg:o,tempFilePaths:[],tempFiles:[]}:e}))}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===e.type?f(a(e),e):"video"===e.type?f(s(e),e):f(u(e),e)}}).call(this,n(2)["default"],n(1)["default"],n(367)["default"])},384:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.get_files_and_is_max=t.get_file_info=t.get_file_ext=t.get_file_data=t.get_extname=void 0;var o=r(n(58)),i=r(n(60)),a=function(e){var t=e.lastIndexOf("."),n=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,n)}};t.get_file_ext=a;var s=function(e){if(Array.isArray(e))return e;var t=e.replace(/(\[|\])/g,"");return t.split(",")};t.get_extname=s;var u=function(t,n){var r=[],o=[];return n&&0!==n.length?(t.tempFiles.forEach((function(e){var t=a(e.name),i=t.ext.toLowerCase();-1!==n.indexOf(i)&&(o.push(e),r.push(e.path))})),o.length!==t.tempFiles.length&&e.showToast({title:"当前选择了".concat(t.tempFiles.length,"个文件 ,").concat(t.tempFiles.length-o.length," 个文件格式不正确"),icon:"none",duration:5e3}),{filePaths:r,files:o}):{filePaths:r,files:o}};t.get_files_and_is_max=u;var c=function(t){return new Promise((function(n,r){e.getImageInfo({src:t,success:function(e){n(e)},fail:function(e){r(e)}})}))};t.get_file_info=c;var l=function(){var e=(0,i.default)(o.default.mark((function e(t){var n,r,i,s,u,l=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=l.length>1&&void 0!==l[1]?l[1]:"image",r=a(t.name),i=r.ext.toLowerCase(),s={name:t.name,uuid:t.uuid,extname:i||"",cloudPath:t.cloudPath,fileType:t.fileType,thumbTempFilePath:t.thumbTempFilePath,url:t.path||t.path,size:t.size,image:{},path:t.path,video:{}},"image"!==n){e.next=14;break}return e.next=7,c(t.path);case 7:u=e.sent,delete s.video,s.image.width=u.width,s.image.height=u.height,s.image.location=u.path,e.next=15;break;case 14:delete s.image;case 15:return e.abrupt("return",s);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.get_file_data=l}).call(this,n(2)["default"])},39:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["red","purplered","purple","bluepurple","aquablue","blue","indigo","cyan","teal","green","yellowgreen","lime","yellow","orangeyellow","orange","orangered","brown","grey","gray"],o=16;function i(){return r}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"bg",t=Math.floor(Math.random()*r.length),n=r[t];return"tn-"+e+"-"+n}function s(){var e=Math.random()*o+1;return"tn-cool-bg-color-"+Math.floor(e)}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&["tn-bg","tn-dynamic-bg","tn-main-gradient","tn-cool-bg"].some((function(t){return e.includes(t)}))?e:""}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&(!e.startsWith("tn-")||["#","rgb","rgba"].some((function(t){return e.includes(t)})))?e:""}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&["tn-color"].some((function(t){return e.includes(t)}))?e:""}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&(!e.startsWith("tn-")||["#","rgb","rgba"].some((function(t){return e.includes(t)})))?e:""}function d(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=p(e,!1),o=r[0],i=r[1],a=r[2],s=p(t,!1),u=s[0],c=s[1],l=s[2],f=(u-o)/n,d=(c-i)/n,v=(l-a)/n,g=[],y=0;y<n;y++){var m=h("rgb(".concat(Math.round(f*y+o),", ").concat(Math.round(d*y+i),", ").concat(Math.round(v*y+a),")"));g.push(m)}return g}function p(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;if(e=e.toLowerCase(),e&&n.test(e)){if(4===e.length){for(var r="#",o=1;o<4;o++)r+=e.slice(o,o+1).concat(e.slice(o,o+1));e=r}for(var i=[],a=1;a<7;a+=2)i.push(parseInt("0x"+e.slice(a,a+2)));return t?"rgb(".concat(i[0],", ").concat(i[1],", ").concat(i[2],")"):i}if(/^(rgb|RGB)/.test(e)){var s=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return s.map((function(e){return Number(e)}))}return e}function h(e){var t=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;if(/^(rgb|RGB)/.test(e)){for(var n=e.replace(/(?:\(|\)|rgb|GRB)*/g,"").split(","),r="#",o=0;o<n.length;o++){var i=Number(n[o]).toString(16);i=1===String(i).length?"0"+i:i,"0"===i&&(i+=i),r+=i}return 7!==r.length&&(r=e),r}if(!t.test(e))return e;var a=e.replace(/#/,"").split("");if(6===a.length)return e;if(3===a.length){for(var s="#",u=0;u<a.length;u++)s+=a[u]+a[u];return s}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3;e=h(e);var n=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;if(e=e.toLowerCase(),e&&n.test(e)){if(4===e.length){for(var r="#",o=1;o<4;o++)r+=e.slice(o,o+1).concat(e.slice(o,o+1));e=r}for(var i=[],a=1;a<7;a+=2)i.push(parseInt("0x"+e.slice(a,a+2)));return"rgba(".concat(i[0],", ").concat(i[1],", ").concat(i[2],", ").concat(t,")")}return e}var g={COOL_BG_COLOR_COUNT:o,getTuniaoColorList:i,getRandomColorClass:a,getRandomCoolBgClass:s,getBackgroundColorInternalClass:u,getBackgroundColorStyle:c,getFontColorInternalClass:l,getFontColorStyle:f,colorGradient:d,hexToRGB:p,rgbToHex:h,colorToRGBA:v};t.default=g},399:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(58)),i=r(n(369)),a=r(n(370)),s=r(n(371)),u=r(n(60)),c=r(n(23)),l=r(n(24)),f=r(n(13));function d(e){var t=p();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}function p(){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}}var h={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")},v={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=["label"];n.forEach((function(t){void 0===e[t]&&(e[t]="")}));var r=t;for(var o in e){var i=new RegExp("{"+o+"}");r=r.replace(i,e[o])}return r}function y(e,t){return void 0===e||null===e||("string"===typeof e&&!e||(!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length))}var m={integer:function(e){return m.number(e)&&parseInt(e,10)===e},string:function(e){return"string"===typeof e},number:function(e){return!isNaN(e)&&"number"===typeof e},boolean:function(e){return"boolean"===typeof e},float:function(e){return m.number(e)&&!m.integer(e)},array:function(e){return Array.isArray(e)},object:function(e){return"object"===(0,f.default)(e)&&!m.array(e)},date:function(e){return e instanceof Date},timestamp:function(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:function(e){return"string"===typeof e.url},email:function(e){return"string"===typeof e&&!!e.match(h.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(h.url)},pattern:function(e,t){try{return new RegExp(e).test(t)}catch(n){return!1}},method:function(e){return"function"===typeof e},idcard:function(e){return"string"===typeof e&&!!e.match(h.idcard)},"url-https":function(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":function(e){return e.startsWith("://")},"url-web":function(e){return!1}},_=function(){function e(t){(0,c.default)(this,e),this._message=t}return(0,l.default)(e,[{key:"validateRule",value:function(){var e=(0,u.default)(o.default.mark((function e(t,n,r,i,a){var s,u,c,l,f,d,p,h,v;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=null,u=n.rules,c=u.findIndex((function(e){return e.required})),!(c<0)){e.next=8;break}if(null!==r&&void 0!==r){e.next=6;break}return e.abrupt("return",s);case 6:if("string"!==typeof r||r.length){e.next=8;break}return e.abrupt("return",s);case 8:if(l=this._message,void 0!==u){e.next=11;break}return e.abrupt("return",l["default"]);case 11:f=0;case 12:if(!(f<u.length)){e.next=35;break}if(d=u[f],p=this._getValidateType(d),Object.assign(d,{label:n.label||'["'.concat(t,'"]')}),!b[p]){e.next=20;break}if(s=b[p](d,r,l),null==s){e.next=20;break}return e.abrupt("break",35);case 20:if(!d.validateExpr){e.next=26;break}if(h=Date.now(),v=d.validateExpr(r,a,h),!1!==v){e.next=26;break}return s=this._getMessage(d,d.errorMessage||this._message["default"]),e.abrupt("break",35);case 26:if(!d.validateFunction){e.next=32;break}return e.next=29,this.validateFunction(d,r,i,a,p);case 29:if(s=e.sent,null===s){e.next=32;break}return e.abrupt("break",35);case 32:f++,e.next=12;break;case 35:return null!==s&&(s=l.TAG+s),e.abrupt("return",s);case 37:case"end":return e.stop()}}),e,this)})));function t(t,n,r,o,i){return e.apply(this,arguments)}return t}()},{key:"validateFunction",value:function(){var e=(0,u.default)(o.default.mark((function e(t,n,r,i,a){var s,u,c;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=null,e.prev=1,u=null,e.next=5,t.validateFunction(t,n,i||r,(function(e){u=e}));case 5:c=e.sent,(u||"string"===typeof c&&c||!1===c)&&(s=this._getMessage(t,u||c,a)),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](1),s=this._getMessage(t,e.t0.message,a);case 12:return e.abrupt("return",s);case 13:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(t,n,r,o,i){return e.apply(this,arguments)}return t}()},{key:"_getMessage",value:function(e,t,n){return g(e,t||e.errorMessage||this._message[n]||t["default"])}},{key:"_getValidateType",value:function(e){var t="";return e.required?t="required":e.format?t="format":e.arrayType?t="arrayTypeFormat":e.range?t="range":void 0!==e.maximum||void 0!==e.minimum?t="rangeNumber":void 0!==e.maxLength||void 0!==e.minLength?t="rangeLength":e.pattern?t="pattern":e.validateFunction&&(t="validateFunction"),t}}]),e}(),b={required:function(e,t,n){return e.required&&y(t,e.format||(0,f.default)(t))?g(e,e.errorMessage||n.required):null},range:function(e,t,n){for(var r=e.range,o=e.errorMessage,i=new Array(r.length),a=0;a<r.length;a++){var s=r[a];m.object(s)&&void 0!==s.value?i[a]=s.value:i[a]=s}var u=!1;return Array.isArray(t)?u=new Set(t.concat(i)).size===i.length:i.indexOf(t)>-1&&(u=!0),u?null:g(e,o||n["enum"])},rangeNumber:function(e,t,n){if(!m.number(t))return g(e,e.errorMessage||n.pattern.mismatch);var r=e.minimum,o=e.maximum,i=e.exclusiveMinimum,a=e.exclusiveMaximum,s=i?t<=r:t<r,u=a?t>=o:t>o;return void 0!==r&&s?g(e,e.errorMessage||n["number"][i?"exclusiveMinimum":"minimum"]):void 0!==o&&u?g(e,e.errorMessage||n["number"][a?"exclusiveMaximum":"maximum"]):void 0!==r&&void 0!==o&&(s||u)?g(e,e.errorMessage||n["number"].range):null},rangeLength:function(e,t,n){if(!m.string(t)&&!m.array(t))return g(e,e.errorMessage||n.pattern.mismatch);var r=e.minLength,o=e.maxLength,i=t.length;return void 0!==r&&i<r?g(e,e.errorMessage||n["length"].minLength):void 0!==o&&i>o?g(e,e.errorMessage||n["length"].maxLength):void 0!==r&&void 0!==o&&(i<r||i>o)?g(e,e.errorMessage||n["length"].range):null},pattern:function(e,t,n){return m["pattern"](e.pattern,t)?null:g(e,e.errorMessage||n.pattern.mismatch)},format:function(e,t,n){var r=Object.keys(m),o=v[e.format]?v[e.format]:e.format||e.arrayType;return r.indexOf(o)>-1&&!m[o](t)?g(e,e.errorMessage||n.typeError):null},arrayTypeFormat:function(e,t,n){if(!Array.isArray(t))return g(e,e.errorMessage||n.typeError);for(var r=0;r<t.length;r++){var o=t[r],i=this.format(e,o,n);if(null!==i)return i}return null}},w=function(e){(0,i.default)(n,e);var t=d(n);function n(e,r){var o;return(0,c.default)(this,n),o=t.call(this,n.message),o._schema=e,o._options=r||null,o}return(0,l.default)(n,[{key:"updateSchema",value:function(e){this._schema=e}},{key:"validate",value:function(){var e=(0,u.default)(o.default.mark((function e(t,n){var r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this._checkFieldInSchema(t),r){e.next=5;break}return e.next=4,this.invokeValidate(t,!1,n);case 4:r=e.sent;case 5:return e.abrupt("return",r.length?r[0]:null);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"validateAll",value:function(){var e=(0,u.default)(o.default.mark((function e(t,n){var r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this._checkFieldInSchema(t),r){e.next=5;break}return e.next=4,this.invokeValidate(t,!0,n);case 4:r=e.sent;case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"validateUpdate",value:function(){var e=(0,u.default)(o.default.mark((function e(t,n){var r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this._checkFieldInSchema(t),r){e.next=5;break}return e.next=4,this.invokeValidateUpdate(t,!1,n);case 4:r=e.sent;case 5:return e.abrupt("return",r.length?r[0]:null);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"invokeValidate",value:function(){var e=(0,u.default)(o.default.mark((function e(t,n,r){var i,a,s,u,c;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=[],a=this._schema,e.t0=o.default.keys(a);case 3:if((e.t1=e.t0()).done){e.next=15;break}return s=e.t1.value,u=a[s],e.next=8,this.validateRule(s,u,t[s],t,r);case 8:if(c=e.sent,null==c){e.next=13;break}if(i.push({key:s,errorMessage:c}),n){e.next=13;break}return e.abrupt("break",15);case 13:e.next=3;break;case 15:return e.abrupt("return",i);case 16:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"invokeValidateUpdate",value:function(){var e=(0,u.default)(o.default.mark((function e(t,n,r){var i,a,s;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=[],e.t0=o.default.keys(t);case 2:if((e.t1=e.t0()).done){e.next=13;break}return a=e.t1.value,e.next=6,this.validateRule(a,this._schema[a],t[a],t,r);case 6:if(s=e.sent,null==s){e.next=11;break}if(i.push({key:a,errorMessage:s}),n){e.next=11;break}return e.abrupt("break",13);case 11:e.next=2;break;case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"_checkFieldInSchema",value:function(e){var t=Object.keys(e),r=Object.keys(this._schema);if(new Set(t.concat(r)).size===r.length)return"";var o=t.filter((function(e){return r.indexOf(e)<0})),i=g({field:JSON.stringify(o)},n.message.TAG+n.message["defaultInvalid"]);return[{key:"invalid",errorMessage:i}]}}]),n}(_);function k(){return{TAG:"",default:"验证错误",defaultInvalid:"提交的字段{field}在数据库中并不存在",validateFunction:"验证无效",required:"{label}必填",enum:"{label}超出范围",timestamp:"{label}格式无效",whitespace:"{label}不能为空",typeError:"{label}类型无效",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},length:{minLength:"{label}长度不能少于{minLength}",maxLength:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{minimum:"{label}不能小于{minimum}",maximum:"{label}不能大于{maximum}",exclusiveMinimum:"{label}不能小于等于{minimum}",exclusiveMaximum:"{label}不能大于等于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}}w.message=new k;var x=w;t.default=x},4:function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},40:function(e,t,n){"use strict";(function(e){function n(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1500;e.showToast({title:t,icon:o,mask:n,duration:i,success:function(){setTimeout((function(){r&&r()}),i)}})}function r(t){e.showLoading({title:t,mask:!0})}function o(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"确定",s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"取消";e.showModal({title:t,content:n,showCancel:o,cancelText:s,confirmText:a,success:function(e){e.cancel?i&&i():e.confirm&&r&&r()}})}function i(){e.hideToast()}function a(){e.hideLoading()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s={toast:n,loading:r,modal:o,closeToast:i,closeLoading:a};t.default=s}).call(this,n(2)["default"])},400:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.typeFilter=t.type=t.setDataValue=t.realName=t.rawData=t.objSet=t.objGet=t.name2arr=t.isRequiredField=t.isRealName=t.isNumber=t.isEqual=t.isBoolean=t.getValue=t.getDataValueType=t.getDataValue=t.deepCopy=void 0;var o=r(n(13)),i=function(e){return JSON.parse(JSON.stringify(e))};t.deepCopy=i;var a=function(e){return"int"===e||"double"===e||"number"===e||"timestamp"===e};t.typeFilter=a;var s=function(e,t,n){var r=n.find((function(e){return e.format&&a(e.format)})),o=n.find((function(e){return e.format&&"boolean"===e.format||"bool"===e.format}));return r&&(t=t||0===t?m(Number(t))?Number(t):t:null),o&&(t=!!_(t)&&t),t};t.getValue=s;var u=function(e,t,n){return t[e]=n,n||""};t.setDataValue=u;var c=function(e,t){return y(t,e)};t.getDataValue=c;var l=function(e,t){var n=c(e,t);return{type:w(n),value:n}};t.getDataValueType=l;var f=function(e){var t=g(e);if("object"===(0,o.default)(t)&&Array.isArray(t)&&t.length>1){var n=t.reduce((function(e,t){return e+"#".concat(t)}),"_formdata_");return n}return t[0]||e};t.realName=f;var d=function(e){var t=/^_formdata_#*/;return t.test(e)};t.isRealName=d;var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e)),n={};for(var r in t){var o=h(r);v(n,o,t[r])}return n};t.rawData=p;var h=function(e){var t=e.replace("_formdata_#","");return t=t.split("#").map((function(e){return m(e)?Number(e):e})),t};t.name2arr=h;var v=function(e,t,n){return"object"!==(0,o.default)(e)||g(t).reduce((function(e,t,r,o){return r===o.length-1?(e[t]=n,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(o[r+1])?[]:{}),e[t])}),e),e};function g(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}t.objSet=v;var y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"undefined",r=g(t),o=r.reduce((function(e,t){return(e||{})[t]}),e);return o&&void 0===o?n:o};t.objGet=y;var m=function(e){return!isNaN(Number(e))};t.isNumber=m;var _=function(e){return"boolean"===typeof e};t.isBoolean=_;var b=function(e){for(var t=!1,n=0;n<e.length;n++){var r=e[n];if(r.required){t=!0;break}}return t};t.isRequiredField=b;var w=function(e){var t={};return"Boolean Number String Function Array Date RegExp Object Error".split(" ").map((function(e,n){t["[object "+e+"]"]=e.toLowerCase()})),null==e?e+"":"object"===(0,o.default)(e)||"function"===typeof e?t[Object.prototype.toString.call(e)]||"object":(0,o.default)(e)};t.type=w;var k=function(e,t){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return e===t;var n=toString.call(e),r=toString.call(t);if(n!==r)return!1;switch(n){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}if("[object Object]"==n){var o=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(o.length!=i.length)return!1;for(var a=0;a<o.length;a++){var s=o[a];if(e[s]!==t[s])return!1}return!0}return"[object Array]"==n?e.toString()==t.toString():void 0};t.isEqual=k},41:function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(n=n||r.length,e)for(var i=0;i<e;i++)o[i]=r[0|Math.random()*n];else{var a;o[8]=o[13]=o[18]=o[23]="-",o[14]="4";for(var s=0;s<36;s++)o[s]||(a=0|16*Math.random(),o[s]=r[19==s?3&a|8:a])}return t?(o.shift(),"t"+o.join("")):o.join("")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r;t.default=o},42:function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(){return Math.random()-.5}))}function o(e){return"[object Array]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={random:r,isArray:o};t.default=i},43:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(13));function i(e){return/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/.test(e)}function a(e){return/^1[3-9]\d{9}$/.test(e)}function s(e){return/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(e)}function u(e){return!/Invalid|NaN/.test(new Date(e).toString())}function c(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)}function l(e){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(e)}function f(e){return/^\d+$/.test(e)}function d(e){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e)}function p(e){var t=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,n=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return 7===e.length?n.test(e):8===e.length&&t.test(e)}function h(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)}function v(e){var t=/^[\u4e00-\u9fa5]+$/gi;return t.test(e)}function g(e){return/^[a-zA-Z]*$/.test(e)}function y(e){var t=/^[0-9a-zA-Z]*$/g;return t.test(e)}function m(e,t){return e.indexOf(t)>=0}function _(e,t){return e>=t[0]&&e<=t[1]}function b(e,t){return e.length>=t[0]&&e.length<=t[1]}function w(e){var t=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return t.test(e)}function k(e){switch((0,o.default)(e)){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}function x(e){if("string"==typeof e)try{var t=JSON.parse(e);return!("object"!=(0,o.default)(t)||!t)}catch(n){return!1}return!1}function O(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"[object Object]"===Object.prototype.toString.call(e)}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(t,"}$")).test(e)}var P={email:i,mobile:a,url:s,date:u,dateISO:c,number:l,digits:f,idCard:d,carNo:p,amount:h,chinese:v,letter:g,enOrNum:y,contains:m,range:_,rangeLength:b,empty:k,isEmpty:k,jsonString:x,landline:w,object:A,array:O,code:S};t.default=P},44:function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this.$parent;while(t){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},45:function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return"both"===t?e.replace(/^\s+|\s+$/g,""):"left"===t?e.replace(/^\s*/g,""):"right"===t?e.replace(/(\s*$)/g,""):"all"===t?e.replace(/\s+/g,""):e}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rpx";return e?/(%|px|rpx|auto)$/.test(e)?e:e+t:""}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e&&t?e.replace(/([A-Z])/g,"".concat(t,"$1")).toLowerCase():""}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";if(!e||!t)return"";var n=RegExp(t+"(\\w)","g");return e.replace(n,(function(e,t){return t.toUpperCase()}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s={trim:r,getLengthUnitValue:o,humpConvertChar:i,charConvertHump:a};t.default=s},46:function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=0;if("string"===typeof e?n=Number(e):"number"===typeof e&&(n=e),isNaN(n)||0===n)return 0;var r=Math.pow(10,t)-1;return n>r?"".concat(r,"+"):n}function o(e){var t=0;return"string"===typeof e?t=Number(e):"number"===typeof e&&(t=e),isNaN(t)||+t<10?"0"+t:String(t)}function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e4,symbol:"W"}],o=/\.0+$|(\.[0=9]*[1-9])0+$/,i=0;for("string"===typeof e?i=Number(e):"number"===typeof e&&(i=e),t=r.length-1;t>0;t--)if(i>=r[t].value)break;return(i/r[t].value).toFixed(n).replace(o,"$1")+r[t].symbol}function a(e,t){if(e>=0&&t>0&&t>=e){var n=t-e;return Math.random()*n+e}return 0}function s(e,t){if(e>=0&&t>0&&t>=e){var n=t-e+1;return Math.floor(Math.random()*n+e)}return 0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u={formatNumberString:r,formatNumberAddZero:o,formatNumberAddPriceUnit:i,random:a,randomInt:s};t.default=u},47:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(13));function i(e){return"[object Array]"===Object.prototype.toString.call(e)}function a(e){if([null,void 0,NaN,!1].includes(e))return e;if("object"!==(0,o.default)(e)&&"function"!==typeof e)return e;var t=i(e)?[]:{};for(var n in e)e.hasOwnProperty(n)&&(t[n]="object"===(0,o.default)(e[n])?a(e[n]):e[n]);return t}var s=a;t.default=s},478:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fontData=void 0;var r=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}];t.fontData=r},48:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={landsacpe:29100,navbar:29090,toast:20090,goodsNav:20089,alert:20085,modal:20080,popup:20075,tips:19080,sticky:19075,indexListSticky:19070,fab:19060,mask:9999,tableTr:1001,tableTd:1e3};t.default=r},49:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={mainColor:"#01BEFF",reverseMainColor:"#FFF00D",femaleColor:"#FF71D2",maleColor:"#82B2FF",mainOrange:"#FBBD12",bgColor:"#FFFFFF",spaceColor:"#F8F7F8",fontColor:"#080808",fontSubColor:"#AAAAAA",contentColor:"#838383",fontHolderColor:"#E6E6E6",maskBgColor:"rgba(0, 0, 0, 0.4)"};t.default=r},5:function(e,t,n){var r=n(6),o=n(7),i=n(8),a=n(10);function s(e,t){return r(e)||o(e,t)||i(e,t)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},50:function(e,t,n){"use strict";var r=n(4),o=r(n(11)),i=n(31),a=r(n(30));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=[];try{c=a.default.state?Object.keys(a.default.state):[]}catch(l){}e.exports={beforeCreate:function(){var e=this;this.$t.vuex=function(t,n){e.$store.commit("$tStore",{name:t,value:n})}},computed:u({},(0,i.mapState)(c))}},507:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=p;var o=r(n(11)),i=r(n(23)),a=r(n(24));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(){function t(n,r){(0,i.default)(this,t),this.options=n,this.animation=e.createAnimation(u({},n)),this.currentStepAnimates={},this.next=0,this.$=r}return(0,a.default)(t,[{key:"_nvuePushAnimates",value:function(e,t){var n=this.currentStepAnimates[this.next],r={};if(r=n||{styles:{},config:{}},l.includes(e)){r.styles.transform||(r.styles.transform="");var o="";"rotate"===e&&(o="deg"),r.styles.transform+="".concat(e,"(").concat(t+o,") ")}else r.styles[e]="".concat(t);this.currentStepAnimates[this.next]=r}},{key:"_animateRun",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.$.$refs["ani"].ref;if(n)return new Promise((function(r,o){nvueAnimation.transition(n,u({styles:e},t),(function(e){r()}))}))}},{key:"_nvueNextAnimate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,o=e[n];if(o){var i=o.styles,a=o.config;this._animateRun(i,a).then((function(){n+=1,t._nvueNextAnimate(e,n,r)}))}else this.currentStepAnimates={},"function"===typeof r&&r(),this.isEnd=!0}},{key:"step",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(e),this}},{key:"run",value:function(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof e&&e()}),this.$.durationTime)}}]),t}(),l=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],f=["opacity","backgroundColor"],d=["width","height","left","right","top","bottom"];function p(e,t){if(t)return clearTimeout(t.timer),new c(e,t)}l.concat(f,d).forEach((function(e){c.prototype[e]=function(){var t;return(t=this.animation)[e].apply(t,arguments),this}}))}).call(this,n(2)["default"])},51:function(e,t,n){(function(t){e.exports={onLoad:function(){this.$t.mpShare={title:"",path:"",imageUrl:"",share:!0},this.$t.mpShare.share||t.hideShareMenu()},onShareAppMessage:function(){return this.$t.mpShare},onShareTimeline:function(){return{title:this.$t.mpShare.title,query:this.$t.mpShare.path.substring(this.$t.mpShare.path.indexOf("?")+1,this.$t.mpShare.path.length),imageUrl:this.$t.mpShare.imageUrl}}}}).call(this,n(2)["default"])},527:function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(528)),i=r(n(529)),a=r(n(530)),s={en:o.default,"zh-Hans":i.default,"zh-Hant":a.default};t.default=s},528:function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"}')},529:function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"}')},530:function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}')},58:function(e,t,n){var r=n(59)();e.exports=r},59:function(e,t,n){var r=n(13)["default"];function o(){"use strict";
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),a=new $(r||[]);return s(i,"_invoke",{value:E(e,n,a)}),i}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 v="suspendedStart",g="suspendedYield",y="executing",m="completed",_={};function b(){}function w(){}function k(){}var x={};d(x,c,(function(){return this}));var O=Object.getPrototypeOf,A=O&&O(O(M([])));A&&A!==i&&a.call(A,c)&&(x=A);var S=k.prototype=b.prototype=Object.create(x);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,s,u){var c=h(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var o;s(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var o=v;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=T(s,r);if(u){if(u===_)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var c=h(e,n,r);if("normal"===c.type){if(o=r.done?m:g,c.arg===_)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,_;var a=i.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 I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function $(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function M(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return w.prototype=k,s(S,"constructor",{value:k,configurable:!0}),s(k,"constructor",{value:w,configurable:!0}),w.displayName=d(k,f,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,d(e,f,"GeneratorFunction")),e.prototype=Object.create(S),e},n.awrap=function(e){return{__await:e}},P(C.prototype),d(C.prototype,l,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new C(p(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(S),d(S,f,"Generator"),d(S,c,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=M,$.prototype={constructor:$,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(j),!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 r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,_):this.complete(i)},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),j(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),_}},n}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},6:function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},60:function(e,t){function n(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,u,"next",e)}function u(e){n(a,o,i,s,u,"throw",e)}s(void 0)}))}}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},61:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(11)),i=r(n(62)),a=r(n(30)),s=r(n(64)),u=n(69),c=n(70);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d,p={login:!0,auth:!1,cancel:!1,loading:!0,warn:!0},h=i.default.create({baseURL:c.VUE_APP_URL,timeout:1e5,debug:!0});function v(e,t){if(e&&e.length>0){var n=e.indexOf(t+"=");if(-1!=n){n=n+t.length+1;var r=e.indexOf(";",n);return-1==r&&(r=e.length),unescape(e.substring(n,r))}}return""}function g(t,n){var r=n.login,o=(n.auth,n.cancel,n.loading),i=void 0===o||o,s=n.warn;return n.cancel&&y(),m(i,!0),r&&!a.default.state.token&&m(i,!1),h.request(t).then((function(n){if("/slbMpAutoLogin"===t.url||"/slbSmLogin"===t.url)try{var r=n.header["set-cookie"]||n.header["Set-Cookie"],o=n.data.resultMap&&n.data.resultMap.frontlixiangsid||"",c=v(r,"frontlixiangsid")||o;"deleteMe"==c&&o&&(c=o),c&&"deleteMe"!=c&&(a.default.state.token=c)}catch(f){console.log(f)}if(m(i,!1),n.statusCode){var l=n.data;return console.log("instance.request",n),console.log("instance.request data",l),200===n.statusCode?(console.log("instance.request data 1",l),1==l.state?Promise.resolve(l):l.msg&&("请勿频繁操作"==l.msg||l.msg.indexOf("不能再次使用")>-1)?void(0,u.uniShowToast)(l.msg):l._redirect||"未登录"==l.msg?(e.removeStorageSync("userNo"),Promise.resolve(l)):-1==l.state?Promise.resolve(l):""==l||"success"==l||l._redirect?(console.log("instance.request data 2",l),a.default.state.isGOAuth?void console.log("路由已存在,不再重复跳转"):(a.default.commit("SET_GO_AUTH",!0),a.default.state.isFirstLoad?(a.default.state.isFirstLoad=!1,void e.redirectTo({url:"/pages/Login/Login"})):(a.default.state.isFirstLoad=!1,void(0,u.uniShowModal)("","账号过期重新登录认证",{showCancel:!1,success:function(t){e.redirectTo({url:"/pages/auth/auth"})}})))):(console.log("instance.request data 3",l),void 0==l.msg?void(e.getStorageSync("loginFlag")&&e.redirectTo({url:"/pages/Login/Login"})):s?void e.redirectTo({url:"/pages/error/error?code="+l.state+"&msg="+l.msg}):Promise.resolve(l))):(s&&_({code:n.statusCode}),Promise.reject(n.data))}return Promise.reject(n.data)})).catch((function(e){return m(i,!1),(0,u.uniShowToast)(e),Promise.reject(e)}))}function y(){"function"===typeof d&&d("取消请求"),m(loading,!1)}h.interceptors.request.use((function(e){var t=a.default.state.token;e.header["frontlixiangsid"]=t,e.header["platType"]="slb",e.header["mpType"]="engineer",e.header["appType"]="ma",e.cancelToken=new i.default.CancelToken((function(e){d=e})),e.timeStamp=(new Date).getTime();var n="";return n=(0,s.default)(JSON.stringify(e)),console.log("jsToken"+n),console.log(e),e.data["tokenId"]=n,e})),h.interceptors.response.use((function(e){return e}));var m=function(e,t){},_=function(e){var t=e.code,n="";switch(t){case 400:n="请求参数错误";break;case 401:n="未授权,请重新登录-401";break;case 403:n="没有访问权限-403";break;case 404:n="请求错误,未找到该资源-404";break;case 405:n="请求方式错误-405";break;case 408:n="请求超时";break;case 500:n="服务器异常-500";break;case 501:n="服务未实现";break;case 502:n="网关错误";break;case 503:n="服务不可用";break;case 504:n="网关超时";break;case 505:n="HTTP版本不受支持";break;default:n="请求异常-"+t;break}(0,u.uniShowModal)("",n,{showCancel:!1,success:function(e){console.log(e)}})},b=["get","post","put","delete","connect","head","options","trace"].reduce((function(e,t){return e[t]=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return g({url:e,method:t,data:n},f(f({},p),r))},e}),{}),w=b;t.default=w}).call(this,n(2)["default"])},62:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(58)),i=r(n(60)),a=r(n(23)),s=r(n(24)),u=r(n(11)),c=n(63);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,u.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(){function t(e){var n=this;(0,a.default)(this,t),(0,u.default)(this,"interceptors",{request:{interceptors:[],use:function(e){this.interceptors.push(e)},intercept:function(e){var t=this;return(0,i.default)(o.default.mark((function n(){var r;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=0;case 1:if(!(r<t.interceptors.length)){n.next=8;break}return n.next=4,t.interceptors[r](e);case 4:e=n.sent;case 5:r++,n.next=1;break;case 8:return n.abrupt("return",e);case 9:case"end":return n.stop()}}),n)})))()}},response:{interceptors:[],use:function(e){this.interceptors.push(e)},intercept:function(e,t){var n=this;return(0,i.default)(o.default.mark((function r(){var i;return o.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:i=0;case 1:if(!(i<n.interceptors.length)){r.next=8;break}return r.next=4,n.interceptors[i](t);case 4:t=r.sent;case 5:i++,r.next=1;break;case 8:return r.abrupt("return",e(t));case 9:case"end":return r.stop()}}),r)})))()}}}),(0,u.default)(this,"abort",(function(){n.aborted=!0,n.requestTask&&n.requestTask.abort()})),(0,u.default)(this,"onerror",(0,i.default)(o.default.mark((function e(){var t,r,i=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:f({},args),r={url:t.url,method:t.method,mes:t.str},t.cancel&&(r.mes=t.cancel.message||"取消请求"),n.defaults.debug&&console.log(r.mes,t),e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})))),this.defaults=f({headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},debug:!1},e)||{},this.timer=null,this.requestTask=null,this.aborted=!1,this.timeoutCancel=!1,this.Cancel=c.Cancel,this.CancelToken=c.CancelToken,this.isCancel=c.isCancel}return(0,s.default)(t,[{key:"request",value:function(t){var n=this,r=t.method,a=t.url,s=t.data,u=(t.cancelToken,{url:this.defaults.baseURL+a,method:r.toUpperCase()||"GET",header:this.defaults.headers||{},data:s||{}});return new Proxy(new Promise((function(t,r){n.interceptors.request.intercept(u).then(function(){var a=(0,i.default)(o.default.mark((function a(s){var c;return o.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!n.aborted){a.next=5;break}return c="主动中断请求",a.next=4,n.onerror({config:u,str:c});case 4:return a.abrupt("return",r(c));case 5:u.cancelToken&&u.cancelToken.promise.then(function(){var e=(0,i.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return clearTimeout(n.timer),n.requestTask=null,e.next=4,n.onerror({config:u,cancel:t});case 4:return e.abrupt("return",r(t));case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()),n.requestTask=e.request(f(f({},u),{},{success:function(){var e=(0,i.default)(o.default.mark((function e(r){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:clearTimeout(n.timer),n.interceptors.response.intercept(t,r);case 2:case"end":return e.stop()}}),e)})));function r(t){return e.apply(this,arguments)}return r}(),fail:function(){var e=(0,i.default)(o.default.mark((function e(t){var a;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:console.log(t),clearTimeout(n.timer),a=setTimeout((0,i.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t="网络异常或URL无效",n.timeoutCancel){e.next=6;break}return e.next=4,n.onerror({config:u,str:t});case 4:clearTimeout(a),r(t);case 6:case"end":return e.stop()}}),e)}))),300);case 3:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()})),n.timer=setTimeout((0,i.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!u.cancelToken){e.next=2;break}return e.abrupt("return");case 2:return n.requestTask.abort(),n.timeoutCancel=!0,t="网络请求时间超时,当前设置响应时间为".concat(n.defaults.timeout),e.next=7,n.onerror({config:u,str:t});case 7:r(t);case 8:case"end":return e.stop()}}),e)}))),n.defaults.timeout||12345);case 8:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}())})),{get:function(e,t,r){return"abort"===t?n.abort:Reflect.get(e,t,r).bind(e)},set:function(e,t,n,r){return Reflect.set(e,t,n,r)}})}}]),t}(),p=new d;p.create=function(e){return new d(e)};var h=p;t.default=h}).call(this,n(2)["default"])},63:function(e,t,n){"use strict";function r(e){this.message=e,console.log("1 cancel")}function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}function i(e){return console.log("8 isCancel"),!(!e||!e.__CANCEL__)}Object.defineProperty(t,"__esModule",{value:!0}),t.Cancel=r,t.CancelToken=o,t.isCancel=i,r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;console.log("7 CancelToken");var t=new o((function(t){e=t}));return{token:t,cancel:e}}},64:function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(13);
- /**
- * [js-md5]{@link https://github.com/emn178/js-md5}
- *
- * @namespace md5
- * @version 0.7.3
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
- * @copyright Chen, Yi-Cyuan 2014-2017
- * @license MIT
- */
- (function(){"use strict";var ERROR="input is invalid type",WINDOW="object"===("undefined"===typeof window?"undefined":_typeof(window)),root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===("undefined"===typeof self?"undefined":_typeof(self)),NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"===("undefined"===typeof process?"undefined":_typeof(process))&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"===_typeof(module)&&module.exports,AMD=__webpack_require__(68),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===_typeof(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(t){return new Md5(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var n=OUTPUT_TYPES[t];e[n]=createOutputMethod(n)}return e},nodeWrap=function nodeWrap(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"===typeof e)return crypto.createHash("md5").update(e,"utf8").digest("hex");if(null===e||void 0===e)throw ERROR;return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash("md5").update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod};function Md5(e){if(e)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(e){if(!this.finalized){var t,n=_typeof(e);if("string"!==n){if("object"!==n)throw ERROR;if(null===e)throw ERROR;if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw ERROR;t=!0}var r,o,i=0,a=e.length,s=this.blocks,u=this.buffer8;while(i<a){if(this.hashed&&(this.hashed=!1,s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),t)if(ARRAY_BUFFER)for(o=this.start;i<a&&o<64;++i)u[o++]=e[i];else for(o=this.start;i<a&&o<64;++i)s[o>>2]|=e[i]<<SHIFT[3&o++];else if(ARRAY_BUFFER)for(o=this.start;i<a&&o<64;++i)r=e.charCodeAt(i),r<128?u[o++]=r:r<2048?(u[o++]=192|r>>6,u[o++]=128|63&r):r<55296||r>=57344?(u[o++]=224|r>>12,u[o++]=128|r>>6&63,u[o++]=128|63&r):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++i)),u[o++]=240|r>>18,u[o++]=128|r>>12&63,u[o++]=128|r>>6&63,u[o++]=128|63&r);else for(o=this.start;i<a&&o<64;++i)r=e.charCodeAt(i),r<128?s[o>>2]|=r<<SHIFT[3&o++]:r<2048?(s[o>>2]|=(192|r>>6)<<SHIFT[3&o++],s[o>>2]|=(128|63&r)<<SHIFT[3&o++]):r<55296||r>=57344?(s[o>>2]|=(224|r>>12)<<SHIFT[3&o++],s[o>>2]|=(128|r>>6&63)<<SHIFT[3&o++],s[o>>2]|=(128|63&r)<<SHIFT[3&o++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++i)),s[o>>2]|=(240|r>>18)<<SHIFT[3&o++],s[o>>2]|=(128|r>>12&63)<<SHIFT[3&o++],s[o>>2]|=(128|r>>6&63)<<SHIFT[3&o++],s[o>>2]|=(128|63&r)<<SHIFT[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=EXTRA[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,t,n,r,o,i,a=this.blocks;this.first?(e=a[0]-680876937,e=(e<<7|e>>>25)-271733879<<0,r=(-1732584194^2004318071&e)+a[1]-117830708,r=(r<<12|r>>>20)+e<<0,n=(-271733879^r&(-271733879^e))+a[2]-1126478375,n=(n<<17|n>>>15)+r<<0,t=(e^n&(r^e))+a[3]-1316259209,t=(t<<22|t>>>10)+n<<0):(e=this.h0,t=this.h1,n=this.h2,r=this.h3,e+=(r^t&(n^r))+a[0]-680876936,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+a[1]-389564586,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+a[2]+606105819,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+a[3]-1044525330,t=(t<<22|t>>>10)+n<<0),e+=(r^t&(n^r))+a[4]-176418897,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+a[5]+1200080426,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+a[6]-1473231341,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+a[7]-45705983,t=(t<<22|t>>>10)+n<<0,e+=(r^t&(n^r))+a[8]+1770035416,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+a[9]-1958414417,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+a[10]-42063,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+a[11]-1990404162,t=(t<<22|t>>>10)+n<<0,e+=(r^t&(n^r))+a[12]+1804603682,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+a[13]-40341101,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+a[14]-1502002290,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+a[15]+1236535329,t=(t<<22|t>>>10)+n<<0,e+=(n^r&(t^n))+a[1]-165796510,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+a[6]-1069501632,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+a[11]+643717713,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+a[0]-373897302,t=(t<<20|t>>>12)+n<<0,e+=(n^r&(t^n))+a[5]-701558691,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+a[10]+38016083,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+a[15]-660478335,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+a[4]-405537848,t=(t<<20|t>>>12)+n<<0,e+=(n^r&(t^n))+a[9]+568446438,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+a[14]-1019803690,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+a[3]-187363961,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+a[8]+1163531501,t=(t<<20|t>>>12)+n<<0,e+=(n^r&(t^n))+a[13]-1444681467,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+a[2]-51403784,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+a[7]+1735328473,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+a[12]-1926607734,t=(t<<20|t>>>12)+n<<0,o=t^n,e+=(o^r)+a[5]-378558,e=(e<<4|e>>>28)+t<<0,r+=(o^e)+a[8]-2022574463,r=(r<<11|r>>>21)+e<<0,i=r^e,n+=(i^t)+a[11]+1839030562,n=(n<<16|n>>>16)+r<<0,t+=(i^n)+a[14]-35309556,t=(t<<23|t>>>9)+n<<0,o=t^n,e+=(o^r)+a[1]-1530992060,e=(e<<4|e>>>28)+t<<0,r+=(o^e)+a[4]+1272893353,r=(r<<11|r>>>21)+e<<0,i=r^e,n+=(i^t)+a[7]-155497632,n=(n<<16|n>>>16)+r<<0,t+=(i^n)+a[10]-1094730640,t=(t<<23|t>>>9)+n<<0,o=t^n,e+=(o^r)+a[13]+681279174,e=(e<<4|e>>>28)+t<<0,r+=(o^e)+a[0]-358537222,r=(r<<11|r>>>21)+e<<0,i=r^e,n+=(i^t)+a[3]-722521979,n=(n<<16|n>>>16)+r<<0,t+=(i^n)+a[6]+76029189,t=(t<<23|t>>>9)+n<<0,o=t^n,e+=(o^r)+a[9]-640364487,e=(e<<4|e>>>28)+t<<0,r+=(o^e)+a[12]-421815835,r=(r<<11|r>>>21)+e<<0,i=r^e,n+=(i^t)+a[15]+530742520,n=(n<<16|n>>>16)+r<<0,t+=(i^n)+a[2]-995338651,t=(t<<23|t>>>9)+n<<0,e+=(n^(t|~r))+a[0]-198630844,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+a[7]+1126891415,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+a[14]-1416354905,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+a[5]-57434055,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~r))+a[12]+1700485571,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+a[3]-1894986606,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+a[10]-1051523,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+a[1]-2054922799,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~r))+a[8]+1873313359,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+a[15]-30611744,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+a[6]-1560198380,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+a[13]+1309151649,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~r))+a[4]-145523070,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+a[11]-1120210379,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+a[2]+718787259,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+a[9]-343485551,t=(t<<21|t>>>11)+n<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=n-1732584194<<0,this.h3=r+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,n,r="",o=this.array(),i=0;i<15;)e=o[i++],t=o[i++],n=o[i++],r+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|n>>>6)]+BASE64_ENCODE_CHAR[63&n];return e=o[i],r+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"==",r};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__(65),__webpack_require__(3),__webpack_require__(67)(module))},65:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n(66)),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},66:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(o(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===i(e,-1);return e=n(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u<a;u++)if(o[u]!==i[u]){s=u;break}var c=[];for(u=s;u<o.length;u++)c.push("..");return c=c.concat(i.slice(s)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(t=e.charCodeAt(i),47===t){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(65))},67:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},68:function(e,t){(function(t){e.exports=t}).call(this,{})},69:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.loadingToast=f,t.successToast=l,t.uniGetImageInfo=g,t.uniHideLoading=c,t.uniHideToast=u,t.uniNavigateBackMiniProgram=b,t.uniNavigateToMiniProgram=_,t.uniNavigator=p,t.uniSelectorQueryInfo=y,t.uniSetNavigationBarColor=m,t.uniShowModal=d,t.uniShowToast=s,t.uniStartPullDownRefresh=h,t.uniStopPullDownRefresh=v;var o=r(n(11));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"提示语",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.image,i=void 0===o?"":o,s=r.mask,u=void 0!==s&&s,c=r.duration,l=void 0===c?1500:c,f=(r.position,r.success),d=r.fail,p=r.complete,h={title:t,icon:n,duration:l};i&&(h["image"]=i),u&&(h["mask"]=u),e.showToast(a(a({},h),w(h,{success:f,fail:d,complete:p})))}function u(){e.hideToast()}function c(){e.hideLoading()}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"成功",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(e,"success",t)}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"加载中",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.mask,o=void 0===r||r,i=n.success,s=n.fail,u=n.complete,c={title:t};o&&(c["mask"]=o),e.showLoading(a(a({},c),{},{mask:!0},w(c,{success:i,fail:s,complete:u})))}function d(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.showCancel,i=void 0===o||o,s=r.cancelText,u=void 0===s?"取消":s,c=r.cancelColor,l=r.confirmText,f=void 0===l?"确定":l,d=r.confirmColor,p=r.success,h=r.fail,v=r.complete,g={title:t,content:n,showCancel:i,cancelText:u,confirmText:f};c&&(g["cancelColor"]=c),d&&(g["confirmColor"]=d),e.showModal(a(a({},g),w(g,{success:p,fail:h,complete:v})))}function p(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"navigateTo",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=Number(t)?"navigateBack":n||"navigateTo";var o=r.endtime,i=void 0===o?Number(t)?600:200:o,a=(r.animationType,r.animationDuration,r.success),s=r.fail,u=r.complete,c={url:t};switch(c=w(c,{success:a,fail:s,complete:u}),console.log(c),n){case"navigateTo":setTimeout((function(){e.navigateTo(c)}),i);break;case"redirectTo":setTimeout((function(){e.redirectTo(c)}),i);break;case"reLaunch":setTimeout((function(){e.reLaunch(c)}),i);break;case"switchTab":setTimeout((function(){e.switchTab(c)}),i);break;case"navigateBack":setTimeout((function(){var n=getCurrentPages();n.length>1?e.navigateBack({delta:Number(t)}):e.switchTab({url:"/pages/index/index"})}),i);break}}function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.startPullDownRefresh(t)}function v(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;setTimeout((function(){e.stopPullDownRefresh()}),t)}function g(t){return new Promise((function(n,r){e.getImageInfo({src:t,success:function(e){console.log(e),n(e)},fail:function(e){console.log(e),r(e)}})}))}function y(t,n){return new Promise((function(r,o){var i=e.createSelectorQuery().in(n);i.select(t).boundingClientRect((function(e){r(e)})).exec()}))}function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#e93323",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#ffffff";e.setNavigationBarColor({frontColor:n,backgroundColor:t,animation:{duration:400,timingFunc:"easeIn"}})}function _(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.path,o=n.extraData,i=void 0===o?{from:"跳转小程序要携带的信息"}:o,s=n.envVersion,u=n.success,c=n.fail,l=n.complete,f={path:r,extraData:i,envVersion:s};f=w(f,{success:u,fail:c,complete:l}),e.navigateToMiniProgram(a({appId:""},f))}function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.extraData,r=void 0===n?{from:"返回上一个小程序要携带的信息"}:n,o=t.success,i=t.fail,s=t.complete,u={extraData:r};u=w(u,{success:o,fail:i,complete:s}),e.navigateBackMiniProgram(a({},u))}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.success,r=t.fail,o=t.complete;return n&&(e["success"]=function(e){n(e)}),r&&(e["fail"]=function(e){r(e)}),o&&(e["complete"]=function(e){o(e)}),e}}).call(this,n(2)["default"])},7:function(e,t){function n(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(c)throw o}}return s}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},70:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WECHAT_LOGIN=t.WECHAT_AUTH_BACK_URL=t.VUE_APP_URL=t.REACT_URL=void 0;var r="http://slb-m.dev.ml1993.com/lx-api";t.VUE_APP_URL=r;var o="http://slb-m.dev.ml1993.com/lx-api";t.REACT_URL=o;var i=!0;t.WECHAT_LOGIN=i;var a="WECHAT_AUTH_BACK_URL";t.WECHAT_AUTH_BACK_URL=a},8:function(e,t,n){var r=n(9);function o(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},9:function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports}}]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map
|