@stonecrop/desktop 0.4.29 → 0.4.30

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,24 +1,24 @@
1
- (function(q,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(q=typeof globalThis<"u"?globalThis:q||self,a(q["@stonecrop/desktop"]={},q.Vue))})(this,function(q,a){"use strict";const si={class:"action-menu-icon"},ii=["onclick"],ai={key:1},li=["onClick"],ci={class:"dropdown-container"},ui={class:"dropdown"},di=["onclick"],fi=["href"],pi={class:"dropdown-item"},hi=a.defineComponent({__name:"ActionSet",props:{elements:{}},setup(t){const e=a.ref(t.elements),n=a.ref(!1),o=a.ref(null),r=a.ref(!1),s=a.ref(!1);a.onMounted(()=>{i()});const i=()=>{for(const p of e.value)p.type==="dropdown"&&(p.show=!1)},l=()=>{r.value=!0,o.value=setTimeout(()=>{r.value&&(n.value=!0)},500)},c=()=>{r.value=!1,s.value=!1,clearTimeout(o.value),n.value=!1},u=p=>{const d=!e.value[p].show;i(),e.value[p].show=d};return(p,d)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"open-set":n.value,"hovered-and-closed":s.value},"action-set collapse"]),onMouseover:l,onMouseleave:c},[a.createElementVNode("div",si,[a.createElementVNode("div",{id:"chevron",onClick:d[0]||(d[0]=f=>s.value=!s.value)},d[1]||(d[1]=[a.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[a.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),a.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[a.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),d[2]||(d[2]=a.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.value,(f,h)=>(a.openBlock(),a.createElementBlock("div",{class:"action-element",key:f.label},[f.type=="button"?(a.openBlock(),a.createElementBlock("button",{key:0,onclick:f.action,class:"button-default"},a.toDisplayString(f.label),9,ii)):a.createCommentVNode("",!0),f.type=="dropdown"?(a.openBlock(),a.createElementBlock("div",ai,[a.createElementVNode("button",{class:"button-default",onClick:m=>u(h)},a.toDisplayString(f.label),9,li),a.withDirectives(a.createElementVNode("div",ci,[a.createElementVNode("div",ui,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.actions,m=>(a.openBlock(),a.createElementBlock("div",{key:m.label},[m.action!=null?(a.openBlock(),a.createElementBlock("button",{key:0,onclick:m.action,class:"dropdown-item"},a.toDisplayString(m.label),9,di)):m.link!=null?(a.openBlock(),a.createElementBlock("a",{key:1,href:m.link},[a.createElementVNode("button",pi,a.toDisplayString(m.label),1)],8,fi)):a.createCommentVNode("",!0)]))),128))])],512),[[a.vShow,f.show]])])):a.createCommentVNode("",!0)]))),128))],34))}}),Xn=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Zn=Xn(hi,[["__scopeId","data-v-38e7af34"]]),mi={class:"command-palette-header"},gi=["placeholder"],_i={key:0,class:"command-palette-results"},yi=["onClick","onMouseover"],vi={class:"result-title"},wi={class:"result-content"},bi={key:1,class:"command-palette-no-results"},Qn=a.defineComponent({__name:"CommandPalette",props:{search:{type:Function},isOpen:{type:Boolean,default:!1},placeholder:{default:"Type a command or search..."},maxResults:{default:10}},emits:["select","close"],setup(t,{emit:e}){const n=e,o=a.ref(""),r=a.ref(0),s=a.useTemplateRef("input"),i=a.computed(()=>o.value?t.search(o.value).slice(0,t.maxResults):[]);a.watch(()=>t.isOpen,async p=>{var d;p&&(o.value="",r.value=0,await a.nextTick(),(d=s.value)==null||d.focus())}),a.watch(i,()=>{r.value=0});const l=()=>{n("close")},c=p=>{switch(p.key){case"Escape":l();break;case"ArrowDown":p.preventDefault(),i.value.length&&(r.value=(r.value+1)%i.value.length);break;case"ArrowUp":p.preventDefault(),i.value.length&&(r.value=(r.value-1+i.value.length)%i.value.length);break;case"Enter":i.value.length&&r.value>=0&&u(i.value[r.value]);break}},u=p=>{n("select",p),l()};return(p,d)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[p.isOpen?(a.openBlock(),a.createElementBlock("div",{key:0,class:"command-palette-overlay",onClick:l},[a.createElementVNode("div",{class:"command-palette",onClick:d[1]||(d[1]=a.withModifiers(()=>{},["stop"]))},[a.createElementVNode("div",mi,[a.withDirectives(a.createElementVNode("input",{ref:"input","onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f),type:"text",class:"command-palette-input",placeholder:p.placeholder,autofocus:"",onKeydown:c},null,40,gi),[[a.vModelText,o.value]])]),i.value.length?(a.openBlock(),a.createElementBlock("div",_i,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(f,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:a.normalizeClass(["command-palette-result",{selected:h===r.value}]),onClick:m=>u(f),onMouseover:m=>r.value=h},[a.createElementVNode("div",vi,[a.renderSlot(p.$slots,"title",{result:f})]),a.createElementVNode("div",wi,[a.renderSlot(p.$slots,"content",{result:f})])],42,yi))),128))])):o.value&&!i.value.length?(a.openBlock(),a.createElementBlock("div",bi,[a.renderSlot(p.$slots,"empty",{},()=>[a.createTextVNode(' No results found for "'+a.toDisplayString(o.value)+'" ',1)])])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)]),_:3})]))}}),Ei=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n};function to(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}const eo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ki=Object.prototype.toString,Si=t=>ki.call(t)==="[object Object]",Oi=()=>{},no=Ii();function Ii(){var t,e;return eo&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Ti(...t){if(t.length!==1)return a.toRef(...t);const e=t[0];return typeof e=="function"?a.readonly(a.customRef(()=>({get:e,set:Oi}))):a.ref(e)}function $e(t){return Array.isArray(t)?t:[t]}function xi(t,e,n){return a.watch(t,e,{...n,immediate:!0})}const Vi=eo?window:void 0;function Ci(t){var e;const n=a.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function Ni(...t){const e=[],n=()=>{e.forEach(l=>l()),e.length=0},o=(l,c,u,p)=>(l.addEventListener(c,u,p),()=>l.removeEventListener(c,u,p)),r=a.computed(()=>{const l=$e(a.toValue(t[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),s=xi(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>Ci(u)))!=null?c:[Vi].filter(u=>u!=null),$e(a.toValue(r.value?t[1]:t[0])),$e(a.unref(r.value?t[2]:t[1])),a.toValue(r.value?t[3]:t[2])]},([l,c,u,p])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=Si(p)?{...p}:p;e.push(...l.flatMap(f=>c.flatMap(h=>u.map(m=>o(f,h,m,d)))))},{flush:"post"}),i=()=>{s(),n()};return to(n),i}function Pe(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}function oo(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth<t.scrollWidth||e.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const n=t.parentNode;return!n||n.tagName==="BODY"?!1:oo(n)}}function $i(t){const e=t||window.event,n=e.target;return oo(n)?!1:e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)}const Re=new WeakMap;function Pi(t,e=!1){const n=a.shallowRef(e);let o=null,r="";a.watch(Ti(t),l=>{const c=Pe(a.toValue(l));if(c){const u=c;if(Re.get(u)||Re.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(r=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const s=()=>{const l=Pe(a.toValue(t));!l||n.value||(no&&(o=Ni(l,"touchmove",c=>{$i(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},i=()=>{const l=Pe(a.toValue(t));!l||!n.value||(no&&(o==null||o()),l.style.overflow=r,Re.delete(l),n.value=!1)};return to(i),a.computed({get(){return n.value},set(l){l?s():i()}})}function Ri(){let t=!1;const e=a.shallowRef(!1);return(n,o)=>{if(e.value=o.value,t)return;t=!0;const r=Pi(n,o.value);a.watch(e,s=>r.value=s)}}Ri(),typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Di={class:"aform"},Ai=a.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,o=a.ref(t.data||{}),r=i=>{let l={};for(const[c,u]of Object.entries(i))["component","fieldtype"].includes(c)||(l[c]=u),c==="rows"&&u&&u.length===0&&(l.rows=o.value[i.fieldname]);return l},s=a.computed({get:()=>t.modelValue.map((i,l)=>a.computed({get(){return i.value},set:c=>{t.modelValue[l].value=c,n("update:modelValue",t.modelValue)}})),set:()=>{}});return(i,l)=>(a.openBlock(),a.createElementBlock("form",Di,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.modelValue,(c,u)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.component),a.mergeProps({key:u,schema:c,modelValue:s.value[u].value,"onUpdate:modelValue":p=>s.value[u].value=p,data:o.value[c.fieldname],readonly:i.readonly},{ref_for:!0},r(c)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),ji=Ei(Ai,[["__scopeId","data-v-68845234"]]);var Li=Object.defineProperty,Mi=(t,e,n)=>e in t?Li(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Y=(t,e,n)=>Mi(t,typeof e!="symbol"?e+"":e,n);function Bi(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function Ui(){const t=Bi();if(t.__xstate__)return t.__xstate__}const zi=t=>{if(typeof window>"u")return;const e=Ui();e&&e.register(t)};class ro{constructor(e){this._process=e,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(e){const n={value:e,next:null};if(this._current){this._last.next=n,this._last=n;return}this._current=n,this._last=n,this._active&&this.flush()}flush(){for(;this._current;){const e=this._current;this._process(e.value),this._current=e.next}this._last=null}}const so=".",Hi="",io="",Ki="#",Fi="*",ao="xstate.init",De="xstate.stop";function Wi(t,e){return{type:`xstate.after.${t}.${e}`}}function Ae(t,e){return{type:`xstate.done.state.${t}`,output:e}}function Gi(t,e){return{type:`xstate.done.actor.${t}`,output:e,actorId:t}}function Ji(t,e){return{type:`xstate.error.actor.${t}`,error:e,actorId:t}}function lo(t){return{type:ao,input:t}}function nt(t){setTimeout(()=>{throw t})}const qi=typeof Symbol=="function"&&Symbol.observable||"@@observable";function co(t,e){const n=uo(t),o=uo(e);return typeof o=="string"?typeof n=="string"?o===n:!1:typeof n=="string"?n in o:Object.keys(n).every(r=>r in o?co(n[r],o[r]):!1)}function je(t){if(ho(t))return t;const e=[];let n="";for(let o=0;o<t.length;o++){switch(t.charCodeAt(o)){case 92:n+=t[o+1],o++;continue;case 46:e.push(n),n="";continue}n+=t[o]}return e.push(n),e}function uo(t){if(Va(t))return t.value;if(typeof t!="string")return t;const e=je(t);return Yi(e)}function Yi(t){if(t.length===1)return t[0];const e={};let n=e;for(let o=0;o<t.length-1;o++)if(o===t.length-2)n[t[o]]=t[o+1];else{const r=n;n={},r[t[o]]=n}return e}function fo(t,e){const n={},o=Object.keys(t);for(let r=0;r<o.length;r++){const s=o[r];n[s]=e(t[s],s,t,r)}return n}function po(t){return ho(t)?t:[t]}function at(t){return t===void 0?[]:po(t)}function Le(t,e,n,o){return typeof t=="function"?t({context:e,event:n,self:o}):t}function ho(t){return Array.isArray(t)}function Xi(t){return t.type.startsWith("xstate.error.actor")}function kt(t){return po(t).map(e=>typeof e>"u"||typeof e=="string"?{target:e}:e)}function mo(t){if(!(t===void 0||t===Hi))return at(t)}function Me(t,e,n){var o,r,s;const i=typeof t=="object",l=i?t:void 0;return{next:(o=i?t.next:t)==null?void 0:o.bind(l),error:(r=i?t.error:e)==null?void 0:r.bind(l),complete:(s=i?t.complete:n)==null?void 0:s.bind(l)}}function go(t,e){return`${e}.${t}`}function Be(t,e){const n=e.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return t.implementations.actors[e];const[,o,r]=n,s=t.getStateNodeById(r).config.invoke;return(Array.isArray(s)?s[o]:s).src}function _o(t,e){return`${t.sessionId}.${e}`}let Zi=0;function Qi(t,e){const n=new Map,o=new Map,r=new WeakMap,s=new Set,i={},{clock:l,logger:c}=e,u={schedule:(f,h,m,_,g=Math.random().toString(36).slice(2))=>{const y={source:f,target:h,event:m,delay:_,id:g,startedAt:Date.now()},I=_o(f,g);d._snapshot._scheduledEvents[I]=y;const V=l.setTimeout(()=>{delete i[I],delete d._snapshot._scheduledEvents[I],d._relay(f,h,m)},_);i[I]=V},cancel:(f,h)=>{const m=_o(f,h),_=i[m];delete i[m],delete d._snapshot._scheduledEvents[m],_!==void 0&&l.clearTimeout(_)},cancelAll:f=>{for(const h in d._snapshot._scheduledEvents){const m=d._snapshot._scheduledEvents[h];m.source===f&&u.cancel(f,m.id)}}},p=f=>{if(!s.size)return;const h={...f,rootId:t.sessionId};s.forEach(m=>{var _;return(_=m.next)==null?void 0:_.call(m,h)})},d={_snapshot:{_scheduledEvents:((e==null?void 0:e.snapshot)&&e.snapshot.scheduler)??{}},_bookId:()=>`x:${Zi++}`,_register:(f,h)=>(n.set(f,h),f),_unregister:f=>{n.delete(f.sessionId);const h=r.get(f);h!==void 0&&(o.delete(h),r.delete(f))},get:f=>o.get(f),_set:(f,h)=>{const m=o.get(f);if(m&&m!==h)throw new Error(`Actor with system ID '${f}' already exists.`);o.set(f,h),r.set(h,f)},inspect:f=>{const h=Me(f);return s.add(h),{unsubscribe(){s.delete(h)}}},_sendInspectionEvent:p,_relay:(f,h,m)=>{d._sendInspectionEvent({type:"@xstate.event",sourceRef:f,actorRef:h,event:m}),h._send(m)},scheduler:u,getSnapshot:()=>({_scheduledEvents:{...d._snapshot._scheduledEvents}}),start:()=>{const f=d._snapshot._scheduledEvents;d._snapshot._scheduledEvents={};for(const h in f){const{source:m,target:_,event:g,delay:y,id:I}=f[h];u.schedule(m,_,g,y,I)}},_clock:l,_logger:c};return d}let Ue=!1;const ze=1;let W=function(t){return t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped",t}({});const ta={clock:{setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t)},logger:console.log.bind(console),devTools:!1};class ea{constructor(e,n){this.logic=e,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new ro(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=W.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this._systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const o={...ta,...n},{clock:r,logger:s,parent:i,syncSnapshot:l,id:c,systemId:u,inspect:p}=o;this.system=i?i.system:Qi(this,{clock:r,logger:s}),p&&!i&&this.system.inspect(Me(p)),this.sessionId=this.system._bookId(),this.id=c??this.sessionId,this.logger=(n==null?void 0:n.logger)??this.system._logger,this.clock=(n==null?void 0:n.clock)??this.system._clock,this._parent=i,this._syncSnapshot=l,this.options=o,this.src=o.src??e,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:d=>{this._deferred.push(d)},system:this.system,stopChild:d=>{if(d._parent!==this)throw new Error(`Cannot stop child actor ${d.id} of ${this.id} because it is not a child`);d._stop()},emit:d=>{const f=this.eventListeners.get(d.type),h=this.eventListeners.get("*");if(!f&&!h)return;const m=[...f?f.values():[],...h?h.values():[]];for(const _ of m)_(d)},actionExecutor:d=>{const f=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:d.type,params:d.params}}),!d.exec)return;const h=Ue;try{Ue=!0,d.exec(d.info,d.params)}finally{Ue=h}};this._processingStatus===W.Running?f():this._deferred.push(f)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),u&&(this._systemId=u,this.system._set(u,this)),this._initState((n==null?void 0:n.snapshot)??(n==null?void 0:n.state)),u&&this._snapshot.status!=="active"&&this.system._unregister(this)}_initState(e){var n;try{this._snapshot=e?this.logic.restoreSnapshot?this.logic.restoreSnapshot(e,this._actorScope):e:this.logic.getInitialSnapshot(this._actorScope,(n=this.options)==null?void 0:n.input)}catch(o){this._snapshot={status:"error",output:void 0,error:o}}}update(e,n){var o,r;this._snapshot=e;let s;for(;s=this._deferred.shift();)try{s()}catch(i){this._deferred.length=0,this._snapshot={...e,status:"error",error:i}}switch(this._snapshot.status){case"active":for(const i of this.observers)try{(o=i.next)==null||o.call(i,e)}catch(l){nt(l)}break;case"done":for(const i of this.observers)try{(r=i.next)==null||r.call(i,e)}catch(l){nt(l)}this._stopProcedure(),this._complete(),this._doneEvent=Gi(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:n,snapshot:e})}subscribe(e,n,o){var r;const s=Me(e,n,o);if(this._processingStatus!==W.Stopped)this.observers.add(s);else switch(this._snapshot.status){case"done":try{(r=s.complete)==null||r.call(s)}catch(i){nt(i)}break;case"error":{const i=this._snapshot.error;if(!s.error)nt(i);else try{s.error(i)}catch(l){nt(l)}break}}return{unsubscribe:()=>{this.observers.delete(s)}}}on(e,n){let o=this.eventListeners.get(e);o||(o=new Set,this.eventListeners.set(e,o));const r=n.bind(void 0);return o.add(r),{unsubscribe:()=>{o.delete(r)}}}start(){if(this._processingStatus===W.Running)return this;this._syncSnapshot&&this.subscribe({next:n=>{n.status==="active"&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:n})},error:()=>{}}),this.system._register(this.sessionId,this),this._systemId&&this.system._set(this._systemId,this),this._processingStatus=W.Running;const e=lo(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:e}),this._snapshot.status){case"done":return this.update(this._snapshot,e),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(n){return this._snapshot={...this._snapshot,status:"error",error:n},this._error(n),this}return this.update(this._snapshot,e),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(e){let n,o;try{n=this.logic.transition(this._snapshot,e,this._actorScope)}catch(r){o={err:r}}if(o){const{err:r}=o;this._snapshot={...this._snapshot,status:"error",error:r},this._error(r);return}this.update(n,e),e.type===De&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===W.Stopped?this:(this.mailbox.clear(),this._processingStatus===W.NotStarted?(this._processingStatus=W.Stopped,this):(this.mailbox.enqueue({type:De}),this))}stop(){if(this._parent)throw new Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){var e;for(const n of this.observers)try{(e=n.complete)==null||e.call(n)}catch(o){nt(o)}this.observers.clear()}_reportError(e){if(!this.observers.size){this._parent||nt(e);return}let n=!1;for(const o of this.observers){const r=o.error;n||(n=!r);try{r==null||r(e)}catch(s){nt(s)}}this.observers.clear(),n&&nt(e)}_error(e){this._stopProcedure(),this._reportError(e),this._parent&&this.system._relay(this,this._parent,Ji(this.id,e))}_stopProcedure(){return this._processingStatus!==W.Running?this:(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new ro(this._process.bind(this)),this._processingStatus=W.Stopped,this.system._unregister(this),this)}_send(e){this._processingStatus!==W.Stopped&&this.mailbox.enqueue(e)}send(e){this.system._relay(void 0,this,e)}attachDevTools(){const{devTools:e}=this.options;e&&(typeof e=="function"?e:zi)(this)}toJSON(){return{xstate$$type:ze,id:this.id}}getPersistedSnapshot(e){return this.logic.getPersistedSnapshot(this._snapshot,e)}[qi](){return this}getSnapshot(){return this._snapshot}}function Kt(t,...[e]){return new ea(t,e)}function na(t,e,n,o,{sendId:r}){const s=typeof r=="function"?r(n,o):r;return[e,{sendId:s},void 0]}function oa(t,e){t.defer(()=>{t.system.scheduler.cancel(t.self,e.sendId)})}function ra(t){function e(n,o){}return e.type="xstate.cancel",e.sendId=t,e.resolve=na,e.execute=oa,e}function sa(t,e,n,o,{id:r,systemId:s,src:i,input:l,syncSnapshot:c}){const u=typeof i=="string"?Be(e.machine,i):i,p=typeof r=="function"?r(n):r;let d,f;return u&&(f=typeof l=="function"?l({context:e.context,event:n.event,self:t.self}):l,d=Kt(u,{id:p,src:i,parent:t.self,syncSnapshot:c,systemId:s,input:f})),[ht(e,{children:{...e.children,[p]:d}}),{id:r,systemId:s,actorRef:d,src:i,input:f},void 0]}function ia(t,{actorRef:e}){e&&t.defer(()=>{e._processingStatus!==W.Stopped&&e.start()})}function aa(...[t,{id:e,systemId:n,input:o,syncSnapshot:r=!1}={}]){function s(i,l){}return s.type="xstate.spawnChild",s.id=e,s.systemId=n,s.src=t,s.input=o,s.syncSnapshot=r,s.resolve=sa,s.execute=ia,s}function la(t,e,n,o,{actorRef:r}){const s=typeof r=="function"?r(n,o):r,i=typeof s=="string"?e.children[s]:s;let l=e.children;return i&&(l={...l},delete l[i.id]),[ht(e,{children:l}),i,void 0]}function ca(t,e){if(e){if(t.system._unregister(e),e._processingStatus!==W.Running){t.stopChild(e);return}t.defer(()=>{t.stopChild(e)})}}function yo(t){function e(n,o){}return e.type="xstate.stopChild",e.actorRef=t,e.resolve=la,e.execute=ca,e}function He(t,e,n,o){const{machine:r}=o,s=typeof t=="function",i=s?t:r.implementations.guards[typeof t=="string"?t:t.type];if(!s&&!i)throw new Error(`Guard '${typeof t=="string"?t:t.type}' is not implemented.'.`);if(typeof i!="function")return He(i,e,n,o);const l={context:e,event:n},c=s||typeof t=="string"?void 0:"params"in t?typeof t.params=="function"?t.params({context:e,event:n}):t.params:void 0;return"check"in i?i.check(o,l,i):i(l,c)}const Ke=t=>t.type==="atomic"||t.type==="final";function St(t){return Object.values(t.states).filter(e=>e.type!=="history")}function Ft(t,e){const n=[];if(e===t)return n;let o=t.parent;for(;o&&o!==e;)n.push(o),o=o.parent;return n}function ae(t){const e=new Set(t),n=wo(e);for(const o of e)if(o.type==="compound"&&(!n.get(o)||!n.get(o).length))ko(o).forEach(r=>e.add(r));else if(o.type==="parallel"){for(const r of St(o))if(r.type!=="history"&&!e.has(r)){const s=ko(r);for(const i of s)e.add(i)}}for(const o of e){let r=o.parent;for(;r;)e.add(r),r=r.parent}return e}function vo(t,e){const n=e.get(t);if(!n)return{};if(t.type==="compound"){const r=n[0];if(r){if(Ke(r))return r.key}else return{}}const o={};for(const r of n)o[r.key]=vo(r,e);return o}function wo(t){const e=new Map;for(const n of t)e.has(n)||e.set(n,[]),n.parent&&(e.has(n.parent)||e.set(n.parent,[]),e.get(n.parent).push(n));return e}function bo(t,e){const n=ae(e);return vo(t,wo(n))}function Fe(t,e){return e.type==="compound"?St(e).some(n=>n.type==="final"&&t.has(n)):e.type==="parallel"?St(e).every(n=>Fe(t,n)):e.type==="final"}const le=t=>t[0]===Ki;function ua(t,e){return t.transitions.get(e)||[...t.transitions.keys()].filter(n=>{if(n===Fi)return!0;if(!n.endsWith(".*"))return!1;const o=n.split("."),r=e.split(".");for(let s=0;s<o.length;s++){const i=o[s],l=r[s];if(i==="*")return s===o.length-1;if(i!==l)return!1}return!0}).sort((n,o)=>o.length-n.length).flatMap(n=>t.transitions.get(n))}function da(t){const e=t.config.after;if(!e)return[];const n=o=>{const r=Wi(o,t.id),s=r.type;return t.entry.push(Ma(r,{id:s,delay:o})),t.exit.push(ra(s)),s};return Object.keys(e).flatMap(o=>{const r=e[o],s=typeof r=="string"?{target:r}:r,i=Number.isNaN(+o)?o:+o,l=n(i);return at(s).map(c=>({...c,event:l,delay:i}))}).map(o=>{const{delay:r}=o;return{...ft(t,o.event,o),delay:r}})}function ft(t,e,n){const o=mo(n.target),r=n.reenter??!1,s=ha(t,o),i={...n,actions:at(n.actions),guard:n.guard,target:s,source:t,reenter:r,eventType:e,toJSON:()=>({...i,source:`#${t.id}`,target:s?s.map(l=>`#${l.id}`):void 0})};return i}function fa(t){const e=new Map;if(t.config.on)for(const n of Object.keys(t.config.on)){if(n===io)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const o=t.config.on[n];e.set(n,kt(o).map(r=>ft(t,n,r)))}if(t.config.onDone){const n=`xstate.done.state.${t.id}`;e.set(n,kt(t.config.onDone).map(o=>ft(t,n,o)))}for(const n of t.invoke){if(n.onDone){const o=`xstate.done.actor.${n.id}`;e.set(o,kt(n.onDone).map(r=>ft(t,o,r)))}if(n.onError){const o=`xstate.error.actor.${n.id}`;e.set(o,kt(n.onError).map(r=>ft(t,o,r)))}if(n.onSnapshot){const o=`xstate.snapshot.${n.id}`;e.set(o,kt(n.onSnapshot).map(r=>ft(t,o,r)))}}for(const n of t.after){let o=e.get(n.eventType);o||(o=[],e.set(n.eventType,o)),o.push(n)}return e}function pa(t,e){const n=typeof e=="string"?t.states[e]:e?t.states[e.target]:void 0;if(!n&&e)throw new Error(`Initial state node "${e}" not found on parent state node #${t.id}`);const o={source:t,actions:!e||typeof e=="string"?[]:at(e.actions),eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...o,source:`#${t.id}`,target:n?[`#${n.id}`]:[]})};return o}function ha(t,e){if(e!==void 0)return e.map(n=>{if(typeof n!="string")return n;if(le(n))return t.machine.getStateNodeById(n);const o=n[0]===so;if(o&&!t.parent)return ce(t,n.slice(1));const r=o?t.key+n:n;if(t.parent)try{return ce(t.parent,r)}catch(s){throw new Error(`Invalid transition definition for state node '${t.id}':
2
- ${s.message}`)}else throw new Error(`Invalid target: "${n}" is not a valid target from the root node. Did you mean ".${n}"?`)})}function Eo(t){const e=mo(t.config.target);return e?{target:e.map(n=>typeof n=="string"?ce(t.parent,n):n)}:t.parent.initial}function pt(t){return t.type==="history"}function ko(t){const e=So(t);for(const n of e)for(const o of Ft(n,t))e.add(o);return e}function So(t){const e=new Set;function n(o){if(!e.has(o)){if(e.add(o),o.type==="compound")n(o.initial.target[0]);else if(o.type==="parallel")for(const r of St(o))n(r)}}return n(t),e}function Ot(t,e){if(le(e))return t.machine.getStateNodeById(e);if(!t.states)throw new Error(`Unable to retrieve child state '${e}' from '${t.id}'; no child states exist.`);const n=t.states[e];if(!n)throw new Error(`Child state '${e}' does not exist on '${t.id}'`);return n}function ce(t,e){if(typeof e=="string"&&le(e))try{return t.machine.getStateNodeById(e)}catch{}const n=je(e).slice();let o=t;for(;n.length;){const r=n.shift();if(!r.length)break;o=Ot(o,r)}return o}function ue(t,e){if(typeof e=="string"){const r=t.states[e];if(!r)throw new Error(`State '${e}' does not exist on '${t.id}'`);return[t,r]}const n=Object.keys(e),o=n.map(r=>Ot(t,r)).filter(Boolean);return[t.machine.root,t].concat(o,n.reduce((r,s)=>{const i=Ot(t,s);if(!i)return r;const l=ue(i,e[s]);return r.concat(l)},[]))}function ma(t,e,n,o){const r=Ot(t,e).next(n,o);return!r||!r.length?t.next(n,o):r}function ga(t,e,n,o){const r=Object.keys(e),s=Ot(t,r[0]),i=We(s,e[r[0]],n,o);return!i||!i.length?t.next(n,o):i}function _a(t,e,n,o){const r=[];for(const s of Object.keys(e)){const i=e[s];if(!i)continue;const l=Ot(t,s),c=We(l,i,n,o);c&&r.push(...c)}return r.length?r:t.next(n,o)}function We(t,e,n,o){return typeof e=="string"?ma(t,e,n,o):Object.keys(e).length===1?ga(t,e,n,o):_a(t,e,n,o)}function ya(t){return Object.keys(t.states).map(e=>t.states[e]).filter(e=>e.type==="history")}function lt(t,e){let n=t;for(;n.parent&&n.parent!==e;)n=n.parent;return n.parent===e}function va(t,e){const n=new Set(t),o=new Set(e);for(const r of n)if(o.has(r))return!0;for(const r of o)if(n.has(r))return!0;return!1}function Oo(t,e,n){const o=new Set;for(const r of t){let s=!1;const i=new Set;for(const l of o)if(va(Je([r],e,n),Je([l],e,n)))if(lt(r.source,l.source))i.add(l);else{s=!0;break}if(!s){for(const l of i)o.delete(l);o.add(r)}}return Array.from(o)}function wa(t){const[e,...n]=t;for(const o of Ft(e,void 0))if(n.every(r=>lt(r,o)))return o}function Ge(t,e){if(!t.target)return[];const n=new Set;for(const o of t.target)if(pt(o))if(e[o.id])for(const r of e[o.id])n.add(r);else for(const r of Ge(Eo(o),e))n.add(r);else n.add(o);return[...n]}function Io(t,e){const n=Ge(t,e);if(!n)return;if(!t.reenter&&n.every(r=>r===t.source||lt(r,t.source)))return t.source;const o=wa(n.concat(t.source));if(o)return o;if(!t.reenter)return t.source.machine.root}function Je(t,e,n){var o;const r=new Set;for(const s of t)if((o=s.target)!=null&&o.length){const i=Io(s,n);s.reenter&&s.source===i&&r.add(i);for(const l of e)lt(l,i)&&r.add(l)}return[...r]}function ba(t,e){if(t.length!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0}function qe(t,e,n,o,r,s){if(!t.length)return e;const i=new Set(e._nodes);let l=e.historyValue;const c=Oo(t,i,l);let u=e;r||([u,l]=Oa(u,o,n,c,i,l,s,n.actionExecutor)),u=Tt(u,o,n,c.flatMap(d=>d.actions),s,void 0),u=ka(u,o,n,c,i,s,l,r);const p=[...i];u.status==="done"&&(u=Tt(u,o,n,p.sort((d,f)=>f.order-d.order).flatMap(d=>d.exit),s,void 0));try{return l===e.historyValue&&ba(e._nodes,i)?u:ht(u,{_nodes:p,historyValue:l})}catch(d){throw d}}function Ea(t,e,n,o,r){if(o.output===void 0)return;const s=Ae(r.id,r.output!==void 0&&r.parent?Le(r.output,t.context,e,n.self):void 0);return Le(o.output,t.context,s,n.self)}function ka(t,e,n,o,r,s,i,l){let c=t;const u=new Set,p=new Set;Sa(o,i,p,u),l&&p.add(t.machine.root);const d=new Set;for(const f of[...u].sort((h,m)=>h.order-m.order)){r.add(f);const h=[];h.push(...f.entry);for(const m of f.invoke)h.push(aa(m.src,{...m,syncSnapshot:!!m.onSnapshot}));if(p.has(f)){const m=f.initial.actions;h.push(...m)}if(c=Tt(c,e,n,h,s,f.invoke.map(m=>m.id)),f.type==="final"){const m=f.parent;let _=(m==null?void 0:m.type)==="parallel"?m:m==null?void 0:m.parent,g=_||f;for((m==null?void 0:m.type)==="compound"&&s.push(Ae(m.id,f.output!==void 0?Le(f.output,c.context,e,n.self):void 0));(_==null?void 0:_.type)==="parallel"&&!d.has(_)&&Fe(r,_);)d.add(_),s.push(Ae(_.id)),g=_,_=_.parent;if(_)continue;c=ht(c,{status:"done",output:Ea(c,e,n,c.machine.root,g)})}}return c}function Sa(t,e,n,o){for(const r of t){const s=Io(r,e);for(const l of r.target||[])!pt(l)&&(r.source!==l||r.source!==s||r.reenter)&&(o.add(l),n.add(l)),It(l,e,n,o);const i=Ge(r,e);for(const l of i){const c=Ft(l,s);(s==null?void 0:s.type)==="parallel"&&c.push(s),To(o,e,n,c,!r.source.parent&&r.reenter?void 0:s)}}}function It(t,e,n,o){var r;if(pt(t))if(e[t.id]){const s=e[t.id];for(const i of s)o.add(i),It(i,e,n,o);for(const i of s)Ye(i,t.parent,o,e,n)}else{const s=Eo(t);for(const i of s.target)o.add(i),s===((r=t.parent)==null?void 0:r.initial)&&n.add(t.parent),It(i,e,n,o);for(const i of s.target)Ye(i,t.parent,o,e,n)}else if(t.type==="compound"){const[s]=t.initial.target;pt(s)||(o.add(s),n.add(s)),It(s,e,n,o),Ye(s,t,o,e,n)}else if(t.type==="parallel")for(const s of St(t).filter(i=>!pt(i)))[...o].some(i=>lt(i,s))||(pt(s)||(o.add(s),n.add(s)),It(s,e,n,o))}function To(t,e,n,o,r){for(const s of o)if((!r||lt(s,r))&&t.add(s),s.type==="parallel")for(const i of St(s).filter(l=>!pt(l)))[...t].some(l=>lt(l,i))||(t.add(i),It(i,e,n,t))}function Ye(t,e,n,o,r){To(n,o,r,Ft(t,e))}function Oa(t,e,n,o,r,s,i,l){let c=t;const u=Je(o,r,s);u.sort((d,f)=>f.order-d.order);let p;for(const d of u)for(const f of ya(d)){let h;f.history==="deep"?h=m=>Ke(m)&&lt(m,d):h=m=>m.parent===d,p??(p={...s}),p[f.id]=Array.from(r).filter(h)}for(const d of u)c=Tt(c,e,n,[...d.exit,...d.invoke.map(f=>yo(f.id))],i,void 0),r.delete(d);return[c,p||s]}function Ia(t,e){return t.implementations.actions[e]}function xo(t,e,n,o,r,s){const{machine:i}=t;let l=t;for(const c of o){const u=typeof c=="function",p=u?c:Ia(i,typeof c=="string"?c:c.type),d={context:l.context,event:e,self:n.self,system:n.system},f=u||typeof c=="string"?void 0:"params"in c?typeof c.params=="function"?c.params({context:l.context,event:e}):c.params:void 0;if(!p||!("resolve"in p)){n.actionExecutor({type:typeof c=="string"?c:typeof c=="object"?c.type:c.name||"(anonymous)",info:d,params:f,exec:p});continue}const h=p,[m,_,g]=h.resolve(n,l,d,f,p,r);l=m,"retryResolve"in h&&(s==null||s.push([h,_])),"execute"in h&&n.actionExecutor({type:h.type,info:d,params:_,exec:h.execute.bind(null,n,_)}),g&&(l=xo(l,e,n,g,r,s))}return l}function Tt(t,e,n,o,r,s){const i=s?[]:void 0,l=xo(t,e,n,o,{internalQueue:r,deferredActorIds:s},i);return i==null||i.forEach(([c,u])=>{c.retryResolve(n,l,u)}),l}function Xe(t,e,n,o){let r=t;const s=[];function i(u,p,d){n.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:n.self,event:p,snapshot:u,_transitions:d}),s.push(u)}if(e.type===De)return r=ht(Vo(r,e,n),{status:"stopped"}),i(r,e,[]),{snapshot:r,microstates:s};let l=e;if(l.type!==ao){const u=l,p=Xi(u),d=Co(u,r);if(p&&!d.length)return r=ht(t,{status:"error",error:u.error}),i(r,u,[]),{snapshot:r,microstates:s};r=qe(d,t,n,l,!1,o),i(r,u,d)}let c=!0;for(;r.status==="active";){let u=c?Ta(r,l):[];const p=u.length?r:void 0;if(!u.length){if(!o.length)break;l=o.shift(),u=Co(l,r)}r=qe(u,r,n,l,!1,o),c=r!==p,i(r,l,u)}return r.status!=="active"&&Vo(r,l,n),{snapshot:r,microstates:s}}function Vo(t,e,n){return Tt(t,e,n,Object.values(t.children).map(o=>yo(o)),[],void 0)}function Co(t,e){return e.machine.getTransitionData(e,t)}function Ta(t,e){const n=new Set,o=t._nodes.filter(Ke);for(const r of o)t:for(const s of[r].concat(Ft(r,void 0)))if(s.always){for(const i of s.always)if(i.guard===void 0||He(i.guard,t.context,e,t)){n.add(i);break t}}return Oo(Array.from(n),new Set(t._nodes),t.historyValue)}function xa(t,e){const n=ae(ue(t,e));return bo(t,[...n])}function Va(t){return!!t&&typeof t=="object"&&"machine"in t&&"value"in t}const Ca=function(t){return co(t,this.value)},Na=function(t){return this.tags.has(t)},$a=function(t){const e=this.machine.getTransitionData(this,t);return!!(e!=null&&e.length)&&e.some(n=>n.target!==void 0||n.actions.length)},Pa=function(){const{_nodes:t,tags:e,machine:n,getMeta:o,toJSON:r,can:s,hasTag:i,matches:l,...c}=this;return{...c,tags:Array.from(e)}},Ra=function(){return this._nodes.reduce((t,e)=>(e.meta!==void 0&&(t[e.id]=e.meta),t),{})};function de(t,e){return{status:t.status,output:t.output,error:t.error,machine:e,context:t.context,_nodes:t._nodes,value:bo(e.root,t._nodes),tags:new Set(t._nodes.flatMap(n=>n.tags)),children:t.children,historyValue:t.historyValue||{},matches:Ca,hasTag:Na,can:$a,getMeta:Ra,toJSON:Pa}}function ht(t,e={}){return de({...t,...e},t.machine)}function Da(t){if(typeof t!="object"||t===null)return{};const e={};for(const n in t){const o=t[n];Array.isArray(o)&&(e[n]=o.map(r=>({id:r.id})))}return e}function Aa(t,e){const{_nodes:n,tags:o,machine:r,children:s,context:i,can:l,hasTag:c,matches:u,getMeta:p,toJSON:d,...f}=t,h={};for(const m in s){const _=s[m];h[m]={snapshot:_.getPersistedSnapshot(e),src:_.src,systemId:_._systemId,syncSnapshot:_._syncSnapshot}}return{...f,context:No(i),children:h,historyValue:Da(f.historyValue)}}function No(t){let e;for(const n in t){const o=t[n];if(o&&typeof o=="object")if("sessionId"in o&&"send"in o&&"ref"in o)e??(e=Array.isArray(t)?t.slice():{...t}),e[n]={xstate$$type:ze,id:o.id};else{const r=No(o);r!==o&&(e??(e=Array.isArray(t)?t.slice():{...t}),e[n]=r)}}return e??t}function ja(t,e,n,o,{event:r,id:s,delay:i},{internalQueue:l}){const c=e.machine.implementations.delays;if(typeof r=="string")throw new Error(`Only event objects may be used with raise; use raise({ type: "${r}" }) instead`);const u=typeof r=="function"?r(n,o):r;let p;if(typeof i=="string"){const d=c&&c[i];p=typeof d=="function"?d(n,o):d}else p=typeof i=="function"?i(n,o):i;return typeof p!="number"&&l.push(u),[e,{event:u,id:s,delay:p},void 0]}function La(t,e){const{event:n,delay:o,id:r}=e;if(typeof o=="number"){t.defer(()=>{const s=t.self;t.system.scheduler.schedule(s,s,n,o,r)});return}}function Ma(t,e){function n(o,r){}return n.type="xstate.raise",n.event=t,n.id=e==null?void 0:e.id,n.delay=e==null?void 0:e.delay,n.resolve=ja,n.execute=La,n}function Ba(t,{machine:e,context:n},o,r){const s=(i,l)=>{if(typeof i=="string"){const c=Be(e,i);if(!c)throw new Error(`Actor logic '${i}' not implemented in machine '${e.id}'`);const u=Kt(c,{id:l==null?void 0:l.id,parent:t.self,syncSnapshot:l==null?void 0:l.syncSnapshot,input:typeof(l==null?void 0:l.input)=="function"?l.input({context:n,event:o,self:t.self}):l==null?void 0:l.input,src:i,systemId:l==null?void 0:l.systemId});return r[u.id]=u,u}else return Kt(i,{id:l==null?void 0:l.id,parent:t.self,syncSnapshot:l==null?void 0:l.syncSnapshot,input:l==null?void 0:l.input,src:i,systemId:l==null?void 0:l.systemId})};return(i,l)=>{const c=s(i,l);return r[c.id]=c,t.defer(()=>{c._processingStatus!==W.Stopped&&c.start()}),c}}function Ua(t,e,n,o,{assignment:r}){if(!e.context)throw new Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");const s={},i={context:e.context,event:n.event,spawn:Ba(t,e,n.event,s),self:t.self,system:t.system};let l={};if(typeof r=="function")l=r(i,o);else for(const u of Object.keys(r)){const p=r[u];l[u]=typeof p=="function"?p(i,o):p}const c=Object.assign({},e.context,l);return[ht(e,{context:c,children:Object.keys(s).length?{...e.children,...s}:e.children}),void 0,void 0]}function za(t){function e(n,o){}return e.type="xstate.assign",e.assignment=t,e.resolve=Ua,e}const $o=new WeakMap;function xt(t,e,n){let o=$o.get(t);return o?e in o||(o[e]=n()):(o={[e]:n()},$o.set(t,o)),o[e]}const Ha={},Wt=t=>typeof t=="string"?{type:t}:typeof t=="function"?"resolve"in t?{type:t.type}:{type:t.name}:t;let Po=class oi{constructor(e,n){if(this.config=e,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=n._parent,this.key=n._key,this.machine=n._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(so),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?fo(this.config.states,(o,r)=>new oi(o,{_parent:this,_key:r,_machine:this.machine})):Ha,this.type==="compound"&&!this.config.initial)throw new Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=this.config.history===!0?"shallow":this.config.history||!1,this.entry=at(this.config.entry).slice(),this.exit=at(this.config.exit).slice(),this.meta=this.config.meta,this.output=this.type==="final"||!this.parent?this.config.output:void 0,this.tags=at(e.tags).slice()}_initialize(){this.transitions=fa(this),this.config.always&&(this.always=kt(this.config.always).map(e=>ft(this,io,e))),Object.keys(this.states).forEach(e=>{this.states[e]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(Wt),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(e=>`#${e.id}`),source:`#${this.id}`,actions:this.initial.actions.map(Wt),eventType:null})}:void 0,history:this.history,states:fo(this.states,e=>e.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(e=>({...e,actions:e.actions.map(Wt)})),entry:this.entry.map(Wt),exit:this.exit.map(Wt),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return xt(this,"invoke",()=>at(this.config.invoke).map((e,n)=>{const{src:o,systemId:r}=e,s=e.id??go(this.id,n),i=typeof o=="string"?o:`xstate.invoke.${go(this.id,n)}`;return{...e,src:i,id:s,systemId:r,toJSON(){const{onDone:l,onError:c,...u}=e;return{...u,type:"xstate.invoke",src:i,id:s}}}}))}get on(){return xt(this,"on",()=>[...this.transitions].flatMap(([e,n])=>n.map(o=>[e,o])).reduce((e,[n,o])=>(e[n]=e[n]||[],e[n].push(o),e),{}))}get after(){return xt(this,"delayedTransitions",()=>da(this))}get initial(){return xt(this,"initial",()=>pa(this,this.config.initial))}next(e,n){const o=n.type,r=[];let s;const i=xt(this,`candidates-${o}`,()=>ua(this,o));for(const l of i){const{guard:c}=l,u=e.context;let p=!1;try{p=!c||He(c,u,n,e)}catch(d){const f=typeof c=="string"?c:typeof c=="object"?c.type:void 0;throw new Error(`Unable to evaluate guard ${f?`'${f}' `:""}in transition for event '${o}' in state node '${this.id}':
3
- ${d.message}`)}if(p){r.push(...l.actions),s=l;break}}return s?[s]:void 0}get events(){return xt(this,"events",()=>{const{states:e}=this,n=new Set(this.ownEvents);if(e)for(const o of Object.keys(e)){const r=e[o];if(r.states)for(const s of r.events)n.add(`${s}`)}return Array.from(n)})}get ownEvents(){const e=new Set([...this.transitions.keys()].filter(n=>this.transitions.get(n).some(o=>!(!o.target&&!o.actions.length&&!o.reenter))));return Array.from(e)}};const Ka="#";let Fa=class ri{constructor(e,n){this.config=e,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=e.id||"(machine)",this.implementations={actors:(n==null?void 0:n.actors)??{},actions:(n==null?void 0:n.actions)??{},delays:(n==null?void 0:n.delays)??{},guards:(n==null?void 0:n.guards)??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new Po(e,{_key:this.id,_machine:this}),this.root._initialize(),this.states=this.root.states,this.events=this.root.events}provide(e){const{actions:n,guards:o,actors:r,delays:s}=this.implementations;return new ri(this.config,{actions:{...n,...e.actions},guards:{...o,...e.guards},actors:{...r,...e.actors},delays:{...s,...e.delays}})}resolveState(e){const n=xa(this.root,e.value),o=ae(ue(this.root,n));return de({_nodes:[...o],context:e.context||{},children:{},status:Fe(o,this.root)?"done":e.status||"active",output:e.output,error:e.error,historyValue:e.historyValue},this)}transition(e,n,o){return Xe(e,n,o,[]).snapshot}microstep(e,n,o){return Xe(e,n,o,[]).microstates}getTransitionData(e,n){return We(this.root,e.value,e,n)||[]}getPreInitialState(e,n,o){const{context:r}=this.config,s=de({context:typeof r!="function"&&r?r:{},_nodes:[this.root],children:{},status:"active"},this);return typeof r=="function"?Tt(s,n,e,[za(({spawn:i,event:l,self:c})=>r({spawn:i,input:l.input,self:c}))],o,void 0):s}getInitialSnapshot(e,n){const o=lo(n),r=[],s=this.getPreInitialState(e,o,r),i=qe([{target:[...So(this.root)],source:this.root,reenter:!0,actions:[],eventType:null,toJSON:null}],s,e,o,!0,r),{snapshot:l}=Xe(i,o,e,r);return l}start(e){Object.values(e.children).forEach(n=>{n.getSnapshot().status==="active"&&n.start()})}getStateNodeById(e){const n=je(e),o=n.slice(1),r=le(n[0])?n[0].slice(Ka.length):n[0],s=this.idMap.get(r);if(!s)throw new Error(`Child state node '#${r}' does not exist on machine '${this.id}'`);return ce(s,o)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(e,n){return Aa(e,n)}restoreSnapshot(e,n){const o={},r=e.children;Object.keys(r).forEach(d=>{const f=r[d],h=f.snapshot,m=f.src,_=typeof m=="string"?Be(this,m):m;if(!_)return;const g=Kt(_,{id:d,parent:n.self,syncSnapshot:f.syncSnapshot,snapshot:h,src:m,systemId:f.systemId});o[d]=g});function s(d,f){if(f instanceof Po)return f;try{return d.machine.getStateNodeById(f.id)}catch{}}function i(d,f){if(!f||typeof f!="object")return{};const h={};for(const m in f){const _=f[m];for(const g of _){const y=s(d,g);y&&(h[m]??(h[m]=[]),h[m].push(y))}}return h}const l=i(this.root,e.historyValue),c=de({...e,children:o,_nodes:Array.from(ae(ue(this.root,e.value))),historyValue:l},this),u=new Set;function p(d,f){if(!u.has(d)){u.add(d);for(const h in d){const m=d[h];if(m&&typeof m=="object"){if("xstate$$type"in m&&m.xstate$$type===ze){d[h]=f[m.id];continue}p(m,f)}}}}return p(c.context,o),c}};function Wa(t,e){return new Fa(t,e)}function Ze(t){this.message=t||""}Ze.prototype=Object.create(Error.prototype,{constructor:{value:Ze},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const Ro=class Ce{constructor(e,n){if(Y(this,"name","Stonecrop"),Y(this,"registry"),Y(this,"store"),Ce._root)return Ce._root;Ce._root=this,this.registry=e,this.store=n}setup(e){this.getMeta(e.doctype)}async getMeta(e){if(!this.registry.getMeta)throw new Ze(`getMeta function is not implemented for ${e} in the registry`);return await this.registry.getMeta(e)}async getRecords(e,n){this.store.$patch({records:[]});const o=await(await fetch(`/${e.slug}`,n)).json();this.store.$patch({records:o})}async getRecord(e,n){this.store.$patch({record:{}});const o=await(await fetch(`/${e.slug}/${n}`)).json();this.store.$patch({record:o})}runAction(e,n,o){var r;const s=this.registry.registry[e.slug],i=(r=s.actions)==null?void 0:r.get(n),l=s.workflow;if(l){const c=Wa(l),u=Kt(c);u.start(),u.send({type:n,id:o}),i&&i.length>0&&i.forEach(p=>{new Function(p)(o)})}}};Y(Ro,"_root");let Ga=Ro;var Ja=Object.create,Do=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,Qe=Object.getOwnPropertyNames,Ya=Object.getPrototypeOf,Xa=Object.prototype.hasOwnProperty,Za=(t,e)=>function(){return t&&(e=(0,t[Qe(t)[0]])(t=0)),e},Qa=(t,e)=>function(){return e||(0,t[Qe(t)[0]])((e={exports:{}}).exports,e),e.exports},tl=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Qe(e))!Xa.call(t,r)&&r!==n&&Do(t,r,{get:()=>e[r],enumerable:!(o=qa(e,r))||o.enumerable});return t},el=(t,e,n)=>(n=t!=null?Ja(Ya(t)):{},tl(Do(n,"default",{value:t,enumerable:!0}),t)),Gt=Za({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),nl=Qa({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(t,e){Gt(),e.exports=o;function n(s){return s instanceof Buffer?Buffer.from(s):new s.constructor(s.buffer.slice(),s.byteOffset,s.length)}function o(s){if(s=s||{},s.circles)return r(s);const i=new Map;if(i.set(Date,d=>new Date(d)),i.set(Map,(d,f)=>new Map(c(Array.from(d),f))),i.set(Set,(d,f)=>new Set(c(Array.from(d),f))),s.constructorHandlers)for(const d of s.constructorHandlers)i.set(d[0],d[1]);let l=null;return s.proto?p:u;function c(d,f){const h=Object.keys(d),m=new Array(h.length);for(let _=0;_<h.length;_++){const g=h[_],y=d[g];typeof y!="object"||y===null?m[g]=y:y.constructor!==Object&&(l=i.get(y.constructor))?m[g]=l(y,f):ArrayBuffer.isView(y)?m[g]=n(y):m[g]=f(y)}return m}function u(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return c(d,u);if(d.constructor!==Object&&(l=i.get(d.constructor)))return l(d,u);const f={};for(const h in d){if(Object.hasOwnProperty.call(d,h)===!1)continue;const m=d[h];typeof m!="object"||m===null?f[h]=m:m.constructor!==Object&&(l=i.get(m.constructor))?f[h]=l(m,u):ArrayBuffer.isView(m)?f[h]=n(m):f[h]=u(m)}return f}function p(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return c(d,p);if(d.constructor!==Object&&(l=i.get(d.constructor)))return l(d,p);const f={};for(const h in d){const m=d[h];typeof m!="object"||m===null?f[h]=m:m.constructor!==Object&&(l=i.get(m.constructor))?f[h]=l(m,p):ArrayBuffer.isView(m)?f[h]=n(m):f[h]=p(m)}return f}}function r(s){const i=[],l=[],c=new Map;if(c.set(Date,h=>new Date(h)),c.set(Map,(h,m)=>new Map(p(Array.from(h),m))),c.set(Set,(h,m)=>new Set(p(Array.from(h),m))),s.constructorHandlers)for(const h of s.constructorHandlers)c.set(h[0],h[1]);let u=null;return s.proto?f:d;function p(h,m){const _=Object.keys(h),g=new Array(_.length);for(let y=0;y<_.length;y++){const I=_[y],V=h[I];if(typeof V!="object"||V===null)g[I]=V;else if(V.constructor!==Object&&(u=c.get(V.constructor)))g[I]=u(V,m);else if(ArrayBuffer.isView(V))g[I]=n(V);else{const P=i.indexOf(V);P!==-1?g[I]=l[P]:g[I]=m(V)}}return g}function d(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return p(h,d);if(h.constructor!==Object&&(u=c.get(h.constructor)))return u(h,d);const m={};i.push(h),l.push(m);for(const _ in h){if(Object.hasOwnProperty.call(h,_)===!1)continue;const g=h[_];if(typeof g!="object"||g===null)m[_]=g;else if(g.constructor!==Object&&(u=c.get(g.constructor)))m[_]=u(g,d);else if(ArrayBuffer.isView(g))m[_]=n(g);else{const y=i.indexOf(g);y!==-1?m[_]=l[y]:m[_]=d(g)}}return i.pop(),l.pop(),m}function f(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return p(h,f);if(h.constructor!==Object&&(u=c.get(h.constructor)))return u(h,f);const m={};i.push(h),l.push(m);for(const _ in h){const g=h[_];if(typeof g!="object"||g===null)m[_]=g;else if(g.constructor!==Object&&(u=c.get(g.constructor)))m[_]=u(g,f);else if(ArrayBuffer.isView(g))m[_]=n(g);else{const y=i.indexOf(g);y!==-1?m[_]=l[y]:m[_]=f(g)}}return i.pop(),l.pop(),m}}}});Gt(),Gt(),Gt();var Ao=typeof navigator<"u",x=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof x.chrome<"u"&&x.chrome.devtools,Ao&&(x.self,x.top);var jo;typeof navigator<"u"&&((jo=navigator.userAgent)==null||jo.toLowerCase().includes("electron")),Gt();var ol=el(nl()),rl=/(?:^|[-_/])(\w)/g;function sl(t,e){return e?e.toUpperCase():""}function il(t){return t&&`${t}`.replace(rl,sl)}function al(t,e){let n=t.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${e}`)&&(n=n.replace(`/index${e}`,e));const o=n.lastIndexOf("/"),r=n.substring(o+1);{const s=r.lastIndexOf(e);return r.substring(0,s)}}var Lo=(0,ol.default)({circles:!0});const ll={trailing:!0};function Vt(t,e=25,n={}){if(n={...ll,...n},!Number.isFinite(e))throw new TypeError("Expected `wait` to be a finite number");let o,r,s=[],i,l;const c=(u,p)=>(i=cl(t,u,p),i.finally(()=>{if(i=null,n.trailing&&l&&!r){const d=c(u,l);return l=null,d}}),i);return function(...u){return i?(n.trailing&&(l=u),i):new Promise(p=>{const d=!r&&n.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const f=n.leading?o:c(this,u);for(const h of s)h(f);s=[]},e),d?(o=c(this,u),p(o)):s.push(p)})}}async function cl(t,e,n){return await t.apply(e,n)}function tn(t,e={},n){for(const o in t){const r=t[o],s=n?`${n}:${o}`:o;typeof r=="object"&&r!==null?tn(r,e,s):typeof r=="function"&&(e[s]=r)}return e}const ul={run:t=>t()},dl=()=>ul,Mo=typeof console.createTask<"u"?console.createTask:dl;function fl(t,e){const n=e.shift(),o=Mo(n);return t.reduce((r,s)=>r.then(()=>o.run(()=>s(...e))),Promise.resolve())}function pl(t,e){const n=e.shift(),o=Mo(n);return Promise.all(t.map(r=>o.run(()=>r(...e))))}function en(t,e){for(const n of[...t])n(e)}class hl{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,o={}){if(!e||typeof n!="function")return()=>{};const r=e;let s;for(;this._deprecatedHooks[e];)s=this._deprecatedHooks[e],e=s.to;if(s&&!o.allowDeprecated){let i=s.message;i||(i=`${r} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let o,r=(...s)=>(typeof o=="function"&&o(),o=void 0,r=void 0,n(...s));return o=this.hook(e,r),o}removeHook(e,n){if(this._hooks[e]){const o=this._hooks[e].indexOf(n);o!==-1&&this._hooks[e].splice(o,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const o=this._hooks[e]||[];delete this._hooks[e];for(const r of o)this.hook(e,r)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=tn(e),o=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of o.splice(0,o.length))r()}}removeHooks(e){const n=tn(e);for(const o in n)this.removeHook(o,n[o])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(fl,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(pl,e,...n)}callHookWith(e,n,...o){const r=this._before||this._after?{name:n,args:o,context:{}}:void 0;this._before&&en(this._before,r);const s=e(n in this._hooks?[...this._hooks[n]]:[],o);return s instanceof Promise?s.finally(()=>{this._after&&r&&en(this._after,r)}):(this._after&&r&&en(this._after,r),s)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}}function Bo(){return new hl}var ml=Object.create,Uo=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,nn=Object.getOwnPropertyNames,_l=Object.getPrototypeOf,yl=Object.prototype.hasOwnProperty,vl=(t,e)=>function(){return t&&(e=(0,t[nn(t)[0]])(t=0)),e},zo=(t,e)=>function(){return e||(0,t[nn(t)[0]])((e={exports:{}}).exports,e),e.exports},wl=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of nn(e))!yl.call(t,r)&&r!==n&&Uo(t,r,{get:()=>e[r],enumerable:!(o=gl(e,r))||o.enumerable});return t},bl=(t,e,n)=>(n=t!=null?ml(_l(t)):{},wl(Uo(n,"default",{value:t,enumerable:!0}),t)),E=vl({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),El=zo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(t,e){E(),function(n){var o={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},r=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},l={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},c=[";","?",":","@","&","=","+","$",",","/"].join(""),u=[";","?",":","@","&","=","+","$",","].join(""),p=[".","!","~","*","'","(",")"].join(""),d=function(_,g){var y="-",I="",V="",P=!0,R={},J,S,L,T,v,O,C,D,F,z,N,w,b,k,$="";if(typeof _!="string")return"";if(typeof g=="string"&&(y=g),C=l.en,D=i.en,typeof g=="object"){J=g.maintainCase||!1,R=g.custom&&typeof g.custom=="object"?g.custom:R,L=+g.truncate>1&&g.truncate||!1,T=g.uric||!1,v=g.uricNoSlash||!1,O=g.mark||!1,P=!(g.symbols===!1||g.lang===!1),y=g.separator||y,T&&($+=c),v&&($+=u),O&&($+=p),C=g.lang&&l[g.lang]&&P?l[g.lang]:P?l.en:{},D=g.lang&&i[g.lang]?i[g.lang]:g.lang===!1||g.lang===!0?{}:i.en,g.titleCase&&typeof g.titleCase.length=="number"&&Array.prototype.toString.call(g.titleCase)?(g.titleCase.forEach(function(A){R[A+""]=A+""}),S=!0):S=!!g.titleCase,g.custom&&typeof g.custom.length=="number"&&Array.prototype.toString.call(g.custom)&&g.custom.forEach(function(A){R[A+""]=A+""}),Object.keys(R).forEach(function(A){var B;A.length>1?B=new RegExp("\\b"+h(A)+"\\b","gi"):B=new RegExp(h(A),"gi"),_=_.replace(B,R[A])});for(N in R)$+=N}for($+=y,$=h($),_=_.replace(/(^\s+|\s+$)/g,""),b=!1,k=!1,z=0,w=_.length;z<w;z++)N=_[z],m(N,R)?b=!1:D[N]?(N=b&&D[N].match(/[A-Za-z0-9]/)?" "+D[N]:D[N],b=!1):N in o?(z+1<w&&r.indexOf(_[z+1])>=0?(V+=N,N=""):k===!0?(N=s[V]+o[N],V=""):N=b&&o[N].match(/[A-Za-z0-9]/)?" "+o[N]:o[N],b=!1,k=!1):N in s?(V+=N,N="",z===w-1&&(N=s[V]),k=!0):C[N]&&!(T&&c.indexOf(N)!==-1)&&!(v&&u.indexOf(N)!==-1)?(N=b||I.substr(-1).match(/[A-Za-z0-9]/)?y+C[N]:C[N],N+=_[z+1]!==void 0&&_[z+1].match(/[A-Za-z0-9]/)?y:"",b=!0):(k===!0?(N=s[V]+N,V="",k=!1):b&&(/[A-Za-z0-9]/.test(N)||I.substr(-1).match(/A-Za-z0-9]/))&&(N=" "+N),b=!1),I+=N.replace(new RegExp("[^\\w\\s"+$+"_-]","g"),y);return S&&(I=I.replace(/(\w)(\S*)/g,function(A,B,Ht){var Yn=B.toUpperCase()+(Ht!==null?Ht:"");return Object.keys(R).indexOf(Yn.toLowerCase())<0?Yn:Yn.toLowerCase()})),I=I.replace(/\s+/g,y).replace(new RegExp("\\"+y+"+","g"),y).replace(new RegExp("(^\\"+y+"+|\\"+y+"+$)","g"),""),L&&I.length>L&&(F=I.charAt(L)===y,I=I.slice(0,L),F||(I=I.slice(0,I.lastIndexOf(y)))),!J&&!S&&(I=I.toLowerCase()),I},f=function(_){return function(g){return d(g,_)}},h=function(_){return _.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},m=function(_,g){for(var y in g)if(g[y]===_)return!0};if(typeof e<"u"&&e.exports)e.exports=d,e.exports.createSlug=f;else if(typeof define<"u"&&define.amd)define([],function(){return d});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=d,n.createSlug=f}catch{}}(t)}}),kl=zo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(t,e){E(),e.exports=El()}});E(),E(),E(),E(),E(),E(),E(),E();function Sl(t){var e;const n=t.name||t._componentTag||t.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||t.__name;return n==="index"&&(e=t.__file)!=null&&e.endsWith("index.vue")?"":n}function Ol(t){const e=t.__file;if(e)return il(al(e,".vue"))}function Ho(t,e){return t.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=e,e}function on(t){if(t.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return t.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(t.root)return t.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Ko(t){var e,n;const o=(e=t.subTree)==null?void 0:e.type,r=on(t);return r?((n=r==null?void 0:r.types)==null?void 0:n.Fragment)===o:!1}function fe(t){var e,n,o;const r=Sl((t==null?void 0:t.type)||{});if(r)return r;if((t==null?void 0:t.root)===t)return"Root";for(const i in(n=(e=t.parent)==null?void 0:e.type)==null?void 0:n.components)if(t.parent.type.components[i]===(t==null?void 0:t.type))return Ho(t,i);for(const i in(o=t.appContext)==null?void 0:o.components)if(t.appContext.components[i]===(t==null?void 0:t.type))return Ho(t,i);return Ol((t==null?void 0:t.type)||{})||"Anonymous Component"}function Il(t){var e,n,o;const r=(o=(n=(e=t==null?void 0:t.appContext)==null?void 0:e.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?o:0,s=t===(t==null?void 0:t.root)?"root":t.uid;return`${r}:${s}`}function rn(t,e){return e=e||`${t.id}:root`,t.instanceMap.get(e)||t.instanceMap.get(":root")}function Tl(){const t={top:0,bottom:0,left:0,right:0,get width(){return t.right-t.left},get height(){return t.bottom-t.top}};return t}var pe;function xl(t){return pe||(pe=document.createRange()),pe.selectNode(t),pe.getBoundingClientRect()}function Vl(t){const e=Tl();if(!t.children)return e;for(let n=0,o=t.children.length;n<o;n++){const r=t.children[n];let s;if(r.component)s=mt(r.component);else if(r.el){const i=r.el;i.nodeType===1||i.getBoundingClientRect?s=i.getBoundingClientRect():i.nodeType===3&&i.data.trim()&&(s=xl(i))}s&&Cl(e,s)}return e}function Cl(t,e){return(!t.top||e.top<t.top)&&(t.top=e.top),(!t.bottom||e.bottom>t.bottom)&&(t.bottom=e.bottom),(!t.left||e.left<t.left)&&(t.left=e.left),(!t.right||e.right>t.right)&&(t.right=e.right),t}var Fo={top:0,left:0,right:0,bottom:0,width:0,height:0};function mt(t){const e=t.subTree.el;return typeof window>"u"?Fo:Ko(t)?Vl(t.subTree):(e==null?void 0:e.nodeType)===1?e==null?void 0:e.getBoundingClientRect():t.subTree.component?mt(t.subTree.component):Fo}E();function sn(t){return Ko(t)?Nl(t.subTree):t.subTree?[t.subTree.el]:[]}function Nl(t){if(!t.children)return[];const e=[];return t.children.forEach(n=>{n.component?e.push(...sn(n.component)):n!=null&&n.el&&e.push(n.el)}),e}var Wo="__vue-devtools-component-inspector__",Go="__vue-devtools-component-inspector__card__",Jo="__vue-devtools-component-inspector__name__",qo="__vue-devtools-component-inspector__indicator__",Yo={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},$l={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},Pl={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function Ct(){return document.getElementById(Wo)}function Rl(){return document.getElementById(Go)}function Dl(){return document.getElementById(qo)}function Al(){return document.getElementById(Jo)}function an(t){return{left:`${Math.round(t.left*100)/100}px`,top:`${Math.round(t.top*100)/100}px`,width:`${Math.round(t.width*100)/100}px`,height:`${Math.round(t.height*100)/100}px`}}function ln(t){var e;const n=document.createElement("div");n.id=(e=t.elementId)!=null?e:Wo,Object.assign(n.style,{...Yo,...an(t.bounds),...t.style});const o=document.createElement("span");o.id=Go,Object.assign(o.style,{...$l,top:t.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=Jo,r.innerHTML=`&lt;${t.name}&gt;&nbsp;&nbsp;`;const s=document.createElement("i");return s.id=qo,s.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`,Object.assign(s.style,Pl),o.appendChild(r),o.appendChild(s),n.appendChild(o),document.body.appendChild(n),n}function cn(t){const e=Ct(),n=Rl(),o=Al(),r=Dl();e&&(Object.assign(e.style,{...Yo,...an(t.bounds)}),Object.assign(n.style,{top:t.bounds.top<35?0:"-35px"}),o.innerHTML=`&lt;${t.name}&gt;&nbsp;&nbsp;`,r.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`)}function jl(t){const e=mt(t);if(!e.width&&!e.height)return;const n=fe(t);Ct()?cn({bounds:e,name:n}):ln({bounds:e,name:n})}function Xo(){const t=Ct();t&&(t.style.display="none")}var un=null;function dn(t){const e=t.target;if(e){const n=e.__vueParentComponent;if(n&&(un=n,n.vnode.el)){const o=mt(n),r=fe(n);Ct()?cn({bounds:o,name:r}):ln({bounds:o,name:r})}}}function Ll(t,e){if(t.preventDefault(),t.stopPropagation(),un){const n=Il(un);e(n)}}var he=null;function Ml(){Xo(),window.removeEventListener("mouseover",dn),window.removeEventListener("click",he,!0),he=null}function Bl(){return window.addEventListener("mouseover",dn),new Promise(t=>{function e(n){n.preventDefault(),n.stopPropagation(),Ll(n,o=>{window.removeEventListener("click",e,!0),he=null,window.removeEventListener("mouseover",dn);const r=Ct();r&&(r.style.display="none"),t(JSON.stringify({id:o}))})}he=e,window.addEventListener("click",e,!0)})}function Ul(t){const e=rn(K.value,t.id);if(e){const[n]=sn(e);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const o=mt(e),r=document.createElement("div"),s={...an(o),position:"absolute"};Object.assign(r.style,s),document.body.appendChild(r),r.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(r)},2e3)}setTimeout(()=>{const o=mt(e);if(o.width||o.height){const r=fe(e),s=Ct();s?cn({...t,name:r,bounds:o}):ln({...t,name:r,bounds:o}),setTimeout(()=>{s&&(s.style.display="none")},1500)}},1200)}}E();var Zo;(Zo=x).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__!=null||(Zo.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function zl(t){let e=0;const n=setInterval(()=>{x.__VUE_INSPECTOR__&&(clearInterval(n),e+=30,t()),e>=5e3&&clearInterval(n)},30)}function Hl(){const t=x.__VUE_INSPECTOR__,e=t.openInEditor;t.openInEditor=async(...n)=>{t.disable(),e(...n)}}function Kl(){return new Promise(t=>{function e(){Hl(),t(x.__VUE_INSPECTOR__)}x.__VUE_INSPECTOR__?e():zl(()=>{e()})})}E(),E();function Fl(t){return!!(t&&t.__v_isReadonly)}function Qo(t){return Fl(t)?Qo(t.__v_raw):!!(t&&t.__v_isReactive)}function fn(t){return!!(t&&t.__v_isRef===!0)}function Jt(t){const e=t&&t.__v_raw;return e?Jt(e):t}var Wl=class{constructor(){this.refEditor=new Gl}set(t,e,n,o){const r=Array.isArray(e)?e:e.split(".");for(;r.length>1;){const l=r.shift();t instanceof Map?t=t.get(l):t instanceof Set?t=Array.from(t.values())[l]:t=t[l],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}const s=r[0],i=this.refEditor.get(t)[s];o?o(t,s,n):this.refEditor.isRef(i)?this.refEditor.set(i,n):t[s]=n}get(t,e){const n=Array.isArray(e)?e:e.split(".");for(let o=0;o<n.length;o++)if(t instanceof Map?t=t.get(n[o]):t=t[n[o]],this.refEditor.isRef(t)&&(t=this.refEditor.get(t)),!t)return;return t}has(t,e,n=!1){if(typeof t>"u")return!1;const o=Array.isArray(e)?e.slice():e.split("."),r=n?2:1;for(;t&&o.length>r;){const s=o.shift();t=t[s],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}return t!=null&&Object.prototype.hasOwnProperty.call(t,o[0])}createDefaultSetCallback(t){return(e,n,o)=>{if((t.remove||t.newKey)&&(Array.isArray(e)?e.splice(n,1):Jt(e)instanceof Map?e.delete(n):Jt(e)instanceof Set?e.delete(Array.from(e.values())[n]):Reflect.deleteProperty(e,n)),!t.remove){const r=e[t.newKey||n];this.refEditor.isRef(r)?this.refEditor.set(r,o):Jt(e)instanceof Map?e.set(t.newKey||n,o):Jt(e)instanceof Set?e.add(o):e[t.newKey||n]=o}}}},Gl=class{set(t,e){if(fn(t))t.value=e;else{if(t instanceof Set&&Array.isArray(e)){t.clear(),e.forEach(r=>t.add(r));return}const n=Object.keys(e);if(t instanceof Map){const r=new Set(t.keys());n.forEach(s=>{t.set(s,Reflect.get(e,s)),r.delete(s)}),r.forEach(s=>t.delete(s));return}const o=new Set(Object.keys(t));n.forEach(r=>{Reflect.set(t,r,Reflect.get(e,r)),o.delete(r)}),o.forEach(r=>Reflect.deleteProperty(t,r))}}get(t){return fn(t)?t.value:t}isRef(t){return fn(t)||Qo(t)}};E(),E(),E();var Jl="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function ql(){if(!Ao||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const t=localStorage.getItem(Jl);return t?JSON.parse(t):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}E(),E(),E();var tr;(tr=x).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS!=null||(tr.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Yl=new Proxy(x.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(t,e,n){return Reflect.get(t,e,n)}});function Xl(t,e){M.timelineLayersState[e.id]=!1,Yl.push({...t,descriptorId:e.id,appRecord:on(e.app)})}var er;(er=x).__VUE_DEVTOOLS_KIT_INSPECTOR__!=null||(er.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var pn=new Proxy(x.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(t,e,n){return Reflect.get(t,e,n)}}),nr=Vt(()=>{$t.hooks.callHook("sendInspectorToClient",or())});function Zl(t,e){var n,o;pn.push({options:t,descriptor:e,treeFilterPlaceholder:(n=t.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(o=t.stateFilterPlaceholder)!=null?o:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:on(e.app)}),nr()}function or(){return pn.filter(t=>t.descriptor.app===K.value.app).filter(t=>t.descriptor.id!=="components").map(t=>{var e;const n=t.descriptor,o=t.options;return{id:o.id,label:o.label,logo:n.logo,icon:`custom-ic-baseline-${(e=o==null?void 0:o.icon)==null?void 0:e.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function me(t,e){return pn.find(n=>n.options.id===t&&(e?n.descriptor.app===e:!0))}function Ql(){const t=Bo();t.hook("addInspector",({inspector:o,plugin:r})=>{Zl(o,r.descriptor)});const e=Vt(async({inspectorId:o,plugin:r})=>{var s;if(!o||!((s=r==null?void 0:r.descriptor)!=null&&s.app)||M.highPerfModeEnabled)return;const i=me(o,r.descriptor.app),l={app:r.descriptor.app,inspectorId:o,filter:(i==null?void 0:i.treeFilter)||"",rootNodes:[]};await new Promise(c=>{t.callHookWith(async u=>{await Promise.all(u.map(p=>p(l))),c()},"getInspectorTree")}),t.callHookWith(async c=>{await Promise.all(c.map(u=>u({inspectorId:o,rootNodes:l.rootNodes})))},"sendInspectorTreeToClient")},120);t.hook("sendInspectorTree",e);const n=Vt(async({inspectorId:o,plugin:r})=>{var s;if(!o||!((s=r==null?void 0:r.descriptor)!=null&&s.app)||M.highPerfModeEnabled)return;const i=me(o,r.descriptor.app),l={app:r.descriptor.app,inspectorId:o,nodeId:(i==null?void 0:i.selectedNodeId)||"",state:null},c={currentTab:`custom-inspector:${o}`};l.nodeId&&await new Promise(u=>{t.callHookWith(async p=>{await Promise.all(p.map(d=>d(l,c))),u()},"getInspectorState")}),t.callHookWith(async u=>{await Promise.all(u.map(p=>p({inspectorId:o,nodeId:l.nodeId,state:l.state})))},"sendInspectorStateToClient")},120);return t.hook("sendInspectorState",n),t.hook("customInspectorSelectNode",({inspectorId:o,nodeId:r,plugin:s})=>{const i=me(o,s.descriptor.app);i&&(i.selectedNodeId=r)}),t.hook("timelineLayerAdded",({options:o,plugin:r})=>{Xl(o,r.descriptor)}),t.hook("timelineEventAdded",({options:o,plugin:r})=>{var s;const i=["performance","component-event","keyboard","mouse"];M.highPerfModeEnabled||!((s=M.timelineLayersState)!=null&&s[r.descriptor.id])&&!i.includes(o.layerId)||t.callHookWith(async l=>{await Promise.all(l.map(c=>c(o)))},"sendTimelineEventToClient")}),t.hook("getComponentInstances",async({app:o})=>{const r=o.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!r)return null;const s=r.id.toString();return[...r.instanceMap].filter(([i])=>i.split(":")[0]===s).map(([,i])=>i)}),t.hook("getComponentBounds",async({instance:o})=>mt(o)),t.hook("getComponentName",({instance:o})=>fe(o)),t.hook("componentHighlight",({uid:o})=>{const r=K.value.instanceMap.get(o);r&&jl(r)}),t.hook("componentUnhighlight",()=>{Xo()}),t}var rr;(rr=x).__VUE_DEVTOOLS_KIT_APP_RECORDS__!=null||(rr.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var sr;(sr=x).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__!=null||(sr.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var ir;(ir=x).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__!=null||(ir.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var ar;(ar=x).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__!=null||(ar.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var lr;(lr=x).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__!=null||(lr.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var gt="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function tc(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:ql()}}var cr;(cr=x)[gt]!=null||(cr[gt]=tc());var ec=Vt(t=>{$t.hooks.callHook("devtoolsStateUpdated",{state:t})});Vt((t,e)=>{$t.hooks.callHook("devtoolsConnectedUpdated",{state:t,oldState:e})});var ge=new Proxy(x.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(t,e,n){return e==="value"?x.__VUE_DEVTOOLS_KIT_APP_RECORDS__:x.__VUE_DEVTOOLS_KIT_APP_RECORDS__[e]}}),K=new Proxy(x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(t,e,n){return e==="value"?x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:e==="id"?x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[e]}});function ur(){ec({...x[gt],appRecords:ge.value,activeAppRecordId:K.id,tabs:x.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:x.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function nc(t){x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=t,ur()}function oc(t){x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=t,ur()}var M=new Proxy(x[gt],{get(t,e){return e==="appRecords"?ge:e==="activeAppRecordId"?K.id:e==="tabs"?x.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:e==="commands"?x.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:x[gt][e]},deleteProperty(t,e){return delete t[e],!0},set(t,e,n){return{...x[gt]},t[e]=n,x[gt][e]=n,!0}});function rc(t={}){var e,n,o;const{file:r,host:s,baseUrl:i=window.location.origin,line:l=0,column:c=0}=t;if(r){if(s==="chrome-extension"){const u=r.replace(/\\/g,"\\\\"),p=(n=(e=window.VUE_DEVTOOLS_CONFIG)==null?void 0:e.openInEditorHost)!=null?n:"/";fetch(`${p}__open-in-editor?file=${encodeURI(r)}`).then(d=>{if(!d.ok){const f=`Opening component ${u} failed`;console.log(`%c${f}`,"color:red")}})}else if(M.vitePluginDetected){const u=(o=x.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?o:i;x.__VUE_INSPECTOR__.openInEditor(u,r,l,c)}}}E(),E(),E(),E(),E();var dr;(dr=x).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__!=null||(dr.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var hn=new Proxy(x.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(t,e,n){return Reflect.get(t,e,n)}});function mn(t){const e={};return Object.keys(t).forEach(n=>{e[n]=t[n].defaultValue}),e}function gn(t){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${t}__`}function sc(t){var e,n,o;const r=(n=(e=hn.find(s=>{var i;return s[0].id===t&&!!((i=s[0])!=null&&i.settings)}))==null?void 0:e[0])!=null?n:null;return(o=r==null?void 0:r.settings)!=null?o:null}function fr(t,e){var n,o,r;const s=gn(t);if(s){const i=localStorage.getItem(s);if(i)return JSON.parse(i)}if(t){const i=(o=(n=hn.find(l=>l[0].id===t))==null?void 0:n[0])!=null?o:null;return mn((r=i==null?void 0:i.settings)!=null?r:{})}return mn(e)}function ic(t,e){const n=gn(t);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(mn(e)))}function ac(t,e,n){const o=gn(t),r=localStorage.getItem(o),s=JSON.parse(r||"{}"),i={...s,[e]:n};localStorage.setItem(o,JSON.stringify(i)),$t.hooks.callHookWith(l=>{l.forEach(c=>c({pluginId:t,key:e,oldValue:s[e],newValue:n,settings:i}))},"setPluginSettings")}E(),E(),E(),E(),E(),E(),E(),E(),E(),E(),E();var pr,hr,G=(hr=(pr=x).__VUE_DEVTOOLS_HOOK)!=null?hr:pr.__VUE_DEVTOOLS_HOOK=Bo(),lc={vueAppInit(t){G.hook("app:init",t)},vueAppUnmount(t){G.hook("app:unmount",t)},vueAppConnected(t){G.hook("app:connected",t)},componentAdded(t){return G.hook("component:added",t)},componentEmit(t){return G.hook("component:emit",t)},componentUpdated(t){return G.hook("component:updated",t)},componentRemoved(t){return G.hook("component:removed",t)},setupDevtoolsPlugin(t){G.hook("devtools-plugin:setup",t)},perfStart(t){return G.hook("perf:start",t)},perfEnd(t){return G.hook("perf:end",t)}},mr={on:lc,setupDevToolsPlugin(t,e){return G.callHook("devtools-plugin:setup",t,e)}},cc=class{constructor({plugin:t,ctx:e}){this.hooks=e.hooks,this.plugin=t}get on(){return{visitComponentTree:t=>{this.hooks.hook("visitComponentTree",t)},inspectComponent:t=>{this.hooks.hook("inspectComponent",t)},editComponentState:t=>{this.hooks.hook("editComponentState",t)},getInspectorTree:t=>{this.hooks.hook("getInspectorTree",t)},getInspectorState:t=>{this.hooks.hook("getInspectorState",t)},editInspectorState:t=>{this.hooks.hook("editInspectorState",t)},inspectTimelineEvent:t=>{this.hooks.hook("inspectTimelineEvent",t)},timelineCleared:t=>{this.hooks.hook("timelineCleared",t)},setPluginSettings:t=>{this.hooks.hook("setPluginSettings",t)}}}notifyComponentUpdate(t){var e;if(M.highPerfModeEnabled)return;const n=or().find(o=>o.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(t){const o=[t.appContext.app,t.uid,(e=t.parent)==null?void 0:e.uid,t];G.callHook("component:updated",...o)}else G.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(t){this.hooks.callHook("addInspector",{inspector:t,plugin:this.plugin}),this.plugin.descriptor.settings&&ic(t.id,this.plugin.descriptor.settings)}sendInspectorTree(t){M.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:t,plugin:this.plugin})}sendInspectorState(t){M.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:t,plugin:this.plugin})}selectInspectorNode(t,e){this.hooks.callHook("customInspectorSelectNode",{inspectorId:t,nodeId:e,plugin:this.plugin})}visitComponentTree(t){return this.hooks.callHook("visitComponentTree",t)}now(){return M.highPerfModeEnabled?0:Date.now()}addTimelineLayer(t){this.hooks.callHook("timelineLayerAdded",{options:t,plugin:this.plugin})}addTimelineEvent(t){M.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:t,plugin:this.plugin})}getSettings(t){return fr(t??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(t){return this.hooks.callHook("getComponentInstances",{app:t})}getComponentBounds(t){return this.hooks.callHook("getComponentBounds",{instance:t})}getComponentName(t){return this.hooks.callHook("getComponentName",{instance:t})}highlightElement(t){const e=t.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:e})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},uc=cc;E(),E(),E(),E();var dc="__vue_devtool_undefined__",fc="__vue_devtool_infinity__",pc="__vue_devtool_negative_infinity__",hc="__vue_devtool_nan__";E(),E();var mc={[dc]:"undefined",[hc]:"NaN",[fc]:"Infinity",[pc]:"-Infinity"};Object.entries(mc).reduce((t,[e,n])=>(t[n]=e,t),{}),E(),E(),E(),E(),E();var gr;(gr=x).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__!=null||(gr.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function _r(t,e){return mr.setupDevToolsPlugin(t,e)}function gc(t,e){const[n,o]=t;if(n.app!==e)return;const r=new uc({plugin:{setupFn:o,descriptor:n},ctx:$t});n.packageName==="vuex"&&r.on.editInspectorState(s=>{r.sendInspectorState(s.inspectorId)}),o(r)}function yr(t,e){x.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(t)||M.highPerfModeEnabled&&!(e!=null&&e.inspectingComponent)||(x.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(t),hn.forEach(n=>{gc(n,t)}))}E(),E();var qt="__VUE_DEVTOOLS_ROUTER__",Nt="__VUE_DEVTOOLS_ROUTER_INFO__",vr;(vr=x)[Nt]!=null||(vr[Nt]={currentRoute:null,routes:[]});var wr;(wr=x)[qt]!=null||(wr[qt]={}),new Proxy(x[Nt],{get(t,e){return x[Nt][e]}}),new Proxy(x[qt],{get(t,e){if(e==="value")return x[qt]}});function _c(t){const e=new Map;return((t==null?void 0:t.getRoutes())||[]).filter(n=>!e.has(n.path)&&e.set(n.path,1))}function _n(t){return t.map(e=>{let{path:n,name:o,children:r,meta:s}=e;return r!=null&&r.length&&(r=_n(r)),{path:n,name:o,children:r,meta:s}})}function yc(t){if(t){const{fullPath:e,hash:n,href:o,path:r,name:s,matched:i,params:l,query:c}=t;return{fullPath:e,hash:n,href:o,path:r,name:s,params:l,query:c,matched:_n(i)}}return t}function vc(t,e){function n(){var o;const r=(o=t.app)==null?void 0:o.config.globalProperties.$router,s=yc(r==null?void 0:r.currentRoute.value),i=_n(_c(r)),l=console.warn;console.warn=()=>{},x[Nt]={currentRoute:s?Lo(s):{},routes:Lo(i)},x[qt]=r,console.warn=l}n(),mr.on.componentUpdated(Vt(()=>{var o;((o=e.value)==null?void 0:o.app)===t.app&&(n(),!M.highPerfModeEnabled&&$t.hooks.callHook("routerInfoUpdated",{state:x[Nt]}))},200))}function wc(t){return{async getInspectorTree(e){const n={...e,app:K.value.app,rootNodes:[]};return await new Promise(o=>{t.callHookWith(async r=>{await Promise.all(r.map(s=>s(n))),o()},"getInspectorTree")}),n.rootNodes},async getInspectorState(e){const n={...e,app:K.value.app,state:null},o={currentTab:`custom-inspector:${e.inspectorId}`};return await new Promise(r=>{t.callHookWith(async s=>{await Promise.all(s.map(i=>i(n,o))),r()},"getInspectorState")}),n.state},editInspectorState(e){const n=new Wl,o={...e,app:K.value.app,set:(r,s=e.path,i=e.state.value,l)=>{n.set(r,s,i,l||n.createDefaultSetCallback(e.state))}};t.callHookWith(r=>{r.forEach(s=>s(o))},"editInspectorState")},sendInspectorState(e){const n=me(e);t.callHook("sendInspectorState",{inspectorId:e,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Bl()},cancelInspectComponentInspector(){return Ml()},getComponentRenderCode(e){const n=rn(K.value,e);if(n)return typeof(n==null?void 0:n.type)!="function"?n.render.toString():n.type.toString()},scrollToComponent(e){return Ul({id:e})},openInEditor:rc,getVueInspector:Kl,toggleApp(e,n){const o=ge.value.find(r=>r.id===e);o&&(oc(e),nc(o),vc(o,K),nr(),yr(o.app,n))},inspectDOM(e){const n=rn(K.value,e);if(n){const[o]=sn(n);o&&(x.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=o)}},updatePluginSettings(e,n,o){ac(e,n,o)},getPluginSettings(e){return{options:sc(e),values:fr(e)}}}}E();var br;(br=x).__VUE_DEVTOOLS_ENV__!=null||(br.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var Er=Ql(),kr;(kr=x).__VUE_DEVTOOLS_KIT_CONTEXT__!=null||(kr.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:Er,get state(){return{...M,activeAppRecordId:K.id,activeAppRecord:K.value,appRecords:ge.value}},api:wc(Er)});var $t=x.__VUE_DEVTOOLS_KIT_CONTEXT__;E(),bl(kl());var Sr;(Sr=x).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__!=null||(Sr.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),E(),E();function bc(t){M.highPerfModeEnabled=t??!M.highPerfModeEnabled,!t&&K.value&&yr(K.value.app)}E(),E(),E();function Ec(t){M.devtoolsClientDetected={...M.devtoolsClientDetected,...t};const e=Object.values(M.devtoolsClientDetected).some(Boolean);bc(!e)}var Or;(Or=x).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__!=null||(Or.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=Ec),E(),E(),E(),E(),E(),E(),E();var kc=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(t,e){this.keyToValue.set(t,e),this.valueToKey.set(e,t)}getByKey(t){return this.keyToValue.get(t)}getByValue(t){return this.valueToKey.get(t)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},Ir=class{constructor(t){this.generateIdentifier=t,this.kv=new kc}register(t,e){this.kv.getByValue(t)||(e||(e=this.generateIdentifier(t)),this.kv.set(e,t))}clear(){this.kv.clear()}getIdentifier(t){return this.kv.getByValue(t)}getValue(t){return this.kv.getByKey(t)}},Sc=class extends Ir{constructor(){super(t=>t.name),this.classToAllowedProps=new Map}register(t,e){typeof e=="object"?(e.allowProps&&this.classToAllowedProps.set(t,e.allowProps),super.register(t,e.identifier)):super.register(t,e)}getAllowedProps(t){return this.classToAllowedProps.get(t)}};E(),E();function Oc(t){if("values"in Object)return Object.values(t);const e=[];for(const n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e}function Ic(t,e){const n=Oc(t);if("find"in n)return n.find(e);const o=n;for(let r=0;r<o.length;r++){const s=o[r];if(e(s))return s}}function Pt(t,e){Object.entries(t).forEach(([n,o])=>e(o,n))}function _e(t,e){return t.indexOf(e)!==-1}function Tr(t,e){for(let n=0;n<t.length;n++){const o=t[n];if(e(o))return o}}var Tc=class{constructor(){this.transfomers={}}register(t){this.transfomers[t.name]=t}findApplicable(t){return Ic(this.transfomers,e=>e.isApplicable(t))}findByName(t){return this.transfomers[t]}};E(),E();var xc=t=>Object.prototype.toString.call(t).slice(8,-1),xr=t=>typeof t>"u",Vc=t=>t===null,Yt=t=>typeof t!="object"||t===null||t===Object.prototype?!1:Object.getPrototypeOf(t)===null?!0:Object.getPrototypeOf(t)===Object.prototype,yn=t=>Yt(t)&&Object.keys(t).length===0,ct=t=>Array.isArray(t),Cc=t=>typeof t=="string",Nc=t=>typeof t=="number"&&!isNaN(t),$c=t=>typeof t=="boolean",Pc=t=>t instanceof RegExp,Xt=t=>t instanceof Map,Zt=t=>t instanceof Set,Vr=t=>xc(t)==="Symbol",Rc=t=>t instanceof Date&&!isNaN(t.valueOf()),Dc=t=>t instanceof Error,Cr=t=>typeof t=="number"&&isNaN(t),Ac=t=>$c(t)||Vc(t)||xr(t)||Nc(t)||Cc(t)||Vr(t),jc=t=>typeof t=="bigint",Lc=t=>t===1/0||t===-1/0,Mc=t=>ArrayBuffer.isView(t)&&!(t instanceof DataView),Bc=t=>t instanceof URL;E();var Nr=t=>t.replace(/\./g,"\\."),vn=t=>t.map(String).map(Nr).join("."),Qt=t=>{const e=[];let n="";for(let r=0;r<t.length;r++){let s=t.charAt(r);if(s==="\\"&&t.charAt(r+1)==="."){n+=".",r++;continue}if(s==="."){e.push(n),n="";continue}n+=s}const o=n;return e.push(o),e};E();function tt(t,e,n,o){return{isApplicable:t,annotation:e,transform:n,untransform:o}}var $r=[tt(xr,"undefined",()=>null,()=>{}),tt(jc,"bigint",t=>t.toString(),t=>typeof BigInt<"u"?BigInt(t):(console.error("Please add a BigInt polyfill."),t)),tt(Rc,"Date",t=>t.toISOString(),t=>new Date(t)),tt(Dc,"Error",(t,e)=>{const n={name:t.name,message:t.message};return e.allowedErrorProps.forEach(o=>{n[o]=t[o]}),n},(t,e)=>{const n=new Error(t.message);return n.name=t.name,n.stack=t.stack,e.allowedErrorProps.forEach(o=>{n[o]=t[o]}),n}),tt(Pc,"regexp",t=>""+t,t=>{const e=t.slice(1,t.lastIndexOf("/")),n=t.slice(t.lastIndexOf("/")+1);return new RegExp(e,n)}),tt(Zt,"set",t=>[...t.values()],t=>new Set(t)),tt(Xt,"map",t=>[...t.entries()],t=>new Map(t)),tt(t=>Cr(t)||Lc(t),"number",t=>Cr(t)?"NaN":t>0?"Infinity":"-Infinity",Number),tt(t=>t===0&&1/t===-1/0,"number",()=>"-0",Number),tt(Bc,"URL",t=>t.toString(),t=>new URL(t))];function ye(t,e,n,o){return{isApplicable:t,annotation:e,transform:n,untransform:o}}var Pr=ye((t,e)=>Vr(t)?!!e.symbolRegistry.getIdentifier(t):!1,(t,e)=>["symbol",e.symbolRegistry.getIdentifier(t)],t=>t.description,(t,e,n)=>{const o=n.symbolRegistry.getValue(e[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),Uc=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((t,e)=>(t[e.name]=e,t),{}),Rr=ye(Mc,t=>["typed-array",t.constructor.name],t=>[...t],(t,e)=>{const n=Uc[e[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(t)});function Dr(t,e){return t!=null&&t.constructor?!!e.classRegistry.getIdentifier(t.constructor):!1}var Ar=ye(Dr,(t,e)=>["class",e.classRegistry.getIdentifier(t.constructor)],(t,e)=>{const n=e.classRegistry.getAllowedProps(t.constructor);if(!n)return{...t};const o={};return n.forEach(r=>{o[r]=t[r]}),o},(t,e,n)=>{const o=n.classRegistry.getValue(e[1]);if(!o)throw new Error(`Trying to deserialize unknown class '${e[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(o.prototype),t)}),jr=ye((t,e)=>!!e.customTransformerRegistry.findApplicable(t),(t,e)=>["custom",e.customTransformerRegistry.findApplicable(t).name],(t,e)=>e.customTransformerRegistry.findApplicable(t).serialize(t),(t,e,n)=>{const o=n.customTransformerRegistry.findByName(e[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(t)}),zc=[Ar,Pr,jr,Rr],Lr=(t,e)=>{const n=Tr(zc,r=>r.isApplicable(t,e));if(n)return{value:n.transform(t,e),type:n.annotation(t,e)};const o=Tr($r,r=>r.isApplicable(t,e));if(o)return{value:o.transform(t,e),type:o.annotation}},Mr={};$r.forEach(t=>{Mr[t.annotation]=t});var Hc=(t,e,n)=>{if(ct(e))switch(e[0]){case"symbol":return Pr.untransform(t,e,n);case"class":return Ar.untransform(t,e,n);case"custom":return jr.untransform(t,e,n);case"typed-array":return Rr.untransform(t,e,n);default:throw new Error("Unknown transformation: "+e)}else{const o=Mr[e];if(!o)throw new Error("Unknown transformation: "+e);return o.untransform(t,n)}};E();var Rt=(t,e)=>{if(e>t.size)throw new Error("index out of bounds");const n=t.keys();for(;e>0;)n.next(),e--;return n.next().value};function Br(t){if(_e(t,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(_e(t,"prototype"))throw new Error("prototype is not allowed as a property");if(_e(t,"constructor"))throw new Error("constructor is not allowed as a property")}var Kc=(t,e)=>{Br(e);for(let n=0;n<e.length;n++){const o=e[n];if(Zt(t))t=Rt(t,+o);else if(Xt(t)){const r=+o,s=+e[++n]==0?"key":"value",i=Rt(t,r);switch(s){case"key":t=i;break;case"value":t=t.get(i);break}}else t=t[o]}return t},wn=(t,e,n)=>{if(Br(e),e.length===0)return n(t);let o=t;for(let s=0;s<e.length-1;s++){const i=e[s];if(ct(o)){const l=+i;o=o[l]}else if(Yt(o))o=o[i];else if(Zt(o)){const l=+i;o=Rt(o,l)}else if(Xt(o)){if(s===e.length-2)break;const l=+i,c=+e[++s]==0?"key":"value",u=Rt(o,l);switch(c){case"key":o=u;break;case"value":o=o.get(u);break}}}const r=e[e.length-1];if(ct(o)?o[+r]=n(o[+r]):Yt(o)&&(o[r]=n(o[r])),Zt(o)){const s=Rt(o,+r),i=n(s);s!==i&&(o.delete(s),o.add(i))}if(Xt(o)){const s=+e[e.length-2],i=Rt(o,s);switch(+r==0?"key":"value"){case"key":{const l=n(i);o.set(l,o.get(i)),l!==i&&o.delete(i);break}case"value":{o.set(i,n(o.get(i)));break}}}return t};function bn(t,e,n=[]){if(!t)return;if(!ct(t)){Pt(t,(s,i)=>bn(s,e,[...n,...Qt(i)]));return}const[o,r]=t;r&&Pt(r,(s,i)=>{bn(s,e,[...n,...Qt(i)])}),e(o,n)}function Fc(t,e,n){return bn(e,(o,r)=>{t=wn(t,r,s=>Hc(s,o,n))}),t}function Wc(t,e){function n(o,r){const s=Kc(t,Qt(r));o.map(Qt).forEach(i=>{t=wn(t,i,()=>s)})}if(ct(e)){const[o,r]=e;o.forEach(s=>{t=wn(t,Qt(s),()=>t)}),r&&Pt(r,n)}else Pt(e,n);return t}var Gc=(t,e)=>Yt(t)||ct(t)||Xt(t)||Zt(t)||Dr(t,e);function Jc(t,e,n){const o=n.get(t);o?o.push(e):n.set(t,[e])}function qc(t,e){const n={};let o;return t.forEach(r=>{if(r.length<=1)return;e||(r=r.map(l=>l.map(String)).sort((l,c)=>l.length-c.length));const[s,...i]=r;s.length===0?o=i.map(vn):n[vn(s)]=i.map(vn)}),o?yn(n)?[o]:[o,n]:yn(n)?void 0:n}var Ur=(t,e,n,o,r=[],s=[],i=new Map)=>{var l;const c=Ac(t);if(!c){Jc(t,r,e);const m=i.get(t);if(m)return o?{transformedValue:null}:m}if(!Gc(t,n)){const m=Lr(t,n),_=m?{transformedValue:m.value,annotations:[m.type]}:{transformedValue:t};return c||i.set(t,_),_}if(_e(s,t))return{transformedValue:null};const u=Lr(t,n),p=(l=u==null?void 0:u.value)!=null?l:t,d=ct(p)?[]:{},f={};Pt(p,(m,_)=>{if(_==="__proto__"||_==="constructor"||_==="prototype")throw new Error(`Detected property ${_}. This is a prototype pollution risk, please remove it from your object.`);const g=Ur(m,e,n,o,[...r,_],[...s,t],i);d[_]=g.transformedValue,ct(g.annotations)?f[_]=g.annotations:Yt(g.annotations)&&Pt(g.annotations,(y,I)=>{f[Nr(_)+"."+I]=y})});const h=yn(f)?{transformedValue:d,annotations:u?[u.type]:void 0}:{transformedValue:d,annotations:u?[u.type,f]:f};return c||i.set(t,h),h};E(),E();function zr(t){return Object.prototype.toString.call(t).slice(8,-1)}function Hr(t){return zr(t)==="Array"}function Yc(t){if(zr(t)!=="Object")return!1;const e=Object.getPrototypeOf(t);return!!e&&e.constructor===Object&&e===Object.prototype}function Xc(t,e,n,o,r){const s={}.propertyIsEnumerable.call(o,e)?"enumerable":"nonenumerable";s==="enumerable"&&(t[e]=n),r&&s==="nonenumerable"&&Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}function En(t,e={}){if(Hr(t))return t.map(r=>En(r,e));if(!Yc(t))return t;const n=Object.getOwnPropertyNames(t),o=Object.getOwnPropertySymbols(t);return[...n,...o].reduce((r,s)=>{if(Hr(e.props)&&!e.props.includes(s))return r;const i=t[s],l=En(i,e);return Xc(r,s,l,t,e.nonenumerable),r},{})}var j=class{constructor({dedupe:t=!1}={}){this.classRegistry=new Sc,this.symbolRegistry=new Ir(e=>{var n;return(n=e.description)!=null?n:""}),this.customTransformerRegistry=new Tc,this.allowedErrorProps=[],this.dedupe=t}serialize(t){const e=new Map,n=Ur(t,e,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta={...o.meta,values:n.annotations});const r=qc(e,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(t){const{json:e,meta:n}=t;let o=En(e);return n!=null&&n.values&&(o=Fc(o,n.values,this)),n!=null&&n.referentialEqualities&&(o=Wc(o,n.referentialEqualities)),o}stringify(t){return JSON.stringify(this.serialize(t))}parse(t){return this.deserialize(JSON.parse(t))}registerClass(t,e){this.classRegistry.register(t,e)}registerSymbol(t,e){this.symbolRegistry.register(t,e)}registerCustom(t,e){this.customTransformerRegistry.register({name:e,...t})}allowErrorProps(...t){this.allowedErrorProps.push(...t)}};j.defaultInstance=new j,j.serialize=j.defaultInstance.serialize.bind(j.defaultInstance),j.deserialize=j.defaultInstance.deserialize.bind(j.defaultInstance),j.stringify=j.defaultInstance.stringify.bind(j.defaultInstance),j.parse=j.defaultInstance.parse.bind(j.defaultInstance),j.registerClass=j.defaultInstance.registerClass.bind(j.defaultInstance),j.registerSymbol=j.defaultInstance.registerSymbol.bind(j.defaultInstance),j.registerCustom=j.defaultInstance.registerCustom.bind(j.defaultInstance),j.allowErrorProps=j.defaultInstance.allowErrorProps.bind(j.defaultInstance),E(),E(),E(),E(),E(),E(),E(),E(),E(),E(),E(),E(),E(),E(),E(),E(),E(),E(),E(),E(),E(),E(),E();var Kr;(Kr=x).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__!=null||(Kr.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var Fr;(Fr=x).__VUE_DEVTOOLS_KIT_RPC_CLIENT__!=null||(Fr.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var Wr;(Wr=x).__VUE_DEVTOOLS_KIT_RPC_SERVER__!=null||(Wr.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var Gr;(Gr=x).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__!=null||(Gr.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var Jr;(Jr=x).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__!=null||(Jr.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var qr;(qr=x).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__!=null||(qr.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),E(),E(),E(),E(),E(),E(),E();/*!
1
+ (function(q,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(q=typeof globalThis<"u"?globalThis:q||self,a(q["@stonecrop/desktop"]={},q.Vue))})(this,function(q,a){"use strict";const ri={class:"action-menu-icon"},ii=["onclick"],ai={key:1},li=["onClick"],ci={class:"dropdown-container"},ui={class:"dropdown"},di=["onclick"],fi=["href"],pi={class:"dropdown-item"},hi=a.defineComponent({__name:"ActionSet",props:{elements:{}},setup(t){const e=a.ref(t.elements),n=a.ref(!1),o=a.ref(null),s=a.ref(!1),r=a.ref(!1);a.onMounted(()=>{i()});const i=()=>{for(const p of e.value)p.type==="dropdown"&&(p.show=!1)},l=()=>{s.value=!0,o.value=setTimeout(()=>{s.value&&(n.value=!0)},500)},c=()=>{s.value=!1,r.value=!1,clearTimeout(o.value),n.value=!1},u=p=>{const d=!e.value[p].show;i(),e.value[p].show=d};return(p,d)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"open-set":n.value,"hovered-and-closed":r.value},"action-set collapse"]),onMouseover:l,onMouseleave:c},[a.createElementVNode("div",ri,[a.createElementVNode("div",{id:"chevron",onClick:d[0]||(d[0]=f=>r.value=!r.value)},d[1]||(d[1]=[a.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[a.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),a.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[a.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),d[2]||(d[2]=a.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.value,(f,h)=>(a.openBlock(),a.createElementBlock("div",{class:"action-element",key:f.label},[f.type=="button"?(a.openBlock(),a.createElementBlock("button",{key:0,onclick:f.action,class:"button-default"},a.toDisplayString(f.label),9,ii)):a.createCommentVNode("",!0),f.type=="dropdown"?(a.openBlock(),a.createElementBlock("div",ai,[a.createElementVNode("button",{class:"button-default",onClick:m=>u(h)},a.toDisplayString(f.label),9,li),a.withDirectives(a.createElementVNode("div",ci,[a.createElementVNode("div",ui,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.actions,m=>(a.openBlock(),a.createElementBlock("div",{key:m.label},[m.action!=null?(a.openBlock(),a.createElementBlock("button",{key:0,onclick:m.action,class:"dropdown-item"},a.toDisplayString(m.label),9,di)):m.link!=null?(a.openBlock(),a.createElementBlock("a",{key:1,href:m.link},[a.createElementVNode("button",pi,a.toDisplayString(m.label),1)],8,fi)):a.createCommentVNode("",!0)]))),128))])],512),[[a.vShow,f.show]])])):a.createCommentVNode("",!0)]))),128))],34))}}),Xn=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},Zn=Xn(hi,[["__scopeId","data-v-38e7af34"]]),mi={class:"command-palette-header"},gi=["placeholder"],_i={key:0,class:"command-palette-results"},yi=["onClick","onMouseover"],vi={class:"result-title"},wi={class:"result-content"},Ei={key:1,class:"command-palette-no-results"},Qn=a.defineComponent({__name:"CommandPalette",props:{search:{type:Function},isOpen:{type:Boolean,default:!1},placeholder:{default:"Type a command or search..."},maxResults:{default:10}},emits:["select","close"],setup(t,{emit:e}){const n=e,o=a.ref(""),s=a.ref(0),r=a.useTemplateRef("input"),i=a.computed(()=>o.value?t.search(o.value).slice(0,t.maxResults):[]);a.watch(()=>t.isOpen,async p=>{var d;p&&(o.value="",s.value=0,await a.nextTick(),(d=r.value)==null||d.focus())}),a.watch(i,()=>{s.value=0});const l=()=>{n("close")},c=p=>{switch(p.key){case"Escape":l();break;case"ArrowDown":p.preventDefault(),i.value.length&&(s.value=(s.value+1)%i.value.length);break;case"ArrowUp":p.preventDefault(),i.value.length&&(s.value=(s.value-1+i.value.length)%i.value.length);break;case"Enter":i.value.length&&s.value>=0&&u(i.value[s.value]);break}},u=p=>{n("select",p),l()};return(p,d)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[p.isOpen?(a.openBlock(),a.createElementBlock("div",{key:0,class:"command-palette-overlay",onClick:l},[a.createElementVNode("div",{class:"command-palette",onClick:d[1]||(d[1]=a.withModifiers(()=>{},["stop"]))},[a.createElementVNode("div",mi,[a.withDirectives(a.createElementVNode("input",{ref:"input","onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f),type:"text",class:"command-palette-input",placeholder:p.placeholder,autofocus:"",onKeydown:c},null,40,gi),[[a.vModelText,o.value]])]),i.value.length?(a.openBlock(),a.createElementBlock("div",_i,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(f,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:a.normalizeClass(["command-palette-result",{selected:h===s.value}]),onClick:m=>u(f),onMouseover:m=>s.value=h},[a.createElementVNode("div",vi,[a.renderSlot(p.$slots,"title",{result:f})]),a.createElementVNode("div",wi,[a.renderSlot(p.$slots,"content",{result:f})])],42,yi))),128))])):o.value&&!i.value.length?(a.openBlock(),a.createElementBlock("div",Ei,[a.renderSlot(p.$slots,"empty",{},()=>[a.createTextVNode(' No results found for "'+a.toDisplayString(o.value)+'" ',1)])])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)]),_:3})]))}}),bi=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n};function to(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}const eo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ki=Object.prototype.toString,Si=t=>ki.call(t)==="[object Object]",Oi=()=>{},no=Ii();function Ii(){var t,e;return eo&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Ti(...t){if(t.length!==1)return a.toRef(...t);const e=t[0];return typeof e=="function"?a.readonly(a.customRef(()=>({get:e,set:Oi}))):a.ref(e)}function Pe(t){return Array.isArray(t)?t:[t]}function xi(t,e,n){return a.watch(t,e,{...n,immediate:!0})}const Vi=eo?window:void 0;function Ci(t){var e;const n=a.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function Ni(...t){const e=[],n=()=>{e.forEach(l=>l()),e.length=0},o=(l,c,u,p)=>(l.addEventListener(c,u,p),()=>l.removeEventListener(c,u,p)),s=a.computed(()=>{const l=Pe(a.toValue(t[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),r=xi(()=>{var l,c;return[(c=(l=s.value)==null?void 0:l.map(u=>Ci(u)))!=null?c:[Vi].filter(u=>u!=null),Pe(a.toValue(s.value?t[1]:t[0])),Pe(a.unref(s.value?t[2]:t[1])),a.toValue(s.value?t[3]:t[2])]},([l,c,u,p])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=Si(p)?{...p}:p;e.push(...l.flatMap(f=>c.flatMap(h=>u.map(m=>o(f,h,m,d)))))},{flush:"post"}),i=()=>{r(),n()};return to(n),i}function Re(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}function oo(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth<t.scrollWidth||e.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const n=t.parentNode;return!n||n.tagName==="BODY"?!1:oo(n)}}function $i(t){const e=t||window.event,n=e.target;return oo(n)?!1:e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)}const De=new WeakMap;function Pi(t,e=!1){const n=a.shallowRef(e);let o=null,s="";a.watch(Ti(t),l=>{const c=Re(a.toValue(l));if(c){const u=c;if(De.get(u)||De.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=Re(a.toValue(t));!l||n.value||(no&&(o=Ni(l,"touchmove",c=>{$i(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},i=()=>{const l=Re(a.toValue(t));!l||!n.value||(no&&(o==null||o()),l.style.overflow=s,De.delete(l),n.value=!1)};return to(i),a.computed({get(){return n.value},set(l){l?r():i()}})}function Ri(){let t=!1;const e=a.shallowRef(!1);return(n,o)=>{if(e.value=o.value,t)return;t=!0;const s=Pi(n,o.value);a.watch(e,r=>s.value=r)}}Ri(),typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Di={class:"aform"},Ai=a.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,o=a.ref(t.data||{}),s=i=>{let l={};for(const[c,u]of Object.entries(i))["component","fieldtype"].includes(c)||(l[c]=u),c==="rows"&&u&&u.length===0&&(l.rows=o.value[i.fieldname]);return l},r=a.computed({get:()=>t.modelValue.map((i,l)=>a.computed({get(){return i.value},set:c=>{t.modelValue[l].value=c,n("update:modelValue",t.modelValue)}})),set:()=>{}});return(i,l)=>(a.openBlock(),a.createElementBlock("form",Di,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.modelValue,(c,u)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.component),a.mergeProps({key:u,schema:c,modelValue:r.value[u].value,"onUpdate:modelValue":p=>r.value[u].value=p,data:o.value[c.fieldname],readonly:i.readonly},{ref_for:!0},s(c)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),ji=bi(Ai,[["__scopeId","data-v-68845234"]]);var Li=Object.defineProperty,Mi=(t,e,n)=>e in t?Li(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,X=(t,e,n)=>Mi(t,typeof e!="symbol"?e+"":e,n);function Bi(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function Ui(){const t=Bi();if(t.__xstate__)return t.__xstate__}const zi=t=>{if(typeof window>"u")return;const e=Ui();e&&e.register(t)};class so{constructor(e){this._process=e,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(e){const n={value:e,next:null};if(this._current){this._last.next=n,this._last=n;return}this._current=n,this._last=n,this._active&&this.flush()}flush(){for(;this._current;){const e=this._current;this._process(e.value),this._current=e.next}this._last=null}}const ro=".",Hi="",io="",Ki="#",Fi="*",ao="xstate.init",Ae="xstate.stop";function Wi(t,e){return{type:`xstate.after.${t}.${e}`}}function je(t,e){return{type:`xstate.done.state.${t}`,output:e}}function Gi(t,e){return{type:`xstate.done.actor.${t}`,output:e,actorId:t}}function Ji(t,e){return{type:`xstate.error.actor.${t}`,error:e,actorId:t}}function lo(t){return{type:ao,input:t}}function ot(t){setTimeout(()=>{throw t})}const Yi=typeof Symbol=="function"&&Symbol.observable||"@@observable";function co(t,e){const n=uo(t),o=uo(e);return typeof o=="string"?typeof n=="string"?o===n:!1:typeof n=="string"?n in o:Object.keys(n).every(s=>s in o?co(n[s],o[s]):!1)}function Le(t){if(ho(t))return t;const e=[];let n="";for(let o=0;o<t.length;o++){switch(t.charCodeAt(o)){case 92:n+=t[o+1],o++;continue;case 46:e.push(n),n="";continue}n+=t[o]}return e.push(n),e}function uo(t){if(Va(t))return t.value;if(typeof t!="string")return t;const e=Le(t);return qi(e)}function qi(t){if(t.length===1)return t[0];const e={};let n=e;for(let o=0;o<t.length-1;o++)if(o===t.length-2)n[t[o]]=t[o+1];else{const s=n;n={},s[t[o]]=n}return e}function fo(t,e){const n={},o=Object.keys(t);for(let s=0;s<o.length;s++){const r=o[s];n[r]=e(t[r],r,t,s)}return n}function po(t){return ho(t)?t:[t]}function lt(t){return t===void 0?[]:po(t)}function Me(t,e,n,o){return typeof t=="function"?t({context:e,event:n,self:o}):t}function ho(t){return Array.isArray(t)}function Xi(t){return t.type.startsWith("xstate.error.actor")}function Ot(t){return po(t).map(e=>typeof e>"u"||typeof e=="string"?{target:e}:e)}function mo(t){if(!(t===void 0||t===Hi))return lt(t)}function Be(t,e,n){var o,s,r;const i=typeof t=="object",l=i?t:void 0;return{next:(o=i?t.next:t)==null?void 0:o.bind(l),error:(s=i?t.error:e)==null?void 0:s.bind(l),complete:(r=i?t.complete:n)==null?void 0:r.bind(l)}}function go(t,e){return`${e}.${t}`}function Ue(t,e){const n=e.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return t.implementations.actors[e];const[,o,s]=n,r=t.getStateNodeById(s).config.invoke;return(Array.isArray(r)?r[o]:r).src}function _o(t,e){return`${t.sessionId}.${e}`}let Zi=0;function Qi(t,e){const n=new Map,o=new Map,s=new WeakMap,r=new Set,i={},{clock:l,logger:c}=e,u={schedule:(f,h,m,_,g=Math.random().toString(36).slice(2))=>{const v={source:f,target:h,event:m,delay:_,id:g,startedAt:Date.now()},I=_o(f,g);d._snapshot._scheduledEvents[I]=v;const V=l.setTimeout(()=>{delete i[I],delete d._snapshot._scheduledEvents[I],d._relay(f,h,m)},_);i[I]=V},cancel:(f,h)=>{const m=_o(f,h),_=i[m];delete i[m],delete d._snapshot._scheduledEvents[m],_!==void 0&&l.clearTimeout(_)},cancelAll:f=>{for(const h in d._snapshot._scheduledEvents){const m=d._snapshot._scheduledEvents[h];m.source===f&&u.cancel(f,m.id)}}},p=f=>{if(!r.size)return;const h={...f,rootId:t.sessionId};r.forEach(m=>{var _;return(_=m.next)==null?void 0:_.call(m,h)})},d={_snapshot:{_scheduledEvents:((e==null?void 0:e.snapshot)&&e.snapshot.scheduler)??{}},_bookId:()=>`x:${Zi++}`,_register:(f,h)=>(n.set(f,h),f),_unregister:f=>{n.delete(f.sessionId);const h=s.get(f);h!==void 0&&(o.delete(h),s.delete(f))},get:f=>o.get(f),_set:(f,h)=>{const m=o.get(f);if(m&&m!==h)throw new Error(`Actor with system ID '${f}' already exists.`);o.set(f,h),s.set(h,f)},inspect:f=>{const h=Be(f);return r.add(h),{unsubscribe(){r.delete(h)}}},_sendInspectionEvent:p,_relay:(f,h,m)=>{d._sendInspectionEvent({type:"@xstate.event",sourceRef:f,actorRef:h,event:m}),h._send(m)},scheduler:u,getSnapshot:()=>({_scheduledEvents:{...d._snapshot._scheduledEvents}}),start:()=>{const f=d._snapshot._scheduledEvents;d._snapshot._scheduledEvents={};for(const h in f){const{source:m,target:_,event:g,delay:v,id:I}=f[h];u.schedule(m,_,g,v,I)}},_clock:l,_logger:c};return d}let ze=!1;const He=1;let W=function(t){return t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped",t}({});const ta={clock:{setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t)},logger:console.log.bind(console),devTools:!1};class ea{constructor(e,n){this.logic=e,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new so(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=W.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this._systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const o={...ta,...n},{clock:s,logger:r,parent:i,syncSnapshot:l,id:c,systemId:u,inspect:p}=o;this.system=i?i.system:Qi(this,{clock:s,logger:r}),p&&!i&&this.system.inspect(Be(p)),this.sessionId=this.system._bookId(),this.id=c??this.sessionId,this.logger=(n==null?void 0:n.logger)??this.system._logger,this.clock=(n==null?void 0:n.clock)??this.system._clock,this._parent=i,this._syncSnapshot=l,this.options=o,this.src=o.src??e,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:d=>{this._deferred.push(d)},system:this.system,stopChild:d=>{if(d._parent!==this)throw new Error(`Cannot stop child actor ${d.id} of ${this.id} because it is not a child`);d._stop()},emit:d=>{const f=this.eventListeners.get(d.type),h=this.eventListeners.get("*");if(!f&&!h)return;const m=[...f?f.values():[],...h?h.values():[]];for(const _ of m)_(d)},actionExecutor:d=>{const f=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:d.type,params:d.params}}),!d.exec)return;const h=ze;try{ze=!0,d.exec(d.info,d.params)}finally{ze=h}};this._processingStatus===W.Running?f():this._deferred.push(f)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),u&&(this._systemId=u,this.system._set(u,this)),this._initState((n==null?void 0:n.snapshot)??(n==null?void 0:n.state)),u&&this._snapshot.status!=="active"&&this.system._unregister(this)}_initState(e){var n;try{this._snapshot=e?this.logic.restoreSnapshot?this.logic.restoreSnapshot(e,this._actorScope):e:this.logic.getInitialSnapshot(this._actorScope,(n=this.options)==null?void 0:n.input)}catch(o){this._snapshot={status:"error",output:void 0,error:o}}}update(e,n){var o,s;this._snapshot=e;let r;for(;r=this._deferred.shift();)try{r()}catch(i){this._deferred.length=0,this._snapshot={...e,status:"error",error:i}}switch(this._snapshot.status){case"active":for(const i of this.observers)try{(o=i.next)==null||o.call(i,e)}catch(l){ot(l)}break;case"done":for(const i of this.observers)try{(s=i.next)==null||s.call(i,e)}catch(l){ot(l)}this._stopProcedure(),this._complete(),this._doneEvent=Gi(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:n,snapshot:e})}subscribe(e,n,o){var s;const r=Be(e,n,o);if(this._processingStatus!==W.Stopped)this.observers.add(r);else switch(this._snapshot.status){case"done":try{(s=r.complete)==null||s.call(r)}catch(i){ot(i)}break;case"error":{const i=this._snapshot.error;if(!r.error)ot(i);else try{r.error(i)}catch(l){ot(l)}break}}return{unsubscribe:()=>{this.observers.delete(r)}}}on(e,n){let o=this.eventListeners.get(e);o||(o=new Set,this.eventListeners.set(e,o));const s=n.bind(void 0);return o.add(s),{unsubscribe:()=>{o.delete(s)}}}start(){if(this._processingStatus===W.Running)return this;this._syncSnapshot&&this.subscribe({next:n=>{n.status==="active"&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:n})},error:()=>{}}),this.system._register(this.sessionId,this),this._systemId&&this.system._set(this._systemId,this),this._processingStatus=W.Running;const e=lo(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:e}),this._snapshot.status){case"done":return this.update(this._snapshot,e),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(n){return this._snapshot={...this._snapshot,status:"error",error:n},this._error(n),this}return this.update(this._snapshot,e),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(e){let n,o;try{n=this.logic.transition(this._snapshot,e,this._actorScope)}catch(s){o={err:s}}if(o){const{err:s}=o;this._snapshot={...this._snapshot,status:"error",error:s},this._error(s);return}this.update(n,e),e.type===Ae&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===W.Stopped?this:(this.mailbox.clear(),this._processingStatus===W.NotStarted?(this._processingStatus=W.Stopped,this):(this.mailbox.enqueue({type:Ae}),this))}stop(){if(this._parent)throw new Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){var e;for(const n of this.observers)try{(e=n.complete)==null||e.call(n)}catch(o){ot(o)}this.observers.clear()}_reportError(e){if(!this.observers.size){this._parent||ot(e);return}let n=!1;for(const o of this.observers){const s=o.error;n||(n=!s);try{s==null||s(e)}catch(r){ot(r)}}this.observers.clear(),n&&ot(e)}_error(e){this._stopProcedure(),this._reportError(e),this._parent&&this.system._relay(this,this._parent,Ji(this.id,e))}_stopProcedure(){return this._processingStatus!==W.Running?this:(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new so(this._process.bind(this)),this._processingStatus=W.Stopped,this.system._unregister(this),this)}_send(e){this._processingStatus!==W.Stopped&&this.mailbox.enqueue(e)}send(e){this.system._relay(void 0,this,e)}attachDevTools(){const{devTools:e}=this.options;e&&(typeof e=="function"?e:zi)(this)}toJSON(){return{xstate$$type:He,id:this.id}}getPersistedSnapshot(e){return this.logic.getPersistedSnapshot(this._snapshot,e)}[Yi](){return this}getSnapshot(){return this._snapshot}}function Ft(t,...[e]){return new ea(t,e)}function na(t,e,n,o,{sendId:s}){const r=typeof s=="function"?s(n,o):s;return[e,{sendId:r},void 0]}function oa(t,e){t.defer(()=>{t.system.scheduler.cancel(t.self,e.sendId)})}function sa(t){function e(n,o){}return e.type="xstate.cancel",e.sendId=t,e.resolve=na,e.execute=oa,e}function ra(t,e,n,o,{id:s,systemId:r,src:i,input:l,syncSnapshot:c}){const u=typeof i=="string"?Ue(e.machine,i):i,p=typeof s=="function"?s(n):s;let d,f;return u&&(f=typeof l=="function"?l({context:e.context,event:n.event,self:t.self}):l,d=Ft(u,{id:p,src:i,parent:t.self,syncSnapshot:c,systemId:r,input:f})),[mt(e,{children:{...e.children,[p]:d}}),{id:s,systemId:r,actorRef:d,src:i,input:f},void 0]}function ia(t,{actorRef:e}){e&&t.defer(()=>{e._processingStatus!==W.Stopped&&e.start()})}function aa(...[t,{id:e,systemId:n,input:o,syncSnapshot:s=!1}={}]){function r(i,l){}return r.type="xstate.spawnChild",r.id=e,r.systemId=n,r.src=t,r.input=o,r.syncSnapshot=s,r.resolve=ra,r.execute=ia,r}function la(t,e,n,o,{actorRef:s}){const r=typeof s=="function"?s(n,o):s,i=typeof r=="string"?e.children[r]:r;let l=e.children;return i&&(l={...l},delete l[i.id]),[mt(e,{children:l}),i,void 0]}function ca(t,e){if(e){if(t.system._unregister(e),e._processingStatus!==W.Running){t.stopChild(e);return}t.defer(()=>{t.stopChild(e)})}}function yo(t){function e(n,o){}return e.type="xstate.stopChild",e.actorRef=t,e.resolve=la,e.execute=ca,e}function Ke(t,e,n,o){const{machine:s}=o,r=typeof t=="function",i=r?t:s.implementations.guards[typeof t=="string"?t:t.type];if(!r&&!i)throw new Error(`Guard '${typeof t=="string"?t:t.type}' is not implemented.'.`);if(typeof i!="function")return Ke(i,e,n,o);const l={context:e,event:n},c=r||typeof t=="string"?void 0:"params"in t?typeof t.params=="function"?t.params({context:e,event:n}):t.params:void 0;return"check"in i?i.check(o,l,i):i(l,c)}const Fe=t=>t.type==="atomic"||t.type==="final";function It(t){return Object.values(t.states).filter(e=>e.type!=="history")}function Wt(t,e){const n=[];if(e===t)return n;let o=t.parent;for(;o&&o!==e;)n.push(o),o=o.parent;return n}function le(t){const e=new Set(t),n=wo(e);for(const o of e)if(o.type==="compound"&&(!n.get(o)||!n.get(o).length))ko(o).forEach(s=>e.add(s));else if(o.type==="parallel"){for(const s of It(o))if(s.type!=="history"&&!e.has(s)){const r=ko(s);for(const i of r)e.add(i)}}for(const o of e){let s=o.parent;for(;s;)e.add(s),s=s.parent}return e}function vo(t,e){const n=e.get(t);if(!n)return{};if(t.type==="compound"){const s=n[0];if(s){if(Fe(s))return s.key}else return{}}const o={};for(const s of n)o[s.key]=vo(s,e);return o}function wo(t){const e=new Map;for(const n of t)e.has(n)||e.set(n,[]),n.parent&&(e.has(n.parent)||e.set(n.parent,[]),e.get(n.parent).push(n));return e}function Eo(t,e){const n=le(e);return vo(t,wo(n))}function We(t,e){return e.type==="compound"?It(e).some(n=>n.type==="final"&&t.has(n)):e.type==="parallel"?It(e).every(n=>We(t,n)):e.type==="final"}const ce=t=>t[0]===Ki;function ua(t,e){return t.transitions.get(e)||[...t.transitions.keys()].filter(n=>{if(n===Fi)return!0;if(!n.endsWith(".*"))return!1;const o=n.split("."),s=e.split(".");for(let r=0;r<o.length;r++){const i=o[r],l=s[r];if(i==="*")return r===o.length-1;if(i!==l)return!1}return!0}).sort((n,o)=>o.length-n.length).flatMap(n=>t.transitions.get(n))}function da(t){const e=t.config.after;if(!e)return[];const n=o=>{const s=Wi(o,t.id),r=s.type;return t.entry.push(Ma(s,{id:r,delay:o})),t.exit.push(sa(r)),r};return Object.keys(e).flatMap(o=>{const s=e[o],r=typeof s=="string"?{target:s}:s,i=Number.isNaN(+o)?o:+o,l=n(i);return lt(r).map(c=>({...c,event:l,delay:i}))}).map(o=>{const{delay:s}=o;return{...pt(t,o.event,o),delay:s}})}function pt(t,e,n){const o=mo(n.target),s=n.reenter??!1,r=ha(t,o),i={...n,actions:lt(n.actions),guard:n.guard,target:r,source:t,reenter:s,eventType:e,toJSON:()=>({...i,source:`#${t.id}`,target:r?r.map(l=>`#${l.id}`):void 0})};return i}function fa(t){const e=new Map;if(t.config.on)for(const n of Object.keys(t.config.on)){if(n===io)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const o=t.config.on[n];e.set(n,Ot(o).map(s=>pt(t,n,s)))}if(t.config.onDone){const n=`xstate.done.state.${t.id}`;e.set(n,Ot(t.config.onDone).map(o=>pt(t,n,o)))}for(const n of t.invoke){if(n.onDone){const o=`xstate.done.actor.${n.id}`;e.set(o,Ot(n.onDone).map(s=>pt(t,o,s)))}if(n.onError){const o=`xstate.error.actor.${n.id}`;e.set(o,Ot(n.onError).map(s=>pt(t,o,s)))}if(n.onSnapshot){const o=`xstate.snapshot.${n.id}`;e.set(o,Ot(n.onSnapshot).map(s=>pt(t,o,s)))}}for(const n of t.after){let o=e.get(n.eventType);o||(o=[],e.set(n.eventType,o)),o.push(n)}return e}function pa(t,e){const n=typeof e=="string"?t.states[e]:e?t.states[e.target]:void 0;if(!n&&e)throw new Error(`Initial state node "${e}" not found on parent state node #${t.id}`);const o={source:t,actions:!e||typeof e=="string"?[]:lt(e.actions),eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...o,source:`#${t.id}`,target:n?[`#${n.id}`]:[]})};return o}function ha(t,e){if(e!==void 0)return e.map(n=>{if(typeof n!="string")return n;if(ce(n))return t.machine.getStateNodeById(n);const o=n[0]===ro;if(o&&!t.parent)return ue(t,n.slice(1));const s=o?t.key+n:n;if(t.parent)try{return ue(t.parent,s)}catch(r){throw new Error(`Invalid transition definition for state node '${t.id}':
2
+ ${r.message}`)}else throw new Error(`Invalid target: "${n}" is not a valid target from the root node. Did you mean ".${n}"?`)})}function bo(t){const e=mo(t.config.target);return e?{target:e.map(n=>typeof n=="string"?ue(t.parent,n):n)}:t.parent.initial}function ht(t){return t.type==="history"}function ko(t){const e=So(t);for(const n of e)for(const o of Wt(n,t))e.add(o);return e}function So(t){const e=new Set;function n(o){if(!e.has(o)){if(e.add(o),o.type==="compound")n(o.initial.target[0]);else if(o.type==="parallel")for(const s of It(o))n(s)}}return n(t),e}function Tt(t,e){if(ce(e))return t.machine.getStateNodeById(e);if(!t.states)throw new Error(`Unable to retrieve child state '${e}' from '${t.id}'; no child states exist.`);const n=t.states[e];if(!n)throw new Error(`Child state '${e}' does not exist on '${t.id}'`);return n}function ue(t,e){if(typeof e=="string"&&ce(e))try{return t.machine.getStateNodeById(e)}catch{}const n=Le(e).slice();let o=t;for(;n.length;){const s=n.shift();if(!s.length)break;o=Tt(o,s)}return o}function de(t,e){if(typeof e=="string"){const s=t.states[e];if(!s)throw new Error(`State '${e}' does not exist on '${t.id}'`);return[t,s]}const n=Object.keys(e),o=n.map(s=>Tt(t,s)).filter(Boolean);return[t.machine.root,t].concat(o,n.reduce((s,r)=>{const i=Tt(t,r);if(!i)return s;const l=de(i,e[r]);return s.concat(l)},[]))}function ma(t,e,n,o){const s=Tt(t,e).next(n,o);return!s||!s.length?t.next(n,o):s}function ga(t,e,n,o){const s=Object.keys(e),r=Tt(t,s[0]),i=Ge(r,e[s[0]],n,o);return!i||!i.length?t.next(n,o):i}function _a(t,e,n,o){const s=[];for(const r of Object.keys(e)){const i=e[r];if(!i)continue;const l=Tt(t,r),c=Ge(l,i,n,o);c&&s.push(...c)}return s.length?s:t.next(n,o)}function Ge(t,e,n,o){return typeof e=="string"?ma(t,e,n,o):Object.keys(e).length===1?ga(t,e,n,o):_a(t,e,n,o)}function ya(t){return Object.keys(t.states).map(e=>t.states[e]).filter(e=>e.type==="history")}function ct(t,e){let n=t;for(;n.parent&&n.parent!==e;)n=n.parent;return n.parent===e}function va(t,e){const n=new Set(t),o=new Set(e);for(const s of n)if(o.has(s))return!0;for(const s of o)if(n.has(s))return!0;return!1}function Oo(t,e,n){const o=new Set;for(const s of t){let r=!1;const i=new Set;for(const l of o)if(va(Ye([s],e,n),Ye([l],e,n)))if(ct(s.source,l.source))i.add(l);else{r=!0;break}if(!r){for(const l of i)o.delete(l);o.add(s)}}return Array.from(o)}function wa(t){const[e,...n]=t;for(const o of Wt(e,void 0))if(n.every(s=>ct(s,o)))return o}function Je(t,e){if(!t.target)return[];const n=new Set;for(const o of t.target)if(ht(o))if(e[o.id])for(const s of e[o.id])n.add(s);else for(const s of Je(bo(o),e))n.add(s);else n.add(o);return[...n]}function Io(t,e){const n=Je(t,e);if(!n)return;if(!t.reenter&&n.every(s=>s===t.source||ct(s,t.source)))return t.source;const o=wa(n.concat(t.source));if(o)return o;if(!t.reenter)return t.source.machine.root}function Ye(t,e,n){var o;const s=new Set;for(const r of t)if((o=r.target)!=null&&o.length){const i=Io(r,n);r.reenter&&r.source===i&&s.add(i);for(const l of e)ct(l,i)&&s.add(l)}return[...s]}function Ea(t,e){if(t.length!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0}function qe(t,e,n,o,s,r){if(!t.length)return e;const i=new Set(e._nodes);let l=e.historyValue;const c=Oo(t,i,l);let u=e;s||([u,l]=Oa(u,o,n,c,i,l,r,n.actionExecutor)),u=Vt(u,o,n,c.flatMap(d=>d.actions),r,void 0),u=ka(u,o,n,c,i,r,l,s);const p=[...i];u.status==="done"&&(u=Vt(u,o,n,p.sort((d,f)=>f.order-d.order).flatMap(d=>d.exit),r,void 0));try{return l===e.historyValue&&Ea(e._nodes,i)?u:mt(u,{_nodes:p,historyValue:l})}catch(d){throw d}}function ba(t,e,n,o,s){if(o.output===void 0)return;const r=je(s.id,s.output!==void 0&&s.parent?Me(s.output,t.context,e,n.self):void 0);return Me(o.output,t.context,r,n.self)}function ka(t,e,n,o,s,r,i,l){let c=t;const u=new Set,p=new Set;Sa(o,i,p,u),l&&p.add(t.machine.root);const d=new Set;for(const f of[...u].sort((h,m)=>h.order-m.order)){s.add(f);const h=[];h.push(...f.entry);for(const m of f.invoke)h.push(aa(m.src,{...m,syncSnapshot:!!m.onSnapshot}));if(p.has(f)){const m=f.initial.actions;h.push(...m)}if(c=Vt(c,e,n,h,r,f.invoke.map(m=>m.id)),f.type==="final"){const m=f.parent;let _=(m==null?void 0:m.type)==="parallel"?m:m==null?void 0:m.parent,g=_||f;for((m==null?void 0:m.type)==="compound"&&r.push(je(m.id,f.output!==void 0?Me(f.output,c.context,e,n.self):void 0));(_==null?void 0:_.type)==="parallel"&&!d.has(_)&&We(s,_);)d.add(_),r.push(je(_.id)),g=_,_=_.parent;if(_)continue;c=mt(c,{status:"done",output:ba(c,e,n,c.machine.root,g)})}}return c}function Sa(t,e,n,o){for(const s of t){const r=Io(s,e);for(const l of s.target||[])!ht(l)&&(s.source!==l||s.source!==r||s.reenter)&&(o.add(l),n.add(l)),xt(l,e,n,o);const i=Je(s,e);for(const l of i){const c=Wt(l,r);(r==null?void 0:r.type)==="parallel"&&c.push(r),To(o,e,n,c,!s.source.parent&&s.reenter?void 0:r)}}}function xt(t,e,n,o){var s;if(ht(t))if(e[t.id]){const r=e[t.id];for(const i of r)o.add(i),xt(i,e,n,o);for(const i of r)Xe(i,t.parent,o,e,n)}else{const r=bo(t);for(const i of r.target)o.add(i),r===((s=t.parent)==null?void 0:s.initial)&&n.add(t.parent),xt(i,e,n,o);for(const i of r.target)Xe(i,t.parent,o,e,n)}else if(t.type==="compound"){const[r]=t.initial.target;ht(r)||(o.add(r),n.add(r)),xt(r,e,n,o),Xe(r,t,o,e,n)}else if(t.type==="parallel")for(const r of It(t).filter(i=>!ht(i)))[...o].some(i=>ct(i,r))||(ht(r)||(o.add(r),n.add(r)),xt(r,e,n,o))}function To(t,e,n,o,s){for(const r of o)if((!s||ct(r,s))&&t.add(r),r.type==="parallel")for(const i of It(r).filter(l=>!ht(l)))[...t].some(l=>ct(l,i))||(t.add(i),xt(i,e,n,t))}function Xe(t,e,n,o,s){To(n,o,s,Wt(t,e))}function Oa(t,e,n,o,s,r,i,l){let c=t;const u=Ye(o,s,r);u.sort((d,f)=>f.order-d.order);let p;for(const d of u)for(const f of ya(d)){let h;f.history==="deep"?h=m=>Fe(m)&&ct(m,d):h=m=>m.parent===d,p??(p={...r}),p[f.id]=Array.from(s).filter(h)}for(const d of u)c=Vt(c,e,n,[...d.exit,...d.invoke.map(f=>yo(f.id))],i,void 0),s.delete(d);return[c,p||r]}function Ia(t,e){return t.implementations.actions[e]}function xo(t,e,n,o,s,r){const{machine:i}=t;let l=t;for(const c of o){const u=typeof c=="function",p=u?c:Ia(i,typeof c=="string"?c:c.type),d={context:l.context,event:e,self:n.self,system:n.system},f=u||typeof c=="string"?void 0:"params"in c?typeof c.params=="function"?c.params({context:l.context,event:e}):c.params:void 0;if(!p||!("resolve"in p)){n.actionExecutor({type:typeof c=="string"?c:typeof c=="object"?c.type:c.name||"(anonymous)",info:d,params:f,exec:p});continue}const h=p,[m,_,g]=h.resolve(n,l,d,f,p,s);l=m,"retryResolve"in h&&(r==null||r.push([h,_])),"execute"in h&&n.actionExecutor({type:h.type,info:d,params:_,exec:h.execute.bind(null,n,_)}),g&&(l=xo(l,e,n,g,s,r))}return l}function Vt(t,e,n,o,s,r){const i=r?[]:void 0,l=xo(t,e,n,o,{internalQueue:s,deferredActorIds:r},i);return i==null||i.forEach(([c,u])=>{c.retryResolve(n,l,u)}),l}function Ze(t,e,n,o){let s=t;const r=[];function i(u,p,d){n.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:n.self,event:p,snapshot:u,_transitions:d}),r.push(u)}if(e.type===Ae)return s=mt(Vo(s,e,n),{status:"stopped"}),i(s,e,[]),{snapshot:s,microstates:r};let l=e;if(l.type!==ao){const u=l,p=Xi(u),d=Co(u,s);if(p&&!d.length)return s=mt(t,{status:"error",error:u.error}),i(s,u,[]),{snapshot:s,microstates:r};s=qe(d,t,n,l,!1,o),i(s,u,d)}let c=!0;for(;s.status==="active";){let u=c?Ta(s,l):[];const p=u.length?s:void 0;if(!u.length){if(!o.length)break;l=o.shift(),u=Co(l,s)}s=qe(u,s,n,l,!1,o),c=s!==p,i(s,l,u)}return s.status!=="active"&&Vo(s,l,n),{snapshot:s,microstates:r}}function Vo(t,e,n){return Vt(t,e,n,Object.values(t.children).map(o=>yo(o)),[],void 0)}function Co(t,e){return e.machine.getTransitionData(e,t)}function Ta(t,e){const n=new Set,o=t._nodes.filter(Fe);for(const s of o)t:for(const r of[s].concat(Wt(s,void 0)))if(r.always){for(const i of r.always)if(i.guard===void 0||Ke(i.guard,t.context,e,t)){n.add(i);break t}}return Oo(Array.from(n),new Set(t._nodes),t.historyValue)}function xa(t,e){const n=le(de(t,e));return Eo(t,[...n])}function Va(t){return!!t&&typeof t=="object"&&"machine"in t&&"value"in t}const Ca=function(t){return co(t,this.value)},Na=function(t){return this.tags.has(t)},$a=function(t){const e=this.machine.getTransitionData(this,t);return!!(e!=null&&e.length)&&e.some(n=>n.target!==void 0||n.actions.length)},Pa=function(){const{_nodes:t,tags:e,machine:n,getMeta:o,toJSON:s,can:r,hasTag:i,matches:l,...c}=this;return{...c,tags:Array.from(e)}},Ra=function(){return this._nodes.reduce((t,e)=>(e.meta!==void 0&&(t[e.id]=e.meta),t),{})};function fe(t,e){return{status:t.status,output:t.output,error:t.error,machine:e,context:t.context,_nodes:t._nodes,value:Eo(e.root,t._nodes),tags:new Set(t._nodes.flatMap(n=>n.tags)),children:t.children,historyValue:t.historyValue||{},matches:Ca,hasTag:Na,can:$a,getMeta:Ra,toJSON:Pa}}function mt(t,e={}){return fe({...t,...e},t.machine)}function Da(t){if(typeof t!="object"||t===null)return{};const e={};for(const n in t){const o=t[n];Array.isArray(o)&&(e[n]=o.map(s=>({id:s.id})))}return e}function Aa(t,e){const{_nodes:n,tags:o,machine:s,children:r,context:i,can:l,hasTag:c,matches:u,getMeta:p,toJSON:d,...f}=t,h={};for(const m in r){const _=r[m];h[m]={snapshot:_.getPersistedSnapshot(e),src:_.src,systemId:_._systemId,syncSnapshot:_._syncSnapshot}}return{...f,context:No(i),children:h,historyValue:Da(f.historyValue)}}function No(t){let e;for(const n in t){const o=t[n];if(o&&typeof o=="object")if("sessionId"in o&&"send"in o&&"ref"in o)e??(e=Array.isArray(t)?t.slice():{...t}),e[n]={xstate$$type:He,id:o.id};else{const s=No(o);s!==o&&(e??(e=Array.isArray(t)?t.slice():{...t}),e[n]=s)}}return e??t}function ja(t,e,n,o,{event:s,id:r,delay:i},{internalQueue:l}){const c=e.machine.implementations.delays;if(typeof s=="string")throw new Error(`Only event objects may be used with raise; use raise({ type: "${s}" }) instead`);const u=typeof s=="function"?s(n,o):s;let p;if(typeof i=="string"){const d=c&&c[i];p=typeof d=="function"?d(n,o):d}else p=typeof i=="function"?i(n,o):i;return typeof p!="number"&&l.push(u),[e,{event:u,id:r,delay:p},void 0]}function La(t,e){const{event:n,delay:o,id:s}=e;if(typeof o=="number"){t.defer(()=>{const r=t.self;t.system.scheduler.schedule(r,r,n,o,s)});return}}function Ma(t,e){function n(o,s){}return n.type="xstate.raise",n.event=t,n.id=e==null?void 0:e.id,n.delay=e==null?void 0:e.delay,n.resolve=ja,n.execute=La,n}function Ba(t,{machine:e,context:n},o,s){const r=(i,l)=>{if(typeof i=="string"){const c=Ue(e,i);if(!c)throw new Error(`Actor logic '${i}' not implemented in machine '${e.id}'`);const u=Ft(c,{id:l==null?void 0:l.id,parent:t.self,syncSnapshot:l==null?void 0:l.syncSnapshot,input:typeof(l==null?void 0:l.input)=="function"?l.input({context:n,event:o,self:t.self}):l==null?void 0:l.input,src:i,systemId:l==null?void 0:l.systemId});return s[u.id]=u,u}else return Ft(i,{id:l==null?void 0:l.id,parent:t.self,syncSnapshot:l==null?void 0:l.syncSnapshot,input:l==null?void 0:l.input,src:i,systemId:l==null?void 0:l.systemId})};return(i,l)=>{const c=r(i,l);return s[c.id]=c,t.defer(()=>{c._processingStatus!==W.Stopped&&c.start()}),c}}function Ua(t,e,n,o,{assignment:s}){if(!e.context)throw new Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");const r={},i={context:e.context,event:n.event,spawn:Ba(t,e,n.event,r),self:t.self,system:t.system};let l={};if(typeof s=="function")l=s(i,o);else for(const u of Object.keys(s)){const p=s[u];l[u]=typeof p=="function"?p(i,o):p}const c=Object.assign({},e.context,l);return[mt(e,{context:c,children:Object.keys(r).length?{...e.children,...r}:e.children}),void 0,void 0]}function za(t){function e(n,o){}return e.type="xstate.assign",e.assignment=t,e.resolve=Ua,e}const $o=new WeakMap;function Ct(t,e,n){let o=$o.get(t);return o?e in o||(o[e]=n()):(o={[e]:n()},$o.set(t,o)),o[e]}const Ha={},Gt=t=>typeof t=="string"?{type:t}:typeof t=="function"?"resolve"in t?{type:t.type}:{type:t.name}:t;let Po=class oi{constructor(e,n){if(this.config=e,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=n._parent,this.key=n._key,this.machine=n._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(ro),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?fo(this.config.states,(o,s)=>new oi(o,{_parent:this,_key:s,_machine:this.machine})):Ha,this.type==="compound"&&!this.config.initial)throw new Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=this.config.history===!0?"shallow":this.config.history||!1,this.entry=lt(this.config.entry).slice(),this.exit=lt(this.config.exit).slice(),this.meta=this.config.meta,this.output=this.type==="final"||!this.parent?this.config.output:void 0,this.tags=lt(e.tags).slice()}_initialize(){this.transitions=fa(this),this.config.always&&(this.always=Ot(this.config.always).map(e=>pt(this,io,e))),Object.keys(this.states).forEach(e=>{this.states[e]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(Gt),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(e=>`#${e.id}`),source:`#${this.id}`,actions:this.initial.actions.map(Gt),eventType:null})}:void 0,history:this.history,states:fo(this.states,e=>e.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(e=>({...e,actions:e.actions.map(Gt)})),entry:this.entry.map(Gt),exit:this.exit.map(Gt),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return Ct(this,"invoke",()=>lt(this.config.invoke).map((e,n)=>{const{src:o,systemId:s}=e,r=e.id??go(this.id,n),i=typeof o=="string"?o:`xstate.invoke.${go(this.id,n)}`;return{...e,src:i,id:r,systemId:s,toJSON(){const{onDone:l,onError:c,...u}=e;return{...u,type:"xstate.invoke",src:i,id:r}}}}))}get on(){return Ct(this,"on",()=>[...this.transitions].flatMap(([e,n])=>n.map(o=>[e,o])).reduce((e,[n,o])=>(e[n]=e[n]||[],e[n].push(o),e),{}))}get after(){return Ct(this,"delayedTransitions",()=>da(this))}get initial(){return Ct(this,"initial",()=>pa(this,this.config.initial))}next(e,n){const o=n.type,s=[];let r;const i=Ct(this,`candidates-${o}`,()=>ua(this,o));for(const l of i){const{guard:c}=l,u=e.context;let p=!1;try{p=!c||Ke(c,u,n,e)}catch(d){const f=typeof c=="string"?c:typeof c=="object"?c.type:void 0;throw new Error(`Unable to evaluate guard ${f?`'${f}' `:""}in transition for event '${o}' in state node '${this.id}':
3
+ ${d.message}`)}if(p){s.push(...l.actions),r=l;break}}return r?[r]:void 0}get events(){return Ct(this,"events",()=>{const{states:e}=this,n=new Set(this.ownEvents);if(e)for(const o of Object.keys(e)){const s=e[o];if(s.states)for(const r of s.events)n.add(`${r}`)}return Array.from(n)})}get ownEvents(){const e=new Set([...this.transitions.keys()].filter(n=>this.transitions.get(n).some(o=>!(!o.target&&!o.actions.length&&!o.reenter))));return Array.from(e)}};const Ka="#";let Fa=class si{constructor(e,n){this.config=e,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=e.id||"(machine)",this.implementations={actors:(n==null?void 0:n.actors)??{},actions:(n==null?void 0:n.actions)??{},delays:(n==null?void 0:n.delays)??{},guards:(n==null?void 0:n.guards)??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new Po(e,{_key:this.id,_machine:this}),this.root._initialize(),this.states=this.root.states,this.events=this.root.events}provide(e){const{actions:n,guards:o,actors:s,delays:r}=this.implementations;return new si(this.config,{actions:{...n,...e.actions},guards:{...o,...e.guards},actors:{...s,...e.actors},delays:{...r,...e.delays}})}resolveState(e){const n=xa(this.root,e.value),o=le(de(this.root,n));return fe({_nodes:[...o],context:e.context||{},children:{},status:We(o,this.root)?"done":e.status||"active",output:e.output,error:e.error,historyValue:e.historyValue},this)}transition(e,n,o){return Ze(e,n,o,[]).snapshot}microstep(e,n,o){return Ze(e,n,o,[]).microstates}getTransitionData(e,n){return Ge(this.root,e.value,e,n)||[]}getPreInitialState(e,n,o){const{context:s}=this.config,r=fe({context:typeof s!="function"&&s?s:{},_nodes:[this.root],children:{},status:"active"},this);return typeof s=="function"?Vt(r,n,e,[za(({spawn:i,event:l,self:c})=>s({spawn:i,input:l.input,self:c}))],o,void 0):r}getInitialSnapshot(e,n){const o=lo(n),s=[],r=this.getPreInitialState(e,o,s),i=qe([{target:[...So(this.root)],source:this.root,reenter:!0,actions:[],eventType:null,toJSON:null}],r,e,o,!0,s),{snapshot:l}=Ze(i,o,e,s);return l}start(e){Object.values(e.children).forEach(n=>{n.getSnapshot().status==="active"&&n.start()})}getStateNodeById(e){const n=Le(e),o=n.slice(1),s=ce(n[0])?n[0].slice(Ka.length):n[0],r=this.idMap.get(s);if(!r)throw new Error(`Child state node '#${s}' does not exist on machine '${this.id}'`);return ue(r,o)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(e,n){return Aa(e,n)}restoreSnapshot(e,n){const o={},s=e.children;Object.keys(s).forEach(d=>{const f=s[d],h=f.snapshot,m=f.src,_=typeof m=="string"?Ue(this,m):m;if(!_)return;const g=Ft(_,{id:d,parent:n.self,syncSnapshot:f.syncSnapshot,snapshot:h,src:m,systemId:f.systemId});o[d]=g});function r(d,f){if(f instanceof Po)return f;try{return d.machine.getStateNodeById(f.id)}catch{}}function i(d,f){if(!f||typeof f!="object")return{};const h={};for(const m in f){const _=f[m];for(const g of _){const v=r(d,g);v&&(h[m]??(h[m]=[]),h[m].push(v))}}return h}const l=i(this.root,e.historyValue),c=fe({...e,children:o,_nodes:Array.from(le(de(this.root,e.value))),historyValue:l},this),u=new Set;function p(d,f){if(!u.has(d)){u.add(d);for(const h in d){const m=d[h];if(m&&typeof m=="object"){if("xstate$$type"in m&&m.xstate$$type===He){d[h]=f[m.id];continue}p(m,f)}}}}return p(c.context,o),c}};function Wa(t,e){return new Fa(t,e)}function Qe(t){this.message=t||""}Qe.prototype=Object.create(Error.prototype,{constructor:{value:Qe},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const Ro=class Ne{constructor(e,n){if(X(this,"name","Stonecrop"),X(this,"registry"),X(this,"store"),Ne._root)return Ne._root;Ne._root=this,this.registry=e,this.store=n}setup(e){this.getMeta(e.doctype)}async getMeta(e){if(!this.registry.getMeta)throw new Qe(`getMeta function is not implemented for ${e} in the registry`);return await this.registry.getMeta(e)}async getRecords(e,n){this.store.$patch({records:[]});const o=await(await fetch(`/${e.slug}`,n)).json();this.store.$patch({records:o})}async getRecord(e,n){this.store.$patch({record:{}});const o=await(await fetch(`/${e.slug}/${n}`)).json();this.store.$patch({record:o})}runAction(e,n,o){var s;const r=this.registry.registry[e.slug],i=(s=r.actions)==null?void 0:s.get(n),l=r.workflow;if(l){const c=Wa(l),u=Ft(c);u.start(),u.send({type:n,id:o}),i&&i.length>0&&i.forEach(p=>{new Function(p)(o)})}}};X(Ro,"_root");let Ga=Ro;var Ja=Object.create,Do=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,tn=Object.getOwnPropertyNames,qa=Object.getPrototypeOf,Xa=Object.prototype.hasOwnProperty,Za=(t,e)=>function(){return t&&(e=(0,t[tn(t)[0]])(t=0)),e},Qa=(t,e)=>function(){return e||(0,t[tn(t)[0]])((e={exports:{}}).exports,e),e.exports},tl=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of tn(e))!Xa.call(t,s)&&s!==n&&Do(t,s,{get:()=>e[s],enumerable:!(o=Ya(e,s))||o.enumerable});return t},el=(t,e,n)=>(n=t!=null?Ja(qa(t)):{},tl(Do(n,"default",{value:t,enumerable:!0}),t)),Jt=Za({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),nl=Qa({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(t,e){Jt(),e.exports=o;function n(r){return r instanceof Buffer?Buffer.from(r):new r.constructor(r.buffer.slice(),r.byteOffset,r.length)}function o(r){if(r=r||{},r.circles)return s(r);const i=new Map;if(i.set(Date,d=>new Date(d)),i.set(Map,(d,f)=>new Map(c(Array.from(d),f))),i.set(Set,(d,f)=>new Set(c(Array.from(d),f))),r.constructorHandlers)for(const d of r.constructorHandlers)i.set(d[0],d[1]);let l=null;return r.proto?p:u;function c(d,f){const h=Object.keys(d),m=new Array(h.length);for(let _=0;_<h.length;_++){const g=h[_],v=d[g];typeof v!="object"||v===null?m[g]=v:v.constructor!==Object&&(l=i.get(v.constructor))?m[g]=l(v,f):ArrayBuffer.isView(v)?m[g]=n(v):m[g]=f(v)}return m}function u(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return c(d,u);if(d.constructor!==Object&&(l=i.get(d.constructor)))return l(d,u);const f={};for(const h in d){if(Object.hasOwnProperty.call(d,h)===!1)continue;const m=d[h];typeof m!="object"||m===null?f[h]=m:m.constructor!==Object&&(l=i.get(m.constructor))?f[h]=l(m,u):ArrayBuffer.isView(m)?f[h]=n(m):f[h]=u(m)}return f}function p(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return c(d,p);if(d.constructor!==Object&&(l=i.get(d.constructor)))return l(d,p);const f={};for(const h in d){const m=d[h];typeof m!="object"||m===null?f[h]=m:m.constructor!==Object&&(l=i.get(m.constructor))?f[h]=l(m,p):ArrayBuffer.isView(m)?f[h]=n(m):f[h]=p(m)}return f}}function s(r){const i=[],l=[],c=new Map;if(c.set(Date,h=>new Date(h)),c.set(Map,(h,m)=>new Map(p(Array.from(h),m))),c.set(Set,(h,m)=>new Set(p(Array.from(h),m))),r.constructorHandlers)for(const h of r.constructorHandlers)c.set(h[0],h[1]);let u=null;return r.proto?f:d;function p(h,m){const _=Object.keys(h),g=new Array(_.length);for(let v=0;v<_.length;v++){const I=_[v],V=h[I];if(typeof V!="object"||V===null)g[I]=V;else if(V.constructor!==Object&&(u=c.get(V.constructor)))g[I]=u(V,m);else if(ArrayBuffer.isView(V))g[I]=n(V);else{const P=i.indexOf(V);P!==-1?g[I]=l[P]:g[I]=m(V)}}return g}function d(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return p(h,d);if(h.constructor!==Object&&(u=c.get(h.constructor)))return u(h,d);const m={};i.push(h),l.push(m);for(const _ in h){if(Object.hasOwnProperty.call(h,_)===!1)continue;const g=h[_];if(typeof g!="object"||g===null)m[_]=g;else if(g.constructor!==Object&&(u=c.get(g.constructor)))m[_]=u(g,d);else if(ArrayBuffer.isView(g))m[_]=n(g);else{const v=i.indexOf(g);v!==-1?m[_]=l[v]:m[_]=d(g)}}return i.pop(),l.pop(),m}function f(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return p(h,f);if(h.constructor!==Object&&(u=c.get(h.constructor)))return u(h,f);const m={};i.push(h),l.push(m);for(const _ in h){const g=h[_];if(typeof g!="object"||g===null)m[_]=g;else if(g.constructor!==Object&&(u=c.get(g.constructor)))m[_]=u(g,f);else if(ArrayBuffer.isView(g))m[_]=n(g);else{const v=i.indexOf(g);v!==-1?m[_]=l[v]:m[_]=f(g)}}return i.pop(),l.pop(),m}}}});Jt(),Jt(),Jt();var Ao=typeof navigator<"u",x=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof x.chrome<"u"&&x.chrome.devtools,Ao&&(x.self,x.top);var jo;typeof navigator<"u"&&((jo=navigator.userAgent)==null||jo.toLowerCase().includes("electron")),Jt();var ol=el(nl()),sl=/(?:^|[-_/])(\w)/g;function rl(t,e){return e?e.toUpperCase():""}function il(t){return t&&`${t}`.replace(sl,rl)}function al(t,e){let n=t.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${e}`)&&(n=n.replace(`/index${e}`,e));const o=n.lastIndexOf("/"),s=n.substring(o+1);{const r=s.lastIndexOf(e);return s.substring(0,r)}}var Lo=(0,ol.default)({circles:!0});const ll={trailing:!0};function Nt(t,e=25,n={}){if(n={...ll,...n},!Number.isFinite(e))throw new TypeError("Expected `wait` to be a finite number");let o,s,r=[],i,l;const c=(u,p)=>(i=cl(t,u,p),i.finally(()=>{if(i=null,n.trailing&&l&&!s){const d=c(u,l);return l=null,d}}),i);return function(...u){return i?(n.trailing&&(l=u),i):new Promise(p=>{const d=!s&&n.leading;clearTimeout(s),s=setTimeout(()=>{s=null;const f=n.leading?o:c(this,u);for(const h of r)h(f);r=[]},e),d?(o=c(this,u),p(o)):r.push(p)})}}async function cl(t,e,n){return await t.apply(e,n)}function en(t,e={},n){for(const o in t){const s=t[o],r=n?`${n}:${o}`:o;typeof s=="object"&&s!==null?en(s,e,r):typeof s=="function"&&(e[r]=s)}return e}const ul={run:t=>t()},dl=()=>ul,Mo=typeof console.createTask<"u"?console.createTask:dl;function fl(t,e){const n=e.shift(),o=Mo(n);return t.reduce((s,r)=>s.then(()=>o.run(()=>r(...e))),Promise.resolve())}function pl(t,e){const n=e.shift(),o=Mo(n);return Promise.all(t.map(s=>o.run(()=>s(...e))))}function nn(t,e){for(const n of[...t])n(e)}class hl{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,o={}){if(!e||typeof n!="function")return()=>{};const s=e;let r;for(;this._deprecatedHooks[e];)r=this._deprecatedHooks[e],e=r.to;if(r&&!o.allowDeprecated){let i=r.message;i||(i=`${s} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let o,s=(...r)=>(typeof o=="function"&&o(),o=void 0,s=void 0,n(...r));return o=this.hook(e,s),o}removeHook(e,n){if(this._hooks[e]){const o=this._hooks[e].indexOf(n);o!==-1&&this._hooks[e].splice(o,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const o=this._hooks[e]||[];delete this._hooks[e];for(const s of o)this.hook(e,s)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=en(e),o=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of o.splice(0,o.length))s()}}removeHooks(e){const n=en(e);for(const o in n)this.removeHook(o,n[o])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(fl,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(pl,e,...n)}callHookWith(e,n,...o){const s=this._before||this._after?{name:n,args:o,context:{}}:void 0;this._before&&nn(this._before,s);const r=e(n in this._hooks?[...this._hooks[n]]:[],o);return r instanceof Promise?r.finally(()=>{this._after&&s&&nn(this._after,s)}):(this._after&&s&&nn(this._after,s),r)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}}function Bo(){return new hl}var ml=Object.create,Uo=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,on=Object.getOwnPropertyNames,_l=Object.getPrototypeOf,yl=Object.prototype.hasOwnProperty,vl=(t,e)=>function(){return t&&(e=(0,t[on(t)[0]])(t=0)),e},zo=(t,e)=>function(){return e||(0,t[on(t)[0]])((e={exports:{}}).exports,e),e.exports},wl=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of on(e))!yl.call(t,s)&&s!==n&&Uo(t,s,{get:()=>e[s],enumerable:!(o=gl(e,s))||o.enumerable});return t},El=(t,e,n)=>(n=t!=null?ml(_l(t)):{},wl(Uo(n,"default",{value:t,enumerable:!0}),t)),b=vl({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),bl=zo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(t,e){b(),function(n){var o={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},s=["်","ް"],r={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},l={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},c=[";","?",":","@","&","=","+","$",",","/"].join(""),u=[";","?",":","@","&","=","+","$",","].join(""),p=[".","!","~","*","'","(",")"].join(""),d=function(_,g){var v="-",I="",V="",P=!0,R={},Y,k,j,T,w,S,C,D,G,U,$,F,y,E,O="";if(typeof _!="string")return"";if(typeof g=="string"&&(v=g),C=l.en,D=i.en,typeof g=="object"){Y=g.maintainCase||!1,R=g.custom&&typeof g.custom=="object"?g.custom:R,j=+g.truncate>1&&g.truncate||!1,T=g.uric||!1,w=g.uricNoSlash||!1,S=g.mark||!1,P=!(g.symbols===!1||g.lang===!1),v=g.separator||v,T&&(O+=c),w&&(O+=u),S&&(O+=p),C=g.lang&&l[g.lang]&&P?l[g.lang]:P?l.en:{},D=g.lang&&i[g.lang]?i[g.lang]:g.lang===!1||g.lang===!0?{}:i.en,g.titleCase&&typeof g.titleCase.length=="number"&&Array.prototype.toString.call(g.titleCase)?(g.titleCase.forEach(function(N){R[N+""]=N+""}),k=!0):k=!!g.titleCase,g.custom&&typeof g.custom.length=="number"&&Array.prototype.toString.call(g.custom)&&g.custom.forEach(function(N){R[N+""]=N+""}),Object.keys(R).forEach(function(N){var L;N.length>1?L=new RegExp("\\b"+h(N)+"\\b","gi"):L=new RegExp(h(N),"gi"),_=_.replace(L,R[N])});for($ in R)O+=$}for(O+=v,O=h(O),_=_.replace(/(^\s+|\s+$)/g,""),y=!1,E=!1,U=0,F=_.length;U<F;U++)$=_[U],m($,R)?y=!1:D[$]?($=y&&D[$].match(/[A-Za-z0-9]/)?" "+D[$]:D[$],y=!1):$ in o?(U+1<F&&s.indexOf(_[U+1])>=0?(V+=$,$=""):E===!0?($=r[V]+o[$],V=""):$=y&&o[$].match(/[A-Za-z0-9]/)?" "+o[$]:o[$],y=!1,E=!1):$ in r?(V+=$,$="",U===F-1&&($=r[V]),E=!0):C[$]&&!(T&&c.indexOf($)!==-1)&&!(w&&u.indexOf($)!==-1)?($=y||I.substr(-1).match(/[A-Za-z0-9]/)?v+C[$]:C[$],$+=_[U+1]!==void 0&&_[U+1].match(/[A-Za-z0-9]/)?v:"",y=!0):(E===!0?($=r[V]+$,V="",E=!1):y&&(/[A-Za-z0-9]/.test($)||I.substr(-1).match(/A-Za-z0-9]/))&&($=" "+$),y=!1),I+=$.replace(new RegExp("[^\\w\\s"+O+"_-]","g"),v);return k&&(I=I.replace(/(\w)(\S*)/g,function(N,L,H){var St=L.toUpperCase()+(H!==null?H:"");return Object.keys(R).indexOf(St.toLowerCase())<0?St:St.toLowerCase()})),I=I.replace(/\s+/g,v).replace(new RegExp("\\"+v+"+","g"),v).replace(new RegExp("(^\\"+v+"+|\\"+v+"+$)","g"),""),j&&I.length>j&&(G=I.charAt(j)===v,I=I.slice(0,j),G||(I=I.slice(0,I.lastIndexOf(v)))),!Y&&!k&&(I=I.toLowerCase()),I},f=function(_){return function(g){return d(g,_)}},h=function(_){return _.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},m=function(_,g){for(var v in g)if(g[v]===_)return!0};if(typeof e<"u"&&e.exports)e.exports=d,e.exports.createSlug=f;else if(typeof define<"u"&&define.amd)define([],function(){return d});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=d,n.createSlug=f}catch{}}(t)}}),kl=zo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(t,e){b(),e.exports=bl()}});b(),b(),b(),b(),b(),b(),b(),b();function Sl(t){var e;const n=t.name||t._componentTag||t.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||t.__name;return n==="index"&&(e=t.__file)!=null&&e.endsWith("index.vue")?"":n}function Ol(t){const e=t.__file;if(e)return il(al(e,".vue"))}function Ho(t,e){return t.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=e,e}function sn(t){if(t.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return t.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(t.root)return t.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Ko(t){var e,n;const o=(e=t.subTree)==null?void 0:e.type,s=sn(t);return s?((n=s==null?void 0:s.types)==null?void 0:n.Fragment)===o:!1}function pe(t){var e,n,o;const s=Sl((t==null?void 0:t.type)||{});if(s)return s;if((t==null?void 0:t.root)===t)return"Root";for(const i in(n=(e=t.parent)==null?void 0:e.type)==null?void 0:n.components)if(t.parent.type.components[i]===(t==null?void 0:t.type))return Ho(t,i);for(const i in(o=t.appContext)==null?void 0:o.components)if(t.appContext.components[i]===(t==null?void 0:t.type))return Ho(t,i);return Ol((t==null?void 0:t.type)||{})||"Anonymous Component"}function Il(t){var e,n,o;const s=(o=(n=(e=t==null?void 0:t.appContext)==null?void 0:e.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?o:0,r=t===(t==null?void 0:t.root)?"root":t.uid;return`${s}:${r}`}function rn(t,e){return e=e||`${t.id}:root`,t.instanceMap.get(e)||t.instanceMap.get(":root")}function Tl(){const t={top:0,bottom:0,left:0,right:0,get width(){return t.right-t.left},get height(){return t.bottom-t.top}};return t}var he;function xl(t){return he||(he=document.createRange()),he.selectNode(t),he.getBoundingClientRect()}function Vl(t){const e=Tl();if(!t.children)return e;for(let n=0,o=t.children.length;n<o;n++){const s=t.children[n];let r;if(s.component)r=gt(s.component);else if(s.el){const i=s.el;i.nodeType===1||i.getBoundingClientRect?r=i.getBoundingClientRect():i.nodeType===3&&i.data.trim()&&(r=xl(i))}r&&Cl(e,r)}return e}function Cl(t,e){return(!t.top||e.top<t.top)&&(t.top=e.top),(!t.bottom||e.bottom>t.bottom)&&(t.bottom=e.bottom),(!t.left||e.left<t.left)&&(t.left=e.left),(!t.right||e.right>t.right)&&(t.right=e.right),t}var Fo={top:0,left:0,right:0,bottom:0,width:0,height:0};function gt(t){const e=t.subTree.el;return typeof window>"u"?Fo:Ko(t)?Vl(t.subTree):(e==null?void 0:e.nodeType)===1?e==null?void 0:e.getBoundingClientRect():t.subTree.component?gt(t.subTree.component):Fo}b();function an(t){return Ko(t)?Nl(t.subTree):t.subTree?[t.subTree.el]:[]}function Nl(t){if(!t.children)return[];const e=[];return t.children.forEach(n=>{n.component?e.push(...an(n.component)):n!=null&&n.el&&e.push(n.el)}),e}var Wo="__vue-devtools-component-inspector__",Go="__vue-devtools-component-inspector__card__",Jo="__vue-devtools-component-inspector__name__",Yo="__vue-devtools-component-inspector__indicator__",qo={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},$l={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},Pl={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function $t(){return document.getElementById(Wo)}function Rl(){return document.getElementById(Go)}function Dl(){return document.getElementById(Yo)}function Al(){return document.getElementById(Jo)}function ln(t){return{left:`${Math.round(t.left*100)/100}px`,top:`${Math.round(t.top*100)/100}px`,width:`${Math.round(t.width*100)/100}px`,height:`${Math.round(t.height*100)/100}px`}}function cn(t){var e;const n=document.createElement("div");n.id=(e=t.elementId)!=null?e:Wo,Object.assign(n.style,{...qo,...ln(t.bounds),...t.style});const o=document.createElement("span");o.id=Go,Object.assign(o.style,{...$l,top:t.bounds.top<35?0:"-35px"});const s=document.createElement("span");s.id=Jo,s.innerHTML=`&lt;${t.name}&gt;&nbsp;&nbsp;`;const r=document.createElement("i");return r.id=Yo,r.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`,Object.assign(r.style,Pl),o.appendChild(s),o.appendChild(r),n.appendChild(o),document.body.appendChild(n),n}function un(t){const e=$t(),n=Rl(),o=Al(),s=Dl();e&&(Object.assign(e.style,{...qo,...ln(t.bounds)}),Object.assign(n.style,{top:t.bounds.top<35?0:"-35px"}),o.innerHTML=`&lt;${t.name}&gt;&nbsp;&nbsp;`,s.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`)}function jl(t){const e=gt(t);if(!e.width&&!e.height)return;const n=pe(t);$t()?un({bounds:e,name:n}):cn({bounds:e,name:n})}function Xo(){const t=$t();t&&(t.style.display="none")}var dn=null;function fn(t){const e=t.target;if(e){const n=e.__vueParentComponent;if(n&&(dn=n,n.vnode.el)){const o=gt(n),s=pe(n);$t()?un({bounds:o,name:s}):cn({bounds:o,name:s})}}}function Ll(t,e){if(t.preventDefault(),t.stopPropagation(),dn){const n=Il(dn);e(n)}}var me=null;function Ml(){Xo(),window.removeEventListener("mouseover",fn),window.removeEventListener("click",me,!0),me=null}function Bl(){return window.addEventListener("mouseover",fn),new Promise(t=>{function e(n){n.preventDefault(),n.stopPropagation(),Ll(n,o=>{window.removeEventListener("click",e,!0),me=null,window.removeEventListener("mouseover",fn);const s=$t();s&&(s.style.display="none"),t(JSON.stringify({id:o}))})}me=e,window.addEventListener("click",e,!0)})}function Ul(t){const e=rn(K.value,t.id);if(e){const[n]=an(e);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const o=gt(e),s=document.createElement("div"),r={...ln(o),position:"absolute"};Object.assign(s.style,r),document.body.appendChild(s),s.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(s)},2e3)}setTimeout(()=>{const o=gt(e);if(o.width||o.height){const s=pe(e),r=$t();r?un({...t,name:s,bounds:o}):cn({...t,name:s,bounds:o}),setTimeout(()=>{r&&(r.style.display="none")},1500)}},1200)}}b();var Zo;(Zo=x).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__!=null||(Zo.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function zl(t){let e=0;const n=setInterval(()=>{x.__VUE_INSPECTOR__&&(clearInterval(n),e+=30,t()),e>=5e3&&clearInterval(n)},30)}function Hl(){const t=x.__VUE_INSPECTOR__,e=t.openInEditor;t.openInEditor=async(...n)=>{t.disable(),e(...n)}}function Kl(){return new Promise(t=>{function e(){Hl(),t(x.__VUE_INSPECTOR__)}x.__VUE_INSPECTOR__?e():zl(()=>{e()})})}b(),b();function Fl(t){return!!(t&&t.__v_isReadonly)}function Qo(t){return Fl(t)?Qo(t.__v_raw):!!(t&&t.__v_isReactive)}function pn(t){return!!(t&&t.__v_isRef===!0)}function Yt(t){const e=t&&t.__v_raw;return e?Yt(e):t}var Wl=class{constructor(){this.refEditor=new Gl}set(t,e,n,o){const s=Array.isArray(e)?e:e.split(".");for(;s.length>1;){const l=s.shift();t instanceof Map?t=t.get(l):t instanceof Set?t=Array.from(t.values())[l]:t=t[l],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}const r=s[0],i=this.refEditor.get(t)[r];o?o(t,r,n):this.refEditor.isRef(i)?this.refEditor.set(i,n):t[r]=n}get(t,e){const n=Array.isArray(e)?e:e.split(".");for(let o=0;o<n.length;o++)if(t instanceof Map?t=t.get(n[o]):t=t[n[o]],this.refEditor.isRef(t)&&(t=this.refEditor.get(t)),!t)return;return t}has(t,e,n=!1){if(typeof t>"u")return!1;const o=Array.isArray(e)?e.slice():e.split("."),s=n?2:1;for(;t&&o.length>s;){const r=o.shift();t=t[r],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}return t!=null&&Object.prototype.hasOwnProperty.call(t,o[0])}createDefaultSetCallback(t){return(e,n,o)=>{if((t.remove||t.newKey)&&(Array.isArray(e)?e.splice(n,1):Yt(e)instanceof Map?e.delete(n):Yt(e)instanceof Set?e.delete(Array.from(e.values())[n]):Reflect.deleteProperty(e,n)),!t.remove){const s=e[t.newKey||n];this.refEditor.isRef(s)?this.refEditor.set(s,o):Yt(e)instanceof Map?e.set(t.newKey||n,o):Yt(e)instanceof Set?e.add(o):e[t.newKey||n]=o}}}},Gl=class{set(t,e){if(pn(t))t.value=e;else{if(t instanceof Set&&Array.isArray(e)){t.clear(),e.forEach(s=>t.add(s));return}const n=Object.keys(e);if(t instanceof Map){const s=new Set(t.keys());n.forEach(r=>{t.set(r,Reflect.get(e,r)),s.delete(r)}),s.forEach(r=>t.delete(r));return}const o=new Set(Object.keys(t));n.forEach(s=>{Reflect.set(t,s,Reflect.get(e,s)),o.delete(s)}),o.forEach(s=>Reflect.deleteProperty(t,s))}}get(t){return pn(t)?t.value:t}isRef(t){return pn(t)||Qo(t)}};b(),b(),b();var Jl="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Yl(){if(!Ao||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const t=localStorage.getItem(Jl);return t?JSON.parse(t):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}b(),b(),b();var ts;(ts=x).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS!=null||(ts.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var ql=new Proxy(x.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(t,e,n){return Reflect.get(t,e,n)}});function Xl(t,e){M.timelineLayersState[e.id]=!1,ql.push({...t,descriptorId:e.id,appRecord:sn(e.app)})}var es;(es=x).__VUE_DEVTOOLS_KIT_INSPECTOR__!=null||(es.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var hn=new Proxy(x.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(t,e,n){return Reflect.get(t,e,n)}}),ns=Nt(()=>{Rt.hooks.callHook("sendInspectorToClient",os())});function Zl(t,e){var n,o;hn.push({options:t,descriptor:e,treeFilterPlaceholder:(n=t.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(o=t.stateFilterPlaceholder)!=null?o:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:sn(e.app)}),ns()}function os(){return hn.filter(t=>t.descriptor.app===K.value.app).filter(t=>t.descriptor.id!=="components").map(t=>{var e;const n=t.descriptor,o=t.options;return{id:o.id,label:o.label,logo:n.logo,icon:`custom-ic-baseline-${(e=o==null?void 0:o.icon)==null?void 0:e.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function ge(t,e){return hn.find(n=>n.options.id===t&&(e?n.descriptor.app===e:!0))}function Ql(){const t=Bo();t.hook("addInspector",({inspector:o,plugin:s})=>{Zl(o,s.descriptor)});const e=Nt(async({inspectorId:o,plugin:s})=>{var r;if(!o||!((r=s==null?void 0:s.descriptor)!=null&&r.app)||M.highPerfModeEnabled)return;const i=ge(o,s.descriptor.app),l={app:s.descriptor.app,inspectorId:o,filter:(i==null?void 0:i.treeFilter)||"",rootNodes:[]};await new Promise(c=>{t.callHookWith(async u=>{await Promise.all(u.map(p=>p(l))),c()},"getInspectorTree")}),t.callHookWith(async c=>{await Promise.all(c.map(u=>u({inspectorId:o,rootNodes:l.rootNodes})))},"sendInspectorTreeToClient")},120);t.hook("sendInspectorTree",e);const n=Nt(async({inspectorId:o,plugin:s})=>{var r;if(!o||!((r=s==null?void 0:s.descriptor)!=null&&r.app)||M.highPerfModeEnabled)return;const i=ge(o,s.descriptor.app),l={app:s.descriptor.app,inspectorId:o,nodeId:(i==null?void 0:i.selectedNodeId)||"",state:null},c={currentTab:`custom-inspector:${o}`};l.nodeId&&await new Promise(u=>{t.callHookWith(async p=>{await Promise.all(p.map(d=>d(l,c))),u()},"getInspectorState")}),t.callHookWith(async u=>{await Promise.all(u.map(p=>p({inspectorId:o,nodeId:l.nodeId,state:l.state})))},"sendInspectorStateToClient")},120);return t.hook("sendInspectorState",n),t.hook("customInspectorSelectNode",({inspectorId:o,nodeId:s,plugin:r})=>{const i=ge(o,r.descriptor.app);i&&(i.selectedNodeId=s)}),t.hook("timelineLayerAdded",({options:o,plugin:s})=>{Xl(o,s.descriptor)}),t.hook("timelineEventAdded",({options:o,plugin:s})=>{var r;const i=["performance","component-event","keyboard","mouse"];M.highPerfModeEnabled||!((r=M.timelineLayersState)!=null&&r[s.descriptor.id])&&!i.includes(o.layerId)||t.callHookWith(async l=>{await Promise.all(l.map(c=>c(o)))},"sendTimelineEventToClient")}),t.hook("getComponentInstances",async({app:o})=>{const s=o.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!s)return null;const r=s.id.toString();return[...s.instanceMap].filter(([i])=>i.split(":")[0]===r).map(([,i])=>i)}),t.hook("getComponentBounds",async({instance:o})=>gt(o)),t.hook("getComponentName",({instance:o})=>pe(o)),t.hook("componentHighlight",({uid:o})=>{const s=K.value.instanceMap.get(o);s&&jl(s)}),t.hook("componentUnhighlight",()=>{Xo()}),t}var ss;(ss=x).__VUE_DEVTOOLS_KIT_APP_RECORDS__!=null||(ss.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var rs;(rs=x).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__!=null||(rs.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var is;(is=x).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__!=null||(is.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var as;(as=x).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__!=null||(as.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var ls;(ls=x).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__!=null||(ls.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var _t="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function tc(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Yl()}}var cs;(cs=x)[_t]!=null||(cs[_t]=tc());var ec=Nt(t=>{Rt.hooks.callHook("devtoolsStateUpdated",{state:t})});Nt((t,e)=>{Rt.hooks.callHook("devtoolsConnectedUpdated",{state:t,oldState:e})});var _e=new Proxy(x.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(t,e,n){return e==="value"?x.__VUE_DEVTOOLS_KIT_APP_RECORDS__:x.__VUE_DEVTOOLS_KIT_APP_RECORDS__[e]}}),K=new Proxy(x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(t,e,n){return e==="value"?x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:e==="id"?x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[e]}});function us(){ec({...x[_t],appRecords:_e.value,activeAppRecordId:K.id,tabs:x.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:x.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function nc(t){x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=t,us()}function oc(t){x.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=t,us()}var M=new Proxy(x[_t],{get(t,e){return e==="appRecords"?_e:e==="activeAppRecordId"?K.id:e==="tabs"?x.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:e==="commands"?x.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:x[_t][e]},deleteProperty(t,e){return delete t[e],!0},set(t,e,n){return{...x[_t]},t[e]=n,x[_t][e]=n,!0}});function sc(t={}){var e,n,o;const{file:s,host:r,baseUrl:i=window.location.origin,line:l=0,column:c=0}=t;if(s){if(r==="chrome-extension"){const u=s.replace(/\\/g,"\\\\"),p=(n=(e=window.VUE_DEVTOOLS_CONFIG)==null?void 0:e.openInEditorHost)!=null?n:"/";fetch(`${p}__open-in-editor?file=${encodeURI(s)}`).then(d=>{if(!d.ok){const f=`Opening component ${u} failed`;console.log(`%c${f}`,"color:red")}})}else if(M.vitePluginDetected){const u=(o=x.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?o:i;x.__VUE_INSPECTOR__.openInEditor(u,s,l,c)}}}b(),b(),b(),b(),b();var ds;(ds=x).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__!=null||(ds.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var mn=new Proxy(x.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(t,e,n){return Reflect.get(t,e,n)}});function gn(t){const e={};return Object.keys(t).forEach(n=>{e[n]=t[n].defaultValue}),e}function _n(t){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${t}__`}function rc(t){var e,n,o;const s=(n=(e=mn.find(r=>{var i;return r[0].id===t&&!!((i=r[0])!=null&&i.settings)}))==null?void 0:e[0])!=null?n:null;return(o=s==null?void 0:s.settings)!=null?o:null}function fs(t,e){var n,o,s;const r=_n(t);if(r){const i=localStorage.getItem(r);if(i)return JSON.parse(i)}if(t){const i=(o=(n=mn.find(l=>l[0].id===t))==null?void 0:n[0])!=null?o:null;return gn((s=i==null?void 0:i.settings)!=null?s:{})}return gn(e)}function ic(t,e){const n=_n(t);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(gn(e)))}function ac(t,e,n){const o=_n(t),s=localStorage.getItem(o),r=JSON.parse(s||"{}"),i={...r,[e]:n};localStorage.setItem(o,JSON.stringify(i)),Rt.hooks.callHookWith(l=>{l.forEach(c=>c({pluginId:t,key:e,oldValue:r[e],newValue:n,settings:i}))},"setPluginSettings")}b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b();var ps,hs,J=(hs=(ps=x).__VUE_DEVTOOLS_HOOK)!=null?hs:ps.__VUE_DEVTOOLS_HOOK=Bo(),lc={vueAppInit(t){J.hook("app:init",t)},vueAppUnmount(t){J.hook("app:unmount",t)},vueAppConnected(t){J.hook("app:connected",t)},componentAdded(t){return J.hook("component:added",t)},componentEmit(t){return J.hook("component:emit",t)},componentUpdated(t){return J.hook("component:updated",t)},componentRemoved(t){return J.hook("component:removed",t)},setupDevtoolsPlugin(t){J.hook("devtools-plugin:setup",t)},perfStart(t){return J.hook("perf:start",t)},perfEnd(t){return J.hook("perf:end",t)}},ms={on:lc,setupDevToolsPlugin(t,e){return J.callHook("devtools-plugin:setup",t,e)}},cc=class{constructor({plugin:t,ctx:e}){this.hooks=e.hooks,this.plugin=t}get on(){return{visitComponentTree:t=>{this.hooks.hook("visitComponentTree",t)},inspectComponent:t=>{this.hooks.hook("inspectComponent",t)},editComponentState:t=>{this.hooks.hook("editComponentState",t)},getInspectorTree:t=>{this.hooks.hook("getInspectorTree",t)},getInspectorState:t=>{this.hooks.hook("getInspectorState",t)},editInspectorState:t=>{this.hooks.hook("editInspectorState",t)},inspectTimelineEvent:t=>{this.hooks.hook("inspectTimelineEvent",t)},timelineCleared:t=>{this.hooks.hook("timelineCleared",t)},setPluginSettings:t=>{this.hooks.hook("setPluginSettings",t)}}}notifyComponentUpdate(t){var e;if(M.highPerfModeEnabled)return;const n=os().find(o=>o.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(t){const o=[t.appContext.app,t.uid,(e=t.parent)==null?void 0:e.uid,t];J.callHook("component:updated",...o)}else J.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(t){this.hooks.callHook("addInspector",{inspector:t,plugin:this.plugin}),this.plugin.descriptor.settings&&ic(t.id,this.plugin.descriptor.settings)}sendInspectorTree(t){M.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:t,plugin:this.plugin})}sendInspectorState(t){M.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:t,plugin:this.plugin})}selectInspectorNode(t,e){this.hooks.callHook("customInspectorSelectNode",{inspectorId:t,nodeId:e,plugin:this.plugin})}visitComponentTree(t){return this.hooks.callHook("visitComponentTree",t)}now(){return M.highPerfModeEnabled?0:Date.now()}addTimelineLayer(t){this.hooks.callHook("timelineLayerAdded",{options:t,plugin:this.plugin})}addTimelineEvent(t){M.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:t,plugin:this.plugin})}getSettings(t){return fs(t??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(t){return this.hooks.callHook("getComponentInstances",{app:t})}getComponentBounds(t){return this.hooks.callHook("getComponentBounds",{instance:t})}getComponentName(t){return this.hooks.callHook("getComponentName",{instance:t})}highlightElement(t){const e=t.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:e})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},uc=cc;b(),b(),b(),b();var dc="__vue_devtool_undefined__",fc="__vue_devtool_infinity__",pc="__vue_devtool_negative_infinity__",hc="__vue_devtool_nan__";b(),b();var mc={[dc]:"undefined",[hc]:"NaN",[fc]:"Infinity",[pc]:"-Infinity"};Object.entries(mc).reduce((t,[e,n])=>(t[n]=e,t),{}),b(),b(),b(),b(),b();var gs;(gs=x).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__!=null||(gs.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function _s(t,e){return ms.setupDevToolsPlugin(t,e)}function gc(t,e){const[n,o]=t;if(n.app!==e)return;const s=new uc({plugin:{setupFn:o,descriptor:n},ctx:Rt});n.packageName==="vuex"&&s.on.editInspectorState(r=>{s.sendInspectorState(r.inspectorId)}),o(s)}function ys(t,e){x.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(t)||M.highPerfModeEnabled&&!(e!=null&&e.inspectingComponent)||(x.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(t),mn.forEach(n=>{gc(n,t)}))}b(),b();var qt="__VUE_DEVTOOLS_ROUTER__",Pt="__VUE_DEVTOOLS_ROUTER_INFO__",vs;(vs=x)[Pt]!=null||(vs[Pt]={currentRoute:null,routes:[]});var ws;(ws=x)[qt]!=null||(ws[qt]={}),new Proxy(x[Pt],{get(t,e){return x[Pt][e]}}),new Proxy(x[qt],{get(t,e){if(e==="value")return x[qt]}});function _c(t){const e=new Map;return((t==null?void 0:t.getRoutes())||[]).filter(n=>!e.has(n.path)&&e.set(n.path,1))}function yn(t){return t.map(e=>{let{path:n,name:o,children:s,meta:r}=e;return s!=null&&s.length&&(s=yn(s)),{path:n,name:o,children:s,meta:r}})}function yc(t){if(t){const{fullPath:e,hash:n,href:o,path:s,name:r,matched:i,params:l,query:c}=t;return{fullPath:e,hash:n,href:o,path:s,name:r,params:l,query:c,matched:yn(i)}}return t}function vc(t,e){function n(){var o;const s=(o=t.app)==null?void 0:o.config.globalProperties.$router,r=yc(s==null?void 0:s.currentRoute.value),i=yn(_c(s)),l=console.warn;console.warn=()=>{},x[Pt]={currentRoute:r?Lo(r):{},routes:Lo(i)},x[qt]=s,console.warn=l}n(),ms.on.componentUpdated(Nt(()=>{var o;((o=e.value)==null?void 0:o.app)===t.app&&(n(),!M.highPerfModeEnabled&&Rt.hooks.callHook("routerInfoUpdated",{state:x[Pt]}))},200))}function wc(t){return{async getInspectorTree(e){const n={...e,app:K.value.app,rootNodes:[]};return await new Promise(o=>{t.callHookWith(async s=>{await Promise.all(s.map(r=>r(n))),o()},"getInspectorTree")}),n.rootNodes},async getInspectorState(e){const n={...e,app:K.value.app,state:null},o={currentTab:`custom-inspector:${e.inspectorId}`};return await new Promise(s=>{t.callHookWith(async r=>{await Promise.all(r.map(i=>i(n,o))),s()},"getInspectorState")}),n.state},editInspectorState(e){const n=new Wl,o={...e,app:K.value.app,set:(s,r=e.path,i=e.state.value,l)=>{n.set(s,r,i,l||n.createDefaultSetCallback(e.state))}};t.callHookWith(s=>{s.forEach(r=>r(o))},"editInspectorState")},sendInspectorState(e){const n=ge(e);t.callHook("sendInspectorState",{inspectorId:e,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Bl()},cancelInspectComponentInspector(){return Ml()},getComponentRenderCode(e){const n=rn(K.value,e);if(n)return typeof(n==null?void 0:n.type)!="function"?n.render.toString():n.type.toString()},scrollToComponent(e){return Ul({id:e})},openInEditor:sc,getVueInspector:Kl,toggleApp(e,n){const o=_e.value.find(s=>s.id===e);o&&(oc(e),nc(o),vc(o,K),ns(),ys(o.app,n))},inspectDOM(e){const n=rn(K.value,e);if(n){const[o]=an(n);o&&(x.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=o)}},updatePluginSettings(e,n,o){ac(e,n,o)},getPluginSettings(e){return{options:rc(e),values:fs(e)}}}}b();var Es;(Es=x).__VUE_DEVTOOLS_ENV__!=null||(Es.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var bs=Ql(),ks;(ks=x).__VUE_DEVTOOLS_KIT_CONTEXT__!=null||(ks.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:bs,get state(){return{...M,activeAppRecordId:K.id,activeAppRecord:K.value,appRecords:_e.value}},api:wc(bs)});var Rt=x.__VUE_DEVTOOLS_KIT_CONTEXT__;b(),El(kl());var Ss;(Ss=x).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__!=null||(Ss.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),b(),b();function Ec(t){M.highPerfModeEnabled=t??!M.highPerfModeEnabled,!t&&K.value&&ys(K.value.app)}b(),b(),b();function bc(t){M.devtoolsClientDetected={...M.devtoolsClientDetected,...t};const e=Object.values(M.devtoolsClientDetected).some(Boolean);Ec(!e)}var Os;(Os=x).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__!=null||(Os.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=bc),b(),b(),b(),b(),b(),b(),b();var kc=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(t,e){this.keyToValue.set(t,e),this.valueToKey.set(e,t)}getByKey(t){return this.keyToValue.get(t)}getByValue(t){return this.valueToKey.get(t)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},Is=class{constructor(t){this.generateIdentifier=t,this.kv=new kc}register(t,e){this.kv.getByValue(t)||(e||(e=this.generateIdentifier(t)),this.kv.set(e,t))}clear(){this.kv.clear()}getIdentifier(t){return this.kv.getByValue(t)}getValue(t){return this.kv.getByKey(t)}},Sc=class extends Is{constructor(){super(t=>t.name),this.classToAllowedProps=new Map}register(t,e){typeof e=="object"?(e.allowProps&&this.classToAllowedProps.set(t,e.allowProps),super.register(t,e.identifier)):super.register(t,e)}getAllowedProps(t){return this.classToAllowedProps.get(t)}};b(),b();function Oc(t){if("values"in Object)return Object.values(t);const e=[];for(const n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e}function Ic(t,e){const n=Oc(t);if("find"in n)return n.find(e);const o=n;for(let s=0;s<o.length;s++){const r=o[s];if(e(r))return r}}function Dt(t,e){Object.entries(t).forEach(([n,o])=>e(o,n))}function ye(t,e){return t.indexOf(e)!==-1}function Ts(t,e){for(let n=0;n<t.length;n++){const o=t[n];if(e(o))return o}}var Tc=class{constructor(){this.transfomers={}}register(t){this.transfomers[t.name]=t}findApplicable(t){return Ic(this.transfomers,e=>e.isApplicable(t))}findByName(t){return this.transfomers[t]}};b(),b();var xc=t=>Object.prototype.toString.call(t).slice(8,-1),xs=t=>typeof t>"u",Vc=t=>t===null,Xt=t=>typeof t!="object"||t===null||t===Object.prototype?!1:Object.getPrototypeOf(t)===null?!0:Object.getPrototypeOf(t)===Object.prototype,vn=t=>Xt(t)&&Object.keys(t).length===0,ut=t=>Array.isArray(t),Cc=t=>typeof t=="string",Nc=t=>typeof t=="number"&&!isNaN(t),$c=t=>typeof t=="boolean",Pc=t=>t instanceof RegExp,Zt=t=>t instanceof Map,Qt=t=>t instanceof Set,Vs=t=>xc(t)==="Symbol",Rc=t=>t instanceof Date&&!isNaN(t.valueOf()),Dc=t=>t instanceof Error,Cs=t=>typeof t=="number"&&isNaN(t),Ac=t=>$c(t)||Vc(t)||xs(t)||Nc(t)||Cc(t)||Vs(t),jc=t=>typeof t=="bigint",Lc=t=>t===1/0||t===-1/0,Mc=t=>ArrayBuffer.isView(t)&&!(t instanceof DataView),Bc=t=>t instanceof URL;b();var Ns=t=>t.replace(/\./g,"\\."),wn=t=>t.map(String).map(Ns).join("."),te=t=>{const e=[];let n="";for(let s=0;s<t.length;s++){let r=t.charAt(s);if(r==="\\"&&t.charAt(s+1)==="."){n+=".",s++;continue}if(r==="."){e.push(n),n="";continue}n+=r}const o=n;return e.push(o),e};b();function et(t,e,n,o){return{isApplicable:t,annotation:e,transform:n,untransform:o}}var $s=[et(xs,"undefined",()=>null,()=>{}),et(jc,"bigint",t=>t.toString(),t=>typeof BigInt<"u"?BigInt(t):(console.error("Please add a BigInt polyfill."),t)),et(Rc,"Date",t=>t.toISOString(),t=>new Date(t)),et(Dc,"Error",(t,e)=>{const n={name:t.name,message:t.message};return e.allowedErrorProps.forEach(o=>{n[o]=t[o]}),n},(t,e)=>{const n=new Error(t.message);return n.name=t.name,n.stack=t.stack,e.allowedErrorProps.forEach(o=>{n[o]=t[o]}),n}),et(Pc,"regexp",t=>""+t,t=>{const e=t.slice(1,t.lastIndexOf("/")),n=t.slice(t.lastIndexOf("/")+1);return new RegExp(e,n)}),et(Qt,"set",t=>[...t.values()],t=>new Set(t)),et(Zt,"map",t=>[...t.entries()],t=>new Map(t)),et(t=>Cs(t)||Lc(t),"number",t=>Cs(t)?"NaN":t>0?"Infinity":"-Infinity",Number),et(t=>t===0&&1/t===-1/0,"number",()=>"-0",Number),et(Bc,"URL",t=>t.toString(),t=>new URL(t))];function ve(t,e,n,o){return{isApplicable:t,annotation:e,transform:n,untransform:o}}var Ps=ve((t,e)=>Vs(t)?!!e.symbolRegistry.getIdentifier(t):!1,(t,e)=>["symbol",e.symbolRegistry.getIdentifier(t)],t=>t.description,(t,e,n)=>{const o=n.symbolRegistry.getValue(e[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),Uc=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((t,e)=>(t[e.name]=e,t),{}),Rs=ve(Mc,t=>["typed-array",t.constructor.name],t=>[...t],(t,e)=>{const n=Uc[e[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(t)});function Ds(t,e){return t!=null&&t.constructor?!!e.classRegistry.getIdentifier(t.constructor):!1}var As=ve(Ds,(t,e)=>["class",e.classRegistry.getIdentifier(t.constructor)],(t,e)=>{const n=e.classRegistry.getAllowedProps(t.constructor);if(!n)return{...t};const o={};return n.forEach(s=>{o[s]=t[s]}),o},(t,e,n)=>{const o=n.classRegistry.getValue(e[1]);if(!o)throw new Error(`Trying to deserialize unknown class '${e[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(o.prototype),t)}),js=ve((t,e)=>!!e.customTransformerRegistry.findApplicable(t),(t,e)=>["custom",e.customTransformerRegistry.findApplicable(t).name],(t,e)=>e.customTransformerRegistry.findApplicable(t).serialize(t),(t,e,n)=>{const o=n.customTransformerRegistry.findByName(e[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(t)}),zc=[As,Ps,js,Rs],Ls=(t,e)=>{const n=Ts(zc,s=>s.isApplicable(t,e));if(n)return{value:n.transform(t,e),type:n.annotation(t,e)};const o=Ts($s,s=>s.isApplicable(t,e));if(o)return{value:o.transform(t,e),type:o.annotation}},Ms={};$s.forEach(t=>{Ms[t.annotation]=t});var Hc=(t,e,n)=>{if(ut(e))switch(e[0]){case"symbol":return Ps.untransform(t,e,n);case"class":return As.untransform(t,e,n);case"custom":return js.untransform(t,e,n);case"typed-array":return Rs.untransform(t,e,n);default:throw new Error("Unknown transformation: "+e)}else{const o=Ms[e];if(!o)throw new Error("Unknown transformation: "+e);return o.untransform(t,n)}};b();var At=(t,e)=>{if(e>t.size)throw new Error("index out of bounds");const n=t.keys();for(;e>0;)n.next(),e--;return n.next().value};function Bs(t){if(ye(t,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(ye(t,"prototype"))throw new Error("prototype is not allowed as a property");if(ye(t,"constructor"))throw new Error("constructor is not allowed as a property")}var Kc=(t,e)=>{Bs(e);for(let n=0;n<e.length;n++){const o=e[n];if(Qt(t))t=At(t,+o);else if(Zt(t)){const s=+o,r=+e[++n]==0?"key":"value",i=At(t,s);switch(r){case"key":t=i;break;case"value":t=t.get(i);break}}else t=t[o]}return t},En=(t,e,n)=>{if(Bs(e),e.length===0)return n(t);let o=t;for(let r=0;r<e.length-1;r++){const i=e[r];if(ut(o)){const l=+i;o=o[l]}else if(Xt(o))o=o[i];else if(Qt(o)){const l=+i;o=At(o,l)}else if(Zt(o)){if(r===e.length-2)break;const l=+i,c=+e[++r]==0?"key":"value",u=At(o,l);switch(c){case"key":o=u;break;case"value":o=o.get(u);break}}}const s=e[e.length-1];if(ut(o)?o[+s]=n(o[+s]):Xt(o)&&(o[s]=n(o[s])),Qt(o)){const r=At(o,+s),i=n(r);r!==i&&(o.delete(r),o.add(i))}if(Zt(o)){const r=+e[e.length-2],i=At(o,r);switch(+s==0?"key":"value"){case"key":{const l=n(i);o.set(l,o.get(i)),l!==i&&o.delete(i);break}case"value":{o.set(i,n(o.get(i)));break}}}return t};function bn(t,e,n=[]){if(!t)return;if(!ut(t)){Dt(t,(r,i)=>bn(r,e,[...n,...te(i)]));return}const[o,s]=t;s&&Dt(s,(r,i)=>{bn(r,e,[...n,...te(i)])}),e(o,n)}function Fc(t,e,n){return bn(e,(o,s)=>{t=En(t,s,r=>Hc(r,o,n))}),t}function Wc(t,e){function n(o,s){const r=Kc(t,te(s));o.map(te).forEach(i=>{t=En(t,i,()=>r)})}if(ut(e)){const[o,s]=e;o.forEach(r=>{t=En(t,te(r),()=>t)}),s&&Dt(s,n)}else Dt(e,n);return t}var Gc=(t,e)=>Xt(t)||ut(t)||Zt(t)||Qt(t)||Ds(t,e);function Jc(t,e,n){const o=n.get(t);o?o.push(e):n.set(t,[e])}function Yc(t,e){const n={};let o;return t.forEach(s=>{if(s.length<=1)return;e||(s=s.map(l=>l.map(String)).sort((l,c)=>l.length-c.length));const[r,...i]=s;r.length===0?o=i.map(wn):n[wn(r)]=i.map(wn)}),o?vn(n)?[o]:[o,n]:vn(n)?void 0:n}var Us=(t,e,n,o,s=[],r=[],i=new Map)=>{var l;const c=Ac(t);if(!c){Jc(t,s,e);const m=i.get(t);if(m)return o?{transformedValue:null}:m}if(!Gc(t,n)){const m=Ls(t,n),_=m?{transformedValue:m.value,annotations:[m.type]}:{transformedValue:t};return c||i.set(t,_),_}if(ye(r,t))return{transformedValue:null};const u=Ls(t,n),p=(l=u==null?void 0:u.value)!=null?l:t,d=ut(p)?[]:{},f={};Dt(p,(m,_)=>{if(_==="__proto__"||_==="constructor"||_==="prototype")throw new Error(`Detected property ${_}. This is a prototype pollution risk, please remove it from your object.`);const g=Us(m,e,n,o,[...s,_],[...r,t],i);d[_]=g.transformedValue,ut(g.annotations)?f[_]=g.annotations:Xt(g.annotations)&&Dt(g.annotations,(v,I)=>{f[Ns(_)+"."+I]=v})});const h=vn(f)?{transformedValue:d,annotations:u?[u.type]:void 0}:{transformedValue:d,annotations:u?[u.type,f]:f};return c||i.set(t,h),h};b(),b();function zs(t){return Object.prototype.toString.call(t).slice(8,-1)}function Hs(t){return zs(t)==="Array"}function qc(t){if(zs(t)!=="Object")return!1;const e=Object.getPrototypeOf(t);return!!e&&e.constructor===Object&&e===Object.prototype}function Xc(t,e,n,o,s){const r={}.propertyIsEnumerable.call(o,e)?"enumerable":"nonenumerable";r==="enumerable"&&(t[e]=n),s&&r==="nonenumerable"&&Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}function kn(t,e={}){if(Hs(t))return t.map(s=>kn(s,e));if(!qc(t))return t;const n=Object.getOwnPropertyNames(t),o=Object.getOwnPropertySymbols(t);return[...n,...o].reduce((s,r)=>{if(Hs(e.props)&&!e.props.includes(r))return s;const i=t[r],l=kn(i,e);return Xc(s,r,l,t,e.nonenumerable),s},{})}var A=class{constructor({dedupe:t=!1}={}){this.classRegistry=new Sc,this.symbolRegistry=new Is(e=>{var n;return(n=e.description)!=null?n:""}),this.customTransformerRegistry=new Tc,this.allowedErrorProps=[],this.dedupe=t}serialize(t){const e=new Map,n=Us(t,e,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta={...o.meta,values:n.annotations});const s=Yc(e,this.dedupe);return s&&(o.meta={...o.meta,referentialEqualities:s}),o}deserialize(t){const{json:e,meta:n}=t;let o=kn(e);return n!=null&&n.values&&(o=Fc(o,n.values,this)),n!=null&&n.referentialEqualities&&(o=Wc(o,n.referentialEqualities)),o}stringify(t){return JSON.stringify(this.serialize(t))}parse(t){return this.deserialize(JSON.parse(t))}registerClass(t,e){this.classRegistry.register(t,e)}registerSymbol(t,e){this.symbolRegistry.register(t,e)}registerCustom(t,e){this.customTransformerRegistry.register({name:e,...t})}allowErrorProps(...t){this.allowedErrorProps.push(...t)}};A.defaultInstance=new A,A.serialize=A.defaultInstance.serialize.bind(A.defaultInstance),A.deserialize=A.defaultInstance.deserialize.bind(A.defaultInstance),A.stringify=A.defaultInstance.stringify.bind(A.defaultInstance),A.parse=A.defaultInstance.parse.bind(A.defaultInstance),A.registerClass=A.defaultInstance.registerClass.bind(A.defaultInstance),A.registerSymbol=A.defaultInstance.registerSymbol.bind(A.defaultInstance),A.registerCustom=A.defaultInstance.registerCustom.bind(A.defaultInstance),A.allowErrorProps=A.defaultInstance.allowErrorProps.bind(A.defaultInstance),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b();var Ks;(Ks=x).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__!=null||(Ks.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var Fs;(Fs=x).__VUE_DEVTOOLS_KIT_RPC_CLIENT__!=null||(Fs.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var Ws;(Ws=x).__VUE_DEVTOOLS_KIT_RPC_SERVER__!=null||(Ws.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var Gs;(Gs=x).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__!=null||(Gs.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var Js;(Js=x).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__!=null||(Js.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var Ys;(Ys=x).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__!=null||(Ys.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),b(),b(),b(),b(),b(),b(),b();/*!
4
4
  * pinia v3.0.3
5
5
  * (c) 2025 Eduardo San Martin Morote
6
6
  * @license MIT
7
- */let te;const ee=t=>te=t,Yr=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function _t(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var et;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(et||(et={}));const ut=typeof window<"u",Xr=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Zc(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function kn(t,e,n){const o=new XMLHttpRequest;o.open("GET",t),o.responseType="blob",o.onload=function(){ts(o.response,e,n)},o.onerror=function(){console.error("could not download file")},o.send()}function Zr(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function ve(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{const e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});t.dispatchEvent(e)}}const we=typeof navigator=="object"?navigator:{userAgent:""},Qr=/Macintosh/.test(we.userAgent)&&/AppleWebKit/.test(we.userAgent)&&!/Safari/.test(we.userAgent),ts=ut?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Qr?Qc:"msSaveOrOpenBlob"in we?tu:eu:()=>{};function Qc(t,e="download",n){const o=document.createElement("a");o.download=e,o.rel="noopener",typeof t=="string"?(o.href=t,o.origin!==location.origin?Zr(o.href)?kn(t,e,n):(o.target="_blank",ve(o)):ve(o)):(o.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){ve(o)},0))}function tu(t,e="download",n){if(typeof t=="string")if(Zr(t))kn(t,e,n);else{const o=document.createElement("a");o.href=t,o.target="_blank",setTimeout(function(){ve(o)})}else navigator.msSaveOrOpenBlob(Zc(t,n),e)}function eu(t,e,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof t=="string")return kn(t,e,n);const r=t.type==="application/octet-stream",s=/constructor/i.test(String(Xr.HTMLElement))||"safari"in Xr,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||r&&s||Qr)&&typeof FileReader<"u"){const l=new FileReader;l.onloadend=function(){let c=l.result;if(typeof c!="string")throw o=null,new Error("Wrong reader.result type");c=i?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=c:location.assign(c),o=null},l.readAsDataURL(t)}else{const l=URL.createObjectURL(t);o?o.location.assign(l):location.href=l,o=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}function U(t,e){const n="🍍 "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,e):e==="error"?console.error(n):e==="warn"?console.warn(n):console.log(n)}function Sn(t){return"_a"in t&&"install"in t}function es(){if(!("clipboard"in navigator))return U("Your browser doesn't support the Clipboard API","error"),!0}function ns(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(U('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function nu(t){if(!es())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),U("Global state copied to clipboard.")}catch(e){if(ns(e))return;U("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function ou(t){if(!es())try{os(t,JSON.parse(await navigator.clipboard.readText())),U("Global state pasted from clipboard.")}catch(e){if(ns(e))return;U("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function ru(t){try{ts(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){U("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let ot;function su(){ot||(ot=document.createElement("input"),ot.type="file",ot.accept=".json");function t(){return new Promise((e,n)=>{ot.onchange=async()=>{const o=ot.files;if(!o)return e(null);const r=o.item(0);return e(r?{text:await r.text(),file:r}:null)},ot.oncancel=()=>e(null),ot.onerror=n,ot.click()})}return t}async function iu(t){try{const e=await su()();if(!e)return;const{text:n,file:o}=e;os(t,JSON.parse(n)),U(`Global state imported from "${o.name}".`)}catch(e){U("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function os(t,e){for(const n in e){const o=t.state.value[n];o?Object.assign(o,e[n]):t.state.value[n]=e[n]}}function Q(t){return{_custom:{display:t}}}const rs="🍍 Pinia (root)",be="_root";function au(t){return Sn(t)?{id:be,label:rs}:{id:t.$id,label:t.$id}}function lu(t){if(Sn(t)){const n=Array.from(t._s.keys()),o=t._s;return{state:n.map(r=>({editable:!0,key:r,value:t.state.value[r]})),getters:n.filter(r=>o.get(r)._getters).map(r=>{const s=o.get(r);return{editable:!1,key:r,value:s._getters.reduce((i,l)=>(i[l]=s[l],i),{})}})}}const e={state:Object.keys(t.$state).map(n=>({editable:!0,key:n,value:t.$state[n]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(n=>({editable:!1,key:n,value:t[n]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(n=>({editable:!0,key:n,value:t[n]}))),e}function cu(t){return t?Array.isArray(t)?t.reduce((e,n)=>(e.keys.push(n.key),e.operations.push(n.type),e.oldValue[n.key]=n.oldValue,e.newValue[n.key]=n.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Q(t.type),key:Q(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function uu(t){switch(t){case et.direct:return"mutation";case et.patchFunction:return"$patch";case et.patchObject:return"$patch";default:return"unknown"}}let Dt=!0;const Ee=[],yt="pinia:mutations",H="pinia",{assign:du}=Object,ke=t=>"🍍 "+t;function fu(t,e){_r({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ee,app:t},n=>{typeof n.now!="function"&&U("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:yt,label:"Pinia 🍍",color:15064968}),n.addInspector({id:H,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{nu(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await ou(e),n.sendInspectorTree(H),n.sendInspectorState(H)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{ru(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await iu(e),n.sendInspectorTree(H),n.sendInspectorState(H)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const r=e._s.get(o);r?typeof r.$reset!="function"?U(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(r.$reset(),U(`Store "${o}" reset.`)):U(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(o=>{const r=o.componentInstance&&o.componentInstance.proxy;if(r&&r._pStores){const s=o.componentInstance.proxy._pStores;Object.values(s).forEach(i=>{o.instanceData.state.push({type:ke(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:a.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((l,c)=>(l[c]=i.$state[c],l),{})}),i._getters&&i._getters.length&&o.instanceData.state.push({type:ke(i.$id),key:"getters",editable:!1,value:i._getters.reduce((l,c)=>{try{l[c]=i[c]}catch(u){l[c]=u}return l},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===t&&o.inspectorId===H){let r=[e];r=r.concat(Array.from(e._s.values())),o.rootNodes=(o.filter?r.filter(s=>"$id"in s?s.$id.toLowerCase().includes(o.filter.toLowerCase()):rs.toLowerCase().includes(o.filter.toLowerCase())):r).map(au)}}),globalThis.$pinia=e,n.on.getInspectorState(o=>{if(o.app===t&&o.inspectorId===H){const r=o.nodeId===be?e:e._s.get(o.nodeId);if(!r)return;r&&(o.nodeId!==be&&(globalThis.$store=a.toRaw(r)),o.state=lu(r))}}),n.on.editInspectorState(o=>{if(o.app===t&&o.inspectorId===H){const r=o.nodeId===be?e:e._s.get(o.nodeId);if(!r)return U(`store "${o.nodeId}" not found`,"error");const{path:s}=o;Sn(r)?s.unshift("state"):(s.length!==1||!r._customProperties.has(s[0])||s[0]in r.$state)&&s.unshift("$state"),Dt=!1,o.set(r,s,o.state.value),Dt=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("🍍")){const r=o.type.replace(/^🍍\s*/,""),s=e._s.get(r);if(!s)return U(`store "${r}" not found`,"error");const{path:i}=o;if(i[0]!=="state")return U(`Invalid path for store "${r}":
7
+ */let ee;const ne=t=>ee=t,qs=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function yt(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var nt;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(nt||(nt={}));const dt=typeof window<"u",Xs=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Zc(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function Sn(t,e,n){const o=new XMLHttpRequest;o.open("GET",t),o.responseType="blob",o.onload=function(){tr(o.response,e,n)},o.onerror=function(){console.error("could not download file")},o.send()}function Zs(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function we(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{const e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});t.dispatchEvent(e)}}const Ee=typeof navigator=="object"?navigator:{userAgent:""},Qs=/Macintosh/.test(Ee.userAgent)&&/AppleWebKit/.test(Ee.userAgent)&&!/Safari/.test(Ee.userAgent),tr=dt?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Qs?Qc:"msSaveOrOpenBlob"in Ee?tu:eu:()=>{};function Qc(t,e="download",n){const o=document.createElement("a");o.download=e,o.rel="noopener",typeof t=="string"?(o.href=t,o.origin!==location.origin?Zs(o.href)?Sn(t,e,n):(o.target="_blank",we(o)):we(o)):(o.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){we(o)},0))}function tu(t,e="download",n){if(typeof t=="string")if(Zs(t))Sn(t,e,n);else{const o=document.createElement("a");o.href=t,o.target="_blank",setTimeout(function(){we(o)})}else navigator.msSaveOrOpenBlob(Zc(t,n),e)}function eu(t,e,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof t=="string")return Sn(t,e,n);const s=t.type==="application/octet-stream",r=/constructor/i.test(String(Xs.HTMLElement))||"safari"in Xs,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&r||Qs)&&typeof FileReader<"u"){const l=new FileReader;l.onloadend=function(){let c=l.result;if(typeof c!="string")throw o=null,new Error("Wrong reader.result type");c=i?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=c:location.assign(c),o=null},l.readAsDataURL(t)}else{const l=URL.createObjectURL(t);o?o.location.assign(l):location.href=l,o=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}function B(t,e){const n="🍍 "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,e):e==="error"?console.error(n):e==="warn"?console.warn(n):console.log(n)}function On(t){return"_a"in t&&"install"in t}function er(){if(!("clipboard"in navigator))return B("Your browser doesn't support the Clipboard API","error"),!0}function nr(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(B('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function nu(t){if(!er())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),B("Global state copied to clipboard.")}catch(e){if(nr(e))return;B("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function ou(t){if(!er())try{or(t,JSON.parse(await navigator.clipboard.readText())),B("Global state pasted from clipboard.")}catch(e){if(nr(e))return;B("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function su(t){try{tr(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){B("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let st;function ru(){st||(st=document.createElement("input"),st.type="file",st.accept=".json");function t(){return new Promise((e,n)=>{st.onchange=async()=>{const o=st.files;if(!o)return e(null);const s=o.item(0);return e(s?{text:await s.text(),file:s}:null)},st.oncancel=()=>e(null),st.onerror=n,st.click()})}return t}async function iu(t){try{const e=await ru()();if(!e)return;const{text:n,file:o}=e;or(t,JSON.parse(n)),B(`Global state imported from "${o.name}".`)}catch(e){B("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function or(t,e){for(const n in e){const o=t.state.value[n];o?Object.assign(o,e[n]):t.state.value[n]=e[n]}}function tt(t){return{_custom:{display:t}}}const sr="🍍 Pinia (root)",be="_root";function au(t){return On(t)?{id:be,label:sr}:{id:t.$id,label:t.$id}}function lu(t){if(On(t)){const n=Array.from(t._s.keys()),o=t._s;return{state:n.map(s=>({editable:!0,key:s,value:t.state.value[s]})),getters:n.filter(s=>o.get(s)._getters).map(s=>{const r=o.get(s);return{editable:!1,key:s,value:r._getters.reduce((i,l)=>(i[l]=r[l],i),{})}})}}const e={state:Object.keys(t.$state).map(n=>({editable:!0,key:n,value:t.$state[n]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(n=>({editable:!1,key:n,value:t[n]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(n=>({editable:!0,key:n,value:t[n]}))),e}function cu(t){return t?Array.isArray(t)?t.reduce((e,n)=>(e.keys.push(n.key),e.operations.push(n.type),e.oldValue[n.key]=n.oldValue,e.newValue[n.key]=n.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:tt(t.type),key:tt(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function uu(t){switch(t){case nt.direct:return"mutation";case nt.patchFunction:return"$patch";case nt.patchObject:return"$patch";default:return"unknown"}}let jt=!0;const ke=[],vt="pinia:mutations",z="pinia",{assign:du}=Object,Se=t=>"🍍 "+t;function fu(t,e){_s({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ke,app:t},n=>{typeof n.now!="function"&&B("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:vt,label:"Pinia 🍍",color:15064968}),n.addInspector({id:z,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{nu(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await ou(e),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{su(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await iu(e),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const s=e._s.get(o);s?typeof s.$reset!="function"?B(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),B(`Store "${o}" reset.`)):B(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(o=>{const s=o.componentInstance&&o.componentInstance.proxy;if(s&&s._pStores){const r=o.componentInstance.proxy._pStores;Object.values(r).forEach(i=>{o.instanceData.state.push({type:Se(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:a.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((l,c)=>(l[c]=i.$state[c],l),{})}),i._getters&&i._getters.length&&o.instanceData.state.push({type:Se(i.$id),key:"getters",editable:!1,value:i._getters.reduce((l,c)=>{try{l[c]=i[c]}catch(u){l[c]=u}return l},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===t&&o.inspectorId===z){let s=[e];s=s.concat(Array.from(e._s.values())),o.rootNodes=(o.filter?s.filter(r=>"$id"in r?r.$id.toLowerCase().includes(o.filter.toLowerCase()):sr.toLowerCase().includes(o.filter.toLowerCase())):s).map(au)}}),globalThis.$pinia=e,n.on.getInspectorState(o=>{if(o.app===t&&o.inspectorId===z){const s=o.nodeId===be?e:e._s.get(o.nodeId);if(!s)return;s&&(o.nodeId!==be&&(globalThis.$store=a.toRaw(s)),o.state=lu(s))}}),n.on.editInspectorState(o=>{if(o.app===t&&o.inspectorId===z){const s=o.nodeId===be?e:e._s.get(o.nodeId);if(!s)return B(`store "${o.nodeId}" not found`,"error");const{path:r}=o;On(s)?r.unshift("state"):(r.length!==1||!s._customProperties.has(r[0])||r[0]in s.$state)&&r.unshift("$state"),jt=!1,o.set(s,r,o.state.value),jt=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("🍍")){const s=o.type.replace(/^🍍\s*/,""),r=e._s.get(s);if(!r)return B(`store "${s}" not found`,"error");const{path:i}=o;if(i[0]!=="state")return B(`Invalid path for store "${s}":
8
8
  ${i}
9
- Only state can be modified.`);i[0]="$state",Dt=!1,o.set(s,i,o.state.value),Dt=!0}})})}function pu(t,e){Ee.includes(ke(e.$id))||Ee.push(ke(e.$id)),_r({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ee,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const o=typeof n.now=="function"?n.now.bind(n):Date.now;e.$onAction(({after:i,onError:l,name:c,args:u})=>{const p=ss++;n.addTimelineEvent({layerId:yt,event:{time:o(),title:"🛫 "+c,subtitle:"start",data:{store:Q(e.$id),action:Q(c),args:u},groupId:p}}),i(d=>{dt=void 0,n.addTimelineEvent({layerId:yt,event:{time:o(),title:"🛬 "+c,subtitle:"end",data:{store:Q(e.$id),action:Q(c),args:u,result:d},groupId:p}})}),l(d=>{dt=void 0,n.addTimelineEvent({layerId:yt,event:{time:o(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:Q(e.$id),action:Q(c),args:u,error:d},groupId:p}})})},!0),e._customProperties.forEach(i=>{a.watch(()=>a.unref(e[i]),(l,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(H),Dt&&n.addTimelineEvent({layerId:yt,event:{time:o(),title:"Change",subtitle:i,data:{newValue:l,oldValue:c},groupId:dt}})},{deep:!0})}),e.$subscribe(({events:i,type:l},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(H),!Dt)return;const u={time:o(),title:uu(l),data:du({store:Q(e.$id)},cu(i)),groupId:dt};l===et.patchFunction?u.subtitle="⤵️":l===et.patchObject?u.subtitle="🧩":i&&!Array.isArray(i)&&(u.subtitle=i.type),i&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:yt,event:u})},{detached:!0,flush:"sync"});const r=e._hotUpdate;e._hotUpdate=a.markRaw(i=>{r(i),n.addTimelineEvent({layerId:yt,event:{time:o(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:Q(e.$id),info:Q("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(H),n.sendInspectorState(H)});const{$dispose:s}=e;e.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(H),n.sendInspectorState(H),n.getSettings().logStoreChanges&&U(`Disposed "${e.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(H),n.sendInspectorState(H),n.getSettings().logStoreChanges&&U(`"${e.$id}" store installed 🆕`)})}let ss=0,dt;function is(t,e,n){const o=e.reduce((r,s)=>(r[s]=a.toRaw(t)[s],r),{});for(const r in o)t[r]=function(){const s=ss,i=n?new Proxy(t,{get(...c){return dt=s,Reflect.get(...c)},set(...c){return dt=s,Reflect.set(...c)}}):t;dt=s;const l=o[r].apply(i,arguments);return dt=void 0,l}}function hu({app:t,store:e,options:n}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!n.state,!e._p._testing){is(e,Object.keys(n.actions),e._isOptionsAPI);const o=e._hotUpdate;a.toRaw(e)._hotUpdate=function(r){o.apply(this,arguments),is(e,Object.keys(r._hmrPayload.actions),!!e._isOptionsAPI)}}pu(t,e)}}function mu(){const t=a.effectScope(!0),e=t.run(()=>a.ref({}));let n=[],o=[];const r=a.markRaw({install(s){ee(r),r._a=s,s.provide(Yr,r),s.config.globalProperties.$pinia=r,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ut&&fu(s,r),o.forEach(i=>n.push(i)),o=[]},use(s){return this._a?n.push(s):o.push(s),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ut&&typeof Proxy<"u"&&r.use(hu),r}function as(t,e){for(const n in e){const o=e[n];if(!(n in t))continue;const r=t[n];_t(r)&&_t(o)&&!a.isRef(o)&&!a.isReactive(o)?t[n]=as(r,o):t[n]=o}return t}const ls=()=>{};function cs(t,e,n,o=ls){t.push(e);const r=()=>{const s=t.indexOf(e);s>-1&&(t.splice(s,1),o())};return!n&&a.getCurrentScope()&&a.onScopeDispose(r),r}function At(t,...e){t.slice().forEach(n=>{n(...e)})}const gu=t=>t(),us=Symbol(),On=Symbol();function In(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,o)=>t.set(o,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n],r=t[n];_t(r)&&_t(o)&&t.hasOwnProperty(n)&&!a.isRef(o)&&!a.isReactive(o)?t[n]=In(r,o):t[n]=o}return t}const _u=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function yu(t){return!_t(t)||!Object.prototype.hasOwnProperty.call(t,_u)}const{assign:X}=Object;function ds(t){return!!(a.isRef(t)&&t.effect)}function fs(t,e,n,o){const{state:r,actions:s,getters:i}=e,l=n.state.value[t];let c;function u(){!l&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[t]=r?r():{});const p=process.env.NODE_ENV!=="production"&&o?a.toRefs(a.ref(r?r():{}).value):a.toRefs(n.state.value[t]);return X(p,s,Object.keys(i||{}).reduce((d,f)=>(process.env.NODE_ENV!=="production"&&f in p&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${t}".`),d[f]=a.markRaw(a.computed(()=>{ee(n);const h=n._s.get(t);return i[f].call(h,h)})),d),{}))}return c=Tn(t,u,e,n,o,!0),c}function Tn(t,e,n={},o,r,s){let i;const l=X({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&(c.onTrigger=T=>{u?h=T:u==!1&&!S._hotUpdating&&(Array.isArray(h)?h.push(T):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,p,d=[],f=[],h;const m=o.state.value[t];!s&&!m&&(process.env.NODE_ENV==="production"||!r)&&(o.state.value[t]={});const _=a.ref({});let g;function y(T){let v;u=p=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof T=="function"?(T(o.state.value[t]),v={type:et.patchFunction,storeId:t,events:h}):(In(o.state.value[t],T),v={type:et.patchObject,payload:T,storeId:t,events:h});const O=g=Symbol();a.nextTick().then(()=>{g===O&&(u=!0)}),p=!0,At(d,v,o.state.value[t])}const I=s?function(){const{state:T}=n,v=T?T():{};this.$patch(O=>{X(O,v)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:ls;function V(){i.stop(),d=[],f=[],o._s.delete(t)}const P=(T,v="")=>{if(us in T)return T[On]=v,T;const O=function(){ee(o);const C=Array.from(arguments),D=[],F=[];function z(b){D.push(b)}function N(b){F.push(b)}At(f,{args:C,name:O[On],store:S,after:z,onError:N});let w;try{w=T.apply(this&&this.$id===t?this:S,C)}catch(b){throw At(F,b),b}return w instanceof Promise?w.then(b=>(At(D,b),b)).catch(b=>(At(F,b),Promise.reject(b))):(At(D,w),w)};return O[us]=!0,O[On]=v,O},R=a.markRaw({actions:{},getters:{},state:[],hotState:_}),J={_p:o,$id:t,$onAction:cs.bind(null,f),$patch:y,$reset:I,$subscribe(T,v={}){const O=cs(d,T,v.detached,()=>C()),C=i.run(()=>a.watch(()=>o.state.value[t],D=>{(v.flush==="sync"?p:u)&&T({storeId:t,type:et.direct,events:h},D)},X({},c,v)));return O},$dispose:V},S=a.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ut?X({_hmrPayload:R,_customProperties:a.markRaw(new Set)},J):J);o._s.set(t,S);const L=(o._a&&o._a.runWithContext||gu)(()=>o._e.run(()=>(i=a.effectScope()).run(()=>e({action:P}))));for(const T in L){const v=L[T];if(a.isRef(v)&&!ds(v)||a.isReactive(v))process.env.NODE_ENV!=="production"&&r?_.value[T]=a.toRef(L,T):s||(m&&yu(v)&&(a.isRef(v)?v.value=m[T]:In(v,m[T])),o.state.value[t][T]=v),process.env.NODE_ENV!=="production"&&R.state.push(T);else if(typeof v=="function"){const O=process.env.NODE_ENV!=="production"&&r?v:P(v,T);L[T]=O,process.env.NODE_ENV!=="production"&&(R.actions[T]=v),l.actions[T]=v}else process.env.NODE_ENV!=="production"&&ds(v)&&(R.getters[T]=s?n.getters[T]:v,ut&&(L._getters||(L._getters=a.markRaw([]))).push(T))}if(X(S,L),X(a.toRaw(S),L),Object.defineProperty(S,"$state",{get:()=>process.env.NODE_ENV!=="production"&&r?_.value:o.state.value[t],set:T=>{if(process.env.NODE_ENV!=="production"&&r)throw new Error("cannot set hotState");y(v=>{X(v,T)})}}),process.env.NODE_ENV!=="production"&&(S._hotUpdate=a.markRaw(T=>{S._hotUpdating=!0,T._hmrPayload.state.forEach(v=>{if(v in S.$state){const O=T.$state[v],C=S.$state[v];typeof O=="object"&&_t(O)&&_t(C)?as(O,C):T.$state[v]=C}S[v]=a.toRef(T.$state,v)}),Object.keys(S.$state).forEach(v=>{v in T.$state||delete S[v]}),u=!1,p=!1,o.state.value[t]=a.toRef(T._hmrPayload,"hotState"),p=!0,a.nextTick().then(()=>{u=!0});for(const v in T._hmrPayload.actions){const O=T[v];S[v]=P(O,v)}for(const v in T._hmrPayload.getters){const O=T._hmrPayload.getters[v],C=s?a.computed(()=>(ee(o),O.call(S,S))):O;S[v]=C}Object.keys(S._hmrPayload.getters).forEach(v=>{v in T._hmrPayload.getters||delete S[v]}),Object.keys(S._hmrPayload.actions).forEach(v=>{v in T._hmrPayload.actions||delete S[v]}),S._hmrPayload=T._hmrPayload,S._getters=T._getters,S._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ut){const T={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(v=>{Object.defineProperty(S,v,X({value:S[v]},T))})}return o._p.forEach(T=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ut){const v=i.run(()=>T({store:S,app:o._a,pinia:o,options:l}));Object.keys(v||{}).forEach(O=>S._customProperties.add(O)),X(S,v)}else X(S,i.run(()=>T({store:S,app:o._a,pinia:o,options:l})))}),process.env.NODE_ENV!=="production"&&S.$state&&typeof S.$state=="object"&&typeof S.$state.constructor=="function"&&!S.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
9
+ Only state can be modified.`);i[0]="$state",jt=!1,o.set(r,i,o.state.value),jt=!0}})})}function pu(t,e){ke.includes(Se(e.$id))||ke.push(Se(e.$id)),_s({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ke,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const o=typeof n.now=="function"?n.now.bind(n):Date.now;e.$onAction(({after:i,onError:l,name:c,args:u})=>{const p=rr++;n.addTimelineEvent({layerId:vt,event:{time:o(),title:"🛫 "+c,subtitle:"start",data:{store:tt(e.$id),action:tt(c),args:u},groupId:p}}),i(d=>{ft=void 0,n.addTimelineEvent({layerId:vt,event:{time:o(),title:"🛬 "+c,subtitle:"end",data:{store:tt(e.$id),action:tt(c),args:u,result:d},groupId:p}})}),l(d=>{ft=void 0,n.addTimelineEvent({layerId:vt,event:{time:o(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:tt(e.$id),action:tt(c),args:u,error:d},groupId:p}})})},!0),e._customProperties.forEach(i=>{a.watch(()=>a.unref(e[i]),(l,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(z),jt&&n.addTimelineEvent({layerId:vt,event:{time:o(),title:"Change",subtitle:i,data:{newValue:l,oldValue:c},groupId:ft}})},{deep:!0})}),e.$subscribe(({events:i,type:l},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(z),!jt)return;const u={time:o(),title:uu(l),data:du({store:tt(e.$id)},cu(i)),groupId:ft};l===nt.patchFunction?u.subtitle="⤵️":l===nt.patchObject?u.subtitle="🧩":i&&!Array.isArray(i)&&(u.subtitle=i.type),i&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:vt,event:u})},{detached:!0,flush:"sync"});const s=e._hotUpdate;e._hotUpdate=a.markRaw(i=>{s(i),n.addTimelineEvent({layerId:vt,event:{time:o(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:tt(e.$id),info:tt("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z)});const{$dispose:r}=e;e.$dispose=()=>{r(),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&B(`Disposed "${e.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&B(`"${e.$id}" store installed 🆕`)})}let rr=0,ft;function ir(t,e,n){const o=e.reduce((s,r)=>(s[r]=a.toRaw(t)[r],s),{});for(const s in o)t[s]=function(){const r=rr,i=n?new Proxy(t,{get(...c){return ft=r,Reflect.get(...c)},set(...c){return ft=r,Reflect.set(...c)}}):t;ft=r;const l=o[s].apply(i,arguments);return ft=void 0,l}}function hu({app:t,store:e,options:n}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!n.state,!e._p._testing){ir(e,Object.keys(n.actions),e._isOptionsAPI);const o=e._hotUpdate;a.toRaw(e)._hotUpdate=function(s){o.apply(this,arguments),ir(e,Object.keys(s._hmrPayload.actions),!!e._isOptionsAPI)}}pu(t,e)}}function mu(){const t=a.effectScope(!0),e=t.run(()=>a.ref({}));let n=[],o=[];const s=a.markRaw({install(r){ne(s),s._a=r,r.provide(qs,s),r.config.globalProperties.$pinia=s,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&dt&&fu(r,s),o.forEach(i=>n.push(i)),o=[]},use(r){return this._a?n.push(r):o.push(r),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&dt&&typeof Proxy<"u"&&s.use(hu),s}function ar(t,e){for(const n in e){const o=e[n];if(!(n in t))continue;const s=t[n];yt(s)&&yt(o)&&!a.isRef(o)&&!a.isReactive(o)?t[n]=ar(s,o):t[n]=o}return t}const lr=()=>{};function cr(t,e,n,o=lr){t.push(e);const s=()=>{const r=t.indexOf(e);r>-1&&(t.splice(r,1),o())};return!n&&a.getCurrentScope()&&a.onScopeDispose(s),s}function Lt(t,...e){t.slice().forEach(n=>{n(...e)})}const gu=t=>t(),ur=Symbol(),In=Symbol();function Tn(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,o)=>t.set(o,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n],s=t[n];yt(s)&&yt(o)&&t.hasOwnProperty(n)&&!a.isRef(o)&&!a.isReactive(o)?t[n]=Tn(s,o):t[n]=o}return t}const _u=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function yu(t){return!yt(t)||!Object.prototype.hasOwnProperty.call(t,_u)}const{assign:Z}=Object;function dr(t){return!!(a.isRef(t)&&t.effect)}function fr(t,e,n,o){const{state:s,actions:r,getters:i}=e,l=n.state.value[t];let c;function u(){!l&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[t]=s?s():{});const p=process.env.NODE_ENV!=="production"&&o?a.toRefs(a.ref(s?s():{}).value):a.toRefs(n.state.value[t]);return Z(p,r,Object.keys(i||{}).reduce((d,f)=>(process.env.NODE_ENV!=="production"&&f in p&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${t}".`),d[f]=a.markRaw(a.computed(()=>{ne(n);const h=n._s.get(t);return i[f].call(h,h)})),d),{}))}return c=xn(t,u,e,n,o,!0),c}function xn(t,e,n={},o,s,r){let i;const l=Z({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&(c.onTrigger=T=>{u?h=T:u==!1&&!k._hotUpdating&&(Array.isArray(h)?h.push(T):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,p,d=[],f=[],h;const m=o.state.value[t];!r&&!m&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[t]={});const _=a.ref({});let g;function v(T){let w;u=p=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof T=="function"?(T(o.state.value[t]),w={type:nt.patchFunction,storeId:t,events:h}):(Tn(o.state.value[t],T),w={type:nt.patchObject,payload:T,storeId:t,events:h});const S=g=Symbol();a.nextTick().then(()=>{g===S&&(u=!0)}),p=!0,Lt(d,w,o.state.value[t])}const I=r?function(){const{state:T}=n,w=T?T():{};this.$patch(S=>{Z(S,w)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:lr;function V(){i.stop(),d=[],f=[],o._s.delete(t)}const P=(T,w="")=>{if(ur in T)return T[In]=w,T;const S=function(){ne(o);const C=Array.from(arguments),D=[],G=[];function U(y){D.push(y)}function $(y){G.push(y)}Lt(f,{args:C,name:S[In],store:k,after:U,onError:$});let F;try{F=T.apply(this&&this.$id===t?this:k,C)}catch(y){throw Lt(G,y),y}return F instanceof Promise?F.then(y=>(Lt(D,y),y)).catch(y=>(Lt(G,y),Promise.reject(y))):(Lt(D,F),F)};return S[ur]=!0,S[In]=w,S},R=a.markRaw({actions:{},getters:{},state:[],hotState:_}),Y={_p:o,$id:t,$onAction:cr.bind(null,f),$patch:v,$reset:I,$subscribe(T,w={}){const S=cr(d,T,w.detached,()=>C()),C=i.run(()=>a.watch(()=>o.state.value[t],D=>{(w.flush==="sync"?p:u)&&T({storeId:t,type:nt.direct,events:h},D)},Z({},c,w)));return S},$dispose:V},k=a.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&dt?Z({_hmrPayload:R,_customProperties:a.markRaw(new Set)},Y):Y);o._s.set(t,k);const j=(o._a&&o._a.runWithContext||gu)(()=>o._e.run(()=>(i=a.effectScope()).run(()=>e({action:P}))));for(const T in j){const w=j[T];if(a.isRef(w)&&!dr(w)||a.isReactive(w))process.env.NODE_ENV!=="production"&&s?_.value[T]=a.toRef(j,T):r||(m&&yu(w)&&(a.isRef(w)?w.value=m[T]:Tn(w,m[T])),o.state.value[t][T]=w),process.env.NODE_ENV!=="production"&&R.state.push(T);else if(typeof w=="function"){const S=process.env.NODE_ENV!=="production"&&s?w:P(w,T);j[T]=S,process.env.NODE_ENV!=="production"&&(R.actions[T]=w),l.actions[T]=w}else process.env.NODE_ENV!=="production"&&dr(w)&&(R.getters[T]=r?n.getters[T]:w,dt&&(j._getters||(j._getters=a.markRaw([]))).push(T))}if(Z(k,j),Z(a.toRaw(k),j),Object.defineProperty(k,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?_.value:o.state.value[t],set:T=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");v(w=>{Z(w,T)})}}),process.env.NODE_ENV!=="production"&&(k._hotUpdate=a.markRaw(T=>{k._hotUpdating=!0,T._hmrPayload.state.forEach(w=>{if(w in k.$state){const S=T.$state[w],C=k.$state[w];typeof S=="object"&&yt(S)&&yt(C)?ar(S,C):T.$state[w]=C}k[w]=a.toRef(T.$state,w)}),Object.keys(k.$state).forEach(w=>{w in T.$state||delete k[w]}),u=!1,p=!1,o.state.value[t]=a.toRef(T._hmrPayload,"hotState"),p=!0,a.nextTick().then(()=>{u=!0});for(const w in T._hmrPayload.actions){const S=T[w];k[w]=P(S,w)}for(const w in T._hmrPayload.getters){const S=T._hmrPayload.getters[w],C=r?a.computed(()=>(ne(o),S.call(k,k))):S;k[w]=C}Object.keys(k._hmrPayload.getters).forEach(w=>{w in T._hmrPayload.getters||delete k[w]}),Object.keys(k._hmrPayload.actions).forEach(w=>{w in T._hmrPayload.actions||delete k[w]}),k._hmrPayload=T._hmrPayload,k._getters=T._getters,k._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&dt){const T={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(w=>{Object.defineProperty(k,w,Z({value:k[w]},T))})}return o._p.forEach(T=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&dt){const w=i.run(()=>T({store:k,app:o._a,pinia:o,options:l}));Object.keys(w||{}).forEach(S=>k._customProperties.add(S)),Z(k,w)}else Z(k,i.run(()=>T({store:k,app:o._a,pinia:o,options:l})))}),process.env.NODE_ENV!=="production"&&k.$state&&typeof k.$state=="object"&&typeof k.$state.constructor=="function"&&!k.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
10
10
  state: () => new MyClass()
11
- Found in store "${S.$id}".`),m&&s&&n.hydrate&&n.hydrate(S.$state,m),u=!0,p=!0,S}/*! #__NO_SIDE_EFFECTS__ */function vu(t,e,n){let o;const r=typeof e=="function";o=r?n:e;function s(i,l){const c=a.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&te&&te._testing?null:i)||(c?a.inject(Yr,null):null),i&&ee(i),process.env.NODE_ENV!=="production"&&!te)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
11
+ Found in store "${k.$id}".`),m&&r&&n.hydrate&&n.hydrate(k.$state,m),u=!0,p=!0,k}/*! #__NO_SIDE_EFFECTS__ */function vu(t,e,n){let o;const s=typeof e=="function";o=s?n:e;function r(i,l){const c=a.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&ee&&ee._testing?null:i)||(c?a.inject(qs,null):null),i&&ne(i),process.env.NODE_ENV!=="production"&&!ee)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
12
12
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
13
- This will fail in production.`);i=te,i._s.has(t)||(r?Tn(t,e,o,i):fs(t,o,i),process.env.NODE_ENV!=="production"&&(s._pinia=i));const u=i._s.get(t);if(process.env.NODE_ENV!=="production"&&l){const p="__hot:"+t,d=r?Tn(p,e,o,i,!0):fs(p,X({},o),i,!0);l._hotUpdate(d),delete i.state.value[p],i._s.delete(p)}if(process.env.NODE_ENV!=="production"&&ut){const p=a.getCurrentInstance();if(p&&p.proxy&&!l){const d=p.proxy,f="_pStores"in d?d._pStores:d._pStores={};f[t]=u}}return u}return s.$id=t,s}const wu=vu("data",()=>{const t=a.ref([]),e=a.ref({});return{records:t,record:e}});function ps(t){const e=a.ref();return a.onMounted(async()=>{var n,o,r;if(t||(t=a.inject("$registry")),!t||!t.router)return;let s;try{s=wu()}catch{throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable")}e.value=new Ga(t,s);const i=t.router.currentRoute.value,l=(n=i.params.records)==null?void 0:n.toString().toLowerCase(),c=(o=i.params.record)==null?void 0:o.toString().toLowerCase();if(!l&&!c)return;const u=await((r=t.getMeta)==null?void 0:r.call(t,l));u&&(t.addDoctype(u),e.value.setup(u),l&&(c?await e.value.getRecord(u,c):await e.value.getRecords(u)),e.value.runAction(u,"load",c?[c]:void 0))}),{stonecrop:e}}Y(class Ne{constructor(e,n){if(Y(this,"name"),Y(this,"registry"),Y(this,"router"),Y(this,"getMeta"),Ne._root)return Ne._root;Ne._root=this,this.name="Registry",this.registry={},this.router=e,this.getMeta=n}addDoctype(e){e.doctype in Object.keys(this.registry)||(this.registry[e.slug]=e),e.component&&this.router&&!this.router.hasRoute(e.doctype)&&this.router.addRoute({path:`/${e.slug}`,name:e.slug,component:e.component})}},"_root");function bu(t){return t&&typeof t.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var jt=Promise.resolve();function hs(t,e){return t||(t=0),new Promise(function(n){return setTimeout(function(){return n(e)},t)})}function Eu(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function xn(){return Math.random().toString(36).substring(2)}var Vn=0;function ne(){var t=Date.now()*1e3;return t<=Vn&&(t=Vn+1),Vn=t,t}var ku=ne,Su="native";function Ou(t){var e={time:ne(),messagesCallback:null,bc:new BroadcastChannel(t),subFns:[]};return e.bc.onmessage=function(n){e.messagesCallback&&e.messagesCallback(n.data)},e}function Iu(t){t.bc.close(),t.subFns=[]}function Tu(t,e){try{return t.bc.postMessage(e,!1),jt}catch(n){return Promise.reject(n)}}function xu(t,e){t.messagesCallback=e}function Vu(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&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 Cu(){return 150}var Nu={create:Ou,close:Iu,onMessage:xu,postMessage:Tu,canBeUsed:Vu,type:Su,averageResponseTime:Cu,microSeconds:ku};class ms{constructor(e){Y(this,"ttl"),Y(this,"map",new Map),Y(this,"_to",!1),this.ttl=e}has(e){return this.map.has(e)}add(e){this.map.set(e,gs()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,$u(this)},0))}clear(){this.map.clear()}}function $u(t){const e=gs()-t.ttl,n=t.map[Symbol.iterator]();for(;;){const o=n.next().value;if(!o)return;const r=o[0];if(o[1]<e)t.map.delete(r);else return}}function gs(){return Date.now()}function Cn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=JSON.parse(JSON.stringify(t));return typeof e.webWorkerSupport>"u"&&(e.webWorkerSupport=!0),e.idb||(e.idb={}),e.idb.ttl||(e.idb.ttl=1e3*45),e.idb.fallbackInterval||(e.idb.fallbackInterval=150),t.idb&&typeof t.idb.onclose=="function"&&(e.idb.onclose=t.idb.onclose),e.localstorage||(e.localstorage={}),e.localstorage.removeTimeout||(e.localstorage.removeTimeout=1e3*60),t.methods&&(e.methods=t.methods),e.node||(e.node={}),e.node.ttl||(e.node.ttl=1e3*60*2),e.node.maxParallelWrites||(e.node.maxParallelWrites=2048),typeof e.node.useFastPath>"u"&&(e.node.useFastPath=!0),e}var Pu=ne,Ru="pubkey.broadcast-channel-0-",rt="messages",Se={durability:"relaxed"},Du="idb";function _s(){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 Nn(t){t.commit&&t.commit()}function Au(t){var e=_s(),n=Ru+t,o=e.open(n);return o.onupgradeneeded=function(r){var s=r.target.result;s.createObjectStore(rt,{keyPath:"id",autoIncrement:!0})},new Promise(function(r,s){o.onerror=function(i){return s(i)},o.onsuccess=function(){r(o.result)}})}function ju(t,e,n){var o=Date.now(),r={uuid:e,time:o,data:n},s=t.transaction([rt],"readwrite",Se);return new Promise(function(i,l){s.oncomplete=function(){return i()},s.onerror=function(u){return l(u)};var c=s.objectStore(rt);c.add(r),Nn(s)})}function Lu(t,e){var n=t.transaction(rt,"readonly",Se),o=n.objectStore(rt),r=[],s=IDBKeyRange.bound(e+1,1/0);if(o.getAll){var i=o.getAll(s);return new Promise(function(c,u){i.onerror=function(p){return u(p)},i.onsuccess=function(p){c(p.target.result)}})}function l(){try{return s=IDBKeyRange.bound(e+1,1/0),o.openCursor(s)}catch{return o.openCursor()}}return new Promise(function(c,u){var p=l();p.onerror=function(d){return u(d)},p.onsuccess=function(d){var f=d.target.result;f?f.value.id<e+1?f.continue(e+1):(r.push(f.value),f.continue()):(Nn(n),c(r))}})}function Mu(t,e){if(t.closed)return Promise.resolve([]);var n=t.db.transaction(rt,"readwrite",Se),o=n.objectStore(rt);return Promise.all(e.map(function(r){var s=o.delete(r);return new Promise(function(i){s.onsuccess=function(){return i()}})}))}function Bu(t,e){var n=Date.now()-e,o=t.transaction(rt,"readonly",Se),r=o.objectStore(rt),s=[];return new Promise(function(i){r.openCursor().onsuccess=function(l){var c=l.target.result;if(c){var u=c.value;u.time<n?(s.push(u),c.continue()):(Nn(o),i(s))}else i(s)}})}function Uu(t){return Bu(t.db,t.options.idb.ttl).then(function(e){return Mu(t,e.map(function(n){return n.id}))})}function zu(t,e){return e=Cn(e),Au(t).then(function(n){var o={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:xn(),eMIs:new ms(e.idb.ttl*2),writeBlockPromise:jt,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,e.idb.onclose&&e.idb.onclose()},ys(o),o})}function ys(t){t.closed||vs(t).then(function(){return hs(t.options.idb.fallbackInterval)}).then(function(){return ys(t)})}function Hu(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}function vs(t){return t.closed||!t.messagesCallback?jt:Lu(t.db,t.lastCursorId).then(function(e){var n=e.filter(function(o){return!!o}).map(function(o){return o.id>t.lastCursorId&&(t.lastCursorId=o.id),o}).filter(function(o){return Hu(o,t)}).sort(function(o,r){return o.time-r.time});return n.forEach(function(o){t.messagesCallback&&(t.eMIs.add(o.id),t.messagesCallback(o.data))}),jt})}function Ku(t){t.closed=!0,t.db.close()}function Fu(t,e){return t.writeBlockPromise=t.writeBlockPromise.then(function(){return ju(t.db,t.uuid,e)}).then(function(){Eu(0,10)===0&&Uu(t)}),t.writeBlockPromise}function Wu(t,e,n){t.messagesCallbackTime=n,t.messagesCallback=e,vs(t)}function Gu(){return!!_s()}function Ju(t){return t.idb.fallbackInterval*2}var qu={create:zu,close:Ku,onMessage:Wu,postMessage:Fu,canBeUsed:Gu,type:Du,averageResponseTime:Ju,microSeconds:Pu},Yu=ne,Xu="pubkey.broadcastChannel-",Zu="localstorage";function ws(){var t;if(typeof window>"u")return null;try{t=window.localStorage,t=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return t}function bs(t){return Xu+t}function Qu(t,e){return new Promise(function(n){hs().then(function(){var o=bs(t.channelName),r={token:xn(),time:Date.now(),data:e,uuid:t.uuid},s=JSON.stringify(r);ws().setItem(o,s);var i=document.createEvent("Event");i.initEvent("storage",!0,!0),i.key=o,i.newValue=s,window.dispatchEvent(i),n()})})}function td(t,e){var n=bs(t),o=function(r){r.key===n&&e(JSON.parse(r.newValue))};return window.addEventListener("storage",o),o}function ed(t){window.removeEventListener("storage",t)}function nd(t,e){if(e=Cn(e),!Es())throw new Error("BroadcastChannel: localstorage cannot be used");var n=xn(),o=new ms(e.localstorage.removeTimeout),r={channelName:t,uuid:n,eMIs:o};return r.listener=td(t,function(s){r.messagesCallback&&s.uuid!==n&&(!s.token||o.has(s.token)||s.data.time&&s.data.time<r.messagesCallbackTime||(o.add(s.token),r.messagesCallback(s.data)))}),r}function od(t){ed(t.listener)}function rd(t,e,n){t.messagesCallbackTime=n,t.messagesCallback=e}function Es(){var t=ws();if(!t)return!1;try{var e="__broadcastchannel_check";t.setItem(e,"works"),t.removeItem(e)}catch{return!1}return!0}function sd(){var t=120,e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?t*2:t}var id={create:nd,close:od,onMessage:rd,postMessage:Qu,canBeUsed:Es,type:Zu,averageResponseTime:sd,microSeconds:Yu},ks=ne,ad="simulate",$n=new Set;function ld(t){var e={time:ks(),name:t,messagesCallback:null};return $n.add(e),e}function cd(t){$n.delete(t)}var Ss=5;function ud(t,e){return new Promise(function(n){return setTimeout(function(){var o=Array.from($n);o.forEach(function(r){r.name===t.name&&r!==t&&r.messagesCallback&&r.time<e.time&&r.messagesCallback(e)}),n()},Ss)})}function dd(t,e){t.messagesCallback=e}function fd(){return!0}function pd(){return Ss}var hd={create:ld,close:cd,onMessage:dd,postMessage:ud,canBeUsed:fd,type:ad,averageResponseTime:pd,microSeconds:ks},Os=[Nu,qu,id];function md(t){var e=[].concat(t.methods,Os).filter(Boolean);if(t.type){if(t.type==="simulate")return hd;var n=e.find(function(r){return r.type===t.type});if(n)return n;throw new Error("method-type "+t.type+" not found")}t.webWorkerSupport||(e=e.filter(function(r){return r.type!=="idb"}));var o=e.find(function(r){return r.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(Os.map(function(r){return r.type})))}var Is=new Set,gd=0,Pn=function(t,e){this.id=gd++,Is.add(this),this.name=t,this.options=Cn(e),this.method=md(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,_d(this)};Pn._pubkey=!0,Pn.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return Ts(this,"message",t)},postInternal:function(t){return Ts(this,"internal",t)},set onmessage(t){var e=this.method.microSeconds(),n={time:e,fn:t};Cs(this,"message",this._onML),t&&typeof t=="function"?(this._onML=n,Vs(this,"message",n)):this._onML=null},addEventListener:function(t,e){var n=this.method.microSeconds(),o={time:n,fn:e};Vs(this,t,o)},removeEventListener:function(t,e){var n=this._addEL[t].find(function(o){return o.fn===e});Cs(this,t,n)},close:function(){var t=this;if(!this.closed){Is.delete(this),this.closed=!0;var e=this._prepP?this._prepP:jt;return this._onML=null,this._addEL.message=[],e.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(n){return n()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function Ts(t,e,n){var o=t.method.microSeconds(),r={time:o,type:e,data:n},s=t._prepP?t._prepP:jt;return s.then(function(){var i=t.method.postMessage(t._state,r);return t._uMP.add(i),i.catch().then(function(){return t._uMP.delete(i)}),i})}function _d(t){var e=t.method.create(t.name,t.options);bu(e)?(t._prepP=e,e.then(function(n){t._state=n})):t._state=e}function xs(t){return t._addEL.message.length>0||t._addEL.internal.length>0}function Vs(t,e,n){t._addEL[e].push(n),yd(t)}function Cs(t,e,n){t._addEL[e]=t._addEL[e].filter(function(o){return o!==n}),vd(t)}function yd(t){if(!t._iL&&xs(t)){var e=function(o){t._addEL[o.type].forEach(function(r){o.time>=r.time&&r.fn(o.data)})},n=t.method.microSeconds();t._prepP?t._prepP.then(function(){t._iL=!0,t.method.onMessage(t._state,e,n)}):(t._iL=!0,t.method.onMessage(t._state,e,n))}}function vd(t){if(t._iL&&!xs(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}function Ns(t,e={serialize:JSON.stringify,deserialize:JSON.parse}){return e.deserialize(e.serialize(t))}function wd(t,e){return Object.keys(e).includes(t)}function bd({enable:t=!0,initialize:e=!0,type:n,serializer:o}){return({store:r,options:s})=>{var i,l,c;const u=((i=s==null?void 0:s.share)==null?void 0:i.enable)??t,p=((l=s==null?void 0:s.share)==null?void 0:l.omit)??[];if(!u)return;const d=new Pn(r.$id,{type:n});let f=0,h=!1;const m=Object.keys(r.$state).filter(_=>!p.includes(_)&&wd(_,r.$state));d.onmessage=_=>{if(_===void 0){d.postMessage({timestamp:f,state:Ns(r.$state,o)});return}_.timestamp<=f||(h=!0,f=_.timestamp,r.$patch(g=>{m.forEach(y=>{g[y]=_.state[y]})}))},(((c=s==null?void 0:s.share)==null?void 0:c.initialize)??e)&&d.postMessage(void 0),r.$subscribe((_,g)=>{h||(f=Date.now(),d.postMessage({timestamp:f,state:Ns(g,o)})),h=!1})}}mu().use(bd({enable:!0,initialize:!0}));const $s=a.defineComponent({__name:"Doctype",setup(t){const{stonecrop:e}=ps(),n=a.ref([]);return a.watch(e,()=>{var o;if(e.value){let r=(o=e.value.schema)==null?void 0:o.schema.toArray();r||(r=[]),r.forEach((s,i)=>{var u;const l=(u=e.value)==null?void 0:u.store.record,c=l==null?void 0:l[s.fieldname];r[i].value=c}),n.value=r}}),(o,r)=>(a.openBlock(),a.createBlock(a.unref(ji),{class:"aform-main",modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=s=>n.value=s)},null,8,["modelValue"]))}});/*!
13
+ This will fail in production.`);i=ee,i._s.has(t)||(s?xn(t,e,o,i):fr(t,o,i),process.env.NODE_ENV!=="production"&&(r._pinia=i));const u=i._s.get(t);if(process.env.NODE_ENV!=="production"&&l){const p="__hot:"+t,d=s?xn(p,e,o,i,!0):fr(p,Z({},o),i,!0);l._hotUpdate(d),delete i.state.value[p],i._s.delete(p)}if(process.env.NODE_ENV!=="production"&&dt){const p=a.getCurrentInstance();if(p&&p.proxy&&!l){const d=p.proxy,f="_pStores"in d?d._pStores:d._pStores={};f[t]=u}}return u}return r.$id=t,r}const wu=vu("data",()=>{const t=a.ref([]),e=a.ref({});return{records:t,record:e}});function pr(t){const e=a.ref();return a.onMounted(async()=>{var n,o,s;if(t||(t=a.inject("$registry")),!t||!t.router)return;let r;try{r=wu()}catch{throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable")}e.value=new Ga(t,r);const i=t.router.currentRoute.value,l=(n=i.params.records)==null?void 0:n.toString().toLowerCase(),c=(o=i.params.record)==null?void 0:o.toString().toLowerCase();if(!l&&!c)return;const u=await((s=t.getMeta)==null?void 0:s.call(t,l));u&&(t.addDoctype(u),e.value.setup(u),l&&(c?await e.value.getRecord(u,c):await e.value.getRecords(u)),e.value.runAction(u,"load",c?[c]:void 0))}),{stonecrop:e}}X(class $e{constructor(e,n){if(X(this,"name"),X(this,"registry"),X(this,"router"),X(this,"getMeta"),$e._root)return $e._root;$e._root=this,this.name="Registry",this.registry={},this.router=e,this.getMeta=n}addDoctype(e){e.doctype in Object.keys(this.registry)||(this.registry[e.slug]=e),e.component&&this.router&&!this.router.hasRoute(e.doctype)&&this.router.addRoute({path:`/${e.slug}`,name:e.slug,component:e.component})}},"_root");function Eu(t){return t&&typeof t.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var Mt=Promise.resolve();function hr(t,e){return t||(t=0),new Promise(function(n){return setTimeout(function(){return n(e)},t)})}function bu(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function Vn(){return Math.random().toString(36).substring(2)}var Cn=0;function oe(){var t=Date.now()*1e3;return t<=Cn&&(t=Cn+1),Cn=t,t}var ku=oe,Su="native";function Ou(t){var e={time:oe(),messagesCallback:null,bc:new BroadcastChannel(t),subFns:[]};return e.bc.onmessage=function(n){e.messagesCallback&&e.messagesCallback(n.data)},e}function Iu(t){t.bc.close(),t.subFns=[]}function Tu(t,e){try{return t.bc.postMessage(e,!1),Mt}catch(n){return Promise.reject(n)}}function xu(t,e){t.messagesCallback=e}function Vu(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&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 Cu(){return 150}var Nu={create:Ou,close:Iu,onMessage:xu,postMessage:Tu,canBeUsed:Vu,type:Su,averageResponseTime:Cu,microSeconds:ku};class mr{constructor(e){X(this,"ttl"),X(this,"map",new Map),X(this,"_to",!1),this.ttl=e}has(e){return this.map.has(e)}add(e){this.map.set(e,gr()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,$u(this)},0))}clear(){this.map.clear()}}function $u(t){const e=gr()-t.ttl,n=t.map[Symbol.iterator]();for(;;){const o=n.next().value;if(!o)return;const s=o[0];if(o[1]<e)t.map.delete(s);else return}}function gr(){return Date.now()}function Nn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=JSON.parse(JSON.stringify(t));return typeof e.webWorkerSupport>"u"&&(e.webWorkerSupport=!0),e.idb||(e.idb={}),e.idb.ttl||(e.idb.ttl=1e3*45),e.idb.fallbackInterval||(e.idb.fallbackInterval=150),t.idb&&typeof t.idb.onclose=="function"&&(e.idb.onclose=t.idb.onclose),e.localstorage||(e.localstorage={}),e.localstorage.removeTimeout||(e.localstorage.removeTimeout=1e3*60),t.methods&&(e.methods=t.methods),e.node||(e.node={}),e.node.ttl||(e.node.ttl=1e3*60*2),e.node.maxParallelWrites||(e.node.maxParallelWrites=2048),typeof e.node.useFastPath>"u"&&(e.node.useFastPath=!0),e}var Pu=oe,Ru="pubkey.broadcast-channel-0-",rt="messages",Oe={durability:"relaxed"},Du="idb";function _r(){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 $n(t){t.commit&&t.commit()}function Au(t){var e=_r(),n=Ru+t,o=e.open(n);return o.onupgradeneeded=function(s){var r=s.target.result;r.createObjectStore(rt,{keyPath:"id",autoIncrement:!0})},new Promise(function(s,r){o.onerror=function(i){return r(i)},o.onsuccess=function(){s(o.result)}})}function ju(t,e,n){var o=Date.now(),s={uuid:e,time:o,data:n},r=t.transaction([rt],"readwrite",Oe);return new Promise(function(i,l){r.oncomplete=function(){return i()},r.onerror=function(u){return l(u)};var c=r.objectStore(rt);c.add(s),$n(r)})}function Lu(t,e){var n=t.transaction(rt,"readonly",Oe),o=n.objectStore(rt),s=[],r=IDBKeyRange.bound(e+1,1/0);if(o.getAll){var i=o.getAll(r);return new Promise(function(c,u){i.onerror=function(p){return u(p)},i.onsuccess=function(p){c(p.target.result)}})}function l(){try{return r=IDBKeyRange.bound(e+1,1/0),o.openCursor(r)}catch{return o.openCursor()}}return new Promise(function(c,u){var p=l();p.onerror=function(d){return u(d)},p.onsuccess=function(d){var f=d.target.result;f?f.value.id<e+1?f.continue(e+1):(s.push(f.value),f.continue()):($n(n),c(s))}})}function Mu(t,e){if(t.closed)return Promise.resolve([]);var n=t.db.transaction(rt,"readwrite",Oe),o=n.objectStore(rt);return Promise.all(e.map(function(s){var r=o.delete(s);return new Promise(function(i){r.onsuccess=function(){return i()}})}))}function Bu(t,e){var n=Date.now()-e,o=t.transaction(rt,"readonly",Oe),s=o.objectStore(rt),r=[];return new Promise(function(i){s.openCursor().onsuccess=function(l){var c=l.target.result;if(c){var u=c.value;u.time<n?(r.push(u),c.continue()):($n(o),i(r))}else i(r)}})}function Uu(t){return Bu(t.db,t.options.idb.ttl).then(function(e){return Mu(t,e.map(function(n){return n.id}))})}function zu(t,e){return e=Nn(e),Au(t).then(function(n){var o={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:Vn(),eMIs:new mr(e.idb.ttl*2),writeBlockPromise:Mt,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,e.idb.onclose&&e.idb.onclose()},yr(o),o})}function yr(t){t.closed||vr(t).then(function(){return hr(t.options.idb.fallbackInterval)}).then(function(){return yr(t)})}function Hu(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}function vr(t){return t.closed||!t.messagesCallback?Mt:Lu(t.db,t.lastCursorId).then(function(e){var n=e.filter(function(o){return!!o}).map(function(o){return o.id>t.lastCursorId&&(t.lastCursorId=o.id),o}).filter(function(o){return Hu(o,t)}).sort(function(o,s){return o.time-s.time});return n.forEach(function(o){t.messagesCallback&&(t.eMIs.add(o.id),t.messagesCallback(o.data))}),Mt})}function Ku(t){t.closed=!0,t.db.close()}function Fu(t,e){return t.writeBlockPromise=t.writeBlockPromise.then(function(){return ju(t.db,t.uuid,e)}).then(function(){bu(0,10)===0&&Uu(t)}),t.writeBlockPromise}function Wu(t,e,n){t.messagesCallbackTime=n,t.messagesCallback=e,vr(t)}function Gu(){return!!_r()}function Ju(t){return t.idb.fallbackInterval*2}var Yu={create:zu,close:Ku,onMessage:Wu,postMessage:Fu,canBeUsed:Gu,type:Du,averageResponseTime:Ju,microSeconds:Pu},qu=oe,Xu="pubkey.broadcastChannel-",Zu="localstorage";function wr(){var t;if(typeof window>"u")return null;try{t=window.localStorage,t=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return t}function Er(t){return Xu+t}function Qu(t,e){return new Promise(function(n){hr().then(function(){var o=Er(t.channelName),s={token:Vn(),time:Date.now(),data:e,uuid:t.uuid},r=JSON.stringify(s);wr().setItem(o,r);var i=document.createEvent("Event");i.initEvent("storage",!0,!0),i.key=o,i.newValue=r,window.dispatchEvent(i),n()})})}function td(t,e){var n=Er(t),o=function(s){s.key===n&&e(JSON.parse(s.newValue))};return window.addEventListener("storage",o),o}function ed(t){window.removeEventListener("storage",t)}function nd(t,e){if(e=Nn(e),!br())throw new Error("BroadcastChannel: localstorage cannot be used");var n=Vn(),o=new mr(e.localstorage.removeTimeout),s={channelName:t,uuid:n,eMIs:o};return s.listener=td(t,function(r){s.messagesCallback&&r.uuid!==n&&(!r.token||o.has(r.token)||r.data.time&&r.data.time<s.messagesCallbackTime||(o.add(r.token),s.messagesCallback(r.data)))}),s}function od(t){ed(t.listener)}function sd(t,e,n){t.messagesCallbackTime=n,t.messagesCallback=e}function br(){var t=wr();if(!t)return!1;try{var e="__broadcastchannel_check";t.setItem(e,"works"),t.removeItem(e)}catch{return!1}return!0}function rd(){var t=120,e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?t*2:t}var id={create:nd,close:od,onMessage:sd,postMessage:Qu,canBeUsed:br,type:Zu,averageResponseTime:rd,microSeconds:qu},kr=oe,ad="simulate",Pn=new Set;function ld(t){var e={time:kr(),name:t,messagesCallback:null};return Pn.add(e),e}function cd(t){Pn.delete(t)}var Sr=5;function ud(t,e){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Pn);o.forEach(function(s){s.name===t.name&&s!==t&&s.messagesCallback&&s.time<e.time&&s.messagesCallback(e)}),n()},Sr)})}function dd(t,e){t.messagesCallback=e}function fd(){return!0}function pd(){return Sr}var hd={create:ld,close:cd,onMessage:dd,postMessage:ud,canBeUsed:fd,type:ad,averageResponseTime:pd,microSeconds:kr},Or=[Nu,Yu,id];function md(t){var e=[].concat(t.methods,Or).filter(Boolean);if(t.type){if(t.type==="simulate")return hd;var n=e.find(function(s){return s.type===t.type});if(n)return n;throw new Error("method-type "+t.type+" not found")}t.webWorkerSupport||(e=e.filter(function(s){return s.type!=="idb"}));var o=e.find(function(s){return s.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(Or.map(function(s){return s.type})))}var Ir=new Set,gd=0,Rn=function(t,e){this.id=gd++,Ir.add(this),this.name=t,this.options=Nn(e),this.method=md(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,_d(this)};Rn._pubkey=!0,Rn.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return Tr(this,"message",t)},postInternal:function(t){return Tr(this,"internal",t)},set onmessage(t){var e=this.method.microSeconds(),n={time:e,fn:t};Cr(this,"message",this._onML),t&&typeof t=="function"?(this._onML=n,Vr(this,"message",n)):this._onML=null},addEventListener:function(t,e){var n=this.method.microSeconds(),o={time:n,fn:e};Vr(this,t,o)},removeEventListener:function(t,e){var n=this._addEL[t].find(function(o){return o.fn===e});Cr(this,t,n)},close:function(){var t=this;if(!this.closed){Ir.delete(this),this.closed=!0;var e=this._prepP?this._prepP:Mt;return this._onML=null,this._addEL.message=[],e.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(n){return n()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function Tr(t,e,n){var o=t.method.microSeconds(),s={time:o,type:e,data:n},r=t._prepP?t._prepP:Mt;return r.then(function(){var i=t.method.postMessage(t._state,s);return t._uMP.add(i),i.catch().then(function(){return t._uMP.delete(i)}),i})}function _d(t){var e=t.method.create(t.name,t.options);Eu(e)?(t._prepP=e,e.then(function(n){t._state=n})):t._state=e}function xr(t){return t._addEL.message.length>0||t._addEL.internal.length>0}function Vr(t,e,n){t._addEL[e].push(n),yd(t)}function Cr(t,e,n){t._addEL[e]=t._addEL[e].filter(function(o){return o!==n}),vd(t)}function yd(t){if(!t._iL&&xr(t)){var e=function(o){t._addEL[o.type].forEach(function(s){o.time>=s.time&&s.fn(o.data)})},n=t.method.microSeconds();t._prepP?t._prepP.then(function(){t._iL=!0,t.method.onMessage(t._state,e,n)}):(t._iL=!0,t.method.onMessage(t._state,e,n))}}function vd(t){if(t._iL&&!xr(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}function Nr(t,e={serialize:JSON.stringify,deserialize:JSON.parse}){return e.deserialize(e.serialize(t))}function wd(t,e){return Object.keys(e).includes(t)}function Ed({enable:t=!0,initialize:e=!0,type:n,serializer:o}){return({store:s,options:r})=>{var i,l,c;const u=((i=r==null?void 0:r.share)==null?void 0:i.enable)??t,p=((l=r==null?void 0:r.share)==null?void 0:l.omit)??[];if(!u)return;const d=new Rn(s.$id,{type:n});let f=0,h=!1;const m=Object.keys(s.$state).filter(_=>!p.includes(_)&&wd(_,s.$state));d.onmessage=_=>{if(_===void 0){d.postMessage({timestamp:f,state:Nr(s.$state,o)});return}_.timestamp<=f||(h=!0,f=_.timestamp,s.$patch(g=>{m.forEach(v=>{g[v]=_.state[v]})}))},(((c=r==null?void 0:r.share)==null?void 0:c.initialize)??e)&&d.postMessage(void 0),s.$subscribe((_,g)=>{h||(f=Date.now(),d.postMessage({timestamp:f,state:Nr(g,o)})),h=!1})}}mu().use(Ed({enable:!0,initialize:!0}));const $r=a.defineComponent({__name:"Doctype",setup(t){const{stonecrop:e}=pr(),n=a.ref([]);return a.watch(e,()=>{var o;if(e.value){let s=(o=e.value.schema)==null?void 0:o.schema.toArray();s||(s=[]),s.forEach((r,i)=>{var u;const l=(u=e.value)==null?void 0:u.store.record,c=l==null?void 0:l[r.fieldname];s[i].value=c}),n.value=s}}),(o,s)=>(a.openBlock(),a.createBlock(a.unref(ji),{class:"aform-main",modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=r=>n.value=r)},null,8,["modelValue"]))}});/*!
14
14
  * pinia v3.0.3
15
15
  * (c) 2025 Eduardo San Martin Morote
16
16
  * @license MIT
17
- */let oe;const Oe=t=>oe=t,Ed=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function vt(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var re;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(re||(re={}));const se=typeof window<"u";function Ps(t,e){for(const n in e){const o=e[n];if(!(n in t))continue;const r=t[n];vt(r)&&vt(o)&&!a.isRef(o)&&!a.isReactive(o)?t[n]=Ps(r,o):t[n]=o}return t}const Rs=()=>{};function Ds(t,e,n,o=Rs){t.push(e);const r=()=>{const s=t.indexOf(e);s>-1&&(t.splice(s,1),o())};return!n&&a.getCurrentScope()&&a.onScopeDispose(r),r}function Lt(t,...e){t.slice().forEach(n=>{n(...e)})}const kd=t=>t(),As=Symbol(),Rn=Symbol();function Dn(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,o)=>t.set(o,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n],r=t[n];vt(r)&&vt(o)&&t.hasOwnProperty(n)&&!a.isRef(o)&&!a.isReactive(o)?t[n]=Dn(r,o):t[n]=o}return t}const Sd=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Od(t){return!vt(t)||!Object.prototype.hasOwnProperty.call(t,Sd)}const{assign:Z}=Object;function js(t){return!!(a.isRef(t)&&t.effect)}function Ls(t,e,n,o){const{state:r,actions:s,getters:i}=e,l=n.state.value[t];let c;function u(){!l&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[t]=r?r():{});const p=process.env.NODE_ENV!=="production"&&o?a.toRefs(a.ref(r?r():{}).value):a.toRefs(n.state.value[t]);return Z(p,s,Object.keys(i||{}).reduce((d,f)=>(process.env.NODE_ENV!=="production"&&f in p&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${t}".`),d[f]=a.markRaw(a.computed(()=>{Oe(n);const h=n._s.get(t);return i[f].call(h,h)})),d),{}))}return c=An(t,u,e,n,o,!0),c}function An(t,e,n={},o,r,s){let i;const l=Z({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&(c.onTrigger=v=>{u?h=v:u==!1&&!S._hotUpdating&&(Array.isArray(h)?h.push(v):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,p,d=[],f=[],h;const m=o.state.value[t];!s&&!m&&(process.env.NODE_ENV==="production"||!r)&&(o.state.value[t]={});const _=a.ref({});let g;function y(v){let O;u=p=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof v=="function"?(v(o.state.value[t]),O={type:re.patchFunction,storeId:t,events:h}):(Dn(o.state.value[t],v),O={type:re.patchObject,payload:v,storeId:t,events:h});const C=g=Symbol();a.nextTick().then(()=>{g===C&&(u=!0)}),p=!0,Lt(d,O,o.state.value[t])}const I=s?function(){const{state:O}=n,C=O?O():{};this.$patch(D=>{Z(D,C)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:Rs;function V(){i.stop(),d=[],f=[],o._s.delete(t)}const P=(v,O="")=>{if(As in v)return v[Rn]=O,v;const C=function(){Oe(o);const D=Array.from(arguments),F=[],z=[];function N(k){F.push(k)}function w(k){z.push(k)}Lt(f,{args:D,name:C[Rn],store:S,after:N,onError:w});let b;try{b=v.apply(this&&this.$id===t?this:S,D)}catch(k){throw Lt(z,k),k}return b instanceof Promise?b.then(k=>(Lt(F,k),k)).catch(k=>(Lt(z,k),Promise.reject(k))):(Lt(F,b),b)};return C[As]=!0,C[Rn]=O,C},R=a.markRaw({actions:{},getters:{},state:[],hotState:_}),J={_p:o,$id:t,$onAction:Ds.bind(null,f),$patch:y,$reset:I,$subscribe(v,O={}){const C=Ds(d,v,O.detached,()=>D()),D=i.run(()=>a.watch(()=>o.state.value[t],F=>{(O.flush==="sync"?p:u)&&v({storeId:t,type:re.direct,events:h},F)},Z({},c,O)));return C},$dispose:V},S=a.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&se?Z({_hmrPayload:R,_customProperties:a.markRaw(new Set)},J):J);o._s.set(t,S);const T=(o._a&&o._a.runWithContext||kd)(()=>o._e.run(()=>(i=a.effectScope()).run(()=>e({action:P}))));for(const v in T){const O=T[v];if(a.isRef(O)&&!js(O)||a.isReactive(O))process.env.NODE_ENV!=="production"&&r?_.value[v]=a.toRef(T,v):s||(m&&Od(O)&&(a.isRef(O)?O.value=m[v]:Dn(O,m[v])),o.state.value[t][v]=O),process.env.NODE_ENV!=="production"&&R.state.push(v);else if(typeof O=="function"){const C=process.env.NODE_ENV!=="production"&&r?O:P(O,v);T[v]=C,process.env.NODE_ENV!=="production"&&(R.actions[v]=O),l.actions[v]=O}else process.env.NODE_ENV!=="production"&&js(O)&&(R.getters[v]=s?n.getters[v]:O,se&&(T._getters||(T._getters=a.markRaw([]))).push(v))}if(Z(S,T),Z(a.toRaw(S),T),Object.defineProperty(S,"$state",{get:()=>process.env.NODE_ENV!=="production"&&r?_.value:o.state.value[t],set:v=>{if(process.env.NODE_ENV!=="production"&&r)throw new Error("cannot set hotState");y(O=>{Z(O,v)})}}),process.env.NODE_ENV!=="production"&&(S._hotUpdate=a.markRaw(v=>{S._hotUpdating=!0,v._hmrPayload.state.forEach(O=>{if(O in S.$state){const C=v.$state[O],D=S.$state[O];typeof C=="object"&&vt(C)&&vt(D)?Ps(C,D):v.$state[O]=D}S[O]=a.toRef(v.$state,O)}),Object.keys(S.$state).forEach(O=>{O in v.$state||delete S[O]}),u=!1,p=!1,o.state.value[t]=a.toRef(v._hmrPayload,"hotState"),p=!0,a.nextTick().then(()=>{u=!0});for(const O in v._hmrPayload.actions){const C=v[O];S[O]=P(C,O)}for(const O in v._hmrPayload.getters){const C=v._hmrPayload.getters[O],D=s?a.computed(()=>(Oe(o),C.call(S,S))):C;S[O]=D}Object.keys(S._hmrPayload.getters).forEach(O=>{O in v._hmrPayload.getters||delete S[O]}),Object.keys(S._hmrPayload.actions).forEach(O=>{O in v._hmrPayload.actions||delete S[O]}),S._hmrPayload=v._hmrPayload,S._getters=v._getters,S._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&se){const v={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(O=>{Object.defineProperty(S,O,Z({value:S[O]},v))})}return o._p.forEach(v=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&se){const O=i.run(()=>v({store:S,app:o._a,pinia:o,options:l}));Object.keys(O||{}).forEach(C=>S._customProperties.add(C)),Z(S,O)}else Z(S,i.run(()=>v({store:S,app:o._a,pinia:o,options:l})))}),process.env.NODE_ENV!=="production"&&S.$state&&typeof S.$state=="object"&&typeof S.$state.constructor=="function"&&!S.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
17
+ */let se;const Ie=t=>se=t,bd=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function wt(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var re;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(re||(re={}));const ie=typeof window<"u";function Pr(t,e){for(const n in e){const o=e[n];if(!(n in t))continue;const s=t[n];wt(s)&&wt(o)&&!a.isRef(o)&&!a.isReactive(o)?t[n]=Pr(s,o):t[n]=o}return t}const Rr=()=>{};function Dr(t,e,n,o=Rr){t.push(e);const s=()=>{const r=t.indexOf(e);r>-1&&(t.splice(r,1),o())};return!n&&a.getCurrentScope()&&a.onScopeDispose(s),s}function Bt(t,...e){t.slice().forEach(n=>{n(...e)})}const kd=t=>t(),Ar=Symbol(),Dn=Symbol();function An(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,o)=>t.set(o,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n],s=t[n];wt(s)&&wt(o)&&t.hasOwnProperty(n)&&!a.isRef(o)&&!a.isReactive(o)?t[n]=An(s,o):t[n]=o}return t}const Sd=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Od(t){return!wt(t)||!Object.prototype.hasOwnProperty.call(t,Sd)}const{assign:Q}=Object;function jr(t){return!!(a.isRef(t)&&t.effect)}function Lr(t,e,n,o){const{state:s,actions:r,getters:i}=e,l=n.state.value[t];let c;function u(){!l&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[t]=s?s():{});const p=process.env.NODE_ENV!=="production"&&o?a.toRefs(a.ref(s?s():{}).value):a.toRefs(n.state.value[t]);return Q(p,r,Object.keys(i||{}).reduce((d,f)=>(process.env.NODE_ENV!=="production"&&f in p&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${t}".`),d[f]=a.markRaw(a.computed(()=>{Ie(n);const h=n._s.get(t);return i[f].call(h,h)})),d),{}))}return c=jn(t,u,e,n,o,!0),c}function jn(t,e,n={},o,s,r){let i;const l=Q({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&(c.onTrigger=w=>{u?h=w:u==!1&&!k._hotUpdating&&(Array.isArray(h)?h.push(w):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,p,d=[],f=[],h;const m=o.state.value[t];!r&&!m&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[t]={});const _=a.ref({});let g;function v(w){let S;u=p=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof w=="function"?(w(o.state.value[t]),S={type:re.patchFunction,storeId:t,events:h}):(An(o.state.value[t],w),S={type:re.patchObject,payload:w,storeId:t,events:h});const C=g=Symbol();a.nextTick().then(()=>{g===C&&(u=!0)}),p=!0,Bt(d,S,o.state.value[t])}const I=r?function(){const{state:S}=n,C=S?S():{};this.$patch(D=>{Q(D,C)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:Rr;function V(){i.stop(),d=[],f=[],o._s.delete(t)}const P=(w,S="")=>{if(Ar in w)return w[Dn]=S,w;const C=function(){Ie(o);const D=Array.from(arguments),G=[],U=[];function $(E){G.push(E)}function F(E){U.push(E)}Bt(f,{args:D,name:C[Dn],store:k,after:$,onError:F});let y;try{y=w.apply(this&&this.$id===t?this:k,D)}catch(E){throw Bt(U,E),E}return y instanceof Promise?y.then(E=>(Bt(G,E),E)).catch(E=>(Bt(U,E),Promise.reject(E))):(Bt(G,y),y)};return C[Ar]=!0,C[Dn]=S,C},R=a.markRaw({actions:{},getters:{},state:[],hotState:_}),Y={_p:o,$id:t,$onAction:Dr.bind(null,f),$patch:v,$reset:I,$subscribe(w,S={}){const C=Dr(d,w,S.detached,()=>D()),D=i.run(()=>a.watch(()=>o.state.value[t],G=>{(S.flush==="sync"?p:u)&&w({storeId:t,type:re.direct,events:h},G)},Q({},c,S)));return C},$dispose:V},k=a.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie?Q({_hmrPayload:R,_customProperties:a.markRaw(new Set)},Y):Y);o._s.set(t,k);const T=(o._a&&o._a.runWithContext||kd)(()=>o._e.run(()=>(i=a.effectScope()).run(()=>e({action:P}))));for(const w in T){const S=T[w];if(a.isRef(S)&&!jr(S)||a.isReactive(S))process.env.NODE_ENV!=="production"&&s?_.value[w]=a.toRef(T,w):r||(m&&Od(S)&&(a.isRef(S)?S.value=m[w]:An(S,m[w])),o.state.value[t][w]=S),process.env.NODE_ENV!=="production"&&R.state.push(w);else if(typeof S=="function"){const C=process.env.NODE_ENV!=="production"&&s?S:P(S,w);T[w]=C,process.env.NODE_ENV!=="production"&&(R.actions[w]=S),l.actions[w]=S}else process.env.NODE_ENV!=="production"&&jr(S)&&(R.getters[w]=r?n.getters[w]:S,ie&&(T._getters||(T._getters=a.markRaw([]))).push(w))}if(Q(k,T),Q(a.toRaw(k),T),Object.defineProperty(k,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?_.value:o.state.value[t],set:w=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");v(S=>{Q(S,w)})}}),process.env.NODE_ENV!=="production"&&(k._hotUpdate=a.markRaw(w=>{k._hotUpdating=!0,w._hmrPayload.state.forEach(S=>{if(S in k.$state){const C=w.$state[S],D=k.$state[S];typeof C=="object"&&wt(C)&&wt(D)?Pr(C,D):w.$state[S]=D}k[S]=a.toRef(w.$state,S)}),Object.keys(k.$state).forEach(S=>{S in w.$state||delete k[S]}),u=!1,p=!1,o.state.value[t]=a.toRef(w._hmrPayload,"hotState"),p=!0,a.nextTick().then(()=>{u=!0});for(const S in w._hmrPayload.actions){const C=w[S];k[S]=P(C,S)}for(const S in w._hmrPayload.getters){const C=w._hmrPayload.getters[S],D=r?a.computed(()=>(Ie(o),C.call(k,k))):C;k[S]=D}Object.keys(k._hmrPayload.getters).forEach(S=>{S in w._hmrPayload.getters||delete k[S]}),Object.keys(k._hmrPayload.actions).forEach(S=>{S in w._hmrPayload.actions||delete k[S]}),k._hmrPayload=w._hmrPayload,k._getters=w._getters,k._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie){const w={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(S=>{Object.defineProperty(k,S,Q({value:k[S]},w))})}return o._p.forEach(w=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ie){const S=i.run(()=>w({store:k,app:o._a,pinia:o,options:l}));Object.keys(S||{}).forEach(C=>k._customProperties.add(C)),Q(k,S)}else Q(k,i.run(()=>w({store:k,app:o._a,pinia:o,options:l})))}),process.env.NODE_ENV!=="production"&&k.$state&&typeof k.$state=="object"&&typeof k.$state.constructor=="function"&&!k.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
18
18
  state: () => new MyClass()
19
- Found in store "${S.$id}".`),m&&s&&n.hydrate&&n.hydrate(S.$state,m),u=!0,p=!0,S}/*! #__NO_SIDE_EFFECTS__ */function Id(t,e,n){let o;const r=typeof e=="function";o=r?n:e;function s(i,l){const c=a.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&oe&&oe._testing?null:i)||(c?a.inject(Ed,null):null),i&&Oe(i),process.env.NODE_ENV!=="production"&&!oe)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
19
+ Found in store "${k.$id}".`),m&&r&&n.hydrate&&n.hydrate(k.$state,m),u=!0,p=!0,k}/*! #__NO_SIDE_EFFECTS__ */function Id(t,e,n){let o;const s=typeof e=="function";o=s?n:e;function r(i,l){const c=a.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&se&&se._testing?null:i)||(c?a.inject(bd,null):null),i&&Ie(i),process.env.NODE_ENV!=="production"&&!se)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
20
20
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
21
- This will fail in production.`);i=oe,i._s.has(t)||(r?An(t,e,o,i):Ls(t,o,i),process.env.NODE_ENV!=="production"&&(s._pinia=i));const u=i._s.get(t);if(process.env.NODE_ENV!=="production"&&l){const p="__hot:"+t,d=r?An(p,e,o,i,!0):Ls(p,Z({},o),i,!0);l._hotUpdate(d),delete i.state.value[p],i._s.delete(p)}if(process.env.NODE_ENV!=="production"&&se){const p=a.getCurrentInstance();if(p&&p.proxy&&!l){const d=p.proxy,f="_pStores"in d?d._pStores:d._pStores={};f[t]=u}}return u}return s.$id=t,s}function jn(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}const Td=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const xd=t=>t!=null,Vd=Object.prototype.toString,Cd=t=>Vd.call(t)==="[object Object]",Nd=()=>{};function Ie(t){return Array.isArray(t)?t:[t]}function $d(t,e,n){return a.watch(t,e,{...n,immediate:!0})}const Mt=Td?window:void 0;function Bt(t){var e;const n=a.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function ie(...t){const e=[],n=()=>{e.forEach(l=>l()),e.length=0},o=(l,c,u,p)=>(l.addEventListener(c,u,p),()=>l.removeEventListener(c,u,p)),r=a.computed(()=>{const l=Ie(a.toValue(t[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),s=$d(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>Bt(u)))!=null?c:[Mt].filter(u=>u!=null),Ie(a.toValue(r.value?t[1]:t[0])),Ie(a.unref(r.value?t[2]:t[1])),a.toValue(r.value?t[3]:t[2])]},([l,c,u,p])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=Cd(p)?{...p}:p;e.push(...l.flatMap(f=>c.flatMap(h=>u.map(m=>o(f,h,m,d)))))},{flush:"post"}),i=()=>{s(),n()};return jn(n),i}function Pd(){const t=a.shallowRef(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function Rd(t){const e=Pd();return a.computed(()=>(e.value,!!t()))}function Dd(t,e,n={}){const{window:o=Mt,...r}=n;let s;const i=Rd(()=>o&&"MutationObserver"in o),l=()=>{s&&(s.disconnect(),s=void 0)},c=a.computed(()=>{const f=a.toValue(t),h=Ie(f).map(Bt).filter(xd);return new Set(h)}),u=a.watch(()=>c.value,f=>{l(),i.value&&f.size&&(s=new MutationObserver(e),f.forEach(h=>s.observe(h,r)))},{immediate:!0,flush:"post"}),p=()=>s==null?void 0:s.takeRecords(),d=()=>{u(),l()};return jn(d),{isSupported:i,stop:d,takeRecords:p}}function Ad(t,e,n={}){const{window:o=Mt,document:r=o==null?void 0:o.document,flush:s="sync"}=n;if(!o||!r)return Nd;let i;const l=p=>{i==null||i(),i=p},c=a.watchEffect(()=>{const p=Bt(t);if(p){const{stop:d}=Dd(r,f=>{f.map(h=>[...h.removedNodes]).flat().some(h=>h===p||h.contains(p))&&e(f)},{window:o,childList:!0,subtree:!0});l(d)}},{flush:s}),u=()=>{c(),l()};return jn(u),u}function jd(t={}){var e;const{window:n=Mt,deep:o=!0,triggerOnRemoval:r=!1}=t,s=(e=t.document)!=null?e:n==null?void 0:n.document,i=()=>{var u;let p=s==null?void 0:s.activeElement;if(o)for(;p!=null&&p.shadowRoot;)p=(u=p==null?void 0:p.shadowRoot)==null?void 0:u.activeElement;return p},l=a.shallowRef(),c=()=>{l.value=i()};if(n){const u={capture:!0,passive:!0};ie(n,"blur",p=>{p.relatedTarget===null&&c()},u),ie(n,"focus",c,u)}return r&&Ad(l,c,{document:s}),c(),l}const Ld="focusin",Md="focusout",Bd=":focus-within";function Ud(t,e={}){const{window:n=Mt}=e,o=a.computed(()=>Bt(t)),r=a.shallowRef(!1),s=a.computed(()=>r.value),i=jd(e);if(!n||!i.value)return{focused:s};const l={passive:!0};return ie(o,Ld,()=>r.value=!0,l),ie(o,Md,()=>{var c,u,p;return r.value=(p=(u=(c=o.value)==null?void 0:c.matches)==null?void 0:u.call(c,Bd))!=null?p:!1},l),{focused:s}}function zd(t,{window:e=Mt,scrollTarget:n}={}){const o=a.ref(!1),r=()=>{if(!e)return;const s=e.document,i=Bt(t);if(!i)o.value=!1;else{const l=i.getBoundingClientRect();o.value=l.top<=(e.innerHeight||s.documentElement.clientHeight)&&l.left<=(e.innerWidth||s.documentElement.clientWidth)&&l.bottom>=0&&l.right>=0}};return a.watch(()=>Bt(t),()=>r(),{immediate:!0,flush:"post"}),e&&ie(n||e,"scroll",r,{capture:!1,passive:!0}),o}const st=t=>{let e=zd(t).value;return e=e&&t.offsetHeight>0,e},it=t=>t.tabIndex>=0,Ms=t=>{const e=t.target;return Ln(e)},Ln=t=>{var e;let n;if(t instanceof HTMLTableCellElement){const o=(e=t.parentElement)==null?void 0:e.previousElementSibling;if(o){const r=Array.from(o.children)[t.cellIndex];r&&(n=r)}}else if(t instanceof HTMLTableRowElement){const o=t.previousElementSibling;o&&(n=o)}return n&&(!it(n)||!st(n))?Ln(n):n},Hd=t=>{var e;const n=t.target;let o;if(n instanceof HTMLTableCellElement){const r=(e=n.parentElement)==null?void 0:e.parentElement;if(r){const s=r.firstElementChild,i=s==null?void 0:s.children[n.cellIndex];i&&(o=i)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const s=r.firstElementChild;s&&(o=s)}}return o&&(!it(o)||!st(o))?Mn(o):o},Bs=t=>{const e=t.target;return Mn(e)},Mn=t=>{var e;let n;if(t instanceof HTMLTableCellElement){const o=(e=t.parentElement)==null?void 0:e.nextElementSibling;if(o){const r=Array.from(o.children)[t.cellIndex];r&&(n=r)}}else if(t instanceof HTMLTableRowElement){const o=t.nextElementSibling;o&&(n=o)}return n&&(!it(n)||!st(n))?Mn(n):n},Kd=t=>{var e;const n=t.target;let o;if(n instanceof HTMLTableCellElement){const r=(e=n.parentElement)==null?void 0:e.parentElement;if(r){const s=r.lastElementChild,i=s==null?void 0:s.children[n.cellIndex];i&&(o=i)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const s=r.lastElementChild;s&&(o=s)}}return o&&(!it(o)||!st(o))?Ln(o):o},Us=t=>{const e=t.target;return Bn(e)},Bn=t=>{var e;let n;if(t.previousElementSibling)n=t.previousElementSibling;else{const o=(e=t.parentElement)==null?void 0:e.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!it(n)||!st(n))?Bn(n):n},zs=t=>{const e=t.target;return Un(e)},Un=t=>{var e;let n;if(t.nextElementSibling)n=t.nextElementSibling;else{const o=(e=t.parentElement)==null?void 0:e.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!it(n)||!st(n))?Un(n):n},Hs=t=>{const e=t.target.parentElement,n=e==null?void 0:e.firstElementChild;return n&&(!it(n)||!st(n))?Un(n):n},Ks=t=>{const e=t.target.parentElement,n=e==null?void 0:e.lastElementChild;return n&&(!it(n)||!st(n))?Bn(n):n},Te=["alt","control","shift","meta"],Fd={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Fs={"keydown.up":t=>{const e=Ms(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.down":t=>{const e=Bs(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.left":t=>{const e=Us(t);t.preventDefault(),t.stopPropagation(),e&&e.focus()},"keydown.right":t=>{const e=zs(t);t.preventDefault(),t.stopPropagation(),e&&e.focus()},"keydown.control.up":t=>{const e=Hd(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.control.down":t=>{const e=Kd(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.control.left":t=>{const e=Hs(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.control.right":t=>{const e=Ks(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.end":t=>{const e=Ks(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const e=Bs(t);e&&e.focus()}},"keydown.shift.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const e=Ms(t);e&&e.focus()}},"keydown.home":t=>{const e=Hs(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.tab":t=>{const e=zs(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.shift.tab":t=>{const e=Us(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())}};function Wd(t){const e=i=>{let l=null;return i.parent&&(typeof i.parent=="string"?l=document.querySelector(i.parent):i.parent instanceof HTMLElement?l=i.parent:l=i.parent.value),l},n=i=>{var l;const c=e(i);let u=[];if(typeof i.selectors=="string")u=c?Array.from(c.querySelectorAll(i.selectors)):Array.from(document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const p of i.selectors)p instanceof HTMLElement?u.push(p):u.push(p.$el);else if(i.selectors instanceof HTMLElement)u.push(i.selectors);else if((l=i.selectors)!=null&&l.value)if(Array.isArray(i.selectors.value))for(const p of i.selectors.value)p instanceof HTMLElement?u.push(p):u.push(p.$el);else u.push(i.selectors.value);return u},o=i=>{const l=e(i);let c=[];return i.selectors?c=n(i):l&&(c=Array.from(l.children).filter(u=>it(u)&&st(u))),c},r=i=>l=>{const c=Fd[l.key]||l.key.toLowerCase();if(Te.includes(c))return;const u=i.handlers||Fs;for(const p of Object.keys(u)){const[d,...f]=p.split(".");if(d==="keydown"&&f.includes(c)){const h=u[p],m=f.filter(g=>Te.includes(g)),_=Te.some(g=>{const y=g.charAt(0).toUpperCase()+g.slice(1);return l.getModifierState(y)});if(m.length>0){if(_){for(const g of Te)if(f.includes(g)){const y=g.charAt(0).toUpperCase()+g.slice(1);l.getModifierState(y)&&h(l)}}}else _||h(l)}}},s=[];a.onMounted(()=>{for(const i of t){const l=e(i),c=o(i),u=r(i),p=l?[l]:c;for(const d of p){const{focused:f}=Ud(a.ref(d)),h=a.watch(f,m=>{m?d.addEventListener("keydown",u):d.removeEventListener("keydown",u)});s.push(h)}}}),a.onBeforeUnmount(()=>{for(const i of s)i()})}function Ut(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}const zn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Gd=t=>t!=null,Jd=Object.prototype.toString,Ws=t=>Jd.call(t)==="[object Object]",wt=()=>{},Hn=qd();function qd(){var t,e;return zn&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Yd(...t){if(t.length!==1)return a.toRef(...t);const e=t[0];return typeof e=="function"?a.readonly(a.customRef(()=>({get:e,set:wt}))):a.ref(e)}function bt(t){return Array.isArray(t)?t:[t]}function Xd(t){return a.getCurrentInstance()}function Zd(t,e=!0,n){Xd()?a.onMounted(t,n):e?t():a.nextTick(t)}function Gs(t,e,n){return a.watch(t,e,{...n,immediate:!0})}const Kn=zn?window:void 0;function zt(t){var e;const n=a.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function Js(...t){const e=[],n=()=>{e.forEach(l=>l()),e.length=0},o=(l,c,u,p)=>(l.addEventListener(c,u,p),()=>l.removeEventListener(c,u,p)),r=a.computed(()=>{const l=bt(a.toValue(t[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),s=Gs(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>zt(u)))!=null?c:[Kn].filter(u=>u!=null),bt(a.toValue(r.value?t[1]:t[0])),bt(a.unref(r.value?t[2]:t[1])),a.toValue(r.value?t[3]:t[2])]},([l,c,u,p])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=Ws(p)?{...p}:p;e.push(...l.flatMap(f=>c.flatMap(h=>u.map(m=>o(f,h,m,d)))))},{flush:"post"}),i=()=>{s(),n()};return Ut(n),i}function Qd(){const t=a.shallowRef(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function qs(t){const e=Qd();return a.computed(()=>(e.value,!!t()))}function Ys(t,e,n={}){const{window:o=Kn,...r}=n;let s;const i=qs(()=>o&&"MutationObserver"in o),l=()=>{s&&(s.disconnect(),s=void 0)},c=a.computed(()=>{const f=a.toValue(t),h=bt(f).map(zt).filter(Gd);return new Set(h)}),u=a.watch(()=>c.value,f=>{l(),i.value&&f.size&&(s=new MutationObserver(e),f.forEach(h=>s.observe(h,r)))},{immediate:!0,flush:"post"}),p=()=>s==null?void 0:s.takeRecords(),d=()=>{u(),l()};return Ut(d),{isSupported:i,stop:d,takeRecords:p}}function tf(t,e,n={}){const{window:o=Kn,...r}=n;let s;const i=qs(()=>o&&"ResizeObserver"in o),l=()=>{s&&(s.disconnect(),s=void 0)},c=a.computed(()=>{const d=a.toValue(t);return Array.isArray(d)?d.map(f=>zt(f)):[zt(d)]}),u=a.watch(c,d=>{if(l(),i.value&&o){s=new ResizeObserver(e);for(const f of d)f&&s.observe(f,r)}},{immediate:!0,flush:"post"}),p=()=>{l(),u()};return Ut(p),{isSupported:i,stop:p}}function ef(t,e={}){const{reset:n=!0,windowResize:o=!0,windowScroll:r=!0,immediate:s=!0,updateTiming:i="sync"}=e,l=a.shallowRef(0),c=a.shallowRef(0),u=a.shallowRef(0),p=a.shallowRef(0),d=a.shallowRef(0),f=a.shallowRef(0),h=a.shallowRef(0),m=a.shallowRef(0);function _(){const y=zt(t);if(!y){n&&(l.value=0,c.value=0,u.value=0,p.value=0,d.value=0,f.value=0,h.value=0,m.value=0);return}const I=y.getBoundingClientRect();l.value=I.height,c.value=I.bottom,u.value=I.left,p.value=I.right,d.value=I.top,f.value=I.width,h.value=I.x,m.value=I.y}function g(){i==="sync"?_():i==="next-frame"&&requestAnimationFrame(()=>_())}return tf(t,g),a.watch(()=>zt(t),y=>!y&&g()),Ys(t,g,{attributeFilter:["style","class"]}),r&&Js("scroll",g,{capture:!0,passive:!0}),o&&Js("resize",g,{passive:!0}),Zd(()=>{s&&g()}),{height:l,bottom:c,left:u,right:p,top:d,width:f,x:h,y:m,update:g}}const nf=(t=8)=>Array.from({length:t},()=>Math.floor(Math.random()*16).toString(16)).join(""),Fn=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},of=["tabindex"],rf=a.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(t){const e=a.useTemplateRef("rowEl"),n=a.computed(()=>t.store.isRowVisible(t.rowIndex)),o=a.computed(()=>t.store.getRowExpandSymbol(t.rowIndex));if(t.addNavigation){let r=Fs;typeof t.addNavigation=="object"&&(r={...r,...t.addNavigation}),Wd([{selectors:e,handlers:r}])}return(r,s)=>a.withDirectives((a.openBlock(),a.createElementBlock("tr",{ref:"rowEl",tabindex:r.tabIndex,class:"atable-row"},[r.store.config.view!=="uncounted"?a.renderSlot(r.$slots,"index",{key:0},()=>[r.store.config.view==="list"?(a.openBlock(),a.createElementBlock("td",{key:0,tabIndex:-1,class:a.normalizeClass(["list-index",r.store.hasPinnedColumns?"sticky-index":""])},a.toDisplayString(r.rowIndex+1),3)):r.store.isTreeView?(a.openBlock(),a.createElementBlock("td",{key:1,tabIndex:-1,class:a.normalizeClass(["tree-index",r.store.hasPinnedColumns?"sticky-index":""]),onClick:s[0]||(s[0]=i=>r.store.toggleRowExpand(r.rowIndex))},a.toDisplayString(o.value),3)):a.createCommentVNode("",!0)],!0):a.createCommentVNode("",!0),a.renderSlot(r.$slots,"default",{},void 0,!0)],8,of)),[[a.vShow,n.value]])}}),sf=Fn(rf,[["__scopeId","data-v-c554ee0f"]]),Wn=zn?window:void 0;function Et(t){var e;const n=a.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function xe(...t){const e=[],n=()=>{e.forEach(l=>l()),e.length=0},o=(l,c,u,p)=>(l.addEventListener(c,u,p),()=>l.removeEventListener(c,u,p)),r=a.computed(()=>{const l=bt(a.toValue(t[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),s=Gs(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>Et(u)))!=null?c:[Wn].filter(u=>u!=null),bt(a.toValue(r.value?t[1]:t[0])),bt(a.unref(r.value?t[2]:t[1])),a.toValue(r.value?t[3]:t[2])]},([l,c,u,p])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=Ws(p)?{...p}:p;e.push(...l.flatMap(f=>c.flatMap(h=>u.map(m=>o(f,h,m,d)))))},{flush:"post"}),i=()=>{s(),n()};return Ut(n),i}let Xs=!1;function Zs(t,e,n={}){const{window:o=Wn,ignore:r=[],capture:s=!0,detectIframe:i=!1,controls:l=!1}=n;if(!o)return l?{stop:wt,cancel:wt,trigger:wt}:wt;if(Hn&&!Xs){Xs=!0;const g={passive:!0};Array.from(o.document.body.children).forEach(y=>y.addEventListener("click",wt,g)),o.document.documentElement.addEventListener("click",wt,g)}let c=!0;const u=g=>a.toValue(r).some(y=>{if(typeof y=="string")return Array.from(o.document.querySelectorAll(y)).some(I=>I===g.target||g.composedPath().includes(I));{const I=Et(y);return I&&(g.target===I||g.composedPath().includes(I))}});function p(g){const y=a.toValue(g);return y&&y.$.subTree.shapeFlag===16}function d(g,y){const I=a.toValue(g),V=I.$.subTree&&I.$.subTree.children;return V==null||!Array.isArray(V)?!1:V.some(P=>P.el===y.target||y.composedPath().includes(P.el))}const f=g=>{const y=Et(t);if(g.target!=null&&!(!(y instanceof Element)&&p(t)&&d(t,g))&&!(!y||y===g.target||g.composedPath().includes(y))){if("detail"in g&&g.detail===0&&(c=!u(g)),!c){c=!0;return}e(g)}};let h=!1;const m=[xe(o,"click",g=>{h||(h=!0,setTimeout(()=>{h=!1},0),f(g))},{passive:!0,capture:s}),xe(o,"pointerdown",g=>{const y=Et(t);c=!u(g)&&!!(y&&!g.composedPath().includes(y))},{passive:!0}),i&&xe(o,"blur",g=>{setTimeout(()=>{var y;const I=Et(t);((y=o.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(I!=null&&I.contains(o.document.activeElement))&&e(g)},0)},{passive:!0})].filter(Boolean),_=()=>m.forEach(g=>g());return l?{stop:_,cancel:()=>{c=!1},trigger:g=>{c=!0,f(g),c=!1}}:_}const Gn=new WeakMap,af={mounted(t,e){const n=!e.modifiers.bubble;let o;if(typeof e.value=="function")o=Zs(t,e.value,{capture:n});else{const[r,s]=e.value;o=Zs(t,r,Object.assign({capture:n},s))}Gn.set(t,o)},unmounted(t){const e=Gn.get(t);e&&typeof e=="function"?e():e==null||e.stop(),Gn.delete(t)}};function lf(){const t=a.shallowRef(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function cf(t){const e=lf();return a.computed(()=>(e.value,!!t()))}function Qs(t,e,n={}){const{window:o=Wn,...r}=n;let s;const i=cf(()=>o&&"ResizeObserver"in o),l=()=>{s&&(s.disconnect(),s=void 0)},c=a.computed(()=>{const d=a.toValue(t);return Array.isArray(d)?d.map(f=>Et(f)):[Et(d)]}),u=a.watch(c,d=>{if(l(),i.value&&o){s=new ResizeObserver(e);for(const f of d)f&&s.observe(f,r)}},{immediate:!0,flush:"post"}),p=()=>{l(),u()};return Ut(p),{isSupported:i,stop:p}}function Jn(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}const uf={mounted(t,e){typeof e.value=="function"?Qs(t,e.value):Qs(t,...e.value)}};function ti(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth<t.scrollWidth||e.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const n=t.parentNode;return!n||n.tagName==="BODY"?!1:ti(n)}}function df(t){const e=t||window.event,n=e.target;return ti(n)?!1:e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)}const qn=new WeakMap;function ff(t,e=!1){const n=a.shallowRef(e);let o=null,r="";a.watch(Yd(t),l=>{const c=Jn(a.toValue(l));if(c){const u=c;if(qn.get(u)||qn.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(r=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const s=()=>{const l=Jn(a.toValue(t));!l||n.value||(Hn&&(o=xe(l,"touchmove",c=>{df(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},i=()=>{const l=Jn(a.toValue(t));!l||!n.value||(Hn&&(o==null||o()),l.style.overflow=r,qn.delete(l),n.value=!1)};return Ut(i),a.computed({get(){return n.value},set(l){l?s():i()}})}function pf(){let t=!1;const e=a.shallowRef(!1);return(n,o)=>{if(e.value=o.value,t)return;t=!0;const r=ff(n,o.value);a.watch(e,s=>r.value=s)}}pf();const hf={class:"gantt-connection-overlay"},mf={class:"connection-svg",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:1}},gf=["d","stroke-width","onDblclick"],_f=["d","stroke","stroke-width","id","onDblclick"],yf=.25,Ve=16,vf=a.defineComponent({__name:"AGanttConnection",props:{store:{}},emits:["connection:delete"],setup(t,{emit:e}){const n=e,o=a.computed(()=>t.store.connectionPaths.filter(i=>{const l=t.store.ganttBars.find(u=>u.id===i.from.barId),c=t.store.ganttBars.find(u=>u.id===i.to.barId);return l&&c})),r=(i,l=!1)=>{const c=t.store.connectionHandles.find(L=>L.barId===i.from.barId&&L.side===i.from.side),u=t.store.connectionHandles.find(L=>L.barId===i.to.barId&&L.side===i.to.side);if(!c||!u)return"";const p=c.position.x+Ve/2,d=c.position.y+Ve/2,f=u.position.x+Ve/2,h=u.position.y+Ve/2,m=Math.abs(f-p),_=Math.max(m*yf,50),g=p+(i.from.side==="left"?-_:_),y=f+(i.to.side==="left"?-_:_),I={x:.5*p+.5*g,y:.5*d+.5*d},V={x:.5*g+.5*y,y:.5*d+.5*h},P={x:.5*y+.5*f,y:.5*h+.5*h},R={x:.5*I.x+.5*V.x,y:.5*I.y+.5*V.y},J={x:.5*V.x+.5*P.x,y:.5*V.y+.5*P.y},S={x:.5*R.x+.5*J.x,y:.5*R.y+.5*J.y};return`M ${p} ${d} Q ${g} ${d}, ${S.x} ${S.y} Q ${y} ${h}, ${f} ${h}`},s=i=>{t.store.deleteConnection(i.id)&&n("connection:delete",i)};return(i,l)=>(a.openBlock(),a.createElementBlock("div",hf,[(a.openBlock(),a.createElementBlock("svg",mf,[l[0]||(l[0]=a.createElementVNode("defs",null,[a.createElementVNode("path",{id:"arrowhead",d:"M 0 -7 L 20 0 L 0 7Z",stroke:"black","stroke-width":"1",fill:"currentColor"}),a.createElementVNode("marker",{id:"arrowhead-marker",markerWidth:"10",markerHeight:"7",refX:"5",refY:"3.5",orient:"auto",markerUnits:"strokeWidth"},[a.createElementVNode("polygon",{points:"0 0, 10 3.5, 0 7",fill:"currentColor"})])],-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,c=>{var u;return a.openBlock(),a.createElementBlock("path",{key:`${c.id}-hitbox`,d:r(c),stroke:"transparent","stroke-width":(((u=c.style)==null?void 0:u.width)||2)+10,fill:"none",class:"connection-hitbox",onDblclick:p=>s(c)},null,40,gf)}),128)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,c=>{var u,p;return a.openBlock(),a.createElementBlock("path",{key:c.id,d:r(c),stroke:((u=c.style)==null?void 0:u.color)||"#666","stroke-width":((p=c.style)==null?void 0:p.width)||2,fill:"none","marker-mid":"url(#arrowhead-marker)",id:c.id,class:"connection-path animated-path",onDblclick:d=>s(c)},null,40,_f)}),128))]))]))}}),wf=Fn(vf,[["__scopeId","data-v-955111b6"]]),bf={key:0},Ef={class:"atable-header-row",tabindex:"-1"},kf=["data-colindex"],Sf=a.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(t){const e=n=>{var o;for(const r of n){if(r.borderBoxSize.length===0)continue;const s=r.borderBoxSize[0].inlineSize,i=Number(r.target.dataset.colindex),l=(o=t.store.columns[i])==null?void 0:o.width;typeof l=="number"&&l!==s&&t.store.resizeColumn(i,s)}};return(n,o)=>n.columns.length?(a.openBlock(),a.createElementBlock("thead",bf,[a.createElementVNode("tr",Ef,[n.store.zeroColumn?(a.openBlock(),a.createElementBlock("th",{key:0,id:"header-index",class:a.normalizeClass([[n.store.hasPinnedColumns?"sticky-index":"",n.store.isTreeView?"tree-index":"",n.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.columns,(r,s)=>a.withDirectives((a.openBlock(),a.createElementBlock("th",{key:r.name,"data-colindex":s,tabindex:"-1",style:a.normalizeStyle(n.store.getHeaderCellStyle(r)),class:a.normalizeClass(r.pinned?"sticky-column":"")},[a.renderSlot(n.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(r.label||String.fromCharCode(s+97).toUpperCase()),1)])],14,kf)),[[a.unref(uf),e]])),128))])])):a.createCommentVNode("",!0)}}),Of=a.defineComponent({__name:"ATableModal",props:{store:{}},setup(t){const e=a.useTemplateRef("amodal"),{width:n,height:o}=ef(e),r=a.computed(()=>{var s,i,l,c;if(!(t.store.modal.height&&t.store.modal.width&&t.store.modal.left&&t.store.modal.bottom))return;const u=(s=t.store.modal.cell)==null?void 0:s.closest("table"),p=u.offsetHeight||0,d=u.offsetWidth||0;let f=((i=t.store.modal.cell)==null?void 0:i.offsetTop)||0;const h=((l=u.querySelector("thead"))==null?void 0:l.offsetHeight)||0;f+=h,f=f+o.value<p?f:f-(o.value+t.store.modal.height);let m=((c=t.store.modal.cell)==null?void 0:c.offsetLeft)||0;return m=m+n.value<=d?m:m-(n.value-t.store.modal.width),{left:`${m}px`,top:`${f}px`}});return(s,i)=>(a.openBlock(),a.createElementBlock("div",{class:"amodal",ref:"amodal",tabindex:"-1",onClick:i[0]||(i[0]=a.withModifiers(()=>{},["stop"])),onInput:i[1]||(i[1]=a.withModifiers(()=>{},["stop"])),style:a.normalizeStyle(r.value)},[a.renderSlot(s.$slots,"default")],36))}}),If=t=>{const e=t.id||nf();return Id(`table-${e}`,()=>{const n=()=>{const w=[Object.assign({},{rowModified:!1})],b=new Set;for(let k=0;k<r.value.length;k++){const $=r.value[k];$.parent!==null&&$.parent!==void 0&&b.add($.parent)}for(let k=0;k<r.value.length;k++){const $=r.value[k];w[k]={childrenOpen:!1,expanded:!1,indent:$.indent||0,isParent:b.has(k),isRoot:$.parent===null||$.parent===void 0,rowModified:!1,open:$.parent===null||$.parent===void 0,parent:$.parent}}return w},o=a.ref(t.columns),r=a.ref(t.rows),s=a.ref(t.config||{}),i=a.ref({}),l=a.ref({}),c=a.computed(()=>{const w={};for(const[b,k]of o.value.entries())for(const[$,A]of r.value.entries())w[`${b}:${$}`]=A[k.name];return w}),u=a.computed({get:()=>{const w=n();for(let b=0;b<w.length;b++)i.value[b]&&(w[b].rowModified=i.value[b]),l.value[b]&&(l.value[b].childrenOpen!==void 0&&(w[b].childrenOpen=l.value[b].childrenOpen),l.value[b].expanded!==void 0&&(w[b].expanded=l.value[b].expanded));if(y.value){const b=(k,$)=>{const A=$[k];if(A.isRoot||A.parent===null||A.parent===void 0)return!0;const B=A.parent;return B<0||B>=$.length?!1:($[B].childrenOpen||!1)&&b(B,$)};for(let k=0;k<w.length;k++)w[k].isRoot||(w[k].open=b(k,w))}return w},set:w=>{JSON.stringify(w)!==JSON.stringify(u.value)&&(u.value=w)}}),p=a.ref(t.modal||{visible:!1}),d=a.ref({}),f=a.ref([]),h=a.ref([]),m=a.ref([]),_=a.computed(()=>o.value.some(w=>w.pinned)),g=a.computed(()=>s.value.view==="gantt"||s.value.view==="tree-gantt"),y=a.computed(()=>s.value.view==="tree"||s.value.view==="tree-gantt"),I=a.computed(()=>`${Math.ceil(r.value.length/100+1)}ch`),V=a.computed(()=>s.value.view?["list","tree","tree-gantt","list-expansion"].includes(s.value.view):!1),P=(w,b)=>c.value[`${w}:${b}`],R=(w,b,k)=>{const $=`${w}:${b}`,A=o.value[w];c.value[$]!==k&&(i.value[b]=!0),c.value[$]=k,r.value[b]={...r.value[b],[A.name]:k}},J=w=>{r.value=w},S=(w,b,k)=>{const $=`${w}:${b}`;c.value[$]!==k&&(i.value[b]=!0,d.value[$]=k)},L=w=>{const b=o.value.indexOf(w)===o.value.length-1,k=s.value.fullWidth?w.resizable&&!b:w.resizable;return{width:w.width||"40ch",textAlign:w.align||"center",...k&&{resize:"horizontal",overflow:"hidden",whiteSpace:"nowrap"}}},T=(w,b)=>{if(w<0||w>=o.value.length)return;const k=Math.max(b,40);o.value[w]={...o.value[w],width:`${k}px`}},v=w=>{const b=r.value[w];return g.value&&b.gantt!==void 0},O=w=>!y.value||u.value[w].isRoot||u.value[w].open,C=w=>!y.value&&s.value.view!=="list-expansion"?"":y.value&&(u.value[w].isRoot||u.value[w].isParent)?u.value[w].childrenOpen?"▼":"►":s.value.view==="list-expansion"?u.value[w].expanded?"▼":"►":"",D=w=>{if(y.value){const b=l.value[w]||{},k=!(b.childrenOpen??u.value[w].childrenOpen);l.value[w]={...b,childrenOpen:k},k||F(w)}else if(s.value.view==="list-expansion"){const b=l.value[w]||{},k=b.expanded??u.value[w].expanded;l.value[w]={...b,expanded:!k}}},F=w=>{for(let b=0;b<r.value.length;b++)if(u.value[b].parent===w){const k=l.value[b]||{};l.value[b]={...k,childrenOpen:!1},F(b)}},z=(w,b)=>{const k=P(w,b);return N(w,b,k)},N=(w,b,k)=>{const $=o.value[w],A=r.value[b],B=$.format;return B?typeof B=="function"?B(k,{table:c.value,row:A,column:$}):typeof B=="string"?Function(`"use strict";return (${B})`)()(k,{table:c.value,row:A,column:$}):k:k};return{columns:o,config:s,connectionHandles:h,connectionPaths:m,display:u,ganttBars:f,modal:p,rows:r,table:c,updates:d,hasPinnedColumns:_,isGanttView:g,isTreeView:y,numberedRowWidth:I,zeroColumn:V,closeModal:w=>{var b;w.target instanceof Node&&(b=p.value.parent)!=null&&b.contains(w.target)||p.value.visible&&(p.value.visible=!1)},createConnection:(w,b,k)=>{const $=h.value.find(Ht=>Ht.id===w),A=h.value.find(Ht=>Ht.id===b);if(!$||!A)return console.warn("Cannot create connection: handle not found"),null;const B={id:`connection-${w}-${b}`,from:{barId:$.barId,side:$.side},to:{barId:A.barId,side:A.side},style:k==null?void 0:k.style,label:k==null?void 0:k.label};return m.value.push(B),B},deleteConnection:w=>{const b=m.value.findIndex(k=>k.id===w);return b>=0?(m.value.splice(b,1),!0):!1},getCellData:P,getCellDisplayValue:z,getConnectionsForBar:w=>m.value.filter(b=>b.from.barId===w||b.to.barId===w),getFormattedValue:N,getHandlesForBar:w=>h.value.filter(b=>b.barId===w),getHeaderCellStyle:L,getIndent:(w,b)=>b&&w===0&&b>0?`${b}ch`:"inherit",getRowExpandSymbol:C,isRowGantt:v,isRowVisible:O,registerConnectionHandle:w=>{const b=h.value.findIndex(k=>k.id===w.id);b>=0?h.value[b]=w:h.value.push(w)},registerGanttBar:w=>{const b=f.value.findIndex(k=>k.id===w.id);b>=0?f.value[b]=w:f.value.push(w)},resizeColumn:T,setCellData:R,setCellText:S,toggleRowExpand:D,unregisterConnectionHandle:w=>{const b=h.value.findIndex(k=>k.id===w);b>=0&&h.value.splice(b,1)},unregisterGanttBar:w=>{const b=f.value.findIndex(k=>k.id===w);b>=0&&f.value.splice(b,1)},updateGanttBar:w=>{var b;const k=(b=r.value[w.rowIndex])==null?void 0:b.gantt;k&&(w.type==="resize"?w.edge==="start"?(k.startIndex=w.newStart,k.endIndex=w.end,k.colspan=k.endIndex-k.startIndex):w.edge==="end"&&(k.startIndex=w.start,k.endIndex=w.newEnd,k.colspan=k.endIndex-k.startIndex):w.type==="bar"&&(k.startIndex=w.newStart,k.endIndex=w.newEnd,k.colspan=k.endIndex-k.startIndex))},updateRows:J}})()},Tf={class:"atable-container",style:{position:"relative"}},xf=a.defineComponent({__name:"ATable",props:a.mergeModels({id:{},config:{default:()=>new Object}},{rows:{required:!0},rowsModifiers:{},columns:{required:!0},columnsModifiers:{}}),emits:a.mergeModels(["cellUpdate","gantt:drag","connection:event","columns:update"],["update:rows","update:columns"]),setup(t,{expose:e,emit:n}){const o=a.useModel(t,"rows"),r=a.useModel(t,"columns"),s=n,i=a.useTemplateRef("table"),l=If({columns:r.value,rows:o.value,id:t.id,config:t.config});l.$onAction(({name:h,store:m,args:_,after:g})=>{if(h==="setCellData"||h==="setCellText"){const[y,I,V]=_,P=m.getCellData(y,I);g(()=>{o.value=[...m.rows],s("cellUpdate",{colIndex:y,rowIndex:I,newValue:V,oldValue:P})})}else if(h==="updateGanttBar"){const[y]=_;let I=!1;y.type==="resize"?I=y.oldColspan!==y.newColspan:y.type==="bar"&&(I=y.oldStart!==y.newStart||y.oldEnd!==y.newEnd),I&&g(()=>{s("gantt:drag",y)})}else h==="resizeColumn"&&g(()=>{r.value=[...m.columns],s("columns:update",[...m.columns])})}),a.watch(()=>o.value,h=>{JSON.stringify(h)!==JSON.stringify(l.rows)&&(l.rows=[...h])},{deep:!0}),a.watch(r,h=>{JSON.stringify(h)!==JSON.stringify(l.columns)&&(l.columns=[...h],s("columns:update",[...h]))},{deep:!0}),a.onMounted(()=>{r.value.some(h=>h.pinned)&&(u(),l.isTreeView&&Ys(i,u,{childList:!0,subtree:!0}))});const c=a.computed(()=>l.columns.filter(h=>h.pinned).length),u=()=>{const h=i.value,m=h==null?void 0:h.rows[0],_=h==null?void 0:h.rows[1],g=m?Array.from(m.cells):[];for(const[y,I]of g.entries()){const V=_==null?void 0:_.cells[y];V&&(I.style.width=`${V.offsetWidth}px`)}for(const y of(h==null?void 0:h.rows)||[]){let I=0;const V=[];for(const P of y.cells)(P.classList.contains("sticky-column")||P.classList.contains("sticky-index"))&&(P.style.left=`${I}px`,I+=P.offsetWidth,V.push(P));V.length>0&&V[V.length-1].classList.add("sticky-column-edge")}};window.addEventListener("keydown",h=>{if(h.key==="Escape"&&l.modal.visible){l.modal.visible=!1;const m=l.modal.parent;m&&a.nextTick().then(()=>{m.focus()})}});const p=h=>{var m;if(!h.gantt||c.value===0)return l.columns;const _=[];for(let g=0;g<c.value;g++){const y={...l.columns[g]};y.originalIndex=g,_.push(y)}return _.push({...l.columns[c.value],isGantt:!0,colspan:((m=h.gantt)==null?void 0:m.colspan)||l.columns.length-c.value,originalIndex:c.value,width:"auto"}),_},d=h=>{s("connection:event",{type:"create",connection:h})},f=h=>{s("connection:event",{type:"delete",connection:h})};return e({store:l,createConnection:l.createConnection,deleteConnection:l.deleteConnection,getConnectionsForBar:l.getConnectionsForBar,getHandlesForBar:l.getHandlesForBar}),(h,m)=>(a.openBlock(),a.createElementBlock("div",Tf,[a.withDirectives((a.openBlock(),a.createElementBlock("table",{ref:"table",class:"atable",style:a.normalizeStyle({width:a.unref(l).config.fullWidth?"100%":"auto"})},[a.renderSlot(h.$slots,"header",{data:a.unref(l)},()=>[a.createVNode(Sf,{columns:a.unref(l).columns,store:a.unref(l)},null,8,["columns","store"])],!0),a.createElementVNode("tbody",null,[a.renderSlot(h.$slots,"body",{data:a.unref(l)},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(l).rows,(_,g)=>(a.openBlock(),a.createBlock(sf,{key:_.id,row:_,rowIndex:g,store:a.unref(l)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p(_),(y,I)=>{var V,P,R;return a.openBlock(),a.createElementBlock(a.Fragment,{key:y.name},[y.isGantt?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.ganttComponent||"AGanttCell"),{key:0,store:a.unref(l),columnsCount:a.unref(l).columns.length-c.value,color:(V=_.gantt)==null?void 0:V.color,start:(P=_.gantt)==null?void 0:P.startIndex,end:(R=_.gantt)==null?void 0:R.endIndex,colspan:y.colspan,pinned:y.pinned,rowIndex:g,colIndex:y.originalIndex??I,style:a.normalizeStyle({textAlign:(y==null?void 0:y.align)||"center",minWidth:(y==null?void 0:y.width)||"40ch",width:a.unref(l).config.fullWidth?"auto":null}),"onConnection:create":d},null,40,["store","columnsCount","color","start","end","colspan","pinned","rowIndex","colIndex","style"])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.cellComponent||"ACell"),{key:1,store:a.unref(l),pinned:y.pinned,rowIndex:g,colIndex:I,style:a.normalizeStyle({textAlign:(y==null?void 0:y.align)||"center",width:a.unref(l).config.fullWidth?"auto":null}),spellcheck:"false"},null,8,["store","pinned","rowIndex","colIndex","style"]))],64)}),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),a.renderSlot(h.$slots,"footer",{data:a.unref(l)},void 0,!0),a.renderSlot(h.$slots,"modal",{data:a.unref(l)},()=>[a.withDirectives(a.createVNode(Of,{store:a.unref(l)},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(l).modal.component),a.mergeProps({key:`${a.unref(l).modal.rowIndex}:${a.unref(l).modal.colIndex}`,colIndex:a.unref(l).modal.colIndex,rowIndex:a.unref(l).modal.rowIndex,store:a.unref(l)},a.unref(l).modal.componentProps),null,16,["colIndex","rowIndex","store"]))]),_:1},8,["store"]),[[a.vShow,a.unref(l).modal.visible]])],!0)],4)),[[a.unref(af),a.unref(l).closeModal]]),a.unref(l).isGanttView?(a.openBlock(),a.createBlock(wf,{key:0,store:a.unref(l),"onConnection:delete":f},null,8,["store"])):a.createCommentVNode("",!0)]))}}),Vf=Fn(xf,[["__scopeId","data-v-7b5f2870"]]),ei=a.defineComponent({__name:"Records",setup(t){const{stonecrop:e}=ps(),n=a.computed(()=>{var s;return(s=e.value)==null?void 0:s.store.records}),o=a.computed(()=>{var s,i,l;return(l=(i=(s=e.value)==null?void 0:s.schema)==null?void 0:i.schema)==null?void 0:l.toArray()}),r={view:"list"};return(s,i)=>(a.openBlock(),a.createBlock(a.unref(Vf),{rows:n.value,"onUpdate:rows":i[0]||(i[0]=l=>n.value=l),columns:o.value,"onUpdate:columns":i[1]||(i[1]=l=>o.value=l),config:r},null,8,["rows","columns"]))}}),Cf={class:"tabs"},Nf={tabindex:"0"},$f={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"},Pf={tabindex:"0"},Rf={style:{width:"11pt"}},ni=Xn(a.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(t){const e=a.ref(!0),n=a.ref(!1),o=a.ref(""),r=a.useTemplateRef("searchinput"),s=a.computed(()=>e.value?"unrotated":"rotated"),i=()=>{e.value=!e.value},l=async()=>{n.value=!n.value,await a.nextTick(()=>{r.value.focus()})},c=d=>{d.preventDefault(),d.stopPropagation()},u=async d=>{d.preventDefault(),d.stopPropagation(),await l()},p=()=>{};return(d,f)=>{const h=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("footer",null,[a.createElementVNode("ul",Cf,[a.createElementVNode("li",{class:"hidebreadcrumbs",onClick:i,onKeydown:a.withKeys(i,["enter"])},[a.createElementVNode("a",Nf,[a.createElementVNode("div",{class:a.normalizeClass(s.value)},"×",2)])],32),a.createElementVNode("li",{class:"hometab",onClick:p,onKeydown:a.withKeys(p,["enter"]),style:a.normalizeStyle({display:e.value?"block":"none"})},[a.createVNode(h,{to:"/home",tabindex:"0"},{default:a.withCtx(()=>[(a.openBlock(),a.createElementBlock("svg",$f,f[5]||(f[5]=[a.createElementVNode("g",null,[a.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
21
+ This will fail in production.`);i=se,i._s.has(t)||(s?jn(t,e,o,i):Lr(t,o,i),process.env.NODE_ENV!=="production"&&(r._pinia=i));const u=i._s.get(t);if(process.env.NODE_ENV!=="production"&&l){const p="__hot:"+t,d=s?jn(p,e,o,i,!0):Lr(p,Q({},o),i,!0);l._hotUpdate(d),delete i.state.value[p],i._s.delete(p)}if(process.env.NODE_ENV!=="production"&&ie){const p=a.getCurrentInstance();if(p&&p.proxy&&!l){const d=p.proxy,f="_pStores"in d?d._pStores:d._pStores={};f[t]=u}}return u}return r.$id=t,r}function Ln(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}const Td=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const xd=t=>t!=null,Vd=Object.prototype.toString,Cd=t=>Vd.call(t)==="[object Object]",Nd=()=>{};function Te(t){return Array.isArray(t)?t:[t]}function $d(t,e,n){return a.watch(t,e,{...n,immediate:!0})}const Ut=Td?window:void 0;function zt(t){var e;const n=a.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function ae(...t){const e=[],n=()=>{e.forEach(l=>l()),e.length=0},o=(l,c,u,p)=>(l.addEventListener(c,u,p),()=>l.removeEventListener(c,u,p)),s=a.computed(()=>{const l=Te(a.toValue(t[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),r=$d(()=>{var l,c;return[(c=(l=s.value)==null?void 0:l.map(u=>zt(u)))!=null?c:[Ut].filter(u=>u!=null),Te(a.toValue(s.value?t[1]:t[0])),Te(a.unref(s.value?t[2]:t[1])),a.toValue(s.value?t[3]:t[2])]},([l,c,u,p])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=Cd(p)?{...p}:p;e.push(...l.flatMap(f=>c.flatMap(h=>u.map(m=>o(f,h,m,d)))))},{flush:"post"}),i=()=>{r(),n()};return Ln(n),i}function Pd(){const t=a.shallowRef(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function Rd(t){const e=Pd();return a.computed(()=>(e.value,!!t()))}function Dd(t,e,n={}){const{window:o=Ut,...s}=n;let r;const i=Rd(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},c=a.computed(()=>{const f=a.toValue(t),h=Te(f).map(zt).filter(xd);return new Set(h)}),u=a.watch(()=>c.value,f=>{l(),i.value&&f.size&&(r=new MutationObserver(e),f.forEach(h=>r.observe(h,s)))},{immediate:!0,flush:"post"}),p=()=>r==null?void 0:r.takeRecords(),d=()=>{u(),l()};return Ln(d),{isSupported:i,stop:d,takeRecords:p}}function Ad(t,e,n={}){const{window:o=Ut,document:s=o==null?void 0:o.document,flush:r="sync"}=n;if(!o||!s)return Nd;let i;const l=p=>{i==null||i(),i=p},c=a.watchEffect(()=>{const p=zt(t);if(p){const{stop:d}=Dd(s,f=>{f.map(h=>[...h.removedNodes]).flat().some(h=>h===p||h.contains(p))&&e(f)},{window:o,childList:!0,subtree:!0});l(d)}},{flush:r}),u=()=>{c(),l()};return Ln(u),u}function jd(t={}){var e;const{window:n=Ut,deep:o=!0,triggerOnRemoval:s=!1}=t,r=(e=t.document)!=null?e:n==null?void 0:n.document,i=()=>{var u;let p=r==null?void 0:r.activeElement;if(o)for(;p!=null&&p.shadowRoot;)p=(u=p==null?void 0:p.shadowRoot)==null?void 0:u.activeElement;return p},l=a.shallowRef(),c=()=>{l.value=i()};if(n){const u={capture:!0,passive:!0};ae(n,"blur",p=>{p.relatedTarget===null&&c()},u),ae(n,"focus",c,u)}return s&&Ad(l,c,{document:r}),c(),l}const Ld="focusin",Md="focusout",Bd=":focus-within";function Ud(t,e={}){const{window:n=Ut}=e,o=a.computed(()=>zt(t)),s=a.shallowRef(!1),r=a.computed(()=>s.value),i=jd(e);if(!n||!i.value)return{focused:r};const l={passive:!0};return ae(o,Ld,()=>s.value=!0,l),ae(o,Md,()=>{var c,u,p;return s.value=(p=(u=(c=o.value)==null?void 0:c.matches)==null?void 0:u.call(c,Bd))!=null?p:!1},l),{focused:r}}function zd(t,{window:e=Ut,scrollTarget:n}={}){const o=a.ref(!1),s=()=>{if(!e)return;const r=e.document,i=zt(t);if(!i)o.value=!1;else{const l=i.getBoundingClientRect();o.value=l.top<=(e.innerHeight||r.documentElement.clientHeight)&&l.left<=(e.innerWidth||r.documentElement.clientWidth)&&l.bottom>=0&&l.right>=0}};return a.watch(()=>zt(t),()=>s(),{immediate:!0,flush:"post"}),e&&ae(n||e,"scroll",s,{capture:!1,passive:!0}),o}const it=t=>{let e=zd(t).value;return e=e&&t.offsetHeight>0,e},at=t=>t.tabIndex>=0,Mr=t=>{const e=t.target;return Mn(e)},Mn=t=>{var e;let n;if(t instanceof HTMLTableCellElement){const o=(e=t.parentElement)==null?void 0:e.previousElementSibling;if(o){const s=Array.from(o.children)[t.cellIndex];s&&(n=s)}}else if(t instanceof HTMLTableRowElement){const o=t.previousElementSibling;o&&(n=o)}return n&&(!at(n)||!it(n))?Mn(n):n},Hd=t=>{var e;const n=t.target;let o;if(n instanceof HTMLTableCellElement){const s=(e=n.parentElement)==null?void 0:e.parentElement;if(s){const r=s.firstElementChild,i=r==null?void 0:r.children[n.cellIndex];i&&(o=i)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const r=s.firstElementChild;r&&(o=r)}}return o&&(!at(o)||!it(o))?Bn(o):o},Br=t=>{const e=t.target;return Bn(e)},Bn=t=>{var e;let n;if(t instanceof HTMLTableCellElement){const o=(e=t.parentElement)==null?void 0:e.nextElementSibling;if(o){const s=Array.from(o.children)[t.cellIndex];s&&(n=s)}}else if(t instanceof HTMLTableRowElement){const o=t.nextElementSibling;o&&(n=o)}return n&&(!at(n)||!it(n))?Bn(n):n},Kd=t=>{var e;const n=t.target;let o;if(n instanceof HTMLTableCellElement){const s=(e=n.parentElement)==null?void 0:e.parentElement;if(s){const r=s.lastElementChild,i=r==null?void 0:r.children[n.cellIndex];i&&(o=i)}}else if(n instanceof HTMLTableRowElement){const s=n.parentElement;if(s){const r=s.lastElementChild;r&&(o=r)}}return o&&(!at(o)||!it(o))?Mn(o):o},Ur=t=>{const e=t.target;return Un(e)},Un=t=>{var e;let n;if(t.previousElementSibling)n=t.previousElementSibling;else{const o=(e=t.parentElement)==null?void 0:e.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!at(n)||!it(n))?Un(n):n},zr=t=>{const e=t.target;return zn(e)},zn=t=>{var e;let n;if(t.nextElementSibling)n=t.nextElementSibling;else{const o=(e=t.parentElement)==null?void 0:e.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!at(n)||!it(n))?zn(n):n},Hr=t=>{const e=t.target.parentElement,n=e==null?void 0:e.firstElementChild;return n&&(!at(n)||!it(n))?zn(n):n},Kr=t=>{const e=t.target.parentElement,n=e==null?void 0:e.lastElementChild;return n&&(!at(n)||!it(n))?Un(n):n},xe=["alt","control","shift","meta"],Fd={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Fr={"keydown.up":t=>{const e=Mr(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.down":t=>{const e=Br(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.left":t=>{const e=Ur(t);t.preventDefault(),t.stopPropagation(),e&&e.focus()},"keydown.right":t=>{const e=zr(t);t.preventDefault(),t.stopPropagation(),e&&e.focus()},"keydown.control.up":t=>{const e=Hd(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.control.down":t=>{const e=Kd(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.control.left":t=>{const e=Hr(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.control.right":t=>{const e=Kr(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.end":t=>{const e=Kr(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const e=Br(t);e&&e.focus()}},"keydown.shift.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const e=Mr(t);e&&e.focus()}},"keydown.home":t=>{const e=Hr(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.tab":t=>{const e=zr(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())},"keydown.shift.tab":t=>{const e=Ur(t);e&&(t.preventDefault(),t.stopPropagation(),e.focus())}};function Wd(t){const e=i=>{let l=null;return i.parent&&(typeof i.parent=="string"?l=document.querySelector(i.parent):i.parent instanceof HTMLElement?l=i.parent:l=i.parent.value),l},n=i=>{var l;const c=e(i);let u=[];if(typeof i.selectors=="string")u=c?Array.from(c.querySelectorAll(i.selectors)):Array.from(document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const p of i.selectors)p instanceof HTMLElement?u.push(p):u.push(p.$el);else if(i.selectors instanceof HTMLElement)u.push(i.selectors);else if((l=i.selectors)!=null&&l.value)if(Array.isArray(i.selectors.value))for(const p of i.selectors.value)p instanceof HTMLElement?u.push(p):u.push(p.$el);else u.push(i.selectors.value);return u},o=i=>{const l=e(i);let c=[];return i.selectors?c=n(i):l&&(c=Array.from(l.children).filter(u=>at(u)&&it(u))),c},s=i=>l=>{const c=Fd[l.key]||l.key.toLowerCase();if(xe.includes(c))return;const u=i.handlers||Fr;for(const p of Object.keys(u)){const[d,...f]=p.split(".");if(d==="keydown"&&f.includes(c)){const h=u[p],m=f.filter(g=>xe.includes(g)),_=xe.some(g=>{const v=g.charAt(0).toUpperCase()+g.slice(1);return l.getModifierState(v)});if(m.length>0){if(_){for(const g of xe)if(f.includes(g)){const v=g.charAt(0).toUpperCase()+g.slice(1);l.getModifierState(v)&&h(l)}}}else _||h(l)}}},r=[];a.onMounted(()=>{for(const i of t){const l=e(i),c=o(i),u=s(i),p=l?[l]:c;for(const d of p){const{focused:f}=Ud(a.ref(d)),h=a.watch(f,m=>{m?d.addEventListener("keydown",u):d.removeEventListener("keydown",u)});r.push(h)}}}),a.onBeforeUnmount(()=>{for(const i of r)i()})}function Ht(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}const Hn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Gd=t=>t!=null,Jd=Object.prototype.toString,Wr=t=>Jd.call(t)==="[object Object]",Et=()=>{},Kn=Yd();function Yd(){var t,e;return Hn&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function qd(...t){if(t.length!==1)return a.toRef(...t);const e=t[0];return typeof e=="function"?a.readonly(a.customRef(()=>({get:e,set:Et}))):a.ref(e)}function bt(t){return Array.isArray(t)?t:[t]}function Xd(t){return a.getCurrentInstance()}function Zd(t,e=!0,n){Xd()?a.onMounted(t,n):e?t():a.nextTick(t)}function Gr(t,e,n){return a.watch(t,e,{...n,immediate:!0})}const Fn=Hn?window:void 0;function Kt(t){var e;const n=a.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function Jr(...t){const e=[],n=()=>{e.forEach(l=>l()),e.length=0},o=(l,c,u,p)=>(l.addEventListener(c,u,p),()=>l.removeEventListener(c,u,p)),s=a.computed(()=>{const l=bt(a.toValue(t[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),r=Gr(()=>{var l,c;return[(c=(l=s.value)==null?void 0:l.map(u=>Kt(u)))!=null?c:[Fn].filter(u=>u!=null),bt(a.toValue(s.value?t[1]:t[0])),bt(a.unref(s.value?t[2]:t[1])),a.toValue(s.value?t[3]:t[2])]},([l,c,u,p])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=Wr(p)?{...p}:p;e.push(...l.flatMap(f=>c.flatMap(h=>u.map(m=>o(f,h,m,d)))))},{flush:"post"}),i=()=>{r(),n()};return Ht(n),i}function Qd(){const t=a.shallowRef(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function Yr(t){const e=Qd();return a.computed(()=>(e.value,!!t()))}function qr(t,e,n={}){const{window:o=Fn,...s}=n;let r;const i=Yr(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},c=a.computed(()=>{const f=a.toValue(t),h=bt(f).map(Kt).filter(Gd);return new Set(h)}),u=a.watch(()=>c.value,f=>{l(),i.value&&f.size&&(r=new MutationObserver(e),f.forEach(h=>r.observe(h,s)))},{immediate:!0,flush:"post"}),p=()=>r==null?void 0:r.takeRecords(),d=()=>{u(),l()};return Ht(d),{isSupported:i,stop:d,takeRecords:p}}function tf(t,e,n={}){const{window:o=Fn,...s}=n;let r;const i=Yr(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},c=a.computed(()=>{const d=a.toValue(t);return Array.isArray(d)?d.map(f=>Kt(f)):[Kt(d)]}),u=a.watch(c,d=>{if(l(),i.value&&o){r=new ResizeObserver(e);for(const f of d)f&&r.observe(f,s)}},{immediate:!0,flush:"post"}),p=()=>{l(),u()};return Ht(p),{isSupported:i,stop:p}}function ef(t,e={}){const{reset:n=!0,windowResize:o=!0,windowScroll:s=!0,immediate:r=!0,updateTiming:i="sync"}=e,l=a.shallowRef(0),c=a.shallowRef(0),u=a.shallowRef(0),p=a.shallowRef(0),d=a.shallowRef(0),f=a.shallowRef(0),h=a.shallowRef(0),m=a.shallowRef(0);function _(){const v=Kt(t);if(!v){n&&(l.value=0,c.value=0,u.value=0,p.value=0,d.value=0,f.value=0,h.value=0,m.value=0);return}const I=v.getBoundingClientRect();l.value=I.height,c.value=I.bottom,u.value=I.left,p.value=I.right,d.value=I.top,f.value=I.width,h.value=I.x,m.value=I.y}function g(){i==="sync"?_():i==="next-frame"&&requestAnimationFrame(()=>_())}return tf(t,g),a.watch(()=>Kt(t),v=>!v&&g()),qr(t,g,{attributeFilter:["style","class"]}),s&&Jr("scroll",g,{capture:!0,passive:!0}),o&&Jr("resize",g,{passive:!0}),Zd(()=>{r&&g()}),{height:l,bottom:c,left:u,right:p,top:d,width:f,x:h,y:m,update:g}}const nf=(t=8)=>Array.from({length:t},()=>Math.floor(Math.random()*16).toString(16)).join(""),Wn=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},of=["tabindex"],sf=a.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(t){const e=a.useTemplateRef("rowEl"),n=a.computed(()=>t.store.isRowVisible(t.rowIndex)),o=a.computed(()=>t.store.getRowExpandSymbol(t.rowIndex));if(t.addNavigation){let s=Fr;typeof t.addNavigation=="object"&&(s={...s,...t.addNavigation}),Wd([{selectors:e,handlers:s}])}return(s,r)=>a.withDirectives((a.openBlock(),a.createElementBlock("tr",{ref:"rowEl",tabindex:s.tabIndex,class:"atable-row"},[s.store.config.view!=="uncounted"?a.renderSlot(s.$slots,"index",{key:0},()=>[s.store.config.view==="list"?(a.openBlock(),a.createElementBlock("td",{key:0,tabIndex:-1,class:a.normalizeClass(["list-index",s.store.hasPinnedColumns?"sticky-index":""])},a.toDisplayString(s.rowIndex+1),3)):s.store.isTreeView?(a.openBlock(),a.createElementBlock("td",{key:1,tabIndex:-1,class:a.normalizeClass(["tree-index",s.store.hasPinnedColumns?"sticky-index":""]),onClick:r[0]||(r[0]=i=>s.store.toggleRowExpand(s.rowIndex))},a.toDisplayString(o.value),3)):a.createCommentVNode("",!0)],!0):a.createCommentVNode("",!0),a.renderSlot(s.$slots,"default",{},void 0,!0)],8,of)),[[a.vShow,n.value]])}}),rf=Wn(sf,[["__scopeId","data-v-c554ee0f"]]),Gn=Hn?window:void 0;function kt(t){var e;const n=a.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function Ve(...t){const e=[],n=()=>{e.forEach(l=>l()),e.length=0},o=(l,c,u,p)=>(l.addEventListener(c,u,p),()=>l.removeEventListener(c,u,p)),s=a.computed(()=>{const l=bt(a.toValue(t[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),r=Gr(()=>{var l,c;return[(c=(l=s.value)==null?void 0:l.map(u=>kt(u)))!=null?c:[Gn].filter(u=>u!=null),bt(a.toValue(s.value?t[1]:t[0])),bt(a.unref(s.value?t[2]:t[1])),a.toValue(s.value?t[3]:t[2])]},([l,c,u,p])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const d=Wr(p)?{...p}:p;e.push(...l.flatMap(f=>c.flatMap(h=>u.map(m=>o(f,h,m,d)))))},{flush:"post"}),i=()=>{r(),n()};return Ht(n),i}let Xr=!1;function Zr(t,e,n={}){const{window:o=Gn,ignore:s=[],capture:r=!0,detectIframe:i=!1,controls:l=!1}=n;if(!o)return l?{stop:Et,cancel:Et,trigger:Et}:Et;if(Kn&&!Xr){Xr=!0;const g={passive:!0};Array.from(o.document.body.children).forEach(v=>v.addEventListener("click",Et,g)),o.document.documentElement.addEventListener("click",Et,g)}let c=!0;const u=g=>a.toValue(s).some(v=>{if(typeof v=="string")return Array.from(o.document.querySelectorAll(v)).some(I=>I===g.target||g.composedPath().includes(I));{const I=kt(v);return I&&(g.target===I||g.composedPath().includes(I))}});function p(g){const v=a.toValue(g);return v&&v.$.subTree.shapeFlag===16}function d(g,v){const I=a.toValue(g),V=I.$.subTree&&I.$.subTree.children;return V==null||!Array.isArray(V)?!1:V.some(P=>P.el===v.target||v.composedPath().includes(P.el))}const f=g=>{const v=kt(t);if(g.target!=null&&!(!(v instanceof Element)&&p(t)&&d(t,g))&&!(!v||v===g.target||g.composedPath().includes(v))){if("detail"in g&&g.detail===0&&(c=!u(g)),!c){c=!0;return}e(g)}};let h=!1;const m=[Ve(o,"click",g=>{h||(h=!0,setTimeout(()=>{h=!1},0),f(g))},{passive:!0,capture:r}),Ve(o,"pointerdown",g=>{const v=kt(t);c=!u(g)&&!!(v&&!g.composedPath().includes(v))},{passive:!0}),i&&Ve(o,"blur",g=>{setTimeout(()=>{var v;const I=kt(t);((v=o.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(I!=null&&I.contains(o.document.activeElement))&&e(g)},0)},{passive:!0})].filter(Boolean),_=()=>m.forEach(g=>g());return l?{stop:_,cancel:()=>{c=!1},trigger:g=>{c=!0,f(g),c=!1}}:_}const Jn=new WeakMap,af={mounted(t,e){const n=!e.modifiers.bubble;let o;if(typeof e.value=="function")o=Zr(t,e.value,{capture:n});else{const[s,r]=e.value;o=Zr(t,s,Object.assign({capture:n},r))}Jn.set(t,o)},unmounted(t){const e=Jn.get(t);e&&typeof e=="function"?e():e==null||e.stop(),Jn.delete(t)}};function lf(){const t=a.shallowRef(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function cf(t){const e=lf();return a.computed(()=>(e.value,!!t()))}function Qr(t,e,n={}){const{window:o=Gn,...s}=n;let r;const i=cf(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},c=a.computed(()=>{const d=a.toValue(t);return Array.isArray(d)?d.map(f=>kt(f)):[kt(d)]}),u=a.watch(c,d=>{if(l(),i.value&&o){r=new ResizeObserver(e);for(const f of d)f&&r.observe(f,s)}},{immediate:!0,flush:"post"}),p=()=>{l(),u()};return Ht(p),{isSupported:i,stop:p}}function Yn(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}const uf={mounted(t,e){typeof e.value=="function"?Qr(t,e.value):Qr(t,...e.value)}};function ti(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth<t.scrollWidth||e.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const n=t.parentNode;return!n||n.tagName==="BODY"?!1:ti(n)}}function df(t){const e=t||window.event,n=e.target;return ti(n)?!1:e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)}const qn=new WeakMap;function ff(t,e=!1){const n=a.shallowRef(e);let o=null,s="";a.watch(qd(t),l=>{const c=Yn(a.toValue(l));if(c){const u=c;if(qn.get(u)||qn.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=Yn(a.toValue(t));!l||n.value||(Kn&&(o=Ve(l,"touchmove",c=>{df(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},i=()=>{const l=Yn(a.toValue(t));!l||!n.value||(Kn&&(o==null||o()),l.style.overflow=s,qn.delete(l),n.value=!1)};return Ht(i),a.computed({get(){return n.value},set(l){l?r():i()}})}function pf(){let t=!1;const e=a.shallowRef(!1);return(n,o)=>{if(e.value=o.value,t)return;t=!0;const s=ff(n,o.value);a.watch(e,r=>s.value=r)}}pf();const hf={class:"gantt-connection-overlay"},mf={class:"connection-svg",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:1}},gf=["d","stroke-width","onDblclick"],_f=["d","stroke","stroke-width","id","onDblclick"],yf=.25,Ce=16,vf=a.defineComponent({__name:"AGanttConnection",props:{store:{}},emits:["connection:delete"],setup(t,{emit:e}){const n=e,o=a.computed(()=>t.store.connectionPaths.filter(i=>{const l=t.store.ganttBars.find(u=>u.id===i.from.barId),c=t.store.ganttBars.find(u=>u.id===i.to.barId);return l&&c})),s=(i,l=!1)=>{const c=t.store.connectionHandles.find(j=>j.barId===i.from.barId&&j.side===i.from.side),u=t.store.connectionHandles.find(j=>j.barId===i.to.barId&&j.side===i.to.side);if(!c||!u)return"";const p=c.position.x+Ce/2,d=c.position.y+Ce/2,f=u.position.x+Ce/2,h=u.position.y+Ce/2,m=Math.abs(f-p),_=Math.max(m*yf,50),g=p+(i.from.side==="left"?-_:_),v=f+(i.to.side==="left"?-_:_),I={x:.5*p+.5*g,y:.5*d+.5*d},V={x:.5*g+.5*v,y:.5*d+.5*h},P={x:.5*v+.5*f,y:.5*h+.5*h},R={x:.5*I.x+.5*V.x,y:.5*I.y+.5*V.y},Y={x:.5*V.x+.5*P.x,y:.5*V.y+.5*P.y},k={x:.5*R.x+.5*Y.x,y:.5*R.y+.5*Y.y};return`M ${p} ${d} Q ${g} ${d}, ${k.x} ${k.y} Q ${v} ${h}, ${f} ${h}`},r=i=>{t.store.deleteConnection(i.id)&&n("connection:delete",i)};return(i,l)=>(a.openBlock(),a.createElementBlock("div",hf,[(a.openBlock(),a.createElementBlock("svg",mf,[l[0]||(l[0]=a.createElementVNode("defs",null,[a.createElementVNode("path",{id:"arrowhead",d:"M 0 -7 L 20 0 L 0 7Z",stroke:"black","stroke-width":"1",fill:"currentColor"}),a.createElementVNode("marker",{id:"arrowhead-marker",markerWidth:"10",markerHeight:"7",refX:"5",refY:"3.5",orient:"auto",markerUnits:"strokeWidth"},[a.createElementVNode("polygon",{points:"0 0, 10 3.5, 0 7",fill:"currentColor"})])],-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,c=>{var u;return a.openBlock(),a.createElementBlock("path",{key:`${c.id}-hitbox`,d:s(c),stroke:"transparent","stroke-width":(((u=c.style)==null?void 0:u.width)||2)+10,fill:"none",class:"connection-hitbox",onDblclick:p=>r(c)},null,40,gf)}),128)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,c=>{var u,p;return a.openBlock(),a.createElementBlock("path",{key:c.id,d:s(c),stroke:((u=c.style)==null?void 0:u.color)||"#666","stroke-width":((p=c.style)==null?void 0:p.width)||2,fill:"none","marker-mid":"url(#arrowhead-marker)",id:c.id,class:"connection-path animated-path",onDblclick:d=>r(c)},null,40,_f)}),128))]))]))}}),wf=Wn(vf,[["__scopeId","data-v-955111b6"]]),Ef={key:0},bf={class:"atable-header-row",tabindex:"-1"},kf=["data-colindex"],Sf=a.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(t){const e=n=>{var o;for(const s of n){if(s.borderBoxSize.length===0)continue;const r=s.borderBoxSize[0].inlineSize,i=Number(s.target.dataset.colindex),l=(o=t.store.columns[i])==null?void 0:o.width;typeof l=="number"&&l!==r&&t.store.resizeColumn(i,r)}};return(n,o)=>n.columns.length?(a.openBlock(),a.createElementBlock("thead",Ef,[a.createElementVNode("tr",bf,[n.store.zeroColumn?(a.openBlock(),a.createElementBlock("th",{key:0,id:"header-index",class:a.normalizeClass([[n.store.hasPinnedColumns?"sticky-index":"",n.store.isTreeView?"tree-index":"",n.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.columns,(s,r)=>a.withDirectives((a.openBlock(),a.createElementBlock("th",{key:s.name,"data-colindex":r,tabindex:"-1",style:a.normalizeStyle(n.store.getHeaderCellStyle(s)),class:a.normalizeClass(s.pinned?"sticky-column":"")},[a.renderSlot(n.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(s.label||String.fromCharCode(r+97).toUpperCase()),1)])],14,kf)),[[a.unref(uf),e]])),128))])])):a.createCommentVNode("",!0)}}),Of=a.defineComponent({__name:"ATableModal",props:{store:{}},setup(t){const e=a.useTemplateRef("amodal"),{width:n,height:o}=ef(e),s=a.computed(()=>{var r,i,l,c;if(!(t.store.modal.height&&t.store.modal.width&&t.store.modal.left&&t.store.modal.bottom))return;const u=(r=t.store.modal.cell)==null?void 0:r.closest("table"),p=u.offsetHeight||0,d=u.offsetWidth||0;let f=((i=t.store.modal.cell)==null?void 0:i.offsetTop)||0;const h=((l=u.querySelector("thead"))==null?void 0:l.offsetHeight)||0;f+=h,f=f+o.value<p?f:f-(o.value+t.store.modal.height);let m=((c=t.store.modal.cell)==null?void 0:c.offsetLeft)||0;return m=m+n.value<=d?m:m-(n.value-t.store.modal.width),{left:`${m}px`,top:`${f}px`}});return(r,i)=>(a.openBlock(),a.createElementBlock("div",{class:"amodal",ref:"amodal",tabindex:"-1",onClick:i[0]||(i[0]=a.withModifiers(()=>{},["stop"])),onInput:i[1]||(i[1]=a.withModifiers(()=>{},["stop"])),style:a.normalizeStyle(s.value)},[a.renderSlot(r.$slots,"default")],36))}}),If=t=>{const e=t.id||nf();return Id(`table-${e}`,()=>{const n=()=>{const y=[Object.assign({},{rowModified:!1})],E=new Set;for(let O=0;O<s.value.length;O++){const N=s.value[O];N.parent!==null&&N.parent!==void 0&&E.add(N.parent)}for(let O=0;O<s.value.length;O++){const N=s.value[O];y[O]={childrenOpen:!1,expanded:!1,indent:N.indent||0,isParent:E.has(O),isRoot:N.parent===null||N.parent===void 0,rowModified:!1,open:N.parent===null||N.parent===void 0,parent:N.parent}}return y},o=a.ref(t.columns),s=a.ref(t.rows),r=a.ref(t.config||{}),i=a.ref({}),l=a.ref({}),c=a.computed(()=>{const y={};for(const[E,O]of o.value.entries())for(const[N,L]of s.value.entries())y[`${E}:${N}`]=L[O.name];return y}),u=a.computed({get:()=>{const y=n();for(let E=0;E<y.length;E++)i.value[E]&&(y[E].rowModified=i.value[E]),l.value[E]&&(l.value[E].childrenOpen!==void 0&&(y[E].childrenOpen=l.value[E].childrenOpen),l.value[E].expanded!==void 0&&(y[E].expanded=l.value[E].expanded));if(v.value){const E=(O,N)=>{const L=N[O];if(L.isRoot||L.parent===null||L.parent===void 0)return!0;const H=L.parent;return H<0||H>=N.length?!1:(N[H].childrenOpen||!1)&&E(H,N)};for(let O=0;O<y.length;O++)y[O].isRoot||(y[O].open=E(O,y))}return y},set:y=>{JSON.stringify(y)!==JSON.stringify(u.value)&&(u.value=y)}}),p=a.ref(t.modal||{visible:!1}),d=a.ref({}),f=a.ref([]),h=a.ref([]),m=a.ref([]),_=a.computed(()=>o.value.some(y=>y.pinned)),g=a.computed(()=>r.value.view==="gantt"||r.value.view==="tree-gantt"),v=a.computed(()=>r.value.view==="tree"||r.value.view==="tree-gantt"),I=a.computed(()=>r.value.dependencyGraph!==!1),V=a.computed(()=>`${Math.ceil(s.value.length/100+1)}ch`),P=a.computed(()=>r.value.view?["list","tree","tree-gantt","list-expansion"].includes(r.value.view):!1),R=(y,E)=>c.value[`${y}:${E}`],Y=(y,E,O)=>{const N=`${y}:${E}`,L=o.value[y];c.value[N]!==O&&(i.value[E]=!0),c.value[N]=O,s.value[E]={...s.value[E],[L.name]:O}},k=y=>{s.value=y},j=(y,E,O)=>{const N=`${y}:${E}`;c.value[N]!==O&&(i.value[E]=!0,d.value[N]=O)},T=y=>{const E=o.value.indexOf(y)===o.value.length-1,O=r.value.fullWidth?y.resizable&&!E:y.resizable;return{width:y.width||"40ch",textAlign:y.align||"center",...O&&{resize:"horizontal",overflow:"hidden",whiteSpace:"nowrap"}}},w=(y,E)=>{if(y<0||y>=o.value.length)return;const O=Math.max(E,40);o.value[y]={...o.value[y],width:`${O}px`}},S=y=>{const E=s.value[y];return g.value&&E.gantt!==void 0},C=y=>!v.value||u.value[y].isRoot||u.value[y].open,D=y=>!v.value&&r.value.view!=="list-expansion"?"":v.value&&(u.value[y].isRoot||u.value[y].isParent)?u.value[y].childrenOpen?"▼":"►":r.value.view==="list-expansion"?u.value[y].expanded?"▼":"►":"",G=y=>{if(v.value){const E=l.value[y]||{},O=!(E.childrenOpen??u.value[y].childrenOpen);l.value[y]={...E,childrenOpen:O},O||U(y)}else if(r.value.view==="list-expansion"){const E=l.value[y]||{},O=E.expanded??u.value[y].expanded;l.value[y]={...E,expanded:!O}}},U=y=>{for(let E=0;E<s.value.length;E++)if(u.value[E].parent===y){const O=l.value[E]||{};l.value[E]={...O,childrenOpen:!1},U(E)}},$=(y,E)=>{const O=R(y,E);return F(y,E,O)},F=(y,E,O)=>{const N=o.value[y],L=s.value[E],H=N.format;return H?typeof H=="function"?H(O,{table:c.value,row:L,column:N}):typeof H=="string"?Function(`"use strict";return (${H})`)()(O,{table:c.value,row:L,column:N}):O:O};return{columns:o,config:r,connectionHandles:h,connectionPaths:m,display:u,ganttBars:f,modal:p,rows:s,table:c,updates:d,hasPinnedColumns:_,isGanttView:g,isTreeView:v,isDependencyGraphEnabled:I,numberedRowWidth:V,zeroColumn:P,closeModal:y=>{var E;y.target instanceof Node&&(E=p.value.parent)!=null&&E.contains(y.target)||p.value.visible&&(p.value.visible=!1)},createConnection:(y,E,O)=>{const N=h.value.find(St=>St.id===y),L=h.value.find(St=>St.id===E);if(!N||!L)return console.warn("Cannot create connection: handle not found"),null;const H={id:`connection-${y}-${E}`,from:{barId:N.barId,side:N.side},to:{barId:L.barId,side:L.side},style:O==null?void 0:O.style,label:O==null?void 0:O.label};return m.value.push(H),H},deleteConnection:y=>{const E=m.value.findIndex(O=>O.id===y);return E>=0?(m.value.splice(E,1),!0):!1},getCellData:R,getCellDisplayValue:$,getConnectionsForBar:y=>m.value.filter(E=>E.from.barId===y||E.to.barId===y),getFormattedValue:F,getHandlesForBar:y=>h.value.filter(E=>E.barId===y),getHeaderCellStyle:T,getIndent:(y,E)=>E&&y===0&&E>0?`${E}ch`:"inherit",getRowExpandSymbol:D,isRowGantt:S,isRowVisible:C,registerConnectionHandle:y=>{const E=h.value.findIndex(O=>O.id===y.id);E>=0?h.value[E]=y:h.value.push(y)},registerGanttBar:y=>{const E=f.value.findIndex(O=>O.id===y.id);E>=0?f.value[E]=y:f.value.push(y)},resizeColumn:w,setCellData:Y,setCellText:j,toggleRowExpand:G,unregisterConnectionHandle:y=>{const E=h.value.findIndex(O=>O.id===y);E>=0&&h.value.splice(E,1)},unregisterGanttBar:y=>{const E=f.value.findIndex(O=>O.id===y);E>=0&&f.value.splice(E,1)},updateGanttBar:y=>{var E;const O=(E=s.value[y.rowIndex])==null?void 0:E.gantt;O&&(y.type==="resize"?y.edge==="start"?(O.startIndex=y.newStart,O.endIndex=y.end,O.colspan=O.endIndex-O.startIndex):y.edge==="end"&&(O.startIndex=y.start,O.endIndex=y.newEnd,O.colspan=O.endIndex-O.startIndex):y.type==="bar"&&(O.startIndex=y.newStart,O.endIndex=y.newEnd,O.colspan=O.endIndex-O.startIndex))},updateRows:k}})()},Tf={class:"atable-container",style:{position:"relative"}},xf=a.defineComponent({__name:"ATable",props:a.mergeModels({id:{},config:{default:()=>new Object}},{rows:{required:!0},rowsModifiers:{},columns:{required:!0},columnsModifiers:{}}),emits:a.mergeModels(["cellUpdate","gantt:drag","connection:event","columns:update"],["update:rows","update:columns"]),setup(t,{expose:e,emit:n}){const o=a.useModel(t,"rows"),s=a.useModel(t,"columns"),r=n,i=a.useTemplateRef("table"),l=If({columns:s.value,rows:o.value,id:t.id,config:t.config});l.$onAction(({name:h,store:m,args:_,after:g})=>{if(h==="setCellData"||h==="setCellText"){const[v,I,V]=_,P=m.getCellData(v,I);g(()=>{o.value=[...m.rows],r("cellUpdate",{colIndex:v,rowIndex:I,newValue:V,oldValue:P})})}else if(h==="updateGanttBar"){const[v]=_;let I=!1;v.type==="resize"?I=v.oldColspan!==v.newColspan:v.type==="bar"&&(I=v.oldStart!==v.newStart||v.oldEnd!==v.newEnd),I&&g(()=>{r("gantt:drag",v)})}else h==="resizeColumn"&&g(()=>{s.value=[...m.columns],r("columns:update",[...m.columns])})}),a.watch(()=>o.value,h=>{JSON.stringify(h)!==JSON.stringify(l.rows)&&(l.rows=[...h])},{deep:!0}),a.watch(s,h=>{JSON.stringify(h)!==JSON.stringify(l.columns)&&(l.columns=[...h],r("columns:update",[...h]))},{deep:!0}),a.onMounted(()=>{s.value.some(h=>h.pinned)&&(u(),l.isTreeView&&qr(i,u,{childList:!0,subtree:!0}))});const c=a.computed(()=>l.columns.filter(h=>h.pinned).length),u=()=>{const h=i.value,m=h==null?void 0:h.rows[0],_=h==null?void 0:h.rows[1],g=m?Array.from(m.cells):[];for(const[v,I]of g.entries()){const V=_==null?void 0:_.cells[v];V&&(I.style.width=`${V.offsetWidth}px`)}for(const v of(h==null?void 0:h.rows)||[]){let I=0;const V=[];for(const P of v.cells)(P.classList.contains("sticky-column")||P.classList.contains("sticky-index"))&&(P.style.left=`${I}px`,I+=P.offsetWidth,V.push(P));V.length>0&&V[V.length-1].classList.add("sticky-column-edge")}};window.addEventListener("keydown",h=>{if(h.key==="Escape"&&l.modal.visible){l.modal.visible=!1;const m=l.modal.parent;m&&a.nextTick().then(()=>{m.focus()})}});const p=h=>{var m;if(!h.gantt||c.value===0)return l.columns;const _=[];for(let g=0;g<c.value;g++){const v={...l.columns[g]};v.originalIndex=g,_.push(v)}return _.push({...l.columns[c.value],isGantt:!0,colspan:((m=h.gantt)==null?void 0:m.colspan)||l.columns.length-c.value,originalIndex:c.value,width:"auto"}),_},d=h=>{r("connection:event",{type:"create",connection:h})},f=h=>{r("connection:event",{type:"delete",connection:h})};return e({store:l,createConnection:l.createConnection,deleteConnection:l.deleteConnection,getConnectionsForBar:l.getConnectionsForBar,getHandlesForBar:l.getHandlesForBar}),(h,m)=>(a.openBlock(),a.createElementBlock("div",Tf,[a.withDirectives((a.openBlock(),a.createElementBlock("table",{ref:"table",class:"atable",style:a.normalizeStyle({width:a.unref(l).config.fullWidth?"100%":"auto"})},[a.renderSlot(h.$slots,"header",{data:a.unref(l)},()=>[a.createVNode(Sf,{columns:a.unref(l).columns,store:a.unref(l)},null,8,["columns","store"])],!0),a.createElementVNode("tbody",null,[a.renderSlot(h.$slots,"body",{data:a.unref(l)},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(l).rows,(_,g)=>(a.openBlock(),a.createBlock(rf,{key:_.id,row:_,rowIndex:g,store:a.unref(l)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p(_),(v,I)=>{var V,P,R;return a.openBlock(),a.createElementBlock(a.Fragment,{key:v.name},[v.isGantt?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(v.ganttComponent||"AGanttCell"),{key:0,store:a.unref(l),columnsCount:a.unref(l).columns.length-c.value,color:(V=_.gantt)==null?void 0:V.color,start:(P=_.gantt)==null?void 0:P.startIndex,end:(R=_.gantt)==null?void 0:R.endIndex,colspan:v.colspan,pinned:v.pinned,rowIndex:g,colIndex:v.originalIndex??I,style:a.normalizeStyle({textAlign:(v==null?void 0:v.align)||"center",minWidth:(v==null?void 0:v.width)||"40ch",width:a.unref(l).config.fullWidth?"auto":null}),"onConnection:create":d},null,40,["store","columnsCount","color","start","end","colspan","pinned","rowIndex","colIndex","style"])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(v.cellComponent||"ACell"),{key:1,store:a.unref(l),pinned:v.pinned,rowIndex:g,colIndex:I,style:a.normalizeStyle({textAlign:(v==null?void 0:v.align)||"center",width:a.unref(l).config.fullWidth?"auto":null}),spellcheck:"false"},null,8,["store","pinned","rowIndex","colIndex","style"]))],64)}),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),a.renderSlot(h.$slots,"footer",{data:a.unref(l)},void 0,!0),a.renderSlot(h.$slots,"modal",{data:a.unref(l)},()=>[a.withDirectives(a.createVNode(Of,{store:a.unref(l)},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(l).modal.component),a.mergeProps({key:`${a.unref(l).modal.rowIndex}:${a.unref(l).modal.colIndex}`,colIndex:a.unref(l).modal.colIndex,rowIndex:a.unref(l).modal.rowIndex,store:a.unref(l)},a.unref(l).modal.componentProps),null,16,["colIndex","rowIndex","store"]))]),_:1},8,["store"]),[[a.vShow,a.unref(l).modal.visible]])],!0)],4)),[[a.unref(af),a.unref(l).closeModal]]),a.unref(l).isGanttView&&a.unref(l).isDependencyGraphEnabled?(a.openBlock(),a.createBlock(wf,{key:0,store:a.unref(l),"onConnection:delete":f},null,8,["store"])):a.createCommentVNode("",!0)]))}}),Vf=Wn(xf,[["__scopeId","data-v-51a03d16"]]),ei=a.defineComponent({__name:"Records",setup(t){const{stonecrop:e}=pr(),n=a.computed(()=>{var r;return(r=e.value)==null?void 0:r.store.records}),o=a.computed(()=>{var r,i,l;return(l=(i=(r=e.value)==null?void 0:r.schema)==null?void 0:i.schema)==null?void 0:l.toArray()}),s={view:"list"};return(r,i)=>(a.openBlock(),a.createBlock(a.unref(Vf),{rows:n.value,"onUpdate:rows":i[0]||(i[0]=l=>n.value=l),columns:o.value,"onUpdate:columns":i[1]||(i[1]=l=>o.value=l),config:s},null,8,["rows","columns"]))}}),Cf={class:"tabs"},Nf={tabindex:"0"},$f={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"},Pf={tabindex:"0"},Rf={style:{width:"11pt"}},ni=Xn(a.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(t){const e=a.ref(!0),n=a.ref(!1),o=a.ref(""),s=a.useTemplateRef("searchinput"),r=a.computed(()=>e.value?"unrotated":"rotated"),i=()=>{e.value=!e.value},l=async()=>{n.value=!n.value,await a.nextTick(()=>{s.value.focus()})},c=d=>{d.preventDefault(),d.stopPropagation()},u=async d=>{d.preventDefault(),d.stopPropagation(),await l()},p=()=>{};return(d,f)=>{const h=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("footer",null,[a.createElementVNode("ul",Cf,[a.createElementVNode("li",{class:"hidebreadcrumbs",onClick:i,onKeydown:a.withKeys(i,["enter"])},[a.createElementVNode("a",Nf,[a.createElementVNode("div",{class:a.normalizeClass(r.value)},"×",2)])],32),a.createElementVNode("li",{class:"hometab",onClick:p,onKeydown:a.withKeys(p,["enter"]),style:a.normalizeStyle({display:e.value?"block":"none"})},[a.createVNode(h,{to:"/home",tabindex:"0"},{default:a.withCtx(()=>[(a.openBlock(),a.createElementBlock("svg",$f,f[5]||(f[5]=[a.createElementVNode("g",null,[a.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
22
22
  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
23
23
  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
24
24
  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
@@ -26,5 +26,5 @@ This will fail in production.`);i=oe,i._s.has(t)||(r?An(t,e,o,i):Ls(t,o,i),proce
26
26
  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
27
27
  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
28
28
  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
29
- C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),a.createElementVNode("li",{class:"searchtab",onClick:l,onKeydown:a.withKeys(l,["enter"]),style:a.normalizeStyle({display:e.value?"block":"none"})},[a.createElementVNode("a",Pf,[a.createElementVNode("span",{style:a.normalizeStyle({display:n.value?"none":"block"})},[(a.openBlock(),a.createElementBlock("svg",Rf,f[6]||(f[6]=[a.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[a.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=m=>o.value=m),ref:"searchinput",style:a.normalizeStyle({display:n.value?"block":"none"}),onClick:f[1]||(f[1]=m=>c(m)),onInput:f[2]||(f[2]=m=>c(m)),onBlur:f[3]||(f[3]=m=>u(m)),onKeydown:f[4]||(f[4]=a.withKeys(m=>u(m),["enter"])),type:"text"},null,36),[[a.vModelText,o.value]])])],36),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.breadcrumbs,m=>(a.openBlock(),a.createElementBlock("li",{key:m.title,style:a.normalizeStyle({display:e.value?"block":"none"})},[a.createVNode(h,{tabindex:"0",to:m.to},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-a650f215"]]),Df={install:t=>{t.component("ActionSet",Zn),t.component("CommandPalette",Qn),t.component("Doctype",$s),t.component("Records",ei),t.component("SheetNav",ni)}};q.ActionSet=Zn,q.CommandPalette=Qn,q.Doctype=$s,q.Records=ei,q.SheetNav=ni,q.StonecropDesktop=Df,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});
29
+ C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),a.createElementVNode("li",{class:"searchtab",onClick:l,onKeydown:a.withKeys(l,["enter"]),style:a.normalizeStyle({display:e.value?"block":"none"})},[a.createElementVNode("a",Pf,[a.createElementVNode("span",{style:a.normalizeStyle({display:n.value?"none":"block"})},[(a.openBlock(),a.createElementBlock("svg",Rf,f[6]||(f[6]=[a.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[a.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=m=>o.value=m),ref:"searchinput",style:a.normalizeStyle({display:n.value?"block":"none"}),onClick:f[1]||(f[1]=m=>c(m)),onInput:f[2]||(f[2]=m=>c(m)),onBlur:f[3]||(f[3]=m=>u(m)),onKeydown:f[4]||(f[4]=a.withKeys(m=>u(m),["enter"])),type:"text"},null,36),[[a.vModelText,o.value]])])],36),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.breadcrumbs,m=>(a.openBlock(),a.createElementBlock("li",{key:m.title,style:a.normalizeStyle({display:e.value?"block":"none"})},[a.createVNode(h,{tabindex:"0",to:m.to},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-a650f215"]]),Df={install:t=>{t.component("ActionSet",Zn),t.component("CommandPalette",Qn),t.component("Doctype",$r),t.component("Records",ei),t.component("SheetNav",ni)}};q.ActionSet=Zn,q.CommandPalette=Qn,q.Doctype=$r,q.Records=ei,q.SheetNav=ni,q.StonecropDesktop=Df,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});
30
30
  //# sourceMappingURL=desktop.umd.cjs.map