vite-plugin-vue-devtools 9.0.0-beta.1 → 9.0.0-rc.2

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.
Files changed (37) hide show
  1. package/client/assets/{Checkbox-3-BZG_RU.js → Checkbox-Df0MfFZd.js} +1 -1
  2. package/client/assets/{InspectorState-DucXtGYl.js → InspectorState-BTXZM1WH.js} +1 -1
  3. package/client/assets/{InspectorTree-C4e-JJiX.js → InspectorTree-HaWX0rBG.js} +1 -1
  4. package/client/assets/RecycleScroller.vue_vue_type_script_setup_true_lang-C7mZBLYi-D7DaT_pj.js +1 -0
  5. package/client/assets/_plugin-vue_export-helper-CVBmTk-L.js +5 -0
  6. package/client/assets/browser-agent-rpc-BXhoSh1z-DrvKG05N.js +1 -0
  7. package/client/assets/{components-DNv7Rrwe.js → components-CA_f0zn5.js} +1 -1
  8. package/client/assets/{custom-inspector-Da_34cDJ.js → custom-inspector-ChrPOy08.js} +1 -1
  9. package/client/assets/{graph-C1luIbSW.js → graph-DjbM7QDq.js} +1 -1
  10. package/client/assets/{index-DN6AzVF_.css → index-DeVPR5Sm.css} +1 -1
  11. package/client/assets/{index-C7PEBwPL.js → index-gOL3pdjp.js} +3 -3
  12. package/client/assets/nanoid-Cya-tyvy.js +1 -0
  13. package/client/assets/overview-DlhcQzcv.js +1 -0
  14. package/client/assets/{pages-CGMfqD7Z.js → pages-CFl2Pj99.js} +1 -1
  15. package/client/assets/{plugins-CiKZQpE4.js → plugins-JeK_HZgb.js} +1 -1
  16. package/client/assets/{settings-Ce4aDLyW.js → settings-D4iX_P4F.js} +1 -1
  17. package/client/assets/{splitpanes.esm-Cwf-Yw0X.js → splitpanes.esm-DyLKHMh-.js} +1 -1
  18. package/client/assets/timeline-JU58z8qA.css +1 -0
  19. package/client/assets/timeline-eZr84BKr.js +1 -0
  20. package/client/index.html +4 -4
  21. package/dist/client.mjs +1 -1
  22. package/dist/index.mjs +1 -1
  23. package/package.json +14 -22
  24. package/client/assets/RecycleScroller.vue_vue_type_script_setup_true_lang-C7mZBLYi-Qu6vm2Hq.js +0 -1
  25. package/client/assets/_plugin-vue_export-helper-Bi7R8aHR.js +0 -4
  26. package/client/assets/browser-agent-Pu-FLk6I-Dsjmnbas.js +0 -1
  27. package/client/assets/browser-agent-rpc-BXhoSh1z-D8UCXOqP.js +0 -1
  28. package/client/assets/overview-DoJqxsjr.js +0 -1
  29. package/client/assets/timeline-B8YJRZK8.css +0 -1
  30. package/client/assets/timeline-D2Qq6Gi0.js +0 -1
  31. package/dist/client.cjs +0 -1
  32. package/dist/client.d.cts +0 -11
  33. package/dist/constants-BRtZjlMX.cjs +0 -1
  34. package/dist/dirs.cjs +0 -1
  35. package/dist/dirs.d.cts +0 -3
  36. package/dist/index.cjs +0 -10
  37. package/dist/index.d.cts +0 -23
