vendor: 15,165 bytes, lines 1-2
1/*! For license information please see vendor-vuex.49a5c8d6a2d9e30c64d8.js.LICENSE.txt */ 2"use strict";(self.webpackChunkcraft_base=self.webpackChunkcraft_base||[]).push([[938],{74161:(t,e,n)=>{n.d(e,{y$:()=>V,Pj:()=>h});var o=n(8257);function r(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}const i="function"==typeof Proxy;let s,a;function c(){return void 0!==s||("undefined"!=typeof window&&window.performance?(s=!0,a=window.performance):"undefined"!=typeof globalThis&&(null===(t=globalThis.perf_hooks)||void 0===t?void 0:t.performance)?(s=!0,a=globalThis.perf_hooks.performance):s=!1),s?a.now():Date.now();var t}class u{constructor(t,e){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=e;const n={};if(t.settings)for(const e in t.settings){const o=t.settings[e];n[e]=o.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},n);try{const t=localStorage.getItem(o),e=JSON.parse(t);Object.assign(r,e)}catch(t){}this.fallbacks={getSettings:()=>r,setSettings(t){try{localStorage.setItem(o,JSON.stringify(t))}catch(t){}r=t},now:()=>c()},e&&e.on("plugin:settings:set",((t,e)=>{t===this.plugin.id&&this.fallbacks.setSettings(e)})),this.proxiedOn=new Proxy({},{get:(t,e)=>this.target?this.target.on[e]:(...t)=>{this.onQueue.push({method:e,args:t})}}),this.proxiedTarget=new Proxy({},{get:(t,e)=>this.target?this.target[e]:"on"===e?this.proxiedOn:Object.keys(this.fallbacks).includes(e)?(...t)=>(this.targetQueue.push({method:e,args:t,resolve:()=>{}}),this.fallbacks[e](...t)):(...t)=>new Promise((n=>{this.targetQueue.push({method:e,args:t,resolve:n})}))})}async setRealTarget(t){this.target=t;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function l(t,e){const n=t,o=r(),s=r().__VUE_DEVTOOLS_GLOBAL_HOOK__,a=i&&n.enableEarlyProxy;if(!s||!o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a){const t=a?new u(n,s):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:t}),t&&e(t.proxiedTarget)}else s.emit("devtools-plugin:setup",t,e)}var f="store";function h(t){return void 0===t&&(t=null),(0,o.WQ)(null!==t?t:f)}function p(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function d(t){return null!==t&&"object"==typeof t}function m(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 g(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;v(t,n,[],t._modules.root,!0),_(t,n,e)}function _(t,e,n){var r=t._state,i=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var s=t._wrappedGetters,a={},c={},u=(0,o.uY)(!0);u.run((function(){p(s,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),c[n]=(0,o.EW)((function(){return a[n]()})),Object.defineProperty(t.getters,n,{get:function(){return c[n].value},enumerable:!0})}))})),t._state=(0,o.Kh)({data:e}),t._scope=u,t.strict&&function(t){(0,o.wB)((function(){return t._state.data}),(function(){0}),{deep:!0,flush:"sync"})}(t),r&&n&&t._withCommit((function(){r.data=null})),i&&i.stop()}function v(t,e,n,o,r){var i=!n.length,s=t._modules.getNamespace(n);if(o.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=o),!i&&!r){var a=b(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){a[c]=o.state}))}var u=o.context=function(t,e,n){var o=""===e,r={dispatch:o?t.dispatch:function(n,o,r){var i=w(n,o,r),s=i.payload,a=i.options,c=i.type;return a&&a.root||(c=e+c),t.dispatch(c,s)},commit:o?t.commit:function(n,o,r){var i=w(n,o,r),s=i.payload,a=i.options,c=i.type;a&&a.root||(c=e+c),t.commit(c,s,a)}};return Object.defineProperties(r,{getters:{get:o?function(){return t.getters}:function(){return y(t,e)}},state:{get:function(){return b(t.state,n)}}}),r}(t,s,n);o.forEachMutation((function(e,n){!function(t,e,n,o){var r=t._mutations[e]||(t._mutations[e]=[]);r.push((function(e){n.call(t,o.state,e)}))}(t,s+n,e,u)})),o.forEachAction((function(e,n){var o=e.root?n:s+n,r=e.handler||e;!function(t,e,n,o){var r=t._actions[e]||(t._actions[e]=[]);r.push((function(e){var r,i=n.call(t,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:t.getters,rootState:t.state},e);return(r=i)&&"function"==typeof r.then||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,o,r,u)})),o.forEachGetter((function(e,n){!function(t,e,n,o){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(o.state,o.getters,t.state,t.getters)}}(t,s+n,e,u)})),o.forEachChild((function(o,i){v(t,e,n.concat(i),o,r)}))}function y(t,e){if(!t._makeLocalGettersCache[e]){var n={},o=e.length;Object.keys(t.getters).forEach((function(r){if(r.slice(0,o)===e){var i=r.slice(o);Object.defineProperty(n,i,{get:function(){return t.getters[r]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function b(t,e){return e.reduce((function(t,e){return t[e]}),t)}function w(t,e,n){return d(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}var O="vuex:mutations",k="vuex:actions",E="vuex",j=0;function x(t,e){l({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(n){n.addTimelineLayer({id:O,label:"Vuex Mutations",color:C}),n.addTimelineLayer({id:k,label:"Vuex Actions",color:C}),n.addInspector({id:E,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===t&&n.inspectorId===E)if(n.filter){var o=[];P(o,e._modules.root,n.filter,""),n.rootNodes=o}else n.rootNodes=[I(e._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===t&&n.inspectorId===E){var o=n.nodeId;y(e,o),n.state=function(t,e,n){e="root"===n?e:e[n];var o=Object.keys(e),r={state:Object.keys(t.state).map((function(e){return{key:e,editable:!0,value:t.state[e]}}))};if(o.length){var i=function(t){var e={};return Object.keys(t).forEach((function(n){var o=n.split("/");if(o.length>1){var r=e,i=o.pop();o.forEach((function(t){r[t]||(r[t]={_custom:{value:{},display:t,tooltip:"Module",abstract:!0}}),r=r[t]._custom.value})),r[i]=T((function(){return t[n]}))}else e[n]=T((function(){return t[n]}))})),e}(e);r.getters=Object.keys(i).map((function(t){return{key:t.endsWith("/")?S(t):t,editable:!1,value:T((function(){return i[t]}))}}))}return r}((r=e._modules,(s=(i=o).split("/").filter((function(t){return t}))).reduce((function(t,e,n){var o=t[e];if(!o)throw new Error('Missing module "'+e+'" for path "'+i+'".');return n===s.length-1?o:o._children}),"root"===i?r:r.root._children)),"root"===o?e.getters:e._makeLocalGettersCache,o)}var r,i,s})),n.on.editInspectorState((function(n){if(n.app===t&&n.inspectorId===E){var o=n.nodeId,r=n.path;"root"!==o&&(r=o.split("/").filter(Boolean).concat(r)),e._withCommit((function(){n.set(e._state.data,r,n.state.value)}))}})),e.subscribe((function(t,e){var o={};t.payload&&(o.payload=t.payload),o.state=e,n.notifyComponentUpdate(),n.sendInspectorTree(E),n.sendInspectorState(E),n.addTimelineEvent({layerId:O,event:{time:Date.now(),title:t.type,data:o}})})),e.subscribeAction({before:function(t,e){var o={};t.payload&&(o.payload=t.payload),t._id=j++,t._time=Date.now(),o.state=e,n.addTimelineEvent({layerId:k,event:{time:t._time,title:t.type,groupId:t._id,subtitle:"start",data:o}})},after:function(t,e){var o={},r=Date.now()-t._time;o.duration={_custom:{type:"duration",display:r+"ms",tooltip:"Action duration",value:r}},t.payload&&(o.payload=t.payload),o.state=e,n.addTimelineEvent({layerId:k,event:{time:Date.now(),title:t.type,groupId:t._id,subtitle:"end",data:o}})}})}))}var C=8702998,M={label:"namespaced",textColor:16777215,backgroundColor:6710886};function S(t){return t&&"root"!==t?t.split("/").slice(-2,-1)[0]:"Root"}function I(t,e){return{id:e||"root",label:S(e),tags:t.namespaced?[M]:[],children:Object.keys(t._children).map((function(n){return I(t._children[n],e+n+"/")}))}}function P(t,e,n,o){o.includes(n)&&t.push({id:o||"root",label:o.endsWith("/")?o.slice(0,o.length-1):o||"Root",tags:e.namespaced?[M]:[]}),Object.keys(e._children).forEach((function(r){P(t,e._children[r],n,o+r+"/")}))}function T(t){try{return t()}catch(t){return t}}var G=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)||{}},L={namespaced:{configurable:!0}};L.namespaced.get=function(){return!!this._rawModule.namespaced},G.prototype.addChild=function(t,e){this._children[t]=e},G.prototype.removeChild=function(t){delete this._children[t]},G.prototype.getChild=function(t){return this._children[t]},G.prototype.hasChild=function(t){return t in this._children},G.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)},G.prototype.forEachChild=function(t){p(this._children,t)},G.prototype.forEachGetter=function(t){this._rawModule.getters&&p(this._rawModule.getters,t)},G.prototype.forEachAction=function(t){this._rawModule.actions&&p(this._rawModule.actions,t)},G.prototype.forEachMutation=function(t){this._rawModule.mutations&&p(this._rawModule.mutations,t)},Object.defineProperties(G.prototype,L);var A=function(t){this.register([],t,!1)};function N(t,e,n){if(e.update(n),n.modules)for(var o in n.modules){if(!e.getChild(o))return void 0;N(t.concat(o),e.getChild(o),n.modules[o])}}A.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},A.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},A.prototype.update=function(t){N([],this.root,t)},A.prototype.register=function(t,e,n){var o=this;void 0===n&&(n=!0);var r=new G(e,n);0===t.length?this.root=r:this.get(t.slice(0,-1)).addChild(t[t.length-1],r);e.modules&&p(e.modules,(function(e,r){o.register(t.concat(r),e,n)}))},A.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],o=e.getChild(n);o&&o.runtime&&e.removeChild(n)},A.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};function V(t){return new $(t)}var $=function(t){var e=this;void 0===t&&(t={});var n=t.plugins;void 0===n&&(n=[]);var o=t.strict;void 0===o&&(o=!1);var r=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new A(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var i=this,s=this.dispatch,a=this.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,n){return a.call(i,t,e,n)},this.strict=o;var c=this._modules.root.state;v(this,c,[],this._modules.root),_(this,c),n.forEach((function(t){return t(e)}))},D={state:{configurable:!0}};$.prototype.install=function(t,e){t.provide(e||f,this),t.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&x(t,this)},D.state.get=function(){return this._state.data},D.state.set=function(t){0},$.prototype.commit=function(t,e,n){var o=this,r=w(t,e,n),i=r.type,s=r.payload,a=(r.options,{type:i,payload:s}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(a,o.state)})))},$.prototype.dispatch=function(t,e){var n=this,o=w(t,e),r=o.type,i=o.payload,s={type:r,payload:i},a=this._actions[r];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,n.state)}))}catch(t){0}var c=a.length>1?Promise.all(a.map((function(t){return t(i)}))):a[0](i);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,n.state,t)}))}catch(t){0}e(t)}))}))}},$.prototype.subscribe=function(t,e){return m(t,this._subscribers,e)},$.prototype.subscribeAction=function(t,e){return m("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},$.prototype.watch=function(t,e,n){var r=this;return(0,o.wB)((function(){return t(r.state,r.getters)}),e,Object.assign({},n))},$.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._state.data=t}))},$.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),n.preserveState),_(this,this.state)},$.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){delete b(e.state,t.slice(0,-1))[t[t.length-1]]})),g(this)},$.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},$.prototype.hotUpdate=function(t){this._modules.update(t),g(this,!0)},$.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties($.prototype,D);Q((function(t,e){var n={};return U(e).forEach((function(e){var o=e.key,r=e.val;n[o]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var o=B(this.$store,"mapState",t);if(!o)return;e=o.context.state,n=o.context.getters}return"function"==typeof r?r.call(this,e,n):e[r]},n[o].vuex=!0})),n})),Q((function(t,e){var n={};return U(e).forEach((function(e){var o=e.key,r=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.commit;if(t){var i=B(this.$store,"mapMutations",t);if(!i)return;o=i.context.commit}return"function"==typeof r?r.apply(this,[o].concat(e)):o.apply(this.$store,[r].concat(e))}})),n})),Q((function(t,e){var n={};return U(e).forEach((function(e){var o=e.key,r=e.val;r=t+r,n[o]=function(){if(!t||B(this.$store,"mapGetters",t))return this.$store.getters[r]},n[o].vuex=!0})),n})),Q((function(t,e){var n={};return U(e).forEach((function(e){var o=e.key,r=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.dispatch;if(t){var i=B(this.$store,"mapActions",t);if(!i)return;o=i.context.dispatch}return"function"==typeof r?r.apply(this,[o].concat(e)):o.apply(this.$store,[r].concat(e))}})),n}));function U(t){return function(t){return Array.isArray(t)||d(t)}(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 Q(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function B(t,e,n){return t._modulesNamespaceMap[n]}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.