/**
 * Minified by jsDelivr using Terser v5.15.1.
 * Original file: /npm/pinia@2.0.35/dist/pinia.iife.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
/*!
  * pinia v2.0.35
  * (c) 2023 Eduardo San Martin Morote
  * @license MIT
  */
var Pinia=function(t,e){"use strict";let n;const o=t=>n=t,s=Symbol("pinia");function a(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}}const i="function"==typeof Proxy;let r,c;function u(){return void 0!==r||("undefined"!=typeof window&&window.performance?(r=!0,c=window.performance):"undefined"!=typeof global&&(null===(t=global.perf_hooks)||void 0===t?void 0:t.performance)?(r=!0,c=global.perf_hooks.performance):r=!1),r?c.now():Date.now();var t}class l{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 s=Object.assign({},n);try{const t=localStorage.getItem(o),e=JSON.parse(t);Object.assign(s,e)}catch(t){}this.fallbacks={getSettings:()=>s,setSettings(t){try{localStorage.setItem(o,JSON.stringify(t))}catch(t){}s=t},now:()=>u()},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 p(t,e){const n=t,o=a(),s=a().__VUE_DEVTOOLS_GLOBAL_HOOK__,r=i&&n.enableEarlyProxy;if(!s||!o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&r){const t=r?new l(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)}function d(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var f;t.MutationType=void 0,(f=t.MutationType||(t.MutationType={})).direct="direct",f.patchObject="patch object",f.patchFunction="patch function";const h="undefined"!=typeof window,y=h,g=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function m(t,e,n){const o=new XMLHttpRequest;o.open("GET",t),o.responseType="blob",o.onload=function(){$(o.response,e,n)},o.onerror=function(){console.error("could not download file")},o.send()}function _(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function b(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const v="object"==typeof navigator?navigator:{userAgent:""},w=(()=>/Macintosh/.test(v.userAgent)&&/AppleWebKit/.test(v.userAgent)&&!/Safari/.test(v.userAgent))(),$=h?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!w?function(t,e="download",n){const o=document.createElement("a");o.download=e,o.rel="noopener","string"==typeof t?(o.href=t,o.origin!==location.origin?_(o.href)?m(t,e,n):(o.target="_blank",b(o)):b(o)):(o.href=URL.createObjectURL(t),setTimeout((function(){URL.revokeObjectURL(o.href)}),4e4),setTimeout((function(){b(o)}),0))}:"msSaveOrOpenBlob"in v?function(t,e="download",n){if("string"==typeof t)if(_(t))m(t,e,n);else{const e=document.createElement("a");e.href=t,e.target="_blank",setTimeout((function(){b(e)}))}else navigator.msSaveOrOpenBlob(function(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,o){(o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading...");if("string"==typeof t)return m(t,e,n);const s="application/octet-stream"===t.type,a=/constructor/i.test(String(g.HTMLElement))||"safari"in g,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&a||w)&&"undefined"!=typeof FileReader){const e=new FileReader;e.onloadend=function(){let t=e.result;if("string"!=typeof t)throw o=null,new Error("Wrong reader.result type");t=i?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location.assign(t),o=null},e.readAsDataURL(t)}else{const e=URL.createObjectURL(t);o?o.location.assign(e):location.href=e,o=null,setTimeout((function(){URL.revokeObjectURL(e)}),4e4)}}:()=>{};function S(t,e){const n="🍍 "+t;"function"==typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(n,e):"error"===e?console.error(n):"warn"===e?console.warn(n):console.log(n)}function O(t){return"_a"in t&&"install"in t}function k(){if(!("clipboard"in navigator))return S("Your browser doesn't support the Clipboard API","error"),!0}function P(t){return!!(t instanceof Error&&t.message.toLowerCase().includes("document is not focused"))&&(S('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}let T;async function E(t){try{const e=await(T||(T=document.createElement("input"),T.type="file",T.accept=".json"),function(){return new Promise(((t,e)=>{T.onchange=async()=>{const e=T.files;if(!e)return t(null);const n=e.item(0);return t(n?{text:await n.text(),file:n}:null)},T.oncancel=()=>t(null),T.onerror=e,T.click()}))}),n=await e();if(!n)return;const{text:o,file:s}=n;t.state.value=JSON.parse(o),S(`Global state imported from "${s.name}".`)}catch(t){S("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}function R(t){return{_custom:{display:t}}}const I="🍍 Pinia (root)",j="_root";function A(t){return O(t)?{id:j,label:I}:{id:t.$id,label:t.$id}}function V(t){return t?Array.isArray(t)?t.reduce(((t,e)=>(t.keys.push(e.key),t.operations.push(e.type),t.oldValue[e.key]=e.oldValue,t.newValue[e.key]=e.newValue,t)),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:R(t.type),key:R(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function x(e){switch(e){case t.MutationType.direct:return"mutation";case t.MutationType.patchFunction:case t.MutationType.patchObject:return"$patch";default:return"unknown"}}let L=!0;const C=[],U="pinia:mutations",M="pinia",{assign:D}=Object,N=t=>"🍍 "+t;function F(t,n){p({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:C,app:t},(o=>{"function"!=typeof o.now&&S("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),o.addTimelineLayer({id:U,label:"Pinia 🍍",color:15064968}),o.addInspector({id:M,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{!async function(t){if(!k())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),S("Global state copied to clipboard.")}catch(t){if(P(t))return;S("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}(n)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await async function(t){if(!k())try{t.state.value=JSON.parse(await navigator.clipboard.readText()),S("Global state pasted from clipboard.")}catch(t){if(P(t))return;S("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}(n),o.sendInspectorTree(M),o.sendInspectorState(M)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{!async function(t){try{$(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){S("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}(n)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await E(n),o.sendInspectorTree(M),o.sendInspectorState(M)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:"Reset the state (option store only)",action:t=>{const e=n._s.get(t);e?e._isOptionsAPI?(e.$reset(),S(`Store "${t}" reset.`)):S(`Cannot reset "${t}" store because it's a setup store.`,"warn"):S(`Cannot reset "${t}" store because it wasn't found.`,"warn")}}]}),o.on.inspectComponent(((t,n)=>{const o=t.componentInstance&&t.componentInstance.proxy;if(o&&o._pStores){const n=t.componentInstance.proxy._pStores;Object.values(n).forEach((n=>{t.instanceData.state.push({type:N(n.$id),key:"state",editable:!0,value:n._isOptionsAPI?{_custom:{value:e.toRaw(n.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>n.$reset()}]}}:Object.keys(n.$state).reduce(((t,e)=>(t[e]=n.$state[e],t)),{})}),n._getters&&n._getters.length&&t.instanceData.state.push({type:N(n.$id),key:"getters",editable:!1,value:n._getters.reduce(((t,e)=>{try{t[e]=n[e]}catch(n){t[e]=n}return t}),{})})}))}})),o.on.getInspectorTree((e=>{if(e.app===t&&e.inspectorId===M){let t=[n];t=t.concat(Array.from(n._s.values())),e.rootNodes=(e.filter?t.filter((t=>"$id"in t?t.$id.toLowerCase().includes(e.filter.toLowerCase()):I.toLowerCase().includes(e.filter.toLowerCase()))):t).map(A)}})),o.on.getInspectorState((e=>{if(e.app===t&&e.inspectorId===M){const t=e.nodeId===j?n:n._s.get(e.nodeId);if(!t)return;t&&(e.state=function(t){if(O(t)){const e=Array.from(t._s.keys()),n=t._s,o={state:e.map((e=>({editable:!0,key:e,value:t.state.value[e]}))),getters:e.filter((t=>n.get(t)._getters)).map((t=>{const e=n.get(t);return{editable:!1,key:t,value:e._getters.reduce(((t,n)=>(t[n]=e[n],t)),{})}}))};return o}const e={state:Object.keys(t.$state).map((e=>({editable:!0,key:e,value:t.$state[e]})))};return t._getters&&t._getters.length&&(e.getters=t._getters.map((e=>({editable:!1,key:e,value:t[e]})))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map((e=>({editable:!0,key:e,value:t[e]})))),e}(t))}})),o.on.editInspectorState(((e,o)=>{if(e.app===t&&e.inspectorId===M){const t=e.nodeId===j?n:n._s.get(e.nodeId);if(!t)return S(`store "${e.nodeId}" not found`,"error");const{path:o}=e;O(t)?o.unshift("state"):1===o.length&&t._customProperties.has(o[0])&&!(o[0]in t.$state)||o.unshift("$state"),L=!1,e.set(t,o,e.state.value),L=!0}})),o.on.editComponentState((t=>{if(t.type.startsWith("🍍")){const e=t.type.replace(/^🍍\s*/,""),o=n._s.get(e);if(!o)return S(`store "${e}" not found`,"error");const{path:s}=t;if("state"!==s[0])return S(`Invalid path for store "${e}":\n${s}\nOnly state can be modified.`);s[0]="$state",L=!1,t.set(o,s,t.state.value),L=!0}}))}))}let H,J=0;function G(t,n){const o=n.reduce(((n,o)=>(n[o]=e.toRaw(t)[o],n)),{});for(const e in o)t[e]=function(){const n=J,s=new Proxy(t,{get:(...t)=>(H=n,Reflect.get(...t)),set:(...t)=>(H=n,Reflect.set(...t))});return o[e].apply(s,arguments)}}function B({app:n,store:o,options:s}){if(!o.$id.startsWith("__hot:")){if(s.state&&(o._isOptionsAPI=!0),"function"==typeof s.state){G(o,Object.keys(s.actions));const t=o._hotUpdate;e.toRaw(o)._hotUpdate=function(e){t.apply(this,arguments),G(o,Object.keys(e._hmrPayload.actions))}}!function(n,o){C.includes(N(o.$id))||C.push(N(o.$id)),p({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:C,app:n,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},(n=>{const s="function"==typeof n.now?n.now.bind(n):Date.now;o.$onAction((({after:t,onError:e,name:a,args:i})=>{const r=J++;n.addTimelineEvent({layerId:U,event:{time:s(),title:"🛫 "+a,subtitle:"start",data:{store:R(o.$id),action:R(a),args:i},groupId:r}}),t((t=>{H=void 0,n.addTimelineEvent({layerId:U,event:{time:s(),title:"🛬 "+a,subtitle:"end",data:{store:R(o.$id),action:R(a),args:i,result:t},groupId:r}})})),e((t=>{H=void 0,n.addTimelineEvent({layerId:U,event:{time:s(),logType:"error",title:"💥 "+a,subtitle:"end",data:{store:R(o.$id),action:R(a),args:i,error:t},groupId:r}})}))}),!0),o._customProperties.forEach((t=>{e.watch((()=>e.unref(o[t])),((e,o)=>{n.notifyComponentUpdate(),n.sendInspectorState(M),L&&n.addTimelineEvent({layerId:U,event:{time:s(),title:"Change",subtitle:t,data:{newValue:e,oldValue:o},groupId:H}})}),{deep:!0})})),o.$subscribe((({events:e,type:a},i)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(M),!L)return;const r={time:s(),title:x(a),data:D({store:R(o.$id)},V(e)),groupId:H};H=void 0,a===t.MutationType.patchFunction?r.subtitle="⤵️":a===t.MutationType.patchObject?r.subtitle="🧩":e&&!Array.isArray(e)&&(r.subtitle=e.type),e&&(r.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:e}}),n.addTimelineEvent({layerId:U,event:r})}),{detached:!0,flush:"sync"});const a=o._hotUpdate;o._hotUpdate=e.markRaw((t=>{a(t),n.addTimelineEvent({layerId:U,event:{time:s(),title:"🔥 "+o.$id,subtitle:"HMR update",data:{store:R(o.$id),info:R("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M)}));const{$dispose:i}=o;o.$dispose=()=>{i(),n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M),n.getSettings().logStoreChanges&&S(`Disposed "${o.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M),n.getSettings().logStoreChanges&&S(`"${o.$id}" store installed 🆕`)}))}(n,o)}}function Q(t,n){for(const o in n){const s=n[o];if(!(o in t))continue;const a=t[o];d(a)&&d(s)&&!e.isRef(s)&&!e.isReactive(s)?t[o]=Q(a,s):e.isVue2?e.set(t,o,s):t[o]=s}return t}const W=()=>{};function z(t,n,o,s=W){t.push(n);const a=()=>{const e=t.indexOf(n);e>-1&&(t.splice(e,1),s())};return!o&&e.getCurrentScope()&&e.onScopeDispose(a),a}function Y(t,...e){t.slice().forEach((t=>{t(...e)}))}function q(t,n){t instanceof Map&&n instanceof Map&&n.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&n instanceof Set&&n.forEach(t.add,t);for(const o in n){if(!n.hasOwnProperty(o))continue;const s=n[o],a=t[o];d(a)&&d(s)&&t.hasOwnProperty(o)&&!e.isRef(s)&&!e.isReactive(s)?t[o]=q(a,s):t[o]=s}return t}const K=Symbol("pinia:skipHydration"),X=new WeakMap;const{assign:Z}=Object;function tt(t){return!(!e.isRef(t)||!t.effect)}function et(t,n,s,a){const{state:i,actions:r,getters:c}=n,u=s.state.value[t];let l;return l=nt(t,(function(){u||a||(e.isVue2?e.set(s.state.value,t,i?i():{}):s.state.value[t]=i?i():{});const n=a?e.toRefs(e.ref(i?i():{}).value):e.toRefs(s.state.value[t]);return Z(n,r,Object.keys(c||{}).reduce(((a,i)=>(i in n&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${i}" in store "${t}".`),a[i]=e.markRaw(e.computed((()=>{o(s);const n=s._s.get(t);if(!e.isVue2||n._r)return c[i].call(n,n)}))),a)),{}))}),n,s,a,!0),l}function nt(n,s,a={},i,r,c){let u;const l=Z({actions:{}},a);if(!i._e.active)throw new Error("Pinia destroyed");const p={deep:!0};let f,g;e.isVue2||(p.onTrigger=t=>{f?m=t:0!=f||E._hotUpdating||(Array.isArray(m)?m.push(t):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let m,_=e.markRaw([]),b=e.markRaw([]);const v=i.state.value[n];c||v||r||(e.isVue2?e.set(i.state.value,n,{}):i.state.value[n]={});const w=e.ref({});let $;function S(o){let s;f=g=!1,m=[],"function"==typeof o?(o(i.state.value[n]),s={type:t.MutationType.patchFunction,storeId:n,events:m}):(q(i.state.value[n],o),s={type:t.MutationType.patchObject,payload:o,storeId:n,events:m});const a=$=Symbol();e.nextTick().then((()=>{$===a&&(f=!0)})),g=!0,Y(_,s,i.state.value[n])}const O=c?function(){const{state:t}=a,e=t?t():{};this.$patch((t=>{Z(t,e)}))}:()=>{throw new Error(`🍍: Store "${n}" is built using the setup syntax and does not implement $reset().`)};function k(t,e){return function(){o(i);const s=Array.from(arguments),a=[],r=[];function c(t){a.push(t)}function u(t){r.push(t)}let l;Y(b,{args:s,name:t,store:E,after:c,onError:u});try{l=e.apply(this&&this.$id===n?this:E,s)}catch(t){throw Y(r,t),t}return l instanceof Promise?l.then((t=>(Y(a,t),t))).catch((t=>(Y(r,t),Promise.reject(t)))):(Y(a,l),l)}}const P=e.markRaw({actions:{},getters:{},state:[],hotState:w}),T={_p:i,$id:n,$onAction:z.bind(null,b),$patch:S,$reset:O,$subscribe(o,s={}){const a=z(_,o,s.detached,(()=>r())),r=u.run((()=>e.watch((()=>i.state.value[n]),(e=>{("sync"===s.flush?g:f)&&o({storeId:n,type:t.MutationType.direct,events:m},e)}),Z({},p,s))));return a},$dispose:function(){u.stop(),_=[],b=[],i._s.delete(n)}};e.isVue2&&(T._r=!1);const E=e.reactive(Z({_hmrPayload:P,_customProperties:e.markRaw(new Set)},T));i._s.set(n,E);const R=i._e.run((()=>(u=e.effectScope(),u.run((()=>s())))));for(const t in R){const o=R[t];if(e.isRef(o)&&!tt(o)||e.isReactive(o))r?e.set(w.value,t,e.toRef(R,t)):c||(!v||(I=o,e.isVue2?X.has(I):d(I)&&I.hasOwnProperty(K))||(e.isRef(o)?o.value=v[t]:q(o,v[t])),e.isVue2?e.set(i.state.value[n],t,o):i.state.value[n][t]=o),P.state.push(t);else if("function"==typeof o){const n=r?o:k(t,o);e.isVue2?e.set(R,t,n):R[t]=n,P.actions[t]=o,l.actions[t]=o}else if(tt(o)&&(P.getters[t]=c?a.getters[t]:o,h)){(R._getters||(R._getters=e.markRaw([]))).push(t)}}var I;if(e.isVue2?Object.keys(R).forEach((t=>{e.set(E,t,R[t])})):(Z(E,R),Z(e.toRaw(E),R)),Object.defineProperty(E,"$state",{get:()=>r?w.value:i.state.value[n],set:t=>{if(r)throw new Error("cannot set hotState");S((e=>{Z(e,t)}))}}),E._hotUpdate=e.markRaw((t=>{E._hotUpdating=!0,t._hmrPayload.state.forEach((n=>{if(n in E.$state){const e=t.$state[n],o=E.$state[n];"object"==typeof e&&d(e)&&d(o)?Q(e,o):t.$state[n]=o}e.set(E,n,e.toRef(t.$state,n))})),Object.keys(E.$state).forEach((n=>{n in t.$state||e.del(E,n)})),f=!1,g=!1,i.state.value[n]=e.toRef(t._hmrPayload,"hotState"),g=!0,e.nextTick().then((()=>{f=!0}));for(const n in t._hmrPayload.actions){const o=t[n];e.set(E,n,k(n,o))}for(const n in t._hmrPayload.getters){const s=t._hmrPayload.getters[n],a=c?e.computed((()=>(o(i),s.call(E,E)))):s;e.set(E,n,a)}Object.keys(E._hmrPayload.getters).forEach((n=>{n in t._hmrPayload.getters||e.del(E,n)})),Object.keys(E._hmrPayload.actions).forEach((n=>{n in t._hmrPayload.actions||e.del(E,n)})),E._hmrPayload=t._hmrPayload,E._getters=t._getters,E._hotUpdating=!1})),y){const t={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((e=>{Object.defineProperty(E,e,Z({value:E[e]},t))}))}return e.isVue2&&(E._r=!0),i._p.forEach((t=>{if(y){const e=u.run((()=>t({store:E,app:i._a,pinia:i,options:l})));Object.keys(e||{}).forEach((t=>E._customProperties.add(t))),Z(E,e)}else Z(E,u.run((()=>t({store:E,app:i._a,pinia:i,options:l}))))})),E.$state&&"object"==typeof E.$state&&"function"==typeof E.$state.constructor&&!E.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be\n\tstate: () => new MyClass()\nFound in store "${E.$id}".`),v&&c&&a.hydrate&&a.hydrate(E.$state,v),f=!0,g=!0,E}let ot="Store";function st(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]=function(){return t(this.$pinia)[n]},e)),{}):Object.keys(e).reduce(((n,o)=>(n[o]=function(){const n=t(this.$pinia),s=e[o];return"function"==typeof s?s.call(this,n):n[s]},n)),{})}const at=st;return t.PiniaVuePlugin=function(t){t.mixin({beforeCreate(){const t=this.$options;if(t.pinia){const e=t.pinia;if(!this._provided){const t={};Object.defineProperty(this,"_provided",{get:()=>t,set:e=>Object.assign(t,e)})}this._provided[s]=e,this.$pinia||(this.$pinia=e),e._a=this,h&&o(e),y&&F(e._a,e)}else!this.$pinia&&t.parent&&t.parent.$pinia&&(this.$pinia=t.parent.$pinia)},destroyed(){delete this._pStores}})},t.acceptHMRUpdate=function(t,e){return n=>{const o=e.data.pinia||t._pinia;if(o){e.data.pinia=o;for(const a in n){const i=n[a];if("function"==typeof(s=i)&&"string"==typeof s.$id&&o._s.has(i.$id)){const n=i.$id;if(n!==t.$id)return console.warn(`The id of the store changed from "${t.$id}" to "${n}". Reloading.`),e.invalidate();const s=o._s.get(n);if(!s)return void console.log("[Pinia]: skipping hmr because store doesn't exist yet");i(o,s)}}var s}}},t.createPinia=function(){const t=e.effectScope(!0),n=t.run((()=>e.ref({})));let a=[],i=[];const r=e.markRaw({install(t){o(r),e.isVue2||(r._a=t,t.provide(s,r),t.config.globalProperties.$pinia=r,y&&F(t,r),i.forEach((t=>a.push(t))),i=[])},use(t){return this._a||e.isVue2?a.push(t):i.push(t),this},_p:a,_a:null,_e:t,_s:new Map,state:n});return y&&"undefined"!=typeof Proxy&&r.use(B),r},t.defineStore=function(t,a,i){let r,c;const u="function"==typeof a;function l(t,i){const p=e.getCurrentInstance();if((t=t||p&&e.inject(s,null))&&o(t),!n)throw new Error("[🍍]: getActivePinia was called with no active Pinia. Did you forget to install pinia?\n\tconst pinia = createPinia()\n\tapp.use(pinia)\nThis will fail in production.");(t=n)._s.has(r)||(u?nt(r,a,c,t):et(r,c,t),l._pinia=t);const d=t._s.get(r);if(i){const e="__hot:"+r,n=u?nt(e,a,c,t,!0):et(e,Z({},c),t,!0);i._hotUpdate(n),delete t.state.value[e],t._s.delete(e)}if(h&&p&&p.proxy&&!i){const t=p.proxy;("_pStores"in t?t._pStores:t._pStores={})[r]=d}return d}return"string"==typeof t?(r=t,c=u?i:a):(c=t,r=t.id),l.$id=r,l},t.getActivePinia=()=>e.getCurrentInstance()&&e.inject(s)||n,t.mapActions=function(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]=function(...e){return t(this.$pinia)[n](...e)},e)),{}):Object.keys(e).reduce(((n,o)=>(n[o]=function(...n){return t(this.$pinia)[e[o]](...n)},n)),{})},t.mapGetters=at,t.mapState=st,t.mapStores=function(...t){return Array.isArray(t[0])&&(console.warn('[🍍]: Directly pass all stores to "mapStores()" without putting them in an array:\nReplace\n\tmapStores([useAuthStore, useCartStore])\nwith\n\tmapStores(useAuthStore, useCartStore)\nThis will fail in production if not fixed.'),t=t[0]),t.reduce(((t,e)=>(t[e.$id+ot]=function(){return e(this.$pinia)},t)),{})},t.mapWritableState=function(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]={get(){return t(this.$pinia)[n]},set(e){return t(this.$pinia)[n]=e}},e)),{}):Object.keys(e).reduce(((n,o)=>(n[o]={get(){return t(this.$pinia)[e[o]]},set(n){return t(this.$pinia)[e[o]]=n}},n)),{})},t.setActivePinia=o,t.setMapStoreSuffix=function(t){ot=t},t.skipHydrate=function(t){return e.isVue2?X.set(t,1)&&t:Object.defineProperty(t,K,{})},t.storeToRefs=function(t){if(e.isVue2)return e.toRefs(t);{t=e.toRaw(t);const n={};for(const o in t){const s=t[o];(e.isRef(s)||e.isReactive(s))&&(n[o]=e.toRef(t,o))}return n}},t}({},VueDemi);
//# sourceMappingURL=/sm/6fdecbe40c5941a3b3f1370286fc9ac6520336d37d0cd5e299bcbf9559d007ca.map