Your IP : 18.118.10.21


Current Path : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/js/ui/vue/vuex/dist/
Upload File :
Current File : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/js/ui/vue/vuex/dist/vuex.bundle.min.js

(function(){if(typeof this.BX!=="undefined"&&typeof this.BX.Vuex!=="undefined"){var e="3.6.2";if(this.BX.Vuex.version!==e){console.warn("BX.Vuex already loaded. Loaded: "+this.BX.Vuex.version+", Skipped: "+e+". Version differences may cause errors!")}return}(function(e,t,r,n){"use strict";
/**
	 * Bitrix Vuex wrapper
	 * IndexedDB driver for Vuex Builder
	 *
	 * @package bitrix
	 * @subpackage ui
	 * @copyright 2001-2019 Bitrix
	 */var i=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};babelHelpers.classCallCheck(this,e);this.siteId=t.siteId||"default";this.userId=t.userId||0;this.storage=t.storage||"default";this.name=t.name||"";this.code=(window.md5||n.md5)(this.siteId+"/"+this.userId+"/"+this.storage+"/"+this.name);this.db=new r.Dexie("bx-vuex-model");this.db.version(1).stores({data:"code, value"})}babelHelpers.createClass(e,[{key:"get",value:function e(){var t=this;return new Promise((function(e,r){t.db.data.where("code").equals(t.code).first().then((function(t){e(t?t.value:null)}),(function(e){r(e)}))}))}},{key:"set",value:function e(t){var r=this;return new Promise((function(e,n){r.db.data.put({code:r.code,value:t}).then((function(t){e(true)}),(function(e){n(e)}))}))}},{key:"clear",value:function e(){var t=this;return new Promise((function(e,r){t.db.data["delete"](t.code).then((function(t){e(true)}),(function(e){r(e)}))}))}}]);return e}();
/**
	 * Bitrix Vuex wrapper
	 * LocalStorage driver for Vuex Builder
	 *
	 * @package bitrix
	 * @subpackage ui
	 * @copyright 2001-2019 Bitrix
	 */var a=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};babelHelpers.classCallCheck(this,e);this.siteId=t.siteId||"default";this.userId=t.userId||0;this.storage=t.storage||"default";this.name=t.name||"";this.enabled=false;if(typeof window.localStorage!=="undefined"){try{window.localStorage.setItem("__bx_test_ls_feature__","ok");if(window.localStorage.getItem("__bx_test_ls_feature__")==="ok"){window.localStorage.removeItem("__bx_test_ls_feature__");this.enabled=true}}catch(e){}}this.code="bx-vuex-"+(window.md5||n.md5)(this.siteId+"/"+this.userId+"/"+this.storage+"/"+this.name)}babelHelpers.createClass(e,[{key:"get",value:function e(){var t=this;return new Promise((function(e,r){if(!t.enabled){e(null);return true}var n=window.localStorage.getItem(t.code);if(typeof n!=="string"){e(null);return true}try{e(t.prepareValueAfterGet(JSON.parse(n)))}catch(e){r(e)}}))}},{key:"set",value:function e(t){var r=this;return new Promise((function(e,n){if(r.enabled){window.localStorage.setItem(r.code,JSON.stringify(r.prepareValueBeforeSet(t)))}e(true)}))}},{key:"clear",value:function e(){var t=this;return new Promise((function(e,r){if(t.enabled){window.localStorage.removeItem(t.code)}e(true)}))}},{key:"prepareValueAfterGet",value:function e(t){var r=this;if(t instanceof Array){t=t.map((function(e){return r.prepareValueAfterGet(e)}))}else if(t instanceof Date);else if(t&&babelHelpers["typeof"](t)==="object"){for(var n in t){if(t.hasOwnProperty(n)){t[n]=this.prepareValueAfterGet(t[n])}}}else if(typeof t==="string"){if(t.startsWith("#DT#")){t=new Date(t.substring(4))}}return t}},{key:"prepareValueBeforeSet",value:function e(t){var r=this;if(t instanceof Array){t=t.map((function(e){return r.prepareValueBeforeSet(e)}))}else if(t instanceof Date){t="#DT#"+t.toISOString()}else if(t&&babelHelpers["typeof"](t)==="object"){for(var n in t){if(t.hasOwnProperty(n)){t[n]=this.prepareValueBeforeSet(t[n])}}}return t}}]);return e}();
