@stonecrop/desktop 0.2.47 → 0.2.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(F,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(F=typeof globalThis<"u"?globalThis:F||self,r(F["@stonecrop/desktop"]={},F.Vue))})(this,function(F,r){"use strict";const Go={class:"action-menu-icon"},qo=["onclick"],Jo={key:1},Ko=["onClick"],Yo={class:"dropdown-container"},Qo={class:"dropdown"},Xo=["onclick"],Zo=["href"],er={class:"dropdown-item"},tr=r.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=r.ref(e.elements),n=r.ref(!1),o=r.ref(null),a=r.ref(!1),s=r.ref(!1);r.onMounted(()=>{l()});const l=()=>{for(const d of t.value)d.elementType==="dropdown"&&(d.show=!1)},i=()=>{a.value=!0,o.value=setTimeout(()=>{a.value&&(n.value=!0)},500)},u=()=>{a.value=!1,s.value=!1,clearTimeout(o.value),n.value=!1},c=d=>{const p=!t.value[d].show;l(),t.value[d].show=p};return(d,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"open-set":n.value,"hovered-and-closed":s.value},"action-set collapse"]),onMouseover:i,onMouseleave:u},[r.createElementVNode("div",Go,[r.createElementVNode("div",{id:"chevron",onClick:p[0]||(p[0]=f=>s.value=!s.value)},p[1]||(p[1]=[r.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[r.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),r.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[r.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),p[2]||(p[2]=r.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.value,(f,h)=>(r.openBlock(),r.createElementBlock("div",{class:"action-element",key:f.label},[f.elementType=="button"?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:f.action,class:"button-default"},r.toDisplayString(f.label),9,qo)):r.createCommentVNode("",!0),f.elementType=="dropdown"?(r.openBlock(),r.createElementBlock("div",Jo,[r.createElementVNode("button",{class:"button-default",onClick:g=>c(h)},r.toDisplayString(f.label),9,Ko),r.withDirectives(r.createElementVNode("div",Yo,[r.createElementVNode("div",Qo,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.actions,g=>(r.openBlock(),r.createElementBlock("div",{key:g.label},[g.action!=null?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:g.action,class:"dropdown-item"},r.toDisplayString(g.label),9,Xo)):g.link!=null?(r.openBlock(),r.createElementBlock("a",{key:1,href:g.link},[r.createElementVNode("button",er,r.toDisplayString(g.label),1)],8,Zo)):r.createCommentVNode("",!0)]))),128))])],512),[[r.vShow,f.show]])])):r.createCommentVNode("",!0)]))),128))],34))}}),nt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n},qt=nt(tr,[["__scopeId","data-v-4fb5c934"]]),nr={};function or(e,t){return r.openBlock(),r.createElementBlock("dialog")}const Jt=nt(nr,[["render",or]]),rr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ar={class:"aform"},sr=r.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r.ref(e.data||{}),a=l=>{let i={};for(const[u,c]of Object.entries(l))["component","fieldtype"].includes(u)||(i[u]=c),u==="rows"&&c&&c.length===0&&(i.rows=o.value[l.fieldname]);return i},s=r.computed({get:()=>e.modelValue.map((l,i)=>r.computed({get(){return l.value},set:u=>{e.modelValue[i].value=u,n("update:modelValue",e.modelValue)}})),set:()=>{}});return(l,i)=>(r.openBlock(),r.createElementBlock("form",ar,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.modelValue,(u,c)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(u.component),r.mergeProps({key:c,schema:u,modelValue:s.value[c].value,"onUpdate:modelValue":d=>s.value[c].value=d,data:o.value[u.fieldname],readonly:l.readonly,ref_for:!0},a(u)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),ir=rr(sr,[["__scopeId","data-v-15ed36be"]]);typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;var lr=Object.defineProperty,cr=(e,t,n)=>t in e?lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H=(e,t,n)=>cr(e,typeof t!="symbol"?t+"":t,n);function ot(e){this.message=e||""}ot.prototype=Object.create(Error.prototype,{constructor:{value:ot},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const Kt=class et{constructor(t,n,o,a,s){if(H(this,"name","Stonecrop"),H(this,"registry"),H(this,"schema"),H(this,"workflow"),H(this,"actions"),H(this,"store"),et._root)return et._root;et._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=a,this.actions=s}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new ot(t.doctype)}getWorkflow(t){const n=this.registry.registry[t.slug];this.workflow=n.workflow}getActions(t){const n=this.registry.registry[t.slug];this.actions=n.actions}async getRecords(t,n){this.store.$patch({records:[]});const o=await(await fetch(`/${t.slug}`,n)).json();this.store.$patch({records:o})}async getRecord(t,n){this.store.$patch({record:{}});const o=await(await fetch(`/${t.slug}/${n}`)).json();this.store.$patch({record:o})}runAction(t,n,o){const a=this.registry.registry[t.slug].actions.get(n),{initialState:s}=this.workflow;this.workflow.transition(s,{type:n}),a.length>0&&a.forEach(l=>{new Function(l)(o)})}};H(Kt,"_root");let ur=Kt;var Yt=!1;function Be(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function rt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function dr(){return Qt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Qt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const pr=typeof Proxy=="function",fr="devtools-plugin:setup",hr="plugin:settings:set";let _e,at;function mr(){var e;return _e!==void 0||(typeof window<"u"&&window.performance?(_e=!0,at=window.performance):typeof globalThis<"u"&&!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance?(_e=!0,at=globalThis.perf_hooks.performance):_e=!1),_e}function gr(){return mr()?at.now():Date.now()}class yr{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const l in t.settings){const i=t.settings[l];o[l]=i.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},o);try{const l=localStorage.getItem(a),i=JSON.parse(l);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(l){try{localStorage.setItem(a,JSON.stringify(l))}catch{}s=l},now(){return gr()}},n&&n.on(hr,(l,i)=>{l===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(l,i)=>this.target?this.target.on[i]:(...u)=>{this.onQueue.push({method:i,args:u})}}),this.proxiedTarget=new Proxy({},{get:(l,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...u)=>(this.targetQueue.push({method:i,args:u,resolve:()=>{}}),this.fallbacks[i](...u)):(...u)=>new Promise(c=>{this.targetQueue.push({method:i,args:u,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function st(e,t){const n=e,o=Qt(),a=dr(),s=pr&&n.enableEarlyProxy;if(a&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(fr,e,t);else{const l=s?new yr(n,a):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:l}),l&&t(l.proxiedTarget)}}/*!
1
+ (function(F,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(F=typeof globalThis<"u"?globalThis:F||self,r(F["@stonecrop/desktop"]={},F.Vue))})(this,function(F,r){"use strict";const Go={class:"action-menu-icon"},qo=["onclick"],Jo={key:1},Ko=["onClick"],Yo={class:"dropdown-container"},Qo={class:"dropdown"},Xo=["onclick"],Zo=["href"],er={class:"dropdown-item"},tr=r.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=r.ref(e.elements),n=r.ref(!1),o=r.ref(null),a=r.ref(!1),s=r.ref(!1);r.onMounted(()=>{l()});const l=()=>{for(const d of t.value)d.elementType==="dropdown"&&(d.show=!1)},i=()=>{a.value=!0,o.value=setTimeout(()=>{a.value&&(n.value=!0)},500)},u=()=>{a.value=!1,s.value=!1,clearTimeout(o.value),n.value=!1},c=d=>{const p=!t.value[d].show;l(),t.value[d].show=p};return(d,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"open-set":n.value,"hovered-and-closed":s.value},"action-set collapse"]),onMouseover:i,onMouseleave:u},[r.createElementVNode("div",Go,[r.createElementVNode("div",{id:"chevron",onClick:p[0]||(p[0]=f=>s.value=!s.value)},p[1]||(p[1]=[r.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[r.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),r.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[r.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),p[2]||(p[2]=r.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.value,(f,h)=>(r.openBlock(),r.createElementBlock("div",{class:"action-element",key:f.label},[f.elementType=="button"?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:f.action,class:"button-default"},r.toDisplayString(f.label),9,qo)):r.createCommentVNode("",!0),f.elementType=="dropdown"?(r.openBlock(),r.createElementBlock("div",Jo,[r.createElementVNode("button",{class:"button-default",onClick:g=>c(h)},r.toDisplayString(f.label),9,Ko),r.withDirectives(r.createElementVNode("div",Yo,[r.createElementVNode("div",Qo,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.actions,g=>(r.openBlock(),r.createElementBlock("div",{key:g.label},[g.action!=null?(r.openBlock(),r.createElementBlock("button",{key:0,onclick:g.action,class:"dropdown-item"},r.toDisplayString(g.label),9,Xo)):g.link!=null?(r.openBlock(),r.createElementBlock("a",{key:1,href:g.link},[r.createElementVNode("button",er,r.toDisplayString(g.label),1)],8,Zo)):r.createCommentVNode("",!0)]))),128))])],512),[[r.vShow,f.show]])])):r.createCommentVNode("",!0)]))),128))],34))}}),nt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n},qt=nt(tr,[["__scopeId","data-v-4fb5c934"]]),nr={};function or(e,t){return r.openBlock(),r.createElementBlock("dialog")}const Jt=nt(nr,[["render",or]]),rr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ar={class:"aform"},sr=r.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r.ref(e.data||{}),a=l=>{let i={};for(const[u,c]of Object.entries(l))["component","fieldtype"].includes(u)||(i[u]=c),u==="rows"&&c&&c.length===0&&(i.rows=o.value[l.fieldname]);return i},s=r.computed({get:()=>e.modelValue.map((l,i)=>r.computed({get(){return l.value},set:u=>{e.modelValue[i].value=u,n("update:modelValue",e.modelValue)}})),set:()=>{}});return(l,i)=>(r.openBlock(),r.createElementBlock("form",ar,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.modelValue,(u,c)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(u.component),r.mergeProps({key:c,schema:u,modelValue:s.value[c].value,"onUpdate:modelValue":d=>s.value[c].value=d,data:o.value[u.fieldname],readonly:l.readonly,ref_for:!0},a(u)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),ir=rr(sr,[["__scopeId","data-v-f3a1a760"]]);typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;var lr=Object.defineProperty,cr=(e,t,n)=>t in e?lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H=(e,t,n)=>cr(e,typeof t!="symbol"?t+"":t,n);function ot(e){this.message=e||""}ot.prototype=Object.create(Error.prototype,{constructor:{value:ot},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const Kt=class et{constructor(t,n,o,a,s){if(H(this,"name","Stonecrop"),H(this,"registry"),H(this,"schema"),H(this,"workflow"),H(this,"actions"),H(this,"store"),et._root)return et._root;et._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=a,this.actions=s}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new ot(t.doctype)}getWorkflow(t){const n=this.registry.registry[t.slug];this.workflow=n.workflow}getActions(t){const n=this.registry.registry[t.slug];this.actions=n.actions}async getRecords(t,n){this.store.$patch({records:[]});const o=await(await fetch(`/${t.slug}`,n)).json();this.store.$patch({records:o})}async getRecord(t,n){this.store.$patch({record:{}});const o=await(await fetch(`/${t.slug}/${n}`)).json();this.store.$patch({record:o})}runAction(t,n,o){const a=this.registry.registry[t.slug].actions.get(n),{initialState:s}=this.workflow;this.workflow.transition(s,{type:n}),a.length>0&&a.forEach(l=>{new Function(l)(o)})}};H(Kt,"_root");let ur=Kt;var Yt=!1;function Be(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function rt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function dr(){return Qt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Qt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const pr=typeof Proxy=="function",fr="devtools-plugin:setup",hr="plugin:settings:set";let _e,at;function mr(){var e;return _e!==void 0||(typeof window<"u"&&window.performance?(_e=!0,at=window.performance):typeof globalThis<"u"&&!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance?(_e=!0,at=globalThis.perf_hooks.performance):_e=!1),_e}function gr(){return mr()?at.now():Date.now()}class yr{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const l in t.settings){const i=t.settings[l];o[l]=i.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},o);try{const l=localStorage.getItem(a),i=JSON.parse(l);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(l){try{localStorage.setItem(a,JSON.stringify(l))}catch{}s=l},now(){return gr()}},n&&n.on(hr,(l,i)=>{l===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(l,i)=>this.target?this.target.on[i]:(...u)=>{this.onQueue.push({method:i,args:u})}}),this.proxiedTarget=new Proxy({},{get:(l,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...u)=>(this.targetQueue.push({method:i,args:u,resolve:()=>{}}),this.fallbacks[i](...u)):(...u)=>new Promise(c=>{this.targetQueue.push({method:i,args:u,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function st(e,t){const n=e,o=Qt(),a=dr(),s=pr&&n.enableEarlyProxy;if(a&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(fr,e,t);else{const l=s?new yr(n,a):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:l}),l&&t(l.proxiedTarget)}}/*!
2
2
  * pinia v2.2.2
3
3
  * (c) 2024 Eduardo San Martin Morote
4
4
  * @license MIT
@@ -38,8 +38,8 @@ Use slot props instead:
38
38
  - Location:`,m),O({});let w;if(m.path!=null)process.env.NODE_ENV!=="production"&&"params"in m&&!("name"in m)&&Object.keys(m.params).length&&N(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),w=D({},m,{path:mt(n,m.path,b.path).path});else{const x=D({},m.params);for(const R in x)x[R]==null&&delete x[R];w=D({},m,{params:p(x)}),b.params=p(b.params)}const _=t.resolve(w,b),V=m.hash||"";process.env.NODE_ENV!=="production"&&V&&!V.startsWith("#")&&N(`A \`hash\` should always start with the character "#". Replace "${V}" with "#${V}".`),_.params=d(f(_.params));const j=oa(o,D({},m,{hash:Qr(V),path:_.path})),C=a.createHref(j);return process.env.NODE_ENV!=="production"&&(C.startsWith("//")?N(`Location "${m}" resolved to "${C}". A resolved location cannot start with multiple slashes.`):_.matched.length||N(`No match found for location with path "${m.path!=null?m.path:m}"`)),D({fullPath:j,hash:V,query:o===Mn?ja(m.query):m.query||{}},_,{redirectedFrom:void 0,href:C})}function S(m){return typeof m=="string"?mt(n,m,u.value.path):D({},m)}function I(m,b){if(c!==m)return ye(8,{from:b,to:m})}function P(m){return k(m)}function A(m){return P(D(S(m),{replace:!0}))}function J(m){const b=m.matched[m.matched.length-1];if(b&&b.redirect){const{redirect:w}=b;let _=typeof w=="function"?w(m):w;if(typeof _=="string"&&(_=_.includes("?")||_.includes("#")?_=S(_):{path:_},_.params={}),process.env.NODE_ENV!=="production"&&_.path==null&&!("name"in _))throw N(`Invalid redirect found:
39
39
  ${JSON.stringify(_,null,2)}
40
40
  when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return D({query:m.query,hash:m.hash,params:_.path!=null?{}:m.params},_)}}function k(m,b){const w=c=O(m),_=u.value,V=m.state,j=m.force,C=m.replace===!0,x=J(w);if(x)return k(D(S(x),{state:typeof x=="object"?D({},V,x.state):V,force:j,replace:C}),b||w);const R=w;R.redirectedFrom=b;let fe;return!j&&$n(o,_,w)&&(fe=ye(16,{to:R,from:_}),Ho(_,_,!0,!1)),(fe?Promise.resolve(fe):v(R,_)).catch(W=>te(W)?te(W,2)?W:Ft(W):M(W,R,_)).then(W=>{if(W){if(te(W,2))return process.env.NODE_ENV!=="production"&&$n(o,O(W.to),R)&&b&&(b._count=b._count?b._count+1:1)>30?(N(`Detected a possibly infinite redirection in a navigation guard when going from "${_.fullPath}" to "${R.fullPath}". Aborting to avoid a Stack Overflow.
41
- Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):k(D({replace:C},S(W.to),{state:typeof W.to=="object"?D({},V,W.to.state):V,force:j}),b||R)}else W=z(R,_,!0,C,V);return T(R,_,W),W})}function Q(m,b){const w=I(m,b);return w?Promise.reject(w):Promise.resolve()}function E(m){const b=Ze.values().next().value;return b&&typeof b.runWithContext=="function"?b.runWithContext(m):m()}function v(m,b){let w;const[_,V,j]=as(m,b);w=Et(_.reverse(),"beforeRouteLeave",m,b);for(const x of _)x.leaveGuards.forEach(R=>{w.push(le(R,m,b))});const C=Q.bind(null,m,b);return w.push(C),Ee(w).then(()=>{w=[];for(const x of s.list())w.push(le(x,m,b));return w.push(C),Ee(w)}).then(()=>{w=Et(V,"beforeRouteUpdate",m,b);for(const x of V)x.updateGuards.forEach(R=>{w.push(le(R,m,b))});return w.push(C),Ee(w)}).then(()=>{w=[];for(const x of j)if(x.beforeEnter)if(U(x.beforeEnter))for(const R of x.beforeEnter)w.push(le(R,m,b));else w.push(le(x.beforeEnter,m,b));return w.push(C),Ee(w)}).then(()=>(m.matched.forEach(x=>x.enterCallbacks={}),w=Et(j,"beforeRouteEnter",m,b,E),w.push(C),Ee(w))).then(()=>{w=[];for(const x of l.list())w.push(le(x,m,b));return w.push(C),Ee(w)}).catch(x=>te(x,8)?x:Promise.reject(x))}function T(m,b,w){i.list().forEach(_=>E(()=>_(m,b,w)))}function z(m,b,w,_,V){const j=I(m,b);if(j)return j;const C=b===ie,x=ee?history.state:{};w&&(_||C?a.replace(m.fullPath,D({scroll:C&&x&&x.scroll},V)):a.push(m.fullPath,V)),u.value=m,Ho(m,b,w,C),Ft()}let K;function Re(){K||(K=a.listen((m,b,w)=>{const _=O(m),V=J(_);if(V){k(D(V,{replace:!0}),_).catch(Se);return}c=_;const j=u.value;ee&&da(Nn(j.fullPath,w.delta),Fe()),v(_,j).catch(C=>te(C,12)?C:te(C,2)?(k(C.to,_).then(x=>{te(x,20)&&!w.delta&&w.type===Oe.pop&&a.go(-1,!1)}).catch(Se),Promise.reject()):(w.delta&&a.go(-w.delta,!1),M(C,_,j))).then(C=>{C=C||z(_,j,!1),C&&(w.delta&&!te(C,8)?a.go(-w.delta,!1):w.type===Oe.pop&&te(C,20)&&a.go(-1,!1)),T(_,j,C)}).catch(Se)}))}let je=xe(),Xe=xe(),X;function M(m,b,w){Ft(m);const _=Xe.list();return _.length?_.forEach(V=>V(m,b,w)):(process.env.NODE_ENV!=="production"&&N("uncaught error during route navigation:"),console.error(m)),Promise.reject(m)}function ml(){return X&&u.value!==ie?Promise.resolve():new Promise((m,b)=>{je.add([m,b])})}function Ft(m){return X||(X=!m,Re(),je.list().forEach(([b,w])=>m?w(m):b()),je.reset()),m}function Ho(m,b,w,_){const{scrollBehavior:V}=e;if(!ee||!V)return Promise.resolve();const j=!w&&pa(Nn(m.fullPath,0))||(_||!w)&&history.state&&history.state.scroll||null;return r.nextTick().then(()=>V(m,b,j)).then(C=>C&&ua(C)).catch(C=>M(C,m,b))}const Ht=m=>a.go(m);let Gt;const Ze=new Set,gl={currentRoute:u,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:$,getRoutes:y,resolve:O,options:e,push:P,replace:A,go:Ht,back:()=>Ht(-1),forward:()=>Ht(1),beforeEach:s.add,beforeResolve:l.add,afterEach:i.add,onError:Xe.add,isReady:ml,install(m){const b=this;m.component("RouterLink",Wa),m.component("RouterView",Ha),m.config.globalProperties.$router=b,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>r.unref(u)}),ee&&!Gt&&u.value===ie&&(Gt=!0,P(a.location).catch(V=>{process.env.NODE_ENV!=="production"&&N("Unexpected error when starting the router:",V)}));const w={};for(const V in ie)Object.defineProperty(w,V,{get:()=>u.value[V],enumerable:!0});m.provide(bt,b),m.provide(Un,r.shallowReactive(w)),m.provide(vt,u);const _=m.unmount;Ze.add(m),m.unmount=function(){Ze.delete(m),Ze.size<1&&(c=ie,K&&K(),K=null,u.value=ie,Gt=!1,X=!1),_()},process.env.NODE_ENV!=="production"&&ee&&Ja(m,b,t)}};function Ee(m){return m.reduce((b,w)=>b.then(()=>E(w)),Promise.resolve())}return gl}function as(e,t){const n=[],o=[],a=[],s=Math.max(t.matched.length,e.matched.length);for(let l=0;l<s;l++){const i=t.matched[l];i&&(e.matched.find(c=>se(c,i))?o.push(i):n.push(i));const u=e.matched[l];u&&(t.matched.find(c=>se(c,u))||a.push(u))}return[n,o,a]}rs({history:ga(),routes:[]});function ss(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var we=Promise.resolve();function eo(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function is(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function kt(){return Math.random().toString(36).substring(2)}var to=0,$t=0;function qe(){var e=new Date().getTime();return e===to?($t++,e*1e3+$t):(to=e,$t=0,e*1e3)}var ls=qe,cs="native";function us(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function ds(e){e.bc.close(),e.subFns=[]}function ps(e,t){try{return e.bc.postMessage(t,!1),we}catch(n){return Promise.reject(n)}}function fs(e,t){e.messagesCallback=t}function hs(){if(typeof window>"u")return!1;if(typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function ms(){return 150}var gs={create:us,close:ds,onMessage:fs,postMessage:ps,canBeUsed:hs,type:cs,averageResponseTime:ms,microSeconds:ls},no=function(){function e(t){this.ttl=t,this.map=new Map,this._to=!1}return e.prototype.has=function(t){return this.map.has(t)},e.prototype.add=function(t){var n=this;this.map.set(t,oo()),this._to||(this._to=!0,setTimeout(function(){n._to=!1,ys(n)},0))},e.prototype.clear=function(){this.map.clear()},e}();function ys(e){for(var t=oo()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var a=o[0],s=o[1];if(s<t)e.map.delete(a);else return}}function oo(){return new Date().getTime()}function St(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var ws=qe,bs="pubkey.broadcast-channel-0-",ne="messages",Je={durability:"relaxed"},vs="idb";function ro(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function Ot(e){e.commit&&e.commit()}function Es(e){var t=ro(),n=bs+e,o=t.open(n);return o.onupgradeneeded=function(a){var s=a.target.result;s.createObjectStore(ne,{keyPath:"id",autoIncrement:!0})},new Promise(function(a,s){o.onerror=function(l){return s(l)},o.onsuccess=function(){a(o.result)}})}function _s(e,t,n){var o=new Date().getTime(),a={uuid:t,time:o,data:n},s=e.transaction([ne],"readwrite",Je);return new Promise(function(l,i){s.oncomplete=function(){return l()},s.onerror=function(c){return i(c)};var u=s.objectStore(ne);u.add(a),Ot(s)})}function ks(e,t){var n=e.transaction(ne,"readonly",Je),o=n.objectStore(ne),a=[],s=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var l=o.getAll(s);return new Promise(function(u,c){l.onerror=function(d){return c(d)},l.onsuccess=function(d){u(d.target.result)}})}function i(){try{return s=IDBKeyRange.bound(t+1,1/0),o.openCursor(s)}catch{return o.openCursor()}}return new Promise(function(u,c){var d=i();d.onerror=function(p){return c(p)},d.onsuccess=function(p){var f=p.target.result;f?f.value.id<t+1?f.continue(t+1):(a.push(f.value),f.continue()):(Ot(n),u(a))}})}function $s(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(ne,"readwrite",Je),o=n.objectStore(ne);return Promise.all(t.map(function(a){var s=o.delete(a);return new Promise(function(l){s.onsuccess=function(){return l()}})}))}function Ss(e,t){var n=new Date().getTime()-t,o=e.transaction(ne,"readonly",Je),a=o.objectStore(ne),s=[];return new Promise(function(l){a.openCursor().onsuccess=function(i){var u=i.target.result;if(u){var c=u.value;c.time<n?(s.push(c),u.continue()):(Ot(o),l(s))}else l(s)}})}function Os(e){return Ss(e.db,e.options.idb.ttl).then(function(t){return $s(e,t.map(function(n){return n.id}))})}function Ns(e,t){return t=St(t),Es(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:kt(),eMIs:new no(t.idb.ttl*2),writeBlockPromise:we,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},ao(o),o})}function ao(e){e.closed||so(e).then(function(){return eo(e.options.idb.fallbackInterval)}).then(function(){return ao(e)})}function xs(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function so(e){return e.closed||!e.messagesCallback?we:ks(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(o){return!!o}).map(function(o){return o.id>e.lastCursorId&&(e.lastCursorId=o.id),o}).filter(function(o){return xs(o,e)}).sort(function(o,a){return o.time-a.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),we})}function Cs(e){e.closed=!0,e.db.close()}function Is(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return _s(e.db,e.uuid,t)}).then(function(){is(0,10)===0&&Os(e)}),e.writeBlockPromise}function Ps(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,so(e)}function Ds(){return!!ro()}function Vs(e){return e.idb.fallbackInterval*2}var As={create:Ns,close:Cs,onMessage:Ps,postMessage:Is,canBeUsed:Ds,type:vs,averageResponseTime:Vs,microSeconds:ws},Ts=qe,Rs="pubkey.broadcastChannel-",js="localstorage";function io(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function lo(e){return Rs+e}function Bs(e,t){return new Promise(function(n){eo().then(function(){var o=lo(e.channelName),a={token:kt(),time:new Date().getTime(),data:t,uuid:e.uuid},s=JSON.stringify(a);io().setItem(o,s);var l=document.createEvent("Event");l.initEvent("storage",!0,!0),l.key=o,l.newValue=s,window.dispatchEvent(l),n()})})}function Ls(e,t){var n=lo(e),o=function(a){a.key===n&&t(JSON.parse(a.newValue))};return window.addEventListener("storage",o),o}function Ms(e){window.removeEventListener("storage",e)}function Ws(e,t){if(t=St(t),!co())throw new Error("BroadcastChannel: localstorage cannot be used");var n=kt(),o=new no(t.localstorage.removeTimeout),a={channelName:e,uuid:n,eMIs:o};return a.listener=Ls(e,function(s){a.messagesCallback&&s.uuid!==n&&(!s.token||o.has(s.token)||s.data.time&&s.data.time<a.messagesCallbackTime||(o.add(s.token),a.messagesCallback(s.data)))}),a}function Us(e){Ms(e.listener)}function zs(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function co(){var e=io();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function Fs(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var Hs={create:Ws,close:Us,onMessage:zs,postMessage:Bs,canBeUsed:co,type:js,averageResponseTime:Fs,microSeconds:Ts},Gs=qe,qs="simulate",Nt=new Set;function Js(e){var t={name:e,messagesCallback:null};return Nt.add(t),t}function Ks(e){Nt.delete(e)}function Ys(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Nt);o.filter(function(a){return a.name===e.name}).filter(function(a){return a!==e}).filter(function(a){return!!a.messagesCallback}).forEach(function(a){return a.messagesCallback(t)}),n()},5)})}function Qs(e,t){e.messagesCallback=t}function Xs(){return!0}function Zs(){return 5}var ei={create:Js,close:Ks,onMessage:Qs,postMessage:Ys,canBeUsed:Xs,type:qs,averageResponseTime:Zs,microSeconds:Gs},uo=[gs,As,Hs];function ti(e){var t=[].concat(e.methods,uo).filter(Boolean);if(e.type){if(e.type==="simulate")return ei;var n=t.find(function(a){return a.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(a){return a.type!=="idb"}));var o=t.find(function(a){return a.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(uo.map(function(a){return a.type})))}var po=new Set,ni=0,xt=function(e,t){this.id=ni++,po.add(this),this.name=e,this.options=St(t),this.method=ti(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,oi(this)};xt._pubkey=!0,xt.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return fo(this,"message",e)},postInternal:function(e){return fo(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};go(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,mo(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};mo(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});go(this,e,n)},close:function(){var e=this;if(!this.closed){po.delete(this),this.closed=!0;var t=this._prepP?this._prepP:we;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function fo(e,t,n){var o=e.method.microSeconds(),a={time:o,type:t,data:n},s=e._prepP?e._prepP:we;return s.then(function(){var l=e.method.postMessage(e._state,a);return e._uMP.add(l),l.catch().then(function(){return e._uMP.delete(l)}),l})}function oi(e){var t=e.method.create(e.name,e.options);ss(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function ho(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function mo(e,t,n){e._addEL[t].push(n),ri(e)}function go(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),ai(e)}function ri(e){if(!e._iL&&ho(e)){var t=function(o){e._addEL[o.type].forEach(function(a){var s=1e5,l=a.time-s;o.time>=l&&a.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function ai(e){if(e._iL&&!ho(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}let Ct=class extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}};function yo(e){return Object(e)!==e}const si=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ii(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===si}function li(e){return Object.prototype.toString.call(e).slice(8,-1)}function ci(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
42
- `:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function be(e){let t="",n=0;const o=e.length;for(let a=0;a<o;a+=1){const s=e[a],l=ci(s);l&&(t+=e.slice(n,a)+l,n=a+1)}return`"${n===0?e:t+e.slice(n)}"`}const It=-1,wo=-2,bo=-3,vo=-4,Eo=-5,Pt=-6;function _o(e,t){return ui(JSON.parse(e))}function ui(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function a(s,l=!1){if(s===It)return;if(s===bo)return NaN;if(s===vo)return 1/0;if(s===Eo)return-1/0;if(s===Pt)return-0;if(l)throw new Error("Invalid input");if(s in o)return o[s];const i=n[s];if(!i||typeof i!="object")o[s]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const u=i[0];switch(u){case"Date":o[s]=new Date(i[1]);break;case"Set":const c=new Set;o[s]=c;for(let f=1;f<i.length;f+=1)c.add(a(i[f]));break;case"Map":const d=new Map;o[s]=d;for(let f=1;f<i.length;f+=2)d.set(a(i[f]),a(i[f+1]));break;case"RegExp":o[s]=new RegExp(i[1],i[2]);break;case"Object":o[s]=Object(i[1]);break;case"BigInt":o[s]=BigInt(i[1]);break;case"null":const p=Object.create(null);o[s]=p;for(let f=1;f<i.length;f+=2)p[i[f]]=a(i[f+1]);break;default:throw new Error(`Unknown type ${u}`)}}else{const u=new Array(i.length);o[s]=u;for(let c=0;c<i.length;c+=1){const d=i[c];d!==wo&&(u[c]=a(d))}}else{const u={};o[s]=u;for(const c in i){const d=i[c];u[c]=a(d)}}return o[s]}return a(0)}function ko(e,t){const n=[],o=new Map,a=[];for(const c in t)a.push({key:c,fn:t[c]});const s=[];let l=0;function i(c){if(typeof c=="function")throw new Ct("Cannot stringify a function",s);if(o.has(c))return o.get(c);if(c===void 0)return It;if(Number.isNaN(c))return bo;if(c===1/0)return vo;if(c===-1/0)return Eo;if(c===0&&1/c<0)return Pt;const d=l++;o.set(c,d);for(const{key:f,fn:h}of a){const g=h(c);if(g)return n[d]=`["${f}",${i(g)}]`,d}let p="";if(yo(c))p=Dt(c);else switch(li(c)){case"Number":case"String":case"Boolean":p=`["Object",${Dt(c)}]`;break;case"BigInt":p=`["BigInt",${c}]`;break;case"Date":p=`["Date","${isNaN(c.getDate())?"":c.toISOString()}"]`;break;case"RegExp":const{source:f,flags:h}=c;p=h?`["RegExp",${be(f)},"${h}"]`:`["RegExp",${be(f)}]`;break;case"Array":p="[";for(let g=0;g<c.length;g+=1)g>0&&(p+=","),g in c?(s.push(`[${g}]`),p+=i(c[g]),s.pop()):p+=wo;p+="]";break;case"Set":p='["Set"';for(const g of c)p+=`,${i(g)}`;p+="]";break;case"Map":p='["Map"';for(const[g,y]of c)s.push(`.get(${yo(g)?Dt(g):"..."})`),p+=`,${i(g)},${i(y)}`,s.pop();p+="]";break;default:if(!ii(c))throw new Ct("Cannot stringify arbitrary non-POJOs",s);if(Object.getOwnPropertySymbols(c).length>0)throw new Ct("Cannot stringify POJOs with symbolic keys",s);if(Object.getPrototypeOf(c)===null){p='["null"';for(const g in c)s.push(`.${g}`),p+=`,${be(g)},${i(c[g])}`,s.pop();p+="]"}else{p="{";let g=!1;for(const y in c)g&&(p+=","),g=!0,s.push(`.${y}`),p+=`${be(y)}:${i(c[y])}`,s.pop();p+="}"}}return n[d]=p,d}const u=i(e);return u<0?`${u}`:`[${n.join(",")}]`}function Dt(e){const t=typeof e;return t==="string"?be(e):e instanceof String?be(e.toString()):e===void 0?It.toString():e===0&&1/e<0?Pt.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function di(e,t,{initialize:n,type:o}){let a=`${t.$id}-${e.toString()}`,s=new xt(a,{type:o}),l=!1,i=0;r.watch(()=>t[e],d=>{l||(i=Date.now(),s.postMessage({timestamp:i,state:_o(ko(d))})),l=!1},{deep:!0}),s.onmessage=d=>{if(d===void 0){s.postMessage({timestamp:i,state:_o(ko(t[e]))});return}d.timestamp<=i||(l=!0,i=d.timestamp,t[e]=d.state)};let u=()=>s.postMessage(void 0),c=()=>s.close();return n&&u(),{sync:u,unshare:c}}var pi=(e,t)=>Object.keys(t).includes(e),fi=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:a})=>{var s,l;let i=((s=a==null?void 0:a.share)==null?void 0:s.enable)??t,u=((l=a==null?void 0:a.share)==null?void 0:l.omit)??[];!i||Object.keys(o.$state).forEach(c=>{var d;u.includes(c)||!pi(c,o.$state)||di(c,o,{initialize:((d=a==null?void 0:a.share)==null?void 0:d.initialize)??e,type:n})})};Tr().use(fi({enable:!0,initialize:!0}));const $o=r.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=gn(),o=r.ref([]);return r.watch(n,()=>{if(n.value){let a=t.value.schema.schema.toArray();a.forEach((s,l)=>{const u=t.value.store.record[s.fieldname];a[l].value=u}),o.value=a}}),(a,s)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(ir),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=l=>o.value=l)},null,8,["modelValue"])):r.createCommentVNode("",!0)}});var hi=Object.defineProperty,mi=(e,t,n)=>t in e?hi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pe=(e,t,n)=>mi(e,typeof t!="symbol"?t+"":t,n);function So(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Vt(e){return typeof e=="function"?e():r.unref(e)}const gi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yi=e=>e!=null,wi=Object.prototype.toString,bi=e=>wi.call(e)==="[object Object]",vi=()=>{},Ie=gi?window:void 0;function Pe(e){var t;const n=Vt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function De(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Ie):[t,n,o,a]=e,!t)return vi;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(d=>d()),s.length=0},i=(d,p,f,h)=>(d.addEventListener(p,f,h),()=>d.removeEventListener(p,f,h)),u=r.watch(()=>[Pe(t),Vt(a)],([d,p])=>{if(l(),!d)return;const f=bi(p)?{...p}:p;s.push(...n.flatMap(h=>o.map(g=>i(d,h,g,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return So(c),c}function Ei(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function _i(e){const t=Ei();return r.computed(()=>(t.value,!!e()))}function ki(e,t,n={}){const{window:o=Ie,...a}=n;let s;const l=_i(()=>o&&"MutationObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},u=r.computed(()=>{const f=Vt(e),h=(Array.isArray(f)?f:[f]).map(Pe).filter(yi);return new Set(h)}),c=r.watch(()=>u.value,f=>{i(),l.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,a)))},{immediate:!0,flush:"post"}),d=()=>s==null?void 0:s.takeRecords(),p=()=>{c(),i()};return So(p),{isSupported:l,stop:p,takeRecords:d}}function $i(e={}){var t;const{window:n=Ie,deep:o=!0,triggerOnRemoval:a=!1}=e,s=(t=e.document)!=null?t:n==null?void 0:n.document,l=()=>{var c;let d=s==null?void 0:s.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(c=d==null?void 0:d.shadowRoot)==null?void 0:c.activeElement;return d},i=r.ref(),u=()=>{i.value=l()};return n&&(De(n,"blur",c=>{c.relatedTarget===null&&u()},!0),De(n,"focus",u,!0)),a&&ki(s,c=>{c.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===i.value&&u()})},{childList:!0,subtree:!0}),u(),i}const Si="focusin",Oi="focusout";function Ni(e,t={}){const{window:n=Ie}=t,o=r.computed(()=>Pe(e)),a=r.ref(!1),s=r.computed(()=>a.value),l=$i(t);return!n||!l.value?{focused:s}:(De(o,Si,()=>a.value=!0),De(o,Oi,()=>a.value=!1),{focused:s})}function xi(e,{window:t=Ie,scrollTarget:n}={}){const o=r.ref(!1),a=()=>{if(!t)return;const s=t.document,l=Pe(e);if(!l)o.value=!1;else{const i=l.getBoundingClientRect();o.value=i.top<=(t.innerHeight||s.documentElement.clientHeight)&&i.left<=(t.innerWidth||s.documentElement.clientWidth)&&i.bottom>=0&&i.right>=0}};return r.watch(()=>Pe(e),()=>a(),{immediate:!0,flush:"post"}),t&&De(n||t,"scroll",a,{capture:!1,passive:!0}),o}const oe=e=>{let t=xi(e).value;return t=t&&e.offsetHeight>0,t},re=e=>e.tabIndex>=0,Oo=e=>{const t=e.target;return At(t)},At=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const a=Array.from(o.children)[e.cellIndex];a&&(n=a)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?At(n):n},Ci=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const a=(t=n.parentElement)==null?void 0:t.parentElement;if(a){const s=a.firstElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const a=n.parentElement;if(a){const s=a.firstElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?Tt(o):o},No=e=>{const t=e.target;return Tt(t)},Tt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const a=Array.from(o.children)[e.cellIndex];a&&(n=a)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?Tt(n):n},Ii=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const a=(t=n.parentElement)==null?void 0:t.parentElement;if(a){const s=a.lastElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const a=n.parentElement;if(a){const s=a.lastElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?At(o):o},xo=e=>{const t=e.target;return Rt(t)},Rt=e=>{var t;let n;if(e.previousElementSibling)n=e.previousElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!re(n)||!oe(n))?Rt(n):n},Co=e=>{const t=e.target;return jt(t)},jt=e=>{var t;let n;if(e.nextElementSibling)n=e.nextElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!re(n)||!oe(n))?jt(n):n},Io=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!re(t)||!oe(t))?jt(t):t},Po=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!re(t)||!oe(t))?Rt(t):t},Ke=["alt","control","shift","meta"],Pi={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Bt={"keydown.up":e=>{const t=Oo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=No(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=xo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Co(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Ci(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=Ii(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Io(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Po(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Po(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=No(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Oo(e);t&&t.focus()}},"keydown.home":e=>{const t=Io(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Co(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=xo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Do(e){const t=l=>{let i=null;return l.parent&&(typeof l.parent=="string"?i=document.querySelector(l.parent):l.parent instanceof HTMLElement?i=l.parent:i=l.parent.value),i},n=l=>{const i=t(l);let u=[];if(typeof l.selectors=="string")u=i?Array.from(i.querySelectorAll(l.selectors)):Array.from(document.querySelectorAll(l.selectors));else if(Array.isArray(l.selectors))for(const c of l.selectors)c instanceof HTMLElement?u.push(c):u.push(c.$el);else if(l.selectors instanceof HTMLElement)u.push(l.selectors);else if(Array.isArray(l.selectors.value))for(const c of l.selectors.value)c instanceof HTMLElement?u.push(c):u.push(c.$el);else u.push(l.selectors.value);return u},o=l=>{const i=t(l);let u=[];return l.selectors?u=n(l):i&&(u=Array.from(i.children).filter(c=>re(c)&&oe(c))),u},a=l=>i=>{const u=Pi[i.key]||i.key.toLowerCase();if(Ke.includes(u))return;const c=l.handlers||Bt;for(const d of Object.keys(c)){const[p,...f]=d.split(".");if(p==="keydown"&&f.includes(u)){const h=c[d],g=f.filter($=>Ke.includes($)),y=Ke.some($=>{const O=$.charAt(0).toUpperCase()+$.slice(1);return i.getModifierState(O)});if(g.length>0){if(y){for(const $ of Ke)if(f.includes($)){const O=$.charAt(0).toUpperCase()+$.slice(1);i.getModifierState(O)&&h(i)}}}else y||h(i)}}},s=[];r.onMounted(()=>{for(const l of e){const i=t(l),u=o(l),c=a(l),d=i?[i]:u;for(const p of d){const{focused:f}=Ni(r.ref(p)),h=r.watch(f,g=>{g?p.addEventListener("keydown",c):p.removeEventListener("keydown",c)});s.push(h)}}}),r.onBeforeUnmount(()=>{for(const l of s)l()})}function Lt(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ye(e){return typeof e=="function"?e():r.unref(e)}const Di=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Vi=e=>e!=null,Ai=Object.prototype.toString,Ti=e=>Ai.call(e)==="[object Object]",Ri=()=>{};function ji(e){return r.getCurrentInstance()}function Bi(e,t=!0,n){ji()?r.onMounted(e,n):t?e():r.nextTick(e)}const Mt=Di?window:void 0;function ve(e){var t;const n=Ye(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Vo(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Mt):[t,n,o,a]=e,!t)return Ri;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(d=>d()),s.length=0},i=(d,p,f,h)=>(d.addEventListener(p,f,h),()=>d.removeEventListener(p,f,h)),u=r.watch(()=>[ve(t),Ye(a)],([d,p])=>{if(l(),!d)return;const f=Ti(p)?{...p}:p;s.push(...n.flatMap(h=>o.map(g=>i(d,h,g,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return Lt(c),c}function Li(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function Ao(e){const t=Li();return r.computed(()=>(t.value,!!e()))}function To(e,t,n={}){const{window:o=Mt,...a}=n;let s;const l=Ao(()=>o&&"MutationObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},u=r.computed(()=>{const f=Ye(e),h=(Array.isArray(f)?f:[f]).map(ve).filter(Vi);return new Set(h)}),c=r.watch(()=>u.value,f=>{i(),l.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,a)))},{immediate:!0,flush:"post"}),d=()=>s==null?void 0:s.takeRecords(),p=()=>{c(),i()};return Lt(p),{isSupported:l,stop:p,takeRecords:d}}function Mi(e,t,n={}){const{window:o=Mt,...a}=n;let s;const l=Ao(()=>o&&"ResizeObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},u=r.computed(()=>{const p=Ye(e);return Array.isArray(p)?p.map(f=>ve(f)):[ve(p)]}),c=r.watch(u,p=>{if(i(),l.value&&o){s=new ResizeObserver(t);for(const f of p)f&&s.observe(f,a)}},{immediate:!0,flush:"post"}),d=()=>{i(),c()};return Lt(d),{isSupported:l,stop:d}}function Wi(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:s=!0,updateTiming:l="sync"}=t,i=r.ref(0),u=r.ref(0),c=r.ref(0),d=r.ref(0),p=r.ref(0),f=r.ref(0),h=r.ref(0),g=r.ref(0);function y(){const O=ve(e);if(!O){n&&(i.value=0,u.value=0,c.value=0,d.value=0,p.value=0,f.value=0,h.value=0,g.value=0);return}const S=O.getBoundingClientRect();i.value=S.height,u.value=S.bottom,c.value=S.left,d.value=S.right,p.value=S.top,f.value=S.width,h.value=S.x,g.value=S.y}function $(){l==="sync"?y():l==="next-frame"&&requestAnimationFrame(()=>y())}return Mi(e,$),r.watch(()=>ve(e),O=>!O&&$()),To(e,$,{attributeFilter:["style","class"]}),a&&Vo("scroll",$,{capture:!0,passive:!0}),o&&Vo("resize",$,{passive:!0}),Bi(()=>{s&&$()}),{height:i,bottom:u,left:c,right:d,top:p,width:f,x:h,y:g,update:$}}const Ui=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(n=>n.nodeType===1)},zi=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],Fi=["innerHTML"],Hi={key:2},Gi=r.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},tableid:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean}},setup(e){var t;const n=r.inject(e.tableid),o=r.useTemplateRef("cell"),a=r.ref(""),s=r.ref(!1),{bottom:l,left:i}=Wi(o),u=n.table,c=n.columns[e.colIndex],d=n.rows[e.rowIndex],p=r.computed(()=>c.align||"center"),f=r.computed(()=>c.width||"40ch"),h=r.computed(()=>{const P=n.cellData(e.colIndex,e.rowIndex),A=c.format;return A?typeof A=="function"?A(P,{table:u,row:d,column:c}):typeof A=="string"?Function(`"use strict";return (${A})`)()(P,{table:u,row:d,column:c}):P:P}),g=r.computed(()=>typeof h.value=="string"?Ui(h.value):!1),y=()=>{c.mask,c.modalComponent&&(n.modal.visible=!0,n.modal.colIndex=e.colIndex,n.modal.rowIndex=e.rowIndex,n.modal.parent=o.value,n.modal.top=l.value,n.modal.left=i.value,n.modal.width=f.value,typeof c.modalComponent=="function"?n.modal.component=c.modalComponent({table:u,row:d,column:c}):n.modal.component=c.modalComponent,n.modal.componentProps=c.modalComponentExtraProps)};if(e.addNavigation){let P={...Bt,"keydown.f2":y,"keydown.alt.up":y,"keydown.alt.down":y,"keydown.alt.left":y,"keydown.alt.right":y};typeof e.addNavigation=="object"&&(P={...P,...e.addNavigation}),Do([{selectors:o,handlers:P}])}const $=()=>{o.value&&(a.value=o.value.textContent)},O=()=>{o.value&&o.value.textContent!==a.value&&(a.value=o.value.textContent,o.value.dispatchEvent(new Event("change")),s.value=!0,c.format||n.setCellData(e.rowIndex,e.colIndex,a.value))},S=(P,A)=>A&&P===0&&A>0?`${A}ch`:"inherit",I={textAlign:p.value,width:f.value,backgroundColor:s.value?"var(--cell-modified-color)":"inherit",fontWeight:s.value?"bold":"inherit",paddingLeft:S(e.colIndex,(t=n.display[e.rowIndex])==null?void 0:t.indent)};return(P,A)=>(r.openBlock(),r.createElementBlock("td",{ref:"cell","data-colindex":P.colIndex,"data-rowindex":P.rowIndex,"data-editable":r.unref(c).edit,contenteditable:r.unref(c).edit,tabindex:P.tabIndex,spellcheck:!1,style:I,onFocus:$,onPaste:O,onBlur:O,onInput:O,onClick:y,onMousedown:y,class:r.normalizeClass(["atable__cell",P.pinned?"sticky-column":""])},[r.unref(c).cellComponent?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(c).cellComponent),r.mergeProps({key:0,value:h.value},r.unref(c).cellComponentProps),null,16,["value"])):g.value?(r.openBlock(),r.createElementBlock("span",{key:1,innerHTML:h.value},null,8,Fi)):(r.openBlock(),r.createElementBlock("span",Hi,r.toDisplayString(h.value),1))],42,zi))}}),qi=["tabindex"],Ji=r.defineComponent({__name:"ARow",props:{rowIndex:{},tableid:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=r.inject(e.tableid),n=r.useTemplateRef("rowEl"),o=r.computed(()=>t.columns.some(i=>i.pinned)),a=r.computed(()=>t.config.view!=="tree"||t.display[e.rowIndex].isRoot||t.display[e.rowIndex].open),s=r.computed(()=>t.config.view!=="tree"?"":t.display[e.rowIndex].isRoot||t.display[e.rowIndex].isParent?t.display[e.rowIndex].childrenOpen?"-":"+":""),l=i=>{t.toggleRowExpand(i)};if(e.addNavigation){let i=Bt;typeof e.addNavigation=="object"&&(i={...i,...e.addNavigation}),Do([{selectors:n,handlers:i}])}return(i,u)=>r.withDirectives((r.openBlock(),r.createElementBlock("tr",{ref:"rowEl",tabindex:i.tabIndex,class:"table-row"},[r.renderSlot(i.$slots,"index",{},()=>[r.unref(t).config.view==="list"?(r.openBlock(),r.createElementBlock("td",{key:0,tabIndex:-1,class:r.normalizeClass(["list-index",o.value?"sticky-index":""])},r.toDisplayString(i.rowIndex+1),3)):r.unref(t).config.view==="tree"?(r.openBlock(),r.createElementBlock("td",{key:1,tabIndex:-1,class:r.normalizeClass(["tree-index",o.value?"sticky-index":""]),onClick:u[0]||(u[0]=c=>l(i.rowIndex))},r.toDisplayString(s.value),3)):r.createCommentVNode("",!0)]),r.renderSlot(i.$slots,"default")],8,qi)),[[r.vShow,a.value]])}});function Ro(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ve(e){return typeof e=="function"?e():r.unref(e)}const jo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ki=Object.prototype.toString,Yi=e=>Ki.call(e)==="[object Object]",Ae=()=>{},Wt=Qi();function Qi(){var e,t;return jo&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const Bo={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Xi(...e){if(e.length!==1)return r.toRef(...e);const t=e[0];return typeof t=="function"?r.readonly(r.customRef(()=>({get:t,set:Ae}))):r.ref(t)}function Te(e){var t;const n=Ve(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Lo=jo?window:void 0;function Qe(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Lo):[t,n,o,a]=e,!t)return Ae;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(d=>d()),s.length=0},i=(d,p,f,h)=>(d.addEventListener(p,f,h),()=>d.removeEventListener(p,f,h)),u=r.watch(()=>[Te(t),Ve(a)],([d,p])=>{if(l(),!d)return;const f=Yi(p)?{...p}:p;s.push(...n.flatMap(h=>o.map(g=>i(d,h,g,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return Ro(c),c}let Mo=!1;function Wo(e,t,n={}){const{window:o=Lo,ignore:a=[],capture:s=!0,detectIframe:l=!1}=n;if(!o)return Ae;Wt&&!Mo&&(Mo=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",Ae)),o.document.documentElement.addEventListener("click",Ae));let i=!0;const u=d=>a.some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(f=>f===d.target||d.composedPath().includes(f));{const f=Te(p);return f&&(d.target===f||d.composedPath().includes(f))}}),c=[Qe(o,"click",d=>{const p=Te(e);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(i=!u(d)),!i){i=!0;return}t(d)}},{passive:!0,capture:s}),Qe(o,"pointerdown",d=>{const p=Te(e);i=!u(d)&&!!(p&&!d.composedPath().includes(p))},{passive:!0}),l&&Qe(o,"blur",d=>{setTimeout(()=>{var p;const f=Te(e);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>c.forEach(d=>d())}const Zi={[Bo.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Wo(e,t.value,{capture:n});else{const[o,a]=t.value;e.__onClickOutside_stop=Wo(e,o,Object.assign({capture:n},a))}},[Bo.unmounted](e){e.__onClickOutside_stop()}};function Ut(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Uo(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:Uo(n)}}function el(e){const t=e||window.event,n=t.target;return Uo(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const zt=new WeakMap;function tl(e,t=!1){const n=r.ref(t);let o=null,a="";r.watch(Xi(e),i=>{const u=Ut(Ve(i));if(u){const c=u;if(zt.get(c)||zt.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(a=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const s=()=>{const i=Ut(Ve(e));!i||n.value||(Wt&&(o=Qe(i,"touchmove",u=>{el(u)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},l=()=>{const i=Ut(Ve(e));!i||!n.value||(Wt&&(o==null||o()),i.style.overflow=a,zt.delete(i),n.value=!1)};return Ro(l),r.computed({get(){return n.value},set(i){i?s():l()}})}function nl(){let e=!1;const t=r.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const a=tl(n,o.value);r.watch(t,s=>a.value=s)}}nl();class ol{constructor(t,n,o,a,s,l){pe(this,"id"),pe(this,"rows"),pe(this,"columns"),pe(this,"config"),pe(this,"table"),pe(this,"display"),pe(this,"modal"),this.id=t||crypto.randomUUID(),this.rows=o,this.columns=r.reactive(n),this.config=r.reactive(a),this.table=s||r.reactive(this.createTableObject()),this.display=this.createDisplayObject(l),this.modal=r.reactive({visible:!1})}createTableObject(){const t={};for(const[n,o]of this.columns.entries())for(const[a,s]of this.rows.entries())t[`${n}:${a}`]=s[o.name];return t}createDisplayObject(t){const n=[Object.assign({},{modified:!1})];if(t&&"0:0"in t)return t;const o=new Set;for(let a=this.rows.length-1;a>=0;a--){const s=this.rows[a];s.parent&&o.add(s.parent),n[a]={childrenOpen:!1,expanded:!1,indent:s.indent||null,isParent:o.has(a),isRoot:s.parent===null||s.parent===void 0,modified:!1,open:s.parent===null||s.parent===void 0,parent:s.parent}}return r.reactive(n)}get zeroColumn(){return["list","tree","list-expansion"].includes(this.config.view)}get numberedRowWidth(){return r.computed(()=>String(Math.ceil(this.rows.length/100)+1)+"ch")}cellData(t,n){return this.table[`${t}:${n}`]}setCellData(t,n,o){this.table[`${n}:${t}`]!==o&&(this.display[t].modified=!0),this.table[`${n}:${t}`]=o;const a=this.columns[n];return this.rows[t][a.name]=o,this.table[`${n}:${t}`]}toggleRowExpand(t){if(this.config.view==="tree"){this.display[t].childrenOpen=!this.display[t].childrenOpen;for(let n=this.rows.length-1;n>=0;n--)this.display[n].parent===t&&(this.display[n].open=!this.display[n].open,this.display[n].childrenOpen&&this.toggleRowExpand(n))}else this.config.view==="list-expansion"&&(this.display[t].expanded=!this.display[t].expanded)}}const rl={key:0,id:"resizable"},al={class:"atable-header-row",tabindex:"-1"},sl=r.defineComponent({__name:"ATableHeader",props:{columns:{},tableid:{}},setup(e){const t=r.inject(e.tableid),n=r.computed(()=>t.columns.some(a=>a.pinned)),o=a=>({minWidth:a.width||"40ch",textAlign:a.align||"center",width:t.config.fullWidth?"auto":null});return(a,s)=>a.columns.length?(r.openBlock(),r.createElementBlock("thead",rl,[r.createElementVNode("tr",al,[r.unref(t).zeroColumn?(r.openBlock(),r.createElementBlock("th",{key:0,id:"header-index",class:r.normalizeClass(n.value?"sticky-index":"")},null,2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.columns,(l,i)=>(r.openBlock(),r.createElementBlock("th",{key:l.name,tabindex:"-1",style:r.normalizeStyle(o(l)),class:r.normalizeClass(l.pinned?"sticky-column":"")},[r.renderSlot(a.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(l.label||String.fromCharCode(i+97).toUpperCase()),1)])],6))),128))])])):r.createCommentVNode("",!0)}}),il=r.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},tableid:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:"amodal",tabindex:"-1",onClick:t,onInput:t},[r.renderSlot(n.$slots,"default")],32))}}),ll=r.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r.useTemplateRef("table"),a=e.modelValue?e.modelValue:e.rows,s=new ol(e.id,e.columns,a,e.config);r.provide(s.id,s),r.watch(()=>s.rows,u=>{n("update:modelValue",u)},{deep:!0}),r.onMounted(()=>{e.columns.some(u=>u.pinned)&&(l(),s.config.view==="tree"&&To(o,l,{childList:!0,subtree:!0}))});const l=()=>{const u=o.value,c=u.rows[0],d=u.rows[1],p=c?Array.from(c.cells):[];for(const[f,h]of p.entries()){const g=d.cells[f];g&&(h.style.width=`${g.offsetWidth}px`)}for(const f of u.rows){let h=0;const g=[];for(const y of f.cells)(y.classList.contains("sticky-column")||y.classList.contains("sticky-index"))&&(y.style.left=`${h}px`,h+=y.offsetWidth,g.push(y));g.length>0&&g[g.length-1].classList.add("sticky-column-edge")}},i=u=>{var c;u.target instanceof Node&&(c=s.modal.parent)!=null&&c.contains(u.target)||s.modal.visible&&(s.modal.visible=!1)};return window.addEventListener("keydown",u=>{if(u.key==="Escape"&&s.modal.visible){s.modal.visible=!1;const c=s.modal.parent;c&&r.nextTick().then(()=>{c.focus()})}}),(u,c)=>r.withDirectives((r.openBlock(),r.createElementBlock("table",{ref:"table",class:"atable",style:r.normalizeStyle({width:r.unref(s).config.fullWidth?"100%":"auto"})},[r.renderSlot(u.$slots,"header",{data:r.unref(s)},()=>[r.createVNode(sl,{columns:r.unref(s).columns,tableid:r.unref(s).id},null,8,["columns","tableid"])]),r.createElementVNode("tbody",null,[r.renderSlot(u.$slots,"body",{data:r.unref(s)},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(s).rows,(d,p)=>(r.openBlock(),r.createBlock(Ji,{key:d.id,row:d,rowIndex:p,tableid:r.unref(s).id},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(s).columns,(f,h)=>(r.openBlock(),r.createBlock(Gi,{key:f.name,tableid:r.unref(s).id,col:f,spellcheck:"false",pinned:f.pinned,rowIndex:p,colIndex:h+(r.unref(s).zeroColumn?0:-1),component:f.cellComponent,style:r.normalizeStyle({textAlign:(f==null?void 0:f.align)||"center",minWidth:(f==null?void 0:f.width)||"40ch",width:r.unref(s).config.fullWidth?"auto":null})},null,8,["tableid","col","pinned","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","tableid"]))),128))])]),r.renderSlot(u.$slots,"footer",{data:r.unref(s)}),r.renderSlot(u.$slots,"modal",{data:r.unref(s)},()=>[r.withDirectives(r.createVNode(il,{colIndex:r.unref(s).modal.colIndex,rowIndex:r.unref(s).modal.rowIndex,tableid:r.unref(s).id,style:r.normalizeStyle({left:r.unref(s).modal.left+"px",top:r.unref(s).modal.top+"px",maxWidth:r.unref(s).modal.width+"px"})},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(s).modal.component),r.mergeProps({key:`${r.unref(s).modal.rowIndex}:${r.unref(s).modal.colIndex}`,colIndex:r.unref(s).modal.colIndex,rowIndex:r.unref(s).modal.rowIndex,tableid:r.unref(s).id},r.unref(s).modal.componentProps),null,16,["colIndex","rowIndex","tableid"]))]),_:1},8,["colIndex","rowIndex","tableid","style"]),[[r.vShow,r.unref(s).modal.visible]])])],4)),[[r.unref(Zi),i]])}}),zo=r.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=gn(),o={view:"list"};return(a,s)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(ll),{key:0,columns:r.unref(t).schema.schema.toArray(),rows:r.unref(t).store.records,config:o},null,8,["columns","rows"])):r.createCommentVNode("",!0)}}),cl={class:"tabs"},ul={tabindex:"0"},dl={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 424.098 424.098",style:{"enable-background":"new 0 0 424.098 424.098"},"xml:space":"preserve"},pl={tabindex:"0"},fl={style:{width:"11pt"}},Fo=nt(r.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=r.ref(!0),n=r.ref(!1),o=r.ref(""),a=r.useTemplateRef("searchinput"),s=r.computed(()=>t.value?"unrotated":"rotated"),l=()=>{t.value=!t.value},i=async()=>{n.value=!n.value,await r.nextTick(()=>{a.value.focus()})},u=p=>{p.preventDefault(),p.stopPropagation()},c=async p=>{p.preventDefault(),p.stopPropagation(),await i()},d=()=>{};return(p,f)=>{const h=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("footer",null,[r.createElementVNode("ul",cl,[r.createElementVNode("li",{class:"hidebreadcrumbs",onClick:l,onKeydown:r.withKeys(l,["enter"])},[r.createElementVNode("a",ul,[r.createElementVNode("div",{class:r.normalizeClass(s.value)},"×",2)])],32),r.createElementVNode("li",{class:"hometab",onClick:d,onKeydown:r.withKeys(d,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{to:"/home",tabindex:"0"},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("svg",dl,f[5]||(f[5]=[r.createElementVNode("g",null,[r.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
41
+ Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):k(D({replace:C},S(W.to),{state:typeof W.to=="object"?D({},V,W.to.state):V,force:j}),b||R)}else W=z(R,_,!0,C,V);return T(R,_,W),W})}function Q(m,b){const w=I(m,b);return w?Promise.reject(w):Promise.resolve()}function E(m){const b=Ze.values().next().value;return b&&typeof b.runWithContext=="function"?b.runWithContext(m):m()}function v(m,b){let w;const[_,V,j]=as(m,b);w=Et(_.reverse(),"beforeRouteLeave",m,b);for(const x of _)x.leaveGuards.forEach(R=>{w.push(le(R,m,b))});const C=Q.bind(null,m,b);return w.push(C),Ee(w).then(()=>{w=[];for(const x of s.list())w.push(le(x,m,b));return w.push(C),Ee(w)}).then(()=>{w=Et(V,"beforeRouteUpdate",m,b);for(const x of V)x.updateGuards.forEach(R=>{w.push(le(R,m,b))});return w.push(C),Ee(w)}).then(()=>{w=[];for(const x of j)if(x.beforeEnter)if(U(x.beforeEnter))for(const R of x.beforeEnter)w.push(le(R,m,b));else w.push(le(x.beforeEnter,m,b));return w.push(C),Ee(w)}).then(()=>(m.matched.forEach(x=>x.enterCallbacks={}),w=Et(j,"beforeRouteEnter",m,b,E),w.push(C),Ee(w))).then(()=>{w=[];for(const x of l.list())w.push(le(x,m,b));return w.push(C),Ee(w)}).catch(x=>te(x,8)?x:Promise.reject(x))}function T(m,b,w){i.list().forEach(_=>E(()=>_(m,b,w)))}function z(m,b,w,_,V){const j=I(m,b);if(j)return j;const C=b===ie,x=ee?history.state:{};w&&(_||C?a.replace(m.fullPath,D({scroll:C&&x&&x.scroll},V)):a.push(m.fullPath,V)),u.value=m,Ho(m,b,w,C),Ft()}let K;function Re(){K||(K=a.listen((m,b,w)=>{const _=O(m),V=J(_);if(V){k(D(V,{replace:!0}),_).catch(Se);return}c=_;const j=u.value;ee&&da(Nn(j.fullPath,w.delta),Fe()),v(_,j).catch(C=>te(C,12)?C:te(C,2)?(k(C.to,_).then(x=>{te(x,20)&&!w.delta&&w.type===Oe.pop&&a.go(-1,!1)}).catch(Se),Promise.reject()):(w.delta&&a.go(-w.delta,!1),M(C,_,j))).then(C=>{C=C||z(_,j,!1),C&&(w.delta&&!te(C,8)?a.go(-w.delta,!1):w.type===Oe.pop&&te(C,20)&&a.go(-1,!1)),T(_,j,C)}).catch(Se)}))}let je=xe(),Xe=xe(),X;function M(m,b,w){Ft(m);const _=Xe.list();return _.length?_.forEach(V=>V(m,b,w)):(process.env.NODE_ENV!=="production"&&N("uncaught error during route navigation:"),console.error(m)),Promise.reject(m)}function yl(){return X&&u.value!==ie?Promise.resolve():new Promise((m,b)=>{je.add([m,b])})}function Ft(m){return X||(X=!m,Re(),je.list().forEach(([b,w])=>m?w(m):b()),je.reset()),m}function Ho(m,b,w,_){const{scrollBehavior:V}=e;if(!ee||!V)return Promise.resolve();const j=!w&&pa(Nn(m.fullPath,0))||(_||!w)&&history.state&&history.state.scroll||null;return r.nextTick().then(()=>V(m,b,j)).then(C=>C&&ua(C)).catch(C=>M(C,m,b))}const Ht=m=>a.go(m);let Gt;const Ze=new Set,wl={currentRoute:u,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:$,getRoutes:y,resolve:O,options:e,push:P,replace:A,go:Ht,back:()=>Ht(-1),forward:()=>Ht(1),beforeEach:s.add,beforeResolve:l.add,afterEach:i.add,onError:Xe.add,isReady:yl,install(m){const b=this;m.component("RouterLink",Wa),m.component("RouterView",Ha),m.config.globalProperties.$router=b,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>r.unref(u)}),ee&&!Gt&&u.value===ie&&(Gt=!0,P(a.location).catch(V=>{process.env.NODE_ENV!=="production"&&N("Unexpected error when starting the router:",V)}));const w={};for(const V in ie)Object.defineProperty(w,V,{get:()=>u.value[V],enumerable:!0});m.provide(bt,b),m.provide(Un,r.shallowReactive(w)),m.provide(vt,u);const _=m.unmount;Ze.add(m),m.unmount=function(){Ze.delete(m),Ze.size<1&&(c=ie,K&&K(),K=null,u.value=ie,Gt=!1,X=!1),_()},process.env.NODE_ENV!=="production"&&ee&&Ja(m,b,t)}};function Ee(m){return m.reduce((b,w)=>b.then(()=>E(w)),Promise.resolve())}return wl}function as(e,t){const n=[],o=[],a=[],s=Math.max(t.matched.length,e.matched.length);for(let l=0;l<s;l++){const i=t.matched[l];i&&(e.matched.find(c=>se(c,i))?o.push(i):n.push(i));const u=e.matched[l];u&&(t.matched.find(c=>se(c,u))||a.push(u))}return[n,o,a]}rs({history:ga(),routes:[]});function ss(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var we=Promise.resolve();function eo(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function is(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function kt(){return Math.random().toString(36).substring(2)}var to=0,$t=0;function qe(){var e=new Date().getTime();return e===to?($t++,e*1e3+$t):(to=e,$t=0,e*1e3)}var ls=qe,cs="native";function us(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function ds(e){e.bc.close(),e.subFns=[]}function ps(e,t){try{return e.bc.postMessage(t,!1),we}catch(n){return Promise.reject(n)}}function fs(e,t){e.messagesCallback=t}function hs(){if(typeof window>"u")return!1;if(typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function ms(){return 150}var gs={create:us,close:ds,onMessage:fs,postMessage:ps,canBeUsed:hs,type:cs,averageResponseTime:ms,microSeconds:ls},no=function(){function e(t){this.ttl=t,this.map=new Map,this._to=!1}return e.prototype.has=function(t){return this.map.has(t)},e.prototype.add=function(t){var n=this;this.map.set(t,oo()),this._to||(this._to=!0,setTimeout(function(){n._to=!1,ys(n)},0))},e.prototype.clear=function(){this.map.clear()},e}();function ys(e){for(var t=oo()-e.ttl,n=e.map[Symbol.iterator]();;){var o=n.next().value;if(!o)return;var a=o[0],s=o[1];if(s<t)e.map.delete(a);else return}}function oo(){return new Date().getTime()}function St(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var ws=qe,bs="pubkey.broadcast-channel-0-",ne="messages",Je={durability:"relaxed"},vs="idb";function ro(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function Ot(e){e.commit&&e.commit()}function Es(e){var t=ro(),n=bs+e,o=t.open(n);return o.onupgradeneeded=function(a){var s=a.target.result;s.createObjectStore(ne,{keyPath:"id",autoIncrement:!0})},new Promise(function(a,s){o.onerror=function(l){return s(l)},o.onsuccess=function(){a(o.result)}})}function _s(e,t,n){var o=new Date().getTime(),a={uuid:t,time:o,data:n},s=e.transaction([ne],"readwrite",Je);return new Promise(function(l,i){s.oncomplete=function(){return l()},s.onerror=function(c){return i(c)};var u=s.objectStore(ne);u.add(a),Ot(s)})}function ks(e,t){var n=e.transaction(ne,"readonly",Je),o=n.objectStore(ne),a=[],s=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var l=o.getAll(s);return new Promise(function(u,c){l.onerror=function(d){return c(d)},l.onsuccess=function(d){u(d.target.result)}})}function i(){try{return s=IDBKeyRange.bound(t+1,1/0),o.openCursor(s)}catch{return o.openCursor()}}return new Promise(function(u,c){var d=i();d.onerror=function(p){return c(p)},d.onsuccess=function(p){var f=p.target.result;f?f.value.id<t+1?f.continue(t+1):(a.push(f.value),f.continue()):(Ot(n),u(a))}})}function $s(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(ne,"readwrite",Je),o=n.objectStore(ne);return Promise.all(t.map(function(a){var s=o.delete(a);return new Promise(function(l){s.onsuccess=function(){return l()}})}))}function Ss(e,t){var n=new Date().getTime()-t,o=e.transaction(ne,"readonly",Je),a=o.objectStore(ne),s=[];return new Promise(function(l){a.openCursor().onsuccess=function(i){var u=i.target.result;if(u){var c=u.value;c.time<n?(s.push(c),u.continue()):(Ot(o),l(s))}else l(s)}})}function Os(e){return Ss(e.db,e.options.idb.ttl).then(function(t){return $s(e,t.map(function(n){return n.id}))})}function Ns(e,t){return t=St(t),Es(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:kt(),eMIs:new no(t.idb.ttl*2),writeBlockPromise:we,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},ao(o),o})}function ao(e){e.closed||so(e).then(function(){return eo(e.options.idb.fallbackInterval)}).then(function(){return ao(e)})}function xs(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function so(e){return e.closed||!e.messagesCallback?we:ks(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(o){return!!o}).map(function(o){return o.id>e.lastCursorId&&(e.lastCursorId=o.id),o}).filter(function(o){return xs(o,e)}).sort(function(o,a){return o.time-a.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),we})}function Cs(e){e.closed=!0,e.db.close()}function Is(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return _s(e.db,e.uuid,t)}).then(function(){is(0,10)===0&&Os(e)}),e.writeBlockPromise}function Ps(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,so(e)}function Ds(){return!!ro()}function Vs(e){return e.idb.fallbackInterval*2}var As={create:Ns,close:Cs,onMessage:Ps,postMessage:Is,canBeUsed:Ds,type:vs,averageResponseTime:Vs,microSeconds:ws},Ts=qe,Rs="pubkey.broadcastChannel-",js="localstorage";function io(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function lo(e){return Rs+e}function Bs(e,t){return new Promise(function(n){eo().then(function(){var o=lo(e.channelName),a={token:kt(),time:new Date().getTime(),data:t,uuid:e.uuid},s=JSON.stringify(a);io().setItem(o,s);var l=document.createEvent("Event");l.initEvent("storage",!0,!0),l.key=o,l.newValue=s,window.dispatchEvent(l),n()})})}function Ls(e,t){var n=lo(e),o=function(a){a.key===n&&t(JSON.parse(a.newValue))};return window.addEventListener("storage",o),o}function Ms(e){window.removeEventListener("storage",e)}function Ws(e,t){if(t=St(t),!co())throw new Error("BroadcastChannel: localstorage cannot be used");var n=kt(),o=new no(t.localstorage.removeTimeout),a={channelName:e,uuid:n,eMIs:o};return a.listener=Ls(e,function(s){a.messagesCallback&&s.uuid!==n&&(!s.token||o.has(s.token)||s.data.time&&s.data.time<a.messagesCallbackTime||(o.add(s.token),a.messagesCallback(s.data)))}),a}function Us(e){Ms(e.listener)}function zs(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function co(){var e=io();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function Fs(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var Hs={create:Ws,close:Us,onMessage:zs,postMessage:Bs,canBeUsed:co,type:js,averageResponseTime:Fs,microSeconds:Ts},Gs=qe,qs="simulate",Nt=new Set;function Js(e){var t={name:e,messagesCallback:null};return Nt.add(t),t}function Ks(e){Nt.delete(e)}function Ys(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Nt);o.filter(function(a){return a.name===e.name}).filter(function(a){return a!==e}).filter(function(a){return!!a.messagesCallback}).forEach(function(a){return a.messagesCallback(t)}),n()},5)})}function Qs(e,t){e.messagesCallback=t}function Xs(){return!0}function Zs(){return 5}var ei={create:Js,close:Ks,onMessage:Qs,postMessage:Ys,canBeUsed:Xs,type:qs,averageResponseTime:Zs,microSeconds:Gs},uo=[gs,As,Hs];function ti(e){var t=[].concat(e.methods,uo).filter(Boolean);if(e.type){if(e.type==="simulate")return ei;var n=t.find(function(a){return a.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(a){return a.type!=="idb"}));var o=t.find(function(a){return a.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(uo.map(function(a){return a.type})))}var po=new Set,ni=0,xt=function(e,t){this.id=ni++,po.add(this),this.name=e,this.options=St(t),this.method=ti(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,oi(this)};xt._pubkey=!0,xt.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return fo(this,"message",e)},postInternal:function(e){return fo(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};go(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,mo(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};mo(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});go(this,e,n)},close:function(){var e=this;if(!this.closed){po.delete(this),this.closed=!0;var t=this._prepP?this._prepP:we;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function fo(e,t,n){var o=e.method.microSeconds(),a={time:o,type:t,data:n},s=e._prepP?e._prepP:we;return s.then(function(){var l=e.method.postMessage(e._state,a);return e._uMP.add(l),l.catch().then(function(){return e._uMP.delete(l)}),l})}function oi(e){var t=e.method.create(e.name,e.options);ss(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function ho(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function mo(e,t,n){e._addEL[t].push(n),ri(e)}function go(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),ai(e)}function ri(e){if(!e._iL&&ho(e)){var t=function(o){e._addEL[o.type].forEach(function(a){var s=1e5,l=a.time-s;o.time>=l&&a.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function ai(e){if(e._iL&&!ho(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}let Ct=class extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}};function yo(e){return Object(e)!==e}const si=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ii(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===si}function li(e){return Object.prototype.toString.call(e).slice(8,-1)}function ci(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
42
+ `:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function be(e){let t="",n=0;const o=e.length;for(let a=0;a<o;a+=1){const s=e[a],l=ci(s);l&&(t+=e.slice(n,a)+l,n=a+1)}return`"${n===0?e:t+e.slice(n)}"`}const It=-1,wo=-2,bo=-3,vo=-4,Eo=-5,Pt=-6;function _o(e,t){return ui(JSON.parse(e))}function ui(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function a(s,l=!1){if(s===It)return;if(s===bo)return NaN;if(s===vo)return 1/0;if(s===Eo)return-1/0;if(s===Pt)return-0;if(l)throw new Error("Invalid input");if(s in o)return o[s];const i=n[s];if(!i||typeof i!="object")o[s]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const u=i[0];switch(u){case"Date":o[s]=new Date(i[1]);break;case"Set":const c=new Set;o[s]=c;for(let f=1;f<i.length;f+=1)c.add(a(i[f]));break;case"Map":const d=new Map;o[s]=d;for(let f=1;f<i.length;f+=2)d.set(a(i[f]),a(i[f+1]));break;case"RegExp":o[s]=new RegExp(i[1],i[2]);break;case"Object":o[s]=Object(i[1]);break;case"BigInt":o[s]=BigInt(i[1]);break;case"null":const p=Object.create(null);o[s]=p;for(let f=1;f<i.length;f+=2)p[i[f]]=a(i[f+1]);break;default:throw new Error(`Unknown type ${u}`)}}else{const u=new Array(i.length);o[s]=u;for(let c=0;c<i.length;c+=1){const d=i[c];d!==wo&&(u[c]=a(d))}}else{const u={};o[s]=u;for(const c in i){const d=i[c];u[c]=a(d)}}return o[s]}return a(0)}function ko(e,t){const n=[],o=new Map,a=[];for(const c in t)a.push({key:c,fn:t[c]});const s=[];let l=0;function i(c){if(typeof c=="function")throw new Ct("Cannot stringify a function",s);if(o.has(c))return o.get(c);if(c===void 0)return It;if(Number.isNaN(c))return bo;if(c===1/0)return vo;if(c===-1/0)return Eo;if(c===0&&1/c<0)return Pt;const d=l++;o.set(c,d);for(const{key:f,fn:h}of a){const g=h(c);if(g)return n[d]=`["${f}",${i(g)}]`,d}let p="";if(yo(c))p=Dt(c);else switch(li(c)){case"Number":case"String":case"Boolean":p=`["Object",${Dt(c)}]`;break;case"BigInt":p=`["BigInt",${c}]`;break;case"Date":p=`["Date","${isNaN(c.getDate())?"":c.toISOString()}"]`;break;case"RegExp":const{source:f,flags:h}=c;p=h?`["RegExp",${be(f)},"${h}"]`:`["RegExp",${be(f)}]`;break;case"Array":p="[";for(let g=0;g<c.length;g+=1)g>0&&(p+=","),g in c?(s.push(`[${g}]`),p+=i(c[g]),s.pop()):p+=wo;p+="]";break;case"Set":p='["Set"';for(const g of c)p+=`,${i(g)}`;p+="]";break;case"Map":p='["Map"';for(const[g,y]of c)s.push(`.get(${yo(g)?Dt(g):"..."})`),p+=`,${i(g)},${i(y)}`,s.pop();p+="]";break;default:if(!ii(c))throw new Ct("Cannot stringify arbitrary non-POJOs",s);if(Object.getOwnPropertySymbols(c).length>0)throw new Ct("Cannot stringify POJOs with symbolic keys",s);if(Object.getPrototypeOf(c)===null){p='["null"';for(const g in c)s.push(`.${g}`),p+=`,${be(g)},${i(c[g])}`,s.pop();p+="]"}else{p="{";let g=!1;for(const y in c)g&&(p+=","),g=!0,s.push(`.${y}`),p+=`${be(y)}:${i(c[y])}`,s.pop();p+="}"}}return n[d]=p,d}const u=i(e);return u<0?`${u}`:`[${n.join(",")}]`}function Dt(e){const t=typeof e;return t==="string"?be(e):e instanceof String?be(e.toString()):e===void 0?It.toString():e===0&&1/e<0?Pt.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function di(e,t,{initialize:n,type:o}){let a=`${t.$id}-${e.toString()}`,s=new xt(a,{type:o}),l=!1,i=0;r.watch(()=>t[e],d=>{l||(i=Date.now(),s.postMessage({timestamp:i,state:_o(ko(d))})),l=!1},{deep:!0}),s.onmessage=d=>{if(d===void 0){s.postMessage({timestamp:i,state:_o(ko(t[e]))});return}d.timestamp<=i||(l=!0,i=d.timestamp,t[e]=d.state)};let u=()=>s.postMessage(void 0),c=()=>s.close();return n&&u(),{sync:u,unshare:c}}var pi=(e,t)=>Object.keys(t).includes(e),fi=({initialize:e=!0,enable:t=!0,type:n})=>({store:o,options:a})=>{var s,l;let i=((s=a==null?void 0:a.share)==null?void 0:s.enable)??t,u=((l=a==null?void 0:a.share)==null?void 0:l.omit)??[];!i||Object.keys(o.$state).forEach(c=>{var d;u.includes(c)||!pi(c,o.$state)||di(c,o,{initialize:((d=a==null?void 0:a.share)==null?void 0:d.initialize)??e,type:n})})};Tr().use(fi({enable:!0,initialize:!0}));const $o=r.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t,isReady:n}=gn(),o=r.ref([]);return r.watch(n,()=>{if(n.value){let a=t.value.schema.schema.toArray();a.forEach((s,l)=>{const u=t.value.store.record[s.fieldname];a[l].value=u}),o.value=a}}),(a,s)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(ir),{key:0,class:"aform-main",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=l=>o.value=l)},null,8,["modelValue"])):r.createCommentVNode("",!0)}});var hi=Object.defineProperty,mi=(e,t,n)=>t in e?hi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pe=(e,t,n)=>mi(e,typeof t!="symbol"?t+"":t,n);function So(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Vt(e){return typeof e=="function"?e():r.unref(e)}const gi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yi=e=>e!=null,wi=Object.prototype.toString,bi=e=>wi.call(e)==="[object Object]",vi=()=>{},Ie=gi?window:void 0;function Pe(e){var t;const n=Vt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function De(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Ie):[t,n,o,a]=e,!t)return vi;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(d=>d()),s.length=0},i=(d,p,f,h)=>(d.addEventListener(p,f,h),()=>d.removeEventListener(p,f,h)),u=r.watch(()=>[Pe(t),Vt(a)],([d,p])=>{if(l(),!d)return;const f=bi(p)?{...p}:p;s.push(...n.flatMap(h=>o.map(g=>i(d,h,g,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return So(c),c}function Ei(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function _i(e){const t=Ei();return r.computed(()=>(t.value,!!e()))}function ki(e,t,n={}){const{window:o=Ie,...a}=n;let s;const l=_i(()=>o&&"MutationObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},u=r.computed(()=>{const f=Vt(e),h=(Array.isArray(f)?f:[f]).map(Pe).filter(yi);return new Set(h)}),c=r.watch(()=>u.value,f=>{i(),l.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,a)))},{immediate:!0,flush:"post"}),d=()=>s==null?void 0:s.takeRecords(),p=()=>{c(),i()};return So(p),{isSupported:l,stop:p,takeRecords:d}}function $i(e={}){var t;const{window:n=Ie,deep:o=!0,triggerOnRemoval:a=!1}=e,s=(t=e.document)!=null?t:n==null?void 0:n.document,l=()=>{var c;let d=s==null?void 0:s.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(c=d==null?void 0:d.shadowRoot)==null?void 0:c.activeElement;return d},i=r.ref(),u=()=>{i.value=l()};return n&&(De(n,"blur",c=>{c.relatedTarget===null&&u()},!0),De(n,"focus",u,!0)),a&&ki(s,c=>{c.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===i.value&&u()})},{childList:!0,subtree:!0}),u(),i}const Si="focusin",Oi="focusout";function Ni(e,t={}){const{window:n=Ie}=t,o=r.computed(()=>Pe(e)),a=r.ref(!1),s=r.computed(()=>a.value),l=$i(t);return!n||!l.value?{focused:s}:(De(o,Si,()=>a.value=!0),De(o,Oi,()=>a.value=!1),{focused:s})}function xi(e,{window:t=Ie,scrollTarget:n}={}){const o=r.ref(!1),a=()=>{if(!t)return;const s=t.document,l=Pe(e);if(!l)o.value=!1;else{const i=l.getBoundingClientRect();o.value=i.top<=(t.innerHeight||s.documentElement.clientHeight)&&i.left<=(t.innerWidth||s.documentElement.clientWidth)&&i.bottom>=0&&i.right>=0}};return r.watch(()=>Pe(e),()=>a(),{immediate:!0,flush:"post"}),t&&De(n||t,"scroll",a,{capture:!1,passive:!0}),o}const oe=e=>{let t=xi(e).value;return t=t&&e.offsetHeight>0,t},re=e=>e.tabIndex>=0,Oo=e=>{const t=e.target;return At(t)},At=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const a=Array.from(o.children)[e.cellIndex];a&&(n=a)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?At(n):n},Ci=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const a=(t=n.parentElement)==null?void 0:t.parentElement;if(a){const s=a.firstElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const a=n.parentElement;if(a){const s=a.firstElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?Tt(o):o},No=e=>{const t=e.target;return Tt(t)},Tt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const a=Array.from(o.children)[e.cellIndex];a&&(n=a)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?Tt(n):n},Ii=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const a=(t=n.parentElement)==null?void 0:t.parentElement;if(a){const s=a.lastElementChild.children[n.cellIndex];s&&(o=s)}}else if(n instanceof HTMLTableRowElement){const a=n.parentElement;if(a){const s=a.lastElementChild;s&&(o=s)}}return o&&(!re(o)||!oe(o))?At(o):o},xo=e=>{const t=e.target;return Rt(t)},Rt=e=>{var t;let n;if(e.previousElementSibling)n=e.previousElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!re(n)||!oe(n))?Rt(n):n},Co=e=>{const t=e.target;return jt(t)},jt=e=>{var t;let n;if(e.nextElementSibling)n=e.nextElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!re(n)||!oe(n))?jt(n):n},Io=e=>{const t=e.target.parentElement.firstElementChild;return t&&(!re(t)||!oe(t))?jt(t):t},Po=e=>{const t=e.target.parentElement.lastElementChild;return t&&(!re(t)||!oe(t))?Rt(t):t},Ke=["alt","control","shift","meta"],Pi={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Bt={"keydown.up":e=>{const t=Oo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=No(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=xo(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Co(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=Ci(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=Ii(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Io(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Po(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Po(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=No(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Oo(e);t&&t.focus()}},"keydown.home":e=>{const t=Io(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Co(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=xo(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Do(e){const t=l=>{let i=null;return l.parent&&(typeof l.parent=="string"?i=document.querySelector(l.parent):l.parent instanceof HTMLElement?i=l.parent:i=l.parent.value),i},n=l=>{const i=t(l);let u=[];if(typeof l.selectors=="string")u=i?Array.from(i.querySelectorAll(l.selectors)):Array.from(document.querySelectorAll(l.selectors));else if(Array.isArray(l.selectors))for(const c of l.selectors)c instanceof HTMLElement?u.push(c):u.push(c.$el);else if(l.selectors instanceof HTMLElement)u.push(l.selectors);else if(Array.isArray(l.selectors.value))for(const c of l.selectors.value)c instanceof HTMLElement?u.push(c):u.push(c.$el);else u.push(l.selectors.value);return u},o=l=>{const i=t(l);let u=[];return l.selectors?u=n(l):i&&(u=Array.from(i.children).filter(c=>re(c)&&oe(c))),u},a=l=>i=>{const u=Pi[i.key]||i.key.toLowerCase();if(Ke.includes(u))return;const c=l.handlers||Bt;for(const d of Object.keys(c)){const[p,...f]=d.split(".");if(p==="keydown"&&f.includes(u)){const h=c[d],g=f.filter($=>Ke.includes($)),y=Ke.some($=>{const O=$.charAt(0).toUpperCase()+$.slice(1);return i.getModifierState(O)});if(g.length>0){if(y){for(const $ of Ke)if(f.includes($)){const O=$.charAt(0).toUpperCase()+$.slice(1);i.getModifierState(O)&&h(i)}}}else y||h(i)}}},s=[];r.onMounted(()=>{for(const l of e){const i=t(l),u=o(l),c=a(l),d=i?[i]:u;for(const p of d){const{focused:f}=Ni(r.ref(p)),h=r.watch(f,g=>{g?p.addEventListener("keydown",c):p.removeEventListener("keydown",c)});s.push(h)}}}),r.onBeforeUnmount(()=>{for(const l of s)l()})}function Lt(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ye(e){return typeof e=="function"?e():r.unref(e)}const Di=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Vi=e=>e!=null,Ai=Object.prototype.toString,Ti=e=>Ai.call(e)==="[object Object]",Ri=()=>{};function ji(e){return r.getCurrentInstance()}function Bi(e,t=!0,n){ji()?r.onMounted(e,n):t?e():r.nextTick(e)}const Mt=Di?window:void 0;function ve(e){var t;const n=Ye(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Vo(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Mt):[t,n,o,a]=e,!t)return Ri;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(d=>d()),s.length=0},i=(d,p,f,h)=>(d.addEventListener(p,f,h),()=>d.removeEventListener(p,f,h)),u=r.watch(()=>[ve(t),Ye(a)],([d,p])=>{if(l(),!d)return;const f=Ti(p)?{...p}:p;s.push(...n.flatMap(h=>o.map(g=>i(d,h,g,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return Lt(c),c}function Li(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function Ao(e){const t=Li();return r.computed(()=>(t.value,!!e()))}function To(e,t,n={}){const{window:o=Mt,...a}=n;let s;const l=Ao(()=>o&&"MutationObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},u=r.computed(()=>{const f=Ye(e),h=(Array.isArray(f)?f:[f]).map(ve).filter(Vi);return new Set(h)}),c=r.watch(()=>u.value,f=>{i(),l.value&&f.size&&(s=new MutationObserver(t),f.forEach(h=>s.observe(h,a)))},{immediate:!0,flush:"post"}),d=()=>s==null?void 0:s.takeRecords(),p=()=>{c(),i()};return Lt(p),{isSupported:l,stop:p,takeRecords:d}}function Mi(e,t,n={}){const{window:o=Mt,...a}=n;let s;const l=Ao(()=>o&&"ResizeObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},u=r.computed(()=>{const p=Ye(e);return Array.isArray(p)?p.map(f=>ve(f)):[ve(p)]}),c=r.watch(u,p=>{if(i(),l.value&&o){s=new ResizeObserver(t);for(const f of p)f&&s.observe(f,a)}},{immediate:!0,flush:"post"}),d=()=>{i(),c()};return Lt(d),{isSupported:l,stop:d}}function Wi(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:s=!0,updateTiming:l="sync"}=t,i=r.ref(0),u=r.ref(0),c=r.ref(0),d=r.ref(0),p=r.ref(0),f=r.ref(0),h=r.ref(0),g=r.ref(0);function y(){const O=ve(e);if(!O){n&&(i.value=0,u.value=0,c.value=0,d.value=0,p.value=0,f.value=0,h.value=0,g.value=0);return}const S=O.getBoundingClientRect();i.value=S.height,u.value=S.bottom,c.value=S.left,d.value=S.right,p.value=S.top,f.value=S.width,h.value=S.x,g.value=S.y}function $(){l==="sync"?y():l==="next-frame"&&requestAnimationFrame(()=>y())}return Mi(e,$),r.watch(()=>ve(e),O=>!O&&$()),To(e,$,{attributeFilter:["style","class"]}),a&&Vo("scroll",$,{capture:!0,passive:!0}),o&&Vo("resize",$,{passive:!0}),Bi(()=>{s&&$()}),{height:i,bottom:u,left:c,right:d,top:p,width:f,x:h,y:g,update:$}}const Ui=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(n=>n.nodeType===1)},zi=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],Fi=["innerHTML"],Hi={key:2},Gi=r.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},tableid:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean}},setup(e){var t;const n=r.inject(e.tableid),o=r.useTemplateRef("cell"),a=r.ref(""),s=r.ref(!1),{bottom:l,left:i}=Wi(o),u=n.table,c=n.columns[e.colIndex],d=n.rows[e.rowIndex],p=r.computed(()=>c.align||"center"),f=r.computed(()=>c.width||"40ch"),h=r.computed(()=>{const P=n.cellData(e.colIndex,e.rowIndex),A=c.format;return A?typeof A=="function"?A(P,{table:u,row:d,column:c}):typeof A=="string"?Function(`"use strict";return (${A})`)()(P,{table:u,row:d,column:c}):P:P}),g=r.computed(()=>typeof h.value=="string"?Ui(h.value):!1),y=()=>{c.mask,c.modalComponent&&(n.modal.visible=!0,n.modal.colIndex=e.colIndex,n.modal.rowIndex=e.rowIndex,n.modal.parent=o.value,n.modal.top=l.value,n.modal.left=i.value,n.modal.width=f.value,typeof c.modalComponent=="function"?n.modal.component=c.modalComponent({table:u,row:d,column:c}):n.modal.component=c.modalComponent,n.modal.componentProps=c.modalComponentExtraProps)};if(e.addNavigation){let P={...Bt,"keydown.f2":y,"keydown.alt.up":y,"keydown.alt.down":y,"keydown.alt.left":y,"keydown.alt.right":y};typeof e.addNavigation=="object"&&(P={...P,...e.addNavigation}),Do([{selectors:o,handlers:P}])}const $=()=>{o.value&&(a.value=o.value.textContent)},O=()=>{o.value&&o.value.textContent!==a.value&&(a.value=o.value.textContent,o.value.dispatchEvent(new Event("change")),s.value=!0,c.format||n.setCellData(e.rowIndex,e.colIndex,a.value))},S=(P,A)=>A&&P===0&&A>0?`${A}ch`:"inherit",I={textAlign:p.value,width:f.value,backgroundColor:s.value?"var(--cell-modified-color)":"inherit",fontWeight:s.value?"bold":"inherit",paddingLeft:S(e.colIndex,(t=n.display[e.rowIndex])==null?void 0:t.indent)};return(P,A)=>(r.openBlock(),r.createElementBlock("td",{ref:"cell","data-colindex":P.colIndex,"data-rowindex":P.rowIndex,"data-editable":r.unref(c).edit,contenteditable:r.unref(c).edit,tabindex:P.tabIndex,spellcheck:!1,style:I,onFocus:$,onPaste:O,onBlur:O,onInput:O,onClick:y,onMousedown:y,class:r.normalizeClass(["atable__cell",P.pinned?"sticky-column":""])},[r.unref(c).cellComponent?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(c).cellComponent),r.mergeProps({key:0,value:h.value},r.unref(c).cellComponentProps),null,16,["value"])):g.value?(r.openBlock(),r.createElementBlock("span",{key:1,innerHTML:h.value},null,8,Fi)):(r.openBlock(),r.createElementBlock("span",Hi,r.toDisplayString(h.value),1))],42,zi))}}),qi=["tabindex"],Ji=r.defineComponent({__name:"ARow",props:{rowIndex:{},tableid:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=r.inject(e.tableid),n=r.useTemplateRef("rowEl"),o=r.computed(()=>t.columns.some(i=>i.pinned)),a=r.computed(()=>t.config.view!=="tree"||t.display[e.rowIndex].isRoot||t.display[e.rowIndex].open),s=r.computed(()=>t.config.view!=="tree"?"":t.display[e.rowIndex].isRoot||t.display[e.rowIndex].isParent?t.display[e.rowIndex].childrenOpen?"-":"+":""),l=i=>{t.toggleRowExpand(i)};if(e.addNavigation){let i=Bt;typeof e.addNavigation=="object"&&(i={...i,...e.addNavigation}),Do([{selectors:n,handlers:i}])}return(i,u)=>r.withDirectives((r.openBlock(),r.createElementBlock("tr",{ref:"rowEl",tabindex:i.tabIndex,class:"table-row"},[r.renderSlot(i.$slots,"index",{},()=>[r.unref(t).config.view==="list"?(r.openBlock(),r.createElementBlock("td",{key:0,tabIndex:-1,class:r.normalizeClass(["list-index",o.value?"sticky-index":""])},r.toDisplayString(i.rowIndex+1),3)):r.unref(t).config.view==="tree"?(r.openBlock(),r.createElementBlock("td",{key:1,tabIndex:-1,class:r.normalizeClass(["tree-index",o.value?"sticky-index":""]),onClick:u[0]||(u[0]=c=>l(i.rowIndex))},r.toDisplayString(s.value),3)):r.createCommentVNode("",!0)]),r.renderSlot(i.$slots,"default")],8,qi)),[[r.vShow,a.value]])}});function Ro(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ve(e){return typeof e=="function"?e():r.unref(e)}const jo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ki=Object.prototype.toString,Yi=e=>Ki.call(e)==="[object Object]",Ae=()=>{},Wt=Qi();function Qi(){var e,t;return jo&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const Bo={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Xi(...e){if(e.length!==1)return r.toRef(...e);const t=e[0];return typeof t=="function"?r.readonly(r.customRef(()=>({get:t,set:Ae}))):r.ref(t)}function Te(e){var t;const n=Ve(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Lo=jo?window:void 0;function Qe(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=Lo):[t,n,o,a]=e,!t)return Ae;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(d=>d()),s.length=0},i=(d,p,f,h)=>(d.addEventListener(p,f,h),()=>d.removeEventListener(p,f,h)),u=r.watch(()=>[Te(t),Ve(a)],([d,p])=>{if(l(),!d)return;const f=Yi(p)?{...p}:p;s.push(...n.flatMap(h=>o.map(g=>i(d,h,g,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return Ro(c),c}let Mo=!1;function Wo(e,t,n={}){const{window:o=Lo,ignore:a=[],capture:s=!0,detectIframe:l=!1}=n;if(!o)return Ae;Wt&&!Mo&&(Mo=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",Ae)),o.document.documentElement.addEventListener("click",Ae));let i=!0;const u=d=>a.some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(f=>f===d.target||d.composedPath().includes(f));{const f=Te(p);return f&&(d.target===f||d.composedPath().includes(f))}}),c=[Qe(o,"click",d=>{const p=Te(e);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(i=!u(d)),!i){i=!0;return}t(d)}},{passive:!0,capture:s}),Qe(o,"pointerdown",d=>{const p=Te(e);i=!u(d)&&!!(p&&!d.composedPath().includes(p))},{passive:!0}),l&&Qe(o,"blur",d=>{setTimeout(()=>{var p;const f=Te(e);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>c.forEach(d=>d())}const Zi={[Bo.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Wo(e,t.value,{capture:n});else{const[o,a]=t.value;e.__onClickOutside_stop=Wo(e,o,Object.assign({capture:n},a))}},[Bo.unmounted](e){e.__onClickOutside_stop()}};function Ut(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Uo(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:Uo(n)}}function el(e){const t=e||window.event,n=t.target;return Uo(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const zt=new WeakMap;function tl(e,t=!1){const n=r.ref(t);let o=null,a="";r.watch(Xi(e),i=>{const u=Ut(Ve(i));if(u){const c=u;if(zt.get(c)||zt.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(a=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const s=()=>{const i=Ut(Ve(e));!i||n.value||(Wt&&(o=Qe(i,"touchmove",u=>{el(u)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},l=()=>{const i=Ut(Ve(e));!i||!n.value||(Wt&&(o==null||o()),i.style.overflow=a,zt.delete(i),n.value=!1)};return Ro(l),r.computed({get(){return n.value},set(i){i?s():l()}})}function nl(){let e=!1;const t=r.ref(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const a=tl(n,o.value);r.watch(t,s=>a.value=s)}}nl();class ol{constructor(t,n,o,a,s,l){pe(this,"id"),pe(this,"rows"),pe(this,"columns"),pe(this,"config"),pe(this,"table"),pe(this,"display"),pe(this,"modal"),this.id=t||crypto.randomUUID(),this.rows=o,this.columns=r.reactive(n),this.config=r.reactive(a),this.table=s||r.reactive(this.createTableObject()),this.display=this.createDisplayObject(l),this.modal=r.reactive({visible:!1})}createTableObject(){const t={};for(const[n,o]of this.columns.entries())for(const[a,s]of this.rows.entries())t[`${n}:${a}`]=s[o.name];return t}createDisplayObject(t){const n=[Object.assign({},{modified:!1})];if(t&&"0:0"in t)return t;const o=new Set;for(let a=this.rows.length-1;a>=0;a--){const s=this.rows[a];s.parent&&o.add(s.parent),n[a]={childrenOpen:!1,expanded:!1,indent:s.indent||null,isParent:o.has(a),isRoot:s.parent===null||s.parent===void 0,modified:!1,open:s.parent===null||s.parent===void 0,parent:s.parent}}return r.reactive(n)}get zeroColumn(){return["list","tree","list-expansion"].includes(this.config.view)}get numberedRowWidth(){return r.computed(()=>String(Math.ceil(this.rows.length/100)+1)+"ch")}cellData(t,n){return this.table[`${t}:${n}`]}setCellData(t,n,o){this.table[`${n}:${t}`]!==o&&(this.display[t].modified=!0),this.table[`${n}:${t}`]=o;const a=this.columns[n];return this.rows[t][a.name]=o,this.table[`${n}:${t}`]}toggleRowExpand(t){if(this.config.view==="tree"){this.display[t].childrenOpen=!this.display[t].childrenOpen;for(let n=this.rows.length-1;n>=0;n--)this.display[n].parent===t&&(this.display[n].open=!this.display[n].open,this.display[n].childrenOpen&&this.toggleRowExpand(n))}else this.config.view==="list-expansion"&&(this.display[t].expanded=!this.display[t].expanded)}}const rl={key:0,id:"resizable"},al={class:"atable-header-row",tabindex:"-1"},sl=r.defineComponent({__name:"ATableHeader",props:{columns:{},tableid:{}},setup(e){const t=r.inject(e.tableid),n=r.computed(()=>t.columns.some(a=>a.pinned)),o=a=>({minWidth:a.width||"40ch",textAlign:a.align||"center",width:t.config.fullWidth?"auto":null});return(a,s)=>a.columns.length?(r.openBlock(),r.createElementBlock("thead",rl,[r.createElementVNode("tr",al,[r.unref(t).zeroColumn?(r.openBlock(),r.createElementBlock("th",{key:0,id:"header-index",class:r.normalizeClass(n.value?"sticky-index":"")},null,2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.columns,(l,i)=>(r.openBlock(),r.createElementBlock("th",{key:l.name,tabindex:"-1",style:r.normalizeStyle(o(l)),class:r.normalizeClass(l.pinned?"sticky-column":"")},[r.renderSlot(a.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(l.label||String.fromCharCode(i+97).toUpperCase()),1)])],6))),128))])])):r.createCommentVNode("",!0)}}),il=r.defineComponent({__name:"ATableModal",props:{colIndex:{},rowIndex:{},tableid:{}},setup(e){const t=n=>{n.stopPropagation()};return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:"amodal",tabindex:"-1",onClick:t,onInput:t},[r.renderSlot(n.$slots,"default")],32))}}),ll=r.defineComponent({__name:"ATable",props:{id:{},modelValue:{},columns:{},rows:{default:()=>[]},config:{default:()=>new Object}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r.useTemplateRef("table"),a=e.modelValue?e.modelValue:e.rows,s=new ol(e.id,e.columns,a,e.config);r.provide(s.id,s),r.watch(()=>s.rows,u=>{n("update:modelValue",u)},{deep:!0}),r.onMounted(()=>{e.columns.some(u=>u.pinned)&&(l(),s.config.view==="tree"&&To(o,l,{childList:!0,subtree:!0}))});const l=()=>{const u=o.value,c=u.rows[0],d=u.rows[1],p=c?Array.from(c.cells):[];for(const[f,h]of p.entries()){const g=d.cells[f];g&&(h.style.width=`${g.offsetWidth}px`)}for(const f of u.rows){let h=0;const g=[];for(const y of f.cells)(y.classList.contains("sticky-column")||y.classList.contains("sticky-index"))&&(y.style.left=`${h}px`,h+=y.offsetWidth,g.push(y));g.length>0&&g[g.length-1].classList.add("sticky-column-edge")}},i=u=>{var c;u.target instanceof Node&&(c=s.modal.parent)!=null&&c.contains(u.target)||s.modal.visible&&(s.modal.visible=!1)};return window.addEventListener("keydown",u=>{if(u.key==="Escape"&&s.modal.visible){s.modal.visible=!1;const c=s.modal.parent;c&&r.nextTick().then(()=>{c.focus()})}}),(u,c)=>r.withDirectives((r.openBlock(),r.createElementBlock("table",{ref:"table",class:"atable",style:r.normalizeStyle({width:r.unref(s).config.fullWidth?"100%":"auto"})},[r.renderSlot(u.$slots,"header",{data:r.unref(s)},()=>[r.createVNode(sl,{columns:r.unref(s).columns,tableid:r.unref(s).id},null,8,["columns","tableid"])],!0),r.createElementVNode("tbody",null,[r.renderSlot(u.$slots,"body",{data:r.unref(s)},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(s).rows,(d,p)=>(r.openBlock(),r.createBlock(Ji,{key:d.id,row:d,rowIndex:p,tableid:r.unref(s).id},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(s).columns,(f,h)=>(r.openBlock(),r.createBlock(Gi,{key:f.name,tableid:r.unref(s).id,col:f,spellcheck:"false",pinned:f.pinned,rowIndex:p,colIndex:h+(r.unref(s).zeroColumn?0:-1),component:f.cellComponent,style:r.normalizeStyle({textAlign:(f==null?void 0:f.align)||"center",minWidth:(f==null?void 0:f.width)||"40ch",width:r.unref(s).config.fullWidth?"auto":null})},null,8,["tableid","col","pinned","rowIndex","colIndex","component","style"]))),128))]),_:2},1032,["row","rowIndex","tableid"]))),128))],!0)]),r.renderSlot(u.$slots,"footer",{data:r.unref(s)},void 0,!0),r.renderSlot(u.$slots,"modal",{data:r.unref(s)},()=>[r.withDirectives(r.createVNode(il,{colIndex:r.unref(s).modal.colIndex,rowIndex:r.unref(s).modal.rowIndex,tableid:r.unref(s).id,style:r.normalizeStyle({left:r.unref(s).modal.left+"px",top:r.unref(s).modal.top+"px",maxWidth:r.unref(s).modal.width+"px"})},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(s).modal.component),r.mergeProps({key:`${r.unref(s).modal.rowIndex}:${r.unref(s).modal.colIndex}`,colIndex:r.unref(s).modal.colIndex,rowIndex:r.unref(s).modal.rowIndex,tableid:r.unref(s).id},r.unref(s).modal.componentProps),null,16,["colIndex","rowIndex","tableid"]))]),_:1},8,["colIndex","rowIndex","tableid","style"]),[[r.vShow,r.unref(s).modal.visible]])],!0)],4)),[[r.unref(Zi),i]])}}),cl=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n},ul=cl(ll,[["__scopeId","data-v-2896bed9"]]),zo=r.defineComponent({__name:"Records",setup(e){const{stonecrop:t,isReady:n}=gn(),o={view:"list"};return(a,s)=>r.unref(n)?(r.openBlock(),r.createBlock(r.unref(ul),{key:0,columns:r.unref(t).schema.schema.toArray(),rows:r.unref(t).store.records,config:o},null,8,["columns","rows"])):r.createCommentVNode("",!0)}}),dl={class:"tabs"},pl={tabindex:"0"},fl={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"},hl={tabindex:"0"},ml={style:{width:"11pt"}},Fo=nt(r.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=r.ref(!0),n=r.ref(!1),o=r.ref(""),a=r.useTemplateRef("searchinput"),s=r.computed(()=>t.value?"unrotated":"rotated"),l=()=>{t.value=!t.value},i=async()=>{n.value=!n.value,await r.nextTick(()=>{a.value.focus()})},u=p=>{p.preventDefault(),p.stopPropagation()},c=async p=>{p.preventDefault(),p.stopPropagation(),await i()},d=()=>{};return(p,f)=>{const h=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("footer",null,[r.createElementVNode("ul",dl,[r.createElementVNode("li",{class:"hidebreadcrumbs",onClick:l,onKeydown:r.withKeys(l,["enter"])},[r.createElementVNode("a",pl,[r.createElementVNode("div",{class:r.normalizeClass(s.value)},"×",2)])],32),r.createElementVNode("li",{class:"hometab",onClick:d,onKeydown:r.withKeys(d,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{to:"/home",tabindex:"0"},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock("svg",fl,f[5]||(f[5]=[r.createElementVNode("g",null,[r.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
43
43
  c-3.284-0.008-6.243-1.992-7.495-5.023c-1.252-3.04-0.553-6.527,1.764-8.852L206.104,24.546c1.853-1.845,4.503-2.666,7.047-2.276
44
44
  c2.414,0.39,4.511,1.845,5.731,3.942l47.43,47.43V58.499c0-4.487,3.633-8.129,8.129-8.129h47.755c4.495,0,8.129,3.642,8.129,8.129
45
45
  v79.156l91.39,91.398c2.325,2.325,3.024,5.828,1.764,8.868c-1.26,3.032-4.227,5.007-7.511,5.007c-0.008,0-0.008,0-0.016,0
@@ -47,5 +47,5 @@ ${JSON.stringify(_,null,2)}
47
47
  c0-2.162,0.854-4.235,2.39-5.755c1.528-1.52,3.585-2.374,5.739-2.374c0.008,0,0.008,0,0.016,0l45.105,0.089l-79.855-79.863
48
48
  c-1.528-1.528-2.382-3.593-2.382-5.747V66.628h-31.498v26.645c0,3.284-1.975,6.251-5.015,7.511
49
49
  c-3.032,1.268-6.527,0.569-8.86-1.764l-57.038-57.038l-183.95,183.95l45.203,0.089c4.487,0.008,8.112,3.642,8.112,8.129
50
- C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),r.createElementVNode("li",{class:"searchtab",onClick:i,onKeydown:r.withKeys(i,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createElementVNode("a",pl,[r.createElementVNode("span",{style:r.normalizeStyle({display:n.value?"none":"block"})},[(r.openBlock(),r.createElementBlock("svg",fl,f[6]||(f[6]=[r.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[r.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=g=>o.value=g),ref:"searchinput",style:r.normalizeStyle({display:n.value?"block":"none"}),onClick:f[1]||(f[1]=g=>u(g)),onInput:f[2]||(f[2]=g=>u(g)),onBlur:f[3]||(f[3]=g=>c(g)),onKeydown:f[4]||(f[4]=r.withKeys(g=>c(g),["enter"])),type:"text"},null,36),[[r.vModelText,o.value]])])],36),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.breadcrumbs,g=>(r.openBlock(),r.createElementBlock("li",{key:g.title,style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{tabindex:"0",to:g.to},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(g.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-a650f215"]]),hl={install:e=>{e.component("ActionSet",qt),e.component("CommandPalette",Jt),e.component("Doctype",$o),e.component("Records",zo),e.component("SheetNav",Fo)}};F.ActionSet=qt,F.CommandPalette=Jt,F.Doctype=$o,F.Records=zo,F.SheetNav=Fo,F.StonecropDesktop=hl,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
50
+ C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),r.createElementVNode("li",{class:"searchtab",onClick:i,onKeydown:r.withKeys(i,["enter"]),style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createElementVNode("a",hl,[r.createElementVNode("span",{style:r.normalizeStyle({display:n.value?"none":"block"})},[(r.openBlock(),r.createElementBlock("svg",ml,f[6]||(f[6]=[r.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[r.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=g=>o.value=g),ref:"searchinput",style:r.normalizeStyle({display:n.value?"block":"none"}),onClick:f[1]||(f[1]=g=>u(g)),onInput:f[2]||(f[2]=g=>u(g)),onBlur:f[3]||(f[3]=g=>c(g)),onKeydown:f[4]||(f[4]=r.withKeys(g=>c(g),["enter"])),type:"text"},null,36),[[r.vModelText,o.value]])])],36),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.breadcrumbs,g=>(r.openBlock(),r.createElementBlock("li",{key:g.title,style:r.normalizeStyle({display:t.value?"block":"none"})},[r.createVNode(h,{tabindex:"0",to:g.to},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(g.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-a650f215"]]),gl={install:e=>{e.component("ActionSet",qt),e.component("CommandPalette",Jt),e.component("Doctype",$o),e.component("Records",zo),e.component("SheetNav",Fo)}};F.ActionSet=qt,F.CommandPalette=Jt,F.Doctype=$o,F.Records=zo,F.SheetNav=Fo,F.StonecropDesktop=gl,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
51
51
  //# sourceMappingURL=desktop.umd.cjs.map