Слияние кода завершено, страница обновится автоматически
import{i as Ce,s as N,d as Y}from"./vue-demi.bfae2336.js";import{ak as he,r as K,aj as O,t as B,i as pe,C as Le,aw as ge,w as me,a0 as Re,k as F,ax as ee,F as z,n as ae,e as ye,u as xe,G as Ue,a4 as ie}from"./@vue.cab01781.js";/*!
* pinia v2.0.18
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/let q;const V=e=>q=e,_e=Symbol("pinia");function C(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var E;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(E||(E={}));const j=typeof window<"u",ce=(()=>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 Fe(e,{autoBom:o=!1}={}){return o&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}function te(e,o,n){const t=new XMLHttpRequest;t.open("GET",e),t.responseType="blob",t.onload=function(){we(t.response,o,n)},t.onerror=function(){console.error("could not download file")},t.send()}function be(e){const o=new XMLHttpRequest;o.open("HEAD",e,!1);try{o.send()}catch{}return o.status>=200&&o.status<=299}function M(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const H=typeof navigator=="object"?navigator:{userAgent:""},ve=(()=>/Macintosh/.test(H.userAgent)&&/AppleWebKit/.test(H.userAgent)&&!/Safari/.test(H.userAgent))(),we=j?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!ve?Ve:"msSaveOrOpenBlob"in H?De:Ne:()=>{};function Ve(e,o="download",n){const t=document.createElement("a");t.download=o,t.rel="noopener",typeof e=="string"?(t.href=e,t.origin!==location.origin?be(t.href)?te(e,o,n):(t.target="_blank",M(t)):M(t)):(t.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(t.href)},4e4),setTimeout(function(){M(t)},0))}function De(e,o="download",n){if(typeof e=="string")if(be(e))te(e,o,n);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout(function(){M(t)})}else navigator.msSaveOrOpenBlob(Fe(e,n),o)}function Ne(e,o,n,t){if(t=t||open("","_blank"),t&&(t.document.title=t.document.body.innerText="downloading..."),typeof e=="string")return te(e,o,n);const s=e.type==="application/octet-stream",a=/constructor/i.test(String(ce.HTMLElement))||"safari"in ce,r=/CriOS\/[\d]+/.test(navigator.userAgent);if((r||s&&a||ve)&&typeof FileReader<"u"){const i=new FileReader;i.onloadend=function(){let u=i.result;if(typeof u!="string")throw t=null,new Error("Wrong reader.result type");u=r?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),t?t.location.href=u:location.assign(u),t=null},i.readAsDataURL(e)}else{const i=URL.createObjectURL(e);t?t.location.assign(i):location.href=i,t=null,setTimeout(function(){URL.revokeObjectURL(i)},4e4)}}function m(e,o){const n="\u{1F34D} "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,o):o==="error"?console.error(n):o==="warn"?console.warn(n):console.log(n)}function ne(e){return"_a"in e&&"install"in e}function Se(){if(!("clipboard"in navigator))return m("Your browser doesn't support the Clipboard API","error"),!0}function Ie(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(m('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Me(e){if(!Se())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),m("Global state copied to clipboard.")}catch(o){if(Ie(o))return;m("Failed to serialize the state. Check the console for more details.","error"),console.error(o)}}async function He(e){if(!Se())try{e.state.value=JSON.parse(await navigator.clipboard.readText()),m("Global state pasted from clipboard.")}catch(o){if(Ie(o))return;m("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(o)}}async function Ge(e){try{we(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(o){m("Failed to export the state as JSON. Check the console for more details.","error"),console.error(o)}}let $;function Je(){$||($=document.createElement("input"),$.type="file",$.accept=".json");function e(){return new Promise((o,n)=>{$.onchange=async()=>{const t=$.files;if(!t)return o(null);const s=t.item(0);return o(s?{text:await s.text(),file:s}:null)},$.oncancel=()=>o(null),$.onerror=n,$.click()})}return e}async function Be(e){try{const n=await(await Je())();if(!n)return;const{text:t,file:s}=n;e.state.value=JSON.parse(t),m(`Global state imported from "${s.name}".`)}catch(o){m("Failed to export the state as JSON. Check the console for more details.","error"),console.error(o)}}function S(e){return{_custom:{display:e}}}const Pe="\u{1F34D} Pinia (root)",X="_root";function We(e){return ne(e)?{id:X,label:Pe}:{id:e.$id,label:e.$id}}function Ye(e){if(ne(e)){const n=Array.from(e._s.keys()),t=e._s;return{state:n.map(a=>({editable:!0,key:a,value:e.state.value[a]})),getters:n.filter(a=>t.get(a)._getters).map(a=>{const r=t.get(a);return{editable:!1,key:a,value:r._getters.reduce((i,u)=>(i[u]=r[u],i),{})}})}}const o={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(o.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(o.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),o}function ze(e){return e?Array.isArray(e)?e.reduce((o,n)=>(o.keys.push(n.key),o.operations.push(n.type),o.oldValue[n.key]=n.oldValue,o.newValue[n.key]=n.newValue,o),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:S(e.type),key:S(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function qe(e){switch(e){case E.direct:return"mutation";case E.patchFunction:return"$patch";case E.patchObject:return"$patch";default:return"unknown"}}let x=!0;const G=[],A="pinia:mutations",y="pinia",J=e=>"\u{1F34D} "+e;function Xe(e,o){ge({id:"dev.esm.pinia",label:"Pinia \u{1F34D}",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:G,app:e},n=>{typeof n.now!="function"&&m("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."),n.addTimelineLayer({id:A,label:"Pinia \u{1F34D}",color:15064968}),n.addInspector({id:y,label:"Pinia \u{1F34D}",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Me(o)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await He(o),n.sendInspectorTree(y),n.sendInspectorState(y)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Ge(o)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Be(o),n.sendInspectorTree(y),n.sendInspectorState(y)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:"Reset the state (option store only)",action:t=>{const s=o._s.get(t);s?s._isOptionsAPI?(s.$reset(),m(`Store "${t}" reset.`)):m(`Cannot reset "${t}" store because it's a setup store.`,"warn"):m(`Cannot reset "${t}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((t,s)=>{const a=t.componentInstance&&t.componentInstance.proxy;if(a&&a._pStores){const r=t.componentInstance.proxy._pStores;Object.values(r).forEach(i=>{t.instanceData.state.push({type:J(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:B(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((u,h)=>(u[h]=i.$state[h],u),{})}),i._getters&&i._getters.length&&t.instanceData.state.push({type:J(i.$id),key:"getters",editable:!1,value:i._getters.reduce((u,h)=>{try{u[h]=i[h]}catch(g){u[h]=g}return u},{})})})}}),n.on.getInspectorTree(t=>{if(t.app===e&&t.inspectorId===y){let s=[o];s=s.concat(Array.from(o._s.values())),t.rootNodes=(t.filter?s.filter(a=>"$id"in a?a.$id.toLowerCase().includes(t.filter.toLowerCase()):Pe.toLowerCase().includes(t.filter.toLowerCase())):s).map(We)}}),n.on.getInspectorState(t=>{if(t.app===e&&t.inspectorId===y){const s=t.nodeId===X?o:o._s.get(t.nodeId);if(!s)return;s&&(t.state=Ye(s))}}),n.on.editInspectorState((t,s)=>{if(t.app===e&&t.inspectorId===y){const a=t.nodeId===X?o:o._s.get(t.nodeId);if(!a)return m(`store "${t.nodeId}" not found`,"error");const{path:r}=t;ne(a)?r.unshift("state"):(r.length!==1||!a._customProperties.has(r[0])||r[0]in a.$state)&&r.unshift("$state"),x=!1,t.set(a,r,t.state.value),x=!0}}),n.on.editComponentState(t=>{if(t.type.startsWith("\u{1F34D}")){const s=t.type.replace(/^🍍\s*/,""),a=o._s.get(s);if(!a)return m(`store "${s}" not found`,"error");const{path:r}=t;if(r[0]!=="state")return m(`Invalid path for store "${s}":
${r}
Only state can be modified.`);r[0]="$state",x=!1,t.set(a,r,t.state.value),x=!0}})})}function Qe(e,o){G.includes(J(o.$id))||G.push(J(o.$id)),ge({id:"dev.esm.pinia",label:"Pinia \u{1F34D}",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:G,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const t=typeof n.now=="function"?n.now.bind(n):Date.now;o.$onAction(({after:r,onError:i,name:u,args:h})=>{const g=Ee++;n.addTimelineEvent({layerId:A,event:{time:t(),title:"\u{1F6EB} "+u,subtitle:"start",data:{store:S(o.$id),action:S(u),args:h},groupId:g}}),r(p=>{k=void 0,n.addTimelineEvent({layerId:A,event:{time:t(),title:"\u{1F6EC} "+u,subtitle:"end",data:{store:S(o.$id),action:S(u),args:h,result:p},groupId:g}})}),i(p=>{k=void 0,n.addTimelineEvent({layerId:A,event:{time:t(),logType:"error",title:"\u{1F4A5} "+u,subtitle:"end",data:{store:S(o.$id),action:S(u),args:h,error:p},groupId:g}})})},!0),o._customProperties.forEach(r=>{me(()=>xe(o[r]),(i,u)=>{n.notifyComponentUpdate(),n.sendInspectorState(y),x&&n.addTimelineEvent({layerId:A,event:{time:t(),title:"Change",subtitle:r,data:{newValue:i,oldValue:u},groupId:k}})},{deep:!0})}),o.$subscribe(({events:r,type:i},u)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(y),!x)return;const h={time:t(),title:qe(i),data:{store:S(o.$id),...ze(r)},groupId:k};k=void 0,i===E.patchFunction?h.subtitle="\u2935\uFE0F":i===E.patchObject?h.subtitle="\u{1F9E9}":r&&!Array.isArray(r)&&(h.subtitle=r.type),r&&(h.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:r}}),n.addTimelineEvent({layerId:A,event:h})},{detached:!0,flush:"sync"});const s=o._hotUpdate;o._hotUpdate=O(r=>{s(r),n.addTimelineEvent({layerId:A,event:{time:t(),title:"\u{1F525} "+o.$id,subtitle:"HMR update",data:{store:S(o.$id),info:S("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(y),n.sendInspectorState(y)});const{$dispose:a}=o;o.$dispose=()=>{a(),n.notifyComponentUpdate(),n.sendInspectorTree(y),n.sendInspectorState(y),n.getSettings().logStoreChanges&&m(`Disposed "${o.$id}" store \u{1F5D1}`)},n.notifyComponentUpdate(),n.sendInspectorTree(y),n.sendInspectorState(y),n.getSettings().logStoreChanges&&m(`"${o.$id}" store installed \u{1F195}`)})}let Ee=0,k;function le(e,o){const n=o.reduce((t,s)=>(t[s]=B(e)[s],t),{});for(const t in n)e[t]=function(){const s=Ee,a=new Proxy(e,{get(...r){return k=s,Reflect.get(...r)},set(...r){return k=s,Reflect.set(...r)}});return n[t].apply(a,arguments)}}function Ze({app:e,store:o,options:n}){if(!o.$id.startsWith("__hot:")){if(n.state&&(o._isOptionsAPI=!0),typeof n.state=="function"){le(o,Object.keys(n.actions));const t=o._hotUpdate;B(o)._hotUpdate=function(s){t.apply(this,arguments),le(o,Object.keys(s._hmrPayload.actions))}}Qe(e,o)}}function st(){const e=he(!0),o=e.run(()=>K({}));let n=[],t=[];const s=O({install(a){V(s),s._a=a,a.provide(_e,s),a.config.globalProperties.$pinia=s,j&&Xe(a,s),t.forEach(r=>n.push(r)),t=[]},use(a){return!this._a&&!Ce?t.push(a):n.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:o});return j&&!0&&typeof Proxy<"u"&&s.use(Ze),s}function $e(e,o){for(const n in o){const t=o[n];if(!(n in e))continue;const s=e[n];C(s)&&C(t)&&!F(t)&&!ee(t)?e[n]=$e(s,t):e[n]=t}return e}const Ke=()=>{};function ue(e,o,n,t=Ke){e.push(o);const s=()=>{const a=e.indexOf(o);a>-1&&(e.splice(a,1),t())};return!n&&pe()&&Ue(s),s}function R(e,...o){e.slice().forEach(n=>{n(...o)})}function Q(e,o){for(const n in o){if(!o.hasOwnProperty(n))continue;const t=o[n],s=e[n];C(s)&&C(t)&&e.hasOwnProperty(n)&&!F(t)&&!ee(t)?e[n]=Q(s,t):e[n]=t}return e}const et=Symbol("pinia:skipHydration");function tt(e){return!C(e)||!e.hasOwnProperty(et)}const{assign:I}=Object;function fe(e){return!!(F(e)&&e.effect)}function de(e,o,n,t){const{state:s,actions:a,getters:r}=o,i=n.state.value[e];let u;function h(){!i&&!t&&(n.state.value[e]=s?s():{});const g=t?ie(K(s?s():{}).value):ie(n.state.value[e]);return I(g,a,Object.keys(r||{}).reduce((p,_)=>(_ in g&&console.warn(`[\u{1F34D}]: A getter cannot have the same name as another state property. Rename one of them. Found with "${_}" in store "${e}".`),p[_]=O(ye(()=>{V(n);const P=n._s.get(e);return r[_].call(P,P)})),p),{}))}return u=Z(e,h,o,n,t,!0),u.$reset=function(){const p=s?s():{};this.$patch(_=>{I(_,p)})},u}function Z(e,o,n={},t,s,a){let r;const i=I({actions:{}},n);if(!t._e.active)throw new Error("Pinia destroyed");const u={deep:!0};u.onTrigger=f=>{h?P=f:h==!1&&!l._hotUpdating&&(Array.isArray(P)?P.push(f):console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."))};let h,g,p=O([]),_=O([]),P;const L=t.state.value[e];!a&&!L&&!s&&(t.state.value[e]={});const W=K({});let oe;function se(f){let c;h=g=!1,P=[],typeof f=="function"?(f(t.state.value[e]),c={type:E.patchFunction,storeId:e,events:P}):(Q(t.state.value[e],f),c={type:E.patchObject,payload:f,storeId:e,events:P});const d=oe=Symbol();ae().then(()=>{oe===d&&(h=!0)}),g=!0,R(p,c,t.state.value[e])}const Oe=()=>{throw new Error(`\u{1F34D}: Store "${e}" is built using the setup syntax and does not implement $reset().`)};function Te(){r.stop(),p=[],_=[],t._s.delete(e)}function re(f,c){return function(){V(t);const d=Array.from(arguments),b=[],w=[];function Ae(v){b.push(v)}function ke(v){w.push(v)}R(_,{args:d,name:f,store:l,after:Ae,onError:ke});let U;try{U=c.apply(this&&this.$id===e?this:l,d)}catch(v){throw R(w,v),v}return U instanceof Promise?U.then(v=>(R(b,v),v)).catch(v=>(R(w,v),Promise.reject(v))):(R(b,U),U)}}const D=O({actions:{},getters:{},state:[],hotState:W}),je={_p:t,$id:e,$onAction:ue.bind(null,_),$patch:se,$reset:Oe,$subscribe(f,c={}){const d=ue(p,f,c.detached,()=>b()),b=r.run(()=>me(()=>t.state.value[e],w=>{(c.flush==="sync"?g:h)&&f({storeId:e,type:E.direct,events:P},w)},I({},u,c)));return d},$dispose:Te},l=Re(I(j?{_customProperties:O(new Set),_hmrPayload:D}:{},je));t._s.set(e,l);const T=t._e.run(()=>(r=he(),r.run(()=>o())));for(const f in T){const c=T[f];if(F(c)&&!fe(c)||ee(c))s?N(W.value,f,z(T,f)):a||(L&&tt(c)&&(F(c)?c.value=L[f]:Q(c,L[f])),t.state.value[e][f]=c),D.state.push(f);else if(typeof c=="function"){const d=s?c:re(f,c);T[f]=d,D.actions[f]=c,i.actions[f]=c}else fe(c)&&(D.getters[f]=a?n.getters[f]:c,j&&(T._getters||(T._getters=O([]))).push(f))}I(l,T),I(B(l),T),Object.defineProperty(l,"$state",{get:()=>s?W.value:t.state.value[e],set:f=>{if(s)throw new Error("cannot set hotState");se(c=>{I(c,f)})}});{l._hotUpdate=O(c=>{l._hotUpdating=!0,c._hmrPayload.state.forEach(d=>{if(d in l.$state){const b=c.$state[d],w=l.$state[d];typeof b=="object"&&C(b)&&C(w)?$e(b,w):c.$state[d]=w}N(l,d,z(c.$state,d))}),Object.keys(l.$state).forEach(d=>{d in c.$state||Y(l,d)}),h=!1,g=!1,t.state.value[e]=z(c._hmrPayload,"hotState"),g=!0,ae().then(()=>{h=!0});for(const d in c._hmrPayload.actions){const b=c[d];N(l,d,re(d,b))}for(const d in c._hmrPayload.getters){const b=c._hmrPayload.getters[d],w=a?ye(()=>(V(t),b.call(l,l))):b;N(l,d,w)}Object.keys(l._hmrPayload.getters).forEach(d=>{d in c._hmrPayload.getters||Y(l,d)}),Object.keys(l._hmrPayload.actions).forEach(d=>{d in c._hmrPayload.actions||Y(l,d)}),l._hmrPayload=c._hmrPayload,l._getters=c._getters,l._hotUpdating=!1});const f={writable:!0,configurable:!0,enumerable:!1};j&&["_p","_hmrPayload","_getters","_customProperties"].forEach(c=>{Object.defineProperty(l,c,{value:l[c],...f})})}return t._p.forEach(f=>{if(j){const c=r.run(()=>f({store:l,app:t._a,pinia:t,options:i}));Object.keys(c||{}).forEach(d=>l._customProperties.add(d)),I(l,c)}else I(l,r.run(()=>f({store:l,app:t._a,pinia:t,options:i})))}),l.$state&&typeof l.$state=="object"&&typeof l.$state.constructor=="function"&&!l.$state.constructor.toString().includes("[native code]")&&console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
state: () => new MyClass()
Found in store "${l.$id}".`),L&&a&&n.hydrate&&n.hydrate(l.$state,L),h=!0,g=!0,l}function rt(e,o,n){let t,s;const a=typeof o=="function";typeof e=="string"?(t=e,s=a?n:o):(s=e,t=e.id);function r(i,u){const h=pe();if(i=i||h&&Le(_e),i&&V(i),!q)throw new Error(`[\u{1F34D}]: getActivePinia was called with no active Pinia. Did you forget to install pinia?
const pinia = createPinia()
app.use(pinia)
This will fail in production.`);i=q,i._s.has(t)||(a?Z(t,o,s,i):de(t,s,i),r._pinia=i);const g=i._s.get(t);if(u){const p="__hot:"+t,_=a?Z(p,o,s,i,!0):de(p,I({},s),i,!0);u._hotUpdate(_),delete i.state.value[p],i._s.delete(p)}if(j&&h&&h.proxy&&!u){const p=h.proxy,_="_pStores"in p?p._pStores:p._pStores={};_[t]=g}return g}return r.$id=t,r}export{st as c,rt as d};
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Комментарий ( 0 )