/**
	 * Bitrix Vuex wrapper
	 * BitrixMobile ApplicationStorage driver for Vuex Builder
	 *
	 * @package bitrix
	 * @subpackage ui
	 * @copyright 2001-2019 Bitrix
	 */var o=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};babelHelpers.classCallCheck(this,e);this.siteId=t.siteId||"default";this.userId=t.userId||0;this.storage=t.storage||"default";this.name=t.name||"";this.code=(window.md5||n.md5)(this.siteId+"/"+this.userId+"/"+this.storage+"/"+this.name);if(!this.isJnContext()&&typeof ApplicationStorage==="undefined"){console.error('ApplicationStorage is not defined, load "webcomponent/storage" extension.')}}babelHelpers.createClass(e,[{key:"get",value:function e(){var t=this;return new Promise((function(e,r){if(t.isJnContext()){var n=Application.sharedStorage.get(t.code);e(n?n:null)}else if(typeof ApplicationStorage!=="undefined"){ApplicationStorage.get(t.code,null).then((function(r){return e(t.prepareValueAfterGet(JSON.parse(r)))}))}else{e(null)}}))}},{key:"set",value:function e(t){var r=this;return new Promise((function(e,n){if(r.isJnContext()){Application.sharedStorage().set(r.code,JSON.stringify(r.prepareValueBeforeSet(t)));e()}else if(typeof ApplicationStorage!=="undefined"){ApplicationStorage.set(r.code,JSON.stringify(r.prepareValueBeforeSet(t))).then((function(t){return e()}))}else{e()}}))}},{key:"clear",value:function e(){return this.set(null)}},{key:"isJnContext",value:function e(){return typeof env!=="undefined"}},{key:"prepareValueAfterGet",value:function e(t){var r=this;if(t instanceof Array){t=t.map((function(e){return r.prepareValueAfterGet(e)}))}else if(t instanceof Date);else if(t&&babelHelpers["typeof"](t)==="object"){for(var n in t){if(t.hasOwnProperty(n)){t[n]=this.prepareValueAfterGet(t[n])}}}else if(typeof t==="string"){if(t.startsWith("#DT#")){t=new Date(t.substring(4))}}return t}},{key:"prepareValueBeforeSet",value:function e(t){var r=this;if(t instanceof Array){t=t.map((function(e){return r.prepareValueBeforeSet(e)}))}else if(t instanceof Date){t="#DT#"+t.toISOString()}else if(t&&babelHelpers["typeof"](t)==="object"){for(var n in t){if(t.hasOwnProperty(n)){t[n]=this.prepareValueBeforeSet(t[n])}}}return t}}]);return e}();
