mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-01-25 12:38:13 +00:00
20 lines
214 KiB
JavaScript
20 lines
214 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"00fa":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.silenceBindingSpread=u,e.isWeixin=c,e.getCustomer=l,e.parseQuery=f,e.default=e.VUE_APP_WS_URL=void 0;var r=n("3474"),i=s(n("0c53")),o=n("7fe6"),a=n("da79");function s(t){return t&&t.__esModule?t:{default:t}}function u(){var t=getApp().globalData.spid,e=getApp().globalData.code;t=parseInt(t),Number.isNaN(t)&&(t=0),t&&(0,r.spread)({puid:t,code:e}).then((function(t){getApp().globalData.spid=0,getApp().globalData.code=0})).catch((function(t){}))}function c(){return-1!==navigator.userAgent.toLowerCase().indexOf("micromessenger")}function l(e){(0,o.getCustomerType)().then((function(n){var r=n.data.customer_type;"0"==r?t.navigateTo({url:e||"/pages/customer_list/chat"}):"1"==r&&t.makePhoneCall({phoneNumber:n.data.customer_phone})}))}function f(){var t={},e=(location.href.split("?")[1]||"").trim().replace(/^(\?|#|&)/,"");return e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=decodeURIComponent(n.shift()),i=n.length>0?decodeURIComponent(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}var h=i.default.get("WORKERMAN_URL")||"";e.VUE_APP_WS_URL=h,(0,a.getWorkermanUrl)().then((function(t){i.default.set("WORKERMAN_URL",t.data.chat),e.VUE_APP_WS_URL=h=t.data.chat}));var d=f;e.default=d}).call(this,n("543d")["default"])},"0c53":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("514d");function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=function(){function e(n){i(this,e),this.cacheSetHandler=t.setStorageSync,this.cacheGetHandler=t.getStorageSync,this.cacheClearHandler=t.removeStorageSync,this.cacheExpire="UNI-APP-CRMEB:TAG",this.clearOverdue()}return a(e,[{key:"time",value:function(){return Math.round(new Date/1e3)}},{key:"strTotime",value:function(t){var e=t.substring(0,19);return e=e.replace(/-/g,"/"),Math.round(new Date(e).getTime()/1e3)}},{key:"setExpireCaheTag",value:function(t,e){var n=this;if(e=void 0!==e?e:r.EXPIRE,"number"===typeof e){var i=this.cacheGetHandler(this.cacheExpire),o=[],a=[];"object"===typeof i&&i.length&&(o=i.map((function(r){return a.push(r.key),r.key===t&&(r.expire=0===e?0:n.time()+e),r}))),a.length&&-1!==a.indexOf(t)||o.push({key:t,expire:0===e?0:this.time()+e}),this.cacheSetHandler(this.cacheExpire,o)}}},{key:"getExpireCahe",value:function(t,e){try{var n=this.cacheGetHandler(this.cacheExpire),r=0,i=!1;if("object"===typeof n&&n.length){if(n.map((function(e,n){e.key===t&&(r=e.expire,i=n)})),r){var o=parseInt(r);return!(r&&r<this.time()&&!Number.isNaN(o))||(void 0!==e&&!0!==e||(this.cacheClearHandler(t),!1!==i&&(n.splice(i,1),this.cacheClearHandler(this.cacheExpire,n))),!1)}return!!this.cacheGetHandler(t)}return!1}catch(a){return!1}}},{key:"set",value:function(t,e,n){if(void 0===e)return!0;"object"===typeof e&&(e=JSON.stringify(e));try{return this.setExpireCaheTag(t,n),this.cacheSetHandler(t,e)}catch(r){return!1}}},{key:"has",value:function(t){return this.clearOverdue(),this.getExpireCahe(t)}},{key:"get",value:function(t,e,n){this.clearOverdue();try{var r=this.getExpireCahe(t),i=this.cacheGetHandler(t);if(i&&r)return"boolean"===typeof e?JSON.parse(i):i;if("function"===typeof e){var o=e();return this.set(t,o,n),o}return this.set(t,e,n),e}catch(a){return null}}},{key:"clear",value:function(t){try{var e=this.cacheGetHandler(this.cacheExpire),n=!1;return e&&"object"===typeof e&&e.length&&(e.map((function(e,r){e.key===t&&(n=r)})),!1!==n&&e.splice(n,1),this.cacheSetHandler(this.cacheExpire,e)),this.cacheClearHandler(t)}catch(r){return!1}}},{key:"clearOverdue",value:function(){var t=this,e=this.cacheGetHandler(this.cacheExpire),n=this.time(),r=[],i=[];e&&"object"===typeof e&&e.length&&e.map((function(t){t&&(void 0!==t.expire&&t.expire>n||0===t.expire?i.push(t):r.push(t.key))})),i.length!==e.length&&this.cacheSetHandler(this.cacheExpire,i),r.forEach((function(e){t.cacheClearHandler(e)}))}}]),e}(),u=new s;e.default=u}).call(this,n("543d")["default"])},1346:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWechatConfig=a,e.wechatAuth=s,e.getLogo=u,e.login=c,e.silenceAuth=l,e.getShare=f,e.follow=h,e.imageBase64=d,e.copyWords=p,e.getShopConfig=g,e.getUserPhone=v,e.routineLogin=m,e.wechatAuthV2=y,e.getNavigation=_,e.getSubscribe=b,e.getUpdateInfo=w;var r=o(n("9011")),i=o(n("50b4"));function o(t){return t&&t.__esModule?t:{default:t}}function a(){return r.default.get("wechat/config",{url:i.default.signLink()},{noAuth:!0})}function s(t,e,n){return r.default.get("wechat/auth",{code:t,spread:e,login_type:n},{noAuth:!0})}function u(){return r.default.get("wechat/get_logo",{},{noAuth:!0})}function c(t){return r.default.post("wechat/mp_auth",t,{noAuth:!0})}function l(t){return r.default.get("v2/wechat/silence_auth",t,{noAuth:!0})}function f(){return r.default.get("share",{},{noAuth:!0})}function h(){return r.default.get("wechat/follow",{},{noAuth:!0})}function d(t,e){return r.default.post("image_base64",{image:t,code:e},{noAuth:!0})}function p(){return r.default.get("copy_words",{},{noAuth:!0})}function g(){return r.default.get("v2/bind_status",{},{noAuth:!0})}function v(t){return r.default.post("v2/auth_bindind_phone",t,{noAuth:!0})}function m(t){return r.default.get("v2/wechat/routine_auth",t,{noAuth:!0})}function y(t,e){return r.default.get("v2/wechat/auth",{code:t,spread:e},{noAuth:!0})}function _(t){return r.default.get("navigation",t,{noAuth:!0})}function b(){return r.default.get("subscribe",{},{noAuth:!0})}function w(t){return r.default.get("get_new_app/"+t,{noAuth:!0})}},"26cb":function(t,e,n){"use strict";(function(e){
|
||
/*!
|
||
* vuex v3.6.2
|
||
* (c) 2021 Evan You
|
||
* @license MIT
|
||
*/
|
||
function n(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},i=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t){i&&(t._devtoolHook=i,i.emit("vuex:init",t),i.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){i.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){i.emit("vuex:action",t,e)}),{prepend:!0}))}function a(t,e){return t.filter(e)[0]}function s(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=a(e,(function(e){return e.original===t}));if(n)return n.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach((function(n){r[n]=s(t[n],e)})),r}function u(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function c(t){return null!==t&&"object"===typeof t}function l(t){return t&&"function"===typeof t.then}function f(t,e){return function(){return t(e)}}var h=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},d={namespaced:{configurable:!0}};d.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(t,e){this._children[t]=e},h.prototype.removeChild=function(t){delete this._children[t]},h.prototype.getChild=function(t){return this._children[t]},h.prototype.hasChild=function(t){return t in this._children},h.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},h.prototype.forEachChild=function(t){u(this._children,t)},h.prototype.forEachGetter=function(t){this._rawModule.getters&&u(this._rawModule.getters,t)},h.prototype.forEachAction=function(t){this._rawModule.actions&&u(this._rawModule.actions,t)},h.prototype.forEachMutation=function(t){this._rawModule.mutations&&u(this._rawModule.mutations,t)},Object.defineProperties(h.prototype,d);var p=function(t){this.register([],t,!1)};function g(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;g(t.concat(r),e.getChild(r),n.modules[r])}}p.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},p.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},p.prototype.update=function(t){g([],this.root,t)},p.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new h(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&u(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},p.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},p.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var v;var m=function(t){var e=this;void 0===t&&(t={}),!v&&"undefined"!==typeof window&&window.Vue&&P(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new p(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var i=this,a=this,s=a.dispatch,u=a.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,n){return u.call(i,t,e,n)},this.strict=r;var c=this._modules.root.state;A(this,c,[],this._modules.root),w(this,c),n.forEach((function(t){return t(e)}));var l=void 0!==t.devtools?t.devtools:v.config.devtools;l&&o(this)},y={state:{configurable:!0}};function _(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function b(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;A(t,n,[],t._modules.root,!0),w(t,n,e)}function w(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={};u(i,(function(e,n){o[n]=f(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=v.config.silent;v.config.silent=!0,t._vm=new v({data:{$$state:e},computed:o}),v.config.silent=a,t.strict&&C(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),v.nextTick((function(){return r.$destroy()})))}function A(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var s=E(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){v.set(s,u,r.state)}))}var c=r.context=x(t,a,n);r.forEachMutation((function(e,n){var r=a+n;k(t,r,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;S(t,r,i,c)})),r.forEachGetter((function(e,n){var r=a+n;T(t,r,e,c)})),r.forEachChild((function(r,o){A(t,e,n.concat(o),r,i)}))}function x(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=$(n,r,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=e+u),t.dispatch(u,a)},commit:r?t.commit:function(n,r,i){var o=$(n,r,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=e+u),t.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return O(t,e)}},state:{get:function(){return E(t.state,n)}}}),i}function O(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function k(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function S(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return l(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}function T(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function C(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function E(t,e){return e.reduce((function(t,e){return t[e]}),t)}function $(t,e,n){return c(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function P(t){v&&t===v||(v=t,n(v))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(t){0},m.prototype.commit=function(t,e,n){var r=this,i=$(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},m.prototype.dispatch=function(t,e){var n=this,r=$(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(c){0}var u=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){u.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(c){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(c){0}e(t)}))}))}},m.prototype.subscribe=function(t,e){return _(t,this._subscribers,e)},m.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return _(n,this._actionSubscribers,e)},m.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},m.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},m.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),A(this,this.state,t,this._modules.get(t),n.preserveState),w(this,this.state)},m.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=E(e.state,t.slice(0,-1));v.delete(n,t[t.length-1])})),b(this)},m.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},m.prototype[[104,111,116,85,112,100,97,116,101].map(t=>String.fromCharCode(t)).join("")]=function(t){this._modules.update(t),b(this,!0)},m.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(m.prototype,y);var L=U((function(t,e){var n={};return D(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=F(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),j=U((function(t,e){var n={};return D(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=F(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),I=U((function(t,e){var n={};return D(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||F(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),N=U((function(t,e){var n={};return D(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=F(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),M=function(t){return{mapState:L.bind(null,t),mapGetters:I.bind(null,t),mapMutations:j.bind(null,t),mapActions:N.bind(null,t)}};function D(t){return R(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function R(t){return Array.isArray(t)||c(t)}function U(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function F(t,e,n){var r=t._modulesNamespaceMap[n];return r}function H(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var u=t.logMutations;void 0===u&&(u=!0);var c=t.logActions;void 0===c&&(c=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=s(t.state);"undefined"!==typeof l&&(u&&t.subscribe((function(t,o){var a=s(o);if(n(t,f,a)){var u=z(),c=i(t),h="mutation "+t.type+u;B(l,h,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",c),l.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),V(l)}f=a})),c&&t.subscribeAction((function(t,n){if(o(t,n)){var r=z(),i=a(t),s="action "+t.type+r;B(l,s,e),l.log("%c action","color: #03A9F4; font-weight: bold",i),V(l)}})))}}function B(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function V(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function z(){var t=new Date;return" @ "+K(t.getHours(),2)+":"+K(t.getMinutes(),2)+":"+K(t.getSeconds(),2)+"."+K(t.getMilliseconds(),3)}function G(t,e){return new Array(e+1).join(t)}function K(t,e){return G("0",e-t.toString().length)+t}var W={Store:m,install:P,version:"3.6.2",mapState:L,mapMutations:j,mapGetters:I,mapActions:N,createNamespacedHelpers:M,createLogger:H};t.exports=W}).call(this,n("c8ba"))},"2f12":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(n("a34a")),i=c(n("6b37")),o=n("c6cd"),a=n("1346"),s=c(n("0c53")),u=n("a1ea");n("26cb");function c(t){return t&&t.__esModule?t:{default:t}}function l(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){l(o,r,i,a,s,"next",t)}function s(t){l(o,r,i,a,s,"throw",t)}a(void 0)}))}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}var g=function(){function e(){h(this,e),this.scopeUserInfo="scope.userInfo"}return p(e,[{key:"getUserCode",value:function(){var t=f(r.default.mark((function t(){var e,n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.isAuth();case 2:if(e=t.sent,n="",!e){t.next=8;break}return t.next=7,this.getCode();case 7:n=t.sent;case 8:return t.abrupt("return",n);case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"silenceAuth",value:function(e){var n=getApp(),r=n.globalData.spid?n.globalData.spid:"";return new Promise((function(o,s){(0,a.silenceAuth)({code:e,spread_spid:r,spread_code:n.globalData.code}).then((function(e){if(e.data&&void 0!==e.data.token){t.hideLoading();var n=e.data.expires_time-Math.round(new Date/1e3);i.default.commit("LOGIN",{token:e.data.token,time:n}),i.default.commit("SETUID",e.data.userInfo.uid),i.default.commit("UPDATE_USERINFO",e.data.userInfo),o(e)}else s(),t.navigateTo({url:"/pages/users/wechat_login/index"})})).catch((function(t){s(t)}))}))}},{key:"getUserInfo",value:function(){var e=this.getUserCode();return new Promise((function(n,r){t.getUserInfo({lang:"zh_CN",success:function(t){e&&(t.code=e),n({userInfo:t,islogin:!1})},fail:function(t){r(t)}})}))}},{key:"getUserProfile",value:function(e){return new Promise((function(n,r){t.getUserProfile({lang:"zh_CN",desc:"用于完善会员资料",success:function(t){e&&(t.code=e),n({userInfo:t,islogin:!1})},fail:function(t){r(t)}})}))}},{key:"authorize",value:function(){var e=this;return new Promise((function(n,r){if((0,o.checkLogin)())return n({userInfo:s.default.get(u.USER_INFO,!0),islogin:!0});t.authorize({scope:e.scopeUserInfo,success:function(){n({islogin:!1})},fail:function(t){r(t)}})}))}},{key:"getCode",value:function(){var e=f(r.default.mark((function e(){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getProvider();case 2:return n=e.sent,e.abrupt("return",new Promise((function(e,r){t.login({provider:n,success:function(t){return t.code&&s.default.set(u.STATE_R_KEY,t.code,10800),e(t.code)},fail:function(){return r(null)}})})));case 4:case"end":return e.stop()}}),e,this)})));function n(){return e.apply(this,arguments)}return n}()},{key:"getProvider",value:function(){return new Promise((function(e,n){t.getProvider({service:"oauth",success:function(t){e(t.provider)},fail:function(){e(!1)}})}))}},{key:"isAuth",value:function(){var e=this;return new Promise((function(n,r){t.getSetting({success:function(t){t.authSetting[e.scopeUserInfo],n(!0)},fail:function(){n(!1)}})}))}},{key:"authUserInfo",value:function(t){return new Promise((function(e,n){(0,a.routineLogin)(t).then((function(t){return void 0!==t.data.key&&t.data.key||(i.default.commit("UPDATE_USERINFO",t.data.userInfo),i.default.commit("SETUID",t.data.userInfo.uid),s.default.set(u.USER_INFO,t.data.userInfo)),e(t)})).catch((function(t){return n(t)}))}))}}]),e}(),v=new g;e.default=v}).call(this,n("543d")["default"])},"2f3d":function(t,e){function n(t,e){this.timer=null,this.startIndex=t.startIndex-1||0,this.count=0,this.winingIndex=t.winingIndex||0,this.totalCount=t.totalCount||6,this.speed=t.speed||100,this.domData=t.domData,this.rollFn(),this.callback=e}n.prototype={rollFn:function(){var t=this;this.startIndex++,this.startIndex>=this.domData.length-1&&(this.startIndex=0,this.count++),this.count>=this.totalCount&&this.startIndex===this.winingIndex?("function"===typeof this.callback&&setTimeout((function(){t.callback(t.startIndex,t.count)}),400),clearInterval(this.timer)):(this.count>=this.totalCount-1&&(this.speed+=30),this.timer=setTimeout((function(){t.callback(t.startIndex,t.count),t.rollFn()}),this.speed))}},t.exports=n},3185:function(t,e,n){"use strict";(function(e){var n={trustTags:a("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),blockTags:a("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:a("area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr"),voidTags:a("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),entities:{lt:"<",gt:">",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…"},tagStyle:{address:"font-style:italic",big:"display:inline;font-size:1.2em",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}},r=e.getSystemInfoSync().windowWidth,i=a(" ,\r,\n,\t,\f"),o=0;function a(t){for(var e=Object.create(null),n=t.split(","),r=n.length;r--;)e[n[r]]=!0;return e}function s(t,e){var r=t.indexOf("&");while(-1!=r){var i=t.indexOf(";",r+3),o=void 0;if(-1==i)break;"#"==t[r+1]?(o=parseInt(("x"==t[r+2]?"0":"")+t.substring(r+2,i)),isNaN(o)||(t=t.substr(0,r)+String.fromCharCode(o)+t.substr(i+1))):(o=t.substring(r+1,i),(n.entities[o]||"amp"==o&&e)&&(t=t.substr(0,r)+(n.entities[o]||"&")+t.substr(i+1))),r=t.indexOf("&",r+1)}return t}function u(t){this.options=t||{},this.tagStyle=Object.assign(n.tagStyle,this.options.tagStyle),this.imgList=t.imgList||[],this.plugins=t.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[]}function c(t){this.handler=t}u.prototype.parse=function(t){for(var e=this.plugins.length;e--;)this.plugins[e].onUpdate&&(t=this.plugins[e].onUpdate(t,n)||t);new c(this).parse(t);while(this.stack.length)this.popNode();return this.nodes},u.prototype.expose=function(){for(var t=this.stack.length;t--;){var e=this.stack[t];if("a"==e.name||e.c)return;e.c=1}},u.prototype.hook=function(t){for(var e=this.plugins.length;e--;)if(this.plugins[e].onParse&&0==this.plugins[e].onParse(t,this))return!1;return!0},u.prototype.getUrl=function(t){var e=this.options.domain;return"/"==t[0]?"/"==t[1]?t=(e?e.split("://")[0]:"http")+":"+t:e&&(t=e+t):!e||t.includes("data:")||t.includes("://")||(t=e+"/"+t),t},u.prototype.parseStyle=function(t){var e=t.attrs,n=(this.tagStyle[t.name]||"").split(";").concat((e.style||"").split(";")),o={},a="";e.id&&(this.options.useAnchor?this.expose():"img"!=t.name&&"a"!=t.name&&"video"!=t.name&&"audio"!=t.name&&(e.id=void 0)),e.width&&(o.width=parseFloat(e.width)+(e.width.includes("%")?"%":"px"),e.width=void 0),e.height&&(o.height=parseFloat(e.height)+(e.height.includes("%")?"%":"px"),e.height=void 0);for(var s=0,u=n.length;s<u;s++){var c=n[s].split(":");if(!(c.length<2)){var l=c.shift().trim().toLowerCase(),f=c.join(":").trim();if("-"==f[0]&&f.lastIndexOf("-")>0||f.includes("safe"))a+=";".concat(l,":").concat(f);else if(!o[l]||f.includes("import")||!o[l].includes("import")){if(f.includes("url")){var h=f.indexOf("(")+1;if(h){while('"'==f[h]||"'"==f[h]||i[f[h]])h++;f=f.substr(0,h)+this.getUrl(f.substr(h))}}else f.includes("rpx")&&(f=f.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*r/750+"px"})));o[l]=f}}}return t.attrs.style=a,o},u.prototype.onTagName=function(t){this.tagName=this.xml?t:t.toLowerCase(),"svg"==this.tagName&&(this.xml=!0)},u.prototype.onAttrName=function(t){t=this.xml?t:t.toLowerCase(),"data-"==t.substr(0,5)?"data-src"!=t||this.attrs.src?"img"==this.tagName||"a"==this.tagName?this.attrName=t:this.attrName=void 0:this.attrName="src":(this.attrName=t,this.attrs[t]="T")},u.prototype.onAttrVal=function(t){var e=this.attrName||"";"style"==e||"href"==e?this.attrs[e]=s(t,!0):e.includes("src")?this.attrs[e]=this.getUrl(s(t,!0)):e&&(this.attrs[e]=t)},u.prototype.onOpenTag=function(t){var e=Object.create(null);e.name=this.tagName,e.attrs=this.attrs,this.attrs=Object.create(null);var i=e.attrs,a=this.stack[this.stack.length-1],s=a?a.children:this.nodes,u=this.xml?t:n.voidTags[e.name];if("embed"==e.name){var c=i.src||"";c.includes(".mp4")||c.includes(".3gp")||c.includes(".m3u8")||(i.type||"").includes("video")?e.name="video":(c.includes(".mp3")||c.includes(".wav")||c.includes(".aac")||c.includes(".m4a")||(i.type||"").includes("audio"))&&(e.name="audio"),i.autostart&&(i.autoplay="T"),i.controls="T"}if("video"!=e.name&&"audio"!=e.name||("video"!=e.name||i.id||(i.id="v"+o++),i.controls||i.autoplay||(i.controls="T"),e.src=[],i.src&&(e.src.push(i.src),i.src=void 0),this.expose()),u){if(!this.hook(e)||n.ignoreTags[e.name])return void("base"!=e.name||this.options.domain?"source"==e.name&&a&&("video"==a.name||"audio"==a.name)&&i.src&&a.src.push(i.src):this.options.domain=i.href);var l=this.parseStyle(e);if("img"==e.name){if(i.src&&(i.src.includes("webp")&&(e.webp="T"),i.src.includes("data:")&&!i["original-src"]&&(i.ignore="T"),!i.ignore||e.webp||i.src.includes("cloud://"))){for(var f=this.stack.length;f--;){var h=this.stack[f];if("a"==h.name){e.a=h.attrs;break}var d=h.attrs.style||"";if(!d.includes("flex:")||d.includes("flex:0")||d.includes("flex: 0")||l.width&&l.width.includes("%"))if(d.includes("flex")&&"100%"==l.width)for(var p=f+1;p<this.stack.length;p++){var g=this.stack[p].attrs.style||"";if(!g.includes(";width")&&!g.includes(" width")&&0!=g.indexOf("width")){l.width="";break}}else d.includes("inline-block")&&(l.width&&"%"==l.width[l.width.length-1]?(h.attrs.style+=";max-width:"+l.width,l.width=""):h.attrs.style+=";max-width:100%");else{l.width="100% !important",l.height="";for(var v=f+1;v<this.stack.length;v++)this.stack[v].attrs.style=(this.stack[v].attrs.style||"").replace("inline-","")}h.c=1}i.i=this.imgList.length.toString();var m=i["original-src"]||i.src;if(this.imgList.includes(m)){var y=m.indexOf("://");if(-1!=y){y+=3;for(var _=m.substr(0,y);y<m.length;y++){if("/"==m[y])break;_+=Math.random()>.5?m[y].toUpperCase():m[y]}_+=m.substr(y),m=_}}this.imgList.push(m)}"inline"==l.display&&(l.display=""),i.ignore&&(l["max-width"]=l["max-width"]||"100%",i.style+=";-webkit-touch-callout:none"),parseInt(l.width)>r&&(l.height=void 0),l.width&&(l.width.includes("auto")?l.width="":(e.w="T",l.height&&!l.height.includes("auto")&&(e.h="T")))}else if("svg"==e.name)return s.push(e),this.stack.push(e),void this.popNode();for(var b in l)l[b]&&(i.style+=";".concat(b,":").concat(l[b].replace(" !important","")));i.style=i.style.substr(1)||void 0}else("pre"==e.name||(i.style||"").includes("white-space")&&i.style.includes("pre"))&&(this.pre=e.pre=!0),e.children=[],this.stack.push(e);s.push(e)},u.prototype.onCloseTag=function(t){var e;for(t=this.xml?t:t.toLowerCase(),e=this.stack.length;e--;)if(this.stack[e].name==t)break;if(-1!=e)while(this.stack.length>e)this.popNode();else if("p"==t||"br"==t){var n=this.stack.length?this.stack[this.stack.length-1].children:this.nodes;n.push({name:t,attrs:{}})}},u.prototype.popNode=function(){var t=this.stack.pop(),i=t.attrs,o=t.children,a=this.stack[this.stack.length-1],s=a?a.children:this.nodes;if(!this.hook(t)||n.ignoreTags[t.name])return"title"==t.name&&o.length&&"text"==o[0].type&&this.options.setTitle&&e.setNavigationBarTitle({title:o[0].text}),void s.pop();if(t.pre){t.pre=this.pre=void 0;for(var u=this.stack.length;u--;)this.stack[u].pre&&(this.pre=!0)}var c={};if("svg"==t.name){var l="",f=i.style;return i.style="",i.xmlns="http://www.w3.org/2000/svg",function t(e){for(var n in l+="<"+e.name,e.attrs){var r=e.attrs[n];r&&("viewbox"==n&&(n="viewBox"),l+=" ".concat(n,'="').concat(r,'"'))}if(e.children){l+=">";for(var i=0;i<e.children.length;i++)t(e.children[i]);l+="</"+e.name+">"}else l+="/>"}(t),t.name="img",t.attrs={src:"data:image/svg+xml;utf8,"+l.replace(/#/g,"%23"),style:f,ignore:"T"},t.children=void 0,void(this.xml=!1)}if(i.align&&("table"==t.name?"center"==i.align?c["margin-inline-start"]=c["margin-inline-end"]="auto":c["float"]=i.align:c["text-align"]=i.align,i.align=void 0),"font"==t.name&&(i.color&&(c.color=i.color,i.color=void 0),i.face&&(c["font-family"]=i.face,i.face=void 0),i.size)){var h=parseInt(i.size);isNaN(h)||(h<1?h=1:h>7&&(h=7),c["font-size"]=["xx-small","x-small","small","medium","large","x-large","xx-large"][h-1]),i.size=void 0}if((i["class"]||"").includes("align-center")&&(c["text-align"]="center"),Object.assign(c,this.parseStyle(t)),parseInt(c.width)>r&&(c["max-width"]="100%",c["box-sizing"]="border-box"),n.blockTags[t.name]?t.name="div":n.trustTags[t.name]||this.xml||(t.name="span"),"a"==t.name||"ad"==t.name)this.expose();else if("ul"!=t.name&&"ol"!=t.name||!t.c){if("table"==t.name){var d=parseFloat(i.cellpadding),p=parseFloat(i.cellspacing),g=parseFloat(i.border);if(t.c&&(isNaN(d)&&(d=2),isNaN(p)&&(p=2)),g&&(i.style+=";border:"+g+"px solid gray"),t.flag&&t.c){c.display="grid",p?(c["grid-gap"]=p+"px",c.padding=p+"px"):g&&(i.style+=";border-left:0;border-top:0");var v=[],m=[],y=[],_={};(function t(e){for(var n=0;n<e.length;n++)"tr"==e[n].name?m.push(e[n]):t(e[n].children||[])})(o);for(var b=1;b<=m.length;b++){for(var w=1,A=0;A<m[b-1].children.length;A++,w++){var x=m[b-1].children[A];if("td"==x.name||"th"==x.name){while(_[b+"."+w])w++;var O=x.attrs.style||"",k=O.indexOf("width")?O.indexOf(";width"):0;if(-1!=k){var S=O.indexOf(";",k+6);-1==S&&(S=O.length),x.attrs.colspan||(v[w]=O.substring(k?k+7:6,S)),O=O.substr(0,k)+O.substr(S)}if(O+=(g?";border:".concat(g,"px solid gray")+(p?"":";border-right:0;border-bottom:0"):"")+(d?";padding:".concat(d,"px"):""),x.attrs.colspan&&(O+=";grid-column-start:".concat(w,";grid-column-end:").concat(w+parseInt(x.attrs.colspan)),x.attrs.rowspan||(O+=";grid-row-start:".concat(b,";grid-row-end:").concat(b+1)),w+=parseInt(x.attrs.colspan)-1),x.attrs.rowspan){O+=";grid-row-start:".concat(b,";grid-row-end:").concat(b+parseInt(x.attrs.rowspan)),x.attrs.colspan||(O+=";grid-column-start:".concat(w,";grid-column-end:").concat(w+1));for(var T=1;T<x.attrs.rowspan;T++)_[b+T+"."+w]=1}O&&(x.attrs.style=O),y.push(x)}}if(1==b){for(var C="",E=1;E<w;E++)C+=(v[E]?v[E]:"auto")+" ";c["grid-template-columns"]=C}}t.children=y}else t.c&&(c.display="table"),isNaN(p)||(c["border-spacing"]=p+"px"),(g||d)&&function t(e){for(var n=0;n<e.length;n++){var r=e[n];"th"==r.name||"td"==r.name?(g&&(r.attrs.style="border:".concat(g,"px solid gray;").concat(r.attrs.style||"")),d&&(r.attrs.style="padding:".concat(d,"px;").concat(r.attrs.style||""))):r.children&&t(r.children)}}(o);if(this.options.scrollTable&&!(i.style||"").includes("inline")){var $=Object.assign({},t);t.name="div",t.attrs={style:"overflow:auto"},t.children=[$],i=$.attrs}}else if("td"!=t.name&&"th"!=t.name||!i.colspan&&!i.rowspan){if("ruby"==t.name){t.name="span";for(var P=0;P<o.length-1;P++)"text"==o[P].type&&"rt"==o[P+1].name&&(o[P]={name:"div",attrs:{style:"display:inline-block"},children:[{name:"div",attrs:{style:"font-size:50%;text-align:start"},children:o[P+1].children},o[P]]},o.splice(P+1,1))}else if(t.c){t.c=2;for(var L=t.children.length;L--;)t.children[L].c&&"table"!=t.children[L].name||(t.c=1)}}else for(var j=this.stack.length;j--;)if("table"==this.stack[j].name){this.stack[j].flag=1;break}}else{var I={a:"lower-alpha",A:"upper-alpha",i:"lower-roman",I:"upper-roman"};I[i.type]&&(i.style+=";list-style-type:"+I[i.type],i.type=void 0);for(var N=o.length;N--;)"li"==o[N].name&&(o[N].c=1)}if((c.display||"").includes("flex")&&!t.c)for(var M=o.length;M--;){var D=o[M];D.f&&(D.attrs.style=(D.attrs.style||"")+D.f,D.f=void 0)}var R=a&&(a.attrs.style||"").includes("flex")&&!(t.c&&wx.getNFCAdapter);for(var U in R&&(t.f=";max-width:100%"),c)if(c[U]){var F=";".concat(U,":").concat(c[U].replace(" !important",""));R&&(U.includes("flex")&&"flex-direction"!=U||"align-self"==U||"-"==c[U][0]||"width"==U&&F.includes("%"))?(t.f+=F,"width"==U&&(i.style+=";width:100%")):i.style+=F}i.style=i.style.substr(1)||void 0},u.prototype.onText=function(t){if(!this.pre){for(var e,n="",r=0,o=t.length;r<o;r++)i[t[r]]?(" "!=n[n.length-1]&&(n+=" "),"\n"!=t[r]||e||(e=!0)):n+=t[r];if(" "==n&&e)return;t=n}var a=Object.create(null);if(a.type="text",a.text=s(t),this.hook(a)){var u=this.stack.length?this.stack[this.stack.length-1].children:this.nodes;u.push(a)}},c.prototype.parse=function(t){this.content=t||"",this.i=0,this.start=0,this.state=this.text;for(var e=this.content.length;-1!=this.i&&this.i<e;)this.state()},c.prototype.checkClose=function(t){var e="/"==this.content[this.i];return!!(">"==this.content[this.i]||e&&">"==this.content[this.i+1])&&(t&&this.handler[t](this.content.substring(this.start,this.i)),this.i+=e?2:1,this.start=this.i,this.handler.onOpenTag(e),"script"==this.handler.tagName?(this.i=this.content.indexOf("</",this.i),-1!=this.i&&(this.i+=2,this.start=this.i),this.state=this.endTag):this.state=this.text,!0)},c.prototype.text=function(){if(this.i=this.content.indexOf("<",this.i),-1!=this.i){var t=this.content[this.i+1];if(t>="a"&&t<="z"||t>="A"&&t<="Z")this.start!=this.i&&this.handler.onText(this.content.substring(this.start,this.i)),this.start=++this.i,this.state=this.tagName;else if("/"==t||"!"==t||"?"==t){this.start!=this.i&&this.handler.onText(this.content.substring(this.start,this.i));var e=this.content[this.i+2];if("/"==t&&(e>="a"&&e<="z"||e>="A"&&e<="Z"))return this.i+=2,this.start=this.i,this.state=this.endTag;var n="--\x3e";"!"==t&&"-"==this.content[this.i+2]&&"-"==this.content[this.i+3]||(n=">"),this.i=this.content.indexOf(n,this.i),-1!=this.i&&(this.i+=n.length,this.start=this.i)}else this.i++}else this.start<this.content.length&&this.handler.onText(this.content.substring(this.start,this.content.length))},c.prototype.tagName=function(){if(i[this.content[this.i]]){this.handler.onTagName(this.content.substring(this.start,this.i));while(i[this.content[++this.i]]);this.i<this.content.length&&!this.checkClose()&&(this.start=this.i,this.state=this.attrName)}else this.checkClose("onTagName")||this.i++},c.prototype.attrName=function(){var t=this.content[this.i];if(i[t]||"="==t){this.handler.onAttrName(this.content.substring(this.start,this.i));var e="="==t,n=this.content.length;while(++this.i<n)if(t=this.content[this.i],!i[t]){if(this.checkClose())return;if(e)return this.start=this.i,this.state=this.attrVal;if("="!=this.content[this.i])return this.start=this.i,this.state=this.attrName;e=!0}}else this.checkClose("onAttrName")||this.i++},c.prototype.attrVal=function(){var t=this.content[this.i],e=this.content.length;if('"'==t||"'"==t){if(this.start=++this.i,this.i=this.content.indexOf(t,this.i),-1==this.i)return;this.handler.onAttrVal(this.content.substring(this.start,this.i))}else for(;this.i<e;this.i++){if(i[this.content[this.i]]){this.handler.onAttrVal(this.content.substring(this.start,this.i));break}if(this.checkClose("onAttrVal"))return}while(i[this.content[++this.i]]);this.i<e&&!this.checkClose()&&(this.start=this.i,this.state=this.attrName)},c.prototype.endTag=function(){var t=this.content[this.i];if(i[t]||">"==t||"/"==t){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!=t&&(this.i=this.content.indexOf(">",this.i),-1==this.i))return;this.start=++this.i,this.state=this.text}else this.i++},t.exports=u}).call(this,n("543d")["default"])},"31e4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={namespaced:!0,state:{hotWord:[]},getters:{},mutations:{setHotWord:function(t,e){t.hotWord=e}}};e.default=r},3290:function(t,e){},3474:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getUserInfo=u,e.userShare=c,e.loginH5=l,e.loginMobile=f,e.getCodeApi=h,e.registerVerify=d,e.register=p,e.registerReset=g,e.getMenuList=v,e.postSignUser=m,e.getSignConfig=y,e.getSignList=_,e.setSignIntegral=b,e.getSignMonthList=w,e.userActivity=A,e.getCommissionInfo=x,e.getIntegralList=O,e.spreadBanner=k,e.spreadPeople=S,e.spreadCount=T,e.getSpreadInfo=C,e.spreadOrder=E,e.getRankList=$,e.getBrokerageRank=P,e.extractCash=L,e.extractBank=j,e.userLevelGrade=I,e.userLevelTask=N,e.userLevelDetection=M,e.getAddressList=D,e.setAddressDefault=R,e.editAddress=U,e.delAddress=F,e.getAddressDetail=H,e.userEdit=B,e.getLogout=V,e.rechargeRoutine=z,e.rechargeWechat=G,e.getAddressDefault=K,e.getRechargeApi=W,e.setVisit=X,e.serviceList=q,e.getChatRecord=J,e.spread=Y,e.getlevelInfo=Z,e.getlevelExpList=Q,e.updateUserInfo=tt,e.phoneWxSilenceAuth=et,e.phoneSilenceAuth=nt,e.invoiceList=rt,e.invoiceSave=it,e.invoiceDelete=ot,e.invoiceDefault=at,e.invoiceDetail=st,e.invoiceOrder=ut,e.makeUpinvoice=ct,e.memberCard=lt,e.memberCardDraw=ft,e.memberCardCreate=ht,e.memberCouponsList=dt,e.spreadMsg=pt,e.imgToBase=gt,e.routineCode=vt,e.serviceRecord=mt,e.messageSystem=yt,e.getMsgDetails=_t,e.appleLogin=bt,e.getUserAgreement=wt,e.agentLevelList=At,e.agentLevelTaskList=xt;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(){return r.default.get("user")}function c(){return r.default.post("user/share")}function l(t){return r.default.post("login",t,{noAuth:!0})}function f(t){return r.default.post("login/mobile",t,{noAuth:!0})}function h(){return r.default.get("verify_code",{},{noAuth:!0})}function d(t){return r.default.post("register/verify",t,{noAuth:!0})}function p(t){return r.default.post("register",t,{noAuth:!0})}function g(t){return r.default.post("register/reset",t,{noAuth:!0})}function v(){return r.default.get("menu/user",{},{noAuth:!0})}function m(t){return r.default.post("sign/user",t)}function y(){return r.default.get("sign/config")}function _(t){return r.default.get("sign/list",t)}function b(){return r.default.post("sign/integral")}function w(t){return r.default.get("sign/month",t)}function A(){return r.default.get("user/activity")}function x(t,e){return r.default.get("spread/commission/"+e,t)}function O(t){return r.default.get("integral/list",t)}function k(){return r.default.get("spread/banner",{type:1})}function S(t){return r.default.post("spread/people",t)}function T(t){return r.default.get("spread/count/"+t)}function C(){return r.default.get("commission")}function E(t){return r.default.post("spread/order",t)}function $(t){return r.default.get("rank",t)}function P(t){return r.default.get("brokerage_rank",t)}function L(t){return r.default.post("extract/cash",t)}function j(){return r.default.get("extract/bank")}function I(){return r.default.get("user/level/grade")}function N(t){return r.default.get("user/level/task/"+t)}function M(){return r.default.get("user/level/detection")}function D(t){return r.default.get("address/list",t)}function R(t){return r.default.post("address/default/set",{id:t})}function U(t){return r.default.post("address/edit",t)}function F(t){return r.default.post("address/del",{id:t})}function H(t){return r.default.get("address/detail/"+t)}function B(t){return r.default.post("user/edit",t)}function V(){return r.default.get("logout")}function z(t){return r.default.post("recharge/routine",t)}function G(t){return r.default.post("recharge/wechat",t)}function K(){return r.default.get("address/default")}function W(){return r.default.get("recharge/index")}function X(t){return r.default.post("user/set_visit",a({},t),{noAuth:!0})}function q(){return r.default.get("user/service/list")}function J(t){return r.default.get("v2/user/service/record",t)}function Y(t){return r.default.post("user/spread",t)}function Z(){return r.default.get("user/level/info")}function Q(t){return r.default.get("user/level/expList",t)}function tt(t){return r.default.post("v2/user/user_update",t)}function et(t){return r.default.post("v2/phone_wx_silence_auth",t,{noAuth:!0})}function nt(t){return r.default.post("v2/phone_silence_auth",t,{noAuth:!0})}function rt(t){return r.default.get("v2/invoice",t,{noAuth:!0})}function it(t){return r.default.post("v2/invoice/save",t,{noAuth:!0})}function ot(t){return r.default.get("v2/invoice/del/"+t)}function at(t){return r.default.get("v2/invoice/get_default/"+t)}function st(t){return r.default.get("v2/invoice/detail/"+t)}function ut(t){return r.default.post("v2/order/make_up_invoice",t)}function ct(t){return r.default.post("v2/order/make_up_invoice",t)}function lt(){return r.default.get("user/member/card/index")}function ft(t){return r.default.post("user/member/card/draw",t)}function ht(t){return r.default.post("user/member/card/create",t)}function dt(){return r.default.get("user/member/coupons/list")}function pt(){return r.default.get("user/spread_info")}function gt(t){return r.default.post("image_base64",t)}function vt(t){return r.default.get("user/routine_code",t)}function mt(t){return r.default.get("user/record",t)}function yt(t){return r.default.get("user/message_system/list",t)}function _t(t){return r.default.get("user/message_system/detail/"+t)}function bt(t){return r.default.post("apple_login",t,{noAuth:!0})}function wt(){return r.default.get("user_agreement",{},{noAuth:!0})}function At(){return r.default.get("v2/agent/level_list")}function xt(t){return r.default.get("v2/agent/level_task_list?id="+t)}},"37dc":function(t,e,n){"use strict";(function(t,n){function r(t,e){return u(t)||s(t,e)||o(t,e)||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(t,e){if(t){if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(u){i=!0,o=u}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function u(t){if(Array.isArray(t))return t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.compileI18nJsonStr=U,e.hasI18nJson=D,e.initVueI18n=I,e.isI18nStr=F,e.normalizeLocale=$,e.parseI18nJson=R,e.resolveLocale=G,e.isString=e.LOCALE_ZH_HANT=e.LOCALE_ZH_HANS=e.LOCALE_FR=e.LOCALE_ES=e.LOCALE_EN=e.I18n=e.Formatter=void 0;var h=Array.isArray,d=function(t){return null!==t&&"object"===typeof t},p=["{","}"],g=function(){function t(){c(this,t),this._caches=Object.create(null)}return f(t,[{key:"interpolate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;if(!e)return[t];var r=this._caches[t];return r||(r=y(t,n),this._caches[t]=r),_(r,e)}}]),t}();e.Formatter=g;var v=/^(?:\d)+/,m=/^(?:\w)+/;function y(t,e){var n=r(e,2),i=n[0],o=n[1],a=[],s=0,u="";while(s<t.length){var c=t[s++];if(c===i){u&&a.push({type:"text",value:u}),u="";var l="";c=t[s++];while(void 0!==c&&c!==o)l+=c,c=t[s++];var f=c===o,h=v.test(l)?"list":f&&m.test(l)?"named":"unknown";a.push({value:l,type:h})}else u+=c}return u&&a.push({type:"text",value:u}),a}function _(t,e){var n=[],r=0,i=h(e)?"list":d(e)?"named":"unknown";if("unknown"===i)return n;while(r<t.length){var o=t[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(e[parseInt(o.value,10)]);break;case"named":"named"===i&&n.push(e[o.value]);break;case"unknown":0;break}r++}return n}var b="zh-Hans";e.LOCALE_ZH_HANS=b;var w="zh-Hant";e.LOCALE_ZH_HANT=w;var A="en";e.LOCALE_EN=A;var x="fr";e.LOCALE_FR=x;var O="es";e.LOCALE_ES=O;var k=Object.prototype.hasOwnProperty,S=function(t,e){return k.call(t,e)},T=new g;function C(t,e){return!!e.find((function(e){return-1!==t.indexOf(e)}))}function E(t,e){return e.find((function(e){return 0===t.indexOf(e)}))}function $(t,e){if(t){if(t=t.trim().replace(/_/g,"-"),e&&e[t])return t;if(t=t.toLowerCase(),0===t.indexOf("zh"))return t.indexOf("-hans")>-1?b:t.indexOf("-hant")>-1||C(t,["-tw","-hk","-mo","-cht"])?w:b;var n=E(t,[A,x,O]);return n||void 0}}var P=function(){function t(e){var n=e.locale,r=e.fallbackLocale,i=e.messages,o=e.watcher,a=e.formater;c(this,t),this.locale=A,this.fallbackLocale=A,this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=a||T,this.messages=i||{},this.setLocale(n||A),o&&this.watchLocale(o)}return f(t,[{key:"setLocale",value:function(t){var e=this,n=this.locale;this.locale=$(t,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(t){t(e.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(t){var e=this,n=this.watchers.push(t)-1;return function(){e.watchers.splice(n,1)}}},{key:"add",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[t];r?n?Object.assign(r,e):Object.keys(e).forEach((function(t){S(r,t)||(r[t]=e[t])})):this.messages[t]=e}},{key:"f",value:function(t,e,n){return this.formater.interpolate(t,e,n).join("")}},{key:"t",value:function(t,e,n){var r=this.message;return"string"===typeof e?(e=$(e,this.messages),e&&(r=this.messages[e])):n=e,S(r,t)?this.formater.interpolate(r[t],n).join(""):t}}]),t}();function L(t,e){t.$watchLocale?t.$watchLocale((function(t){e.setLocale(t)})):t.$watch((function(){return t.$locale}),(function(t){e.setLocale(t)}))}function j(){return"undefined"!==typeof t&&t.getLocale?t.getLocale():"undefined"!==typeof n&&n.getLocale?n.getLocale():A}function I(t){var e=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 t){var i=[e,t];t=i[0],e=i[1]}"string"!==typeof t&&(t=j()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||A);var o=new P({locale:t,fallbackLocale:n,messages:e,watcher:r}),a=function(t,e){if("function"!==typeof getApp)a=function(t,e){return o.t(t,e)};else{var n=!1;a=function(t,e){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,L(r,o))),o.t(t,e)}}return a(t,e)};return{i18n:o,f:function(t,e,n){return o.f(t,e,n)},t:function(t,e){return a(t,e)},add:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(t,e,n)},watch:function(t){return o.watchLocale(t)},getLocale:function(){return o.getLocale()},setLocale:function(t){return o.setLocale(t)}}}e.I18n=P;var N,M=function(t){return"string"===typeof t};function D(t,e){return N||(N=new g),z(t,(function(t,n){var r=t[n];return M(r)?!!F(r,e)||void 0:D(r,e)}))}function R(t,e,n){return N||(N=new g),z(t,(function(t,r){var i=t[r];M(i)?F(i,n)&&(t[r]=H(i,e,n)):R(i,e,n)})),t}function U(t,e){var n=e.locale,r=e.locales,i=e.delimiters;if(!F(t,i))return t;N||(N=new g);var o=[];Object.keys(r).forEach((function(t){t!==n&&o.push({locale:t,values:r[t]})})),o.unshift({locale:n,values:r[n]});try{return JSON.stringify(V(JSON.parse(t),o,i),null,2)}catch(a){}return t}function F(t,e){return t.indexOf(e[0])>-1}function H(t,e,n){return N.interpolate(t,e,n).join("")}function B(t,e,n,r){var i=t[e];if(M(i)){if(F(i,r)&&(t[e]=H(i,n[0].values,r),n.length>1)){var o=t[e+"Locales"]={};n.forEach((function(t){o[t.locale]=H(i,t.values,r)}))}}else V(i,n,r)}function V(t,e,n){return z(t,(function(t,r){B(t,r,e,n)})),t}function z(t,e){if(h(t)){for(var n=0;n<t.length;n++)if(e(t,n))return!0}else if(d(t))for(var r in t)if(e(t,r))return!0;return!1}function G(t){return function(e){return e?(e=$(e)||e,K(e).find((function(e){return t.indexOf(e)>-1}))):e}}function K(t){var e=[],n=t.split("-");while(n.length)e.push(n.join("-")),n.pop();return e}e.isString=M}).call(this,n("543d")["default"],n("c8ba"))},4729:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.goShopDetail=r,e.goPage=i;var n=getApp();function r(e,n){return new Promise((function(r){e.activity&&"1"===e.activity.type?t.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(e.activity.id,"&time=").concat(e.activity.time,"&status=1")}):e.activity&&"2"===e.activity.type?t.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(e.activity.id,"&bargain=").concat(n)}):e.activity&&"3"===e.activity.type?t.navigateTo({url:"/pages/activity/goods_combination_details/index?id=".concat(e.activity.id)}):r(e)}))}function i(){return new Promise((function(t){if(0!=n.globalData.isIframe)return!1;t(!0)}))}}).call(this,n("543d")["default"])},"4f72":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCombinationList=o,e.getCombinationDetail=a,e.getCombinationPink=s,e.postCombinationRemove=u,e.getBargainList=c,e.getCombinationBannerList=l,e.getPink=f,e.getBargainUserList=h,e.getBargainDetail=d,e.postBargainStartUser=p,e.postBargainStart=g,e.postBargainHelp=v,e.postBargainHelpPrice=m,e.postBargainHelpList=y,e.postBargainHelpCount=_,e.postBargainShare=b,e.getSeckillIndexTime=w,e.getSeckillList=A,e.getSeckillDetail=x,e.getBargainPoster=O,e.getCombinationPoster=k,e.getBargainUserCancel=S,e.seckillCode=T,e.scombinationCode=C,e.getCombinationPosterData=E,e.getBargainPosterData=$,e.integralOrderConfirm=P,e.integralOrderCreate=L,e.integralOrderDetails=j,e.getIntegralProductDetail=I,e.getStoreIntegralList=N,e.getIntegralOrderList=M,e.getLogisticsDetails=D,e.orderTake=R,e.orderDel=U,e.getPresellList=F;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t){return r.default.get("combination/list",t,{noAuth:!0})}function a(t){return r.default.get("combination/detail/"+t)}function s(t){return r.default.get("combination/pink/"+t)}function u(t){return r.default.post("combination/remove",t)}function c(t){return r.default.get("bargain/list",t,{noAuth:!0})}function l(t){return r.default.get("combination/banner_list",t,{noAuth:!0})}function f(t){return r.default.get("pink",t,{noAuth:!0})}function h(t){return r.default.get("bargain/user/list",t)}function d(t){return r.default.get("bargain/detail/"+t)}function p(t){return r.default.post("bargain/start/user",t)}function g(t){return r.default.post("bargain/start",{bargainId:t})}function v(t){return r.default.post("bargain/help",t)}function m(t){return r.default.post("bargain/help/price",t)}function y(t){return r.default.post("bargain/help/list",t)}function _(t){return r.default.post("bargain/help/count",t)}function b(t){return r.default.post("bargain/share",{bargainId:t})}function w(){return r.default.get("seckill/index",{},{noAuth:!0})}function A(t,e){return r.default.get("seckill/list/"+t,e,{noAuth:!0})}function x(t,e){return r.default.get("seckill/detail/"+t,e)}function O(t){return r.default.post("bargain/poster",t)}function k(t){return r.default.post("combination/poster",t)}function S(t){return r.default.post("bargain/user/cancel",t)}function T(t,e){return r.default.get("seckill/code/"+t,e)}function C(t){return r.default.get("combination/code/"+t)}function E(t){return r.default.get("combination/poster_info/"+t)}function $(t){return r.default.get("bargain/poster_info/"+t)}function P(t){return r.default.post("store_integral/order/confirm",t)}function L(t){return r.default.post("store_integral/order/create",t)}function j(t){return r.default.get("store_integral/order/detail/".concat(t))}function I(t){return r.default.get("store_integral/detail/"+t,{},{noAuth:!0})}function N(t){return r.default.get("store_integral/list",t)}function M(t){return r.default.get("store_integral/order/list",t)}function D(t){return r.default.get("store_integral/order/express/".concat(t))}function R(t){return r.default.post("store_integral/order/take",t)}function U(t){return r.default.post("store_integral/order/del",t)}function F(t){return r.default.get("advance/list",t)}},"50b4":function(t,e){},"514d":function(t,e){t.exports={HTTP_REQUEST_URL:"https://demo.crmeb.com",HEADER:{"content-type":"application/json","Form-type":"routine"},TOKENNAME:"Authori-zation",EXPIRE:0,LIMIT:10}},"52ec":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",r="hour",i="day",o="week",a="month",s="quarter",u="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,l=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},h={s:f,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+f(r,2,"0")+":"+f(i,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,a),i=e-r<0,o=t.clone().add(n+(i?-1:1),a);return Number(-(n+(e-r)/(i?r-o:o-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:a,y:u,w:o,d:i,D:"date",h:r,m:n,s:e,ms:t,Q:s}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},d={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p="en",g={};g[p]=d;var v=function(t){return t instanceof b},m=function(t,e,n){var r;if(!t)return p;if("string"==typeof t)g[t]&&(r=t),e&&(g[t]=e,r=t);else{var i=t.name;g[i]=t,r=i}return!n&&r&&(p=r),r||!n&&p},y=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new b(n)},_=h;_.l=m,_.i=v,_.w=function(t,e){return y(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var b=function(){function f(t){this.$L=this.$L||m(t.locale,null,!0),this.parse(t)}var h=f.prototype;return h.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(_.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(c);if(r)return n?new Date(Date.UTC(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}return new Date(e)}(t),this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return _},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(t,e){var n=y(t);return this.startOf(e)<=n&&n<=this.endOf(e)},h.isAfter=function(t,e){return y(t)<this.startOf(e)},h.isBefore=function(t,e){return this.endOf(e)<y(t)},h.$g=function(t,e,n){return _.u(t)?this[e]:this.set(n,t)},h.year=function(t){return this.$g(t,"$y",u)},h.month=function(t){return this.$g(t,"$M",a)},h.day=function(t){return this.$g(t,"$W",i)},h.date=function(t){return this.$g(t,"$D","date")},h.hour=function(t){return this.$g(t,"$H",r)},h.minute=function(t){return this.$g(t,"$m",n)},h.second=function(t){return this.$g(t,"$s",e)},h.millisecond=function(e){return this.$g(e,"$ms",t)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(t,s){var c=this,l=!!_.u(s)||s,f=_.p(t),h=function(t,e){var n=_.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return l?n:n.endOf(i)},d=function(t,e){return _.w(c.toDate()[t].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},p=this.$W,g=this.$M,v=this.$D,m="set"+(this.$u?"UTC":"");switch(f){case u:return l?h(1,0):h(31,11);case a:return l?h(1,g):h(0,g+1);case o:var y=this.$locale().weekStart||0,b=(p<y?p+7:p)-y;return h(l?v-b:v+(6-b),g);case i:case"date":return d(m+"Hours",0);case r:return d(m+"Minutes",1);case n:return d(m+"Seconds",2);case e:return d(m+"Milliseconds",3);default:return this.clone()}},h.endOf=function(t){return this.startOf(t,!1)},h.$set=function(o,s){var c,l=_.p(o),f="set"+(this.$u?"UTC":""),h=(c={},c[i]=f+"Date",c.date=f+"Date",c[a]=f+"Month",c[u]=f+"FullYear",c[r]=f+"Hours",c[n]=f+"Minutes",c[e]=f+"Seconds",c[t]=f+"Milliseconds",c)[l],d=l===i?this.$D+(s-this.$W):s;if(l===a||l===u){var p=this.clone().set("date",1);p.$d[h](d),p.init(),this.$d=p.set("date",Math.min(this.$D,p.daysInMonth())).toDate()}else h&&this.$d[h](d);return this.init(),this},h.set=function(t,e){return this.clone().$set(t,e)},h.get=function(t){return this[_.p(t)]()},h.add=function(t,s){var c,l=this;t=Number(t);var f=_.p(s),h=function(e){var n=y(l);return _.w(n.date(n.date()+Math.round(e*t)),l)};if(f===a)return this.set(a,this.$M+t);if(f===u)return this.set(u,this.$y+t);if(f===i)return h(1);if(f===o)return h(7);var d=(c={},c[n]=6e4,c[r]=36e5,c[e]=1e3,c)[f]||1,p=this.$d.getTime()+t*d;return _.w(p,this)},h.subtract=function(t,e){return this.add(-1*t,e)},h.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var n=t||"YYYY-MM-DDTHH:mm:ssZ",r=_.z(this),i=this.$locale(),o=this.$H,a=this.$m,s=this.$M,u=i.weekdays,c=i.months,f=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].substr(0,o)},h=function(t){return _.s(o%12||12,t,"0")},d=i.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:_.s(s+1,2,"0"),MMM:f(i.monthsShort,s,c,3),MMMM:c[s]||c(this,n),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:f(i.weekdaysMin,this.$W,u,2),ddd:f(i.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(o),HH:_.s(o,2,"0"),h:h(1),hh:h(2),a:d(o,a,!0),A:d(o,a,!1),m:String(a),mm:_.s(a,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:r};return n.replace(l,(function(t,e){return e||p[t]||r.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(t,c,l){var f,h=_.p(c),d=y(t),p=6e4*(d.utcOffset()-this.utcOffset()),g=this-d,v=_.m(this,d);return v=(f={},f[u]=v/12,f[a]=v,f[s]=v/3,f[o]=(g-p)/6048e5,f[i]=(g-p)/864e5,f[r]=g/36e5,f[n]=g/6e4,f[e]=g/1e3,f)[h]||g,l?v:_.a(v)},h.daysInMonth=function(){return this.endOf(a).$D},h.$locale=function(){return g[this.$L]},h.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=m(t,e,!0);return r&&(n.$L=r),n},h.clone=function(){return _.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},f}();return y.prototype=b.prototype,y.extend=function(t,e){return t(e,b,y),y},y.locale=m,y.isDayjs=v,y.unix=function(t){return y(1e3*t)},y.en=g[p],y.Ls=g,y}))},"543d":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.createApp=Xe,e.createComponent=sn,e.createPage=an,e.createPlugin=cn,e.createSubpackageApp=un,e.default=void 0;var r,i=a(n("66fd")),o=n("37dc");function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e){return h(t)||f(t,e)||v(t,e)||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(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(u){i=!0,o=u}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function h(t){if(Array.isArray(t))return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){return y(t)||m(t)||v(t)||g()}function g(){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 v(t,e){if(t){if("string"===typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(t,e):void 0}}function m(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function y(t){if(Array.isArray(t))return _(t)}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",w=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function A(t){return decodeURIComponent(r(t).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function x(){var t,e=wx.getStorageSync("uni_id_token")||"",n=e.split(".");if(!e||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse(A(n[1]))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}function O(t){t.prototype.uniIDHasRole=function(t){var e=x(),n=e.role;return n.indexOf(t)>-1},t.prototype.uniIDHasPermission=function(t){var e=x(),n=e.permission;return this.uniIDHasRole("admin")||n.indexOf(t)>-1},t.prototype.uniIDTokenValid=function(){var t=x(),e=t.tokenExpired;return e>Date.now()}}r="function"!==typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!w.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,r,i="",o=0;o<t.length;)e=b.indexOf(t.charAt(o++))<<18|b.indexOf(t.charAt(o++))<<12|(n=b.indexOf(t.charAt(o++)))<<6|(r=b.indexOf(t.charAt(o++))),i+=64===n?String.fromCharCode(e>>16&255):64===r?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return i}:atob;var k=Object.prototype.toString,S=Object.prototype.hasOwnProperty;function T(t){return"function"===typeof t}function C(t){return"string"===typeof t}function E(t){return"[object Object]"===k.call(t)}function $(t,e){return S.call(t,e)}function P(){}function L(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var j=/-(\w)/g,I=L((function(t){return t.replace(j,(function(t,e){return e?e.toUpperCase():""}))})),N=["invoke","success","fail","complete","returnValue"],M={},D={};function R(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?U(n):n}function U(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function F(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}function H(t,e){Object.keys(e).forEach((function(n){-1!==N.indexOf(n)&&T(e[n])&&(t[n]=R(t[n],e[n]))}))}function B(t,e){t&&e&&Object.keys(e).forEach((function(n){-1!==N.indexOf(n)&&T(e[n])&&F(t[n],e[n])}))}function V(t,e){"string"===typeof t&&E(e)?H(D[t]||(D[t]={}),e):E(t)&&H(M,t)}function z(t,e){"string"===typeof t?E(e)?B(D[t],e):delete D[t]:E(t)&&B(M,t)}function G(t){return function(e){return t(e)||e}}function K(t){return!!t&&("object"===typeof t||"function"===typeof t)&&"function"===typeof t.then}function W(t,e){for(var n=!1,r=0;r<t.length;r++){var i=t[r];if(n)n=Promise.resolve(G(i));else{var o=i(e);if(K(o)&&(n=Promise.resolve(o)),!1===o)return{then:function(){}}}}return n||{then:function(t){return t(e)}}}function X(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(t[n])){var r=e[n];e[n]=function(e){W(t[n],e).then((function(t){return T(r)&&r(t)||t}))}}})),e}function q(t,e){var n=[];Array.isArray(M.returnValue)&&n.push.apply(n,p(M.returnValue));var r=D[t];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,p(r.returnValue)),n.forEach((function(t){e=t(e)||e})),e}function J(t){var e=Object.create(null);Object.keys(M).forEach((function(t){"returnValue"!==t&&(e[t]=M[t].slice())}));var n=D[t];return n&&Object.keys(n).forEach((function(t){"returnValue"!==t&&(e[t]=(e[t]||[]).concat(n[t]))})),e}function Y(t,e,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=J(t);if(a&&Object.keys(a).length){if(Array.isArray(a.invoke)){var s=W(a.invoke,n);return s.then((function(t){return e.apply(void 0,[X(a,t)].concat(i))}))}return e.apply(void 0,[X(a,n)].concat(i))}return e.apply(void 0,[n].concat(i))}var Z={returnValue:function(t){return K(t)?new Promise((function(e,n){t.then((function(t){t[0]?n(t[0]):e(t[1])}))})):t}},Q=/^\$|Window$|WindowStyle$|sendNativeEvent|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale/,tt=/^create|Manager$/,et=["createBLEConnection"],nt=["createBLEConnection"],rt=/^on|^off/;function it(t){return tt.test(t)&&-1===et.indexOf(t)}function ot(t){return Q.test(t)&&-1===nt.indexOf(t)}function at(t){return rt.test(t)&&"onPush"!==t}function st(t){return t.then((function(t){return[null,t]})).catch((function(t){return[t]}))}function ut(t){return!(it(t)||ot(t)||at(t))}function ct(t,e){return ut(t)?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)?q(t,Y.apply(void 0,[t,e,n].concat(i))):q(t,st(new Promise((function(r,o){Y.apply(void 0,[t,e,Object.assign({},n,{success:r,fail:o})].concat(i))}))))}:e}Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))});var lt=1e-4,ft=750,ht=!1,dt=0,pt=0;function gt(){var t=wx.getSystemInfoSync(),e=t.platform,n=t.pixelRatio,r=t.windowWidth;dt=r,pt=n,ht="ios"===e}function vt(t,e){if(0===dt&>(),t=Number(t),0===t)return 0;var n=t/ft*(e||dt);return n<0&&(n=-n),n=Math.floor(n+lt),0===n&&(n=1!==pt&&ht?.5:1),t<0?-n:n}function mt(){var t=getApp({allowDefault:!0});return t&&t.$vm?t.$vm.$locale:wx.getSystemInfoSync().language||"zh-Hans"}function yt(t){var e=getApp();if(!e)return!1;var n=e.$vm.$locale;return n!==t&&(e.$vm.$locale=t,_t.forEach((function(e){return e({locale:t})})),!0)}var _t=[];function bt(t){-1===_t.indexOf(t)&&_t.push(t)}"undefined"!==typeof t&&(t.getLocale=mt);var wt={promiseInterceptor:Z},At=Object.freeze({__proto__:null,upx2px:vt,getLocale:mt,setLocale:yt,onLocaleChange:bt,addInterceptor:V,removeInterceptor:z,interceptors:wt});function xt(t){var e=getCurrentPages(),n=e.length;while(n--){var r=e[n];if(r.$page&&r.$page.fullPath===t)return n}return-1}var Ot,kt={name:function(t){return"back"===t.exists&&t.delta?"navigateBack":"redirectTo"},args:function(t){if("back"===t.exists&&t.url){var e=xt(t.url);if(-1!==e){var n=getCurrentPages().length-1-e;n>0&&(t.delta=n)}}}},St={args:function(t){var e=parseInt(t.current);if(!isNaN(e)){var n=t.urls;if(Array.isArray(n)){var r=n.length;if(r)return e<0?e=0:e>=r&&(e=r-1),e>0?(t.current=n[e],t.urls=n.filter((function(t,r){return!(r<e)||t!==n[e]}))):t.current=n[0],{indicator:!1,loop:!1}}}}},Tt="__DC_STAT_UUID";function Ct(t){Ot=Ot||wx.getStorageSync(Tt),Ot||(Ot=Date.now()+""+Math.floor(1e7*Math.random()),wx.setStorage({key:Tt,data:Ot})),t.deviceId=Ot}function Et(t){if(t.safeArea){var e=t.safeArea;t.safeAreaInsets={top:e.top,left:e.left,right:t.windowWidth-e.right,bottom:t.windowHeight-e.bottom}}}var $t={returnValue:function(t){Ct(t),Et(t)}},Pt={redirectTo:kt,previewImage:St,getSystemInfo:$t,getSystemInfoSync:$t},Lt=["vibrate","preloadPage","unPreloadPage","loadSubPackage"],jt=[],It=["success","fail","cancel","complete"];function Nt(t,e,n){return function(r){return e(Dt(t,r,n))}}function Mt(t,e){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(E(e)){var o=!0===i?e:{};for(var a in T(n)&&(n=n(e,o)||{}),e)if($(n,a)){var s=n[a];T(s)&&(s=s(e[a],e,o)),s&&(C(s)?o[s]=e[a]:E(s)&&(o[s.name?s.name:a]=s.value))}else-1!==It.indexOf(a)?T(e[a])&&(o[a]=Nt(t,e[a],r)):i||(o[a]=e[a]);return o}return T(e)&&(e=Nt(t,e,r)),e}function Dt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return T(Pt.returnValue)&&(e=Pt.returnValue(t,e)),Mt(t,e,n,{},r)}function Rt(t,e){if($(Pt,t)){var n=Pt[t];return n?function(e,r){var i=n;T(n)&&(i=n(e)),e=Mt(t,e,i.args,i.returnValue);var o=[e];"undefined"!==typeof r&&o.push(r),T(i.name)?t=i.name(e):C(i.name)&&(t=i.name);var a=wx[t].apply(wx,o);return ot(t)?Dt(t,a,i.returnValue,it(t)):a}:function(){}}return e}var Ut=Object.create(null),Ft=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function Ht(t){return function(e){var n=e.fail,r=e.complete,i={errMsg:"".concat(t,":fail method '").concat(t,"' not supported")};T(n)&&n(i),T(r)&&r(i)}}Ft.forEach((function(t){Ut[t]=Ht(t)}));var Bt={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function Vt(t){var e=t.service,n=t.success,r=t.fail,i=t.complete,o=!1;Bt[e]?(o={errMsg:"getProvider:ok",service:e,provider:Bt[e]},T(n)&&n(o)):(o={errMsg:"getProvider:fail service not found"},T(r)&&r(o)),T(i)&&i(o)}var zt=Object.freeze({__proto__:null,getProvider:Vt}),Gt=function(){var t;return function(){return t||(t=new i.default),t}}();function Kt(t,e,n){return t[e].apply(t,n)}function Wt(){return Kt(Gt(),"$on",Array.prototype.slice.call(arguments))}function Xt(){return Kt(Gt(),"$off",Array.prototype.slice.call(arguments))}function qt(){return Kt(Gt(),"$once",Array.prototype.slice.call(arguments))}function Jt(){return Kt(Gt(),"$emit",Array.prototype.slice.call(arguments))}var Yt=Object.freeze({__proto__:null,$on:Wt,$off:Xt,$once:qt,$emit:Jt}),Zt=Object.freeze({__proto__:null}),Qt=Page,te=Component,ee=/:/g,ne=L((function(t){return I(t.replace(ee,"-"))}));function re(t){var e=t.triggerEvent;t.triggerEvent=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 e.apply(t,[ne(n)].concat(i))}}function ie(t,e,n){var r=e[t];e[t]=r?function(){re(this);for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.apply(this,e)}:function(){re(this)}}Qt.__$wrappered||(Qt.__$wrappered=!0,Page=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ie("onLoad",t),Qt(t)},Page.after=Qt.after,Component=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ie("created",t),te(t)});var oe=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function ae(t,e){var n=t.$mp[t.mpType];e.forEach((function(e){$(n,e)&&(t[e]=n[e])}))}function se(t,e){if(!e)return!0;if(i.default.options&&Array.isArray(i.default.options[t]))return!0;if(e=e.default||e,T(e))return!!T(e.extendOptions[t])||!!(e.super&&e.super.options&&Array.isArray(e.super.options[t]));if(T(e[t]))return!0;var n=e.mixins;return Array.isArray(n)?!!n.find((function(e){return se(t,e)})):void 0}function ue(t,e,n){e.forEach((function(e){se(e,n)&&(t[e]=function(t){return this.$vm&&this.$vm.__call_hook(e,t)})}))}function ce(t,e){var n;return e=e.default||e,n=T(e)?e:t.extend(e),e=n.options,[n,e]}function le(t,e){if(Array.isArray(e)&&e.length){var n=Object.create(null);e.forEach((function(t){n[t]=!0})),t.$scopedSlots=t.$slots=n}}function fe(t,e){t=(t||"").split(",");var n=t.length;1===n?e._$vueId=t[0]:2===n&&(e._$vueId=t[0],e._$vuePid=t[1])}function he(t,e){var n=t.data||{},r=t.methods||{};if("function"===typeof n)try{n=n.call(e)}catch(i){Object({NODE_ENV:"production",VUE_APP_NAME:"routineTitle",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG}else try{n=JSON.parse(JSON.stringify(n))}catch(i){}return E(n)||(n={}),Object.keys(r).forEach((function(t){-1!==e.__lifecycle_hooks__.indexOf(t)||$(n,t)||(n[t]=r[t])})),n}var de=[String,Number,Boolean,Object,Array,null];function pe(t){return function(e,n){this.$vm&&(this.$vm[t]=e)}}function ge(t,e){var n=t.behaviors,r=t.extends,i=t.mixins,o=t.props;o||(t.props=o=[]);var a=[];return Array.isArray(n)&&n.forEach((function(t){a.push(t.replace("uni://","wx".concat("://"))),"uni://form-field"===t&&(Array.isArray(o)?(o.push("name"),o.push("value")):(o.name={type:String,default:""},o.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),E(r)&&r.props&&a.push(e({properties:me(r.props,!0)})),Array.isArray(i)&&i.forEach((function(t){E(t)&&t.props&&a.push(e({properties:me(t.props,!0)}))})),a}function ve(t,e,n,r){return Array.isArray(e)&&1===e.length?e[0]:e}function me(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return e||(n.vueId={type:String,value:""},n.generic={type:Object,value:null},n.scopedSlotsCompiler={type:String,value:""},n.vueSlots={type:null,value:[],observer:function(t,e){var n=Object.create(null);t.forEach((function(t){n[t]=!0})),this.setData({$slots:n})}}),Array.isArray(t)?t.forEach((function(t){n[t]={type:null,observer:pe(t)}})):E(t)&&Object.keys(t).forEach((function(e){var r=t[e];if(E(r)){var i=r.default;T(i)&&(i=i()),r.type=ve(e,r.type),n[e]={type:-1!==de.indexOf(r.type)?r.type:null,value:i,observer:pe(e)}}else{var o=ve(e,r);n[e]={type:-1!==de.indexOf(o)?o:null,observer:pe(e)}}})),n}function ye(t){try{t.mp=JSON.parse(JSON.stringify(t))}catch(e){}return t.stopPropagation=P,t.preventDefault=P,t.target=t.target||{},$(t,"detail")||(t.detail={}),$(t,"markerId")&&(t.detail="object"===typeof t.detail?t.detail:{},t.detail.markerId=t.markerId),E(t.detail)&&(t.target=Object.assign({},t.target,t.detail)),t}function _e(t,e){var n=t;return e.forEach((function(e){var r=e[0],i=e[2];if(r||"undefined"!==typeof i){var o,a=e[1],s=e[3];Number.isInteger(r)?o=r:r?"string"===typeof r&&r&&(o=0===r.indexOf("#s#")?r.substr(3):t.__get_value(r,n)):o=n,Number.isInteger(o)?n=i:a?Array.isArray(o)?n=o.find((function(e){return t.__get_value(a,e)===i})):E(o)&&(n=Object.keys(o).find((function(e){return t.__get_value(a,o[e])===i}))):n=o[i],s&&(n=t.__get_value(s,n))}})),n}function be(t,e,n){var r={};return Array.isArray(e)&&e.length&&e.forEach((function(e,i){"string"===typeof e?e?"$event"===e?r["$"+i]=n:"arguments"===e?n.detail&&n.detail.__args__?r["$"+i]=n.detail.__args__:r["$"+i]=[n]:0===e.indexOf("$event.")?r["$"+i]=t.__get_value(e.replace("$event.",""),n):r["$"+i]=t.__get_value(e):r["$"+i]=t:r["$"+i]=_e(t,e)})),r}function we(t){for(var e={},n=1;n<t.length;n++){var r=t[n];e[r[0]]=r[1]}return e}function Ae(t,e){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=e.currentTarget&&e.currentTarget.dataset&&"wx"===e.currentTarget.dataset.comType,!n.length))return a?[e]:e.detail.__args__||e.detail;var s=be(t,r,e),u=[];return n.forEach((function(t){"$event"===t?"__set_model"!==o||i?i&&!a?u.push(e.detail.__args__[0]):u.push(e):u.push(e.target.value):Array.isArray(t)&&"o"===t[0]?u.push(we(t)):"string"===typeof t&&$(s,t)?u.push(s[t]):u.push(t)})),u}var xe,Oe="~",ke="^";function Se(t,e){return t===e||"regionchange"===e&&("begin"===t||"end"===t)}function Te(t){var e=t.$parent;while(e&&e.$parent&&(e.$options.generic||e.$parent.$options.generic||e.$scope._$vuePid))e=e.$parent;return e&&e.$parent}function Ce(t){var e=this;t=ye(t);var n=(t.currentTarget||t.target).dataset;if(n){var r=n.eventOpts||n["event-opts"];if(r){var i=t.type,o=[];return r.forEach((function(n){var r=n[0],a=n[1],s=r.charAt(0)===ke;r=s?r.slice(1):r;var u=r.charAt(0)===Oe;r=u?r.slice(1):r,a&&Se(i,r)&&a.forEach((function(n){var r=n[0];if(r){var i=e.$vm;if(i.$options.generic&&(i=Te(i)||i),"$emit"===r)return void i.$emit.apply(i,Ae(e.$vm,t,n[1],n[2],s,r));var a=i[r];if(!T(a))throw new Error(" _vm.".concat(r," is not a function"));if(u){if(a.once)return;a.once=!0}var c=Ae(e.$vm,t,n[1],n[2],s,r);c=Array.isArray(c)?c:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(c=c.concat([,,,,,,,,,,t])),o.push(a.apply(i,c))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}}}xe=wx.getSystemInfoSync().language;var Ee=(0,o.initVueI18n)(xe,{}),$e=Ee.t;Ee.mixin={beforeCreate:function(){var t=this,e=Ee.i18n.watchLocale((function(){t.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){e()}))},methods:{$$t:function(t,e){return $e(t,e)}}},Ee.setLocale,Ee.getLocale;function Pe(t,e,n){var r=t.observable({locale:n||Ee.getLocale()}),i=[];e.$watchLocale=function(t){i.push(t)},Object.defineProperty(e,"$locale",{get:function(){return r.locale},set:function(t){r.locale=t,i.forEach((function(e){return e(t)}))}})}var Le={},je=[];function Ie(t){if(t){var e=Le[t];return delete Le[t],e}return je.shift()}var Ne=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Me(){i.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var t=i.default.prototype.__call_hook;i.default.prototype.__call_hook=function(e,n){return"onLoad"===e&&n&&n.__id__&&(this.__eventChannel__=Ie(n.__id__),delete n.__id__),t.call(this,e,n)}}function De(){var t={},e={};i.default.prototype.$hasScopedSlotsParams=function(n){var r=t[n];return r||(e[n]=this,this.$on("hook:destroyed",(function(){delete e[n]}))),r},i.default.prototype.$getScopedSlotsParams=function(n,r,i){var o=t[n];if(o){var a=o[r]||{};return i?a[i]:a}e[n]=this,this.$on("hook:destroyed",(function(){delete e[n]}))},i.default.prototype.$setScopedSlotsParams=function(n,r){var i=this.$options.propsData.vueId;if(i){var o=i.split(",")[0],a=t[o]=t[o]||{};a[n]=r,e[o]&&e[o].$forceUpdate()}},i.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete t[r],delete e[r])}})}function Re(t,e){var n=e.mocks,r=e.initRefs;Me(),De(),t.$options.store&&(i.default.prototype.$store=t.$options.store),O(i.default),i.default.prototype.mpHost="mp-weixin",i.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=d({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 t=getApp();t.$vm&&t.$vm.$i18n&&(this._i18n=t.$vm.$i18n)}"app"!==this.mpType&&(r(this),ae(this,n))}}});var o={onLaunch:function(e){this.$vm||(wx.canIUse&&wx.canIUse("nextTick"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",e),this.$vm.__call_hook("onLaunch",e))}};o.globalData=t.$options.globalData||{};var a=t.$options.methods;return a&&Object.keys(a).forEach((function(t){o[t]=a[t]})),Pe(i.default,t,wx.getSystemInfoSync().language||"zh-Hans"),ue(o,Ne),o}var Ue=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function Fe(t,e){for(var n,r=t.$children,i=r.length-1;i>=0;i--){var o=r[i];if(o.$scope._$vueId===e)return o}for(var a=r.length-1;a>=0;a--)if(n=Fe(r[a],e),n)return n}function He(t){return Behavior(t)}function Be(){return!!this.route}function Ve(t){this.triggerEvent("__l",t)}function ze(t,e,n){var r=t.selectAllComponents(e);r.forEach((function(t){var r=t.dataset.ref;n[r]=t.$vm||t,"scoped"===t.dataset.vueGeneric&&t.selectAllComponents(".scoped-ref").forEach((function(t){ze(t,e,n)}))}))}function Ge(t){var e=t.$scope;Object.defineProperty(t,"$refs",{get:function(){var t={};ze(e,".vue-ref",t);var n=e.selectAllComponents(".vue-ref-in-for");return n.forEach((function(e){var n=e.dataset.ref;t[n]||(t[n]=[]),t[n].push(e.$vm||e)})),t}})}function Ke(t){var e,n=t.detail||t.value,r=n.vuePid,i=n.vueOptions;r&&(e=Fe(this.$vm,r)),e||(e=this.$vm),i.parent=e}function We(t){return Re(t,{mocks:Ue,initRefs:Ge})}function Xe(t){return App(We(t)),t}var qe=/[!'()*]/g,Je=function(t){return"%"+t.charCodeAt(0).toString(16)},Ye=/%2C/g,Ze=function(t){return encodeURIComponent(t).replace(qe,Je).replace(Ye,",")};function Qe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze,n=t?Object.keys(t).map((function(n){var r=t[n];if(void 0===r)return"";if(null===r)return e(n);if(Array.isArray(r)){var i=[];return r.forEach((function(t){void 0!==t&&(null===t?i.push(e(n)):i.push(e(n)+"="+e(t)))})),i.join("&")}return e(n)+"="+e(r)})).filter((function(t){return t.length>0})).join("&"):null;return n?"?".concat(n):""}function tn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.isPage,r=e.initRelation,o=ce(i.default,t),a=c(o,2),s=a[0],l=a[1],f=u({multipleSlots:!0,addGlobalClass:!0},l.options||{});l["mp-weixin"]&&l["mp-weixin"].options&&Object.assign(f,l["mp-weixin"].options);var h={options:f,data:he(l,i.default.prototype),behaviors:ge(l,He),properties:me(l.props,!1,l.__file),lifetimes:{attached:function(){var t=this.properties,e={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:t};fe(t.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:e}),this.$vm=new s(e),le(this.$vm,t.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(t){this.$vm&&this.$vm.__call_hook("onPageShow",t)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(t){this.$vm&&this.$vm.__call_hook("onPageResize",t)}},methods:{__l:Ke,__e:Ce}};return l.externalClasses&&(h.externalClasses=l.externalClasses),Array.isArray(l.wxsCallMethods)&&l.wxsCallMethods.forEach((function(t){h.methods[t]=function(e){return this.$vm[t](e)}})),n?h:[h,s]}function en(t){return tn(t,{isPage:Be,initRelation:Ve})}var nn=["onShow","onHide","onUnload"];function rn(t,e){e.isPage,e.initRelation;var n=en(t);return ue(n.methods,nn,t),n.methods.onLoad=function(t){this.options=t;var e=Object.assign({},t);delete e.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Qe(e)},this.$vm.$mp.query=t,this.$vm.__call_hook("onLoad",t)},n}function on(t){return rn(t,{isPage:Be,initRelation:Ve})}function an(t){return Component(on(t))}function sn(t){return Component(en(t))}function un(t){var e=We(t),n=getApp({allowDefault:!0});t.$scope=n;var r=n.globalData;if(r&&Object.keys(e.globalData).forEach((function(t){$(r,t)||(r[t]=e.globalData[t])})),Object.keys(e).forEach((function(t){$(n,t)||(n[t]=e[t])})),T(e.onShow)&&wx.onAppShow&&wx.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onShow",n)})),T(e.onHide)&&wx.onAppHide&&wx.onAppHide((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.__call_hook("onHide",n)})),T(e.onLaunch)){var i=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();t.__call_hook("onLaunch",i)}return t}function cn(t){var e=We(t);if(T(e.onShow)&&wx.onAppShow&&wx.onAppShow((function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.onShow.apply(t,r)})),T(e.onHide)&&wx.onAppHide&&wx.onAppHide((function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.onHide.apply(t,r)})),T(e.onLaunch)){var n=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();e.onLaunch.call(t,n)}return t}nn.push.apply(nn,oe),Lt.forEach((function(t){Pt[t]=!1})),jt.forEach((function(t){var e=Pt[t]&&Pt[t].name?Pt[t].name:t;wx.canIUse(e)||(Pt[t]=!1)}));var ln={};"undefined"!==typeof Proxy?ln=new Proxy({},{get:function(t,e){return $(t,e)?t[e]:At[e]?At[e]:Zt[e]?ct(e,Zt[e]):zt[e]?ct(e,zt[e]):Ut[e]?ct(e,Ut[e]):Yt[e]?Yt[e]:$(wx,e)||$(Pt,e)?ct(e,Rt(e,wx[e])):void 0},set:function(t,e,n){return t[e]=n,!0}}):(Object.keys(At).forEach((function(t){ln[t]=At[t]})),Object.keys(Ut).forEach((function(t){ln[t]=ct(t,Ut[t])})),Object.keys(zt).forEach((function(t){ln[t]=ct(t,Ut[t])})),Object.keys(Yt).forEach((function(t){ln[t]=Yt[t]})),Object.keys(Zt).forEach((function(t){ln[t]=ct(t,Zt[t])})),Object.keys(wx).forEach((function(t){($(wx,t)||$(Pt,t))&&(ln[t]=ct(t,Rt(t,wx[t])))}))),wx.createApp=Xe,wx.createPage=an,wx.createComponent=sn,wx.createSubpackageApp=un,wx.createPlugin=cn;var fn=ln,hn=fn;e.default=hn}).call(this,n("c8ba"))},"546e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.orderVerific=o;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return r.default.post("order/order_verific",{verify_code:t,is_confirm:e})}},"5b94":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("5da0")),i=a(n("31e4")),o=a(n("f106"));function a(t){return t&&t.__esModule?t:{default:t}}var s={app:r.default,hotWords:i.default,indexData:o.default};e.default=s},"5bb2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={token:function(t){return t.app.token},isLogin:function(t){return!!t.app.token},backgroundColor:function(t){return t.app.backgroundColor},userInfo:function(t){return t.app.userInfo||{}},uid:function(t){return t.app.uid},homeActive:function(t){return t.app.homeActive},home:function(t){return t.app.home},cartNum:function(t){return t.indexData.cartNum}};e.default=r},"5da0":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("3474"),i=n("a1ea"),o=a(n("0c53"));function a(t){return t&&t.__esModule?t:{default:t}}var s={token:o.default.get(i.LOGIN_STATUS)||!1,backgroundColor:"#fff",userInfo:{},uid:o.default.get(i.UID)||0,homeActive:!1,phoneStatus:!0,pageFooter:t.getStorageSync("pageFoot")||{}},u={SETPHONESTATUS:function(t,e){t.phoneStatus=e},LOGIN:function(t,e){t.token=e.token,o.default.set(i.LOGIN_STATUS,e.token,e.time)},SETUID:function(t,e){t.uid=e,o.default.set(i.UID,e)},UPDATE_LOGIN:function(t,e){t.token=e},LOGOUT:function(t){t.token=void 0,t.uid=void 0,o.default.clear(i.LOGIN_STATUS),o.default.clear(i.UID)},BACKGROUND_COLOR:function(t,e){t.color=e,document.body.style.backgroundColor=e},UPDATE_USERINFO:function(t,e){t.userInfo=e,o.default.set(i.USER_INFO,e)},OPEN_HOME:function(t){t.homeActive=!0},CLOSE_HOME:function(t){t.homeActive=!1},FOOT_UPLOAD:function(t,e){t.pageFooter=e}},c={USERINFO:function(t,e){var n=t.state,a=t.commit;return null===n.userInfo||e?new Promise((function(t){(0,r.getUserInfo)().then((function(e){a("UPDATE_USERINFO",e.data),o.default.set(i.USER_INFO,e.data),t(e.data)}))})).catch((function(){})):Promise.resolve(n.userInfo)}},l={state:s,mutations:u,actions:c};e.default=l}).call(this,n("543d")["default"])},"66fd":function(t,e,n){"use strict";n.r(e),function(t){
|
||
/*!
|
||
* Vue.js v2.6.11
|
||
* (c) 2014-2021 Evan You
|
||
* Released under the MIT License.
|
||
*/
|
||
var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function u(t){return null!==t&&"object"===typeof t}var c=Object.prototype.toString;function l(t){return"[object Object]"===c.call(t)}function f(t){return"[object RegExp]"===c.call(t)}function h(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}v("slot,component",!0);var m=v("key,ref,slot,slot-scope,is");function y(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function w(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var A=/-(\w)/g,x=w((function(t){return t.replace(A,(function(t,e){return e?e.toUpperCase():""}))})),O=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),k=/\B([A-Z])/g,S=w((function(t){return t.replace(k,"-$1").toLowerCase()}));function T(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function C(t,e){return t.bind(e)}var E=Function.prototype.bind?C:T;function $(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function P(t,e){for(var n in e)t[n]=e[n];return t}function L(t){for(var e={},n=0;n<t.length;n++)t[n]&&P(e,t[n]);return e}function j(t,e,n){}var I=function(t,e,n){return!1},N=function(t){return t};function M(t,e){if(t===e)return!0;var n=u(t),r=u(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return M(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return M(t[n],e[n])}))}catch(c){return!1}}function D(t,e){for(var n=0;n<t.length;n++)if(M(t[n],e))return n;return-1}function R(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var U=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:I,isReservedAttr:I,isUnknownElement:I,getTagNamespace:j,parsePlatformTagName:N,mustUseProp:I,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 V(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function z(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var G=new RegExp("[^"+B.source+".$_\\d]");function K(t){if(!G.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var W,X="__proto__"in{},q="undefined"!==typeof window,J="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Y=J&&WXEnvironment.platform.toLowerCase(),Z=q&&window.navigator.userAgent.toLowerCase(),Q=Z&&/msie|trident/.test(Z),tt=(Z&&Z.indexOf("msie 9.0"),Z&&Z.indexOf("edge/")>0),et=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===Y),nt=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/),{}.watch);if(q)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){}}),window.addEventListener("test-passive",null,rt)}catch(ni){}var it=function(){return void 0===W&&(W=!q&&!J&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),W},ot=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"===typeof t&&/native code/.test(t.toString())}var st,ut="undefined"!==typeof Symbol&&at(Symbol)&&"undefined"!==typeof Reflect&&at(Reflect.ownKeys);st="undefined"!==typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ct=j,lt=0,ft=function(){this.id=lt++,this.subs=[]};function ht(t){ft.SharedObject.targetStack.push(t),ft.SharedObject.target=t,ft.target=t}function dt(){ft.SharedObject.targetStack.pop(),ft.SharedObject.target=ft.SharedObject.targetStack[ft.SharedObject.targetStack.length-1],ft.target=ft.SharedObject.target}ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){y(this.subs,t)},ft.prototype.depend=function(){ft.SharedObject.target&&ft.SharedObject.target.addDep(this)},ft.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},ft.SharedObject={},ft.SharedObject.target=null,ft.SharedObject.targetStack=[];var pt=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,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=e&&e.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},gt={child:{configurable:!0}};gt.child.get=function(){return this.componentInstance},Object.defineProperties(pt.prototype,gt);var vt=function(t){void 0===t&&(t="");var e=new pt;return e.text=t,e.isComment=!0,e};function mt(t){return new pt(void 0,void 0,void 0,String(t))}function yt(t){var e=new pt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var _t=Array.prototype,bt=Object.create(_t),wt=["push","pop","shift","unshift","splice","sort","reverse"];wt.forEach((function(t){var e=_t[t];z(bt,t,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var At=Object.getOwnPropertyNames(bt),xt=!0;function Ot(t){xt=t}var kt=function(t){this.value=t,this.dep=new ft,this.vmCount=0,z(t,"__ob__",this),Array.isArray(t)?(X?t.push!==t.__proto__.push?Tt(t,bt,At):St(t,bt):Tt(t,bt,At),this.observeArray(t)):this.walk(t)};function St(t,e){t.__proto__=e}function Tt(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];z(t,o,e[o])}}function Ct(t,e){var n;if(u(t)&&!(t instanceof pt))return b(t,"__ob__")&&t.__ob__ instanceof kt?n=t.__ob__:xt&&!it()&&(Array.isArray(t)||l(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new kt(t)),e&&n&&n.vmCount++,n}function Et(t,e,n,r,i){var o=new ft,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set;s&&!u||2!==arguments.length||(n=t[e]);var c=!i&&Ct(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return ft.SharedObject.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(e)&&Lt(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!==e&&r!==r||s&&!u||(u?u.call(t,e):n=e,c=!i&&Ct(e),o.notify())}})}}function $t(t,e,n){if(Array.isArray(t)&&h(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(Et(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function Pt(t,e){if(Array.isArray(t)&&h(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||b(t,e)&&(delete t[e],n&&n.dep.notify())}}function Lt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Lt(e)}kt.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Et(t,e[n])},kt.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Ct(t[e])};var jt=H.optionMergeStrategies;function It(t,e){if(!e)return t;for(var n,r,i,o=ut?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=t[n],i=e[n],b(t,n)?r!==i&&l(r)&&l(i)&&It(r,i):$t(t,n,i));return t}function Nt(t,e,n){return n?function(){var r="function"===typeof e?e.call(n,n):e,i="function"===typeof t?t.call(n,n):t;return r?It(r,i):i}:e?t?function(){return It("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function Mt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?Dt(n):n}function Dt(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function Rt(t,e,n,r){var i=Object.create(t||null);return e?P(i,e):i}jt.data=function(t,e,n){return n?Nt(t,e,n):e&&"function"!==typeof e?t:Nt(t,e)},F.forEach((function(t){jt[t]=Mt})),U.forEach((function(t){jt[t+"s"]=Rt})),jt.watch=function(t,e,n,r){if(t===nt&&(t=void 0),e===nt&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in P(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},jt.props=jt.methods=jt.inject=jt.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return P(i,t),e&&P(i,e),i},jt.provide=Nt;var Ut=function(t,e){return void 0===e?t:e};function Ft(t,e){var n=t.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;t.props=a}}function Ht(t,e){var n=t.inject;if(n){var r=t.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)?P({from:o},a):{from:a}}else 0}}function Bt(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"===typeof r&&(e[n]={bind:r,update:r})}}function Vt(t,e,n){if("function"===typeof e&&(e=e.options),Ft(e,n),Ht(e,n),Bt(e),!e._base&&(e.extends&&(t=Vt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Vt(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)b(t,o)||s(o);function s(r){var i=jt[r]||Ut;a[r]=i(t[r],e[r],n,r)}return a}function zt(t,e,n,r){if("string"===typeof n){var i=t[e];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 Gt(t,e,n,r){var i=e[t],o=!b(n,t),a=n[t],s=qt(Boolean,i.type);if(s>-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===S(t)){var u=qt(String,i.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=Kt(r,i,t);var c=xt;Ot(!0),Ct(a),Ot(c)}return a}function Kt(t,e,n){if(b(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"===typeof r&&"Function"!==Wt(e.type)?r.call(t):r}}function Wt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Xt(t,e){return Wt(t)===Wt(e)}function qt(t,e){if(!Array.isArray(e))return Xt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Xt(e[n],t))return n;return-1}function Jt(t,e,n){ht();try{if(e){var r=e;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,t,e,n);if(a)return}catch(ni){Zt(ni,r,"errorCaptured hook")}}}Zt(t,e,n)}finally{dt()}}function Yt(t,e,n,r,i){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&d(o)&&!o._handled&&(o.catch((function(t){return Jt(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(ni){Jt(ni,r,i)}return o}function Zt(t,e,n){if(H.errorHandler)try{return H.errorHandler.call(null,t,e,n)}catch(ni){ni!==t&&Qt(ni,null,"config.errorHandler")}Qt(t,e,n)}function Qt(t,e,n){if(!q&&!J||"undefined"===typeof console)throw t}var te,ee=[],ne=!1;function re(){ne=!1;var t=ee.slice(0);ee.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&at(Promise)){var ie=Promise.resolve();te=function(){ie.then(re),et&&setTimeout(j)}}else if(Q||"undefined"===typeof MutationObserver||!at(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())te="undefined"!==typeof setImmediate&&at(setImmediate)?function(){setImmediate(re)}:function(){setTimeout(re,0)};else{var oe=1,ae=new MutationObserver(re),se=document.createTextNode(String(oe));ae.observe(se,{characterData:!0}),te=function(){oe=(oe+1)%2,se.data=String(oe)}}function ue(t,e){var n;if(ee.push((function(){if(t)try{t.call(e)}catch(ni){Jt(ni,e,"nextTick")}else n&&n(e)})),ne||(ne=!0,te()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}var ce=new st;function le(t){fe(t,ce),ce.clear()}function fe(t,e){var n,r,i=Array.isArray(t);if(!(!i&&!u(t)||Object.isFrozen(t)||t instanceof pt)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i){n=t.length;while(n--)fe(t[n],e)}else{r=Object.keys(t),n=r.length;while(n--)fe(t[r[n]],e)}}}var he=w((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}}));function de(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return Yt(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)Yt(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function pe(t,e,n,i,a,s){var u,c,l,f;for(u in t)c=t[u],l=e[u],f=he(u),r(c)||(r(l)?(r(c.fns)&&(c=t[u]=de(c,s)),o(f.once)&&(c=t[u]=a(f.name,c,f.capture)),n(f.name,c,f.capture,f.passive,f.params)):c!==l&&(l.fns=c,t[u]=l));for(u in e)r(t[u])&&(f=he(u),i(f.name,e[u],f.capture))}function ge(t,e,n,o){var a=e.options.mpOptions&&e.options.mpOptions.properties;if(r(a))return n;var s=e.options.mpOptions.externalClasses||[],u=t.attrs,c=t.props;if(i(u)||i(c))for(var l in a){var f=S(l),h=me(n,c,l,f,!0)||me(n,u,l,f,!1);h&&n[l]&&-1!==s.indexOf(f)&&o[x(n[l])]&&(n[l]=o[x(n[l])])}return n}function ve(t,e,n,o){var a=e.options.props;if(r(a))return ge(t,e,{},o);var s={},u=t.attrs,c=t.props;if(i(u)||i(c))for(var l in a){var f=S(l);me(s,c,l,f,!0)||me(s,u,l,f,!1)}return ge(t,e,s,o)}function me(t,e,n,r,o){if(i(e)){if(b(e,n))return t[n]=e[n],o||delete e[n],!0;if(b(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function ye(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function _e(t){return s(t)?[mt(t)]:Array.isArray(t)?we(t):void 0}function be(t){return i(t)&&i(t.text)&&a(t.isComment)}function we(t,e){var n,a,u,c,l=[];for(n=0;n<t.length;n++)a=t[n],r(a)||"boolean"===typeof a||(u=l.length-1,c=l[u],Array.isArray(a)?a.length>0&&(a=we(a,(e||"")+"_"+n),be(a[0])&&be(c)&&(l[u]=mt(c.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?be(c)?l[u]=mt(c.text+a):""!==a&&l.push(mt(a)):be(a)&&be(c)?l[u]=mt(c.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),l.push(a)));return l}function Ae(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function xe(t){var e=Oe(t.$options.inject,t);e&&(Ot(!1),Object.keys(e).forEach((function(n){Et(t,n,e[n])})),Ot(!0))}function Oe(t,e){if(t){for(var n=Object.create(null),r=ut?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=t[o].from,s=e;while(s){if(s._provided&&b(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var u=t[o].default;n[o]="function"===typeof u?u.call(e):u}else 0}}return n}}function ke(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!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,u=n[s]||(n[s]=[]);"template"===o.tag?u.push.apply(u,o.children||[]):u.push(o)}}for(var c in n)n[c].every(Se)&&delete n[c];return n}function Se(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Te(t,e,r){var i,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=Ce(e,u,t[u]))}else i={};for(var c in e)c in i||(i[c]=Ee(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),z(i,"$stable",a),z(i,"$key",s),z(i,"$hasNormal",o),i}function Ce(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:_e(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Ee(t,e){return function(){return t[e]}}function $e(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r,r,r);else if("number"===typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r,r,r);else if(u(t))if(ut&&t[Symbol.iterator]){n=[];var c=t[Symbol.iterator](),l=c.next();while(!l.done)n.push(e(l.value,n.length,r,r++)),l=c.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=e(t[s],s,r,r);return i(n)||(n=[]),n._isVList=!0,n}function Pe(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=P(P({},r),n)),i=o(n,this,n._i)||e):i=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Le(t){return zt(this.$options,"filters",t,!0)||N}function je(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function Ie(t,e,n,r,i){var o=H.keyCodes[e]||n;return i&&r&&!H.keyCodes[e]?je(i,r):o?je(o,t):r?S(r)!==e:void 0}function Ne(t,e,n,r,i){if(n)if(u(n)){var o;Array.isArray(n)&&(n=L(n));var a=function(a){if("class"===a||"style"===a||m(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||H.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var u=x(a),c=S(a);if(!(u in o)&&!(c in o)&&(o[a]=n[a],i)){var l=t.on||(t.on={});l["update:"+a]=function(t){n[a]=t}}};for(var s in n)a(s)}else;return t}function Me(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),Re(r,"__static__"+t,!1)),r}function De(t,e,n){return Re(t,"__once__"+e+(n?"_"+n:""),!0),t}function Re(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!==typeof t[r]&&Ue(t[r],e+"_"+r,n);else Ue(t,e,n)}function Ue(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Fe(t,e){if(e)if(l(e)){var n=t.on=t.on?P({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function He(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?He(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Be(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"===typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Ve(t,e){return"string"===typeof t?e+t:t}function ze(t){t._o=De,t._n=g,t._s=p,t._l=$e,t._t=Pe,t._q=M,t._i=D,t._m=Me,t._f=Le,t._k=Ie,t._b=Ne,t._v=mt,t._e=vt,t._u=He,t._g=Fe,t._d=Be,t._p=Ve}function Ge(t,e,r,i,a){var s,u=this,c=a.options;b(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var l=o(c._compiled),f=!l;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=Oe(c.inject,i),this.slots=function(){return u.$slots||Te(t.scopedSlots,u.$slots=ke(r,i)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Te(t.scopedSlots,this.slots())}}),l&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Te(t.scopedSlots,this.$slots)),c._scopeId?this._c=function(t,e,n,r){var o=on(s,t,e,n,r,f);return o&&!Array.isArray(o)&&(o.fnScopeId=c._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return on(s,t,e,n,r,f)}}function Ke(t,e,r,o,a){var s=t.options,u={},c=s.props;if(i(c))for(var l in c)u[l]=Gt(l,c,e||n);else i(r.attrs)&&Xe(u,r.attrs),i(r.props)&&Xe(u,r.props);var f=new Ge(r,u,a,o,t),h=s.render.call(null,f._c,f);if(h instanceof pt)return We(h,r,f.parent,s,f);if(Array.isArray(h)){for(var d=_e(h)||[],p=new Array(d.length),g=0;g<d.length;g++)p[g]=We(d[g],r,f.parent,s,f);return p}}function We(t,e,n,r,i){var o=yt(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Xe(t,e){for(var n in e)t[x(n)]=e[n]}ze(Ge.prototype);var qe={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;qe.prepatch(n,n)}else{var r=t.componentInstance=Ze(t,On);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,r=e.componentInstance=t.componentInstance;Cn(r,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(Ln(n,"onServiceCreated"),Ln(n,"onServiceAttached"),n._isMounted=!0,Ln(n,"mounted")),t.data.keepAlive&&(e._isMounted?zn(n):$n(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Pn(e,!0):e.$destroy())}},Je=Object.keys(qe);function Ye(t,e,n,a,s){if(!r(t)){var c=n.$options._base;if(u(t)&&(t=c.extend(t)),"function"===typeof t){var l;if(r(t.cid)&&(l=t,t=gn(l,c),void 0===t))return pn(l,e,n,a,s);e=e||{},dr(t),i(e.model)&&en(t.options,e);var f=ve(e,t,s,n);if(o(t.options.functional))return Ke(t,f,e,n,a);var h=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var d=e.slot;e={},d&&(e.slot=d)}Qe(e);var p=t.options.name||s,g=new pt("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:f,listeners:h,tag:s,children:a},l);return g}}}function Ze(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}function Qe(t){for(var e=t.hook||(t.hook={}),n=0;n<Je.length;n++){var r=Je[n],i=e[r],o=qe[r];i===o||i&&i._merged||(e[r]=i?tn(o,i):o)}}function tn(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function en(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),a=o[r],s=e.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(t,e,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=rn),an(t,e,n,r,i)}function an(t,e,n,r,o){if(i(n)&&i(n.__ob__))return vt();if(i(n)&&i(n.is)&&(e=n.is),!e)return vt();var a,s,u;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===rn?r=_e(r):o===nn&&(r=ye(r)),"string"===typeof e)?(s=t.$vnode&&t.$vnode.ns||H.getTagNamespace(e),a=H.isReservedTag(e)?new pt(H.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!i(u=zt(t.$options,"components",e))?new pt(e,n,r,void 0,void 0,t):Ye(u,n,t,r,e)):a=Ye(e,n,t,r);return Array.isArray(a)?a:i(a)?(i(s)&&sn(a,s),i(n)&&un(n),a):vt()}function sn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),i(t.children))for(var a=0,s=t.children.length;a<s;a++){var u=t.children[a];i(u.tag)&&(r(u.ns)||o(n)&&"svg"!==u.tag)&&sn(u,e,n)}}function un(t){u(t.style)&&le(t.style),u(t.class)&&le(t.class)}function cn(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=ke(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return on(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return on(t,e,n,r,i,!0)};var o=r&&r.data;Et(t,"$attrs",o&&o.attrs||n,null,!0),Et(t,"$listeners",e._parentListeners||n,null,!0)}var ln,fn=null;function hn(t){ze(t.prototype),t.prototype.$nextTick=function(t){return ue(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=Te(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{fn=e,t=r.call(e._renderProxy,e.$createElement)}catch(ni){Jt(ni,e,"render"),t=e._vnode}finally{fn=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof pt||(t=vt()),t.parent=i,t}}function dn(t,e){return(t.__esModule||ut&&"Module"===t[Symbol.toStringTag])&&(t=t.default),u(t)?e.extend(t):t}function pn(t,e,n,r,i){var o=vt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}function gn(t,e){if(o(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;var n=fn;if(n&&i(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),o(t.loading)&&i(t.loadingComp))return t.loadingComp;if(n&&!i(t.owners)){var a=t.owners=[n],s=!0,c=null,l=null;n.$on("hook:destroyed",(function(){return y(a,n)}));var f=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==c&&(clearTimeout(c),c=null),null!==l&&(clearTimeout(l),l=null))},h=R((function(n){t.resolved=dn(n,e),s?a.length=0:f(!0)})),p=R((function(e){i(t.errorComp)&&(t.error=!0,f(!0))})),g=t(h,p);return u(g)&&(d(g)?r(t.resolved)&&g.then(h,p):d(g.component)&&(g.component.then(h,p),i(g.error)&&(t.errorComp=dn(g.error,e)),i(g.loading)&&(t.loadingComp=dn(g.loading,e),0===g.delay?t.loading=!0:c=setTimeout((function(){c=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,f(!1))}),g.delay||200)),i(g.timeout)&&(l=setTimeout((function(){l=null,r(t.resolved)&&p(null)}),g.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}function vn(t){return t.isComment&&t.asyncFactory}function mn(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&(i(n.componentOptions)||vn(n)))return n}}function yn(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&An(t,e)}function _n(t,e){ln.$on(t,e)}function bn(t,e){ln.$off(t,e)}function wn(t,e){var n=ln;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function An(t,e,n){ln=t,pe(e,n||{},_n,bn,wn,t),ln=void 0}function xn(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;var s=a.length;while(s--)if(o=a[s],o===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?$(n):n;for(var r=$(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)Yt(n[o],e,r,e,i)}return e}}var On=null;function kn(t){var e=On;return On=t,function(){On=e}}function Sn(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Tn(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=kn(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!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)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Ln(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||y(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Ln(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function Cn(t,e,r,i,o){var a=i.data.scopedSlots,s=t.$scopedSlots,u=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),c=!!(o||t.$options._renderChildren||u);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o,t.$attrs=i.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){Ot(!1);for(var l=t._props,f=t.$options._propKeys||[],h=0;h<f.length;h++){var d=f[h],p=t.$options.props;l[d]=Gt(d,p,e,t)}Ot(!0),t.$options.propsData=e}t._$updateProperties&&t._$updateProperties(t),r=r||n;var g=t.$options._parentListeners;t.$options._parentListeners=r,An(t,r,g),c&&(t.$slots=ke(o,i.context),t.$forceUpdate())}function En(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function $n(t,e){if(e){if(t._directInactive=!1,En(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)$n(t.$children[n]);Ln(t,"activated")}}function Pn(t,e){if((!e||(t._directInactive=!0,!En(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Pn(t.$children[n]);Ln(t,"deactivated")}}function Ln(t,e){ht();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Yt(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),dt()}var jn=[],In=[],Nn={},Mn=!1,Dn=!1,Rn=0;function Un(){Rn=jn.length=In.length=0,Nn={},Mn=Dn=!1}var Fn=Date.now;if(q&&!Q){var Hn=window.performance;Hn&&"function"===typeof Hn.now&&Fn()>document.createEvent("Event").timeStamp&&(Fn=function(){return Hn.now()})}function Bn(){var t,e;for(Fn(),Dn=!0,jn.sort((function(t,e){return t.id-e.id})),Rn=0;Rn<jn.length;Rn++)t=jn[Rn],t.before&&t.before(),e=t.id,Nn[e]=null,t.run();var n=In.slice(),r=jn.slice();Un(),Gn(n),Vn(r),ot&&H.devtools&&ot.emit("flush")}function Vn(t){var e=t.length;while(e--){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Ln(r,"updated")}}function zn(t){t._inactive=!1,In.push(t)}function Gn(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,$n(t[e],!0)}function Kn(t){var e=t.id;if(null==Nn[e]){if(Nn[e]=!0,Dn){var n=jn.length-1;while(n>Rn&&jn[n].id>t.id)n--;jn.splice(n+1,0,t)}else jn.push(t);Mn||(Mn=!0,ue(Bn))}}var Wn=0,Xn=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._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 st,this.newDepIds=new st,this.expression="","function"===typeof e?this.getter=e:(this.getter=K(e),this.getter||(this.getter=j)),this.value=this.lazy?void 0:this.get()};Xn.prototype.get=function(){var t;ht(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(ni){if(!this.user)throw ni;Jt(ni,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&le(t),dt(),this.cleanupDeps()}return t},Xn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},Xn.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.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},Xn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Kn(this)},Xn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(ni){Jt(ni,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},Xn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Xn.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},Xn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var qn={enumerable:!0,configurable:!0,get:j,set:j};function Jn(t,e,n){qn.get=function(){return this[e][n]},qn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,qn)}function Yn(t){t._watchers=[];var e=t.$options;e.props&&Zn(t,e.props),e.methods&&ar(t,e.methods),e.data?Qn(t):Ct(t._data={},!0),e.computed&&nr(t,e.computed),e.watch&&e.watch!==nt&&sr(t,e.watch)}function Zn(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Ot(!1);var a=function(o){i.push(o);var a=Gt(o,e,n,t);Et(r,o,a),o in t||Jn(t,"_props",o)};for(var s in e)a(s);Ot(!0)}function Qn(t){var e=t.$options.data;e=t._data="function"===typeof e?tr(e,t):e||{},l(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&b(r,o)||V(o)||Jn(t,"_data",o)}Ct(e,!0)}function tr(t,e){ht();try{return t.call(e,e)}catch(ni){return Jt(ni,e,"data()"),{}}finally{dt()}}var er={lazy:!0};function nr(t,e){var n=t._computedWatchers=Object.create(null),r=it();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new Xn(t,a||j,j,er)),i in t||rr(t,i,o)}}function rr(t,e,n){var r=!it();"function"===typeof n?(qn.get=r?ir(e):or(n),qn.set=j):(qn.get=n.get?r&&!1!==n.cache?ir(e):or(n.get):j,qn.set=n.set||j),Object.defineProperty(t,e,qn)}function ir(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.SharedObject.target&&e.depend(),e.value}}function or(t){return function(){return t.call(this,this)}}function ar(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?j:E(e[n],t)}function sr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)ur(t,n,r[i]);else ur(t,n,r)}}function ur(t,e,n,r){return l(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,r)}function cr(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=$t,t.prototype.$delete=Pt,t.prototype.$watch=function(t,e,n){var r=this;if(l(e))return ur(r,t,e,n);n=n||{},n.user=!0;var i=new Xn(r,t,e,n);if(n.immediate)try{e.call(r,i.value)}catch(o){Jt(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var lr=0;function fr(t){t.prototype._init=function(t){var e=this;e._uid=lr++,e._isVue=!0,t&&t._isComponent?hr(e,t):e.$options=Vt(dr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Sn(e),yn(e),cn(e),Ln(e,"beforeCreate"),!e._$fallback&&xe(e),Yn(e),!e._$fallback&&Ae(e),!e._$fallback&&Ln(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function hr(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function dr(t){var e=t.options;if(t.super){var n=dr(t.super),r=t.superOptions;if(n!==r){t.superOptions=n;var i=pr(t);i&&P(t.extendOptions,i),e=t.options=Vt(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function pr(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}function gr(t){this._init(t)}function vr(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=$(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function mr(t){t.mixin=function(t){return this.options=Vt(this.options,t),this}}function yr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Vt(n.options,t),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,U.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=P({},a.options),i[r]=a,a}}function _r(t){var e=t.options.props;for(var n in e)Jn(t.prototype,"_props",n)}function br(t){var e=t.options.computed;for(var n in e)rr(t.prototype,n,e[n])}function wr(t){U.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Ar(t){return t&&(t.Ctor.options.name||t.tag)}function xr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function Or(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Ar(a.componentOptions);s&&!e(s)&&kr(n,o,r,i)}}}function kr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}fr(gr),cr(gr),xn(gr),Tn(gr),hn(gr);var Sr=[String,RegExp,Array],Tr={name:"keep-alive",abstract:!0,props:{include:Sr,exclude:Sr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)kr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Or(t,(function(t){return xr(e,t)}))})),this.$watch("exclude",(function(e){Or(t,(function(t){return!xr(e,t)}))}))},render:function(){var t=this.$slots.default,e=mn(t),n=e&&e.componentOptions;if(n){var r=Ar(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!xr(o,r))||a&&r&&xr(a,r))return e;var s=this,u=s.cache,c=s.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;u[l]?(e.componentInstance=u[l].componentInstance,y(c,l),c.push(l)):(u[l]=e,c.push(l),this.max&&c.length>parseInt(this.max)&&kr(u,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Cr={KeepAlive:Tr};function Er(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ct,extend:P,mergeOptions:Vt,defineReactive:Et},t.set=$t,t.delete=Pt,t.nextTick=ue,t.observable=function(t){return Ct(t),t},t.options=Object.create(null),U.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,P(t.options.components,Cr),vr(t),mr(t),yr(t),wr(t)}Er(gr),Object.defineProperty(gr.prototype,"$isServer",{get:it}),Object.defineProperty(gr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gr,"FunctionalRenderContext",{value:Ge}),gr.version="2.6.11";var $r="[object Array]",Pr="[object Object]";function Lr(t,e){var n={};return jr(t,e),Ir(t,e,"",n),n}function jr(t,e){if(t!==e){var n=Mr(t),r=Mr(e);if(n==Pr&&r==Pr){if(Object.keys(t).length>=Object.keys(e).length)for(var i in e){var o=t[i];void 0===o?t[i]=null:jr(o,e[i])}}else n==$r&&r==$r&&t.length>=e.length&&e.forEach((function(e,n){jr(t[n],e)}))}}function Ir(t,e,n,r){if(t!==e){var i=Mr(t),o=Mr(e);if(i==Pr)if(o!=Pr||Object.keys(t).length<Object.keys(e).length)Nr(r,n,t);else{var a=function(i){var o=t[i],a=e[i],s=Mr(o),u=Mr(a);if(s!=$r&&s!=Pr)o!==e[i]&&Nr(r,(""==n?"":n+".")+i,o);else if(s==$r)u!=$r||o.length<a.length?Nr(r,(""==n?"":n+".")+i,o):o.forEach((function(t,e){Ir(t,a[e],(""==n?"":n+".")+i+"["+e+"]",r)}));else if(s==Pr)if(u!=Pr||Object.keys(o).length<Object.keys(a).length)Nr(r,(""==n?"":n+".")+i,o);else for(var c in o)Ir(o[c],a[c],(""==n?"":n+".")+i+"."+c,r)};for(var s in t)a(s)}else i==$r?o!=$r||t.length<e.length?Nr(r,n,t):t.forEach((function(t,i){Ir(t,e[i],n+"["+i+"]",r)})):Nr(r,n,t)}}function Nr(t,e,n){t[e]=n}function Mr(t){return Object.prototype.toString.call(t)}function Dr(t){if(t.__next_tick_callbacks&&t.__next_tick_callbacks.length){if(Object({NODE_ENV:"production",VUE_APP_NAME:"routineTitle",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG)t.$scope;var e=t.__next_tick_callbacks.slice(0);t.__next_tick_callbacks.length=0;for(var n=0;n<e.length;n++)e[n]()}}function Rr(t){return jn.find((function(e){return t._watcher===e}))}function Ur(t,e){if(!t.__next_tick_pending&&!Rr(t)){if(Object({NODE_ENV:"production",VUE_APP_NAME:"routineTitle",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG)t.$scope;return ue(e,t)}if(Object({NODE_ENV:"production",VUE_APP_NAME:"routineTitle",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG)t.$scope;var n;if(t.__next_tick_callbacks||(t.__next_tick_callbacks=[]),t.__next_tick_callbacks.push((function(){if(e)try{e.call(t)}catch(ni){Jt(ni,t,"nextTick")}else n&&n(t)})),!e&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}function Fr(t){var e=Object.create(null),n=[].concat(Object.keys(t._data||{}),Object.keys(t._computedWatchers||{}));n.reduce((function(e,n){return e[n]=t[n],e}),e);var r=t.__composition_api_state__||t.__secret_vfa_state__,i=r&&r.rawBindings;return i&&Object.keys(i).forEach((function(n){e[n]=t[n]})),Object.assign(e,t.$mp.data||{}),Array.isArray(t.$options.behaviors)&&-1!==t.$options.behaviors.indexOf("uni://form-field")&&(e["name"]=t.name,e["value"]=t.value),JSON.parse(JSON.stringify(e))}var Hr=function(t,e){var n=this;if(null!==e&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,i=Object.create(null);try{i=Fr(this)}catch(s){}i.__webviewId__=r.data.__webviewId__;var o=Object.create(null);Object.keys(i).forEach((function(t){o[t]=r.data[t]}));var a=!1===this.$shouldDiffData?i:Lr(i,o);Object.keys(a).length?(Object({NODE_ENV:"production",VUE_APP_NAME:"routineTitle",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG,this.__next_tick_pending=!0,r.setData(a,(function(){n.__next_tick_pending=!1,Dr(n)}))):Dr(this)}};function Br(){}function Vr(t,e,n){if(!t.mpType)return t;"app"===t.mpType&&(t.$options.render=Br),t.$options.render||(t.$options.render=Br),!t._$fallback&&Ln(t,"beforeMount");var r=function(){t._update(t._render(),n)};return new Xn(t,r,j,{before:function(){t._isMounted&&!t._isDestroyed&&Ln(t,"beforeUpdate")}},!0),n=!1,t}function zr(t,e){return i(t)||i(e)?Gr(t,Kr(e)):""}function Gr(t,e){return t?e?t+" "+e:t:e||""}function Kr(t){return Array.isArray(t)?Wr(t):u(t)?Xr(t):"string"===typeof t?t:""}function Wr(t){for(var e,n="",r=0,o=t.length;r<o;r++)i(e=Kr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function Xr(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var qr=w((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function Jr(t){return Array.isArray(t)?L(t):"string"===typeof t?qr(t):t}var Yr=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Zr(t,e){var n=e.split("."),r=n[0];return 0===r.indexOf("__$n")&&(r=parseInt(r.replace("__$n",""))),1===n.length?t[r]:Zr(t[r],n.slice(1).join("."))}function Qr(t){t.config.errorHandler=function(e,n,r){t.util.warn("Error in "+r+': "'+e.toString()+'"',n);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(e)};var e=t.prototype.$emit;t.prototype.$emit=function(t){return this.$scope&&t&&this.$scope["triggerEvent"](t,{__args__:$(arguments,1)}),e.apply(this,arguments)},t.prototype.$nextTick=function(t){return Ur(this,t)},Yr.forEach((function(e){t.prototype[e]=function(t){return this.$scope&&this.$scope[e]?this.$scope[e](t):"undefined"!==typeof my?"createSelectorQuery"===e?my.createSelectorQuery(t):"createIntersectionObserver"===e?my.createIntersectionObserver(t):void 0:void 0}})),t.prototype.__init_provide=Ae,t.prototype.__init_injections=xe,t.prototype.__call_hook=function(t,e){var n=this;ht();var r,i=n.$options[t],o=t+" hook";if(i)for(var a=0,s=i.length;a<s;a++)r=Yt(i[a],n,e?[e]:null,n,o);return n._hasHookEvent&&n.$emit("hook:"+t,e),dt(),r},t.prototype.__set_model=function(t,e,n,r){Array.isArray(r)&&(-1!==r.indexOf("trim")&&(n=n.trim()),-1!==r.indexOf("number")&&(n=this._n(n))),t||(t=this),t[e]=n},t.prototype.__set_sync=function(t,e,n){t||(t=this),t[e]=n},t.prototype.__get_orig=function(t){return l(t)&&t["$orig"]||t},t.prototype.__get_value=function(t,e){return Zr(e||this,t)},t.prototype.__get_class=function(t,e){return zr(e,t)},t.prototype.__get_style=function(t,e){if(!t&&!e)return"";var n=Jr(t),r=e?P(e,n):n;return Object.keys(r).map((function(t){return S(t)+":"+r[t]})).join(";")},t.prototype.__map=function(t,e){var n,r,i,o,a;if(Array.isArray(t)){for(n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e(t[r],r);return n}if(u(t)){for(o=Object.keys(t),n=Object.create(null),r=0,i=o.length;r<i;r++)a=o[r],n[a]=e(t[a],a,r);return n}if("number"===typeof t){for(n=new Array(t),r=0,i=t;r<i;r++)n[r]=e(r,r);return n}return[]}}var ti=["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 ei(t){var e=t.extend;t.extend=function(t){t=t||{};var n=t.methods;return n&&Object.keys(n).forEach((function(e){-1!==ti.indexOf(e)&&(t[e]=n[e],delete n[e])})),e.call(this,t)};var n=t.config.optionMergeStrategies,r=n.created;ti.forEach((function(t){n[t]=r})),t.prototype.__lifecycle_hooks__=ti}gr.prototype.__patch__=Hr,gr.prototype.$mount=function(t,e){return Vr(this,t,e)},ei(gr),Qr(gr),e["default"]=gr}.call(this,n("c8ba"))},"6b37":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=s(n("66fd")),i=s(n("26cb")),o=s(n("5b94")),a=s(n("5bb2"));function s(t){return t&&t.__esModule?t:{default:t}}r.default.use(i.default);var u=!1,c=new i.default.Store({modules:o.default,getters:a.default,strict:u});e.default=c},"6e38":function(t,e){},"7f3a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLotteryData=o,e.startLottery=a,e.receiveLottery=s,e.getLotteryList=u;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t){return r.default.get("v2/lottery/info/".concat(t))}function a(t){return r.default.post("v2/lottery",t)}function s(t){return r.default.post("v2/lottery/receive",t)}function u(t){return r.default.get("v2/lottery/record",t)}},"7fe6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIndexData=o,e.getServerType=a,e.getLogo=s,e.setFormId=u,e.setCouponReceive=c,e.getCoupons=l,e.getCouponsIndex=f,e.getUserCoupons=h,e.getNewCoupon=d,e.getArticleCategoryList=p,e.getArticleList=g,e.getArticleHotList=v,e.getArticleBannerList=m,e.getArticleDetails=y,e.loginMobile=_,e.verifyCode=b,e.registerVerify=w,e.phoneRegister=A,e.phoneRegisterReset=x,e.phoneLogin=O,e.switchH5Login=k,e.bindingPhone=S,e.bindingUserPhone=T,e.logout=C,e.getTemlIds=E,e.pink=$,e.getCity=P,e.getLiveList=L,e.getDiy=j,e.colorChange=I,e.follow=N,e.updatePhone=M,e.getCouponV2=D,e.getCouponNewUser=R,e.category=U,e.searchList=F,e.clearSearch=H,e.siteConfig=B,e.wechatAppAuth=V,e.getCustomerType=z,e.getOpenAdv=G;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(){return r.default.get("v2/index",{},{noAuth:!0})}function a(){return r.default.get("v2/site_serve",{},{noAuth:!0})}function s(){return r.default.get("wechat/get_logo",{},{noAuth:!0})}function u(t){return r.default.post("wechat/set_form_id",{formId:t})}function c(t){return r.default.post("coupon/receive",{couponId:t})}function l(t){return r.default.get("v2/coupons",t,{noAuth:!0})}function f(t){return r.default.get("coupons",t,{noAuth:!0})}function h(t,e){return r.default.get("coupons/user/"+t,e)}function d(){return r.default.get("v2/new_coupon")}function p(){return r.default.get("article/category/list",{},{noAuth:!0})}function g(t,e){return r.default.get("article/list/"+t,e,{noAuth:!0})}function v(){return r.default.get("article/hot/list",{},{noAuth:!0})}function m(){return r.default.get("article/banner/list",{},{noAuth:!0})}function y(t){return r.default.get("article/details/"+t,{},{noAuth:!0})}function _(t){return r.default.post("login/mobile",t,{noAuth:!0})}function b(){return r.default.get("verify_code",{},{noAuth:!0})}function w(t,e,n,i){return r.default.post("register/verify",{phone:t,type:void 0===e?"reset":e,key:n,code:i},{noAuth:!0})}function A(t){return r.default.post("register",t,{noAuth:!0})}function x(t){return r.default.post("register/reset",t,{noAuth:!0})}function O(t){return r.default.post("login",t,{noAuth:!0})}function k(){return r.default.post("switch_h5",{from:"routine"})}function S(t){return r.default.post("binding",t,{noAuth:!0})}function T(t){return r.default.post("user/binding",t)}function C(){return r.default.get("logout")}function E(){return r.default.get("wechat/teml_ids",{},{noAuth:!0})}function $(){return r.default.get("pink",{},{noAuth:!0})}function P(){return r.default.get("city_list",{},{noAuth:!0})}function L(t,e){return r.default.get("wechat/live",{page:t,limit:e},{noAuth:!0})}function j(t){return r.default.get("v2/diy/get_diy/default",{},{noAuth:!0})}function I(t){return r.default.get("v2/diy/color_change/"+t,{},{noAuth:!0})}function N(){return r.default.get("wechat/follow",{},{noAuth:!0})}function M(t){return r.default.post("user/updatePhone",t,{noAuth:!0})}function D(){return r.default.get("v2/get_today_coupon",{},{noAuth:!0})}function R(){return r.default.get("v2/new_coupon",{},{noAuth:!0})}function U(t){return r.default.get("category",t,{noAuth:!0})}function F(t){return r.default.get("v2/user/search_list",t,{noAuth:!0})}function H(){return r.default.get("v2/user/clean_search")}function B(t){return r.default.get("site_config",t,{noAuth:!0})}function V(t){return r.default.post("wechat/app_auth",t,{noAuth:!0})}function z(t){return r.default.get("get_customer_type",{},{noAuth:!0})}function G(t){return r.default.get("get_open_adv",{},{noAuth:!0})}},8632:function(t,e,n){"use strict";function r(t){if(0===t.indexOf("_www")||0===t.indexOf("_doc")||0===t.indexOf("_documents")||0===t.indexOf("_downloads"))return t;if(0===t.indexOf("file://"))return t;if(0===t.indexOf("/storage/emulated/0/"))return t;if(0===t.indexOf("/")){var e=plus.io.convertAbsoluteFileSystem(t);if(e!==t)return e;t=t.substr(1)}return"_www/"+t}function i(t){return new Promise((function(e,n){if("object"===typeof window&&"document"in window){if("function"===typeof FileReader){var i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="blob",i.onload=function(){if(200===this.status){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.onerror=n,t.readAsDataURL(this.response)}},i.onerror=n,void i.send()}var o=document.createElement("canvas"),a=o.getContext("2d"),s=new Image;return s.onload=function(){o.width=s.width,o.height=s.height,a.drawImage(s,0,0),e(o.toDataURL()),o.height=o.width=0},s.onerror=n,void(s.src=t)}"object"!==typeof plus?"object"===typeof wx&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:t,encoding:"base64",success:function(t){e("data:image/png;base64,"+t.data)},fail:function(t){n(t)}}):n(new Error("not support")):plus.io.resolveLocalFileSystemURL(r(t),(function(t){t.file((function(t){var r=new plus.io.FileReader;r.onload=function(t){e(t.target.result)},r.onerror=function(t){n(t)},r.readAsDataURL(t)}),(function(t){n(t)}))}),(function(t){n(t)}))}))}function o(t){return new Promise((function(e,n){if("object"===typeof window&&"document"in window){t=t.split(",");var r=t[0].match(/:(.*?);/)[1],i=atob(t[1]),o=i.length,a=new Uint8Array(o);while(o--)a[o]=i.charCodeAt(o);return e((window.URL||window.webkitURL).createObjectURL(new Blob([a],{type:r})))}var s=t.match(/data\:\S+\/(\S+);/);s?s=s[1]:n(new Error("base64 error"));var u=Date.now()+"."+s;if("object"!==typeof plus)if("object"===typeof wx&&wx.canIUse("getFileSystemManager")){var c=wx.env.USER_DATA_PATH+"/"+u;wx.getFileSystemManager().writeFile({filePath:c,data:t.replace(/^data:\S+\/\S+;base64,/,""),encoding:"base64",success:function(){e(c)},fail:function(t){n(t)}})}else n(new Error("not support"));else{var l=new plus.nativeObj.Bitmap("bitmap"+Date.now());l.loadBase64Data(t,(function(){var t="_doc/uniapp_temp/"+u;l.save(t,{},(function(){l.clear(),e(t)}),(function(t){l.clear(),n(t)}))}),(function(t){l.clear(),n(t)}))}}))}Object.defineProperty(e,"__esModule",{value:!0}),e.pathToBase64=i,e.base64ToPath=o},9011:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("514d"),i=n("c6cd"),o=a(n("6b37"));function a(t){return t&&t.__esModule?t:{default:t}}function s(e,n,a,s){var u=s.noAuth,c=void 0!==u&&u,l=s.noVerify,f=void 0!==l&&l,h=r.HTTP_REQUEST_URL,d=r.HEADER;return c||o.default.state.app.token||(0,i.checkLogin)()?(o.default.state.app.token&&(d[r.TOKENNAME]="Bearer "+o.default.state.app.token),new Promise((function(r,o){t.request({url:h+"/api/"+e,method:n||"GET",header:d,data:a||{},success:function(e){f||200==e.data.status?r(e.data,e):-1!==[41e4,410001,410002].indexOf(e.data.status)?((0,i.toLogin)(),o(e.data)):410010==e.data.status?t.showModal({title:"提示",content:e.data.msg,showCancel:!1,confirmText:"我知道了"}):o(e.data.msg||"系统错误")},fail:function(t){o("请求失败")}})}))):((0,i.toLogin)(),Promise.reject({msg:"未登录"}))}var u={};["options","get","post","put","head","delete","trace","connect"].forEach((function(t){u[t]=function(e,n,r){return s(e,t,n,r||{})}}));var c=u;e.default=c}).call(this,n("543d")["default"])},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",c="object"===typeof t,l=e.regeneratorRuntime;if(l)c&&(t.exports=l);else{l=e.regeneratorRuntime=c?t.exports:{},l.wrap=b;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",g={},v={};v[a]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(L([])));y&&y!==r&&i.call(y,a)&&(v=y);var _=O.prototype=A.prototype=Object.create(v);x.prototype=_.constructor=O,O.constructor=x,O[u]=x.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(_),t},l.awrap=function(t){return{__await:t}},k(S.prototype),S.prototype[s]=function(){return this},l.AsyncIterator=S,l.async=function(t,e,n,r){var i=new S(b(t,e,n,r));return l.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(_),_[u]="Generator",_[a]=function(){return this},_.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=L,P.prototype={constructor:P,reset:function(t){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($),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.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 u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;$(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function b(t,e,n,r){var i=e&&e.prototype instanceof A?e:A,o=Object.create(i.prototype),a=new P(r||[]);return o._invoke=T(t,n,a),o}function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function A(){}function x(){}function O(){}function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function S(t){function e(n,r,o,a){var s=w(t[n],t,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"===typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return e("throw",t,o,a)}))}a(s.arg)}var n;function r(t,r){function i(){return new Promise((function(n,i){e(t,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function T(t,e,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return j()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===g)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=d;var u=w(t,e,n);if("normal"===u.type){if(r=n.done?p:h,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}function C(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,C(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=w(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){while(++r<t.length)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},"97d0":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={};(function(){function e(t){var e,n,r;return t<128?[t]:t<2048?(e=192+(t>>6),n=128+(63&t),[e,n]):(e=224+(t>>12),n=128+(t>>6&63),r=128+(63&t),[e,n,r])}function r(t){for(var n=[],r=0;r<t.length;r++)for(var i=t.charCodeAt(r),o=e(i),a=0;a<o.length;a++)n.push(o[a]);return n}function i(t,e){this.typeNumber=-1,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.rsBlocks=null,this.totalDataCount=-1,this.data=t,this.utf8bytes=r(t),this.make()}i.prototype={constructor:i,getModuleCount:function(){return this.moduleCount},make:function(){this.getRightType(),this.dataCache=this.createData(),this.createQrcode()},makeImpl:function(t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var e=0;e<this.moduleCount;e++)this.modules[e]=new Array(this.moduleCount);this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(!0,t),this.typeNumber>=7&&this.setupTypeNumber(!0),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(this.modules[t+n][e+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},createQrcode:function(){for(var t=0,e=0,n=null,r=0;r<8;r++){this.makeImpl(r);var i=s.getLostPoint(this);(0==r||t>i)&&(t=i,e=r,n=this.modules)}this.modules=n,this.setupTypeInfo(!1,e),this.typeNumber>=7&&this.setupTypeNumber(!1)},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0,null==this.modules[6][t]&&(this.modules[6][t]=t%2==0))},setupPositionAdjustPattern:function(){for(var t=s.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var n=0;n<t.length;n++){var r=t[e],i=t[n];if(null==this.modules[r][i])for(var o=-2;o<=2;o++)for(var a=-2;a<=2;a++)this.modules[r+o][i+a]=-2==o||2==o||-2==a||2==a||0==o&&0==a}},setupTypeNumber:function(t){for(var e=s.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!t&&1==(e>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r,this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(t,e){for(var n=o[this.errorCorrectLevel]<<3|e,r=s.getBCHTypeInfo(n),i=0;i<15;i++){var a=!t&&1==(r>>i&1);i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a;a=!t&&1==(r>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a}this.modules[this.moduleCount-8][8]=!t},createData:function(){var t=new h,e=this.typeNumber>9?16:8;t.put(4,4),t.put(this.utf8bytes.length,e);for(var n=0,r=this.utf8bytes.length;n<r;n++)t.put(this.utf8bytes[n],8);t.length+4<=8*this.totalDataCount&&t.put(0,4);while(t.length%8!=0)t.putBit(!1);while(1){if(t.length>=8*this.totalDataCount)break;if(t.put(i.PAD0,8),t.length>=8*this.totalDataCount)break;t.put(i.PAD1,8)}return this.createBytes(t)},createBytes:function(t){for(var e=0,n=0,r=0,i=this.rsBlock.length/3,o=new Array,a=0;a<i;a++)for(var u=this.rsBlock[3*a+0],c=this.rsBlock[3*a+1],f=this.rsBlock[3*a+2],h=0;h<u;h++)o.push([f,c]);for(var d=new Array(o.length),p=new Array(o.length),g=0;g<o.length;g++){var v=o[g][0],m=o[g][1]-v;n=Math.max(n,v),r=Math.max(r,m),d[g]=new Array(v);for(a=0;a<d[g].length;a++)d[g][a]=255&t.buffer[a+e];e+=v;var y=s.getErrorCorrectPolynomial(m),_=new l(d[g],y.getLength()-1),b=_.mod(y);p[g]=new Array(y.getLength()-1);for(a=0;a<p[g].length;a++){var w=a+b.getLength()-p[g].length;p[g][a]=w>=0?b.get(w):0}}var A=new Array(this.totalDataCount),x=0;for(a=0;a<n;a++)for(g=0;g<o.length;g++)a<d[g].length&&(A[x++]=d[g][a]);for(a=0;a<r;a++)for(g=0;g<o.length;g++)a<p[g].length&&(A[x++]=p[g][a]);return A},mapData:function(t,e){for(var n=-1,r=this.moduleCount-1,i=7,o=0,a=this.moduleCount-1;a>0;a-=2){6==a&&a--;while(1){for(var u=0;u<2;u++)if(null==this.modules[r][a-u]){var c=!1;o<t.length&&(c=1==(t[o]>>>i&1));var l=s.getMask(e,r,a-u);l&&(c=!c),this.modules[r][a-u]=c,i--,-1==i&&(o++,i=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}}}},i.PAD0=236,i.PAD1=17;for(var o=[1,0,3,2],a={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){var e=t<<10;while(s.getBCHDigit(e)-s.getBCHDigit(s.G15)>=0)e^=s.G15<<s.getBCHDigit(e)-s.getBCHDigit(s.G15);return(t<<10|e)^s.G15_MASK},getBCHTypeNumber:function(t){var e=t<<12;while(s.getBCHDigit(e)-s.getBCHDigit(s.G18)>=0)e^=s.G18<<s.getBCHDigit(e)-s.getBCHDigit(s.G18);return t<<12|e},getBCHDigit:function(t){var e=0;while(0!=t)e++,t>>>=1;return e},getPatternPosition:function(t){return s.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case a.PATTERN000:return(e+n)%2==0;case a.PATTERN001:return e%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(e+n)%3==0;case a.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return e*n%2+e*n%3==0;case a.PATTERN110:return(e*n%2+e*n%3)%2==0;case a.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new l([1],0),n=0;n<t;n++)e=e.multiply(new l([1,u.gexp(n)],0));return e},getLostPoint:function(t){for(var e=t.getModuleCount(),n=0,r=0,i=0;i<e;i++)for(var o=0,a=t.modules[i][0],s=0;s<e;s++){var u=t.modules[i][s];if(s<e-6&&u&&!t.modules[i][s+1]&&t.modules[i][s+2]&&t.modules[i][s+3]&&t.modules[i][s+4]&&!t.modules[i][s+5]&&t.modules[i][s+6]&&(s<e-10?t.modules[i][s+7]&&t.modules[i][s+8]&&t.modules[i][s+9]&&t.modules[i][s+10]&&(n+=40):s>3&&t.modules[i][s-1]&&t.modules[i][s-2]&&t.modules[i][s-3]&&t.modules[i][s-4]&&(n+=40)),i<e-1&&s<e-1){var c=0;u&&c++,t.modules[i+1][s]&&c++,t.modules[i][s+1]&&c++,t.modules[i+1][s+1]&&c++,0!=c&&4!=c||(n+=3)}a^u?o++:(a=u,o>=5&&(n+=3+o-5),o=1),u&&r++}for(s=0;s<e;s++)for(o=0,a=t.modules[0][s],i=0;i<e;i++){u=t.modules[i][s];i<e-6&&u&&!t.modules[i+1][s]&&t.modules[i+2][s]&&t.modules[i+3][s]&&t.modules[i+4][s]&&!t.modules[i+5][s]&&t.modules[i+6][s]&&(i<e-10?t.modules[i+7][s]&&t.modules[i+8][s]&&t.modules[i+9][s]&&t.modules[i+10][s]&&(n+=40):i>3&&t.modules[i-1][s]&&t.modules[i-2][s]&&t.modules[i-3][s]&&t.modules[i-4][s]&&(n+=40)),a^u?o++:(a=u,o>=5&&(n+=3+o-5),o=1)}var l=Math.abs(100*r/e/e-50)/5;return n+=10*l,n}},u={glog:function(t){if(t<1)throw new Error("glog("+t+")");return u.LOG_TABLE[t]},gexp:function(t){while(t<0)t+=255;while(t>=256)t-=255;return u.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},c=0;c<8;c++)u.EXP_TABLE[c]=1<<c;for(c=8;c<256;c++)u.EXP_TABLE[c]=u.EXP_TABLE[c-4]^u.EXP_TABLE[c-5]^u.EXP_TABLE[c-6]^u.EXP_TABLE[c-8];for(c=0;c<255;c++)u.LOG_TABLE[u.EXP_TABLE[c]]=c;function l(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);var n=0;while(n<t.length&&0==t[n])n++;this.num=new Array(t.length-n+e);for(var r=0;r<t.length-n;r++)this.num[r]=t[r+n]}l.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),n=0;n<this.getLength();n++)for(var r=0;r<t.getLength();r++)e[n+r]^=u.gexp(u.glog(this.get(n))+u.glog(t.get(r)));return new l(e,0)},mod:function(t){var e=this.getLength(),n=t.getLength();if(e-n<0)return this;for(var r=new Array(e),i=0;i<e;i++)r[i]=this.get(i);while(r.length>=n){var o=u.glog(r[0])-u.glog(t.get(0));for(i=0;i<t.getLength();i++)r[i]^=u.gexp(u.glog(t.get(i))+o);while(0==r[0])r.shift()}return new l(r,0)}};var f=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];function h(){this.buffer=new Array,this.length=0}i.prototype.getRightType=function(){for(var t=1;t<41;t++){var e=f[4*(t-1)+this.errorCorrectLevel];if(void 0==e)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+this.errorCorrectLevel);for(var n=e.length/3,r=0,i=0;i<n;i++){var o=e[3*i+0],a=e[3*i+2];r+=a*o}var s=t>9?2:1;if(this.utf8bytes.length+s<r||40==t){this.typeNumber=t,this.rsBlock=e,this.totalDataCount=r;break}}},h.prototype={get:function(t){var e=Math.floor(t/8);return this.buffer[e]>>>7-t%8&1},put:function(t,e){for(var n=0;n<e;n++)this.putBit(t>>>e-n-1&1)},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var d=[];n=function(e){if(this.options={text:"",size:256,correctLevel:3,background:"#ffffff",foreground:"#000000",pdground:"#000000",image:"",imageSize:30,canvasId:e.canvasId,context:e.context,usingComponents:e.usingComponents,showLoading:e.showLoading,loadingText:e.loadingText},"string"===typeof e&&(e={text:e}),e)for(var n in e)this.options[n]=e[n];for(var r=null,o=(n=0,d.length);n<o;n++)if(d[n].text==this.options.text&&d[n].text.correctLevel==this.options.correctLevel){r=d[n].obj;break}n==o&&(r=new i(this.options.text,this.options.correctLevel),d.push({text:this.options.text,correctLevel:this.options.correctLevel,obj:r}));var a=function(t){var e=t.options;return e.pdground&&(t.row>1&&t.row<5&&t.col>1&&t.col<5||t.row>t.count-6&&t.row<t.count-2&&t.col>1&&t.col<5||t.row>1&&t.row<5&&t.col>t.count-6&&t.col<t.count-2)?e.pdground:e.foreground},s=function(e){e.showLoading&&t.showLoading({title:e.loadingText,mask:!0});for(var n=t.createCanvasContext(e.canvasId,e.context),i=r.getModuleCount(),o=e.size,s=e.imageSize,u=(o/i).toPrecision(4),c=(o/i).toPrecision(4),l=0;l<i;l++)for(var f=0;f<i;f++){var h=Math.ceil((f+1)*u)-Math.floor(f*u),d=Math.ceil((l+1)*u)-Math.floor(l*u),p=a({row:l,col:f,count:i,options:e});n.setFillStyle(r.modules[l][f]?p:e.background),n.fillRect(Math.round(f*u),Math.round(l*c),h,d)}if(e.image){var g=function(t,n,r,i,o,a,s,u,c){t.setLineWidth(s),t.setFillStyle(e.background),t.setStrokeStyle(e.background),t.beginPath(),t.moveTo(n+a,r),t.arcTo(n+i,r,n+i,r+a,a),t.arcTo(n+i,r+o,n+i-a,r+o,a),t.arcTo(n,r+o,n,r+o-a,a),t.arcTo(n,r,n+a,r,a),t.closePath(),u&&t.fill(),c&&t.stroke()},v=Number(((o-s)/2).toFixed(2)),m=Number(((o-s)/2).toFixed(2));g(n,v,m,s,s,2,6,!0,!0),n.drawImage(e.image,v,m,s,s)}setTimeout((function(){n.draw(!0,(function(){setTimeout((function(){t.canvasToTempFilePath({width:e.width,height:e.height,destWidth:e.width,destHeight:e.height,canvasId:e.canvasId,quality:Number(1),success:function(t){e.cbResult&&e.cbResult(t.tempFilePath)},fail:function(t){e.cbResult&&e.cbResult(t)},complete:function(){e.showLoading&&t.hideLoading()}},e.context)}),e.text.length+100)}))}),e.usingComponents?0:150)};s(this.options)},n.prototype.clear=function(e){var n=t.createCanvasContext(this.options.canvasId,this.options.context);n.clearRect(0,0,this.options.size,this.options.size),n.draw(!1,(function(){e&&e()}))}})();var r=n;e.default=r}).call(this,n("543d")["default"])},9922:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getStoreIntegral=o;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t){return r.default.get("store_integral/index",t)}},"9ef3":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.auth=i,e.openPaySubscribe=o,e.openOrderSubscribe=a,e.openExtrctSubscribe=s,e.openPinkSubscribe=u,e.openBargainSubscribe=c,e.openOrderRefundSubscribe=l,e.openRechargeSubscribe=f,e.subscribe=h;var r=n("a1ea");function i(){var e={},n=t.getStorageSync(r.SUBSCRIBE_MESSAGE);return e=n?JSON.parse(n):{},e}function o(){var t=i();return h([t.order_pay_success,t.order_deliver_success,t.order_postage_success])}function a(){var t=i();return h([t.order_take,t.integral_accout,t.order_brokerage])}function s(){var t=i();return h([t.user_extract])}function u(){var t=i();return h([t.pink_true,t.pink_status])}function c(){var t=i();return h([t.bargain_success])}function l(){var t=i();return h([t.order_refund])}function f(){var t=i();return h([t.recharge_success])}function h(t){var e=wx;return new Promise((function(n,r){e.requestSubscribeMessage({tmplIds:t,success:function(t){return n(t)},fail:function(t){return n(t)}})}))}}).call(this,n("543d")["default"])},a01c:function(t,e){var n=wx.canIUse("editor");function r(t){for(var e={},n=t.split(","),r=n.length;r--;)e[n[r]]=!0;return e}t.exports={filter:null,highlight:null,onText:null,blankChar:r(" , ,\t,\r,\n,\f"),blockTags:r("address,article,aside,body,caption,center,cite,footer,header,html,nav,section"+(n?"":",pre")),ignoreTags:r("area,base,basefont,canvas,command,frame,input,isindex,keygen,link,map,meta,param,script,source,style,svg,textarea,title,track,use,wbr"+(n?",rp":"")+",embed,iframe"),richOnlyTags:r("a,colgroup,fieldset,legend,picture,table"+(n?",bdi,bdo,caption,rt,ruby":"")),selfClosingTags:r("area,base,basefont,br,col,circle,ellipse,embed,frame,hr,img,input,isindex,keygen,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustAttrs:r("align,alt,app-id,author,autoplay,border,cellpadding,cellspacing,class,color,colspan,controls,data-src,dir,face,height,href,id,ignore,loop,media,muted,name,path,poster,rowspan,size,span,src,start,style,type,unit-id,width,xmlns"),boolAttrs:r("autoplay,controls,ignore,loop,muted"),trustTags:r("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"+(n?",bdi,bdo,caption,pre,rt,ruby":"")),userAgentStyles:{address:"font-style:italic",big:"display:inline;font-size:1.2em",blockquote:"background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",img:"max-width:100%",mark:"background-color:yellow",picture:"max-width:100%",pre:"font-family:monospace;white-space:pre;overflow:scroll",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}}},a1ea:function(t,e){t.exports={LOGIN_STATUS:"LOGIN_STATUS_TOKEN",UID:"UID",USER_INFO:"USER_INFO",EXPIRES_TIME:"EXPIRES_TIME",WX_AUTH:"WX_AUTH",STATE_KEY:"wx_authorize_state",LOGINTYPE:"loginType",BACK_URL:"login_back_url",STATE_R_KEY:"roution_authorize_state",LOGO_URL:"LOGO_URL",SUBSCRIBE_MESSAGE:"SUBSCRIBE_MESSAGE",TIPS_KEY:"TIPS_KEY",SPREAD:"spread",CACHE_LONGITUDE:"LONGITUDE",CACHE_LATITUDE:"LATITUDE"}},a34a:function(t,e,n){t.exports=n("bbdd")},a625:function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s,u=n("a01c"),c=u.blankChar,l=n("f7fd"),f=wx.getSystemInfoSync(),h=f.screenWidth,d=f.system,p=function(){"use strict";function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),a(this,"getName",(function(t){return n.xml?t:t.toLowerCase()})),a(this,"isClose",(function(){return">"==n.data[n.i]||"/"==n.data[n.i]&&">"==n.data[n.i+1]})),a(this,"section",(function(){return n.data.substring(n.start,n.i)})),a(this,"siblings",(function(){return n.STACK.length?n.STACK[n.STACK.length-1].children:n.DOM})),this.attrs={},this.compress=i.compress,this.CssHandler=new l(i.tagStyle,h),this.data=e,this.domain=i.domain,this.DOM=[],this.i=this.start=this.audioNum=this.imgNum=this.videoNum=0,this.protocol=this.domain&&this.domain.includes("://")?this.domain.split("://")[0]:"",this.state=this.Text,this.STACK=[],this.useAnchor=i.useAnchor,this.xml=i.xml}return o(t,[{key:"parse",value:function(){s&&(this.data=s.parseEmoji(this.data));for(var t;t=this.data[this.i];this.i++)this.state(t);this.state==this.Text&&this.setText();while(this.STACK.length)this.popNode(this.STACK.pop());return this.DOM.length&&(this.DOM[0].PoweredBy="Parser",this.title&&(this.DOM[0].title=this.title)),this.DOM}},{key:"setAttr",value:function(){var t=this.getName(this.attrName);u.trustAttrs[t]&&(this.attrVal?this.attrs[t]="src"==t?this.getUrl(this.attrVal.replace(/&/g,"&")):this.attrVal:u.boolAttrs[t]&&(this.attrs[t]="T")),this.attrVal="";while(c[this.data[this.i]])this.i++;this.isClose()?this.setNode():(this.start=this.i,this.state=this.AttrName)}},{key:"setText",value:function(){var t,e=this.section();if(e)if(e=u.onText&&u.onText(e,(function(){return t=!0}))||e,t){this.data=this.data.substr(0,this.start)+e+this.data.substr(this.i);var n=this.start+e.length;for(this.i=this.start;this.i<n;this.i++)this.state(this.data[this.i])}else{if(!this.pre){for(var r,i=[],o=e.length;r=e[--o];)(!c[r]||!c[i[0]]&&(r=" "))&&i.unshift(r);if(e=i.join("")," "==e)return}var a,s,l=this.siblings(),f=-1;while(1){if(-1==(f=e.indexOf("&",f+1)))break;if(-1==(a=e.indexOf(";",f+2)))break;"#"==e[f+1]?(s=parseInt(("x"==e[f+2]?"0":"")+e.substring(f+2,a)),isNaN(s)||(e=e.substr(0,f)+String.fromCharCode(s)+e.substring(a+1))):(s=e.substring(f+1,a),"nbsp"==s?e=e.substr(0,f)+" "+e.substr(a+1):"lt"!=s&&"gt"!=s&&"amp"!=s&&"ensp"!=s&&"emsp"!=s&&"quot"!=s&&"apos"!=s&&(f&&l.push({type:"text",text:e.substr(0,f)}),l.push({type:"text",text:"&".concat(s,";"),en:1}),e=e.substr(a+1),f=-1))}e&&l.push({type:"text",text:e})}}},{key:"setNode",value:function(){var t={name:this.tagName.toLowerCase(),attrs:this.attrs},e=u.selfClosingTags[t.name]||this.xml&&"/"==this.data[this.i];if(this.attrs={},u.ignoreTags[t.name])if(e)if("source"==t.name){var n=this.STACK[this.STACK.length-1],r=t.attrs;if(n&&r.src)if("video"==n.name||"audio"==n.name)n.attrs.source.push(r.src);else{var i,o=r.media;"picture"!=n.name||n.attrs.src||r.src.indexOf(".webp")&&d.includes("iOS")||!(!o||o.includes("px")&&(-1!=(i=o.indexOf("min-width"))&&-1!=(i=o.indexOf(":",i+8))&&h>parseInt(o.substr(i+1))||-1!=(i=o.indexOf("max-width"))&&-1!=(i=o.indexOf(":",i+8))&&h<parseInt(o.substr(i+1))))||(n.attrs.src=r.src)}}else"base"!=t.name||this.domain||(this.domain=t.attrs.href);else this.remove(t);else this.matchAttr(t),e?u.filter&&0==u.filter(t,this)||this.siblings().push(t):(t.children=[],"pre"==t.name&&u.highlight&&(this.remove(t),this.pre=t.pre=!0),this.siblings().push(t),this.STACK.push(t));"/"==this.data[this.i]&&this.i++,this.start=this.i+1,this.state=this.Text}},{key:"remove",value:function(t){var e=t.name,n=this.i;while(1){if(-1==(this.i=this.data.indexOf("</",this.i+1)))return void(this.i="pre"==e||"svg"==e?n:this.data.length);this.start=this.i+=2;while(!c[this.data[this.i]]&&!this.isClose())this.i++;if(this.getName(this.section())==e){if("pre"==e)return this.data=this.data.substr(0,n+1)+u.highlight(this.data.substring(n+1,this.i-5),t.attrs)+this.data.substr(this.i-5),this.i=n;if("style"==e?this.CssHandler.getStyle(this.data.substring(n+1,this.i-7)):"title"==e&&(this.title=this.data.substring(n+1,this.i-7)),-1==(this.i=this.data.indexOf(">",this.i))&&(this.i=this.data.length),"svg"==e){var r=this.data.substring(n,this.i+1);t.attrs.xmlns||(r=' xmlns="http://www.w3.org/2000/svg"'+r);var i=n;while("<"!=this.data[n])n--;r=this.data.substring(n,i)+r;var o=this.STACK[this.STACK.length-1];"100%"==t.attrs.width&&o&&(o.attrs.style||"").includes("inline")&&(o.attrs.style="width:300px;max-width:100%;"+o.attrs.style),this.siblings().push({name:"img",attrs:{src:"data:image/svg+xml;utf8,"+r.replace(/#/g,"%23"),ignore:"T"}})}return}}}},{key:"matchAttr",value:function(t){var e=t.attrs,n=this.CssHandler.match(t.name,e,t)+(e.style||""),r={};switch(e.id&&(1&this.compress?e.id=void 0:this.useAnchor&&this.bubble()),2&this.compress&&e.class&&(e.class=void 0),t.name){case"img":e["data-src"]&&(e.src=e.src||e["data-src"],e["data-src"]=void 0),e.src&&!e.ignore&&(this.bubble()?e.i=(this.imgNum++).toString():e.ignore="T");break;case"a":case"ad":this.bubble();break;case"font":if(e.color&&(r["color"]=e.color,e.color=void 0),e.face&&(r["font-family"]=e.face,e.face=void 0),e.size){var i=parseInt(e.size);i<1?i=1:i>7&&(i=7);var o=["xx-small","x-small","small","medium","large","x-large","xx-large"];r["font-size"]=o[i-1],e.size=void 0}break;case"video":case"audio":e.id?this["".concat(t.name,"Num")]++:e.id=t.name+ ++this["".concat(t.name,"Num")],"video"==t.name&&(e.width&&(n="width:".concat(parseFloat(e.width)+(e.width.includes("%")?"%":"px"),";").concat(n),e.width=void 0),e.height&&(n="height:".concat(parseFloat(e.height)+(e.height.includes("%")?"%":"px"),";").concat(n),e.height=void 0),this.videoNum>3&&(t.lazyLoad=!0)),e.source=[],e.src&&e.source.push(e.src),!e.controls&&e.autoplay,this.bubble();break;case"td":case"th":if(e.colspan||e.rowspan)for(var a,s=this.STACK.length;a=this.STACK[--s];)if("table"==a.name){a.c=void 0;break}}e.align&&(r["text-align"]=e.align,e.align=void 0);var u=n.replace(/"/g,'"').replace(/&/g,"&").split(";");n="";for(var l=0,f=u.length;l<f;l++){var d=u[l].split(":");if(!(d.length<2)){var p=d[0].trim().toLowerCase(),g=d.slice(1).join(":").trim();g.includes("-webkit")||g.includes("-moz")||g.includes("-ms")||g.includes("-o")||g.includes("safe")?n+=";".concat(p,":").concat(g):r[p]&&!g.includes("import")&&r[p].includes("import")||(r[p]=g)}}for(var v in"img"==t.name&&parseInt(r.width||e.width)>h&&(r.height="auto"),r){var m=r[v];if((v.includes("flex")||"order"==v||"self-align"==v)&&(t.c=1),m.includes("url")){var y=m.indexOf("(");if(-1!=y++){while('"'==m[y]||"'"==m[y]||c[m[y]])y++;m=m.substr(0,y)+this.getUrl(m.substr(y))}}else m.includes("rpx")?m=m.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*h/750+"px"})):"white-space"==v&&m.includes("pre")&&(this.pre=t.pre=!0);n+=";".concat(v,":").concat(m)}n=n.substr(1),n&&(e.style=n)}},{key:"popNode",value:function(t){if(t.pre){t.pre=this.pre=void 0;for(var e=this.STACK.length;e--;)this.STACK[e].pre&&(this.pre=!0)}if("head"==t.name||u.filter&&0==u.filter(t,this))return this.siblings().pop();var n=t.attrs;if("picture"==t.name)return t.name="img",n.src||"img"!=(t.children[0]||"").name||(n.src=t.children[0].attrs.src),n.src&&!n.ignore&&(n.i=(this.imgNum++).toString()),t.children=void 0;if(u.blockTags[t.name]?t.name="div":u.trustTags[t.name]||(t.name="span"),t.c)if("ul"==t.name){for(var r=1,i=this.STACK.length;i--;)"ul"==this.STACK[i].name&&r++;if(1!=r)for(var o=t.children.length;o--;)t.children[o].floor=r}else if("ol"==t.name)for(var a,s=0,c=1;a=t.children[s++];)"li"==a.name&&(a.type="ol",a.num=function(t,e){if("a"==e)return String.fromCharCode(97+(t-1)%26);if("A"==e)return String.fromCharCode(65+(t-1)%26);if("i"==e||"I"==e){t=(t-1)%99+1;var n=["I","II","III","IV","V","VI","VII","VIII","IX"],r=["X","XX","XXX","XL","L","LX","LXX","LXXX","XC"],i=(r[Math.floor(t/10)-1]||"")+(n[t%10-1]||"");return"i"==e?i.toLowerCase():i}return t}(c++,n.type)+".");if("table"==t.name){var l=n.cellpadding,f=n.cellspacing,h=n.border;t.c&&(this.bubble(),l||(l=2),f||(f=2)),h&&(n.style="border:".concat(h,"px solid gray;").concat(n.style||"")),f&&(n.style="border-spacing:".concat(f,"px;").concat(n.style||"")),(h||l)&&function t(e){for(var n,r=0;n=e[r];r++)"th"==n.name||"td"==n.name?(h&&(n.attrs.style="border:".concat(h,"px solid gray;").concat(n.attrs.style)),l&&(n.attrs.style="padding:".concat(l,"px;").concat(n.attrs.style))):t(n.children||[])}(t.children)}if(this.CssHandler.pop&&this.CssHandler.pop(t),"div"==t.name&&!Object.keys(n).length){var d=this.siblings();1==t.children.length&&"div"==t.children[0].name&&(d[d.length-1]=t.children[0])}}},{key:"bubble",value:function(){for(var t,e=this.STACK.length;t=this.STACK[--e];){if(u.richOnlyTags[t.name])return"table"!=t.name||Object.hasOwnProperty.call(t,"c")||(t.c=1),!1;t.c=1}return!0}},{key:"getUrl",value:function(t){return"/"==t[0]?"/"==t[1]?t=this.protocol+":"+t:this.domain&&(t=this.domain+t):this.domain&&0!=t.indexOf("data:")&&!t.includes("://")&&(t=this.domain+"/"+t),t}},{key:"Text",value:function(t){if("<"==t){var e=this.data[this.i+1],n=function(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"};n(e)?(this.setText(),this.start=this.i+1,this.state=this.TagName):"/"==e?(this.setText(),n(this.data[1+ ++this.i])?(this.start=this.i+1,this.state=this.EndTag):this.Comment()):"!"==e&&(this.setText(),this.Comment())}}},{key:"Comment",value:function(){var t;t="--"==this.data.substring(this.i+2,this.i+4)?"--\x3e":"[CDATA["==this.data.substring(this.i+2,this.i+9)?"]]>":">",-1==(this.i=this.data.indexOf(t,this.i+2))?this.i=this.data.length:this.i+=t.length-1,this.start=this.i+1,this.state=this.Text}},{key:"TagName",value:function(t){if(c[t]){this.tagName=this.section();while(c[this.data[this.i]])this.i++;this.isClose()?this.setNode():(this.start=this.i,this.state=this.AttrName)}else this.isClose()&&(this.tagName=this.section(),this.setNode())}},{key:"AttrName",value:function(t){var e=c[t];if(e&&(this.attrName=this.section(),t=this.data[this.i]),"="==t){e||(this.attrName=this.section());while(c[this.data[++this.i]]);this.start=this.i--,this.state=this.AttrValue}else e?this.setAttr():this.isClose()&&(this.attrName=this.section(),this.setAttr())}},{key:"AttrValue",value:function(t){if('"'==t||"'"==t){if(this.start++,-1==(this.i=this.data.indexOf(t,this.i+1)))return this.i=this.data.length;this.attrVal=this.section(),this.i++}else{for(;!c[this.data[this.i]]&&!this.isClose();this.i++);this.attrVal=this.section()}this.setAttr()}},{key:"EndTag",value:function(t){if(c[t]||">"==t||"/"==t){for(var e=this.getName(this.section()),n=this.STACK.length;n--;)if(this.STACK[n].name==e)break;if(-1!=n){var r;while((r=this.STACK.pop()).name!=e);this.popNode(r)}else"p"!=e&&"br"!=e||this.siblings().push({name:e,attrs:{}});this.i=this.data.indexOf(">",this.i),this.start=this.i+1,-1==this.i?this.i=this.data.length:this.state=this.Text}}}]),t}();t.exports=p},a762:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;i(n("6b37")),n("514d");var r=n("00fa");n("7fe6");function i(t){return t&&t.__esModule?t:{default:t}}var o=function(){};o.prototype={onSocketOpen:function(e){t.$emit("socketOpen",e)},init:function(){var t=this;this.timer=setInterval((function(){t.send({type:"ping"})}),1e4)},send:function(e){var n=JSON.stringify(e);return t.sendSocketMessage({data:n})},onMessage:function(e){var n=JSON.parse(e.data),r=n.type,i=n.data,o=void 0===i?{}:i;t.$emit(r,o)},onClose:function(){t.closeSocket(),clearInterval(this.timer),t.$emit("socket_close")},onError:function(e){t.$emit("socket_error",e)},close:function(){t.closeSocket()},onStart:function(e,n){var i="".concat(r.VUE_APP_WS_URL);this.ws=t.connectSocket({url:i+"?type=user&token="+e+"&form_type="+n,header:{"content-type":"application/json"},method:"GET",success:function(t){}}),this.ws.onOpen(this.onSocketOpen.bind(this)),this.ws.onError(this.onError.bind(this)),this.ws.onMessage(this.onMessage.bind(this)),this.ws.onClose(this.onClose.bind(this))}},o.prototype.constructor=o;var a=o;e.default=a}).call(this,n("543d")["default"])},b2c5:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("a34a")),i=n("514d"),o=a(n("6b37"));n("8632");function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){s(o,r,i,a,u,"next",t)}function u(t){s(o,r,i,a,u,"throw",t)}a(void 0)}))}}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){return g(t)||p(t,e)||h(t,e)||f()}function f(){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 h(t,e){if(t){if("string"===typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(u){i=!0,o=u}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function g(t){if(Array.isArray(t))return t}var v={Tips:function(e,n){"string"==typeof e&&(n=e,e={});var r=e.title||"",i=e.icon||"none",o=e.endtime||2e3,a=e.success;if(r&&t.showToast({title:r,icon:i,duration:o,success:a}),void 0!=n)if("object"==typeof n){var s=n.tab||1,u=n.url||"";switch(s){case 1:setTimeout((function(){t.navigateTo({url:u})}),o);break;case 2:setTimeout((function(){t.navigateTo({url:u})}),o);break;case 3:setTimeout((function(){t.navigateBack({delta:parseInt(u)})}),o);break;case 4:setTimeout((function(){t.reLaunch({url:u})}),o);break;case 5:setTimeout((function(){t.redirectTo({url:u})}),o);break}}else"function"==typeof n?setTimeout((function(){n&&n()}),o):setTimeout((function(){t.navigateTo({url:n})}),r?o:0)},ArrayRemove:function(t,e,n){var r=[];if(t instanceof Array)for(var i=0;i<t.length;i++)("number"==typeof e&&t[e]!=i||"string"==typeof e&&t[i][e]!=n)&&r.push(t[i]);return r},textByteLength:function(t,e){for(var n=0,r=1,i=0,o=[],a=0;a<t.length;a++)t.charCodeAt(a)>255?(n+=2,n>r*e&&(n++,o.push(t.slice(i,a)),i=a,r++)):(n++,n>r*e&&(o.push(t.slice(i,a)),i=a,r++));return o.push(t.slice(i,t.length)),[n,o,r]},PosterCanvas:function(e,n,r,i,o){var a=this;t.showLoading({title:"海报生成中",mask:!0});var s=t.createCanvasContext("myCanvas");s.clearRect(0,0,0,0),s.fillStyle="#fff",s.fillRect(0,0,750,1150),t.getImageInfo({src:e[0],success:function(u){var c=u.width,f=u.height;s.drawImage(e[1],0,0,c,c),s.save();var h=110,d=2*h,p=480,g=790;s.arc(p+h,g+h,h,0,2*Math.PI),s.drawImage(e[2],p,g,d,d),s.restore();var v=20,m=a.textByteLength(n,v),y=l(m,3),_=(y[0],y[1]),b=y[2];if(b>2){b=2;var w=_.slice(0,2);w[w.length-1]+="……",_=w}s.setTextAlign("left"),s.setFontSize(36),s.setFillStyle("#000");for(var A=36,x=0;x<_.length;x++)x?s.fillText(_[x],50,1e3+A*x+18,1100):s.fillText(_[x],50,1e3+A*x,1100);s.setTextAlign("left"),s.setFontSize(72),s.setFillStyle("#DA4F2A"),s.fillText("¥"+r,40,820+A),s.setTextAlign("left"),s.setFontSize(36),s.setFillStyle("#999"),s.fillText("¥"+i,50,876+A);var O=function(t,e,n,r,i,o,a,s){var u=t.measureText(e).width;switch(t.textAlign){case"center":n-=u/2;break;case"right":n-=u;break}r+=i+s,t.beginPath(),t.strokeStyle=o,t.lineWidth=a,t.moveTo(n,r),t.lineTo(n+u,r),t.stroke()};O(s,"¥"+i,55,865,36,"#999",2,0),s.setTextAlign("left"),s.setFontSize(28),s.setFillStyle("#999"),s.fillText("长按或扫描查看",490,1030+A),s.draw(!0,(function(){t.canvasToTempFilePath({canvasId:"myCanvas",fileType:"png",destWidth:c,destHeight:f,success:function(e){t.hideLoading(),o&&o(e.tempFilePath)}})}))},fail:function(e){t.hideLoading(),a.Tips({title:"无法获取图片信息"})}})},bargainPosterCanvas:function(e,n,r,i,o,a,s,u){var c=this,f=t.createCanvasContext("myCanvas");f.clearRect(0,0,0,0),f.fillStyle="#fff",f.fillRect(0,0,2*a,2*s),t.getImageInfo({src:e[0],success:function(h){h.width,h.height;f.drawImage(e[0],0,0,a,s);var d=.65,p=.166,g=.1857,v=.18,m=.385,y=.77,_=.1571,b=.2916,w=.6857,A=.3916,x=.1036,O=.2306,k=.25;f.drawImage(e[1],a*_,s*b,a*w,s*A),f.drawImage(e[2],a*m,s*y,a*k,a*k),f.save();var S=30,T=c.textByteLength(n,S),C=l(T,3),E=(C[0],C[1]),$=C[2];if($>2){$=2;var P=E.slice(0,2);P[P.length-1]+="…",E=P}f.setTextAlign("left"),f.setFillStyle("#000"),E.length<2?f.setFontSize(22):f.setFontSize(20);for(var L=8,j=0;j<E.length;j++)j?f.fillText(E[j],20,35+L*j+18,1100):f.fillText(E[j],20,35,1100);f.setTextAlign("left"),f.setFontSize(16),f.setFillStyle("#FFF"),f.fillText(r,a*d,s*p),f.save(),f.setFillStyle("red"),f.setFontSize(26),f.fillText(o,a*g,s*v),f.save(),f.setFillStyle("#333"),f.setFontSize(16),f.fillText(i,a*x,s*O),f.save(),f.draw(!0,(function(){t.canvasToTempFilePath({canvasId:"myCanvas",fileType:"png",quality:1,success:function(e){u&&u(e.tempFilePath),t.hideLoading()}})}))},fail:function(e){t.hideLoading(),c.Tips({title:"无法获取图片信息"})}})},userPosterCanvas:function(e,n,r,i,o,a,s){var u=this,c=t.createCanvasContext("myCanvas"+i);c.clearRect(0,0,0,0),t.getImageInfo({src:e[1],success:function(u){u.width,u.height;c.fillStyle="#fff",c.fillRect(0,0,o,a),c.drawImage(e[1],0,0,o,a),c.setTextAlign("left"),c.setFontSize(12),c.setFillStyle("#333");var l=.1906,f=.7746,h=.21666,d=.4283,p=.8215,g=.4283,v=.8685;c.drawImage(e[0],o*l,a*f,o*h,o*h),o<270?c.setFontSize(8):c.setFontSize(10),c.fillText(n,o*d,a*p),o<270?c.setFontSize(8):c.setFontSize(10),c.fillText("邀请您加入"+r,o*g,a*v),c.save(),c.draw(!0,(function(){t.canvasToTempFilePath({canvasId:"myCanvas"+i,fileType:"png",quality:1,success:function(t){s&&s(t.tempFilePath)}})}))},fail:function(e){t.hideLoading(),u.Tips({title:"无法获取图片信息"})}})},uploadImageOne:function(e,n,r){var a=this;if("string"===typeof e){var s=e;e={},e.url=s}var u=e.count||1,l=e.sizeType||["compressed"],f=e.sourceType||["album","camera"],h=(e.is_load,e.url||""),d=e.name||"pics",p=e.fileType||"image";t.chooseImage({count:u,sizeType:l,sourceType:f,success:function(e){t.showLoading({title:"图片上传中"}),t.uploadFile({url:i.HTTP_REQUEST_URL+"/api/"+h,filePath:e.tempFilePaths[0],fileType:p,name:d,formData:{filename:d},header:c({"Content-Type":"multipart/form-data"},i.TOKENNAME,"Bearer "+o.default.state.app.token),success:function(e){if(t.hideLoading(),403==e.statusCode)a.Tips({title:e.data});else{var i=e.data?JSON.parse(e.data):{};200==i.status?n&&n(i):(r&&r(i),a.Tips({title:i.msg}))}},fail:function(e){t.hideLoading(),a.Tips({title:"上传图片失败"})}})}})},uploadImageChange:function(e,n,r,a){var s=this;if("string"===typeof e){var u=e;e={},e.url=u}var l=e.count||1,f=e.sizeType||["compressed"],h=e.sourceType||["album","camera"],d=(e.is_load,e.url||""),p=e.name||"pics",g=e.fileType||"image";function v(e){t.uploadFile({url:i.HTTP_REQUEST_URL+"/api/"+d,filePath:e,fileType:g,name:p,formData:{filename:p},header:c({"Content-Type":"multipart/form-data"},i.TOKENNAME,"Bearer "+o.default.state.app.token),success:function(e){if(t.hideLoading(),403==e.statusCode)s.Tips({title:e.data});else{var i=e.data?JSON.parse(e.data):{};200==i.status?n&&n(i):(r&&r(i),s.Tips({title:i.msg}))}},fail:function(e){t.hideLoading(),s.Tips({title:"上传图片失败"})}})}t.chooseImage({count:l,sizeType:f,sourceType:h,success:function(e){t.getImageInfo({src:e.tempFilePaths[0],success:function(n){if(t.showLoading({title:"图片上传中"}),e.tempFiles[0].size<=2097152)v(n.path);else{var r,i,o,s=750;o=n.width/n.height,n.width>s?(r=s,i=s/o):(r=n.width,i=n.height),a&&a({w:r,h:i});var u=t.createCanvasContext("canvas");u.width=r,u.height=i,u.clearRect(0,0,r,i),u.drawImage(n.path,0,0,r,i),u.save(),setTimeout((function(e){u.draw(!0,(function(){t.canvasToTempFilePath({canvasId:"canvas",fileType:"JPEG",destWidth:r,destHeight:i,quality:.7,success:function(t){v(t.tempFilePath)}})}))}),200)}}})}})},getUrlParams:function(t,e,n){if("string"!=typeof t)return{};e=e||"&",n=n||"=";var r={};if(-1!==t.indexOf(e)){for(var i in t=t.split(e),t)if(-1!==t[i].indexOf(n)){var o=t[i].split(n);r[o[0]]=o[1]}}else{if(-1===t.indexOf(n))return t;o=t.split(n);r[o[0]]=o[1]}return r},SplitArray:function(t,e){if("object"!=typeof t)return[];void 0===e&&(e=[]);for(var n=0;n<t.length;n++)e.push(t[n]);return e},trim:function(t){return String.prototype.trim.call(t)},$h:{Div:function(t,e){t=parseFloat(t),e=parseFloat(e);var n,r,i=0,o=0;try{i=t.toString().split(".")[1].length}catch(a){}try{o=e.toString().split(".")[1].length}catch(a){}return n=Number(t.toString().replace(".","")),r=Number(e.toString().replace(".","")),this.Mul(n/r,Math.pow(10,o-i))},Add:function(t,e){var n,r,i;e=parseFloat(e);try{n=t.toString().split(".")[1].length}catch(o){n=0}try{r=e.toString().split(".")[1].length}catch(o){r=0}return i=Math.pow(100,Math.max(n,r)),(this.Mul(t,i)+this.Mul(e,i))/i},Sub:function(t,e){var n,r,i,o;t=parseFloat(t),e=parseFloat(e);try{n=t.toString().split(".")[1].length}catch(a){n=0}try{r=e.toString().split(".")[1].length}catch(a){r=0}return i=Math.pow(10,Math.max(n,r)),o=n>=r?n:r,((this.Mul(t,i)-this.Mul(e,i))/i).toFixed(o)},Mul:function(t,e){t=parseFloat(t),e=parseFloat(e);var n=0,r=t.toString(),i=e.toString();try{n+=r.split(".")[1].length}catch(o){}try{n+=i.split(".")[1].length}catch(o){}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,n)}},$L:{getLocation:function(){var t=this;return u(r.default.mark((function e(){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getSetting();case 2:if(n=e.sent,2!==n){e.next=6;break}return t.openSetting(),e.abrupt("return");case 6:t.doGetLocation();case 7:case"end":return e.stop()}}),e)})))()},doGetLocation:function(){t.getLocation({success:function(e){t.removeStorageSync("CACHE_LONGITUDE"),t.removeStorageSync("CACHE_LATITUDE"),t.setStorageSync("CACHE_LONGITUDE",e.longitude),t.setStorageSync("CACHE_LATITUDE",e.latitude)},fail:function(e){e.errMsg.indexOf("auth deny")>=0?t.showToast({title:"访问位置被拒绝"}):t.showToast({title:e.errMsg})}})},getSetting:function(){return new Promise((function(e,n){t.getSetting({success:function(t){void 0!==t.authSetting["scope.userLocation"]?t.authSetting["scope.userLocation"]?e(1):e(2):e(0)}})}))},openSetting:function(){var e=this;t.openSetting({success:function(t){t.authSetting&&t.authSetting["scope.userLocation"]&&e.doGetLocation()},fail:function(t){}})},checkPermission:function(){return u(r.default.mark((function e(){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!permision.isIOS){e.next=6;break}return e.next=3,permision.requestIOS("location");case 3:e.t0=e.sent,e.next=9;break;case 6:return e.next=8,permision.requestAndroid("android.permission.ACCESS_FINE_LOCATION");case 8:e.t0=e.sent;case 9:return n=e.t0,null===n||1===n?n=1:2===n?t.showModal({content:"系统定位已关闭",confirmText:"确定",showCancel:!1,success:function(t){}}):n.code?t.showModal({content:n.message}):t.showModal({content:"需要定位权限",confirmText:"设置",success:function(t){t.confirm&&permision.gotoAppSetting()}}),e.abrupt("return",n);case 12:case"end":return e.stop()}}),e)})))()}}};e.default=v}).call(this,n("543d")["default"])},bbdd:function(t,e,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,t.exports=n("96cf"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(a){r.regeneratorRuntime=void 0}},c6cd:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.checkLogin=h,e.toLogin=void 0;var r=u(n("6b37")),i=u(n("0c53")),o=n("e1ea"),a=n("a1ea"),s=u(n("2f12"));function u(t){return t&&t.__esModule?t:{default:t}}function c(){var t=getCurrentPages(),e=t[t.length-1];return e.route}var l=(0,o.Debounce)(f,800);function f(e,n){r.default.commit("LOGOUT");var o=c();n||(n="/page/users/login/index"),i.default.set("login_back_url",o),s.default.getCode().then((function(t){s.default.silenceAuth(t).then((function(t){}))})).catch((function(e){t.hideLoading()}))}function h(){var e=i.default.get(a.LOGIN_STATUS),n=i.default.get(a.EXPIRES_TIME),o=Math.round(new Date/1e3);if(n<o||!e)return t.setStorageSync("authIng",!1),i.default.clear(a.LOGIN_STATUS),i.default.clear(a.EXPIRES_TIME),i.default.clear(a.USER_INFO),i.default.clear(a.STATE_R_KEY),!1;r.default.commit("UPDATE_LOGIN",e);var s=i.default.get(a.USER_INFO,!0);return s&&r.default.commit("UPDATE_USERINFO",s),!0}e.toLogin=l}).call(this,n("543d")["default"])},c83f:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{colorStyle:""}},created:function(){var e=this;this.colorStyle=t.getStorageSync("viewColor"),t.$on("ok",(function(t){e.colorStyle=t}))},methods:{}};e.default=n}).call(this,n("543d")["default"])},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},da79:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.kefuLogin=o,e.record=a,e.speeChcraft=s,e.transferList=u,e.productCart=c,e.productHot=l,e.productVisit=f,e.serviceList=h,e.serviceTransfer=d,e.serviceInfo=p,e.serviceFeedBack=g,e.feedBackPost=v,e.codeStauts=m,e.getWorkermanUrl=y,e.kefuScanLogin=_;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t){return r.default.post("login",t,{noAuth:!0,kefu:!0})}function a(t){return r.default.get("user/record",t,{noAuth:!0,kefu:!0})}function s(t){return r.default.get("service/speechcraft",t,{noAuth:!0,kefu:!0})}function u(t){return r.default.get("service/transfer_list",t,{noAuth:!0,kefu:!0})}function c(t,e){return r.default.get("product/cart/"+t,e,{noAuth:!0,kefu:!0})}function l(t,e){return r.default.get("product/hot/"+t,e,{noAuth:!0,kefu:!0})}function f(t,e){return r.default.get("product/visit/"+t,e,{noAuth:!0,kefu:!0})}function h(t){return r.default.get("service/list",t,{noAuth:!0,kefu:!0})}function d(t){return r.default.post("service/transfer",t,{noAuth:!0,kefu:!0})}function p(t){return r.default.get("service/info",t,{noAuth:!0,kefu:!0})}function g(){return r.default.get("user/service/feedback")}function v(t){return r.default.post("user/service/feedback",t)}function m(t){return r.default.get("user/code",t)}function y(t){return r.default.get("get_workerman_url",{},{noAuth:!0})}function _(t){return r.default.post("user/code",t)}},e0d6:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCartCounts=o,e.getCartList=a,e.getResetCart=s,e.changeCartNum=u,e.cartDel=c,e.getOrderList=l,e.orderProduct=f,e.orderComment=h,e.orderPay=d,e.orderData=p,e.orderCancel=g,e.orderDel=v,e.getOrderDetail=m,e.getRefundOrderDetail=y,e.orderAgain=_,e.orderTake=b,e.express=w,e.ordeRefundReason=A,e.orderRefundVerify=x,e.orderConfirm=O,e.getCouponsOrderPrice=k,e.orderCreate=S,e.postOrderComputed=T,e.orderCoupon=C,e.offlineCheckPrice=E,e.offlineCreate=$,e.orderOfflinePayType=P,e.orderInvoiceList=L,e.orderInvoiceDetail=j,e.aliPay=I,e.refundExpress=N,e.vcartList=M;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t){return r.default.get("cart/count",{numType:void 0===t?0:t})}function a(t){return r.default.get("cart/list",t)}function s(t){return r.default.post("v2/reset_cart",t)}function u(t,e){return r.default.post("cart/num",{id:t,number:e})}function c(t){return"object"===typeof t&&(t=t.join(",")),r.default.post("cart/del",{ids:t})}function l(t){return r.default.get("order/list",t)}function f(t){return r.default.post("order/product",{unique:t})}function h(t){return r.default.post("order/comment",t)}function d(t){return r.default.post("order/pay",t)}function p(){return r.default.get("order/data")}function g(t){return r.default.post("order/cancel",{id:t})}function v(t){return r.default.post("order/del",{uni:t})}function m(t,e){return r.default.get("order/detail/"+t+"".concat(e?"/".concat(e):""))}function y(t,e){return r.default.get("order/refund_detail/"+t+"".concat(e?"/".concat(e):""))}function _(t){return r.default.post("order/again",{uni:t})}function b(t){return r.default.post("order/take",{uni:t})}function w(t,e){return r.default.get("order/express/"+t+"".concat(e?"/refund":""))}function A(){return r.default.get("order/refund/reason")}function x(t){return r.default.post("order/refund/verify",t)}function O(t,e,n){return r.default.post("order/confirm",{cartId:t,new:e,addressId:n})}function k(t,e){return r.default.get("coupons/order/"+t,e)}function S(t,e){return r.default.post("order/create/"+t,e)}function T(t,e){return r.default.post("order/computed/"+t,e)}function C(t){return r.default.post("v2/order/product_coupon/"+t)}function E(t){return r.default.post("order/offline/check/price",t)}function $(t){return r.default.post("order/offline/create",t)}function P(){return r.default.get("order/offline/pay/type")}function L(t){return r.default.get("v2/order/invoice_list",t)}function j(t){return r.default.get("v2/order/invoice_detail/".concat(t))}function I(t,e){return r.default.get("ali_pay",{key:t,quitUrl:e},{noAuth:!0})}function N(t){return r.default.post("order/refund/express",t)}function M(){return r.default.get("v2/cart_list")}},e1ea:function(t,e,n){"use strict";function r(t){var e=/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;return!!e.test(t)}function i(t){var e=/^1(3|4|5|6|7|8|9)\d{9}$/;return!!e.test(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isMoney=r,e.checkPhone=i,e.Throttle=e.Debounce=void 0;var o=function(t,e){var n,r=e||500;return function(){var e=this,i=arguments;n&&clearTimeout(n),n=setTimeout((function(){n=null,t.apply(e,i)}),r)}};e.Debounce=o;var a=function(t,e){var n,r,i=e||500;return function(){var e=this,o=arguments,a=+new Date;n&&a-n<i?(clearTimeout(r),r=setTimeout((function(){n=a,t.apply(e,o)}),i)):(n=a,t.apply(this,o))}};e.Throttle=a},e64e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=["em-smile","em-laughing","em-blush","em-smiley","em-relaxed","em-smirk","em-heart_eyes","em-kissing_heart","em-kissing_closed_eyes","em-flushed","em-relieved","em-satisfied","em-grin","em-wink","em-stuck_out_tongue_winking_eye","em-stuck_out_tongue_closed_eyes","em-grinning","em-kissing","em-kissing_smiling_eyes","em-stuck_out_tongue","em-sleeping","em-worried","em-frowning","em-anguished","em-open_mouth","em-grimacing","em-confused","em-hushed","em-expressionless","em-unamused","em-sweat_smile","em-sweat","em-disappointed_relieved","em-weary","em-pensive","em-disappointed","em-confounded","em-fearful","em-cold_sweat","em-persevere","em-cry","em-sob","em-joy","em-astonished","em-scream","em-tired_face","em-angry","em-rage","em-triumph","em-sleepy","em-yum","em-mask","em-sunglasses","em-dizzy_face","em-imp","em-smiling_imp","em-neutral_face","em-no_mouth","em-innocent","em-alien"];e.default=r},f0c5:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s,u,c){var l,f="function"===typeof t?t.options:t;if(u){f.components||(f.components={});var h=Object.prototype.hasOwnProperty;for(var d in u)h.call(u,d)&&!h.call(f.components,d)&&(f.components[d]=u[d])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(f.mixins||(f.mixins=[])).push(c)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),o&&(f._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._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(t,e){return l.call(e),p(t,e)}}else{var g=f.beforeCreate;f.beforeCreate=g?[].concat(g,l):[l]}return{exports:t,options:f}}n.d(e,"a",(function(){return r}))},f106:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={namespaced:!0,state:{indexDatas:{},cartNum:0},getters:{},mutations:{setIndexData:function(t,e){t.indexDatas=e},setCartNum:function(t,e){t.cartNum=e}}};e.default=r},f15c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getProductDetail=o,e.getProductCode=a,e.collectAdd=s,e.collectDel=u,e.postCartAdd=c,e.getCategoryList=l,e.getProductslist=f,e.getProductHot=h,e.collectAll=d,e.getGroomList=p,e.getCollectUserList=g,e.getReplyList=v,e.getReplyConfig=m,e.getSearchKeyword=y,e.storeListApi=_,e.storeDiscountsList=b,e.postCartNum=w,e.getAttr=A,e.getHomeProducts=x,e.getPresellProductDetail=O;var r=i(n("9011"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t){return r.default.get("product/detail/"+t,{},{noAuth:!0})}function a(t){return r.default.get("product/code/"+t,{user_type:"routine"})}function s(t,e){return r.default.post("collect/add",{id:t,product:void 0===e?"product":e})}function u(t,e){return r.default.post("collect/del",{id:t,category:void 0===e?"product":e})}function c(t){return r.default.post("cart/add",t)}function l(){return r.default.get("category",{},{noAuth:!0})}function f(t){return r.default.get("products",t,{noAuth:!0})}function h(t,e){return r.default.get("product/hot",{page:void 0===t?1:t,limit:void 0===e?4:e},{noAuth:!0})}function d(t,e){return r.default.post("collect/all",{id:t,category:void 0===e?"product":e})}function p(t,e){return r.default.get("groom/list/"+t,e,{noAuth:!0})}function g(t){return r.default.get("collect/user",t)}function v(t,e){return r.default.get("reply/list/"+t,e)}function m(t){return r.default.get("reply/config/"+t)}function y(){return r.default.get("search/keyword",{},{noAuth:!0})}function _(t){return r.default.get("store_list",t)}function b(t){return r.default.get("store_discounts/list/"+t,{},{noAuth:!0})}function w(t){return r.default.post("v2/set_cart_num",t)}function A(t,e){return r.default.get("v2/get_attr/"+t+"/"+e)}function x(t){return r.default.get("home/products",t,{noAuth:!0})}function O(t){return r.default.get("advance/detail/"+t)}},f7fd:function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n("a01c"),u=function(){"use strict";function t(e){var n=this;r(this,t),a(this,"getStyle",(function(t){return n.styles=new c(t,n.styles).parse()}));var i=Object.assign({},s.userAgentStyles);for(var o in e)i[o]=(i[o]?i[o]+";":"")+e[o];this.styles=i}return o(t,[{key:"match",value:function(t,e){var n,r=(n=this.styles[t])?n+";":"";if(e.class)for(var i,o=e.class.split(" "),a=0;i=o[a];a++)(n=this.styles["."+i])&&(r+=n+";");return(n=this.styles["#"+e.id])&&(r+=n+";"),r}}]),t}();t.exports=u;var c=function(){"use strict";function t(e,n){var i=this;r(this,t),a(this,"section",(function(){return i.data.substring(i.start,i.i)})),a(this,"isLetter",(function(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"})),this.data=e,this.floor=0,this.i=0,this.list=[],this.res=n,this.state=this.Space}return o(t,[{key:"parse",value:function(){for(var t;t=this.data[this.i];this.i++)this.state(t);return this.res}},{key:"Space",value:function(t){"."==t||"#"==t||this.isLetter(t)?(this.start=this.i,this.state=this.Name):"/"==t&&"*"==this.data[this.i+1]?this.Comment():s.blankChar[t]||";"==t||(this.state=this.Ignore)}},{key:"Comment",value:function(){this.i=this.data.indexOf("*/",this.i)+1,this.i||(this.i=this.data.length),this.state=this.Space}},{key:"Ignore",value:function(t){"{"==t?this.floor++:"}"!=t||--this.floor||(this.state=this.Space)}},{key:"Name",value:function(t){s.blankChar[t]?(this.list.push(this.section()),this.state=this.NameSpace):"{"==t?(this.list.push(this.section()),this.Content()):","==t?(this.list.push(this.section()),this.Comma()):!this.isLetter(t)&&(t<"0"||t>"9")&&"-"!=t&&"_"!=t&&(this.state=this.Ignore)}},{key:"NameSpace",value:function(t){"{"==t?this.Content():","==t?this.Comma():s.blankChar[t]||(this.state=this.Ignore)}},{key:"Comma",value:function(){while(s.blankChar[this.data[++this.i]]);"{"==this.data[this.i]?this.Content():(this.start=this.i--,this.state=this.Name)}},{key:"Content",value:function(){this.start=++this.i,-1==(this.i=this.data.indexOf("}",this.i))&&(this.i=this.data.length);for(var t,e=this.section(),n=0;t=this.list[n++];)this.res[t]?this.res[t]+=";"+e:this.res[t]=e;this.list=[],this.state=this.Space}}]),t}()},f875:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={data:function(){return{disabled:!1,text:"获取验证码"}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var e=60;this.text="剩余 "+e+"s";var n=setInterval((function(){e-=1,e<0&&clearInterval(n),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};e.default=r},fd65:function(t,e,n){
|
||
/*!
|
||
* clipboard.js v2.0.6
|
||
* https://clipboardjs.com/
|
||
*
|
||
* Licensed MIT © Zeno Rocha
|
||
*/
|
||
(function(e,n){t.exports=n()})(0,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}([function(t,e){function n(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}t.exports=n},function(t,e){function n(){}n.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;for(r;r<i;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],i=[];if(r&&e)for(var o=0,a=r.length;o<a;o++)r[o].fn!==e&&r[o].fn._!==e&&i.push(r[o]);return i.length?n[t]=i:delete n[t],this}},t.exports=n,t.exports.TinyEmitter=n},function(t,e,n){var r=n(3),i=n(4);function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return a(t,e,n);if(r.nodeList(t))return s(t,e,n);if(r.string(t))return u(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function s(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function u(t,e,n){return i(document.body,t,e,n)}t.exports=o},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},function(t,e,n){var r=n(5);function i(t,e,n,r,i){var o=a.apply(this,arguments);return t.addEventListener(n,o,i),{destroy:function(){t.removeEventListener(n,o,i)}}}function o(t,e,n,r,o){return"function"===typeof t.addEventListener?i.apply(null,arguments):"function"===typeof n?i.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,r,o)})))}function a(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}t.exports=o},function(t,e){var n=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}function i(t,e){while(t&&t.nodeType!==n){if("function"===typeof t.matches&&t.matches(e))return t;t=t.parentNode}}t.exports=i},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n.n(r),o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var u=function(){function t(e){s(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=i()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==("undefined"===typeof t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),c=u,l=n(1),f=n.n(l),h=n(2),d=n.n(h),p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function y(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=function(t){function e(t,n){v(this,e);var r=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.resolveOptions(n),r.listenClick(t),r}return y(e,t),g(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===p(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=d()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return b("action",t)}},{key:"defaultTarget",value:function(t){var e=b("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return b("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(f.a);function b(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e["default"]=_}])["default"]}))}}]); |