@devframes/plugin-og--assets 1.0.0 → 1.1.0

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.
@@ -0,0 +1,9 @@
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,O=ne(e=>e.replace(ie,`-$1`).toLowerCase()),ae=ne(e=>e.charAt(0).toUpperCase()+e.slice(1)),k=ne(e=>e?`on${ae(e)}`:``),A=(e,t)=>!Object.is(e,t),oe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},se=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ce=e=>{let t=parseFloat(e);return isNaN(t)?e:t},le=e=>{let t=y(e)?Number(e):NaN;return isNaN(t)?e:t},ue,de=()=>ue||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},fe=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 pe(e){if(p(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=y(r)?_e(r):pe(r);if(i)for(let e in i)t[e]=i[e]}return t}if(y(e)||x(e))return e}var me=/;(?![^(]*\))/g,he=/:([^]+)/,ge=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function _e(e){let t={};return e.replace(ge,e=>e.startsWith(`/*`)?``:e).split(me).forEach(e=>{if(e){let n=e.split(he);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t=``;if(y(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){let r=j(e[n]);r&&(t+=r+` `)}else if(x(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function ve(e){if(!e)return null;let{class:t,style:n}=e;return t&&!y(t)&&(e.class=j(t)),n&&(e.style=pe(n)),e}var ye=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,be=n(ye);ye+``;function xe(e){return!!e||e===``}function Se(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=Ee(e[i],t[i],n);return r}function Ce(e,t,n){if(e.size!==t.size)return!1;let r=Array.from(t),i=new Uint8Array(r.length);for(let t of e){let e=-1;for(let a=0;a<r.length;a++)if(!i[a]&&Ee(t,r[a],n)){e=a;break}if(e<0)return!1;i[e]=1}return!0}function we(e,t,n){let r=m(e),i=m(t);if(r||i||(r=h(e),i=h(t),r||i))return r&&i?Ce(e,t,n):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e){let i=e.hasOwnProperty(r),a=t.hasOwnProperty(r);if(i&&!a||!i&&a||!Ee(e[r],t[r],n))return!1}return String(e)===String(t)}function Te(e,t,n,r){n||=[new Map,new Map];let[i,a]=n;if(i.has(e)||a.has(t))return i.get(e)===t&&a.get(t)===e;i.set(e,t),a.set(t,e);let o=r(e,t,n);return i.delete(e),a.delete(t),o}function Ee(e,t,n){if(e===t)return!0;let r=g(e),i=g(t);return r||i?r&&i?e.getTime()===t.getTime():!1:(r=b(e),i=b(t),r||i?e===t:(r=p(e),i=p(t),r||i?r&&i?Te(e,t,n,Se):!1:(r=x(e),i=x(t),r||i?!r||!i?!1:Te(e,t,n,we):String(e)===String(t))))}function De(e,t){return e.findIndex(e=>Ee(e,t))}var Oe=e=>!!(e&&e.__v_isRef===!0),M=e=>y(e)?e:e==null?``:p(e)||x(e)&&(e.toString===C||!v(e.toString))?Oe(e)?M(e.value):JSON.stringify(e,ke,2):String(e),ke=(e,t)=>Oe(t)?ke(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ae(t,r)+` =>`]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ae(e))}:b(t)?Ae(t):x(t)&&!p(t)&&!T(t)?String(t):t,Ae=(e,t=``)=>b(e)?`Symbol(${e.description??t})`:e;function je(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var N,Me=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&&N&&(N.active?(this.parent=N,this.index=(N.scopes||(N.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=N;try{return N=this,e()}finally{N=t}}}on(){++this._on===1&&(this.prevScope=N,N=this)}off(){if(this._on>0&&--this._on===0){if(N===this)N=this.prevScope;else{let e=N;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 Ne(e){return new Me(e)}function Pe(){return N}function Fe(e,t=!1){N&&N.cleanups.push(e)}var P,Ie=new WeakSet,Le=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,N&&(N.active?N.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ie.has(this)&&(Ie.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ve(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,nt(this),We(this);let e=P,t=Qe;P=this,Qe=!0;try{return this.fn()}finally{Ge(this),P=e,Qe=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Je(e);this.deps=this.depsTail=void 0,nt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ie.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ke(this)&&this.run()}get dirty(){return Ke(this)}},Re=0,ze,Be;function Ve(e,t=!1){if(e.flags|=8,t){e.next=Be,Be=e;return}e.next=ze,ze=e}function He(){Re++}function Ue(){if(--Re>0)return;if(Be){let e=Be;for(Be=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ze;){let t=ze;for(ze=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 We(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ge(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Je(r),Ye(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ke(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(qe(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function qe(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===rt)||(e.globalVersion=rt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ke(e))))return;e.flags|=2;let t=e.dep,n=P,r=Qe;P=e,Qe=!0;try{We(e);let n=e.fn(e._value);(t.version===0||A(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{P=n,Qe=r,Ge(e),e.flags&=-3}}function Je(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)Je(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ye(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Xe(e,t){e.effect instanceof Le&&(e=e.effect.fn);let n=new Le(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 Ze(e){e.effect.stop()}var Qe=!0,$e=[];function et(){$e.push(Qe),Qe=!1}function tt(){let e=$e.pop();Qe=e===void 0||e}function nt(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=P;P=void 0;try{t()}finally{P=e}}}var rt=0,it=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}},at=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(!P||!Qe||P===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==P)t=this.activeLink=new it(P,this),P.deps?(t.prevDep=P.depsTail,P.depsTail.nextDep=t,P.depsTail=t):P.deps=P.depsTail=t,ot(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=P.depsTail,t.nextDep=void 0,P.depsTail.nextDep=t,P.depsTail=t,P.deps===t&&(P.deps=e)}return t}trigger(e){this.version++,rt++,this.notify(e)}notify(e){He();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ue()}}};function ot(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)ot(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var st=new WeakMap,ct=Symbol(``),lt=Symbol(``),ut=Symbol(``);function dt(e,t,n){if(Qe&&P){let t=st.get(e);t||st.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new at),r.map=t,r.key=n),r.track()}}function ft(e,t,n,r,i,a){let o=st.get(e);if(!o){rt++;return}let s=e=>{e&&e.trigger()};if(He(),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===ut||!b(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(ut)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(ct)),m(e)&&s(o.get(lt)));break;case`delete`:i||(s(o.get(ct)),m(e)&&s(o.get(lt)));break;case`set`:m(e)&&s(o.get(ct))}}Ue()}function pt(e,t){let n=st.get(e);return n&&n.get(t)}function mt(e){let t=F(e);return t===e||(dt(t,`iterate`,ut),nn(e))?t:tn(e)?en(e)?t.map(e=>sn(on(e))):t.map(sn):t.map(on)}function ht(e){return dt(e=F(e),`iterate`,ut),e}function gt(e,t){return tn(e)?sn(en(e)?on(t):t):on(t)}var _t={__proto__:null,[Symbol.iterator](){return vt(this,Symbol.iterator,e=>gt(this,e))},concat(...e){return mt(this).concat(...e.map(e=>p(e)?mt(e):e))},entries(){return vt(this,`entries`,e=>(e[1]=gt(this,e[1]),e))},every(e,t){return bt(this,`every`,e,t,void 0,arguments)},filter(e,t){return bt(this,`filter`,e,t,e=>e.map(e=>gt(this,e)),arguments)},find(e,t){return bt(this,`find`,e,t,e=>gt(this,e),arguments)},findIndex(e,t){return bt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return bt(this,`findLast`,e,t,e=>gt(this,e),arguments)},findLastIndex(e,t){return bt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return bt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return St(this,`includes`,e)},indexOf(...e){return St(this,`indexOf`,e)},join(e){return mt(this).join(e)},lastIndexOf(...e){return St(this,`lastIndexOf`,e)},map(e,t){return bt(this,`map`,e,t,void 0,arguments)},pop(){return Ct(this,`pop`)},push(...e){return Ct(this,`push`,e)},reduce(e,...t){return xt(this,`reduce`,e,t)},reduceRight(e,...t){return xt(this,`reduceRight`,e,t)},shift(){return Ct(this,`shift`)},some(e,t){return bt(this,`some`,e,t,void 0,arguments)},splice(...e){return Ct(this,`splice`,e)},toReversed(){return mt(this).toReversed()},toSorted(e){return mt(this).toSorted(e)},toSpliced(...e){return mt(this).toSpliced(...e)},unshift(...e){return Ct(this,`unshift`,e)},values(){return vt(this,`values`,e=>gt(this,e))}};function vt(e,t,n){let r=ht(e),i=r[t]();return r!==e&&!nn(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var yt=Array.prototype;function bt(e,t,n,r,i,a){let o=ht(e),s=o!==e&&!nn(e),c=o[t];if(c!==yt[t]){let t=c.apply(e,a);return s?on(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,gt(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 xt(e,t,n,r){let i=ht(e),a=i!==e&&!nn(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=gt(e,t)),n.call(this,t,gt(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?gt(e,c):c}function St(e,t,n){let r=F(e);dt(r,`iterate`,ut);let i=r[t](...n);return(i===-1||i===!1)&&rn(n[0])?(n[0]=F(n[0]),r[t](...n)):i}function Ct(e,t,n=[]){et(),He();let r=F(e)[t].apply(e,n);return Ue(),tt(),r}var wt=n(`__proto__,__v_isRef,__isVue`),Tt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(b));function Et(e){b(e)||(e=String(e));let t=F(this);return dt(t,`has`,e),t.hasOwnProperty(e)}var Dt=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?qt:Kt:i?Gt:Wt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=p(e);if(!r){let e;if(a&&(e=_t[t]))return e;if(t===`hasOwnProperty`)return Et}let o=Reflect.get(e,t,I(e)?e:n);if((b(t)?Tt.has(t):wt(t))||(r||dt(e,`get`,t),i))return o;if(I(o)){let e=a&&E(t)?o:o.value;return r&&x(e)?Zt(e):e}return x(o)?r?Zt(o):Yt(o):o}},Ot=class extends Dt{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=tn(i);if(!nn(n)&&!tn(n)&&(i=F(i),n=F(n)),!a&&I(i)&&!I(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:f(e,t),s=Reflect.set(e,t,n,I(e)?e:r);return e===F(r)&&s&&(o?A(n,i)&&ft(e,`set`,t,n,i):ft(e,`add`,t,n)),s}deleteProperty(e,t){let n=f(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&ft(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!b(t)||!Tt.has(t))&&dt(e,`has`,t),n}ownKeys(e){return dt(e,`iterate`,p(e)?`length`:ct),Reflect.ownKeys(e)}},kt=class extends Dt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},At=new Ot,jt=new kt,Mt=new Ot(!0),Nt=new kt(!0),Pt=e=>e,Ft=e=>Reflect.getPrototypeOf(e);function It(e,t,n){return function(...r){let i=this.__v_raw,a=F(i),o=m(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,u=i[e](...r),d=n?Pt:t?sn:on;return!t&&dt(a,`iterate`,c?lt:ct),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 Lt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Rt(e,t){let n={get(n){let r=this.__v_raw,i=F(r),a=F(n);e||(A(n,a)&&dt(i,`get`,n),dt(i,`get`,a));let{has:o}=Ft(i),s=t?Pt:e?sn:on;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&&dt(F(t),`iterate`,ct),t.size},has(t){let n=this.__v_raw,r=F(n),i=F(t);return e||(A(t,i)&&dt(r,`has`,t),dt(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=F(a),s=t?Pt:e?sn:on;return!e&&dt(o,`iterate`,ct),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return l(n,e?{add:Lt(`add`),set:Lt(`set`),delete:Lt(`delete`),clear:Lt(`clear`)}:{add(e){let n=F(this),r=Ft(n),i=F(e),a=!t&&!nn(e)&&!tn(e)?i:e;return r.has.call(n,a)||A(e,a)&&r.has.call(n,e)||A(i,a)&&r.has.call(n,i)||(n.add(a),ft(n,`add`,a,a)),this},set(e,n){!t&&!nn(n)&&!tn(n)&&(n=F(n));let r=F(this),{has:i,get:a}=Ft(r),o=i.call(r,e);o||=(e=F(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?A(n,s)&&ft(r,`set`,e,n,s):ft(r,`add`,e,n),this},delete(e){let t=F(this),{has:n,get:r}=Ft(t),i=n.call(t,e);i||=(e=F(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&ft(t,`delete`,e,void 0,a),o},clear(){let e=F(this),t=e.size!==0,n=e.clear();return t&&ft(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=It(r,e,t)}),n}function zt(e,t){let n=Rt(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 Bt={get:zt(!1,!1)},Vt={get:zt(!1,!0)},Ht={get:zt(!0,!1)},Ut={get:zt(!0,!0)},Wt=new WeakMap,Gt=new WeakMap,Kt=new WeakMap,qt=new WeakMap;function Jt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Yt(e){return tn(e)?e:$t(e,!1,At,Bt,Wt)}function Xt(e){return $t(e,!1,Mt,Vt,Gt)}function Zt(e){return $t(e,!0,jt,Ht,Kt)}function Qt(e){return $t(e,!0,Nt,Ut,qt)}function $t(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=Jt(ee(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function en(e){return tn(e)?en(e.__v_raw):!!(e&&e.__v_isReactive)}function tn(e){return!!(e&&e.__v_isReadonly)}function nn(e){return!!(e&&e.__v_isShallow)}function rn(e){return e?!!e.__v_raw:!1}function F(e){let t=e&&e.__v_raw;return t?F(t):e}function an(e){return!f(e,`__v_skip`)&&Object.isExtensible(e)&&se(e,`__v_skip`,!0),e}var on=e=>x(e)?Yt(e):e,sn=e=>x(e)?Zt(e):e;function I(e){return e?e.__v_isRef===!0:!1}function L(e){return ln(e,!1)}function cn(e){return ln(e,!0)}function ln(e,t){return I(e)?e:new un(e,t)}var un=class{constructor(e,t){this.dep=new at,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:F(e),this._value=t?e:on(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||nn(e)||tn(e);e=n?e:F(e),A(e,t)&&(this._rawValue=e,this._value=n?e:on(e),this.dep.trigger())}};function dn(e){e.dep&&e.dep.trigger()}function R(e){return I(e)?e.value:e}function fn(e){return v(e)?e():R(e)}var pn={get:(e,t,n)=>t===`__v_raw`?e:R(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return I(i)&&!I(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function mn(e){return en(e)?e:new Proxy(e,pn)}var hn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new at,{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 gn(e){return new hn(e)}function _n(e){let t=p(e)?Array(e.length):{};for(let n in e)t[n]=xn(e,n);return t}var vn=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=F(e);let r=!0,i=e;if(!p(e)||b(this._key)||!E(this._key))do r=!rn(i)||nn(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=R(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&I(this._raw[this._key])){let t=this._object[this._key];if(I(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return pt(this._raw,this._key)}},yn=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 bn(e,t,n){return I(e)?e:v(e)?new yn(e):x(e)&&arguments.length>1?xn(e,t,n):L(e)}function xn(e,t,n){return new vn(e,t,n)}var Sn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new at(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=rt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&P!==this)return Ve(this,!0),!0}get value(){let e=this.dep.track();return qe(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Cn(e,t,n=!1){let r,i;return v(e)?r=e:(r=e.get,i=e.set),new Sn(r,i,n)}var wn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Tn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},En={},Dn=new WeakMap,On=void 0;function kn(){return On}function An(e,t=!1,n=On){if(n){let t=Dn.get(n);t||Dn.set(n,t=[]),t.push(e)}}function jn(e,t,n=r){let{immediate:i,deep:o,once:s,scheduler:c,augmentJob:l,call:d}=n,f=e=>o?e:nn(e)||o===!1||o===0?Mn(e,1):Mn(e),m,h,g,_,y=!1,b=!1;if(I(e)?(h=()=>e.value,y=nn(e)):en(e)?(h=()=>f(e),y=!0):p(e)?(b=!0,y=e.some(e=>en(e)||nn(e)),h=()=>e.map(e=>{if(I(e))return e.value;if(en(e))return f(e);if(v(e))return d?d(e,2):e()})):h=v(e)?t?d?()=>d(e,2):e:()=>{if(g){et();try{g()}finally{tt()}}let t=On;On=m;try{return d?d(e,3,[_]):e(_)}finally{On=t}}:a,t&&o){let e=h,t=o===!0?1/0:o;h=()=>Mn(e(),t)}let x=Pe(),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(En):En,w=e=>{if(m.flags&1&&(m.dirty||e)){if(t){let n=m.run();if(e||o||y||(b?n.some((e,t)=>A(e,C[t])):A(n,C))){g&&g();let e=On;On=m;try{let e=[n,C===En?void 0:b&&C[0]===En?[]:C,_];C=n,d?d(t,3,e):t(...e)}finally{On=e}}}else m.run()}};return l&&l(w),m=new Le(h),m.scheduler=c?()=>c(w,!1):w,_=e=>An(e,!1,m),g=m.onStop=()=>{let e=Dn.get(m);if(e){if(d)d(e,4);else for(let t of e)t();Dn.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 Mn(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--,I(e))Mn(e.value,t,n);else if(p(e))for(let r=0;r<e.length;r++)Mn(e[r],t,n);else if(h(e)||m(e))e.forEach(e=>{Mn(e,t,n)});else if(T(e)){for(let r in e)Mn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Mn(e[r],t,n)}return e}var Nn=[];function Pn(e){Nn.push(e)}function Fn(){Nn.pop()}function In(e,t){}var Ln={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`},Rn={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 zn(e,t,n,r){try{return r?e(...r):e()}catch(e){Vn(e,t,n)}}function Bn(e,t,n,r){if(v(e)){let i=zn(e,t,n,r);return i&&S(i)&&i.catch(e=>{Vn(e,t,n)}),i}if(p(e)){let i=[];for(let a=0;a<e.length;a++)i.push(Bn(e[a],t,n,r));return i}}function Vn(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){et(),zn(o,null,10,[e,i,a]),tt();return}}Hn(e,n,a,i,s)}function Hn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var Un=[],Wn=-1,Gn=[],Kn=null,qn=0,Jn=Promise.resolve(),Yn=null;function Xn(e){let t=Yn||Jn;return e?t.then(this?e.bind(this):e):t}function Zn(e){let t=Wn+1,n=Un.length;for(;t<n;){let r=t+n>>>1,i=Un[r],a=rr(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Qn(e){if(!(e.flags&1)){let t=rr(e),n=Un[Un.length-1];!n||!(e.flags&2)&&t>=rr(n)?Un.push(e):Un.splice(Zn(t),0,e),e.flags|=1,$n()}}function $n(){Yn||=Jn.then(ir)}function er(e){if(!p(e))Kn&&e.id===-1?Kn.splice(qn+1,0,e):e.flags&1||(Gn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Gn.push(e[t]);$n()}function tr(e,t,n=Wn+1){for(;n<Un.length;n++){let t=Un[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;Un.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function nr(e){if(Gn.length){let e=[...new Set(Gn)].sort((e,t)=>rr(e)-rr(t));if(Gn.length=0,Kn){for(let t=0;t<e.length;t++)Kn.push(e[t]);return}for(Kn=e,qn=0;qn<Kn.length;qn++){let e=Kn[qn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Kn=null,qn=0}}var rr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ir(e){try{for(Wn=0;Wn<Un.length;Wn++){let e=Un[Wn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),zn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Wn<Un.length;Wn++){let e=Un[Wn];e&&(e.flags&=-2)}Wn=-1,Un.length=0,nr(e),Yn=null,(Un.length||Gn.length)&&ir(e)}}var ar,or=[];function sr(e,t){ar=e,ar?(ar.enabled=!0,or.forEach(({event:e,args:t})=>ar.emit(e,...t)),or=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{sr(e,t)}),setTimeout(()=>{ar||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,or=[])},3e3)):or=[]}var z=null,cr=null;function lr(e){let t=z;return z=e,cr=e&&e.type.__scopeId||null,t}function ur(e){cr=e}function dr(){cr=null}var fr=e=>B;function B(e,t=z,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&us(-1);let i=lr(t),a=os.length,o;try{o=e(...n)}finally{for(let e=os.length;e>a;e--)cs();lr(i),r._d&&us(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function pr(e,t){if(z===null)return e;let n=Js(z),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&&Mn(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&&(et(),Bn(c,n,8,[e.el,s,e,t]),tt())}}function hr(e,t){if(js){let n=js.provides,r=js.parent&&js.parent.provides;r===n&&(n=js.provides=Object.create(r)),n[e]=t}}function gr(e,t,n=!1){let r=X();if(r||eo){let i=eo?eo._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!!(X()||eo)}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(Ls){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=js;u.call=(e,t,n)=>Bn(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{H(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():Qn(e)}),u.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=jn(e,t,u);return Ls&&(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=Ps(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),H(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),Bo(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=X(),r=Ur();return()=>{let i=t.default&&ti(t.default(),!0),a=i&&i.length?Jr(i):n.subTree?Ss():void 0;if(!a)return;let o=F(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!==W&&ei(c,l);let u=n.subTree&&$r(n.subTree);if(u&&u.type!==W&&!ps(u,c)&&Kr(n).type!==W){let e=Zr(u,o,r,n);if(ei(u,e),s===`out-in`&&c.type!==W)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!==W?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!==W){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&&Bn(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&&ps(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=ys(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===U?(o.patchFlag&128&&i++,r=r.concat(ti(o.children,t,s))):(t||o.type!==W)&&r.push(s==null?o:ys(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function V(e,t){return v(e)?l({name:e.name},t,{setup:e}):e}function ni(){let e=X();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=X(),n=cn(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?Js(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,_=F(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(I(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(v(d))zn(d,l,12,[c,h]);else{let t=y(d),r=I(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),H(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),nr(),t._vnode=e;return}f(t.firstChild,e,null,null,null),nr(),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 is: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 W:y(n)?(E=a(n),v(r.el=n.content.firstChild,n,s)):E=T!==8||b?x():a(n);break;case as: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 U: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.asyncDep)&&!r.component.subTree){let t;b?(t=Y(as),t.anchor=E?E.previousSibling:e.lastChild):t=n.nodeType===3?bs(``):Y(n.nodeType===8?W:`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=zo(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&&en(d.style))for(let e in d.style)d.style[e]}let x;(x=d&&d.onVnodeBeforeMount)&&Ds(x,n,t),h&&mr(t,null,n,`beforeMount`),((x=d&&d.onVnodeMounted)||h||l)&&ts(()=>{x&&Ds(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]=Cs(d[t]),g=h.type===is;e?(g&&!u&&t+1<p&&Cs(d[t+1]).type===is&&(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,ho(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=de().requestIdleCallback||(e=>setTimeout(e,1)),Ei=de().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 V({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=js;if(ri(e),u)return()=>Fi(u,e);let t=t=>{l=null,Vn(t,e,13,!r)};if(s&&e.suspense||Ls)return p().then(t=>()=>Fi(t,e)).catch(e=>(t(e),()=>r?Y(r,{error:e}):null));let a=L(!1),c=L(),d=L(!!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 Y(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=Y(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=X(),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),H(()=>{a.isDeactivated=!1,a.a&&oe(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Ds(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;Uo(t.m),Uo(t.a),l(e,f,null,1,s),H(()=>{t.da&&oe(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Ds(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=Ys(Ni(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!ps(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&&(Go(n.subTree.type)?H(()=>{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&&H(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(!fs(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Wi(r);if(s.type===W)return o=null,s;let c=s.type,l=Ys(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=ys(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,Go(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=js){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=js,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{et();let i=Ps(n),a=Bn(t,n,e,r);return i(),tt(),a};return r?i.unshift(a):i.push(a),a}}var Ki=e=>(t,n=js)=>{(!Ls||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=js){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=z||js;if(i){let n=i.type;if(e===ra){let e=Ys(n,!1);if(e&&(e===t||e===D(t)||e===ae(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[ae(D(t))])}function da(e,t,n,r){let i,a=n&&n[r],o=p(e);if(o||y(e)){let n=o&&en(e),r=!1,s=!1;n&&(r=!nn(e),s=tn(e),e=ht(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?sn(on(e[n])):on(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 pa(e,t,n,r,i,a){if(n??={},z.ce||z.parent&&Ni(z.parent)&&z.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),G(),q(U,null,[Y(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=os.length;G();let c;try{let i=o&&ma(o(n)),s=n.key||a||i&&i.key;c=q(U,{key:(s&&!b(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=os.length;e>s;e--)cs();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function ma(e){return e.some(e=>!fs(e)||!(e.type===W||e.type===U&&!ma(e.children)))?e:null}function ha(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:k(r)]=e[r];return n}var ga=e=>e?Is(e)?Js(e):ga(e.parent):null,_a=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=>ga(e.parent),$root:e=>ga(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Va(e),$forceUpdate:e=>e.f||=()=>{Qn(e.update)},$nextTick:e=>e.n||=Xn.bind(e.proxy),$watch:e=>Tr.bind(e)}),va=(e,t)=>e!==r&&!e.__isScriptSetup&&f(e,t),ya={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(va(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 Ia&&(s[t]=0)}let u=_a[t],d,p;if(u)return t===`$attrs`&&dt(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 va(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)||va(t,c)||f(o,c)||f(i,c)||f(_a,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)}},ba=l({},ya,{get(e,t){if(t!==Symbol.unscopables)return ya.get(e,t,e)},has(e,t){return t[0]!==`_`&&!fe(t)}});function xa(){return null}function Sa(){return null}function Ca(e){}function wa(e){}function Ta(){return null}function Ea(){}function Da(e,t){return null}function Oa(){return Aa(`useSlots`).slots}function ka(){return Aa(`useAttrs`).attrs}function Aa(e){let t=X();return t.setupContext||=qs(t)}function ja(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Ma(e,t){let n=ja(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 Na(e,t){return!e||!t?e||t:p(e)&&p(t)?e.concat(t):l({},ja(e),ja(t))}function Pa(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Fa(e){let t=X(),n=Ls,r=e();Fs(),n&&Ns(!1);let i=()=>{Ps(t),n&&Ns(!0)},a=()=>{X()!==t&&t.scope.off(),Fs(),n&&Ns(!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 Ia=!0;function La(e){let t=Va(e),n=e.proxy,r=e.ctx;Ia=!1,t.beforeCreate&&za(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:O,filters:ae}=t;if(u&&Ra(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=Yt(t))}if(Ia=!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)Ba(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&&za(d,e,`c`);function k(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(k(qi,f),k(Ji,m),k(Yi,h),k(Xi,g),k(zi,_),k(Bi,y),k(na,te),k(ta,T),k(ea,E),k(Zi,S),k(Qi,w),k($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),O&&(e.directives=O),ne&&ri(e)}function Ra(e,t,n=a){p(e)&&(e=Ka(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),I(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function za(e,t,n){Bn(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ba(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=>Ba(e,t,n,r));else{let r=v(e.handler)?e.handler.bind(n):t[e.handler];v(r)&&Cr(i,r,e)}}}function Va(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=>Ha(c,e,o,!0)),Ha(c,t,o)),x(t)&&a.set(t,c),c}function Ha(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Ha(e,a,n,!0),i&&i.forEach(t=>Ha(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Ua[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Ua={data:Wa,props:Ya,emits:Ya,methods:Ja,computed:Ja,beforeCreate:qa,created:qa,beforeMount:qa,mounted:qa,beforeUpdate:qa,updated:qa,beforeDestroy:qa,beforeUnmount:qa,destroyed:qa,unmounted:qa,activated:qa,deactivated:qa,errorCaptured:qa,serverPrefetch:qa,components:Ja,directives:Ja,watch:Xa,provide:Wa,inject:Ga};function Wa(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 Ga(e,t){return Ja(Ka(e),Ka(t))}function Ka(e){if(p(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qa(e,t){return e?[...new Set([].concat(e,t))]:t}function Ja(e,t){return e?l(Object.create(null),e,t):t}function Ya(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),ja(e),ja(t??{})):t}function Xa(e,t){if(!e)return t;if(!t)return e;let n=l(Object.create(null),e);for(let r in t)n[r]=qa(e[r],t[r]);return n}function Za(){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 Qa=0;function $a(e,t){return function(n,r=null){v(n)||(n=l({},n)),r!=null&&!x(r)&&(r=null);let i=Za(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Qa++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:tc,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||Y(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,Js(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(Bn(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=eo;eo=c;try{return e()}finally{eo=t}}};return c}}var eo=null;function to(e,t,n=r){let i=X(),a=D(t),o=O(t),s=no(e,a),c=gn((s,c)=>{let l,u=r,d;return Sr(()=>{let t=e[a];A(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(!A(s,l)&&!(u!==r&&A(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),A(e,u)&&(A(e,s)&&!A(s,d)||p&&u!==r&&!A(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 no=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${D(t)}Modifiers`]||e[`${O(t)}Modifiers`];function ro(e,t,...n){if(e.isUnmounted)return;let i=e.vnode.props||r,a=n,o=t.startsWith(`update:`),s=o&&no(i,t.slice(7));s&&(s.trim&&(a=n.map(e=>y(e)?e.trim():e)),s.number&&(a=a.map(ce)));let c,l=i[c=k(t)]||i[c=k(D(t))];!l&&o&&(l=i[c=k(O(t))]),l&&Bn(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,Bn(u,e,6,a)}}var io=new WeakMap;function ao(e,t,n=!1){let r=n?io: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=ao(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 oo(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,O(t))||f(e,t))}function so(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=Cs(u.call(t,e,d,f,m,p,h)),y=s}else{let e=t;v=Cs(e.length>1?e(f,{attrs:s,slots:o,emit:l}):e(f,null)),y=t.props?s:lo(s)}}catch(t){os.length=0,Vn(t,e,1),v=Y(W)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(c)&&(y=uo(y,a)),b=ys(b,y,!1,!0))}return n.dirs&&(b=ys(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 co(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(fs(r)){if(r.type!==W||r.children===`v-if`){if(n)return;n=r}}else return}return n}var lo=e=>{let t;for(let n in e)(n===`class`||n===`style`||s(n))&&((t||={})[n]=e[n]);return t},uo=(e,t)=>{let n={};for(let r in e)(!c(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function fo(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?po(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(mo(o,r,n)&&!oo(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||po(r,o,l):!!o;return!1}function po(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(mo(t,e,a)&&!oo(n,a))return!0}return!1}function mo(e,t,n){let r=e[n],i=t[n];return n===`style`&&x(r)&&x(i)?!Ee(r,i):r!==i}function ho({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 go={},_o=()=>Object.create(go),vo=e=>Object.getPrototypeOf(e)===go;function yo(e,t,n,r=!1){let i={},a=_o();e.propsDefaults=Object.create(null),xo(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:Xt(i):e.type.props?i:a,e.attrs=a}function bo(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=F(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(oo(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]=So(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{xo(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!f(t,a)&&((r=O(a))===a||!f(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=So(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&&ft(e.attrs,`set`,``)}function xo(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:oo(e.emitsOptions,r)||(!(r in i)||l!==i[r])&&(i[r]=l,s=!0)}if(o){let t=F(n),i=c||r;for(let r=0;r<o.length;r++){let s=o[r];n[s]=So(a,t,s,i[s],e,!f(i,s))}}return s}function So(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=Ps(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===O(n))&&(r=!0))}return r}var Co=new WeakMap;function wo(e,t,n=!1){let a=n?Co: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]=wo(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]);To(t)&&(c[t]=r)}else if(s)for(let e in s){let t=D(e);if(To(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 To(e){return e[0]!==`$`&&!te(e)}var Eo=e=>e===`_`||e===`_ctx`||e===`$stable`,Do=e=>p(e)?e.map(Cs):[Cs(e)],Oo=(e,t,n)=>{if(t._n)return t;let r=B((...e)=>Do(t(...e)),n);return r._c=!1,r},ko=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Eo(n))continue;let i=e[n];if(v(i))t[n]=Oo(n,i,r);else if(i!=null){let e=Do(i);t[n]=()=>e}}},Ao=(e,t)=>{let n=Do(t);e.slots.default=()=>n},jo=(e,t,n)=>{for(let r in t)(n||!Eo(r))&&(e[r]=t[r])},Mo=(e,t,n)=>{let r=e.slots=_o();if(e.vnode.shapeFlag&32){let e=t._;e?(jo(r,t,n),n&&se(r,`_`,e,!0)):ko(t,r)}else t&&Ao(e,t)},No=(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:jo(a,t,n):(o=!t.$stable,ko(t,a)),s=t}else t&&(Ao(e,t),s={default:1});if(o)for(let e in a)!Eo(e)&&s[e]==null&&delete a[e]},H=ts;function Po(e){return Io(e)}function Fo(e){return Io(e,hi)}function Io(e,t){let n=de();n.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=a,insertStaticContent:_}=e,v=(e,t,n,r=null,a=null,o=null,s=void 0,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!ps(e,t)&&(r=j(e),pe(e,a,o,!0),e=null),t.patchFlag===-2&&(l=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===i&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);let{type:u,ref:d,shapeFlag:f}=t;switch(u){case is:y(e,t,n,r);break;case W:b(e,t,n,r);break;case as:e??x(t,n,r,s);break;case U:ie(e,t,n,r,a,o,s,c,l);break;default:f&1?w(e,t,n,r,a,o,s,c,l):f&6?O(e,t,n,r,a,o,s,c,l):(f&64||f&128)&&u.process(e,t,n,r,a,o,s,c,l,be)}d!=null&&a?si(d,e&&e.ref,o,t||e,!t):d==null&&e&&e.ref!=null&&si(e.ref,null,o,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)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,Lo(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)&&Ds(f,r,e)}_&&mr(e,null,r,`beforeMount`);let v=zo(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&H(()=>{try{f&&Ds(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||Go(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?ws(e[l]):Cs(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&&Ro(n,!1),(g=h.onVnodeBeforeUpdate)&&Ds(g,n,t,e),f&&mr(t,e,n,`beforeUpdate`),n&&Ro(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,Lo(t,a),o):s||ce(e,t,l,null,n,i,Lo(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)&&H(()=>{g&&Ds(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===U||!ps(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)&&Bo(e,t,!0)):ce(e,t,n,f,i,a,s,c,l)},O=(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):ae(t,n,r,i,a,o,c):k(e,t,c)},ae=(e,t,n,r,i,a,o)=>{let s=e.component=As(e,r,i);if(Ii(e)&&(s.ctx.renderer=be),Rs(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,A,o),!e.el){let r=s.subTree=Y(W);b(null,r,t,n),e.placeholder=r.el}}else A(s,e,t,n,i,a,o)},k=(e,t,n)=>{let r=t.component=e.component;if(fo(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,se(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},A=(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=Ho(e);if(n){t&&(t.el=c.el,se(e,t,o)),n.asyncDep.then(()=>{H(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Ro(e,!1),t?(t.el=c.el,se(e,t,o)):t=c,n&&oe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Ds(d,s,t,c),Ro(e,!0);let f=so(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),j(p),e,i,a),t.el=f.el,u===null&&ho(e,f.el),r&&H(r,i),(d=t.props&&t.props.onVnodeUpdated)&&H(()=>Ds(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(Ro(e,!1),l&&oe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Ds(o,d,t),Ro(e,!0),s&&Se){let t=()=>{e.subTree=so(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=so(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&H(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;H(()=>Ds(o,d,e),i)}(t.shapeFlag&256||d&&Ni(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&H(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Le(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=()=>Qn(u),Ro(e,!0),l()},se=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,bo(e,t.props,r,n),No(e,t.children,n),et(),tr(e),tt()},ce=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ue(l,d,n,r,i,a,o,s,c);return}if(f&256){le(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&_e(l,i,a),d!==l&&p(n,d)):u&16?m&16?ue(l,d,n,r,i,a,o,s,c):_e(l,i,a,!0):(u&8&&p(n,``),m&16&&E(d,n,r,i,a,o,s,c))},le=(e,t,n,r,a,o,s,c,l)=>{e||=i,t||=i;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;p<f;p++){let r=t[p]=l?ws(t[p]):Cs(t[p]);v(e[p],r,n,null,a,o,s,c,l)}u>d?_e(e,a,o,!0,!1,f):E(t,n,r,a,o,s,c,l,f)},ue=(e,t,n,r,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?ws(t[u]):Cs(t[u]);if(ps(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?ws(t[p]):Cs(t[p]);if(ps(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?ws(t[u]):Cs(t[u]),n,i,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)pe(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?ws(t[u]):Cs(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){pe(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&ps(r,t[_])){i=_;break}i===void 0?pe(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?Vo(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||Wo(f):r;C[u]===0?v(null,i,n,p,a,o,s,c,l):x&&(_<0||u!==w[_]?fe(i,n,p,2):_--)}}},fe=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){fe(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,be);return}if(c===U){o(a,t,n);for(let e=0;e<u.length;e++)fe(u[e],t,n,r);o(e.anchor,t,n);return}if(c===as){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),H(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[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)},pe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if((d===-2||l&&l.hasOnce)&&(i=!1),s!=null&&(et(),si(s,null,n,e,!0),tt()),p!=null&&(!e.ctx||e.ctx===t)&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Ni(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Ds(_,t,e),u&6)ge(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,be,r):l&&!l.hasOnce&&(a!==U||d>0&&d&64)?_e(l,t,n,!1,!0):(a===U&&d&384||!i&&u&16)&&_e(c,t,n),r&&me(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&H(()=>{_&&Ds(_,t,e),h&&mr(e,null,t,`unmounted`),v&&(e.el=null)},n)},me=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===U){he(n,r);return}if(t===as){C(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},he=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},ge=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Uo(c),Uo(l),r&&oe(r),i.stop(),a?(a.flags|=8,pe(o,e,t,n)):e.vnode.el&&o&&(o.transition=e.vnode.transition,pe(o,e,t,n)),s&&H(s,t),H(()=>{e.isUnmounted=!0},t)},_e=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)pe(e[o],t,n,r,i)},j=e=>{if(e.shapeFlag&6)return j(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},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(pe(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,tr(r),nr(),!1)},be={p:v,um:pe,m:fe,r:me,mt:ae,mc:E,pc:ce,pbc:re,n:j,o:e},xe,Se;return t&&([xe,Se]=t(be)),{render:ye,hydrate:xe,createApp:$a(ye,xe)}}function Lo({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 Ro({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function zo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Bo(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]=ws(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Bo(t,a)),a.type===is&&(a.patchFlag===-1&&(a=i[e]=ws(a)),a.el=t.el),a.type===W&&!a.el&&(a.el=t.el)}}function Vo(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 Ho(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ho(t)}function Uo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Wo(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Wo(t.subTree):null}var Go=e=>e.__isSuspense,Ko=0,qo={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)Yo(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback&&!a.isHydrating){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Xo(e,t,n,r,i,o,s,c,l)}},hydrate:Qo,normalize:$o};function Jo(e,t){let n=e.props&&e.props[t];v(n)&&n()}function Yo(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=Zo(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?(Jo(e,`onPending`),Jo(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),ns(f,e.ssFallback)):f.resolve(!1,!0)}function Xo(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,ps(h,f)?(d.deps++,c(h,f,_?n:d.hiddenContainer,null,i,d,a,o,s),d.deps--,d.deps<=0?d.resolve():g&&!_&&!d.isFallbackMountPending&&(c(m,p,n,r,i,null,a,o,s),ns(d,p))):(d.pendingId=Ko++,_?(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),ns(d,p))):m&&ps(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&&ps(m,f))c(m,f,n,r,i,d,a,o,s),ns(d,f);else if(Jo(t,`onPending`),d.pendingBranch=f,d.pendingId=f.shapeFlag&512?f.component.suspenseId:Ko++,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 Zo(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=rs(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?le(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:Ko++,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),er(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&&H(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,ns(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&&er(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(_=void 0,t.deps--,t.deps===0&&!n&&t.resolve()),Jo(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Jo(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),ns(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=>{Vn(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;if(Fs(),i&&!e.scope.active){r&&--x.deps===0&&x.resolve();return}e.asyncResolved=!0;let{vnode:s}=e;Bs(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)),ho(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 Qo(e,t,n,r,i,a,o,s,c){let l=t.suspense=Zo(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 $o(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=es(r?n.default:n),e.ssFallback=r?es(n.fallback):Y(W)}function es(e){let t;if(v(e)){let n=ls&&e._c;n&&(e._d=!1,G()),e=e(),n&&(e._d=!0,t=ss,cs())}return p(e)&&(e=co(e)),e=Cs(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function ts(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):er(e)}function ns(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,ho(r,i))}function rs(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var U=Symbol.for(`v-fgt`),is=Symbol.for(`v-txt`),W=Symbol.for(`v-cmt`),as=Symbol.for(`v-stc`),os=[],ss=null;function G(e=!1){os.push(ss=e?null:[])}function cs(){os.pop(),ss=os[os.length-1]||null}var ls=1;function us(e,t=!1){ls+=e,e<0&&ss&&t&&(ss.hasOnce=!0)}function ds(e){return e.dynamicChildren=ls>0?ss||i:null,cs(),ls>0&&ss&&ss.push(e),e}function K(e,t,n,r,i,a){return ds(J(e,t,n,r,i,a,!0))}function q(e,t,n,r,i){return ds(Y(e,t,n,r,i,!0))}function fs(e){return e?e.__v_isVNode===!0:!1}function ps(e,t){return e.type===t.type&&e.key===t.key}function ms(e){}var hs=({key:e})=>e??null,gs=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:y(e)||I(e)||v(e)?{i:z,r:e,k:t,f:!!n}:e);function J(e,t=null,n=null,r=0,i=null,a=e===U?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&hs(t),ref:t&&gs(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:z};return s?(Ts(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),ls>0&&!o&&ss&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&ss.push(c),c}var Y=_s;function _s(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===oa)&&(e=W),fs(e)){let r=ys(e,t,!0);return n&&Ts(r,n),ls>0&&!a&&ss&&(r.shapeFlag&6?ss[ss.indexOf(e)]=r:ss.push(r)),r.patchFlag=-2,r}if(Xs(e)&&(e=e.__vccOpts),t){t=vs(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=j(e)),x(n)&&(rn(n)&&!p(n)&&(n=l({},n)),t.style=pe(n))}let o=y(e)?1:Go(e)?128:kr(e)?64:x(e)?4:v(e)?2:0;return J(e,t,n,r,i,o,a,!0)}function vs(e){return e?rn(e)||vo(e)?l({},e):e:null}function ys(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Es(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&hs(l),ref:t&&t.ref?n&&a?p(a)?a.concat(gs(t)):[a,gs(t)]:gs(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==U?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ys(e.ssContent),ssFallback:e.ssFallback&&ys(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&r&&ei(u,c.clone(u)),u}function bs(e=` `,t=0){return Y(is,null,e,t)}function xs(e,t){let n=Y(as,null,e);return n.staticCount=t,n}function Ss(e=``,t=!1){return t?(G(),q(W,null,e)):Y(W,null,e)}function Cs(e){return e==null||typeof e==`boolean`?Y(W):p(e)?Y(U,null,e.slice()):fs(e)?ws(e):Y(is,null,String(e))}function ws(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ys(e)}function Ts(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),Ts(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!vo(t)?t._ctx=z:r===3&&z&&(z.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(v(t)){if(r&65){Ts(e,{default:t});return}t={default:t,_ctx:z},n=32}else t=String(t),r&64?(n=16,t=[bs(t)]):n=8;e.children=t,e.shapeFlag|=n}function Es(...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=j([t.class,r.class]));else if(e===`style`)t.style=pe([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 Ds(e,t,n,r=null){Bn(e,t,7,[n,r])}var Os=Za(),ks=0;function As(e,t,n){let i=e.type,a=(t?t.appContext:e.appContext)||Os,o={uid:ks++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Me(!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:wo(i,a),emitsOptions:ao(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=ro.bind(null,o),e.ce&&e.ce(o),o}var js=null,X=()=>js||z,Ms,Ns;{let e=de(),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)}};Ms=t(`__VUE_INSTANCE_SETTERS__`,e=>js=e),Ns=t(`__VUE_SSR_SETTERS__`,e=>Ls=e)}var Ps=e=>{let t=js;return Ms(e),e.scope.on(),()=>{e.scope.off(),Ms(t)}},Fs=()=>{js&&js.scope.off(),Ms(null)};function Is(e){return e.vnode.shapeFlag&4}var Ls=!1;function Rs(e,t=!1,n=!1){t&&Ns(t);let{props:r,children:i}=e.vnode,a=Is(e);yo(e,r,a,t),Mo(e,i,n||t);let o=a?zs(e,t):void 0;return t&&Ns(!1),o}function zs(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ya);let{setup:r}=n;if(r){et();let n=e.setupContext=r.length>1?qs(e):null,i=Ps(e),a=zn(r,e,0,[e.props,n]),o=S(a);if(tt(),i(),(o||e.sp)&&!Ni(e)&&ri(e),o){if(a.then(Fs,Fs),t)return a.then(n=>{Ns(!0);try{Bs(e,n,t)}finally{Ns(!1)}}).catch(t=>{Vn(t,e,0)});e.asyncDep=a}else Bs(e,a,t)}else Gs(e,t)}function Bs(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:x(t)&&(e.setupState=mn(t)),Gs(e,n)}var Vs,Hs;function Us(e){Vs=e,Hs=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,ba))}}var Ws=()=>!Vs;function Gs(e,t,n){let r=e.type;if(!e.render){if(!t&&Vs&&!r.render){let t=r.template||Va(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=Vs(t,s)}}e.render=r.render||a,Hs&&Hs(e)}{let t=Ps(e);et();try{La(e)}finally{tt(),t()}}}var Ks={get(e,t){return dt(e,`get`,``),e[t]}};function qs(e){return{attrs:new Proxy(e.attrs,Ks),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Js(e){return e.exposed?e.exposeProxy||=new Proxy(mn(an(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in _a)return _a[n](e)},has(e,t){return t in e||t in _a}}):e.proxy}function Ys(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}function Xs(e){return v(e)&&`__vccOpts`in e}var Z=(e,t)=>Cn(e,t,Ls);function Zs(e,t,n){try{us(-1);let r=arguments.length;return r===2?x(t)&&!p(t)?fs(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&fs(n)&&(n=[n]),Y(e,t,n))}finally{us(1)}}function Qs(){}function $s(e,t,n,r){let i=n[r];if(i&&ec(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function ec(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(A(n[e],t[e]))return!1;return ls>0&&ss&&ss.push(e),!0}var tc=`3.5.43`,nc=a,rc=Rn,ic=ar,ac=sr,oc={createComponentInstance:As,setupComponent:Rs,renderComponentRoot:so,setCurrentRenderingInstance:lr,isVNode:fs,normalizeVNode:Cs,getComponentPublicInstance:Js,ensureValidVNode:ma,pushWarningContext:Pn,popWarningContext:Fn},sc=void 0,cc=typeof window<`u`&&window.trustedTypes;if(cc)try{sc=cc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var lc=sc?e=>sc.createHTML(e):e=>e,uc=`http://www.w3.org/2000/svg`,dc=`http://www.w3.org/1998/Math/MathML`,fc=typeof document<`u`?document:null,pc=fc&&fc.createElement(`template`),mc={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`?fc.createElementNS(uc,e):t===`mathml`?fc.createElementNS(dc,e):n?fc.createElement(e,{is:n}):fc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>fc.createTextNode(e),createComment:e=>fc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>fc.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{pc.innerHTML=lc(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=pc.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]}},hc=`transition`,gc=`animation`,_c=Symbol(`_vtc`),vc={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},yc=l({},Gr,vc),bc=(e=>(e.displayName=`Transition`,e.props=yc,e))((e,{slots:t})=>Zs(Yr,Cc(e),t)),xc=(e,t=[])=>{p(e)?e.forEach(e=>e(...t)):e&&e(...t)},Sc=e=>e?p(e)?e.some(e=>e.length>1):e.length>1:!1;function Cc(e){let t={};for(let n in e)n in vc||(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=wc(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,Dc(e,t?d:s),Dc(e,t?u:o),n&&n()},E=(e,t)=>{e._isLeaving=!1,Dc(e,f),Dc(e,m),Dc(e,p),t&&t()},te=e=>(t,n)=>{let i=e?w:y,o=()=>T(t,e,n);xc(i,[t,o]),Oc(()=>{Dc(t,e?c:a),Ec(t,e?d:s),Sc(i)||Ac(t,r,g,o)})};return l(t,{onBeforeEnter(e){xc(v,[e]),Ec(e,a),Ec(e,o)},onBeforeAppear(e){xc(C,[e]),Ec(e,c),Ec(e,u)},onEnter:te(!1),onAppear:te(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>E(e,t);Ec(e,f),e._enterCancelled?(Ec(e,p),Pc(e)):(Pc(e),Ec(e,p)),Oc(()=>{e._isLeaving&&(Dc(e,f),Ec(e,m),Sc(x)||Ac(e,r,_,n))}),xc(x,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),xc(b,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),xc(ee,[e])},onLeaveCancelled(e){E(e),xc(S,[e])}})}function wc(e){if(e==null)return null;if(x(e))return[Tc(e.enter),Tc(e.leave)];{let t=Tc(e);return[t,t]}}function Tc(e){return le(e)}function Ec(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[_c]||(e[_c]=new Set)).add(t)}function Dc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[_c];n&&(n.delete(t),n.size||(e[_c]=void 0))}function Oc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var kc=0;function Ac(e,t,n,r){let i=e._endId=++kc,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=jc(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 jc(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${hc}Delay`),a=r(`${hc}Duration`),o=Mc(i,a),s=r(`${gc}Delay`),c=r(`${gc}Duration`),l=Mc(s,c),u=null,d=0,f=0;t===hc?o>0&&(u=hc,d=o,f=a.length):t===gc?l>0&&(u=gc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?hc:gc:null,f=u?u===hc?a.length:c.length:0);let p=u===hc&&/\b(?:transform|all)(?:,|$)/.test(r(`${hc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Mc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Nc(t)+Nc(e[n])))}function Nc(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Pc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Fc(e,t,n){let r=e[_c];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ic=Symbol(`_vod`),Lc=Symbol(`_vsh`),Rc={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Ic]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):zc(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),zc(e,!0),r.enter(e)):r.leave(e,()=>{zc(e,!1)}):zc(e,t))},beforeUnmount(e,{value:t}){zc(e,t)}};function zc(e,t){e.style.display=t?e[Ic]:`none`,e[Lc]=!t}function Bc(){Rc.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var Vc=Symbol(``);function Hc(e){let t=X();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>Wc(e,n))},r=()=>{let r=e(t.proxy);t.ce?Wc(t.ce,r):Uc(t.subTree,r),n(r)};Yi(()=>{er(r)}),Ji(()=>{Cr(r,a,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Qi(()=>e.disconnect())})}function Uc(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Uc(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Wc(e.el,t);else if(e.type===U)e.children.forEach(e=>Uc(e,t));else if(e.type===as){let{el:n,anchor:r}=e;for(;n&&(Wc(n,t),n!==r);)n=n.nextSibling}}function Wc(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=je(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[Vc]=r}}var Gc=/(?:^|;)\s*display\s*:/;function Kc(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]??Jc(r,t,``)}else for(let e in t)n[e]??Jc(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Jc(r,i,``):Qc(e,i,!y(t)&&t?t[i]:void 0,o)||Jc(r,i,o)}}else if(i){if(t!==n){let e=r[Vc];e&&(n+=`;`+e),r.cssText=n,a=Gc.test(n)}}else t&&e.removeAttribute(`style`);Ic in e&&(e[Ic]=a?r.display:``,e[Lc]&&(r.display=`none`))}var qc=/\s*!important$/;function Jc(e,t,n){if(p(n))n.forEach(n=>Jc(e,t,n));else if(n??=``,t.startsWith(`--`))qc.test(n)?e.setProperty(t,n.replace(qc,``),`important`):e.setProperty(t,n);else{let r=Zc(e,t);qc.test(n)?e.setProperty(O(r),n.replace(qc,``),`important`):e[r]=n}}var Yc=[`Webkit`,`Moz`,`ms`],Xc={};function Zc(e,t){let n=Xc[t];if(n)return n;let r=D(t);if(r!==`filter`&&r in e)return Xc[t]=r;r=ae(r);for(let n=0;n<Yc.length;n++){let i=Yc[n]+r;if(i in e)return Xc[t]=i}return t}function Qc(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&y(r)&&n===r}var $c=`http://www.w3.org/1999/xlink`;function el(e,t,n,r,i,a=be(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS($c,t.slice(6,t.length)):e.setAttributeNS($c,t,n):n==null||a&&!xe(n)?e.removeAttribute(t):e.setAttribute(t,a?``:b(n)?String(n):n)}function tl(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?lc(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=xe(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 nl(e,t,n,r){e.addEventListener(t,n,r)}function rl(e,t,n,r){e.removeEventListener(t,n,r)}var il=Symbol(`_vei`);function al(e,t,n,r,i=null){let a=e[il]||(e[il]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=cl(t);r?nl(e,n,a[t]=fl(r,i),s):o&&(rl(e,n,o,s),a[t]=void 0)}}var ol=/(Once|Passive|Capture)$/,sl=/^on:?(?:Once|Passive|Capture)$/;function cl(e){let t,n;for(;(n=e.match(ol))&&!sl.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):O(e.slice(2)),t]}var ll=0,ul=Promise.resolve(),dl=()=>ll||=(ul.then(()=>ll=0),Date.now());function fl(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&&Bn(e,t,5,a)}}else Bn(r,t,5,[e])};return n.value=e,n.attached=dl(),n}var pl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ml=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Fc(e,r,o):t===`style`?Kc(e,n,r):s(t)?c(t)||al(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):hl(e,t,r,o))?(tl(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&el(e,t,r,o,a,t!==`value`)):e._isVueCE&&(gl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(r)))?tl(e,D(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),el(e,t,r,o))};function hl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&pl(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 pl(t)&&y(n)?!1:t in e}function gl(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 _l={};function vl(e,t,n){let r=V(e,t);T(r)&&(r=l({},r,t));class i extends xl{constructor(e){super(r,e,n)}}return i.def=r,i}var yl=((e,t)=>vl(e,t,pu)),bl=typeof HTMLElement<`u`?HTMLElement:class{},xl=class e extends bl{constructor(e,t={},n=fu){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!==fu?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,Xn(()=>{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]=le(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:()=>R(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):_l,r=D(e);t&&this._numberProps&&this._numberProps[r]&&(n=le(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===_l?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(O(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(O(e),t+``):t||this.removeAttribute(O(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),uu(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=Y(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),O(e)!==e&&t(O(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 Sl(e){let t=X();return t&&t.ce||null}function Cl(){let e=Sl();return e&&e.shadowRoot}function wl(e=`$style`){{let t=X();if(!t)return r;let n=t.type.__cssModules;return n&&n[e]||r}}var Tl=new WeakMap,El=new WeakMap,Dl=Symbol(`_moveCb`),Ol=Symbol(`_enterCb`),kl=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:l({},yc,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=X(),r=Ur(),i,a;return Xi(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Pl(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(Al),i.forEach(jl);let r=i.filter(Ml);Pc(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;Ec(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Dl]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Dl]=null,Dc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=F(e),s=Cc(o),c=o.tag||U;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&!t.el[Lc]&&(i.push(t),ei(t,Zr(t,s,r,n)),Tl.set(t,Nl(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 Y(c,null,a)}}});function Al(e){let t=e.el;t[Dl]&&t[Dl](),t[Ol]&&t[Ol]()}function jl(e){El.set(e,Nl(e.el))}function Ml(e){let t=Tl.get(e),n=El.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 Nl(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Pl(e,t,n){let r=e.cloneNode(),i=e[_c];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}=jc(r);return a.removeChild(r),o}var Fl=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return p(t)?e=>oe(t,e):t};function Il(e){e.target.composing=!0}function Ll(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Rl=Symbol(`_assign`),zl=Symbol(`_initialValue`);function Bl(e,t,n){return t&&(e=e.trim()),n&&(e=ce(e)),e}var Vl={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[zl]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[zl]=e.defaultValue.replace(/\r\n?/g,`
4
+ `))),e[Rl]=Fl(i);let a=r||i.props&&i.props.type===`number`;nl(e,t?`change`:`input`,t=>{t.target.composing||e[Rl](Bl(e.value,n,a))}),(n||a)&&nl(e,`change`,()=>{e.value=Bl(e.value,n,a)}),t||(nl(e,`compositionstart`,Il),nl(e,`compositionend`,Ll),nl(e,`change`,Ll))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[zl];delete e[zl],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[Rl](Bl(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Rl]=Fl(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?ce(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)}},Hl={deep:!0,created(e,t,n){e[Rl]=Fl(n),nl(e,`change`,()=>{let t=e._modelValue,n=Jl(e),r=e.checked,i=e[Rl];if(p(t)){let e=De(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(Yl(e,r))})},mounted:Ul,beforeUpdate(e,t,n){e[Rl]=Fl(n),Ul(e,t,n)}};function Ul(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(p(t))i=De(t,r.props.value)>-1;else if(h(t))i=t.has(r.props.value);else{if(t===n)return;i=Ee(t,Yl(e,!0))}e.checked!==i&&(e.checked=i)}var Wl={created(e,{value:t},n){e.checked=Ee(t,n.props.value),e[Rl]=Fl(n),nl(e,`change`,()=>{e[Rl](Jl(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Rl]=Fl(r),t!==n&&(e.checked=Ee(t,r.props.value))}},Gl={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,nl(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?ce(Jl(e)):Jl(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[Rl](i)}finally{Xn(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[Rl]=Fl(r)},mounted(e,{value:t}){ql(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Rl]=Fl(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Kl(t,n[1],n[0]))&&ql(e,t)}};function Kl(e,t,n){if(!n||p(e))return Ee(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 ql(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=Jl(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):De(t,o)>-1}else a.selected=t.has(o)}else if(Ee(Jl(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Jl(e){return`_value`in e?e._value:e.value}function Yl(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Xl={created(e,t,n){Ql(e,t,n,null,`created`)},mounted(e,t,n){Ql(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Ql(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Ql(e,t,n,r,`updated`)}};function Zl(e,t){switch(e){case`SELECT`:return Gl;case`TEXTAREA`:return Vl;default:switch(t){case`checkbox`:return Hl;case`radio`:return Wl;default:return Vl}}}function Ql(e,t,n,r,i){let a=Zl(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function $l(){Vl.getSSRProps=({value:e})=>({value:e}),Wl.getSSRProps=({value:e},t)=>{if(t.props&&Ee(t.props.value,e))return{checked:!0}},Hl.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&De(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}},Xl.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=Zl(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var eu=[`ctrl`,`shift`,`alt`,`meta`],tu={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)=>eu.some(n=>e[`${n}Key`]&&!t.includes(n))},nu=(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=tu[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},ru={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},iu=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=O(n.key);if(t.some(e=>e===r||ru[e]===r))return e(n)}))},au=l({patchProp:ml},mc),ou,su=!1;function cu(){return ou||=Po(au)}function lu(){return ou=su?ou:Fo(au),su=!0,ou}var uu=((...e)=>{cu().render(...e)}),du=((...e)=>{lu().hydrate(...e)}),fu=((...e)=>{let t=cu().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=hu(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,mu(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),pu=((...e)=>{let t=lu().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=hu(e);if(t)return n(t,!0,mu(t))},t});function mu(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function hu(e){return y(e)?document.querySelector(e):e}var gu=!1,_u=()=>{gu||(gu=!0,$l(),Bc())},vu=t({BaseTransition:()=>Yr,BaseTransitionPropsValidators:()=>Gr,Comment:()=>W,DeprecationTypes:()=>null,EffectScope:()=>Me,ErrorCodes:()=>Ln,ErrorTypeStrings:()=>rc,Fragment:()=>U,KeepAlive:()=>Li,ReactiveEffect:()=>Le,Static:()=>as,Suspense:()=>qo,Teleport:()=>Rr,Text:()=>is,TrackOpTypes:()=>wn,Transition:()=>bc,TransitionGroup:()=>kl,TriggerOpTypes:()=>Tn,VueElement:()=>xl,assertNumber:()=>In,callWithAsyncErrorHandling:()=>Bn,callWithErrorHandling:()=>zn,camelize:()=>D,capitalize:()=>ae,cloneVNode:()=>ys,compatUtils:()=>null,compile:()=>yu,computed:()=>Z,createApp:()=>fu,createBlock:()=>q,createCommentVNode:()=>Ss,createElementBlock:()=>K,createElementVNode:()=>J,createHydrationRenderer:()=>Fo,createPropsRestProxy:()=>Pa,createRenderer:()=>Po,createSSRApp:()=>pu,createSlots:()=>fa,createStaticVNode:()=>xs,createTextVNode:()=>bs,createVNode:()=>Y,customRef:()=>gn,defineAsyncComponent:()=>Pi,defineComponent:()=>V,defineCustomElement:()=>vl,defineEmits:()=>Sa,defineExpose:()=>Ca,defineModel:()=>Ea,defineOptions:()=>wa,defineProps:()=>xa,defineSSRCustomElement:()=>yl,defineSlots:()=>Ta,devtools:()=>ic,effect:()=>Xe,effectScope:()=>Ne,getCurrentInstance:()=>X,getCurrentScope:()=>Pe,getCurrentWatcher:()=>kn,getTransitionRawChildren:()=>ti,guardReactiveProps:()=>vs,h:()=>Zs,handleError:()=>Vn,hasInjectionContext:()=>_r,hydrate:()=>du,hydrateOnIdle:()=>Di,hydrateOnInteraction:()=>ji,hydrateOnMediaQuery:()=>Ai,hydrateOnVisible:()=>ki,initCustomFormatter:()=>Qs,initDirectivesForSSR:()=>_u,inject:()=>gr,isMemoSame:()=>ec,isProxy:()=>rn,isReactive:()=>en,isReadonly:()=>tn,isRef:()=>I,isRuntimeOnly:()=>Ws,isShallow:()=>nn,isVNode:()=>fs,markRaw:()=>an,mergeDefaults:()=>Ma,mergeModels:()=>Na,mergeProps:()=>Es,nextTick:()=>Xn,nodeOps:()=>mc,normalizeClass:()=>j,normalizeProps:()=>ve,normalizeStyle:()=>pe,onActivated:()=>zi,onBeforeMount:()=>qi,onBeforeUnmount:()=>Zi,onBeforeUpdate:()=>Yi,onDeactivated:()=>Bi,onErrorCaptured:()=>na,onMounted:()=>Ji,onRenderTracked:()=>ta,onRenderTriggered:()=>ea,onScopeDispose:()=>Fe,onServerPrefetch:()=>$i,onUnmounted:()=>Qi,onUpdated:()=>Xi,onWatcherCleanup:()=>An,openBlock:()=>G,patchProp:()=>ml,popScopeId:()=>dr,provide:()=>hr,proxyRefs:()=>mn,pushScopeId:()=>ur,queuePostFlushCb:()=>er,reactive:()=>Yt,readonly:()=>Zt,ref:()=>L,registerRuntimeCompiler:()=>Us,render:()=>uu,renderList:()=>da,renderSlot:()=>pa,resolveComponent:()=>aa,resolveDirective:()=>ca,resolveDynamicComponent:()=>sa,resolveFilter:()=>null,resolveTransitionHooks:()=>Zr,setBlockTracking:()=>us,setDevtoolsHook:()=>ac,setTransitionHooks:()=>ei,shallowReactive:()=>Xt,shallowReadonly:()=>Qt,shallowRef:()=>cn,ssrContextKey:()=>vr,ssrUtils:()=>oc,stop:()=>Ze,toDisplayString:()=>M,toHandlerKey:()=>k,toHandlers:()=>ha,toRaw:()=>F,toRef:()=>bn,toRefs:()=>_n,toValue:()=>fn,transformVNodeArgs:()=>ms,triggerRef:()=>dn,unref:()=>R,useAttrs:()=>ka,useCssModule:()=>wl,useCssVars:()=>Hc,useHost:()=>Sl,useId:()=>ni,useModel:()=>to,useSSRContext:()=>yr,useShadowRoot:()=>Cl,useSlots:()=>Oa,useTemplateRef:()=>ii,useTransitionState:()=>Ur,vModelCheckbox:()=>Hl,vModelDynamic:()=>Xl,vModelRadio:()=>Wl,vModelSelect:()=>Gl,vModelText:()=>Vl,vShow:()=>Rc,version:()=>tc,warn:()=>nc,watch:()=>Cr,watchEffect:()=>br,watchPostEffect:()=>xr,watchSyncEffect:()=>Sr,withAsyncContext:()=>Fa,withCtx:()=>B,withDefaults:()=>Da,withDirectives:()=>pr,withKeys:()=>iu,withMemo:()=>$s,withModifiers:()=>nu,withScopeId:()=>fr}),yu=()=>{},Q={bus:{agentManifestChanged:`agent:manifest:changed`,agentToolRegistered:`agent:tool:registered`,agentToolUnregistered:`agent:tool:unregistered`,agentResourceRegistered:`agent:resource:registered`,agentResourceUnregistered:`agent:resource:unregistered`},client:{isTrustedUpdated:`rpc:is-trusted:updated`,error:`rpc:error`,connectionStatus:`connection:status`,connectionError:`connection:error`},broadcast:{authRevoked:`devframe:auth:revoked`,clientStateUpdated:`devframe:rpc:client-state:updated`,clientStatePatch:`devframe:rpc:client-state:patch`,streamingChunk:`devframe:streaming:chunk`,streamingEnd:`devframe:streaming:end`,streamingUploadCancel:`devframe:streaming:upload-cancel`},inPageChannel:{panelStateUpdated:`devframe:in-page:panel-state:updated`,panelStatePatch:`devframe:in-page:panel-state:patch`},postMessage:{remoteAssetsError:`devframe:remote-assets-error`,inPageChannel:`devframe:in-page-channel`}},bu=`__connection.json`,xu=`__DEVFRAME_CONNECTION__`,Su=`x-birpc-session`,Cu=`__rpc-dump/index.json`,wu=`devframe:services`,Tu=`devframe_otp`,Eu=`devframe_auth_token`;Q.postMessage.remoteAssetsError;function Du(e){return typeof e==`string`?`'${e}'`:new ju().serialize(e)}var Ou=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,ku=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[Ou.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function Au(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&&ku[n]?ku[n]:n+128,s=a<128&&ku[a]?ku[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 ju=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?Au(e,t):n===`number`&&r===`number`?e-t:Au(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(Au),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})(),Mu=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Nu=[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],Pu=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,Fu=[],Iu=class{_data=new Lu;_hash=new Lu([...Mu]);_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)Fu[n]=e[t+n]|0;else{let e=Fu[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=Fu[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;Fu[n]=t+Fu[n-7]+i+Fu[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+Nu[n]+Fu[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=Lu.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 Lu(t,i)}},Lu=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(Pu.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 Ru(e){return new Iu().finalize(e).toBase64()}function zu(e){return Ru(Du(e))}function Bu(e){return zu(e)}var Vu=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>Bu(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 Hu(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 Uu={blue:Hu(34,39),cyan:Hu(36,39),gray:Hu(90,39),green:Hu(32,39),red:Hu(31,39),yellow:Hu(33,39),bold:Hu(1,22),dim:Hu(2,22),reset:Hu(0,0),underline:Hu(4,24)};function Wu(e,...t){return typeof e==`function`?e(...t):e}var Gu=Error.captureStackTrace,Ku=class e extends Error{name;code;docs;fix;sources;data;get why(){return this.message}constructor(t,n=e){super(t.why,{cause:t.cause}),this.code=this.name=t.code,this.fix=t.fix,this.docs=t.docs,this.sources=t.sources,this.data=t.data,Gu?.(this,n)}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause,data:this.data,stack:this.stack}}};function qu(e,t){return typeof e==`string`?`${e}/${t.toLowerCase()}`:e?.(t)}function Ju(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||qu(r,i),s=(e={},n={})=>{let r=new Ku({code:i,why:Wu(a.why,e),fix:Wu(a.fix,e),docs:o,cause:e.cause,sources:e.sources,data:Wu(a.data,e)},s);for(let e of t)e(r,n);return r};n[i]=s}return n}function Yu(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(`
5
+ `)}}var Xu=Yu(Uu);function Zu(e,{method:t=`warn`}={}){console[t](Xu(e))}function Qu(e){return Ju({...e,reporters:[Zu,...e.reporters??[]]})}var $u=Qu({docsBase:`https://devfra.me/errors`,codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is \`false\`; MCP requires JSON-serializable data.`,fix:"Remove `jsonSerializable: false`, or remove `agent` to keep it RPC-only."},DF0020:{why:e=>`RPC function "${e.name}" declares \`jsonSerializable: true\` but the value at "${e.path}" is a ${e.type}.`,fix:"Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape."},DF0021:{why:e=>`RPC function "${e.name}" is already registered`,fix:"Use the `force` parameter to overwrite an existing registration."},DF0022:{why:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DF0023:{why:e=>`RPC function "${e.name}" is not registered`},DF0024:{why:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DF0025:{why:e=>`Function "${e.name}" not found in dump store`},DF0026:{why:e=>`No dump match for "${e.name}" with args: ${e.args}`},DF0027:{why:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DF0028:{why:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,fix:"Remove `snapshot: true`, or change the function type to `query`."},DF0043:{why:e=>`RPC function "${e.name}" received an invalid argument at position ${e.index}: ${e.issues}`,fix:"Pass a value that satisfies the `args` schema declared for this function."},DF0044:{why:e=>`RPC function "${e.name}" returned a value that failed its \`returns\` schema: ${e.issues}`,fix:"Make the handler return a value that satisfies the `returns` schema, or relax the schema."}}});function ed(e){if(e.agent&&e.jsonSerializable===!1)throw $u.DF0019({name:e.name});e.agent&&!e.jsonSerializable&&(e.jsonSerializable=!0)}async function td(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function nd(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 rd(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 td(i,n[r]);if(a.issues)throw $u.DF0043({name:e,index:r,issues:nd(a.issues)})}return r}async function id(e,t,n){if(!t)return n;let r=await td(t,n);if(r.issues)throw $u.DF0044({name:e,issues:nd(r.issues)});return n}async function ad(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 od(e,t){let n=e.handler;if(!n){let r=await ad(e,t);if(!r.handler)throw $u.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 rd(e.name,r,t),o=await a(...n);return await id(e.name,i,o)}}var sd=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 od(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 $u.DF0021({name:e.name});ed(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 $u.DF0022({name:e.name});ed(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 od(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw $u.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 cd(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 ud(t,`undefined`,r,e);return n}return i!==null&&ld(i,r,e,t),n})}function ld(e,t,n,r){if(typeof e==`bigint`)throw ud(r,`BigInt`,t,n);if(typeof e!=`object`)return;if(e instanceof Map)throw ud(r,`Map`,t,n);if(e instanceof Set)throw ud(r,`Set`,t,n);if(e instanceof Date)throw ud(r,`Date`,t,n);if(Array.isArray(e))return;let i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)throw ud(r,e.constructor?.name??`class instance`,t,n)}function ud(e,t,n,r){let i=dd(n,r);return $u.DF0020({name:e||`<anonymous>`,type:t,path:i})}function dd(e,t){return Array.isArray(e)?`[${t}]`:t===``?`<root>`:t}function fd(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e<t;e++){let t=r[e];t&&t(...n)}}function n(n,...r){t(n,...r),delete e[n]}function r(t,n){return(e[t]||=[]).push(n),()=>{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var pd=/^[\w+.-]{2,}:\/\//;function md(e){return e.endsWith(`/`)?e:`${e}/`}function hd(e){return(e.endsWith(`/`)?e.slice(0,-1):e)||`/`}function gd(e,...t){let n=e;for(let e of t)e&&e!==`/`&&(n=n?md(n)+e.replace(/^\.?\//,``):e);return n}function _d(e,t){if(!t||t===`/`||pd.test(e))return e;let n=hd(t);return e.startsWith(n)?e:gd(n,e)}function vd(e,t){let n=e.match(pd);return t+(n?e.slice(n[0].length):e)}var yd=`__DEVFRAME_CONNECTION_META__`,bd=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function xd(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 Sd(){return xd(xu)}function Cd(){return xd(yd)}function wd(e){if(e)return e;try{let e=localStorage.getItem(bd);if(e)return e}catch{}return xd(bd)}function Td(e){globalThis[xu]=e,globalThis[yd]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&Ed(e.authToken)}function Ed(e){try{localStorage.setItem(bd,e)}catch{}globalThis[bd]=e;let t=Sd();t&&(globalThis[xu]={...t,authToken:e})}function Dd(e){let t=_d(bu,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function Od(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function kd(){let e=Sd();if(e)return Od(e,wd()??e.authToken??e.connectionMeta.authToken);let t=Cd();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??Dd(`./`),authToken:wd(t.authToken)}}async function Ad(e={}){if(e.connection){let t=Od(e.connection,wd(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return Td(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:Dd(t[0]??`./`),authToken:wd(e.authToken??e.connectionMeta.authToken)};return Td(n),n}let n=kd();if(n){let t=Od(n,wd(e.authToken??n.authToken??n.connectionMeta.authToken));return Td(t),t}let r=[];for(let n of t){let t=_d(bu,n),i=Dd(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:wd(e.authToken??r.authToken)};return Td(o),o}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var jd=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function Md(e=Tu){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function Nd(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 Pd(e=Tu){let t=Md(e);return t&&Nd(e),t}async function Fd(e,t={}){let n=Pd(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function Id(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(wu,{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 Ld=Symbol.for(`immer-nothing`),Rd=Symbol.for(`immer-draftable`),$=Symbol.for(`immer-state`);function zd(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Bd=Object,Vd=Bd.getPrototypeOf,Hd=`constructor`,Ud=`prototype`,Wd=`configurable`,Gd=`enumerable`,Kd=`writable`,qd=`value`,Jd=e=>!!e&&!!e[$];function Yd(e){return e?Qd(e)||of(e)||!!e[Rd]||!!e[Hd]?.[Rd]||sf(e)||cf(e):!1}var Xd=Bd[Ud][Hd].toString(),Zd=new WeakMap;function Qd(e){if(!e||!lf(e))return!1;let t=Vd(e);if(t===null||t===Bd[Ud])return!0;let n=Bd.hasOwnProperty.call(t,Hd)&&t[Hd];if(n===Object)return!0;if(!uf(n))return!1;let r=Zd.get(n);return r===void 0&&(r=Function.toString.call(n),Zd.set(n,r)),r===Xd}function $d(e,t,n=!0){ef(e)===0?(n?Reflect.ownKeys(e):Bd.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function ef(e){let t=e[$];return t?t.type_:of(e)?1:sf(e)?2:cf(e)?3:0}var tf=(e,t,n=ef(e))=>n===2?e.has(t):Bd[Ud].hasOwnProperty.call(e,t),nf=(e,t,n=ef(e))=>n===2?e.get(t):e[t],rf=(e,t,n,r=ef(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function af(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var of=Array.isArray,sf=e=>e instanceof Map,cf=e=>e instanceof Set,lf=e=>typeof e==`object`,uf=e=>typeof e==`function`,df=e=>typeof e==`boolean`;function ff(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var pf=e=>lf(e)?e?.[$]:null,mf=e=>e.copy_||e.base_,hf=e=>e.modified_?e.copy_:e.base_;function gf(e,t){if(sf(e))return new Map(e);if(cf(e))return new Set(e);if(of(e))return Array[Ud].slice.call(e);let n=Qd(e);if(t===!0||t===`class_only`&&!n){let t=Bd.getOwnPropertyDescriptors(e);delete t[$];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Kd]===!1&&(a[Kd]=!0,a[Wd]=!0),(a.get||a.set)&&(t[i]={[Wd]:!0,[Kd]:!0,[Gd]:a[Gd],[qd]:e[i]})}return Bd.create(Vd(e),t)}{let t=Vd(e);if(t!==null&&n)return{...e};let r=Bd.create(t);return Bd.assign(r,e)}}function _f(e,t=!1){return bf(e)||Jd(e)||!Yd(e)?e:(ef(e)>1&&Bd.defineProperties(e,{set:yf,add:yf,clear:yf,delete:yf}),Bd.freeze(e),t&&$d(e,(e,t)=>{_f(t,!0)},!1),e)}function vf(){zd(2)}var yf={[qd]:vf};function bf(e){return e===null||!lf(e)||Bd.isFrozen(e)}var xf=`MapSet`,Sf=`Patches`,Cf=`ArrayMethods`,wf={};function Tf(e){let t=wf[e];return t||zd(0,e),t}var Ef=e=>!!wf[e];function Df(e,t){wf[e]||(wf[e]=t)}var Of,kf=()=>Of,Af=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ef(xf)?Tf(xf):void 0,arrayMethodsPlugin_:Ef(Cf)?Tf(Cf):void 0});function jf(e,t){t&&(e.patchPlugin_=Tf(Sf),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Mf(e){Nf(e),e.drafts_.forEach(Ff),e.drafts_=null}function Nf(e){e===Of&&(Of=e.parent_)}var Pf=e=>Of=Af(Of,e);function Ff(e){let t=e[$];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function If(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[$].modified_&&(Mf(t),zd(4)),Yd(e)&&(e=Lf(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[$].base_,e,t)}else e=Lf(t,n);return Rf(t,e,!0),Mf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Ld?void 0:e}function Lf(e,t){if(bf(t))return t;let n=t[$];if(!n)return Kf(t,e.handledSet_,e);if(!Bf(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);Wf(n,e)}return n.copy_}function Rf(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_f(t,n)}function zf(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Bf=(e,t)=>e.scope_===t,Vf=[];function Hf(e,t,n,r){let i=mf(e),a=e.type_;if(r!==void 0&&nf(i,r,a)===t){rf(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;$d(i,(e,n)=>{if(Jd(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Vf;for(let e of o)rf(i,e,n,a)}function Uf(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Bf(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=hf(i);Hf(e,i.draft_??i,a,n),Wf(i,r)})}function Wf(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)}zf(e)}}function Gf(e,t,n){let{scope_:r}=e;if(Jd(n)){let i=n[$];Bf(i,r)&&i.callbacks_.push(function(){tp(e),Hf(e,n,hf(i),t)})}else Yd(n)&&e.callbacks_.push(function(){let i=mf(e);e.type_===3?i.has(n)&&Kf(n,r.handledSet_,r):nf(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Kf(nf(e.copy_,t,e.type_),r.handledSet_,r)})}function Kf(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Jd(e)||t.has(e)||!Yd(e)||bf(e)?e:(t.add(e),$d(e,(r,i)=>{if(Jd(i)){let t=i[$];Bf(t,n)&&(rf(e,r,hf(t),e.type_),zf(t))}else Yd(i)&&Kf(i,t,n)}),e)}function qf(e,t){let n=of(e),r={type_:+!!n,scope_:t?t.scope_:kf(),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=Jf;n&&(i=[r],a=Yf);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Jf={get(e,t){if(t===$)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=mf(e);if(!tf(i,t,e.type_))return Qf(e,i,t);let a=i[t];if(e.finalized_||!Yd(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&ff(t))return a;if(a===Xf(e.base_,t)||Zf(e,t,a)){tp(e);let n=e.type_===1?+t:t,r=rp(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in mf(e)},ownKeys(e){return Reflect.ownKeys(mf(e))},set(e,t,n){let r=$f(mf(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Xf(mf(e),t),i=r?.[$];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(af(n,r)&&(n!==void 0||tf(e.base_,t,e.type_)))return!0;tp(e),ep(e)}return e.copy_[t]===n&&(n!==void 0||tf(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),Gf(e,t,n),!0)},deleteProperty(e,t){return tp(e),Xf(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),ep(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=mf(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Kd]:!0,[Wd]:e.type_!==1||t!==`length`,[Gd]:r[Gd],[qd]:n[t]}},defineProperty(){zd(11)},getPrototypeOf(e){return Vd(e.base_)},setPrototypeOf(){zd(12)}},Yf={};for(let e in Jf){let t=Jf[e];Yf[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Yf.deleteProperty=function(e,t){return Yf.set.call(this,e,t,void 0)},Yf.set=function(e,t,n){return Jf.set.call(this,e[0],t,n,e[0])};function Xf(e,t){let n=e[$];return(n?mf(n):e)[t]}function Zf(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!Yd(n)||n[$]?!1:e.baseRefs_.has(n)}function Qf(e,t,n){let r=$f(t,n);return r?qd in r?r[qd]:r.get?.call(e.draft_):void 0}function $f(e,t){if(!(t in e))return;let n=Vd(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Vd(n)}}function ep(e){e.modified_||(e.modified_=!0,e.parent_&&ep(e.parent_))}function tp(e){e.copy_||=(e.assigned_=new Map,gf(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var np=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(uf(e)&&!uf(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}uf(t)||zd(6),n!==void 0&&!uf(n)&&zd(7);let r;if(Yd(e)){let i=Pf(this),a=rp(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Mf(i):Nf(i)}return jf(i,n),If(r,i)}if(!e||!lf(e)){if(r=t(e),r===void 0&&(r=e),r===Ld&&(r=void 0),this.autoFreeze_&&_f(r,!0),n){let t=[],i=[];Tf(Sf).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}zd(1,e)},this.produceWithPatches=(e,t)=>{if(uf(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]},df(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),df(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),df(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Yd(e)||zd(8),Jd(e)&&(e=ip(e));let t=Pf(this),n=rp(t,e,void 0);return n[$].isManual_=!0,Nf(t),n}finishDraft(e,t){let n=e&&e[$];(!n||!n.isManual_)&&zd(9);let{scope_:r}=n;return jf(r,t),If(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=Tf(Sf).applyPatches_;return Jd(e)?r(e,t):this.produce(e,e=>r(e,t))}};function rp(e,t,n,r){let[i,a]=sf(t)?Tf(xf).proxyMap_(t,n):cf(t)?Tf(xf).proxySet_(t,n):qf(t,n);return(n?.scope_??kf()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Uf(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 ip(e){return Jd(e)||zd(10,e),ap(e)}function ap(e){if(!Yd(e)||bf(e))return e;let t=e[$],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=gf(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=gf(e,!0);return $d(n,(e,t)=>{rf(n,e,ap(t))},r),t&&(t.finalized_=!1),n}function op(){function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=pf(nf(e,n.key_)),i=nf(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||tf(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=nf(n,r),!lf(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?.[$];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;$d(e.assigned_,(e,l)=>{let u=nf(o,e,c),f=nf(s,e,c),p=l?tf(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===Ld?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=ef(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===Hd)&&zd(19),uf(o)&&n===Ud&&zd(19),o=nf(o,n),(o===null||!lf(o))&&zd(18,i.join(`/`))}let s=ef(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:zd(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:zd(17,a)}}),e}function u(e){if(!Yd(e))return e;if(of(e))return e.map(u);if(sf(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(cf(e))return new Set(Array.from(e).map(u));let t=Object.create(Vd(e));for(let n in e)t[n]=u(e[n]);return tf(e,Rd)&&(t[Rd]=e[Rd]),t}function d(e){return Jd(e)?u(e):e}Df(Sf,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}globalThis.Iterator?.from;var sp=new np,cp=sp.produce,lp=sp.produceWithPatches.bind(sp),up=sp.applyPatches.bind(sp),dp=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function fp(e=21){let t=``,n=e;for(;n--;)t+=dp[Math.random()*64|0];return t}var pp=1e3;function mp(e,t){if(e.add(t),e.size>pp){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function hp(e){let{enablePatches:t=!1}=e;t&&op();let n=fd(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=fp())=>{i.has(t)||(op(),r=up(r,e),mp(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=fp())=>{if(!i.has(a)){if(mp(i,a),t){let[t,i]=lp(r,e);if(t===r)return;r=t,n.emit(`updated`,r,i,a)}else{let t=cp(r,e);if(t===r)return;r=t,n.emit(`updated`,r,void 0,a)}}},syncIds:i}}function gp(e){let t=new Map,n=new Map,r=new Map,i=new Set,a=e.connectionMeta.backend===`static`;function o(e,t){let n=r.get(e);return n&&typeof n==`object`&&!Array.isArray(n)&&typeof t==`object`&&!Array.isArray(t)?{...n,...t}:t}e.client.register({name:Q.broadcast.clientStateUpdated,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.mutate(()=>o(e,n),r)}}),e.client.register({name:Q.broadcast.clientStatePatch,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.patch(n,r)}});function s(t,n){let r=[];return r.push(n.on(`updated`,(n,r,i)=>{a||(r?e.callEvent(`devframe:rpc:server-state:patch`,t,r,i):e.callEvent(`devframe:rpc:server-state:set`,t,n,i))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return i.add(e),()=>{i.delete(e)}},delete(e){let i=n.get(e);n.delete(e);let a=t.delete(e);return r.delete(e),i?.(),a},get:async(c,l)=>{if(l?.initialValue!==void 0&&r.set(c,l.initialValue),t.has(c))return t.get(c);let u=hp({initialValue:l?.initialValue,enablePatches:!1});async function d(){if(a||e.callEvent(`devframe:rpc:server-state:subscribe`,c),l?.initialValue!==void 0){t.set(c,u);for(let e of i)e(c);return e.call(`devframe:rpc:server-state:get`,c).then(e=>{e!==void 0&&u.mutate(()=>o(c,e))}).catch(e=>{console.error(`Error getting server state`,e)}),n.set(c,s(c,u)),u}{let r=await e.call(`devframe:rpc:server-state:get`,c);u.mutate(()=>o(c,r)),t.set(c,u);for(let e of i)e(c);return n.set(c,s(c,u)),u}}return new Promise(t=>{if(e.isTrusted)d().then(t);else{t(u);let n=!1;e.events.on(Q.client.isTrustedUpdated,e=>{e&&!n&&(n=!0,d())})}})}}}var _p=typeof self==`object`?self:globalThis,vp=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),yp=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function bp(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=vp.has(e)?_p[e]:void 0;return n(new(r??_p.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`&&yp.has(a))return n(new _p[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function xp(e){return bp(new Map,e)(0)}var Sp=``,{toString:Cp}={},{keys:wp}=Object;function Tp(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Cp.call(e).slice(8,-1);switch(n){case`Array`:return[1,Sp];case`Object`:return[2,Sp];case`Date`:return[3,Sp];case`RegExp`:return[4,Sp];case`Map`:return[5,Sp];case`Set`:return[6,Sp];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function Ep([e,t]){return e===0&&(t===`function`||t===`symbol`)}function Dp(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]=Tp(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 wp(r))(e||!Ep(Tp(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||!(Ep(Tp(n))||Ep(Tp(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!Ep(Tp(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function Op(e,t={}){let n=[];return Dp(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:kp,stringify:Ap}=JSON,jp={json:!0,lossy:!0};function Mp(e){return xp(kp(e))}function Np(e){return Ap(Op(e,jp))}function Pp(e){return xp(e)}function Fp(e){return Np(e)}function Ip(e){return Mp(e)}var Lp=new Map;function Rp(e=Lp){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?cd(n,r??``):`s:${Fp(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?Ip(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function zp(){}function Bp(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 Vp(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 Hp(e){let{onConnected:t=zp,onError:n=zp,onDisconnected:r=zp,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${Eu}=${encodeURIComponent(e.authToken)}`);let s=Rp(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=Bp(r);if(!e)break;r=e.rest;let{event:t,data:n}=Vp(e.frame);n.length>0&&_(t,n.join(`
6
+ `))}}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`,[Su]: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 Up(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Wp=Math.random.bind(Math),Gp=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Kp(e=21){let t=``,n=e;for(;n--;)t+=Gp[Wp()*64|0];return t}var qp=6e4,Jp=e=>e,Yp=Jp,{clearTimeout:Xp,setTimeout:Zp}=globalThis;function Qp(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=Jp,deserialize:s=Yp,resolver:c,bind:l=`rpc`,timeout:u=qp,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}=Up(),_=Kp();s.i=_;let v;async function y(n=s){return u>=0&&(v=Zp(()=>{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{Xp(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&&(Xp(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function $p(e,t){let{channel:n,rpcOptions:r={}}=t;return Qp(e,{...n,timeout:-1,...r,proxify:!1})}function em(e){let{transport:t,authToken:n,connectionMeta:r,events:i,clientRpc:a,rpcOptions:o={},callTimeout:s=0}=e,c=!1,l=`connecting`,u=null,d=Promise.withResolvers();function f(e,t=null){if(t?u=t:e===`connected`&&(u=null),e===l)return;let n=l;l=e,i.emit(Q.client.connectionStatus,e,n)}let p=new Set;function m(e){for(let t of[...p])t.reject(e)}function h(){return l===`disconnected`||l===`error`?new jd(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new jd(`auth`,`[devframe] Not authorized by the devframe server`,{cause:u??void 0}):null}function g(e,t){return new Promise((n,r)=>{let a=!1,o,c={reject(e){a||(l(),i.emit(Q.client.error,e,t),r(e))}};function l(){a=!0,p.delete(c),o&&clearTimeout(o)}p.add(c),s>0&&(o=setTimeout(()=>{c.reject(new jd(`timeout`,`[devframe] RPC call "${t}" timed out after ${s}ms`))},s)),e.then(e=>{a||(l(),n(e))},e=>{if(a)return;l();let n=e instanceof Error?e:Error(String(e));i.emit(Q.client.error,n,t),r(n)})})}let _=new Map;for(let e of r.jsonSerializableMethods??[])_.set(e,{jsonSerializable:!0});let v=e.createChannel({definitions:_,onError(e){f(`error`,e),i.emit(Q.client.connectionError,e),m(new jd(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new jd(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),y=$p(a.functions,{channel:v,rpcOptions:o});a.register({name:Q.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new jd(`auth`,`[devframe] The devframe server revoked this client's trust`);f(`unauthorized`,e),i.emit(Q.client.connectionError,e),m(e),i.emit(Q.client.isTrustedUpdated,!1)}});let b=n;async function x(e){b=e;let t=await y.$call(`anonymous:devframe:auth`,{authToken:e,ua:navigator.userAgent,origin:location.origin});if(c=t.isTrusted,c)d.resolve(!0),f(`connected`);else{let e=new jd(`auth`,`[devframe] The devframe server refused this client's credentials`);f(`unauthorized`,e),i.emit(Q.client.connectionError,e)}return i.emit(Q.client.isTrustedUpdated,c),t.isTrusted}async function S(e){let t=(await y.$call(`anonymous:devframe:auth:exchange`,{code:e,ua:navigator.userAgent,origin:location.origin}))?.authToken??null;return t&&(b=t,c=!0,d.resolve(!0),f(`connected`),i.emit(Q.client.isTrustedUpdated,!0)),t}async function C(e={}){await y.$call(`anonymous:devframe:auth:request-code`,{ua:navigator.userAgent,origin:location.origin,...e.reissue?{reissue:!0}:{}})}async function w(){return c?!0:x(b??``)}async function ee(e=6e4){if(c&&d.resolve(!0),e<=0)return d.promise;let t;try{return await Promise.race([d.promise,new Promise((n,r)=>{t=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e)})]),c}finally{clearTimeout(t)}}return{transport:t,get isTrusted(){return c},get status(){return l},get connectionError(){return u},requestTrust:w,requestTrustWithToken:x,requestTrustWithCode:S,requestAuthCode:C,ensureTrusted:ee,call:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(Q.client.error,n,t),Promise.reject(n)):g(y.$call(...e),t)},callEvent:(...e)=>{let t=h();if(t){i.emit(Q.client.error,t,String(e[0]));return}return y.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(Q.client.error,n,t),Promise.reject(n)):g(y.$callOptional(...e),t)},close:()=>{v.close()}}}function tm(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 nm(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=tm(n.sse,r??`./`,location);return em({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Hp({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 rm(e){let{name:t,message:n,cause:r,...i}=e,a=r instanceof Error?r:im(r)?rm(r):r,o=a===void 0?Error(n):Error(n,{cause:a});return o.name=t,Object.assign(o,i),o}function im(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function am(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function om(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function sm(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function cm(e){if(e.error)throw rm(e.error);return e.output}function lm(e){return e.some(e=>e!=null)}function um(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function dm(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?Pp(e):e}function a(e,t){return i(um(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 sm(r)?cm(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(am(r)){if(lm(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(om(r)){let e=Bu(n),i=r.records[e];if(i)return cm(await s(i,r.serialization));if(r.fallback)return cm(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!lm(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 fm(e){let t=dm(await e.fetchJsonFromBases(Cu),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,requestAuthCode:async()=>{},ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1)),close:()=>{}}}var pm=256,mm=class extends Error{name=`StreamClosedError`};function hm(e={}){let t=e.id??fp(),n=Math.max(0,e.replayWindow??0),r=fd(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new mm(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&(a.length-n===1?a.shift():a.splice(0,a.length-n))),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=_m(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 gm(e={}){let t=e.id??fp(),n=Math.max(1,e.highWaterMark??pm),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 _m(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 vm=``;function ym(e,t){return`${e}${vm}${t}`}function bm(e){let t=new Map,n=new Map;e.client.register({name:Q.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(ym(e,n))?._push(r,i)}}),e.client.register({name:Q.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=ym(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:Q.broadcast.streamingUploadCancel,type:`event`,handler(e,t){let r=ym(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(Q.client.isTrustedUpdated,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(vm);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=ym(n,r),o=t.get(a);if(o)return o;let s=gm({id:r,highWaterMark:i.highWaterMark,onOverflow(e){console.warn(`[devframe] DF0029: Stream "${n}#${r}" dropped ${e} chunk(s) after exceeding the client high-water mark.`)},onCancel(){e.callEvent(`devframe:streaming:cancel`,n,r),t.delete(a)}});if(t.set(a,s),e.isTrusted)e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:0});else{let i=e.events.on(Q.client.isTrustedUpdated,o=>{o&&(i(),t.has(a)&&!s.cancelled&&!s.done&&e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:s.lastSeenSeq}))})}return s}function i(t,r){let i=ym(t,r),a=n.get(i);if(a)return a;let o=hm({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 xm(){}var Sm=new Map;function Cm(e){let t=e.url;e.authToken&&(t=`${t}?${Eu}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=xm,onError:i=xm,onDisconnected:a=xm,definitions:o=Sm}=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=Rp(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 wm(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 vd(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function Tm(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=wm(n.websocket,r??`./`,location);return em({transport:`websocket`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Cm({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 Em(e){return e.includes(`:`)}function Dm(e,t){return Em(t)?t:`${e}:${t}`}function Om(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 km(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=e.sharedState.get(r,{initialValue:{}}),i}return Om(a)}function Am(e,t){return{global:km(e,t,`global`),project:km(e,t,`project`)}}function jm(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(Em(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(Dm(t,n),...r)),callEvent:((n,...r)=>e.callEvent(Dm(t,n),...r)),callOptional:((n,...r)=>e.callOptional(Dm(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(Dm(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(Dm(t,n),r,i),upload:(n,r)=>e.streaming.upload(Dm(t,n),r)}},settings:Am(e,t),scope:e.scope}}var Mm=128;function Nm(e){return e.replace(/[^\w-]+/g,`_`).slice(0,Mm)}function Pm(e,t){return t.safety?t.safety:e===`static`||e===`query`||e==null?`read`:`action`}var Fm=Object.freeze({type:`object`,additionalProperties:!0});function Im(e){let t=e[`~standard`];if(t.jsonSchema)try{return t.jsonSchema.input({target:`draft-2020-12`})}catch{return Fm}return Fm}function Lm(e){if(!e||e.length===0)return{type:`object`,properties:{}};let t={},n=[];for(let r=0;r<e.length;r++){let i=`arg${r}`;t[i]=Im(e[r]),n.push(i)}return{type:`object`,properties:t,required:n,additionalProperties:!1}}function Rm(e,t){if(Array.isArray(e))return e;if(e==null)return[];if(typeof e!=`object`)return;let n=e;if(t!=null)return Array.from({length:t},(e,t)=>n[`arg${t}`]);if(`arg0`in n){let e=[];for(;`arg${e.length}`in n;)e.push(n[`arg${e.length}`]);return e}return Object.keys(n).length===0?[]:void 0}function zm(e,t){return Rm(e,t)??[e]}function Bm(){if(typeof document<`u`){let e=document.modelContext;if(e)return e}if(typeof navigator<`u`){let e=navigator.modelContext;if(e)return e}}function Vm(e,t={}){let n=t.modelContext??Bm();if(!n)return()=>{};let r=n,i=new Map,a=new Map;function o(t,n){let o=Nm(t.name),s=a.get(o);if(s&&s!==t.name){console.warn(`[devframe] WebMCP tool name "${o}" (from "${t.name}") collides with "${s}"; keeping the first registration.`);return}let c=new AbortController,l=Pm(t.type,n),u=r.registerTool({name:o,description:n.description,inputSchema:Lm(t.args),annotations:{title:n.title??t.name,readOnlyHint:l===`read`,destructiveHint:l===`destructive`},execute:n=>Hm(t,e.context,n)},{signal:c.signal});u&&`then`in u&&u.then(()=>{},()=>{}),a.set(o,t.name),i.set(t.name,()=>{c.abort(),u&&`unregister`in u&&typeof u.unregister==`function`&&u.unregister(),a.delete(o)})}function s(t){let n=t?[t]:[...e.definitions.keys()];for(let t of n){i.get(t)?.(),i.delete(t);let n=e.definitions.get(t),r=n?.agent;n&&r&&o(n,r)}}s();let c=e.onChanged(e=>s(e));return()=>{c();for(let e of i.values())e();i.clear()}}async function Hm(e,t,n){try{let r=zm(n,e.args?.length);return{content:[{type:`text`,text:Um(await(await od(e,t))(...r))}]}}catch(e){return{isError:!0,content:[{type:`text`,text:Wm(e)}]}}}function Um(e){return e===void 0?`undefined`:typeof e==`string`?e:JSON.stringify(e,null,2)}function Wm(e){if(!(e instanceof Error))return String(e);let t=e.cause instanceof Error?` (cause: ${e.cause.message})`:``;return`${e.name}: ${e.message}${t}`}var Gm=`modulepreload`,Km=function(e,t){return new URL(e,t).href},qm={},Jm=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Km(t,n),t=s(t),t in qm)return;qm[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Gm,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function Ym(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 Xm(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=fd(),a=Array.isArray(t)?t:[t],o=await Ad(e),{connectionMeta:s,metaBaseUrl:c,authToken:l}=o,u=a[0]??`./`;try{u=new URL(`.`,c).href}catch{}let d=new Vu({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),f={rpc:void 0},p=new sd(f),m=e.webmcp===!1?void 0:Vm(p),h,g=!1;async function _(e){let t=[u,...a.filter(e=>e!==u)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(_d(e,r)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let v={authToken:l,connectionMeta:s,metaBaseUrl:c,events:i,clientRpc:p,callTimeout:e.callTimeout,rpcOptions:{...n,async onRequest(e,t,i){if(await n.onRequest?.call(this,e,t,i),r&&d?.validate(e.m)){if(d.has(e.m,e.a))return i(d.cached(e.m,e.a));let n=await t(e);d.apply(e,n)}else await t(e)}}},y=Ym(e.transport??`auto`,s),b=y===`static`?await fm({fetchJsonFromBases:_}):y===`sse`?nm({...v,sseOptions:e.sseOptions}):Tm({...v,wsOptions:e.wsOptions}),x;try{x=new BroadcastChannel(`devframe-auth`)}catch{}let S,C=!1;function w(e){return((...t)=>C||!S?e(...t):S.then(()=>e(...t)))}function ee(){g=!0;try{h?.(),m?.()}finally{try{x?.close()}finally{b.close?.()}}}let T={events:i,get isTrusted(){return b.isTrusted},get status(){return b.status},get connectionError(){return b.connectionError},get transport(){return b.transport??y},get connection(){return o},connectionMeta:s,ensureTrusted:b.ensureTrusted,requestTrust:b.requestTrust,requestTrustWithToken:async e=>(Ed(e),o={...o,authToken:e},b.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await b.requestTrustWithCode(e);if(!t)return!1;Ed(t),o={...o,authToken:t};try{x?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},requestAuthCode:e=>b.requestAuthCode(e),call:w(b.call),callEvent:w(b.callEvent),callOptional:w(b.callOptional),client:p,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:d,scope:void 0,close:ee};T.sharedState=gp(T),T.streaming=bm(T),T.services=Id(T);let E=new Map;T.scope=(e=>{if(!e)return T;let t=E.get(e);return t||(t=jm(T,e),E.set(e,t)),t}),f.rpc=T;function te(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function ne(){if(e.simpleAuth!==!1&&te()&&typeof globalThis.prompt==`function`)for(await T.requestAuthCode().catch(()=>{});!T.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 T.requestTrustWithCode(t))return}}async function re(){let t=await b.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await Fd(T,{param:n}):!1;t||r||T.isTrusted||await ne()}return S=re().then(()=>{C=!0},()=>{C=!0}),s.mcp&&Jm(async()=>{let{setupBrowserAgentRpcBridge:e}=await import(`./browser-agent-rpc-Og-9lwSf.js`);return{setupBrowserAgentRpcBridge:e}},[],import.meta.url).then(({setupBrowserAgentRpcBridge:e})=>{g||(h=e(T))}).catch(()=>{}),x&&(x.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&T.requestTrustWithToken(e.data.authToken)}),T}var Zm=Xm;function Qm(){if(window.parent===window)return()=>{};let e=document.documentElement,t=e.style.getPropertyValue(`--devframe-primary`),n=e.style.getPropertyPriority(`--devframe-primary`),r=!1,i=!1;return Ad().then(({connectionMeta:t})=>{let n=t.configs?.ui?.branding?.primaryColor;!r&&n&&CSS.supports(`color`,n)&&(e.style.setProperty(`--devframe-primary`,n),i=!0)}).catch(()=>{}),()=>{r=!0,i&&(t?e.style.setProperty(`--devframe-primary`,t,n):e.style.removeProperty(`--devframe-primary`))}}var $m=[{name:`title`,suggestion:`required`,description:`A concise browser title that identifies the page.`,docs:`https://developer.mozilla.org/docs/Web/HTML/Element/title`},{name:`description`,suggestion:`required`,description:`A one or two sentence summary for search engines and link previews.`},{name:`icon`,suggestion:`recommended`,description:`A small image that identifies the site in browser and social surfaces.`},{name:`lang`,suggestion:`recommended`,description:`The primary language used by the page.`},{name:`og:title`,suggestion:`recommended`,description:`The title shown by Open Graph consumers.`,docs:`https://ogp.me/#metadata`},{name:`og:description`,suggestion:`recommended`,description:`The description shown by Open Graph consumers.`,docs:`https://ogp.me/#metadata`},{name:`og:image`,suggestion:`recommended`,description:`The image used for rich social previews.`,docs:`https://ogp.me/#metadata`},{name:`og:url`,suggestion:`recommended`,description:`The canonical URL represented by the social card.`,docs:`https://ogp.me/#metadata`},{name:`twitter:card`,suggestion:`optional`,description:`The Twitter card layout, such as summary_large_image.`,docs:`https://developer.x.com/en/docs/x-for-websites/cards/overview/abouts-cards`},{name:`twitter:title`,suggestion:`optional`,description:`A Twitter-specific title override.`},{name:`twitter:description`,suggestion:`optional`,description:`A Twitter-specific description override.`},{name:`twitter:image`,suggestion:`optional`,description:`A Twitter-specific preview image override.`}];function eh(e,...t){for(let n of t){let t=e.find(e=>e.name===n)?.value;if(t)return t}return``}function th(e,t=!1){let n=e.tags,r=eh(n,`og:url`)||e.url,i=r;try{i=new URL(r).hostname}catch{}return{title:t?eh(n,`twitter:title`,`og:title`,`title`):eh(n,`og:title`,`title`),description:t?eh(n,`twitter:description`,`og:description`,`description`):eh(n,`og:description`,`description`),image:t?eh(n,`twitter:image`,`og:image`):eh(n,`og:image`),imageAlt:t?eh(n,`twitter:image:alt`,`og:image:alt`):eh(n,`og:image:alt`),url:r,hostname:i,favicon:eh(n,`icon`),twitterCard:eh(n,`twitter:card`)||`summary_large_image`}}function nh(e){let t=new Set(e.map(e=>e.name)),n={};return t.has(`title`)&&(n.title=`[title]`),t.has(`description`)&&(n.description=`[description]`),t.has(`og:title`)&&(n.ogTitle=`[og:title]`),t.has(`og:description`)&&(n.ogDescription=`[og:description]`),t.has(`og:image`)&&(n.ogImage=`[og:image]`),t.has(`og:url`)&&(n.ogUrl=`[og:url]`),t.has(`twitter:card`)&&(n.twitterCard=`summary_large_image`),t.has(`twitter:title`)&&(n.twitterTitle=`[twitter:title]`),t.has(`twitter:description`)&&(n.twitterDescription=`[twitter:description]`),t.has(`twitter:image`)&&(n.twitterImage=`[twitter:image]`),`useSeoMeta({\n${Object.entries(n).map(([e,t])=>` ${e}: '${t}',`).join(`
7
+ `)}\n})`}var rh={class:`border border-base rounded-lg overflow-hidden bg-base`},ih={class:`flex items-center gap-2 border-b border-base bg-secondary px3 py2`},ah={class:`ml-auto color-muted font-mono text-xs tabular-nums`},oh={key:0,class:`divide-y divide-base`},sh=[`href`],ch={key:1,class:`min-w-0 truncate color-muted font-mono text-xs`},lh=[`href`],uh={key:3,class:`min-w-0 break-words color-base text-xs`},dh={key:1,class:`px4 py8 text-center color-muted text-sm`},fh=V({__name:`MetadataTable`,props:{tags:{}},setup(e){let t=new Map($m.map(e=>[e.name,e.docs]));function n(e){return/^https?:\/\//i.test(e)}return(r,i)=>(G(),K(`section`,rh,[J(`header`,ih,[i[0]||=J(`span`,{class:`i-ph-tag-duotone color-active`},null,-1),i[1]||=J(`h2`,{class:`m0 text-sm font-semibold`},` Head metadata `,-1),J(`span`,ah,M(e.tags.length),1)]),e.tags.length?(G(),K(`div`,oh,[(G(!0),K(U,null,da(e.tags,(e,r)=>(G(),K(`div`,{key:`${e.tag}:${e.name}:${r}`,class:`grid grid-cols-[minmax(8rem,0.35fr)_1fr] items-start gap-3 px3 py2 hover:bg-active`},[R(t).get(e.name)?(G(),K(`a`,{key:0,href:R(t).get(e.name),target:`_blank`,rel:`noreferrer`,class:`min-w-0 truncate color-muted font-mono text-xs hover:color-active`},M(e.name),9,sh)):(G(),K(`span`,ch,M(e.name),1)),n(e.value)?(G(),K(`a`,{key:2,href:e.value,target:`_blank`,rel:`noreferrer`,class:`min-w-0 break-all color-base font-mono text-xs hover:color-active`},M(e.value),9,lh)):(G(),K(`span`,uh,M(e.value),1))]))),128))])):(G(),K(`div`,dh,` No supported head metadata was found. `))]))}}),ph=V({__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)=>(G(),K(`span`,{class:`border-2 border-current border-t-transparent rounded-full inline-block animate-spin`,style:pe({width:n.value,height:n.value}),role:`status`,"aria-label":`Loading`},null,4))}}),mh=V({__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)=>(G(),q(sa(n.value),{class:j([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:B(()=>[e.loading?(G(),q(ph,{key:0,size:`1em`})):e.icon?(G(),K(`span`,{key:1,class:j(e.icon),"aria-hidden":`true`},null,2)):Ss(``,!0),pa(t.$slots,`default`)]),_:3},8,[`class`,`href`,`to`,`disabled`,`aria-disabled`,`aria-busy`]))}});function hh(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 gh(){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 _h(e,t){return Pe()?(Fe(e,t),!0):!1}var vh=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var yh=e=>e!==void 0,bh=vh?window:void 0;vh&&window.document,vh&&window.navigator,vh&&window.location;function xh(e){let t=fn(e);return t?.$el??t}function Sh(){let e=cn(!1),t=X();return t&&Ji(()=>{e.value=!0},t),e}function Ch(e){let t=Sh();return Z(()=>(t.value,!!e()))}function wh(e){return JSON.parse(JSON.stringify(e))}function Th(e,t,n={}){let{window:r=bh,...i}=n,a,o=Ch(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=Cr(Z(()=>{let t=fn(e);return Array.isArray(t)?t.map(e=>xh(e)):[xh(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 _h(l),{isSupported:o,stop:l}}function Eh(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=X(),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):wh(e):e,g=()=>yh(e[t])?h(e[t]):u,_=e=>{d?d(e)&&p(m,e):p(m,e)};if(s){let n=L(g()),r=!1;return Cr(()=>e[t],e=>{r||(r=!0,n.value=h(e),Xn(()=>r=!1))}),Cr(n,n=>{!r&&(n!==e[t]||l)&&_(n)},{deep:l}),n}return Z({get(){return g()},set(e){_(e)}})}function Dh(e){return e?e.flatMap(e=>e.type===U?Dh(e.children):[e]):[]}var[Oh,kh]=hh(`ConfigProvider`);function Ah(e){let t=Oh({dir:L(`ltr`)});return Z(()=>e?.value||t.dir?.value||`ltr`)}function jh(){let e=X(),t=L(),n=Z(()=>r());Xi(()=>{n.value!==r()&&dn(t)});function r(){return t.value&&`$el`in t.value&&[`#text`,`#comment`].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:xh(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 Mh=0;function Nh(e,t=`reka`){if(e)return e;let n,r=Oh({useId:void 0});return n=r.useId?r.useId():`useId`in vu?ni?.():`${++Mh}`,t?`${t}-${n}`:n}function Ph(e,t){let n=L(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function Fh(e,t){let n=L({}),r=L(`none`),i=L(e),a=e.value?`mounted`:`unmounted`,o,s=t.value?.ownerDocument.defaultView??bh,{state:c,dispatch:l}=Ph(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),u=e=>{if(vh){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};Cr(e,async(e,i)=>{let a=i!==e;if(await Xn(),a){let a=r.value,o=Ih(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=Ih(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=Ih(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=Ih(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 Ih(e){return e&&getComputedStyle(e).animationName||`none`}var Lh=V({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){let{present:r,forceMount:i}=_n(e),a=L(),{isPresent:o}=Fh(r,a);n({present:o});let s=t.default({present:o.value});s=Dh(s||[]);let c=X();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(`
8
+ `)].join(`
9
+ `))}return()=>i.value||r.value||o.value?Zs(t.default({present:o.value})[0],{ref:e=>{let t=xh(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?a.value=t.firstElementChild:a.value=t),t}}):null}}),Rh=V({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=Dh(n.default()),r=e.findIndex(e=>e.type!==W);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?Es(t,i.props):t,o=ys({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),zh=[`area`,`img`,`input`],Bh=V({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`&&zh.includes(r)?()=>Zs(r,t):r===`template`?()=>Zs(Rh,t,{default:n.default}):()=>Zs(e.as,t,{default:n.default})}});function Vh(){let e=L();return{primitiveElement:e,currentElement:Z(()=>[`#text`,`#comment`].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:xh(e))}}var Hh=`data-reka-collection-item`;function Uh(e={}){let{key:t=``,isProvider:n=!1}=e,r=`${t}CollectionProvider`,i;n?(i={collectionRef:L(),itemMap:L(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(`[${Hh}]`)),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=V({name:`CollectionSlot`,inheritAttrs:!1,setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=Vh();return Cr(a,()=>{i.collectionRef.value=a.value}),()=>Zs(Rh,{ref:r,...n},t)}}),s=V({name:`CollectionItem`,inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=Vh();return br(t=>{if(a.value){let n=an(a.value);i.itemMap.value.set(n,{ref:a.value,value:e.value}),t(()=>i.itemMap.value.delete(n))}}),()=>Zs(Rh,{...n,[Hh]:``,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 Wh=`rovingFocusGroup.onEntryFocus`,Gh={bubbles:!1,cancelable:!0},Kh={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function qh(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Jh(e,t,n){let r=qh(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Kh[r]}function Yh(e,t=!1){let n=gh();for(let r of e)if(r===n||(r.focus({preventScroll:t}),gh()!==n))return}function Xh(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var[Zh,Qh]=hh(`RovingFocusGroup`),$h=V({__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}=_n(r),c=Ah(s),l=Eh(r,`currentTabStopId`,i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=L(!1),d=L(!1),f=L(0),{getItems:p,CollectionSlot:m}=Uh({isProvider:!0});function h(e){let t=!d.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!u.value){let t=new CustomEvent(Wh,Gh);if(e.currentTarget.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){let e=p().map(e=>e.ref).filter(e=>e.dataset.disabled!==``);Yh([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}),Qh({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)=>(G(),q(R(m),null,{default:B(()=>[Y(R(Bh),{tabindex:u.value||f.value===0?-1:0,"data-orientation":R(o),as:e.as,"as-child":e.asChild,dir:R(c),style:{outline:`none`},onMousedown:t[0]||=e=>d.value=!0,onMouseup:g,onFocus:h,onBlur:t[1]||=e=>u.value=!1},{default:B(()=>[pa(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),eg=V({__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=Zh(),r=Nh(),i=Z(()=>t.tabStopId||r),a=Z(()=>n.currentTabStopId.value===i.value),{getItems:o,CollectionItem:s}=Uh();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=Jh(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?Xh(i,t+1):i.slice(t+1)}Xn(()=>Yh(i))}}return(e,t)=>(G(),q(R(s),null,{default:B(()=>[Y(R(Bh),{tabindex:a.value?0:-1,"data-orientation":R(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?R(n).onItemFocus(i.value):t.preventDefault()},onFocus:t[1]||=e=>R(n).onItemFocus(i.value),onKeydown:c},{default:B(()=>[pa(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`data-active`,`data-disabled`,`as`,`as-child`])]),_:3}))}}),[tg,ng]=hh(`TabsRoot`),rg=V({__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}=_n(n),s=Ah(o);jh();let c=Eh(n,`modelValue`,r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),l=L(),u=cn(new Set);return ng({modelValue:c,changeModelValue:e=>{c.value=e},orientation:i,dir:s,unmountOnHide:a,activationMode:n.activationMode,baseId:Nh(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)=>(G(),q(R(Bh),{dir:R(s),"data-orientation":R(i),"as-child":e.asChild,as:e.as},{default:B(()=>[pa(e.$slots,`default`,{modelValue:R(c)})]),_:3},8,[`dir`,`data-orientation`,`as-child`,`as`]))}});function ig(e,t){return`${e}-trigger-${t}`}function ag(e,t){return`${e}-content-${t}`}var og=V({__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}=jh(),r=tg(),i=Z(()=>ig(r.baseId,t.value)),a=Z(()=>ag(r.baseId,t.value)),o=Z(()=>t.value===r.modelValue.value),s=L(o.value);return Ji(()=>{r.registerContent(t.value),requestAnimationFrame(()=>{s.value=!1})}),Zi(()=>{r.unregisterContent(t.value)}),(e,t)=>(G(),q(R(Lh),{present:e.forceMount||o.value,"force-mount":``},{default:B(({present:t})=>[Y(R(Bh),{id:a.value,ref:R(n),"as-child":e.asChild,as:e.as,role:`tabpanel`,"data-state":o.value?`active`:`inactive`,"data-orientation":R(r).orientation.value,"aria-labelledby":i.value,hidden:!t,tabindex:`0`,style:pe({animationDuration:s.value?`0s`:void 0})},{default:B(()=>[!R(r).unmountOnHide.value||t?pa(e.$slots,`default`,{key:0}):Ss(`v-if`,!0)]),_:2},1032,[`id`,`as-child`,`as`,`data-state`,`data-orientation`,`aria-labelledby`,`hidden`,`style`])]),_:3},8,[`present`]))}}),sg=V({__name:`TabsIndicator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){let n=e,r=tg();t({updateIndicatorStyle:s}),jh();let i=Sh(),a=L({size:null,thickness:null,position:null}),o=L([]);Cr(()=>[r.modelValue.value,r?.dir.value],()=>{s()},{immediate:!0,flush:`post`}),xr(()=>{o.value=Array.from(r.tabsList.value?.querySelectorAll(`[role="tab"]`)||[])}),Th(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)=>R(i)&&typeof a.value.size==`number`?(G(),q(R(Bh),Es({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:B(()=>[pa(e.$slots,`default`)]),_:3},16,[`style`])):Ss(`v-if`,!0)}}),cg=V({__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}=_n(e),{forwardRef:n,currentElement:r}=jh(),i=tg();return i.tabsList=r,(e,r)=>(G(),q(R($h),{"as-child":``,orientation:R(i).orientation.value,dir:R(i).dir.value,loop:R(t)},{default:B(()=>[Y(R(Bh),{ref:R(n),role:`tablist`,"as-child":e.asChild,as:e.as,"aria-orientation":R(i).orientation.value},{default:B(()=>[pa(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`aria-orientation`])]),_:3},8,[`orientation`,`dir`,`loop`]))}}),lg=V({__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}=jh(),r=tg(),i=Z(()=>ig(r.baseId,t.value)),a=Z(()=>r.contentIds.value.has(t.value)?ag(r.baseId,t.value):void 0),o=Z(()=>t.value===r.modelValue.value);return(e,t)=>(G(),q(R(eg),{"as-child":``,focusable:!e.disabled,active:o.value},{default:B(()=>[Y(R(Bh),{id:i.value,ref:R(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":R(r).orientation.value,onMousedown:t[0]||=nu(t=>{!e.disabled&&t.ctrlKey===!1?R(r).changeModelValue(e.value):t.preventDefault()},[`left`]),onKeydown:t[1]||=iu(t=>R(r).changeModelValue(e.value),[`enter`,`space`]),onFocus:t[2]||=()=>{let t=R(r).activationMode!==`manual`;!o.value&&!e.disabled&&t&&R(r).changeModelValue(e.value)}},{default:B(()=>[pa(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`]))}}),ug={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`},dg=V({__name:`LayoutTabs`,props:Na({tabs:{},variant:{default:`underline`},lazy:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=to(e,`modelValue`);return(n,r)=>(G(),q(R(rg),{modelValue:t.value,"onUpdate:modelValue":r[0]||=e=>t.value=e,class:j(e.variant===`segment`?``:`border-b border-base`)},{default:B(()=>[Y(R(cg),{class:j([`flex items-center relative`,e.variant===`segment`?`gap-1 p-1 rounded-lg bg-sunken w-max`:`gap-1`])},{default:B(()=>[(G(!0),K(U,null,da(e.tabs,t=>(G(),q(R(lg),{key:t.value,value:t.value,as:t.href?`a`:`button`,href:t.href,disabled:t.disabled,class:j([`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:B(()=>[t.icon?(G(),K(`span`,{key:0,class:j(t.icon),"aria-hidden":`true`},null,2)):Ss(``,!0),bs(` `+M(t.label??t.value)+` `,1),t.count==null?Ss(``,!0):(G(),K(`span`,ug,M(t.count),1))]),_:2},1032,[`value`,`as`,`href`,`disabled`,`class`]))),128)),e.variant===`underline`?(G(),q(R(sg),{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`})):Ss(``,!0)]),_:1},8,[`class`]),pa(n.$slots,`default`),(G(!0),K(U,null,da(e.tabs,t=>(G(),K(U,{key:`panel-${t.value}`},[n.$slots[t.value]?(G(),q(R(og),{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:B(()=>[pa(n.$slots,t.value)]),_:2},1032,[`value`,`force-mount`])):Ss(``,!0)],64))),128))]),_:3},8,[`modelValue`,`class`]))}}),fg={key:0,class:`border border-base rounded-lg overflow-hidden bg-base`},pg={class:`flex flex-wrap items-center gap-2 border-b border-base bg-secondary px3 py2`},mg={class:`color-muted text-xs`},hg={key:0,class:`divide-y divide-base`},gg=[`href`],_g={key:1,class:`font-mono text-xs color-active`},vg={class:`color-muted text-xs`},yg={class:`justify-self-start rounded bg-secondary px1.5 py0.5 color-muted text-2.5 md:justify-self-end`},bg={key:1,class:`relative p3`},xg={class:`m0 overflow-auto rounded bg-secondary p3 color-base font-mono text-xs leading-relaxed`},Sg=V({__name:`MissingTags`,props:{tags:{}},setup(e){let t=e,n=cn(`missing`),r=cn(!1),i=[{value:`missing`,label:`Missing tags`},{value:`snippet`,label:`Nuxt snippet`}],a=Z(()=>$m.filter(e=>!t.tags.some(t=>t.name===e.name))),o=Z(()=>nh(a.value));async function s(){await navigator.clipboard.writeText(o.value),r.value=!0,window.setTimeout(()=>r.value=!1,1500)}return(e,t)=>a.value.length?(G(),K(`section`,fg,[J(`header`,pg,[t[1]||=J(`span`,{class:`i-ph-warning-duotone color-warning`},null,-1),t[2]||=J(`h2`,{class:`m0 text-sm font-semibold`},` Suggestions `,-1),J(`span`,mg,M(a.value.length)+` missing`,1),Y(dg,{modelValue:n.value,"onUpdate:modelValue":t[0]||=e=>n.value=e,tabs:i,variant:`segment`,class:`ml-auto`},null,8,[`modelValue`])]),n.value===`missing`?(G(),K(`div`,hg,[(G(!0),K(U,null,da(a.value,e=>(G(),K(`div`,{key:e.name,class:`grid gap-1 px3 py2 md:grid-cols-[9rem_1fr_auto] md:items-center`},[e.docs?(G(),K(`a`,{key:0,href:e.docs,target:`_blank`,rel:`noreferrer`,class:`font-mono text-xs color-active`},M(e.name),9,gg)):(G(),K(`span`,_g,M(e.name),1)),J(`span`,vg,M(e.description),1),J(`span`,yg,M(e.suggestion),1)]))),128))])):(G(),K(`div`,bg,[J(`pre`,xg,[J(`code`,null,M(o.value),1)]),Y(mh,{class:`absolute right5 top5`,size:`sm`,icon:r.value?`i-ph-check-duotone`:`i-ph-copy-duotone`,onClick:s},{default:B(()=>[bs(M(r.value?`Copied`:`Copy`),1)]),_:1},8,[`icon`])]))])):Ss(``,!0)}}),Cg=[`src`,`alt`],wg=V({__name:`PreviewImage`,props:{src:{},alt:{},class:{}},setup(e){let t=e,n=cn(!1);return Cr(()=>t.src,()=>n.value=!1),(t,r)=>e.src&&!n.value?(G(),K(`img`,{key:0,src:e.src,alt:e.alt,class:j([t.$props.class,`block bg-secondary object-cover img-outline`]),onError:r[0]||=e=>n.value=!0},null,42,Cg)):(G(),K(`div`,{key:1,class:j([t.$props.class,`flex items-center justify-center bg-secondary color-faint img-outline`])},[...r[1]||=[J(`span`,{class:`i-ph-image-broken-duotone text-2xl`},null,-1)]],2))}}),Tg={class:`w-full max-w-125 bg-base`},Eg={class:`border border-t-0 border-base bg-secondary px3 py2.5`},Dg={class:`truncate color-muted text-xs uppercase`},Og={class:`my1 truncate text-base font-semibold`},kg={class:`m0 truncate color-muted text-sm`},Ag=V({__name:`FacebookPreview`,props:{card:{}},setup(e){return(t,n)=>(G(),K(`article`,Tg,[Y(wg,{src:e.card.image,alt:e.card.imageAlt,class:`aspect-1.91/1 w-full`},null,8,[`src`,`alt`]),J(`div`,Eg,[J(`div`,Dg,M(e.card.hostname),1),J(`h3`,Og,M(e.card.title||`Untitled page`),1),J(`p`,kg,M(e.card.description||`No description provided.`),1)])]))}}),jg={class:`w-full max-w-125 overflow-hidden border border-base rounded-sm bg-base shadow-sm`},Mg={class:`p3`},Ng={class:`m0 truncate text-base font-semibold`},Pg={class:`mt1 truncate color-muted text-xs`},Fg=V({__name:`LinkedinPreview`,props:{card:{}},setup(e){return(t,n)=>(G(),K(`article`,jg,[Y(wg,{src:e.card.image,alt:e.card.imageAlt,class:`aspect-1.91/1 w-full`},null,8,[`src`,`alt`]),J(`div`,Mg,[J(`h3`,Ng,M(e.card.title||`Untitled page`),1),J(`div`,Pg,M(e.card.hostname),1)])]))}}),Ig={class:`w-full max-w-105 border border-base rounded-4 rounded-bl-sm bg-base p3 shadow-sm`},Lg=[`href`],Rg={class:`mt2 grid grid-cols-[2px_1fr] gap-2`},zg={class:`min-w-0`},Bg={class:`color-preview-accent text-sm font-semibold`},Vg={class:`my1 text-sm font-semibold`},Hg={class:`m0 color-muted text-sm`},Ug={class:`mt1 text-right color-faint font-mono text-2.5 tabular-nums`},Wg=V({__name:`TelegramPreview`,props:{card:{}},setup(e){let t=new Intl.DateTimeFormat(void 0,{hour:`2-digit`,minute:`2-digit`}).format(new Date);return(n,r)=>(G(),K(`article`,Ig,[J(`a`,{href:e.card.url,target:`_blank`,rel:`noreferrer`,class:`block truncate color-preview-accent text-sm underline`},M(e.card.url),9,Lg),J(`div`,Rg,[r[0]||=J(`div`,{class:`rounded bg-preview-accent op70`},null,-1),J(`div`,zg,[Y(wg,{src:e.card.image,alt:e.card.imageAlt,class:`mb2 aspect-1.91/1 w-full rounded`},null,8,[`src`,`alt`]),J(`div`,Bg,M(e.card.hostname),1),J(`h3`,Vg,M(e.card.title||`Untitled page`),1),J(`p`,Hg,M(e.card.description||`No description provided.`),1)])]),J(`div`,Ug,M(R(t)),1)]))}}),Gg={key:0,class:`w-full max-w-110 overflow-hidden border border-base rounded-4 bg-base`},Kg={class:`p3`},qg={class:`truncate color-muted text-xs lowercase`},Jg={class:`my1 truncate text-sm font-semibold`},Yg={class:`m0 line-clamp-2 color-muted text-sm`},Xg={key:1,class:`w-full max-w-110 flex overflow-hidden border border-base rounded-4 bg-base`},Zg={class:`min-w-0 flex flex-col justify-center p3`},Qg={class:`truncate color-muted text-xs lowercase`},$g={class:`my1 truncate text-sm font-semibold`},e_={class:`m0 line-clamp-2 color-muted text-sm`},t_=V({__name:`TwitterPreview`,props:{card:{}},setup(e){return(t,n)=>e.card.twitterCard===`summary`?(G(),K(`article`,Xg,[Y(wg,{src:e.card.image,alt:e.card.imageAlt,class:`aspect-square w-32 shrink-0`},null,8,[`src`,`alt`]),J(`div`,Zg,[J(`div`,Qg,M(e.card.hostname),1),J(`h3`,$g,M(e.card.title||`Untitled page`),1),J(`p`,e_,M(e.card.description||`No description provided.`),1)])])):(G(),K(`article`,Gg,[Y(wg,{src:e.card.image,alt:e.card.imageAlt,class:`aspect-2/1 w-full`},null,8,[`src`,`alt`]),J(`div`,Kg,[J(`div`,qg,M(e.card.hostname),1),J(`h3`,Jg,M(e.card.title||`Untitled page`),1),J(`p`,Yg,M(e.card.description||`No description provided.`),1)])]))}}),n_={class:`h-full min-h-100 flex flex-col border border-base rounded-lg overflow-hidden bg-base`},r_={class:`flex flex-wrap items-center gap-2 border-b border-base bg-secondary px3 py2`},i_={class:`preview-grid flex flex-1 items-center justify-center overflow-auto p5`},a_=V({__name:`SocialPreview`,props:{snapshot:{}},setup(e){let t=e,n=cn(`twitter`),r=Z(()=>th(t.snapshot,n.value===`twitter`)),i=[{value:`twitter`,label:`Twitter`},{value:`facebook`,label:`Facebook`},{value:`linkedin`,label:`LinkedIn`},{value:`telegram`,label:`Telegram`}];return(e,t)=>(G(),K(`section`,n_,[J(`header`,r_,[t[1]||=J(`span`,{class:`i-ph-share-network-duotone color-active`},null,-1),t[2]||=J(`h2`,{class:`m0 text-sm font-semibold`},` Social preview `,-1),Y(dg,{modelValue:n.value,"onUpdate:modelValue":t[0]||=e=>n.value=e,tabs:i,variant:`segment`,class:`ml-auto`},null,8,[`modelValue`])]),J(`div`,i_,[n.value===`twitter`?(G(),q(t_,{key:0,card:r.value},null,8,[`card`])):n.value===`facebook`?(G(),q(Ag,{key:1,card:r.value},null,8,[`card`])):n.value===`linkedin`?(G(),q(Fg,{key:2,card:r.value},null,8,[`card`])):(G(),q(Wg,{key:3,card:r.value},null,8,[`card`]))])]))}}),o_={key:0,class:`flex-1 min-w-0`},s_={key:1,class:`flex gap-1 items-center`},c_=V({__name:`LayoutToolbar`,props:{sticky:{type:Boolean,default:!0},glass:{type:Boolean,default:!0}},setup(e){return(t,n)=>(G(),K(`div`,{class:j([`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`]])},[pa(t.$slots,`start`,{},()=>[pa(t.$slots,`default`)]),t.$slots.search?(G(),K(`div`,o_,[pa(t.$slots,`search`)])):Ss(``,!0),t.$slots.end?(G(),K(`div`,s_,[pa(t.$slots,`end`)])):Ss(``,!0)],2))}}),l_={class:`flex items-center gap-1.5 shrink-0 font-semibold text-sm select-none`},u_={key:0,class:`rounded bg-secondary px1.5 py0.5 color-muted text-2.5 font-normal`},d_={class:`min-w-0 flex flex-1 items-center gap-2 border border-base rounded px3 py1.5 focus-within:border-active`},f_=[`disabled`],p_=V({__name:`ViewerToolbar`,props:Na({loading:{type:Boolean},isStatic:{type:Boolean}},{target:{required:!0},targetModifiers:{}}),emits:Na([`inspect`],[`update:target`]),setup(e,{emit:t}){let n=t,r=to(e,`target`);return(t,i)=>(G(),q(c_,{glass:!1,class:`h-nav`},{search:B(()=>[J(`form`,{class:`mx-auto w-full max-w-3xl flex items-center gap-2`,onSubmit:i[1]||=nu(e=>n(`inspect`),[`prevent`])},[J(`label`,d_,[i[4]||=J(`span`,{class:`i-ph-globe-hemisphere-west-duotone color-muted shrink-0`},null,-1),pr(J(`input`,{"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`min-w-0 flex-1 bg-transparent color-base font-mono text-xs outline-none`,inputmode:`url`,placeholder:`http://localhost:3000`,spellcheck:`false`,"aria-label":`Page URL`,disabled:e.isStatic},null,8,f_),[[Vl,r.value]])]),Y(mh,{variant:`primary`,loading:e.loading,disabled:e.isStatic,icon:`i-ph-magnifying-glass-duotone`,type:`submit`},{default:B(()=>[...i[5]||=[bs(` Inspect `,-1)]]),_:1},8,[`loading`,`disabled`])],32)]),default:B(()=>[J(`div`,l_,[i[2]||=J(`span`,{class:`i-ph-image-square-duotone text-base color-active`},null,-1),i[3]||=J(`span`,null,`Open Graph`,-1),e.isStatic?(G(),K(`span`,u_,`static`)):Ss(``,!0)])]),_:1}))}});function m_(){let e=cn(null),t=cn(new URLSearchParams(location.search).get(`url`)??``),n=cn(null),r=cn(!1),i=cn(null),a=Z(()=>e.value?.connectionMeta.backend===`static`);async function o(o=t.value){if(!(a.value&&n.value)){t.value=o.trim(),r.value=!0,i.value=null;try{e.value??=await Zm(),await e.value.ensureTrusted();let r=await e.value.call(`devframes:plugin:og:resolve-metadata`,{url:t.value});n.value=r,(!t.value||a.value)&&r.requestedUrl&&(t.value=r.requestedUrl);let i=new URL(location.href);t.value?i.searchParams.set(`url`,t.value):i.searchParams.delete(`url`),history.replaceState(null,``,i)}catch(e){i.value=e instanceof Error?e.message:String(e)}finally{r.value=!1}}}return{error:Zt(i),inspect:o,isStatic:a,loading:Zt(r),snapshot:Zt(n),target:t}}var h_={class:`h-100dvh flex flex-col bg-base color-base font-sans`},g_={key:0,class:`flex items-start gap-2 border-b border-base bg-red/8 px4 py2 color-red text-xs`},__={class:`min-h-0 flex-1 overflow-auto`},v_={key:0,class:`h-full flex flex-col items-center justify-center gap-3 color-muted`},y_={key:1,class:`h-full flex flex-col items-center justify-center gap-3 px6 text-center color-muted`},b_={key:2,class:`grid min-h-full gap4 p4 xl:grid-cols-[minmax(0,1fr)_minmax(28rem,0.85fr)]`},x_={class:`min-w-0 flex flex-col gap4`},S_={class:`flex flex-wrap items-center gap-2 color-muted text-xs`},C_=[`href`,`title`],w_={class:`ml-auto font-mono tabular-nums`},T_={class:`min-w-0 xl:sticky xl:top4 xl:h-[calc(100dvh-6.5rem)]`},E_=V({__name:`app`,setup(e){let t=m_();return Ji(()=>t.inspect()),(e,n)=>(G(),K(`div`,h_,[Y(p_,{target:R(t).target.value,"onUpdate:target":n[0]||=e=>R(t).target.value=e,loading:R(t).loading.value,"is-static":R(t).isStatic.value,onInspect:n[1]||=e=>R(t).inspect()},null,8,[`target`,`loading`,`is-static`]),R(t).error.value?(G(),K(`div`,g_,[n[2]||=J(`span`,{class:`i-ph-warning-octagon-duotone mt0.5 shrink-0`},null,-1),J(`span`,null,M(R(t).error.value),1)])):Ss(``,!0),J(`main`,__,[R(t).loading.value&&!R(t).snapshot.value?(G(),K(`div`,v_,[...n[3]||=[J(`span`,{class:`i-ph-circle-notch-duotone animate-spin text-3xl color-active`},null,-1),J(`span`,{class:`text-sm`},`Reading page metadata...`,-1)]])):R(t).snapshot.value?.url?(G(),K(`div`,b_,[J(`div`,x_,[J(`div`,S_,[n[5]||=J(`span`,{class:`i-ph-check-circle-duotone color-status-positive`},null,-1),J(`a`,{href:R(t).snapshot.value.url,target:`_blank`,rel:`noreferrer`,class:`min-w-0 truncate font-mono hover:color-active`,title:R(t).snapshot.value.url},M(R(t).snapshot.value.url),9,C_),J(`span`,w_,`HTTP `+M(R(t).snapshot.value.status),1)]),Y(fh,{tags:R(t).snapshot.value.tags},null,8,[`tags`]),Y(Sg,{tags:R(t).snapshot.value.tags},null,8,[`tags`])]),J(`div`,T_,[Y(a_,{snapshot:R(t).snapshot.value},null,8,[`snapshot`])])])):(G(),K(`div`,y_,[...n[4]||=[J(`span`,{class:`i-ph-image-square-duotone text-4xl color-active op70`},null,-1),J(`div`,null,[J(`h1`,{class:`m0 color-base text-base font-semibold`},` Inspect a social card `),J(`p`,{class:`mb0 mt1 max-w-100 text-sm`},` Enter a page URL to resolve its Open Graph and Twitter metadata. `)],-1)]]))])]))}}),D_=window.matchMedia(`(prefers-color-scheme: dark)`);function O_(e){document.documentElement.classList.toggle(`dark`,e),document.documentElement.classList.toggle(`light`,!e)}O_(D_.matches),D_.addEventListener(`change`,e=>O_(e.matches)),fu(E_).mount(`#app`),Qm();export{fp as t};
package/dist/index.html CHANGED
@@ -5,8 +5,8 @@
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1" />
6
6
  <base href="./" />
7
7
  <title>Open Graph Viewer</title>
8
- <script type="module" crossorigin src="./assets/index-BQrGiFw6.js"></script>
9
- <link rel="stylesheet" crossorigin href="./assets/index-ecCZ9DGW.css">
8
+ <script type="module" crossorigin src="./assets/index-BO5cXuFG.js"></script>
9
+ <link rel="stylesheet" crossorigin href="./assets/index-B2afCiOL.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="app"></div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/plugin-og--assets",
3
3
  "type": "module",
4
- "version": "1.0.0",
4
+ "version": "1.1.0",
5
5
  "description": "Prebuilt browser assets (SPA) for @devframes/plugin-og, served on demand through devframe's remote-assets back-proxy.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",