@stonecrop/desktop 0.4.25 → 0.4.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/desktop.css +1 -1
- package/dist/desktop.js +2294 -2275
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +10 -10
- package/dist/desktop.umd.cjs.map +1 -1
- package/package.json +5 -5
- package/src/components/Records.vue +5 -2
package/dist/desktop.umd.cjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
(function(Y,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(Y=typeof globalThis<"u"?globalThis:Y||self,s(Y["@stonecrop/desktop"]={},Y.Vue))})(this,function(Y,s){"use strict";const Kr={class:"action-menu-icon"},Fr=["onclick"],Wr={key:1},Gr=["onClick"],Yr={class:"dropdown-container"},qr={class:"dropdown"},Jr=["onclick"],Xr=["href"],Zr={class:"dropdown-item"},Qr=s.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=s.ref(e.elements),n=s.ref(!1),o=s.ref(null),r=s.ref(!1),i=s.ref(!1);s.onMounted(()=>{a()});const a=()=>{for(const d of t.value)d.type==="dropdown"&&(d.show=!1)},l=()=>{r.value=!0,o.value=setTimeout(()=>{r.value&&(n.value=!0)},500)},c=()=>{r.value=!1,i.value=!1,clearTimeout(o.value),n.value=!1},u=d=>{const h=!t.value[d].show;a(),t.value[d].show=h};return(d,h)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass([{"open-set":n.value,"hovered-and-closed":i.value},"action-set collapse"]),onMouseover:l,onMouseleave:c},[s.createElementVNode("div",Kr,[s.createElementVNode("div",{id:"chevron",onClick:h[0]||(h[0]=f=>i.value=!i.value)},h[1]||(h[1]=[s.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[s.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),s.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[s.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),h[2]||(h[2]=s.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.value,(f,m)=>(s.openBlock(),s.createElementBlock("div",{class:"action-element",key:f.label},[f.type=="button"?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:f.action,class:"button-default"},s.toDisplayString(f.label),9,Fr)):s.createCommentVNode("",!0),f.type=="dropdown"?(s.openBlock(),s.createElementBlock("div",Wr,[s.createElementVNode("button",{class:"button-default",onClick:_=>u(m)},s.toDisplayString(f.label),9,Gr),s.withDirectives(s.createElementVNode("div",Yr,[s.createElementVNode("div",qr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(f.actions,_=>(s.openBlock(),s.createElementBlock("div",{key:_.label},[_.action!=null?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:_.action,class:"dropdown-item"},s.toDisplayString(_.label),9,Jr)):_.link!=null?(s.openBlock(),s.createElementBlock("a",{key:1,href:_.link},[s.createElementVNode("button",Zr,s.toDisplayString(_.label),1)],8,Xr)):s.createCommentVNode("",!0)]))),128))])],512),[[s.vShow,f.show]])])):s.createCommentVNode("",!0)]))),128))],34))}}),fn=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},pn=fn(Qr,[["__scopeId","data-v-38e7af34"]]),es={class:"command-palette-header"},ts=["placeholder"],ns={key:0,class:"command-palette-results"},os=["onClick","onMouseover"],rs={class:"result-title"},ss={class:"result-content"},as={key:1,class:"command-palette-no-results"},hn=s.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(e,{emit:t}){const n=t,o=s.ref(""),r=s.ref(0),i=s.useTemplateRef("input"),a=s.computed(()=>o.value?e.search(o.value).slice(0,e.maxResults):[]);s.watch(()=>e.isOpen,async d=>{var h;d&&(o.value="",r.value=0,await s.nextTick(),(h=i.value)==null||h.focus())}),s.watch(a,()=>{r.value=0});const l=()=>{n("close")},c=d=>{switch(d.key){case"Escape":l();break;case"ArrowDown":d.preventDefault(),a.value.length&&(r.value=(r.value+1)%a.value.length);break;case"ArrowUp":d.preventDefault(),a.value.length&&(r.value=(r.value-1+a.value.length)%a.value.length);break;case"Enter":a.value.length&&r.value>=0&&u(a.value[r.value]);break}},u=d=>{n("select",d),l()};return(d,h)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[d.isOpen?(s.openBlock(),s.createElementBlock("div",{key:0,class:"command-palette-overlay",onClick:l},[s.createElementVNode("div",{class:"command-palette",onClick:h[1]||(h[1]=s.withModifiers(()=>{},["stop"]))},[s.createElementVNode("div",es,[s.withDirectives(s.createElementVNode("input",{ref:"input","onUpdate:modelValue":h[0]||(h[0]=f=>o.value=f),type:"text",class:"command-palette-input",placeholder:d.placeholder,autofocus:"",onKeydown:c},null,40,ts),[[s.vModelText,o.value]])]),a.value.length?(s.openBlock(),s.createElementBlock("div",ns,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.value,(f,m)=>(s.openBlock(),s.createElementBlock("div",{key:m,class:s.normalizeClass(["command-palette-result",{selected:m===r.value}]),onClick:_=>u(f),onMouseover:_=>r.value=m},[s.createElementVNode("div",rs,[s.renderSlot(d.$slots,"title",{result:f})]),s.createElementVNode("div",ss,[s.renderSlot(d.$slots,"content",{result:f})])],42,os))),128))])):o.value&&!a.value.length?(s.openBlock(),s.createElementBlock("div",as,[s.renderSlot(d.$slots,"empty",{},()=>[s.createTextVNode(' No results found for "'+s.toDisplayString(o.value)+'" ',1)])])):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0)]),_:3})]))}}),is=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};function mn(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const _n=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ls=Object.prototype.toString,cs=e=>ls.call(e)==="[object Object]",us=()=>{},gn=ds();function ds(){var e,t;return _n&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function fs(...e){if(e.length!==1)return s.toRef(...e);const t=e[0];return typeof t=="function"?s.readonly(s.customRef(()=>({get:t,set:us}))):s.ref(t)}function ut(e){return Array.isArray(e)?e:[e]}function ps(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const hs=_n?window:void 0;function ms(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function _s(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},o=(l,c,u,d)=>(l.addEventListener(c,u,d),()=>l.removeEventListener(c,u,d)),r=s.computed(()=>{const l=ut(s.toValue(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=ps(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>ms(u)))!=null?c:[hs].filter(u=>u!=null),ut(s.toValue(r.value?e[1]:e[0])),ut(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([l,c,u,d])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const h=cs(d)?{...d}:d;t.push(...l.flatMap(f=>c.flatMap(m=>u.map(_=>o(f,m,_,h)))))},{flush:"post"}),a=()=>{i(),n()};return mn(n),a}function dt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function yn(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:yn(n)}}function gs(e){const t=e||window.event,n=t.target;return yn(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const ft=new WeakMap;function ys(e,t=!1){const n=s.shallowRef(t);let o=null,r="";s.watch(fs(e),l=>{const c=dt(s.toValue(l));if(c){const u=c;if(ft.get(u)||ft.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 i=()=>{const l=dt(s.toValue(e));!l||n.value||(gn&&(o=_s(l,"touchmove",c=>{gs(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},a=()=>{const l=dt(s.toValue(e));!l||!n.value||(gn&&(o==null||o()),l.style.overflow=r,ft.delete(l),n.value=!1)};return mn(a),s.computed({get(){return n.value},set(l){l?i():a()}})}function Es(){let e=!1;const t=s.shallowRef(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=ys(n,o.value);s.watch(t,i=>r.value=i)}}Es(),typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ws={class:"aform"},bs=s.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=s.ref(e.data||{}),r=a=>{let l={};for(const[c,u]of Object.entries(a))["component","fieldtype"].includes(c)||(l[c]=u),c==="rows"&&u&&u.length===0&&(l.rows=o.value[a.fieldname]);return l},i=s.computed({get:()=>e.modelValue.map((a,l)=>s.computed({get(){return a.value},set:c=>{e.modelValue[l].value=c,n("update:modelValue",e.modelValue)}})),set:()=>{}});return(a,l)=>(s.openBlock(),s.createElementBlock("form",ws,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.modelValue,(c,u)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(c.component),s.mergeProps({key:u,schema:c,modelValue:i.value[u].value,"onUpdate:modelValue":d=>i.value[u].value=d,data:o.value[c.fieldname],readonly:a.readonly},{ref_for:!0},r(c)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),vs=is(bs,[["__scopeId","data-v-68845234"]]);var ks=Object.defineProperty,Os=(e,t,n)=>t in e?ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H=(e,t,n)=>Os(e,typeof t!="symbol"?t+"":t,n);function pt(e){this.message=e||""}pt.prototype=Object.create(Error.prototype,{constructor:{value:pt},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const En=class lt{constructor(t,n,o,r,i){if(H(this,"name","Stonecrop"),H(this,"registry"),H(this,"store"),H(this,"schema"),H(this,"workflow"),H(this,"actions"),lt._root)return lt._root;lt._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=r,this.actions=i}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new pt(t.doctype)}getWorkflow(t){const n=this.registry.registry[t.slug];this.workflow=n.workflow}getActions(t){const n=this.registry.registry[t.slug];this.actions=n.actions}async getRecords(t,n){this.store.$patch({records:[]});const o=await(await fetch(`/${t.slug}`,n)).json();this.store.$patch({records:o})}async getRecord(t,n){this.store.$patch({record:{}});const o=await(await fetch(`/${t.slug}/${n}`)).json();this.store.$patch({record:o})}runAction(t,n,o){var r;const i=(r=this.registry.registry[t.slug].actions)==null?void 0:r.get(n);if(this.workflow){const{initialState:a}=this.workflow;this.workflow.transition(a,{type:n}),i&&i.length>0&&i.forEach(l=>{new Function(l)(o)})}}};H(En,"_root");let Ss=En;var Is=Object.create,wn=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,ht=Object.getOwnPropertyNames,Vs=Object.getPrototypeOf,Cs=Object.prototype.hasOwnProperty,Ns=(e,t)=>function(){return e&&(t=(0,e[ht(e)[0]])(e=0)),t},Ps=(e,t)=>function(){return t||(0,e[ht(e)[0]])((t={exports:{}}).exports,t),t.exports},Rs=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ht(t))!Cs.call(e,r)&&r!==n&&wn(e,r,{get:()=>t[r],enumerable:!(o=Ts(t,r))||o.enumerable});return e},xs=(e,t,n)=>(n=e!=null?Is(Vs(e)):{},Rs(wn(n,"default",{value:e,enumerable:!0}),e)),Ne=Ns({"../../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"(){}}),Ds=Ps({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){Ne(),t.exports=o;function n(i){return i instanceof Buffer?Buffer.from(i):new i.constructor(i.buffer.slice(),i.byteOffset,i.length)}function o(i){if(i=i||{},i.circles)return r(i);const a=new Map;if(a.set(Date,h=>new Date(h)),a.set(Map,(h,f)=>new Map(c(Array.from(h),f))),a.set(Set,(h,f)=>new Set(c(Array.from(h),f))),i.constructorHandlers)for(const h of i.constructorHandlers)a.set(h[0],h[1]);let l=null;return i.proto?d:u;function c(h,f){const m=Object.keys(h),_=new Array(m.length);for(let v=0;v<m.length;v++){const p=m[v],E=h[p];typeof E!="object"||E===null?_[p]=E:E.constructor!==Object&&(l=a.get(E.constructor))?_[p]=l(E,f):ArrayBuffer.isView(E)?_[p]=n(E):_[p]=f(E)}return _}function u(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return c(h,u);if(h.constructor!==Object&&(l=a.get(h.constructor)))return l(h,u);const f={};for(const m in h){if(Object.hasOwnProperty.call(h,m)===!1)continue;const _=h[m];typeof _!="object"||_===null?f[m]=_:_.constructor!==Object&&(l=a.get(_.constructor))?f[m]=l(_,u):ArrayBuffer.isView(_)?f[m]=n(_):f[m]=u(_)}return f}function d(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return c(h,d);if(h.constructor!==Object&&(l=a.get(h.constructor)))return l(h,d);const f={};for(const m in h){const _=h[m];typeof _!="object"||_===null?f[m]=_:_.constructor!==Object&&(l=a.get(_.constructor))?f[m]=l(_,d):ArrayBuffer.isView(_)?f[m]=n(_):f[m]=d(_)}return f}}function r(i){const a=[],l=[],c=new Map;if(c.set(Date,m=>new Date(m)),c.set(Map,(m,_)=>new Map(d(Array.from(m),_))),c.set(Set,(m,_)=>new Set(d(Array.from(m),_))),i.constructorHandlers)for(const m of i.constructorHandlers)c.set(m[0],m[1]);let u=null;return i.proto?f:h;function d(m,_){const v=Object.keys(m),p=new Array(v.length);for(let E=0;E<v.length;E++){const I=v[E],N=m[I];if(typeof N!="object"||N===null)p[I]=N;else if(N.constructor!==Object&&(u=c.get(N.constructor)))p[I]=u(N,_);else if(ArrayBuffer.isView(N))p[I]=n(N);else{const D=a.indexOf(N);D!==-1?p[I]=l[D]:p[I]=_(N)}}return p}function h(m){if(typeof m!="object"||m===null)return m;if(Array.isArray(m))return d(m,h);if(m.constructor!==Object&&(u=c.get(m.constructor)))return u(m,h);const _={};a.push(m),l.push(_);for(const v in m){if(Object.hasOwnProperty.call(m,v)===!1)continue;const p=m[v];if(typeof p!="object"||p===null)_[v]=p;else if(p.constructor!==Object&&(u=c.get(p.constructor)))_[v]=u(p,h);else if(ArrayBuffer.isView(p))_[v]=n(p);else{const E=a.indexOf(p);E!==-1?_[v]=l[E]:_[v]=h(p)}}return a.pop(),l.pop(),_}function f(m){if(typeof m!="object"||m===null)return m;if(Array.isArray(m))return d(m,f);if(m.constructor!==Object&&(u=c.get(m.constructor)))return u(m,f);const _={};a.push(m),l.push(_);for(const v in m){const p=m[v];if(typeof p!="object"||p===null)_[v]=p;else if(p.constructor!==Object&&(u=c.get(p.constructor)))_[v]=u(p,f);else if(ArrayBuffer.isView(p))_[v]=n(p);else{const E=a.indexOf(p);E!==-1?_[v]=l[E]:_[v]=f(p)}}return a.pop(),l.pop(),_}}}});Ne(),Ne(),Ne();var bn=typeof navigator<"u",V=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof V.chrome<"u"&&V.chrome.devtools,bn&&(V.self,V.top);var vn;typeof navigator<"u"&&((vn=navigator.userAgent)==null||vn.toLowerCase().includes("electron")),Ne();var As=xs(Ds()),$s=/(?:^|[-_/])(\w)/g;function Ls(e,t){return t?t.toUpperCase():""}function js(e){return e&&`${e}`.replace($s,Ls)}function Ms(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const o=n.lastIndexOf("/"),r=n.substring(o+1);{const i=r.lastIndexOf(t);return r.substring(0,i)}}var kn=(0,As.default)({circles:!0});const Bs={trailing:!0};function _e(e,t=25,n={}){if(n={...Bs,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let o,r,i=[],a,l;const c=(u,d)=>(a=Us(e,u,d),a.finally(()=>{if(a=null,n.trailing&&l&&!r){const h=c(u,l);return l=null,h}}),a);return function(...u){return a?(n.trailing&&(l=u),a):new Promise(d=>{const h=!r&&n.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const f=n.leading?o:c(this,u);for(const m of i)m(f);i=[]},t),h?(o=c(this,u),d(o)):i.push(d)})}}async function Us(e,t,n){return await e.apply(t,n)}function mt(e,t={},n){for(const o in e){const r=e[o],i=n?`${n}:${o}`:o;typeof r=="object"&&r!==null?mt(r,t,i):typeof r=="function"&&(t[i]=r)}return t}const zs={run:e=>e()},Hs=()=>zs,On=typeof console.createTask<"u"?console.createTask:Hs;function Ks(e,t){const n=t.shift(),o=On(n);return e.reduce((r,i)=>r.then(()=>o.run(()=>i(...t))),Promise.resolve())}function Fs(e,t){const n=t.shift(),o=On(n);return Promise.all(e.map(r=>o.run(()=>r(...t))))}function _t(e,t){for(const n of[...e])n(t)}class Ws{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(t,n,o={}){if(!t||typeof n!="function")return()=>{};const r=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!o.allowDeprecated){let a=i.message;a||(a=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let o,r=(...i)=>(typeof o=="function"&&o(),o=void 0,r=void 0,n(...i));return o=this.hook(t,r),o}removeHook(t,n){if(this._hooks[t]){const o=this._hooks[t].indexOf(n);o!==-1&&this._hooks[t].splice(o,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const o=this._hooks[t]||[];delete this._hooks[t];for(const r of o)this.hook(t,r)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=mt(t),o=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of o.splice(0,o.length))r()}}removeHooks(t){const n=mt(t);for(const o in n)this.removeHook(o,n[o])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Ks,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Fs,t,...n)}callHookWith(t,n,...o){const r=this._before||this._after?{name:n,args:o,context:{}}:void 0;this._before&&_t(this._before,r);const i=t(n in this._hooks?[...this._hooks[n]]:[],o);return i instanceof Promise?i.finally(()=>{this._after&&r&&_t(this._after,r)}):(this._after&&r&&_t(this._after,r),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Sn(){return new Ws}var Gs=Object.create,In=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyNames,qs=Object.getPrototypeOf,Js=Object.prototype.hasOwnProperty,Xs=(e,t)=>function(){return e&&(t=(0,e[gt(e)[0]])(e=0)),t},Tn=(e,t)=>function(){return t||(0,e[gt(e)[0]])((t={exports:{}}).exports,t),t.exports},Zs=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of gt(t))!Js.call(e,r)&&r!==n&&In(e,r,{get:()=>t[r],enumerable:!(o=Ys(t,r))||o.enumerable});return e},Qs=(e,t,n)=>(n=e!=null?Gs(qs(e)):{},Zs(In(n,"default",{value:e,enumerable:!0}),e)),w=Xs({"../../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"(){}}),ea=Tn({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){w(),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=["်","ް"],i={"ာ":"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"},a={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(""),d=[".","!","~","*","'","(",")"].join(""),h=function(v,p){var E="-",I="",N="",D=!0,A={},G,O,$,T,y,S,P,R,F,U,g,k,b,C,L="";if(typeof v!="string")return"";if(typeof p=="string"&&(E=p),P=l.en,R=a.en,typeof p=="object"){G=p.maintainCase||!1,A=p.custom&&typeof p.custom=="object"?p.custom:A,$=+p.truncate>1&&p.truncate||!1,T=p.uric||!1,y=p.uricNoSlash||!1,S=p.mark||!1,D=!(p.symbols===!1||p.lang===!1),E=p.separator||E,T&&(L+=c),y&&(L+=u),S&&(L+=d),P=p.lang&&l[p.lang]&&D?l[p.lang]:D?l.en:{},R=p.lang&&a[p.lang]?a[p.lang]:p.lang===!1||p.lang===!0?{}:a.en,p.titleCase&&typeof p.titleCase.length=="number"&&Array.prototype.toString.call(p.titleCase)?(p.titleCase.forEach(function(j){A[j+""]=j+""}),O=!0):O=!!p.titleCase,p.custom&&typeof p.custom.length=="number"&&Array.prototype.toString.call(p.custom)&&p.custom.forEach(function(j){A[j+""]=j+""}),Object.keys(A).forEach(function(j){var re;j.length>1?re=new RegExp("\\b"+m(j)+"\\b","gi"):re=new RegExp(m(j),"gi"),v=v.replace(re,A[j])});for(g in A)L+=g}for(L+=E,L=m(L),v=v.replace(/(^\s+|\s+$)/g,""),b=!1,C=!1,U=0,k=v.length;U<k;U++)g=v[U],_(g,A)?b=!1:R[g]?(g=b&&R[g].match(/[A-Za-z0-9]/)?" "+R[g]:R[g],b=!1):g in o?(U+1<k&&r.indexOf(v[U+1])>=0?(N+=g,g=""):C===!0?(g=i[N]+o[g],N=""):g=b&&o[g].match(/[A-Za-z0-9]/)?" "+o[g]:o[g],b=!1,C=!1):g in i?(N+=g,g="",U===k-1&&(g=i[N]),C=!0):P[g]&&!(T&&c.indexOf(g)!==-1)&&!(y&&u.indexOf(g)!==-1)?(g=b||I.substr(-1).match(/[A-Za-z0-9]/)?E+P[g]:P[g],g+=v[U+1]!==void 0&&v[U+1].match(/[A-Za-z0-9]/)?E:"",b=!0):(C===!0?(g=i[N]+g,N="",C=!1):b&&(/[A-Za-z0-9]/.test(g)||I.substr(-1).match(/A-Za-z0-9]/))&&(g=" "+g),b=!1),I+=g.replace(new RegExp("[^\\w\\s"+L+"_-]","g"),E);return O&&(I=I.replace(/(\w)(\S*)/g,function(j,re,Hr){var dn=re.toUpperCase()+(Hr!==null?Hr:"");return Object.keys(A).indexOf(dn.toLowerCase())<0?dn:dn.toLowerCase()})),I=I.replace(/\s+/g,E).replace(new RegExp("\\"+E+"+","g"),E).replace(new RegExp("(^\\"+E+"+|\\"+E+"+$)","g"),""),$&&I.length>$&&(F=I.charAt($)===E,I=I.slice(0,$),F||(I=I.slice(0,I.lastIndexOf(E)))),!G&&!O&&(I=I.toLowerCase()),I},f=function(v){return function(p){return h(p,v)}},m=function(v){return v.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},_=function(v,p){for(var E in p)if(p[E]===v)return!0};if(typeof t<"u"&&t.exports)t.exports=h,t.exports.createSlug=f;else if(typeof define<"u"&&define.amd)define([],function(){return h});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=h,n.createSlug=f}catch{}}(e)}}),ta=Tn({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){w(),t.exports=ea()}});w(),w(),w(),w(),w(),w(),w(),w();function na(e){var t;const n=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return n==="index"&&(t=e.__file)!=null&&t.endsWith("index.vue")?"":n}function oa(e){const t=e.__file;if(t)return js(Ms(t,".vue"))}function Vn(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function yt(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Cn(e){var t,n;const o=(t=e.subTree)==null?void 0:t.type,r=yt(e);return r?((n=r==null?void 0:r.types)==null?void 0:n.Fragment)===o:!1}function Ke(e){var t,n,o;const r=na((e==null?void 0:e.type)||{});if(r)return r;if((e==null?void 0:e.root)===e)return"Root";for(const a in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[a]===(e==null?void 0:e.type))return Vn(e,a);for(const a in(o=e.appContext)==null?void 0:o.components)if(e.appContext.components[a]===(e==null?void 0:e.type))return Vn(e,a);return oa((e==null?void 0:e.type)||{})||"Anonymous Component"}function ra(e){var t,n,o;const r=(o=(n=(t=e==null?void 0:e.appContext)==null?void 0:t.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?o:0,i=e===(e==null?void 0:e.root)?"root":e.uid;return`${r}:${i}`}function Et(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function sa(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var Fe;function aa(e){return Fe||(Fe=document.createRange()),Fe.selectNode(e),Fe.getBoundingClientRect()}function ia(e){const t=sa();if(!e.children)return t;for(let n=0,o=e.children.length;n<o;n++){const r=e.children[n];let i;if(r.component)i=le(r.component);else if(r.el){const a=r.el;a.nodeType===1||a.getBoundingClientRect?i=a.getBoundingClientRect():a.nodeType===3&&a.data.trim()&&(i=aa(a))}i&&la(t,i)}return t}function la(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var Nn={top:0,left:0,right:0,bottom:0,width:0,height:0};function le(e){const t=e.subTree.el;return typeof window>"u"?Nn:Cn(e)?ia(e.subTree):(t==null?void 0:t.nodeType)===1?t==null?void 0:t.getBoundingClientRect():e.subTree.component?le(e.subTree.component):Nn}w();function wt(e){return Cn(e)?ca(e.subTree):e.subTree?[e.subTree.el]:[]}function ca(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...wt(n.component)):n!=null&&n.el&&t.push(n.el)}),t}var Pn="__vue-devtools-component-inspector__",Rn="__vue-devtools-component-inspector__card__",xn="__vue-devtools-component-inspector__name__",Dn="__vue-devtools-component-inspector__indicator__",An={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},ua={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)"},da={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function ge(){return document.getElementById(Pn)}function fa(){return document.getElementById(Rn)}function pa(){return document.getElementById(Dn)}function ha(){return document.getElementById(xn)}function bt(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function vt(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:Pn,Object.assign(n.style,{...An,...bt(e.bounds),...e.style});const o=document.createElement("span");o.id=Rn,Object.assign(o.style,{...ua,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=xn,r.innerHTML=`<${e.name}> `;const i=document.createElement("i");return i.id=Dn,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(i.style,da),o.appendChild(r),o.appendChild(i),n.appendChild(o),document.body.appendChild(n),n}function kt(e){const t=ge(),n=fa(),o=ha(),r=pa();t&&(Object.assign(t.style,{...An,...bt(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),o.innerHTML=`<${e.name}> `,r.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function ma(e){const t=le(e);if(!t.width&&!t.height)return;const n=Ke(e);ge()?kt({bounds:t,name:n}):vt({bounds:t,name:n})}function $n(){const e=ge();e&&(e.style.display="none")}var Ot=null;function St(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(Ot=n,n.vnode.el)){const o=le(n),r=Ke(n);ge()?kt({bounds:o,name:r}):vt({bounds:o,name:r})}}}function _a(e,t){if(e.preventDefault(),e.stopPropagation(),Ot){const n=ra(Ot);t(n)}}var We=null;function ga(){$n(),window.removeEventListener("mouseover",St),window.removeEventListener("click",We,!0),We=null}function ya(){return window.addEventListener("mouseover",St),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),_a(n,o=>{window.removeEventListener("click",t,!0),We=null,window.removeEventListener("mouseover",St);const r=ge();r&&(r.style.display="none"),e(JSON.stringify({id:o}))})}We=t,window.addEventListener("click",t,!0)})}function Ea(e){const t=Et(K.value,e.id);if(t){const[n]=wt(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const o=le(t),r=document.createElement("div"),i={...bt(o),position:"absolute"};Object.assign(r.style,i),document.body.appendChild(r),r.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(r)},2e3)}setTimeout(()=>{const o=le(t);if(o.width||o.height){const r=Ke(t),i=ge();i?kt({...e,name:r,bounds:o}):vt({...e,name:r,bounds:o}),setTimeout(()=>{i&&(i.style.display="none")},1500)}},1200)}}w();var Ln;(Ln=V).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__!=null||(Ln.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function wa(e){let t=0;const n=setInterval(()=>{V.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function ba(){const e=V.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function va(){return new Promise(e=>{function t(){ba(),e(V.__VUE_INSPECTOR__)}V.__VUE_INSPECTOR__?t():wa(()=>{t()})})}w(),w();function ka(e){return!!(e&&e.__v_isReadonly)}function jn(e){return ka(e)?jn(e.__v_raw):!!(e&&e.__v_isReactive)}function It(e){return!!(e&&e.__v_isRef===!0)}function Pe(e){const t=e&&e.__v_raw;return t?Pe(t):e}var Oa=class{constructor(){this.refEditor=new Sa}set(e,t,n,o){const r=Array.isArray(t)?t:t.split(".");for(;r.length>1;){const l=r.shift();e instanceof Map?e=e.get(l):e instanceof Set?e=Array.from(e.values())[l]:e=e[l],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const i=r[0],a=this.refEditor.get(e)[i];o?o(e,i,n):this.refEditor.isRef(a)?this.refEditor.set(a,n):e[i]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let o=0;o<n.length;o++)if(e instanceof Map?e=e.get(n[o]):e=e[n[o]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const o=Array.isArray(t)?t.slice():t.split("."),r=n?2:1;for(;e&&o.length>r;){const i=o.shift();e=e[i],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,o[0])}createDefaultSetCallback(e){return(t,n,o)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):Pe(t)instanceof Map?t.delete(n):Pe(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const r=t[e.newKey||n];this.refEditor.isRef(r)?this.refEditor.set(r,o):Pe(t)instanceof Map?t.set(e.newKey||n,o):Pe(t)instanceof Set?t.add(o):t[e.newKey||n]=o}}}},Sa=class{set(e,t){if(It(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(r=>e.add(r));return}const n=Object.keys(t);if(e instanceof Map){const r=new Set(e.keys());n.forEach(i=>{e.set(i,Reflect.get(t,i)),r.delete(i)}),r.forEach(i=>e.delete(i));return}const o=new Set(Object.keys(e));n.forEach(r=>{Reflect.set(e,r,Reflect.get(t,r)),o.delete(r)}),o.forEach(r=>Reflect.deleteProperty(e,r))}}get(e){return It(e)?e.value:e}isRef(e){return It(e)||jn(e)}};w(),w(),w();var Ia="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Ta(){if(!bn||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem(Ia);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}w(),w(),w();var Mn;(Mn=V).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS!=null||(Mn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Va=new Proxy(V.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function Ca(e,t){M.timelineLayersState[t.id]=!1,Va.push({...e,descriptorId:t.id,appRecord:yt(t.app)})}var Bn;(Bn=V).__VUE_DEVTOOLS_KIT_INSPECTOR__!=null||(Bn.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Tt=new Proxy(V.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),Un=_e(()=>{Ee.hooks.callHook("sendInspectorToClient",zn())});function Na(e,t){var n,o;Tt.push({options:e,descriptor:t,treeFilterPlaceholder:(n=e.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(o=e.stateFilterPlaceholder)!=null?o:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:yt(t.app)}),Un()}function zn(){return Tt.filter(e=>e.descriptor.app===K.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var t;const n=e.descriptor,o=e.options;return{id:o.id,label:o.label,logo:n.logo,icon:`custom-ic-baseline-${(t=o==null?void 0:o.icon)==null?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function Ge(e,t){return Tt.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function Pa(){const e=Sn();e.hook("addInspector",({inspector:o,plugin:r})=>{Na(o,r.descriptor)});const t=_e(async({inspectorId:o,plugin:r})=>{var i;if(!o||!((i=r==null?void 0:r.descriptor)!=null&&i.app)||M.highPerfModeEnabled)return;const a=Ge(o,r.descriptor.app),l={app:r.descriptor.app,inspectorId:o,filter:(a==null?void 0:a.treeFilter)||"",rootNodes:[]};await new Promise(c=>{e.callHookWith(async u=>{await Promise.all(u.map(d=>d(l))),c()},"getInspectorTree")}),e.callHookWith(async c=>{await Promise.all(c.map(u=>u({inspectorId:o,rootNodes:l.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=_e(async({inspectorId:o,plugin:r})=>{var i;if(!o||!((i=r==null?void 0:r.descriptor)!=null&&i.app)||M.highPerfModeEnabled)return;const a=Ge(o,r.descriptor.app),l={app:r.descriptor.app,inspectorId:o,nodeId:(a==null?void 0:a.selectedNodeId)||"",state:null},c={currentTab:`custom-inspector:${o}`};l.nodeId&&await new Promise(u=>{e.callHookWith(async d=>{await Promise.all(d.map(h=>h(l,c))),u()},"getInspectorState")}),e.callHookWith(async u=>{await Promise.all(u.map(d=>d({inspectorId:o,nodeId:l.nodeId,state:l.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:o,nodeId:r,plugin:i})=>{const a=Ge(o,i.descriptor.app);a&&(a.selectedNodeId=r)}),e.hook("timelineLayerAdded",({options:o,plugin:r})=>{Ca(o,r.descriptor)}),e.hook("timelineEventAdded",({options:o,plugin:r})=>{var i;const a=["performance","component-event","keyboard","mouse"];M.highPerfModeEnabled||!((i=M.timelineLayersState)!=null&&i[r.descriptor.id])&&!a.includes(o.layerId)||e.callHookWith(async l=>{await Promise.all(l.map(c=>c(o)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:o})=>{const r=o.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!r)return null;const i=r.id.toString();return[...r.instanceMap].filter(([a])=>a.split(":")[0]===i).map(([,a])=>a)}),e.hook("getComponentBounds",async({instance:o})=>le(o)),e.hook("getComponentName",({instance:o})=>Ke(o)),e.hook("componentHighlight",({uid:o})=>{const r=K.value.instanceMap.get(o);r&&ma(r)}),e.hook("componentUnhighlight",()=>{$n()}),e}var Hn;(Hn=V).__VUE_DEVTOOLS_KIT_APP_RECORDS__!=null||(Hn.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var Kn;(Kn=V).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__!=null||(Kn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var Fn;(Fn=V).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__!=null||(Fn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var Wn;(Wn=V).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__!=null||(Wn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var Gn;(Gn=V).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__!=null||(Gn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var ce="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Ra(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Ta()}}var Yn;(Yn=V)[ce]!=null||(Yn[ce]=Ra());var xa=_e(e=>{Ee.hooks.callHook("devtoolsStateUpdated",{state:e})});_e((e,t)=>{Ee.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var Ye=new Proxy(V.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?V.__VUE_DEVTOOLS_KIT_APP_RECORDS__:V.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),K=new Proxy(V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function qn(){xa({...V[ce],appRecords:Ye.value,activeAppRecordId:K.id,tabs:V.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:V.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Da(e){V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,qn()}function Aa(e){V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,qn()}var M=new Proxy(V[ce],{get(e,t){return t==="appRecords"?Ye:t==="activeAppRecordId"?K.id:t==="tabs"?V.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?V.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:V[ce][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...V[ce]},e[t]=n,V[ce][t]=n,!0}});function $a(e={}){var t,n,o;const{file:r,host:i,baseUrl:a=window.location.origin,line:l=0,column:c=0}=e;if(r){if(i==="chrome-extension"){const u=r.replace(/\\/g,"\\\\"),d=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${d}__open-in-editor?file=${encodeURI(r)}`).then(h=>{if(!h.ok){const f=`Opening component ${u} failed`;console.log(`%c${f}`,"color:red")}})}else if(M.vitePluginDetected){const u=(o=V.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?o:a;V.__VUE_INSPECTOR__.openInEditor(u,r,l,c)}}}w(),w(),w(),w(),w();var Jn;(Jn=V).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__!=null||(Jn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Vt=new Proxy(V.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Ct(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Nt(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function La(e){var t,n,o;const r=(n=(t=Vt.find(i=>{var a;return i[0].id===e&&!!((a=i[0])!=null&&a.settings)}))==null?void 0:t[0])!=null?n:null;return(o=r==null?void 0:r.settings)!=null?o:null}function Xn(e,t){var n,o,r;const i=Nt(e);if(i){const a=localStorage.getItem(i);if(a)return JSON.parse(a)}if(e){const a=(o=(n=Vt.find(l=>l[0].id===e))==null?void 0:n[0])!=null?o:null;return Ct((r=a==null?void 0:a.settings)!=null?r:{})}return Ct(t)}function ja(e,t){const n=Nt(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Ct(t)))}function Ma(e,t,n){const o=Nt(e),r=localStorage.getItem(o),i=JSON.parse(r||"{}"),a={...i,[t]:n};localStorage.setItem(o,JSON.stringify(a)),Ee.hooks.callHookWith(l=>{l.forEach(c=>c({pluginId:e,key:t,oldValue:i[t],newValue:n,settings:a}))},"setPluginSettings")}w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w();var Zn,Qn,W=(Qn=(Zn=V).__VUE_DEVTOOLS_HOOK)!=null?Qn:Zn.__VUE_DEVTOOLS_HOOK=Sn(),Ba={vueAppInit(e){W.hook("app:init",e)},vueAppUnmount(e){W.hook("app:unmount",e)},vueAppConnected(e){W.hook("app:connected",e)},componentAdded(e){return W.hook("component:added",e)},componentEmit(e){return W.hook("component:emit",e)},componentUpdated(e){return W.hook("component:updated",e)},componentRemoved(e){return W.hook("component:removed",e)},setupDevtoolsPlugin(e){W.hook("devtools-plugin:setup",e)},perfStart(e){return W.hook("perf:start",e)},perfEnd(e){return W.hook("perf:end",e)}},eo={on:Ba,setupDevToolsPlugin(e,t){return W.callHook("devtools-plugin:setup",e,t)}},Ua=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var t;if(M.highPerfModeEnabled)return;const n=zn().find(o=>o.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(e){const o=[e.appContext.app,e.uid,(t=e.parent)==null?void 0:t.uid,e];W.callHook("component:updated",...o)}else W.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&ja(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){M.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){M.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return M.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){M.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return Xn(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:t})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},za=Ua;w(),w(),w(),w();var Ha="__vue_devtool_undefined__",Ka="__vue_devtool_infinity__",Fa="__vue_devtool_negative_infinity__",Wa="__vue_devtool_nan__";w(),w();var Ga={[Ha]:"undefined",[Wa]:"NaN",[Ka]:"Infinity",[Fa]:"-Infinity"};Object.entries(Ga).reduce((e,[t,n])=>(e[n]=t,e),{}),w(),w(),w(),w(),w();var to;(to=V).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__!=null||(to.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function no(e,t){return eo.setupDevToolsPlugin(e,t)}function Ya(e,t){const[n,o]=e;if(n.app!==t)return;const r=new za({plugin:{setupFn:o,descriptor:n},ctx:Ee});n.packageName==="vuex"&&r.on.editInspectorState(i=>{r.sendInspectorState(i.inspectorId)}),o(r)}function oo(e,t){V.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||M.highPerfModeEnabled&&!(t!=null&&t.inspectingComponent)||(V.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Vt.forEach(n=>{Ya(n,e)}))}w(),w();var Re="__VUE_DEVTOOLS_ROUTER__",ye="__VUE_DEVTOOLS_ROUTER_INFO__",ro;(ro=V)[ye]!=null||(ro[ye]={currentRoute:null,routes:[]});var so;(so=V)[Re]!=null||(so[Re]={}),new Proxy(V[ye],{get(e,t){return V[ye][t]}}),new Proxy(V[Re],{get(e,t){if(t==="value")return V[Re]}});function qa(e){const t=new Map;return((e==null?void 0:e.getRoutes())||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Pt(e){return e.map(t=>{let{path:n,name:o,children:r,meta:i}=t;return r!=null&&r.length&&(r=Pt(r)),{path:n,name:o,children:r,meta:i}})}function Ja(e){if(e){const{fullPath:t,hash:n,href:o,path:r,name:i,matched:a,params:l,query:c}=e;return{fullPath:t,hash:n,href:o,path:r,name:i,params:l,query:c,matched:Pt(a)}}return e}function Xa(e,t){function n(){var o;const r=(o=e.app)==null?void 0:o.config.globalProperties.$router,i=Ja(r==null?void 0:r.currentRoute.value),a=Pt(qa(r)),l=console.warn;console.warn=()=>{},V[ye]={currentRoute:i?kn(i):{},routes:kn(a)},V[Re]=r,console.warn=l}n(),eo.on.componentUpdated(_e(()=>{var o;((o=t.value)==null?void 0:o.app)===e.app&&(n(),!M.highPerfModeEnabled&&Ee.hooks.callHook("routerInfoUpdated",{state:V[ye]}))},200))}function Za(e){return{async getInspectorTree(t){const n={...t,app:K.value.app,rootNodes:[]};return await new Promise(o=>{e.callHookWith(async r=>{await Promise.all(r.map(i=>i(n))),o()},"getInspectorTree")}),n.rootNodes},async getInspectorState(t){const n={...t,app:K.value.app,state:null},o={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(r=>{e.callHookWith(async i=>{await Promise.all(i.map(a=>a(n,o))),r()},"getInspectorState")}),n.state},editInspectorState(t){const n=new Oa,o={...t,app:K.value.app,set:(r,i=t.path,a=t.state.value,l)=>{n.set(r,i,a,l||n.createDefaultSetCallback(t.state))}};e.callHookWith(r=>{r.forEach(i=>i(o))},"editInspectorState")},sendInspectorState(t){const n=Ge(t);e.callHook("sendInspectorState",{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return ya()},cancelInspectComponentInspector(){return ga()},getComponentRenderCode(t){const n=Et(K.value,t);if(n)return typeof(n==null?void 0:n.type)!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return Ea({id:t})},openInEditor:$a,getVueInspector:va,toggleApp(t,n){const o=Ye.value.find(r=>r.id===t);o&&(Aa(t),Da(o),Xa(o,K),Un(),oo(o.app,n))},inspectDOM(t){const n=Et(K.value,t);if(n){const[o]=wt(n);o&&(V.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=o)}},updatePluginSettings(t,n,o){Ma(t,n,o)},getPluginSettings(t){return{options:La(t),values:Xn(t)}}}}w();var ao;(ao=V).__VUE_DEVTOOLS_ENV__!=null||(ao.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var io=Pa(),lo;(lo=V).__VUE_DEVTOOLS_KIT_CONTEXT__!=null||(lo.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:io,get state(){return{...M,activeAppRecordId:K.id,activeAppRecord:K.value,appRecords:Ye.value}},api:Za(io)});var Ee=V.__VUE_DEVTOOLS_KIT_CONTEXT__;w(),Qs(ta());var co;(co=V).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__!=null||(co.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),w(),w();function Qa(e){M.highPerfModeEnabled=e??!M.highPerfModeEnabled,!e&&K.value&&oo(K.value.app)}w(),w(),w();function ei(e){M.devtoolsClientDetected={...M.devtoolsClientDetected,...e};const t=Object.values(M.devtoolsClientDetected).some(Boolean);Qa(!t)}var uo;(uo=V).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__!=null||(uo.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=ei),w(),w(),w(),w(),w(),w(),w();var ti=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},fo=class{constructor(e){this.generateIdentifier=e,this.kv=new ti}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},ni=class extends fo{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};w(),w();function oi(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function ri(e,t){const n=oi(e);if("find"in n)return n.find(t);const o=n;for(let r=0;r<o.length;r++){const i=o[r];if(t(i))return i}}function we(e,t){Object.entries(e).forEach(([n,o])=>t(o,n))}function qe(e,t){return e.indexOf(t)!==-1}function po(e,t){for(let n=0;n<e.length;n++){const o=e[n];if(t(o))return o}}var si=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return ri(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};w(),w();var ai=e=>Object.prototype.toString.call(e).slice(8,-1),ho=e=>typeof e>"u",ii=e=>e===null,xe=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Rt=e=>xe(e)&&Object.keys(e).length===0,se=e=>Array.isArray(e),li=e=>typeof e=="string",ci=e=>typeof e=="number"&&!isNaN(e),ui=e=>typeof e=="boolean",di=e=>e instanceof RegExp,De=e=>e instanceof Map,Ae=e=>e instanceof Set,mo=e=>ai(e)==="Symbol",fi=e=>e instanceof Date&&!isNaN(e.valueOf()),pi=e=>e instanceof Error,_o=e=>typeof e=="number"&&isNaN(e),hi=e=>ui(e)||ii(e)||ho(e)||ci(e)||li(e)||mo(e),mi=e=>typeof e=="bigint",_i=e=>e===1/0||e===-1/0,gi=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),yi=e=>e instanceof URL;w();var go=e=>e.replace(/\./g,"\\."),xt=e=>e.map(String).map(go).join("."),$e=e=>{const t=[];let n="";for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i==="\\"&&e.charAt(r+1)==="."){n+=".",r++;continue}if(i==="."){t.push(n),n="";continue}n+=i}const o=n;return t.push(o),t};w();function Z(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var yo=[Z(ho,"undefined",()=>null,()=>{}),Z(mi,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),Z(fi,"Date",e=>e.toISOString(),e=>new Date(e)),Z(pi,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(o=>{n[o]=e[o]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(o=>{n[o]=e[o]}),n}),Z(di,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),Z(Ae,"set",e=>[...e.values()],e=>new Set(e)),Z(De,"map",e=>[...e.entries()],e=>new Map(e)),Z(e=>_o(e)||_i(e),"number",e=>_o(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Z(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Z(yi,"URL",e=>e.toString(),e=>new URL(e))];function Je(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Eo=Je((e,t)=>mo(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),Ei=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),wo=Je(gi,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=Ei[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function bo(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var vo=Je(bo,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const o={};return n.forEach(r=>{o[r]=e[r]}),o},(e,t,n)=>{const o=n.classRegistry.getValue(t[1]);if(!o)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(o.prototype),e)}),ko=Je((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),wi=[vo,Eo,ko,wo],Oo=(e,t)=>{const n=po(wi,r=>r.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const o=po(yo,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},So={};yo.forEach(e=>{So[e.annotation]=e});var bi=(e,t,n)=>{if(se(t))switch(t[0]){case"symbol":return Eo.untransform(e,t,n);case"class":return vo.untransform(e,t,n);case"custom":return ko.untransform(e,t,n);case"typed-array":return wo.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const o=So[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}};w();var be=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Io(e){if(qe(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(qe(e,"prototype"))throw new Error("prototype is not allowed as a property");if(qe(e,"constructor"))throw new Error("constructor is not allowed as a property")}var vi=(e,t)=>{Io(t);for(let n=0;n<t.length;n++){const o=t[n];if(Ae(e))e=be(e,+o);else if(De(e)){const r=+o,i=+t[++n]==0?"key":"value",a=be(e,r);switch(i){case"key":e=a;break;case"value":e=e.get(a);break}}else e=e[o]}return e},Dt=(e,t,n)=>{if(Io(t),t.length===0)return n(e);let o=e;for(let i=0;i<t.length-1;i++){const a=t[i];if(se(o)){const l=+a;o=o[l]}else if(xe(o))o=o[a];else if(Ae(o)){const l=+a;o=be(o,l)}else if(De(o)){if(i===t.length-2)break;const l=+a,c=+t[++i]==0?"key":"value",u=be(o,l);switch(c){case"key":o=u;break;case"value":o=o.get(u);break}}}const r=t[t.length-1];if(se(o)?o[+r]=n(o[+r]):xe(o)&&(o[r]=n(o[r])),Ae(o)){const i=be(o,+r),a=n(i);i!==a&&(o.delete(i),o.add(a))}if(De(o)){const i=+t[t.length-2],a=be(o,i);switch(+r==0?"key":"value"){case"key":{const l=n(a);o.set(l,o.get(a)),l!==a&&o.delete(a);break}case"value":{o.set(a,n(o.get(a)));break}}}return e};function At(e,t,n=[]){if(!e)return;if(!se(e)){we(e,(i,a)=>At(i,t,[...n,...$e(a)]));return}const[o,r]=e;r&&we(r,(i,a)=>{At(i,t,[...n,...$e(a)])}),t(o,n)}function ki(e,t,n){return At(t,(o,r)=>{e=Dt(e,r,i=>bi(i,o,n))}),e}function Oi(e,t){function n(o,r){const i=vi(e,$e(r));o.map($e).forEach(a=>{e=Dt(e,a,()=>i)})}if(se(t)){const[o,r]=t;o.forEach(i=>{e=Dt(e,$e(i),()=>e)}),r&&we(r,n)}else we(t,n);return e}var Si=(e,t)=>xe(e)||se(e)||De(e)||Ae(e)||bo(e,t);function Ii(e,t,n){const o=n.get(e);o?o.push(t):n.set(e,[t])}function Ti(e,t){const n={};let o;return e.forEach(r=>{if(r.length<=1)return;t||(r=r.map(l=>l.map(String)).sort((l,c)=>l.length-c.length));const[i,...a]=r;i.length===0?o=a.map(xt):n[xt(i)]=a.map(xt)}),o?Rt(n)?[o]:[o,n]:Rt(n)?void 0:n}var To=(e,t,n,o,r=[],i=[],a=new Map)=>{var l;const c=hi(e);if(!c){Ii(e,r,t);const _=a.get(e);if(_)return o?{transformedValue:null}:_}if(!Si(e,n)){const _=Oo(e,n),v=_?{transformedValue:_.value,annotations:[_.type]}:{transformedValue:e};return c||a.set(e,v),v}if(qe(i,e))return{transformedValue:null};const u=Oo(e,n),d=(l=u==null?void 0:u.value)!=null?l:e,h=se(d)?[]:{},f={};we(d,(_,v)=>{if(v==="__proto__"||v==="constructor"||v==="prototype")throw new Error(`Detected property ${v}. This is a prototype pollution risk, please remove it from your object.`);const p=To(_,t,n,o,[...r,v],[...i,e],a);h[v]=p.transformedValue,se(p.annotations)?f[v]=p.annotations:xe(p.annotations)&&we(p.annotations,(E,I)=>{f[go(v)+"."+I]=E})});const m=Rt(f)?{transformedValue:h,annotations:u?[u.type]:void 0}:{transformedValue:h,annotations:u?[u.type,f]:f};return c||a.set(e,m),m};w(),w();function Vo(e){return Object.prototype.toString.call(e).slice(8,-1)}function Co(e){return Vo(e)==="Array"}function Vi(e){if(Vo(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Ci(e,t,n,o,r){const i={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),r&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function $t(e,t={}){if(Co(e))return e.map(r=>$t(r,t));if(!Vi(e))return e;const n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...n,...o].reduce((r,i)=>{if(Co(t.props)&&!t.props.includes(i))return r;const a=e[i],l=$t(a,t);return Ci(r,i,l,e,t.nonenumerable),r},{})}var x=class{constructor({dedupe:e=!1}={}){this.classRegistry=new ni,this.symbolRegistry=new fo(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new si,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=To(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta={...o.meta,values:n.annotations});const r=Ti(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){const{json:t,meta:n}=e;let o=$t(t);return n!=null&&n.values&&(o=ki(o,n.values,this)),n!=null&&n.referentialEqualities&&(o=Oi(o,n.referentialEqualities)),o}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};x.defaultInstance=new x,x.serialize=x.defaultInstance.serialize.bind(x.defaultInstance),x.deserialize=x.defaultInstance.deserialize.bind(x.defaultInstance),x.stringify=x.defaultInstance.stringify.bind(x.defaultInstance),x.parse=x.defaultInstance.parse.bind(x.defaultInstance),x.registerClass=x.defaultInstance.registerClass.bind(x.defaultInstance),x.registerSymbol=x.defaultInstance.registerSymbol.bind(x.defaultInstance),x.registerCustom=x.defaultInstance.registerCustom.bind(x.defaultInstance),x.allowErrorProps=x.defaultInstance.allowErrorProps.bind(x.defaultInstance),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w(),w();var No;(No=V).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__!=null||(No.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var Po;(Po=V).__VUE_DEVTOOLS_KIT_RPC_CLIENT__!=null||(Po.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var Ro;(Ro=V).__VUE_DEVTOOLS_KIT_RPC_SERVER__!=null||(Ro.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var xo;(xo=V).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__!=null||(xo.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var Do;(Do=V).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__!=null||(Do.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var Ao;(Ao=V).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__!=null||(Ao.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),w(),w(),w(),w(),w(),w(),w();/*!
|
|
1
|
+
(function(q,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(q=typeof globalThis<"u"?globalThis:q||self,s(q["@stonecrop/desktop"]={},q.Vue))})(this,function(q,s){"use strict";const Kr={class:"action-menu-icon"},Fr=["onclick"],Wr={key:1},Gr=["onClick"],Yr={class:"dropdown-container"},qr={class:"dropdown"},Jr=["onclick"],Xr=["href"],Zr={class:"dropdown-item"},Qr=s.defineComponent({__name:"ActionSet",props:{elements:{}},setup(e){const t=s.ref(e.elements),n=s.ref(!1),o=s.ref(null),r=s.ref(!1),a=s.ref(!1);s.onMounted(()=>{l()});const l=()=>{for(const d of t.value)d.type==="dropdown"&&(d.show=!1)},i=()=>{r.value=!0,o.value=setTimeout(()=>{r.value&&(n.value=!0)},500)},c=()=>{r.value=!1,a.value=!1,clearTimeout(o.value),n.value=!1},u=d=>{const p=!t.value[d].show;l(),t.value[d].show=p};return(d,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass([{"open-set":n.value,"hovered-and-closed":a.value},"action-set collapse"]),onMouseover:i,onMouseleave:c},[s.createElementVNode("div",Kr,[s.createElementVNode("div",{id:"chevron",onClick:p[0]||(p[0]=h=>a.value=!a.value)},p[1]||(p[1]=[s.createElementVNode("svg",{class:"leftBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[s.createElementVNode("polygon",{points:"54.2,33.4 29.2,58.8 25,54.6 50,29.2 "})],-1),s.createElementVNode("svg",{class:"rightBar",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","xml:space":"preserve",width:"50",height:"50"},[s.createElementVNode("polygon",{points:"70.8,58.8 45.8,33.4 50,29.2 75,54.6 "})],-1)]))]),p[2]||(p[2]=s.createElementVNode("div",{style:{"margin-right":"30px"}},null,-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.value,(h,f)=>(s.openBlock(),s.createElementBlock("div",{class:"action-element",key:h.label},[h.type=="button"?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:h.action,class:"button-default"},s.toDisplayString(h.label),9,Fr)):s.createCommentVNode("",!0),h.type=="dropdown"?(s.openBlock(),s.createElementBlock("div",Wr,[s.createElementVNode("button",{class:"button-default",onClick:_=>u(f)},s.toDisplayString(h.label),9,Gr),s.withDirectives(s.createElementVNode("div",Yr,[s.createElementVNode("div",qr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.actions,_=>(s.openBlock(),s.createElementBlock("div",{key:_.label},[_.action!=null?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:_.action,class:"dropdown-item"},s.toDisplayString(_.label),9,Jr)):_.link!=null?(s.openBlock(),s.createElementBlock("a",{key:1,href:_.link},[s.createElementVNode("button",Zr,s.toDisplayString(_.label),1)],8,Xr)):s.createCommentVNode("",!0)]))),128))])],512),[[s.vShow,h.show]])])):s.createCommentVNode("",!0)]))),128))],34))}}),pn=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},hn=pn(Qr,[["__scopeId","data-v-38e7af34"]]),es={class:"command-palette-header"},ts=["placeholder"],ns={key:0,class:"command-palette-results"},os=["onClick","onMouseover"],rs={class:"result-title"},ss={class:"result-content"},as={key:1,class:"command-palette-no-results"},mn=s.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(e,{emit:t}){const n=t,o=s.ref(""),r=s.ref(0),a=s.useTemplateRef("input"),l=s.computed(()=>o.value?e.search(o.value).slice(0,e.maxResults):[]);s.watch(()=>e.isOpen,async d=>{var p;d&&(o.value="",r.value=0,await s.nextTick(),(p=a.value)==null||p.focus())}),s.watch(l,()=>{r.value=0});const i=()=>{n("close")},c=d=>{switch(d.key){case"Escape":i();break;case"ArrowDown":d.preventDefault(),l.value.length&&(r.value=(r.value+1)%l.value.length);break;case"ArrowUp":d.preventDefault(),l.value.length&&(r.value=(r.value-1+l.value.length)%l.value.length);break;case"Enter":l.value.length&&r.value>=0&&u(l.value[r.value]);break}},u=d=>{n("select",d),i()};return(d,p)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[d.isOpen?(s.openBlock(),s.createElementBlock("div",{key:0,class:"command-palette-overlay",onClick:i},[s.createElementVNode("div",{class:"command-palette",onClick:p[1]||(p[1]=s.withModifiers(()=>{},["stop"]))},[s.createElementVNode("div",es,[s.withDirectives(s.createElementVNode("input",{ref:"input","onUpdate:modelValue":p[0]||(p[0]=h=>o.value=h),type:"text",class:"command-palette-input",placeholder:d.placeholder,autofocus:"",onKeydown:c},null,40,ts),[[s.vModelText,o.value]])]),l.value.length?(s.openBlock(),s.createElementBlock("div",ns,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(h,f)=>(s.openBlock(),s.createElementBlock("div",{key:f,class:s.normalizeClass(["command-palette-result",{selected:f===r.value}]),onClick:_=>u(h),onMouseover:_=>r.value=f},[s.createElementVNode("div",rs,[s.renderSlot(d.$slots,"title",{result:h})]),s.createElementVNode("div",ss,[s.renderSlot(d.$slots,"content",{result:h})])],42,os))),128))])):o.value&&!l.value.length?(s.openBlock(),s.createElementBlock("div",as,[s.renderSlot(d.$slots,"empty",{},()=>[s.createTextVNode(' No results found for "'+s.toDisplayString(o.value)+'" ',1)])])):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0)]),_:3})]))}}),ls=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};function _n(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const gn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const is=Object.prototype.toString,cs=e=>is.call(e)==="[object Object]",us=()=>{},yn=ds();function ds(){var e,t;return gn&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function fs(...e){if(e.length!==1)return s.toRef(...e);const t=e[0];return typeof t=="function"?s.readonly(s.customRef(()=>({get:t,set:us}))):s.ref(t)}function dt(e){return Array.isArray(e)?e:[e]}function ps(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const hs=gn?window:void 0;function ms(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function _s(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},o=(i,c,u,d)=>(i.addEventListener(c,u,d),()=>i.removeEventListener(c,u,d)),r=s.computed(()=>{const i=dt(s.toValue(e[0])).filter(c=>c!=null);return i.every(c=>typeof c!="string")?i:void 0}),a=ps(()=>{var i,c;return[(c=(i=r.value)==null?void 0:i.map(u=>ms(u)))!=null?c:[hs].filter(u=>u!=null),dt(s.toValue(r.value?e[1]:e[0])),dt(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([i,c,u,d])=>{if(n(),!(i!=null&&i.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const p=cs(d)?{...d}:d;t.push(...i.flatMap(h=>c.flatMap(f=>u.map(_=>o(h,f,_,p)))))},{flush:"post"}),l=()=>{a(),n()};return _n(n),l}function ft(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function En(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:En(n)}}function gs(e){const t=e||window.event,n=t.target;return En(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const pt=new WeakMap;function ys(e,t=!1){const n=s.shallowRef(t);let o=null,r="";s.watch(fs(e),i=>{const c=ft(s.toValue(i));if(c){const u=c;if(pt.get(u)||pt.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 a=()=>{const i=ft(s.toValue(e));!i||n.value||(yn&&(o=_s(i,"touchmove",c=>{gs(c)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},l=()=>{const i=ft(s.toValue(e));!i||!n.value||(yn&&(o==null||o()),i.style.overflow=r,pt.delete(i),n.value=!1)};return _n(l),s.computed({get(){return n.value},set(i){i?a():l()}})}function Es(){let e=!1;const t=s.shallowRef(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=ys(n,o.value);s.watch(t,a=>r.value=a)}}Es(),typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ws={class:"aform"},bs=s.defineComponent({__name:"AForm",props:{modelValue:{},data:{},readonly:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=s.ref(e.data||{}),r=l=>{let i={};for(const[c,u]of Object.entries(l))["component","fieldtype"].includes(c)||(i[c]=u),c==="rows"&&u&&u.length===0&&(i.rows=o.value[l.fieldname]);return i},a=s.computed({get:()=>e.modelValue.map((l,i)=>s.computed({get(){return l.value},set:c=>{e.modelValue[i].value=c,n("update:modelValue",e.modelValue)}})),set:()=>{}});return(l,i)=>(s.openBlock(),s.createElementBlock("form",ws,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.modelValue,(c,u)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(c.component),s.mergeProps({key:u,schema:c,modelValue:a.value[u].value,"onUpdate:modelValue":d=>a.value[u].value=d,data:o.value[c.fieldname],readonly:l.readonly},{ref_for:!0},r(c)),null,16,["schema","modelValue","onUpdate:modelValue","data","readonly"]))),128))]))}}),vs=ls(bs,[["__scopeId","data-v-68845234"]]);var ks=Object.defineProperty,Os=(e,t,n)=>t in e?ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K=(e,t,n)=>Os(e,typeof t!="symbol"?t+"":t,n);function ht(e){this.message=e||""}ht.prototype=Object.create(Error.prototype,{constructor:{value:ht},name:{value:"NotImplemented"},stack:{get:function(){return new Error().stack}}});const wn=class ct{constructor(t,n,o,r,a){if(K(this,"name","Stonecrop"),K(this,"registry"),K(this,"store"),K(this,"schema"),K(this,"workflow"),K(this,"actions"),ct._root)return ct._root;ct._root=this,this.registry=t,this.store=n,this.schema=o,this.workflow=r,this.actions=a}setup(t){this.getMeta(t),this.getWorkflow(t),this.getActions(t)}getMeta(t){return this.registry.getMeta?this.registry.getMeta(t.doctype):new ht(t.doctype)}getWorkflow(t){const n=this.registry.registry[t.slug];this.workflow=n.workflow}getActions(t){const n=this.registry.registry[t.slug];this.actions=n.actions}async getRecords(t,n){this.store.$patch({records:[]});const o=await(await fetch(`/${t.slug}`,n)).json();this.store.$patch({records:o})}async getRecord(t,n){this.store.$patch({record:{}});const o=await(await fetch(`/${t.slug}/${n}`)).json();this.store.$patch({record:o})}runAction(t,n,o){var r;const a=(r=this.registry.registry[t.slug].actions)==null?void 0:r.get(n);if(this.workflow){const{initialState:l}=this.workflow;this.workflow.transition(l,{type:n}),a&&a.length>0&&a.forEach(i=>{new Function(i)(o)})}}};K(wn,"_root");let Ss=wn;var Is=Object.create,bn=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,mt=Object.getOwnPropertyNames,Vs=Object.getPrototypeOf,Cs=Object.prototype.hasOwnProperty,Ns=(e,t)=>function(){return e&&(t=(0,e[mt(e)[0]])(e=0)),t},Ps=(e,t)=>function(){return t||(0,e[mt(e)[0]])((t={exports:{}}).exports,t),t.exports},Rs=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of mt(t))!Cs.call(e,r)&&r!==n&&bn(e,r,{get:()=>t[r],enumerable:!(o=Ts(t,r))||o.enumerable});return e},xs=(e,t,n)=>(n=e!=null?Is(Vs(e)):{},Rs(bn(n,"default",{value:e,enumerable:!0}),e)),Pe=Ns({"../../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"(){}}),Ds=Ps({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){Pe(),t.exports=o;function n(a){return a instanceof Buffer?Buffer.from(a):new a.constructor(a.buffer.slice(),a.byteOffset,a.length)}function o(a){if(a=a||{},a.circles)return r(a);const l=new Map;if(l.set(Date,p=>new Date(p)),l.set(Map,(p,h)=>new Map(c(Array.from(p),h))),l.set(Set,(p,h)=>new Set(c(Array.from(p),h))),a.constructorHandlers)for(const p of a.constructorHandlers)l.set(p[0],p[1]);let i=null;return a.proto?d:u;function c(p,h){const f=Object.keys(p),_=new Array(f.length);for(let v=0;v<f.length;v++){const m=f[v],g=p[m];typeof g!="object"||g===null?_[m]=g:g.constructor!==Object&&(i=l.get(g.constructor))?_[m]=i(g,h):ArrayBuffer.isView(g)?_[m]=n(g):_[m]=h(g)}return _}function u(p){if(typeof p!="object"||p===null)return p;if(Array.isArray(p))return c(p,u);if(p.constructor!==Object&&(i=l.get(p.constructor)))return i(p,u);const h={};for(const f in p){if(Object.hasOwnProperty.call(p,f)===!1)continue;const _=p[f];typeof _!="object"||_===null?h[f]=_:_.constructor!==Object&&(i=l.get(_.constructor))?h[f]=i(_,u):ArrayBuffer.isView(_)?h[f]=n(_):h[f]=u(_)}return h}function d(p){if(typeof p!="object"||p===null)return p;if(Array.isArray(p))return c(p,d);if(p.constructor!==Object&&(i=l.get(p.constructor)))return i(p,d);const h={};for(const f in p){const _=p[f];typeof _!="object"||_===null?h[f]=_:_.constructor!==Object&&(i=l.get(_.constructor))?h[f]=i(_,d):ArrayBuffer.isView(_)?h[f]=n(_):h[f]=d(_)}return h}}function r(a){const l=[],i=[],c=new Map;if(c.set(Date,f=>new Date(f)),c.set(Map,(f,_)=>new Map(d(Array.from(f),_))),c.set(Set,(f,_)=>new Set(d(Array.from(f),_))),a.constructorHandlers)for(const f of a.constructorHandlers)c.set(f[0],f[1]);let u=null;return a.proto?h:p;function d(f,_){const v=Object.keys(f),m=new Array(v.length);for(let g=0;g<v.length;g++){const I=v[g],C=f[I];if(typeof C!="object"||C===null)m[I]=C;else if(C.constructor!==Object&&(u=c.get(C.constructor)))m[I]=u(C,_);else if(ArrayBuffer.isView(C))m[I]=n(C);else{const x=l.indexOf(C);x!==-1?m[I]=i[x]:m[I]=_(C)}}return m}function p(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return d(f,p);if(f.constructor!==Object&&(u=c.get(f.constructor)))return u(f,p);const _={};l.push(f),i.push(_);for(const v in f){if(Object.hasOwnProperty.call(f,v)===!1)continue;const m=f[v];if(typeof m!="object"||m===null)_[v]=m;else if(m.constructor!==Object&&(u=c.get(m.constructor)))_[v]=u(m,p);else if(ArrayBuffer.isView(m))_[v]=n(m);else{const g=l.indexOf(m);g!==-1?_[v]=i[g]:_[v]=p(m)}}return l.pop(),i.pop(),_}function h(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return d(f,h);if(f.constructor!==Object&&(u=c.get(f.constructor)))return u(f,h);const _={};l.push(f),i.push(_);for(const v in f){const m=f[v];if(typeof m!="object"||m===null)_[v]=m;else if(m.constructor!==Object&&(u=c.get(m.constructor)))_[v]=u(m,h);else if(ArrayBuffer.isView(m))_[v]=n(m);else{const g=l.indexOf(m);g!==-1?_[v]=i[g]:_[v]=h(m)}}return l.pop(),i.pop(),_}}}});Pe(),Pe(),Pe();var vn=typeof navigator<"u",V=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof V.chrome<"u"&&V.chrome.devtools,vn&&(V.self,V.top);var kn;typeof navigator<"u"&&((kn=navigator.userAgent)==null||kn.toLowerCase().includes("electron")),Pe();var As=xs(Ds()),$s=/(?:^|[-_/])(\w)/g;function Ls(e,t){return t?t.toUpperCase():""}function js(e){return e&&`${e}`.replace($s,Ls)}function Ms(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const o=n.lastIndexOf("/"),r=n.substring(o+1);{const a=r.lastIndexOf(t);return r.substring(0,a)}}var On=(0,As.default)({circles:!0});const Bs={trailing:!0};function _e(e,t=25,n={}){if(n={...Bs,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let o,r,a=[],l,i;const c=(u,d)=>(l=Us(e,u,d),l.finally(()=>{if(l=null,n.trailing&&i&&!r){const p=c(u,i);return i=null,p}}),l);return function(...u){return l?(n.trailing&&(i=u),l):new Promise(d=>{const p=!r&&n.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const h=n.leading?o:c(this,u);for(const f of a)f(h);a=[]},t),p?(o=c(this,u),d(o)):a.push(d)})}}async function Us(e,t,n){return await e.apply(t,n)}function _t(e,t={},n){for(const o in e){const r=e[o],a=n?`${n}:${o}`:o;typeof r=="object"&&r!==null?_t(r,t,a):typeof r=="function"&&(t[a]=r)}return t}const Hs={run:e=>e()},zs=()=>Hs,Sn=typeof console.createTask<"u"?console.createTask:zs;function Ks(e,t){const n=t.shift(),o=Sn(n);return e.reduce((r,a)=>r.then(()=>o.run(()=>a(...t))),Promise.resolve())}function Fs(e,t){const n=t.shift(),o=Sn(n);return Promise.all(e.map(r=>o.run(()=>r(...t))))}function gt(e,t){for(const n of[...e])n(t)}class Ws{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(t,n,o={}){if(!t||typeof n!="function")return()=>{};const r=t;let a;for(;this._deprecatedHooks[t];)a=this._deprecatedHooks[t],t=a.to;if(a&&!o.allowDeprecated){let l=a.message;l||(l=`${r} hook has been deprecated`+(a.to?`, please use ${a.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(l)||(console.warn(l),this._deprecatedMessages.add(l))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let o,r=(...a)=>(typeof o=="function"&&o(),o=void 0,r=void 0,n(...a));return o=this.hook(t,r),o}removeHook(t,n){if(this._hooks[t]){const o=this._hooks[t].indexOf(n);o!==-1&&this._hooks[t].splice(o,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const o=this._hooks[t]||[];delete this._hooks[t];for(const r of o)this.hook(t,r)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=_t(t),o=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of o.splice(0,o.length))r()}}removeHooks(t){const n=_t(t);for(const o in n)this.removeHook(o,n[o])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Ks,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Fs,t,...n)}callHookWith(t,n,...o){const r=this._before||this._after?{name:n,args:o,context:{}}:void 0;this._before&>(this._before,r);const a=t(n in this._hooks?[...this._hooks[n]]:[],o);return a instanceof Promise?a.finally(()=>{this._after&&r&>(this._after,r)}):(this._after&&r&>(this._after,r),a)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function In(){return new Ws}var Gs=Object.create,Tn=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,yt=Object.getOwnPropertyNames,qs=Object.getPrototypeOf,Js=Object.prototype.hasOwnProperty,Xs=(e,t)=>function(){return e&&(t=(0,e[yt(e)[0]])(e=0)),t},Vn=(e,t)=>function(){return t||(0,e[yt(e)[0]])((t={exports:{}}).exports,t),t.exports},Zs=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of yt(t))!Js.call(e,r)&&r!==n&&Tn(e,r,{get:()=>t[r],enumerable:!(o=Ys(t,r))||o.enumerable});return e},Qs=(e,t,n)=>(n=e!=null?Gs(qs(e)):{},Zs(Tn(n,"default",{value:e,enumerable:!0}),e)),b=Xs({"../../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"(){}}),ea=Vn({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){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"},r=["်","ް"],a={"ာ":"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"},l={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"}},i={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(""),d=[".","!","~","*","'","(",")"].join(""),p=function(v,m){var g="-",I="",C="",x=!0,D={},Y,O,j,T,y,S,N,A,W,H,P,E,w,k,R="";if(typeof v!="string")return"";if(typeof m=="string"&&(g=m),N=i.en,A=l.en,typeof m=="object"){Y=m.maintainCase||!1,D=m.custom&&typeof m.custom=="object"?m.custom:D,j=+m.truncate>1&&m.truncate||!1,T=m.uric||!1,y=m.uricNoSlash||!1,S=m.mark||!1,x=!(m.symbols===!1||m.lang===!1),g=m.separator||g,T&&(R+=c),y&&(R+=u),S&&(R+=d),N=m.lang&&i[m.lang]&&x?i[m.lang]:x?i.en:{},A=m.lang&&l[m.lang]?l[m.lang]:m.lang===!1||m.lang===!0?{}:l.en,m.titleCase&&typeof m.titleCase.length=="number"&&Array.prototype.toString.call(m.titleCase)?(m.titleCase.forEach(function($){D[$+""]=$+""}),O=!0):O=!!m.titleCase,m.custom&&typeof m.custom.length=="number"&&Array.prototype.toString.call(m.custom)&&m.custom.forEach(function($){D[$+""]=$+""}),Object.keys(D).forEach(function($){var B;$.length>1?B=new RegExp("\\b"+f($)+"\\b","gi"):B=new RegExp(f($),"gi"),v=v.replace(B,D[$])});for(P in D)R+=P}for(R+=g,R=f(R),v=v.replace(/(^\s+|\s+$)/g,""),w=!1,k=!1,H=0,E=v.length;H<E;H++)P=v[H],_(P,D)?w=!1:A[P]?(P=w&&A[P].match(/[A-Za-z0-9]/)?" "+A[P]:A[P],w=!1):P in o?(H+1<E&&r.indexOf(v[H+1])>=0?(C+=P,P=""):k===!0?(P=a[C]+o[P],C=""):P=w&&o[P].match(/[A-Za-z0-9]/)?" "+o[P]:o[P],w=!1,k=!1):P in a?(C+=P,P="",H===E-1&&(P=a[C]),k=!0):N[P]&&!(T&&c.indexOf(P)!==-1)&&!(y&&u.indexOf(P)!==-1)?(P=w||I.substr(-1).match(/[A-Za-z0-9]/)?g+N[P]:N[P],P+=v[H+1]!==void 0&&v[H+1].match(/[A-Za-z0-9]/)?g:"",w=!0):(k===!0?(P=a[C]+P,C="",k=!1):w&&(/[A-Za-z0-9]/.test(P)||I.substr(-1).match(/A-Za-z0-9]/))&&(P=" "+P),w=!1),I+=P.replace(new RegExp("[^\\w\\s"+R+"_-]","g"),g);return O&&(I=I.replace(/(\w)(\S*)/g,function($,B,Ne){var fn=B.toUpperCase()+(Ne!==null?Ne:"");return Object.keys(D).indexOf(fn.toLowerCase())<0?fn:fn.toLowerCase()})),I=I.replace(/\s+/g,g).replace(new RegExp("\\"+g+"+","g"),g).replace(new RegExp("(^\\"+g+"+|\\"+g+"+$)","g"),""),j&&I.length>j&&(W=I.charAt(j)===g,I=I.slice(0,j),W||(I=I.slice(0,I.lastIndexOf(g)))),!Y&&!O&&(I=I.toLowerCase()),I},h=function(v){return function(m){return p(m,v)}},f=function(v){return v.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},_=function(v,m){for(var g in m)if(m[g]===v)return!0};if(typeof t<"u"&&t.exports)t.exports=p,t.exports.createSlug=h;else if(typeof define<"u"&&define.amd)define([],function(){return p});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=p,n.createSlug=h}catch{}}(e)}}),ta=Vn({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){b(),t.exports=ea()}});b(),b(),b(),b(),b(),b(),b(),b();function na(e){var t;const n=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return n==="index"&&(t=e.__file)!=null&&t.endsWith("index.vue")?"":n}function oa(e){const t=e.__file;if(t)return js(Ms(t,".vue"))}function Cn(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function Et(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Nn(e){var t,n;const o=(t=e.subTree)==null?void 0:t.type,r=Et(e);return r?((n=r==null?void 0:r.types)==null?void 0:n.Fragment)===o:!1}function Fe(e){var t,n,o;const r=na((e==null?void 0:e.type)||{});if(r)return r;if((e==null?void 0:e.root)===e)return"Root";for(const l in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[l]===(e==null?void 0:e.type))return Cn(e,l);for(const l in(o=e.appContext)==null?void 0:o.components)if(e.appContext.components[l]===(e==null?void 0:e.type))return Cn(e,l);return oa((e==null?void 0:e.type)||{})||"Anonymous Component"}function ra(e){var t,n,o;const r=(o=(n=(t=e==null?void 0:e.appContext)==null?void 0:t.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?o:0,a=e===(e==null?void 0:e.root)?"root":e.uid;return`${r}:${a}`}function wt(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function sa(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var We;function aa(e){return We||(We=document.createRange()),We.selectNode(e),We.getBoundingClientRect()}function la(e){const t=sa();if(!e.children)return t;for(let n=0,o=e.children.length;n<o;n++){const r=e.children[n];let a;if(r.component)a=ie(r.component);else if(r.el){const l=r.el;l.nodeType===1||l.getBoundingClientRect?a=l.getBoundingClientRect():l.nodeType===3&&l.data.trim()&&(a=aa(l))}a&&ia(t,a)}return t}function ia(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var Pn={top:0,left:0,right:0,bottom:0,width:0,height:0};function ie(e){const t=e.subTree.el;return typeof window>"u"?Pn:Nn(e)?la(e.subTree):(t==null?void 0:t.nodeType)===1?t==null?void 0:t.getBoundingClientRect():e.subTree.component?ie(e.subTree.component):Pn}b();function bt(e){return Nn(e)?ca(e.subTree):e.subTree?[e.subTree.el]:[]}function ca(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...bt(n.component)):n!=null&&n.el&&t.push(n.el)}),t}var Rn="__vue-devtools-component-inspector__",xn="__vue-devtools-component-inspector__card__",Dn="__vue-devtools-component-inspector__name__",An="__vue-devtools-component-inspector__indicator__",$n={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},ua={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)"},da={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function ge(){return document.getElementById(Rn)}function fa(){return document.getElementById(xn)}function pa(){return document.getElementById(An)}function ha(){return document.getElementById(Dn)}function vt(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function kt(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:Rn,Object.assign(n.style,{...$n,...vt(e.bounds),...e.style});const o=document.createElement("span");o.id=xn,Object.assign(o.style,{...ua,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=Dn,r.innerHTML=`<${e.name}> `;const a=document.createElement("i");return a.id=An,a.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(a.style,da),o.appendChild(r),o.appendChild(a),n.appendChild(o),document.body.appendChild(n),n}function Ot(e){const t=ge(),n=fa(),o=ha(),r=pa();t&&(Object.assign(t.style,{...$n,...vt(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),o.innerHTML=`<${e.name}> `,r.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function ma(e){const t=ie(e);if(!t.width&&!t.height)return;const n=Fe(e);ge()?Ot({bounds:t,name:n}):kt({bounds:t,name:n})}function Ln(){const e=ge();e&&(e.style.display="none")}var St=null;function It(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(St=n,n.vnode.el)){const o=ie(n),r=Fe(n);ge()?Ot({bounds:o,name:r}):kt({bounds:o,name:r})}}}function _a(e,t){if(e.preventDefault(),e.stopPropagation(),St){const n=ra(St);t(n)}}var Ge=null;function ga(){Ln(),window.removeEventListener("mouseover",It),window.removeEventListener("click",Ge,!0),Ge=null}function ya(){return window.addEventListener("mouseover",It),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),_a(n,o=>{window.removeEventListener("click",t,!0),Ge=null,window.removeEventListener("mouseover",It);const r=ge();r&&(r.style.display="none"),e(JSON.stringify({id:o}))})}Ge=t,window.addEventListener("click",t,!0)})}function Ea(e){const t=wt(F.value,e.id);if(t){const[n]=bt(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const o=ie(t),r=document.createElement("div"),a={...vt(o),position:"absolute"};Object.assign(r.style,a),document.body.appendChild(r),r.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(r)},2e3)}setTimeout(()=>{const o=ie(t);if(o.width||o.height){const r=Fe(t),a=ge();a?Ot({...e,name:r,bounds:o}):kt({...e,name:r,bounds:o}),setTimeout(()=>{a&&(a.style.display="none")},1500)}},1200)}}b();var jn;(jn=V).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__!=null||(jn.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function wa(e){let t=0;const n=setInterval(()=>{V.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function ba(){const e=V.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function va(){return new Promise(e=>{function t(){ba(),e(V.__VUE_INSPECTOR__)}V.__VUE_INSPECTOR__?t():wa(()=>{t()})})}b(),b();function ka(e){return!!(e&&e.__v_isReadonly)}function Mn(e){return ka(e)?Mn(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isRef===!0)}function Re(e){const t=e&&e.__v_raw;return t?Re(t):e}var Oa=class{constructor(){this.refEditor=new Sa}set(e,t,n,o){const r=Array.isArray(t)?t:t.split(".");for(;r.length>1;){const i=r.shift();e instanceof Map?e=e.get(i):e instanceof Set?e=Array.from(e.values())[i]:e=e[i],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const a=r[0],l=this.refEditor.get(e)[a];o?o(e,a,n):this.refEditor.isRef(l)?this.refEditor.set(l,n):e[a]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let o=0;o<n.length;o++)if(e instanceof Map?e=e.get(n[o]):e=e[n[o]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const o=Array.isArray(t)?t.slice():t.split("."),r=n?2:1;for(;e&&o.length>r;){const a=o.shift();e=e[a],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,o[0])}createDefaultSetCallback(e){return(t,n,o)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):Re(t)instanceof Map?t.delete(n):Re(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const r=t[e.newKey||n];this.refEditor.isRef(r)?this.refEditor.set(r,o):Re(t)instanceof Map?t.set(e.newKey||n,o):Re(t)instanceof Set?t.add(o):t[e.newKey||n]=o}}}},Sa=class{set(e,t){if(Tt(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(r=>e.add(r));return}const n=Object.keys(t);if(e instanceof Map){const r=new Set(e.keys());n.forEach(a=>{e.set(a,Reflect.get(t,a)),r.delete(a)}),r.forEach(a=>e.delete(a));return}const o=new Set(Object.keys(e));n.forEach(r=>{Reflect.set(e,r,Reflect.get(t,r)),o.delete(r)}),o.forEach(r=>Reflect.deleteProperty(e,r))}}get(e){return Tt(e)?e.value:e}isRef(e){return Tt(e)||Mn(e)}};b(),b(),b();var Ia="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Ta(){if(!vn||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem(Ia);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}b(),b(),b();var Bn;(Bn=V).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS!=null||(Bn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Va=new Proxy(V.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function Ca(e,t){M.timelineLayersState[t.id]=!1,Va.push({...e,descriptorId:t.id,appRecord:Et(t.app)})}var Un;(Un=V).__VUE_DEVTOOLS_KIT_INSPECTOR__!=null||(Un.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Vt=new Proxy(V.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),Hn=_e(()=>{Ee.hooks.callHook("sendInspectorToClient",zn())});function Na(e,t){var n,o;Vt.push({options:e,descriptor:t,treeFilterPlaceholder:(n=e.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(o=e.stateFilterPlaceholder)!=null?o:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:Et(t.app)}),Hn()}function zn(){return Vt.filter(e=>e.descriptor.app===F.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var t;const n=e.descriptor,o=e.options;return{id:o.id,label:o.label,logo:n.logo,icon:`custom-ic-baseline-${(t=o==null?void 0:o.icon)==null?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function Ye(e,t){return Vt.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function Pa(){const e=In();e.hook("addInspector",({inspector:o,plugin:r})=>{Na(o,r.descriptor)});const t=_e(async({inspectorId:o,plugin:r})=>{var a;if(!o||!((a=r==null?void 0:r.descriptor)!=null&&a.app)||M.highPerfModeEnabled)return;const l=Ye(o,r.descriptor.app),i={app:r.descriptor.app,inspectorId:o,filter:(l==null?void 0:l.treeFilter)||"",rootNodes:[]};await new Promise(c=>{e.callHookWith(async u=>{await Promise.all(u.map(d=>d(i))),c()},"getInspectorTree")}),e.callHookWith(async c=>{await Promise.all(c.map(u=>u({inspectorId:o,rootNodes:i.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=_e(async({inspectorId:o,plugin:r})=>{var a;if(!o||!((a=r==null?void 0:r.descriptor)!=null&&a.app)||M.highPerfModeEnabled)return;const l=Ye(o,r.descriptor.app),i={app:r.descriptor.app,inspectorId:o,nodeId:(l==null?void 0:l.selectedNodeId)||"",state:null},c={currentTab:`custom-inspector:${o}`};i.nodeId&&await new Promise(u=>{e.callHookWith(async d=>{await Promise.all(d.map(p=>p(i,c))),u()},"getInspectorState")}),e.callHookWith(async u=>{await Promise.all(u.map(d=>d({inspectorId:o,nodeId:i.nodeId,state:i.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:o,nodeId:r,plugin:a})=>{const l=Ye(o,a.descriptor.app);l&&(l.selectedNodeId=r)}),e.hook("timelineLayerAdded",({options:o,plugin:r})=>{Ca(o,r.descriptor)}),e.hook("timelineEventAdded",({options:o,plugin:r})=>{var a;const l=["performance","component-event","keyboard","mouse"];M.highPerfModeEnabled||!((a=M.timelineLayersState)!=null&&a[r.descriptor.id])&&!l.includes(o.layerId)||e.callHookWith(async i=>{await Promise.all(i.map(c=>c(o)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:o})=>{const r=o.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!r)return null;const a=r.id.toString();return[...r.instanceMap].filter(([l])=>l.split(":")[0]===a).map(([,l])=>l)}),e.hook("getComponentBounds",async({instance:o})=>ie(o)),e.hook("getComponentName",({instance:o})=>Fe(o)),e.hook("componentHighlight",({uid:o})=>{const r=F.value.instanceMap.get(o);r&&ma(r)}),e.hook("componentUnhighlight",()=>{Ln()}),e}var Kn;(Kn=V).__VUE_DEVTOOLS_KIT_APP_RECORDS__!=null||(Kn.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var Fn;(Fn=V).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__!=null||(Fn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var Wn;(Wn=V).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__!=null||(Wn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var Gn;(Gn=V).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__!=null||(Gn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var Yn;(Yn=V).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__!=null||(Yn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var ce="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Ra(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Ta()}}var qn;(qn=V)[ce]!=null||(qn[ce]=Ra());var xa=_e(e=>{Ee.hooks.callHook("devtoolsStateUpdated",{state:e})});_e((e,t)=>{Ee.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var qe=new Proxy(V.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?V.__VUE_DEVTOOLS_KIT_APP_RECORDS__:V.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),F=new Proxy(V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function Jn(){xa({...V[ce],appRecords:qe.value,activeAppRecordId:F.id,tabs:V.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:V.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Da(e){V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,Jn()}function Aa(e){V.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,Jn()}var M=new Proxy(V[ce],{get(e,t){return t==="appRecords"?qe:t==="activeAppRecordId"?F.id:t==="tabs"?V.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?V.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:V[ce][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...V[ce]},e[t]=n,V[ce][t]=n,!0}});function $a(e={}){var t,n,o;const{file:r,host:a,baseUrl:l=window.location.origin,line:i=0,column:c=0}=e;if(r){if(a==="chrome-extension"){const u=r.replace(/\\/g,"\\\\"),d=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${d}__open-in-editor?file=${encodeURI(r)}`).then(p=>{if(!p.ok){const h=`Opening component ${u} failed`;console.log(`%c${h}`,"color:red")}})}else if(M.vitePluginDetected){const u=(o=V.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?o:l;V.__VUE_INSPECTOR__.openInEditor(u,r,i,c)}}}b(),b(),b(),b(),b();var Xn;(Xn=V).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__!=null||(Xn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Ct=new Proxy(V.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Nt(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Pt(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function La(e){var t,n,o;const r=(n=(t=Ct.find(a=>{var l;return a[0].id===e&&!!((l=a[0])!=null&&l.settings)}))==null?void 0:t[0])!=null?n:null;return(o=r==null?void 0:r.settings)!=null?o:null}function Zn(e,t){var n,o,r;const a=Pt(e);if(a){const l=localStorage.getItem(a);if(l)return JSON.parse(l)}if(e){const l=(o=(n=Ct.find(i=>i[0].id===e))==null?void 0:n[0])!=null?o:null;return Nt((r=l==null?void 0:l.settings)!=null?r:{})}return Nt(t)}function ja(e,t){const n=Pt(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Nt(t)))}function Ma(e,t,n){const o=Pt(e),r=localStorage.getItem(o),a=JSON.parse(r||"{}"),l={...a,[t]:n};localStorage.setItem(o,JSON.stringify(l)),Ee.hooks.callHookWith(i=>{i.forEach(c=>c({pluginId:e,key:t,oldValue:a[t],newValue:n,settings:l}))},"setPluginSettings")}b(),b(),b(),b(),b(),b(),b(),b(),b(),b(),b();var Qn,eo,G=(eo=(Qn=V).__VUE_DEVTOOLS_HOOK)!=null?eo:Qn.__VUE_DEVTOOLS_HOOK=In(),Ba={vueAppInit(e){G.hook("app:init",e)},vueAppUnmount(e){G.hook("app:unmount",e)},vueAppConnected(e){G.hook("app:connected",e)},componentAdded(e){return G.hook("component:added",e)},componentEmit(e){return G.hook("component:emit",e)},componentUpdated(e){return G.hook("component:updated",e)},componentRemoved(e){return G.hook("component:removed",e)},setupDevtoolsPlugin(e){G.hook("devtools-plugin:setup",e)},perfStart(e){return G.hook("perf:start",e)},perfEnd(e){return G.hook("perf:end",e)}},to={on:Ba,setupDevToolsPlugin(e,t){return G.callHook("devtools-plugin:setup",e,t)}},Ua=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var t;if(M.highPerfModeEnabled)return;const n=zn().find(o=>o.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(e){const o=[e.appContext.app,e.uid,(t=e.parent)==null?void 0:t.uid,e];G.callHook("component:updated",...o)}else G.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&ja(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){M.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){M.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return M.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){M.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return Zn(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:t})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},Ha=Ua;b(),b(),b(),b();var za="__vue_devtool_undefined__",Ka="__vue_devtool_infinity__",Fa="__vue_devtool_negative_infinity__",Wa="__vue_devtool_nan__";b(),b();var Ga={[za]:"undefined",[Wa]:"NaN",[Ka]:"Infinity",[Fa]:"-Infinity"};Object.entries(Ga).reduce((e,[t,n])=>(e[n]=t,e),{}),b(),b(),b(),b(),b();var no;(no=V).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__!=null||(no.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function oo(e,t){return to.setupDevToolsPlugin(e,t)}function Ya(e,t){const[n,o]=e;if(n.app!==t)return;const r=new Ha({plugin:{setupFn:o,descriptor:n},ctx:Ee});n.packageName==="vuex"&&r.on.editInspectorState(a=>{r.sendInspectorState(a.inspectorId)}),o(r)}function ro(e,t){V.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||M.highPerfModeEnabled&&!(t!=null&&t.inspectingComponent)||(V.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Ct.forEach(n=>{Ya(n,e)}))}b(),b();var xe="__VUE_DEVTOOLS_ROUTER__",ye="__VUE_DEVTOOLS_ROUTER_INFO__",so;(so=V)[ye]!=null||(so[ye]={currentRoute:null,routes:[]});var ao;(ao=V)[xe]!=null||(ao[xe]={}),new Proxy(V[ye],{get(e,t){return V[ye][t]}}),new Proxy(V[xe],{get(e,t){if(t==="value")return V[xe]}});function qa(e){const t=new Map;return((e==null?void 0:e.getRoutes())||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Rt(e){return e.map(t=>{let{path:n,name:o,children:r,meta:a}=t;return r!=null&&r.length&&(r=Rt(r)),{path:n,name:o,children:r,meta:a}})}function Ja(e){if(e){const{fullPath:t,hash:n,href:o,path:r,name:a,matched:l,params:i,query:c}=e;return{fullPath:t,hash:n,href:o,path:r,name:a,params:i,query:c,matched:Rt(l)}}return e}function Xa(e,t){function n(){var o;const r=(o=e.app)==null?void 0:o.config.globalProperties.$router,a=Ja(r==null?void 0:r.currentRoute.value),l=Rt(qa(r)),i=console.warn;console.warn=()=>{},V[ye]={currentRoute:a?On(a):{},routes:On(l)},V[xe]=r,console.warn=i}n(),to.on.componentUpdated(_e(()=>{var o;((o=t.value)==null?void 0:o.app)===e.app&&(n(),!M.highPerfModeEnabled&&Ee.hooks.callHook("routerInfoUpdated",{state:V[ye]}))},200))}function Za(e){return{async getInspectorTree(t){const n={...t,app:F.value.app,rootNodes:[]};return await new Promise(o=>{e.callHookWith(async r=>{await Promise.all(r.map(a=>a(n))),o()},"getInspectorTree")}),n.rootNodes},async getInspectorState(t){const n={...t,app:F.value.app,state:null},o={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(r=>{e.callHookWith(async a=>{await Promise.all(a.map(l=>l(n,o))),r()},"getInspectorState")}),n.state},editInspectorState(t){const n=new Oa,o={...t,app:F.value.app,set:(r,a=t.path,l=t.state.value,i)=>{n.set(r,a,l,i||n.createDefaultSetCallback(t.state))}};e.callHookWith(r=>{r.forEach(a=>a(o))},"editInspectorState")},sendInspectorState(t){const n=Ye(t);e.callHook("sendInspectorState",{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return ya()},cancelInspectComponentInspector(){return ga()},getComponentRenderCode(t){const n=wt(F.value,t);if(n)return typeof(n==null?void 0:n.type)!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return Ea({id:t})},openInEditor:$a,getVueInspector:va,toggleApp(t,n){const o=qe.value.find(r=>r.id===t);o&&(Aa(t),Da(o),Xa(o,F),Hn(),ro(o.app,n))},inspectDOM(t){const n=wt(F.value,t);if(n){const[o]=bt(n);o&&(V.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=o)}},updatePluginSettings(t,n,o){Ma(t,n,o)},getPluginSettings(t){return{options:La(t),values:Zn(t)}}}}b();var lo;(lo=V).__VUE_DEVTOOLS_ENV__!=null||(lo.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var io=Pa(),co;(co=V).__VUE_DEVTOOLS_KIT_CONTEXT__!=null||(co.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:io,get state(){return{...M,activeAppRecordId:F.id,activeAppRecord:F.value,appRecords:qe.value}},api:Za(io)});var Ee=V.__VUE_DEVTOOLS_KIT_CONTEXT__;b(),Qs(ta());var uo;(uo=V).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__!=null||(uo.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),b(),b();function Qa(e){M.highPerfModeEnabled=e??!M.highPerfModeEnabled,!e&&F.value&&ro(F.value.app)}b(),b(),b();function el(e){M.devtoolsClientDetected={...M.devtoolsClientDetected,...e};const t=Object.values(M.devtoolsClientDetected).some(Boolean);Qa(!t)}var fo;(fo=V).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__!=null||(fo.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=el),b(),b(),b(),b(),b(),b(),b();var tl=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},po=class{constructor(e){this.generateIdentifier=e,this.kv=new tl}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},nl=class extends po{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};b(),b();function ol(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function rl(e,t){const n=ol(e);if("find"in n)return n.find(t);const o=n;for(let r=0;r<o.length;r++){const a=o[r];if(t(a))return a}}function we(e,t){Object.entries(e).forEach(([n,o])=>t(o,n))}function Je(e,t){return e.indexOf(t)!==-1}function ho(e,t){for(let n=0;n<e.length;n++){const o=e[n];if(t(o))return o}}var sl=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return rl(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};b(),b();var al=e=>Object.prototype.toString.call(e).slice(8,-1),mo=e=>typeof e>"u",ll=e=>e===null,De=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,xt=e=>De(e)&&Object.keys(e).length===0,se=e=>Array.isArray(e),il=e=>typeof e=="string",cl=e=>typeof e=="number"&&!isNaN(e),ul=e=>typeof e=="boolean",dl=e=>e instanceof RegExp,Ae=e=>e instanceof Map,$e=e=>e instanceof Set,_o=e=>al(e)==="Symbol",fl=e=>e instanceof Date&&!isNaN(e.valueOf()),pl=e=>e instanceof Error,go=e=>typeof e=="number"&&isNaN(e),hl=e=>ul(e)||ll(e)||mo(e)||cl(e)||il(e)||_o(e),ml=e=>typeof e=="bigint",_l=e=>e===1/0||e===-1/0,gl=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),yl=e=>e instanceof URL;b();var yo=e=>e.replace(/\./g,"\\."),Dt=e=>e.map(String).map(yo).join("."),Le=e=>{const t=[];let n="";for(let r=0;r<e.length;r++){let a=e.charAt(r);if(a==="\\"&&e.charAt(r+1)==="."){n+=".",r++;continue}if(a==="."){t.push(n),n="";continue}n+=a}const o=n;return t.push(o),t};b();function Q(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Eo=[Q(mo,"undefined",()=>null,()=>{}),Q(ml,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),Q(fl,"Date",e=>e.toISOString(),e=>new Date(e)),Q(pl,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(o=>{n[o]=e[o]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(o=>{n[o]=e[o]}),n}),Q(dl,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),Q($e,"set",e=>[...e.values()],e=>new Set(e)),Q(Ae,"map",e=>[...e.entries()],e=>new Map(e)),Q(e=>go(e)||_l(e),"number",e=>go(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Q(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Q(yl,"URL",e=>e.toString(),e=>new URL(e))];function Xe(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var wo=Xe((e,t)=>_o(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),El=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),bo=Xe(gl,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=El[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function vo(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var ko=Xe(vo,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const o={};return n.forEach(r=>{o[r]=e[r]}),o},(e,t,n)=>{const o=n.classRegistry.getValue(t[1]);if(!o)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(o.prototype),e)}),Oo=Xe((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),wl=[ko,wo,Oo,bo],So=(e,t)=>{const n=ho(wl,r=>r.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const o=ho(Eo,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},Io={};Eo.forEach(e=>{Io[e.annotation]=e});var bl=(e,t,n)=>{if(se(t))switch(t[0]){case"symbol":return wo.untransform(e,t,n);case"class":return ko.untransform(e,t,n);case"custom":return Oo.untransform(e,t,n);case"typed-array":return bo.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const o=Io[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}};b();var be=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function To(e){if(Je(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Je(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Je(e,"constructor"))throw new Error("constructor is not allowed as a property")}var vl=(e,t)=>{To(t);for(let n=0;n<t.length;n++){const o=t[n];if($e(e))e=be(e,+o);else if(Ae(e)){const r=+o,a=+t[++n]==0?"key":"value",l=be(e,r);switch(a){case"key":e=l;break;case"value":e=e.get(l);break}}else e=e[o]}return e},At=(e,t,n)=>{if(To(t),t.length===0)return n(e);let o=e;for(let a=0;a<t.length-1;a++){const l=t[a];if(se(o)){const i=+l;o=o[i]}else if(De(o))o=o[l];else if($e(o)){const i=+l;o=be(o,i)}else if(Ae(o)){if(a===t.length-2)break;const i=+l,c=+t[++a]==0?"key":"value",u=be(o,i);switch(c){case"key":o=u;break;case"value":o=o.get(u);break}}}const r=t[t.length-1];if(se(o)?o[+r]=n(o[+r]):De(o)&&(o[r]=n(o[r])),$e(o)){const a=be(o,+r),l=n(a);a!==l&&(o.delete(a),o.add(l))}if(Ae(o)){const a=+t[t.length-2],l=be(o,a);switch(+r==0?"key":"value"){case"key":{const i=n(l);o.set(i,o.get(l)),i!==l&&o.delete(l);break}case"value":{o.set(l,n(o.get(l)));break}}}return e};function $t(e,t,n=[]){if(!e)return;if(!se(e)){we(e,(a,l)=>$t(a,t,[...n,...Le(l)]));return}const[o,r]=e;r&&we(r,(a,l)=>{$t(a,t,[...n,...Le(l)])}),t(o,n)}function kl(e,t,n){return $t(t,(o,r)=>{e=At(e,r,a=>bl(a,o,n))}),e}function Ol(e,t){function n(o,r){const a=vl(e,Le(r));o.map(Le).forEach(l=>{e=At(e,l,()=>a)})}if(se(t)){const[o,r]=t;o.forEach(a=>{e=At(e,Le(a),()=>e)}),r&&we(r,n)}else we(t,n);return e}var Sl=(e,t)=>De(e)||se(e)||Ae(e)||$e(e)||vo(e,t);function Il(e,t,n){const o=n.get(e);o?o.push(t):n.set(e,[t])}function Tl(e,t){const n={};let o;return e.forEach(r=>{if(r.length<=1)return;t||(r=r.map(i=>i.map(String)).sort((i,c)=>i.length-c.length));const[a,...l]=r;a.length===0?o=l.map(Dt):n[Dt(a)]=l.map(Dt)}),o?xt(n)?[o]:[o,n]:xt(n)?void 0:n}var Vo=(e,t,n,o,r=[],a=[],l=new Map)=>{var i;const c=hl(e);if(!c){Il(e,r,t);const _=l.get(e);if(_)return o?{transformedValue:null}:_}if(!Sl(e,n)){const _=So(e,n),v=_?{transformedValue:_.value,annotations:[_.type]}:{transformedValue:e};return c||l.set(e,v),v}if(Je(a,e))return{transformedValue:null};const u=So(e,n),d=(i=u==null?void 0:u.value)!=null?i:e,p=se(d)?[]:{},h={};we(d,(_,v)=>{if(v==="__proto__"||v==="constructor"||v==="prototype")throw new Error(`Detected property ${v}. This is a prototype pollution risk, please remove it from your object.`);const m=Vo(_,t,n,o,[...r,v],[...a,e],l);p[v]=m.transformedValue,se(m.annotations)?h[v]=m.annotations:De(m.annotations)&&we(m.annotations,(g,I)=>{h[yo(v)+"."+I]=g})});const f=xt(h)?{transformedValue:p,annotations:u?[u.type]:void 0}:{transformedValue:p,annotations:u?[u.type,h]:h};return c||l.set(e,f),f};b(),b();function Co(e){return Object.prototype.toString.call(e).slice(8,-1)}function No(e){return Co(e)==="Array"}function Vl(e){if(Co(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Cl(e,t,n,o,r){const a={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";a==="enumerable"&&(e[t]=n),r&&a==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function Lt(e,t={}){if(No(e))return e.map(r=>Lt(r,t));if(!Vl(e))return e;const n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...n,...o].reduce((r,a)=>{if(No(t.props)&&!t.props.includes(a))return r;const l=e[a],i=Lt(l,t);return Cl(r,a,i,e,t.nonenumerable),r},{})}var L=class{constructor({dedupe:e=!1}={}){this.classRegistry=new nl,this.symbolRegistry=new po(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new sl,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=Vo(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta={...o.meta,values:n.annotations});const r=Tl(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){const{json:t,meta:n}=e;let o=Lt(t);return n!=null&&n.values&&(o=kl(o,n.values,this)),n!=null&&n.referentialEqualities&&(o=Ol(o,n.referentialEqualities)),o}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};L.defaultInstance=new L,L.serialize=L.defaultInstance.serialize.bind(L.defaultInstance),L.deserialize=L.defaultInstance.deserialize.bind(L.defaultInstance),L.stringify=L.defaultInstance.stringify.bind(L.defaultInstance),L.parse=L.defaultInstance.parse.bind(L.defaultInstance),L.registerClass=L.defaultInstance.registerClass.bind(L.defaultInstance),L.registerSymbol=L.defaultInstance.registerSymbol.bind(L.defaultInstance),L.registerCustom=L.defaultInstance.registerCustom.bind(L.defaultInstance),L.allowErrorProps=L.defaultInstance.allowErrorProps.bind(L.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 Po;(Po=V).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__!=null||(Po.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var Ro;(Ro=V).__VUE_DEVTOOLS_KIT_RPC_CLIENT__!=null||(Ro.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var xo;(xo=V).__VUE_DEVTOOLS_KIT_RPC_SERVER__!=null||(xo.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var Do;(Do=V).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__!=null||(Do.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var Ao;(Ao=V).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__!=null||(Ao.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var $o;($o=V).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__!=null||($o.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),b(),b(),b(),b(),b(),b(),b();/*!
|
|
2
2
|
* pinia v3.0.3
|
|
3
3
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/let
|
|
6
|
-
${
|
|
7
|
-
Only state can be modified.`);
|
|
5
|
+
*/let je;const Me=e=>je=e,Lo=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ue(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ee;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ee||(ee={}));const ae=typeof window<"u",jo=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 Nl(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function jt(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){Uo(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function Mo(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Ze(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const t=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});e.dispatchEvent(t)}}const Qe=typeof navigator=="object"?navigator:{userAgent:""},Bo=/Macintosh/.test(Qe.userAgent)&&/AppleWebKit/.test(Qe.userAgent)&&!/Safari/.test(Qe.userAgent),Uo=ae?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Bo?Pl:"msSaveOrOpenBlob"in Qe?Rl:xl:()=>{};function Pl(e,t="download",n){const o=document.createElement("a");o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?Mo(o.href)?jt(e,t,n):(o.target="_blank",Ze(o)):Ze(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Ze(o)},0))}function Rl(e,t="download",n){if(typeof e=="string")if(Mo(e))jt(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){Ze(o)})}else navigator.msSaveOrOpenBlob(Nl(e,n),t)}function xl(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return jt(e,t,n);const r=e.type==="application/octet-stream",a=/constructor/i.test(String(jo.HTMLElement))||"safari"in jo,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||r&&a||Bo)&&typeof FileReader<"u"){const i=new FileReader;i.onloadend=function(){let c=i.result;if(typeof c!="string")throw o=null,new Error("Wrong reader.result type");c=l?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=c:location.assign(c),o=null},i.readAsDataURL(e)}else{const i=URL.createObjectURL(e);o?o.location.assign(i):location.href=i,o=null,setTimeout(function(){URL.revokeObjectURL(i)},4e4)}}function U(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function Mt(e){return"_a"in e&&"install"in e}function Ho(){if(!("clipboard"in navigator))return U("Your browser doesn't support the Clipboard API","error"),!0}function zo(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(U('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Dl(e){if(!Ho())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),U("Global state copied to clipboard.")}catch(t){if(zo(t))return;U("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Al(e){if(!Ho())try{Ko(e,JSON.parse(await navigator.clipboard.readText())),U("Global state pasted from clipboard.")}catch(t){if(zo(t))return;U("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function $l(e){try{Uo(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){U("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let te;function Ll(){te||(te=document.createElement("input"),te.type="file",te.accept=".json");function e(){return new Promise((t,n)=>{te.onchange=async()=>{const o=te.files;if(!o)return t(null);const r=o.item(0);return t(r?{text:await r.text(),file:r}:null)},te.oncancel=()=>t(null),te.onerror=n,te.click()})}return e}async function jl(e){try{const t=await Ll()();if(!t)return;const{text:n,file:o}=t;Ko(e,JSON.parse(n)),U(`Global state imported from "${o.name}".`)}catch(t){U("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Ko(e,t){for(const n in t){const o=e.state.value[n];o?Object.assign(o,t[n]):e.state.value[n]=t[n]}}function Z(e){return{_custom:{display:e}}}const Fo="🍍 Pinia (root)",et="_root";function Ml(e){return Mt(e)?{id:et,label:Fo}:{id:e.$id,label:e.$id}}function Bl(e){if(Mt(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(r=>({editable:!0,key:r,value:e.state.value[r]})),getters:n.filter(r=>o.get(r)._getters).map(r=>{const a=o.get(r);return{editable:!1,key:r,value:a._getters.reduce((l,i)=>(l[i]=a[i],l),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Ul(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Z(e.type),key:Z(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Hl(e){switch(e){case ee.direct:return"mutation";case ee.patchFunction:return"$patch";case ee.patchObject:return"$patch";default:return"unknown"}}let ve=!0;const tt=[],de="pinia:mutations",z="pinia",{assign:zl}=Object,nt=e=>"🍍 "+e;function Kl(e,t){oo({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:tt,app:e},n=>{typeof n.now!="function"&&U("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:de,label:"Pinia 🍍",color:15064968}),n.addInspector({id:z,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Dl(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Al(t),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{$l(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await jl(t),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 r=t._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 a=o.componentInstance.proxy._pStores;Object.values(a).forEach(l=>{o.instanceData.state.push({type:nt(l.$id),key:"state",editable:!0,value:l._isOptionsAPI?{_custom:{value:s.toRaw(l.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>l.$reset()}]}}:Object.keys(l.$state).reduce((i,c)=>(i[c]=l.$state[c],i),{})}),l._getters&&l._getters.length&&o.instanceData.state.push({type:nt(l.$id),key:"getters",editable:!1,value:l._getters.reduce((i,c)=>{try{i[c]=l[c]}catch(u){i[c]=u}return i},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===z){let r=[t];r=r.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?r.filter(a=>"$id"in a?a.$id.toLowerCase().includes(o.filter.toLowerCase()):Fo.toLowerCase().includes(o.filter.toLowerCase())):r).map(Ml)}}),globalThis.$pinia=t,n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===z){const r=o.nodeId===et?t:t._s.get(o.nodeId);if(!r)return;r&&(o.nodeId!==et&&(globalThis.$store=s.toRaw(r)),o.state=Bl(r))}}),n.on.editInspectorState(o=>{if(o.app===e&&o.inspectorId===z){const r=o.nodeId===et?t:t._s.get(o.nodeId);if(!r)return U(`store "${o.nodeId}" not found`,"error");const{path:a}=o;Mt(r)?a.unshift("state"):(a.length!==1||!r._customProperties.has(a[0])||a[0]in r.$state)&&a.unshift("$state"),ve=!1,o.set(r,a,o.state.value),ve=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("🍍")){const r=o.type.replace(/^🍍\s*/,""),a=t._s.get(r);if(!a)return U(`store "${r}" not found`,"error");const{path:l}=o;if(l[0]!=="state")return U(`Invalid path for store "${r}":
|
|
6
|
+
${l}
|
|
7
|
+
Only state can be modified.`);l[0]="$state",ve=!1,o.set(a,l,o.state.value),ve=!0}})})}function Fl(e,t){tt.includes(nt(t.$id))||tt.push(nt(t.$id)),oo({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:tt,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const o=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:l,onError:i,name:c,args:u})=>{const d=Wo++;n.addTimelineEvent({layerId:de,event:{time:o(),title:"🛫 "+c,subtitle:"start",data:{store:Z(t.$id),action:Z(c),args:u},groupId:d}}),l(p=>{le=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),title:"🛬 "+c,subtitle:"end",data:{store:Z(t.$id),action:Z(c),args:u,result:p},groupId:d}})}),i(p=>{le=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:Z(t.$id),action:Z(c),args:u,error:p},groupId:d}})})},!0),t._customProperties.forEach(l=>{s.watch(()=>s.unref(t[l]),(i,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(z),ve&&n.addTimelineEvent({layerId:de,event:{time:o(),title:"Change",subtitle:l,data:{newValue:i,oldValue:c},groupId:le}})},{deep:!0})}),t.$subscribe(({events:l,type:i},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(z),!ve)return;const u={time:o(),title:Hl(i),data:zl({store:Z(t.$id)},Ul(l)),groupId:le};i===ee.patchFunction?u.subtitle="⤵️":i===ee.patchObject?u.subtitle="🧩":l&&!Array.isArray(l)&&(u.subtitle=l.type),l&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:l}}),n.addTimelineEvent({layerId:de,event:u})},{detached:!0,flush:"sync"});const r=t._hotUpdate;t._hotUpdate=s.markRaw(l=>{r(l),n.addTimelineEvent({layerId:de,event:{time:o(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:Z(t.$id),info:Z("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z)});const{$dispose:a}=t;t.$dispose=()=>{a(),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&U(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&U(`"${t.$id}" store installed 🆕`)})}let Wo=0,le;function Go(e,t,n){const o=t.reduce((r,a)=>(r[a]=s.toRaw(e)[a],r),{});for(const r in o)e[r]=function(){const a=Wo,l=n?new Proxy(e,{get(...c){return le=a,Reflect.get(...c)},set(...c){return le=a,Reflect.set(...c)}}):e;le=a;const i=o[r].apply(l,arguments);return le=void 0,i}}function Wl({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){Go(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;s.toRaw(t)._hotUpdate=function(r){o.apply(this,arguments),Go(t,Object.keys(r._hmrPayload.actions),!!t._isOptionsAPI)}}Fl(e,t)}}function Gl(){const e=s.effectScope(!0),t=e.run(()=>s.ref({}));let n=[],o=[];const r=s.markRaw({install(a){Me(r),r._a=a,a.provide(Lo,r),a.config.globalProperties.$pinia=r,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ae&&Kl(a,r),o.forEach(l=>n.push(l)),o=[]},use(a){return this._a?n.push(a):o.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ae&&typeof Proxy<"u"&&r.use(Wl),r}function Yo(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const r=e[n];ue(r)&&ue(o)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=Yo(r,o):e[n]=o}return e}const qo=()=>{};function Jo(e,t,n,o=qo){e.push(t);const r=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&s.getCurrentScope()&&s.onScopeDispose(r),r}function ke(e,...t){e.slice().forEach(n=>{n(...t)})}const Yl=e=>e(),Xo=Symbol(),Bt=Symbol();function Ut(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];ue(r)&&ue(o)&&e.hasOwnProperty(n)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=Ut(r,o):e[n]=o}return e}const ql=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Jl(e){return!ue(e)||!Object.prototype.hasOwnProperty.call(e,ql)}const{assign:J}=Object;function Zo(e){return!!(s.isRef(e)&&e.effect)}function Qo(e,t,n,o){const{state:r,actions:a,getters:l}=t,i=n.state.value[e];let c;function u(){!i&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=r?r():{});const d=process.env.NODE_ENV!=="production"&&o?s.toRefs(s.ref(r?r():{}).value):s.toRefs(n.state.value[e]);return J(d,a,Object.keys(l||{}).reduce((p,h)=>(process.env.NODE_ENV!=="production"&&h in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${h}" in store "${e}".`),p[h]=s.markRaw(s.computed(()=>{Me(n);const f=n._s.get(e);return l[h].call(f,f)})),p),{}))}return c=Ht(e,u,t,n,o,!0),c}function Ht(e,t,n={},o,r,a){let l;const i=J({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?f=T:u==!1&&!O._hotUpdating&&(Array.isArray(f)?f.push(T):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,d,p=[],h=[],f;const _=o.state.value[e];!a&&!_&&(process.env.NODE_ENV==="production"||!r)&&(o.state.value[e]={});const v=s.ref({});let m;function g(T){let y;u=d=!1,process.env.NODE_ENV!=="production"&&(f=[]),typeof T=="function"?(T(o.state.value[e]),y={type:ee.patchFunction,storeId:e,events:f}):(Ut(o.state.value[e],T),y={type:ee.patchObject,payload:T,storeId:e,events:f});const S=m=Symbol();s.nextTick().then(()=>{m===S&&(u=!0)}),d=!0,ke(p,y,o.state.value[e])}const I=a?function(){const{state:T}=n,y=T?T():{};this.$patch(S=>{J(S,y)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:qo;function C(){l.stop(),p=[],h=[],o._s.delete(e)}const x=(T,y="")=>{if(Xo in T)return T[Bt]=y,T;const S=function(){Me(o);const N=Array.from(arguments),A=[],W=[];function H(w){A.push(w)}function P(w){W.push(w)}ke(h,{args:N,name:S[Bt],store:O,after:H,onError:P});let E;try{E=T.apply(this&&this.$id===e?this:O,N)}catch(w){throw ke(W,w),w}return E instanceof Promise?E.then(w=>(ke(A,w),w)).catch(w=>(ke(W,w),Promise.reject(w))):(ke(A,E),E)};return S[Xo]=!0,S[Bt]=y,S},D=s.markRaw({actions:{},getters:{},state:[],hotState:v}),Y={_p:o,$id:e,$onAction:Jo.bind(null,h),$patch:g,$reset:I,$subscribe(T,y={}){const S=Jo(p,T,y.detached,()=>N()),N=l.run(()=>s.watch(()=>o.state.value[e],A=>{(y.flush==="sync"?d:u)&&T({storeId:e,type:ee.direct,events:f},A)},J({},c,y)));return S},$dispose:C},O=s.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ae?J({_hmrPayload:D,_customProperties:s.markRaw(new Set)},Y):Y);o._s.set(e,O);const j=(o._a&&o._a.runWithContext||Yl)(()=>o._e.run(()=>(l=s.effectScope()).run(()=>t({action:x}))));for(const T in j){const y=j[T];if(s.isRef(y)&&!Zo(y)||s.isReactive(y))process.env.NODE_ENV!=="production"&&r?v.value[T]=s.toRef(j,T):a||(_&&Jl(y)&&(s.isRef(y)?y.value=_[T]:Ut(y,_[T])),o.state.value[e][T]=y),process.env.NODE_ENV!=="production"&&D.state.push(T);else if(typeof y=="function"){const S=process.env.NODE_ENV!=="production"&&r?y:x(y,T);j[T]=S,process.env.NODE_ENV!=="production"&&(D.actions[T]=y),i.actions[T]=y}else process.env.NODE_ENV!=="production"&&Zo(y)&&(D.getters[T]=a?n.getters[T]:y,ae&&(j._getters||(j._getters=s.markRaw([]))).push(T))}if(J(O,j),J(s.toRaw(O),j),Object.defineProperty(O,"$state",{get:()=>process.env.NODE_ENV!=="production"&&r?v.value:o.state.value[e],set:T=>{if(process.env.NODE_ENV!=="production"&&r)throw new Error("cannot set hotState");g(y=>{J(y,T)})}}),process.env.NODE_ENV!=="production"&&(O._hotUpdate=s.markRaw(T=>{O._hotUpdating=!0,T._hmrPayload.state.forEach(y=>{if(y in O.$state){const S=T.$state[y],N=O.$state[y];typeof S=="object"&&ue(S)&&ue(N)?Yo(S,N):T.$state[y]=N}O[y]=s.toRef(T.$state,y)}),Object.keys(O.$state).forEach(y=>{y in T.$state||delete O[y]}),u=!1,d=!1,o.state.value[e]=s.toRef(T._hmrPayload,"hotState"),d=!0,s.nextTick().then(()=>{u=!0});for(const y in T._hmrPayload.actions){const S=T[y];O[y]=x(S,y)}for(const y in T._hmrPayload.getters){const S=T._hmrPayload.getters[y],N=a?s.computed(()=>(Me(o),S.call(O,O))):S;O[y]=N}Object.keys(O._hmrPayload.getters).forEach(y=>{y in T._hmrPayload.getters||delete O[y]}),Object.keys(O._hmrPayload.actions).forEach(y=>{y in T._hmrPayload.actions||delete O[y]}),O._hmrPayload=T._hmrPayload,O._getters=T._getters,O._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ae){const T={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(y=>{Object.defineProperty(O,y,J({value:O[y]},T))})}return o._p.forEach(T=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ae){const y=l.run(()=>T({store:O,app:o._a,pinia:o,options:i}));Object.keys(y||{}).forEach(S=>O._customProperties.add(S)),J(O,y)}else J(O,l.run(()=>T({store:O,app:o._a,pinia:o,options:i})))}),process.env.NODE_ENV!=="production"&&O.$state&&typeof O.$state=="object"&&typeof O.$state.constructor=="function"&&!O.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
8
8
|
state: () => new MyClass()
|
|
9
|
-
Found in store "${O.$id}".`),_&&
|
|
9
|
+
Found in store "${O.$id}".`),_&&a&&n.hydrate&&n.hydrate(O.$state,_),u=!0,d=!0,O}/*! #__NO_SIDE_EFFECTS__ */function Xl(e,t,n){let o;const r=typeof t=="function";o=r?n:t;function a(l,i){const c=s.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&je&&je._testing?null:l)||(c?s.inject(Lo,null):null),l&&Me(l),process.env.NODE_ENV!=="production"&&!je)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
10
10
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
11
|
-
This will fail in production.`);a=Le,a._s.has(e)||(r?Ut(e,t,o,a):Zo(e,o,a),process.env.NODE_ENV!=="production"&&(i._pinia=a));const u=a._s.get(e);if(process.env.NODE_ENV!=="production"&&l){const d="__hot:"+e,h=r?Ut(d,t,o,a,!0):Zo(d,q({},o),a,!0);l._hotUpdate(h),delete a.state.value[d],a._s.delete(d)}if(process.env.NODE_ENV!=="production"&&ae){const d=s.getCurrentInstance();if(d&&d.proxy&&!l){const h=d.proxy,f="_pStores"in h?h._pStores:h._pStores={};f[e]=u}}return u}return i.$id=e,i}const Zi=Xi("data",()=>{const e=s.ref([]),t=s.ref({});return{records:e,record:t}});function Qo(e){const t=s.ref();return s.onMounted(async()=>{var n,o,r;e||(e=s.inject("$registry"));let i;try{i=Zi()}catch{throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable")}if(t.value=new Ss(e,i),!e||!e.router)return;const a=e.router.currentRoute.value,l=(n=a.params.records)==null?void 0:n.toString().toLowerCase(),c=(o=a.params.record)==null?void 0:o.toString().toLowerCase();if(!l&&!c)return;const u=await((r=e.getMeta)==null?void 0:r.call(e,l));u&&(e.addDoctype(u),t.value.setup(u),l&&(c?await t.value.getRecord(u,c):await t.value.getRecords(u)),t.value.runAction(u,"LOAD",c?[c]:void 0))}),{stonecrop:t}}H(class ct{constructor(t,n){if(H(this,"name"),H(this,"registry"),H(this,"router"),H(this,"getMeta"),ct._root)return ct._root;ct._root=this,this.name="Registry",this.registry={},this.router=t,this.getMeta=n}addDoctype(t){t.doctype in Object.keys(this.registry)||(this.registry[t.slug]=t),t.component&&this.router&&!this.router.hasRoute(t.doctype)&&this.router.addRoute({path:`/${t.slug}`,name:t.slug,component:t.component})}},"_root");function Qi(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var Oe=Promise.resolve();function er(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function el(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function zt(){return Math.random().toString(36).substring(2)}var Ht=0;function Me(){var e=Date.now()*1e3;return e<=Ht&&(e=Ht+1),Ht=e,e}var tl=Me,nl="native";function ol(e){var t={time:Me(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function rl(e){e.bc.close(),e.subFns=[]}function sl(e,t){try{return e.bc.postMessage(t,!1),Oe}catch(n){return Promise.reject(n)}}function al(e,t){e.messagesCallback=t}function il(){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 ll(){return 150}var cl={create:ol,close:rl,onMessage:al,postMessage:sl,canBeUsed:il,type:nl,averageResponseTime:ll,microSeconds:tl};class tr{constructor(t){H(this,"ttl"),H(this,"map",new Map),H(this,"_to",!1),this.ttl=t}has(t){return this.map.has(t)}add(t){this.map.set(t,nr()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,ul(this)},0))}clear(){this.map.clear()}}function ul(e){const t=nr()-e.ttl,n=e.map[Symbol.iterator]();for(;;){const o=n.next().value;if(!o)return;const r=o[0];if(o[1]<t)e.map.delete(r);else return}}function nr(){return Date.now()}function Kt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var dl=Me,fl="pubkey.broadcast-channel-0-",te="messages",nt={durability:"relaxed"},pl="idb";function or(){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 Ft(e){e.commit&&e.commit()}function hl(e){var t=or(),n=fl+e,o=t.open(n);return o.onupgradeneeded=function(r){var i=r.target.result;i.createObjectStore(te,{keyPath:"id",autoIncrement:!0})},new Promise(function(r,i){o.onerror=function(a){return i(a)},o.onsuccess=function(){r(o.result)}})}function ml(e,t,n){var o=Date.now(),r={uuid:t,time:o,data:n},i=e.transaction([te],"readwrite",nt);return new Promise(function(a,l){i.oncomplete=function(){return a()},i.onerror=function(u){return l(u)};var c=i.objectStore(te);c.add(r),Ft(i)})}function _l(e,t){var n=e.transaction(te,"readonly",nt),o=n.objectStore(te),r=[],i=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var a=o.getAll(i);return new Promise(function(c,u){a.onerror=function(d){return u(d)},a.onsuccess=function(d){c(d.target.result)}})}function l(){try{return i=IDBKeyRange.bound(t+1,1/0),o.openCursor(i)}catch{return o.openCursor()}}return new Promise(function(c,u){var d=l();d.onerror=function(h){return u(h)},d.onsuccess=function(h){var f=h.target.result;f?f.value.id<t+1?f.continue(t+1):(r.push(f.value),f.continue()):(Ft(n),c(r))}})}function gl(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(te,"readwrite",nt),o=n.objectStore(te);return Promise.all(t.map(function(r){var i=o.delete(r);return new Promise(function(a){i.onsuccess=function(){return a()}})}))}function yl(e,t){var n=Date.now()-t,o=e.transaction(te,"readonly",nt),r=o.objectStore(te),i=[];return new Promise(function(a){r.openCursor().onsuccess=function(l){var c=l.target.result;if(c){var u=c.value;u.time<n?(i.push(u),c.continue()):(Ft(o),a(i))}else a(i)}})}function El(e){return yl(e.db,e.options.idb.ttl).then(function(t){return gl(e,t.map(function(n){return n.id}))})}function wl(e,t){return t=Kt(t),hl(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:zt(),eMIs:new tr(t.idb.ttl*2),writeBlockPromise:Oe,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},rr(o),o})}function rr(e){e.closed||sr(e).then(function(){return er(e.options.idb.fallbackInterval)}).then(function(){return rr(e)})}function bl(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function sr(e){return e.closed||!e.messagesCallback?Oe:_l(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(o){return!!o}).map(function(o){return o.id>e.lastCursorId&&(e.lastCursorId=o.id),o}).filter(function(o){return bl(o,e)}).sort(function(o,r){return o.time-r.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),Oe})}function vl(e){e.closed=!0,e.db.close()}function kl(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return ml(e.db,e.uuid,t)}).then(function(){el(0,10)===0&&El(e)}),e.writeBlockPromise}function Ol(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,sr(e)}function Sl(){return!!or()}function Il(e){return e.idb.fallbackInterval*2}var Tl={create:wl,close:vl,onMessage:Ol,postMessage:kl,canBeUsed:Sl,type:pl,averageResponseTime:Il,microSeconds:dl},Vl=Me,Cl="pubkey.broadcastChannel-",Nl="localstorage";function ar(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function ir(e){return Cl+e}function Pl(e,t){return new Promise(function(n){er().then(function(){var o=ir(e.channelName),r={token:zt(),time:Date.now(),data:t,uuid:e.uuid},i=JSON.stringify(r);ar().setItem(o,i);var a=document.createEvent("Event");a.initEvent("storage",!0,!0),a.key=o,a.newValue=i,window.dispatchEvent(a),n()})})}function Rl(e,t){var n=ir(e),o=function(r){r.key===n&&t(JSON.parse(r.newValue))};return window.addEventListener("storage",o),o}function xl(e){window.removeEventListener("storage",e)}function Dl(e,t){if(t=Kt(t),!lr())throw new Error("BroadcastChannel: localstorage cannot be used");var n=zt(),o=new tr(t.localstorage.removeTimeout),r={channelName:e,uuid:n,eMIs:o};return r.listener=Rl(e,function(i){r.messagesCallback&&i.uuid!==n&&(!i.token||o.has(i.token)||i.data.time&&i.data.time<r.messagesCallbackTime||(o.add(i.token),r.messagesCallback(i.data)))}),r}function Al(e){xl(e.listener)}function $l(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function lr(){var e=ar();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function Ll(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var jl={create:Dl,close:Al,onMessage:$l,postMessage:Pl,canBeUsed:lr,type:Nl,averageResponseTime:Ll,microSeconds:Vl},cr=Me,Ml="simulate",Wt=new Set;function Bl(e){var t={time:cr(),name:e,messagesCallback:null};return Wt.add(t),t}function Ul(e){Wt.delete(e)}var ur=5;function zl(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Wt);o.forEach(function(r){r.name===e.name&&r!==e&&r.messagesCallback&&r.time<t.time&&r.messagesCallback(t)}),n()},ur)})}function Hl(e,t){e.messagesCallback=t}function Kl(){return!0}function Fl(){return ur}var Wl={create:Bl,close:Ul,onMessage:Hl,postMessage:zl,canBeUsed:Kl,type:Ml,averageResponseTime:Fl,microSeconds:cr},dr=[cl,Tl,jl];function Gl(e){var t=[].concat(e.methods,dr).filter(Boolean);if(e.type){if(e.type==="simulate")return Wl;var n=t.find(function(r){return r.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(r){return r.type!=="idb"}));var o=t.find(function(r){return r.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(dr.map(function(r){return r.type})))}var fr=new Set,Yl=0,Gt=function(e,t){this.id=Yl++,fr.add(this),this.name=e,this.options=Kt(t),this.method=Gl(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,ql(this)};Gt._pubkey=!0,Gt.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return pr(this,"message",e)},postInternal:function(e){return pr(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};_r(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,mr(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};mr(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});_r(this,e,n)},close:function(){var e=this;if(!this.closed){fr.delete(this),this.closed=!0;var t=this._prepP?this._prepP:Oe;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function pr(e,t,n){var o=e.method.microSeconds(),r={time:o,type:t,data:n},i=e._prepP?e._prepP:Oe;return i.then(function(){var a=e.method.postMessage(e._state,r);return e._uMP.add(a),a.catch().then(function(){return e._uMP.delete(a)}),a})}function ql(e){var t=e.method.create(e.name,e.options);Qi(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function hr(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function mr(e,t,n){e._addEL[t].push(n),Jl(e)}function _r(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),Xl(e)}function Jl(e){if(!e._iL&&hr(e)){var t=function(o){e._addEL[o.type].forEach(function(r){o.time>=r.time&&r.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function Xl(e){if(e._iL&&!hr(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}function gr(e,t={serialize:JSON.stringify,deserialize:JSON.parse}){return t.deserialize(t.serialize(e))}function Zl(e,t){return Object.keys(t).includes(e)}function Ql({enable:e=!0,initialize:t=!0,type:n,serializer:o}){return({store:r,options:i})=>{var a,l,c;const u=((a=i==null?void 0:i.share)==null?void 0:a.enable)??e,d=((l=i==null?void 0:i.share)==null?void 0:l.omit)??[];if(!u)return;const h=new Gt(r.$id,{type:n});let f=0,m=!1;const _=Object.keys(r.$state).filter(v=>!d.includes(v)&&Zl(v,r.$state));h.onmessage=v=>{if(v===void 0){h.postMessage({timestamp:f,state:gr(r.$state,o)});return}v.timestamp<=f||(m=!0,f=v.timestamp,r.$patch(p=>{_.forEach(E=>{p[E]=v.state[E]})}))},(((c=i==null?void 0:i.share)==null?void 0:c.initialize)??t)&&h.postMessage(void 0),r.$subscribe((v,p)=>{m||(f=Date.now(),h.postMessage({timestamp:f,state:gr(p,o)})),m=!1})}}Gi().use(Ql({enable:!0,initialize:!0}));const yr=s.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t}=Qo(),n=s.ref([]);return s.watch(t,()=>{var o;if(t.value){let r=(o=t.value.schema)==null?void 0:o.schema.toArray();r||(r=[]),r.forEach((i,a)=>{var u;const l=(u=t.value)==null?void 0:u.store.record,c=l==null?void 0:l[i.fieldname];r[a].value=c}),n.value=r}}),(o,r)=>(s.openBlock(),s.createBlock(s.unref(vs),{class:"aform-main",modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=i=>n.value=i)},null,8,["modelValue"]))}});/*!
|
|
11
|
+
This will fail in production.`);l=je,l._s.has(e)||(r?Ht(e,t,o,l):Qo(e,o,l),process.env.NODE_ENV!=="production"&&(a._pinia=l));const u=l._s.get(e);if(process.env.NODE_ENV!=="production"&&i){const d="__hot:"+e,p=r?Ht(d,t,o,l,!0):Qo(d,J({},o),l,!0);i._hotUpdate(p),delete l.state.value[d],l._s.delete(d)}if(process.env.NODE_ENV!=="production"&&ae){const d=s.getCurrentInstance();if(d&&d.proxy&&!i){const p=d.proxy,h="_pStores"in p?p._pStores:p._pStores={};h[e]=u}}return u}return a.$id=e,a}const Zl=Xl("data",()=>{const e=s.ref([]),t=s.ref({});return{records:e,record:t}});function er(e){const t=s.ref();return s.onMounted(async()=>{var n,o,r;e||(e=s.inject("$registry"));let a;try{a=Zl()}catch{throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable")}if(t.value=new Ss(e,a),!e||!e.router)return;const l=e.router.currentRoute.value,i=(n=l.params.records)==null?void 0:n.toString().toLowerCase(),c=(o=l.params.record)==null?void 0:o.toString().toLowerCase();if(!i&&!c)return;const u=await((r=e.getMeta)==null?void 0:r.call(e,i));u&&(e.addDoctype(u),t.value.setup(u),i&&(c?await t.value.getRecord(u,c):await t.value.getRecords(u)),t.value.runAction(u,"LOAD",c?[c]:void 0))}),{stonecrop:t}}K(class ut{constructor(t,n){if(K(this,"name"),K(this,"registry"),K(this,"router"),K(this,"getMeta"),ut._root)return ut._root;ut._root=this,this.name="Registry",this.registry={},this.router=t,this.getMeta=n}addDoctype(t){t.doctype in Object.keys(this.registry)||(this.registry[t.slug]=t),t.component&&this.router&&!this.router.hasRoute(t.doctype)&&this.router.addRoute({path:`/${t.slug}`,name:t.slug,component:t.component})}},"_root");function Ql(e){return e&&typeof e.then=="function"}Promise.resolve(!1),Promise.resolve(!0);var Oe=Promise.resolve();function tr(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function ei(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function zt(){return Math.random().toString(36).substring(2)}var Kt=0;function Be(){var e=Date.now()*1e3;return e<=Kt&&(e=Kt+1),Kt=e,e}var ti=Be,ni="native";function oi(e){var t={time:Be(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function ri(e){e.bc.close(),e.subFns=[]}function si(e,t){try{return e.bc.postMessage(t,!1),Oe}catch(n){return Promise.reject(n)}}function ai(e,t){e.messagesCallback=t}function li(){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 ii(){return 150}var ci={create:oi,close:ri,onMessage:ai,postMessage:si,canBeUsed:li,type:ni,averageResponseTime:ii,microSeconds:ti};class nr{constructor(t){K(this,"ttl"),K(this,"map",new Map),K(this,"_to",!1),this.ttl=t}has(t){return this.map.has(t)}add(t){this.map.set(t,or()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,ui(this)},0))}clear(){this.map.clear()}}function ui(e){const t=or()-e.ttl,n=e.map[Symbol.iterator]();for(;;){const o=n.next().value;if(!o)return;const r=o[0];if(o[1]<t)e.map.delete(r);else return}}function or(){return Date.now()}function Ft(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var di=Be,fi="pubkey.broadcast-channel-0-",ne="messages",ot={durability:"relaxed"},pi="idb";function rr(){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 Wt(e){e.commit&&e.commit()}function hi(e){var t=rr(),n=fi+e,o=t.open(n);return o.onupgradeneeded=function(r){var a=r.target.result;a.createObjectStore(ne,{keyPath:"id",autoIncrement:!0})},new Promise(function(r,a){o.onerror=function(l){return a(l)},o.onsuccess=function(){r(o.result)}})}function mi(e,t,n){var o=Date.now(),r={uuid:t,time:o,data:n},a=e.transaction([ne],"readwrite",ot);return new Promise(function(l,i){a.oncomplete=function(){return l()},a.onerror=function(u){return i(u)};var c=a.objectStore(ne);c.add(r),Wt(a)})}function _i(e,t){var n=e.transaction(ne,"readonly",ot),o=n.objectStore(ne),r=[],a=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var l=o.getAll(a);return new Promise(function(c,u){l.onerror=function(d){return u(d)},l.onsuccess=function(d){c(d.target.result)}})}function i(){try{return a=IDBKeyRange.bound(t+1,1/0),o.openCursor(a)}catch{return o.openCursor()}}return new Promise(function(c,u){var d=i();d.onerror=function(p){return u(p)},d.onsuccess=function(p){var h=p.target.result;h?h.value.id<t+1?h.continue(t+1):(r.push(h.value),h.continue()):(Wt(n),c(r))}})}function gi(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(ne,"readwrite",ot),o=n.objectStore(ne);return Promise.all(t.map(function(r){var a=o.delete(r);return new Promise(function(l){a.onsuccess=function(){return l()}})}))}function yi(e,t){var n=Date.now()-t,o=e.transaction(ne,"readonly",ot),r=o.objectStore(ne),a=[];return new Promise(function(l){r.openCursor().onsuccess=function(i){var c=i.target.result;if(c){var u=c.value;u.time<n?(a.push(u),c.continue()):(Wt(o),l(a))}else l(a)}})}function Ei(e){return yi(e.db,e.options.idb.ttl).then(function(t){return gi(e,t.map(function(n){return n.id}))})}function wi(e,t){return t=Ft(t),hi(e).then(function(n){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:zt(),eMIs:new nr(t.idb.ttl*2),writeBlockPromise:Oe,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},sr(o),o})}function sr(e){e.closed||ar(e).then(function(){return tr(e.options.idb.fallbackInterval)}).then(function(){return sr(e)})}function bi(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function ar(e){return e.closed||!e.messagesCallback?Oe:_i(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(o){return!!o}).map(function(o){return o.id>e.lastCursorId&&(e.lastCursorId=o.id),o}).filter(function(o){return bi(o,e)}).sort(function(o,r){return o.time-r.time});return n.forEach(function(o){e.messagesCallback&&(e.eMIs.add(o.id),e.messagesCallback(o.data))}),Oe})}function vi(e){e.closed=!0,e.db.close()}function ki(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return mi(e.db,e.uuid,t)}).then(function(){ei(0,10)===0&&Ei(e)}),e.writeBlockPromise}function Oi(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,ar(e)}function Si(){return!!rr()}function Ii(e){return e.idb.fallbackInterval*2}var Ti={create:wi,close:vi,onMessage:Oi,postMessage:ki,canBeUsed:Si,type:pi,averageResponseTime:Ii,microSeconds:di},Vi=Be,Ci="pubkey.broadcastChannel-",Ni="localstorage";function lr(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function ir(e){return Ci+e}function Pi(e,t){return new Promise(function(n){tr().then(function(){var o=ir(e.channelName),r={token:zt(),time:Date.now(),data:t,uuid:e.uuid},a=JSON.stringify(r);lr().setItem(o,a);var l=document.createEvent("Event");l.initEvent("storage",!0,!0),l.key=o,l.newValue=a,window.dispatchEvent(l),n()})})}function Ri(e,t){var n=ir(e),o=function(r){r.key===n&&t(JSON.parse(r.newValue))};return window.addEventListener("storage",o),o}function xi(e){window.removeEventListener("storage",e)}function Di(e,t){if(t=Ft(t),!cr())throw new Error("BroadcastChannel: localstorage cannot be used");var n=zt(),o=new nr(t.localstorage.removeTimeout),r={channelName:e,uuid:n,eMIs:o};return r.listener=Ri(e,function(a){r.messagesCallback&&a.uuid!==n&&(!a.token||o.has(a.token)||a.data.time&&a.data.time<r.messagesCallbackTime||(o.add(a.token),r.messagesCallback(a.data)))}),r}function Ai(e){xi(e.listener)}function $i(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function cr(){var e=lr();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function Li(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var ji={create:Di,close:Ai,onMessage:$i,postMessage:Pi,canBeUsed:cr,type:Ni,averageResponseTime:Li,microSeconds:Vi},ur=Be,Mi="simulate",Gt=new Set;function Bi(e){var t={time:ur(),name:e,messagesCallback:null};return Gt.add(t),t}function Ui(e){Gt.delete(e)}var dr=5;function Hi(e,t){return new Promise(function(n){return setTimeout(function(){var o=Array.from(Gt);o.forEach(function(r){r.name===e.name&&r!==e&&r.messagesCallback&&r.time<t.time&&r.messagesCallback(t)}),n()},dr)})}function zi(e,t){e.messagesCallback=t}function Ki(){return!0}function Fi(){return dr}var Wi={create:Bi,close:Ui,onMessage:zi,postMessage:Hi,canBeUsed:Ki,type:Mi,averageResponseTime:Fi,microSeconds:ur},fr=[ci,Ti,ji];function Gi(e){var t=[].concat(e.methods,fr).filter(Boolean);if(e.type){if(e.type==="simulate")return Wi;var n=t.find(function(r){return r.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(r){return r.type!=="idb"}));var o=t.find(function(r){return r.canBeUsed()});if(o)return o;throw new Error("No usable method found in "+JSON.stringify(fr.map(function(r){return r.type})))}var pr=new Set,Yi=0,Yt=function(e,t){this.id=Yi++,pr.add(this),this.name=e,this.options=Ft(t),this.method=Gi(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,qi(this)};Yt._pubkey=!0,Yt.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return hr(this,"message",e)},postInternal:function(e){return hr(this,"internal",e)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};gr(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,_r(this,"message",n)):this._onML=null},addEventListener:function(e,t){var n=this.method.microSeconds(),o={time:n,fn:t};_r(this,e,o)},removeEventListener:function(e,t){var n=this._addEL[e].find(function(o){return o.fn===t});gr(this,e,n)},close:function(){var e=this;if(!this.closed){pr.delete(this),this.closed=!0;var t=this._prepP?this._prepP:Oe;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function hr(e,t,n){var o=e.method.microSeconds(),r={time:o,type:t,data:n},a=e._prepP?e._prepP:Oe;return a.then(function(){var l=e.method.postMessage(e._state,r);return e._uMP.add(l),l.catch().then(function(){return e._uMP.delete(l)}),l})}function qi(e){var t=e.method.create(e.name,e.options);Ql(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function mr(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function _r(e,t,n){e._addEL[t].push(n),Ji(e)}function gr(e,t,n){e._addEL[t]=e._addEL[t].filter(function(o){return o!==n}),Xi(e)}function Ji(e){if(!e._iL&&mr(e)){var t=function(o){e._addEL[o.type].forEach(function(r){o.time>=r.time&&r.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function Xi(e){if(e._iL&&!mr(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}function yr(e,t={serialize:JSON.stringify,deserialize:JSON.parse}){return t.deserialize(t.serialize(e))}function Zi(e,t){return Object.keys(t).includes(e)}function Qi({enable:e=!0,initialize:t=!0,type:n,serializer:o}){return({store:r,options:a})=>{var l,i,c;const u=((l=a==null?void 0:a.share)==null?void 0:l.enable)??e,d=((i=a==null?void 0:a.share)==null?void 0:i.omit)??[];if(!u)return;const p=new Yt(r.$id,{type:n});let h=0,f=!1;const _=Object.keys(r.$state).filter(v=>!d.includes(v)&&Zi(v,r.$state));p.onmessage=v=>{if(v===void 0){p.postMessage({timestamp:h,state:yr(r.$state,o)});return}v.timestamp<=h||(f=!0,h=v.timestamp,r.$patch(m=>{_.forEach(g=>{m[g]=v.state[g]})}))},(((c=a==null?void 0:a.share)==null?void 0:c.initialize)??t)&&p.postMessage(void 0),r.$subscribe((v,m)=>{f||(h=Date.now(),p.postMessage({timestamp:h,state:yr(m,o)})),f=!1})}}Gl().use(Qi({enable:!0,initialize:!0}));const Er=s.defineComponent({__name:"Doctype",setup(e){const{stonecrop:t}=er(),n=s.ref([]);return s.watch(t,()=>{var o;if(t.value){let r=(o=t.value.schema)==null?void 0:o.schema.toArray();r||(r=[]),r.forEach((a,l)=>{var u;const i=(u=t.value)==null?void 0:u.store.record,c=i==null?void 0:i[a.fieldname];r[l].value=c}),n.value=r}}),(o,r)=>(s.openBlock(),s.createBlock(s.unref(vs),{class:"aform-main",modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=a=>n.value=a)},null,8,["modelValue"]))}});/*!
|
|
12
12
|
* pinia v3.0.3
|
|
13
13
|
* (c) 2025 Eduardo San Martin Morote
|
|
14
14
|
* @license MIT
|
|
15
|
-
*/let
|
|
15
|
+
*/let Ue;const rt=e=>Ue=e,ec=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function fe(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var He;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(He||(He={}));const ze=typeof window<"u";function wr(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const r=e[n];fe(r)&&fe(o)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=wr(r,o):e[n]=o}return e}const br=()=>{};function vr(e,t,n,o=br){e.push(t);const r=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&s.getCurrentScope()&&s.onScopeDispose(r),r}function Se(e,...t){e.slice().forEach(n=>{n(...t)})}const tc=e=>e(),kr=Symbol(),qt=Symbol();function Jt(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];fe(r)&&fe(o)&&e.hasOwnProperty(n)&&!s.isRef(o)&&!s.isReactive(o)?e[n]=Jt(r,o):e[n]=o}return e}const nc=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function oc(e){return!fe(e)||!Object.prototype.hasOwnProperty.call(e,nc)}const{assign:X}=Object;function Or(e){return!!(s.isRef(e)&&e.effect)}function Sr(e,t,n,o){const{state:r,actions:a,getters:l}=t,i=n.state.value[e];let c;function u(){!i&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=r?r():{});const d=process.env.NODE_ENV!=="production"&&o?s.toRefs(s.ref(r?r():{}).value):s.toRefs(n.state.value[e]);return X(d,a,Object.keys(l||{}).reduce((p,h)=>(process.env.NODE_ENV!=="production"&&h in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${h}" in store "${e}".`),p[h]=s.markRaw(s.computed(()=>{rt(n);const f=n._s.get(e);return l[h].call(f,f)})),p),{}))}return c=Xt(e,u,t,n,o,!0),c}function Xt(e,t,n={},o,r,a){let l;const i=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=y=>{u?f=y:u==!1&&!O._hotUpdating&&(Array.isArray(f)?f.push(y):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,d,p=[],h=[],f;const _=o.state.value[e];!a&&!_&&(process.env.NODE_ENV==="production"||!r)&&(o.state.value[e]={});const v=s.ref({});let m;function g(y){let S;u=d=!1,process.env.NODE_ENV!=="production"&&(f=[]),typeof y=="function"?(y(o.state.value[e]),S={type:He.patchFunction,storeId:e,events:f}):(Jt(o.state.value[e],y),S={type:He.patchObject,payload:y,storeId:e,events:f});const N=m=Symbol();s.nextTick().then(()=>{m===N&&(u=!0)}),d=!0,Se(p,S,o.state.value[e])}const I=a?function(){const{state:S}=n,N=S?S():{};this.$patch(A=>{X(A,N)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:br;function C(){l.stop(),p=[],h=[],o._s.delete(e)}const x=(y,S="")=>{if(kr in y)return y[qt]=S,y;const N=function(){rt(o);const A=Array.from(arguments),W=[],H=[];function P(k){W.push(k)}function E(k){H.push(k)}Se(h,{args:A,name:N[qt],store:O,after:P,onError:E});let w;try{w=y.apply(this&&this.$id===e?this:O,A)}catch(k){throw Se(H,k),k}return w instanceof Promise?w.then(k=>(Se(W,k),k)).catch(k=>(Se(H,k),Promise.reject(k))):(Se(W,w),w)};return N[kr]=!0,N[qt]=S,N},D=s.markRaw({actions:{},getters:{},state:[],hotState:v}),Y={_p:o,$id:e,$onAction:vr.bind(null,h),$patch:g,$reset:I,$subscribe(y,S={}){const N=vr(p,y,S.detached,()=>A()),A=l.run(()=>s.watch(()=>o.state.value[e],W=>{(S.flush==="sync"?d:u)&&y({storeId:e,type:He.direct,events:f},W)},X({},c,S)));return N},$dispose:C},O=s.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ze?X({_hmrPayload:D,_customProperties:s.markRaw(new Set)},Y):Y);o._s.set(e,O);const T=(o._a&&o._a.runWithContext||tc)(()=>o._e.run(()=>(l=s.effectScope()).run(()=>t({action:x}))));for(const y in T){const S=T[y];if(s.isRef(S)&&!Or(S)||s.isReactive(S))process.env.NODE_ENV!=="production"&&r?v.value[y]=s.toRef(T,y):a||(_&&oc(S)&&(s.isRef(S)?S.value=_[y]:Jt(S,_[y])),o.state.value[e][y]=S),process.env.NODE_ENV!=="production"&&D.state.push(y);else if(typeof S=="function"){const N=process.env.NODE_ENV!=="production"&&r?S:x(S,y);T[y]=N,process.env.NODE_ENV!=="production"&&(D.actions[y]=S),i.actions[y]=S}else process.env.NODE_ENV!=="production"&&Or(S)&&(D.getters[y]=a?n.getters[y]:S,ze&&(T._getters||(T._getters=s.markRaw([]))).push(y))}if(X(O,T),X(s.toRaw(O),T),Object.defineProperty(O,"$state",{get:()=>process.env.NODE_ENV!=="production"&&r?v.value:o.state.value[e],set:y=>{if(process.env.NODE_ENV!=="production"&&r)throw new Error("cannot set hotState");g(S=>{X(S,y)})}}),process.env.NODE_ENV!=="production"&&(O._hotUpdate=s.markRaw(y=>{O._hotUpdating=!0,y._hmrPayload.state.forEach(S=>{if(S in O.$state){const N=y.$state[S],A=O.$state[S];typeof N=="object"&&fe(N)&&fe(A)?wr(N,A):y.$state[S]=A}O[S]=s.toRef(y.$state,S)}),Object.keys(O.$state).forEach(S=>{S in y.$state||delete O[S]}),u=!1,d=!1,o.state.value[e]=s.toRef(y._hmrPayload,"hotState"),d=!0,s.nextTick().then(()=>{u=!0});for(const S in y._hmrPayload.actions){const N=y[S];O[S]=x(N,S)}for(const S in y._hmrPayload.getters){const N=y._hmrPayload.getters[S],A=a?s.computed(()=>(rt(o),N.call(O,O))):N;O[S]=A}Object.keys(O._hmrPayload.getters).forEach(S=>{S in y._hmrPayload.getters||delete O[S]}),Object.keys(O._hmrPayload.actions).forEach(S=>{S in y._hmrPayload.actions||delete O[S]}),O._hmrPayload=y._hmrPayload,O._getters=y._getters,O._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ze){const y={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(S=>{Object.defineProperty(O,S,X({value:O[S]},y))})}return o._p.forEach(y=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ze){const S=l.run(()=>y({store:O,app:o._a,pinia:o,options:i}));Object.keys(S||{}).forEach(N=>O._customProperties.add(N)),X(O,S)}else X(O,l.run(()=>y({store:O,app:o._a,pinia:o,options:i})))}),process.env.NODE_ENV!=="production"&&O.$state&&typeof O.$state=="object"&&typeof O.$state.constructor=="function"&&!O.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
16
16
|
state: () => new MyClass()
|
|
17
|
-
Found in store "${O.$id}".`),_&&
|
|
17
|
+
Found in store "${O.$id}".`),_&&a&&n.hydrate&&n.hydrate(O.$state,_),u=!0,d=!0,O}/*! #__NO_SIDE_EFFECTS__ */function rc(e,t,n){let o;const r=typeof t=="function";o=r?n:t;function a(l,i){const c=s.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&Ue&&Ue._testing?null:l)||(c?s.inject(ec,null):null),l&&rt(l),process.env.NODE_ENV!=="production"&&!Ue)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
18
18
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
19
|
-
This will fail in production.`);a=Be,a._s.has(e)||(r?Jt(e,t,o,a):Or(e,o,a),process.env.NODE_ENV!=="production"&&(i._pinia=a));const u=a._s.get(e);if(process.env.NODE_ENV!=="production"&&l){const d="__hot:"+e,h=r?Jt(d,t,o,a,!0):Or(d,J({},o),a,!0);l._hotUpdate(h),delete a.state.value[d],a._s.delete(d)}if(process.env.NODE_ENV!=="production"&&ze){const d=s.getCurrentInstance();if(d&&d.proxy&&!l){const h=d.proxy,f="_pStores"in h?h._pStores:h._pStores={};f[e]=u}}return u}return i.$id=e,i}function Xt(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const sc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ac=e=>e!=null,ic=Object.prototype.toString,lc=e=>ic.call(e)==="[object Object]",cc=()=>{};function rt(e){return Array.isArray(e)?e:[e]}function uc(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const Ie=sc?window:void 0;function Te(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function He(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},o=(l,c,u,d)=>(l.addEventListener(c,u,d),()=>l.removeEventListener(c,u,d)),r=s.computed(()=>{const l=rt(s.toValue(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=uc(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>Te(u)))!=null?c:[Ie].filter(u=>u!=null),rt(s.toValue(r.value?e[1]:e[0])),rt(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([l,c,u,d])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const h=lc(d)?{...d}:d;t.push(...l.flatMap(f=>c.flatMap(m=>u.map(_=>o(f,m,_,h)))))},{flush:"post"}),a=()=>{i(),n()};return Xt(n),a}function dc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function fc(e){const t=dc();return s.computed(()=>(t.value,!!e()))}function pc(e,t,n={}){const{window:o=Ie,...r}=n;let i;const a=fc(()=>o&&"MutationObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},c=s.computed(()=>{const f=s.toValue(e),m=rt(f).map(Te).filter(ac);return new Set(m)}),u=s.watch(()=>c.value,f=>{l(),a.value&&f.size&&(i=new MutationObserver(t),f.forEach(m=>i.observe(m,r)))},{immediate:!0,flush:"post"}),d=()=>i==null?void 0:i.takeRecords(),h=()=>{u(),l()};return Xt(h),{isSupported:a,stop:h,takeRecords:d}}function hc(e,t,n={}){const{window:o=Ie,document:r=o==null?void 0:o.document,flush:i="sync"}=n;if(!o||!r)return cc;let a;const l=d=>{a==null||a(),a=d},c=s.watchEffect(()=>{const d=Te(e);if(d){const{stop:h}=pc(r,f=>{f.map(m=>[...m.removedNodes]).flat().some(m=>m===d||m.contains(d))&&t(f)},{window:o,childList:!0,subtree:!0});l(h)}},{flush:i}),u=()=>{c(),l()};return Xt(u),u}function mc(e={}){var t;const{window:n=Ie,deep:o=!0,triggerOnRemoval:r=!1}=e,i=(t=e.document)!=null?t:n==null?void 0:n.document,a=()=>{var u;let d=i==null?void 0:i.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(u=d==null?void 0:d.shadowRoot)==null?void 0:u.activeElement;return d},l=s.shallowRef(),c=()=>{l.value=a()};if(n){const u={capture:!0,passive:!0};He(n,"blur",d=>{d.relatedTarget===null&&c()},u),He(n,"focus",c,u)}return r&&hc(l,c,{document:i}),c(),l}const _c="focusin",gc="focusout",yc=":focus-within";function Ec(e,t={}){const{window:n=Ie}=t,o=s.computed(()=>Te(e)),r=s.shallowRef(!1),i=s.computed(()=>r.value),a=mc(t);if(!n||!a.value)return{focused:i};const l={passive:!0};return He(o,_c,()=>r.value=!0,l),He(o,gc,()=>{var c,u,d;return r.value=(d=(u=(c=o.value)==null?void 0:c.matches)==null?void 0:u.call(c,yc))!=null?d:!1},l),{focused:i}}function wc(e,{window:t=Ie,scrollTarget:n}={}){const o=s.ref(!1),r=()=>{if(!t)return;const i=t.document,a=Te(e);if(!a)o.value=!1;else{const l=a.getBoundingClientRect();o.value=l.top<=(t.innerHeight||i.documentElement.clientHeight)&&l.left<=(t.innerWidth||i.documentElement.clientWidth)&&l.bottom>=0&&l.right>=0}};return s.watch(()=>Te(e),()=>r(),{immediate:!0,flush:"post"}),t&&He(n||t,"scroll",r,{capture:!1,passive:!0}),o}const ne=e=>{let t=wc(e).value;return t=t&&e.offsetHeight>0,t},oe=e=>e.tabIndex>=0,Sr=e=>{const t=e.target;return Zt(t)},Zt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!oe(n)||!ne(n))?Zt(n):n},bc=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const i=r.firstElementChild,a=i==null?void 0:i.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const i=r.firstElementChild;i&&(o=i)}}return o&&(!oe(o)||!ne(o))?Qt(o):o},Ir=e=>{const t=e.target;return Qt(t)},Qt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!oe(n)||!ne(n))?Qt(n):n},vc=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const i=r.lastElementChild,a=i==null?void 0:i.children[n.cellIndex];a&&(o=a)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const i=r.lastElementChild;i&&(o=i)}}return o&&(!oe(o)||!ne(o))?Zt(o):o},Tr=e=>{const t=e.target;return en(t)},en=e=>{var t;let n;if(e.previousElementSibling)n=e.previousElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!oe(n)||!ne(n))?en(n):n},Vr=e=>{const t=e.target;return tn(t)},tn=e=>{var t;let n;if(e.nextElementSibling)n=e.nextElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!oe(n)||!ne(n))?tn(n):n},Cr=e=>{const t=e.target.parentElement,n=t==null?void 0:t.firstElementChild;return n&&(!oe(n)||!ne(n))?tn(n):n},Nr=e=>{const t=e.target.parentElement,n=t==null?void 0:t.lastElementChild;return n&&(!oe(n)||!ne(n))?en(n):n},st=["alt","control","shift","meta"],kc={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Pr={"keydown.up":e=>{const t=Sr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=Ir(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=Tr(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Vr(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=bc(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=vc(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Cr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Nr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Nr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Ir(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Sr(e);t&&t.focus()}},"keydown.home":e=>{const t=Cr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Vr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=Tr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Oc(e){const t=a=>{let l=null;return a.parent&&(typeof a.parent=="string"?l=document.querySelector(a.parent):a.parent instanceof HTMLElement?l=a.parent:l=a.parent.value),l},n=a=>{var l;const c=t(a);let u=[];if(typeof a.selectors=="string")u=c?Array.from(c.querySelectorAll(a.selectors)):Array.from(document.querySelectorAll(a.selectors));else if(Array.isArray(a.selectors))for(const d of a.selectors)d instanceof HTMLElement?u.push(d):u.push(d.$el);else if(a.selectors instanceof HTMLElement)u.push(a.selectors);else if((l=a.selectors)!=null&&l.value)if(Array.isArray(a.selectors.value))for(const d of a.selectors.value)d instanceof HTMLElement?u.push(d):u.push(d.$el);else u.push(a.selectors.value);return u},o=a=>{const l=t(a);let c=[];return a.selectors?c=n(a):l&&(c=Array.from(l.children).filter(u=>oe(u)&&ne(u))),c},r=a=>l=>{const c=kc[l.key]||l.key.toLowerCase();if(st.includes(c))return;const u=a.handlers||Pr;for(const d of Object.keys(u)){const[h,...f]=d.split(".");if(h==="keydown"&&f.includes(c)){const m=u[d],_=f.filter(p=>st.includes(p)),v=st.some(p=>{const E=p.charAt(0).toUpperCase()+p.slice(1);return l.getModifierState(E)});if(_.length>0){if(v){for(const p of st)if(f.includes(p)){const E=p.charAt(0).toUpperCase()+p.slice(1);l.getModifierState(E)&&m(l)}}}else v||m(l)}}},i=[];s.onMounted(()=>{for(const a of e){const l=t(a),c=o(a),u=r(a),d=l?[l]:c;for(const h of d){const{focused:f}=Ec(s.ref(h)),m=s.watch(f,_=>{_?h.addEventListener("keydown",u):h.removeEventListener("keydown",u)});i.push(m)}}}),s.onBeforeUnmount(()=>{for(const a of i)a()})}function Ve(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const nn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Sc=e=>e!=null,Ic=Object.prototype.toString,Rr=e=>Ic.call(e)==="[object Object]",pe=()=>{},on=Tc();function Tc(){var e,t;return nn&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Vc(...e){if(e.length!==1)return s.toRef(...e);const t=e[0];return typeof t=="function"?s.readonly(s.customRef(()=>({get:t,set:pe}))):s.ref(t)}function he(e){return Array.isArray(e)?e:[e]}function Cc(e){return s.getCurrentInstance()}function Nc(e,t=!0,n){Cc()?s.onMounted(e,n):t?e():s.nextTick(e)}function xr(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const rn=nn?window:void 0;function Ce(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Dr(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},o=(l,c,u,d)=>(l.addEventListener(c,u,d),()=>l.removeEventListener(c,u,d)),r=s.computed(()=>{const l=he(s.toValue(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=xr(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>Ce(u)))!=null?c:[rn].filter(u=>u!=null),he(s.toValue(r.value?e[1]:e[0])),he(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([l,c,u,d])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const h=Rr(d)?{...d}:d;t.push(...l.flatMap(f=>c.flatMap(m=>u.map(_=>o(f,m,_,h)))))},{flush:"post"}),a=()=>{i(),n()};return Ve(n),a}function Pc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function Ar(e){const t=Pc();return s.computed(()=>(t.value,!!e()))}function $r(e,t,n={}){const{window:o=rn,...r}=n;let i;const a=Ar(()=>o&&"MutationObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},c=s.computed(()=>{const f=s.toValue(e),m=he(f).map(Ce).filter(Sc);return new Set(m)}),u=s.watch(()=>c.value,f=>{l(),a.value&&f.size&&(i=new MutationObserver(t),f.forEach(m=>i.observe(m,r)))},{immediate:!0,flush:"post"}),d=()=>i==null?void 0:i.takeRecords(),h=()=>{u(),l()};return Ve(h),{isSupported:a,stop:h,takeRecords:d}}function Rc(e,t,n={}){const{window:o=rn,...r}=n;let i;const a=Ar(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},c=s.computed(()=>{const h=s.toValue(e);return Array.isArray(h)?h.map(f=>Ce(f)):[Ce(h)]}),u=s.watch(c,h=>{if(l(),a.value&&o){i=new ResizeObserver(t);for(const f of h)f&&i.observe(f,r)}},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return Ve(d),{isSupported:a,stop:d}}function xc(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:r=!0,immediate:i=!0,updateTiming:a="sync"}=t,l=s.shallowRef(0),c=s.shallowRef(0),u=s.shallowRef(0),d=s.shallowRef(0),h=s.shallowRef(0),f=s.shallowRef(0),m=s.shallowRef(0),_=s.shallowRef(0);function v(){const E=Ce(e);if(!E){n&&(l.value=0,c.value=0,u.value=0,d.value=0,h.value=0,f.value=0,m.value=0,_.value=0);return}const I=E.getBoundingClientRect();l.value=I.height,c.value=I.bottom,u.value=I.left,d.value=I.right,h.value=I.top,f.value=I.width,m.value=I.x,_.value=I.y}function p(){a==="sync"?v():a==="next-frame"&&requestAnimationFrame(()=>v())}return Rc(e,p),s.watch(()=>Ce(e),E=>!E&&p()),$r(e,p,{attributeFilter:["style","class"]}),r&&Dr("scroll",p,{capture:!0,passive:!0}),o&&Dr("resize",p,{passive:!0}),Nc(()=>{i&&p()}),{height:l,bottom:c,left:u,right:d,top:h,width:f,x:m,y:_,update:p}}const Dc=(e=8)=>Array.from({length:e},()=>Math.floor(Math.random()*16).toString(16)).join(""),sn=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ac=["tabindex"],$c=s.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=s.useTemplateRef("rowEl"),n=s.computed(()=>e.store.isRowVisible(e.rowIndex)),o=s.computed(()=>e.store.getRowExpandSymbol(e.rowIndex));if(e.addNavigation){let r=Pr;typeof e.addNavigation=="object"&&(r={...r,...e.addNavigation}),Oc([{selectors:t,handlers:r}])}return(r,i)=>s.withDirectives((s.openBlock(),s.createElementBlock("tr",{ref:"rowEl",tabindex:r.tabIndex,class:"atable-row"},[r.store.config.view!=="uncounted"?s.renderSlot(r.$slots,"index",{key:0},()=>[r.store.config.view==="list"?(s.openBlock(),s.createElementBlock("td",{key:0,tabIndex:-1,class:s.normalizeClass(["list-index",r.store.hasPinnedColumns?"sticky-index":""])},s.toDisplayString(r.rowIndex+1),3)):r.store.isTreeView?(s.openBlock(),s.createElementBlock("td",{key:1,tabIndex:-1,class:s.normalizeClass(["tree-index",r.store.hasPinnedColumns?"sticky-index":""]),onClick:i[0]||(i[0]=a=>r.store.toggleRowExpand(r.rowIndex))},s.toDisplayString(o.value),3)):s.createCommentVNode("",!0)],!0):s.createCommentVNode("",!0),s.renderSlot(r.$slots,"default",{},void 0,!0)],8,Ac)),[[s.vShow,n.value]])}}),Lc=sn($c,[["__scopeId","data-v-c554ee0f"]]),an=nn?window:void 0;function me(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function at(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},o=(l,c,u,d)=>(l.addEventListener(c,u,d),()=>l.removeEventListener(c,u,d)),r=s.computed(()=>{const l=he(s.toValue(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=xr(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>me(u)))!=null?c:[an].filter(u=>u!=null),he(s.toValue(r.value?e[1]:e[0])),he(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([l,c,u,d])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const h=Rr(d)?{...d}:d;t.push(...l.flatMap(f=>c.flatMap(m=>u.map(_=>o(f,m,_,h)))))},{flush:"post"}),a=()=>{i(),n()};return Ve(n),a}let Lr=!1;function jr(e,t,n={}){const{window:o=an,ignore:r=[],capture:i=!0,detectIframe:a=!1,controls:l=!1}=n;if(!o)return l?{stop:pe,cancel:pe,trigger:pe}:pe;if(on&&!Lr){Lr=!0;const p={passive:!0};Array.from(o.document.body.children).forEach(E=>E.addEventListener("click",pe,p)),o.document.documentElement.addEventListener("click",pe,p)}let c=!0;const u=p=>s.toValue(r).some(E=>{if(typeof E=="string")return Array.from(o.document.querySelectorAll(E)).some(I=>I===p.target||p.composedPath().includes(I));{const I=me(E);return I&&(p.target===I||p.composedPath().includes(I))}});function d(p){const E=s.toValue(p);return E&&E.$.subTree.shapeFlag===16}function h(p,E){const I=s.toValue(p),N=I.$.subTree&&I.$.subTree.children;return N==null||!Array.isArray(N)?!1:N.some(D=>D.el===E.target||E.composedPath().includes(D.el))}const f=p=>{const E=me(e);if(p.target!=null&&!(!(E instanceof Element)&&d(e)&&h(e,p))&&!(!E||E===p.target||p.composedPath().includes(E))){if("detail"in p&&p.detail===0&&(c=!u(p)),!c){c=!0;return}t(p)}};let m=!1;const _=[at(o,"click",p=>{m||(m=!0,setTimeout(()=>{m=!1},0),f(p))},{passive:!0,capture:i}),at(o,"pointerdown",p=>{const E=me(e);c=!u(p)&&!!(E&&!p.composedPath().includes(E))},{passive:!0}),a&&at(o,"blur",p=>{setTimeout(()=>{var E;const I=me(e);((E=o.document.activeElement)==null?void 0:E.tagName)==="IFRAME"&&!(I!=null&&I.contains(o.document.activeElement))&&t(p)},0)},{passive:!0})].filter(Boolean),v=()=>_.forEach(p=>p());return l?{stop:v,cancel:()=>{c=!1},trigger:p=>{c=!0,f(p),c=!1}}:v}const ln=new WeakMap,jc={mounted(e,t){const n=!t.modifiers.bubble;let o;if(typeof t.value=="function")o=jr(e,t.value,{capture:n});else{const[r,i]=t.value;o=jr(e,r,Object.assign({capture:n},i))}ln.set(e,o)},unmounted(e){const t=ln.get(e);t&&typeof t=="function"?t():t==null||t.stop(),ln.delete(e)}};function Mc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function Bc(e){const t=Mc();return s.computed(()=>(t.value,!!e()))}function Mr(e,t,n={}){const{window:o=an,...r}=n;let i;const a=Bc(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},c=s.computed(()=>{const h=s.toValue(e);return Array.isArray(h)?h.map(f=>me(f)):[me(h)]}),u=s.watch(c,h=>{if(l(),a.value&&o){i=new ResizeObserver(t);for(const f of h)f&&i.observe(f,r)}},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return Ve(d),{isSupported:a,stop:d}}function cn(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const Uc={mounted(e,t){typeof t.value=="function"?Mr(e,t.value):Mr(e,...t.value)}};function Br(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:Br(n)}}function zc(e){const t=e||window.event,n=t.target;return Br(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const un=new WeakMap;function Hc(e,t=!1){const n=s.shallowRef(t);let o=null,r="";s.watch(Vc(e),l=>{const c=cn(s.toValue(l));if(c){const u=c;if(un.get(u)||un.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 i=()=>{const l=cn(s.toValue(e));!l||n.value||(on&&(o=at(l,"touchmove",c=>{zc(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},a=()=>{const l=cn(s.toValue(e));!l||!n.value||(on&&(o==null||o()),l.style.overflow=r,un.delete(l),n.value=!1)};return Ve(a),s.computed({get(){return n.value},set(l){l?i():a()}})}function Kc(){let e=!1;const t=s.shallowRef(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=Hc(n,o.value);s.watch(t,i=>r.value=i)}}Kc();const Fc={class:"gantt-connection-overlay"},Wc={class:"connection-svg",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:1}},Gc=["d","stroke-width","onDblclick"],Yc=["d","stroke","stroke-width","id","onDblclick"],qc=.25,it=16,Jc=s.defineComponent({__name:"AGanttConnection",props:{store:{}},emits:["connection:delete"],setup(e,{emit:t}){const n=t,o=s.computed(()=>e.store.connectionPaths.filter(a=>{const l=e.store.ganttBars.find(u=>u.id===a.from.barId),c=e.store.ganttBars.find(u=>u.id===a.to.barId);return l&&c})),r=(a,l=!1)=>{const c=e.store.connectionHandles.find($=>$.barId===a.from.barId&&$.side===a.from.side),u=e.store.connectionHandles.find($=>$.barId===a.to.barId&&$.side===a.to.side);if(!c||!u)return"";const d=c.position.x+it/2,h=c.position.y+it/2,f=u.position.x+it/2,m=u.position.y+it/2,_=Math.abs(f-d),v=Math.max(_*qc,50),p=d+(a.from.side==="left"?-v:v),E=f+(a.to.side==="left"?-v:v),I={x:.5*d+.5*p,y:.5*h+.5*h},N={x:.5*p+.5*E,y:.5*h+.5*m},D={x:.5*E+.5*f,y:.5*m+.5*m},A={x:.5*I.x+.5*N.x,y:.5*I.y+.5*N.y},G={x:.5*N.x+.5*D.x,y:.5*N.y+.5*D.y},O={x:.5*A.x+.5*G.x,y:.5*A.y+.5*G.y};return`M ${d} ${h} Q ${p} ${h}, ${O.x} ${O.y} Q ${E} ${m}, ${f} ${m}`},i=a=>{e.store.deleteConnection(a.id)&&n("connection:delete",a)};return(a,l)=>(s.openBlock(),s.createElementBlock("div",Fc,[(s.openBlock(),s.createElementBlock("svg",Wc,[l[0]||(l[0]=s.createElementVNode("defs",null,[s.createElementVNode("path",{id:"arrowhead",d:"M 0 -7 L 20 0 L 0 7Z",stroke:"black","stroke-width":"1",fill:"currentColor"}),s.createElementVNode("marker",{id:"arrowhead-marker",markerWidth:"10",markerHeight:"7",refX:"5",refY:"3.5",orient:"auto",markerUnits:"strokeWidth"},[s.createElementVNode("polygon",{points:"0 0, 10 3.5, 0 7",fill:"currentColor"})])],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,c=>{var u;return s.openBlock(),s.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:d=>i(c)},null,40,Gc)}),128)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,c=>{var u,d;return s.openBlock(),s.createElementBlock("path",{key:c.id,d:r(c),stroke:((u=c.style)==null?void 0:u.color)||"#666","stroke-width":((d=c.style)==null?void 0:d.width)||2,fill:"none","marker-mid":"url(#arrowhead-marker)",id:c.id,class:"connection-path animated-path",onDblclick:h=>i(c)},null,40,Yc)}),128))]))]))}}),Xc=sn(Jc,[["__scopeId","data-v-955111b6"]]),Zc={key:0},Qc={class:"atable-header-row",tabindex:"-1"},eu=["data-colindex"],tu=s.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(e){const t=n=>{var o;for(const r of n){if(r.borderBoxSize.length===0)continue;const i=r.borderBoxSize[0].inlineSize,a=Number(r.target.dataset.colindex),l=(o=e.store.columns[a])==null?void 0:o.width;typeof l=="number"&&l!==i&&e.store.resizeColumn(a,i)}};return(n,o)=>n.columns.length?(s.openBlock(),s.createElementBlock("thead",Zc,[s.createElementVNode("tr",Qc,[n.store.zeroColumn?(s.openBlock(),s.createElementBlock("th",{key:0,id:"header-index",class:s.normalizeClass([[n.store.hasPinnedColumns?"sticky-index":"",n.store.isTreeView?"tree-index":"",n.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.columns,(r,i)=>s.withDirectives((s.openBlock(),s.createElementBlock("th",{key:r.name,"data-colindex":i,tabindex:"-1",style:s.normalizeStyle(n.store.getHeaderCellStyle(r)),class:s.normalizeClass(r.pinned?"sticky-column":"")},[s.renderSlot(n.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(r.label||String.fromCharCode(i+97).toUpperCase()),1)])],14,eu)),[[s.unref(Uc),t]])),128))])])):s.createCommentVNode("",!0)}}),nu=s.defineComponent({__name:"ATableModal",props:{store:{}},setup(e){const t=s.useTemplateRef("amodal"),{width:n,height:o}=xc(t),r=s.computed(()=>{var i,a,l,c;if(!(e.store.modal.height&&e.store.modal.width&&e.store.modal.left&&e.store.modal.bottom))return;const u=(i=e.store.modal.cell)==null?void 0:i.closest("table"),d=u.offsetHeight||0,h=u.offsetWidth||0;let f=((a=e.store.modal.cell)==null?void 0:a.offsetTop)||0;const m=((l=u.querySelector("thead"))==null?void 0:l.offsetHeight)||0;f+=m,f=f+o.value<d?f:f-(o.value+e.store.modal.height);let _=((c=e.store.modal.cell)==null?void 0:c.offsetLeft)||0;return _=_+n.value<=h?_:_-(n.value-e.store.modal.width),{left:`${_}px`,top:`${f}px`}});return(i,a)=>(s.openBlock(),s.createElementBlock("div",{class:"amodal",ref:"amodal",tabindex:"-1",onClick:a[0]||(a[0]=s.withModifiers(()=>{},["stop"])),onInput:a[1]||(a[1]=s.withModifiers(()=>{},["stop"])),style:s.normalizeStyle(r.value)},[s.renderSlot(i.$slots,"default")],36))}}),ou=e=>{const t=e.id||Dc();return rc(`table-${t}`,()=>{const n=()=>{const g=[Object.assign({},{rowModified:!1})],k=new Set;for(let b=0;b<r.value.length;b++){const C=r.value[b];C.parent!==null&&C.parent!==void 0&&k.add(C.parent)}for(let b=0;b<r.value.length;b++){const C=r.value[b];g[b]={childrenOpen:!1,expanded:!1,indent:C.indent||0,isParent:k.has(b),isRoot:C.parent===null||C.parent===void 0,rowModified:!1,open:C.parent===null||C.parent===void 0,parent:C.parent}}return g},o=s.ref(e.columns),r=s.ref(e.rows),i=s.ref(e.config||{}),a=s.ref({}),l=s.ref({}),c=s.computed(()=>{const g={};for(const[k,b]of o.value.entries())for(const[C,L]of r.value.entries())g[`${k}:${C}`]=L[b.name];return g}),u=s.computed({get:()=>{const g=n();for(let k=0;k<g.length;k++)a.value[k]&&(g[k].rowModified=a.value[k]),l.value[k]&&(l.value[k].childrenOpen!==void 0&&(g[k].childrenOpen=l.value[k].childrenOpen),l.value[k].expanded!==void 0&&(g[k].expanded=l.value[k].expanded));if(E.value)for(let k=0;k<g.length;k++){const b=g[k];if(!b.isRoot&&b.parent!==null&&b.parent!==void 0){const C=b.parent;C>=0&&C<g.length&&(g[k].open=g[C].childrenOpen||!1)}}return g},set:g=>{JSON.stringify(g)!==JSON.stringify(u.value)&&(u.value=g)}}),d=s.ref(e.modal||{visible:!1}),h=s.ref({}),f=s.ref([]),m=s.ref([]),_=s.ref([]),v=s.computed(()=>o.value.some(g=>g.pinned)),p=s.computed(()=>i.value.view==="gantt"||i.value.view==="tree-gantt"),E=s.computed(()=>i.value.view==="tree"||i.value.view==="tree-gantt"),I=s.computed(()=>`${Math.ceil(r.value.length/100+1)}ch`),N=s.computed(()=>i.value.view?["list","tree","tree-gantt","list-expansion"].includes(i.value.view):!1),D=(g,k)=>c.value[`${g}:${k}`],A=(g,k,b)=>{const C=`${g}:${k}`,L=o.value[g];c.value[C]!==b&&(a.value[k]=!0),c.value[C]=b,r.value[k]={...r.value[k],[L.name]:b}},G=g=>{r.value=g},O=(g,k,b)=>{const C=`${g}:${k}`;c.value[C]!==b&&(a.value[k]=!0,h.value[C]=b)},$=g=>{const k=o.value.indexOf(g)===o.value.length-1,b=i.value.fullWidth?g.resizable&&!k:g.resizable;return{width:g.width||"40ch",textAlign:g.align||"center",...b&&{resize:"horizontal",overflow:"hidden",whiteSpace:"nowrap"}}},T=(g,k)=>{if(g<0||g>=o.value.length)return;const b=Math.max(k,40);o.value[g]={...o.value[g],width:`${b}px`}},y=g=>{const k=r.value[g];return p.value&&k.gantt!==void 0},S=g=>!E.value||u.value[g].isRoot||u.value[g].open,P=g=>!E.value&&i.value.view!=="list-expansion"?"":E.value&&(u.value[g].isRoot||u.value[g].isParent)?u.value[g].childrenOpen?"▼":"►":i.value.view==="list-expansion"?u.value[g].expanded?"▼":"►":"",R=g=>{if(E.value){const k=l.value[g]||{},b=!(k.childrenOpen??u.value[g].childrenOpen);if(l.value[g]={...k,childrenOpen:b},!b){for(let C=0;C<r.value.length;C++)if(u.value[C].parent===g){const L=l.value[C]||{};l.value[C]={...L,childrenOpen:!1},R(C)}}}else if(i.value.view==="list-expansion"){const k=l.value[g]||{},b=k.expanded??u.value[g].expanded;l.value[g]={...k,expanded:!b}}},F=(g,k)=>{const b=D(g,k);return U(g,k,b)},U=(g,k,b)=>{const C=o.value[g],L=r.value[k],j=C.format;return j?typeof j=="function"?j(b,{table:c.value,row:L,column:C}):typeof j=="string"?Function(`"use strict";return (${j})`)()(b,{table:c.value,row:L,column:C}):b:b};return{columns:o,config:i,connectionHandles:m,connectionPaths:_,display:u,ganttBars:f,modal:d,rows:r,table:c,updates:h,hasPinnedColumns:v,isGanttView:p,isTreeView:E,numberedRowWidth:I,zeroColumn:N,closeModal:g=>{var k;g.target instanceof Node&&(k=d.value.parent)!=null&&k.contains(g.target)||d.value.visible&&(d.value.visible=!1)},createConnection:(g,k,b)=>{const C=m.value.find(re=>re.id===g),L=m.value.find(re=>re.id===k);if(!C||!L)return console.warn("Cannot create connection: handle not found"),null;const j={id:`connection-${g}-${k}`,from:{barId:C.barId,side:C.side},to:{barId:L.barId,side:L.side},style:b==null?void 0:b.style,label:b==null?void 0:b.label};return _.value.push(j),j},deleteConnection:g=>{const k=_.value.findIndex(b=>b.id===g);return k>=0?(_.value.splice(k,1),!0):!1},getCellData:D,getCellDisplayValue:F,getConnectionsForBar:g=>_.value.filter(k=>k.from.barId===g||k.to.barId===g),getFormattedValue:U,getHandlesForBar:g=>m.value.filter(k=>k.barId===g),getHeaderCellStyle:$,getIndent:(g,k)=>k&&g===0&&k>0?`${k}ch`:"inherit",getRowExpandSymbol:P,isRowGantt:y,isRowVisible:S,registerConnectionHandle:g=>{const k=m.value.findIndex(b=>b.id===g.id);k>=0?m.value[k]=g:m.value.push(g)},registerGanttBar:g=>{const k=f.value.findIndex(b=>b.id===g.id);k>=0?f.value[k]=g:f.value.push(g)},resizeColumn:T,setCellData:A,setCellText:O,toggleRowExpand:R,unregisterConnectionHandle:g=>{const k=m.value.findIndex(b=>b.id===g);k>=0&&m.value.splice(k,1)},unregisterGanttBar:g=>{const k=f.value.findIndex(b=>b.id===g);k>=0&&f.value.splice(k,1)},updateGanttBar:g=>{var k;const b=(k=r.value[g.rowIndex])==null?void 0:k.gantt;b&&(g.type==="resize"?g.edge==="start"?(b.startIndex=g.newStart,b.endIndex=g.end,b.colspan=b.endIndex-b.startIndex):g.edge==="end"&&(b.startIndex=g.start,b.endIndex=g.newEnd,b.colspan=b.endIndex-b.startIndex):g.type==="bar"&&(b.startIndex=g.newStart,b.endIndex=g.newEnd,b.colspan=b.endIndex-b.startIndex))},updateRows:G}})()},ru={class:"atable-container",style:{position:"relative"}},su=s.defineComponent({__name:"ATable",props:s.mergeModels({id:{},columns:{},config:{default:()=>new Object}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["cellUpdate","gantt:drag","connection:event"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const o=s.useModel(e,"modelValue"),r=n,i=s.useTemplateRef("table"),a=ou({columns:e.columns,rows:o.value,id:e.id,config:e.config});a.$onAction(({name:f,store:m,args:_,after:v})=>{if(f==="setCellData"||f==="setCellText"){const[p,E,I]=_,N=m.getCellData(p,E);v(()=>{o.value=[...m.rows],r("cellUpdate",{colIndex:p,rowIndex:E,newValue:I,oldValue:N})})}else if(f==="updateGanttBar"){const[p]=_;let E=!1;p.type==="resize"?E=p.oldColspan!==p.newColspan:p.type==="bar"&&(E=p.oldStart!==p.newStart||p.oldEnd!==p.newEnd),E&&v(()=>{r("gantt:drag",p)})}}),s.watch(()=>o.value,f=>{JSON.stringify(f)!==JSON.stringify(a.rows)&&(a.rows=[...f])},{deep:!0}),s.onMounted(()=>{e.columns.some(f=>f.pinned)&&(c(),a.isTreeView&&$r(i,c,{childList:!0,subtree:!0}))});const l=s.computed(()=>a.columns.filter(f=>f.pinned).length),c=()=>{const f=i.value,m=f==null?void 0:f.rows[0],_=f==null?void 0:f.rows[1],v=m?Array.from(m.cells):[];for(const[p,E]of v.entries()){const I=_==null?void 0:_.cells[p];I&&(E.style.width=`${I.offsetWidth}px`)}for(const p of(f==null?void 0:f.rows)||[]){let E=0;const I=[];for(const N of p.cells)(N.classList.contains("sticky-column")||N.classList.contains("sticky-index"))&&(N.style.left=`${E}px`,E+=N.offsetWidth,I.push(N));I.length>0&&I[I.length-1].classList.add("sticky-column-edge")}};window.addEventListener("keydown",f=>{if(f.key==="Escape"&&a.modal.visible){a.modal.visible=!1;const m=a.modal.parent;m&&s.nextTick().then(()=>{m.focus()})}});const u=f=>{var m;if(!f.gantt||l.value===0)return a.columns;const _=[];for(let v=0;v<l.value;v++){const p={...a.columns[v]};p.originalIndex=v,_.push(p)}return _.push({...a.columns[l.value],isGantt:!0,colspan:((m=f.gantt)==null?void 0:m.colspan)||a.columns.length-l.value,originalIndex:l.value,width:"auto"}),_},d=f=>{r("connection:event",{type:"create",connection:f})},h=f=>{r("connection:event",{type:"delete",connection:f})};return t({store:a,createConnection:a.createConnection,deleteConnection:a.deleteConnection,getConnectionsForBar:a.getConnectionsForBar,getHandlesForBar:a.getHandlesForBar}),(f,m)=>(s.openBlock(),s.createElementBlock("div",ru,[s.withDirectives((s.openBlock(),s.createElementBlock("table",{ref:"table",class:"atable",style:s.normalizeStyle({width:s.unref(a).config.fullWidth?"100%":"auto"})},[s.renderSlot(f.$slots,"header",{data:s.unref(a)},()=>[s.createVNode(tu,{columns:s.unref(a).columns,store:s.unref(a)},null,8,["columns","store"])],!0),s.createElementVNode("tbody",null,[s.renderSlot(f.$slots,"body",{data:s.unref(a)},()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(a).rows,(_,v)=>(s.openBlock(),s.createBlock(Lc,{key:_.id,row:_,rowIndex:v,store:s.unref(a)},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u(_),(p,E)=>{var I,N,D;return s.openBlock(),s.createElementBlock(s.Fragment,{key:p.name},[p.isGantt?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(p.ganttComponent||"AGanttCell"),{key:0,store:s.unref(a),columnsCount:s.unref(a).columns.length-l.value,color:(I=_.gantt)==null?void 0:I.color,start:(N=_.gantt)==null?void 0:N.startIndex,end:(D=_.gantt)==null?void 0:D.endIndex,colspan:p.colspan,pinned:p.pinned,rowIndex:v,colIndex:p.originalIndex??E,style:s.normalizeStyle({textAlign:(p==null?void 0:p.align)||"center",minWidth:(p==null?void 0:p.width)||"40ch",width:s.unref(a).config.fullWidth?"auto":null}),"onConnection:create":d},null,40,["store","columnsCount","color","start","end","colspan","pinned","rowIndex","colIndex","style"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(p.cellComponent||"ACell"),{key:1,store:s.unref(a),pinned:p.pinned,rowIndex:v,colIndex:E,style:s.normalizeStyle({textAlign:(p==null?void 0:p.align)||"center",width:s.unref(a).config.fullWidth?"auto":null}),spellcheck:"false"},null,8,["store","pinned","rowIndex","colIndex","style"]))],64)}),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),s.renderSlot(f.$slots,"footer",{data:s.unref(a)},void 0,!0),s.renderSlot(f.$slots,"modal",{data:s.unref(a)},()=>[s.withDirectives(s.createVNode(nu,{store:s.unref(a)},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(a).modal.component),s.mergeProps({key:`${s.unref(a).modal.rowIndex}:${s.unref(a).modal.colIndex}`,colIndex:s.unref(a).modal.colIndex,rowIndex:s.unref(a).modal.rowIndex,store:s.unref(a)},s.unref(a).modal.componentProps),null,16,["colIndex","rowIndex","store"]))]),_:1},8,["store"]),[[s.vShow,s.unref(a).modal.visible]])],!0)],4)),[[s.unref(jc),s.unref(a).closeModal]]),s.unref(a).isGanttView?(s.openBlock(),s.createBlock(Xc,{key:0,store:s.unref(a),"onConnection:delete":h},null,8,["store"])):s.createCommentVNode("",!0)]))}}),au=sn(su,[["__scopeId","data-v-8533f0fc"]]),Ur=s.defineComponent({__name:"Records",setup(e){const{stonecrop:t}=Qo(),n={view:"list"};return(o,r)=>(s.openBlock(),s.createBlock(s.unref(au),{modelValue:s.unref(t).store.records,"onUpdate:modelValue":r[0]||(r[0]=i=>s.unref(t).store.records=i),columns:s.unref(t).schema.schema.toArray(),config:n},null,8,["modelValue","columns"]))}}),iu={class:"tabs"},lu={tabindex:"0"},cu={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"},uu={tabindex:"0"},du={style:{width:"11pt"}},zr=fn(s.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=s.ref(!0),n=s.ref(!1),o=s.ref(""),r=s.useTemplateRef("searchinput"),i=s.computed(()=>t.value?"unrotated":"rotated"),a=()=>{t.value=!t.value},l=async()=>{n.value=!n.value,await s.nextTick(()=>{r.value.focus()})},c=h=>{h.preventDefault(),h.stopPropagation()},u=async h=>{h.preventDefault(),h.stopPropagation(),await l()},d=()=>{};return(h,f)=>{const m=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("footer",null,[s.createElementVNode("ul",iu,[s.createElementVNode("li",{class:"hidebreadcrumbs",onClick:a,onKeydown:s.withKeys(a,["enter"])},[s.createElementVNode("a",lu,[s.createElementVNode("div",{class:s.normalizeClass(i.value)},"×",2)])],32),s.createElementVNode("li",{class:"hometab",onClick:d,onKeydown:s.withKeys(d,["enter"]),style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createVNode(m,{to:"/home",tabindex:"0"},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("svg",cu,f[5]||(f[5]=[s.createElementVNode("g",null,[s.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
|
|
19
|
+
This will fail in production.`);l=Ue,l._s.has(e)||(r?Xt(e,t,o,l):Sr(e,o,l),process.env.NODE_ENV!=="production"&&(a._pinia=l));const u=l._s.get(e);if(process.env.NODE_ENV!=="production"&&i){const d="__hot:"+e,p=r?Xt(d,t,o,l,!0):Sr(d,X({},o),l,!0);i._hotUpdate(p),delete l.state.value[d],l._s.delete(d)}if(process.env.NODE_ENV!=="production"&&ze){const d=s.getCurrentInstance();if(d&&d.proxy&&!i){const p=d.proxy,h="_pStores"in p?p._pStores:p._pStores={};h[e]=u}}return u}return a.$id=e,a}function Zt(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const sc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ac=e=>e!=null,lc=Object.prototype.toString,ic=e=>lc.call(e)==="[object Object]",cc=()=>{};function st(e){return Array.isArray(e)?e:[e]}function uc(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const Ie=sc?window:void 0;function Te(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Ke(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},o=(i,c,u,d)=>(i.addEventListener(c,u,d),()=>i.removeEventListener(c,u,d)),r=s.computed(()=>{const i=st(s.toValue(e[0])).filter(c=>c!=null);return i.every(c=>typeof c!="string")?i:void 0}),a=uc(()=>{var i,c;return[(c=(i=r.value)==null?void 0:i.map(u=>Te(u)))!=null?c:[Ie].filter(u=>u!=null),st(s.toValue(r.value?e[1]:e[0])),st(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([i,c,u,d])=>{if(n(),!(i!=null&&i.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const p=ic(d)?{...d}:d;t.push(...i.flatMap(h=>c.flatMap(f=>u.map(_=>o(h,f,_,p)))))},{flush:"post"}),l=()=>{a(),n()};return Zt(n),l}function dc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function fc(e){const t=dc();return s.computed(()=>(t.value,!!e()))}function pc(e,t,n={}){const{window:o=Ie,...r}=n;let a;const l=fc(()=>o&&"MutationObserver"in o),i=()=>{a&&(a.disconnect(),a=void 0)},c=s.computed(()=>{const h=s.toValue(e),f=st(h).map(Te).filter(ac);return new Set(f)}),u=s.watch(()=>c.value,h=>{i(),l.value&&h.size&&(a=new MutationObserver(t),h.forEach(f=>a.observe(f,r)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),p=()=>{u(),i()};return Zt(p),{isSupported:l,stop:p,takeRecords:d}}function hc(e,t,n={}){const{window:o=Ie,document:r=o==null?void 0:o.document,flush:a="sync"}=n;if(!o||!r)return cc;let l;const i=d=>{l==null||l(),l=d},c=s.watchEffect(()=>{const d=Te(e);if(d){const{stop:p}=pc(r,h=>{h.map(f=>[...f.removedNodes]).flat().some(f=>f===d||f.contains(d))&&t(h)},{window:o,childList:!0,subtree:!0});i(p)}},{flush:a}),u=()=>{c(),i()};return Zt(u),u}function mc(e={}){var t;const{window:n=Ie,deep:o=!0,triggerOnRemoval:r=!1}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,l=()=>{var u;let d=a==null?void 0:a.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(u=d==null?void 0:d.shadowRoot)==null?void 0:u.activeElement;return d},i=s.shallowRef(),c=()=>{i.value=l()};if(n){const u={capture:!0,passive:!0};Ke(n,"blur",d=>{d.relatedTarget===null&&c()},u),Ke(n,"focus",c,u)}return r&&hc(i,c,{document:a}),c(),i}const _c="focusin",gc="focusout",yc=":focus-within";function Ec(e,t={}){const{window:n=Ie}=t,o=s.computed(()=>Te(e)),r=s.shallowRef(!1),a=s.computed(()=>r.value),l=mc(t);if(!n||!l.value)return{focused:a};const i={passive:!0};return Ke(o,_c,()=>r.value=!0,i),Ke(o,gc,()=>{var c,u,d;return r.value=(d=(u=(c=o.value)==null?void 0:c.matches)==null?void 0:u.call(c,yc))!=null?d:!1},i),{focused:a}}function wc(e,{window:t=Ie,scrollTarget:n}={}){const o=s.ref(!1),r=()=>{if(!t)return;const a=t.document,l=Te(e);if(!l)o.value=!1;else{const i=l.getBoundingClientRect();o.value=i.top<=(t.innerHeight||a.documentElement.clientHeight)&&i.left<=(t.innerWidth||a.documentElement.clientWidth)&&i.bottom>=0&&i.right>=0}};return s.watch(()=>Te(e),()=>r(),{immediate:!0,flush:"post"}),t&&Ke(n||t,"scroll",r,{capture:!1,passive:!0}),o}const oe=e=>{let t=wc(e).value;return t=t&&e.offsetHeight>0,t},re=e=>e.tabIndex>=0,Ir=e=>{const t=e.target;return Qt(t)},Qt=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.previousElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?Qt(n):n},bc=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const a=r.firstElementChild,l=a==null?void 0:a.children[n.cellIndex];l&&(o=l)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const a=r.firstElementChild;a&&(o=a)}}return o&&(!re(o)||!oe(o))?en(o):o},Tr=e=>{const t=e.target;return en(t)},en=e=>{var t;let n;if(e instanceof HTMLTableCellElement){const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;if(o){const r=Array.from(o.children)[e.cellIndex];r&&(n=r)}}else if(e instanceof HTMLTableRowElement){const o=e.nextElementSibling;o&&(n=o)}return n&&(!re(n)||!oe(n))?en(n):n},vc=e=>{var t;const n=e.target;let o;if(n instanceof HTMLTableCellElement){const r=(t=n.parentElement)==null?void 0:t.parentElement;if(r){const a=r.lastElementChild,l=a==null?void 0:a.children[n.cellIndex];l&&(o=l)}}else if(n instanceof HTMLTableRowElement){const r=n.parentElement;if(r){const a=r.lastElementChild;a&&(o=a)}}return o&&(!re(o)||!oe(o))?Qt(o):o},Vr=e=>{const t=e.target;return tn(t)},tn=e=>{var t;let n;if(e.previousElementSibling)n=e.previousElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.previousElementSibling;n=o==null?void 0:o.lastElementChild}return n&&(!re(n)||!oe(n))?tn(n):n},Cr=e=>{const t=e.target;return nn(t)},nn=e=>{var t;let n;if(e.nextElementSibling)n=e.nextElementSibling;else{const o=(t=e.parentElement)==null?void 0:t.nextElementSibling;n=o==null?void 0:o.firstElementChild}return n&&(!re(n)||!oe(n))?nn(n):n},Nr=e=>{const t=e.target.parentElement,n=t==null?void 0:t.firstElementChild;return n&&(!re(n)||!oe(n))?nn(n):n},Pr=e=>{const t=e.target.parentElement,n=t==null?void 0:t.lastElementChild;return n&&(!re(n)||!oe(n))?tn(n):n},at=["alt","control","shift","meta"],kc={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},Rr={"keydown.up":e=>{const t=Ir(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.down":e=>{const t=Tr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.left":e=>{const t=Vr(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.right":e=>{const t=Cr(e);e.preventDefault(),e.stopPropagation(),t&&t.focus()},"keydown.control.up":e=>{const t=bc(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.down":e=>{const t=vc(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.left":e=>{const t=Nr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.control.right":e=>{const t=Pr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.end":e=>{const t=Pr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Tr(e);t&&t.focus()}},"keydown.shift.enter":e=>{if(e.target instanceof HTMLTableCellElement){e.preventDefault(),e.stopPropagation();const t=Ir(e);t&&t.focus()}},"keydown.home":e=>{const t=Nr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.tab":e=>{const t=Cr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())},"keydown.shift.tab":e=>{const t=Vr(e);t&&(e.preventDefault(),e.stopPropagation(),t.focus())}};function Oc(e){const t=l=>{let i=null;return l.parent&&(typeof l.parent=="string"?i=document.querySelector(l.parent):l.parent instanceof HTMLElement?i=l.parent:i=l.parent.value),i},n=l=>{var i;const c=t(l);let u=[];if(typeof l.selectors=="string")u=c?Array.from(c.querySelectorAll(l.selectors)):Array.from(document.querySelectorAll(l.selectors));else if(Array.isArray(l.selectors))for(const d of l.selectors)d instanceof HTMLElement?u.push(d):u.push(d.$el);else if(l.selectors instanceof HTMLElement)u.push(l.selectors);else if((i=l.selectors)!=null&&i.value)if(Array.isArray(l.selectors.value))for(const d of l.selectors.value)d instanceof HTMLElement?u.push(d):u.push(d.$el);else u.push(l.selectors.value);return u},o=l=>{const i=t(l);let c=[];return l.selectors?c=n(l):i&&(c=Array.from(i.children).filter(u=>re(u)&&oe(u))),c},r=l=>i=>{const c=kc[i.key]||i.key.toLowerCase();if(at.includes(c))return;const u=l.handlers||Rr;for(const d of Object.keys(u)){const[p,...h]=d.split(".");if(p==="keydown"&&h.includes(c)){const f=u[d],_=h.filter(m=>at.includes(m)),v=at.some(m=>{const g=m.charAt(0).toUpperCase()+m.slice(1);return i.getModifierState(g)});if(_.length>0){if(v){for(const m of at)if(h.includes(m)){const g=m.charAt(0).toUpperCase()+m.slice(1);i.getModifierState(g)&&f(i)}}}else v||f(i)}}},a=[];s.onMounted(()=>{for(const l of e){const i=t(l),c=o(l),u=r(l),d=i?[i]:c;for(const p of d){const{focused:h}=Ec(s.ref(p)),f=s.watch(h,_=>{_?p.addEventListener("keydown",u):p.removeEventListener("keydown",u)});a.push(f)}}}),s.onBeforeUnmount(()=>{for(const l of a)l()})}function Ve(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}const on=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Sc=e=>e!=null,Ic=Object.prototype.toString,xr=e=>Ic.call(e)==="[object Object]",pe=()=>{},rn=Tc();function Tc(){var e,t;return on&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Vc(...e){if(e.length!==1)return s.toRef(...e);const t=e[0];return typeof t=="function"?s.readonly(s.customRef(()=>({get:t,set:pe}))):s.ref(t)}function he(e){return Array.isArray(e)?e:[e]}function Cc(e){return s.getCurrentInstance()}function Nc(e,t=!0,n){Cc()?s.onMounted(e,n):t?e():s.nextTick(e)}function Dr(e,t,n){return s.watch(e,t,{...n,immediate:!0})}const sn=on?window:void 0;function Ce(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Ar(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},o=(i,c,u,d)=>(i.addEventListener(c,u,d),()=>i.removeEventListener(c,u,d)),r=s.computed(()=>{const i=he(s.toValue(e[0])).filter(c=>c!=null);return i.every(c=>typeof c!="string")?i:void 0}),a=Dr(()=>{var i,c;return[(c=(i=r.value)==null?void 0:i.map(u=>Ce(u)))!=null?c:[sn].filter(u=>u!=null),he(s.toValue(r.value?e[1]:e[0])),he(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([i,c,u,d])=>{if(n(),!(i!=null&&i.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const p=xr(d)?{...d}:d;t.push(...i.flatMap(h=>c.flatMap(f=>u.map(_=>o(h,f,_,p)))))},{flush:"post"}),l=()=>{a(),n()};return Ve(n),l}function Pc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function $r(e){const t=Pc();return s.computed(()=>(t.value,!!e()))}function Lr(e,t,n={}){const{window:o=sn,...r}=n;let a;const l=$r(()=>o&&"MutationObserver"in o),i=()=>{a&&(a.disconnect(),a=void 0)},c=s.computed(()=>{const h=s.toValue(e),f=he(h).map(Ce).filter(Sc);return new Set(f)}),u=s.watch(()=>c.value,h=>{i(),l.value&&h.size&&(a=new MutationObserver(t),h.forEach(f=>a.observe(f,r)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),p=()=>{u(),i()};return Ve(p),{isSupported:l,stop:p,takeRecords:d}}function Rc(e,t,n={}){const{window:o=sn,...r}=n;let a;const l=$r(()=>o&&"ResizeObserver"in o),i=()=>{a&&(a.disconnect(),a=void 0)},c=s.computed(()=>{const p=s.toValue(e);return Array.isArray(p)?p.map(h=>Ce(h)):[Ce(p)]}),u=s.watch(c,p=>{if(i(),l.value&&o){a=new ResizeObserver(t);for(const h of p)h&&a.observe(h,r)}},{immediate:!0,flush:"post"}),d=()=>{i(),u()};return Ve(d),{isSupported:l,stop:d}}function xc(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:r=!0,immediate:a=!0,updateTiming:l="sync"}=t,i=s.shallowRef(0),c=s.shallowRef(0),u=s.shallowRef(0),d=s.shallowRef(0),p=s.shallowRef(0),h=s.shallowRef(0),f=s.shallowRef(0),_=s.shallowRef(0);function v(){const g=Ce(e);if(!g){n&&(i.value=0,c.value=0,u.value=0,d.value=0,p.value=0,h.value=0,f.value=0,_.value=0);return}const I=g.getBoundingClientRect();i.value=I.height,c.value=I.bottom,u.value=I.left,d.value=I.right,p.value=I.top,h.value=I.width,f.value=I.x,_.value=I.y}function m(){l==="sync"?v():l==="next-frame"&&requestAnimationFrame(()=>v())}return Rc(e,m),s.watch(()=>Ce(e),g=>!g&&m()),Lr(e,m,{attributeFilter:["style","class"]}),r&&Ar("scroll",m,{capture:!0,passive:!0}),o&&Ar("resize",m,{passive:!0}),Nc(()=>{a&&m()}),{height:i,bottom:c,left:u,right:d,top:p,width:h,x:f,y:_,update:m}}const Dc=(e=8)=>Array.from({length:e},()=>Math.floor(Math.random()*16).toString(16)).join(""),an=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ac=["tabindex"],$c=s.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(e){const t=s.useTemplateRef("rowEl"),n=s.computed(()=>e.store.isRowVisible(e.rowIndex)),o=s.computed(()=>e.store.getRowExpandSymbol(e.rowIndex));if(e.addNavigation){let r=Rr;typeof e.addNavigation=="object"&&(r={...r,...e.addNavigation}),Oc([{selectors:t,handlers:r}])}return(r,a)=>s.withDirectives((s.openBlock(),s.createElementBlock("tr",{ref:"rowEl",tabindex:r.tabIndex,class:"atable-row"},[r.store.config.view!=="uncounted"?s.renderSlot(r.$slots,"index",{key:0},()=>[r.store.config.view==="list"?(s.openBlock(),s.createElementBlock("td",{key:0,tabIndex:-1,class:s.normalizeClass(["list-index",r.store.hasPinnedColumns?"sticky-index":""])},s.toDisplayString(r.rowIndex+1),3)):r.store.isTreeView?(s.openBlock(),s.createElementBlock("td",{key:1,tabIndex:-1,class:s.normalizeClass(["tree-index",r.store.hasPinnedColumns?"sticky-index":""]),onClick:a[0]||(a[0]=l=>r.store.toggleRowExpand(r.rowIndex))},s.toDisplayString(o.value),3)):s.createCommentVNode("",!0)],!0):s.createCommentVNode("",!0),s.renderSlot(r.$slots,"default",{},void 0,!0)],8,Ac)),[[s.vShow,n.value]])}}),Lc=an($c,[["__scopeId","data-v-c554ee0f"]]),ln=on?window:void 0;function me(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function lt(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},o=(i,c,u,d)=>(i.addEventListener(c,u,d),()=>i.removeEventListener(c,u,d)),r=s.computed(()=>{const i=he(s.toValue(e[0])).filter(c=>c!=null);return i.every(c=>typeof c!="string")?i:void 0}),a=Dr(()=>{var i,c;return[(c=(i=r.value)==null?void 0:i.map(u=>me(u)))!=null?c:[ln].filter(u=>u!=null),he(s.toValue(r.value?e[1]:e[0])),he(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([i,c,u,d])=>{if(n(),!(i!=null&&i.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const p=xr(d)?{...d}:d;t.push(...i.flatMap(h=>c.flatMap(f=>u.map(_=>o(h,f,_,p)))))},{flush:"post"}),l=()=>{a(),n()};return Ve(n),l}let jr=!1;function Mr(e,t,n={}){const{window:o=ln,ignore:r=[],capture:a=!0,detectIframe:l=!1,controls:i=!1}=n;if(!o)return i?{stop:pe,cancel:pe,trigger:pe}:pe;if(rn&&!jr){jr=!0;const m={passive:!0};Array.from(o.document.body.children).forEach(g=>g.addEventListener("click",pe,m)),o.document.documentElement.addEventListener("click",pe,m)}let c=!0;const u=m=>s.toValue(r).some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(I=>I===m.target||m.composedPath().includes(I));{const I=me(g);return I&&(m.target===I||m.composedPath().includes(I))}});function d(m){const g=s.toValue(m);return g&&g.$.subTree.shapeFlag===16}function p(m,g){const I=s.toValue(m),C=I.$.subTree&&I.$.subTree.children;return C==null||!Array.isArray(C)?!1:C.some(x=>x.el===g.target||g.composedPath().includes(x.el))}const h=m=>{const g=me(e);if(m.target!=null&&!(!(g instanceof Element)&&d(e)&&p(e,m))&&!(!g||g===m.target||m.composedPath().includes(g))){if("detail"in m&&m.detail===0&&(c=!u(m)),!c){c=!0;return}t(m)}};let f=!1;const _=[lt(o,"click",m=>{f||(f=!0,setTimeout(()=>{f=!1},0),h(m))},{passive:!0,capture:a}),lt(o,"pointerdown",m=>{const g=me(e);c=!u(m)&&!!(g&&!m.composedPath().includes(g))},{passive:!0}),l&<(o,"blur",m=>{setTimeout(()=>{var g;const I=me(e);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(I!=null&&I.contains(o.document.activeElement))&&t(m)},0)},{passive:!0})].filter(Boolean),v=()=>_.forEach(m=>m());return i?{stop:v,cancel:()=>{c=!1},trigger:m=>{c=!0,h(m),c=!1}}:v}const cn=new WeakMap,jc={mounted(e,t){const n=!t.modifiers.bubble;let o;if(typeof t.value=="function")o=Mr(e,t.value,{capture:n});else{const[r,a]=t.value;o=Mr(e,r,Object.assign({capture:n},a))}cn.set(e,o)},unmounted(e){const t=cn.get(e);t&&typeof t=="function"?t():t==null||t.stop(),cn.delete(e)}};function Mc(){const e=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{e.value=!0},t),e}function Bc(e){const t=Mc();return s.computed(()=>(t.value,!!e()))}function Br(e,t,n={}){const{window:o=ln,...r}=n;let a;const l=Bc(()=>o&&"ResizeObserver"in o),i=()=>{a&&(a.disconnect(),a=void 0)},c=s.computed(()=>{const p=s.toValue(e);return Array.isArray(p)?p.map(h=>me(h)):[me(p)]}),u=s.watch(c,p=>{if(i(),l.value&&o){a=new ResizeObserver(t);for(const h of p)h&&a.observe(h,r)}},{immediate:!0,flush:"post"}),d=()=>{i(),u()};return Ve(d),{isSupported:l,stop:d}}function un(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const Uc={mounted(e,t){typeof t.value=="function"?Br(e,t.value):Br(e,...t.value)}};function Ur(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:Ur(n)}}function Hc(e){const t=e||window.event,n=t.target;return Ur(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const dn=new WeakMap;function zc(e,t=!1){const n=s.shallowRef(t);let o=null,r="";s.watch(Vc(e),i=>{const c=un(s.toValue(i));if(c){const u=c;if(dn.get(u)||dn.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 a=()=>{const i=un(s.toValue(e));!i||n.value||(rn&&(o=lt(i,"touchmove",c=>{Hc(c)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},l=()=>{const i=un(s.toValue(e));!i||!n.value||(rn&&(o==null||o()),i.style.overflow=r,dn.delete(i),n.value=!1)};return Ve(l),s.computed({get(){return n.value},set(i){i?a():l()}})}function Kc(){let e=!1;const t=s.shallowRef(!1);return(n,o)=>{if(t.value=o.value,e)return;e=!0;const r=zc(n,o.value);s.watch(t,a=>r.value=a)}}Kc();const Fc={class:"gantt-connection-overlay"},Wc={class:"connection-svg",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:1}},Gc=["d","stroke-width","onDblclick"],Yc=["d","stroke","stroke-width","id","onDblclick"],qc=.25,it=16,Jc=s.defineComponent({__name:"AGanttConnection",props:{store:{}},emits:["connection:delete"],setup(e,{emit:t}){const n=t,o=s.computed(()=>e.store.connectionPaths.filter(l=>{const i=e.store.ganttBars.find(u=>u.id===l.from.barId),c=e.store.ganttBars.find(u=>u.id===l.to.barId);return i&&c})),r=(l,i=!1)=>{const c=e.store.connectionHandles.find(j=>j.barId===l.from.barId&&j.side===l.from.side),u=e.store.connectionHandles.find(j=>j.barId===l.to.barId&&j.side===l.to.side);if(!c||!u)return"";const d=c.position.x+it/2,p=c.position.y+it/2,h=u.position.x+it/2,f=u.position.y+it/2,_=Math.abs(h-d),v=Math.max(_*qc,50),m=d+(l.from.side==="left"?-v:v),g=h+(l.to.side==="left"?-v:v),I={x:.5*d+.5*m,y:.5*p+.5*p},C={x:.5*m+.5*g,y:.5*p+.5*f},x={x:.5*g+.5*h,y:.5*f+.5*f},D={x:.5*I.x+.5*C.x,y:.5*I.y+.5*C.y},Y={x:.5*C.x+.5*x.x,y:.5*C.y+.5*x.y},O={x:.5*D.x+.5*Y.x,y:.5*D.y+.5*Y.y};return`M ${d} ${p} Q ${m} ${p}, ${O.x} ${O.y} Q ${g} ${f}, ${h} ${f}`},a=l=>{e.store.deleteConnection(l.id)&&n("connection:delete",l)};return(l,i)=>(s.openBlock(),s.createElementBlock("div",Fc,[(s.openBlock(),s.createElementBlock("svg",Wc,[i[0]||(i[0]=s.createElementVNode("defs",null,[s.createElementVNode("path",{id:"arrowhead",d:"M 0 -7 L 20 0 L 0 7Z",stroke:"black","stroke-width":"1",fill:"currentColor"}),s.createElementVNode("marker",{id:"arrowhead-marker",markerWidth:"10",markerHeight:"7",refX:"5",refY:"3.5",orient:"auto",markerUnits:"strokeWidth"},[s.createElementVNode("polygon",{points:"0 0, 10 3.5, 0 7",fill:"currentColor"})])],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,c=>{var u;return s.openBlock(),s.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:d=>a(c)},null,40,Gc)}),128)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,c=>{var u,d;return s.openBlock(),s.createElementBlock("path",{key:c.id,d:r(c),stroke:((u=c.style)==null?void 0:u.color)||"#666","stroke-width":((d=c.style)==null?void 0:d.width)||2,fill:"none","marker-mid":"url(#arrowhead-marker)",id:c.id,class:"connection-path animated-path",onDblclick:p=>a(c)},null,40,Yc)}),128))]))]))}}),Xc=an(Jc,[["__scopeId","data-v-955111b6"]]),Zc={key:0},Qc={class:"atable-header-row",tabindex:"-1"},eu=["data-colindex"],tu=s.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(e){const t=n=>{var o;for(const r of n){if(r.borderBoxSize.length===0)continue;const a=r.borderBoxSize[0].inlineSize,l=Number(r.target.dataset.colindex),i=(o=e.store.columns[l])==null?void 0:o.width;typeof i=="number"&&i!==a&&e.store.resizeColumn(l,a)}};return(n,o)=>n.columns.length?(s.openBlock(),s.createElementBlock("thead",Zc,[s.createElementVNode("tr",Qc,[n.store.zeroColumn?(s.openBlock(),s.createElementBlock("th",{key:0,id:"header-index",class:s.normalizeClass([[n.store.hasPinnedColumns?"sticky-index":"",n.store.isTreeView?"tree-index":"",n.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.columns,(r,a)=>s.withDirectives((s.openBlock(),s.createElementBlock("th",{key:r.name,"data-colindex":a,tabindex:"-1",style:s.normalizeStyle(n.store.getHeaderCellStyle(r)),class:s.normalizeClass(r.pinned?"sticky-column":"")},[s.renderSlot(n.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(r.label||String.fromCharCode(a+97).toUpperCase()),1)])],14,eu)),[[s.unref(Uc),t]])),128))])])):s.createCommentVNode("",!0)}}),nu=s.defineComponent({__name:"ATableModal",props:{store:{}},setup(e){const t=s.useTemplateRef("amodal"),{width:n,height:o}=xc(t),r=s.computed(()=>{var a,l,i,c;if(!(e.store.modal.height&&e.store.modal.width&&e.store.modal.left&&e.store.modal.bottom))return;const u=(a=e.store.modal.cell)==null?void 0:a.closest("table"),d=u.offsetHeight||0,p=u.offsetWidth||0;let h=((l=e.store.modal.cell)==null?void 0:l.offsetTop)||0;const f=((i=u.querySelector("thead"))==null?void 0:i.offsetHeight)||0;h+=f,h=h+o.value<d?h:h-(o.value+e.store.modal.height);let _=((c=e.store.modal.cell)==null?void 0:c.offsetLeft)||0;return _=_+n.value<=p?_:_-(n.value-e.store.modal.width),{left:`${_}px`,top:`${h}px`}});return(a,l)=>(s.openBlock(),s.createElementBlock("div",{class:"amodal",ref:"amodal",tabindex:"-1",onClick:l[0]||(l[0]=s.withModifiers(()=>{},["stop"])),onInput:l[1]||(l[1]=s.withModifiers(()=>{},["stop"])),style:s.normalizeStyle(r.value)},[s.renderSlot(a.$slots,"default")],36))}}),ou=e=>{const t=e.id||Dc();return rc(`table-${t}`,()=>{const n=()=>{const E=[Object.assign({},{rowModified:!1})],w=new Set;for(let k=0;k<r.value.length;k++){const R=r.value[k];R.parent!==null&&R.parent!==void 0&&w.add(R.parent)}for(let k=0;k<r.value.length;k++){const R=r.value[k];E[k]={childrenOpen:!1,expanded:!1,indent:R.indent||0,isParent:w.has(k),isRoot:R.parent===null||R.parent===void 0,rowModified:!1,open:R.parent===null||R.parent===void 0,parent:R.parent}}return E},o=s.ref(e.columns),r=s.ref(e.rows),a=s.ref(e.config||{}),l=s.ref({}),i=s.ref({}),c=s.computed(()=>{const E={};for(const[w,k]of o.value.entries())for(const[R,$]of r.value.entries())E[`${w}:${R}`]=$[k.name];return E}),u=s.computed({get:()=>{const E=n();for(let w=0;w<E.length;w++)l.value[w]&&(E[w].rowModified=l.value[w]),i.value[w]&&(i.value[w].childrenOpen!==void 0&&(E[w].childrenOpen=i.value[w].childrenOpen),i.value[w].expanded!==void 0&&(E[w].expanded=i.value[w].expanded));if(g.value){const w=(k,R)=>{const $=R[k];if($.isRoot||$.parent===null||$.parent===void 0)return!0;const B=$.parent;return B<0||B>=R.length?!1:(R[B].childrenOpen||!1)&&w(B,R)};for(let k=0;k<E.length;k++)E[k].isRoot||(E[k].open=w(k,E))}return E},set:E=>{JSON.stringify(E)!==JSON.stringify(u.value)&&(u.value=E)}}),d=s.ref(e.modal||{visible:!1}),p=s.ref({}),h=s.ref([]),f=s.ref([]),_=s.ref([]),v=s.computed(()=>o.value.some(E=>E.pinned)),m=s.computed(()=>a.value.view==="gantt"||a.value.view==="tree-gantt"),g=s.computed(()=>a.value.view==="tree"||a.value.view==="tree-gantt"),I=s.computed(()=>`${Math.ceil(r.value.length/100+1)}ch`),C=s.computed(()=>a.value.view?["list","tree","tree-gantt","list-expansion"].includes(a.value.view):!1),x=(E,w)=>c.value[`${E}:${w}`],D=(E,w,k)=>{const R=`${E}:${w}`,$=o.value[E];c.value[R]!==k&&(l.value[w]=!0),c.value[R]=k,r.value[w]={...r.value[w],[$.name]:k}},Y=E=>{r.value=E},O=(E,w,k)=>{const R=`${E}:${w}`;c.value[R]!==k&&(l.value[w]=!0,p.value[R]=k)},j=E=>{const w=o.value.indexOf(E)===o.value.length-1,k=a.value.fullWidth?E.resizable&&!w:E.resizable;return{width:E.width||"40ch",textAlign:E.align||"center",...k&&{resize:"horizontal",overflow:"hidden",whiteSpace:"nowrap"}}},T=(E,w)=>{if(E<0||E>=o.value.length)return;const k=Math.max(w,40);o.value[E]={...o.value[E],width:`${k}px`}},y=E=>{const w=r.value[E];return m.value&&w.gantt!==void 0},S=E=>!g.value||u.value[E].isRoot||u.value[E].open,N=E=>!g.value&&a.value.view!=="list-expansion"?"":g.value&&(u.value[E].isRoot||u.value[E].isParent)?u.value[E].childrenOpen?"▼":"►":a.value.view==="list-expansion"?u.value[E].expanded?"▼":"►":"",A=E=>{if(g.value){const w=i.value[E]||{},k=!(w.childrenOpen??u.value[E].childrenOpen);i.value[E]={...w,childrenOpen:k},k||W(E)}else if(a.value.view==="list-expansion"){const w=i.value[E]||{},k=w.expanded??u.value[E].expanded;i.value[E]={...w,expanded:!k}}},W=E=>{for(let w=0;w<r.value.length;w++)if(u.value[w].parent===E){const k=i.value[w]||{};i.value[w]={...k,childrenOpen:!1},W(w)}},H=(E,w)=>{const k=x(E,w);return P(E,w,k)},P=(E,w,k)=>{const R=o.value[E],$=r.value[w],B=R.format;return B?typeof B=="function"?B(k,{table:c.value,row:$,column:R}):typeof B=="string"?Function(`"use strict";return (${B})`)()(k,{table:c.value,row:$,column:R}):k:k};return{columns:o,config:a,connectionHandles:f,connectionPaths:_,display:u,ganttBars:h,modal:d,rows:r,table:c,updates:p,hasPinnedColumns:v,isGanttView:m,isTreeView:g,numberedRowWidth:I,zeroColumn:C,closeModal:E=>{var w;E.target instanceof Node&&(w=d.value.parent)!=null&&w.contains(E.target)||d.value.visible&&(d.value.visible=!1)},createConnection:(E,w,k)=>{const R=f.value.find(Ne=>Ne.id===E),$=f.value.find(Ne=>Ne.id===w);if(!R||!$)return console.warn("Cannot create connection: handle not found"),null;const B={id:`connection-${E}-${w}`,from:{barId:R.barId,side:R.side},to:{barId:$.barId,side:$.side},style:k==null?void 0:k.style,label:k==null?void 0:k.label};return _.value.push(B),B},deleteConnection:E=>{const w=_.value.findIndex(k=>k.id===E);return w>=0?(_.value.splice(w,1),!0):!1},getCellData:x,getCellDisplayValue:H,getConnectionsForBar:E=>_.value.filter(w=>w.from.barId===E||w.to.barId===E),getFormattedValue:P,getHandlesForBar:E=>f.value.filter(w=>w.barId===E),getHeaderCellStyle:j,getIndent:(E,w)=>w&&E===0&&w>0?`${w}ch`:"inherit",getRowExpandSymbol:N,isRowGantt:y,isRowVisible:S,registerConnectionHandle:E=>{const w=f.value.findIndex(k=>k.id===E.id);w>=0?f.value[w]=E:f.value.push(E)},registerGanttBar:E=>{const w=h.value.findIndex(k=>k.id===E.id);w>=0?h.value[w]=E:h.value.push(E)},resizeColumn:T,setCellData:D,setCellText:O,toggleRowExpand:A,unregisterConnectionHandle:E=>{const w=f.value.findIndex(k=>k.id===E);w>=0&&f.value.splice(w,1)},unregisterGanttBar:E=>{const w=h.value.findIndex(k=>k.id===E);w>=0&&h.value.splice(w,1)},updateGanttBar:E=>{var w;const k=(w=r.value[E.rowIndex])==null?void 0:w.gantt;k&&(E.type==="resize"?E.edge==="start"?(k.startIndex=E.newStart,k.endIndex=E.end,k.colspan=k.endIndex-k.startIndex):E.edge==="end"&&(k.startIndex=E.start,k.endIndex=E.newEnd,k.colspan=k.endIndex-k.startIndex):E.type==="bar"&&(k.startIndex=E.newStart,k.endIndex=E.newEnd,k.colspan=k.endIndex-k.startIndex))},updateRows:Y}})()},ru={class:"atable-container",style:{position:"relative"}},su=s.defineComponent({__name:"ATable",props:s.mergeModels({id:{},config:{default:()=>new Object}},{rows:{required:!0},rowsModifiers:{},columns:{required:!0},columnsModifiers:{}}),emits:s.mergeModels(["cellUpdate","gantt:drag","connection:event","columns:update"],["update:rows","update:columns"]),setup(e,{expose:t,emit:n}){const o=s.useModel(e,"rows"),r=s.useModel(e,"columns"),a=n,l=s.useTemplateRef("table"),i=ou({columns:r.value,rows:o.value,id:e.id,config:e.config});i.$onAction(({name:f,store:_,args:v,after:m})=>{if(f==="setCellData"||f==="setCellText"){const[g,I,C]=v,x=_.getCellData(g,I);m(()=>{o.value=[..._.rows],a("cellUpdate",{colIndex:g,rowIndex:I,newValue:C,oldValue:x})})}else if(f==="updateGanttBar"){const[g]=v;let I=!1;g.type==="resize"?I=g.oldColspan!==g.newColspan:g.type==="bar"&&(I=g.oldStart!==g.newStart||g.oldEnd!==g.newEnd),I&&m(()=>{a("gantt:drag",g)})}else f==="resizeColumn"&&m(()=>{r.value=[..._.columns],a("columns:update",[..._.columns])})}),s.watch(()=>o.value,f=>{JSON.stringify(f)!==JSON.stringify(i.rows)&&(i.rows=[...f])},{deep:!0}),s.watch(r,f=>{JSON.stringify(f)!==JSON.stringify(i.columns)&&(i.columns=[...f],a("columns:update",[...f]))},{deep:!0}),s.onMounted(()=>{r.value.some(f=>f.pinned)&&(u(),i.isTreeView&&Lr(l,u,{childList:!0,subtree:!0}))});const c=s.computed(()=>i.columns.filter(f=>f.pinned).length),u=()=>{const f=l.value,_=f==null?void 0:f.rows[0],v=f==null?void 0:f.rows[1],m=_?Array.from(_.cells):[];for(const[g,I]of m.entries()){const C=v==null?void 0:v.cells[g];C&&(I.style.width=`${C.offsetWidth}px`)}for(const g of(f==null?void 0:f.rows)||[]){let I=0;const C=[];for(const x of g.cells)(x.classList.contains("sticky-column")||x.classList.contains("sticky-index"))&&(x.style.left=`${I}px`,I+=x.offsetWidth,C.push(x));C.length>0&&C[C.length-1].classList.add("sticky-column-edge")}};window.addEventListener("keydown",f=>{if(f.key==="Escape"&&i.modal.visible){i.modal.visible=!1;const _=i.modal.parent;_&&s.nextTick().then(()=>{_.focus()})}});const d=f=>{var _;if(!f.gantt||c.value===0)return i.columns;const v=[];for(let m=0;m<c.value;m++){const g={...i.columns[m]};g.originalIndex=m,v.push(g)}return v.push({...i.columns[c.value],isGantt:!0,colspan:((_=f.gantt)==null?void 0:_.colspan)||i.columns.length-c.value,originalIndex:c.value,width:"auto"}),v},p=f=>{a("connection:event",{type:"create",connection:f})},h=f=>{a("connection:event",{type:"delete",connection:f})};return t({store:i,createConnection:i.createConnection,deleteConnection:i.deleteConnection,getConnectionsForBar:i.getConnectionsForBar,getHandlesForBar:i.getHandlesForBar}),(f,_)=>(s.openBlock(),s.createElementBlock("div",ru,[s.withDirectives((s.openBlock(),s.createElementBlock("table",{ref:"table",class:"atable",style:s.normalizeStyle({width:s.unref(i).config.fullWidth?"100%":"auto"})},[s.renderSlot(f.$slots,"header",{data:s.unref(i)},()=>[s.createVNode(tu,{columns:s.unref(i).columns,store:s.unref(i)},null,8,["columns","store"])],!0),s.createElementVNode("tbody",null,[s.renderSlot(f.$slots,"body",{data:s.unref(i)},()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).rows,(v,m)=>(s.openBlock(),s.createBlock(Lc,{key:v.id,row:v,rowIndex:m,store:s.unref(i)},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d(v),(g,I)=>{var C,x,D;return s.openBlock(),s.createElementBlock(s.Fragment,{key:g.name},[g.isGantt?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(g.ganttComponent||"AGanttCell"),{key:0,store:s.unref(i),columnsCount:s.unref(i).columns.length-c.value,color:(C=v.gantt)==null?void 0:C.color,start:(x=v.gantt)==null?void 0:x.startIndex,end:(D=v.gantt)==null?void 0:D.endIndex,colspan:g.colspan,pinned:g.pinned,rowIndex:m,colIndex:g.originalIndex??I,style:s.normalizeStyle({textAlign:(g==null?void 0:g.align)||"center",minWidth:(g==null?void 0:g.width)||"40ch",width:s.unref(i).config.fullWidth?"auto":null}),"onConnection:create":p},null,40,["store","columnsCount","color","start","end","colspan","pinned","rowIndex","colIndex","style"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(g.cellComponent||"ACell"),{key:1,store:s.unref(i),pinned:g.pinned,rowIndex:m,colIndex:I,style:s.normalizeStyle({textAlign:(g==null?void 0:g.align)||"center",width:s.unref(i).config.fullWidth?"auto":null}),spellcheck:"false"},null,8,["store","pinned","rowIndex","colIndex","style"]))],64)}),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),s.renderSlot(f.$slots,"footer",{data:s.unref(i)},void 0,!0),s.renderSlot(f.$slots,"modal",{data:s.unref(i)},()=>[s.withDirectives(s.createVNode(nu,{store:s.unref(i)},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(i).modal.component),s.mergeProps({key:`${s.unref(i).modal.rowIndex}:${s.unref(i).modal.colIndex}`,colIndex:s.unref(i).modal.colIndex,rowIndex:s.unref(i).modal.rowIndex,store:s.unref(i)},s.unref(i).modal.componentProps),null,16,["colIndex","rowIndex","store"]))]),_:1},8,["store"]),[[s.vShow,s.unref(i).modal.visible]])],!0)],4)),[[s.unref(jc),s.unref(i).closeModal]]),s.unref(i).isGanttView?(s.openBlock(),s.createBlock(Xc,{key:0,store:s.unref(i),"onConnection:delete":h},null,8,["store"])):s.createCommentVNode("",!0)]))}}),au=an(su,[["__scopeId","data-v-7b5f2870"]]),Hr=s.defineComponent({__name:"Records",setup(e){const{stonecrop:t}=er(),n=s.computed(()=>{var a;return(a=t.value)==null?void 0:a.store.records}),o=s.computed(()=>{var a,l,i;return(i=(l=(a=t.value)==null?void 0:a.schema)==null?void 0:l.schema)==null?void 0:i.toArray()}),r={view:"list"};return(a,l)=>(s.openBlock(),s.createBlock(s.unref(au),{rows:n.value,"onUpdate:rows":l[0]||(l[0]=i=>n.value=i),columns:o.value,"onUpdate:columns":l[1]||(l[1]=i=>o.value=i),config:r},null,8,["rows","columns"]))}}),lu={class:"tabs"},iu={tabindex:"0"},cu={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"},uu={tabindex:"0"},du={style:{width:"11pt"}},zr=pn(s.defineComponent({__name:"SheetNav",props:{breadcrumbs:{default:()=>[]}},setup(e){const t=s.ref(!0),n=s.ref(!1),o=s.ref(""),r=s.useTemplateRef("searchinput"),a=s.computed(()=>t.value?"unrotated":"rotated"),l=()=>{t.value=!t.value},i=async()=>{n.value=!n.value,await s.nextTick(()=>{r.value.focus()})},c=p=>{p.preventDefault(),p.stopPropagation()},u=async p=>{p.preventDefault(),p.stopPropagation(),await i()},d=()=>{};return(p,h)=>{const f=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("footer",null,[s.createElementVNode("ul",lu,[s.createElementVNode("li",{class:"hidebreadcrumbs",onClick:l,onKeydown:s.withKeys(l,["enter"])},[s.createElementVNode("a",iu,[s.createElementVNode("div",{class:s.normalizeClass(a.value)},"×",2)])],32),s.createElementVNode("li",{class:"hometab",onClick:d,onKeydown:s.withKeys(d,["enter"]),style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createVNode(f,{to:"/home",tabindex:"0"},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("svg",cu,h[5]||(h[5]=[s.createElementVNode("g",null,[s.createElementVNode("path",{style:{fill:"#010002"},d:`M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
|
|
20
20
|
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
|
|
21
21
|
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
|
|
22
22
|
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
|
|
@@ -24,5 +24,5 @@ This will fail in production.`);a=Be,a._s.has(e)||(r?Jt(e,t,o,a):Or(e,o,a),proce
|
|
|
24
24
|
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
|
|
25
25
|
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
|
|
26
26
|
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
|
|
27
|
-
C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),s.createElementVNode("li",{class:"searchtab",onClick:
|
|
27
|
+
C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),s.createElementVNode("li",{class:"searchtab",onClick:i,onKeydown:s.withKeys(i,["enter"]),style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createElementVNode("a",uu,[s.createElementVNode("span",{style:s.normalizeStyle({display:n.value?"none":"block"})},[(s.openBlock(),s.createElementBlock("svg",du,h[6]||(h[6]=[s.createElementVNode("g",{transform:"matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)"},[s.createElementVNode("path",{d:"M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",style:{fill:"#000000","fill-opacity":"1","fill-rule":"nonzero",stroke:"none"},id:"path2"})],-1)])))],4),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":h[0]||(h[0]=_=>o.value=_),ref:"searchinput",style:s.normalizeStyle({display:n.value?"block":"none"}),onClick:h[1]||(h[1]=_=>c(_)),onInput:h[2]||(h[2]=_=>c(_)),onBlur:h[3]||(h[3]=_=>u(_)),onKeydown:h[4]||(h[4]=s.withKeys(_=>u(_),["enter"])),type:"text"},null,36),[[s.vModelText,o.value]])])],36),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.breadcrumbs,_=>(s.openBlock(),s.createElementBlock("li",{key:_.title,style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createVNode(f,{tabindex:"0",to:_.to},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(_.title),1)]),_:2},1032,["to"])],4))),128))])])}}}),[["__scopeId","data-v-a650f215"]]),fu={install:e=>{e.component("ActionSet",hn),e.component("CommandPalette",mn),e.component("Doctype",Er),e.component("Records",Hr),e.component("SheetNav",zr)}};q.ActionSet=hn,q.CommandPalette=mn,q.Doctype=Er,q.Records=Hr,q.SheetNav=zr,q.StonecropDesktop=fu,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});
|
|
28
28
|
//# sourceMappingURL=desktop.umd.cjs.map
|