@stonecrop/desktop 0.4.24 → 0.4.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/desktop.js +1390 -1356
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +9 -9
- package/dist/desktop.umd.cjs.map +1 -1
- package/package.json +5 -5
package/dist/desktop.umd.cjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
(function(W,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(W=typeof globalThis<"u"?globalThis:W||self,s(W["@stonecrop/desktop"]={},W.Vue))})(this,function(W,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 f of t.value)f.type==="dropdown"&&(f.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=f=>{const h=!t.value[f].show;a(),t.value[f].show=h};return(f,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]=d=>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,(d,m)=>(s.openBlock(),s.createElementBlock("div",{class:"action-element",key:d.label},[d.type=="button"?(s.openBlock(),s.createElementBlock("button",{key:0,onclick:d.action,class:"button-default"},s.toDisplayString(d.label),9,Fr)):s.createCommentVNode("",!0),d.type=="dropdown"?(s.openBlock(),s.createElementBlock("div",Wr,[s.createElementVNode("button",{class:"button-default",onClick:_=>u(m)},s.toDisplayString(d.label),9,Gr),s.withDirectives(s.createElementVNode("div",Yr,[s.createElementVNode("div",qr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.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,d.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 f=>{var h;f&&(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=f=>{switch(f.key){case"Escape":l();break;case"ArrowDown":f.preventDefault(),a.value.length&&(r.value=(r.value+1)%a.value.length);break;case"ArrowUp":f.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=f=>{n("select",f),l()};return(f,h)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[f.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]=d=>o.value=d),type:"text",class:"command-palette-input",placeholder:f.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,(d,m)=>(s.openBlock(),s.createElementBlock("div",{key:m,class:s.normalizeClass(["command-palette-result",{selected:m===r.value}]),onClick:_=>u(d),onMouseover:_=>r.value=m},[s.createElementVNode("div",rs,[s.renderSlot(f.$slots,"title",{result:d})]),s.createElementVNode("div",ss,[s.renderSlot(f.$slots,"content",{result:d})])],42,os))),128))])):o.value&&!a.value.length?(s.openBlock(),s.createElementBlock("div",as,[s.renderSlot(f.$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,f)=>(l.addEventListener(c,u,f),()=>l.removeEventListener(c,u,f)),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,f])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const h=cs(f)?{...f}:f;t.push(...l.flatMap(d=>c.flatMap(m=>u.map(_=>o(d,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":f=>i.value[u].value=f,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,z=(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(z(this,"name","Stonecrop"),z(this,"registry"),z(this,"store"),z(this,"schema"),z(this,"workflow"),z(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)})}}};z(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},Ds=(e,t,n)=>(n=e!=null?Is(Vs(e)):{},Rs(wn(n,"default",{value:e,enumerable:!0}),e)),Ce=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"(){}}),xs=Ps({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){Ce(),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,d)=>new Map(c(Array.from(h),d))),a.set(Set,(h,d)=>new Set(c(Array.from(h),d))),i.constructorHandlers)for(const h of i.constructorHandlers)a.set(h[0],h[1]);let l=null;return i.proto?f:u;function c(h,d){const m=Object.keys(h),_=new Array(m.length);for(let v=0;v<m.length;v++){const p=m[v],w=h[p];typeof w!="object"||w===null?_[p]=w:w.constructor!==Object&&(l=a.get(w.constructor))?_[p]=l(w,d):ArrayBuffer.isView(w)?_[p]=n(w):_[p]=d(w)}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 d={};for(const m in h){if(Object.hasOwnProperty.call(h,m)===!1)continue;const _=h[m];typeof _!="object"||_===null?d[m]=_:_.constructor!==Object&&(l=a.get(_.constructor))?d[m]=l(_,u):ArrayBuffer.isView(_)?d[m]=n(_):d[m]=u(_)}return d}function f(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return c(h,f);if(h.constructor!==Object&&(l=a.get(h.constructor)))return l(h,f);const d={};for(const m in h){const _=h[m];typeof _!="object"||_===null?d[m]=_:_.constructor!==Object&&(l=a.get(_.constructor))?d[m]=l(_,f):ArrayBuffer.isView(_)?d[m]=n(_):d[m]=f(_)}return d}}function r(i){const a=[],l=[],c=new Map;if(c.set(Date,m=>new Date(m)),c.set(Map,(m,_)=>new Map(f(Array.from(m),_))),c.set(Set,(m,_)=>new Set(f(Array.from(m),_))),i.constructorHandlers)for(const m of i.constructorHandlers)c.set(m[0],m[1]);let u=null;return i.proto?d:h;function f(m,_){const v=Object.keys(m),p=new Array(v.length);for(let w=0;w<v.length;w++){const I=v[w],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 $=a.indexOf(N);$!==-1?p[I]=l[$]:p[I]=_(N)}}return p}function h(m){if(typeof m!="object"||m===null)return m;if(Array.isArray(m))return f(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 w=a.indexOf(p);w!==-1?_[v]=l[w]:_[v]=h(p)}}return a.pop(),l.pop(),_}function d(m){if(typeof m!="object"||m===null)return m;if(Array.isArray(m))return f(m,d);if(m.constructor!==Object&&(u=c.get(m.constructor)))return u(m,d);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,d);else if(ArrayBuffer.isView(p))_[v]=n(p);else{const w=a.indexOf(p);w!==-1?_[v]=l[w]:_[v]=d(p)}}return a.pop(),l.pop(),_}}}});Ce(),Ce(),Ce();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")),Ce();var As=Ds(xs()),$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 me(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,f)=>(a=Us(e,u,f),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(f=>{const h=!r&&n.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const d=n.leading?o:c(this,u);for(const m of i)m(d);i=[]},t),h?(o=c(this,u),f(o)):i.push(f)})}}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)),y=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){y(),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(""),f=[".","!","~","*","'","(",")"].join(""),h=function(v,p){var w="-",I="",N="",$=!0,L={},F,O,j,T,g,k,P,D,b,S,E,R,C,x,q="";if(typeof v!="string")return"";if(typeof p=="string"&&(w=p),P=l.en,D=a.en,typeof p=="object"){F=p.maintainCase||!1,L=p.custom&&typeof p.custom=="object"?p.custom:L,j=+p.truncate>1&&p.truncate||!1,T=p.uric||!1,g=p.uricNoSlash||!1,k=p.mark||!1,$=!(p.symbols===!1||p.lang===!1),w=p.separator||w,T&&(q+=c),g&&(q+=u),k&&(q+=f),P=p.lang&&l[p.lang]&&$?l[p.lang]:$?l.en:{},D=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(X){L[X+""]=X+""}),O=!0):O=!!p.titleCase,p.custom&&typeof p.custom.length=="number"&&Array.prototype.toString.call(p.custom)&&p.custom.forEach(function(X){L[X+""]=X+""}),Object.keys(L).forEach(function(X){var He;X.length>1?He=new RegExp("\\b"+m(X)+"\\b","gi"):He=new RegExp(m(X),"gi"),v=v.replace(He,L[X])});for(E in L)q+=E}for(q+=w,q=m(q),v=v.replace(/(^\s+|\s+$)/g,""),C=!1,x=!1,S=0,R=v.length;S<R;S++)E=v[S],_(E,L)?C=!1:D[E]?(E=C&&D[E].match(/[A-Za-z0-9]/)?" "+D[E]:D[E],C=!1):E in o?(S+1<R&&r.indexOf(v[S+1])>=0?(N+=E,E=""):x===!0?(E=i[N]+o[E],N=""):E=C&&o[E].match(/[A-Za-z0-9]/)?" "+o[E]:o[E],C=!1,x=!1):E in i?(N+=E,E="",S===R-1&&(E=i[N]),x=!0):P[E]&&!(T&&c.indexOf(E)!==-1)&&!(g&&u.indexOf(E)!==-1)?(E=C||I.substr(-1).match(/[A-Za-z0-9]/)?w+P[E]:P[E],E+=v[S+1]!==void 0&&v[S+1].match(/[A-Za-z0-9]/)?w:"",C=!0):(x===!0?(E=i[N]+E,N="",x=!1):C&&(/[A-Za-z0-9]/.test(E)||I.substr(-1).match(/A-Za-z0-9]/))&&(E=" "+E),C=!1),I+=E.replace(new RegExp("[^\\w\\s"+q+"_-]","g"),w);return O&&(I=I.replace(/(\w)(\S*)/g,function(X,He,Hr){var dn=He.toUpperCase()+(Hr!==null?Hr:"");return Object.keys(L).indexOf(dn.toLowerCase())<0?dn:dn.toLowerCase()})),I=I.replace(/\s+/g,w).replace(new RegExp("\\"+w+"+","g"),w).replace(new RegExp("(^\\"+w+"+|\\"+w+"+$)","g"),""),j&&I.length>j&&(b=I.charAt(j)===w,I=I.slice(0,j),b||(I=I.slice(0,I.lastIndexOf(w)))),!F&&!O&&(I=I.toLowerCase()),I},d=function(v){return function(p){return h(p,v)}},m=function(v){return v.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},_=function(v,p){for(var w in p)if(p[w]===v)return!0};if(typeof t<"u"&&t.exports)t.exports=h,t.exports.createSlug=d;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=d}catch{}}(e)}}),ta=Tn({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){y(),t.exports=ea()}});y(),y(),y(),y(),y(),y(),y(),y();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=ie(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 ie(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?ie(e.subTree.component):Nn}y();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__",Dn="__vue-devtools-component-inspector__name__",xn="__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 _e(){return document.getElementById(Pn)}function fa(){return document.getElementById(Rn)}function pa(){return document.getElementById(xn)}function ha(){return document.getElementById(Dn)}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=Dn,r.innerHTML=`<${e.name}> `;const i=document.createElement("i");return i.id=xn,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=_e(),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=ie(e);if(!t.width&&!t.height)return;const n=Ke(e);_e()?kt({bounds:t,name:n}):vt({bounds:t,name:n})}function $n(){const e=_e();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=ie(n),r=Ke(n);_e()?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=_e();r&&(r.style.display="none"),e(JSON.stringify({id:o}))})}We=t,window.addEventListener("click",t,!0)})}function Ea(e){const t=Et(H.value,e.id);if(t){const[n]=wt(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const o=ie(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=ie(t);if(o.width||o.height){const r=Ke(t),i=_e();i?kt({...e,name:r,bounds:o}):vt({...e,name:r,bounds:o}),setTimeout(()=>{i&&(i.style.display="none")},1500)}},1200)}}y();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()})})}y(),y();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 Ne(e){const t=e&&e.__v_raw;return t?Ne(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):Ne(t)instanceof Map?t.delete(n):Ne(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):Ne(t)instanceof Map?t.set(e.newKey||n,o):Ne(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)}};y(),y(),y();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:""}}y(),y(),y();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=me(()=>{ye.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===H.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=me(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(f=>f(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=me(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 f=>{await Promise.all(f.map(h=>h(l,c))),u()},"getInspectorState")}),e.callHookWith(async u=>{await Promise.all(u.map(f=>f({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})=>ie(o)),e.hook("getComponentName",({instance:o})=>Ke(o)),e.hook("componentHighlight",({uid:o})=>{const r=H.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 le="__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)[le]!=null||(Yn[le]=Ra());var Da=me(e=>{ye.hooks.callHook("devtoolsStateUpdated",{state:e})});me((e,t)=>{ye.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]}}),H=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(){Da({...V[le],appRecords:Ye.value,activeAppRecordId:H.id,tabs:V.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:V.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function xa(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[le],{get(e,t){return t==="appRecords"?Ye:t==="activeAppRecordId"?H.id:t==="tabs"?V.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?V.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:V[le][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...V[le]},e[t]=n,V[le][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,"\\\\"),f=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${f}__open-in-editor?file=${encodeURI(r)}`).then(h=>{if(!h.ok){const d=`Opening component ${u} failed`;console.log(`%c${d}`,"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)}}}y(),y(),y(),y(),y();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)),ye.hooks.callHookWith(l=>{l.forEach(c=>c({pluginId:e,key:t,oldValue:i[t],newValue:n,settings:a}))},"setPluginSettings")}y(),y(),y(),y(),y(),y(),y(),y(),y(),y(),y();var Zn,Qn,K=(Qn=(Zn=V).__VUE_DEVTOOLS_HOOK)!=null?Qn:Zn.__VUE_DEVTOOLS_HOOK=Sn(),Ba={vueAppInit(e){K.hook("app:init",e)},vueAppUnmount(e){K.hook("app:unmount",e)},vueAppConnected(e){K.hook("app:connected",e)},componentAdded(e){return K.hook("component:added",e)},componentEmit(e){return K.hook("component:emit",e)},componentUpdated(e){return K.hook("component:updated",e)},componentRemoved(e){return K.hook("component:removed",e)},setupDevtoolsPlugin(e){K.hook("devtools-plugin:setup",e)},perfStart(e){return K.hook("perf:start",e)},perfEnd(e){return K.hook("perf:end",e)}},eo={on:Ba,setupDevToolsPlugin(e,t){return K.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];K.callHook("component:updated",...o)}else K.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;y(),y(),y(),y();var Ha="__vue_devtool_undefined__",Ka="__vue_devtool_infinity__",Fa="__vue_devtool_negative_infinity__",Wa="__vue_devtool_nan__";y(),y();var Ga={[Ha]:"undefined",[Wa]:"NaN",[Ka]:"Infinity",[Fa]:"-Infinity"};Object.entries(Ga).reduce((e,[t,n])=>(e[n]=t,e),{}),y(),y(),y(),y(),y();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:ye});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)}))}y(),y();var Pe="__VUE_DEVTOOLS_ROUTER__",ge="__VUE_DEVTOOLS_ROUTER_INFO__",ro;(ro=V)[ge]!=null||(ro[ge]={currentRoute:null,routes:[]});var so;(so=V)[Pe]!=null||(so[Pe]={}),new Proxy(V[ge],{get(e,t){return V[ge][t]}}),new Proxy(V[Pe],{get(e,t){if(t==="value")return V[Pe]}});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[ge]={currentRoute:i?kn(i):{},routes:kn(a)},V[Pe]=r,console.warn=l}n(),eo.on.componentUpdated(me(()=>{var o;((o=t.value)==null?void 0:o.app)===e.app&&(n(),!M.highPerfModeEnabled&&ye.hooks.callHook("routerInfoUpdated",{state:V[ge]}))},200))}function Za(e){return{async getInspectorTree(t){const n={...t,app:H.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:H.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:H.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(H.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),xa(o),Xa(o,H),Un(),oo(o.app,n))},inspectDOM(t){const n=Et(H.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)}}}}y();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:H.id,activeAppRecord:H.value,appRecords:Ye.value}},api:Za(io)});var ye=V.__VUE_DEVTOOLS_KIT_CONTEXT__;y(),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}),y(),y();function Qa(e){M.highPerfModeEnabled=e??!M.highPerfModeEnabled,!e&&H.value&&oo(H.value.app)}y(),y(),y();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),y(),y(),y(),y(),y(),y(),y();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)}};y(),y();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 Ee(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]}};y(),y();var ai=e=>Object.prototype.toString.call(e).slice(8,-1),ho=e=>typeof e>"u",ii=e=>e===null,Re=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Rt=e=>Re(e)&&Object.keys(e).length===0,re=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,xe=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;y();var go=e=>e.replace(/\./g,"\\."),Dt=e=>e.map(String).map(go).join("."),Ae=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};y();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(xe,"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(re(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)}};y();var we=(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(xe(e))e=we(e,+o);else if(De(e)){const r=+o,i=+t[++n]==0?"key":"value",a=we(e,r);switch(i){case"key":e=a;break;case"value":e=e.get(a);break}}else e=e[o]}return e},xt=(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(re(o)){const l=+a;o=o[l]}else if(Re(o))o=o[a];else if(xe(o)){const l=+a;o=we(o,l)}else if(De(o)){if(i===t.length-2)break;const l=+a,c=+t[++i]==0?"key":"value",u=we(o,l);switch(c){case"key":o=u;break;case"value":o=o.get(u);break}}}const r=t[t.length-1];if(re(o)?o[+r]=n(o[+r]):Re(o)&&(o[r]=n(o[r])),xe(o)){const i=we(o,+r),a=n(i);i!==a&&(o.delete(i),o.add(a))}if(De(o)){const i=+t[t.length-2],a=we(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(!re(e)){Ee(e,(i,a)=>At(i,t,[...n,...Ae(a)]));return}const[o,r]=e;r&&Ee(r,(i,a)=>{At(i,t,[...n,...Ae(a)])}),t(o,n)}function ki(e,t,n){return At(t,(o,r)=>{e=xt(e,r,i=>bi(i,o,n))}),e}function Oi(e,t){function n(o,r){const i=vi(e,Ae(r));o.map(Ae).forEach(a=>{e=xt(e,a,()=>i)})}if(re(t)){const[o,r]=t;o.forEach(i=>{e=xt(e,Ae(i),()=>e)}),r&&Ee(r,n)}else Ee(t,n);return e}var Si=(e,t)=>Re(e)||re(e)||De(e)||xe(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(Dt):n[Dt(i)]=a.map(Dt)}),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),f=(l=u==null?void 0:u.value)!=null?l:e,h=re(f)?[]:{},d={};Ee(f,(_,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,re(p.annotations)?d[v]=p.annotations:Re(p.annotations)&&Ee(p.annotations,(w,I)=>{d[go(v)+"."+I]=w})});const m=Rt(d)?{transformedValue:h,annotations:u?[u.type]:void 0}:{transformedValue:h,annotations:u?[u.type,d]:d};return c||a.set(e,m),m};y(),y();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 A=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)}};A.defaultInstance=new A,A.serialize=A.defaultInstance.serialize.bind(A.defaultInstance),A.deserialize=A.defaultInstance.deserialize.bind(A.defaultInstance),A.stringify=A.defaultInstance.stringify.bind(A.defaultInstance),A.parse=A.defaultInstance.parse.bind(A.defaultInstance),A.registerClass=A.defaultInstance.registerClass.bind(A.defaultInstance),A.registerSymbol=A.defaultInstance.registerSymbol.bind(A.defaultInstance),A.registerCustom=A.defaultInstance.registerCustom.bind(A.defaultInstance),A.allowErrorProps=A.defaultInstance.allowErrorProps.bind(A.defaultInstance),y(),y(),y(),y(),y(),y(),y(),y(),y(),y(),y(),y(),y(),y(),y(),y(),y(),y(),y(),y(),y(),y(),y();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 Do;(Do=V).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__!=null||(Do.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var xo;(xo=V).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__!=null||(xo.__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),y(),y(),y(),y(),y(),y(),y();/*!
|
|
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();/*!
|
|
2
2
|
* pinia v3.0.3
|
|
3
3
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/let
|
|
5
|
+
*/let Le;const je=e=>Le=e,$o=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function ue(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Q;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Q||(Q={}));const ae=typeof window<"u",Lo=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 Ni(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 Lt(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){Bo(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function jo(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Xe(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 Ze=typeof navigator=="object"?navigator:{userAgent:""},Mo=/Macintosh/.test(Ze.userAgent)&&/AppleWebKit/.test(Ze.userAgent)&&!/Safari/.test(Ze.userAgent),Bo=ae?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Mo?Pi:"msSaveOrOpenBlob"in Ze?Ri:xi:()=>{};function Pi(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?jo(o.href)?Lt(e,t,n):(o.target="_blank",Xe(o)):Xe(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Xe(o)},0))}function Ri(e,t="download",n){if(typeof e=="string")if(jo(e))Lt(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){Xe(o)})}else navigator.msSaveOrOpenBlob(Ni(e,n),t)}function xi(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return Lt(e,t,n);const r=e.type==="application/octet-stream",i=/constructor/i.test(String(Lo.HTMLElement))||"safari"in Lo,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||r&&i||Mo)&&typeof FileReader<"u"){const l=new FileReader;l.onloadend=function(){let c=l.result;if(typeof c!="string")throw o=null,new Error("Wrong reader.result type");c=a?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=c:location.assign(c),o=null},l.readAsDataURL(e)}else{const l=URL.createObjectURL(e);o?o.location.assign(l):location.href=l,o=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}function B(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 jt(e){return"_a"in e&&"install"in e}function Uo(){if(!("clipboard"in navigator))return B("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")?(B('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Di(e){if(!Uo())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),B("Global state copied to clipboard.")}catch(t){if(zo(t))return;B("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Ai(e){if(!Uo())try{Ho(e,JSON.parse(await navigator.clipboard.readText())),B("Global state pasted from clipboard.")}catch(t){if(zo(t))return;B("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function $i(e){try{Bo(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){B("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let ee;function Li(){ee||(ee=document.createElement("input"),ee.type="file",ee.accept=".json");function e(){return new Promise((t,n)=>{ee.onchange=async()=>{const o=ee.files;if(!o)return t(null);const r=o.item(0);return t(r?{text:await r.text(),file:r}:null)},ee.oncancel=()=>t(null),ee.onerror=n,ee.click()})}return e}async function ji(e){try{const t=await Li()();if(!t)return;const{text:n,file:o}=t;Ho(e,JSON.parse(n)),B(`Global state imported from "${o.name}".`)}catch(t){B("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Ho(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 X(e){return{_custom:{display:e}}}const Ko="🍍 Pinia (root)",Qe="_root";function Mi(e){return jt(e)?{id:Qe,label:Ko}:{id:e.$id,label:e.$id}}function Bi(e){if(jt(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 i=o.get(r);return{editable:!1,key:r,value:i._getters.reduce((a,l)=>(a[l]=i[l],a),{})}})}}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 Ui(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:X(e.type),key:X(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function zi(e){switch(e){case Q.direct:return"mutation";case Q.patchFunction:return"$patch";case Q.patchObject:return"$patch";default:return"unknown"}}let ve=!0;const et=[],de="pinia:mutations",z="pinia",{assign:Hi}=Object,tt=e=>"🍍 "+e;function Ki(e,t){no({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:et,app:e},n=>{typeof n.now!="function"&&B("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:de,label:"Pinia 🍍",color:15064968}),n.addInspector({id:z,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Di(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Ai(t),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{$i(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await ji(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"?B(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(r.$reset(),B(`Store "${o}" reset.`)):B(`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 i=o.componentInstance.proxy._pStores;Object.values(i).forEach(a=>{o.instanceData.state.push({type:tt(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:s.toRaw(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((l,c)=>(l[c]=a.$state[c],l),{})}),a._getters&&a._getters.length&&o.instanceData.state.push({type:tt(a.$id),key:"getters",editable:!1,value:a._getters.reduce((l,c)=>{try{l[c]=a[c]}catch(u){l[c]=u}return l},{})})})}}),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(i=>"$id"in i?i.$id.toLowerCase().includes(o.filter.toLowerCase()):Ko.toLowerCase().includes(o.filter.toLowerCase())):r).map(Mi)}}),globalThis.$pinia=t,n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===z){const r=o.nodeId===Qe?t:t._s.get(o.nodeId);if(!r)return;r&&(o.nodeId!==Qe&&(globalThis.$store=s.toRaw(r)),o.state=Bi(r))}}),n.on.editInspectorState(o=>{if(o.app===e&&o.inspectorId===z){const r=o.nodeId===Qe?t:t._s.get(o.nodeId);if(!r)return B(`store "${o.nodeId}" not found`,"error");const{path:i}=o;jt(r)?i.unshift("state"):(i.length!==1||!r._customProperties.has(i[0])||i[0]in r.$state)&&i.unshift("$state"),ve=!1,o.set(r,i,o.state.value),ve=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("🍍")){const r=o.type.replace(/^🍍\s*/,""),i=t._s.get(r);if(!i)return B(`store "${r}" not found`,"error");const{path:a}=o;if(a[0]!=="state")return B(`Invalid path for store "${r}":
|
|
6
6
|
${a}
|
|
7
|
-
Only state can be modified.`);a[0]="$state",
|
|
7
|
+
Only state can be modified.`);a[0]="$state",ve=!1,o.set(i,a,o.state.value),ve=!0}})})}function Fi(e,t){et.includes(tt(t.$id))||et.push(tt(t.$id)),no({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:et,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:a,onError:l,name:c,args:u})=>{const d=Fo++;n.addTimelineEvent({layerId:de,event:{time:o(),title:"🛫 "+c,subtitle:"start",data:{store:X(t.$id),action:X(c),args:u},groupId:d}}),a(h=>{ie=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),title:"🛬 "+c,subtitle:"end",data:{store:X(t.$id),action:X(c),args:u,result:h},groupId:d}})}),l(h=>{ie=void 0,n.addTimelineEvent({layerId:de,event:{time:o(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:X(t.$id),action:X(c),args:u,error:h},groupId:d}})})},!0),t._customProperties.forEach(a=>{s.watch(()=>s.unref(t[a]),(l,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(z),ve&&n.addTimelineEvent({layerId:de,event:{time:o(),title:"Change",subtitle:a,data:{newValue:l,oldValue:c},groupId:ie}})},{deep:!0})}),t.$subscribe(({events:a,type:l},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(z),!ve)return;const u={time:o(),title:zi(l),data:Hi({store:X(t.$id)},Ui(a)),groupId:ie};l===Q.patchFunction?u.subtitle="⤵️":l===Q.patchObject?u.subtitle="🧩":a&&!Array.isArray(a)&&(u.subtitle=a.type),a&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:a}}),n.addTimelineEvent({layerId:de,event:u})},{detached:!0,flush:"sync"});const r=t._hotUpdate;t._hotUpdate=s.markRaw(a=>{r(a),n.addTimelineEvent({layerId:de,event:{time:o(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:X(t.$id),info:X("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z)});const{$dispose:i}=t;t.$dispose=()=>{i(),n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&B(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(z),n.sendInspectorState(z),n.getSettings().logStoreChanges&&B(`"${t.$id}" store installed 🆕`)})}let Fo=0,ie;function Wo(e,t,n){const o=t.reduce((r,i)=>(r[i]=s.toRaw(e)[i],r),{});for(const r in o)e[r]=function(){const i=Fo,a=n?new Proxy(e,{get(...c){return ie=i,Reflect.get(...c)},set(...c){return ie=i,Reflect.set(...c)}}):e;ie=i;const l=o[r].apply(a,arguments);return ie=void 0,l}}function Wi({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){Wo(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;s.toRaw(t)._hotUpdate=function(r){o.apply(this,arguments),Wo(t,Object.keys(r._hmrPayload.actions),!!t._isOptionsAPI)}}Fi(e,t)}}function Gi(){const e=s.effectScope(!0),t=e.run(()=>s.ref({}));let n=[],o=[];const r=s.markRaw({install(i){je(r),r._a=i,i.provide($o,r),i.config.globalProperties.$pinia=r,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ae&&Ki(i,r),o.forEach(a=>n.push(a)),o=[]},use(i){return this._a?n.push(i):o.push(i),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(Wi),r}function Go(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]=Go(r,o):e[n]=o}return e}const Yo=()=>{};function qo(e,t,n,o=Yo){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!n&&s.getCurrentScope()&&s.onScopeDispose(r),r}function ke(e,...t){e.slice().forEach(n=>{n(...t)})}const Yi=e=>e(),Jo=Symbol(),Mt=Symbol();function Bt(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]=Bt(r,o):e[n]=o}return e}const qi=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Ji(e){return!ue(e)||!Object.prototype.hasOwnProperty.call(e,qi)}const{assign:q}=Object;function Xo(e){return!!(s.isRef(e)&&e.effect)}function Zo(e,t,n,o){const{state:r,actions:i,getters:a}=t,l=n.state.value[e];let c;function u(){!l&&(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 q(d,i,Object.keys(a||{}).reduce((h,f)=>(process.env.NODE_ENV!=="production"&&f in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),h[f]=s.markRaw(s.computed(()=>{je(n);const m=n._s.get(e);return a[f].call(m,m)})),h),{}))}return c=Ut(e,u,t,n,o,!0),c}function Ut(e,t,n={},o,r,i){let a;const l=q({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&(c.onTrigger=T=>{u?m=T:u==!1&&!O._hotUpdating&&(Array.isArray(m)?m.push(T):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,d,h=[],f=[],m;const _=o.state.value[e];!i&&!_&&(process.env.NODE_ENV==="production"||!r)&&(o.state.value[e]={});const v=s.ref({});let p;function E(T){let y;u=d=!1,process.env.NODE_ENV!=="production"&&(m=[]),typeof T=="function"?(T(o.state.value[e]),y={type:Q.patchFunction,storeId:e,events:m}):(Bt(o.state.value[e],T),y={type:Q.patchObject,payload:T,storeId:e,events:m});const S=p=Symbol();s.nextTick().then(()=>{p===S&&(u=!0)}),d=!0,ke(h,y,o.state.value[e])}const I=i?function(){const{state:T}=n,y=T?T():{};this.$patch(S=>{q(S,y)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Yo;function N(){a.stop(),h=[],f=[],o._s.delete(e)}const D=(T,y="")=>{if(Jo in T)return T[Mt]=y,T;const S=function(){je(o);const P=Array.from(arguments),R=[],F=[];function U(b){R.push(b)}function g(b){F.push(b)}ke(f,{args:P,name:S[Mt],store:O,after:U,onError:g});let k;try{k=T.apply(this&&this.$id===e?this:O,P)}catch(b){throw ke(F,b),b}return k instanceof Promise?k.then(b=>(ke(R,b),b)).catch(b=>(ke(F,b),Promise.reject(b))):(ke(R,k),k)};return S[Jo]=!0,S[Mt]=y,S},A=s.markRaw({actions:{},getters:{},state:[],hotState:v}),G={_p:o,$id:e,$onAction:qo.bind(null,f),$patch:E,$reset:I,$subscribe(T,y={}){const S=qo(h,T,y.detached,()=>P()),P=a.run(()=>s.watch(()=>o.state.value[e],R=>{(y.flush==="sync"?d:u)&&T({storeId:e,type:Q.direct,events:m},R)},q({},c,y)));return S},$dispose:N},O=s.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ae?q({_hmrPayload:A,_customProperties:s.markRaw(new Set)},G):G);o._s.set(e,O);const $=(o._a&&o._a.runWithContext||Yi)(()=>o._e.run(()=>(a=s.effectScope()).run(()=>t({action:D}))));for(const T in $){const y=$[T];if(s.isRef(y)&&!Xo(y)||s.isReactive(y))process.env.NODE_ENV!=="production"&&r?v.value[T]=s.toRef($,T):i||(_&&Ji(y)&&(s.isRef(y)?y.value=_[T]:Bt(y,_[T])),o.state.value[e][T]=y),process.env.NODE_ENV!=="production"&&A.state.push(T);else if(typeof y=="function"){const S=process.env.NODE_ENV!=="production"&&r?y:D(y,T);$[T]=S,process.env.NODE_ENV!=="production"&&(A.actions[T]=y),l.actions[T]=y}else process.env.NODE_ENV!=="production"&&Xo(y)&&(A.getters[T]=i?n.getters[T]:y,ae&&($._getters||($._getters=s.markRaw([]))).push(T))}if(q(O,$),q(s.toRaw(O),$),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");E(y=>{q(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],P=O.$state[y];typeof S=="object"&&ue(S)&&ue(P)?Go(S,P):T.$state[y]=P}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]=D(S,y)}for(const y in T._hmrPayload.getters){const S=T._hmrPayload.getters[y],P=i?s.computed(()=>(je(o),S.call(O,O))):S;O[y]=P}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,q({value:O[y]},T))})}return o._p.forEach(T=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ae){const y=a.run(()=>T({store:O,app:o._a,pinia:o,options:l}));Object.keys(y||{}).forEach(S=>O._customProperties.add(S)),q(O,y)}else q(O,a.run(()=>T({store:O,app:o._a,pinia:o,options:l})))}),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}".`),_&&i&&n.hydrate&&n.hydrate(O.$state,_),u=!0,
|
|
9
|
+
Found in store "${O.$id}".`),_&&i&&n.hydrate&&n.hydrate(O.$state,_),u=!0,d=!0,O}/*! #__NO_SIDE_EFFECTS__ */function Xi(e,t,n){let o;const r=typeof t=="function";o=r?n:t;function i(a,l){const c=s.hasInjectionContext();if(a=(process.env.NODE_ENV==="test"&&Le&&Le._testing?null:a)||(c?s.inject($o,null):null),a&&je(a),process.env.NODE_ENV!=="production"&&!Le)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=$e,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 f="__hot:"+e,h=r?Ut(f,t,o,a,!0):Zo(f,G({},o),a,!0);l._hotUpdate(h),delete a.state.value[f],a._s.delete(f)}if(process.env.NODE_ENV!=="production"&&se){const f=s.getCurrentInstance();if(f&&f.proxy&&!l){const h=f.proxy,d="_pStores"in h?h._pStores:h._pStores={};d[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}}z(class ct{constructor(t,n){if(z(this,"name"),z(this,"registry"),z(this,"router"),z(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 ke=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 je(){var e=Date.now()*1e3;return e<=Ht&&(e=Ht+1),Ht=e,e}var tl=je,nl="native";function ol(e){var t={time:je(),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),ke}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){z(this,"ttl"),z(this,"map",new Map),z(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=je,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(f){return u(f)},a.onsuccess=function(f){c(f.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 f=l();f.onerror=function(h){return u(h)},f.onsuccess=function(h){var d=h.target.result;d?d.value.id<t+1?d.continue(t+1):(r.push(d.value),d.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:ke,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?ke:_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))}),ke})}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=je,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 Dl(e){window.removeEventListener("storage",e)}function xl(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){Dl(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:xl,close:Al,onMessage:$l,postMessage:Pl,canBeUsed:lr,type:Nl,averageResponseTime:Ll,microSeconds:Vl},cr=je,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:ke;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function pr(e,t,n){var o=e.method.microSeconds(),r={time:o,type:t,data:n},i=e._prepP?e._prepP:ke;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,f=((l=i==null?void 0:i.share)==null?void 0:l.omit)??[];if(!u)return;const h=new Gt(r.$id,{type:n});let d=0,m=!1;const _=Object.keys(r.$state).filter(v=>!f.includes(v)&&Zl(v,r.$state));h.onmessage=v=>{if(v===void 0){h.postMessage({timestamp:d,state:gr(r.$state,o)});return}v.timestamp<=d||(m=!0,d=v.timestamp,r.$patch(p=>{_.forEach(w=>{p[w]=v.state[w]})}))},(((c=i==null?void 0:i.share)==null?void 0:c.initialize)??t)&&h.postMessage(void 0),r.$subscribe((v,p)=>{m||(d=Date.now(),h.postMessage({timestamp:d,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.`);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"]))}});/*!
|
|
12
12
|
* pinia v3.0.3
|
|
13
13
|
* (c) 2025 Eduardo San Martin Morote
|
|
14
14
|
* @license MIT
|
|
15
|
-
*/let
|
|
15
|
+
*/let Be;const ot=e=>Be=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 Ue;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ue||(Ue={}));const ze=typeof window<"u";function Er(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]=Er(r,o):e[n]=o}return e}const wr=()=>{};function br(e,t,n,o=wr){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!n&&s.getCurrentScope()&&s.onScopeDispose(r),r}function Se(e,...t){e.slice().forEach(n=>{n(...t)})}const tc=e=>e(),vr=Symbol(),Yt=Symbol();function qt(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]=qt(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:J}=Object;function kr(e){return!!(s.isRef(e)&&e.effect)}function Or(e,t,n,o){const{state:r,actions:i,getters:a}=t,l=n.state.value[e];let c;function u(){!l&&(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,i,Object.keys(a||{}).reduce((h,f)=>(process.env.NODE_ENV!=="production"&&f in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),h[f]=s.markRaw(s.computed(()=>{ot(n);const m=n._s.get(e);return a[f].call(m,m)})),h),{}))}return c=Jt(e,u,t,n,o,!0),c}function Jt(e,t,n={},o,r,i){let a;const l=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=y=>{u?m=y:u==!1&&!O._hotUpdating&&(Array.isArray(m)?m.push(y):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,d,h=[],f=[],m;const _=o.state.value[e];!i&&!_&&(process.env.NODE_ENV==="production"||!r)&&(o.state.value[e]={});const v=s.ref({});let p;function E(y){let S;u=d=!1,process.env.NODE_ENV!=="production"&&(m=[]),typeof y=="function"?(y(o.state.value[e]),S={type:Ue.patchFunction,storeId:e,events:m}):(qt(o.state.value[e],y),S={type:Ue.patchObject,payload:y,storeId:e,events:m});const P=p=Symbol();s.nextTick().then(()=>{p===P&&(u=!0)}),d=!0,Se(h,S,o.state.value[e])}const I=i?function(){const{state:S}=n,P=S?S():{};this.$patch(R=>{J(R,P)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:wr;function N(){a.stop(),h=[],f=[],o._s.delete(e)}const D=(y,S="")=>{if(vr in y)return y[Yt]=S,y;const P=function(){ot(o);const R=Array.from(arguments),F=[],U=[];function g(C){F.push(C)}function k(C){U.push(C)}Se(f,{args:R,name:P[Yt],store:O,after:g,onError:k});let b;try{b=y.apply(this&&this.$id===e?this:O,R)}catch(C){throw Se(U,C),C}return b instanceof Promise?b.then(C=>(Se(F,C),C)).catch(C=>(Se(U,C),Promise.reject(C))):(Se(F,b),b)};return P[vr]=!0,P[Yt]=S,P},A=s.markRaw({actions:{},getters:{},state:[],hotState:v}),G={_p:o,$id:e,$onAction:br.bind(null,f),$patch:E,$reset:I,$subscribe(y,S={}){const P=br(h,y,S.detached,()=>R()),R=a.run(()=>s.watch(()=>o.state.value[e],F=>{(S.flush==="sync"?d:u)&&y({storeId:e,type:Ue.direct,events:m},F)},J({},c,S)));return P},$dispose:N},O=s.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ze?J({_hmrPayload:A,_customProperties:s.markRaw(new Set)},G):G);o._s.set(e,O);const T=(o._a&&o._a.runWithContext||tc)(()=>o._e.run(()=>(a=s.effectScope()).run(()=>t({action:D}))));for(const y in T){const S=T[y];if(s.isRef(S)&&!kr(S)||s.isReactive(S))process.env.NODE_ENV!=="production"&&r?v.value[y]=s.toRef(T,y):i||(_&&oc(S)&&(s.isRef(S)?S.value=_[y]:qt(S,_[y])),o.state.value[e][y]=S),process.env.NODE_ENV!=="production"&&A.state.push(y);else if(typeof S=="function"){const P=process.env.NODE_ENV!=="production"&&r?S:D(S,y);T[y]=P,process.env.NODE_ENV!=="production"&&(A.actions[y]=S),l.actions[y]=S}else process.env.NODE_ENV!=="production"&&kr(S)&&(A.getters[y]=i?n.getters[y]:S,ze&&(T._getters||(T._getters=s.markRaw([]))).push(y))}if(J(O,T),J(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");E(S=>{J(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 P=y.$state[S],R=O.$state[S];typeof P=="object"&&fe(P)&&fe(R)?Er(P,R):y.$state[S]=R}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 P=y[S];O[S]=D(P,S)}for(const S in y._hmrPayload.getters){const P=y._hmrPayload.getters[S],R=i?s.computed(()=>(ot(o),P.call(O,O))):P;O[S]=R}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,J({value:O[S]},y))})}return o._p.forEach(y=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&ze){const S=a.run(()=>y({store:O,app:o._a,pinia:o,options:l}));Object.keys(S||{}).forEach(P=>O._customProperties.add(P)),J(O,S)}else J(O,a.run(()=>y({store:O,app:o._a,pinia:o,options:l})))}),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}".`),_&&i&&n.hydrate&&n.hydrate(O.$state,_),u=!0,
|
|
17
|
+
Found in store "${O.$id}".`),_&&i&&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 i(a,l){const c=s.hasInjectionContext();if(a=(process.env.NODE_ENV==="test"&&Be&&Be._testing?null:a)||(c?s.inject(ec,null):null),a&&ot(a),process.env.NODE_ENV!=="production"&&!Be)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
18
18
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
19
|
-
This will fail in production.`);a=Me,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 f="__hot:"+e,h=r?Jt(f,t,o,a,!0):Or(f,Y({},o),a,!0);l._hotUpdate(h),delete a.state.value[f],a._s.delete(f)}if(process.env.NODE_ENV!=="production"&&Ue){const f=s.getCurrentInstance();if(f&&f.proxy&&!l){const h=f.proxy,d="_pStores"in h?h._pStores:h._pStores={};d[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 Se=sc?window:void 0;function Ie(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function ze(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},o=(l,c,u,f)=>(l.addEventListener(c,u,f),()=>l.removeEventListener(c,u,f)),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=>Ie(u)))!=null?c:[Se].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,f])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const h=lc(f)?{...f}:f;t.push(...l.flatMap(d=>c.flatMap(m=>u.map(_=>o(d,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=Se,...r}=n;let i;const a=fc(()=>o&&"MutationObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},c=s.computed(()=>{const d=s.toValue(e),m=rt(d).map(Ie).filter(ac);return new Set(m)}),u=s.watch(()=>c.value,d=>{l(),a.value&&d.size&&(i=new MutationObserver(t),d.forEach(m=>i.observe(m,r)))},{immediate:!0,flush:"post"}),f=()=>i==null?void 0:i.takeRecords(),h=()=>{u(),l()};return Xt(h),{isSupported:a,stop:h,takeRecords:f}}function hc(e,t,n={}){const{window:o=Se,document:r=o==null?void 0:o.document,flush:i="sync"}=n;if(!o||!r)return cc;let a;const l=f=>{a==null||a(),a=f},c=s.watchEffect(()=>{const f=Ie(e);if(f){const{stop:h}=pc(r,d=>{d.map(m=>[...m.removedNodes]).flat().some(m=>m===f||m.contains(f))&&t(d)},{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=Se,deep:o=!0,triggerOnRemoval:r=!1}=e,i=(t=e.document)!=null?t:n==null?void 0:n.document,a=()=>{var u;let f=i==null?void 0:i.activeElement;if(o)for(;f!=null&&f.shadowRoot;)f=(u=f==null?void 0:f.shadowRoot)==null?void 0:u.activeElement;return f},l=s.shallowRef(),c=()=>{l.value=a()};if(n){const u={capture:!0,passive:!0};ze(n,"blur",f=>{f.relatedTarget===null&&c()},u),ze(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=Se}=t,o=s.computed(()=>Ie(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 ze(o,_c,()=>r.value=!0,l),ze(o,gc,()=>{var c,u,f;return r.value=(f=(u=(c=o.value)==null?void 0:c.matches)==null?void 0:u.call(c,yc))!=null?f:!1},l),{focused:i}}function wc(e,{window:t=Se,scrollTarget:n}={}){const o=s.ref(!1),r=()=>{if(!t)return;const i=t.document,a=Ie(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(()=>Ie(e),()=>r(),{immediate:!0,flush:"post"}),t&&ze(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 f of a.selectors)f instanceof HTMLElement?u.push(f):u.push(f.$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 f of a.selectors.value)f instanceof HTMLElement?u.push(f):u.push(f.$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 f of Object.keys(u)){const[h,...d]=f.split(".");if(h==="keydown"&&d.includes(c)){const m=u[f],_=d.filter(p=>st.includes(p)),v=st.some(p=>{const w=p.charAt(0).toUpperCase()+p.slice(1);return l.getModifierState(w)});if(_.length>0){if(v){for(const p of st)if(d.includes(p)){const w=p.charAt(0).toUpperCase()+p.slice(1);l.getModifierState(w)&&m(l)}}}else v||m(l)}}},i=[];s.onMounted(()=>{for(const a of e){const l=t(a),c=o(a),u=r(a),f=l?[l]:c;for(const h of f){const{focused:d}=Ec(s.ref(h)),m=s.watch(d,_=>{_?h.addEventListener("keydown",u):h.removeEventListener("keydown",u)});i.push(m)}}}),s.onBeforeUnmount(()=>{for(const a of i)a()})}function Te(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]",fe=()=>{},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:fe}))):s.ref(t)}function pe(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 rn=nn?window:void 0;function Ve(e){var t;const n=s.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function xr(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},o=(l,c,u,f)=>(l.addEventListener(c,u,f),()=>l.removeEventListener(c,u,f)),r=s.computed(()=>{const l=pe(s.toValue(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=Dr(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>Ve(u)))!=null?c:[rn].filter(u=>u!=null),pe(s.toValue(r.value?e[1]:e[0])),pe(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([l,c,u,f])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const h=Rr(f)?{...f}:f;t.push(...l.flatMap(d=>c.flatMap(m=>u.map(_=>o(d,m,_,h)))))},{flush:"post"}),a=()=>{i(),n()};return Te(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 d=s.toValue(e),m=pe(d).map(Ve).filter(Sc);return new Set(m)}),u=s.watch(()=>c.value,d=>{l(),a.value&&d.size&&(i=new MutationObserver(t),d.forEach(m=>i.observe(m,r)))},{immediate:!0,flush:"post"}),f=()=>i==null?void 0:i.takeRecords(),h=()=>{u(),l()};return Te(h),{isSupported:a,stop:h,takeRecords:f}}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(d=>Ve(d)):[Ve(h)]}),u=s.watch(c,h=>{if(l(),a.value&&o){i=new ResizeObserver(t);for(const d of h)d&&i.observe(d,r)}},{immediate:!0,flush:"post"}),f=()=>{l(),u()};return Te(f),{isSupported:a,stop:f}}function Dc(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),f=s.shallowRef(0),h=s.shallowRef(0),d=s.shallowRef(0),m=s.shallowRef(0),_=s.shallowRef(0);function v(){const w=Ve(e);if(!w){n&&(l.value=0,c.value=0,u.value=0,f.value=0,h.value=0,d.value=0,m.value=0,_.value=0);return}const I=w.getBoundingClientRect();l.value=I.height,c.value=I.bottom,u.value=I.left,f.value=I.right,h.value=I.top,d.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(()=>Ve(e),w=>!w&&p()),$r(e,p,{attributeFilter:["style","class"]}),r&&xr("scroll",p,{capture:!0,passive:!0}),o&&xr("resize",p,{passive:!0}),Nc(()=>{i&&p()}),{height:l,bottom:c,left:u,right:f,top:h,width:d,x:m,y:_,update:p}}const xc=(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 he(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,f)=>(l.addEventListener(c,u,f),()=>l.removeEventListener(c,u,f)),r=s.computed(()=>{const l=pe(s.toValue(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=Dr(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(u=>he(u)))!=null?c:[an].filter(u=>u!=null),pe(s.toValue(r.value?e[1]:e[0])),pe(s.unref(r.value?e[2]:e[1])),s.toValue(r.value?e[3]:e[2])]},([l,c,u,f])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(u!=null&&u.length))return;const h=Rr(f)?{...f}:f;t.push(...l.flatMap(d=>c.flatMap(m=>u.map(_=>o(d,m,_,h)))))},{flush:"post"}),a=()=>{i(),n()};return Te(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:fe,cancel:fe,trigger:fe}:fe;if(on&&!Lr){Lr=!0;const p={passive:!0};Array.from(o.document.body.children).forEach(w=>w.addEventListener("click",fe,p)),o.document.documentElement.addEventListener("click",fe,p)}let c=!0;const u=p=>s.toValue(r).some(w=>{if(typeof w=="string")return Array.from(o.document.querySelectorAll(w)).some(I=>I===p.target||p.composedPath().includes(I));{const I=he(w);return I&&(p.target===I||p.composedPath().includes(I))}});function f(p){const w=s.toValue(p);return w&&w.$.subTree.shapeFlag===16}function h(p,w){const I=s.toValue(p),N=I.$.subTree&&I.$.subTree.children;return N==null||!Array.isArray(N)?!1:N.some($=>$.el===w.target||w.composedPath().includes($.el))}const d=p=>{const w=he(e);if(p.target!=null&&!(!(w instanceof Element)&&f(e)&&h(e,p))&&!(!w||w===p.target||p.composedPath().includes(w))){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),d(p))},{passive:!0,capture:i}),at(o,"pointerdown",p=>{const w=he(e);c=!u(p)&&!!(w&&!p.composedPath().includes(w))},{passive:!0}),a&&at(o,"blur",p=>{setTimeout(()=>{var w;const I=he(e);((w=o.document.activeElement)==null?void 0:w.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,d(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(d=>he(d)):[he(h)]}),u=s.watch(c,h=>{if(l(),a.value&&o){i=new ResizeObserver(t);for(const d of h)d&&i.observe(d,r)}},{immediate:!0,flush:"post"}),f=()=>{l(),u()};return Te(f),{isSupported:a,stop:f}}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 Te(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(j=>j.barId===a.from.barId&&j.side===a.from.side),u=e.store.connectionHandles.find(j=>j.barId===a.to.barId&&j.side===a.to.side);if(!c||!u)return"";const f=c.position.x+it/2,h=c.position.y+it/2,d=u.position.x+it/2,m=u.position.y+it/2,_=Math.abs(d-f),v=Math.max(_*qc,50),p=f+(a.from.side==="left"?-v:v),w=d+(a.to.side==="left"?-v:v),I={x:.5*f+.5*p,y:.5*h+.5*h},N={x:.5*p+.5*w,y:.5*h+.5*m},$={x:.5*w+.5*d,y:.5*m+.5*m},L={x:.5*I.x+.5*N.x,y:.5*I.y+.5*N.y},F={x:.5*N.x+.5*$.x,y:.5*N.y+.5*$.y},O={x:.5*L.x+.5*F.x,y:.5*L.y+.5*F.y};return`M ${f} ${h} Q ${p} ${h}, ${O.x} ${O.y} Q ${w} ${m}, ${d} ${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:f=>i(c)},null,40,Gc)}),128)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,c=>{var u,f;return s.openBlock(),s.createElementBlock("path",{key:c.id,d:r(c),stroke:((u=c.style)==null?void 0:u.color)||"#666","stroke-width":((f=c.style)==null?void 0:f.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}=Dc(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"),f=u.offsetHeight||0,h=u.offsetWidth||0;let d=((a=e.store.modal.cell)==null?void 0:a.offsetTop)||0;const m=((l=u.querySelector("thead"))==null?void 0:l.offsetHeight)||0;d+=m,d=d+o.value<f?d:d-(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:`${d}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||xc();return rc(`table-${t}`,()=>{const n=()=>{const b={};for(const[S,E]of r.value.entries())for(const[R,C]of i.value.entries())b[`${S}:${R}`]=C[E.name];return b},o=b=>{const S=[Object.assign({},{rowModified:!1})];if(b&&"0:0"in b)return b;const E=new Set;for(let R=0;R<i.value.length;R++){const C=i.value[R];C.parent!==null&&C.parent!==void 0&&E.add(C.parent)}for(let R=0;R<i.value.length;R++){const C=i.value[R];S[R]={childrenOpen:!1,expanded:!1,indent:C.indent||0,isParent:E.has(R),isRoot:C.parent===null||C.parent===void 0,rowModified:!1,open:C.parent===null||C.parent===void 0,parent:C.parent}}return S},r=s.ref(e.columns),i=s.ref(e.rows),a=s.ref(e.config||{}),l=s.ref(e.table||n()),c=s.ref(o(e.display)),u=s.ref(e.modal||{visible:!1}),f=s.ref({}),h=s.ref([]),d=s.ref([]),m=s.ref([]),_=s.computed(()=>r.value.some(b=>b.pinned)),v=s.computed(()=>a.value.view==="gantt"||a.value.view==="tree-gantt"),p=s.computed(()=>a.value.view==="tree"||a.value.view==="tree-gantt"),w=s.computed(()=>`${Math.ceil(i.value.length/100+1)}ch`),I=s.computed(()=>a.value.view?["list","tree","tree-gantt","list-expansion"].includes(a.value.view):!1),N=(b,S)=>l.value[`${b}:${S}`],$=(b,S,E)=>{const R=`${b}:${S}`,C=r.value[b];l.value[R]!==E&&(c.value[S].rowModified=!0),l.value[R]=E,i.value[S]={...i.value[S],[C.name]:E}},L=(b,S,E)=>{const R=`${b}:${S}`;l.value[R]!==E&&(c.value[S].rowModified=!0,f.value[R]=E)},F=b=>{const S=r.value.indexOf(b)===r.value.length-1,E=a.value.fullWidth?b.resizable&&!S:b.resizable;return{width:b.width||"40ch",textAlign:b.align||"center",...E&&{resize:"horizontal",overflow:"hidden",whiteSpace:"nowrap"}}},O=(b,S)=>{if(b<0||b>=r.value.length)return;const E=Math.max(S,40);r.value[b]={...r.value[b],width:`${E}px`}},j=b=>{const S=i.value[b];return v.value&&S.gantt!==void 0},T=b=>!p.value||c.value[b].isRoot||c.value[b].open,g=b=>!p.value&&a.value.view!=="list-expansion"?"":p.value&&(c.value[b].isRoot||c.value[b].isParent)?c.value[b].childrenOpen?"▼":"►":a.value.view==="list-expansion"?c.value[b].expanded?"▼":"►":"",k=b=>{if(p.value){c.value[b].childrenOpen=!c.value[b].childrenOpen;const S=c.value[b].childrenOpen;for(let E=0;E<i.value.length;E++)c.value[E].parent===b&&(c.value[E].open=S,S||(c.value[E].childrenOpen=!1,k(E)))}else a.value.view==="list-expansion"&&(c.value[b].expanded=!c.value[b].expanded)},P=(b,S)=>{const E=N(b,S);return D(b,S,E)},D=(b,S,E)=>{const R=r.value[b],C=i.value[S],x=R.format;return x?typeof x=="function"?x(E,{table:l.value,row:C,column:R}):typeof x=="string"?Function(`"use strict";return (${x})`)()(E,{table:l.value,row:C,column:R}):E:E};return{columns:r,config:a,connectionHandles:d,connectionPaths:m,display:c,ganttBars:h,modal:u,rows:i,table:l,updates:f,hasPinnedColumns:_,isGanttView:v,isTreeView:p,numberedRowWidth:w,zeroColumn:I,closeModal:b=>{var S;b.target instanceof Node&&(S=u.value.parent)!=null&&S.contains(b.target)||u.value.visible&&(u.value.visible=!1)},createConnection:(b,S,E)=>{const R=d.value.find(q=>q.id===b),C=d.value.find(q=>q.id===S);if(!R||!C)return console.warn("Cannot create connection: handle not found"),null;const x={id:`connection-${b}-${S}`,from:{barId:R.barId,side:R.side},to:{barId:C.barId,side:C.side},style:E==null?void 0:E.style,label:E==null?void 0:E.label};return m.value.push(x),x},deleteConnection:b=>{const S=m.value.findIndex(E=>E.id===b);return S>=0?(m.value.splice(S,1),!0):!1},getCellData:N,getCellDisplayValue:P,getConnectionsForBar:b=>m.value.filter(S=>S.from.barId===b||S.to.barId===b),getFormattedValue:D,getHandlesForBar:b=>d.value.filter(S=>S.barId===b),getHeaderCellStyle:F,getIndent:(b,S)=>S&&b===0&&S>0?`${S}ch`:"inherit",getRowExpandSymbol:g,isRowGantt:j,isRowVisible:T,registerConnectionHandle:b=>{const S=d.value.findIndex(E=>E.id===b.id);S>=0?d.value[S]=b:d.value.push(b)},registerGanttBar:b=>{const S=h.value.findIndex(E=>E.id===b.id);S>=0?h.value[S]=b:h.value.push(b)},resizeColumn:O,setCellData:$,setCellText:L,toggleRowExpand:k,unregisterConnectionHandle:b=>{const S=d.value.findIndex(E=>E.id===b);S>=0&&d.value.splice(S,1)},unregisterGanttBar:b=>{const S=h.value.findIndex(E=>E.id===b);S>=0&&h.value.splice(S,1)},updateGanttBar:b=>{var S;const E=(S=i.value[b.rowIndex])==null?void 0:S.gantt;E&&(b.type==="resize"?b.edge==="start"?(E.startIndex=b.newStart,E.endIndex=b.end,E.colspan=E.endIndex-E.startIndex):b.edge==="end"&&(E.startIndex=b.start,E.endIndex=b.newEnd,E.colspan=E.endIndex-E.startIndex):b.type==="bar"&&(E.startIndex=b.newStart,E.endIndex=b.newEnd,E.colspan=E.endIndex-E.startIndex))}}})()},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:d,store:m,args:_,after:v})=>{if(d==="setCellData"||d==="setCellText"){const[p,w,I]=_,N=m.getCellData(p,w);v(()=>{o.value=[...m.rows],r("cellUpdate",{colIndex:p,rowIndex:w,newValue:I,oldValue:N})})}else if(d==="updateGanttBar"){const[p]=_;let w=!1;p.type==="resize"?w=p.oldColspan!==p.newColspan:p.type==="bar"&&(w=p.oldStart!==p.newStart||p.oldEnd!==p.newEnd),w&&v(()=>{r("gantt:drag",p)})}}),s.watch(()=>o.value,d=>{JSON.stringify(d)!==JSON.stringify(a.rows)&&(a.rows=[...d])},{deep:!0}),s.onMounted(()=>{e.columns.some(d=>d.pinned)&&(c(),a.isTreeView&&$r(i,c,{childList:!0,subtree:!0}))});const l=s.computed(()=>a.columns.filter(d=>d.pinned).length),c=()=>{const d=i.value,m=d==null?void 0:d.rows[0],_=d==null?void 0:d.rows[1],v=m?Array.from(m.cells):[];for(const[p,w]of v.entries()){const I=_==null?void 0:_.cells[p];I&&(w.style.width=`${I.offsetWidth}px`)}for(const p of(d==null?void 0:d.rows)||[]){let w=0;const I=[];for(const N of p.cells)(N.classList.contains("sticky-column")||N.classList.contains("sticky-index"))&&(N.style.left=`${w}px`,w+=N.offsetWidth,I.push(N));I.length>0&&I[I.length-1].classList.add("sticky-column-edge")}};window.addEventListener("keydown",d=>{if(d.key==="Escape"&&a.modal.visible){a.modal.visible=!1;const m=a.modal.parent;m&&s.nextTick().then(()=>{m.focus()})}});const u=d=>{var m;if(!d.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=d.gantt)==null?void 0:m.colspan)||a.columns.length-l.value,originalIndex:l.value,width:"auto"}),_},f=d=>{r("connection:event",{type:"create",connection:d})},h=d=>{r("connection:event",{type:"delete",connection:d})};return t({store:a,createConnection:a.createConnection,deleteConnection:a.deleteConnection,getConnectionsForBar:a.getConnectionsForBar,getHandlesForBar:a.getHandlesForBar}),(d,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(d.$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(d.$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,w)=>{var I,N,$;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:($=_.gantt)==null?void 0:$.endIndex,colspan:p.colspan,pinned:p.pinned,rowIndex:v,colIndex:p.originalIndex??w,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":f},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:w,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(d.$slots,"footer",{data:s.unref(a)},void 0,!0),s.renderSlot(d.$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()},f=()=>{};return(h,d)=>{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:f,onKeydown:s.withKeys(f,["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,d[5]||(d[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.`);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
|
|
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=Me,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:l,onKeydown:s.withKeys(l,["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,
|
|
27
|
+
C81.03,234.149,81.03,385.666,81.03,385.666z`})],-1)])))]),_:1})],36),s.createElementVNode("li",{class:"searchtab",onClick:l,onKeydown:s.withKeys(l,["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,f[6]||(f[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":f[0]||(f[0]=_=>o.value=_),ref:"searchinput",style:s.normalizeStyle({display:n.value?"block":"none"}),onClick:f[1]||(f[1]=_=>c(_)),onInput:f[2]||(f[2]=_=>c(_)),onBlur:f[3]||(f[3]=_=>u(_)),onKeydown:f[4]||(f[4]=s.withKeys(_=>u(_),["enter"])),type:"text"},null,36),[[s.vModelText,o.value]])])],36),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.breadcrumbs,_=>(s.openBlock(),s.createElementBlock("li",{key:_.title,style:s.normalizeStyle({display:t.value?"block":"none"})},[s.createVNode(m,{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",pn),e.component("CommandPalette",hn),e.component("Doctype",yr),e.component("Records",Ur),e.component("SheetNav",zr)}};Y.ActionSet=pn,Y.CommandPalette=hn,Y.Doctype=yr,Y.Records=Ur,Y.SheetNav=zr,Y.StonecropDesktop=fu,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});
|
|
28
28
|
//# sourceMappingURL=desktop.umd.cjs.map
|