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