1234567 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"0116":function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"}')},"093e":function(e){e.exports=JSON.parse('{"uni-search-bar.cancel":"cancel","uni-search-bar.placeholder":"Search enter content"}')},1711:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OPENID=t.TOKEN_NAME=void 0;var r="Authorization";t.TOKEN_NAME=r;var i="openid";t.OPENID=i},"192b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={};function i(e,t){function n(e,t){return e<<t|e>>>32-t}function r(e,t){var n,r,i,o,a;return i=2147483648&e,o=2147483648&t,n=1073741824&e,r=1073741824&t,a=(1073741823&e)+(1073741823&t),n&r?2147483648^a^i^o:n|r?1073741824&a?3221225472^a^i^o:1073741824^a^i^o:a^i^o}function i(e,t,n){return e&t|~e&n}function o(e,t,n){return e&n|t&~n}function a(e,t,n){return e^t^n}function s(e,t,n){return t^(e|~n)}function c(e,t,o,a,s,c,u){return e=r(e,r(r(i(t,o,a),s),u)),r(n(e,c),t)}function u(e,t,i,a,s,c,u){return e=r(e,r(r(o(t,i,a),s),u)),r(n(e,c),t)}function l(e,t,i,o,s,c,u){return e=r(e,r(r(a(t,i,o),s),u)),r(n(e,c),t)}function f(e,t,i,o,a,c,u){return e=r(e,r(r(s(t,i,o),a),u)),r(n(e,c),t)}function d(e){var t,n=e.length,r=n+8,i=(r-r%64)/64,o=16*(i+1),a=Array(o-1),s=0,c=0;while(c<n)t=(c-c%4)/4,s=c%4*8,a[t]=a[t]|e.charCodeAt(c)<<s,c++;return t=(c-c%4)/4,s=c%4*8,a[t]=a[t]|128<<s,a[o-2]=n<<3,a[o-1]=n>>>29,a}function h(e){var t,n,r="",i="";for(n=0;n<=3;n++)t=e>>>8*n&255,i="0"+t.toString(16),r+=i.substr(i.length-2,2);return r}function p(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t}var v,m,g,y,_,b,w,k,x,O=Array(),S=7,A=12,T=17,P=22,I=5,E=9,C=14,$=20,D=4,j=11,L=16,R=23,M=6,U=10,N=15,F=21;for(e=p(e),O=d(e),b=1732584193,w=4023233417,k=2562383102,x=271733878,v=0;v<O.length;v+=16)m=b,g=w,y=k,_=x,b=c(b,w,k,x,O[v+0],S,3614090360),x=c(x,b,w,k,O[v+1],A,3905402710),k=c(k,x,b,w,O[v+2],T,606105819),w=c(w,k,x,b,O[v+3],P,3250441966),b=c(b,w,k,x,O[v+4],S,4118548399),x=c(x,b,w,k,O[v+5],A,1200080426),k=c(k,x,b,w,O[v+6],T,2821735955),w=c(w,k,x,b,O[v+7],P,4249261313),b=c(b,w,k,x,O[v+8],S,1770035416),x=c(x,b,w,k,O[v+9],A,2336552879),k=c(k,x,b,w,O[v+10],T,4294925233),w=c(w,k,x,b,O[v+11],P,2304563134),b=c(b,w,k,x,O[v+12],S,1804603682),x=c(x,b,w,k,O[v+13],A,4254626195),k=c(k,x,b,w,O[v+14],T,2792965006),w=c(w,k,x,b,O[v+15],P,1236535329),b=u(b,w,k,x,O[v+1],I,4129170786),x=u(x,b,w,k,O[v+6],E,3225465664),k=u(k,x,b,w,O[v+11],C,643717713),w=u(w,k,x,b,O[v+0],$,3921069994),b=u(b,w,k,x,O[v+5],I,3593408605),x=u(x,b,w,k,O[v+10],E,38016083),k=u(k,x,b,w,O[v+15],C,3634488961),w=u(w,k,x,b,O[v+4],$,3889429448),b=u(b,w,k,x,O[v+9],I,568446438),x=u(x,b,w,k,O[v+14],E,3275163606),k=u(k,x,b,w,O[v+3],C,4107603335),w=u(w,k,x,b,O[v+8],$,1163531501),b=u(b,w,k,x,O[v+13],I,2850285829),x=u(x,b,w,k,O[v+2],E,4243563512),k=u(k,x,b,w,O[v+7],C,1735328473),w=u(w,k,x,b,O[v+12],$,2368359562),b=l(b,w,k,x,O[v+5],D,4294588738),x=l(x,b,w,k,O[v+8],j,2272392833),k=l(k,x,b,w,O[v+11],L,1839030562),w=l(w,k,x,b,O[v+14],R,4259657740),b=l(b,w,k,x,O[v+1],D,2763975236),x=l(x,b,w,k,O[v+4],j,1272893353),k=l(k,x,b,w,O[v+7],L,4139469664),w=l(w,k,x,b,O[v+10],R,3200236656),b=l(b,w,k,x,O[v+13],D,681279174),x=l(x,b,w,k,O[v+0],j,3936430074),k=l(k,x,b,w,O[v+3],L,3572445317),w=l(w,k,x,b,O[v+6],R,76029189),b=l(b,w,k,x,O[v+9],D,3654602809),x=l(x,b,w,k,O[v+12],j,3873151461),k=l(k,x,b,w,O[v+15],L,530742520),w=l(w,k,x,b,O[v+2],R,3299628645),b=f(b,w,k,x,O[v+0],M,4096336452),x=f(x,b,w,k,O[v+7],U,1126891415),k=f(k,x,b,w,O[v+14],N,2878612391),w=f(w,k,x,b,O[v+5],F,4237533241),b=f(b,w,k,x,O[v+12],M,1700485571),x=f(x,b,w,k,O[v+3],U,2399980690),k=f(k,x,b,w,O[v+10],N,4293915773),w=f(w,k,x,b,O[v+1],F,2240044497),b=f(b,w,k,x,O[v+8],M,1873313359),x=f(x,b,w,k,O[v+15],U,4264355552),k=f(k,x,b,w,O[v+6],N,2734768916),w=f(w,k,x,b,O[v+13],F,1309151649),b=f(b,w,k,x,O[v+4],M,4149444226),x=f(x,b,w,k,O[v+11],U,3174756917),k=f(k,x,b,w,O[v+2],N,718787259),w=f(w,k,x,b,O[v+9],F,3951481745),b=r(b,m),w=r(w,g),k=r(k,y),x=r(x,_);return 32==t?(h(b)+h(w)+h(k)+h(x)).toLowerCase():(h(w)+h(k)).toLowerCase()}r.hex_md5_16=function(e){return i(e,16)},r.hex_md5_16Upper=function(e){return i(e,16).toUpperCase()},r.hex_md5_32=function(e){return i(e,32)},r.hex_md5_32Upper=function(e){return i(e,32).toUpperCase()};var o=r;t.default=o},1955: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-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六"}')},2933:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getTime=t.dateFormat=t.commonsbinding=t.getUserData=t.setUserData=t.routeEqual=t.showTitle=t.genID=t.format=void 0;var r=i(n("66fd"));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e){var t=new Date;t.setTime(1*e);var n=t.getFullYear(),r=t.getMonth()+1;r=r<10?"0"+r:r;var i=t.getDate();i=i<10?"0"+i:i;var o=t.getHours();o=o<10?"0"+o:o;var a=t.getMinutes(),s=t.getSeconds();return a=a<10?"0"+a:a,s=s<10?"0"+s:s,n+"-"+r+"-"+i+" "+o+":"+a+":"+s};t.format=o;var a=function(e,t){var n=(new Date).getTime(),r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==e?t:3&t|8).toString(16)}));return r};t.genID=a;var s=function(e,t){var n=e.meta,r=n.title,i=n.__titleIsFunction__;if(r)return r=useI18n?r.includes("{{")&&r.includes("}}")&&useI18n?r.replace(/({{[\s\S]+?}})/,(function(e,n){return n.replace(/{{([\s\S]*)}}/,(function(e,n){return t.$t(n.trim())}))})):i?e.meta.title:t.$t(e.name):e.meta&&e.meta.title||e.name,r};t.showTitle=s;var c=function(e,t){var n=e.params||{},r=t.params||{},i=e.query||{},o=t.query||{};return e.name===t.name&&objEqual(n,r)&&objEqual(i,o)};t.routeEqual=c;var u=function(t){console.log(t),e.setStorage({key:"userData",data:t,success:function(e){r.default.prototype.$userData=e}})};t.setUserData=u;var l=function(){return new Promise((function(t,n){e.getStorage({key:"userData",success:function(e){t(Object.assign({code:0},e.data))},fail:function(e){console.log(e),t({code:999})}})}))};t.getUserData=l;var f=function(){console.log(r.default.prototype.$token)};t.commonsbinding=f;var d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss",n=new Date(e),r={YYYY:n.getFullYear(),MM:(n.getMonth()+1).toString().padStart(2,"0"),DD:n.getDate().toString().padStart(2,"0"),HH:n.getHours().toString().padStart(2,"0"),mm:n.getMinutes().toString().padStart(2,"0"),ss:n.getSeconds()};for(var i in r)t=t.replace(i,r[i]);return t};t.dateFormat=d;var h=function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate(),i=e.getHours()<10?"0"+e.getHours():e.getHours(),o=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),a=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();n>=1&&n<=9&&(n="0"+n),r>=0&&r<=9&&(r="0"+r);var s=t+"-"+n+"-"+r+" "+i+":"+o+":"+a;return s};t.getTime=h}).call(this,n("543d")["default"])},"2caf":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{}},created:function(){this.popup=this.getParent()},methods:{getParent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniPopup",t=this.$parent,n=t.$options.name;while(n!==e){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}};t.default=r},"37dc":function(e,t,n){"use strict";(function(e,n){function r(e,t){return c(e)||s(e,t)||o(e,t)||i()}function i(){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 o(e,t){if(e){if("string"===typeof e)return a(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)?a(e,t):void 0}}function a(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,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){i=!0,o=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}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=N,t.hasI18nJson=M,t.initVueI18n=j,t.isI18nStr=F,t.normalizeLocale=E,t.parseI18nJson=U,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,h=function(e){return null!==e&&"object"===typeof e},p=["{","}"],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]:p;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 m=/^(?:\d)+/,g=/^(?:\w)+/;function y(e,t){var n=r(t,2),i=n[0],o=n[1],a=[],s=0,c="";while(s<e.length){var u=e[s++];if(u===i){c&&a.push({type:"text",value:c}),c="";var l="";u=e[s++];while(void 0!==u&&u!==o)l+=u,u=e[s++];var f=u===o,d=m.test(l)?"list":f&&g.test(l)?"named":"unknown";a.push({value:l,type:d})}else c+=u}return c&&a.push({type:"text",value:c}),a}function _(e,t){var n=[],r=0,i=d(t)?"list":h(t)?"named":"unknown";if("unknown"===i)return n;while(r<e.length){var o=e[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(t[parseInt(o.value,10)]);break;case"named":"named"===i&&n.push(t[o.value]);break;case"unknown":0;break}r++}return n}var b="zh-Hans";t.LOCALE_ZH_HANS=b;var w="zh-Hant";t.LOCALE_ZH_HANT=w;var k="en";t.LOCALE_EN=k;var x="fr";t.LOCALE_FR=x;var O="es";t.LOCALE_ES=O;var S=Object.prototype.hasOwnProperty,A=function(e,t){return S.call(e,t)},T=new v;function P(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}function I(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||P(e,["-tw","-hk","-mo","-cht"])?w:b;var n=I(e,[k,x,O]);return n||void 0}}var C=function(){function e(t){var n=t.locale,r=t.fallbackLocale,i=t.messages,o=t.watcher,a=t.formater;u(this,e),this.locale=k,this.fallbackLocale=k,this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=a||T,this.messages=i||{},this.setLocale(n||k),o&&this.watchLocale(o)}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 D(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof n&&n.getLocale?n.getLocale():k}function j(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 i=[t,e];e=i[0],t=i[1]}"string"!==typeof e&&(e=D()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||k);var o=new C({locale:e,fallbackLocale:n,messages:t,watcher:r}),a=function(e,t){if("function"!==typeof getApp)a=function(e,t){return o.t(e,t)};else{var n=!1;a=function(e,t){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,$(r,o))),o.t(e,t)}}return a(e,t)};return{i18n:o,f:function(e,t,n){return o.f(e,t,n)},t:function(e,t){return a(e,t)},add:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(e,t,n)},watch:function(e){return o.watchLocale(e)},getLocale:function(){return o.getLocale()},setLocale:function(e){return o.setLocale(e)}}}t.I18n=C;var L,R=function(e){return"string"===typeof e};function M(e,t){return L||(L=new v),V(e,(function(e,n){var r=e[n];return R(r)?!!F(r,t)||void 0:M(r,t)}))}function U(e,t,n){return L||(L=new v),V(e,(function(e,r){var i=e[r];R(i)?F(i,n)&&(e[r]=q(i,t,n)):U(i,t,n)})),e}function N(e,t){var n=t.locale,r=t.locales,i=t.delimiters;if(!F(e,i))return e;L||(L=new v);var o=[];Object.keys(r).forEach((function(e){e!==n&&o.push({locale:e,values:r[e]})})),o.unshift({locale:n,values:r[n]});try{return JSON.stringify(H(JSON.parse(e),o,i),null,2)}catch(a){}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 i=e[t];if(R(i)){if(F(i,r)&&(e[t]=q(i,n[0].values,r),n.length>1)){var o=e[t+"Locales"]={};n.forEach((function(e){o[e.locale]=q(i,e.values,r)}))}}else H(i,n,r)}function H(e,t,n){return V(e,(function(e,r){B(e,r,t,n)})),e}function V(e,t){if(d(e)){for(var n=0;n<e.length;n++)if(t(e,n))return!0}else if(h(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("543d")["default"],n("c8ba"))},"4a7e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("a34a"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){var t=l();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}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,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){d(o,r,i,a,s,"next",e)}function s(e){d(o,r,i,a,s,"throw",e)}a(void 0)}))}}function p(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 m(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}var g={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 i in e){var o=new RegExp("{"+i+"}");r=r.replace(o,e[i])}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(g.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(g.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(g.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}},k=function(){function e(t){p(this,e),this._message=t}return m(e,[{key:"validateRule",value:function(){var e=h(r.default.mark((function e(t,n,i,o,a){var s,c,u,l,f,d,h,p,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!==i&&void 0!==i){e.next=6;break}return e.abrupt("return",s);case 6:if("string"!==typeof i||i.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],h=this._getValidateType(d),Object.assign(d,{label:n.label||'["'.concat(t,'"]')}),!x[h]){e.next=20;break}if(s=x[h](d,i,l),null==s){e.next=20;break}return e.abrupt("break",35);case 20:if(!d.validateExpr){e.next=26;break}if(p=Date.now(),v=d.validateExpr(i,a,p),!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,i,o,a,h);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,i,o){return e.apply(this,arguments)}return t}()},{key:"validateFunction",value:function(){var e=h(r.default.mark((function e(t,n,i,o,a){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,o||i,(function(e){c=e}));case 5:u=e.sent,(c||"string"===typeof u&&u||!1===u)&&(s=this._getMessage(t,c||u,a)),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](1),s=this._getMessage(t,e.t0.message,a);case 12:return e.abrupt("return",s);case 13:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(t,n,r,i,o){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}(),x={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,i=e.errorMessage,o=new Array(r.length),a=0;a<r.length;a++){var s=r[a];w.object(s)&&void 0!==s.value?o[a]=s.value:o[a]=s}var c=!1;return Array.isArray(t)?c=new Set(t.concat(o)).size===o.length:o.indexOf(t)>-1&&(c=!0),c?null:_(e,i||n["enum"])},rangeNumber:function(e,t,n){if(!w.number(t))return _(e,e.errorMessage||n.pattern.mismatch);var r=e.minimum,i=e.maximum,o=e.exclusiveMinimum,a=e.exclusiveMaximum,s=o?t<=r:t<r,c=a?t>=i:t>i;return void 0!==r&&s?_(e,e.errorMessage||n["number"][o?"exclusiveMinimum":"minimum"]):void 0!==i&&c?_(e,e.errorMessage||n["number"][a?"exclusiveMaximum":"maximum"]):void 0!==r&&void 0!==i&&(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,i=e.maxLength,o=t.length;return void 0!==r&&o<r?_(e,e.errorMessage||n["length"].minLength):void 0!==i&&o>i?_(e,e.errorMessage||n["length"].maxLength):void 0!==r&&void 0!==i&&(o<r||o>i)?_(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),i=y[e.format]?y[e.format]:e.format||e.arrayType;return r.indexOf(i)>-1&&!w[i](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 i=t[r],o=this.format(e,i,n);if(null!==o)return o}return null}},O=function(e){o(n,e);var t=s(n);function n(e,r){var i;return p(this,n),i=t.call(this,n.message),i._schema=e,i._options=r||null,i}return m(n,[{key:"updateSchema",value:function(e){this._schema=e}},{key:"validate",value:function(){var e=h(r.default.mark((function e(t,n){var i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=this._checkFieldInSchema(t),i){e.next=5;break}return e.next=4,this.invokeValidate(t,!1,n);case 4:i=e.sent;case 5:return e.abrupt("return",i.length?i[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=h(r.default.mark((function e(t,n){var i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=this._checkFieldInSchema(t),i){e.next=5;break}return e.next=4,this.invokeValidate(t,!0,n);case 4:i=e.sent;case 5:return e.abrupt("return",i);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=h(r.default.mark((function e(t,n){var i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=this._checkFieldInSchema(t),i){e.next=5;break}return e.next=4,this.invokeValidateUpdate(t,!1,n);case 4:i=e.sent;case 5:return e.abrupt("return",i.length?i[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=h(r.default.mark((function e(t,n,i){var o,a,s,c,u;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=[],a=this._schema,e.t0=r.default.keys(a);case 3:if((e.t1=e.t0()).done){e.next=15;break}return s=e.t1.value,c=a[s],e.next=8,this.validateRule(s,c,t[s],t,i);case 8:if(u=e.sent,null==u){e.next=13;break}if(o.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",o);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=h(r.default.mark((function e(t,n,i){var o,a,s;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=[],e.t0=r.default.keys(t);case 2:if((e.t1=e.t0()).done){e.next=13;break}return a=e.t1.value,e.next=6,this.validateRule(a,this._schema[a],t[a],t,i);case 6:if(s=e.sent,null==s){e.next=11;break}if(o.push({key:a,errorMessage:s}),n){e.next=11;break}return e.abrupt("break",13);case 11:e.next=2;break;case 13:return e.abrupt("return",o);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 i=t.filter((function(e){return r.indexOf(e)<0})),o=_({field:JSON.stringify(i)},n.message.TAG+n.message["defaultInvalid"]);return[{key:"invalid",errorMessage:o}]}}]),n}(k);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},"543d":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=En,t.createComponent=Bn,t.createPage=qn,t.createPlugin=Vn,t.createSubpackageApp=Hn,t.default=void 0;var r,i=n("37dc"),o=a(n("66fd"));function a(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){h(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)||m(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,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){i=!0,o=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function d(e){if(Array.isArray(e))return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return y(e)||g(e)||m(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 m(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 g(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 k(e){return decodeURIComponent(r(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function x(){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(k(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=x(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=x(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=x(),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,i="",o=0;o<e.length;)t=b.indexOf(e.charAt(o++))<<18|b.indexOf(e.charAt(o++))<<12|(n=b.indexOf(e.charAt(o++)))<<6|(r=b.indexOf(e.charAt(o++))),i+=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 i}:atob;var S=Object.prototype.toString,A=Object.prototype.hasOwnProperty;function T(e){return"function"===typeof e}function P(e){return"string"===typeof e}function I(e){return"[object Object]"===S.call(e)}function E(e,t){return A.call(e,t)}function C(){}function $(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var D=/-(\w)/g,j=$((function(e){return e.replace(D,(function(e,t){return t?t.toUpperCase():""}))}));function L(e){var t={};return I(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={},U={};function N(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)&&T(t[n])&&(e[n]=N(e[n],t[n]))}))}function H(e,t){e&&t&&Object.keys(t).forEach((function(n){-1!==R.indexOf(n)&&T(t[n])&&q(e[n],t[n])}))}function V(e,t){"string"===typeof e&&I(t)?B(U[e]||(U[e]={}),t):I(e)&&B(M,e)}function z(e,t){"string"===typeof e?I(t)?H(U[e],t):delete U[e]:I(e)&&H(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 i=e[r];if(n)n=Promise.resolve(K(i));else{var o=i(t);if(W(o)&&(n=Promise.resolve(o)),!1===o)return{then:function(){}}}}return n||{then:function(e){return e(t)}}}function Y(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 T(r)&&r(e)||e}))}}})),t}function G(e,t){var n=[];Array.isArray(M.returnValue)&&n.push.apply(n,p(M.returnValue));var r=U[e];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,p(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=U[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function Q(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a=X(e);if(a&&Object.keys(a).length){if(Array.isArray(a.invoke)){var s=J(a.invoke,n);return s.then((function(e){return t.apply(void 0,[Y(a,e)].concat(i))}))}return t.apply(void 0,[Y(a,n)].concat(i))}return t.apply(void 0,[n].concat(i))}var Z={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"],ie=/^on|^off/;function oe(e){return te.test(e)&&-1===ne.indexOf(e)}function ae(e){return ee.test(e)&&-1===re.indexOf(e)}function se(e){return ie.test(e)&&"onPush"!==e}function ce(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function ue(e){return!(oe(e)||ae(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,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return T(n.success)||T(n.fail)||T(n.complete)?G(e,Q.apply(void 0,[e,t,n].concat(i))):G(e,ce(new Promise((function(r,o){Q.apply(void 0,[e,t,Object.assign({},n,{success:r,fail:o})].concat(i))}))))}: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,he=!1,pe=0,ve=0;function me(){var e=wx.getSystemInfoSync(),t=e.platform,n=e.pixelRatio,r=e.windowWidth;pe=r,ve=n,he="ios"===t}function ge(e,t){if(0===pe&&me(),e=Number(e),0===e)return 0;var n=e/de*(t||pe);return n<0&&(n=-n),n=Math.floor(n+fe),0===n&&(n=1!==ve&&he?.5:1),e<0?-n:n}var ye,_e="zh-Hans",be="zh-Hant",we="en",ke="fr",xe="es",Oe={};function Se(){if(Ie()){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,i.initVueI18n)(ye,{}),Te=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 Te(e,t)}}},Ae.setLocale,Ae.getLocale;function Pe(e,t,n){var r=e.observable({locale:n||Ae.getLocale()}),i=[];t.$watchLocale=function(e){i.push(e)},Object.defineProperty(t,"$locale",{get:function(){return r.locale},set:function(e){r.locale=e,i.forEach((function(t){return t(e)}))}})}function Ie(){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 Ce(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=Ce(e,[we,ke,xe]);return n||void 0}}function De(){var e=getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:$e(wx.getSystemInfoSync().language)||we}function je(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=De);var Me={promiseInterceptor:Z},Ue=Object.freeze({__proto__:null,upx2px:ge,getLocale:De,setLocale:je,onLocaleChange:Re,addInterceptor:V,removeInterceptor:z,interceptors:Me});function Ne(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=Ne(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}}}}},He="__DC_STAT_UUID";function Ve(e){Fe=Fe||wx.getStorageSync(He),Fe||(Fe=Date.now()+""+Math.floor(1e7*Math.random()),wx.setStorage({key:He,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,i=void 0===r?"":r,o=e.system,a=void 0===o?"":o,s=e.language,c=void 0===s?"":s,u=e.theme,l=e.version,f=(e.platform,e.fontSizeSetting),d=e.SDKVersion,h=e.pixelRatio,p=e.deviceOrientation,v="",m="";v=a.split(" ")[0]||"",m=a.split(" ")[1]||"";var g=l,y=We(e,i),_=Je(n),b=Ge(e),w=p,k=h,x=d,O=c.replace(/_/g,"-"),S={appId:"__UNI__C76B472",appName:"wechat",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Ye(O),uniCompileVersion:"3.5.3",uniRuntimeVersion:"3.5.3",uniPlatform:"mp-weixin",deviceBrand:_,deviceModel:i,deviceType:y,devicePixelRatio:k,deviceOrientation:w,osName:v.toLocaleLowerCase(),osVersion:m,hostTheme:u,hostVersion:g,hostLanguage:O,hostName:b,hostSDKVersion:x,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"},i=Object.keys(r),o=t.toLocaleLowerCase(),a=0;a<i.length;a++){var s=i[a];if(-1!==o.indexOf(s)){n=r[s];break}}return n}function Je(e){var t=e;return t&&(t=e.toLocaleLowerCase()),t}function Ye(e){return De?De():e}function Ge(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){Ve(e),ze(e),Ke(e)}},Qe={args:function(e){"object"===typeof e&&(e.alertText=e.title)}},Ze={returnValue:function(e){var t=e,n=t.version,r=t.language,i=t.SDKVersion,o=t.theme,a=Ge(e),s=r.replace("_","-");e=L(Object.assign(e,{appId:"__UNI__C76B472",appName:"wechat",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Ye(s),hostVersion:n,hostLanguage:s,hostName:a,hostSDKVersion:i,hostTheme:o}))}},et={returnValue:function(e){var t=e,n=t.brand,r=t.model,i=We(e,r),o=Je(n);Ve(e),e=L(Object.assign(e,{deviceType:i,deviceBrand:o,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:Qe,getAppBaseInfo:Ze,getDeviceInfo:et,getWindowInfo:tt,getAppAuthorizeSetting:nt},it=["vibrate","preloadPage","unPreloadPage","loadSubPackage"],ot=[],at=["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]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(I(t)){var o=!0===i?t:{};for(var a in T(n)&&(n=n(t,o)||{}),t)if(E(n,a)){var s=n[a];T(s)&&(s=s(t[a],t,o)),s?P(s)?o[s]=t[a]:I(s)&&(o[s.name?s.name:a]=s.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(a,"'"))}else-1!==at.indexOf(a)?T(t[a])&&(o[a]=st(e,t[a],r)):i||(o[a]=t[a]);return o}return T(t)&&(t=st(e,t,r)),t}function ut(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return T(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 i=n;T(n)&&(i=n(t)),t=ct(e,t,i.args,i.returnValue);var o=[t];"undefined"!==typeof r&&o.push(r),T(i.name)?e=i.name(t):P(i.name)&&(e=i.name);var a=wx[e].apply(wx,o);return ae(e)?ut(e,a,i.returnValue,oe(e)):a}:function(){console.error("Platform '微信小程序' does not support '".concat(e,"'."))}}return t}var ft=Object.create(null),dt=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function ht(e){return function(t){var n=t.fail,r=t.complete,i={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};T(n)&&n(i),T(r)&&r(i)}}dt.forEach((function(e){ft[e]=ht(e)}));var pt={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function vt(e){var t=e.service,n=e.success,r=e.fail,i=e.complete,o=!1;pt[t]?(o={errMsg:"getProvider:ok",service:t,provider:pt[t]},T(n)&&n(o)):(o={errMsg:"getProvider:fail service not found"},T(r)&&r(o)),T(i)&&i(o)}var mt=Object.freeze({__proto__:null,getProvider:vt}),gt=function(){var e;return function(){return e||(e=new o.default),e}}();function yt(e,t,n){return e[t].apply(e,n)}function _t(){return yt(gt(),"$on",Array.prototype.slice.call(arguments))}function bt(){return yt(gt(),"$off",Array.prototype.slice.call(arguments))}function wt(){return yt(gt(),"$once",Array.prototype.slice.call(arguments))}function kt(){return yt(gt(),"$emit",Array.prototype.slice.call(arguments))}var xt,Ot,St,At=Object.freeze({__proto__:null,$on:_t,$off:bt,$once:wt,$emit:kt});function Tt(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function Pt(e){var t={};for(var n in e){var r=e[n];T(r)&&(t[n]=Tt(r),delete e[n])}return t}function It(e){try{return JSON.parse(e)}catch(t){}return e}function Et(e){if("enabled"===e.type)St=!0;else if("clientId"===e.type)xt=e.cid,Ot=e.errMsg,$t(xt,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:It(e.message)},n=0;n<jt.length;n++){var r=jt[n];if(r(t),t.stopped)break}else"click"===e.type&&jt.forEach((function(t){t({type:"click",data:It(e.message)})}))}var Ct=[];function $t(e,t){Ct.forEach((function(n){n(e,t)})),Ct.length=0}function Dt(e){I(e)||(e={});var t=Pt(e),n=t.success,r=t.fail,i=t.complete,o=T(n),a=T(r),s=T(i);Promise.resolve().then((function(){"undefined"===typeof St&&(St=!1,xt="",Ot="unipush is not enabled"),Ct.push((function(e,t){var c;e?(c={errMsg:"getPushClientId:ok",cid:e},o&&n(c)):(c={errMsg:"getPushClientId:fail"+(t?" "+t:"")},a&&r(c)),s&&i(c)})),"undefined"!==typeof xt&&$t(xt,Ot)}))}var jt=[],Lt=function(e){-1===jt.indexOf(e)&&jt.push(e)},Rt=function(e){if(e){var t=jt.indexOf(e);t>-1&&jt.splice(t,1)}else jt.length=0},Mt=Object.freeze({__proto__:null,getPushClientId:Dt,onPushMessage:Lt,offPushMessage:Rt,invokePushCallback:Et}),Ut=Page,Nt=Component,Ft=/:/g,qt=$((function(e){return j(e.replace(Ft,"-"))}));function Bt(e){var t=e.triggerEvent,n=function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.apply(e,[qt(n)].concat(i))};try{e.triggerEvent=n}catch(r){e._triggerEvent=n}}function Ht(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)}}Ut.__$wrappered||(Ut.__$wrappered=!0,Page=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ht("onLoad",e),Ut(e)},Page.after=Ut.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ht("created",e),Nt(e)});var Vt=["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(o.default.options&&Array.isArray(o.default.options[e]))return!0;if(t=t.default||t,T(t))return!!T(t.extendOptions[e])||!!(t.super&&t.super.options&&Array.isArray(t.super.options[e]));if(T(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;return t=t.default||t,n=T(t)?t:e.extend(t),t=n.options,[n,t]}function Yt(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 Gt(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 Xt(e,t){var n=e.data||{},r=e.methods||{};if("function"===typeof n)try{n=n.call(t)}catch(i){Object({NODE_ENV:"production",VUE_APP_NAME:"wechat",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(i){}return I(n)||(n={}),Object.keys(r).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||E(n,e)||(n[e]=r[e])})),n}var Qt=[String,Number,Boolean,Object,Array,null];function Zt(e){return function(t,n){this.$vm&&(this.$vm[e]=t)}}function en(e,t){var n=e.behaviors,r=e.extends,i=e.mixins,o=e.props;o||(e.props=o=[]);var a=[];return Array.isArray(n)&&n.forEach((function(e){a.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(o)?(o.push("name"),o.push("value")):(o.name={type:String,default:""},o.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),I(r)&&r.props&&a.push(t({properties:nn(r.props,!0)})),Array.isArray(i)&&i.forEach((function(e){I(e)&&e.props&&a.push(t({properties:nn(e.props,!0)}))})),a}function tn(e,t,n,r){return Array.isArray(t)&&1===t.length?t[0]:t}function nn(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:Zt(e)}})):I(e)&&Object.keys(e).forEach((function(t){var n=e[t];if(I(n)){var i=n.default;T(i)&&(i=i()),n.type=tn(t,n.type),r[t]={type:-1!==Qt.indexOf(n.type)?n.type:null,value:i,observer:Zt(t)}}else{var o=tn(t,n);r[t]={type:-1!==Qt.indexOf(o)?o:null,observer:Zt(t)}}})),r}function rn(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=C,e.preventDefault=C,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),I(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}function on(e,t){var n=e;return t.forEach((function(t){var r=t[0],i=t[2];if(r||"undefined"!==typeof i){var o,a=t[1],s=t[3];Number.isInteger(r)?o=r:r?"string"===typeof r&&r&&(o=0===r.indexOf("#s#")?r.substr(3):e.__get_value(r,n)):o=n,Number.isInteger(o)?n=i:a?Array.isArray(o)?n=o.find((function(t){return e.__get_value(a,t)===i})):I(o)?n=Object.keys(o).find((function(t){return e.__get_value(a,o[t])===i})):console.error("v-for 暂不支持循环数据:",o):n=o[i],s&&(n=e.__get_value(s,n))}})),n}function an(e,t,n){var r={};return Array.isArray(t)&&t.length&&t.forEach((function(t,i){"string"===typeof t?t?"$event"===t?r["$"+i]=n:"arguments"===t?n.detail&&n.detail.__args__?r["$"+i]=n.detail.__args__:r["$"+i]=[n]:0===t.indexOf("$event.")?r["$"+i]=e.__get_value(t.replace("$event.",""),n):r["$"+i]=e.__get_value(t):r["$"+i]=e:r["$"+i]=on(e,t)})),r}function sn(e){for(var t={},n=1;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t}function cn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=!1;if(i&&(a=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!n.length))return a?[t]:t.detail.__args__||t.detail;var s=an(e,r,t),c=[];return n.forEach((function(e){"$event"===e?"__set_model"!==o||i?i&&!a?c.push(t.detail.__args__[0]):c.push(t):c.push(t.target.value):Array.isArray(e)&&"o"===e[0]?c.push(sn(e)):"string"===typeof e&&E(s,e)?c.push(s[e]):c.push(e)})),c}var un="~",ln="^";function fn(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}function dn(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 hn(e){var t=this;e=rn(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 i=e.type,o=[];return r.forEach((function(n){var r=n[0],a=n[1],s=r.charAt(0)===ln;r=s?r.slice(1):r;var c=r.charAt(0)===un;r=c?r.slice(1):r,a&&fn(i,r)&&a.forEach((function(n){var r=n[0];if(r){var i=t.$vm;if(i.$options.generic&&(i=dn(i)||i),"$emit"===r)return void i.$emit.apply(i,cn(t.$vm,e,n[1],n[2],s,r));var a=i[r];if(!T(a)){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(a.once)return;a.once=!0}var f=cn(t.$vm,e,n[1],n[2],s,r);f=Array.isArray(f)?f:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(f=f.concat([,,,,,,,,,,e])),o.push(a.apply(i,f))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}var pn={},vn=[];function mn(e){if(e){var t=pn[e];return delete pn[e],t}return vn.shift()}var gn=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function yn(){o.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=o.default.prototype.__call_hook;o.default.prototype.__call_hook=function(t,n){return"onLoad"===t&&n&&n.__id__&&(this.__eventChannel__=mn(n.__id__),delete n.__id__),e.call(this,t,n)}}function _n(){var e={},t={};o.default.prototype.$hasScopedSlotsParams=function(n){var r=e[n];return r||(t[n]=this,this.$on("hook:destroyed",(function(){delete t[n]}))),r},o.default.prototype.$getScopedSlotsParams=function(n,r,i){var o=e[n];if(o){var a=o[r]||{};return i?a[i]:a}t[n]=this,this.$on("hook:destroyed",(function(){delete t[n]}))},o.default.prototype.$setScopedSlotsParams=function(n,r){var i=this.$options.propsData.vueId;if(i){var o=i.split(",")[0],a=e[o]=e[o]||{};a[n]=r,t[o]&&t[o].$forceUpdate()}},o.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete e[r],delete t[r])}})}function bn(e,t){var n=t.mocks,r=t.initRefs;yn(),_n(),e.$options.store&&(o.default.prototype.$store=e.$options.store),O(o.default),o.default.prototype.mpHost="mp-weixin",o.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=h({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 i={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))}};i.globalData=e.$options.globalData||{};var a=e.$options.methods;return a&&Object.keys(a).forEach((function(e){i[e]=a[e]})),Pe(o.default,e,$e(wx.getSystemInfoSync().language)||we),Wt(i,gn),i}var wn=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function kn(e,t){for(var n,r=e.$children,i=r.length-1;i>=0;i--){var o=r[i];if(o.$scope._$vueId===t)return o}for(var a=r.length-1;a>=0;a--)if(n=kn(r[a],t),n)return n}function xn(e){return Behavior(e)}function On(){return!!this.route}function Sn(e){this.triggerEvent("__l",e)}function An(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){An(e,t,n)}))}))}function Tn(e){var t=e.$scope;Object.defineProperty(e,"$refs",{get:function(){var e={};An(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 Pn(e){var t,n=e.detail||e.value,r=n.vuePid,i=n.vueOptions;r&&(t=kn(this.$vm,r)),t||(t=this.$vm),i.parent=t}function In(e){return bn(e,{mocks:wn,initRefs:Tn})}function En(e){return App(In(e)),e}var Cn=/[!'()*]/g,$n=function(e){return"%"+e.charCodeAt(0).toString(16)},Dn=/%2C/g,jn=function(e){return encodeURIComponent(e).replace(Cn,$n).replace(Dn,",")};function Ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jn,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 i=[];return r.forEach((function(e){void 0!==e&&(null===e?i.push(t(n)):i.push(t(n)+"="+t(e)))})),i.join("&")}return t(n)+"="+t(r)})).filter((function(e){return e.length>0})).join("&"):null;return n?"?".concat(n):""}function Rn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isPage,r=t.initRelation,i=Jt(o.default,e),a=u(i,2),s=a[0],l=a[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:Xt(l,o.default.prototype),behaviors:en(l,xn),properties:nn(l.props,!1,l.__file,f),lifetimes:{attached:function(){var e=this.properties,t={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:e};Gt(e.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new s(t),Yt(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:Pn,__e:hn}};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 Mn(e){return Rn(e,{isPage:On,initRelation:Sn})}var Un=["onShow","onHide","onUnload"];function Nn(e,t){t.isPage,t.initRelation;var n=Mn(e);return Wt(n.methods,Un,e),n.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Ln(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},n}function Fn(e){return Nn(e,{isPage:On,initRelation:Sn})}function qn(e){return Component(Fn(e))}function Bn(e){return Component(Mn(e))}function Hn(e){var t=In(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])})),T(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)})),T(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)})),T(t.onLaunch)){var i=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();e.__call_hook("onLaunch",i)}return e}function Vn(e){var t=In(e);if(T(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)})),T(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)})),T(t.onLaunch)){var n=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();e.__call_hook("onLaunch",n)}return e}Un.push.apply(Un,Vt),it.forEach((function(e){rt[e]=!1})),ot.forEach((function(e){var t=rt[e]&&rt[e].name?rt[e].name:e;wx.canIUse(t)||(rt[e]=!1)}));var zn={};"undefined"!==typeof Proxy?zn=new Proxy({},{get:function(e,t){return E(e,t)?e[t]:Ue[t]?Ue[t]:Mt[t]?le(t,Mt[t]):mt[t]?le(t,mt[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(Ue).forEach((function(e){zn[e]=Ue[e]})),Object.keys(ft).forEach((function(e){zn[e]=le(e,ft[e])})),Object.keys(mt).forEach((function(e){zn[e]=le(e,ft[e])})),Object.keys(At).forEach((function(e){zn[e]=At[e]})),Object.keys(Mt).forEach((function(e){zn[e]=le(e,Mt[e])})),Object.keys(wx).forEach((function(e){(E(wx,e)||E(rt,e))&&(zn[e]=le(e,lt(e,wx[e])))}))),wx.createApp=En,wx.createPage=qn,wx.createComponent=Bn,wx.createSubpackageApp=Hn,wx.createPlugin=Vn;var Kn=zn,Wn=Kn;t.default=Wn}).call(this,n("c8ba"))},"66fd":function(e,t,n){"use strict";n.r(t),function(e){
- /*!
- * Vue.js v2.6.11
- * (c) 2014-2022 Evan You
- * Released under the MIT License.
- */
- var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function l(e){return"[object Object]"===u.call(e)}function f(e){return"[object RegExp]"===u.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}m("slot,component",!0);var g=m("key,ref,slot,slot-scope,is");function y(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(e,t){return _.call(e,t)}function w(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var k=/-(\w)/g,x=w((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))})),O=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),S=/\B([A-Z])/g,A=w((function(e){return e.replace(S,"-$1").toLowerCase()}));function T(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 P(e,t){return e.bind(t)}var I=Function.prototype.bind?P:T;function E(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 $(e){for(var t={},n=0;n<e.length;n++)e[n]&&C(t,e[n]);return t}function D(e,t,n){}var j=function(e,t,n){return!1},L=function(e){return e};function R(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 i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return R(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return R(e[n],t[n])}))}catch(u){return!1}}function M(e,t){for(var n=0;n<e.length;n++)if(R(e[n],t))return n;return-1}function U(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var N=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:j,isReservedAttr:j,isUnknownElement:j,getTagNamespace:D,parsePlatformTagName:L,mustUseProp:j,async:!0,_lifecycleHooks:F},B=/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 H(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function V(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var z=new RegExp("[^"+B.source+".$_\\d]");function K(e){if(!z.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 W,J="__proto__"in{},Y="undefined"!==typeof window,G="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,X=G&&WXEnvironment.platform.toLowerCase(),Q=Y&&window.navigator.userAgent.toLowerCase(),Z=Q&&/msie|trident/.test(Q),ee=(Q&&Q.indexOf("msie 9.0"),Q&&Q.indexOf("edge/")>0),te=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===X),ne=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/),{}.watch);if(Y)try{var re={};Object.defineProperty(re,"passive",{get:function(){}}),window.addEventListener("test-passive",null,re)}catch(ni){}var ie=function(){return void 0===W&&(W=!Y&&!G&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),W},oe=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"===typeof e&&/native code/.test(e.toString())}var se,ce="undefined"!==typeof Symbol&&ae(Symbol)&&"undefined"!==typeof Reflect&&ae(Reflect.ownKeys);se="undefined"!==typeof Set&&ae(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 ue=D,le=0,fe=function(){this.id=le++,this.subs=[]};function de(e){fe.SharedObject.targetStack.push(e),fe.SharedObject.target=e,fe.target=e}function he(){fe.SharedObject.targetStack.pop(),fe.SharedObject.target=fe.SharedObject.targetStack[fe.SharedObject.targetStack.length-1],fe.target=fe.SharedObject.target}fe.prototype.addSub=function(e){this.subs.push(e)},fe.prototype.removeSub=function(e){y(this.subs,e)},fe.prototype.depend=function(){fe.SharedObject.target&&fe.SharedObject.target.addDep(this)},fe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},fe.SharedObject={},fe.SharedObject.target=null,fe.SharedObject.targetStack=[];var pe=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ve={child:{configurable:!0}};ve.child.get=function(){return this.componentInstance},Object.defineProperties(pe.prototype,ve);var me=function(e){void 0===e&&(e="");var t=new pe;return t.text=e,t.isComment=!0,t};function ge(e){return new pe(void 0,void 0,void 0,String(e))}function ye(e){var t=new pe(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 _e=Array.prototype,be=Object.create(_e),we=["push","pop","shift","unshift","splice","sort","reverse"];we.forEach((function(e){var t=_e[e];V(be,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var ke=Object.getOwnPropertyNames(be),xe=!0;function Oe(e){xe=e}var Se=function(e){this.value=e,this.dep=new fe,this.vmCount=0,V(e,"__ob__",this),Array.isArray(e)?(J?e.push!==e.__proto__.push?Te(e,be,ke):Ae(e,be):Te(e,be,ke),this.observeArray(e)):this.walk(e)};function Ae(e,t){e.__proto__=t}function Te(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];V(e,o,t[o])}}function Pe(e,t){var n;if(c(e)&&!(e instanceof pe))return b(e,"__ob__")&&e.__ob__ instanceof Se?n=e.__ob__:xe&&!ie()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Se(e)),t&&n&&n.vmCount++,n}function Ie(e,t,n,r,i){var o=new fe,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var u=!i&&Pe(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return fe.SharedObject.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&$e(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||s&&!c||(c?c.call(e,t):n=t,u=!i&&Pe(t),o.notify())}})}}function Ee(e,t,n){if(Array.isArray(e)&&d(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 r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Ie(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Ce(e,t){if(Array.isArray(e)&&d(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||b(e,t)&&(delete e[t],n&&n.dep.notify())}}function $e(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)&&$e(t)}Se.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Ie(e,t[n])},Se.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Pe(e[t])};var De=q.optionMergeStrategies;function je(e,t){if(!t)return e;for(var n,r,i,o=ce?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=e[n],i=t[n],b(e,n)?r!==i&&l(r)&&l(i)&&je(r,i):Ee(e,n,i));return e}function Le(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,i="function"===typeof e?e.call(n,n):e;return r?je(r,i):i}:t?e?function(){return je("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Re(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?Me(n):n}function Me(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function Ue(e,t,n,r){var i=Object.create(e||null);return t?C(i,t):i}De.data=function(e,t,n){return n?Le(e,t,n):t&&"function"!==typeof t?e:Le(e,t)},F.forEach((function(e){De[e]=Re})),N.forEach((function(e){De[e+"s"]=Ue})),De.watch=function(e,t,n,r){if(e===ne&&(e=void 0),t===ne&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in C(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},De.props=De.methods=De.inject=De.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return C(i,e),t&&C(i,t),i},De.provide=Le;var Ne=function(e,t){return void 0===t?e:t};function Fe(e,t){var n=e.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=x(i),a[o]={type:null})}else if(l(n))for(var s in n)i=n[s],o=x(s),a[o]=l(i)?i:{type:i};else 0;e.props=a}}function qe(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var o in n){var a=n[o];r[o]=l(a)?C({from:o},a):{from:a}}else 0}}function Be(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 He(e,t,n){if("function"===typeof t&&(t=t.options),Fe(t,n),qe(t,n),Be(t),!t._base&&(t.extends&&(e=He(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=He(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)b(e,o)||s(o);function s(r){var i=De[r]||Ne;a[r]=i(e[r],t[r],n,r)}return a}function Ve(e,t,n,r){if("string"===typeof n){var i=e[t];if(b(i,n))return i[n];var o=x(n);if(b(i,o))return i[o];var a=O(o);if(b(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function ze(e,t,n,r){var i=t[e],o=!b(n,e),a=n[e],s=Ye(Boolean,i.type);if(s>-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===A(e)){var c=Ye(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=Ke(r,i,e);var u=xe;Oe(!0),Pe(a),Oe(u)}return a}function Ke(e,t,n){if(b(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof r&&"Function"!==We(t.type)?r.call(e):r}}function We(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Je(e,t){return We(e)===We(t)}function Ye(e,t){if(!Array.isArray(t))return Je(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Je(t[n],e))return n;return-1}function Ge(e,t,n){de();try{if(t){var r=t;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,e,t,n);if(a)return}catch(ni){Qe(ni,r,"errorCaptured hook")}}}Qe(e,t,n)}finally{he()}}function Xe(e,t,n,r,i){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&h(o)&&!o._handled&&(o.catch((function(e){return Ge(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(ni){Ge(ni,r,i)}return o}function Qe(e,t,n){if(q.errorHandler)try{return q.errorHandler.call(null,e,t,n)}catch(ni){ni!==e&&Ze(ni,null,"config.errorHandler")}Ze(e,t,n)}function Ze(e,t,n){if(!Y&&!G||"undefined"===typeof console)throw e;console.error(e)}var et,tt=[],nt=!1;function rt(){nt=!1;var e=tt.slice(0);tt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&ae(Promise)){var it=Promise.resolve();et=function(){it.then(rt),te&&setTimeout(D)}}else if(Z||"undefined"===typeof MutationObserver||!ae(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())et="undefined"!==typeof setImmediate&&ae(setImmediate)?function(){setImmediate(rt)}:function(){setTimeout(rt,0)};else{var ot=1,at=new MutationObserver(rt),st=document.createTextNode(String(ot));at.observe(st,{characterData:!0}),et=function(){ot=(ot+1)%2,st.data=String(ot)}}function ct(e,t){var n;if(tt.push((function(){if(e)try{e.call(t)}catch(ni){Ge(ni,t,"nextTick")}else n&&n(t)})),nt||(nt=!0,et()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var ut=new se;function lt(e){ft(e,ut),ut.clear()}function ft(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!c(e)||Object.isFrozen(e)||e instanceof pe)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i){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 dt=w((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 ht(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Xe(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)Xe(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function pt(e,t,n,i,a,s){var c,u,l,f;for(c in e)u=e[c],l=t[c],f=dt(c),r(u)||(r(l)?(r(u.fns)&&(u=e[c]=ht(u,s)),o(f.once)&&(u=e[c]=a(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=dt(c),i(f.name,t[c],f.capture))}function vt(e,t,n,o){var a=t.options.mpOptions&&t.options.mpOptions.properties;if(r(a))return n;var s=t.options.mpOptions.externalClasses||[],c=e.attrs,u=e.props;if(i(c)||i(u))for(var l in a){var f=A(l),d=gt(n,u,l,f,!0)||gt(n,c,l,f,!1);d&&n[l]&&-1!==s.indexOf(f)&&o[x(n[l])]&&(n[l]=o[x(n[l])])}return n}function mt(e,t,n,o){var a=t.options.props;if(r(a))return vt(e,t,{},o);var s={},c=e.attrs,u=e.props;if(i(c)||i(u))for(var l in a){var f=A(l);gt(s,u,l,f,!0)||gt(s,c,l,f,!1)}return vt(e,t,s,o)}function gt(e,t,n,r,o){if(i(t)){if(b(t,n))return e[n]=t[n],o||delete t[n],!0;if(b(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function yt(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function _t(e){return s(e)?[ge(e)]:Array.isArray(e)?wt(e):void 0}function bt(e){return i(e)&&i(e.text)&&a(e.isComment)}function wt(e,t){var n,a,c,u,l=[];for(n=0;n<e.length;n++)a=e[n],r(a)||"boolean"===typeof a||(c=l.length-1,u=l[c],Array.isArray(a)?a.length>0&&(a=wt(a,(t||"")+"_"+n),bt(a[0])&&bt(u)&&(l[c]=ge(u.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?bt(u)?l[c]=ge(u.text+a):""!==a&&l.push(ge(a)):bt(a)&&bt(u)?l[c]=ge(u.text+a.text):(o(e._isVList)&&i(a.tag)&&r(a.key)&&i(t)&&(a.key="__vlist"+t+"_"+n+"__"),l.push(a)));return l}function kt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function xt(e){var t=Ot(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach((function(n){Ie(e,n,t[n])})),Oe(!0))}function Ot(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=e[o].from,s=t;while(s){if(s._provided&&b(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var c=e[o].default;n[o]="function"===typeof c?c.call(t):c}else 0}}return n}}function St(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)o.asyncMeta&&o.asyncMeta.data&&"page"===o.asyncMeta.data.slot?(n["page"]||(n["page"]=[])).push(o):(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(At)&&delete n[u];return n}function At(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Tt(e,t,r){var i,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=Pt(t,c,e[c]))}else i={};for(var u in t)u in i||(i[u]=It(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),V(i,"$stable",a),V(i,"$key",s),V(i,"$hasNormal",o),i}function Pt(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]:_t(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 It(e,t){return function(){return e[t]}}function Et(e,t){var n,r,o,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,o=e.length;r<o;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(ce&&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(a=Object.keys(e),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=t(e[s],s,r,r);return i(n)||(n=[]),n._isVList=!0,n}function Ct(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=C(C({},r),n)),i=o(n,this,n._i)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function $t(e){return Ve(this.$options,"filters",e,!0)||L}function Dt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function jt(e,t,n,r,i){var o=q.keyCodes[t]||n;return i&&r&&!q.keyCodes[t]?Dt(i,r):o?Dt(o,e):r?A(r)!==t:void 0}function Lt(e,t,n,r,i){if(n)if(c(n)){var o;Array.isArray(n)&&(n=$(n));var a=function(a){if("class"===a||"style"===a||g(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||q.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=x(a),u=A(a);if(!(c in o)&&!(u in o)&&(o[a]=n[a],i)){var l=e.on||(e.on={});l["update:"+a]=function(e){n[a]=e}}};for(var s in n)a(s)}else;return e}function Rt(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),Ut(r,"__static__"+e,!1)),r}function Mt(e,t,n){return Ut(e,"__once__"+t+(n?"_"+n:""),!0),e}function Ut(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&Nt(e[r],t+"_"+r,n);else Nt(e,t,n)}function Nt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Ft(e,t){if(t)if(l(t)){var n=e.on=e.on?C({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function qt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?qt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Bt(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])}return e}function Ht(e,t){return"string"===typeof e?t+e:e}function Vt(e){e._o=Mt,e._n=v,e._s=p,e._l=Et,e._t=Ct,e._q=R,e._i=M,e._m=Rt,e._f=$t,e._k=jt,e._b=Lt,e._v=ge,e._e=me,e._u=qt,e._g=Ft,e._d=Bt,e._p=Ht}function zt(e,t,r,i,a){var s,c=this,u=a.options;b(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var l=o(u._compiled),f=!l;this.data=e,this.props=t,this.children=r,this.parent=i,this.listeners=e.on||n,this.injections=Ot(u.inject,i),this.slots=function(){return c.$slots||Tt(e.scopedSlots,c.$slots=St(r,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Tt(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Tt(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var o=on(s,e,t,n,r,f);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=i),o}:this._c=function(e,t,n,r){return on(s,e,t,n,r,f)}}function Kt(e,t,r,o,a){var s=e.options,c={},u=s.props;if(i(u))for(var l in u)c[l]=ze(l,u,t||n);else i(r.attrs)&&Jt(c,r.attrs),i(r.props)&&Jt(c,r.props);var f=new zt(r,c,a,o,e),d=s.render.call(null,f._c,f);if(d instanceof pe)return Wt(d,r,f.parent,s,f);if(Array.isArray(d)){for(var h=_t(d)||[],p=new Array(h.length),v=0;v<h.length;v++)p[v]=Wt(h[v],r,f.parent,s,f);return p}}function Wt(e,t,n,r,i){var o=ye(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Jt(e,t){for(var n in t)e[x(n)]=t[n]}Vt(zt.prototype);var Yt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Yt.prepatch(n,n)}else{var r=e.componentInstance=Qt(e,On);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;Pn(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||($n(n,"onServiceCreated"),$n(n,"onServiceAttached"),n._isMounted=!0,$n(n,"mounted")),e.data.keepAlive&&(t._isMounted?Vn(n):En(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Cn(t,!0):t.$destroy())}},Gt=Object.keys(Yt);function Xt(e,t,n,a,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=vn(l,u),void 0===e))return pn(l,t,n,a,s);t=t||{},hr(e),i(t.model)&&tn(e.options,t);var f=mt(t,e,s,n);if(o(e.options.functional))return Kt(e,f,t,n,a);var d=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var h=t.slot;t={},h&&(t.slot=h)}Zt(t);var p=e.options.name||s,v=new pe("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:d,tag:s,children:a},l);return v}}}function Qt(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function Zt(e){for(var t=e.hook||(e.hook={}),n=0;n<Gt.length;n++){var r=Gt[n],i=t[r],o=Yt[r];i===o||i&&i._merged||(t[r]=i?en(o,i):o)}}function en(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function tn(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 o=t.on||(t.on={}),a=o[r],s=t.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var nn=1,rn=2;function on(e,t,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=rn),an(e,t,n,r,i)}function an(e,t,n,r,o){if(i(n)&&i(n.__ob__))return me();if(i(n)&&i(n.is)&&(t=n.is),!t)return me();var a,s,c;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===rn?r=_t(r):o===nn&&(r=yt(r)),"string"===typeof t)?(s=e.$vnode&&e.$vnode.ns||q.getTagNamespace(t),a=q.isReservedTag(t)?new pe(q.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!i(c=Ve(e.$options,"components",t))?new pe(t,n,r,void 0,void 0,e):Xt(c,n,e,r,t)):a=Xt(t,n,e,r);return Array.isArray(a)?a:i(a)?(i(s)&&sn(a,s),i(n)&&cn(n),a):me()}function sn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(var a=0,s=e.children.length;a<s;a++){var c=e.children[a];i(c.tag)&&(r(c.ns)||o(n)&&"svg"!==c.tag)&&sn(c,t,n)}}function cn(e){c(e.style)&<(e.style),c(e.class)&<(e.class)}function un(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=St(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return on(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return on(e,t,n,r,i,!0)};var o=r&&r.data;Ie(e,"$attrs",o&&o.attrs||n,null,!0),Ie(e,"$listeners",t._parentListeners||n,null,!0)}var ln,fn=null;function dn(e){Vt(e.prototype),e.prototype.$nextTick=function(e){return ct(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=Tt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{fn=t,e=r.call(t._renderProxy,t.$createElement)}catch(ni){Ge(ni,t,"render"),e=t._vnode}finally{fn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof pe||(e=me()),e.parent=i,e}}function hn(e,t){return(e.__esModule||ce&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function pn(e,t,n,r,i){var o=me();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function vn(e,t){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=fn;if(n&&i(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&i(e.loadingComp))return e.loadingComp;if(n&&!i(e.owners)){var a=e.owners=[n],s=!0,u=null,l=null;n.$on("hook:destroyed",(function(){return y(a,n)}));var f=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},d=U((function(n){e.resolved=hn(n,t),s?a.length=0:f(!0)})),p=U((function(t){i(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),i(v.error)&&(e.errorComp=hn(v.error,t)),i(v.loading)&&(e.loadingComp=hn(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)),i(v.timeout)&&(l=setTimeout((function(){l=null,r(e.resolved)&&p(null)}),v.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function mn(e){return e.isComment&&e.asyncFactory}function gn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(i(n)&&(i(n.componentOptions)||mn(n)))return n}}function yn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&kn(e,t)}function _n(e,t){ln.$on(e,t)}function bn(e,t){ln.$off(e,t)}function wn(e,t){var n=ln;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function kn(e,t,n){ln=e,pt(t,n||{},_n,bn,wn,e),ln=void 0}function xn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],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,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var s=a.length;while(s--)if(o=a[s],o===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?E(n):n;for(var r=E(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;o<a;o++)Xe(n[o],t,r,t,i)}return t}}var On=null;function Sn(e){var t=On;return On=e,function(){On=t}}function An(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 Tn(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Sn(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),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){$n(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||y(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),$n(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Pn(e,t,r,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),u=!!(o||e.$options._renderChildren||c);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){Oe(!1);for(var l=e._props,f=e.$options._propKeys||[],d=0;d<f.length;d++){var h=f[d],p=e.$options.props;l[h]=ze(h,p,t,e)}Oe(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),r=r||n;var v=e.$options._parentListeners;e.$options._parentListeners=r,kn(e,r,v),u&&(e.$slots=St(o,i.context),e.$forceUpdate())}function In(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function En(e,t){if(t){if(e._directInactive=!1,In(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++)En(e.$children[n]);$n(e,"activated")}}function Cn(e,t){if((!t||(e._directInactive=!0,!In(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Cn(e.$children[n]);$n(e,"deactivated")}}function $n(e,t){de();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Xe(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),he()}var Dn=[],jn=[],Ln={},Rn=!1,Mn=!1,Un=0;function Nn(){Un=Dn.length=jn.length=0,Ln={},Rn=Mn=!1}var Fn=Date.now;if(Y&&!Z){var qn=window.performance;qn&&"function"===typeof qn.now&&Fn()>document.createEvent("Event").timeStamp&&(Fn=function(){return qn.now()})}function Bn(){var e,t;for(Fn(),Mn=!0,Dn.sort((function(e,t){return e.id-t.id})),Un=0;Un<Dn.length;Un++)e=Dn[Un],e.before&&e.before(),t=e.id,Ln[t]=null,e.run();var n=jn.slice(),r=Dn.slice();Nn(),zn(n),Hn(r),oe&&q.devtools&&oe.emit("flush")}function Hn(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&$n(r,"updated")}}function Vn(e){e._inactive=!1,jn.push(e)}function zn(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,En(e[t],!0)}function Kn(e){var t=e.id;if(null==Ln[t]){if(Ln[t]=!0,Mn){var n=Dn.length-1;while(n>Un&&Dn[n].id>e.id)n--;Dn.splice(n+1,0,e)}else Dn.push(e);Rn||(Rn=!0,ct(Bn))}}var Wn=0,Jn=function(e,t,n,r,i){this.vm=e,i&&(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=++Wn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new se,this.newDepIds=new se,this.expression="","function"===typeof t?this.getter=t:(this.getter=K(t),this.getter||(this.getter=D)),this.value=this.lazy?void 0:this.get()};Jn.prototype.get=function(){var e;de(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(ni){if(!this.user)throw ni;Ge(ni,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&<(e),he(),this.cleanupDeps()}return e},Jn.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))},Jn.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},Jn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Kn(this)},Jn.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(ni){Ge(ni,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Jn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Jn.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},Jn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var Yn={enumerable:!0,configurable:!0,get:D,set:D};function Gn(e,t,n){Yn.get=function(){return this[t][n]},Yn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Yn)}function Xn(e){e._watchers=[];var t=e.$options;t.props&&Qn(e,t.props),t.methods&&ar(e,t.methods),t.data?Zn(e):Pe(e._data={},!0),t.computed&&nr(e,t.computed),t.watch&&t.watch!==ne&&sr(e,t.watch)}function Qn(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Oe(!1);var a=function(o){i.push(o);var a=ze(o,t,n,e);Ie(r,o,a),o in e||Gn(e,"_props",o)};for(var s in t)a(s);Oe(!0)}function Zn(e){var t=e.$options.data;t=e._data="function"===typeof t?er(t,e):t||{},l(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var o=n[i];0,r&&b(r,o)||H(o)||Gn(e,"_data",o)}Pe(t,!0)}function er(e,t){de();try{return e.call(t,t)}catch(ni){return Ge(ni,t,"data()"),{}}finally{he()}}var tr={lazy:!0};function nr(e,t){var n=e._computedWatchers=Object.create(null),r=ie();for(var i in t){var o=t[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new Jn(e,a||D,D,tr)),i in e||rr(e,i,o)}}function rr(e,t,n){var r=!ie();"function"===typeof n?(Yn.get=r?ir(t):or(n),Yn.set=D):(Yn.get=n.get?r&&!1!==n.cache?ir(t):or(n.get):D,Yn.set=n.set||D),Object.defineProperty(e,t,Yn)}function ir(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),fe.SharedObject.target&&t.depend(),t.value}}function or(e){return function(){return e.call(this,this)}}function ar(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?D:I(t[n],e)}function sr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)cr(e,n,r[i]);else cr(e,n,r)}}function cr(e,t,n,r){return l(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function ur(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ee,e.prototype.$delete=Ce,e.prototype.$watch=function(e,t,n){var r=this;if(l(t))return cr(r,e,t,n);n=n||{},n.user=!0;var i=new Jn(r,e,t,n);if(n.immediate)try{t.call(r,i.value)}catch(o){Ge(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var lr=0;function fr(e){e.prototype._init=function(e){var t=this;t._uid=lr++,t._isVue=!0,e&&e._isComponent?dr(t,e):t.$options=He(hr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,An(t),yn(t),un(t),$n(t,"beforeCreate"),!t._$fallback&&xt(t),Xn(t),!t._$fallback&&kt(t),!t._$fallback&&$n(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function dr(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function hr(e){var t=e.options;if(e.super){var n=hr(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=pr(e);i&&C(e.extendOptions,i),t=e.options=He(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function pr(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function vr(e){this._init(e)}function mr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=E(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 gr(e){e.mixin=function(e){return this.options=He(this.options,e),this}}function yr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=He(n.options,e),a["super"]=n,a.options.props&&_r(a),a.options.computed&&br(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,N.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=C({},a.options),i[r]=a,a}}function _r(e){var t=e.options.props;for(var n in t)Gn(e.prototype,"_props",n)}function br(e){var t=e.options.computed;for(var n in t)rr(e.prototype,n,t[n])}function wr(e){N.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&l(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 kr(e){return e&&(e.Ctor.options.name||e.tag)}function xr(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function Or(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=kr(a.componentOptions);s&&!t(s)&&Sr(n,o,r,i)}}}function Sr(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,y(n,t)}fr(vr),ur(vr),xn(vr),Tn(vr),dn(vr);var Ar=[String,RegExp,Array],Tr={name:"keep-alive",abstract:!0,props:{include:Ar,exclude:Ar,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Sr(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Or(e,(function(e){return xr(t,e)}))})),this.$watch("exclude",(function(t){Or(e,(function(e){return!xr(t,e)}))}))},render:function(){var e=this.$slots.default,t=gn(e),n=t&&t.componentOptions;if(n){var r=kr(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!xr(o,r))||a&&r&&xr(a,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,y(u,l),u.push(l)):(c[l]=t,u.push(l),this.max&&u.length>parseInt(this.max)&&Sr(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Pr={KeepAlive:Tr};function Ir(e){var t={get:function(){return q}};Object.defineProperty(e,"config",t),e.util={warn:ue,extend:C,mergeOptions:He,defineReactive:Ie},e.set=Ee,e.delete=Ce,e.nextTick=ct,e.observable=function(e){return Pe(e),e},e.options=Object.create(null),N.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,C(e.options.components,Pr),mr(e),gr(e),yr(e),wr(e)}Ir(vr),Object.defineProperty(vr.prototype,"$isServer",{get:ie}),Object.defineProperty(vr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(vr,"FunctionalRenderContext",{value:zt}),vr.version="2.6.11";var Er="[object Array]",Cr="[object Object]";function $r(e,t){var n={};return Dr(e,t),jr(e,t,"",n),n}function Dr(e,t){if(e!==t){var n=Rr(e),r=Rr(t);if(n==Cr&&r==Cr){if(Object.keys(e).length>=Object.keys(t).length)for(var i in t){var o=e[i];void 0===o?e[i]=null:Dr(o,t[i])}}else n==Er&&r==Er&&e.length>=t.length&&t.forEach((function(t,n){Dr(e[n],t)}))}}function jr(e,t,n,r){if(e!==t){var i=Rr(e),o=Rr(t);if(i==Cr)if(o!=Cr||Object.keys(e).length<Object.keys(t).length)Lr(r,n,e);else{var a=function(i){var o=e[i],a=t[i],s=Rr(o),c=Rr(a);if(s!=Er&&s!=Cr)o!==t[i]&&Lr(r,(""==n?"":n+".")+i,o);else if(s==Er)c!=Er||o.length<a.length?Lr(r,(""==n?"":n+".")+i,o):o.forEach((function(e,t){jr(e,a[t],(""==n?"":n+".")+i+"["+t+"]",r)}));else if(s==Cr)if(c!=Cr||Object.keys(o).length<Object.keys(a).length)Lr(r,(""==n?"":n+".")+i,o);else for(var u in o)jr(o[u],a[u],(""==n?"":n+".")+i+"."+u,r)};for(var s in e)a(s)}else i==Er?o!=Er||e.length<t.length?Lr(r,n,e):e.forEach((function(e,i){jr(e,t[i],n+"["+i+"]",r)})):Lr(r,n,e)}}function Lr(e,t,n){e[t]=n}function Rr(e){return Object.prototype.toString.call(e)}function Mr(e){if(e.__next_tick_callbacks&&e.__next_tick_callbacks.length){if(Object({NODE_ENV:"production",VUE_APP_NAME:"wechat",VUE_APP_PLATFORM:"mp-weixin",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 Ur(e){return Dn.find((function(t){return e._watcher===t}))}function Nr(e,t){if(!e.__next_tick_pending&&!Ur(e)){if(Object({NODE_ENV:"production",VUE_APP_NAME:"wechat",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var n=e.$scope;console.log("["+ +new Date+"]["+(n.is||n.route)+"]["+e._uid+"]:nextVueTick")}return ct(t,e)}if(Object({NODE_ENV:"production",VUE_APP_NAME:"wechat",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var r=e.$scope;console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+e._uid+"]:nextMPTick")}var i;if(e.__next_tick_callbacks||(e.__next_tick_callbacks=[]),e.__next_tick_callbacks.push((function(){if(t)try{t.call(e)}catch(ni){Ge(ni,e,"nextTick")}else i&&i(e)})),!t&&"undefined"!==typeof Promise)return new Promise((function(e){i=e}))}function Fr(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__,i=r&&r.rawBindings;return i&&Object.keys(i).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 qr=function(e,t){var n=this;if(null!==t&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,i=Object.create(null);try{i=Fr(this)}catch(s){console.error(s)}i.__webviewId__=r.data.__webviewId__;var o=Object.create(null);Object.keys(i).forEach((function(e){o[e]=r.data[e]}));var a=!1===this.$shouldDiffData?i:$r(i,o);Object.keys(a).length?(Object({NODE_ENV:"production",VUE_APP_NAME:"wechat",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+this._uid+"]差量更新",JSON.stringify(a)),this.__next_tick_pending=!0,r.setData(a,(function(){n.__next_tick_pending=!1,Mr(n)}))):Mr(this)}};function Br(){}function Hr(e,t,n){if(!e.mpType)return e;"app"===e.mpType&&(e.$options.render=Br),e.$options.render||(e.$options.render=Br),!e._$fallback&&$n(e,"beforeMount");var r=function(){e._update(e._render(),n)};return new Jn(e,r,D,{before:function(){e._isMounted&&!e._isDestroyed&&$n(e,"beforeUpdate")}},!0),n=!1,e}function Vr(e,t){return i(e)||i(t)?zr(e,Kr(t)):""}function zr(e,t){return e?t?e+" "+t:e:t||""}function Kr(e){return Array.isArray(e)?Wr(e):c(e)?Jr(e):"string"===typeof e?e:""}function Wr(e){for(var t,n="",r=0,o=e.length;r<o;r++)i(t=Kr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function Jr(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var Yr=w((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 Gr(e){return Array.isArray(e)?$(e):"string"===typeof e?Yr(e):e}var Xr=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Qr(e,t){var n=t.split("."),r=n[0];return 0===r.indexOf("__$n")&&(r=parseInt(r.replace("__$n",""))),1===n.length?e[r]:Qr(e[r],n.slice(1).join("."))}function Zr(e){e.config.errorHandler=function(t,n,r){e.util.warn("Error in "+r+': "'+t.toString()+'"',n),console.error(t);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){return this.$scope&&e&&(this.$scope["_triggerEvent"]||this.$scope["triggerEvent"]).call(this.$scope,e,{__args__:E(arguments,1)}),t.apply(this,arguments)},e.prototype.$nextTick=function(e){return Nr(this,e)},Xr.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=kt,e.prototype.__init_injections=xt,e.prototype.__call_hook=function(e,t){var n=this;de();var r,i=n.$options[e],o=e+" hook";if(i)for(var a=0,s=i.length;a<s;a++)r=Xe(i[a],n,t?[t]:null,n,o);return n._hasHookEvent&&n.$emit("hook:"+e,t),he(),r},e.prototype.__set_model=function(t,n,r,i){Array.isArray(i)&&(-1!==i.indexOf("trim")&&(r=r.trim()),-1!==i.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 l(e)&&e["$orig"]||e},e.prototype.__get_value=function(e,t){return Qr(t||this,e)},e.prototype.__get_class=function(e,t){return Vr(t,e)},e.prototype.__get_style=function(e,t){if(!e&&!t)return"";var n=Gr(e),r=t?C(t,n):n;return Object.keys(r).map((function(e){return A(e)+":"+r[e]})).join(";")},e.prototype.__map=function(e,t){var n,r,i,o,a;if(Array.isArray(e)){for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);return n}if(c(e)){for(o=Object.keys(e),n=Object.create(null),r=0,i=o.length;r<i;r++)a=o[r],n[a]=t(e[a],a,r);return n}if("number"===typeof e){for(n=new Array(e),r=0,i=e;r<i;r++)n[r]=t(r,r);return n}return[]}}var ei=["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"];function ti(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;return n&&Object.keys(n).forEach((function(t){-1!==ei.indexOf(t)&&(e[t]=n[t],delete n[t])})),t.call(this,e)};var n=e.config.optionMergeStrategies,r=n.created;ei.forEach((function(e){n[e]=r})),e.prototype.__lifecycle_hooks__=ei}vr.prototype.__patch__=qr,vr.prototype.$mount=function(e,t){return Hr(this,e,t)},ti(vr),Zr(vr),t["default"]=vr}.call(this,n("c8ba"))},"6b59":function(e,t){},"809f":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.get=s,t.post=u,t.default=void 0;var r,i,o=a(n("66fd"));function a(e){return e&&e.__esModule?e:{default:e}}function s(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(i,a){if(o.default.prototype.$token)var s={Authorization:"Basic c2FiZXI6c2FiZXJfc2VjcmV0"};else s={};e.request({url:r+t,data:n,method:"GET",header:s,success:function(e){i(e.data)},fail:function(e){return Promise.reject(e)}})}))}r="https://cfm.bytesail.cn/api/storage/cloudApi",i="https://cfm.bytesail.cn/api/storage/cloudApi";var c=[];function u(t){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;return console.log(o.default.prototype.$token,"token"),n=-1==t.indexOf("/cloudApi")?r:i,c.indexOf(t),c.push(t),setTimeout((function(){c.splice(c.indexOf(t),1)}),500),new Promise((function(r,i){if(o.default.prototype.$token)var c={"Blade-Auth":"bearer "+o.default.prototype.$token.access_token,Authorization:"Basic c2FiZXI6c2FiZXJfc2VjcmV0","Content-Type":"application/json;charset=UTF-8"};else c={};s&&(c=s),e.request({url:n+t,data:a,method:"POST",header:c,success:function(t){console.log(t),401==t.data.code?(e.showToast({icon:"error",title:"前往登录",duration:2e3}),o.default.prototype.$token=null,e.redirectTo({url:"/pages/user/login"})):500==t.data.code?e.showToast({icon:"error",title:t.data.msg,duration:2e3}):200==t.data.code?r(t.data):t.data.code?e.showToast({icon:"error",title:t.data.msg,duration:2e3}):e.showToast({icon:"error",title:"服务器错误",duration:2e3})},fail:function(t){return e.showToast({icon:"error",title:"服务器错误",duration:2e3}),Promise.reject(t)}})}))}var l={post:u,get:s};t.default=l}).call(this,n("543d")["default"])},"81ad":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n("be04")),i=a(n("1955")),o=a(n("f58c"));function a(e){return e&&e.__esModule?e:{default:e}}var s={en:r.default,"zh-Hans":i.default,"zh-Hant":o.default};t.default=s},"8e4d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={easycom:{autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},pages:[{path:"pages/user/login",style:{navigationBarTitleText:"登录"}},{path:"pages/index/index",style:{navigationBarTitleText:"uni-app"}},{path:"pages/home",style:{navigationBarTitleText:"首页"}},{path:"pages/addQrcode/addQrcode",style:{navigationBarTitleText:"添加二维码"}},{path:"pages/addQrcode/selectQrcode",style:{navigationBarTitleText:"添加二维码"}},{path:"pages/addQrcode/addBatch",style:{navigationBarTitleText:"添加二维码"}},{path:"pages/manageQrcode/manageQrcode",style:{navigationBarTitleText:"二维码管理"}},{path:"pages/goIn/goIn",style:{navigationBarTitleText:"扫码入库"}},{path:"pages/goIn/withdrawal",style:{navigationBarTitleText:"退仓"}},{path:"pages/goOut/goOut",style:{navigationBarTitleText:"出库"}},{path:"pages/inOut/inOut",style:{navigationBarTitleText:"调仓"}},{path:"pages/check/check",style:{navigationBarTitleText:"到货质检"}},{path:"pages/check/checkDtl",style:{navigationBarTitleText:"到货质检"}},{path:"pages/check/checkSubmit",style:{navigationBarTitleText:"到货质检"}},{path:"pages/weigh/weigh",style:{navigationBarTitleText:"称重质检"}},{path:"pages/weigh/checkDtl",style:{navigationBarTitleText:"称重质检"}},{path:"pages/weigh/checkSubmit",style:{navigationBarTitleText:"称重质检"}},{path:"pages/Inventory/Inventory",style:{navigationBarTitleText:"库存盘点"}},{path:"pages/Inventory/InventorySubmit",style:{navigationBarTitleText:"库存盘点"}},{path:"pages/Inventory/InventoryDtl",style:{navigationBarTitleText:"库存盘点"}},{path:"pages/select/select",style:{navigationBarTitleText:"库存查询"}},{path:"pages/overCloth/overCloth",style:{navigationBarTitleText:"过布"}},{path:"pages/shiftHandover/shiftHandover",style:{navigationBarTitleText:"现场交班"}},{path:"pages/succession/succession",style:{navigationBarTitleText:"现场接班"}},{path:"pages/total/total",style:{navigationBarTitleText:"统计"}},{path:"pages/total/summary",style:{navigationBarTitleText:"面料库存详情"}},{path:"pages/total/warehouseDtl",style:{navigationBarTitleText:"出库详情"}},{path:"pages/total/warehousingDtl",style:{navigationBarTitleText:"面料入库详情"}},{path:"pages/usedTotal/usedTotal",style:{navigationBarTitleText:"统计(rfid)"}},{path:"pages/usedTotal/summary",style:{navigationBarTitleText:"面料库存详情(rfid)"}},{path:"pages/usedTotal/warehouseDtl",style:{navigationBarTitleText:"出库详情(rfid)"}},{path:"pages/usedTotal/warehousingDtl",style:{navigationBarTitleText:"面料入库详情(rfid)"}},{path:"pages/submit/submit",style:{navigationBarTitleText:"面料问题反馈"}}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"}};t.default=r},"96cf":function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.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",h="executing",p="completed",v={},m={};m[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g($([])));y&&y!==r&&i.call(y,a)&&(m=y);var _=O.prototype=k.prototype=Object.create(m);x.prototype=_.constructor=O,O.constructor=x,O[c]=x.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===x||"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 i=new A(b(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(_),_[c]="Generator",_[a]=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=$,C.prototype={constructor:C,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)&&i.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,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.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&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},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 i=r.arg;E(n)}return i}}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 i=t&&t.prototype instanceof k?t:k,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=T(e,n,a),o}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function k(){}function x(){}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,o,a){var s=w(e[n],e,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,o,a)}),(function(e){t("throw",e,o,a)})):Promise.resolve(u).then((function(e){c.value=e,o(c)}),(function(e){return t("throw",e,o,a)}))}a(s.arg)}var n;function r(e,r){function i(){return new Promise((function(n,i){t(e,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function T(e,t,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return D()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=P(a,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=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=w(e,t,n);if("normal"===c.type){if(r=n.done?p:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function P(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,P(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 i=w(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function $(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){while(++r<e.length)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:D}}function D(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},a34a:function(e,t,n){e.exports=n("bbdd")},a9ff:function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n("a34a")),o=n("37dc"),a=s(n("8e4d"));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){c(o,r,i,a,s,"next",e)}function s(e){c(o,r,i,a,s,"throw",e)}a(void 0)}))}}function l(e){return h(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 h(e){if(Array.isArray(e))return m(e)}function p(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,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function v(e,t){if(e){if("string"===typeof e)return m(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)?m(e,t):void 0}}function m(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 g(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&&g(e.prototype,t),n&&g(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 k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(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&&C(e,t)}function O(e){var t=I();return function(){var n,r=$(e);if(t){var i=$(this).constructor;n=Reflect.construct(r,arguments,i)}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 T(e){var t="function"===typeof Map?new Map:void 0;return T=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 P(e,arguments,$(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),C(n,e)},T(e)}function P(e,t,n){return P=I()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),o=new i;return n&&C(o,n.prototype),o},P.apply(null,arguments)}function I(){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 C(e,t){return C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},C(e,t)}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$(e)}function D(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function j(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=j((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={},i=r.lib={},o=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.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,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){t=t;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,t)}}),s=r.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,u=e.min(4*c,i);if(c){for(var l=0;l<c;l+=o)this._doProcessBlock(r,l);var f=r.splice(0,c);n.sigBytes-=u}return new a.init(f,u)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=f.extend({cfg:o.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=(j((function(e,t){var n;e.exports=(n=L,function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],h=e[t+2],p=e[t+3],v=e[t+4],m=e[t+5],g=e[t+6],y=e[t+7],_=e[t+8],b=e[t+9],w=e[t+10],k=e[t+11],x=e[t+12],O=e[t+13],S=e[t+14],A=e[t+15],T=o[0],P=o[1],I=o[2],E=o[3];T=u(T,P,I,E,a,7,s[0]),E=u(E,T,P,I,c,12,s[1]),I=u(I,E,T,P,h,17,s[2]),P=u(P,I,E,T,p,22,s[3]),T=u(T,P,I,E,v,7,s[4]),E=u(E,T,P,I,m,12,s[5]),I=u(I,E,T,P,g,17,s[6]),P=u(P,I,E,T,y,22,s[7]),T=u(T,P,I,E,_,7,s[8]),E=u(E,T,P,I,b,12,s[9]),I=u(I,E,T,P,w,17,s[10]),P=u(P,I,E,T,k,22,s[11]),T=u(T,P,I,E,x,7,s[12]),E=u(E,T,P,I,O,12,s[13]),I=u(I,E,T,P,S,17,s[14]),T=l(T,P=u(P,I,E,T,A,22,s[15]),I,E,c,5,s[16]),E=l(E,T,P,I,g,9,s[17]),I=l(I,E,T,P,k,14,s[18]),P=l(P,I,E,T,a,20,s[19]),T=l(T,P,I,E,m,5,s[20]),E=l(E,T,P,I,w,9,s[21]),I=l(I,E,T,P,A,14,s[22]),P=l(P,I,E,T,v,20,s[23]),T=l(T,P,I,E,b,5,s[24]),E=l(E,T,P,I,S,9,s[25]),I=l(I,E,T,P,p,14,s[26]),P=l(P,I,E,T,_,20,s[27]),T=l(T,P,I,E,O,5,s[28]),E=l(E,T,P,I,h,9,s[29]),I=l(I,E,T,P,y,14,s[30]),T=f(T,P=l(P,I,E,T,x,20,s[31]),I,E,m,4,s[32]),E=f(E,T,P,I,_,11,s[33]),I=f(I,E,T,P,k,16,s[34]),P=f(P,I,E,T,S,23,s[35]),T=f(T,P,I,E,c,4,s[36]),E=f(E,T,P,I,v,11,s[37]),I=f(I,E,T,P,y,16,s[38]),P=f(P,I,E,T,w,23,s[39]),T=f(T,P,I,E,O,4,s[40]),E=f(E,T,P,I,a,11,s[41]),I=f(I,E,T,P,p,16,s[42]),P=f(P,I,E,T,g,23,s[43]),T=f(T,P,I,E,b,4,s[44]),E=f(E,T,P,I,x,11,s[45]),I=f(I,E,T,P,A,16,s[46]),T=d(T,P=f(P,I,E,T,h,23,s[47]),I,E,a,6,s[48]),E=d(E,T,P,I,y,10,s[49]),I=d(I,E,T,P,S,15,s[50]),P=d(P,I,E,T,m,21,s[51]),T=d(T,P,I,E,x,6,s[52]),E=d(E,T,P,I,p,10,s[53]),I=d(I,E,T,P,w,15,s[54]),P=d(P,I,E,T,c,21,s[55]),T=d(T,P,I,E,_,6,s[56]),E=d(E,T,P,I,A,10,s[57]),I=d(I,E,T,P,g,15,s[58]),P=d(P,I,E,T,O,21,s[59]),T=d(T,P,I,E,v,6,s[60]),E=d(E,T,P,I,k,10,s[61]),I=d(I,E,T,P,h,15,s[62]),P=d(P,I,E,T,b,21,s[63]),o[0]=o[0]+T|0,o[1]=o[1]+P|0,o[2]=o[2]+I|0,o[3]=o[3]+E|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function l(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)})),j((function(e,t){var n,r,i;e.exports=(r=(n=L).lib.Base,i=n.enc.Utf8,void(n.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,c=a.words,u=0;u<n;u++)s[u]^=1549556828,c[u]^=909522486;o.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))})),j((function(e,t){e.exports=L.HmacMD5}))),M="FUNCTION",U="OBJECT",N="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 H,V=!1,z="mp-weixin";switch(z){case"h5":H="web";break;case"app-plus":H="app";break;default:H=z}var K=B(void 0),W=B([]),J=!0,Y="";try{var G=n("bdf8").default||n("bdf8");Y=G.appid}catch(qn){}var X={};function Q(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"===H&&(X=r._globalUniCloudObj?r._globalUniCloudObj:r._globalUniCloudObj={});var Z=["invoke","success","fail","complete"],ee=Q("_globalUniCloudInterceptor");function te(e,t){ee[e]||(ee[e]={}),q(t)&&Object.keys(t).forEach((function(n){Z.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){Z.indexOf(n)>-1&&function(e,t,n){var r=ee[e][t];if(r){var i=r.indexOf(n);i>-1&&r.splice(i,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 ie(e,t){return ee[e]&&ee[e][t]||[]}var oe=Q("_globalUniCloudListener"),ae="response",se="needLogin",ce="refreshToken",ue="clientdb",le="cloudfunction",fe="cloudobject";function de(e){return oe[e]||(oe[e]=[]),oe[e]}function he(e,t){var n=de(e);n.includes(t)||n.push(t)}function pe(e,t){var n=de(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function ve(e,t){for(var n=de(e),r=0;r<n.length;r++)(0,n[r])(t)}function me(e,t){return t?function(n){var r=this,i=!1;if("callFunction"===t){var o=n&&n.type||M;i=o!==M}var a,s="callFunction"===t&&!i;a=this.isReady?Promise.resolve():this.initUniCloud,n=n||{};var c=a.then((function(){return i?Promise.resolve():re(ie(t,"invoke"),n)})).then((function(){return e.call(r,n)})).then((function(e){return i?Promise.resolve(e):re(ie(t,"success"),e).then((function(){return re(ie(t,"complete"),e)})).then((function(){return s&&ve(ae,{type:le,content:e}),Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):re(ie(t,"fail"),e).then((function(){return re(ie(t,"complete"),e)})).then((function(){return ve(ae,{type:le,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&&ve(ae,{type:le,content:e})}),(function(e){n.fail&&n.fail(e),n.complete&&n.complete(e),s&&ve(ae,{type:le,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 ge,ye=function(e){x(n,e);var t=O(n);function n(e){var r;return k(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}(T(Error));function _e(){var e,t;try{if(r.getLaunchOptionsSync){if(r.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var n=r.getLaunchOptionsSync(),i=n.scene,o=n.channel;e=o,t=i}}catch(e){}return{channel:e,scene:t}}function be(){var e=r.getLocale&&r.getLocale()||"en";if(ge)return b(b({},ge),{},{locale:e,LOCALE:e});for(var t=r.getSystemInfoSync(),n=t.deviceId,i=t.osName,o=t.uniPlatform,a=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 ge=b(b({PLATFORM:o,OS:i,APPID:a,DEVICEID:n},_e()),t),b(b({},ge),{},{locale:e,LOCALE:e})}var we,ke={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={}),V&&"web"===H&&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 ye({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));var i=e.data;if(i.error)return r(new ye({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,n(i)}}))}))}},xe={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()}},Oe={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},Se=(0,o.initVueI18n)({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:Oe,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:Oe},"zh-Hans"),Ae=Se.t,Te=function(){function e(t){k(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(Ae("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=xe,this._getAccessTokenPromise=null,this._getAccessTokenPromiseStatus=null}return y(e,[{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return ke.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"]=ke.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"]=ke.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 ye({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,i=e.name,o=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:o,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):c(new ye({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new ye({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,i=e.fileType,o=void 0===i?"image":i,a=e.onUploadProgress,s=e.config;if("string"!==F(r))throw new ye({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(r=r.trim()))throw new ye({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});if(/:\/\//.test(r))throw new ye({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 i={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:o};return t.uploadFileToOSS(Object.assign({},i,{onUploadProgress:a}))})).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 ye({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 ye({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"hasAccessToken",get:function(){return!!this.accessToken}}]),e}(),Pe={init:function(e){var t=new Te(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Ie="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(we||(we={}));var Ee,Ce=function(){},$e=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new ye({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 De(e){return void 0===e}function je(e){return"[object Null]"===Object.prototype.toString.call(e)}function Le(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),i=p(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.isMatch,s=o.genAdapter,c=o.runtime;if(a())return{adapter:s(),runtime:c}}}catch(u){i.e(u)}finally{i.f()}}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Ee||(Ee={}));var Re={adapter:null,runtime:void 0},Me=["anonymousUuidKey"],Ue=function(e){x(n,e);var t=O(n);function n(){var e;return k(this,n),e=t.call(this),Re.adapter.root.tcbObject||(Re.adapter.root.tcbObject={}),e}return y(n,[{key:"setItem",value:function(e,t){Re.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Re.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Re.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Re.adapter.root.tcbObject}}]),n}(Ce);function Ne(e,t){switch(e){case"local":return t.localStorage||new Ue;case"none":return new Ue;default:return t.sessionStorage||new Ue}}var Fe=function(){function e(t){if(k(this,e),!this._storage){this._persistence=Re.adapter.primaryStorage||t.persistence,this._storage=Ne(this._persistence,Re.adapter);var n="access_token_".concat(t.env),r="access_token_expire_".concat(t.env),i="refresh_token_".concat(t.env),o="anonymous_uuid_".concat(t.env),a="login_type_".concat(t.env),s="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:i,anonymousUuidKey:o,loginTypeKey:a,userInfoKey:s}}}return y(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=Ne(e,Re.adapter);for(var r in this.keys){var i=this.keys[r];if(!t||!Me.includes(r)){var o=this._storage.getItem(i);De(o)||je(o)||(n.setItem(i,o),this._storage.removeItem(i))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var r={version:n||"localCachev1",content:t},i=JSON.stringify(r);try{this._storage.setItem(e,i)}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}(),qe={},Be={};function He(e){return qe[e]}var Ve=function e(t,n){k(this,e),this.data=n||null,this.name=t},ze=function(e){x(n,e);var t=O(n);function n(e,r){var i;return k(this,n),i=t.call(this,"error",{error:e,data:r}),i.error=e,i}return n}(Ve),Ke=new(function(){function e(){k(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 ze)return console.error(e.error),this;var n="string"==typeof e?new Ve(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var i,o=this._listeners[r]?l(this._listeners[r]):[],a=p(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.call(this,n)}}catch(c){a.e(c)}finally{a.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function We(e,t){Ke.on(e,t)}function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ke.fire(e,t)}function Ye(e,t){Ke.off(e,t)}var Ge,Xe="loginStateChanged",Qe="loginStateExpire",Ze="loginTypeChanged",et="anonymousConverted",tt="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"}(Ge||(Ge={}));var nt=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],rt={"X-SDK-Version":"1.3.5"};function it(e,t,n){var r=e[t];e[t]=function(t){var i={},o={};n.forEach((function(n){var r=n.call(e,t),a=r.data,s=r.headers;Object.assign(i,a),Object.assign(o,s)}));var a=t.data;return a&&function(){var e;if(e=a,"[object FormData]"!==Object.prototype.toString.call(e))t.data=b(b({},a),i);else for(var n in i)a.append(n,i[n])}(),t.headers=b(b({},t.headers||{}),o),r.call(e,t)}}function ot(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:b(b({},rt),{},{"x-seqid":e})}}var at=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};k(this,e),this.config=n,this._reqClass=new Re.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=He(this.config.env),this._localCache=(t=this.config.env,Be[t]),it(this._reqClass,"post",[ot]),it(this._reqClass,"upload",[ot]),it(this._reqClass,"download",[ot])}return y(e,[{key:"post",value:function(){var e=u(i.default.mark((function e(t){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"upload",value:function(){var e=u(i.default.mark((function e(t){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"download",value:function(){var e=u(i.default.mark((function e(t){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refreshAccessToken",value:function(){var e=u(i.default.mark((function e(){var t,n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),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(i.default.mark((function e(){var t,n,r,o,a,s,c,u,l,f,d,h,p;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey,a=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),c=this._cache.getStore(o),c){e.next=5;break}throw new ye({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(a)!==Ge.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==f){e.next=19;break}return d=this._cache.getStore(s),h=this._cache.getStore(o),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:h});case 17:return p=e.sent,e.abrupt("return",(this.setRefreshToken(p.refresh_token),this._refreshAccessToken()));case 19:Je(Qe),this._cache.removeStore(o);case 20:throw new ye({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",(Je(tt),this._cache.setStore(n,l.data.access_token),this._cache.setStore(r,l.data.access_token_expire+Date.now()),{accessToken:l.data.access_token,accessTokenExpire:l.data.access_token_expire}));case 23:l.data.refresh_token&&(this._cache.removeStore(o),this._cache.setStore(o,l.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAccessToken",value:function(){var e=u(i.default.mark((function e(){var t,n,r,o,a,s,c;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey,this._cache.getStore(o)){e.next=3;break}throw new ye({message:"refresh token不存在,登录状态异常"});case 3:if(a=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(a,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}c=!1;case 12:return e.abrupt("return",(!a||!s||s<Date.now())&&c?this.refreshAccessToken():{accessToken:a,accessTokenExpire:s});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"request",value:function(){var e=u(i.default.mark((function e(t,n,r){var o,a,s,c,u,l,f,d,h,p,v,m,g,y,_,w;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o="x-tcb-trace_".concat(this.config.env),a="application/x-www-form-urlencoded",s=b({action:t,env:this.config.env,dataVersion:"2019-08-16"},n),-1!==nt.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]);a="multipart/form-data"}else for(f in a="application/json",u={},s)void 0!==s[f]&&(u[f]=s[f]);return d={headers:{"content-type":a}},r&&r.onUploadProgress&&(d.onUploadProgress=r.onUploadProgress),h=this._localCache.getStore(o),h&&(d.headers["X-TCB-Trace"]=h),p=n.parse,v=n.inQuery,m=n.search,g={env:this.config.env},p&&(g.parse=!0),v&&(g=b(b({},v),g)),y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),i="";for(var o in n)""===i?!r&&(t+="?"):i+="&",i+="".concat(o,"=").concat(encodeURIComponent(n[o]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(Ie,"//tcb-api.tencentcloudapi.com/web",g),m&&(y+=m),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(o,w),(200===Number(_.status)||200===Number(_.statusCode))&&_.data){e.next=26;break}throw new ye({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(i.default.mark((function e(t){var n,r,o,a=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},e.next=3,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 3:if(r=e.sent,"ACCESS_TOKEN_EXPIRED"!==r.data.code||-1!==nt.indexOf(t)){e.next=13;break}return e.next=7,this.refreshAccessToken();case 7:return e.next=9,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 9:if(o=e.sent,!o.data.code){e.next=12;break}throw new ye({code:o.data.code,message:o.data.message});case 12:return e.abrupt("return",o.data);case 13:if(!r.data.code){e.next=15;break}throw new ye({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,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}}]),e}(),st={};function ct(e){return st[e]}var ut=function(){function e(t){k(this,e),this.config=t,this._cache=He(t.env),this._request=ct(t.env)}return y(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,i=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=u(i.default.mark((function e(){var t,n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,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}(),lt=function(){function e(t){if(k(this,e),!t)throw new ye({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=He(this._envId),this._request=ct(this._envId),this.setUserInfo()}return y(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new ye({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 ye({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=u(i.default.mark((function e(){var t,n,r,o;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,n=t.data,r=!1,o=n.users,e.abrupt("return",(o.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:o,hasPrimaryUid:r}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=u(i.default.mark((function e(t){var n,r,o,a,s,c,u,l;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,o=t.avatarUrl,a=t.province,s=t.country,c=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:o,province:a,country:s,city:c});case 8:u=e.sent,l=u.data,this.setLocalUserInfo(l);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refresh",value:function(){var e=u(i.default.mark((function e(){var t,n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,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}(),ft=function(){function e(t){if(k(this,e),!t)throw new ye({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=He(t);var n=this._cache.keys,r=n.refreshTokenKey,i=n.accessTokenKey,o=n.accessTokenExpireKey,a=this._cache.getStore(r),s=this._cache.getStore(i),c=this._cache.getStore(o);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:c},this.user=new lt(t)}return y(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===Ge.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===Ge.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===Ge.WECHAT||this.loginType===Ge.WECHAT_OPEN||this.loginType===Ge.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),dt=function(e){x(n,e);var t=O(n);function n(){return k(this,n),t.apply(this,arguments)}return y(n,[{key:"signIn",value:function(){var e=u(i.default.mark((function e(){var t,n,r,o,a,s,c;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),t=this._cache.keys,n=t.anonymousUuidKey,r=t.refreshTokenKey,o=this._cache.getStore(n)||void 0,a=this._cache.getStore(r)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:o,refresh_token:a});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 Je(Xe),Je(Ze,{env:this.config.env,loginType:Ge.ANONYMOUS,persistence:"local"}),c=new ft(this.config.env),e.next=19,c.user.refresh();case 19:return e.abrupt("return",c);case 20:throw new ye({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(i.default.mark((function e(t){var n,r,o,a,s,c;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,o=n.refreshTokenKey,a=this._cache.getStore(r),s=this._cache.getStore(o),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:a,refresh_token:s,ticket:t});case 7:if(c=e.sent,!c.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(c.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return Je(et,{env:this.config.env}),Je(Ze,{loginType:Ge.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:c.refresh_token}});case 16:throw new ye({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,Ge.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(ut),ht=function(e){x(n,e);var t=O(n);function n(){return k(this,n),t.apply(this,arguments)}return y(n,[{key:"signIn",value:function(){var e=u(i.default.mark((function e(t){var n,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ye({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 Je(Xe),Je(Ze,{env:this.config.env,loginType:Ge.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new ft(this.config.env));case 15:throw new ye({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),n}(ut),pt=function(e){x(n,e);var t=O(n);function n(){return k(this,n),t.apply(this,arguments)}return y(n,[{key:"signIn",value:function(){var e=u(i.default.mark((function e(t,n){var r,o,a,s,c;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ye({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(o=e.sent,a=o.refresh_token,s=o.access_token,c=o.access_token_expire,!a){e.next=22;break}if(this.setRefreshToken(a),!s||!c){e.next=15;break}this.setAccessToken(s,c),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return Je(Xe),Je(Ze,{env:this.config.env,loginType:Ge.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new ft(this.config.env));case 22:throw o.code?new ye({code:o.code,message:"邮箱登录失败: ".concat(o.message)}):new ye({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(i.default.mark((function e(t){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"resetPasswordWithToken",value:function(){var e=u(i.default.mark((function e(t,n){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),n}(ut),vt=function(e){x(n,e);var t=O(n);function n(){return k(this,n),t.apply(this,arguments)}return y(n,[{key:"signIn",value:function(){var e=u(i.default.mark((function e(t,n){var r,o,a,s,c;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ye({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:Ge.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(o=e.sent,a=o.refresh_token,s=o.access_token_expire,c=o.access_token,!a){e.next=23;break}if(this.setRefreshToken(a),!c||!s){e.next=16;break}this.setAccessToken(c,s),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return Je(Xe),Je(Ze,{env:this.config.env,loginType:Ge.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new ft(this.config.env));case 23:throw o.code?new ye({code:o.code,message:"用户名密码登录失败: ".concat(o.message)}):new ye({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),n}(ut),mt=function(){function e(t){k(this,e),this.config=t,this._cache=He(t.env),this._request=ct(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),We(Ze,this._onLoginTypeChanged)}return y(e,[{key:"anonymousAuthProvider",value:function(){return new dt(this.config)}},{key:"customAuthProvider",value:function(){return new ht(this.config)}},{key:"emailAuthProvider",value:function(){return new pt(this.config)}},{key:"usernameAuthProvider",value:function(){return new vt(this.config)}},{key:"signInAnonymously",value:function(){var e=u(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new dt(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(i.default.mark((function e(t,n){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new pt(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 vt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=u(i.default.mark((function e(t){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new dt(this.config)),We(et,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(i.default.mark((function e(){var t,n,r,o,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==Ge.ANONYMOUS){e.next=2;break}throw new ye({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,o=t.accessTokenExpireKey,a=this._cache.getStore(n),a){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:a});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(o),Je(Xe),Je(Ze,{env:this.config.env,loginType:Ge.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(i.default.mark((function e(t,n){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password: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(i.default.mark((function e(t){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onLoginStateChanged",value:function(e){var t=this;We(Xe,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){We(Qe,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){We(tt,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){We(et,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;We(Ze,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=u(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hasLoginState",value:function(){var e=this._cache.keys.refreshTokenKey;return this._cache.getStore(e)?new ft(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var e=u(i.default.mark((function e(t){var n,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ye({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(i.default.mark((function e(t){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new ht(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,i=t.env;i===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}(),gt=function(e,t){t=t||$e();var n=ct(this.config.env),r=e.cloudPath,i=e.filePath,o=e.onUploadProgress,a=e.fileType,s=void 0===a?"image":a;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var a=e.data,c=a.url,u=a.authorization,l=a.token,f=a.fileId,d=a.cosFileId,h=e.requestId,p={key:r,signature:u,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};n.upload({url:c,data:p,file:i,name:r,fileType:s,onUploadProgress:o}).then((function(e){201===e.statusCode?t(null,{fileID:f,requestId:h}):t(new ye({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},yt=function(e,t){t=t||$e();var n=ct(this.config.env),r=e.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},_t=function(e,t){var n=e.fileList;if(t=t||$e(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,i=p(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(!o||"string"!=typeof o)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var a={fileid_list:n};return ct(this.config.env).send("storage.batchDeleteFile",a).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},bt=function(e,t){var n=e.fileList;t=t||$e(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,i=[],o=p(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;"object"==typeof a?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?i.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(c){o.e(c)}finally{o.f()}var s={file_list:i};return ct(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},wt=function(){var e=u(i.default.mark((function e(t,n){var r,o,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,bt.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(o=e.sent.fileList[0],"SUCCESS"===o.code){e.next=6;break}return e.abrupt("return",n?n(o):new Promise((function(e){e(o)})));case 6:if(a=ct(this.config.env),s=o.download_url,s=encodeURI(s),n){e.next=10;break}return e.abrupt("return",a.download({url:s}));case 10:return e.t0=n,e.next=13,a.download({url:s});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),kt=function(e,t){var n,r=e.name,i=e.data,o=e.query,a=e.parse,s=e.search,c=t||$e();try{n=i?JSON.stringify(i):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new ye({code:"PARAM_ERROR",message:"函数名不能为空"}));var u={inQuery:o,parse:a,search:s,function_name:r,request_data:n};return ct(this.config.env).send("functions.invokeFunction",u).then((function(e){if(e.code)c(null,e);else{var t=e.data.response_data;if(a)c(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),c(null,{result:t,requestId:e.requestId})}catch(e){c(new ye({message:"response data must be json"}))}}return c.promise})).catch((function(e){c(e)})),c.promise},xt={timeout:15e3,persistence:"session"},Ot={},St=function(){function e(t){k(this,e),this.config=t||this.config,this.authObj=void 0}return y(e,[{key:"init",value:function(t){switch(Re.adapter||(this.requestClient=new Re.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=b(b({},xt),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||Re.adapter.primaryStorage||xt.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;qe[t]=new Fe(e),Be[t]=new Fe(b(b({},e),{},{persistence:"local"}))}(this.config),n=this.config,st[n.env]=new at(n),this.authObj=new mt(this.config),this.authObj}},{key:"on",value:function(e,t){return We.apply(this,[e,t])}},{key:"off",value:function(e,t){return Ye.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return kt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return _t.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return bt.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return wt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return gt.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return yt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Ot[e.name]=e}},{key:"invokeExtension",value:function(){var e=u(i.default.mark((function e(t,n){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=Ot[t],r){e.next=3;break}throw new ye({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=Le(e)||{},n=t.adapter,r=t.runtime;n&&(Re.adapter=n),r&&(Re.runtime=r)}}]),e}(),At=new St;function Tt(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),i="";for(var o in n)""===i?!r&&(t+="?"):i+="&",i+=o+"="+encodeURIComponent(n[o]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var Pt=function(){function e(){k(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,i){xe.request({url:Tt("https:",t),data:n,method:"POST",header:r,success:function(t){e(t)},fail:function(e){i(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,i=e.file,o=e.data,a=e.headers,s=e.fileType,c=xe.uploadFile({url:Tt("https:",r),name:"file",formData:Object.assign({},o),filePath:i,fileType:s,header:a,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(n.statusCode=parseInt(o.success_action_status,10)),t(n)},fail:function(e){V&&"mp-alipay"===H&&console.warn("支付宝小程序开发工具上传腾讯云时无法准确判断是否上传成功,请使用真机测试"),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}(),It={setItem:function(e,t){xe.setStorageSync(e,t)},getItem:function(e){return xe.getStorageSync(e)},removeItem:function(e){xe.removeStorageSync(e)},clear:function(){xe.clearStorageSync()}},Et={genAdapter:function(){return{root:{},reqClass:Pt,localStorage:It,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};At.useAdapters(Et);var Ct=At,$t=Ct.init;Ct.init=function(e){e.env=e.spaceId;var t=$t.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]=me(t[e]).bind(t)})),t},t.customAuth=t.auth,t};var Dt=Ct;function jt(){return{token:xe.getStorageSync("uni_id_token")||xe.getStorageSync("uniIdToken"),tokenExpired:xe.getStorageSync("uni_id_token_expired")}}function Lt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&xe.setStorageSync("uni_id_token",t),n&&xe.setStorageSync("uni_id_token_expired",n)}function Rt(){V&&"web"===H&&r.getStorageSync("__LAST_DCLOUD_APPID")!==Y&&(r.setStorageSync("__LAST_DCLOUD_APPID",Y),console.warn("检测到当前项目与上次运行到此端口的项目不一致,自动清理uni-id保存的token信息(仅开发调试时生效)"),xe.removeStorageSync("uni_id_token"),xe.removeStorageSync("uniIdToken"),xe.removeStorageSync("uni_id_token_expired"))}var Mt=function(e){x(n,e);var t=O(n);function n(){return k(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"]=ke.sign(n,this.config.clientSecret);var i=be();r["x-client-info"]=encodeURIComponent(JSON.stringify(i));var o=jt(),a=o.token;return r["x-client-token"]=a,{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,i=e.name,o=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:o,fileType:a,success:function(t){t&&t.statusCode<400?e(t):c(new ye({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new ye({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,i=e.cloudPath,o=e.fileType,a=void 0===o?"image":o,s=e.onUploadProgress;if(!i)throw new ye({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:i}).then((function(e){var i=e.result,o=i.url,c=i.formData,u=i.name;t=e.result.fileUrl;var l={url:o,formData:c,name:u,filePath:r,fileType:a};return n.uploadFileToOSS(Object.assign({},l,{onUploadProgress:s}))})).then((function(){return n.reportOSSUpload({cloudPath:i})})).then((function(e){return new Promise((function(n,i){e.success?n({success:!0,filePath:r,fileID:t}):i(new ye({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}(Te),Ut={init:function(e){var t=new Mt(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 Nt(e){var t,n=e.data;t=be();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var i=jt(),o=i.token;o&&(r.uniIdToken=o)}return r}function Ft(e){var t=this,n=e.name,r=e.data,i=this.localAddress,o=this.localPort,a={aliyun:"aliyun",tencent:"tcb"}[this.config.provider],s=this.config.spaceId,c="http://".concat(i,":").concat(o,"/system/check-function"),u="http://".concat(i,":").concat(o,"/cloudfunctions/").concat(n);return new Promise((function(e,t){xe.request({method:"POST",url:c,data:{name:n,platform:H,provider:a,spaceId:s},timeout:3e3,success:function(t){e(t)},fail:function(){e({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=t||{},r=n.code,i=n.message;return{code:0===r?0:r||"SYS_ERR",message:i||"SYS_ERR"}})).then((function(e){var i=e.code,o=e.message;if(0!==i){switch(i){case"MODULE_ENCRYPTED":console.error("此云函数(".concat(n,")依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数"));break;case"FUNCTION_ENCRYPTED":console.error("此云函数(".concat(n,")已加密不可本地调试,自动切换为云端已部署的云函数"));break;case"ACTION_ENCRYPTED":console.error(o||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":var s="连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";throw console.error(s),new Error(s);case"SWITCH_TO_CLOUD":break;default:var c="检测本地调试服务出现错误:".concat(o,",请检查网络环境或重启客户端再试");throw console.error(c),new Error(c)}return t._originCallFunction({name:n,data:r})}return new Promise((function(e,n){var i=Nt.call(t,{data:r});xe.request({method:"POST",url:u,data:{provider:a,platform:H,param:i},success:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.statusCode,i=t.data;return!r||r>=400?n(new ye({code:i.code||"SYS_ERR",message:i.message||"request:fail"})):e({result:i})},fail:function(e){n(new ye({code:e.code||e.errCode||"SYS_ERR",message:e.message||e.errMsg||"request:fail"}))}})}))}))}var qt=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Bt=/[\\^$.*+?()[\]{}|]/g,Ht=RegExp(Bt.source);function Vt(e,t,n){return e.replace(new RegExp((r=t)&&Ht.test(r)?r.replace(Bt,"\\$&"):r,"g"),n);var r}function zt(e){var t=e.functionName,n=e.result,r=e.logPvd;if(this.config.debugLog&&n&&n.requestId){var i=JSON.stringify({spaceId:this.config.spaceId,functionName:t,requestId:n.requestId});console.log("[".concat(r,"-request]").concat(i,"[/").concat(r,"-request]"))}}function Kt(e){var t=e.callFunction,n=function(n){var r=this,i=n.name;n.data=Nt.call(e,{data:n.data});var o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb"}[this.config.provider];return t.call(this,n).then((function(e){return e.errCode=0,zt.call(r,{functionName:i,result:e,logPvd:o}),Promise.resolve(e)}),(function(e){return zt.call(r,{functionName:i,result:e,logPvd:o}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.extraInfo,i=void 0===r?{}:r,o=e.formatter,a=void 0===o?[]:o,s=0;s<a.length;s++){var c=a[s],u=c.rule,l=c.content,f=c.mode,d=n.match(u);if(d){for(var h=l,p=1;p<d.length;p++)h=Vt(h,"{$".concat(p,"}"),d[p]);for(var v in i)h=Vt(h,"{".concat(v,"}"),i[v]);return"replace"===f?h:n+h}}return n}({message:"[".concat(n.name,"]: ").concat(e.message),formatter:qt,extraInfo:{functionName:i}})),Promise.reject(e)}))};e.callFunction=function(t){var r;return V&&e.debugInfo&&!e.debugInfo.forceRemote&&W?(e._originCallFunction||(e._originCallFunction=n),r=Ft.call(this,t)):r=n.call(this,t),Object.defineProperty(r,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),r}}var Wt=Symbol("CLIENT_DB_INTERNAL");function Jt(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Wt,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 i=e[n];return"function"==typeof i?i.bind(e):i}return t.get(e,n,r)}})}function Yt(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 Gt=["db.Geo","db.command","command.aggregate"];function Xt(e,t){return Gt.indexOf("".concat(e,".").concat(t))>-1}function Qt(e){switch(F(e)){case"array":return e.map((function(e){return Qt(e)}));case"object":return e._internalType===Wt||Object.keys(e).forEach((function(t){e[t]=Qt(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Zt(e){return e&&e.content&&e.content.$method}var en=function(){function e(t,n,r){k(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:Qt(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:Qt(t)}),V){var i=r.$db.find((function(e){return"collection"===e.$method})),o=i&&i.$param;o&&1===o.length&&"string"==typeof i.$param[0]&&i.$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=Zt(e),n=Zt(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"===Zt(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=Zt(e),n=Zt(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 tn({$method:"count",$param:Qt(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 tn({$method:"remove",$param:Qt(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 tn({$method:"set",$param:Qt(Array.from(arguments))},e,this._database)}}}]),e}();function tn(e,t,n){return Jt(new en(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),Xt(r,t)?tn({$method:t},e,n):function(){return tn({$method:t,$param:Qt(Array.from(arguments))},e,n)}}})}function nn(e){var t=e.path,n=e.method;return function(){function e(){k(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 rn=function(e){x(n,e);var t=O(n);function n(){return k(this,n),t.apply(this,arguments)}return y(n,[{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,i=e.multiCommand,o=e.queryList;function a(e,t){if(i&&o)for(var n=0;n<o.length;n++){var r=o[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(ie("database","fail"),e).then((function(){return re(ie("database","complete"),e)})).then((function(){return a(null,e),ve(ae,{type:ue,content:e}),Promise.reject(e)}))}var u=re(ie("database","invoke")),l=this._uniClient;return u.then((function(){return l.callFunction({name:"DCloud-clientDB",type:N,data:{action:n,command:r,multiCommand:i}})})).then((function(e){var n=e.result,r=n.code,i=n.message,o=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],h=d.level,p=d.message,v=d.detail,m=console["app"===H&&"warn"===h?"error":h]||console.log,g="[System Info]"+p;v&&(g="".concat(g,"\n详细信息:").concat(v)),m(g)}if(r)return c(new ye({code:r,message:i,requestId:e.requestId}));e.result.errCode=e.result.code,e.result.errMsg=e.result.message,o&&s&&(Lt({token:o,tokenExpired:s}),t._callbackAuth("refreshToken",[{token:o,tokenExpired:s}]),t._callback("refreshToken",[{token:o,tokenExpired:s}]),ve(ce,{token:o,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,i=n.tips;if(r in e.result){var o=e.result[r];Object.defineProperty(e.result,r,{get:function(){return console.warn(i),o}})}},b=0;b<y.length;b++)_(b);return function(e){return re(ie("database","success"),e).then((function(){return re(ie("database","complete"),e)})).then((function(){return a(e,null),ve(ae,{type:ue,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 ye({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;k(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r.isDefault&&(this._dbCallBacks=Q("_globalUniCloudDatabaseCallback")),this.auth=Yt(this._authCallBacks),Object.assign(this,Yt(this._dbCallBacks)),this.env=Jt({},{get:function(e,t){return{$env:t}}}),this.Geo=Jt({},{get:function(e,t){return nn({path:["Geo"],method:t})}}),this.serverDate=nn({path:[],method:"serverDate"}),this.RegExp=nn({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 on(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 Jt(new e(t),{get:function(e,t){return Xt("db",t)?tn({$method:t},null,e):function(){return tn({$method:t,$param:Qt(Array.from(arguments))},null,e)}}})}(rn,{uniClient:e});return this._database=n,n}}var an="token无效,跳转登录页面",sn="token过期,跳转登录页面",cn={TOKEN_INVALID_TOKEN_EXPIRED:sn,TOKEN_INVALID_INVALID_CLIENTID:an,TOKEN_INVALID:an,TOKEN_INVALID_WRONG_TOKEN:an,TOKEN_INVALID_ANONYMOUS_USER:an},un={"uni-id-token-expired":sn,"uni-id-check-token-failed":an,"uni-id-token-not-exist":an,"uni-id-check-device-feature-failed":an};function ln(e,t){var n="";return n=e?"".concat(e,"/").concat(t):t,n.replace(/^\//,"")}function fn(){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(ln(t,e.path)):!1===e.needLogin&&r.push(ln(t,e.path))})),{needLoginPage:n,notNeedLoginPage:r}}function dn(){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=e.split("?")[0].replace(/^\//,"");return n.some((function(e){return e.pagePath===r}))}var hn,pn=!!a.default.uniIdRouter,vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default,t=e.pages,n=void 0===t?[]:t,r=e.subPackages,i=void 0===r?[]:r,o=e.uniIdRouter,s=void 0===o?{}:o,c=e.tabBar,u=void 0===c?{}:c,f=s.loginPage,d=s.needLogin,h=void 0===d?[]:d,p=s.resToLogin,v=void 0===p||p,m=fn(n),g=m.needLoginPage,y=m.notNeedLoginPage,_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var r=e.root,i=e.pages,o=void 0===i?[]:i,a=fn(o,r),s=a.needLoginPage,c=a.notNeedLoginPage;t.push.apply(t,l(s)),n.push.apply(n,l(c))})),{needLoginPage:t,notNeedLoginPage:n}}(i),b=_.needLoginPage,w=_.notNeedLoginPage;return{loginPage:f,routerNeedLogin:h,resToLogin:v,needLoginPage:[].concat(l(g),l(b)),notNeedLoginPage:[].concat(l(y),l(w)),loginPageInTabBar:dn(f,u)}}(),mn=vn.loginPage,gn=vn.routerNeedLogin,yn=vn.resToLogin,_n=vn.needLoginPage,bn=vn.notNeedLoginPage,wn=vn.loginPageInTabBar;function kn(e){var t=function(e){var t=getCurrentPages(),n=t[t.length-1].route,r=e.charAt(0),i=e.split("?")[0];if("/"===r)return i;var o=i.replace(/^\//,"").split("/"),a=n.split("/");a.pop();for(var s=0;s<o.length;s++){var c=o[s];".."===c?a.pop():"."!==c&&a.push(c)}return""===a[0]&&a.shift(),a.join("/")}(e).replace(/^\//,"");return!(bn.indexOf(t)>-1)&&(_n.indexOf(t)>-1||gn.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function xn(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}function On(){for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var n=e[t];r.addInterceptor(n,{invoke:function(e){var t,i=jt(),o=i.token,a=i.tokenExpired;if(o){if(a<Date.now()){var s="uni-id-token-expired";t={errCode:s,errMsg:un[s]}}}else{var c="uni-id-check-token-failed";t={errCode:c,errMsg:un[c]}}if(kn(e.url)&&t){if(t.uniIdRedirectUrl=e.url,de(se).length>0)return setTimeout((function(){ve(se,t)}),0),e.url="",!1;if(!mn)return e;var u=xn(mn,t.uniIdRedirectUrl);if(wn){if("navigateTo"===n||"redirectTo"===n)return setTimeout((function(){r.switchTab({url:u})})),!1}else if("switchTab"===n)return setTimeout((function(){r.navigateTo({url:u})})),!1;e.url=u}return e}})},n=0;n<e.length;n++)t(n)}function Sn(){this.onResponse((function(e){var t=e.type,n=e.content,i=!1;switch(t){case"cloudobject":i=function(e){var t=e.errCode;return t in un}(n);break;case"clientdb":i=function(e){var t=e.errCode;return t in cn}(n)}i&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=de(se),n=getCurrentPages(),i=n[n.length-1],o=i&&i.$page&&i.$page.fullPath;if(t.length>0)return ve(se,Object.assign({uniIdRedirectUrl:o},e));mn&&r.navigateTo({url:xn(mn,o)})}(n)}))}function An(e){e.onNeedLogin=function(e){he(se,e)},e.offNeedLogin=function(e){pe(se,e)},pn&&(Q("uni-cloud-status").needLoginInit||(Q("uni-cloud-status").needLoginInit=!0,function t(){var n=getCurrentPages();n&&n[0]?On.call(e):setTimeout((function(){t()}),30)}(),yn&&Sn.call(e)))}function Tn(e){!function(e){e.onResponse=function(e){he(ae,e)},e.offResponse=function(e){pe(ae,e)}}(e),An(e),function(e){e.onRefreshToken=function(e){he(ce,e)},e.offRefreshToken=function(e){pe(ce,e)}}(e)}var Pn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",In=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function En(){var e,t,n=jt().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(hn(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}hn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!In.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,i="",o=0;o<e.length;)t=Pn.indexOf(e.charAt(o++))<<18|Pn.indexOf(e.charAt(o++))<<12|(n=Pn.indexOf(e.charAt(o++)))<<6|(r=Pn.indexOf(e.charAt(o++))),i+=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 i}:atob;var Cn=j((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function o(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 a(e,t,r){var i=r.onChooseFile,o=r.onUploadProgress;return t.then((function(e){if(i){var t=i(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,i=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var o=t.tempFiles,a=o.length,s=0;return new Promise((function(n){for(;s<r;)c();function c(){var r=s++;if(r>=a)!o.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var u=o[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,i&&i(e)}}).then((function(e){u.url=e.fileID,r<a&&c()})).catch((function(e){u.errMsg=e.errMsg||e.message,r<a&&c()}))}}}))}(e,t,5,o)}))}t.initChooseAndUploadFile=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?a(e,function(e){var t=e.count,n=e.sizeType,a=e.sourceType,s=void 0===a?["album","camera"]:a,c=e.extension;return new Promise((function(e,a){r.chooseImage({count:t,sizeType:n,sourceType:s,extension:c,success:function(t){e(o(t,"image"))},fail:function(e){a({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(t),t):"video"===t.type?a(e,function(e){var t=e.camera,n=e.compressed,a=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:a,sourceType:c,extension:u,success:function(t){var n=t.tempFilePath,r=t.duration,i=t.size,a=t.height,s=t.width;e(o({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:i,type:t.tempFile&&t.tempFile.type||"",width:s,height:a,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(t),t):a(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,a){var s=r.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(s=wx.chooseMessageFile),"function"!=typeof s)return a({errMsg:i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});s({type:"all",count:t,extension:n,success:function(t){e(o(t))},fail:function(e){a({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}(t),t)}}})),$n=D(Cn),Dn="manual";function jn(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!==Dn){for(var r=!1,i=[],o=2;o<t.length;o++)t[o]!==n[o]&&(i.push(t[o]),r=!0);t[0]!==n[0]&&(e.mixinDatacomPage.current=e.pageCurrent),e.mixinDatacomPage.size=e.pageSize,e.onMixinDatacomPropsChange(r,i)}}))},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,i=t.success,o=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,o=n.data,a=n.count;e.getcount&&(e.mixinDatacomPage.count=a),e.mixinDatacomHasMore=o.length<e.pageSize;var s=r?o.length?o[0]:void 0:o;e.mixinDatacomResData=s,i&&i(s)})).catch((function(t){e.mixinDatacomLoading=!1,e.mixinDatacomErrorMessage=t,o&&o(t)})))},mixinDatacomGet:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.database(this.spaceInfo),i=n.action||this.action;i&&(r=r.action(i));var o=n.collection||this.collection;r=Array.isArray(o)?(t=r).collection.apply(t,l(o)):r.collection(o);var a=n.where||this.where;a&&Object.keys(a).length&&(r=r.where(a));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 h=void 0!==n.pageCurrent?n.pageCurrent:this.mixinDatacomPage.current,p=void 0!==n.pageSize?n.pageSize:this.mixinDatacomPage.size,v=void 0!==n.getcount?n.getcount:this.getcount,m=void 0!==n.gettree?n.gettree:this.gettree,g=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 m&&(y.getTree=_),g&&(y.getTreePath=_),r=r.skip(p*(h-1)).limit(p).get(y),r}}}}function Ln(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),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var o=n,a=o.customUI,s=o.loadingOptions,c=o.errorOptions,l=!a;return new Proxy({},{get:function(n,o){return function(){var n=u(i.default.mark((function n(){var f,d,h,p,v,m,g,y,_,w,k,x=arguments;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:for(l&&r.showLoading({title:s.title,mask:s.mask}),d=x.length,h=new Array(d),p=0;p<d;p++)h[p]=x[p];return n.prev=2,n.next=5,e.callFunction({name:t,type:U,data:{method:o,params:h}});case 5:f=n.sent,n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](2),f={result:n.t0};case 11:if(v=f.result||{},m=v.errCode,g=v.errMsg,y=v.newToken,l&&r.hideLoading(),y&&y.token&&y.tokenExpired&&(Lt(y),ve(ce,b({},y))),!m){n.next=28;break}if(!l){n.next=26;break}if("toast"!==c.type){n.next=18;break}r.showToast({title:g,icon:"none"}),n.next=26;break;case 18:if("modal"===c.type){n.next=20;break}throw new Error("Invalid errorOptions.type: ".concat(c.type));case 20:return n.next=22,u(i.default.mark((function e(){var t,n,o,a,s,c,u=arguments;return i.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,o=t.content,a=t.showCancel,s=t.cancelText,c=t.confirmText,e.abrupt("return",new Promise((function(e,t){r.showModal({title:n,content:o,showCancel:a,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:g,showCancel:c.retry,cancelText:"取消",confirmText:c.retry?"重试":"确定"});case 22:if(_=n.sent,w=_.confirm,!c.retry||!w){n.next=26;break}return n.abrupt("return",a.apply(void 0,h));case 26:throw k=new ye({code:m,message:g,requestId:f.requestId}),k.detail=f.result,ve(ae,{type:fe,content:k}),k;case 28:return n.abrupt("return",(ve(ae,{type:fe,content:f.result}),f.result));case 29:case"end":return n.stop()}}),n,null,[[2,8]])})));function a(){return n.apply(this,arguments)}return a}()}})}}function Rn(e,t){return Mn.apply(this,arguments)}function Mn(){return Mn=u(i.default.mark((function e(t,n){var r,o,a;return i.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,a={url:r,timeout:500},new Promise((function(e,t){xe.request(b(b({},a),{},{success:function(t){e(t)},fail:function(e){t(e)}}))}));case 4:return o=e.sent,e.abrupt("return",!(!o.data||0!==o.data.code));case 8:return e.prev=8,e.t0=e["catch"](1),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),Mn.apply(this,arguments)}function Un(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 o=e.auth();e.initUniCloudStatus="pending",e.initUniCloud=n.then((function(){return o.getLoginState()})).then((function(e){return e?Promise.resolve():o.signInAnonymously()})).then((function(){if(!V)return Promise.resolve();if("app"===H&&"ios"===r.getSystemInfoSync().osName){var t=r.getSystemInfoSync(),n=t.osName,o=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}(o)>=14&&console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发模式生效,发行模式会连接uniCloud云端服务)")}if(V&&e.debugInfo){var a=e.debugInfo,s=a.address,c=a.servePort;return function(){var e=u(i.default.mark((function e(t,n){var r,o,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=0;case 1:if(!(o<t.length)){e.next=11;break}return a=t[o],e.next=5,Rn(a,n);case 5:if(!e.sent){e.next=8;break}return r=a,e.abrupt("break",11);case 8:o++,e.next=1;break;case 11:return e.abrupt("return",{address:r,port:n});case 12:case"end":return e.stop()}}),e)})));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(!V)return Promise.resolve();var i=console["app"===H?"error":"warn"];if(n)e.localAddress=n,e.localPort=r;else if(e.debugInfo){var o="";"remote"===e.debugInfo.initialLaunchType?(e.debugInfo.forceRemote=!0,o="当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs"):o="无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs","web"===H&&(o+="\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"),0===H.indexOf("mp-")&&(o+="\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"),i(o)}})).then((function(){Rt(),e.isReady=!0,e.initUniCloudStatus="fulfilled"})).catch((function(t){console.error(t),e.initUniCloudStatus="rejected"}))}}var Nn=new(function(){function e(){k(this,e)}return y(e,[{key:"init",value:function(e){var t={},n=V&&("web"===H&&navigator.userAgent.indexOf("HBuilderX")>0||"app"===H);switch(e.provider){case"tcb":case"tencent":t=Dt.init(Object.assign(e,{debugLog:n}));break;case"aliyun":t=Pe.init(Object.assign(e,{debugLog:n}));break;case"private":t=Ut.init(Object.assign(e,{debugLog:n}));break;default:throw new Error("未提供正确的provider参数")}var r=K;return V&&r&&!r.code&&(t.debugInfo=r),Un(t),t.reInit=function(){Un(this)},Kt(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),on(t),function(e){e.getCurrentUserInfo=En,e.chooseAndUploadFile=$n.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return jn(e)}}),e.importObject=Ln(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]=me(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=W,t={};if(1===e.length)t=e[0],Nn=Nn.init(t),Nn.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){Nn[e]=function(){return console.error(n),Promise.reject(new ye({code:"SYS_ERR",message:n}))}}))}Object.assign(Nn,{get mixinDatacom(){return jn(Nn)}}),Tn(Nn),Nn.addInterceptor=te,Nn.removeInterceptor=ne,V&&"web"===H&&(window.uniCloud=Nn)})();var Fn=Nn;t.default=Fn}).call(this,n("c8ba"),n("543d")["default"])},ad75:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n("093e")),i=a(n("b520")),o=a(n("be73"));function a(e){return e&&e.__esModule?e:{default:e}}var s={en:r.default,"zh-Hans":i.default,"zh-Hant":o.default};t.default=s},b14e: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},b520:function(e){e.exports=JSON.parse('{"uni-search-bar.cancel":"cancel","uni-search-bar.placeholder":"请输入搜索内容"}')},b78f:function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}')},bbdd:function(e,t,n){var r=function(){return this||"object"===typeof self&&self}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("96cf"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(a){r.regeneratorRuntime=void 0}},bdf8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={appid:"__UNI__C76B472"};t.default=r},be04: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-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"}')},be73:function(e){e.exports=JSON.parse('{"uni-search-bar.cancel":"cancel","uni-search-bar.placeholder":"請輸入搜索內容"}')},c099:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n("fcfc")),i=a(n("0116")),o=a(n("b78f"));function a(e){return e&&e.__esModule?e:{default:e}}var s={en:r.default,"zh-Hans":i.default,"zh-Hant":o.default};t.default=s},c8ba: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},cea2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBind=i,t.getInfo=o,t.usernameLogin=a,t.getMaterialGroupList=s,t.getPurchaseByMaterialIdList=c,t.addBatch=u;var r=n("dc02");function i(e){return(0,r.request)("/wx/login/isBind",e)}function o(e){return(0,r.request)("/wx/login/getUserInfo",e)}function a(e){return(0,r.request)("/wx/login/usernameLogin",e)}function s(e){return(0,r.request)("/wx/createQrcode/getMaterialGroupList",e)}function c(e){return(0,r.request)("/wx/createQrcode/getPurchaseByMaterialIdList",e)}function u(e){return(0,r.request)("/wx/createQrcode/addBatch",e)}},d2c1: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 i(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 o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(t.date,t.selected),i=t.startDate,o=t.endDate,a=t.range;r(this,e),this.date=this.getDate(new Date),this.selected=n||[],this.startDate=i,this.endDate=o,this.range=a,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}return o(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 i=r.getFullYear(),o=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,a=r.getDate()<10?"0"+r.getDate():r.getDate();return{fullDate:i+"-"+o+"-"+a,year:i,month:o,date:a,day:r.getDay()}}},{key:"_getLastMonthDays",value:function(e,t){for(var n=[],r=e;r>0;r--){var i=new Date(t.year,t.month-1,1-r).getDate();n.push({date:i,month:t.month-1,disable:!0})}return n}},{key:"_currentMonthDys",value:function(e,t){for(var n=this,r=[],i=this.date.fullDate,o=function(e){var o=t.year+"-"+(t.month,t.month+"-")+(e<10?"0"+e:e),a=i===o,s=n.selected&&n.selected.find((function(e){if(n.dateEqual(o,e.date))return e})),c=!0,u=!0;n.startDate&&(c=n.dateCompare(n.startDate,o)),n.endDate&&(u=n.dateCompare(o,n.endDate));var l=n.multipleStatus.data,f=!1,d=-1;n.range&&(l&&(d=l.findIndex((function(e){return n.dateEqual(e,o)}))),-1!==d&&(f=!0));var h={fullDate:o,year:t.year,date:e,multiple:!!n.range&&f,beforeMultiple:n.isLogicBefore(o,n.multipleStatus.before,n.multipleStatus.after),afterMultiple:n.isLogicAfter(o,n.multipleStatus.before,n.multipleStatus.after),month:t.month,disable:!(c&&u),isDay:a,userChecked:!1};s&&(h.extraInfo=s),r.push(h)},a=1;a<=e;a++)o(a);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("-"),i=t.split("-"),o=new Date;o.setFullYear(r[0],r[1]-1,r[2]);var a=new Date;a.setFullYear(i[0],i[1]-1,i[2]);for(var s=o.getTime()-864e5,c=a.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,i=(t.date,t.day,new Date(n,r-1,1).getDay()),o=new Date(n,r,0).getDate(),a={lastMonthDays:this._getLastMonthDays(i,this.getDate(e)),currentMonthDys:this._currentMonthDys(o,this.getDate(e)),nextMonthDays:[],weeks:[]},s=[],c=42-(a.lastMonthDays.length+a.currentMonthDys.length);a.nextMonthDays=this._getNextMonthDays(c,this.getDate(e)),s=s.concat(a.lastMonthDays,a.currentMonthDys,a.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=a;t.default=s},dc02:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.request=a;var r=i(n("66fd"));n("1711");function i(e){return e&&e.__esModule?e:{default:e}}var o="http://114.115.167.11:8081/api";function a(t,n,i){console.log(t,n,i);var a=r.default.prototype.$token;if(console.log(),console.log(!a),a)var s={Authorization:r.default.prototype.$token};else s={};return i=void 0===i?"post":i,wx.showNavigationBarLoading(),new Promise((function(r,a){e.request({url:o+t,method:i,data:n,header:s,success:function(t){var n=t.data;200!=n.code&&(e.showToast({title:n.msg,icon:"none",duration:2e3}),a()),r(n.data)},fail:function(t){console.log("请求失败=======",t),e.showToast({title:"网络异常,连接服务器失败",icon:"none",duration:2e3}),a()},complete:function(){e.hideNavigationBarLoading()}})}))}}).call(this,n("543d")["default"])},ef65:function(e,t,n){},f0c5:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,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 h in c)d.call(c,h)&&!d.call(f.components,h)&&(f.components[h]=c[h])}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),o&&(f._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},f._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(f.functional){f._injectStyles=l;var p=f.render;f.render=function(e,t){return l.call(t),p(e,t)}}else{var v=f.beforeCreate;f.beforeCreate=v?[].concat(v,l):[l]}return{exports:e,options:f}}n.d(t,"a",(function(){return r}))},f58c: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-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六"}')},fcfc: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"}')},fd1e: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){i(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 i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(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 s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=d;var c=function(){function t(n,r){o(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 i="";"rotate"===e&&(i="deg"),r.styles.transform+="".concat(e,"(").concat(t+i,") ")}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(i,o){nvueAnimation.transition(n,r({styles:e},t),(function(e){i()}))}))}},{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,i=e[n];if(i){var o=i.styles,a=i.config;this._animateRun(o,a).then((function(){n+=1,t._nvueNextAnimate(e,n,r)}))}else this.currentStepAnimates={},"function"===typeof r&&r(),this.isEnd=!0}},{key:"step",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(e),this}},{key:"run",value:function(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof e&&e()}),this.$.durationTime)}}]),t}(),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("543d")["default"])}}]);
|