@quasar/render-ssr-error 1.0.0-beta.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/.eslintignore +3 -0
- package/.eslintrc.cjs +69 -0
- package/README.md +27 -0
- package/compiled-assets/after-injection +24 -0
- package/compiled-assets/before-injection +2 -0
- package/package.json +56 -0
- package/src/env.js +59 -0
- package/src/error-details.js +7 -0
- package/src/index.js +35 -0
- package/src/stack.js +75 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<!DOCTYPE html><html><head><title>SSR Error | Quasar app</title><meta charset=utf-8><meta name=description content=""><meta name=format-detection content="telephone=no"><meta name=msapplication-tap-highlight content=no><meta name=viewport content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width"><link rel=icon type=image/png sizes=128x128 href=https://cdn.quasar.dev/logo-v2/favicon/favicon-128x128.png><link rel=icon type=image/png sizes=96x96 href=https://cdn.quasar.dev/logo-v2/favicon/favicon-96x96.png><link rel=icon type=image/png sizes=32x32 href=https://cdn.quasar.dev/logo-v2/favicon/favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=https://cdn.quasar.dev/logo-v2/favicon/favicon-16x16.png><link rel=icon type=image/ico href=https://cdn.quasar.dev/logo-v2/favicon/favicon.ico> <script type="module">
|
|
2
|
+
function Rr(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r<i.length;r++)n[i[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}function zn(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=de(i)?zo(i):zn(i);if(r)for(const s in r)t[s]=r[s]}return t}else{if(de(e))return e;if(oe(e))return e}}const Po=/;(?![^(]*\))/g,Mo=/:([^]+)/,qo=/\/\*.*?\*\//gs;function zo(e){const t={};return e.replace(qo,"").split(Po).forEach(n=>{if(n){const i=n.split(Mo);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Ln(e){let t="";if(de(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const i=Ln(e[n]);i&&(t+=i+" ")}else if(oe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Lo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Oo=Rr(Lo);function ds(e){return!!e||e===""}const Ke=e=>de(e)?e:e==null?"":V(e)||oe(e)&&(e.toString===ms||!X(e.toString))?JSON.stringify(e,hs,2):String(e),hs=(e,t)=>t&&t.__v_isRef?hs(e,t.value):Ot(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r])=>(n[`${i} =>`]=r,n),{})}:ps(t)?{[`Set(${t.size})`]:[...t.values()]}:oe(t)&&!V(t)&&!vs(t)?String(t):t,se={},Lt=[],Be=()=>{},Ro=()=>!1,Io=/^on[^a-z]/,On=e=>Io.test(e),Ir=e=>e.startsWith("onUpdate:"),me=Object.assign,Br=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Bo=Object.prototype.hasOwnProperty,ee=(e,t)=>Bo.call(e,t),V=Array.isArray,Ot=e=>Rn(e)==="[object Map]",ps=e=>Rn(e)==="[object Set]",X=e=>typeof e=="function",de=e=>typeof e=="string",jr=e=>typeof e=="symbol",oe=e=>e!==null&&typeof e=="object",gs=e=>oe(e)&&X(e.then)&&X(e.catch),ms=Object.prototype.toString,Rn=e=>ms.call(e),jo=e=>Rn(e).slice(8,-1),vs=e=>Rn(e)==="[object Object]",Nr=e=>de(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_n=Rr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),In=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},No=/-(\w)/g,jt=In(e=>e.replace(No,(t,n)=>n?n.toUpperCase():"")),Ho=/\B([A-Z])/g,Kt=In(e=>e.replace(Ho,"-$1").toLowerCase()),bs=In(e=>e.charAt(0).toUpperCase()+e.slice(1)),Zn=In(e=>e?`on${bs(e)}`:""),tn=(e,t)=>!Object.is(e,t),Gn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},En=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Do=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Uo=e=>{const t=de(e)?Number(e):NaN;return isNaN(t)?e:t};let oi;const Ko=()=>oi||(oi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Le;class Wo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Le,!t&&Le&&(this.index=(Le.scopes||(Le.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Le;try{return Le=this,t()}finally{Le=n}}}on(){Le=this}off(){Le=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!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,this._active=!1}}}function Vo(e,t=Le){t&&t.active&&t.effects.push(e)}function Qo(){return Le}const Hr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},_s=e=>(e.w&ut)>0,ys=e=>(e.n&ut)>0,Yo=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ut},Xo=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const r=t[i];_s(r)&&!ys(r)?r.delete(e):t[n++]=r,r.w&=~ut,r.n&=~ut}t.length=n}},pr=new WeakMap;let Xt=0,ut=1;const gr=30;let Re;const Et=Symbol(""),mr=Symbol("");class Dr{constructor(t,n=null,i){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Vo(this,i)}run(){if(!this.active)return this.fn();let t=Re,n=lt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Re,Re=this,lt=!0,ut=1<<++Xt,Xt<=gr?Yo(this):li(this),this.fn()}finally{Xt<=gr&&Xo(this),ut=1<<--Xt,Re=this.parent,lt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Re===this?this.deferStop=!0:this.active&&(li(this),this.onStop&&this.onStop(),this.active=!1)}}function li(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let lt=!0;const ws=[];function Wt(){ws.push(lt),lt=!1}function Vt(){const e=ws.pop();lt=e===void 0?!0:e}function ke(e,t,n){if(lt&&Re){let i=pr.get(e);i||pr.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=Hr()),xs(r)}}function xs(e,t){let n=!1;Xt<=gr?ys(e)||(e.n|=ut,n=!_s(e)):n=!e.has(Re),n&&(e.add(Re),Re.deps.push(e))}function Ge(e,t,n,i,r,s){const l=pr.get(e);if(!l)return;let o=[];if(t==="clear")o=[...l.values()];else if(n==="length"&&V(e)){const a=Number(i);l.forEach((c,f)=>{(f==="length"||f>=a)&&o.push(c)})}else switch(n!==void 0&&o.push(l.get(n)),t){case"add":V(e)?Nr(n)&&o.push(l.get("length")):(o.push(l.get(Et)),Ot(e)&&o.push(l.get(mr)));break;case"delete":V(e)||(o.push(l.get(Et)),Ot(e)&&o.push(l.get(mr)));break;case"set":Ot(e)&&o.push(l.get(Et));break}if(o.length===1)o[0]&&vr(o[0]);else{const a=[];for(const c of o)c&&a.push(...c);vr(Hr(a))}}function vr(e,t){const n=V(e)?e:[...e];for(const i of n)i.computed&&ai(i);for(const i of n)i.computed||ai(i)}function ai(e,t){(e!==Re||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Jo=Rr("__proto__,__v_isRef,__isVue"),Cs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jr)),Zo=Ur(),Go=Ur(!1,!0),el=Ur(!0),ui=tl();function tl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=te(this);for(let s=0,l=this.length;s<l;s++)ke(i,"get",s+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(te)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Wt();const i=te(this)[t].apply(this,n);return Vt(),i}}),e}function nl(e){const t=te(this);return ke(t,"has",e),t.hasOwnProperty(e)}function Ur(e=!1,t=!1){return function(i,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?bl:Ts:t?As:ks).get(i))return i;const l=V(i);if(!e){if(l&&ee(ui,r))return Reflect.get(ui,r,s);if(r==="hasOwnProperty")return nl}const o=Reflect.get(i,r,s);return(jr(r)?Cs.has(r):Jo(r))||(e||ke(i,"get",r),t)?o:ye(o)?l&&Nr(r)?o:o.value:oe(o)?e?Fs(o):un(o):o}}const rl=Es(),il=Es(!0);function Es(e=!1){return function(n,i,r,s){let l=n[i];if(Nt(l)&&ye(l)&&!ye(r))return!1;if(!e&&(!Sn(r)&&!Nt(r)&&(l=te(l),r=te(r)),!V(n)&&ye(l)&&!ye(r)))return l.value=r,!0;const o=V(n)&&Nr(i)?Number(i)<n.length:ee(n,i),a=Reflect.set(n,i,r,s);return n===te(s)&&(o?tn(r,l)&&Ge(n,"set",i,r):Ge(n,"add",i,r)),a}}function sl(e,t){const n=ee(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&Ge(e,"delete",t,void 0),i}function ol(e,t){const n=Reflect.has(e,t);return(!jr(t)||!Cs.has(t))&&ke(e,"has",t),n}function ll(e){return ke(e,"iterate",V(e)?"length":Et),Reflect.ownKeys(e)}const Ss={get:Zo,set:rl,deleteProperty:sl,has:ol,ownKeys:ll},al={get:el,set(e,t){return!0},deleteProperty(e,t){return!0}},ul=me({},Ss,{get:Go,set:il}),Kr=e=>e,Bn=e=>Reflect.getPrototypeOf(e);function fn(e,t,n=!1,i=!1){e=e.__v_raw;const r=te(e),s=te(t);n||(t!==s&&ke(r,"get",t),ke(r,"get",s));const{has:l}=Bn(r),o=i?Kr:n?Qr:nn;if(l.call(r,t))return o(e.get(t));if(l.call(r,s))return o(e.get(s));e!==r&&e.get(t)}function dn(e,t=!1){const n=this.__v_raw,i=te(n),r=te(e);return t||(e!==r&&ke(i,"has",e),ke(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function hn(e,t=!1){return e=e.__v_raw,!t&&ke(te(e),"iterate",Et),Reflect.get(e,"size",e)}function ci(e){e=te(e);const t=te(this);return Bn(t).has.call(t,e)||(t.add(e),Ge(t,"add",e,e)),this}function fi(e,t){t=te(t);const n=te(this),{has:i,get:r}=Bn(n);let s=i.call(n,e);s||(e=te(e),s=i.call(n,e));const l=r.call(n,e);return n.set(e,t),s?tn(t,l)&&Ge(n,"set",e,t):Ge(n,"add",e,t),this}function di(e){const t=te(this),{has:n,get:i}=Bn(t);let r=n.call(t,e);r||(e=te(e),r=n.call(t,e)),i&&i.call(t,e);const s=t.delete(e);return r&&Ge(t,"delete",e,void 0),s}function hi(){const e=te(this),t=e.size!==0,n=e.clear();return t&&Ge(e,"clear",void 0,void 0),n}function pn(e,t){return function(i,r){const s=this,l=s.__v_raw,o=te(l),a=t?Kr:e?Qr:nn;return!e&&ke(o,"iterate",Et),l.forEach((c,f)=>i.call(r,a(c),a(f),s))}}function gn(e,t,n){return function(...i){const r=this.__v_raw,s=te(r),l=Ot(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=r[e](...i),f=n?Kr:t?Qr:nn;return!t&&ke(s,"iterate",a?mr:Et),{next(){const{value:g,done:d}=c.next();return d?{value:g,done:d}:{value:o?[f(g[0]),f(g[1])]:f(g),done:d}},[Symbol.iterator](){return this}}}}function nt(e){return function(...t){return e==="delete"?!1:this}}function cl(){const e={get(s){return fn(this,s)},get size(){return hn(this)},has:dn,add:ci,set:fi,delete:di,clear:hi,forEach:pn(!1,!1)},t={get(s){return fn(this,s,!1,!0)},get size(){return hn(this)},has:dn,add:ci,set:fi,delete:di,clear:hi,forEach:pn(!1,!0)},n={get(s){return fn(this,s,!0)},get size(){return hn(this,!0)},has(s){return dn.call(this,s,!0)},add:nt("add"),set:nt("set"),delete:nt("delete"),clear:nt("clear"),forEach:pn(!0,!1)},i={get(s){return fn(this,s,!0,!0)},get size(){return hn(this,!0)},has(s){return dn.call(this,s,!0)},add:nt("add"),set:nt("set"),delete:nt("delete"),clear:nt("clear"),forEach:pn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=gn(s,!1,!1),n[s]=gn(s,!0,!1),t[s]=gn(s,!1,!0),i[s]=gn(s,!0,!0)}),[e,n,t,i]}const[fl,dl,hl,pl]=cl();function Wr(e,t){const n=t?e?pl:hl:e?dl:fl;return(i,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(ee(n,r)&&r in i?n:i,r,s)}const gl={get:Wr(!1,!1)},ml={get:Wr(!1,!0)},vl={get:Wr(!0,!1)},ks=new WeakMap,As=new WeakMap,Ts=new WeakMap,bl=new WeakMap;function _l(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yl(e){return e.__v_skip||!Object.isExtensible(e)?0:_l(jo(e))}function un(e){return Nt(e)?e:Vr(e,!1,Ss,gl,ks)}function wl(e){return Vr(e,!1,ul,ml,As)}function Fs(e){return Vr(e,!0,al,vl,Ts)}function Vr(e,t,n,i,r){if(!oe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const l=yl(e);if(l===0)return e;const o=new Proxy(e,l===2?i:n);return r.set(e,o),o}function Rt(e){return Nt(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function Nt(e){return!!(e&&e.__v_isReadonly)}function Sn(e){return!!(e&&e.__v_isShallow)}function $s(e){return Rt(e)||Nt(e)}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function cn(e){return En(e,"__v_skip",!0),e}const nn=e=>oe(e)?un(e):e,Qr=e=>oe(e)?Fs(e):e;function Ps(e){lt&&Re&&(e=te(e),xs(e.dep||(e.dep=Hr())))}function Ms(e,t){e=te(e);const n=e.dep;n&&vr(n)}function ye(e){return!!(e&&e.__v_isRef===!0)}function he(e){return xl(e,!1)}function xl(e,t){return ye(e)?e:new Cl(e,t)}class Cl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:te(t),this._value=n?t:nn(t)}get value(){return Ps(this),this._value}set value(t){const n=this.__v_isShallow||Sn(t)||Nt(t);t=n?t:te(t),tn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:nn(t),Ms(this))}}function Pe(e){return ye(e)?e.value:e}const El={get:(e,t,n)=>Pe(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return ye(r)&&!ye(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function qs(e){return Rt(e)?e:new Proxy(e,El)}var zs;class Sl{constructor(t,n,i,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[zs]=!1,this._dirty=!0,this.effect=new Dr(t,()=>{this._dirty||(this._dirty=!0,Ms(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const t=te(this);return Ps(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}zs="__v_isReadonly";function kl(e,t,n=!1){let i,r;const s=X(e);return s?(i=e,r=Be):(i=e.get,r=e.set),new Sl(i,r,s||!r,n)}function at(e,t,n,i){let r;try{r=i?e(...i):e()}catch(s){jn(s,t,n)}return r}function qe(e,t,n,i){if(X(e)){const s=at(e,t,n,i);return s&&gs(s)&&s.catch(l=>{jn(l,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(qe(e[s],t,n,i));return r}function jn(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const l=t.proxy,o=n;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,o)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){at(a,null,10,[e,l,o]);return}}Al(e,n,r,i)}function Al(e,t,n,i=!0){console.error(e)}let rn=!1,br=!1;const _e=[];let We=0;const It=[];let Ze=null,yt=0;const Ls=Promise.resolve();let Yr=null;function _r(e){const t=Yr||Ls;return e?t.then(this?e.bind(this):e):t}function Tl(e){let t=We+1,n=_e.length;for(;t<n;){const i=t+n>>>1;sn(_e[i])<e?t=i+1:n=i}return t}function Xr(e){(!_e.length||!_e.includes(e,rn&&e.allowRecurse?We+1:We))&&(e.id==null?_e.push(e):_e.splice(Tl(e.id),0,e),Os())}function Os(){!rn&&!br&&(br=!0,Yr=Ls.then(Is))}function Fl(e){const t=_e.indexOf(e);t>We&&_e.splice(t,1)}function $l(e){V(e)?It.push(...e):(!Ze||!Ze.includes(e,e.allowRecurse?yt+1:yt))&&It.push(e),Os()}function pi(e,t=rn?We+1:0){for(;t<_e.length;t++){const n=_e[t];n&&n.pre&&(_e.splice(t,1),t--,n())}}function Rs(e){if(It.length){const t=[...new Set(It)];if(It.length=0,Ze){Ze.push(...t);return}for(Ze=t,Ze.sort((n,i)=>sn(n)-sn(i)),yt=0;yt<Ze.length;yt++)Ze[yt]();Ze=null,yt=0}}const sn=e=>e.id==null?1/0:e.id,Pl=(e,t)=>{const n=sn(e)-sn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Is(e){br=!1,rn=!0,_e.sort(Pl);const t=Be;try{for(We=0;We<_e.length;We++){const n=_e[We];n&&n.active!==!1&&at(n,null,14)}}finally{We=0,_e.length=0,Rs(),rn=!1,Yr=null,(_e.length||It.length)&&Is()}}function Ml(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||se;let r=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in i){const f=`${l==="modelValue"?"model":l}Modifiers`,{number:g,trim:d}=i[f]||se;d&&(r=n.map(y=>de(y)?y.trim():y)),g&&(r=n.map(Do))}let o,a=i[o=Zn(t)]||i[o=Zn(jt(t))];!a&&s&&(a=i[o=Zn(Kt(t))]),a&&qe(a,e,6,r);const c=i[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,qe(c,e,6,r)}}function Bs(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(r!==void 0)return r;const s=e.emits;let l={},o=!1;if(!X(e)){const a=c=>{const f=Bs(c,t,!0);f&&(o=!0,me(l,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!o?(oe(e)&&i.set(e,null),null):(V(s)?s.forEach(a=>l[a]=null):me(l,s),oe(e)&&i.set(e,l),l)}function Nn(e,t){return!e||!On(t)?!1:(t=t.slice(2).replace(/Once$/,""),ee(e,t[0].toLowerCase()+t.slice(1))||ee(e,Kt(t))||ee(e,t))}let Me=null,js=null;function kn(e){const t=Me;return Me=e,js=e&&e.type.__scopeId||null,t}function qt(e,t=Me,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&Ci(-1);const s=kn(t);let l;try{l=e(...r)}finally{kn(s),i._d&&Ci(1)}return l};return i._n=!0,i._c=!0,i._d=!0,i}function er(e){const{type:t,vnode:n,proxy:i,withProxy:r,props:s,propsOptions:[l],slots:o,attrs:a,emit:c,render:f,renderCache:g,data:d,setupState:y,ctx:k,inheritAttrs:S}=e;let P,I;const m=kn(e);try{if(n.shapeFlag&4){const _=r||i;P=Ue(f.call(_,_,g,s,y,d,k)),I=a}else{const _=t;P=Ue(_.length>1?_(s,{attrs:a,slots:o,emit:c}):_(s,null)),I=t.props?a:ql(a)}}catch(_){Gt.length=0,jn(_,e,1),P=ue(je)}let p=P;if(I&&S!==!1){const _=Object.keys(I),{shapeFlag:b}=p;_.length&&b&7&&(l&&_.some(Ir)&&(I=zl(I,l)),p=ct(p,I))}return n.dirs&&(p=ct(p),p.dirs=p.dirs?p.dirs.concat(n.dirs):n.dirs),n.transition&&(p.transition=n.transition),P=p,kn(m),P}const ql=e=>{let t;for(const n in e)(n==="class"||n==="style"||On(n))&&((t||(t={}))[n]=e[n]);return t},zl=(e,t)=>{const n={};for(const i in e)(!Ir(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Ll(e,t,n){const{props:i,children:r,component:s}=e,{props:l,children:o,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?gi(i,l,c):!!l;if(a&8){const f=t.dynamicProps;for(let g=0;g<f.length;g++){const d=f[g];if(l[d]!==i[d]&&!Nn(c,d))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:i===l?!1:i?l?gi(i,l,c):!0:!!l;return!1}function gi(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const s=i[r];if(t[s]!==e[s]&&!Nn(n,s))return!0}return!1}function Ol({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Rl=e=>e.__isSuspense;function Il(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):$l(e)}function Bl(e,t){if(fe){let n=fe.provides;const i=fe.parent&&fe.parent.provides;i===n&&(n=fe.provides=Object.create(i)),n[e]=t}}function yn(e,t,n=!1){const i=fe||Me;if(i){const r=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&X(t)?t.call(i.proxy):t}}const mn={};function Bt(e,t,n){return Ns(e,t,n)}function Ns(e,t,{immediate:n,deep:i,flush:r,onTrack:s,onTrigger:l}=se){const o=Qo()===fe?.scope?fe:null;let a,c=!1,f=!1;if(ye(e)?(a=()=>e.value,c=Sn(e)):Rt(e)?(a=()=>e,i=!0):V(e)?(f=!0,c=e.some(p=>Rt(p)||Sn(p)),a=()=>e.map(p=>{if(ye(p))return p.value;if(Rt(p))return Ct(p);if(X(p))return at(p,o,2)})):X(e)?t?a=()=>at(e,o,2):a=()=>{if(!(o&&o.isUnmounted))return g&&g(),qe(e,o,3,[d])}:a=Be,t&&i){const p=a;a=()=>Ct(p())}let g,d=p=>{g=I.onStop=()=>{at(p,o,4)}},y;if(ln)if(d=Be,t?n&&qe(t,o,3,[a(),f?[]:void 0,d]):a(),r==="sync"){const p=Fa();y=p.__watcherHandles||(p.__watcherHandles=[])}else return Be;let k=f?new Array(e.length).fill(mn):mn;const S=()=>{if(!!I.active)if(t){const p=I.run();(i||c||(f?p.some((_,b)=>tn(_,k[b])):tn(p,k)))&&(g&&g(),qe(t,o,3,[p,k===mn?void 0:f&&k[0]===mn?[]:k,d]),k=p)}else I.run()};S.allowRecurse=!!t;let P;r==="sync"?P=S:r==="post"?P=()=>Se(S,o&&o.suspense):(S.pre=!0,o&&(S.id=o.uid),P=()=>Xr(S));const I=new Dr(a,P);t?n?S():k=I.run():r==="post"?Se(I.run.bind(I),o&&o.suspense):I.run();const m=()=>{I.stop(),o&&o.scope&&Br(o.scope.effects,I)};return y&&y.push(m),m}function jl(e,t,n){const i=this.proxy,r=de(e)?e.includes(".")?Hs(i,e):()=>i[e]:e.bind(i,i);let s;X(t)?s=t:(s=t.handler,n=t);const l=fe;Dt(this);const o=Ns(r,s.bind(i),n);return l?Dt(l):St(),o}function Hs(e,t){const n=t.split(".");return()=>{let i=e;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}function Ct(e,t){if(!oe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ye(e))Ct(e.value,t);else if(V(e))for(let n=0;n<e.length;n++)Ct(e[n],t);else if(ps(e)||Ot(e))e.forEach(n=>{Ct(n,t)});else if(vs(e))for(const n in e)Ct(e[n],t);return e}function Nl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ht(()=>{e.isMounted=!0}),kt(()=>{e.isUnmounting=!0}),e}const Fe=[Function,Array],Hl={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Fe,onEnter:Fe,onAfterEnter:Fe,onEnterCancelled:Fe,onBeforeLeave:Fe,onLeave:Fe,onAfterLeave:Fe,onLeaveCancelled:Fe,onBeforeAppear:Fe,onAppear:Fe,onAfterAppear:Fe,onAppearCancelled:Fe},setup(e,{slots:t}){const n=Qe(),i=Nl();let r;return()=>{const s=t.default&&Ks(t.default(),!0);if(!s||!s.length)return;let l=s[0];if(s.length>1){for(const S of s)if(S.type!==je){l=S;break}}const o=te(e),{mode:a}=o;if(i.isLeaving)return tr(l);const c=mi(l);if(!c)return tr(l);const f=yr(c,o,i,n);wr(c,f);const g=n.subTree,d=g&&mi(g);let y=!1;const{getTransitionKey:k}=c.type;if(k){const S=k();r===void 0?r=S:S!==r&&(r=S,y=!0)}if(d&&d.type!==je&&(!wt(c,d)||y)){const S=yr(d,o,i,n);if(wr(d,S),a==="out-in")return i.isLeaving=!0,S.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},tr(l);a==="in-out"&&c.type!==je&&(S.delayLeave=(P,I,m)=>{const p=Us(i,d);p[String(d.key)]=d,P._leaveCb=()=>{I(),P._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=m})}return l}}},Ds=Hl;function Us(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function yr(e,t,n,i){const{appear:r,mode:s,persisted:l=!1,onBeforeEnter:o,onEnter:a,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:g,onLeave:d,onAfterLeave:y,onLeaveCancelled:k,onBeforeAppear:S,onAppear:P,onAfterAppear:I,onAppearCancelled:m}=t,p=String(e.key),_=Us(n,e),b=(A,T)=>{A&&qe(A,i,9,T)},C=(A,T)=>{const D=T[1];b(A,T),V(A)?A.every(W=>W.length<=1)&&D():A.length<=1&&D()},z={mode:s,persisted:l,beforeEnter(A){let T=o;if(!n.isMounted)if(r)T=S||o;else return;A._leaveCb&&A._leaveCb(!0);const D=_[p];D&&wt(e,D)&&D.el._leaveCb&&D.el._leaveCb(),b(T,[A])},enter(A){let T=a,D=c,W=f;if(!n.isMounted)if(r)T=P||a,D=I||c,W=m||f;else return;let L=!1;const Z=A._enterCb=B=>{L||(L=!0,B?b(W,[A]):b(D,[A]),z.delayedLeave&&z.delayedLeave(),A._enterCb=void 0)};T?C(T,[A,Z]):Z()},leave(A,T){const D=String(e.key);if(A._enterCb&&A._enterCb(!0),n.isUnmounting)return T();b(g,[A]);let W=!1;const L=A._leaveCb=Z=>{W||(W=!0,T(),Z?b(k,[A]):b(y,[A]),A._leaveCb=void 0,_[D]===e&&delete _[D])};_[D]=e,d?C(d,[A,L]):L()},clone(A){return yr(A,t,n,i)}};return z}function tr(e){if(Hn(e))return e=ct(e),e.children=null,e}function mi(e){return Hn(e)?e.children?e.children[0]:void 0:e}function wr(e,t){e.shapeFlag&6&&e.component?wr(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 Ks(e,t=!1,n){let i=[],r=0;for(let s=0;s<e.length;s++){let l=e[s];const o=n==null?l.key:String(n)+String(l.key!=null?l.key:s);l.type===xe?(l.patchFlag&128&&r++,i=i.concat(Ks(l.children,t,o))):(t||l.type!==je)&&i.push(o!=null?ct(l,{key:o}):l)}if(r>1)for(let s=0;s<i.length;s++)i[s].patchFlag=-2;return i}function Dl(e){return X(e)?{setup:e,name:e.name}:e}const wn=e=>!!e.type.__asyncLoader,Hn=e=>e.type.__isKeepAlive;function Ws(e,t){Qs(e,"a",t)}function Vs(e,t){Qs(e,"da",t)}function Qs(e,t,n=fe){const i=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Dn(t,i,n),n){let r=n.parent;for(;r&&r.parent;)Hn(r.parent.vnode)&&Ul(i,t,n,r),r=r.parent}}function Ul(e,t,n,i){const r=Dn(t,e,i,!0);Ys(()=>{Br(i[t],r)},n)}function Dn(e,t,n=fe,i=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;Wt(),Dt(n);const o=qe(t,n,e,l);return St(),Vt(),o});return i?r.unshift(s):r.push(s),s}}const et=e=>(t,n=fe)=>(!ln||e==="sp")&&Dn(e,(...i)=>t(...i),n),Kl=et("bm"),Ht=et("m"),Wl=et("bu"),Vl=et("u"),kt=et("bum"),Ys=et("um"),Ql=et("sp"),Yl=et("rtg"),Xl=et("rtc");function Jl(e,t=fe){Dn("ec",e,t)}function xr(e,t){const n=Me;if(n===null)return e;const i=Wn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[l,o,a,c=se]=t[s];l&&(X(l)&&(l={mounted:l,updated:l}),l.deep&&Ct(o),r.push({dir:l,instance:i,value:o,oldValue:void 0,arg:a,modifiers:c}))}return e}function gt(e,t,n,i){const r=e.dirs,s=t&&t.dirs;for(let l=0;l<r.length;l++){const o=r[l];s&&(o.oldValue=s[l].value);let a=o.dir[i];a&&(Wt(),qe(a,n,8,[e.el,o,e,t]),Vt())}}const Zl=Symbol();function An(e,t,n,i){let r;const s=n&&n[i];if(V(e)||de(e)){r=new Array(e.length);for(let l=0,o=e.length;l<o;l++)r[l]=t(e[l],l,void 0,s&&s[l])}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,s&&s[l])}else if(oe(e))if(e[Symbol.iterator])r=Array.from(e,(l,o)=>t(l,o,void 0,s&&s[o]));else{const l=Object.keys(e);r=new Array(l.length);for(let o=0,a=l.length;o<a;o++){const c=l[o];r[o]=t(e[c],c,o,s&&s[o])}}else r=[];return n&&(n[i]=r),r}const Cr=e=>e?oo(e)?Wn(e)||e.proxy:Cr(e.parent):null,Zt=me(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=>Cr(e.parent),$root:e=>Cr(e.root),$emit:e=>e.emit,$options:e=>Jr(e),$forceUpdate:e=>e.f||(e.f=()=>Xr(e.update)),$nextTick:e=>e.n||(e.n=_r.bind(e.proxy)),$watch:e=>jl.bind(e)}),nr=(e,t)=>e!==se&&!e.__isScriptSetup&&ee(e,t),Gl={get({_:e},t){const{ctx:n,setupState:i,data:r,props:s,accessCache:l,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const y=l[t];if(y!==void 0)switch(y){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(nr(i,t))return l[t]=1,i[t];if(r!==se&&ee(r,t))return l[t]=2,r[t];if((c=e.propsOptions[0])&&ee(c,t))return l[t]=3,s[t];if(n!==se&&ee(n,t))return l[t]=4,n[t];Er&&(l[t]=0)}}const f=Zt[t];let g,d;if(f)return t==="$attrs"&&ke(e,"get",t),f(e);if((g=o.__cssModules)&&(g=g[t]))return g;if(n!==se&&ee(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,ee(d,t))return d[t]},set({_:e},t,n){const{data:i,setupState:r,ctx:s}=e;return nr(r,t)?(r[t]=n,!0):i!==se&&ee(i,t)?(i[t]=n,!0):ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:s}},l){let o;return!!n[l]||e!==se&&ee(e,l)||nr(t,l)||(o=s[0])&&ee(o,l)||ee(i,l)||ee(Zt,l)||ee(r.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Er=!0;function ea(e){const t=Jr(e),n=e.proxy,i=e.ctx;Er=!1,t.beforeCreate&&vi(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:l,watch:o,provide:a,inject:c,created:f,beforeMount:g,mounted:d,beforeUpdate:y,updated:k,activated:S,deactivated:P,beforeDestroy:I,beforeUnmount:m,destroyed:p,unmounted:_,render:b,renderTracked:C,renderTriggered:z,errorCaptured:A,serverPrefetch:T,expose:D,inheritAttrs:W,components:L,directives:Z,filters:B}=t;if(c&&ta(c,i,null,e.appContext.config.unwrapInjectedRef),l)for(const j in l){const R=l[j];X(R)&&(i[j]=R.bind(n))}if(r){const j=r.call(n,n);oe(j)&&(e.data=un(j))}if(Er=!0,s)for(const j in s){const R=s[j],re=X(R)?R.bind(n,n):X(R.get)?R.get.bind(n,n):Be,ve=!X(R)&&X(R.set)?R.set.bind(n):Be,Ce=H({get:re,set:ve});Object.defineProperty(i,j,{enumerable:!0,configurable:!0,get:()=>Ce.value,set:le=>Ce.value=le})}if(o)for(const j in o)Xs(o[j],i,n,j);if(a){const j=X(a)?a.call(n):a;Reflect.ownKeys(j).forEach(R=>{Bl(R,j[R])})}f&&vi(f,e,"c");function F(j,R){V(R)?R.forEach(re=>j(re.bind(n))):R&&j(R.bind(n))}if(F(Kl,g),F(Ht,d),F(Wl,y),F(Vl,k),F(Ws,S),F(Vs,P),F(Jl,A),F(Xl,C),F(Yl,z),F(kt,m),F(Ys,_),F(Ql,T),V(D))if(D.length){const j=e.exposed||(e.exposed={});D.forEach(R=>{Object.defineProperty(j,R,{get:()=>n[R],set:re=>n[R]=re})})}else e.exposed||(e.exposed={});b&&e.render===Be&&(e.render=b),W!=null&&(e.inheritAttrs=W),L&&(e.components=L),Z&&(e.directives=Z)}function ta(e,t,n=Be,i=!1){V(e)&&(e=Sr(e));for(const r in e){const s=e[r];let l;oe(s)?"default"in s?l=yn(s.from||r,s.default,!0):l=yn(s.from||r):l=yn(s),ye(l)&&i?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:o=>l.value=o}):t[r]=l}}function vi(e,t,n){qe(V(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Xs(e,t,n,i){const r=i.includes(".")?Hs(n,i):()=>n[i];if(de(e)){const s=t[e];X(s)&&Bt(r,s)}else if(X(e))Bt(r,e.bind(n));else if(oe(e))if(V(e))e.forEach(s=>Xs(s,t,n,i));else{const s=X(e.handler)?e.handler.bind(n):t[e.handler];X(s)&&Bt(r,s,e)}}function Jr(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,o=s.get(t);let a;return o?a=o:!r.length&&!n&&!i?a=t:(a={},r.length&&r.forEach(c=>Tn(a,c,l,!0)),Tn(a,t,l)),oe(t)&&s.set(t,a),a}function Tn(e,t,n,i=!1){const{mixins:r,extends:s}=t;s&&Tn(e,s,n,!0),r&&r.forEach(l=>Tn(e,l,n,!0));for(const l in t)if(!(i&&l==="expose")){const o=na[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const na={data:bi,props:_t,emits:_t,methods:_t,computed:_t,beforeCreate:we,created:we,beforeMount:we,mounted:we,beforeUpdate:we,updated:we,beforeDestroy:we,beforeUnmount:we,destroyed:we,unmounted:we,activated:we,deactivated:we,errorCaptured:we,serverPrefetch:we,components:_t,directives:_t,watch:ia,provide:bi,inject:ra};function bi(e,t){return t?e?function(){return me(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function ra(e,t){return _t(Sr(e),Sr(t))}function Sr(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function we(e,t){return e?[...new Set([].concat(e,t))]:t}function _t(e,t){return e?me(me(Object.create(null),e),t):t}function ia(e,t){if(!e)return t;if(!t)return e;const n=me(Object.create(null),e);for(const i in t)n[i]=we(e[i],t[i]);return n}function sa(e,t,n,i=!1){const r={},s={};En(s,Kn,1),e.propsDefaults=Object.create(null),Js(e,t,r,s);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=i?r:wl(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function oa(e,t,n,i){const{props:r,attrs:s,vnode:{patchFlag:l}}=e,o=te(r),[a]=e.propsOptions;let c=!1;if((i||l>0)&&!(l&16)){if(l&8){const f=e.vnode.dynamicProps;for(let g=0;g<f.length;g++){let d=f[g];if(Nn(e.emitsOptions,d))continue;const y=t[d];if(a)if(ee(s,d))y!==s[d]&&(s[d]=y,c=!0);else{const k=jt(d);r[k]=kr(a,o,k,y,e,!1)}else y!==s[d]&&(s[d]=y,c=!0)}}}else{Js(e,t,r,s)&&(c=!0);let f;for(const g in o)(!t||!ee(t,g)&&((f=Kt(g))===g||!ee(t,f)))&&(a?n&&(n[g]!==void 0||n[f]!==void 0)&&(r[g]=kr(a,o,g,void 0,e,!0)):delete r[g]);if(s!==o)for(const g in s)(!t||!ee(t,g)&&!0)&&(delete s[g],c=!0)}c&&Ge(e,"set","$attrs")}function Js(e,t,n,i){const[r,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(_n(a))continue;const c=t[a];let f;r&&ee(r,f=jt(a))?!s||!s.includes(f)?n[f]=c:(o||(o={}))[f]=c:Nn(e.emitsOptions,a)||(!(a in i)||c!==i[a])&&(i[a]=c,l=!0)}if(s){const a=te(n),c=o||se;for(let f=0;f<s.length;f++){const g=s[f];n[g]=kr(r,a,g,c[g],e,!ee(c,g))}}return l}function kr(e,t,n,i,r,s){const l=e[n];if(l!=null){const o=ee(l,"default");if(o&&i===void 0){const a=l.default;if(l.type!==Function&&X(a)){const{propsDefaults:c}=r;n in c?i=c[n]:(Dt(r),i=c[n]=a.call(null,t),St())}else i=a}l[0]&&(s&&!o?i=!1:l[1]&&(i===""||i===Kt(n))&&(i=!0))}return i}function Zs(e,t,n=!1){const i=t.propsCache,r=i.get(e);if(r)return r;const s=e.props,l={},o=[];let a=!1;if(!X(e)){const f=g=>{a=!0;const[d,y]=Zs(g,t,!0);me(l,d),y&&o.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!s&&!a)return oe(e)&&i.set(e,Lt),Lt;if(V(s))for(let f=0;f<s.length;f++){const g=jt(s[f]);_i(g)&&(l[g]=se)}else if(s)for(const f in s){const g=jt(f);if(_i(g)){const d=s[f],y=l[g]=V(d)||X(d)?{type:d}:Object.assign({},d);if(y){const k=xi(Boolean,y.type),S=xi(String,y.type);y[0]=k>-1,y[1]=S<0||k<S,(k>-1||ee(y,"default"))&&o.push(g)}}}const c=[l,o];return oe(e)&&i.set(e,c),c}function _i(e){return e[0]!=="$"}function yi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function wi(e,t){return yi(e)===yi(t)}function xi(e,t){return V(t)?t.findIndex(n=>wi(n,e)):X(t)&&wi(t,e)?0:-1}const Gs=e=>e[0]==="_"||e==="$stable",Zr=e=>V(e)?e.map(Ue):[Ue(e)],la=(e,t,n)=>{if(t._n)return t;const i=qt((...r)=>Zr(t(...r)),n);return i._c=!1,i},eo=(e,t,n)=>{const i=e._ctx;for(const r in e){if(Gs(r))continue;const s=e[r];if(X(s))t[r]=la(r,s,i);else if(s!=null){const l=Zr(s);t[r]=()=>l}}},to=(e,t)=>{const n=Zr(t);e.slots.default=()=>n},aa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=te(t),En(t,"_",n)):eo(t,e.slots={})}else e.slots={},t&&to(e,t);En(e.slots,Kn,1)},ua=(e,t,n)=>{const{vnode:i,slots:r}=e;let s=!0,l=se;if(i.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:(me(r,t),!n&&o===1&&delete r._):(s=!t.$stable,eo(t,r)),l=t}else t&&(to(e,t),l={default:1});if(s)for(const o in r)!Gs(o)&&!(o in l)&&delete r[o]};function no(){return{app:null,config:{isNativeTag:Ro,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 ca=0;function fa(e,t){return function(i,r=null){X(i)||(i=Object.assign({},i)),r!=null&&!oe(r)&&(r=null);const s=no(),l=new Set;let o=!1;const a=s.app={_uid:ca++,_component:i,_props:r,_container:null,_context:s,_instance:null,version:$a,get config(){return s.config},set config(c){},use(c,...f){return l.has(c)||(c&&X(c.install)?(l.add(c),c.install(a,...f)):X(c)&&(l.add(c),c(a,...f))),a},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),a},component(c,f){return f?(s.components[c]=f,a):s.components[c]},directive(c,f){return f?(s.directives[c]=f,a):s.directives[c]},mount(c,f,g){if(!o){const d=ue(i,r);return d.appContext=s,f&&t?t(d,c):e(d,c,g),o=!0,a._container=c,c.__vue_app__=a,Wn(d.component)||d.component.proxy}},unmount(){o&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return s.provides[c]=f,a}};return a}}function Ar(e,t,n,i,r=!1){if(V(e)){e.forEach((d,y)=>Ar(d,t&&(V(t)?t[y]:t),n,i,r));return}if(wn(i)&&!r)return;const s=i.shapeFlag&4?Wn(i.component)||i.component.proxy:i.el,l=r?null:s,{i:o,r:a}=e,c=t&&t.r,f=o.refs===se?o.refs={}:o.refs,g=o.setupState;if(c!=null&&c!==a&&(de(c)?(f[c]=null,ee(g,c)&&(g[c]=null)):ye(c)&&(c.value=null)),X(a))at(a,o,12,[l,f]);else{const d=de(a),y=ye(a);if(d||y){const k=()=>{if(e.f){const S=d?ee(g,a)?g[a]:f[a]:a.value;r?V(S)&&Br(S,s):V(S)?S.includes(s)||S.push(s):d?(f[a]=[s],ee(g,a)&&(g[a]=f[a])):(a.value=[s],e.k&&(f[e.k]=a.value))}else d?(f[a]=l,ee(g,a)&&(g[a]=l)):y&&(a.value=l,e.k&&(f[e.k]=l))};l?(k.id=-1,Se(k,n)):k()}}}const Se=Il;function da(e){return ha(e)}function ha(e,t){const n=Ko();n.__VUE__=!0;const{insert:i,remove:r,patchProp:s,createElement:l,createText:o,createComment:a,setText:c,setElementText:f,parentNode:g,nextSibling:d,setScopeId:y=Be,insertStaticContent:k}=e,S=(u,h,v,x=null,w=null,M=null,O=!1,$=null,q=!!h.dynamicChildren)=>{if(u===h)return;u&&!wt(u,h)&&(x=Xe(u),le(u,w,M,!0),u=null),h.patchFlag===-2&&(q=!1,h.dynamicChildren=null);const{type:E,ref:U,shapeFlag:N}=h;switch(E){case Un:P(u,h,v,x);break;case je:I(u,h,v,x);break;case rr:u==null&&m(h,v,x,O);break;case xe:L(u,h,v,x,w,M,O,$,q);break;default:N&1?b(u,h,v,x,w,M,O,$,q):N&6?Z(u,h,v,x,w,M,O,$,q):(N&64||N&128)&&E.process(u,h,v,x,w,M,O,$,q,Je)}U!=null&&w&&Ar(U,u&&u.ref,M,h||u,!h)},P=(u,h,v,x)=>{if(u==null)i(h.el=o(h.children),v,x);else{const w=h.el=u.el;h.children!==u.children&&c(w,h.children)}},I=(u,h,v,x)=>{u==null?i(h.el=a(h.children||""),v,x):h.el=u.el},m=(u,h,v,x)=>{[u.el,u.anchor]=k(u.children,h,v,x,u.el,u.anchor)},p=({el:u,anchor:h},v,x)=>{let w;for(;u&&u!==h;)w=d(u),i(u,v,x),u=w;i(h,v,x)},_=({el:u,anchor:h})=>{let v;for(;u&&u!==h;)v=d(u),r(u),u=v;r(h)},b=(u,h,v,x,w,M,O,$,q)=>{O=O||h.type==="svg",u==null?C(h,v,x,w,M,O,$,q):T(u,h,w,M,O,$,q)},C=(u,h,v,x,w,M,O,$)=>{let q,E;const{type:U,props:N,shapeFlag:K,transition:Q,dirs:J}=u;if(q=u.el=l(u.type,M,N&&N.is,N),K&8?f(q,u.children):K&16&&A(u.children,q,null,x,w,M&&U!=="foreignObject",O,$),J&>(u,null,x,"created"),z(q,u,u.scopeId,O,x),N){for(const ne in N)ne!=="value"&&!_n(ne)&&s(q,ne,null,N[ne],M,u.children,x,w,Ee);"value"in N&&s(q,"value",null,N.value),(E=N.onVnodeBeforeMount)&&De(E,x,u)}J&>(u,null,x,"beforeMount");const ie=(!w||w&&!w.pendingBranch)&&Q&&!Q.persisted;ie&&Q.beforeEnter(q),i(q,h,v),((E=N&&N.onVnodeMounted)||ie||J)&&Se(()=>{E&&De(E,x,u),ie&&Q.enter(q),J&>(u,null,x,"mounted")},w)},z=(u,h,v,x,w)=>{if(v&&y(u,v),x)for(let M=0;M<x.length;M++)y(u,x[M]);if(w){let M=w.subTree;if(h===M){const O=w.vnode;z(u,O,O.scopeId,O.slotScopeIds,w.parent)}}},A=(u,h,v,x,w,M,O,$,q=0)=>{for(let E=q;E<u.length;E++){const U=u[E]=$?st(u[E]):Ue(u[E]);S(null,U,h,v,x,w,M,O,$)}},T=(u,h,v,x,w,M,O)=>{const $=h.el=u.el;let{patchFlag:q,dynamicChildren:E,dirs:U}=h;q|=u.patchFlag&16;const N=u.props||se,K=h.props||se;let Q;v&&mt(v,!1),(Q=K.onVnodeBeforeUpdate)&&De(Q,v,h,u),U&>(h,u,v,"beforeUpdate"),v&&mt(v,!0);const J=w&&h.type!=="foreignObject";if(E?D(u.dynamicChildren,E,$,v,x,J,M):O||R(u,h,$,null,v,x,J,M,!1),q>0){if(q&16)W($,h,N,K,v,x,w);else if(q&2&&N.class!==K.class&&s($,"class",null,K.class,w),q&4&&s($,"style",N.style,K.style,w),q&8){const ie=h.dynamicProps;for(let ne=0;ne<ie.length;ne++){const ce=ie[ne],ze=N[ce],Ft=K[ce];(Ft!==ze||ce==="value")&&s($,ce,ze,Ft,w,u.children,v,x,Ee)}}q&1&&u.children!==h.children&&f($,h.children)}else!O&&E==null&&W($,h,N,K,v,x,w);((Q=K.onVnodeUpdated)||U)&&Se(()=>{Q&&De(Q,v,h,u),U&>(h,u,v,"updated")},x)},D=(u,h,v,x,w,M,O)=>{for(let $=0;$<h.length;$++){const q=u[$],E=h[$],U=q.el&&(q.type===xe||!wt(q,E)||q.shapeFlag&70)?g(q.el):v;S(q,E,U,null,x,w,M,O,!0)}},W=(u,h,v,x,w,M,O)=>{if(v!==x){if(v!==se)for(const $ in v)!_n($)&&!($ in x)&&s(u,$,v[$],null,O,h.children,w,M,Ee);for(const $ in x){if(_n($))continue;const q=x[$],E=v[$];q!==E&&$!=="value"&&s(u,$,E,q,O,h.children,w,M,Ee)}"value"in x&&s(u,"value",v.value,x.value)}},L=(u,h,v,x,w,M,O,$,q)=>{const E=h.el=u?u.el:o(""),U=h.anchor=u?u.anchor:o("");let{patchFlag:N,dynamicChildren:K,slotScopeIds:Q}=h;Q&&($=$?$.concat(Q):Q),u==null?(i(E,v,x),i(U,v,x),A(h.children,v,U,w,M,O,$,q)):N>0&&N&64&&K&&u.dynamicChildren?(D(u.dynamicChildren,K,v,w,M,O,$),(h.key!=null||w&&h===w.subTree)&&ro(u,h,!0)):R(u,h,v,U,w,M,O,$,q)},Z=(u,h,v,x,w,M,O,$,q)=>{h.slotScopeIds=$,u==null?h.shapeFlag&512?w.ctx.activate(h,v,x,O,q):B(h,v,x,w,M,O,q):G(u,h,q)},B=(u,h,v,x,w,M,O)=>{const $=u.component=xa(u,x,w);if(Hn(u)&&($.ctx.renderer=Je),Ca($),$.asyncDep){if(w&&w.registerDep($,F),!u.el){const q=$.subTree=ue(je);I(null,q,h,v)}return}F($,u,h,v,w,M,O)},G=(u,h,v)=>{const x=h.component=u.component;if(Ll(u,h,v))if(x.asyncDep&&!x.asyncResolved){j(x,h,v);return}else x.next=h,Fl(x.update),x.update();else h.el=u.el,x.vnode=h},F=(u,h,v,x,w,M,O)=>{const $=()=>{if(u.isMounted){let{next:U,bu:N,u:K,parent:Q,vnode:J}=u,ie=U,ne;mt(u,!1),U?(U.el=J.el,j(u,U,O)):U=J,N&&Gn(N),(ne=U.props&&U.props.onVnodeBeforeUpdate)&&De(ne,Q,U,J),mt(u,!0);const ce=er(u),ze=u.subTree;u.subTree=ce,S(ze,ce,g(ze.el),Xe(ze),u,w,M),U.el=ce.el,ie===null&&Ol(u,ce.el),K&&Se(K,w),(ne=U.props&&U.props.onVnodeUpdated)&&Se(()=>De(ne,Q,U,J),w)}else{let U;const{el:N,props:K}=h,{bm:Q,m:J,parent:ie}=u,ne=wn(h);if(mt(u,!1),Q&&Gn(Q),!ne&&(U=K&&K.onVnodeBeforeMount)&&De(U,ie,h),mt(u,!0),N&&tt){const ce=()=>{u.subTree=er(u),tt(N,u.subTree,u,w,null)};ne?h.type.__asyncLoader().then(()=>!u.isUnmounted&&ce()):ce()}else{const ce=u.subTree=er(u);S(null,ce,v,x,u,w,M),h.el=ce.el}if(J&&Se(J,w),!ne&&(U=K&&K.onVnodeMounted)){const ce=h;Se(()=>De(U,ie,ce),w)}(h.shapeFlag&256||ie&&wn(ie.vnode)&&ie.vnode.shapeFlag&256)&&u.a&&Se(u.a,w),u.isMounted=!0,h=v=x=null}},q=u.effect=new Dr($,()=>Xr(E),u.scope),E=u.update=()=>q.run();E.id=u.uid,mt(u,!0),E()},j=(u,h,v)=>{h.component=u;const x=u.vnode.props;u.vnode=h,u.next=null,oa(u,h.props,x,v),ua(u,h.children,v),Wt(),pi(),Vt()},R=(u,h,v,x,w,M,O,$,q=!1)=>{const E=u&&u.children,U=u?u.shapeFlag:0,N=h.children,{patchFlag:K,shapeFlag:Q}=h;if(K>0){if(K&128){ve(E,N,v,x,w,M,O,$,q);return}else if(K&256){re(E,N,v,x,w,M,O,$,q);return}}Q&8?(U&16&&Ee(E,w,M),N!==E&&f(v,N)):U&16?Q&16?ve(E,N,v,x,w,M,O,$,q):Ee(E,w,M,!0):(U&8&&f(v,""),Q&16&&A(N,v,x,w,M,O,$,q))},re=(u,h,v,x,w,M,O,$,q)=>{u=u||Lt,h=h||Lt;const E=u.length,U=h.length,N=Math.min(E,U);let K;for(K=0;K<N;K++){const Q=h[K]=q?st(h[K]):Ue(h[K]);S(u[K],Q,v,null,w,M,O,$,q)}E>U?Ee(u,w,M,!0,!1,N):A(h,v,x,w,M,O,$,q,N)},ve=(u,h,v,x,w,M,O,$,q)=>{let E=0;const U=h.length;let N=u.length-1,K=U-1;for(;E<=N&&E<=K;){const Q=u[E],J=h[E]=q?st(h[E]):Ue(h[E]);if(wt(Q,J))S(Q,J,v,null,w,M,O,$,q);else break;E++}for(;E<=N&&E<=K;){const Q=u[N],J=h[K]=q?st(h[K]):Ue(h[K]);if(wt(Q,J))S(Q,J,v,null,w,M,O,$,q);else break;N--,K--}if(E>N){if(E<=K){const Q=K+1,J=Q<U?h[Q].el:x;for(;E<=K;)S(null,h[E]=q?st(h[E]):Ue(h[E]),v,J,w,M,O,$,q),E++}}else if(E>K)for(;E<=N;)le(u[E],w,M,!0),E++;else{const Q=E,J=E,ie=new Map;for(E=J;E<=K;E++){const Ae=h[E]=q?st(h[E]):Ue(h[E]);Ae.key!=null&&ie.set(Ae.key,E)}let ne,ce=0;const ze=K-J+1;let Ft=!1,ri=0;const Qt=new Array(ze);for(E=0;E<ze;E++)Qt[E]=0;for(E=Q;E<=N;E++){const Ae=u[E];if(ce>=ze){le(Ae,w,M,!0);continue}let He;if(Ae.key!=null)He=ie.get(Ae.key);else for(ne=J;ne<=K;ne++)if(Qt[ne-J]===0&&wt(Ae,h[ne])){He=ne;break}He===void 0?le(Ae,w,M,!0):(Qt[He-J]=E+1,He>=ri?ri=He:Ft=!0,S(Ae,h[He],v,null,w,M,O,$,q),ce++)}const ii=Ft?pa(Qt):Lt;for(ne=ii.length-1,E=ze-1;E>=0;E--){const Ae=J+E,He=h[Ae],si=Ae+1<U?h[Ae+1].el:x;Qt[E]===0?S(null,He,v,si,w,M,O,$,q):Ft&&(ne<0||E!==ii[ne]?Ce(He,v,si,2):ne--)}}},Ce=(u,h,v,x,w=null)=>{const{el:M,type:O,transition:$,children:q,shapeFlag:E}=u;if(E&6){Ce(u.component.subTree,h,v,x);return}if(E&128){u.suspense.move(h,v,x);return}if(E&64){O.move(u,h,v,Je);return}if(O===xe){i(M,h,v);for(let N=0;N<q.length;N++)Ce(q[N],h,v,x);i(u.anchor,h,v);return}if(O===rr){p(u,h,v);return}if(x!==2&&E&1&&$)if(x===0)$.beforeEnter(M),i(M,h,v),Se(()=>$.enter(M),w);else{const{leave:N,delayLeave:K,afterLeave:Q}=$,J=()=>i(M,h,v),ie=()=>{N(M,()=>{J(),Q&&Q()})};K?K(M,J,ie):ie()}else i(M,h,v)},le=(u,h,v,x=!1,w=!1)=>{const{type:M,props:O,ref:$,children:q,dynamicChildren:E,shapeFlag:U,patchFlag:N,dirs:K}=u;if($!=null&&Ar($,null,v,u,!0),U&256){h.ctx.deactivate(u);return}const Q=U&1&&K,J=!wn(u);let ie;if(J&&(ie=O&&O.onVnodeBeforeUnmount)&&De(ie,h,u),U&6)ht(u.component,v,x);else{if(U&128){u.suspense.unmount(v,x);return}Q&>(u,null,h,"beforeUnmount"),U&64?u.type.remove(u,h,v,w,Je,x):E&&(M!==xe||N>0&&N&64)?Ee(E,h,v,!1,!0):(M===xe&&N&384||!w&&U&16)&&Ee(q,h,v),x&&At(u)}(J&&(ie=O&&O.onVnodeUnmounted)||Q)&&Se(()=>{ie&&De(ie,h,u),Q&>(u,null,h,"unmounted")},v)},At=u=>{const{type:h,el:v,anchor:x,transition:w}=u;if(h===xe){Ne(v,x);return}if(h===rr){_(u);return}const M=()=>{r(v),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(u.shapeFlag&1&&w&&!w.persisted){const{leave:O,delayLeave:$}=w,q=()=>O(v,M);$?$(u.el,M,q):q()}else M()},Ne=(u,h)=>{let v;for(;u!==h;)v=d(u),r(u),u=v;r(h)},ht=(u,h,v)=>{const{bum:x,scope:w,update:M,subTree:O,um:$}=u;x&&Gn(x),w.stop(),M&&(M.active=!1,le(O,u,h,v)),$&&Se($,h),Se(()=>{u.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Ee=(u,h,v,x=!1,w=!1,M=0)=>{for(let O=M;O<u.length;O++)le(u[O],h,v,x,w)},Xe=u=>u.shapeFlag&6?Xe(u.component.subTree):u.shapeFlag&128?u.suspense.next():d(u.anchor||u.el),Tt=(u,h,v)=>{u==null?h._vnode&&le(h._vnode,null,null,!0):S(h._vnode||null,u,h,null,null,null,v),pi(),Rs(),h._vnode=u},Je={p:S,um:le,m:Ce,r:At,mt:B,mc:A,pc:R,pbc:D,n:Xe,o:e};let pt,tt;return t&&([pt,tt]=t(Je)),{render:Tt,hydrate:pt,createApp:fa(Tt,pt)}}function mt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ro(e,t,n=!1){const i=e.children,r=t.children;if(V(i)&&V(r))for(let s=0;s<i.length;s++){const l=i[s];let o=r[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[s]=st(r[s]),o.el=l.el),n||ro(l,o)),o.type===Un&&(o.el=l.el)}}function pa(e){const t=e.slice(),n=[0];let i,r,s,l,o;const a=e.length;for(i=0;i<a;i++){const c=e[i];if(c!==0){if(r=n[n.length-1],e[r]<c){t[i]=r,n.push(i);continue}for(s=0,l=n.length-1;s<l;)o=s+l>>1,e[n[o]]<c?s=o+1:l=o;c<e[n[s]]&&(s>0&&(t[i]=n[s-1]),n[s]=i)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}const ga=e=>e.__isTeleport,xe=Symbol(void 0),Un=Symbol(void 0),je=Symbol(void 0),rr=Symbol(void 0),Gt=[];let Ie=null;function pe(e=!1){Gt.push(Ie=e?null:[])}function ma(){Gt.pop(),Ie=Gt[Gt.length-1]||null}let on=1;function Ci(e){on+=e}function io(e){return e.dynamicChildren=on>0?Ie||Lt:null,ma(),on>0&&Ie&&Ie.push(e),e}function Te(e,t,n,i,r,s){return io(ae(e,t,n,i,r,s,!0))}function Fn(e,t,n,i,r){return io(ue(e,t,n,i,r,!0))}function Tr(e){return e?e.__v_isVNode===!0:!1}function wt(e,t){return e.type===t.type&&e.key===t.key}const Kn="__vInternal",so=({key:e})=>e??null,xn=({ref:e,ref_key:t,ref_for:n})=>e!=null?de(e)||ye(e)||X(e)?{i:Me,r:e,k:t,f:!!n}:e:null;function ae(e,t=null,n=null,i=0,r=null,s=e===xe?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&so(t),ref:t&&xn(t),scopeId:js,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Me};return o?(Gr(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=de(n)?8:16),on>0&&!l&&Ie&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Ie.push(a),a}const ue=va;function va(e,t=null,n=null,i=0,r=null,s=!1){if((!e||e===Zl)&&(e=je),Tr(e)){const o=ct(e,t,!0);return n&&Gr(o,n),on>0&&!s&&Ie&&(o.shapeFlag&6?Ie[Ie.indexOf(e)]=o:Ie.push(o)),o.patchFlag|=-2,o}if(Aa(e)&&(e=e.__vccOpts),t){t=ba(t);let{class:o,style:a}=t;o&&!de(o)&&(t.class=Ln(o)),oe(a)&&($s(a)&&!V(a)&&(a=me({},a)),t.style=zn(a))}const l=de(e)?1:Rl(e)?128:ga(e)?64:oe(e)?4:X(e)?2:0;return ae(e,t,n,i,r,l,s,!0)}function ba(e){return e?$s(e)||Kn in e?me({},e):e:null}function ct(e,t,n=!1){const{props:i,ref:r,patchFlag:s,children:l}=e,o=t?_a(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&so(o),ref:t&&t.ref?n&&r?V(r)?r.concat(xn(t)):[r,xn(t)]:xn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ct(e.ssContent),ssFallback:e.ssFallback&&ct(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Fr(e=" ",t=0){return ue(Un,null,e,t)}function $r(e="",t=!1){return t?(pe(),Fn(je,null,e)):ue(je,null,e)}function Ue(e){return e==null||typeof e=="boolean"?ue(je):V(e)?ue(xe,null,e.slice()):typeof e=="object"?st(e):ue(Un,null,String(e))}function st(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ct(e)}function Gr(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),Gr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Kn in t)?t._ctx=Me:r===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:Me},n=32):(t=String(t),i&64?(n=16,t=[Fr(t)]):n=8);e.children=t,e.shapeFlag|=n}function _a(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const r in i)if(r==="class")t.class!==i.class&&(t.class=Ln([t.class,i.class]));else if(r==="style")t.style=zn([t.style,i.style]);else if(On(r)){const s=t[r],l=i[r];l&&s!==l&&!(V(s)&&s.includes(l))&&(t[r]=s?[].concat(s,l):l)}else r!==""&&(t[r]=i[r])}return t}function De(e,t,n,i=null){qe(e,t,7,[n,i])}const ya=no();let wa=0;function xa(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||ya,s={uid:wa++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Wo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Zs(i,r),emitsOptions:Bs(i,r),emit:null,emitted:null,propsDefaults:se,inheritAttrs:i.inheritAttrs,ctx:se,data:se,props:se,attrs:se,slots:se,refs:se,setupState:se,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=Ml.bind(null,s),e.ce&&e.ce(s),s}let fe=null;const Qe=()=>fe||Me,Dt=e=>{fe=e,e.scope.on()},St=()=>{fe&&fe.scope.off(),fe=null};function oo(e){return e.vnode.shapeFlag&4}let ln=!1;function Ca(e,t=!1){ln=t;const{props:n,children:i}=e.vnode,r=oo(e);sa(e,n,r,t),aa(e,i);const s=r?Ea(e,t):void 0;return ln=!1,s}function Ea(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=cn(new Proxy(e.ctx,Gl));const{setup:i}=n;if(i){const r=e.setupContext=i.length>1?ka(e):null;Dt(e),Wt();const s=at(i,e,0,[e.props,r]);if(Vt(),St(),gs(s)){if(s.then(St,St),t)return s.then(l=>{Ei(e,l,t)}).catch(l=>{jn(l,e,0)});e.asyncDep=s}else Ei(e,s,t)}else lo(e,t)}function Ei(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:oe(t)&&(e.setupState=qs(t)),lo(e,n)}let Si;function lo(e,t,n){const i=e.type;if(!e.render){if(!t&&Si&&!i.render){const r=i.template||Jr(e).template;if(r){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=i,c=me(me({isCustomElement:s,delimiters:o},l),a);i.render=Si(r,c)}}e.render=i.render||Be}Dt(e),Wt(),ea(e),Vt(),St()}function Sa(e){return new Proxy(e.attrs,{get(t,n){return ke(e,"get","$attrs"),t[n]}})}function ka(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=Sa(e))},slots:e.slots,emit:e.emit,expose:t}}function Wn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(qs(cn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Zt)return Zt[n](e)},has(t,n){return n in t||n in Zt}}))}function Aa(e){return X(e)&&"__vccOpts"in e}const H=(e,t)=>kl(e,t,ln);function Y(e,t,n){const i=arguments.length;return i===2?oe(t)&&!V(t)?Tr(t)?ue(e,null,[t]):ue(e,t):ue(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Tr(n)&&(n=[n]),ue(e,t,n))}const Ta=Symbol(""),Fa=()=>yn(Ta),$a="3.2.47",Pa="http://www.w3.org/2000/svg",xt=typeof document<"u"?document:null,ki=xt&&xt.createElement("template"),Ma={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t?xt.createElementNS(Pa,e):xt.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>xt.createTextNode(e),createComment:e=>xt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,s){const l=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{ki.innerHTML=i?`<svg>${e}</svg>`:e;const o=ki.content;if(i){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function qa(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function za(e,t,n){const i=e.style,r=de(n);if(n&&!r){if(t&&!de(t))for(const s in t)n[s]==null&&Pr(i,s,"");for(const s in n)Pr(i,s,n[s])}else{const s=i.display;r?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=s)}}const Ai=/\s*!important$/;function Pr(e,t,n){if(V(n))n.forEach(i=>Pr(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=La(e,t);Ai.test(n)?e.setProperty(Kt(i),n.replace(Ai,""),"important"):e[i]=n}}const Ti=["Webkit","Moz","ms"],ir={};function La(e,t){const n=ir[t];if(n)return n;let i=jt(t);if(i!=="filter"&&i in e)return ir[t]=i;i=bs(i);for(let r=0;r<Ti.length;r++){const s=Ti[r]+i;if(s in e)return ir[t]=s}return t}const Fi="http://www.w3.org/1999/xlink";function Oa(e,t,n,i,r){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Fi,t.slice(6,t.length)):e.setAttributeNS(Fi,t,n);else{const s=Oo(t);n==null||s&&!ds(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function Ra(e,t,n,i,r,s,l){if(t==="innerHTML"||t==="textContent"){i&&l(i,r,s),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const a=n??"";(e.value!==a||e.tagName==="OPTION")&&(e.value=a),n==null&&e.removeAttribute(t);return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=ds(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(t)}function Ia(e,t,n,i){e.addEventListener(t,n,i)}function Ba(e,t,n,i){e.removeEventListener(t,n,i)}function ja(e,t,n,i,r=null){const s=e._vei||(e._vei={}),l=s[t];if(i&&l)l.value=i;else{const[o,a]=Na(t);if(i){const c=s[t]=Ua(i,r);Ia(e,o,c,a)}else l&&(Ba(e,o,l,a),s[t]=void 0)}}const $i=/(?:Once|Passive|Capture)$/;function Na(e){let t;if($i.test(e)){t={};let i;for(;i=e.match($i);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Kt(e.slice(2)),t]}let sr=0;const Ha=Promise.resolve(),Da=()=>sr||(Ha.then(()=>sr=0),sr=Date.now());function Ua(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;qe(Ka(i,n.value),t,5,[i])};return n.value=e,n.attached=Da(),n}function Ka(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>r=>!r._stopped&&i&&i(r))}else return t}const Pi=/^on[a-z]/,Wa=(e,t,n,i,r=!1,s,l,o,a)=>{t==="class"?qa(e,i,r):t==="style"?za(e,n,i):On(t)?Ir(t)||ja(e,t,n,i,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Va(e,t,i,r))?Ra(e,t,i,s,l,o,a):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Oa(e,t,i,r))};function Va(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&Pi.test(t)&&X(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Pi.test(t)&&de(n)?!1:t in e}const rt="transition",Yt="animation",ei=(e,{slots:t})=>Y(Ds,Qa(e),t);ei.displayName="Transition";const ao={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};ei.props=me({},Ds.props,ao);const vt=(e,t=[])=>{V(e)?e.forEach(n=>n(...t)):e&&e(...t)},Mi=e=>e?V(e)?e.some(t=>t.length>1):e.length>1:!1;function Qa(e){const t={};for(const L in e)L in ao||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:i,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:c=l,appearToClass:f=o,leaveFromClass:g=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,k=Ya(r),S=k&&k[0],P=k&&k[1],{onBeforeEnter:I,onEnter:m,onEnterCancelled:p,onLeave:_,onLeaveCancelled:b,onBeforeAppear:C=I,onAppear:z=m,onAppearCancelled:A=p}=t,T=(L,Z,B)=>{bt(L,Z?f:o),bt(L,Z?c:l),B&&B()},D=(L,Z)=>{L._isLeaving=!1,bt(L,g),bt(L,y),bt(L,d),Z&&Z()},W=L=>(Z,B)=>{const G=L?z:m,F=()=>T(Z,L,B);vt(G,[Z,F]),qi(()=>{bt(Z,L?a:s),it(Z,L?f:o),Mi(G)||zi(Z,i,S,F)})};return me(t,{onBeforeEnter(L){vt(I,[L]),it(L,s),it(L,l)},onBeforeAppear(L){vt(C,[L]),it(L,a),it(L,c)},onEnter:W(!1),onAppear:W(!0),onLeave(L,Z){L._isLeaving=!0;const B=()=>D(L,Z);it(L,g),Za(),it(L,d),qi(()=>{!L._isLeaving||(bt(L,g),it(L,y),Mi(_)||zi(L,i,P,B))}),vt(_,[L,B])},onEnterCancelled(L){T(L,!1),vt(p,[L])},onAppearCancelled(L){T(L,!0),vt(A,[L])},onLeaveCancelled(L){D(L),vt(b,[L])}})}function Ya(e){if(e==null)return null;if(oe(e))return[or(e.enter),or(e.leave)];{const t=or(e);return[t,t]}}function or(e){return Uo(e)}function it(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function bt(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function qi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Xa=0;function zi(e,t,n,i){const r=e._endId=++Xa,s=()=>{r===e._endId&&i()};if(n)return setTimeout(s,n);const{type:l,timeout:o,propCount:a}=Ja(e,t);if(!l)return i();const c=l+"end";let f=0;const g=()=>{e.removeEventListener(c,d),s()},d=y=>{y.target===e&&++f>=a&&g()};setTimeout(()=>{f<a&&g()},o+1),e.addEventListener(c,d)}function Ja(e,t){const n=window.getComputedStyle(e),i=k=>(n[k]||"").split(", "),r=i(`${rt}Delay`),s=i(`${rt}Duration`),l=Li(r,s),o=i(`${Yt}Delay`),a=i(`${Yt}Duration`),c=Li(o,a);let f=null,g=0,d=0;t===rt?l>0&&(f=rt,g=l,d=s.length):t===Yt?c>0&&(f=Yt,g=c,d=a.length):(g=Math.max(l,c),f=g>0?l>c?rt:Yt:null,d=f?f===rt?s.length:a.length:0);const y=f===rt&&/\b(transform|all)(,|$)/.test(i(`${rt}Property`).toString());return{type:f,timeout:g,propCount:d,hasTransform:y}}function Li(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>Oi(n)+Oi(e[i])))}function Oi(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Za(){return document.body.offsetHeight}const Ga=me({patchProp:Wa},Ma);let Ri;function eu(){return Ri||(Ri=da(Ga))}const tu=(...e)=>{const t=eu().createApp(...e),{mount:n}=t;return t.mount=i=>{const r=nu(i);if(!r)return;const s=t._component;!X(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.innerHTML="";const l=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function nu(e){return de(e)?document.querySelector(e):e}function ti(e,t,n,i){return Object.defineProperty(e,t,{get:n,set:i,enumerable:!0}),e}const ft=he(!1);let Vn;function ru(e,t){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[2]||n[4]||"0",versionNumber:n[4]||n[2]||"0",platform:t[0]||""}}function iu(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const uo="ontouchstart"in window||window.navigator.maxTouchPoints>0;function su(e){Vn={is:{...e}},delete e.mac,delete e.desktop;const t=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:t,[t]:!0})}function ou(e){const t=e.toLowerCase(),n=iu(t),i=ru(t,n),r={};i.browser&&(r[i.browser]=!0,r.version=i.version,r.versionNumber=parseInt(i.versionNumber,10)),i.platform&&(r[i.platform]=!0);const s=r.android||r.ios||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"];return s===!0||t.indexOf("mobile")>-1?(r.mobile=!0,r.edga||r.edgios?(r.edge=!0,i.browser="edge"):r.crios?(r.chrome=!0,i.browser="chrome"):r.fxios&&(r.firefox=!0,i.browser="firefox")):r.desktop=!0,(r.ipod||r.ipad||r.iphone)&&(r.ios=!0),r["windows phone"]&&(r.winphone=!0,delete r["windows phone"]),(r.chrome||r.opr||r.safari||r.vivaldi||r.mobile===!0&&r.ios!==!0&&s!==!0)&&(r.webkit=!0),r.edg&&(i.browser="edgechromium",r.edgeChromium=!0),(r.safari&&r.blackberry||r.bb)&&(i.browser="blackberry",r.blackberry=!0),r.safari&&r.playbook&&(i.browser="playbook",r.playbook=!0),r.opr&&(i.browser="opera",r.opera=!0),r.safari&&r.android&&(i.browser="android",r.android=!0),r.safari&&r.kindle&&(i.browser="kindle",r.kindle=!0),r.safari&&r.silk&&(i.browser="silk",r.silk=!0),r.vivaldi&&(i.browser="vivaldi",r.vivaldi=!0),r.name=i.browser,r.platform=i.platform,t.indexOf("electron")>-1?r.electron=!0:document.location.href.indexOf("-extension://")>-1?r.bex=!0:(window.Capacitor!==void 0?(r.capacitor=!0,r.nativeMobile=!0,r.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(r.cordova=!0,r.nativeMobile=!0,r.nativeMobileWrapper="cordova"),uo===!0&&r.mac===!0&&(r.desktop===!0&&r.safari===!0||r.nativeMobile===!0&&r.android!==!0&&r.ios!==!0&&r.ipad!==!0)&&su(r)),r}const Ii=navigator.userAgent||navigator.vendor||window.opera,lu={has:{touch:!1,webStorage:!1},within:{iframe:!1}},ge={userAgent:Ii,is:ou(Ii),has:{touch:uo},within:{iframe:window.self!==window.top}},$n={install(e){const{$q:t}=e;ft.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,ge),ft.value=!1,Vn=void 0}),t.platform=un(this)):t.platform=this}};{let e;ti(ge.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),ge.is.ios===!0&&window.navigator.vendor.toLowerCase().indexOf("apple"),ft.value===!0?Object.assign($n,ge,Vn,lu):Object.assign($n,ge)}var Qn=(e,t)=>{const n=un(e);for(const i in e)ti(t,i,()=>n[i],r=>{n[i]=r});return t};const Ve={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(Ve,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function dt(){}function au(e){return e.button===0}function Pn(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function en(e){e.stopPropagation()}function an(e){e.cancelable!==!1&&e.preventDefault()}function ot(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function lr(e,t){if(e===void 0||t===!0&&e.__dragPrevented===!0)return;const n=t===!0?i=>{i.__dragPrevented=!0,i.addEventListener("dragstart",an,Ve.notPassiveCapture)}:i=>{delete i.__dragPrevented,i.removeEventListener("dragstart",an,Ve.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function Jt(e,t,n){const i=`__q_${t}_evt`;e[i]=e[i]!==void 0?e[i].concat(n):n,n.forEach(r=>{r[0].addEventListener(r[1],e[r[2]],Ve[r[3]])})}function Cn(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(i=>{i[0].removeEventListener(i[1],e[i[2]],Ve[i[3]])}),e[n]=void 0)}function co(e,t=250,n){let i=null;function r(){const s=arguments,l=()=>{i=null,n!==!0&&e.apply(this,s)};i!==null?clearTimeout(i):n===!0&&e.apply(this,s),i=setTimeout(l,t)}return r.cancel=()=>{i!==null&&clearTimeout(i)},r}const ar=["sm","md","lg","xl"],{passive:Bi}=Ve;var uu=Qn({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:dt,setDebounce:dt,install({$q:e,onSSRHydrated:t}){if(e.screen=this,this.__installed===!0){e.config.screen!==void 0&&(e.config.screen.bodyClasses===!1?document.body.classList.remove(`screen--${this.name}`):this.__update(!0));return}const{visualViewport:n}=window,i=n||window,r=document.scrollingElement||document.documentElement,s=n===void 0||ge.is.mobile===!0?()=>[Math.max(window.innerWidth,r.clientWidth),Math.max(window.innerHeight,r.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-r.clientWidth,n.height*n.scale+window.innerHeight-r.clientHeight],l=e.config.screen!==void 0&&e.config.screen.bodyClasses===!0;this.__update=g=>{const[d,y]=s();if(y!==this.height&&(this.height=y),d!==this.width)this.width=d;else if(g!==!0)return;let k=this.sizes;this.gt.xs=d>=k.sm,this.gt.sm=d>=k.md,this.gt.md=d>=k.lg,this.gt.lg=d>=k.xl,this.lt.sm=d<k.sm,this.lt.md=d<k.md,this.lt.lg=d<k.lg,this.lt.xl=d<k.xl,this.xs=this.lt.sm,this.sm=this.gt.xs===!0&&this.lt.md===!0,this.md=this.gt.sm===!0&&this.lt.lg===!0,this.lg=this.gt.md===!0&&this.lt.xl===!0,this.xl=this.gt.lg,k=this.xs===!0&&"xs"||this.sm===!0&&"sm"||this.md===!0&&"md"||this.lg===!0&&"lg"||"xl",k!==this.name&&(l===!0&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${k}`)),this.name=k)};let o,a={},c=16;this.setSizes=g=>{ar.forEach(d=>{g[d]!==void 0&&(a[d]=g[d])})},this.setDebounce=g=>{c=g};const f=()=>{const g=getComputedStyle(document.body);g.getPropertyValue("--q-size-sm")&&ar.forEach(d=>{this.sizes[d]=parseInt(g.getPropertyValue(`--q-size-${d}`),10)}),this.setSizes=d=>{ar.forEach(y=>{d[y]&&(this.sizes[y]=d[y])}),this.__update(!0)},this.setDebounce=d=>{o!==void 0&&i.removeEventListener("resize",o,Bi),o=d>0?co(this.__update,d):this.__update,i.addEventListener("resize",o,Bi)},this.setDebounce(c),Object.keys(a).length>0?(this.setSizes(a),a=void 0):this.__update(),l===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};ft.value===!0?t.push(f):f()}});const be=Qn({isActive:!1,mode:!1},{__media:void 0,set(e){be.mode=e,e==="auto"?(be.__media===void 0&&(be.__media=window.matchMedia("(prefers-color-scheme: dark)"),be.__updateMedia=()=>{be.set("auto")},be.__media.addListener(be.__updateMedia)),e=be.__media.matches):be.__media!==void 0&&(be.__media.removeListener(be.__updateMedia),be.__media=void 0),be.isActive=e===!0,document.body.classList.remove(`body--${e===!0?"light":"dark"}`),document.body.classList.add(`body--${e===!0?"dark":"light"}`)},toggle(){be.set(be.isActive===!1)},install({$q:e,onSSRHydrated:t,ssrContext:n}){const{dark:i}=e.config;if(e.dark=this,this.__installed===!0&&i===void 0)return;this.isActive=i===!0;const r=i!==void 0?i:!1;if(ft.value===!0){const s=o=>{this.__fromSSR=o},l=this.set;this.set=s,s(r),t.push(()=>{this.set=l,this.set(this.__fromSSR)})}else this.set(r)}}),fo=()=>!0;function cu(e){return typeof e=="string"&&e!==""&&e!=="/"&&e!=="#/"}function fu(e){return e.startsWith("#")===!0&&(e=e.substring(1)),e.startsWith("/")===!1&&(e="/"+e),e.endsWith("/")===!0&&(e=e.substring(0,e.length-1)),"#"+e}function du(e){if(e.backButtonExit===!1)return()=>!1;if(e.backButtonExit==="*")return fo;const t=["#/"];return Array.isArray(e.backButtonExit)===!0&&t.push(...e.backButtonExit.filter(cu).map(fu)),()=>t.includes(window.location.hash)}var hu={__history:[],add:dt,remove:dt,install({$q:e}){if(this.__installed===!0)return;const{cordova:t,capacitor:n}=ge.is;if(t!==!0&&n!==!0)return;const i=e.config[t===!0?"cordova":"capacitor"];if(i!==void 0&&i.backButton===!1||n===!0&&(window.Capacitor===void 0||window.Capacitor.Plugins.App===void 0))return;this.add=l=>{l.condition===void 0&&(l.condition=fo),this.__history.push(l)},this.remove=l=>{const o=this.__history.indexOf(l);o>=0&&this.__history.splice(o,1)};const r=du(Object.assign({backButtonExit:!0},i)),s=()=>{if(this.__history.length){const l=this.__history[this.__history.length-1];l.condition()===!0&&(this.__history.pop(),l.handler())}else r()===!0?navigator.app.exitApp():window.history.back()};t===!0?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",s,!1)}):window.Capacitor.Plugins.App.addListener("backButton",s)}},ji={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>e===1?"1 record selected.":(e===0?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,n)=>e+"-"+t+" of "+n,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function Ni(){const e=Array.isArray(navigator.languages)===!0&&navigator.languages.length>0?navigator.languages[0]:navigator.language;if(typeof e=="string")return e.split(/[-_]/).map((t,n)=>n===0?t.toLowerCase():n>1||t.length<4?t.toUpperCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("-")}const Oe=Qn({__langPack:{}},{getLocale:Ni,set(e=ji,t){const n={...e,rtl:e.rtl===!0,getLocale:Ni};{if(n.set=Oe.set,Oe.__langConfig===void 0||Oe.__langConfig.noHtmlAttrs!==!0){const i=document.documentElement;i.setAttribute("dir",n.rtl===!0?"rtl":"ltr"),i.setAttribute("lang",n.isoName)}Object.assign(Oe.__langPack,n),Oe.props=n,Oe.isoName=n.isoName,Oe.nativeName=n.nativeName}},install({$q:e,lang:t,ssrContext:n}){e.lang=Oe.__langPack,Oe.__langConfig=e.config.lang,this.__installed===!0?t!==void 0&&this.set(t):this.set(t||ji)}});function pu(e,t,n=document.body){if(typeof e!="string")throw new TypeError("Expected a string as propName");if(typeof t!="string")throw new TypeError("Expected a string as value");if(!(n instanceof Element))throw new TypeError("Expected a DOM element");n.style.setProperty(`--q-${e}`,t)}let ho=!1;function gu(e){ho=e.isComposing===!0}function mu(e){return ho===!0||e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Mn(e,t){return mu(e)===!0?!1:[].concat(t).includes(e.keyCode)}function po(e){if(e.ios===!0)return"ios";if(e.android===!0)return"android"}function vu({is:e,has:t,within:n},i){const r=[e.desktop===!0?"desktop":"mobile",`${t.touch===!1?"no-":""}touch`];if(e.mobile===!0){const s=po(e);s!==void 0&&r.push("platform-"+s)}if(e.nativeMobile===!0){const s=e.nativeMobileWrapper;r.push(s),r.push("native-mobile"),e.ios===!0&&(i[s]===void 0||i[s].iosStatusBarPadding!==!1)&&r.push("q-ios-padding")}else e.electron===!0?r.push("electron"):e.bex===!0&&r.push("bex");return n.iframe===!0&&r.push("within-iframe"),r}function bu(){const{is:e}=ge,t=document.body.className,n=new Set(t.replace(/ {2}/g," ").split(" "));if(Vn!==void 0)n.delete("desktop"),n.add("platform-ios"),n.add("mobile");else if(e.nativeMobile!==!0&&e.electron!==!0&&e.bex!==!0){if(e.desktop===!0)n.delete("mobile"),n.delete("platform-ios"),n.delete("platform-android"),n.add("desktop");else if(e.mobile===!0){n.delete("desktop"),n.add("mobile");const r=po(e);r!==void 0?(n.add(`platform-${r}`),n.delete(`platform-${r==="ios"?"android":"ios"}`)):(n.delete("platform-ios"),n.delete("platform-android"))}}ge.has.touch===!0&&(n.delete("no-touch"),n.add("touch")),ge.within.iframe===!0&&n.add("within-iframe");const i=Array.from(n).join(" ");t!==i&&(document.body.className=i)}function _u(e){for(const t in e)pu(t,e[t])}var yu={install(e){if(this.__installed!==!0){if(ft.value===!0)bu();else{const{$q:t}=e;t.config.brand!==void 0&&_u(t.config.brand);const n=vu(ge,t.config);document.body.classList.add.apply(document.body.classList,n)}ge.is.ios===!0&&document.body.addEventListener("touchstart",dt),window.addEventListener("keydown",gu,!0)}}},wu={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}};const qn=Qn({iconMapFn:null,__icons:{}},{set(e,t){const n={...e,rtl:e.rtl===!0};n.set=qn.set,Object.assign(qn.__icons,n)},install({$q:e,iconSet:t,ssrContext:n}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,ti(e,"iconMapFn",()=>this.iconMapFn,i=>{this.iconMapFn=i}),this.__installed===!0?t!==void 0&&this.set(t):this.set(t||wu)}}),xu="_q_",Hi={};let go=!1;function Cu(){go=!0}function Di(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}const Ui=[$n,yu,be,uu,hu,Oe,qn];function Ki(e,t){t.forEach(n=>{n.install(e),n.__installed=!0})}function Eu(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(xu,n.$q),Ki(n,Ui),t.components!==void 0&&Object.values(t.components).forEach(i=>{Di(i)===!0&&i.name!==void 0&&e.component(i.name,i)}),t.directives!==void 0&&Object.values(t.directives).forEach(i=>{Di(i)===!0&&i.name!==void 0&&e.directive(i.name,i)}),t.plugins!==void 0&&Ki(n,Object.values(t.plugins).filter(i=>typeof i.install=="function"&&Ui.includes(i)===!1)),ft.value===!0&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach(i=>{i()}),n.$q.onSSRHydrated=()=>{}})}var Su=function(e,t={}){const n={version:"2.11.10"};go===!1?(t.config!==void 0&&Object.assign(Hi,t.config),n.config={...Hi},Cu()):n.config=t.config||{},Eu(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},ku={version:"2.11.10",install:Su,lang:Oe,iconSet:qn};const Mr={xs:18,sm:24,md:32,lg:38,xl:46},mo={size:String};function vo(e,t=Mr){return H(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}const Ye=e=>cn(Dl(e)),bo=e=>cn(e);function Yn(e,t){return e!==void 0&&e()||t}function Au(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function zt(e,t){return e!==void 0?t.concat(e()):t}const Wi="0 0 24 24",Vi=e=>e,ur=e=>`ionicons ${e}`,_o={"mdi-":e=>`mdi ${e}`,"icon-":Vi,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":ur,"ion-ios":ur,"ion-logo":ur,"iconfont ":Vi,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},yo={o_:"-outlined",r_:"-round",s_:"-sharp"},wo={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Tu=new RegExp("^("+Object.keys(_o).join("|")+")"),Fu=new RegExp("^("+Object.keys(yo).join("|")+")"),Qi=new RegExp("^("+Object.keys(wo).join("|")+")"),$u=/^[Mm]\s?[-+]?\.?\d/,Pu=/^img:/,Mu=/^svguse:/,qu=/^ion-/,zu=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;var qr=Ye({name:"QIcon",props:{...mo,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=Qe(),i=vo(e),r=H(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),s=H(()=>{let l,o=e.name;if(o==="none"||!o)return{none:!0};if(n.iconMapFn!==null){const f=n.iconMapFn(o);if(f!==void 0)if(f.icon!==void 0){if(o=f.icon,o==="none"||!o)return{none:!0}}else return{cls:f.cls,content:f.content!==void 0?f.content:" "}}if($u.test(o)===!0){const[f,g=Wi]=o.split("|");return{svg:!0,viewBox:g,nodes:f.split("&&").map(d=>{const[y,k,S]=d.split("@@");return Y("path",{style:k,d:y,transform:S})})}}if(Pu.test(o)===!0)return{img:!0,src:o.substring(4)};if(Mu.test(o)===!0){const[f,g=Wi]=o.split("|");return{svguse:!0,src:f.substring(7),viewBox:g}}let a=" ";const c=o.match(Tu);if(c!==null)l=_o[c[1]](o);else if(zu.test(o)===!0)l=o;else if(qu.test(o)===!0)l=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${o.substring(3)}`;else if(Qi.test(o)===!0){l="notranslate material-symbols";const f=o.match(Qi);f!==null&&(o=o.substring(6),l+=wo[f[1]]),a=o}else{l="notranslate material-icons";const f=o.match(Fu);f!==null&&(o=o.substring(2),l+=yo[f[1]]),a=o}return{cls:l,content:a}});return()=>{const l={class:r.value,style:i.value,"aria-hidden":"true",role:"presentation"};return s.value.none===!0?Y(e.tag,l,Yn(t.default)):s.value.img===!0?Y("span",l,zt(t.default,[Y("img",{src:s.value.src})])):s.value.svg===!0?Y("span",l,zt(t.default,[Y("svg",{viewBox:s.value.viewBox||"0 0 24 24"},s.value.nodes)])):s.value.svguse===!0?Y("span",l,zt(t.default,[Y("svg",{viewBox:s.value.viewBox},[Y("use",{"xlink:href":s.value.src})])])):(s.value.cls!==void 0&&(l.class+=" "+s.value.cls),Y(e.tag,l,zt(t.default,[s.value.content])))}}}),Ut=
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@quasar/render-ssr-error",
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
|
+
"description": "Renders SSR errors for Quasar CLI",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "src/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"lint": "eslint ./ --ext .js,.vue --fix",
|
|
9
|
+
"dev": "cd src-ui && quasar dev",
|
|
10
|
+
"build": "yarn build:ui && yarn build:package",
|
|
11
|
+
"build:ui": "cd src-ui && quasar build",
|
|
12
|
+
"build:package": "node ./build/index.js"
|
|
13
|
+
},
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "Razvan Stoenescu",
|
|
16
|
+
"email": "razvan.stoenescu@gmail.com",
|
|
17
|
+
"url": "https://github.com/quasarframework"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/quasarframework/quasar"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"bugs": "https://github.com/quasarframework/quasar/issues",
|
|
25
|
+
"homepage": "https://quasar.dev",
|
|
26
|
+
"funding": {
|
|
27
|
+
"type": "github",
|
|
28
|
+
"url": "https://donate.quasar.dev"
|
|
29
|
+
},
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">= 14.17.0"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@quasar/app-vite": "^1.0.0",
|
|
38
|
+
"@quasar/extras": "^1.0.0",
|
|
39
|
+
"autoprefixer": "^10.4.2",
|
|
40
|
+
"eslint": "^8.10.0",
|
|
41
|
+
"eslint-config-standard": "^17.0.0",
|
|
42
|
+
"eslint-plugin-import": "^2.19.1",
|
|
43
|
+
"eslint-plugin-n": "^15.0.0",
|
|
44
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
45
|
+
"eslint-plugin-vue": "^9.0.0",
|
|
46
|
+
"fs-extra": "^11.1.1",
|
|
47
|
+
"postcss": "^8.4.14",
|
|
48
|
+
"prismjs": "^1.29.0",
|
|
49
|
+
"quasar": "^2.6.0",
|
|
50
|
+
"vue": "^3.0.0",
|
|
51
|
+
"vue-router": "^4.0.0"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"stack-trace": "^1.0.0-pre2"
|
|
55
|
+
}
|
|
56
|
+
}
|
package/src/env.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
|
|
2
|
+
import os from 'node:os'
|
|
3
|
+
|
|
4
|
+
const nodejsVersion = `Node.js ${ process.versions.node } ${ os.type() }`
|
|
5
|
+
|
|
6
|
+
function getRequestProtocol (req) {
|
|
7
|
+
const proto = req.headers[ 'X-Forwarded-Proto' ]
|
|
8
|
+
return proto
|
|
9
|
+
? proto.split(/\s*,\s*/)[ 0 ].toUpperCase()
|
|
10
|
+
: (req.connection.encrypted ? 'HTTPS' : 'HTTP')
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function getRequestData (req) {
|
|
14
|
+
const url = new URL(req.url, 'http://localhost')
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
'Node.js': nodejsVersion,
|
|
18
|
+
'Server protocol': `${ getRequestProtocol(req) }/${ req.httpVersion }`,
|
|
19
|
+
'Remote address': (req.headers[ 'x-forwarded-for' ] || '').split(',')[ 0 ] || req.connection.remoteAddress,
|
|
20
|
+
'Remote port': req.connection.remotePort,
|
|
21
|
+
'Request URI': req.url,
|
|
22
|
+
'Request method': req.method,
|
|
23
|
+
'Request pathname': url.pathname,
|
|
24
|
+
'Request query string': url.search || ''
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function getHeadersData (req) {
|
|
29
|
+
return Object.keys(req.headers).reduce((acc, name) => {
|
|
30
|
+
acc[ name ] = req.headers[ name ]
|
|
31
|
+
return acc
|
|
32
|
+
}, {})
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function getCookiesData (req) {
|
|
36
|
+
const { cookie } = req.headers
|
|
37
|
+
if (cookie === void 0) return {}
|
|
38
|
+
return cookie.split('; ').reduce((acc, entry) => {
|
|
39
|
+
const parts = entry.split('=')
|
|
40
|
+
acc[ parts.shift().trim() ] = decodeURIComponent(parts.join('='))
|
|
41
|
+
return acc
|
|
42
|
+
}, {})
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function getEnvironmentVariablesData () {
|
|
46
|
+
return Object.keys(process.env).reduce((acc, name) => {
|
|
47
|
+
acc[ name ] = process.env[ name ]
|
|
48
|
+
return acc
|
|
49
|
+
}, {})
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function getEnv (req) {
|
|
53
|
+
return {
|
|
54
|
+
Request: getRequestData(req),
|
|
55
|
+
Headers: getHeadersData(req),
|
|
56
|
+
Cookies: getCookiesData(req),
|
|
57
|
+
'Shell environment variables': getEnvironmentVariablesData()
|
|
58
|
+
}
|
|
59
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
import { readFileSync } from 'node:fs'
|
|
3
|
+
|
|
4
|
+
import { getErrorDetails } from './error-details.js'
|
|
5
|
+
import { getStack } from './stack.js'
|
|
6
|
+
import { getEnv } from './env.js'
|
|
7
|
+
|
|
8
|
+
function readFile (target) {
|
|
9
|
+
return readFileSync(
|
|
10
|
+
new URL(`../compiled-assets/${ target }-injection`, import.meta.url).pathname,
|
|
11
|
+
'utf8'
|
|
12
|
+
)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const before = readFile('before')
|
|
16
|
+
const after = readFile('after')
|
|
17
|
+
|
|
18
|
+
export default function renderSSRError ({ err, req, res, projectRootFolder }) {
|
|
19
|
+
const data = {
|
|
20
|
+
error: getErrorDetails(err),
|
|
21
|
+
stack: getStack(err, projectRootFolder),
|
|
22
|
+
env: getEnv(req)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Uncomment this to debug the data
|
|
26
|
+
// writeFileSync(
|
|
27
|
+
// new URL('./data.json', import.meta.url).pathname, JSON.stringify(data, null, 2), 'utf8'
|
|
28
|
+
// )
|
|
29
|
+
|
|
30
|
+
res.status(500).send(
|
|
31
|
+
before
|
|
32
|
+
+ JSON.stringify(data).replaceAll(/<\/script>/g, '<\\/script>')
|
|
33
|
+
+ after
|
|
34
|
+
)
|
|
35
|
+
}
|
package/src/stack.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
|
|
2
|
+
import { existsSync, readFileSync } from 'node:fs'
|
|
3
|
+
import { join } from 'node:path'
|
|
4
|
+
import { parse } from 'stack-trace'
|
|
5
|
+
|
|
6
|
+
function getFilename (filename) {
|
|
7
|
+
if (existsSync(filename)) {
|
|
8
|
+
return filename
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
if (process.env.NVM_DIR && process.versions.node) {
|
|
12
|
+
const nodeFilename = join(process.env.NVM_DIR, 'src/node-v' + process.versions.node, 'lib', filename)
|
|
13
|
+
if (existsSync(nodeFilename)) {
|
|
14
|
+
return nodeFilename
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function getSource (entry) {
|
|
20
|
+
const declaredFilename = entry.getFileName()
|
|
21
|
+
const fileName = getFilename(declaredFilename)
|
|
22
|
+
|
|
23
|
+
if (!fileName) {
|
|
24
|
+
return {
|
|
25
|
+
fileName: declaredFilename,
|
|
26
|
+
sourceCode: null
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const fileContentLines = readFileSync(fileName, 'utf8').split('\n')
|
|
31
|
+
const lineNumber = entry.getLineNumber()
|
|
32
|
+
|
|
33
|
+
const startLineNumber = Math.max(1, lineNumber - 5)
|
|
34
|
+
const linesList = fileContentLines.slice(startLineNumber, lineNumber + 5)
|
|
35
|
+
|
|
36
|
+
if (linesList.length === 0) {
|
|
37
|
+
return {
|
|
38
|
+
fileName,
|
|
39
|
+
sourceCode: null
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const highlightTopOffset = `${ 16 /* top padding */ + ((lineNumber - startLineNumber - 1) * 21 /* line-height */) }px`
|
|
44
|
+
const highlightLeftOffset = `${ 16 /* left padding */ + (entry.getColumnNumber() * 14 /* font-size */) }px`
|
|
45
|
+
const maxLineNumberLen = ('' + (startLineNumber + linesList.length - 1)).length
|
|
46
|
+
|
|
47
|
+
return {
|
|
48
|
+
fileName,
|
|
49
|
+
sourceCode: {
|
|
50
|
+
linesList,
|
|
51
|
+
startLineNumber,
|
|
52
|
+
maxLineNumberLen,
|
|
53
|
+
highlightTopOffset,
|
|
54
|
+
highlightLeftOffset
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function getStack (err) {
|
|
60
|
+
const trace = parse(err)
|
|
61
|
+
|
|
62
|
+
return trace.map(entry => {
|
|
63
|
+
const { fileName, sourceCode } = getSource(entry)
|
|
64
|
+
|
|
65
|
+
return {
|
|
66
|
+
fileName,
|
|
67
|
+
sourceCode,
|
|
68
|
+
functionName: entry.getTypeName() || entry.getFunctionName(),
|
|
69
|
+
methodName: `${ entry.isConstructor() ? 'new ' : '' }${ entry.getMethodName() || '<anonymous>' }`,
|
|
70
|
+
native: entry.isNative(),
|
|
71
|
+
lineNumber: entry.getLineNumber(),
|
|
72
|
+
columnNumber: entry.getColumnNumber()
|
|
73
|
+
}
|
|
74
|
+
})
|
|
75
|
+
}
|