@stonecrop/desktop 0.2.26 โ†’ 0.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- (function(q,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(q=typeof globalThis<"u"?globalThis:q||self,a(q["@stonecrop/desktop"]={},q.Vue))})(this,function(q,a){"use strict";const Ze=e=>(a.pushScopeId("data-v-3ce59358"),e=e(),a.popScopeId(),e),Wo={class:"action-menu-icon"},Fo=[Ze(()=>a.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[a.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1)),Ze(()=>a.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[a.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1))],zo=Ze(()=>a.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),qo=["onclick"],Go={key:1},Ho=["onClick"],Jo={class:"dropdown-container"},Ko={class:"dropdown"},Qo=["onclick"],Yo=["href"],Xo={class:"dropdown-item"},Zo=a.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=e,n=a.ref([]),o=a.ref(!1),r=a.ref(null),s=a.ref(!1),c=a.ref(!1);a.onMounted(()=>{n.value=t.elements,i()});const i=()=>{for(let u of n.value)u.elementType==="dropdown"&&(u.show=!1)},l=()=>{s.value=!0,r.value=setTimeout(()=>{s.value&&(o.value=!0)},500)},d=()=>{s.value=!1,c.value=!1,clearTimeout(r.value),o.value=!1},p=u=>{const f=!n.value[u].show;i(),n.value[u].show=f};return(u,f)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"open-set":o.value,"hovered-and-closed":c.value},"action-set collapse"]),onMouseover:l,onMouseleave:d},[a.createElementVNode("div",Wo,[a.createElementVNode("div",{id:"chevron",onClick:f[0]||(f[0]=h=>c.value=!c.value)},Fo)]),zo,(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(h,g)=>(a.openBlock(),a.createElementBlock("div",{class:"action-element",key:h.label},[h.elementType=="button"?(a.openBlock(),a.createElementBlock("button",{key:0,onclick:h.action,class:"button-default"},a.toDisplayString(h.label),9,qo)):a.createCommentVNode("",!0),h.elementType=="dropdown"?(a.openBlock(),a.createElementBlock("div",Go,[a.createElementVNode("button",{class:"button-default",onClick:y=>p(g)},a.toDisplayString(h.label),9,Ho),a.withDirectives(a.createElementVNode("div",Jo,[a.createElementVNode("div",Ko,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.actions,y=>(a.openBlock(),a.createElementBlock("div",{key:y.label},[y.action!=null?(a.openBlock(),a.createElementBlock("button",{key:0,onclick:y.action,class:"dropdown-item"},a.toDisplayString(y.label),9,Qo)):y.link!=null?(a.openBlock(),a.createElementBlock("a",{key:1,href:y.link},[a.createElementVNode("button",Xo,a.toDisplayString(y.label),1)],8,Yo)):a.createCommentVNode("",!0)]))),128))])],512),[[a.vShow,h.show]])])):a.createCommentVNode("",!0)]))),128))],34))}}),et=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ht=et(Zo,[["__scopeId","data-v-3ce59358"]]),er={};function tr(e,t){return a.openBlock(),a.createElementBlock("dialog")}const Jt=et(er,[["render",tr]]),nr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const or={class:"aform"},rr=a.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,r=a.ref(n.data||{}),s=i=>{let l={};for(const[d,p]of Object.entries(i))["component","fieldtype"].includes(d)||(l[d]=p),d==="rows"&&p&&p.length===0&&(l.rows=r.value[i.fieldname]);return l},c=a.computed({get:()=>n.modelValue.map((i,l)=>a.computed({get(){return i.value},set:d=>{n.modelValue[l].value=d,o("update:modelValue",n.modelValue)}})),set:()=>{}});return(i,l)=>(a.openBlock(),a.createElementBlock("form",or,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.modelValue,(d,p)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(d.component),a.mergeProps({key:p,schema:d,modelValue:c.value[p].value,"onUpdate:modelValue":u=>c.value[p].value=u,data:r.value[d.fieldname],readonly:i.readonly,ref_for:!0},s(d)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),ar=nr(rr,[["__scopeId","data-v-dc1a868d"]]);var sr=Object.defineProperty,ir=(e,t,n)=>t in e?sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,G=(e,t,n)=>ir(e,typeof t!="symbol"?t+"":t,n);function tt(e){this.message=e||""}tt.prototype=Object.create(Error.prototype,{constructor:{value:tt},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const Kt=class Ye{constructor(t,n,o,r,s){if(G(this,"name","Stonecrop"),G(this,"registry"),G(this,"schema"),G(this,"workflow"),G(this,"actions"),G(this,"store"),Ye._root)return Ye._root;Ye._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=r,this.actions=s}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new tt(t.doctype)}getWorkflow(t){const n=this.registry.registry[t.slug];this.workflow=n.workflow}getActions(t){const n=this.registry.registry[t.slug];this.actions=n.actions}async getRecords(t,n){this.store.$patch({records:[]});const o=await(await fetch(`/${t.slug}`,n)).json();this.store.$patch({records:o})}async getRecord(t,n){this.store.$patch({record:{}});const o=await(await fetch(`/${t.slug}/${n}`)).json();this.store.$patch({record:o})}runAction(t,n,o){const r=this.registry.registry[t.slug].actions.get(n),{initialState:s}=this.workflow;this.workflow.transition(s,{type:n}),r.length>0&&r.forEach(c=>{new Function(c)(o)})}};G(Kt,"_root");let cr=Kt;var Qt=!1;function Re(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function nt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function lr(){return Yt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Yt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const ur=typeof Proxy=="function",dr="devtools-plugin:setup",pr="plugin:settings:set";let _e,ot;function fr(){var e;return _e!==void 0||(typeof window<"u"&&window.performance?(_e=!0,ot=window.performance):typeof global<"u"&&!((e=global.perf_hooks)===null||e===void 0)&&e.performance?(_e=!0,ot=global.perf_hooks.performance):_e=!1),_e}function hr(){return fr()?ot.now():Date.now()}class mr{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const c in t.settings){const i=t.settings[c];o[c]=i.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},o);try{const c=localStorage.getItem(r),i=JSON.parse(c);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(c){try{localStorage.setItem(r,JSON.stringify(c))}catch{}s=c},now(){return hr()}},n&&n.on(pr,(c,i)=>{c===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(c,i)=>this.target?this.target.on[i]:(...l)=>{this.onQueue.push({method:i,args:l})}}),this.proxiedTarget=new Proxy({},{get:(c,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...l)=>(this.targetQueue.push({method:i,args:l,resolve:()=>{}}),this.fallbacks[i](...l)):(...l)=>new Promise(d=>{this.targetQueue.push({method:i,args:l,resolve:d})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function rt(e,t){const n=e,o=Yt(),r=lr(),s=ur&&n.enableEarlyProxy;if(r&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))r.emit(dr,e,t);else{const c=s?new mr(n,r):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:c}),c&&t(c.proxiedTarget)}}/*!
1
+ (function(q,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(q=typeof globalThis<"u"?globalThis:q||self,a(q["@stonecrop/desktop"]={},q.Vue))})(this,function(q,a){"use strict";const Ze=e=>(a.pushScopeId("data-v-3ce59358"),e=e(),a.popScopeId(),e),Wo={class:"action-menu-icon"},Fo=[Ze(()=>a.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[a.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1)),Ze(()=>a.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[a.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1))],zo=Ze(()=>a.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),qo=["onclick"],Go={key:1},Ho=["onClick"],Jo={class:"dropdown-container"},Ko={class:"dropdown"},Yo=["onclick"],Qo=["href"],Xo={class:"dropdown-item"},Zo=a.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=e,n=a.ref([]),o=a.ref(!1),r=a.ref(null),s=a.ref(!1),c=a.ref(!1);a.onMounted(()=>{n.value=t.elements,i()});const i=()=>{for(let u of n.value)u.elementType==="dropdown"&&(u.show=!1)},l=()=>{s.value=!0,r.value=setTimeout(()=>{s.value&&(o.value=!0)},500)},d=()=>{s.value=!1,c.value=!1,clearTimeout(r.value),o.value=!1},p=u=>{const f=!n.value[u].show;i(),n.value[u].show=f};return(u,f)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"open-set":o.value,"hovered-and-closed":c.value},"action-set collapse"]),onMouseover:l,onMouseleave:d},[a.createElementVNode("div",Wo,[a.createElementVNode("div",{id:"chevron",onClick:f[0]||(f[0]=h=>c.value=!c.value)},Fo)]),zo,(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(h,g)=>(a.openBlock(),a.createElementBlock("div",{class:"action-element",key:h.label},[h.elementType=="button"?(a.openBlock(),a.createElementBlock("button",{key:0,onclick:h.action,class:"button-default"},a.toDisplayString(h.label),9,qo)):a.createCommentVNode("",!0),h.elementType=="dropdown"?(a.openBlock(),a.createElementBlock("div",Go,[a.createElementVNode("button",{class:"button-default",onClick:y=>p(g)},a.toDisplayString(h.label),9,Ho),a.withDirectives(a.createElementVNode("div",Jo,[a.createElementVNode("div",Ko,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.actions,y=>(a.openBlock(),a.createElementBlock("div",{key:y.label},[y.action!=null?(a.openBlock(),a.createElementBlock("button",{key:0,onclick:y.action,class:"dropdown-item"},a.toDisplayString(y.label),9,Yo)):y.link!=null?(a.openBlock(),a.createElementBlock("a",{key:1,href:y.link},[a.createElementVNode("button",Xo,a.toDisplayString(y.label),1)],8,Qo)):a.createCommentVNode("",!0)]))),128))])],512),[[a.vShow,h.show]])])):a.createCommentVNode("",!0)]))),128))],34))}}),et=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ht=et(Zo,[["__scopeId","data-v-3ce59358"]]),er={};function tr(e,t){return a.openBlock(),a.createElementBlock("dialog")}const Jt=et(er,[["render",tr]]),nr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const or={class:"aform"},rr=a.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,r=a.ref(n.data||{}),s=i=>{let l={};for(const[d,p]of Object.entries(i))["component","fieldtype"].includes(d)||(l[d]=p),d==="rows"&&p&&p.length===0&&(l.rows=r.value[i.fieldname]);return l},c=a.computed({get:()=>n.modelValue.map((i,l)=>a.computed({get(){return i.value},set:d=>{n.modelValue[l].value=d,o("update:modelValue",n.modelValue)}})),set:()=>{}});return(i,l)=>(a.openBlock(),a.createElementBlock("form",or,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.modelValue,(d,p)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(d.component),a.mergeProps({key:p,schema:d,modelValue:c.value[p].value,"onUpdate:modelValue":u=>c.value[p].value=u,data:r.value[d.fieldname],readonly:i.readonly,ref_for:!0},s(d)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),ar=nr(rr,[["__scopeId","data-v-dc1a868d"]]);var sr=Object.defineProperty,ir=(e,t,n)=>t in e?sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,G=(e,t,n)=>ir(e,typeof t!="symbol"?t+"":t,n);function tt(e){this.message=e||""}tt.prototype=Object.create(Error.prototype,{constructor:{value:tt},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const Kt=class Qe{constructor(t,n,o,r,s){if(G(this,"name","Stonecrop"),G(this,"registry"),G(this,"schema"),G(this,"workflow"),G(this,"actions"),G(this,"store"),Qe._root)return Qe._root;Qe._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=r,this.actions=s}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new tt(t.doctype)}getWorkflow(t){const n=this.registry.registry[t.slug];this.workflow=n.workflow}getActions(t){const n=this.registry.registry[t.slug];this.actions=n.actions}async getRecords(t,n){this.store.$patch({records:[]});const o=await(await fetch(`/${t.slug}`,n)).json();this.store.$patch({records:o})}async getRecord(t,n){this.store.$patch({record:{}});const o=await(await fetch(`/${t.slug}/${n}`)).json();this.store.$patch({record:o})}runAction(t,n,o){const r=this.registry.registry[t.slug].actions.get(n),{initialState:s}=this.workflow;this.workflow.transition(s,{type:n}),r.length>0&&r.forEach(c=>{new Function(c)(o)})}};G(Kt,"_root");let cr=Kt;var Yt=!1;function Re(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function nt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function lr(){return Qt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Qt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const ur=typeof Proxy=="function",dr="devtools-plugin:setup",pr="plugin:settings:set";let _e,ot;function fr(){var e;return _e!==void 0||(typeof window<"u"&&window.performance?(_e=!0,ot=window.performance):typeof global<"u"&&!((e=global.perf_hooks)===null||e===void 0)&&e.performance?(_e=!0,ot=global.perf_hooks.performance):_e=!1),_e}function hr(){return fr()?ot.now():Date.now()}class mr{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const c in t.settings){const i=t.settings[c];o[c]=i.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},o);try{const c=localStorage.getItem(r),i=JSON.parse(c);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(c){try{localStorage.setItem(r,JSON.stringify(c))}catch{}s=c},now(){return hr()}},n&&n.on(pr,(c,i)=>{c===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(c,i)=>this.target?this.target.on[i]:(...l)=>{this.onQueue.push({method:i,args:l})}}),this.proxiedTarget=new Proxy({},{get:(c,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...l)=>(this.targetQueue.push({method:i,args:l,resolve:()=>{}}),this.fallbacks[i](...l)):(...l)=>new Promise(d=>{this.targetQueue.push({method:i,args:l,resolve:d})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function rt(e,t){const n=e,o=Qt(),r=lr(),s=ur&&n.enableEarlyProxy;if(r&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))r.emit(dr,e,t);else{const c=s?new mr(n,r):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:c}),c&&t(c.proxiedTarget)}}/*!
2
2
  * pinia v2.1.7
3
3
  * (c) 2023 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */let Ee;const ke=e=>Ee=e,Xt=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ue(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Y;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Y||(Y={}));const je=typeof window<"u",$e=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&je,Zt=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 gr(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function at(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){nn(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function en(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Te(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}const Be=typeof navigator=="object"?navigator:{userAgent:""},tn=/Macintosh/.test(Be.userAgent)&&/AppleWebKit/.test(Be.userAgent)&&!/Safari/.test(Be.userAgent),nn=je?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!tn?yr:"msSaveOrOpenBlob"in Be?wr:br:()=>{};function yr(e,t="download",n){const o=document.createElement("a");o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?en(o.href)?at(e,t,n):(o.target="_blank",Te(o)):Te(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Te(o)},0))}function wr(e,t="download",n){if(typeof e=="string")if(en(e))at(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){Te(o)})}else navigator.msSaveOrOpenBlob(gr(e,n),t)}function br(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return at(e,t,n);const r=e.type==="application/octet-stream",s=/constructor/i.test(String(Zt.HTMLElement))||"safari"in Zt,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&s||tn)&&typeof FileReader<"u"){const i=new FileReader;i.onloadend=function(){let l=i.result;if(typeof l!="string")throw o=null,new Error("Wrong reader.result type");l=c?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=l:location.assign(l),o=null},i.readAsDataURL(e)}else{const i=URL.createObjectURL(e);o?o.location.assign(i):location.href=i,o=null,setTimeout(function(){URL.revokeObjectURL(i)},4e4)}}function j(e,t){const n="๐Ÿ "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function st(e){return"_a"in e&&"install"in e}function on(){if(!("clipboard"in navigator))return j("Your browser doesn't support the Clipboard API","error"),!0}function rn(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(j('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function vr(e){if(!on())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),j("Global state copied to clipboard.")}catch(t){if(rn(t))return;j("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function _r(e){if(!on())try{an(e,JSON.parse(await navigator.clipboard.readText())),j("Global state pasted from clipboard.")}catch(t){if(rn(t))return;j("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Er(e){try{nn(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){j("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Z;function kr(){Z||(Z=document.createElement("input"),Z.type="file",Z.accept=".json");function e(){return new Promise((t,n)=>{Z.onchange=async()=>{const o=Z.files;if(!o)return t(null);const r=o.item(0);return t(r?{text:await r.text(),file:r}:null)},Z.oncancel=()=>t(null),Z.onerror=n,Z.click()})}return e}async function $r(e){try{const t=await kr()();if(!t)return;const{text:n,file:o}=t;an(e,JSON.parse(n)),j(`Global state imported from "${o.name}".`)}catch(t){j("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function an(e,t){for(const n in t){const o=e.state.value[n];o?Object.assign(o,t[n]):e.state.value[n]=t[n]}}function J(e){return{_custom:{display:e}}}const sn="๐Ÿ Pinia (root)",it="_root";function Sr(e){return st(e)?{id:it,label:sn}:{id:e.$id,label:e.$id}}function xr(e){if(st(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(r=>({editable:!0,key:r,value:e.state.value[r]})),getters:n.filter(r=>o.get(r)._getters).map(r=>{const s=o.get(r);return{editable:!1,key:r,value:s._getters.reduce((c,i)=>(c[i]=s[i],c),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Or(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:J(e.type),key:J(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Nr(e){switch(e){case Y.direct:return"mutation";case Y.patchFunction:return"$patch";case Y.patchObject:return"$patch";default:return"unknown"}}let he=!0;const Le=[],de="pinia:mutations",M="pinia",{assign:Cr}=Object,Me=e=>"๐Ÿ "+e;function Ir(e,t){rt({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Le,app:e},n=>{typeof n.now!="function"&&j("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:de,label:"Pinia ๐Ÿ",color:15064968}),n.addInspector({id:M,label:"Pinia ๐Ÿ",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{vr(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await _r(t),n.sendInspectorTree(M),n.sendInspectorState(M)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Er(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await $r(t),n.sendInspectorTree(M),n.sendInspectorState(M)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const r=t._s.get(o);r?typeof r.$reset!="function"?j(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(r.$reset(),j(`Store "${o}" reset.`)):j(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((o,r)=>{const s=o.componentInstance&&o.componentInstance.proxy;if(s&&s._pStores){const c=o.componentInstance.proxy._pStores;Object.values(c).forEach(i=>{o.instanceData.state.push({type:Me(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:a.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((l,d)=>(l[d]=i.$state[d],l),{})}),i._getters&&i._getters.length&&o.instanceData.state.push({type:Me(i.$id),key:"getters",editable:!1,value:i._getters.reduce((l,d)=>{try{l[d]=i[d]}catch(p){l[d]=p}return l},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===M){let r=[t];r=r.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?r.filter(s=>"$id"in s?s.$id.toLowerCase().includes(o.filter.toLowerCase()):sn.toLowerCase().includes(o.filter.toLowerCase())):r).map(Sr)}}),n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===M){const r=o.nodeId===it?t:t._s.get(o.nodeId);if(!r)return;r&&(o.state=xr(r))}}),n.on.editInspectorState((o,r)=>{if(o.app===e&&o.inspectorId===M){const s=o.nodeId===it?t:t._s.get(o.nodeId);if(!s)return j(`store "${o.nodeId}" not found`,"error");const{path:c}=o;st(s)?c.unshift("state"):(c.length!==1||!s._customProperties.has(c[0])||c[0]in s.$state)&&c.unshift("$state"),he=!1,o.set(s,c,o.state.value),he=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("๐Ÿ")){const r=o.type.replace(/^๐Ÿ\s*/,""),s=t._s.get(r);if(!s)return j(`store "${r}" not found`,"error");const{path:c}=o;if(c[0]!=="state")return j(`Invalid path for store "${r}":
5
+ */let Ee;const ke=e=>Ee=e,Xt=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ue(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Q;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Q||(Q={}));const je=typeof window<"u",$e=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&je,Zt=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 gr(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function at(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){nn(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function en(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Te(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}const Be=typeof navigator=="object"?navigator:{userAgent:""},tn=/Macintosh/.test(Be.userAgent)&&/AppleWebKit/.test(Be.userAgent)&&!/Safari/.test(Be.userAgent),nn=je?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!tn?yr:"msSaveOrOpenBlob"in Be?wr:br:()=>{};function yr(e,t="download",n){const o=document.createElement("a");o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?en(o.href)?at(e,t,n):(o.target="_blank",Te(o)):Te(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Te(o)},0))}function wr(e,t="download",n){if(typeof e=="string")if(en(e))at(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){Te(o)})}else navigator.msSaveOrOpenBlob(gr(e,n),t)}function br(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return at(e,t,n);const r=e.type==="application/octet-stream",s=/constructor/i.test(String(Zt.HTMLElement))||"safari"in Zt,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&s||tn)&&typeof FileReader<"u"){const i=new FileReader;i.onloadend=function(){let l=i.result;if(typeof l!="string")throw o=null,new Error("Wrong reader.result type");l=c?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=l:location.assign(l),o=null},i.readAsDataURL(e)}else{const i=URL.createObjectURL(e);o?o.location.assign(i):location.href=i,o=null,setTimeout(function(){URL.revokeObjectURL(i)},4e4)}}function j(e,t){const n="๐Ÿ "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function st(e){return"_a"in e&&"install"in e}function on(){if(!("clipboard"in navigator))return j("Your browser doesn't support the Clipboard API","error"),!0}function rn(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(j('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function vr(e){if(!on())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),j("Global state copied to clipboard.")}catch(t){if(rn(t))return;j("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function _r(e){if(!on())try{an(e,JSON.parse(await navigator.clipboard.readText())),j("Global state pasted from clipboard.")}catch(t){if(rn(t))return;j("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Er(e){try{nn(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){j("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Z;function kr(){Z||(Z=document.createElement("input"),Z.type="file",Z.accept=".json");function e(){return new Promise((t,n)=>{Z.onchange=async()=>{const o=Z.files;if(!o)return t(null);const r=o.item(0);return t(r?{text:await r.text(),file:r}:null)},Z.oncancel=()=>t(null),Z.onerror=n,Z.click()})}return e}async function $r(e){try{const t=await kr()();if(!t)return;const{text:n,file:o}=t;an(e,JSON.parse(n)),j(`Global state imported from "${o.name}".`)}catch(t){j("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function an(e,t){for(const n in t){const o=e.state.value[n];o?Object.assign(o,t[n]):e.state.value[n]=t[n]}}function J(e){return{_custom:{display:e}}}const sn="๐Ÿ Pinia (root)",it="_root";function Sr(e){return st(e)?{id:it,label:sn}:{id:e.$id,label:e.$id}}function xr(e){if(st(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(r=>({editable:!0,key:r,value:e.state.value[r]})),getters:n.filter(r=>o.get(r)._getters).map(r=>{const s=o.get(r);return{editable:!1,key:r,value:s._getters.reduce((c,i)=>(c[i]=s[i],c),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Or(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:J(e.type),key:J(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Nr(e){switch(e){case Q.direct:return"mutation";case Q.patchFunction:return"$patch";case Q.patchObject:return"$patch";default:return"unknown"}}let he=!0;const Le=[],de="pinia:mutations",M="pinia",{assign:Cr}=Object,Me=e=>"๐Ÿ "+e;function Ir(e,t){rt({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Le,app:e},n=>{typeof n.now!="function"&&j("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:de,label:"Pinia ๐Ÿ",color:15064968}),n.addInspector({id:M,label:"Pinia ๐Ÿ",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{vr(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await _r(t),n.sendInspectorTree(M),n.sendInspectorState(M)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Er(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await $r(t),n.sendInspectorTree(M),n.sendInspectorState(M)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const r=t._s.get(o);r?typeof r.$reset!="function"?j(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(r.$reset(),j(`Store "${o}" reset.`)):j(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((o,r)=>{const s=o.componentInstance&&o.componentInstance.proxy;if(s&&s._pStores){const c=o.componentInstance.proxy._pStores;Object.values(c).forEach(i=>{o.instanceData.state.push({type:Me(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:a.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((l,d)=>(l[d]=i.$state[d],l),{})}),i._getters&&i._getters.length&&o.instanceData.state.push({type:Me(i.$id),key:"getters",editable:!1,value:i._getters.reduce((l,d)=>{try{l[d]=i[d]}catch(p){l[d]=p}return l},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===M){let r=[t];r=r.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?r.filter(s=>"$id"in s?s.$id.toLowerCase().includes(o.filter.toLowerCase()):sn.toLowerCase().includes(o.filter.toLowerCase())):r).map(Sr)}}),n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===M){const r=o.nodeId===it?t:t._s.get(o.nodeId);if(!r)return;r&&(o.state=xr(r))}}),n.on.editInspectorState((o,r)=>{if(o.app===e&&o.inspectorId===M){const s=o.nodeId===it?t:t._s.get(o.nodeId);if(!s)return j(`store "${o.nodeId}" not found`,"error");const{path:c}=o;st(s)?c.unshift("state"):(c.length!==1||!s._customProperties.has(c[0])||c[0]in s.$state)&&c.unshift("$state"),he=!1,o.set(s,c,o.state.value),he=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("๐Ÿ")){const r=o.type.replace(/^๐Ÿ\s*/,""),s=t._s.get(r);if(!s)return j(`store "${r}" not found`,"error");const{path:c}=o;if(c[0]!=="state")return j(`Invalid path for store "${r}":
6
6
  ${c}
7
- Only state can be modified.`);c[0]="$state",he=!1,o.set(s,c,o.state.value),he=!0}})})}function Pr(e,t){Le.includes(Me(t.$id))||Le.push(Me(t.$id)),rt({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Le,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const o=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:c,onError:i,name:l,args:d})=>{const p=cn++;n.addTimelineEvent({layerId:de,event:{time:o(),title:"๐Ÿ›ซ "+l,subtitle:"start",data:{store:J(t.$id),action:J(l),args:d},groupId:p}}),c(u=>{ae=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),title:"๐Ÿ›ฌ "+l,subtitle:"end",data:{store:J(t.$id),action:J(l),args:d,result:u},groupId:p}})}),i(u=>{ae=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),logType:"error",title:"๐Ÿ’ฅ "+l,subtitle:"end",data:{store:J(t.$id),action:J(l),args:d,error:u},groupId:p}})})},!0),t._customProperties.forEach(c=>{a.watch(()=>a.unref(t[c]),(i,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(M),he&&n.addTimelineEvent({layerId:de,event:{time:o(),title:"Change",subtitle:c,data:{newValue:i,oldValue:l},groupId:ae}})},{deep:!0})}),t.$subscribe(({events:c,type:i},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(M),!he)return;const d={time:o(),title:Nr(i),data:Cr({store:J(t.$id)},Or(c)),groupId:ae};i===Y.patchFunction?d.subtitle="โคต๏ธ":i===Y.patchObject?d.subtitle="๐Ÿงฉ":c&&!Array.isArray(c)&&(d.subtitle=c.type),c&&(d.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:c}}),n.addTimelineEvent({layerId:de,event:d})},{detached:!0,flush:"sync"});const r=t._hotUpdate;t._hotUpdate=a.markRaw(c=>{r(c),n.addTimelineEvent({layerId:de,event:{time:o(),title:"๐Ÿ”ฅ "+t.$id,subtitle:"HMR update",data:{store:J(t.$id),info:J("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M),n.getSettings().logStoreChanges&&j(`Disposed "${t.$id}" store ๐Ÿ—‘`)},n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M),n.getSettings().logStoreChanges&&j(`"${t.$id}" store installed ๐Ÿ†•`)})}let cn=0,ae;function ln(e,t,n){const o=t.reduce((r,s)=>(r[s]=a.toRaw(e)[s],r),{});for(const r in o)e[r]=function(){const s=cn,c=n?new Proxy(e,{get(...l){return ae=s,Reflect.get(...l)},set(...l){return ae=s,Reflect.set(...l)}}):e;ae=s;const i=o[r].apply(c,arguments);return ae=void 0,i}}function Dr({app:e,store:t,options:n}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!n.state,ln(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;a.toRaw(t)._hotUpdate=function(r){o.apply(this,arguments),ln(t,Object.keys(r._hmrPayload.actions),!!t._isOptionsAPI)},Pr(e,t)}function Vr(){const e=a.effectScope(!0),t=e.run(()=>a.ref({}));let n=[],o=[];const r=a.markRaw({install(s){ke(r),r._a=s,s.provide(Xt,r),s.config.globalProperties.$pinia=r,$e&&Ir(s,r),o.forEach(c=>n.push(c)),o=[]},use(s){return!this._a&&!Qt?o.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return $e&&typeof Proxy<"u"&&r.use(Dr),r}function un(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const r=e[n];ue(r)&&ue(o)&&!a.isRef(o)&&!a.isReactive(o)?e[n]=un(r,o):e[n]=o}return e}const dn=()=>{};function pn(e,t,n,o=dn){e.push(t);const r=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),o())};return!n&&a.getCurrentScope()&&a.onScopeDispose(r),r}function me(e,...t){e.slice().forEach(n=>{n(...t)})}const Ar=e=>e();function ct(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,o)=>e.set(o,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];ue(r)&&ue(o)&&e.hasOwnProperty(n)&&!a.isRef(o)&&!a.isReactive(o)?e[n]=ct(r,o):e[n]=o}return e}const Rr=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function jr(e){return!ue(e)||!e.hasOwnProperty(Rr)}const{assign:H}=Object;function fn(e){return!!(a.isRef(e)&&e.effect)}function hn(e,t,n,o){const{state:r,actions:s,getters:c}=t,i=n.state.value[e];let l;function d(){!i&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=r?r():{});const p=process.env.NODE_ENV!=="production"&&o?a.toRefs(a.ref(r?r():{}).value):a.toRefs(n.state.value[e]);return H(p,s,Object.keys(c||{}).reduce((u,f)=>(process.env.NODE_ENV!=="production"&&f in p&&console.warn(`[๐Ÿ]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),u[f]=a.markRaw(a.computed(()=>{ke(n);const h=n._s.get(e);return c[f].call(h,h)})),u),{}))}return l=lt(e,d,t,n,o,!0),l}function lt(e,t,n={},o,r,s){let c;const i=H({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&!Qt&&(l.onTrigger=_=>{d?h=_:d==!1&&!k._hotUpdating&&(Array.isArray(h)?h.push(_):console.error("๐Ÿ debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let d,p,u=[],f=[],h;const g=o.state.value[e];!s&&!g&&(process.env.NODE_ENV==="production"||!r)&&(o.state.value[e]={});const y=a.ref({});let $;function C(_){let v;d=p=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof _=="function"?(_(o.state.value[e]),v={type:Y.patchFunction,storeId:e,events:h}):(ct(o.state.value[e],_),v={type:Y.patchObject,payload:_,storeId:e,events:h});const V=$=Symbol();a.nextTick().then(()=>{$===V&&(d=!0)}),p=!0,me(u,v,o.state.value[e])}const N=s?function(){const{state:_}=n,v=_?_():{};this.$patch(V=>{H(V,v)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`๐Ÿ: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:dn;function I(){c.stop(),u=[],f=[],o._s.delete(e)}function B(_,v){return function(){ke(o);const V=Array.from(arguments),F=[],Q=[];function Wt(L){F.push(L)}function Ae(L){Q.push(L)}me(f,{args:V,name:_,store:k,after:Wt,onError:Ae});let le;try{le=v.apply(this&&this.$id===e?this:k,V)}catch(L){throw me(Q,L),L}return le instanceof Promise?le.then(L=>(me(F,L),L)).catch(L=>(me(Q,L),Promise.reject(L))):(me(F,le),le)}}const U=a.markRaw({actions:{},getters:{},state:[],hotState:y}),K={_p:o,$id:e,$onAction:pn.bind(null,f),$patch:C,$reset:N,$subscribe(_,v={}){const V=pn(u,_,v.detached,()=>F()),F=c.run(()=>a.watch(()=>o.state.value[e],Q=>{(v.flush==="sync"?p:d)&&_({storeId:e,type:Y.direct,events:h},Q)},H({},l,v)));return V},$dispose:I},k=a.reactive(process.env.NODE_ENV!=="production"||$e?H({_hmrPayload:U,_customProperties:a.markRaw(new Set)},K):K);o._s.set(e,k);const X=(o._a&&o._a.runWithContext||Ar)(()=>o._e.run(()=>(c=a.effectScope()).run(t)));for(const _ in X){const v=X[_];if(a.isRef(v)&&!fn(v)||a.isReactive(v))process.env.NODE_ENV!=="production"&&r?Re(y.value,_,a.toRef(X,_)):s||(g&&jr(v)&&(a.isRef(v)?v.value=g[_]:ct(v,g[_])),o.state.value[e][_]=v),process.env.NODE_ENV!=="production"&&U.state.push(_);else if(typeof v=="function"){const V=process.env.NODE_ENV!=="production"&&r?v:B(_,v);X[_]=V,process.env.NODE_ENV!=="production"&&(U.actions[_]=v),i.actions[_]=v}else process.env.NODE_ENV!=="production"&&fn(v)&&(U.getters[_]=s?n.getters[_]:v,je&&(X._getters||(X._getters=a.markRaw([]))).push(_))}if(H(k,X),H(a.toRaw(k),X),Object.defineProperty(k,"$state",{get:()=>process.env.NODE_ENV!=="production"&&r?y.value:o.state.value[e],set:_=>{if(process.env.NODE_ENV!=="production"&&r)throw new Error("cannot set hotState");C(v=>{H(v,_)})}}),process.env.NODE_ENV!=="production"&&(k._hotUpdate=a.markRaw(_=>{k._hotUpdating=!0,_._hmrPayload.state.forEach(v=>{if(v in k.$state){const V=_.$state[v],F=k.$state[v];typeof V=="object"&&ue(V)&&ue(F)?un(V,F):_.$state[v]=F}Re(k,v,a.toRef(_.$state,v))}),Object.keys(k.$state).forEach(v=>{v in _.$state||nt(k,v)}),d=!1,p=!1,o.state.value[e]=a.toRef(_._hmrPayload,"hotState"),p=!0,a.nextTick().then(()=>{d=!0});for(const v in _._hmrPayload.actions){const V=_[v];Re(k,v,B(v,V))}for(const v in _._hmrPayload.getters){const V=_._hmrPayload.getters[v],F=s?a.computed(()=>(ke(o),V.call(k,k))):V;Re(k,v,F)}Object.keys(k._hmrPayload.getters).forEach(v=>{v in _._hmrPayload.getters||nt(k,v)}),Object.keys(k._hmrPayload.actions).forEach(v=>{v in _._hmrPayload.actions||nt(k,v)}),k._hmrPayload=_._hmrPayload,k._getters=_._getters,k._hotUpdating=!1})),$e){const _={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(v=>{Object.defineProperty(k,v,H({value:k[v]},_))})}return o._p.forEach(_=>{if($e){const v=c.run(()=>_({store:k,app:o._a,pinia:o,options:i}));Object.keys(v||{}).forEach(V=>k._customProperties.add(V)),H(k,v)}else H(k,c.run(()=>_({store:k,app:o._a,pinia:o,options:i})))}),process.env.NODE_ENV!=="production"&&k.$state&&typeof k.$state=="object"&&typeof k.$state.constructor=="function"&&!k.$state.constructor.toString().includes("[native code]")&&console.warn(`[๐Ÿ]: The "state" must be a plain object. It cannot be
7
+ Only state can be modified.`);c[0]="$state",he=!1,o.set(s,c,o.state.value),he=!0}})})}function Pr(e,t){Le.includes(Me(t.$id))||Le.push(Me(t.$id)),rt({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Le,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const o=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:c,onError:i,name:l,args:d})=>{const p=cn++;n.addTimelineEvent({layerId:de,event:{time:o(),title:"๐Ÿ›ซ "+l,subtitle:"start",data:{store:J(t.$id),action:J(l),args:d},groupId:p}}),c(u=>{ae=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),title:"๐Ÿ›ฌ "+l,subtitle:"end",data:{store:J(t.$id),action:J(l),args:d,result:u},groupId:p}})}),i(u=>{ae=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),logType:"error",title:"๐Ÿ’ฅ "+l,subtitle:"end",data:{store:J(t.$id),action:J(l),args:d,error:u},groupId:p}})})},!0),t._customProperties.forEach(c=>{a.watch(()=>a.unref(t[c]),(i,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(M),he&&n.addTimelineEvent({layerId:de,event:{time:o(),title:"Change",subtitle:c,data:{newValue:i,oldValue:l},groupId:ae}})},{deep:!0})}),t.$subscribe(({events:c,type:i},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(M),!he)return;const d={time:o(),title:Nr(i),data:Cr({store:J(t.$id)},Or(c)),groupId:ae};i===Q.patchFunction?d.subtitle="โคต๏ธ":i===Q.patchObject?d.subtitle="๐Ÿงฉ":c&&!Array.isArray(c)&&(d.subtitle=c.type),c&&(d.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:c}}),n.addTimelineEvent({layerId:de,event:d})},{detached:!0,flush:"sync"});const r=t._hotUpdate;t._hotUpdate=a.markRaw(c=>{r(c),n.addTimelineEvent({layerId:de,event:{time:o(),title:"๐Ÿ”ฅ "+t.$id,subtitle:"HMR update",data:{store:J(t.$id),info:J("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M),n.getSettings().logStoreChanges&&j(`Disposed "${t.$id}" store ๐Ÿ—‘`)},n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M),n.getSettings().logStoreChanges&&j(`"${t.$id}" store installed ๐Ÿ†•`)})}let cn=0,ae;function ln(e,t,n){const o=t.reduce((r,s)=>(r[s]=a.toRaw(e)[s],r),{});for(const r in o)e[r]=function(){const s=cn,c=n?new Proxy(e,{get(...l){return ae=s,Reflect.get(...l)},set(...l){return ae=s,Reflect.set(...l)}}):e;ae=s;const i=o[r].apply(c,arguments);return ae=void 0,i}}function Dr({app:e,store:t,options:n}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!n.state,ln(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;a.toRaw(t)._hotUpdate=function(r){o.apply(this,arguments),ln(t,Object.keys(r._hmrPayload.actions),!!t._isOptionsAPI)},Pr(e,t)}function Vr(){const e=a.effectScope(!0),t=e.run(()=>a.ref({}));let n=[],o=[];const r=a.markRaw({install(s){ke(r),r._a=s,s.provide(Xt,r),s.config.globalProperties.$pinia=r,$e&&Ir(s,r),o.forEach(c=>n.push(c)),o=[]},use(s){return!this._a&&!Yt?o.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return $e&&typeof Proxy<"u"&&r.use(Dr),r}function un(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const r=e[n];ue(r)&&ue(o)&&!a.isRef(o)&&!a.isReactive(o)?e[n]=un(r,o):e[n]=o}return e}const dn=()=>{};function pn(e,t,n,o=dn){e.push(t);const r=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),o())};return!n&&a.getCurrentScope()&&a.onScopeDispose(r),r}function me(e,...t){e.slice().forEach(n=>{n(...t)})}const Ar=e=>e();function ct(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,o)=>e.set(o,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];ue(r)&&ue(o)&&e.hasOwnProperty(n)&&!a.isRef(o)&&!a.isReactive(o)?e[n]=ct(r,o):e[n]=o}return e}const Rr=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function jr(e){return!ue(e)||!e.hasOwnProperty(Rr)}const{assign:H}=Object;function fn(e){return!!(a.isRef(e)&&e.effect)}function hn(e,t,n,o){const{state:r,actions:s,getters:c}=t,i=n.state.value[e];let l;function d(){!i&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=r?r():{});const p=process.env.NODE_ENV!=="production"&&o?a.toRefs(a.ref(r?r():{}).value):a.toRefs(n.state.value[e]);return H(p,s,Object.keys(c||{}).reduce((u,f)=>(process.env.NODE_ENV!=="production"&&f in p&&console.warn(`[๐Ÿ]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),u[f]=a.markRaw(a.computed(()=>{ke(n);const h=n._s.get(e);return c[f].call(h,h)})),u),{}))}return l=lt(e,d,t,n,o,!0),l}function lt(e,t,n={},o,r,s){let c;const i=H({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&!Yt&&(l.onTrigger=_=>{d?h=_:d==!1&&!k._hotUpdating&&(Array.isArray(h)?h.push(_):console.error("๐Ÿ debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let d,p,u=[],f=[],h;const g=o.state.value[e];!s&&!g&&(process.env.NODE_ENV==="production"||!r)&&(o.state.value[e]={});const y=a.ref({});let $;function I(_){let v;d=p=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof _=="function"?(_(o.state.value[e]),v={type:Q.patchFunction,storeId:e,events:h}):(ct(o.state.value[e],_),v={type:Q.patchObject,payload:_,storeId:e,events:h});const V=$=Symbol();a.nextTick().then(()=>{$===V&&(d=!0)}),p=!0,me(u,v,o.state.value[e])}const x=s?function(){const{state:_}=n,v=_?_():{};this.$patch(V=>{H(V,v)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`๐Ÿ: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:dn;function N(){c.stop(),u=[],f=[],o._s.delete(e)}function B(_,v){return function(){ke(o);const V=Array.from(arguments),F=[],Y=[];function Wt(L){F.push(L)}function Ae(L){Y.push(L)}me(f,{args:V,name:_,store:k,after:Wt,onError:Ae});let le;try{le=v.apply(this&&this.$id===e?this:k,V)}catch(L){throw me(Y,L),L}return le instanceof Promise?le.then(L=>(me(F,L),L)).catch(L=>(me(Y,L),Promise.reject(L))):(me(F,le),le)}}const U=a.markRaw({actions:{},getters:{},state:[],hotState:y}),K={_p:o,$id:e,$onAction:pn.bind(null,f),$patch:I,$reset:x,$subscribe(_,v={}){const V=pn(u,_,v.detached,()=>F()),F=c.run(()=>a.watch(()=>o.state.value[e],Y=>{(v.flush==="sync"?p:d)&&_({storeId:e,type:Q.direct,events:h},Y)},H({},l,v)));return V},$dispose:N},k=a.reactive(process.env.NODE_ENV!=="production"||$e?H({_hmrPayload:U,_customProperties:a.markRaw(new Set)},K):K);o._s.set(e,k);const X=(o._a&&o._a.runWithContext||Ar)(()=>o._e.run(()=>(c=a.effectScope()).run(t)));for(const _ in X){const v=X[_];if(a.isRef(v)&&!fn(v)||a.isReactive(v))process.env.NODE_ENV!=="production"&&r?Re(y.value,_,a.toRef(X,_)):s||(g&&jr(v)&&(a.isRef(v)?v.value=g[_]:ct(v,g[_])),o.state.value[e][_]=v),process.env.NODE_ENV!=="production"&&U.state.push(_);else if(typeof v=="function"){const V=process.env.NODE_ENV!=="production"&&r?v:B(_,v);X[_]=V,process.env.NODE_ENV!=="production"&&(U.actions[_]=v),i.actions[_]=v}else process.env.NODE_ENV!=="production"&&fn(v)&&(U.getters[_]=s?n.getters[_]:v,je&&(X._getters||(X._getters=a.markRaw([]))).push(_))}if(H(k,X),H(a.toRaw(k),X),Object.defineProperty(k,"$state",{get:()=>process.env.NODE_ENV!=="production"&&r?y.value:o.state.value[e],set:_=>{if(process.env.NODE_ENV!=="production"&&r)throw new Error("cannot set hotState");I(v=>{H(v,_)})}}),process.env.NODE_ENV!=="production"&&(k._hotUpdate=a.markRaw(_=>{k._hotUpdating=!0,_._hmrPayload.state.forEach(v=>{if(v in k.$state){const V=_.$state[v],F=k.$state[v];typeof V=="object"&&ue(V)&&ue(F)?un(V,F):_.$state[v]=F}Re(k,v,a.toRef(_.$state,v))}),Object.keys(k.$state).forEach(v=>{v in _.$state||nt(k,v)}),d=!1,p=!1,o.state.value[e]=a.toRef(_._hmrPayload,"hotState"),p=!0,a.nextTick().then(()=>{d=!0});for(const v in _._hmrPayload.actions){const V=_[v];Re(k,v,B(v,V))}for(const v in _._hmrPayload.getters){const V=_._hmrPayload.getters[v],F=s?a.computed(()=>(ke(o),V.call(k,k))):V;Re(k,v,F)}Object.keys(k._hmrPayload.getters).forEach(v=>{v in _._hmrPayload.getters||nt(k,v)}),Object.keys(k._hmrPayload.actions).forEach(v=>{v in _._hmrPayload.actions||nt(k,v)}),k._hmrPayload=_._hmrPayload,k._getters=_._getters,k._hotUpdating=!1})),$e){const _={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(v=>{Object.defineProperty(k,v,H({value:k[v]},_))})}return o._p.forEach(_=>{if($e){const v=c.run(()=>_({store:k,app:o._a,pinia:o,options:i}));Object.keys(v||{}).forEach(V=>k._customProperties.add(V)),H(k,v)}else H(k,c.run(()=>_({store:k,app:o._a,pinia:o,options:i})))}),process.env.NODE_ENV!=="production"&&k.$state&&typeof k.$state=="object"&&typeof k.$state.constructor=="function"&&!k.$state.constructor.toString().includes("[native code]")&&console.warn(`[๐Ÿ]: The "state" must be a plain object. It cannot be
8
8
  state: () => new MyClass()
9
9
  Found in store "${k.$id}".`),g&&s&&n.hydrate&&n.hydrate(k.$state,g),d=!0,p=!0,k}function Tr(e,t,n){let o,r;const s=typeof t=="function";if(typeof e=="string")o=e,r=s?n:t;else if(r=e,o=e.id,process.env.NODE_ENV!=="production"&&typeof o!="string")throw new Error('[๐Ÿ]: "defineStore()" must be passed a store id as its first argument.');function c(i,l){const d=a.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&Ee&&Ee._testing?null:i)||(d?a.inject(Xt,null):null),i&&ke(i),process.env.NODE_ENV!=="production"&&!Ee)throw new Error(`[๐Ÿ]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
10
10
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
@@ -12,34 +12,34 @@ This will fail in production.`);i=Ee,i._s.has(o)||(s?lt(o,t,r,i):hn(o,r,i),proce
12
12
  * vue-router v4.4.0
13
13
  * (c) 2024 Eduardo San Martin Morote
14
14
  * @license MIT
15
- */const ee=typeof document<"u";function Lr(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const P=Object.assign;function ut(e,t){const n={};for(const o in t){const r=t[o];n[o]=z(r)?r.map(e):e(r)}return n}const Se=()=>{},z=Array.isArray;function S(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const gn=/#/g,Mr=/&/g,Ur=/\//g,Wr=/=/g,Fr=/\?/g,yn=/\+/g,zr=/%5B/g,qr=/%5D/g,wn=/%5E/g,Gr=/%60/g,bn=/%7B/g,Hr=/%7C/g,vn=/%7D/g,Jr=/%20/g;function dt(e){return encodeURI(""+e).replace(Hr,"|").replace(zr,"[").replace(qr,"]")}function Kr(e){return dt(e).replace(bn,"{").replace(vn,"}").replace(wn,"^")}function pt(e){return dt(e).replace(yn,"%2B").replace(Jr,"+").replace(gn,"%23").replace(Mr,"%26").replace(Gr,"`").replace(bn,"{").replace(vn,"}").replace(wn,"^")}function Qr(e){return pt(e).replace(Wr,"%3D")}function Yr(e){return dt(e).replace(gn,"%23").replace(Fr,"%3F")}function Xr(e){return e==null?"":Yr(e).replace(Ur,"%2F")}function ge(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&S(`Error decoding "${e}". Using original value`)}return""+e}const Zr=/\/$/,ea=e=>e.replace(Zr,"");function ft(e,t,n="/"){let o,r={},s="",c="";const i=t.indexOf("#");let l=t.indexOf("?");return i<l&&i>=0&&(l=-1),l>-1&&(o=t.slice(0,l),s=t.slice(l+1,i>-1?i:t.length),r=e(s)),i>-1&&(o=o||t.slice(0,i),c=t.slice(i,t.length)),o=oa(o??t,n),{fullPath:o+(s&&"?")+s+c,path:o,query:r,hash:ge(c)}}function ta(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _n(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function En(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&se(t.matched[o],n.matched[r])&&kn(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function se(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!na(e[n],t[n]))return!1;return!0}function na(e,t){return z(e)?$n(e,t):z(t)?$n(t,e):e===t}function $n(e,t){return z(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function oa(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return S(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let s=n.length-1,c,i;for(c=0;c<o.length;c++)if(i=o[c],i!==".")if(i==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+o.slice(c).join("/")}const ie={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var xe;(function(e){e.pop="pop",e.push="push"})(xe||(xe={}));var Oe;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Oe||(Oe={}));function ra(e){if(!e)if(ee){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ea(e)}const aa=/^[^#]+#/;function sa(e,t){return e.replace(aa,"#")+t}function ia(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Ue=()=>({left:window.scrollX,top:window.scrollY});function ca(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof e.el=="string"&&(!o||!document.getElementById(e.el.slice(1))))try{const s=document.querySelector(e.el);if(o&&s){S(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{S(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r){process.env.NODE_ENV!=="production"&&S(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=ia(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Sn(e,t){return(history.state?history.state.position-t:-1)+e}const ht=new Map;function la(e,t){ht.set(e,t)}function ua(e){const t=ht.get(e);return ht.delete(e),t}let da=()=>location.protocol+"//"+location.host;function xn(e,t){const{pathname:n,search:o,hash:r}=t,s=e.indexOf("#");if(s>-1){let c=r.includes(e.slice(s))?e.slice(s).length:1,i=r.slice(c);return i[0]!=="/"&&(i="/"+i),_n(i,"")}return _n(n,e)+o+r}function pa(e,t,n,o){let r=[],s=[],c=null;const i=({state:f})=>{const h=xn(e,location),g=n.value,y=t.value;let $=0;if(f){if(n.value=h,t.value=f,c&&c===g){c=null;return}$=y?f.position-y.position:0}else o(h);r.forEach(C=>{C(n.value,g,{delta:$,type:xe.pop,direction:$?$>0?Oe.forward:Oe.back:Oe.unknown})})};function l(){c=n.value}function d(f){r.push(f);const h=()=>{const g=r.indexOf(f);g>-1&&r.splice(g,1)};return s.push(h),h}function p(){const{history:f}=window;f.state&&f.replaceState(P({},f.state,{scroll:Ue()}),"")}function u(){for(const f of s)f();s=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",p)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",p,{passive:!0}),{pauseListeners:l,listen:d,destroy:u}}function On(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?Ue():null}}function fa(e){const{history:t,location:n}=window,o={value:xn(e,n)},r={value:t.state};r.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,d,p){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+l:da()+e+l;try{t[p?"replaceState":"pushState"](d,"",f),r.value=d}catch(h){process.env.NODE_ENV!=="production"?S("Error with push/replace State",h):console.error(h),n[p?"replace":"assign"](f)}}function c(l,d){const p=P({},t.state,On(r.value.back,l,r.value.forward,!0),d,{position:r.value.position});s(l,p,!0),o.value=l}function i(l,d){const p=P({},r.value,t.state,{forward:l,scroll:Ue()});process.env.NODE_ENV!=="production"&&!t.state&&S(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
15
+ */const ee=typeof document<"u";function Lr(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const P=Object.assign;function ut(e,t){const n={};for(const o in t){const r=t[o];n[o]=z(r)?r.map(e):e(r)}return n}const Se=()=>{},z=Array.isArray;function S(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const gn=/#/g,Mr=/&/g,Ur=/\//g,Wr=/=/g,Fr=/\?/g,yn=/\+/g,zr=/%5B/g,qr=/%5D/g,wn=/%5E/g,Gr=/%60/g,bn=/%7B/g,Hr=/%7C/g,vn=/%7D/g,Jr=/%20/g;function dt(e){return encodeURI(""+e).replace(Hr,"|").replace(zr,"[").replace(qr,"]")}function Kr(e){return dt(e).replace(bn,"{").replace(vn,"}").replace(wn,"^")}function pt(e){return dt(e).replace(yn,"%2B").replace(Jr,"+").replace(gn,"%23").replace(Mr,"%26").replace(Gr,"`").replace(bn,"{").replace(vn,"}").replace(wn,"^")}function Yr(e){return pt(e).replace(Wr,"%3D")}function Qr(e){return dt(e).replace(gn,"%23").replace(Fr,"%3F")}function Xr(e){return e==null?"":Qr(e).replace(Ur,"%2F")}function ge(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&S(`Error decoding "${e}". Using original value`)}return""+e}const Zr=/\/$/,ea=e=>e.replace(Zr,"");function ft(e,t,n="/"){let o,r={},s="",c="";const i=t.indexOf("#");let l=t.indexOf("?");return i<l&&i>=0&&(l=-1),l>-1&&(o=t.slice(0,l),s=t.slice(l+1,i>-1?i:t.length),r=e(s)),i>-1&&(o=o||t.slice(0,i),c=t.slice(i,t.length)),o=oa(o??t,n),{fullPath:o+(s&&"?")+s+c,path:o,query:r,hash:ge(c)}}function ta(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _n(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function En(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&se(t.matched[o],n.matched[r])&&kn(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function se(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!na(e[n],t[n]))return!1;return!0}function na(e,t){return z(e)?$n(e,t):z(t)?$n(t,e):e===t}function $n(e,t){return z(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function oa(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return S(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let s=n.length-1,c,i;for(c=0;c<o.length;c++)if(i=o[c],i!==".")if(i==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+o.slice(c).join("/")}const ie={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var xe;(function(e){e.pop="pop",e.push="push"})(xe||(xe={}));var Oe;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Oe||(Oe={}));function ra(e){if(!e)if(ee){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ea(e)}const aa=/^[^#]+#/;function sa(e,t){return e.replace(aa,"#")+t}function ia(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Ue=()=>({left:window.scrollX,top:window.scrollY});function ca(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof e.el=="string"&&(!o||!document.getElementById(e.el.slice(1))))try{const s=document.querySelector(e.el);if(o&&s){S(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{S(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r){process.env.NODE_ENV!=="production"&&S(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=ia(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Sn(e,t){return(history.state?history.state.position-t:-1)+e}const ht=new Map;function la(e,t){ht.set(e,t)}function ua(e){const t=ht.get(e);return ht.delete(e),t}let da=()=>location.protocol+"//"+location.host;function xn(e,t){const{pathname:n,search:o,hash:r}=t,s=e.indexOf("#");if(s>-1){let c=r.includes(e.slice(s))?e.slice(s).length:1,i=r.slice(c);return i[0]!=="/"&&(i="/"+i),_n(i,"")}return _n(n,e)+o+r}function pa(e,t,n,o){let r=[],s=[],c=null;const i=({state:f})=>{const h=xn(e,location),g=n.value,y=t.value;let $=0;if(f){if(n.value=h,t.value=f,c&&c===g){c=null;return}$=y?f.position-y.position:0}else o(h);r.forEach(I=>{I(n.value,g,{delta:$,type:xe.pop,direction:$?$>0?Oe.forward:Oe.back:Oe.unknown})})};function l(){c=n.value}function d(f){r.push(f);const h=()=>{const g=r.indexOf(f);g>-1&&r.splice(g,1)};return s.push(h),h}function p(){const{history:f}=window;f.state&&f.replaceState(P({},f.state,{scroll:Ue()}),"")}function u(){for(const f of s)f();s=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",p)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",p,{passive:!0}),{pauseListeners:l,listen:d,destroy:u}}function On(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?Ue():null}}function fa(e){const{history:t,location:n}=window,o={value:xn(e,n)},r={value:t.state};r.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,d,p){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+l:da()+e+l;try{t[p?"replaceState":"pushState"](d,"",f),r.value=d}catch(h){process.env.NODE_ENV!=="production"?S("Error with push/replace State",h):console.error(h),n[p?"replace":"assign"](f)}}function c(l,d){const p=P({},t.state,On(r.value.back,l,r.value.forward,!0),d,{position:r.value.position});s(l,p,!0),o.value=l}function i(l,d){const p=P({},r.value,t.state,{forward:l,scroll:Ue()});process.env.NODE_ENV!=="production"&&!t.state&&S(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
16
16
 
17
17
  history.replaceState(history.state, '', url)
18
18
 
19
19
  You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),s(p.current,p,!0);const u=P({},On(o.value,l,null),{position:p.position+1},d);s(l,u,!1),o.value=l}return{location:o,state:r,push:i,replace:c}}function ha(e){e=ra(e);const t=fa(e),n=pa(e,t.state,t.location,t.replace);function o(s,c=!0){c||n.pauseListeners(),history.go(s)}const r=P({location:"",base:e,go:o,createHref:sa.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function We(e){return typeof e=="string"||e&&typeof e=="object"}function Nn(e){return typeof e=="string"||typeof e=="symbol"}const mt=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Cn;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Cn||(Cn={}));const ma={1({location:e,currentLocation:t}){return`No match for
20
20
  ${JSON.stringify(e)}${t?`
21
21
  while being at
22
- `+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${ya(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function ye(e,t){return process.env.NODE_ENV!=="production"?P(new Error(ma[e](t)),{type:e,[mt]:!0},t):P(new Error,{type:e,[mt]:!0},t)}function te(e,t){return e instanceof Error&&mt in e&&(t==null||!!(e.type&t))}const ga=["params","query","hash"];function ya(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of ga)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const In="[^/]+?",wa={sensitive:!1,strict:!1,start:!0,end:!0},ba=/[.+*?^${}()[\]/\\]/g;function va(e,t){const n=P({},wa,t),o=[];let r=n.start?"^":"";const s=[];for(const d of e){const p=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let u=0;u<d.length;u++){const f=d[u];let h=40+(n.sensitive?.25:0);if(f.type===0)u||(r+="/"),r+=f.value.replace(ba,"\\$&"),h+=40;else if(f.type===1){const{value:g,repeatable:y,optional:$,regexp:C}=f;s.push({name:g,repeatable:y,optional:$});const N=C||In;if(N!==In){h+=10;try{new RegExp(`(${N})`)}catch(B){throw new Error(`Invalid custom RegExp for param "${g}" (${N}): `+B.message)}}let I=y?`((?:${N})(?:/(?:${N}))*)`:`(${N})`;u||(I=$&&d.length<2?`(?:/${I})`:"/"+I),$&&(I+="?"),r+=I,h+=20,$&&(h+=-8),y&&(h+=-20),N===".*"&&(h+=-50)}p.push(h)}o.push(p)}if(n.strict&&n.end){const d=o.length-1;o[d][o[d].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const c=new RegExp(r,n.sensitive?"":"i");function i(d){const p=d.match(c),u={};if(!p)return null;for(let f=1;f<p.length;f++){const h=p[f]||"",g=s[f-1];u[g.name]=h&&g.repeatable?h.split("/"):h}return u}function l(d){let p="",u=!1;for(const f of e){(!u||!p.endsWith("/"))&&(p+="/"),u=!1;for(const h of f)if(h.type===0)p+=h.value;else if(h.type===1){const{value:g,repeatable:y,optional:$}=h,C=g in d?d[g]:"";if(z(C)&&!y)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const N=z(C)?C.join("/"):C;if(!N)if($)f.length<2&&(p.endsWith("/")?p=p.slice(0,-1):u=!0);else throw new Error(`Missing required param "${g}"`);p+=N}}return p||"/"}return{re:c,score:o,keys:s,parse:i,stringify:l}}function _a(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Pn(e,t){let n=0;const o=e.score,r=t.score;for(;n<o.length&&n<r.length;){const s=_a(o[n],r[n]);if(s)return s;n++}if(Math.abs(r.length-o.length)===1){if(Dn(o))return 1;if(Dn(r))return-1}return r.length-o.length}function Dn(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ea={type:0,value:""},ka=/[a-zA-Z0-9_]/;function $a(e){if(!e)return[[]];if(e==="/")return[[Ea]];if(!e.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${d}": ${h}`)}let n=0,o=n;const r=[];let s;function c(){s&&r.push(s),s=[]}let i=0,l,d="",p="";function u(){d&&(n===0?s.push({type:0,value:d}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:d,regexp:p,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=l}for(;i<e.length;){if(l=e[i++],l==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:l==="/"?(d&&u(),c()):l===":"?(u(),n=1):f();break;case 4:f(),n=o;break;case 1:l==="("?n=2:ka.test(l)?f():(u(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&i--);break;case 2:l===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+l:n=3:p+=l;break;case 3:u(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&i--,p="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${d}"`),u(),c(),r}function Sa(e,t,n){const o=va($a(e.path),n);if(process.env.NODE_ENV!=="production"){const s=new Set;for(const c of o.keys)s.has(c.name)&&S(`Found duplicated params with name "${c.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),s.add(c.name)}const r=P(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function xa(e,t){const n=[],o=new Map;t=Rn({strict:!1,end:!0,sensitive:!1},t);function r(u){return o.get(u)}function s(u,f,h){const g=!h,y=Oa(u);process.env.NODE_ENV!=="production"&&Pa(y,f),y.aliasOf=h&&h.record;const $=Rn(t,u),C=[y];if("alias"in u){const B=typeof u.alias=="string"?[u.alias]:u.alias;for(const U of B)C.push(P({},y,{components:h?h.record.components:y.components,path:U,aliasOf:h?h.record:y}))}let N,I;for(const B of C){const{path:U}=B;if(f&&U[0]!=="/"){const K=f.record.path,k=K[K.length-1]==="/"?"":"/";B.path=f.record.path+(U&&k+U)}if(process.env.NODE_ENV!=="production"&&B.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
23
- See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(N=Sa(B,f,$),process.env.NODE_ENV!=="production"&&f&&U[0]==="/"&&Da(N,f),h?(h.alias.push(N),process.env.NODE_ENV!=="production"&&Ia(h,N)):(I=I||N,I!==N&&I.alias.push(N),g&&u.name&&!An(N)&&c(u.name)),jn(N)&&l(N),y.children){const K=y.children;for(let k=0;k<K.length;k++)s(K[k],N,h&&h.children[k])}h=h||N}return I?()=>{c(I)}:Se}function c(u){if(Nn(u)){const f=o.get(u);f&&(o.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(c),f.alias.forEach(c))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&o.delete(u.record.name),u.children.forEach(c),u.alias.forEach(c))}}function i(){return n}function l(u){const f=Va(u,n);n.splice(f,0,u),u.record.name&&!An(u)&&o.set(u.record.name,u)}function d(u,f){let h,g={},y,$;if("name"in u&&u.name){if(h=o.get(u.name),!h)throw ye(1,{location:u});if(process.env.NODE_ENV!=="production"){const I=Object.keys(u.params||{}).filter(B=>!h.keys.find(U=>U.name===B));I.length&&S(`Discarded invalid param(s) "${I.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}$=h.record.name,g=P(Vn(f.params,h.keys.filter(I=>!I.optional).concat(h.parent?h.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),u.params&&Vn(u.params,h.keys.map(I=>I.name))),y=h.stringify(g)}else if(u.path!=null)y=u.path,process.env.NODE_ENV!=="production"&&!y.startsWith("/")&&S(`The Matcher cannot resolve relative paths but received "${y}". Unless you directly called \`matcher.resolve("${y}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),h=n.find(I=>I.re.test(y)),h&&(g=h.parse(y),$=h.record.name);else{if(h=f.name?o.get(f.name):n.find(I=>I.re.test(f.path)),!h)throw ye(1,{location:u,currentLocation:f});$=h.record.name,g=P({},f.params,u.params),y=h.stringify(g)}const C=[];let N=h;for(;N;)C.unshift(N.record),N=N.parent;return{name:$,path:y,params:g,matched:C,meta:Ca(C)}}e.forEach(u=>s(u));function p(){n.length=0,o.clear()}return{addRoute:s,resolve:d,removeRoute:c,clearRoutes:p,getRoutes:i,getRecordMatcher:r}}function Vn(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Oa(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Na(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Na(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function An(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ca(e){return e.reduce((t,n)=>P(t,n.meta),{})}function Rn(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function gt(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function Ia(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(gt.bind(null,n)))return S(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(gt.bind(null,n)))return S(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function Pa(e,t){t&&t.record.name&&!e.name&&!e.path&&S(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function Da(e,t){for(const n of t.keys)if(!e.keys.find(gt.bind(null,n)))return S(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Va(e,t){let n=0,o=t.length;for(;n!==o;){const s=n+o>>1;Pn(e,t[s])<0?o=s:n=s+1}const r=Aa(e);return r&&(o=t.lastIndexOf(r,o-1),process.env.NODE_ENV!=="production"&&o<0&&S(`Finding ancestor route "${r.record.path}" failed for "${e.record.path}"`)),o}function Aa(e){let t=e;for(;t=t.parent;)if(jn(t)&&Pn(e,t)===0)return t}function jn({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ra(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const r=n[o].replace(yn," "),s=r.indexOf("="),c=ge(s<0?r:r.slice(0,s)),i=s<0?null:ge(r.slice(s+1));if(c in t){let l=t[c];z(l)||(l=t[c]=[l]),l.push(i)}else t[c]=i}return t}function Tn(e){let t="";for(let n in e){const o=e[n];if(n=Qr(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(z(o)?o.map(r=>r&&pt(r)):[o&&pt(o)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function ja(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=z(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const Ta=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Bn=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),yt=Symbol(process.env.NODE_ENV!=="production"?"router":""),Ln=Symbol(process.env.NODE_ENV!=="production"?"route location":""),wt=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ne(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ce(e,t,n,o,r,s=c=>c()){const c=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((i,l)=>{const d=f=>{f===!1?l(ye(4,{from:n,to:t})):f instanceof Error?l(f):We(f)?l(ye(2,{from:t,to:f})):(c&&o.enterCallbacks[r]===c&&typeof f=="function"&&c.push(f),i())},p=s(()=>e.call(o&&o.instances[r],t,n,process.env.NODE_ENV!=="production"?Ba(d,t,n):d));let u=Promise.resolve(p);if(e.length<3&&(u=u.then(d)),process.env.NODE_ENV!=="production"&&e.length>2){const f=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
22
+ `+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${ya(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function ye(e,t){return process.env.NODE_ENV!=="production"?P(new Error(ma[e](t)),{type:e,[mt]:!0},t):P(new Error,{type:e,[mt]:!0},t)}function te(e,t){return e instanceof Error&&mt in e&&(t==null||!!(e.type&t))}const ga=["params","query","hash"];function ya(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of ga)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const In="[^/]+?",wa={sensitive:!1,strict:!1,start:!0,end:!0},ba=/[.+*?^${}()[\]/\\]/g;function va(e,t){const n=P({},wa,t),o=[];let r=n.start?"^":"";const s=[];for(const d of e){const p=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let u=0;u<d.length;u++){const f=d[u];let h=40+(n.sensitive?.25:0);if(f.type===0)u||(r+="/"),r+=f.value.replace(ba,"\\$&"),h+=40;else if(f.type===1){const{value:g,repeatable:y,optional:$,regexp:I}=f;s.push({name:g,repeatable:y,optional:$});const x=I||In;if(x!==In){h+=10;try{new RegExp(`(${x})`)}catch(B){throw new Error(`Invalid custom RegExp for param "${g}" (${x}): `+B.message)}}let N=y?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;u||(N=$&&d.length<2?`(?:/${N})`:"/"+N),$&&(N+="?"),r+=N,h+=20,$&&(h+=-8),y&&(h+=-20),x===".*"&&(h+=-50)}p.push(h)}o.push(p)}if(n.strict&&n.end){const d=o.length-1;o[d][o[d].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const c=new RegExp(r,n.sensitive?"":"i");function i(d){const p=d.match(c),u={};if(!p)return null;for(let f=1;f<p.length;f++){const h=p[f]||"",g=s[f-1];u[g.name]=h&&g.repeatable?h.split("/"):h}return u}function l(d){let p="",u=!1;for(const f of e){(!u||!p.endsWith("/"))&&(p+="/"),u=!1;for(const h of f)if(h.type===0)p+=h.value;else if(h.type===1){const{value:g,repeatable:y,optional:$}=h,I=g in d?d[g]:"";if(z(I)&&!y)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const x=z(I)?I.join("/"):I;if(!x)if($)f.length<2&&(p.endsWith("/")?p=p.slice(0,-1):u=!0);else throw new Error(`Missing required param "${g}"`);p+=x}}return p||"/"}return{re:c,score:o,keys:s,parse:i,stringify:l}}function _a(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Pn(e,t){let n=0;const o=e.score,r=t.score;for(;n<o.length&&n<r.length;){const s=_a(o[n],r[n]);if(s)return s;n++}if(Math.abs(r.length-o.length)===1){if(Dn(o))return 1;if(Dn(r))return-1}return r.length-o.length}function Dn(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ea={type:0,value:""},ka=/[a-zA-Z0-9_]/;function $a(e){if(!e)return[[]];if(e==="/")return[[Ea]];if(!e.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${d}": ${h}`)}let n=0,o=n;const r=[];let s;function c(){s&&r.push(s),s=[]}let i=0,l,d="",p="";function u(){d&&(n===0?s.push({type:0,value:d}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:d,regexp:p,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=l}for(;i<e.length;){if(l=e[i++],l==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:l==="/"?(d&&u(),c()):l===":"?(u(),n=1):f();break;case 4:f(),n=o;break;case 1:l==="("?n=2:ka.test(l)?f():(u(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&i--);break;case 2:l===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+l:n=3:p+=l;break;case 3:u(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&i--,p="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${d}"`),u(),c(),r}function Sa(e,t,n){const o=va($a(e.path),n);if(process.env.NODE_ENV!=="production"){const s=new Set;for(const c of o.keys)s.has(c.name)&&S(`Found duplicated params with name "${c.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),s.add(c.name)}const r=P(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function xa(e,t){const n=[],o=new Map;t=Rn({strict:!1,end:!0,sensitive:!1},t);function r(u){return o.get(u)}function s(u,f,h){const g=!h,y=Oa(u);process.env.NODE_ENV!=="production"&&Pa(y,f),y.aliasOf=h&&h.record;const $=Rn(t,u),I=[y];if("alias"in u){const B=typeof u.alias=="string"?[u.alias]:u.alias;for(const U of B)I.push(P({},y,{components:h?h.record.components:y.components,path:U,aliasOf:h?h.record:y}))}let x,N;for(const B of I){const{path:U}=B;if(f&&U[0]!=="/"){const K=f.record.path,k=K[K.length-1]==="/"?"":"/";B.path=f.record.path+(U&&k+U)}if(process.env.NODE_ENV!=="production"&&B.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
23
+ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(x=Sa(B,f,$),process.env.NODE_ENV!=="production"&&f&&U[0]==="/"&&Da(x,f),h?(h.alias.push(x),process.env.NODE_ENV!=="production"&&Ia(h,x)):(N=N||x,N!==x&&N.alias.push(x),g&&u.name&&!An(x)&&c(u.name)),jn(x)&&l(x),y.children){const K=y.children;for(let k=0;k<K.length;k++)s(K[k],x,h&&h.children[k])}h=h||x}return N?()=>{c(N)}:Se}function c(u){if(Nn(u)){const f=o.get(u);f&&(o.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(c),f.alias.forEach(c))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&o.delete(u.record.name),u.children.forEach(c),u.alias.forEach(c))}}function i(){return n}function l(u){const f=Va(u,n);n.splice(f,0,u),u.record.name&&!An(u)&&o.set(u.record.name,u)}function d(u,f){let h,g={},y,$;if("name"in u&&u.name){if(h=o.get(u.name),!h)throw ye(1,{location:u});if(process.env.NODE_ENV!=="production"){const N=Object.keys(u.params||{}).filter(B=>!h.keys.find(U=>U.name===B));N.length&&S(`Discarded invalid param(s) "${N.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}$=h.record.name,g=P(Vn(f.params,h.keys.filter(N=>!N.optional).concat(h.parent?h.parent.keys.filter(N=>N.optional):[]).map(N=>N.name)),u.params&&Vn(u.params,h.keys.map(N=>N.name))),y=h.stringify(g)}else if(u.path!=null)y=u.path,process.env.NODE_ENV!=="production"&&!y.startsWith("/")&&S(`The Matcher cannot resolve relative paths but received "${y}". Unless you directly called \`matcher.resolve("${y}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),h=n.find(N=>N.re.test(y)),h&&(g=h.parse(y),$=h.record.name);else{if(h=f.name?o.get(f.name):n.find(N=>N.re.test(f.path)),!h)throw ye(1,{location:u,currentLocation:f});$=h.record.name,g=P({},f.params,u.params),y=h.stringify(g)}const I=[];let x=h;for(;x;)I.unshift(x.record),x=x.parent;return{name:$,path:y,params:g,matched:I,meta:Ca(I)}}e.forEach(u=>s(u));function p(){n.length=0,o.clear()}return{addRoute:s,resolve:d,removeRoute:c,clearRoutes:p,getRoutes:i,getRecordMatcher:r}}function Vn(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Oa(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Na(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Na(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function An(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ca(e){return e.reduce((t,n)=>P(t,n.meta),{})}function Rn(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function gt(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function Ia(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(gt.bind(null,n)))return S(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(gt.bind(null,n)))return S(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function Pa(e,t){t&&t.record.name&&!e.name&&!e.path&&S(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function Da(e,t){for(const n of t.keys)if(!e.keys.find(gt.bind(null,n)))return S(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Va(e,t){let n=0,o=t.length;for(;n!==o;){const s=n+o>>1;Pn(e,t[s])<0?o=s:n=s+1}const r=Aa(e);return r&&(o=t.lastIndexOf(r,o-1),process.env.NODE_ENV!=="production"&&o<0&&S(`Finding ancestor route "${r.record.path}" failed for "${e.record.path}"`)),o}function Aa(e){let t=e;for(;t=t.parent;)if(jn(t)&&Pn(e,t)===0)return t}function jn({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ra(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const r=n[o].replace(yn," "),s=r.indexOf("="),c=ge(s<0?r:r.slice(0,s)),i=s<0?null:ge(r.slice(s+1));if(c in t){let l=t[c];z(l)||(l=t[c]=[l]),l.push(i)}else t[c]=i}return t}function Tn(e){let t="";for(let n in e){const o=e[n];if(n=Yr(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(z(o)?o.map(r=>r&&pt(r)):[o&&pt(o)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function ja(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=z(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const Ta=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Bn=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),yt=Symbol(process.env.NODE_ENV!=="production"?"router":""),Ln=Symbol(process.env.NODE_ENV!=="production"?"route location":""),wt=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ne(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ce(e,t,n,o,r,s=c=>c()){const c=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((i,l)=>{const d=f=>{f===!1?l(ye(4,{from:n,to:t})):f instanceof Error?l(f):We(f)?l(ye(2,{from:t,to:f})):(c&&o.enterCallbacks[r]===c&&typeof f=="function"&&c.push(f),i())},p=s(()=>e.call(o&&o.instances[r],t,n,process.env.NODE_ENV!=="production"?Ba(d,t,n):d));let u=Promise.resolve(p);if(e.length<3&&(u=u.then(d)),process.env.NODE_ENV!=="production"&&e.length>2){const f=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
24
24
  ${e.toString()}
25
25
  . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof p=="object"&&"then"in p)u=u.then(h=>d._called?h:(S(f),Promise.reject(new Error("Invalid navigation guard"))));else if(p!==void 0&&!d._called){S(f),l(new Error("Invalid navigation guard"));return}}u.catch(f=>l(f))})}function Ba(e,t,n){let o=0;return function(){o++===1&&S(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,o===1&&e.apply(null,arguments)}}function bt(e,t,n,o,r=s=>s()){const s=[];for(const c of e){process.env.NODE_ENV!=="production"&&!c.components&&!c.children.length&&S(`Record with path "${c.path}" is either missing a "component(s)" or "children" property.`);for(const i in c.components){let l=c.components[i];if(process.env.NODE_ENV!=="production"){if(!l||typeof l!="object"&&typeof l!="function")throw S(`Component "${i}" in record with path "${c.path}" is not a valid component. Received "${String(l)}".`),new Error("Invalid route component");if("then"in l){S(`Component "${i}" in record with path "${c.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const d=l;l=()=>d}else l.__asyncLoader&&!l.__warnedDefineAsync&&(l.__warnedDefineAsync=!0,S(`Component "${i}" in record with path "${c.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!c.instances[i]))if(La(l)){const d=(l.__vccOpts||l)[t];d&&s.push(ce(d,n,o,c,i,r))}else{let d=l();process.env.NODE_ENV!=="production"&&!("catch"in d)&&(S(`Component "${i}" in record with path "${c.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),d=Promise.resolve(d)),s.push(()=>d.then(p=>{if(!p)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${c.path}"`));const u=Lr(p)?p.default:p;c.components[i]=u;const f=(u.__vccOpts||u)[t];return f&&ce(f,n,o,c,i,r)()}))}}}return s}function La(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Mn(e){const t=a.inject(yt),n=a.inject(Ln);let o=!1,r=null;const s=a.computed(()=>{const p=a.unref(e.to);return process.env.NODE_ENV!=="production"&&(!o||p!==r)&&(We(p)||(o?S(`Invalid value for prop "to" in useLink()
26
26
  - to:`,p,`
27
27
  - previous to:`,r,`
28
28
  - props:`,e):S(`Invalid value for prop "to" in useLink()
29
29
  - to:`,p,`
30
- - props:`,e)),r=p,o=!0),t.resolve(p)}),c=a.computed(()=>{const{matched:p}=s.value,{length:u}=p,f=p[u-1],h=n.matched;if(!f||!h.length)return-1;const g=h.findIndex(se.bind(null,f));if(g>-1)return g;const y=Un(p[u-2]);return u>1&&Un(f)===y&&h[h.length-1].path!==y?h.findIndex(se.bind(null,p[u-2])):g}),i=a.computed(()=>c.value>-1&&Fa(n.params,s.value.params)),l=a.computed(()=>c.value>-1&&c.value===n.matched.length-1&&kn(n.params,s.value.params));function d(p={}){return Wa(p)?t[a.unref(e.replace)?"replace":"push"](a.unref(e.to)).catch(Se):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&ee){const p=a.getCurrentInstance();if(p){const u={route:s.value,isActive:i.value,isExactActive:l.value,error:null};p.__vrl_devtools=p.__vrl_devtools||[],p.__vrl_devtools.push(u),a.watchEffect(()=>{u.route=s.value,u.isActive=i.value,u.isExactActive=l.value,u.error=We(a.unref(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:s,href:a.computed(()=>s.value.href),isActive:i,isExactActive:l,navigate:d}}const Ma=a.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Mn,setup(e,{slots:t}){const n=a.reactive(Mn(e)),{options:o}=a.inject(yt),r=a.computed(()=>({[Wn(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Wn(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:a.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},s)}}}),Ua=Ma;function Wa(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Fa(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!z(r)||r.length!==o.length||o.some((s,c)=>s!==r[c]))return!1}return!0}function Un(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Wn=(e,t,n)=>e??t??n,za=a.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){process.env.NODE_ENV!=="production"&&Ga();const o=a.inject(wt),r=a.computed(()=>e.route||o.value),s=a.inject(Bn,0),c=a.computed(()=>{let d=a.unref(s);const{matched:p}=r.value;let u;for(;(u=p[d])&&!u.components;)d++;return d}),i=a.computed(()=>r.value.matched[c.value]);a.provide(Bn,a.computed(()=>c.value+1)),a.provide(Ta,i),a.provide(wt,r);const l=a.ref();return a.watch(()=>[l.value,i.value,e.name],([d,p,u],[f,h,g])=>{p&&(p.instances[u]=d,h&&h!==p&&d&&d===f&&(p.leaveGuards.size||(p.leaveGuards=h.leaveGuards),p.updateGuards.size||(p.updateGuards=h.updateGuards))),d&&p&&(!h||!se(p,h)||!f)&&(p.enterCallbacks[u]||[]).forEach(y=>y(d))},{flush:"post"}),()=>{const d=r.value,p=e.name,u=i.value,f=u&&u.components[p];if(!f)return Fn(n.default,{Component:f,route:d});const h=u.props[p],g=h?h===!0?d.params:typeof h=="function"?h(d):h:null,y=a.h(f,P({},g,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(u.instances[p]=null)},ref:l}));if(process.env.NODE_ENV!=="production"&&ee&&y.ref){const $={depth:c.value,name:u.name,path:u.path,meta:u.meta};(z(y.ref)?y.ref.map(C=>C.i):[y.ref.i]).forEach(C=>{C.__vrv_devtools=$})}return Fn(n.default,{Component:y,route:d})||y}}});function Fn(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qa=za;function Ga(){const e=a.getCurrentInstance(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const o=t==="KeepAlive"?"keep-alive":"transition";S(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
30
+ - props:`,e)),r=p,o=!0),t.resolve(p)}),c=a.computed(()=>{const{matched:p}=s.value,{length:u}=p,f=p[u-1],h=n.matched;if(!f||!h.length)return-1;const g=h.findIndex(se.bind(null,f));if(g>-1)return g;const y=Un(p[u-2]);return u>1&&Un(f)===y&&h[h.length-1].path!==y?h.findIndex(se.bind(null,p[u-2])):g}),i=a.computed(()=>c.value>-1&&Fa(n.params,s.value.params)),l=a.computed(()=>c.value>-1&&c.value===n.matched.length-1&&kn(n.params,s.value.params));function d(p={}){return Wa(p)?t[a.unref(e.replace)?"replace":"push"](a.unref(e.to)).catch(Se):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&ee){const p=a.getCurrentInstance();if(p){const u={route:s.value,isActive:i.value,isExactActive:l.value,error:null};p.__vrl_devtools=p.__vrl_devtools||[],p.__vrl_devtools.push(u),a.watchEffect(()=>{u.route=s.value,u.isActive=i.value,u.isExactActive=l.value,u.error=We(a.unref(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:s,href:a.computed(()=>s.value.href),isActive:i,isExactActive:l,navigate:d}}const Ma=a.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Mn,setup(e,{slots:t}){const n=a.reactive(Mn(e)),{options:o}=a.inject(yt),r=a.computed(()=>({[Wn(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Wn(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:a.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},s)}}}),Ua=Ma;function Wa(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Fa(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!z(r)||r.length!==o.length||o.some((s,c)=>s!==r[c]))return!1}return!0}function Un(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Wn=(e,t,n)=>e??t??n,za=a.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){process.env.NODE_ENV!=="production"&&Ga();const o=a.inject(wt),r=a.computed(()=>e.route||o.value),s=a.inject(Bn,0),c=a.computed(()=>{let d=a.unref(s);const{matched:p}=r.value;let u;for(;(u=p[d])&&!u.components;)d++;return d}),i=a.computed(()=>r.value.matched[c.value]);a.provide(Bn,a.computed(()=>c.value+1)),a.provide(Ta,i),a.provide(wt,r);const l=a.ref();return a.watch(()=>[l.value,i.value,e.name],([d,p,u],[f,h,g])=>{p&&(p.instances[u]=d,h&&h!==p&&d&&d===f&&(p.leaveGuards.size||(p.leaveGuards=h.leaveGuards),p.updateGuards.size||(p.updateGuards=h.updateGuards))),d&&p&&(!h||!se(p,h)||!f)&&(p.enterCallbacks[u]||[]).forEach(y=>y(d))},{flush:"post"}),()=>{const d=r.value,p=e.name,u=i.value,f=u&&u.components[p];if(!f)return Fn(n.default,{Component:f,route:d});const h=u.props[p],g=h?h===!0?d.params:typeof h=="function"?h(d):h:null,y=a.h(f,P({},g,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(u.instances[p]=null)},ref:l}));if(process.env.NODE_ENV!=="production"&&ee&&y.ref){const $={depth:c.value,name:u.name,path:u.path,meta:u.meta};(z(y.ref)?y.ref.map(I=>I.i):[y.ref.i]).forEach(I=>{I.__vrv_devtools=$})}return Fn(n.default,{Component:y,route:d})||y}}});function Fn(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qa=za;function Ga(){const e=a.getCurrentInstance(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const o=t==="KeepAlive"?"keep-alive":"transition";S(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
31
31
  Use slot props instead:
32
32
 
33
33
  <router-view v-slot="{ Component }">
34
34
  <${o}>
35
35
  <component :is="Component" />
36
36
  </${o}>
37
- </router-view>`)}}function Ce(e,t){const n=P({},e,{matched:e.matched.map(o=>os(o,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Fe(e){return{_custom:{display:e}}}let Ha=0;function Ja(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=Ha++;rt({id:"org.vuejs.router"+(o?"."+o:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},r=>{typeof r.now!="function"&&console.warn("[Vue Router]: 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."),r.on.inspectComponent((p,u)=>{p.instanceData&&p.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ce(t.currentRoute.value,"Current Route")})}),r.on.visitComponentTree(({treeNode:p,componentInstance:u})=>{if(u.__vrv_devtools){const f=u.__vrv_devtools;p.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:zn})}z(u.__vrl_devtools)&&(u.__devtoolsApi=r,u.__vrl_devtools.forEach(f=>{let h=f.route.path,g=Hn,y="",$=0;f.error?(h=f.error,g=Za,$=es):f.isExactActive?(g=Gn,y="This is exactly active"):f.isActive&&(g=qn,y="This link is active"),p.tags.push({label:h,textColor:$,tooltip:y,backgroundColor:g})}))}),a.watch(t.currentRoute,()=>{l(),r.notifyComponentUpdate(),r.sendInspectorTree(i),r.sendInspectorState(i)});const s="router:navigations:"+o;r.addTimelineLayer({id:s,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((p,u)=>{r.addTimelineEvent({layerId:s,event:{title:"Error during Navigation",subtitle:u.fullPath,logType:"error",time:r.now(),data:{error:p},groupId:u.meta.__navigationId}})});let c=0;t.beforeEach((p,u)=>{const f={guard:Fe("beforeEach"),from:Ce(u,"Current Location during this navigation"),to:Ce(p,"Target location")};Object.defineProperty(p.meta,"__navigationId",{value:c++}),r.addTimelineEvent({layerId:s,event:{time:r.now(),title:"Start of navigation",subtitle:p.fullPath,data:f,groupId:p.meta.__navigationId}})}),t.afterEach((p,u,f)=>{const h={guard:Fe("afterEach")};f?(h.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},h.status=Fe("โŒ")):h.status=Fe("โœ…"),h.from=Ce(u,"Current Location during this navigation"),h.to=Ce(p,"Target location"),r.addTimelineEvent({layerId:s,event:{title:"End of navigation",subtitle:p.fullPath,time:r.now(),data:h,logType:f?"warning":"default",groupId:p.meta.__navigationId}})});const i="router-inspector:"+o;r.addInspector({id:i,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!d)return;const p=d;let u=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);u.forEach(Qn),p.filter&&(u=u.filter(f=>vt(f,p.filter.toLowerCase()))),u.forEach(f=>Kn(f,t.currentRoute.value)),p.rootNodes=u.map(Jn)}let d;r.on.getInspectorTree(p=>{d=p,p.app===e&&p.inspectorId===i&&l()}),r.on.getInspectorState(p=>{if(p.app===e&&p.inspectorId===i){const u=n.getRoutes().find(f=>f.record.__vd_id===p.nodeId);u&&(p.state={options:Qa(u)})}}),r.sendInspectorTree(i),r.sendInspectorState(i)})}function Ka(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function Qa(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(o=>`${o.name}${Ka(o)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(o=>o.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(o=>o.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const zn=15485081,qn=2450411,Gn=8702998,Ya=2282478,Hn=16486972,Xa=6710886,Za=16704226,es=12131356;function Jn(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:Ya}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:Hn}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:zn}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Gn}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:qn}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:Xa});let o=n.__vd_id;return o==null&&(o=String(ts++),n.__vd_id=o),{id:o,label:n.path,tags:t,children:e.children.map(Jn)}}let ts=0;const ns=/^\/(.*)\/([a-z]*)$/;function Kn(e,t){const n=t.matched.length&&se(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(o=>se(o,e.record))),e.children.forEach(o=>Kn(o,t))}function Qn(e){e.__vd_match=!1,e.children.forEach(Qn)}function vt(e,t){const n=String(e.re).match(ns);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(s=>vt(s,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const o=e.record.path.toLowerCase(),r=ge(o);return!t.startsWith("/")&&(r.includes(t)||o.includes(t))||r.startsWith(t)||o.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(s=>vt(s,t))}function os(e,t){const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n}function rs(e){const t=xa(e.routes,e),n=e.parseQuery||Ra,o=e.stringifyQuery||Tn,r=e.history;if(process.env.NODE_ENV!=="production"&&!r)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const s=Ne(),c=Ne(),i=Ne(),l=a.shallowRef(ie);let d=ie;ee&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=ut.bind(null,m=>""+m),u=ut.bind(null,Xr),f=ut.bind(null,ge);function h(m,b){let w,E;return Nn(m)?(w=t.getRecordMatcher(m),process.env.NODE_ENV!=="production"&&!w&&S(`Parent route "${String(m)}" not found when adding child route`,b),E=b):E=m,t.addRoute(E,w)}function g(m){const b=t.getRecordMatcher(m);b?t.removeRoute(b):process.env.NODE_ENV!=="production"&&S(`Cannot remove non-existent route "${String(m)}"`)}function y(){return t.getRoutes().map(m=>m.record)}function $(m){return!!t.getRecordMatcher(m)}function C(m,b){if(b=P({},b||l.value),typeof m=="string"){const x=ft(n,m,b.path),A=t.resolve({path:x.path},b),fe=r.createHref(x.fullPath);return process.env.NODE_ENV!=="production"&&(fe.startsWith("//")?S(`Location "${m}" resolved to "${fe}". A resolved location cannot start with multiple slashes.`):A.matched.length||S(`No match found for location with path "${m}"`)),P(x,A,{params:f(A.params),hash:ge(x.hash),redirectedFrom:void 0,href:fe})}if(process.env.NODE_ENV!=="production"&&!We(m))return S(`router.resolve() was passed an invalid location. This will fail in production.
38
- - Location:`,m),C({});let w;if(m.path!=null)process.env.NODE_ENV!=="production"&&"params"in m&&!("name"in m)&&Object.keys(m.params).length&&S(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),w=P({},m,{path:ft(n,m.path,b.path).path});else{const x=P({},m.params);for(const A in x)x[A]==null&&delete x[A];w=P({},m,{params:u(x)}),b.params=u(b.params)}const E=t.resolve(w,b),D=m.hash||"";process.env.NODE_ENV!=="production"&&D&&!D.startsWith("#")&&S(`A \`hash\` should always start with the character "#". Replace "${D}" with "#${D}".`),E.params=p(f(E.params));const R=ta(o,P({},m,{hash:Kr(D),path:E.path})),O=r.createHref(R);return process.env.NODE_ENV!=="production"&&(O.startsWith("//")?S(`Location "${m}" resolved to "${O}". A resolved location cannot start with multiple slashes.`):E.matched.length||S(`No match found for location with path "${m.path!=null?m.path:m}"`)),P({fullPath:R,hash:D,query:o===Tn?ja(m.query):m.query||{}},E,{redirectedFrom:void 0,href:O})}function N(m){return typeof m=="string"?ft(n,m,l.value.path):P({},m)}function I(m,b){if(d!==m)return ye(8,{from:b,to:m})}function B(m){return k(m)}function U(m){return B(P(N(m),{replace:!0}))}function K(m){const b=m.matched[m.matched.length-1];if(b&&b.redirect){const{redirect:w}=b;let E=typeof w=="function"?w(m):w;if(typeof E=="string"&&(E=E.includes("?")||E.includes("#")?E=N(E):{path:E},E.params={}),process.env.NODE_ENV!=="production"&&E.path==null&&!("name"in E))throw S(`Invalid redirect found:
37
+ </router-view>`)}}function Ce(e,t){const n=P({},e,{matched:e.matched.map(o=>os(o,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Fe(e){return{_custom:{display:e}}}let Ha=0;function Ja(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=Ha++;rt({id:"org.vuejs.router"+(o?"."+o:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},r=>{typeof r.now!="function"&&console.warn("[Vue Router]: 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."),r.on.inspectComponent((p,u)=>{p.instanceData&&p.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ce(t.currentRoute.value,"Current Route")})}),r.on.visitComponentTree(({treeNode:p,componentInstance:u})=>{if(u.__vrv_devtools){const f=u.__vrv_devtools;p.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:zn})}z(u.__vrl_devtools)&&(u.__devtoolsApi=r,u.__vrl_devtools.forEach(f=>{let h=f.route.path,g=Hn,y="",$=0;f.error?(h=f.error,g=Za,$=es):f.isExactActive?(g=Gn,y="This is exactly active"):f.isActive&&(g=qn,y="This link is active"),p.tags.push({label:h,textColor:$,tooltip:y,backgroundColor:g})}))}),a.watch(t.currentRoute,()=>{l(),r.notifyComponentUpdate(),r.sendInspectorTree(i),r.sendInspectorState(i)});const s="router:navigations:"+o;r.addTimelineLayer({id:s,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((p,u)=>{r.addTimelineEvent({layerId:s,event:{title:"Error during Navigation",subtitle:u.fullPath,logType:"error",time:r.now(),data:{error:p},groupId:u.meta.__navigationId}})});let c=0;t.beforeEach((p,u)=>{const f={guard:Fe("beforeEach"),from:Ce(u,"Current Location during this navigation"),to:Ce(p,"Target location")};Object.defineProperty(p.meta,"__navigationId",{value:c++}),r.addTimelineEvent({layerId:s,event:{time:r.now(),title:"Start of navigation",subtitle:p.fullPath,data:f,groupId:p.meta.__navigationId}})}),t.afterEach((p,u,f)=>{const h={guard:Fe("afterEach")};f?(h.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},h.status=Fe("โŒ")):h.status=Fe("โœ…"),h.from=Ce(u,"Current Location during this navigation"),h.to=Ce(p,"Target location"),r.addTimelineEvent({layerId:s,event:{title:"End of navigation",subtitle:p.fullPath,time:r.now(),data:h,logType:f?"warning":"default",groupId:p.meta.__navigationId}})});const i="router-inspector:"+o;r.addInspector({id:i,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!d)return;const p=d;let u=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);u.forEach(Yn),p.filter&&(u=u.filter(f=>vt(f,p.filter.toLowerCase()))),u.forEach(f=>Kn(f,t.currentRoute.value)),p.rootNodes=u.map(Jn)}let d;r.on.getInspectorTree(p=>{d=p,p.app===e&&p.inspectorId===i&&l()}),r.on.getInspectorState(p=>{if(p.app===e&&p.inspectorId===i){const u=n.getRoutes().find(f=>f.record.__vd_id===p.nodeId);u&&(p.state={options:Ya(u)})}}),r.sendInspectorTree(i),r.sendInspectorState(i)})}function Ka(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function Ya(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(o=>`${o.name}${Ka(o)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(o=>o.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(o=>o.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const zn=15485081,qn=2450411,Gn=8702998,Qa=2282478,Hn=16486972,Xa=6710886,Za=16704226,es=12131356;function Jn(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:Qa}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:Hn}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:zn}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Gn}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:qn}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:Xa});let o=n.__vd_id;return o==null&&(o=String(ts++),n.__vd_id=o),{id:o,label:n.path,tags:t,children:e.children.map(Jn)}}let ts=0;const ns=/^\/(.*)\/([a-z]*)$/;function Kn(e,t){const n=t.matched.length&&se(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(o=>se(o,e.record))),e.children.forEach(o=>Kn(o,t))}function Yn(e){e.__vd_match=!1,e.children.forEach(Yn)}function vt(e,t){const n=String(e.re).match(ns);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(s=>vt(s,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const o=e.record.path.toLowerCase(),r=ge(o);return!t.startsWith("/")&&(r.includes(t)||o.includes(t))||r.startsWith(t)||o.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(s=>vt(s,t))}function os(e,t){const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n}function rs(e){const t=xa(e.routes,e),n=e.parseQuery||Ra,o=e.stringifyQuery||Tn,r=e.history;if(process.env.NODE_ENV!=="production"&&!r)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const s=Ne(),c=Ne(),i=Ne(),l=a.shallowRef(ie);let d=ie;ee&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=ut.bind(null,m=>""+m),u=ut.bind(null,Xr),f=ut.bind(null,ge);function h(m,b){let w,E;return Nn(m)?(w=t.getRecordMatcher(m),process.env.NODE_ENV!=="production"&&!w&&S(`Parent route "${String(m)}" not found when adding child route`,b),E=b):E=m,t.addRoute(E,w)}function g(m){const b=t.getRecordMatcher(m);b?t.removeRoute(b):process.env.NODE_ENV!=="production"&&S(`Cannot remove non-existent route "${String(m)}"`)}function y(){return t.getRoutes().map(m=>m.record)}function $(m){return!!t.getRecordMatcher(m)}function I(m,b){if(b=P({},b||l.value),typeof m=="string"){const O=ft(n,m,b.path),A=t.resolve({path:O.path},b),fe=r.createHref(O.fullPath);return process.env.NODE_ENV!=="production"&&(fe.startsWith("//")?S(`Location "${m}" resolved to "${fe}". A resolved location cannot start with multiple slashes.`):A.matched.length||S(`No match found for location with path "${m}"`)),P(O,A,{params:f(A.params),hash:ge(O.hash),redirectedFrom:void 0,href:fe})}if(process.env.NODE_ENV!=="production"&&!We(m))return S(`router.resolve() was passed an invalid location. This will fail in production.
38
+ - Location:`,m),I({});let w;if(m.path!=null)process.env.NODE_ENV!=="production"&&"params"in m&&!("name"in m)&&Object.keys(m.params).length&&S(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),w=P({},m,{path:ft(n,m.path,b.path).path});else{const O=P({},m.params);for(const A in O)O[A]==null&&delete O[A];w=P({},m,{params:u(O)}),b.params=u(b.params)}const E=t.resolve(w,b),D=m.hash||"";process.env.NODE_ENV!=="production"&&D&&!D.startsWith("#")&&S(`A \`hash\` should always start with the character "#". Replace "${D}" with "#${D}".`),E.params=p(f(E.params));const R=ta(o,P({},m,{hash:Kr(D),path:E.path})),C=r.createHref(R);return process.env.NODE_ENV!=="production"&&(C.startsWith("//")?S(`Location "${m}" resolved to "${C}". A resolved location cannot start with multiple slashes.`):E.matched.length||S(`No match found for location with path "${m.path!=null?m.path:m}"`)),P({fullPath:R,hash:D,query:o===Tn?ja(m.query):m.query||{}},E,{redirectedFrom:void 0,href:C})}function x(m){return typeof m=="string"?ft(n,m,l.value.path):P({},m)}function N(m,b){if(d!==m)return ye(8,{from:b,to:m})}function B(m){return k(m)}function U(m){return B(P(x(m),{replace:!0}))}function K(m){const b=m.matched[m.matched.length-1];if(b&&b.redirect){const{redirect:w}=b;let E=typeof w=="function"?w(m):w;if(typeof E=="string"&&(E=E.includes("?")||E.includes("#")?E=x(E):{path:E},E.params={}),process.env.NODE_ENV!=="production"&&E.path==null&&!("name"in E))throw S(`Invalid redirect found:
39
39
  ${JSON.stringify(E,null,2)}
40
- when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return P({query:m.query,hash:m.hash,params:E.path!=null?{}:m.params},E)}}function k(m,b){const w=d=C(m),E=l.value,D=m.state,R=m.force,O=m.replace===!0,x=K(w);if(x)return k(P(N(x),{state:typeof x=="object"?P({},D,x.state):D,force:R,replace:O}),b||w);const A=w;A.redirectedFrom=b;let fe;return!R&&En(o,E,w)&&(fe=ye(16,{to:A,from:E}),Uo(E,E,!0,!1)),(fe?Promise.resolve(fe):v(A,E)).catch(W=>te(W)?te(W,2)?W:zt(W):Ft(W,A,E)).then(W=>{if(W){if(te(W,2))return process.env.NODE_ENV!=="production"&&En(o,C(W.to),A)&&b&&(b._count=b._count?b._count+1:1)>30?(S(`Detected a possibly infinite redirection in a navigation guard when going from "${E.fullPath}" to "${A.fullPath}". Aborting to avoid a Stack Overflow.
41
- Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):k(P({replace:O},N(W.to),{state:typeof W.to=="object"?P({},D,W.to.state):D,force:R}),b||A)}else W=F(A,E,!0,O,D);return V(A,E,W),W})}function X(m,b){const w=I(m,b);return w?Promise.reject(w):Promise.resolve()}function _(m){const b=Qe.values().next().value;return b&&typeof b.runWithContext=="function"?b.runWithContext(m):m()}function v(m,b){let w;const[E,D,R]=as(m,b);w=bt(E.reverse(),"beforeRouteLeave",m,b);for(const x of E)x.leaveGuards.forEach(A=>{w.push(ce(A,m,b))});const O=X.bind(null,m,b);return w.push(O),ve(w).then(()=>{w=[];for(const x of s.list())w.push(ce(x,m,b));return w.push(O),ve(w)}).then(()=>{w=bt(D,"beforeRouteUpdate",m,b);for(const x of D)x.updateGuards.forEach(A=>{w.push(ce(A,m,b))});return w.push(O),ve(w)}).then(()=>{w=[];for(const x of R)if(x.beforeEnter)if(z(x.beforeEnter))for(const A of x.beforeEnter)w.push(ce(A,m,b));else w.push(ce(x.beforeEnter,m,b));return w.push(O),ve(w)}).then(()=>(m.matched.forEach(x=>x.enterCallbacks={}),w=bt(R,"beforeRouteEnter",m,b,_),w.push(O),ve(w))).then(()=>{w=[];for(const x of c.list())w.push(ce(x,m,b));return w.push(O),ve(w)}).catch(x=>te(x,8)?x:Promise.reject(x))}function V(m,b,w){i.list().forEach(E=>_(()=>E(m,b,w)))}function F(m,b,w,E,D){const R=I(m,b);if(R)return R;const O=b===ie,x=ee?history.state:{};w&&(E||O?r.replace(m.fullPath,P({scroll:O&&x&&x.scroll},D)):r.push(m.fullPath,D)),l.value=m,Uo(m,b,w,O),zt()}let Q;function Wt(){Q||(Q=r.listen((m,b,w)=>{const E=C(m),D=K(E);if(D){k(P(D,{replace:!0}),E).catch(Se);return}d=E;const R=l.value;ee&&la(Sn(R.fullPath,w.delta),Ue()),v(E,R).catch(O=>te(O,12)?O:te(O,2)?(k(O.to,E).then(x=>{te(x,20)&&!w.delta&&w.type===xe.pop&&r.go(-1,!1)}).catch(Se),Promise.reject()):(w.delta&&r.go(-w.delta,!1),Ft(O,E,R))).then(O=>{O=O||F(E,R,!1),O&&(w.delta&&!te(O,8)?r.go(-w.delta,!1):w.type===xe.pop&&te(O,20)&&r.go(-1,!1)),V(E,R,O)}).catch(Se)}))}let Ae=Ne(),le=Ne(),L;function Ft(m,b,w){zt(m);const E=le.list();return E.length?E.forEach(D=>D(m,b,w)):(process.env.NODE_ENV!=="production"&&S("uncaught error during route navigation:"),console.error(m)),Promise.reject(m)}function uc(){return L&&l.value!==ie?Promise.resolve():new Promise((m,b)=>{Ae.add([m,b])})}function zt(m){return L||(L=!m,Wt(),Ae.list().forEach(([b,w])=>m?w(m):b()),Ae.reset()),m}function Uo(m,b,w,E){const{scrollBehavior:D}=e;if(!ee||!D)return Promise.resolve();const R=!w&&ua(Sn(m.fullPath,0))||(E||!w)&&history.state&&history.state.scroll||null;return a.nextTick().then(()=>D(m,b,R)).then(O=>O&&ca(O)).catch(O=>Ft(O,m,b))}const qt=m=>r.go(m);let Gt;const Qe=new Set,dc={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:$,getRoutes:y,resolve:C,options:e,push:B,replace:U,go:qt,back:()=>qt(-1),forward:()=>qt(1),beforeEach:s.add,beforeResolve:c.add,afterEach:i.add,onError:le.add,isReady:uc,install(m){const b=this;m.component("RouterLink",Ua),m.component("RouterView",qa),m.config.globalProperties.$router=b,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>a.unref(l)}),ee&&!Gt&&l.value===ie&&(Gt=!0,B(r.location).catch(D=>{process.env.NODE_ENV!=="production"&&S("Unexpected error when starting the router:",D)}));const w={};for(const D in ie)Object.defineProperty(w,D,{get:()=>l.value[D],enumerable:!0});m.provide(yt,b),m.provide(Ln,a.shallowReactive(w)),m.provide(wt,l);const E=m.unmount;Qe.add(m),m.unmount=function(){Qe.delete(m),Qe.size<1&&(d=ie,Q&&Q(),Q=null,l.value=ie,Gt=!1,L=!1),E()},process.env.NODE_ENV!=="production"&&ee&&Ja(m,b,t)}};function ve(m){return m.reduce((b,w)=>b.then(()=>_(w)),Promise.resolve())}return dc}function as(e,t){const n=[],o=[],r=[],s=Math.max(t.matched.length,e.matched.length);for(let c=0;c<s;c++){const i=t.matched[c];i&&(e.matched.find(d=>se(d,i))?o.push(i):n.push(i));const l=e.matched[c];l&&(t.matched.find(d=>se(d,l))||r.push(l))}return[n,o,r]}rs({history:ha(),routes:[]});function ss(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var we=Promise.resolve();function Yn(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function is(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function _t(){return Math.random().toString(36).substring(2)}var Xn=0,Et=0;function ze(){var e=new Date().getTime();return e===Xn?(Et++,e*1e3+Et):(Xn=e,Et=0,e*1e3)}var cs=ze,ls="native";function us(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function ds(e){e.bc.close(),e.subFns=[]}function ps(e,t){try{return e.bc.postMessage(t,!1),we}catch(n){return Promise.reject(n)}}function fs(e,t){e.messagesCallback=t}function hs(){if(typeof window>"u")return!1;if(typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function ms(){return 150}var gs={create:us,close:ds,onMessage:fs,postMessage:ps,canBeUsed:hs,type:ls,averageResponseTime:ms,microSeconds:cs},Zn=function(){function e(t){this.ttl=t,this.map=new Map,this._to=!1}return e.prototype.has=function(t){return this.map.has(t)},e.prototype.add=function(t){var n=this;this.map.set(t,eo()),this._to||(this._to=!0,setTimeout(function(){n._to=!1,ys(n)},0))},e.prototype.clear=function(){this.map.clear()},e}();function ys(e){for(var t=eo()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var r=o[0],s=o[1];if(s<t)e.map.delete(r);else return}}function eo(){return new Date().getTime()}function kt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var ws=ze,bs="pubkey.broadcast-channel-0-",ne="messages",qe={durability:"relaxed"},vs="idb";function to(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function $t(e){e.commit&&e.commit()}function _s(e){var t=to(),n=bs+e,o=t.open(n);return o.onupgradeneeded=function(r){var s=r.target.result;s.createObjectStore(ne,{keyPath:"id",autoIncrement:!0})},new Promise(function(r,s){o.onerror=function(c){return s(c)},o.onsuccess=function(){r(o.result)}})}function Es(e,t,n){var o=new Date().getTime(),r={uuid:t,time:o,data:n},s=e.transaction([ne],"readwrite",qe);return new Promise(function(c,i){s.oncomplete=function(){return c()},s.onerror=function(d){return i(d)};var l=s.objectStore(ne);l.add(r),$t(s)})}function ks(e,t){var n=e.transaction(ne,"readonly",qe),o=n.objectStore(ne),r=[],s=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var c=o.getAll(s);return new Promise(function(l,d){c.onerror=function(p){return d(p)},c.onsuccess=function(p){l(p.target.result)}})}function i(){try{return s=IDBKeyRange.bound(t+1,1/0),o.openCursor(s)}catch{return o.openCursor()}}return new Promise(function(l,d){var p=i();p.onerror=function(u){return d(u)},p.onsuccess=function(u){var f=u.target.result;f?f.value.id<t+1?f.continue(t+1):(r.push(f.value),f.continue()):($t(n),l(r))}})}function $s(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(ne,"readwrite",qe),o=n.objectStore(ne);return Promise.all(t.map(function(r){var s=o.delete(r);return new Promise(function(c){s.onsuccess=function(){return c()}})}))}function Ss(e,t){var n=new Date().getTime()-t,o=e.transaction(ne,"readonly",qe),r=o.objectStore(ne),s=[];return new Promise(function(c){r.openCursor().onsuccess=function(i){var l=i.target.result;if(l){var d=l.value;d.time<n?(s.push(d),l.continue()):($t(o),c(s))}else c(s)}})}function xs(e){return Ss(e.db,e.options.idb.ttl).then(function(t){return $s(e,t.map(function(n){return n.id}))})}function Os(e,t){return t=kt(t),_s(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:_t(),eMIs:new Zn(t.idb.ttl*2),writeBlockPromise:we,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},no(o),o})}function no(e){e.closed||oo(e).then(function(){return Yn(e.options.idb.fallbackInterval)}).then(function(){return no(e)})}function Ns(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function oo(e){return e.closed||!e.messagesCallback?we:ks(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(o){return!!o}).map(function(o){return o.id>e.lastCursorId&&(e.lastCursorId=o.id),o}).filter(function(o){return Ns(o,e)}).sort(function(o,r){return o.time-r.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),we})}function Cs(e){e.closed=!0,e.db.close()}function Is(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return Es(e.db,e.uuid,t)}).then(function(){is(0,10)===0&&xs(e)}),e.writeBlockPromise}function Ps(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,oo(e)}function Ds(){return!!to()}function Vs(e){return e.idb.fallbackInterval*2}var As={create:Os,close:Cs,onMessage:Ps,postMessage:Is,canBeUsed:Ds,type:vs,averageResponseTime:Vs,microSeconds:ws},Rs=ze,js="pubkey.broadcastChannel-",Ts="localstorage";function ro(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function ao(e){return js+e}function Bs(e,t){return new Promise(function(n){Yn().then(function(){var o=ao(e.channelName),r={token:_t(),time:new Date().getTime(),data:t,uuid:e.uuid},s=JSON.stringify(r);ro().setItem(o,s);var c=document.createEvent("Event");c.initEvent("storage",!0,!0),c.key=o,c.newValue=s,window.dispatchEvent(c),n()})})}function Ls(e,t){var n=ao(e),o=function(r){r.key===n&&t(JSON.parse(r.newValue))};return window.addEventListener("storage",o),o}function Ms(e){window.removeEventListener("storage",e)}function Us(e,t){if(t=kt(t),!so())throw new Error("BroadcastChannel: localstorage cannot be used");var n=_t(),o=new Zn(t.localstorage.removeTimeout),r={channelName:e,uuid:n,eMIs:o};return r.listener=Ls(e,function(s){r.messagesCallback&&s.uuid!==n&&(!s.token||o.has(s.token)||s.data.time&&s.data.time<r.messagesCallbackTime||(o.add(s.token),r.messagesCallback(s.data)))}),r}function Ws(e){Ms(e.listener)}function Fs(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function so(){var e=ro();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function zs(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var qs={create:Us,close:Ws,onMessage:Fs,postMessage:Bs,canBeUsed:so,type:Ts,averageResponseTime:zs,microSeconds:Rs},Gs=ze,Hs="simulate",St=new Set;function Js(e){var t={name:e,messagesCallback:null};return St.add(t),t}function Ks(e){St.delete(e)}function Qs(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(St);o.filter(function(r){return r.name===e.name}).filter(function(r){return r!==e}).filter(function(r){return!!r.messagesCallback}).forEach(function(r){return r.messagesCallback(t)}),n()},5)})}function Ys(e,t){e.messagesCallback=t}function Xs(){return!0}function Zs(){return 5}var ei={create:Js,close:Ks,onMessage:Ys,postMessage:Qs,canBeUsed:Xs,type:Hs,averageResponseTime:Zs,microSeconds:Gs},io=[gs,As,qs];function ti(e){var t=[].concat(e.methods,io).filter(Boolean);if(e.type){if(e.type==="simulate")return ei;var n=t.find(function(r){return r.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(r){return r.type!=="idb"}));var o=t.find(function(r){return r.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(io.map(function(r){return r.type})))}var co=new Set,ni=0,xt=function(e,t){this.id=ni++,co.add(this),this.name=e,this.options=kt(t),this.method=ti(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,oi(this)};xt._pubkey=!0,xt.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return lo(this,"message",e)},postInternal:function(e){return lo(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};fo(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,po(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};po(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});fo(this,e,n)},close:function(){var e=this;if(!this.closed){co.delete(this),this.closed=!0;var t=this._prepP?this._prepP:we;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function lo(e,t,n){var o=e.method.microSeconds(),r={time:o,type:t,data:n},s=e._prepP?e._prepP:we;return s.then(function(){var c=e.method.postMessage(e._state,r);return e._uMP.add(c),c.catch().then(function(){return e._uMP.delete(c)}),c})}function oi(e){var t=e.method.create(e.name,e.options);ss(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function uo(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function po(e,t,n){e._addEL[t].push(n),ri(e)}function fo(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),ai(e)}function ri(e){if(!e._iL&&uo(e)){var t=function(o){e._addEL[o.type].forEach(function(r){var s=1e5,c=r.time-s;o.time>=c&&r.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function ai(e){if(e._iL&&!uo(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}let Ot=class extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}};function ho(e){return Object(e)!==e}const si=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ii(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===si}function ci(e){return Object.prototype.toString.call(e).slice(8,-1)}function li(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
42
- `:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function be(e){let t="",n=0;const o=e.length;for(let r=0;r<o;r+=1){const s=e[r],c=li(s);c&&(t+=e.slice(n,r)+c,n=r+1)}return`"${n===0?e:t+e.slice(n)}"`}const Nt=-1,mo=-2,go=-3,yo=-4,wo=-5,Ct=-6;function bo(e,t){return ui(JSON.parse(e),t)}function ui(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function r(s,c=!1){if(s===Nt)return;if(s===go)return NaN;if(s===yo)return 1/0;if(s===wo)return-1/0;if(s===Ct)return-0;if(c)throw new Error("Invalid input");if(s in o)return o[s];const i=n[s];if(!i||typeof i!="object")o[s]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const l=i[0],d=t==null?void 0:t[l];if(d)return o[s]=d(r(i[1]));switch(l){case"Date":o[s]=new Date(i[1]);break;case"Set":const p=new Set;o[s]=p;for(let h=1;h<i.length;h+=1)p.add(r(i[h]));break;case"Map":const u=new Map;o[s]=u;for(let h=1;h<i.length;h+=2)u.set(r(i[h]),r(i[h+1]));break;case"RegExp":o[s]=new RegExp(i[1],i[2]);break;case"Object":o[s]=Object(i[1]);break;case"BigInt":o[s]=BigInt(i[1]);break;case"null":const f=Object.create(null);o[s]=f;for(let h=1;h<i.length;h+=2)f[i[h]]=r(i[h+1]);break;default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(i.length);o[s]=l;for(let d=0;d<i.length;d+=1){const p=i[d];p!==mo&&(l[d]=r(p))}}else{const l={};o[s]=l;for(const d in i){const p=i[d];l[d]=r(p)}}return o[s]}return r(0)}function vo(e,t){const n=[],o=new Map,r=[];for(const d in t)r.push({key:d,fn:t[d]});const s=[];let c=0;function i(d){if(typeof d=="function")throw new Ot("Cannot stringify a function",s);if(o.has(d))return o.get(d);if(d===void 0)return Nt;if(Number.isNaN(d))return go;if(d===1/0)return yo;if(d===-1/0)return wo;if(d===0&&1/d<0)return Ct;const p=c++;o.set(d,p);for(const{key:f,fn:h}of r){const g=h(d);if(g)return n[p]=`["${f}",${i(g)}]`,p}let u="";if(ho(d))u=It(d);else switch(ci(d)){case"Number":case"String":case"Boolean":u=`["Object",${It(d)}]`;break;case"BigInt":u=`["BigInt",${d}]`;break;case"Date":u=`["Date","${d.toISOString()}"]`;break;case"RegExp":const{source:f,flags:h}=d;u=h?`["RegExp",${be(f)},"${h}"]`:`["RegExp",${be(f)}]`;break;case"Array":u="[";for(let g=0;g<d.length;g+=1)g>0&&(u+=","),g in d?(s.push(`[${g}]`),u+=i(d[g]),s.pop()):u+=mo;u+="]";break;case"Set":u='["Set"';for(const g of d)u+=`,${i(g)}`;u+="]";break;case"Map":u='["Map"';for(const[g,y]of d)s.push(`.get(${ho(g)?It(g):"..."})`),u+=`,${i(g)},${i(y)}`;u+="]";break;default:if(!ii(d))throw new Ot("Cannot stringify arbitrary non-POJOs",s);if(Object.getOwnPropertySymbols(d).length>0)throw new Ot("Cannot stringify POJOs with symbolic keys",s);if(Object.getPrototypeOf(d)===null){u='["null"';for(const g in d)s.push(`.${g}`),u+=`,${be(g)},${i(d[g])}`,s.pop();u+="]"}else{u="{";let g=!1;for(const y in d)g&&(u+=","),g=!0,s.push(`.${y}`),u+=`${be(y)}:${i(d[y])}`,s.pop();u+="}"}}return n[p]=u,p}const l=i(e);return l<0?`${l}`:`[${n.join(",")}]`}function It(e){const t=typeof e;return t==="string"?be(e):e instanceof String?be(e.toString()):e===void 0?Nt.toString():e===0&&1/e<0?Ct.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function di(e,t,{initialize:n,type:o}){let r=`${t.$id}-${e.toString()}`,s=new xt(r,{type:o}),c=!1,i=0;a.watch(()=>t[e],p=>{c||(i=Date.now(),s.postMessage({timestamp:i,state:bo(vo(p))})),c=!1},{deep:!0}),s.onmessage=p=>{if(p===void 0){s.postMessage({timestamp:i,state:bo(vo(t[e]))});return}p.timestamp<=i||(c=!0,i=p.timestamp,t[e]=p.state)};let l=()=>s.postMessage(void 0),d=()=>s.close();return n&&l(),{sync:l,unshare:d}}var pi=(e,t)=>Object.keys(t).includes(e),fi=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:r})=>{var s,c;let i=((s=r==null?void 0:r.share)==null?void 0:s.enable)??t,l=((c=r==null?void 0:r.share)==null?void 0:c.omit)??[];!i||Object.keys(o.$state).forEach(d=>{var p;l.includes(d)||!pi(d,o.$state)||di(d,o,{initialize:((p=r==null?void 0:r.share)==null?void 0:p.initialize)??e,type:n})})};Vr().use(fi({enable:!0,initialize:!0}));const _o=a.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=mn(),o=a.ref([]);return a.watch(n,()=>{if(n.value){let r=t.value.schema.schema.toArray();r.forEach((s,c)=>{const l=t.value.store.record[s.fieldname];r[c].value=l}),o.value=r}}),(r,s)=>a.unref(n)?(a.openBlock(),a.createBlock(a.unref(ar),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=c=>o.value=c)},null,8,["modelValue"])):a.createCommentVNode("",!0)}});var hi=Object.defineProperty,mi=(e,t,n)=>t in e?hi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pe=(e,t,n)=>mi(e,typeof t!="symbol"?t+"":t,n);function Eo(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function Pt(e){return typeof e=="function"?e():a.unref(e)}const gi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yi=e=>e!=null,wi=Object.prototype.toString,bi=e=>wi.call(e)==="[object Object]",vi=()=>{};function Ie(e){var t;const n=Pt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ge=gi?window:void 0;function Dt(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Ge):[t,n,o,r]=e,!t)return vi;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],c=()=>{s.forEach(p=>p()),s.length=0},i=(p,u,f,h)=>(p.addEventListener(u,f,h),()=>p.removeEventListener(u,f,h)),l=a.watch(()=>[Ie(t),Pt(r)],([p,u])=>{if(c(),!p)return;const f=bi(u)?{...u}:u;s.push(...n.flatMap(h=>o.map(g=>i(p,h,g,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return Eo(d),d}function _i(){const e=a.ref(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function Ei(e){const t=_i();return a.computed(()=>(t.value,!!e()))}function ki(e,t,n={}){const{window:o=Ge,...r}=n;let s;const c=Ei(()=>o&&"MutationObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},l=a.computed(()=>{const f=Pt(e),h=(Array.isArray(f)?f:[f]).map(Ie).filter(yi);return new Set(h)}),d=a.watch(()=>l.value,f=>{i(),c.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,r)))},{immediate:!0,flush:"post"}),p=()=>s==null?void 0:s.takeRecords(),u=()=>{i(),d()};return Eo(u),{isSupported:c,stop:u,takeRecords:p}}function $i(e={}){var t;const{window:n=Ge,deep:o=!0,triggerOnRemoval:r=!1}=e,s=(t=e.document)!=null?t:n==null?void 0:n.document,c=()=>{var d;let p=s==null?void 0:s.activeElement;if(o)for(;p!=null&&p.shadowRoot;)p=(d=p==null?void 0:p.shadowRoot)==null?void 0:d.activeElement;return p},i=a.ref(),l=()=>{i.value=c()};return n&&(Dt(n,"blur",d=>{d.relatedTarget===null&&l()},!0),Dt(n,"focus",l,!0)),r&&ki(s,d=>{d.filter(p=>p.removedNodes.length).map(p=>Array.from(p.removedNodes)).flat().forEach(p=>{p===i.value&&l()})},{childList:!0,subtree:!0}),l(),i}function Si(e,t={}){const n=$i(t),o=a.computed(()=>Ie(e));return{focused:a.computed(()=>o.value&&n.value?o.value.contains(n.value):!1)}}function xi(e,{window:t=Ge,scrollTarget:n}={}){const o=a.ref(!1),r=()=>{if(!t)return;const s=t.document,c=Ie(e);if(!c)o.value=!1;else{const i=c.getBoundingClientRect();o.value=i.top<=(t.innerHeight||s.documentElement.clientHeight)&&i.left<=(t.innerWidth||s.documentElement.clientWidth)&&i.bottom>=0&&i.right>=0}};return a.watch(()=>Ie(e),()=>r(),{immediate:!0,flush:"post"}),t&&Dt(n||t,"scroll",r,{capture:!1,passive:!0}),o}const oe=e=>{let t=xi(e).value;return t=t&&e.offsetHeight>0,t},re=e=>e.tabIndex>=0,ko=e=>{const t=e.target;return Vt(t)},Vt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?Vt(n):n},Oi=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const s=r.firstElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const s=r.firstElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?At(o):o},$o=e=>{const t=e.target;return At(t)},At=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?At(n):n},Ni=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const s=r.lastElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const s=r.lastElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?Vt(o):o},So=e=>{const t=e.target;return Rt(t)},Rt=e=>{var t;let n;if(e.previousElementSibling)n=e.previousElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!re(n)||!oe(n))?Rt(n):n},xo=e=>{const t=e.target;return jt(t)},jt=e=>{var t;let n;if(e.nextElementSibling)n=e.nextElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!re(n)||!oe(n))?jt(n):n},Oo=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!re(t)||!oe(t))?jt(t):t},No=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!re(t)||!oe(t))?Rt(t):t},He=["alt","control","shift","meta"],Ci={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Tt={"keydown.up":e=>{const t=ko(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=$o(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=So(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=xo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Oi(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=Ni(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Oo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=No(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=No(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=$o(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=ko(e);t&&t.focus()}},"keydown.home":e=>{const t=Oo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=xo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=So(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Co(e){const t=c=>{let i=null;return c.parent&&(typeof c.parent=="string"?i=document.querySelector(c.parent):c.parent instanceof HTMLElement?i=c.parent:i=c.parent.value),i},n=c=>{const i=t(c);let l=[];if(typeof c.selectors=="string")l=i?Array.from(i.querySelectorAll(c.selectors)):Array.from(document.querySelectorAll(c.selectors));else if(Array.isArray(c.selectors))for(const d of c.selectors)d instanceof HTMLElement?l.push(d):l.push(d.$el);else if(c.selectors instanceof HTMLElement)l.push(c.selectors);else if(Array.isArray(c.selectors.value))for(const d of c.selectors.value)d instanceof HTMLElement?l.push(d):l.push(d.$el);else l.push(c.selectors.value);return l},o=c=>{const i=t(c);let l=[];return c.selectors?l=n(c):i&&(l=Array.from(i.children).filter(d=>re(d)&&oe(d))),l},r=c=>i=>{const l=Ci[i.key]||i.key.toLowerCase();if(He.includes(l))return;const d=c.handlers||Tt;for(const p of Object.keys(d)){const[u,...f]=p.split(".");if(u==="keydown"&&f.includes(l)){const h=d[p],g=f.filter($=>He.includes($)),y=He.some($=>{const C=$.charAt(0).toUpperCase()+$.slice(1);return i.getModifierState(C)});if(g.length>0){if(y){for(const $ of He)if(f.includes($)){const C=$.charAt(0).toUpperCase()+$.slice(1);i.getModifierState(C)&&h(i)}}}else y||h(i)}}},s=[];a.onMounted(()=>{for(const c of e){const i=t(c),l=o(c),d=r(c),p=i?[i]:l;for(const u of p){const{focused:f}=Si(a.ref(u)),h=a.watch(f,g=>{g?u.addEventListener("keydown",d):u.removeEventListener("keydown",d)});s.push(h)}}}),a.onBeforeUnmount(()=>{for(const c of s)c()})}const Ii=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],Pi={key:1},Di=a.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},tableid:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0}},setup(e){var t;const n=e,o=a.inject(n.tableid),r=a.ref(null),s=a.ref(""),c=a.ref(!1),i=a.computed(()=>{const y=o.cellData(n.colIndex,n.rowIndex);if(o.columns[n.colIndex].format){const $=o.columns[n.colIndex].format;return typeof $=="function"?$(y):typeof $=="string"?Function(`"use strict";return (${$})`)()(y):y}else return y}),l=()=>{if(o.columns[n.colIndex].mask,o.columns[n.colIndex].modalComponent){const y=r.value.getBoundingClientRect();o.modal.visible=!0,o.modal.colIndex=n.colIndex,o.modal.rowIndex=n.rowIndex,o.modal.parent=r.value,o.modal.top=y.top+y.height,o.modal.left=y.left,o.modal.width=p.value,o.modal.component=o.columns[n.colIndex].modalComponent,o.modal.componentProps=o.columns[n.colIndex].modalComponentProps}};if(n.addNavigation){let y={...Tt,"keydown.f2":l,"keydown.alt.up":l,"keydown.alt.down":l,"keydown.alt.left":l,"keydown.alt.right":l};typeof n.addNavigation=="object"&&(y={...y,...n.addNavigation}),Co([{selectors:r,handlers:y}])}const d=a.computed(()=>o.columns[n.colIndex].align||"center"),p=a.computed(()=>o.columns[n.colIndex].width||"40ch"),u=()=>{r.value&&(s.value=r.value.textContent)},f=()=>{r.value&&r.value.textContent!==s.value&&(s.value=r.value.textContent,r.value.dispatchEvent(new Event("change")),c.value=!0,o.columns[n.colIndex].format||o.setCellData(n.rowIndex,n.colIndex,s.value))},h=(y,$)=>$&&y===0&&$>0?`${$}ch`:"inherit",g={textAlign:d.value,width:p.value,backgroundColor:c.value?"var(--cell-modified-color)":"inherit",fontWeight:c.value?"bold":"inherit",paddingLeft:h(n.colIndex,(t=o.display[n.rowIndex])==null?void 0:t.indent)};return(y,$)=>(a.openBlock(),a.createElementBlock("td",{ref_key:"cell",ref:r,"data-colindex":y.colIndex,"data-rowindex":y.rowIndex,"data-editable":a.unref(o).columns[y.colIndex].edit,contenteditable:a.unref(o).columns[y.colIndex].edit,tabindex:y.tabIndex,spellcheck:!1,style:g,onFocus:u,onPaste:f,onBlur:f,onInput:f,onClick:l,onMousedown:l,class:"atable__cell"},[a.unref(o).columns[y.colIndex].cellComponent?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(o).columns[y.colIndex].cellComponent),a.mergeProps({key:0,value:i.value},a.unref(o).columns[y.colIndex].cellComponentProps),null,16,["value"])):(a.openBlock(),a.createElementBlock("span",Pi,a.toDisplayString(i.value),1))],40,Ii))}}),Vi=["tabindex"],Ai={key:0,tabIndex:-1,class:"list-index"},Ri=a.defineComponent({__name:"ARow",props:{row:{},rowIndex:{},tableid:{},tabIndex:{default:-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=e,n=a.inject(t.tableid),o=a.ref(null),r=a.computed(()=>n.config.view!=="tree"||n.display[t.rowIndex].isRoot||n.display[t.rowIndex].open),s=a.computed(()=>n.config.view!=="tree"?"":n.display[t.rowIndex].isRoot||n.display[t.rowIndex].isParent?n.display[t.rowIndex].childrenOpen?"-":"+":""),c=i=>{n.toggleRowExpand(i)};if(t.addNavigation){let i=Tt;typeof t.addNavigation=="object"&&(i={...i,...t.addNavigation}),Co([{selectors:o,handlers:i}])}return(i,l)=>a.withDirectives((a.openBlock(),a.createElementBlock("tr",{ref_key:"rowEl",ref:o,tabindex:i.tabIndex,class:"table-row"},[a.renderSlot(i.$slots,"index",{},()=>[a.unref(n).config.view==="list"?(a.openBlock(),a.createElementBlock("td",Ai,a.toDisplayString(i.rowIndex+1),1)):a.unref(n).config.view==="tree"?(a.openBlock(),a.createElementBlock("td",{key:1,tabIndex:-1,class:"tree-index",onClick:l[0]||(l[0]=d=>c(i.rowIndex))},a.toDisplayString(s.value),1)):a.createCommentVNode("",!0)]),a.renderSlot(i.$slots,"default")],8,Vi)),[[a.vShow,r.value]])}});function Io(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function Pe(e){return typeof e=="function"?e():a.unref(e)}const Po=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ji=Object.prototype.toString,Ti=e=>ji.call(e)==="[object Object]",De=()=>{},Bt=Bi();function Bi(){var e,t;return Po&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const Do={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Li(...e){if(e.length!==1)return a.toRef(...e);const t=e[0];return typeof t=="function"?a.readonly(a.customRef(()=>({get:t,set:De}))):a.ref(t)}function Ve(e){var t;const n=Pe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Vo=Po?window:void 0;function Je(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Vo):[t,n,o,r]=e,!t)return De;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],c=()=>{s.forEach(p=>p()),s.length=0},i=(p,u,f,h)=>(p.addEventListener(u,f,h),()=>p.removeEventListener(u,f,h)),l=a.watch(()=>[Ve(t),Pe(r)],([p,u])=>{if(c(),!p)return;const f=Ti(u)?{...u}:u;s.push(...n.flatMap(h=>o.map(g=>i(p,h,g,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return Io(d),d}let Ao=!1;function Ro(e,t,n={}){const{window:o=Vo,ignore:r=[],capture:s=!0,detectIframe:c=!1}=n;if(!o)return De;Bt&&!Ao&&(Ao=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",De)),o.document.documentElement.addEventListener("click",De));let i=!0;const l=p=>r.some(u=>{if(typeof u=="string")return Array.from(o.document.querySelectorAll(u)).some(f=>f===p.target||p.composedPath().includes(f));{const f=Ve(u);return f&&(p.target===f||p.composedPath().includes(f))}}),d=[Je(o,"click",p=>{const u=Ve(e);if(!(!u||u===p.target||p.composedPath().includes(u))){if(p.detail===0&&(i=!l(p)),!i){i=!0;return}t(p)}},{passive:!0,capture:s}),Je(o,"pointerdown",p=>{const u=Ve(e);i=!l(p)&&!!(u&&!p.composedPath().includes(u))},{passive:!0}),c&&Je(o,"blur",p=>{setTimeout(()=>{var u;const f=Ve(e);((u=o.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>d.forEach(p=>p())}const Mi={[Do.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Ro(e,t.value,{capture:n});else{const[o,r]=t.value;e.__onClickOutside_stop=Ro(e,o,Object.assign({capture:n},r))}},[Do.unmounted](e){e.__onClickOutside_stop()}};function Lt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function jo(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:jo(n)}}function Ui(e){const t=e||window.event,n=t.target;return jo(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Mt=new WeakMap;function Wi(e,t=!1){const n=a.ref(t);let o=null,r="";a.watch(Li(e),i=>{const l=Lt(Pe(i));if(l){const d=l;if(Mt.get(d)||Mt.set(d,d.style.overflow),d.style.overflow!=="hidden"&&(r=d.style.overflow),d.style.overflow==="hidden")return n.value=!0;if(n.value)return d.style.overflow="hidden"}},{immediate:!0});const s=()=>{const i=Lt(Pe(e));!i||n.value||(Bt&&(o=Je(i,"touchmove",l=>{Ui(l)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},c=()=>{const i=Lt(Pe(e));!i||!n.value||(Bt&&(o==null||o()),i.style.overflow=r,Mt.delete(i),n.value=!1)};return Io(c),a.computed({get(){return n.value},set(i){i?s():c()}})}function Fi(){let e=!1;const t=a.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=Wi(n,o.value);a.watch(t,s=>r.value=s)}}Fi();for(var T=[],Ut=0;Ut<256;++Ut)T.push((Ut+256).toString(16).slice(1));function zi(e,t=0){return(T[e[t+0]]+T[e[t+1]]+T[e[t+2]]+T[e[t+3]]+"-"+T[e[t+4]]+T[e[t+5]]+"-"+T[e[t+6]]+T[e[t+7]]+"-"+T[e[t+8]]+T[e[t+9]]+"-"+T[e[t+10]]+T[e[t+11]]+T[e[t+12]]+T[e[t+13]]+T[e[t+14]]+T[e[t+15]]).toLowerCase()}var Ke,qi=new Uint8Array(16);function Gi(){if(!Ke&&(Ke=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ke))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ke(qi)}var Hi=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const To={randomUUID:Hi};function Ji(e,t,n){if(To.randomUUID&&!t&&!e)return To.randomUUID();e=e||{};var o=e.random||(e.rng||Gi)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=o[r];return t}return zi(o)}class Ki{constructor(t,n,o,r,s,c){pe(this,"id"),pe(this,"rows"),pe(this,"columns"),pe(this,"config"),pe(this,"table"),pe(this,"display"),pe(this,"modal"),this.id=t||Ji(),this.rows=o,this.columns=a.reactive(n),this.config=a.reactive(r),this.table=s||a.reactive(this.createTableObject()),this.display=this.createDisplayObject(c),this.modal=a.reactive({visible:!1})}createTableObject(){const t={};for(const[n,o]of this.columns.entries())for(const[r,s]of this.rows.entries())t[`${n}:${r}`]=s[o.name];return t}createDisplayObject(t){const n=[Object.assign({},{modified:!1})];if(t&&"0:0"in t)return t;const o=new Set;for(let r=this.rows.length-1;r>=0;r--){const s=this.rows[r];s.parent&&o.add(s.parent),n[r]={childrenOpen:!1,expanded:!1,indent:s.indent||null,isParent:o.has(r),isRoot:s.parent===null||s.parent===void 0,modified:!1,open:s.parent===null||s.parent===void 0,parent:s.parent}}return a.reactive(n)}get zeroColumn(){return["list","tree","list-expansion"].includes(this.config.view)}get numberedRowWidth(){return a.computed(()=>String(Math.ceil(this.rows.length/100)+1)+"ch")}cellData(t,n){return this.table[`${t}:${n}`]}setCellData(t,n,o){this.table[`${n}:${t}`]!==o&&(this.display[t].modified=!0),this.table[`${n}:${t}`]=o;const r=this.columns[n];return this.rows[t][r.name]=o,this.table[`${n}:${t}`]}toggleRowExpand(t){if(this.config.view==="tree"){this.display[t].childrenOpen=!this.display[t].childrenOpen;for(let n=this.rows.length-1;n>=0;n--)this.display[n].parent===t&&(this.display[n].open=!this.display[n].open,this.display[n].childrenOpen&&this.toggleRowExpand(n))}else this.config.view==="list-expansion"&&(this.display[t].expanded=!this.display[t].expanded)}}const Qi={key:0,id:"resizable"},Yi={class:"atable-header-row",tabindex:"-1"},Xi={key:0,id:"header-index"},Zi=a.defineComponent({__name:"ATableHeader",props:{columns:{},config:{},tableid:{}},setup(e){const t=a.inject(e.tableid),n=o=>({minWidth:o.width||"40ch",textAlign:o.align||"center",width:t.config.fullWidth?"auto":null});return(o,r)=>o.columns.length?(a.openBlock(),a.createElementBlock("thead",Qi,[a.createElementVNode("tr",Yi,[a.unref(t).zeroColumn?(a.openBlock(),a.createElementBlock("th",Xi)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.columns,(s,c)=>(a.openBlock(),a.createElementBlock("th",{key:s.name,tabindex:"-1",style:a.normalizeStyle(n(s))},[a.renderSlot(o.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(s.label||String.fromCharCode(c+97).toUpperCase()),1)])],4))),128))])])):a.createCommentVNode("",!0)}}),ec=a.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},tableid:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(a.openBlock(),a.createElementBlock("div",{ref:"amodal",class:"amodal",tabindex:"-1",onClick:t,onInput:t},[a.renderSlot(n.$slots,"default")],544))}}),tc=a.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object},tableid:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t;let r=n.modelValue?n.modelValue:n.rows,s=new Ki(n.id,n.columns,r,n.config);a.provide(s.id,s),a.watch(()=>s.rows,i=>{o("update:modelValue",i)},{deep:!0});const c=i=>{var l;i.target instanceof Node&&(l=s.modal.parent)!=null&&l.contains(i.target)||s.modal.visible&&(s.modal.visible=!1)};return window.addEventListener("keydown",i=>{if(i.key==="Escape"&&s.modal.visible){s.modal.visible=!1;const l=s.modal.parent;l&&a.nextTick().then(()=>{l.focus()})}}),(i,l)=>a.withDirectives((a.openBlock(),a.createElementBlock("table",{class:"atable",style:a.normalizeStyle({width:a.unref(s).config.fullWidth?"100%":"auto"})},[a.renderSlot(i.$slots,"header",{data:a.unref(s)},()=>[a.createVNode(Zi,{columns:a.unref(s).columns,config:a.unref(s).config,tableid:a.unref(s).id},null,8,["columns","config","tableid"])]),a.createElementVNode("tbody",null,[a.renderSlot(i.$slots,"body",{data:a.unref(s)},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s).rows,(d,p)=>(a.openBlock(),a.createBlock(Ri,{key:d.id,row:d,rowIndex:p,tableid:a.unref(s).id},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s).columns,(u,f)=>(a.openBlock(),a.createBlock(Di,{key:u.name,tableid:a.unref(s).id,col:u,spellcheck:"false",rowIndex:p,colIndex:f+(a.unref(s).zeroColumn?0:-1),component:u.cellComponent,style:a.normalizeStyle({textAlign:(u==null?void 0:u.align)||"center",minWidth:(u==null?void 0:u.width)||"40ch",width:a.unref(s).config.fullWidth?"auto":null})},null,8,["tableid","col","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","tableid"]))),128))])]),a.renderSlot(i.$slots,"footer",{data:a.unref(s)}),a.renderSlot(i.$slots,"modal",{data:a.unref(s)},()=>[a.withDirectives(a.createVNode(ec,{colIndex:a.unref(s).modal.colIndex,rowIndex:a.unref(s).modal.rowIndex,tableid:a.unref(s).id,style:a.normalizeStyle({left:a.unref(s).modal.left+"px",top:a.unref(s).modal.top+"px",maxWidth:a.unref(s).modal.width+"px"})},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(s).modal.component),a.mergeProps({key:`${a.unref(s).modal.rowIndex}:${a.unref(s).modal.colIndex}`,colIndex:a.unref(s).modal.colIndex,rowIndex:a.unref(s).modal.rowIndex,tableid:a.unref(s).id},a.unref(s).modal.componentProps),null,16,["colIndex","rowIndex","tableid"]))]),_:1},8,["colIndex","rowIndex","tableid","style"]),[[a.vShow,a.unref(s).modal.visible]])])],4)),[[a.unref(Mi),c]])}}),Bo=a.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=mn(),o={view:"list"};return(r,s)=>a.unref(n)?(a.openBlock(),a.createBlock(a.unref(tc),{key:0,columns:a.unref(t).schema.schema.toArray(),rows:a.unref(t).store.records,config:o},null,8,["columns","rows"])):a.createCommentVNode("",!0)}}),Lo=e=>(a.pushScopeId("data-v-4f7a2d32"),e=e(),a.popScopeId(),e),nc={class:"tabs"},oc={tabindex:"0"},rc={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 424.098 424.098",style:{"enable-background":"new 0 0 424.098 424.098"},"xml:space":"preserve"},ac=[Lo(()=>a.createElementVNode("g",null,[a.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
40
+ when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return P({query:m.query,hash:m.hash,params:E.path!=null?{}:m.params},E)}}function k(m,b){const w=d=I(m),E=l.value,D=m.state,R=m.force,C=m.replace===!0,O=K(w);if(O)return k(P(x(O),{state:typeof O=="object"?P({},D,O.state):D,force:R,replace:C}),b||w);const A=w;A.redirectedFrom=b;let fe;return!R&&En(o,E,w)&&(fe=ye(16,{to:A,from:E}),Uo(E,E,!0,!1)),(fe?Promise.resolve(fe):v(A,E)).catch(W=>te(W)?te(W,2)?W:zt(W):Ft(W,A,E)).then(W=>{if(W){if(te(W,2))return process.env.NODE_ENV!=="production"&&En(o,I(W.to),A)&&b&&(b._count=b._count?b._count+1:1)>30?(S(`Detected a possibly infinite redirection in a navigation guard when going from "${E.fullPath}" to "${A.fullPath}". Aborting to avoid a Stack Overflow.
41
+ Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):k(P({replace:C},x(W.to),{state:typeof W.to=="object"?P({},D,W.to.state):D,force:R}),b||A)}else W=F(A,E,!0,C,D);return V(A,E,W),W})}function X(m,b){const w=N(m,b);return w?Promise.reject(w):Promise.resolve()}function _(m){const b=Ye.values().next().value;return b&&typeof b.runWithContext=="function"?b.runWithContext(m):m()}function v(m,b){let w;const[E,D,R]=as(m,b);w=bt(E.reverse(),"beforeRouteLeave",m,b);for(const O of E)O.leaveGuards.forEach(A=>{w.push(ce(A,m,b))});const C=X.bind(null,m,b);return w.push(C),ve(w).then(()=>{w=[];for(const O of s.list())w.push(ce(O,m,b));return w.push(C),ve(w)}).then(()=>{w=bt(D,"beforeRouteUpdate",m,b);for(const O of D)O.updateGuards.forEach(A=>{w.push(ce(A,m,b))});return w.push(C),ve(w)}).then(()=>{w=[];for(const O of R)if(O.beforeEnter)if(z(O.beforeEnter))for(const A of O.beforeEnter)w.push(ce(A,m,b));else w.push(ce(O.beforeEnter,m,b));return w.push(C),ve(w)}).then(()=>(m.matched.forEach(O=>O.enterCallbacks={}),w=bt(R,"beforeRouteEnter",m,b,_),w.push(C),ve(w))).then(()=>{w=[];for(const O of c.list())w.push(ce(O,m,b));return w.push(C),ve(w)}).catch(O=>te(O,8)?O:Promise.reject(O))}function V(m,b,w){i.list().forEach(E=>_(()=>E(m,b,w)))}function F(m,b,w,E,D){const R=N(m,b);if(R)return R;const C=b===ie,O=ee?history.state:{};w&&(E||C?r.replace(m.fullPath,P({scroll:C&&O&&O.scroll},D)):r.push(m.fullPath,D)),l.value=m,Uo(m,b,w,C),zt()}let Y;function Wt(){Y||(Y=r.listen((m,b,w)=>{const E=I(m),D=K(E);if(D){k(P(D,{replace:!0}),E).catch(Se);return}d=E;const R=l.value;ee&&la(Sn(R.fullPath,w.delta),Ue()),v(E,R).catch(C=>te(C,12)?C:te(C,2)?(k(C.to,E).then(O=>{te(O,20)&&!w.delta&&w.type===xe.pop&&r.go(-1,!1)}).catch(Se),Promise.reject()):(w.delta&&r.go(-w.delta,!1),Ft(C,E,R))).then(C=>{C=C||F(E,R,!1),C&&(w.delta&&!te(C,8)?r.go(-w.delta,!1):w.type===xe.pop&&te(C,20)&&r.go(-1,!1)),V(E,R,C)}).catch(Se)}))}let Ae=Ne(),le=Ne(),L;function Ft(m,b,w){zt(m);const E=le.list();return E.length?E.forEach(D=>D(m,b,w)):(process.env.NODE_ENV!=="production"&&S("uncaught error during route navigation:"),console.error(m)),Promise.reject(m)}function uc(){return L&&l.value!==ie?Promise.resolve():new Promise((m,b)=>{Ae.add([m,b])})}function zt(m){return L||(L=!m,Wt(),Ae.list().forEach(([b,w])=>m?w(m):b()),Ae.reset()),m}function Uo(m,b,w,E){const{scrollBehavior:D}=e;if(!ee||!D)return Promise.resolve();const R=!w&&ua(Sn(m.fullPath,0))||(E||!w)&&history.state&&history.state.scroll||null;return a.nextTick().then(()=>D(m,b,R)).then(C=>C&&ca(C)).catch(C=>Ft(C,m,b))}const qt=m=>r.go(m);let Gt;const Ye=new Set,dc={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:$,getRoutes:y,resolve:I,options:e,push:B,replace:U,go:qt,back:()=>qt(-1),forward:()=>qt(1),beforeEach:s.add,beforeResolve:c.add,afterEach:i.add,onError:le.add,isReady:uc,install(m){const b=this;m.component("RouterLink",Ua),m.component("RouterView",qa),m.config.globalProperties.$router=b,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>a.unref(l)}),ee&&!Gt&&l.value===ie&&(Gt=!0,B(r.location).catch(D=>{process.env.NODE_ENV!=="production"&&S("Unexpected error when starting the router:",D)}));const w={};for(const D in ie)Object.defineProperty(w,D,{get:()=>l.value[D],enumerable:!0});m.provide(yt,b),m.provide(Ln,a.shallowReactive(w)),m.provide(wt,l);const E=m.unmount;Ye.add(m),m.unmount=function(){Ye.delete(m),Ye.size<1&&(d=ie,Y&&Y(),Y=null,l.value=ie,Gt=!1,L=!1),E()},process.env.NODE_ENV!=="production"&&ee&&Ja(m,b,t)}};function ve(m){return m.reduce((b,w)=>b.then(()=>_(w)),Promise.resolve())}return dc}function as(e,t){const n=[],o=[],r=[],s=Math.max(t.matched.length,e.matched.length);for(let c=0;c<s;c++){const i=t.matched[c];i&&(e.matched.find(d=>se(d,i))?o.push(i):n.push(i));const l=e.matched[c];l&&(t.matched.find(d=>se(d,l))||r.push(l))}return[n,o,r]}rs({history:ha(),routes:[]});function ss(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var we=Promise.resolve();function Qn(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function is(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function _t(){return Math.random().toString(36).substring(2)}var Xn=0,Et=0;function ze(){var e=new Date().getTime();return e===Xn?(Et++,e*1e3+Et):(Xn=e,Et=0,e*1e3)}var cs=ze,ls="native";function us(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function ds(e){e.bc.close(),e.subFns=[]}function ps(e,t){try{return e.bc.postMessage(t,!1),we}catch(n){return Promise.reject(n)}}function fs(e,t){e.messagesCallback=t}function hs(){if(typeof window>"u")return!1;if(typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function ms(){return 150}var gs={create:us,close:ds,onMessage:fs,postMessage:ps,canBeUsed:hs,type:ls,averageResponseTime:ms,microSeconds:cs},Zn=function(){function e(t){this.ttl=t,this.map=new Map,this._to=!1}return e.prototype.has=function(t){return this.map.has(t)},e.prototype.add=function(t){var n=this;this.map.set(t,eo()),this._to||(this._to=!0,setTimeout(function(){n._to=!1,ys(n)},0))},e.prototype.clear=function(){this.map.clear()},e}();function ys(e){for(var t=eo()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var r=o[0],s=o[1];if(s<t)e.map.delete(r);else return}}function eo(){return new Date().getTime()}function kt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var ws=ze,bs="pubkey.broadcast-channel-0-",ne="messages",qe={durability:"relaxed"},vs="idb";function to(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function $t(e){e.commit&&e.commit()}function _s(e){var t=to(),n=bs+e,o=t.open(n);return o.onupgradeneeded=function(r){var s=r.target.result;s.createObjectStore(ne,{keyPath:"id",autoIncrement:!0})},new Promise(function(r,s){o.onerror=function(c){return s(c)},o.onsuccess=function(){r(o.result)}})}function Es(e,t,n){var o=new Date().getTime(),r={uuid:t,time:o,data:n},s=e.transaction([ne],"readwrite",qe);return new Promise(function(c,i){s.oncomplete=function(){return c()},s.onerror=function(d){return i(d)};var l=s.objectStore(ne);l.add(r),$t(s)})}function ks(e,t){var n=e.transaction(ne,"readonly",qe),o=n.objectStore(ne),r=[],s=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var c=o.getAll(s);return new Promise(function(l,d){c.onerror=function(p){return d(p)},c.onsuccess=function(p){l(p.target.result)}})}function i(){try{return s=IDBKeyRange.bound(t+1,1/0),o.openCursor(s)}catch{return o.openCursor()}}return new Promise(function(l,d){var p=i();p.onerror=function(u){return d(u)},p.onsuccess=function(u){var f=u.target.result;f?f.value.id<t+1?f.continue(t+1):(r.push(f.value),f.continue()):($t(n),l(r))}})}function $s(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(ne,"readwrite",qe),o=n.objectStore(ne);return Promise.all(t.map(function(r){var s=o.delete(r);return new Promise(function(c){s.onsuccess=function(){return c()}})}))}function Ss(e,t){var n=new Date().getTime()-t,o=e.transaction(ne,"readonly",qe),r=o.objectStore(ne),s=[];return new Promise(function(c){r.openCursor().onsuccess=function(i){var l=i.target.result;if(l){var d=l.value;d.time<n?(s.push(d),l.continue()):($t(o),c(s))}else c(s)}})}function xs(e){return Ss(e.db,e.options.idb.ttl).then(function(t){return $s(e,t.map(function(n){return n.id}))})}function Os(e,t){return t=kt(t),_s(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:_t(),eMIs:new Zn(t.idb.ttl*2),writeBlockPromise:we,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},no(o),o})}function no(e){e.closed||oo(e).then(function(){return Qn(e.options.idb.fallbackInterval)}).then(function(){return no(e)})}function Ns(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function oo(e){return e.closed||!e.messagesCallback?we:ks(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(o){return!!o}).map(function(o){return o.id>e.lastCursorId&&(e.lastCursorId=o.id),o}).filter(function(o){return Ns(o,e)}).sort(function(o,r){return o.time-r.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),we})}function Cs(e){e.closed=!0,e.db.close()}function Is(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return Es(e.db,e.uuid,t)}).then(function(){is(0,10)===0&&xs(e)}),e.writeBlockPromise}function Ps(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,oo(e)}function Ds(){return!!to()}function Vs(e){return e.idb.fallbackInterval*2}var As={create:Os,close:Cs,onMessage:Ps,postMessage:Is,canBeUsed:Ds,type:vs,averageResponseTime:Vs,microSeconds:ws},Rs=ze,js="pubkey.broadcastChannel-",Ts="localstorage";function ro(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function ao(e){return js+e}function Bs(e,t){return new Promise(function(n){Qn().then(function(){var o=ao(e.channelName),r={token:_t(),time:new Date().getTime(),data:t,uuid:e.uuid},s=JSON.stringify(r);ro().setItem(o,s);var c=document.createEvent("Event");c.initEvent("storage",!0,!0),c.key=o,c.newValue=s,window.dispatchEvent(c),n()})})}function Ls(e,t){var n=ao(e),o=function(r){r.key===n&&t(JSON.parse(r.newValue))};return window.addEventListener("storage",o),o}function Ms(e){window.removeEventListener("storage",e)}function Us(e,t){if(t=kt(t),!so())throw new Error("BroadcastChannel: localstorage cannot be used");var n=_t(),o=new Zn(t.localstorage.removeTimeout),r={channelName:e,uuid:n,eMIs:o};return r.listener=Ls(e,function(s){r.messagesCallback&&s.uuid!==n&&(!s.token||o.has(s.token)||s.data.time&&s.data.time<r.messagesCallbackTime||(o.add(s.token),r.messagesCallback(s.data)))}),r}function Ws(e){Ms(e.listener)}function Fs(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function so(){var e=ro();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function zs(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var qs={create:Us,close:Ws,onMessage:Fs,postMessage:Bs,canBeUsed:so,type:Ts,averageResponseTime:zs,microSeconds:Rs},Gs=ze,Hs="simulate",St=new Set;function Js(e){var t={name:e,messagesCallback:null};return St.add(t),t}function Ks(e){St.delete(e)}function Ys(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(St);o.filter(function(r){return r.name===e.name}).filter(function(r){return r!==e}).filter(function(r){return!!r.messagesCallback}).forEach(function(r){return r.messagesCallback(t)}),n()},5)})}function Qs(e,t){e.messagesCallback=t}function Xs(){return!0}function Zs(){return 5}var ei={create:Js,close:Ks,onMessage:Qs,postMessage:Ys,canBeUsed:Xs,type:Hs,averageResponseTime:Zs,microSeconds:Gs},io=[gs,As,qs];function ti(e){var t=[].concat(e.methods,io).filter(Boolean);if(e.type){if(e.type==="simulate")return ei;var n=t.find(function(r){return r.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(r){return r.type!=="idb"}));var o=t.find(function(r){return r.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(io.map(function(r){return r.type})))}var co=new Set,ni=0,xt=function(e,t){this.id=ni++,co.add(this),this.name=e,this.options=kt(t),this.method=ti(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,oi(this)};xt._pubkey=!0,xt.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return lo(this,"message",e)},postInternal:function(e){return lo(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};fo(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,po(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};po(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});fo(this,e,n)},close:function(){var e=this;if(!this.closed){co.delete(this),this.closed=!0;var t=this._prepP?this._prepP:we;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function lo(e,t,n){var o=e.method.microSeconds(),r={time:o,type:t,data:n},s=e._prepP?e._prepP:we;return s.then(function(){var c=e.method.postMessage(e._state,r);return e._uMP.add(c),c.catch().then(function(){return e._uMP.delete(c)}),c})}function oi(e){var t=e.method.create(e.name,e.options);ss(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function uo(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function po(e,t,n){e._addEL[t].push(n),ri(e)}function fo(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),ai(e)}function ri(e){if(!e._iL&&uo(e)){var t=function(o){e._addEL[o.type].forEach(function(r){var s=1e5,c=r.time-s;o.time>=c&&r.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function ai(e){if(e._iL&&!uo(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}let Ot=class extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}};function ho(e){return Object(e)!==e}const si=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ii(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===si}function ci(e){return Object.prototype.toString.call(e).slice(8,-1)}function li(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
42
+ `:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function be(e){let t="",n=0;const o=e.length;for(let r=0;r<o;r+=1){const s=e[r],c=li(s);c&&(t+=e.slice(n,r)+c,n=r+1)}return`"${n===0?e:t+e.slice(n)}"`}const Nt=-1,mo=-2,go=-3,yo=-4,wo=-5,Ct=-6;function bo(e,t){return ui(JSON.parse(e),t)}function ui(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function r(s,c=!1){if(s===Nt)return;if(s===go)return NaN;if(s===yo)return 1/0;if(s===wo)return-1/0;if(s===Ct)return-0;if(c)throw new Error("Invalid input");if(s in o)return o[s];const i=n[s];if(!i||typeof i!="object")o[s]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const l=i[0],d=t==null?void 0:t[l];if(d)return o[s]=d(r(i[1]));switch(l){case"Date":o[s]=new Date(i[1]);break;case"Set":const p=new Set;o[s]=p;for(let h=1;h<i.length;h+=1)p.add(r(i[h]));break;case"Map":const u=new Map;o[s]=u;for(let h=1;h<i.length;h+=2)u.set(r(i[h]),r(i[h+1]));break;case"RegExp":o[s]=new RegExp(i[1],i[2]);break;case"Object":o[s]=Object(i[1]);break;case"BigInt":o[s]=BigInt(i[1]);break;case"null":const f=Object.create(null);o[s]=f;for(let h=1;h<i.length;h+=2)f[i[h]]=r(i[h+1]);break;default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(i.length);o[s]=l;for(let d=0;d<i.length;d+=1){const p=i[d];p!==mo&&(l[d]=r(p))}}else{const l={};o[s]=l;for(const d in i){const p=i[d];l[d]=r(p)}}return o[s]}return r(0)}function vo(e,t){const n=[],o=new Map,r=[];for(const d in t)r.push({key:d,fn:t[d]});const s=[];let c=0;function i(d){if(typeof d=="function")throw new Ot("Cannot stringify a function",s);if(o.has(d))return o.get(d);if(d===void 0)return Nt;if(Number.isNaN(d))return go;if(d===1/0)return yo;if(d===-1/0)return wo;if(d===0&&1/d<0)return Ct;const p=c++;o.set(d,p);for(const{key:f,fn:h}of r){const g=h(d);if(g)return n[p]=`["${f}",${i(g)}]`,p}let u="";if(ho(d))u=It(d);else switch(ci(d)){case"Number":case"String":case"Boolean":u=`["Object",${It(d)}]`;break;case"BigInt":u=`["BigInt",${d}]`;break;case"Date":u=`["Date","${d.toISOString()}"]`;break;case"RegExp":const{source:f,flags:h}=d;u=h?`["RegExp",${be(f)},"${h}"]`:`["RegExp",${be(f)}]`;break;case"Array":u="[";for(let g=0;g<d.length;g+=1)g>0&&(u+=","),g in d?(s.push(`[${g}]`),u+=i(d[g]),s.pop()):u+=mo;u+="]";break;case"Set":u='["Set"';for(const g of d)u+=`,${i(g)}`;u+="]";break;case"Map":u='["Map"';for(const[g,y]of d)s.push(`.get(${ho(g)?It(g):"..."})`),u+=`,${i(g)},${i(y)}`;u+="]";break;default:if(!ii(d))throw new Ot("Cannot stringify arbitrary non-POJOs",s);if(Object.getOwnPropertySymbols(d).length>0)throw new Ot("Cannot stringify POJOs with symbolic keys",s);if(Object.getPrototypeOf(d)===null){u='["null"';for(const g in d)s.push(`.${g}`),u+=`,${be(g)},${i(d[g])}`,s.pop();u+="]"}else{u="{";let g=!1;for(const y in d)g&&(u+=","),g=!0,s.push(`.${y}`),u+=`${be(y)}:${i(d[y])}`,s.pop();u+="}"}}return n[p]=u,p}const l=i(e);return l<0?`${l}`:`[${n.join(",")}]`}function It(e){const t=typeof e;return t==="string"?be(e):e instanceof String?be(e.toString()):e===void 0?Nt.toString():e===0&&1/e<0?Ct.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function di(e,t,{initialize:n,type:o}){let r=`${t.$id}-${e.toString()}`,s=new xt(r,{type:o}),c=!1,i=0;a.watch(()=>t[e],p=>{c||(i=Date.now(),s.postMessage({timestamp:i,state:bo(vo(p))})),c=!1},{deep:!0}),s.onmessage=p=>{if(p===void 0){s.postMessage({timestamp:i,state:bo(vo(t[e]))});return}p.timestamp<=i||(c=!0,i=p.timestamp,t[e]=p.state)};let l=()=>s.postMessage(void 0),d=()=>s.close();return n&&l(),{sync:l,unshare:d}}var pi=(e,t)=>Object.keys(t).includes(e),fi=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:r})=>{var s,c;let i=((s=r==null?void 0:r.share)==null?void 0:s.enable)??t,l=((c=r==null?void 0:r.share)==null?void 0:c.omit)??[];!i||Object.keys(o.$state).forEach(d=>{var p;l.includes(d)||!pi(d,o.$state)||di(d,o,{initialize:((p=r==null?void 0:r.share)==null?void 0:p.initialize)??e,type:n})})};Vr().use(fi({enable:!0,initialize:!0}));const _o=a.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=mn(),o=a.ref([]);return a.watch(n,()=>{if(n.value){let r=t.value.schema.schema.toArray();r.forEach((s,c)=>{const l=t.value.store.record[s.fieldname];r[c].value=l}),o.value=r}}),(r,s)=>a.unref(n)?(a.openBlock(),a.createBlock(a.unref(ar),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=c=>o.value=c)},null,8,["modelValue"])):a.createCommentVNode("",!0)}});var hi=Object.defineProperty,mi=(e,t,n)=>t in e?hi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pe=(e,t,n)=>mi(e,typeof t!="symbol"?t+"":t,n);function Eo(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function Pt(e){return typeof e=="function"?e():a.unref(e)}const gi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yi=e=>e!=null,wi=Object.prototype.toString,bi=e=>wi.call(e)==="[object Object]",vi=()=>{};function Ie(e){var t;const n=Pt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ge=gi?window:void 0;function Dt(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Ge):[t,n,o,r]=e,!t)return vi;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],c=()=>{s.forEach(p=>p()),s.length=0},i=(p,u,f,h)=>(p.addEventListener(u,f,h),()=>p.removeEventListener(u,f,h)),l=a.watch(()=>[Ie(t),Pt(r)],([p,u])=>{if(c(),!p)return;const f=bi(u)?{...u}:u;s.push(...n.flatMap(h=>o.map(g=>i(p,h,g,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return Eo(d),d}function _i(){const e=a.ref(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function Ei(e){const t=_i();return a.computed(()=>(t.value,!!e()))}function ki(e,t,n={}){const{window:o=Ge,...r}=n;let s;const c=Ei(()=>o&&"MutationObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},l=a.computed(()=>{const f=Pt(e),h=(Array.isArray(f)?f:[f]).map(Ie).filter(yi);return new Set(h)}),d=a.watch(()=>l.value,f=>{i(),c.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,r)))},{immediate:!0,flush:"post"}),p=()=>s==null?void 0:s.takeRecords(),u=()=>{i(),d()};return Eo(u),{isSupported:c,stop:u,takeRecords:p}}function $i(e={}){var t;const{window:n=Ge,deep:o=!0,triggerOnRemoval:r=!1}=e,s=(t=e.document)!=null?t:n==null?void 0:n.document,c=()=>{var d;let p=s==null?void 0:s.activeElement;if(o)for(;p!=null&&p.shadowRoot;)p=(d=p==null?void 0:p.shadowRoot)==null?void 0:d.activeElement;return p},i=a.ref(),l=()=>{i.value=c()};return n&&(Dt(n,"blur",d=>{d.relatedTarget===null&&l()},!0),Dt(n,"focus",l,!0)),r&&ki(s,d=>{d.filter(p=>p.removedNodes.length).map(p=>Array.from(p.removedNodes)).flat().forEach(p=>{p===i.value&&l()})},{childList:!0,subtree:!0}),l(),i}function Si(e,t={}){const n=$i(t),o=a.computed(()=>Ie(e));return{focused:a.computed(()=>o.value&&n.value?o.value.contains(n.value):!1)}}function xi(e,{window:t=Ge,scrollTarget:n}={}){const o=a.ref(!1),r=()=>{if(!t)return;const s=t.document,c=Ie(e);if(!c)o.value=!1;else{const i=c.getBoundingClientRect();o.value=i.top<=(t.innerHeight||s.documentElement.clientHeight)&&i.left<=(t.innerWidth||s.documentElement.clientWidth)&&i.bottom>=0&&i.right>=0}};return a.watch(()=>Ie(e),()=>r(),{immediate:!0,flush:"post"}),t&&Dt(n||t,"scroll",r,{capture:!1,passive:!0}),o}const oe=e=>{let t=xi(e).value;return t=t&&e.offsetHeight>0,t},re=e=>e.tabIndex>=0,ko=e=>{const t=e.target;return Vt(t)},Vt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?Vt(n):n},Oi=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const s=r.firstElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const s=r.firstElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?At(o):o},$o=e=>{const t=e.target;return At(t)},At=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?At(n):n},Ni=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const s=r.lastElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const s=r.lastElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?Vt(o):o},So=e=>{const t=e.target;return Rt(t)},Rt=e=>{var t;let n;if(e.previousElementSibling)n=e.previousElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!re(n)||!oe(n))?Rt(n):n},xo=e=>{const t=e.target;return jt(t)},jt=e=>{var t;let n;if(e.nextElementSibling)n=e.nextElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!re(n)||!oe(n))?jt(n):n},Oo=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!re(t)||!oe(t))?jt(t):t},No=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!re(t)||!oe(t))?Rt(t):t},He=["alt","control","shift","meta"],Ci={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Tt={"keydown.up":e=>{const t=ko(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=$o(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=So(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=xo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Oi(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=Ni(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Oo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=No(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=No(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=$o(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=ko(e);t&&t.focus()}},"keydown.home":e=>{const t=Oo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=xo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=So(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Co(e){const t=c=>{let i=null;return c.parent&&(typeof c.parent=="string"?i=document.querySelector(c.parent):c.parent instanceof HTMLElement?i=c.parent:i=c.parent.value),i},n=c=>{const i=t(c);let l=[];if(typeof c.selectors=="string")l=i?Array.from(i.querySelectorAll(c.selectors)):Array.from(document.querySelectorAll(c.selectors));else if(Array.isArray(c.selectors))for(const d of c.selectors)d instanceof HTMLElement?l.push(d):l.push(d.$el);else if(c.selectors instanceof HTMLElement)l.push(c.selectors);else if(Array.isArray(c.selectors.value))for(const d of c.selectors.value)d instanceof HTMLElement?l.push(d):l.push(d.$el);else l.push(c.selectors.value);return l},o=c=>{const i=t(c);let l=[];return c.selectors?l=n(c):i&&(l=Array.from(i.children).filter(d=>re(d)&&oe(d))),l},r=c=>i=>{const l=Ci[i.key]||i.key.toLowerCase();if(He.includes(l))return;const d=c.handlers||Tt;for(const p of Object.keys(d)){const[u,...f]=p.split(".");if(u==="keydown"&&f.includes(l)){const h=d[p],g=f.filter($=>He.includes($)),y=He.some($=>{const I=$.charAt(0).toUpperCase()+$.slice(1);return i.getModifierState(I)});if(g.length>0){if(y){for(const $ of He)if(f.includes($)){const I=$.charAt(0).toUpperCase()+$.slice(1);i.getModifierState(I)&&h(i)}}}else y||h(i)}}},s=[];a.onMounted(()=>{for(const c of e){const i=t(c),l=o(c),d=r(c),p=i?[i]:l;for(const u of p){const{focused:f}=Si(a.ref(u)),h=a.watch(f,g=>{g?u.addEventListener("keydown",d):u.removeEventListener("keydown",d)});s.push(h)}}}),a.onBeforeUnmount(()=>{for(const c of s)c()})}const Ii=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],Pi={key:1},Di=a.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},tableid:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0}},setup(e){var t;const n=e,o=a.inject(n.tableid),r=a.ref(null),s=a.ref(""),c=a.ref(!1),i=a.computed(()=>{const y=o.cellData(n.colIndex,n.rowIndex);if(o.columns[n.colIndex].format){const $=o.table,I=o.rows[n.rowIndex],x=o.columns[n.colIndex],N=x.format;return typeof N=="function"?N(y,{table:$,row:I,column:x}):typeof N=="string"?Function(`"use strict";return (${N})`)()(y,{table:$,row:I,column:x}):y}else return y}),l=()=>{if(o.columns[n.colIndex].mask,o.columns[n.colIndex].modalComponent){const y=r.value.getBoundingClientRect();o.modal.visible=!0,o.modal.colIndex=n.colIndex,o.modal.rowIndex=n.rowIndex,o.modal.parent=r.value,o.modal.top=y.top+y.height,o.modal.left=y.left,o.modal.width=p.value,o.modal.component=o.columns[n.colIndex].modalComponent,o.modal.componentProps=o.columns[n.colIndex].modalComponentProps}};if(n.addNavigation){let y={...Tt,"keydown.f2":l,"keydown.alt.up":l,"keydown.alt.down":l,"keydown.alt.left":l,"keydown.alt.right":l};typeof n.addNavigation=="object"&&(y={...y,...n.addNavigation}),Co([{selectors:r,handlers:y}])}const d=a.computed(()=>o.columns[n.colIndex].align||"center"),p=a.computed(()=>o.columns[n.colIndex].width||"40ch"),u=()=>{r.value&&(s.value=r.value.textContent)},f=()=>{r.value&&r.value.textContent!==s.value&&(s.value=r.value.textContent,r.value.dispatchEvent(new Event("change")),c.value=!0,o.columns[n.colIndex].format||o.setCellData(n.rowIndex,n.colIndex,s.value))},h=(y,$)=>$&&y===0&&$>0?`${$}ch`:"inherit",g={textAlign:d.value,width:p.value,backgroundColor:c.value?"var(--cell-modified-color)":"inherit",fontWeight:c.value?"bold":"inherit",paddingLeft:h(n.colIndex,(t=o.display[n.rowIndex])==null?void 0:t.indent)};return(y,$)=>(a.openBlock(),a.createElementBlock("td",{ref_key:"cell",ref:r,"data-colindex":y.colIndex,"data-rowindex":y.rowIndex,"data-editable":a.unref(o).columns[y.colIndex].edit,contenteditable:a.unref(o).columns[y.colIndex].edit,tabindex:y.tabIndex,spellcheck:!1,style:g,onFocus:u,onPaste:f,onBlur:f,onInput:f,onClick:l,onMousedown:l,class:"atable__cell"},[a.unref(o).columns[y.colIndex].cellComponent?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(o).columns[y.colIndex].cellComponent),a.mergeProps({key:0,value:i.value},a.unref(o).columns[y.colIndex].cellComponentProps),null,16,["value"])):(a.openBlock(),a.createElementBlock("span",Pi,a.toDisplayString(i.value),1))],40,Ii))}}),Vi=["tabindex"],Ai={key:0,tabIndex:-1,class:"list-index"},Ri=a.defineComponent({__name:"ARow",props:{row:{},rowIndex:{},tableid:{},tabIndex:{default:-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=e,n=a.inject(t.tableid),o=a.ref(null),r=a.computed(()=>n.config.view!=="tree"||n.display[t.rowIndex].isRoot||n.display[t.rowIndex].open),s=a.computed(()=>n.config.view!=="tree"?"":n.display[t.rowIndex].isRoot||n.display[t.rowIndex].isParent?n.display[t.rowIndex].childrenOpen?"-":"+":""),c=i=>{n.toggleRowExpand(i)};if(t.addNavigation){let i=Tt;typeof t.addNavigation=="object"&&(i={...i,...t.addNavigation}),Co([{selectors:o,handlers:i}])}return(i,l)=>a.withDirectives((a.openBlock(),a.createElementBlock("tr",{ref_key:"rowEl",ref:o,tabindex:i.tabIndex,class:"table-row"},[a.renderSlot(i.$slots,"index",{},()=>[a.unref(n).config.view==="list"?(a.openBlock(),a.createElementBlock("td",Ai,a.toDisplayString(i.rowIndex+1),1)):a.unref(n).config.view==="tree"?(a.openBlock(),a.createElementBlock("td",{key:1,tabIndex:-1,class:"tree-index",onClick:l[0]||(l[0]=d=>c(i.rowIndex))},a.toDisplayString(s.value),1)):a.createCommentVNode("",!0)]),a.renderSlot(i.$slots,"default")],8,Vi)),[[a.vShow,r.value]])}});function Io(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function Pe(e){return typeof e=="function"?e():a.unref(e)}const Po=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ji=Object.prototype.toString,Ti=e=>ji.call(e)==="[object Object]",De=()=>{},Bt=Bi();function Bi(){var e,t;return Po&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const Do={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Li(...e){if(e.length!==1)return a.toRef(...e);const t=e[0];return typeof t=="function"?a.readonly(a.customRef(()=>({get:t,set:De}))):a.ref(t)}function Ve(e){var t;const n=Pe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Vo=Po?window:void 0;function Je(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Vo):[t,n,o,r]=e,!t)return De;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],c=()=>{s.forEach(p=>p()),s.length=0},i=(p,u,f,h)=>(p.addEventListener(u,f,h),()=>p.removeEventListener(u,f,h)),l=a.watch(()=>[Ve(t),Pe(r)],([p,u])=>{if(c(),!p)return;const f=Ti(u)?{...u}:u;s.push(...n.flatMap(h=>o.map(g=>i(p,h,g,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return Io(d),d}let Ao=!1;function Ro(e,t,n={}){const{window:o=Vo,ignore:r=[],capture:s=!0,detectIframe:c=!1}=n;if(!o)return De;Bt&&!Ao&&(Ao=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",De)),o.document.documentElement.addEventListener("click",De));let i=!0;const l=p=>r.some(u=>{if(typeof u=="string")return Array.from(o.document.querySelectorAll(u)).some(f=>f===p.target||p.composedPath().includes(f));{const f=Ve(u);return f&&(p.target===f||p.composedPath().includes(f))}}),d=[Je(o,"click",p=>{const u=Ve(e);if(!(!u||u===p.target||p.composedPath().includes(u))){if(p.detail===0&&(i=!l(p)),!i){i=!0;return}t(p)}},{passive:!0,capture:s}),Je(o,"pointerdown",p=>{const u=Ve(e);i=!l(p)&&!!(u&&!p.composedPath().includes(u))},{passive:!0}),c&&Je(o,"blur",p=>{setTimeout(()=>{var u;const f=Ve(e);((u=o.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>d.forEach(p=>p())}const Mi={[Do.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Ro(e,t.value,{capture:n});else{const[o,r]=t.value;e.__onClickOutside_stop=Ro(e,o,Object.assign({capture:n},r))}},[Do.unmounted](e){e.__onClickOutside_stop()}};function Lt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function jo(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:jo(n)}}function Ui(e){const t=e||window.event,n=t.target;return jo(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Mt=new WeakMap;function Wi(e,t=!1){const n=a.ref(t);let o=null,r="";a.watch(Li(e),i=>{const l=Lt(Pe(i));if(l){const d=l;if(Mt.get(d)||Mt.set(d,d.style.overflow),d.style.overflow!=="hidden"&&(r=d.style.overflow),d.style.overflow==="hidden")return n.value=!0;if(n.value)return d.style.overflow="hidden"}},{immediate:!0});const s=()=>{const i=Lt(Pe(e));!i||n.value||(Bt&&(o=Je(i,"touchmove",l=>{Ui(l)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},c=()=>{const i=Lt(Pe(e));!i||!n.value||(Bt&&(o==null||o()),i.style.overflow=r,Mt.delete(i),n.value=!1)};return Io(c),a.computed({get(){return n.value},set(i){i?s():c()}})}function Fi(){let e=!1;const t=a.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=Wi(n,o.value);a.watch(t,s=>r.value=s)}}Fi();for(var T=[],Ut=0;Ut<256;++Ut)T.push((Ut+256).toString(16).slice(1));function zi(e,t=0){return(T[e[t+0]]+T[e[t+1]]+T[e[t+2]]+T[e[t+3]]+"-"+T[e[t+4]]+T[e[t+5]]+"-"+T[e[t+6]]+T[e[t+7]]+"-"+T[e[t+8]]+T[e[t+9]]+"-"+T[e[t+10]]+T[e[t+11]]+T[e[t+12]]+T[e[t+13]]+T[e[t+14]]+T[e[t+15]]).toLowerCase()}var Ke,qi=new Uint8Array(16);function Gi(){if(!Ke&&(Ke=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ke))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ke(qi)}var Hi=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const To={randomUUID:Hi};function Ji(e,t,n){if(To.randomUUID&&!t&&!e)return To.randomUUID();e=e||{};var o=e.random||(e.rng||Gi)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=o[r];return t}return zi(o)}class Ki{constructor(t,n,o,r,s,c){pe(this,"id"),pe(this,"rows"),pe(this,"columns"),pe(this,"config"),pe(this,"table"),pe(this,"display"),pe(this,"modal"),this.id=t||Ji(),this.rows=o,this.columns=a.reactive(n),this.config=a.reactive(r),this.table=s||a.reactive(this.createTableObject()),this.display=this.createDisplayObject(c),this.modal=a.reactive({visible:!1})}createTableObject(){const t={};for(const[n,o]of this.columns.entries())for(const[r,s]of this.rows.entries())t[`${n}:${r}`]=s[o.name];return t}createDisplayObject(t){const n=[Object.assign({},{modified:!1})];if(t&&"0:0"in t)return t;const o=new Set;for(let r=this.rows.length-1;r>=0;r--){const s=this.rows[r];s.parent&&o.add(s.parent),n[r]={childrenOpen:!1,expanded:!1,indent:s.indent||null,isParent:o.has(r),isRoot:s.parent===null||s.parent===void 0,modified:!1,open:s.parent===null||s.parent===void 0,parent:s.parent}}return a.reactive(n)}get zeroColumn(){return["list","tree","list-expansion"].includes(this.config.view)}get numberedRowWidth(){return a.computed(()=>String(Math.ceil(this.rows.length/100)+1)+"ch")}cellData(t,n){return this.table[`${t}:${n}`]}setCellData(t,n,o){this.table[`${n}:${t}`]!==o&&(this.display[t].modified=!0),this.table[`${n}:${t}`]=o;const r=this.columns[n];return this.rows[t][r.name]=o,this.table[`${n}:${t}`]}toggleRowExpand(t){if(this.config.view==="tree"){this.display[t].childrenOpen=!this.display[t].childrenOpen;for(let n=this.rows.length-1;n>=0;n--)this.display[n].parent===t&&(this.display[n].open=!this.display[n].open,this.display[n].childrenOpen&&this.toggleRowExpand(n))}else this.config.view==="list-expansion"&&(this.display[t].expanded=!this.display[t].expanded)}}const Yi={key:0,id:"resizable"},Qi={class:"atable-header-row",tabindex:"-1"},Xi={key:0,id:"header-index"},Zi=a.defineComponent({__name:"ATableHeader",props:{columns:{},config:{},tableid:{}},setup(e){const t=a.inject(e.tableid),n=o=>({minWidth:o.width||"40ch",textAlign:o.align||"center",width:t.config.fullWidth?"auto":null});return(o,r)=>o.columns.length?(a.openBlock(),a.createElementBlock("thead",Yi,[a.createElementVNode("tr",Qi,[a.unref(t).zeroColumn?(a.openBlock(),a.createElementBlock("th",Xi)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.columns,(s,c)=>(a.openBlock(),a.createElementBlock("th",{key:s.name,tabindex:"-1",style:a.normalizeStyle(n(s))},[a.renderSlot(o.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(s.label||String.fromCharCode(c+97).toUpperCase()),1)])],4))),128))])])):a.createCommentVNode("",!0)}}),ec=a.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},tableid:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(a.openBlock(),a.createElementBlock("div",{ref:"amodal",class:"amodal",tabindex:"-1",onClick:t,onInput:t},[a.renderSlot(n.$slots,"default")],544))}}),tc=a.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object},tableid:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t;let r=n.modelValue?n.modelValue:n.rows,s=new Ki(n.id,n.columns,r,n.config);a.provide(s.id,s),a.watch(()=>s.rows,i=>{o("update:modelValue",i)},{deep:!0});const c=i=>{var l;i.target instanceof Node&&(l=s.modal.parent)!=null&&l.contains(i.target)||s.modal.visible&&(s.modal.visible=!1)};return window.addEventListener("keydown",i=>{if(i.key==="Escape"&&s.modal.visible){s.modal.visible=!1;const l=s.modal.parent;l&&a.nextTick().then(()=>{l.focus()})}}),(i,l)=>a.withDirectives((a.openBlock(),a.createElementBlock("table",{class:"atable",style:a.normalizeStyle({width:a.unref(s).config.fullWidth?"100%":"auto"})},[a.renderSlot(i.$slots,"header",{data:a.unref(s)},()=>[a.createVNode(Zi,{columns:a.unref(s).columns,config:a.unref(s).config,tableid:a.unref(s).id},null,8,["columns","config","tableid"])]),a.createElementVNode("tbody",null,[a.renderSlot(i.$slots,"body",{data:a.unref(s)},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s).rows,(d,p)=>(a.openBlock(),a.createBlock(Ri,{key:d.id,row:d,rowIndex:p,tableid:a.unref(s).id},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s).columns,(u,f)=>(a.openBlock(),a.createBlock(Di,{key:u.name,tableid:a.unref(s).id,col:u,spellcheck:"false",rowIndex:p,colIndex:f+(a.unref(s).zeroColumn?0:-1),component:u.cellComponent,style:a.normalizeStyle({textAlign:(u==null?void 0:u.align)||"center",minWidth:(u==null?void 0:u.width)||"40ch",width:a.unref(s).config.fullWidth?"auto":null})},null,8,["tableid","col","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","tableid"]))),128))])]),a.renderSlot(i.$slots,"footer",{data:a.unref(s)}),a.renderSlot(i.$slots,"modal",{data:a.unref(s)},()=>[a.withDirectives(a.createVNode(ec,{colIndex:a.unref(s).modal.colIndex,rowIndex:a.unref(s).modal.rowIndex,tableid:a.unref(s).id,style:a.normalizeStyle({left:a.unref(s).modal.left+"px",top:a.unref(s).modal.top+"px",maxWidth:a.unref(s).modal.width+"px"})},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(s).modal.component),a.mergeProps({key:`${a.unref(s).modal.rowIndex}:${a.unref(s).modal.colIndex}`,colIndex:a.unref(s).modal.colIndex,rowIndex:a.unref(s).modal.rowIndex,tableid:a.unref(s).id},a.unref(s).modal.componentProps),null,16,["colIndex","rowIndex","tableid"]))]),_:1},8,["colIndex","rowIndex","tableid","style"]),[[a.vShow,a.unref(s).modal.visible]])])],4)),[[a.unref(Mi),c]])}}),Bo=a.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=mn(),o={view:"list"};return(r,s)=>a.unref(n)?(a.openBlock(),a.createBlock(a.unref(tc),{key:0,columns:a.unref(t).schema.schema.toArray(),rows:a.unref(t).store.records,config:o},null,8,["columns","rows"])):a.createCommentVNode("",!0)}}),Lo=e=>(a.pushScopeId("data-v-4f7a2d32"),e=e(),a.popScopeId(),e),nc={class:"tabs"},oc={tabindex:"0"},rc={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 424.098 424.098",style:{"enable-background":"new 0 0 424.098 424.098"},"xml:space":"preserve"},ac=[Lo(()=>a.createElementVNode("g",null,[a.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
43
43
  c-3.284-0.008-6.243-1.992-7.495-5.023c-1.252-3.04-0.553-6.527,1.764-8.852L206.104,24.546c1.853-1.845,4.503-2.666,7.047-2.276
44
44
  c2.414,0.39,4.511,1.845,5.731,3.942l47.43,47.43V58.499c0-4.487,3.633-8.129,8.129-8.129h47.755c4.495,0,8.129,3.642,8.129,8.129
45
45
  v79.156l91.39,91.398c2.325,2.325,3.024,5.828,1.764,8.868c-1.26,3.032-4.227,5.007-7.511,5.007c-0.008,0-0.008,0-0.016,0