vendor.js 290 KB

12345678
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{1:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=Cn,t.createComponent=zn,t.createPage=Hn,t.createPlugin=Wn,t.createSubpackageApp=Kn,t.default=void 0;var r,a=n(3),i=o(n(4));function o(e){return e&&e.__esModule?e:{default:e}}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 c(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){p(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}function u(e,t){return d(e)||f(e,t)||g(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(c){a=!0,i=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(a)throw i}}return n}}function d(e){if(Array.isArray(e))return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return y(e)||m(e)||g(e)||v()}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){if(e){if("string"===typeof e)return _(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)?_(e,t):void 0}}function m(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function y(e){if(Array.isArray(e))return _(e)}function _(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}var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",w=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function x(e){return decodeURIComponent(r(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function k(){var e,t=wx.getStorageSync("uni_id_token")||"",n=t.split(".");if(!t||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse(x(n[1]))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}function O(e){e.prototype.uniIDHasRole=function(e){var t=k(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=k(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=k(),t=e.tokenExpired;return t>Date.now()}}r="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!w.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,a="",i=0;i<e.length;)t=b.indexOf(e.charAt(i++))<<18|b.indexOf(e.charAt(i++))<<12|(n=b.indexOf(e.charAt(i++)))<<6|(r=b.indexOf(e.charAt(i++))),a+=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 a}:atob;var S=Object.prototype.toString,A=Object.prototype.hasOwnProperty;function P(e){return"function"===typeof e}function T(e){return"string"===typeof e}function j(e){return"[object Object]"===S.call(e)}function E(e,t){return A.call(e,t)}function I(){}function $(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var C=/-(\w)/g,D=$((function(e){return e.replace(C,(function(e,t){return t?t.toUpperCase():""}))}));function L(e){var t={};return j(e)&&Object.keys(e).sort().forEach((function(n){t[n]=e[n]})),Object.keys(t)?t:e}var R=["invoke","success","fail","complete","returnValue"],M={},N={};function U(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?F(n):n}function F(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function q(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function B(e,t){Object.keys(t).forEach((function(n){-1!==R.indexOf(n)&&P(t[n])&&(e[n]=U(e[n],t[n]))}))}function V(e,t){e&&t&&Object.keys(t).forEach((function(n){-1!==R.indexOf(n)&&P(t[n])&&q(e[n],t[n])}))}function H(e,t){"string"===typeof e&&j(t)?B(N[e]||(N[e]={}),t):j(e)&&B(M,e)}function z(e,t){"string"===typeof e?j(t)?V(N[e],t):delete N[e]:j(e)&&V(M,e)}function K(e){return function(t){return e(t)||t}}function W(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then}function J(e,t){for(var n=!1,r=0;r<e.length;r++){var a=e[r];if(n)n=Promise.resolve(K(a));else{var i=a(t);if(W(i)&&(n=Promise.resolve(i)),!1===i)return{then:function(){}}}}return n||{then:function(e){return e(t)}}}function G(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(t){J(e[n],t).then((function(e){return P(r)&&r(e)||e}))}}})),t}function Y(e,t){var n=[];Array.isArray(M.returnValue)&&n.push.apply(n,h(M.returnValue));var r=N[e];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,h(r.returnValue)),n.forEach((function(e){t=e(t)||t})),t}function X(e){var t=Object.create(null);Object.keys(M).forEach((function(e){"returnValue"!==e&&(t[e]=M[e].slice())}));var n=N[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function Z(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),i=3;i<r;i++)a[i-3]=arguments[i];var o=X(e);if(o&&Object.keys(o).length){if(Array.isArray(o.invoke)){var s=J(o.invoke,n);return s.then((function(e){return t.apply(void 0,[G(o,e)].concat(a))}))}return t.apply(void 0,[G(o,n)].concat(a))}return t.apply(void 0,[n].concat(a))}var Q={returnValue:function(e){return W(e)?new Promise((function(t,n){e.then((function(e){e[0]?n(e[0]):t(e[1])}))})):e}},ee=/^\$|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/,te=/^create|Manager$/,ne=["createBLEConnection"],re=["createBLEConnection","createPushMessage"],ae=/^on|^off/;function ie(e){return te.test(e)&&-1===ne.indexOf(e)}function oe(e){return ee.test(e)&&-1===re.indexOf(e)}function se(e){return ae.test(e)&&"onPush"!==e}function ce(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function ue(e){return!(ie(e)||oe(e)||se(e))}function le(e,t){return ue(e)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return P(n.success)||P(n.fail)||P(n.complete)?Y(e,Z.apply(void 0,[e,t,n].concat(a))):Y(e,ce(new Promise((function(r,i){Z.apply(void 0,[e,t,Object.assign({},n,{success:r,fail:i})].concat(a))}))))}: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 fe=1e-4,de=750,pe=!1,he=0,ve=0;function ge(){var e=wx.getSystemInfoSync(),t=e.platform,n=e.pixelRatio,r=e.windowWidth;he=r,ve=n,pe="ios"===t}function me(e,t){if(0===he&&ge(),e=Number(e),0===e)return 0;var n=e/de*(t||he);return n<0&&(n=-n),n=Math.floor(n+fe),0===n&&(n=1!==ve&&pe?.5:1),e<0?-n:n}var ye,_e="zh-Hans",be="zh-Hant",we="en",xe="fr",ke="es",Oe={};function Se(){if(je()){var e=Object.keys(__uniConfig.locales);e.length&&e.forEach((function(e){var t=Oe[e],n=__uniConfig.locales[e];t?Object.assign(t,n):Oe[e]=n}))}}ye=$e(wx.getSystemInfoSync().language)||we,Se();var Ae=(0,a.initVueI18n)(ye,{}),Pe=Ae.t;Ae.mixin={beforeCreate:function(){var e=this,t=Ae.i18n.watchLocale((function(){e.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){t()}))},methods:{$$t:function(e,t){return Pe(e,t)}}},Ae.setLocale,Ae.getLocale;function Te(e,t,n){var r=e.observable({locale:n||Ae.getLocale()}),a=[];t.$watchLocale=function(e){a.push(e)},Object.defineProperty(t,"$locale",{get:function(){return r.locale},set:function(e){r.locale=e,a.forEach((function(t){return t(e)}))}})}function je(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}function Ee(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}function Ie(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}function $e(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return _e;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?_e:e.indexOf("-hant")>-1||Ee(e,["-tw","-hk","-mo","-cht"])?be:_e;var n=Ie(e,[we,xe,ke]);return n||void 0}}function Ce(){var e=getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:$e(wx.getSystemInfoSync().language)||we}function De(e){var t=getApp();if(!t)return!1;var n=t.$vm.$locale;return n!==e&&(t.$vm.$locale=e,Le.forEach((function(t){return t({locale:e})})),!0)}var Le=[];function Re(e){-1===Le.indexOf(e)&&Le.push(e)}"undefined"!==typeof e&&(e.getLocale=Ce);var Me={promiseInterceptor:Q},Ne=Object.freeze({__proto__:null,upx2px:me,getLocale:Ce,setLocale:De,onLocaleChange:Re,addInterceptor:H,removeInterceptor:z,interceptors:Me});function Ue(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 Fe,qe={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=Ue(e.url);if(-1!==t){var n=getCurrentPages().length-1-t;n>0&&(e.delta=n)}}}},Be={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}}}}},Ve="__DC_STAT_UUID";function He(e){Fe=Fe||wx.getStorageSync(Ve),Fe||(Fe=Date.now()+""+Math.floor(1e7*Math.random()),wx.setStorage({key:Ve,data:Fe})),e.deviceId=Fe}function ze(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 Ke(e){var t=e.brand,n=void 0===t?"":t,r=e.model,a=void 0===r?"":r,i=e.system,o=void 0===i?"":i,s=e.language,c=void 0===s?"":s,u=e.theme,l=e.version,f=(e.platform,e.fontSizeSetting),d=e.SDKVersion,p=e.pixelRatio,h=e.deviceOrientation,v="",g="";v=o.split(" ")[0]||"",g=o.split(" ")[1]||"";var m=l,y=We(e,a),_=Je(n),b=Ye(e),w=h,x=p,k=d,O=c.replace(/_/g,"-"),S={appId:"__UNI__5B783AC",appName:"Applet",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Ge(O),uniCompileVersion:"3.6.4",uniRuntimeVersion:"3.6.4",uniPlatform:"mp-weixin",deviceBrand:_,deviceModel:a,deviceType:y,devicePixelRatio:x,deviceOrientation:w,osName:v.toLocaleLowerCase(),osVersion:g,hostTheme:u,hostVersion:m,hostLanguage:O,hostName:b,hostSDKVersion:k,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)}function We(e,t){for(var n=e.deviceType||"phone",r={ipad:"pad",windows:"pc",mac:"pc"},a=Object.keys(r),i=t.toLocaleLowerCase(),o=0;o<a.length;o++){var s=a[o];if(-1!==i.indexOf(s)){n=r[s];break}}return n}function Je(e){var t=e;return t&&(t=e.toLocaleLowerCase()),t}function Ge(e){return Ce?Ce():e}function Ye(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 Xe={returnValue:function(e){He(e),ze(e),Ke(e)}},Ze={args:function(e){"object"===typeof e&&(e.alertText=e.title)}},Qe={returnValue:function(e){var t=e,n=t.version,r=t.language,a=t.SDKVersion,i=t.theme,o=Ye(e),s=r.replace("_","-");e=L(Object.assign(e,{appId:"__UNI__5B783AC",appName:"Applet",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Ge(s),hostVersion:n,hostLanguage:s,hostName:o,hostSDKVersion:a,hostTheme:i}))}},et={returnValue:function(e){var t=e,n=t.brand,r=t.model,a=We(e,r),i=Je(n);He(e),e=L(Object.assign(e,{deviceType:a,deviceBrand:i,deviceModel:r}))}},tt={returnValue:function(e){ze(e),e=L(Object.assign(e,{windowTop:0,windowBottom:0}))}},nt={returnValue:function(e){var t=e.locationReducedAccuracy;e.locationAccuracy="unsupported",!0===t?e.locationAccuracy="reduced":!1===t&&(e.locationAccuracy="full")}},rt={redirectTo:qe,previewImage:Be,getSystemInfo:Xe,getSystemInfoSync:Xe,showActionSheet:Ze,getAppBaseInfo:Qe,getDeviceInfo:et,getWindowInfo:tt,getAppAuthorizeSetting:nt},at=["vibrate","preloadPage","unPreloadPage","loadSubPackage"],it=[],ot=["success","fail","cancel","complete"];function st(e,t,n){return function(r){return t(ut(e,r,n))}}function ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(j(t)){var i=!0===a?t:{};for(var o in P(n)&&(n=n(t,i)||{}),t)if(E(n,o)){var s=n[o];P(s)&&(s=s(t[o],t,i)),s?T(s)?i[s]=t[o]:j(s)&&(i[s.name?s.name:o]=s.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(o,"'"))}else-1!==ot.indexOf(o)?P(t[o])&&(i[o]=st(e,t[o],r)):a||(i[o]=t[o]);return i}return P(t)&&(t=st(e,t,r)),t}function ut(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return P(rt.returnValue)&&(t=rt.returnValue(e,t)),ct(e,t,n,{},r)}function lt(e,t){if(E(rt,e)){var n=rt[e];return n?function(t,r){var a=n;P(n)&&(a=n(t)),t=ct(e,t,a.args,a.returnValue);var i=[t];"undefined"!==typeof r&&i.push(r),P(a.name)?e=a.name(t):T(a.name)&&(e=a.name);var o=wx[e].apply(wx,i);return oe(e)?ut(e,o,a.returnValue,ie(e)):o}:function(){console.error("Platform '微信小程序' does not support '".concat(e,"'."))}}return t}var ft=Object.create(null),dt=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function pt(e){return function(t){var n=t.fail,r=t.complete,a={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};P(n)&&n(a),P(r)&&r(a)}}dt.forEach((function(e){ft[e]=pt(e)}));var ht={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function vt(e){var t=e.service,n=e.success,r=e.fail,a=e.complete,i=!1;ht[t]?(i={errMsg:"getProvider:ok",service:t,provider:ht[t]},P(n)&&n(i)):(i={errMsg:"getProvider:fail service not found"},P(r)&&r(i)),P(a)&&a(i)}var gt=Object.freeze({__proto__:null,getProvider:vt}),mt=function(){var e;return function(){return e||(e=new i.default),e}}();function yt(e,t,n){return e[t].apply(e,n)}function _t(){return yt(mt(),"$on",Array.prototype.slice.call(arguments))}function bt(){return yt(mt(),"$off",Array.prototype.slice.call(arguments))}function wt(){return yt(mt(),"$once",Array.prototype.slice.call(arguments))}function xt(){return yt(mt(),"$emit",Array.prototype.slice.call(arguments))}var kt,Ot,St,At=Object.freeze({__proto__:null,$on:_t,$off:bt,$once:wt,$emit:xt});function Pt(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function Tt(e){var t={};for(var n in e){var r=e[n];P(r)&&(t[n]=Pt(r),delete e[n])}return t}function jt(e){try{return JSON.parse(e)}catch(t){}return e}function Et(e){if("enabled"===e.type)St=!0;else if("clientId"===e.type)kt=e.cid,Ot=e.errMsg,$t(kt,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:jt(e.message)},n=0;n<Dt.length;n++){var r=Dt[n];if(r(t),t.stopped)break}else"click"===e.type&&Dt.forEach((function(t){t({type:"click",data:jt(e.message)})}))}var It=[];function $t(e,t){It.forEach((function(n){n(e,t)})),It.length=0}function Ct(e){j(e)||(e={});var t=Tt(e),n=t.success,r=t.fail,a=t.complete,i=P(n),o=P(r),s=P(a);Promise.resolve().then((function(){"undefined"===typeof St&&(St=!1,kt="",Ot="uniPush is not enabled"),It.push((function(e,t){var c;e?(c={errMsg:"getPushClientId:ok",cid:e},i&&n(c)):(c={errMsg:"getPushClientId:fail"+(t?" "+t:"")},o&&r(c)),s&&a(c)})),"undefined"!==typeof kt&&$t(kt,Ot)}))}var Dt=[],Lt=function(e){-1===Dt.indexOf(e)&&Dt.push(e)},Rt=function(e){if(e){var t=Dt.indexOf(e);t>-1&&Dt.splice(t,1)}else Dt.length=0},Mt=Object.freeze({__proto__:null,getPushClientId:Ct,onPushMessage:Lt,offPushMessage:Rt,invokePushCallback:Et}),Nt=Page,Ut=Component,Ft=/:/g,qt=$((function(e){return D(e.replace(Ft,"-"))}));function Bt(e){var t=e.triggerEvent,n=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];if(this.$vm||this.dataset&&this.dataset.comType)e=qt(e);else{var i=qt(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 Vt(e,t,n){var r=t[e];t[e]=r?function(){Bt(this);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.apply(this,t)}:function(){Bt(this)}}Nt.__$wrappered||(Nt.__$wrappered=!0,Page=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Vt("onLoad",e),Nt(e)},Page.after=Nt.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Vt("created",e),Ut(e)});var Ht=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function zt(e,t){var n=e.$mp[e.mpType];t.forEach((function(t){E(n,t)&&(e[t]=n[t])}))}function Kt(e,t){if(!t)return!0;if(i.default.options&&Array.isArray(i.default.options[e]))return!0;if(t=t.default||t,P(t))return!!P(t.extendOptions[e])||!!(t.super&&t.super.options&&Array.isArray(t.super.options[e]));if(P(t[e]))return!0;var n=t.mixins;return Array.isArray(n)?!!n.find((function(t){return Kt(e,t)})):void 0}function Wt(e,t,n){t.forEach((function(t){Kt(t,n)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function Jt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];Gt(t).forEach((function(t){return Yt(e,t,n)}))}function Gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(n){0===n.indexOf("on")&&P(e[n])&&t.push(n)})),t}function Yt(e,t,n){-1!==n.indexOf(t)||E(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function Xt(e,t){var n;return t=t.default||t,n=P(t)?t:e.extend(t),t=n.options,[n,t]}function Zt(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 Qt(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 en(e,t){var n=e.data||{},r=e.methods||{};if("function"===typeof n)try{n=n.call(t)}catch(a){Object({VUE_APP_NAME:"Applet",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(a){}return j(n)||(n={}),Object.keys(r).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||E(n,e)||(n[e]=r[e])})),n}var tn=[String,Number,Boolean,Object,Array,null];function nn(e){return function(t,n){this.$vm&&(this.$vm[e]=t)}}function rn(e,t){var n=e.behaviors,r=e.extends,a=e.mixins,i=e.props;i||(e.props=i=[]);var o=[];return Array.isArray(n)&&n.forEach((function(e){o.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:""}))})),j(r)&&r.props&&o.push(t({properties:on(r.props,!0)})),Array.isArray(a)&&a.forEach((function(e){j(e)&&e.props&&o.push(t({properties:on(e.props,!0)}))})),o}function an(e,t,n,r){return Array.isArray(t)&&1===t.length?t[0]:t}function on(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:nn(e)}})):j(e)&&Object.keys(e).forEach((function(t){var n=e[t];if(j(n)){var a=n.default;P(a)&&(a=a()),n.type=an(t,n.type),r[t]={type:-1!==tn.indexOf(n.type)?n.type:null,value:a,observer:nn(t)}}else{var i=an(t,n);r[t]={type:-1!==tn.indexOf(i)?i:null,observer:nn(t)}}})),r}function sn(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=I,e.preventDefault=I,e.target=e.target||{},E(e,"detail")||(e.detail={}),E(e,"markerId")&&(e.detail="object"===typeof e.detail?e.detail:{},e.detail.markerId=e.markerId),j(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}function cn(e,t){var n=e;return t.forEach((function(t){var r=t[0],a=t[2];if(r||"undefined"!==typeof a){var i,o=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=a:o?Array.isArray(i)?n=i.find((function(t){return e.__get_value(o,t)===a})):j(i)?n=Object.keys(i).find((function(t){return e.__get_value(o,i[t])===a})):console.error("v-for 暂不支持循环数据:",i):n=i[a],s&&(n=e.__get_value(s,n))}})),n}function un(e,t,n,r){var a={};return Array.isArray(t)&&t.length&&t.forEach((function(t,i){"string"===typeof t?t?"$event"===t?a["$"+i]=n:"arguments"===t?a["$"+i]=n.detail&&n.detail.__args__||r:0===t.indexOf("$event.")?a["$"+i]=e.__get_value(t.replace("$event.",""),n):a["$"+i]=e.__get_value(t):a["$"+i]=e:a["$"+i]=cn(e,t)})),a}function ln(e){for(var t={},n=1;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t}function fn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=!1,s=j(t.detail)&&t.detail.__args__||[t.detail];if(a&&(o=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!n.length))return o?[t]:s;var c=un(e,r,t,s),u=[];return n.forEach((function(e){"$event"===e?"__set_model"!==i||a?a&&!o?u.push(s[0]):u.push(t):u.push(t.target.value):Array.isArray(e)&&"o"===e[0]?u.push(ln(e)):"string"===typeof e&&E(c,e)?u.push(c[e]):u.push(e)})),u}var dn="~",pn="^";function hn(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}function vn(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 gn(e){var t=this;e=sn(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 a=e.type,i=[];return r.forEach((function(n){var r=n[0],o=n[1],s=r.charAt(0)===pn;r=s?r.slice(1):r;var c=r.charAt(0)===dn;r=c?r.slice(1):r,o&&hn(a,r)&&o.forEach((function(n){var r=n[0];if(r){var a=t.$vm;if(a.$options.generic&&(a=vn(a)||a),"$emit"===r)return void a.$emit.apply(a,fn(t.$vm,e,n[1],n[2],s,r));var o=a[r];if(!P(o)){var u="page"===t.$vm.mpType?"Page":"Component",l=t.route||t.is;throw new Error("".concat(u,' "').concat(l,'" does not have a method "').concat(r,'"'))}if(c){if(o.once)return;o.once=!0}var f=fn(t.$vm,e,n[1],n[2],s,r);f=Array.isArray(f)?f:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(o.toString())&&(f=f.concat([,,,,,,,,,,e])),i.push(o.apply(a,f))}}))})),"input"===a&&1===i.length&&"undefined"!==typeof i[0]?i[0]:void 0}var mn={},yn=[];function _n(e){if(e){var t=mn[e];return delete mn[e],t}return yn.shift()}var bn=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function wn(){i.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=i.default.prototype.__call_hook;i.default.prototype.__call_hook=function(t,n){return"onLoad"===t&&n&&n.__id__&&(this.__eventChannel__=_n(n.__id__),delete n.__id__),e.call(this,t,n)}}function xn(){var e={},t={};i.default.prototype.$hasScopedSlotsParams=function(n){var r=e[n];return r||(t[n]=this,this.$on("hook:destroyed",(function(){delete t[n]}))),r},i.default.prototype.$getScopedSlotsParams=function(n,r,a){var i=e[n];if(i){var o=i[r]||{};return a?o[a]:o}t[n]=this,this.$on("hook:destroyed",(function(){delete t[n]}))},i.default.prototype.$setScopedSlotsParams=function(n,r){var a=this.$options.propsData.vueId;if(a){var i=a.split(",")[0],o=e[i]=e[i]||{};o[n]=r,t[i]&&t[i].$forceUpdate()}},i.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete e[r],delete t[r])}})}function kn(e,t){var n=t.mocks,r=t.initRefs;wn(),xn(),e.$options.store&&(i.default.prototype.$store=e.$options.store),O(i.default),i.default.prototype.mpHost="mp-weixin",i.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=p({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&&(r(this),zt(this,n))}}});var a={onLaunch:function(t){this.$vm||(wx.canIUse&&!wx.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=e,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",t),this.$vm.__call_hook("onLaunch",t))}};a.globalData=e.$options.globalData||{};var o=e.$options.methods;return o&&Object.keys(o).forEach((function(e){a[e]=o[e]})),Te(i.default,e,$e(wx.getSystemInfoSync().language)||we),Wt(a,bn),Jt(a,e.$options),a}var On=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function Sn(e,t){for(var n,r=e.$children,a=r.length-1;a>=0;a--){var i=r[a];if(i.$scope._$vueId===t)return i}for(var o=r.length-1;o>=0;o--)if(n=Sn(r[o],t),n)return n}function An(e){return Behavior(e)}function Pn(){return!!this.route}function Tn(e){this.triggerEvent("__l",e)}function jn(e,t,n){var r=e.selectAllComponents(t);r.forEach((function(e){var r=e.dataset.ref;n[r]=e.$vm||e,"scoped"===e.dataset.vueGeneric&&e.selectAllComponents(".scoped-ref").forEach((function(e){jn(e,t,n)}))}))}function En(e){var t=e.$scope;Object.defineProperty(e,"$refs",{get:function(){var e={};jn(t,".vue-ref",e);var n=t.selectAllComponents(".vue-ref-in-for");return n.forEach((function(t){var n=t.dataset.ref;e[n]||(e[n]=[]),e[n].push(t.$vm||t)})),e}})}function In(e){var t,n=e.detail||e.value,r=n.vuePid,a=n.vueOptions;r&&(t=Sn(this.$vm,r)),t||(t=this.$vm),a.parent=t}function $n(e){return kn(e,{mocks:On,initRefs:En})}function Cn(e){return App($n(e)),e}var Dn=/[!'()*]/g,Ln=function(e){return"%"+e.charCodeAt(0).toString(16)},Rn=/%2C/g,Mn=function(e){return encodeURIComponent(e).replace(Dn,Ln).replace(Rn,",")};function Nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mn,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 a=[];return r.forEach((function(e){void 0!==e&&(null===e?a.push(t(n)):a.push(t(n)+"="+t(e)))})),a.join("&")}return t(n)+"="+t(r)})).filter((function(e){return e.length>0})).join("&"):null;return n?"?".concat(n):""}function Un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isPage,r=t.initRelation,a=Xt(i.default,e),o=u(a,2),s=o[0],l=o[1],f=c({multipleSlots:!0,addGlobalClass:!0},l.options||{});l["mp-weixin"]&&l["mp-weixin"].options&&Object.assign(f,l["mp-weixin"].options);var d={options:f,data:en(l,i.default.prototype),behaviors:rn(l,An),properties:on(l.props,!1,l.__file,f),lifetimes:{attached:function(){var e=this.properties,t={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:e};Qt(e.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new s(t),Zt(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:In,__e:gn}};return l.externalClasses&&(d.externalClasses=l.externalClasses),Array.isArray(l.wxsCallMethods)&&l.wxsCallMethods.forEach((function(e){d.methods[e]=function(t){return this.$vm[e](t)}})),n?d:[d,s]}function Fn(e){return Un(e,{isPage:Pn,initRelation:Tn})}var qn=["onShow","onHide","onUnload"];function Bn(e,t){t.isPage,t.initRelation;var n=Fn(e);return Wt(n.methods,qn,e),n.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Nn(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},Jt(n.methods,e,["onReady"]),n}function Vn(e){return Bn(e,{isPage:Pn,initRelation:Tn})}function Hn(e){return Component(Vn(e))}function zn(e){return Component(Fn(e))}function Kn(e){var t=$n(e),n=getApp({allowDefault:!0});e.$scope=n;var r=n.globalData;if(r&&Object.keys(t.globalData).forEach((function(e){E(r,e)||(r[e]=t.globalData[e])})),Object.keys(t).forEach((function(e){E(n,e)||(n[e]=t[e])})),P(t.onShow)&&wx.onAppShow&&wx.onAppShow((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.__call_hook("onShow",n)})),P(t.onHide)&&wx.onAppHide&&wx.onAppHide((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.__call_hook("onHide",n)})),P(t.onLaunch)){var a=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();e.__call_hook("onLaunch",a)}return e}function Wn(e){var t=$n(e);if(P(t.onShow)&&wx.onAppShow&&wx.onAppShow((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.__call_hook("onShow",n)})),P(t.onHide)&&wx.onAppHide&&wx.onAppHide((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.__call_hook("onHide",n)})),P(t.onLaunch)){var n=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();e.__call_hook("onLaunch",n)}return e}qn.push.apply(qn,Ht),at.forEach((function(e){rt[e]=!1})),it.forEach((function(e){var t=rt[e]&&rt[e].name?rt[e].name:e;wx.canIUse(t)||(rt[e]=!1)}));var Jn={};"undefined"!==typeof Proxy?Jn=new Proxy({},{get:function(e,t){return E(e,t)?e[t]:Ne[t]?Ne[t]:Mt[t]?le(t,Mt[t]):gt[t]?le(t,gt[t]):ft[t]?le(t,ft[t]):At[t]?At[t]:E(wx,t)||E(rt,t)?le(t,lt(t,wx[t])):void 0},set:function(e,t,n){return e[t]=n,!0}}):(Object.keys(Ne).forEach((function(e){Jn[e]=Ne[e]})),Object.keys(ft).forEach((function(e){Jn[e]=le(e,ft[e])})),Object.keys(gt).forEach((function(e){Jn[e]=le(e,ft[e])})),Object.keys(At).forEach((function(e){Jn[e]=At[e]})),Object.keys(Mt).forEach((function(e){Jn[e]=le(e,Mt[e])})),Object.keys(wx).forEach((function(e){(E(wx,e)||E(rt,e))&&(Jn[e]=le(e,lt(e,wx[e])))}))),wx.createApp=Cn,wx.createPage=Hn,wx.createComponent=zn,wx.createSubpackageApp=Kn,wx.createPlugin=Wn;var Gn=Jn,Yn=Gn;t.default=Yn}).call(this,n(2))},11:function(e,t,n){"use strict";function r(e,t,n,r,a,i,o,s,c,u){var l,f="function"===typeof e?e.options:e;if(c){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var p in c)d.call(c,p)&&!d.call(f.components,p)&&(f.components[p]=c[p])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),o?(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__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},f._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),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}))},162:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(18)),a=i(n(22));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,c,"next",e)}function c(e){o(i,r,a,s,c,"throw",e)}s(void 0)}))}}var c=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/wx/points/point",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/wx/points/ranking-list"});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l={getIntegral:c,getRanking:u};t.default=l},171:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(18)),a=i(n(22));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,c,"next",e)}function c(e){o(i,r,a,s,c,"throw",e)}s(void 0)}))}}var c=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/activity/list",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=s(r.default.mark((function e(t){var n,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.activityId,e.next=3,a.default.get({url:"/activity/".concat(n)});case 3:return i=e.sent,e.abrupt("return",i.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=s(r.default.mark((function e(t){var n,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.activityId,e.next=3,a.default.get({url:"/activity/status/".concat(n)});case 3:return i=e.sent,e.abrupt("return",i.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=s(r.default.mark((function e(t){var n,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.activityId,e.next=3,a.default.post({url:"/activity/report/".concat(n)});case 3:return i=e.sent,e.abrupt("return",i.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=s(r.default.mark((function e(t){var n,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.activityId,e.next=3,a.default.del({url:"/activity/report-cancel/".concat(n)});case 3:return i=e.sent,e.abrupt("return",i.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.post({url:"/activity/submit-photo",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var e=s(r.default.mark((function e(t){var n,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.activityId,e.next=3,a.default.get({url:"/activity/log-details/".concat(n)});case 3:return i=e.sent,e.abrupt("return",i.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=s(r.default.mark((function e(t){var n,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.alias,e.next=3,a.default.get({url:"/cms/type/sublist/".concat(n)});case 3:return i=e.sent,e.abrupt("return",i.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g={getActivity:c,getdetails:u,getstatus:l,report:f,offReport:d,uploadImgs:p,getPhotos:h,getTypeList:v};t.default=g},18:function(e,t,n){e.exports=n(19)},19:function(e,t,n){var r=function(){return this||"object"===typeof self&&self}()||Function("return this")(),a=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=a&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(20),a)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(o){r.regeneratorRuntime=void 0}},2: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},20:function(e,t){!function(t){"use strict";var n,r=Object.prototype,a=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",u="object"===typeof e,l=t.regeneratorRuntime;if(l)u&&(e.exports=l);else{l=t.regeneratorRuntime=u?e.exports:{},l.wrap=b;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={},g={};g[o]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m($([])));y&&y!==r&&a.call(y,o)&&(g=y);var _=O.prototype=x.prototype=Object.create(g);k.prototype=_.constructor=O,O.constructor=k,O[c]=k.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(_),e},l.awrap=function(e){return{__await:e}},S(A.prototype),A.prototype[s]=function(){return this},l.AsyncIterator=A,l.async=function(e,t,n,r){var a=new A(b(e,t,n,r));return l.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(_),_[c]="Generator",_[o]=function(){return this},_.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=$,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,a){return s.type="throw",s.arg=e,t.next=r,a&&(t.method="next",t.arg=n),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.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 i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},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),E(n),v}},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 a=r.arg;E(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:$(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function b(e,t,n,r){var a=t&&t.prototype instanceof x?t:x,i=Object.create(a.prototype),o=new I(r||[]);return i._invoke=P(e,n,o),i}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function x(){}function k(){}function O(){}function S(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function A(e){function t(n,r,i,o){var s=w(e[n],e,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&a.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,i,o)}),(function(e){t("throw",e,i,o)})):Promise.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return t("throw",e,i,o)}))}o(s.arg)}var n;function r(e,r){function a(){return new Promise((function(n,a){t(e,r,n,a)}))}return n=n?n.then(a,a):a()}this._invoke=r}function P(e,t,n){var r=f;return function(a,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===a)throw i;return C()}n.method=a,n.arg=i;while(1){var o=n.delegate;if(o){var s=T(o,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=w(e,t,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}function T(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,T(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var a=w(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,v;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function j(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function $(e){if(e){var t=e[o];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){while(++r<e.length)if(a.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},21:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(18)),a=i(n(22));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,c,"next",e)}function c(e){o(i,r,a,s,c,"throw",e)}s(void 0)}))}}var c=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/system/notice/list",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/system/notice/newest"});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=s(r.default.mark((function e(t){var n,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.id,e.next=3,a.default.get({url:"/system/notice/".concat(n)});case 3:return i=e.sent,e.abrupt("return",i.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f={getSystemNoticeList:c,getSystemNoticeNew:u,getSystemNoticeDetails:l};t.default=f},22:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(18)),a=n(23);function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,c,"next",e)}function c(e){o(i,r,a,s,c,"throw",e)}s(void 0)}))}}var c=function(t){var n=t.url,r=t.method,i=t.data;t.header;return new Promise((function(t,o){var s=e.getStorageSync("token");e.request({url:n.includes("http")?n:a.BASE_URL.url+n,method:r,data:i,header:{Authorization:"/login"==n?"":"Bearer ".concat(s)},dataType:"json",success:function(n){n.data.errcode&&wx.showToast({title:n.data.details,icon:"error"}),200!==n.data.code&&wx.showToast({title:n.data.msg}),401==n.data.code&&e.redirectTo({url:"/pages/login/index"}),t(n)},fail:function(t){e.showToast({title:"请求接口失败!"}),o(t)}})}))},u=function(){var e=s(r.default.mark((function e(t){var n,a,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.url,a=t.data,i=t.header,e.next=3,c({url:n,method:"get",data:a,header:i});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=s(r.default.mark((function e(t){var n,a,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.url,a=t.data,i=t.header,e.next=3,c({url:n,method:"post",data:a,header:i});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=s(r.default.mark((function e(t){var n,a,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.url,a=t.data,i=t.header,e.next=3,c({url:n,method:"put",data:a,header:i});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=s(r.default.mark((function e(t){var n,a,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.url,a=t.data,i=t.header,e.next=3,c({url:n,method:"delete",data:a,header:i});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p={get:u,post:l,put:f,del:d};t.default=p}).call(this,n(1)["default"])},220:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(18)),a=i(n(22));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,c,"next",e)}function c(e){o(i,r,a,s,c,"throw",e)}s(void 0)}))}}var c=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/dict/data/type/".concat(t)});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.post({url:"/dangjian/xiachenganbu",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.post({url:"/dangjian/dangyuan",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=s(r.default.mark((function e(){var t;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/dangjian/xiachenganbu-status"});case 2:return t=e.sent,e.abrupt("return",t.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=s(r.default.mark((function e(){var t;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/dangjian/dangyuan-status"});case 2:return t=e.sent,e.abrupt("return",t.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p={getDict:c,submitgb:u,submitdy:l,getDyStatus:d,getGbStatus:f};t.default=p},23:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BASE_URL=void 0;var r={development:{url:"https://fuyu.scapp.cn/wx-api/api",imgUrl:"https://fuyu.scapp.cn/static/wxa/",fileUrl:"https://fuyu.scapp.cn"},production:{url:"https://fuyu.scapp.cn/wx-api/api",imgUrl:"https://fuyu.scapp.cn/static/wxa/",fileUrl:"https://fuyu.scapp.cn"}},a=r["development"];t.BASE_URL=a},237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(18)),a=i(n(22));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,c,"next",e)}function c(e){o(i,r,a,s,c,"throw",e)}s(void 0)}))}}var c=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/recruit/list",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=s(r.default.mark((function e(t){var n,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.id,e.next=3,a.default.get({url:"/recruit/details/".concat(n)});case 3:return i=e.sent,e.abrupt("return",i.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=s(r.default.mark((function e(t){var n,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.id,e.next=3,a.default.get({url:"/recruit/status/".concat(n)});case 3:return i=e.sent,e.abrupt("return",i.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=s(r.default.mark((function e(t){var n,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.id,e.next=3,a.default.post({url:"/recruit/report/".concat(n)});case 3:return i=e.sent,e.abrupt("return",i.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d={getList:c,getDetails:u,getStatus:l,report:f};t.default=d},24:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(18)),a=o(n(22)),i=n(23);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){s(i,r,a,o,c,"next",e)}function c(e){s(i,r,a,o,c,"throw",e)}o(void 0)}))}}var u=function(){var e=c(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.post({url:"/user/login",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=c(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.post({url:"/wxa/business/getuserphonenumber?appid=".concat(t.appid),data:{code:t.code}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=c(r.default.mark((function e(){var t;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"".concat(i.BASE_URL.imgUrl,"/config.json")});case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d={login:u,getPhone:l,getJson:f};t.default=d},253:function(e,t,n){"use strict";(function(e){function n(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 r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=d;var c=function(){function t(n,r){i(this,t),this.options=n,this.animation=e.createAnimation(n),this.currentStepAnimates={},this.next=0,this.$=r}return s(t,[{key:"_nvuePushAnimates",value:function(e,t){var n=this.currentStepAnimates[this.next],r={};if(r=n||{styles:{},config:{}},u.includes(e)){r.styles.transform||(r.styles.transform="");var a="";"rotate"===e&&(a="deg"),r.styles.transform+="".concat(e,"(").concat(t+a,") ")}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(a,i){nvueAnimation.transition(n,r({styles:e},t),(function(e){a()}))}))}},{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,a=e[n];if(a){var i=a.styles,o=a.config;this._animateRun(i,o).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}(),u=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],l=["opacity","backgroundColor"],f=["width","height","left","right","top","bottom"];function d(e,t){if(t)return clearTimeout(t.timer),new c(e,t)}u.concat(l,f).forEach((function(e){c.prototype[e]=function(){var t;return(t=this.animation)[e].apply(t,arguments),this}}))}).call(this,n(1)["default"])},3:function(e,t,n){"use strict";(function(e,n){function r(e,t){return c(e)||s(e,t)||i(e,t)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){if(e){if("string"===typeof e)return o(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)?o(e,t):void 0}}function o(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 s(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(c){a=!0,i=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(a)throw i}}return n}}function c(e){if(Array.isArray(e))return e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.compileI18nJsonStr=U,t.hasI18nJson=M,t.initVueI18n=D,t.isI18nStr=F,t.normalizeLocale=E,t.parseI18nJson=N,t.resolveLocale=z,t.isString=t.LOCALE_ZH_HANT=t.LOCALE_ZH_HANS=t.LOCALE_FR=t.LOCALE_ES=t.LOCALE_EN=t.I18n=t.Formatter=void 0;var d=Array.isArray,p=function(e){return null!==e&&"object"===typeof e},h=["{","}"],v=function(){function e(){u(this,e),this._caches=Object.create(null)}return f(e,[{key:"interpolate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;if(!t)return[e];var r=this._caches[e];return r||(r=y(e,n),this._caches[e]=r),_(r,t)}}]),e}();t.Formatter=v;var g=/^(?:\d)+/,m=/^(?:\w)+/;function y(e,t){var n=r(t,2),a=n[0],i=n[1],o=[],s=0,c="";while(s<e.length){var u=e[s++];if(u===a){c&&o.push({type:"text",value:c}),c="";var l="";u=e[s++];while(void 0!==u&&u!==i)l+=u,u=e[s++];var f=u===i,d=g.test(l)?"list":f&&m.test(l)?"named":"unknown";o.push({value:l,type:d})}else c+=u}return c&&o.push({type:"text",value:c}),o}function _(e,t){var n=[],r=0,a=d(t)?"list":p(t)?"named":"unknown";if("unknown"===a)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"===a?n.push(t[i.value]):console.warn("Type of token '".concat(i.type,"' and format of value '").concat(a,"' don't match!"));break;case"unknown":console.warn("Detect 'unknown' type of token!");break}r++}return n}var b="zh-Hans";t.LOCALE_ZH_HANS=b;var w="zh-Hant";t.LOCALE_ZH_HANT=w;var x="en";t.LOCALE_EN=x;var k="fr";t.LOCALE_FR=k;var O="es";t.LOCALE_ES=O;var S=Object.prototype.hasOwnProperty,A=function(e,t){return S.call(e,t)},P=new v;function T(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}function j(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}function E(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),0===e.indexOf("zh"))return e.indexOf("-hans")>-1?b:e.indexOf("-hant")>-1||T(e,["-tw","-hk","-mo","-cht"])?w:b;var n=j(e,[x,k,O]);return n||void 0}}var I=function(){function e(t){var n=t.locale,r=t.fallbackLocale,a=t.messages,i=t.watcher,o=t.formater;u(this,e),this.locale=x,this.fallbackLocale=x,this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=o||P,this.messages=a||{},this.setLocale(n||x),i&&this.watchLocale(i)}return f(e,[{key:"setLocale",value:function(e){var t=this,n=this.locale;this.locale=E(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){A(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=E(t,this.messages),t&&(r=this.messages[t])):n=t,A(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 $(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function C(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof n&&n.getLocale?n.getLocale():x}function D(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 a=[t,e];e=a[0],t=a[1]}"string"!==typeof e&&(e=C()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||x);var i=new I({locale:e,fallbackLocale:n,messages:t,watcher:r}),o=function(e,t){if("function"!==typeof getApp)o=function(e,t){return i.t(e,t)};else{var n=!1;o=function(e,t){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,$(r,i))),i.t(e,t)}}return o(e,t)};return{i18n:i,f:function(e,t,n){return i.f(e,t,n)},t:function(e,t){return o(e,t)},add:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return 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=I;var L,R=function(e){return"string"===typeof e};function M(e,t){return L||(L=new v),H(e,(function(e,n){var r=e[n];return R(r)?!!F(r,t)||void 0:M(r,t)}))}function N(e,t,n){return L||(L=new v),H(e,(function(e,r){var a=e[r];R(a)?F(a,n)&&(e[r]=q(a,t,n)):N(a,t,n)})),e}function U(e,t){var n=t.locale,r=t.locales,a=t.delimiters;if(!F(e,a))return e;L||(L=new v);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(V(JSON.parse(e),i,a),null,2)}catch(o){}return e}function F(e,t){return e.indexOf(t[0])>-1}function q(e,t,n){return L.interpolate(e,t,n).join("")}function B(e,t,n,r){var a=e[t];if(R(a)){if(F(a,r)&&(e[t]=q(a,n[0].values,r),n.length>1)){var i=e[t+"Locales"]={};n.forEach((function(e){i[e.locale]=q(a,e.values,r)}))}}else V(a,n,r)}function V(e,t,n){return H(e,(function(e,r){B(e,r,t,n)})),e}function H(e,t){if(d(e)){for(var n=0;n<e.length;n++)if(t(e,n))return!0}else if(p(e))for(var r in e)if(t(e,r))return!0;return!1}function z(e){return function(t){return t?(t=E(t)||t,K(t).find((function(t){return e.indexOf(t)>-1}))):t}}function K(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}t.isString=R}).call(this,n(1)["default"],n(2))},301:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(302)),a=o(n(303)),i=o(n(304));function o(e){return e&&e.__esModule?e:{default:e}}var s={en:r.default,"zh-Hans":a.default,"zh-Hant":i.default};t.default=s},302: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"}')},303:function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"}')},304:function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}')},319:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={id:"2852637",name:"uniui图标库",font_family:"uniicons",css_prefix_text:"uniui-",description:"",glyphs:[{icon_id:"25027049",name:"yanse",font_class:"color",unicode:"e6cf",unicode_decimal:59087},{icon_id:"25027048",name:"wallet",font_class:"wallet",unicode:"e6b1",unicode_decimal:59057},{icon_id:"25015720",name:"settings-filled",font_class:"settings-filled",unicode:"e6ce",unicode_decimal:59086},{icon_id:"25015434",name:"shimingrenzheng-filled",font_class:"auth-filled",unicode:"e6cc",unicode_decimal:59084},{icon_id:"24934246",name:"shop-filled",font_class:"shop-filled",unicode:"e6cd",unicode_decimal:59085},{icon_id:"24934159",name:"staff-filled-01",font_class:"staff-filled",unicode:"e6cb",unicode_decimal:59083},{icon_id:"24932461",name:"VIP-filled",font_class:"vip-filled",unicode:"e6c6",unicode_decimal:59078},{icon_id:"24932462",name:"plus_circle_fill",font_class:"plus-filled",unicode:"e6c7",unicode_decimal:59079},{icon_id:"24932463",name:"folder_add-filled",font_class:"folder-add-filled",unicode:"e6c8",unicode_decimal:59080},{icon_id:"24932464",name:"yanse-filled",font_class:"color-filled",unicode:"e6c9",unicode_decimal:59081},{icon_id:"24932465",name:"tune-filled",font_class:"tune-filled",unicode:"e6ca",unicode_decimal:59082},{icon_id:"24932455",name:"a-rilidaka-filled",font_class:"calendar-filled",unicode:"e6c0",unicode_decimal:59072},{icon_id:"24932456",name:"notification-filled",font_class:"notification-filled",unicode:"e6c1",unicode_decimal:59073},{icon_id:"24932457",name:"wallet-filled",font_class:"wallet-filled",unicode:"e6c2",unicode_decimal:59074},{icon_id:"24932458",name:"paihangbang-filled",font_class:"medal-filled",unicode:"e6c3",unicode_decimal:59075},{icon_id:"24932459",name:"gift-filled",font_class:"gift-filled",unicode:"e6c4",unicode_decimal:59076},{icon_id:"24932460",name:"fire-filled",font_class:"fire-filled",unicode:"e6c5",unicode_decimal:59077},{icon_id:"24928001",name:"refreshempty",font_class:"refreshempty",unicode:"e6bf",unicode_decimal:59071},{icon_id:"24926853",name:"location-ellipse",font_class:"location-filled",unicode:"e6af",unicode_decimal:59055},{icon_id:"24926735",name:"person-filled",font_class:"person-filled",unicode:"e69d",unicode_decimal:59037},{icon_id:"24926703",name:"personadd-filled",font_class:"personadd-filled",unicode:"e698",unicode_decimal:59032},{icon_id:"24923351",name:"back",font_class:"back",unicode:"e6b9",unicode_decimal:59065},{icon_id:"24923352",name:"forward",font_class:"forward",unicode:"e6ba",unicode_decimal:59066},{icon_id:"24923353",name:"arrowthinright",font_class:"arrow-right",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923353",name:"arrowthinright",font_class:"arrowthinright",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrow-left",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrowthinleft",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923355",name:"arrowthinup",font_class:"arrow-up",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923355",name:"arrowthinup",font_class:"arrowthinup",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923356",name:"arrowthindown",font_class:"arrow-down",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923356",name:"arrowthindown",font_class:"arrowthindown",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923349",name:"arrowdown",font_class:"bottom",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923349",name:"arrowdown",font_class:"arrowdown",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923346",name:"arrowright",font_class:"right",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923346",name:"arrowright",font_class:"arrowright",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923347",name:"arrowup",font_class:"top",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923347",name:"arrowup",font_class:"arrowup",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923348",name:"arrowleft",font_class:"left",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923348",name:"arrowleft",font_class:"arrowleft",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923334",name:"eye",font_class:"eye",unicode:"e651",unicode_decimal:58961},{icon_id:"24923335",name:"eye-filled",font_class:"eye-filled",unicode:"e66a",unicode_decimal:58986},{icon_id:"24923336",name:"eye-slash",font_class:"eye-slash",unicode:"e6b3",unicode_decimal:59059},{icon_id:"24923337",name:"eye-slash-filled",font_class:"eye-slash-filled",unicode:"e6b4",unicode_decimal:59060},{icon_id:"24923305",name:"info-filled",font_class:"info-filled",unicode:"e649",unicode_decimal:58953},{icon_id:"24923299",name:"reload-01",font_class:"reload",unicode:"e6b2",unicode_decimal:59058},{icon_id:"24923195",name:"mic_slash_fill",font_class:"micoff-filled",unicode:"e6b0",unicode_decimal:59056},{icon_id:"24923165",name:"map-pin-ellipse",font_class:"map-pin-ellipse",unicode:"e6ac",unicode_decimal:59052},{icon_id:"24923166",name:"map-pin",font_class:"map-pin",unicode:"e6ad",unicode_decimal:59053},{icon_id:"24923167",name:"location",font_class:"location",unicode:"e6ae",unicode_decimal:59054},{icon_id:"24923064",name:"starhalf",font_class:"starhalf",unicode:"e683",unicode_decimal:59011},{icon_id:"24923065",name:"star",font_class:"star",unicode:"e688",unicode_decimal:59016},{icon_id:"24923066",name:"star-filled",font_class:"star-filled",unicode:"e68f",unicode_decimal:59023},{icon_id:"24899646",name:"a-rilidaka",font_class:"calendar",unicode:"e6a0",unicode_decimal:59040},{icon_id:"24899647",name:"fire",font_class:"fire",unicode:"e6a1",unicode_decimal:59041},{icon_id:"24899648",name:"paihangbang",font_class:"medal",unicode:"e6a2",unicode_decimal:59042},{icon_id:"24899649",name:"font",font_class:"font",unicode:"e6a3",unicode_decimal:59043},{icon_id:"24899650",name:"gift",font_class:"gift",unicode:"e6a4",unicode_decimal:59044},{icon_id:"24899651",name:"link",font_class:"link",unicode:"e6a5",unicode_decimal:59045},{icon_id:"24899652",name:"notification",font_class:"notification",unicode:"e6a6",unicode_decimal:59046},{icon_id:"24899653",name:"staff",font_class:"staff",unicode:"e6a7",unicode_decimal:59047},{icon_id:"24899654",name:"VIP",font_class:"vip",unicode:"e6a8",unicode_decimal:59048},{icon_id:"24899655",name:"folder_add",font_class:"folder-add",unicode:"e6a9",unicode_decimal:59049},{icon_id:"24899656",name:"tune",font_class:"tune",unicode:"e6aa",unicode_decimal:59050},{icon_id:"24899657",name:"shimingrenzheng",font_class:"auth",unicode:"e6ab",unicode_decimal:59051},{icon_id:"24899565",name:"person",font_class:"person",unicode:"e699",unicode_decimal:59033},{icon_id:"24899566",name:"email-filled",font_class:"email-filled",unicode:"e69a",unicode_decimal:59034},{icon_id:"24899567",name:"phone-filled",font_class:"phone-filled",unicode:"e69b",unicode_decimal:59035},{icon_id:"24899568",name:"phone",font_class:"phone",unicode:"e69c",unicode_decimal:59036},{icon_id:"24899570",name:"email",font_class:"email",unicode:"e69e",unicode_decimal:59038},{icon_id:"24899571",name:"personadd",font_class:"personadd",unicode:"e69f",unicode_decimal:59039},{icon_id:"24899558",name:"chatboxes-filled",font_class:"chatboxes-filled",unicode:"e692",unicode_decimal:59026},{icon_id:"24899559",name:"contact",font_class:"contact",unicode:"e693",unicode_decimal:59027},{icon_id:"24899560",name:"chatbubble-filled",font_class:"chatbubble-filled",unicode:"e694",unicode_decimal:59028},{icon_id:"24899561",name:"contact-filled",font_class:"contact-filled",unicode:"e695",unicode_decimal:59029},{icon_id:"24899562",name:"chatboxes",font_class:"chatboxes",unicode:"e696",unicode_decimal:59030},{icon_id:"24899563",name:"chatbubble",font_class:"chatbubble",unicode:"e697",unicode_decimal:59031},{icon_id:"24881290",name:"upload-filled",font_class:"upload-filled",unicode:"e68e",unicode_decimal:59022},{icon_id:"24881292",name:"upload",font_class:"upload",unicode:"e690",unicode_decimal:59024},{icon_id:"24881293",name:"weixin",font_class:"weixin",unicode:"e691",unicode_decimal:59025},{icon_id:"24881274",name:"compose",font_class:"compose",unicode:"e67f",unicode_decimal:59007},{icon_id:"24881275",name:"qq",font_class:"qq",unicode:"e680",unicode_decimal:59008},{icon_id:"24881276",name:"download-filled",font_class:"download-filled",unicode:"e681",unicode_decimal:59009},{icon_id:"24881277",name:"pengyouquan",font_class:"pyq",unicode:"e682",unicode_decimal:59010},{icon_id:"24881279",name:"sound",font_class:"sound",unicode:"e684",unicode_decimal:59012},{icon_id:"24881280",name:"trash-filled",font_class:"trash-filled",unicode:"e685",unicode_decimal:59013},{icon_id:"24881281",name:"sound-filled",font_class:"sound-filled",unicode:"e686",unicode_decimal:59014},{icon_id:"24881282",name:"trash",font_class:"trash",unicode:"e687",unicode_decimal:59015},{icon_id:"24881284",name:"videocam-filled",font_class:"videocam-filled",unicode:"e689",unicode_decimal:59017},{icon_id:"24881285",name:"spinner-cycle",font_class:"spinner-cycle",unicode:"e68a",unicode_decimal:59018},{icon_id:"24881286",name:"weibo",font_class:"weibo",unicode:"e68b",unicode_decimal:59019},{icon_id:"24881288",name:"videocam",font_class:"videocam",unicode:"e68c",unicode_decimal:59020},{icon_id:"24881289",name:"download",font_class:"download",unicode:"e68d",unicode_decimal:59021},{icon_id:"24879601",name:"help",font_class:"help",unicode:"e679",unicode_decimal:59001},{icon_id:"24879602",name:"navigate-filled",font_class:"navigate-filled",unicode:"e67a",unicode_decimal:59002},{icon_id:"24879603",name:"plusempty",font_class:"plusempty",unicode:"e67b",unicode_decimal:59003},{icon_id:"24879604",name:"smallcircle",font_class:"smallcircle",unicode:"e67c",unicode_decimal:59004},{icon_id:"24879605",name:"minus-filled",font_class:"minus-filled",unicode:"e67d",unicode_decimal:59005},{icon_id:"24879606",name:"micoff",font_class:"micoff",unicode:"e67e",unicode_decimal:59006},{icon_id:"24879588",name:"closeempty",font_class:"closeempty",unicode:"e66c",unicode_decimal:58988},{icon_id:"24879589",name:"clear",font_class:"clear",unicode:"e66d",unicode_decimal:58989},{icon_id:"24879590",name:"navigate",font_class:"navigate",unicode:"e66e",unicode_decimal:58990},{icon_id:"24879591",name:"minus",font_class:"minus",unicode:"e66f",unicode_decimal:58991},{icon_id:"24879592",name:"image",font_class:"image",unicode:"e670",unicode_decimal:58992},{icon_id:"24879593",name:"mic",font_class:"mic",unicode:"e671",unicode_decimal:58993},{icon_id:"24879594",name:"paperplane",font_class:"paperplane",unicode:"e672",unicode_decimal:58994},{icon_id:"24879595",name:"close",font_class:"close",unicode:"e673",unicode_decimal:58995},{icon_id:"24879596",name:"help-filled",font_class:"help-filled",unicode:"e674",unicode_decimal:58996},{icon_id:"24879597",name:"plus-filled",font_class:"paperplane-filled",unicode:"e675",unicode_decimal:58997},{icon_id:"24879598",name:"plus",font_class:"plus",unicode:"e676",unicode_decimal:58998},{icon_id:"24879599",name:"mic-filled",font_class:"mic-filled",unicode:"e677",unicode_decimal:58999},{icon_id:"24879600",name:"image-filled",font_class:"image-filled",unicode:"e678",unicode_decimal:59e3},{icon_id:"24855900",name:"locked-filled",font_class:"locked-filled",unicode:"e668",unicode_decimal:58984},{icon_id:"24855901",name:"info",font_class:"info",unicode:"e669",unicode_decimal:58985},{icon_id:"24855903",name:"locked",font_class:"locked",unicode:"e66b",unicode_decimal:58987},{icon_id:"24855884",name:"camera-filled",font_class:"camera-filled",unicode:"e658",unicode_decimal:58968},{icon_id:"24855885",name:"chat-filled",font_class:"chat-filled",unicode:"e659",unicode_decimal:58969},{icon_id:"24855886",name:"camera",font_class:"camera",unicode:"e65a",unicode_decimal:58970},{icon_id:"24855887",name:"circle",font_class:"circle",unicode:"e65b",unicode_decimal:58971},{icon_id:"24855888",name:"checkmarkempty",font_class:"checkmarkempty",unicode:"e65c",unicode_decimal:58972},{icon_id:"24855889",name:"chat",font_class:"chat",unicode:"e65d",unicode_decimal:58973},{icon_id:"24855890",name:"circle-filled",font_class:"circle-filled",unicode:"e65e",unicode_decimal:58974},{icon_id:"24855891",name:"flag",font_class:"flag",unicode:"e65f",unicode_decimal:58975},{icon_id:"24855892",name:"flag-filled",font_class:"flag-filled",unicode:"e660",unicode_decimal:58976},{icon_id:"24855893",name:"gear-filled",font_class:"gear-filled",unicode:"e661",unicode_decimal:58977},{icon_id:"24855894",name:"home",font_class:"home",unicode:"e662",unicode_decimal:58978},{icon_id:"24855895",name:"home-filled",font_class:"home-filled",unicode:"e663",unicode_decimal:58979},{icon_id:"24855896",name:"gear",font_class:"gear",unicode:"e664",unicode_decimal:58980},{icon_id:"24855897",name:"smallcircle-filled",font_class:"smallcircle-filled",unicode:"e665",unicode_decimal:58981},{icon_id:"24855898",name:"map-filled",font_class:"map-filled",unicode:"e666",unicode_decimal:58982},{icon_id:"24855899",name:"map",font_class:"map",unicode:"e667",unicode_decimal:58983},{icon_id:"24855825",name:"refresh-filled",font_class:"refresh-filled",unicode:"e656",unicode_decimal:58966},{icon_id:"24855826",name:"refresh",font_class:"refresh",unicode:"e657",unicode_decimal:58967},{icon_id:"24855808",name:"cloud-upload",font_class:"cloud-upload",unicode:"e645",unicode_decimal:58949},{icon_id:"24855809",name:"cloud-download-filled",font_class:"cloud-download-filled",unicode:"e646",unicode_decimal:58950},{icon_id:"24855810",name:"cloud-download",font_class:"cloud-download",unicode:"e647",unicode_decimal:58951},{icon_id:"24855811",name:"cloud-upload-filled",font_class:"cloud-upload-filled",unicode:"e648",unicode_decimal:58952},{icon_id:"24855813",name:"redo",font_class:"redo",unicode:"e64a",unicode_decimal:58954},{icon_id:"24855814",name:"images-filled",font_class:"images-filled",unicode:"e64b",unicode_decimal:58955},{icon_id:"24855815",name:"undo-filled",font_class:"undo-filled",unicode:"e64c",unicode_decimal:58956},{icon_id:"24855816",name:"more",font_class:"more",unicode:"e64d",unicode_decimal:58957},{icon_id:"24855817",name:"more-filled",font_class:"more-filled",unicode:"e64e",unicode_decimal:58958},{icon_id:"24855818",name:"undo",font_class:"undo",unicode:"e64f",unicode_decimal:58959},{icon_id:"24855819",name:"images",font_class:"images",unicode:"e650",unicode_decimal:58960},{icon_id:"24855821",name:"paperclip",font_class:"paperclip",unicode:"e652",unicode_decimal:58962},{icon_id:"24855822",name:"settings",font_class:"settings",unicode:"e653",unicode_decimal:58963},{icon_id:"24855823",name:"search",font_class:"search",unicode:"e654",unicode_decimal:58964},{icon_id:"24855824",name:"redo-filled",font_class:"redo-filled",unicode:"e655",unicode_decimal:58965},{icon_id:"24841702",name:"list",font_class:"list",unicode:"e644",unicode_decimal:58948},{icon_id:"24841489",name:"mail-open-filled",font_class:"mail-open-filled",unicode:"e63a",unicode_decimal:58938},{icon_id:"24841491",name:"hand-thumbsdown-filled",font_class:"hand-down-filled",unicode:"e63c",unicode_decimal:58940},{icon_id:"24841492",name:"hand-thumbsdown",font_class:"hand-down",unicode:"e63d",unicode_decimal:58941},{icon_id:"24841493",name:"hand-thumbsup-filled",font_class:"hand-up-filled",unicode:"e63e",unicode_decimal:58942},{icon_id:"24841494",name:"hand-thumbsup",font_class:"hand-up",unicode:"e63f",unicode_decimal:58943},{icon_id:"24841496",name:"heart-filled",font_class:"heart-filled",unicode:"e641",unicode_decimal:58945},{icon_id:"24841498",name:"mail-open",font_class:"mail-open",unicode:"e643",unicode_decimal:58947},{icon_id:"24841488",name:"heart",font_class:"heart",unicode:"e639",unicode_decimal:58937},{icon_id:"24839963",name:"loop",font_class:"loop",unicode:"e633",unicode_decimal:58931},{icon_id:"24839866",name:"pulldown",font_class:"pulldown",unicode:"e632",unicode_decimal:58930},{icon_id:"24813798",name:"scan",font_class:"scan",unicode:"e62a",unicode_decimal:58922},{icon_id:"24813786",name:"bars",font_class:"bars",unicode:"e627",unicode_decimal:58919},{icon_id:"24813788",name:"cart-filled",font_class:"cart-filled",unicode:"e629",unicode_decimal:58921},{icon_id:"24813790",name:"checkbox",font_class:"checkbox",unicode:"e62b",unicode_decimal:58923},{icon_id:"24813791",name:"checkbox-filled",font_class:"checkbox-filled",unicode:"e62c",unicode_decimal:58924},{icon_id:"24813794",name:"shop",font_class:"shop",unicode:"e62f",unicode_decimal:58927},{icon_id:"24813795",name:"headphones",font_class:"headphones",unicode:"e630",unicode_decimal:58928},{icon_id:"24813796",name:"cart",font_class:"cart",unicode:"e631",unicode_decimal:58929}]};t.default=r},33:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(18)),a=i(n(22));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,c,"next",e)}function c(e){o(i,r,a,s,c,"throw",e)}s(void 0)}))}}var c=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/wx/addr/tree",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/wx/addr/buildings",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/wx/addr/houses",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.post({url:"/user/register",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.post({url:"/user/edit",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=s(r.default.mark((function e(){var t;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/user/info"});case 2:return t=e.sent,e.abrupt("return",t.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),h={addrTreeSelect:c,buildingList:u,houseList:l,addUser:f,getUser:p,updateUser:d};t.default=h},334:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(18));function a(e){return e&&e.__esModule?e:{default:e}}function i(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}}),t&&o(e,t)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function s(e){var t=l();return function(){var n,r=f(e);if(t){var a=f(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?u(e):t}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){d(i,r,a,o,s,"next",e)}function s(e){d(i,r,a,o,s,"throw",e)}o(void 0)}))}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}var m={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")},y={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function _(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 a in e){var i=new RegExp("{"+a+"}");r=r.replace(i,e[a])}return r}function b(e,t){return void 0===e||null===e||("string"===typeof e&&!e||(!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length))}var w={integer:function(e){return w.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 w.number(e)&&!w.integer(e)},array:function(e){return Array.isArray(e)},object:function(e){return"object"===typeof e&&!w.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(m.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(m.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(m.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}},x=function(){function e(t){h(this,e),this._message=t}return g(e,[{key:"validateRule",value:function(){var e=p(r.default.mark((function e(t,n,a,i,o){var s,c,u,l,f,d,p,h,v;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=null,c=n.rules,u=c.findIndex((function(e){return e.required})),!(u<0)){e.next=8;break}if(null!==a&&void 0!==a){e.next=6;break}return e.abrupt("return",s);case 6:if("string"!==typeof a||a.length){e.next=8;break}return e.abrupt("return",s);case 8:if(l=this._message,void 0!==c){e.next=11;break}return e.abrupt("return",l["default"]);case 11:f=0;case 12:if(!(f<c.length)){e.next=35;break}if(d=c[f],p=this._getValidateType(d),Object.assign(d,{label:n.label||'["'.concat(t,'"]')}),!k[p]){e.next=20;break}if(s=k[p](d,a,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(a,o,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,a,i,o,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,a,i){return e.apply(this,arguments)}return t}()},{key:"validateFunction",value:function(){var e=p(r.default.mark((function e(t,n,a,i,o){var s,c,u;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=null,e.prev=1,c=null,e.next=5,t.validateFunction(t,n,i||a,(function(e){c=e}));case 5:u=e.sent,(c||"string"===typeof u&&u||!1===u)&&(s=this._getMessage(t,c||u,o)),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](1),s=this._getMessage(t,e.t0.message,o);case 12:return e.abrupt("return",s);case 13:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(t,n,r,a,i){return e.apply(this,arguments)}return t}()},{key:"_getMessage",value:function(e,t,n){return _(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}(),k={required:function(e,t,n){return e.required&&b(t,e.format||typeof t)?_(e,e.errorMessage||n.required):null},range:function(e,t,n){for(var r=e.range,a=e.errorMessage,i=new Array(r.length),o=0;o<r.length;o++){var s=r[o];w.object(s)&&void 0!==s.value?i[o]=s.value:i[o]=s}var c=!1;return Array.isArray(t)?c=new Set(t.concat(i)).size===i.length:i.indexOf(t)>-1&&(c=!0),c?null:_(e,a||n["enum"])},rangeNumber:function(e,t,n){if(!w.number(t))return _(e,e.errorMessage||n.pattern.mismatch);var r=e.minimum,a=e.maximum,i=e.exclusiveMinimum,o=e.exclusiveMaximum,s=i?t<=r:t<r,c=o?t>=a:t>a;return void 0!==r&&s?_(e,e.errorMessage||n["number"][i?"exclusiveMinimum":"minimum"]):void 0!==a&&c?_(e,e.errorMessage||n["number"][o?"exclusiveMaximum":"maximum"]):void 0!==r&&void 0!==a&&(s||c)?_(e,e.errorMessage||n["number"].range):null},rangeLength:function(e,t,n){if(!w.string(t)&&!w.array(t))return _(e,e.errorMessage||n.pattern.mismatch);var r=e.minLength,a=e.maxLength,i=t.length;return void 0!==r&&i<r?_(e,e.errorMessage||n["length"].minLength):void 0!==a&&i>a?_(e,e.errorMessage||n["length"].maxLength):void 0!==r&&void 0!==a&&(i<r||i>a)?_(e,e.errorMessage||n["length"].range):null},pattern:function(e,t,n){return w["pattern"](e.pattern,t)?null:_(e,e.errorMessage||n.pattern.mismatch)},format:function(e,t,n){var r=Object.keys(w),a=y[e.format]?y[e.format]:e.format||e.arrayType;return r.indexOf(a)>-1&&!w[a](t)?_(e,e.errorMessage||n.typeError):null},arrayTypeFormat:function(e,t,n){if(!Array.isArray(t))return _(e,e.errorMessage||n.typeError);for(var r=0;r<t.length;r++){var a=t[r],i=this.format(e,a,n);if(null!==i)return i}return null}},O=function(e){i(n,e);var t=s(n);function n(e,r){var a;return h(this,n),a=t.call(this,n.message),a._schema=e,a._options=r||null,a}return g(n,[{key:"updateSchema",value:function(e){this._schema=e}},{key:"validate",value:function(){var e=p(r.default.mark((function e(t,n){var a;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this._checkFieldInSchema(t),a){e.next=5;break}return e.next=4,this.invokeValidate(t,!1,n);case 4:a=e.sent;case 5:return e.abrupt("return",a.length?a[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=p(r.default.mark((function e(t,n){var a;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this._checkFieldInSchema(t),a){e.next=5;break}return e.next=4,this.invokeValidate(t,!0,n);case 4:a=e.sent;case 5:return e.abrupt("return",a);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=p(r.default.mark((function e(t,n){var a;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this._checkFieldInSchema(t),a){e.next=5;break}return e.next=4,this.invokeValidateUpdate(t,!1,n);case 4:a=e.sent;case 5:return e.abrupt("return",a.length?a[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=p(r.default.mark((function e(t,n,a){var i,o,s,c,u;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=[],o=this._schema,e.t0=r.default.keys(o);case 3:if((e.t1=e.t0()).done){e.next=15;break}return s=e.t1.value,c=o[s],e.next=8,this.validateRule(s,c,t[s],t,a);case 8:if(u=e.sent,null==u){e.next=13;break}if(i.push({key:s,errorMessage:u}),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=p(r.default.mark((function e(t,n,a){var i,o,s;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=[],e.t0=r.default.keys(t);case 2:if((e.t1=e.t0()).done){e.next=13;break}return o=e.t1.value,e.next=6,this.validateRule(o,this._schema[o],t[o],t,a);case 6:if(s=e.sent,null==s){e.next=11;break}if(i.push({key:o,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 a=t.filter((function(e){return r.indexOf(e)<0})),i=_({field:JSON.stringify(a)},n.message.TAG+n.message["defaultInvalid"]);return[{key:"invalid",errorMessage:i}]}}]),n}(x);function S(){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}格式不匹配"}}}O.message=new S;var A=O;t.default=A},335:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEqual=t.type=t.isRequiredField=t.isBoolean=t.isNumber=t.objGet=t.objSet=t.name2arr=t.rawData=t.isRealName=t.realName=t.getDataValueType=t.getDataValue=t.setDataValue=t.getValue=t.typeFilter=t.deepCopy=void 0;var r=function(e){return JSON.parse(JSON.stringify(e))};t.deepCopy=r;var a=function(e){return"int"===e||"double"===e||"number"===e||"timestamp"===e};t.typeFilter=a;var i=function(e,t,n){var r=n.find((function(e){return e.format&&a(e.format)})),i=n.find((function(e){return e.format&&"boolean"===e.format||"bool"===e.format}));return r&&(t=t||0===t?g(Number(t))?Number(t):t:null),i&&(t=!!m(t)&&t),t};t.getValue=i;var o=function(e,t,n){return t[e]=n,n||""};t.setDataValue=o;var s=function(e,t){return v(t,e)};t.getDataValue=s;var c=function(e,t){var n=s(e,t);return{type:_(n),value:n}};t.getDataValueType=c;var u=function(e){var t=h(e);if("object"===typeof 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=u;var l=function(e){var t=/^_formdata_#*/;return t.test(e)};t.isRealName=l;var f=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 a=d(r);p(n,a,t[r])}return n};t.rawData=f;var d=function(e){var t=e.replace("_formdata_#","");return t=t.split("#").map((function(e){return g(e)?Number(e):e})),t};t.name2arr=d;var p=function(e,t,n){return"object"!==typeof e||h(t).reduce((function(e,t,r,a){return r===a.length-1?(e[t]=n,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(a[r+1])?[]:{}),e[t])}),e),e};function h(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}t.objSet=p;var v=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"undefined",r=h(t),a=r.reduce((function(e,t){return(e||{})[t]}),e);return a&&void 0===a?n:a};t.objGet=v;var g=function(e){return!isNaN(Number(e))};t.isNumber=g;var m=function(e){return"boolean"===typeof e};t.isBoolean=m;var y=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=y;var _=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"===typeof e||"function"===typeof e?t[Object.prototype.toString.call(e)]||"object":typeof e};t.type=_;var b=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 a=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(a.length!=i.length)return!1;for(var o=0;o<a.length;o++){var s=a[o];if(e[s]!==t[s])return!1}return!0}return"[object Array]"==n?e.toString()==t.toString():void 0};t.isEqual=b},350:function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=s(n(18)),i=n(3),o=s(n(351));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){c(i,r,a,o,s,"next",e)}function s(e){c(i,r,a,o,s,"throw",e)}o(void 0)}))}}function l(e){return p(e)||d(e)||v(e)||f()}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function p(e){if(Array.isArray(e))return g(e)}function h(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=v(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function v(e,t){if(e){if("string"===typeof e)return g(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)?g(e,t):void 0}}function g(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 m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function _(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(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}}),t&&I(e,t)}function O(e){var t=j();return function(){var n,r=$(e);if(t){var a=$(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?A(e):t}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e){var t="function"===typeof Map?new Map:void 0;return P=function(e){if(null===e||!E(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return T(e,arguments,$(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),I(n,e)},P(e)}function T(e,t,n){return T=j()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=Function.bind.apply(e,r),i=new a;return n&&I(i,n.prototype),i},T.apply(null,arguments)}function j(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function E(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function I(e,t){return I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},I(e,t)}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$(e)}function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function D(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 L=D((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={},a=r.lib={},i=a.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)}},o=a.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,a=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<a;i++){var o=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=o<<24-(r+i)%4*8}else for(i=0;i<a;i+=4)t[r+i>>>2]=n[i>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],a=function(t){t=t;var n=987654321,r=4294967295;return function(){var a=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return a/=4294967296,(a+=.5)*(e.random()>.5?1:-1)}},i=0;i<t;i+=4){var s=a(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new o.init(r,t)}}),s=r.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a<n;a++){var i=t[a>>>2]>>>24-a%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 o.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a<n;a++){var i=t[a>>>2]>>>24-a%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 o.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,a=n.sigBytes,i=this.blockSize,s=a/(4*i),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*i,u=e.min(4*c,a);if(c){for(var l=0;l<c;l+=i)this._doProcessBlock(r,l);var f=r.splice(0,c);n.sigBytes-=u}return new o.init(f,u)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.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)})),R=(D((function(e,t){var n;e.exports=(n=L,function(e){var t=n,r=t.lib,a=r.WordArray,i=r.Hasher,o=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=o.MD5=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,a=e[r];e[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var i=this._hash.words,o=e[t+0],c=e[t+1],p=e[t+2],h=e[t+3],v=e[t+4],g=e[t+5],m=e[t+6],y=e[t+7],_=e[t+8],b=e[t+9],w=e[t+10],x=e[t+11],k=e[t+12],O=e[t+13],S=e[t+14],A=e[t+15],P=i[0],T=i[1],j=i[2],E=i[3];P=u(P,T,j,E,o,7,s[0]),E=u(E,P,T,j,c,12,s[1]),j=u(j,E,P,T,p,17,s[2]),T=u(T,j,E,P,h,22,s[3]),P=u(P,T,j,E,v,7,s[4]),E=u(E,P,T,j,g,12,s[5]),j=u(j,E,P,T,m,17,s[6]),T=u(T,j,E,P,y,22,s[7]),P=u(P,T,j,E,_,7,s[8]),E=u(E,P,T,j,b,12,s[9]),j=u(j,E,P,T,w,17,s[10]),T=u(T,j,E,P,x,22,s[11]),P=u(P,T,j,E,k,7,s[12]),E=u(E,P,T,j,O,12,s[13]),j=u(j,E,P,T,S,17,s[14]),P=l(P,T=u(T,j,E,P,A,22,s[15]),j,E,c,5,s[16]),E=l(E,P,T,j,m,9,s[17]),j=l(j,E,P,T,x,14,s[18]),T=l(T,j,E,P,o,20,s[19]),P=l(P,T,j,E,g,5,s[20]),E=l(E,P,T,j,w,9,s[21]),j=l(j,E,P,T,A,14,s[22]),T=l(T,j,E,P,v,20,s[23]),P=l(P,T,j,E,b,5,s[24]),E=l(E,P,T,j,S,9,s[25]),j=l(j,E,P,T,h,14,s[26]),T=l(T,j,E,P,_,20,s[27]),P=l(P,T,j,E,O,5,s[28]),E=l(E,P,T,j,p,9,s[29]),j=l(j,E,P,T,y,14,s[30]),P=f(P,T=l(T,j,E,P,k,20,s[31]),j,E,g,4,s[32]),E=f(E,P,T,j,_,11,s[33]),j=f(j,E,P,T,x,16,s[34]),T=f(T,j,E,P,S,23,s[35]),P=f(P,T,j,E,c,4,s[36]),E=f(E,P,T,j,v,11,s[37]),j=f(j,E,P,T,y,16,s[38]),T=f(T,j,E,P,w,23,s[39]),P=f(P,T,j,E,O,4,s[40]),E=f(E,P,T,j,o,11,s[41]),j=f(j,E,P,T,h,16,s[42]),T=f(T,j,E,P,m,23,s[43]),P=f(P,T,j,E,b,4,s[44]),E=f(E,P,T,j,k,11,s[45]),j=f(j,E,P,T,A,16,s[46]),P=d(P,T=f(T,j,E,P,p,23,s[47]),j,E,o,6,s[48]),E=d(E,P,T,j,y,10,s[49]),j=d(j,E,P,T,S,15,s[50]),T=d(T,j,E,P,g,21,s[51]),P=d(P,T,j,E,k,6,s[52]),E=d(E,P,T,j,h,10,s[53]),j=d(j,E,P,T,w,15,s[54]),T=d(T,j,E,P,c,21,s[55]),P=d(P,T,j,E,_,6,s[56]),E=d(E,P,T,j,A,10,s[57]),j=d(j,E,P,T,m,15,s[58]),T=d(T,j,E,P,O,21,s[59]),P=d(P,T,j,E,v,6,s[60]),E=d(E,P,T,j,x,10,s[61]),j=d(j,E,P,T,p,15,s[62]),T=d(T,j,E,P,b,21,s[63]),i[0]=i[0]+P|0,i[1]=i[1]+T|0,i[2]=i[2]+j|0,i[3]=i[3]+E|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var i=e.floor(r/4294967296),o=r;n[15+(a+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(a+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,a,i,o){var s=e+(t&n|~t&r)+a+o;return(s<<i|s>>>32-i)+t}function l(e,t,n,r,a,i,o){var s=e+(t&r|n&~r)+a+o;return(s<<i|s>>>32-i)+t}function f(e,t,n,r,a,i,o){var s=e+(t^n^r)+a+o;return(s<<i|s>>>32-i)+t}function d(e,t,n,r,a,i,o){var s=e+(n^(t|~r))+a+o;return(s<<i|s>>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),n.MD5)})),D((function(e,t){var n,r,a;e.exports=(r=(n=L).lib.Base,a=n.enc.Utf8,void(n.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),s=i.words,c=o.words,u=0;u<n;u++)s[u]^=1549556828,c[u]^=909522486;i.sigBytes=o.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))})),D((function(e,t){e.exports=L.HmacMD5}))),M="FUNCTION",N="OBJECT",U="CLIENT_DB";function F(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function q(e){return"object"===F(e)}function B(e){return e&&"string"==typeof e?JSON.parse(e):e}var V,H=!0,z="mp-weixin";switch(z){case"h5":V="web";break;case"app-plus":V="app";break;default:V=z}var K=B(void 0),W=B([])||[],J=!0,G="";try{var Y=n(352).default||n(352);G=Y.appid}catch(Yn){}var X={};function Z(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=X,n=e,Object.prototype.hasOwnProperty.call(t,n)||(X[e]=r),X[e]}"app"===V&&(X=r._globalUniCloudObj?r._globalUniCloudObj:r._globalUniCloudObj={});var Q=["invoke","success","fail","complete"],ee=Z("_globalUniCloudInterceptor");function te(e,t){ee[e]||(ee[e]={}),q(t)&&Object.keys(t).forEach((function(n){Q.indexOf(n)>-1&&function(e,t,n){var r=ee[e][t];r||(r=ee[e][t]=[]),-1===r.indexOf(n)&&"function"==typeof n&&r.push(n)}(e,n,t[n])}))}function ne(e,t){ee[e]||(ee[e]={}),q(t)?Object.keys(t).forEach((function(n){Q.indexOf(n)>-1&&function(e,t,n){var r=ee[e][t];if(r){var a=r.indexOf(n);a>-1&&r.splice(a,1)}}(e,n,t[n])})):delete ee[e]}function re(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function ae(e,t){return ee[e]&&ee[e][t]||[]}function ie(e){te("callObject",e)}var oe=Z("_globalUniCloudListener"),se="response",ce="needLogin",ue="refreshToken",le="clientdb",fe="cloudfunction",de="cloudobject";function pe(e){return oe[e]||(oe[e]=[]),oe[e]}function he(e,t){var n=pe(e);n.includes(t)||n.push(t)}function ve(e,t){var n=pe(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function ge(e,t){for(var n=pe(e),r=0;r<n.length;r++)(0,n[r])(t)}var me=!1,ye=new Promise((function(e){me&&e(),function t(){if("function"==typeof getCurrentPages){var n=getCurrentPages();n&&n[0]&&(me=!0,e())}me||setTimeout((function(){t()}),30)}()}));function _e(){return ye}function be(e,t){return t?function(n){var r=this,a=!1;if("callFunction"===t){var i=n&&n.type||M;a=i!==M}var o,s="callFunction"===t&&!a;o=this.isReady?Promise.resolve():this.initUniCloud,n=n||{};var c=o.then((function(){return a?Promise.resolve():re(ae(t,"invoke"),n)})).then((function(){return e.call(r,n)})).then((function(e){return a?Promise.resolve(e):re(ae(t,"success"),e).then((function(){return re(ae(t,"complete"),e)})).then((function(){return s&&ge(se,{type:fe,content:e}),Promise.resolve(e)}))}),(function(e){return a?Promise.reject(e):re(ae(t,"fail"),e).then((function(){return re(ae(t,"complete"),e)})).then((function(){return ge(se,{type:fe,content:e}),Promise.reject(e)}))}));if(!(n.success||n.fail||n.complete))return c;c.then((function(e){n.success&&n.success(e),n.complete&&n.complete(e),s&&ge(se,{type:fe,content:e})}),(function(e){n.fail&&n.fail(e),n.complete&&n.complete(e),s&&ge(se,{type:fe,content:e})}))}:function(t){if(!((t=t||{}).success||t.fail||t.complete))return e.call(this,t);e.call(this,t).then((function(e){t.success&&t.success(e),t.complete&&t.complete(e)}),(function(e){t.fail&&t.fail(e),t.complete&&t.complete(e)}))}}var we,xe=function(e){k(n,e);var t=O(n);function n(e){var r;return x(this,n),r=t.call(this,e.message),r.errMsg=e.message||"",r.errCode=r.code=e.code||"SYSTEM_ERROR",r.requestId=e.requestId,r}return n}(P(Error));function ke(){var e,t;try{if(r.getLaunchOptionsSync){if(r.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var n=r.getLaunchOptionsSync(),a=n.scene,i=n.channel;e=i,t=a}}catch(e){}return{channel:e,scene:t}}function Oe(){var e=r.getLocale&&r.getLocale()||"en";if(we)return b(b({},we),{},{locale:e,LOCALE:e});for(var t=r.getSystemInfoSync(),n=t.deviceId,a=t.osName,i=t.uniPlatform,o=t.appId,s=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"],c=0;c<s.length;c++)delete t[s[c]];return we=b(b({PLATFORM:i,OS:a,APPID:o,DEVICEID:n},ke()),t),b(b({},we),{},{locale:e,LOCALE:e})}var Se,Ae={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),R(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,r){t(Object.assign(e,{complete:function(e){e||(e={}),H&&"web"===V&&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)return r(new xe({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));var a=e.data;if(a.error)return r(new xe({code:a.error.code,message:a.error.message,requestId:t}));a.result=a.data,a.requestId=t,delete a.data,n(a)}}))}))}},Pe={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()}},Te={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},je=(0,i.initVueI18n)({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:Te,fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ja:Te},"zh-Hans"),Ee=je.t,Ie=function(){function e(t){x(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(Ee("uniCloud.init.paramRequired",{param:e}))})),this.config=Object.assign({},{endpoint:"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=Pe,this._getAccessTokenPromise=null,this._getAccessTokenPromiseStatus=null}return y(e,[{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return Ae.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"]=Ae.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"]=Ae.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){var e=this;return"pending"===this._getAccessTokenPromiseStatus||(this._getAccessTokenPromiseStatus="pending",this._getAccessTokenPromise=this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(t){return new Promise((function(n,r){t.result&&t.result.accessToken?(e.setAccessToken(t.result.accessToken),e._getAccessTokenPromiseStatus="fulfilled",n(e.accessToken)):(e._getAccessTokenPromiseStatus="rejected",r(new xe({code:"AUTH_FAILED",message:"获取accessToken失败"})))}))}),(function(t){return e._getAccessTokenPromiseStatus="rejected",Promise.reject(t)}))),this._getAccessTokenPromise}},{key:"authorize",value:function(){this.getAccessToken()}},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,a=e.name,i=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:n,formData:r,name:a,filePath:i,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):c(new xe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new xe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(e){var t=this,n=e.filePath,r=e.cloudPath,a=e.fileType,i=void 0===a?"image":a,o=e.onUploadProgress,s=e.config;if("string"!==F(r))throw new xe({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(r=r.trim()))throw new xe({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});if(/:\/\//.test(r))throw new xe({code:"INVALID_PARAM",message:"cloudPath不合法"});var c,u,l=s&&s.envType||this.config.envType;return this.getOSSUploadOptionsFromPath({env:l,filename:r}).then((function(e){var r=e.result;c=r.id,u="https://"+r.cdnDomain+"/"+r.ossPath;var a={url:"https://"+r.host,formData:{"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:r.accessKeyId,Signature:r.signature,host:r.host,id:c,key:r.ossPath,policy:r.policy,success_action_status:200},fileName:"file",name:"file",filePath:n,fileType:i};return t.uploadFileToOSS(Object.assign({},a,{onUploadProgress:o}))})).then((function(){return t.reportOSSUpload({id:c})})).then((function(e){return new Promise((function(t,r){e.success?t({success:!0,filePath:n,fileID:u}):r(new xe({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({id:t[0]})};return this.request(this.setupRequest(n))}},{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 xe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"hasAccessToken",get:function(){return!!this.accessToken}}]),e}(),$e={init:function(e){var t=new Ie(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Ce="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(Se||(Se={}));var De,Le=function(){},Re=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new xe({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 Me(e){return void 0===e}function Ne(e){return"[object Null]"===Object.prototype.toString.call(e)}function Ue(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),a=h(r);try{for(a.s();!(n=a.n()).done;){var i=n.value,o=i.isMatch,s=i.genAdapter,c=i.runtime;if(o())return{adapter:s(),runtime:c}}}catch(u){a.e(u)}finally{a.f()}}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(De||(De={}));var Fe={adapter:null,runtime:void 0},qe=["anonymousUuidKey"],Be=function(e){k(n,e);var t=O(n);function n(){var e;return x(this,n),e=t.call(this),Fe.adapter.root.tcbObject||(Fe.adapter.root.tcbObject={}),e}return y(n,[{key:"setItem",value:function(e,t){Fe.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Fe.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Fe.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Fe.adapter.root.tcbObject}}]),n}(Le);function Ve(e,t){switch(e){case"local":return t.localStorage||new Be;case"none":return new Be;default:return t.sessionStorage||new Be}}var He=function(){function e(t){if(x(this,e),!this._storage){this._persistence=Fe.adapter.primaryStorage||t.persistence,this._storage=Ve(this._persistence,Fe.adapter);var n="access_token_".concat(t.env),r="access_token_expire_".concat(t.env),a="refresh_token_".concat(t.env),i="anonymous_uuid_".concat(t.env),o="login_type_".concat(t.env),s="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:a,anonymousUuidKey:i,loginTypeKey:o,userInfoKey:s}}}return y(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=Ve(e,Fe.adapter);for(var r in this.keys){var a=this.keys[r];if(!t||!qe.includes(r)){var i=this._storage.getItem(a);Me(i)||Ne(i)||(n.setItem(a,i),this._storage.removeItem(a))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var r={version:n||"localCachev1",content:t},a=JSON.stringify(r);try{this._storage.setItem(e,a)}catch(e){throw e}}}},{key:"getStore",value:function(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";var n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),ze={},Ke={};function We(e){return ze[e]}var Je=function e(t,n){x(this,e),this.data=n||null,this.name=t},Ge=function(e){k(n,e);var t=O(n);function n(e,r){var a;return x(this,n),a=t.call(this,"error",{error:e,data:r}),a.error=e,a}return n}(Je),Ye=new(function(){function e(){x(this,e),this._listeners={}}return y(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 Ge)return console.error(e.error),this;var n="string"==typeof e?new Je(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var a,i=this._listeners[r]?l(this._listeners[r]):[],o=h(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;s.call(this,n)}}catch(c){o.e(c)}finally{o.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function Xe(e,t){Ye.on(e,t)}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ye.fire(e,t)}function Qe(e,t){Ye.off(e,t)}var et,tt="loginStateChanged",nt="loginStateExpire",rt="loginTypeChanged",at="anonymousConverted",it="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"}(et||(et={}));var ot=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],st={"X-SDK-Version":"1.3.5"};function ct(e,t,n){var r=e[t];e[t]=function(t){var a={},i={};n.forEach((function(n){var r=n.call(e,t),o=r.data,s=r.headers;Object.assign(a,o),Object.assign(i,s)}));var o=t.data;return o&&function(){var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data=b(b({},o),a);else for(var n in a)o.append(n,a[n])}(),t.headers=b(b({},t.headers||{}),i),r.call(e,t)}}function ut(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:b(b({},st),{},{"x-seqid":e})}}var lt=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};x(this,e),this.config=n,this._reqClass=new Fe.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=We(this.config.env),this._localCache=(t=this.config.env,Ke[t]),ct(this._reqClass,"post",[ut]),ct(this._reqClass,"upload",[ut]),ct(this._reqClass,"download",[ut])}return y(e,[{key:"post",value:function(){var e=u(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=u(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=u(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=u(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=u(a.default.mark((function e(){var t,n,r,i,o,s,c,u,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,i=t.refreshTokenKey,o=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),c=this._cache.getStore(i),c){e.next=5;break}throw new xe({message:"未登录CloudBase"});case 5:return u={refresh_token:c},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",u);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(o)!==et.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==f){e.next=19;break}return d=this._cache.getStore(s),p=this._cache.getStore(i),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:Ze(nt),this._cache.removeStore(i);case 20:throw new xe({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",(Ze(it),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(i),this._cache.setStore(i,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=u(a.default.mark((function e(){var t,n,r,i,o,s,c;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,i=t.refreshTokenKey,this._cache.getStore(i)){e.next=3;break}throw new xe({message:"refresh token不存在,登录状态异常"});case 3:if(o=this._cache.getStore(n),s=this._cache.getStore(r),c=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(o,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}c=!1;case 12:return e.abrupt("return",(!o||!s||s<Date.now())&&c?this.refreshAccessToken():{accessToken:o,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=u(a.default.mark((function e(t,n,r){var i,o,s,c,u,l,f,d,p,h,v,g,m,y,_,w;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i="x-tcb-trace_".concat(this.config.env),o="application/x-www-form-urlencoded",s=b({action:t,env:this.config.env,dataVersion:"2019-08-16"},n),-1!==ot.indexOf(t)){e.next=10;break}if(c=this._cache.keys.refreshTokenKey,e.t0=this._cache.getStore(c),!e.t0){e.next=10;break}return e.next=9,this.getAccessToken();case 9:s.access_token=e.sent.accessToken;case 10:if("storage.uploadFile"===t){for(l in u=new FormData,u)u.hasOwnProperty(l)&&void 0!==u[l]&&u.append(l,s[l]);o="multipart/form-data"}else for(f in o="application/json",u={},s)void 0!==s[f]&&(u[f]=s[f]);return d={headers:{"content-type":o}},r&&r.onUploadProgress&&(d.onUploadProgress=r.onUploadProgress),p=this._localCache.getStore(i),p&&(d.headers["X-TCB-Trace"]=p),h=n.parse,v=n.inQuery,g=n.search,m={env:this.config.env},h&&(m.parse=!0),v&&(m=b(b({},v),m)),y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),a="";for(var i in n)""===a?!r&&(t+="?"):a+="&",a+="".concat(i,"=").concat(encodeURIComponent(n[i]));return/^http(s)?\:\/\//.test(t+=a)?t:"".concat(e).concat(t)}(Ce,"//tcb-api.tencentcloudapi.com/web",m),g&&(y+=g),e.next=22,this.post(b({url:y,data:u},d));case 22:if(_=e.sent,w=_.header&&_.header["x-tcb-trace"],w&&this._localCache.setStore(i,w),(200===Number(_.status)||200===Number(_.statusCode))&&_.data){e.next=26;break}throw new xe({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=u(a.default.mark((function e(t){var n,r,i,o=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 3:if(r=e.sent,"ACCESS_TOKEN_EXPIRED"!==r.data.code||-1!==ot.indexOf(t)){e.next=13;break}return e.next=7,this.refreshAccessToken();case 7:return e.next=9,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 9:if(i=e.sent,!i.data.code){e.next=12;break}throw new xe({code:i.data.code,message:i.data.message});case 12:return e.abrupt("return",i.data);case 13:if(!r.data.code){e.next=15;break}throw new xe({code:r.data.code,message:r.data.message});case 15:return e.abrupt("return",r.data);case 16: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,a=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(a,e)}}]),e}(),ft={};function dt(e){return ft[e]}var pt=function(){function e(t){x(this,e),this.config=t,this._cache=We(t.env),this._request=dt(t.env)}return y(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,a=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(a,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,a=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(a,t)}},{key:"refreshUserInfo",value:function(){var e=u(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}(),ht=function(){function e(t){if(x(this,e),!t)throw new xe({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=We(this._envId),this._request=dt(this._envId),this.setUserInfo()}return y(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new xe({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 xe({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=u(a.default.mark((function e(){var t,n,r,i;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,i=n.users,e.abrupt("return",(i.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:i,hasPrimaryUid:r}));case 7:case"end":return e.stop()}}),e,this)})));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=u(a.default.mark((function e(t){var n,r,i,o,s,c,u,l;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,i=t.avatarUrl,o=t.province,s=t.country,c=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:i,province:o,country:s,city:c});case 8:u=e.sent,l=u.data,this.setLocalUserInfo(l);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refresh",value:function(){var e=u(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}(),vt=function(){function e(t){if(x(this,e),!t)throw new xe({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=We(t);var n=this._cache.keys,r=n.refreshTokenKey,a=n.accessTokenKey,i=n.accessTokenExpireKey,o=this._cache.getStore(r),s=this._cache.getStore(a),c=this._cache.getStore(i);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:c},this.user=new ht(t)}return y(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===et.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===et.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===et.WECHAT||this.loginType===et.WECHAT_OPEN||this.loginType===et.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),gt=function(e){k(n,e);var t=O(n);function n(){return x(this,n),t.apply(this,arguments)}return y(n,[{key:"signIn",value:function(){var e=u(a.default.mark((function e(){var t,n,r,i,o,s,c;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,i=this._cache.getStore(n)||void 0,o=this._cache.getStore(r)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:i,refresh_token:o});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 Ze(tt),Ze(rt,{env:this.config.env,loginType:et.ANONYMOUS,persistence:"local"}),c=new vt(this.config.env),e.next=19,c.user.refresh();case 19:return e.abrupt("return",c);case 20:throw new xe({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=u(a.default.mark((function e(t){var n,r,i,o,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,i=n.refreshTokenKey,o=this._cache.getStore(r),s=this._cache.getStore(i),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:s,ticket:t});case 7:if(c=e.sent,!c.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(c.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return Ze(at,{env:this.config.env}),Ze(rt,{loginType:et.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:c.refresh_token}});case 16:throw new xe({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,et.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(pt),mt=function(e){k(n,e);var t=O(n);function n(){return x(this,n),t.apply(this,arguments)}return y(n,[{key:"signIn",value:function(){var e=u(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 xe({param:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(r=e.sent,!r.refresh_token){e.next=15;break}return this.setRefreshToken(r.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return Ze(tt),Ze(rt,{env:this.config.env,loginType:et.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new vt(this.config.env));case 15:throw new xe({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),n}(pt),yt=function(e){k(n,e);var t=O(n);function n(){return x(this,n),t.apply(this,arguments)}return y(n,[{key:"signIn",value:function(){var e=u(a.default.mark((function e(t,n){var r,i,o,s,c;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 xe({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(i=e.sent,o=i.refresh_token,s=i.access_token,c=i.access_token_expire,!o){e.next=22;break}if(this.setRefreshToken(o),!s||!c){e.next=15;break}this.setAccessToken(s,c),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return Ze(tt),Ze(rt,{env:this.config.env,loginType:et.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new vt(this.config.env));case 22:throw i.code?new xe({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new xe({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=u(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=u(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}(pt),_t=function(e){k(n,e);var t=O(n);function n(){return x(this,n),t.apply(this,arguments)}return y(n,[{key:"signIn",value:function(){var e=u(a.default.mark((function e(t,n){var r,i,o,s,c;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 xe({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:et.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(i=e.sent,o=i.refresh_token,s=i.access_token_expire,c=i.access_token,!o){e.next=23;break}if(this.setRefreshToken(o),!c||!s){e.next=16;break}this.setAccessToken(c,s),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return Ze(tt),Ze(rt,{env:this.config.env,loginType:et.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new vt(this.config.env));case 23:throw i.code?new xe({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new xe({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),n}(pt),bt=function(){function e(t){x(this,e),this.config=t,this._cache=We(t.env),this._request=dt(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Xe(rt,this._onLoginTypeChanged)}return y(e,[{key:"anonymousAuthProvider",value:function(){return new gt(this.config)}},{key:"customAuthProvider",value:function(){return new mt(this.config)}},{key:"emailAuthProvider",value:function(){return new yt(this.config)}},{key:"usernameAuthProvider",value:function(){return new _t(this.config)}},{key:"signInAnonymously",value:function(){var e=u(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 gt(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=u(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 yt(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 _t(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=u(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 gt(this.config)),Xe(at,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"signOut",value:function(){var e=u(a.default.mark((function e(){var t,n,r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==et.ANONYMOUS){e.next=2;break}throw new xe({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,i=t.accessTokenExpireKey,o=this._cache.getStore(n),o){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:o});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(i),Ze(tt),Ze(rt,{env:this.config.env,loginType:et.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=u(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=u(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;Xe(tt,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){Xe(nt,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){Xe(it,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){Xe(at,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;Xe(rt,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=u(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 vt(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var e=u(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 xe({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=u(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 mt(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:b(b({},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,a=t.env;a===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}},{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)}}]),e}(),wt=function(e,t){t=t||Re();var n=dt(this.config.env),r=e.cloudPath,a=e.filePath,i=e.onUploadProgress,o=e.fileType,s=void 0===o?"image":o;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var o=e.data,c=o.url,u=o.authorization,l=o.token,f=o.fileId,d=o.cosFileId,p=e.requestId,h={key:r,signature:u,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};n.upload({url:c,data:h,file:a,name:r,fileType:s,onUploadProgress:i}).then((function(e){201===e.statusCode?t(null,{fileID:f,requestId:p}):t(new xe({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},xt=function(e,t){t=t||Re();var n=dt(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},kt=function(e,t){var n=e.fileList;if(t=t||Re(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,a=h(n);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){a.e(s)}finally{a.f()}var o={fileid_list:n};return dt(this.config.env).send("storage.batchDeleteFile",o).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},Ot=function(e,t){var n=e.fileList;t=t||Re(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,a=[],i=h(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;"object"==typeof o?(o.hasOwnProperty("fileID")&&o.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),a.push({fileid:o.fileID,max_age:o.maxAge})):"string"==typeof o?a.push({fileid:o}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(c){i.e(c)}finally{i.f()}var s={file_list:a};return dt(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},St=function(){var e=u(a.default.mark((function e(t,n){var r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,Ot.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(i=e.sent.fileList[0],"SUCCESS"===i.code){e.next=6;break}return e.abrupt("return",n?n(i):new Promise((function(e){e(i)})));case 6:if(o=dt(this.config.env),s=i.download_url,s=encodeURI(s),n){e.next=10;break}return e.abrupt("return",o.download({url:s}));case 10:return e.t0=n,e.next=13,o.download({url:s});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),At=function(e,t){var n,r=e.name,a=e.data,i=e.query,o=e.parse,s=e.search,c=t||Re();try{n=a?JSON.stringify(a):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new xe({code:"PARAM_ERROR",message:"函数名不能为空"}));var u={inQuery:i,parse:o,search:s,function_name:r,request_data:n};return dt(this.config.env).send("functions.invokeFunction",u).then((function(e){if(e.code)c(null,e);else{var t=e.data.response_data;if(o)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 xe({message:"response data must be json"}))}}return c.promise})).catch((function(e){c(e)})),c.promise},Pt={timeout:15e3,persistence:"session"},Tt={},jt=function(){function e(t){x(this,e),this.config=t||this.config,this.authObj=void 0}return y(e,[{key:"init",value:function(t){switch(Fe.adapter||(this.requestClient=new Fe.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=b(b({},Pt),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||Fe.adapter.primaryStorage||Pt.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;ze[t]=new He(e),Ke[t]=new He(b(b({},e),{},{persistence:"local"}))}(this.config),n=this.config,ft[n.env]=new lt(n),this.authObj=new bt(this.config),this.authObj}},{key:"on",value:function(e,t){return Xe.apply(this,[e,t])}},{key:"off",value:function(e,t){return Qe.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return At.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return kt.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return Ot.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return St.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return wt.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return xt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Tt[e.name]=e}},{key:"invokeExtension",value:function(){var e=u(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=Tt[t],r){e.next=3;break}throw new xe({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=Ue(e)||{},n=t.adapter,r=t.runtime;n&&(Fe.adapter=n),r&&(Fe.runtime=r)}}]),e}(),Et=new jt;function It(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),a="";for(var i in n)""===a?!r&&(t+="?"):a+="&",a+=i+"="+encodeURIComponent(n[i]);return/^http(s)?:\/\//.test(t+=a)?t:""+e+t}var $t=function(){function e(){x(this,e)}return y(e,[{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers;return new Promise((function(e,a){Pe.request({url:It("https:",t),data:n,method:"POST",header:r,success:function(t){e(t)},fail:function(e){a(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,a=e.file,i=e.data,o=e.headers,s=e.fileType,c=Pe.uploadFile({url:It("https:",r),name:"file",formData:Object.assign({},i),filePath:a,fileType:s,header:o,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&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),Ct={setItem:function(e,t){Pe.setStorageSync(e,t)},getItem:function(e){return Pe.getStorageSync(e)},removeItem:function(e){Pe.removeStorageSync(e)},clear:function(){Pe.clearStorageSync()}},Dt={genAdapter:function(){return{root:{},reqClass:$t,localStorage:Ct,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Et.useAdapters(Dt);var Lt=Et,Rt=Lt.init;Lt.init=function(e){e.env=e.spaceId;var t=Rt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var n=t.auth;return t.auth=function(e){var t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){t[e]=be(t[e]).bind(t)})),t},t.customAuth=t.auth,t};var Mt=Lt;function Nt(){return{token:Pe.getStorageSync("uni_id_token")||Pe.getStorageSync("uniIdToken"),tokenExpired:Pe.getStorageSync("uni_id_token_expired")}}function Ut(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&Pe.setStorageSync("uni_id_token",t),n&&Pe.setStorageSync("uni_id_token_expired",n)}function Ft(){H&&"web"===V&&r.getStorageSync("__LAST_DCLOUD_APPID")!==G&&(r.setStorageSync("__LAST_DCLOUD_APPID",G),console.warn("检测到当前项目与上次运行到此端口的项目不一致,自动清理uni-id保存的token信息(仅开发调试时生效)"),Pe.removeStorageSync("uni_id_token"),Pe.removeStorageSync("uniIdToken"),Pe.removeStorageSync("uni_id_token_expired"))}var qt=function(e){k(n,e);var t=O(n);function n(){return x(this,n),t.apply(this,arguments)}return y(n,[{key:"getAccessToken",value:function(){var e=this;return new Promise((function(t,n){var r="Anonymous_Access_token";e.setAccessToken(r),t(r)}))}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Ae.sign(n,this.config.clientSecret);var a=Oe();r["x-client-info"]=encodeURIComponent(JSON.stringify(a));var i=Nt(),o=i.token;return r["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(r))}}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,a=e.name,i=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:n,formData:r,name:a,filePath:i,fileType:o,success:function(t){t&&t.statusCode<400?e(t):c(new xe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new xe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(e){var t,n=this,r=e.filePath,a=e.cloudPath,i=e.fileType,o=void 0===i?"image":i,s=e.onUploadProgress;if(!a)throw new xe({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:a}).then((function(e){var a=e.result,i=a.url,c=a.formData,u=a.name;t=e.result.fileUrl;var l={url:i,formData:c,name:u,filePath:r,fileType:o};return n.uploadFileToOSS(Object.assign({},l,{onUploadProgress:s}))})).then((function(){return n.reportOSSUpload({cloudPath:a})})).then((function(e){return new Promise((function(n,a){e.success?n({success:!0,filePath:r,fileID:t}):a(new xe({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(this.setupRequest(n))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(n))}}]),n}(Ie),Bt={init:function(e){var t=new qt(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};function Vt(e){var t,n=e.data;t=Oe();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var a=Nt(),i=a.token;i&&(r.uniIdToken=i)}return r}function Ht(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.name,r=t.data,a=this.__dev__,i=a.localAddress,o=a.localPort,s={aliyun:"aliyun",tencent:"tcb"}[this.config.provider],c=this.config.spaceId,u="http://".concat(i,":").concat(o,"/system/check-function"),l="http://".concat(i,":").concat(o,"/cloudfunctions/").concat(n);return new Promise((function(e,t){Pe.request({method:"POST",url:u,data:{name:n,platform:V,provider:s,spaceId:c},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,a=n.message;return{code:0===r?0:r||"SYS_ERR",message:a||"SYS_ERR"}})).then((function(t){var a=t.code,i=t.message;if(0!==a){switch(a){case"MODULE_ENCRYPTED":console.error("此云函数(".concat(n,")依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数"));break;case"FUNCTION_ENCRYPTED":console.error("此云函数(".concat(n,")已加密不可本地调试,自动切换为云端已部署的云函数"));break;case"ACTION_ENCRYPTED":console.error(i||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":var o="连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";throw console.error(o),new Error(o);case"SWITCH_TO_CLOUD":break;default:var c="检测本地调试服务出现错误:".concat(i,",请检查网络环境或重启客户端再试");throw console.error(c),new Error(c)}return e._callCloudFunction({name:n,data:r})}return new Promise((function(t,n){var a=Vt.call(e,{data:r});Pe.request({method:"POST",url:l,data:{provider:s,platform:V,param:a},success:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.statusCode,a=e.data;return!r||r>=400?n(new xe({code:a.code||"SYS_ERR",message:a.message||"request:fail"})):t({result:a})},fail:function(e){n(new xe({code:e.code||e.errCode||"SYS_ERR",message:e.message||e.errMsg||"request:fail"}))}})}))}))}var zt=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Kt=/[\\^$.*+?()[\]{}|]/g,Wt=RegExp(Kt.source);function Jt(e,t,n){return e.replace(new RegExp((r=t)&&Wt.test(r)?r.replace(Kt,"\\$&"):r,"g"),n);var r}function Gt(e){var t=e.functionName,n=e.result,r=e.logPvd;if(this.__dev__.debugLog&&n&&n.requestId){var a=JSON.stringify({spaceId:this.config.spaceId,functionName:t,requestId:n.requestId});console.log("[".concat(r,"-request]").concat(a,"[/").concat(r,"-request]"))}}function Yt(e){var t=e.callFunction,n=function(n){var r=this,a=n.name;n.data=Vt.call(e,{data:n.data});var i={aliyun:"aliyun",tencent:"tcb",tcb:"tcb"}[this.config.provider];return t.call(this,n).then((function(e){return e.errCode=0,Gt.call(r,{functionName:a,result:e,logPvd:i}),Promise.resolve(e)}),(function(e){return Gt.call(r,{functionName:a,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,a=void 0===r?{}:r,i=e.formatter,o=void 0===i?[]:i,s=0;s<o.length;s++){var c=o[s],u=c.rule,l=c.content,f=c.mode,d=n.match(u);if(d){for(var p=l,h=1;h<d.length;h++)p=Jt(p,"{$".concat(h,"}"),d[h]);for(var v in a)p=Jt(p,"{".concat(v,"}"),a[v]);return"replace"===f?p:n+p}}return n}({message:"[".concat(n.name,"]: ").concat(e.message),formatter:zt,extraInfo:{functionName:a}})),Promise.reject(e)}))};e.callFunction=function(t){var r;H&&e.__dev__.debugInfo&&!e.__dev__.debugInfo.forceRemote&&W?(e._callCloudFunction||(e._callCloudFunction=n,e._callLocalFunction=Ht),r=Ht):r=n;var a=r.call(this,t);return Object.defineProperty(a,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),a}}var Xt=Symbol("CLIENT_DB_INTERNAL");function Zt(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Xt,e.__ob__=void 0,new Proxy(e,{get:function(e,n,r){if("_uniClient"===n)return null;if(n in e||"string"!=typeof n){var a=e[n];return"function"==typeof a?a.bind(e):a}return t.get(e,n,r)}})}function Qt(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 en=["db.Geo","db.command","command.aggregate"];function tn(e,t){return en.indexOf("".concat(e,".").concat(t))>-1}function nn(e){switch(F(e)){case"array":return e.map((function(e){return nn(e)}));case"object":return e._internalType===Xt||Object.keys(e).forEach((function(t){e[t]=nn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function rn(e){return e&&e.content&&e.content.$method}var an=function(){function e(t,n,r){x(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=r}return y(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:nn(e.$param)}}))}}},{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:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",value: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:"_send",value:function(e,t){var n=this.getAction(),r=this.getCommand();if(r.$db.push({$method:e,$param:nn(t)}),H){var a=r.$db.find((function(e){return"collection"===e.$method})),i=a&&a.$param;i&&1===i.length&&"string"==typeof a.$param[0]&&a.$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})}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=rn(e),n=rn(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"===rn(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=rn(e),n=rn(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}},{key:"count",get:function(){if(!this.isAggregate)return function(){return this._send("count",Array.from(arguments))};var e=this;return function(){return on({$method:"count",$param:nn(Array.from(arguments))},e,this._database)}}},{key:"remove",get:function(){if(!this.isCommand)return function(){return this._send("remove",Array.from(arguments))};var e=this;return function(){return on({$method:"remove",$param:nn(Array.from(arguments))},e,this._database)}}},{key:"set",get:function(){if(!this.isCommand)return function(){throw new Error("JQL禁止使用set方法")};var e=this;return function(){return on({$method:"set",$param:nn(Array.from(arguments))},e,this._database)}}}]),e}();function on(e,t,n){return Zt(new an(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),tn(r,t)?on({$method:t},e,n):function(){return on({$method:t,$param:nn(Array.from(arguments))},e,n)}}})}function sn(e){var t=e.path,n=e.method;return function(){function e(){x(this,e),this.param=Array.from(arguments)}return y(e,[{key:"toJSON",value:function(){return{$newDb:[].concat(l(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}}]),e}()}var cn=function(e){k(n,e);var t=O(n);function n(){return x(this,n),t.apply(this,arguments)}return y(n,[{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,a=e.multiCommand,i=e.queryList;function o(e,t){if(a&&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;function c(e){return s._callback("error",[e]),re(ae("database","fail"),e).then((function(){return re(ae("database","complete"),e)})).then((function(){return o(null,e),ge(se,{type:le,content:e}),Promise.reject(e)}))}var u=re(ae("database","invoke")),l=this._uniClient;return u.then((function(){return l.callFunction({name:"DCloud-clientDB",type:U,data:{action:n,command:r,multiCommand:a}})})).then((function(e){var n=e.result,r=n.code,a=n.message,i=n.token,s=n.tokenExpired,u=n.systemInfo,l=void 0===u?[]:u;if(l)for(var f=0;f<l.length;f++){var d=l[f],p=d.level,h=d.message,v=d.detail,g=console["app"===V&&"warn"===p?"error":p]||console.log,m="[System Info]"+h;v&&(m="".concat(m,"\n详细信息:").concat(v)),g(m)}if(r)return c(new xe({code:r,message:a,requestId:e.requestId}));e.result.errCode=e.result.code,e.result.errMsg=e.result.message,i&&s&&(Ut({token:i,tokenExpired:s}),t._callbackAuth("refreshToken",[{token:i,tokenExpired:s}]),t._callback("refreshToken",[{token:i,tokenExpired:s}]),ge(ue,{token:i,tokenExpired:s}));for(var y=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}],_=function(t){var n=y[t],r=n.prop,a=n.tips;if(r in e.result){var i=e.result[r];Object.defineProperty(e.result,r,{get:function(){return console.warn(a),i}})}},b=0;b<y.length;b++)_(b);return function(e){return re(ae("database","success"),e).then((function(){return re(ae("database","complete"),e)})).then((function(){return o(e,null),ge(se,{type:le,content:e}),Promise.resolve(e)}))}(e)}),(function(e){return/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),c(new xe({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;x(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r.isDefault&&(this._dbCallBacks=Z("_globalUniCloudDatabaseCallback")),this.auth=Qt(this._authCallBacks),Object.assign(this,Qt(this._dbCallBacks)),this.env=Zt({},{get:function(e,t){return{$env:t}}}),this.Geo=Zt({},{get:function(e,t){return sn({path:["Geo"],method:t})}}),this.serverDate=sn({path:[],method:"serverDate"}),this.RegExp=sn({path:[],method:"RegExp"})}return y(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,l(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,l(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}());function un(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=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Zt(new e(t),{get:function(e,t){return tn("db",t)?on({$method:t},null,e):function(){return on({$method:t,$param:nn(Array.from(arguments))},null,e)}}})}(cn,{uniClient:e});return this._database=n,n}}var ln="token无效,跳转登录页面",fn="token过期,跳转登录页面",dn={TOKEN_INVALID_TOKEN_EXPIRED:fn,TOKEN_INVALID_INVALID_CLIENTID:ln,TOKEN_INVALID:ln,TOKEN_INVALID_WRONG_TOKEN:ln,TOKEN_INVALID_ANONYMOUS_USER:ln},pn={"uni-id-token-expired":fn,"uni-id-check-token-failed":ln,"uni-id-token-not-exist":ln,"uni-id-check-device-feature-failed":ln};function hn(e,t){var n="";return n=e?"".concat(e,"/").concat(t):t,n.replace(/^\//,"")}function vn(){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(hn(t,e.path)):!1===e.needLogin&&r.push(hn(t,e.path))})),{needLoginPage:n,notNeedLoginPage:r}}function gn(e){return e.split("?")[0].replace(/^\//,"")}function mn(){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 yn(){return gn(mn())}function _n(){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=gn(e);return n.some((function(e){return e.pagePath===r}))}var bn,wn=!!o.default.uniIdRouter,xn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.default,t=e.pages,n=void 0===t?[]:t,r=e.subPackages,a=void 0===r?[]:r,i=e.uniIdRouter,s=void 0===i?{}:i,c=e.tabBar,u=void 0===c?{}:c,f=s.loginPage,d=s.needLogin,p=void 0===d?[]:d,h=s.resToLogin,v=void 0===h||h,g=vn(n),m=g.needLoginPage,y=g.notNeedLoginPage,_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var r=e.root,a=e.pages,i=void 0===a?[]:a,o=vn(i,r),s=o.needLoginPage,c=o.notNeedLoginPage;t.push.apply(t,l(s)),n.push.apply(n,l(c))})),{needLoginPage:t,notNeedLoginPage:n}}(a),b=_.needLoginPage,w=_.notNeedLoginPage;return{loginPage:f,routerNeedLogin:p,resToLogin:v,needLoginPage:[].concat(l(m),l(b)),notNeedLoginPage:[].concat(l(y),l(w)),loginPageInTabBar:_n(f,u)}}(),kn=xn.loginPage,On=xn.routerNeedLogin,Sn=xn.resToLogin,An=xn.needLoginPage,Pn=xn.notNeedLoginPage,Tn=xn.loginPageInTabBar;if(An.indexOf(kn)>-1)throw new Error("Login page [".concat(kn,'] should not be "needLogin", please check your pages.json'));function jn(e){var t=gn(function(e){var t=yn(),n=e.charAt(0),r=e.split("?")[0];if("/"===n)return r;var a=r.replace(/^\//,"").split("/"),i=t.split("/");i.pop();for(var o=0;o<a.length;o++){var s=a[o];".."===s?i.pop():"."!==s&&i.push(s)}return""===i[0]&&i.shift(),i.join("/")}(e));return!(Pn.indexOf(t)>-1)&&(An.indexOf(t)>-1||On.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function En(e){var t=e.redirect,n=gn(t),r=gn(kn);return yn()!==r&&n!==r}function In(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&En({redirect:n})){var a=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(kn,n);Tn?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo"),setTimeout((function(){r[t]({url:a})}))}}function $n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var e,t=Nt(),n=t.token,r=t.tokenExpired;if(n){if(r<Date.now()){var a="uni-id-token-expired";e={errCode:a,errMsg:pn[a]}}}else{var i="uni-id-check-token-failed";e={errCode:i,errMsg:pn[i]}}return e}();if(jn(t)&&r){if(r.uniIdRedirectUrl=t,pe(ce).length>0)return setTimeout((function(){ge(ce,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function Cn(){!function(){var e=mn(),t=$n({url:e}),n=t.abortLoginPageJump,r=t.autoToLoginPage;n||r&&In({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=$n({url:e.url}),r=t.abortLoginPageJump,a=t.autoToLoginPage;return r?e:a?(In({api:n,redirect:e.url}),!1):e}})},n=0;n<e.length;n++)t(n)}function Dn(){this.onResponse((function(e){var t=e.type,n=e.content,r=!1;switch(t){case"cloudobject":r=function(e){var t=e.errCode;return t in pn}(n);break;case"clientdb":r=function(e){var t=e.errCode;return t in dn}(n)}r&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=pe(ce);_e().then((function(){var n=mn();if(n&&En({redirect:n}))return t.length>0?ge(ce,Object.assign({uniIdRedirectUrl:n},e)):void(kn&&In({api:"navigateTo",redirect:n}))}))}(n)}))}function Ln(e){!function(e){e.onResponse=function(e){he(se,e)},e.offResponse=function(e){ve(se,e)}}(e),function(e){e.onNeedLogin=function(e){he(ce,e)},e.offNeedLogin=function(e){ve(ce,e)},wn&&(Z("uni-cloud-status").needLoginInit||(Z("uni-cloud-status").needLoginInit=!0,_e().then((function(){Cn.call(e)})),Sn&&Dn.call(e)))}(e),function(e){e.onRefreshToken=function(e){he(ue,e)},e.offRefreshToken=function(e){ve(ue,e)}}(e)}var Rn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Mn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Nn(){var e,t,n=Nt().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(bn(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}bn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Mn.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,a="",i=0;i<e.length;)t=Rn.indexOf(e.charAt(i++))<<18|Rn.indexOf(e.charAt(i++))<<12|(n=Rn.indexOf(e.charAt(i++)))<<6|(r=Rn.indexOf(e.charAt(i++))),a+=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 a}:atob;var Un=D((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",a="chooseAndUploadFile:fail";function i(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function o(e,t,r){var a=r.onChooseFile,i=r.onUploadProgress;return t.then((function(e){if(a){var t=a(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,a=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var i=t.tempFiles,o=i.length,s=0;return new Promise((function(n){for(;s<r;)c();function c(){var r=s++;if(r>=o)!i.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var u=i[r];e.uploadFile({filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,onUploadProgress:function(e){e.index=r,e.tempFile=u,e.tempFilePath=u.path,a&&a(e)}}).then((function(e){u.url=e.fileID,r<o&&c()})).catch((function(e){u.errMsg=e.errMsg||e.message,r<o&&c()}))}}}))}(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?o(e,function(e){var t=e.count,n=e.sizeType,o=e.sourceType,s=void 0===o?["album","camera"]:o,c=e.extension;return new Promise((function(e,o){r.chooseImage({count:t,sizeType:n,sourceType:s,extension:c,success:function(t){e(i(t,"image"))},fail:function(e){o({errMsg:e.errMsg.replace("chooseImage:fail",a)})}})}))}(t),t):"video"===t.type?o(e,function(e){var t=e.camera,n=e.compressed,o=e.maxDuration,s=e.sourceType,c=void 0===s?["album","camera"]:s,u=e.extension;return new Promise((function(e,s){r.chooseVideo({camera:t,compressed:n,maxDuration:o,sourceType:c,extension:u,success:function(t){var n=t.tempFilePath,r=t.duration,a=t.size,o=t.height,s=t.width;e(i({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:a,type:t.tempFile&&t.tempFile.type||"",width:s,height:o,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",a)})}})}))}(t),t):o(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,o){var s=r.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(s=wx.chooseMessageFile),"function"!=typeof s)return o({errMsg:a+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});s({type:"all",count:t,extension:n,success:function(t){e(i(t))},fail:function(e){o({errMsg:e.errMsg.replace("chooseFile:fail",a)})}})}))}(t),t)}}})),Fn=C(Un),qn="manual";function Bn(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:{}}},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!==qn){for(var r=!1,a=[],i=2;i<t.length;i++)t[i]!==n[i]&&(a.push(t[i]),r=!0);t[0]!==n[0]&&(e.mixinDatacomPage.current=e.pageCurrent),e.mixinDatacomPage.size=e.pageSize,e.onMixinDatacomPropsChange(r,a)}}))},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,a=t.success,i=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,i=n.data,o=n.count;e.getcount&&(e.mixinDatacomPage.count=o),e.mixinDatacomHasMore=i.length<e.pageSize;var s=r?i.length?i[0]:void 0:i;e.mixinDatacomResData=s,a&&a(s)})).catch((function(t){e.mixinDatacomLoading=!1,e.mixinDatacomErrorMessage=t,i&&i(t)})))},mixinDatacomGet:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.database(this.spaceInfo),a=n.action||this.action;a&&(r=r.action(a));var i=n.collection||this.collection;r=Array.isArray(i)?(t=r).collection.apply(t,l(i)):r.collection(i);var o=n.where||this.where;o&&Object.keys(o).length&&(r=r.where(o));var s=n.field||this.field;s&&(r=r.field(s));var c=n.foreignKey||this.foreignKey;c&&(r=r.foreignKey(c));var u=n.groupby||this.groupby;u&&(r=r.groupBy(u));var f=n.groupField||this.groupField;f&&(r=r.groupField(f)),!0===(void 0!==n.distinct?n.distinct:this.distinct)&&(r=r.distinct());var d=n.orderby||this.orderby;d&&(r=r.orderBy(d));var p=void 0!==n.pageCurrent?n.pageCurrent:this.mixinDatacomPage.current,h=void 0!==n.pageSize?n.pageSize:this.mixinDatacomPage.size,v=void 0!==n.getcount?n.getcount:this.getcount,g=void 0!==n.gettree?n.gettree:this.gettree,m=void 0!==n.gettreepath?n.gettreepath:this.gettreepath,y={getCount:v},_={limitLevel:void 0!==n.limitlevel?n.limitlevel:this.limitlevel,startWith:void 0!==n.startwith?n.startwith:this.startwith};return g&&(y.getTree=_),m&&(y.getTreePath=_),r=r.skip(h*(p-1)).limit(h).get(y),r}}}}function Vn(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,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var i=n,o=i.customUI,s=i.loadingOptions,c=i.errorOptions,l=!o;return new Proxy({},{get:function(i,o){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,r=e.getCallbackArgs;return u(a.default.mark((function e(){var i,o,s,c,u,l,f=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=f.length,o=new Array(i),s=0;s<i;s++)o[s]=f[s];return c=r?r({params:o}):{},e.prev=2,e.next=5,re(ae(n,"invoke"),b({},c));case 5:return e.next=7,t.apply(void 0,o);case 7:return u=e.sent,e.next=10,re(ae(n,"success"),b(b({},c),{},{result:u}));case 10:return e.abrupt("return",u);case 13:return e.prev=13,e.t0=e["catch"](2),l=e.t0,e.next=18,re(ae(n,"fail"),b(b({},c),{},{error:l}));case 18:throw l;case 19:return e.prev=19,e.next=22,re(ae(n,"complete"),b(b({},c),{},l?{error:l}:{result:u}));case 22:return e.finish(19);case 23:case"end":return e.stop()}}),e,null,[[2,13,19,23]])})))}({fn:function(){var i=u(a.default.mark((function i(){var d,p,h,v,g,m,y,_,w,x,k,O,S=arguments;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:for(l&&r.showLoading({title:s.title,mask:s.mask}),p=S.length,h=new Array(p),v=0;v<p;v++)h[v]=S[v];return g={name:t,type:N,data:{method:o,params:h}},"object"==typeof n.secretMethods&&function(e,t){var n=t.data.method,r=e.secretMethods[n];r&&(t.secret=r)}(n,g),i.prev=4,i.next=7,e.callFunction(g);case 7:d=i.sent,i.next=13;break;case 10:i.prev=10,i.t0=i["catch"](4),d={result:i.t0};case 13:if(m=d.result||{},y=m.errCode,_=m.errMsg,w=m.newToken,l&&r.hideLoading(),w&&w.token&&w.tokenExpired&&(Ut(w),ge(ue,b({},w))),!y){i.next=30;break}if(!l){i.next=28;break}if("toast"!==c.type){i.next=20;break}r.showToast({title:_,icon:"none"}),i.next=28;break;case 20:if("modal"===c.type){i.next=22;break}throw new Error("Invalid errorOptions.type: ".concat(c.type));case 22:return i.next=24,u(a.default.mark((function e(){var t,n,i,o,s,c,u=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:{},n=t.title,i=t.content,o=t.showCancel,s=t.cancelText,c=t.confirmText,e.abrupt("return",new Promise((function(e,t){r.showModal({title:n,content:i,showCancel:o,cancelText:s,confirmText:c,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:_,showCancel:c.retry,cancelText:"取消",confirmText:c.retry?"重试":"确定"});case 24:if(x=i.sent,k=x.confirm,!c.retry||!k){i.next=28;break}return i.abrupt("return",f.apply(void 0,h));case 28:throw O=new xe({code:y,message:_,requestId:d.requestId}),O.detail=d.result,ge(se,{type:de,content:O}),O;case 30:return i.abrupt("return",(ge(se,{type:de,content:d.result}),d.result));case 31:case"end":return i.stop()}}),i,null,[[4,10]])})));function f(){return i.apply(this,arguments)}return f}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:o,params:n}}})}})}}function Hn(e,t){return zn.apply(this,arguments)}function zn(){return zn=u(a.default.mark((function e(t,n){var r,i,o;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,o={url:r,timeout:500},new Promise((function(e,t){Pe.request(b(b({},o),{},{success:function(t){e(t)},fail:function(e){t(e)}}))}));case 4:return i=e.sent,e.abrupt("return",!(!i.data||0!==i.data.code));case 8:return e.prev=8,e.t0=e["catch"](1),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),zn.apply(this,arguments)}function Kn(e){if(!e.initUniCloudStatus||"rejected"===e.initUniCloudStatus){var t,n=Promise.resolve();t=1,n=new Promise((function(e,n){setTimeout((function(){e()}),t)})),e.isReady=!1,e.isDefault=!1;var i=e.auth();e.initUniCloudStatus="pending",e.initUniCloud=n.then((function(){return i.getLoginState()})).then((function(e){return e?Promise.resolve():i.signInAnonymously()})).then((function(){if(!H)return Promise.resolve();if("app"===V){var t=r.getSystemInfoSync(),n=t.osName,i=t.osVersion;"ios"===n&&function(e){if(!e||"string"!=typeof e)return 0;var t=e.match(/^(\d+)./);return t&&t[1]?parseInt(t[1]):0}(i)>=14&&console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发模式生效,发行模式会连接uniCloud云端服务)")}if(H&&e.__dev__.debugInfo){var o=e.__dev__.debugInfo,s=o.address,c=o.servePort;return function(){var e=u(a.default.mark((function e(t,n){var r,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<t.length)){e.next=11;break}return o=t[i],e.next=5,Hn(o,n);case 5:if(!e.sent){e.next=8;break}return r=o,e.abrupt("break",11);case 8:i++,e.next=1;break;case 11:return e.abrupt("return",{address:r,port:n});case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()(s,c)}})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.address,r=t.port;if(!H)return Promise.resolve();var a=console["app"===V?"error":"warn"];if(n)e.__dev__.localAddress=n,e.__dev__.localPort=r;else if(e.__dev__.debugInfo){var i="";"remote"===e.__dev__.debugInfo.initialLaunchType?(e.__dev__.debugInfo.forceRemote=!0,i="当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs"):i="无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs","web"===V&&(i+="\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"),0===V.indexOf("mp-")&&(i+="\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"),a(i)}})).then((function(){Ft(),e.isReady=!0,e.initUniCloudStatus="fulfilled"})).catch((function(t){console.error(t),e.initUniCloudStatus="rejected"}))}}var Wn={tcb:Mt,tencent:Mt,aliyun:$e,private:Bt},Jn=new(function(){function e(){x(this,e)}return y(e,[{key:"init",value:function(e){var t={},n=Wn[e.provider];if(!n)throw new Error("未提供正确的provider参数");t=n.init(e),t.__dev__={},t.__dev__.debugLog=H&&("web"===V&&navigator.userAgent.indexOf("HBuilderX")>0||"app"===V);var r=K;return H&&r&&!r.code&&(t.__dev__.debugInfo=r),Kn(t),t.reInit=function(){Kn(this)},Yt(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),un(t),function(e){e.getCurrentUserInfo=Nn,e.chooseAndUploadFile=Fn.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Bn(e)}}),e.importObject=Vn(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return t.reInit(),n.apply(t,Array.from(arguments))},t[e]=be(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=W,t={};if(e&&1===e.length)t=e[0],Jn=Jn.init(t),Jn.isDefault=!0;else{var n,r=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":J?"应用未关联服务空间,请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",r.forEach((function(e){Jn[e]=function(){return console.error(n),Promise.reject(new xe({code:"SYS_ERR",message:n}))}}))}Object.assign(Jn,{get mixinDatacom(){return Bn(Jn)}}),Ln(Jn),Jn.addInterceptor=te,Jn.removeInterceptor=ne,Jn.interceptObject=ie,H&&"web"===V&&(window.uniCloud=Jn)})();var Gn=Jn;t.default=Gn}).call(this,n(2),n(1)["default"])},351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"首页"}},{path:"pages/my/index",style:{navigationBarTitleText:"个人中心"}},{path:"pages/service/index",style:{navigationBarTitleText:"政务服务"}},{path:"pages/policy/index",style:{navigationBarTitleText:"风采展示",enablePullDownRefresh:!0}},{path:"pages/illness/index",style:{navigationBarTitleText:"核酸检测登记"}},{path:"pages/illness/vaccines",style:{navigationBarTitleText:"疫苗接种点"}},{path:"pages/illness/receive",style:{navigationBarTitleText:"家庭成员"}},{path:"pages/illness/testingRoom",style:{navigationBarTitleText:"检测点查询"}},{path:"pages/illness/testingRoomList",style:{navigationBarTitleText:"检测点列表"}},{path:"pages/details/index",style:{navigationBarTitleText:"文章详情"}},{path:"pages/details/cmsinfo",style:{navigationBarTitleText:"详情",navigationStyle:"custom"}},{path:"pages/notice/index",style:{navigationBarTitleText:"通知公告"}},{path:"pages/user/index",style:{navigationBarTitleText:"个人资料"}},{path:"pages/user/familyInfo",style:{navigationBarTitleText:"成员资料"}},{path:"pages/register/index",style:{navigationBarTitleText:"注册用户"}},{path:"pages/questionnaire/index",style:{navigationBarTitleText:"问卷调查"}},{path:"pages/questionnaire/details",style:{navigationBarTitleText:"问卷调查详情"}},{path:"pages/questionnaire/web",style:{navigationBarTitleText:"问卷调查"}},{path:"pages/integral/index",style:{navigationBarTitleText:"我的积分"}},{path:"pages/activity/index",style:{navigationBarTitleText:"活动列表"}},{path:"pages/activity/details",style:{navigationBarTitleText:"活动详情"}},{path:"pages/activity/uploadFiel",style:{navigationBarTitleText:"获取积分"}},{path:"pages/property/index",style:{navigationBarTitleText:"红色物业"}},{path:"pages/property/butlerType",style:{navigationBarTitleText:"红管家风采展示"}},{path:"pages/property/butler",style:{navigationBarTitleText:"红管家风采展示"}},{path:"pages/report/index",style:{navigationBarTitleText:"下沉干部报到"}},{path:"pages/report/double",style:{navigationBarTitleText:"党员“双报到”"}},{path:"pages/recruit/index",style:{navigationBarTitleText:"应急招募"}},{path:"pages/recruit/details",style:{navigationBarTitleText:"招募详情"}}],globalStyle:{navigationBarTextStyle:"#fff",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#c60814",backgroundColor:"#fff","app-plus":{background:"#efeff4"}},tabBar:{color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",backgroundColor:"#ffffff",list:[{pagePath:"pages/index/index",iconPath:"static/home1.png",selectedIconPath:"static/home2.png",text:"首页"},{pagePath:"pages/service/index",iconPath:"static/service1.png",selectedIconPath:"static/service2.png",text:"政务服务"},{pagePath:"pages/policy/index",iconPath:"static/policy1.png",selectedIconPath:"static/policy2.png",text:"风采展示"},{pagePath:"pages/my/index",iconPath:"static/user1.png",selectedIconPath:"static/user2.png",text:"我的"}]}};t.default=r},352:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={appid:"__UNI__5B783AC"};t.default=r},360:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(361)),a=o(n(362)),i=o(n(363));function o(e){return e&&e.__esModule?e:{default:e}}var s={en:r.default,"zh-Hans":a.default,"zh-Hant":i.default};t.default=s},361:function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select datetime","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-datetime-picker.year":"-","uni-datetime-picker.month":"","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN","uni-calender.confirm":"confirm"}')},362:function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"}')},363:function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"選擇日期","uni-datetime-picker.selectTime":"選擇時間","uni-datetime-picker.selectDateTime":"選擇日期時間","uni-datetime-picker.startDate":"開始日期","uni-datetime-picker.endDate":"結束日期","uni-datetime-picker.startTime":"開始时间","uni-datetime-picker.endTime":"結束时间","uni-datetime-picker.ok":"確定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"確認"}')},371:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{localdata:{type:[Array,Object],default:function(){return[]}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:String,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},getone:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},manual:{type:Boolean,default:!1},value:{type:[Array,String,Number],default:function(){return[]}},modelValue:{type:[Array,String,Number],default:function(){return[]}},preload:{type:Boolean,default:!1},stepSearh:{type:Boolean,default:!0},selfField:{type:String,default:""},parentField:{type:String,default:""},multiple:{type:Boolean,default:!1},map:{type:Object,default:function(){return{text:"text",value:"value"}}}},data:function(){return{loading:!1,errorMessage:"",loadMore:{contentdown:"",contentrefresh:"",contentnomore:""},dataList:[],selected:[],selectedIndex:0,page:{current:this.pageCurrent,size:this.pageSize,count:0}}},computed:{isLocaldata:function(){return!this.collection.length},postField:function(){var e=[this.field];return this.parentField&&e.push("".concat(this.parentField," as parent_value")),e.join(",")},dataValue:function(){var e=Array.isArray(this.modelValue)?this.modelValue.length>0:null!==this.modelValue||void 0!==this.modelValue;return e?this.modelValue:this.value},hasValue:function(){return"number"===typeof this.dataValue||null!=this.dataValue&&this.dataValue.length>0}},created:function(){var e=this;this.$watch((function(){var t=[];return["pageCurrent","pageSize","spaceInfo","value","modelValue","localdata","collection","action","field","orderby","where","getont","getcount","gettree"].forEach((function(n){t.push(e[n])})),t}),(function(t,n){for(var r=2;r<t.length;r++)if(t[r]!=n[r]){!0;break}t[0]!=n[0]&&(e.page.current=e.pageCurrent),e.page.size=e.pageSize,e.onPropsChange()})),this._treeData=[]},methods:{onPropsChange:function(){this._treeData=[]},getCommand:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.database(this.spaceInfo),r=t.action||this.action;r&&(n=n.action(r));var a=t.collection||this.collection;n=n.collection(a);var i=t.where||this.where;i&&Object.keys(i).length&&(n=n.where(i));var o=t.field||this.field;o&&(n=n.field(o));var s=t.orderby||this.orderby;s&&(n=n.orderBy(s));var c=void 0!==t.pageCurrent?t.pageCurrent:this.page.current,u=void 0!==t.pageSize?t.pageSize:this.page.size,l=void 0!==t.getcount?t.getcount:this.getcount,f=void 0!==t.gettree?t.gettree:this.gettree,d={getCount:l,getTree:f};return t.getTreePath&&(d.getTreePath=t.getTreePath),n=n.skip(u*(c-1)).limit(u).get(d),n},getNodeData:function(e){var t=this;this.loading||(this.loading=!0,this.getCommand({field:this.postField,where:this._pathWhere()}).then((function(n){t.loading=!1,t.selected=n.result.data,e&&e()})).catch((function(e){t.loading=!1,t.errorMessage=e})))},getTreePath:function(e){var t=this;this.loading||(this.loading=!0,this.getCommand({field:this.postField,getTreePath:{startWith:"".concat(this.selfField,"=='").concat(this.dataValue,"'")}}).then((function(n){t.loading=!1;var r=[];t._extractTreePath(n.result.data,r),t.selected=r,e&&e()})).catch((function(e){t.loading=!1,t.errorMessage=e})))},loadData:function(){var e=this;this.isLocaldata?this._processLocalData():null==this.dataValue?this.stepSearh?this._loadNodeData((function(t){e._treeData=t,e._updateBindData()})):this._loadAllData((function(t){e._treeData=[],e._extractTree(t,e._treeData,null),e._updateBindData()})):this._loadNodeData((function(t){e._treeData=t,e._updateBindData(),e._updateSelected()}))},_loadAllData:function(e){var t=this;this.loading||(this.loading=!0,this.getCommand({field:this.postField,gettree:!0,startwith:"".concat(this.selfField,"=='").concat(this.dataValue,"'")}).then((function(n){t.loading=!1,e(n.result.data),t.onDataChange()})).catch((function(e){t.loading=!1,t.errorMessage=e})))},_loadNodeData:function(e,t){var n=this;this.loading||(this.loading=!0,this.getCommand({field:this.postField,where:t||this._postWhere(),pageSize:500}).then((function(t){n.loading=!1,e(t.result.data),n.onDataChange()})).catch((function(e){n.loading=!1,n.errorMessage=e})))},_pathWhere:function(){var e=[],t=this._getParentNameByField();return t&&e.push("".concat(t," == '").concat(this.dataValue,"'")),this.where?"(".concat(this.where,") && (").concat(e.join(" || "),")"):e.join(" || ")},_postWhere:function(){var e=[],t=this.selected,n=this.parentField;if(n&&e.push("".concat(n," == null || ").concat(n,' == ""')),t.length)for(var r=0;r<t.length-1;r++)e.push("".concat(n," == '").concat(t[r].value,"'"));var a=[];return this.where&&a.push("(".concat(this.where,")")),e.length&&a.push("(".concat(e.join(" || "),")")),a.join(" && ")},_nodeWhere:function(){var e=[],t=this.selected;return t.length&&e.push("".concat(this.parentField," == '").concat(t[t.length-1].value,"'")),this.where?"(".concat(this.where,") && (").concat(e.join(" || "),")"):e.join(" || ")},_getParentNameByField:function(){for(var e=this.field.split(","),t=null,n=0;n<e.length;n++){var r=e[n].split("as");if(!(r.length<2)&&"value"===r[1].trim()){t=r[0].trim();break}}return t},_isTreeView:function(){return this.parentField&&this.selfField},_updateSelected:function(){for(var e=this.dataList,t=this.selected,n=this.map.text,r=this.map.value,a=0;a<t.length;a++)for(var i=t[a].value,o=e[a],s=0;s<o.length;s++){var c=o[s];if(c[r]===i){t[a].text=c[n];break}}},_updateBindData:function(e){var t=this._filterData(this._treeData,this.selected),n=t.dataList,r=t.hasNodes,a=!1===this._stepSearh&&!r;return e&&(e.isleaf=a),this.dataList=n,this.selectedIndex=n.length-1,!a&&this.selected.length<n.length&&this.selected.push({value:null,text:"请选择"}),{isleaf:a,hasNodes:r}},_filterData:function(e,t){var n=[],r=!0;n.push(e.filter((function(e){return null===e.parent_value||void 0===e.parent_value||""===e.parent_value})));for(var a=0;a<t.length;a++){var i=t[a].value,o=e.filter((function(e){return e.parent_value===i}));o.length?n.push(o):r=!1}return{dataList:n,hasNodes:r}},_extractTree:function(e,t,n){for(var r=this.map.value,a=0;a<e.length;a++){var i=e[a],o={};for(var s in i)"children"!==s&&(o[s]=i[s]);null!==n&&void 0!==n&&""!==n&&(o.parent_value=n),t.push(o);var c=i.children;c&&this._extractTree(c,t,i[r])}},_extractTreePath:function(e,t){for(var n=0;n<e.length;n++){var r=e[n],a={};for(var i in r)"children"!==i&&(a[i]=r[i]);t.push(a);var o=r.children;o&&this._extractTreePath(o,t)}},_findNodePath:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=this.map.text,a=this.map.value,i=0;i<t.length;i++){var o=t[i],s=o.children,c=o[r],u=o[a];if(n.push({value:u,text:c}),u===e)return n;if(s){var l=this._findNodePath(e,s,n);if(l.length)return l}n.pop()}return[]},_processLocalData:function(){this._treeData=[],this._extractTree(this.localdata,this._treeData);var e=this.dataValue;void 0!==e&&(Array.isArray(e)&&(e=e[e.length-1],"object"===typeof e&&e[this.map.value]&&(e=e[this.map.value])),this.selected=this._findNodePath(e,this.localdata))}}};t.default=n}).call(this,n(350)["default"])},379:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(380)),a=i(n(381));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){for(var t={},n=e.split(","),r=0;r<n.length;r+=1)t[n[r]]=!0;return t}var s=o("br,code,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),c=o("a,abbr,acronym,applet,b,basefont,bdo,big,button,cite,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),u=o("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr");function l(e){var t=/<body.*>([^]*)<\/body>/.test(e);return t?RegExp.$1:e}function f(e){return e.replace(/<!--.*?-->/gi,"").replace(/\/\*.*?\*\//gi,"").replace(/[ ]+</gi,"<").replace(/<script[^]*<\/script>/gi,"").replace(/<style[^]*<\/style>/gi,"")}function d(){var e={};return wx.getSystemInfo({success:function(t){e.width=t.windowWidth,e.height=t.windowHeight}}),e}function p(e,t,n,i){e=l(e),e=f(e),e=r.default.strDiscode(e);var o=[],p={nodes:[],imageUrls:[]},h=d();function v(e){this.node="element",this.tag=e,this.$screen=h}return(0,a.default)(e,{start:function(e,a,i){var l=new v(e);if(0!==o.length){var f=o[0];void 0===f.nodes&&(f.nodes=[])}if(s[e]?l.tagType="block":c[e]?l.tagType="inline":u[e]&&(l.tagType="closeSelf"),l.attr=a.reduce((function(e,t){var n=t.name,r=t.value;return"class"===n&&(l.classStr=r),"style"===n&&(l.styleStr=r),r.match(/ /)&&(r=r.split(" ")),e[n]?Array.isArray(e[n])?e[n].push(r):e[n]=[e[n],r]:e[n]=r,e}),{}),l.classStr?l.classStr+=" ".concat(l.tag):l.classStr=l.tag,"inline"===l.tagType&&(l.classStr+=" inline"),"img"===l.tag){var d=l.attr.src;d=r.default.urlToHttpUrl(d,n.domain),Object.assign(l.attr,n,{src:d||""}),d&&p.imageUrls.push(d)}if("a"===l.tag&&(l.attr.href=l.attr.href||""),"font"===l.tag){var h=["x-small","small","medium","large","x-large","xx-large","-webkit-xxx-large"],g={color:"color",face:"font-family",size:"font-size"};l.styleStr||(l.styleStr=""),Object.keys(g).forEach((function(e){if(l.attr[e]){var t="size"===e?h[l.attr[e]-1]:l.attr[e];l.styleStr+="".concat(g[e],": ").concat(t,";")}}))}if("source"===l.tag&&(p.source=l.attr.src),t.start&&t.start(l,p),i){var m=o[0]||p;void 0===m.nodes&&(m.nodes=[]),m.nodes.push(l)}else o.unshift(l)},end:function(e){var n=o.shift();if(n.tag!==e&&console.error("invalid state: mismatch end tag"),"video"===n.tag&&p.source&&(n.attr.src=p.source,delete p.source),t.end&&t.end(n,p),0===o.length)p.nodes.push(n);else{var r=o[0];r.nodes||(r.nodes=[]),r.nodes.push(n)}},chars:function(e){if(e.trim()){var n={node:"text",text:e};if(t.chars&&t.chars(n,p),0===o.length)p.nodes.push(n);else{var r=o[0];void 0===r.nodes&&(r.nodes=[]),r.nodes.push(n)}}}}),p}var h=p;t.default=h},380:function(e,t,n){"use strict";function r(e){return e=e.replace(/&forall;|&#8704;|&#x2200;/g,"∀"),e=e.replace(/&part;|&#8706;|&#x2202;/g,"∂"),e=e.replace(/&exist;|&#8707;|&#x2203;/g,"∃"),e=e.replace(/&empty;|&#8709;|&#x2205;/g,"∅"),e=e.replace(/&nabla;|&#8711;|&#x2207;/g,"∇"),e=e.replace(/&isin;|&#8712;|&#x2208;/g,"∈"),e=e.replace(/&notin;|&#8713;|&#x2209;/g,"∉"),e=e.replace(/&ni;|&#8715;|&#x220b;/g,"∋"),e=e.replace(/&prod;|&#8719;|&#x220f;/g,"∏"),e=e.replace(/&sum;|&#8721;|&#x2211;/g,"∑"),e=e.replace(/&minus;|&#8722;|&#x2212;/g,"−"),e=e.replace(/&lowast;|&#8727;|&#x2217;/g,"∗"),e=e.replace(/&radic;|&#8730;|&#x221a;/g,"√"),e=e.replace(/&prop;|&#8733;|&#x221d;/g,"∝"),e=e.replace(/&infin;|&#8734;|&#x221e;/g,"∞"),e=e.replace(/&ang;|&#8736;|&#x2220;/g,"∠"),e=e.replace(/&and;|&#8743;|&#x2227;/g,"∧"),e=e.replace(/&or;|&#8744;|&#x2228;/g,"∨"),e=e.replace(/&cap;|&#8745;|&#x2229;/g,"∩"),e=e.replace(/&cup;|&#8746;|&#x222a;/g,"∪"),e=e.replace(/&int;|&#8747;|&#x222b;/g,"∫"),e=e.replace(/&there4;|&#8756;|&#x2234;/g,"∴"),e=e.replace(/&sim;|&#8764;|&#x223c;/g,"∼"),e=e.replace(/&cong;|&#8773;|&#x2245;/g,"≅"),e=e.replace(/&asymp;|&#8776;|&#x2248;/g,"≈"),e=e.replace(/&ne;|&#8800;|&#x2260;/g,"≠"),e=e.replace(/&le;|&#8804;|&#x2264;/g,"≤"),e=e.replace(/&ge;|&#8805;|&#x2265;/g,"≥"),e=e.replace(/&sub;|&#8834;|&#x2282;/g,"⊂"),e=e.replace(/&sup;|&#8835;|&#x2283;/g,"⊃"),e=e.replace(/&nsub;|&#8836;|&#x2284;/g,"⊄"),e=e.replace(/&sube;|&#8838;|&#x2286;/g,"⊆"),e=e.replace(/&supe;|&#8839;|&#x2287;/g,"⊇"),e=e.replace(/&oplus;|&#8853;|&#x2295;/g,"⊕"),e=e.replace(/&otimes;|&#8855;|&#x2297;/g,"⊗"),e=e.replace(/&perp;|&#8869;|&#x22a5;/g,"⊥"),e=e.replace(/&sdot;|&#8901;|&#x22c5;/g,"⋅"),e}function a(e){return e=e.replace(/&Alpha;|&#913;|&#x391;/g,"Α"),e=e.replace(/&Beta;|&#914;|&#x392;/g,"Β"),e=e.replace(/&Gamma;|&#915;|&#x393;/g,"Γ"),e=e.replace(/&Delta;|&#916;|&#x394;/g,"Δ"),e=e.replace(/&Epsilon;|&#917;|&#x395;/g,"Ε"),e=e.replace(/&Zeta;|&#918;|&#x396;/g,"Ζ"),e=e.replace(/&Eta;|&#919;|&#x397;/g,"Η"),e=e.replace(/&Theta;|&#920;|&#x398;/g,"Θ"),e=e.replace(/&Iota;|&#921;|&#x399;/g,"Ι"),e=e.replace(/&Kappa;|&#922;|&#x39a;/g,"Κ"),e=e.replace(/&Lambda;|&#923;|&#x39b;/g,"Λ"),e=e.replace(/&Mu;|&#924;|&#x39c;/g,"Μ"),e=e.replace(/&Nu;|&#925;|&#x39d;/g,"Ν"),e=e.replace(/&Xi;|&#925;|&#x39d;/g,"Ν"),e=e.replace(/&Omicron;|&#927;|&#x39f;/g,"Ο"),e=e.replace(/&Pi;|&#928;|&#x3a0;/g,"Π"),e=e.replace(/&Rho;|&#929;|&#x3a1;/g,"Ρ"),e=e.replace(/&Sigma;|&#931;|&#x3a3;/g,"Σ"),e=e.replace(/&Tau;|&#932;|&#x3a4;/g,"Τ"),e=e.replace(/&Upsilon;|&#933;|&#x3a5;/g,"Υ"),e=e.replace(/&Phi;|&#934;|&#x3a6;/g,"Φ"),e=e.replace(/&Chi;|&#935;|&#x3a7;/g,"Χ"),e=e.replace(/&Psi;|&#936;|&#x3a8;/g,"Ψ"),e=e.replace(/&Omega;|&#937;|&#x3a9;/g,"Ω"),e=e.replace(/&alpha;|&#945;|&#x3b1;/g,"α"),e=e.replace(/&beta;|&#946;|&#x3b2;/g,"β"),e=e.replace(/&gamma;|&#947;|&#x3b3;/g,"γ"),e=e.replace(/&delta;|&#948;|&#x3b4;/g,"δ"),e=e.replace(/&epsilon;|&#949;|&#x3b5;/g,"ε"),e=e.replace(/&zeta;|&#950;|&#x3b6;/g,"ζ"),e=e.replace(/&eta;|&#951;|&#x3b7;/g,"η"),e=e.replace(/&theta;|&#952;|&#x3b8;/g,"θ"),e=e.replace(/&iota;|&#953;|&#x3b9;/g,"ι"),e=e.replace(/&kappa;|&#954;|&#x3ba;/g,"κ"),e=e.replace(/&lambda;|&#955;|&#x3bb;/g,"λ"),e=e.replace(/&mu;|&#956;|&#x3bc;/g,"μ"),e=e.replace(/&nu;|&#957;|&#x3bd;/g,"ν"),e=e.replace(/&xi;|&#958;|&#x3be;/g,"ξ"),e=e.replace(/&omicron;|&#959;|&#x3bf;/g,"ο"),e=e.replace(/&pi;|&#960;|&#x3c0;/g,"π"),e=e.replace(/&rho;|&#961;|&#x3c1;/g,"ρ"),e=e.replace(/&sigmaf;|&#962;|&#x3c2;/g,"ς"),e=e.replace(/&sigma;|&#963;|&#x3c3;/g,"σ"),e=e.replace(/&tau;|&#964;|&#x3c4;/g,"τ"),e=e.replace(/&upsilon;|&#965;|&#x3c5;/g,"υ"),e=e.replace(/&phi;|&#966;|&#x3c6;/g,"φ"),e=e.replace(/&chi;|&#967;|&#x3c7;/g,"χ"),e=e.replace(/&psi;|&#968;|&#x3c8;/g,"ψ"),e=e.replace(/&omega;|&#969;|&#x3c9;/g,"ω"),e=e.replace(/&thetasym;|&#977;|&#x3d1;/g,"ϑ"),e=e.replace(/&upsih;|&#978;|&#x3d2;/g,"ϒ"),e=e.replace(/&piv;|&#982;|&#x3d6;/g,"ϖ"),e=e.replace(/&middot;|&#183;|&#xb7;/g,"·"),e}function i(e){return e=e.replace(/&nbsp;|&#32;|&#x20;/g,"<span class='spaceshow'> </span>"),e=e.replace(/&ensp;|&#8194;|&#x2002;/g,"<span class='spaceshow'> </span>"),e=e.replace(/&#12288;|&#x3000;/g,"<span class='spaceshow'> </span>"),e=e.replace(/&emsp;|&#8195;|&#x2003;/g,"<span class='spaceshow'> </span>"),e=e.replace(/&quot;|&#34;|&#x22;/g,'"'),e=e.replace(/&quot;|&#39;|&#x27;/g,"'"),e=e.replace(/&acute;|&#180;|&#xB4;/g,"´"),e=e.replace(/&times;|&#215;|&#xD7;/g,"×"),e=e.replace(/&divide;|&#247;|&#xF7;/g,"÷"),e=e.replace(/&amp;|&#38;|&#x26;/g,"&"),e=e.replace(/&lt;|&#60;|&#x3c;/g,"<"),e=e.replace(/&gt;|&#62;|&#x3e;/g,">"),e}function o(e){return e=e.replace(/&OElig;|&#338;|&#x152;/g,"Œ"),e=e.replace(/&oelig;|&#339;|&#x153;/g,"œ"),e=e.replace(/&Scaron;|&#352;|&#x160;/g,"Š"),e=e.replace(/&scaron;|&#353;|&#x161;/g,"š"),e=e.replace(/&Yuml;|&#376;|&#x178;/g,"Ÿ"),e=e.replace(/&fnof;|&#402;|&#x192;/g,"ƒ"),e=e.replace(/&circ;|&#710;|&#x2c6;/g,"ˆ"),e=e.replace(/&tilde;|&#732;|&#x2dc;/g,"˜"),e=e.replace(/&thinsp;|$#8201;|&#x2009;/g,"<span class='spaceshow'> </span>"),e=e.replace(/&zwnj;|&#8204;|&#x200C;/g,"<span class='spaceshow'>‌</span>"),e=e.replace(/&zwj;|$#8205;|&#x200D;/g,"<span class='spaceshow'>‍</span>"),e=e.replace(/&lrm;|$#8206;|&#x200E;/g,"<span class='spaceshow'>‎</span>"),e=e.replace(/&rlm;|&#8207;|&#x200F;/g,"<span class='spaceshow'>‏</span>"),e=e.replace(/&ndash;|&#8211;|&#x2013;/g,"–"),e=e.replace(/&mdash;|&#8212;|&#x2014;/g,"—"),e=e.replace(/&lsquo;|&#8216;|&#x2018;/g,"‘"),e=e.replace(/&rsquo;|&#8217;|&#x2019;/g,"’"),e=e.replace(/&sbquo;|&#8218;|&#x201a;/g,"‚"),e=e.replace(/&ldquo;|&#8220;|&#x201c;/g,"“"),e=e.replace(/&rdquo;|&#8221;|&#x201d;/g,"”"),e=e.replace(/&bdquo;|&#8222;|&#x201e;/g,"„"),e=e.replace(/&dagger;|&#8224;|&#x2020;/g,"†"),e=e.replace(/&Dagger;|&#8225;|&#x2021;/g,"‡"),e=e.replace(/&bull;|&#8226;|&#x2022;/g,"•"),e=e.replace(/&hellip;|&#8230;|&#x2026;/g,"…"),e=e.replace(/&permil;|&#8240;|&#x2030;/g,"‰"),e=e.replace(/&prime;|&#8242;|&#x2032;/g,"′"),e=e.replace(/&Prime;|&#8243;|&#x2033;/g,"″"),e=e.replace(/&lsaquo;|&#8249;|&#x2039;/g,"‹"),e=e.replace(/&rsaquo;|&#8250;|&#x203a;/g,"›"),e=e.replace(/&oline;|&#8254;|&#x203e;/g,"‾"),e=e.replace(/&euro;|&#8364;|&#x20ac;/g,"€"),e=e.replace(/&trade;|&#8482;|&#x2122;/g,"™"),e=e.replace(/&larr;|&#8592;|&#x2190;/g,"←"),e=e.replace(/&uarr;|&#8593;|&#x2191;/g,"↑"),e=e.replace(/&rarr;|&#8594;|&#x2192;/g,"→"),e=e.replace(/&darr;|&#8595;|&#x2193;/g,"↓"),e=e.replace(/&harr;|&#8596;|&#x2194;/g,"↔"),e=e.replace(/&crarr;|&#8629;|&#x21b5;/g,"↵"),e=e.replace(/&lceil;|&#8968;|&#x2308;/g,"⌈"),e=e.replace(/&rceil;|&#8969;|&#x2309;/g,"⌉"),e=e.replace(/&lfloor;|&#8970;|&#x230a;/g,"⌊"),e=e.replace(/&rfloor;|&#8971;|&#x230b;/g,"⌋"),e=e.replace(/&loz;|&#9674;|&#x25ca;/g,"◊"),e=e.replace(/&spades;|&#9824;|&#x2660;/g,"♠"),e=e.replace(/&clubs;|&#9827;|&#x2663;/g,"♣"),e=e.replace(/&hearts;|&#9829;|&#x2665;/g,"♥"),e=e.replace(/&diams;|&#9830;|&#x2666;/g,"♦"),e}function s(e){return e=r(e),e=a(e),e=i(e),e=o(e),e}function c(e,t){return/^\/\//.test(e)?"https:".concat(e):/^\//.test(e)?"https://".concat(t).concat(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u={strDiscode:s,urlToHttpUrl:c};t.default=u},381:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z0-9_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,a=/^<\/([-A-Za-z0-9_]+)[^>]*>/,i=/([a-zA-Z0-9_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g;function o(e){for(var t={},n=e.split(","),r=0;r<n.length;r+=1)t[n[r]]=!0;return t}var s=o("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),c=o("address,code,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),u=o("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),l=o("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),f=o("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected");function d(e,t){var n,o,d,p=e,h=[];function v(e,n){var r;if(n){for(n=n.toLowerCase(),r=h.length-1;r>=0;r-=1)if(h[r]===n)break}else r=0;if(r>=0){for(var a=h.length-1;a>=r;a-=1)t.end&&t.end(h[a]);h.length=r}}function g(e,n,r,a){if(n=n.toLowerCase(),c[n])while(h.last()&&u[h.last()])v("",h.last());if(l[n]&&h.last()===n&&v("",n),a=s[n]||!!a,a||h.push(n),t.start){var o=[];r.replace(i,(function(e,t){var n=arguments[2]||arguments[3]||arguments[4]||(f[t]?t:"");o.push({name:t,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})})),t.start&&t.start(n,o,a)}}h.last=function(){return h[h.length-1]};while(e){if(o=!0,0===e.indexOf("</")?(d=e.match(a),d&&(e=e.substring(d[0].length),d[0].replace(a,v),o=!1)):0===e.indexOf("<")&&(d=e.match(r),d&&(e=e.substring(d[0].length),d[0].replace(r,g),o=!1)),o){n=e.indexOf("<");var m="";while(0===n)m+="<",e=e.substring(1),n=e.indexOf("<");m+=n<0?e:e.substring(0,n),e=n<0?"":e.substring(n),t.chars&&t.chars(m)}if(e===p)throw new Error("Parse Error: ".concat(e));p=e}v()}var p=d;t.default=p},387:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(388)),a=o(n(389)),i=o(n(390));function o(e){return e&&e.__esModule?e:{default:e}}var s={en:r.default,"zh-Hans":a.default,"zh-Hant":i.default};t.default=s},388:function(e){e.exports=JSON.parse('{"uni-goods-nav.options.shop":"shop","uni-goods-nav.options.cart":"cart","uni-goods-nav.buttonGroup.addToCart":"add to cart","uni-goods-nav.buttonGroup.buyNow":"buy now"}')},389:function(e){e.exports=JSON.parse('{"uni-goods-nav.options.shop":"店铺","uni-goods-nav.options.cart":"购物车","uni-goods-nav.buttonGroup.addToCart":"加入购物车","uni-goods-nav.buttonGroup.buyNow":"立即购买"}')},390:function(e){e.exports=JSON.parse('{"uni-goods-nav.options.shop":"店鋪","uni-goods-nav.options.cart":"購物車","uni-goods-nav.buttonGroup.addToCart":"加入購物車","uni-goods-nav.buttonGroup.buyNow":"立即購買"}')},4:function(e,t,n){"use strict";n.r(t),function(e){
  2. /*!
  3. * Vue.js v2.6.11
  4. * (c) 2014-2022 Evan You
  5. * Released under the MIT License.
  6. */
  7. var n=Object.freeze({});function r(e){return void 0===e||null===e}function a(e){return void 0!==e&&null!==e}function i(e){return!0===e}function o(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function l(e){return u.call(e).slice(8,-1)}function f(e){return"[object Object]"===u.call(e)}function d(e){return"[object RegExp]"===u.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return a(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),a=0;a<r.length;a++)n[r[a]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var y=m("slot,component",!0),_=m("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 x(e,t){return w.call(e,t)}function k(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var O=/-(\w)/g,S=k((function(e){return e.replace(O,(function(e,t){return t?t.toUpperCase():""}))})),A=k((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),P=/\B([A-Z])/g,T=k((function(e){return e.replace(P,"-$1").toLowerCase()}));function j(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 E(e,t){return e.bind(t)}var I=Function.prototype.bind?E:j;function $(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function C(e,t){for(var n in t)e[n]=t[n];return e}function D(e){for(var t={},n=0;n<e.length;n++)e[n]&&C(t,e[n]);return t}function L(e,t,n){}var R=function(e,t,n){return!1},M=function(e){return e};function N(e,t){if(e===t)return!0;var n=c(e),r=c(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var a=Array.isArray(e),i=Array.isArray(t);if(a&&i)return e.length===t.length&&e.every((function(e,n){return N(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(a||i)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(n){return N(e[n],t[n])}))}catch(u){return!1}}function U(e,t){for(var n=0;n<e.length;n++)if(N(e[n],t))return n;return-1}function F(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var q=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],V={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!0,devtools:!0,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:R,isReservedAttr:R,isUnknownElement:R,getTagNamespace:L,parsePlatformTagName:M,mustUseProp:R,async:!0,_lifecycleHooks:B},H=/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 z(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function K(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^"+H.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,Y="__proto__"in{},X="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Q=Z&&WXEnvironment.platform.toLowerCase(),ee=X&&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),ae=(ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee),ee&&ee.match(/firefox\/(\d+)/),{}.watch);if(X)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){}}),window.addEventListener("test-passive",null,ie)}catch(La){}var oe=function(){return void 0===G&&(G=!X&&!Z&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),G},se=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"===typeof e&&/native code/.test(e.toString())}var ue,le="undefined"!==typeof Symbol&&ce(Symbol)&&"undefined"!==typeof Reflect&&ce(Reflect.ownKeys);ue="undefined"!==typeof Set&&ce(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=L,de=L,pe=L,he=L,ve="undefined"!==typeof console,ge=/(?:^|[-_])(\w)/g,me=function(e){return e.replace(ge,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};fe=function(e,t){var n=t?pe(t):"";V.warnHandler?V.warnHandler.call(null,e,t,n):ve&&!V.silent&&console.error("[Vue warn]: "+e+n)},de=function(e,t){ve&&!V.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,a=n.__file;if(!r&&a){var i=a.match(/([^/\\]+)\.vue$/);r=i&&i[1]}return(r?"<"+me(r)+">":"<Anonymous>")+(a&&!1!==t?" at "+a:"")};var ye=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 ":ye(" ",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 xe(){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();V.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 ke=function(e,t,n,r,a,i,o,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=a,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=o,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(ke.prototype,Oe);var Se=function(e){void 0===e&&(e="");var t=new ke;return t.text=e,t.isComment=!0,t};function Ae(e){return new ke(void 0,void 0,void 0,String(e))}function Pe(e){var t=new ke(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 Te=Array.prototype,je=Object.create(Te),Ee=["push","pop","shift","unshift","splice","sort","reverse"];Ee.forEach((function(e){var t=Te[e];K(je,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var a,i=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":a=n;break;case"splice":a=n.slice(2);break}return a&&o.observeArray(a),o.dep.notify(),i}))}));var Ie=Object.getOwnPropertyNames(je),$e=!0;function Ce(e){$e=e}var De=function(e){this.value=e,this.dep=new be,this.vmCount=0,K(e,"__ob__",this),Array.isArray(e)?(Y?e.push!==e.__proto__.push?Re(e,je,Ie):Le(e,je):Re(e,je,Ie),this.observeArray(e)):this.walk(e)};function Le(e,t){e.__proto__=t}function Re(e,t,n){for(var r=0,a=n.length;r<a;r++){var i=n[r];K(e,i,t[i])}}function Me(e,t){var n;if(c(e)&&!(e instanceof ke))return x(e,"__ob__")&&e.__ob__ instanceof De?n=e.__ob__:$e&&!oe()&&(Array.isArray(e)||f(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new De(e)),t&&n&&n.vmCount++,n}function Ne(e,t,n,r,a){var i=new be,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var s=o&&o.get,c=o&&o.set;s&&!c||2!==arguments.length||(n=e[t]);var u=!a&&Me(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return be.SharedObject.target&&(i.depend(),u&&(u.dep.depend(),Array.isArray(t)&&qe(t))),t},set:function(t){var o=s?s.call(e):n;t===o||t!==t&&o!==o||(r&&r(),s&&!c||(c?c.call(e,t):n=t,u=!a&&Me(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 a=e.__ob__;return e._isVue||a&&a.vmCount?(fe("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),n):a?(Ne(a.value,t,n),a.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."):x(e,t)&&(delete e[t],n&&n.dep.notify())}}function qe(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)&&qe(t)}De.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Ne(e,t[n])},De.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Me(e[t])};var Be=V.optionMergeStrategies;function Ve(e,t){if(!t)return e;for(var n,r,a,i=le?Reflect.ownKeys(t):Object.keys(t),o=0;o<i.length;o++)n=i[o],"__ob__"!==n&&(r=e[n],a=t[n],x(e,n)?r!==a&&f(r)&&f(a)&&Ve(r,a):Ue(e,n,a));return e}function He(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,a="function"===typeof e?e.call(n,n):e;return r?Ve(r,a):a}:t?e?function(){return Ve("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function ze(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?Ke(n):n}function Ke(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 a=Object.create(e||null);return t?(et(r,t,n),C(a,t)):a}Be.el=Be.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)},Be.data=function(e,t,n){return n?He(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):He(e,t)},B.forEach((function(e){Be[e]=ze})),q.forEach((function(e){Be[e+"s"]=We})),Be.watch=function(e,t,n,r){if(e===ae&&(e=void 0),t===ae&&(t=void 0),!t)return Object.create(e||null);if(et(r,t,n),!e)return t;var a={};for(var i in C(a,e),t){var o=a[i],s=t[i];o&&!Array.isArray(o)&&(o=[o]),a[i]=o?o.concat(s):Array.isArray(s)?s:[s]}return a},Be.props=Be.methods=Be.inject=Be.computed=function(e,t,n,r){if(t&&et(r,t,n),!e)return t;var a=Object.create(null);return C(a,e),t&&C(a,t),a},Be.provide=He;var Je=function(e,t){return void 0===t?e:t};function Ge(e){for(var t in e.components)Ye(t)}function Ye(e){new RegExp("^[a-zA-Z][\\-\\.0-9_"+H.source+"]*$").test(e)||fe('Invalid component name: "'+e+'". Component names should conform to valid custom element name in html5 specification.'),(y(e)||V.isReservedTag(e))&&fe("Do not use built-in or reserved HTML elements as component id: "+e)}function Xe(e,t){var n=e.props;if(n){var r,a,i,o={};if(Array.isArray(n)){r=n.length;while(r--)a=n[r],"string"===typeof a?(i=S(a),o[i]={type:null}):fe("props must be strings when using array syntax.")}else if(f(n))for(var s in n)a=n[s],i=S(s),o[i]=f(a)?a:{type:a};else fe('Invalid value for option "props": expected an Array or an Object, but got '+l(n)+".",t);e.props=o}}function Ze(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var a=0;a<n.length;a++)r[n[a]]={from:n[a]};else if(f(n))for(var i in n){var o=n[i];r[i]=f(o)?C({from:i},o):{from:o}}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),Xe(t,n),Ze(t,n),Qe(t),!t._base&&(t.extends&&(e=tt(e,t.extends,n)),t.mixins))for(var r=0,a=t.mixins.length;r<a;r++)e=tt(e,t.mixins[r],n);var i,o={};for(i in e)s(i);for(i in t)x(e,i)||s(i);function s(r){var a=Be[r]||Je;o[r]=a(e[r],t[r],n,r)}return o}function nt(e,t,n,r){if("string"===typeof n){var a=e[t];if(x(a,n))return a[n];var i=S(n);if(x(a,i))return a[i];var o=A(i);if(x(a,o))return a[o];var s=a[n]||a[i]||a[o];return r&&!s&&fe("Failed to resolve "+t.slice(0,-1)+": "+n,e),s}}function rt(e,t,n,r){var a=t[e],i=!x(n,e),o=n[e],s=lt(Boolean,a.type);if(s>-1)if(i&&!x(a,"default"))o=!1;else if(""===o||o===T(e)){var c=lt(String,a.type);(c<0||s<c)&&(o=!0)}if(void 0===o){o=at(r,a,e);var u=$e;Ce(!0),Me(o),Ce(u)}return it(a,e,o,r,i),o}function at(e,t,n){if(x(t,"default")){var r=t.default;return c(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"!==ct(t.type)?r.call(e):r}}function it(e,t,n,r,a){if(e.required&&a)fe('Missing required prop: "'+t+'"',r);else if(null!=n||e.required){var i=e.type,o=!i||!0===i,s=[];if(i){Array.isArray(i)||(i=[i]);for(var c=0;c<i.length&&!o;c++){var u=st(n,i[c]);s.push(u.expectedType||""),o=u.valid}}if(o){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 ot=/^(String|Number|Boolean|Function|Symbol)$/;function st(e,t){var n,r=ct(t);if(ot.test(r)){var a=typeof e;n=a===r.toLowerCase(),n||"object"!==a||(n=e instanceof t)}else n="Object"===r?f(e):"Array"===r?Array.isArray(e):e instanceof t;return{valid:n,expectedType:r}}function ct(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function ut(e,t){return ct(e)===ct(t)}function lt(e,t){if(!Array.isArray(t))return ut(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(ut(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(A).join(", "),a=n[0],i=l(t),o=dt(t,a),s=dt(t,i);return 1===n.length&&pt(a)&&!ht(a,i)&&(r+=" with value "+o),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 a=r.$options.errorCaptured;if(a)for(var i=0;i<a.length;i++)try{var o=!1===a[i].call(r,e,t,n);if(o)return}catch(La){mt(La,r,"errorCaptured hook")}}}mt(e,t,n)}finally{xe()}}function gt(e,t,n,r,a){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,a+" (Promise/async)")})),i._handled=!0)}catch(La){vt(La,r,a)}return i}function mt(e,t,n){if(V.errorHandler)try{return V.errorHandler.call(null,e,t,n)}catch(La){La!==e&&yt(La,null,"config.errorHandler")}yt(e,t,n)}function yt(e,t,n){if(fe("Error in "+n+': "'+e.toString()+'"',t),!X&&!Z||"undefined"===typeof console)throw e;console.error(e)}var _t,bt,wt=[],xt=!1;function kt(){xt=!1;var e=wt.slice(0);wt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&ce(Promise)){var Ot=Promise.resolve();_t=function(){Ot.then(kt),re&&setTimeout(L)}}else if(te||"undefined"===typeof MutationObserver||!ce(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())_t="undefined"!==typeof setImmediate&&ce(setImmediate)?function(){setImmediate(kt)}:function(){setTimeout(kt,0)};else{var St=1,At=new MutationObserver(kt),Pt=document.createTextNode(String(St));At.observe(Pt,{characterData:!0}),_t=function(){St=(St+1)%2,Pt.data=String(St)}}function Tt(e,t){var n;if(wt.push((function(){if(e)try{e.call(t)}catch(La){vt(La,t,"nextTick")}else n&&n(t)})),xt||(xt=!0,_t()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var jt=m("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"),Et=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)},$t="undefined"!==typeof Proxy&&ce(Proxy);if($t){var Ct=m("stop,prevent,self,ctrl,shift,alt,meta,exact");V.keyCodes=new Proxy(V.keyCodes,{set:function(e,t,n){return Ct(t)?(fe("Avoid overwriting built-in modifier in config.keyCodes: ."+t),!1):(e[t]=n,!0)}})}var Dt={has:function(e,t){var n=t in e,r=jt(t)||"string"===typeof t&&"_"===t.charAt(0)&&!(t in e.$data);return n||r||(t in e.$data?It(e,t):Et(e,t)),n||!r}},Lt={get:function(e,t){return"string"!==typeof t||t in e||(t in e.$data?It(e,t):Et(e,t)),e[t]}};bt=function(e){if($t){var t=e.$options,n=t.render&&t.render._withStripped?Lt:Dt;e._renderProxy=new Proxy(e,n)}else e._renderProxy=e};var Rt,Mt,Nt=new ue;function Ut(e){Ft(e,Nt),Nt.clear()}function Ft(e,t){var n,r,a=Array.isArray(e);if(!(!a&&!c(e)||Object.isFrozen(e)||e instanceof ke)){if(e.__ob__){var i=e.__ob__.dep.id;if(t.has(i))return;t.add(i)}if(a){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 qt=X&&window.performance;qt&&qt.mark&&qt.measure&&qt.clearMarks&&qt.clearMeasures&&(Rt=function(e){return qt.mark(e)},Mt=function(e,t,n){qt.measure(e,t,n),qt.clearMarks(t),qt.clearMarks(n)});var Bt=k((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 Vt(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 a=r.slice(),i=0;i<a.length;i++)gt(a[i],null,e,t,"v-on handler")}return n.fns=e,n}function Ht(e,t,n,a,o,s){var c,u,l,f;for(c in e)u=e[c],l=t[c],f=Bt(c),r(u)?fe('Invalid handler for event "'+f.name+'": got '+String(u),s):r(l)?(r(u.fns)&&(u=e[c]=Vt(u,s)),i(f.once)&&(u=e[c]=o(f.name,u,f.capture)),n(f.name,u,f.capture,f.passive,f.params)):u!==l&&(l.fns=u,e[c]=l);for(c in t)r(e[c])&&(f=Bt(c),a(f.name,t[c],f.capture))}function zt(e,t,n,i){var o=t.options.mpOptions&&t.options.mpOptions.properties;if(r(o))return n;var s=t.options.mpOptions.externalClasses||[],c=e.attrs,u=e.props;if(a(c)||a(u))for(var l in o){var f=T(l),d=Wt(n,u,l,f,!0)||Wt(n,c,l,f,!1);d&&n[l]&&-1!==s.indexOf(f)&&i[S(n[l])]&&(n[l]=i[S(n[l])])}return n}function Kt(e,t,n,i){var o=t.options.props;if(r(o))return zt(e,t,{},i);var s={},c=e.attrs,u=e.props;if(a(c)||a(u))for(var l in o){var f=T(l),d=l.toLowerCase();l!==d&&c&&x(c,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,u,l,f,!0)||Wt(s,c,l,f,!1)}return zt(e,t,s,i)}function Wt(e,t,n,r,i){if(a(t)){if(x(t,n))return e[n]=t[n],i||delete t[n],!0;if(x(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)?[Ae(e)]:Array.isArray(e)?Xt(e):void 0}function Yt(e){return a(e)&&a(e.text)&&o(e.isComment)}function Xt(e,t){var n,o,c,u,l=[];for(n=0;n<e.length;n++)o=e[n],r(o)||"boolean"===typeof o||(c=l.length-1,u=l[c],Array.isArray(o)?o.length>0&&(o=Xt(o,(t||"")+"_"+n),Yt(o[0])&&Yt(u)&&(l[c]=Ae(u.text+o[0].text),o.shift()),l.push.apply(l,o)):s(o)?Yt(u)?l[c]=Ae(u.text+o):""!==o&&l.push(Ae(o)):Yt(o)&&Yt(u)?l[c]=Ae(u.text+o.text):(i(e._isVList)&&a(o.tag)&&r(o.key)&&a(t)&&(o.key="__vlist"+t+"_"+n+"__"),l.push(o)));return l}function Zt(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&&(Ce(!1),Object.keys(t).forEach((function(n){Ne(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)}))})),Ce(!0))}function en(e,t){if(e){for(var n=Object.create(null),r=le?Reflect.ownKeys(e):Object.keys(e),a=0;a<r.length;a++){var i=r[a];if("__ob__"!==i){var o=e[i].from,s=t;while(s){if(s._provided&&x(s._provided,o)){n[i]=s._provided[o];break}s=s.$parent}if(!s)if("default"in e[i]){var c=e[i].default;n[i]="function"===typeof c?c.call(t):c}else fe('Injection "'+i+'" not found',t)}}return n}}function tn(e,t){if(!e||!e.length)return{};for(var n={},r=0,a=e.length;r<a;r++){var i=e[r],o=i.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,i.context!==t&&i.fnContext!==t||!o||null==o.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=o.slot,c=n[s]||(n[s]=[]);"template"===i.tag?c.push.apply(c,i.children||[]):c.push(i)}}for(var u in n)n[u].every(nn)&&delete n[u];return n}function nn(e){return e.isComment&&!e.asyncFactory||" "===e.text}function rn(e,t,r){var a,i=Object.keys(t).length>0,o=e?!!e.$stable:!i,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&r&&r!==n&&s===r.$key&&!i&&!r.$hasNormal)return r;for(var c in a={},e)e[c]&&"$"!==c[0]&&(a[c]=an(t,c,e[c]))}else a={};for(var u in t)u in a||(a[u]=on(t,u));return e&&Object.isExtensible(e)&&(e._normalized=a),K(a,"$stable",o),K(a,"$key",s),K(a,"$hasNormal",i),a}function an(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 on(e,t){return function(){return e[t]}}function sn(e,t){var n,r,i,o,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(c(e))if(le&&e[Symbol.iterator]){n=[];var u=e[Symbol.iterator](),l=u.next();while(!l.done)n.push(t(l.value,n.length,r,r++)),l=u.next()}else for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)s=o[r],n[r]=t(e[s],s,r,r);return a(n)||(n=[]),n._isVList=!0,n}function cn(e,t,n,r){var a,i=this.$scopedSlots[e];i?(n=n||{},r&&(c(r)||fe("slot v-bind without argument expects an Object",this),n=C(C({},r),n)),a=i(n,this,n._i)||t):a=this.$slots[e]||t;var o=n&&n.slot;return o?this.$createElement("template",{slot:o},a):a}function un(e){return nt(this.$options,"filters",e,!0)||M}function ln(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function fn(e,t,n,r,a){var i=V.keyCodes[t]||n;return a&&r&&!V.keyCodes[t]?ln(a,r):i?ln(i,e):r?T(r)!==t:void 0}function dn(e,t,n,r,a){if(n)if(c(n)){var i;Array.isArray(n)&&(n=D(n));var o=function(o){if("class"===o||"style"===o||_(o))i=e;else{var s=e.attrs&&e.attrs.type;i=r||V.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=S(o),u=T(o);if(!(c in i)&&!(u in i)&&(i[o]=n[o],a)){var l=e.on||(e.on={});l["update:"+o]=function(e){n[o]=e}}};for(var s in n)o(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 mn(e,t){if(t)if(f(t)){var n=e.on=e.on?C({},e.on):{};for(var r in t){var a=n[r],i=t[r];n[r]=a?[].concat(a,i):i}}else fe("v-on without argument expects an Object value",this);return e}function yn(e,t,n,r){t=t||{$stable:!n};for(var a=0;a<e.length;a++){var i=e[a];Array.isArray(i)?yn(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=cn,e._q=N,e._i=U,e._m=pn,e._f=un,e._k=fn,e._b=dn,e._v=Ae,e._e=Se,e._u=yn,e._g=mn,e._d=_n,e._p=bn}function xn(e,t,r,a,o){var s,c=this,u=o.options;x(a,"_uid")?(s=Object.create(a),s._original=a):(s=a,a=a._original);var l=i(u._compiled),f=!l;this.data=e,this.props=t,this.children=r,this.parent=a,this.listeners=e.on||n,this.injections=en(u.inject,a),this.slots=function(){return c.$slots||rn(e.scopedSlots,c.$slots=tn(r,a)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return rn(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=rn(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var i=Ln(s,e,t,n,r,f);return i&&!Array.isArray(i)&&(i.fnScopeId=u._scopeId,i.fnContext=a),i}:this._c=function(e,t,n,r){return Ln(s,e,t,n,r,f)}}function kn(e,t,r,i,o){var s=e.options,c={},u=s.props;if(a(u))for(var l in u)c[l]=rt(l,u,t||n);else a(r.attrs)&&Sn(c,r.attrs),a(r.props)&&Sn(c,r.props);var f=new xn(r,c,o,i,e),d=s.render.call(null,f._c,f);if(d instanceof ke)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,a){var i=Pe(e);return i.fnContext=n,i.fnOptions=r,(i.devtoolsMeta=i.devtoolsMeta||{}).renderContext=a,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function Sn(e,t){for(var n in t)e[S(n)]=t[n]}wn(xn.prototype);var An={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;An.prepatch(n,n)}else{var r=e.componentInstance=jn(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||(ur(n,"onServiceCreated"),ur(n,"onServiceAttached"),n._isMounted=!0,ur(n,"mounted")),e.data.keepAlive&&(t._isMounted?kr(n):sr(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?cr(t,!0):t.$destroy())}},Pn=Object.keys(An);function Tn(e,t,n,o,s){if(!r(e)){var u=n.$options._base;if(c(e)&&(e=u.extend(e)),"function"===typeof e){var l;if(r(e.cid)&&(l=e,e=zn(l,u),void 0===e))return Hn(l,t,n,o,s);t=t||{},Kr(e),a(t.model)&&$n(e.options,t);var f=Kt(t,e,s,n);if(i(e.options.functional))return kn(e,f,t,n,o);var d=t.on;if(t.on=t.nativeOn,i(e.options.abstract)){var p=t.slot;t={},p&&(t.slot=p)}En(t);var h=e.options.name||s,v=new ke("vue-component-"+e.cid+(h?"-"+h:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:d,tag:s,children:o},l);return v}fe("Invalid Component definition: "+String(e),n)}}function jn(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return a(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function En(e){for(var t=e.hook||(e.hook={}),n=0;n<Pn.length;n++){var r=Pn[n],a=t[r],i=An[r];a===i||a&&a._merged||(t[r]=a?In(i,a):i)}}function In(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function $n(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={}),o=i[r],s=t.model.callback;a(o)?(Array.isArray(o)?-1===o.indexOf(s):o!==s)&&(i[r]=[s].concat(o)):i[r]=s}var Cn=1,Dn=2;function Ln(e,t,n,r,a,o){return(Array.isArray(n)||s(n))&&(a=r,r=n,n=void 0),i(o)&&(a=Dn),Rn(e,t,n,r,a)}function Rn(e,t,n,r,i){if(a(n)&&a(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),Se();if(a(n)&&a(n.is)&&(t=n.is),!t)return Se();var o,c,u;(a(n)&&a(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===Dn?r=Gt(r):i===Cn&&(r=Jt(r)),"string"===typeof t)?(c=e.$vnode&&e.$vnode.ns||V.getTagNamespace(t),V.isReservedTag(t)?(a(n)&&a(n.nativeOn)&&fe("The .native modifier for v-on is only valid on components but it was used on <"+t+">.",e),o=new ke(V.parsePlatformTagName(t),n,r,void 0,void 0,e)):o=n&&n.pre||!a(u=nt(e.$options,"components",t))?new ke(t,n,r,void 0,void 0,e):Tn(u,n,e,r,t)):o=Tn(t,n,e,r);return Array.isArray(o)?o:a(o)?(a(c)&&Mn(o,c),a(n)&&Nn(n),o):Se()}function Mn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),a(e.children))for(var o=0,s=e.children.length;o<s;o++){var c=e.children[o];a(c.tag)&&(r(c.ns)||i(n)&&"svg"!==c.tag)&&Mn(c,t,n)}}function Nn(e){c(e.style)&&Ut(e.style),c(e.class)&&Ut(e.class)}function Un(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,a=r&&r.context;e.$slots=tn(t._renderChildren,a),e.$scopedSlots=n,e._c=function(t,n,r,a){return Ln(e,t,n,r,a,!1)},e.$createElement=function(t,n,r,a){return Ln(e,t,n,r,a,!0)};var i=r&&r.data;Ne(e,"$attrs",i&&i.attrs||n,(function(){!tr&&fe("$attrs is readonly.",e)}),!0),Ne(e,"$listeners",t._parentListeners||n,(function(){!tr&&fe("$listeners is readonly.",e)}),!0)}var Fn,qn=null;function Bn(e){wn(e.prototype),e.prototype.$nextTick=function(e){return Tt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,a=n._parentVnode;a&&(t.$scopedSlots=rn(a.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=a;try{qn=t,e=r.call(t._renderProxy,t.$createElement)}catch(La){if(vt(La,t,"render"),t.$options.renderError)try{e=t.$options.renderError.call(t._renderProxy,t.$createElement,La)}catch(La){vt(La,t,"renderError"),e=t._vnode}else e=t._vnode}finally{qn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ke||(Array.isArray(e)&&fe("Multiple root nodes returned from render function. Render function should return a single root node.",t),e=Se()),e.parent=a,e}}function Vn(e,t){return(e.__esModule||le&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function Hn(e,t,n,r,a){var i=Se();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:a},i}function zn(e,t){if(i(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var n=qn;if(n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),i(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){var o=e.owners=[n],s=!0,u=null,l=null;n.$on("hook:destroyed",(function(){return b(o,n)}));var f=function(e){for(var t=0,n=o.length;t<n;t++)o[t].$forceUpdate();e&&(o.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},d=F((function(n){e.resolved=Vn(n,t),s?o.length=0:f(!0)})),p=F((function(t){fe("Failed to resolve async component: "+String(e)+(t?"\nReason: "+t:"")),a(e.errorComp)&&(e.error=!0,f(!0))})),v=e(d,p);return c(v)&&(h(v)?r(e.resolved)&&v.then(d,p):h(v.component)&&(v.component.then(d,p),a(v.error)&&(e.errorComp=Vn(v.error,t)),a(v.loading)&&(e.loadingComp=Vn(v.loading,t),0===v.delay?e.loading=!0:u=setTimeout((function(){u=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,f(!1))}),v.delay||200)),a(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 Kn(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(a(n)&&(a(n.componentOptions)||Kn(n)))return n}}function Jn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Zn(e,t)}function Gn(e,t){Fn.$on(e,t)}function Yn(e,t){Fn.$off(e,t)}function Xn(e,t){var n=Fn;return function r(){var a=t.apply(null,arguments);null!==a&&n.$off(e,r)}}function Zn(e,t,n){Fn=e,Ht(t,n||{},Gn,Yn,Xn,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 a=0,i=e.length;a<i;a++)r.$on(e[a],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,a=e.length;r<a;r++)n.$off(e[r],t);return n}var i,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;var s=o.length;while(s--)if(i=o[s],i===t||i.fn===t){o.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 "'+T(e)+'" instead of "'+e+'".');var r=t._events[e];if(r){r=r.length>1?$(r):r;for(var a=$(arguments,1),i='event handler for "'+e+'"',o=0,s=r.length;o<s;o++)gt(r[o],t,a,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 ar(e){e.prototype._update=function(e,t){var n=this,r=n.$el,a=n._vnode,i=nr(n);n._vnode=e,n.$el=a?n.__patch__(a,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){ur(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),ur(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function ir(e,t,r,a,i){tr=!0;var o=a.data.scopedSlots,s=e.$scopedSlots,c=!!(o&&!o.$stable||s!==n&&!s.$stable||o&&e.$scopedSlots.$key!==o.$key),u=!!(i||e.$options._renderChildren||c);if(e.$options._parentVnode=a,e.$vnode=a,e._vnode&&(e._vnode.parent=a),e.$options._renderChildren=i,e.$attrs=a.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){Ce(!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)}Ce(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),r=r||n;var v=e.$options._parentListeners;e.$options._parentListeners=r,Zn(e,r,v),u&&(e.$slots=tn(i,a.context),e.$forceUpdate()),tr=!1}function or(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function sr(e,t){if(t){if(e._directInactive=!1,or(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]);ur(e,"activated")}}function cr(e,t){if((!t||(e._directInactive=!0,!or(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)cr(e.$children[n]);ur(e,"deactivated")}}function ur(e,t){we();var n=e.$options[t],r=t+" hook";if(n)for(var a=0,i=n.length;a<i;a++)gt(n[a],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),xe()}var lr=100,fr=[],dr=[],pr={},hr={},vr=!1,gr=!1,mr=0;function yr(){mr=fr.length=dr.length=0,pr={},hr={},vr=gr=!1}var _r=Date.now;if(X&&!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})),mr=0;mr<fr.length;mr++)if(e=fr[mr],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();yr(),Or(n),xr(r),se&&V.devtools&&se.emit("flush")}function xr(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&ur(r,"updated")}}function kr(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 Sr(e){var t=e.id;if(null==pr[t]){if(pr[t]=!0,gr){var n=fr.length-1;while(n>mr&&fr[n].id>e.id)n--;fr.splice(n+1,0,e)}else fr.push(e);if(!vr){if(vr=!0,!V.async)return void wr();Tt(wr)}}}var Ar=0,Pr=function(e,t,n,r,a){this.vm=e,a&&(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=++Ar,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ue,this.newDepIds=new ue,this.expression=t.toString(),"function"===typeof t?this.getter=t:(this.getter=J(t),this.getter||(this.getter=L,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(La){if(!this.user)throw La;vt(La,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Ut(e),xe(),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():Sr(this)},Pr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(La){vt(La,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 Tr={enumerable:!0,configurable:!0,get:L,set:L};function jr(e,t,n){Tr.get=function(){return this[t][n]},Tr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Tr)}function Er(e){e._watchers=[];var t=e.$options;t.props&&Ir(e,t.props),t.methods&&Ur(e,t.methods),t.data?$r(e):Me(e._data={},!0),t.computed&&Lr(e,t.computed),t.watch&&t.watch!==ae&&Fr(e,t.watch)}function Ir(e,t){var n=e.$options.propsData||{},r=e._props={},a=e.$options._propKeys=[],i=!e.$parent;i||Ce(!1);var o=function(o){a.push(o);var s=rt(o,t,n,e),c=T(o);(_(c)||V.isReservedAttr(c))&&fe('"'+c+'" is a reserved attribute and cannot be used as component prop.',e),Ne(r,o,s,(function(){if(!i&&!tr){if("mp-baidu"===e.mpHost||"mp-kuaishou"===e.mpHost||"mp-xhs"===e.mpHost)return;if("value"===o&&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: \""+o+'"',e)}})),o in e||jr(e,"_props",o)};for(var s in t)o(s);Ce(!0)}function $r(e){var t=e.$options.data;t=e._data="function"===typeof t?Cr(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,a=e.$options.methods,i=n.length;while(i--){var o=n[i];a&&x(a,o)&&fe('Method "'+o+'" has already been defined as a data property.',e),r&&x(r,o)?fe('The data property "'+o+'" is already declared as a prop. Use prop default value instead.',e):z(o)||jr(e,"_data",o)}Me(t,!0)}function Cr(e,t){we();try{return e.call(t,t)}catch(La){return vt(La,t,"data()"),{}}finally{xe()}}var Dr={lazy:!0};function Lr(e,t){var n=e._computedWatchers=Object.create(null),r=oe();for(var a in t){var i=t[a],o="function"===typeof i?i:i.get;null==o&&fe('Getter is missing for computed property "'+a+'".',e),r||(n[a]=new Pr(e,o||L,L,Dr)),a in e?a in e.$data?fe('The computed property "'+a+'" is already defined in data.',e):e.$options.props&&a in e.$options.props&&fe('The computed property "'+a+'" is already defined as a prop.',e):Rr(e,a,i)}}function Rr(e,t,n){var r=!oe();"function"===typeof n?(Tr.get=r?Mr(t):Nr(n),Tr.set=L):(Tr.get=n.get?r&&!1!==n.cache?Mr(t):Nr(n.get):L,Tr.set=n.set||L),Tr.set===L&&(Tr.set=function(){fe('Computed property "'+t+'" was assigned to but it has no setter.',this)}),Object.defineProperty(e,t,Tr)}function Mr(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 Nr(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&&x(n,r)&&fe('Method "'+r+'" has already been defined as a prop.',e),r in e&&z(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]?L:I(t[r],e)}function Fr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var a=0;a<r.length;a++)qr(e,n,r[a]);else qr(e,n,r)}}function qr(e,t,n,r){return f(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function Br(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 qr(r,e,t,n);n=n||{},n.user=!0;var a=new Pr(r,e,t,n);if(n.immediate)try{t.call(r,a.value)}catch(i){vt(i,r,'callback for immediate watcher "'+a.expression+'"')}return function(){a.teardown()}}}var Vr=0;function Hr(e){e.prototype._init=function(e){var t,n,r=this;r._uid=Vr++,V.performance&&Rt&&(t="vue-perf-start:"+r._uid,n="vue-perf-end:"+r._uid,Rt(t)),r._isVue=!0,e&&e._isComponent?zr(r,e):r.$options=tt(Kr(r.constructor),e||{},r),bt(r),r._self=r,rr(r),Jn(r),Un(r),ur(r,"beforeCreate"),!r._$fallback&&Qt(r),Er(r),!r._$fallback&&Zt(r),!r._$fallback&&ur(r,"created"),V.performance&&Rt&&(r._name=he(r,!1),Rt(n),Mt("vue "+r._name+" init",t,n)),r.$options.el&&r.$mount(r.$options.el)}}function zr(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var a=r.componentOptions;n.propsData=a.propsData,n._parentListeners=a.listeners,n._renderChildren=a.children,n._componentTag=a.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Kr(e){var t=e.options;if(e.super){var n=Kr(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var a=Wr(e);a&&C(e.extendOptions,a),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 a in n)n[a]!==r[a]&&(t||(t={}),t[a]=n[a]);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=$(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 Yr(e){e.mixin=function(e){return this.options=tt(this.options,e),this}}function Xr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,a=e._Ctor||(e._Ctor={});if(a[r])return a[r];var i=e.name||n.options.name;i&&Ye(i);var o=function(e){this._init(e)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=t++,o.options=tt(n.options,e),o["super"]=n,o.options.props&&Zr(o),o.options.computed&&Qr(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,q.forEach((function(e){o[e]=n[e]})),i&&(o.options.components[i]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=C({},o.options),a[r]=o,o}}function Zr(e){var t=e.options.props;for(var n in t)jr(e.prototype,"_props",n)}function Qr(e){var t=e.options.computed;for(var n in t)Rr(e.prototype,n,t[n])}function ea(e){q.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&Ye(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 ta(e){return e&&(e.Ctor.options.name||e.tag)}function na(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function ra(e,t){var n=e.cache,r=e.keys,a=e._vnode;for(var i in n){var o=n[i];if(o){var s=ta(o.componentOptions);s&&!t(s)&&aa(n,i,r,a)}}}function aa(e,t,n,r){var a=e[t];!a||r&&a.tag===r.tag||a.componentInstance.$destroy(),e[t]=null,b(n,t)}Hr(Jr),Br(Jr),Qn(Jr),ar(Jr),Bn(Jr);var ia=[String,RegExp,Array],oa={name:"keep-alive",abstract:!0,props:{include:ia,exclude:ia,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)aa(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){ra(e,(function(e){return na(t,e)}))})),this.$watch("exclude",(function(t){ra(e,(function(e){return!na(t,e)}))}))},render:function(){var e=this.$slots.default,t=Wn(e),n=t&&t.componentOptions;if(n){var r=ta(n),a=this,i=a.include,o=a.exclude;if(i&&(!r||!na(i,r))||o&&r&&na(o,r))return t;var s=this,c=s.cache,u=s.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;c[l]?(t.componentInstance=c[l].componentInstance,b(u,l),u.push(l)):(c[l]=t,u.push(l),this.max&&u.length>parseInt(this.max)&&aa(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},sa={KeepAlive:oa};function ca(e){var t={get:function(){return V},set:function(){fe("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:C,mergeOptions:tt,defineReactive:Ne},e.set=Ue,e.delete=Fe,e.nextTick=Tt,e.observable=function(e){return Me(e),e},e.options=Object.create(null),q.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,C(e.options.components,sa),Gr(e),Yr(e),Xr(e),ea(e)}ca(Jr),Object.defineProperty(Jr.prototype,"$isServer",{get:oe}),Object.defineProperty(Jr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Jr,"FunctionalRenderContext",{value:xn}),Jr.version="2.6.11";var ua="[object Array]",la="[object Object]";function fa(e,t){var n={};return da(e,t),pa(e,t,"",n),n}function da(e,t){if(e!==t){var n=va(e),r=va(t);if(n==la&&r==la){if(Object.keys(e).length>=Object.keys(t).length)for(var a in t){var i=e[a];void 0===i?e[a]=null:da(i,t[a])}}else n==ua&&r==ua&&e.length>=t.length&&t.forEach((function(t,n){da(e[n],t)}))}}function pa(e,t,n,r){if(e!==t){var a=va(e),i=va(t);if(a==la)if(i!=la||Object.keys(e).length<Object.keys(t).length)ha(r,n,e);else{var o=function(a){var i=e[a],o=t[a],s=va(i),c=va(o);if(s!=ua&&s!=la)i!==t[a]&&ha(r,(""==n?"":n+".")+a,i);else if(s==ua)c!=ua||i.length<o.length?ha(r,(""==n?"":n+".")+a,i):i.forEach((function(e,t){pa(e,o[t],(""==n?"":n+".")+a+"["+t+"]",r)}));else if(s==la)if(c!=la||Object.keys(i).length<Object.keys(o).length)ha(r,(""==n?"":n+".")+a,i);else for(var u in i)pa(i[u],o[u],(""==n?"":n+".")+a+"."+u,r)};for(var s in e)o(s)}else a==ua?i!=ua||e.length<t.length?ha(r,n,e):e.forEach((function(e,a){pa(e,t[a],n+"["+a+"]",r)})):ha(r,n,e)}}function ha(e,t,n){e[t]=n}function va(e){return Object.prototype.toString.call(e)}function ga(e){if(e.__next_tick_callbacks&&e.__next_tick_callbacks.length){if(Object({VUE_APP_NAME:"Applet",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 ma(e){return fr.find((function(t){return e._watcher===t}))}function ya(e,t){if(!e.__next_tick_pending&&!ma(e)){if(Object({VUE_APP_NAME:"Applet",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 Tt(t,e)}if(Object({VUE_APP_NAME:"Applet",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 a;if(e.__next_tick_callbacks||(e.__next_tick_callbacks=[]),e.__next_tick_callbacks.push((function(){if(t)try{t.call(e)}catch(La){vt(La,e,"nextTick")}else a&&a(e)})),!t&&"undefined"!==typeof Promise)return new Promise((function(e){a=e}))}function _a(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__,a=r&&r.rawBindings;return a&&Object.keys(a).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))}var ba=function(e,t){var n=this;if(null!==t&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,a=Object.create(null);try{a=_a(this)}catch(s){console.error(s)}a.__webviewId__=r.data.__webviewId__;var i=Object.create(null);Object.keys(a).forEach((function(e){i[e]=r.data[e]}));var o=!1===this.$shouldDiffData?a:fa(a,i);Object.keys(o).length?(Object({VUE_APP_NAME:"Applet",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(o)),this.__next_tick_pending=!0,r.setData(o,(function(){n.__next_tick_pending=!1,ga(n)}))):ga(this)}};function wa(){}function xa(e,t,n){if(!e.mpType)return e;"app"===e.mpType&&(e.$options.render=wa),e.$options.render||(e.$options.render=wa,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&&ur(e,"beforeMount");var r=function(){e._update(e._render(),n)};return new Pr(e,r,L,{before:function(){e._isMounted&&!e._isDestroyed&&ur(e,"beforeUpdate")}},!0),n=!1,e}function ka(e,t){return a(e)||a(t)?Oa(e,Sa(t)):""}function Oa(e,t){return e?t?e+" "+t:e:t||""}function Sa(e){return Array.isArray(e)?Aa(e):c(e)?Pa(e):"string"===typeof e?e:""}function Aa(e){for(var t,n="",r=0,i=e.length;r<i;r++)a(t=Sa(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function Pa(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var Ta=k((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 ja(e){return Array.isArray(e)?D(e):"string"===typeof e?Ta(e):e}var Ea=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Ia(e,t){var n=t.split("."),r=n[0];return 0===r.indexOf("__$n")&&(r=parseInt(r.replace("__$n",""))),1===n.length?e[r]:Ia(e[r],n.slice(1).join("."))}function $a(e){e.config.errorHandler=function(t,n,r){e.util.warn("Error in "+r+': "'+t.toString()+'"',n),console.error(t);var a="function"===typeof getApp&&getApp();a&&a.onError&&a.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var n=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];n&&n.call(this.$scope,e,{__args__:$(arguments,1)})}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return ya(this,e)},Ea.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=Zt,e.prototype.__init_injections=Qt,e.prototype.__call_hook=function(e,t){var n=this;we();var r,a=n.$options[e],i=e+" hook";if(a)for(var o=0,s=a.length;o<s;o++)r=gt(a[o],n,t?[t]:null,n,i);return n._hasHookEvent&&n.$emit("hook:"+e,t),xe(),r},e.prototype.__set_model=function(t,n,r,a){Array.isArray(a)&&(-1!==a.indexOf("trim")&&(r=r.trim()),-1!==a.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 Ia(t||this,e)},e.prototype.__get_class=function(e,t){return ka(t,e)},e.prototype.__get_style=function(e,t){if(!e&&!t)return"";var n=ja(e),r=t?C(t,n):n;return Object.keys(r).map((function(e){return T(e)+":"+r[e]})).join(";")},e.prototype.__map=function(e,t){var n,r,a,i,o;if(Array.isArray(e)){for(n=new Array(e.length),r=0,a=e.length;r<a;r++)n[r]=t(e[r],r);return n}if(c(e)){for(i=Object.keys(e),n=Object.create(null),r=0,a=i.length;r<a;r++)o=i[r],n[o]=t(e[o],o,r);return n}if("number"===typeof e){for(n=new Array(e),r=0,a=e;r<a;r++)n[r]=t(r,r);return n}return[]}}var Ca=["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","onPageShow","onPageHide","onPageResize","onUploadDouyinVideo"];function Da(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;return n&&Object.keys(n).forEach((function(t){-1!==Ca.indexOf(t)&&(e[t]=n[t],delete n[t])})),t.call(this,e)};var n=e.config.optionMergeStrategies,r=n.created;Ca.forEach((function(e){n[e]=r})),e.prototype.__lifecycle_hooks__=Ca}Jr.prototype.__patch__=ba,Jr.prototype.$mount=function(e,t){return xa(this,e,t)},Da(Jr),$a(Jr),t["default"]=Jr}.call(this,n(2))},412:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(t.date,t.selected),a=t.startDate,i=t.endDate,o=t.range;r(this,e),this.date=this.getDate(new Date),this.selected=n||[],this.startDate=a,this.endDate=i,this.range=o,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}return i(e,[{key:"setDate",value:function(e){this.selectDate=this.getDate(e),this._getWeek(this.selectDate.fullDate)}},{key:"cleanMultipleStatus",value:function(){this.multipleStatus={before:"",after:"",data:[]}}},{key:"resetSatrtDate",value:function(e){this.startDate=e}},{key:"resetEndDate",value:function(e){this.endDate=e}},{key:"getDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day";e||(e=new Date),"object"!==typeof e&&(e=e.replace(/-/g,"/"));var r=new Date(e);switch(n){case"day":r.setDate(r.getDate()+t);break;case"month":31===r.getDate()?r.setDate(r.getDate()+t):r.setMonth(r.getMonth()+t);break;case"year":r.setFullYear(r.getFullYear()+t);break}var a=r.getFullYear(),i=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,o=r.getDate()<10?"0"+r.getDate():r.getDate();return{fullDate:a+"-"+i+"-"+o,year:a,month:i,date:o,day:r.getDay()}}},{key:"_getLastMonthDays",value:function(e,t){for(var n=[],r=e;r>0;r--){var a=new Date(t.year,t.month-1,1-r).getDate();n.push({date:a,month:t.month-1,disable:!0})}return n}},{key:"_currentMonthDys",value:function(e,t){for(var n=this,r=[],a=this.date.fullDate,i=function(e){var i=t.year+"-"+(t.month,t.month+"-")+(e<10?"0"+e:e),o=a===i,s=n.selected&&n.selected.find((function(e){if(n.dateEqual(i,e.date))return e})),c=!0,u=!0;n.startDate&&(c=n.dateCompare(n.startDate,i)),n.endDate&&(u=n.dateCompare(i,n.endDate));var l=n.multipleStatus.data,f=!1,d=-1;n.range&&(l&&(d=l.findIndex((function(e){return n.dateEqual(e,i)}))),-1!==d&&(f=!0));var p={fullDate:i,year:t.year,date:e,multiple:!!n.range&&f,beforeMultiple:n.isLogicBefore(i,n.multipleStatus.before,n.multipleStatus.after),afterMultiple:n.isLogicAfter(i,n.multipleStatus.before,n.multipleStatus.after),month:t.month,disable:!(c&&u),isDay:o,userChecked:!1};s&&(p.extraInfo=s),r.push(p)},o=1;o<=e;o++)i(o);return r}},{key:"_getNextMonthDays",value:function(e,t){for(var n=[],r=1;r<e+1;r++)n.push({date:r,month:Number(t.month)+1,disable:!0});return n}},{key:"getInfo",value:function(e){var t=this;e||(e=new Date);var n=this.canlender.find((function(n){return n.fullDate===t.getDate(e).fullDate}));return n}},{key:"dateCompare",value:function(e,t){return e=new Date(e.replace("-","/").replace("-","/")),t=new Date(t.replace("-","/").replace("-","/")),e<=t}},{key:"dateEqual",value:function(e,t){return e=new Date(e.replace("-","/").replace("-","/")),t=new Date(t.replace("-","/").replace("-","/")),e.getTime()-t.getTime()===0}},{key:"isLogicBefore",value:function(e,t,n){var r=t;return t&&n&&(r=this.dateCompare(t,n)?t:n),this.dateEqual(r,e)}},{key:"isLogicAfter",value:function(e,t,n){var r=n;return t&&n&&(r=this.dateCompare(t,n)?n:t),this.dateEqual(r,e)}},{key:"geDateAll",value:function(e,t){var n=[],r=e.split("-"),a=t.split("-"),i=new Date;i.setFullYear(r[0],r[1]-1,r[2]);var o=new Date;o.setFullYear(a[0],a[1]-1,a[2]);for(var s=i.getTime()-864e5,c=o.getTime()-864e5,u=s;u<=c;)u+=864e5,n.push(this.getDate(new Date(parseInt(u))).fullDate);return n}},{key:"setMultiple",value:function(e){var t=this.multipleStatus,n=t.before,r=t.after;if(this.range){if(n&&r){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else n?(this.multipleStatus.after=e,this.dateCompare(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.lastHover=!1);this._getWeek(e)}}},{key:"setHoverMultiple",value:function(e){var t=this.multipleStatus,n=t.before;t.after;this.range&&(this.lastHover||(n?(this.multipleStatus.after=e,this.dateCompare(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this._getWeek(e)))}},{key:"setDefaultMultiple",value:function(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(this.dateCompare(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this._getWeek(t)):(this.multipleStatus.data=this.geDateAll(t,e),this._getWeek(e)))}},{key:"_getWeek",value:function(e){var t=this.getDate(e),n=(t.fullDate,t.year),r=t.month,a=(t.date,t.day,new Date(n,r-1,1).getDay()),i=new Date(n,r,0).getDate(),o={lastMonthDays:this._getLastMonthDays(a,this.getDate(e)),currentMonthDys:this._currentMonthDys(i,this.getDate(e)),nextMonthDays:[],weeks:[]},s=[],c=42-(o.lastMonthDays.length+o.currentMonthDys.length);o.nextMonthDays=this._getNextMonthDays(c,this.getDate(e)),s=s.concat(o.lastMonthDays,o.currentMonthDys,o.nextMonthDays);for(var u={},l=0;l<s.length;l++)l%7===0&&(u[parseInt(l/7)]=new Array(7)),u[parseInt(l/7)][l%7]=s[l];this.canlender=s,this.weeks=u}}]),e}(),s=o;t.default=s},5:function(e,t){},50:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(18)),a=i(n(22));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,c,"next",e)}function c(e){o(i,r,a,s,c,"throw",e)}s(void 0)}))}}var c=function(){var e=s(r.default.mark((function e(t){var n,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.alias,e.next=3,a.default.get({url:"/cms/type/sublist/".concat(n)});case 3:return i=e.sent,e.abrupt("return",i.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/cms/blog/wx/articleList",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=s(r.default.mark((function e(t){var n,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.id,e.next=3,a.default.get({url:"/cms/blog/cms/detail/".concat(n)});case 3:return i=e.sent,e.abrupt("return",i.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=s(r.default.mark((function e(t){var n,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.id,e.next=3,a.default.get({url:"/cms/blog/cms/addBlogViews/".concat(n)});case 3:return i=e.sent,e.abrupt("return",i.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=s(r.default.mark((function e(t){var n,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.alias,e.next=3,a.default.get({url:"/cms/type/sublist/".concat(n)});case 3:return i=e.sent,e.abrupt("return",i.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p={getTypeList:c,getArticleList:u,getArticleDetail:l,addBlogViews:f,getsublist:d};t.default=p},59:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(18)),a=i(n(22));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,c,"next",e)}function c(e){o(i,r,a,s,c,"throw",e)}s(void 0)}))}}var c=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.post({url:"/user/commit-application",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/wx/resident/members",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/wx/resident/info",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.post({url:"/nat/members-status",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/nat/running-task",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.post({url:"/nat/add-record",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/resident/req/list",data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/resident/req/".concat(t.residentReqId)});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.get({url:"/wx/resident/members-for-reporting"});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=s(r.default.mark((function e(t){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.default.post({url:"/resident/req/cancel/".concat(t.residentReqId),data:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),y={familyInfo:c,getFamilyInfo:u,filing:p,membersStatus:f,runningTask:d,getFamilyInfoDetails:l,getApplyUser:h,getReqInfoDetails:v,getUserAll:g,removeApply:m};t.default=y}}]);
  8. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map