import{a as t,K as e,L as n,M as s,N as o,k as c,b as a,d as r,w as i,n as u,q as f,O as p,f as l,i as h,h as d}from"./@vue-COP35Tvs.js"; /*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let y;const b=t=>y=t,v= /* istanbul ignore next */Symbol();function _(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var O,j;function $(){const e=n(!0),s=e.run((()=>t({})));let o=[],c=[];const a=p({install(t){b(a),a._a=t,t.provide(v,a),t.config.globalProperties.$pinia=a,c.forEach((t=>o.push(t))),c=[]},use(t){return this._a?o.push(t):c.push(t),this},_p:o, // it's actually undefined here // @ts-expect-error _a:null,_e:e,_s:new Map,state:s});return a}(j=O||(O={})).direct="direct",j.patchObject="patch object",j.patchFunction="patch function";const m=()=>{};function g(t,e,n,s=m){t.push(e);const o=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s())};return!n&&a()&&r(o),o}function S(t,...e){t.slice().forEach((t=>{t(...e)}))}const P=t=>t(),w=Symbol(),E=Symbol();function M(t,e){t instanceof Map&&e instanceof Map?e.forEach(((e,n)=>t.set(n,e))):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const c=e[n],a=t[n];_(a)&&_(c)&&t.hasOwnProperty(n)&&!s(c)&&!o(c)?t[n]=M(a,c):t[n]=c}return t}const k= /* istanbul ignore next */Symbol();const{assign:x}=Object;function I(a,r,f={},p,l,h){let d;const y=x({actions:{}},f),v={deep:!0};let j,$,I,A=[],F=[];const N=p.state.value[a];let q;function C(t){let e;j=$=!1,"function"==typeof t?(t(p.state.value[a]),e={type:O.patchFunction,storeId:a,events:I}):(M(p.state.value[a],t),e={type:O.patchObject,payload:t,storeId:a,events:I});const n=q=Symbol();u().then((()=>{q===n&&(j=!0)})),$=!0,S(A,e,p.state.value[a])}h||N||(p.state.value[a]={}),t({});const J=h?function(){const{state:t}=f,e=t?t():{};this.$patch((t=>{x(t,e)}))}: /* istanbul ignore next */m;const K=(t,e="")=>{if(w in t)return t[E]=e,t;const n=function(){b(p);const e=Array.from(arguments),s=[],o=[];let c;S(F,{args:e,name:n[E],store:W,after:function(t){s.push(t)},onError:function(t){o.push(t)}});try{c=t.apply(this&&this.$id===a?this:W,e)}catch(r){throw S(o,r),r}return c instanceof Promise?c.then((t=>(S(s,t),t))).catch((t=>(S(o,t),Promise.reject(t)))):(S(s,c),c)};return n[w]=!0,n[E]=e,n},L={_p:p, // _s: scope, $id:a,$onAction:g.bind(null,F),$patch:C,$reset:J,$subscribe(t,e={}){const n=g(A,t,e.detached,(()=>s())),s=d.run((()=>i((()=>p.state.value[a]),(n=>{("sync"===e.flush?$:j)&&t({storeId:a,type:O.direct,events:I},n)}),x({},v,e))));return n},$dispose:function(){d.stop(),A=[],F=[],p._s.delete(a)}},W=e(L);p._s.set(a,W);const z=(p._a&&p._a.runWithContext||P)((()=>p._e.run((()=>(d=n()).run((()=>r({action:K})))))));for(const t in z){const e=z[t];if(s(e)&&(!s(D=e)||!D.effect)||o(e))h||(!N||_(B=e)&&B.hasOwnProperty(k)||(s(e)?e.value=N[t]:M(e,N[t])),p.state.value[a][t]=e);else if("function"==typeof e){const n=K(e,t);z[t]=n,y.actions[t]=e}}var B,D;return x(W,z),x(c(W),z),Object.defineProperty(W,"$state",{get:()=>p.state.value[a],set:t=>{C((e=>{x(e,t)}))}}),p._p.forEach((t=>{x(W,d.run((()=>t({store:W,app:p._a,pinia:p,options:y}))))})),N&&h&&f.hydrate&&f.hydrate(W.$state,N),j=!0,$=!0,W} /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function A(t,e,n){let s,o;const c="function"==typeof e;function a(t,n){const a=d();(t=// in test mode, ignore the argument provided as we can always retrieve a // pinia instance with getActivePinia() t||(a?h(v,null):null))&&b(t),(t=y)._s.has(s)||(c?I(s,e,o,t):function(t,e,n){const{state:s,actions:o,getters:c}=e,a=n.state.value[t];let r;r=I(t,(function(){a||(n.state.value[t]=s?s():{});const e=f(n.state.value[t]);return x(e,o,Object.keys(c||{}).reduce(((e,s)=>(e[s]=p(l((()=>{b(n);const e=n._s.get(t);return c[s].call(e,e)}))),e)),{}))}),e,n,0,!0)}(s,o,t));return t._s.get(s)}return"string"==typeof t?(s=t,o=c?n:e):(o=t,s=t.id),a.$id=s,a}export{$ as c,A as d};