/**
	 * Bitrix Vuex wrapper
	 * Interface Vuex model (Vuex builder model)
	 *
	 * @package bitrix
	 * @subpackage ui
	 * @copyright 2001-2019 Bitrix
	 */var s=function(){babelHelpers.createClass(e,[{key:"getName",value:function e(){return""}},{key:"getState",value:function e(){return{}}},{key:"getElementState",value:function e(){return{}}},{key:"getStateSaveException",value:function e(){return undefined}},{key:"getGetters",value:function e(){return{}}},{key:"getActions",value:function e(){return{}}},{key:"getMutations",value:function e(){return{}}},{key:"validate",value:function e(t){return{}}},{key:"setVariables",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!(babelHelpers["typeof"](t)==="object"&&t)){this.logger("error","VuexBuilderModel.setVars: passed variables is not a Object",store);return this}this.variables=t;return this}},{key:"getVariable",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;if(!t){return r}var n=t.toString().split(".");if(n.length===1){return this.variables[n[0]]}var i;var a=Object.assign({},this.variables);for(var o=0;o<n.length;o++){if(typeof a[n[o]]!=="undefined"){a=i=a[n[o]]}else{i=r;break}}return i}},{key:"getNamespace",value:function e(){return this.namespace?this.namespace:this.getName()}},{key:"setNamespace",value:function e(t){this.namespace=t.toString();this.databaseConfig.name=this.namespace;return this}},{key:"useDatabase",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.databaseConfig.active=!!t;var n=this.db===null;if(r.type){this.databaseConfig.type=r.type.toString();n=true}if(r.storage){this.databaseConfig.storage=r.storage.toString()}if(r.siteId){this.databaseConfig.siteId=r.siteId.toString()}if(r.userId){this.databaseConfig.userId=r.userId}if(typeof r.timeout==="number"){this.databaseConfig.timeout=r.timeout}if(!this.databaseConfig.active&&this.db!==null){this.databaseConfig.type=null;n=true}if(n){if(this.databaseConfig.type===c.DatabaseType.indexedDb){this.db=new i(this.databaseConfig)}else if(this.databaseConfig.type===c.DatabaseType.localStorage){this.db=new a(this.databaseConfig)}else if(this.databaseConfig.type===c.DatabaseType.jnSharedStorage){this.db=new o(this.databaseConfig)}else{this.db=null}}return this}},{key:"useNamespace",value:function e(r){if(t.BitrixVue.developerMode){if(r){console.warn("VuexBuilderModel: Method `useNamespace` is deprecated, please remove this call.")}else{console.error("VuexBuilderModel: Method `useNamespace` is deprecated, using VuexBuilder without namespaces is no longer supported.")}}return this}},{key:"getStore",value:function e(){return this.getModule()}},{key:"getModule",value:function e(){var t=this;return new Promise((function(e,r){var n=t.namespace?t.namespace:t.getName();if(!n){t.logger("error","VuexBuilderModel.getStore: current model can not be run in Vuex modules mode",t.getState());r()}if(t.db){t._getStoreFromDatabase().then((function(r){return e({namespace:n,module:t._createStore(r)})}))}else{e({namespace:n,module:t._createStore(t.getState())})}}))}},{key:"getModuleWithDefaultState",value:function e(){var t=this.namespace?this.namespace:this.getName();if(!t){this.logger("error","VuexBuilderModel.getStore: current model can not be run in Vuex modules mode",this.getState());return null}return{namespace:t,module:this._createStore(this.getState())}}},{key:"getSaveTimeout",value:function e(){return 150}},{key:"getLoadTimeout",value:function e(){return 1e3}},{key:"getLoadedState",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return t}},{key:"saveState",value:function e(){var t=this;var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!this.isSaveAvailable()){return true}this.lastSaveState=r;if(this.saveStateTimeout){this.logger("log","VuexModel.saveState: wait save...",this.getName());return true}this.logger("log","VuexModel.saveState: start saving",this.getName());var n=this.getSaveTimeout();if(typeof this.databaseConfig.timeout==="number"){n=this.databaseConfig.timeout}this.saveStateTimeout=setTimeout((function(){t.logger("log","VuexModel.saveState: saved!",t.getName());var e=t.lastSaveState;if(typeof e==="function"){e=e();if(babelHelpers["typeof"](e)!=="object"||!e){return false}}t.db.set(t.cloneState(e,t.getStateSaveException()));t.lastState=null;t.saveStateTimeout=null}),n);return true}},{key:"clearState",value:function e(){if(this.store){this.store.commit(this.getNamespace()+"/"+"vuexBuilderModelClearState");return true}return this.saveState(this.getState())}},{key:"clearDatabase",value:function e(){if(!this.isSaveAvailable()){return true}this.db.clear();return true}},{key:"isSaveAvailable",value:function e(){return this.db&&this.databaseConfig.active}},{key:"isSaveNeeded",value:function e(t){if(!this.isSaveAvailable()){return false}var r=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(!r){return true}for(var n in t){if(!t.hasOwnProperty(n)){continue}if(typeof r[n]==="undefined"){return true}else if(babelHelpers["typeof"](r[n])==="object"&&r[n]){var i=e(t[n],r[n]);if(i){return true}}}return false};return r(t,this.getStateSaveException())}}],[{key:"create",value:function e(){return new this}}]);function e(){babelHelpers.classCallCheck(this,e);this.databaseConfig={type:c.DatabaseType.indexedDb,active:null,storage:"default",name:this.getName(),siteId:"default",userId:0,timeout:null};this.db=null;this.store=null;this.namespace=null;this.variables={}}babelHelpers.createClass(e,[{key:"setStore",value:function e(t){if(!(t instanceof ie.Store)){this.logger("error","VuexBuilderModel.setStore: passed store is not a Vuex.Store",t);return this}this.store=t;return this}},{key:"_getStoreFromDatabase",value:function e(){var t=this;clearTimeout(this.cacheTimeout);return new Promise((function(e){var r=t.getLoadTimeout();if(r!==false&&typeof r==="number"){t.cacheTimeout=setTimeout((function(){t.logger("warn","VuexModel.getStoreFromDatabase: Cache loading timeout",t.getName());e(t.getState())}),r)}else{t.cacheTimeout=null}t.db.get().then((function(r){clearTimeout(t.cacheTimeout);r=t.getLoadedState(r?r:{});var n=t.getState();if(r){n=t._mergeState(n,r)}e(n)}),(function(r){clearTimeout(t.cacheTimeout);e(t.getState())}))}))}},{key:"_mergeState",value:function e(t,r){for(var n in t){if(!t.hasOwnProperty(n)){continue}if(typeof r[n]==="undefined"){r[n]=t[n]}else if(!(r[n]instanceof Array)&&babelHelpers["typeof"](r[n])==="object"&&r[n]&&babelHelpers["typeof"](t[n])==="object"&&t[n]){r[n]=Object.assign({},t[n],r[n])}}return r}},{key:"_createStore",value:function e(t){var r=this;var n={namespaced:true,state:t,getters:this.getGetters(),actions:this.getActions(),mutations:this.getMutations()};n.mutations.vuexBuilderModelClearState=function(e){e=Object.assign(e,r.getState());r.saveState(e)};return n}},{key:"cloneState",value:function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;var i;if(t instanceof Array){i=[].concat(t.map((function(e){return r.cloneState(e)})))}else if(t instanceof Date){i=new Date(t.toISOString())}else if(babelHelpers["typeof"](t)==="object"&&t){i={};for(var a in t){if(!t.hasOwnProperty(a)){continue}if(typeof n==="undefined"||typeof n[a]==="undefined"){i[a]=this.cloneState(t[a])}else if(babelHelpers["typeof"](n[a])==="object"&&n[a]){i[a]=this.cloneState(t[a],n[a])}}}else{i=t}return i}},{key:"logger",value:function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++){n[i-1]=arguments[i]}if(t==="error"){var a;(a=console).error.apply(a,n);return undefined}else if(typeof BX.VueDevTools==="undefined"){return undefined}if(t==="log"){var o;(o=console).log.apply(o,n)}else if(t==="info"){var s;(s=console).info.apply(s,n)}else if(t==="warn"){var u;(u=console).warn.apply(u,n)}}}],[{key:"convertToArray",value:function e(t){var r=[];for(var n in t){if(t.hasOwnProperty(n)){r.push(t[n])}}return r}}]);return e}();
