Current Path : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/ui/vue3/pinia/dist/ |
Current File : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/ui/vue3/pinia/dist/pinia.bundle.min.js |
(function(){if(typeof this.BX!=="undefined"&&typeof this.BX.Vue3!=="undefined"&&typeof this.BX.Vue3.Pinia!=="undefined"){var e="2.0.22";if(this.BX.Vue3.Pinia.version!==e){console.warn("BX.Vue3.Pinia already loaded. Loaded: "+this.BX.Vue3.Pinia.version+", Skipped: "+e+". Version differences may cause errors!")}return}this.BX=this.BX||{};this.BX.Vue3=this.BX.Vue3||{};(function(e,t){"use strict"; /** * pinia v2.0.22 * (c) 2022 Eduardo San Martin Morote * @license MIT * * @source: https://unpkg.com/pinia@2.0.11/dist/pinia.esm-browser.js * @source: https://github.com/vueuse/vue-demi/blob/master/lib/v3/index.cjs */const n=false;function o(e,t,n){if(Array.isArray(e)){e.length=Math.max(e.length,t);e.splice(t,1,n)}else if(typeof e==="object"){e[t]=n}return n}function i(e,t){if(Array.isArray(e)){e.splice(t,1)}else if(typeof e==="object"){delete e[t]}}function s(){return r().__VUE_DEVTOOLS_GLOBAL_HOOK__}function r(){return typeof navigator!=="undefined"?window:typeof global!=="undefined"?global:{}}const a="devtools-plugin:setup";function c(e,t){const n=s();if(n){n.emit(a,e,t)}else{const n=r();const o=n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[];o.push({pluginDescriptor:e,setupFn:t})}}let u;const l=e=>u=e;const f=()=>t.getCurrentInstance()&&t.inject(p)||u;const p=Symbol("pinia");function d(e){return e&&typeof e==="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!=="function"}(function(e){e["direct"]="direct";e["patchObject"]="patch object";e["patchFunction"]="patch function"})(e.MutationType||(e.MutationType={}));const h=typeof window!=="undefined";const y=h;const g=(()=>typeof window==="object"&&window.window===window?window:typeof self==="object"&&self.self===self?self:typeof global==="object"&&global.global===global?global:typeof globalThis==="object"?globalThis:{HTMLElement:null})();function m(e,{autoBom:t=false}={}){if(t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)){return new Blob([String.fromCharCode(65279),e],{type:e.type})}return e}function _(e,t,n){const o=new XMLHttpRequest;o.open("GET",e);o.responseType="blob";o.onload=function(){S(o.response,t,n)};o.onerror=function(){console.error("could not download file")};o.send()}function b(e){const t=new XMLHttpRequest;t.open("HEAD",e,false);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function v(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",true,true,window,0,0,0,80,20,false,false,false,false,0,null);e.dispatchEvent(n)}}const w=typeof navigator==="object"?navigator:{userAgent:""};const $=(()=>/Macintosh/.test(w.userAgent)&&/AppleWebKit/.test(w.userAgent)&&!/Safari/.test(w.userAgent))();const S=!h?()=>{}:typeof HTMLAnchorElement!=="undefined"&&"download"in HTMLAnchorElement.prototype&&!$?P:"msSaveOrOpenBlob"in w?O:k;function P(e,t="download",n){const o=document.createElement("a");o.download=t;o.rel="noopener";if(typeof e==="string"){o.href=e;if(o.origin!==location.origin){if(b(o.href)){_(e,t,n)}else{o.target="_blank";v(o)}}else{v(o)}}else{o.href=URL.createObjectURL(e);setTimeout((function(){URL.revokeObjectURL(o.href)}),4e4);setTimeout((function(){v(o)}),0)}}function O(e,t="download",n){if(typeof e==="string"){if(b(e)){_(e,t,n)}else{const t=document.createElement("a");t.href=e;t.target="_blank";setTimeout((function(){v(t)}))}}else{navigator.msSaveOrOpenBlob(m(e,n),t)}}function k(e,t,n,o){o=o||open("","_blank");if(o){o.document.title=o.document.body.innerText="downloading..."}if(typeof e==="string")return _(e,t,n);const i=e.type==="application/octet-stream";const s=/constructor/i.test(String(g.HTMLElement))||"safari"in g;const r=/CriOS\/[\d]+/.test(navigator.userAgent);if((r||i&&s||$)&&typeof FileReader!=="undefined"){const t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=="string"){o=null;throw new Error("Wrong reader.result type")}e=r?e:e.replace(/^data:[^;]*;/,"data:attachment/file;");if(o){o.location.href=e}else{location.assign(e)}o=null};t.readAsDataURL(e)}else{const t=URL.createObjectURL(e);if(o)o.location.assign(t);else location.href=t;o=null;setTimeout((function(){URL.revokeObjectURL(t)}),4e4)}}function E(e,t){const n="Pinia: "+e;if(typeof __VUE_DEVTOOLS_TOAST__==="function"){__VUE_DEVTOOLS_TOAST__(n,t)}else if(t==="error"){console.error(n)}else if(t==="warn"){console.warn(n)}else{console.log(n)}}function T(e){return"_a"in e&&"install"in e}function R(){if(!("clipboard"in navigator)){E(`Your browser doesn't support the Clipboard API`,"error");return true}}function j(e){if(e instanceof Error&&e.message.toLowerCase().includes("document is not focused")){E('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn");return true}return false}async function I(e){if(R())return;try{await navigator.clipboard.writeText(JSON.stringify(e.state.value));E("Global state copied to clipboard.")}catch(e){if(j(e))return;E(`Failed to serialize the state. Check the console for more details.`,"error");console.error(e)}}async function A(e){if(R())return;try{e.state.value=JSON.parse(await navigator.clipboard.readText());E("Global state pasted from clipboard.")}catch(e){if(j(e))return;E(`Failed to deserialize the state from clipboard. Check the console for more details.`,"error");console.error(e)}}async function V(e){try{S(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){E(`Failed to export the state as JSON. Check the console for more details.`,"error");console.error(e)}}let C;function U(){if(!C){C=document.createElement("input");C.type="file";C.accept=".json"}function e(){return new Promise(((e,t)=>{C.onchange=async()=>{const t=C.files;if(!t)return e(null);const n=t.item(0);if(!n)return e(null);return e({text:await n.text(),file:n})};C.oncancel=()=>e(null);C.onerror=t;C.click()}))}return e}async function L(e){try{const t=await U();const n=await t();if(!n)return;const{text:o,file:i}=n;e.state.value=JSON.parse(o);E(`Global state imported from "${i.name}".`)}catch(e){E(`Failed to export the state as JSON. Check the console for more details.`,"error");console.error(e)}}function M(e){return{_custom:{display:e}}}const x="Pinia (root)";const B="_root";function D(e){return T(e)?{id:B,label:x}:{id:e.$id,label:e.$id}}function N(e){if(T(e)){const t=Array.from(e._s.keys());const n=e._s;const o={state:t.map((t=>({editable:true,key:t,value:e.state.value[t]}))),getters:t.filter((e=>n.get(e)._getters)).map((e=>{const t=n.get(e);return{editable:false,key:e,value:t._getters.reduce(((e,n)=>{e[n]=t[n];return e}),{})}}))};return o}const t={state:Object.keys(e.$state).map((t=>({editable:true,key:t,value:e.$state[t]})))};if(e._getters&&e._getters.length){t.getters=e._getters.map((t=>({editable:false,key:t,value:e[t]})))}if(e._customProperties.size){t.customProperties=Array.from(e._customProperties).map((t=>({editable:true,key:t,value:e[t]})))}return t}function X(e){if(!e)return{};if(Array.isArray(e)){return e.reduce(((e,t)=>{e.keys.push(t.key);e.operations.push(t.type);e.oldValue[t.key]=t.oldValue;e.newValue[t.key]=t.newValue;return e}),{oldValue:{},keys:[],operations:[],newValue:{}})}else{return{operation:M(e.type),key:M(e.key),oldValue:e.oldValue,newValue:e.newValue}}}function F(t){switch(t){case e.MutationType.direct:return"mutation";case e.MutationType.patchFunction:return"$patch";case e.MutationType.patchObject:return"$patch";default:return"unknown"}}let H=true;const J=[];const G="pinia:mutations";const W="pinia";const z=e=>":Pinia: "+e;function Y(e,n){c({id:"dev.esm.pinia",label:"Pinia",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:J,app:e},(o=>{if(typeof o.now!=="function"){E("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:G,label:`Pinia`,color:15064968});o.addInspector({id:W,label:"Pinia",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{I(n)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await A(n);o.sendInspectorTree(W);o.sendInspectorState(W)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{V(n)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await L(n);o.sendInspectorTree(W);o.sendInspectorState(W)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:"Reset the state (option store only)",action:e=>{const t=n._s.get(e);if(!t){E(`Cannot reset "${e}" store because it wasn't found.`,"warn")}else if(!t._isOptionsAPI){E(`Cannot reset "${e}" store because it's a setup store.`,"warn")}else{t.$reset();E(`Store "${e}" reset.`)}}}]});o.on.inspectComponent(((e,n)=>{const o=e.componentInstance&&e.componentInstance.proxy;if(o&&o._pStores){const n=e.componentInstance.proxy._pStores;Object.values(n).forEach((n=>{e.instanceData.state.push({type:z(n.$id),key:"state",editable:true,value:n._isOptionsAPI?{_custom:{value:t.toRaw(n.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>n.$reset()}]}}:Object.keys(n.$state).reduce(((e,t)=>{e[t]=n.$state[t];return e}),{})});if(n._getters&&n._getters.length){e.instanceData.state.push({type:z(n.$id),key:"getters",editable:false,value:n._getters.reduce(((e,t)=>{try{e[t]=n[t]}catch(n){e[t]=n}return e}),{})})}}))}}));o.on.getInspectorTree((t=>{if(t.app===e&&t.inspectorId===W){let e=[n];e=e.concat(Array.from(n._s.values()));t.rootNodes=(t.filter?e.filter((e=>"$id"in e?e.$id.toLowerCase().includes(t.filter.toLowerCase()):x.toLowerCase().includes(t.filter.toLowerCase()))):e).map(D)}}));o.on.getInspectorState((t=>{if(t.app===e&&t.inspectorId===W){const e=t.nodeId===B?n:n._s.get(t.nodeId);if(!e){return}if(e){t.state=N(e)}}}));o.on.editInspectorState(((t,o)=>{if(t.app===e&&t.inspectorId===W){const e=t.nodeId===B?n:n._s.get(t.nodeId);if(!e){return E(`store "${t.nodeId}" not found`,"error")}const{path:o}=t;if(!T(e)){if(o.length!==1||!e._customProperties.has(o[0])||o[0]in e.$state){o.unshift("$state")}}else{o.unshift("state")}H=false;t.set(e,o,t.state.value);H=true}}));o.on.editComponentState((e=>{if(e.type.startsWith(":Pinia:")){const t=e.type.replace(/^:Pinia:\s*/,"");const o=n._s.get(t);if(!o){return E(`store "${t}" not found`,"error")}const{path:i}=e;if(i[0]!=="state"){return E(`Invalid path for store "${t}":\n${i}\nOnly state can be modified.`)}i[0]="$state";H=false;e.set(o,i,e.state.value);H=true}}))}))}function q(n,o){if(!J.includes(z(o.$id))){J.push(z(o.$id))}c({id:"dev.esm.pinia",label:"Pinia",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:J,app:n,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:true}}},(n=>{const i=typeof n.now==="function"?n.now.bind(n):Date.now;o.$onAction((({after:e,onError:t,name:s,args:r})=>{const a=K++;n.addTimelineEvent({layerId:G,event:{time:i(),title:"Start "+s,subtitle:"start",data:{store:M(o.$id),action:M(s),args:r},groupId:a}});e((e=>{Q=undefined;n.addTimelineEvent({layerId:G,event:{time:i(),title:"End "+s,subtitle:"end",data:{store:M(o.$id),action:M(s),args:r,result:e},groupId:a}})}));t((e=>{Q=undefined;n.addTimelineEvent({layerId:G,event:{time:i(),logType:"error",title:"Error "+s,subtitle:"end",data:{store:M(o.$id),action:M(s),args:r,error:e},groupId:a}})}))}),true);o._customProperties.forEach((e=>{t.watch((()=>t.unref(o[e])),((t,o)=>{n.notifyComponentUpdate();n.sendInspectorState(W);if(H){n.addTimelineEvent({layerId:G,event:{time:i(),title:"Change",subtitle:e,data:{newValue:t,oldValue:o},groupId:Q}})}}),{deep:true})}));o.$subscribe((({events:t,type:s},r)=>{n.notifyComponentUpdate();n.sendInspectorState(W);if(!H)return;const a={time:i(),title:F(s),data:{store:M(o.$id),...X(t)},groupId:Q};Q=undefined;if(s===e.MutationType.patchFunction){a.subtitle="Down"}else if(s===e.MutationType.patchObject){a.subtitle="Patch"}else if(t&&!Array.isArray(t)){a.subtitle=t.type}if(t){a.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:t}}}n.addTimelineEvent({layerId:G,event:a})}),{detached:true,flush:"sync"});const s=o._hotUpdate;o._hotUpdate=t.markRaw((e=>{s(e);n.addTimelineEvent({layerId:G,event:{time:i(),title:"Hot update "+o.$id,subtitle:"HMR update",data:{store:M(o.$id),info:M(`HMR update`)}}});n.notifyComponentUpdate();n.sendInspectorTree(W);n.sendInspectorState(W)}));const{$dispose:r}=o;o.$dispose=()=>{r();n.notifyComponentUpdate();n.sendInspectorTree(W);n.sendInspectorState(W);n.getSettings().logStoreChanges&&E(`Disposed "${o.$id}" store`)};n.notifyComponentUpdate();n.sendInspectorTree(W);n.sendInspectorState(W);n.getSettings().logStoreChanges&&E(`"${o.$id}" store installed`)}))}let K=0;let Q;function Z(e,n){const o=n.reduce(((n,o)=>{n[o]=t.toRaw(e)[o];return n}),{});for(const t in o){e[t]=function(){const n=K;const i=new Proxy(e,{get(...e){Q=n;return Reflect.get(...e)},set(...e){Q=n;return Reflect.set(...e)}});return o[t].apply(i,arguments)}}}function ee({app:e,store:n,options:o}){if(n.$id.startsWith("__hot:")){return}if(o.state){n._isOptionsAPI=true}if(typeof o.state==="function"){Z(n,Object.keys(o.actions));const e=n._hotUpdate;t.toRaw(n)._hotUpdate=function(t){e.apply(this,arguments);Z(n,Object.keys(t._hmrPayload.actions))}}q(e,n)}function te(){const e=t.effectScope(true);const o=e.run((()=>t.ref({})));let i=[];let s=[];const r=t.markRaw({install(e){l(r);{r._a=e;e.provide(p,r);e.config.globalProperties.$pinia=r;if(y){Y(e,r)}s.forEach((e=>i.push(e)));s=[]}},use(e){if(!this._a&&!n){s.push(e)}else{i.push(e)}return this},_p:i,_a:null,_e:e,_s:new Map,state:o});if(y&&typeof Proxy!=="undefined"){r.use(ee)}return r}const ne=e=>typeof e==="function"&&typeof e.$id==="string";function oe(e,n){for(const o in n){const i=n[o];if(!(o in e)){continue}const s=e[o];if(d(s)&&d(i)&&!t.isRef(i)&&!t.isReactive(i)){e[o]=oe(s,i)}else{{e[o]=i}}}return e}function ie(e,t){return n=>{const o=t.data.pinia||e._pinia;if(!o){return}t.data.pinia=o;for(const i in n){const s=n[i];if(ne(s)&&o._s.has(s.$id)){const n=s.$id;if(n!==e.$id){console.warn(`The id of the store changed from "${e.$id}" to "${n}". Reloading.`);return t.invalidate()}const i=o._s.get(n);if(!i){console.log(`[Pinia]: skipping hmr because store doesn't exist yet`);return}s(o,i)}}}}const se=()=>{};function re(e,n,o,i=se){e.push(n);const s=()=>{const t=e.indexOf(n);if(t>-1){e.splice(t,1);i()}};if(!o&&t.getCurrentInstance()){t.onUnmounted(s)}return s}function ae(e,...t){e.slice().forEach((e=>{e(...t)}))}function ce(e,n){if(e instanceof Map&&n instanceof Map){n.forEach(((t,n)=>e.set(n,t)))}if(e instanceof Set&&n instanceof Set){n.forEach(e.add,e)}for(const o in n){if(!n.hasOwnProperty(o))continue;const i=n[o];const s=e[o];if(d(s)&&d(i)&&e.hasOwnProperty(o)&&!t.isRef(i)&&!t.isReactive(i)){e[o]=ce(s,i)}else{e[o]=i}}return e}const ue=Symbol("pinia:skipHydration");function le(e){return Object.defineProperty(e,ue,{})}function fe(e){return!d(e)||!e.hasOwnProperty(ue)}const{assign:pe}=Object;function de(e){return!!(t.isRef(e)&&e.effect)}function he(e,n,o,i){const{state:s,actions:r,getters:a}=n;const c=o.state.value[e];let u;function f(){if(!c&&!i){{o.state.value[e]=s?s():{}}}const n=i?t.toRefs(t.ref(s?s():{}).value):t.toRefs(o.state.value[e]);return pe(n,r,Object.keys(a||{}).reduce(((i,s)=>{if(s in n){console.warn(`[Pinia]: A getter cannot have the same name as another state property. Rename one of them. Found with "${s}" in store "${e}".`)}i[s]=t.markRaw(t.computed((()=>{l(o);const t=o._s.get(e);return a[s].call(t,t)})));return i}),{}))}u=ye(e,f,n,o,i,true);u.$reset=function e(){const t=s?s():{};this.$patch((e=>{pe(e,t)}))};return u}function ye(n,s,r={},a,c,u){let f;const p=pe({actions:{}},r);if(!a._e.active){throw new Error("Pinia destroyed")}const y={deep:true};{y.onTrigger=e=>{if(g){v=e}else if(g==false&&!j._hotUpdating){if(Array.isArray(v)){v.push(e)}else{console.error("Pinia: debuggerEvents should be an array. This is most likely an internal Pinia bug.")}}}}let g;let m;let _=t.markRaw([]);let b=t.markRaw([]);let v;const w=a.state.value[n];if(!u&&!w&&!c){{a.state.value[n]={}}}const $=t.ref({});let S;function P(o){let i;g=m=false;{v=[]}if(typeof o==="function"){o(a.state.value[n]);i={type:e.MutationType.patchFunction,storeId:n,events:v}}else{ce(a.state.value[n],o);i={type:e.MutationType.patchObject,payload:o,storeId:n,events:v}}const s=S=Symbol();t.nextTick().then((()=>{if(S===s){g=true}}));m=true;ae(_,i,a.state.value[n])}const O=()=>{throw new Error(`Pinia: Store "${n}" is built using the setup syntax and does not implement $reset().`)};function k(){f.stop();_=[];b=[];a._s.delete(n)}function E(e,t){return function(){l(a);const o=Array.from(arguments);const i=[];const s=[];function r(e){i.push(e)}function c(e){s.push(e)}ae(b,{args:o,name:e,store:j,after:r,onError:c});let u;try{u=t.apply(this&&this.$id===n?this:j,o)}catch(e){ae(s,e);throw e}if(u instanceof Promise){return u.then((e=>{ae(i,e);return e})).catch((e=>{ae(s,e);return Promise.reject(e)}))}ae(i,u);return u}}const T=t.markRaw({actions:{},getters:{},state:[],hotState:$});const R={_p:a,$id:n,$onAction:re.bind(null,b),$patch:P,$reset:O,$subscribe(o,i={}){const s=re(_,o,i.detached,(()=>r()));const r=f.run((()=>t.watch((()=>a.state.value[n]),(t=>{if(i.flush==="sync"?m:g){o({storeId:n,type:e.MutationType.direct,events:v},t)}}),pe({},y,i))));return s},$dispose:k};const j=t.reactive(pe(h?{_customProperties:t.markRaw(new Set),_hmrPayload:T}:{},R));a._s.set(n,j);const I=a._e.run((()=>{f=t.effectScope();return f.run((()=>s()))}));for(const e in I){const i=I[e];if(t.isRef(i)&&!de(i)||t.isReactive(i)){if(c){o($.value,e,t.toRef(I,e))}else if(!u){if(w&&fe(i)){if(t.isRef(i)){i.value=w[e]}else{ce(i,w[e])}}{a.state.value[n][e]=i}}{T.state.push(e)}}else if(typeof i==="function"){const t=c?i:E(e,i);{I[e]=t}{T.actions[e]=i}p.actions[e]=i}else{if(de(i)){T.getters[e]=u?r.getters[e]:i;if(h){const n=I._getters||(I._getters=t.markRaw([]));n.push(e)}}}}{pe(j,I);pe(t.toRaw(j),I)}Object.defineProperty(j,"$state",{get:()=>c?$.value:a.state.value[n],set:e=>{if(c){throw new Error("cannot set hotState")}P((t=>{pe(t,e)}))}});{j._hotUpdate=t.markRaw((e=>{j._hotUpdating=true;e._hmrPayload.state.forEach((n=>{if(n in j.$state){const t=e.$state[n];const o=j.$state[n];if(typeof t==="object"&&d(t)&&d(o)){oe(t,o)}else{e.$state[n]=o}}o(j,n,t.toRef(e.$state,n))}));Object.keys(j.$state).forEach((t=>{if(!(t in e.$state)){i(j,t)}}));g=false;m=false;a.state.value[n]=t.toRef(e._hmrPayload,"hotState");m=true;t.nextTick().then((()=>{g=true}));for(const t in e._hmrPayload.actions){const n=e[t];o(j,t,E(t,n))}for(const n in e._hmrPayload.getters){const i=e._hmrPayload.getters[n];const s=u?t.computed((()=>{l(a);return i.call(j,j)})):i;o(j,n,s)}Object.keys(j._hmrPayload.getters).forEach((t=>{if(!(t in e._hmrPayload.getters)){i(j,t)}}));Object.keys(j._hmrPayload.actions).forEach((t=>{if(!(t in e._hmrPayload.actions)){i(j,t)}}));j._hmrPayload=e._hmrPayload;j._getters=e._getters;j._hotUpdating=false}));const e={writable:true,configurable:true,enumerable:false};if(h){["_p","_hmrPayload","_getters","_customProperties"].forEach((t=>{Object.defineProperty(j,t,{value:j[t],...e})}))}}a._p.forEach((e=>{if(h){const t=f.run((()=>e({store:j,app:a._a,pinia:a,options:p})));Object.keys(t||{}).forEach((e=>j._customProperties.add(e)));pe(j,t)}else{pe(j,f.run((()=>e({store:j,app:a._a,pinia:a,options:p}))))}}));if(j.$state&&typeof j.$state==="object"&&typeof j.$state.constructor==="function"&&!j.$state.constructor.toString().includes("[native code]")){console.warn(`[Pinia]: The "state" must be a plain object. It cannot be\n`+`\tstate: () => new MyClass()\n`+`Found in store "${j.$id}".`)}if(w&&u&&r.hydrate){r.hydrate(j.$state,w)}g=true;m=true;return j}function ge(e,n,o){let i;let s;const r=typeof n==="function";if(typeof e==="string"){i=e;s=r?o:n}else{s=e;i=e.id}function a(e,o){const c=t.getCurrentInstance();e=e||c&&t.inject(p);if(e)l(e);if(!u){throw new Error(`[Pinia]: getActivePinia was called with no active Pinia. Did you forget to install pinia?\n`+`\tconst pinia = createPinia()\n`+`\tapp.use(pinia)\n`+`This will fail in production.`)}e=u;if(!e._s.has(i)){if(r){ye(i,n,s,e)}else{he(i,s,e)}{a._pinia=e}}const f=e._s.get(i);if(o){const t="__hot:"+i;const a=r?ye(t,n,s,e,true):he(t,pe({},s),e,true);o._hotUpdate(a);delete e.state.value[t];e._s.delete(t)}if(h&&c&&c.proxy&&!o){const e=c.proxy;const t="_pStores"in e?e._pStores:e._pStores={};t[i]=f}return f}a.$id=i;return a}let me="Store";function _e(e){me=e}function be(...e){if(Array.isArray(e[0])){console.warn(`[Pinia]: Directly pass all stores to "mapStores()" without putting them in an array:\n`+`Replace\n`+`\tmapStores([useAuthStore, useCartStore])\n`+`with\n`+`\tmapStores(useAuthStore, useCartStore)\n`+`This will fail in production if not fixed.`);e=e[0]}return e.reduce(((e,t)=>{e[t.$id+me]=function(){return t(this.$pinia)};return e}),{})}function ve(e,t){return Array.isArray(t)?t.reduce(((t,n)=>{t[n]=function(){return e(this.$pinia)[n]};return t}),{}):Object.keys(t).reduce(((n,o)=>{n[o]=function(){const n=e(this.$pinia);const i=t[o];return typeof i==="function"?i.call(this,n):n[i]};return n}),{})}const we=ve;function $e(e,t){return Array.isArray(t)?t.reduce(((t,n)=>{t[n]=function(...t){return e(this.$pinia)[n](...t)};return t}),{}):Object.keys(t).reduce(((n,o)=>{n[o]=function(...n){return e(this.$pinia)[t[o]](...n)};return n}),{})}function Se(e,t){return Array.isArray(t)?t.reduce(((t,n)=>{t[n]={get(){return e(this.$pinia)[n]},set(t){return e(this.$pinia)[n]=t}};return t}),{}):Object.keys(t).reduce(((n,o)=>{n[o]={get(){return e(this.$pinia)[t[o]]},set(n){return e(this.$pinia)[t[o]]=n}};return n}),{})}function Pe(e){{e=t.toRaw(e);const n={};for(const o in e){const i=e[o];if(t.isRef(i)||t.isReactive(i)){n[o]=t.toRef(e,o)}}return n}}const Oe=function(e){e.mixin({beforeCreate(){const e=this.$options;if(e.pinia){const t=e.pinia;if(!this._provided){const e={};Object.defineProperty(this,"_provided",{get:()=>e,set:t=>Object.assign(e,t)})}this._provided[p]=t;if(!this.$pinia){this.$pinia=t}t._a=this;if(h){l(t)}if(y){Y(t._a,t)}}else if(!this.$pinia&&e.parent&&e.parent.$pinia){this.$pinia=e.parent.$pinia}},destroyed(){delete this._pStores}})};const ke="2.0.22";e.PiniaVuePlugin=Oe;e.acceptHMRUpdate=ie;e.createPinia=te;e.defineStore=ge;e.getActivePinia=f;e.mapActions=$e;e.mapGetters=we;e.mapState=ve;e.mapStores=be;e.mapWritableState=Se;e.setActivePinia=l;e.setMapStoreSuffix=_e;e.skipHydrate=le;e.storeToRefs=Pe;e.version=ke})(this.BX.Vue3.Pinia=this.BX.Vue3.Pinia||{},BX.Vue3)})(); //# sourceMappingURL=pinia.bundle.map.js