@@ -1,4 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./browser-agent-rpc-BXhoSh1z-D8UCXOqP.js","./browser-agent-Pu-FLk6I-Dsjmnbas.js"])))=>i.map(i=>d[i]);
2
- import{i as e,r as t}from"./browser-agent-Pu-FLk6I-Dsjmnbas.js";function n(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var r={},i=[],a=()=>{},o=()=>!1,s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith(`onUpdate:`),l=Object.assign,u=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,f=(e,t)=>d.call(e,t),p=Array.isArray,m=e=>C(e)===`[object Map]`,h=e=>C(e)===`[object Set]`,g=e=>C(e)===`[object Date]`,_=e=>typeof e==`function`,v=e=>typeof e==`string`,y=e=>typeof e==`symbol`,b=e=>typeof e==`object`&&!!e,x=e=>(b(e)||_(e))&&_(e.then)&&_(e.catch),S=Object.prototype.toString,C=e=>S.call(e),w=e=>C(e).slice(8,-1),T=e=>C(e)===`[object Object]`,E=e=>v(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,D=n(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),O=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ee=/-\w/g,k=O(e=>e.replace(ee,e=>e.slice(1).toUpperCase())),te=/\B([A-Z])/g,A=O(e=>e.replace(te,`-$1`).toLowerCase()),ne=O(e=>e.charAt(0).toUpperCase()+e.slice(1)),re=O(e=>e?`on${ne(e)}`:``),j=(e,t)=>!Object.is(e,t),ie=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ae=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},oe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},se,ce=()=>se||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function le(e){if(p(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=v(r)?pe(r):le(r);if(i)for(let e in i)t[e]=i[e]}return t}if(v(e)||b(e))return e}var ue=/;(?![^(]*\))/g,de=/:([^]+)/,fe=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function pe(e){let t={};return e.replace(fe,e=>e.startsWith(`/*`)?``:e).split(ue).forEach(e=>{if(e){let n=e.split(de);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function me(e){let t=``;if(v(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){let r=me(e[n]);r&&(t+=r+` `)}else if(b(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function he(e){if(!e)return null;let{class:t,style:n}=e;return t&&!v(t)&&(e.class=me(t)),n&&(e.style=le(n)),e}var ge=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,_e=n(ge);ge+``;function ve(e){return!!e||e===``}function ye(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=Ce(e[i],t[i],n);return r}function be(e,t,n){if(e.size!==t.size)return!1;let r=Array.from(t),i=new Uint8Array(r.length);for(let t of e){let e=-1;for(let a=0;a<r.length;a++)if(!i[a]&&Ce(t,r[a],n)){e=a;break}if(e<0)return!1;i[e]=1}return!0}function xe(e,t,n){let r=m(e),i=m(t);if(r||i||(r=h(e),i=h(t),r||i))return r&&i?be(e,t,n):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e){let i=e.hasOwnProperty(r),a=t.hasOwnProperty(r);if(i&&!a||!i&&a||!Ce(e[r],t[r],n))return!1}return String(e)===String(t)}function Se(e,t,n,r){n||=[new Map,new Map];let[i,a]=n;if(i.has(e)||a.has(t))return i.get(e)===t&&a.get(t)===e;i.set(e,t),a.set(t,e);let o=r(e,t,n);return i.delete(e),a.delete(t),o}function Ce(e,t,n){if(e===t)return!0;let r=g(e),i=g(t);return r||i?r&&i?e.getTime()===t.getTime():!1:(r=y(e),i=y(t),r||i?e===t:(r=p(e),i=p(t),r||i?r&&i?Se(e,t,n,ye):!1:(r=b(e),i=b(t),r||i?!r||!i?!1:Se(e,t,n,xe):String(e)===String(t))))}function we(e,t){return e.findIndex(e=>Ce(e,t))}var Te=e=>!!(e&&e.__v_isRef===!0),Ee=e=>v(e)?e:e==null?``:p(e)||b(e)&&(e.toString===S||!_(e.toString))?Te(e)?Ee(e.value):JSON.stringify(e,De,2):String(e),De=(e,t)=>Te(t)?De(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Oe(t,r)+` =>`]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Oe(e))}:y(t)?Oe(t):b(t)&&!p(t)&&!T(t)?String(t):t,Oe=(e,t=``)=>y(e)?`Symbol(${e.description??t})`:e,M,ke=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&M&&(M.active?(this.parent=M,this.index=(M.scopes||(M.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=M;try{return M=this,e()}finally{M=t}}}on(){++this._on===1&&(this.prevScope=M,M=this)}off(){if(this._on>0&&--this._on===0){if(M===this)M=this.prevScope;else{let e=M;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Ae(){return M}var N,je=new WeakSet,Me=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,M&&(M.active?M.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,je.has(this)&&(je.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ie(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ye(this),ze(this);let e=N,t=Ge;N=this,Ge=!0;try{return this.fn()}finally{Be(this),N=e,Ge=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ue(e);this.deps=this.depsTail=void 0,Ye(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?je.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ve(this)&&this.run()}get dirty(){return Ve(this)}},Ne=0,Pe,Fe;function Ie(e,t=!1){if(e.flags|=8,t){e.next=Fe,Fe=e;return}e.next=Pe,Pe=e}function Le(){Ne++}function Re(){if(--Ne>0)return;if(Fe){let e=Fe;for(Fe=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Pe;){let t=Pe;for(Pe=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function ze(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Be(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Ue(r),We(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ve(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(He(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function He(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Xe)||(e.globalVersion=Xe,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ve(e))))return;e.flags|=2;let t=e.dep,n=N,r=Ge;N=e,Ge=!0;try{ze(e);let n=e.fn(e._value);(t.version===0||j(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{N=n,Ge=r,Be(e),e.flags&=-3}}function Ue(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ue(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function We(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Ge=!0,Ke=[];function qe(){Ke.push(Ge),Ge=!1}function Je(){let e=Ke.pop();Ge=e===void 0||e}function Ye(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=N;N=void 0;try{t()}finally{N=e}}}var Xe=0,Ze=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Qe=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!N||!Ge||N===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==N)t=this.activeLink=new Ze(N,this),N.deps?(t.prevDep=N.depsTail,N.depsTail.nextDep=t,N.depsTail=t):N.deps=N.depsTail=t,$e(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=N.depsTail,t.nextDep=void 0,N.depsTail.nextDep=t,N.depsTail=t,N.deps===t&&(N.deps=e)}return t}trigger(e){this.version++,Xe++,this.notify(e)}notify(e){Le();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Re()}}};function $e(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)$e(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var et=new WeakMap,tt=Symbol(``),nt=Symbol(``),rt=Symbol(``);function P(e,t,n){if(Ge&&N){let t=et.get(e);t||et.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Qe),r.map=t,r.key=n),r.track()}}function it(e,t,n,r,i,a){let o=et.get(e);if(!o){Xe++;return}let s=e=>{e&&e.trigger()};if(Le(),t===`clear`)o.forEach(s);else{let i=p(e),a=i&&E(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===rt||!y(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(rt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(tt)),m(e)&&s(o.get(nt)));break;case`delete`:i||(s(o.get(tt)),m(e)&&s(o.get(nt)));break;case`set`:m(e)&&s(o.get(tt))}}Re()}function at(e,t){let n=et.get(e);return n&&n.get(t)}function ot(e){let t=I(e);return t===e||(P(t,`iterate`,rt),F(e))?t:Wt(e)?Ut(e)?t.map(e=>Jt(qt(e))):t.map(Jt):t.map(qt)}function st(e){return P(e=I(e),`iterate`,rt),e}function ct(e,t){return Wt(e)?Jt(Ut(e)?qt(t):t):qt(t)}var lt={__proto__:null,[Symbol.iterator](){return ut(this,Symbol.iterator,e=>ct(this,e))},concat(...e){return ot(this).concat(...e.map(e=>p(e)?ot(e):e))},entries(){return ut(this,`entries`,e=>(e[1]=ct(this,e[1]),e))},every(e,t){return ft(this,`every`,e,t,void 0,arguments)},filter(e,t){return ft(this,`filter`,e,t,e=>e.map(e=>ct(this,e)),arguments)},find(e,t){return ft(this,`find`,e,t,e=>ct(this,e),arguments)},findIndex(e,t){return ft(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return ft(this,`findLast`,e,t,e=>ct(this,e),arguments)},findLastIndex(e,t){return ft(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return ft(this,`forEach`,e,t,void 0,arguments)},includes(...e){return mt(this,`includes`,e)},indexOf(...e){return mt(this,`indexOf`,e)},join(e){return ot(this).join(e)},lastIndexOf(...e){return mt(this,`lastIndexOf`,e)},map(e,t){return ft(this,`map`,e,t,void 0,arguments)},pop(){return ht(this,`pop`)},push(...e){return ht(this,`push`,e)},reduce(e,...t){return pt(this,`reduce`,e,t)},reduceRight(e,...t){return pt(this,`reduceRight`,e,t)},shift(){return ht(this,`shift`)},some(e,t){return ft(this,`some`,e,t,void 0,arguments)},splice(...e){return ht(this,`splice`,e)},toReversed(){return ot(this).toReversed()},toSorted(e){return ot(this).toSorted(e)},toSpliced(...e){return ot(this).toSpliced(...e)},unshift(...e){return ht(this,`unshift`,e)},values(){return ut(this,`values`,e=>ct(this,e))}};function ut(e,t,n){let r=st(e),i=r[t]();return r!==e&&!F(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var dt=Array.prototype;function ft(e,t,n,r,i,a){let o=st(e),s=o!==e&&!F(e),c=o[t];if(c!==dt[t]){let t=c.apply(e,a);return s?qt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,ct(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function pt(e,t,n,r){let i=st(e),a=i!==e&&!F(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=ct(e,t)),n.call(this,t,ct(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?ct(e,c):c}function mt(e,t,n){let r=I(e);P(r,`iterate`,rt);let i=r[t](...n);return(i===-1||i===!1)&&Gt(n[0])?(n[0]=I(n[0]),r[t](...n)):i}function ht(e,t,n=[]){qe(),Le();let r=I(e)[t].apply(e,n);return Re(),Je(),r}var gt=n(`__proto__,__v_isRef,__isVue`),_t=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(y));function vt(e){y(e)||(e=String(e));let t=I(this);return P(t,`has`,e),t.hasOwnProperty(e)}var yt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Lt:It:i?Ft:Pt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=p(e);if(!r){let e;if(a&&(e=lt[t]))return e;if(t===`hasOwnProperty`)return vt}let o=Reflect.get(e,t,L(e)?e:n);if((y(t)?_t.has(t):gt(t))||(r||P(e,`get`,t),i))return o;if(L(o)){let e=a&&E(t)?o:o.value;return r&&b(e)?Vt(e):e}return b(o)?r?Vt(o):zt(o):o}},bt=class extends yt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=p(e)&&E(t);if(!this._isShallow){let e=Wt(i);if(!F(n)&&!Wt(n)&&(i=I(i),n=I(n)),!a&&L(i)&&!L(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:f(e,t),s=Reflect.set(e,t,n,L(e)?e:r);return e===I(r)&&s&&(o?j(n,i)&&it(e,`set`,t,n,i):it(e,`add`,t,n)),s}deleteProperty(e,t){let n=f(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&it(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!y(t)||!_t.has(t))&&P(e,`has`,t),n}ownKeys(e){return P(e,`iterate`,p(e)?`length`:tt),Reflect.ownKeys(e)}},xt=class extends yt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},St=new bt,Ct=new xt,wt=new bt(!0),Tt=e=>e,Et=e=>Reflect.getPrototypeOf(e);function Dt(e,t,n){return function(...r){let i=this.__v_raw,a=I(i),o=m(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,u=i[e](...r),d=n?Tt:t?Jt:qt;return!t&&P(a,`iterate`,c?nt:tt),l(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Ot(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function kt(e,t){let n={get(n){let r=this.__v_raw,i=I(r),a=I(n);e||(j(n,a)&&P(i,`get`,n),P(i,`get`,a));let{has:o}=Et(i),s=t?Tt:e?Jt:qt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&P(I(t),`iterate`,tt),t.size},has(t){let n=this.__v_raw,r=I(n),i=I(t);return e||(j(t,i)&&P(r,`has`,t),P(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=I(a),s=t?Tt:e?Jt:qt;return!e&&P(o,`iterate`,tt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return l(n,e?{add:Ot(`add`),set:Ot(`set`),delete:Ot(`delete`),clear:Ot(`clear`)}:{add(e){let n=I(this),r=Et(n),i=I(e),a=!t&&!F(e)&&!Wt(e)?i:e;return r.has.call(n,a)||j(e,a)&&r.has.call(n,e)||j(i,a)&&r.has.call(n,i)||(n.add(a),it(n,`add`,a,a)),this},set(e,n){!t&&!F(n)&&!Wt(n)&&(n=I(n));let r=I(this),{has:i,get:a}=Et(r),o=i.call(r,e);o||=(e=I(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?j(n,s)&&it(r,`set`,e,n,s):it(r,`add`,e,n),this},delete(e){let t=I(this),{has:n,get:r}=Et(t),i=n.call(t,e);i||=(e=I(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&it(t,`delete`,e,void 0,a),o},clear(){let e=I(this),t=e.size!==0,n=e.clear();return t&&it(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Dt(r,e,t)}),n}function At(e,t){let n=kt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(f(n,r)&&r in t?n:t,r,i)}var jt={get:At(!1,!1)},Mt={get:At(!1,!0)},Nt={get:At(!0,!1)},Pt=new WeakMap,Ft=new WeakMap,It=new WeakMap,Lt=new WeakMap;function Rt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function zt(e){return Wt(e)?e:Ht(e,!1,St,jt,Pt)}function Bt(e){return Ht(e,!1,wt,Mt,Ft)}function Vt(e){return Ht(e,!0,Ct,Nt,It)}function Ht(e,t,n,r,i){if(!b(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Rt(w(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Ut(e){return Wt(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function Wt(e){return!!(e&&e.__v_isReadonly)}function F(e){return!!(e&&e.__v_isShallow)}function Gt(e){return e?!!e.__v_raw:!1}function I(e){let t=e&&e.__v_raw;return t?I(t):e}function Kt(e){return!f(e,`__v_skip`)&&Object.isExtensible(e)&&ae(e,`__v_skip`,!0),e}var qt=e=>b(e)?zt(e):e,Jt=e=>b(e)?Vt(e):e;function L(e){return e?e.__v_isRef===!0:!1}function R(e){return Xt(e,!1)}function Yt(e){return Xt(e,!0)}function Xt(e,t){return L(e)?e:new Zt(e,t)}var Zt=class{constructor(e,t){this.dep=new Qe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:I(e),this._value=t?e:qt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||F(e)||Wt(e);e=n?e:I(e),j(e,t)&&(this._rawValue=e,this._value=n?e:qt(e),this.dep.trigger())}};function Qt(e){return L(e)?e.value:e}function $t(e){return _(e)?e():Qt(e)}var en={get:(e,t,n)=>t===`__v_raw`?e:Qt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return L(i)&&!L(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function tn(e){return Ut(e)?e:new Proxy(e,en)}var nn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new Qe,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function rn(e){return new nn(e)}function an(e){let t=p(e)?Array(e.length):{};for(let n in e)t[n]=ln(e,n);return t}var on=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=y(t)?t:String(t),this._raw=I(e);let r=!0,i=e;if(!p(e)||y(this._key)||!E(this._key))do r=!Gt(i)||F(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=Qt(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&L(this._raw[this._key])){let t=this._object[this._key];if(L(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return at(this._raw,this._key)}},sn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function cn(e,t,n){return L(e)?e:_(e)?new sn(e):b(e)&&arguments.length>1?ln(e,t,n):R(e)}function ln(e,t,n){return new on(e,t,n)}var un=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Qe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Xe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&N!==this)return Ie(this,!0),!0}get value(){let e=this.dep.track();return He(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function dn(e,t,n=!1){let r,i;return _(e)?r=e:(r=e.get,i=e.set),new un(r,i,n)}var fn={},pn=new WeakMap,mn=void 0;function hn(e,t=!1,n=mn){if(n){let t=pn.get(n);t||pn.set(n,t=[]),t.push(e)}}function gn(e,t,n=r){let{immediate:i,deep:o,once:s,scheduler:c,augmentJob:l,call:d}=n,f=e=>o?e:F(e)||o===!1||o===0?_n(e,1):_n(e),m,h,g,v,y=!1,b=!1;if(L(e)?(h=()=>e.value,y=F(e)):Ut(e)?(h=()=>f(e),y=!0):p(e)?(b=!0,y=e.some(e=>Ut(e)||F(e)),h=()=>e.map(e=>{if(L(e))return e.value;if(Ut(e))return f(e);if(_(e))return d?d(e,2):e()})):h=_(e)?t?d?()=>d(e,2):e:()=>{if(g){qe();try{g()}finally{Je()}}let t=mn;mn=m;try{return d?d(e,3,[v]):e(v)}finally{mn=t}}:a,t&&o){let e=h,t=o===!0?1/0:o;h=()=>_n(e(),t)}let x=Ae(),S=()=>{m.stop(),x&&x.active&&u(x.effects,m)};if(s&&t){let e=t;t=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(fn):fn,w=e=>{if(m.flags&1&&(m.dirty||e)){if(t){let n=m.run();if(e||o||y||(b?n.some((e,t)=>j(e,C[t])):j(n,C))){g&&g();let e=mn;mn=m;try{let e=[n,C===fn?void 0:b&&C[0]===fn?[]:C,v];C=n,d?d(t,3,e):t(...e)}finally{mn=e}}}else m.run()}};return l&&l(w),m=new Me(h),m.scheduler=c?()=>c(w,!1):w,v=e=>hn(e,!1,m),g=m.onStop=()=>{let e=pn.get(m);if(e){if(d)d(e,4);else for(let t of e)t();pn.delete(m)}},t?i?w(!0):C=m.run():c?c(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function _n(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,L(e))_n(e.value,t,n);else if(p(e))for(let r=0;r<e.length;r++)_n(e[r],t,n);else if(h(e)||m(e))e.forEach(e=>{_n(e,t,n)});else if(T(e)){for(let r in e)_n(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&_n(e[r],t,n)}return e}function vn(e,t,n,r){try{return r?e(...r):e()}catch(e){bn(e,t,n)}}function yn(e,t,n,r){if(_(e)){let i=vn(e,t,n,r);return i&&x(i)&&i.catch(e=>{bn(e,t,n)}),i}if(p(e)){let i=[];for(let a=0;a<e.length;a++)i.push(yn(e[a],t,n,r));return i}}function bn(e,t,n,i=!0){let a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||r;if(t){let r=t.parent,i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,a)===!1)return}r=r.parent}if(o){qe(),vn(o,null,10,[e,i,a]),Je();return}}xn(e,n,a,i,s)}function xn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var z=[],Sn=-1,Cn=[],wn=null,Tn=0,En=Promise.resolve(),Dn=null;function On(e){let t=Dn||En;return e?t.then(this?e.bind(this):e):t}function kn(e){let t=Sn+1,n=z.length;for(;t<n;){let r=t+n>>>1,i=z[r],a=Fn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function An(e){if(!(e.flags&1)){let t=Fn(e),n=z[z.length-1];!n||!(e.flags&2)&&t>=Fn(n)?z.push(e):z.splice(kn(t),0,e),e.flags|=1,jn()}}function jn(){Dn||=En.then(In)}function Mn(e){if(!p(e))wn&&e.id===-1?wn.splice(Tn+1,0,e):e.flags&1||(Cn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Cn.push(e[t]);jn()}function Nn(e,t,n=Sn+1){for(;n<z.length;n++){let t=z[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;z.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function Pn(e){if(Cn.length){let e=[...new Set(Cn)].sort((e,t)=>Fn(e)-Fn(t));if(Cn.length=0,wn){for(let t=0;t<e.length;t++)wn.push(e[t]);return}for(wn=e,Tn=0;Tn<wn.length;Tn++){let e=wn[Tn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}wn=null,Tn=0}}var Fn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function In(e){try{for(Sn=0;Sn<z.length;Sn++){let e=z[Sn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),vn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Sn<z.length;Sn++){let e=z[Sn];e&&(e.flags&=-2)}Sn=-1,z.length=0,Pn(e),Dn=null,(z.length||Cn.length)&&In(e)}}var B=null,Ln=null;function Rn(e){let t=B;return B=e,Ln=e&&e.type.__scopeId||null,t}function zn(e){Ln=e}function Bn(){Ln=null}var Vn=e=>Hn;function Hn(e,t=B,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&pa(-1);let i=Rn(t),a=la.length,o;try{o=e(...n)}finally{for(let e=la.length;e>a;e--)da();Rn(i),r._d&&pa(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Un(e,t){if(B===null)return e;let n=Ya(B),i=e.dirs||=[];for(let e=0;e<t.length;e++){let[a,o,s,c=r]=t[e];a&&(_(a)&&(a={mounted:a,updated:a}),a.deep&&_n(o),i.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Wn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(qe(),yn(c,n,8,[e.el,s,e,t]),Je())}}function Gn(e,t){if(K){let n=K.provides,r=K.parent&&K.parent.provides;r===n&&(n=K.provides=Object.create(r)),n[e]=t}}function Kn(e,t,n=!1){let r=Ia();if(r||gi){let i=gi?gi._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&_(t)?t.call(r&&r.proxy):t}}var qn=Symbol.for(`v-scx`),Jn=()=>Kn(qn);function Yn(e,t){return Qn(e,null,t)}function Xn(e,t){return Qn(e,null,{flush:`sync`})}function Zn(e,t,n){return Qn(e,t,n)}function Qn(e,t,n=r){let{immediate:i,deep:o,flush:s,once:c}=n,u=l({},n),d=t&&i||!t&&s!==`post`,f;if(Ha){if(s===`sync`){let e=Jn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=a,e.resume=a,e.pause=a,e}}let p=K;u.call=(e,t,n)=>yn(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{H(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():An(e)}),u.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=gn(e,t,u);return Ha&&(f?f.push(h):d&&h()),h}function $n(e,t,n){let r=this.proxy,i=v(e)?e.includes(`.`)?er(r,e):()=>r[e]:e.bind(r,r),a;_(t)?a=t:(a=t.handler,n=t);let o=za(this),s=Qn(i,a.bind(r),n);return o(),s}function er(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var tr=Symbol(`_vte`),nr=e=>e.__isTeleport,rr=Symbol(`_leaveCb`);function ir(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==sa){t=n;break}}return t}function ar(e){if(!hr(e))return nr(e.type)&&e.children?ir(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&_(n.default))return n.default()}}function or(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;or(nr(n.type)&&ar(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function sr(e,t){return _(e)?l({name:e.name},t,{setup:e}):e}function cr(){let e=Ia();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function lr(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function ur(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var dr=new WeakMap;function fr(e,t,n,i,a=!1){if(p(e)){e.forEach((e,r)=>fr(e,t&&(p(t)?t[r]:t),n,i,a));return}if(mr(i)&&!a){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&fr(e,t,n,i.component.subTree);return}let s=i.shapeFlag&4?Ya(i.component):i.el,c=a?null:s,{i:l,r:d}=e,m=t&&t.r,h=l.refs===r?l.refs={}:l.refs,g=l.setupState,y=I(g),b=g===r?o:e=>!ur(h,e)&&f(y,e),x=(e,t)=>!(t&&ur(h,t));if(m!=null&&m!==d){if(pr(t),v(m))h[m]=null,b(m)&&(g[m]=null);else if(L(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(_(d))vn(d,l,12,[c,h]);else{let t=v(d),r=L(d);if(t||r){let i=()=>{if(e.f){let n=t?b(d)?g[d]:h[d]:x(d)||!e.k?d.value:h[e.k];if(a)p(n)&&u(n,s);else if(p(n))n.includes(s)||n.push(s);else if(t)h[d]=[s],b(d)&&(g[d]=h[d]);else{let t=[s];x(d,e.k)&&(d.value=t),e.k&&(h[e.k]=t)}}else t?(h[d]=c,b(d)&&(g[d]=c)):r&&(x(d,e.k)&&(d.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),dr.delete(e)};t.id=-1,dr.set(e,t),H(t,n)}else pr(e),i()}}}function pr(e){let t=dr.get(e);t&&(t.flags|=8,dr.delete(e))}ce().requestIdleCallback,ce().cancelIdleCallback;var mr=e=>!!e.type.__asyncLoader,hr=e=>e.type.__isKeepAlive;function gr(e,t){vr(e,`a`,t)}function _r(e,t){vr(e,`da`,t)}function vr(e,t,n=K){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(br(t,r,n),n){let e=n.parent;for(;e&&e.parent;)hr(e.parent.vnode)&&yr(r,t,n,e),e=e.parent}}function yr(e,t,n,r){let i=br(t,e,r,!0);Dr(()=>{u(r[t],i)},n)}function br(e,t,n=K,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{qe();let i=za(n),a=yn(t,n,e,r);return i(),Je(),a};return r?i.unshift(a):i.push(a),a}}var xr=e=>(t,n=K)=>{(!Ha||e===`sp`)&&br(e,(...e)=>t(...e),n)},Sr=xr(`bm`),Cr=xr(`m`),wr=xr(`bu`),Tr=xr(`u`),Er=xr(`bum`),Dr=xr(`um`),Or=xr(`sp`),kr=xr(`rtg`),Ar=xr(`rtc`);function jr(e,t=K){br(`ec`,e,t)}var Mr=`components`,Nr=`directives`;function Pr(e,t){return Rr(Mr,e,!0,t)||e}var Fr=Symbol.for(`v-ndc`);function Ir(e){return v(e)?Rr(Mr,e,!1)||e:e||Fr}function Lr(e){return Rr(Nr,e)}function Rr(e,t,n=!0,r=!1){let i=B||K;if(i){let n=i.type;if(e===Mr){let e=Xa(n,!1);if(e&&(e===t||e===k(t)||e===ne(k(t))))return n}let a=zr(i[e]||n[e],t)||zr(i.appContext[e],t);return!a&&r?n:a}}function zr(e,t){return e&&(e[t]||e[k(t)]||e[ne(k(t))])}function Br(e,t,n,r){let i,a=n&&n[r],o=p(e);if(o||v(e)){let n=o&&Ut(e),r=!1,s=!1;n&&(r=!F(e),s=Wt(e),e=st(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Jt(qt(e[n])):qt(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(b(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}function Vr(e,t,n,r,i,a){if(n??={},B.ce||B.parent&&mr(B.parent)&&B.parent.ce){let e=a!=null&&n.key==null?l({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),ua(),ga(U,null,[G(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=la.length;ua();let c;try{let i=o&&Hr(o(n)),s=n.key||a||i&&i.key;c=ga(U,{key:(s&&!y(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=la.length;e>s;e--)da();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function Hr(e){return e.some(e=>!_a(e)||!(e.type===sa||e.type===U&&!Hr(e.children)))?e:null}function Ur(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:re(r)]=e[r];return n}var Wr=e=>e?Va(e)?Ya(e):Wr(e.parent):null,Gr=l(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Wr(e.parent),$root:e=>Wr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ii(e),$forceUpdate:e=>e.f||=()=>{An(e.update)},$nextTick:e=>e.n||=On.bind(e.proxy),$watch:e=>$n.bind(e)}),Kr=(e,t)=>e!==r&&!e.__isScriptSetup&&f(e,t),qr={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else if(Kr(i,t))return s[t]=1,i[t];else if(a!==r&&f(a,t))return s[t]=2,a[t];else if(f(o,t))return s[t]=3,o[t];else if(n!==r&&f(n,t))return s[t]=4,n[t];else $r&&(s[t]=0)}let u=Gr[t],d,p;if(u)return t===`$attrs`&&P(e.attrs,`get`,``),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==r&&f(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,f(p,t))return p[t]},set({_:e},t,n){let{data:i,setupState:a,ctx:o}=e;return Kr(a,t)?(a[t]=n,!0):i!==r&&f(i,t)?(i[t]=n,!0):f(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(n[c]||e!==r&&c[0]!==`$`&&f(e,c)||Kr(t,c)||f(o,c)||f(i,c)||f(Gr,c)||f(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?f(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Jr(){return Xr(`useSlots`).slots}function Yr(){return Xr(`useAttrs`).attrs}function Xr(e){let t=Ia();return t.setupContext||=Ja(t)}function Zr(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Qr(e,t){return!e||!t?e||t:p(e)&&p(t)?e.concat(t):l({},Zr(e),Zr(t))}var $r=!0;function ei(e){let t=ii(e),n=e.proxy,r=e.ctx;$r=!1,t.beforeCreate&&ni(t.beforeCreate,e,`bc`);let{data:i,computed:o,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:f,mounted:m,beforeUpdate:h,updated:g,activated:v,deactivated:y,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:E,renderTriggered:D,errorCaptured:O,serverPrefetch:ee,expose:k,inheritAttrs:te,components:A,directives:ne,filters:re}=t;if(u&&ti(u,r,null),s)for(let e in s){let t=s[e];_(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);b(t)&&(e.data=zt(t))}if($r=!0,o)for(let e in o){let t=o[e],i=Qa({get:_(t)?t.bind(n,n):_(t.get)?t.get.bind(n,n):a,set:!_(t)&&_(t.set)?t.set.bind(n):a});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(c)for(let e in c)ri(c[e],r,n,e);if(l){let e=_(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Gn(t,e[t])})}d&&ni(d,e,`c`);function j(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(Sr,f),j(Cr,m),j(wr,h),j(Tr,g),j(gr,v),j(_r,y),j(jr,O),j(Ar,E),j(kr,D),j(Er,S),j(Dr,w),j(Or,ee),p(k)){if(k.length){let t=e.exposed||={};k.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}T&&e.render===a&&(e.render=T),te!=null&&(e.inheritAttrs=te),A&&(e.components=A),ne&&(e.directives=ne),ee&&lr(e)}function ti(e,t,n=a){p(e)&&(e=li(e));for(let n in e){let r=e[n],i;i=b(r)?`default`in r?Kn(r.from||n,r.default,!0):Kn(r.from||n):Kn(r),L(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function ni(e,t,n){yn(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ri(e,t,n,r){let i=r.includes(`.`)?er(n,r):()=>n[r];if(v(e)){let n=t[e];_(n)&&Zn(i,n)}else if(_(e))Zn(i,e.bind(n));else if(b(e)){if(p(e))e.forEach(e=>ri(e,t,n,r));else{let r=_(e.handler)?e.handler.bind(n):t[e.handler];_(r)&&Zn(i,r,e)}}}function ii(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>ai(c,e,o,!0)),ai(c,t,o)),b(t)&&a.set(t,c),c}function ai(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&ai(e,a,n,!0),i&&i.forEach(t=>ai(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=oi[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var oi={data:si,props:di,emits:di,methods:ui,computed:ui,beforeCreate:V,created:V,beforeMount:V,mounted:V,beforeUpdate:V,updated:V,beforeDestroy:V,beforeUnmount:V,destroyed:V,unmounted:V,activated:V,deactivated:V,errorCaptured:V,serverPrefetch:V,components:ui,directives:ui,watch:fi,provide:si,inject:ci};function si(e,t){return t?e?function(){return l(_(e)?e.call(this,this):e,_(t)?t.call(this,this):t)}:t:e}function ci(e,t){return ui(li(e),li(t))}function li(e){if(p(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function V(e,t){return e?[...new Set([].concat(e,t))]:t}function ui(e,t){return e?l(Object.create(null),e,t):t}function di(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),Zr(e),Zr(t??{})):t}function fi(e,t){if(!e)return t;if(!t)return e;let n=l(Object.create(null),e);for(let r in t)n[r]=V(e[r],t[r]);return n}function pi(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var mi=0;function hi(e,t){return function(n,r=null){_(n)||(n=l({},n)),r!=null&&!b(r)&&(r=null);let i=pi(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:mi++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:eo,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&_(e.install)?(a.add(e),e.install(c,...t)):_(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||G(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,Ya(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(yn(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=gi;gi=c;try{return e()}finally{gi=t}}};return c}}var gi=null;function _i(e,t,n=r){let i=Ia(),a=k(t),o=A(t),s=vi(e,a),c=rn((s,c)=>{let l,u=r,d;return Xn(()=>{let t=e[a];j(l,t)&&(l=t,c())}),{get(){return s(),n.get?n.get(l):l},set(e){let s=n.set?n.set(e):e;if(!j(s,l)&&!(u!==r&&j(e,u)))return;let f=i.vnode.props,p=!!(f&&(t in f||a in f||o in f)&&(`onUpdate:${t}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f));p||(l=e,c()),i.emit(`update:${t}`,s),j(e,u)&&(j(e,s)&&!j(s,d)||p&&u!==r&&!j(s,l))&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||r:c,done:!1}:{done:!0}}}},c}var vi=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${k(t)}Modifiers`]||e[`${A(t)}Modifiers`];function yi(e,t,...n){if(e.isUnmounted)return;let i=e.vnode.props||r,a=n,o=t.startsWith(`update:`),s=o&&vi(i,t.slice(7));s&&(s.trim&&(a=n.map(e=>v(e)?e.trim():e)),s.number&&(a=a.map(oe)));let c,l=i[c=re(t)]||i[c=re(k(t))];!l&&o&&(l=i[c=re(A(t))]),l&&yn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,yn(u,e,6,a)}}var bi=new WeakMap;function xi(e,t,n=!1){let r=n?bi:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!_(e)){let r=e=>{let n=xi(e,t,!0);n&&(s=!0,l(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(b(e)&&r.set(e,null),null):(p(a)?a.forEach(e=>o[e]=null):l(o,a),b(e)&&r.set(e,o),o)}function Si(e,t){return!e||!s(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),f(e,t[0].toLowerCase()+t.slice(1))||f(e,A(t))||f(e,t))}function Ci(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=Rn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Oa(u.call(t,e,d,f,m,p,h)),y=s}else{let e=t;v=Oa(e.length>1?e(f,{attrs:s,slots:o,emit:l}):e(f,null)),y=t.props?s:wi(s)}}catch(t){la.length=0,bn(t,e,1),v=G(sa)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(c)&&(y=Ti(y,a)),b=wa(b,y,!1,!0))}return n.dirs&&(b=wa(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&or(nr(b.type)&&ar(b)||b,n.transition),v=b,Rn(_),v}var wi=e=>{let t;for(let n in e)(n===`class`||n===`style`||s(n))&&((t||={})[n]=e[n]);return t},Ti=(e,t)=>{let n={};for(let r in e)(!c(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ei(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Di(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Oi(o,r,n)&&!Si(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||Di(r,o,l):!!o;return!1}function Di(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(Oi(t,e,a)&&!Si(n,a))return!0}return!1}function Oi(e,t,n){let r=e[n],i=t[n];return n===`style`&&b(r)&&b(i)?!Ce(r,i):r!==i}function ki({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var Ai={},ji=()=>Object.create(Ai),Mi=e=>Object.getPrototypeOf(e)===Ai;function Ni(e,t,n,r=!1){let i={},a=ji();e.propsDefaults=Object.create(null),Fi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:Bt(i):e.type.props?i:a,e.attrs=a}function Pi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=I(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Si(e.emitsOptions,o))continue;let u=t[o];if(c){if(f(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=k(o);i[t]=Ii(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Fi(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!f(t,a)&&((r=A(a))===a||!f(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Ii(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!f(t,e))&&(delete a[e],l=!0)}l&&it(e.attrs,`set`,``)}function Fi(e,t,n,i){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let r in t){if(D(r))continue;let l=t[r],u;a&&f(a,u=k(r))?!o||!o.includes(u)?n[u]=l:(c||={})[u]=l:Si(e.emitsOptions,r)||(!(r in i)||l!==i[r])&&(i[r]=l,s=!0)}if(o){let t=I(n),i=c||r;for(let r=0;r<o.length;r++){let s=o[r];n[s]=Ii(a,t,s,i[s],e,!f(i,s))}}return s}function Ii(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=f(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&_(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=za(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===A(n))&&(r=!0))}return r}var Li=new WeakMap;function Ri(e,t,n=!1){let a=n?Li:t.propsCache,o=a.get(e);if(o)return o;let s=e.props,c={},u=[],d=!1;if(!_(e)){let r=e=>{d=!0;let[n,r]=Ri(e,t,!0);l(c,n),r&&u.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!d)return b(e)&&a.set(e,i),i;if(p(s))for(let e=0;e<s.length;e++){let t=k(s[e]);zi(t)&&(c[t]=r)}else if(s)for(let e in s){let t=k(e);if(zi(t)){let n=s[e],r=c[t]=p(n)||_(n)?{type:n}:l({},n),i=r.type,a=!1,o=!0;if(p(i))for(let e=0;e<i.length;++e){let t=i[e],n=_(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=_(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||f(r,`default`))&&u.push(t)}}let m=[c,u];return b(e)&&a.set(e,m),m}function zi(e){return e[0]!==`$`&&!D(e)}var Bi=e=>e===`_`||e===`_ctx`||e===`$stable`,Vi=e=>p(e)?e.map(Oa):[Oa(e)],Hi=(e,t,n)=>{if(t._n)return t;let r=Hn((...e)=>Vi(t(...e)),n);return r._c=!1,r},Ui=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Bi(n))continue;let i=e[n];if(_(i))t[n]=Hi(n,i,r);else if(i!=null){let e=Vi(i);t[n]=()=>e}}},Wi=(e,t)=>{let n=Vi(t);e.slots.default=()=>n},Gi=(e,t,n)=>{for(let r in t)(n||!Bi(r))&&(e[r]=t[r])},Ki=(e,t,n)=>{let r=e.slots=ji();if(e.vnode.shapeFlag&32){let e=t._;e?(Gi(r,t,n),n&&ae(r,`_`,e,!0)):Ui(t,r)}else t&&Wi(e,t)},qi=(e,t,n)=>{let{vnode:i,slots:a}=e,o=!0,s=r;if(i.shapeFlag&32){let e=t._;e?n&&e===1?o=!1:Gi(a,t,n):(o=!t.$stable,Ui(t,a)),s=t}else t&&(Wi(e,t),s={default:1});if(o)for(let e in a)!Bi(e)&&s[e]==null&&delete a[e]},H=aa;function Ji(e){return Yi(e)}function Yi(e,t){let n=ce();n.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=a,insertStaticContent:_}=e,v=(e,t,n,r=null,a=null,o=null,s=void 0,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!va(e,t)&&(r=_e(e),fe(e,a,o,!0),e=null),t.patchFlag===-2&&(l=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===i&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);let{type:u,ref:d,shapeFlag:f}=t;switch(u){case oa:y(e,t,n,r);break;case sa:b(e,t,n,r);break;case ca:e??x(t,n,r,s);break;case U:A(e,t,n,r,a,o,s,c,l);break;default:f&1?w(e,t,n,r,a,o,s,c,l):f&6?ne(e,t,n,r,a,o,s,c,l):(f&64||f&128)&&u.process(e,t,n,r,a,o,s,c,l,be)}d!=null&&a?fr(d,e&&e.ref,o,t||e,!t):d==null&&e&&e.ref!=null&&fr(e.ref,null,o,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ee(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&O(e.children,d,null,r,i,Xi(e,a),s,u),_&&Wn(e,null,r,`created`),E(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!D(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Ma(f,r,e)}_&&Wn(e,null,r,`beforeMount`);let v=Qi(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&H(()=>{try{f&&Ma(f,r,e),v&&g.enter(d),_&&Wn(e,null,r,`mounted`)}finally{}},i)},E=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||ia(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;E(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},O=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?ka(e[l]):Oa(e[l]);v(null,c,t,n,r,i,a,o,s)}},ee=(e,t,n,i,a,o,s)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||r,h=t.props||r,g;if(n&&Zi(n,!1),(g=h.onVnodeBeforeUpdate)&&Ma(g,n,t,e),f&&Wn(t,e,n,`beforeUpdate`),n&&Zi(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?k(e.dynamicChildren,d,l,n,i,Xi(t,a),o):s||se(e,t,l,null,n,i,Xi(t,a),o,!1),u>0){if(u&16)te(l,m,h,n,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],i=m[r],o=h[r];(o!==i||r===`value`)&&c(l,r,i,o,a,n)}}u&1&&e.children!==t.children&&p(l,t.children)}else!s&&d==null&&te(l,m,h,n,a);((g=h.onVnodeUpdated)||f)&&H(()=>{g&&Ma(g,n,t,e),f&&Wn(t,e,n,`updated`)},i)},k=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===U||!va(c,l)||c.shapeFlag&198)?m(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},te=(e,t,n,i,a)=>{if(t!==n){if(t!==r)for(let r in t)!D(r)&&!(r in n)&&c(e,r,t[r],null,a,i);for(let r in n){if(D(r))continue;let o=n[r],s=t[r];o!==s&&r!==`value`&&c(e,r,s,o,a,i)}`value`in n&&c(e,`value`,t.value,n.value,a)}},A=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),O(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(k(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&$i(e,t,!0)):se(e,t,n,f,i,a,s,c,l)},ne=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):re(t,n,r,i,a,o,c):j(e,t,c)},re=(e,t,n,r,i,a,o)=>{let s=e.component=Fa(e,r,i);if(hr(e)&&(s.ctx.renderer=be),Ua(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ae,o),!e.el){let r=s.subTree=G(sa);b(null,r,t,n),e.placeholder=r.el}}else ae(s,e,t,n,i,a,o)},j=(e,t,n)=>{let r=t.component=e.component;if(Ei(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,oe(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},ae=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=ta(e);if(n){t&&(t.el=c.el,oe(e,t,o)),n.asyncDep.then(()=>{H(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Zi(e,!1),t?(t.el=c.el,oe(e,t,o)):t=c,n&&ie(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Ma(d,s,t,c),Zi(e,!0);let f=Ci(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),_e(p),e,i,a),t.el=f.el,u===null&&ki(e,f.el),r&&H(r,i),(d=t.props&&t.props.onVnodeUpdated)&&H(()=>Ma(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=mr(t);if(Zi(e,!1),l&&ie(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Ma(o,d,t),Zi(e,!0),s&&Se){let t=()=>{e.subTree=Ci(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Ci(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&H(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;H(()=>Ma(o,d,e),i)}(t.shapeFlag&256||d&&mr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&H(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Me(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>An(u),Zi(e,!0),l()},oe=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Pi(e,t.props,r,n),qi(e,t.children,n),qe(),Nn(e),Je()},se=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ue(l,d,n,r,i,a,o,s,c);return}if(f&256){le(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ge(l,i,a),d!==l&&p(n,d)):u&16?m&16?ue(l,d,n,r,i,a,o,s,c):ge(l,i,a,!0):(u&8&&p(n,``),m&16&&O(d,n,r,i,a,o,s,c))},le=(e,t,n,r,a,o,s,c,l)=>{e||=i,t||=i;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;p<f;p++){let r=t[p]=l?ka(t[p]):Oa(t[p]);v(e[p],r,n,null,a,o,s,c,l)}u>d?ge(e,a,o,!0,!1,f):O(t,n,r,a,o,s,c,l,f)},ue=(e,t,n,r,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?ka(t[u]):Oa(t[u]);if(va(r,i))v(r,i,n,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],i=t[p]=l?ka(t[p]):Oa(t[p]);if(va(r,i))v(r,i,n,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,i=e<d?t[e].el:r;for(;u<=p;)v(null,t[u]=l?ka(t[u]):Oa(t[u]),n,i,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)fe(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?ka(t[u]):Oa(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let r=e[u];if(y>=b){fe(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&va(r,t[_])){i=_;break}i===void 0?fe(r,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(r,t[i],n,null,a,o,s,c,l),y++)}let w=x?ea(C):i;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,i=t[e],f=t[e+1],p=e+1<d?f.el||ra(f):r;C[u]===0?v(null,i,n,p,a,o,s,c,l):x&&(_<0||u!==w[_]?de(i,n,p,2):_--)}}},de=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){de(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,be);return}if(c===U){o(a,t,n);for(let e=0;e<u.length;e++)de(u[e],t,n,r);o(e.anchor,t,n);return}if(c===ca){S(e,t,n);return}if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[rr]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),H(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[rr];a._isLeaving&&a[rr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},fe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if((d===-2||l&&l.hasOnce)&&(i=!1),s!=null&&(qe(),fr(s,null,n,e,!0),Je()),p!=null&&(!e.ctx||e.ctx===t)&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!mr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Ma(_,t,e),u&6)he(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Wn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==U||d>0&&d&64)?ge(l,t,n,!1,!0):(a===U&&d&384||!i&&u&16)&&ge(c,t,n),r&&pe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&H(()=>{_&&Ma(_,t,e),h&&Wn(e,null,t,`unmounted`),v&&(e.el=null)},n)},pe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===U){me(n,r);return}if(t===ca){C(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},me=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},he=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;na(c),na(l),r&&ie(r),i.stop(),a?(a.flags|=8,fe(o,e,t,n)):e.vnode.el&&o&&(o.transition=e.vnode.transition,fe(o,e,t,n)),s&&H(s,t),H(()=>{e.isUnmounted=!0},t)},ge=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)fe(e[o],t,n,r,i)},_e=e=>{if(e.shapeFlag&6)return _e(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[tr];return n?h(n):t},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(fe(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,Nn(r),Pn(),!1)},be={p:v,um:fe,m:de,r:pe,mt:re,mc:O,pc:se,pbc:k,n:_e,o:e},xe,Se;return t&&([xe,Se]=t(be)),{render:ye,hydrate:xe,createApp:hi(ye,xe)}}function Xi({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Zi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Qi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $i(e,t,n=!1){let r=e.children,i=t.children;if(p(r)&&p(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=ka(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&$i(t,a)),a.type===oa&&(a.patchFlag===-1&&(a=i[e]=ka(a)),a.el=t.el),a.type===sa&&!a.el&&(a.el=t.el)}}function ea(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function ta(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ta(t)}function na(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ra(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?ra(t.subTree):null}var ia=e=>e.__isSuspense;function aa(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):Mn(e)}var U=Symbol.for(`v-fgt`),oa=Symbol.for(`v-txt`),sa=Symbol.for(`v-cmt`),ca=Symbol.for(`v-stc`),la=[],W=null;function ua(e=!1){la.push(W=e?null:[])}function da(){la.pop(),W=la[la.length-1]||null}var fa=1;function pa(e,t=!1){fa+=e,e<0&&W&&t&&(W.hasOnce=!0)}function ma(e){return e.dynamicChildren=fa>0?W||i:null,da(),fa>0&&W&&W.push(e),e}function ha(e,t,n,r,i,a){return ma(xa(e,t,n,r,i,a,!0))}function ga(e,t,n,r,i){return ma(G(e,t,n,r,i,!0))}function _a(e){return e?e.__v_isVNode===!0:!1}function va(e,t){return e.type===t.type&&e.key===t.key}var ya=({key:e})=>e??null,ba=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:v(e)||L(e)||_(e)?{i:B,r:e,k:t,f:!!n}:e);function xa(e,t=null,n=null,r=0,i=null,a=e===U?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ya(t),ref:t&&ba(t),scopeId:Ln,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:B};return s?(Aa(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=v(n)?8:16),fa>0&&!o&&W&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&W.push(c),c}var G=Sa;function Sa(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Fr)&&(e=sa),_a(e)){let r=wa(e,t,!0);return n&&Aa(r,n),fa>0&&!a&&W&&(r.shapeFlag&6?W[W.indexOf(e)]=r:W.push(r)),r.patchFlag=-2,r}if(Za(e)&&(e=e.__vccOpts),t){t=Ca(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=me(e)),b(n)&&(Gt(n)&&!p(n)&&(n=l({},n)),t.style=le(n))}let o=v(e)?1:ia(e)?128:nr(e)?64:b(e)?4:_(e)?2:0;return xa(e,t,n,r,i,o,a,!0)}function Ca(e){return e?Gt(e)||Mi(e)?l({},e):e:null}function wa(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ja(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ya(l),ref:t&&t.ref?n&&a?p(a)?a.concat(ba(t)):[a,ba(t)]:ba(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==U?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&wa(e.ssContent),ssFallback:e.ssFallback&&wa(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&r&&or(u,c.clone(u)),u}function Ta(e=` `,t=0){return G(oa,null,e,t)}function Ea(e,t){let n=G(ca,null,e);return n.staticCount=t,n}function Da(e=``,t=!1){return t?(ua(),ga(sa,null,e)):G(sa,null,e)}function Oa(e){return e==null||typeof e==`boolean`?G(sa):p(e)?G(U,null,e.slice()):_a(e)?ka(e):G(oa,null,String(e))}function ka(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:wa(e)}function Aa(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(p(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Aa(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Mi(t)?t._ctx=B:r===3&&B&&(B.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(_(t)){if(r&65){Aa(e,{default:t});return}t={default:t,_ctx:B},n=32}else t=String(t),r&64?(n=16,t=[Ta(t)]):n=8;e.children=t,e.shapeFlag|=n}function ja(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=me([t.class,r.class]));else if(e===`style`)t.style=le([t.style,r.style]);else if(s(e)){let n=t[e],i=r[e];i&&n!==i&&!(p(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!c(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Ma(e,t,n,r=null){yn(e,t,7,[n,r])}var Na=pi(),Pa=0;function Fa(e,t,n){let i=e.type,a=(t?t.appContext:e.appContext)||Na,o={uid:Pa++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ke(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ri(i,a),emitsOptions:xi(i,a),emit:null,emitted:null,propsDefaults:r,inheritAttrs:i.inheritAttrs,ctx:r,data:r,props:r,attrs:r,slots:r,refs:r,setupState:r,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=yi.bind(null,o),e.ce&&e.ce(o),o}var K=null,Ia=()=>K||B,La,Ra;{let e=ce(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};La=t(`__VUE_INSTANCE_SETTERS__`,e=>K=e),Ra=t(`__VUE_SSR_SETTERS__`,e=>Ha=e)}var za=e=>{let t=K;return La(e),e.scope.on(),()=>{e.scope.off(),La(t)}},Ba=()=>{K&&K.scope.off(),La(null)};function Va(e){return e.vnode.shapeFlag&4}var Ha=!1;function Ua(e,t=!1,n=!1){t&&Ra(t);let{props:r,children:i}=e.vnode,a=Va(e);Ni(e,r,a,t),Ki(e,i,n||t);let o=a?Wa(e,t):void 0;return t&&Ra(!1),o}function Wa(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qr);let{setup:r}=n;if(r){qe();let n=e.setupContext=r.length>1?Ja(e):null,i=za(e),a=vn(r,e,0,[e.props,n]),o=x(a);if(Je(),i(),(o||e.sp)&&!mr(e)&&lr(e),o){if(a.then(Ba,Ba),t)return a.then(n=>{Ra(!0);try{Ga(e,n,t)}finally{Ra(!1)}}).catch(t=>{bn(t,e,0)});e.asyncDep=a}else Ga(e,a,t)}else Ka(e,t)}function Ga(e,t,n){_(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=tn(t)),Ka(e,n)}function Ka(e,t,n){let r=e.type;e.render||=r.render||a;{let t=za(e);qe();try{ei(e)}finally{Je(),t()}}}var qa={get(e,t){return P(e,`get`,``),e[t]}};function Ja(e){return{attrs:new Proxy(e.attrs,qa),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ya(e){return e.exposed?e.exposeProxy||=new Proxy(tn(Kt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Gr)return Gr[n](e)},has(e,t){return t in e||t in Gr}}):e.proxy}function Xa(e,t=!0){return _(e)?e.displayName||e.name:e.name||t&&e.__name}function Za(e){return _(e)&&`__vccOpts`in e}var Qa=(e,t)=>dn(e,t,Ha);function $a(e,t,n){try{pa(-1);let r=arguments.length;return r===2?b(t)&&!p(t)?_a(t)?G(e,null,[t]):G(e,t):G(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&_a(n)&&(n=[n]),G(e,t,n))}finally{pa(1)}}var eo=`3.5.43`;function to(e,t){let n=`\x1B[${e}m`,r=`\x1B[${t}m`;return((e,...t)=>{if(Array.isArray(e)&&`raw`in e){let i=e,a=``;for(let e=0;e<i.length;e++)a+=i[e],e<t.length&&(a+=String(t[e]));return`${n}${a}${r}`}return`${n}${String(e)}${r}`})}var no={blue:to(34,39),cyan:to(36,39),gray:to(90,39),green:to(32,39),red:to(31,39),yellow:to(33,39),bold:to(1,22),dim:to(2,22),reset:to(0,0),underline:to(4,24)};function ro(e,...t){return typeof e==`function`?e(...t):e}var io=Error.captureStackTrace,ao=class e extends Error{name;code;docs;fix;sources;data;get why(){return this.message}constructor(t,n=e){super(t.why,{cause:t.cause}),this.code=this.name=t.code,this.fix=t.fix,this.docs=t.docs,this.sources=t.sources,this.data=t.data,io?.(this,n)}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause,data:this.data,stack:this.stack}}};function oo(e,t){return typeof e==`string`?`${e}/${t.toLowerCase()}`:e?.(t)}function so(e){let t=e.reporters??[],n={},{docsBase:r}=e;for(let i of Object.keys(e.codes)){let a=e.codes[i],o=a.docs===!1?void 0:a.docs||oo(r,i),s=(e={},n={})=>{let r=new ao({code:i,why:ro(a.why,e),fix:ro(a.fix,e),docs:o,cause:e.cause,sources:e.sources,data:ro(a.data,e)},s);for(let e of t)e(r,n);return r};n[i]=s}return n}function co(e){return t=>{let n=`${e.bold(e.red(`[${t.name}]`))} ${t.message}`,r=[];return t.fix&&r.push(`${e.dim(`fix:`)} ${t.fix}`),t.sources?.length&&r.push(`${e.dim(`sources:`)} ${t.sources.join(`, `)}`),t.docs&&r.push(`${e.dim(`see:`)} ${e.cyan(t.docs)}`),r.length===0?n:[n,...r.map((t,n)=>`${e.dim(n<r.length-1?`├▶`:`╰▶`)} ${t}`)].join(`
3
- `)}}var q={bus:{agentManifestChanged:`agent:manifest:changed`,agentToolRegistered:`agent:tool:registered`,agentToolUnregistered:`agent:tool:unregistered`,agentResourceRegistered:`agent:resource:registered`,agentResourceUnregistered:`agent:resource:unregistered`},client:{isTrustedUpdated:`rpc:is-trusted:updated`,error:`rpc:error`,connectionStatus:`connection:status`,connectionError:`connection:error`},broadcast:{authRevoked:`devframe:auth:revoked`,clientStateUpdated:`devframe:rpc:client-state:updated`,clientStatePatch:`devframe:rpc:client-state:patch`,streamingChunk:`devframe:streaming:chunk`,streamingEnd:`devframe:streaming:end`,streamingUploadCancel:`devframe:streaming:upload-cancel`},inPageChannel:{panelStateUpdated:`devframe:in-page:panel-state:updated`,panelStatePatch:`devframe:in-page:panel-state:patch`},postMessage:{remoteAssetsError:`devframe:remote-assets-error`,inPageChannel:`devframe:in-page-channel`}},lo=co(no);function uo(e,{method:t=`warn`}={}){console[t](lo(e))}function fo(e){return so({...e,reporters:[uo,...e.reporters??[]]})}function po(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var mo=Math.random.bind(Math),ho=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function go(e=21){let t=``,n=e;for(;n--;)t+=ho[mo()*64|0];return t}var _o=6e4,vo=e=>e,yo=vo,{clearTimeout:bo,setTimeout:xo}=globalThis;function So(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=vo,deserialize:s=yo,resolver:c,bind:l=`rpc`,timeout:u=_o,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:`q`};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=po(),_=go();s.i=_;let v;async function y(n=s){return u>=0&&(v=xo(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{bo(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.hasOwn(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===`q`){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:`s`,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:`s`,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(bo(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function Co(e,t){return t.safety?t.safety:e===`static`||e===`query`||e==null?`read`:`action`}var wo=Object.freeze({type:`object`,additionalProperties:!0});function To(e){let t=e[`~standard`];if(t.jsonSchema)try{return t.jsonSchema.input({target:`draft-2020-12`})}catch{return wo}return wo}function Eo(e){if(!e||e.length===0)return{type:`object`,properties:{}};let t={},n=[];for(let r=0;r<e.length;r++){let i=`arg${r}`;t[i]=To(e[r]),n.push(i)}return{type:`object`,properties:t,required:n,additionalProperties:!1}}function Do(e,t){if(Array.isArray(e))return e;if(e==null)return[];if(typeof e!=`object`)return;let n=e;if(t!=null)return Array.from({length:t},(e,t)=>n[`arg${t}`]);if(`arg0`in n){let e=[];for(;`arg${e.length}`in n;)e.push(n[`arg${e.length}`]);return e}return Object.keys(n).length===0?[]:void 0}function Oo(e,t){return Do(e,t)??[e]}function ko(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e<t;e++){let t=r[e];t&&t(...n)}}function n(n,...r){t(n,...r),delete e[n]}function r(t,n){return(e[t]||=[]).push(n),()=>{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var Ao=Symbol.for(`immer-nothing`),jo=Symbol.for(`immer-draftable`),J=Symbol.for(`immer-state`),Mo=[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},`This object has been frozen and should not be mutated`,function(e){return`Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? `+e},`An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.`,`Immer forbids circular references`,"The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},`Object.defineProperty() cannot be used on an Immer draft`,`Object.setPrototypeOf() cannot be used on an Immer draft`,`Immer only supports deleting array indices`,`Immer only supports setting array indices and the 'length' property`,function(e){return`'original' expects a draft, got: ${e}`}];function Y(e,...t){{let n=Mo[e],r=ts(n)?n.apply(null,t):n;throw Error(`[Immer] ${r}`)}}var X=Object,No=X.getPrototypeOf,Po=`constructor`,Fo=`prototype`,Io=`configurable`,Lo=`enumerable`,Ro=`writable`,zo=`value`,Bo=e=>!!e&&!!e[J];function Vo(e){return e?Wo(e)||Zo(e)||!!e[jo]||!!e[Po]?.[jo]||Qo(e)||$o(e):!1}var Ho=X[Fo][Po].toString(),Uo=new WeakMap;function Wo(e){if(!e||!es(e))return!1;let t=No(e);if(t===null||t===X[Fo])return!0;let n=X.hasOwnProperty.call(t,Po)&&t[Po];if(n===Object)return!0;if(!ts(n))return!1;let r=Uo.get(n);return r===void 0&&(r=Function.toString.call(n),Uo.set(n,r)),r===Ho}function Go(e,t,n=!0){Ko(e)===0?(n?Reflect.ownKeys(e):X.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ko(e){let t=e[J];return t?t.type_:Zo(e)?1:Qo(e)?2:$o(e)?3:0}var qo=(e,t,n=Ko(e))=>n===2?e.has(t):X[Fo].hasOwnProperty.call(e,t),Jo=(e,t,n=Ko(e))=>n===2?e.get(t):e[t],Yo=(e,t,n,r=Ko(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Xo(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Zo=Array.isArray,Qo=e=>e instanceof Map,$o=e=>e instanceof Set,es=e=>typeof e==`object`,ts=e=>typeof e==`function`,ns=e=>typeof e==`boolean`;function rs(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var is=e=>es(e)?e?.[J]:null,as=e=>e.copy_||e.base_,os=e=>e.modified_?e.copy_:e.base_;function ss(e,t){if(Qo(e))return new Map(e);if($o(e))return new Set(e);if(Zo(e))return Array[Fo].slice.call(e);let n=Wo(e);if(t===!0||t===`class_only`&&!n){let t=X.getOwnPropertyDescriptors(e);delete t[J];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Ro]===!1&&(a[Ro]=!0,a[Io]=!0),(a.get||a.set)&&(t[i]={[Io]:!0,[Ro]:!0,[Lo]:a[Lo],[zo]:e[i]})}return X.create(No(e),t)}{let t=No(e);if(t!==null&&n)return{...e};let r=X.create(t);return X.assign(r,e)}}function cs(e,t=!1){return ds(e)||Bo(e)||!Vo(e)?e:(Ko(e)>1&&X.defineProperties(e,{set:us,add:us,clear:us,delete:us}),X.freeze(e),t&&Go(e,(e,t)=>{cs(t,!0)},!1),e)}function ls(){Y(2)}var us={[zo]:ls};function ds(e){return e===null||!es(e)||X.isFrozen(e)}var fs=`MapSet`,ps=`Patches`,ms=`ArrayMethods`,hs={};function gs(e){let t=hs[e];return t||Y(0,e),t}var _s=e=>!!hs[e];function vs(e,t){hs[e]||(hs[e]=t)}var ys,bs=()=>ys,xs=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:_s(fs)?gs(fs):void 0,arrayMethodsPlugin_:_s(ms)?gs(ms):void 0});function Ss(e,t){t&&(e.patchPlugin_=gs(ps),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Cs(e){ws(e),e.drafts_.forEach(Es),e.drafts_=null}function ws(e){e===ys&&(ys=e.parent_)}var Ts=e=>ys=xs(ys,e);function Es(e){let t=e[J];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ds(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[J].modified_&&(Cs(t),Y(4)),Vo(e)&&(e=Os(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[J].base_,e,t)}else e=Os(t,n);return ks(t,e,!0),Cs(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Ao?void 0:e}function Os(e,t){if(ds(t))return t;let n=t[J];if(!n)return Ls(t,e.handledSet_,e);if(!js(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);Fs(n,e)}return n.copy_}function ks(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&cs(t,n)}function As(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var js=(e,t)=>e.scope_===t,Ms=[];function Ns(e,t,n,r){let i=as(e),a=e.type_;if(r!==void 0&&Jo(i,r,a)===t){Yo(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Go(i,(e,n)=>{if(Bo(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Ms;for(let e of o)Yo(i,e,n,a)}function Ps(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!js(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=os(i);Ns(e,i.draft_??i,a,n),Fs(i,r)})}function Fs(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}As(e)}}function Is(e,t,n){let{scope_:r}=e;if(Bo(n)){let i=n[J];js(i,r)&&i.callbacks_.push(function(){Ks(e),Ns(e,n,os(i),t)})}else Vo(n)&&e.callbacks_.push(function(){let i=as(e);e.type_===3?i.has(n)&&Ls(n,r.handledSet_,r):Jo(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ls(Jo(e.copy_,t,e.type_),r.handledSet_,r)})}function Ls(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Bo(e)||t.has(e)||!Vo(e)||ds(e)?e:(t.add(e),Go(e,(r,i)=>{if(Bo(i)){let t=i[J];js(t,n)&&(Yo(e,r,os(t),e.type_),As(t))}else Vo(i)&&Ls(i,t,n)}),e)}function Rs(e,t){let n=Zo(e),r={type_:+!!n,scope_:t?t.scope_:bs(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=zs;n&&(i=[r],a=Bs);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var zs={get(e,t){if(t===J)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=as(e);if(!qo(i,t,e.type_))return Us(e,i,t);let a=i[t];if(e.finalized_||!Vo(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&rs(t))return a;if(a===Vs(e.base_,t)||Hs(e,t,a)){Ks(e);let n=e.type_===1?+t:t,r=Js(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in as(e)},ownKeys(e){return Reflect.ownKeys(as(e))},set(e,t,n){let r=Ws(as(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Vs(as(e),t),i=r?.[J];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Xo(n,r)&&(n!==void 0||qo(e.base_,t,e.type_)))return!0;Ks(e),Gs(e)}return e.copy_[t]===n&&(n!==void 0||qo(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),Is(e,t,n),!0)},deleteProperty(e,t){return Ks(e),Vs(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Gs(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=as(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ro]:!0,[Io]:e.type_!==1||t!==`length`,[Lo]:r[Lo],[zo]:n[t]}},defineProperty(){Y(11)},getPrototypeOf(e){return No(e.base_)},setPrototypeOf(){Y(12)}},Bs={};for(let e in zs){let t=zs[e];Bs[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Bs.deleteProperty=function(e,t){return isNaN(parseInt(t))&&Y(13),Bs.set.call(this,e,t,void 0)},Bs.set=function(e,t,n){return t!==`length`&&isNaN(parseInt(t))&&Y(14),zs.set.call(this,e[0],t,n,e[0])};function Vs(e,t){let n=e[J];return(n?as(n):e)[t]}function Hs(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!Vo(n)||n[J]?!1:e.baseRefs_.has(n)}function Us(e,t,n){let r=Ws(t,n);return r?zo in r?r[zo]:r.get?.call(e.draft_):void 0}function Ws(e,t){if(!(t in e))return;let n=No(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=No(n)}}function Gs(e){e.modified_||(e.modified_=!0,e.parent_&&Gs(e.parent_))}function Ks(e){e.copy_||=(e.assigned_=new Map,ss(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var qs=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(ts(e)&&!ts(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}ts(t)||Y(6),n!==void 0&&!ts(n)&&Y(7);let r;if(Vo(e)){let i=Ts(this),a=Js(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Cs(i):ws(i)}return Ss(i,n),Ds(r,i)}if(!e||!es(e)){if(r=t(e),r===void 0&&(r=e),r===Ao&&(r=void 0),this.autoFreeze_&&cs(r,!0),n){let t=[],i=[];gs(ps).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}Y(1,e)},this.produceWithPatches=(e,t)=>{if(ts(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},ns(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),ns(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),ns(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Vo(e)||Y(8),Bo(e)&&(e=Ys(e));let t=Ts(this),n=Js(t,e,void 0);return n[J].isManual_=!0,ws(t),n}finishDraft(e,t){let n=e&&e[J];(!n||!n.isManual_)&&Y(9);let{scope_:r}=n;return Ss(r,t),Ds(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=gs(ps).applyPatches_;return Bo(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Js(e,t,n,r){let[i,a]=Qo(t)?gs(fs).proxyMap_(t,n):$o(t)?gs(fs).proxySet_(t,n):Rs(t,n);return(n?.scope_??bs()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Ps(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Ys(e){return Bo(e)||Y(10,e),Xs(e)}function Xs(e){if(!Vo(e)||ds(e))return e;let t=e[J],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=ss(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=ss(e,!0);return Go(n,(e,t)=>{Yo(n,e,Xs(t))},r),t&&(t.finalized_=!1),n}function Zs(){Mo.push(`Sets cannot have "replace" patches.`,function(e){return`Unsupported patch operation: `+e},function(e){return`Cannot apply patch, path doesn't resolve: `+e},`Patching reserved attributes like __proto__, prototype and constructor is not allowed`);function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=is(Jo(e,n.key_)),i=Jo(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||qo(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(n=Jo(n,r),!es(n)||n===null)throw Error(`Cannot resolve path at '${t.join(`/`)}'`)}return n}let n=`replace`,r=`remove`;function i(e,t,n){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);let{patches_:r,inversePatches_:i}=n;switch(e.type_){case 0:case 2:return o(e,t,r,i);case 1:return a(e,t,r,i);case 3:return s(e,t,r,i)}}function a(e,t,i,a){let{base_:o,assigned_:s}=e,c=e.copy_;c.length<o.length&&([o,c]=[c,o],[i,a]=[a,i]);let l=e.allIndicesReassigned_===!0;for(let e=0;e<o.length;e++){let r=c[e],u=o[e];if((l||s?.get(e.toString()))&&r!==u){let o=r?.[J];if(o&&o.modified_)continue;let s=t.concat([e]);i.push({op:n,path:s,value:d(r)}),a.push({op:n,path:s,value:d(u)})}}for(let e=o.length;e<c.length;e++){let n=t.concat([e]);i.push({op:`add`,path:n,value:d(c[e])})}for(let e=c.length-1;o.length<=e;--e){let n=t.concat([e]);a.push({op:r,path:n})}}function o(e,t,i,a){let{base_:o,copy_:s,type_:c}=e;Go(e.assigned_,(e,l)=>{let u=Jo(o,e,c),f=Jo(s,e,c),p=l?qo(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===Ao?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e<i.length-1;e++){let t=Ko(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===Po)&&Y(19),ts(o)&&n===Fo&&Y(19),o=Jo(o,n),(o===null||!es(o))&&Y(18,i.join(`/`))}let s=Ko(o),c=u(t.value),l=i[i.length-1];switch(a){case n:switch(s){case 2:return o.set(l,c);case 3:Y(16);default:return o[l]=c}case`add`:switch(s){case 1:return l===`-`?o.push(c):o.splice(l,0,c);case 2:return o.set(l,c);case 3:return o.add(c);default:return o[l]=c}case r:switch(s){case 1:return o.splice(l,1);case 2:return o.delete(l);case 3:return o.delete(t.value);default:return delete o[l]}default:Y(17,a)}}),e}function u(e){if(!Vo(e))return e;if(Zo(e))return e.map(u);if(Qo(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if($o(e))return new Set(Array.from(e).map(u));let t=Object.create(No(e));for(let n in e)t[n]=u(e[n]);return qo(e,jo)&&(t[jo]=e[jo]),t}function d(e){return Bo(e)?u(e):e}vs(ps,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}globalThis.Iterator?.from;var Qs=new qs,$s=Qs.produce,ec=Qs.produceWithPatches.bind(Qs),tc=Qs.applyPatches.bind(Qs),nc=1e3;function rc(e,t){if(e.add(t),e.size>nc){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function ic(t){let{enablePatches:n=!1}=t;n&&Zs();let r=ko(),i=t.initialValue,a=new Set;return{on:r.on,value:()=>i,patch:(t,n=e())=>{a.has(n)||(Zs(),i=tc(i,t),rc(a,n),r.emit(`updated`,i,void 0,n))},mutate:(t,o=e())=>{if(!a.has(o)){if(rc(a,o),n){let[e,n]=ec(i,t);if(e===i)return;i=e,r.emit(`updated`,i,n,o)}else{let e=$s(i,t);if(e===i)return;i=e,r.emit(`updated`,i,void 0,o)}}},syncIds:a}}var ac=fo({docsBase:`https://devfra.me/errors`,codes:{DF0077:{why:e=>`In-page channel function "${e.name}" is not registered on this endpoint.`,fix:"Declare the function in this endpoint's `functions` option."},DF0080:{why:e=>`In-page channel function "${e.name}" has \`agent\` set but \`jsonSerializable\` is \`false\`; MCP requires JSON-serializable data.`,fix:"Remove `jsonSerializable: false`, or remove `agent` to keep it channel-only."}}}),oc=q.postMessage.inPageChannel;function sc(e){return!!e&&typeof e==`object`&&`__dfIpc`in e}function cc(e){if(!e||typeof e!=`object`)return!1;let t=e;return t.channel===oc&&typeof t.name==`string`&&typeof t.panelId==`string`&&(t.kind===`hello`||t.kind===`grant`)}function lc(e,t){if(e?.length)return e;let n=t?.location?.origin;return n&&n!==`null`?[n]:[`*`]}function uc(e){let t=[];try{let n=e;for(;n.parent&&n.parent!==n;)t.push(n.parent),n=n.parent}catch{}for(let n of[e,...t])try{let r=n.opener;r&&r!==e&&!t.includes(r)&&t.push(r)}catch{}return t}var dc={intervalMs:5e3,timeoutMs:12e3};function fc(e){return e===!1?void 0:{...dc,...e}}var pc=class extends Error{code;name=`InPageChannelError`;constructor(e,t,n){super(t,n),this.code=e}},mc=new Set;function hc(e){mc.has(e)||(mc.add(e),console.warn(`[devframe] ${e}`))}function gc(e,t,n){for(let r=0;r<e.length;r++){let i=vc(e[r],`${t}[${r}]`,n);if(i)return i}}function _c(e,t,n){let r=Object.getPrototypeOf(e);if(r!==Object.prototype&&r!==null)return`${t} is an instance of ${e.constructor?.name??`an exotic class`}`;for(let[r,i]of Object.entries(e)){let e=vc(i,`${t}.${r}`,n);if(e)return e}}function vc(e,t,n){if(e!==null&&typeof e!=`boolean`&&typeof e!=`string`)return typeof e==`number`?Number.isFinite(e)?void 0:`${t} is ${e}`:typeof e==`object`?n.has(e)?`${t} is circular`:(n.add(e),Array.isArray(e)?gc(e,t,n):_c(e,t,n)):`${t} is ${e===void 0?"`undefined`":`a ${typeof e}`}`}function yc(e,t,n){let r=vc(e,t,new Set);if(r)throw new pc(`not-serializable`,`in-page function "${n}" is declared jsonSerializable, but ${r}`)}function bc(e){return e.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `)}async function xc(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];if(!i)continue;let a=await i[`~standard`].validate(n[r]);if(a.issues)throw new pc(`invalid-args`,`in-page function "${e}" rejected argument ${r}: ${bc(a.issues)}`)}}function Sc(e,t){return e.serialize?t.map(e.serialize):t}function Cc(e,t){return e.deserialize&&t!==void 0?e.deserialize(t):t}function wc(e,t){return`devframe:in-page:${e===`event`?`event`:`function`}:${t}`}var Tc=wc(`function`,``);function Ec(e){let t=new Map,n=new Map;return{definitions:t,register(e){if(`agent`in e&&e.agent){if(e.jsonSerializable===!1)throw ac.DF0080({name:e.name});e.jsonSerializable=!0}t.set(wc(e.type,e.name),e)},registerInternal(e,n){t.set(e,{name:e,handler:n})},on(e,t){let r=wc(`event`,e),i=n.get(r);return i||(i=new Set,n.set(r,i)),i.add(t),()=>{i.delete(t),i.size===0&&n.delete(r)}},resolve(r){let i=t.get(r),a=n.get(r);if(i||a?.size)return async(...t)=>{let a=e.deserialize?t.map(e.deserialize):t;i?.jsonSerializable&&yc(a,`its arguments`,i.name),i?.args?.length&&await xc(i.name,i.args,a);let o=await i?.handler?.(...a);for(let e of[...n.get(r)??[]])e(...a);if(i?.type!==`event`)return i?.jsonSerializable&&o!==void 0&&yc(o,`its return value`,i.name),e.serialize&&o!==void 0?e.serialize(o):o}}}}function Dc(e,t){for(let n of t){let t=n(e);if(t)return t}if(e.startsWith(Tc))return()=>{throw ac.DF0077({name:e.slice(Tc.length)})}}function Oc(e,n){let r=[];for(let i of n.definitions.values()){if(i.type===`event`||!(`agent`in i)||!i.agent)continue;let a=i.agent;r.push(t({id:`${e}:${i.name}`,title:a.title??i.name,description:a.description,safety:Co(i.type,a),tags:a.tags,inputSchema:Eo(i.args),invoke:e=>{let t=Oo(e,i.args?.length);return n.resolve(wc(i.type,i.name))(...t)}}))}return()=>r.forEach(e=>e())}function kc(e){return e instanceof DOMException&&e.name===`DataCloneError`?new pc(`not-cloneable`,`a payload could not be structured-cloned across the in-page channel: ${e.message}. Strip non-cloneable values (functions, DOM nodes, framework reactivity proxies) before sending: declare the function \`jsonSerializable: true\` for a precise error, or provide a \`serialize\` hook.`,{cause:e}):e}function Ac(e,t){let n,r=!1,i={rpc:So({},{post:t=>{try{e.postMessage(t)}catch(e){throw kc(e)}},on:e=>{n=e},off:()=>{n=void 0},timeout:-1,proxify:!1,resolver:(e,n)=>n??t.resolveLocal(e)}),lastActivity:Date.now(),postControl(t){try{e.postMessage({__dfIpc:t})}catch{}},dispose(t){if(r)return;r=!0,t?.bye&&i.postControl(`bye`);let n=new pc(`closed`,`in-page channel call dropped: ${t?.reason??`the in-page channel port was closed`}`);i.rpc.$rejectPendingCalls(({reject:e})=>e(n)),i.rpc.$close(),e.removeEventListener(`message`,a),e.removeEventListener(`close`,o);try{e.close()}catch{}}};function a(e){i.lastActivity=Date.now();let r=e.data;if(sc(r)){r.__dfIpc===`bye`?t.onPeerClosed():t.onControl(r.__dfIpc);return}n?.(r)}function o(){t.onPeerClosed()}return e.addEventListener(`message`,a),e.addEventListener(`close`,o),e.start?.(),i}function jc(e,t,n){return t<=0?e:new Promise((r,i)=>{let a=setTimeout(()=>i(new pc(`timeout`,n())),t);e.then(e=>{clearTimeout(a),r(e)},e=>{clearTimeout(a),i(e)})})}var Mc={subscribe:`devframe:in-page:page-state:subscribe`,set:`devframe:in-page:page-state:set`,patch:`devframe:in-page:page-state:patch`};function Nc(t){let n=new Map,r=new Set,i=new Map,a=new Set;function o(e){r.add(e);let t=i.get(e);if(t){i.delete(e);for(let e of t)e()}}function s(t,r){let i=n.get(t);if(i&&r!==void 0){let t=e();a.add(t),i.mutate(()=>r,t)}o(t)}function c(e){t.call(Mc.subscribe,[e]).then(t=>s(e,t)).catch(t=>{console.warn(`[devframe] in-page shared state "${e}": subscribe failed`,t)})}return{handlers:{[q.inPageChannel.panelStateUpdated]:(e,t,r)=>{let i=n.get(e);i&&!i.syncIds.has(r)&&i.mutate(()=>t,r),o(e)},[q.inPageChannel.panelStatePatch]:(e,t,r)=>{n.get(e)?.patch(t,r),o(e)}},resubscribe(){for(let e of n.keys())c(e)},get:(e,o)=>{let s=n.get(e);if(s)return Promise.resolve(s);let l=ic({initialValue:o?.initialValue,enablePatches:!0});return n.set(e,l),l.on(`updated`,(n,r,i)=>{a.delete(i)||t.isConnected()&&(r?t.callEvent(Mc.patch,[e,r,i]):t.callEvent(Mc.set,[e,n,i]))}),t.isConnected()&&c(e),o?.initialValue===void 0?new Promise(t=>{if(r.has(e)){t(l);return}let n=i.get(e)??[];n.push(()=>t(l)),i.set(e,n)}):Promise.resolve(l)}}}var Pc=300,Fc=3e3,Ic=64;function Lc(t){let{name:n}=t,r=t.callTimeoutMs??15e3,i=t.eventBufferLimit??Ic,a=t.window===!1?void 0:t.window??(typeof window>`u`?void 0:window),o=lc(t.allowedOrigins,a),s=fc(t.heartbeat),c={serialize:t.serialize,deserialize:t.deserialize},l=e(),u=t.targets??(a?uc(a):[]),d=!!a&&u.length>0,f=ko(),p=Ec(c);for(let[e,n]of Object.entries(t.functions))p.register({...n,name:e});for(let[e,n]of Object.entries(t.events??{}))p.register({...n,name:e,type:`event`});let m=Oc(n,p),h=`connecting`,g,_,v,y,b=!1,x=[],S=[],C=[];function w(e){h!==e&&(h=e,f.emit(`status:updated`,e))}let T=Nc({isConnected:()=>h===`connected`,callEvent:(e,t)=>O(e,Sc(c,t)),call:(e,t)=>ee(e,Sc(c,t))}),E=Ec(c);for(let[e,t]of Object.entries(T.handlers))E.registerInternal(e,t);function D(e,t){g?.rpc.$callRaw({method:e,args:t,event:!0,optional:!0}).catch(()=>{})}function O(e,t){if(h!==`closed`){if(h===`connected`&&g){D(e,t);return}S.length>=i&&(S.shift(),b||(b=!0,console.warn(`[devframe] in-page channel "${n}": event buffer overflowed while connecting, so the oldest events are being dropped (limit ${i})`))),S.push({method:e,args:t})}}function ee(e,t){return h===`closed`?Promise.reject(new pc(`closed`,`in-page channel "${n}": call "${e}" rejected because the channel is closed`)):jc(new Promise((n,r)=>{let i=()=>{g.rpc.$call(e,...t).then(e=>n(Cc(c,e)),r)};h===`connected`&&g?i():x.push({run:i,reject:r})}),r,()=>`in-page channel "${n}": call "${e}" timed out after ${r}ms (status: ${h}${h===`connecting`?`; is the page script loaded?`:``})`)}function k(e,t){g?.dispose({bye:!0,reason:`the panel adopted a newer port`}),g=Ac(e,{resolveLocal:e=>Dc(e,[E.resolve,p.resolve]),onControl:e=>{e===`ping`&&g?.postControl(`pong`)},onPeerClosed:()=>A(`the page script went away`)}),_=t,te(),w(`connected`),s&&(y=setInterval(()=>{g&&(Date.now()-g.lastActivity>s.timeoutMs?A(`the page script went silent (heartbeat timeout)`):g.postControl(`ping`))},s.intervalMs));for(let e of x.splice(0))e.run();for(let{method:e,args:t}of S.splice(0))D(e,t);T.resubscribe();for(let e of C.splice(0))e.resolve()}function te(){v&&=(clearTimeout(v),void 0),y&&=(clearInterval(y),void 0)}function A(e){h!==`closed`&&(g?.dispose({reason:e}),g=void 0,_=void 0,te(),w(`connecting`),d?ne():hc(`in-page channel "${n}": transport lost (${e}) and the panel has no handshake targets, so it stays disconnected`))}function ne(){if(v||!d||h!==`connecting`)return;let e=t.helloIntervalMs??Pc,r=()=>{let i={channel:oc,v:2,kind:`hello`,name:n,panelId:l,instanceId:t.instanceId};for(let e of u)for(let t of o)try{e.postMessage(i,t)}catch{}e=Math.min(e*1.5,Fc),v=setTimeout(r,e)};r()}let re=e=>{if(h===`closed`)return;let r=e.data;if(!cc(r)||r.kind!==`grant`||r.name!==n||r.panelId!==l)return;if(r.v!==2){hc(`in-page channel "${n}": ignoring a grant with protocol version ${r.v} (this side speaks 2); align the devframe versions of the page script and the panel`);return}if(!o.includes(`*`)&&!o.includes(e.origin)){hc(`in-page channel "${n}": ignoring a grant from disallowed origin "${e.origin}"`);return}if(t.instanceId&&r.instanceId!==t.instanceId)return;let i=e.ports?.[0];i&&k(i,{instanceId:r.instanceId})};return a?.addEventListener(`message`,re),t.transport?k(t.transport):d?ne():hc(`in-page channel "${n}": the panel has no handshake targets (not embedded, no opener) and no transport, so calls will buffer until a transport appears or the channel is closed`),{name:n,get status(){return h},get pageScript(){return _},events:{on:f.on,once:f.once},whenConnected:e=>h===`connected`?Promise.resolve():h===`closed`?Promise.reject(new pc(`closed`,`in-page channel "${n}" is closed`)):new Promise((t,r)=>{let i={resolve:t,reject:r};C.push(i),e!==void 0&&e>0&&setTimeout(()=>{let t=C.indexOf(i);t>=0&&(C.splice(t,1),r(new pc(`timeout`,`in-page channel "${n}": no page script answered within ${e}ms; it may not be loaded in this context (render a fallback state)`)))},e)}),call:(e,...t)=>ee(wc(`function`,e),Sc(c,t)),emit:(e,...t)=>O(wc(`event`,e),Sc(c,t)),on:(e,t)=>p.on(e,t),sharedState:T,close:()=>{if(h===`closed`)return;w(`closed`),m(),te(),a?.removeEventListener(`message`,re),g?.dispose({bye:!0,reason:`the panel closed the channel`}),g=void 0,_=void 0;let e=new pc(`closed`,`in-page channel "${n}" was closed`);for(let t of x.splice(0))t.reject(e);S.length=0;for(let t of C.splice(0))t.reject(e)}}}function Rc(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var zc=Math.random.bind(Math),Bc=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Vc(e=21){let t=``,n=e;for(;n--;)t+=Bc[zc()*64|0];return t}var Hc=6e4,Uc=e=>e,Wc=Uc,{clearTimeout:Gc,setTimeout:Kc}=globalThis;function qc(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=Uc,deserialize:s=Wc,resolver:c,bind:l=`rpc`,timeout:u=Hc,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:`q`};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=Rc(),_=Vc();s.i=_;let v;async function y(n=s){return u>=0&&(v=Kc(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{Gc(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.hasOwn(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===`q`){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:`s`,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:`s`,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(Gc(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function Jc(e,t){let{channel:n,rpcOptions:r={}}=t;return qc(e,{...n,timeout:-1,...r,proxify:!1})}var Yc=`devtools:query`,Xc=`devtools:command`,Zc=`devtools:event`;function Qc(e={}){let t=e.window??tl();if(!t)throw Error(`Devtools iframe RPC requires a browser window`);let n=Lc({name:e.channelId??`vue-devtools`,window:t,targets:e.targetWindow?[e.targetWindow]:void 0,allowedOrigins:e.targetOrigin?[e.targetOrigin]:void 0,functions:{}}),r=e=>n.call(Yc,e);return{query:r,queryCustom:r,command:e=>n.call(Xc,e),commandCustom:e=>n.call(Xc,e),onEvent:e=>n.on(Zc,e),onConnectionChanged:e=>n.events.on(`status:updated`,e),dispose:()=>n.close()}}function $c(e={}){return{kind:`iframe`,available(){return el(e)},connect(){return Qc(e)}}}function el(e={}){let t=e.window??tl();if(!t)return!1;let n=e.targetWindow??t.parent;return!!n&&n!==t}function tl(){return typeof window>`u`?void 0:window}function nl(e){let t=new Set,n=Jc({[Zc](e){t.forEach(t=>t(e))}},{channel:e.channel}),r=e=>n.$call(Yc,e),i=e=>n.$call(Xc,e);return{query:r,command:i,queryCustom:r,commandCustom:i,onEvent(e){return t.add(e),()=>{t.delete(e)}},dispose(){t.clear(),n.$close(),e.disposeChannel?.()}}}var rl=`vue-devtools`;function il(e,t){let n={source:rl,version:1,role:e};return typeof t==`number`&&(n.tabId=t),JSON.stringify(n)}var al=`vue-devtools:frame-control`;function ol(e){return typeof e==`object`&&!!e&&e.source===`vue-devtools:frame-control`&&typeof e.type==`string`}function sl(e){let t=new WeakMap;return{post(t){e.postMessage(t)},on(n){let r=e=>{ol(e)||n(e)};t.set(n,r),e.onMessage.addListener(r)},off(n){let r=t.get(n);r&&(e.onMessage.removeListener(r),t.delete(n))}}}function cl(e={}){let t=e.chrome??fl(),n=t?.runtime;if(!n)throw Error(`Vue Devtools extension RPC requires chrome.runtime`);let r=e.tabId??t?.devtools?.inspectedWindow?.tabId;if(!Number.isInteger(r))throw Error(`Vue Devtools extension RPC requires chrome.devtools.inspectedWindow.tabId`);let i=n.connect({name:e.name??il(`panel`,r)}),a=ll(i),o=!1,s;return s=Object.assign(nl({channel:sl(i),disposeChannel:()=>{o||(o=!0,a.dispose(),i.disconnect())}}),{frames:a.controller}),i.onDisconnect.addListener(()=>{o||(o=!0,a.dispose(),s.dispose())}),s}function ll(e){let t=[],n,r=new Set,i=new Set,a=e=>{if(ol(e)){if(e.type===`frames:changed`){t=e.frames,n=e.activeFrameId,r.forEach(e=>e(t,n));return}e.type===`frames:activated`&&(n=e.frame.frameId,i.forEach(t=>t(e.frame,e.reason)))}};return e.onMessage.addListener(a),{controller:{getFrames(){return t},getActiveFrameId(){return n},selectFrame(t){let n={source:al,type:`frames:select`,frameId:t};try{e.postMessage(n)}catch{}},onFramesChanged(e){return r.add(e),()=>{r.delete(e)}},onFrameActivated(e){return i.add(e),()=>{i.delete(e)}}},dispose(){e.onMessage.removeListener(a),r.clear(),i.clear()}}}function ul(e={}){return{kind:`extension`,available(){return dl(e)},connect(){return cl(e)}}}function dl(e={}){let t=e.chrome??fl(),n=e.tabId??t?.devtools?.inspectedWindow?.tabId;return!!t?.runtime?.connect&&Number.isInteger(n)}function fl(){return globalThis.chrome}function pl(e={}){let t=e.hosts??ml(e),n=[];for(let e of t){if(!e.available()){n.push(e.kind);continue}return e.connect()}throw Error(`No available Vue Devtools client host${n.length?`: ${n.join(`, `)}`:``}`)}function ml(e={}){return[ul(e.extension),$c(e.iframe)]}function hl(e){switch(e.kind){case`string`:return JSON.stringify(e.value);case`number`:case`bigint`:case`boolean`:return String(e.value);case`null`:case`undefined`:return e.kind;case`date`:case`regexp`:return e.value;default:return``}}function gl(e,t){let n=t.trim();switch(e.kind){case`string`:return _l(n);case`number`:return vl(n);case`bigint`:return yl(n);case`boolean`:return bl(n);case`null`:if(n!==`null`)throw Error(`Expected null`);return null;case`undefined`:if(n!==`undefined`)throw Error(`Expected undefined`);return;case`date`:return xl(_l(n));case`regexp`:return Sl(_l(n));default:return JSON.parse(n)}}function _l(e){return e?e.startsWith(`"`)?JSON.parse(e):e:``}function vl(e){if(e===`NaN`)return NaN;if(e===`Infinity`)return 1/0;if(e===`-Infinity`)return-1/0;if(!e)throw Error(`Invalid number`);let t=Number(e);if(Number.isNaN(t))throw Error(`Invalid number`);return t}function yl(e){try{return BigInt(e.replace(/n$/,``))}catch{throw Error(`Invalid bigint`)}}function bl(e){if(e===`true`)return!0;if(e===`false`)return!1;throw Error(`Expected true or false`)}function xl(e){let t=new Date(e);if(Number.isNaN(t.getTime()))throw Error(`Invalid date`);return t}function Sl(e){let t=/^\/(.*)\/([dgimsuvy]*)$/.exec(e);if(!t)throw Error(`Expected /pattern/flags`);return new RegExp(t[1],t[2])}new Set(`nextTick.defineComponent.defineAsyncComponent.defineCustomElement.ref.computed.reactive.readonly.watchEffect.watchPostEffect.watchSyncEffect.watch.isRef.unref.toRef.toRefs.isProxy.isReactive.isReadonly.shallowRef.triggerRef.customRef.shallowReactive.shallowReadonly.toRaw.markRaw.effectScope.getCurrentScope.onScopeDispose.onMounted.onUpdated.onUnmounted.onBeforeMount.onBeforeUpdate.onBeforeUnmount.onErrorCaptured.onRenderTracked.onRenderTriggered.onActivated.onDeactivated.onServerPrefetch.provide.inject.h.mergeProps.cloneVNode.isVNode.resolveComponent.resolveDirective.withDirectives.withModifiers`.split(`.`));var Cl=Date.now();Cl-1e6,Cl-wl();function wl(){return typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now()}function Tl(e){let t=El(e);return t?Dl(t,[3,6,0])>=0:!1}function El(e){let t=e?.trim().match(/^(\d+)(?:\.(\d+))?(?:\.(\d+))?/);if(t)return[Number(t[1]),Number(t[2]??0),Number(t[3]??0)]}function Dl(e,t){for(let n=0;n<t.length;n++){let r=e[n]-t[n];if(r!==0)return r}return 0}(function(e){return e.APP_INIT=`app:init`,e.APP_UNMOUNT=`app:unmount`,e.COMPONENT_ADDED=`component:added`,e.COMPONENT_UPDATED=`component:updated`,e.COMPONENT_REMOVED=`component:removed`,e.COMPONENT_EMIT=`component:emit`,e.PERFORMANCE_START=`perf:start`,e.PERFORMANCE_END=`perf:end`,e.SETUP_DEVTOOLS_PLUGIN=`devtools-plugin:setup`,e})({}),Object.freeze({"component-hooks":1,"custom-actions":1,"custom-inspector":1,settings:1,timeline:1});var Ol=new WeakMap;function kl(e,t){if(!t.length)return e;if(t.every(e=>e.op===`update`&&!(`parentId`in e.changes)&&!(`id`in e.changes))){let n=Ol.get(e);n||(n=new Map(e.map((e,t)=>[e.id,t])),Ol.set(e,n));let r;for(let i of t){if(i.op!==`update`)continue;let t=n.get(i.id);t!=null&&(r??=e.slice(),r[t]={...r[t],...i.changes})}return r?(Ol.set(r,n),r):e}let n=new Map(e.map(e=>[e.id,e])),r=new Map;function i(e){let t=e.parentId,n=r.get(t)??new Set;n.add(e.id),r.set(t,n)}for(let t of e)i(t);for(let e of t)switch(e.op){case`insert`:case`update`:{let t=e.op===`insert`?e.node.id:e.id,a=n.get(t);if(e.op===`update`&&!a)break;let o=e.op===`insert`?e.node:{...a,...e.changes};a&&r.get(a.parentId)?.delete(t),n.set(t,o),i(o);break}case`remove`:{let t=[e.id];for(let e of t){for(let n of r.get(e)??[])t.push(n);let i=n.get(e);i&&r.get(i.parentId)?.delete(e),r.delete(e),n.delete(e)}break}}return Al([...n.values()])}function Al(e){let t=new Map(e.map(e=>[e.id,e])),n=new Map;for(let r of e){let e=r.parentId&&t.has(r.parentId)?r.parentId:void 0,i=n.get(e)??[];i.push(r),n.set(e,i)}let r=[],i=new Set,a=[...n.get(void 0)??[]].reverse();for(;a.length;){let e=a.pop();if(i.has(e.id))continue;i.add(e.id),r.push(e);let t=n.get(e.id)??[];for(let e=t.length-1;e>=0;e--)a.push(t[e])}for(let t of e)i.has(t.id)||r.push(t);return r}var jl=/^[\w+.-]{2,}:\/\//;function Ml(e){return e.endsWith(`/`)?e:`${e}/`}function Nl(e){return(e.endsWith(`/`)?e.slice(0,-1):e)||`/`}function Pl(e,...t){let n=e;for(let e of t)e&&e!==`/`&&(n=n?Ml(n)+e.replace(/^\.?\//,``):e);return n}function Fl(e,t){if(!t||t===`/`||jl.test(e))return e;let n=Nl(t);return e.startsWith(n)?e:Pl(n,e)}function Il(e,t){let n=e.match(jl);return t+(n?e.slice(n[0].length):e)}function Ll(e){return typeof e==`string`?`'${e}'`:new Vl().serialize(e)}var Rl=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,zl=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[Rl.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function Bl(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&zl[n]?zl[n]:n+128,s=a<128&&zl[a]?zl[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var Vl=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?Bl(e,t):n===`number`&&r===`number`?e-t:Bl(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(Bl),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})(),Hl=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Ul=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Wl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,Gl=[],Kl=class{_data=new ql;_hash=new ql([...Hl]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)Gl[n]=e[t+n]|0;else{let e=Gl[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=Gl[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;Gl[n]=t+Gl[n-7]+i+Gl[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+Ul[n]+Gl[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=ql.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new ql(t,i)}},ql=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(Wl.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function Jl(e){return new Kl().finalize(e).toBase64()}function Yl(e){return Jl(Ll(e))}function Xl(e){return Yl(e)}var Zl=typeof self==`object`?self:globalThis,Ql=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),$l=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function eu(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o,r=Ql.has(e)?Zl[e]:void 0;return n(new(r??Zl.Error)(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}if(typeof a==`string`&&$l.has(a))return n(new Zl[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function tu(e){return eu(new Map,e)(0)}var nu=``,{toString:ru}={},{keys:iu}=Object;function au(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=ru.call(e).slice(8,-1);switch(n){case`Array`:return[1,nu];case`Object`:return[2,nu];case`Date`:return[3,nu];case`RegExp`:return[4,nu];case`Map`:return[5,nu];case`Set`:return[6,nu];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function ou([e,t]){return e===0&&(t===`function`||t===`symbol`)}function su(e,t,n,r){let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=au(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of iu(r))(e||!ou(au(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(ou(au(n))||ou(au(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!ou(au(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function cu(e,t={}){let n=[];return su(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:lu,stringify:uu}=JSON,du={json:!0,lossy:!0};function fu(e){return tu(lu(e))}function pu(e){return uu(cu(e,du))}function mu(e){return tu(e)}function hu(e){return pu(e)}function gu(e){return fu(e)}var _u=256,vu=class extends Error{name=`StreamClosedError`};function yu(t={}){let n=t.id??e(),r=Math.max(0,t.replayWindow??0),i=ko(),a=new AbortController,o=[],s=!1,c=0;function l(e){if(s)throw new vu(`Cannot write to a closed stream "${n}"`);c+=1,r>0&&(o.push({seq:c,chunk:e}),o.length>r&&(o.length-r===1?o.shift():o.splice(0,o.length-r))),i.emit(`chunk`,c,e)}function u(e){if(s)return;s=!0;let t=xu(e);a.abort(e),i.emit(`end`,t)}function d(){s||(s=!0,a.signal.aborted||a.abort(`stream closed`),i.emit(`end`,void 0))}function f(e){s||a.signal.aborted||a.abort(e??`aborted`)}let p=new WritableStream({write(e){l(e)},close(){d()},abort(e){u(e)}});return{id:n,signal:a.signal,get closed(){return s},get lastSeq(){return c},write:l,error:u,close:d,abort:f,writable:p,events:i,buffer:o}}function bu(t={}){let n=t.id??e(),r=Math.max(1,t.highWaterMark??_u),i=[],a=0,o=!1,s=!1,c,l,u,d;function f(){if(l){if(i.length>0){let e=i.shift(),t=l;l=void 0,t.resolve({value:e,done:!1});return}if(o){let e=l;if(l=void 0,c){let t=Error(c.message);t.name=c.name,e.reject(t)}else e.resolve({value:void 0,done:!0})}}}function p(){if(u){for(;i.length>0;){let e=i.shift();try{u.enqueue(e)}catch{break}}if(o&&u){try{if(c){let e=Error(c.message);e.name=c.name,u.error(e)}else u.close()}catch{}u=void 0}}}function m(e,n){if(!(o||s)&&!(e<=a)){if(a=e,i.push(n),i.length>r){let e=i.length-r;i.splice(0,e),t.onOverflow?.(e)}f(),d&&p()}}function h(e){o||(o=!0,c=e,f(),d&&p())}function g(){s||o||(s=!0,t.onCancel?.(),h(void 0))}function _(){return d||(d=new ReadableStream({start(e){u=e,p()},cancel(){g()}}),d)}return{id:n,get cancelled(){return s},get done(){return o},get lastSeenSeq(){return a},get readable(){return _()},cancel:g,_push:m,_end:h,[Symbol.asyncIterator](){return{next(){if(i.length>0)return Promise.resolve({value:i.shift(),done:!1});if(o){if(c){let e=Error(c.message);return e.name=c.name,Promise.reject(e)}return Promise.resolve({value:void 0,done:!0})}return new Promise((e,t)=>{l={resolve:e,reject:t}})},return(){return g(),Promise.resolve({value:void 0,done:!0})}}}}}function xu(e){if(e instanceof Error)return{name:e.name||`Error`,message:e.message};if(typeof e==`string`)return{name:`Error`,message:e};try{return{name:`Error`,message:JSON.stringify(e)}}catch{return{name:`Error`,message:String(e)}}}var Su=128;function Cu(e){return e.replace(/[^\w-]+/g,`_`).slice(0,Su)}var wu=`modulepreload`,Tu=function(e,t){return new URL(e,t).href},Eu={},Du=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Tu(t,n),t=s(t),t in Eu)return;Eu[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:wu,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Ou=`__connection.json`,ku=`__DEVFRAME_CONNECTION__`,Au=`x-birpc-session`,ju=`__rpc-dump/index.json`,Mu=`devframe:services`,Nu=`devframe_otp`,Pu=`devframe_auth_token`;q.postMessage.remoteAssetsError;var Fu=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>Xl(e))}updateOptions(e){this.options={...this.options,...e}}cached(e,t){let n=this.cacheMap.get(e);if(n)return n.get(this.keySerializer(t))}has(e,t){return this.cacheMap.get(e)?.has(this.keySerializer(t))??!1}apply(e,t){let n=this.cacheMap.get(e.m)||new Map;n.set(this.keySerializer(e.a),t),this.cacheMap.set(e.m,n)}validate(e){return this.options.functions.includes(e)}clear(e){e?this.cacheMap.delete(e):this.cacheMap.clear()}},Iu=fo({docsBase:`https://devfra.me/errors`,codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is \`false\`; MCP requires JSON-serializable data.`,fix:"Remove `jsonSerializable: false`, or remove `agent` to keep it RPC-only."},DF0020:{why:e=>`RPC function "${e.name}" declares \`jsonSerializable: true\` but the value at "${e.path}" is a ${e.type}.`,fix:"Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape."},DF0021:{why:e=>`RPC function "${e.name}" is already registered`,fix:"Use the `force` parameter to overwrite an existing registration."},DF0022:{why:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DF0023:{why:e=>`RPC function "${e.name}" is not registered`},DF0024:{why:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DF0025:{why:e=>`Function "${e.name}" not found in dump store`},DF0026:{why:e=>`No dump match for "${e.name}" with args: ${e.args}`},DF0027:{why:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DF0028:{why:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,fix:"Remove `snapshot: true`, or change the function type to `query`."},DF0043:{why:e=>`RPC function "${e.name}" received an invalid argument at position ${e.index}: ${e.issues}`,fix:"Pass a value that satisfies the `args` schema declared for this function."},DF0044:{why:e=>`RPC function "${e.name}" returned a value that failed its \`returns\` schema: ${e.issues}`,fix:"Make the handler return a value that satisfies the `returns` schema, or relax the schema."}}});function Lu(e){if(e.agent&&e.jsonSerializable===!1)throw Iu.DF0019({name:e.name});e.agent&&!e.jsonSerializable&&(e.jsonSerializable=!0)}async function Ru(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function zu(e){return e.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `)}async function Bu(e,t,n){let r=n.slice();if(!t||t.length===0)return r;for(let r=0;r<t.length;r++){let i=t[r];if(!i)continue;let a=await Ru(i,n[r]);if(a.issues)throw Iu.DF0043({name:e,index:r,issues:zu(a.issues)})}return r}async function Vu(e,t,n){if(!t)return n;let r=await Ru(t,n);if(r.issues)throw Iu.DF0044({name:e,issues:zu(r.issues)});return n}async function Hu(e,t){if(!e.setup)return{};if(typeof t==`object`&&t){e.__cache??=new WeakMap;let n=e.__cache,r=n.get(t);return r||(r=Promise.resolve(e.setup(t)),r.catch(()=>{n.get(t)===r&&n.delete(t)}),n.set(t,r)),await r}if(!e.__promise){let n=Promise.resolve(e.setup(t));n.catch(()=>{e.__promise===n&&(e.__promise=void 0)}),e.__promise=n}return await e.__promise}async function Uu(e,t){let n=e.handler;if(!n){let r=await Hu(e,t);if(!r.handler)throw Iu.DF0024({name:e.name});n=r.handler}let r=e.args,i=e.returns;if(!r&&!i)return n;let a=n;return async(...t)=>{let n=await Bu(e.name,r,t),o=await a(...n);return await Vu(e.name,i,o)}}var Wu=class{context;definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;let t=this.definitions,n=this;this.functions=new Proxy({},{get(e,r){let i=t.get(r);if(i)return Uu(i,n.context)},has(e,n){return t.has(n)},getOwnPropertyDescriptor(e,n){return{value:t.get(n)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw Iu.DF0021({name:e.name});Lu(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw Iu.DF0022({name:e.name});Lu(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}onChanged(e){return this._onChanged.push(e),()=>{let t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await Uu(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw Iu.DF0023({name:String(e)});return{args:t.args,returns:t.returns}}has(e){return this.definitions.has(e)}get(e){return this.definitions.get(e)}list(){return Array.from(this.definitions.keys())}};function Gu(e,t=``){return JSON.stringify(e,function(e,n){let r=this,i=r==null?n:r[e];if(i===void 0){if(Array.isArray(r))throw qu(t,`undefined`,r,e);return n}return i!==null&&Ku(i,r,e,t),n})}function Ku(e,t,n,r){if(typeof e==`bigint`)throw qu(r,`BigInt`,t,n);if(typeof e!=`object`)return;if(e instanceof Map)throw qu(r,`Map`,t,n);if(e instanceof Set)throw qu(r,`Set`,t,n);if(e instanceof Date)throw qu(r,`Date`,t,n);if(Array.isArray(e))return;let i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)throw qu(r,e.constructor?.name??`class instance`,t,n)}function qu(e,t,n,r){let i=Ju(n,r);return Iu.DF0020({name:e||`<anonymous>`,type:t,path:i})}function Ju(e,t){return Array.isArray(e)?`[${t}]`:t===``?`<root>`:t}var Yu=`__DEVFRAME_CONNECTION_META__`,Xu=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function Zu(e){let t=[()=>window?.[e],()=>globalThis?.[e],()=>parent.window?.[e]];for(let e of t)try{let t=e();if(t)return t}catch{}}function Qu(){return Zu(ku)}function $u(){return Zu(Yu)}function ed(e){if(e)return e;try{let e=localStorage.getItem(Xu);if(e)return e}catch{}return Zu(Xu)}function td(e){globalThis[ku]=e,globalThis[Yu]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&nd(e.authToken)}function nd(e){try{localStorage.setItem(Xu,e)}catch{}globalThis[Xu]=e;let t=Qu();t&&(globalThis[ku]={...t,authToken:e})}function rd(e){let t=Fl(Ou,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function id(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function ad(){let e=Qu();if(e)return id(e,ed()??e.authToken??e.connectionMeta.authToken);let t=$u();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??rd(`./`),authToken:ed(t.authToken)}}async function od(e={}){if(e.connection){let t=id(e.connection,ed(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return td(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:rd(t[0]??`./`),authToken:ed(e.authToken??e.connectionMeta.authToken)};return td(n),n}let n=ad();if(n){let t=id(n,ed(e.authToken??n.authToken??n.connectionMeta.authToken));return td(t),t}let r=[];for(let n of t){let t=Fl(Ou,n),i=rd(n);try{let n=await fetch(t);if(!n.ok)throw Error(`Failed to fetch connection meta from ${i}: ${n.status}`);let r=await n.json(),a=n.url||i,o={connectionMeta:r,metaBaseUrl:r.baseUrl?new URL(r.baseUrl,a).href:a,authToken:ed(e.authToken??r.authToken)};return td(o),o}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var sd=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function cd(e=Nu){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function ld(e){try{let t=new URL(globalThis.location.href),n=new URLSearchParams(t.hash.replace(/^#/,``));if(!n.has(e))return;n.delete(e),t.hash=n.toString(),globalThis.history?.replaceState(globalThis.history.state,``,t.href)}catch{}}function ud(e=Nu){let t=cd(e);return t&&ld(e),t}async function dd(e,t={}){let n=ud(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function fd(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(Mu,{initialValue:{}}).then(e=>(t=e.value(),e.on(`updated`,e=>{t=e}),e)),r);return i(),{state:i,has:e=>e in t,keys:()=>Object.keys(t),get:r=>{let i=t[r];if(!i)return;let a=n.get(i);return a||(a={...i,rpc:e.scope(i.scope).rpc},n.set(i,a)),a}}}function pd(e){let t=new Map,n=new Map,r=new Map,i=new Set,a=e.connectionMeta.backend===`static`;function o(e,t){let n=r.get(e);return n&&typeof n==`object`&&!Array.isArray(n)&&typeof t==`object`&&!Array.isArray(t)?{...n,...t}:t}e.client.register({name:q.broadcast.clientStateUpdated,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.mutate(()=>o(e,n),r)}}),e.client.register({name:q.broadcast.clientStatePatch,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.patch(n,r)}});function s(t,n){let r=[];return r.push(n.on(`updated`,(n,r,i)=>{a||(r?e.callEvent(`devframe:rpc:server-state:patch`,t,r,i):e.callEvent(`devframe:rpc:server-state:set`,t,n,i))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return i.add(e),()=>{i.delete(e)}},delete(e){let i=n.get(e);n.delete(e);let a=t.delete(e);return r.delete(e),i?.(),a},get:async(c,l)=>{if(l?.initialValue!==void 0&&r.set(c,l.initialValue),t.has(c))return t.get(c);let u=ic({initialValue:l?.initialValue,enablePatches:!1});async function d(){if(a||e.callEvent(`devframe:rpc:server-state:subscribe`,c),l?.initialValue!==void 0){t.set(c,u);for(let e of i)e(c);return e.call(`devframe:rpc:server-state:get`,c).then(e=>{e!==void 0&&u.mutate(()=>o(c,e))}).catch(e=>{console.error(`Error getting server state`,e)}),n.set(c,s(c,u)),u}{let r=await e.call(`devframe:rpc:server-state:get`,c);u.mutate(()=>o(c,r)),t.set(c,u);for(let e of i)e(c);return n.set(c,s(c,u)),u}}return new Promise(t=>{if(e.isTrusted)d().then(t);else{t(u);let n=!1;e.events.on(q.client.isTrustedUpdated,e=>{e&&!n&&(n=!0,d())})}})}}}var md=new Map;function hd(e=md){let t=new Map;return{serialize:n=>{let r;return n.t===`q`?r=n.m:(r=t.get(n.i),t.delete(n.i)),!(n.t===`s`&&`e`in n)&&r&&e.get(r)?.jsonSerializable===!0?Gu(n,r??``):`s:${hu(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?gu(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function gd(){}function _d(e){let t=e.search(/\n\n|\r\n\r\n/);if(!(t<0))return{frame:e.slice(0,t),rest:e.slice(t+(e[t]===`\r`?4:2))}}function vd(e){let t=`message`,n=[];for(let r of e.split(/\r?\n/))r.startsWith(`:`)||(r.startsWith(`event:`)?t=r.slice(6).trimStart():r.startsWith(`data:`)&&n.push(r.slice(5).replace(/^ /,``)));return{event:t,data:n}}function yd(e){let{onConnected:t=gd,onError:n=gd,onDisconnected:r=gd,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${Pu}=${encodeURIComponent(e.authToken)}`);let s=hd(i),c=new AbortController,l=!1,u,d,f,p,m=new Promise((e,t)=>{f=e,p=t});m.catch(()=>{});function h(e){l||(l=!0,p(e),n(e),r())}function g(){l||(l=!0,p(Error(`Devframe SSE stream closed`)),r())}function _(e,n){if(e===`session`){f(n),t();return}u?.(n)}async function v(e){let t=e.getReader();d=t;let n=new TextDecoder,r=``;for(;;){let{done:e,value:i}=await t.read();if(e)break;for(r+=n.decode(i,{stream:!0});;){let e=_d(r);if(!e)break;r=e.rest;let{event:t,data:n}=vd(e.frame);n.length>0&&_(t,n.join(`
4
- `))}}g()}return(async()=>{try{let e=await a(o,{headers:{accept:`text/event-stream`},signal:c.signal});if(!e.ok||!e.body)throw Error(`Devframe SSE stream request failed: ${e.status}`);await v(e.body)}catch(e){if(c.signal.aborted){g();return}h(e instanceof Error?e:Error(String(e)))}})(),{close:()=>{l=!0,c.abort(),d?.cancel().catch(()=>{})},on:e=>{u=e},post:async e=>{let t;try{t=await m}catch{return}if(l){n(Error(`Devframe SSE channel is closed; message dropped`));return}try{let n=await a(o,{method:`POST`,headers:{"content-type":`text/plain; charset=utf-8`,[Au]:t},body:e});if(n.status===200){let e=await n.text();e&&u?.(e);return}if(!n.ok)throw Error(`Devframe SSE POST failed: ${n.status}`)}catch(e){n(e instanceof Error?e:Error(String(e)))}},serialize:s.serialize,deserialize:s.deserialize}}function bd(e,t){let{channel:n,rpcOptions:r={}}=t;return So(e,{...n,timeout:-1,...r,proxify:!1})}function xd(e){let{transport:t,authToken:n,connectionMeta:r,events:i,clientRpc:a,rpcOptions:o={},callTimeout:s=0}=e,c=!1,l=`connecting`,u=null,d=Promise.withResolvers();function f(e,t=null){if(t?u=t:e===`connected`&&(u=null),e===l)return;let n=l;l=e,i.emit(q.client.connectionStatus,e,n)}let p=new Set;function m(e){for(let t of[...p])t.reject(e)}function h(){return l===`disconnected`||l===`error`?new sd(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new sd(`auth`,`[devframe] Not authorized by the devframe server`,{cause:u??void 0}):null}function g(e,t){return new Promise((n,r)=>{let a=!1,o,c={reject(e){a||(l(),i.emit(q.client.error,e,t),r(e))}};function l(){a=!0,p.delete(c),o&&clearTimeout(o)}p.add(c),s>0&&(o=setTimeout(()=>{c.reject(new sd(`timeout`,`[devframe] RPC call "${t}" timed out after ${s}ms`))},s)),e.then(e=>{a||(l(),n(e))},e=>{if(a)return;l();let n=e instanceof Error?e:Error(String(e));i.emit(q.client.error,n,t),r(n)})})}let _=new Map;for(let e of r.jsonSerializableMethods??[])_.set(e,{jsonSerializable:!0});let v=e.createChannel({definitions:_,onError(e){f(`error`,e),i.emit(q.client.connectionError,e),m(new sd(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new sd(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),y=bd(a.functions,{channel:v,rpcOptions:o});a.register({name:q.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new sd(`auth`,`[devframe] The devframe server revoked this client's trust`);f(`unauthorized`,e),i.emit(q.client.connectionError,e),m(e),i.emit(q.client.isTrustedUpdated,!1)}});let b=n;async function x(e){b=e;let t=await y.$call(`anonymous:devframe:auth`,{authToken:e,ua:navigator.userAgent,origin:location.origin});if(c=t.isTrusted,c)d.resolve(!0),f(`connected`);else{let e=new sd(`auth`,`[devframe] The devframe server refused this client's credentials`);f(`unauthorized`,e),i.emit(q.client.connectionError,e)}return i.emit(q.client.isTrustedUpdated,c),t.isTrusted}async function S(e){let t=(await y.$call(`anonymous:devframe:auth:exchange`,{code:e,ua:navigator.userAgent,origin:location.origin}))?.authToken??null;return t&&(b=t,c=!0,d.resolve(!0),f(`connected`),i.emit(q.client.isTrustedUpdated,!0)),t}async function C(e={}){await y.$call(`anonymous:devframe:auth:request-code`,{ua:navigator.userAgent,origin:location.origin,...e.reissue?{reissue:!0}:{}})}async function w(){return c?!0:x(b??``)}async function T(e=6e4){if(c&&d.resolve(!0),e<=0)return d.promise;let t;try{return await Promise.race([d.promise,new Promise((n,r)=>{t=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e)})]),c}finally{clearTimeout(t)}}return{transport:t,get isTrusted(){return c},get status(){return l},get connectionError(){return u},requestTrust:w,requestTrustWithToken:x,requestTrustWithCode:S,requestAuthCode:C,ensureTrusted:T,call:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(q.client.error,n,t),Promise.reject(n)):g(y.$call(...e),t)},callEvent:(...e)=>{let t=h();if(t){i.emit(q.client.error,t,String(e[0]));return}return y.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(q.client.error,n,t),Promise.reject(n)):g(y.$callOptional(...e),t)},close:()=>{v.close()}}}function Sd(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})();if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`;return new URL(e.path??`/`,`${r.protocol}//${t}`).href}return new URL(e.path??``,r).href}let i=e??``;return/^https?:\/\//i.test(i)?i:new URL(i,r).href}function Cd(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=Sd(n.sse,r??`./`,location);return xd({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>yd({url:l,authToken:t,definitions:e.definitions,...s,onConnected(){s.onConnected?.()},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(){e.onDisconnected(),s.onDisconnected?.()}})})}function wd(e){let{name:t,message:n,cause:r,...i}=e,a=r instanceof Error?r:Td(r)?wd(r):r,o=a===void 0?Error(n):Error(n,{cause:a});return o.name=t,Object.assign(o,i),o}function Td(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function Ed(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function Dd(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function Od(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function kd(e){if(e.error)throw wd(e.error);return e.output}function Ad(e){return e.some(e=>e!=null)}function jd(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function Md(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?mu(e):e}function a(e,t){return i(jd(e),t)}async function o(e){n.has(e.path)||n.set(e.path,t(e.path).then(t=>a(t,e.serialization)));let r=await n.get(e.path);return Od(r)?kd(r):r}async function s(e,n){return r.has(e)||r.set(e,t(e).then(e=>a(e,n))),await r.get(e)}async function c(t,n){if(!(t in e))throw Error(`[devframe-rpc] Function "${t}" not found in dump store`);let r=e[t];if(Ed(r)){if(Ad(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(Dd(r)){let e=Xl(n),i=r.records[e];if(i)return kd(await s(i,r.serialization));if(r.fallback)return kd(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!Ad(n))return r;throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}return{call:async(e,t)=>await c(e,t),callOptional:async(t,n)=>{if(t in e)return await c(t,n)},callEvent:async(e,t)=>{}}}async function Nd(e){let t=Md(await e.fetchJsonFromBases(ju),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,requestAuthCode:async()=>{},ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1)),close:()=>{}}}var Pd=``;function Fd(e,t){return`${e}${Pd}${t}`}function Id(e){let t=new Map,n=new Map;e.client.register({name:q.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(Fd(e,n))?._push(r,i)}}),e.client.register({name:q.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=Fd(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:q.broadcast.streamingUploadCancel,type:`event`,handler(e,t){let r=Fd(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(q.client.isTrustedUpdated,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(Pd);if(t<0)continue;let i=n.slice(0,t),a=n.slice(t+1);e.callEvent(`devframe:streaming:subscribe`,i,a,{afterSeq:r.lastSeenSeq})}});function r(n,r,i={}){let a=Fd(n,r),o=t.get(a);if(o)return o;let s=bu({id:r,highWaterMark:i.highWaterMark,onOverflow(e){console.warn(`[devframe] DF0029: Stream "${n}#${r}" dropped ${e} chunk(s) after exceeding the client high-water mark.`)},onCancel(){e.callEvent(`devframe:streaming:cancel`,n,r),t.delete(a)}});if(t.set(a,s),e.isTrusted)e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:0});else{let i=e.events.on(q.client.isTrustedUpdated,o=>{o&&(i(),t.has(a)&&!s.cancelled&&!s.done&&e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:s.lastSeenSeq}))})}return s}function i(t,r){let i=Fd(t,r),a=n.get(i);if(a)return a;let o=yu({id:r});return o.events.on(`chunk`,(n,i)=>{e.callEvent(`devframe:streaming:upload-chunk`,t,r,n,i)}),o.events.on(`end`,a=>{e.callEvent(`devframe:streaming:upload-end`,t,r,a),n.delete(i)}),n.set(i,o),o}return{subscribe:r,upload:i}}function Ld(){}var Rd=new Map;function zd(e){let t=e.url;e.authToken&&(t=`${t}?${Pu}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=Ld,onError:i=Ld,onDisconnected:a=Ld,definitions:o=Rd}=e;n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{let t=e instanceof Error?e:Error(e.type);i(t)}),n.addEventListener(`close`,e=>{a(e)});let s=hd(o);return{close:()=>{n.close()},on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN){n.send(e);return}if(n.readyState===WebSocket.CONNECTING){let t=()=>{i(),n.readyState===WebSocket.OPEN&&n.send(e)},r=()=>i();function i(){n.removeEventListener(`open`,t),n.removeEventListener(`close`,r)}n.addEventListener(`open`,t),n.addEventListener(`close`,r);return}i(Error(`Devframe WebSocket is not open; message dropped`))},serialize:s.serialize,deserialize:s.deserialize}}function Bd(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})(),i=r.protocol===`https:`?`wss:`:`ws:`;if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`,n=new URL(e.path??`/`,`${i}//${t}`);return n.protocol=i,n.href}let t=new URL(e.path??``,r);return t.protocol=i,t.href}if(typeof e==`number`)return`${i}//${r.hostname}:${e}`;let a=e??``;if(/^wss?:\/\//i.test(a))return a;if(/^https?:\/\//i.test(a))return Il(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function Vd(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=Bd(n.websocket,r??`./`,location);return xd({transport:`websocket`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>zd({url:l,authToken:t,definitions:e.definitions,...s,onConnected(e){s.onConnected?.(e)},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(t){e.onDisconnected(),s.onDisconnected?.(t)}})})}function Hd(e){return e.includes(`:`)}function Ud(e,t){return Hd(t)?t:`${e}:${t}`}function Wd(e){return{async get(t){return(await e()).value()[t]},async set(t,n){(await e()).mutate(e=>{e[t]=n})},async delete(t){(await e()).mutate(e=>{delete e[t]})},async all(){return(await e()).value()},async onChange(t){return(await e()).on(`updated`,e=>t(e))}}}function Gd(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=e.sharedState.get(r,{initialValue:{}}),i}return Wd(a)}function Kd(e,t){return{global:Gd(e,t,`global`),project:Gd(e,t,`project`)}}function qd(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(Hd(n.name))throw Error(`[devframe] Scoped client RPC registration for namespace "${t}" received an already-namespaced function name "${n.name}". Pass a bare name without a ":" separator.`);e.client.register({...n,name:`${t}:${n.name}`})},call:((n,...r)=>e.call(Ud(t,n),...r)),callEvent:((n,...r)=>e.callEvent(Ud(t,n),...r)),callOptional:((n,...r)=>e.callOptional(Ud(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(Ud(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(Ud(t,n),r,i),upload:(n,r)=>e.streaming.upload(Ud(t,n),r)}},settings:Kd(e,t),scope:e.scope}}function Jd(){if(typeof document<`u`){let e=document.modelContext;if(e)return e}if(typeof navigator<`u`){let e=navigator.modelContext;if(e)return e}}function Yd(e,t={}){let n=t.modelContext??Jd();if(!n)return()=>{};let r=n,i=new Map,a=new Map;function o(t,n){let o=Cu(t.name),s=a.get(o);if(s&&s!==t.name){console.warn(`[devframe] WebMCP tool name "${o}" (from "${t.name}") collides with "${s}"; keeping the first registration.`);return}let c=new AbortController,l=Co(t.type,n),u=r.registerTool({name:o,description:n.description,inputSchema:Eo(t.args),annotations:{title:n.title??t.name,readOnlyHint:l===`read`,destructiveHint:l===`destructive`},execute:n=>Xd(t,e.context,n)},{signal:c.signal});u&&`then`in u&&u.then(()=>{},()=>{}),a.set(o,t.name),i.set(t.name,()=>{c.abort(),u&&`unregister`in u&&typeof u.unregister==`function`&&u.unregister(),a.delete(o)})}function s(t){let n=t?[t]:[...e.definitions.keys()];for(let t of n){i.get(t)?.(),i.delete(t);let n=e.definitions.get(t),r=n?.agent;n&&r&&o(n,r)}}s();let c=e.onChanged(e=>s(e));return()=>{c();for(let e of i.values())e();i.clear()}}async function Xd(e,t,n){try{let r=Oo(n,e.args?.length);return{content:[{type:`text`,text:Zd(await(await Uu(e,t))(...r))}]}}catch(e){return{isError:!0,content:[{type:`text`,text:Qd(e)}]}}}function Zd(e){return e===void 0?`undefined`:typeof e==`string`?e:JSON.stringify(e,null,2)}function Qd(e){if(!(e instanceof Error))return String(e);let t=e.cause instanceof Error?` (cause: ${e.cause.message})`:``;return`${e.name}: ${e.message}${t}`}function $d(e,t){if(t.backend===`static`)return`static`;let n=t.websocket!==void 0,r=t.sse!==void 0;if(e===`websocket`){if(!n)throw Error(`[devframe] transport: 'websocket' was requested, but this server does not advertise a WebSocket endpoint`);return`websocket`}if(e===`sse`){if(!r)throw Error(`[devframe] transport: 'sse' was requested, but this server does not advertise an SSE endpoint`);return`sse`}if(t.backend===`sse`&&r)return`sse`;if(n)return`websocket`;if(r)return`sse`;throw Error(`[devframe] This server advertises no RPC transport (backend "none"), so there is nothing to connect to. Enable the WebSocket or SSE endpoint on the server, or use its static/MCP surfaces instead.`)}async function ef(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=ko(),a=Array.isArray(t)?t:[t],o=await od(e),{connectionMeta:s,metaBaseUrl:c,authToken:l}=o,u=a[0]??`./`;try{u=new URL(`.`,c).href}catch{}let d=new Fu({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),f={rpc:void 0},p=new Wu(f),m=e.webmcp===!1?void 0:Yd(p),h,g=!1;async function _(e){let t=[u,...a.filter(e=>e!==u)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(Fl(e,r)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let v={authToken:l,connectionMeta:s,metaBaseUrl:c,events:i,clientRpc:p,callTimeout:e.callTimeout,rpcOptions:{...n,async onRequest(e,t,i){if(await n.onRequest?.call(this,e,t,i),r&&d?.validate(e.m)){if(d.has(e.m,e.a))return i(d.cached(e.m,e.a));let n=await t(e);d.apply(e,n)}else await t(e)}}},y=$d(e.transport??`auto`,s),b=y===`static`?await Nd({fetchJsonFromBases:_}):y===`sse`?Cd({...v,sseOptions:e.sseOptions}):Vd({...v,wsOptions:e.wsOptions}),x;try{x=new BroadcastChannel(`devframe-auth`)}catch{}let S,C=!1;function w(e){return((...t)=>C||!S?e(...t):S.then(()=>e(...t)))}function T(){g=!0;try{h?.(),m?.()}finally{try{x?.close()}finally{b.close?.()}}}let E={events:i,get isTrusted(){return b.isTrusted},get status(){return b.status},get connectionError(){return b.connectionError},get transport(){return b.transport??y},get connection(){return o},connectionMeta:s,ensureTrusted:b.ensureTrusted,requestTrust:b.requestTrust,requestTrustWithToken:async e=>(nd(e),o={...o,authToken:e},b.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await b.requestTrustWithCode(e);if(!t)return!1;nd(t),o={...o,authToken:t};try{x?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},requestAuthCode:e=>b.requestAuthCode(e),call:w(b.call),callEvent:w(b.callEvent),callOptional:w(b.callOptional),client:p,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:d,scope:void 0,close:T};E.sharedState=pd(E),E.streaming=Id(E),E.services=fd(E);let D=new Map;E.scope=(e=>{if(!e)return E;let t=D.get(e);return t||(t=qd(E,e),D.set(e,t)),t}),f.rpc=E;function O(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function ee(){if(e.simpleAuth!==!1&&O()&&typeof globalThis.prompt==`function`)for(await E.requestAuthCode().catch(()=>{});!E.isTrusted;){let e=globalThis.prompt(`devframe: enter the authentication code shown in your terminal`);if(e==null)return;let t=e.trim();if(t&&await E.requestTrustWithCode(t))return}}async function k(){let t=await b.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await dd(E,{param:n}):!1;t||r||E.isTrusted||await ee()}return S=k().then(()=>{C=!0},()=>{C=!0}),s.mcp&&Du(async()=>{let{setupBrowserAgentRpcBridge:e}=await import(`./browser-agent-rpc-BXhoSh1z-D8UCXOqP.js`);return{setupBrowserAgentRpcBridge:e}},__vite__mapDeps([0,1]),import.meta.url).then(({setupBrowserAgentRpcBridge:e})=>{g||(h=e(E))}).catch(()=>{}),x&&(x.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&E.requestTrustWithToken(e.data.authToken)}),E}function tf(e={}){return ef({...e,simpleAuth:!1})}var nf=5e3,rf=1e3;function af(e){let t,n,r,i=[],a,o,s,c,l=!1,u=0,d=R(!1),f=R(),p=Yt([]),m=R();function h(){if(s)return s;try{if(s=pl(),g(s),s.onConnectionChanged){let n=!1;t=s.onConnectionChanged(t=>{t===`connected`?(n&&(e.onRuntimeChanged(),e.refresh()),n=!0):n&&(d.value=!1,e.onDisconnect())})}return s}catch{return}}function g(t){let n=t.frames;n&&(r=n,p.value=n.getFrames(),m.value=n.getActiveFrameId(),i.push(n.onFramesChanged((e,t)=>{p.value=e,m.value=t}),n.onFrameActivated((t,n)=>{m.value=t.frameId,n!==`initial`&&(u++,e.onRuntimeChanged(),e.refresh())})))}function _(){i.forEach(e=>e()),i=[],r=void 0,p.value=[],m.value=void 0}function v(e){e!==m.value&&r?.selectFrame(e)}function y(){return c??=tf().catch(e=>{throw c=void 0,e}),c}function b(){l&&!a&&(a=setTimeout(()=>{a=void 0,e.refresh()},rf))}function x(){!l||o||s?.onConnectionChanged||(o=setTimeout(()=>{o=void 0,S()},nf))}async function S(){let e=u,t=h();if(!t){b();return}try{let n=await t.query({type:`runtime:health`});if(!l||e!==u)return;d.value=n.status===`ready`,f.value=void 0,x()}catch(t){if(!l||e!==u)return;d.value=!1,f.value=t instanceof Error?t.message:String(t),C(),b()}}function C(){u++,d.value=!1,e.onDisconnect(),n?.(),n=void 0,_(),t?.(),t=void 0,s?.dispose(),s=void 0,T()}function w(){a&&=(clearTimeout(a),void 0)}function T(){o&&=(clearTimeout(o),void 0)}function E(){w(),T()}function D(e,t){n??=e.onEvent(t)}function O(){l||(l=!0,e.refresh())}function ee(){l=!1,C(),c=void 0,E()}return{connected:d,error:f,frames:p,activeFrameId:m,getRpcClient:h,getViteRpcClient:y,selectFrame:v,scheduleConnectionRetry:b,scheduleConnectionHealthCheck:x,disconnectRpcClient:C,clearConnectionRetryTimer:w,listenRuntimeEvents:D,start:O,stop:ee}}var of=250,sf=5e3,cf=5e3,lf=`vue-devtools-next:timeline-settings`;function uf(e){let t=A(),n=Yt([]),r=Yt([]),i=R(t.recording),a=R(new Set(t.disabledLayerIds)),o=R(t.selectedLayerId),s=0,c=0,l=!1,u=[],d=0,f=0,p=0;Zn([i,a,o],()=>{ne({recording:i.value,disabledLayerIds:[...a.value],selectedLayerId:o.value})},{deep:!0});function m(e){e.type===`timeline:layerAdded`&&e.layerId&&S({id:e.layerId,label:e.label??C(e.layerId),appId:e.appId,pluginId:e.pluginId,color:e.color}),(e.type===`timeline:eventAdded`||e.type===`timeline:eventsLimited`)&&e.layerId&&i.value&&O(e.layerId)&&g(e)}function h(){n.value=[],r.value=[],s=0,b()}function g(e){if(f===cf){let t=u[d];p+=t?.type===`timeline:eventsLimited`?t.dropped??0:1,u[d]=e,d=(d+1)%cf}else u[(d+f)%cf]=e,f++;_()}function _(){if(l)return;l=!0;let e=c;y(()=>{e===c&&i.value&&(l=!1,v())})}function v(){let e=[];for(p&&=(e.push({type:`timeline:eventsLimited`,time:Date.now(),layerId:`timeline`,dropped:p,subtitle:`Client pending queue limit reached`}),0);f&&e.length<of;)e.push(u[d]),u[d]=void 0,d=(d+1)%cf,f--;if(!e.length)return;for(let t of e){let e=t.layerId;e&&O(e)&&S({id:e,label:C(e),appId:t.appId,pluginId:t.pluginId})}let t=e.flatMap(e=>{let t=e.layerId;if(!t||!O(t))return[];let n=e.type===`timeline:eventsLimited`,r=e.dropped??0,i=e.coalesced??0;return[{id:s++,type:e.type,time:e.time??Date.now(),label:n?x(r,i):e.title??e.type.replaceAll(`:`,` `),appId:e.appId,pluginId:e.pluginId,layerId:t,title:n?x(r,i):e.title,subtitle:n?e.subtitle??`Runtime event limit reached`:e.subtitle,data:e.data,meta:e.meta,groupId:e.groupId,logType:n?`warning`:e.logType,all:e.all,dropped:r,coalesced:i}]}),r=[...n.value,...t];if(r.length>sf){let e=r.length-sf+1,t=r[0]?.layerId??`timeline`;n.value=[...r.slice(-4999),{id:s++,type:`timeline:eventsLimited`,time:Date.now(),label:x(e,0),layerId:t,title:x(e,0),subtitle:`Client history limit reached`,logType:`warning`,dropped:e,coalesced:0}]}else n.value=r;f&&_()}function y(e){typeof requestAnimationFrame==`function`?requestAnimationFrame(()=>e()):setTimeout(e,0)}function b(){u.splice(0,u.length),d=0,f=0,p=0,c+=1,l=!1}function x(e,t){return e&&t?`Events dropped and coalesced`:e?`Events dropped`:t?`Events coalesced`:`Timeline events limited`}function S(e){let t=r.value.findIndex(t=>t.id===e.id);if(t===-1){r.value=[...r.value,e];return}r.value=r.value.map((n,r)=>r===t?{...n,...e,label:e.label||n.label,color:e.color??n.color}:n)}function C(e){return e.split(/[-:]/g).filter(Boolean).map(e=>e[0]?.toUpperCase()+e.slice(1)).join(` `)}function w(){b(),n.value=[],s=0,e()?.command({type:`timeline:clear`}).catch(()=>{})}function T(){i.value=!i.value,i.value||b(),k()}async function E(t){t.pluginId&&await e()?.command({type:`timeline:inspectEvent`,appId:t.appId,payload:{pluginId:t.pluginId,layerId:t.layerId,event:{time:t.time,title:t.title??t.label,subtitle:t.subtitle,data:t.data,meta:t.meta,groupId:t.groupId,logType:t.logType,all:t.all}}}).catch(()=>{})}function D(e){let t=new Set(a.value);t.has(e)?t.delete(e):t.add(e),a.value=t,k()}function O(e){return!a.value.has(e)}function ee(e){o.value=e}async function k(t=e()){await t?.command({type:`timeline:setRecording`,payload:{recording:i.value,disabledLayerIds:[...a.value]}}).catch(()=>{})}function te(e){return e?new Intl.DateTimeFormat(void 0,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`}).format(e):`-`}function A(){let e={recording:!0,disabledLayerIds:[],selectedLayerId:``};if(typeof window>`u`)return e;try{let t=window.localStorage.getItem(lf);if(!t)return e;let n=JSON.parse(t);if(!n||typeof n!=`object`)return e;let r=n;return{recording:typeof r.recording==`boolean`?r.recording:e.recording,disabledLayerIds:Array.isArray(r.disabledLayerIds)?r.disabledLayerIds.filter(e=>typeof e==`string`):e.disabledLayerIds,selectedLayerId:typeof r.selectedLayerId==`string`?r.selectedLayerId:e.selectedLayerId}}catch{return e}}function ne(e){if(typeof window<`u`)try{window.localStorage.setItem(lf,JSON.stringify(e))}catch{}}return{timeline:n,timelineLayers:r,timelineRecording:i,disabledTimelineLayerIds:a,selectedTimelineLayerId:o,clearTimelineEvents:w,toggleTimelineRecording:T,inspectTimelineEvent:E,toggleTimelineLayerEnabled:D,isTimelineLayerEnabled:O,selectTimelineLayer:ee,syncTimelineSettings:k,formatTime:te,discardPendingTimelineEvents:b,handleTimelineEvent:m,resetTimeline:h}}var df=30;function ff(e){let{getRpcClient:t,runtimeVersion:n,selectedAppId:r,selectedComponentId:i,error:a,assertCommandSucceeded:o}=e,s=R(),c=R(!1),l=R(),u=R({}),d=R({}),f=0,p=0,m=0,h,g=new Map;Zn([n,r,i],v,{flush:`sync`}),Zn(i,e=>{e&&y(e)});function _(e){return`${m}:${r.value}:${e}`}function v(){m++,p++,h=void 0,g.clear(),s.value=void 0,l.value=void 0,c.value=!1,se()}async function y(e,n=0){let o=t();if(!o)return;let u=r.value,d=_(e),f=g.get(d);if(f){f.refresh=!0,f.minimumVersion=Math.max(f.minimumVersion,n);return}if(n&&s.value?.componentId===e&&s.value.version>=n)return;if(h?.key===d&&h.maxEntries===l.value)return h.minimumVersion=Math.max(h.minimumVersion,n),h.promise;let m=++p;c.value=!0;let v={key:d,maxEntries:l.value,minimumVersion:n,promise:Promise.resolve()};return h=v,v.promise=y(),v.promise;async function y(){try{for(;;){let t=v.minimumVersion,n=await o.query({type:`components:stateSnapshot`,appId:u,payload:{componentId:e,maxEntries:v.maxEntries}});if(m!==p||d!==_(e)||e!==i.value)return;if(!(n&&n.version<v.minimumVersion&&v.minimumVersion>t)){se(),s.value=n;return}}}catch(e){m===p&&(a.value=e instanceof Error?e.message:String(e))}finally{h===v&&(h=void 0),m===p&&(c.value=!1)}}}async function b(e,n,r){let a=t();if(!a)return;let s=_(e),l=g.get(s)??{pending:0,refresh:!1,minimumVersion:0};h?.key===s&&(l.refresh=!0,l.minimumVersion=Math.max(l.minimumVersion,h.minimumVersion),p++,h=void 0,c.value=!1),l.pending++,g.set(s,l);try{o(await a.command(n),r),l.refresh=!0}finally{l.pending--,l.pending||(g.delete(s),l.refresh&&s===_(e)&&e===i.value&&(se(),await y(e,l.minimumVersion)))}}async function x(e,n){let i=t();if(i&&n)return await i.query({type:`inspectors:stateSnapshot`,appId:r.value,payload:{inspectorId:e,nodeId:n}})}async function S(e,n){await t()?.command({type:`inspectors:selectNode`,appId:r.value,payload:{inspectorId:e,nodeId:n}}).catch(()=>{})}async function C(){let e=i.value;if(!e)return;let t=Math.max(0,...s.value?.sections.map(e=>e.entries.length)??[]);l.value=(l.value??t)+df,await y(e)}async function w(e,n){let i=j(e),a=ie(ae(i)),o=t();if(!a||!o)return;let s=re(e),c=f,l=await o.query({type:`values:expand`,appId:r.value,payload:{handle:a,maxEntries:n}});l&&c===f&&re(e)===s&&(u.value={...u.value,[s]:oe(i,l.value)})}async function T(e){let n=t();if(!n)return;let a=j(e),o=ie(ae(a)),s=le(e),c=i.value,l;if(o)l={handle:o};else if(!s&&c&&e.path.length>=1){let[t,...n]=e.path;l={componentId:c,sectionId:t,path:n}}else{let e=de(a)?.handle;e&&(l={handle:e})}if(l)return(await n.query({type:`values:storeAsGlobal`,appId:r.value,payload:l}))?.varName}function E(e){return le(e)||e.path.length!==2?!1:e.meta?.stateType===`computed`||e.path[0]===`computed`}async function D(e){let n=t(),a=i.value;if(!n||!a||!E(e))return;let[o,...s]=e.path,c=await n.command({type:`values:recompute`,appId:r.value,payload:{componentId:a,sectionId:o,path:s}});if(c.status!==1)throw Error(typeof c.error==`string`?c.error:`Unable to recompute computed value`);se(),await y(a)}async function O(e,n){let a=le(e);if(a)return A(e,n,a);let o=t(),s=i.value;if(!o||!s)return;let[c,...l]=e.path;await b(s,{type:`components:editState`,appId:r.value,payload:{componentId:s,sectionId:c,path:l,stateType:typeof e.meta?.stateType==`string`?e.meta.stateType:void 0,value:n}},`Unable to edit state entry`)}async function ee(e){let n=le(e);if(n)return ne(e,n);let a=t(),o=i.value;if(!a||!o)return;let[s,...c]=e.path;await b(o,{type:`components:editState`,appId:r.value,payload:{componentId:o,sectionId:s,path:c,remove:!0}},`Unable to delete state entry`)}async function k(e){if(le(e))throw Error(`Adding inspector state entries is not supported`);let n=t(),a=i.value;if(!n||!a)return;let[o,...s]=e.path;await b(a,{type:`components:addState`,appId:r.value,payload:{componentId:a,sectionId:o,path:s,value:void 0}},`Unable to add state entry`)}async function te(e,n){let a=t();if(!a)return;let s=de(j(e))?.handle;if(!s)return;let c=await a.command({type:`values:customAction`,appId:r.value,payload:{handle:s,actionIndex:n}});o(c,`Unable to run custom state action`);let l=le(e);l?ce(l.inspectorId,`state`,l.nodeId):i.value&&await y(i.value)}async function A(e,n,i){let a=t();if(!a)return;let[s,...c]=e.path,l=await a.command({type:`inspectors:editState`,appId:r.value,payload:{inspectorId:i.inspectorId,nodeId:i.nodeId,sectionId:s,path:c,value:n}});o(l,`Unable to edit inspector state`),se(),ce(i.inspectorId,`state`,i.nodeId)}async function ne(e,n){let i=t();if(!i)return;let[a,...s]=e.path,c=await i.command({type:`inspectors:editState`,appId:r.value,payload:{inspectorId:n.inspectorId,nodeId:n.nodeId,sectionId:a,path:s,remove:!0}});o(c,`Unable to delete inspector state`),se(),ce(n.inspectorId,`state`,n.nodeId)}function re(e){let t=le(e),a=t?[`inspector`,t.inspectorId,t.nodeId]:i.value?[`component`,i.value]:[`state`];return JSON.stringify([n.value,r.value,...a,e.path])}function j(e){return u.value[re(e)]??e.value}function ie(e){return`handle`in e?e.handle:void 0}function ae(e){let t=de(e);return t?ae(t.value):e}function oe(e,t){let n=de(e);return n?{...n,value:oe(n.value,t)}:t}function se(){f++,u.value={}}function ce(e,t,n){let r=d.value[e]??{tree:0,state:0};d.value={...d.value,[e]:{...r,[t]:r[t]+1,...t===`state`?{nodeId:n}:{}}}}function le(e){let t=e.meta?.inspectorId,n=e.meta?.nodeId;return typeof t==`string`&&typeof n==`string`?{inspectorId:t,nodeId:n}:void 0}function ue(e){if(!e||typeof e!=`object`)return`SerializationError`;let t=de(e);if(t)return t.display??(t.value&&typeof t.value==`object`?ue(t.value):`SerializationError`);switch(e.kind){case`null`:case`undefined`:return e.kind;case`boolean`:case`bigint`:return String(e.value);case`number`:return String(e.value);case`string`:return e.truncated?`"${e.value}"...`:`"${e.value}"`;case`symbol`:return`Symbol(${e.description})`;case`function`:return`ƒ ${e.name??`anonymous`}()`;case`array`:return`Array(${e.length})`;case`object`:return e.name;case`map`:return`Map(${e.size})`;case`set`:return`Set(${e.size})`;case`component`:return`<${e.name}>`;case`dom`:return`<${e.tag}${e.id?`#${e.id}`:``}>`;case`date`:case`regexp`:return e.value;case`error`:return`${e.name}: ${e.message}`;case`circular`:return`[Circular ${e.handle}]`}return``}function de(e){if(typeof e==`object`&&e&&e.kind===`custom`)return e}return{componentState:s,componentStateLoading:c,expandedValues:u,inspectorInvalidations:d,fetchComponentState:y,resetComponentStateRequests:v,fetchInspectorState:x,selectInspectorNode:S,showMoreComponentStateEntries:C,expandEntryValue:w,storeStateEntryAsGlobal:T,isComputedStateEntry:E,recomputeStateEntry:D,editComponentState:O,deleteComponentState:ee,addComponentStateEntry:k,executeCustomStateAction:te,getEntryKey:re,getEntryValue:j,clearExpandedValues:se,touchInspectorInvalidation:ce,formatValue:ue}}var pf=`__VUE_DEVTOOLS_CLIENT_SETTINGS__`;function mf(){return{tabSettings:{hiddenTabCategories:[],hiddenTabs:[],pinnedTabs:[]},scale:1,expandSidebar:!1,scrollableSidebar:!0,reduceMotion:!1,highlightUpdates:!1}}var hf=zt(mf());vf(yf()),Zn(hf,()=>{if(typeof window<`u`)try{window.localStorage.setItem(pf,JSON.stringify(hf))}catch{}},{deep:!0});function gf(){return{settings:hf,resetDevtoolsSettings:_f}}function _f(){vf(mf())}function vf(e){hf.scale=e.scale,hf.expandSidebar=e.expandSidebar,hf.scrollableSidebar=e.scrollableSidebar,hf.reduceMotion=e.reduceMotion,hf.highlightUpdates=e.highlightUpdates,hf.tabSettings.hiddenTabCategories=e.tabSettings.hiddenTabCategories,hf.tabSettings.hiddenTabs=e.tabSettings.hiddenTabs,hf.tabSettings.pinnedTabs=e.tabSettings.pinnedTabs}function yf(){if(typeof window>`u`)return mf();try{let e=window.localStorage.getItem(pf);return e?bf(JSON.parse(e)):mf()}catch{return mf()}}function bf(e){let t=mf();if(!xf(e))return t;let n=xf(e.tabSettings)?e.tabSettings:{};return{tabSettings:{hiddenTabCategories:Sf(n.hiddenTabCategories),hiddenTabs:Sf(n.hiddenTabs),pinnedTabs:Sf(n.pinnedTabs)},scale:wf(e.scale,t.scale),expandSidebar:Cf(e.expandSidebar,t.expandSidebar),scrollableSidebar:Cf(e.scrollableSidebar,t.scrollableSidebar),reduceMotion:Cf(e.reduceMotion,t.reduceMotion),highlightUpdates:Cf(e.highlightUpdates,t.highlightUpdates)}}function xf(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function Sf(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function Cf(e,t){return typeof e==`boolean`?e:t}function wf(e,t){return typeof e==`number`&&Number.isFinite(e)?e:t}function Tf(e){let t=new Map;function n(n){for(let[r,i]of t){if(n){let t=r,i=new Set;for(;t&&t!==n&&!i.has(t);)i.add(t),t=e.getParentId?.(t);if(t!==n)continue}i.cancelled=!0,t.delete(r)}}function r(e){for(let n of t.values())n.events.push(...e)}function i(n){let r=t.get(n);if(r?.promise)return r.promise;let i=e.getClient(),a=e.getAppId();if(!i||!a)return Promise.resolve();let o={cancelled:!1,events:[]};return t.set(n,o),o.promise=s(),o.promise;async function s(){let r;try{do{o.events=[];let t=await i.query({type:`components:treeChildren`,appId:a,payload:{componentId:n,cursor:r}});if(r=t.cursor,o.cancelled||e.getAppId()!==a||e.getClient()!==i)break;e.apply([...t.nodes.map(e=>({op:`insert`,parentId:e.parentId,node:e})),...o.events]),r&&await Ef()}while(r&&!o.cancelled)}catch(t){o.cancelled||e.onError(t)}finally{t.get(n)===o&&t.delete(n),r&&await i.command({type:`components:cancelTreeChildren`,appId:a,payload:{cursor:r}}).catch(()=>{})}}}return{expand:i,cancel:n,observe:r}}async function Ef(){let e=globalThis.scheduler;return e?.yield?e.yield():new Promise(e=>setTimeout(e,0))}var Df={routes:[]},Of=Yt([]),kf=Yt([]),Af=Yt([]),jf=Yt([]),Mf=R(Df),Z=R(),Q=R(),Nf=R(!1),Pf=R(0),Ff=0,If=R(),Lf=R({openInEditor:!1}),Rf=Qa(()=>Of.value.find(e=>e.id===Z.value)??Of.value[0]),zf=Qa(()=>kf.value.find(e=>e.id===Q.value)),Bf=Qa(()=>Of.value.length?Math.max(Mf.value.routes.length,1):0),Vf=Qa(()=>Tl(Rf.value?.version)),Hf=Qa(()=>Of.value.reduce((e,t)=>e+t.componentCount,0)),Uf=Qa(()=>Lf.value.openInEditor),Wf=af({refresh:qp,onRuntimeChanged:$p,onDisconnect(){Kp(),hp(),Lf.value={openInEditor:!1}}}),{connected:Gf,error:Kf,frames:qf,activeFrameId:Jf,getRpcClient:$,getViteRpcClient:Yf,selectFrame:Xf,scheduleConnectionRetry:Zf,scheduleConnectionHealthCheck:Qf,disconnectRpcClient:$f,clearConnectionRetryTimer:ep,listenRuntimeEvents:tp}=Wf,{timeline:np,timelineLayers:rp,timelineRecording:ip,disabledTimelineLayerIds:ap,selectedTimelineLayerId:op,clearTimelineEvents:sp,toggleTimelineRecording:cp,inspectTimelineEvent:lp,toggleTimelineLayerEnabled:up,isTimelineLayerEnabled:dp,selectTimelineLayer:fp,syncTimelineSettings:pp,formatTime:mp,discardPendingTimelineEvents:hp,handleTimelineEvent:gp,resetTimeline:_p}=uf($),vp=R(!1),yp=Tf({getClient:$,getAppId:()=>Z.value,getParentId:e=>kf.value.find(t=>t.id===e)?.parentId,apply:tm,onError:e=>{Kf.value=vm(e,`Unable to expand component tree node`)}});Zn([Z,Pf],()=>yp.cancel(),{flush:`sync`});var{componentState:bp,componentStateLoading:xp,expandedValues:Sp,inspectorInvalidations:Cp,fetchComponentState:wp,resetComponentStateRequests:Tp,fetchInspectorState:Ep,selectInspectorNode:Dp,showMoreComponentStateEntries:Op,expandEntryValue:kp,storeStateEntryAsGlobal:Ap,isComputedStateEntry:jp,recomputeStateEntry:Mp,editComponentState:Np,deleteComponentState:Pp,addComponentStateEntry:Fp,executeCustomStateAction:Ip,getEntryKey:Lp,getEntryValue:Rp,clearExpandedValues:zp,touchInspectorInvalidation:Bp,formatValue:Vp}=ff({getRpcClient:$,runtimeVersion:Pf,selectedAppId:Z,selectedComponentId:Q,error:Kf,assertCommandSucceeded:_m});Zn(Rf,e=>{e&&e.id!==Z.value&&(Z.value=e.id)},{immediate:!0}),Zn(kf,e=>{e.some(e=>e.id===Q.value)||(Q.value=e[0]?.id)});var{settings:Hp}=gf();Zn([Gf,()=>Hp.highlightUpdates],([e,t])=>{e&&$()?.command({type:`components:setHighlightUpdates`,payload:{enabled:t}}).catch(()=>{})});function Up(){return{apps:Of,components:kf,componentState:bp,componentStateLoading:xp,componentInspecting:vp,connected:Gf,addComponentStateEntry:Fp,deleteComponentState:Pp,error:Kf,expandedValues:Sp,frames:qf,activeFrameId:Jf,inspectors:Af,inspectorInvalidations:Cp,lastUpdatedAt:If,loading:Nf,plugins:jf,pageCount:Bf,reactivityGraphEnabled:Vf,routerSnapshot:Mf,runtimeVersion:Pf,selectedApp:Rf,selectedAppId:Z,selectedComponent:zf,selectedComponentId:Q,selectedTimelineLayerId:op,timeline:np,disabledTimelineLayerIds:ap,timelineLayers:rp,timelineRecording:ip,totalComponents:Hf,callInspectorAction:am,callInspectorNodeAction:om,openInEditorAvailable:Uf,clearExpandedValues:zp,editComponentState:Np,expandComponentTreeNode:xm,cancelComponentTreeExpansion:yp.cancel,expandEntryValue:kp,fetchInspectorState:Ep,fetchInspectorTree:rm,formatTime:mp,formatValue:Vp,getMatchedRoutes:Yp,getEntryKey:Lp,getEntryValue:Rp,getSelectedComponentRenderCode:fm,highlightComponent:cm,inspectSelectedComponentDom:dm,openSelectedComponentInEditor:pm,openFileInEditor:mm,navigateRoute:Qp,updatePluginSetting:im,executeCustomStateAction:Ip,cancelComponentInspection:hm,clearTimelineEvents:sp,refreshData:qp,inspectComponentInPage:sm,inspectTimelineEvent:lp,isTimelineLayerEnabled:dp,scrollToSelectedComponent:um,selectApp:bm,selectComponent:ym,selectFrame:Xf,selectInspectorNode:Dp,selectTimelineLayer:fp,showMoreComponentStateEntries:Op,storeStateEntryAsGlobal:Ap,isComputedStateEntry:jp,recomputeStateEntry:Mp,toggleTimelineLayerEnabled:up,toggleTimelineRecording:cp,unhighlightComponent:lm}}function Wp(){Wf.start()}function Gp(){Wf.stop()}function Kp(){Ff++,Nf.value=!1,Gf.value=!1,Pf.value++}async function qp(){yp.cancel();let e=++Ff,t=Z.value,n=()=>e===Ff&&t===Z.value,r=$();if(!r){Gf.value=!1,Of.value=[],kf.value=[],Af.value=[],jf.value=[],Mf.value=Df,Tp(),Kf.value=`Waiting for host runtime`,Nf.value=!1,Zf();return}Nf.value=!0;try{let[e,i,a]=await Promise.all([r.query({type:`apps:snapshot`}),r.query({type:`devtools:capabilities`}).catch(()=>({openInEditor:!1})),r.query({type:`plugins:snapshot`})]);if(!n())return;let o=e.apps.some(e=>e.id===t)?t:e.apps[0]?.id,[s,c,l]=await Promise.all([r.query({type:`components:treeSnapshot`,appId:o}),Jp(r,o),nm(r,o)]);if(!n())return;Of.value=e.apps,Z.value=o,kf.value=s.nodes,Lf.value=i,Mf.value=c,jf.value=a.plugins,Af.value=l.inspectors,Gf.value=!0,Kf.value=void 0,If.value=Date.now(),em(r),pp(r),ep(),Qf(),Q.value&&wp(Q.value)}catch(e){if(!n())return;Kf.value=e instanceof Error?e.message:String(e),$f(),Zf()}finally{e===Ff&&(Nf.value=!1)}}async function Jp(e,t){try{return await e.query({type:`router:snapshot`,appId:t})}catch{return{...Df,appId:t}}}async function Yp(e){let t=$();if(!t)return[];try{return(await t.query({type:`router:matchedRoutes`,appId:Z.value,payload:{path:e}})).routes??[]}catch{return[]}}var Xp=0;async function Zp(e){let t=++Xp,n=Ff,r=Z.value,i=await Jp(e,r);t===Xp&&n===Ff&&r===Z.value&&(Mf.value=i)}async function Qp(e){let t=$();if(!t)return;let n=Z.value,r=Ff,i=()=>r===Ff&&n===Z.value,a=await t.command({type:`router:navigate`,appId:n,payload:{path:e}});i()&&(_m(a,`Unable to navigate route`),await Zp(t))}function $p(){Kp(),Of.value=[],kf.value=[],Af.value=[],Cp.value={},jf.value=[],Mf.value=Df,Z.value=void 0,Q.value=void 0,_p()}function em(e){tp(e,t=>{if(gp(t),t.type===`components:treePatched`){if(!t.appId||t.appId!==Z.value)return;yp.observe(t.patches??[]),tm(t.patches??[]),If.value=Date.now();return}if(t.type===`components:stateInvalidated`){let e=t.componentId;e&&e===Q.value&&t.appId===Z.value&&wp(e,t.version);return}if(t.type===`apps:changed`){qp();return}if(t.type===`plugin:setup`||t.type===`inspectors:changed`){qp();return}t.appId&&t.appId!==Z.value||(t.type===`inspectors:treeInvalidated`&&t.inspectorId&&(Bp(t.inspectorId,`tree`),t.inspectorId.startsWith(`router-inspector:`)&&Zp(e)),t.type===`inspectors:stateInvalidated`&&t.inspectorId&&Bp(t.inspectorId,`state`,t.nodeId))})}function tm(e){kf.value=kl(kf.value,e)}async function nm(e,t){try{return await e.query({type:`inspectors:list`,appId:t})}catch{return{inspectors:[]}}}async function rm(e,t=``){let n=$();return n?(await n.query({type:`inspectors:treeSnapshot`,appId:Z.value,payload:{inspectorId:e,filter:t}})).rootNodes??[]:[]}async function im(e,t,n){let r=$();r&&(_m(await r.command({type:`plugins:updateSetting`,payload:{pluginId:e,key:t,value:n}}),`Unable to update plugin setting`),jf.value=jf.value.map(r=>r.id===e?{...r,settingValues:{...r.settingValues,[t]:n}}:r))}async function am(e,t){let n=$();n&&_m(await n.command({type:`inspectors:callAction`,appId:Z.value,payload:{inspectorId:e,actionIndex:t}}),`Unable to run inspector action`)}async function om(e,t,n){let r=$();r&&t&&_m(await r.command({type:`inspectors:callNodeAction`,appId:Z.value,payload:{inspectorId:e,nodeId:t,actionIndex:n}}),`Unable to run inspector node action`)}async function sm(){let e=$();if(e){vp.value=!0;try{let t=await e.query({type:`components:inspect`});return t?(t.appId!==Z.value&&(Z.value=t.appId,bp.value=void 0,zp(),await qp()),t.nodes&&tm(t.nodes.map(e=>({op:`insert`,parentId:e.parentId,node:e}))),Q.value=t.componentId,t):void 0}catch(e){Kf.value=e instanceof Error?e.message:String(e)}finally{vp.value=!1}}}async function cm(e){let t=$();t&&await t.command({type:`components:highlight`,appId:Z.value,payload:{componentId:e}}).catch(()=>{})}async function lm(){await $()?.command({type:`components:unhighlight`}).catch(()=>{})}async function um(){let e=$(),t=Q.value;e&&t&&_m(await e.command({type:`components:scrollTo`,appId:Z.value,payload:{componentId:t}}),`Unable to scroll to component`)}async function dm(){let e=$(),t=Q.value;e&&t&&_m(await e.command({type:`components:inspectDom`,appId:Z.value,payload:{componentId:t}}),`Unable to inspect DOM`)}async function fm(){let e=$(),t=Q.value;if(!e||!t)return;let n=await e.query({type:`components:getRenderCode`,appId:Z.value,payload:{componentId:t}});if(!n){Kf.value=`No render code available for this component`;return}return n}async function pm(){let e=zf.value?.file;if(!e){Kf.value=`No source file available for this component`;return}await mm(e)}async function mm(e){Uf.value&&await gm(await Yf(),`vite:core:open-in-editor`,e)}async function hm(){let e=$();vp.value=!1,await e?.command({type:`components:cancelInspect`})}function gm(e,t,...n){return e.call(t,...n)}function _m(e,t){if(e.status===1)return;let n=vm(e.error,t);throw Kf.value=n,Error(n)}function vm(e,t){if(e==null)return t;if(e instanceof Error)return e.message;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return t}}function ym(e){Q.value=e}function bm(e){Z.value=e,Q.value=void 0,kf.value=[],Af.value=[],Mf.value=Df,sp(),qp()}async function xm(e){if(Lf.value.pagedComponentTree)return yp.expand(e);let t=$();t&&Z.value&&_m(await t.command({type:`components:expandTreeNode`,appId:Z.value,payload:{componentId:e}}),`Unable to expand component tree node`)}var Sm=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{zt as $,Cr as A,Ir as B,$a as C,oe as Ct,On as D,Ee as Dt,ja as E,le as Et,zn as F,Jr as G,Yr as H,Br as I,Hn as J,Zn as K,Vr as L,ua as M,Bn as N,gr as O,Gn as P,Kt as Q,Pr as R,Ca as S,we as St,Qr as T,he as Tt,cr as U,Ur as V,_i as W,Vn as X,Un as Y,L as Z,Ea as _,h as _t,gf as a,$t as at,sr as b,y as bt,hl as c,ne as ct,Qa as d,ve as dt,R as et,xa as f,ie as ft,Ji as g,s as gt,ha as h,c as ht,Up as i,an as it,Dr as j,Er as k,U as l,l as lt,Da as m,_ as mt,Wp as n,Yt as nt,Du as o,Qt as ot,ga as p,p as pt,Yn as q,Gp as r,cn as rt,gl as s,k as st,Sm as t,Bt as tt,yn as u,A as ut,Ta as v,_e as vt,Kn as w,me as wt,Ia as x,Ce as xt,G as y,v as yt,Lr as z};
@@ -1 +0,0 @@
1
- function e(e=21){let t=``,n=e;for(;n--;)t+=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`[Math.random()*64|0];return t}var t=Symbol.for(`devframe:browser-agent-registry`),{tools:n,listeners:r}=globalThis[t]??={tools:new Map,listeners:new Set};function i(){for(let e of r)e()}function a(e){let t=Symbol(e.id);return n.set(t,e),i(),()=>{n.delete(t)&&i()}}function o(){return[...n.values()]}function s(e){return r.add(e),()=>r.delete(e)}export{e as i,s as n,a as r,o as t};
@@ -1 +0,0 @@
1
- import{i as e,n as t,t as n}from"./browser-agent-Pu-FLk6I-Dsjmnbas.js";var r=`devframe:client-id`,i;function a(t=globalThis.window){try{let n=t?.sessionStorage;if(n){let t=n.getItem(r);return t||(t=e(),n.setItem(r,t)),t}}catch{}return i??=e(),i}function o(e){e.client.register({name:`devframe:agent:invoke-client-tool`,type:`action`,jsonSerializable:!0,handler:async(e,t)=>{let r=n().find(t=>t.id===e);if(!r)throw Error(`[devframe/agent] browser tool "${e}" not found`);return await r.invoke(t)}});let r=!1,i=!1,o=0,s=()=>{r||i||(r=!0,queueMicrotask(async()=>{if(r=!1,i)return;let t=n().map(({invoke:e,...t})=>t);(t.length!==0||o!==0)&&(o=t.length,await e.callOptional(`devframe:agent:sync-client-tools`,a(),t).catch(()=>{}))}))},c=t(s),l=e.events.on(`connection:status`,e=>{e===`connected`&&s()});return s(),()=>{i=!0,c(),l()}}export{o as setupBrowserAgentRpcBridge};
@@ -1 +0,0 @@
1
- import{Dt as e,J as t,M as n,R as r,_ as i,b as a,d as o,f as s,h as c,i as l,l as u,m as d,ot as f,p,t as m,v as h,y as g}from"./_plugin-vue_export-helper-Bi7R8aHR.js";var _={},v={viewBox:`0 0 566 154`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function y(e,t){return n(),c(`svg`,v,[...t[0]||=[i(`<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 198" width="128" height="128"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>`,2)]])}var b=m(_,[[`render`,y]]),x=`9.0.0-beta.1`,S={class:`h-full w-full flex overflow-auto text-4`},C={class:`mx-auto h-full max-w-300 w-full px-20 flex flex-col gap-2`},w={class:`mt-20 flex flex-col items-center`},T={class:`-mt-10 flex items-center justify-center`},E={key:0,class:`-mt-1 mb-6 flex gap-1 text-center text-sm op40`},D={class:`flex flex-wrap gap-2`},O={class:`min-h-25 min-w-40 flex flex-1 flex-col items-center justify-center gap-2 rounded-1 border border-base bg-transparent p-4 color-inherit op50 shadow-[0_1px_3px_#00000012] saturate-0 transition-[opacity,filter,background,color] duration-200 hover:bg-green/10 hover:text-green-600 hover:op100 hover:saturate-100`},k={class:`mt-5 flex flex-wrap items-center justify-center gap-6`},A={class:`cursor-default flex flex-wrap items-center justify-center gap-1 pb-2 text-3.5 op40`},j={key:0,class:`cursor-default flex flex-wrap items-center justify-center gap-1 pb-8 text-3.5 op40`},M=a({__name:`overview`,setup(a){let{apps:m,pageCount:_,selectedApp:v,totalComponents:y}=l(),M=o(()=>v.value?.version??m.value[0]?.version??`-`),N=globalThis,P=N.chrome!==void 0&&!!N.chrome.devtools;function F(){return typeof navigator>`u`?!1:navigator.platform?navigator.platform.toLowerCase().includes(`mac`):/Macintosh/.test(navigator.userAgent)}return(a,o)=>{let l=r(`RouterLink`);return n(),c(`div`,S,[s(`div`,C,[o[26]||=s(`div`,{class:`flex-auto`},null,-1),s(`div`,w,[s(`div`,T,[g(b,{class:`h-18 color-base`})]),f(P)?d(``,!0):(n(),c(`div`,E,[o[0]||=s(`span`,null,`Vue DevTools`,-1),s(`code`,null,`v`+e(f(x)),1)]))]),s(`div`,D,[s(`div`,O,[o[1]||=s(`div`,{class:`i-logos-vue text-3xl`},null,-1),s(`code`,null,`v`+e(M.value),1)]),g(l,{class:`min-h-25 min-w-40 flex flex-1 flex-col items-center justify-center gap-2 rounded-1 border border-base bg-transparent p-4 color-inherit no-underline op50 shadow-[0_1px_3px_#00000012] saturate-0 transition-[opacity,filter,background,color] duration-200 hover:bg-lime/10 hover:text-lime-600 hover:op100 hover:saturate-100`,to:`/pages`,replace:``},{default:t(()=>[o[2]||=s(`div`,{class:`i-carbon-tree-view-alt text-3xl`},null,-1),s(`div`,null,e(f(_))+` pages`,1)]),_:1}),f(y)?(n(),p(l,{key:0,class:`min-h-25 min-w-40 flex flex-1 flex-col items-center justify-center gap-2 rounded-1 border border-base bg-transparent p-4 color-inherit no-underline op50 shadow-[0_1px_3px_#00000012] saturate-0 transition-[opacity,filter,background,color] duration-200 hover:bg-lime/10 hover:text-lime-600 hover:op100 hover:saturate-100`,to:`/components`,replace:``},{default:t(()=>[o[3]||=s(`div`,{class:`i-carbon-assembly-cluster text-3xl`},null,-1),s(`div`,null,e(f(y))+` components`,1)]),_:1})):d(``,!0)]),s(`div`,k,[o[5]||=i(`<a href="https://github.com/vuejs/devtools" target="_blank" class="color-inherit op50 transition-[opacity,color] duration-200 flex items-center gap-1 no-underline hover:text-blue hover:op100"><div class="i-carbon-star"></div> Star on GitHub </a><a href="https://github.com/vuejs/devtools/discussions/111" target="_blank" class="color-inherit op50 transition-[opacity,color] duration-200 flex items-center gap-1 no-underline hover:text-yellow hover:op100"><div class="i-carbon-data-enrichment"></div> Ideas &amp; Suggestions </a><a href="https://github.com/vuejs/devtools/discussions/112" target="_blank" class="color-inherit op50 transition-[opacity,color] duration-200 flex items-center gap-1 no-underline hover:text-lime hover:op100"><div class="i-carbon-plan"></div> Project Roadmap </a><a href="https://github.com/vuejs/devtools/issues" target="_blank" class="color-inherit op50 transition-[opacity,color] duration-200 flex items-center gap-1 no-underline hover:text-rose hover:op100"><div class="i-carbon-debug"></div> Bug Reports </a>`,4),g(l,{to:`/settings`,replace:``,class:`color-inherit op50 transition-[opacity,color] duration-200 flex items-center gap-1 no-underline hover:op100`},{default:t(()=>[...o[4]||=[s(`div`,{class:`i-carbon-settings`},null,-1),h(` Settings `,-1)]]),_:1})]),o[27]||=s(`div`,{class:`flex-auto`},null,-1),s(`div`,A,[o[12]||=h(` Press `,-1),F()?(n(),c(u,{key:0},[o[6]||=s(`kbd`,{class:`rounded-1 border border-base bg-active px-1.5 py-0.5 font-[inherit]`},` ⌘ Command `,-1),o[7]||=s(`span`,null,`+`,-1),o[8]||=s(`kbd`,{class:`rounded-1 border border-base bg-active px-1.5 py-0.5 font-[inherit]`},`K`,-1)],64)):(n(),c(u,{key:1},[o[9]||=s(`kbd`,{class:`rounded-1 border border-base bg-active px-1.5 py-0.5 font-[inherit]`},` Ctrl `,-1),o[10]||=s(`span`,null,`+`,-1),o[11]||=s(`kbd`,{class:`rounded-1 border border-base bg-active px-1.5 py-0.5 font-[inherit]`},`K`,-1)],64)),o[13]||=h(` to toggle Command Palette `,-1)]),f(P)?d(``,!0):(n(),c(`div`,j,[o[24]||=h(` Press `,-1),F()?(n(),c(u,{key:0},[o[14]||=s(`kbd`,{class:`rounded-1 border border-base bg-active px-1.5 py-0.5 font-[inherit]`},` ⇧ Shift `,-1),o[15]||=s(`span`,null,`+`,-1),o[16]||=s(`kbd`,{class:`rounded-1 border border-base bg-active px-1.5 py-0.5 font-[inherit]`},` ⌥ Option `,-1),o[17]||=s(`span`,null,`+`,-1),o[18]||=s(`kbd`,{class:`rounded-1 border border-base bg-active px-1.5 py-0.5 font-[inherit]`},` D `,-1)],64)):(n(),c(u,{key:1},[o[19]||=s(`kbd`,{class:`rounded-1 border border-base bg-active px-1.5 py-0.5 font-[inherit]`},` Shift `,-1),o[20]||=s(`span`,null,`+`,-1),o[21]||=s(`kbd`,{class:`rounded-1 border border-base bg-active px-1.5 py-0.5 font-[inherit]`},` Alt `,-1),o[22]||=s(`span`,null,`+`,-1),o[23]||=s(`kbd`,{class:`rounded-1 border border-base bg-active px-1.5 py-0.5 font-[inherit]`},` D `,-1)],64)),o[25]||=h(` to toggle DevTools `,-1)]))])])}}});export{M as default};
@@ -1 +0,0 @@
1
- @keyframes pulse-39361299{50%{opacity:.5}}.recording[data-v-39361299]{transition-duration:1s;animation:2s cubic-bezier(.4,0,.6,1) infinite pulse-39361299;box-shadow:0 0 8px #ef4444}
@@ -1 +0,0 @@
1
- import{A as e,D as t,Dt as n,Et as r,I as i,J as a,K as o,M as s,Y as c,b as ee,d as l,et as u,f as d,h as f,i as te,j as ne,l as p,m,ot as h,p as g,t as _,wt as v,y,z as re}from"./_plugin-vue_export-helper-Bi7R8aHR.js";import{p as ie}from"./index-C7PEBwPL.js";import{n as ae,t as oe}from"./RecycleScroller.vue_vue_type_script_setup_true_lang-C7mZBLYi-Qu6vm2Hq.js";import{n as b,t as x}from"./splitpanes.esm-Cwf-Yw0X.js";var se={class:`h-full min-h-0 flex flex-col p-2`},ce={class:`relative mb-1 min-h-7 w-full shrink-0 flex items-center justify-end border-b border-b-dashed border-base pb-1`},le={key:0,class:`absolute left-2 top-1/2 -translate-y-1/2 text-xs text-gray-300 dark:text-gray-500`},ue={class:`flex items-center gap-2 px-1`},de=[`aria-label`],fe={class:`no-scrollbar m-0 min-h-0 flex-1 list-none overflow-auto p-2`},pe=[`onClick`],me={class:`min-w-0 flex-1 truncate`},he=[`aria-label`,`onClick`],ge={class:`relative h-full min-h-0 flex flex-col`},_e={class:`h-full min-h-0 box-border p-5`},ve=[`onClick`],ye={class:`m-0 h-full min-w-0 flex items-center truncate pl-5`},be={class:`absolute top-5 pr-2 text-3 op40`},xe={key:0,class:`pl-2 op30`},Se={class:`no-scrollbar h-full min-h-0 overflow-auto p-5`},Ce={class:`flex items-center`},we={class:`font-state-field text-3.5 text-#a3a3a3`},Te={class:`font-state-field text-3.5`},Ee={class:`state-key op70`},S={class:`state-value`},C={class:`state-key op70`},w={class:`state-value`},T={key:1,class:`min-h-0 flex-1 flex items-center justify-center color-muted`},E={class:`text-center`},D={key:0,class:`mt-1 text-12px op70`},O=52,k=_(ee({__name:`timeline`,setup(ee){let _=[`#3e5770`,`#42b983`,`#0098c4`],k=[{id:`mouse`,label:`Mouse`},{id:`keyboard`,label:`Keyboard`},{id:`component-event`,label:`Component events`},{id:`performance`,label:`Performance`}],{apps:A,clearTimelineEvents:De,formatTime:j,formatValue:M,isTimelineLayerEnabled:N,inspectTimelineEvent:Oe,selectedTimelineLayerId:ke,selectedAppId:P,selectTimelineLayer:F,timeline:Ae,timelineLayers:je,timelineRecording:I,toggleTimelineLayerEnabled:Me,toggleTimelineRecording:L}=te(),R=u(),z=u(!1),B=ke,V=u(),H=u(),U,W=l(()=>Ae.value.filter(e=>!e.appId||!P.value||e.appId===P.value)),G=l(()=>{let e=new Map;for(let t of k)e.set(t.id,t);for(let t of je.value)t.appId&&P.value&&t.appId!==P.value||e.set(t.id,t);for(let t of W.value)t.layerId&&!e.has(t.layerId)&&e.set(t.layerId,{id:t.layerId,label:Ve(t.layerId)});return[...e.values()]}),K=l(()=>W.value.filter(e=>e.layerId===B.value&&e.layerId&&N(e.layerId))),q=l(()=>{let e=-1,t=0;return K.value.map(n=>n.type===`timeline:eventsLimited`?{...n,color:`#a17646`}:((n.groupId!==t||e===-1)&&(e=(e+1)%_.length),t=n.groupId??t,{...n,color:_[e]}))}),J=l(()=>q.value.find(e=>e.id===V.value)??q.value[q.value.length-1]),Y=l(()=>G.value.find(e=>e.id===B.value)),Ne=l(()=>{let e=J.value;if(!e)return[];let t=[],n=Le(e);n.length&&t.push({id:`event`,label:`Event Info`,rows:n});let r=Re(e);return r.length&&t.push({id:`group`,label:`Group Info`,rows:r}),t});o(G,e=>{e.some(e=>e.id===B.value)||F(e[0]?.id??``)},{immediate:!0}),o(q,async e=>{e.some(e=>e.id===V.value)||(V.value=e[e.length-1]?.id,await t(),H.value?.scrollToItem(e.length-1))},{immediate:!0});function Pe(e){F(e)}function Fe(e){Me(e)}function X(e){return N(e)}function Ie(e){V.value=e;let t=q.value.find(t=>t.id===e);t&&Oe(t)}function Z(){De(),V.value=void 0}function Le(e){let t=[{key:`title`,value:e.title??e.label},{key:`time`,value:j(e.time)}];return e.subtitle&&t.push({key:`subtitle`,value:e.subtitle}),e.layerId&&t.push({key:`layer`,value:e.layerId}),e.logType&&t.push({key:`logType`,value:e.logType}),e.data&&t.push(...ze(e.data)),e.meta&&t.push({key:`meta`,value:M(e.meta),children:Q(e.meta)}),t}function Re(e){if(e.groupId==null)return[];let t=K.value.filter(t=>t.groupId===e.groupId);if(!t.length)return[];let n=t[0].time,r=t[t.length-1].time;return[{key:`events`,value:String(t.length)},{key:`duration`,value:`${Math.max(0,r-n)}ms`}]}function ze(e){let t=Q(e);return t.length?t:[{key:`value`,value:M(e)}]}function Q(e){return $(e).map(e=>({key:e.key,value:M(e.value),children:Q(e.value).slice(0,5)}))}function $(e){return!e||typeof e!=`object`?[]:e.kind===`custom`?e.value&&typeof e.value==`object`?$(e.value):[]:`preview`in e&&Array.isArray(e.preview)?e.preview.slice(0,12):[]}function Be(e){return e.color==null?`#42b983`:`#${e.color.toString(16).padStart(6,`0`)}`}function Ve(e){return e.split(/[-:]/g).filter(Boolean).map(e=>e[0]?.toUpperCase()+e.slice(1)).join(` `)}function He(e){switch(e){case`error`:return`text-red-500 dark:text-red-300`;case`warning`:return`text-amber-500 dark:text-amber-300`;default:return``}}return e(()=>{U=new ResizeObserver(([e])=>{z.value=e.contentRect.width<700}),R.value&&U.observe(R.value)}),ne(()=>{U?.disconnect()}),(e,t)=>{let o=re(`tooltip`);return s(),f(`div`,{ref_key:`container`,ref:R,class:`h-full w-full`},[y(h(b),{class:`h-full min-h-0 overflow-hidden`,horizontal:z.value},{default:a(()=>[h(A).length>1?(s(),g(h(x),{key:0,class:`h-full min-h-0`,"min-size":`12`,size:`20`},{default:a(()=>[y(ae)]),_:1})):m(``,!0),y(h(x),{class:`h-full min-h-0`,"min-size":`20`,size:h(A).length>1?22:28},{default:a(()=>[d(`div`,se,[d(`div`,ce,[h(I)?m(``,!0):(s(),f(`span`,le,` Not recording `)),d(`div`,ue,[c((s(),f(`button`,{class:`h-6 w-6 border-0 bg-transparent p-0 flex items-center justify-center`,type:`button`,"aria-label":h(I)?`Stop recording`:`Start recording`,onClick:t[0]||=(...e)=>h(L)&&h(L)(...e)},[d(`span`,{class:v([`h-3.5 w-3.5 cursor-pointer rounded-full inline-flex`,h(I)?`recording bg-#ef4444`:`bg-black op70 hover:op100 dark:bg-white`]),"aria-hidden":`true`},null,2)],8,de)),[[o,h(I)?`Stop recording`:`Start recording — Timeline recording may add overhead in large applications.`,void 0,{"bottom-end":!0}]]),c((s(),f(`button`,{class:`h-6 w-6 border-0 bg-transparent p-0 color-muted flex items-center justify-center hover:color-base`,type:`button`,"aria-label":`Clear all timelines`,onClick:Z},[...t[1]||=[d(`span`,{class:`i-ic-baseline-delete text-xl`,"aria-hidden":`true`},null,-1)]])),[[o,`Clear all timelines`,void 0,{"bottom-end":!0}]])])]),d(`ul`,fe,[(s(!0),f(p,null,i(G.value,e=>(s(),f(`li`,{key:e.id,class:v([`group relative min-h-7 cursor-pointer rounded-1 px-2 py-1 color-base flex items-center gap-2 text-3.5 hover:bg-active`,{"active bg-primary-600! text-white hover:bg-primary-600!":e.id===h(B),op60:!X(e.id)}]),onClick:t=>Pe(e.id)},[d(`span`,{class:`h-2.5 w-2.5 shrink-0 rounded-full`,style:r({backgroundColor:Be(e)}),"aria-hidden":`true`},null,4),d(`span`,me,n(e.label),1),d(`button`,{class:`absolute right-2 rounded-1 border-0 bg-primary-500 px-1 color-white text-3 op0 group-hover:op80 hover:op100 [.active_&]:(bg-primary-400 dark:bg-gray-600)`,type:`button`,"aria-label":X(e.id)?`Disable layer`:`Enable layer`,onClick:ie(t=>Fe(e.id),[`stop`])},n(X(e.id)?`Disable`:`Enable`),9,he)],10,pe))),128))])])]),_:1},8,[`size`]),y(h(x),{class:`h-full min-h-0`,"min-size":`40`,size:`65`},{default:a(()=>[d(`div`,ge,[q.value.length?(s(),g(h(b),{key:0,class:`h-full min-h-0`},{default:a(()=>[y(h(x),{class:`h-full min-h-0`,"min-size":`30`,size:`40`},{default:a(()=>[d(`div`,_e,[y(h(oe),{ref_key:`eventListScroller`,ref:H,class:`no-scrollbar h-full min-h-0 select-none overflow-auto`,items:q.value,"item-size":O,"key-field":`id`,"list-tag":`ul`,"item-tag":`li`,"list-class":`m-0 list-none p-0`,"item-class":`block w-full`,buffer:520,prerender:20},{default:a(({item:e,index:t})=>[d(`div`,{class:`relative h-6 cursor-pointer`,style:r({color:e.type!==`timeline:eventsLimited`&&J.value?.id===e.id?e.color:``}),onClick:t=>Ie(e.id)},[d(`span`,{class:`absolute left-0 top-1.5 inline-block h-3 w-3 box-border rounded-full`,style:r({border:`3px solid ${e.color}`}),"aria-hidden":`true`},null,4),t<q.value.length-1?(s(),f(`span`,{key:0,class:`absolute top-4.5 w-0 border-l-2 border-l-solid border-gray-200 dark:border-gray-700`,style:r({left:`calc(0.375rem - 1px)`,height:`calc(${O}px - 0.75rem)`}),"aria-hidden":`true`},null,4)):m(``,!0),d(`p`,ye,[d(`span`,be,` [`+n(h(j)(e.time))+`] `,1),d(`span`,{class:v([`min-w-0 truncate`,e.type===`timeline:eventsLimited`?void 0:He(e.logType)]),style:r(e.type===`timeline:eventsLimited`?{color:e.color}:void 0)},n(e.title??e.label),7),e.subtitle?(s(),f(`span`,xe,n(e.subtitle),1)):m(``,!0)])],12,ve)]),_:1},8,[`items`])])]),_:1}),y(h(x),{class:`h-full min-h-0`,"min-size":`36`,size:`60`},{default:a(()=>[d(`div`,Se,[(s(!0),f(p,null,i(Ne.value,e=>(s(),f(`section`,{key:e.id,class:`mb-3`},[d(`div`,Ce,[t[2]||=d(`span`,{class:`i-carbon-chevron-right rotate-90 flex-none text-4 op50`,"aria-hidden":`true`},null,-1),d(`span`,we,n(e.label),1)]),d(`div`,Te,[(s(!0),f(p,null,i(e.rows,r=>(s(),f(`div`,{key:`${e.id}-${r.key}`,class:`min-w-0 py-0.5 pl-5`},[d(`span`,Ee,n(r.key),1),t[4]||=d(`span`,{class:`colon mx-1`},`:`,-1),d(`span`,S,n(r.value),1),(s(!0),f(p,null,i(r.children,i=>(s(),f(`div`,{key:`${e.id}-${r.key}-${i.key}`,class:`min-w-0 py-0.5 pl-4`},[d(`span`,C,n(i.key),1),t[3]||=d(`span`,{class:`colon mx-1`},`:`,-1),d(`span`,w,n(i.value),1)]))),128))]))),128))])]))),128))])]),_:1})]),_:1})):(s(),f(`div`,T,[d(`div`,E,[t[5]||=d(`div`,{class:`mx-auto mb-3 h-10 w-10 flex items-center justify-center`},[d(`span`,{class:`i-carbon-time text-9 op70`,"aria-hidden":`true`})],-1),t[6]||=d(`div`,null,`No events`,-1),Y.value?(s(),f(`div`,D,n(Y.value.label),1)):m(``,!0)])]))])]),_:1})]),_:1},8,[`horizontal`])],512)}}}),[[`__scopeId`,`data-v-39361299`]]);export{k as default};
package/dist/client.cjs DELETED
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./constants-BRtZjlMX.cjs");let t=require("@vue/devtools-kit");async function n(e){let t=e?.panel.session,n=e?.docks.selectedId,r=t?.open===!0;if(e&&(n||r))return n?await e.docks.switchEntry(null):t&&(t.open=!1),async()=>{if(n){await e.docks.switchEntry(n);return}t&&r&&(t.open=!0)}}function r(e,t){let r=!1,a=i(e)?e.current.events.on(`entry:deactivated`,()=>{r||t?.command({type:`components:cancelInspect`})}):void 0;return{async closeForComponentInspection(){r=!0;try{let t=await n(e);if(!t){r=!1;return}return async()=>{try{await t()}finally{r=!1}}}catch(e){throw r=!1,e}},dispose(){a?.(),r=!1}}}function i(e){return`current`in e}function a(e){let n=u(),r=l();return r.kit||(r.kit=(0,t.createDevtoolsKit)({target:{name:`vue devtools`},enabled:e.enabled,capabilities:{openInEditor:!0},hook:{target:n},componentInspectorDockController:{closeForComponentInspection:()=>r.dockBinding?.closeForComponentInspection()}}),r.kit.install(),r.disposeRpcHost=(0,t.startIframeDevtoolsRpcHost)(r.kit.rpc,{window:typeof window<`u`?window:void 0}),r.bindDock=s),n.__VUE_DEVTOOLS_VITE_PLUGIN_DETECTED__=!0,s(),r.kit}const o=a;function s(e){let t=l();e&&(t.context=e),t.context&&t.kit&&(t.dockBinding?.dispose(),t.dockBinding=r(t.context,t.kit.runtime))}function c(){let e=l();e.dockBinding?.dispose(),e.disposeRpcHost?.(),e.kit?.dispose(),delete e.dockBinding,delete e.disposeRpcHost,delete e.kit,delete e.bindDock}function l(){return u()[e.r]??={}}function u(){return typeof window<`u`?window:globalThis}exports.disposeVueDevTools=c,exports.injectVueDevTools=o,exports.installVueDevTools=a,exports.setupVueDevToolsDockController=s;
package/dist/client.d.cts DELETED
@@ -1,11 +0,0 @@
1
- import { DevToolsClientContext, DockClientScriptContext } from "@vitejs/devtools-kit/client";
2
- import { DevtoolsKit } from "@vue/devtools-kit";
3
- //#region src/client.d.ts
4
- export interface InstallVueDevToolsOptions {
5
- enabled: boolean;
6
- }
7
- export declare function installVueDevTools(options: InstallVueDevToolsOptions): DevtoolsKit;
8
- export declare const injectVueDevTools: typeof installVueDevTools;
9
- export declare function setupVueDevToolsDockController(context?: DevToolsClientContext | DockClientScriptContext): void;
10
- export declare function disposeVueDevTools(): void;
11
- //#endregion
@@ -1 +0,0 @@
1
- const e=`virtual:vue-devtools-client`,t=`\0${e}`;function n(e){return!e||e===`./`?`/`:e.endsWith(`/`)?e:`${e}/`}function r(e){return`${n(e)}__devtools__/`}function i(e){return`${r(e)}dock-client.js`}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return`vue-devtools`}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return`__VUE_DEVTOOLS_VITE_RUNTIME__`}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return`vite-plugin-vue-devtools/client`}});
package/dist/dirs.cjs DELETED
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=(0,require("node:url").fileURLToPath)(new URL(`../client`,require("url").pathToFileURL(__filename).href));exports.clientDist=e;
package/dist/dirs.d.cts DELETED
@@ -1,3 +0,0 @@
1
- //#region src/dirs.d.ts
2
- export declare const clientDist: string;
3
- //#endregion
package/dist/index.cjs DELETED
@@ -1,10 +0,0 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./constants-BRtZjlMX.cjs"),t=require("./dirs.cjs");let n=require("node:url"),r=require("vite");const i=`/* vue-devtools:client-injection */`;function a(t,a){let l=(0,r.normalizePath)((0,n.fileURLToPath)(require("url").pathToFileURL(__filename).href)),u=o(t.appendTo);return{name:`vue-devtools:client-injection`,enforce:`pre`,apply:`serve`,async resolveId(t,n){if(t===`virtual:vue-devtools-client`)return e.a;if(t===`vite-plugin-vue-devtools/client`&&n===e.a)return await this.resolve(t,l,{skipSelf:!0})},load(t){if(t===e.a)return c(a)},transform(t,n,r){if(r?.ssr||!u.length)return;let[a]=n.split(`?`,2);if(s(a,u)&&!t.includes(i))return`${i}\nimport '${e.n}';\n${t}`},transformIndexHtml:{order:`pre`,handler(){if(!u.length)return[{tag:`script`,injectTo:`head-prepend`,attrs:{type:`module`},children:`import ${JSON.stringify(e.n)}`}]}}}}function o(e){return e?Array.isArray(e)?e:[e]:[]}function s(e,t){return t.some(t=>typeof t==`string`?e.endsWith(t):(t.lastIndex=0,t.test(e)))}function c(t){return`
2
- import { disposeVueDevTools, installVueDevTools } from '${e.t}'
3
-
4
- installVueDevTools(${JSON.stringify(t)})
5
-
6
- if (import.meta.hot) {
7
- import.meta.hot.accept()
8
- import.meta.hot.dispose(disposeVueDevTools)
9
- }
10
- `.trimStart()}function l(){let n=`/`;return{name:`vue-devtools:dock-registration`,apply:`serve`,configResolved(e){n=e.base,e.devtools||e.logger.warn(`[vite-plugin-vue-devtools] Vue DevTools requires Vite DevTools. Install @vitejs/devtools and set devtools: { apply: 'serve' } in your Vite config.`)},devtools:{setup(r){let i=e.o(n);r.views.hostStatic(i,t.clientDist),r.docks.register({id:e.i,title:`Vue DevTools`,category:`framework`,icon:`logos:vue`,type:`iframe`,url:i,frameId:e.i,clientScript:{importFrom:e.s(n)}})}}}}function u(e){return{enabled:e.enabled??!0}}function d(e={}){return e.enabled??!0?[a(e,u(e)),l()]:[]}exports.default=d,exports.vueDevtools=d;
package/dist/index.d.cts DELETED
@@ -1,23 +0,0 @@
1
- import { PluginOption } from "vite";
2
- //#region src/options.d.ts
3
- interface VitePluginVueDevToolsOptions {
4
- /**
5
- * Whether to install Vue Devtools and register its Vite DevTools dock entry.
6
- *
7
- * @default true
8
- */
9
- enabled?: boolean;
10
- /**
11
- * Append the early Vue hook install import to a module instead of injecting it into HTML.
12
- * This is useful for apps without a Vite HTML entry. The Vite DevTools dock shell still
13
- * follows Vite DevTools' own HTML injection path.
14
- *
15
- * @default ''
16
- */
17
- appendTo?: string | RegExp | Array<string | RegExp>;
18
- }
19
- //#endregion
20
- //#region src/index.d.ts
21
- export declare function vueDevtools(options?: VitePluginVueDevToolsOptions): PluginOption[];
22
- //#endregion
23
- export { type VitePluginVueDevToolsOptions, vueDevtools as default };