@ghfs/cli 0.1.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -1
- package/dist/cli.mjs +5875 -572
- package/dist/{factory-DmX3S7tf.mjs → factory-UMSInaa_.mjs} +379 -102
- package/dist/index.d.mts +363 -2
- package/dist/index.mjs +1 -1
- package/dist/ui/200.html +1 -1
- package/dist/ui/404.html +1 -1
- package/dist/ui/_nuxt/1bK2R2pL.js +1 -0
- package/dist/ui/_nuxt/{D8rZpOte.js → B0tHio-l.js} +1 -1
- package/dist/ui/_nuxt/BBxLfTx_.js +1 -0
- package/dist/ui/_nuxt/{Bp3cYrEr.js → BDEKrZIi.js} +1 -1
- package/dist/ui/_nuxt/{D4Qn4bBI.js → BKH9P1wN.js} +1 -1
- package/dist/ui/_nuxt/{oH_c3LbQ.js → BMKCr1FU.js} +1 -1
- package/dist/ui/_nuxt/BNh5okZH.js +4 -0
- package/dist/ui/_nuxt/BNzF7F9w.js +1 -0
- package/dist/ui/_nuxt/BWLewmBT.js +15 -0
- package/dist/ui/_nuxt/BbwaKnwL.js +1 -0
- package/dist/ui/_nuxt/BqmRGtwl.js +1 -0
- package/dist/ui/_nuxt/Bzq9aFVy.js +1 -0
- package/dist/ui/_nuxt/C2jkTI5u.js +2 -0
- package/dist/ui/_nuxt/{DElX3lK9.js → C8o6ovMK.js} +17 -17
- package/dist/ui/_nuxt/CBU7sHLx.js +1 -0
- package/dist/ui/_nuxt/CQja-oog.js +1 -0
- package/dist/ui/_nuxt/{BLtJtn59.js → CRqJ_cUM.js} +1 -1
- package/dist/ui/_nuxt/{DbWOdLaN.js → CV3vykTa.js} +1 -1
- package/dist/ui/_nuxt/{8syuri0t.js → ChS_g7wu.js} +1 -1
- package/dist/ui/_nuxt/{DWX1VroF.js → ChgxH8nk.js} +1 -1
- package/dist/ui/_nuxt/D4R7-XZQ.js +1 -0
- package/dist/ui/_nuxt/D4yIuA0F.js +64 -0
- package/dist/ui/_nuxt/DHH7xZXJ.js +11 -0
- package/dist/ui/_nuxt/DK734mxh.js +1 -0
- package/dist/ui/_nuxt/{CANp3yme.js → DMkUaiYH.js} +1 -1
- package/dist/ui/_nuxt/DRje8inN.js +1 -0
- package/dist/ui/_nuxt/{COcwbKMJ.js → DSvCPggb.js} +1 -1
- package/dist/ui/_nuxt/DToHIG1N.js +1 -0
- package/dist/ui/_nuxt/DVC3GhaL.js +1 -0
- package/dist/ui/_nuxt/DWBdeKmR.js +1 -0
- package/dist/ui/_nuxt/Da-Y9lY6.js +1 -0
- package/dist/ui/_nuxt/DeX2bcSG.js +1 -0
- package/dist/ui/_nuxt/{B6eN_cS4.js → Df2X-ZUM.js} +1 -1
- package/dist/ui/_nuxt/{CG8Ifv2g.js → DhaYTIfE.js} +1 -1
- package/dist/ui/_nuxt/Dqspr-GT.js +1 -0
- package/dist/ui/_nuxt/{DN-Z_aST.js → Dsmy0J62.js} +1 -1
- package/dist/ui/_nuxt/{DM8c43g1.js → HgPamjhh.js} +1 -1
- package/dist/ui/_nuxt/KW6xsasC.js +1 -0
- package/dist/ui/_nuxt/{CRBrlGZW.js → LYj2JSs-.js} +1 -1
- package/dist/ui/_nuxt/MRO5bC_T.js +1 -0
- package/dist/ui/_nuxt/Project.BMA756E4.css +1 -0
- package/dist/ui/_nuxt/W70NOuRA.js +1 -0
- package/dist/ui/_nuxt/builds/latest.json +1 -1
- package/dist/ui/_nuxt/builds/meta/f935488c-a544-4bf6-9a65-b421d02508c1.json +1 -0
- package/dist/ui/_nuxt/cards.DYf8w2uL.css +1 -0
- package/dist/ui/_nuxt/{C7UmGho8.js → e9S_qqu4.js} +1 -1
- package/dist/ui/_nuxt/entry.COcGUqGv.css +1 -0
- package/dist/ui/_nuxt/error-404.CiGdHkfa.css +1 -0
- package/dist/ui/_nuxt/error-500.DrZuPeVU.css +1 -0
- package/dist/ui/_nuxt/index.C3E0NnSu.css +1 -0
- package/dist/ui/cards/index.html +1 -0
- package/dist/ui/hub/index.html +1 -0
- package/dist/ui/hub/recent/index.html +1 -0
- package/dist/ui/index.html +1 -1
- package/dist/ui/recent/index.html +1 -0
- package/dist/ui/todo/index.html +1 -0
- package/package.json +26 -28
- package/skills/ghfs/SKILL.md +10 -0
- package/dist/provider-DCIsHVeA.d.mts +0 -249
- package/dist/server/index.d.mts +0 -330
- package/dist/server/index.mjs +0 -2
- package/dist/server-BwSU4kqr.mjs +0 -3518
- package/dist/ui/_nuxt/BhrAK1vL.js +0 -1
- package/dist/ui/_nuxt/C-HG3fhB.js +0 -1
- package/dist/ui/_nuxt/C4zNGwhW.js +0 -1
- package/dist/ui/_nuxt/CFbOZP3I.js +0 -75
- package/dist/ui/_nuxt/D8_7TLub.js +0 -1
- package/dist/ui/_nuxt/DU1UobuO.js +0 -1
- package/dist/ui/_nuxt/DnF83RMp.js +0 -1
- package/dist/ui/_nuxt/JZbLTBME.js +0 -1
- package/dist/ui/_nuxt/W9tJ9s81.js +0 -1
- package/dist/ui/_nuxt/builds/meta/12d68071-f4db-447f-b929-9033d66eadc3.json +0 -1
- package/dist/ui/_nuxt/entry.DfrFFNxd.css +0 -1
- package/dist/ui/_nuxt/eo99z4R2.js +0 -1
- package/dist/ui/_nuxt/error-404.C93cll2q.css +0 -1
- package/dist/ui/_nuxt/error-500.CPQqaJsC.css +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CQja-oog.js","./BNh5okZH.js","./D4yIuA0F.js","./DlAUqK2U.js","./cards.DYf8w2uL.css","./DWBdeKmR.js","./DeX2bcSG.js","./BqmRGtwl.js","./DVC3GhaL.js","./Project.BMA756E4.css","./BNzF7F9w.js","./BbwaKnwL.js","./D4R7-XZQ.js","./Da-Y9lY6.js","./BWLewmBT.js","./index.C3E0NnSu.css","./DK734mxh.js","./error-404.CiGdHkfa.css","./BKH9P1wN.js","./error-500.DrZuPeVU.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();function fu(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ae={},zo=[],cn=()=>{},ah=()=>!1,hs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ma=e=>e.startsWith("onUpdate:"),Ke=Object.assign,du=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},dv=Object.prototype.hasOwnProperty,Oe=(e,t)=>dv.call(e,t),ae=Array.isArray,qo=e=>lr(e)==="[object Map]",ga=e=>lr(e)==="[object Set]",sf=e=>lr(e)==="[object Date]",pv=e=>lr(e)==="[object RegExp]",pe=e=>typeof e=="function",De=e=>typeof e=="string",Rt=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",lh=e=>(Te(e)||pe(e))&&pe(e.then)&&pe(e.catch),ch=Object.prototype.toString,lr=e=>ch.call(e),hv=e=>lr(e).slice(8,-1),uh=e=>lr(e)==="[object Object]",ya=e=>De(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_o=fu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),va=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},mv=/-\w/g,it=va(e=>e.replace(mv,t=>t.slice(1).toUpperCase())),gv=/\B([A-Z])/g,jn=va(e=>e.replace(gv,"-$1").toLowerCase()),ba=va(e=>e.charAt(0).toUpperCase()+e.slice(1)),yi=va(e=>e?`on${ba(e)}`:""),dt=(e,t)=>!Object.is(e,t),Wo=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},fh=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},pu=e=>{const t=parseFloat(e);return isNaN(t)?e:t},dh=e=>{const t=De(e)?Number(e):NaN;return isNaN(t)?e:t};let af;const wa=()=>af||(af=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function un(e){if(ae(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=De(o)?wv(o):un(o);if(r)for(const s in r)t[s]=r[s]}return t}else if(De(e)||Te(e))return e}const yv=/;(?![^(]*\))/g,vv=/:([^]+)/,bv=/\/\*[^]*?\*\//g;function wv(e){const t={};return e.replace(bv,"").split(yv).forEach(n=>{if(n){const o=n.split(vv);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ke(e){let t="";if(De(e))t=e;else if(ae(e))for(let n=0;n<e.length;n++){const o=ke(e[n]);o&&(t+=o+" ")}else if(Te(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function hu(e){if(!e)return null;let{class:t,style:n}=e;return t&&!De(t)&&(e.class=ke(t)),n&&(e.style=un(n)),e}const _v="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ev=fu(_v);function ph(e){return!!e||e===""}function Sv(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=ms(e[o],t[o]);return n}function ms(e,t){if(e===t)return!0;let n=sf(e),o=sf(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=Rt(e),o=Rt(t),n||o)return e===t;if(n=ae(e),o=ae(t),n||o)return n&&o?Sv(e,t):!1;if(n=Te(e),o=Te(t),n||o){if(!n||!o)return!1;const r=Object.keys(e).length,s=Object.keys(t).length;if(r!==s)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!ms(e[i],t[i]))return!1}}return String(e)===String(t)}function hh(e,t){return e.findIndex(n=>ms(n,t))}const mh=e=>!!(e&&e.__v_isRef===!0),de=e=>De(e)?e:e==null?"":ae(e)||Te(e)&&(e.toString===ch||!pe(e.toString))?mh(e)?de(e.value):JSON.stringify(e,gh,2):String(e),gh=(e,t)=>mh(t)?gh(e,t.value):qo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],s)=>(n[el(o,s)+" =>"]=r,n),{})}:ga(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>el(n))}:Rt(t)?el(t):Te(t)&&!ae(t)&&!uh(t)?String(t):t,el=(e,t="")=>{var n;return Rt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Xe;class yh{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Xe&&(Xe.active?(this.parent=Xe,this.index=(Xe.scopes||(Xe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Xe;try{return Xe=this,t()}finally{Xe=n}}}on(){++this._on===1&&(this.prevScope=Xe,Xe=this)}off(){if(this._on>0&&--this._on===0){if(Xe===this)Xe=this.prevScope;else{let t=Xe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(this.effects.length=0,n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function mu(e){return new yh(e)}function _a(){return Xe}function xv(e,t=!1){Xe&&Xe.cleanups.push(e)}let He;const tl=new WeakSet;class vh{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Xe&&(Xe.active?Xe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,tl.has(this)&&(tl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||wh(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,lf(this),_h(this);const t=He,n=qt;He=this,qt=!0;try{return this.fn()}finally{Eh(this),He=t,qt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)vu(t);this.deps=this.depsTail=void 0,lf(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?tl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){uc(this)&&this.run()}get dirty(){return uc(this)}}let bh=0,Mr,Nr;function wh(e,t=!1){if(e.flags|=8,t){e.next=Nr,Nr=e;return}e.next=Mr,Mr=e}function gu(){bh++}function yu(){if(--bh>0)return;if(Nr){let t=Nr;for(Nr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Mr;){let t=Mr;for(Mr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function _h(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Eh(e){let t,n=e.depsTail,o=n;for(;o;){const r=o.prevDep;o.version===-1?(o===n&&(n=r),vu(o),kv(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=r}e.deps=t,e.depsTail=n}function uc(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Sh(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Sh(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Jr)||(e.globalVersion=Jr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!uc(e))))return;e.flags|=2;const t=e.dep,n=He,o=qt;He=e,qt=!0;try{_h(e);const r=e.fn(e._value);(t.version===0||dt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{He=n,qt=o,Eh(e),e.flags&=-3}}function vu(e,t=!1){const{dep:n,prevSub:o,nextSub:r}=e;if(o&&(o.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)vu(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function kv(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let qt=!0;const xh=[];function Mn(){xh.push(qt),qt=!1}function Nn(){const e=xh.pop();qt=e===void 0?!0:e}function lf(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=He;He=void 0;try{t()}finally{He=n}}}let Jr=0;class Cv{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ea{constructor(t){this.computed=t,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(t){if(!He||!qt||He===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==He)n=this.activeLink=new Cv(He,this),He.deps?(n.prevDep=He.depsTail,He.depsTail.nextDep=n,He.depsTail=n):He.deps=He.depsTail=n,kh(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=He.depsTail,n.nextDep=void 0,He.depsTail.nextDep=n,He.depsTail=n,He.deps===n&&(He.deps=o)}return n}trigger(t){this.version++,Jr++,this.notify(t)}notify(t){gu();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{yu()}}}function kh(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)kh(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ii=new WeakMap,Eo=Symbol(""),fc=Symbol(""),Yr=Symbol("");function pt(e,t,n){if(qt&&He){let o=Ii.get(e);o||Ii.set(e,o=new Map);let r=o.get(n);r||(o.set(n,r=new Ea),r.map=o,r.key=n),r.track()}}function Tn(e,t,n,o,r,s){const i=Ii.get(e);if(!i){Jr++;return}const a=l=>{l&&l.trigger()};if(gu(),t==="clear")i.forEach(a);else{const l=ae(e),u=l&&ya(n);if(l&&n==="length"){const c=Number(o);i.forEach((f,p)=>{(p==="length"||p===Yr||!Rt(p)&&p>=c)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(Yr)),t){case"add":l?u&&a(i.get("length")):(a(i.get(Eo)),qo(e)&&a(i.get(fc)));break;case"delete":l||(a(i.get(Eo)),qo(e)&&a(i.get(fc)));break;case"set":qo(e)&&a(i.get(Eo));break}}yu()}function Av(e,t){const n=Ii.get(e);return n&&n.get(t)}function Ro(e){const t=xe(e);return t===e?t:(pt(t,"iterate",Yr),Pt(e)?t:t.map(Kt))}function Sa(e){return pt(e=xe(e),"iterate",Yr),e}function an(e,t){return pn(e)?Zo(Xn(e)?Kt(t):t):Kt(t)}const Tv={__proto__:null,[Symbol.iterator](){return nl(this,Symbol.iterator,e=>an(this,e))},concat(...e){return Ro(this).concat(...e.map(t=>ae(t)?Ro(t):t))},entries(){return nl(this,"entries",e=>(e[1]=an(this,e[1]),e))},every(e,t){return _n(this,"every",e,t,void 0,arguments)},filter(e,t){return _n(this,"filter",e,t,n=>n.map(o=>an(this,o)),arguments)},find(e,t){return _n(this,"find",e,t,n=>an(this,n),arguments)},findIndex(e,t){return _n(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return _n(this,"findLast",e,t,n=>an(this,n),arguments)},findLastIndex(e,t){return _n(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return _n(this,"forEach",e,t,void 0,arguments)},includes(...e){return ol(this,"includes",e)},indexOf(...e){return ol(this,"indexOf",e)},join(e){return Ro(this).join(e)},lastIndexOf(...e){return ol(this,"lastIndexOf",e)},map(e,t){return _n(this,"map",e,t,void 0,arguments)},pop(){return hr(this,"pop")},push(...e){return hr(this,"push",e)},reduce(e,...t){return cf(this,"reduce",e,t)},reduceRight(e,...t){return cf(this,"reduceRight",e,t)},shift(){return hr(this,"shift")},some(e,t){return _n(this,"some",e,t,void 0,arguments)},splice(...e){return hr(this,"splice",e)},toReversed(){return Ro(this).toReversed()},toSorted(e){return Ro(this).toSorted(e)},toSpliced(...e){return Ro(this).toSpliced(...e)},unshift(...e){return hr(this,"unshift",e)},values(){return nl(this,"values",e=>an(this,e))}};function nl(e,t,n){const o=Sa(e),r=o[t]();return o!==e&&!Pt(e)&&(r._next=r.next,r.next=()=>{const s=r._next();return s.done||(s.value=n(s.value)),s}),r}const $v=Array.prototype;function _n(e,t,n,o,r,s){const i=Sa(e),a=i!==e&&!Pt(e),l=i[t];if(l!==$v[t]){const f=l.apply(e,s);return a?Kt(f):f}let u=n;i!==e&&(a?u=function(f,p){return n.call(this,an(e,f),p,e)}:n.length>2&&(u=function(f,p){return n.call(this,f,p,e)}));const c=l.call(i,u,o);return a&&r?r(c):c}function cf(e,t,n,o){const r=Sa(e),s=r!==e&&!Pt(e);let i=n,a=!1;r!==e&&(s?(a=o.length===0,i=function(u,c,f){return a&&(a=!1,u=an(e,u)),n.call(this,u,an(e,c),f,e)}):n.length>3&&(i=function(u,c,f){return n.call(this,u,c,f,e)}));const l=r[t](i,...o);return a?an(e,l):l}function ol(e,t,n){const o=xe(e);pt(o,"iterate",Yr);const r=o[t](...n);return(r===-1||r===!1)&&Ca(n[0])?(n[0]=xe(n[0]),o[t](...n)):r}function hr(e,t,n=[]){Mn(),gu();const o=xe(e)[t].apply(e,n);return yu(),Nn(),o}const Ov=fu("__proto__,__v_isRef,__isVue"),Ch=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rt));function Pv(e){Rt(e)||(e=String(e));const t=xe(this);return pt(t,"has",e),t.hasOwnProperty(e)}class Ah{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return o===(r?s?Ih:Rh:s?Ph:Oh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const i=ae(t);if(!r){let l;if(i&&(l=Tv[n]))return l;if(n==="hasOwnProperty")return Pv}const a=Reflect.get(t,n,Le(t)?t:o);if((Rt(n)?Ch.has(n):Ov(n))||(r||pt(t,"get",n),s))return a;if(Le(a)){const l=i&&ya(n)?a:a.value;return r&&Te(l)?Mi(l):l}return Te(a)?r?Mi(a):jt(a):a}}class Th extends Ah{constructor(t=!1){super(!1,t)}set(t,n,o,r){let s=t[n];const i=ae(t)&&ya(n);if(!this._isShallow){const u=pn(s);if(!Pt(o)&&!pn(o)&&(s=xe(s),o=xe(o)),!i&&Le(s)&&!Le(o))return u||(s.value=o),!0}const a=i?Number(n)<t.length:Oe(t,n),l=Reflect.set(t,n,o,Le(t)?t:r);return t===xe(r)&&(a?dt(o,s)&&Tn(t,"set",n,o):Tn(t,"add",n,o)),l}deleteProperty(t,n){const o=Oe(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&Tn(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!Rt(n)||!Ch.has(n))&&pt(t,"has",n),o}ownKeys(t){return pt(t,"iterate",ae(t)?"length":Eo),Reflect.ownKeys(t)}}class $h extends Ah{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Rv=new Th,Iv=new $h,Mv=new Th(!0),Nv=new $h(!0),dc=e=>e,Ps=e=>Reflect.getPrototypeOf(e);function Dv(e,t,n){return function(...o){const r=this.__v_raw,s=xe(r),i=qo(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=r[e](...o),c=n?dc:t?Zo:Kt;return!t&&pt(s,"iterate",l?fc:Eo),Ke(Object.create(u),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:a?[c(f[0]),c(f[1])]:c(f),done:p}}})}}function Rs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Lv(e,t){const n={get(r){const s=this.__v_raw,i=xe(s),a=xe(r);e||(dt(r,a)&&pt(i,"get",r),pt(i,"get",a));const{has:l}=Ps(i),u=t?dc:e?Zo:Kt;if(l.call(i,r))return u(s.get(r));if(l.call(i,a))return u(s.get(a));s!==i&&s.get(r)},get size(){const r=this.__v_raw;return!e&&pt(xe(r),"iterate",Eo),r.size},has(r){const s=this.__v_raw,i=xe(s),a=xe(r);return e||(dt(r,a)&&pt(i,"has",r),pt(i,"has",a)),r===a?s.has(r):s.has(r)||s.has(a)},forEach(r,s){const i=this,a=i.__v_raw,l=xe(a),u=t?dc:e?Zo:Kt;return!e&&pt(l,"iterate",Eo),a.forEach((c,f)=>r.call(s,u(c),u(f),i))}};return Ke(n,e?{add:Rs("add"),set:Rs("set"),delete:Rs("delete"),clear:Rs("clear")}:{add(r){const s=xe(this),i=Ps(s),a=xe(r),l=!t&&!Pt(r)&&!pn(r)?a:r;return i.has.call(s,l)||dt(r,l)&&i.has.call(s,r)||dt(a,l)&&i.has.call(s,a)||(s.add(l),Tn(s,"add",l,l)),this},set(r,s){!t&&!Pt(s)&&!pn(s)&&(s=xe(s));const i=xe(this),{has:a,get:l}=Ps(i);let u=a.call(i,r);u||(r=xe(r),u=a.call(i,r));const c=l.call(i,r);return i.set(r,s),u?dt(s,c)&&Tn(i,"set",r,s):Tn(i,"add",r,s),this},delete(r){const s=xe(this),{has:i,get:a}=Ps(s);let l=i.call(s,r);l||(r=xe(r),l=i.call(s,r)),a&&a.call(s,r);const u=s.delete(r);return l&&Tn(s,"delete",r,void 0),u},clear(){const r=xe(this),s=r.size!==0,i=r.clear();return s&&Tn(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Dv(r,e,t)}),n}function xa(e,t){const n=Lv(e,t);return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Oe(n,r)&&r in o?n:o,r,s)}const jv={get:xa(!1,!1)},Hv={get:xa(!1,!0)},Fv={get:xa(!0,!1)},Bv={get:xa(!0,!0)},Oh=new WeakMap,Ph=new WeakMap,Rh=new WeakMap,Ih=new WeakMap;function Uv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zv(e){return e.__v_skip||!Object.isExtensible(e)?0:Uv(hv(e))}function jt(e){return pn(e)?e:ka(e,!1,Rv,jv,Oh)}function ln(e){return ka(e,!1,Mv,Hv,Ph)}function Mi(e){return ka(e,!0,Iv,Fv,Rh)}function qv(e){return ka(e,!0,Nv,Bv,Ih)}function ka(e,t,n,o,r){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=zv(e);if(s===0)return e;const i=r.get(e);if(i)return i;const a=new Proxy(e,s===2?o:n);return r.set(e,a),a}function Xn(e){return pn(e)?Xn(e.__v_raw):!!(e&&e.__v_isReactive)}function pn(e){return!!(e&&e.__v_isReadonly)}function Pt(e){return!!(e&&e.__v_isShallow)}function Ca(e){return e?!!e.__v_raw:!1}function xe(e){const t=e&&e.__v_raw;return t?xe(t):e}function Wv(e){return!Oe(e,"__v_skip")&&Object.isExtensible(e)&&fh(e,"__v_skip",!0),e}const Kt=e=>Te(e)?jt(e):e,Zo=e=>Te(e)?Mi(e):e;function Le(e){return e?e.__v_isRef===!0:!1}function B(e){return Mh(e,!1)}function at(e){return Mh(e,!0)}function Mh(e,t){return Le(e)?e:new Vv(e,t)}class Vv{constructor(t,n){this.dep=new Ea,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:xe(t),this._value=n?t:Kt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||Pt(t)||pn(t);t=o?t:xe(t),dt(t,n)&&(this._rawValue=t,this._value=o?t:Kt(t),this.dep.trigger())}}function Kv(e){e.dep&&e.dep.trigger()}function A(e){return Le(e)?e.value:e}function Ie(e){return pe(e)?e():A(e)}const Gv={get:(e,t,n)=>t==="__v_raw"?e:A(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Le(r)&&!Le(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Nh(e){return Xn(e)?e:new Proxy(e,Gv)}class Qv{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ea,{get:o,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Dh(e){return new Qv(e)}function Lh(e){const t=ae(e)?new Array(e.length):{};for(const n in e)t[n]=Hh(e,n);return t}class Jv{constructor(t,n,o){this._object=t,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._key=Rt(n)?n:String(n),this._raw=xe(t);let r=!0,s=t;if(!ae(t)||Rt(this._key)||!ya(this._key))do r=!Ca(s)||Pt(s);while(r&&(s=s.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=A(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Le(this._raw[this._key])){const n=this._object[this._key];if(Le(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Av(this._raw,this._key)}}class Yv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function jh(e,t,n){return Le(e)?e:pe(e)?new Yv(e):Te(e)&&arguments.length>1?Hh(e,t,n):B(e)}function Hh(e,t,n){return new Jv(e,t,n)}class Xv{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ea(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Jr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&He!==this)return wh(this,!0),!0}get value(){const t=this.dep.track();return Sh(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Zv(e,t,n=!1){let o,r;return pe(e)?o=e:(o=e.get,r=e.set),new Xv(o,r,n)}const Is={},Ni=new WeakMap;let ho;function eb(e,t=!1,n=ho){if(n){let o=Ni.get(n);o||Ni.set(n,o=[]),o.push(e)}}function tb(e,t,n=Ae){const{immediate:o,deep:r,once:s,scheduler:i,augmentJob:a,call:l}=n,u=w=>r?w:Pt(w)||r===!1||r===0?$n(w,1):$n(w);let c,f,p,d,m=!1,g=!1;if(Le(e)?(f=()=>e.value,m=Pt(e)):Xn(e)?(f=()=>u(e),m=!0):ae(e)?(g=!0,m=e.some(w=>Xn(w)||Pt(w)),f=()=>e.map(w=>{if(Le(w))return w.value;if(Xn(w))return u(w);if(pe(w))return l?l(w,2):w()})):pe(e)?t?f=l?()=>l(e,2):e:f=()=>{if(p){Mn();try{p()}finally{Nn()}}const w=ho;ho=c;try{return l?l(e,3,[d]):e(d)}finally{ho=w}}:f=cn,t&&r){const w=f,_=r===!0?1/0:r;f=()=>$n(w(),_)}const b=_a(),v=()=>{c.stop(),b&&b.active&&du(b.effects,c)};if(s&&t){const w=t;t=(..._)=>{w(..._),v()}}let h=g?new Array(e.length).fill(Is):Is;const y=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(t){const _=c.run();if(r||m||(g?_.some((k,S)=>dt(k,h[S])):dt(_,h))){p&&p();const k=ho;ho=c;try{const S=[_,h===Is?void 0:g&&h[0]===Is?[]:h,d];h=_,l?l(t,3,S):t(...S)}finally{ho=k}}}else c.run()};return a&&a(y),c=new vh(f),c.scheduler=i?()=>i(y,!1):y,d=w=>eb(w,!1,c),p=c.onStop=()=>{const w=Ni.get(c);if(w){if(l)l(w,4);else for(const _ of w)_();Ni.delete(c)}},t?o?y(!0):h=c.run():i?i(y.bind(null,!0),!0):c.run(),v.pause=c.pause.bind(c),v.resume=c.resume.bind(c),v.stop=v,v}function $n(e,t=1/0,n){if(t<=0||!Te(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Le(e))$n(e.value,t,n);else if(ae(e))for(let o=0;o<e.length;o++)$n(e[o],t,n);else if(ga(e)||qo(e))e.forEach(o=>{$n(o,t,n)});else if(uh(e)){for(const o in e)$n(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&$n(e[o],t,n)}return e}function gs(e,t,n,o){try{return o?e(...o):e()}catch(r){cr(r,t,n)}}function Gt(e,t,n,o){if(pe(e)){const r=gs(e,t,n,o);return r&&lh(r)&&r.catch(s=>{cr(s,t,n)}),r}if(ae(e)){const r=[];for(let s=0;s<e.length;s++)r.push(Gt(e[s],t,n,o));return r}}function cr(e,t,n,o=!0){const r=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Ae;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(s){Mn(),gs(s,null,10,[e,l,u]),Nn();return}}nb(e,n,r,o,i)}function nb(e,t,n,o=!0,r=!1){if(r)throw e;console.error(e)}const wt=[];let nn=-1;const Vo=[];let Kn=null,jo=0;const Fh=Promise.resolve();let Di=null;function lt(e){const t=Di||Fh;return e?t.then(this?e.bind(this):e):t}function ob(e){let t=nn+1,n=wt.length;for(;t<n;){const o=t+n>>>1,r=wt[o],s=Xr(r);s<e||s===e&&r.flags&2?t=o+1:n=o}return t}function bu(e){if(!(e.flags&1)){const t=Xr(e),n=wt[wt.length-1];!n||!(e.flags&2)&&t>=Xr(n)?wt.push(e):wt.splice(ob(t),0,e),e.flags|=1,Bh()}}function Bh(){Di||(Di=Fh.then(Uh))}function pc(e){ae(e)?Vo.push(...e):Kn&&e.id===-1?Kn.splice(jo+1,0,e):e.flags&1||(Vo.push(e),e.flags|=1),Bh()}function uf(e,t,n=nn+1){for(;n<wt.length;n++){const o=wt[n];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;wt.splice(n,1),n--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function Li(e){if(Vo.length){const t=[...new Set(Vo)].sort((n,o)=>Xr(n)-Xr(o));if(Vo.length=0,Kn){Kn.push(...t);return}for(Kn=t,jo=0;jo<Kn.length;jo++){const n=Kn[jo];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Kn=null,jo=0}}const Xr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Uh(e){try{for(nn=0;nn<wt.length;nn++){const t=wt[nn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),gs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;nn<wt.length;nn++){const t=wt[nn];t&&(t.flags&=-2)}nn=-1,wt.length=0,Li(),Di=null,(wt.length||Vo.length)&&Uh()}}let rt=null,Aa=null;function ji(e){const t=rt;return rt=e,Aa=e&&e.type.__scopeId||null,t}function rb(e){Aa=e}function sb(){Aa=null}const ib=e=>he;function he(e,t=rt,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&qi(-1);const s=ji(t);let i;try{i=e(...r)}finally{ji(s),o._d&&qi(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Dr(e,t){if(rt===null)return e;const n=Na(rt),o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[s,i,a,l=Ae]=t[r];s&&(pe(s)&&(s={mounted:s,updated:s}),s.deep&&$n(i),o.push({dir:s,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function on(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];s&&(a.oldValue=s[i].value);let l=a.dir[o];l&&(Mn(),Gt(l,n,8,[e.el,a,e,t]),Nn())}}function So(e,t){if(ot){let n=ot.provides;const o=ot.parent&&ot.parent.provides;o===n&&(n=ot.provides=Object.create(o)),n[e]=t}}function ht(e,t,n=!1){const o=Ze();if(o||xo){let r=xo?xo._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&pe(t)?t.call(o&&o.proxy):t}}function ur(){return!!(Ze()||xo)}const ab=Symbol.for("v-scx"),lb=()=>ht(ab);function Dn(e,t){return Ta(e,null,t)}function cb(e,t){return Ta(e,null,{flush:"sync"})}function Fe(e,t,n){return Ta(e,t,n)}function Ta(e,t,n=Ae){const{immediate:o,deep:r,flush:s,once:i}=n,a=Ke({},n),l=t&&o||!t&&s!=="post";let u;if(tr){if(s==="sync"){const d=lb();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=cn,d.resume=cn,d.pause=cn,d}}const c=ot;a.call=(d,m,g)=>Gt(d,c,m,g);let f=!1;s==="post"?a.scheduler=d=>{Je(d,c&&c.suspense)}:s!=="sync"&&(f=!0,a.scheduler=(d,m)=>{m?d():bu(d)}),a.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const p=tb(e,t,a);return tr&&(u?u.push(p):l&&p()),p}function ub(e,t,n){const o=this.proxy,r=De(e)?e.includes(".")?zh(o,e):()=>o[e]:e.bind(o,o);let s;pe(t)?s=t:(s=t.handler,n=t);const i=vs(this),a=Ta(r,s.bind(o),n);return i(),a}function zh(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}const Un=new WeakMap,qh=Symbol("_vte"),Wh=e=>e.__isTeleport,yo=e=>e&&(e.disabled||e.disabled===""),fb=e=>e&&(e.defer||e.defer===""),ff=e=>typeof SVGElement<"u"&&e instanceof SVGElement,df=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,hc=(e,t)=>{const n=e&&e.to;return De(n)?t?t(n):null:n},db={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,s,i,a,l,u){const{mc:c,pc:f,pbc:p,o:{insert:d,querySelector:m,createText:g,createComment:b,parentNode:v}}=u,h=yo(t.props);let{dynamicChildren:y}=t;const w=(S,P,$)=>{S.shapeFlag&16&&c(S.children,P,$,r,s,i,a,l)},_=(S=t)=>{const P=yo(S.props),$=S.target=hc(S.props,m),O=mc($,S,g,d);$&&(i!=="svg"&&ff($)?i="svg":i!=="mathml"&&df($)&&(i="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add($),P||(w(S,$,O),Cr(S,!1)))},k=S=>{const P=()=>{if(Un.get(S)===P){if(Un.delete(S),yo(S.props)){const $=v(S.el)||n;w(S,$,S.anchor),Cr(S,!0)}_(S)}};Un.set(S,P),Je(P,s)};if(e==null){const S=t.el=g(""),P=t.anchor=g("");if(d(S,n,o),d(P,n,o),fb(t.props)||s&&s.pendingBranch){k(t);return}h&&(w(t,n,P),Cr(t,!0)),_()}else{t.el=e.el;const S=t.anchor=e.anchor,P=Un.get(e);if(P){P.flags|=8,Un.delete(e),k(t);return}t.targetStart=e.targetStart;const $=t.target=e.target,O=t.targetAnchor=e.targetAnchor,N=yo(e.props),C=N?n:$,F=N?S:O;if(i==="svg"||ff($)?i="svg":(i==="mathml"||df($))&&(i="mathml"),y?(p(e.dynamicChildren,y,C,r,s,i,a),Au(e,t,!0)):l||f(e,t,C,F,r,s,i,a,!1),h)N?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ms(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=hc(t.props,m);I&&Ms(t,I,null,u,0)}else N&&Ms(t,$,O,u,1);Cr(t,h)}},remove(e,t,n,{um:o,o:{remove:r}},s){const{shapeFlag:i,children:a,anchor:l,targetStart:u,targetAnchor:c,target:f,props:p}=e;let d=s||!yo(p);const m=Un.get(e);if(m&&(m.flags|=8,Un.delete(e),d=!1),f&&(r(u),r(c)),s&&r(l),i&16)for(let g=0;g<a.length;g++){const b=a[g];o(b,t,n,d,!!b.dynamicChildren)}},move:Ms,hydrate:pb};function Ms(e,t,n,{o:{insert:o},m:r},s=2){s===0&&o(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:u,props:c}=e,f=s===2;if(f&&o(i,t,n),!Un.has(e)&&(!f||yo(c))&&l&16)for(let p=0;p<u.length;p++)r(u[p],t,n,2);f&&o(a,t,n)}function pb(e,t,n,o,r,s,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:u,createText:c}},f){function p(b,v){let h=v;for(;h;){if(h&&h.nodeType===8){if(h.data==="teleport start anchor")t.targetStart=h;else if(h.data==="teleport anchor"){t.targetAnchor=h,b._lpa=t.targetAnchor&&i(t.targetAnchor);break}}h=i(h)}}function d(b,v){v.anchor=f(i(b),v,a(b),n,o,r,s)}const m=t.target=hc(t.props,l),g=yo(t.props);if(m){const b=m._lpa||m.firstChild;t.shapeFlag&16&&(g?(d(e,t),p(m,b),t.targetAnchor||mc(m,t,c,u,a(e)===m?e:null)):(t.anchor=i(e),p(m,b),t.targetAnchor||mc(m,t,c,u),f(b&&i(b),t,m,n,o,r,s))),Cr(t,g)}else g&&t.shapeFlag&16&&(d(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const hb=db;function Cr(e,t){const n=e.ctx;if(n&&n.ut){let o,r;for(t?(o=e.el,r=e.anchor):(o=e.targetStart,r=e.targetAnchor);o&&o!==r;)o.nodeType===1&&o.setAttribute("data-v-owner",n.uid),o=o.nextSibling;n.ut()}}function mc(e,t,n,o,r=null){const s=t.targetStart=n(""),i=t.targetAnchor=n("");return s[qh]=i,e&&(o(s,e,r),o(i,e,r)),i}const rn=Symbol("_leaveCb"),mr=Symbol("_enterCb");function Vh(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ro(()=>{e.isMounted=!0}),fr(()=>{e.isUnmounting=!0}),e}const It=[Function,Array],Kh={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:It,onEnter:It,onAfterEnter:It,onEnterCancelled:It,onBeforeLeave:It,onLeave:It,onAfterLeave:It,onLeaveCancelled:It,onBeforeAppear:It,onAppear:It,onAfterAppear:It,onAppearCancelled:It},Gh=e=>{const t=e.subTree;return t.component?Gh(t.component):t},mb={name:"BaseTransition",props:Kh,setup(e,{slots:t}){const n=Ze(),o=Vh();return()=>{const r=t.default&&wu(t.default(),!0),s=r&&r.length?Qh(r):n.subTree?Ue():void 0;if(!s)return;const i=xe(e),{mode:a}=i;if(o.isLeaving)return rl(s);const l=pf(s);if(!l)return rl(s);let u=Zr(l,i,o,n,f=>u=f);l.type!==We&&no(l,u);let c=n.subTree&&pf(n.subTree);if(c&&c.type!==We&&!Ut(c,l)&&Gh(n).type!==We){let f=Zr(c,i,o,n);if(no(c,f),a==="out-in"&&l.type!==We)return o.isLeaving=!0,f.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},rl(s);a==="in-out"&&l.type!==We?f.delayLeave=(p,d,m)=>{const g=Jh(o,c);g[String(c.key)]=c,p[rn]=()=>{d(),p[rn]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{m(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return s}}};function Qh(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==We){t=n;break}}return t}const gb=mb;function Jh(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Zr(e,t,n,o,r){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:p,onLeave:d,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:b,onAppear:v,onAfterAppear:h,onAppearCancelled:y}=t,w=String(e.key),_=Jh(n,e),k=($,O)=>{$&&Gt($,o,9,O)},S=($,O)=>{const N=O[1];k($,O),ae($)?$.every(C=>C.length<=1)&&N():$.length<=1&&N()},P={mode:i,persisted:a,beforeEnter($){let O=l;if(!n.isMounted)if(s)O=b||l;else return;$[rn]&&$[rn](!0);const N=_[w];N&&Ut(e,N)&&N.el[rn]&&N.el[rn](),k(O,[$])},enter($){if(_[w]===e)return;let O=u,N=c,C=f;if(!n.isMounted)if(s)O=v||u,N=h||c,C=y||f;else return;let F=!1;$[mr]=Q=>{F||(F=!0,Q?k(C,[$]):k(N,[$]),P.delayedLeave&&P.delayedLeave(),$[mr]=void 0)};const I=$[mr].bind(null,!1);O?S(O,[$,I]):I()},leave($,O){const N=String(e.key);if($[mr]&&$[mr](!0),n.isUnmounting)return O();k(p,[$]);let C=!1;$[rn]=I=>{C||(C=!0,O(),I?k(g,[$]):k(m,[$]),$[rn]=void 0,_[N]===e&&delete _[N])};const F=$[rn].bind(null,!1);_[N]=e,d?S(d,[$,F]):F()},clone($){const O=Zr($,t,n,o,r);return r&&r(O),O}};return P}function rl(e){if(ys(e))return e=hn(e),e.children=null,e}function pf(e){if(!ys(e))return Wh(e.type)&&e.children?Qh(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&pe(n.default))return n.default()}}function no(e,t){e.shapeFlag&6&&e.component?(e.transition=t,no(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function wu(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===Ee?(i.patchFlag&128&&r++,o=o.concat(wu(i.children,t,a))):(t||i.type!==We)&&o.push(a!=null?hn(i,{key:a}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function ve(e,t){return pe(e)?Ke({name:e.name},t,{setup:e}):e}function yb(){const e=Ze();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function _u(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function hf(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Hi=new WeakMap;function Ko(e,t,n,o,r=!1){if(ae(e)){e.forEach((g,b)=>Ko(g,t&&(ae(t)?t[b]:t),n,o,r));return}if(Rn(o)&&!r){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Ko(e,t,n,o.component.subTree);return}const s=o.shapeFlag&4?Na(o.component):o.el,i=r?null:s,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Ae?a.refs={}:a.refs,f=a.setupState,p=xe(f),d=f===Ae?ah:g=>hf(c,g)?!1:Oe(p,g),m=(g,b)=>!(b&&hf(c,b));if(u!=null&&u!==l){if(mf(t),De(u))c[u]=null,d(u)&&(f[u]=null);else if(Le(u)){const g=t;m(u,g.k)&&(u.value=null),g.k&&(c[g.k]=null)}}if(pe(l))gs(l,a,12,[i,c]);else{const g=De(l),b=Le(l);if(g||b){const v=()=>{if(e.f){const h=g?d(l)?f[l]:c[l]:m()||!e.k?l.value:c[e.k];if(r)ae(h)&&du(h,s);else if(ae(h))h.includes(s)||h.push(s);else if(g)c[l]=[s],d(l)&&(f[l]=c[l]);else{const y=[s];m(l,e.k)&&(l.value=y),e.k&&(c[e.k]=y)}}else g?(c[l]=i,d(l)&&(f[l]=i)):b&&(m(l,e.k)&&(l.value=i),e.k&&(c[e.k]=i))};if(i){const h=()=>{v(),Hi.delete(e)};h.id=-1,Hi.set(e,h),Je(h,n)}else mf(e),v()}}}function mf(e){const t=Hi.get(e);t&&(t.flags|=8,Hi.delete(e))}let gf=!1;const Io=()=>{gf||(console.error("Hydration completed but contains mismatches."),gf=!0)},vb=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",bb=e=>e.namespaceURI.includes("MathML"),Ns=e=>{if(e.nodeType===1){if(vb(e))return"svg";if(bb(e))return"mathml"}},Bo=e=>e.nodeType===8;function wb(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:s,parentNode:i,remove:a,insert:l,createComment:u}}=e,c=(y,w)=>{if(!w.hasChildNodes()){n(null,y,w),Li(),w._vnode=y;return}f(w.firstChild,y,null,null,null),Li(),w._vnode=y},f=(y,w,_,k,S,P=!1)=>{P=P||!!w.dynamicChildren;const $=Bo(y)&&y.data==="[",O=()=>g(y,w,_,k,S,$),{type:N,ref:C,shapeFlag:F,patchFlag:I}=w;let Q=y.nodeType;w.el=y,I===-2&&(P=!1,w.dynamicChildren=null);let W=null;switch(N){case ko:Q!==3?w.children===""?(l(w.el=r(""),i(y),y),W=y):W=O():(y.data!==w.children&&(Io(),y.data=w.children),W=s(y));break;case We:h(y)?(W=s(y),v(w.el=y.content.firstChild,y,_)):Q!==8||$?W=O():W=s(y);break;case vi:if($&&(y=s(y),Q=y.nodeType),Q===1||Q===3){W=y;const Y=!w.children.length;for(let D=0;D<w.staticCount;D++)Y&&(w.children+=W.nodeType===1?W.outerHTML:W.data),D===w.staticCount-1&&(w.anchor=W),W=s(W);return $?s(W):W}else O();break;case Ee:$?W=m(y,w,_,k,S,P):W=O();break;default:if(F&1)(Q!==1||w.type.toLowerCase()!==y.tagName.toLowerCase())&&!h(y)?W=O():W=p(y,w,_,k,S,P);else if(F&6){w.slotScopeIds=S;const Y=i(y);if($?W=b(y):Bo(y)&&y.data==="teleport start"?W=b(y,y.data,"teleport end"):W=s(y),t(w,Y,null,_,k,Ns(Y),P),Rn(w)&&!w.type.__asyncResolved){let D;$?(D=ge(Ee),D.anchor=W?W.previousSibling:Y.lastChild):D=y.nodeType===3?qe(""):ge("div"),D.el=y,w.component.subTree=D}}else F&64?Q!==8?W=O():W=w.type.hydrate(y,w,_,k,S,P,e,d):F&128&&(W=w.type.hydrate(y,w,_,k,Ns(i(y)),S,P,e,f))}return C!=null&&Ko(C,null,k,w),W},p=(y,w,_,k,S,P)=>{P=P||!!w.dynamicChildren;const{type:$,props:O,patchFlag:N,shapeFlag:C,dirs:F,transition:I}=w,Q=$==="input"||$==="option";if(Q||N!==-1){F&&on(w,null,_,"created");let W=!1;if(h(y)){W=vm(null,I)&&_&&_.vnode.props&&_.vnode.props.appear;const D=y.content.firstChild;if(W){const oe=D.getAttribute("class");oe&&(D.$cls=oe),I.beforeEnter(D)}v(D,y,_),w.el=y=D}if(C&16&&!(O&&(O.innerHTML||O.textContent))){let D=d(y.firstChild,w,y,_,k,S,P);for(;D;){Ds(y,1)||Io();const oe=D;D=D.nextSibling,a(oe)}}else if(C&8){let D=w.children;D[0]===`
|
|
3
|
+
`&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&(D=D.slice(1));const{textContent:oe}=y;oe!==D&&oe!==D.replace(/\r\n|\r/g,`
|
|
4
|
+
`)&&(Ds(y,0)||Io(),y.textContent=w.children)}if(O){if(Q||!P||N&48){const D=y.tagName.includes("-");for(const oe in O)(Q&&(oe.endsWith("value")||oe==="indeterminate")||hs(oe)&&!_o(oe)||oe[0]==="."||D&&!_o(oe))&&o(y,oe,null,O[oe],void 0,_)}else if(O.onClick)o(y,"onClick",null,O.onClick,void 0,_);else if(N&4&&Xn(O.style))for(const D in O.style)O.style[D]}let Y;(Y=O&&O.onVnodeBeforeMount)&&Et(Y,_,w),F&&on(w,null,_,"beforeMount"),((Y=O&&O.onVnodeMounted)||F||W)&&Sm(()=>{Y&&Et(Y,_,w),W&&I.enter(y),F&&on(w,null,_,"mounted")},k)}return y.nextSibling},d=(y,w,_,k,S,P,$)=>{$=$||!!w.dynamicChildren;const O=w.children,N=O.length;for(let C=0;C<N;C++){const F=$?O[C]:O[C]=$t(O[C]),I=F.type===ko;y?(I&&!$&&C+1<N&&$t(O[C+1]).type===ko&&(l(r(y.data.slice(F.children.length)),_,s(y)),y.data=F.children),y=f(y,F,k,S,P,$)):I&&!F.children?l(F.el=r(""),_):(Ds(_,1)||Io(),n(null,F,_,null,k,S,Ns(_),P))}return y},m=(y,w,_,k,S,P)=>{const{slotScopeIds:$}=w;$&&(S=S?S.concat($):$);const O=i(y),N=d(s(y),w,O,_,k,S,P);return N&&Bo(N)&&N.data==="]"?s(w.anchor=N):(Io(),l(w.anchor=u("]"),O,N),N)},g=(y,w,_,k,S,P)=>{if(Ds(y.parentElement,1)||Io(),w.el=null,P){const N=b(y);for(;;){const C=s(y);if(C&&C!==N)a(C);else break}}const $=s(y),O=i(y);return a(y),n(null,w,O,$,_,k,Ns(O),S),_&&(_.vnode.el=w.el,Ia(_,w.el)),$},b=(y,w="[",_="]")=>{let k=0;for(;y;)if(y=s(y),y&&Bo(y)&&(y.data===w&&k++,y.data===_)){if(k===0)return s(y);k--}return y},v=(y,w,_)=>{const k=w.parentNode;k&&k.replaceChild(y,w);let S=_;for(;S;)S.vnode.el===w&&(S.vnode.el=S.subTree.el=y),S=S.parent},h=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[c,f]}const yf="data-allow-mismatch",_b={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ds(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(yf);)e=e.parentElement;const n=e&&e.getAttribute(yf);if(n==null)return!1;if(n==="")return!0;{const o=n.split(",");return t===0&&o.includes("children")?!0:o.includes(_b[t])}}wa().requestIdleCallback;wa().cancelIdleCallback;function Eb(e,t){if(Bo(e)&&e.data==="["){let n=1,o=e.nextSibling;for(;o;){if(o.nodeType===1){if(t(o)===!1)break}else if(Bo(o))if(o.data==="]"){if(--n===0)break}else o.data==="["&&n++;o=o.nextSibling}}else t(e)}const Rn=e=>!!e.type.__asyncLoader;function vf(e){pe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,hydrate:s,timeout:i,suspensible:a=!0,onError:l}=e;let u=null,c,f=0;const p=()=>(f++,u=null,d()),d=()=>{let m;return u||(m=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((b,v)=>{l(g,()=>b(p()),()=>v(g),f+1)});throw g}).then(g=>m!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return ve({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(m,g,b){let v=!1;(g.bu||(g.bu=[])).push(()=>v=!0);const h=()=>{v||b()},y=s?()=>{const w=s(h,_=>Eb(m,_));w&&(g.bum||(g.bum=[])).push(w)}:h;c?y():d().then(()=>!g.isUnmounted&&y())},get __asyncResolved(){return c},setup(){const m=ot;if(_u(m),c)return()=>Ls(c,m);const g=y=>{u=null,cr(y,m,13,!o)};if(a&&m.suspense||tr)return d().then(y=>()=>Ls(y,m)).catch(y=>(g(y),()=>o?ge(o,{error:y}):null));const b=B(!1),v=B(),h=B(!!r);return r&&setTimeout(()=>{h.value=!1},r),i!=null&&setTimeout(()=>{if(!b.value&&!v.value){const y=new Error(`Async component timed out after ${i}ms.`);g(y),v.value=y}},i),d().then(()=>{b.value=!0,m.parent&&ys(m.parent.vnode)&&m.parent.update()}).catch(y=>{g(y),v.value=y}),()=>{if(b.value&&c)return Ls(c,m);if(v.value&&o)return ge(o,{error:v.value});if(n&&!h.value)return Ls(n,m)}}})}function Ls(e,t){const{ref:n,props:o,children:r,ce:s}=t.vnode,i=ge(e,o,r);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const ys=e=>e.type.__isKeepAlive,Sb={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ze(),o=n.ctx;if(!o.renderer)return()=>{const h=t.default&&t.default();return h&&h.length===1?h[0]:h};const r=new Map,s=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=o,p=f("div");o.activate=(h,y,w,_,k)=>{const S=h.component;u(h,y,w,0,a),l(S.vnode,h,y,w,S,a,_,h.slotScopeIds,k),Je(()=>{S.isDeactivated=!1,S.a&&Wo(S.a);const P=h.props&&h.props.onVnodeMounted;P&&Et(P,S.parent,h)},a)},o.deactivate=h=>{const y=h.component;Ui(y.m),Ui(y.a),u(h,p,null,1,a),Je(()=>{y.da&&Wo(y.da);const w=h.props&&h.props.onVnodeUnmounted;w&&Et(w,y.parent,h),y.isDeactivated=!0},a)};function d(h){sl(h),c(h,n,a,!0)}function m(h){r.forEach((y,w)=>{const _=kc(Rn(y)?y.type.__asyncResolved||{}:y.type);_&&!h(_)&&g(w)})}function g(h){const y=r.get(h);y&&(!i||!Ut(y,i))?d(y):i&&sl(i),r.delete(h),s.delete(h)}Fe(()=>[e.include,e.exclude],([h,y])=>{h&&m(w=>Ar(h,w)),y&&m(w=>!Ar(y,w))},{flush:"post",deep:!0});let b=null;const v=()=>{b!=null&&(zi(n.subTree.type)?Je(()=>{r.set(b,js(n.subTree))},n.subTree.suspense):r.set(b,js(n.subTree)))};return ro(v),Oa(v),fr(()=>{r.forEach(h=>{const{subTree:y,suspense:w}=n,_=js(y);if(h.type===_.type&&h.key===_.key){sl(_);const k=_.component.da;k&&Je(k,w);return}d(h)})}),()=>{if(b=null,!t.default)return i=null;const h=t.default(),y=h[0];if(h.length>1)return i=null,h;if(!Ao(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return i=null,y;let w=js(y);if(w.type===We)return i=null,w;const _=w.type,k=kc(Rn(w)?w.type.__asyncResolved||{}:_),{include:S,exclude:P,max:$}=e;if(S&&(!k||!Ar(S,k))||P&&k&&Ar(P,k))return w.shapeFlag&=-257,i=w,y;const O=w.key==null?_:w.key,N=r.get(O);return w.el&&(w=hn(w),y.shapeFlag&128&&(y.ssContent=w)),b=O,N?(w.el=N.el,w.component=N.component,w.transition&&no(w,w.transition),w.shapeFlag|=512,s.delete(O),s.add(O)):(s.add(O),$&&s.size>parseInt($,10)&&g(s.values().next().value)),w.shapeFlag|=256,i=w,zi(y.type)?y:w}}},xb=Sb;function Ar(e,t){return ae(e)?e.some(n=>Ar(n,t)):De(e)?e.split(",").includes(t):pv(e)?(e.lastIndex=0,e.test(t)):!1}function Yh(e,t){Zh(e,"a",t)}function Xh(e,t){Zh(e,"da",t)}function Zh(e,t,n=ot){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if($a(t,o,n),n){let r=n.parent;for(;r&&r.parent;)ys(r.parent.vnode)&&kb(o,t,n,r),r=r.parent}}function kb(e,t,n,o){const r=$a(t,e,o,!0);Pa(()=>{du(o[t],r)},n)}function sl(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function js(e){return e.shapeFlag&128?e.ssContent:e}function $a(e,t,n=ot,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{Mn();const a=vs(n),l=Gt(t,n,e,i);return a(),Nn(),l});return o?r.unshift(s):r.push(s),s}}const Hn=e=>(t,n=ot)=>{(!tr||e==="sp")&&$a(e,(...o)=>t(...o),n)},Cb=Hn("bm"),ro=Hn("m"),Ab=Hn("bu"),Oa=Hn("u"),fr=Hn("bum"),Pa=Hn("um"),Tb=Hn("sp"),$b=Hn("rtg"),Ob=Hn("rtc");function em(e,t=ot){$a("ec",e,t)}const Eu="components",Pb="directives";function es(e,t){return Su(Eu,e,!0,t)||e}const tm=Symbol.for("v-ndc");function gc(e){return De(e)?Su(Eu,e,!1)||e:e||tm}function vR(e){return Su(Pb,e)}function Su(e,t,n=!0,o=!1){const r=rt||ot;if(r){const s=r.type;if(e===Eu){const a=kc(s,!1);if(a&&(a===t||a===it(t)||a===ba(it(t))))return s}const i=bf(r[e]||s[e],t)||bf(r.appContext[e],t);return!i&&o?s:i}}function bf(e,t){return e&&(e[t]||e[it(t)]||e[ba(it(t))])}function xt(e,t,n,o){let r;const s=n,i=ae(e);if(i||De(e)){const a=i&&Xn(e);let l=!1,u=!1;a&&(l=!Pt(e),u=pn(e),e=Sa(e)),r=new Array(e.length);for(let c=0,f=e.length;c<f;c++)r[c]=t(l?u?Zo(Kt(e[c])):Kt(e[c]):e[c],c,void 0,s)}else if(typeof e=="number"){r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a+1,a,void 0,s)}else if(Te(e))if(e[Symbol.iterator])r=Array.from(e,(a,l)=>t(a,l,void 0,s));else{const a=Object.keys(e);r=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];r[l]=t(e[c],c,l,s)}}else r=[];return r}function Pe(e,t,n={},o,r){if(rt.ce||rt.parent&&Rn(rt.parent)&&rt.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),L(),ye(Ee,null,[ge("slot",n,o&&o())],u?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),L();const i=s&&nm(s(n)),a=n.key||i&&i.key,l=ye(Ee,{key:(a&&!Rt(a)?a:`_${t}`)+(!i&&o?"_fb":"")},i||(o?o():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function nm(e){return e.some(t=>Ao(t)?!(t.type===We||t.type===Ee&&!nm(t.children)):!0)?e:null}const yc=e=>e?Am(e)?Na(e):yc(e.parent):null,Lr=Ke(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=>yc(e.parent),$root:e=>yc(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>rm(e),$forceUpdate:e=>e.f||(e.f=()=>{bu(e.update)}),$nextTick:e=>e.n||(e.n=lt.bind(e.proxy)),$watch:e=>ub.bind(e)}),il=(e,t)=>e!==Ae&&!e.__isScriptSetup&&Oe(e,t),Rb={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:a,appContext:l}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(il(o,t))return i[t]=1,o[t];if(r!==Ae&&Oe(r,t))return i[t]=2,r[t];if(Oe(s,t))return i[t]=3,s[t];if(n!==Ae&&Oe(n,t))return i[t]=4,n[t];vc&&(i[t]=0)}}const u=Lr[t];let c,f;if(u)return t==="$attrs"&&pt(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==Ae&&Oe(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,Oe(f,t))return f[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return il(r,t)?(r[t]=n,!0):o!==Ae&&Oe(o,t)?(o[t]=n,!0):Oe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,props:s,type:i}},a){let l;return!!(n[a]||e!==Ae&&a[0]!=="$"&&Oe(e,a)||il(t,a)||Oe(s,a)||Oe(o,a)||Oe(Lr,a)||Oe(r.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function bR(){return Ib().slots}function Ib(e){const t=Ze();return t.setupContext||(t.setupContext=$m(t))}function Fi(e){return ae(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Mb(e,t){return!e||!t?e||t:ae(e)&&ae(t)?e.concat(t):Ke({},Fi(e),Fi(t))}let vc=!0;function Nb(e){const t=rm(e),n=e.proxy,o=e.ctx;vc=!1,t.beforeCreate&&wf(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:p,beforeUpdate:d,updated:m,activated:g,deactivated:b,beforeDestroy:v,beforeUnmount:h,destroyed:y,unmounted:w,render:_,renderTracked:k,renderTriggered:S,errorCaptured:P,serverPrefetch:$,expose:O,inheritAttrs:N,components:C,directives:F,filters:I}=t;if(u&&Db(u,o,null),i)for(const Y in i){const D=i[Y];pe(D)&&(o[Y]=D.bind(n))}if(r){const Y=r.call(n,n);Te(Y)&&(e.data=jt(Y))}if(vc=!0,s)for(const Y in s){const D=s[Y],oe=pe(D)?D.bind(n,n):pe(D.get)?D.get.bind(n,n):cn,Re=!pe(D)&&pe(D.set)?D.set.bind(n):cn,mt=M({get:oe,set:Re});Object.defineProperty(o,Y,{enumerable:!0,configurable:!0,get:()=>mt.value,set:Ge=>mt.value=Ge})}if(a)for(const Y in a)om(a[Y],o,n,Y);if(l){const Y=pe(l)?l.call(n):l;Reflect.ownKeys(Y).forEach(D=>{So(D,Y[D])})}c&&wf(c,e,"c");function W(Y,D){ae(D)?D.forEach(oe=>Y(oe.bind(n))):D&&Y(D.bind(n))}if(W(Cb,f),W(ro,p),W(Ab,d),W(Oa,m),W(Yh,g),W(Xh,b),W(em,P),W(Ob,k),W($b,S),W(fr,h),W(Pa,w),W(Tb,$),ae(O))if(O.length){const Y=e.exposed||(e.exposed={});O.forEach(D=>{Object.defineProperty(Y,D,{get:()=>n[D],set:oe=>n[D]=oe,enumerable:!0})})}else e.exposed||(e.exposed={});_&&e.render===cn&&(e.render=_),N!=null&&(e.inheritAttrs=N),C&&(e.components=C),F&&(e.directives=F),$&&_u(e)}function Db(e,t,n=cn){ae(e)&&(e=bc(e));for(const o in e){const r=e[o];let s;Te(r)?"default"in r?s=ht(r.from||o,r.default,!0):s=ht(r.from||o):s=ht(r),Le(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function wf(e,t,n){Gt(ae(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function om(e,t,n,o){let r=o.includes(".")?zh(n,o):()=>n[o];if(De(e)){const s=t[e];pe(s)&&Fe(r,s)}else if(pe(e))Fe(r,e.bind(n));else if(Te(e))if(ae(e))e.forEach(s=>om(s,t,n,o));else{const s=pe(e.handler)?e.handler.bind(n):t[e.handler];pe(s)&&Fe(r,s,e)}}function rm(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(u=>Bi(l,u,i,!0)),Bi(l,t,i)),Te(t)&&s.set(t,l),l}function Bi(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Bi(e,s,n,!0),r&&r.forEach(i=>Bi(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const a=Lb[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Lb={data:_f,props:Ef,emits:Ef,methods:Tr,computed:Tr,beforeCreate:yt,created:yt,beforeMount:yt,mounted:yt,beforeUpdate:yt,updated:yt,beforeDestroy:yt,beforeUnmount:yt,destroyed:yt,unmounted:yt,activated:yt,deactivated:yt,errorCaptured:yt,serverPrefetch:yt,components:Tr,directives:Tr,watch:Hb,provide:_f,inject:jb};function _f(e,t){return t?e?function(){return Ke(pe(e)?e.call(this,this):e,pe(t)?t.call(this,this):t)}:t:e}function jb(e,t){return Tr(bc(e),bc(t))}function bc(e){if(ae(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function yt(e,t){return e?[...new Set([].concat(e,t))]:t}function Tr(e,t){return e?Ke(Object.create(null),e,t):t}function Ef(e,t){return e?ae(e)&&ae(t)?[...new Set([...e,...t])]:Ke(Object.create(null),Fi(e),Fi(t??{})):t}function Hb(e,t){if(!e)return t;if(!t)return e;const n=Ke(Object.create(null),e);for(const o in t)n[o]=yt(e[o],t[o]);return n}function sm(){return{app:null,config:{isNativeTag:ah,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}}let Fb=0;function Bb(e,t){return function(o,r=null){pe(o)||(o=Ke({},o)),r!=null&&!Te(r)&&(r=null);const s=sm(),i=new WeakSet,a=[];let l=!1;const u=s.app={_uid:Fb++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:yw,get config(){return s.config},set config(c){},use(c,...f){return i.has(c)||(c&&pe(c.install)?(i.add(c),c.install(u,...f)):pe(c)&&(i.add(c),c(u,...f))),u},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),u},component(c,f){return f?(s.components[c]=f,u):s.components[c]},directive(c,f){return f?(s.directives[c]=f,u):s.directives[c]},mount(c,f,p){if(!l){const d=u._ceVNode||ge(o,r);return d.appContext=s,p===!0?p="svg":p===!1&&(p=void 0),f&&t?t(d,c):e(d,c,p),l=!0,u._container=c,c.__vue_app__=u,Na(d.component)}},onUnmount(c){a.push(c)},unmount(){l&&(Gt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return s.provides[c]=f,u},runWithContext(c){const f=xo;xo=u;try{return c()}finally{xo=f}}};return u}}let xo=null;function xu(e,t,n=Ae){const o=Ze(),r=it(t),s=jn(t),i=im(e,r),a=Dh((l,u)=>{let c,f=Ae,p;return cb(()=>{const d=e[r];dt(c,d)&&(c=d,u())}),{get(){return l(),n.get?n.get(c):c},set(d){const m=n.set?n.set(d):d;if(!dt(m,c)&&!(f!==Ae&&dt(d,f)))return;const g=o.vnode.props;g&&(t in g||r in g||s in g)&&(`onUpdate:${t}`in g||`onUpdate:${r}`in g||`onUpdate:${s}`in g)||(c=d,u()),o.emit(`update:${t}`,m),dt(d,m)&&dt(d,f)&&!dt(m,p)&&u(),f=d,p=m}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?i||Ae:a,done:!1}:{done:!0}}}},a}const im=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${it(t)}Modifiers`]||e[`${jn(t)}Modifiers`];function Ub(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Ae;let r=n;const s=t.startsWith("update:"),i=s&&im(o,t.slice(7));i&&(i.trim&&(r=n.map(c=>De(c)?c.trim():c)),i.number&&(r=n.map(pu)));let a,l=o[a=yi(t)]||o[a=yi(it(t))];!l&&s&&(l=o[a=yi(jn(t))]),l&&Gt(l,e,6,r);const u=o[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Gt(u,e,6,r)}}const zb=new WeakMap;function am(e,t,n=!1){const o=n?zb:t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},a=!1;if(!pe(e)){const l=u=>{const c=am(u,t,!0);c&&(a=!0,Ke(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(Te(e)&&o.set(e,null),null):(ae(s)?s.forEach(l=>i[l]=null):Ke(i,s),Te(e)&&o.set(e,i),i)}function Ra(e,t){return!e||!hs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Oe(e,t[0].toLowerCase()+t.slice(1))||Oe(e,jn(t))||Oe(e,t))}function al(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[s],slots:i,attrs:a,emit:l,render:u,renderCache:c,props:f,data:p,setupState:d,ctx:m,inheritAttrs:g}=e,b=ji(e);let v,h;try{if(n.shapeFlag&4){const w=r||o,_=w;v=$t(u.call(_,w,c,f,d,p,m)),h=a}else{const w=t;v=$t(w.length>1?w(f,{attrs:a,slots:i,emit:l}):w(f,null)),h=t.props?a:Wb(a)}}catch(w){jr.length=0,cr(w,e,1),v=ge(We)}let y=v;if(h&&g!==!1){const w=Object.keys(h),{shapeFlag:_}=y;w.length&&_&7&&(s&&w.some(ma)&&(h=Vb(h,s)),y=hn(y,h,!1,!0))}return n.dirs&&(y=hn(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&no(y,n.transition),v=y,ji(b),v}function qb(e,t=!0){let n;for(let o=0;o<e.length;o++){const r=e[o];if(Ao(r)){if(r.type!==We||r.children==="v-if"){if(n)return;n=r}}else return}return n}const Wb=e=>{let t;for(const n in e)(n==="class"||n==="style"||hs(n))&&((t||(t={}))[n]=e[n]);return t},Vb=(e,t)=>{const n={};for(const o in e)(!ma(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Kb(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:a,patchFlag:l}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?Sf(o,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const p=c[f];if(lm(i,o,p)&&!Ra(u,p))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===i?!1:o?i?Sf(o,i,u):!0:!!i;return!1}function Sf(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(lm(t,e,s)&&!Ra(n,s))return!0}return!1}function lm(e,t,n){const o=e[n],r=t[n];return n==="style"&&Te(o)&&Te(r)?!ms(o,r):o!==r}function Ia({vnode:e,parent:t,suspense:n},o){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=o,e=r),r===e)(e=t.vnode).el=o,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=o)}const cm={},um=()=>Object.create(cm),fm=e=>Object.getPrototypeOf(e)===cm;function Gb(e,t,n,o=!1){const r={},s=um();e.propsDefaults=Object.create(null),dm(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:ln(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Qb(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,a=xe(r),[l]=e.propsOptions;let u=!1;if((o||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let p=c[f];if(Ra(e.emitsOptions,p))continue;const d=t[p];if(l)if(Oe(s,p))d!==s[p]&&(s[p]=d,u=!0);else{const m=it(p);r[m]=wc(l,a,m,d,e,!1)}else d!==s[p]&&(s[p]=d,u=!0)}}}else{dm(e,t,r,s)&&(u=!0);let c;for(const f in a)(!t||!Oe(t,f)&&((c=jn(f))===f||!Oe(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(r[f]=wc(l,a,f,void 0,e,!0)):delete r[f]);if(s!==a)for(const f in s)(!t||!Oe(t,f))&&(delete s[f],u=!0)}u&&Tn(e.attrs,"set","")}function dm(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(_o(l))continue;const u=t[l];let c;r&&Oe(r,c=it(l))?!s||!s.includes(c)?n[c]=u:(a||(a={}))[c]=u:Ra(e.emitsOptions,l)||(!(l in o)||u!==o[l])&&(o[l]=u,i=!0)}if(s){const l=xe(n),u=a||Ae;for(let c=0;c<s.length;c++){const f=s[c];n[f]=wc(r,l,f,u[f],e,!Oe(u,f))}}return i}function wc(e,t,n,o,r,s){const i=e[n];if(i!=null){const a=Oe(i,"default");if(a&&o===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&pe(l)){const{propsDefaults:u}=r;if(n in u)o=u[n];else{const c=vs(r);o=u[n]=l.call(null,t),c()}}else o=l;r.ce&&r.ce._setProp(n,o)}i[0]&&(s&&!a?o=!1:i[1]&&(o===""||o===jn(n))&&(o=!0))}return o}const Jb=new WeakMap;function pm(e,t,n=!1){const o=n?Jb:t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},a=[];let l=!1;if(!pe(e)){const c=f=>{l=!0;const[p,d]=pm(f,t,!0);Ke(i,p),d&&a.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return Te(e)&&o.set(e,zo),zo;if(ae(s))for(let c=0;c<s.length;c++){const f=it(s[c]);xf(f)&&(i[f]=Ae)}else if(s)for(const c in s){const f=it(c);if(xf(f)){const p=s[c],d=i[f]=ae(p)||pe(p)?{type:p}:Ke({},p),m=d.type;let g=!1,b=!0;if(ae(m))for(let v=0;v<m.length;++v){const h=m[v],y=pe(h)&&h.name;if(y==="Boolean"){g=!0;break}else y==="String"&&(b=!1)}else g=pe(m)&&m.name==="Boolean";d[0]=g,d[1]=b,(g||Oe(d,"default"))&&a.push(f)}}const u=[i,a];return Te(e)&&o.set(e,u),u}function xf(e){return e[0]!=="$"&&!_o(e)}const ku=e=>e==="_"||e==="_ctx"||e==="$stable",Cu=e=>ae(e)?e.map($t):[$t(e)],Yb=(e,t,n)=>{if(t._n)return t;const o=he((...r)=>Cu(t(...r)),n);return o._c=!1,o},hm=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ku(r))continue;const s=e[r];if(pe(s))t[r]=Yb(r,s,o);else if(s!=null){const i=Cu(s);t[r]=()=>i}}},mm=(e,t)=>{const n=Cu(t);e.slots.default=()=>n},gm=(e,t,n)=>{for(const o in t)(n||!ku(o))&&(e[o]=t[o])},Xb=(e,t,n)=>{const o=e.slots=um();if(e.vnode.shapeFlag&32){const r=t._;r?(gm(o,t,n),n&&fh(o,"_",r,!0)):hm(t,o)}else t&&mm(e,t)},Zb=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=Ae;if(o.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:gm(r,t,n):(s=!t.$stable,hm(t,r)),i=t}else t&&(mm(e,t),i={default:1});if(s)for(const a in r)!ku(a)&&i[a]==null&&delete r[a]},Je=Sm;function ew(e){return ym(e)}function tw(e){return ym(e,wb)}function ym(e,t){const n=wa();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:p,setScopeId:d=cn,insertStaticContent:m}=e,g=(E,x,R,U=null,j=null,z=null,ee=void 0,X=null,J=!!x.dynamicChildren)=>{if(E===x)return;E&&!Ut(E,x)&&(U=H(E),Ge(E,j,z,!0),E=null),x.patchFlag===-2&&(J=!1,x.dynamicChildren=null);const{type:q,ref:ue,shapeFlag:re}=x;switch(q){case ko:b(E,x,R,U);break;case We:v(E,x,R,U);break;case vi:E==null&&h(x,R,U,ee);break;case Ee:C(E,x,R,U,j,z,ee,X,J);break;default:re&1?_(E,x,R,U,j,z,ee,X,J):re&6?F(E,x,R,U,j,z,ee,X,J):(re&64||re&128)&&q.process(E,x,R,U,j,z,ee,X,J,ce)}ue!=null&&j?Ko(ue,E&&E.ref,z,x||E,!x):ue==null&&E&&E.ref!=null&&Ko(E.ref,null,z,E,!0)},b=(E,x,R,U)=>{if(E==null)o(x.el=a(x.children),R,U);else{const j=x.el=E.el;x.children!==E.children&&u(j,x.children)}},v=(E,x,R,U)=>{E==null?o(x.el=l(x.children||""),R,U):x.el=E.el},h=(E,x,R,U)=>{[E.el,E.anchor]=m(E.children,x,R,U,E.el,E.anchor)},y=({el:E,anchor:x},R,U)=>{let j;for(;E&&E!==x;)j=p(E),o(E,R,U),E=j;o(x,R,U)},w=({el:E,anchor:x})=>{let R;for(;E&&E!==x;)R=p(E),r(E),E=R;r(x)},_=(E,x,R,U,j,z,ee,X,J)=>{if(x.type==="svg"?ee="svg":x.type==="math"&&(ee="mathml"),E==null)k(x,R,U,j,z,ee,X,J);else{const q=E.el&&E.el._isVueCE?E.el:null;try{q&&q._beginPatch(),$(E,x,j,z,ee,X,J)}finally{q&&q._endPatch()}}},k=(E,x,R,U,j,z,ee,X)=>{let J,q;const{props:ue,shapeFlag:re,transition:le,dirs:me}=E;if(J=E.el=i(E.type,z,ue&&ue.is,ue),re&8?c(J,E.children):re&16&&P(E.children,J,null,U,j,ll(E,z),ee,X),me&&on(E,null,U,"created"),S(J,E,E.scopeId,ee,U),ue){for(const Me in ue)Me!=="value"&&!_o(Me)&&s(J,Me,null,ue[Me],z,U);"value"in ue&&s(J,"value",null,ue.value,z),(q=ue.onVnodeBeforeMount)&&Et(q,U,E)}me&&on(E,null,U,"beforeMount");const Ce=vm(j,le);Ce&&le.beforeEnter(J),o(J,x,R),((q=ue&&ue.onVnodeMounted)||Ce||me)&&Je(()=>{q&&Et(q,U,E),Ce&&le.enter(J),me&&on(E,null,U,"mounted")},j)},S=(E,x,R,U,j)=>{if(R&&d(E,R),U)for(let z=0;z<U.length;z++)d(E,U[z]);if(j){let z=j.subTree;if(x===z||zi(z.type)&&(z.ssContent===x||z.ssFallback===x)){const ee=j.vnode;S(E,ee,ee.scopeId,ee.slotScopeIds,j.parent)}}},P=(E,x,R,U,j,z,ee,X,J=0)=>{for(let q=J;q<E.length;q++){const ue=E[q]=X?xn(E[q]):$t(E[q]);g(null,ue,x,R,U,j,z,ee,X)}},$=(E,x,R,U,j,z,ee)=>{const X=x.el=E.el;let{patchFlag:J,dynamicChildren:q,dirs:ue}=x;J|=E.patchFlag&16;const re=E.props||Ae,le=x.props||Ae;let me;if(R&&ao(R,!1),(me=le.onVnodeBeforeUpdate)&&Et(me,R,x,E),ue&&on(x,E,R,"beforeUpdate"),R&&ao(R,!0),(re.innerHTML&&le.innerHTML==null||re.textContent&&le.textContent==null)&&c(X,""),q?O(E.dynamicChildren,q,X,R,U,ll(x,j),z):ee||D(E,x,X,null,R,U,ll(x,j),z,!1),J>0){if(J&16)N(X,re,le,R,j);else if(J&2&&re.class!==le.class&&s(X,"class",null,le.class,j),J&4&&s(X,"style",re.style,le.style,j),J&8){const Ce=x.dynamicProps;for(let Me=0;Me<Ce.length;Me++){const je=Ce[Me],Qe=re[je],Ye=le[je];(Ye!==Qe||je==="value")&&s(X,je,Qe,Ye,j,R)}}J&1&&E.children!==x.children&&c(X,x.children)}else!ee&&q==null&&N(X,re,le,R,j);((me=le.onVnodeUpdated)||ue)&&Je(()=>{me&&Et(me,R,x,E),ue&&on(x,E,R,"updated")},U)},O=(E,x,R,U,j,z,ee)=>{for(let X=0;X<x.length;X++){const J=E[X],q=x[X],ue=J.el&&(J.type===Ee||!Ut(J,q)||J.shapeFlag&198)?f(J.el):R;g(J,q,ue,null,U,j,z,ee,!0)}},N=(E,x,R,U,j)=>{if(x!==R){if(x!==Ae)for(const z in x)!_o(z)&&!(z in R)&&s(E,z,x[z],null,j,U);for(const z in R){if(_o(z))continue;const ee=R[z],X=x[z];ee!==X&&z!=="value"&&s(E,z,X,ee,j,U)}"value"in R&&s(E,"value",x.value,R.value,j)}},C=(E,x,R,U,j,z,ee,X,J)=>{const q=x.el=E?E.el:a(""),ue=x.anchor=E?E.anchor:a("");let{patchFlag:re,dynamicChildren:le,slotScopeIds:me}=x;me&&(X=X?X.concat(me):me),E==null?(o(q,R,U),o(ue,R,U),P(x.children||[],R,ue,j,z,ee,X,J)):re>0&&re&64&&le&&E.dynamicChildren&&E.dynamicChildren.length===le.length?(O(E.dynamicChildren,le,R,j,z,ee,X),(x.key!=null||j&&x===j.subTree)&&Au(E,x,!0)):D(E,x,R,ue,j,z,ee,X,J)},F=(E,x,R,U,j,z,ee,X,J)=>{x.slotScopeIds=X,E==null?x.shapeFlag&512?j.ctx.activate(x,R,U,ee,J):I(x,R,U,j,z,ee,J):Q(E,x,J)},I=(E,x,R,U,j,z,ee)=>{const X=E.component=dw(E,U,j);if(ys(E)&&(X.ctx.renderer=ce),pw(X,!1,ee),X.asyncDep){if(j&&j.registerDep(X,W,ee),!E.el){const J=X.subTree=ge(We);v(null,J,x,R),E.placeholder=J.el}}else W(X,E,x,R,j,z,ee)},Q=(E,x,R)=>{const U=x.component=E.component;if(Kb(E,x,R))if(U.asyncDep&&!U.asyncResolved){Y(U,x,R);return}else U.next=x,U.update();else x.el=E.el,U.vnode=x},W=(E,x,R,U,j,z,ee)=>{const X=()=>{if(E.isMounted){let{next:re,bu:le,u:me,parent:Ce,vnode:Me}=E;{const Ct=bm(E);if(Ct){re&&(re.el=Me.el,Y(E,re,ee)),Ct.asyncDep.then(()=>{Je(()=>{E.isUnmounted||q()},j)});return}}let je=re,Qe;ao(E,!1),re?(re.el=Me.el,Y(E,re,ee)):re=Me,le&&Wo(le),(Qe=re.props&&re.props.onVnodeBeforeUpdate)&&Et(Qe,Ce,re,Me),ao(E,!0);const Ye=al(E),Ht=E.subTree;E.subTree=Ye,g(Ht,Ye,f(Ht.el),H(Ht),E,j,z),re.el=Ye.el,je===null&&Ia(E,Ye.el),me&&Je(me,j),(Qe=re.props&&re.props.onVnodeUpdated)&&Je(()=>Et(Qe,Ce,re,Me),j)}else{let re;const{el:le,props:me}=x,{bm:Ce,m:Me,parent:je,root:Qe,type:Ye}=E,Ht=Rn(x);if(ao(E,!1),Ce&&Wo(Ce),!Ht&&(re=me&&me.onVnodeBeforeMount)&&Et(re,je,x),ao(E,!0),le&&Be){const Ct=()=>{E.subTree=al(E),Be(le,E.subTree,E,j,null)};Ht&&Ye.__asyncHydrate?Ye.__asyncHydrate(le,E,Ct):Ct()}else{Qe.ce&&Qe.ce._hasShadowRoot()&&Qe.ce._injectChildStyle(Ye,E.parent?E.parent.type:void 0);const Ct=E.subTree=al(E);g(null,Ct,R,U,E,j,z),x.el=Ct.el}if(Me&&Je(Me,j),!Ht&&(re=me&&me.onVnodeMounted)){const Ct=x;Je(()=>Et(re,je,Ct),j)}(x.shapeFlag&256||je&&Rn(je.vnode)&&je.vnode.shapeFlag&256)&&E.a&&Je(E.a,j),E.isMounted=!0,x=R=U=null}};E.scope.on();const J=E.effect=new vh(X);E.scope.off();const q=E.update=J.run.bind(J),ue=E.job=J.runIfDirty.bind(J);ue.i=E,ue.id=E.uid,J.scheduler=()=>bu(ue),ao(E,!0),q()},Y=(E,x,R)=>{x.component=E;const U=E.vnode.props;E.vnode=x,E.next=null,Qb(E,x.props,U,R),Zb(E,x.children,R),Mn(),uf(E),Nn()},D=(E,x,R,U,j,z,ee,X,J=!1)=>{const q=E&&E.children,ue=E?E.shapeFlag:0,re=x.children,{patchFlag:le,shapeFlag:me}=x;if(le>0){if(le&128){Re(q,re,R,U,j,z,ee,X,J);return}else if(le&256){oe(q,re,R,U,j,z,ee,X,J);return}}me&8?(ue&16&>(q,j,z),re!==q&&c(R,re)):ue&16?me&16?Re(q,re,R,U,j,z,ee,X,J):gt(q,j,z,!0):(ue&8&&c(R,""),me&16&&P(re,R,U,j,z,ee,X,J))},oe=(E,x,R,U,j,z,ee,X,J)=>{E=E||zo,x=x||zo;const q=E.length,ue=x.length,re=Math.min(q,ue);let le;for(le=0;le<re;le++){const me=x[le]=J?xn(x[le]):$t(x[le]);g(E[le],me,R,null,j,z,ee,X,J)}q>ue?gt(E,j,z,!0,!1,re):P(x,R,U,j,z,ee,X,J,re)},Re=(E,x,R,U,j,z,ee,X,J)=>{let q=0;const ue=x.length;let re=E.length-1,le=ue-1;for(;q<=re&&q<=le;){const me=E[q],Ce=x[q]=J?xn(x[q]):$t(x[q]);if(Ut(me,Ce))g(me,Ce,R,null,j,z,ee,X,J);else break;q++}for(;q<=re&&q<=le;){const me=E[re],Ce=x[le]=J?xn(x[le]):$t(x[le]);if(Ut(me,Ce))g(me,Ce,R,null,j,z,ee,X,J);else break;re--,le--}if(q>re){if(q<=le){const me=le+1,Ce=me<ue?x[me].el:U;for(;q<=le;)g(null,x[q]=J?xn(x[q]):$t(x[q]),R,Ce,j,z,ee,X,J),q++}}else if(q>le)for(;q<=re;)Ge(E[q],j,z,!0),q++;else{const me=q,Ce=q,Me=new Map;for(q=Ce;q<=le;q++){const At=x[q]=J?xn(x[q]):$t(x[q]);At.key!=null&&Me.set(At.key,q)}let je,Qe=0;const Ye=le-Ce+1;let Ht=!1,Ct=0;const pr=new Array(Ye);for(q=0;q<Ye;q++)pr[q]=0;for(q=me;q<=re;q++){const At=E[q];if(Qe>=Ye){Ge(At,j,z,!0);continue}let Yt;if(At.key!=null)Yt=Me.get(At.key);else for(je=Ce;je<=le;je++)if(pr[je-Ce]===0&&Ut(At,x[je])){Yt=je;break}Yt===void 0?Ge(At,j,z,!0):(pr[Yt-Ce]=q+1,Yt>=Ct?Ct=Yt:Ht=!0,g(At,x[Yt],R,null,j,z,ee,X,J),Qe++)}const nf=Ht?nw(pr):zo;for(je=nf.length-1,q=Ye-1;q>=0;q--){const At=Ce+q,Yt=x[At],of=x[At+1],rf=At+1<ue?of.el||wm(of):U;pr[q]===0?g(null,Yt,R,rf,j,z,ee,X,J):Ht&&(je<0||q!==nf[je]?mt(Yt,R,rf,2):je--)}}},mt=(E,x,R,U,j=null)=>{const{el:z,type:ee,transition:X,children:J,shapeFlag:q}=E;if(q&6){mt(E.component.subTree,x,R,U);return}if(q&128){E.suspense.move(x,R,U);return}if(q&64){ee.move(E,x,R,ce);return}if(ee===Ee){o(z,x,R);for(let re=0;re<J.length;re++)mt(J[re],x,R,U);o(E.anchor,x,R);return}if(ee===vi){y(E,x,R);return}if(U!==2&&q&1&&X)if(U===0)X.beforeEnter(z),o(z,x,R),Je(()=>X.enter(z),j);else{const{leave:re,delayLeave:le,afterLeave:me}=X,Ce=()=>{E.ctx.isUnmounted?r(z):o(z,x,R)},Me=()=>{z._isLeaving&&z[rn](!0),re(z,()=>{Ce(),me&&me()})};le?le(z,Ce,Me):Me()}else o(z,x,R)},Ge=(E,x,R,U=!1,j=!1)=>{const{type:z,props:ee,ref:X,children:J,dynamicChildren:q,shapeFlag:ue,patchFlag:re,dirs:le,cacheIndex:me,memo:Ce}=E;if(re===-2&&(j=!1),X!=null&&(Mn(),Ko(X,null,R,E,!0),Nn()),me!=null&&(x.renderCache[me]=void 0),ue&256){x.ctx.deactivate(E);return}const Me=ue&1&&le,je=!Rn(E);let Qe;if(je&&(Qe=ee&&ee.onVnodeBeforeUnmount)&&Et(Qe,x,E),ue&6)wn(E.component,R,U);else{if(ue&128){E.suspense.unmount(R,U);return}Me&&on(E,null,x,"beforeUnmount"),ue&64?E.type.remove(E,x,R,ce,U):q&&!q.hasOnce&&(z!==Ee||re>0&&re&64)?gt(q,x,R,!1,!0):(z===Ee&&re&384||!j&&ue&16)&>(J,x,R),U&&ut(E)}const Ye=Ce!=null&&me==null;(je&&(Qe=ee&&ee.onVnodeUnmounted)||Me||Ye)&&Je(()=>{Qe&&Et(Qe,x,E),Me&&on(E,null,x,"unmounted"),Ye&&(E.el=null)},R)},ut=E=>{const{type:x,el:R,anchor:U,transition:j}=E;if(x===Ee){bn(R,U);return}if(x===vi){w(E);return}const z=()=>{r(R),j&&!j.persisted&&j.afterLeave&&j.afterLeave()};if(E.shapeFlag&1&&j&&!j.persisted){const{leave:ee,delayLeave:X}=j,J=()=>ee(R,z);X?X(E.el,z,J):J()}else z()},bn=(E,x)=>{let R;for(;E!==x;)R=p(E),r(E),E=R;r(x)},wn=(E,x,R)=>{const{bum:U,scope:j,job:z,subTree:ee,um:X,m:J,a:q}=E;Ui(J),Ui(q),U&&Wo(U),j.stop(),z&&(z.flags|=8,Ge(ee,E,x,R)),X&&Je(X,x),Je(()=>{E.isUnmounted=!0},x)},gt=(E,x,R,U=!1,j=!1,z=0)=>{for(let ee=z;ee<E.length;ee++)Ge(E[ee],x,R,U,j)},H=E=>{if(E.shapeFlag&6)return H(E.component.subTree);if(E.shapeFlag&128)return E.suspense.next();const x=p(E.anchor||E.el),R=x&&x[qh];return R?p(R):x};let ie=!1;const te=(E,x,R)=>{let U;E==null?x._vnode&&(Ge(x._vnode,null,null,!0),U=x._vnode.component):g(x._vnode||null,E,x,null,null,null,R),x._vnode=E,ie||(ie=!0,uf(U),Li(),ie=!1)},ce={p:g,um:Ge,m:mt,r:ut,mt:I,mc:P,pc:D,pbc:O,n:H,o:e};let be,Be;return t&&([be,Be]=t(ce)),{render:te,hydrate:be,createApp:Bb(te,be)}}function ll({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 ao({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function vm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Au(e,t,n=!1){const o=e.children,r=t.children;if(ae(o)&&ae(r))for(let s=0;s<o.length;s++){const i=o[s];let a=r[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[s]=xn(r[s]),a.el=i.el),!n&&a.patchFlag!==-2&&Au(i,a)),a.type===ko&&(a.patchFlag===-1&&(a=r[s]=xn(a)),a.el=i.el),a.type===We&&!a.el&&(a.el=i.el)}}function nw(e){const t=e.slice(),n=[0];let o,r,s,i,a;const l=e.length;for(o=0;o<l;o++){const u=e[o];if(u!==0){if(r=n[n.length-1],e[r]<u){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<u?s=a+1:i=a;u<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function bm(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:bm(t)}function Ui(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function wm(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?wm(t.subTree):null}const zi=e=>e.__isSuspense;let _c=0;const ow={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,s,i,a,l,u){if(e==null)rw(t,n,o,r,s,i,a,l,u);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}sw(e,t,n,o,r,i,a,l,u)}},hydrate:iw,normalize:aw},_m=ow;function ts(e,t){const n=e.props&&e.props[t];pe(n)&&n()}function rw(e,t,n,o,r,s,i,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),p=e.suspense=Em(e,r,o,t,f,n,s,i,a,l);u(null,p.pendingBranch=e.ssContent,f,null,o,p,s,i),p.deps>0?(ts(e,"onPending"),ts(e,"onFallback"),u(null,e.ssFallback,t,n,o,null,s,i),Go(p,e.ssFallback)):p.resolve(!1,!0)}function sw(e,t,n,o,r,s,i,a,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const p=t.ssContent,d=t.ssFallback,{activeBranch:m,pendingBranch:g,isInFallback:b,isHydrating:v}=f;if(g)f.pendingBranch=p,Ut(g,p)?(l(g,p,f.hiddenContainer,null,r,f,s,i,a),f.deps<=0?f.resolve():b&&(v||(l(m,d,n,o,r,null,s,i,a),Go(f,d)))):(f.pendingId=_c++,v?(f.isHydrating=!1,f.activeBranch=g):u(g,r,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),b?(l(null,p,f.hiddenContainer,null,r,f,s,i,a),f.deps<=0?f.resolve():(l(m,d,n,o,r,null,s,i,a),Go(f,d))):m&&Ut(m,p)?(l(m,p,n,o,r,f,s,i,a),f.resolve(!0)):(l(null,p,f.hiddenContainer,null,r,f,s,i,a),f.deps<=0&&f.resolve()));else if(m&&Ut(m,p))l(m,p,n,o,r,f,s,i,a),Go(f,p);else if(ts(t,"onPending"),f.pendingBranch=p,p.shapeFlag&512?f.pendingId=p.component.suspenseId:f.pendingId=_c++,l(null,p,f.hiddenContainer,null,r,f,s,i,a),f.deps<=0)f.resolve();else{const{timeout:h,pendingId:y}=f;h>0?setTimeout(()=>{f.pendingId===y&&f.fallback(d)},h):h===0&&f.fallback(d)}}function Em(e,t,n,o,r,s,i,a,l,u,c=!1){const{p:f,m:p,um:d,n:m,o:{parentNode:g,remove:b}}=u;let v;const h=lw(e);h&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const y=e.props?dh(e.props.timeout):void 0,w=s,_={vnode:e,parent:t,parentComponent:n,namespace:i,container:o,hiddenContainer:r,deps:0,pendingId:_c++,timeout:typeof y=="number"?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(k=!1,S=!1){const{vnode:P,activeBranch:$,pendingBranch:O,pendingId:N,effects:C,parentComponent:F,container:I,isInFallback:Q}=_;let W=!1;if(_.isHydrating)_.isHydrating=!1;else if(!k){W=$&&O.transition&&O.transition.mode==="out-in";let oe=!1;W&&($.transition.afterLeave=()=>{N===_.pendingId&&(p(O,I,s===w&&!oe?m($):s,0),pc(C),Q&&P.ssFallback&&(P.ssFallback.el=null))}),$&&!_.isFallbackMountPending&&(g($.el)===I&&(s=m($),oe=!0),d($,F,_,!0),!W&&Q&&P.ssFallback&&Je(()=>P.ssFallback.el=null,_)),W||p(O,I,s,0)}_.isFallbackMountPending=!1,Go(_,O),_.pendingBranch=null,_.isInFallback=!1;let Y=_.parent,D=!1;for(;Y;){if(Y.pendingBranch){Y.effects.push(...C),D=!0;break}Y=Y.parent}!D&&!W&&pc(C),_.effects=[],h&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!S&&t.resolve()),ts(P,"onResolve")},fallback(k){if(!_.pendingBranch)return;const{vnode:S,activeBranch:P,parentComponent:$,container:O,namespace:N}=_;ts(S,"onFallback");const C=m(P),F=()=>{_.isFallbackMountPending=!1,_.isInFallback&&(f(null,k,O,C,$,null,N,a,l),Go(_,k))},I=k.transition&&k.transition.mode==="out-in";I&&(_.isFallbackMountPending=!0,P.transition.afterLeave=F),_.isInFallback=!0,d(P,$,null,!0),I||F()},move(k,S,P){_.activeBranch&&p(_.activeBranch,k,S,P),_.container=k},next(){return _.activeBranch&&m(_.activeBranch)},registerDep(k,S,P){const $=!!_.pendingBranch;$&&_.deps++;const O=k.vnode.el;k.asyncDep.catch(N=>{cr(N,k,0)}).then(N=>{if(k.isUnmounted||_.isUnmounted||_.pendingId!==k.suspenseId)return;Sc(),k.asyncResolved=!0;const{vnode:C}=k;xc(k,N),O&&(C.el=O);const F=!O&&k.subTree.el;S(k,C,g(O||k.subTree.el),O?null:m(k.subTree),_,i,P),F&&(C.placeholder=null,b(F)),Ia(k,C.el),$&&--_.deps===0&&_.resolve()})},unmount(k,S){_.isUnmounted=!0,_.activeBranch&&d(_.activeBranch,n,k,S),_.pendingBranch&&d(_.pendingBranch,n,k,S)}};return _}function iw(e,t,n,o,r,s,i,a,l){const u=t.suspense=Em(t,o,n,e.parentNode,document.createElement("div"),null,r,s,i,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,s,i);return u.deps===0&&u.resolve(!1,!0),c}function aw(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=kf(o?n.default:n),e.ssFallback=o?kf(n.fallback):ge(We)}function kf(e){let t;if(pe(e)){const n=er&&e._c;n&&(e._d=!1,L()),e=e(),n&&(e._d=!0,t=St,xm())}return ae(e)&&(e=qb(e)),e=$t(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Sm(e,t){t&&t.pendingBranch?ae(e)?t.effects.push(...e):t.effects.push(e):pc(e)}function Go(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)t=t.component.subTree,r=t.el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Ia(o,r))}function lw(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ee=Symbol.for("v-fgt"),ko=Symbol.for("v-txt"),We=Symbol.for("v-cmt"),vi=Symbol.for("v-stc"),jr=[];let St=null;function L(e=!1){jr.push(St=e?null:[])}function xm(){jr.pop(),St=jr[jr.length-1]||null}let er=1;function qi(e,t=!1){er+=e,e<0&&St&&t&&(St.hasOnce=!0)}function km(e){return e.dynamicChildren=er>0?St||zo:null,xm(),er>0&&St&&St.push(e),e}function Z(e,t,n,o,r,s){return km(T(e,t,n,o,r,s,!0))}function ye(e,t,n,o,r){return km(ge(e,t,n,o,r,!0))}function Ao(e){return e?e.__v_isVNode===!0:!1}function Ut(e,t){return e.type===t.type&&e.key===t.key}const Cm=({key:e})=>e??null,bi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?De(e)||Le(e)||pe(e)?{i:rt,r:e,k:t,f:!!n}:e:null);function T(e,t=null,n=null,o=0,r=null,s=e===Ee?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Cm(t),ref:t&&bi(t),scopeId:Aa,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:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:rt};return a?(Tu(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=De(n)?8:16),er>0&&!i&&St&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&St.push(l),l}const ge=cw;function cw(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===tm)&&(e=We),Ao(e)){const a=hn(e,t,!0);return n&&Tu(a,n),er>0&&!s&&St&&(a.shapeFlag&6?St[St.indexOf(e)]=a:St.push(a)),a.patchFlag=-2,a}if(gw(e)&&(e=e.__vccOpts),t){t=Ma(t);let{class:a,style:l}=t;a&&!De(a)&&(t.class=ke(a)),Te(l)&&(Ca(l)&&!ae(l)&&(l=Ke({},l)),t.style=un(l))}const i=De(e)?1:zi(e)?128:Wh(e)?64:Te(e)?4:pe(e)?2:0;return T(e,t,n,o,r,i,s,!0)}function Ma(e){return e?Ca(e)||fm(e)?Ke({},e):e:null}function hn(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:i,children:a,transition:l}=e,u=t?_t(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Cm(u),ref:t&&t.ref?n&&s?ae(s)?s.concat(bi(t)):[s,bi(t)]:bi(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hn(e.ssContent),ssFallback:e.ssFallback&&hn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&no(c,l.clone(c)),c}function qe(e=" ",t=0){return ge(ko,null,e,t)}function Ue(e="",t=!1){return t?(L(),ye(We,null,e)):ge(We,null,e)}function $t(e){return e==null||typeof e=="boolean"?ge(We):ae(e)?ge(Ee,null,e.slice()):Ao(e)?xn(e):ge(ko,null,String(e))}function xn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hn(e)}function Tu(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ae(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Tu(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!fm(t)?t._ctx=rt:r===3&&rt&&(rt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pe(t)?(t={default:t,_ctx:rt},n=32):(t=String(t),o&64?(n=16,t=[qe(t)]):n=8);e.children=t,e.shapeFlag|=n}function _t(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=ke([t.class,o.class]));else if(r==="style")t.style=un([t.style,o.style]);else if(hs(r)){const s=t[r],i=o[r];i&&s!==i&&!(ae(s)&&s.includes(i))?t[r]=s?[].concat(s,i):i:i==null&&s==null&&!ma(r)&&(t[r]=i)}else r!==""&&(t[r]=o[r])}return t}function Et(e,t,n,o=null){Gt(e,t,7,[n,o])}const uw=sm();let fw=0;function dw(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||uw,s={uid:fw++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new yh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:pm(o,r),emitsOptions:am(o,r),emit:null,emitted:null,propsDefaults:Ae,inheritAttrs:o.inheritAttrs,ctx:Ae,data:Ae,props:Ae,attrs:Ae,slots:Ae,refs:Ae,setupState:Ae,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Ub.bind(null,s),e.ce&&e.ce(s),s}let ot=null;const Ze=()=>ot||rt;let Wi,Ec;{const e=wa(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),s=>{r.length>1?r.forEach(i=>i(s)):r[0](s)}};Wi=t("__VUE_INSTANCE_SETTERS__",n=>ot=n),Ec=t("__VUE_SSR_SETTERS__",n=>tr=n)}const vs=e=>{const t=ot;return Wi(e),e.scope.on(),()=>{e.scope.off(),Wi(t)}},Sc=()=>{ot&&ot.scope.off(),Wi(null)};function Am(e){return e.vnode.shapeFlag&4}let tr=!1;function pw(e,t=!1,n=!1){t&&Ec(t);const{props:o,children:r}=e.vnode,s=Am(e);Gb(e,o,s,t),Xb(e,r,n||t);const i=s?hw(e,t):void 0;return t&&Ec(!1),i}function hw(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Rb);const{setup:o}=n;if(o){Mn();const r=e.setupContext=o.length>1?$m(e):null,s=vs(e),i=gs(o,e,0,[e.props,r]),a=lh(i);if(Nn(),s(),(a||e.sp)&&!Rn(e)&&_u(e),a){if(i.then(Sc,Sc),t)return i.then(l=>{xc(e,l)}).catch(l=>{cr(l,e,0)});e.asyncDep=i}else xc(e,i)}else Tm(e)}function xc(e,t,n){pe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=Nh(t)),Tm(e)}function Tm(e,t,n){const o=e.type;e.render||(e.render=o.render||cn);{const r=vs(e);Mn();try{Nb(e)}finally{Nn(),r()}}}const mw={get(e,t){return pt(e,"get",""),e[t]}};function $m(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,mw),slots:e.slots,emit:e.emit,expose:t}}function Na(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Nh(Wv(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Lr)return Lr[n](e)},has(t,n){return n in t||n in Lr}})):e.proxy}function kc(e,t=!0){return pe(e)?e.displayName||e.name:e.name||t&&e.__name}function gw(e){return pe(e)&&"__vccOpts"in e}const M=(e,t)=>Zv(e,t,tr);function st(e,t,n){try{qi(-1);const o=arguments.length;return o===2?Te(t)&&!ae(t)?Ao(t)?ge(e,null,[t]):ge(e,t):ge(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Ao(n)&&(n=[n]),ge(e,t,n))}finally{qi(1)}}const yw="3.5.34";let Cc;const Cf=typeof window<"u"&&window.trustedTypes;if(Cf)try{Cc=Cf.createPolicy("vue",{createHTML:e=>e})}catch{}const Om=Cc?e=>Cc.createHTML(e):e=>e,vw="http://www.w3.org/2000/svg",bw="http://www.w3.org/1998/Math/MathML",Sn=typeof document<"u"?document:null,Af=Sn&&Sn.createElement("template"),ww={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?Sn.createElementNS(vw,e):t==="mathml"?Sn.createElementNS(bw,e):n?Sn.createElement(e,{is:n}):Sn.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Sn.createTextNode(e),createComment:e=>Sn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Sn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Af.innerHTML=Om(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const a=Af.content;if(o==="svg"||o==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Fn="transition",gr="animation",nr=Symbol("_vtc"),Pm={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},Rm=Ke({},Kh,Pm),_w=e=>(e.displayName="Transition",e.props=Rm,e),Im=_w((e,{slots:t})=>st(gb,Mm(e),t)),lo=(e,t=[])=>{ae(e)?e.forEach(n=>n(...t)):e&&e(...t)},Tf=e=>e?ae(e)?e.some(t=>t.length>1):e.length>1:!1;function Mm(e){const t={};for(const C in e)C in Pm||(t[C]=e[C]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,m=Ew(r),g=m&&m[0],b=m&&m[1],{onBeforeEnter:v,onEnter:h,onEnterCancelled:y,onLeave:w,onLeaveCancelled:_,onBeforeAppear:k=v,onAppear:S=h,onAppearCancelled:P=y}=t,$=(C,F,I,Q)=>{C._enterCancelled=Q,zn(C,F?c:a),zn(C,F?u:i),I&&I()},O=(C,F)=>{C._isLeaving=!1,zn(C,f),zn(C,d),zn(C,p),F&&F()},N=C=>(F,I)=>{const Q=C?S:h,W=()=>$(F,C,I);lo(Q,[F,W]),$f(()=>{zn(F,C?l:s),en(F,C?c:a),Tf(Q)||Of(F,o,g,W)})};return Ke(t,{onBeforeEnter(C){lo(v,[C]),en(C,s),en(C,i)},onBeforeAppear(C){lo(k,[C]),en(C,l),en(C,u)},onEnter:N(!1),onAppear:N(!0),onLeave(C,F){C._isLeaving=!0;const I=()=>O(C,F);en(C,f),C._enterCancelled?(en(C,p),Ac(C)):(Ac(C),en(C,p)),$f(()=>{C._isLeaving&&(zn(C,f),en(C,d),Tf(w)||Of(C,o,b,I))}),lo(w,[C,I])},onEnterCancelled(C){$(C,!1,void 0,!0),lo(y,[C])},onAppearCancelled(C){$(C,!0,void 0,!0),lo(P,[C])},onLeaveCancelled(C){O(C),lo(_,[C])}})}function Ew(e){if(e==null)return null;if(Te(e))return[cl(e.enter),cl(e.leave)];{const t=cl(e);return[t,t]}}function cl(e){return dh(e)}function en(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[nr]||(e[nr]=new Set)).add(t)}function zn(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[nr];n&&(n.delete(t),n.size||(e[nr]=void 0))}function $f(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Sw=0;function Of(e,t,n,o){const r=e._endId=++Sw,s=()=>{r===e._endId&&o()};if(n!=null)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=Nm(e,t);if(!i)return o();const u=i+"end";let c=0;const f=()=>{e.removeEventListener(u,p),s()},p=d=>{d.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},a+1),e.addEventListener(u,p)}function Nm(e,t){const n=window.getComputedStyle(e),o=m=>(n[m]||"").split(", "),r=o(`${Fn}Delay`),s=o(`${Fn}Duration`),i=Pf(r,s),a=o(`${gr}Delay`),l=o(`${gr}Duration`),u=Pf(a,l);let c=null,f=0,p=0;t===Fn?i>0&&(c=Fn,f=i,p=s.length):t===gr?u>0&&(c=gr,f=u,p=l.length):(f=Math.max(i,u),c=f>0?i>u?Fn:gr:null,p=c?c===Fn?s.length:l.length:0);const d=c===Fn&&/\b(?:transform|all)(?:,|$)/.test(o(`${Fn}Property`).toString());return{type:c,timeout:f,propCount:p,hasTransform:d}}function Pf(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Rf(n)+Rf(e[o])))}function Rf(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ac(e){return(e?e.ownerDocument:document).body.offsetHeight}function xw(e,t,n){const o=e[nr];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const If=Symbol("_vod"),kw=Symbol("_vsh"),Cw=Symbol(""),Aw=/(?:^|;)\s*display\s*:/;function Tw(e,t,n){const o=e.style,r=De(n);let s=!1;if(n&&!r){if(t)if(De(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&$r(o,a,"")}else for(const i in t)n[i]==null&&$r(o,i,"");for(const i in n){i==="display"&&(s=!0);const a=n[i];a!=null?Ow(e,i,!De(t)&&t?t[i]:void 0,a)||$r(o,i,a):$r(o,i,"")}}else if(r){if(t!==n){const i=o[Cw];i&&(n+=";"+i),o.cssText=n,s=Aw.test(n)}}else t&&e.removeAttribute("style");If in e&&(e[If]=s?o.display:"",e[kw]&&(o.display="none"))}const Mf=/\s*!important$/;function $r(e,t,n){if(ae(n))n.forEach(o=>$r(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=$w(e,t);Mf.test(n)?e.setProperty(jn(o),n.replace(Mf,""),"important"):e[o]=n}}const Nf=["Webkit","Moz","ms"],ul={};function $w(e,t){const n=ul[t];if(n)return n;let o=it(t);if(o!=="filter"&&o in e)return ul[t]=o;o=ba(o);for(let r=0;r<Nf.length;r++){const s=Nf[r]+o;if(s in e)return ul[t]=s}return t}function Ow(e,t,n,o){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&De(o)&&n===o}const Df="http://www.w3.org/1999/xlink";function Lf(e,t,n,o,r,s=Ev(t)){o&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Df,t.slice(6,t.length)):e.setAttributeNS(Df,t,n):n==null||s&&!ph(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Rt(n)?String(n):n)}function jf(e,t,n,o,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Om(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const a=s==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=ph(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function vo(e,t,n,o){e.addEventListener(t,n,o)}function Pw(e,t,n,o){e.removeEventListener(t,n,o)}const Hf=Symbol("_vei");function Rw(e,t,n,o,r=null){const s=e[Hf]||(e[Hf]={}),i=s[t];if(o&&i)i.value=o;else{const[a,l]=Iw(t);if(o){const u=s[t]=Dw(o,r);vo(e,a,u,l)}else i&&(Pw(e,a,i,l),s[t]=void 0)}}const Ff=/(?:Once|Passive|Capture)$/;function Iw(e){let t;if(Ff.test(e)){t={};let o;for(;o=e.match(Ff);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):jn(e.slice(2)),t]}let fl=0;const Mw=Promise.resolve(),Nw=()=>fl||(Mw.then(()=>fl=0),fl=Date.now());function Dw(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Gt(Lw(o,n.value),t,5,[o])};return n.value=e,n.attached=Nw(),n}function Lw(e,t){if(ae(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Bf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,jw=(e,t,n,o,r,s)=>{const i=r==="svg";t==="class"?xw(e,o,i):t==="style"?Tw(e,n,o):hs(t)?ma(t)||Rw(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hw(e,t,o,i))?(jf(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Lf(e,t,o,i,s,t!=="value")):e._isVueCE&&(Fw(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!De(o)))?jf(e,it(t),o,s,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Lf(e,t,o,i))};function Hw(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Bf(t)&&pe(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"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Bf(t)&&De(n)?!1:t in e}function Fw(e,t){const n=e._def.props;if(!n)return!1;const o=it(t);return Array.isArray(n)?n.some(r=>it(r)===o):Object.keys(n).some(r=>it(r)===o)}const Dm=new WeakMap,Lm=new WeakMap,Vi=Symbol("_moveCb"),Uf=Symbol("_enterCb"),Bw=e=>(delete e.props.mode,e),Uw=Bw({name:"TransitionGroup",props:Ke({},Rm,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ze(),o=Vh();let r,s;return Oa(()=>{if(!r.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Vw(r[0].el,n.vnode.el,i)){r=[];return}r.forEach(zw),r.forEach(qw);const a=r.filter(Ww);Ac(n.vnode.el),a.forEach(l=>{const u=l.el,c=u.style;en(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[Vi]=p=>{p&&p.target!==u||(!p||p.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",f),u[Vi]=null,zn(u,i))};u.addEventListener("transitionend",f)}),r=[]}),()=>{const i=xe(e),a=Mm(i);let l=i.tag||Ee;if(r=[],s)for(let u=0;u<s.length;u++){const c=s[u];c.el&&c.el instanceof Element&&(r.push(c),no(c,Zr(c,a,o,n)),Dm.set(c,jm(c.el)))}s=t.default?wu(t.default()):[];for(let u=0;u<s.length;u++){const c=s[u];c.key!=null&&no(c,Zr(c,a,o,n))}return ge(l,null,s)}}}),wR=Uw;function zw(e){const t=e.el;t[Vi]&&t[Vi](),t[Uf]&&t[Uf]()}function qw(e){Lm.set(e,jm(e.el))}function Ww(e){const t=Dm.get(e),n=Lm.get(e),o=t.left-n.left,r=t.top-n.top;if(o||r){const s=e.el,i=s.style,a=s.getBoundingClientRect();let l=1,u=1;return s.offsetWidth&&(l=a.width/s.offsetWidth),s.offsetHeight&&(u=a.height/s.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(u)||u===0)&&(u=1),Math.abs(l-1)<.01&&(l=1),Math.abs(u-1)<.01&&(u=1),i.transform=i.webkitTransform=`translate(${o/l}px,${r/u}px)`,i.transitionDuration="0s",e}}function jm(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Vw(e,t,n){const o=e.cloneNode(),r=e[nr];r&&r.forEach(a=>{a.split(/\s+/).forEach(l=>l&&o.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&o.classList.add(a)),o.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(o);const{hasTransform:i}=Nm(o);return s.removeChild(o),i}const Ki=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ae(t)?n=>Wo(t,n):t};function Kw(e){e.target.composing=!0}function zf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qo=Symbol("_assign");function qf(e,t,n){return t&&(e=e.trim()),n&&(e=pu(e)),e}const Hm={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[Qo]=Ki(r);const s=o||r.props&&r.props.type==="number";vo(e,t?"change":"input",i=>{i.target.composing||e[Qo](qf(e.value,n,s))}),(n||s)&&vo(e,"change",()=>{e.value=qf(e.value,n,s)}),t||(vo(e,"compositionstart",Kw),vo(e,"compositionend",zf),vo(e,"change",zf))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:s}},i){if(e[Qo]=Ki(i),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?pu(e.value):e.value,l=t??"";if(a===l)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(o&&t===n||r&&e.value.trim()===l)||(e.value=l)}},dl={deep:!0,created(e,t,n){e[Qo]=Ki(n),vo(e,"change",()=>{const o=e._modelValue,r=Gw(e),s=e.checked,i=e[Qo];if(ae(o)){const a=hh(o,r),l=a!==-1;if(s&&!l)i(o.concat(r));else if(!s&&l){const u=[...o];u.splice(a,1),i(u)}}else if(ga(o)){const a=new Set(o);s?a.add(r):a.delete(r),i(a)}else i(Fm(e,s))})},mounted:Wf,beforeUpdate(e,t,n){e[Qo]=Ki(n),Wf(e,t,n)}};function Wf(e,{value:t,oldValue:n},o){e._modelValue=t;let r;if(ae(t))r=hh(t,o.props.value)>-1;else if(ga(t))r=t.has(o.props.value);else{if(t===n)return;r=ms(t,Fm(e,!0))}e.checked!==r&&(e.checked=r)}function Gw(e){return"_value"in e?e._value:e.value}function Fm(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Qw=["ctrl","shift","alt","meta"],Jw={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)=>Qw.some(n=>e[`${n}Key`]&&!t.includes(n))},Yw=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=((r,...s)=>{for(let i=0;i<t.length;i++){const a=Jw[t[i]];if(a&&a(r,t))return}return e(r,...s)}))},Xw={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Bm=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=(r=>{if(!("key"in r))return;const s=jn(r.key);if(t.some(i=>i===s||Xw[i]===s))return e(r)}))},Um=Ke({patchProp:jw},ww);let Hr,Vf=!1;function Zw(){return Hr||(Hr=ew(Um))}function e_(){return Hr=Vf?Hr:tw(Um),Vf=!0,Hr}const zm=((...e)=>{const t=Zw().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=Wm(o);if(!r)return;const s=t._component;!pe(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,qm(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t}),t_=((...e)=>{const t=e_().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=Wm(o);if(r)return n(r,!0,qm(r))},t});function qm(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Wm(e){return De(e)?document.querySelector(e):e}const n_=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,o_=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,r_=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function s_(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){i_(e);return}return t}function i_(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function a_(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!r_.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(n_.test(e)||o_.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,s_)}return JSON.parse(e)}catch(o){if(t.strict)throw o;return e}}const l_=/#/g,c_=/&/g,u_=/\//g,f_=/=/g,$u=/\+/g,d_=/%5e/gi,p_=/%60/gi,h_=/%7c/gi,m_=/%20/gi;function g_(e){return encodeURI(""+e).replace(h_,"|")}function Tc(e){return g_(typeof e=="string"?e:JSON.stringify(e)).replace($u,"%2B").replace(m_,"+").replace(l_,"%23").replace(c_,"%26").replace(p_,"`").replace(d_,"^").replace(u_,"%2F")}function pl(e){return Tc(e).replace(f_,"%3D")}function Vm(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function y_(e){return Vm(e.replace($u," "))}function v_(e){return Vm(e.replace($u," "))}function b_(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const o=n.match(/([^=]+)=?(.*)/)||[];if(o.length<2)continue;const r=y_(o[1]);if(r==="__proto__"||r==="constructor")continue;const s=v_(o[2]||"");t[r]===void 0?t[r]=s:Array.isArray(t[r])?t[r].push(s):t[r]=[t[r],s]}return t}function w_(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${pl(e)}=${Tc(n)}`).join("&"):`${pl(e)}=${Tc(t)}`:pl(e)}function __(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>w_(t,e[t])).filter(Boolean).join("&")}const E_=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,S_=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,x_=/^([/\\]\s*){2,}[^/\\]/,k_=/^\.?\//;function Km(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?E_.test(e):S_.test(e)||(t.acceptRelative?x_.test(e):!1)}function C_(e="",t){return e.endsWith("/")}function A_(e="",t){return(C_(e)?e.slice(0,-1):e)||"/"}function T_(e="",t){return e.endsWith("/")?e:e+"/"}function $_(e,t){if(P_(t)||Km(e))return e;const n=A_(t);if(e.startsWith(n)){const o=e[n.length];if(!o||o==="/"||o==="?")return e}return I_(n,e)}function O_(e,t){const n=M_(e),o={...b_(n.search),...t};return n.search=__(o),N_(n)}function P_(e){return!e||e==="/"}function R_(e){return e&&e!=="/"}function I_(e,...t){let n=e||"";for(const o of t.filter(r=>R_(r)))if(n){const r=o.replace(k_,"");n=T_(n)+r}else n=o;return n}const Gm=Symbol.for("ufo:protocolRelative");function M_(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,p=""]=n;return{protocol:f.toLowerCase(),pathname:p,href:f+p,auth:"",host:"",search:"",hash:""}}if(!Km(e,{acceptRelative:!0}))return Kf(e);const[,o="",r,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];o==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=Kf(a);return{protocol:o.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:i,pathname:l,search:u,hash:c,[Gm]:!o}}function Kf(e=""){const[t="",n="",o=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:o}}function N_(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",o=e.hash||"",r=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[Gm]?(e.protocol||"")+"//":"")+r+s+t+n+o}class D_ extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function L_(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",o=e.request?.url||String(e.request)||"/",r=`[${n}] ${JSON.stringify(o)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${r}: ${s}${t?` ${t}`:""}`,a=new D_(i,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[u]}});return a}const j_=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Gf(e="GET"){return j_.has(e.toUpperCase())}function H_(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const F_=new Set(["image/svg","application/xml","application/xhtml","application/html"]),B_=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function U_(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return B_.test(t)?"json":t==="text/event-stream"?"stream":F_.has(t)||t.startsWith("text/")?"text":"blob"}function z_(e,t,n,o){const r=q_(t?.headers??e?.headers,n?.headers,o);let s;return(n?.query||n?.params||t?.params||t?.query)&&(s={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:s,params:s,headers:r}}function q_(e,t,n){if(!t)return new n(e);const o=new n(t);if(e)for(const[r,s]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))o.set(r,s);return o}async function Hs(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const W_=new Set([408,409,425,429,500,502,503,504]),V_=new Set([101,204,205,304]);function Qm(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:o=globalThis.AbortController}=e;async function r(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=Gf(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):W_.has(f))){const p=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return p>0&&await new Promise(d=>setTimeout(d,p)),s(a.request,{...a.options,retry:c-1})}}const u=L_(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,s),u}const s=async function(l,u={}){const c={request:l,options:z_(l,u,e.defaults,n),response:void 0,error:void 0};if(c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&(await Hs(c,c.options.onRequest),c.options.headers instanceof n||(c.options.headers=new n(c.options.headers||{}))),typeof c.request=="string"&&(c.options.baseURL&&(c.request=$_(c.request,c.options.baseURL)),c.options.query&&(c.request=O_(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&Gf(c.options.method))if(H_(c.options.body)){const d=c.options.headers.get("content-type");typeof c.options.body!="string"&&(c.options.body=d==="application/x-www-form-urlencoded"?new URLSearchParams(c.options.body).toString():JSON.stringify(c.options.body)),d||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")}else("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half"));let f;if(!c.options.signal&&c.options.timeout){const d=new o;f=setTimeout(()=>{const m=new Error("[TimeoutError]: The operation was aborted due to timeout");m.name="TimeoutError",m.code=23,d.abort(m)},c.options.timeout),c.options.signal=d.signal}try{c.response=await t(c.request,c.options)}catch(d){return c.error=d,c.options.onRequestError&&await Hs(c,c.options.onRequestError),await r(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!V_.has(c.response.status)&&c.options.method!=="HEAD"){const d=(c.options.parseResponse?"json":c.options.responseType)||U_(c.response.headers.get("content-type")||"");switch(d){case"json":{const m=await c.response.text(),g=c.options.parseResponse||a_;c.response._data=g(m);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[d]()}}return c.options.onResponse&&await Hs(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await Hs(c,c.options.onResponseError),await r(c)):c.response},i=async function(l,u){return(await s(l,u))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={},l={})=>Qm({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const Gi=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),K_=Gi.fetch?(...e)=>Gi.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),G_=Gi.Headers,Q_=Gi.AbortController,J_=Qm({fetch:K_,Headers:G_,AbortController:Q_}),Y_=J_,Jm=/#/g,Ym=/&/g,X_=/\//g,Z_=/=/g,e0=/\?/g,Da=/\+/g,t0=/%5e/gi,n0=/%60/gi,o0=/%7c/gi,r0=/%20/gi,s0=/%2f/gi,i0=/%252f/gi;function Xm(e){return encodeURI(""+e).replace(o0,"|")}function $c(e){return Xm(typeof e=="string"?e:JSON.stringify(e)).replace(Da,"%2B").replace(r0,"+").replace(Jm,"%23").replace(Ym,"%26").replace(n0,"`").replace(t0,"^").replace(X_,"%2F")}function hl(e){return $c(e).replace(Z_,"%3D")}function a0(e){return Xm(e).replace(Jm,"%23").replace(e0,"%3F").replace(i0,"%2F").replace(Ym,"%26").replace(Da,"%2B")}function ns(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function l0(e){return ns(e.replace(s0,"%252F"))}function c0(e){return ns(e.replace(Da," "))}function u0(e){return ns(e.replace(Da," "))}function Zm(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const o=n.match(/([^=]+)=?(.*)/)||[];if(o.length<2)continue;const r=c0(o[1]);if(r==="__proto__"||r==="constructor")continue;const s=u0(o[2]||"");t[r]===void 0?t[r]=s:Array.isArray(t[r])?t[r].push(s):t[r]=[t[r],s]}return t}function f0(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${hl(e)}=${$c(n)}`).join("&"):`${hl(e)}=${$c(t)}`:hl(e)}function d0(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>f0(t,e[t])).filter(Boolean).join("&")}const p0=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,h0=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,m0=/^([/\\]\s*){2,}[^/\\]/,g0=/^[\s\0]*(blob|data|javascript|vbscript):$/i,y0=/\/$|\/\?|\/#/,v0=/^\.?\//;function bs(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?p0.test(e):h0.test(e)||(t.acceptRelative?m0.test(e):!1)}function b0(e){return!!e&&g0.test(e)}function Oc(e="",t){return t?y0.test(e):e.endsWith("/")}function Pc(e="",t){if(!t)return(Oc(e)?e.slice(0,-1):e)||"/";if(!Oc(e,!0))return e||"/";let n=e,o="";const r=e.indexOf("#");r!==-1&&(n=e.slice(0,r),o=e.slice(r));const[s,...i]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(i.length>0?`?${i.join("?")}`:"")+o}function w0(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Oc(e,!0))return e||"/";let n=e,o="";const r=e.indexOf("#");if(r!==-1&&(n=e.slice(0,r),o=e.slice(r),!n))return o;const[s,...i]=n.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+o}function Qf(e,t){if(E0(t))return e;const n=Pc(t);if(!e.startsWith(n))return e;const o=e[n.length];return o&&o!=="/"&&o!=="?"?e:"/"+e.slice(n.length).replace(/^\/+/,"")}function _0(e,t){const n=La(e),o={...Zm(n.search),...t};return n.search=d0(o),k0(n)}function E0(e){return!e||e==="/"}function S0(e){return e&&e!=="/"}function x0(e,...t){let n=e||"";for(const o of t.filter(r=>S0(r)))if(n){const r=o.replace(v0,"");n=w0(n)+r}else n=o;return n}function eg(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),o=[];let r=0;for(const i of n)if(!(!i||i==="/")){for(const[a,l]of i.split(t).entries())if(!(!l||l===".")){if(l===".."){if(o.length===1&&bs(o[0]))continue;o.pop(),r--;continue}if(a===1&&o[o.length-1]?.endsWith(":/")){o[o.length-1]+="/"+l;continue}o.push(l),r++}}let s=o.join("/");return r>=0?n[0]?.startsWith("/")&&!s.startsWith("/")?s="/"+s:n[0]?.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*r)+s,n[n.length-1]?.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function tg(e,t){return ns(Pc(e))===ns(Pc(t))}const ng=Symbol.for("ufo:protocolRelative");function La(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,p=""]=n;return{protocol:f.toLowerCase(),pathname:p,href:f+p,auth:"",host:"",search:"",hash:""}}if(!bs(e,{acceptRelative:!0}))return t?La(t+e):Jf(e);const[,o="",r,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];o==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=Jf(a);return{protocol:o.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:i,pathname:l,search:u,hash:c,[ng]:!o}}function Jf(e=""){const[t="",n="",o=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:o}}function k0(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",o=e.hash||"",r=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[ng]?(e.protocol||"")+"//":"")+r+s+t+n+o}const C0=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Ou=()=>C0().app,A0=()=>Ou().baseURL,T0=()=>Ou().buildAssetsDir,Pu=(...e)=>eg(og(),T0(),...e),og=(...e)=>{const t=Ou(),n=t.cdnURL||t.baseURL;return e.length?eg(n,...e):n};globalThis.__buildAssetsURL=Pu,globalThis.__publicAssetsURL=og;globalThis.$fetch||(globalThis.$fetch=Y_.create({baseURL:A0()}));"global"in globalThis||(globalThis.global=globalThis);function Rc(e,t={},n){for(const o in e){const r=e[o],s=n?`${n}:${o}`:o;typeof r=="object"&&r!==null?Rc(r,t,s):typeof r=="function"&&(t[s]=r)}return t}const rg=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function sg(e,t,n,o){for(let r=n;r<e.length;r+=1)try{const s=o?o.run(()=>e[r](...t)):e[r](...t);if(s&&typeof s.then=="function")return Promise.resolve(s).then(()=>sg(e,t,r+1,o))}catch(s){return Promise.reject(s)}}function $0(e,t,n){if(e.length>0)return sg(e,t,0,rg(n))}function O0(e,t,n){if(e.length>0){const o=rg(n);return Promise.all(e.map(r=>o.run(()=>r(...t))))}}function ml(e,t){for(const n of[...e])n(t)}var P0=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!="function")return()=>{};const o=e;let r;for(;this._deprecatedHooks[e];)r=this._deprecatedHooks[e],e=r.to;if(r&&!n.allowDeprecated){let s=r.message;s||(s=`${o} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,o=(...r)=>(typeof n=="function"&&n(),n=void 0,o=void 0,t(...r));return n=this.hook(e,o),n}removeHook(e,t){const n=this._hooks[e];if(n){const o=n.indexOf(t);o!==-1&&n.splice(o,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const n=this._hooks[e]||[];this._hooks[e]=void 0;for(const o of n)this.hook(e,o)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=Rc(e),n=Object.keys(t).map(o=>this.hook(o,t[o]));return()=>{for(const o of n)o();n.length=0}}removeHooks(e){const t=Rc(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith($0,e,t)}callHookParallel(e,...t){return this.callHookWith(O0,e,t)}callHookWith(e,t,n){const o=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&ml(this._before,o);const r=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return r instanceof Promise?r.finally(()=>{this._after&&o&&ml(this._after,o)}):(this._after&&o&&ml(this._after,o),r)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function ig(){return new P0}function R0(e={}){let t,n=!1;const o=i=>{if(t&&t!==i)throw new Error("Context conflict")};let r;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?r=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(r){const i=r.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=s();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>s(),set:(i,a)=>{a||o(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{o(i),t=i;try{return r?r.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},u=()=>t===i?l:void 0;Ic.add(u);try{const c=r?r.run(i,a):a();return n||(t=void 0),await c}finally{Ic.delete(u)}}}}function I0(e={}){const t={};return{get(n,o={}){return t[n]||(t[n]=R0({...e,...o})),t[n]}}}const Qi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Yf="__unctx__",M0=Qi[Yf]||(Qi[Yf]=I0()),N0=(e,t={})=>M0.get(e,t),Xf="__unctx_async_handlers__",Ic=Qi[Xf]||(Qi[Xf]=new Set);function Fr(e){const t=[];for(const r of Ic){const s=r();s&&t.push(s)}const n=()=>{for(const r of t)r()};let o=e();return o&&typeof o=="object"&&"catch"in o&&(o=o.catch(r=>{throw n(),r})),[o,n]}const Zf=!1,D0=!1,ed={id:"__nuxt-loader"},_R={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},L0="#__nuxt",ag="nuxt-app",td=36e5,j0="vite:preloadError";function lg(e=ag){return N0(e,{asyncContext:!1})}const H0="__nuxt_plugin";function F0(e){let t=0;const n={_id:e.id||ag||"nuxt-app",_scope:mu(),provide:void 0,versions:{get nuxt(){return"4.4.6"},get vue(){return n.vueApp.version}},payload:ln({...e.ssrContext?.payload||{},data:ln({}),state:jt({}),once:new Set,_errors:ln({})}),static:{data:{}},runWithContext(r){return n._scope.active&&!_a()?n._scope.run(()=>nd(n,r)):nd(n,r)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let r=!1;return()=>{if(!r&&(r=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:ln({}),_state:ln({}),_payloadRevivers:{},...e};{const r=window.__NUXT__;if(r)for(const s in r)switch(s){case"data":case"state":case"_errors":Object.assign(n.payload[s],r[s]);break;default:n.payload[s]=r[s]}}n.hooks=ig(),n.hook=n.hooks.hook;{const r=n.hooks.callHook;n.hooks.callHook=(s,...i)=>Promise.resolve().then(()=>r(s,...i))}n.callHook=n.hooks.callHook,n.provide=(r,s)=>{const i="$"+r;Fs(n,i,s),Fs(n.vueApp.config.globalProperties,i,s)},Fs(n.vueApp,"$nuxt",n),Fs(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(j0,s=>{n.callHook("app:chunkError",{error:s.payload}),s.payload.message.includes("Unable to preload CSS")&&s.preventDefault()}),window.useNuxtApp||=nt;const r=n.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});n.hook("app:mounted",r)}const o=n.payload.config;return n.provide("config",o),n}function B0(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function U0(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const o in n)e.provide(o,n[o])}}async function z0(e,t){const n=new Set,o=[],r=[];let s,i=0;async function a(l){const u=l.dependsOn?.filter(c=>t.some(f=>f._name===c)&&!n.has(c))??[];if(u.length>0)o.push([new Set(u),l]);else{const c=U0(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(o.map(async([f,p])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(i++,await a(p)))})))}).catch(f=>{if(!l.parallel&&!e.payload.error)throw f;s||=f});l.parallel?r.push(c):await c}}for(const l of t)B0(e,l);for(const l of t)await a(l);if(await Promise.all(r),i)for(let l=0;l<i;l++)await Promise.all(r);if(s)throw e.payload.error||s}function yn(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[H0]:!0,_name:t})}function nd(e,t,n){const o=()=>t();return lg(e._id).set(e),e.vueApp.runWithContext(o)}function q0(e){let t;return ur()&&(t=Ze()?.appContext.app.$nuxt),t||=lg(e).tryUse(),t||null}function nt(e){const t=q0(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function Ru(e){return nt().$config}function Fs(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function gl(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Mc(e,t,n=".",o){if(!gl(t))return Mc(e,{},n,o);const r={...t};for(const s of Object.keys(e)){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(o&&o(r,s,i,n)||(Array.isArray(i)&&Array.isArray(r[s])?r[s]=[...i,...r[s]]:gl(i)&&gl(r[s])?r[s]=Mc(i,r[s],(n?`${n}.`:"")+s.toString(),o):r[s]=i))}return r}function W0(e){return(...t)=>t.reduce((n,o)=>Mc(n,o,"",e),{})}const Iu=W0();function V0(e,t){try{return t in e}catch{return!1}}class od extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:Nc(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=cg(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function K0(e){if(typeof e=="string")return new od(e);if(G0(e))return e;const t=new od(e.message??e.statusMessage??"",{cause:e.cause||e});if(V0(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Nc(e.statusCode,t.statusCode):e.status&&(t.statusCode=Nc(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;cg(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function G0(e){return e?.constructor?.__h3_error__===!0}const Q0=/[^\u0009\u0020-\u007E]/g;function cg(e=""){return e.replace(Q0,"")}function Nc(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const J0=Symbol("layout-meta"),ja=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const kt=()=>nt()?.$router,Ha=()=>ur()?ht(ja,nt()._route):nt()._route;const Y0=()=>{try{if(nt()._processingMiddleware)return!0}catch{return!1}return!1},X0=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?Z0(e):kt().resolve(e).href;if(t?.open){const{target:u="_blank",windowFeatures:c={}}=t.open,f=[];for(const[p,d]of Object.entries(c))d!==void 0&&f.push(`${p.toLowerCase()}=${d}`);return open(n,u,f.join(", ")),Promise.resolve()}const o=bs(n,{acceptRelative:!0}),r=t?.external||o;if(r){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:u}=new URL(n,window.location.href);if(u&&b0(u))throw new Error(`Cannot navigate to a URL with '${u}' protocol.`)}const s=Y0();if(!r&&s){if(t?.replace){if(typeof e=="string"){const{pathname:u,search:c,hash:f}=La(e);return{path:u,...c&&{query:Zm(c)},...f&&{hash:f},replace:!0}}return{...e,replace:!0}}return e}const i=kt(),a=nt();if(r)return a._scope.stop(),t?.replace?location.replace(n):location.href=n,s?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve();const l=typeof e=="string"?e1(e):e;return t?.replace?i.replace(l):i.push(l)};function Z0(e){return _0(e.path||"",e.query||{})+(e.hash||"")}function e1(e){const t=La(e);return a0(l0(t.pathname))+t.search+t.hash}const ug="__nuxt_error",Fa=()=>jh(nt().payload,"error"),mo=e=>{const t=Co(e);try{const n=Fa();nt().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},t1=async(e={})=>{const t=nt(),n=Fa();t.callHook("app:error:cleared",e),e.redirect&&await kt().replace(e.redirect),n.value=void 0},fg=e=>!!e&&typeof e=="object"&&ug in e,Co=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=K0(e);return Object.defineProperty(t,ug,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t},n1=-1,o1=-2,r1=-3,s1=-4,i1=-5,a1=-6,l1=-7,dg=2**32-1,Dc=dg-1;function c1(e){return!(!Number.isInteger(e)||e<0||e>Dc)}function u1(e){return!(!Number.isInteger(e)||e<0||e>dg)}function f1(e){return Uint8Array.fromBase64(e).buffer}function d1(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function p1(e){const t=atob(e),n=t.length,o=new Uint8Array(n);for(let r=0;r<n;r++)o[r]=t.charCodeAt(r);return o.buffer}const h1=typeof Uint8Array.fromBase64=="function",m1=typeof process=="object"&&process.versions?.node!==void 0,g1=h1?f1:m1?d1:p1;function y1(e,t){return v1(JSON.parse(e),t)}function v1(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);let r=null;function s(i,a=!1){if(i===n1)return;if(i===r1)return NaN;if(i===s1)return 1/0;if(i===i1)return-1/0;if(i===a1)return-0;if(a||typeof i!="number")throw new Error("Invalid input");if(i in o)return o[i];const l=n[i];if(!l||typeof l!="object")o[i]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const u=l[0],c=t&&Object.hasOwn(t,u)?t[u]:void 0;if(c){let f=l[1];if(typeof f!="number"&&(f=n.push(l[1])-1),r??=new Set,r.has(f))throw new Error("Invalid circular reference");return r.add(f),o[i]=c(s(f)),r.delete(f),o[i]}switch(u){case"Date":o[i]=new Date(l[1]);break;case"Set":const f=new Set;o[i]=f;for(let m=1;m<l.length;m+=1)f.add(s(l[m]));break;case"Map":const p=new Map;o[i]=p;for(let m=1;m<l.length;m+=2)p.set(s(l[m]),s(l[m+1]));break;case"RegExp":o[i]=new RegExp(l[1],l[2]);break;case"Object":{const m=l[1];if(typeof n[m]=="object"&&n[m][0]!=="BigInt")throw new Error("Invalid input");o[i]=Object(s(m));break}case"BigInt":o[i]=BigInt(l[1]);break;case"null":const d=Object.create(null);o[i]=d;for(let m=1;m<l.length;m+=2){if(l[m]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");d[l[m]]=s(l[m+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(n[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const m=globalThis[u],g=s(l[1]);o[i]=l[2]!==void 0?new m(g,l[2],l[3]):new m(g);break}case"ArrayBuffer":{const m=l[1];if(typeof m!="string")throw new Error("Invalid ArrayBuffer encoding");const g=g1(m);o[i]=g;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const m=u.slice(9);o[i]=Temporal[m].from(l[1]);break}case"URL":{const m=new URL(l[1]);o[i]=m;break}case"URLSearchParams":{const m=new URLSearchParams(l[1]);o[i]=m;break}default:throw new Error(`Unknown type ${u}`)}}else if(l[0]===l1){const u=l[1];if(!u1(u))throw new Error("Invalid input");const c=[];o[i]=c,c[Dc]=void 0,delete c[Dc];for(let f=2;f<l.length;f+=2){const p=l[f];if(!c1(p)||p>=u)throw new Error("Invalid input");c[p]=s(l[f+1])}c.length=u}else{const u=new Array(l.length);o[i]=u;for(let c=0;c<l.length;c+=1){const f=l[c];f!==o1&&(u[c]=s(f))}}else{const u={};o[i]=u;for(const c of Object.keys(l)){if(c==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const f=l[c];u[c]=s(f)}}return o[i]}return s(0)}const b1=new Set(["link","style","script","noscript"]),w1=new Set(["title","titleTemplate","script","style","noscript"]),Lc=new Set(["base","meta","link","style","script","noscript"]),_1=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),E1=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),S1=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),x1=new Set(["templateParams","htmlAttrs","bodyAttrs"]),k1=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),C1=["name","property","http-equiv"],A1=new Set(["viewport","description","keywords","robots"]);function pg(e){const t=e.split(":");return t.length?k1.has(t[1]):!1}function jc(e){const{props:t,tag:n}=e;if(E1.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(n==="link"&&t.rel==="alternate"){if(t.hreflang)return`alternate:${t.hreflang}`;if(t.type)return`alternate:${t.type}:${t.href||""}`}if(t.charset)return"charset";if(e.tag==="meta"){for(const o of C1)if(t[o]!==void 0){const r=t[o],s=r&&typeof r=="string"&&r.includes(":"),i=r&&A1.has(r),l=!(s||i)&&e.key?`:key:${e.key}`:"";return`${n}:${r}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(n==="link"&&t.rel==="alternate")return`alternate:${t.href||""}`;if(w1.has(n)){const o=e.textContent||e.innerHTML;if(o)return`${n}:content:${o}`}}function hg(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([o,r])=>`${o}:${String(r)}`).join(",")}`}function Ji(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());const r=t?t(n,e):e;if(Array.isArray(r))return r.map(s=>Ji(s,t));if(r?.constructor===Object){const s={};for(const i of Object.keys(r))s[i]=Ji(r[i],t,i);return s}return r}function T1(e,t){const n=e==="style"?new Map:new Set;function o(r){if(r==null||r===void 0)return;const s=String(r).trim();if(s)if(e==="style"){const[i,...a]=s.split(":").map(l=>l?l.trim():"");i&&a.length&&n.set(i,a.join(":"))}else s.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(o):o(t):Array.isArray(t)?t.forEach(r=>o(r)):t&&typeof t=="object"&&Object.entries(t).forEach(([r,s])=>{s&&s!=="false"&&(e==="style"?n.set(String(r).trim(),String(s)):o(r))}),n}function mg(e,t){if(e.props=e.props||{},!t)return e;if(e.tag==="templateParams")return e.props=t,e;const n=Lc.has(e.tag)||e.tag==="htmlAttrs"||e.tag==="bodyAttrs";return Object.entries(t).forEach(([o,r])=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;if(r===null){e.props[o]=null;return}if(o==="class"||o==="style"){e.props[o]=T1(o,r);return}if(S1.has(o)){if((o==="textContent"||o==="innerHTML")&&typeof r=="object"){let u=t.type;if(t.type||(u="application/json"),!u?.endsWith("json")&&u!=="speculationrules")return;t.type=u,e.props.type=u,e[o]=JSON.stringify(r)}else e[o]=r;return}const s=o.startsWith("data-"),i=n&&!s?o.toLowerCase():o,a=String(r),l=e.tag==="meta"&&i==="content";a==="true"||a===""?e.props[i]=s||l?a:!0:!r&&s&&a==="false"?e.props[i]="false":r!==void 0&&(e.props[i]=r)}),e}function $1(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},o=mg({tag:e,props:{}},n);return o.key&&b1.has(o.tag)&&(o.props["data-hid"]=o._h=o.key),o.tag==="script"&&typeof o.innerHTML=="object"&&(o.innerHTML=JSON.stringify(o.innerHTML),o.props.type=o.props.type||"application/json"),Array.isArray(o.props.content)?o.props.content.map(r=>({...o,props:{...o.props,content:r}})):o}function O1(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(r,s)=>{for(let i=0;i<t.length;i++)s=t[i](r,s);return s};e=n(void 0,e);const o=[];return e=Ji(e,n),Object.entries(e||{}).forEach(([r,s])=>{if(s!==void 0)for(const i of Array.isArray(s)?s:[s])o.push($1(r,i))}),o.flat()}const rd=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,sd={base:-10,title:10},P1={critical:-8,high:-1,low:2},id={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},R1=/@import/,yr=e=>e===""||e===!0;function I1(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const o=P1[t.tagPriority]||0,r=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:id;if(t.tag in sd)n=sd[t.tag];else if(t.tag==="meta"){const s=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;s&&(n=id.meta[s])}else if(t.tag==="link"&&t.props.rel)n=r.link[t.props.rel];else if(t.tag==="script"){const s=String(t.props.type);yr(t.props.async)?n=r.script.async:t.props.src&&!yr(t.props.defer)&&!yr(t.props.async)&&s!=="module"&&!s.endsWith("json")||t.innerHTML&&!s.endsWith("json")?n=r.script.sync:(yr(t.props.defer)&&t.props.src&&!yr(t.props.async)||s==="module")&&(n=r.script.defer)}else t.tag==="style"&&(n=t.innerHTML&&R1.test(t.innerHTML)?r.style.imported:r.style.sync);return(n||100)+o}function ad(e,t){const n=typeof t=="function"?t(e):t,o=n.key||String(e.plugins.size+1);e.plugins.get(o)||(e.plugins.set(o,n),e.hooks.addHooks(n.hooks||{}))}function M1(e={}){const t=ig();t.addHooks(e.hooks||{});const n=!e.document,o=new Map,r=new Map,s=new Set,i={_entryCount:1,plugins:r,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:o,headEntries(){return[...o.values()]},use:a=>ad(i,a),push(a,l){const u={...l||{}};delete u.head;const c=u._index??i._entryCount++,f={_i:c,input:a,options:u},p={_poll(d=!1){i.dirty=!0,!d&&s.add(c),t.callHook("entries:updated",i)},dispose(){o.delete(c)&&i.invalidate()},patch(d){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(f.input=d,o.set(c,f),p._poll())}};return p.patch(a),p},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",a);s.size;){const p=s.values().next().value;s.delete(p);const d=o.get(p);if(d){const m={tags:O1(d.input,e.propResolvers||[]).map(g=>Object.assign(g,d.options)),entry:d};await t.callHook("entries:normalize",m),d._tags=m.tags.map((g,b)=>(g._w=I1(i,g),g._p=(d._i<<10)+b,g._d=jc(g),g._d||(g._h=hg(g)),g))}}let l=!1;a.entries.flatMap(p=>(p._tags||[]).map(d=>({...d,props:{...d.props}}))).sort(rd).reduce((p,d)=>{const m=d._d||d._h;if(!p.has(m))return p.set(m,d);const g=p.get(m);if((d?.tagDuplicateStrategy||(x1.has(d.tag)?"merge":null)||(d.key&&d.key===g.key?"merge":null))==="merge"){const v={...g.props};Object.entries(d.props).forEach(([h,y])=>v[h]=h==="style"?new Map([...g.props.style||new Map,...y]):h==="class"?new Set([...g.props.class||new Set,...y]):y),p.set(m,{...d,props:v})}else d._p>>10===g._p>>10&&d.tag==="meta"&&pg(m)?(p.set(m,Object.assign([...Array.isArray(g)?g:[g],d],d)),l=!0):(d._w===g._w?d._p>g._p:d?._w<g?._w)&&p.set(m,d);return p},a.tagMap);const u=a.tagMap.get("title"),c=a.tagMap.get("titleTemplate");if(i._title=u?.textContent,c){const p=c?.textContent;if(i._titleTemplate=p,p){let d=typeof p=="function"?p(u?.textContent):p;typeof d=="string"&&!i.plugins.has("template-params")&&(d=d.replace("%s",u?.textContent||"")),u?d===null?a.tagMap.delete("title"):a.tagMap.set("title",{...u,textContent:d}):(c.tag="title",c.textContent=d)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(rd)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const f=[];for(const p of a.tags){const{innerHTML:d,tag:m,props:g}=p;if(_1.has(m)&&!(Object.keys(g).length===0&&!p.innerHTML&&!p.textContent)&&!(m==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(m==="script"&&d){if(String(g.type).endsWith("json")){const b=typeof d=="string"?d:JSON.stringify(d);p.innerHTML=b.replace(/</g,"\\u003C")}else typeof d=="string"&&(p.innerHTML=d.replace(new RegExp(`</${m}`,"g"),`<\\/${m}`));p._d=jc(p)}f.push(p)}}return f},invalidate(){for(const a of o.values())s.add(a._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(a=>ad(i,a)),i.hooks.callHook("init",i),e.init?.forEach(a=>a&&i.push(a)),i}const N1=(e,t)=>Le(t)?Ie(t):t,Mu="usehead";function D1(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Mu,e)}}.install}function L1(){if(ur()){const e=ht(Mu);if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function j1(e,t={}){const n=t.head||L1();return n.ssr?n.push(e||{},t):H1(n,e,t)}function H1(e,t,n={}){const o=B(!1);let r;return Dn(()=>{const i=o.value?{}:Ji(t,N1);r?r.patch(i):r=e.push(i,n)}),Ze()&&(fr(()=>{r.dispose()}),Xh(()=>{o.value=!0}),Yh(()=>{o.value=!1})),r}function F1(e){const t=e||nt();return t.ssrContext?.head||t.runWithContext(()=>{if(ur()){const n=ht(Mu);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function B1(e,t={}){const n=t.head||F1(t.nuxt);return j1(e,{head:n,...t})}const U1=(e,t)=>[],z1=e=>Iu({},...U1().map(t=>t.data).reverse()),q1=z1;let wi;function W1(){let e;return e=$fetch(Pu(`builds/meta/${Ru().app.buildId}.json`),{responseType:"json"}).then(t=>{if(!t||typeof t!="object"||!Array.isArray(t.prerendered))throw new Error("[nuxt] Received malformed app manifest. Ensure that `builds/meta/*.json` is served as JSON by your hosting/proxy and not rewritten to an HTML fallback.");return t}),wi=e,e.catch(t=>{wi===e&&(wi=void 0),console.error("[nuxt] Error fetching app manifest.",t)}),e}function V1(){return wi||W1()}function gg(e){const t=typeof e=="string"?e:e.path;try{return q1(t)}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function K1(e){return null}let co=null;async function G1(){if(co)return co;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Q1(e.textContent||""),n=e.dataset.src?await K1(e.dataset.src):void 0;return co={...t,...n,...window.__NUXT__},co.config?.public&&(co.config.public=jt(co.config.public)),co}async function Q1(e){return await y1(e,nt()._payloadRevivers)}function J1(e,t){nt()._payloadRevivers[e]=t}function ld(e){try{return JSON.parse(e)}catch{return e}}const Y1=[["NuxtError",e=>Co(e)],["EmptyShallowRef",e=>at(e==="_"?void 0:e==="0n"?BigInt(0):ld(e))],["EmptyRef",e=>B(e==="_"?void 0:e==="0n"?BigInt(0):ld(e))],["ShallowRef",e=>at(e)],["ShallowReactive",e=>ln(e)],["Ref",e=>B(e)],["Reactive",e=>jt(e)]],X1=yn({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[o,r]of Y1)J1(o,r);Object.assign(e.payload,([t,n]=Fr(()=>e.runWithContext(G1)),t=await t,n(),t)),delete window.__NUXT__}});async function Nu(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const o={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",o),!!o.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async r=>{const s=new Map,i=new Promise(d=>{e.resolveTags().then(m=>{d(m.map(g=>{const b=s.get(g._d)||0,v={tag:g,id:(b?`${g._d}:${b}`:g._d)||g._h,shouldRender:!0};return g._d&&pg(g._d)&&s.set(g._d,b+1),v}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const d of["body","head"]){const m=n[d]?.children;for(const g of m){const b=g.tagName.toLowerCase();if(!Lc.has(b))continue;const v=mg({tag:b,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((h,y)=>(h[y]=g.getAttribute(y),h),{})||{}});if(v.key=g.getAttribute("data-hid")||void 0,v._d=jc(v)||hg(v),a.elMap.has(v._d)){let h=1,y=v._d;for(;a.elMap.has(y);)y=`${v._d}:${h++}`;a.elMap.set(y,g)}else a.elMap.set(v._d,g)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(d,m,g){const b=`${d}:${m}`;a.sideEffects[b]=g,delete a.pendingSideEffects[b]}function u({id:d,$el:m,tag:g}){const b=g.tag.endsWith("Attrs");a.elMap.set(d,m),b||(g.textContent&&g.textContent!==m.textContent&&(m.textContent=g.textContent),g.innerHTML&&g.innerHTML!==m.innerHTML&&(m.innerHTML=g.innerHTML),l(d,"el",()=>{m?.remove(),a.elMap.delete(d)}));for(const v in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,v))continue;const h=g.props[v];if(v.startsWith("on")&&typeof h=="function"){const w=m?.dataset;if(w&&w[`${v}fired`]){const _=v.slice(0,-5);h.call(m,new Event(_.substring(2)))}m.getAttribute(`data-${v}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:m).addEventListener(v.substring(2),h.bind(m)),m.setAttribute(`data-${v}`,""));continue}const y=`attr:${v}`;if(v==="class"){if(!h)continue;for(const w of h)b&&l(d,`${y}:${w}`,()=>m.classList.remove(w)),!m.classList.contains(w)&&m.classList.add(w)}else if(v==="style"){if(!h)continue;for(const[w,_]of h)l(d,`${y}:${w}`,()=>{m.style.removeProperty(w)}),m.style.setProperty(w,_)}else h!==!1&&h!==null&&(m.getAttribute(v)!==h&&m.setAttribute(v,h===!0?"":String(h)),b&&l(d,y,()=>m.removeAttribute(v)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},p=await i;for(const d of p){const{tag:m,shouldRender:g,id:b}=d;if(g){if(m.tag==="title"){n.title=m.textContent,l("title","",()=>n.title=a.title);continue}d.$el=d.$el||a.elMap.get(b),d.$el?u(d):Lc.has(m.tag)&&c.push(d)}}for(const d of c){const m=d.tag.tagPosition||"head";d.$el=n.createElement(d.tag.tag),u(d),f[m]=f[m]||n.createDocumentFragment(),f[m].appendChild(d.$el)}for(const d of p)await e.hooks.callHook("dom:renderTag",d,n,l);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const d in a.pendingSideEffects)a.pendingSideEffects[d]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:p}),r()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Z1(e={}){const t=e.domOptions?.render||Nu;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return M1({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function eE(e,t){let n=0;return()=>{const o=++n;t(()=>{n===o&&e()})}}function tE(e={}){const t=Z1({domOptions:{render:eE(()=>Nu(t),n=>setTimeout(n,0))},...e});return t.install=D1(t),t}const nE={disableDefaults:!0},oE=yn({name:"nuxt:head",enforce:"pre",setup(e){const t=tE(nE);e.vueApp.use(t);{let n=!0;const o=async()=>{n=!1,await Nu(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||o()}),e.hooks.hook("app:error",o),e.hooks.hook("app:suspense:resolve",o);const r=t.push.bind(t);t.push=((s,i)=>{const a=r(s,i),l=a.dispose.bind(a);return a.dispose=()=>{const u=e["~transitionPromise"];u?u.then(l):l()},a})}}});const Ho=typeof document<"u";function yg(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function rE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&yg(e.default)}const $e=Object.assign;function yl(e,t){const n={};for(const o in t){const r=t[o];n[o]=Qt(r)?r.map(e):e(r)}return n}const Br=()=>{},Qt=Array.isArray;function cd(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}let ze=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const vg=Symbol("");ze.MATCHER_NOT_FOUND+"",ze.NAVIGATION_GUARD_REDIRECT+"",ze.NAVIGATION_ABORTED+"",ze.NAVIGATION_CANCELLED+"",ze.NAVIGATION_DUPLICATED+"";function or(e,t){return $e(new Error,{type:e,[vg]:!0},t)}function En(e,t){return e instanceof Error&&vg in e&&(t==null||!!(e.type&t))}const sE=["params","query","hash"];function iE(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of sE)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const aE=Symbol(""),ud=Symbol(""),Du=Symbol(""),bg=Symbol(""),Hc=Symbol("");const wg=/#/g,lE=/&/g,cE=/\//g,uE=/=/g,fE=/\?/g,_g=/\+/g,dE=/%5B/g,pE=/%5D/g,Eg=/%5E/g,hE=/%60/g,Sg=/%7B/g,mE=/%7C/g,xg=/%7D/g,gE=/%20/g;function Lu(e){return e==null?"":encodeURI(""+e).replace(mE,"|").replace(dE,"[").replace(pE,"]")}function yE(e){return Lu(e).replace(Sg,"{").replace(xg,"}").replace(Eg,"^")}function Fc(e){return Lu(e).replace(_g,"%2B").replace(gE,"+").replace(wg,"%23").replace(lE,"%26").replace(hE,"`").replace(Sg,"{").replace(xg,"}").replace(Eg,"^")}function vE(e){return Fc(e).replace(uE,"%3D")}function bE(e){return Lu(e).replace(wg,"%23").replace(fE,"%3F")}function wE(e){return bE(e).replace(cE,"%2F")}function Yi(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const _E=/\/$/,EE=e=>e.replace(_E,"");function vl(e,t,n="/"){let o,r={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(o=t.slice(0,l),s=t.slice(l,a>0?a:t.length),r=e(s.slice(1))),a>=0&&(o=o||t.slice(0,a),i=t.slice(a,t.length)),o=CE(o??t,n),{fullPath:o+s+i,path:o,query:r,hash:Yi(i)}}function SE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function fd(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function xE(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&rr(t.matched[o],n.matched[r])&&kg(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function rr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!kE(e[n],t[n]))return!1;return!0}function kE(e,t){return Qt(e)?dd(e,t):Qt(t)?dd(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function dd(e,t){return Qt(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function CE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let s=n.length-1,i,a;for(i=0;i<o.length;i++)if(a=o[i],a!==".")if(a==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+o.slice(i).join("/")}const Nt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Bc=(function(e){return e.pop="pop",e.push="push",e})({}),bl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function AE(e){if(!e)if(Ho){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),EE(e)}const TE=/^[^#]+#/;function $E(e,t){return e.replace(TE,"#")+t}function OE(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Ba=()=>({left:window.scrollX,top:window.scrollY});function PE(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=OE(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function pd(e,t){return(history.state?history.state.position-t:-1)+e}const Uc=new Map;function RE(e,t){Uc.set(e,t)}function IE(e){const t=Uc.get(e);return Uc.delete(e),t}function ME(e){return typeof e=="string"||e&&typeof e=="object"}function Cg(e){return typeof e=="string"||typeof e=="symbol"}function NE(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const r=n[o].replace(_g," "),s=r.indexOf("="),i=Yi(s<0?r:r.slice(0,s)),a=s<0?null:Yi(r.slice(s+1));if(i in t){let l=t[i];Qt(l)||(l=t[i]=[l]),l.push(a)}else t[i]=a}return t}function hd(e){let t="";for(let n in e){const o=e[n];if(n=vE(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(Qt(o)?o.map(r=>r&&Fc(r)):[o&&Fc(o)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function DE(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=Qt(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}function vr(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Gn(e,t,n,o,r,s=i=>i()){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const u=p=>{p===!1?l(or(ze.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?l(p):ME(p)?l(or(ze.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(i&&o.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),a())},c=s(()=>e.call(o&&o.instances[r],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(p=>l(p))})}function wl(e,t,n,o,r=s=>s()){const s=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(yg(l)){const u=(l.__vccOpts||l)[t];u&&s.push(Gn(u,n,o,i,a,r))}else{let u=l();s.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const f=rE(c)?c.default:c;i.mods[a]=c,i.components[a]=f;const p=(f.__vccOpts||f)[t];return p&&Gn(p,n,o,i,a,r)()}))}}return s}function LE(e,t){const n=[],o=[],r=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;i<s;i++){const a=t.matched[i];a&&(e.matched.find(u=>rr(u,a))?o.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(u=>rr(u,l))||r.push(l))}return[n,o,r]}let jE=()=>location.protocol+"//"+location.host;function Ag(e,t){const{pathname:n,search:o,hash:r}=t,s=e.indexOf("#");if(s>-1){let i=r.includes(e.slice(s))?e.slice(s).length:1,a=r.slice(i);return a[0]!=="/"&&(a="/"+a),fd(a,"")}return fd(n,e)+o+r}function HE(e,t,n,o){let r=[],s=[],i=null;const a=({state:p})=>{const d=Ag(e,location),m=n.value,g=t.value;let b=0;if(p){if(n.value=d,t.value=p,i&&i===m){i=null;return}b=g?p.position-g.position:0}else o(d);r.forEach(v=>{v(n.value,m,{delta:b,type:Bc.pop,direction:b?b>0?bl.forward:bl.back:bl.unknown})})};function l(){i=n.value}function u(p){r.push(p);const d=()=>{const m=r.indexOf(p);m>-1&&r.splice(m,1)};return s.push(d),d}function c(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState($e({},p.state,{scroll:Ba()}),"")}}function f(){for(const p of s)p();s=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:f}}function md(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?Ba():null}}function FE(e){const{history:t,location:n}=window,o={value:Ag(e,n)},r={value:t.state};r.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:jE()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),r.value=u}catch(d){console.error(d),n[c?"replace":"assign"](p)}}function i(l,u){s(l,$e({},t.state,md(r.value.back,l,r.value.forward,!0),u,{position:r.value.position}),!0),o.value=l}function a(l,u){const c=$e({},r.value,t.state,{forward:l,scroll:Ba()});s(c.current,c,!0),s(l,$e({},md(o.value,l,null),{position:c.position+1},u),!1),o.value=l}return{location:o,state:r,push:a,replace:i}}function BE(e){e=AE(e);const t=FE(e),n=HE(e,t.state,t.location,t.replace);function o(s,i=!0){i||n.pauseListeners(),history.go(s)}const r=$e({location:"",base:e,go:o,createHref:$E.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let bo=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var et=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(et||{});const UE={type:bo.Static,value:""},zE=/[a-zA-Z0-9_]/;function qE(e){if(!e)return[[]];if(e==="/")return[[UE]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${n})/"${u}": ${d}`)}let n=et.Static,o=n;const r=[];let s;function i(){s&&r.push(s),s=[]}let a=0,l,u="",c="";function f(){u&&(n===et.Static?s.push({type:bo.Static,value:u}):n===et.Param||n===et.ParamRegExp||n===et.ParamRegExpEnd?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:bo.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=l}for(;a<e.length;)switch(l=e[a++],n){case et.Static:l==="\\"?(o=n,n=et.EscapeNext):l==="/"?(u&&f(),i()):l===":"?(f(),n=et.Param):p();break;case et.EscapeNext:p(),n=o;break;case et.Param:l==="("?n=et.ParamRegExp:zE.test(l)?p():(f(),n=et.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case et.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=et.ParamRegExpEnd:c+=l;break;case et.ParamRegExpEnd:f(),n=et.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}return n===et.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),f(),i(),r}const gd="[^/]+?",WE={sensitive:!1,strict:!1,start:!0,end:!0};var vt=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(vt||{});const VE=/[.+*?^${}()[\]/\\]/g;function KE(e,t){const n=$e({},WE,t),o=[];let r=n.start?"^":"";const s=[];for(const u of e){const c=u.length?[]:[vt.Root];n.strict&&!u.length&&(r+="/");for(let f=0;f<u.length;f++){const p=u[f];let d=vt.Segment+(n.sensitive?vt.BonusCaseSensitive:0);if(p.type===bo.Static)f||(r+="/"),r+=p.value.replace(VE,"\\$&"),d+=vt.Static;else if(p.type===bo.Param){const{value:m,repeatable:g,optional:b,regexp:v}=p;s.push({name:m,repeatable:g,optional:b});const h=v||gd;if(h!==gd){d+=vt.BonusCustomRegExp;try{new RegExp(`(${h})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${m}" (${h}): `+w.message)}}let y=g?`((?:${h})(?:/(?:${h}))*)`:`(${h})`;f||(y=b&&u.length<2?`(?:/${y})`:"/"+y),b&&(y+="?"),r+=y,d+=vt.Dynamic,b&&(d+=vt.BonusOptional),g&&(d+=vt.BonusRepeatable),h===".*"&&(d+=vt.BonusWildcard)}c.push(d)}o.push(c)}if(n.strict&&n.end){const u=o.length-1;o[u][o[u].length-1]+=vt.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function a(u){const c=u.match(i),f={};if(!c)return null;for(let p=1;p<c.length;p++){const d=c[p]||"",m=s[p-1];f[m.name]=d&&m.repeatable?d.split("/"):d}return f}function l(u){let c="",f=!1;for(const p of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const d of p)if(d.type===bo.Static)c+=d.value;else if(d.type===bo.Param){const{value:m,repeatable:g,optional:b}=d,v=m in u?u[m]:"";if(Qt(v)&&!g)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const h=Qt(v)?v.join("/"):v;if(!h)if(b)p.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${m}"`);c+=h}}return c||"/"}return{re:i,score:o,keys:s,parse:a,stringify:l}}function GE(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===vt.Static+vt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===vt.Static+vt.Segment?1:-1:0}function Tg(e,t){let n=0;const o=e.score,r=t.score;for(;n<o.length&&n<r.length;){const s=GE(o[n],r[n]);if(s)return s;n++}if(Math.abs(r.length-o.length)===1){if(yd(o))return 1;if(yd(r))return-1}return r.length-o.length}function yd(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const QE={strict:!1,end:!0,sensitive:!1};function JE(e,t,n){const o=KE(qE(e.path),n),r=$e(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function YE(e,t){const n=[],o=new Map;t=cd(QE,t);function r(f){return o.get(f)}function s(f,p,d){const m=!d,g=bd(f);g.aliasOf=d&&d.record;const b=cd(t,f),v=[g];if("alias"in f){const w=typeof f.alias=="string"?[f.alias]:f.alias;for(const _ of w)v.push(bd($e({},g,{components:d?d.record.components:g.components,path:_,aliasOf:d?d.record:g})))}let h,y;for(const w of v){const{path:_}=w;if(p&&_[0]!=="/"){const k=p.record.path,S=k[k.length-1]==="/"?"":"/";w.path=p.record.path+(_&&S+_)}if(h=JE(w,p,b),d?d.alias.push(h):(y=y||h,y!==h&&y.alias.push(h),m&&f.name&&!wd(h)&&i(f.name)),$g(h)&&l(h),g.children){const k=g.children;for(let S=0;S<k.length;S++)s(k[S],h,d&&d.children[S])}d=d||h}return y?()=>{i(y)}:Br}function i(f){if(Cg(f)){const p=o.get(f);p&&(o.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,1),f.record.name&&o.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return n}function l(f){const p=eS(f,n);n.splice(p,0,f),f.record.name&&!wd(f)&&o.set(f.record.name,f)}function u(f,p){let d,m={},g,b;if("name"in f&&f.name){if(d=o.get(f.name),!d)throw or(ze.MATCHER_NOT_FOUND,{location:f});b=d.record.name,m=$e(vd(p.params,d.keys.filter(y=>!y.optional).concat(d.parent?d.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),f.params&&vd(f.params,d.keys.map(y=>y.name))),g=d.stringify(m)}else if(f.path!=null)g=f.path,d=n.find(y=>y.re.test(g)),d&&(m=d.parse(g),b=d.record.name,d.keys.forEach(y=>{y.optional&&!m[y.name]&&delete m[y.name]}));else{if(d=p.name?o.get(p.name):n.find(y=>y.re.test(p.path)),!d)throw or(ze.MATCHER_NOT_FOUND,{location:f,currentLocation:p});b=d.record.name,m=$e({},p.params,f.params),g=d.stringify(m)}const v=[];let h=d;for(;h;)v.unshift(h.record),h=h.parent;return{name:b,path:g,params:m,matched:v,meta:ZE(v)}}e.forEach(f=>s(f));function c(){n.length=0,o.clear()}return{addRoute:s,resolve:u,removeRoute:i,clearRoutes:c,getRoutes:a,getRecordMatcher:r}}function vd(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function bd(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:XE(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function XE(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function wd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ZE(e){return e.reduce((t,n)=>$e(t,n.meta),{})}function eS(e,t){let n=0,o=t.length;for(;n!==o;){const s=n+o>>1;Tg(e,t[s])<0?o=s:n=s+1}const r=tS(e);return r&&(o=t.lastIndexOf(r,o-1)),o}function tS(e){let t=e;for(;t=t.parent;)if($g(t)&&Tg(e,t)===0)return t}function $g({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function _d(e){const t=ht(Du),n=ht(bg),o=M(()=>{const l=A(e.to);return t.resolve(l)}),r=M(()=>{const{matched:l}=o.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const p=f.findIndex(rr.bind(null,c));if(p>-1)return p;const d=Ed(l[u-2]);return u>1&&Ed(c)===d&&f[f.length-1].path!==d?f.findIndex(rr.bind(null,l[u-2])):p}),s=M(()=>r.value>-1&&iS(n.params,o.value.params)),i=M(()=>r.value>-1&&r.value===n.matched.length-1&&kg(n.params,o.value.params));function a(l={}){if(sS(l)){const u=t[A(e.replace)?"replace":"push"](A(e.to)).catch(Br);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:o,href:M(()=>o.value.href),isActive:s,isExactActive:i,navigate:a}}function nS(e){return e.length===1?e[0]:e}const oS=ve({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:_d,setup(e,{slots:t}){const n=jt(_d(e)),{options:o}=ht(Du),r=M(()=>({[Sd(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Sd(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&nS(t.default(n));return e.custom?s:st("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},s)}}}),rS=oS;function sS(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function iS(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!Qt(r)||r.length!==o.length||o.some((s,i)=>s.valueOf()!==r[i].valueOf()))return!1}return!0}function Ed(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Sd=(e,t,n)=>e??t??n,aS=ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=ht(Hc),r=M(()=>e.route||o.value),s=ht(ud,0),i=M(()=>{let u=A(s);const{matched:c}=r.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=M(()=>r.value.matched[i.value]);So(ud,M(()=>i.value+1)),So(aE,a),So(Hc,r);const l=B();return Fe(()=>[l.value,a.value,e.name],([u,c,f],[p,d,m])=>{c&&(c.instances[f]=u,d&&d!==c&&u&&u===p&&(c.leaveGuards.size||(c.leaveGuards=d.leaveGuards),c.updateGuards.size||(c.updateGuards=d.updateGuards))),u&&c&&(!d||!rr(c,d)||!p)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,f=a.value,p=f&&f.components[c];if(!p)return xd(n.default,{Component:p,route:u});const d=f.props[c],m=d?d===!0?u.params:typeof d=="function"?d(u):d:null,b=st(p,$e({},m,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return xd(n.default,{Component:b,route:u})||b}}});function xd(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Og=aS;function lS(e){const t=YE(e.routes,e),n=e.parseQuery||NE,o=e.stringifyQuery||hd,r=e.history,s=vr(),i=vr(),a=vr(),l=at(Nt);let u=Nt;Ho&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=yl.bind(null,H=>""+H),f=yl.bind(null,wE),p=yl.bind(null,Yi);function d(H,ie){let te,ce;return Cg(H)?(te=t.getRecordMatcher(H),ce=ie):ce=H,t.addRoute(ce,te)}function m(H){const ie=t.getRecordMatcher(H);ie&&t.removeRoute(ie)}function g(){return t.getRoutes().map(H=>H.record)}function b(H){return!!t.getRecordMatcher(H)}function v(H,ie){if(ie=$e({},ie||l.value),typeof H=="string"){const x=vl(n,H,ie.path),R=t.resolve({path:x.path},ie),U=r.createHref(x.fullPath);return $e(x,R,{params:p(R.params),redirectedFrom:void 0,href:U})}let te;if(H.path!=null)te=$e({},H,{path:vl(n,H.path,ie.path).path});else{const x=$e({},H.params);for(const R in x)x[R]==null&&delete x[R];te=$e({},H,{params:f(x)}),ie.params=f(ie.params)}const ce=t.resolve(te,ie),be=H.hash||"";ce.params=c(p(ce.params));const Be=SE(o,$e({},H,{hash:yE(be),path:ce.path})),E=r.createHref(Be);return $e({fullPath:Be,hash:be,query:o===hd?DE(H.query):H.query||{}},ce,{redirectedFrom:void 0,href:E})}function h(H){return typeof H=="string"?vl(n,H,l.value.path):$e({},H)}function y(H,ie){if(u!==H)return or(ze.NAVIGATION_CANCELLED,{from:ie,to:H})}function w(H){return S(H)}function _(H){return w($e(h(H),{replace:!0}))}function k(H,ie){const te=H.matched[H.matched.length-1];if(te&&te.redirect){const{redirect:ce}=te;let be=typeof ce=="function"?ce(H,ie):ce;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=h(be):{path:be},be.params={}),$e({query:H.query,hash:H.hash,params:be.path!=null?{}:H.params},be)}}function S(H,ie){const te=u=v(H),ce=l.value,be=H.state,Be=H.force,E=H.replace===!0,x=k(te,ce);if(x)return S($e(h(x),{state:typeof x=="object"?$e({},be,x.state):be,force:Be,replace:E}),ie||te);const R=te;R.redirectedFrom=ie;let U;return!Be&&xE(o,ce,te)&&(U=or(ze.NAVIGATION_DUPLICATED,{to:R,from:ce}),mt(ce,ce,!0,!1)),(U?Promise.resolve(U):O(R,ce)).catch(j=>En(j)?En(j,ze.NAVIGATION_GUARD_REDIRECT)?j:Re(j):D(j,R,ce)).then(j=>{if(j){if(En(j,ze.NAVIGATION_GUARD_REDIRECT))return S($e({replace:E},h(j.to),{state:typeof j.to=="object"?$e({},be,j.to.state):be,force:Be}),ie||R)}else j=C(R,ce,!0,E,be);return N(R,ce,j),j})}function P(H,ie){const te=y(H,ie);return te?Promise.reject(te):Promise.resolve()}function $(H){const ie=bn.values().next().value;return ie&&typeof ie.runWithContext=="function"?ie.runWithContext(H):H()}function O(H,ie){let te;const[ce,be,Be]=LE(H,ie);te=wl(ce.reverse(),"beforeRouteLeave",H,ie);for(const x of ce)x.leaveGuards.forEach(R=>{te.push(Gn(R,H,ie))});const E=P.bind(null,H,ie);return te.push(E),gt(te).then(()=>{te=[];for(const x of s.list())te.push(Gn(x,H,ie));return te.push(E),gt(te)}).then(()=>{te=wl(be,"beforeRouteUpdate",H,ie);for(const x of be)x.updateGuards.forEach(R=>{te.push(Gn(R,H,ie))});return te.push(E),gt(te)}).then(()=>{te=[];for(const x of Be)if(x.beforeEnter)if(Qt(x.beforeEnter))for(const R of x.beforeEnter)te.push(Gn(R,H,ie));else te.push(Gn(x.beforeEnter,H,ie));return te.push(E),gt(te)}).then(()=>(H.matched.forEach(x=>x.enterCallbacks={}),te=wl(Be,"beforeRouteEnter",H,ie,$),te.push(E),gt(te))).then(()=>{te=[];for(const x of i.list())te.push(Gn(x,H,ie));return te.push(E),gt(te)}).catch(x=>En(x,ze.NAVIGATION_CANCELLED)?x:Promise.reject(x))}function N(H,ie,te){a.list().forEach(ce=>$(()=>ce(H,ie,te)))}function C(H,ie,te,ce,be){const Be=y(H,ie);if(Be)return Be;const E=ie===Nt,x=Ho?history.state:{};te&&(ce||E?r.replace(H.fullPath,$e({scroll:E&&x&&x.scroll},be)):r.push(H.fullPath,be)),l.value=H,mt(H,ie,te,E),Re()}let F;function I(){F||(F=r.listen((H,ie,te)=>{if(!wn.listening)return;const ce=v(H),be=k(ce,wn.currentRoute.value);if(be){S($e(be,{replace:!0,force:!0}),ce).catch(Br);return}u=ce;const Be=l.value;Ho&&RE(pd(Be.fullPath,te.delta),Ba()),O(ce,Be).catch(E=>En(E,ze.NAVIGATION_ABORTED|ze.NAVIGATION_CANCELLED)?E:En(E,ze.NAVIGATION_GUARD_REDIRECT)?(S($e(h(E.to),{force:!0}),ce).then(x=>{En(x,ze.NAVIGATION_ABORTED|ze.NAVIGATION_DUPLICATED)&&!te.delta&&te.type===Bc.pop&&r.go(-1,!1)}).catch(Br),Promise.reject()):(te.delta&&r.go(-te.delta,!1),D(E,ce,Be))).then(E=>{E=E||C(ce,Be,!1),E&&(te.delta&&!En(E,ze.NAVIGATION_CANCELLED)?r.go(-te.delta,!1):te.type===Bc.pop&&En(E,ze.NAVIGATION_ABORTED|ze.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),N(ce,Be,E)}).catch(Br)}))}let Q=vr(),W=vr(),Y;function D(H,ie,te){Re(H);const ce=W.list();return ce.length?ce.forEach(be=>be(H,ie,te)):console.error(H),Promise.reject(H)}function oe(){return Y&&l.value!==Nt?Promise.resolve():new Promise((H,ie)=>{Q.add([H,ie])})}function Re(H){return Y||(Y=!H,I(),Q.list().forEach(([ie,te])=>H?te(H):ie()),Q.reset()),H}function mt(H,ie,te,ce){const{scrollBehavior:be}=e;if(!Ho||!be)return Promise.resolve();const Be=!te&&IE(pd(H.fullPath,0))||(ce||!te)&&history.state&&history.state.scroll||null;return lt().then(()=>be(H,ie,Be)).then(E=>E&&PE(E)).catch(E=>D(E,H,ie))}const Ge=H=>r.go(H);let ut;const bn=new Set,wn={currentRoute:l,listening:!0,addRoute:d,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:v,options:e,push:w,replace:_,go:Ge,back:()=>Ge(-1),forward:()=>Ge(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:W.add,isReady:oe,install(H){H.component("RouterLink",rS),H.component("RouterView",Og),H.config.globalProperties.$router=wn,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>A(l)}),Ho&&!ut&&l.value===Nt&&(ut=!0,w(r.location).catch(ce=>{}));const ie={};for(const ce in Nt)Object.defineProperty(ie,ce,{get:()=>l.value[ce],enumerable:!0});H.provide(Du,wn),H.provide(bg,ln(ie)),H.provide(Hc,l);const te=H.unmount;bn.add(H),H.unmount=function(){bn.delete(H),bn.size<1&&(u=Nt,F&&F(),F=null,l.value=Nt,ut=!1,Y=!1),te()}}};function gt(H){return H.reduce((ie,te)=>ie.then(()=>$(te)),Promise.resolve())}return wn}const cS=/(:\w+)\([^)]+\)/g,uS=/(:\w+)[?+*]/g,fS=/:\w+/g,dS=(e,t)=>t.path.replace(cS,"$1").replace(uS,"$1").replace(fS,n=>e.params[n.slice(1)]?.toString()||""),zc=(e,t)=>{const n=e.route.matched.find(r=>r.components?.default===e.Component.type),o=t??n?.meta.key??(n&&dS(e.route,n));return typeof o=="function"?o(e.route):o},pS=(e,t)=>({default:()=>e?st(xb,e===!0?{}:e,t):t});function Pg(e){return Array.isArray(e)?e:[e]}const hS="modulepreload",mS=function(e,t){return new URL(e,t).href},kd={},kn=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");r=u(n.map(c=>{if(c=mS(c,o),c in kd)return;kd[c]=!0;const f=c.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(o)for(let m=i.length-1;m>=0;m--){const g=i[m];if(g.href===c&&(!f||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${p}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":hS,f||(d.as="script"),d.crossOrigin="",d.href=c,l&&d.setAttribute("nonce",l),document.head.appendChild(d),f)return new Promise((m,g)=>{d.addEventListener("load",m),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return r.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},gS={key:e=>`/${e.params.owner}/${e.params.repo}`},_l=[{name:"cards",path:"/cards",component:()=>kn(()=>import("./CQja-oog.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)},{name:"recent",path:"/recent",component:()=>kn(()=>import("./DWBdeKmR.js"),__vite__mapDeps([5,6,2,7,8,1,9,3]),import.meta.url)},{name:"todo",path:"/todo",component:()=>kn(()=>import("./BNzF7F9w.js"),__vite__mapDeps([10,6,2,7,3]),import.meta.url)},{name:"owner-repo-number",path:"/:owner()/:repo()/:number?",meta:gS||{},component:()=>kn(()=>import("./BbwaKnwL.js"),__vite__mapDeps([11,12,6,2,7,8,1,9]),import.meta.url)},{name:"number",path:"/:number()",component:()=>kn(()=>import("./Da-Y9lY6.js"),__vite__mapDeps([13,12,6,2,7,8,1,9]),import.meta.url)},{name:"index",path:"/",component:()=>kn(()=>import("./BWLewmBT.js").then(e=>e.i),__vite__mapDeps([14,6,2,7,12,8,1,9,15]),import.meta.url)},{path:"/hub",name:"hub-redirect",redirect:"/"},{path:"/hub/recent",name:"hub-recent-redirect",redirect:"/recent"}],yS=(e,t)=>({default:()=>e?st(Im,e===!0?{}:e,t):t.default?.()}),vS=/(:\w+)\([^)]+\)/g,bS=/(:\w+)[?+*]/g,wS=/:\w+/g;function Cd(e){const t=e?.meta.key??e.path.replace(vS,"$1").replace(bS,"$1").replace(wS,n=>e.params[n.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function _S(e,t){return e===t||t===Nt?!1:Cd(e)!==Cd(t)?!0:!e.matched.every((o,r)=>o.components&&o.components.default===t.matched[r]?.components?.default)}function Ad(e){return Array.isArray(e)?e:[e]}function ES(e){const t=[];for(const n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?Ad(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?Ad(n.onBeforeLeave):void 0});return Iu(...t)}const SS={scrollBehavior(e,t,n){const o=nt(),r=kt().options?.scrollBehaviorType??"auto";return e.path.replace(/\/$/,"")===t.path.replace(/\/$/,"")?t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Rg(e.hash),behavior:r}:!1:(typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===Nt?Td(e,t,n,r):new Promise(i=>{const a=()=>{requestAnimationFrame(()=>i(Td(e,t,n,r)))};o.hooks.hookOnce("page:loading:end",()=>{const l=o["~transitionPromise"];l?l.then(a):a()})})}};function Rg(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function Td(e,t,n,o){return n||(e.hash?{el:e.hash,top:Rg(e.hash),behavior:_S(e,t)?o:"instant"}:{left:0,top:0})}const xS={hashMode:!1,scrollBehaviorType:"auto"},Bn={...xS,...SS},kS=async(e,t)=>{let n,o;if(!e.meta?.validate)return;const r=([n,o]=Fr(()=>Promise.resolve(e.meta.validate(e))),n=await n,o(),n);if(r===!0)return;const s=Co({fatal:!0,status:r&&(r.status||r.statusCode)||404,statusText:r&&(r.statusText||r.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),s},CS=e=>{const t=e.path.match(/^\/([^/]+)\/([^/]+)\/(?:issues|pull|pulls)\/(\d+)\/?$/);if(t)return X0(`/${t[1]}/${t[2]}/${t[3]}`,{replace:!0})},AS=e=>{const t=gg({path:e.path});if(t.redirect){const n=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return bs(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},TS=[kS,CS,AS],qc={};function $S(e,t,n){const{pathname:o,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){const u=s.includes(e.slice(i))?e.slice(i).length:1;let c=s.slice(u);return c[0]!=="/"&&(c="/"+c),Qf(c,"")}const a=Qf(o,e),l=!n||tg(a,n)?a:n;return l+(l.includes("?")?"":r)+s}const OS=yn({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,o=Ru().app.baseURL;const r=Bn.history?.(o)??BE(o),s=Bn.routes?([t,n]=Fr(()=>Bn.routes(_l)),t=await t,n(),t??_l):_l;let i;const a=lS({...Bn,scrollBehavior:(v,h,y)=>{if(h===Nt){i=y;return}if(Bn.scrollBehavior){if(a.options.scrollBehavior=Bn.scrollBehavior,"scrollRestoration"in window.history){const w=a.beforeEach(()=>{w(),window.history.scrollRestoration="manual"})}return Bn.scrollBehavior(v,Nt,i||y)}},history:r,routes:s});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=at(a.currentRoute.value);a.afterEach((v,h)=>{l.value=h}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=$S(o,window.location,e.payload.path),c=at(a.currentRoute.value),f=()=>{c.value=a.currentRoute.value};a.afterEach((v,h)=>{const y=v.matched.at(-1)?.components?.default,w=h.matched.at(-1)?.components?.default;if(y===w){f();return}v.matched.length<h.matched.length&&v.matched.every((_,k)=>_.components?.default===h.matched[k]?.components?.default)&&f()});const p={sync:f};for(const v in c.value)Object.defineProperty(p,v,{get:()=>c.value[v],enumerable:!0});e._route=ln(p),e._middleware||={global:[],named:{}};const d=Fa();a.afterEach(async(v,h,y)=>{delete e._processingMiddleware,!e.isHydrating&&d.value&&await e.runWithContext(t1),y&&await e.callHook("page:loading:end")});try{[t,n]=Fr(()=>a.isReady()),await t,n()}catch(v){[t,n]=Fr(()=>e.runWithContext(()=>mo(v))),await t,n()}const m=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value,g=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&u!==e.payload.path&&tg(a.currentRoute.value.path,e.payload.path);f();const b=e.payload.state._layout;return a.beforeEach(async(v,h)=>{await e.callHook("page:loading:start"),v.meta=jt(v.meta),e.isHydrating&&b&&!pn(v.meta.layout)&&(v.meta.layout=b),e._processingMiddleware=!0;{const y=new Set([...TS,...e._middleware.global]);for(const _ of v.matched){const k=_.meta.middleware;if(k)for(const S of Pg(k))y.add(S)}const w=gg({path:v.path});if(w.appMiddleware)for(const _ in w.appMiddleware)w.appMiddleware[_]?y.add(_):y.delete(_);for(const _ of y){const k=typeof _=="string"?e._middleware.named[_]||await qc[_]?.().then(S=>S.default||S):_;if(!k)throw new Error(`Unknown route middleware: '${_}'.`);try{const S=await e.runWithContext(()=>k(v,h));if(!e.payload.serverRendered&&e.isHydrating&&(S===!1||S instanceof Error)){const P=S||Co({status:404,statusText:`Page Not Found: ${u}`});return await e.runWithContext(()=>mo(P)),!1}if(S===!0)continue;if(S===!1)return S;if(S)return fg(S)&&S.fatal&&await e.runWithContext(()=>mo(S)),S}catch(S){const P=Co(S);return P.fatal&&await e.runWithContext(()=>mo(P)),P}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(v=>{if(v.matched.length===0&&!d.value)return e.runWithContext(()=>mo(Co({status:404,fatal:!1,statusText:`Page not found: ${v.fullPath}`,data:{path:v.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{if("name"in m&&(m.name=void 0),g){const v=a.resolve(e.payload.path);"name"in v&&(v.name=void 0),await a.replace({...v,force:!0}),e.hooks.hookOnce("app:suspense:resolve",async()=>{await a.replace({...m,force:!0})})}else await a.replace({...m,force:!0});a.options.scrollBehavior=Bn.scrollBehavior}catch(v){await e.runWithContext(()=>mo(v))}}),{provide:{router:a}}}}),$d=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),ER=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Ig=e=>{const t=nt();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{$d(()=>e())}):$d(()=>e())},PS=yn(()=>{const e=kt();Ig(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),RS=yn(e=>{let t;async function n(){let o;try{o=await V1()}catch(r){const s=r;if(!("status"in s&&(s.status===404||s.status===403)))throw s}t&&clearTimeout(t),t=setTimeout(n,td);try{const r=await $fetch(Pu("builds/latest.json")+`?${Date.now()}`);r.id!==o?.id&&(e.hooks.callHook("app:manifest:update",r),t&&clearTimeout(t))}catch{}}Ig(()=>{t=setTimeout(n,td)})});function IS(e={}){const t=e.path||window.location.pathname;let n={};try{n=JSON.parse(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:nt().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const MS=yn({name:"nuxt:chunk-reload",setup(e){const t=kt(),n=Ru(),o=new Set;t.beforeEach(()=>{o.clear()}),e.hook("app:chunkError",({error:s})=>{o.add(s)});function r(s){const i=x0(n.app.baseURL,s.fullPath);IS({path:i,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(r)}),t.onError((s,i)=>{o.has(s)&&r(i)})}}),NS=yn({name:"nuxt:global-components"}),Bs={};function DS(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function LS(e,t=kt()){const{path:n,matched:o}=t.resolve(e);if(!o.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const r=t._preloadPromises||=[];if(r.length>4)return Promise.all(r).then(()=>LS(e,t));t._routePreloaded.add(n);for(const s of o){const i=s.components?.default;if(typeof i!="function")continue;const a=Promise.resolve(i()).catch(()=>{}).finally(()=>r.splice(r.indexOf(a),1));r.push(a)}await Promise.all(r)}const jS=yn({name:"nuxt:prefetch",setup(e){const t=kt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const o=n?.meta?.layout;o&&typeof Bs[o]=="function"&&await Bs[o]()})}),e.hooks.hook("link:prefetch",n=>{if(bs(n))return;const o=t.resolve(n);if(!o)return;const r=o.meta.layout;let s=Pg(o.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof qc[i]=="function"&&qc[i]();typeof r=="string"&&r in Bs&&DS(Bs[r])})}}),HS=yn(()=>{}),FS=["top","right","bottom","left"],Od=["start","end"],Pd=FS.reduce((e,t)=>e.concat(t,t+"-"+Od[0],t+"-"+Od[1]),[]),os=Math.min,go=Math.max,BS={left:"right",right:"left",bottom:"top",top:"bottom"};function Wc(e,t,n){return go(e,os(t,n))}function Po(e,t){return typeof e=="function"?e(t):e}function mn(e){return e.split("-")[0]}function Wt(e){return e.split("-")[1]}function Mg(e){return e==="x"?"y":"x"}function ju(e){return e==="y"?"height":"width"}function On(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Hu(e){return Mg(On(e))}function Ng(e,t,n){n===void 0&&(n=!1);const o=Wt(e),r=Hu(e),s=ju(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Zi(i)),[i,Zi(i)]}function US(e){const t=Zi(e);return[Xi(e),t,Xi(t)]}function Xi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Rd=["left","right"],Id=["right","left"],zS=["top","bottom"],qS=["bottom","top"];function WS(e,t,n){switch(e){case"top":case"bottom":return n?t?Id:Rd:t?Rd:Id;case"left":case"right":return t?zS:qS;default:return[]}}function VS(e,t,n,o){const r=Wt(e);let s=WS(mn(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Xi)))),s}function Zi(e){const t=mn(e);return BS[t]+e.slice(t.length)}function KS(e){return{top:0,right:0,bottom:0,left:0,...e}}function Dg(e){return typeof e!="number"?KS(e):{top:e,right:e,bottom:e,left:e}}function Ur(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Md(e,t,n){let{reference:o,floating:r}=e;const s=On(t),i=Hu(t),a=ju(i),l=mn(t),u=s==="y",c=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[a]/2-r[a]/2;let d;switch(l){case"top":d={x:c,y:o.y-r.height};break;case"bottom":d={x:c,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:f};break;case"left":d={x:o.x-r.width,y:f};break;default:d={x:o.x,y:o.y}}switch(Wt(t)){case"start":d[i]-=p*(n&&u?-1:1);break;case"end":d[i]+=p*(n&&u?-1:1);break}return d}async function GS(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:p=!1,padding:d=0}=Po(t,e),m=Dg(d),b=a[p?f==="floating"?"reference":"floating":f],v=Ur(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),h=f==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),w=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},_=Ur(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:h,offsetParent:y,strategy:l}):h);return{top:(v.top-_.top+m.top)/w.y,bottom:(_.bottom-v.bottom+m.bottom)/w.y,left:(v.left-_.left+m.left)/w.x,right:(_.right-v.right+m.right)/w.x}}const QS=50,JS=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:GS},l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:f}=Md(u,o,l),p=o,d=0;const m={};for(let g=0;g<s.length;g++){const b=s[g];if(!b)continue;const{name:v,fn:h}=b,{x:y,y:w,data:_,reset:k}=await h({x:c,y:f,initialPlacement:o,placement:p,strategy:r,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});c=y??c,f=w??f,m[v]={...m[v],..._},k&&d<QS&&(d++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(u=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):k.rects),{x:c,y:f}=Md(u,p,l)),g=-1)}return{x:c,y:f,placement:p,strategy:r,middlewareData:m}},YS=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Po(e,t)||{};if(u==null)return{};const f=Dg(c),p={x:n,y:o},d=Hu(r),m=ju(d),g=await i.getDimensions(u),b=d==="y",v=b?"top":"left",h=b?"bottom":"right",y=b?"clientHeight":"clientWidth",w=s.reference[m]+s.reference[d]-p[d]-s.floating[m],_=p[d]-s.reference[d],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let S=k?k[y]:0;(!S||!await(i.isElement==null?void 0:i.isElement(k)))&&(S=a.floating[y]||s.floating[m]);const P=w/2-_/2,$=S/2-g[m]/2-1,O=os(f[v],$),N=os(f[h],$),C=O,F=S-g[m]-N,I=S/2-g[m]/2+P,Q=Wc(C,I,F),W=!l.arrow&&Wt(r)!=null&&I!==Q&&s.reference[m]/2-(I<C?O:N)-g[m]/2<0,Y=W?I<C?I-C:I-F:0;return{[d]:p[d]+Y,data:{[d]:Q,centerOffset:I-Q-Y,...W&&{alignmentOffset:Y}},reset:W}}});function XS(e,t,n){return(e?[...n.filter(r=>Wt(r)===e),...n.filter(r=>Wt(r)!==e)]:n.filter(r=>mn(r)===r)).filter(r=>e?Wt(r)===e||(t?Xi(r)!==r:!1):!0)}const ZS=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r;const{rects:s,middlewareData:i,placement:a,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:f,allowedPlacements:p=Pd,autoAlignment:d=!0,...m}=Po(e,t),g=f!==void 0||p===Pd?XS(f||null,d,p):p,b=await l.detectOverflow(t,m),v=((n=i.autoPlacement)==null?void 0:n.index)||0,h=g[v];if(h==null)return{};const y=Ng(h,s,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==h)return{reset:{placement:g[0]}};const w=[b[mn(h)],b[y[0]],b[y[1]]],_=[...((o=i.autoPlacement)==null?void 0:o.overflows)||[],{placement:h,overflows:w}],k=g[v+1];if(k)return{data:{index:v+1,overflows:_},reset:{placement:k}};const S=_.map(O=>{const N=Wt(O.placement);return[O.placement,N&&c?O.overflows.slice(0,2).reduce((C,F)=>C+F,0):O.overflows[0],O.overflows]}).sort((O,N)=>O[1]-N[1]),$=((r=S.filter(O=>O[2].slice(0,Wt(O[0])?2:3).every(N=>N<=0))[0])==null?void 0:r[0])||S[0][0];return $!==a?{data:{index:v+1,overflows:_},reset:{placement:$}}:{}}}},ex=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...b}=Po(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=mn(r),h=On(a),y=mn(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=p||(y||!g?[Zi(a)]:US(a)),k=m!=="none";!p&&k&&_.push(...VS(a,g,m,w));const S=[a,..._],P=await l.detectOverflow(t,b),$=[];let O=((o=s.flip)==null?void 0:o.overflows)||[];if(c&&$.push(P[v]),f){const I=Ng(r,i,w);$.push(P[I[0]],P[I[1]])}if(O=[...O,{placement:r,overflows:$}],!$.every(I=>I<=0)){var N,C;const I=(((N=s.flip)==null?void 0:N.index)||0)+1,Q=S[I];if(Q&&(!(f==="alignment"?h!==On(Q):!1)||O.every(D=>On(D.placement)===h?D.overflows[0]>0:!0)))return{data:{index:I,overflows:O},reset:{placement:Q}};let W=(C=O.filter(Y=>Y.overflows[0]<=0).sort((Y,D)=>Y.overflows[1]-D.overflows[1])[0])==null?void 0:C.placement;if(!W)switch(d){case"bestFit":{var F;const Y=(F=O.filter(D=>{if(k){const oe=On(D.placement);return oe===h||oe==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(oe=>oe>0).reduce((oe,Re)=>oe+Re,0)]).sort((D,oe)=>D[1]-oe[1])[0])==null?void 0:F[0];Y&&(W=Y);break}case"initialPlacement":W=a;break}if(r!==W)return{reset:{placement:W}}}return{}}}},tx=new Set(["left","top"]);async function nx(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=mn(n),a=Wt(n),l=On(n)==="y",u=tx.has(i)?-1:1,c=s&&l?-1:1,f=Po(t,e);let{mainAxis:p,crossAxis:d,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof m=="number"&&(d=a==="end"?m*-1:m),l?{x:d*c,y:p*u}:{x:p*u,y:d*c}}const ox=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await nx(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},rx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:h,y}=v;return{x:h,y}}},...u}=Po(e,t),c={x:n,y:o},f=await s.detectOverflow(t,u),p=On(mn(r)),d=Mg(p);let m=c[d],g=c[p];if(i){const v=d==="y"?"top":"left",h=d==="y"?"bottom":"right",y=m+f[v],w=m-f[h];m=Wc(y,m,w)}if(a){const v=p==="y"?"top":"left",h=p==="y"?"bottom":"right",y=g+f[v],w=g-f[h];g=Wc(y,g,w)}const b=l.fn({...t,[d]:m,[p]:g});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[d]:i,[p]:a}}}}}},sx=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=Po(e,t),c=await i.detectOverflow(t,u),f=mn(r),p=Wt(r),d=On(r)==="y",{width:m,height:g}=s.floating;let b,v;f==="top"||f==="bottom"?(b=f,v=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=f,b=p==="end"?"top":"bottom");const h=g-c.top-c.bottom,y=m-c.left-c.right,w=os(g-c[b],h),_=os(m-c[v],y),k=!t.middlewareData.shift;let S=w,P=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=y),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=h),k&&!p){const O=go(c.left,0),N=go(c.right,0),C=go(c.top,0),F=go(c.bottom,0);d?P=m-2*(O!==0||N!==0?O+N:go(c.left,c.right)):S=g-2*(C!==0||F!==0?C+F:go(c.top,c.bottom))}await l({...t,availableWidth:P,availableHeight:S});const $=await i.getDimensions(a.floating);return m!==$.width||g!==$.height?{reset:{rects:!0}}:{}}}};function Dt(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fn(e){return Dt(e).getComputedStyle(e)}const Nd=Math.min,zr=Math.max,ea=Math.round;function Lg(e){const t=fn(e);let n=parseFloat(t.width),o=parseFloat(t.height);const r=e.offsetWidth,s=e.offsetHeight,i=ea(n)!==r||ea(o)!==s;return i&&(n=r,o=s),{width:n,height:o,fallback:i}}function oo(e){return Hg(e)?(e.nodeName||"").toLowerCase():""}let Us;function jg(){if(Us)return Us;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Us=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Us):navigator.userAgent}function dn(e){return e instanceof Dt(e).HTMLElement}function Zn(e){return e instanceof Dt(e).Element}function Hg(e){return e instanceof Dt(e).Node}function Dd(e){return typeof ShadowRoot>"u"?!1:e instanceof Dt(e).ShadowRoot||e instanceof ShadowRoot}function Ua(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function ix(e){return["table","td","th"].includes(oo(e))}function Vc(e){const t=/firefox/i.test(jg()),n=fn(e),o=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!o&&o!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((r=>n.willChange.includes(r)))||["paint","layout","strict","content"].some((r=>{const s=n.contain;return s!=null&&s.includes(r)}))}function Fg(){return!/^((?!chrome|android).)*safari/i.test(jg())}function Fu(e){return["html","body","#document"].includes(oo(e))}function Bg(e){return Zn(e)?e:e.contextElement}const Ug={x:1,y:1};function Jo(e){const t=Bg(e);if(!dn(t))return Ug;const n=t.getBoundingClientRect(),{width:o,height:r,fallback:s}=Lg(t);let i=(s?ea(n.width):n.width)/o,a=(s?ea(n.height):n.height)/r;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function rs(e,t,n,o){var r,s;t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Bg(e);let l=Ug;t&&(o?Zn(o)&&(l=Jo(o)):l=Jo(e));const u=a?Dt(a):window,c=!Fg()&&n;let f=(i.left+(c&&((r=u.visualViewport)==null?void 0:r.offsetLeft)||0))/l.x,p=(i.top+(c&&((s=u.visualViewport)==null?void 0:s.offsetTop)||0))/l.y,d=i.width/l.x,m=i.height/l.y;if(a){const g=Dt(a),b=o&&Zn(o)?Dt(o):o;let v=g.frameElement;for(;v&&o&&b!==g;){const h=Jo(v),y=v.getBoundingClientRect(),w=getComputedStyle(v);y.x+=(v.clientLeft+parseFloat(w.paddingLeft))*h.x,y.y+=(v.clientTop+parseFloat(w.paddingTop))*h.y,f*=h.x,p*=h.y,d*=h.x,m*=h.y,f+=y.x,p+=y.y,v=Dt(v).frameElement}}return{width:d,height:m,top:p,right:f+d,bottom:p+m,left:f,x:f,y:p}}function eo(e){return((Hg(e)?e.ownerDocument:e.document)||window.document).documentElement}function za(e){return Zn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function zg(e){return rs(eo(e)).left+za(e).scrollLeft}function ss(e){if(oo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dd(e)&&e.host||eo(e);return Dd(t)?t.host:t}function qg(e){const t=ss(e);return Fu(t)?t.ownerDocument.body:dn(t)&&Ua(t)?t:qg(t)}function ta(e,t){var n;t===void 0&&(t=[]);const o=qg(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),s=Dt(o);return r?t.concat(s,s.visualViewport||[],Ua(o)?o:[]):t.concat(o,ta(o))}function Ld(e,t,n){return t==="viewport"?Ur((function(o,r){const s=Dt(o),i=eo(o),a=s.visualViewport;let l=i.clientWidth,u=i.clientHeight,c=0,f=0;if(a){l=a.width,u=a.height;const p=Fg();(p||!p&&r==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:l,height:u,x:c,y:f}})(e,n)):Zn(t)?Ur((function(o,r){const s=rs(o,!0,r==="fixed"),i=s.top+o.clientTop,a=s.left+o.clientLeft,l=dn(o)?Jo(o):{x:1,y:1};return{width:o.clientWidth*l.x,height:o.clientHeight*l.y,x:a*l.x,y:i*l.y}})(t,n)):Ur((function(o){const r=eo(o),s=za(o),i=o.ownerDocument.body,a=zr(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),l=zr(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let u=-s.scrollLeft+zg(o);const c=-s.scrollTop;return fn(i).direction==="rtl"&&(u+=zr(r.clientWidth,i.clientWidth)-a),{width:a,height:l,x:u,y:c}})(eo(e)))}function jd(e){return dn(e)&&fn(e).position!=="fixed"?e.offsetParent:null}function Hd(e){const t=Dt(e);let n=jd(e);for(;n&&ix(n)&&fn(n).position==="static";)n=jd(n);return n&&(oo(n)==="html"||oo(n)==="body"&&fn(n).position==="static"&&!Vc(n))?t:n||(function(o){let r=ss(o);for(;dn(r)&&!Fu(r);){if(Vc(r))return r;r=ss(r)}return null})(e)||t}function ax(e,t,n){const o=dn(t),r=eo(t),s=rs(e,!0,n==="fixed",t);let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&n!=="fixed")if((oo(t)!=="body"||Ua(r))&&(i=za(t)),dn(t)){const l=rs(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else r&&(a.x=zg(r));return{x:s.left+i.scrollLeft-a.x,y:s.top+i.scrollTop-a.y,width:s.width,height:s.height}}const lx={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=n==="clippingAncestors"?(function(u,c){const f=c.get(u);if(f)return f;let p=ta(u).filter((b=>Zn(b)&&oo(b)!=="body")),d=null;const m=fn(u).position==="fixed";let g=m?ss(u):u;for(;Zn(g)&&!Fu(g);){const b=fn(g),v=Vc(g);(m?v||d:v||b.position!=="static"||!d||!["absolute","fixed"].includes(d.position))?d=b:p=p.filter((h=>h!==g)),g=ss(g)}return c.set(u,p),p})(t,this._c):[].concat(n),i=[...s,o],a=i[0],l=i.reduce(((u,c)=>{const f=Ld(t,c,r);return u.top=zr(f.top,u.top),u.right=Nd(f.right,u.right),u.bottom=Nd(f.bottom,u.bottom),u.left=zr(f.left,u.left),u}),Ld(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=dn(n),s=eo(n);if(n===s)return t;let i={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((r||!r&&o!=="fixed")&&((oo(n)!=="body"||Ua(s))&&(i=za(n)),dn(n))){const u=rs(n);a=Jo(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-i.scrollLeft*a.x+l.x,y:t.y*a.y-i.scrollTop*a.y+l.y}},isElement:Zn,getDimensions:function(e){return dn(e)?Lg(e):e.getBoundingClientRect()},getOffsetParent:Hd,getDocumentElement:eo,getScale:Jo,async getElementRects(e){let{reference:t,floating:n,strategy:o}=e;const r=this.getOffsetParent||Hd,s=this.getDimensions;return{reference:ax(t,await r(n),o),floating:{x:0,y:0,...await s(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>fn(e).direction==="rtl"},cx=(e,t,n)=>{const o=new Map,r={platform:lx,...n},s={...r.platform,_c:o};return JS(e,t,{...r,platform:s})};function Wg(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Wg(e[n],t[n]):e[n]=t[n])}const Vt={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function is(e,t){let n=Vt.themes[e]||{},o;do o=n[t],typeof o>"u"?n.$extend?n=Vt.themes[n.$extend]||{}:(n=null,o=Vt[t]):n=null;while(n);return o}function ux(e){const t=[e];let n=Vt.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Vt.themes[n.$extend]||{}):n=null;while(n);return t.map(o=>`v-popper--theme-${o}`)}function Fd(e){const t=[e];let n=Vt.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Vt.themes[n.$extend]||{}):n=null;while(n);return t}let sr=!1;if(typeof window<"u"){sr=!1;try{const e=Object.defineProperty({},"passive",{get(){sr=!0}});window.addEventListener("test",null,e)}catch{}}let Vg=!1;typeof window<"u"&&typeof navigator<"u"&&(Vg=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Kg=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Bd={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Ud={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function zd(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function El(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const zt=[];let uo=null;const qd={};function Wd(e){let t=qd[e];return t||(t=qd[e]=[]),t}let Kc=function(){};typeof window<"u"&&(Kc=window.Element);function Se(e){return function(t){return is(t.theme,e)}}const Sl="__floating-vue__popper",Gg=()=>ve({name:"VPopper",provide(){return{[Sl]:{parentPopper:this}}},inject:{[Sl]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Se("disabled")},positioningDisabled:{type:Boolean,default:Se("positioningDisabled")},placement:{type:String,default:Se("placement"),validator:e=>Kg.includes(e)},delay:{type:[String,Number,Object],default:Se("delay")},distance:{type:[Number,String],default:Se("distance")},skidding:{type:[Number,String],default:Se("skidding")},triggers:{type:Array,default:Se("triggers")},showTriggers:{type:[Array,Function],default:Se("showTriggers")},hideTriggers:{type:[Array,Function],default:Se("hideTriggers")},popperTriggers:{type:Array,default:Se("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Se("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Se("popperHideTriggers")},container:{type:[String,Object,Kc,Boolean],default:Se("container")},boundary:{type:[String,Kc],default:Se("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Se("strategy")},autoHide:{type:[Boolean,Function],default:Se("autoHide")},handleResize:{type:Boolean,default:Se("handleResize")},instantMove:{type:Boolean,default:Se("instantMove")},eagerMount:{type:Boolean,default:Se("eagerMount")},popperClass:{type:[String,Array,Object],default:Se("popperClass")},computeTransformOrigin:{type:Boolean,default:Se("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Se("autoMinSize")},autoSize:{type:[Boolean,String],default:Se("autoSize")},autoMaxSize:{type:Boolean,default:Se("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Se("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Se("preventOverflow")},overflowPadding:{type:[Number,String],default:Se("overflowPadding")},arrowPadding:{type:[Number,String],default:Se("arrowPadding")},arrowOverflow:{type:Boolean,default:Se("arrowOverflow")},flip:{type:Boolean,default:Se("flip")},shift:{type:Boolean,default:Se("shift")},shiftCrossAxis:{type:Boolean,default:Se("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Se("noAutoFocus")},disposeTimeout:{type:Number,default:Se("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Sl])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var o,r;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(ox({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(ZS({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(rx({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(ex({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(YS({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:r,middlewareData:s})=>{let i;const{centerOffset:a}=s.arrow;return o.startsWith("top")||o.startsWith("bottom")?i=Math.abs(a)>r.reference.width/2:i=Math.abs(a)>r.reference.height/2,{data:{overflow:i}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:r,placement:s,middlewareData:i})=>{var a;if((a=i.autoSize)!=null&&a.skip)return{};let l,u;return s.startsWith("top")||s.startsWith("bottom")?l=r.reference.width:u=r.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(sx({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:r})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const n=await cx(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),uo&&this.instantMove&&uo.instantMove&&uo!==this.parentPopper){uo.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(uo=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await El(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ta(this.$_referenceNode),...ta(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),o=n.parentNode.getBoundingClientRect(),r=t.x+t.width/2-(o.left+n.offsetLeft),s=t.y+t.height/2-(o.top+n.offsetTop);this.result.transformOrigin=`${r}px ${s}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<zt.length;n++)t=zt[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}zt.push(this),document.body.classList.add("v-popper--some-open");for(const t of Fd(this.theme))Wd(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await El(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,zd(zt,this),zt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Fd(this.theme)){const o=Wd(n);zd(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}uo===this&&(uo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await El(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,Bd,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Bd,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Ud,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Ud,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(o=>o.addEventListener(t,n,sr?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,o,r){let s=n;o!=null&&(s=typeof o=="function"?o(s):o),s.forEach(i=>{const a=t[i];a&&this.$_registerEventListeners(e,a,r)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:o,eventType:r,handler:s}=n;!e||e===r?o.forEach(i=>i.removeEventListener(r,s)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const o=n.getAttribute(e);o&&(n.removeAttribute(e),n.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const o=e[n];o==null?t.removeAttribute(n):t.setAttribute(n,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(qr>=e.left&&qr<=e.right&&Wr>=e.top&&Wr<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=qr-qn,o=Wr-Wn,r=t.left+t.width/2-qn+(t.top+t.height/2)-Wn+t.width+t.height,s=qn+n*r,i=Wn+o*r;return zs(qn,Wn,s,i,t.left,t.top,t.left,t.bottom)||zs(qn,Wn,s,i,t.left,t.top,t.right,t.top)||zs(qn,Wn,s,i,t.right,t.top,t.right,t.bottom)||zs(qn,Wn,s,i,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Vg){const e=sr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Vd(t,!0),e),document.addEventListener("touchend",t=>Kd(t,!0),e)}else window.addEventListener("mousedown",e=>Vd(e,!1),!0),window.addEventListener("click",e=>Kd(e,!1),!0);window.addEventListener("resize",dx)}function Vd(e,t){if(Vt.autoHideOnMousedown)Qg(e,t);else for(let n=0;n<zt.length;n++){const o=zt[n];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Kd(e,t){Vt.autoHideOnMousedown||Qg(e,t)}function Qg(e,t){const n={};for(let o=zt.length-1;o>=0;o--){const r=zt[o];try{const s=r.containsGlobalTarget=r.mouseDownContains||r.popperNode().contains(e.target);r.pendingHide=!1,requestAnimationFrame(()=>{if(r.pendingHide=!1,!n[r.randomId]&&Gd(r,s,e)){if(r.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&s){let a=r.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let i=r.parentPopper;for(;i&&Gd(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function Gd(e,t,n){return n.closeAllPopover||n.closePopover&&t||fx(e,n)&&!t}function fx(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function dx(){for(let e=0;e<zt.length;e++)zt[e].$_computePosition()}let qn=0,Wn=0,qr=0,Wr=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{qn=qr,Wn=Wr,qr=e.clientX,Wr=e.clientY},sr?{passive:!0}:void 0);function zs(e,t,n,o,r,s,i,a){const l=((i-r)*(t-s)-(a-s)*(e-r))/((a-s)*(n-e)-(i-r)*(o-t)),u=((n-e)*(t-s)-(o-t)*(e-r))/((a-s)*(n-e)-(i-r)*(o-t));return l>=0&&l<=1&&u>=0&&u<=1}const px={extends:Gg()},qa=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};function hx(e,t,n,o,r,s){return L(),Z("div",{ref:"reference",class:ke(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Pe(e.$slots,"default",hu(Ma(e.slotData)))],2)}const mx=qa(px,[["render",hx]]);function gx(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let _i;function Gc(){Gc.init||(Gc.init=!0,_i=gx()!==-1)}var Wa={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Gc(),lt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",_i&&this.$el.appendChild(e),e.data="about:blank",_i||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!_i&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const yx=ib();rb("data-v-b329ee4c");const vx={class:"resize-observer",tabindex:"-1"};sb();const bx=yx((e,t,n,o,r,s)=>(L(),ye("div",vx)));Wa.render=bx;Wa.__scopeId="data-v-b329ee4c";Wa.__file="src/components/ResizeObserver.vue";const Jg=(e="theme")=>({computed:{themeClass(){return ux(this[e])}}}),wx=ve({name:"VPopperContent",components:{ResizeObserver:Wa},mixins:[Jg()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),_x=["id","aria-hidden","tabindex","data-popper-placement"],Ex={ref:"inner",class:"v-popper__inner"},Sx=T("div",{class:"v-popper__arrow-outer"},null,-1),xx=T("div",{class:"v-popper__arrow-inner"},null,-1),kx=[Sx,xx];function Cx(e,t,n,o,r,s){const i=es("ResizeObserver");return L(),Z("div",{id:e.popperId,ref:"popover",class:ke(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:un(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Bm(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[T("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),T("div",{class:"v-popper__wrapper",style:un(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[T("div",Ex,[e.mounted?(L(),Z(Ee,{key:0},[T("div",null,[Pe(e.$slots,"default")]),e.handleResize?(L(),ye(i,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):Ue("",!0)],64)):Ue("",!0)],512),T("div",{ref:"arrow",class:"v-popper__arrow-container",style:un(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},kx,4)],4)],46,_x)}const Yg=qa(wx,[["render",Cx]]),Xg={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Qc=function(){};typeof window<"u"&&(Qc=window.Element);const Ax=ve({name:"VPopperWrapper",components:{Popper:mx,PopperContent:Yg},mixins:[Xg,Jg("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Qc,Boolean],default:void 0},boundary:{type:[String,Qc],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Tx(e,t,n,o,r,s){const i=es("PopperContent"),a=es("Popper");return L(),ye(a,_t({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:he(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:p,show:d,hide:m,handleResize:g,onResize:b,classes:v,result:h})=>[Pe(e.$slots,"default",{shown:u,show:d,hide:m}),ge(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:u,mounted:c,"skip-transition":f,"auto-hide":p,"handle-resize":g,classes:v,result:h,onHide:m,onResize:b},{default:he(()=>[Pe(e.$slots,"popper",{shown:u,hide:m})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Bu=qa(Ax,[["render",Tx]]),Zg={...Bu,name:"VDropdown",vPopperTheme:"dropdown"},$x={...Bu,name:"VMenu",vPopperTheme:"menu"},ey={...Bu,name:"VTooltip",vPopperTheme:"tooltip"},Ox=ve({name:"VTooltipDirective",components:{Popper:Gg(),PopperContent:Yg},mixins:[Xg],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>is(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>is(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(o=>this.onResult(t,o)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Px=["innerHTML"],Rx=["textContent"];function Ix(e,t,n,o,r,s){const i=es("PopperContent"),a=es("Popper");return L(),ye(a,_t({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:he(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:p,hide:d,handleResize:m,onResize:g,classes:b,result:v})=>[ge(i,{ref:"popperContent",class:ke({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:u,mounted:c,"skip-transition":f,"auto-hide":p,"handle-resize":m,classes:b,result:v,onHide:d,onResize:g},{default:he(()=>[e.html?(L(),Z("div",{key:0,innerHTML:e.finalContent},null,8,Px)):(L(),Z("div",{key:1,textContent:de(e.finalContent)},null,8,Rx))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const Mx=qa(Ox,[["render",Ix]]),ty="v-popper--has-tooltip";function Nx(e,t){let n=e.placement;if(!n&&t)for(const o of Kg)t[o]&&(n=o);return n||(n=is(e.theme||"tooltip","placement")),n}function ny(e,t,n){let o;const r=typeof t;return r==="string"?o={content:t}:t&&r==="object"?o=t:o={content:!1},o.placement=Nx(o,n),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let xl,as,Dx=0;function Lx(){if(xl)return;as=B([]),xl=zm({name:"VTooltipDirectiveApp",setup(){return{directives:as}},render(){return this.directives.map(t=>st(Mx,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),xl.mount(e)}function jx(e,t,n){Lx();const o=B(ny(e,t,n)),r=B(!1),s={id:Dx++,options:o,shown:r};return as.value.push(s),e.classList&&e.classList.add(ty),e.$_popper={options:o,item:s,show(){r.value=!0},hide(){r.value=!1}}}function oy(e){if(e.$_popper){const t=as.value.indexOf(e.$_popper.item);t!==-1&&as.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(ty)}function Qd(e,{value:t,modifiers:n}){const o=ny(e,t,n);if(!o.content||is(o.theme||"tooltip","disabled"))oy(e);else{let r;e.$_popper?(r=e.$_popper,r.options.value=o):r=jx(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?r.show():r.hide())}}const Hx={beforeMount:Qd,updated:Qd,beforeUnmount(e){oy(e)}};function Jd(e){e.addEventListener("mousedown",na),e.addEventListener("click",na),e.addEventListener("touchstart",ry,sr?{passive:!0}:!1)}function Yd(e){e.removeEventListener("mousedown",na),e.removeEventListener("click",na),e.removeEventListener("touchstart",ry),e.removeEventListener("touchend",sy),e.removeEventListener("touchcancel",iy)}function na(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function ry(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",sy),t.addEventListener("touchcancel",iy)}}function sy(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-o.screenY)<20&&Math.abs(n.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function iy(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const Fx={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&Jd(e)},updated(e,{value:t,oldValue:n,modifiers:o}){e.$_closePopoverModifiers=o,t!==n&&(typeof t>"u"||t?Jd(e):Yd(e))},beforeUnmount(e){Yd(e)}},SR=Zg,Bx=ey;function Ux(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Wg(Vt,t),e.directive("tooltip",Hx),e.directive("close-popper",Fx),e.component("VTooltip",ey),e.component("VDropdown",Zg),e.component("VMenu",$x))}const zx={version:"5.2.2",install:Ux,options:Vt},qx=yn(e=>{e.vueApp.use(zx,{overflowPadding:20})}),Wx=[X1,oE,OS,PS,RS,MS,NS,jS,HS,qx],ay=(e="RouteProvider")=>ve({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,o=t.route,r={};for(const s in t.route)Object.defineProperty(r,s,{get:()=>n===t.renderKey?t.route[s]:o[s],enumerable:!0});return So(ja,ln(r)),()=>t.vnode?st(t.vnode,{ref:t.vnodeRef}):t.vnode}}),Vx=ay(),Xd=new WeakMap,Kx=ve({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:o}){const r=nt(),s=B(),i=ht(ja,null);let a;o({pageRef:s});const l=ht(J0,null);let u;const c=r.deferHydration();let f=!1,p=!1,d=0;if(r.isHydrating){const g=r.hooks.hookOnce("app:error",c),b=kt().beforeEach(()=>{g(),b()})}e.pageKey&&Fe(()=>e.pageKey,(g,b)=>{g!==b&&r.callHook("page:loading:start")});let m=!1;{const g=kt().beforeResolve(()=>{m=!1});fr(()=>{g(),c()})}return()=>st(Og,{name:e.name,route:e.route,...t},{default:g=>{const b=Gx(i,g.route,g.Component),v=i&&i.matched.length===g.route.matched.length;if(!g.Component){if(u&&!v&&!kl(u))return u;c();return}if(u&&l&&!kl(u)&&!l.isCurrent(g.route))return u;if(b&&i&&(!l||l?.isCurrent(i)))return(v||u)&&!kl(u)?u:null;const h=zc(g,e.pageKey),y=Qx(i,g.route,g.Component);!r.isHydrating&&a===h&&!y&<(()=>{m||(m=!0,r.callHook("page:loading:end"))}),f&&a!==h&&p&&d++,a=h;const w=!!(e.transition??g.route.meta.pageTransition??Zf),_=w&&ES([e.transition,g.route.meta.pageTransition,Zf,{onAfterLeave(){r["~transitionFinish"]?.(),delete r["~transitionFinish"],delete r["~transitionPromise"],r.callHook("page:transition:finish",g.Component)}}]),k=e.keepalive??g.route.meta.keepalive??D0;return u=yS(w&&_,pS(k,st(_m,{key:d,suspensible:!0,onPending:()=>{f=!0,w&&!r["~transitionPromise"]&&(r["~transitionPromise"]=new Promise(S=>{r["~transitionFinish"]=S})),r.callHook("page:start",g.Component)},onResolve:async()=>{f=!1,p=!0;try{await lt(),r._route.sync?.(),await r.callHook("page:finish",g.Component),!m&&!y&&(m=!0,await r.callHook("page:loading:end"))}finally{c()}}},{default:()=>{const S={key:h||void 0,vnode:n.default?Jx(n.default,g):g.Component,route:g.route,renderKey:h||void 0,trackRootNodes:w,vnodeRef:s};if(!k)return st(Vx,S);const P=g.Component.type,$=P;let O=Xd.get($);return O||(O=ay(P.name||P.__name),Xd.set($,O)),st(O,S)}}))).default(),u}})}});function Gx(e,t,n){if(!e)return!1;const o=t.matched.findIndex(i=>i.components?.default===n?.type);if(o===-1)return!1;const r=t.matched.slice(0,o).filter(i=>i.components?.default);if(!r.length)return!1;const s=e.matched.filter(i=>i.components?.default);return r.some((i,a)=>i.components?.default!==s[a]?.components?.default)||n&&zc({route:t,Component:n})!==zc({route:e,Component:n})}function Qx(e,t,n){return e?t.matched.findIndex(r=>r.components?.default===n?.type)<t.matched.length-1:!1}function Jx(e,t){const n=e(t);return n.length===1?st(n[0]):st(Ee,void 0,n)}function kl(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}const Cl=new WeakMap,Yx=(...e)=>{var t;const n=e[0],o=(t=Ze())===null||t===void 0?void 0:t.proxy,r=o??_a();if(r==null&&!ur())throw new Error("injectLocal must be called in setup");return r&&Cl.has(r)&&n in Cl.get(r)?Cl.get(r)[n]:ht(...e)},ly=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Xx=Object.prototype.toString,Zx=e=>Xx.call(e)==="[object Object]",Bt=()=>{},ek=tk();function tk(){var e,t,n;return ly&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function cy(...e){if(e.length!==1)return jh(...e);const t=e[0];return typeof t=="function"?Mi(Dh(()=>({get:t,set:Bt}))):B(t)}function Uu(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const uy=e=>e();function nk(e,t={}){let n,o,r=Bt;const s=l=>{clearTimeout(l),r(),r=Bt};let i;return l=>{const u=Ie(e),c=Ie(t.maxWait);return n&&s(n),u<=0||c!==void 0&&c<=0?(o&&(s(o),o=void 0),Promise.resolve(l())):new Promise((f,p)=>{r=t.rejectOnCancel?p:f,i=l,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=void 0,f(i())},c)),n=setTimeout(()=>{o&&s(o),o=void 0,f(l())},u)})}}function ok(...e){let t=0,n,o=!0,r=Bt,s,i,a,l,u;!Le(e[0])&&typeof e[0]=="object"?{delay:i,trailing:a=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[i,a=!0,l=!0,u=!1]=e;const c=()=>{n&&(clearTimeout(n),n=void 0,r(),r=Bt)};return p=>{const d=Ie(i),m=Date.now()-t,g=()=>s=p();return c(),d<=0?(t=Date.now(),g()):(m>d?(t=Date.now(),(l||!o)&&g()):a&&(s=new Promise((b,v)=>{r=u?v:b,n=setTimeout(()=>{t=Date.now(),o=!0,b(g()),c()},Math.max(0,d-m))})),!l&&!n&&(n=setTimeout(()=>o=!0,d)),o=!1,s)}}function rk(e=uy,t={}){const{initialState:n="active"}=t,o=cy(n==="active");function r(){o.value=!1}function s(){o.value=!0}return{isActive:qv(o),pause:r,resume:s,eventFilter:(...a)=>{o.value&&e(...a)}}}function Zd(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Al(e){return Array.isArray(e)?e:[e]}function sk(e){return Ze()}function fy(e,t=200,n={}){return Uu(nk(t,n),e)}function ik(e,t=200,n=!1,o=!0,r=!1){return Uu(ok(t,n,o,r),e)}function dy(e,t=200,n=!0,o=!0){if(t<=0)return e;const r=B(Ie(e)),s=ik(()=>{r.value=e.value},t,n,o);return Fe(e,()=>s()),r}function ak(e,t,n={}){const{eventFilter:o=uy,...r}=n;return Fe(e,Uu(o,t),r)}function lk(e,t,n={}){const{eventFilter:o,initialState:r="active",...s}=n,{eventFilter:i,pause:a,resume:l,isActive:u}=rk(o,{initialState:r});return{stop:ak(e,t,{...s,eventFilter:i}),pause:a,resume:l,isActive:u}}function py(e,t=!0,n){sk()?ro(e,n):t?e():lt(e)}function ck(e,t,n){return Fe(e,t,{...n,immediate:!0})}const Pn=ly?window:void 0;function Uo(e){var t;const n=Ie(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function In(...e){const t=(o,r,s,i)=>(o.addEventListener(r,s,i),()=>o.removeEventListener(r,s,i)),n=M(()=>{const o=Al(Ie(e[0])).filter(r=>r!=null);return o.every(r=>typeof r!="string")?o:void 0});return ck(()=>{var o,r;return[(o=(r=n.value)===null||r===void 0?void 0:r.map(s=>Uo(s)))!==null&&o!==void 0?o:[Pn].filter(s=>s!=null),Al(Ie(n.value?e[1]:e[0])),Al(A(n.value?e[2]:e[1])),Ie(n.value?e[3]:e[2])]},([o,r,s,i],a,l)=>{if(!o?.length||!r?.length||!s?.length)return;const u=Zx(i)?{...i}:i,c=o.flatMap(f=>r.flatMap(p=>s.map(d=>t(f,p,d,u))));l(()=>{c.forEach(f=>f())})},{flush:"post"})}let ep=!1;function xR(e,t,n={}){const{window:o=Pn,ignore:r=[],capture:s=!0,detectIframe:i=!1,controls:a=!1}=n;if(!o)return a?{stop:Bt,cancel:Bt,trigger:Bt}:Bt;if(ek&&!ep){ep=!0;const b={passive:!0};Array.from(o.document.body.children).forEach(v=>v.addEventListener("click",Bt,b)),o.document.documentElement.addEventListener("click",Bt,b)}let l=!0;const u=b=>Ie(r).some(v=>{if(typeof v=="string")return Array.from(o.document.querySelectorAll(v)).some(h=>h===b.target||b.composedPath().includes(h));{const h=Uo(v);return h&&(b.target===h||b.composedPath().includes(h))}});function c(b){const v=Ie(b);return v&&v.$.subTree.shapeFlag===16}function f(b,v){const h=Ie(b),y=h.$.subTree&&h.$.subTree.children;return y==null||!Array.isArray(y)?!1:y.some(w=>w.el===v.target||v.composedPath().includes(w.el))}const p=b=>{const v=Uo(e);if(b.target!=null&&!(!(v instanceof Element)&&c(e)&&f(e,b))&&!(!v||v===b.target||b.composedPath().includes(v))){if("detail"in b&&b.detail===0&&(l=!u(b)),!l){l=!0;return}t(b)}};let d=!1;const m=[In(o,"click",b=>{d||(d=!0,setTimeout(()=>{d=!1},0),p(b))},{passive:!0,capture:s}),In(o,"pointerdown",b=>{const v=Uo(e);l=!u(b)&&!!(v&&!b.composedPath().includes(v))},{passive:!0}),i&&In(o,"blur",b=>{setTimeout(()=>{const v=Uo(e);let h=o.document.activeElement;for(;h?.shadowRoot;)h=h.shadowRoot.activeElement;h?.tagName==="IFRAME"&&!v?.contains(o.document.activeElement)&&t(b)},0)},{passive:!0})].filter(Boolean),g=()=>m.forEach(b=>b());return a?{stop:g,cancel:()=>{l=!1},trigger:b=>{l=!0,p(b),l=!1}}:g}function uk(){const e=at(!1),t=Ze();return t&&ro(()=>{e.value=!0},t),e}function fk(e){const t=uk();return M(()=>(t.value,!!e()))}const dk=Symbol("vueuse-ssr-width");function pk(){const e=ur()?Yx(dk,null):null;return typeof e=="number"?e:void 0}function hk(e,t={}){const{window:n=Pn,ssrWidth:o=pk()}=t,r=fk(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),s=at(typeof o=="number"),i=at(),a=at(!1),l=u=>{a.value=u.matches};return Dn(()=>{if(s.value){s.value=!r.value,a.value=Ie(e).split(",").some(u=>{const c=u.includes("not all"),f=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),p=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let d=!!(f||p);return f&&d&&(d=o>=Zd(f[1])),p&&d&&(d=o<=Zd(p[1])),c?!d:d});return}r.value&&(i.value=n.matchMedia(Ie(e)),a.value=i.value.matches)}),In(i,"change",l,{passive:!0}),M(()=>a.value)}const qs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ws="__vueuse_ssr_handlers__",mk=gk();function gk(){return Ws in qs||(qs[Ws]=qs[Ws]||{}),qs[Ws]}function hy(e,t){return mk[e]||t}function yk(e){return hk("(prefers-color-scheme: dark)",e)}function vk(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const bk={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},tp="vueuse-storage";function my(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=Pn,eventFilter:p,onError:d=I=>{console.error(I)},initOnMounted:m}=o,g=(c?at:B)(typeof t=="function"?t():t),b=M(()=>Ie(e));if(!n)try{n=hy("getDefaultStorage",()=>Pn?.localStorage)()}catch(I){d(I)}if(!n)return g;const v=Ie(t),h=vk(v),y=(r=o.serializer)!==null&&r!==void 0?r:bk[h],{pause:w,resume:_}=lk(g,I=>O(I),{flush:s,deep:i,eventFilter:p});Fe(b,()=>C(),{flush:s});let k=!1;const S=I=>{m&&!k||C(I)},P=I=>{m&&!k||F(I)};f&&a&&(n instanceof Storage?In(f,"storage",S,{passive:!0}):In(f,tp,P)),m?py(()=>{k=!0,C()}):C();function $(I,Q){if(f){const W={key:b.value,oldValue:I,newValue:Q,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",W):new CustomEvent(tp,{detail:W}))}}function O(I){try{const Q=n.getItem(b.value);if(I==null)$(Q,null),n.removeItem(b.value);else{const W=y.write(I);Q!==W&&(n.setItem(b.value,W),$(Q,W))}}catch(Q){d(Q)}}function N(I){const Q=I?I.newValue:n.getItem(b.value);if(Q==null)return l&&v!=null&&n.setItem(b.value,y.write(v)),v;if(!I&&u){const W=y.read(Q);return typeof u=="function"?u(W,v):h==="object"&&!Array.isArray(W)?{...v,...W}:W}else return typeof Q!="string"?Q:y.read(Q)}function C(I){if(!(I&&I.storageArea!==n)){if(I&&I.key==null){g.value=v;return}if(!(I&&I.key!==b.value)){w();try{const Q=y.write(g.value);(I===void 0||I?.newValue!==Q)&&(g.value=N(I))}catch(Q){d(Q)}finally{I?lt(_):_()}}}}function F(I){C(I.detail)}return g}const wk="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function _k(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=Pn,storage:s,storageKey:i="vueuse-color-scheme",listenToStorageChanges:a=!0,storageRef:l,emitAuto:u,disableTransition:c=!0}=e,f={auto:"",light:"light",dark:"dark",...e.modes||{}},p=yk({window:r}),d=M(()=>p.value?"dark":"light"),m=l||(i==null?cy(o):my(i,o,s,{window:r,listenToStorageChanges:a})),g=M(()=>m.value==="auto"?d.value:m.value),b=hy("updateHTMLAttrs",(w,_,k)=>{const S=typeof w=="string"?r?.document.querySelector(w):Uo(w);if(!S)return;const P=new Set,$=new Set;let O=null;if(_==="class"){const C=k.split(/\s/g);Object.values(f).flatMap(F=>(F||"").split(/\s/g)).filter(Boolean).forEach(F=>{C.includes(F)?P.add(F):$.add(F)})}else O={key:_,value:k};if(P.size===0&&$.size===0&&O===null)return;let N;c&&(N=r.document.createElement("style"),N.appendChild(document.createTextNode(wk)),r.document.head.appendChild(N));for(const C of P)S.classList.add(C);for(const C of $)S.classList.remove(C);O&&S.setAttribute(O.key,O.value),c&&(r.getComputedStyle(N).opacity,document.head.removeChild(N))});function v(w){var _;b(t,n,(_=f[w])!==null&&_!==void 0?_:w)}function h(w){e.onChanged?e.onChanged(w,v):v(w)}Fe(g,h,{flush:"post",immediate:!0}),py(()=>h(g.value));const y=M({get(){return u?m.value:g.value},set(w){m.value=w}});return Object.assign(y,{store:m,system:d,state:g})}function gy(e={}){const{valueDark:t="dark",valueLight:n=""}=e,o=_k({...e,onChanged:(s,i)=>{var a;e.onChanged?(a=e.onChanged)===null||a===void 0||a.call(e,s==="dark",i,s):i(s)},modes:{dark:t,light:n}}),r=M(()=>o.system.value);return M({get(){return o.value==="dark"},set(s){const i=s?"dark":"light";r.value===i?o.value="auto":o.value=i}})}function Ek(e,t,n={}){const{window:o=Pn}=n;return my(e,t,o?.localStorage,n)}const Tl=B(!1);let np=!1;function op(e){return!e||!(e instanceof HTMLElement)?!1:e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}function yy(){return typeof document<"u"&&!np&&(np=!0,In(document,"focusin",e=>{Tl.value=op(e.target)}),In(document,"focusout",e=>{Tl.value=op(e.relatedTarget)})),Tl}const Sk=["===","!==","==","!=","<=",">=","&&","||","<",">","+","-","*","/","%","!"],xk=/[a-z_$]/i,kk=/[\w$.:]/,Vs=/\d/,Ck=/\s/;function Ak(e){const t=[];let n=0;for(;n<e.length;){const o=e[n];if(Ck.test(o)){n++;continue}if(o==="("){t.push({type:"lparen"}),n++;continue}if(o===")"){t.push({type:"rparen"}),n++;continue}let r=!1;for(const s of Sk)if(e.startsWith(s,n)){t.push({type:"op",value:s}),n+=s.length,r=!0;break}if(!r){if(Vs.test(o)){let s=n;for(;s<e.length&&Vs.test(e[s]);)s++;if(e[s]==="."&&s+1<e.length&&Vs.test(e[s+1]))for(s++;s<e.length&&Vs.test(e[s]);)s++;t.push({type:"number",value:Number(e.slice(n,s))}),n=s;continue}if(o==='"'||o==="'"){const s=o;let i=n+1,a="";for(;i<e.length&&e[i]!==s;)if(e[i]==="\\"&&i+1<e.length){const l=e[i+1];a+=l==="n"?`
|
|
5
|
+
`:l==="t"?" ":l,i+=2}else a+=e[i],i++;if(i>=e.length)throw new Error(`Unterminated string literal at position ${n}`);i++,t.push({type:"string",value:a}),n=i;continue}if(xk.test(o)){let s=n;for(;s<e.length&&kk.test(e[s]);)s++;const i=e.slice(n,s);i==="true"?t.push({type:"bool",value:!0}):i==="false"?t.push({type:"bool",value:!1}):t.push({type:"ident",value:i}),n=s;continue}throw new Error(`Unexpected character "${o}" at position ${n}`)}}return t.push({type:"eof"}),t}function Tk(e){const t=Ak(e);let n=0;const o=()=>t[n],r=()=>t[n++],s=h=>{const y=o();return y.type==="op"&&y.value===h},i=()=>{const h=r();if(h.type!=="op")throw new Error(`internal: expected operator token, got ${br(h)}`);return h.value};function a(){let h=l();for(;s("||");)r(),h={type:"binary",op:"||",left:h,right:l()};return h}function l(){let h=u();for(;s("&&");)r(),h={type:"binary",op:"&&",left:h,right:u()};return h}function u(){let h=c();for(;s("===")||s("!==")||s("==")||s("!=");){const y=i(),w=y==="=="||y==="!="?g():c();h={type:"binary",op:y,left:h,right:w}}return h}function c(){let h=f();for(;s("<=")||s(">=")||s("<")||s(">");)h={type:"binary",op:i(),left:h,right:f()};return h}function f(){let h=p();for(;s("+")||s("-");)h={type:"binary",op:i(),left:h,right:p()};return h}function p(){let h=d();for(;s("*")||s("/")||s("%");)h={type:"binary",op:i(),left:h,right:d()};return h}function d(){return s("!")||s("-")||s("+")?{type:"unary",op:i(),operand:d()}:m()}function m(){const h=o();if(h.type==="number"||h.type==="string"||h.type==="bool")return r(),{type:"literal",value:h.value};if(h.type==="ident")return r(),{type:"key",key:h.value};if(h.type==="lparen"){r();const y=a(),w=o();if(w.type!=="rparen")throw new Error(`Expected ")" but got ${br(w)}`);return r(),y}throw new Error(`Unexpected token: ${br(h)}`)}function g(){const h=o();if(h.type==="string")return r(),{type:"literal",value:h.value};if(h.type==="number")return r(),{type:"literal",value:String(h.value)};if(h.type==="bool")return r(),{type:"literal",value:String(h.value)};if(h.type==="ident")return r(),{type:"literal",value:h.value};throw new Error(`Expected value literal or identifier on right side of equality, got ${br(h)}`)}const b=a(),v=o();if(v.type!=="eof")throw new Error(`Unexpected token: ${br(v)}`);return b}function br(e){switch(e.type){case"eof":return"end of expression";case"lparen":return'"("';case"rparen":return'")"';case"op":case"ident":case"string":return`"${e.value}"`;case"number":case"bool":return`"${String(e.value)}"`}}function $k(e,t,n={}){const{strict:o=!1}=n;return!!Qn(e,t,o)}function Qn(e,t,n){switch(e.type){case"literal":return e.value;case"key":return Rk(e.key,t,n);case"unary":return Ok(e.op,Qn(e.operand,t,n));case"binary":return Pk(e,t,n)}}function Ok(e,t){switch(e){case"!":return!t;case"-":return-t;case"+":return+t}}function Pk(e,t,n){const{op:o}=e;if(o==="&&"){const i=Qn(e.left,t,n);return i&&Qn(e.right,t,n)}if(o==="||")return Qn(e.left,t,n)||Qn(e.right,t,n);const r=Qn(e.left,t,n),s=Qn(e.right,t,n);switch(o){case"==":return String(r)===String(s);case"!=":return String(r)!==String(s);case"===":return r===s;case"!==":return r!==s;case"<":return r<s;case">":return r>s;case"<=":return r<=s;case">=":return r>=s;case"+":return r+s;case"-":return r-s;case"*":return r*s;case"/":return r/s;case"%":return r%s}}function Rk(e,t,n){const{found:o,value:r}=Ik(e,t);if(!o&&n)throw new Error(`Unknown context key: "${e}"`);return r}function Ik(e,t){if(e in t)return{found:!0,value:t[e]};const n=e.includes(".")?".":e.includes(":")?":":null;if(n){const o=e.split(n);let r=t;for(const s of o){if(r==null||typeof r!="object")return{found:!1,value:void 0};const i=r;if(!(s in i))return{found:!1,value:void 0};r=i[s]}return{found:!0,value:r}}return{found:!1,value:void 0}}const rp=new Map,vy=B(null);function Va(){return vy}function Mk(){return{payload:at(null),syncing:B(!1),executing:B(!1),progress:at(null),queueOpen:B(!1),executeConfirmOpen:B(!1),selectedNumber:B(null),lastError:B(null),filters:jt({kind:"issue",search:""})}}function Nk(e){let t=rp.get(e);return t||(t=Mk(),rp.set(e,t)),t}function Ne(e){const t=e??vy.value??"__default__",n=Nk(t);return{payload:n.payload,syncing:n.syncing,executing:n.executing,progress:n.progress,queueOpen:n.queueOpen,executeConfirmOpen:n.executeConfirmOpen,selectedNumber:n.selectedNumber,lastError:n.lastError,filters:n.filters,setPayload(o){n.payload.value=o},patchSyncState(o){n.payload.value&&(n.payload.value={...n.payload.value,syncState:o})},patchQueue(o){n.payload.value&&(n.payload.value={...n.payload.value,queue:o})},patchRemote(o){n.payload.value&&(n.payload.value={...n.payload.value,remote:o})},setSyncing(o){n.syncing.value=o},setExecuting(o){n.executing.value=o},setProgress(o){n.progress.value=o},setError(o){n.lastError.value=o},selectItem(o){n.selectedNumber.value=o},openQueue(){n.queueOpen.value=!0},closeQueue(){n.queueOpen.value=!1},askExecute(){n.queueOpen.value=!0,n.executeConfirmOpen.value=!0}}}function sp(e,...t){return typeof e=="function"?e(...t):e}function Dk(e){const t=`[${e.name}] ${e.message}`,n=[];return e.fix&&n.push(`fix: ${e.fix}`),e.sources?.length&&n.push(`sources: ${e.sources.join(", ")}`),e.docs&&n.push(`see: ${e.docs}`),n.length===0?t:[t,...n.map((o,r)=>`${r<n.length-1?"├▶":"╰▶"} ${o}`)].join(`
|
|
6
|
+
`)}function Lk(e,{method:t="warn"}={}){console[t](Dk(e))}const jk=Error.captureStackTrace;function Hk(e){return e.split(`
|
|
7
|
+
`).filter(t=>!t.trimStart().startsWith("at ")||!t.includes("/node_modules/")&&!t.includes("(node:")).join(`
|
|
8
|
+
`)}var Fk=class by extends Error{name="Diagnostic";docs;fix;sources;get why(){return this.message}constructor(t,n=by){super(t.why,{cause:t.cause}),this.fix=t.fix,this.docs=t.docs,this.sources=t.sources,jk?.(this,n),this.stack&&(this.stack=Hk(this.stack))}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause}}devOnly};function wy(e){const t=e.reporters??[],n={},{docsBase:o}=e;for(const r of Object.keys(e.codes)){const s=e.codes[r],i=s.docs===!1?void 0:s.docs||(typeof o=="string"?`${o}/${r.toLowerCase()}`:o?.(r)),a=(l={},u={})=>{const c=new Fk({why:sp(s.why,l),fix:sp(s.fix,l),docs:i,cause:l.cause,sources:l.sources},a);c.name=r;for(const f of t)f(c,u);return c};n[r]=a}return n}const Bk=e=>{console.warn("[nostics]: import.meta.hot.send() is not available. This must be running on Vite.")},Uk=e=>Lk(e,{method:"error"}),oa=wy({docsBase:e=>`https://github.com/antfu/ghfs/blob/main/docs/errors/${e.toLowerCase()}.md`,codes:{GHFS0900:{why:e=>`saveUiState failed: ${e.detail}`},GHFS0901:{why:e=>`shortcut ${e.shortcut} failed: ${e.detail}`},GHFS0950:{why:e=>`uiState hydrate skipped: ${e.detail}`}},reporters:[Uk,Bk]});function zk(e){return typeof e=="string"?`'${e}'`:new qk().serialize(e)}const qk=(function(){class e{#e=new Map;compare(n,o){const r=typeof n,s=typeof o;return r==="string"&&s==="string"?n.localeCompare(o):r==="number"&&s==="number"?n-o:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(o,!0))}serialize(n,o){if(n===null)return"null";switch(typeof n){case"string":return o?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const o=Object.prototype.toString.call(n);if(o!=="[object Object]")return this.serializeBuiltInType(o.length<10?`unknown:${o}`:o.slice(8,-1),n);const r=n.constructor,s=r===Object||r===void 0?"":r.name;if(s!==""&&globalThis[s]===r)return this.serializeBuiltInType(s,n);if(typeof n.toJSON=="function"){const i=n.toJSON();return s+(i!==null&&typeof i=="object"?this.$object(i):`(${this.serialize(i)})`)}return this.serializeObjectEntries(s,Object.entries(n))}serializeBuiltInType(n,o){const r=this["$"+n];if(r)return r.call(this,o);if(typeof o?.entries=="function")return this.serializeObjectEntries(n,o.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,o){const r=Array.from(o).sort((i,a)=>this.compare(i[0],a[0]));let s=`${n}{`;for(let i=0;i<r.length;i++){const[a,l]=r[i];s+=`${this.serialize(a,!0)}:${this.serialize(l)}`,i<r.length-1&&(s+=",")}return s+"}"}$object(n){let o=this.#e.get(n);return o===void 0&&(this.#e.set(n,`#${this.#e.size}`),o=this.serializeObject(n),this.#e.set(n,o)),o}$function(n){const o=Function.prototype.toString.call(n);return o.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${o.replace(/\s*\n\s*/g,"")}`}$Array(n){let o="[";for(let r=0;r<n.length;r++)o+=this.serialize(n[r]),r<n.length-1&&(o+=",");return o+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((o,r)=>this.compare(o,r)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(n){return`${t}(${n})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join("n,")}${n.length>0?"n":""}]`};return e})(),Wk=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Vk=[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],Kk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",fo=[];var Gk=class{_data=new Ks;_hash=new Ks([...Wk]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);const 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){const n=this._hash.words;let o=n[0],r=n[1],s=n[2],i=n[3],a=n[4],l=n[5],u=n[6],c=n[7];for(let f=0;f<64;f++){if(f<16)fo[f]=e[t+f]|0;else{const h=fo[f-15],y=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,w=fo[f-2],_=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;fo[f]=y+fo[f-7]+_+fo[f-16]}const p=a&l^~a&u,d=o&r^o&s^r&s,m=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),g=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),b=c+g+p+Vk[f]+fo[f],v=m+d;c=u,u=l,l=a,a=i+b|0,i=s,s=r,r=o,o=b+v|0}n[0]=n[0]+o|0,n[1]=n[1]+r|0,n[2]=n[2]+s|0,n[3]=n[3]+i|0,n[4]=n[4]+a|0,n[5]=n[5]+l|0,n[6]=n[6]+u|0,n[7]=n[7]+c|0}_append(e){typeof e=="string"&&(e=Ks.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;e?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const o=n*16,r=Math.min(o*4,this._data.sigBytes);if(o){for(let s=0;s<o;s+=16)this._doProcessBlock(this._data.words,s);t=this._data.words.splice(0,o),this._data.sigBytes-=r}return new Ks(t,r)}},Ks=class _y{words;sigBytes;constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}static fromUtf8(t){const n=unescape(encodeURIComponent(t)),o=n.length,r=[];for(let s=0;s<o;s++)r[s>>>2]|=(n.charCodeAt(s)&255)<<24-s%4*8;return new _y(r,o)}toBase64(){const t=[];for(let n=0;n<this.sigBytes;n+=3){const o=this.words[n>>>2]>>>24-n%4*8&255,r=this.words[n+1>>>2]>>>24-(n+1)%4*8&255,s=this.words[n+2>>>2]>>>24-(n+2)%4*8&255,i=o<<16|r<<8|s;for(let a=0;a<4&&n*8+a*6<this.sigBytes*8;a++)t.push(Kk.charAt(i>>>6*(3-a)&63))}return t.join("")}concat(t){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 n=0;n<t.sigBytes;n++){const o=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=o<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];this.sigBytes+=t.sigBytes}};function Qk(e){return new Gk().finalize(e).toBase64()}function Jk(e){return Qk(zk(e))}function Ey(e){return Jk(e)}function Xt(e,t){const n=`\x1B[${e}m`,o=`\x1B[${t}m`;return((r,...s)=>{if(Array.isArray(r)&&"raw"in r){const i=r;let a="";for(let l=0;l<i.length;l++)a+=i[l],l<s.length&&(a+=String(s[l]));return`${n}${a}${o}`}return`${n}${String(r)}${o}`})}const Yk={blue:Xt(34,39),cyan:Xt(36,39),gray:Xt(90,39),green:Xt(32,39),red:Xt(31,39),yellow:Xt(33,39),bold:Xt(1,22),dim:Xt(2,22),reset:Xt(0,0),underline:Xt(4,24)};function zu(){const e={};function t(s,...i){const a=e[s]||[];for(let l=0,u=a.length;l<u;l++){const c=a[l];c&&c(...i)}}function n(s,...i){t(s,...i),delete e[s]}function o(s,i){return(e[s]||=[]).push(i),()=>{e[s]=e[s]?.filter(a=>i!==a)}}function r(s,i){const a=o(s,((...l)=>(a(),i(...l))));return a}return{_listeners:e,emit:t,emitOnce:n,on:o,once:r}}const Xk=["afraid","all","beige","better","big","blue","bold","brave","breezy","bright","brown","bumpy","busy","calm","chatty","chilly","chubby","clean","clear","clever","cold","common","cool","cozy","crisp","cuddly","curly","curvy","cute","cyan","dark","deep","dirty","dry","dull","eager","early","easy","eight","eighty","eleven","empty","every","fair","famous","fancy","fast","few","fiery","fifty","fine","five","flat","floppy","fluffy","forty","four","frank","free","fresh","fruity","full","funky","funny","fuzzy","gentle","giant","gold","good","goofy","great","green","grumpy","happy","heavy","hip","honest","hot","huge","humble","hungry","icy","itchy","jolly","khaki","kind","large","late","lazy","legal","lemon","light","little","long","loose","loud","lovely","lucky","major","many","metal","mighty","modern","moody","neat","new","nice","nine","ninety","odd","old","olive","open","orange","perky","petite","pink","plain","plenty","polite","pretty","proud","public","puny","purple","quick","quiet","rare","ready","real","red","rich","ripe","salty","seven","shaggy","shaky","sharp","shiny","short","shy","silent","silly","silver","six","sixty","slick","slimy","slow","small","smart","smooth","social","soft","solid","some","sour","sparkly","spicy","spotty","stale","strict","strong","sunny","sweet","swift","tall","tame","tangy","tasty","ten","tender","thick","thin","thirty","three","tidy","tiny","tired","tough","tricky","true","twelve","twenty","two","upset","vast","violet","wacky","warm","wet","whole","wicked","wide","wild","wise","witty","yellow","young","yummy"],Zk=["actors","ads","adults","aliens","animals","ants","apes","apples","areas","baboons","badgers","bags","balloons","bananas","banks","bars","baths","bats","beans","bears","beds","beers","bees","berries","bikes","birds","boats","bobcats","books","bottles","boxes","breads","brooms","buckets","bugs","buses","bushes","buttons","camels","cameras","candies","candles","canyons","carpets","carrots","cars","cases","cats","chairs","chefs","chicken","cities","clocks","cloths","clouds","clowns","clubs","coats","cobras","coins","colts","comics","cooks","corners","cougars","cows","crabs","crews","cups","cycles","dancers","days","deer","deserts","dingos","dodos","dogs","dolls","donkeys","donuts","doodles","doors","dots","dragons","drinks","dryers","ducks","eagles","ears","eels","eggs","emus","ends","experts","eyes","facts","falcons","fans","feet","files","flies","flowers","forks","foxes","friends","frogs","games","garlics","geckos","geese","ghosts","gifts","glasses","goats","grapes","groups","guests","hairs","hands","hats","heads","hoops","hornets","horses","hotels","hounds","houses","humans","icons","ideas","impalas","insects","islands","items","jars","jeans","jobs","jokes","keys","kids","kings","kiwis","knives","lamps","lands","laws","lemons","lies","lights","lilies","lines","lions","lizards","llamas","loops","mails","mammals","mangos","maps","masks","meals","melons","memes","meteors","mice","mirrors","moles","moments","monkeys","months","moons","moose","mugs","nails","needles","news","nights","numbers","olives","onions","oranges","otters","owls","pandas","pans","pants","papayas","papers","parents","parks","parrots","parts","paths","paws","peaches","pears","peas","pens","pets","phones","pianos","pigs","pillows","places","planes","planets","plants","plums","poems","poets","points","pots","pugs","pumas","queens","rabbits","radios","rats","ravens","readers","regions","results","rice","rings","rivers","rockets","rocks","rooms","roses","rules","sails","schools","seals","seas","sheep","shirts","shoes","showers","shrimps","sides","signs","singers","sites","sloths","snails","snakes","socks","spiders","spies","spoons","squids","stamps","stars","states","steaks","streets","suits","suns","swans","symbols","tables","taxes","taxis","teams","teeth","terms","things","ties","tigers","times","tips","tires","toes","tools","towns","toys","trains","trams","trees","turkeys","turtles","vans","views","walls","wasps","waves","ways","webs","weeks","windows","wings","wolves","wombats","words","worlds","worms","yaks","years","zebras","zoos"],eC=["accept","act","add","admire","agree","allow","appear","argue","arrive","ask","attack","attend","bake","bathe","battle","beam","beg","begin","behave","bet","boil","bow","brake","brush","build","burn","buy","call","camp","care","carry","change","cheat","check","cheer","chew","clap","clean","cough","count","cover","crash","create","cross","cry","cut","dance","decide","deny","design","dig","divide","do","double","doubt","draw","dream","dress","drive","drop","drum","eat","end","enjoy","enter","exist","fail","fall","feel","fetch","film","find","fix","flash","float","flow","fly","fold","follow","fry","give","glow","go","grab","greet","grin","grow","guess","hammer","hang","happen","heal","hear","help","hide","hope","hug","hunt","invent","invite","itch","jam","jog","join","joke","judge","juggle","jump","kick","kiss","kneel","knock","know","laugh","lay","lead","learn","leave","lick","lie","like","listen","live","look","lose","love","make","march","marry","mate","matter","melt","mix","move","nail","notice","obey","occur","open","own","pay","peel","pick","play","poke","post","press","prove","pull","pump","punch","push","raise","read","refuse","relate","relax","remain","repair","repeat","reply","report","rescue","rest","retire","return","rhyme","ring","roll","rule","run","rush","say","scream","search","see","sell","send","serve","shake","share","shave","shine","shop","shout","show","sin","sing","sink","sip","sit","sleep","slide","smash","smell","smile","smoke","sneeze","sniff","sort","speak","spend","stand","stare","start","stay","stick","stop","strive","study","swim","switch","take","talk","tan","tap","taste","teach","tease","tell","thank","think","throw","tickle","tie","trade","train","travel","try","turn","type","unite","vanish","visit","wait","walk","warn","wash","watch","wave","wear","win","wink","wish","wonder","work","worry","write","yawn","yell"];function $l(e){return e[Math.random()*e.length|0]}function tC(){return`${$l(Xk)}-${$l(Zk)}-${$l(eC)}`}const nC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function ra(e=21){let t="",n=e;for(;n--;)t+=nC[Math.random()*64|0];return t}var qu=Symbol.for("immer-nothing"),Vr=Symbol.for("immer-draftable"),ct=Symbol.for("immer-state"),Sy=[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}];function tt(e,...t){{const n=Sy[e],o=Yn(n)?n.apply(null,t):n;throw new Error(`[Immer] ${o}`)}}var Ot=Object,To=Ot.getPrototypeOf,ls="constructor",ws="prototype",Jc="configurable",sa="enumerable",Ei="writable",cs="value",Ln=e=>!!e&&!!e[ct];function gn(e){return e?xy(e)||Es(e)||!!e[Vr]||!!e[ls]?.[Vr]||Ss(e)||xs(e):!1}var oC=Ot[ws][ls].toString(),ip=new WeakMap;function xy(e){if(!e||!ir(e))return!1;const t=To(e);if(t===null||t===Ot[ws])return!0;const n=Ot.hasOwnProperty.call(t,ls)&&t[ls];if(n===Object)return!0;if(!Yn(n))return!1;let o=ip.get(n);return o===void 0&&(o=Function.toString.call(n),ip.set(n,o)),o===oC}function _s(e,t,n=!0){$o(e)===0?(n?Reflect.ownKeys(e):Ot.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((o,r)=>t(r,o,e))}function $o(e){const t=e[ct];return t?t.type_:Es(e)?1:Ss(e)?2:xs(e)?3:0}var Kr=(e,t,n=$o(e))=>n===2?e.has(t):Ot[ws].hasOwnProperty.call(e,t),Cn=(e,t,n=$o(e))=>n===2?e.get(t):e[t],ia=(e,t,n,o=$o(e))=>{o===2?e.set(t,n):o===3?e.add(n):e[t]=n};function rC(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Es=Array.isArray,Ss=e=>e instanceof Map,xs=e=>e instanceof Set,ir=e=>typeof e=="object",Yn=e=>typeof e=="function",Ol=e=>typeof e=="boolean";function sC(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var iC=e=>ir(e)?e?.[ct]:null,An=e=>e.copy_||e.base_,Wu=e=>e.modified_?e.copy_:e.base_;function Yc(e,t){if(Ss(e))return new Map(e);if(xs(e))return new Set(e);if(Es(e))return Array[ws].slice.call(e);const n=xy(e);if(t===!0||t==="class_only"&&!n){const o=Ot.getOwnPropertyDescriptors(e);delete o[ct];let r=Reflect.ownKeys(o);for(let s=0;s<r.length;s++){const i=r[s],a=o[i];a[Ei]===!1&&(a[Ei]=!0,a[Jc]=!0),(a.get||a.set)&&(o[i]={[Jc]:!0,[Ei]:!0,[sa]:a[sa],[cs]:e[i]})}return Ot.create(To(e),o)}else{const o=To(e);if(o!==null&&n)return{...e};const r=Ot.create(o);return Ot.assign(r,e)}}function Vu(e,t=!1){return Ka(e)||Ln(e)||!gn(e)||($o(e)>1&&Ot.defineProperties(e,{set:Gs,add:Gs,clear:Gs,delete:Gs}),Ot.freeze(e),t&&_s(e,(n,o)=>{Vu(o,!0)},!1)),e}function aC(){tt(2)}var Gs={[cs]:aC};function Ka(e){return e===null||!ir(e)?!0:Ot.isFrozen(e)}var aa="MapSet",la="Patches",ap="ArrayMethods",ca={};function Oo(e){const t=ca[e];return t||tt(0,e),t}var lp=e=>!!ca[e];function lC(e,t){ca[e]||(ca[e]=t)}var us,ky=()=>us,cC=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:lp(aa)?Oo(aa):void 0,arrayMethodsPlugin_:lp(ap)?Oo(ap):void 0});function cp(e,t){t&&(e.patchPlugin_=Oo(la),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Xc(e){Zc(e),e.drafts_.forEach(uC),e.drafts_=null}function Zc(e){e===us&&(us=e.parent_)}var up=e=>us=cC(us,e);function uC(e){const t=e[ct];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function fp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[ct].modified_&&(Xc(t),tt(4)),gn(e)&&(e=dp(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(n[ct].base_,e,t)}else e=dp(t,n);return fC(t,e,!0),Xc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==qu?e:void 0}function dp(e,t){if(Ka(t))return t;const n=t[ct];if(!n)return ua(t,e.handledSet_,e);if(!Ga(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:o}=n;if(o)for(;o.length>0;)o.pop()(e);Ty(n,e)}return n.copy_}function fC(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Vu(t,n)}function Cy(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ga=(e,t)=>e.scope_===t,dC=[];function Ay(e,t,n,o){const r=An(e),s=e.type_;if(o!==void 0&&Cn(r,o,s)===t){ia(r,o,n,s);return}if(!e.draftLocations_){const a=e.draftLocations_=new Map;_s(r,(l,u)=>{if(Ln(u)){const c=a.get(u)||[];c.push(l),a.set(u,c)}})}const i=e.draftLocations_.get(t)??dC;for(const a of i)ia(r,a,n,s)}function pC(e,t,n){e.callbacks_.push(function(r){const s=t;if(!s||!Ga(s,r))return;r.mapSetPlugin_?.fixSetContents(s);const i=Wu(s);Ay(e,s.draft_??s,i,n),Ty(s,r)})}function Ty(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const o=n.getPath(e);o&&n.generatePatches_(e,o,t)}Cy(e)}}function hC(e,t,n){const{scope_:o}=e;if(Ln(n)){const r=n[ct];Ga(r,o)&&r.callbacks_.push(function(){Si(e),Ay(e,n,Wu(r),t)})}else gn(n)&&e.callbacks_.push(function(){const s=An(e);e.type_===3?s.has(n)&&ua(n,o.handledSet_,o):Cn(s,t,e.type_)===n&&o.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ua(Cn(e.copy_,t,e.type_),o.handledSet_,o)})}function ua(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Ln(e)||t.has(e)||!gn(e)||Ka(e)||(t.add(e),_s(e,(o,r)=>{if(Ln(r)){const s=r[ct];Ga(s,n)&&(ia(e,o,Wu(s),e.type_),Cy(s))}else gn(r)&&ua(r,t,n)})),e}function mC(e,t){const n=Es(e),o={type_:n?1:0,scope_:t?t.scope_:ky(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let r=o,s=fa;n&&(r=[o],s=fs);const{revoke:i,proxy:a}=Proxy.revocable(r,s);return o.draft_=a,o.revoke_=i,[a,o]}var fa={get(e,t){if(t===ct)return e;let n=e.scope_.arrayMethodsPlugin_;const o=e.type_===1&&typeof t=="string";if(o&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const r=An(e);if(!Kr(r,t,e.type_))return gC(e,r,t);const s=r[t];if(e.finalized_||!gn(s)||o&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&sC(t))return s;if(s===Pl(e.base_,t)){Si(e);const i=e.type_===1?+t:t,a=tu(e.scope_,s,e,i);return e.copy_[i]=a}return s},has(e,t){return t in An(e)},ownKeys(e){return Reflect.ownKeys(An(e))},set(e,t,n){const o=$y(An(e),t);if(o?.set)return o.set.call(e.draft_,n),!0;if(!e.modified_){const r=Pl(An(e),t),s=r?.[ct];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(rC(n,r)&&(n!==void 0||Kr(e.base_,t,e.type_)))return!0;Si(e),eu(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),hC(e,t,n)),!0},deleteProperty(e,t){return Si(e),Pl(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),eu(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=An(e),o=Reflect.getOwnPropertyDescriptor(n,t);return o&&{[Ei]:!0,[Jc]:e.type_!==1||t!=="length",[sa]:o[sa],[cs]:n[t]}},defineProperty(){tt(11)},getPrototypeOf(e){return To(e.base_)},setPrototypeOf(){tt(12)}},fs={};for(let e in fa){let t=fa[e];fs[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}fs.deleteProperty=function(e,t){return isNaN(parseInt(t))&&tt(13),fs.set.call(this,e,t,void 0)};fs.set=function(e,t,n){return t!=="length"&&isNaN(parseInt(t))&&tt(14),fa.set.call(this,e[0],t,n,e[0])};function Pl(e,t){const n=e[ct];return(n?An(n):e)[t]}function gC(e,t,n){const o=$y(t,n);return o?cs in o?o[cs]:o.get?.call(e.draft_):void 0}function $y(e,t){if(!(t in e))return;let n=To(e);for(;n;){const o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=To(n)}}function eu(e){e.modified_||(e.modified_=!0,e.parent_&&eu(e.parent_))}function Si(e){e.copy_||(e.assigned_=new Map,e.copy_=Yc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var yC=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,o)=>{if(Yn(t)&&!Yn(n)){const s=n;n=t;const i=this;return function(l=s,...u){return i.produce(l,c=>n.call(this,c,...u))}}Yn(n)||tt(6),o!==void 0&&!Yn(o)&&tt(7);let r;if(gn(t)){const s=up(this),i=tu(s,t,void 0);let a=!0;try{r=n(i),a=!1}finally{a?Xc(s):Zc(s)}return cp(s,o),fp(r,s)}else if(!t||!ir(t)){if(r=n(t),r===void 0&&(r=t),r===qu&&(r=void 0),this.autoFreeze_&&Vu(r,!0),o){const s=[],i=[];Oo(la).generateReplacementPatches_(t,r,{patches_:s,inversePatches_:i}),o(s,i)}return r}else tt(1,t)},this.produceWithPatches=(t,n)=>{if(Yn(t))return(s,...i)=>this.produceWithPatches(s,a=>t(a,...i));let o,r;return[this.produce(t,n,(s,i)=>{o=s,r=i}),o,r]},Ol(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ol(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ol(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){gn(e)||tt(8),Ln(e)&&(e=vC(e));const t=up(this),n=tu(t,e,void 0);return n[ct].isManual_=!0,Zc(t),n}finishDraft(e,t){const n=e&&e[ct];(!n||!n.isManual_)&&tt(9);const{scope_:o}=n;return cp(o,t),fp(void 0,o)}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--){const r=t[n];if(r.path.length===0&&r.op==="replace"){e=r.value;break}}n>-1&&(t=t.slice(n+1));const o=Oo(la).applyPatches_;return Ln(e)?o(e,t):this.produce(e,r=>o(r,t))}};function tu(e,t,n,o){const[r,s]=Ss(t)?Oo(aa).proxyMap_(t,n):xs(t)?Oo(aa).proxySet_(t,n):mC(t,n);return(n?.scope_??ky()).drafts_.push(r),s.callbacks_=n?.callbacks_??[],s.key_=o,n&&o!==void 0?pC(n,s,o):s.callbacks_.push(function(a){a.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:l}=a;s.modified_&&l&&l.generatePatches_(s,[],a)}),r}function vC(e){return Ln(e)||tt(10,e),Oy(e)}function Oy(e){if(!gn(e)||Ka(e))return e;const t=e[ct];let n,o=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Yc(e,t.scope_.immer_.useStrictShallowCopy_),o=t.scope_.immer_.shouldUseStrictIteration()}else n=Yc(e,!0);return _s(n,(r,s)=>{ia(n,r,Oy(s))},o),t&&(t.finalized_=!1),n}function bC(){Sy.push('Sets cannot have "replace" patches.',function(m){return"Unsupported patch operation: "+m},function(m){return"Cannot apply patch, path doesn't resolve: "+m},"Patching reserved attributes like __proto__, prototype and constructor is not allowed");function t(m,g=[]){if(m.key_!==void 0){const b=m.parent_.copy_??m.parent_.base_,v=iC(Cn(b,m.key_)),h=Cn(b,m.key_);if(h===void 0||h!==m.draft_&&h!==m.base_&&h!==m.copy_||v!=null&&v.base_!==m.base_)return null;const y=m.parent_.type_===3;let w;if(y){const _=m.parent_;w=Array.from(_.drafts_.keys()).indexOf(m.key_)}else w=m.key_;if(!(y&&b.size>w||Kr(b,w)))return null;g.push(w)}if(m.parent_)return t(m.parent_,g);g.reverse();try{n(m.copy_,g)}catch{return null}return g}function n(m,g){let b=m;for(let v=0;v<g.length-1;v++){const h=g[v];if(b=Cn(b,h),!ir(b)||b===null)throw new Error(`Cannot resolve path at '${g.join("/")}'`)}return b}const o="replace",r="add",s="remove";function i(m,g,b){if(m.scope_.processedForPatches_.has(m))return;m.scope_.processedForPatches_.add(m);const{patches_:v,inversePatches_:h}=b;switch(m.type_){case 0:case 2:return l(m,g,v,h);case 1:return a(m,g,v,h);case 3:return u(m,g,v,h)}}function a(m,g,b,v){let{base_:h,assigned_:y}=m,w=m.copy_;w.length<h.length&&([h,w]=[w,h],[b,v]=[v,b]);const _=m.allIndicesReassigned_===!0;for(let k=0;k<h.length;k++){const S=w[k],P=h[k];if((_||y?.get(k.toString()))&&S!==P){const $=S?.[ct];if($&&$.modified_)continue;const O=g.concat([k]);b.push({op:o,path:O,value:d(S)}),v.push({op:o,path:O,value:d(P)})}}for(let k=h.length;k<w.length;k++){const S=g.concat([k]);b.push({op:r,path:S,value:d(w[k])})}for(let k=w.length-1;h.length<=k;--k){const S=g.concat([k]);v.push({op:s,path:S})}}function l(m,g,b,v){const{base_:h,copy_:y,type_:w}=m;_s(m.assigned_,(_,k)=>{const S=Cn(h,_,w),P=Cn(y,_,w),$=k?Kr(h,_)?o:r:s;if(S===P&&$===o)return;const O=g.concat(_);b.push($===s?{op:$,path:O}:{op:$,path:O,value:d(P)}),v.push($===r?{op:s,path:O}:$===s?{op:r,path:O,value:d(S)}:{op:o,path:O,value:d(S)})})}function u(m,g,b,v){let{base_:h,copy_:y}=m,w=0;h.forEach(_=>{if(!y.has(_)){const k=g.concat([w]);b.push({op:s,path:k,value:_}),v.unshift({op:r,path:k,value:_})}w++}),w=0,y.forEach(_=>{if(!h.has(_)){const k=g.concat([w]);b.push({op:r,path:k,value:_}),v.unshift({op:s,path:k,value:_})}w++})}function c(m,g,b){const{patches_:v,inversePatches_:h}=b;v.push({op:o,path:[],value:g===qu?void 0:g}),h.push({op:o,path:[],value:m})}function f(m,g){return g.forEach(b=>{const{path:v,op:h}=b;let y=m;for(let S=0;S<v.length-1;S++){const P=$o(y);let $=v[S];typeof $!="string"&&typeof $!="number"&&($=""+$),(P===0||P===1)&&($==="__proto__"||$===ls)&&tt(19),Yn(y)&&$===ws&&tt(19),y=Cn(y,$),ir(y)||tt(18,v.join("/"))}const w=$o(y),_=p(b.value),k=v[v.length-1];switch(h){case o:switch(w){case 2:return y.set(k,_);case 3:tt(16);default:return y[k]=_}case r:switch(w){case 1:return k==="-"?y.push(_):y.splice(k,0,_);case 2:return y.set(k,_);case 3:return y.add(_);default:return y[k]=_}case s:switch(w){case 1:return y.splice(k,1);case 2:return y.delete(k);case 3:return y.delete(b.value);default:return delete y[k]}default:tt(17,h)}}),m}function p(m){if(!gn(m))return m;if(Es(m))return m.map(p);if(Ss(m))return new Map(Array.from(m.entries()).map(([b,v])=>[b,p(v)]));if(xs(m))return new Set(Array.from(m).map(p));const g=Object.create(To(m));for(const b in m)g[b]=p(m[b]);return Kr(m,Vr)&&(g[Vr]=m[Vr]),g}function d(m){return Ln(m)?p(m):m}lC(la,{applyPatches_:f,generatePatches_:i,generateReplacementPatches_:c,getPath:t})}var ds=new yC,wC=ds.produce,_C=ds.produceWithPatches.bind(ds),EC=ds.applyPatches.bind(ds);function SC(e){const{enablePatches:t=!1}=e,n=zu();let o=e.initialValue;const r=new Set;return{on:n.on,value:()=>o,patch:(s,i=ra())=>{r.has(i)||(bC(),o=EC(o,s),r.add(i),n.emit("updated",o,void 0,i))},mutate:(s,i=ra())=>{if(!r.has(i))if(r.add(i),t){const[a,l]=_C(o,s);o=a,n.emit("updated",o,l,i)}else o=wC(o,s),n.emit("updated",o,void 0,i)},syncIds:r}}const pp=typeof self=="object"?self:globalThis;function xC(e,t){const n=(r,s)=>(e.set(s,r),r),o=r=>{if(e.has(r))return e.get(r);const[s,i]=t[r];switch(s){case 0:case-1:return n(i,r);case 1:{const a=n([],r);for(const l of i)a.push(o(l));return a}case 2:{const a=n({},r);for(const[l,u]of i)a[o(l)]=o(u);return a}case 3:return n(new Date(i),r);case 4:{const{source:a,flags:l}=i;return n(new RegExp(a,l),r)}case 5:{const a=n(new Map,r);for(const[l,u]of i)a.set(o(l),o(u));return a}case 6:{const a=n(new Set,r);for(const l of i)a.add(o(l));return a}case 7:{const{name:a,message:l}=i;return n(new pp[a](l),r)}case 8:return n(BigInt(i),r);case"BigInt":return n(Object(BigInt(i)),r);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:a}=new Uint8Array(i);return n(new DataView(a),i)}}return n(new pp[s](i),r)};return o}function Py(e){return xC(new Map,e)(0)}const Mo="",{toString:kC}={},{keys:CC}=Object;function wr(e){const t=typeof e;if(t!=="object"||!e)return[0,t];const n=kC.call(e).slice(8,-1);switch(n){case"Array":return[1,Mo];case"Object":return[2,Mo];case"Date":return[3,Mo];case"RegExp":return[4,Mo];case"Map":return[5,Mo];case"Set":return[6,Mo];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]}function Qs([e,t]){return e===0&&(t==="function"||t==="symbol")}function AC(e,t,n,o){const r=(i,a)=>{const l=o.push(i)-1;return n.set(a,l),l},s=i=>{if(n.has(i))return n.get(i);let[a,l]=wr(i);switch(a){case 0:{let c=i;switch(l){case"bigint":a=8,c=i.toString();break;case"function":case"symbol":if(e)throw new TypeError(`unable to serialize ${l}`);c=null;break;case"undefined":return r([-1],i)}return r([a,c],i)}case 1:{if(l){let p=i;return l==="DataView"?p=new Uint8Array(i.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(i)),r([l,[...p]],i)}const c=[],f=r([a,c],i);for(const p of i)c.push(s(p));return f}case 2:{if(l)switch(l){case"BigInt":return r([l,i.toString()],i);case"Boolean":case"Number":case"String":return r([l,i.valueOf()],i)}if(t&&"toJSON"in i)return s(i.toJSON());const c=[],f=r([a,c],i);for(const p of CC(i))(e||!Qs(wr(i[p])))&&c.push([s(p),s(i[p])]);return f}case 3:return r([a,i.toISOString()],i);case 4:{const{source:c,flags:f}=i;return r([a,{source:c,flags:f}],i)}case 5:{const c=[],f=r([a,c],i);for(const[p,d]of i)(e||!(Qs(wr(p))||Qs(wr(d))))&&c.push([s(p),s(d)]);return f}case 6:{const c=[],f=r([a,c],i);for(const p of i)(e||!Qs(wr(p)))&&c.push(s(p));return f}}const{message:u}=i;return r([a,{name:l,message:u}],i)};return s}function TC(e,t={}){const n=[];return AC(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}const{parse:$C,stringify:OC}=JSON,PC={json:!0,lossy:!0};function RC(e){return Py($C(e))}function IC(e){return OC(TC(e,PC))}function MC(e){return Py(e)}function NC(e){return IC(e)}function DC(e){return RC(e)}const LC=256;var jC=class extends Error{name="StreamClosedError"};function HC(e={}){const t=e.id??ra(),n=Math.max(0,e.replayWindow??0),o=zu(),r=new AbortController,s=[];let i=!1,a=0;function l(d){if(i)throw new jC(`Cannot write to a closed stream "${t}"`);a+=1,n>0&&(s.push({seq:a,chunk:d}),s.length>n&&s.splice(0,s.length-n)),o.emit("chunk",a,d)}function u(d){if(i)return;i=!0;const m=BC(d);r.abort(d),o.emit("end",m)}function c(){i||(i=!0,r.signal.aborted||r.abort("stream closed"),o.emit("end",void 0))}function f(d){i||r.signal.aborted||r.abort(d??"aborted")}const p=new WritableStream({write(d){l(d)},close(){c()},abort(d){u(d)}});return{id:t,signal:r.signal,get closed(){return i},get lastSeq(){return a},write:l,error:u,close:c,abort:f,writable:p,events:o,buffer:s}}function FC(e={}){const t=e.id??ra(),n=Math.max(1,e.highWaterMark??LC),o=[];let r=0,s=!1,i=!1,a,l,u,c;function f(){if(l){if(o.length>0){const v=o.shift(),h=l;l=void 0,h.resolve({value:v,done:!1});return}if(s){const v=l;if(l=void 0,a){const h=new Error(a.message);h.name=a.name,v.reject(h)}else v.resolve({value:void 0,done:!0})}}}function p(){if(u){for(;o.length>0;){const v=o.shift();try{u.enqueue(v)}catch{break}}if(s&&u){try{if(a){const v=new Error(a.message);v.name=a.name,u.error(v)}else u.close()}catch{}u=void 0}}}function d(v,h){if(!(s||i)&&!(v<=r)){if(r=v,o.push(h),o.length>n){const y=o.length-n;o.splice(0,y),e.onOverflow?.(y)}f(),c&&p()}}function m(v){s||(s=!0,a=v,f(),c&&p())}function g(){i||s||(i=!0,e.onCancel?.(),m(void 0))}function b(){return c||(c=new ReadableStream({start(v){u=v,p()},cancel(){g()}}),c)}return{id:t,get cancelled(){return i},get done(){return s},get lastSeenSeq(){return r},get readable(){return b()},cancel:g,_push:d,_end:m,[Symbol.asyncIterator](){return{next(){if(o.length>0)return Promise.resolve({value:o.shift(),done:!1});if(s){if(a){const v=new Error(a.message);return v.name=a.name,Promise.reject(v)}return Promise.resolve({value:void 0,done:!0})}return new Promise((v,h)=>{l={resolve:v,reject:h}})},return(){return g(),Promise.resolve({value:void 0,done:!0})}}}}}function BC(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)}}}function UC(){let e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}}function zC(e){return t=>{const n=`${e.bold(e.red(`[${t.name}]`))} ${t.message}`,o=[];return t.fix&&o.push(`${e.dim("fix:")} ${t.fix}`),t.sources?.length&&o.push(`${e.dim("sources:")} ${t.sources.join(", ")}`),t.docs&&o.push(`${e.dim("see:")} ${e.cyan(t.docs)}`),o.length===0?n:[n,...o.map((r,s)=>`${e.dim(s<o.length-1?"├▶":"╰▶")} ${r}`)].join(`
|
|
9
|
+
`)}}const hp="q",mp="s";function qC(){let e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}}const WC=Math.random.bind(Math),VC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function KC(e=21){let t="",n=e;for(;n--;)t+=VC[WC()*64|0];return t}const GC=6e4,Ry=e=>e,QC=Ry,{clearTimeout:gp,setTimeout:JC}=globalThis;function YC(e,t){const{post:n,on:o,off:r=()=>{},eventNames:s=[],serialize:i=Ry,deserialize:a=QC,resolver:l,bind:u="rpc",timeout:c=GC,proxify:f=!0}=t;let p=!1;const d=new Map;let m,g;async function b(_,k,S,P){if(p)throw new Error(`[birpc] rpc is closed, cannot call "${_}"`);const $={m:_,a:k,t:hp};P&&($.o=!0);const O=async Y=>n(i(Y));if(S){await O($);return}if(m)try{await m}finally{m=void 0}let{promise:N,resolve:C,reject:F}=qC();const I=KC();$.i=I;let Q;async function W(Y=$){return c>=0&&(Q=JC(()=>{try{if(t.onTimeoutError?.call(g,_,k)!==!0)throw new Error(`[birpc] timeout on calling "${_}"`)}catch(D){F(D)}d.delete(I)},c),typeof Q=="object"&&(Q=Q.unref?.())),d.set(I,{resolve:C,reject:F,timeoutId:Q,method:_}),await O(Y),N}try{t.onRequest?await t.onRequest.call(g,$,W,C):await W()}catch(Y){if(t.onGeneralError?.call(g,Y)!==!0)throw Y;return}finally{gp(Q),d.delete(I)}return N}const v={$call:(_,...k)=>b(_,k,!1),$callOptional:(_,...k)=>b(_,k,!1,!0),$callEvent:(_,...k)=>b(_,k,!0),$callRaw:_=>b(_.method,_.args,_.event,_.optional),$rejectPendingCalls:y,get $closed(){return p},get $meta(){return t.meta},$close:h,$functions:e};f?g=new Proxy({},{get(_,k){if(Object.prototype.hasOwnProperty.call(v,k))return v[k];if(k==="then"&&!s.includes("then")&&!("then"in e))return;const S=(...$)=>b(k,$,!0);if(s.includes(k))return S.asEvent=S,S;const P=(...$)=>b(k,$,!1);return P.asEvent=S,P}}):g=v;function h(_){p=!0,d.forEach(({reject:k,method:S})=>{const P=new Error(`[birpc] rpc is closed, cannot call "${S}"`);if(_)return _.cause??=P,k(_);k(P)}),d.clear(),r(w)}function y(_){const k=Array.from(d.values()).map(({method:S,reject:P})=>_?_({method:S,reject:P}):P(new Error(`[birpc]: rejected pending call "${S}".`)));return d.clear(),k}async function w(_,...k){let S;try{S=a(_)}catch(P){if(t.onGeneralError?.call(g,P)!==!0)throw P;return}if(S.t===hp){const{m:P,a:$,o:O}=S;let N,C,F=await(l?l.call(g,P,e[P]):e[P]);if(O&&(F||=()=>{}),!F)C=new Error(`[birpc] function "${P}" not found`);else try{N=await F.apply(u==="rpc"?g:e,$)}catch(I){C=I}if(S.i){if(C&&t.onFunctionError&&t.onFunctionError.call(g,C,P,$)===!0)return;if(!C)try{await n(i({t:mp,i:S.i,r:N}),...k);return}catch(I){if(C=I,t.onGeneralError?.call(g,I,P,$)!==!0)throw I}try{await n(i({t:mp,i:S.i,e:C}),...k)}catch(I){if(t.onGeneralError?.call(g,I,P,$)!==!0)throw I}}}else{const{i:P,r:$,e:O}=S,N=d.get(P);N&&(gp(N.timeoutId),O?N.reject(O):N.resolve($)),d.delete(P)}}return m=o(w),g}const XC="__connection.json",ZC="__rpc-dump/index.json",eA=zC(Yk);function tA(e,{method:t="warn"}={}){console[t](eA(e))}const Yo=wy({docsBase:"https://devfra.me/errors",reporters:[tA],codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is not \`true\` — MCP requires JSON-serializable data.`,fix:"Set `jsonSerializable: true` if the payload is JSON-safe, or remove `agent` to keep it RPC-only."},DF0020:{why:e=>`RPC function "${e.name}" declares \`jsonSerializable: true\` but the value at "${e.path}" is a ${e.type}.`,fix:"Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape."},DF0021:{why:e=>`RPC function "${e.name}" is already registered`,fix:"Use the `force` parameter to overwrite an existing registration."},DF0022:{why:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DF0023:{why:e=>`RPC function "${e.name}" is not registered`},DF0024:{why:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DF0025:{why:e=>`Function "${e.name}" not found in dump store`},DF0026:{why:e=>`No dump match for "${e.name}" with args: ${e.args}`},DF0027:{why:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DF0028:{why:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,fix:"Remove `snapshot: true`, or change the function type to `query`."}}});function Iy(e){const t=e.cause instanceof Error?e.cause:nA(e.cause)?Iy(e.cause):e.cause,n=t!==void 0?new Error(e.message,{cause:t}):new Error(e.message);n.name=e.name;for(const o of Object.keys(e))o==="name"||o==="message"||o==="cause"||(n[o]=e[o]);return n}function nA(e){return typeof e=="object"&&e!==null&&typeof e.message=="string"&&typeof e.name=="string"}async function oA(e,t){return e.__resolved?e.__resolved:e.setup?(e.__promise??=Promise.resolve(e.setup(t)).then(n=>(e.__resolved=n,e.__promise=void 0,n)),e.__resolved??=await e.__promise):{}}async function yp(e,t){if(e.handler)return e.handler;const n=await oA(e,t);if(!n.handler)throw Yo.DF0024({name:e.name});return n.handler}var rA=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(t=>Ey(t))}updateOptions(e){this.options={...this.options,...e}}cached(e,t){const n=this.cacheMap.get(e);if(n)return n.get(this.keySerializer(t))}apply(e,t){const 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()}},sA=class{context;definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;const t=this.definitions,n=this;this.functions=new Proxy({},{get(o,r){const s=t.get(r);if(s)return yp(s,n.context)},has(o,r){return t.has(r)},getOwnPropertyDescriptor(o,r){return{value:t.get(r)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw Yo.DF0021({name:e.name});vp(e),this.definitions.set(e.name,e),this._onChanged.forEach(n=>n(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw Yo.DF0022({name:e.name});vp(e),this.definitions.set(e.name,e),this._onChanged.forEach(n=>n(e.name))}onChanged(e){return this._onChanged.push(e),()=>{const t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await yp(this.definitions.get(e),this.context)}getSchema(e){const t=this.definitions.get(e);if(!t)throw Yo.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 vp(e){if(e.agent&&e.jsonSerializable!==!0)throw Yo.DF0019({name:e.name})}function iA(e,t=""){return JSON.stringify(e,function(o,r){const s=this,i=s!=null?s[o]:r;if(i===void 0){if(Array.isArray(s))throw No(t,"undefined",s,o);return r}if(i===null)return r;if(typeof i=="bigint")throw No(t,"BigInt",s,o);if(typeof i=="object"){if(i instanceof Map)throw No(t,"Map",s,o);if(i instanceof Set)throw No(t,"Set",s,o);if(i instanceof Date)throw No(t,"Date",s,o);if(Array.isArray(i))return r;const a=Object.getPrototypeOf(i);if(a!==null&&a!==Object.prototype)throw No(t,i.constructor?.name??"class instance",s,o)}return r})}function No(e,t,n,o){const r=aA(n,o);return Yo.DF0020({name:e||"<anonymous>",type:t,path:r})}function aA(e,t){return Array.isArray(e)?`[${t}]`:t===""?"<root>":t}function lA(e){const t=new Map,n=new Map,o=new Set,r=e.connectionMeta.backend==="static";function s(a,l){const u=n.get(a);return u&&typeof u=="object"&&!Array.isArray(u)&&typeof l=="object"&&!Array.isArray(l)?{...u,...l}:l}e.client.register({name:"devframe:rpc:client-state:updated",type:"event",handler:(a,l,u)=>{const c=t.get(a);!c||c.syncIds.has(u)||c.mutate(()=>s(a,l),u)}}),e.client.register({name:"devframe:rpc:client-state:patch",type:"event",handler:(a,l,u)=>{const c=t.get(a);!c||c.syncIds.has(u)||c.patch(l,u)}});function i(a,l){const u=[];return u.push(l.on("updated",(c,f,p)=>{r||(f?e.callEvent("devframe:rpc:server-state:patch",a,f,p):e.callEvent("devframe:rpc:server-state:set",a,c,p))})),()=>{for(const c of u)c()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(a){return o.add(a),()=>{o.delete(a)}},get:async(a,l)=>{if(l?.initialValue!==void 0&&n.set(a,l.initialValue),t.has(a))return t.get(a);const u=SC({initialValue:l?.initialValue,enablePatches:!1});async function c(){if(r||e.callEvent("devframe:rpc:server-state:subscribe",a),l?.initialValue!==void 0){t.set(a,u);for(const f of o)f(a);return e.call("devframe:rpc:server-state:get",a).then(f=>{f!==void 0&&u.mutate(()=>s(a,f))}).catch(f=>{console.error("Error getting server state",f)}),i(a,u),u}else{const f=await e.call("devframe:rpc:server-state:get",a);u.mutate(()=>s(a,f)),t.set(a,u);for(const p of o)p(a);return i(a,u),u}}return new Promise(f=>{e.isTrusted?c().then(f):(f(u),e.events.on("rpc:is-trusted:updated",p=>{p&&c()}))})}}}function cA(e){return typeof e=="object"&&e!==null&&e.type==="static"&&typeof e.path=="string"}function uA(e){return typeof e=="object"&&e!==null&&e.type==="query"&&typeof e.records=="object"&&e.records!==null}function fA(e){return typeof e=="object"&&e!==null&&("output"in e||"error"in e)}function Rl(e){if(e.error)throw Iy(e.error);return e.output}function dA(e,t){const n=new Map,o=new Map;function r(l,u){return u==="structured-clone"?MC(l):l}async function s(l){n.has(l.path)||n.set(l.path,t(l.path).then(c=>r(c,l.serialization)));const u=await n.get(l.path);return fA(u)?Rl(u):u}async function i(l,u){return o.has(l)||o.set(l,t(l).then(c=>r(c,u))),await o.get(l)}async function a(l,u){if(!(l in e))throw new Error(`[devtools-rpc] Function "${l}" not found in dump store`);const c=e[l];if(cA(c)){if(u.length>0)throw new Error(`[devtools-rpc] No dump match for "${l}" with args: ${JSON.stringify(u)}`);return await s(c)}if(uA(c)){const f=Ey(u),p=c.records[f];if(p)return Rl(await i(p,c.serialization));if(c.fallback)return Rl(await i(c.fallback,c.serialization));throw new Error(`[devtools-rpc] No dump match for "${l}" with args: ${JSON.stringify(u)}`)}if(u.length===0)return c;throw new Error(`[devtools-rpc] No dump match for "${l}" with args: ${JSON.stringify(u)}`)}return{call:async(l,u)=>await a(l,u),callOptional:async(l,u)=>{if(l in e)return await a(l,u)},callEvent:async(l,u)=>{}}}async function pA(e){const t=dA(await e.fetchJsonFromBases(ZC),e.fetchJsonFromBases);return{isTrusted:!0,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,ensureTrusted:async()=>!0,call:(...n)=>t.call(n[0],n.slice(1)),callEvent:(...n)=>t.callEvent(n[0],n.slice(1)),callOptional:(...n)=>t.callOptional(n[0],n.slice(1))}}const My="";function _r(e,t){return`${e}${My}${t}`}function hA(e){const t=new Map,n=new Map;e.client.register({name:"devframe:streaming:chunk",type:"event",handler(s,i,a,l){t.get(_r(s,i))?._push(a,l)}}),e.client.register({name:"devframe:streaming:end",type:"event",handler(s,i,a){const l=_r(s,i),u=t.get(l);u&&(u._end(a),t.delete(l))}}),e.client.register({name:"devframe:streaming:upload-cancel",type:"event",handler(s,i){const a=_r(s,i),l=n.get(a);l&&(l.abort("server cancelled upload"),n.delete(a))}}),e.events.on("rpc:is-trusted:updated",s=>{if(s)for(const[i,a]of t){if(a.cancelled||a.done)continue;const l=i.indexOf(My);if(l<0)continue;const u=i.slice(0,l),c=i.slice(l+1);e.callEvent("devframe:streaming:subscribe",u,c,{afterSeq:a.lastSeenSeq})}});function o(s,i,a={}){const l=_r(s,i),u=t.get(l);if(u)return u;const c=FC({id:i,highWaterMark:a.highWaterMark,onOverflow(f){console.warn(`[devframe] DF0029: Stream "${s}#${i}" dropped ${f} chunk(s) after exceeding the client high-water mark.`)},onCancel(){e.callEvent("devframe:streaming:cancel",s,i),t.delete(l)}});if(t.set(l,c),e.isTrusted)e.callEvent("devframe:streaming:subscribe",s,i,{afterSeq:0});else{const f=e.events.on("rpc:is-trusted:updated",p=>{p&&(f(),t.has(l)&&!c.cancelled&&!c.done&&e.callEvent("devframe:streaming:subscribe",s,i,{afterSeq:c.lastSeenSeq}))})}return c}function r(s,i){const a=_r(s,i),l=n.get(a);if(l)return l;const u=HC({id:i});return u.events.on("chunk",(c,f)=>{e.callEvent("devframe:streaming:upload-chunk",s,i,c,f)}),u.events.on("end",c=>{e.callEvent("devframe:streaming:upload-end",s,i,c),n.delete(a)}),n.set(a,u),u}return{subscribe:o,upload:r}}function mA(e,t){const{channel:n,rpcOptions:o={}}=t;return YC(e,{...n,timeout:-1,...o,proxify:!1})}function Il(){}const gA=new Map;function yA(e){let t=e.url;e.authToken&&(t=`${t}?vite_devtools_auth_token=${encodeURIComponent(e.authToken)}`);const n=new WebSocket(t),{onConnected:o=Il,onError:r=Il,onDisconnected:s=Il,definitions:i=gA}=e;n.addEventListener("open",l=>{o(l)}),n.addEventListener("error",l=>{r(l instanceof Error?l:new Error(l.type))}),n.addEventListener("close",l=>{s(l)});const a=new Map;return{on:l=>{n.addEventListener("message",u=>{l(u.data)})},post:l=>{if(n.readyState===WebSocket.OPEN)n.send(l);else{let u=function(){n.send(l),n.removeEventListener("open",u)};n.addEventListener("open",u)}},serialize:l=>{let u;return l.t==="q"?u=l.m:(u=a.get(l.i),a.delete(l.i)),!(l.t==="s"&&"e"in l)&&u&&i.get(u)?.jsonSerializable===!0?iA(l,u??""):`s:${NC(l)}`},deserialize:l=>{const u=l.startsWith("s:")?DC(l.slice(2)):JSON.parse(l);return u.t==="q"&&u.i&&u.m&&a.set(u.i,u.m),u}}}const ks="",bp="?",vA="major",G="model",ne="name",V="type",K="vendor",se="version",tn="architecture",Or="console",_e="mobile",we="tablet",Tt="smarttv",Fo="wearable",nu="embedded",wp=500,Js="Amazon",Er="Apple",_p="ASUS",Ep="BlackBerry",po="Browser",Ys="Chrome",bA="Edge",Xs="Firefox",Zs="Google",Sp="Huawei",Ml="LG",Nl="Microsoft",xp="Motorola",Sr="Opera",ei="Samsung",kp="Sharp",ti="Sony",Dl="Xiaomi",Ll="Zebra",Cp="Facebook",Ny="Chromium OS",Dy="Mac OS";function wA(e,t={}){const n={};for(const o of Object.keys(e)){const r=t[o];r&&r.length%2===0?n[o]=[...r,...e[o]]:n[o]=e[o]}return n}function Cs(e){const t={};for(let n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t}function Gr(e){return e.toLowerCase()}function Ap(e,t){return typeof e=="string"?Gr(t).includes(Gr(e)):!1}function _A(e){return typeof e=="string"?e.replace(/[^\d.]/g,ks).split(".")[0]:void 0}function ou(e,t){const n=e.replace(/^\s+/,ks);return typeof t>"u"?n:n.substring(0,t)}function As(e,t,n){const o=n??{};for(let r=0;r<t.length;r+=2){const s=t[r],i=t[r+1];for(let a=0;a<s.length;a++){const l=s[a];if(!l)break;const u=l.exec(e);if(u){for(let c=0;c<i.length;c++){const f=u[c+1],p=i[c];if(Array.isArray(p)){const d=p[0],m=p.length;if(m===2){const g=p[1];typeof g=="function"?o[d]=g(f,void 0,o):o[d]=g}else if(m===3){const g=p[1],b=p[2];typeof g=="function"&&!("exec"in g)&&!("test"in g)?o[d]=f?g(f,b,o):void 0:o[d]=f?f.replace(g,b):void 0}else m===4&&(o[d]=f?p[3](f.replace(p[1],p[2]),void 0,o):void 0)}else o[p]=f||void 0}return o}}}return o}function jl(e,t){for(const n in t){const o=t[n];if(Array.isArray(o)&&o.length>0){for(let r=0;r<o.length;r++)if(Ap(o[r],e))return n===bp?void 0:n}else if(Ap(o,e))return n===bp?void 0:n}return e}const EA={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Tp={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},da={browser:[[/\b(?:crmo|crios)\/([\w.]+)/i],[se,[ne,"Chrome"]],[/edg(?:e|ios|a)?\/([\w.]+)/i],[se,[ne,"Edge"]],[/(opera mini)\/([-\w.]+)/i,/(opera [mobileta]{3,6})\b.+version\/([-\w.]+)/i,/(opera)(?:.+version\/|[/ ]+)([\w.]+)/i],[ne,se],[/opios[/ ]+([\w.]+)/i],[se,[ne,`${Sr} Mini`]],[/\bop(?:rg)?x\/([\w.]+)/i],[se,[ne,`${Sr} GX`]],[/\bopr\/([\w.]+)/i],[se,[ne,Sr]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[/ ]?([\w.]+)/i],[se,[ne,"Baidu"]],[/(kindle)\/([\w.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[/ ]?([\w.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[/ ]?([\w.]*)/i,/(?:ms|\()(ie) ([\w.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w.]+)/i,/(heytap|ovi)browser\/([\d.]+)/i,/(weibo)__([\d.]+)/i],[ne,se],[/\bddg\/([\w.]+)/i],[se,[ne,"DuckDuckGo"]],[/(?:\buc? ?browser|juc.+ucweb)[/ ]?([\w.]+)/i],[se,[ne,`UC${po}`]],[/microm.+\bqbcore\/([\w.]+)/i,/\bqbcore\/([\w.]+).+microm/i,/micromessenger\/([\w.]+)/i],[se,[ne,"WeChat"]],[/konqueror\/([\w.]+)/i],[se,[ne,"Konqueror"]],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i],[se,[ne,"IE"]],[/ya(?:search)?browser\/([\w.]+)/i],[se,[ne,"Yandex"]],[/slbrowser\/([\w.]+)/i],[se,[ne,`Smart Lenovo ${po}`]],[/(avast|avg)\/([\w.]+)/i],[[ne,/(.+)/,`$1 Secure ${po}`],se],[/\bfocus\/([\w.]+)/i],[se,[ne,`${Xs} Focus`]],[/\bopt\/([\w.]+)/i],[se,[ne,`${Sr} Touch`]],[/coc_coc\w+\/([\w.]+)/i],[se,[ne,"Coc Coc"]],[/dolfin\/([\w.]+)/i],[se,[ne,"Dolphin"]],[/coast\/([\w.]+)/i],[se,[ne,`${Sr} Coast`]],[/miuibrowser\/([\w.]+)/i],[se,[ne,`MIUI ${po}`]],[/fxios\/([-\w.]+)/i],[se,[ne,Xs]],[/\bqihu|(qi?ho{0,2}|360)browser/i],[[ne,`360 ${po}`]],[/(oculus|sailfish|huawei|vivo)browser\/([\w.]+)/i],[[ne,/(.+)/,`$1 ${po}`],se],[/samsungbrowser\/([\w.]+)/i],[se,[ne,`${ei} Internet`]],[/(comodo_dragon)\/([\w.]+)/i],[[ne,/_/g," "],se],[/metasr[/ ]?([\d.]+)/i],[se,[ne,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d.]+)/i],[[ne,"Sogou Mobile"],se],[/(electron)\/([\w.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w.]+))/i,/m?(qqbrowser|2345Explorer)[/ ]?([\w.]+)/i],[ne,se],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[ne],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w.]+);)/i],[[ne,Cp],se],[/(Klarna)\/([\w.]+)/i,/(kakao(?:talk|story))[/ ]([\w.]+)/i,/(naver)\(.*?(\d+\.[\w.]+).*\)/i,/safari (line)\/([\w.]+)/i,/\b(line)\/([\w.]+)\/iab/i,/(alipay)client\/([\w.]+)/i,/(twitter)(?:and| f.+e\/([\w.]+))/i,/(chromium|instagram|snapchat)[/ ]([-\w.]+)/i],[ne,se],[/\bgsa\/([\w.]+) .*safari\//i],[se,[ne,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w.]+)/i],[se,[ne,"TikTok"]],[/headlesschrome(?:\/([\w.]+)| )/i],[se,[ne,`${Ys} Headless`]],[/ wv\).+(chrome)\/([\w.]+)/i],[[ne,`${Ys} WebView`],se],[/droid.+ version\/([\w.]+)\b.+(?:mobile safari|safari)/i],[se,[ne,`Android ${po}`]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w.]+)/i],[ne,se],[/version\/([\w.,]+) .*mobile\/\w+ (safari)/i],[se,[ne,"Mobile Safari"]],[/version\/([\w(.|,)]+) .*(mobile ?safari|safari)/i],[se,ne],[/webkit.+?(mobile ?safari|safari)(\/[\w.]+)/i],[ne,[se,jl,EA]],[/(webkit|khtml)\/([\w.]+)/i],[ne,se],[/(navigator|netscape\d?)\/([-\w.]+)/i],[[ne,"Netscape"],se],[/mobile vr; rv:([\w.]+)\).+firefox/i],[se,[ne,`${Xs} Reality`]],[/ekiohf.+(flow)\/([\w.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[/ ]?([\w.+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w.]+)$/i,/(firefox)\/([\w.]+)/i,/(mozilla)\/([\w.]+) .+rv:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[. ]?browser)[-/ ]?v?([\w.]+)/i,/(links) \(([\w.]+)/i,/panasonic;(viera)/i],[ne,se],[/(cobalt)\/([\w.]+)/i],[ne,[se,/master.|lts./,""]]],cpu:[[/(amd|x(?:(?:86|64)[-_])?|wow|win)64[;)]/i],[[tn,"amd64"]],[/(ia32(?=;))/i],[[tn,Gr]],[/((?:i[346]|x)86)[;)]/i],[[tn,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[tn,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[tn,"armhf"]],[/windows (ce|mobile); ppc;/i],[[tn,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[tn,/ower/,ks,Gr]],[/(sun4\w)[;)]/i],[[tn,"sparc"]],[/(avr32|ia64(?=;)|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[tn,Gr]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[G,[K,ei],[V,we]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?\d+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[G,[K,ei],[V,_e]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[G,[K,Er],[V,_e]],[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[G,[K,Er],[V,we]],[/(macintosh);/i],[G,[K,Er]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[G,[K,kp],[V,_e]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[G,[K,Sp],[V,we]],[/(?:huawei|honor)([-\w ]+)[;)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][0-359c][adn]?)\b(?!.+d\/s)/i],[G,[K,Sp],[V,_e]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?[\w ]+)(?: bui|\))/i,/oid[^)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?\d?\w?[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[G,/_/g," "],[K,Dl],[V,_e]],[/oid[^)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?pad[\w ]+)(?: bui|\))/i],[[G,/_/g," "],[K,Dl],[V,we]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[G,[K,"OPPO"],[V,_e]],[/\b(opd2\d{3}a?) bui/i],[G,[K,"OPPO"],[V,we]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[G,[K,"Vivo"],[V,_e]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[G,[K,"Realme"],[V,_e]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w() ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[G,[K,xp],[V,_e]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[G,[K,xp],[V,we]],[/((?=lg)?[vl]k-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[G,[K,Ml],[V,we]],[/(lm(?:-?f100[nv]?|-[\w.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?(\w+) bui/i],[G,[K,Ml],[V,_e]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab[\w ]+|yt[-\w]{6}|tb[-\w]{6})/i],[G,[K,"Lenovo"],[V,we]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w.]*)/i],[[G,/_/g," "],[K,"Nokia"],[V,_e]],[/(pixel c)\b/i],[G,[K,Zs],[V,we]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[G,[K,Zs],[V,_e]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]?\d\.))/i],[G,[K,ti],[V,_e]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[G,"Xperia Tablet"],[K,ti],[V,we]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[G,[K,"OnePlus"],[V,_e]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[G,[K,Js],[V,we]],[/((?:sd|kf)[0349hijor-uw]+)( bui|\)).+silk\//i],[[G,/(.+)/g,"Fire Phone $1"],[K,Js],[V,_e]],[/(playbook);[-\w),; ]+(rim)/i],[G,K,[V,we]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[G,[K,Ep],[V,_e]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[G,[K,_p],[V,we]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[G,[K,_p],[V,_e]],[/(nexus 9)/i],[G,[K,"HTC"],[V,we]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!;|\.)|sony(?!-bra))[-_ ]?([-\w]*)/i],[K,[G,/_/g," "],[V,_e]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[G,[K,"Acer"],[V,we]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[G,[K,"Meizu"],[V,_e]],[/; ((?:power )?armor[\w ]{0,8})(?: bui|\))/i],[G,[K,"Ulefone"],[V,_e]],[/(blackberry|benq|palm(?=-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[K,G,[V,_e]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[K,G,[V,we]],[/(surface duo)/i],[G,[K,Nl],[V,we]],[/droid [\d.]+; (fp\du?)(?: b|\))/i],[G,[K,"Fairphone"],[V,_e]],[/(u304aa)/i],[G,[K,"AT&T"],[V,_e]],[/\bsie-(\w*)/i],[G,[K,"Siemens"],[V,_e]],[/\b(rct\w+) b/i],[G,[K,"RCA"],[V,we]],[/\b(venue[\d ]{2,7}) b/i],[G,[K,"Dell"],[V,we]],[/\b(q(?:mv|ta)\w+) b/i],[G,[K,"Verizon"],[V,we]],[/\b(?:barnes[& ]+noble |bn[rt])([\w+ ]*) b/i],[G,[K,"Barnes & Noble"],[V,we]],[/\b(tm\d{3}\w+) b/i],[G,[K,"NuVision"],[V,we]],[/\b(k88) b/i],[G,[K,"ZTE"],[V,we]],[/\b(nx\d{3}j) b/i],[G,[K,"ZTE"],[V,_e]],[/\b(gen\d{3}) b.+49h/i],[G,[K,"Swiss"],[V,_e]],[/\b(zur\d{3}) b/i],[G,[K,"Swiss"],[V,we]],[/\b((zeki)?tb.*\b) b/i],[G,[K,"Zeki"],[V,we]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[K,"Dragon Touch"],G,[V,we]],[/\b(ns-?\w{0,9}) b/i],[G,[K,"Insignia"],[V,we]],[/\b((nxa|next)-?\w{0,9}) b/i],[G,[K,"NextBook"],[V,we]],[/\b(xtreme_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[K,"Voice"],G,[V,_e]],[/\b(lvtel-)?(v1[12]) b/i],[[K,"LvTel"],G,[V,_e]],[/\b(ph-1) /i],[G,[K,"Essential"],[V,_e]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[G,[K,"Envizen"],[V,we]],[/\b(trio[-\w. ]+) b/i],[G,[K,"MachSpeed"],[V,we]],[/\btu_(1491) b/i],[G,[K,"Rotor"],[V,we]],[/(shield[\w ]+) b/i],[G,[K,"Nvidia"],[V,we]],[/(sprint) (\w+)/i],[K,G,[V,_e]],[/(kin\.[onetw]{3})/i],[[G,/\./g," "],[K,Nl],[V,_e]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[G,[K,Ll],[V,we]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[G,[K,Ll],[V,_e]],[/smart-tv.+(samsung)/i],[K,[V,Tt]],[/hbbtv.+maple;(\d+)/i],[[G,/^/,"SmartTV"],[K,ei],[V,Tt]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[K,Ml],[V,Tt]],[/(apple) ?tv/i],[K,[G,`${Er} TV`],[V,Tt]],[/crkey/i],[[G,`${Ys}cast`],[K,Zs],[V,Tt]],[/droid.+aft(\w+)( bui|\))/i],[G,[K,Js],[V,Tt]],[/\(dtv[);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[G,[K,kp],[V,Tt]],[/(bravia[\w ]+)( bui|\))/i],[G,[K,ti],[V,Tt]],[/(mitv-\w{5}) bui/i],[G,[K,Dl],[V,Tt]],[/Hbbtv.*(technisat) (.*);/i],[K,G,[V,Tt]],[/\b(roku)[\dx]*[)/]((?:dvp-)?[\d.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w+ ]*; *(\w[^;]*);([^;]*)/i],[[K,ou],[G,ou],[V,Tt]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[V,Tt]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[K,G,[V,Or]],[/droid.+; (shield) bui/i],[G,[K,"Nvidia"],[V,Or]],[/(playstation [345portablevi]+)/i],[G,[K,ti],[V,Or]],[/\b(xbox(?: one)?(?!; xbox))[); ]/i],[G,[K,Nl],[V,Or]],[/((pebble))app/i],[K,G,[V,Fo]],[/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i],[G,[K,Er],[V,Fo]],[/droid.+; (glass) \d/i],[G,[K,Zs],[V,Fo]],[/droid.+; (wt63?0{2,3})\)/i],[G,[K,Ll],[V,Fo]],[/(quest( \d| pro)?)/i],[G,[K,Cp],[V,Fo]],[/(tesla)(?: qtcarbrowser|\/[-\w.]+)/i],[K,[V,nu]],[/(aeobc)\b/i],[G,[K,Js],[V,nu]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[G,[V,_e]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[G,[V,we]],[/\b((tablet|tab)[;/]|focus\/\d(?!.+mobile))/i],[[V,we]],[/(phone|mobile(?:[;/]| [ \w/.]*safari)|pda(?=.+windows ce))/i],[[V,_e]],[/(android[-\w. ]{0,9});.+buil/i],[G,[K,"Generic"]]],engine:[[/windows.+ edge\/([\w.]+)/i],[se,[ne,`${bA}HTML`]],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i],[se,[ne,"Blink"]],[/(presto)\/([\w.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w.]+)/i,/ekioh(flow)\/([\w.]+)/i,/(khtml|tasman|links)[/ ]\(?([\w.]+)/i,/(icab)[/ ]([23]\.[\d.]+)/i,/\b(libweb)/i],[ne,se],[/rv:([\w.]{1,9})\b.+(gecko)/i],[se,ne]],os:[[/microsoft (windows) (vista|xp)/i],[ne,se],[/(windows (?:phone(?: os)?|mobile))[/ ]?([.\w ]*)/i],[ne,[se,jl,Tp]],[/windows nt 6\.2; (arm)/i,/windows[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i,/(?:win(?=[39n])|win 9x )([nt\d.]+)/i],[[se,jl,Tp],[ne,"Windows"]],[/ip[honead]{2,4}\b(?:.*os (\w+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[/ ])([\d.]+)/i,/cfnetwork\/.+darwin/i],[[se,/_/g,"."],[ne,"iOS"]],[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[ne,Dy],[se,/_/g,"."]],[/droid ([\w.]+)\b.+(android[- ]x86|harmonyos)/i],[se,ne],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-/ ]?([\w.]*)/i,/(blackberry)\w*\/([\w.]*)/i,/(tizen|kaios)[/ ]([\w.]+)/i,/\((series40);/i],[ne,se],[/\(bb(10);/i],[se,[ne,Ep]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-/ ]?([\w.]*)/i],[se,[ne,"Symbian"]],[/mozilla\/[\d.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w.]+)/i],[se,[ne,`${Xs} OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w.]+)/i],[se,[ne,"webOS"]],[/watch(?: ?os[,/]|\d,\d\/)([\d.]+)/i],[se,[ne,"watchOS"]],[/crkey\/([\d.]+)/i],[se,[ne,`${Ys}cast`]],[/(cros) \w+(?:\)| ([\w.]+)\b)/i],[[ne,Ny],se],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w.]*)/i,/(mint)[/() ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-/ ]?(?!chrom|package)([-\w.]*)/i,/(hurd|linux) ?([\w.]*)/i,/(gnu) ?([\w.]*)/i,/\b([-e-hrntopcs]{0,5}bsd|dragonfly)[/ ]?(?!amd|[ix346]{1,2}86)([\w.]*)/i,/(haiku) (\w+)/i],[ne,se],[/(sunos) ?([\w.]*)/i],[[ne,"Solaris"],se],[/((?:open)?solaris)[-/ ]?([\w.]*)/i,/(aix) ((\d)(?=[.) ])[\w.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w.]*)/i],[ne,se]]};function Hl(e){return typeof e=="object"&&e!==null}Object.freeze(Cs([ne,se,vA]));Object.freeze(Cs([tn]));Object.freeze(Cs([G,K,V,Or,_e,Tt,we,Fo,nu]));Object.freeze(Cs([ne,se]));Object.freeze(Cs([ne,se]));function Ly(){if(!(typeof window>"u"||!window.navigator))return window.navigator}function ru(e){return e.length>wp?ou(e,wp):e}function SA(e){if(typeof e=="string")return{ua:ru(e),isSelfNavigator:!1,navigator:void 0,userAgentData:void 0,regexMap:da};const t=Ly(),n=ru(t&&t.userAgent?t.userAgent:ks);return{ua:n,isSelfNavigator:!!(t&&t.userAgent===n),navigator:t,userAgentData:t?.userAgentData,regexMap:da}}function xA(e,t){if(!Hl(e))return SA(e);const n=Ly(),o=Hl(e)?void 0:e,r=Hl(e)?e:t,s=ru(o||(n&&n.userAgent?n.userAgent:ks)),i=n?.userAgentData;return{ua:s,isSelfNavigator:!!(n&&n.userAgent===s),navigator:n,userAgentData:i,regexMap:r?wA(da,r):da}}function kA(e){const t={name:void 0,version:void 0,major:void 0};return As(e.ua,e.regexMap.browser,t),t.major=_A(t.version),e.isSelfNavigator&&e.navigator?.brave&&typeof e.navigator.brave.isBrave=="function"&&(t.name="Brave"),t}function CA(e){const t={architecture:void 0};return As(e.ua,e.regexMap.cpu,t),t}function AA(e){const t={vendor:void 0,model:void 0,type:void 0};return As(e.ua,e.regexMap.device,t),e.isSelfNavigator&&!t.type&&e.userAgentData?.mobile&&(t.type=_e),e.isSelfNavigator&&t.model==="Macintosh"&&e.navigator&&typeof e.navigator.standalone<"u"&&e.navigator.maxTouchPoints&&e.navigator.maxTouchPoints>2&&(t.model="iPad",t.type=we),t}function TA(e){const t={name:void 0,version:void 0};return As(e.ua,e.regexMap.engine,t),t}function $A(e){const t={name:void 0,version:void 0};return As(e.ua,e.regexMap.os,t),e.isSelfNavigator&&!t.name&&e.userAgentData?.platform&&e.userAgentData.platform!=="Unknown"&&(t.name=e.userAgentData.platform.replace(/chrome os/i,Ny).replace(/macos/i,Dy)),t}function OA(e,t){let n,o,r,s,i,a;const l=()=>n||=xA(e,t);return{get ua(){return l().ua},get browser(){return o||=kA(l()),o},get engine(){return r||=TA(l()),r},get os(){return s||=$A(l()),s},get device(){return i||=AA(l()),i},get cpu(){return a||=CA(l()),a}}}function PA(e){return e==null?!1:`${+e}`==`${e}`}function RA(e){const{authToken:t,connectionMeta:n,events:o,clientRpc:r,rpcOptions:s={},wsOptions:i={}}=e;let a=!1;const l=UC(),u=PA(n.websocket)?`${location.protocol.replace("http","ws")}//${location.hostname}:${n.websocket}`:n.websocket,c=new Map;for(const b of n.jsonSerializableMethods??[])c.set(b,{jsonSerializable:!0});const f=mA(r.functions,{channel:yA({url:u,authToken:t,definitions:c,...i}),rpcOptions:s});r.register({name:"devframe:auth:revoked",type:"event",handler:()=>{a=!1,o.emit("rpc:is-trusted:updated",!1)}});let p=t;async function d(b){p=b;const v=OA(navigator.userAgent),h=[v.browser.name,v.browser.version,"|",v.os.name,v.os.version,v.device.type].filter(w=>w).join(" "),y=await f.$call("vite:anonymous:auth",{authToken:b,ua:h,origin:location.origin});return a=y.isTrusted,l.resolve(a),o.emit("rpc:is-trusted:updated",a),y.isTrusted}async function m(){return a?!0:d(p)}async function g(b=6e4){if(a&&l.resolve(!0),b<=0)return l.promise;let v=()=>{};return await Promise.race([l.promise.then(v),new Promise((h,y)=>{const w=setTimeout(()=>{y(new Error("[devframe] Timeout waiting for rpc to be trusted"))},b);v=()=>clearTimeout(w)})]),a}return{get isTrusted(){return a},requestTrust:m,requestTrustWithToken:d,ensureTrusted:g,call:(...b)=>f.$call(...b),callEvent:(...b)=>f.$callEvent(...b),callOptional:(...b)=>f.$callOptional(...b)}}const xi="__VITE_DEVTOOLS_CONNECTION_META__",Jn="__VITE_DEVTOOLS_CONNECTION_AUTH_TOKEN__";function IA(e){const t=[()=>e,()=>localStorage.getItem(Jn),()=>window?.[Jn],()=>globalThis?.[Jn],()=>parent.window?.[Jn]];let n;for(const o of t)try{if(n=o(),n)break}catch{}return n||(n=tC()),localStorage.setItem(Jn,n),globalThis[Jn]=n,n}function MA(){const e=[()=>window?.[xi],()=>globalThis?.[xi],()=>parent.window?.[xi]];for(const t of e)try{const n=t();if(n)return n}catch{}}async function NA(e={}){const{baseURL:t="./",rpcOptions:n={},cacheOptions:o=!1}=e,r=zu(),s=Array.isArray(t)?t:[t];let i=e.connectionMeta||MA(),a=s[0]??"./";function l(v){return v.endsWith("/")?v:`${v}/`}function u(v,h){return/^https?:\/\//.test(h)||h.startsWith("/")?h:`${l(v)}${h}`}if(!i){const v=[];for(const h of s)try{i=await fetch(u(h,XC)).then(y=>y.json()),a=h,globalThis[xi]=i;break}catch(y){v.push(y)}if(!i)throw new Error(`Failed to get connection meta from ${s.join(", ")}`,{cause:v})}const c=new rA({functions:[],...typeof e.cacheOptions=="object"?e.cacheOptions:{}}),f={rpc:void 0},p=IA(e.authToken),d=new sA(f);async function m(v){const h=[a,...s.filter(w=>w!==a)].filter(w=>w!=null),y=[];for(const w of h)try{return await fetch(u(w,v)).then(_=>{if(!_.ok)throw new Error(`Failed to fetch ${v} from ${w}: ${_.status}`);return _.json()})}catch(_){y.push(_)}throw new Error(`Failed to load ${v} from ${h.join(", ")}`,{cause:y})}const g=i.backend==="static"?await pA({fetchJsonFromBases:m}):RA({authToken:p,connectionMeta:i,events:r,clientRpc:d,rpcOptions:{...n,async onRequest(v,h,y){if(await n.onRequest?.call(this,v,h,y),o&&c?.validate(v.m)){const w=c.cached(v.m,v.a);if(w)return y(w);{const _=await h(v);c?.apply(v,_)}}else await h(v)}},wsOptions:e.wsOptions}),b={events:r,get isTrusted(){return g.isTrusted},connectionMeta:i,ensureTrusted:g.ensureTrusted,requestTrust:g.requestTrust,requestTrustWithToken:async v=>(localStorage.setItem(Jn,v),globalThis[Jn]=v,g.requestTrustWithToken(v)),call:g.call,callEvent:g.callEvent,callOptional:g.callOptional,client:d,sharedState:void 0,streaming:void 0,cacheManager:c};b.sharedState=lA(b),b.streaming=hA(b),f.rpc=b,g.requestTrust();try{const v=new BroadcastChannel("vite-devtools-auth");v.onmessage=h=>{h.data?.type==="auth-update"&&h.data.authToken&&b.requestTrustWithToken(h.data.authToken)}}catch{}return b}const DA=NA,xr=at(null),Fl=at([]),$p=B([]),Op=B(null),Pp=B(!0),Rp=B(!1);function Ip(e){return[...e].sort((t,n)=>{const o=t.lastActivityAt??t.lastSyncedAt,r=n.lastActivityAt??n.lastSyncedAt;return o&&r?o===r?t.repo.localeCompare(n.repo):r.localeCompare(o):o?-1:r?1:t.repo.localeCompare(n.repo)})}function Lt(){return{capabilities:xr,projects:Fl,hubRoots:$p,launchCwd:Op,launchCwdInRoots:Pp,loading:Rp,setCapabilities(e){xr.value=e,Fl.value=Ip(e.projects)},setProjects(e){const t=Ip(e);Fl.value=t,xr.value&&(xr.value={...xr.value,projects:t})},setHubInfo(e){$p.value=e.roots,Op.value=e.launchCwd,Pp.value=e.launchCwdInRoots},setLoading(e){Rp.value=e}}}const su=new Map,ni=new Set,LA=60;function kR(e,t=LA){const n=M(()=>Ie(e)??null);function o(a){let l=su.get(a);return l||(l=B(null),su.set(a,l)),l}async function r(a){if(!ni.has(a)){ni.add(a);try{const l=await Ve().$call("ghfs:project-activity",a,t);o(a).value=l}catch{}finally{ni.delete(a)}}}const s=M(()=>{const a=n.value;if(!a)return null;const l=o(a);return l.value==null&&!ni.has(a)&&r(a),l.value});function i(){const a=n.value;a&&r(a)}return{data:s,refresh:i}}function jA(e){const t=su.get(e);t&&(t.value=null)}const ki=B(null);let oi=!1;function CR(e=90){async function t(){if(!oi){oi=!0;try{ki.value=await Ve().$call("ghfs:hub-activity",e)}catch{}finally{oi=!1}}}const n=M(()=>(ki.value==null&&!oi&&t(),ki.value));function o(){t()}return{data:n,refresh:o}}function HA(){ki.value=null}const Mp=B([]),Np=B(!1),kr=B(null);let Dp=!1;function FA(e){return e.queue.entries.filter(t=>t.source!=="per-item").length}function Ts(){!Dp&&typeof window<"u"&&(Dp=!0,e());async function e(){try{const s=await Ve().$call("ghfs:hub-queue");Mp.value=s,Np.value=!0}catch{}}async function t(s){kr.value=s;try{await Ve().$call("ghfs:hub-execute-queue",{projectId:s})}finally{kr.value=null,await e()}}async function n(){kr.value="all";try{await Ve().$call("ghfs:hub-execute-queue",{})}finally{kr.value=null,await e()}}const o=M(()=>Mp.value.map(s=>({...s,total:FA(s)})).filter(s=>s.total>0)),r=M(()=>o.value.reduce((s,i)=>s+i.total,0));return{groups:o,totalCount:r,executing:kr,loaded:Np,load:e,executeProject:t,executeAll:n}}let Do=null,ri=null;function Pr(){return ri||(ri=DA({baseURL:"/"}).then(t=>{const n=UA();for(const[o,r]of Object.entries(n))t.client.register({name:o,type:"event",handler:r});return t}),ri)}function Ve(){return Do||(typeof window>"u"?(Do=zA(),Do):(Pr(),Do={$call:((e,...t)=>Pr().then(n=>n.call(e,...t))),$callEvent:((e,...t)=>{Pr().then(n=>n.callEvent(e,...t)).catch(()=>{})}),$callOptional:((e,...t)=>Pr().then(n=>n.callOptional(e,...t)))},Do))}function BA(){return typeof window>"u"?Promise.reject(new Error("devframe RPC not available (SSR)")):Pr()}function UA(){return{"ghfs:onSyncStageStart":e=>{const t=Ne(e.projectId);t.setSyncing(!0),t.setProgress({kind:"sync",stage:e.stage,message:e.message})},"ghfs:onSyncProgress":e=>{const t=Ne(e.projectId),n=e.snapshot.selected||e.snapshot.scanned,o=n>0?Math.min(1,e.snapshot.processed/n):void 0;t.setProgress({kind:"sync",stage:e.stage,message:e.message,processed:e.snapshot.processed,total:e.snapshot.selected,percent:o})},"ghfs:onSyncStageEnd":()=>{},"ghfs:onSyncComplete":e=>{const t=Ne(e.projectId);t.setProgress(null),t.setSyncing(!1);const n=Lt();n.capabilities.value?.mode==="hub"&&Ve().$call("ghfs:list-projects").then(o=>n.setProjects(o)).catch(()=>{})},"ghfs:onSyncError":e=>{const t=Ne(e.projectId);t.setError(`Sync failed: ${e.message}`),t.setProgress(null),t.setSyncing(!1)},"ghfs:onExecuteStart":e=>{const t=Ne(e.projectId);t.setExecuting(!0),t.setProgress({kind:"execute",message:e.planned>0?`Executing ${e.planned} ops…`:"Executing…",processed:0,total:e.planned,percent:0})},"ghfs:onExecuteProgress":e=>{Ne(e.projectId).setProgress({kind:"execute",message:e.detail?.message,processed:e.completed,total:e.planned,percent:e.planned>0?e.completed/e.planned:void 0})},"ghfs:onExecuteComplete":e=>{const t=Ne(e.projectId);t.setProgress(null),t.setExecuting(!1)},"ghfs:onExecuteError":e=>{const t=Ne(e.projectId);t.setError(`Execute failed: ${e.message}`),t.setProgress(null),t.setExecuting(!1)},"ghfs:onSyncStateChange":e=>{Ne(e.projectId).patchSyncState(e.state),jA(e.projectId),HA()},"ghfs:onQueueChange":e=>{Ne(e.projectId).patchQueue(e.queue),Lt().capabilities.value?.mode==="hub"&&Ts().load()},"ghfs:onRemoteStatusChange":e=>{Ne(e.projectId).patchRemote(e.status)},"ghfs:onProjectsChange":()=>{Ve().$call("ghfs:list-projects").then(e=>{Lt().setProjects(e)}).catch(()=>{})},"ghfs:onHubInfoChange":e=>{Lt().setHubInfo(e)}}}function zA(){const e=()=>Promise.reject(new Error("RPC not available (SSR)"));return{$call:e,$callEvent:(()=>{}),$callOptional:e}}const fe=jt({drafts:{}}),qA=B(!1),WA=B(!1);let jy=!1,Bl=null,iu=null;function Zt(){if(Bl)return Bl;const e=Ve(),t=fy(()=>{!jy||!iu||e.$call("ghfs:save-ui-state",iu,{drafts:{...fe.drafts},listPaneSize:fe.listPaneSize,lastPrTab:fe.lastPrTab,userOverride:fe.userOverride?{...fe.userOverride}:void 0,autoSyncIntervalMs:fe.autoSyncIntervalMs,todos:fe.todos?[...fe.todos]:void 0,ignored:fe.ignored?[...fe.ignored]:void 0,seenHistory:fe.seenHistory?{...fe.seenHistory}:void 0}).catch(n=>{oa.GHFS0900({detail:String(n?.message??n),cause:n})})},700);return Bl=t,t}function VA(e){if(e==="conversation"||e==="commits"||e==="changes")return e}function Lp(e){if(!e||typeof e!="object")return;const t={};return typeof e.login=="string"&&e.login.trim()&&(t.login=e.login.trim()),typeof e.name=="string"&&e.name.trim()&&(t.name=e.name.trim()),typeof e.avatarUrl=="string"&&e.avatarUrl.startsWith("https://")&&(t.avatarUrl=e.avatarUrl.trim()),Object.keys(t).length>0?t:void 0}function Jt(){function e(h,y){iu=h;const w=y&&typeof y=="object"&&y.drafts&&typeof y.drafts=="object"?{...y.drafts}:{};fe.drafts=w,fe.listPaneSize=typeof y?.listPaneSize=="number"?y.listPaneSize:void 0,fe.lastPrTab=VA(y?.lastPrTab),fe.userOverride=Lp(y?.userOverride),fe.autoSyncIntervalMs=typeof y?.autoSyncIntervalMs=="number"?y.autoSyncIntervalMs:void 0,fe.todos=Array.isArray(y?.todos)?[...y.todos]:void 0,fe.ignored=Array.isArray(y?.ignored)?[...y.ignored]:void 0,fe.seenHistory=y?.seenHistory&&typeof y.seenHistory=="object"?{...y.seenHistory}:void 0,jy=!0}function t(h){const y=h?Lp(h):void 0;fe.userOverride=y,Zt()()}function n(h){return h==null?"":fe.drafts[String(h)]??""}function o(h,y){const w=String(h);if(y===""){if(!(w in fe.drafts))return;delete fe.drafts[w]}else{if(fe.drafts[w]===y)return;fe.drafts[w]=y}Zt()()}function r(h){o(h,"")}function s(h){const y=Math.round(h*10)/10;fe.listPaneSize!==y&&(fe.listPaneSize=y,Zt()())}function i(h){fe.lastPrTab!==h&&(fe.lastPrTab=h,Zt()())}function a(h){const y=typeof h=="number"&&h>=6e4&&h<=36e5?Math.round(h):void 0;fe.autoSyncIntervalMs!==y&&(fe.autoSyncIntervalMs=y,Zt()())}function l(){return fe.todos??[]}function u(h){return h==null?!1:fe.todos?.includes(h)??!1}function c(h){if(!Number.isInteger(h)||h<=0)return;const y=fe.todos?[...fe.todos]:[];y.includes(h)||(y.push(h),fe.todos=y,Zt()())}function f(h){const y=fe.todos;!y||!y.includes(h)||(fe.todos=y.filter(w=>w!==h),Zt()())}function p(){return fe.ignored??[]}function d(h){return h==null?!1:fe.ignored?.includes(h)??!1}function m(h){if(!Number.isInteger(h)||h<=0)return;const y=fe.ignored?[...fe.ignored]:[];y.includes(h)||(y.push(h),fe.ignored=y,Zt()())}function g(h){const y=fe.ignored;!y||!y.includes(h)||(fe.ignored=y.filter(w=>w!==h),Zt()())}function b(h){return fe.seenHistory?.[h]}function v(h,y){if(!h||!y?.lastSeenAt)return;const w=fe.seenHistory??{},_=w[h];_&&_.lastCommentId===y.lastCommentId&&_.lastSeenAt===y.lastSeenAt||(fe.seenHistory={...w,[h]:y},Zt()())}return{uiState:fe,helpOpen:qA,labelEditorOpen:WA,hydrate:e,getDraft:n,setDraft:o,clearDraft:r,setListPaneSize:s,setLastPrTab:i,setUserOverride:t,setAutoSyncIntervalMs:a,getTodos:l,isTodo:u,addTodo:c,removeTodo:f,getIgnored:p,isIgnored:d,addIgnored:m,removeIgnored:g,getSeenEntry:b,markSeen:v}}const Ul=B(!1),zl=B(!1),ql=B(!1),Wl=B(!1),jp=B(!1);function $s(){return{pickerOpen:Ul,settingsOpen:zl,queueDrawerOpen:ql,executeAllConfirmOpen:Wl,syncingAll:jp,openPicker(){Ul.value=!0},closePicker(){Ul.value=!1},openSettings(){zl.value=!0},closeSettings(){zl.value=!1},openQueueDrawer(){ql.value=!0},closeQueueDrawer(){ql.value=!1},openExecuteAllConfirm(){Wl.value=!0},closeExecuteAllConfirm(){Wl.value=!1},setSyncingAll(e){jp.value=e}}}async function KA(){const e=Lt(),t=Ve(),n=$s();if(n.syncingAll.value)return;const o=e.projects.value.filter(r=>r.hasToken);if(o.length!==0){n.setSyncingAll(!0);try{await Promise.allSettled(o.map(r=>t.$call("ghfs:trigger-sync",r.id,{})));try{const r=await t.$call("ghfs:list-projects");e.setProjects(r)}catch{}}finally{n.setSyncingAll(!1)}}}function Vl(e,t=[]){if(!e)return!1;if(e.endsWith("[bot]"))return!0;const n=e.toLowerCase();return t.some(o=>o.toLowerCase()===n)}function Hp(e,t=[]){const n=e.data;let o;const r=s=>{s&&(!o||s>o)&&(o=s)};for(const s of n.comments??[])Vl(s.author,t)||(r(s.updatedAt),r(s.createdAt));for(const s of n.timeline??[])Vl(s.actor,t)||r(s.createdAt);for(const s of n.commits??[])Vl(s.committerLogin,t)||r(s.committerDate??s.authorDate);return o??n.item.updatedAt}const pa=1440*60*1e3;function GA(e,t){t(e.item.createdAt),t(e.item.updatedAt),t(e.item.closedAt);for(const n of e.comments??[])t(n.createdAt);for(const n of e.timeline??[])t(n.createdAt);for(const n of e.commits??[])t(n.committerDate??n.authorDate);e.pull?.mergedAt&&t(e.pull.mergedAt)}function QA(e,t,n,o){return r=>{if(!r)return;const s=Date.parse(r);if(Number.isNaN(s))return;const i=Math.floor((n-ha(s))/pa);i<0||i>=t||(e[t-1-i]+=1,o())}}function JA(e,t=30,n=Date.now()){const o=Array.from({length:t}).fill(0),r=ha(n);let s=0;const i=QA(o,t,r,()=>{s+=1});return GA(e,i),{buckets:o,total:s,days:t}}function YA(e,t,n=Date.now()){if(!e)return;const o=Date.parse(e);if(Number.isNaN(o))return;const r=ha(n),s=Math.floor((r-ha(o))/pa);if(!(s>=t))return s<0?t-1:t-1-s}function ha(e){return Math.floor(e/pa)*pa}const Fp=180;function Ku(e){return`${e.projectId}-${e.kind}-${e.number}`}function Hy(e,t,n){const o=e.data.item;return{key:Ku({projectId:t,kind:o.kind,number:o.number}),projectId:t,repo:n,kind:o.kind,number:o.number,title:o.title,author:o.author,authorAvatarUrl:o.authorAvatarUrl,updatedAt:o.updatedAt,labels:o.labels,state:o.state,body:o.body??void 0,assignees:o.assignees,reactionsTotal:o.reactions?.totalCount,url:o.url,raw:e,activityBuckets:JA(e.data,Fp).buckets,activityCreatedIndex:YA(o.createdAt,Fp)}}function XA(e,t){const n=t?.(e.projectId)??e.repo;return{key:Ku({projectId:e.projectId,kind:e.kind,number:e.number}),projectId:e.projectId,repo:n,kind:e.kind,number:e.number,title:e.title,author:e.author,authorAvatarUrl:e.authorAvatarUrl,updatedAt:e.updatedAt,labels:e.labels,state:e.state,stateReason:e.stateReason,pullIsDraft:e.pullIsDraft,pullMerged:e.pullMerged}}function Gu(){const e=Ne(),t=Jt(),n=M(()=>{const i=e.payload.value;if(!i)return[];const a=i.projectId,l=i.repo.repo,u=i.bots??[],c=Object.values(i.syncState.items);return c.sort((f,p)=>Hp(p,u).localeCompare(Hp(f,u))),c.map(f=>Hy(f,a,l))}),o=dy(M(()=>e.filters.search),150,!0),r=M(()=>{const i=o.value.trim().toLowerCase(),a=i.length>0;return n.value.filter(l=>{if(l.state!=="open"||t.isIgnored(l.number)||!a&&e.filters.kind!==l.kind)return!1;if(a){const u=l.body??"",c=(l.labels??[]).join(" "),f=(l.assignees??[]).join(" ");if(!`${l.number} ${l.title} ${c} ${f} ${l.author??""} ${u}`.toLowerCase().includes(i))return!1}return!0})}),s=M(()=>{let i=0,a=0;for(const l of n.value)l.state==="open"&&(t.isIgnored(l.number)||(l.kind==="issue"?i+=1:a+=1));return{issues:i,pulls:a}});return{allItems:n,filteredItems:r,counts:s}}const au=B(null),Ci=new Map;async function Bp(e,t={}){const n=Ne(e);if(!t.force&&n.payload.value)return;const o=Ci.get(e);if(o)return o;const r=(async()=>{try{const s=await Ve().$call("ghfs:initial-payload",e);n.setPayload(s),Jt().hydrate(e,s.uiState),au.value=null}catch(s){au.value=s.message}finally{Ci.delete(e)}})();return Ci.set(e,r),r}const ZA=M(()=>Ci.size>0);function Fy(){return{loading:ZA,error:M(()=>au.value),loadInitial(e){return Bp(e,{force:!0})},ensureLoaded(e){return Bp(e,{force:!1})}}}const Up=B([]),Kl=B(!1),Gl=B(null),Ql=B(null);function eT(e){return`${e.projectId}-${e.kind}-${e.number}`}function By(){const e=Fy();async function t(o=100){Kl.value=!0,Gl.value=null;try{const r=await Ve().$call("ghfs:hub-recent-items",o);Up.value=r??[]}catch(r){Gl.value=r.message}finally{Kl.value=!1}}async function n(o){Ql.value=eT(o),Va().value=o.projectId,await e.ensureLoaded(o.projectId),Ne(o.projectId).selectItem(o.number)}return{items:M(()=>Up.value),loading:M(()=>Kl.value),error:M(()=>Gl.value),selectedKey:Ql,selectKey(o){Ql.value=o},selectItem:n,load:t}}const zp=B(""),qp=B("issue");function Qu(){const e=By(),t=Lt(),n=M(()=>{const a=new Map;for(const l of t.projects.value)a.set(l.id,l.repo);return a}),o=M(()=>{const a=n.value;return e.items.value.map(l=>XA(l,u=>a.get(u)))}),r=dy(zp,150,!0),s=M(()=>{const a=r.value.trim().toLowerCase(),l=a.length>0;return o.value.filter(u=>{if(!l&&u.kind!==qp.value)return!1;if(l){const c=(u.labels??[]).join(" ");if(!`${u.number} ${u.title} ${u.repo} ${c} ${u.author??""}`.toLowerCase().includes(a))return!1}return!0})}),i=M(()=>{let a=0,l=0;for(const u of o.value)u.kind==="issue"?a+=1:l+=1;return{issues:a,pulls:l}});return{items:o,filteredItems:s,search:zp,kind:qp,counts:i}}function Uy(){const e=Ne(),t=M(()=>(e.payload.value?.queue.entries??[]).filter(r=>r.source!=="per-item")),n=M(()=>t.value.length);return{entries:t,upCount:n}}const Jl=B(!1),si=B(""),ii=B(0);function Qa(){function e(){si.value="",ii.value=0,Jl.value=!0}function t(){Jl.value=!1}function n(r){si.value!==r&&(si.value=r,ii.value=0)}function o(r){ii.value=r}return{paletteOpen:Jl,query:si,selectedIndex:ii,open:e,close:t,setQuery:n,setSelectedIndex:o}}const Ai=B({});let Ti=!1,Rr=null;function tT(){return Ti?Promise.resolve():Rr||(Rr=Ve().$call("ghfs:hub-seen-history").then(t=>{Ai.value=t??{},Ti=!0}).catch(()=>{Ti=!0}),Rr)}function zy(){const e=Jt(),t=Lt(),n=M(()=>t.capabilities.value?.mode==="hub");n.value&&!Ti&&!Rr&&tT();function o(s){return e.getSeenEntry(s)??(n.value?Ai.value[s]:void 0)}function r(s,i){e.markSeen(s,i),Ai.value={...Ai.value,[s]:i}}return{getSeenEntry:o,markSeen:r}}const Yl=B([]),Xl=B(!1),Zl=B(null),Wp=B("issue");function nT(e){return{key:Ku({projectId:e.projectId,kind:e.kind,number:e.number}),projectId:e.projectId,repo:e.repo,kind:e.kind,number:e.number,title:e.title,author:e.author,authorAvatarUrl:e.authorAvatarUrl,updatedAt:e.updatedAt,labels:e.labels,state:e.state}}function qy(){async function e(){Xl.value=!0,Zl.value=null;try{const r=await Ve().$call("ghfs:hub-todos");Yl.value=r??[]}catch(r){Zl.value=r.message}finally{Xl.value=!1}}const t=M(()=>Yl.value.map(nT)),n=M(()=>t.value.filter(r=>r.kind===Wp.value)),o=M(()=>{let r=0,s=0;for(const i of t.value)i.kind==="issue"?r+=1:s+=1;return{issues:r,pulls:s}});return{items:M(()=>Yl.value),listItems:t,filteredListItems:n,counts:o,kind:Wp,loading:M(()=>Xl.value),error:M(()=>Zl.value),load:e}}const oT=[5,10,15,30,50],rT=[{value:"random",label:"Random",hint:"pick at random"},{value:"recent",label:"Most recent",hint:"latest activity first"},{value:"stale",label:"Least active",hint:"fewest comments + events"}],sT=[{value:"all",label:"Issues + PRs"},{value:"issue",label:"Issues only"},{value:"pull",label:"PRs only"}],ps={size:10,pick:"recent",kind:"all",excludeBots:!0,excludeSelfInteracted:!0,excludeSeen:!0},iT=360,bt=B([]),ft=B(0),Ft=B([]),Xo=B({label:"Cards"}),sn=B({...ps}),wo=B(new Set),$i=B(!1),ai=B(!1),li=B(null),ec=B(!1),tc=B(null),Vp=B({label:"Cards"}),Kp=B(null);let nc=null,ci=null,ui=null;function aT(e,t=1500){return new Promise(n=>{let o=!1;const r=()=>{o||(o=!0,s(),n())},s=e.on("updated",r);setTimeout(r,t)})}async function Oi(){return nc||ci||(ci=(async()=>{const t=await(await BA()).sharedState.get("ghfs:cards-pile",{initialValue:{pile:null}});return await aT(t),lu(t.value().pile??null),t.on("updated",n=>lu(n.pile??null)),nc=t,t})(),ci)}function lT(e){const t=[...e];for(let n=t.length-1;n>0;n-=1){const o=Math.floor(Math.random()*(n+1)),r=t[n];t[n]=t[o],t[o]=r}return t}function Ja(e){return`${e.projectId}#${e.number}`}function cT(e){return{projectId:e.projectId,repo:e.repo,kind:e.kind,number:e.number,title:e.title,authorAvatarUrl:e.authorAvatarUrl,author:e.author}}function uT(e){const t=e.author;if(!t)return!1;const n=t.toLowerCase();return!!(n.endsWith("[bot]")||n.endsWith("-bot")||n==="github-actions")}function fT(e,t){if(!t)return!1;const n=e.raw;if(!n)return e.author===t;let o="",r=null;for(const s of n.data.comments??[])s.createdAt&&s.createdAt>o&&(o=s.createdAt,r=s.author??null);for(const s of n.data.timeline??[])s.createdAt&&s.createdAt>o&&(o=s.createdAt,r=s.actor??null);return o===""?n.data.item.author===t:r===t}function Gp(e){const t=e.raw;return t?(t.data.comments?.length??0)+(t.data.timeline?.length??0):Number.POSITIVE_INFINITY}function dT(e,t){const n=t.lastSeenAt;if(!n)return!1;const o=e.raw;if((o?.data.item.updatedAt??e.updatedAt??"")>n)return!1;if(o){for(const s of o.data.comments??[])if(s.createdAt&&s.createdAt>n)return!1;for(const s of o.data.timeline??[])if(s.createdAt&&s.createdAt>n)return!1}return!0}function Pi(e,t,n,o){let r=e.filter(s=>s.state==="open");return t.kind==="issue"?r=r.filter(s=>s.kind==="issue"):t.kind==="pull"&&(r=r.filter(s=>s.kind==="pull")),t.excludeBots&&(r=r.filter(s=>!uT(s))),t.excludeSelfInteracted&&n&&(r=r.filter(s=>!fT(s,n))),t.excludeSeen&&o&&(r=r.filter(s=>{const i=o(Ja(s));return!i||!dT(s,i)})),r}function oc(e,t,n){const o=e.filter(s=>!n.has(Ja(s)));let r;switch(t.pick){case"recent":r=[...o].sort((s,i)=>(i.updatedAt??"").localeCompare(s.updatedAt??""));break;case"stale":r=[...o].sort((s,i)=>{const a=Gp(s),l=Gp(i);return a!==l?a-l:(s.updatedAt??"").localeCompare(i.updatedAt??"")});break;default:r=lT(o);break}return r.slice(0,t.size).map(cT)}function Wy(){return{pile:bt.value,index:ft.value,processedOps:Ft.value,source:Xo.value,options:sn.value}}function lu(e){if(!e){bt.value=[],ft.value=0,Ft.value=[],Xo.value={label:"Cards"},sn.value={...ps},wo.value=new Set;return}bt.value=e.pile,ft.value=e.index,Ft.value=e.processedOps,Xo.value=e.source,sn.value=e.options;const t=new Set;for(let n=0;n<Math.min(e.index,e.pile.length);n+=1){const o=e.pile[n];o&&t.add(Ja(o))}wo.value=t}function Vy(){return ft.value>=bt.value.length?null:bt.value[ft.value]??null}async function fi(){if($i.value)return;$i.value=!0;const e=Vy();e&&wo.value.add(Ja(e)),ft.value+=1,Ir(),await new Promise(t=>setTimeout(t,iT)),$i.value=!1}function pT(){return ui||(ui=fy(async()=>{if(bt.value.length===0)return;(await Oi()).mutate(t=>{t.pile=Wy()})},300),ui)}function Ir(){pT()()}function Ju(){const e=kt(),t=Jt(),n=zy(),{ensureLoaded:o}=Fy(),r=M(()=>Vy()),s=M(()=>bt.value.length),i=M(()=>Math.max(0,bt.value.length-ft.value)),a=M(()=>bt.value.length>0&&ft.value>=bt.value.length),l=M(()=>{const C=r.value;if(!C)return!1;const F=Ne(C.projectId),I=F.payload.value?.syncState.items[String(C.number)];return I?I.data.item.state==="closed"?!1:!(F.payload.value?.queue.entries??[]).some(W=>W.op.number===C.number&&(W.op.action==="close"||W.op.action==="close-with-comment")):!0}),u=M(()=>{const C=r.value;return C?t.isTodo(C.number):!1}),c=M(()=>{const C=r.value;return C?t.isIgnored(C.number):!1}),f=M(()=>{const C=r.value;if(!C)return null;const I=Ne(C.projectId).payload.value?.queue.entries??[];for(const Q of I)if(Q.op.number===C.number&&(Q.op.action==="add-comment"||Q.op.action==="close-with-comment"))return Q;return null});async function p(){try{await Oi()}catch{lu(null)}}function d(C,F,I){tc.value=C,Vp.value=F,Kp.value=I??null,ec.value=!0}async function m(C,F,I,Q){const W=Pi(C,I,Q,n.getSeenEntry),Y=oc(W,I,new Set);if(Y.length!==0){bt.value=Y,ft.value=0,Ft.value=[],wo.value=new Set,Xo.value=F,sn.value={...I};try{(await Oi()).mutate(oe=>{oe.pile=Wy()})}catch{}ec.value=!1,tc.value=null,e.currentRoute.value.path!=="/cards"&&await e.push("/cards")}}function g(C,F){Ft.value.some(I=>I.projectId===C&&I.opId===F)||(Ft.value=[...Ft.value,{projectId:C,opId:F}],Ir())}function b(C,F){const I=Pi(C,sn.value,F,n.getSeenEntry),Q=oc(I,sn.value,wo.value);Q.length!==0&&(bt.value=Q,ft.value=0,Ft.value=[],Ir())}function v(C,F){const I=Pi(C,sn.value,F,n.getSeenEntry),Q=oc(I,sn.value,new Set);Q.length!==0&&(bt.value=Q,ft.value=0,Ft.value=[],wo.value=new Set,Ir())}async function h(){bt.value=[],ft.value=0,Ft.value=[],wo.value=new Set,sn.value={...ps},Xo.value={label:"Cards"},ai.value=!1,li.value=null;try{(await Oi()).mutate(F=>{F.pile=null})}catch{}}function y(){ai.value=!1,li.value=null}async function w(){r.value&&await fi()}function _(){ft.value<=0||(ft.value-=1,Ir())}const k=M(()=>ft.value>0);async function S(){const C=r.value;if(C){if(await o(C.projectId),t.isTodo(C.number)){t.removeTodo(C.number);return}t.addTodo(C.number),await fi()}}async function P(){const C=r.value;if(C){if(await o(C.projectId),t.isIgnored(C.number)){t.removeIgnored(C.number);return}t.addIgnored(C.number),await fi()}}async function $(){const C=r.value;if(!C)return;await o(C.projectId),li.value=C,Ne(C.projectId).selectItem(C.number),t.labelEditorOpen.value=!0}function O(){r.value&&(ai.value=!0)}function N(){const C=Ha();if(C.path==="/recent"){const Y=Qu();d(Y.filteredItems.value,{label:"Recent"});return}if(C.path==="/todo"){const Y=qy();d(Y.listItems.value,{label:"Todo"});return}const F=Ne(),I=Va().value,Q=F.payload.value;if(I&&Q){const Y=[];for(const oe of Object.values(Q.syncState.items)){const Re=oe.data.item;Re.state==="open"&&(t.isIgnored(Re.number)||Y.push(Hy(oe,Q.projectId,Q.repo.repo)))}const D=F.filters.kind==="pull"?"pull":"issue";d(Y,{label:Q.repo.repo,project:{id:I,repo:Q.repo.repo}},{kind:D});return}const{filteredItems:W}=Gu();d(W.value,{label:"Cards"})}return{pile:M(()=>bt.value),currentCard:r,index:M(()=>ft.value),total:s,remaining:i,done:a,advancing:M(()=>$i.value),source:M(()=>Xo.value),options:M(()=>sn.value),commentDialogOpen:ai,labelsPendingFor:li,processedOps:M(()=>Ft.value),currentCanClose:l,currentIsTodo:u,currentIsIgnored:c,currentPendingComment:f,startDialogOpen:ec,pendingSourceItems:M(()=>tc.value),pendingSource:M(()=>Vp.value),pendingInitialOptions:M(()=>Kp.value),hydrate:p,openStartDialog:d,startFromCurrentContext:N,start:m,advance:fi,recordOp:g,anotherPile:b,restartPile:v,dismiss:h,reset:y,doSkip:w,doMarkTodo:S,doMarkIgnore:P,doOpenLabels:$,doOpenComment:O,goBack:_,canGoBack:k}}function Ya(){const e=Va(),t=M(()=>Ne(e.value??void 0)),n=Jt(),o=Lt(),r=$s(),s=Ha(),{filteredItems:i}=Gu(),a=Qu(),{filteredItems:l,search:u}=a,{upCount:c}=Uy(),{totalCount:f}=Ts(),p=yy(),d=Qa(),m=Ju();return M(()=>{const g=t.value.selectedNumber.value;let b=g==null?null:t.value.payload.value?.syncState.items[String(g)]?.data.item??null;if(!b){const I=m.currentCard.value;I&&(b=Ne(I.projectId).payload.value?.syncState.items[String(I.number)]?.data.item??null)}const v=o.capabilities.value?.mode==="hub",h=n.helpOpen.value,y=n.labelEditorOpen.value,w=t.value.queueOpen.value,_=t.value.executeConfirmOpen.value,k=r.pickerOpen.value,S=r.settingsOpen.value,P=r.queueDrawerOpen.value,$=r.executeAllConfirmOpen.value,O=s.path==="/recent",N=s.path==="/cards",C=m.advancing.value,F=m.commentDialogOpen.value;return{route:s.path,hubMode:v,hubHome:v&&s.path==="/",hasActiveItem:!!b,activeItemKind:b?.kind??null,activeItemState:b?.state??null,hasEntries:O?l.value.length>0:i.value.length>0,searching:O?u.value.trim().length>0:t.value.filters.search.trim().length>0,hasToken:t.value.payload.value?.repo.hasToken??!1,hasSyncableProjects:o.projects.value.some(I=>I.hasToken),syncing:t.value.syncing.value,syncingAll:r.syncingAll.value,executing:t.value.executing.value,queueUpCount:c.value,inputFocused:p.value,paletteOpen:d.paletteOpen.value,helpOpen:h,labelEditorOpen:y,queueOpen:w,executeConfirmOpen:_,hubPickerOpen:k,hubSettingsOpen:S,hubQueueDrawerOpen:P,hubExecuteAllConfirmOpen:$,hubQueueTotal:f.value,hubProjectsCount:o.projects.value.length,hasActiveProjectId:!!e.value,anyOverlayOpen:h||y||w||_||k||S||P||$,onCardsPage:N,cardsHasPile:m.total.value>0,cardsHasCurrent:!!m.currentCard.value,cardsAdvancing:C,cardsCanClose:m.currentCanClose.value,cardsIsTodo:m.currentIsTodo.value,cardsIsIgnored:m.currentIsIgnored.value,cardsCommentDialogOpen:F,cardsDone:m.done.value,cardsCanGoBack:m.canGoBack.value,cardsHasPendingComment:!!m.currentPendingComment.value}})}const hT=/Mac|iPhone|iPad|iPod/i;function Ky(){if(typeof navigator>"u")return!1;const e=navigator.platform||navigator.userAgent;return hT.test(e)}const mT={mod:"modPlaceholder",cmd:"meta",command:"meta",meta:"meta",win:"meta",super:"meta",ctrl:"ctrl",control:"ctrl",alt:"alt",option:"alt",opt:"alt",shift:"shift"},gT={esc:"Escape",escape:"Escape",return:"Enter",enter:"Enter",space:" ",spacebar:" ",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",arrowup:"ArrowUp",arrowdown:"ArrowDown",arrowleft:"ArrowLeft",arrowright:"ArrowRight",tab:"Tab",backspace:"Backspace",delete:"Delete",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown"},cu=["ctrl","alt","shift","meta"];function yT(e){const t=e.split("+").map(s=>s.trim()).filter(Boolean);if(t.length===0)return{modifiers:[],key:""};const n=new Set;let o="";for(let s=0;s<t.length;s++){const i=t[s],a=i.toLowerCase(),l=mT[a];if(l&&s!==t.length-1){n.add(l==="modPlaceholder"?Ky()?"meta":"ctrl":l);continue}/^[a-z]$/i.test(i)?(i!==i.toLowerCase()&&n.add("shift"),o=i.toLowerCase()):o=gT[a]??i}return{modifiers:cu.filter(s=>n.has(s)),key:o}}function Gy(e){return e.trim().split(/\s+/).map(yT)}function vT(e){return e.key?[...e.modifiers,e.key].join("+"):""}function bT(e){const t=e.key;if(!t||t==="Shift"||t==="Control"||t==="Alt"||t==="Meta")return"";const n=/^[a-z]$/i.test(t),o=n?t.toLowerCase():t,r=[];return e.ctrlKey&&r.push("ctrl"),e.altKey&&r.push("alt"),e.shiftKey&&(t.length>1||n)&&r.push("shift"),e.metaKey&&r.push("meta"),r.sort((s,i)=>cu.indexOf(s)-cu.indexOf(i)),[...r,o].join("+")}function Qp(e){const t=Ky(),n=[];for(const o of e.modifiers)o==="meta"?n.push(t?"⌘":"Win"):o==="ctrl"?n.push(t?"⌃":"Ctrl"):o==="alt"?n.push(t?"⌥":"Alt"):o==="shift"&&n.push("⇧");return n.push(wT(e.key)),n}function wT(e){return e==="Escape"?"Esc":e==="Enter"?"↵":e==="ArrowUp"?"↑":e==="ArrowDown"?"↓":e==="ArrowLeft"?"←":e==="ArrowRight"?"→":e===" "?"Space":e==="Tab"?"Tab":e}function Yu(e){const t=Gy(e);if(t.length===1)return Qp(t[0]);const n=[];for(const o of t)n.push(...Qp(o));return n}const Qy=at([]),Xa=at([]),Qr=new Map;function rc(e){if(!e)return null;try{return Tk(e)}catch(t){return typeof console<"u"&&console.warn(`[commands] failed to parse when expression: ${e}`,t),null}}function _T(e){Qr.clear();const t=[],n=[];for(const o of e){if(Qr.has(o.id)){typeof console<"u"&&console.warn(`[commands] duplicate command id: ${o.id}`);continue}const r={command:o,whenNode:rc(o.when),helpNode:typeof o.help=="string"?rc(o.help):null};if(t.push(r),Qr.set(o.id,r),o.keybindings)for(const s of o.keybindings){const i=typeof s=="string"?{key:s}:s,a=i.when??o.when;n.push({command:o,key:i.key,whenNode:rc(a),label:i.label})}}Qy.value=t,Xa.value=n}function Jy(e){const t=[];for(const n of Xa.value)n.command.id===e&&t.push({command:n.command,key:n.key,when:typeof n.command.when=="string"?n.command.when:void 0,label:n.label});return t}function ar(e,t){if(!e)return!0;try{return $k(e,t)}catch(n){return typeof console<"u"&&console.warn("[commands] when evaluation failed",n),!1}}function Yy(){return Qy.value}function ET(){return Xa.value}function Xy(e){const t=Ya(),n=M(()=>Qr.get(e)?.command),o=M(()=>Xa.value.filter(l=>l.command.id===e)),r=M(()=>{const l=o.value[0];return l?l.label?l.label:Yu(l.key):[]}),s=M(()=>o.value[0]?.key??""),i=M(()=>o.value.length>0),a=M(()=>{const l=Qr.get(e);return l?ar(l.whenNode,t.value):!1});return{command:n,label:r,key:s,active:a,hasKey:i}}const ST=ve({__name:"Kbd",props:{command:{},keys:{},active:{type:Boolean,default:!0},tone:{default:"default"}},setup(e){const t=e,n=yy(),o=M(()=>t.command?Xy(t.command):null),r=M(()=>o.value?o.value.label.value:Array.isArray(t.keys)?t.keys:t.keys?[t.keys]:[]),s=M(()=>o.value?o.value.active.value:t.active),i=M(()=>!s.value||n.value?"op30":t.tone==="muted"?"op60":"");return(a,l)=>A(r).length?(L(),Z("span",{key:0,class:ke(["inline-flex items-center gap-0.5 align-middle transition-opacity",A(i)])},[(L(!0),Z(Ee,null,xt(A(r),(u,c)=>(L(),Z("kbd",{key:c,class:"kbd"},de(u),1))),128))],2)):Ue("",!0)}}),xT=Object.assign(ST,{__name:"UiKbd"}),kT=ve({inheritAttrs:!1,__name:"WithCommand",props:{command:{},tone:{},placement:{default:"inline"}},setup(e){const n=Xy(e.command),o=M(()=>!n.active.value);function r(){if(o.value)return;const s=n.command.value;s&&s.run()}return(s,i)=>{const a=xT;return s.$slots.default?e.placement==="badge"?(L(),Z("span",_t({key:1,class:"relative inline-flex align-middle"},s.$attrs),[Pe(s.$slots,"default",{execute:r,disabled:A(o)}),ge(a,{command:e.command,tone:e.tone,class:"absolute -bottom-1 -right-1 pointer-events-none"},null,8,["command","tone"])],16)):(L(),Z("span",_t({key:2,class:"inline-flex items-center gap-1 align-middle"},s.$attrs),[Pe(s.$slots,"default",{execute:r,disabled:A(o)}),ge(a,{command:e.command,tone:e.tone},null,8,["command","tone"])],16)):(L(),ye(a,_t({key:0,command:e.command,tone:e.tone},s.$attrs),null,16,["command","tone"]))}}}),Zy=Object.assign(kT,{__name:"UiWithCommand"});function ev(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[i=>{const a=ht(o,i);if(a||a===null)return a;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(So(o,i),i)]}function to(){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 tv(e,t,n){const o=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(r)}function CT(e){return e==null}function AT(e,t){return _a()?(xv(e,t),!0):!1}function TT(e){let t=!1,n;const o=mu(!0);return((...r)=>(t||(n=o.run(()=>e(...r)),t=!0),n))}const so=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $T=e=>typeof e<"u",OT=Object.prototype.toString,PT=e=>OT.call(e)==="[object Object]",Jp=RT();function RT(){var e,t,n;return so&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function sc(e){return Array.isArray(e)?e:[e]}function IT(e){return Ze()}function MT(e){if(!so)return e;let t=0,n,o;const r=()=>{t-=1,o&&t<=0&&(o.stop(),n=void 0,o=void 0)};return((...s)=>(t+=1,o||(o=mu(!0),n=o.run(()=>e(...s))),AT(r),n))}function NT(e,t){IT()&&fr(e,t)}function DT(e,t,n){return Fe(e,t,{...n,immediate:!0})}const Xu=so?window:void 0;function Za(e){var t;const n=Ie(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function nv(...e){const t=(o,r,s,i)=>(o.addEventListener(r,s,i),()=>o.removeEventListener(r,s,i)),n=M(()=>{const o=sc(Ie(e[0])).filter(r=>r!=null);return o.every(r=>typeof r!="string")?o:void 0});return DT(()=>{var o,r;return[(o=(r=n.value)===null||r===void 0?void 0:r.map(s=>Za(s)))!==null&&o!==void 0?o:[Xu].filter(s=>s!=null),sc(Ie(n.value?e[1]:e[0])),sc(A(n.value?e[2]:e[1])),Ie(n.value?e[3]:e[2])]},([o,r,s,i],a,l)=>{if(!o?.length||!r?.length||!s?.length)return;const u=PT(i)?{...i}:i,c=o.flatMap(f=>r.flatMap(p=>s.map(d=>t(f,p,d,u))));l(()=>{c.forEach(f=>f())})},{flush:"post"})}function LT(){const e=at(!1),t=Ze();return t&&ro(()=>{e.value=!0},t),e}function jT(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function HT(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=Xu,eventName:s="keydown",passive:i=!1,dedupe:a=!1}=o,l=jT(t);return nv(r,s,c=>{c.repeat&&Ie(a)||l(c)&&n(c)},i)}function FT(e){return JSON.parse(JSON.stringify(e))}function BT(e,t,n,o={}){var r,s;const{clone:i=!1,passive:a=!1,eventName:l,deep:u=!1,defaultValue:c,shouldEmit:f}=o,p=Ze(),d=n||p?.emit||(p==null||(r=p.$emit)===null||r===void 0?void 0:r.bind(p))||(p==null||(s=p.proxy)===null||s===void 0||(s=s.$emit)===null||s===void 0?void 0:s.bind(p?.proxy));let m=l;t||(t="modelValue"),m=m||`update:${t.toString()}`;const g=h=>i?typeof i=="function"?i(h):FT(h):h,b=()=>$T(e[t])?g(e[t]):c,v=h=>{f?f(h)&&d(m,h):d(m,h)};if(a){const h=B(b());let y=!1;return Fe(()=>e[t],w=>{y||(y=!0,h.value=g(w),lt(()=>y=!1))}),Fe(h,w=>{!y&&(w!==e[t]||u)&&v(w)},{deep:u}),h}else return M({get(){return b()},set(h){v(h)}})}function Zu(e){return e?e.flatMap(t=>t.type===Ee?Zu(t.children):[t]):[]}const[UT]=ev("ConfigProvider"),zT=MT(()=>{const e=B(new Map),t=B(),n=M(()=>{for(const i of e.value.values())if(i)return!0;return!1}),o=UT({scrollBody:B(!0)});let r=null;const s=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",Jp&&r?.(),t.value=void 0};return Fe(n,(i,a)=>{if(!so)return;if(!i){a&&s();return}t.value===void 0&&(t.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,u={padding:l,margin:0},c=o.scrollBody?.value?typeof o.scrollBody.value=="object"?Iu({padding:o.scrollBody.value.padding===!0?l:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?l:o.scrollBody.value.margin},u):u:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=typeof c.padding=="number"?`${c.padding}px`:String(c.padding),document.body.style.marginRight=typeof c.margin=="number"?`${c.margin}px`:String(c.margin),document.documentElement.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),Jp&&(r=nv(document,"touchmove",f=>WT(f),{passive:!1})),lt(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function qT(e){const t=Math.random().toString(36).substring(2,7),n=zT();n.value.set(t,e);const o=M({get:()=>n.value.get(t)??!1,set:r=>n.value.set(t,r)});return NT(()=>{n.value.delete(t)}),o}function ov(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:ov(n)}}function WT(e){const t=e||window.event,n=t.target;return n instanceof Element&&ov(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function ef(e){const t=Ze(),n=t?.type.emits,o={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(r=>{o[yi(it(r))]=(...s)=>e(r,...s)}),o}function vn(){const e=Ze(),t=B(),n=M(()=>o());Oa(()=>{n.value!==o()&&Kv(t)});function o(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Za(t)}const r=Object.assign({},e.exposed),s={};for(const a in e.props)Object.defineProperty(s,a,{enumerable:!0,configurable:!0,get:()=>e.props[a]});if(Object.keys(r).length>0)for(const a in r)Object.defineProperty(s,a,{enumerable:!0,configurable:!0,get:()=>r[a]});Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=s;function i(a){if(t.value=a,!!a&&(Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>a instanceof Element?a:a.$el}),!(a instanceof Element)&&!Object.hasOwn(a,"$el"))){const l=a.$.exposed,u=Object.assign({},s);for(const c in l)Object.defineProperty(u,c,{enumerable:!0,configurable:!0,get:()=>l[c]});e.exposed=u}}return{forwardRef:i,currentRef:t,currentElement:n}}var VT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Lo=new WeakMap,di=new WeakMap,pi={},ic=0,rv=function(e){return e&&(e.host||rv(e.parentNode))},KT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=rv(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},GT=function(e,t,n,o){var r=KT(t,Array.isArray(e)?e:[e]);pi[n]||(pi[n]=new WeakMap);var s=pi[n],i=[],a=new Set,l=new Set(r),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};r.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(a.has(p))c(p);else try{var d=p.getAttribute(o),m=d!==null&&d!=="false",g=(Lo.get(p)||0)+1,b=(s.get(p)||0)+1;Lo.set(p,g),s.set(p,b),i.push(p),g===1&&m&&di.set(p,!0),b===1&&p.setAttribute(n,"true"),m||p.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return c(t),a.clear(),ic++,function(){i.forEach(function(f){var p=Lo.get(f)-1,d=s.get(f)-1;Lo.set(f,p),s.set(f,d),p||(di.has(f)||f.removeAttribute(o),di.delete(f)),d||f.removeAttribute(n)}),ic--,ic||(Lo=new WeakMap,Lo=new WeakMap,di=new WeakMap,pi={})}},QT=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=VT(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),GT(o,r,n,"aria-hidden")):function(){return null}};function JT(e){let t;Fe(()=>Za(e),n=>{let o=!1;try{o=!!n?.closest("[popover]:not(:popover-open)")}catch{}n&&!o?t=QT(n):t&&t()}),Pa(()=>{t&&t()})}function Yp(e,t="reka"){let n;return n=yb?.(),t?`${t}-${n}`:n}function YT(e,t){const n=B(e);function o(s){return t[n.value][s]??n.value}return{state:n,dispatch:s=>{n.value=o(s)}}}function XT(e,t){const n=B({}),o=B("none"),r=B(e),s=e.value?"mounted":"unmounted";let i;const a=t.value?.ownerDocument.defaultView??Xu,{state:l,dispatch:u}=YT(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),c=b=>{if(so){const v=new CustomEvent(b,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(v)}};Fe(e,async(b,v)=>{const h=v!==b;if(await lt(),h){const y=o.value,w=hi(t.value);b?(u("MOUNT"),c("enter"),w==="none"&&c("after-enter")):w==="none"||w==="undefined"||n.value?.display==="none"?(u("UNMOUNT"),c("leave"),c("after-leave")):v&&y!==w?(u("ANIMATION_OUT"),c("leave")):(u("UNMOUNT"),c("after-leave"))}},{immediate:!0});const f=b=>{const v=hi(t.value),h=v.includes(CSS.escape(b.animationName)),y=l.value==="mounted"?"enter":"leave";if(b.target===t.value&&h&&(c(`after-${y}`),u("ANIMATION_END"),!r.value)){const w=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",i=a?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=w)})}b.target===t.value&&v==="none"&&u("ANIMATION_END")},p=b=>{b.target===t.value&&(o.value=hi(t.value))},d=Fe(t,(b,v)=>{b?(n.value=getComputedStyle(b),b.addEventListener("animationstart",p),b.addEventListener("animationcancel",f),b.addEventListener("animationend",f)):(u("ANIMATION_END"),i!==void 0&&a?.clearTimeout(i),v?.removeEventListener("animationstart",p),v?.removeEventListener("animationcancel",f),v?.removeEventListener("animationend",f))},{immediate:!0}),m=Fe(l,()=>{const b=hi(t.value);o.value=l.value==="mounted"?b:"none"});return Pa(()=>{d(),m()}),{isPresent:M(()=>["mounted","unmountSuspended"].includes(l.value))}}function hi(e){return e&&getComputedStyle(e).animationName||"none"}var sv=ve({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){const{present:o,forceMount:r}=Lh(e),s=B(),{isPresent:i}=XT(o,s);n({present:i});let a=t.default({present:i.value});a=Zu(a||[]);const l=Ze();if(a&&a?.length>1){const u=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` 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(c=>` - ${c}`).join(`
|
|
10
|
+
`)].join(`
|
|
11
|
+
`))}return()=>r.value||o.value||i.value?st(t.default({present:i.value})[0],{ref:u=>{const c=Za(u);return typeof c?.hasAttribute>"u"||(c?.hasAttribute("data-reka-popper-content-wrapper")?s.value=c.firstElementChild:s.value=c),c}}):null}});const ZT=ve({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;const o=Zu(n.default()),r=o.findIndex(l=>l.type!==We);if(r===-1)return o;const s=o[r];delete s.props?.ref;const i=s.props?_t(t,s.props):t,a=hn({...s,props:{}},i);return o.length===1?a:(o[r]=a,o)}}}),e$=["area","img","input"],Os=ve({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const o=e.asChild?"template":e.as;return typeof o=="string"&&e$.includes(o)?()=>st(o,t):o!=="template"?()=>st(e.as,t,{default:n.default}):()=>st(ZT,t,{default:n.default})}}),[io,t$]=ev("DialogRoot");var n$=ve({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=BT(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),s=B(),i=B(),{modal:a}=Lh(n);return t$({open:r,modal:a,openModal:()=>{r.value=!0},onOpenChange:l=>{r.value=l},onOpenToggle:()=>{r.value=!r.value},contentId:"",titleId:"",descriptionId:"",triggerElement:s,contentElement:i}),(l,u)=>Pe(l.$slots,"default",{open:A(r),close:()=>r.value=!1})}}),o$=n$;const r$="dismissableLayer.pointerDownOutside",s$="dismissableLayer.focusOutside";function iv(e,t){if(!(t instanceof Element))return!1;const n=t.closest("[data-dismissable-layer]"),o=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),r=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(o===n||r.indexOf(o)<r.indexOf(n)))}function i$(e,t,n=!0){const o=t?.value?.ownerDocument??globalThis?.document,r=B(!1),s=B(()=>{});return Dn(i=>{if(!so||!Ie(n))return;const a=async u=>{const c=u.target;if(!(!t?.value||!c)){if(iv(t.value,c)){r.value=!1;return}if(u.target&&!r.value){let p=function(){tv(r$,e,f)};const f={originalEvent:u};u.pointerType==="touch"?(o.removeEventListener("click",s.value),s.value=p,o.addEventListener("click",s.value,{once:!0})):p()}else o.removeEventListener("click",s.value);r.value=!1}},l=window.setTimeout(()=>{o.addEventListener("pointerdown",a)},0);i(()=>{window.clearTimeout(l),o.removeEventListener("pointerdown",a),o.removeEventListener("click",s.value)})}),{onPointerDownCapture:()=>{Ie(n)&&(r.value=!0)}}}function a$(e,t,n=!0){const o=t?.value?.ownerDocument??globalThis?.document,r=B(!1);return Dn(s=>{if(!so||!Ie(n))return;const i=async a=>{if(!t?.value)return;await lt(),await lt();const l=a.target;!t.value||!l||iv(t.value,l)||a.target&&!r.value&&tv(s$,e,{originalEvent:a})};o.addEventListener("focusin",i),s(()=>o.removeEventListener("focusin",i))}),{onFocusCapture:()=>{Ie(n)&&(r.value=!0)},onBlurCapture:()=>{Ie(n)&&(r.value=!1)}}}const Mt=jt({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var l$=ve({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:r,currentElement:s}=vn(),i=M(()=>s.value?.ownerDocument??globalThis.document),a=M(()=>Mt.layersRoot),l=M(()=>s.value?Array.from(a.value).indexOf(s.value):-1),u=M(()=>Mt.layersWithOutsidePointerEventsDisabled.size>0),c=M(()=>{const d=Array.from(a.value),[m]=[...Mt.layersWithOutsidePointerEventsDisabled].slice(-1),g=d.indexOf(m);return l.value>=g}),f=i$(async d=>{const m=[...Mt.branches].some(g=>g?.contains(d.target));!c.value||m||(o("pointerDownOutside",d),o("interactOutside",d),await lt(),d.defaultPrevented||o("dismiss"))},s),p=a$(d=>{[...Mt.branches].some(g=>g?.contains(d.target))||(o("focusOutside",d),o("interactOutside",d),d.defaultPrevented||o("dismiss"))},s);return HT("Escape",d=>{l.value===a.value.size-1&&(o("escapeKeyDown",d),d.defaultPrevented||o("dismiss"))}),Dn(d=>{s.value&&(n.disableOutsidePointerEvents&&(Mt.layersWithOutsidePointerEventsDisabled.size===0&&(Mt.originalBodyPointerEvents=i.value.body.style.pointerEvents,i.value.body.style.pointerEvents="none"),Mt.layersWithOutsidePointerEventsDisabled.add(s.value)),a.value.add(s.value),d(()=>{n.disableOutsidePointerEvents&&Mt.layersWithOutsidePointerEventsDisabled.size===1&&!CT(Mt.originalBodyPointerEvents)&&(i.value.body.style.pointerEvents=Mt.originalBodyPointerEvents)}))}),Dn(d=>{d(()=>{s.value&&(a.value.delete(s.value),Mt.layersWithOutsidePointerEventsDisabled.delete(s.value))})}),(d,m)=>(L(),ye(A(Os),{ref:A(r),"as-child":d.asChild,as:d.as,"data-dismissable-layer":"",style:un({pointerEvents:u.value?c.value?"auto":"none":void 0}),onFocusCapture:A(p).onFocusCapture,onBlurCapture:A(p).onBlurCapture,onPointerdownCapture:A(f).onPointerDownCapture},{default:he(()=>[Pe(d.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),c$=l$;const u$=TT(()=>B([]));function f$(){const e=u$();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=Xp(e.value,t),e.value.unshift(t)},remove(t){e.value=Xp(e.value,t),e.value[0]?.resume()}}}function Xp(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}const ac="focusScope.autoFocusOnMount",lc="focusScope.autoFocusOnUnmount",Zp={bubbles:!1,cancelable:!0};function d$(e,{select:t=!1}={}){const n=to();for(const o of e)if(Vn(o,{select:t}),to()!==n)return!0}function p$(e){const t=av(e),n=eh(t,e),o=eh(t.reverse(),e);return[n,o]}function av(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function eh(e,t){for(const n of e)if(!h$(n,{upTo:t}))return n}function h$(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function m$(e){return e instanceof HTMLInputElement&&"select"in e}function Vn(e,{select:t=!1}={}){if(e&&e.focus){const n=to();e.focus({preventScroll:!0}),e!==n&&m$(e)&&t&&e.select()}}var g$=ve({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,o=t,{currentRef:r,currentElement:s}=vn(),i=B(null),a=f$(),l=jt({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Dn(c=>{if(!so)return;const f=s.value;if(!n.trapped)return;function p(b){if(l.paused||!f)return;const v=b.target;f.contains(v)?i.value=v:Vn(i.value,{select:!0})}function d(b){if(l.paused||!f)return;const v=b.relatedTarget;v!==null&&(f.contains(v)||Vn(i.value,{select:!0}))}function m(b){const v=i.value;if(v===null||!b.some(w=>w.removedNodes.length>0))return;f.contains(v)||Vn(f)}document.addEventListener("focusin",p),document.addEventListener("focusout",d);const g=new MutationObserver(m);f&&g.observe(f,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",d),g.disconnect()})}),Dn(async c=>{const f=s.value;if(await lt(),!f)return;a.add(l);const p=to();if(!f.contains(p)){const m=new CustomEvent(ac,Zp);f.addEventListener(ac,g=>o("mountAutoFocus",g)),f.dispatchEvent(m),m.defaultPrevented||(d$(av(f),{select:!0}),to()===p&&Vn(f))}c(()=>{f.removeEventListener(ac,b=>o("mountAutoFocus",b));const m=new CustomEvent(lc,Zp),g=b=>{o("unmountAutoFocus",b)};f.addEventListener(lc,g),f.dispatchEvent(m),setTimeout(()=>{m.defaultPrevented||Vn(p??document.body,{select:!0}),f.removeEventListener(lc,g),a.remove(l)},0)})});function u(c){if(!n.loop&&!n.trapped||l.paused)return;const f=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,p=to();if(f&&p){const d=c.currentTarget,[m,g]=p$(d);m&&g?!c.shiftKey&&p===g?(c.preventDefault(),n.loop&&Vn(m,{select:!0})):c.shiftKey&&p===m&&(c.preventDefault(),n.loop&&Vn(g,{select:!0})):p===d&&c.preventDefault()}}return(c,f)=>(L(),ye(A(Os),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:u},{default:he(()=>[Pe(c.$slots,"default")]),_:3},8,["as-child","as"]))}}),y$=g$;function v$(e){return e?"open":"closed"}var b$=ve({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=io(),{forwardRef:s,currentElement:i}=vn();return r.titleId||=Yp(void 0,"reka-dialog-title"),r.descriptionId||=Yp(void 0,"reka-dialog-description"),ro(()=>{r.contentElement=i,to()!==document.body&&(r.triggerElement.value=to())}),(a,l)=>(L(),ye(A(y$),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:l[5]||(l[5]=u=>o("openAutoFocus",u)),onUnmountAutoFocus:l[6]||(l[6]=u=>o("closeAutoFocus",u))},{default:he(()=>[ge(A(c$),_t({id:A(r).contentId,ref:A(s),as:a.as,"as-child":a.asChild,"disable-outside-pointer-events":a.disableOutsidePointerEvents,role:"dialog","aria-describedby":A(r).descriptionId,"aria-labelledby":A(r).titleId,"data-state":A(v$)(A(r).open.value)},a.$attrs,{onDismiss:l[0]||(l[0]=u=>A(r).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=u=>o("escapeKeyDown",u)),onFocusOutside:l[2]||(l[2]=u=>o("focusOutside",u)),onInteractOutside:l[3]||(l[3]=u=>o("interactOutside",u)),onPointerDownOutside:l[4]||(l[4]=u=>o("pointerDownOutside",u))}),{default:he(()=>[Pe(a.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),lv=b$,w$=ve({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=io(),s=ef(o),{forwardRef:i,currentElement:a}=vn();return JT(a),(l,u)=>(L(),ye(lv,_t({...n,...A(s)},{ref:A(i),"trap-focus":A(r).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:u[0]||(u[0]=c=>{c.defaultPrevented||(c.preventDefault(),A(r).triggerElement.value?.focus())}),onPointerDownOutside:u[1]||(u[1]=c=>{const f=c.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0;(f.button===2||p)&&c.preventDefault()}),onFocusOutside:u[2]||(u[2]=c=>{c.preventDefault()})}),{default:he(()=>[Pe(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),_$=w$,E$=ve({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=ef(t);vn();const s=io(),i=B(!1),a=B(!1);return(l,u)=>(L(),ye(lv,_t({...n,...A(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:u[0]||(u[0]=c=>{c.defaultPrevented||(i.value||A(s).triggerElement.value?.focus(),c.preventDefault()),i.value=!1,a.value=!1}),onInteractOutside:u[1]||(u[1]=c=>{c.defaultPrevented||(i.value=!0,c.detail.originalEvent.type==="pointerdown"&&(a.value=!0));const f=c.target;A(s).triggerElement.value?.contains(f)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&a.value&&c.preventDefault()})}),{default:he(()=>[Pe(l.$slots,"default")]),_:3},16))}}),S$=E$,x$=ve({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=io(),s=ef(o),{forwardRef:i}=vn();return(a,l)=>(L(),ye(A(sv),{present:a.forceMount||A(r).open.value},{default:he(()=>[A(r).modal.value?(L(),ye(_$,_t({key:0,ref:A(i)},{...n,...A(s),...a.$attrs}),{default:he(()=>[Pe(a.$slots,"default")]),_:3},16)):(L(),ye(S$,_t({key:1,ref:A(i)},{...n,...A(s),...a.$attrs}),{default:he(()=>[Pe(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),k$=x$,C$=ve({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;vn();const n=io();return(o,r)=>(L(),ye(A(Os),_t(t,{id:A(n).descriptionId}),{default:he(()=>[Pe(o.$slots,"default")]),_:3},16,["id"]))}}),A$=C$,T$=ve({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=io();return qT(!0),vn(),(n,o)=>(L(),ye(A(Os),{as:n.as,"as-child":n.asChild,"data-state":A(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:he(()=>[Pe(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),$$=T$,O$=ve({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=io(),{forwardRef:n}=vn();return(o,r)=>A(t)?.modal.value?(L(),ye(A(sv),{key:0,present:o.forceMount||A(t).open.value},{default:he(()=>[ge($$,_t(o.$attrs,{ref:A(n),as:o.as,"as-child":o.asChild}),{default:he(()=>[Pe(o.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):Ue("v-if",!0)}}),P$=O$,R$=ve({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=LT();return(n,o)=>A(t)||n.forceMount?(L(),ye(hb,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[Pe(n.$slots,"default")],8,["to","disabled","defer"])):Ue("v-if",!0)}}),I$=R$,M$=ve({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,o)=>(L(),ye(A(I$),hu(Ma(t)),{default:he(()=>[Pe(n.$slots,"default")]),_:3},16))}}),N$=M$,D$=ve({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,n=io();return vn(),(o,r)=>(L(),ye(A(Os),_t(t,{id:A(n).titleId}),{default:he(()=>[Pe(o.$slots,"default")]),_:3},16,["id"]))}}),L$=D$;const j$=ve({__name:"IconButton",props:{icon:{},tooltip:{},ariaLabel:{},size:{default:"md"},active:{type:Boolean},disabled:{type:Boolean},as:{default:"button"},href:{},target:{},rel:{},type:{default:"button"},dataTestid:{},spinning:{type:Boolean},tooltipSide:{default:"bottom"}},setup(e){const t=e,n=M(()=>t.size==="sm"?"w-6 h-6 text-sm":t.size==="lg"?"w-10 h-10":"w-9 h-9"),o=M(()=>`${n.value} rounded-full transition flex items-center justify-center outline-none focus-visible:ring-2 focus-visible:ring-primary-500/40 disabled:pointer-events-none disabled:op30`),r=M(()=>t.active?"op100 color-active bg-active":"op-fade hover:op100 hover:bg-active");return(s,i)=>e.tooltip?(L(),ye(A(Bx),{key:0,placement:e.tooltipSide,distance:10,class:"inline-flex"},{popper:he(()=>[qe(de(e.tooltip),1)]),default:he(()=>[(L(),ye(gc(e.as),{type:e.as==="button"?e.type:void 0,disabled:e.as==="button"?e.disabled:void 0,href:e.as==="a"?e.href:void 0,target:e.as==="a"?e.target:void 0,rel:e.as==="a"?e.rel:void 0,"aria-label":e.ariaLabel??e.tooltip,"data-testid":e.dataTestid,class:ke([o.value,r.value,"relative"])},{default:he(()=>[e.icon?(L(),Z("span",{key:0,class:ke([e.icon,e.spinning?"animate-spin":""])},null,2)):Ue("",!0),Pe(s.$slots,"default"),Pe(s.$slots,"badge")]),_:3},8,["type","disabled","href","target","rel","aria-label","data-testid","class"]))]),_:3},8,["placement"])):(L(),ye(gc(e.as),{key:1,type:e.as==="button"?e.type:void 0,disabled:e.as==="button"?e.disabled:void 0,href:e.as==="a"?e.href:void 0,target:e.as==="a"?e.target:void 0,rel:e.as==="a"?e.rel:void 0,"aria-label":e.ariaLabel,"data-testid":e.dataTestid,class:ke([o.value,r.value,"relative"])},{default:he(()=>[e.icon?(L(),Z("span",{key:0,class:ke([e.icon,e.spinning?"animate-spin":""])},null,2)):Ue("",!0),Pe(s.$slots,"default"),Pe(s.$slots,"badge")]),_:3},8,["type","disabled","href","target","rel","aria-label","data-testid","class"]))}}),tf=Object.assign(j$,{__name:"UiIconButton"}),H$={key:0,class:"px-5 py-3 border-b border-base flex items-center gap-2"},F$={class:"flex-1 overflow-y-auto"},B$={key:2,class:"px-5 py-3 border-t border-base flex items-center justify-end gap-2"},U$=ve({__name:"Modal",props:Mb({title:{},icon:{},description:{},width:{default:"w-[min(92vw,32rem)]"},maxHeight:{default:"max-h-[80vh]"},dataTestid:{},closeOnBackdrop:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},hideClose:{type:Boolean}},{open:{type:Boolean,required:!0},openModifiers:{}}),emits:["update:open"],setup(e){const t=xu(e,"open");function n(s){t.value&&!s.defaultPrevented&&s.cancelable}function o(s){t.value&&s.key==="Escape"&&!s.defaultPrevented&&(t.value=!1)}function r(){t.value=!1}return(s,i)=>{const a=P$,l=L$,u=tf,c=A$,f=k$,p=N$,d=o$;return L(),ye(d,{open:t.value,"onUpdate:open":i[3]||(i[3]=m=>t.value=m)},{default:he(()=>[ge(p,null,{default:he(()=>[ge(a,{class:"fixed inset-0 bg-black/40 z-modal-backdrop",onClick:i[0]||(i[0]=m=>e.closeOnBackdrop?r():null)}),ge(f,{"data-testid":e.dataTestid,class:ke(["fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 panel-card shadow-xl z-modal-content flex flex-col overflow-hidden",[e.width,e.maxHeight]]),onEscapeKeyDown:i[1]||(i[1]=m=>e.closeOnEscape?null:o(m)),onPointerDownOutside:i[2]||(i[2]=m=>e.closeOnBackdrop?null:g=>g.preventDefault()),onInteractOutside:n},{default:he(()=>[e.title||s.$slots.header||s.$slots.actions?(L(),Z("header",H$,[Pe(s.$slots,"header",{},()=>[e.icon?(L(),Z("span",{key:0,class:ke([e.icon,"color-active shrink-0"])},null,2)):Ue("",!0),ge(l,{class:"font-medium text-sm"},{default:he(()=>[qe(de(e.title),1)]),_:1})]),i[4]||(i[4]=T("div",{class:"flex-1"},null,-1)),Pe(s.$slots,"actions"),e.hideClose?Ue("",!0):(L(),ye(u,{key:0,icon:"i-ph-x",size:"sm","aria-label":"Close",onClick:r}))])):Ue("",!0),e.description?(L(),ye(c,{key:1,class:"sr-only"},{default:he(()=>[qe(de(e.description),1)]),_:1})):Ue("",!0),T("div",F$,[Pe(s.$slots,"default")]),s.$slots.footer?(L(),Z("footer",B$,[Pe(s.$slots,"footer")])):Ue("",!0)]),_:3},8,["data-testid","class"])]),_:3})]),_:3},8,["open"])}}}),dr=Object.assign(U$,{__name:"UiModal"}),z$={class:"px-5 py-3 flex flex-col gap-1"},q$={key:0,class:"text-sm color-muted text-center py-8"},W$={key:1,class:"flex flex-col"},V$={class:"font-mono text-xs color-muted tabular-nums"},K$={class:"flex-1 text-sm truncate"},G$=["title","onClick"],Q$=ve({__name:"IgnoredDialog",props:{open:{type:Boolean,required:!0},openModifiers:{}},emits:["update:open"],setup(e){const t=xu(e,"open"),n=Jt(),o=Ne(),r=M(()=>{const i=n.uiState.ignored??[],a=o.payload.value?.syncState.items??{};return i.map(l=>{const u=a[String(l)];return{number:l,title:u?.data.item.title??"(unknown)",kind:u?.data.item.kind??"issue"}}).sort((l,u)=>u.number-l.number)});function s(i){n.removeIgnored(i)}return(i,a)=>{const l=dr;return L(),ye(l,{open:t.value,"onUpdate:open":a[1]||(a[1]=u=>t.value=u),title:"Ignored items",icon:"i-ph-eye-slash-duotone",width:"w-[min(92vw,32rem)]"},{footer:he(()=>[T("button",{type:"button",class:"btn-action-sm",onClick:a[0]||(a[0]=u=>t.value=!1)}," Close ")]),default:he(()=>[T("div",z$,[A(r).length===0?(L(),Z("p",q$," No ignored items. ")):(L(),Z("ul",W$,[(L(!0),Z(Ee,null,xt(A(r),u=>(L(),Z("li",{key:u.number,class:"flex items-center gap-3 py-1.5 border-b border-base last:border-b-0"},[T("span",{class:ke(u.kind==="pull"?"i-octicon-git-pull-request-16 color-muted":"i-octicon-issue-opened-16 color-muted")},null,2),T("span",V$,"#"+de(u.number),1),T("span",K$,de(u.title),1),T("button",{type:"button",class:"btn-action-sm shrink-0",title:`Un-ignore #${u.number}`,"data-testid":"ignored-dialog-unignore",onClick:c=>s(u.number)},[...a[2]||(a[2]=[T("span",{class:"i-ph-arrow-counter-clockwise-duotone"},null,-1),qe(" Un-ignore ",-1)])],8,G$)]))),128))]))])]),_:1},8,["open"])}}}),J$=Object.assign(Q$,{__name:"PanelIgnoredDialog"});function Y$(){return Ek("kyoto:collapse-bot-comments",!0)}const mi=B(null),cc=B(!1);function X$(){async function e(){try{const n=await Ve().$call("ghfs:hub-settings");mi.value=n,cc.value=!0}catch{mi.value={},cc.value=!0}}async function t(n){const o={autoSyncIntervalMs:n},r=await Ve().$call("ghfs:hub-set-settings",o);mi.value=r}return{settings:M(()=>mi.value),hydrated:M(()=>cc.value),load:e,setAutoSyncIntervalMs:t}}const Z$={class:"px-5 py-4 flex flex-col gap-6"},eO={key:0,class:"flex flex-col gap-2"},tO=["disabled","onClick"],nO={key:1,class:"flex flex-col gap-2"},oO={key:0,class:"flex flex-col gap-1 border border-base rounded bg-base/40","data-testid":"settings-hub-roots-list"},rO=["data-path"],sO=["title"],iO=["disabled"],aO=["disabled","onClick"],lO=["aria-label","onClick"],cO={key:1,class:"text-xs color-muted italic"},uO={class:"flex gap-2"},fO=["disabled"],dO={key:2,class:"text-xs color-yellow-700 dark:color-yellow-300 flex items-start gap-1.5"},pO={class:"flex flex-col gap-2"},hO={class:"text-xs color-muted"},mO={class:"flex items-center gap-2"},gO=["value"],yO={class:"text-xs color-muted","data-testid":"settings-auto-sync-display"},vO={class:"flex flex-col gap-2"},bO={class:"flex items-center justify-between gap-3 text-sm"},wO={class:"flex items-center justify-between gap-3 text-sm"},_O={class:"flex items-center justify-between gap-3 text-sm"},EO=ve({__name:"Settings",props:{open:{type:Boolean,required:!0},openModifiers:{}},emits:["update:open"],setup(e){const t=xu(e,"open"),n=gy(),o=Y$(),r=Lt(),s=X$(),i=Jt(),a=B(!1),l=M(()=>(i.uiState.ignored??[]).length),u=M(()=>r.capabilities.value?.mode==="hub"?"hub":"project"),c=B(""),f=B(null),p=B(!1),d=B(null),m=B(null),g=B(0);Fe(t,async k=>{if(!k){d.value=null;return}if(f.value=null,c.value="",u.value==="hub"){await s.load();const S=s.settings.value?.autoSyncIntervalMs;g.value=S?Math.round(S/6e4):0}else{const S=i.uiState.autoSyncIntervalMs;g.value=S?Math.round(S/6e4):0}});async function b(){const k=c.value.trim();if(!(!k||p.value)){p.value=!0,f.value=null;try{const P=await Ve().$call("ghfs:hub-add-root",k);r.setHubInfo(P),c.value=""}catch(S){f.value=S.message}finally{p.value=!1}}}function v(k){d.value=k}function h(){d.value=null}async function y(k){if(!m.value){m.value=k,f.value=null;try{const P=await Ve().$call("ghfs:hub-remove-root",k);r.setHubInfo(P),d.value=null}catch(S){f.value=S.message}finally{m.value=null}}}async function w(k){const S=Math.max(0,Math.round(k));g.value=S;const P=S===0?void 0:Math.min(Math.max(S*6e4,6e4),36e5);u.value==="hub"?await s.setAutoSyncIntervalMs(P):i.setAutoSyncIntervalMs(P)}const _=M(()=>g.value<=0?"Off — sync only when triggered manually.":g.value===1?"Every minute.":`Every ${g.value} minutes.`);return(k,S)=>{const P=Zy,$=J$,O=dr;return L(),ye(O,{open:t.value,"onUpdate:open":S[7]||(S[7]=N=>t.value=N),title:"Settings",icon:"i-ph-gear-six-duotone",width:"w-[min(92vw,36rem)]","data-testid":"settings-dialog"},{footer:he(()=>[T("button",{type:"button",class:"btn-action-sm",onClick:S[6]||(S[6]=N=>t.value=!1)}," Close ")]),default:he(()=>[T("div",Z$,[A(u)==="hub"?(L(),Z("section",eO,[S[9]||(S[9]=T("header",{class:"flex items-center gap-1.5"},[T("span",{class:"i-ph-sliders-duotone color-active text-sm"}),T("h3",{class:"text-sm font-medium"},"Projects")],-1)),S[10]||(S[10]=T("p",{class:"text-xs color-muted"},"Choose which scanned repositories appear in the hub.",-1)),T("div",null,[ge(P,{command:"hub.manage"},{default:he(({execute:N,disabled:C})=>[T("button",{type:"button",class:"btn-action-sm","data-testid":"settings-manage-projects",disabled:C,onClick:N},[...S[8]||(S[8]=[T("span",{class:"i-ph-sliders-duotone"},null,-1),T("span",null,"Manage projects",-1)])],8,tO)]),_:1})])])):Ue("",!0),A(u)==="hub"?(L(),Z("section",nO,[S[16]||(S[16]=T("header",{class:"flex items-center gap-1.5"},[T("span",{class:"i-ph-folder-duotone color-active text-sm"}),T("h3",{class:"text-sm font-medium"},"Hub roots")],-1)),S[17]||(S[17]=T("p",{class:"text-xs color-muted"},"Directories the hub scans for projects. Add as many as you like — all of their enabled projects appear together on the hub home.",-1)),A(r).hubRoots.value.length>0?(L(),Z("ul",oO,[(L(!0),Z(Ee,null,xt(A(r).hubRoots.value,N=>(L(),Z("li",{key:N,class:"flex items-center gap-2 px-2.5 py-1.5 border-b border-base last:border-b-0","data-testid":"settings-hub-root-row","data-path":N},[S[13]||(S[13]=T("span",{class:"i-ph-folder-duotone color-muted shrink-0 text-sm"},null,-1)),T("span",{class:"flex-1 truncate text-xs font-mono",title:N},de(N),9,sO),A(d)===N?(L(),Z(Ee,{key:0},[T("button",{type:"button",class:"btn-action-sm text-xs","data-testid":"settings-hub-root-remove-cancel",disabled:A(m)===N,onClick:h}," Cancel ",8,iO),T("button",{type:"button",class:"btn-action-sm text-xs color-yellow-700 dark:color-yellow-300","data-testid":"settings-hub-root-remove-confirm",disabled:A(m)===N,onClick:C=>y(N)},[T("span",{class:ke(A(m)===N?"i-octicon-sync-16 animate-spin":"i-ph-trash-duotone")},null,2),S[11]||(S[11]=T("span",null,"Confirm",-1))],8,aO)],64)):(L(),Z("button",{key:1,type:"button",class:"btn-action-sm text-xs","data-testid":"settings-hub-root-remove","aria-label":`Remove ${N}`,onClick:C=>v(N)},[...S[12]||(S[12]=[T("span",{class:"i-ph-x-bold"},null,-1),T("span",null,"Remove",-1)])],8,lO))],8,rO))),128))])):(L(),Z("p",cO," No hub roots configured. Add one to start scanning for projects. ")),T("div",uO,[Dr(T("input",{"onUpdate:modelValue":S[0]||(S[0]=N=>Le(c)?c.value=N:null),type:"text",class:"flex-1 border border-base rounded bg-base px-2.5 py-1.5 text-sm font-mono outline-none focus:border-active focus:ring-2 focus:ring-primary-500/30",placeholder:"/Users/me/projects","data-testid":"settings-hub-root-add-input",onKeydown:Bm(b,["enter"])},null,544),[[Hm,A(c)]]),T("button",{type:"button",class:"btn-action-sm","data-testid":"settings-hub-root-add",disabled:A(p)||!A(c).trim(),onClick:b},[T("span",{class:ke(A(p)?"i-octicon-sync-16 animate-spin":"i-ph-plus-bold")},null,2),S[14]||(S[14]=T("span",null,"Add",-1))],8,fO)]),A(f)?(L(),Z("p",dO,[S[15]||(S[15]=T("span",{class:"i-ph-warning-duotone mt-0.5 shrink-0"},null,-1)),T("span",null,de(A(f)),1)])):Ue("",!0)])):Ue("",!0),T("section",pO,[S[20]||(S[20]=T("header",{class:"flex items-center gap-1.5"},[T("span",{class:"i-octicon-sync-16 color-active text-sm"}),T("h3",{class:"text-sm font-medium"},"Auto-sync")],-1)),T("p",hO,de(A(u)==="hub"?"Re-sync every project with a token on a fixed interval.":"Re-sync this project on a fixed interval."),1),T("div",mO,[T("input",{value:A(g),type:"number",min:"0",max:"60",step:"1",class:"w-20 border border-base rounded bg-base px-2.5 py-1.5 text-sm font-mono tabular-nums outline-none focus:border-active focus:ring-2 focus:ring-primary-500/30","data-testid":"settings-auto-sync-input",onChange:S[1]||(S[1]=N=>w(Number(N.target.value)))},null,40,gO),S[18]||(S[18]=T("span",{class:"text-sm color-muted"},"min",-1)),S[19]||(S[19]=T("span",{class:"text-xs color-faint"},"·",-1)),T("span",yO,de(A(_)),1)]),S[21]||(S[21]=T("p",{class:"text-[11px] color-faint"},"Range: 1–60 minutes. Set to 0 to disable.",-1))]),T("section",vO,[S[26]||(S[26]=T("header",{class:"flex items-center gap-1.5"},[T("span",{class:"i-ph-paint-brush-duotone color-active text-sm"}),T("h3",{class:"text-sm font-medium"},"UI")],-1)),T("label",bO,[S[22]||(S[22]=T("span",{class:"color-muted"},"Theme",-1)),T("button",{type:"button",class:"btn-action-sm","data-testid":"settings-theme-toggle",onClick:S[2]||(S[2]=N=>n.value=!A(n))},[T("span",{class:ke(A(n)?"i-ph-moon-duotone":"i-ph-sun-duotone")},null,2),T("span",null,de(A(n)?"Dark":"Light"),1)])]),T("label",wO,[S[23]||(S[23]=T("span",{class:"color-muted"},"Collapse bot comments",-1)),T("button",{type:"button",class:"btn-action-sm","data-testid":"settings-collapse-bot-comments-toggle",onClick:S[3]||(S[3]=N=>o.value=!A(o))},[T("span",{class:ke(A(o)?"i-ph-toggle-right-fill color-active":"i-ph-toggle-left-fill color-muted")},null,2),T("span",null,de(A(o)?"On":"Off"),1)])]),T("label",_O,[S[25]||(S[25]=T("span",{class:"color-muted"},"Ignored items",-1)),T("button",{type:"button",class:"btn-action-sm","data-testid":"settings-manage-ignored",onClick:S[4]||(S[4]=N=>a.value=!0)},[S[24]||(S[24]=T("span",{class:"i-ph-eye-slash-duotone"},null,-1)),T("span",null,"Manage ("+de(A(l))+")",1)])])])]),ge($,{open:A(a),"onUpdate:open":S[5]||(S[5]=N=>Le(a)?a.value=N:null)},null,8,["open"])]),_:1},8,["open"])}}}),SO=Object.assign(EO,{__name:"PanelSettings"}),xO={key:2,class:"text-sm max-w-sm op-fade"},kO=ve({__name:"EmptyState",props:{title:{},message:{},icon:{},color:{default:"gray"},size:{default:"md"}},setup(e){return(t,n)=>(L(),Z("div",{class:ke(["flex flex-col items-center justify-center text-center color-muted",e.size==="sm"?"py-6 gap-2":e.size==="lg"?"py-20 gap-4":"py-12 gap-3"])},[e.icon?(L(),Z("div",{key:0,class:ke(["op-mute",[e.icon,e.size==="sm"?"text-2xl":e.size==="lg"?"text-5xl":"text-4xl"]])},null,2)):Ue("",!0),e.title?(L(),Z("div",{key:1,class:ke(["font-medium color-base",e.size==="sm"?"text-sm":"text-base"])},de(e.title),3)):Ue("",!0),e.message?(L(),Z("p",xO,de(e.message),1)):Ue("",!0),Pe(t.$slots,"hint"),Pe(t.$slots,"default")],2))}}),CO=Object.assign(kO,{__name:"UiEmptyState"}),cv=new Map,uu=new Map;function AO(e){let t=uu.get(e);if(t)return t;const n=cv.get(e);return t=B(n??{pending:!0}),uu.set(e,t),n||TO(e),t}async function TO(e){let t;try{t={pending:!1,dataUrl:await Ve().$call("ghfs:get-project-icon",e)}}catch{t={pending:!1,dataUrl:null}}cv.set(e,t);const n=uu.get(e);n&&(n.value=t)}function $O(e){return M(()=>{const t=Ie(e);return t?AO(t).value:{pending:!1,dataUrl:null}})}const OO=["src","alt","width","height"],PO=["src","alt","width","height"],RO=["src","alt","width","height"],IO=ve({__name:"ProjectIcon",props:{project:{},size:{default:20},fallbackClass:{default:"color-muted"},iconDataUrl:{default:null}},setup(e){const t=e,n=$O(()=>t.project.id),o=M(()=>{const f=(t.project.repo??"").split("/");return f.length===2&&f[0]&&f[1]?f[0]:""}),r=M(()=>o.value?`https://avatars.githubusercontent.com/${o.value}`:""),s=B(!1),i=B(!1),a=B(!1);Fe(()=>t.project.id,()=>{s.value=!1,i.value=!1}),Fe(()=>t.iconDataUrl,()=>{a.value=!1});const l=M(()=>!!t.iconDataUrl&&!a.value),u=M(()=>!l.value&&!n.value.pending&&!!n.value.dataUrl&&!s.value),c=M(()=>!l.value&&!u.value&&!!r.value&&!i.value);return(f,p)=>(L(),Z("span",{style:un({width:`${e.size}px`,height:`${e.size}px`}),class:"inline-flex shrink-0 items-center justify-center rounded-md overflow-hidden bg-#8881 align-middle"},[A(l)?(L(),Z("img",{key:0,src:e.iconDataUrl,alt:e.project.repo,width:e.size,height:e.size,loading:"lazy",class:"h-full w-full object-contain",onError:p[0]||(p[0]=d=>a.value=!0)},null,40,OO)):A(u)?(L(),Z("img",{key:1,src:A(n).dataUrl,alt:e.project.repo,width:e.size,height:e.size,loading:"lazy",class:"h-full w-full object-contain",onError:p[1]||(p[1]=d=>s.value=!0)},null,40,PO)):A(c)?(L(),Z("img",{key:2,src:A(r),alt:A(o),width:e.size,height:e.size,loading:"lazy",class:"h-full w-full object-cover",onError:p[2]||(p[2]=d=>i.value=!0)},null,40,RO)):(L(),Z("span",{key:3,class:ke(["i-octicon-repo-16",e.fallbackClass])},null,2))],4))}}),uv=Object.assign(IO,{__name:"DisplayProjectIcon"}),fv=["close","close-with-comment","reopen","set-title","set-body","add-comment","add-labels","remove-labels","set-labels","add-assignees","remove-assignees","set-assignees","set-milestone","clear-milestone","lock","unlock","request-reviewers","remove-reviewers","mark-ready-for-review","convert-to-draft","add-reaction","remove-reaction"],MO={open:"reopen",closes:"close","close-comment":"close-with-comment","comment-close":"close-with-comment","close-and-comment":"close-with-comment","comment-and-close":"close-with-comment",label:"add-labels",labels:"add-labels",tag:"add-labels",tags:"add-labels","add-tag":"add-labels",assign:"add-assignees",assignee:"add-assignees",assignees:"add-assignees",body:"set-body",title:"set-title",retitle:"set-title",ready:"mark-ready-for-review",undraft:"mark-ready-for-review",draft:"convert-to-draft",comment:"add-comment"},NO={close:"#ef4444","close-with-comment":"#fb7185",reopen:"#22c55e","set-title":"#3b82f6","set-body":"#06b6d4","add-comment":"#f97316","add-labels":"#84cc16","remove-labels":"#f43f5e","set-labels":"#eab308","add-assignees":"#10b981","remove-assignees":"#fb7185","set-assignees":"#0ea5e9","set-milestone":"#6366f1","clear-milestone":"#f59e0b",lock:"#a855f7",unlock:"#14b8a6","request-reviewers":"#38bdf8","remove-reviewers":"#e879f9","mark-ready-for-review":"#34d399","convert-to-draft":"#f472b6","add-reaction":"#fbbf24","remove-reaction":"#fb923c"};new Set(fv);const DO=Object.keys(MO);[...fv,...DO];const AR=["+1","-1","laugh","hooray","confused","heart","rocket","eyes"],LO={"+1":"👍","-1":"👎",laugh:"😄",hooray:"🎉",confused:"😕",heart:"❤️",rocket:"🚀",eyes:"👀"},jO={"+1":"plusOne","-1":"minusOne",laugh:"laugh",hooray:"hooray",confused:"confused",heart:"heart",rocket:"rocket",eyes:"eyes"};function TR(e){return jO[e]}function HO(e){const t=[];if("labels"in e&&Array.isArray(e.labels)&&t.push(e.labels.join(", ")),"assignees"in e&&Array.isArray(e.assignees)&&t.push(e.assignees.map(n=>`@${n}`).join(", ")),"title"in e&&typeof e.title=="string"&&t.push(`"${e.title}"`),"body"in e&&typeof e.body=="string"&&t.push(`"${e.body.slice(0,60)}${e.body.length>60?"…":""}"`),"milestone"in e&&e.milestone!=null&&t.push(String(e.milestone)),"reaction"in e&&typeof e.reaction=="string"){const n=LO[e.reaction];t.push(n?`${n} ${e.reaction}`:e.reaction)}if("target"in e&&e.target&&typeof e.target=="object"){const n=e.target;n.kind==="comment"&&n.commentId!=null?t.push(`on comment ${n.commentId}`):n.kind==="review"&&n.reviewId&&t.push("on review")}return t.join(" ")}const FO={key:1,class:"flex flex-col gap-4"},BO=["data-project-id"],UO={class:"flex items-center gap-2 px-4 py-2 border-b border-base bg-#8881 dark:bg-#fff1"},zO={class:"font-mono text-sm font-medium"},qO={class:"color-muted text-xs font-mono tabular-nums"},WO=["disabled","onClick"],VO={class:"flex flex-col divide-y divide-#8882"},KO=["data-entry-id","onClick"],GO={class:"font-mono text-xs color-muted tabular-nums flex-none"},QO={class:"text-xs color-muted truncate flex-1"},JO=ve({__name:"QueueList",setup(e){const t=Ts(),n=kt(),o=Ve(),r=Ne();function s(l){return NO[l]??"#6b7280"}function i(l,u){n.push(`/${l}/${u}`)}async function a(l,u){r.setError(null);try{await o.$call("ghfs:remove-queue-op",l,u.id),await t.load()}catch(c){r.setError(`${c.message}`)}}return(l,u)=>{const c=CO,f=uv,p=tf;return A(t).groups.value.length===0?(L(),ye(c,{key:0,icon:"i-octicon-inbox-16",title:"No queued operations across any project",message:"Open an item in any project and use the footer actions to queue close/reopen/comment."})):(L(),Z("div",FO,[(L(!0),Z(Ee,null,xt(A(t).groups.value,d=>(L(),Z("section",{key:d.projectId,class:"panel-card overflow-hidden","data-testid":"hub-queue-group","data-project-id":d.projectId},[T("header",UO,[ge(f,{project:{id:d.projectId,repo:d.repo},size:16},null,8,["project"]),T("span",zO,de(d.repo),1),T("span",qO,de(d.total),1),u[1]||(u[1]=T("div",{class:"flex-1"},null,-1)),T("button",{type:"button",class:"btn-primary text-xs flex items-center gap-1.5",disabled:A(t).executing.value===d.projectId||A(t).executing.value==="all","data-testid":"hub-queue-execute-project",onClick:m=>A(t).executeProject(d.projectId)},[T("span",{class:ke(A(t).executing.value===d.projectId?"i-octicon-sync-16 animate-spin":"i-ph-play-duotone")},null,2),u[0]||(u[0]=T("span",null,"Execute",-1))],8,WO)]),T("ul",VO,[(L(!0),Z(Ee,null,xt(d.queue.entries.filter(m=>m.source!=="per-item"),m=>(L(),Z("li",{key:m.id,class:"group flex items-start gap-2 px-4 py-2 hover:bg-active transition cursor-pointer","data-testid":"hub-queue-entry","data-entry-id":m.id,onClick:g=>i(d.repo,m.op.number)},[T("span",{class:"badge font-mono text-xs flex-none",style:un({backgroundColor:`${s(m.op.action)}22`,color:s(m.op.action)})},de(m.op.action),5),T("span",GO,"#"+de(m.op.number),1),T("span",QO,de(A(HO)(m.op)),1),ge(p,{icon:"i-ph-trash-duotone",size:"sm",tooltip:"Remove from queue",class:"hover-fade","data-testid":"hub-queue-entry-remove",onClick:Yw(g=>a(d.projectId,m),["stop"])},null,8,["onClick"])],8,KO))),128))])],8,BO))),128))]))}}}),YO=Object.assign(JO,{__name:"HubQueueList"}),XO={key:0,class:"fixed top-18 right-4 bottom-4 w-[32rem] max-w-[calc(100vw-2rem)] panel-floating rounded-xl z-drawer-content flex flex-col overflow-hidden","data-testid":"hub-queue-drawer"},ZO={class:"flex items-center gap-2 px-4 py-3 border-b border-base"},eP={class:"color-muted text-sm font-mono tabular-nums"},tP={class:"flex-1 overflow-y-auto p-3"},nP={class:"border-t border-base px-4 py-3 bg-#8881 flex items-center gap-2"},oP=["disabled","onClick"],rP={class:"px-5 py-4"},sP={class:"text-sm color-muted"},iP=["disabled"],aP=ve({__name:"QueueDrawer",setup(e){const t=$s(),n=Lt(),o=Ts(),r=M(()=>n.capabilities.value?.mode==="hub"),s=M({get(){return t.executeAllConfirmOpen.value},set(a){a?t.openExecuteAllConfirm():t.closeExecuteAllConfirm()}});async function i(){t.closeExecuteAllConfirm(),await o.executeAll()}return(a,l)=>{const u=tf,c=Zy,f=YO,p=dr;return L(),Z(Ee,null,[ge(Im,{"enter-active-class":"transition duration-300 ease-[cubic-bezier(0.22,0.61,0.36,1)]","enter-from-class":"op0 translate-x-4","enter-to-class":"op100 translate-x-0","leave-active-class":"transition duration-200 ease-[cubic-bezier(0.22,0.61,0.36,1)]","leave-from-class":"op100 translate-x-0","leave-to-class":"op0 translate-x-4"},{default:he(()=>[A(r)&&A(t).queueDrawerOpen.value?(L(),Z("aside",XO,[T("header",ZO,[l[2]||(l[2]=T("span",{class:"i-octicon-list-unordered-16 color-active"},null,-1)),l[3]||(l[3]=T("h2",{class:"font-medium"},"Queue",-1)),T("span",eP,de(A(o).totalCount.value),1),l[4]||(l[4]=T("div",{class:"flex-1"},null,-1)),ge(c,{command:"action.queue"},{default:he(({execute:d})=>[ge(u,{icon:"i-ph-x",tooltip:"Close panel",onClick:d},null,8,["onClick"])]),_:1})]),T("div",tP,[ge(f)]),T("footer",nP,[l[6]||(l[6]=T("div",{class:"text-xs color-muted flex-1"}," Each project's queue executes independently. ",-1)),ge(c,{command:"hub.execute-all"},{default:he(({execute:d})=>[T("button",{type:"button",class:"btn-primary text-sm",disabled:A(o).totalCount.value===0||A(o).executing.value!==null,"data-testid":"hub-queue-execute-all",onClick:d},[T("span",{class:ke(A(o).executing.value==="all"?"i-octicon-sync-16 animate-spin":"i-ph-play-duotone")},null,2),l[5]||(l[5]=T("span",null,"Execute all",-1))],8,oP)]),_:1})])])):Ue("",!0)]),_:1}),ge(p,{open:A(s),"onUpdate:open":l[1]||(l[1]=d=>Le(s)?s.value=d:null),icon:"i-ph-play-duotone",width:"w-[min(92vw,30rem)]",title:`Execute ${A(o).totalCount.value} operation${A(o).totalCount.value===1?"":"s"}?`},{footer:he(()=>[T("button",{class:"btn-action-sm",onClick:l[0]||(l[0]=d=>A(t).closeExecuteAllConfirm())},"Cancel"),T("button",{class:"btn-primary text-sm",disabled:A(o).executing.value!==null,"data-testid":"hub-queue-execute-all-confirm",onClick:i},[...l[7]||(l[7]=[T("span",{class:"i-ph-play-duotone"},null,-1),qe(" Execute ",-1)])],8,iP)]),default:he(()=>[T("div",rP,[T("p",sP," These changes will be applied to GitHub across "+de(A(o).groups.value.length)+" project"+de(A(o).groups.value.length===1?"":"s")+" immediately. This cannot be undone from here — you'll need to revert on GitHub if needed. ",1)])]),_:1},8,["open","title"])],64)}}}),lP=Object.assign(aP,{__name:"HubQueueDrawer"}),cP={class:"flex items-center gap-2 w-full"},uP={key:0,class:"px-3 py-6 text-center color-muted text-sm"},fP={class:"px-3 pt-1 pb-1 text-xs color-muted uppercase tracking-wide font-medium"},dP=["data-selected","data-testid","onMousemove"],pP={key:1,class:"w-4 h-4 shrink-0","aria-hidden":"true"},hP={class:"flex-1 min-w-0 truncate"},mP={class:"shrink-0 text-xs color-muted"},gP={key:2,class:"inline-flex items-center gap-0.5 shrink-0"},yP=ve({__name:"CommandPalette",setup(e){const t=Qa(),n=Ya(),o=M({get:()=>t.paletteOpen.value,set:g=>t.paletteOpen.value=g}),r=M(()=>{const g=Yy(),b=n.value,v=[];for(const h of g){if(!ar(h.whenNode,b))continue;const w=Jy(h.command.id)[0],_=w?w.label??Yu(w.key):[];v.push({command:h.command,score:0,keyLabel:_})}return v}),s=M(()=>{const g=t.query.value.trim().toLowerCase();if(!g)return r.value.map(v=>({...v,score:1}));const b=[];for(const v of r.value){const h=m(v.command,g);h>0&&b.push({...v,score:h})}return b.sort((v,h)=>h.score-v.score),b}),i=M(()=>s.value),a=M(()=>{const g=new Map;for(const h of s.value){const y=h.command.category||"Other",w=g.get(y)??[];w.push(h),g.set(y,w)}let b=0;const v=[];for(const[h,y]of g)v.push({title:h,entries:y,startIndex:b}),b+=y.length;return v});Fe(s,g=>{if(g.length===0){t.setSelectedIndex(0);return}t.selectedIndex.value>=g.length&&t.setSelectedIndex(0)});function l(g){const b=i.value.length;if(b===0)return;const v=(t.selectedIndex.value+g+b)%b;t.setSelectedIndex(v),d()}function u(g){const b=i.value.length;b!==0&&t.setSelectedIndex(Math.max(0,Math.min(b-1,g)))}function c(g){if(g.key==="ArrowDown"){g.preventDefault(),l(1);return}if(g.key==="ArrowUp"){g.preventDefault(),l(-1);return}if(g.key==="Home"){g.preventDefault(),u(0),d();return}if(g.key==="End"){g.preventDefault(),u(i.value.length-1),d();return}g.key==="Enter"&&(g.preventDefault(),f())}async function f(){const g=i.value[t.selectedIndex.value];if(g){t.close();try{await g.command.run()}catch(b){oa.GHFS0901({shortcut:g.command.id,detail:String(b?.message??b),cause:b})}}}const p=B(null);function d(){lt(()=>{p.value?.querySelector('[data-selected="true"]')?.scrollIntoView({block:"nearest"})})}Fe(o,g=>{g&<(()=>{document.querySelector('[data-testid="command-palette-input"]')?.focus()})});function m(g,b){const v=g.title.toLowerCase(),h=g.category.toLowerCase();let y=0;return v.startsWith(b)?y+=100:v.includes(b)&&(y+=50),h.startsWith(b)?y+=20:h.includes(b)&&(y+=10),v.split(/\s+/).map(_=>_[0]??"").join("").startsWith(b)&&(y+=30),v.split(/\s+/).some(_=>_.startsWith(b))&&(y+=15),y}return(g,b)=>{const v=dr;return L(),ye(v,{open:A(o),"onUpdate:open":b[1]||(b[1]=h=>Le(o)?o.value=h:null),width:"w-[min(92vw,40rem)]","max-height":"max-h-[70vh]","hide-close":"","data-testid":"command-palette",onKeydown:c},{header:he(()=>[T("div",cP,[b[2]||(b[2]=T("span",{class:"i-ph-magnifying-glass-duotone color-active shrink-0"},null,-1)),Dr(T("input",{"onUpdate:modelValue":b[0]||(b[0]=h=>A(t).query.value=h),type:"text",placeholder:"Type a command…","aria-label":"Command palette","data-testid":"command-palette-input",autofocus:"",class:"bg-transparent outline-none w-full font-sans text-sm color-base"},null,512),[[Hm,A(t).query.value]]),b[3]||(b[3]=T("span",{class:"text-xs color-muted"},[T("span",{class:"kbd"},"↑"),qe(),T("span",{class:"kbd"},"↓"),qe(" navigate · "),T("span",{class:"kbd"},"↵"),qe(" run · "),T("span",{class:"kbd"},"Esc"),qe(" close ")],-1))])]),default:he(()=>[T("div",{ref_key:"listRef",ref:p,class:"px-2 py-2"},[A(i).length===0?(L(),Z("div",uP," No matching commands. ")):(L(!0),Z(Ee,{key:1},xt(A(a),h=>(L(),Z("section",{key:h.title,class:"mb-3 last:mb-0"},[T("h3",fP,de(h.title),1),T("ul",null,[(L(!0),Z(Ee,null,xt(h.entries,(y,w)=>(L(),Z("li",{key:y.command.id,"data-selected":h.startIndex+w===A(t).selectedIndex.value,"data-testid":`command-palette-row-${y.command.id}`,class:ke(["flex items-center gap-2 px-3 py-1.5 rounded text-sm cursor-pointer",h.startIndex+w===A(t).selectedIndex.value?"bg-active color-base":"color-base hover:bg-active"]),onMousemove:_=>u(h.startIndex+w),onClick:f},[y.command.icon?(L(),Z("span",{key:0,class:ke([y.command.icon,"shrink-0 color-muted"])},null,2)):(L(),Z("span",pP)),T("span",hP,de(y.command.title),1),T("span",mP,de(y.command.category),1),y.keyLabel.length?(L(),Z("span",gP,[(L(!0),Z(Ee,null,xt(y.keyLabel,(_,k)=>(L(),Z("kbd",{key:k,class:"kbd"},de(_),1))),128))])):Ue("",!0)],42,dP))),128))])]))),128))],512)]),_:1},8,["open"])}}}),vP=Object.assign(yP,{__name:"PanelCommandPalette"}),bP={class:"px-6 py-4 grid grid-cols-2 gap-x-6 gap-y-4"},wP={class:"text-xs color-muted uppercase tracking-wide font-medium mb-2"},_P={class:"flex flex-col gap-1.5"},EP={class:"flex-1 min-w-0"},SP={key:0,class:"inline-flex items-center gap-0.5 shrink-0"},xP={key:1,class:"color-faint text-xs"},kP={key:0,class:"flex items-center gap-3 text-sm"},CP=ve({__name:"Help",setup(e){const t=Jt(),n=Ya(),o=M(()=>{const r=n.value,s=[],i=new Map;for(const a of Yy()){const l=a.command;if(l.help===!1||typeof l.help=="string"&&!ar(a.helpNode,r))continue;const u=l.category||"Other";i.has(u)||(i.set(u,[]),s.push(u));const f=Jy(l.id)[0],p=f?f.label??Yu(f.key):[];i.get(u).push({command:l,active:ar(a.whenNode,r),keys:p})}return s.map(a=>({title:a,rows:i.get(a)}))});return(r,s)=>{const i=dr;return L(),ye(i,{open:A(t).helpOpen.value,"onUpdate:open":s[0]||(s[0]=a=>A(t).helpOpen.value=a),title:"Keyboard shortcuts",icon:"i-ph-question-duotone",width:"w-[min(92vw,42rem)]","data-testid":"help-overlay"},{actions:he(()=>[...s[1]||(s[1]=[T("span",{class:"text-xs color-muted"},[qe(" Press "),T("span",{class:"kbd"},"?"),qe(" anytime · "),T("span",{class:"kbd"},"Esc"),qe(" to close ")],-1)])]),default:he(()=>[T("div",bP,[(L(!0),Z(Ee,null,xt(A(o),a=>(L(),Z("section",{key:a.title},[T("h3",wP,de(a.title),1),T("ul",_P,[(L(!0),Z(Ee,null,xt(a.rows,l=>(L(),Z("li",{key:l.command.id,class:ke(["flex items-center gap-3 text-sm",{op40:!l.active}])},[T("span",EP,de(l.command.title),1),l.keys.length?(L(),Z("span",SP,[(L(!0),Z(Ee,null,xt(l.keys,(u,c)=>(L(),Z("kbd",{key:c,class:"kbd"},de(u),1))),128))])):(L(),Z("span",xP,"—"))],2))),128)),a.title==="Item"?(L(),Z("li",kP,[...s[2]||(s[2]=[T("span",{class:"flex-1 min-w-0"},"Submit comment",-1),T("span",{class:"inline-flex items-center gap-0.5 shrink-0"},[T("kbd",{class:"kbd"},"⌘"),T("kbd",{class:"kbd"},"↵")],-1)])])):Ue("",!0)])]))),128))])]),_:1},8,["open"])}}}),AP=Object.assign(CP,{__name:"PanelHelp"});function TP(){const e=Ne(),t=Jt(),n=M(()=>e.payload.value?.currentUser??null);function o(r){t.setUserOverride(r);const s=e.payload.value;if(!s)return;const i=s.currentUser;if(!r){e.setPayload({...s,currentUser:i});return}const a=r.login??i?.login;a&&e.setPayload({...s,currentUser:{login:a,name:r.name??i?.name??null,avatarUrl:r.avatarUrl??i?.avatarUrl??`https://avatars.githubusercontent.com/${a}`}})}return{currentUser:n,override:M(()=>t.uiState.userOverride??null),setOverride:o}}const $P={class:"px-5 py-4 flex flex-col gap-4"},OP={class:"flex items-center gap-2 text-sm","data-testid":"cards-start-source"},PP={key:1,class:"i-ph-stack-duotone color-active"},RP={class:"font-medium"},IP={key:2,class:"color-muted"},MP={class:"text-xs color-muted font-mono tabular-nums"},NP={class:"flex flex-col gap-1.5"},DP={class:"flex gap-1"},LP=["onClick"],jP={class:"flex flex-col gap-1.5"},HP={class:"flex gap-1 flex-wrap"},FP=["onClick"],BP={class:"flex flex-col gap-1.5"},UP={class:"flex gap-1 flex-wrap"},zP=["onClick"],qP={class:"text-[10px] color-faint"},WP={class:"flex flex-col gap-2 text-sm"},VP={class:"flex items-center gap-2 cursor-pointer"},KP={class:"flex items-center gap-2 cursor-pointer"},GP={key:0,class:"color-muted"},QP={class:"font-mono"},JP={class:"flex items-center gap-2 cursor-pointer"},YP={class:"color-muted"},XP={class:"color-muted"},ZP=["disabled"],eR=ve({__name:"StartDialog",setup(e){const t=Ju(),n=zy(),{currentUser:o}=TP(),r=M({get:()=>t.startDialogOpen.value,set:b=>t.startDialogOpen.value=b}),s=B({...ps});Fe(r,b=>{if(b){const v=t.total.value>0?{...t.options.value}:{...ps},h=t.pendingInitialOptions.value??{};s.value={...v,...h}}});const i=M(()=>t.pendingSourceItems.value??[]),a=M(()=>t.pendingSource.value),l=M(()=>o.value?.login??null),u=M(()=>Pi(i.value,s.value,l.value,n.getSeenEntry)),c=M(()=>u.value.length),f=M(()=>Math.min(s.value.size,c.value)),p=M(()=>i.value.length),d=M(()=>{const b=i.value;let v=0,h=0;for(const y of b)y.state==="open"&&(y.kind==="issue"?v++:h++);return{issues:v,pulls:h,total:b.filter(y=>y.state==="open").length}});function m(){t.start(i.value,a.value,s.value,l.value)}function g(){r.value=!1}return(b,v)=>{const h=uv,y=dr;return L(),ye(y,{open:A(r),"onUpdate:open":v[3]||(v[3]=w=>Le(r)?r.value=w:null),title:"Start a card pile",icon:"i-ph-cards-three-duotone",width:"w-[min(92vw,36rem)]"},{footer:he(()=>[T("button",{type:"button",class:"btn-action text-sm",onClick:g}," Cancel "),T("button",{type:"button",class:"btn-primary text-sm",disabled:A(c)===0,"data-testid":"cards-start-confirm",onClick:m},[...v[15]||(v[15]=[T("span",{class:"i-ph-cards-three-duotone"},null,-1),qe(" Start card pile ",-1)])],8,ZP)]),default:he(()=>[T("div",$P,[T("div",OP,[A(a).project?(L(),ye(h,{key:0,project:A(a).project,size:18},null,8,["project"])):(L(),Z("span",PP)),T("span",RP,de(A(a).project?A(a).project.repo:A(a).label),1),A(a).project?(L(),Z("span",IP,"· "+de(A(a).label),1)):Ue("",!0),v[4]||(v[4]=T("span",{class:"flex-1"},null,-1)),T("span",MP,de(A(d).total)+" open ("+de(A(d).issues)+" issue"+de(A(d).issues===1?"":"s")+", "+de(A(d).pulls)+" PR"+de(A(d).pulls===1?"":"s")+") ",1)]),T("div",NP,[v[5]||(v[5]=T("span",{class:"text-xs color-muted uppercase tracking-wide"},"Pile size",-1)),T("div",DP,[(L(!0),Z(Ee,null,xt(A(oT),w=>(L(),Z("button",{key:w,type:"button",class:ke(["px-3 py-1 rounded text-sm border transition",A(s).size===w?"border-primary-500/40 bg-primary-500/12 color-active":"border-base color-muted hover:color-base hover:bg-active"]),onClick:_=>A(s).size=w},de(w),11,LP))),128))])]),T("div",jP,[v[6]||(v[6]=T("span",{class:"text-xs color-muted uppercase tracking-wide"},"Include",-1)),T("div",HP,[(L(!0),Z(Ee,null,xt(A(sT),w=>(L(),Z("button",{key:w.value,type:"button",class:ke(["px-3 py-1 rounded text-sm border transition",A(s).kind===w.value?"border-primary-500/40 bg-primary-500/12 color-active":"border-base color-muted hover:color-base hover:bg-active"]),onClick:_=>A(s).kind=w.value},de(w.label),11,FP))),128))])]),T("div",BP,[v[7]||(v[7]=T("span",{class:"text-xs color-muted uppercase tracking-wide"},"Pick",-1)),T("div",UP,[(L(!0),Z(Ee,null,xt(A(rT),w=>(L(),Z("button",{key:w.value,type:"button",class:ke(["px-3 py-1 rounded text-sm border transition flex flex-col items-start",A(s).pick===w.value?"border-primary-500/40 bg-primary-500/12 color-active":"border-base color-muted hover:color-base hover:bg-active"]),onClick:_=>A(s).pick=w.value},[T("span",null,de(w.label),1),T("span",qP,de(w.hint),1)],10,zP))),128))])]),T("div",WP,[T("label",VP,[Dr(T("input",{"onUpdate:modelValue":v[0]||(v[0]=w=>A(s).excludeBots=w),type:"checkbox",class:"accent-primary-500"},null,512),[[dl,A(s).excludeBots]]),v[8]||(v[8]=T("span",null,"Exclude items created by bots",-1))]),T("label",KP,[Dr(T("input",{"onUpdate:modelValue":v[1]||(v[1]=w=>A(s).excludeSelfInteracted=w),type:"checkbox",class:"accent-primary-500"},null,512),[[dl,A(s).excludeSelfInteracted]]),T("span",null,[v[11]||(v[11]=qe(" Hide items waiting for someone else to reply ",-1)),A(l)?(L(),Z("span",GP,[v[9]||(v[9]=qe("(I'm ",-1)),T("span",QP,"@"+de(A(l)),1),v[10]||(v[10]=qe(")",-1))])):Ue("",!0)])]),T("label",JP,[Dr(T("input",{"onUpdate:modelValue":v[2]||(v[2]=w=>A(s).excludeSeen=w),type:"checkbox",class:"accent-primary-500","data-testid":"cards-start-exclude-seen"},null,512),[[dl,A(s).excludeSeen]]),v[12]||(v[12]=T("span",null,[qe(" Exclude seen cards "),T("span",{class:"color-muted"},"(re-appear once they change)")],-1))])]),T("div",{class:ke(["text-xs px-3 py-2 rounded border border-base bg-secondary flex items-center gap-2",A(c)===0?"color-muted":""]),"data-testid":"cards-start-candidates"},[T("span",{class:ke(A(c)===0?"i-ph-warning-duotone":"i-ph-funnel-duotone color-active")},null,2),T("span",null,[T("strong",null,de(A(c)),1),qe(" candidate"+de(A(c)===1?"":"s")+" ",1),T("span",YP,"of "+de(A(p))+" total",1)]),v[14]||(v[14]=T("span",{class:"flex-1"},null,-1)),T("span",XP,[v[13]||(v[13]=qe("Will pick ",-1)),T("strong",null,de(A(f)),1)])],2)])]),_:1},8,["open"])}}}),tR=Object.assign(eR,{__name:"CardsStartDialog"}),th=120;function nh(e){if(typeof document>"u")return;const t=document.querySelector('[data-scroll="detail"]');t&&t.scrollBy({top:e,behavior:"smooth"})}function oh(e){if(typeof document>"u")return;const t=document.querySelector('[data-scroll="detail"]');if(!t)return;const n=Array.from(t.querySelectorAll("[data-comment-id]"));if(n.length===0)return;const o=t.getBoundingClientRect().top;let r=-1;for(let l=0;l<n.length&&n[l].getBoundingClientRect().top-o<=8;l++)r=l;let s;if(e>0)s=r<0?0:Math.min(n.length-1,r+e);else{if(r<0)return;s=Math.max(0,r+e)}if(s===r)return;const a=n[s].getBoundingClientRect().top-o;t.scrollBy({top:a-8,behavior:"smooth"})}function nR(){const e=Va(),t=M(()=>Ne(e.value??void 0)),n=Ve(),o=gy(),r=Jt(),s=Lt(),i=$s();Ts();const a=kt(),{filteredItems:l}=Gu(),{upCount:u}=Uy(),c=Qa(),f=Ju();function p(){document.querySelector('[data-testid="hub-project-card"]')?.focus()}const d=M(()=>{const D=t.value.selectedNumber.value,oe=D==null?null:t.value.payload.value?.syncState.items[String(D)]?.data.item??null;if(oe)return oe;const Re=f.currentCard.value;return Re?Ne(Re.projectId).payload.value?.syncState.items[String(Re.number)]?.data.item??null:null}),m=Ha(),g=By(),b=Qu(),{filteredItems:v}=b,h=qy(),y=M(()=>m.path==="/recent"),w=M(()=>m.path==="/todo");function _(D){if(y.value){b.kind.value=D;return}if(w.value){h.kind.value=D;return}t.value.filters.kind=D}function k(D){if(y.value){const ut=v.value;if(!ut.length)return;const bn=g.selectedKey.value==null?-1:ut.findIndex(H=>H.key===g.selectedKey.value),wn=bn<0?D>0?0:ut.length-1:Math.max(0,Math.min(ut.length-1,bn+D)),gt=ut[wn];gt&&g.selectItem(gt);return}const oe=l.value;if(!oe.length)return;const Re=t.value.selectedNumber.value==null?-1:oe.findIndex(ut=>ut.number===t.value.selectedNumber.value),mt=Re<0?D>0?0:oe.length-1:Math.max(0,Math.min(oe.length-1,Re+D)),Ge=oe[mt];Ge&&t.value.selectItem(Ge.number)}function S(){if(y.value){const oe=v.value[0];oe&&g.selectItem(oe);return}const D=l.value[0];D&&t.value.selectItem(D.number)}function P(){if(y.value){const oe=v.value,Re=oe[oe.length-1];Re&&g.selectItem(Re);return}const D=l.value[l.value.length-1];D&&t.value.selectItem(D.number)}function $(){const D=document.querySelector('[data-shortcut="search"]');D&&(D.focus(),D.select())}function O(){const D=document.querySelector('[data-shortcut="comment-draft"]');D&&D.focus()}async function N(){if(!t.value.syncing.value){t.value.setSyncing(!0),t.value.setError(null);try{await n.$call("ghfs:trigger-sync",e.value??"__default__",{})}catch(D){t.value.setError(`Sync failed: ${D.message}`),t.value.setSyncing(!1)}}}function C(){t.value.executing.value||u.value!==0&&t.value.askExecute()}function F(){if(s.capabilities.value?.mode==="hub"){i.queueDrawerOpen.value?i.closeQueueDrawer():i.openQueueDrawer();return}t.value.queueOpen.value?t.value.closeQueue():t.value.openQueue()}async function I(){const D=d.value?.number;if(D==null)return;const oe=r.getDraft(D).trim();try{oe?(await n.$call("ghfs:add-queue-op",e.value??"__default__",{action:"close-with-comment",number:D,body:oe}),r.clearDraft(D)):await n.$call("ghfs:add-queue-op",e.value??"__default__",{action:"close",number:D})}catch(Re){t.value.setError(Re.message)}}async function Q(){const D=d.value?.number;if(D!=null)try{await n.$call("ghfs:add-queue-op",e.value??"__default__",{action:"reopen",number:D})}catch(oe){t.value.setError(oe.message)}}function W(){if(r.helpOpen.value){r.helpOpen.value=!1;return}if(r.labelEditorOpen.value){r.labelEditorOpen.value=!1;return}if(t.value.executeConfirmOpen.value){t.value.executeConfirmOpen.value=!1;return}if(i.executeAllConfirmOpen.value){i.closeExecuteAllConfirm();return}if(i.settingsOpen.value){i.closeSettings();return}if(i.pickerOpen.value){i.closePicker();return}if(i.queueDrawerOpen.value){i.closeQueueDrawer();return}t.value.queueOpen.value&&t.value.closeQueue()}function Y(D){const oe=s.projects.value;if(oe.length===0)return;const Re=oe.findIndex(ut=>ut.id===e.value),mt=Re<0?0:(Re+D+oe.length)%oe.length,Ge=oe[mt];Ge&&a.push(`/${Ge.repo}`)}return[{id:"palette.open",title:"Open command palette",category:"Palette",icon:"i-ph-magnifying-glass-duotone",keybindings:[{key:"mod+k"},{key:"mod+shift+p"}],when:"!paletteOpen",run:()=>c.open()},{id:"nav.down",title:"Next item",category:"Navigate",keybindings:["j"],when:"hasEntries",run:()=>k(1)},{id:"nav.up",title:"Previous item",category:"Navigate",keybindings:["k"],when:"hasEntries",run:()=>k(-1)},{id:"nav.next-tab",title:"Next item (Tab)",category:"Navigate",keybindings:[{key:"Tab",label:["Tab"]}],when:"hasEntries",run:()=>k(1)},{id:"nav.prev-tab",title:"Previous item (Shift+Tab)",category:"Navigate",keybindings:[{key:"shift+Tab",label:["⇧","Tab"]}],when:"hasEntries",run:()=>k(-1)},{id:"detail.scroll-down",title:"Scroll detail down",category:"Navigate",keybindings:["ArrowDown"],run:()=>nh(th)},{id:"detail.scroll-up",title:"Scroll detail up",category:"Navigate",keybindings:["ArrowUp"],run:()=>nh(-th)},{id:"comment.next",title:"Next comment",category:"Navigate",keybindings:["J"],when:"hasActiveItem",run:()=>oh(1)},{id:"comment.prev",title:"Previous comment",category:"Navigate",keybindings:["K"],when:"hasActiveItem",run:()=>oh(-1)},{id:"list.first",title:"First item",category:"List",keybindings:["g g"],when:"hasEntries",run:S},{id:"list.last",title:"Last item",category:"List",keybindings:["G"],when:"hasEntries",run:P},{id:"list.open",title:"Open on GitHub",category:"List",icon:"i-octicon-link-external-16",keybindings:["g"],when:"hasActiveItem",run:()=>{const D=d.value?.url;D&&window.open(D,"_blank","noreferrer")}},{id:"tab.issues",title:"Issues tab",category:"Tabs",icon:"i-octicon-issue-opened-16",keybindings:["i"],when:"!searching && !onCardsPage",run:()=>_("issue")},{id:"tab.pulls",title:"Pull requests tab",category:"Tabs",icon:"i-octicon-git-pull-request-16",keybindings:["p"],when:"!searching && !onCardsPage",run:()=>_("pull")},{id:"search.focus",title:"Focus search",category:"Search",icon:"i-octicon-search-16",keybindings:["/"],run:$},{id:"action.sync",title:"Sync from GitHub",category:"Action",icon:"i-octicon-sync-16",keybindings:["s"],when:"hasToken && !syncing",run:N},{id:"action.queue",title:"Toggle queue",category:"Action",icon:"i-octicon-checklist-16",keybindings:["q"],run:F},{id:"action.execute",title:"Execute queue",category:"Action",icon:"i-octicon-play-16",keybindings:["x"],when:"hasToken && queueUpCount > 0 && !executing",run:C},{id:"action.theme",title:"Toggle theme",category:"Action",icon:"i-ph-circle-half-tilt-duotone",keybindings:["d"],run:()=>{o.value=!o.value}},{id:"item.close",title:"Queue: Close item",category:"Item",icon:"i-octicon-issue-closed-16",keybindings:["c"],when:'hasActiveItem && activeItemState == "open" && !onCardsPage',run:I},{id:"item.reopen",title:"Queue: Reopen item",category:"Item",icon:"i-octicon-issue-reopened-16",keybindings:["r"],when:'hasActiveItem && activeItemState == "closed" && !onCardsPage',run:Q},{id:"item.labels",title:"Edit labels",category:"Item",icon:"i-octicon-tag-16",keybindings:["l"],when:"hasActiveItem && !onCardsPage",run:()=>{r.labelEditorOpen.value=!0}},{id:"comment.focus",title:"Focus comment",category:"Item",icon:"i-octicon-comment-16",keybindings:["n"],when:"hasActiveItem && !onCardsPage",run:O},{id:"cards.start",title:"Start a card pile",category:"Card pile",icon:"i-ph-cards-three-duotone",keybindings:[{key:"shift+c"}],when:"!onCardsPage",run:()=>f.startFromCurrentContext()},{id:"cards.dismiss",title:"Card pile: Dismiss",category:"Card pile",icon:"i-ph-trash-duotone",when:"onCardsPage && cardsHasCurrent",help:"onCardsPage",run:async()=>{await f.dismiss(),a.push("/")}},{id:"cards.comment",title:"Card pile: Comment / close",category:"Card pile",icon:"i-octicon-comment-16",keybindings:["c"],when:"onCardsPage && cardsHasCurrent && !cardsAdvancing && !cardsCommentDialogOpen && !labelEditorOpen",help:"onCardsPage",run:()=>f.doOpenComment()},{id:"cards.todo",title:"Card pile: Toggle todo",category:"Card pile",icon:"i-ph-bookmark-simple-duotone",keybindings:["t"],when:"onCardsPage && cardsHasCurrent && !cardsAdvancing && !cardsCommentDialogOpen && !labelEditorOpen",help:"onCardsPage",run:()=>f.doMarkTodo()},{id:"cards.ignore",title:"Card pile: Toggle ignore",category:"Card pile",icon:"i-ph-eye-slash-duotone",keybindings:["i"],when:"onCardsPage && cardsHasCurrent && !cardsAdvancing && !cardsCommentDialogOpen && !labelEditorOpen",help:"onCardsPage",run:()=>f.doMarkIgnore()},{id:"cards.labels",title:"Card pile: Edit labels",category:"Card pile",icon:"i-octicon-tag-16",keybindings:["l"],when:"onCardsPage && cardsHasCurrent && !cardsAdvancing && !cardsCommentDialogOpen && !labelEditorOpen",help:"onCardsPage",run:()=>f.doOpenLabels()},{id:"cards.skip",title:"Card pile: Skip",category:"Card pile",icon:"i-ph-skip-forward-duotone",keybindings:["n"],when:"onCardsPage && cardsHasCurrent && !cardsAdvancing && !cardsCommentDialogOpen && !labelEditorOpen",help:"onCardsPage",run:()=>f.doSkip()},{id:"cards.previous",title:"Card pile: Previous card",category:"Card pile",icon:"i-ph-skip-back-duotone",keybindings:[{key:"shift+n",label:["⇧","N"]}],when:"onCardsPage && cardsCanGoBack && !cardsAdvancing && !cardsCommentDialogOpen && !labelEditorOpen",help:"onCardsPage",run:()=>f.goBack()},{id:"cards.exit",title:"Card pile: Exit",category:"Card pile",icon:"i-ph-arrow-left-duotone",when:"onCardsPage && !cardsCommentDialogOpen && !labelEditorOpen",help:"onCardsPage",run:()=>{f.reset(),a.push("/")}},{id:"pr.tab.conversation",title:"PR: Conversation tab",category:"PR detail",keybindings:["v"],when:'activeItemKind == "pull"',run:()=>r.setLastPrTab("conversation")},{id:"pr.tab.commits",title:"PR: Commits tab",category:"PR detail",keybindings:["m"],when:'activeItemKind == "pull"',run:()=>r.setLastPrTab("commits")},{id:"pr.tab.changes",title:"PR: Changes tab",category:"PR detail",keybindings:["f"],when:'activeItemKind == "pull"',run:()=>r.setLastPrTab("changes")},{id:"panel.close",title:"Close overlay",category:"Overlay",keybindings:["Escape"],when:"anyOverlayOpen",run:W},{id:"help.open",title:"Show keyboard shortcuts",category:"Help",icon:"i-ph-question-duotone",keybindings:["?"],run:()=>{r.helpOpen.value=!0}},{id:"settings.open",title:"Open settings",category:"Help",icon:"i-ph-gear-duotone",keybindings:[","],when:"!hubSettingsOpen",run:()=>i.openSettings()},{id:"hub.recent",title:"Hub: Recent activity",category:"Hub",icon:"i-ph-clock-counter-clockwise-duotone",keybindings:["u"],when:'hubMode && route != "/recent"',help:"hubMode",run:()=>{a.push("/recent")}},{id:"hub.todo",title:"Hub: Open todo list",category:"Hub",icon:"i-ph-bookmark-simple-duotone",keybindings:[{key:"shift+t"}],when:'hubMode && route != "/todo"',help:"hubMode",run:()=>{a.push("/todo")}},{id:"hub.home",title:"Hub: Open home",category:"Hub",icon:"i-octicon-organization-16",when:'hubMode && route != "/"',help:"hubMode",run:()=>{a.push("/")}},{id:"hub.cards",title:"Hub: Open card pile",category:"Hub",icon:"i-ph-cards-three-duotone",when:'hubMode && cardsHasPile && route != "/cards"',help:"hubMode",run:()=>{a.push("/cards")}},{id:"hub.execute-all",title:"Hub: Execute all queues",category:"Hub",icon:"i-ph-play-duotone",keybindings:["X"],when:"hubMode && hubQueueTotal > 0 && !hubExecuteAllConfirmOpen",help:"hubMode",run:()=>i.openExecuteAllConfirm()},{id:"hub.prev-project",title:"Hub: Previous project",category:"Hub",keybindings:["["],when:'hubMode && hubProjectsCount > 1 && hasActiveProjectId && route != "/recent"',help:"hubMode",run:()=>Y(-1)},{id:"hub.next-project",title:"Hub: Next project",category:"Hub",keybindings:["]"],when:'hubMode && hubProjectsCount > 1 && hasActiveProjectId && route != "/recent"',help:"hubMode",run:()=>Y(1)},{id:"hub.back",title:"Hub: Back to home",category:"Hub",icon:"i-ph-arrow-left-duotone",keybindings:["b"],when:"hubMode && hasActiveProjectId",help:"hubMode",run:()=>{a.push("/")}},{id:"hub.sync-all",title:"Hub: Sync all projects",category:"Hub",icon:"i-octicon-sync-16",keybindings:["s"],when:"hubHome && hasSyncableProjects && !syncingAll",help:"hubMode",run:()=>{KA()}},{id:"hub.manage",title:"Hub: Manage projects",category:"Hub",icon:"i-ph-folder-duotone",keybindings:[{key:"m",when:"hubHome"}],when:"hubMode && !hubPickerOpen",help:"hubMode",run:()=>{i.closeSettings(),i.openPicker()}},{id:"hub.focus-first",title:"Hub: Focus first project card",category:"Hub",keybindings:["j"],when:"hubHome && hubProjectsCount > 0",help:"hubMode",run:p}]}function oR(e){const t=e;return!!t&&(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function rR(){if(typeof document>"u")return;const e=Ya(),t=Qa(),n=[];let o=null;In(document,"keydown",r=>{const s=oR(r.target),i=r.ctrlKey||r.metaKey||r.altKey;if(s&&r.key==="Escape"){r.target.blur();return}if(s&&r.key==="Tab")r.target.blur();else if(s&&!i)return;if(t.paletteOpen.value)return;const a=bT(r);if(!a)return;const l=ET(),u=e.value,c=[];for(const p of l){const d=Gy(p.key),m=d.map(vT),g=d.some(b=>b.modifiers.length>0);c.push({command:p.command,tokens:m,whenNode:p.whenNode,hasModifier:g})}if(i){for(const p of c)if(p.hasModifier&&p.tokens.length===1&&p.tokens[0]===a&&ar(p.whenNode,u)){r.preventDefault(),n.length=0,rh(p.command);return}return}n.push(a),n.length>8&&n.shift(),o&&clearTimeout(o),o=setTimeout(()=>{n.length=0},800);const f=c.filter(p=>!p.hasModifier).sort((p,d)=>d.tokens.length-p.tokens.length);for(const p of f)if(sR(n,p.tokens)&&ar(p.whenNode,u)){r.preventDefault(),n.length=0,rh(p.command);return}})}function sR(e,t){if(t.length>e.length)return!1;const n=e.length-t.length;for(let o=0;o<t.length;o++)if(e[n+o]!==t[o])return!1;return!0}function rh(e){try{const t=e.run();t&&typeof t=="object"&&"catch"in t&&t.catch(n=>{oa.GHFS0901({shortcut:e.id,detail:String(n?.message??n),cause:n})})}catch(t){oa.GHFS0901({shortcut:e.id,detail:String(t?.message??t),cause:t})}}const iR=["bash","shell","diff","json","yaml","toml","html","css","scss","vue","javascript","typescript","tsx","jsx","python","rust","go","ruby","java","kotlin","markdown","sql"];let Ri=null,gi=null;const aR=B(0);function $R(){return Ri}async function lR(){return Ri||gi||(gi=(async()=>{const{createHighlighter:e}=await kn(async()=>{const{createHighlighter:n}=await import("./C8o6ovMK.js");return{createHighlighter:n}},[],import.meta.url),t=await e({themes:["github-light","github-dark"],langs:[...iR]});return Ri=t,aR.value+=1,t})(),gi)}function cR(){typeof window<"u"&&lR()}function uR(){const e=Jt(),t=Ne();Dn(()=>{const n=t.payload.value;if(!n)return;const o=e.uiState.todos??[];if(o.length===0)return;const r=n.syncState.items;for(const s of o){const i=r[String(s)];if(!i)continue;const a=i.data,l=a.item.state==="closed",u=a.item.kind==="pull"&&!!a.pull?.merged;(l||u)&&e.removeTodo(s)}})}const fR={class:"h-screen w-screen bg-base color-base font-sans overflow-hidden"},dR={key:0,class:"flex flex-col items-center justify-center h-full color-muted"},pR={class:"text-sm"},hR={key:1,class:"flex flex-col items-center justify-center h-full color-muted"},mR=ve({__name:"app",setup(e){B1({htmlAttrs:{lang:"en"},title:"ghfs"});const t=Ve(),n=Lt();_T(nR()),rR(),cR(),uR();const o=$s(),r=M({get:()=>o.settingsOpen.value,set:a=>o.settingsOpen.value=a}),s=B(!1),i=B(null);return ro(async()=>{try{const a=await t.$call("ghfs:capabilities");n.setCapabilities(a),s.value=!0}catch(a){i.value=a.message}}),(a,l)=>{const u=Kx,c=SO,f=lP,p=vP,d=AP,m=tR;return L(),Z("div",fR,[A(i)?(L(),Z("div",dR,[T("p",pR,de(A(i)),1)])):A(s)?(L(),ye(u,{key:2})):(L(),Z("div",hR,[...l[1]||(l[1]=[T("span",{class:"i-octicon-sync-16 animate-spin text-2xl mb-3 color-active"},null,-1),T("p",{class:"text-sm"},"Connecting…",-1)])])),ge(c,{open:A(r),"onUpdate:open":l[0]||(l[0]=g=>Le(r)?r.value=g:null)},null,8,["open"]),ge(f),ge(p),ge(d),ge(m)])}}}),gR={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error,o=Number(n.statusCode||500),r=o===404,s=n.statusMessage??(r?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,c=r?vf(()=>kn(()=>import("./DK734mxh.js"),__vite__mapDeps([16,7,3,17]),import.meta.url)):vf(()=>kn(()=>import("./BKH9P1wN.js"),__vite__mapDeps([18,3,19]),import.meta.url));return(f,p)=>(L(),ye(A(c),hu(Ma({status:A(o),statusText:A(s),statusCode:A(o),statusMessage:A(s),description:A(i),stack:A(a)})),null,16))}},yR={key:0},sh={__name:"nuxt-root",setup(e){const t=()=>null,n=nt(),o=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",o),f=kt().beforeEach(()=>{c(),f()})}const r=!1;So(ja,Ha()),n.hooks.callHookWith(c=>c.map(f=>f()),"vue:setup",[]);const s=Fa(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;function l(c,f,p){const d=n.vueApp.config.errorHandler;if(d&&!d.__nuxt_default)try{d(c,f,p)}catch(m){console.error("[nuxt] Error in `app.config.errorHandler`",m)}}em((c,f,p)=>{if(n.hooks.callHook("vue:error",c,f,p)?.catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",c),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,c),!1;if(fg(c)&&(c.fatal||c.unhandled))return n.runWithContext(()=>mo(c)),l(c,f,p),!1});const u=!1;return(c,f)=>(L(),ye(_m,{onResolve:A(o)},{default:he(()=>[A(i)?(L(),Z("div",yR)):A(s)?(L(),ye(A(gR),{key:1,error:A(s)},null,8,["error"])):A(u)?(L(),ye(A(t),{key:2,context:A(u)},null,8,["context"])):A(r)?(L(),ye(gc(A(r)),{key:3})):(L(),ye(A(mR),{key:4}))]),_:1},8,["onResolve"]))}};let ih;{let e;ih=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),o=n?t_(sh):zm(sh),r=F0({vueApp:o});async function s(i){await r.callHook("app:error",i),r.payload.error||=Co(i)}s.__nuxt_default=!0,o.config.errorHandler=s,r.hook("app:suspense:resolve",()=>{o.config.errorHandler===s&&(o.config.errorHandler=void 0)}),!n&&ed.id&&r.hook("app:suspense:resolve",()=>{document.getElementById(ed.id)?.remove()});try{await z0(r,Wx)}catch(i){s(i)}try{await r.hooks.callHook("app:created",o),await r.hooks.callHook("app:beforeMount",o),o.mount(L0),await r.hooks.callHook("app:mounted",o),await lt()}catch(i){s(i)}return o},e=ih().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Le as $,xu as A,lt as B,ye as C,dr as D,Mb as E,Ee as F,kt as G,gy as H,Uy as I,Ts as J,TP as K,Zy as L,uv as M,tf as N,Jt as O,$s as P,Qu as Q,Lt as R,By as S,wR as T,Hy as U,qy as V,Va as W,CO as X,Ha as Y,Dn as Z,kn as _,T as a,_t as a$,xe as a0,Lh as a1,hu as a2,Ma as a3,vf as a4,at as a5,kR as a6,X0 as a7,CR as a8,Ie as a9,AR as aA,TR as aB,zy as aC,Y$ as aD,Vl as aE,jt as aF,Dr as aG,Hm as aH,xR as aI,dT as aJ,Kv as aK,xv as aL,nt as aM,Ig as aN,es as aO,Zm as aP,e1 as aQ,Z0 as aR,LS as aS,x0 as aT,bs as aU,Ru as aV,w0 as aW,Pc as aX,$d as aY,ER as aZ,_R as a_,Gu as aa,Im as ab,NO as ac,HO as ad,bR as ae,gc as af,ht as ag,Ze as ah,st as ai,So as aj,UT as ak,Za as al,Wv as am,ZT as an,to as ao,BT as ap,Os as aq,ev as ar,Yp as as,Pa as at,vn as au,sv as av,Bm as aw,Yw as ax,LO as ay,SR as az,ge as b,vR as b0,aR as b1,$R as b2,jh as b3,Z as c,qe as d,ve as e,Ve as f,ro as g,A as h,Ue as i,M as j,Ju as k,Fe as l,Fy as m,ke as n,L as o,Ne as p,xt as q,B as r,un as s,de as t,B1 as u,Xy as v,he as w,fr as x,xT as y,Pe as z};
|