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