@stonecrop/desktop 0.2.13 โ†’ 0.2.20

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