"use strict";require("./common"),require("./vendors"),require("./taro"),require("./runtime"),(wx.webpackJsonp=wx.webpackJsonp||[]).push([[2143],{8153:function(e,t,n){n(7488);var r=n(2180),o=n(8744),a=n(2954),i=n.n(a),s=n(5998),u=n(1002),c=n(1413);var d="function"==typeof Symbol&&Symbol.observable||"@@observable",p=function randomString(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+p(),REPLACE:"@@redux/REPLACE"+p(),PROBE_UNKNOWN_ACTION:function PROBE_UNKNOWN_ACTION(){return"@@redux/PROBE_UNKNOWN_ACTION"+p()}};function isPlainObject(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function miniKindOf(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function isDate(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function isError(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";var n=function ctorName(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function kindOf(e){return miniKindOf(e)}function createStore(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function. Instead, received: '"+kindOf(n)+"'");return n(createStore)(e,t)}if("function"!=typeof e)throw new Error("Expected the root reducer to be a function. Instead, received: '"+kindOf(e)+"'");var o=e,a=t,i=[],s=i,u=!1;function ensureCanMutateNextListeners(){s===i&&(s=i.slice())}function getState(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function subscribe(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function. Instead, received: '"+kindOf(e)+"'");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var t=!0;return ensureCanMutateNextListeners(),s.push(e),function unsubscribe(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");t=!1,ensureCanMutateNextListeners();var n=s.indexOf(e);s.splice(n,1),i=null}}}function dispatch(e){if(!isPlainObject(e))throw new Error("Actions must be plain objects. Instead, the actual type was: '"+kindOf(e)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,a=o(a,e)}finally{u=!1}for(var t=i=s,n=0;n0?"Unexpected "+(i.length>1?"keys":"key")+' "'+i.join('", "')+'" found in '+a+'. Expected to find one of the known reducer keys instead: "'+o.join('", "')+'". Unexpected keys will be ignored.':void 0}(e,n,t,a);r&&warning(r);for(var o=!1,u={},c=0;c0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.data;switch(n){case h.S.SET_USERINFO:return i().setStorageSync("userInfo",JSON.stringify(null==r?void 0:r.userInfo)),(0,c.Z)((0,c.Z)({},e),r);case h.S.SET_ADMINUSERINFO:return i().setStorageSync("adminUserInfo",JSON.stringify(null==r?void 0:r.adminUserInfo)),(0,c.Z)((0,c.Z)({},e),r);case h.S.SET_TOKEN:return i().setStorageSync("token",null==r?void 0:r.token),(0,c.Z)((0,c.Z)({},e),r);case h.S.SET_SESSIONKEY:return i().setStorageSync("session_key",null==r?void 0:r.session_key),(0,c.Z)((0,c.Z)({},e),r);case h.S.SET_SORTCODE:return i().setStorageSync("sort_code",JSON.stringify(null==r?void 0:r.sort_code)),(0,c.Z)((0,c.Z)({},e),r);case h.S.CLEAR_TOKEN:return i().removeStorageSync("token"),(0,c.Z)((0,c.Z)({},e),{},{token:""});case h.S.CLEAR_SESSIONKEY:return i().removeStorageSync("session_key"),(0,c.Z)((0,c.Z)({},e),{},{session_key:""});case h.S.CLEAR_USERINFO:return i().removeStorageSync("userInfo"),(0,c.Z)((0,c.Z)({},e),{},{userInfo:null});case h.S.CLEAR_ADMINUSERINFO:return i().removeStorageSync("adminUserInfo"),(0,c.Z)((0,c.Z)({},e),{},{adminUserInfo:null});case h.S.CLEAR_SORTCODE:return i().removeStorageSync("sort_code"),(0,c.Z)((0,c.Z)({},e),{},{sortCode:null});case h.S.LOGIN_STATUS:return(0,c.Z)((0,c.Z)({},e),r);default:return e}},commonData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.data;switch(n){case"set_shopCount":return i().setStorageSync(S,JSON.stringify(null==r?void 0:r.shopCount)),(0,c.Z)((0,c.Z)({},e),r);case"clear_shopCount":return i().removeStorageSync(S),(0,c.Z)((0,c.Z)({},e),{},{shopCount:0});default:return e}},tabBarData:n(8932).ZP}),m=n(2180).window;var w=("object"===(void 0===m?"undefined":(0,u.Z)(m))&&m.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?m.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):compose)(function applyMiddleware(){for(var e=arguments.length,t=new Array(e),n=0;n