@stonecrop/desktop 0.2.44 โ†’ 0.2.45

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,45 +1,45 @@
1
- (function(F,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(F=typeof globalThis<"u"?globalThis:F||self,r(F["@stonecrop/desktop"]={},F.Vue))})(this,function(F,r){"use strict";const Go={class:"action-menu-icon"},qo=["onclick"],Jo={key:1},Ko=["onClick"],Yo={class:"dropdown-container"},Qo={class:"dropdown"},Xo=["onclick"],Zo=["href"],er={class:"dropdown-item"},tr=r.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=r.ref(e.elements),n=r.ref(!1),o=r.ref(null),a=r.ref(!1),s=r.ref(!1);r.onMounted(()=>{l()});const l=()=>{for(const d of t.value)d.elementType==="dropdown"&&(d.show=!1)},i=()=>{a.value=!0,o.value=setTimeout(()=>{a.value&&(n.value=!0)},500)},u=()=>{a.value=!1,s.value=!1,clearTimeout(o.value),n.value=!1},c=d=>{const p=!t.value[d].show;l(),t.value[d].show=p};return(d,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"open-set":n.value,"hovered-and-closed":s.value},"action-set collapse"]),onMouseover:i,onMouseleave:u},[r.createElementVNode("div",Go,[r.createElementVNode("div",{id:"chevron",onClick:p[0]||(p[0]=f=>s.value=!s.value)},p[1]||(p[1]=[r.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"},[r.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),r.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"},[r.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),p[2]||(p[2]=r.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.value,(f,h)=>(r.openBlock(),r.createElementBlock("div",{class:"action-element",key:f.label},[f.elementType=="button"?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:f.action,class:"button-default"},r.toDisplayString(f.label),9,qo)):r.createCommentVNode("",!0),f.elementType=="dropdown"?(r.openBlock(),r.createElementBlock("div",Jo,[r.createElementVNode("button",{class:"button-default",onClick:m=>c(h)},r.toDisplayString(f.label),9,Ko),r.withDirectives(r.createElementVNode("div",Yo,[r.createElementVNode("div",Qo,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.actions,m=>(r.openBlock(),r.createElementBlock("div",{key:m.label},[m.action!=null?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:m.action,class:"dropdown-item"},r.toDisplayString(m.label),9,Xo)):m.link!=null?(r.openBlock(),r.createElementBlock("a",{key:1,href:m.link},[r.createElementVNode("button",er,r.toDisplayString(m.label),1)],8,Zo)):r.createCommentVNode("",!0)]))),128))])],512),[[r.vShow,f.show]])])):r.createCommentVNode("",!0)]))),128))],34))}}),nt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n},qt=nt(tr,[["__scopeId","data-v-4fb5c934"]]),nr={};function or(e,t){return r.openBlock(),r.createElementBlock("dialog")}const Jt=nt(nr,[["render",or]]),rr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ar={class:"aform"},sr=r.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r.ref(e.data||{}),a=l=>{let i={};for(const[u,c]of Object.entries(l))["component","fieldtype"].includes(u)||(i[u]=c),u==="rows"&&c&&c.length===0&&(i.rows=o.value[l.fieldname]);return i},s=r.computed({get:()=>e.modelValue.map((l,i)=>r.computed({get(){return l.value},set:u=>{e.modelValue[i].value=u,n("update:modelValue",e.modelValue)}})),set:()=>{}});return(l,i)=>(r.openBlock(),r.createElementBlock("form",ar,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.modelValue,(u,c)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(u.component),r.mergeProps({key:c,schema:u,modelValue:s.value[c].value,"onUpdate:modelValue":d=>s.value[c].value=d,data:o.value[u.fieldname],readonly:l.readonly,ref_for:!0},a(u)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),ir=rr(sr,[["__scopeId","data-v-15ed36be"]]);typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;var lr=Object.defineProperty,cr=(e,t,n)=>t in e?lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H=(e,t,n)=>cr(e,typeof t!="symbol"?t+"":t,n);function ot(e){this.message=e||""}ot.prototype=Object.create(Error.prototype,{constructor:{value:ot},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const Kt=class et{constructor(t,n,o,a,s){if(H(this,"name","Stonecrop"),H(this,"registry"),H(this,"schema"),H(this,"workflow"),H(this,"actions"),H(this,"store"),et._root)return et._root;et._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=a,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 ot(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 a=this.registry.registry[t.slug].actions.get(n),{initialState:s}=this.workflow;this.workflow.transition(s,{type:n}),a.length>0&&a.forEach(l=>{new Function(l)(o)})}};H(Kt,"_root");let ur=Kt;var Yt=!1;function Be(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 rt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function dr(){return Qt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Qt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const pr=typeof Proxy=="function",fr="devtools-plugin:setup",hr="plugin:settings:set";let _e,at;function mr(){var e;return _e!==void 0||(typeof window<"u"&&window.performance?(_e=!0,at=window.performance):typeof globalThis<"u"&&!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance?(_e=!0,at=globalThis.perf_hooks.performance):_e=!1),_e}function gr(){return mr()?at.now():Date.now()}class yr{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const l in t.settings){const i=t.settings[l];o[l]=i.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},o);try{const l=localStorage.getItem(a),i=JSON.parse(l);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(l){try{localStorage.setItem(a,JSON.stringify(l))}catch{}s=l},now(){return gr()}},n&&n.on(hr,(l,i)=>{l===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(l,i)=>this.target?this.target.on[i]:(...u)=>{this.onQueue.push({method:i,args:u})}}),this.proxiedTarget=new Proxy({},{get:(l,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...u)=>(this.targetQueue.push({method:i,args:u,resolve:()=>{}}),this.fallbacks[i](...u)):(...u)=>new Promise(c=>{this.targetQueue.push({method:i,args:u,resolve:c})})})}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 st(e,t){const n=e,o=Qt(),a=dr(),s=pr&&n.enableEarlyProxy;if(a&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(fr,e,t);else{const l=s?new yr(n,a):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:l}),l&&t(l.proxiedTarget)}}/*!
1
+ (function(F,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(F=typeof globalThis<"u"?globalThis:F||self,r(F["@stonecrop/desktop"]={},F.Vue))})(this,function(F,r){"use strict";const Go={class:"action-menu-icon"},qo=["onclick"],Jo={key:1},Ko=["onClick"],Yo={class:"dropdown-container"},Qo={class:"dropdown"},Xo=["onclick"],Zo=["href"],er={class:"dropdown-item"},tr=r.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=r.ref(e.elements),n=r.ref(!1),o=r.ref(null),a=r.ref(!1),s=r.ref(!1);r.onMounted(()=>{l()});const l=()=>{for(const d of t.value)d.elementType==="dropdown"&&(d.show=!1)},i=()=>{a.value=!0,o.value=setTimeout(()=>{a.value&&(n.value=!0)},500)},u=()=>{a.value=!1,s.value=!1,clearTimeout(o.value),n.value=!1},c=d=>{const p=!t.value[d].show;l(),t.value[d].show=p};return(d,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"open-set":n.value,"hovered-and-closed":s.value},"action-set collapse"]),onMouseover:i,onMouseleave:u},[r.createElementVNode("div",Go,[r.createElementVNode("div",{id:"chevron",onClick:p[0]||(p[0]=f=>s.value=!s.value)},p[1]||(p[1]=[r.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"},[r.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),r.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"},[r.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),p[2]||(p[2]=r.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.value,(f,h)=>(r.openBlock(),r.createElementBlock("div",{class:"action-element",key:f.label},[f.elementType=="button"?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:f.action,class:"button-default"},r.toDisplayString(f.label),9,qo)):r.createCommentVNode("",!0),f.elementType=="dropdown"?(r.openBlock(),r.createElementBlock("div",Jo,[r.createElementVNode("button",{class:"button-default",onClick:g=>c(h)},r.toDisplayString(f.label),9,Ko),r.withDirectives(r.createElementVNode("div",Yo,[r.createElementVNode("div",Qo,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.actions,g=>(r.openBlock(),r.createElementBlock("div",{key:g.label},[g.action!=null?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:g.action,class:"dropdown-item"},r.toDisplayString(g.label),9,Xo)):g.link!=null?(r.openBlock(),r.createElementBlock("a",{key:1,href:g.link},[r.createElementVNode("button",er,r.toDisplayString(g.label),1)],8,Zo)):r.createCommentVNode("",!0)]))),128))])],512),[[r.vShow,f.show]])])):r.createCommentVNode("",!0)]))),128))],34))}}),nt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n},qt=nt(tr,[["__scopeId","data-v-4fb5c934"]]),nr={};function or(e,t){return r.openBlock(),r.createElementBlock("dialog")}const Jt=nt(nr,[["render",or]]),rr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ar={class:"aform"},sr=r.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r.ref(e.data||{}),a=l=>{let i={};for(const[u,c]of Object.entries(l))["component","fieldtype"].includes(u)||(i[u]=c),u==="rows"&&c&&c.length===0&&(i.rows=o.value[l.fieldname]);return i},s=r.computed({get:()=>e.modelValue.map((l,i)=>r.computed({get(){return l.value},set:u=>{e.modelValue[i].value=u,n("update:modelValue",e.modelValue)}})),set:()=>{}});return(l,i)=>(r.openBlock(),r.createElementBlock("form",ar,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.modelValue,(u,c)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(u.component),r.mergeProps({key:c,schema:u,modelValue:s.value[c].value,"onUpdate:modelValue":d=>s.value[c].value=d,data:o.value[u.fieldname],readonly:l.readonly,ref_for:!0},a(u)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),ir=rr(sr,[["__scopeId","data-v-15ed36be"]]);typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;var lr=Object.defineProperty,cr=(e,t,n)=>t in e?lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H=(e,t,n)=>cr(e,typeof t!="symbol"?t+"":t,n);function ot(e){this.message=e||""}ot.prototype=Object.create(Error.prototype,{constructor:{value:ot},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const Kt=class et{constructor(t,n,o,a,s){if(H(this,"name","Stonecrop"),H(this,"registry"),H(this,"schema"),H(this,"workflow"),H(this,"actions"),H(this,"store"),et._root)return et._root;et._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=a,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 ot(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 a=this.registry.registry[t.slug].actions.get(n),{initialState:s}=this.workflow;this.workflow.transition(s,{type:n}),a.length>0&&a.forEach(l=>{new Function(l)(o)})}};H(Kt,"_root");let ur=Kt;var Yt=!1;function Be(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 rt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function dr(){return Qt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Qt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const pr=typeof Proxy=="function",fr="devtools-plugin:setup",hr="plugin:settings:set";let _e,at;function mr(){var e;return _e!==void 0||(typeof window<"u"&&window.performance?(_e=!0,at=window.performance):typeof globalThis<"u"&&!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance?(_e=!0,at=globalThis.perf_hooks.performance):_e=!1),_e}function gr(){return mr()?at.now():Date.now()}class yr{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const l in t.settings){const i=t.settings[l];o[l]=i.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},o);try{const l=localStorage.getItem(a),i=JSON.parse(l);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(l){try{localStorage.setItem(a,JSON.stringify(l))}catch{}s=l},now(){return gr()}},n&&n.on(hr,(l,i)=>{l===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(l,i)=>this.target?this.target.on[i]:(...u)=>{this.onQueue.push({method:i,args:u})}}),this.proxiedTarget=new Proxy({},{get:(l,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...u)=>(this.targetQueue.push({method:i,args:u,resolve:()=>{}}),this.fallbacks[i](...u)):(...u)=>new Promise(c=>{this.targetQueue.push({method:i,args:u,resolve:c})})})}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 st(e,t){const n=e,o=Qt(),a=dr(),s=pr&&n.enableEarlyProxy;if(a&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(fr,e,t);else{const l=s?new yr(n,a):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:l}),l&&t(l.proxiedTarget)}}/*!
2
2
  * pinia v2.2.2
3
3
  * (c) 2024 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */let ke;const $e=e=>ke=e,Xt=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ce(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 ue=typeof window<"u",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 wr(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 it(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 Le(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 Me=typeof navigator=="object"?navigator:{userAgent:""},tn=/Macintosh/.test(Me.userAgent)&&/AppleWebKit/.test(Me.userAgent)&&!/Safari/.test(Me.userAgent),nn=ue?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!tn?br:"msSaveOrOpenBlob"in Me?vr:Er:()=>{};function br(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)?it(e,t,n):(o.target="_blank",Le(o)):Le(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Le(o)},0))}function vr(e,t="download",n){if(typeof e=="string")if(en(e))it(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){Le(o)})}else navigator.msSaveOrOpenBlob(wr(e,n),t)}function Er(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return it(e,t,n);const a=e.type==="application/octet-stream",s=/constructor/i.test(String(Zt.HTMLElement))||"safari"in Zt,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&s||tn)&&typeof FileReader<"u"){const i=new FileReader;i.onloadend=function(){let u=i.result;if(typeof u!="string")throw o=null,new Error("Wrong reader.result type");u=l?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=u:location.assign(u),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 lt(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 _r(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 kr(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 $r(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 Sr(){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 a=o.item(0);return t(a?{text:await a.text(),file:a}:null)},Z.oncancel=()=>t(null),Z.onerror=n,Z.click()})}return e}async function Or(e){try{const t=await Sr()();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 q(e){return{_custom:{display:e}}}const sn="๐Ÿ Pinia (root)",We="_root";function Nr(e){return lt(e)?{id:We,label:sn}:{id:e.$id,label:e.$id}}function xr(e){if(lt(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(a=>({editable:!0,key:a,value:e.state.value[a]})),getters:n.filter(a=>o.get(a)._getters).map(a=>{const s=o.get(a);return{editable:!1,key:a,value:s._getters.reduce((l,i)=>(l[i]=s[i],l),{})}})}}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 Cr(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:q(e.type),key:q(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Ir(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 Ue=[],de="pinia:mutations",B="pinia",{assign:Pr}=Object,ze=e=>"๐Ÿ "+e;function Dr(e,t){st({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ue,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:B,label:"Pinia ๐Ÿ",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{_r(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await kr(t),n.sendInspectorTree(B),n.sendInspectorState(B)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{$r(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Or(t),n.sendInspectorTree(B),n.sendInspectorState(B)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const a=t._s.get(o);a?typeof a.$reset!="function"?j(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(a.$reset(),j(`Store "${o}" reset.`)):j(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((o,a)=>{const s=o.componentInstance&&o.componentInstance.proxy;if(s&&s._pStores){const l=o.componentInstance.proxy._pStores;Object.values(l).forEach(i=>{o.instanceData.state.push({type:ze(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:r.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((u,c)=>(u[c]=i.$state[c],u),{})}),i._getters&&i._getters.length&&o.instanceData.state.push({type:ze(i.$id),key:"getters",editable:!1,value:i._getters.reduce((u,c)=>{try{u[c]=i[c]}catch(d){u[c]=d}return u},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===B){let a=[t];a=a.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?a.filter(s=>"$id"in s?s.$id.toLowerCase().includes(o.filter.toLowerCase()):sn.toLowerCase().includes(o.filter.toLowerCase())):a).map(Nr)}}),globalThis.$pinia=t,n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===B){const a=o.nodeId===We?t:t._s.get(o.nodeId);if(!a)return;a&&(o.nodeId!==We&&(globalThis.$store=r.toRaw(a)),o.state=xr(a))}}),n.on.editInspectorState((o,a)=>{if(o.app===e&&o.inspectorId===B){const s=o.nodeId===We?t:t._s.get(o.nodeId);if(!s)return j(`store "${o.nodeId}" not found`,"error");const{path:l}=o;lt(s)?l.unshift("state"):(l.length!==1||!s._customProperties.has(l[0])||l[0]in s.$state)&&l.unshift("$state"),he=!1,o.set(s,l,o.state.value),he=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("๐Ÿ")){const a=o.type.replace(/^๐Ÿ\s*/,""),s=t._s.get(a);if(!s)return j(`store "${a}" not found`,"error");const{path:l}=o;if(l[0]!=="state")return j(`Invalid path for store "${a}":
5
+ */let ke;const $e=e=>ke=e,Xt=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ce(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 ue=typeof window<"u",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 wr(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 it(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 Le(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 Me=typeof navigator=="object"?navigator:{userAgent:""},tn=/Macintosh/.test(Me.userAgent)&&/AppleWebKit/.test(Me.userAgent)&&!/Safari/.test(Me.userAgent),nn=ue?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!tn?br:"msSaveOrOpenBlob"in Me?vr:Er:()=>{};function br(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)?it(e,t,n):(o.target="_blank",Le(o)):Le(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Le(o)},0))}function vr(e,t="download",n){if(typeof e=="string")if(en(e))it(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){Le(o)})}else navigator.msSaveOrOpenBlob(wr(e,n),t)}function Er(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return it(e,t,n);const a=e.type==="application/octet-stream",s=/constructor/i.test(String(Zt.HTMLElement))||"safari"in Zt,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&s||tn)&&typeof FileReader<"u"){const i=new FileReader;i.onloadend=function(){let u=i.result;if(typeof u!="string")throw o=null,new Error("Wrong reader.result type");u=l?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=u:location.assign(u),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 B(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 lt(e){return"_a"in e&&"install"in e}function on(){if(!("clipboard"in navigator))return B("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")?(B('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function _r(e){if(!on())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),B("Global state copied to clipboard.")}catch(t){if(rn(t))return;B("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function kr(e){if(!on())try{an(e,JSON.parse(await navigator.clipboard.readText())),B("Global state pasted from clipboard.")}catch(t){if(rn(t))return;B("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function $r(e){try{nn(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){B("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Z;function Sr(){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 a=o.item(0);return t(a?{text:await a.text(),file:a}:null)},Z.oncancel=()=>t(null),Z.onerror=n,Z.click()})}return e}async function Or(e){try{const t=await Sr()();if(!t)return;const{text:n,file:o}=t;an(e,JSON.parse(n)),B(`Global state imported from "${o.name}".`)}catch(t){B("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 q(e){return{_custom:{display:e}}}const sn="๐Ÿ Pinia (root)",We="_root";function Nr(e){return lt(e)?{id:We,label:sn}:{id:e.$id,label:e.$id}}function xr(e){if(lt(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(a=>({editable:!0,key:a,value:e.state.value[a]})),getters:n.filter(a=>o.get(a)._getters).map(a=>{const s=o.get(a);return{editable:!1,key:a,value:s._getters.reduce((l,i)=>(l[i]=s[i],l),{})}})}}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 Cr(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:q(e.type),key:q(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Ir(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 Ue=[],de="pinia:mutations",L="pinia",{assign:Pr}=Object,ze=e=>"๐Ÿ "+e;function Dr(e,t){st({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ue,app:e},n=>{typeof n.now!="function"&&B("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:L,label:"Pinia ๐Ÿ",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{_r(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await kr(t),n.sendInspectorTree(L),n.sendInspectorState(L)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{$r(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Or(t),n.sendInspectorTree(L),n.sendInspectorState(L)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const a=t._s.get(o);a?typeof a.$reset!="function"?B(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(a.$reset(),B(`Store "${o}" reset.`)):B(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((o,a)=>{const s=o.componentInstance&&o.componentInstance.proxy;if(s&&s._pStores){const l=o.componentInstance.proxy._pStores;Object.values(l).forEach(i=>{o.instanceData.state.push({type:ze(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:r.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((u,c)=>(u[c]=i.$state[c],u),{})}),i._getters&&i._getters.length&&o.instanceData.state.push({type:ze(i.$id),key:"getters",editable:!1,value:i._getters.reduce((u,c)=>{try{u[c]=i[c]}catch(d){u[c]=d}return u},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===L){let a=[t];a=a.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?a.filter(s=>"$id"in s?s.$id.toLowerCase().includes(o.filter.toLowerCase()):sn.toLowerCase().includes(o.filter.toLowerCase())):a).map(Nr)}}),globalThis.$pinia=t,n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===L){const a=o.nodeId===We?t:t._s.get(o.nodeId);if(!a)return;a&&(o.nodeId!==We&&(globalThis.$store=r.toRaw(a)),o.state=xr(a))}}),n.on.editInspectorState((o,a)=>{if(o.app===e&&o.inspectorId===L){const s=o.nodeId===We?t:t._s.get(o.nodeId);if(!s)return B(`store "${o.nodeId}" not found`,"error");const{path:l}=o;lt(s)?l.unshift("state"):(l.length!==1||!s._customProperties.has(l[0])||l[0]in s.$state)&&l.unshift("$state"),he=!1,o.set(s,l,o.state.value),he=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("๐Ÿ")){const a=o.type.replace(/^๐Ÿ\s*/,""),s=t._s.get(a);if(!s)return B(`store "${a}" not found`,"error");const{path:l}=o;if(l[0]!=="state")return B(`Invalid path for store "${a}":
6
6
  ${l}
7
- Only state can be modified.`);l[0]="$state",he=!1,o.set(s,l,o.state.value),he=!0}})})}function Vr(e,t){Ue.includes(ze(t.$id))||Ue.push(ze(t.$id)),st({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ue,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:l,onError:i,name:u,args:c})=>{const d=ln++;n.addTimelineEvent({layerId:de,event:{time:o(),title:"๐Ÿ›ซ "+u,subtitle:"start",data:{store:q(t.$id),action:q(u),args:c},groupId:d}}),l(p=>{ae=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),title:"๐Ÿ›ฌ "+u,subtitle:"end",data:{store:q(t.$id),action:q(u),args:c,result:p},groupId:d}})}),i(p=>{ae=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),logType:"error",title:"๐Ÿ’ฅ "+u,subtitle:"end",data:{store:q(t.$id),action:q(u),args:c,error:p},groupId:d}})})},!0),t._customProperties.forEach(l=>{r.watch(()=>r.unref(t[l]),(i,u)=>{n.notifyComponentUpdate(),n.sendInspectorState(B),he&&n.addTimelineEvent({layerId:de,event:{time:o(),title:"Change",subtitle:l,data:{newValue:i,oldValue:u},groupId:ae}})},{deep:!0})}),t.$subscribe(({events:l,type:i},u)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(B),!he)return;const c={time:o(),title:Ir(i),data:Pr({store:q(t.$id)},Cr(l)),groupId:ae};i===Y.patchFunction?c.subtitle="โคต๏ธ":i===Y.patchObject?c.subtitle="๐Ÿงฉ":l&&!Array.isArray(l)&&(c.subtitle=l.type),l&&(c.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:l}}),n.addTimelineEvent({layerId:de,event:c})},{detached:!0,flush:"sync"});const a=t._hotUpdate;t._hotUpdate=r.markRaw(l=>{a(l),n.addTimelineEvent({layerId:de,event:{time:o(),title:"๐Ÿ”ฅ "+t.$id,subtitle:"HMR update",data:{store:q(t.$id),info:q("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(B),n.sendInspectorState(B)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(B),n.sendInspectorState(B),n.getSettings().logStoreChanges&&j(`Disposed "${t.$id}" store ๐Ÿ—‘`)},n.notifyComponentUpdate(),n.sendInspectorTree(B),n.sendInspectorState(B),n.getSettings().logStoreChanges&&j(`"${t.$id}" store installed ๐Ÿ†•`)})}let ln=0,ae;function cn(e,t,n){const o=t.reduce((a,s)=>(a[s]=r.toRaw(e)[s],a),{});for(const a in o)e[a]=function(){const s=ln,l=n?new Proxy(e,{get(...u){return ae=s,Reflect.get(...u)},set(...u){return ae=s,Reflect.set(...u)}}):e;ae=s;const i=o[a].apply(l,arguments);return ae=void 0,i}}function Ar({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){cn(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;r.toRaw(t)._hotUpdate=function(a){o.apply(this,arguments),cn(t,Object.keys(a._hmrPayload.actions),!!t._isOptionsAPI)}}Vr(e,t)}}function Rr(){const e=r.effectScope(!0),t=e.run(()=>r.ref({}));let n=[],o=[];const a=r.markRaw({install(s){$e(a),a._a=s,s.provide(Xt,a),s.config.globalProperties.$pinia=a,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ue&&Dr(s,a),o.forEach(l=>n.push(l)),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 process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof Proxy<"u"&&a.use(Ar),a}function un(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const a=e[n];ce(a)&&ce(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=un(a,o):e[n]=o}return e}const dn=()=>{};function pn(e,t,n,o=dn){e.push(t);const a=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(a),a}function me(e,...t){e.slice().forEach(n=>{n(...t)})}const Tr=e=>e(),fn=Symbol(),ct=Symbol();function ut(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],a=e[n];ce(a)&&ce(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=ut(a,o):e[n]=o}return e}const jr=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Br(e){return!ce(e)||!e.hasOwnProperty(jr)}const{assign:G}=Object;function hn(e){return!!(r.isRef(e)&&e.effect)}function mn(e,t,n,o){const{state:a,actions:s,getters:l}=t,i=n.state.value[e];let u;function c(){!i&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=a?a():{});const d=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(a?a():{}).value):r.toRefs(n.state.value[e]);return G(d,s,Object.keys(l||{}).reduce((p,f)=>(process.env.NODE_ENV!=="production"&&f in d&&console.warn(`[๐Ÿ]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),p[f]=r.markRaw(r.computed(()=>{$e(n);const h=n._s.get(e);return l[f].call(h,h)})),p),{}))}return u=dt(e,c,t,n,o,!0),u}function dt(e,t,n={},o,a,s){let l;const i=G({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const u={deep:!0};process.env.NODE_ENV!=="production"&&!Yt&&(u.onTrigger=E=>{c?h=E:c==!1&&!k._hotUpdating&&(Array.isArray(h)?h.push(E):console.error("๐Ÿ debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,d,p=[],f=[],h;const m=o.state.value[e];!s&&!m&&(process.env.NODE_ENV==="production"||!a)&&(o.state.value[e]={});const w=r.ref({});let $;function x(E){let v;c=d=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof E=="function"?(E(o.state.value[e]),v={type:Y.patchFunction,storeId:e,events:h}):(ut(o.state.value[e],E),v={type:Y.patchObject,payload:E,storeId:e,events:h});const A=$=Symbol();r.nextTick().then(()=>{$===A&&(c=!0)}),d=!0,me(p,v,o.state.value[e])}const O=s?function(){const{state:E}=n,v=E?E():{};this.$patch(A=>{G(A,v)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`๐Ÿ: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:dn;function S(){l.stop(),p=[],f=[],o._s.delete(e)}const V=(E,v="")=>{if(fn in E)return E[ct]=v,E;const A=function(){$e(o);const z=Array.from(arguments),K=[],Te=[];function je(L){K.push(L)}function Xe(L){Te.push(L)}me(f,{args:z,name:A[ct],store:k,after:je,onError:Xe});let X;try{X=E.apply(this&&this.$id===e?this:k,z)}catch(L){throw me(Te,L),L}return X instanceof Promise?X.then(L=>(me(K,L),L)).catch(L=>(me(Te,L),Promise.reject(L))):(me(K,X),X)};return A[fn]=!0,A[ct]=v,A},M=r.markRaw({actions:{},getters:{},state:[],hotState:w}),J={_p:o,$id:e,$onAction:pn.bind(null,f),$patch:x,$reset:O,$subscribe(E,v={}){const A=pn(p,E,v.detached,()=>z()),z=l.run(()=>r.watch(()=>o.state.value[e],K=>{(v.flush==="sync"?d:c)&&E({storeId:e,type:Y.direct,events:h},K)},G({},u,v)));return A},$dispose:S},k=r.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ue?G({_hmrPayload:M,_customProperties:r.markRaw(new Set)},J):J);o._s.set(e,k);const Q=(o._a&&o._a.runWithContext||Tr)(()=>o._e.run(()=>(l=r.effectScope()).run(()=>t({action:V}))));for(const E in Q){const v=Q[E];if(r.isRef(v)&&!hn(v)||r.isReactive(v))process.env.NODE_ENV!=="production"&&a?Be(w.value,E,r.toRef(Q,E)):s||(m&&Br(v)&&(r.isRef(v)?v.value=m[E]:ut(v,m[E])),o.state.value[e][E]=v),process.env.NODE_ENV!=="production"&&M.state.push(E);else if(typeof v=="function"){const A=process.env.NODE_ENV!=="production"&&a?v:V(v,E);Q[E]=A,process.env.NODE_ENV!=="production"&&(M.actions[E]=v),i.actions[E]=v}else process.env.NODE_ENV!=="production"&&hn(v)&&(M.getters[E]=s?n.getters[E]:v,ue&&(Q._getters||(Q._getters=r.markRaw([]))).push(E))}if(G(k,Q),G(r.toRaw(k),Q),Object.defineProperty(k,"$state",{get:()=>process.env.NODE_ENV!=="production"&&a?w.value:o.state.value[e],set:E=>{if(process.env.NODE_ENV!=="production"&&a)throw new Error("cannot set hotState");x(v=>{G(v,E)})}}),process.env.NODE_ENV!=="production"&&(k._hotUpdate=r.markRaw(E=>{k._hotUpdating=!0,E._hmrPayload.state.forEach(v=>{if(v in k.$state){const A=E.$state[v],z=k.$state[v];typeof A=="object"&&ce(A)&&ce(z)?un(A,z):E.$state[v]=z}Be(k,v,r.toRef(E.$state,v))}),Object.keys(k.$state).forEach(v=>{v in E.$state||rt(k,v)}),c=!1,d=!1,o.state.value[e]=r.toRef(E._hmrPayload,"hotState"),d=!0,r.nextTick().then(()=>{c=!0});for(const v in E._hmrPayload.actions){const A=E[v];Be(k,v,V(A,v))}for(const v in E._hmrPayload.getters){const A=E._hmrPayload.getters[v],z=s?r.computed(()=>($e(o),A.call(k,k))):A;Be(k,v,z)}Object.keys(k._hmrPayload.getters).forEach(v=>{v in E._hmrPayload.getters||rt(k,v)}),Object.keys(k._hmrPayload.actions).forEach(v=>{v in E._hmrPayload.actions||rt(k,v)}),k._hmrPayload=E._hmrPayload,k._getters=E._getters,k._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ue){const E={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(v=>{Object.defineProperty(k,v,G({value:k[v]},E))})}return o._p.forEach(E=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ue){const v=l.run(()=>E({store:k,app:o._a,pinia:o,options:i}));Object.keys(v||{}).forEach(A=>k._customProperties.add(A)),G(k,v)}else G(k,l.run(()=>E({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.`);l[0]="$state",he=!1,o.set(s,l,o.state.value),he=!0}})})}function Vr(e,t){Ue.includes(ze(t.$id))||Ue.push(ze(t.$id)),st({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ue,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:l,onError:i,name:u,args:c})=>{const d=ln++;n.addTimelineEvent({layerId:de,event:{time:o(),title:"๐Ÿ›ซ "+u,subtitle:"start",data:{store:q(t.$id),action:q(u),args:c},groupId:d}}),l(p=>{ae=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),title:"๐Ÿ›ฌ "+u,subtitle:"end",data:{store:q(t.$id),action:q(u),args:c,result:p},groupId:d}})}),i(p=>{ae=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),logType:"error",title:"๐Ÿ’ฅ "+u,subtitle:"end",data:{store:q(t.$id),action:q(u),args:c,error:p},groupId:d}})})},!0),t._customProperties.forEach(l=>{r.watch(()=>r.unref(t[l]),(i,u)=>{n.notifyComponentUpdate(),n.sendInspectorState(L),he&&n.addTimelineEvent({layerId:de,event:{time:o(),title:"Change",subtitle:l,data:{newValue:i,oldValue:u},groupId:ae}})},{deep:!0})}),t.$subscribe(({events:l,type:i},u)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(L),!he)return;const c={time:o(),title:Ir(i),data:Pr({store:q(t.$id)},Cr(l)),groupId:ae};i===Y.patchFunction?c.subtitle="โคต๏ธ":i===Y.patchObject?c.subtitle="๐Ÿงฉ":l&&!Array.isArray(l)&&(c.subtitle=l.type),l&&(c.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:l}}),n.addTimelineEvent({layerId:de,event:c})},{detached:!0,flush:"sync"});const a=t._hotUpdate;t._hotUpdate=r.markRaw(l=>{a(l),n.addTimelineEvent({layerId:de,event:{time:o(),title:"๐Ÿ”ฅ "+t.$id,subtitle:"HMR update",data:{store:q(t.$id),info:q("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L),n.getSettings().logStoreChanges&&B(`Disposed "${t.$id}" store ๐Ÿ—‘`)},n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L),n.getSettings().logStoreChanges&&B(`"${t.$id}" store installed ๐Ÿ†•`)})}let ln=0,ae;function cn(e,t,n){const o=t.reduce((a,s)=>(a[s]=r.toRaw(e)[s],a),{});for(const a in o)e[a]=function(){const s=ln,l=n?new Proxy(e,{get(...u){return ae=s,Reflect.get(...u)},set(...u){return ae=s,Reflect.set(...u)}}):e;ae=s;const i=o[a].apply(l,arguments);return ae=void 0,i}}function Ar({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){cn(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;r.toRaw(t)._hotUpdate=function(a){o.apply(this,arguments),cn(t,Object.keys(a._hmrPayload.actions),!!t._isOptionsAPI)}}Vr(e,t)}}function Tr(){const e=r.effectScope(!0),t=e.run(()=>r.ref({}));let n=[],o=[];const a=r.markRaw({install(s){$e(a),a._a=s,s.provide(Xt,a),s.config.globalProperties.$pinia=a,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ue&&Dr(s,a),o.forEach(l=>n.push(l)),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 process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof Proxy<"u"&&a.use(Ar),a}function un(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const a=e[n];ce(a)&&ce(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=un(a,o):e[n]=o}return e}const dn=()=>{};function pn(e,t,n,o=dn){e.push(t);const a=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(a),a}function me(e,...t){e.slice().forEach(n=>{n(...t)})}const Rr=e=>e(),fn=Symbol(),ct=Symbol();function ut(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],a=e[n];ce(a)&&ce(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=ut(a,o):e[n]=o}return e}const jr=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Br(e){return!ce(e)||!e.hasOwnProperty(jr)}const{assign:G}=Object;function hn(e){return!!(r.isRef(e)&&e.effect)}function mn(e,t,n,o){const{state:a,actions:s,getters:l}=t,i=n.state.value[e];let u;function c(){!i&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=a?a():{});const d=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(a?a():{}).value):r.toRefs(n.state.value[e]);return G(d,s,Object.keys(l||{}).reduce((p,f)=>(process.env.NODE_ENV!=="production"&&f in d&&console.warn(`[๐Ÿ]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),p[f]=r.markRaw(r.computed(()=>{$e(n);const h=n._s.get(e);return l[f].call(h,h)})),p),{}))}return u=dt(e,c,t,n,o,!0),u}function dt(e,t,n={},o,a,s){let l;const i=G({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const u={deep:!0};process.env.NODE_ENV!=="production"&&!Yt&&(u.onTrigger=E=>{c?h=E:c==!1&&!k._hotUpdating&&(Array.isArray(h)?h.push(E):console.error("๐Ÿ debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,d,p=[],f=[],h;const g=o.state.value[e];!s&&!g&&(process.env.NODE_ENV==="production"||!a)&&(o.state.value[e]={});const y=r.ref({});let $;function O(E){let v;c=d=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof E=="function"?(E(o.state.value[e]),v={type:Y.patchFunction,storeId:e,events:h}):(ut(o.state.value[e],E),v={type:Y.patchObject,payload:E,storeId:e,events:h});const T=$=Symbol();r.nextTick().then(()=>{$===T&&(c=!0)}),d=!0,me(p,v,o.state.value[e])}const S=s?function(){const{state:E}=n,v=E?E():{};this.$patch(T=>{G(T,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(){l.stop(),p=[],f=[],o._s.delete(e)}const P=(E,v="")=>{if(fn in E)return E[ct]=v,E;const T=function(){$e(o);const z=Array.from(arguments),K=[],Re=[];function je(M){K.push(M)}function Xe(M){Re.push(M)}me(f,{args:z,name:T[ct],store:k,after:je,onError:Xe});let X;try{X=E.apply(this&&this.$id===e?this:k,z)}catch(M){throw me(Re,M),M}return X instanceof Promise?X.then(M=>(me(K,M),M)).catch(M=>(me(Re,M),Promise.reject(M))):(me(K,X),X)};return T[fn]=!0,T[ct]=v,T},A=r.markRaw({actions:{},getters:{},state:[],hotState:y}),J={_p:o,$id:e,$onAction:pn.bind(null,f),$patch:O,$reset:S,$subscribe(E,v={}){const T=pn(p,E,v.detached,()=>z()),z=l.run(()=>r.watch(()=>o.state.value[e],K=>{(v.flush==="sync"?d:c)&&E({storeId:e,type:Y.direct,events:h},K)},G({},u,v)));return T},$dispose:I},k=r.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ue?G({_hmrPayload:A,_customProperties:r.markRaw(new Set)},J):J);o._s.set(e,k);const Q=(o._a&&o._a.runWithContext||Rr)(()=>o._e.run(()=>(l=r.effectScope()).run(()=>t({action:P}))));for(const E in Q){const v=Q[E];if(r.isRef(v)&&!hn(v)||r.isReactive(v))process.env.NODE_ENV!=="production"&&a?Be(y.value,E,r.toRef(Q,E)):s||(g&&Br(v)&&(r.isRef(v)?v.value=g[E]:ut(v,g[E])),o.state.value[e][E]=v),process.env.NODE_ENV!=="production"&&A.state.push(E);else if(typeof v=="function"){const T=process.env.NODE_ENV!=="production"&&a?v:P(v,E);Q[E]=T,process.env.NODE_ENV!=="production"&&(A.actions[E]=v),i.actions[E]=v}else process.env.NODE_ENV!=="production"&&hn(v)&&(A.getters[E]=s?n.getters[E]:v,ue&&(Q._getters||(Q._getters=r.markRaw([]))).push(E))}if(G(k,Q),G(r.toRaw(k),Q),Object.defineProperty(k,"$state",{get:()=>process.env.NODE_ENV!=="production"&&a?y.value:o.state.value[e],set:E=>{if(process.env.NODE_ENV!=="production"&&a)throw new Error("cannot set hotState");O(v=>{G(v,E)})}}),process.env.NODE_ENV!=="production"&&(k._hotUpdate=r.markRaw(E=>{k._hotUpdating=!0,E._hmrPayload.state.forEach(v=>{if(v in k.$state){const T=E.$state[v],z=k.$state[v];typeof T=="object"&&ce(T)&&ce(z)?un(T,z):E.$state[v]=z}Be(k,v,r.toRef(E.$state,v))}),Object.keys(k.$state).forEach(v=>{v in E.$state||rt(k,v)}),c=!1,d=!1,o.state.value[e]=r.toRef(E._hmrPayload,"hotState"),d=!0,r.nextTick().then(()=>{c=!0});for(const v in E._hmrPayload.actions){const T=E[v];Be(k,v,P(T,v))}for(const v in E._hmrPayload.getters){const T=E._hmrPayload.getters[v],z=s?r.computed(()=>($e(o),T.call(k,k))):T;Be(k,v,z)}Object.keys(k._hmrPayload.getters).forEach(v=>{v in E._hmrPayload.getters||rt(k,v)}),Object.keys(k._hmrPayload.actions).forEach(v=>{v in E._hmrPayload.actions||rt(k,v)}),k._hmrPayload=E._hmrPayload,k._getters=E._getters,k._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ue){const E={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(v=>{Object.defineProperty(k,v,G({value:k[v]},E))})}return o._p.forEach(E=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ue){const v=l.run(()=>E({store:k,app:o._a,pinia:o,options:i}));Object.keys(v||{}).forEach(T=>k._customProperties.add(T)),G(k,v)}else G(k,l.run(()=>E({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
- Found in store "${k.$id}".`),m&&s&&n.hydrate&&n.hydrate(k.$state,m),c=!0,d=!0,k}function Lr(e,t,n){let o,a;const s=typeof t=="function";o=e,a=s?n:t;function l(i,u){const c=r.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&ke&&ke._testing?null:i)||(c?r.inject(Xt,null):null),i&&$e(i),process.env.NODE_ENV!=="production"&&!ke)throw new Error(`[๐Ÿ]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
9
+ Found in store "${k.$id}".`),g&&s&&n.hydrate&&n.hydrate(k.$state,g),c=!0,d=!0,k}function Lr(e,t,n){let o,a;const s=typeof t=="function";o=e,a=s?n:t;function l(i,u){const c=r.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&ke&&ke._testing?null:i)||(c?r.inject(Xt,null):null),i&&$e(i),process.env.NODE_ENV!=="production"&&!ke)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.
11
11
  This will fail in production.`);i=ke,i._s.has(o)||(s?dt(o,t,a,i):mn(o,a,i),process.env.NODE_ENV!=="production"&&(l._pinia=i));const d=i._s.get(o);if(process.env.NODE_ENV!=="production"&&u){const p="__hot:"+o,f=s?dt(p,t,a,i,!0):mn(p,G({},a),i,!0);u._hotUpdate(f),delete i.state.value[p],i._s.delete(p)}if(process.env.NODE_ENV!=="production"&&ue){const p=r.getCurrentInstance();if(p&&p.proxy&&!u){const f=p.proxy,h="_pStores"in f?f._pStores:f._pStores={};h[o]=d}}return d}return l.$id=o,l}const Mr=Lr("data",()=>{const e=r.ref([]),t=r.ref({});return{records:e,record:t}});function gn(e){e||(e=r.inject("$registry"));const t=Mr(),n=r.ref(new ur(e,t)),o=r.ref(!1);return r.onBeforeMount(async()=>{var a,s;const l=e.router.currentRoute.value,i=(a=l.params.records)==null?void 0:a.toString().toLowerCase(),u=(s=l.params.record)==null?void 0:s.toString().toLowerCase();if(!i&&!u)return;const c=await e.getMeta(i);e.addDoctype(c),n.value.setup(c),i&&(u?await n.value.getRecord(c,u):await n.value.getRecords(c)),n.value.runAction(c,"LOAD",u?[u]:void 0),o.value=!0}),{stonecrop:n,isReady:o}}H(class tt{constructor(t,n){if(H(this,"name"),H(this,"router"),H(this,"registry"),H(this,"getMeta"),tt._root)return tt._root;tt._root=this,this.name="Registry",this.router=t,this.registry={},this.getMeta=n}addDoctype(t){t.doctype in Object.keys(this.registry)||(this.registry[t.slug]=t),this.router.hasRoute(t.doctype)||this.router.addRoute({path:`/${t.slug}`,name:t.slug,component:t.component})}},"_root");/*!
12
12
  * vue-router v4.4.5
13
13
  * (c) 2024 Eduardo San Martin Morote
14
14
  * @license MIT
15
- */const ee=typeof document<"u";function yn(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Wr(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&yn(e.default)}const P=Object.assign;function pt(e,t){const n={};for(const o in t){const a=t[o];n[o]=U(a)?a.map(e):e(a)}return n}const Se=()=>{},U=Array.isArray;function N(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const wn=/#/g,Ur=/&/g,zr=/\//g,Fr=/=/g,Hr=/\?/g,bn=/\+/g,Gr=/%5B/g,qr=/%5D/g,vn=/%5E/g,Jr=/%60/g,En=/%7B/g,Kr=/%7C/g,_n=/%7D/g,Yr=/%20/g;function ft(e){return encodeURI(""+e).replace(Kr,"|").replace(Gr,"[").replace(qr,"]")}function Qr(e){return ft(e).replace(En,"{").replace(_n,"}").replace(vn,"^")}function ht(e){return ft(e).replace(bn,"%2B").replace(Yr,"+").replace(wn,"%23").replace(Ur,"%26").replace(Jr,"`").replace(En,"{").replace(_n,"}").replace(vn,"^")}function Xr(e){return ht(e).replace(Fr,"%3D")}function Zr(e){return ft(e).replace(wn,"%23").replace(Hr,"%3F")}function ea(e){return e==null?"":Zr(e).replace(zr,"%2F")}function ge(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&N(`Error decoding "${e}". Using original value`)}return""+e}const ta=/\/$/,na=e=>e.replace(ta,"");function mt(e,t,n="/"){let o,a={},s="",l="";const i=t.indexOf("#");let u=t.indexOf("?");return i<u&&i>=0&&(u=-1),u>-1&&(o=t.slice(0,u),s=t.slice(u+1,i>-1?i:t.length),a=e(s)),i>-1&&(o=o||t.slice(0,i),l=t.slice(i,t.length)),o=aa(o??t,n),{fullPath:o+(s&&"?")+s+l,path:o,query:a,hash:ge(l)}}function oa(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function kn(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function $n(e,t,n){const o=t.matched.length-1,a=n.matched.length-1;return o>-1&&o===a&&se(t.matched[o],n.matched[a])&&Sn(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 Sn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ra(e[n],t[n]))return!1;return!0}function ra(e,t){return U(e)?On(e,t):U(t)?On(t,e):e===t}function On(e,t){return U(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function aa(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return N(`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("/"),a=o[o.length-1];(a===".."||a===".")&&o.push("");let s=n.length-1,l,i;for(l=0;l<o.length;l++)if(i=o[l],i!==".")if(i==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+o.slice(l).join("/")}const ie={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Oe;(function(e){e.pop="pop",e.push="push"})(Oe||(Oe={}));var Ne;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ne||(Ne={}));function sa(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),na(e)}const ia=/^[^#]+#/;function la(e,t){return e.replace(ia,"#")+t}function ca(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 Fe=()=>({left:window.scrollX,top:window.scrollY});function ua(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){N(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{N(`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 a=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a){process.env.NODE_ENV!=="production"&&N(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=ca(a,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 Nn(e,t){return(history.state?history.state.position-t:-1)+e}const gt=new Map;function da(e,t){gt.set(e,t)}function pa(e){const t=gt.get(e);return gt.delete(e),t}let fa=()=>location.protocol+"//"+location.host;function xn(e,t){const{pathname:n,search:o,hash:a}=t,s=e.indexOf("#");if(s>-1){let l=a.includes(e.slice(s))?e.slice(s).length:1,i=a.slice(l);return i[0]!=="/"&&(i="/"+i),kn(i,"")}return kn(n,e)+o+a}function ha(e,t,n,o){let a=[],s=[],l=null;const i=({state:f})=>{const h=xn(e,location),m=n.value,w=t.value;let $=0;if(f){if(n.value=h,t.value=f,l&&l===m){l=null;return}$=w?f.position-w.position:0}else o(h);a.forEach(x=>{x(n.value,m,{delta:$,type:Oe.pop,direction:$?$>0?Ne.forward:Ne.back:Ne.unknown})})};function u(){l=n.value}function c(f){a.push(f);const h=()=>{const m=a.indexOf(f);m>-1&&a.splice(m,1)};return s.push(h),h}function d(){const{history:f}=window;f.state&&f.replaceState(P({},f.state,{scroll:Fe()}),"")}function p(){for(const f of s)f();s=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:u,listen:c,destroy:p}}function Cn(e,t,n,o=!1,a=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:a?Fe():null}}function ma(e){const{history:t,location:n}=window,o={value:xn(e,n)},a={value:t.state};a.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(u,c,d){const p=e.indexOf("#"),f=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+u:fa()+e+u;try{t[d?"replaceState":"pushState"](c,"",f),a.value=c}catch(h){process.env.NODE_ENV!=="production"?N("Error with push/replace State",h):console.error(h),n[d?"replace":"assign"](f)}}function l(u,c){const d=P({},t.state,Cn(a.value.back,u,a.value.forward,!0),c,{position:a.value.position});s(u,d,!0),o.value=u}function i(u,c){const d=P({},a.value,t.state,{forward:u,scroll:Fe()});process.env.NODE_ENV!=="production"&&!t.state&&N(`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 yn(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Wr(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&yn(e.default)}const D=Object.assign;function pt(e,t){const n={};for(const o in t){const a=t[o];n[o]=U(a)?a.map(e):e(a)}return n}const Se=()=>{},U=Array.isArray;function N(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const wn=/#/g,Ur=/&/g,zr=/\//g,Fr=/=/g,Hr=/\?/g,bn=/\+/g,Gr=/%5B/g,qr=/%5D/g,vn=/%5E/g,Jr=/%60/g,En=/%7B/g,Kr=/%7C/g,_n=/%7D/g,Yr=/%20/g;function ft(e){return encodeURI(""+e).replace(Kr,"|").replace(Gr,"[").replace(qr,"]")}function Qr(e){return ft(e).replace(En,"{").replace(_n,"}").replace(vn,"^")}function ht(e){return ft(e).replace(bn,"%2B").replace(Yr,"+").replace(wn,"%23").replace(Ur,"%26").replace(Jr,"`").replace(En,"{").replace(_n,"}").replace(vn,"^")}function Xr(e){return ht(e).replace(Fr,"%3D")}function Zr(e){return ft(e).replace(wn,"%23").replace(Hr,"%3F")}function ea(e){return e==null?"":Zr(e).replace(zr,"%2F")}function ge(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&N(`Error decoding "${e}". Using original value`)}return""+e}const ta=/\/$/,na=e=>e.replace(ta,"");function mt(e,t,n="/"){let o,a={},s="",l="";const i=t.indexOf("#");let u=t.indexOf("?");return i<u&&i>=0&&(u=-1),u>-1&&(o=t.slice(0,u),s=t.slice(u+1,i>-1?i:t.length),a=e(s)),i>-1&&(o=o||t.slice(0,i),l=t.slice(i,t.length)),o=aa(o??t,n),{fullPath:o+(s&&"?")+s+l,path:o,query:a,hash:ge(l)}}function oa(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function kn(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function $n(e,t,n){const o=t.matched.length-1,a=n.matched.length-1;return o>-1&&o===a&&se(t.matched[o],n.matched[a])&&Sn(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 Sn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ra(e[n],t[n]))return!1;return!0}function ra(e,t){return U(e)?On(e,t):U(t)?On(t,e):e===t}function On(e,t){return U(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function aa(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return N(`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("/"),a=o[o.length-1];(a===".."||a===".")&&o.push("");let s=n.length-1,l,i;for(l=0;l<o.length;l++)if(i=o[l],i!==".")if(i==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+o.slice(l).join("/")}const ie={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Oe;(function(e){e.pop="pop",e.push="push"})(Oe||(Oe={}));var Ne;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ne||(Ne={}));function sa(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),na(e)}const ia=/^[^#]+#/;function la(e,t){return e.replace(ia,"#")+t}function ca(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 Fe=()=>({left:window.scrollX,top:window.scrollY});function ua(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){N(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{N(`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 a=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a){process.env.NODE_ENV!=="production"&&N(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=ca(a,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 Nn(e,t){return(history.state?history.state.position-t:-1)+e}const gt=new Map;function da(e,t){gt.set(e,t)}function pa(e){const t=gt.get(e);return gt.delete(e),t}let fa=()=>location.protocol+"//"+location.host;function xn(e,t){const{pathname:n,search:o,hash:a}=t,s=e.indexOf("#");if(s>-1){let l=a.includes(e.slice(s))?e.slice(s).length:1,i=a.slice(l);return i[0]!=="/"&&(i="/"+i),kn(i,"")}return kn(n,e)+o+a}function ha(e,t,n,o){let a=[],s=[],l=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,l&&l===g){l=null;return}$=y?f.position-y.position:0}else o(h);a.forEach(O=>{O(n.value,g,{delta:$,type:Oe.pop,direction:$?$>0?Ne.forward:Ne.back:Ne.unknown})})};function u(){l=n.value}function c(f){a.push(f);const h=()=>{const g=a.indexOf(f);g>-1&&a.splice(g,1)};return s.push(h),h}function d(){const{history:f}=window;f.state&&f.replaceState(D({},f.state,{scroll:Fe()}),"")}function p(){for(const f of s)f();s=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:u,listen:c,destroy:p}}function Cn(e,t,n,o=!1,a=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:a?Fe():null}}function ma(e){const{history:t,location:n}=window,o={value:xn(e,n)},a={value:t.state};a.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(u,c,d){const p=e.indexOf("#"),f=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+u:fa()+e+u;try{t[d?"replaceState":"pushState"](c,"",f),a.value=c}catch(h){process.env.NODE_ENV!=="production"?N("Error with push/replace State",h):console.error(h),n[d?"replace":"assign"](f)}}function l(u,c){const d=D({},t.state,Cn(a.value.back,u,a.value.forward,!0),c,{position:a.value.position});s(u,d,!0),o.value=u}function i(u,c){const d=D({},a.value,t.state,{forward:u,scroll:Fe()});process.env.NODE_ENV!=="production"&&!t.state&&N(`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
- You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`),s(d.current,d,!0);const p=P({},Cn(o.value,u,null),{position:d.position+1},c);s(u,p,!1),o.value=u}return{location:o,state:a,push:i,replace:l}}function ga(e){e=sa(e);const t=ma(e),n=ha(e,t.state,t.location,t.replace);function o(s,l=!0){l||n.pauseListeners(),history.go(s)}const a=P({location:"",base:e,go:o,createHref:la.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function He(e){return typeof e=="string"||e&&typeof e=="object"}function In(e){return typeof e=="string"||typeof e=="symbol"}const yt=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Pn;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Pn||(Pn={}));const ya={1({location:e,currentLocation:t}){return`No match for
19
+ You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`),s(d.current,d,!0);const p=D({},Cn(o.value,u,null),{position:d.position+1},c);s(u,p,!1),o.value=u}return{location:o,state:a,push:i,replace:l}}function ga(e){e=sa(e);const t=ma(e),n=ha(e,t.state,t.location,t.replace);function o(s,l=!0){l||n.pauseListeners(),history.go(s)}const a=D({location:"",base:e,go:o,createHref:la.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function He(e){return typeof e=="string"||e&&typeof e=="object"}function In(e){return typeof e=="string"||typeof e=="symbol"}const yt=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Pn;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Pn||(Pn={}));const ya={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 "${ba(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(ya[e](t)),{type:e,[yt]:!0},t):P(new Error,{type:e,[yt]:!0},t)}function te(e,t){return e instanceof Error&&yt in e&&(t==null||!!(e.type&t))}const wa=["params","query","hash"];function ba(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of wa)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Dn="[^/]+?",va={sensitive:!1,strict:!1,start:!0,end:!0},Ea=/[.+*?^${}()[\]/\\]/g;function _a(e,t){const n=P({},va,t),o=[];let a=n.start?"^":"";const s=[];for(const c of e){const d=c.length?[]:[90];n.strict&&!c.length&&(a+="/");for(let p=0;p<c.length;p++){const f=c[p];let h=40+(n.sensitive?.25:0);if(f.type===0)p||(a+="/"),a+=f.value.replace(Ea,"\\$&"),h+=40;else if(f.type===1){const{value:m,repeatable:w,optional:$,regexp:x}=f;s.push({name:m,repeatable:w,optional:$});const O=x||Dn;if(O!==Dn){h+=10;try{new RegExp(`(${O})`)}catch(V){throw new Error(`Invalid custom RegExp for param "${m}" (${O}): `+V.message)}}let S=w?`((?:${O})(?:/(?:${O}))*)`:`(${O})`;p||(S=$&&c.length<2?`(?:/${S})`:"/"+S),$&&(S+="?"),a+=S,h+=20,$&&(h+=-8),w&&(h+=-20),O===".*"&&(h+=-50)}d.push(h)}o.push(d)}if(n.strict&&n.end){const c=o.length-1;o[c][o[c].length-1]+=.7000000000000001}n.strict||(a+="/?"),n.end?a+="$":n.strict&&(a+="(?:/|$)");const l=new RegExp(a,n.sensitive?"":"i");function i(c){const d=c.match(l),p={};if(!d)return null;for(let f=1;f<d.length;f++){const h=d[f]||"",m=s[f-1];p[m.name]=h&&m.repeatable?h.split("/"):h}return p}function u(c){let d="",p=!1;for(const f of e){(!p||!d.endsWith("/"))&&(d+="/"),p=!1;for(const h of f)if(h.type===0)d+=h.value;else if(h.type===1){const{value:m,repeatable:w,optional:$}=h,x=m in c?c[m]:"";if(U(x)&&!w)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const O=U(x)?x.join("/"):x;if(!O)if($)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):p=!0);else throw new Error(`Missing required param "${m}"`);d+=O}}return d||"/"}return{re:l,score:o,keys:s,parse:i,stringify:u}}function ka(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 Vn(e,t){let n=0;const o=e.score,a=t.score;for(;n<o.length&&n<a.length;){const s=ka(o[n],a[n]);if(s)return s;n++}if(Math.abs(a.length-o.length)===1){if(An(o))return 1;if(An(a))return-1}return a.length-o.length}function An(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const $a={type:0,value:""},Sa=/[a-zA-Z0-9_]/;function Oa(e){if(!e)return[[]];if(e==="/")return[[$a]];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})/"${c}": ${h}`)}let n=0,o=n;const a=[];let s;function l(){s&&a.push(s),s=[]}let i=0,u,c="",d="";function p(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=u}for(;i<e.length;){if(u=e[i++],u==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:u==="/"?(c&&p(),l()):u===":"?(p(),n=1):f();break;case 4:f(),n=o;break;case 1:u==="("?n=2:Sa.test(u)?f():(p(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&i--);break;case 2:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=3:d+=u;break;case 3:p(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&i--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),p(),l(),a}function Na(e,t,n){const o=_a(Oa(e.path),n);if(process.env.NODE_ENV!=="production"){const s=new Set;for(const l of o.keys)s.has(l.name)&&N(`Found duplicated params with name "${l.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),s.add(l.name)}const a=P(o,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function xa(e,t){const n=[],o=new Map;t=Bn({strict:!1,end:!0,sensitive:!1},t);function a(p){return o.get(p)}function s(p,f,h){const m=!h,w=Tn(p);process.env.NODE_ENV!=="production"&&Da(w,f),w.aliasOf=h&&h.record;const $=Bn(t,p),x=[w];if("alias"in p){const V=typeof p.alias=="string"?[p.alias]:p.alias;for(const M of V)x.push(Tn(P({},w,{components:h?h.record.components:w.components,path:M,aliasOf:h?h.record:w})))}let O,S;for(const V of x){const{path:M}=V;if(f&&M[0]!=="/"){const J=f.record.path,k=J[J.length-1]==="/"?"":"/";V.path=f.record.path+(M&&k+M)}if(process.env.NODE_ENV!=="production"&&V.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
23
- See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);if(O=Na(V,f,$),process.env.NODE_ENV!=="production"&&f&&M[0]==="/"&&Va(O,f),h?(h.alias.push(O),process.env.NODE_ENV!=="production"&&Pa(h,O)):(S=S||O,S!==O&&S.alias.push(O),m&&p.name&&!jn(O)&&l(p.name)),Ln(O)&&u(O),w.children){const J=w.children;for(let k=0;k<J.length;k++)s(J[k],O,h&&h.children[k])}h=h||O}return S?()=>{l(S)}:Se}function l(p){if(In(p)){const f=o.get(p);f&&(o.delete(p),n.splice(n.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=n.indexOf(p);f>-1&&(n.splice(f,1),p.record.name&&o.delete(p.record.name),p.children.forEach(l),p.alias.forEach(l))}}function i(){return n}function u(p){const f=Aa(p,n);n.splice(f,0,p),p.record.name&&!jn(p)&&o.set(p.record.name,p)}function c(p,f){let h,m={},w,$;if("name"in p&&p.name){if(h=o.get(p.name),!h)throw ye(1,{location:p});if(process.env.NODE_ENV!=="production"){const S=Object.keys(p.params||{}).filter(V=>!h.keys.find(M=>M.name===V));S.length&&N(`Discarded invalid param(s) "${S.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,m=P(Rn(f.params,h.keys.filter(S=>!S.optional).concat(h.parent?h.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),p.params&&Rn(p.params,h.keys.map(S=>S.name))),w=h.stringify(m)}else if(p.path!=null)w=p.path,process.env.NODE_ENV!=="production"&&!w.startsWith("/")&&N(`The Matcher cannot resolve relative paths but received "${w}". Unless you directly called \`matcher.resolve("${w}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),h=n.find(S=>S.re.test(w)),h&&(m=h.parse(w),$=h.record.name);else{if(h=f.name?o.get(f.name):n.find(S=>S.re.test(f.path)),!h)throw ye(1,{location:p,currentLocation:f});$=h.record.name,m=P({},f.params,p.params),w=h.stringify(m)}const x=[];let O=h;for(;O;)x.unshift(O.record),O=O.parent;return{name:$,path:w,params:m,matched:x,meta:Ia(x)}}e.forEach(p=>s(p));function d(){n.length=0,o.clear()}return{addRoute:s,resolve:c,removeRoute:l,clearRoutes:d,getRoutes:i,getRecordMatcher:a}}function Rn(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Tn(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ca(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ca(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 jn(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ia(e){return e.reduce((t,n)=>P(t,n.meta),{})}function Bn(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function wt(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function Pa(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(wt.bind(null,n)))return N(`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(wt.bind(null,n)))return N(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function Da(e,t){t&&t.record.name&&!e.name&&!e.path&&N(`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 Va(e,t){for(const n of t.keys)if(!e.keys.find(wt.bind(null,n)))return N(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Aa(e,t){let n=0,o=t.length;for(;n!==o;){const s=n+o>>1;Vn(e,t[s])<0?o=s:n=s+1}const a=Ra(e);return a&&(o=t.lastIndexOf(a,o-1),process.env.NODE_ENV!=="production"&&o<0&&N(`Finding ancestor route "${a.record.path}" failed for "${e.record.path}"`)),o}function Ra(e){let t=e;for(;t=t.parent;)if(Ln(t)&&Vn(e,t)===0)return t}function Ln({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ta(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 a=n[o].replace(bn," "),s=a.indexOf("="),l=ge(s<0?a:a.slice(0,s)),i=s<0?null:ge(a.slice(s+1));if(l in t){let u=t[l];U(u)||(u=t[l]=[u]),u.push(i)}else t[l]=i}return t}function Mn(e){let t="";for(let n in e){const o=e[n];if(n=Xr(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(U(o)?o.map(a=>a&&ht(a)):[o&&ht(o)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function ja(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=U(o)?o.map(a=>a==null?null:""+a):o==null?o:""+o)}return t}const Ba=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Wn=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),bt=Symbol(process.env.NODE_ENV!=="production"?"router":""),Un=Symbol(process.env.NODE_ENV!=="production"?"route location":""),vt=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function xe(){let e=[];function t(o){return e.push(o),()=>{const a=e.indexOf(o);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function le(e,t,n,o,a,s=l=>l()){const l=o&&(o.enterCallbacks[a]=o.enterCallbacks[a]||[]);return()=>new Promise((i,u)=>{const c=f=>{f===!1?u(ye(4,{from:n,to:t})):f instanceof Error?u(f):He(f)?u(ye(2,{from:t,to:f})):(l&&o.enterCallbacks[a]===l&&typeof f=="function"&&l.push(f),i())},d=s(()=>e.call(o&&o.instances[a],t,n,process.env.NODE_ENV!=="production"?La(c,t,n):c));let p=Promise.resolve(d);if(e.length<3&&(p=p.then(c)),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 "${ba(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"?D(new Error(ya[e](t)),{type:e,[yt]:!0},t):D(new Error,{type:e,[yt]:!0},t)}function te(e,t){return e instanceof Error&&yt in e&&(t==null||!!(e.type&t))}const wa=["params","query","hash"];function ba(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of wa)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Dn="[^/]+?",va={sensitive:!1,strict:!1,start:!0,end:!0},Ea=/[.+*?^${}()[\]/\\]/g;function _a(e,t){const n=D({},va,t),o=[];let a=n.start?"^":"";const s=[];for(const c of e){const d=c.length?[]:[90];n.strict&&!c.length&&(a+="/");for(let p=0;p<c.length;p++){const f=c[p];let h=40+(n.sensitive?.25:0);if(f.type===0)p||(a+="/"),a+=f.value.replace(Ea,"\\$&"),h+=40;else if(f.type===1){const{value:g,repeatable:y,optional:$,regexp:O}=f;s.push({name:g,repeatable:y,optional:$});const S=O||Dn;if(S!==Dn){h+=10;try{new RegExp(`(${S})`)}catch(P){throw new Error(`Invalid custom RegExp for param "${g}" (${S}): `+P.message)}}let I=y?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;p||(I=$&&c.length<2?`(?:/${I})`:"/"+I),$&&(I+="?"),a+=I,h+=20,$&&(h+=-8),y&&(h+=-20),S===".*"&&(h+=-50)}d.push(h)}o.push(d)}if(n.strict&&n.end){const c=o.length-1;o[c][o[c].length-1]+=.7000000000000001}n.strict||(a+="/?"),n.end?a+="$":n.strict&&(a+="(?:/|$)");const l=new RegExp(a,n.sensitive?"":"i");function i(c){const d=c.match(l),p={};if(!d)return null;for(let f=1;f<d.length;f++){const h=d[f]||"",g=s[f-1];p[g.name]=h&&g.repeatable?h.split("/"):h}return p}function u(c){let d="",p=!1;for(const f of e){(!p||!d.endsWith("/"))&&(d+="/"),p=!1;for(const h of f)if(h.type===0)d+=h.value;else if(h.type===1){const{value:g,repeatable:y,optional:$}=h,O=g in c?c[g]:"";if(U(O)&&!y)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const S=U(O)?O.join("/"):O;if(!S)if($)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):p=!0);else throw new Error(`Missing required param "${g}"`);d+=S}}return d||"/"}return{re:l,score:o,keys:s,parse:i,stringify:u}}function ka(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 Vn(e,t){let n=0;const o=e.score,a=t.score;for(;n<o.length&&n<a.length;){const s=ka(o[n],a[n]);if(s)return s;n++}if(Math.abs(a.length-o.length)===1){if(An(o))return 1;if(An(a))return-1}return a.length-o.length}function An(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const $a={type:0,value:""},Sa=/[a-zA-Z0-9_]/;function Oa(e){if(!e)return[[]];if(e==="/")return[[$a]];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})/"${c}": ${h}`)}let n=0,o=n;const a=[];let s;function l(){s&&a.push(s),s=[]}let i=0,u,c="",d="";function p(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=u}for(;i<e.length;){if(u=e[i++],u==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:u==="/"?(c&&p(),l()):u===":"?(p(),n=1):f();break;case 4:f(),n=o;break;case 1:u==="("?n=2:Sa.test(u)?f():(p(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&i--);break;case 2:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=3:d+=u;break;case 3:p(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&i--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),p(),l(),a}function Na(e,t,n){const o=_a(Oa(e.path),n);if(process.env.NODE_ENV!=="production"){const s=new Set;for(const l of o.keys)s.has(l.name)&&N(`Found duplicated params with name "${l.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),s.add(l.name)}const a=D(o,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function xa(e,t){const n=[],o=new Map;t=Bn({strict:!1,end:!0,sensitive:!1},t);function a(p){return o.get(p)}function s(p,f,h){const g=!h,y=Rn(p);process.env.NODE_ENV!=="production"&&Da(y,f),y.aliasOf=h&&h.record;const $=Bn(t,p),O=[y];if("alias"in p){const P=typeof p.alias=="string"?[p.alias]:p.alias;for(const A of P)O.push(Rn(D({},y,{components:h?h.record.components:y.components,path:A,aliasOf:h?h.record:y})))}let S,I;for(const P of O){const{path:A}=P;if(f&&A[0]!=="/"){const J=f.record.path,k=J[J.length-1]==="/"?"":"/";P.path=f.record.path+(A&&k+A)}if(process.env.NODE_ENV!=="production"&&P.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
23
+ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);if(S=Na(P,f,$),process.env.NODE_ENV!=="production"&&f&&A[0]==="/"&&Va(S,f),h?(h.alias.push(S),process.env.NODE_ENV!=="production"&&Pa(h,S)):(I=I||S,I!==S&&I.alias.push(S),g&&p.name&&!jn(S)&&l(p.name)),Ln(S)&&u(S),y.children){const J=y.children;for(let k=0;k<J.length;k++)s(J[k],S,h&&h.children[k])}h=h||S}return I?()=>{l(I)}:Se}function l(p){if(In(p)){const f=o.get(p);f&&(o.delete(p),n.splice(n.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=n.indexOf(p);f>-1&&(n.splice(f,1),p.record.name&&o.delete(p.record.name),p.children.forEach(l),p.alias.forEach(l))}}function i(){return n}function u(p){const f=Aa(p,n);n.splice(f,0,p),p.record.name&&!jn(p)&&o.set(p.record.name,p)}function c(p,f){let h,g={},y,$;if("name"in p&&p.name){if(h=o.get(p.name),!h)throw ye(1,{location:p});if(process.env.NODE_ENV!=="production"){const I=Object.keys(p.params||{}).filter(P=>!h.keys.find(A=>A.name===P));I.length&&N(`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=D(Tn(f.params,h.keys.filter(I=>!I.optional).concat(h.parent?h.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),p.params&&Tn(p.params,h.keys.map(I=>I.name))),y=h.stringify(g)}else if(p.path!=null)y=p.path,process.env.NODE_ENV!=="production"&&!y.startsWith("/")&&N(`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:p,currentLocation:f});$=h.record.name,g=D({},f.params,p.params),y=h.stringify(g)}const O=[];let S=h;for(;S;)O.unshift(S.record),S=S.parent;return{name:$,path:y,params:g,matched:O,meta:Ia(O)}}e.forEach(p=>s(p));function d(){n.length=0,o.clear()}return{addRoute:s,resolve:c,removeRoute:l,clearRoutes:d,getRoutes:i,getRecordMatcher:a}}function Tn(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Rn(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ca(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ca(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 jn(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ia(e){return e.reduce((t,n)=>D(t,n.meta),{})}function Bn(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function wt(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function Pa(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(wt.bind(null,n)))return N(`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(wt.bind(null,n)))return N(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function Da(e,t){t&&t.record.name&&!e.name&&!e.path&&N(`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 Va(e,t){for(const n of t.keys)if(!e.keys.find(wt.bind(null,n)))return N(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Aa(e,t){let n=0,o=t.length;for(;n!==o;){const s=n+o>>1;Vn(e,t[s])<0?o=s:n=s+1}const a=Ta(e);return a&&(o=t.lastIndexOf(a,o-1),process.env.NODE_ENV!=="production"&&o<0&&N(`Finding ancestor route "${a.record.path}" failed for "${e.record.path}"`)),o}function Ta(e){let t=e;for(;t=t.parent;)if(Ln(t)&&Vn(e,t)===0)return t}function Ln({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 a=n[o].replace(bn," "),s=a.indexOf("="),l=ge(s<0?a:a.slice(0,s)),i=s<0?null:ge(a.slice(s+1));if(l in t){let u=t[l];U(u)||(u=t[l]=[u]),u.push(i)}else t[l]=i}return t}function Mn(e){let t="";for(let n in e){const o=e[n];if(n=Xr(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(U(o)?o.map(a=>a&&ht(a)):[o&&ht(o)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function ja(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=U(o)?o.map(a=>a==null?null:""+a):o==null?o:""+o)}return t}const Ba=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Wn=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),bt=Symbol(process.env.NODE_ENV!=="production"?"router":""),Un=Symbol(process.env.NODE_ENV!=="production"?"route location":""),vt=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function xe(){let e=[];function t(o){return e.push(o),()=>{const a=e.indexOf(o);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function le(e,t,n,o,a,s=l=>l()){const l=o&&(o.enterCallbacks[a]=o.enterCallbacks[a]||[]);return()=>new Promise((i,u)=>{const c=f=>{f===!1?u(ye(4,{from:n,to:t})):f instanceof Error?u(f):He(f)?u(ye(2,{from:t,to:f})):(l&&o.enterCallbacks[a]===l&&typeof f=="function"&&l.push(f),i())},d=s(()=>e.call(o&&o.instances[a],t,n,process.env.NODE_ENV!=="production"?La(c,t,n):c));let p=Promise.resolve(d);if(e.length<3&&(p=p.then(c)),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 d=="object"&&"then"in d)p=p.then(h=>c._called?h:(N(f),Promise.reject(new Error("Invalid navigation guard"))));else if(d!==void 0&&!c._called){N(f),u(new Error("Invalid navigation guard"));return}}p.catch(f=>u(f))})}function La(e,t,n){let o=0;return function(){o++===1&&N(`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 Et(e,t,n,o,a=s=>s()){const s=[];for(const l of e){process.env.NODE_ENV!=="production"&&!l.components&&!l.children.length&&N(`Record with path "${l.path}" is either missing a "component(s)" or "children" property.`);for(const i in l.components){let u=l.components[i];if(process.env.NODE_ENV!=="production"){if(!u||typeof u!="object"&&typeof u!="function")throw N(`Component "${i}" in record with path "${l.path}" is not a valid component. Received "${String(u)}".`),new Error("Invalid route component");if("then"in u){N(`Component "${i}" in record with path "${l.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 c=u;u=()=>c}else u.__asyncLoader&&!u.__warnedDefineAsync&&(u.__warnedDefineAsync=!0,N(`Component "${i}" in record with path "${l.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!l.instances[i]))if(yn(u)){const c=(u.__vccOpts||u)[t];c&&s.push(le(c,n,o,l,i,a))}else{let c=u();process.env.NODE_ENV!=="production"&&!("catch"in c)&&(N(`Component "${i}" in record with path "${l.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.`),c=Promise.resolve(c)),s.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${i}" at "${l.path}"`);const p=Wr(d)?d.default:d;l.mods[i]=d,l.components[i]=p;const f=(p.__vccOpts||p)[t];return f&&le(f,n,o,l,i,a)()}))}}}return s}function zn(e){const t=r.inject(bt),n=r.inject(Un);let o=!1,a=null;const s=r.computed(()=>{const d=r.unref(e.to);return process.env.NODE_ENV!=="production"&&(!o||d!==a)&&(He(d)||(o?N(`Invalid value for prop "to" in useLink()
26
26
  - to:`,d,`
27
27
  - previous to:`,a,`
28
28
  - props:`,e):N(`Invalid value for prop "to" in useLink()
29
29
  - to:`,d,`
30
- - props:`,e)),a=d,o=!0),t.resolve(d)}),l=r.computed(()=>{const{matched:d}=s.value,{length:p}=d,f=d[p-1],h=n.matched;if(!f||!h.length)return-1;const m=h.findIndex(se.bind(null,f));if(m>-1)return m;const w=Fn(d[p-2]);return p>1&&Fn(f)===w&&h[h.length-1].path!==w?h.findIndex(se.bind(null,d[p-2])):m}),i=r.computed(()=>l.value>-1&&za(n.params,s.value.params)),u=r.computed(()=>l.value>-1&&l.value===n.matched.length-1&&Sn(n.params,s.value.params));function c(d={}){return Ua(d)?t[r.unref(e.replace)?"replace":"push"](r.unref(e.to)).catch(Se):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&ee){const d=r.getCurrentInstance();if(d){const p={route:s.value,isActive:i.value,isExactActive:u.value,error:null};d.__vrl_devtools=d.__vrl_devtools||[],d.__vrl_devtools.push(p),r.watchEffect(()=>{p.route=s.value,p.isActive=i.value,p.isExactActive=u.value,p.error=He(r.unref(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:s,href:r.computed(()=>s.value.href),isActive:i,isExactActive:u,navigate:c}}const Ma=r.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:zn,setup(e,{slots:t}){const n=r.reactive(zn(e)),{options:o}=r.inject(bt),a=r.computed(()=>({[Hn(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Hn(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:r.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},s)}}}),Wa=Ma;function Ua(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 za(e,t){for(const n in t){const o=t[n],a=e[n];if(typeof o=="string"){if(o!==a)return!1}else if(!U(a)||a.length!==o.length||o.some((s,l)=>s!==a[l]))return!1}return!0}function Fn(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Hn=(e,t,n)=>e??t??n,Fa=r.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=r.inject(vt),a=r.computed(()=>e.route||o.value),s=r.inject(Wn,0),l=r.computed(()=>{let c=r.unref(s);const{matched:d}=a.value;let p;for(;(p=d[c])&&!p.components;)c++;return c}),i=r.computed(()=>a.value.matched[l.value]);r.provide(Wn,r.computed(()=>l.value+1)),r.provide(Ba,i),r.provide(vt,a);const u=r.ref();return r.watch(()=>[u.value,i.value,e.name],([c,d,p],[f,h,m])=>{d&&(d.instances[p]=c,h&&h!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),c&&d&&(!h||!se(d,h)||!f)&&(d.enterCallbacks[p]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=a.value,d=e.name,p=i.value,f=p&&p.components[d];if(!f)return Gn(n.default,{Component:f,route:c});const h=p.props[d],m=h?h===!0?c.params:typeof h=="function"?h(c):h:null,w=r.h(f,P({},m,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(p.instances[d]=null)},ref:u}));if(process.env.NODE_ENV!=="production"&&ee&&w.ref){const $={depth:l.value,name:p.name,path:p.path,meta:p.meta};(U(w.ref)?w.ref.map(x=>x.i):[w.ref.i]).forEach(x=>{x.__vrv_devtools=$})}return Gn(n.default,{Component:w,route:c})||w}}});function Gn(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ha=Fa;function Ga(){const e=r.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";N(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
30
+ - props:`,e)),a=d,o=!0),t.resolve(d)}),l=r.computed(()=>{const{matched:d}=s.value,{length:p}=d,f=d[p-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=Fn(d[p-2]);return p>1&&Fn(f)===y&&h[h.length-1].path!==y?h.findIndex(se.bind(null,d[p-2])):g}),i=r.computed(()=>l.value>-1&&za(n.params,s.value.params)),u=r.computed(()=>l.value>-1&&l.value===n.matched.length-1&&Sn(n.params,s.value.params));function c(d={}){return Ua(d)?t[r.unref(e.replace)?"replace":"push"](r.unref(e.to)).catch(Se):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&ee){const d=r.getCurrentInstance();if(d){const p={route:s.value,isActive:i.value,isExactActive:u.value,error:null};d.__vrl_devtools=d.__vrl_devtools||[],d.__vrl_devtools.push(p),r.watchEffect(()=>{p.route=s.value,p.isActive=i.value,p.isExactActive=u.value,p.error=He(r.unref(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:s,href:r.computed(()=>s.value.href),isActive:i,isExactActive:u,navigate:c}}const Ma=r.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:zn,setup(e,{slots:t}){const n=r.reactive(zn(e)),{options:o}=r.inject(bt),a=r.computed(()=>({[Hn(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Hn(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:r.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},s)}}}),Wa=Ma;function Ua(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 za(e,t){for(const n in t){const o=t[n],a=e[n];if(typeof o=="string"){if(o!==a)return!1}else if(!U(a)||a.length!==o.length||o.some((s,l)=>s!==a[l]))return!1}return!0}function Fn(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Hn=(e,t,n)=>e??t??n,Fa=r.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=r.inject(vt),a=r.computed(()=>e.route||o.value),s=r.inject(Wn,0),l=r.computed(()=>{let c=r.unref(s);const{matched:d}=a.value;let p;for(;(p=d[c])&&!p.components;)c++;return c}),i=r.computed(()=>a.value.matched[l.value]);r.provide(Wn,r.computed(()=>l.value+1)),r.provide(Ba,i),r.provide(vt,a);const u=r.ref();return r.watch(()=>[u.value,i.value,e.name],([c,d,p],[f,h,g])=>{d&&(d.instances[p]=c,h&&h!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),c&&d&&(!h||!se(d,h)||!f)&&(d.enterCallbacks[p]||[]).forEach(y=>y(c))},{flush:"post"}),()=>{const c=a.value,d=e.name,p=i.value,f=p&&p.components[d];if(!f)return Gn(n.default,{Component:f,route:c});const h=p.props[d],g=h?h===!0?c.params:typeof h=="function"?h(c):h:null,y=r.h(f,D({},g,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(p.instances[d]=null)},ref:u}));if(process.env.NODE_ENV!=="production"&&ee&&y.ref){const $={depth:l.value,name:p.name,path:p.path,meta:p.meta};(U(y.ref)?y.ref.map(O=>O.i):[y.ref.i]).forEach(O=>{O.__vrv_devtools=$})}return Gn(n.default,{Component:y,route:c})||y}}});function Gn(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ha=Fa;function Ga(){const e=r.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";N(`<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 Ge(e){return{_custom:{display:e}}}let qa=0;function Ja(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=qa++;st({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},a=>{typeof a.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."),a.on.inspectComponent((d,p)=>{d.instanceData&&d.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ce(t.currentRoute.value,"Current Route")})}),a.on.visitComponentTree(({treeNode:d,componentInstance:p})=>{if(p.__vrv_devtools){const f=p.__vrv_devtools;d.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:qn})}U(p.__vrl_devtools)&&(p.__devtoolsApi=a,p.__vrl_devtools.forEach(f=>{let h=f.route.path,m=Yn,w="",$=0;f.error?(h=f.error,m=Za,$=es):f.isExactActive?(m=Kn,w="This is exactly active"):f.isActive&&(m=Jn,w="This link is active"),d.tags.push({label:h,textColor:$,tooltip:w,backgroundColor:m})}))}),r.watch(t.currentRoute,()=>{u(),a.notifyComponentUpdate(),a.sendInspectorTree(i),a.sendInspectorState(i)});const s="router:navigations:"+o;a.addTimelineLayer({id:s,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((d,p)=>{a.addTimelineEvent({layerId:s,event:{title:"Error during Navigation",subtitle:p.fullPath,logType:"error",time:a.now(),data:{error:d},groupId:p.meta.__navigationId}})});let l=0;t.beforeEach((d,p)=>{const f={guard:Ge("beforeEach"),from:Ce(p,"Current Location during this navigation"),to:Ce(d,"Target location")};Object.defineProperty(d.meta,"__navigationId",{value:l++}),a.addTimelineEvent({layerId:s,event:{time:a.now(),title:"Start of navigation",subtitle:d.fullPath,data:f,groupId:d.meta.__navigationId}})}),t.afterEach((d,p,f)=>{const h={guard:Ge("afterEach")};f?(h.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},h.status=Ge("โŒ")):h.status=Ge("โœ…"),h.from=Ce(p,"Current Location during this navigation"),h.to=Ce(d,"Target location"),a.addTimelineEvent({layerId:s,event:{title:"End of navigation",subtitle:d.fullPath,time:a.now(),data:h,logType:f?"warning":"default",groupId:d.meta.__navigationId}})});const i="router-inspector:"+o;a.addInspector({id:i,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function u(){if(!c)return;const d=c;let p=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);p.forEach(Zn),d.filter&&(p=p.filter(f=>_t(f,d.filter.toLowerCase()))),p.forEach(f=>Xn(f,t.currentRoute.value)),d.rootNodes=p.map(Qn)}let c;a.on.getInspectorTree(d=>{c=d,d.app===e&&d.inspectorId===i&&u()}),a.on.getInspectorState(d=>{if(d.app===e&&d.inspectorId===i){const p=n.getRoutes().find(f=>f.record.__vd_id===d.nodeId);p&&(d.state={options:Ya(p)})}}),a.sendInspectorTree(i),a.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 qn=15485081,Jn=2450411,Kn=8702998,Qa=2282478,Yn=16486972,Xa=6710886,Za=16704226,es=12131356;function Qn(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:Yn}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:qn}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Kn}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Jn}),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(Qn)}}let ts=0;const ns=/^\/(.*)\/([a-z]*)$/;function Xn(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=>Xn(o,t))}function Zn(e){e.__vd_match=!1,e.children.forEach(Zn)}function _t(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=>_t(s,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const o=e.record.path.toLowerCase(),a=ge(o);return!t.startsWith("/")&&(a.includes(t)||o.includes(t))||a.startsWith(t)||o.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(s=>_t(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||Ta,o=e.stringifyQuery||Mn,a=e.history;if(process.env.NODE_ENV!=="production"&&!a)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const s=xe(),l=xe(),i=xe(),u=r.shallowRef(ie);let c=ie;ee&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=pt.bind(null,g=>""+g),p=pt.bind(null,ea),f=pt.bind(null,ge);function h(g,b){let y,_;return In(g)?(y=t.getRecordMatcher(g),process.env.NODE_ENV!=="production"&&!y&&N(`Parent route "${String(g)}" not found when adding child route`,b),_=b):_=g,t.addRoute(_,y)}function m(g){const b=t.getRecordMatcher(g);b?t.removeRoute(b):process.env.NODE_ENV!=="production"&&N(`Cannot remove non-existent route "${String(g)}"`)}function w(){return t.getRoutes().map(g=>g.record)}function $(g){return!!t.getRecordMatcher(g)}function x(g,b){if(b=P({},b||u.value),typeof g=="string"){const C=mt(n,g,b.path),R=t.resolve({path:C.path},b),fe=a.createHref(C.fullPath);return process.env.NODE_ENV!=="production"&&(fe.startsWith("//")?N(`Location "${g}" resolved to "${fe}". A resolved location cannot start with multiple slashes.`):R.matched.length||N(`No match found for location with path "${g}"`)),P(C,R,{params:f(R.params),hash:ge(C.hash),redirectedFrom:void 0,href:fe})}if(process.env.NODE_ENV!=="production"&&!He(g))return N(`router.resolve() was passed an invalid location. This will fail in production.
38
- - Location:`,g),x({});let y;if(g.path!=null)process.env.NODE_ENV!=="production"&&"params"in g&&!("name"in g)&&Object.keys(g.params).length&&N(`Path "${g.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),y=P({},g,{path:mt(n,g.path,b.path).path});else{const C=P({},g.params);for(const R in C)C[R]==null&&delete C[R];y=P({},g,{params:p(C)}),b.params=p(b.params)}const _=t.resolve(y,b),D=g.hash||"";process.env.NODE_ENV!=="production"&&D&&!D.startsWith("#")&&N(`A \`hash\` should always start with the character "#". Replace "${D}" with "#${D}".`),_.params=d(f(_.params));const T=oa(o,P({},g,{hash:Qr(D),path:_.path})),I=a.createHref(T);return process.env.NODE_ENV!=="production"&&(I.startsWith("//")?N(`Location "${g}" resolved to "${I}". A resolved location cannot start with multiple slashes.`):_.matched.length||N(`No match found for location with path "${g.path!=null?g.path:g}"`)),P({fullPath:T,hash:D,query:o===Mn?ja(g.query):g.query||{}},_,{redirectedFrom:void 0,href:I})}function O(g){return typeof g=="string"?mt(n,g,u.value.path):P({},g)}function S(g,b){if(c!==g)return ye(8,{from:b,to:g})}function V(g){return k(g)}function M(g){return V(P(O(g),{replace:!0}))}function J(g){const b=g.matched[g.matched.length-1];if(b&&b.redirect){const{redirect:y}=b;let _=typeof y=="function"?y(g):y;if(typeof _=="string"&&(_=_.includes("?")||_.includes("#")?_=O(_):{path:_},_.params={}),process.env.NODE_ENV!=="production"&&_.path==null&&!("name"in _))throw N(`Invalid redirect found:
37
+ </router-view>`)}}function Ce(e,t){const n=D({},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 Ge(e){return{_custom:{display:e}}}let qa=0;function Ja(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=qa++;st({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},a=>{typeof a.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."),a.on.inspectComponent((d,p)=>{d.instanceData&&d.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ce(t.currentRoute.value,"Current Route")})}),a.on.visitComponentTree(({treeNode:d,componentInstance:p})=>{if(p.__vrv_devtools){const f=p.__vrv_devtools;d.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:qn})}U(p.__vrl_devtools)&&(p.__devtoolsApi=a,p.__vrl_devtools.forEach(f=>{let h=f.route.path,g=Yn,y="",$=0;f.error?(h=f.error,g=Za,$=es):f.isExactActive?(g=Kn,y="This is exactly active"):f.isActive&&(g=Jn,y="This link is active"),d.tags.push({label:h,textColor:$,tooltip:y,backgroundColor:g})}))}),r.watch(t.currentRoute,()=>{u(),a.notifyComponentUpdate(),a.sendInspectorTree(i),a.sendInspectorState(i)});const s="router:navigations:"+o;a.addTimelineLayer({id:s,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((d,p)=>{a.addTimelineEvent({layerId:s,event:{title:"Error during Navigation",subtitle:p.fullPath,logType:"error",time:a.now(),data:{error:d},groupId:p.meta.__navigationId}})});let l=0;t.beforeEach((d,p)=>{const f={guard:Ge("beforeEach"),from:Ce(p,"Current Location during this navigation"),to:Ce(d,"Target location")};Object.defineProperty(d.meta,"__navigationId",{value:l++}),a.addTimelineEvent({layerId:s,event:{time:a.now(),title:"Start of navigation",subtitle:d.fullPath,data:f,groupId:d.meta.__navigationId}})}),t.afterEach((d,p,f)=>{const h={guard:Ge("afterEach")};f?(h.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},h.status=Ge("โŒ")):h.status=Ge("โœ…"),h.from=Ce(p,"Current Location during this navigation"),h.to=Ce(d,"Target location"),a.addTimelineEvent({layerId:s,event:{title:"End of navigation",subtitle:d.fullPath,time:a.now(),data:h,logType:f?"warning":"default",groupId:d.meta.__navigationId}})});const i="router-inspector:"+o;a.addInspector({id:i,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function u(){if(!c)return;const d=c;let p=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);p.forEach(Zn),d.filter&&(p=p.filter(f=>_t(f,d.filter.toLowerCase()))),p.forEach(f=>Xn(f,t.currentRoute.value)),d.rootNodes=p.map(Qn)}let c;a.on.getInspectorTree(d=>{c=d,d.app===e&&d.inspectorId===i&&u()}),a.on.getInspectorState(d=>{if(d.app===e&&d.inspectorId===i){const p=n.getRoutes().find(f=>f.record.__vd_id===d.nodeId);p&&(d.state={options:Ya(p)})}}),a.sendInspectorTree(i),a.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 qn=15485081,Jn=2450411,Kn=8702998,Qa=2282478,Yn=16486972,Xa=6710886,Za=16704226,es=12131356;function Qn(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:Yn}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:qn}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Kn}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Jn}),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(Qn)}}let ts=0;const ns=/^\/(.*)\/([a-z]*)$/;function Xn(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=>Xn(o,t))}function Zn(e){e.__vd_match=!1,e.children.forEach(Zn)}function _t(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=>_t(s,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const o=e.record.path.toLowerCase(),a=ge(o);return!t.startsWith("/")&&(a.includes(t)||o.includes(t))||a.startsWith(t)||o.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(s=>_t(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||Mn,a=e.history;if(process.env.NODE_ENV!=="production"&&!a)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const s=xe(),l=xe(),i=xe(),u=r.shallowRef(ie);let c=ie;ee&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=pt.bind(null,m=>""+m),p=pt.bind(null,ea),f=pt.bind(null,ge);function h(m,b){let w,_;return In(m)?(w=t.getRecordMatcher(m),process.env.NODE_ENV!=="production"&&!w&&N(`Parent route "${String(m)}" not found when adding child route`,b),_=b):_=m,t.addRoute(_,w)}function g(m){const b=t.getRecordMatcher(m);b?t.removeRoute(b):process.env.NODE_ENV!=="production"&&N(`Cannot remove non-existent route "${String(m)}"`)}function y(){return t.getRoutes().map(m=>m.record)}function $(m){return!!t.getRecordMatcher(m)}function O(m,b){if(b=D({},b||u.value),typeof m=="string"){const x=mt(n,m,b.path),R=t.resolve({path:x.path},b),fe=a.createHref(x.fullPath);return process.env.NODE_ENV!=="production"&&(fe.startsWith("//")?N(`Location "${m}" resolved to "${fe}". A resolved location cannot start with multiple slashes.`):R.matched.length||N(`No match found for location with path "${m}"`)),D(x,R,{params:f(R.params),hash:ge(x.hash),redirectedFrom:void 0,href:fe})}if(process.env.NODE_ENV!=="production"&&!He(m))return N(`router.resolve() was passed an invalid location. This will fail in production.
38
+ - Location:`,m),O({});let w;if(m.path!=null)process.env.NODE_ENV!=="production"&&"params"in m&&!("name"in m)&&Object.keys(m.params).length&&N(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),w=D({},m,{path:mt(n,m.path,b.path).path});else{const x=D({},m.params);for(const R in x)x[R]==null&&delete x[R];w=D({},m,{params:p(x)}),b.params=p(b.params)}const _=t.resolve(w,b),V=m.hash||"";process.env.NODE_ENV!=="production"&&V&&!V.startsWith("#")&&N(`A \`hash\` should always start with the character "#". Replace "${V}" with "#${V}".`),_.params=d(f(_.params));const j=oa(o,D({},m,{hash:Qr(V),path:_.path})),C=a.createHref(j);return process.env.NODE_ENV!=="production"&&(C.startsWith("//")?N(`Location "${m}" resolved to "${C}". A resolved location cannot start with multiple slashes.`):_.matched.length||N(`No match found for location with path "${m.path!=null?m.path:m}"`)),D({fullPath:j,hash:V,query:o===Mn?ja(m.query):m.query||{}},_,{redirectedFrom:void 0,href:C})}function S(m){return typeof m=="string"?mt(n,m,u.value.path):D({},m)}function I(m,b){if(c!==m)return ye(8,{from:b,to:m})}function P(m){return k(m)}function A(m){return P(D(S(m),{replace:!0}))}function J(m){const b=m.matched[m.matched.length-1];if(b&&b.redirect){const{redirect:w}=b;let _=typeof w=="function"?w(m):w;if(typeof _=="string"&&(_=_.includes("?")||_.includes("#")?_=S(_):{path:_},_.params={}),process.env.NODE_ENV!=="production"&&_.path==null&&!("name"in _))throw N(`Invalid redirect found:
39
39
  ${JSON.stringify(_,null,2)}
40
- when navigating to "${g.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return P({query:g.query,hash:g.hash,params:_.path!=null?{}:g.params},_)}}function k(g,b){const y=c=x(g),_=u.value,D=g.state,T=g.force,I=g.replace===!0,C=J(y);if(C)return k(P(O(C),{state:typeof C=="object"?P({},D,C.state):D,force:T,replace:I}),b||y);const R=y;R.redirectedFrom=b;let fe;return!T&&$n(o,_,y)&&(fe=ye(16,{to:R,from:_}),Ho(_,_,!0,!1)),(fe?Promise.resolve(fe):v(R,_)).catch(W=>te(W)?te(W,2)?W:Ft(W):L(W,R,_)).then(W=>{if(W){if(te(W,2))return process.env.NODE_ENV!=="production"&&$n(o,x(W.to),R)&&b&&(b._count=b._count?b._count+1:1)>30?(N(`Detected a possibly infinite redirection in a navigation guard when going from "${_.fullPath}" to "${R.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:I},O(W.to),{state:typeof W.to=="object"?P({},D,W.to.state):D,force:T}),b||R)}else W=z(R,_,!0,I,D);return A(R,_,W),W})}function Q(g,b){const y=S(g,b);return y?Promise.reject(y):Promise.resolve()}function E(g){const b=Ze.values().next().value;return b&&typeof b.runWithContext=="function"?b.runWithContext(g):g()}function v(g,b){let y;const[_,D,T]=as(g,b);y=Et(_.reverse(),"beforeRouteLeave",g,b);for(const C of _)C.leaveGuards.forEach(R=>{y.push(le(R,g,b))});const I=Q.bind(null,g,b);return y.push(I),Ee(y).then(()=>{y=[];for(const C of s.list())y.push(le(C,g,b));return y.push(I),Ee(y)}).then(()=>{y=Et(D,"beforeRouteUpdate",g,b);for(const C of D)C.updateGuards.forEach(R=>{y.push(le(R,g,b))});return y.push(I),Ee(y)}).then(()=>{y=[];for(const C of T)if(C.beforeEnter)if(U(C.beforeEnter))for(const R of C.beforeEnter)y.push(le(R,g,b));else y.push(le(C.beforeEnter,g,b));return y.push(I),Ee(y)}).then(()=>(g.matched.forEach(C=>C.enterCallbacks={}),y=Et(T,"beforeRouteEnter",g,b,E),y.push(I),Ee(y))).then(()=>{y=[];for(const C of l.list())y.push(le(C,g,b));return y.push(I),Ee(y)}).catch(C=>te(C,8)?C:Promise.reject(C))}function A(g,b,y){i.list().forEach(_=>E(()=>_(g,b,y)))}function z(g,b,y,_,D){const T=S(g,b);if(T)return T;const I=b===ie,C=ee?history.state:{};y&&(_||I?a.replace(g.fullPath,P({scroll:I&&C&&C.scroll},D)):a.push(g.fullPath,D)),u.value=g,Ho(g,b,y,I),Ft()}let K;function Te(){K||(K=a.listen((g,b,y)=>{const _=x(g),D=J(_);if(D){k(P(D,{replace:!0}),_).catch(Se);return}c=_;const T=u.value;ee&&da(Nn(T.fullPath,y.delta),Fe()),v(_,T).catch(I=>te(I,12)?I:te(I,2)?(k(I.to,_).then(C=>{te(C,20)&&!y.delta&&y.type===Oe.pop&&a.go(-1,!1)}).catch(Se),Promise.reject()):(y.delta&&a.go(-y.delta,!1),L(I,_,T))).then(I=>{I=I||z(_,T,!1),I&&(y.delta&&!te(I,8)?a.go(-y.delta,!1):y.type===Oe.pop&&te(I,20)&&a.go(-1,!1)),A(_,T,I)}).catch(Se)}))}let je=xe(),Xe=xe(),X;function L(g,b,y){Ft(g);const _=Xe.list();return _.length?_.forEach(D=>D(g,b,y)):(process.env.NODE_ENV!=="production"&&N("uncaught error during route navigation:"),console.error(g)),Promise.reject(g)}function fl(){return X&&u.value!==ie?Promise.resolve():new Promise((g,b)=>{je.add([g,b])})}function Ft(g){return X||(X=!g,Te(),je.list().forEach(([b,y])=>g?y(g):b()),je.reset()),g}function Ho(g,b,y,_){const{scrollBehavior:D}=e;if(!ee||!D)return Promise.resolve();const T=!y&&pa(Nn(g.fullPath,0))||(_||!y)&&history.state&&history.state.scroll||null;return r.nextTick().then(()=>D(g,b,T)).then(I=>I&&ua(I)).catch(I=>L(I,g,b))}const Ht=g=>a.go(g);let Gt;const Ze=new Set,hl={currentRoute:u,listening:!0,addRoute:h,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:$,getRoutes:w,resolve:x,options:e,push:V,replace:M,go:Ht,back:()=>Ht(-1),forward:()=>Ht(1),beforeEach:s.add,beforeResolve:l.add,afterEach:i.add,onError:Xe.add,isReady:fl,install(g){const b=this;g.component("RouterLink",Wa),g.component("RouterView",Ha),g.config.globalProperties.$router=b,Object.defineProperty(g.config.globalProperties,"$route",{enumerable:!0,get:()=>r.unref(u)}),ee&&!Gt&&u.value===ie&&(Gt=!0,V(a.location).catch(D=>{process.env.NODE_ENV!=="production"&&N("Unexpected error when starting the router:",D)}));const y={};for(const D in ie)Object.defineProperty(y,D,{get:()=>u.value[D],enumerable:!0});g.provide(bt,b),g.provide(Un,r.shallowReactive(y)),g.provide(vt,u);const _=g.unmount;Ze.add(g),g.unmount=function(){Ze.delete(g),Ze.size<1&&(c=ie,K&&K(),K=null,u.value=ie,Gt=!1,X=!1),_()},process.env.NODE_ENV!=="production"&&ee&&Ja(g,b,t)}};function Ee(g){return g.reduce((b,y)=>b.then(()=>E(y)),Promise.resolve())}return hl}function as(e,t){const n=[],o=[],a=[],s=Math.max(t.matched.length,e.matched.length);for(let l=0;l<s;l++){const i=t.matched[l];i&&(e.matched.find(c=>se(c,i))?o.push(i):n.push(i));const u=e.matched[l];u&&(t.matched.find(c=>se(c,u))||a.push(u))}return[n,o,a]}rs({history:ga(),routes:[]});function ss(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var we=Promise.resolve();function eo(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 kt(){return Math.random().toString(36).substring(2)}var to=0,$t=0;function qe(){var e=new Date().getTime();return e===to?($t++,e*1e3+$t):(to=e,$t=0,e*1e3)}var ls=qe,cs="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:cs,averageResponseTime:ms,microSeconds:ls},no=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,oo()),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=oo()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var a=o[0],s=o[1];if(s<t)e.map.delete(a);else return}}function oo(){return new Date().getTime()}function St(){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=qe,bs="pubkey.broadcast-channel-0-",ne="messages",Je={durability:"relaxed"},vs="idb";function ro(){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 Ot(e){e.commit&&e.commit()}function Es(e){var t=ro(),n=bs+e,o=t.open(n);return o.onupgradeneeded=function(a){var s=a.target.result;s.createObjectStore(ne,{keyPath:"id",autoIncrement:!0})},new Promise(function(a,s){o.onerror=function(l){return s(l)},o.onsuccess=function(){a(o.result)}})}function _s(e,t,n){var o=new Date().getTime(),a={uuid:t,time:o,data:n},s=e.transaction([ne],"readwrite",Je);return new Promise(function(l,i){s.oncomplete=function(){return l()},s.onerror=function(c){return i(c)};var u=s.objectStore(ne);u.add(a),Ot(s)})}function ks(e,t){var n=e.transaction(ne,"readonly",Je),o=n.objectStore(ne),a=[],s=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var l=o.getAll(s);return new Promise(function(u,c){l.onerror=function(d){return c(d)},l.onsuccess=function(d){u(d.target.result)}})}function i(){try{return s=IDBKeyRange.bound(t+1,1/0),o.openCursor(s)}catch{return o.openCursor()}}return new Promise(function(u,c){var d=i();d.onerror=function(p){return c(p)},d.onsuccess=function(p){var f=p.target.result;f?f.value.id<t+1?f.continue(t+1):(a.push(f.value),f.continue()):(Ot(n),u(a))}})}function $s(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(ne,"readwrite",Je),o=n.objectStore(ne);return Promise.all(t.map(function(a){var s=o.delete(a);return new Promise(function(l){s.onsuccess=function(){return l()}})}))}function Ss(e,t){var n=new Date().getTime()-t,o=e.transaction(ne,"readonly",Je),a=o.objectStore(ne),s=[];return new Promise(function(l){a.openCursor().onsuccess=function(i){var u=i.target.result;if(u){var c=u.value;c.time<n?(s.push(c),u.continue()):(Ot(o),l(s))}else l(s)}})}function Os(e){return Ss(e.db,e.options.idb.ttl).then(function(t){return $s(e,t.map(function(n){return n.id}))})}function Ns(e,t){return t=St(t),Es(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:kt(),eMIs:new no(t.idb.ttl*2),writeBlockPromise:we,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},ao(o),o})}function ao(e){e.closed||so(e).then(function(){return eo(e.options.idb.fallbackInterval)}).then(function(){return ao(e)})}function xs(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function so(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 xs(o,e)}).sort(function(o,a){return o.time-a.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 _s(e.db,e.uuid,t)}).then(function(){is(0,10)===0&&Os(e)}),e.writeBlockPromise}function Ps(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,so(e)}function Ds(){return!!ro()}function Vs(e){return e.idb.fallbackInterval*2}var As={create:Ns,close:Cs,onMessage:Ps,postMessage:Is,canBeUsed:Ds,type:vs,averageResponseTime:Vs,microSeconds:ws},Rs=qe,Ts="pubkey.broadcastChannel-",js="localstorage";function io(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function lo(e){return Ts+e}function Bs(e,t){return new Promise(function(n){eo().then(function(){var o=lo(e.channelName),a={token:kt(),time:new Date().getTime(),data:t,uuid:e.uuid},s=JSON.stringify(a);io().setItem(o,s);var l=document.createEvent("Event");l.initEvent("storage",!0,!0),l.key=o,l.newValue=s,window.dispatchEvent(l),n()})})}function Ls(e,t){var n=lo(e),o=function(a){a.key===n&&t(JSON.parse(a.newValue))};return window.addEventListener("storage",o),o}function Ms(e){window.removeEventListener("storage",e)}function Ws(e,t){if(t=St(t),!co())throw new Error("BroadcastChannel: localstorage cannot be used");var n=kt(),o=new no(t.localstorage.removeTimeout),a={channelName:e,uuid:n,eMIs:o};return a.listener=Ls(e,function(s){a.messagesCallback&&s.uuid!==n&&(!s.token||o.has(s.token)||s.data.time&&s.data.time<a.messagesCallbackTime||(o.add(s.token),a.messagesCallback(s.data)))}),a}function Us(e){Ms(e.listener)}function zs(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function co(){var e=io();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function Fs(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var Hs={create:Ws,close:Us,onMessage:zs,postMessage:Bs,canBeUsed:co,type:js,averageResponseTime:Fs,microSeconds:Rs},Gs=qe,qs="simulate",Nt=new Set;function Js(e){var t={name:e,messagesCallback:null};return Nt.add(t),t}function Ks(e){Nt.delete(e)}function Ys(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Nt);o.filter(function(a){return a.name===e.name}).filter(function(a){return a!==e}).filter(function(a){return!!a.messagesCallback}).forEach(function(a){return a.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:qs,averageResponseTime:Zs,microSeconds:Gs},uo=[gs,As,Hs];function ti(e){var t=[].concat(e.methods,uo).filter(Boolean);if(e.type){if(e.type==="simulate")return ei;var n=t.find(function(a){return a.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(a){return a.type!=="idb"}));var o=t.find(function(a){return a.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(uo.map(function(a){return a.type})))}var po=new Set,ni=0,xt=function(e,t){this.id=ni++,po.add(this),this.name=e,this.options=St(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 fo(this,"message",e)},postInternal:function(e){return fo(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};go(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,mo(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};mo(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});go(this,e,n)},close:function(){var e=this;if(!this.closed){po.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 fo(e,t,n){var o=e.method.microSeconds(),a={time:o,type:t,data:n},s=e._prepP?e._prepP:we;return s.then(function(){var l=e.method.postMessage(e._state,a);return e._uMP.add(l),l.catch().then(function(){return e._uMP.delete(l)}),l})}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 ho(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function mo(e,t,n){e._addEL[t].push(n),ri(e)}function go(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),ai(e)}function ri(e){if(!e._iL&&ho(e)){var t=function(o){e._addEL[o.type].forEach(function(a){var s=1e5,l=a.time-s;o.time>=l&&a.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&&!ho(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}let Ct=class extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}};function yo(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 li(e){return Object.prototype.toString.call(e).slice(8,-1)}function ci(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 a=0;a<o;a+=1){const s=e[a],l=ci(s);l&&(t+=e.slice(n,a)+l,n=a+1)}return`"${n===0?e:t+e.slice(n)}"`}const It=-1,wo=-2,bo=-3,vo=-4,Eo=-5,Pt=-6;function _o(e,t){return ui(JSON.parse(e))}function ui(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function a(s,l=!1){if(s===It)return;if(s===bo)return NaN;if(s===vo)return 1/0;if(s===Eo)return-1/0;if(s===Pt)return-0;if(l)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 u=i[0];switch(u){case"Date":o[s]=new Date(i[1]);break;case"Set":const c=new Set;o[s]=c;for(let f=1;f<i.length;f+=1)c.add(a(i[f]));break;case"Map":const d=new Map;o[s]=d;for(let f=1;f<i.length;f+=2)d.set(a(i[f]),a(i[f+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 p=Object.create(null);o[s]=p;for(let f=1;f<i.length;f+=2)p[i[f]]=a(i[f+1]);break;default:throw new Error(`Unknown type ${u}`)}}else{const u=new Array(i.length);o[s]=u;for(let c=0;c<i.length;c+=1){const d=i[c];d!==wo&&(u[c]=a(d))}}else{const u={};o[s]=u;for(const c in i){const d=i[c];u[c]=a(d)}}return o[s]}return a(0)}function ko(e,t){const n=[],o=new Map,a=[];for(const c in t)a.push({key:c,fn:t[c]});const s=[];let l=0;function i(c){if(typeof c=="function")throw new Ct("Cannot stringify a function",s);if(o.has(c))return o.get(c);if(c===void 0)return It;if(Number.isNaN(c))return bo;if(c===1/0)return vo;if(c===-1/0)return Eo;if(c===0&&1/c<0)return Pt;const d=l++;o.set(c,d);for(const{key:f,fn:h}of a){const m=h(c);if(m)return n[d]=`["${f}",${i(m)}]`,d}let p="";if(yo(c))p=Dt(c);else switch(li(c)){case"Number":case"String":case"Boolean":p=`["Object",${Dt(c)}]`;break;case"BigInt":p=`["BigInt",${c}]`;break;case"Date":p=`["Date","${isNaN(c.getDate())?"":c.toISOString()}"]`;break;case"RegExp":const{source:f,flags:h}=c;p=h?`["RegExp",${be(f)},"${h}"]`:`["RegExp",${be(f)}]`;break;case"Array":p="[";for(let m=0;m<c.length;m+=1)m>0&&(p+=","),m in c?(s.push(`[${m}]`),p+=i(c[m]),s.pop()):p+=wo;p+="]";break;case"Set":p='["Set"';for(const m of c)p+=`,${i(m)}`;p+="]";break;case"Map":p='["Map"';for(const[m,w]of c)s.push(`.get(${yo(m)?Dt(m):"..."})`),p+=`,${i(m)},${i(w)}`,s.pop();p+="]";break;default:if(!ii(c))throw new Ct("Cannot stringify arbitrary non-POJOs",s);if(Object.getOwnPropertySymbols(c).length>0)throw new Ct("Cannot stringify POJOs with symbolic keys",s);if(Object.getPrototypeOf(c)===null){p='["null"';for(const m in c)s.push(`.${m}`),p+=`,${be(m)},${i(c[m])}`,s.pop();p+="]"}else{p="{";let m=!1;for(const w in c)m&&(p+=","),m=!0,s.push(`.${w}`),p+=`${be(w)}:${i(c[w])}`,s.pop();p+="}"}}return n[d]=p,d}const u=i(e);return u<0?`${u}`:`[${n.join(",")}]`}function Dt(e){const t=typeof e;return t==="string"?be(e):e instanceof String?be(e.toString()):e===void 0?It.toString():e===0&&1/e<0?Pt.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function di(e,t,{initialize:n,type:o}){let a=`${t.$id}-${e.toString()}`,s=new xt(a,{type:o}),l=!1,i=0;r.watch(()=>t[e],d=>{l||(i=Date.now(),s.postMessage({timestamp:i,state:_o(ko(d))})),l=!1},{deep:!0}),s.onmessage=d=>{if(d===void 0){s.postMessage({timestamp:i,state:_o(ko(t[e]))});return}d.timestamp<=i||(l=!0,i=d.timestamp,t[e]=d.state)};let u=()=>s.postMessage(void 0),c=()=>s.close();return n&&u(),{sync:u,unshare:c}}var pi=(e,t)=>Object.keys(t).includes(e),fi=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:a})=>{var s,l;let i=((s=a==null?void 0:a.share)==null?void 0:s.enable)??t,u=((l=a==null?void 0:a.share)==null?void 0:l.omit)??[];!i||Object.keys(o.$state).forEach(c=>{var d;u.includes(c)||!pi(c,o.$state)||di(c,o,{initialize:((d=a==null?void 0:a.share)==null?void 0:d.initialize)??e,type:n})})};Rr().use(fi({enable:!0,initialize:!0}));const $o=r.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=gn(),o=r.ref([]);return r.watch(n,()=>{if(n.value){let a=t.value.schema.schema.toArray();a.forEach((s,l)=>{const u=t.value.store.record[s.fieldname];a[l].value=u}),o.value=a}}),(a,s)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(ir),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=l=>o.value=l)},null,8,["modelValue"])):r.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 So(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Vt(e){return typeof e=="function"?e():r.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=()=>{},Ie=gi?window:void 0;function Pe(e){var t;const n=Vt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function De(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Ie):[t,n,o,a]=e,!t)return vi;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(d=>d()),s.length=0},i=(d,p,f,h)=>(d.addEventListener(p,f,h),()=>d.removeEventListener(p,f,h)),u=r.watch(()=>[Pe(t),Vt(a)],([d,p])=>{if(l(),!d)return;const f=bi(p)?{...p}:p;s.push(...n.flatMap(h=>o.map(m=>i(d,h,m,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return So(c),c}function Ei(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function _i(e){const t=Ei();return r.computed(()=>(t.value,!!e()))}function ki(e,t,n={}){const{window:o=Ie,...a}=n;let s;const l=_i(()=>o&&"MutationObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},u=r.computed(()=>{const f=Vt(e),h=(Array.isArray(f)?f:[f]).map(Pe).filter(yi);return new Set(h)}),c=r.watch(()=>u.value,f=>{i(),l.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,a)))},{immediate:!0,flush:"post"}),d=()=>s==null?void 0:s.takeRecords(),p=()=>{c(),i()};return So(p),{isSupported:l,stop:p,takeRecords:d}}function $i(e={}){var t;const{window:n=Ie,deep:o=!0,triggerOnRemoval:a=!1}=e,s=(t=e.document)!=null?t:n==null?void 0:n.document,l=()=>{var c;let d=s==null?void 0:s.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(c=d==null?void 0:d.shadowRoot)==null?void 0:c.activeElement;return d},i=r.ref(),u=()=>{i.value=l()};return n&&(De(n,"blur",c=>{c.relatedTarget===null&&u()},!0),De(n,"focus",u,!0)),a&&ki(s,c=>{c.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===i.value&&u()})},{childList:!0,subtree:!0}),u(),i}const Si="focusin",Oi="focusout";function Ni(e,t={}){const{window:n=Ie}=t,o=r.computed(()=>Pe(e)),a=r.ref(!1),s=r.computed(()=>a.value),l=$i(t);return!n||!l.value?{focused:s}:(De(o,Si,()=>a.value=!0),De(o,Oi,()=>a.value=!1),{focused:s})}function xi(e,{window:t=Ie,scrollTarget:n}={}){const o=r.ref(!1),a=()=>{if(!t)return;const s=t.document,l=Pe(e);if(!l)o.value=!1;else{const i=l.getBoundingClientRect();o.value=i.top<=(t.innerHeight||s.documentElement.clientHeight)&&i.left<=(t.innerWidth||s.documentElement.clientWidth)&&i.bottom>=0&&i.right>=0}};return r.watch(()=>Pe(e),()=>a(),{immediate:!0,flush:"post"}),t&&De(n||t,"scroll",a,{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,Oo=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.previousElementSibling;if(o){const a=Array.from(o.children)[e.cellIndex];a&&(n=a)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?At(n):n},Ci=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const a=(t=n.parentElement)==null?void 0:t.parentElement;if(a){const s=a.firstElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const a=n.parentElement;if(a){const s=a.firstElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?Rt(o):o},No=e=>{const t=e.target;return Rt(t)},Rt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const a=Array.from(o.children)[e.cellIndex];a&&(n=a)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?Rt(n):n},Ii=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const a=(t=n.parentElement)==null?void 0:t.parentElement;if(a){const s=a.lastElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const a=n.parentElement;if(a){const s=a.lastElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?At(o):o},xo=e=>{const t=e.target;return Tt(t)},Tt=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))?Tt(n):n},Co=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},Io=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!re(t)||!oe(t))?jt(t):t},Po=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!re(t)||!oe(t))?Tt(t):t},Ke=["alt","control","shift","meta"],Pi={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Bt={"keydown.up":e=>{const t=Oo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=No(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=xo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Co(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Ci(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=Ii(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Io(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Po(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Po(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=No(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Oo(e);t&&t.focus()}},"keydown.home":e=>{const t=Io(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Co(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=xo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Do(e){const t=l=>{let i=null;return l.parent&&(typeof l.parent=="string"?i=document.querySelector(l.parent):l.parent instanceof HTMLElement?i=l.parent:i=l.parent.value),i},n=l=>{const i=t(l);let u=[];if(typeof l.selectors=="string")u=i?Array.from(i.querySelectorAll(l.selectors)):Array.from(document.querySelectorAll(l.selectors));else if(Array.isArray(l.selectors))for(const c of l.selectors)c instanceof HTMLElement?u.push(c):u.push(c.$el);else if(l.selectors instanceof HTMLElement)u.push(l.selectors);else if(Array.isArray(l.selectors.value))for(const c of l.selectors.value)c instanceof HTMLElement?u.push(c):u.push(c.$el);else u.push(l.selectors.value);return u},o=l=>{const i=t(l);let u=[];return l.selectors?u=n(l):i&&(u=Array.from(i.children).filter(c=>re(c)&&oe(c))),u},a=l=>i=>{const u=Pi[i.key]||i.key.toLowerCase();if(Ke.includes(u))return;const c=l.handlers||Bt;for(const d of Object.keys(c)){const[p,...f]=d.split(".");if(p==="keydown"&&f.includes(u)){const h=c[d],m=f.filter($=>Ke.includes($)),w=Ke.some($=>{const x=$.charAt(0).toUpperCase()+$.slice(1);return i.getModifierState(x)});if(m.length>0){if(w){for(const $ of Ke)if(f.includes($)){const x=$.charAt(0).toUpperCase()+$.slice(1);i.getModifierState(x)&&h(i)}}}else w||h(i)}}},s=[];r.onMounted(()=>{for(const l of e){const i=t(l),u=o(l),c=a(l),d=i?[i]:u;for(const p of d){const{focused:f}=Ni(r.ref(p)),h=r.watch(f,m=>{m?p.addEventListener("keydown",c):p.removeEventListener("keydown",c)});s.push(h)}}}),r.onBeforeUnmount(()=>{for(const l of s)l()})}function Lt(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ye(e){return typeof e=="function"?e():r.unref(e)}const Di=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Vi=e=>e!=null,Ai=Object.prototype.toString,Ri=e=>Ai.call(e)==="[object Object]",Ti=()=>{};function ji(e){return r.getCurrentInstance()}function Bi(e,t=!0,n){ji()?r.onMounted(e,n):t?e():r.nextTick(e)}const Mt=Di?window:void 0;function ve(e){var t;const n=Ye(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Vo(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Mt):[t,n,o,a]=e,!t)return Ti;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(d=>d()),s.length=0},i=(d,p,f,h)=>(d.addEventListener(p,f,h),()=>d.removeEventListener(p,f,h)),u=r.watch(()=>[ve(t),Ye(a)],([d,p])=>{if(l(),!d)return;const f=Ri(p)?{...p}:p;s.push(...n.flatMap(h=>o.map(m=>i(d,h,m,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return Lt(c),c}function Li(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function Ao(e){const t=Li();return r.computed(()=>(t.value,!!e()))}function Ro(e,t,n={}){const{window:o=Mt,...a}=n;let s;const l=Ao(()=>o&&"MutationObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},u=r.computed(()=>{const f=Ye(e),h=(Array.isArray(f)?f:[f]).map(ve).filter(Vi);return new Set(h)}),c=r.watch(()=>u.value,f=>{i(),l.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,a)))},{immediate:!0,flush:"post"}),d=()=>s==null?void 0:s.takeRecords(),p=()=>{c(),i()};return Lt(p),{isSupported:l,stop:p,takeRecords:d}}function Mi(e,t,n={}){const{window:o=Mt,...a}=n;let s;const l=Ao(()=>o&&"ResizeObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},u=r.computed(()=>{const p=Ye(e);return Array.isArray(p)?p.map(f=>ve(f)):[ve(p)]}),c=r.watch(u,p=>{if(i(),l.value&&o){s=new ResizeObserver(t);for(const f of p)f&&s.observe(f,a)}},{immediate:!0,flush:"post"}),d=()=>{i(),c()};return Lt(d),{isSupported:l,stop:d}}function Wi(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:s=!0,updateTiming:l="sync"}=t,i=r.ref(0),u=r.ref(0),c=r.ref(0),d=r.ref(0),p=r.ref(0),f=r.ref(0),h=r.ref(0),m=r.ref(0);function w(){const x=ve(e);if(!x){n&&(i.value=0,u.value=0,c.value=0,d.value=0,p.value=0,f.value=0,h.value=0,m.value=0);return}const O=x.getBoundingClientRect();i.value=O.height,u.value=O.bottom,c.value=O.left,d.value=O.right,p.value=O.top,f.value=O.width,h.value=O.x,m.value=O.y}function $(){l==="sync"?w():l==="next-frame"&&requestAnimationFrame(()=>w())}return Mi(e,$),r.watch(()=>ve(e),x=>!x&&$()),Ro(e,$,{attributeFilter:["style","class"]}),a&&Vo("scroll",$,{capture:!0,passive:!0}),o&&Vo("resize",$,{passive:!0}),Bi(()=>{s&&$()}),{height:i,bottom:u,left:c,right:d,top:p,width:f,x:h,y:m,update:$}}const Ui=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],zi={key:1},Fi=r.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},tableid:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean}},setup(e){var t;const n=r.inject(e.tableid),o=r.useTemplateRef("cell"),a=r.ref(""),s=r.ref(!1),{bottom:l,left:i}=Wi(o),u=n.table,c=n.columns[e.colIndex],d=n.rows[e.rowIndex],p=r.computed(()=>c.align||"center"),f=r.computed(()=>c.width||"40ch"),h=r.computed(()=>{const S=n.cellData(e.colIndex,e.rowIndex),V=c.format;return V?typeof V=="function"?V(S,{table:u,row:d,column:c}):typeof V=="string"?Function(`"use strict";return (${V})`)()(S,{table:u,row:d,column:c}):S:S}),m=()=>{c.mask,c.modalComponent&&(n.modal.visible=!0,n.modal.colIndex=e.colIndex,n.modal.rowIndex=e.rowIndex,n.modal.parent=o.value,n.modal.top=l.value,n.modal.left=i.value,n.modal.width=f.value,typeof c.modalComponent=="function"?n.modal.component=c.modalComponent({table:u,row:d,column:c}):n.modal.component=c.modalComponent,n.modal.componentProps=c.modalComponentExtraProps)};if(e.addNavigation){let S={...Bt,"keydown.f2":m,"keydown.alt.up":m,"keydown.alt.down":m,"keydown.alt.left":m,"keydown.alt.right":m};typeof e.addNavigation=="object"&&(S={...S,...e.addNavigation}),Do([{selectors:o,handlers:S}])}const w=()=>{o.value&&(a.value=o.value.textContent)},$=()=>{o.value&&o.value.textContent!==a.value&&(a.value=o.value.textContent,o.value.dispatchEvent(new Event("change")),s.value=!0,c.format||n.setCellData(e.rowIndex,e.colIndex,a.value))},x=(S,V)=>V&&S===0&&V>0?`${V}ch`:"inherit",O={textAlign:p.value,width:f.value,backgroundColor:s.value?"var(--cell-modified-color)":"inherit",fontWeight:s.value?"bold":"inherit",paddingLeft:x(e.colIndex,(t=n.display[e.rowIndex])==null?void 0:t.indent)};return(S,V)=>(r.openBlock(),r.createElementBlock("td",{ref:"cell","data-colindex":S.colIndex,"data-rowindex":S.rowIndex,"data-editable":r.unref(c).edit,contenteditable:r.unref(c).edit,tabindex:S.tabIndex,spellcheck:!1,style:O,onFocus:w,onPaste:$,onBlur:$,onInput:$,onClick:m,onMousedown:m,class:r.normalizeClass(["atable__cell",S.pinned?"sticky-column":""])},[r.unref(c).cellComponent?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(c).cellComponent),r.mergeProps({key:0,value:h.value},r.unref(c).cellComponentProps),null,16,["value"])):(r.openBlock(),r.createElementBlock("span",zi,r.toDisplayString(h.value),1))],42,Ui))}}),Hi=["tabindex"],Gi=r.defineComponent({__name:"ARow",props:{rowIndex:{},tableid:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=r.inject(e.tableid),n=r.useTemplateRef("rowEl"),o=r.computed(()=>t.columns.some(i=>i.pinned)),a=r.computed(()=>t.config.view!=="tree"||t.display[e.rowIndex].isRoot||t.display[e.rowIndex].open),s=r.computed(()=>t.config.view!=="tree"?"":t.display[e.rowIndex].isRoot||t.display[e.rowIndex].isParent?t.display[e.rowIndex].childrenOpen?"-":"+":""),l=i=>{t.toggleRowExpand(i)};if(e.addNavigation){let i=Bt;typeof e.addNavigation=="object"&&(i={...i,...e.addNavigation}),Do([{selectors:n,handlers:i}])}return(i,u)=>r.withDirectives((r.openBlock(),r.createElementBlock("tr",{ref:"rowEl",tabindex:i.tabIndex,class:"table-row"},[r.renderSlot(i.$slots,"index",{},()=>[r.unref(t).config.view==="list"?(r.openBlock(),r.createElementBlock("td",{key:0,tabIndex:-1,class:r.normalizeClass(["list-index",o.value?"sticky-index":""])},r.toDisplayString(i.rowIndex+1),3)):r.unref(t).config.view==="tree"?(r.openBlock(),r.createElementBlock("td",{key:1,tabIndex:-1,class:r.normalizeClass(["tree-index",o.value?"sticky-index":""]),onClick:u[0]||(u[0]=c=>l(i.rowIndex))},r.toDisplayString(s.value),3)):r.createCommentVNode("",!0)]),r.renderSlot(i.$slots,"default")],8,Hi)),[[r.vShow,a.value]])}});function To(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ve(e){return typeof e=="function"?e():r.unref(e)}const jo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qi=Object.prototype.toString,Ji=e=>qi.call(e)==="[object Object]",Ae=()=>{},Wt=Ki();function Ki(){var e,t;return jo&&((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 Bo={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Yi(...e){if(e.length!==1)return r.toRef(...e);const t=e[0];return typeof t=="function"?r.readonly(r.customRef(()=>({get:t,set:Ae}))):r.ref(t)}function Re(e){var t;const n=Ve(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Lo=jo?window:void 0;function Qe(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Lo):[t,n,o,a]=e,!t)return Ae;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(d=>d()),s.length=0},i=(d,p,f,h)=>(d.addEventListener(p,f,h),()=>d.removeEventListener(p,f,h)),u=r.watch(()=>[Re(t),Ve(a)],([d,p])=>{if(l(),!d)return;const f=Ji(p)?{...p}:p;s.push(...n.flatMap(h=>o.map(m=>i(d,h,m,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return To(c),c}let Mo=!1;function Wo(e,t,n={}){const{window:o=Lo,ignore:a=[],capture:s=!0,detectIframe:l=!1}=n;if(!o)return Ae;Wt&&!Mo&&(Mo=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",Ae)),o.document.documentElement.addEventListener("click",Ae));let i=!0;const u=d=>a.some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(f=>f===d.target||d.composedPath().includes(f));{const f=Re(p);return f&&(d.target===f||d.composedPath().includes(f))}}),c=[Qe(o,"click",d=>{const p=Re(e);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(i=!u(d)),!i){i=!0;return}t(d)}},{passive:!0,capture:s}),Qe(o,"pointerdown",d=>{const p=Re(e);i=!u(d)&&!!(p&&!d.composedPath().includes(p))},{passive:!0}),l&&Qe(o,"blur",d=>{setTimeout(()=>{var p;const f=Re(e);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>c.forEach(d=>d())}const Qi={[Bo.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Wo(e,t.value,{capture:n});else{const[o,a]=t.value;e.__onClickOutside_stop=Wo(e,o,Object.assign({capture:n},a))}},[Bo.unmounted](e){e.__onClickOutside_stop()}};function Ut(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Uo(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:Uo(n)}}function Xi(e){const t=e||window.event,n=t.target;return Uo(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const zt=new WeakMap;function Zi(e,t=!1){const n=r.ref(t);let o=null,a="";r.watch(Yi(e),i=>{const u=Ut(Ve(i));if(u){const c=u;if(zt.get(c)||zt.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(a=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const s=()=>{const i=Ut(Ve(e));!i||n.value||(Wt&&(o=Qe(i,"touchmove",u=>{Xi(u)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},l=()=>{const i=Ut(Ve(e));!i||!n.value||(Wt&&(o==null||o()),i.style.overflow=a,zt.delete(i),n.value=!1)};return To(l),r.computed({get(){return n.value},set(i){i?s():l()}})}function el(){let e=!1;const t=r.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const a=Zi(n,o.value);r.watch(t,s=>a.value=s)}}el();class tl{constructor(t,n,o,a,s,l){pe(this,"id"),pe(this,"rows"),pe(this,"columns"),pe(this,"config"),pe(this,"table"),pe(this,"display"),pe(this,"modal"),this.id=t||crypto.randomUUID(),this.rows=o,this.columns=r.reactive(n),this.config=r.reactive(a),this.table=s||r.reactive(this.createTableObject()),this.display=this.createDisplayObject(l),this.modal=r.reactive({visible:!1})}createTableObject(){const t={};for(const[n,o]of this.columns.entries())for(const[a,s]of this.rows.entries())t[`${n}:${a}`]=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 a=this.rows.length-1;a>=0;a--){const s=this.rows[a];s.parent&&o.add(s.parent),n[a]={childrenOpen:!1,expanded:!1,indent:s.indent||null,isParent:o.has(a),isRoot:s.parent===null||s.parent===void 0,modified:!1,open:s.parent===null||s.parent===void 0,parent:s.parent}}return r.reactive(n)}get zeroColumn(){return["list","tree","list-expansion"].includes(this.config.view)}get numberedRowWidth(){return r.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 a=this.columns[n];return this.rows[t][a.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 nl={key:0,id:"resizable"},ol={class:"atable-header-row",tabindex:"-1"},rl=r.defineComponent({__name:"ATableHeader",props:{columns:{},tableid:{}},setup(e){const t=r.inject(e.tableid),n=r.computed(()=>t.columns.some(a=>a.pinned)),o=a=>({minWidth:a.width||"40ch",textAlign:a.align||"center",width:t.config.fullWidth?"auto":null});return(a,s)=>a.columns.length?(r.openBlock(),r.createElementBlock("thead",nl,[r.createElementVNode("tr",ol,[r.unref(t).zeroColumn?(r.openBlock(),r.createElementBlock("th",{key:0,id:"header-index",class:r.normalizeClass(n.value?"sticky-index":"")},null,2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.columns,(l,i)=>(r.openBlock(),r.createElementBlock("th",{key:l.name,tabindex:"-1",style:r.normalizeStyle(o(l)),class:r.normalizeClass(l.pinned?"sticky-column":"")},[r.renderSlot(a.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(l.label||String.fromCharCode(i+97).toUpperCase()),1)])],6))),128))])])):r.createCommentVNode("",!0)}}),al=r.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},tableid:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:"amodal",tabindex:"-1",onClick:t,onInput:t},[r.renderSlot(n.$slots,"default")],32))}}),sl=r.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r.useTemplateRef("table"),a=e.modelValue?e.modelValue:e.rows,s=new tl(e.id,e.columns,a,e.config);r.provide(s.id,s),r.watch(()=>s.rows,u=>{n("update:modelValue",u)},{deep:!0}),r.onMounted(()=>{e.columns.some(u=>u.pinned)&&(l(),s.config.view==="tree"&&Ro(o,l,{childList:!0,subtree:!0}))});const l=()=>{const u=o.value,c=u.rows[0],d=u.rows[1],p=c?Array.from(c.cells):[];for(const[f,h]of p.entries()){const m=d.cells[f];m&&(h.style.width=`${m.offsetWidth}px`)}for(const f of u.rows){let h=0;const m=[];for(const w of f.cells)(w.classList.contains("sticky-column")||w.classList.contains("sticky-index"))&&(w.style.left=`${h}px`,h+=w.offsetWidth,m.push(w));m.length>0&&m[m.length-1].classList.add("sticky-column-edge")}},i=u=>{var c;u.target instanceof Node&&(c=s.modal.parent)!=null&&c.contains(u.target)||s.modal.visible&&(s.modal.visible=!1)};return window.addEventListener("keydown",u=>{if(u.key==="Escape"&&s.modal.visible){s.modal.visible=!1;const c=s.modal.parent;c&&r.nextTick().then(()=>{c.focus()})}}),(u,c)=>r.withDirectives((r.openBlock(),r.createElementBlock("table",{ref:"table",class:"atable",style:r.normalizeStyle({width:r.unref(s).config.fullWidth?"100%":"auto"})},[r.renderSlot(u.$slots,"header",{data:r.unref(s)},()=>[r.createVNode(rl,{columns:r.unref(s).columns,tableid:r.unref(s).id},null,8,["columns","tableid"])]),r.createElementVNode("tbody",null,[r.renderSlot(u.$slots,"body",{data:r.unref(s)},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(s).rows,(d,p)=>(r.openBlock(),r.createBlock(Gi,{key:d.id,row:d,rowIndex:p,tableid:r.unref(s).id},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(s).columns,(f,h)=>(r.openBlock(),r.createBlock(Fi,{key:f.name,tableid:r.unref(s).id,col:f,spellcheck:"false",pinned:f.pinned,rowIndex:p,colIndex:h+(r.unref(s).zeroColumn?0:-1),component:f.cellComponent,style:r.normalizeStyle({textAlign:(f==null?void 0:f.align)||"center",minWidth:(f==null?void 0:f.width)||"40ch",width:r.unref(s).config.fullWidth?"auto":null})},null,8,["tableid","col","pinned","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","tableid"]))),128))])]),r.renderSlot(u.$slots,"footer",{data:r.unref(s)}),r.renderSlot(u.$slots,"modal",{data:r.unref(s)},()=>[r.withDirectives(r.createVNode(al,{colIndex:r.unref(s).modal.colIndex,rowIndex:r.unref(s).modal.rowIndex,tableid:r.unref(s).id,style:r.normalizeStyle({left:r.unref(s).modal.left+"px",top:r.unref(s).modal.top+"px",maxWidth:r.unref(s).modal.width+"px"})},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(s).modal.component),r.mergeProps({key:`${r.unref(s).modal.rowIndex}:${r.unref(s).modal.colIndex}`,colIndex:r.unref(s).modal.colIndex,rowIndex:r.unref(s).modal.rowIndex,tableid:r.unref(s).id},r.unref(s).modal.componentProps),null,16,["colIndex","rowIndex","tableid"]))]),_:1},8,["colIndex","rowIndex","tableid","style"]),[[r.vShow,r.unref(s).modal.visible]])])],4)),[[r.unref(Qi),i]])}}),zo=r.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=gn(),o={view:"list"};return(a,s)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(sl),{key:0,columns:r.unref(t).schema.schema.toArray(),rows:r.unref(t).store.records,config:o},null,8,["columns","rows"])):r.createCommentVNode("",!0)}}),il={class:"tabs"},ll={tabindex:"0"},cl={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"},ul={tabindex:"0"},dl={style:{width:"11pt"}},Fo=nt(r.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=r.ref(!0),n=r.ref(!1),o=r.ref(""),a=r.useTemplateRef("searchinput"),s=r.computed(()=>t.value?"unrotated":"rotated"),l=()=>{t.value=!t.value},i=async()=>{n.value=!n.value,await r.nextTick(()=>{a.value.focus()})},u=p=>{p.preventDefault(),p.stopPropagation()},c=async p=>{p.preventDefault(),p.stopPropagation(),await i()},d=()=>{};return(p,f)=>{const h=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("footer",null,[r.createElementVNode("ul",il,[r.createElementVNode("li",{class:"hidebreadcrumbs",onClick:l,onKeydown:r.withKeys(l,["enter"])},[r.createElementVNode("a",ll,[r.createElementVNode("div",{class:r.normalizeClass(s.value)},"ร—",2)])],32),r.createElementVNode("li",{class:"hometab",onClick:d,onKeydown:r.withKeys(d,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{to:"/home",tabindex:"0"},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("svg",cl,f[5]||(f[5]=[r.createElementVNode("g",null,[r.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 D({query:m.query,hash:m.hash,params:_.path!=null?{}:m.params},_)}}function k(m,b){const w=c=O(m),_=u.value,V=m.state,j=m.force,C=m.replace===!0,x=J(w);if(x)return k(D(S(x),{state:typeof x=="object"?D({},V,x.state):V,force:j,replace:C}),b||w);const R=w;R.redirectedFrom=b;let fe;return!j&&$n(o,_,w)&&(fe=ye(16,{to:R,from:_}),Ho(_,_,!0,!1)),(fe?Promise.resolve(fe):v(R,_)).catch(W=>te(W)?te(W,2)?W:Ft(W):M(W,R,_)).then(W=>{if(W){if(te(W,2))return process.env.NODE_ENV!=="production"&&$n(o,O(W.to),R)&&b&&(b._count=b._count?b._count+1:1)>30?(N(`Detected a possibly infinite redirection in a navigation guard when going from "${_.fullPath}" to "${R.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(D({replace:C},S(W.to),{state:typeof W.to=="object"?D({},V,W.to.state):V,force:j}),b||R)}else W=z(R,_,!0,C,V);return T(R,_,W),W})}function Q(m,b){const w=I(m,b);return w?Promise.reject(w):Promise.resolve()}function E(m){const b=Ze.values().next().value;return b&&typeof b.runWithContext=="function"?b.runWithContext(m):m()}function v(m,b){let w;const[_,V,j]=as(m,b);w=Et(_.reverse(),"beforeRouteLeave",m,b);for(const x of _)x.leaveGuards.forEach(R=>{w.push(le(R,m,b))});const C=Q.bind(null,m,b);return w.push(C),Ee(w).then(()=>{w=[];for(const x of s.list())w.push(le(x,m,b));return w.push(C),Ee(w)}).then(()=>{w=Et(V,"beforeRouteUpdate",m,b);for(const x of V)x.updateGuards.forEach(R=>{w.push(le(R,m,b))});return w.push(C),Ee(w)}).then(()=>{w=[];for(const x of j)if(x.beforeEnter)if(U(x.beforeEnter))for(const R of x.beforeEnter)w.push(le(R,m,b));else w.push(le(x.beforeEnter,m,b));return w.push(C),Ee(w)}).then(()=>(m.matched.forEach(x=>x.enterCallbacks={}),w=Et(j,"beforeRouteEnter",m,b,E),w.push(C),Ee(w))).then(()=>{w=[];for(const x of l.list())w.push(le(x,m,b));return w.push(C),Ee(w)}).catch(x=>te(x,8)?x:Promise.reject(x))}function T(m,b,w){i.list().forEach(_=>E(()=>_(m,b,w)))}function z(m,b,w,_,V){const j=I(m,b);if(j)return j;const C=b===ie,x=ee?history.state:{};w&&(_||C?a.replace(m.fullPath,D({scroll:C&&x&&x.scroll},V)):a.push(m.fullPath,V)),u.value=m,Ho(m,b,w,C),Ft()}let K;function Re(){K||(K=a.listen((m,b,w)=>{const _=O(m),V=J(_);if(V){k(D(V,{replace:!0}),_).catch(Se);return}c=_;const j=u.value;ee&&da(Nn(j.fullPath,w.delta),Fe()),v(_,j).catch(C=>te(C,12)?C:te(C,2)?(k(C.to,_).then(x=>{te(x,20)&&!w.delta&&w.type===Oe.pop&&a.go(-1,!1)}).catch(Se),Promise.reject()):(w.delta&&a.go(-w.delta,!1),M(C,_,j))).then(C=>{C=C||z(_,j,!1),C&&(w.delta&&!te(C,8)?a.go(-w.delta,!1):w.type===Oe.pop&&te(C,20)&&a.go(-1,!1)),T(_,j,C)}).catch(Se)}))}let je=xe(),Xe=xe(),X;function M(m,b,w){Ft(m);const _=Xe.list();return _.length?_.forEach(V=>V(m,b,w)):(process.env.NODE_ENV!=="production"&&N("uncaught error during route navigation:"),console.error(m)),Promise.reject(m)}function ml(){return X&&u.value!==ie?Promise.resolve():new Promise((m,b)=>{je.add([m,b])})}function Ft(m){return X||(X=!m,Re(),je.list().forEach(([b,w])=>m?w(m):b()),je.reset()),m}function Ho(m,b,w,_){const{scrollBehavior:V}=e;if(!ee||!V)return Promise.resolve();const j=!w&&pa(Nn(m.fullPath,0))||(_||!w)&&history.state&&history.state.scroll||null;return r.nextTick().then(()=>V(m,b,j)).then(C=>C&&ua(C)).catch(C=>M(C,m,b))}const Ht=m=>a.go(m);let Gt;const Ze=new Set,gl={currentRoute:u,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:$,getRoutes:y,resolve:O,options:e,push:P,replace:A,go:Ht,back:()=>Ht(-1),forward:()=>Ht(1),beforeEach:s.add,beforeResolve:l.add,afterEach:i.add,onError:Xe.add,isReady:ml,install(m){const b=this;m.component("RouterLink",Wa),m.component("RouterView",Ha),m.config.globalProperties.$router=b,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>r.unref(u)}),ee&&!Gt&&u.value===ie&&(Gt=!0,P(a.location).catch(V=>{process.env.NODE_ENV!=="production"&&N("Unexpected error when starting the router:",V)}));const w={};for(const V in ie)Object.defineProperty(w,V,{get:()=>u.value[V],enumerable:!0});m.provide(bt,b),m.provide(Un,r.shallowReactive(w)),m.provide(vt,u);const _=m.unmount;Ze.add(m),m.unmount=function(){Ze.delete(m),Ze.size<1&&(c=ie,K&&K(),K=null,u.value=ie,Gt=!1,X=!1),_()},process.env.NODE_ENV!=="production"&&ee&&Ja(m,b,t)}};function Ee(m){return m.reduce((b,w)=>b.then(()=>E(w)),Promise.resolve())}return gl}function as(e,t){const n=[],o=[],a=[],s=Math.max(t.matched.length,e.matched.length);for(let l=0;l<s;l++){const i=t.matched[l];i&&(e.matched.find(c=>se(c,i))?o.push(i):n.push(i));const u=e.matched[l];u&&(t.matched.find(c=>se(c,u))||a.push(u))}return[n,o,a]}rs({history:ga(),routes:[]});function ss(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var we=Promise.resolve();function eo(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 kt(){return Math.random().toString(36).substring(2)}var to=0,$t=0;function qe(){var e=new Date().getTime();return e===to?($t++,e*1e3+$t):(to=e,$t=0,e*1e3)}var ls=qe,cs="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:cs,averageResponseTime:ms,microSeconds:ls},no=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,oo()),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=oo()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var a=o[0],s=o[1];if(s<t)e.map.delete(a);else return}}function oo(){return new Date().getTime()}function St(){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=qe,bs="pubkey.broadcast-channel-0-",ne="messages",Je={durability:"relaxed"},vs="idb";function ro(){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 Ot(e){e.commit&&e.commit()}function Es(e){var t=ro(),n=bs+e,o=t.open(n);return o.onupgradeneeded=function(a){var s=a.target.result;s.createObjectStore(ne,{keyPath:"id",autoIncrement:!0})},new Promise(function(a,s){o.onerror=function(l){return s(l)},o.onsuccess=function(){a(o.result)}})}function _s(e,t,n){var o=new Date().getTime(),a={uuid:t,time:o,data:n},s=e.transaction([ne],"readwrite",Je);return new Promise(function(l,i){s.oncomplete=function(){return l()},s.onerror=function(c){return i(c)};var u=s.objectStore(ne);u.add(a),Ot(s)})}function ks(e,t){var n=e.transaction(ne,"readonly",Je),o=n.objectStore(ne),a=[],s=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var l=o.getAll(s);return new Promise(function(u,c){l.onerror=function(d){return c(d)},l.onsuccess=function(d){u(d.target.result)}})}function i(){try{return s=IDBKeyRange.bound(t+1,1/0),o.openCursor(s)}catch{return o.openCursor()}}return new Promise(function(u,c){var d=i();d.onerror=function(p){return c(p)},d.onsuccess=function(p){var f=p.target.result;f?f.value.id<t+1?f.continue(t+1):(a.push(f.value),f.continue()):(Ot(n),u(a))}})}function $s(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(ne,"readwrite",Je),o=n.objectStore(ne);return Promise.all(t.map(function(a){var s=o.delete(a);return new Promise(function(l){s.onsuccess=function(){return l()}})}))}function Ss(e,t){var n=new Date().getTime()-t,o=e.transaction(ne,"readonly",Je),a=o.objectStore(ne),s=[];return new Promise(function(l){a.openCursor().onsuccess=function(i){var u=i.target.result;if(u){var c=u.value;c.time<n?(s.push(c),u.continue()):(Ot(o),l(s))}else l(s)}})}function Os(e){return Ss(e.db,e.options.idb.ttl).then(function(t){return $s(e,t.map(function(n){return n.id}))})}function Ns(e,t){return t=St(t),Es(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:kt(),eMIs:new no(t.idb.ttl*2),writeBlockPromise:we,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},ao(o),o})}function ao(e){e.closed||so(e).then(function(){return eo(e.options.idb.fallbackInterval)}).then(function(){return ao(e)})}function xs(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function so(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 xs(o,e)}).sort(function(o,a){return o.time-a.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 _s(e.db,e.uuid,t)}).then(function(){is(0,10)===0&&Os(e)}),e.writeBlockPromise}function Ps(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,so(e)}function Ds(){return!!ro()}function Vs(e){return e.idb.fallbackInterval*2}var As={create:Ns,close:Cs,onMessage:Ps,postMessage:Is,canBeUsed:Ds,type:vs,averageResponseTime:Vs,microSeconds:ws},Ts=qe,Rs="pubkey.broadcastChannel-",js="localstorage";function io(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function lo(e){return Rs+e}function Bs(e,t){return new Promise(function(n){eo().then(function(){var o=lo(e.channelName),a={token:kt(),time:new Date().getTime(),data:t,uuid:e.uuid},s=JSON.stringify(a);io().setItem(o,s);var l=document.createEvent("Event");l.initEvent("storage",!0,!0),l.key=o,l.newValue=s,window.dispatchEvent(l),n()})})}function Ls(e,t){var n=lo(e),o=function(a){a.key===n&&t(JSON.parse(a.newValue))};return window.addEventListener("storage",o),o}function Ms(e){window.removeEventListener("storage",e)}function Ws(e,t){if(t=St(t),!co())throw new Error("BroadcastChannel: localstorage cannot be used");var n=kt(),o=new no(t.localstorage.removeTimeout),a={channelName:e,uuid:n,eMIs:o};return a.listener=Ls(e,function(s){a.messagesCallback&&s.uuid!==n&&(!s.token||o.has(s.token)||s.data.time&&s.data.time<a.messagesCallbackTime||(o.add(s.token),a.messagesCallback(s.data)))}),a}function Us(e){Ms(e.listener)}function zs(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function co(){var e=io();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function Fs(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var Hs={create:Ws,close:Us,onMessage:zs,postMessage:Bs,canBeUsed:co,type:js,averageResponseTime:Fs,microSeconds:Ts},Gs=qe,qs="simulate",Nt=new Set;function Js(e){var t={name:e,messagesCallback:null};return Nt.add(t),t}function Ks(e){Nt.delete(e)}function Ys(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Nt);o.filter(function(a){return a.name===e.name}).filter(function(a){return a!==e}).filter(function(a){return!!a.messagesCallback}).forEach(function(a){return a.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:qs,averageResponseTime:Zs,microSeconds:Gs},uo=[gs,As,Hs];function ti(e){var t=[].concat(e.methods,uo).filter(Boolean);if(e.type){if(e.type==="simulate")return ei;var n=t.find(function(a){return a.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(a){return a.type!=="idb"}));var o=t.find(function(a){return a.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(uo.map(function(a){return a.type})))}var po=new Set,ni=0,xt=function(e,t){this.id=ni++,po.add(this),this.name=e,this.options=St(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 fo(this,"message",e)},postInternal:function(e){return fo(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};go(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,mo(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};mo(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});go(this,e,n)},close:function(){var e=this;if(!this.closed){po.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 fo(e,t,n){var o=e.method.microSeconds(),a={time:o,type:t,data:n},s=e._prepP?e._prepP:we;return s.then(function(){var l=e.method.postMessage(e._state,a);return e._uMP.add(l),l.catch().then(function(){return e._uMP.delete(l)}),l})}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 ho(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function mo(e,t,n){e._addEL[t].push(n),ri(e)}function go(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),ai(e)}function ri(e){if(!e._iL&&ho(e)){var t=function(o){e._addEL[o.type].forEach(function(a){var s=1e5,l=a.time-s;o.time>=l&&a.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&&!ho(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}let Ct=class extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}};function yo(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 li(e){return Object.prototype.toString.call(e).slice(8,-1)}function ci(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 a=0;a<o;a+=1){const s=e[a],l=ci(s);l&&(t+=e.slice(n,a)+l,n=a+1)}return`"${n===0?e:t+e.slice(n)}"`}const It=-1,wo=-2,bo=-3,vo=-4,Eo=-5,Pt=-6;function _o(e,t){return ui(JSON.parse(e))}function ui(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function a(s,l=!1){if(s===It)return;if(s===bo)return NaN;if(s===vo)return 1/0;if(s===Eo)return-1/0;if(s===Pt)return-0;if(l)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 u=i[0];switch(u){case"Date":o[s]=new Date(i[1]);break;case"Set":const c=new Set;o[s]=c;for(let f=1;f<i.length;f+=1)c.add(a(i[f]));break;case"Map":const d=new Map;o[s]=d;for(let f=1;f<i.length;f+=2)d.set(a(i[f]),a(i[f+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 p=Object.create(null);o[s]=p;for(let f=1;f<i.length;f+=2)p[i[f]]=a(i[f+1]);break;default:throw new Error(`Unknown type ${u}`)}}else{const u=new Array(i.length);o[s]=u;for(let c=0;c<i.length;c+=1){const d=i[c];d!==wo&&(u[c]=a(d))}}else{const u={};o[s]=u;for(const c in i){const d=i[c];u[c]=a(d)}}return o[s]}return a(0)}function ko(e,t){const n=[],o=new Map,a=[];for(const c in t)a.push({key:c,fn:t[c]});const s=[];let l=0;function i(c){if(typeof c=="function")throw new Ct("Cannot stringify a function",s);if(o.has(c))return o.get(c);if(c===void 0)return It;if(Number.isNaN(c))return bo;if(c===1/0)return vo;if(c===-1/0)return Eo;if(c===0&&1/c<0)return Pt;const d=l++;o.set(c,d);for(const{key:f,fn:h}of a){const g=h(c);if(g)return n[d]=`["${f}",${i(g)}]`,d}let p="";if(yo(c))p=Dt(c);else switch(li(c)){case"Number":case"String":case"Boolean":p=`["Object",${Dt(c)}]`;break;case"BigInt":p=`["BigInt",${c}]`;break;case"Date":p=`["Date","${isNaN(c.getDate())?"":c.toISOString()}"]`;break;case"RegExp":const{source:f,flags:h}=c;p=h?`["RegExp",${be(f)},"${h}"]`:`["RegExp",${be(f)}]`;break;case"Array":p="[";for(let g=0;g<c.length;g+=1)g>0&&(p+=","),g in c?(s.push(`[${g}]`),p+=i(c[g]),s.pop()):p+=wo;p+="]";break;case"Set":p='["Set"';for(const g of c)p+=`,${i(g)}`;p+="]";break;case"Map":p='["Map"';for(const[g,y]of c)s.push(`.get(${yo(g)?Dt(g):"..."})`),p+=`,${i(g)},${i(y)}`,s.pop();p+="]";break;default:if(!ii(c))throw new Ct("Cannot stringify arbitrary non-POJOs",s);if(Object.getOwnPropertySymbols(c).length>0)throw new Ct("Cannot stringify POJOs with symbolic keys",s);if(Object.getPrototypeOf(c)===null){p='["null"';for(const g in c)s.push(`.${g}`),p+=`,${be(g)},${i(c[g])}`,s.pop();p+="]"}else{p="{";let g=!1;for(const y in c)g&&(p+=","),g=!0,s.push(`.${y}`),p+=`${be(y)}:${i(c[y])}`,s.pop();p+="}"}}return n[d]=p,d}const u=i(e);return u<0?`${u}`:`[${n.join(",")}]`}function Dt(e){const t=typeof e;return t==="string"?be(e):e instanceof String?be(e.toString()):e===void 0?It.toString():e===0&&1/e<0?Pt.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function di(e,t,{initialize:n,type:o}){let a=`${t.$id}-${e.toString()}`,s=new xt(a,{type:o}),l=!1,i=0;r.watch(()=>t[e],d=>{l||(i=Date.now(),s.postMessage({timestamp:i,state:_o(ko(d))})),l=!1},{deep:!0}),s.onmessage=d=>{if(d===void 0){s.postMessage({timestamp:i,state:_o(ko(t[e]))});return}d.timestamp<=i||(l=!0,i=d.timestamp,t[e]=d.state)};let u=()=>s.postMessage(void 0),c=()=>s.close();return n&&u(),{sync:u,unshare:c}}var pi=(e,t)=>Object.keys(t).includes(e),fi=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:a})=>{var s,l;let i=((s=a==null?void 0:a.share)==null?void 0:s.enable)??t,u=((l=a==null?void 0:a.share)==null?void 0:l.omit)??[];!i||Object.keys(o.$state).forEach(c=>{var d;u.includes(c)||!pi(c,o.$state)||di(c,o,{initialize:((d=a==null?void 0:a.share)==null?void 0:d.initialize)??e,type:n})})};Tr().use(fi({enable:!0,initialize:!0}));const $o=r.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=gn(),o=r.ref([]);return r.watch(n,()=>{if(n.value){let a=t.value.schema.schema.toArray();a.forEach((s,l)=>{const u=t.value.store.record[s.fieldname];a[l].value=u}),o.value=a}}),(a,s)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(ir),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=l=>o.value=l)},null,8,["modelValue"])):r.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 So(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Vt(e){return typeof e=="function"?e():r.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=()=>{},Ie=gi?window:void 0;function Pe(e){var t;const n=Vt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function De(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Ie):[t,n,o,a]=e,!t)return vi;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(d=>d()),s.length=0},i=(d,p,f,h)=>(d.addEventListener(p,f,h),()=>d.removeEventListener(p,f,h)),u=r.watch(()=>[Pe(t),Vt(a)],([d,p])=>{if(l(),!d)return;const f=bi(p)?{...p}:p;s.push(...n.flatMap(h=>o.map(g=>i(d,h,g,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return So(c),c}function Ei(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function _i(e){const t=Ei();return r.computed(()=>(t.value,!!e()))}function ki(e,t,n={}){const{window:o=Ie,...a}=n;let s;const l=_i(()=>o&&"MutationObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},u=r.computed(()=>{const f=Vt(e),h=(Array.isArray(f)?f:[f]).map(Pe).filter(yi);return new Set(h)}),c=r.watch(()=>u.value,f=>{i(),l.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,a)))},{immediate:!0,flush:"post"}),d=()=>s==null?void 0:s.takeRecords(),p=()=>{c(),i()};return So(p),{isSupported:l,stop:p,takeRecords:d}}function $i(e={}){var t;const{window:n=Ie,deep:o=!0,triggerOnRemoval:a=!1}=e,s=(t=e.document)!=null?t:n==null?void 0:n.document,l=()=>{var c;let d=s==null?void 0:s.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(c=d==null?void 0:d.shadowRoot)==null?void 0:c.activeElement;return d},i=r.ref(),u=()=>{i.value=l()};return n&&(De(n,"blur",c=>{c.relatedTarget===null&&u()},!0),De(n,"focus",u,!0)),a&&ki(s,c=>{c.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===i.value&&u()})},{childList:!0,subtree:!0}),u(),i}const Si="focusin",Oi="focusout";function Ni(e,t={}){const{window:n=Ie}=t,o=r.computed(()=>Pe(e)),a=r.ref(!1),s=r.computed(()=>a.value),l=$i(t);return!n||!l.value?{focused:s}:(De(o,Si,()=>a.value=!0),De(o,Oi,()=>a.value=!1),{focused:s})}function xi(e,{window:t=Ie,scrollTarget:n}={}){const o=r.ref(!1),a=()=>{if(!t)return;const s=t.document,l=Pe(e);if(!l)o.value=!1;else{const i=l.getBoundingClientRect();o.value=i.top<=(t.innerHeight||s.documentElement.clientHeight)&&i.left<=(t.innerWidth||s.documentElement.clientWidth)&&i.bottom>=0&&i.right>=0}};return r.watch(()=>Pe(e),()=>a(),{immediate:!0,flush:"post"}),t&&De(n||t,"scroll",a,{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,Oo=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.previousElementSibling;if(o){const a=Array.from(o.children)[e.cellIndex];a&&(n=a)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?At(n):n},Ci=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const a=(t=n.parentElement)==null?void 0:t.parentElement;if(a){const s=a.firstElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const a=n.parentElement;if(a){const s=a.firstElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?Tt(o):o},No=e=>{const t=e.target;return Tt(t)},Tt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const a=Array.from(o.children)[e.cellIndex];a&&(n=a)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?Tt(n):n},Ii=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const a=(t=n.parentElement)==null?void 0:t.parentElement;if(a){const s=a.lastElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const a=n.parentElement;if(a){const s=a.lastElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?At(o):o},xo=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},Co=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},Io=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!re(t)||!oe(t))?jt(t):t},Po=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!re(t)||!oe(t))?Rt(t):t},Ke=["alt","control","shift","meta"],Pi={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Bt={"keydown.up":e=>{const t=Oo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=No(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=xo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Co(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Ci(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=Ii(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Io(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Po(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Po(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=No(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Oo(e);t&&t.focus()}},"keydown.home":e=>{const t=Io(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Co(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=xo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Do(e){const t=l=>{let i=null;return l.parent&&(typeof l.parent=="string"?i=document.querySelector(l.parent):l.parent instanceof HTMLElement?i=l.parent:i=l.parent.value),i},n=l=>{const i=t(l);let u=[];if(typeof l.selectors=="string")u=i?Array.from(i.querySelectorAll(l.selectors)):Array.from(document.querySelectorAll(l.selectors));else if(Array.isArray(l.selectors))for(const c of l.selectors)c instanceof HTMLElement?u.push(c):u.push(c.$el);else if(l.selectors instanceof HTMLElement)u.push(l.selectors);else if(Array.isArray(l.selectors.value))for(const c of l.selectors.value)c instanceof HTMLElement?u.push(c):u.push(c.$el);else u.push(l.selectors.value);return u},o=l=>{const i=t(l);let u=[];return l.selectors?u=n(l):i&&(u=Array.from(i.children).filter(c=>re(c)&&oe(c))),u},a=l=>i=>{const u=Pi[i.key]||i.key.toLowerCase();if(Ke.includes(u))return;const c=l.handlers||Bt;for(const d of Object.keys(c)){const[p,...f]=d.split(".");if(p==="keydown"&&f.includes(u)){const h=c[d],g=f.filter($=>Ke.includes($)),y=Ke.some($=>{const O=$.charAt(0).toUpperCase()+$.slice(1);return i.getModifierState(O)});if(g.length>0){if(y){for(const $ of Ke)if(f.includes($)){const O=$.charAt(0).toUpperCase()+$.slice(1);i.getModifierState(O)&&h(i)}}}else y||h(i)}}},s=[];r.onMounted(()=>{for(const l of e){const i=t(l),u=o(l),c=a(l),d=i?[i]:u;for(const p of d){const{focused:f}=Ni(r.ref(p)),h=r.watch(f,g=>{g?p.addEventListener("keydown",c):p.removeEventListener("keydown",c)});s.push(h)}}}),r.onBeforeUnmount(()=>{for(const l of s)l()})}function Lt(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ye(e){return typeof e=="function"?e():r.unref(e)}const Di=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Vi=e=>e!=null,Ai=Object.prototype.toString,Ti=e=>Ai.call(e)==="[object Object]",Ri=()=>{};function ji(e){return r.getCurrentInstance()}function Bi(e,t=!0,n){ji()?r.onMounted(e,n):t?e():r.nextTick(e)}const Mt=Di?window:void 0;function ve(e){var t;const n=Ye(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Vo(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Mt):[t,n,o,a]=e,!t)return Ri;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(d=>d()),s.length=0},i=(d,p,f,h)=>(d.addEventListener(p,f,h),()=>d.removeEventListener(p,f,h)),u=r.watch(()=>[ve(t),Ye(a)],([d,p])=>{if(l(),!d)return;const f=Ti(p)?{...p}:p;s.push(...n.flatMap(h=>o.map(g=>i(d,h,g,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return Lt(c),c}function Li(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function Ao(e){const t=Li();return r.computed(()=>(t.value,!!e()))}function To(e,t,n={}){const{window:o=Mt,...a}=n;let s;const l=Ao(()=>o&&"MutationObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},u=r.computed(()=>{const f=Ye(e),h=(Array.isArray(f)?f:[f]).map(ve).filter(Vi);return new Set(h)}),c=r.watch(()=>u.value,f=>{i(),l.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,a)))},{immediate:!0,flush:"post"}),d=()=>s==null?void 0:s.takeRecords(),p=()=>{c(),i()};return Lt(p),{isSupported:l,stop:p,takeRecords:d}}function Mi(e,t,n={}){const{window:o=Mt,...a}=n;let s;const l=Ao(()=>o&&"ResizeObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},u=r.computed(()=>{const p=Ye(e);return Array.isArray(p)?p.map(f=>ve(f)):[ve(p)]}),c=r.watch(u,p=>{if(i(),l.value&&o){s=new ResizeObserver(t);for(const f of p)f&&s.observe(f,a)}},{immediate:!0,flush:"post"}),d=()=>{i(),c()};return Lt(d),{isSupported:l,stop:d}}function Wi(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:s=!0,updateTiming:l="sync"}=t,i=r.ref(0),u=r.ref(0),c=r.ref(0),d=r.ref(0),p=r.ref(0),f=r.ref(0),h=r.ref(0),g=r.ref(0);function y(){const O=ve(e);if(!O){n&&(i.value=0,u.value=0,c.value=0,d.value=0,p.value=0,f.value=0,h.value=0,g.value=0);return}const S=O.getBoundingClientRect();i.value=S.height,u.value=S.bottom,c.value=S.left,d.value=S.right,p.value=S.top,f.value=S.width,h.value=S.x,g.value=S.y}function $(){l==="sync"?y():l==="next-frame"&&requestAnimationFrame(()=>y())}return Mi(e,$),r.watch(()=>ve(e),O=>!O&&$()),To(e,$,{attributeFilter:["style","class"]}),a&&Vo("scroll",$,{capture:!0,passive:!0}),o&&Vo("resize",$,{passive:!0}),Bi(()=>{s&&$()}),{height:i,bottom:u,left:c,right:d,top:p,width:f,x:h,y:g,update:$}}const Ui=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(n=>n.nodeType===1)},zi=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],Fi=["innerHTML"],Hi={key:2},Gi=r.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},tableid:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean}},setup(e){var t;const n=r.inject(e.tableid),o=r.useTemplateRef("cell"),a=r.ref(""),s=r.ref(!1),{bottom:l,left:i}=Wi(o),u=n.table,c=n.columns[e.colIndex],d=n.rows[e.rowIndex],p=r.computed(()=>c.align||"center"),f=r.computed(()=>c.width||"40ch"),h=r.computed(()=>{const P=n.cellData(e.colIndex,e.rowIndex),A=c.format;return A?typeof A=="function"?A(P,{table:u,row:d,column:c}):typeof A=="string"?Function(`"use strict";return (${A})`)()(P,{table:u,row:d,column:c}):P:P}),g=r.computed(()=>typeof h.value=="string"?Ui(h.value):!1),y=()=>{c.mask,c.modalComponent&&(n.modal.visible=!0,n.modal.colIndex=e.colIndex,n.modal.rowIndex=e.rowIndex,n.modal.parent=o.value,n.modal.top=l.value,n.modal.left=i.value,n.modal.width=f.value,typeof c.modalComponent=="function"?n.modal.component=c.modalComponent({table:u,row:d,column:c}):n.modal.component=c.modalComponent,n.modal.componentProps=c.modalComponentExtraProps)};if(e.addNavigation){let P={...Bt,"keydown.f2":y,"keydown.alt.up":y,"keydown.alt.down":y,"keydown.alt.left":y,"keydown.alt.right":y};typeof e.addNavigation=="object"&&(P={...P,...e.addNavigation}),Do([{selectors:o,handlers:P}])}const $=()=>{o.value&&(a.value=o.value.textContent)},O=()=>{o.value&&o.value.textContent!==a.value&&(a.value=o.value.textContent,o.value.dispatchEvent(new Event("change")),s.value=!0,c.format||n.setCellData(e.rowIndex,e.colIndex,a.value))},S=(P,A)=>A&&P===0&&A>0?`${A}ch`:"inherit",I={textAlign:p.value,width:f.value,backgroundColor:s.value?"var(--cell-modified-color)":"inherit",fontWeight:s.value?"bold":"inherit",paddingLeft:S(e.colIndex,(t=n.display[e.rowIndex])==null?void 0:t.indent)};return(P,A)=>(r.openBlock(),r.createElementBlock("td",{ref:"cell","data-colindex":P.colIndex,"data-rowindex":P.rowIndex,"data-editable":r.unref(c).edit,contenteditable:r.unref(c).edit,tabindex:P.tabIndex,spellcheck:!1,style:I,onFocus:$,onPaste:O,onBlur:O,onInput:O,onClick:y,onMousedown:y,class:r.normalizeClass(["atable__cell",P.pinned?"sticky-column":""])},[r.unref(c).cellComponent?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(c).cellComponent),r.mergeProps({key:0,value:h.value},r.unref(c).cellComponentProps),null,16,["value"])):g.value?(r.openBlock(),r.createElementBlock("span",{key:1,innerHTML:h.value},null,8,Fi)):(r.openBlock(),r.createElementBlock("span",Hi,r.toDisplayString(h.value),1))],42,zi))}}),qi=["tabindex"],Ji=r.defineComponent({__name:"ARow",props:{rowIndex:{},tableid:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=r.inject(e.tableid),n=r.useTemplateRef("rowEl"),o=r.computed(()=>t.columns.some(i=>i.pinned)),a=r.computed(()=>t.config.view!=="tree"||t.display[e.rowIndex].isRoot||t.display[e.rowIndex].open),s=r.computed(()=>t.config.view!=="tree"?"":t.display[e.rowIndex].isRoot||t.display[e.rowIndex].isParent?t.display[e.rowIndex].childrenOpen?"-":"+":""),l=i=>{t.toggleRowExpand(i)};if(e.addNavigation){let i=Bt;typeof e.addNavigation=="object"&&(i={...i,...e.addNavigation}),Do([{selectors:n,handlers:i}])}return(i,u)=>r.withDirectives((r.openBlock(),r.createElementBlock("tr",{ref:"rowEl",tabindex:i.tabIndex,class:"table-row"},[r.renderSlot(i.$slots,"index",{},()=>[r.unref(t).config.view==="list"?(r.openBlock(),r.createElementBlock("td",{key:0,tabIndex:-1,class:r.normalizeClass(["list-index",o.value?"sticky-index":""])},r.toDisplayString(i.rowIndex+1),3)):r.unref(t).config.view==="tree"?(r.openBlock(),r.createElementBlock("td",{key:1,tabIndex:-1,class:r.normalizeClass(["tree-index",o.value?"sticky-index":""]),onClick:u[0]||(u[0]=c=>l(i.rowIndex))},r.toDisplayString(s.value),3)):r.createCommentVNode("",!0)]),r.renderSlot(i.$slots,"default")],8,qi)),[[r.vShow,a.value]])}});function Ro(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ve(e){return typeof e=="function"?e():r.unref(e)}const jo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ki=Object.prototype.toString,Yi=e=>Ki.call(e)==="[object Object]",Ae=()=>{},Wt=Qi();function Qi(){var e,t;return jo&&((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 Bo={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Xi(...e){if(e.length!==1)return r.toRef(...e);const t=e[0];return typeof t=="function"?r.readonly(r.customRef(()=>({get:t,set:Ae}))):r.ref(t)}function Te(e){var t;const n=Ve(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Lo=jo?window:void 0;function Qe(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Lo):[t,n,o,a]=e,!t)return Ae;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(d=>d()),s.length=0},i=(d,p,f,h)=>(d.addEventListener(p,f,h),()=>d.removeEventListener(p,f,h)),u=r.watch(()=>[Te(t),Ve(a)],([d,p])=>{if(l(),!d)return;const f=Yi(p)?{...p}:p;s.push(...n.flatMap(h=>o.map(g=>i(d,h,g,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return Ro(c),c}let Mo=!1;function Wo(e,t,n={}){const{window:o=Lo,ignore:a=[],capture:s=!0,detectIframe:l=!1}=n;if(!o)return Ae;Wt&&!Mo&&(Mo=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",Ae)),o.document.documentElement.addEventListener("click",Ae));let i=!0;const u=d=>a.some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(f=>f===d.target||d.composedPath().includes(f));{const f=Te(p);return f&&(d.target===f||d.composedPath().includes(f))}}),c=[Qe(o,"click",d=>{const p=Te(e);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(i=!u(d)),!i){i=!0;return}t(d)}},{passive:!0,capture:s}),Qe(o,"pointerdown",d=>{const p=Te(e);i=!u(d)&&!!(p&&!d.composedPath().includes(p))},{passive:!0}),l&&Qe(o,"blur",d=>{setTimeout(()=>{var p;const f=Te(e);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>c.forEach(d=>d())}const Zi={[Bo.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Wo(e,t.value,{capture:n});else{const[o,a]=t.value;e.__onClickOutside_stop=Wo(e,o,Object.assign({capture:n},a))}},[Bo.unmounted](e){e.__onClickOutside_stop()}};function Ut(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Uo(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:Uo(n)}}function el(e){const t=e||window.event,n=t.target;return Uo(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const zt=new WeakMap;function tl(e,t=!1){const n=r.ref(t);let o=null,a="";r.watch(Xi(e),i=>{const u=Ut(Ve(i));if(u){const c=u;if(zt.get(c)||zt.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(a=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const s=()=>{const i=Ut(Ve(e));!i||n.value||(Wt&&(o=Qe(i,"touchmove",u=>{el(u)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},l=()=>{const i=Ut(Ve(e));!i||!n.value||(Wt&&(o==null||o()),i.style.overflow=a,zt.delete(i),n.value=!1)};return Ro(l),r.computed({get(){return n.value},set(i){i?s():l()}})}function nl(){let e=!1;const t=r.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const a=tl(n,o.value);r.watch(t,s=>a.value=s)}}nl();class ol{constructor(t,n,o,a,s,l){pe(this,"id"),pe(this,"rows"),pe(this,"columns"),pe(this,"config"),pe(this,"table"),pe(this,"display"),pe(this,"modal"),this.id=t||crypto.randomUUID(),this.rows=o,this.columns=r.reactive(n),this.config=r.reactive(a),this.table=s||r.reactive(this.createTableObject()),this.display=this.createDisplayObject(l),this.modal=r.reactive({visible:!1})}createTableObject(){const t={};for(const[n,o]of this.columns.entries())for(const[a,s]of this.rows.entries())t[`${n}:${a}`]=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 a=this.rows.length-1;a>=0;a--){const s=this.rows[a];s.parent&&o.add(s.parent),n[a]={childrenOpen:!1,expanded:!1,indent:s.indent||null,isParent:o.has(a),isRoot:s.parent===null||s.parent===void 0,modified:!1,open:s.parent===null||s.parent===void 0,parent:s.parent}}return r.reactive(n)}get zeroColumn(){return["list","tree","list-expansion"].includes(this.config.view)}get numberedRowWidth(){return r.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 a=this.columns[n];return this.rows[t][a.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 rl={key:0,id:"resizable"},al={class:"atable-header-row",tabindex:"-1"},sl=r.defineComponent({__name:"ATableHeader",props:{columns:{},tableid:{}},setup(e){const t=r.inject(e.tableid),n=r.computed(()=>t.columns.some(a=>a.pinned)),o=a=>({minWidth:a.width||"40ch",textAlign:a.align||"center",width:t.config.fullWidth?"auto":null});return(a,s)=>a.columns.length?(r.openBlock(),r.createElementBlock("thead",rl,[r.createElementVNode("tr",al,[r.unref(t).zeroColumn?(r.openBlock(),r.createElementBlock("th",{key:0,id:"header-index",class:r.normalizeClass(n.value?"sticky-index":"")},null,2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.columns,(l,i)=>(r.openBlock(),r.createElementBlock("th",{key:l.name,tabindex:"-1",style:r.normalizeStyle(o(l)),class:r.normalizeClass(l.pinned?"sticky-column":"")},[r.renderSlot(a.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(l.label||String.fromCharCode(i+97).toUpperCase()),1)])],6))),128))])])):r.createCommentVNode("",!0)}}),il=r.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},tableid:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:"amodal",tabindex:"-1",onClick:t,onInput:t},[r.renderSlot(n.$slots,"default")],32))}}),ll=r.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r.useTemplateRef("table"),a=e.modelValue?e.modelValue:e.rows,s=new ol(e.id,e.columns,a,e.config);r.provide(s.id,s),r.watch(()=>s.rows,u=>{n("update:modelValue",u)},{deep:!0}),r.onMounted(()=>{e.columns.some(u=>u.pinned)&&(l(),s.config.view==="tree"&&To(o,l,{childList:!0,subtree:!0}))});const l=()=>{const u=o.value,c=u.rows[0],d=u.rows[1],p=c?Array.from(c.cells):[];for(const[f,h]of p.entries()){const g=d.cells[f];g&&(h.style.width=`${g.offsetWidth}px`)}for(const f of u.rows){let h=0;const g=[];for(const y of f.cells)(y.classList.contains("sticky-column")||y.classList.contains("sticky-index"))&&(y.style.left=`${h}px`,h+=y.offsetWidth,g.push(y));g.length>0&&g[g.length-1].classList.add("sticky-column-edge")}},i=u=>{var c;u.target instanceof Node&&(c=s.modal.parent)!=null&&c.contains(u.target)||s.modal.visible&&(s.modal.visible=!1)};return window.addEventListener("keydown",u=>{if(u.key==="Escape"&&s.modal.visible){s.modal.visible=!1;const c=s.modal.parent;c&&r.nextTick().then(()=>{c.focus()})}}),(u,c)=>r.withDirectives((r.openBlock(),r.createElementBlock("table",{ref:"table",class:"atable",style:r.normalizeStyle({width:r.unref(s).config.fullWidth?"100%":"auto"})},[r.renderSlot(u.$slots,"header",{data:r.unref(s)},()=>[r.createVNode(sl,{columns:r.unref(s).columns,tableid:r.unref(s).id},null,8,["columns","tableid"])]),r.createElementVNode("tbody",null,[r.renderSlot(u.$slots,"body",{data:r.unref(s)},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(s).rows,(d,p)=>(r.openBlock(),r.createBlock(Ji,{key:d.id,row:d,rowIndex:p,tableid:r.unref(s).id},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(s).columns,(f,h)=>(r.openBlock(),r.createBlock(Gi,{key:f.name,tableid:r.unref(s).id,col:f,spellcheck:"false",pinned:f.pinned,rowIndex:p,colIndex:h+(r.unref(s).zeroColumn?0:-1),component:f.cellComponent,style:r.normalizeStyle({textAlign:(f==null?void 0:f.align)||"center",minWidth:(f==null?void 0:f.width)||"40ch",width:r.unref(s).config.fullWidth?"auto":null})},null,8,["tableid","col","pinned","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","tableid"]))),128))])]),r.renderSlot(u.$slots,"footer",{data:r.unref(s)}),r.renderSlot(u.$slots,"modal",{data:r.unref(s)},()=>[r.withDirectives(r.createVNode(il,{colIndex:r.unref(s).modal.colIndex,rowIndex:r.unref(s).modal.rowIndex,tableid:r.unref(s).id,style:r.normalizeStyle({left:r.unref(s).modal.left+"px",top:r.unref(s).modal.top+"px",maxWidth:r.unref(s).modal.width+"px"})},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(s).modal.component),r.mergeProps({key:`${r.unref(s).modal.rowIndex}:${r.unref(s).modal.colIndex}`,colIndex:r.unref(s).modal.colIndex,rowIndex:r.unref(s).modal.rowIndex,tableid:r.unref(s).id},r.unref(s).modal.componentProps),null,16,["colIndex","rowIndex","tableid"]))]),_:1},8,["colIndex","rowIndex","tableid","style"]),[[r.vShow,r.unref(s).modal.visible]])])],4)),[[r.unref(Zi),i]])}}),zo=r.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=gn(),o={view:"list"};return(a,s)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(ll),{key:0,columns:r.unref(t).schema.schema.toArray(),rows:r.unref(t).store.records,config:o},null,8,["columns","rows"])):r.createCommentVNode("",!0)}}),cl={class:"tabs"},ul={tabindex:"0"},dl={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"},pl={tabindex:"0"},fl={style:{width:"11pt"}},Fo=nt(r.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=r.ref(!0),n=r.ref(!1),o=r.ref(""),a=r.useTemplateRef("searchinput"),s=r.computed(()=>t.value?"unrotated":"rotated"),l=()=>{t.value=!t.value},i=async()=>{n.value=!n.value,await r.nextTick(()=>{a.value.focus()})},u=p=>{p.preventDefault(),p.stopPropagation()},c=async p=>{p.preventDefault(),p.stopPropagation(),await i()},d=()=>{};return(p,f)=>{const h=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("footer",null,[r.createElementVNode("ul",cl,[r.createElementVNode("li",{class:"hidebreadcrumbs",onClick:l,onKeydown:r.withKeys(l,["enter"])},[r.createElementVNode("a",ul,[r.createElementVNode("div",{class:r.normalizeClass(s.value)},"ร—",2)])],32),r.createElementVNode("li",{class:"hometab",onClick:d,onKeydown:r.withKeys(d,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{to:"/home",tabindex:"0"},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("svg",dl,f[5]||(f[5]=[r.createElementVNode("g",null,[r.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
@@ -47,5 +47,5 @@ ${JSON.stringify(_,null,2)}
47
47
  c0-2.162,0.854-4.235,2.39-5.755c1.528-1.52,3.585-2.374,5.739-2.374c0.008,0,0.008,0,0.016,0l45.105,0.089l-79.855-79.863
48
48
  c-1.528-1.528-2.382-3.593-2.382-5.747V66.628h-31.498v26.645c0,3.284-1.975,6.251-5.015,7.511
49
49
  c-3.032,1.268-6.527,0.569-8.86-1.764l-57.038-57.038l-183.95,183.95l45.203,0.089c4.487,0.008,8.112,3.642,8.112,8.129
50
- C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),r.createElementVNode("li",{class:"searchtab",onClick:i,onKeydown:r.withKeys(i,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createElementVNode("a",ul,[r.createElementVNode("span",{style:r.normalizeStyle({display:n.value?"none":"block"})},[(r.openBlock(),r.createElementBlock("svg",dl,f[6]||(f[6]=[r.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[r.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=m=>o.value=m),ref:"searchinput",style:r.normalizeStyle({display:n.value?"block":"none"}),onClick:f[1]||(f[1]=m=>u(m)),onInput:f[2]||(f[2]=m=>u(m)),onBlur:f[3]||(f[3]=m=>c(m)),onKeydown:f[4]||(f[4]=r.withKeys(m=>c(m),["enter"])),type:"text"},null,36),[[r.vModelText,o.value]])])],36),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.breadcrumbs,m=>(r.openBlock(),r.createElementBlock("li",{key:m.title,style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{tabindex:"0",to:m.to},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(m.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-a650f215"]]),pl={install:e=>{e.component("ActionSet",qt),e.component("CommandPalette",Jt),e.component("Doctype",$o),e.component("Records",zo),e.component("SheetNav",Fo)}};F.ActionSet=qt,F.CommandPalette=Jt,F.Doctype=$o,F.Records=zo,F.SheetNav=Fo,F.StonecropDesktop=pl,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
50
+ C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),r.createElementVNode("li",{class:"searchtab",onClick:i,onKeydown:r.withKeys(i,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createElementVNode("a",pl,[r.createElementVNode("span",{style:r.normalizeStyle({display:n.value?"none":"block"})},[(r.openBlock(),r.createElementBlock("svg",fl,f[6]||(f[6]=[r.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[r.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=g=>o.value=g),ref:"searchinput",style:r.normalizeStyle({display:n.value?"block":"none"}),onClick:f[1]||(f[1]=g=>u(g)),onInput:f[2]||(f[2]=g=>u(g)),onBlur:f[3]||(f[3]=g=>c(g)),onKeydown:f[4]||(f[4]=r.withKeys(g=>c(g),["enter"])),type:"text"},null,36),[[r.vModelText,o.value]])])],36),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.breadcrumbs,g=>(r.openBlock(),r.createElementBlock("li",{key:g.title,style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{tabindex:"0",to:g.to},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(g.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-a650f215"]]),hl={install:e=>{e.component("ActionSet",qt),e.component("CommandPalette",Jt),e.component("Doctype",$o),e.component("Records",zo),e.component("SheetNav",Fo)}};F.ActionSet=qt,F.CommandPalette=Jt,F.Doctype=$o,F.Records=zo,F.SheetNav=Fo,F.StonecropDesktop=hl,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
51
51
  //# sourceMappingURL=desktop.umd.cjs.map