node_modules/pinia/dist/pinia.iife.js
/**
   * Creates a Pinia instance to be used by the application
   */
Creates a Pinia instance to be used by the application
Creates a Pinia instance to be used by the application
function createPinia() {
      const scope = vueDemi.effectScope(true);
      const state = scope.run(() => vueDemi.ref({}));
      let _p = [];
      let toBeInstalled = [];
      const pinia = vueDemi.markRaw({
          install(app) {
              setActivePinia(pinia);
              if (!vueDemi.isVue2) {
                  pinia._a = app;
                  app.provide(piniaSymbol, pinia);
                  app.config.globalProperties.$pinia = pinia;
                  if (IS_CLIENT) {
                      registerPiniaDevtools(app, pinia);
                  }
                  toBeInstalled.forEach((plugin) => _p.push(plugin));
                  toBeInstalled = [];
              }
          },
          use(plugin) {
              if (!this._a && !vueDemi.isVue2) {
                  toBeInstalled.push(plugin);
              }
              else {
                  _p.push(plugin);
              }
              return this;
          },
          _p,
          _a: null,
          _e: scope,
          _s: new Map(),
          state,
      });
      if (IS_CLIENT) {
          pinia.use(devtoolsPlugin);
      }
      return pinia;
  }
function createPinia ( ) { const scope = vueDemi . effectScope ( true ) ; const state = scope . run ( ( ) => vueDemi . ref ( { } ) ) ; let _p = [ ] ; let toBeInstalled = [ ] ; const pinia = vueDemi . markRaw ( { install ( app ) { setActivePinia ( pinia ) ; if ( ! vueDemi . isVue2 ) { pinia . _a = app ; app . provide ( piniaSymbol , pinia ) ; app . config . globalProperties . $pinia = pinia ; if ( IS_CLIENT ) { registerPiniaDevtools ( app , pinia ) ; } toBeInstalled . forEach ( ( plugin ) => _p . push ( plugin ) ) ; toBeInstalled = [ ] ; } } , use ( plugin ) { if ( ! this . _a && ! vueDemi . isVue2 ) { toBeInstalled . push ( plugin ) ; } else { _p . push ( plugin ) ; } return this ; } , _p , _a : null , _e : scope , _s : new Map ( ) , state , } ) ; if ( IS_CLIENT ) { pinia . use ( devtoolsPlugin ) ; } return pinia ; }
Creates a Pinia instance to be used by the application
Creates a Pinia instance to be used by the application
// NOTE: here we could check the window object for a state and directly set it // if there is anything like it with Vue 3 SSR // plugins added before calling app.use(pinia) // this allows calling useStore() outside of a component setup after // installing pinia's plugin /* istanbul ignore else */ // it's actually undefined here // @ts-expect-error // pinia devtools rely on dev only features so they cannot be forced unless // the dev build of Vue is used