/**
	 * Bitrix Vuex wrapper
	 * Vuex builder
	 *
	 * @package bitrix
	 * @subpackage ui
	 * @copyright 2001-2019 Bitrix
	 */var u=Object.freeze({indexedDb:"indexedDb",localStorage:"localStorage",jnSharedStorage:"jnSharedStorage"});var c=function(){babelHelpers.createClass(e,null,[{key:"create",value:function e(){if(t.BitrixVue.developerMode){console.warn("VuexBuilder: Method VuexBuilder.create is deprecated, use VuexBuilder.init instead.")}return new this}},{key:"init",value:function e(t){if(t){if(!(t instanceof ie.Store)){console.warn("VuexBuilder.init: passed store is not a Vuex.Store",t);return new this}}return new this(t)}}]);function e(t){babelHelpers.classCallCheck(this,e);this.models=[];this.databaseConfig={name:null,type:null,siteId:null,userId:null,timeout:null};this.store=t;this.builded=false}babelHelpers.createClass(e,[{key:"addModel",value:function e(t){if(this.builded){return this}if(!(t instanceof s)){console.error("BX.VuexBuilder.addModel: passed model is not a BX.VuexBuilderModel",t,name);return this}this.models.push(t);return this}},{key:"addDynamicModel",value:function e(t){var r=this;if(!(t instanceof s)){return new Promise((function(e,r){console.error("BX.VuexBuilder.addDynamicModel: passed model is not a BX.VuexBuilderModel",t);r("MODEL_ERROR")}))}if(this.store.hasModule(t.getNamespace())||this.models.find((function(e){return e.getNamespace()===t.getNamespace()}))){return new Promise((function(e,r){console.error("BX.VuexBuilder.addDynamicModel: model `"+t.getNamespace()+"` was not added because it is already registered.");r("DUPLICATE_MODEL")}))}this.models.push(t);if(this.databaseConfig.active&&t.databaseConfig.active!==false){t.useDatabase(true,this.databaseConfig)}else{t.useDatabase(false)}t.setStore(this.store);var n=t.getModule();return new Promise((function(e,t){n.then((function(t){r.store.registerModule(t.namespace,t.module);e()}),(function(e){console.error("BX.VuexBuilder.addDynamicModel: storage was not created due to runtime errors.",e?e:"");t("ERROR_IN_MODEL")}))}))}},{key:"removeDynamicModel",value:function e(t){if(!this.builded){console.error("BX.VuexBuilder.removeDynamicModel: you cannot use the method until builder is built.");return this}if(!this.store.hasModule(t)){console.error("BX.VuexBuilder.removeDynamicModel: module `"+t+"` not registered.");return this}this.models=this.models.filter((function(e){return e.getNamespace()!==t}));this.store.unregisterModule(t);return this}},{key:"useNamespace",value:function e(r){if(t.BitrixVue.developerMode){if(r){console.warn("VuexBuilder: Method `useNamespace` is deprecated, please remove this call.")}else{console.error("VuexBuilder: Method `useNamespace` is deprecated, using VuexBuilder without namespaces is no longer supported.")}}return this}},{key:"setDatabaseConfig",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!(babelHelpers["typeof"](t)==="object"&&t)){return this}this.databaseConfig.active=true;this.databaseConfig.storage=t.name;this.databaseConfig.type=t.type||this.databaseConfig.type;this.databaseConfig.siteId=t.siteId||this.databaseConfig.siteId;this.databaseConfig.userId=t.userId||this.databaseConfig.userId;this.databaseConfig.timeout=typeof t.timeout!=="undefined"?t.timeout:this.databaseConfig.timeout;return this}},{key:"clearModelState",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;if(!this.builded){return new Promise((function(e,r){console.error("BX.VuexBuilder.clearModelState: you cannot use the method until builder is built.");if(typeof t!=="function"){r("BUILDER_NOT_BUILD")}}))}var r=[];this.models.forEach((function(e){r.push(e.clearState())}));return new Promise((function(e,n){Promise.all(r).then((function(r){e(true);if(typeof t==="function"){t(true)}}),(function(e){console.error("BX.VuexBuilder.clearModelState: storage was not clear due to runtime errors.",e?e:"");if(typeof t!=="function"){n("ERROR_WHILE_CLEARING")}}))}))}},{key:"clearDatabase",value:function e(){if(!this.builded){return new Promise((function(e,t){console.error("BX.VuexBuilder.clearModelState: you cannot use the method until builder is built.");t("BUILDER_NOT_BUILD")}))}this.models.forEach((function(e){return e.clearDatabase()}));return new Promise((function(e,t){return e(true)}))}},{key:"build",value:function e(){var t=this;var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;if(this.builded){return this}var n=[];if(!this.store){this.store=ie.createStore()}this.models.forEach((function(e){if(t.databaseConfig.active&&e.databaseConfig.active!==false){e.useDatabase(true,t.databaseConfig)}e.setStore(t.store);n.push(e.getModule())}));return new Promise((function(e,i){Promise.all(n).then((function(n){n.forEach((function(e){t.store.registerModule(e.namespace,e.module)}));var i={store:t.store,models:t.models,builder:t};t.builded=true;if(typeof r==="function"){r(i)}e(i)}),(function(e){console.error("BX.VuexBuilder.create: storage was not created due to runtime errors.",e?e:"");if(typeof r!=="function"){i("ERROR_IN_MODEL")}}))}))}},{key:"syncBuild",value:function e(){var r=this;if(this.builded){return{store:this.store,models:this.models,builder:this}}if(!this.store){this.store=ie.createStore()}if(this.databaseConfig.active){if(t.BitrixVue.developerMode){console.error("VuexBuilder: Method `syncBuild` creates storage in synchronous mode, the database does not work in this mode.")}this.databaseConfig.active=false}this.models.forEach((function(e){e.useDatabase(false);e.setStore(r.store);var t=e.getModuleWithDefaultState(),n=t.namespace,i=t.module;r.store.registerModule(n,i)}));this.builded=true;return{store:this.store,models:this.models,builder:this}}}]);return e}();c.DatabaseType=u;
