@devframes/plugin-inspect--assets 0.9.12 → 0.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();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=>w(e)===`[object Map]`,h=e=>w(e)===`[object Set]`,g=e=>w(e)===`[object Date]`,_=e=>w(e)===`[object RegExp]`,v=e=>typeof e==`function`,y=e=>typeof e==`string`,b=e=>typeof e==`symbol`,x=e=>typeof e==`object`&&!!e,S=e=>(x(e)||v(e))&&v(e.then)&&v(e.catch),C=Object.prototype.toString,w=e=>C.call(e),ee=e=>w(e).slice(8,-1),T=e=>w(e)===`[object Object]`,E=e=>y(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,te=n(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ne=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},re=/-\w/g,D=ne(e=>e.replace(re,e=>e.slice(1).toUpperCase())),ie=/\B([A-Z])/g,ae=ne(e=>e.replace(ie,`-$1`).toLowerCase()),oe=ne(e=>e.charAt(0).toUpperCase()+e.slice(1)),se=ne(e=>e?`on${oe(e)}`:``),O=(e,t)=>!Object.is(e,t),ce=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},le=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ue=e=>{let t=parseFloat(e);return isNaN(t)?e:t},de=e=>{let t=y(e)?Number(e):NaN;return isNaN(t)?e:t},fe,pe=()=>fe||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},me=n(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function k(e){if(p(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=y(r)?ve(r):k(r);if(i)for(let e in i)t[e]=i[e]}return t}if(y(e)||x(e))return e}var he=/;(?![^(]*\))/g,ge=/:([^]+)/,_e=/\/\*[^]*?\*\//g;function ve(e){let t={};return e.replace(_e,``).split(he).forEach(e=>{if(e){let n=e.split(ge);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function A(e){let t=``;if(y(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){let r=A(e[n]);r&&(t+=r+` `)}else if(x(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function ye(e){if(!e)return null;let{class:t,style:n}=e;return t&&!y(t)&&(e.class=A(t)),n&&(e.style=k(n)),e}var be=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,xe=n(be);be+``;function Se(e){return!!e||e===``}function Ce(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Te(e[r],t[r]);return n}function we(e,t){if(e.size!==t.size)return!1;let n=Array.from(t),r=new Uint8Array(n.length);for(let t of e){let e=-1;for(let i=0;i<n.length;i++)if(!r[i]&&Te(t,n[i])){e=i;break}if(e<0)return!1;r[e]=1}return!0}function Te(e,t){if(e===t)return!0;let n=g(e),r=g(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=b(e),r=b(t),n||r)return e===t;if(n=p(e),r=p(t),n||r)return n&&r?Ce(e,t):!1;if(n=x(e),r=x(t),n||r){if(!n||!r)return!1;if(n=m(e),r=m(t),n||r||(n=h(e),r=h(t),n||r))return n&&r?we(e,t):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Te(e[n],t[n]))return!1}}return String(e)===String(t)}function Ee(e,t){return e.findIndex(e=>Te(e,t))}var De=e=>!!(e&&e.__v_isRef===!0),j=e=>y(e)?e:e==null?``:p(e)||x(e)&&(e.toString===C||!v(e.toString))?De(e)?j(e.value):JSON.stringify(e,Oe,2):String(e),Oe=(e,t)=>De(t)?Oe(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[ke(t,r)+` =>`]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>ke(e))}:b(t)?ke(t):x(t)&&!p(t)&&!T(t)?String(t):t,ke=(e,t=``)=>b(e)?`Symbol(${e.description??t})`:e;function Ae(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var M,je=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 Me(e){return new je(e)}function Ne(){return M}function Pe(e,t=!1){M&&M.cleanups.push(e)}var N,Fe=new WeakSet,Ie=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,Fe.has(this)&&(Fe.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Be(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,tt(this),Ue(this);let e=N,t=Ze;N=this,Ze=!0;try{return this.fn()}finally{We(this),N=e,Ze=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)qe(e);this.deps=this.depsTail=void 0,tt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Fe.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ge(this)&&this.run()}get dirty(){return Ge(this)}},Le=0,Re,ze;function Be(e,t=!1){if(e.flags|=8,t){e.next=ze,ze=e;return}e.next=Re,Re=e}function Ve(){Le++}function He(){if(--Le>0)return;if(ze){let e=ze;for(ze=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Re;){let t=Re;for(Re=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 Ue(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function We(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),qe(r),Je(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ge(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ke(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ke(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===nt)||(e.globalVersion=nt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ge(e))))return;e.flags|=2;let t=e.dep,n=N,r=Ze;N=e,Ze=!0;try{Ue(e);let n=e.fn(e._value);(t.version===0||O(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{N=n,Ze=r,We(e),e.flags&=-3}}function qe(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)qe(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Je(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Ye(e,t){e.effect instanceof Ie&&(e=e.effect.fn);let n=new Ie(e);t&&l(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function Xe(e){e.effect.stop()}var Ze=!0,Qe=[];function $e(){Qe.push(Ze),Ze=!1}function et(){let e=Qe.pop();Ze=e===void 0||e}function tt(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=N;N=void 0;try{t()}finally{N=e}}}var nt=0,rt=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}},it=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||!Ze||N===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==N)t=this.activeLink=new rt(N,this),N.deps?(t.prevDep=N.depsTail,N.depsTail.nextDep=t,N.depsTail=t):N.deps=N.depsTail=t,at(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++,nt++,this.notify(e)}notify(e){Ve();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{He()}}};function at(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)at(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var ot=new WeakMap,st=Symbol(``),ct=Symbol(``),lt=Symbol(``);function ut(e,t,n){if(Ze&&N){let t=ot.get(e);t||ot.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new it),r.map=t,r.key=n),r.track()}}function dt(e,t,n,r,i,a){let o=ot.get(e);if(!o){nt++;return}let s=e=>{e&&e.trigger()};if(Ve(),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===lt||!b(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(lt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(st)),m(e)&&s(o.get(ct)));break;case`delete`:i||(s(o.get(st)),m(e)&&s(o.get(ct)));break;case`set`:m(e)&&s(o.get(st))}}He()}function ft(e,t){let n=ot.get(e);return n&&n.get(t)}function pt(e){let t=P(e);return t===e?t:(ut(t,`iterate`,lt),tn(e)?t:t.map(an))}function mt(e){return ut(e=P(e),`iterate`,lt),e}function ht(e,t){return en(e)?on($t(e)?an(t):t):an(t)}var gt={__proto__:null,[Symbol.iterator](){return _t(this,Symbol.iterator,e=>ht(this,e))},concat(...e){return pt(this).concat(...e.map(e=>p(e)?pt(e):e))},entries(){return _t(this,`entries`,e=>(e[1]=ht(this,e[1]),e))},every(e,t){return yt(this,`every`,e,t,void 0,arguments)},filter(e,t){return yt(this,`filter`,e,t,e=>e.map(e=>ht(this,e)),arguments)},find(e,t){return yt(this,`find`,e,t,e=>ht(this,e),arguments)},findIndex(e,t){return yt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return yt(this,`findLast`,e,t,e=>ht(this,e),arguments)},findLastIndex(e,t){return yt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return yt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return xt(this,`includes`,e)},indexOf(...e){return xt(this,`indexOf`,e)},join(e){return pt(this).join(e)},lastIndexOf(...e){return xt(this,`lastIndexOf`,e)},map(e,t){return yt(this,`map`,e,t,void 0,arguments)},pop(){return St(this,`pop`)},push(...e){return St(this,`push`,e)},reduce(e,...t){return bt(this,`reduce`,e,t)},reduceRight(e,...t){return bt(this,`reduceRight`,e,t)},shift(){return St(this,`shift`)},some(e,t){return yt(this,`some`,e,t,void 0,arguments)},splice(...e){return St(this,`splice`,e)},toReversed(){return pt(this).toReversed()},toSorted(e){return pt(this).toSorted(e)},toSpliced(...e){return pt(this).toSpliced(...e)},unshift(...e){return St(this,`unshift`,e)},values(){return _t(this,`values`,e=>ht(this,e))}};function _t(e,t,n){let r=mt(e),i=r[t]();return r!==e&&!tn(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var vt=Array.prototype;function yt(e,t,n,r,i,a){let o=mt(e),s=o!==e&&!tn(e),c=o[t];if(c!==vt[t]){let t=c.apply(e,a);return s?an(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,ht(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 bt(e,t,n,r){let i=mt(e),a=i!==e&&!tn(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=ht(e,t)),n.call(this,t,ht(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?ht(e,c):c}function xt(e,t,n){let r=P(e);ut(r,`iterate`,lt);let i=r[t](...n);return(i===-1||i===!1)&&nn(n[0])?(n[0]=P(n[0]),r[t](...n)):i}function St(e,t,n=[]){$e(),Ve();let r=P(e)[t].apply(e,n);return He(),et(),r}var Ct=n(`__proto__,__v_isRef,__isVue`),wt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(b));function Tt(e){b(e)||(e=String(e));let t=P(this);return ut(t,`has`,e),t.hasOwnProperty(e)}var Et=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?Kt:Gt:i?Wt:Ut).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=p(e);if(!r){let e;if(a&&(e=gt[t]))return e;if(t===`hasOwnProperty`)return Tt}let o=Reflect.get(e,t,F(e)?e:n);if((b(t)?wt.has(t):Ct(t))||(r||ut(e,`get`,t),i))return o;if(F(o)){let e=a&&E(t)?o:o.value;return r&&x(e)?Xt(e):e}return x(o)?r?Xt(o):Jt(o):o}},Dt=class extends Et{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=en(i);if(!tn(n)&&!en(n)&&(i=P(i),n=P(n)),!a&&F(i)&&!F(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:f(e,t),s=Reflect.set(e,t,n,F(e)?e:r);return e===P(r)&&s&&(o?O(n,i)&&dt(e,`set`,t,n,i):dt(e,`add`,t,n)),s}deleteProperty(e,t){let n=f(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&dt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!b(t)||!wt.has(t))&&ut(e,`has`,t),n}ownKeys(e){return ut(e,`iterate`,p(e)?`length`:st),Reflect.ownKeys(e)}},Ot=class extends Et{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},kt=new Dt,At=new Ot,jt=new Dt(!0),Mt=new Ot(!0),Nt=e=>e,Pt=e=>Reflect.getPrototypeOf(e);function Ft(e,t,n){return function(...r){let i=this.__v_raw,a=P(i),o=m(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,u=i[e](...r),d=n?Nt:t?on:an;return!t&&ut(a,`iterate`,c?ct:st),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 It(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Lt(e,t){let n={get(n){let r=this.__v_raw,i=P(r),a=P(n);e||(O(n,a)&&ut(i,`get`,n),ut(i,`get`,a));let{has:o}=Pt(i),s=t?Nt:e?on:an;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&&ut(P(t),`iterate`,st),t.size},has(t){let n=this.__v_raw,r=P(n),i=P(t);return e||(O(t,i)&&ut(r,`has`,t),ut(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=P(a),s=t?Nt:e?on:an;return!e&&ut(o,`iterate`,st),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return l(n,e?{add:It(`add`),set:It(`set`),delete:It(`delete`),clear:It(`clear`)}:{add(e){let n=P(this),r=Pt(n),i=P(e),a=!t&&!tn(e)&&!en(e)?i:e;return r.has.call(n,a)||O(e,a)&&r.has.call(n,e)||O(i,a)&&r.has.call(n,i)||(n.add(a),dt(n,`add`,a,a)),this},set(e,n){!t&&!tn(n)&&!en(n)&&(n=P(n));let r=P(this),{has:i,get:a}=Pt(r),o=i.call(r,e);o||=(e=P(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?O(n,s)&&dt(r,`set`,e,n,s):dt(r,`add`,e,n),this},delete(e){let t=P(this),{has:n,get:r}=Pt(t),i=n.call(t,e);i||=(e=P(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&dt(t,`delete`,e,void 0,a),o},clear(){let e=P(this),t=e.size!==0,n=e.clear();return t&&dt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Ft(r,e,t)}),n}function Rt(e,t){let n=Lt(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 zt={get:Rt(!1,!1)},Bt={get:Rt(!1,!0)},Vt={get:Rt(!0,!1)},Ht={get:Rt(!0,!0)},Ut=new WeakMap,Wt=new WeakMap,Gt=new WeakMap,Kt=new WeakMap;function qt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Jt(e){return en(e)?e:Qt(e,!1,kt,zt,Ut)}function Yt(e){return Qt(e,!1,jt,Bt,Wt)}function Xt(e){return Qt(e,!0,At,Vt,Gt)}function Zt(e){return Qt(e,!0,Mt,Ht,Kt)}function Qt(e,t,n,r,i){if(!x(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=qt(ee(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function $t(e){return en(e)?$t(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function tn(e){return!!(e&&e.__v_isShallow)}function nn(e){return e?!!e.__v_raw:!1}function P(e){let t=e&&e.__v_raw;return t?P(t):e}function rn(e){return!f(e,`__v_skip`)&&Object.isExtensible(e)&&le(e,`__v_skip`,!0),e}var an=e=>x(e)?Jt(e):e,on=e=>x(e)?Xt(e):e;function F(e){return e?e.__v_isRef===!0:!1}function I(e){return cn(e,!1)}function sn(e){return cn(e,!0)}function cn(e,t){return F(e)?e:new ln(e,t)}var ln=class{constructor(e,t){this.dep=new it,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:P(e),this._value=t?e:an(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||tn(e)||en(e);e=n?e:P(e),O(e,t)&&(this._rawValue=e,this._value=n?e:an(e),this.dep.trigger())}};function un(e){e.dep&&e.dep.trigger()}function L(e){return F(e)?e.value:e}function dn(e){return v(e)?e():L(e)}var fn={get:(e,t,n)=>t===`__v_raw`?e:L(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return F(i)&&!F(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function pn(e){return $t(e)?e:new Proxy(e,fn)}var mn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new it,{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 hn(e){return new mn(e)}function gn(e){let t=p(e)?Array(e.length):{};for(let n in e)t[n]=bn(e,n);return t}var _n=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=b(t)?t:String(t),this._raw=P(e);let r=!0,i=e;if(!p(e)||b(this._key)||!E(this._key))do r=!nn(i)||tn(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=L(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&F(this._raw[this._key])){let t=this._object[this._key];if(F(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return ft(this._raw,this._key)}},vn=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 yn(e,t,n){return F(e)?e:v(e)?new vn(e):x(e)&&arguments.length>1?bn(e,t,n):I(e)}function bn(e,t,n){return new _n(e,t,n)}var xn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new it(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=nt-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 Be(this,!0),!0}get value(){let e=this.dep.track();return Ke(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Sn(e,t,n=!1){let r,i;return v(e)?r=e:(r=e.get,i=e.set),new xn(r,i,n)}var Cn={GET:`get`,HAS:`has`,ITERATE:`iterate`},wn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Tn={},En=new WeakMap,Dn=void 0;function On(){return Dn}function kn(e,t=!1,n=Dn){if(n){let t=En.get(n);t||En.set(n,t=[]),t.push(e)}}function An(e,t,n=r){let{immediate:i,deep:o,once:s,scheduler:c,augmentJob:l,call:d}=n,f=e=>o?e:tn(e)||o===!1||o===0?jn(e,1):jn(e),m,h,g,_,y=!1,b=!1;if(F(e)?(h=()=>e.value,y=tn(e)):$t(e)?(h=()=>f(e),y=!0):p(e)?(b=!0,y=e.some(e=>$t(e)||tn(e)),h=()=>e.map(e=>{if(F(e))return e.value;if($t(e))return f(e);if(v(e))return d?d(e,2):e()})):h=v(e)?t?d?()=>d(e,2):e:()=>{if(g){$e();try{g()}finally{et()}}let t=Dn;Dn=m;try{return d?d(e,3,[_]):e(_)}finally{Dn=t}}:a,t&&o){let e=h,t=o===!0?1/0:o;h=()=>jn(e(),t)}let x=Ne(),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(Tn):Tn,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e)){if(t){let n=m.run();if(e||o||y||(b?n.some((e,t)=>O(e,C[t])):O(n,C))){g&&g();let e=Dn;Dn=m;try{let e=[n,C===Tn?void 0:b&&C[0]===Tn?[]:C,_];C=n,d?d(t,3,e):t(...e)}finally{Dn=e}}}else m.run()}};return l&&l(w),m=new Ie(h),m.scheduler=c?()=>c(w,!1):w,_=e=>kn(e,!1,m),g=m.onStop=()=>{let e=En.get(m);if(e){if(d)d(e,4);else for(let t of e)t();En.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 jn(e,t=1/0,n){if(t<=0||!x(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,F(e))jn(e.value,t,n);else if(p(e))for(let r=0;r<e.length;r++)jn(e[r],t,n);else if(h(e)||m(e))e.forEach(e=>{jn(e,t,n)});else if(T(e)){for(let r in e)jn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&jn(e[r],t,n)}return e}var Mn=[];function Nn(e){Mn.push(e)}function Pn(){Mn.pop()}function Fn(e,t){}var In={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},Ln={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function Rn(e,t,n,r){try{return r?e(...r):e()}catch(e){Bn(e,t,n)}}function zn(e,t,n,r){if(v(e)){let i=Rn(e,t,n,r);return i&&S(i)&&i.catch(e=>{Bn(e,t,n)}),i}if(p(e)){let i=[];for(let a=0;a<e.length;a++)i.push(zn(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){$e(),Rn(o,null,10,[e,i,a]),et();return}}Vn(e,n,a,i,s)}function Vn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var Hn=[],Un=-1,Wn=[],Gn=null,Kn=0,qn=Promise.resolve(),Jn=null;function Yn(e){let t=Jn||qn;return e?t.then(this?e.bind(this):e):t}function Xn(e){let t=Un+1,n=Hn.length;for(;t<n;){let r=t+n>>>1,i=Hn[r],a=nr(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Zn(e){if(!(e.flags&1)){let t=nr(e),n=Hn[Hn.length-1];!n||!(e.flags&2)&&t>=nr(n)?Hn.push(e):Hn.splice(Xn(t),0,e),e.flags|=1,Qn()}}function Qn(){Jn||=qn.then(rr)}function $n(e){if(!p(e))Gn&&e.id===-1?Gn.splice(Kn+1,0,e):e.flags&1||(Wn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Wn.push(e[t]);Qn()}function er(e,t,n=Un+1){for(;n<Hn.length;n++){let t=Hn[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;Hn.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function tr(e){if(Wn.length){let e=[...new Set(Wn)].sort((e,t)=>nr(e)-nr(t));if(Wn.length=0,Gn){for(let t=0;t<e.length;t++)Gn.push(e[t]);return}for(Gn=e,Kn=0;Kn<Gn.length;Kn++){let e=Gn[Kn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Gn=null,Kn=0}}var nr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function rr(e){try{for(Un=0;Un<Hn.length;Un++){let e=Hn[Un];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Rn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Un<Hn.length;Un++){let e=Hn[Un];e&&(e.flags&=-2)}Un=-1,Hn.length=0,tr(e),Jn=null,(Hn.length||Wn.length)&&rr(e)}}var ir,ar=[];function or(e,t){ir=e,ir?(ir.enabled=!0,ar.forEach(({event:e,args:t})=>ir.emit(e,...t)),ar=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{or(e,t)}),setTimeout(()=>{ir||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ar=[])},3e3)):ar=[]}var sr=null,cr=null;function lr(e){let t=sr;return sr=e,cr=e&&e.type.__scopeId||null,t}function ur(e){cr=e}function dr(){cr=null}var fr=e=>R;function R(e,t=sr,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&ls(-1);let i=lr(t),a=as.length,o;try{o=e(...n)}finally{for(let e=as.length;e>a;e--)ss();lr(i),r._d&&ls(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function pr(e,t){if(sr===null)return e;let n=Ks(sr),i=e.dirs||=[];for(let e=0;e<t.length;e++){let[a,o,s,c=r]=t[e];a&&(v(a)&&(a={mounted:a,updated:a}),a.deep&&jn(o),i.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function mr(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&&($e(),zn(c,n,8,[e.el,s,e,t]),et())}}function hr(e,t){if(Os){let n=Os.provides,r=Os.parent&&Os.parent.provides;r===n&&(n=Os.provides=Object.create(r)),n[e]=t}}function gr(e,t,n=!1){let r=ks();if(r||$a){let i=$a?$a._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&&v(t)?t.call(r&&r.proxy):t}}function _r(){return!!(ks()||$a)}var vr=Symbol.for(`v-scx`),yr=()=>gr(vr);function br(e,t){return wr(e,null,t)}function xr(e,t){return wr(e,null,{flush:`post`})}function Sr(e,t){return wr(e,null,{flush:`sync`})}function Cr(e,t,n){return wr(e,t,n)}function wr(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(Fs){if(s===`sync`){let e=yr();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=a,e.resume=a,e.pause=a,e}}let p=Os;u.call=(e,t,n)=>zn(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{V(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():Zn(e)}),u.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=An(e,t,u);return Fs&&(f?f.push(h):d&&h()),h}function Tr(e,t,n){let r=this.proxy,i=y(e)?e.includes(`.`)?Er(r,e):()=>r[e]:e.bind(r,r),a;v(t)?a=t:(a=t.handler,n=t);let o=Ms(this),s=wr(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 Dr=new WeakMap,Or=Symbol(`_vte`),kr=e=>e.__isTeleport,Ar=e=>e&&(e.disabled||e.disabled===``),jr=e=>e&&(e.defer||e.defer===``),Mr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Nr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Pr=(e,t)=>{let n=e&&e.to;return y(n)?t?t(n):null:n},Fr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Ar(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Ar(e.props),r=e.target=Pr(e.props,m),a=Br(r,e,h,p);r&&(o!==`svg`&&Mr(r)?o=`svg`:o!==`mathml`&&Nr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),zr(e,!1)))},S=e=>{let t=()=>{if(Dr.get(e)===t){if(Dr.delete(e),Ar(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),zr(e,!0)}x(e)}};Dr.set(e,t),V(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),jr(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),zr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Dr.get(e);if(u){u.flags|=8,Dr.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Ar(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Mr(p)?o=`svg`:(o===`mathml`||Nr(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),zo(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ir(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Pr(t.props,m);e&&(t.target=e,Ir(t,e,null,l,0))}else g&&Ir(t,p,h,l,1);zr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Ar(f),m=a||!p,h=Dr.get(e);if(h&&(h.flags|=8,Dr.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:Ir,hydrate:Lr};function Ir(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!Dr.has(e)&&(!d||Ar(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function Lr(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=Pr(t.props,c),h=Ar(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||Br(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||Br(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),zr(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var Rr=Fr;function zr(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function Br(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[Or]=o,e&&(r(a,e,i),r(o,e,i)),o}var Vr=Symbol(`_leaveCb`),Hr=Symbol(`_enterCb`);function Ur(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ji(()=>{e.isMounted=!0}),Zi(()=>{e.isUnmounting=!0}),e}var Wr=[Function,Array],Gr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wr,onEnter:Wr,onAfterEnter:Wr,onEnterCancelled:Wr,onBeforeLeave:Wr,onLeave:Wr,onAfterLeave:Wr,onLeaveCancelled:Wr,onBeforeAppear:Wr,onAppear:Wr,onAfterAppear:Wr,onAppearCancelled:Wr},Kr=e=>{let t=e.subTree;return t.component?Kr(t.component):t},qr={name:`BaseTransition`,props:Gr,setup(e,{slots:t}){let n=ks(),r=Ur();return()=>{let i=t.default&&ti(t.default(),!0),a=i&&i.length?Jr(i):n.subTree?X():void 0;if(!a)return;let o=P(e),{mode:s}=o;if(r.isLeaving)return Qr(a);let c=$r(a);if(!c)return Qr(a);let l=Zr(c,o,r,n,e=>l=e);c.type!==U&&ei(c,l);let u=n.subTree&&$r(n.subTree);if(u&&u.type!==U&&!fs(u,c)&&Kr(n).type!==U){let e=Zr(u,o,r,n);if(ei(u,e),s===`out-in`&&c.type!==U)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Qr(a);s===`in-out`&&c.type!==U?e.delayLeave=(e,t,n)=>{let i=Xr(r,u);i[String(u.key)]=u,e[Vr]=()=>{t(),e[Vr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function Jr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==U){t=n;break}}return t}var Yr=qr;function Xr(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Zr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=Xr(n,e),C=(e,t)=>{e&&zn(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),p(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},ee={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(a)r=_||c;else return}t[Vr]&&t[Vr](!0);let i=S[x];i&&fs(e,i)&&i.el[Vr]&&i.el[Vr](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=d;if(!n.isMounted){if(a)r=v||l,i=y||u,o=b||d;else return}let s=!1;t[Hr]=e=>{s||(s=!0,C(e?o:i,[t]),ee.delayedLeave&&ee.delayedLeave(),t[Hr]=void 0)};let c=t[Hr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Hr]&&t[Hr](!0),n.isUnmounting)return r();C(f,[t]);let a=!1;t[Vr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[Vr]=void 0,S[i]===e&&delete S[i])};let o=t[Vr].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=Zr(e,t,n,r,i);return i&&i(a),a}};return ee}function Qr(e){if(Ii(e))return e=vs(e),e.children=null,e}function $r(e){if(!Ii(e))return kr(e.type)&&e.children?Jr(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&&v(n.default))return n.default()}}function ei(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;ei(kr(n.type)&&$r(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 ti(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===H?(o.patchFlag&128&&i++,r=r.concat(ti(o.children,t,s))):(t||o.type!==U)&&r.push(s==null?o:vs(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function z(e,t){return v(e)?l({name:e.name},t,{setup:e}):e}function ni(){let e=ks();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function ri(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function ii(e){let t=ks(),n=sn(null);if(t){let i=t.refs===r?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n}function ai(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var oi=new WeakMap;function si(e,t,n,i,a=!1){if(p(e)){e.forEach((e,r)=>si(e,t&&(p(t)?t[r]:t),n,i,a));return}if(Ni(i)&&!a){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&si(e,t,n,i.component.subTree);return}let s=i.shapeFlag&4?Ks(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,_=P(g),b=g===r?o:e=>!ai(h,e)&&f(_,e),x=(e,t)=>!(t&&ai(h,t));if(m!=null&&m!==d){if(ci(t),y(m))h[m]=null,b(m)&&(g[m]=null);else if(F(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(v(d))Rn(d,l,12,[c,h]);else{let t=y(d),r=F(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(),oi.delete(e)};t.id=-1,oi.set(e,t),V(t,n)}else ci(e),i()}}}function ci(e){let t=oi.get(e);t&&(t.flags|=8,oi.delete(e))}var li=!1,ui=()=>{li||=(console.error(`Hydration completed but contains mismatches.`),!0)},di=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,fi=e=>e.namespaceURI.includes(`MathML`),pi=e=>{if(e.nodeType===1){if(di(e))return`svg`;if(fi(e))return`mathml`}},mi=e=>e.nodeType===8;function hi(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:c,insert:l,createComment:u}}=e,d=(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),tr(),t._vnode=e;return}f(t.firstChild,e,null,null,null),tr(),t._vnode=e},f=(n,r,s,c,u,d=!1)=>{d||=!!r.dynamicChildren;let b=mi(n)&&n.data===`[`,x=()=>g(n,r,s,c,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:ee}=r,T=n.nodeType;r.el=n,ee===-2&&(d=!1,r.dynamicChildren=null);let E=null;switch(S){case rs:T===3?(n.data!==r.children&&(ui(),n.data=r.children),E=a(n)):r.children===``?(l(r.el=i(``),o(n),n),E=n):E=x();break;case U:y(n)?(E=a(n),v(r.el=n.content.firstChild,n,s)):E=T!==8||b?x():a(n);break;case is:if(b&&(n=a(n),T=n.nodeType),T===1||T===3){E=n;let e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=E.nodeType===1?E.outerHTML:E.data),t===r.staticCount-1&&(r.anchor=E),E=a(E);return b?a(E):E}x();break;case H:E=b?h(n,r,s,c,u,d):x();break;default:if(w&1)E=(T!==1||r.type.toLowerCase()!==n.tagName.toLowerCase())&&!y(n)?x():p(n,r,s,c,u,d);else if(w&6){r.slotScopeIds=u;let e=o(n);if(E=b?_(n):mi(n)&&n.data===`teleport start`?_(n,n.data,`teleport end`):a(n),t(r,e,null,s,c,pi(e),d),Ni(r)&&!r.component.subTree){let t;b?(t=J(is),t.anchor=E?E.previousSibling:e.lastChild):t=n.nodeType===3?Y(``):J(`div`),t.el=n,r.component.subTree=t}}else w&64?E=T===8?r.type.hydrate(n,r,s,c,u,d,e,m):x():w&128&&(E=r.type.hydrate(n,r,s,c,pi(o(n)),u,d,e,f))}return C!=null&&si(C,null,c,r),E},p=(e,t,n,i,a,o)=>{o||=!!t.dynamicChildren;let{type:l,dynamicProps:u,props:d,patchFlag:f,shapeFlag:p,dirs:h,transition:g}=t,_=l===`input`||l===`option`,b=!!u;if(_||b||f!==-1){h&&mr(t,null,n,`created`);let l=!1;if(y(e)){l=Ro(null,g)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(l){let e=r.getAttribute(`class`);e&&(r.$cls=e),g.beforeEnter(r)}v(r,e,n),t.el=e=r}if(p&16&&!(d&&(d.innerHTML||d.textContent))){let r=m(e.firstChild,t,e,n,i,a,o);for(r&&!bi(e,1)&&ui();r;){let e=r;r=r.nextSibling,c(e)}}else if(p&8){let n=t.children;n[0]===`
|
|
2
|
-
`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,`
|
|
3
|
-
`)&&(bi(e,0)||ui(),e.textContent=t.children)}if(d){if(_||b||!o||f&48){let t=e.tagName.includes(`-`),i=e.namespaceURI.includes(`svg`)?`svg`:e.namespaceURI.includes(`MathML`)?`mathml`:void 0;for(let a in d)if(_&&(a.endsWith(`value`)||a===`indeterminate`)||s(a)&&!te(a)||a[0]===`.`||t&&!te(a)||u&&u.includes(a)){if(_i(e,a,d[a]))continue;r(e,a,null,d[a],i,n)}}else if(d.onClick)r(e,`onClick`,null,d.onClick,void 0,n);else if(f&4&&$t(d.style))for(let e in d.style)d.style[e]}let x;(x=d&&d.onVnodeBeforeMount)&&ws(x,n,t),h&&mr(t,null,n,`beforeMount`),((x=d&&d.onVnodeMounted)||h||l)&&es(()=>{x&&ws(x,n,t),l&&g.enter(e),h&&mr(t,null,n,`mounted`)},i)}return e.nextSibling},m=(e,t,r,o,s,c,u)=>{u||=!!t.dynamicChildren;let d=t.children,p=d.length,m=!1;for(let t=0;t<p;t++){let h=u?d[t]:d[t]=bs(d[t]),g=h.type===rs;e?(g&&!u&&t+1<p&&bs(d[t+1]).type===rs&&(l(i(e.data.slice(h.children.length)),r,a(e)),e.data=h.children),e=f(e,h,o,s,c,u)):g&&!h.children?l(h.el=i(``),r):(m||(m=!0,bi(r,1)||ui()),n(null,h,r,null,o,s,pi(r),c))}return e},h=(e,t,n,r,i,s)=>{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=o(e),f=m(a(e),t,d,n,r,i,s);return f&&mi(f)&&f.data===`]`?a(t.anchor=f):(ui(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,s,l)=>{if(Si(e,t)||ui(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)c(n);else break}}let u=a(e),d=o(e);return c(e),n(null,t,d,u,r,i,pi(d),s),r&&(r.vnode.el=t.el,mo(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&mi(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[d,f]}var gi=new Set([`src`,`srcset`,`href`,`poster`]);function _i(e,t,n){return gi.has(t)?e.getAttribute(t)===(n==null?null:`${n}`):!1}var vi=`data-allow-mismatch`,yi={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function bi(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(vi);)e=e.parentElement;return xi(e&&e.getAttribute(vi),t)}function xi(e,t){if(e==null)return!1;if(e===``)return!0;{let n=e.split(`,`);return t===0&&n.includes(`children`)?!0:n.includes(yi[t])}}function Si(e,t){return bi(e.parentElement,1)||Ci(e)||wi(t)}function Ci(e){return e.nodeType===1&&xi(e.getAttribute(vi),1)}function wi({props:e}){let t=e&&e[vi];return typeof t==`string`&&xi(t,1)}var Ti=pe().requestIdleCallback||(e=>setTimeout(e,1)),Ei=pe().cancelIdleCallback||(e=>clearTimeout(e)),Di=(e=1e4)=>t=>{let n=Ti(t,{timeout:e});return()=>Ei(n)};function Oi(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}var ki=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Oi(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Ai=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},ji=(e=[])=>(t,n)=>{y(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Mi(e,t){if(mi(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(mi(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var Ni=e=>!!e.type.__asyncLoader;function Pi(e){v(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return z({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>Mi(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=Os;if(ri(e),u)return()=>Fi(u,e);let t=t=>{l=null,Bn(t,e,13,!r)};if(s&&e.suspense||Fs)return p().then(t=>()=>Fi(t,e)).catch(e=>(t(e),()=>r?J(r,{error:e}):null));let a=I(!1),c=I(),d=I(!!i),f,m;return Qi(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&Ii(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return Fi(u,e);if(c.value&&r)return J(r,{error:c.value});if(n&&!d.value)return Fi(n,e)}}})}function Fi(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=J(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Ii=e=>e.type.__isKeepAlive,Li={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=ks(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),V(()=>{a.isDeactivated=!1,a.a&&ce(a.a);let t=e.props&&e.props.onVnodeMounted;t&&ws(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;Ho(t.m),Ho(t.a),l(e,f,null,1,s),V(()=>{t.da&&ce(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&ws(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){Ui(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=qs(Ni(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!fs(t,o))?p(t):o&&Ui(o),i.delete(e),a.delete(e)}Cr(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Ri(e,t)),t&&m(e=>!Ri(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(Wo(n.subTree.type)?V(()=>{let e=Wi(n.subTree);e.component&&i.set(g,e)},n.subTree.suspense):i.set(g,Wi(n.subTree)))};return Ji(_),Xi(_),Zi(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Wi(t);if(e.type===i.type&&e.key===i.key){Ui(i);let e=i.component.da;e&&V(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!ds(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Wi(r);if(s.type===U)return o=null,s;let c=s.type,l=qs(Ni(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Ri(u,l))||d&&l&&Ri(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=vs(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&ei(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,Wo(r.type)?r:s}}};function Ri(e,t){return p(e)?e.some(e=>Ri(e,t)):y(e)?e.split(`,`).includes(t):_(e)?(e.lastIndex=0,e.test(t)):!1}function zi(e,t){Vi(e,`a`,t)}function Bi(e,t){Vi(e,`da`,t)}function Vi(e,t,n=Os){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Gi(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ii(e.parent.vnode)&&Hi(r,t,n,e),e=e.parent}}function Hi(e,t,n,r){let i=Gi(t,e,r,!0);Qi(()=>{u(r[t],i)},n)}function Ui(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Wi(e){return e.shapeFlag&128?e.ssContent:e}function Gi(e,t,n=Os,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{$e();let i=Ms(n),a=zn(t,n,e,r);return i(),et(),a};return r?i.unshift(a):i.push(a),a}}var Ki=e=>(t,n=Os)=>{(!Fs||e===`sp`)&&Gi(e,(...e)=>t(...e),n)},qi=Ki(`bm`),Ji=Ki(`m`),Yi=Ki(`bu`),Xi=Ki(`u`),Zi=Ki(`bum`),Qi=Ki(`um`),$i=Ki(`sp`),ea=Ki(`rtg`),ta=Ki(`rtc`);function na(e,t=Os){Gi(`ec`,e,t)}var ra=`components`,ia=`directives`;function aa(e,t){return la(ra,e,!0,t)||e}var oa=Symbol.for(`v-ndc`);function sa(e){return y(e)?la(ra,e,!1)||e:e||oa}function ca(e){return la(ia,e)}function la(e,t,n=!0,r=!1){let i=sr||Os;if(i){let n=i.type;if(e===ra){let e=qs(n,!1);if(e&&(e===t||e===D(t)||e===oe(D(t))))return n}let a=ua(i[e]||n[e],t)||ua(i.appContext[e],t);return!a&&r?n:a}}function ua(e,t){return e&&(e[t]||e[D(t)]||e[oe(D(t))])}function da(e,t,n,r){let i,a=n&&n[r],o=p(e);if(o||y(e)){let n=o&&$t(e),r=!1,s=!1;n&&(r=!tn(e),s=en(e),e=mt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?on(an(e[n])):an(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(x(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 fa(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(p(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function B(e,t,n,r,i,a){if(n??={},sr.ce||sr.parent&&Ni(sr.parent)&&sr.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),W(),K(H,null,[J(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=as.length;W();let c;try{let i=o&&pa(o(n)),s=n.key||a||i&&i.key;c=K(H,{key:(s&&!b(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=as.length;e>s;e--)ss();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function pa(e){return e.some(e=>!ds(e)||!(e.type===U||e.type===H&&!pa(e.children)))?e:null}function ma(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:se(r)]=e[r];return n}var ha=e=>e?Ps(e)?Ks(e):ha(e.parent):null,ga=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=>ha(e.parent),$root:e=>ha(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ba(e),$forceUpdate:e=>e.f||=()=>{Zn(e.update)},$nextTick:e=>e.n||=Yn.bind(e.proxy),$watch:e=>Tr.bind(e)}),_a=(e,t)=>e!==r&&!e.__isScriptSetup&&f(e,t),va={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(_a(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 Fa&&(s[t]=0)}let u=ga[t],d,p;if(u)return t===`$attrs`&&ut(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 _a(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)||_a(t,c)||f(o,c)||f(i,c)||f(ga,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)}},ya=l({},va,{get(e,t){if(t!==Symbol.unscopables)return va.get(e,t,e)},has(e,t){return t[0]!==`_`&&!me(t)}});function ba(){return null}function xa(){return null}function Sa(e){}function Ca(e){}function wa(){return null}function Ta(){}function Ea(e,t){return null}function Da(){return ka(`useSlots`).slots}function Oa(){return ka(`useAttrs`).attrs}function ka(e){let t=ks();return t.setupContext||=Gs(t)}function Aa(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function ja(e,t){let n=Aa(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?p(r)||v(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Ma(e,t){return!e||!t?e||t:p(e)&&p(t)?e.concat(t):l({},Aa(e),Aa(t))}function Na(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Pa(e){let t=ks(),n=Fs,r=e();Ns(),n&&js(!1);let i=()=>{Ms(t),n&&js(!0)},a=()=>{ks()!==t&&t.scope.off(),Ns(),n&&js(!1)};return S(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}var Fa=!0;function Ia(e){let t=Ba(e),n=e.proxy,r=e.ctx;Fa=!1,t.beforeCreate&&Ra(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:_,deactivated:y,beforeDestroy:b,beforeUnmount:S,destroyed:C,unmounted:w,render:ee,renderTracked:T,renderTriggered:E,errorCaptured:te,serverPrefetch:ne,expose:re,inheritAttrs:D,components:ie,directives:ae,filters:oe}=t;if(u&&La(u,r,null),s)for(let e in s){let t=s[e];v(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);x(t)&&(e.data=Jt(t))}if(Fa=!0,o)for(let e in o){let t=o[e],i=Z({get:v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):a,set:!v(t)&&v(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)za(c[e],r,n,e);if(l){let e=v(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{hr(t,e[t])})}d&&Ra(d,e,`c`);function se(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(se(qi,f),se(Ji,m),se(Yi,h),se(Xi,g),se(zi,_),se(Bi,y),se(na,te),se(ta,T),se(ea,E),se(Zi,S),se(Qi,w),se($i,ne),p(re)){if(re.length){let t=e.exposed||={};re.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}ee&&e.render===a&&(e.render=ee),D!=null&&(e.inheritAttrs=D),ie&&(e.components=ie),ae&&(e.directives=ae),ne&&ri(e)}function La(e,t,n=a){p(e)&&(e=Ga(e));for(let n in e){let r=e[n],i;i=x(r)?`default`in r?gr(r.from||n,r.default,!0):gr(r.from||n):gr(r),F(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Ra(e,t,n){zn(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function za(e,t,n,r){let i=r.includes(`.`)?Er(n,r):()=>n[r];if(y(e)){let n=t[e];v(n)&&Cr(i,n)}else if(v(e))Cr(i,e.bind(n));else if(x(e)){if(p(e))e.forEach(e=>za(e,t,n,r));else{let r=v(e.handler)?e.handler.bind(n):t[e.handler];v(r)&&Cr(i,r,e)}}}function Ba(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=>Va(c,e,o,!0)),Va(c,t,o)),x(t)&&a.set(t,c),c}function Va(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Va(e,a,n,!0),i&&i.forEach(t=>Va(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Ha[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Ha={data:Ua,props:Ja,emits:Ja,methods:qa,computed:qa,beforeCreate:Ka,created:Ka,beforeMount:Ka,mounted:Ka,beforeUpdate:Ka,updated:Ka,beforeDestroy:Ka,beforeUnmount:Ka,destroyed:Ka,unmounted:Ka,activated:Ka,deactivated:Ka,errorCaptured:Ka,serverPrefetch:Ka,components:qa,directives:qa,watch:Ya,provide:Ua,inject:Wa};function Ua(e,t){return t?e?function(){return l(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function Wa(e,t){return qa(Ga(e),Ga(t))}function Ga(e){if(p(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ka(e,t){return e?[...new Set([].concat(e,t))]:t}function qa(e,t){return e?l(Object.create(null),e,t):t}function Ja(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),Aa(e),Aa(t??{})):t}function Ya(e,t){if(!e)return t;if(!t)return e;let n=l(Object.create(null),e);for(let r in t)n[r]=Ka(e[r],t[r]);return n}function Xa(){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 Za=0;function Qa(e,t){return function(n,r=null){v(n)||(n=l({},n)),r!=null&&!x(r)&&(r=null);let i=Xa(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Za++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:$s,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&v(e.install)?(a.add(e),e.install(c,...t)):v(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||J(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,Ks(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(zn(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=$a;$a=c;try{return e()}finally{$a=t}}};return c}}var $a=null;function eo(e,t,n=r){let i=ks(),a=D(t),o=ae(t),s=to(e,a),c=hn((s,c)=>{let l,u=r,d;return Sr(()=>{let t=e[a];O(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(!O(s,l)&&!(u!==r&&O(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),O(e,u)&&(O(e,s)&&!O(s,d)||p&&u!==r&&!O(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 to=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${D(t)}Modifiers`]||e[`${ae(t)}Modifiers`];function no(e,t,...n){if(e.isUnmounted)return;let i=e.vnode.props||r,a=n,o=t.startsWith(`update:`),s=o&&to(i,t.slice(7));s&&(s.trim&&(a=n.map(e=>y(e)?e.trim():e)),s.number&&(a=a.map(ue)));let c,l=i[c=se(t)]||i[c=se(D(t))];!l&&o&&(l=i[c=se(ae(t))]),l&&zn(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,zn(u,e,6,a)}}var ro=new WeakMap;function io(e,t,n=!1){let r=n?ro:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!v(e)){let r=e=>{let n=io(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?(x(e)&&r.set(e,null),null):(p(a)?a.forEach(e=>o[e]=null):l(o,a),x(e)&&r.set(e,o),o)}function ao(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,ae(t))||f(e,t))}function oo(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,_=lr(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=bs(u.call(t,e,d,f,m,p,h)),y=s}else{let e=t;v=bs(e.length>1?e(f,{attrs:s,slots:o,emit:l}):e(f,null)),y=t.props?s:co(s)}}catch(t){as.length=0,Bn(t,e,1),v=J(U)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(c)&&(y=lo(y,a)),b=vs(b,y,!1,!0))}return n.dirs&&(b=vs(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&ei(kr(b.type)&&$r(b)||b,n.transition),v=b,lr(_),v}function so(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(ds(r)){if(r.type!==U||r.children===`v-if`){if(n)return;n=r}}else return}return n}var co=e=>{let t;for(let n in e)(n===`class`||n===`style`||s(n))&&((t||={})[n]=e[n]);return t},lo=(e,t)=>{let n={};for(let r in e)(!c(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function uo(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?fo(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(po(o,r,n)&&!ao(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||fo(r,o,l):!!o;return!1}function fo(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(po(t,e,a)&&!ao(n,a))return!0}return!1}function po(e,t,n){let r=e[n],i=t[n];return n===`style`&&x(r)&&x(i)?!Te(r,i):r!==i}function mo({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 ho={},go=()=>Object.create(ho),_o=e=>Object.getPrototypeOf(e)===ho;function vo(e,t,n,r=!1){let i={},a=go();e.propsDefaults=Object.create(null),bo(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:Yt(i):e.type.props?i:a,e.attrs=a}function yo(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=P(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(ao(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=D(o);i[t]=xo(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{bo(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!f(t,a)&&((r=ae(a))===a||!f(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=xo(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&&dt(e.attrs,`set`,``)}function bo(e,t,n,i){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let r in t){if(te(r))continue;let l=t[r],u;a&&f(a,u=D(r))?!o||!o.includes(u)?n[u]=l:(c||={})[u]=l:ao(e.emitsOptions,r)||(!(r in i)||l!==i[r])&&(i[r]=l,s=!0)}if(o){let t=P(n),i=c||r;for(let r=0;r<o.length;r++){let s=o[r];n[s]=xo(a,t,s,i[s],e,!f(i,s))}}return s}function xo(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&&v(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Ms(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===ae(n))&&(r=!0))}return r}var So=new WeakMap;function Co(e,t,n=!1){let a=n?So:t.propsCache,o=a.get(e);if(o)return o;let s=e.props,c={},u=[],d=!1;if(!v(e)){let r=e=>{d=!0;let[n,r]=Co(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 x(e)&&a.set(e,i),i;if(p(s))for(let e=0;e<s.length;e++){let t=D(s[e]);wo(t)&&(c[t]=r)}else if(s)for(let e in s){let t=D(e);if(wo(t)){let n=s[e],r=c[t]=p(n)||v(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=v(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=v(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||f(r,`default`))&&u.push(t)}}let m=[c,u];return x(e)&&a.set(e,m),m}function wo(e){return e[0]!==`$`&&!te(e)}var To=e=>e===`_`||e===`_ctx`||e===`$stable`,Eo=e=>p(e)?e.map(bs):[bs(e)],Do=(e,t,n)=>{if(t._n)return t;let r=R((...e)=>Eo(t(...e)),n);return r._c=!1,r},Oo=(e,t,n)=>{let r=e._ctx;for(let n in e){if(To(n))continue;let i=e[n];if(v(i))t[n]=Do(n,i,r);else if(i!=null){let e=Eo(i);t[n]=()=>e}}},ko=(e,t)=>{let n=Eo(t);e.slots.default=()=>n},Ao=(e,t,n)=>{for(let r in t)(n||!To(r))&&(e[r]=t[r])},jo=(e,t,n)=>{let r=e.slots=go();if(e.vnode.shapeFlag&32){let e=t._;e?(Ao(r,t,n),n&&le(r,`_`,e,!0)):Oo(t,r)}else t&&ko(e,t)},Mo=(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:Ao(a,t,n):(o=!t.$stable,Oo(t,a)),s=t}else t&&(ko(e,t),s={default:1});if(o)for(let e in a)!To(e)&&s[e]==null&&delete a[e]},V=es;function No(e){return Fo(e)}function Po(e){return Fo(e,hi)}function Fo(e,t){let n=pe();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,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!fs(e,t)&&(r=A(e),k(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case rs:y(e,t,n,r);break;case U:b(e,t,n,r);break;case is:e??x(t,n,r,o);break;case H:ie(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?ae(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,xe)}u!=null&&i?si(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&si(e.ref,null,a,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)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ne(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(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&&E(e.children,d,null,r,i,Io(e,a),s,u),_&&mr(e,null,r,`created`),T(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!te(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&ws(f,r,e)}_&&mr(e,null,r,`beforeMount`);let v=Ro(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&V(()=>{try{f&&ws(f,r,e),v&&g.enter(d),_&&mr(e,null,r,`mounted`)}finally{}},i)},T=(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||Wo(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;T(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},E=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?xs(e[l]):bs(e[l]);v(null,c,t,n,r,i,a,o,s)}},ne=(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&&Lo(n,!1),(g=h.onVnodeBeforeUpdate)&&ws(g,n,t,e),f&&mr(t,e,n,`beforeUpdate`),n&&Lo(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?re(e.dynamicChildren,d,l,n,i,Io(t,a),o):s||ue(e,t,l,null,n,i,Io(t,a),o,!1),u>0){if(u&16)D(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&&D(l,m,h,n,a);((g=h.onVnodeUpdated)||f)&&V(()=>{g&&ws(g,n,t,e),f&&mr(t,e,n,`updated`)},i)},re=(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===H||!fs(c,l)||c.shapeFlag&198)?m(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},D=(e,t,n,i,a)=>{if(t!==n){if(t!==r)for(let r in t)!te(r)&&!(r in n)&&c(e,r,t[r],null,a,i);for(let r in n){if(te(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)}},ie=(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),E(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(re(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&zo(e,t,!0)):ue(e,t,n,f,i,a,s,c,l)},ae=(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):oe(t,n,r,i,a,o,c):se(e,t,c)},oe=(e,t,n,r,i,a,o)=>{let s=e.component=Ds(e,r,i);if(Ii(e)&&(s.ctx.renderer=xe),Is(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,O,o),!e.el){let r=s.subTree=J(U);b(null,r,t,n),e.placeholder=r.el}}else O(s,e,t,n,i,a,o)},se=(e,t,n)=>{let r=t.component=e.component;if(uo(e,t,n)){if(r.asyncDep&&!r.asyncResolved){le(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},O=(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=Vo(e);if(n){t&&(t.el=c.el,le(e,t,o)),n.asyncDep.then(()=>{V(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Lo(e,!1),t?(t.el=c.el,le(e,t,o)):t=c,n&&ce(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ws(d,s,t,c),Lo(e,!0);let f=oo(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),A(p),e,i,a),t.el=f.el,u===null&&mo(e,f.el),r&&V(r,i),(d=t.props&&t.props.onVnodeUpdated)&&V(()=>ws(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=Ni(t);if(Lo(e,!1),l&&ce(l),!m&&(o=c&&c.onVnodeBeforeMount)&&ws(o,d,t),Lo(e,!0),s&&Ce){let t=()=>{e.subTree=oo(e),Ce(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=oo(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&V(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;V(()=>ws(o,d,e),i)}(t.shapeFlag&256||d&&Ni(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&V(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ie(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=()=>Zn(u),Lo(e,!0),l()},le=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,yo(e,t.props,r,n),Mo(e,t.children,n),$e(),er(e),et()},ue=(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){fe(l,d,n,r,i,a,o,s,c);return}if(f&256){de(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ve(l,i,a),d!==l&&p(n,d)):u&16?m&16?fe(l,d,n,r,i,a,o,s,c):ve(l,i,a,!0):(u&8&&p(n,``),m&16&&E(d,n,r,i,a,o,s,c))},de=(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;for(p=0;p<f;p++){let r=t[p]=l?xs(t[p]):bs(t[p]);v(e[p],r,n,null,a,o,s,c,l)}u>d?ve(e,a,o,!0,!1,f):E(t,n,r,a,o,s,c,l,f)},fe=(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?xs(t[u]):bs(t[u]);if(fs(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?xs(t[p]):bs(t[p]);if(fs(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?xs(t[u]):bs(t[u]),n,i,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)k(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?xs(t[u]):bs(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){k(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&fs(r,t[_])){i=_;break}i===void 0?k(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?Bo(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||Uo(f):r;C[u]===0?v(null,i,n,p,a,o,s,c,l):x&&(_<0||u!==w[_]?me(i,n,p,2):_--)}}},me=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){me(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,xe);return}if(c===H){o(a,t,n);for(let e=0;e<u.length;e++)me(u[e],t,n,r);o(e.anchor,t,n);return}if(c===is){S(e,t,n);return}if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[Vr]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),V(()=>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[Vr];a._isLeaving&&a[Vr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},k=(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&&(i=!1),s!=null&&($e(),si(s,null,n,e,!0),et()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Ni(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&ws(_,t,e),u&6)_e(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&mr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,xe,r):l&&!l.hasOnce&&(a!==H||d>0&&d&64)?ve(l,t,n,!1,!0):(a===H&&d&384||!i&&u&16)&&ve(c,t,n),r&&he(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&V(()=>{_&&ws(_,t,e),h&&mr(e,null,t,`unmounted`),v&&(e.el=null)},n)},he=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===H){ge(n,r);return}if(t===is){C(e);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()},ge=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},_e=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Ho(c),Ho(l),r&&ce(r),i.stop(),a&&(a.flags|=8,k(o,e,t,n)),s&&V(s,t),V(()=>{e.isUnmounted=!0},t)},ve=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)k(e[o],t,n,r,i)},A=e=>{if(e.shapeFlag&6)return A(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Or];return n?h(n):t},ye=!1,be=(e,t,n)=>{let r;e==null?t._vnode&&(k(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ye||=(ye=!0,er(r),tr(),!1)},xe={p:v,um:k,m:me,r:he,mt:oe,mc:E,pc:ue,pbc:re,n:A,o:e},Se,Ce;return t&&([Se,Ce]=t(xe)),{render:be,hydrate:Se,createApp:Qa(be,Se)}}function Io({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 Lo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ro(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zo(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]=xs(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&zo(t,a)),a.type===rs&&(a.patchFlag===-1&&(a=i[e]=xs(a)),a.el=t.el),a.type===U&&!a.el&&(a.el=t.el)}}function Bo(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 Vo(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vo(t)}function Ho(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Uo(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Uo(t.subTree):null}var Wo=e=>e.__isSuspense,Go=0,Ko={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)Jo(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Yo(e,t,n,r,i,o,s,c,l)}},hydrate:Zo,normalize:Qo};function qo(e,t){let n=e.props&&e.props[t];v(n)&&n()}function Jo(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=Xo(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(qo(e,`onPending`),qo(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),ts(f,e.ssFallback)):f.resolve(!1,!0)}function Yo(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,fs(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&!_&&!d.isFallbackMountPending&&(c(m,p,n,r,i,null,a,o,s),ts(d,p))):(d.pendingId=Go++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():d.isFallbackMountPending||(c(m,p,n,r,i,null,a,o,s),ts(d,p))):m&&fs(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&fs(m,f))c(m,f,n,r,i,d,a,o,s),ts(d,f);else if(qo(t,`onPending`),d.pendingBranch=f,d.pendingId=f.shapeFlag&512?f.component.suspenseId:Go++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function Xo(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=ns(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?de(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:Go++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){g=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b&&!e?m(i):a,0),$n(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i),e=!0),p(i,l,x,!0),!g&&d&&r.ssFallback&&V(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,ts(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){for(let e=0;e<c.length;e++)y.effects.push(c[e]);S=!0;break}y=y.parent}!S&&!g&&$n(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),qo(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;qo(t,`onFallback`);let o=m(n),l=()=>{if(x.isFallbackMountPending=!1,!x.isInFallback)return;let e=x.vnode.ssFallback;d(null,e,i,o,r,null,a,s,c),ts(x,e)},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{Bn(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;Ns(),e.asyncResolved=!0;let{vnode:s}=e;Rs(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),mo(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function Zo(e,t,n,r,i,a,o,s,c){let l=t.suspense=Xo(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function Qo(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=$o(r?n.default:n),e.ssFallback=r?$o(n.fallback):J(U)}function $o(e){let t;if(v(e)){let n=cs&&e._c;n&&(e._d=!1,W()),e=e(),n&&(e._d=!0,t=os,ss())}return p(e)&&(e=so(e)),e=bs(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function es(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):$n(e)}function ts(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,mo(r,i))}function ns(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var H=Symbol.for(`v-fgt`),rs=Symbol.for(`v-txt`),U=Symbol.for(`v-cmt`),is=Symbol.for(`v-stc`),as=[],os=null;function W(e=!1){as.push(os=e?null:[])}function ss(){as.pop(),os=as[as.length-1]||null}var cs=1;function ls(e,t=!1){cs+=e,e<0&&os&&t&&(os.hasOnce=!0)}function us(e){return e.dynamicChildren=cs>0?os||i:null,ss(),cs>0&&os&&os.push(e),e}function G(e,t,n,r,i,a){return us(q(e,t,n,r,i,a,!0))}function K(e,t,n,r,i){return us(J(e,t,n,r,i,!0))}function ds(e){return e?e.__v_isVNode===!0:!1}function fs(e,t){return e.type===t.type&&e.key===t.key}function ps(e){}var ms=({key:e})=>e??null,hs=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:y(e)||F(e)||v(e)?{i:sr,r:e,k:t,f:!!n}:e);function q(e,t=null,n=null,r=0,i=null,a=e===H?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ms(t),ref:t&&hs(t),scopeId:cr,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:sr};return s?(Ss(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),cs>0&&!o&&os&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&os.push(c),c}var J=gs;function gs(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===oa)&&(e=U),ds(e)){let r=vs(e,t,!0);return n&&Ss(r,n),cs>0&&!a&&os&&(r.shapeFlag&6?os[os.indexOf(e)]=r:os.push(r)),r.patchFlag=-2,r}if(Js(e)&&(e=e.__vccOpts),t){t=_s(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=A(e)),x(n)&&(nn(n)&&!p(n)&&(n=l({},n)),t.style=k(n))}let o=y(e)?1:Wo(e)?128:kr(e)?64:x(e)?4:v(e)?2:0;return q(e,t,n,r,i,o,a,!0)}function _s(e){return e?nn(e)||_o(e)?l({},e):e:null}function vs(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Cs(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ms(l),ref:t&&t.ref?n&&a?p(a)?a.concat(hs(t)):[a,hs(t)]:hs(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!==H?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&&vs(e.ssContent),ssFallback:e.ssFallback&&vs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&ei(u,c.clone(u)),u}function Y(e=` `,t=0){return J(rs,null,e,t)}function ys(e,t){let n=J(is,null,e);return n.staticCount=t,n}function X(e=``,t=!1){return t?(W(),K(U,null,e)):J(U,null,e)}function bs(e){return e==null||typeof e==`boolean`?J(U):p(e)?J(H,null,e.slice()):ds(e)?xs(e):J(rs,null,String(e))}function xs(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vs(e)}function Ss(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),Ss(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!_o(t)?t._ctx=sr:r===3&&sr&&(sr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(v(t)){if(r&65){Ss(e,{default:t});return}t={default:t,_ctx:sr},n=32}else t=String(t),r&64?(n=16,t=[Y(t)]):n=8;e.children=t,e.shapeFlag|=n}function Cs(...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=A([t.class,r.class]));else if(e===`style`)t.style=k([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 ws(e,t,n,r=null){zn(e,t,7,[n,r])}var Ts=Xa(),Es=0;function Ds(e,t,n){let i=e.type,a=(t?t.appContext:e.appContext)||Ts,o={uid:Es++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new je(!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:Co(i,a),emitsOptions:io(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=no.bind(null,o),e.ce&&e.ce(o),o}var Os=null,ks=()=>Os||sr,As,js;{let e=pe(),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)}};As=t(`__VUE_INSTANCE_SETTERS__`,e=>Os=e),js=t(`__VUE_SSR_SETTERS__`,e=>Fs=e)}var Ms=e=>{let t=Os;return As(e),e.scope.on(),()=>{e.scope.off(),As(t)}},Ns=()=>{Os&&Os.scope.off(),As(null)};function Ps(e){return e.vnode.shapeFlag&4}var Fs=!1;function Is(e,t=!1,n=!1){t&&js(t);let{props:r,children:i}=e.vnode,a=Ps(e);vo(e,r,a,t),jo(e,i,n||t);let o=a?Ls(e,t):void 0;return t&&js(!1),o}function Ls(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,va);let{setup:r}=n;if(r){$e();let n=e.setupContext=r.length>1?Gs(e):null,i=Ms(e),a=Rn(r,e,0,[e.props,n]),o=S(a);if(et(),i(),(o||e.sp)&&!Ni(e)&&ri(e),o){if(a.then(Ns,Ns),t)return a.then(n=>{js(!0);try{Rs(e,n,t)}finally{js(!1)}}).catch(t=>{Bn(t,e,0)});e.asyncDep=a}else Rs(e,a,t)}else Us(e,t)}function Rs(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:x(t)&&(e.setupState=pn(t)),Us(e,n)}var zs,Bs;function Vs(e){zs=e,Bs=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,ya))}}var Hs=()=>!zs;function Us(e,t,n){let r=e.type;if(!e.render){if(!t&&zs&&!r.render){let t=r.template||Ba(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=l(l({isCustomElement:n,delimiters:a},i),o);r.render=zs(t,s)}}e.render=r.render||a,Bs&&Bs(e)}{let t=Ms(e);$e();try{Ia(e)}finally{et(),t()}}}var Ws={get(e,t){return ut(e,`get`,``),e[t]}};function Gs(e){return{attrs:new Proxy(e.attrs,Ws),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ks(e){return e.exposed?e.exposeProxy||=new Proxy(pn(rn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ga)return ga[n](e)},has(e,t){return t in e||t in ga}}):e.proxy}function qs(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}function Js(e){return v(e)&&`__vccOpts`in e}var Z=(e,t)=>Sn(e,t,Fs);function Ys(e,t,n){try{ls(-1);let r=arguments.length;return r===2?x(t)&&!p(t)?ds(t)?J(e,null,[t]):J(e,t):J(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ds(n)&&(n=[n]),J(e,t,n))}finally{ls(1)}}function Xs(){}function Zs(e,t,n,r){let i=n[r];if(i&&Qs(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function Qs(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(O(n[e],t[e]))return!1;return cs>0&&os&&os.push(e),!0}var $s=`3.5.42`,ec=a,tc=Ln,nc=ir,rc=or,ic={createComponentInstance:Ds,setupComponent:Is,renderComponentRoot:oo,setCurrentRenderingInstance:lr,isVNode:ds,normalizeVNode:bs,getComponentPublicInstance:Ks,ensureValidVNode:pa,pushWarningContext:Nn,popWarningContext:Pn},ac=void 0,oc=typeof window<`u`&&window.trustedTypes;if(oc)try{ac=oc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var sc=ac?e=>ac.createHTML(e):e=>e,cc=`http://www.w3.org/2000/svg`,lc=`http://www.w3.org/1998/Math/MathML`,uc=typeof document<`u`?document:null,dc=uc&&uc.createElement(`template`),fc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?uc.createElementNS(cc,e):t===`mathml`?uc.createElementNS(lc,e):n?uc.createElement(e,{is:n}):uc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>uc.createTextNode(e),createComment:e=>uc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>uc.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{dc.innerHTML=sc(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=dc.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},pc=`transition`,mc=`animation`,hc=Symbol(`_vtc`),gc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},_c=l({},Gr,gc),vc=(e=>(e.displayName=`Transition`,e.props=_c,e))((e,{slots:t})=>Ys(Yr,xc(e),t)),yc=(e,t=[])=>{p(e)?e.forEach(e=>e(...t)):e&&e(...t)},bc=e=>e?p(e)?e.some(e=>e.length>1):e.length>1:!1;function xc(e){let t={};for(let n in e)n in gc||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:u=o,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=Sc(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:ee=b}=t,T=(e,t,n,r)=>{e._enterCancelled=r,Tc(e,t?d:s),Tc(e,t?u:o),n&&n()},E=(e,t)=>{e._isLeaving=!1,Tc(e,f),Tc(e,m),Tc(e,p),t&&t()},te=e=>(t,n)=>{let i=e?w:y,o=()=>T(t,e,n);yc(i,[t,o]),Ec(()=>{Tc(t,e?c:a),wc(t,e?d:s),bc(i)||Oc(t,r,g,o)})};return l(t,{onBeforeEnter(e){yc(v,[e]),wc(e,a),wc(e,o)},onBeforeAppear(e){yc(C,[e]),wc(e,c),wc(e,u)},onEnter:te(!1),onAppear:te(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>E(e,t);wc(e,f),e._enterCancelled?(wc(e,p),Mc(e)):(Mc(e),wc(e,p)),Ec(()=>{e._isLeaving&&(Tc(e,f),wc(e,m),bc(x)||Oc(e,r,_,n))}),yc(x,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),yc(b,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),yc(ee,[e])},onLeaveCancelled(e){E(e),yc(S,[e])}})}function Sc(e){if(e==null)return null;if(x(e))return[Cc(e.enter),Cc(e.leave)];{let t=Cc(e);return[t,t]}}function Cc(e){return de(e)}function wc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[hc]||(e[hc]=new Set)).add(t)}function Tc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[hc];n&&(n.delete(t),n.size||(e[hc]=void 0))}function Ec(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Dc=0;function Oc(e,t,n,r){let i=e._endId=++Dc,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=kc(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function kc(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${pc}Delay`),a=r(`${pc}Duration`),o=Ac(i,a),s=r(`${mc}Delay`),c=r(`${mc}Duration`),l=Ac(s,c),u=null,d=0,f=0;t===pc?o>0&&(u=pc,d=o,f=a.length):t===mc?l>0&&(u=mc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?pc:mc:null,f=u?u===pc?a.length:c.length:0);let p=u===pc&&/\b(?:transform|all)(?:,|$)/.test(r(`${pc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Ac(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>jc(t)+jc(e[n])))}function jc(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Mc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Nc(e,t,n){let r=e[hc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Pc=Symbol(`_vod`),Fc=Symbol(`_vsh`),Ic={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Pc]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Lc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Lc(e,!0),r.enter(e)):r.leave(e,()=>{Lc(e,!1)}):Lc(e,t))},beforeUnmount(e,{value:t}){Lc(e,t)}};function Lc(e,t){e.style.display=t?e[Pc]:`none`,e[Fc]=!t}function Rc(){Ic.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var zc=Symbol(``);function Bc(e){let t=ks();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>Hc(e,n))},r=()=>{let r=e(t.proxy);t.ce?Hc(t.ce,r):Vc(t.subTree,r),n(r)};Yi(()=>{$n(r)}),Ji(()=>{Cr(r,a,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Qi(()=>e.disconnect())})}function Vc(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Vc(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Hc(e.el,t);else if(e.type===H)e.children.forEach(e=>Vc(e,t));else if(e.type===is){let{el:n,anchor:r}=e;for(;n&&(Hc(n,t),n!==r);)n=n.nextSibling}}function Hc(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Ae(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[zc]=r}}var Uc=/(?:^|;)\s*display\s*:/;function Wc(e,t,n){let r=e.style,i=y(n),a=!1;if(n&&!i){if(t){if(y(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Kc(r,t,``)}else for(let e in t)n[e]??Kc(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Kc(r,i,``):Xc(e,i,!y(t)&&t?t[i]:void 0,o)||Kc(r,i,o)}}else if(i){if(t!==n){let e=r[zc];e&&(n+=`;`+e),r.cssText=n,a=Uc.test(n)}}else t&&e.removeAttribute(`style`);Pc in e&&(e[Pc]=a?r.display:``,e[Fc]&&(r.display=`none`))}var Gc=/\s*!important$/;function Kc(e,t,n){if(p(n))n.forEach(n=>Kc(e,t,n));else if(n??=``,t.startsWith(`--`))Gc.test(n)?e.setProperty(t,n.replace(Gc,``),`important`):e.setProperty(t,n);else{let r=Yc(e,t);Gc.test(n)?e.setProperty(ae(r),n.replace(Gc,``),`important`):e[r]=n}}var qc=[`Webkit`,`Moz`,`ms`],Jc={};function Yc(e,t){let n=Jc[t];if(n)return n;let r=D(t);if(r!==`filter`&&r in e)return Jc[t]=r;r=oe(r);for(let n=0;n<qc.length;n++){let i=qc[n]+r;if(i in e)return Jc[t]=i}return t}function Xc(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&y(r)&&n===r}var Zc=`http://www.w3.org/1999/xlink`;function Qc(e,t,n,r,i,a=xe(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Zc,t.slice(6,t.length)):e.setAttributeNS(Zc,t,n):n==null||a&&!Se(n)?e.removeAttribute(t):e.setAttribute(t,a?``:b(n)?String(n):n)}function $c(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?sc(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=Se(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function el(e,t,n,r){e.addEventListener(t,n,r)}function tl(e,t,n,r){e.removeEventListener(t,n,r)}var nl=Symbol(`_vei`);function rl(e,t,n,r,i=null){let a=e[nl]||(e[nl]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=ol(t);r?el(e,n,a[t]=ul(r,i),s):o&&(tl(e,n,o,s),a[t]=void 0)}}var il=/(Once|Passive|Capture)$/,al=/^on:?(?:Once|Passive|Capture)$/;function ol(e){let t,n;for(;(n=e.match(il))&&!al.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):ae(e.slice(2)),t]}var sl=0,cl=Promise.resolve(),ll=()=>sl||=(cl.then(()=>sl=0),Date.now());function ul(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(p(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&zn(e,t,5,a)}}else zn(r,t,5,[e])};return n.value=e,n.attached=ll(),n}var dl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,fl=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Nc(e,r,o):t===`style`?Wc(e,n,r):s(t)?c(t)||rl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):pl(e,t,r,o))?($c(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Qc(e,t,r,o,a,t!==`value`)):e._isVueCE&&(ml(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(r)))?$c(e,D(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Qc(e,t,r,o))};function pl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&dl(t)&&v(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return dl(t)&&y(n)?!1:t in e}function ml(e,t){let n=e._def.props;if(!n)return!1;let r=D(t);return Array.isArray(n)?n.some(e=>D(e)===r):Object.keys(n).some(e=>D(e)===r)}var hl={};function gl(e,t,n){let r=z(e,t);T(r)&&(r=l({},r,t));class i extends yl{constructor(e){super(r,e,n)}}return i.def=r,i}var _l=((e,t)=>gl(e,t,du)),vl=typeof HTMLElement<`u`?HTMLElement:class{},yl=class e extends vl{constructor(e,t={},n=uu){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==uu?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(l({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Yn(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!p(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=de(this._props[e])),(i||=Object.create(null))[D(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)f(this,e)||Object.defineProperty(this,e,{get:()=>L(t[e])})}_resolveProps(e){let{props:t}=e,n=p(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(D))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):hl,r=D(e);t&&this._numberProps&&this._numberProps[r]&&(n=de(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===hl?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(ae(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(ae(e),t+``):t||this.removeAttribute(ae(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),cu(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=J(this._def,l(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,T(t[0])?l({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),ae(e)!==e&&t(ae(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}};function bl(e){let t=ks();return t&&t.ce||null}function xl(){let e=bl();return e&&e.shadowRoot}function Sl(e=`$style`){{let t=ks();if(!t)return r;let n=t.type.__cssModules;return n&&n[e]||r}}var Cl=new WeakMap,wl=new WeakMap,Tl=Symbol(`_moveCb`),El=Symbol(`_enterCb`),Dl=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:l({},_c,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=ks(),r=Ur(),i,a;return Xi(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Ml(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(Ol),i.forEach(kl);let r=i.filter(Al);Mc(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;wc(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Tl]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Tl]=null,Tc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=P(e),s=xc(o),c=o.tag||H;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&!t.el[Fc]&&(i.push(t),ei(t,Zr(t,s,r,n)),Cl.set(t,jl(t.el)))}a=t.default?ti(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&ei(t,Zr(t,s,r,n))}return J(c,null,a)}}});function Ol(e){let t=e.el;t[Tl]&&t[Tl](),t[El]&&t[El]()}function kl(e){wl.set(e,jl(e.el))}function Al(e){let t=Cl.get(e),n=wl.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function jl(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Ml(e,t,n){let r=e.cloneNode(),i=e[hc];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=kc(r);return a.removeChild(r),o}var Nl=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return p(t)?e=>ce(t,e):t};function Pl(e){e.target.composing=!0}function Fl(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Il=Symbol(`_assign`),Ll=Symbol(`_initialValue`);function Rl(e,t,n){return t&&(e=e.trim()),n&&(e=ue(e)),e}var zl={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[Ll]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[Ll]=e.defaultValue.replace(/\r\n?/g,`
|
|
4
|
-
`))),e[Il]=Nl(i);let a=r||i.props&&i.props.type===`number`;el(e,t?`change`:`input`,t=>{t.target.composing||e[Il](Rl(e.value,n,a))}),(n||a)&&el(e,`change`,()=>{e.value=Rl(e.value,n,a)}),t||(el(e,`compositionstart`,Pl),el(e,`compositionend`,Fl),el(e,`change`,Fl))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[Ll];delete e[Ll],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[Il](Rl(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Il]=Nl(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?ue(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Bl={deep:!0,created(e,t,n){e[Il]=Nl(n),el(e,`change`,()=>{let t=e._modelValue,n=Kl(e),r=e.checked,i=e[Il];if(p(t)){let e=Ee(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(h(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(ql(e,r))})},mounted:Vl,beforeUpdate(e,t,n){e[Il]=Nl(n),Vl(e,t,n)}};function Vl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(p(t))i=Ee(t,r.props.value)>-1;else if(h(t))i=t.has(r.props.value);else{if(t===n)return;i=Te(t,ql(e,!0))}e.checked!==i&&(e.checked=i)}var Hl={created(e,{value:t},n){e.checked=Te(t,n.props.value),e[Il]=Nl(n),el(e,`change`,()=>{e[Il](Kl(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Il]=Nl(r),t!==n&&(e.checked=Te(t,r.props.value))}},Ul={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,el(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?ue(Kl(e)):Kl(e)),r=e.multiple,i=r?h(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?p(i)?t.slice():t:i];try{e[Il](i)}finally{Yn(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[Il]=Nl(r)},mounted(e,{value:t}){Gl(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Il]=Nl(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Wl(t,n[1],n[0]))&&Gl(e,t)}};function Wl(e,t,n){if(!n||p(e))return Te(e,t);if(h(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function Gl(e,t){let n=e.multiple,r=p(t);if(!(n&&!r&&!h(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Kl(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):Ee(t,o)>-1}else a.selected=t.has(o)}else if(Te(Kl(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Kl(e){return`_value`in e?e._value:e.value}function ql(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Jl={created(e,t,n){Xl(e,t,n,null,`created`)},mounted(e,t,n){Xl(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Xl(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Xl(e,t,n,r,`updated`)}};function Yl(e,t){switch(e){case`SELECT`:return Ul;case`TEXTAREA`:return zl;default:switch(t){case`checkbox`:return Bl;case`radio`:return Hl;default:return zl}}}function Xl(e,t,n,r,i){let a=Yl(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Zl(){zl.getSSRProps=({value:e})=>({value:e}),Hl.getSSRProps=({value:e},t)=>{if(t.props&&Te(t.props.value,e))return{checked:!0}},Bl.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&Ee(e,t.props.value)>-1)return{checked:!0}}else if(h(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Jl.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=Yl(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var Ql=[`ctrl`,`shift`,`alt`,`meta`],$l={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Ql.some(n=>e[`${n}Key`]&&!t.includes(n))},eu=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=$l[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},tu={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},nu=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=ae(n.key);if(t.some(e=>e===r||tu[e]===r))return e(n)}))},ru=l({patchProp:fl},fc),iu,au=!1;function ou(){return iu||=No(ru)}function su(){return iu=au?iu:Po(ru),au=!0,iu}var cu=((...e)=>{ou().render(...e)}),lu=((...e)=>{su().hydrate(...e)}),uu=((...e)=>{let t=ou().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=pu(e);if(!r)return;let i=t._component;!v(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,fu(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),du=((...e)=>{let t=su().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=pu(e);if(t)return n(t,!0,fu(t))},t});function fu(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function pu(e){return y(e)?document.querySelector(e):e}var mu=!1,hu=()=>{mu||(mu=!0,Zl(),Rc())},gu=t({BaseTransition:()=>Yr,BaseTransitionPropsValidators:()=>Gr,Comment:()=>U,DeprecationTypes:()=>null,EffectScope:()=>je,ErrorCodes:()=>In,ErrorTypeStrings:()=>tc,Fragment:()=>H,KeepAlive:()=>Li,ReactiveEffect:()=>Ie,Static:()=>is,Suspense:()=>Ko,Teleport:()=>Rr,Text:()=>rs,TrackOpTypes:()=>Cn,Transition:()=>vc,TransitionGroup:()=>Dl,TriggerOpTypes:()=>wn,VueElement:()=>yl,assertNumber:()=>Fn,callWithAsyncErrorHandling:()=>zn,callWithErrorHandling:()=>Rn,camelize:()=>D,capitalize:()=>oe,cloneVNode:()=>vs,compatUtils:()=>null,compile:()=>_u,computed:()=>Z,createApp:()=>uu,createBlock:()=>K,createCommentVNode:()=>X,createElementBlock:()=>G,createElementVNode:()=>q,createHydrationRenderer:()=>Po,createPropsRestProxy:()=>Na,createRenderer:()=>No,createSSRApp:()=>du,createSlots:()=>fa,createStaticVNode:()=>ys,createTextVNode:()=>Y,createVNode:()=>J,customRef:()=>hn,defineAsyncComponent:()=>Pi,defineComponent:()=>z,defineCustomElement:()=>gl,defineEmits:()=>xa,defineExpose:()=>Sa,defineModel:()=>Ta,defineOptions:()=>Ca,defineProps:()=>ba,defineSSRCustomElement:()=>_l,defineSlots:()=>wa,devtools:()=>nc,effect:()=>Ye,effectScope:()=>Me,getCurrentInstance:()=>ks,getCurrentScope:()=>Ne,getCurrentWatcher:()=>On,getTransitionRawChildren:()=>ti,guardReactiveProps:()=>_s,h:()=>Ys,handleError:()=>Bn,hasInjectionContext:()=>_r,hydrate:()=>lu,hydrateOnIdle:()=>Di,hydrateOnInteraction:()=>ji,hydrateOnMediaQuery:()=>Ai,hydrateOnVisible:()=>ki,initCustomFormatter:()=>Xs,initDirectivesForSSR:()=>hu,inject:()=>gr,isMemoSame:()=>Qs,isProxy:()=>nn,isReactive:()=>$t,isReadonly:()=>en,isRef:()=>F,isRuntimeOnly:()=>Hs,isShallow:()=>tn,isVNode:()=>ds,markRaw:()=>rn,mergeDefaults:()=>ja,mergeModels:()=>Ma,mergeProps:()=>Cs,nextTick:()=>Yn,nodeOps:()=>fc,normalizeClass:()=>A,normalizeProps:()=>ye,normalizeStyle:()=>k,onActivated:()=>zi,onBeforeMount:()=>qi,onBeforeUnmount:()=>Zi,onBeforeUpdate:()=>Yi,onDeactivated:()=>Bi,onErrorCaptured:()=>na,onMounted:()=>Ji,onRenderTracked:()=>ta,onRenderTriggered:()=>ea,onScopeDispose:()=>Pe,onServerPrefetch:()=>$i,onUnmounted:()=>Qi,onUpdated:()=>Xi,onWatcherCleanup:()=>kn,openBlock:()=>W,patchProp:()=>fl,popScopeId:()=>dr,provide:()=>hr,proxyRefs:()=>pn,pushScopeId:()=>ur,queuePostFlushCb:()=>$n,reactive:()=>Jt,readonly:()=>Xt,ref:()=>I,registerRuntimeCompiler:()=>Vs,render:()=>cu,renderList:()=>da,renderSlot:()=>B,resolveComponent:()=>aa,resolveDirective:()=>ca,resolveDynamicComponent:()=>sa,resolveFilter:()=>null,resolveTransitionHooks:()=>Zr,setBlockTracking:()=>ls,setDevtoolsHook:()=>rc,setTransitionHooks:()=>ei,shallowReactive:()=>Yt,shallowReadonly:()=>Zt,shallowRef:()=>sn,ssrContextKey:()=>vr,ssrUtils:()=>ic,stop:()=>Xe,toDisplayString:()=>j,toHandlerKey:()=>se,toHandlers:()=>ma,toRaw:()=>P,toRef:()=>yn,toRefs:()=>gn,toValue:()=>dn,transformVNodeArgs:()=>ps,triggerRef:()=>un,unref:()=>L,useAttrs:()=>Oa,useCssModule:()=>Sl,useCssVars:()=>Bc,useHost:()=>bl,useId:()=>ni,useModel:()=>eo,useSSRContext:()=>yr,useShadowRoot:()=>xl,useSlots:()=>Da,useTemplateRef:()=>ii,useTransitionState:()=>Ur,vModelCheckbox:()=>Bl,vModelDynamic:()=>Jl,vModelRadio:()=>Hl,vModelSelect:()=>Ul,vModelText:()=>zl,vShow:()=>Ic,version:()=>$s,warn:()=>ec,watch:()=>Cr,watchEffect:()=>br,watchPostEffect:()=>xr,watchSyncEffect:()=>Sr,withAsyncContext:()=>Pa,withCtx:()=>R,withDefaults:()=>Ea,withDirectives:()=>pr,withKeys:()=>nu,withMemo:()=>Zs,withModifiers:()=>eu,withScopeId:()=>fr}),_u=()=>{},vu=[`top`,`right`,`bottom`,`left`],yu=[`start`,`end`],bu=vu.reduce((e,t)=>e.concat(t,t+`-`+yu[0],t+`-`+yu[1]),[]),xu=Math.min,Su=Math.max,Cu={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function wu(e,t,n){return Su(e,xu(t,n))}function Tu(e,t){return typeof e==`function`?e(t):e}function Eu(e){return e.split(`-`)[0]}function Du(e){return e.split(`-`)[1]}function Ou(e){return e===`x`?`y`:`x`}function ku(e){return e===`y`?`height`:`width`}function Au(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ju(e){return Ou(Au(e))}function Mu(e,t,n){n===void 0&&(n=!1);let r=Du(e),i=ju(e),a=ku(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Vu(o)),[o,Vu(o)]}function Nu(e){let t=Vu(e);return[Pu(e),t,Pu(t)]}function Pu(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Fu=[`left`,`right`],Iu=[`right`,`left`],Lu=[`top`,`bottom`],Ru=[`bottom`,`top`];function zu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Iu:Fu:t?Fu:Iu;case`left`:case`right`:return t?Lu:Ru;default:return[]}}function Bu(e,t,n,r){let i=Du(e),a=zu(Eu(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Pu)))),a}function Vu(e){let t=Eu(e);return Cu[t]+e.slice(t.length)}function Hu(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Uu(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Hu(e)}function Wu(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Gu(e,t,n){let{reference:r,floating:i}=e,a=Au(t),o=ju(t),s=ku(o),c=Eu(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Du(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Ku(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Tu(t,e),p=Uu(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Wu(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Wu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var qu=50,Ju=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Ku},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Gu(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<qu&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Gu(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Yu=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Tu(e,t)||{};if(l==null)return{};let d=Uu(u),f={x:n,y:r},p=ju(i),m=ku(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,ee=C/2-h[m]/2-1,T=xu(d[_],ee),E=xu(d[v],ee),te=C-h[m]-E,ne=C/2-h[m]/2+w,re=wu(T,ne,te),D=!c.arrow&&Du(i)!=null&&ne!==re&&a.reference[m]/2-(ne<T?T:E)-h[m]/2<0,ie=D?ne<T?ne-T:ne-te:0;return{[p]:f[p]+ie,data:{[p]:re,centerOffset:ne-re-ie,...D&&{alignmentOffset:ie}},reset:D}}});function Xu(e,t,n){return(e?[...n.filter(t=>Du(t)===e),...n.filter(t=>Du(t)!==e)]:n.filter(e=>Eu(e)===e)).filter(n=>!e||Du(n)===e||(t?Pu(n)!==n:!1))}var Zu=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=bu,autoAlignment:u=!0,...d}=Tu(e,t),f=c!==void 0||l===bu?Xu(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=Mu(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[Eu(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=Du(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,Du(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},Qu=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Tu(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Eu(r),_=Au(o),v=Eu(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Vu(o)]:Nu(o)),x=p!==`none`;!d&&x&&b.push(...Bu(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],ee=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Mu(r,a,y);w.push(C[e[0]],C[e[1]])}if(ee=[...ee,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Au(t)||ee.every(e=>Au(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:ee},reset:{placement:t}};let n=ee.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=ee.filter(e=>{if(x){let t=Au(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},$u=new Set([`left`,`top`]);async function ed(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Eu(n),s=Du(n),c=Au(n)===`y`,l=$u.has(o)?-1:1,u=a&&c?-1:1,d=Tu(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var td=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ed(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},nd=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Tu(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Au(i),p=Ou(f),m=u[p],h=u[f],g=(e,t)=>wu(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},rd=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Tu(e,t),c=await i.detectOverflow(t,s),l=Eu(n),u=Du(n),d=Au(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=xu(p-c[m],g),y=xu(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Su(c.left,c.right):S=p-2*Su(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function id(e){return e.ownerDocument?.defaultView||window}function ad(e){return id(e).getComputedStyle(e)}var od=Math.min,sd=Math.max,cd=Math.round;function ld(e){let t=ad(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,a=e.offsetHeight,o=cd(n)!==i||cd(r)!==a;return o&&(n=i,r=a),{width:n,height:r,fallback:o}}function ud(e){return hd(e)?(e.nodeName||``).toLowerCase():``}var dd;function fd(){if(dd)return dd;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(dd=e.brands.map((e=>e.brand+`/`+e.version)).join(` `),dd):navigator.userAgent}function pd(e){return e instanceof id(e).HTMLElement}function md(e){return e instanceof id(e).Element}function hd(e){return e instanceof id(e).Node}function gd(e){return typeof ShadowRoot>`u`?!1:e instanceof id(e).ShadowRoot||e instanceof ShadowRoot}function _d(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ad(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function vd(e){return[`table`,`td`,`th`].includes(ud(e))}function yd(e){let t=/firefox/i.test(fd()),n=ad(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!==`none`||n.perspective!==`none`||!!r&&r!==`none`||t&&n.willChange===`filter`||t&&!!n.filter&&n.filter!==`none`||[`transform`,`perspective`].some((e=>n.willChange.includes(e)))||[`paint`,`layout`,`strict`,`content`].some((e=>{let t=n.contain;return t!=null&&t.includes(e)}))}function bd(){return!/^((?!chrome|android).)*safari/i.test(fd())}function xd(e){return[`html`,`body`,`#document`].includes(ud(e))}function Sd(e){return md(e)?e:e.contextElement}var Cd={x:1,y:1};function wd(e){let t=Sd(e);if(!pd(t))return Cd;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=ld(t),o=(a?cd(n.width):n.width)/r,s=(a?cd(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function Td(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Sd(e),o=Cd;t&&(r?md(r)&&(o=wd(r)):o=wd(e));let s=a?id(a):window,c=!bd()&&n,l=(i.left+(c&&s.visualViewport?.offsetLeft||0))/o.x,u=(i.top+(c&&s.visualViewport?.offsetTop||0))/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=id(a),t=r&&md(r)?id(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=wd(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=t.x,u+=t.y,n=id(n).frameElement}}return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function Ed(e){return((hd(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dd(e){return md(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Od(e){return Td(Ed(e)).left+Dd(e).scrollLeft}function kd(e){if(ud(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||gd(e)&&e.host||Ed(e);return gd(t)?t.host:t}function Ad(e){let t=kd(e);return xd(t)?t.ownerDocument.body:pd(t)&&_d(t)?t:Ad(t)}function jd(e,t){t===void 0&&(t=[]);let n=Ad(e),r=n===e.ownerDocument?.body,i=id(n);return r?t.concat(i,i.visualViewport||[],_d(n)?n:[]):t.concat(n,jd(n))}function Md(e,t,n){return t===`viewport`?Wu(function(e,t){let n=id(e),r=Ed(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=bd();(e||!e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}(e,n)):md(t)?Wu(function(e,t){let n=Td(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=pd(e)?wd(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n)):Wu(function(e){let t=Ed(e),n=Dd(e),r=e.ownerDocument.body,i=sd(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=sd(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Od(e),s=-n.scrollTop;return ad(r).direction===`rtl`&&(o+=sd(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(Ed(e)))}function Nd(e){return pd(e)&&ad(e).position!==`fixed`?e.offsetParent:null}function Pd(e){let t=id(e),n=Nd(e);for(;n&&vd(n)&&ad(n).position===`static`;)n=Nd(n);return n&&(ud(n)===`html`||ud(n)===`body`&&ad(n).position===`static`&&!yd(n))?t:n||function(e){let t=kd(e);for(;pd(t)&&!xd(t);){if(yd(t))return t;t=kd(t)}return null}(e)||t}function Fd(e,t,n){let r=pd(t),i=Ed(t),a=Td(e,!0,n===`fixed`,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!==`fixed`){if((ud(t)!==`body`||_d(i))&&(o=Dd(t)),pd(t)){let e=Td(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Od(i))}return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}var Id={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?function(e,t){let n=t.get(e);if(n)return n;let r=jd(e).filter((e=>md(e)&&ud(e)!==`body`)),i=null,a=ad(e).position===`fixed`,o=a?kd(e):e;for(;md(o)&&!xd(o);){let e=ad(o),t=yd(o);(a?t||i:t||e.position!==`static`||!i||![`absolute`,`fixed`].includes(i.position))?i=e:r=r.filter((e=>e!==o)),o=kd(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce(((e,n)=>{let r=Md(t,n,i);return e.top=sd(r.top,e.top),e.right=od(r.right,e.right),e.bottom=od(r.bottom,e.bottom),e.left=sd(r.left,e.left),e}),Md(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=pd(n),a=Ed(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((i||!i&&r!==`fixed`)&&((ud(n)!==`body`||_d(a))&&(o=Dd(n)),pd(n))){let e=Td(n);s=wd(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+c.x,y:t.y*s.y-o.scrollTop*s.y+c.y}},isElement:md,getDimensions:function(e){return pd(e)?ld(e):e.getBoundingClientRect()},getOffsetParent:Pd,getDocumentElement:Ed,getScale:wd,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||Pd,a=this.getDimensions;return{reference:Fd(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ad(e).direction===`rtl`},Ld=(e,t,n)=>{let r=new Map,i={platform:Id,...n},a={...i.platform,_c:r};return Ju(e,t,{...i,platform:a})},Rd={disabled:!1,distance:5,skidding:0,container:`body`,boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:`absolute`,preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:`top`,triggers:[`hover`,`focus`,`touch`],hideTriggers:e=>[...e,`click`],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:`...`},dropdown:{placement:`bottom`,triggers:[`click`],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:`dropdown`,triggers:[`hover`,`focus`],popperTriggers:[`hover`],delay:{show:0,hide:400}}}};function zd(e,t){let n=Rd.themes[e]||{},r;do r=n[t],typeof r>`u`?n.$extend?n=Rd.themes[n.$extend]||{}:(n=null,r=Rd[t]):n=null;while(n);return r}function Bd(e){let t=[e],n=Rd.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Rd.themes[n.$extend]||{}):n=null;while(n);return t.map(e=>`v-popper--theme-${e}`)}function Vd(e){let t=[e],n=Rd.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Rd.themes[n.$extend]||{}):n=null;while(n);return t}var Hd=!1;if(typeof window<`u`){Hd=!1;try{let e=Object.defineProperty({},"passive",{get(){Hd=!0}});window.addEventListener(`test`,null,e)}catch{}}var Ud=!1;typeof window<`u`&&typeof navigator<`u`&&(Ud=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var Wd=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Gd={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},Kd={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function qd(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Jd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var Yd=[],Xd=null,Zd={};function Qd(e){let t=Zd[e];return t||=Zd[e]=[],t}var $d=function(){};typeof window<`u`&&($d=window.Element);function Q(e){return function(t){return zd(t.theme,e)}}var ef=`__floating-vue__popper`,tf=()=>z({name:`VPopper`,provide(){return{[ef]:{parentPopper:this}}},inject:{[ef]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Q(`disabled`)},positioningDisabled:{type:Boolean,default:Q(`positioningDisabled`)},placement:{type:String,default:Q(`placement`),validator:e=>Wd.includes(e)},delay:{type:[String,Number,Object],default:Q(`delay`)},distance:{type:[Number,String],default:Q(`distance`)},skidding:{type:[Number,String],default:Q(`skidding`)},triggers:{type:Array,default:Q(`triggers`)},showTriggers:{type:[Array,Function],default:Q(`showTriggers`)},hideTriggers:{type:[Array,Function],default:Q(`hideTriggers`)},popperTriggers:{type:Array,default:Q(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:Q(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:Q(`popperHideTriggers`)},container:{type:[String,Object,$d,Boolean],default:Q(`container`)},boundary:{type:[String,$d],default:Q(`boundary`)},strategy:{type:String,validator:e=>[`absolute`,`fixed`].includes(e),default:Q(`strategy`)},autoHide:{type:[Boolean,Function],default:Q(`autoHide`)},handleResize:{type:Boolean,default:Q(`handleResize`)},instantMove:{type:Boolean,default:Q(`instantMove`)},eagerMount:{type:Boolean,default:Q(`eagerMount`)},popperClass:{type:[String,Array,Object],default:Q(`popperClass`)},computeTransformOrigin:{type:Boolean,default:Q(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:Q(`autoMinSize`)},autoSize:{type:[Boolean,String],default:Q(`autoSize`)},autoMaxSize:{type:Boolean,default:Q(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:Q(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:Q(`preventOverflow`)},overflowPadding:{type:[Number,String],default:Q(`overflowPadding`)},arrowPadding:{type:[Number,String],default:Q(`arrowPadding`)},arrowOverflow:{type:Boolean,default:Q(`arrowOverflow`)},flip:{type:Boolean,default:Q(`flip`)},shift:{type:Boolean,default:Q(`shift`)},shiftCrossAxis:{type:Boolean,default:Q(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:Q(`noAutoFocus`)},disposeTimeout:{type:Number,default:Q(`disposeTimeout`)}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:``,strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join(`_`)}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId==null?this.randomId:this.ariaId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide==`function`?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){return this[ef]?.parentPopper},hasPopperShowTriggerHover(){return this.popperTriggers?.includes(`hover`)||this.popperShowTriggers?.includes(`hover`)}},watch:{shown:`$_autoShowHide`,disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:`$_refreshListeners`,deep:!0},positioningDisabled:`$_refreshListeners`,...[`placement`,`distance`,`skidding`,`boundary`,`strategy`,`overflowPadding`,`arrowPadding`,`preventOverflow`,`shift`,`shiftCrossAxis`,`flip`].reduce((e,t)=>(e[t]=`$_computePosition`,e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit(`show`),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit(`update:shown`,!0))},hide({event:e=null,skipDelay:t=!1}={}){if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)}},init(){this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(td({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e.middleware.push(Zu({alignment:this.placement.split(`-`)[1]??``})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(nd({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Qu({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Yu({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:`arrowOverflow`,fn:({placement:e,rects:t,middlewareData:n})=>{let r,{centerOffset:i}=n.arrow;return r=e.startsWith(`top`)||e.startsWith(`bottom`)?Math.abs(i)>t.reference.width/2:Math.abs(i)>t.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){let t=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e.middleware.push({name:`autoSize`,fn:({rects:e,placement:n,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let a,o;return n.startsWith(`top`)||n.startsWith(`bottom`)?a=e.reference.width:o=e.reference.height,this.$_innerNode.style[t===`min`?`minWidth`:t===`max`?`maxWidth`:`width`]=a==null?null:`${a}px`,this.$_innerNode.style[t===`min`?`minHeight`:t===`max`?`maxHeight`:`height`]=o==null?null:`${o}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(rd({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=e==null?null:`${e}px`,this.$_innerNode.style.maxHeight=t==null?null:`${t}px`}})));let n=await Ld(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Xd&&this.instantMove&&Xd.instantMove&&Xd!==this.parentPopper){Xd.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay(`show`))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Xd=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`))},$_computeDelay(e){let t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Jd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...jd(this.$_referenceNode),...jd(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(`.v-popper__wrapper`),n=t.parentNode.getBoundingClientRect(),r=e.x+e.width/2-(n.left+t.offsetLeft),i=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e=this.showGroup;if(e){let t;for(let n=0;n<Yd.length;n++)t=Yd[n],t.showGroup!==e&&(t.hide(),t.$emit(`close-group`))}Yd.push(this),document.body.classList.add(`v-popper--some-open`);for(let e of Vd(this.theme))Qd(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit(`apply-show`),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Jd(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,qd(Yd,this),Yd.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let e of Vd(this.theme)){let t=Qd(e);qd(t,this),t.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}Xd===this&&(Xd=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);let t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners(`scroll`),this.$emit(`apply-hide`),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Jd(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e==`string`?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw Error(`No container for popover: `+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,Gd,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Gd,this.popperTriggers,this.popperShowTriggers,e);let t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,Kd,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Kd,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(e=>e.addEventListener(t,n,Hd?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,i){let a=n;r!=null&&(a=typeof r==`function`?r(a):r),a.forEach(n=>{let r=t[n];r&&this.$_registerEventListeners(e,r,i)})},$_removeEventListeners(e){let t=[];this.$_events.forEach(n=>{let{targetNodes:r,eventType:i,handler:a}=n;!e||e===i?r.forEach(e=>e.removeEventListener(i,a)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit(`close-directive`):this.$emit(`auto-hide`),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(let n of this.$_targetNodes){let r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(let t of this.$_targetNodes)for(let n in e){let r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){let e=this.$_referenceNode.getBoundingClientRect();if(df>=e.left&&df<=e.right&&ff>=e.top&&ff<=e.bottom){let e=this.$_popperNode.getBoundingClientRect(),t=df-lf,n=ff-uf,r=e.left+e.width/2-lf+(e.top+e.height/2)-uf+e.width+e.height,i=lf+t*r,a=uf+n*r;return pf(lf,uf,i,a,e.left,e.top,e.left,e.bottom)||pf(lf,uf,i,a,e.left,e.top,e.right,e.top)||pf(lf,uf,i,a,e.right,e.top,e.right,e.bottom)||pf(lf,uf,i,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(Ud){let e=!Hd||{passive:!0,capture:!0};document.addEventListener(`touchstart`,e=>nf(e,!0),e),document.addEventListener(`touchend`,e=>rf(e,!0),e)}else window.addEventListener(`mousedown`,e=>nf(e,!1),!0),window.addEventListener(`click`,e=>rf(e,!1),!0);window.addEventListener(`resize`,cf)}function nf(e,t){if(Rd.autoHideOnMousedown)af(e,t);else for(let t=0;t<Yd.length;t++){let n=Yd[t];try{n.mouseDownContains=n.popperNode().contains(e.target)}catch{}}}function rf(e,t){Rd.autoHideOnMousedown||af(e,t)}function af(e,t){let n={};for(let r=Yd.length-1;r>=0;r--){let i=Yd[r];try{let r=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&of(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let e=i.parentPopper;for(;e;)n[e.randomId]=!0,e=e.parentPopper;return}let a=i.parentPopper;for(;a&&of(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function of(e,t,n){return n.closeAllPopover||n.closePopover&&t||sf(e,n)&&!t}function sf(e,t){if(typeof e.autoHide==`function`){let n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function cf(){for(let e=0;e<Yd.length;e++)Yd[e].$_computePosition()}var lf=0,uf=0,df=0,ff=0;typeof window<`u`&&window.addEventListener(`mousemove`,e=>{lf=df,uf=ff,df=e.clientX,ff=e.clientY},Hd?{passive:!0}:void 0);function pf(e,t,n,r,i,a,o,s){let c=((o-i)*(t-a)-(s-a)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t)),l=((n-e)*(t-a)-(r-t)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t));return c>=0&&c<=1&&l>=0&&l<=1}var mf={extends:tf()},hf=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function gf(e,t,n,r,i,a){return W(),G(`div`,{ref:`reference`,class:A([`v-popper`,{"v-popper--shown":e.slotData.isShown}])},[B(e.$slots,`default`,ye(_s(e.slotData)))],2)}var _f=hf(mf,[[`render`,gf]]);function vf(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var yf;function bf(){bf.init||(bf.init=!0,yf=vf()!==-1)}var xf={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){bf(),Yn(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,yf&&this.$el.appendChild(e),e.data=`about:blank`,yf||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!yf&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},Sf=fr(`data-v-b329ee4c`);ur(`data-v-b329ee4c`);var Cf={class:`resize-observer`,tabindex:`-1`};dr(),xf.render=Sf((e,t,n,r,i,a)=>(W(),K(`div`,Cf))),xf.__scopeId=`data-v-b329ee4c`,xf.__file=`src/components/ResizeObserver.vue`;var wf=(e=`theme`)=>({computed:{themeClass(){return Bd(this[e])}}}),Tf=z({name:`VPopperContent`,components:{ResizeObserver:xf},mixins:[wf()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:[`hide`,`resize`],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Ef=[`id`,`aria-hidden`,`tabindex`,`data-popper-placement`],Df={ref:`inner`,class:`v-popper__inner`},Of=[q(`div`,{class:`v-popper__arrow-outer`},null,-1),q(`div`,{class:`v-popper__arrow-inner`},null,-1)];function kf(e,t,n,r,i,a){let o=aa(`ResizeObserver`);return W(),G(`div`,{id:e.popperId,ref:`popover`,class:A([`v-popper__popper`,[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:k(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?`false`:`true`,tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||=nu(t=>e.autoHide&&e.$emit(`hide`),[`esc`])},[q(`div`,{class:`v-popper__backdrop`,onClick:t[0]||=t=>e.autoHide&&e.$emit(`hide`)}),q(`div`,{class:`v-popper__wrapper`,style:k(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[q(`div`,Df,[e.mounted?(W(),G(H,{key:0},[q(`div`,null,[B(e.$slots,`default`)]),e.handleResize?(W(),K(o,{key:0,onNotify:t[1]||=t=>e.$emit(`resize`,t)})):X(``,!0)],64)):X(``,!0)],512),q(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:k(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Of,4)],4)],46,Ef)}var Af=hf(Tf,[[`render`,kf]]),jf={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},Mf=function(){};typeof window<`u`&&(Mf=window.Element);var Nf=z({name:`VPopperWrapper`,components:{Popper:_f,PopperContent:Af},mixins:[jf,wf(`finalTheme`)],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Mf,Boolean],default:void 0},boundary:{type:[String,Mf],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Pf(e,t,n,r,i,a){let o=aa(`PopperContent`),s=aa(`Popper`);return W(),K(s,Cs({ref:`popper`},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||=()=>e.$emit(`show`),onHide:t[1]||=()=>e.$emit(`hide`),"onUpdate:shown":t[2]||=t=>e.$emit(`update:shown`,t),onApplyShow:t[3]||=()=>e.$emit(`apply-show`),onApplyHide:t[4]||=()=>e.$emit(`apply-hide`),onCloseGroup:t[5]||=()=>e.$emit(`close-group`),onCloseDirective:t[6]||=()=>e.$emit(`close-directive`),onAutoHide:t[7]||=()=>e.$emit(`auto-hide`),onResize:t[8]||=()=>e.$emit(`resize`)}),{default:R(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,show:s,hide:c,handleResize:l,onResize:u,classes:d,result:f})=>[B(e.$slots,`default`,{shown:n,show:s,hide:c}),J(o,{ref:`popperContent`,"popper-id":t,theme:e.finalTheme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":l,classes:d,result:f,onHide:c,onResize:u},{default:R(()=>[B(e.$slots,`popper`,{shown:n,hide:c})]),_:2},1032,[`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:3},16,[`theme`,`target-nodes`,`popper-node`,`class`])}var Ff=hf(Nf,[[`render`,Pf]]);({...Ff}),{...Ff},{...Ff};var If=z({name:`VTooltipDirective`,components:{Popper:tf(),PopperContent:Af},mixins:[jf],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e=>zd(e.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>zd(e.theme,`loadingContent`)},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content==`function`},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content==`function`&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;let e=++this.$_fetchId,t=this.content(this);t.then?t.then(t=>this.onResult(e,t)):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Lf=[`innerHTML`],Rf=[`textContent`];function zf(e,t,n,r,i,a){let o=aa(`PopperContent`),s=aa(`Popper`);return W(),K(s,Cs({ref:`popper`},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:R(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,hide:s,handleResize:c,onResize:l,classes:u,result:d})=>[J(o,{ref:`popperContent`,class:A({"v-popper--tooltip-loading":e.loading}),"popper-id":t,theme:e.theme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":c,classes:u,result:d,onHide:s,onResize:l},{default:R(()=>[e.html?(W(),G(`div`,{key:0,innerHTML:e.finalContent},null,8,Lf)):(W(),G(`div`,{key:1,textContent:j(e.finalContent)},null,8,Rf))]),_:2},1032,[`class`,`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:1},16,[`theme`,`target-nodes`,`popper-node`,`onApplyShow`,`onApplyHide`])}var Bf=hf(If,[[`render`,zf]]),Vf=`v-popper--has-tooltip`;function Hf(e,t){let n=e.placement;if(!n&&t)for(let e of Wd)t[e]&&(n=e);return n||=zd(e.theme||`tooltip`,`placement`),n}function Uf(e,t,n){let r,i=typeof t;return r=i===`string`?{content:t}:t&&i===`object`?t:{content:!1},r.placement=Hf(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}var Wf,Gf,Kf=0;function qf(){if(Wf)return;Gf=I([]),Wf=uu({name:`VTooltipDirectiveApp`,setup(){return{directives:Gf}},render(){return this.directives.map(e=>Ys(Bf,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});let e=document.createElement(`div`);document.body.appendChild(e),Wf.mount(e)}function Jf(e,t,n){qf();let r=I(Uf(e,t,n)),i=I(!1),a={id:Kf++,options:r,shown:i};return Gf.value.push(a),e.classList&&e.classList.add(Vf),e.$_popper={options:r,item:a,show(){i.value=!0},hide(){i.value=!1}}}function Yf(e){if(e.$_popper){let t=Gf.value.indexOf(e.$_popper.item);t!==-1&&Gf.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Vf)}function Xf(e,{value:t,modifiers:n}){let r=Uf(e,t,n);if(!r.content||zd(r.theme||`tooltip`,`disabled`))Yf(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=Jf(e,t,n),typeof t.shown<`u`&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var Zf={beforeMount:Xf,updated:Xf,beforeUnmount(e){Yf(e)}},Qf=z({__name:`ActionIconButton`,props:{as:{},to:{},href:{},icon:{},tooltip:{},active:{type:Boolean},disabled:{type:Boolean},label:{},compact:{type:Boolean},activeClass:{}},setup(e){let t=e,n=Z(()=>t.as?t.as:t.href!=null||t.to!=null?`a`:`button`),r=Z(()=>n.value===`a`),i=Z(()=>n.value===`button`),a=Z(()=>t.compact?`btn-icon-compact`:`btn-icon`),o=Z(()=>t.compact?`w-auto! h-auto! p-[0.25em]`:`w-auto! h-auto! p-[0.5em]`),s=Z(()=>t.active?t.activeClass||`color-active bg-active op100`:``);return(t,c)=>pr((W(),K(sa(n.value),{type:i.value?`button`:void 0,class:A([a.value,o.value,s.value,{"pointer-events-none op-mute":e.disabled&&!i.value}]),href:r.value?e.href??e.to:void 0,to:e.as&&e.to!=null?e.to:void 0,disabled:i.value?e.disabled:void 0,"aria-disabled":e.disabled&&!i.value||void 0,"aria-label":e.label??e.tooltip,"aria-pressed":e.active||void 0},{default:R(()=>[e.icon?(W(),G(`span`,{key:0,class:A(e.icon),"aria-hidden":`true`},null,2)):X(``,!0),B(t.$slots,`default`),B(t.$slots,`badge`)]),_:3},8,[`type`,`class`,`href`,`to`,`disabled`,`aria-disabled`,`aria-label`,`aria-pressed`])),[[L(Zf),e.tooltip]])}});function $f(e){return typeof e==`string`?`'${e}'`:new rp().serialize(e)}var ep=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,tp=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[ep.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function np(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&&tp[n]?tp[n]:n+128,s=a<128&&tp[a]?tp[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 rp=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?np(e,t):n===`number`&&r===`number`?e-t:np(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(np),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})(),ip=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],ap=[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],op=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,sp=[],cp=class{_data=new lp;_hash=new lp([...ip]);_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)sp[n]=e[t+n]|0;else{let e=sp[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=sp[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;sp[n]=t+sp[n-7]+i+sp[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+ap[n]+sp[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=lp.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 lp(t,i)}},lp=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(op.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 up(e){return new cp().finalize(e).toBase64()}function dp(e){return up($f(e))}function fp(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=gr(r,t);if(n||n===null)return n;throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`)},e=>(hr(r,e),e)]}function pp(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function mp(e,t){return Ne()?(Pe(e,t),!0):!1}var hp=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var gp=e=>e!==void 0,_p=hp?window:void 0;hp&&window.document,hp&&window.navigator,hp&&window.location;function vp(e){let t=dn(e);return t?.$el??t}function yp(){let e=sn(!1),t=ks();return t&&Ji(()=>{e.value=!0},t),e}function bp(e){let t=yp();return Z(()=>(t.value,!!e()))}function xp(e){return JSON.parse(JSON.stringify(e))}function Sp(e,t,n={}){let{window:r=_p,...i}=n,a,o=bp(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=Cr(Z(()=>{let t=dn(e);return Array.isArray(t)?t.map(e=>vp(e)):[vp(t)]}),e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),l=()=>{s(),c()};return mp(l),{isSupported:o,stop:l}}function Cp(e,t,n,r={}){var i,a;let{clone:o=!1,passive:s=!1,eventName:c,deep:l=!1,defaultValue:u,shouldEmit:d}=r,f=ks(),p=n||f?.emit||(f==null||(i=f.$emit)==null?void 0:i.bind(f))||(f==null||(a=f.proxy)==null||(a=a.$emit)==null?void 0:a.bind(f?.proxy)),m=c;t||=`modelValue`,m||=`update:${t.toString()}`;let h=e=>o?typeof o==`function`?o(e):xp(e):e,g=()=>gp(e[t])?h(e[t]):u,_=e=>{d?d(e)&&p(m,e):p(m,e)};if(s){let n=I(g()),r=!1;return Cr(()=>e[t],e=>{r||(r=!0,n.value=h(e),Yn(()=>r=!1))}),Cr(n,n=>{!r&&(n!==e[t]||l)&&_(n)},{deep:l}),n}return Z({get(){return g()},set(e){_(e)}})}function wp(e){return e?e.flatMap(e=>e.type===H?wp(e.children):[e]):[]}var[Tp,Ep]=fp(`ConfigProvider`);function Dp(e){let t=Tp({dir:I(`ltr`)});return Z(()=>e?.value||t.dir?.value||`ltr`)}function Op(){let e=ks(),t=I(),n=Z(()=>r());Xi(()=>{n.value!==r()&&un(t)});function r(){return t.value&&`$el`in t.value&&[`#text`,`#comment`].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:vp(t)}let i=Object.assign({},e.exposed),a={};for(let t in e.props)Object.defineProperty(a,t,{enumerable:!0,configurable:!0,get:()=>e.props[t]});if(Object.keys(i).length>0)for(let e in i)Object.defineProperty(a,e,{enumerable:!0,configurable:!0,get:()=>i[e]});Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=a;function o(n){if(t.value=n,n&&(Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>n instanceof Element?n:n.$el}),!(n instanceof Element)&&!Object.hasOwn(n,`$el`))){let t=n.$.exposed,r=Object.assign({},a);for(let e in t)Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>t[e]});e.exposed=r}}return{forwardRef:o,currentRef:t,currentElement:n}}var kp=0;function Ap(e,t=`reka`){if(e)return e;let n,r=Tp({useId:void 0});return n=r.useId?r.useId():`useId`in gu?ni?.():`${++kp}`,t?`${t}-${n}`:n}function jp(e,t){let n=I(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function Mp(e,t){let n=I({}),r=I(`none`),i=I(e),a=e.value?`mounted`:`unmounted`,o,s=t.value?.ownerDocument.defaultView??_p,{state:c,dispatch:l}=jp(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),u=e=>{if(hp){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};Cr(e,async(e,i)=>{let a=i!==e;if(await Yn(),a){let a=r.value,o=Np(t.value);e?(l(`MOUNT`),u(`enter`),o===`none`&&u(`after-enter`)):o===`none`||o===`undefined`||n.value?.display===`none`?(l(`UNMOUNT`),u(`leave`),u(`after-leave`)):i&&a!==o?(l(`ANIMATION_OUT`),u(`leave`)):(l(`UNMOUNT`),u(`after-leave`))}},{immediate:!0});let d=e=>{if(e.target!==t.value)return;let n=Np(t.value),r=n.includes(CSS.escape(e.animationName)),a=c.value===`mounted`?`enter`:`leave`;if(r&&(u(`after-${a}`),l(`ANIMATION_END`),!i.value)){let e=t.value.style.animationFillMode;t.value.style.animationFillMode=`forwards`,o=s?.setTimeout(()=>{t.value?.style.animationFillMode===`forwards`&&(t.value.style.animationFillMode=e)})}n===`none`&&l(`ANIMATION_END`)},f=e=>{e.target===t.value&&(r.value=Np(t.value))},p=Cr(t,(e,t)=>{e?(n.value=getComputedStyle(e),e.addEventListener(`animationstart`,f),e.addEventListener(`animationcancel`,d),e.addEventListener(`animationend`,d)):(l(`ANIMATION_END`),o!==void 0&&s?.clearTimeout(o),t?.removeEventListener(`animationstart`,f),t?.removeEventListener(`animationcancel`,d),t?.removeEventListener(`animationend`,d))},{immediate:!0}),m=Cr(c,()=>{let e=Np(t.value);r.value=c.value===`mounted`?e:`none`});return Qi(()=>{p(),m(),t.value&&(t.value.removeEventListener(`animationstart`,f),t.value.removeEventListener(`animationcancel`,d),t.value.removeEventListener(`animationend`,d)),o!==void 0&&s?.clearTimeout(o)}),{isPresent:Z(()=>[`mounted`,`unmountSuspended`].includes(c.value))}}function Np(e){return e&&getComputedStyle(e).animationName||`none`}var Pp=z({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){let{present:r,forceMount:i}=gn(e),a=I(),{isPresent:o}=Mp(r,a);n({present:o});let s=t.default({present:o.value});s=wp(s||[]);let c=ks();if(s&&s?.length>1){let e=c?.parent?.type.name?`<${c.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` for \`Presence\` component.`,``,"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",`You can apply a few solutions:`,["Provide a single child element so that `presence` directive attach correctly.",`Ensure the first child is an actual element instead of a raw text node or comment node.`].map(e=>` - ${e}`).join(`
|
|
5
|
-
`)].join(`
|
|
6
|
-
`))}return()=>i.value||r.value||o.value?Ys(t.default({present:o.value})[0],{ref:e=>{let t=vp(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?a.value=t.firstElementChild:a.value=t),t}}):null}}),Fp=z({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=wp(n.default()),r=e.findIndex(e=>e.type!==U);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?Cs(t,i.props):t,o=vs({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),Ip=[`area`,`img`,`input`],Lp=z({name:`Primitive`,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:`div`}},setup(e,{attrs:t,slots:n}){let r=e.asChild?`template`:e.as;return typeof r==`string`&&Ip.includes(r)?()=>Ys(r,t):r===`template`?()=>Ys(Fp,t,{default:n.default}):()=>Ys(e.as,t,{default:n.default})}});function Rp(){let e=I();return{primitiveElement:e,currentElement:Z(()=>[`#text`,`#comment`].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:vp(e))}}var zp=`data-reka-collection-item`;function Bp(e={}){let{key:t=``,isProvider:n=!1}=e,r=`${t}CollectionProvider`,i;n?(i={collectionRef:I(),itemMap:I(new Map)},hr(r,i)):i=gr(r);let a=(e=!1)=>{let t=i.collectionRef.value;if(!t)return[];let n=Array.from(t.querySelectorAll(`[${zp}]`)),r=new Map(n.map((e,t)=>[e,t])),a=Array.from(i.itemMap.value.values()).sort((e,t)=>(r.get(e.ref)??-1)-(r.get(t.ref)??-1));return e?a:a.filter(e=>e.ref.dataset.disabled!==``)},o=z({name:`CollectionSlot`,inheritAttrs:!1,setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=Rp();return Cr(a,()=>{i.collectionRef.value=a.value}),()=>Ys(Fp,{ref:r,...n},t)}}),s=z({name:`CollectionItem`,inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=Rp();return br(t=>{if(a.value){let n=rn(a.value);i.itemMap.value.set(n,{ref:a.value,value:e.value}),t(()=>i.itemMap.value.delete(n))}}),()=>Ys(Fp,{...n,[zp]:``,ref:r},t)}});return{getItems:a,reactiveItems:Z(()=>Array.from(i.itemMap.value.values())),itemMapSize:Z(()=>i.itemMap.value.size),CollectionSlot:o,CollectionItem:s}}var Vp=`rovingFocusGroup.onEntryFocus`,Hp={bubbles:!1,cancelable:!0},Up={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Wp(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Gp(e,t,n){let r=Wp(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Up[r]}function Kp(e,t=!1){let n=pp();for(let r of e)if(r===n||(r.focus({preventScroll:t}),pp()!==n))return}function qp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var[Jp,Yp]=fp(`RovingFocusGroup`),Xp=z({__name:`RovingFocusGroup`,props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`entryFocus`,`update:currentTabStopId`],setup(e,{expose:t,emit:n}){let r=e,i=n,{loop:a,orientation:o,dir:s}=gn(r),c=Dp(s),l=Cp(r,`currentTabStopId`,i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=I(!1),d=I(!1),f=I(0),{getItems:p,CollectionSlot:m}=Bp({isProvider:!0});function h(e){let t=!d.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!u.value){let t=new CustomEvent(Vp,Hp);if(e.currentTarget.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){let e=p().map(e=>e.ref).filter(e=>e.dataset.disabled!==``);Kp([e.find(e=>e.getAttribute(`data-active`)===``),e.find(e=>e.getAttribute(`data-highlighted`)===``),e.find(e=>e.id===l.value),...e].filter(Boolean),r.preventScrollOnEntryFocus)}}d.value=!1}function g(){setTimeout(()=>{d.value=!1},1)}return t({getItems:p}),Yp({loop:a,dir:c,orientation:o,currentTabStopId:l,onItemFocus:e=>{l.value=e},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(e,t)=>(W(),K(L(m),null,{default:R(()=>[J(L(Lp),{tabindex:u.value||f.value===0?-1:0,"data-orientation":L(o),as:e.as,"as-child":e.asChild,dir:L(c),style:{outline:`none`},onMousedown:t[0]||=e=>d.value=!0,onMouseup:g,onFocus:h,onBlur:t[1]||=e=>u.value=!1},{default:R(()=>[B(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),Zp=z({__name:`RovingFocusItem`,props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e,n=Jp(),r=Ap(),i=Z(()=>t.tabStopId||r),a=Z(()=>n.currentTabStopId.value===i.value),{getItems:o,CollectionItem:s}=Bp();Ji(()=>{t.focusable&&n.onFocusableItemAdd()}),Qi(()=>{t.focusable&&n.onFocusableItemRemove()}),Cr(()=>t.focusable,(e,t)=>{e!==t&&(e?n.onFocusableItemAdd():n.onFocusableItemRemove())});function c(e){if(e.key===`Tab`&&e.shiftKey){n.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let r=Gp(e,n.orientation.value,n.dir.value);if(r!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||!t.allowShiftKey&&e.shiftKey)return;e.preventDefault();let i=[...o().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)];if(r===`last`)i.reverse();else if(r===`prev`||r===`next`){r===`prev`&&i.reverse();let t=i.indexOf(e.currentTarget);i=n.loop.value?qp(i,t+1):i.slice(t+1)}Yn(()=>Kp(i))}}return(e,t)=>(W(),K(L(s),null,{default:R(()=>[J(L(Lp),{tabindex:a.value?0:-1,"data-orientation":L(n).orientation.value,"data-active":e.active?``:void 0,"data-disabled":e.focusable?void 0:``,as:e.as,"as-child":e.asChild,onMousedown:t[0]||=t=>{e.focusable?L(n).onItemFocus(i.value):t.preventDefault()},onFocus:t[1]||=e=>L(n).onItemFocus(i.value),onKeydown:c},{default:R(()=>[B(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`data-active`,`data-disabled`,`as`,`as-child`])]),_:3}))}}),[Qp,$p]=fp(`TabsRoot`),em=z({__name:`TabsRoot`,props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:`horizontal`},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:`automatic`},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{orientation:i,unmountOnHide:a,dir:o}=gn(n),s=Dp(o);Op();let c=Cp(n,`modelValue`,r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),l=I(),u=sn(new Set);return $p({modelValue:c,changeModelValue:e=>{c.value=e},orientation:i,dir:s,unmountOnHide:a,activationMode:n.activationMode,baseId:Ap(void 0,`reka-tabs`),tabsList:l,contentIds:u,registerContent:e=>{u.value=new Set([...u.value,e])},unregisterContent:e=>{let t=new Set(u.value);t.delete(e),u.value=t}}),(e,t)=>(W(),K(L(Lp),{dir:L(s),"data-orientation":L(i),"as-child":e.asChild,as:e.as},{default:R(()=>[B(e.$slots,`default`,{modelValue:L(c)})]),_:3},8,[`dir`,`data-orientation`,`as-child`,`as`]))}});function tm(e,t){return`${e}-trigger-${t}`}function nm(e,t){return`${e}-content-${t}`}var rm=z({__name:`TabsContent`,props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n}=Op(),r=Qp(),i=Z(()=>tm(r.baseId,t.value)),a=Z(()=>nm(r.baseId,t.value)),o=Z(()=>t.value===r.modelValue.value),s=I(o.value);return Ji(()=>{r.registerContent(t.value),requestAnimationFrame(()=>{s.value=!1})}),Zi(()=>{r.unregisterContent(t.value)}),(e,t)=>(W(),K(L(Pp),{present:e.forceMount||o.value,"force-mount":``},{default:R(({present:t})=>[J(L(Lp),{id:a.value,ref:L(n),"as-child":e.asChild,as:e.as,role:`tabpanel`,"data-state":o.value?`active`:`inactive`,"data-orientation":L(r).orientation.value,"aria-labelledby":i.value,hidden:!t,tabindex:`0`,style:k({animationDuration:s.value?`0s`:void 0})},{default:R(()=>[!L(r).unmountOnHide.value||t?B(e.$slots,`default`,{key:0}):X(`v-if`,!0)]),_:2},1032,[`id`,`as-child`,`as`,`data-state`,`data-orientation`,`aria-labelledby`,`hidden`,`style`])]),_:3},8,[`present`]))}}),im=z({__name:`TabsIndicator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){let n=e,r=Qp();t({updateIndicatorStyle:s}),Op();let i=yp(),a=I({size:null,thickness:null,position:null}),o=I([]);Cr(()=>[r.modelValue.value,r?.dir.value],()=>{s()},{immediate:!0,flush:`post`}),xr(()=>{o.value=Array.from(r.tabsList.value?.querySelectorAll(`[role="tab"]`)||[])}),Sp(Z(()=>[r.tabsList.value,...o.value]),s);function s(){let e=r.tabsList.value?.querySelector(`[role="tab"][data-state="active"]`);e&&(r.orientation.value===`horizontal`?a.value={size:e.offsetWidth,thickness:e.offsetHeight,position:e.offsetLeft}:a.value={size:e.offsetHeight,thickness:e.offsetWidth,position:e.offsetTop})}return(e,t)=>L(i)&&typeof a.value.size==`number`?(W(),K(L(Lp),Cs({key:0},n,{style:{"--reka-tabs-indicator-size":`${a.value.size}px`,"--reka-tabs-indicator-thickness":`${a.value.thickness}px`,"--reka-tabs-indicator-position":`${a.value.position}px`}}),{default:R(()=>[B(e.$slots,`default`)]),_:3},16,[`style`])):X(`v-if`,!0)}}),am=z({__name:`TabsList`,props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{loop:t}=gn(e),{forwardRef:n,currentElement:r}=Op(),i=Qp();return i.tabsList=r,(e,r)=>(W(),K(L(Xp),{"as-child":``,orientation:L(i).orientation.value,dir:L(i).dir.value,loop:L(t)},{default:R(()=>[J(L(Lp),{ref:L(n),role:`tablist`,"as-child":e.asChild,as:e.as,"aria-orientation":L(i).orientation.value},{default:R(()=>[B(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`aria-orientation`])]),_:3},8,[`orientation`,`dir`,`loop`]))}}),om=z({__name:`TabsTrigger`,props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,{forwardRef:n}=Op(),r=Qp(),i=Z(()=>tm(r.baseId,t.value)),a=Z(()=>r.contentIds.value.has(t.value)?nm(r.baseId,t.value):void 0),o=Z(()=>t.value===r.modelValue.value);return(e,t)=>(W(),K(L(Zp),{"as-child":``,focusable:!e.disabled,active:o.value},{default:R(()=>[J(L(Lp),{id:i.value,ref:L(n),role:`tab`,type:e.as===`button`?`button`:void 0,as:e.as,"as-child":e.asChild,"aria-selected":o.value?`true`:`false`,"aria-controls":a.value,"data-state":o.value?`active`:`inactive`,disabled:e.disabled,"data-disabled":e.disabled?``:void 0,"data-orientation":L(r).orientation.value,onMousedown:t[0]||=eu(t=>{!e.disabled&&t.ctrlKey===!1?L(r).changeModelValue(e.value):t.preventDefault()},[`left`]),onKeydown:t[1]||=nu(t=>L(r).changeModelValue(e.value),[`enter`,`space`]),onFocus:t[2]||=()=>{let t=L(r).activationMode!==`manual`;!o.value&&!e.disabled&&t&&L(r).changeModelValue(e.value)}},{default:R(()=>[B(e.$slots,`default`)]),_:3},8,[`id`,`type`,`as`,`as-child`,`aria-selected`,`aria-controls`,`data-state`,`disabled`,`data-disabled`,`data-orientation`])]),_:3},8,[`focusable`,`active`]))}}),sm={key:1,class:`text-micro font-mono px-1.5 rounded-full bg-active inline-flex h-5 min-w-5 items-center justify-center tabular-nums`},cm=z({__name:`LayoutTabs`,props:Ma({tabs:{},variant:{default:`underline`},lazy:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=eo(e,`modelValue`);return(n,r)=>(W(),K(L(em),{modelValue:t.value,"onUpdate:modelValue":r[0]||=e=>t.value=e,class:A(e.variant===`segment`?``:`border-b border-base`)},{default:R(()=>[J(L(am),{class:A([`flex items-center relative`,e.variant===`segment`?`gap-1 p-1 rounded-lg bg-sunken w-max`:`gap-1`])},{default:R(()=>[(W(!0),G(H,null,da(e.tabs,t=>(W(),K(L(om),{key:t.value,value:t.value,as:t.href?`a`:`button`,href:t.href,disabled:t.disabled,class:A([`text-sm color-muted outline-none flex gap-1.5 transition items-center relative disabled:op50 focus-visible:ring-2 focus-visible:ring-primary-500/40`,e.variant===`segment`?`px-3 py-1 rounded-md data-[state=active]:bg-raised data-[state=active]:color-base data-[state=active]:shadow-sm`:`px-3 py-2 -mb-px border-b-2 border-transparent hover:color-base data-[state=active]:color-active data-[state=active]:border-primary-500 dark:data-[state=active]:border-primary-400`])},{default:R(()=>[t.icon?(W(),G(`span`,{key:0,class:A(t.icon),"aria-hidden":`true`},null,2)):X(``,!0),Y(` `+j(t.label??t.value)+` `,1),t.count==null?X(``,!0):(W(),G(`span`,sm,j(t.count),1))]),_:2},1032,[`value`,`as`,`href`,`disabled`,`class`]))),128)),e.variant===`underline`?(W(),K(L(im),{key:0,class:`rounded-full bg-primary-500 h-0.5 w-[--reka-tabs-indicator-size] translate-x-[--reka-tabs-indicator-position] transition-all duration-200 bottom-0 left-0 absolute`})):X(``,!0)]),_:1},8,[`class`]),B(n.$slots,`default`),(W(!0),G(H,null,da(e.tabs,t=>(W(),G(H,{key:`panel-${t.value}`},[n.$slots[t.value]?(W(),K(L(rm),{key:0,value:t.value,"force-mount":!e.lazy||void 0,class:`py-3 outline-none focus-visible:ring-2 focus-visible:ring-primary-500/40`},{default:R(()=>[B(n.$slots,t.value)]),_:2},1032,[`value`,`force-mount`])):X(``,!0)],64))),128))]),_:3},8,[`modelValue`,`class`]))}}),lm={key:0,class:`flex-1 min-w-0`},um={key:1,class:`flex gap-1 items-center`},dm=z({__name:`LayoutToolbar`,props:{sticky:{type:Boolean,default:!0},glass:{type:Boolean,default:!0}},setup(e){return(t,n)=>(W(),G(`div`,{class:A([`px-3 py-2 border-b border-base flex gap-3 items-center`,[e.sticky?`sticky top-0 z-nav`:``,e.glass?`bg-glass`:`bg-base`]])},[B(t.$slots,`start`,{},()=>[B(t.$slots,`default`)]),t.$slots.search?(W(),G(`div`,lm,[B(t.$slots,`search`)])):X(``,!0),t.$slots.end?(W(),G(`div`,um,[B(t.$slots,`end`)])):X(``,!0)],2))}});function fm(...e){return e.filter(Boolean).join(` `)}function pm({variant:e=`primary`,size:t=`md`,class:n}={}){let r={primary:`btn-primary`,secondary:`btn-action`,outline:`btn-action`,ghost:`inline-flex items-center justify-center gap-1.5 rounded px2 py1 op75 hover:op100 hover:bg-active transition disabled:pointer-events-none disabled:op30!`,destructive:`btn-action text-error border-error/30!`,link:`inline-flex items-center gap-1.5 color-active hover:underline underline-offset-2`},i=t===`sm`?e===`primary`?`text-sm px-2.5! py-1!`:`text-sm`:t===`lg`?`text-base px-4! py-2!`:``;return fm(r[e],i,n)}var mm={connecting:{label:`connecting…`,dot:`bg-neutral-400 animate-pulse`},disconnected:{label:`disconnected`,dot:`bg-error`},unauthorized:{label:`unauthorized`,dot:`bg-warning`},error:{label:`error`,dot:`bg-error`}};function hm(e,t){if(e===`connected`)return null;let n=mm[e];return{label:n.label,dot:fm(`inline-block size-1.5 rounded-full shrink-0`,n.dot),class:fm(`flex items-center gap-1.5 shrink-0 text-xs color-muted select-none`,t)}}var gm={connecting:{icon:`i-ph-plugs-connected-duotone`,title:`Connecting…`,body:`Establishing a connection to the devframe server.`,reloadable:!1,spin:!0},disconnected:{icon:`i-ph-plugs-duotone`,title:`Disconnected`,body:`Lost the connection to the devframe server. Reload once it is back up.`,reloadable:!0,spin:!1},unauthorized:{icon:`i-ph-lock-key-duotone`,title:`Not authorized`,body:`This client isn’t authorized. Reopen the link printed by your dev server, then reload.`,reloadable:!0,spin:!1},error:{icon:`i-ph-warning-octagon-duotone`,title:`Connection failed`,body:`Could not reach the devframe server.`,reloadable:!0,spin:!1}};function _m(e){return e===`connected`?null:gm[e]}function vm(e){return fm(`flex flex-col items-center justify-center gap-4 bg-base p-8 text-center`,e)}function ym(e=!1,t){return fm(`text-4xl color-active`,e&&`animate-pulse`,t)}function bm(e){return fm(`text-lg font-medium color-base`,e)}function xm(e){return fm(`max-w-sm text-sm color-muted`,e)}function Sm(e){return fm(`mt-1 max-w-sm break-words font-mono text-xs color-faint`,e)}var Cm=sn(null),wm=I(!1);function Tm(e){Cm.value=e,Pe(()=>{Cm.value===e&&(Cm.value=null)})}function Em(){async function e(){if(!(!Cm.value||wm.value)){wm.value=!0;try{await Cm.value()}finally{wm.value=!1}}}return{refresh:e,loading:wm}}var $={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`}},Dm=`__connection.json`,Om=`__DEVFRAME_CONNECTION__`,km=`x-birpc-session`,Am=`__rpc-dump/index.json`,jm=`devframe:services`,Mm=`devframe_otp`,Nm=`devframe_auth_token`;$.postMessage.remoteAssetsError;function Pm(e){return dp(e)}var Fm=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>Pm(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()}};function Im(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 Lm={blue:Im(34,39),cyan:Im(36,39),gray:Im(90,39),green:Im(32,39),red:Im(31,39),yellow:Im(33,39),bold:Im(1,22),dim:Im(2,22),reset:Im(0,0),underline:Im(4,24)};function Rm(e,...t){return typeof e==`function`?e(...t):e}var zm=Error.captureStackTrace,Bm=class e extends Error{name;code;docs;fix;sources;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,zm?.(this,n)}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause,stack:this.stack}}};function Vm(e,t){return typeof e==`string`?`${e}/${t.toLowerCase()}`:e?.(t)}function Hm(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||Vm(r,i),s=(e={},n={})=>{let r=new Bm({code:i,why:Rm(a.why,e),fix:Rm(a.fix,e),docs:o,cause:e.cause,sources:e.sources},s);for(let e of t)e(r,n);return r};n[i]=s}return n}function Um(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(`
|
|
7
|
-
`)}}var Wm=Um(Lm);function Gm(e,{method:t=`warn`}={}){console[t](Wm(e))}function Km(e){return Hm({...e,reporters:[Gm,...e.reporters??[]]})}var qm=Km({docsBase:`https://devfra.me/errors`,codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is not \`true\`; MCP requires JSON-serializable data.`,fix:"Set `jsonSerializable: true` if the payload is JSON-safe, 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."}}});async function Jm(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function Ym(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 Xm(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 Jm(i,n[r]);if(a.issues)throw qm.DF0043({name:e,index:r,issues:Ym(a.issues)})}return r}async function Zm(e,t,n){if(!t)return n;let r=await Jm(t,n);if(r.issues)throw qm.DF0044({name:e,issues:Ym(r.issues)});return n}async function Qm(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 $m(e,t){let n=e.handler;if(!n){let r=await Qm(e,t);if(!r.handler)throw qm.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 Xm(e.name,r,t),o=await a(...n);return await Zm(e.name,i,o)}}var eh=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 $m(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 qm.DF0021({name:e.name});th(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 qm.DF0022({name:e.name});th(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 $m(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw qm.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 th(e){if(e.agent&&e.jsonSerializable!==!0)throw qm.DF0019({name:e.name})}function nh(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 ih(t,`undefined`,r,e);return n}return i!==null&&rh(i,r,e,t),n})}function rh(e,t,n,r){if(typeof e==`bigint`)throw ih(r,`BigInt`,t,n);if(typeof e!=`object`)return;if(e instanceof Map)throw ih(r,`Map`,t,n);if(e instanceof Set)throw ih(r,`Set`,t,n);if(e instanceof Date)throw ih(r,`Date`,t,n);if(Array.isArray(e))return;let i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)throw ih(r,e.constructor?.name??`class instance`,t,n)}function ih(e,t,n,r){let i=ah(n,r);return qm.DF0020({name:e||`<anonymous>`,type:t,path:i})}function ah(e,t){return Array.isArray(e)?`[${t}]`:t===``?`<root>`:t}function oh(){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}}String.fromCharCode;var sh=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,ch=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,lh=/^([/\\]\s*){2,}[^/\\]/,uh=/\/$|\/\?|\/#/,dh=/^\.?\//;function fh(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?sh.test(e):ch.test(e)||(t.acceptRelative?lh.test(e):!1)}function ph(e=``,t){return t?uh.test(e):e.endsWith(`/`)}function mh(e=``,t){if(!t)return(ph(e)?e.slice(0,-1):e)||`/`;if(!ph(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function hh(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(ph(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function gh(e,t){if(_h(t)||fh(e))return e;let n=mh(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return yh(n,e)}function _h(e){return!e||e===`/`}function vh(e){return e&&e!==`/`}function yh(e,...t){let n=e||``;for(let e of t.filter(e=>vh(e)))if(n){let t=e.replace(dh,``);n=hh(n)+t}else n=e;return n}function bh(e,t){let n=e.match(ch);return n||=e.match(/^\/{2,}/),n?t+e.slice(n[0].length):t+e}var xh=`__DEVFRAME_CONNECTION_META__`,Sh=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function Ch(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 wh(){return Ch(Om)}function Th(){return Ch(xh)}function Eh(e){if(e)return e;try{let e=localStorage.getItem(Sh);if(e)return e}catch{}return Ch(Sh)}function Dh(e){globalThis[Om]=e,globalThis[xh]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&Oh(e.authToken)}function Oh(e){try{localStorage.setItem(Sh,e)}catch{}globalThis[Sh]=e;let t=wh();t&&(globalThis[Om]={...t,authToken:e})}function kh(e){let t=gh(Dm,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function Ah(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function jh(){let e=wh();if(e)return Ah(e,Eh()??e.authToken??e.connectionMeta.authToken);let t=Th();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??kh(`./`),authToken:Eh(t.authToken)}}async function Mh(e={}){if(e.connection){let t=Ah(e.connection,Eh(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return Dh(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:kh(t[0]??`./`),authToken:Eh(e.authToken??e.connectionMeta.authToken)};return Dh(n),n}let n=jh();if(n){let t=Ah(n,Eh(e.authToken??n.authToken??n.connectionMeta.authToken));return Dh(t),t}let r=[];for(let n of t){let t=gh(Dm,n),i=kh(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:Eh(e.authToken??r.authToken)};return Dh(o),o}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var Nh=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function Ph(e=Mm){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function Fh(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 Ih(e=Mm){let t=Ph(e);return t&&Fh(e),t}async function Lh(e,t={}){let n=Ih(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function Rh(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(jm,{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}}}var zh=Symbol.for(`immer-nothing`),Bh=Symbol.for(`immer-draftable`),Vh=Symbol.for(`immer-state`);function Hh(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Uh=Object,Wh=Uh.getPrototypeOf,Gh=`constructor`,Kh=`prototype`,qh=`configurable`,Jh=`enumerable`,Yh=`writable`,Xh=`value`,Zh=e=>!!e&&!!e[Vh];function Qh(e){return e?tg(e)||cg(e)||!!e[Bh]||!!e[Gh]?.[Bh]||lg(e)||ug(e):!1}var $h=Uh[Kh][Gh].toString(),eg=new WeakMap;function tg(e){if(!e||!dg(e))return!1;let t=Wh(e);if(t===null||t===Uh[Kh])return!0;let n=Uh.hasOwnProperty.call(t,Gh)&&t[Gh];if(n===Object)return!0;if(!fg(n))return!1;let r=eg.get(n);return r===void 0&&(r=Function.toString.call(n),eg.set(n,r)),r===$h}function ng(e,t,n=!0){rg(e)===0?(n?Reflect.ownKeys(e):Uh.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function rg(e){let t=e[Vh];return t?t.type_:cg(e)?1:lg(e)?2:ug(e)?3:0}var ig=(e,t,n=rg(e))=>n===2?e.has(t):Uh[Kh].hasOwnProperty.call(e,t),ag=(e,t,n=rg(e))=>n===2?e.get(t):e[t],og=(e,t,n,r=rg(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function sg(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var cg=Array.isArray,lg=e=>e instanceof Map,ug=e=>e instanceof Set,dg=e=>typeof e==`object`,fg=e=>typeof e==`function`,pg=e=>typeof e==`boolean`;function mg(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var hg=e=>dg(e)?e?.[Vh]:null,gg=e=>e.copy_||e.base_,_g=e=>e.modified_?e.copy_:e.base_;function vg(e,t){if(lg(e))return new Map(e);if(ug(e))return new Set(e);if(cg(e))return Array[Kh].slice.call(e);let n=tg(e);if(t===!0||t===`class_only`&&!n){let t=Uh.getOwnPropertyDescriptors(e);delete t[Vh];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Yh]===!1&&(a[Yh]=!0,a[qh]=!0),(a.get||a.set)&&(t[i]={[qh]:!0,[Yh]:!0,[Jh]:a[Jh],[Xh]:e[i]})}return Uh.create(Wh(e),t)}{let t=Wh(e);if(t!==null&&n)return{...e};let r=Uh.create(t);return Uh.assign(r,e)}}function yg(e,t=!1){return Sg(e)||Zh(e)||!Qh(e)?e:(rg(e)>1&&Uh.defineProperties(e,{set:xg,add:xg,clear:xg,delete:xg}),Uh.freeze(e),t&&ng(e,(e,t)=>{yg(t,!0)},!1),e)}function bg(){Hh(2)}var xg={[Xh]:bg};function Sg(e){return e===null||!dg(e)||Uh.isFrozen(e)}var Cg=`MapSet`,wg=`Patches`,Tg=`ArrayMethods`,Eg={};function Dg(e){let t=Eg[e];return t||Hh(0,e),t}var Og=e=>!!Eg[e];function kg(e,t){Eg[e]||(Eg[e]=t)}var Ag,jg=()=>Ag,Mg=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Og(Cg)?Dg(Cg):void 0,arrayMethodsPlugin_:Og(Tg)?Dg(Tg):void 0});function Ng(e,t){t&&(e.patchPlugin_=Dg(wg),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Pg(e){Fg(e),e.drafts_.forEach(Lg),e.drafts_=null}function Fg(e){e===Ag&&(Ag=e.parent_)}var Ig=e=>Ag=Mg(Ag,e);function Lg(e){let t=e[Vh];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Rg(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Vh].modified_&&(Pg(t),Hh(4)),Qh(e)&&(e=zg(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Vh].base_,e,t)}else e=zg(t,n);return Bg(t,e,!0),Pg(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===zh?void 0:e}function zg(e,t){if(Sg(t))return t;let n=t[Vh];if(!n)return Jg(t,e.handledSet_,e);if(!Hg(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);Kg(n,e)}return n.copy_}function Bg(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&yg(t,n)}function Vg(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Hg=(e,t)=>e.scope_===t,Ug=[];function Wg(e,t,n,r){let i=gg(e),a=e.type_;if(r!==void 0&&ag(i,r,a)===t){og(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;ng(i,(e,n)=>{if(Zh(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Ug;for(let e of o)og(i,e,n,a)}function Gg(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Hg(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=_g(i);Wg(e,i.draft_??i,a,n),Kg(i,r)})}function Kg(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)}Vg(e)}}function qg(e,t,n){let{scope_:r}=e;if(Zh(n)){let i=n[Vh];Hg(i,r)&&i.callbacks_.push(function(){r_(e),Wg(e,n,_g(i),t)})}else Qh(n)&&e.callbacks_.push(function(){let i=gg(e);e.type_===3?i.has(n)&&Jg(n,r.handledSet_,r):ag(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Jg(ag(e.copy_,t,e.type_),r.handledSet_,r)})}function Jg(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Zh(e)||t.has(e)||!Qh(e)||Sg(e)?e:(t.add(e),ng(e,(r,i)=>{if(Zh(i)){let t=i[Vh];Hg(t,n)&&(og(e,r,_g(t),e.type_),Vg(t))}else Qh(i)&&Jg(i,t,n)}),e)}function Yg(e,t){let n=cg(e),r={type_:+!!n,scope_:t?t.scope_:jg(),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=Xg;n&&(i=[r],a=Zg);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Xg={get(e,t){if(t===Vh)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=gg(e);if(!ig(i,t,e.type_))return e_(e,i,t);let a=i[t];if(e.finalized_||!Qh(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&mg(t))return a;if(a===Qg(e.base_,t)||$g(e,t,a)){r_(e);let n=e.type_===1?+t:t,r=a_(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in gg(e)},ownKeys(e){return Reflect.ownKeys(gg(e))},set(e,t,n){let r=t_(gg(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Qg(gg(e),t),i=r?.[Vh];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(sg(n,r)&&(n!==void 0||ig(e.base_,t,e.type_)))return!0;r_(e),n_(e)}return e.copy_[t]===n&&(n!==void 0||ig(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),qg(e,t,n),!0)},deleteProperty(e,t){return r_(e),Qg(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),n_(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=gg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Yh]:!0,[qh]:e.type_!==1||t!==`length`,[Jh]:r[Jh],[Xh]:n[t]}},defineProperty(){Hh(11)},getPrototypeOf(e){return Wh(e.base_)},setPrototypeOf(){Hh(12)}},Zg={};for(let e in Xg){let t=Xg[e];Zg[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Zg.deleteProperty=function(e,t){return Zg.set.call(this,e,t,void 0)},Zg.set=function(e,t,n){return Xg.set.call(this,e[0],t,n,e[0])};function Qg(e,t){let n=e[Vh];return(n?gg(n):e)[t]}function $g(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!Qh(n)||n[Vh]?!1:e.baseRefs_.has(n)}function e_(e,t,n){let r=t_(t,n);return r?Xh in r?r[Xh]:r.get?.call(e.draft_):void 0}function t_(e,t){if(!(t in e))return;let n=Wh(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Wh(n)}}function n_(e){e.modified_||(e.modified_=!0,e.parent_&&n_(e.parent_))}function r_(e){e.copy_||=(e.assigned_=new Map,vg(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var i_=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(fg(e)&&!fg(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}fg(t)||Hh(6),n!==void 0&&!fg(n)&&Hh(7);let r;if(Qh(e)){let i=Ig(this),a=a_(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Pg(i):Fg(i)}return Ng(i,n),Rg(r,i)}if(!e||!dg(e)){if(r=t(e),r===void 0&&(r=e),r===zh&&(r=void 0),this.autoFreeze_&&yg(r,!0),n){let t=[],i=[];Dg(wg).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}Hh(1,e)},this.produceWithPatches=(e,t)=>{if(fg(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]},pg(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),pg(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),pg(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Qh(e)||Hh(8),Zh(e)&&(e=o_(e));let t=Ig(this),n=a_(t,e,void 0);return n[Vh].isManual_=!0,Fg(t),n}finishDraft(e,t){let n=e&&e[Vh];(!n||!n.isManual_)&&Hh(9);let{scope_:r}=n;return Ng(r,t),Rg(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=Dg(wg).applyPatches_;return Zh(e)?r(e,t):this.produce(e,e=>r(e,t))}};function a_(e,t,n,r){let[i,a]=lg(t)?Dg(Cg).proxyMap_(t,n):ug(t)?Dg(Cg).proxySet_(t,n):Yg(t,n);return(n?.scope_??jg()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Gg(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 o_(e){return Zh(e)||Hh(10,e),s_(e)}function s_(e){if(!Qh(e)||Sg(e))return e;let t=e[Vh],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=vg(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=vg(e,!0);return ng(n,(e,t)=>{og(n,e,s_(t))},r),t&&(t.finalized_=!1),n}function c_(){function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=hg(ag(e,n.key_)),i=ag(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||ig(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=ag(n,r),!dg(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?.[Vh];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;ng(e.assigned_,(e,l)=>{let u=ag(o,e,c),f=ag(s,e,c),p=l?ig(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===zh?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=rg(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===Gh)&&Hh(19),fg(o)&&n===Kh&&Hh(19),o=ag(o,n),(o===null||!dg(o))&&Hh(18,i.join(`/`))}let s=rg(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:Hh(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:Hh(17,a)}}),e}function u(e){if(!Qh(e))return e;if(cg(e))return e.map(u);if(lg(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(ug(e))return new Set(Array.from(e).map(u));let t=Object.create(Wh(e));for(let n in e)t[n]=u(e[n]);return ig(e,Bh)&&(t[Bh]=e[Bh]),t}function d(e){return Zh(e)?u(e):e}kg(wg,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}globalThis.Iterator?.from;var l_=new i_,u_=l_.produce,d_=l_.produceWithPatches.bind(l_),f_=l_.applyPatches.bind(l_),p_=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function m_(e=21){let t=``,n=e;for(;n--;)t+=p_[Math.random()*64|0];return t}var h_=1e3;function g_(e,t){if(e.add(t),e.size>h_){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function __(e){let{enablePatches:t=!1}=e;t&&c_();let n=oh(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=m_())=>{i.has(t)||(c_(),r=f_(r,e),g_(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=m_())=>{if(!i.has(a)){if(g_(i,a),t){let[t,i]=d_(r,e);r=t,n.emit(`updated`,r,i,a)}else r=u_(r,e),n.emit(`updated`,r,void 0,a)}},syncIds:i}}function v_(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:$.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:$.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=__({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($.client.isTrustedUpdated,e=>{e&&!n&&(n=!0,d())})}})}}}var y_=typeof self==`object`?self:globalThis,b_=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),x_=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function S_(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=b_.has(e)?y_[e]:void 0;return n(new(r??y_.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`&&x_.has(a))return n(new y_[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function C_(e){return S_(new Map,e)(0)}var w_=``,{toString:T_}={},{keys:E_}=Object;function D_(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=T_.call(e).slice(8,-1);switch(n){case`Array`:return[1,w_];case`Object`:return[2,w_];case`Date`:return[3,w_];case`RegExp`:return[4,w_];case`Map`:return[5,w_];case`Set`:return[6,w_];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function O_([e,t]){return e===0&&(t===`function`||t===`symbol`)}function k_(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]=D_(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 E_(r))(e||!O_(D_(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||!(O_(D_(n))||O_(D_(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!O_(D_(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function A_(e,t={}){let n=[];return k_(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:j_,stringify:M_}=JSON,N_={json:!0,lossy:!0};function P_(e){return C_(j_(e))}function F_(e){return M_(A_(e,N_))}function I_(e){return C_(e)}function L_(e){return F_(e)}function R_(e){return P_(e)}var z_=new Map;function B_(e=z_){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?nh(n,r??``):`s:${L_(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?R_(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function V_(){}function H_(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 U_(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 W_(e){let{onConnected:t=V_,onError:n=V_,onDisconnected:r=V_,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${Nm}=${encodeURIComponent(e.authToken)}`);let s=B_(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=H_(r);if(!e)break;r=e.rest;let{event:t,data:n}=U_(e.frame);n.length>0&&_(t,n.join(`
|
|
8
|
-
`))}}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`,[km]: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 G_(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var K_=Math.random.bind(Math),q_=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function J_(e=21){let t=``,n=e;for(;n--;)t+=q_[K_()*64|0];return t}var Y_=6e4,X_=e=>e,Z_=X_,{clearTimeout:Q_,setTimeout:$_}=globalThis;function ev(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=X_,deserialize:s=Z_,resolver:c,bind:l=`rpc`,timeout:u=Y_,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}=G_(),_=J_();s.i=_;let v;async function y(n=s){return u>=0&&(v=$_(()=>{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{Q_(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&&(Q_(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function tv(e,t){let{channel:n,rpcOptions:r={}}=t;return ev(e,{...n,timeout:-1,...r,proxify:!1})}function nv(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($.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 Nh(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new Nh(`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($.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 Nh(`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($.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($.client.connectionError,e),m(new Nh(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new Nh(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),y=tv(a.functions,{channel:v,rpcOptions:o});a.register({name:$.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new Nh(`auth`,`[devframe] The devframe server revoked this client's trust`);f(`unauthorized`,e),i.emit($.client.connectionError,e),m(e),i.emit($.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 Nh(`auth`,`[devframe] The devframe server refused this client's credentials`);f(`unauthorized`,e),i.emit($.client.connectionError,e)}return i.emit($.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($.client.isTrustedUpdated,!0)),t}async function C(){return c?!0:x(b??``)}async function w(e=6e4){if(c&&d.resolve(!0),e<=0)return d.promise;let t=()=>{};return await Promise.race([d.promise.then(t),new Promise((n,r)=>{let i=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e);t=()=>clearTimeout(i)})]),c}return{transport:t,get isTrusted(){return c},get status(){return l},get connectionError(){return u},requestTrust:C,requestTrustWithToken:x,requestTrustWithCode:S,ensureTrusted:w,call:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit($.client.error,n,t),Promise.reject(n)):g(y.$call(...e),t)},callEvent:(...e)=>{let t=h();if(t){i.emit($.client.error,t,String(e[0]));return}return y.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit($.client.error,n,t),Promise.reject(n)):g(y.$callOptional(...e),t)},close:()=>{v.close()}}}function rv(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 iv(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=rv(n.sse,r??`./`,location);return nv({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>W_({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 av(e){let{name:t,message:n,cause:r,...i}=e,a=r instanceof Error?r:ov(r)?av(r):r,o=a===void 0?Error(n):Error(n,{cause:a});return o.name=t,Object.assign(o,i),o}function ov(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function sv(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function cv(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function lv(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function uv(e){if(e.error)throw av(e.error);return e.output}function dv(e){return e.some(e=>e!=null)}function fv(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function pv(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?I_(e):e}function a(e,t){return i(fv(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 lv(r)?uv(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(sv(r)){if(dv(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(cv(r)){let e=Pm(n),i=r.records[e];if(i)return uv(await s(i,r.serialization));if(r.fallback)return uv(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!dv(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 mv(e){let t=pv(await e.fetchJsonFromBases(Am),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,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 hv=256,gv=class extends Error{name=`StreamClosedError`};function _v(e={}){let t=e.id??m_(),n=Math.max(0,e.replayWindow??0),r=oh(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new gv(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&a.splice(0,a.length-n)),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=yv(e);i.abort(e),r.emit(`end`,t)}function u(){o||(o=!0,i.signal.aborted||i.abort(`stream closed`),r.emit(`end`,void 0))}function d(e){o||i.signal.aborted||i.abort(e??`aborted`)}let f=new WritableStream({write(e){c(e)},close(){u()},abort(e){l(e)}});return{id:t,signal:i.signal,get closed(){return o},get lastSeq(){return s},write:c,error:l,close:u,abort:d,writable:f,events:r,buffer:a}}function vv(e={}){let t=e.id??m_(),n=Math.max(1,e.highWaterMark??hv),r=[],i=0,a=!1,o=!1,s,c,l,u;function d(){if(c){if(r.length>0){let e=r.shift(),t=c;c=void 0,t.resolve({value:e,done:!1});return}if(a){let e=c;if(c=void 0,s){let t=Error(s.message);t.name=s.name,e.reject(t)}else e.resolve({value:void 0,done:!0})}}}function f(){if(l){for(;r.length>0;){let e=r.shift();try{l.enqueue(e)}catch{break}}if(a&&l){try{if(s){let e=Error(s.message);e.name=s.name,l.error(e)}else l.close()}catch{}l=void 0}}}function p(t,s){if(!(a||o)&&!(t<=i)){if(i=t,r.push(s),r.length>n){let t=r.length-n;r.splice(0,t),e.onOverflow?.(t)}d(),u&&f()}}function m(e){a||(a=!0,s=e,d(),u&&f())}function h(){o||a||(o=!0,e.onCancel?.(),m(void 0))}function g(){return u||(u=new ReadableStream({start(e){l=e,f()},cancel(){h()}}),u)}return{id:t,get cancelled(){return o},get done(){return a},get lastSeenSeq(){return i},get readable(){return g()},cancel:h,_push:p,_end:m,[Symbol.asyncIterator](){return{next(){if(r.length>0)return Promise.resolve({value:r.shift(),done:!1});if(a){if(s){let e=Error(s.message);return e.name=s.name,Promise.reject(e)}return Promise.resolve({value:void 0,done:!0})}return new Promise((e,t)=>{c={resolve:e,reject:t}})},return(){return h(),Promise.resolve({value:void 0,done:!0})}}}}}function yv(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 bv=``;function xv(e,t){return`${e}${bv}${t}`}function Sv(e){let t=new Map,n=new Map;e.client.register({name:$.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(xv(e,n))?._push(r,i)}}),e.client.register({name:$.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=xv(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:$.broadcast.streamingUploadCancel,type:`event`,handler(e,t){let r=xv(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on($.client.isTrustedUpdated,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(bv);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=xv(n,r),o=t.get(a);if(o)return o;let s=vv({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($.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=xv(t,r),a=n.get(i);if(a)return a;let o=_v({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 Cv(){}var wv=new Map;function Tv(e){let t=e.url;e.authToken&&(t=`${t}?${Nm}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=Cv,onError:i=Cv,onDisconnected:a=Cv,definitions:o=wv}=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=B_(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 Ev(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 bh(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function Dv(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=Ev(n.websocket,r??`./`,location);return nv({transport:`websocket`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Tv({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 Ov(e){return e.includes(`:`)}function kv(e,t){return Ov(t)?t:`${e}:${t}`}function Av(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 jv(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=e.sharedState.get(r,{initialValue:{}}),i}return Av(a)}function Mv(e,t){return{global:jv(e,t,`global`),project:jv(e,t,`project`)}}function Nv(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(Ov(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(kv(t,n),...r)),callEvent:((n,...r)=>e.callEvent(kv(t,n),...r)),callOptional:((n,...r)=>e.callOptional(kv(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(kv(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(kv(t,n),r,i),upload:(n,r)=>e.streaming.upload(kv(t,n),r)}},settings:Mv(e,t),scope:e.scope}}function Pv(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 Fv(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=oh(),a=Array.isArray(t)?t:[t],o=await Mh(e),{connectionMeta:s,metaBaseUrl:c,authToken:l}=o,u=a[0]??`./`;try{u=new URL(`.`,c).href}catch{}let d=new Fm({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),f={rpc:void 0},p=new eh(f);async function m(e){let t=[u,...a.filter(e=>e!==u)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(gh(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 h={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)}}},g=Pv(e.transport??`auto`,s),_=g===`static`?await mv({fetchJsonFromBases:m}):g===`sse`?iv({...h,sseOptions:e.sseOptions}):Dv({...h,wsOptions:e.wsOptions}),v;try{v=new BroadcastChannel(`devframe-auth`)}catch{}let y,b=!1;function x(e){return((...t)=>b||!y?e(...t):y.then(()=>e(...t)))}let S={events:i,get isTrusted(){return _.isTrusted},get status(){return _.status},get connectionError(){return _.connectionError},get transport(){return _.transport??g},get connection(){return o},connectionMeta:s,ensureTrusted:_.ensureTrusted,requestTrust:_.requestTrust,requestTrustWithToken:async e=>(Oh(e),o={...o,authToken:e},_.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await _.requestTrustWithCode(e);if(!t)return!1;Oh(t),o={...o,authToken:t};try{v?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},call:x(_.call),callEvent:x(_.callEvent),callOptional:x(_.callOptional),client:p,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:d,scope:void 0,close:()=>_.close?.()};S.sharedState=v_(S),S.streaming=Sv(S),S.services=Rh(S);let C=new Map;S.scope=(e=>{if(!e)return S;let t=C.get(e);return t||(t=Nv(S,e),C.set(e,t)),t}),f.rpc=S;function w(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function ee(){if(!(e.simpleAuth===!1||!w())&&typeof globalThis.prompt==`function`)for(;!S.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 S.requestTrustWithCode(t))return}}async function T(){let t=await _.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await Lh(S,{param:n}):!1;t||r||S.isTrusted||await ee()}return y=T().then(()=>{b=!0},()=>{b=!0}),v&&(v.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&S.requestTrustWithToken(e.data.authToken)}),S}var Iv=Fv,Lv=I([]),Rv=I(!0),zv=1;function Bv(e){Rv.value&&Lv.value.push({...e,id:zv++})}function Vv(){Lv.value=[]}var Hv=Jt({connected:!1,status:`connecting`,error:null,backend:null}),Uv=sn(null);function Wv(e){let t=e.call.bind(e);e.call=async(e,...n)=>{let r=Date.now();try{let i=await t(e,...n);return!e.includes(`list-functions`)&&!e.includes(`list-state-keys`)&&e!==`devframe:rpc:server-state:get`&&Bv({type:`call`,method:e,args:n,result:i,duration:Date.now()-r,time:r}),i}catch(t){throw!e.includes(`list-functions`)&&!e.includes(`list-state-keys`)&&e!==`devframe:rpc:server-state:get`&&Bv({type:`call`,method:e,args:n,error:t,duration:Date.now()-r,time:r}),t}};let n=e.callEvent.bind(e);e.callEvent=(e,...t)=>(!e.includes(`list-functions`)&&!e.includes(`list-state-keys`)&&e!==`devframe:rpc:server-state:subscribe`&&Bv({type:`call`,method:e,args:t,duration:0,time:Date.now()}),n(e,...t));let r=e.client.definitions.get(`devframe:rpc:client-state:updated`);if(r&&r.handler){let e=r.handler;r.handler=(t,n,r)=>(Bv({type:`state`,key:t,value:n,syncId:r,time:Date.now()}),e(t,n,r))}let i=e.client.definitions.get(`devframe:rpc:client-state:patch`);if(i&&i.handler){let e=i.handler;i.handler=(t,n,r)=>(Bv({type:`state`,key:t,patches:n,syncId:r,time:Date.now()}),e(t,n,r))}}function Gv(e){Hv.status=e.status,Hv.connected=e.status===`connected`,Hv.error=e.connectionError?.message??null}async function Kv(){try{let e=await Iv();Wv(e),Uv.value=e,Hv.backend=e.connectionMeta.backend,Gv(e),e.events.on(`connection:status`,()=>Gv(e)),e.connectionMeta.backend===`websocket`&&e.ensureTrusted(5e3).catch(()=>{})}catch(e){Hv.status=`error`,Hv.error=e?.message??String(e)}}function qv(){return Uv}function Jv(){return Hv.backend===`static`}var Yv=z({__name:`FeedbackSpinner`,props:{size:{default:`1em`}},setup(e){let t=e,n=Z(()=>typeof t.size==`number`?`${t.size}px`:t.size);return(e,t)=>(W(),G(`span`,{class:`border-2 border-current border-t-transparent rounded-full inline-block animate-spin`,style:k({width:n.value,height:n.value}),role:`status`,"aria-label":`Loading`},null,4))}}),Xv=z({__name:`ActionButton`,props:{as:{},to:{},href:{},icon:{},variant:{default:`action`},size:{default:`md`},loading:{type:Boolean},disabled:{type:Boolean}},setup(e){let t=e,n=Z(()=>t.as?t.as:t.href!=null||t.to!=null?`a`:`button`),r=Z(()=>n.value===`a`),i=Z(()=>n.value===`button`),a=Z(()=>t.size===`sm`),o=Z(()=>t.variant===`primary`?a.value?`btn-primary text-sm`:`btn-primary`:t.variant===`text`?a.value?`btn-text text-sm`:`btn-text`:a.value?`btn-action-sm`:`btn-action`),s=Z(()=>t.disabled||t.loading);return(t,a)=>(W(),K(sa(n.value),{class:A([o.value,{"pointer-events-none op-mute":s.value&&!i.value}]),href:r.value?e.href??e.to:void 0,to:e.as&&e.to!=null?e.to:void 0,disabled:i.value?s.value:void 0,"aria-disabled":s.value||void 0,"aria-busy":e.loading||void 0},{default:R(()=>[e.loading?(W(),K(Yv,{key:0,size:`1em`})):e.icon?(W(),G(`span`,{key:1,class:A(e.icon),"aria-hidden":`true`},null,2)):X(``,!0),B(t.$slots,`default`)]),_:3},8,[`class`,`href`,`to`,`disabled`,`aria-disabled`,`aria-busy`]))}}),Zv=128;function Qv(e){return e.replace(/[^\w-]+/g,`_`).slice(0,Zv)}var $v={class:`json`},ey={key:0,class:`json-key`},ty={key:1,class:`json-colon`},ny={key:0,class:`json-key`},ry={key:1,class:`json-colon`},iy={class:`json-meta`},ay={key:2},oy={key:0,class:`json-key`},sy={key:1,class:`json-colon`},cy={key:2,class:`json-meta`},ly={key:3,class:`json-meta`},uy={key:0,class:`json-children`},dy={key:1,class:`json-row`},fy={class:`json-meta`},py=z({__name:`JsonView`,props:{value:{},name:{},path:{default:``},depth:{default:0},expandDepth:{default:1},highlightPaths:{}},setup(e){let t=e,n=Z(()=>Array.isArray(t.value)?`array`:t.value!==null&&typeof t.value==`object`?`object`:`primitive`),r=Z(()=>n.value===`array`?t.value.map((e,t)=>[String(t),e]):n.value===`object`?Object.entries(t.value):[]),i=I(t.depth<t.expandDepth),a=Z(()=>r.value.length===0),o=Z(()=>!!t.path&&t.highlightPaths?.has(t.path));function s(e){return t.path?`${t.path}.${e}`:e}function c(e){return e==null?`v-null`:`v-${typeof e}`}function l(e){return e===void 0?`undefined`:e===null?`null`:typeof e==`string`?JSON.stringify(e):String(e)}let u=Z(()=>n.value===`array`?`[`:`{`),d=Z(()=>n.value===`array`?`]`:`}`),f=Z(()=>n.value===`array`?`[${r.value.length}]`:`{${r.value.length}}`);return(t,p)=>{let m=aa(`JsonView`,!0);return W(),G(`div`,$v,[n.value===`primitive`?(W(),G(`div`,{key:0,class:A([`json-row`,{changed:o.value}])},[e.name===void 0?X(``,!0):(W(),G(`span`,ey,j(e.name),1)),e.name===void 0?X(``,!0):(W(),G(`span`,ty,`:`)),q(`span`,{class:A(c(e.value))},j(l(e.value)),3)],2)):a.value?(W(),G(`div`,{key:1,class:A([`json-row`,{changed:o.value}])},[e.name===void 0?X(``,!0):(W(),G(`span`,ny,j(e.name),1)),e.name===void 0?X(``,!0):(W(),G(`span`,ry,`:`)),q(`span`,iy,j(u.value)+j(d.value),1)],2)):(W(),G(`div`,ay,[q(`div`,{class:A([`json-row json-toggle`,{changed:o.value}]),onClick:p[0]||=e=>i.value=!i.value},[q(`span`,{class:A([`json-caret`,{open:i.value}])},`▶`,2),e.name===void 0?X(``,!0):(W(),G(`span`,oy,j(e.name),1)),e.name===void 0?X(``,!0):(W(),G(`span`,sy,`:`)),i.value?(W(),G(`span`,cy,j(u.value),1)):(W(),G(`span`,ly,j(f.value),1))],2),i.value?(W(),G(`div`,uy,[(W(!0),G(H,null,da(r.value,([t,n])=>(W(),K(m,{key:t,name:t,value:n,path:s(t),depth:e.depth+1,"expand-depth":e.expandDepth,"highlight-paths":e.highlightPaths},null,8,[`name`,`value`,`path`,`depth`,`expand-depth`,`highlight-paths`]))),128))])):X(``,!0),i.value?(W(),G(`div`,dy,[q(`span`,fy,j(d.value),1)])):X(``,!0)]))])}}}),my={class:`pane`},hy={key:0,class:`center`},gy={class:`section-title`},_y={key:0,class:`empty`},vy={key:1,class:`cards`},yy=[`onClick`],by={class:`card-title`},xy={class:`badge flag`},Sy={class:`id`},Cy={key:0,class:`id-note`},wy={class:`desc`},Ty={key:1,class:`tags`},Ey=[`onUpdate:modelValue`],Dy={style:{"margin-top":`8px`,display:`flex`,gap:`8px`,"align-items":`center`}},Oy={key:0,class:`note`},ky={key:3,class:`result`},Ay={class:`result-head`},jy={key:0,class:`ok`},My={key:1,class:`fail`},Ny={key:2,class:`muted`},Py={class:`section-title`},Fy={key:2,class:`empty`},Iy={key:3,class:`cards`},Ly=[`onClick`],Ry={class:`card-title`},zy={key:0,class:`badge flag`},By={class:`id`},Vy={key:0,class:`desc`},Hy={style:{"margin-top":`8px`,display:`flex`,gap:`8px`,"align-items":`center`}},Uy={key:0,class:`note`},Wy={key:0,class:`result`},Gy={class:`result-head`},Ky={key:0,class:`ok`},qy={key:1,class:`fail`},Jy={key:2,class:`muted`},Yy=z({__name:`AgentView`,props:{manifest:{},isStatic:{type:Boolean},results:{},pending:{}},emits:[`invoke`,`read`],setup(e,{emit:t}){let n=t,r=I(null),i=Jt({});function a(e){r.value=r.value===e?null:e,i[e]===void 0&&(i[e]=`{}`)}function o(e){let t;try{t=JSON.parse(i[e]||`{}`)}catch(e){throw Error(`Invalid JSON args: ${e.message}`)}n(`invoke`,e,t)}function s(e){n(`read`,e)}return(t,n)=>(W(),G(`div`,my,[e.manifest?(W(),G(H,{key:1},[q(`div`,gy,` Tools · `+j(e.manifest.tools.length),1),e.manifest.tools.length===0?(W(),G(`div`,_y,` No agent-exposed tools. `)):(W(),G(`div`,vy,[(W(!0),G(H,null,da(e.manifest.tools,t=>(W(),G(`div`,{key:t.id,class:`card`},[q(`div`,{class:`card-head`,style:{cursor:`pointer`,"user-select":`none`},onClick:e=>a(t.id)},[q(`div`,{class:A([`chev i-ph-caret-right`,{open:r.value===t.id}])},null,2),q(`span`,by,j(t.title),1),q(`span`,xy,j(t.kind),1),q(`span`,{class:A([`badge`,`safety-${t.safety}`])},j(t.safety),3)],8,yy),q(`div`,Sy,j(L(Qv)(t.id)),1),L(Qv)(t.id)===t.id?X(``,!0):(W(),G(`div`,Cy,` internal id: `+j(t.id),1)),q(`p`,wy,j(t.description),1),t.tags&&t.tags.length?(W(),G(`div`,Ty,[(W(!0),G(H,null,da(t.tags,e=>(W(),G(`span`,{key:e,class:`badge flag`},j(e),1))),128))])):X(``,!0),r.value===t.id?(W(),G(H,{key:2},[t.inputSchema?(W(),G(H,{key:0},[n[0]||=q(`div`,{class:`label`},` Input schema `,-1),J(py,{value:t.inputSchema,"expand-depth":1},null,8,[`value`])],64)):X(``,!0),t.outputSchema?(W(),G(H,{key:1},[n[1]||=q(`div`,{class:`label`},` Output schema `,-1),J(py,{value:t.outputSchema,"expand-depth":1},null,8,[`value`])],64)):X(``,!0),t.examples&&t.examples.length?(W(),G(H,{key:2},[n[2]||=q(`div`,{class:`label`},` Examples `,-1),J(py,{value:t.examples,"expand-depth":1},null,8,[`value`])],64)):X(``,!0),n[3]||=q(`div`,{class:`label`},` Invoke (MCP format) `,-1),pr(q(`textarea`,{"onUpdate:modelValue":e=>i[t.id]=e,class:`args`,spellcheck:`false`,placeholder:`{}`},null,8,Ey),[[zl,i[t.id]]]),q(`div`,Dy,[J(Xv,{variant:`primary`,size:`sm`,icon:`i-ph-play-duotone`,loading:e.pending[t.id],disabled:e.pending[t.id]||e.isStatic,onClick:e=>o(t.id)},{default:R(()=>[Y(j(e.pending[t.id]?`Invoking…`:`Invoke`),1)]),_:2},1032,[`loading`,`disabled`,`onClick`]),e.isStatic?(W(),G(`span`,Oy,`read-only static backend`)):X(``,!0)]),e.results[t.id]?(W(),G(`div`,ky,[q(`div`,Ay,[e.results[t.id].ok?(W(),G(`span`,jy,`✓ resolved`)):(W(),G(`span`,My,`✕ threw`)),`durationMs`in e.results[t.id]?(W(),G(`span`,Ny,j(e.results[t.id].durationMs)+`ms`,1)):X(``,!0)]),e.results[t.id].ok?(W(),K(py,{key:0,value:e.results[t.id].result,"expand-depth":2},null,8,[`value`])):(W(),K(py,{key:1,value:e.results[t.id].error,"expand-depth":2},null,8,[`value`]))])):X(``,!0)],64)):X(``,!0)]))),128))])),q(`div`,Py,` Resources · `+j(e.manifest.resources.length),1),e.manifest.resources.length===0?(W(),G(`div`,Fy,` No agent-readable resources. `)):(W(),G(`div`,Iy,[(W(!0),G(H,null,da(e.manifest.resources,t=>(W(),G(`div`,{key:t.id,class:`card`},[q(`div`,{class:`card-head`,style:{cursor:`pointer`,"user-select":`none`},onClick:e=>a(t.id)},[q(`div`,{class:A([`chev i-ph-caret-right`,{open:r.value===t.id}])},null,2),q(`span`,Ry,j(t.name),1),t.mimeType?(W(),G(`span`,zy,j(t.mimeType),1)):X(``,!0)],8,Ly),q(`div`,By,j(t.uri),1),t.description?(W(),G(`p`,Vy,j(t.description),1)):X(``,!0),r.value===t.id?(W(),G(H,{key:1},[q(`div`,Hy,[J(Xv,{variant:`primary`,size:`sm`,icon:`i-ph-book-open-duotone`,loading:e.pending[t.id],disabled:e.pending[t.id]||e.isStatic,onClick:e=>s(t.id)},{default:R(()=>[Y(j(e.pending[t.id]?`Reading…`:`Read Resource`),1)]),_:2},1032,[`loading`,`disabled`,`onClick`]),e.isStatic?(W(),G(`span`,Uy,`read-only static backend`)):X(``,!0)]),e.results[t.id]?(W(),G(`div`,Wy,[q(`div`,Gy,[e.results[t.id].ok?(W(),G(`span`,Ky,`✓ resolved`)):(W(),G(`span`,qy,`✕ threw`)),`durationMs`in e.results[t.id]?(W(),G(`span`,Jy,j(e.results[t.id].durationMs)+`ms`,1)):X(``,!0)]),e.results[t.id].ok?(W(),K(py,{key:0,value:e.results[t.id].result,"expand-depth":2},null,8,[`value`])):(W(),K(py,{key:1,value:e.results[t.id].error,"expand-depth":2},null,8,[`value`]))])):X(``,!0)],64)):X(``,!0)]))),128))]))],64)):(W(),G(`div`,hy,` Loading agent surface… `))]))}}),Xy=z({__name:`AgentSmart`,setup(e){let t=qv(),n=sn(null),r=Jt({}),i=Jt({});async function a(){t.value&&(n.value=await t.value.call(`devframes:plugin:inspect:describe-agent`))}Tm(a),Ji(a);async function o(e,n){if(t.value){i[e]=!0;try{r[e]=await t.value.call(`devframes:plugin:inspect:invoke-agent-tool`,e,n)}catch(t){let n=t;r[e]={ok:!1,error:{name:n?.name??`Error`,message:n?.message??String(t)}}}finally{i[e]=!1}}}async function s(e){if(t.value){i[e]=!0;try{r[e]=await t.value.call(`devframes:plugin:inspect:read-agent-resource`,e)}catch(t){let n=t;r[e]={ok:!1,error:{name:n?.name??`Error`,message:n?.message??String(t)}}}finally{i[e]=!1}}}return(e,t)=>(W(),K(Yy,{manifest:n.value,"is-static":L(Jv)(),results:r,pending:i,onInvoke:o,onRead:s},null,8,[`manifest`,`is-static`,`results`,`pending`]))}}),Zy={class:`cmd-title`},Qy={class:`cmd-id mono`},$y={class:`fn-flags`},eb={key:0,class:`badge flag`},tb={key:1,class:`badge flag`,title:`No handler, a group for its children`},nb={key:2,class:`badge flag`},rb={key:0,class:`fn-detail`},ib={key:0,class:`desc`},ab=[`value`],ob={style:{"margin-top":`8px`,display:`flex`,gap:`8px`,"align-items":`center`}},sb={key:0,class:`note`},cb={key:0,class:`result`},lb={class:`result-head`},ub={key:0,class:`ok`},db={key:1,class:`fail`},fb={key:2,class:`muted`},pb={key:2,class:`note`},mb={class:`cmd-children`},hb=z({name:`CommandRow`,__name:`CommandRow`,props:{cmd:{},argsInput:{},results:{},pending:{},isStatic:{type:Boolean},depth:{}},emits:[`execute`,`updateArgs`],setup(e,{emit:t}){let n=e,r=t,i=I(!1),a=Z(()=>n.cmd.hasHandler||!!n.cmd.description||!!n.cmd.children?.length);function o(){i.value=!i.value}return(t,n)=>{let s=aa(`CommandRow`,!0);return W(),G(`div`,{class:A([`fn-row`,{"cmd-row-child":e.depth}])},[q(`div`,{class:A([`fn-head`,{clickable:a.value}]),onClick:o},[q(`div`,{class:A([`chev i-ph-caret-right`,{open:i.value}])},null,2),e.cmd.icon?(W(),G(`span`,{key:0,class:A([typeof e.cmd.icon==`string`?e.cmd.icon:`i-ph-terminal-window-duotone`,`cmd-icon`])},null,2)):X(``,!0),q(`span`,Zy,j(e.cmd.title),1),q(`span`,Qy,j(e.cmd.id),1),q(`span`,$y,[e.cmd.category?(W(),G(`span`,eb,j(e.cmd.category),1)):X(``,!0),e.cmd.hasHandler?X(``,!0):(W(),G(`span`,tb,`group`)),e.cmd.children?.length?(W(),G(`span`,nb,j(e.cmd.children.length)+` children`,1)):X(``,!0)])],2),i.value?(W(),G(`div`,rb,[e.cmd.description?(W(),G(`p`,ib,j(e.cmd.description),1)):X(``,!0),e.cmd.hasHandler?(W(),G(H,{key:1},[n[4]||=q(`div`,{class:`label`},` Execute with positional args as a JSON array `,-1),q(`textarea`,{value:e.argsInput[e.cmd.id],class:`args`,spellcheck:`false`,placeholder:`[]`,onInput:n[0]||=t=>r(`updateArgs`,e.cmd.id,t.target.value)},null,40,ab),q(`div`,ob,[J(Xv,{variant:`primary`,size:`sm`,icon:`i-ph-play-duotone`,loading:e.pending[e.cmd.id],disabled:e.pending[e.cmd.id]||e.isStatic,onClick:n[1]||=eu(t=>r(`execute`,e.cmd),[`stop`])},{default:R(()=>[Y(j(e.pending[e.cmd.id]?`Running…`:`Run`),1)]),_:1},8,[`loading`,`disabled`]),e.isStatic?(W(),G(`span`,sb,`read-only static backend, execution disabled`)):X(``,!0)]),e.results[e.cmd.id]?(W(),G(`div`,cb,[q(`div`,lb,[e.results[e.cmd.id].ok?(W(),G(`span`,ub,`✓ resolved`)):(W(),G(`span`,db,`✕ threw`)),`durationMs`in e.results[e.cmd.id]?(W(),G(`span`,fb,j(e.results[e.cmd.id].durationMs)+`ms`,1)):X(``,!0)]),e.results[e.cmd.id].ok?(W(),K(py,{key:0,value:e.results[e.cmd.id].result,"expand-depth":2},null,8,[`value`])):(W(),K(py,{key:1,value:e.results[e.cmd.id].error,"expand-depth":2},null,8,[`value`]))])):X(``,!0)],64)):e.cmd.children?.length?X(``,!0):(W(),G(`p`,pb,` Group-only command, no handler to run. `)),e.cmd.children?.length?(W(),G(H,{key:3},[n[5]||=q(`div`,{class:`label`},` Children `,-1),q(`div`,mb,[(W(!0),G(H,null,da(e.cmd.children,t=>(W(),K(s,{key:t.id,cmd:t,"args-input":e.argsInput,results:e.results,pending:e.pending,"is-static":e.isStatic,depth:(e.depth??0)+1,onExecute:n[2]||=e=>r(`execute`,e),onUpdateArgs:n[3]||=(e,t)=>r(`updateArgs`,e,t)},null,8,[`cmd`,`args-input`,`results`,`pending`,`is-static`,`depth`]))),128))])],64)):X(``,!0)])):X(``,!0)],2)}}}),gb={class:`pane`},_b={class:`toolbar`},vb={class:`search`},yb={class:`muted`},bb={class:`badge flag`},xb={key:0,class:`center`},Sb={key:1,class:`empty`},Cb={key:2,class:`empty`},wb={key:3,class:`fn-list`},Tb=z({__name:`CommandsView`,props:{commands:{},isStatic:{type:Boolean},results:{},pending:{}},emits:[`execute`],setup(e,{emit:t}){let n=e,r=t,i=I(``),a=Jt({});function o(e,t){return e.id.toLowerCase().includes(t)||e.title.toLowerCase().includes(t)||e.category?.toLowerCase().includes(t)?!0:e.children?.some(e=>o(e,t))??!1}let s=Z(()=>{let e=n.commands??[],t=i.value.trim().toLowerCase();return[...t?e.filter(e=>o(e,t)):e].sort((e,t)=>e.title.localeCompare(t.title))}),c=Z(()=>{let e={};for(let t of n.commands??[]){let n=t.category??`uncategorized`;e[n]=(e[n]||0)+1}return e});function l(e){let t;try{let n=JSON.parse(a[e.id]||`[]`);t=Array.isArray(n)?n:[n]}catch(e){throw Error(`Invalid JSON args: ${e.message}`)}r(`execute`,e,t)}return(t,n)=>(W(),G(`div`,gb,[q(`div`,_b,[q(`label`,vb,[n[2]||=q(`div`,{class:`i-ph-magnifying-glass-duotone`},null,-1),pr(q(`input`,{"onUpdate:modelValue":n[0]||=e=>i.value=e,placeholder:`Filter commands by id, title, category…`,spellcheck:`false`},null,512),[[zl,i.value]])]),q(`span`,yb,j((e.commands??[]).length)+` commands`,1),(W(!0),G(H,null,da(c.value,(e,t)=>(W(),G(`span`,{key:t,class:`muted`},[q(`span`,bb,j(t),1),Y(` `+j(e),1)]))),128))]),e.commands?e.commands.length===0?(W(),G(`div`,Sb," No commands registered. Commands are a `@devframes/hub` feature; this connection isn't mounted inside a hub. ")):s.value.length===0?(W(),G(`div`,Cb,` No commands match "`+j(i.value)+`". `,1)):(W(),G(`div`,wb,[(W(!0),G(H,null,da(s.value,t=>(W(),K(hb,{key:t.id,cmd:t,"args-input":a,results:e.results,pending:e.pending,"is-static":e.isStatic,onExecute:l,onUpdateArgs:n[1]||=(e,t)=>a[e]=t},null,8,[`cmd`,`args-input`,`results`,`pending`,`is-static`]))),128))])):(W(),G(`div`,xb,` Loading commands… `))]))}}),Eb=z({__name:`CommandsSmart`,setup(e){let t=qv(),n=sn(null),r=Jt({}),i=Jt({});async function a(){t.value&&(n.value=await t.value.call(`devframes:plugin:inspect:list-commands`))}Tm(a),Ji(a);async function o(e,n){if(t.value){i[e.id]=!0;try{r[e.id]=await t.value.call(`devframes:plugin:inspect:execute-command`,e.id,n)}catch(t){let n=t;r[e.id]={ok:!1,error:{name:n?.name??`Error`,message:n?.message??String(t)}}}finally{i[e.id]=!1}}}return(e,t)=>(W(),K(Tb,{commands:n.value,"is-static":L(Jv)(),results:r,pending:i,onExecute:o},null,8,[`commands`,`is-static`,`results`,`pending`]))}});function Db(e,t=1){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return Ob(n%360,t)}function Ob(e,t=1){return`hsla(${e}, 60%, 50%, ${t})`}function kb(e){let t=e.split(/([:/])/),n=[],r=``;for(let e=0;e<t.length;e+=2){let i=t[e]??``,a=t[e+1]??``;if(i===``&&a===``)continue;r+=i;let o=a===``;n.push({text:i,separator:a,isLeaf:o,color:o?void 0:Db(r)}),r+=a}return n}var Ab=[`title`],jb={key:0,class:`ns-sep`},Mb=z({__name:`FunctionName`,props:{name:{}},setup(e){let t=e,n=Z(()=>kb(t.name));return(t,r)=>(W(),G(`span`,{class:`fn-name`,title:e.name},[(W(!0),G(H,null,da(n.value,(e,t)=>(W(),G(H,{key:t},[q(`span`,{class:`ns-seg`,style:k(e.color?{color:e.color}:void 0)},j(e.text),5),e.separator?(W(),G(`span`,jb,j(e.separator),1)):X(``,!0)],64))),128))],8,Ab))}}),Nb={class:`fn-row`},Pb={class:`fn-flags`},Fb={key:0,class:`badge agent`,title:`Exposed to agents`},Ib={key:1,class:`badge flag`,title:`Strict JSON wire serialization`},Lb={key:2,class:`badge flag`,title:`Baked into the static build dump`},Rb={key:3,class:`badge flag`},zb={key:4,class:`badge flag`},Bb={key:5,class:`badge flag`},Vb={key:0,class:`fn-detail`},Hb={key:0,class:`desc`},Ub=[`value`],Wb={style:{"margin-top":`8px`,display:`flex`,gap:`8px`,"align-items":`center`}},Gb={key:0,class:`note`},Kb={key:0,class:`result`},qb={class:`result-head`},Jb={key:0,class:`ok`},Yb={key:1,class:`fail`},Xb={key:2,class:`muted`},Zb={key:4,class:`note`},Qb=z({__name:`FunctionRow`,props:{fn:{},argsInput:{},results:{},pending:{},isStatic:{type:Boolean}},emits:[`invoke`,`updateArgs`],setup(e,{emit:t}){let n=e,r=t,i=I(!1),a=Z(()=>n.fn.invokable||!!n.fn.agent||n.fn.hasArgs||n.fn.hasReturns);function o(){i.value=!i.value}return(t,n)=>(W(),G(`div`,Nb,[q(`div`,{class:A([`fn-head`,{clickable:a.value}]),onClick:o},[q(`div`,{class:A([`chev i-ph-caret-right`,{open:i.value}])},null,2),J(Mb,{name:e.fn.name},null,8,[`name`]),q(`span`,Pb,[q(`span`,{class:A([`badge`,e.fn.type])},j(e.fn.type),3),e.fn.agent?(W(),G(`span`,Fb,`agent`)):X(``,!0),e.fn.jsonSerializable?(W(),G(`span`,Ib,`json`)):X(``,!0),e.fn.snapshot?(W(),G(`span`,Lb,`snapshot`)):X(``,!0),e.fn.hasArgs?(W(),G(`span`,Rb,`args`)):X(``,!0),e.fn.hasReturns?(W(),G(`span`,zb,`returns`)):X(``,!0),e.fn.hasDump?(W(),G(`span`,Bb,`dump`)):X(``,!0)])],2),i.value?(W(),G(`div`,Vb,[e.fn.agent?(W(),G(`p`,Hb,j(e.fn.agent.description),1)):X(``,!0),e.fn.argsSchema?(W(),G(H,{key:1},[n[2]||=q(`div`,{class:`label`},` Args schema `,-1),J(py,{value:e.fn.argsSchema,"expand-depth":0},null,8,[`value`])],64)):X(``,!0),e.fn.returnsSchema?(W(),G(H,{key:2},[n[3]||=q(`div`,{class:`label`},` Returns schema `,-1),J(py,{value:e.fn.returnsSchema,"expand-depth":0},null,8,[`value`])],64)):X(``,!0),e.fn.invokable?(W(),G(H,{key:3},[n[4]||=q(`div`,{class:`label`},` Invoke with positional args as a JSON array `,-1),q(`textarea`,{value:e.argsInput[e.fn.name],class:`args`,spellcheck:`false`,placeholder:`[]`,onInput:n[0]||=t=>r(`updateArgs`,e.fn.name,t.target.value)},null,40,Ub),q(`div`,Wb,[J(Xv,{variant:`primary`,size:`sm`,icon:`i-ph-play-duotone`,loading:e.pending[e.fn.name],disabled:e.pending[e.fn.name]||e.isStatic,onClick:n[1]||=eu(t=>r(`invoke`,e.fn),[`stop`])},{default:R(()=>[Y(j(e.pending[e.fn.name]?`Invoking…`:`Invoke`),1)]),_:1},8,[`loading`,`disabled`]),e.isStatic?(W(),G(`span`,Gb,`read-only static backend, invocation disabled`)):X(``,!0)]),e.results[e.fn.name]?(W(),G(`div`,Kb,[q(`div`,qb,[e.results[e.fn.name].ok?(W(),G(`span`,Jb,`✓ resolved`)):(W(),G(`span`,Yb,`✕ threw`)),`durationMs`in e.results[e.fn.name]?(W(),G(`span`,Xb,j(e.results[e.fn.name].durationMs)+`ms`,1)):X(``,!0)]),e.results[e.fn.name].ok?(W(),K(py,{key:0,value:e.results[e.fn.name].result,"expand-depth":2},null,8,[`value`])):(W(),K(py,{key:1,value:e.results[e.fn.name].error,"expand-depth":2},null,8,[`value`]))])):X(``,!0)],64)):(W(),G(`p`,Zb,j(e.fn.type)+` functions may carry side effects, so the inspector does not invoke them. `,1))])):X(``,!0)]))}}),$b={class:`pane`},ex={class:`toolbar`},tx={class:`search`},nx={class:`muted`},rx={key:0,class:`center`},ix={key:1,class:`empty`},ax={key:2,class:`fn-list`},ox=z({__name:`FunctionsView`,props:{functions:{},isStatic:{type:Boolean},results:{},pending:{}},emits:[`invoke`],setup(e,{emit:t}){let n=e,r=t,i=I(``),a=Jt({}),o=Z(()=>{let e=n.functions??[],t=i.value.trim().toLowerCase();return[...t?e.filter(e=>e.name.toLowerCase().includes(t)):e].sort((e,t)=>e.name.localeCompare(t.name))}),s=Z(()=>{let e={};for(let t of n.functions??[])e[t.type]=(e[t.type]||0)+1;return e});function c(e){let t;try{let n=JSON.parse(a[e.name]||`[]`);t=Array.isArray(n)?n:[n]}catch(e){throw Error(`Invalid JSON args: ${e.message}`)}r(`invoke`,e,t)}return(t,n)=>(W(),G(`div`,$b,[q(`div`,ex,[q(`label`,tx,[n[2]||=q(`div`,{class:`i-ph-magnifying-glass-duotone`},null,-1),pr(q(`input`,{"onUpdate:modelValue":n[0]||=e=>i.value=e,placeholder:`Filter functions by name…`,spellcheck:`false`},null,512),[[zl,i.value]])]),q(`span`,nx,j((e.functions??[]).length)+` functions`,1),(W(!0),G(H,null,da(s.value,(e,t)=>(W(),G(`span`,{key:t,class:`muted`},[q(`span`,{class:A([`badge`,t])},j(t),3),Y(` `+j(e),1)]))),128))]),e.functions?o.value.length===0?(W(),G(`div`,ix,` No functions match “`+j(i.value)+`”. `,1)):(W(),G(`div`,ax,[(W(!0),G(H,null,da(o.value,t=>(W(),K(Qb,{key:t.name,fn:t,"args-input":a,results:e.results,pending:e.pending,"is-static":e.isStatic,onInvoke:c,onUpdateArgs:n[1]||=(e,t)=>a[e]=t},null,8,[`fn`,`args-input`,`results`,`pending`,`is-static`]))),128))])):(W(),G(`div`,rx,` Loading functions… `))]))}}),sx=z({__name:`FunctionsSmart`,setup(e){let t=qv(),n=sn(null),r=Jt({}),i=Jt({});async function a(){t.value&&(n.value=await t.value.call(`devframes:plugin:inspect:list-functions`))}Tm(a),Ji(a);async function o(e,n){if(t.value){i[e.name]=!0;try{r[e.name]=await t.value.call(`devframes:plugin:inspect:invoke`,e.name,n)}catch(t){let n=t;r[e.name]={ok:!1,error:{name:n?.name??`Error`,message:n?.message??String(t)}}}finally{i[e.name]=!1}}}return(e,t)=>(W(),K(ox,{functions:n.value,"is-static":L(Jv)(),results:r,pending:i,onInvoke:o},null,8,[`functions`,`is-static`,`results`,`pending`]))}}),cx={class:`pane flex-col`},lx={class:`toolbar`},ux={class:`muted`},dx={key:0,class:`center`},fx={key:1,style:{padding:`14px`,display:`flex`,"flex-direction":`column`,gap:`14px`}},px={style:{display:`flex`,gap:`8px`,"align-items":`center`,"margin-bottom":`8px`,"flex-wrap":`wrap`}},mx={class:`muted`,style:{"font-family":`var(--df-mono)`,"font-size":`11px`}},hx={style:{"font-family":`var(--df-mono)`,"font-weight":`600`,"font-size":`12.5px`}},gx={class:`muted`},_x={style:{"font-family":`var(--df-mono)`,"font-weight":`600`,"font-size":`12.5px`,color:`var(--df-accent)`}},vx={class:`muted`},yx={style:{"padding-left":`8px`,"border-left":`2px solid var(--df-border-soft)`}},bx=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})(z({__name:`HistoryView`,props:{historyRecords:{},isRecording:{type:Boolean}},emits:[`update:isRecording`,`clear`],setup(e,{emit:t}){let n=t;function r(e){let t=new Date(e);return`${t.getHours().toString().padStart(2,`0`)}:${t.getMinutes().toString().padStart(2,`0`)}:${t.getSeconds().toString().padStart(2,`0`)}.${t.getMilliseconds().toString().padStart(3,`0`)}`}return(t,i)=>(W(),G(`div`,cx,[q(`div`,lx,[J(Xv,{variant:e.isRecording?`action`:`text`,size:`sm`,icon:e.isRecording?`i-ph-record-fill text-error`:`i-ph-play-duotone`,title:e.isRecording?`Click to pause recording`:`Click to record`,onClick:i[0]||=t=>n(`update:isRecording`,!e.isRecording)},{default:R(()=>[Y(j(e.isRecording?`Recording`:`Paused`),1)]),_:1},8,[`variant`,`icon`,`title`]),J(Xv,{variant:`text`,size:`sm`,icon:`i-ph-trash-duotone`,onClick:i[1]||=e=>n(`clear`)},{default:R(()=>[...i[2]||=[Y(` Clear `,-1)]]),_:1}),q(`span`,ux,j(e.historyRecords.length)+` records`,1)]),e.historyRecords.length===0?(W(),G(`div`,dx,` No history yet. `)):(W(),G(`div`,fx,[(W(!0),G(H,null,da(e.historyRecords,e=>(W(),G(`div`,{key:e.id,style:{border:`1px solid var(--df-border)`,"border-radius":`var(--df-radius)`,background:`var(--df-bg-soft)`,padding:`12px`}},[q(`div`,px,[q(`span`,mx,j(r(e.time)),1),e.type===`call`?(W(),G(H,{key:0},[i[3]||=q(`span`,{class:`badge action`},`RPC Call`,-1),q(`span`,hx,j(e.method),1),q(`span`,gx,j(e.duration)+`ms`,1)],64)):(W(),G(H,{key:1},[i[4]||=q(`span`,{class:`badge static`},`State Update`,-1),q(`span`,_x,j(e.key),1),q(`span`,vx,`Sync ID: `+j(e.syncId),1)],64))]),q(`div`,yx,[e.type===`call`?(W(),G(H,{key:0},[i[7]||=q(`div`,{class:`label`,style:{"margin-top":`0`}},` Arguments `,-1),J(py,{value:e.args,"expand-depth":1},null,8,[`value`]),`result`in e?(W(),G(H,{key:0},[i[5]||=q(`div`,{class:`label`},` Result `,-1),J(py,{value:e.result,"expand-depth":1},null,8,[`value`])],64)):`error`in e?(W(),G(H,{key:1},[i[6]||=q(`div`,{class:`label`,style:{color:`var(--df-danger)`}},` Error `,-1),J(py,{value:e.error,"expand-depth":1},null,8,[`value`])],64)):X(``,!0)],64)):(W(),G(H,{key:1},[`value`in e?(W(),G(H,{key:0},[i[8]||=q(`div`,{class:`label`,style:{"margin-top":`0`}},` New State `,-1),J(py,{value:e.value,"expand-depth":1},null,8,[`value`])],64)):`patches`in e?(W(),G(H,{key:1},[i[9]||=q(`div`,{class:`label`,style:{"margin-top":`0`}},` Patches `,-1),J(py,{value:e.patches,"expand-depth":1},null,8,[`value`])],64)):X(``,!0)],64))])]))),128))]))]))}}),[[`__scopeId`,`data-v-fa4416fc`]]),xx=z({__name:`HistorySmart`,setup(e){function t(e){Rv.value=e}return(e,n)=>(W(),K(bx,{"history-records":L(Lv),"is-recording":L(Rv),"onUpdate:isRecording":t,onClear:L(Vv)},null,8,[`history-records`,`is-recording`,`onClear`]))}}),Sx={class:`pane`},Cx={class:`toolbar`},wx={class:`muted`},Tx={key:0,class:`center`},Ex={key:1,class:`inst-empty`},Dx={key:2,class:`cards`},Ox={class:`card-head`},kx={class:`card-title`},Ax={key:0,class:`badge agent`},jx={key:1,class:`badge`},Mx={class:`id`},Nx=[`href`],Px={class:`inst-url-text`},Fx={class:`inst-meta`},Ix={class:`inst-meta-wide`},Lx=[`title`],Rx=z({__name:`InstancesView`,props:{instances:{}},setup(e){let t=e,n=Z(()=>[...t.instances??[]].sort((e,t)=>e.isCurrent===t.isCurrent?t.startedAt-e.startedAt:e.isCurrent?-1:1));function r(e){let t=Math.max(0,Math.round((Date.now()-e)/1e3));if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}m ${t%60}s`;let r=Math.floor(n/60);return r<24?`${r}h ${n%60}m`:`${Math.floor(r/24)}d ${r%24}h`}return(t,i)=>(W(),G(`div`,Sx,[q(`div`,Cx,[q(`span`,wx,j((e.instances??[]).length)+` running `+j((e.instances??[]).length===1?`instance`:`instances`),1),i[0]||=q(`span`,{class:`muted`},[Y(`Devframe dev servers running on this machine, discovered via the shared registry (`),q(`code`,null,`~/.devframe/instances/`),Y(`).`)],-1)]),e.instances?e.instances.length===0?(W(),G(`div`,Ex,[...i[1]||=[q(`span`,{class:`i-ph-broadcast-duotone inst-empty-icon`},null,-1),q(`p`,{class:`inst-empty-title`},` No devframe instances discovered `,-1),q(`p`,null,[Y(` This tab lists every devframe dev server running on your machine, so you can jump between them. Each server registers itself in `),q(`code`,null,`~/.devframe/instances/`),Y(` while it runs. `)],-1),q(`p`,null,[Y(` Nothing shows up when only static/build servers are running, when discovery is turned off (`),q(`code`,null,`DEVFRAME_DISABLE_INSTANCE_REGISTRY=1`),Y(`), or when an in-process host hasn't opted in. Start another `),q(`code`,null,`devframe`),Y(` dev server (or a hub host that calls `),q(`code`,null,`registerDevframeInstance()`),Y(`), then hit refresh. `)],-1)]])):(W(),G(`div`,Dx,[(W(!0),G(H,null,da(n.value,e=>(W(),G(`div`,{key:`${e.pid}-${e.port}`,class:`card`},[q(`div`,Ox,[i[2]||=q(`span`,{class:`i-ph-broadcast-duotone cmd-icon`},null,-1),q(`span`,kx,j(e.name??e.id),1),e.isCurrent?(W(),G(`span`,Ax,`this instance`)):X(``,!0),e.hasMcp?(W(),G(`span`,jx,`MCP`)):X(``,!0)]),q(`div`,Mx,j(e.id),1),q(`a`,{class:`inst-url`,href:e.url,target:`_blank`,rel:`noopener noreferrer`},[i[3]||=q(`span`,{class:`i-ph-arrow-square-out-duotone`},null,-1),q(`span`,Px,j(e.url),1)],8,Nx),q(`dl`,Fx,[q(`div`,null,[i[4]||=q(`dt`,null,`Port`,-1),q(`dd`,null,j(e.port),1)]),q(`div`,null,[i[5]||=q(`dt`,null,`PID`,-1),q(`dd`,null,j(e.pid),1)]),q(`div`,null,[i[6]||=q(`dt`,null,`Uptime`,-1),q(`dd`,null,j(r(e.startedAt)),1)]),q(`div`,Ix,[i[7]||=q(`dt`,null,`Root`,-1),q(`dd`,{title:e.rootDir},j(e.rootDir),9,Lx)])])]))),128))])):(W(),G(`div`,Tx,` Discovering instances… `))]))}}),zx=z({__name:`InstancesSmart`,setup(e){let t=qv(),n=sn(null);async function r(){t.value&&(n.value=await t.value.call(`devframes:plugin:inspect:list-instances`))}return Tm(r),Ji(r),(e,t)=>(W(),K(Rx,{instances:n.value},null,8,[`instances`]))}}),Bx={class:`split`},Vx={class:`keys`},Hx={class:`keys-head`},Ux={class:`checkbox`},Wx={class:`keys-list`},Gx={key:0,class:`empty`},Kx={key:1,class:`empty`},qx=[`title`,`onClick`],Jx={class:`state-main`},Yx={key:0,class:`center`},Xx={key:1,class:`center`},Zx={class:`state-meta`},Qx={class:`state-key`},$x={key:0,class:`pulse`},eS={key:1,class:`note`},tS=z({__name:`StateView`,props:{keys:{},selectedKey:{},value:{},loading:{type:Boolean},isStatic:{type:Boolean},updates:{},highlightPaths:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=I(!1),a=Z(()=>{let e=n.keys??[];return i.value?e:e.filter(e=>!e.startsWith(`devframe:`)&&!e.startsWith(`__`))});return(t,n)=>(W(),G(`div`,Bx,[q(`aside`,Vx,[q(`div`,Hx,[q(`span`,null,j(a.value.length)+` keys`,1),q(`label`,Ux,[pr(q(`input`,{"onUpdate:modelValue":n[0]||=e=>i.value=e,type:`checkbox`},null,512),[[Bl,i.value]]),n[1]||=Y(` internal `,-1)])]),q(`div`,Wx,[e.keys?a.value.length===0?(W(),G(`div`,Kx,` No shared state`+j(e.keys.length?` (toggle internal)`:``)+`. `,1)):X(``,!0):(W(),G(`div`,Gx,` Loading… `)),(W(!0),G(H,null,da(a.value,t=>(W(),G(`button`,{key:t,class:A([`key-item`,{active:e.selectedKey===t}]),title:t,onClick:e=>r(`select`,t)},j(t),11,qx))),128))])]),q(`section`,Jx,[e.selectedKey?e.loading?(W(),G(`div`,Xx,` Loading state… `)):(W(),G(H,{key:2},[q(`div`,Zx,[q(`span`,Qx,j(e.selectedKey),1),e.isStatic?(W(),G(`span`,eS,`static snapshot`)):(W(),G(`span`,$x,`live`+j(e.updates?` · ${e.updates} update${e.updates>1?`s`:``}`:``),1))]),J(py,{value:e.value,"expand-depth":3,"highlight-paths":e.highlightPaths},null,8,[`value`,`highlight-paths`])],64)):(W(),G(`div`,Yx,` Select a shared-state key to inspect its live value. `))])]))}}),nS=z({__name:`StateSmart`,setup(e){let t=qv(),n=sn(null),r=I(null),i=sn(void 0),a=I(!1),o=sn(new Set),s=I(0),c=null,l=null;async function u(){t.value&&(n.value=await t.value.call(`devframes:plugin:inspect:list-state-keys`))}Tm(u),Ji(u);function d(e,t,n=``,r=new Set){if(e===t)return r;if(!(typeof e==`object`&&e)||!(typeof t==`object`&&t))return r.add(n),r;let i=new Set([...Object.keys(e),...Object.keys(t)]);for(let a of i){let i=n?`${n}.${a}`:a,o=a in e,s=a in t;!o||!s?r.add(i):d(e[a],t[a],i,r)}return r}function f(e){o.value=e,l&&clearTimeout(l),l=setTimeout(()=>{o.value=new Set},1600)}function p(){c?.(),c=null}return Cr(r,async e=>{if(p(),i.value=void 0,s.value=0,o.value=new Set,!(!e||!t.value)){a.value=!0;try{let n=await t.value.sharedState.get(e);i.value=n.value(),c=n.on(`updated`,e=>{let t=d(i.value,e);i.value=e,s.value++,f(t)})}finally{a.value=!1}}}),Pe(()=>{p(),l&&clearTimeout(l)}),(e,t)=>(W(),K(tS,{keys:n.value,"selected-key":r.value,value:i.value,loading:a.value,"is-static":L(Jv)(),updates:s.value,"highlight-paths":o.value,onSelect:t[0]||=e=>r.value=e},null,8,[`keys`,`selected-key`,`value`,`loading`,`is-static`,`updates`,`highlight-paths`]))}}),rS={class:`app`},iS={class:`app-body`},aS={class:`flex flex-col gap-1`},oS=z({__name:`App`,setup(e){let t=I(`functions`),{refresh:n,loading:r}=Em(),i=Z(()=>hm(Hv.status)),a=Z(()=>_m(Hv.status)),o=[{value:`functions`,label:`Functions`,icon:`i-ph-function-duotone`},{value:`state`,label:`State`,icon:`i-ph-database-duotone`},{value:`agent`,label:`Agent`,icon:`i-ph-robot-duotone`},{value:`commands`,label:`Commands`,icon:`i-ph-terminal-window-duotone`},{value:`history`,label:`History`,icon:`i-ph-clock-counter-clockwise-duotone`},{value:`instances`,label:`Instances`,icon:`i-ph-broadcast-duotone`}],s=Z(()=>Jv()?o.filter(e=>e.value!==`instances`):o);Ji(Kv);function c(){location.reload()}return(e,o)=>(W(),G(`div`,rS,[J(dm,{glass:!1,class:`h-nav`},{search:R(()=>[...o[1]||=[q(`div`,null,null,-1)]]),end:R(()=>[i.value?(W(),G(`span`,{key:0,class:A(i.value.class)},[q(`span`,{class:A(i.value.dot)},null,2),Y(` `+j(i.value.label),1)],2)):X(``,!0),J(Qf,{class:`text-sm`,icon:L(r)?`i-ph-arrows-clockwise animate-spin`:`i-ph-arrows-clockwise`,tooltip:L(r)?`Refreshing…`:`Refresh`,label:`Refresh`,disabled:L(r)||!L(Hv).connected,onClick:L(n)},null,8,[`icon`,`tooltip`,`disabled`,`onClick`])]),default:R(()=>[o[2]||=q(`div`,{class:`flex items-center gap-1.5 shrink-0 font-semibold text-sm select-none`},[q(`span`,{class:`i-ph-magnifying-glass-duotone text-base color-active`}),q(`span`,null,`Devframe Inspector`)],-1),J(cm,{modelValue:t.value,"onUpdate:modelValue":o[0]||=e=>t.value=e,tabs:s.value,variant:`segment`},null,8,[`modelValue`,`tabs`])]),_:1}),q(`main`,iS,[a.value?(W(),G(`div`,{key:0,class:A(L(vm)(`h-full`))},[q(`span`,{class:A([a.value.icon,L(ym)(a.value.spin)])},null,2),q(`div`,aS,[q(`p`,{class:A(L(bm)())},j(a.value.title),3),q(`p`,{class:A(L(xm)())},j(a.value.body),3),L(Hv).error&&L(Hv).status===`error`?(W(),G(`p`,{key:0,class:A(L(Sm)())},j(L(Hv).error),3)):X(``,!0)]),a.value.reloadable?(W(),G(`button`,{key:0,type:`button`,class:A(L(pm)({variant:`primary`,size:`sm`})),onClick:c},[...o[3]||=[q(`span`,{class:`i-ph-arrow-clockwise`},null,-1),Y(` Reload `,-1)]],2)):X(``,!0)],2)):(W(),G(H,{key:1},[t.value===`functions`?(W(),K(sx,{key:0})):t.value===`state`?(W(),K(nS,{key:1})):t.value===`agent`?(W(),K(Xy,{key:2})):t.value===`commands`?(W(),K(Eb,{key:3})):t.value===`history`?(W(),K(xx,{key:4})):t.value===`instances`?(W(),K(zx,{key:5})):X(``,!0)],64))])]))}}),sS=window.matchMedia(`(prefers-color-scheme: dark)`);function cS(e){document.documentElement.classList.toggle(`dark`,e),document.documentElement.classList.toggle(`light`,!e)}cS(sS.matches),sS.addEventListener(`change`,e=>cS(e.matches)),uu(oS).mount(`#app`);
|