/*!
	 * vuex v3.6.2
	 * (c) 2021 Evan You
	 * @license MIT
	 *
	 * @source: https://cdn.jsdelivr.net/npm/vuex@3.6.2/dist/vuex.esm.browser.js
	 */function l(e){var t=Number(e.version.split(".")[0]);if(t>=2){e.mixin({beforeCreate:n})}else{var r=e.prototype._init;e.prototype._init=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};e.init=e.init?[n].concat(e.init):n;r.call(this,e)}}function n(){var e=this.$options;if(e.store){this.$store=typeof e.store==="function"?e.store():e.store}else if(e.parent&&e.parent.$store){this.$store=e.parent.$store}}}var f=typeof window!=="undefined"?window:typeof global!=="undefined"?global:{};var d=f.__VUE_DEVTOOLS_GLOBAL_HOOK__;function h(e){if(!d)return;e._devtoolHook=d;d.emit("vuex:init",e);d.on("vuex:travel-to-state",(function(t){e.replaceState(t)}));e.subscribe((function(e,t){d.emit("vuex:mutation",e,t)}),{prepend:true});e.subscribeAction((function(e,t){d.emit("vuex:action",e,t)}),{prepend:true})}function p(e,t){return e.filter(t)[0]}function v(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(e===null||babelHelpers["typeof"](e)!=="object"){return e}var r=p(t,(function(t){return t.original===e}));if(r){return r.copy}var n=Array.isArray(e)?[]:{};t.push({original:e,copy:n});Object.keys(e).forEach((function(r){n[r]=v(e[r],t)}));return n}function m(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function g(e){return e!==null&&babelHelpers["typeof"](e)==="object"}function b(e){return e&&typeof e.then==="function"}function y(e,t){if(!e)throw new Error("[vuex] ".concat(t))}function w(e,t){return function(){return e(t)}}var S=function(){function e(t,r){babelHelpers.classCallCheck(this,e);this.runtime=r;this._children=Object.create(null);this._rawModule=t;var n=t.state;this.state=(typeof n==="function"?n():n)||{}}babelHelpers.createClass(e,[{key:"addChild",value:function e(t,r){this._children[t]=r}},{key:"removeChild",value:function e(t){delete this._children[t]}},{key:"getChild",value:function e(t){return this._children[t]}},{key:"hasChild",value:function e(t){return t in this._children}},{key:"update",value:function e(t){this._rawModule.namespaced=t.namespaced;if(t.actions){this._rawModule.actions=t.actions}if(t.mutations){this._rawModule.mutations=t.mutations}if(t.getters){this._rawModule.getters=t.getters}}},{key:"forEachChild",value:function e(t){m(this._children,t)}},{key:"forEachGetter",value:function e(t){if(this._rawModule.getters){m(this._rawModule.getters,t)}}},{key:"forEachAction",value:function e(t){if(this._rawModule.actions){m(this._rawModule.actions,t)}}},{key:"forEachMutation",value:function e(t){if(this._rawModule.mutations){m(this._rawModule.mutations,t)}}},{key:"namespaced",get:function e(){return!!this._rawModule.namespaced}}]);return e}();var _=function(){function e(t){babelHelpers.classCallCheck(this,e);this.register([],t,false)}babelHelpers.createClass(e,[{key:"get",value:function e(t){return t.reduce((function(e,t){return e.getChild(t)}),this.root)}},{key:"getNamespace",value:function e(t){var r=this.root;return t.reduce((function(e,t){r=r.getChild(t);return e+(r.namespaced?t+"/":"")}),"")}},{key:"update",value:function e(t){k([],this.root,t)}},{key:"register",value:function e(t,r){var n=this;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;{M(t,r)}var a=new S(r,i);if(t.length===0){this.root=a}else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],a)}if(r.modules){m(r.modules,(function(e,r){n.register(t.concat(r),e,i)}))}}},{key:"unregister",value:function e(t){var r=this.get(t.slice(0,-1));var n=t[t.length-1];var i=r.getChild(n);if(!i){{console.warn("[vuex] trying to unregister module '".concat(n,"', which is ")+"not registered")}return}if(!i.runtime){return}r.removeChild(n)}},{key:"isRegistered",value:function e(t){var r=this.get(t.slice(0,-1));var n=t[t.length-1];if(r){return r.hasChild(n)}return false}}]);return e}();function k(e,t,r){{M(e,r)}t.update(r);if(r.modules){for(var n in r.modules){if(!t.getChild(n)){{console.warn("[vuex] trying to add a new module '".concat(n,"' on hot reloading, ")+"manual reload is needed")}return}k(e.concat(n),t.getChild(n),r.modules[n])}}}var x={assert:function e(t){return typeof t==="function"},expected:"function"};var V={assert:function e(t){return typeof t==="function"||babelHelpers["typeof"](t)==="object"&&typeof t.handler==="function"},expected:'function or object with "handler" function'};var C={getters:x,mutations:x,actions:V};function M(e,t){Object.keys(C).forEach((function(r){if(!t[r])return;var n=C[r];m(t[r],(function(t,i){y(n.assert(t),B(e,r,i,t,n.expected))}))}))}function B(e,t,r,n,i){var a="".concat(t," should be ").concat(i,' but "').concat(t,".").concat(r,'"');if(e.length>0){a+=' in module "'.concat(e.join("."),'"')}a+=" is ".concat(JSON.stringify(n),".");return a}var A=function(){function e(){var r=this;var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};babelHelpers.classCallCheck(this,e);if(!t.VueVendor&&typeof window!=="undefined"&&window.Vue){X(window.Vue)}{y(t.VueVendor,"must call Vue.use(Vuex) before creating a store instance.");y(typeof Promise!=="undefined","vuex requires a Promise polyfill in this browser.");y(this instanceof e,"store must be called with the new operator.")}var i=n.plugins,a=i===void 0?[]:i,o=n.strict,s=o===void 0?false:o;this._committing=false;this._actions=Object.create(null);this._actionSubscribers=[];this._mutations=Object.create(null);this._wrappedGetters=Object.create(null);this._modules=new _(n);this._modulesNamespaceMap=Object.create(null);this._subscribers=[];this._watcherVM=new t.VueVendor;this._makeLocalGettersCache=Object.create(null);var u=this;var c=this.dispatch,l=this.commit;this.dispatch=function e(t,r){return c.call(u,t,r)};this.commit=function e(t,r,n){return l.call(u,t,r,n)};this.strict=s;var f=this._modules.root.state;j(this,f,[],this._modules.root);I(this,f);a.forEach((function(e){return e(r)}));var d=n.devtools!==undefined?n.devtools:t.VueVendor.config.devtools;if(d){h(this)}}babelHelpers.createClass(e,[{key:"commit",value:function e(t,r,n){var i=this;var a=L(t,r,n),o=a.type,s=a.payload,u=a.options;var c={type:o,payload:s};var l=this._mutations[o];if(!l){{console.error("[vuex] unknown mutation type: ".concat(o))}return}this._withCommit((function(){l.forEach((function e(t){t(s)}))}));this._subscribers.slice().forEach((function(e){return e(c,i.state)}));if(u&&u.silent){console.warn("[vuex] mutation type: ".concat(o,". Silent option has been removed. ")+"Use the filter functionality in the vue-devtools")}}},{key:"dispatch",value:function e(t,r){var n=this;var i=L(t,r),a=i.type,o=i.payload;var s={type:a,payload:o};var u=this._actions[a];if(!u){{console.error("[vuex] unknown action type: ".concat(a))}return}try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,n.state)}))}catch(e){{console.warn("[vuex] error in before action subscribers: ");console.error(e)}}var c=u.length>1?Promise.all(u.map((function(e){return e(o)}))):u[0](o);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,n.state)}))}catch(e){{console.warn("[vuex] error in after action subscribers: ");console.error(e)}}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,n.state,e)}))}catch(e){{console.warn("[vuex] error in error action subscribers: ");console.error(e)}}t(e)}))}))}},{key:"subscribe",value:function e(t,r){return O(t,this._subscribers,r)}},{key:"subscribeAction",value:function e(t,r){var n=typeof t==="function"?{before:t}:t;return O(n,this._actionSubscribers,r)}},{key:"watch",value:function e(t,r,n){var i=this;{y(typeof t==="function","store.watch only accepts a function.")}return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),r,n)}},{key:"replaceState",value:function e(t){var r=this;this._withCommit((function(){r._vm._data.$$state=t}))}},{key:"registerModule",value:function e(t,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(typeof t==="string")t=[t];{y(Array.isArray(t),"module path must be a string or an Array.");y(t.length>0,"cannot register the root module by using registerModule.")}this._modules.register(t,r);j(this,this.state,t,this._modules.get(t),n.preserveState);I(this,this.state)}},{key:"unregisterModule",value:function e(r){var n=this;if(typeof r==="string")r=[r];{y(Array.isArray(r),"module path must be a string or an Array.")}this._modules.unregister(r);this._withCommit((function(){var e=G(n.state,r.slice(0,-1));t.VueVendor["delete"](e,r[r.length-1])}));D(this)}},{key:"hasModule",value:function e(t){if(typeof t==="string")t=[t];{y(Array.isArray(t),"module path must be a string or an Array.")}return this._modules.isRegistered(t)}},{key:"hotUpdate",value:function e(t){this._modules.update(t);D(this,true)}},{key:"_withCommit",value:function e(t){var r=this._committing;this._committing=true;t();this._committing=r}},{key:"state",get:function e(){return this._vm._data.$$state},set:function e(t){{y(false,"use store.replaceState() to explicit replace store state.")}}}]);return e}();function O(e,t,r){if(t.indexOf(e)<0){r&&r.prepend?t.unshift(e):t.push(e)}return function(){var r=t.indexOf(e);if(r>-1){t.splice(r,1)}}}function D(e,t){e._actions=Object.create(null);e._mutations=Object.create(null);e._wrappedGetters=Object.create(null);e._modulesNamespaceMap=Object.create(null);var r=e.state;j(e,r,[],e._modules.root,true);I(e,r,t)}function I(e,r,n){var i=e._vm;e.getters={};e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters;var o={};m(a,(function(t,r){o[r]=w(t,e);Object.defineProperty(e.getters,r,{get:function t(){return e._vm[r]},enumerable:true})}));var s=t.VueVendor.config.silent;t.VueVendor.config.silent=true;e._vm=new t.VueVendor({data:{$$state:r},computed:o});t.VueVendor.config.silent=s;if(e.strict){$(e)}if(i){if(n){e._withCommit((function(){i._data.$$state=null}))}t.VueVendor.nextTick((function(){return i.$destroy()}))}}function j(e,r,n,i,a){var o=!n.length;var s=e._modules.getNamespace(n);if(i.namespaced){if(e._modulesNamespaceMap[s]&&true){console.error("[vuex] duplicate namespace ".concat(s," for the namespaced module ").concat(n.join("/")))}e._modulesNamespaceMap[s]=i}if(!o&&!a){var u=G(r,n.slice(0,-1));var c=n[n.length-1];e._withCommit((function(){{if(c in u){console.warn('[vuex] state field "'.concat(c,'" was overridden by a module with the same name at "').concat(n.join("."),'"'))}}t.VueVendor.set(u,c,i.state)}))}var l=i.context=E(e,s,n);i.forEachMutation((function(t,r){var n=s+r;H(e,n,t,l)}));i.forEachAction((function(t,r){var n=t.root?r:s+r;var i=t.handler||t;P(e,n,i,l)}));i.forEachGetter((function(t,r){var n=s+r;T(e,n,t,l)}));i.forEachChild((function(t,i){j(e,r,n.concat(i),t,a)}))}function E(e,t,r){var n=t==="";var i={dispatch:n?e.dispatch:function(r,n,i){var a=L(r,n,i);var o=a.payload,s=a.options;var u=a.type;if(!s||!s.root){u=t+u;if(!e._actions[u]){console.error("[vuex] unknown local action type: ".concat(a.type,", global type: ").concat(u));return}}return e.dispatch(u,o)},commit:n?e.commit:function(r,n,i){var a=L(r,n,i);var o=a.payload,s=a.options;var u=a.type;if(!s||!s.root){u=t+u;if(!e._mutations[u]){console.error("[vuex] unknown local mutation type: ".concat(a.type,", global type: ").concat(u));return}}e.commit(u,o,s)}};Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return N(e,t)}},state:{get:function t(){return G(e.state,r)}}});return i}function N(e,t){if(!e._makeLocalGettersCache[t]){var r={};var n=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,n)!==t)return;var a=i.slice(n);Object.defineProperty(r,a,{get:function t(){return e.getters[i]},enumerable:true})}));e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function H(e,t,r,n){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function t(i){r.call(e,n.state,i)}))}function P(e,t,r,n){var i=e._actions[t]||(e._actions[t]=[]);i.push((function t(i){var a=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},i);if(!b(a)){a=Promise.resolve(a)}if(e._devtoolHook){return a["catch"]((function(t){e._devtoolHook.emit("vuex:error",t);throw t}))}else{return a}}))}function T(e,t,r,n){if(e._wrappedGetters[t]){{console.error("[vuex] duplicate getter key: ".concat(t))}return}e._wrappedGetters[t]=function e(t){return r(n.state,n.getters,t.state,t.getters)}}function $(e){e._vm.$watch((function(){return this._data.$$state}),(function(){{y(e._committing,"do not mutate vuex store state outside mutation handlers.")}}),{deep:true,sync:true})}function G(e,t){return t.reduce((function(e,t){return e[t]}),e)}function L(e,t,r){if(g(e)&&e.type){r=t;t=e;e=e.type}{y(typeof e==="string","expects string as the type, but found ".concat(babelHelpers["typeof"](e),"."))}return{type:e,payload:t,options:r}}function X(e){l(e)}var R=K((function(e,t){var r={};if(!z(t)){console.error("[vuex] mapState: mapper parameter must be either an Array or an Object")}q(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function t(){var r=this.$store.state;var n=this.$store.getters;if(e){var a=Q(this.$store,"mapState",e);if(!a){return}r=a.context.state;n=a.context.getters}return typeof i==="function"?i.call(this,r,n):r[i]};r[n].vuex=true}));return r}));var J=K((function(e,t){var r={};if(!z(t)){console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object")}q(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function t(){var r=this.$store.commit;if(e){var n=Q(this.$store,"mapMutations",e);if(!n){return}r=n.context.commit}for(var a=arguments.length,o=new Array(a),s=0;s<a;s++){o[s]=arguments[s]}return typeof i==="function"?i.apply(this,[r].concat(o)):r.apply(this.$store,[i].concat(o))}}));return r}));var U=K((function(e,t){var r={};if(!z(t)){console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object")}q(t).forEach((function(t){var n=t.key,i=t.val;i=e+i;r[n]=function t(){if(e&&!Q(this.$store,"mapGetters",e)){return}if(!(i in this.$store.getters)){console.error("[vuex] unknown getter: ".concat(i));return}return this.$store.getters[i]};r[n].vuex=true}));return r}));var F=K((function(e,t){var r={};if(!z(t)){console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object")}q(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function t(){var r=this.$store.dispatch;if(e){var n=Q(this.$store,"mapActions",e);if(!n){return}r=n.context.dispatch}for(var a=arguments.length,o=new Array(a),s=0;s<a;s++){o[s]=arguments[s]}return typeof i==="function"?i.apply(this,[r].concat(o)):r.apply(this.$store,[i].concat(o))}}));return r}));var W=function e(t){return{mapState:R.bind(null,t),mapGetters:U.bind(null,t),mapMutations:J.bind(null,t),mapActions:F.bind(null,t)}};function q(e){if(!z(e)){return[]}return Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}}))}function z(e){return Array.isArray(e)||g(e)}function K(e){return function(t,r){if(typeof t!=="string"){r=t;t=""}else if(t.charAt(t.length-1)!=="/"){t+="/"}return e(t,r)}}function Q(e,t,r){var n=e._modulesNamespaceMap[r];if(!n){console.error("[vuex] module namespace not found in ".concat(t,"(): ").concat(r))}return n}function Y(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=e.collapsed,r=t===void 0?true:t,n=e.filter,i=n===void 0?function(e,t,r){return true}:n,a=e.transformer,o=a===void 0?function(e){return e}:a,s=e.mutationTransformer,u=s===void 0?function(e){return e}:s,c=e.actionFilter,l=c===void 0?function(e,t){return true}:c,f=e.actionTransformer,d=f===void 0?function(e){return e}:f,h=e.logMutations,p=h===void 0?true:h,m=e.logActions,g=m===void 0?true:m,b=e.logger,y=b===void 0?console:b;return function(e){var t=v(e.state);if(typeof y==="undefined"){return}if(p){e.subscribe((function(e,n){var a=v(n);if(i(e,t,a)){var s=te();var c=u(e);var l="mutation ".concat(e.type).concat(s);Z(y,l,r);y.log("%c prev state","color: #9E9E9E; font-weight: bold",o(t));y.log("%c mutation","color: #03A9F4; font-weight: bold",c);y.log("%c next state","color: #4CAF50; font-weight: bold",o(a));ee(y)}t=a}))}if(g){e.subscribeAction((function(e,t){if(l(e,t)){var n=te();var i=d(e);var a="action ".concat(e.type).concat(n);Z(y,a,r);y.log("%c action","color: #03A9F4; font-weight: bold",i);ee(y)}}))}}}function Z(e,t,r){var n=r?e.groupCollapsed:e.group;try{n.call(e,t)}catch(r){e.log(t)}}function ee(e){try{e.groupEnd()}catch(t){e.log("-- log end --")}}function te(){var e=new Date;return" @ ".concat(ne(e.getHours(),2),":").concat(ne(e.getMinutes(),2),":").concat(ne(e.getSeconds(),2),".").concat(ne(e.getMilliseconds(),3))}function re(e,t){return new Array(t+1).join(e)}function ne(e,t){return re("0",t-e.toString().length)+e}var ie={Store:A,install:X,version:"3.6.2",mapState:R,mapMutations:J,mapGetters:U,mapActions:F,createNamespacedHelpers:W,createLogger:Y};ie.store=function(e){return new A(e)};ie.createStore=function(e){return new A(e)};t.VueVendor.use(ie);e.VuexBuilder=c;e.VuexBuilderModel=s;e.Vuex=ie;e.VuexVendorV3=ie;e.VuexVendor=ie})(this.BX=this.BX||{},BX,BX.Dexie3,BX)})();
//# sourceMappingURL=vuex.bundle.map.js