UNPKG

@runeya/runeya

Version:

Monitor processes as a stack

55 lines (52 loc) 126 kB
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Index-ivbhk-aX.js","assets/_commonjsHelpers-D6-XlEtG.js","assets/Section-D0z9MjV4.js","assets/index-CXxIspfv.js","assets/index-CHlc7El7.css","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/Section-DPgWRrmJ.css","assets/Theme-B97b3UpJ.js","assets/_baseFor-DiPelG4M.js","assets/Editor-B--wgkn6.js","assets/Editor-CPPFMOjb.css","assets/Index-Cd-qd5VG.css","assets/Index-CKF0MsPO.js","assets/index-DzbsgEyi.js","assets/NotUpToDate-B0J4qPnh.js","assets/Spinner-CkmZ5Bkp.js","assets/Spinner-BZXOybIg.css","assets/NotUpToDate-Dh9RbAwK.css","assets/Index-CShAY9sk.js","assets/Index-qEWsVaDe.js","assets/Index-DyYLUzbC.js","assets/json-tree-view-vue3.es-BsglhTJu.js","assets/Index-C66tLKvy.css","assets/Toolbox-CyQN5knH.js","assets/Toolbox-B5KXz4eX.css","assets/DynamicComponent-Wyi-ea9E.js","assets/DynamicComponent-DgxRO4Pl.css","assets/Modals-CcPPWWo_.js","assets/Modal-DfzlogP3.js","assets/Modal-CGUZawhK.css","assets/index-B-UE6JmD.js","assets/index-Bv49zKKl.js","assets/index-OI8gr_S5.js","assets/Logs-CyV9jI9C.js","assets/dayjs.min-CfWDS3UC.js","assets/fs-BJo4gV3E.js","assets/index-DFxHrn4y.js","assets/index-uAL7sKn7.js","assets/Logs-DX9U7WTO.css","assets/Git-BbebF7nu.js","assets/currentEditor-D3XVS39E.js","assets/Git-UQIt5ANe.css","assets/Index-DsBVNXJ8.js","assets/sort-BibmqbFD.js","assets/Index-BcFahN3S.css","assets/Npm-CQ5CrcHe.js","assets/Npm-KBzO1DYv.css","assets/Bugs-SLUzCwvS.js","assets/Bugs-DZVuTDKA.css","assets/Configs-CI4rTNMZ.js","assets/index-BF7FF_-U.js","assets/index-D5sk91UH.js","assets/index-BE770P-h.js","assets/index-CMj4Y1Yg.js","assets/lodash-D2RHCRSL.js","assets/Configs-BY4CcR9H.css","assets/Index-Oc79QNQL.js","assets/Markdown-plhGD_CA.js","assets/Markdown-CqAPHaPe.css","assets/index-CVX2mTq9.js","assets/Index-CvhWs0kp.css","assets/StackChooser-Cyfm3biQ.js","assets/system-BKM6fTSw.js","assets/LeftLogo-DZyE6XwZ.js","assets/LeftLogo-DsGaOcJY.css","assets/StackChooser-BFZVWsf1.js","assets/StackChooser-mg-uox7H.css","assets/StackChooser-DRNfmbOi.css","assets/StackSingle-D3NiZMLJ.js","assets/Tabs-Cgyr_8he.js","assets/Tabs-BGPqRkjE.css","assets/CurrentEditor-DNhSWY_9.js","assets/CurrentEditor-CICqnVzc.css","assets/StackSingle-BVHxvisP.css","assets/Overview-CN6pSTFP.js","assets/Overview-D94ypoub.css","assets/StackMultiple-CGOytGPV.js","assets/StackMultiple-CiXqkibR.css","assets/ImportCreate-BhZ9H4dz.js","assets/ImportCreate-D2Vb-Kah.css","assets/Settings-DS3bER2h.js","assets/Settings-DvieCtW4.css","assets/Init-B6-OnXzN.js"])))=>i.map(i=>d[i]); import{a2 as tn,a3 as Ie,Z as Lt,a4 as en,a5 as xt,a6 as nn,c as bt,a7 as Le,a8 as qt,r as St,w as De,i as rn,a9 as dt,aa as ot,k as B,ab as on,S as Bt}from"./index-CXxIspfv.js";import{c as $t,g as an}from"./_commonjsHelpers-D6-XlEtG.js";import{E as sn}from"./Editor-B--wgkn6.js";import{_ as cn}from"./Section-D0z9MjV4.js";/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */const Ft=typeof document<"u";function Ve(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ln(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ve(e.default)}const rt=Object.assign;function Jt(e,n){const o={};for(const r in n){const s=n[r];o[r]=mt(s)?s.map(e):e(s)}return o}const Dt=()=>{},mt=Array.isArray,He=/#/g,un=/&/g,fn=/\//g,hn=/=/g,pn=/\?/g,Pe=/\+/g,dn=/%5B/g,vn=/%5D/g,$e=/%5E/g,_n=/%60/g,Ue=/%7B/g,gn=/%7C/g,Be=/%7D/g,yn=/%20/g;function ie(e){return encodeURI(""+e).replace(gn,"|").replace(dn,"[").replace(vn,"]")}function mn(e){return ie(e).replace(Ue,"{").replace(Be,"}").replace($e,"^")}function ee(e){return ie(e).replace(Pe,"%2B").replace(yn,"+").replace(He,"%23").replace(un,"%26").replace(_n,"`").replace(Ue,"{").replace(Be,"}").replace($e,"^")}function bn(e){return ee(e).replace(hn,"%3D")}function wn(e){return ie(e).replace(He,"%23").replace(pn,"%3F")}function En(e){return e==null?"":wn(e).replace(fn,"%2F")}function Ht(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Cn=/\/$/,Rn=e=>e.replace(Cn,"");function Yt(e,n,o="/"){let r,s={},R="",t="";const w=n.indexOf("#");let c=n.indexOf("?");return w<c&&w>=0&&(c=-1),c>-1&&(r=n.slice(0,c),R=n.slice(c+1,w>-1?w:n.length),s=e(R)),w>-1&&(r=r||n.slice(0,w),t=n.slice(w,n.length)),r=xn(r??n,o),{fullPath:r+(R&&"?")+R+t,path:r,query:s,hash:Ht(t)}}function kn(e,n){const o=n.query?e(n.query):"";return n.path+(o&&"?")+o+(n.hash||"")}function fe(e,n){return!n||!e.toLowerCase().startsWith(n.toLowerCase())?e:e.slice(n.length)||"/"}function Sn(e,n,o){const r=n.matched.length-1,s=o.matched.length-1;return r>-1&&r===s&&At(n.matched[r],o.matched[s])&&Ne(n.params,o.params)&&e(n.query)===e(o.query)&&n.hash===o.hash}function At(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function Ne(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const o in e)if(!Tn(e[o],n[o]))return!1;return!0}function Tn(e,n){return mt(e)?he(e,n):mt(n)?he(n,e):e===n}function he(e,n){return mt(n)?e.length===n.length&&e.every((o,r)=>o===n[r]):e.length===1&&e[0]===n}function xn(e,n){if(e.startsWith("/"))return e;if(!e)return n;const o=n.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let R=o.length-1,t,w;for(t=0;t<r.length;t++)if(w=r[t],w!==".")if(w==="..")R>1&&R--;else break;return o.slice(0,R).join("/")+"/"+r.slice(t).join("/")}const Rt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Pt;(function(e){e.pop="pop",e.push="push"})(Pt||(Pt={}));var Vt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Vt||(Vt={}));function Fn(e){if(!e)if(Ft){const n=document.querySelector("base");e=n&&n.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Rn(e)}const An=/^[^#]+#/;function jn(e,n){return e.replace(An,"#")+n}function On(e,n){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:n.behavior,left:r.left-o.left-(n.left||0),top:r.top-o.top-(n.top||0)}}const Mt=()=>({left:window.scrollX,top:window.scrollY});function In(e){let n;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),s=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!s)return;n=On(s,e)}else n=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(n.left!=null?n.left:window.scrollX,n.top!=null?n.top:window.scrollY)}function pe(e,n){return(history.state?history.state.position-n:-1)+e}const ne=new Map;function Ln(e,n){ne.set(e,n)}function Dn(e){const n=ne.get(e);return ne.delete(e),n}let Vn=()=>location.protocol+"//"+location.host;function Me(e,n){const{pathname:o,search:r,hash:s}=n,R=e.indexOf("#");if(R>-1){let w=s.includes(e.slice(R))?e.slice(R).length:1,c=s.slice(w);return c[0]!=="/"&&(c="/"+c),fe(c,"")}return fe(o,e)+r+s}function Hn(e,n,o,r){let s=[],R=[],t=null;const w=({state:u})=>{const h=Me(e,location),d=o.value,m=n.value;let g=0;if(u){if(o.value=h,n.value=u,t&&t===d){t=null;return}g=m?u.position-m.position:0}else r(h);s.forEach(_=>{_(o.value,d,{delta:g,type:Pt.pop,direction:g?g>0?Vt.forward:Vt.back:Vt.unknown})})};function c(){t=o.value}function a(u){s.push(u);const h=()=>{const d=s.indexOf(u);d>-1&&s.splice(d,1)};return R.push(h),h}function y(){const{history:u}=window;u.state&&u.replaceState(rt({},u.state,{scroll:Mt()}),"")}function f(){for(const u of R)u();R=[],window.removeEventListener("popstate",w),window.removeEventListener("beforeunload",y)}return window.addEventListener("popstate",w),window.addEventListener("beforeunload",y,{passive:!0}),{pauseListeners:c,listen:a,destroy:f}}function de(e,n,o,r=!1,s=!1){return{back:e,current:n,forward:o,replaced:r,position:window.history.length,scroll:s?Mt():null}}function Pn(e){const{history:n,location:o}=window,r={value:Me(e,o)},s={value:n.state};s.value||R(r.value,{back:null,current:r.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function R(c,a,y){const f=e.indexOf("#"),u=f>-1?(o.host&&document.querySelector("base")?e:e.slice(f))+c:Vn()+e+c;try{n[y?"replaceState":"pushState"](a,"",u),s.value=a}catch(h){console.error(h),o[y?"replace":"assign"](u)}}function t(c,a){const y=rt({},n.state,de(s.value.back,c,s.value.forward,!0),a,{position:s.value.position});R(c,y,!0),r.value=c}function w(c,a){const y=rt({},s.value,n.state,{forward:c,scroll:Mt()});R(y.current,y,!0);const f=rt({},de(r.value,c,null),{position:y.position+1},a);R(c,f,!1),r.value=c}return{location:r,state:s,push:w,replace:t}}function $n(e){e=Fn(e);const n=Pn(e),o=Hn(e,n.state,n.location,n.replace);function r(R,t=!0){t||o.pauseListeners(),history.go(R)}const s=rt({location:"",base:e,go:r,createHref:jn.bind(null,e)},n,o);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>n.state.value}),s}function Un(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),$n(e)}function Bn(e){return typeof e=="string"||e&&typeof e=="object"}function We(e){return typeof e=="string"||typeof e=="symbol"}const Ge=Symbol("");var ve;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ve||(ve={}));function jt(e,n){return rt(new Error,{type:e,[Ge]:!0},n)}function Ct(e,n){return e instanceof Error&&Ge in e&&(n==null||!!(e.type&n))}const _e="[^/]+?",Nn={sensitive:!1,strict:!1,start:!0,end:!0},Mn=/[.+*?^${}()[\]/\\]/g;function Wn(e,n){const o=rt({},Nn,n),r=[];let s=o.start?"^":"";const R=[];for(const a of e){const y=a.length?[]:[90];o.strict&&!a.length&&(s+="/");for(let f=0;f<a.length;f++){const u=a[f];let h=40+(o.sensitive?.25:0);if(u.type===0)f||(s+="/"),s+=u.value.replace(Mn,"\\$&"),h+=40;else if(u.type===1){const{value:d,repeatable:m,optional:g,regexp:_}=u;R.push({name:d,repeatable:m,optional:g});const b=_||_e;if(b!==_e){h+=10;try{new RegExp(`(${b})`)}catch(v){throw new Error(`Invalid custom RegExp for param "${d}" (${b}): `+v.message)}}let p=m?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(p=g&&a.length<2?`(?:/${p})`:"/"+p),g&&(p+="?"),s+=p,h+=20,g&&(h+=-8),m&&(h+=-20),b===".*"&&(h+=-50)}y.push(h)}r.push(y)}if(o.strict&&o.end){const a=r.length-1;r[a][r[a].length-1]+=.7000000000000001}o.strict||(s+="/?"),o.end?s+="$":o.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const t=new RegExp(s,o.sensitive?"":"i");function w(a){const y=a.match(t),f={};if(!y)return null;for(let u=1;u<y.length;u++){const h=y[u]||"",d=R[u-1];f[d.name]=h&&d.repeatable?h.split("/"):h}return f}function c(a){let y="",f=!1;for(const u of e){(!f||!y.endsWith("/"))&&(y+="/"),f=!1;for(const h of u)if(h.type===0)y+=h.value;else if(h.type===1){const{value:d,repeatable:m,optional:g}=h,_=d in a?a[d]:"";if(mt(_)&&!m)throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);const b=mt(_)?_.join("/"):_;if(!b)if(g)u.length<2&&(y.endsWith("/")?y=y.slice(0,-1):f=!0);else throw new Error(`Missing required param "${d}"`);y+=b}}return y||"/"}return{re:t,score:r,keys:R,parse:w,stringify:c}}function Gn(e,n){let o=0;for(;o<e.length&&o<n.length;){const r=n[o]-e[o];if(r)return r;o++}return e.length<n.length?e.length===1&&e[0]===80?-1:1:e.length>n.length?n.length===1&&n[0]===80?1:-1:0}function ze(e,n){let o=0;const r=e.score,s=n.score;for(;o<r.length&&o<s.length;){const R=Gn(r[o],s[o]);if(R)return R;o++}if(Math.abs(s.length-r.length)===1){if(ge(r))return 1;if(ge(s))return-1}return s.length-r.length}function ge(e){const n=e[e.length-1];return e.length>0&&n[n.length-1]<0}const zn={type:0,value:""},Qn=/[a-zA-Z0-9_]/;function Kn(e){if(!e)return[[]];if(e==="/")return[[zn]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function n(h){throw new Error(`ERR (${o})/"${a}": ${h}`)}let o=0,r=o;const s=[];let R;function t(){R&&s.push(R),R=[]}let w=0,c,a="",y="";function f(){a&&(o===0?R.push({type:0,value:a}):o===1||o===2||o===3?(R.length>1&&(c==="*"||c==="+")&&n(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),R.push({type:1,value:a,regexp:y,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):n("Invalid state to consume buffer"),a="")}function u(){a+=c}for(;w<e.length;){if(c=e[w++],c==="\\"&&o!==2){r=o,o=4;continue}switch(o){case 0:c==="/"?(a&&f(),t()):c===":"?(f(),o=1):u();break;case 4:u(),o=r;break;case 1:c==="("?o=2:Qn.test(c)?u():(f(),o=0,c!=="*"&&c!=="?"&&c!=="+"&&w--);break;case 2:c===")"?y[y.length-1]=="\\"?y=y.slice(0,-1)+c:o=3:y+=c;break;case 3:f(),o=0,c!=="*"&&c!=="?"&&c!=="+"&&w--,y="";break;default:n("Unknown state");break}}return o===2&&n(`Unfinished custom RegExp for param "${a}"`),f(),t(),s}function Xn(e,n,o){const r=Wn(Kn(e.path),o),s=rt(r,{record:e,parent:n,children:[],alias:[]});return n&&!s.record.aliasOf==!n.record.aliasOf&&n.children.push(s),s}function qn(e,n){const o=[],r=new Map;n=we({strict:!1,end:!0,sensitive:!1},n);function s(f){return r.get(f)}function R(f,u,h){const d=!h,m=me(f);m.aliasOf=h&&h.record;const g=we(n,f),_=[m];if("alias"in f){const v=typeof f.alias=="string"?[f.alias]:f.alias;for(const T of v)_.push(me(rt({},m,{components:h?h.record.components:m.components,path:T,aliasOf:h?h.record:m})))}let b,p;for(const v of _){const{path:T}=v;if(u&&T[0]!=="/"){const A=u.record.path,x=A[A.length-1]==="/"?"":"/";v.path=u.record.path+(T&&x+T)}if(b=Xn(v,u,g),h?h.alias.push(b):(p=p||b,p!==b&&p.alias.push(b),d&&f.name&&!be(b)&&t(f.name)),Qe(b)&&c(b),m.children){const A=m.children;for(let x=0;x<A.length;x++)R(A[x],b,h&&h.children[x])}h=h||b}return p?()=>{t(p)}:Dt}function t(f){if(We(f)){const u=r.get(f);u&&(r.delete(f),o.splice(o.indexOf(u),1),u.children.forEach(t),u.alias.forEach(t))}else{const u=o.indexOf(f);u>-1&&(o.splice(u,1),f.record.name&&r.delete(f.record.name),f.children.forEach(t),f.alias.forEach(t))}}function w(){return o}function c(f){const u=Zn(f,o);o.splice(u,0,f),f.record.name&&!be(f)&&r.set(f.record.name,f)}function a(f,u){let h,d={},m,g;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw jt(1,{location:f});g=h.record.name,d=rt(ye(u.params,h.keys.filter(p=>!p.optional).concat(h.parent?h.parent.keys.filter(p=>p.optional):[]).map(p=>p.name)),f.params&&ye(f.params,h.keys.map(p=>p.name))),m=h.stringify(d)}else if(f.path!=null)m=f.path,h=o.find(p=>p.re.test(m)),h&&(d=h.parse(m),g=h.record.name);else{if(h=u.name?r.get(u.name):o.find(p=>p.re.test(u.path)),!h)throw jt(1,{location:f,currentLocation:u});g=h.record.name,d=rt({},u.params,f.params),m=h.stringify(d)}const _=[];let b=h;for(;b;)_.unshift(b.record),b=b.parent;return{name:g,path:m,params:d,matched:_,meta:Yn(_)}}e.forEach(f=>R(f));function y(){o.length=0,r.clear()}return{addRoute:R,resolve:a,removeRoute:t,clearRoutes:y,getRoutes:w,getRecordMatcher:s}}function ye(e,n){const o={};for(const r of n)r in e&&(o[r]=e[r]);return o}function me(e){const n={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Jn(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(n,"mods",{value:{}}),n}function Jn(e){const n={},o=e.props||!1;if("component"in e)n.default=o;else for(const r in e.components)n[r]=typeof o=="object"?o[r]:o;return n}function be(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Yn(e){return e.reduce((n,o)=>rt(n,o.meta),{})}function we(e,n){const o={};for(const r in e)o[r]=r in n?n[r]:e[r];return o}function Zn(e,n){let o=0,r=n.length;for(;o!==r;){const R=o+r>>1;ze(e,n[R])<0?r=R:o=R+1}const s=tr(e);return s&&(r=n.lastIndexOf(s,r-1)),r}function tr(e){let n=e;for(;n=n.parent;)if(Qe(n)&&ze(e,n)===0)return n}function Qe({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function er(e){const n={};if(e===""||e==="?")return n;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<r.length;++s){const R=r[s].replace(Pe," "),t=R.indexOf("="),w=Ht(t<0?R:R.slice(0,t)),c=t<0?null:Ht(R.slice(t+1));if(w in n){let a=n[w];mt(a)||(a=n[w]=[a]),a.push(c)}else n[w]=c}return n}function Ee(e){let n="";for(let o in e){const r=e[o];if(o=bn(o),r==null){r!==void 0&&(n+=(n.length?"&":"")+o);continue}(mt(r)?r.map(R=>R&&ee(R)):[r&&ee(r)]).forEach(R=>{R!==void 0&&(n+=(n.length?"&":"")+o,R!=null&&(n+="="+R))})}return n}function nr(e){const n={};for(const o in e){const r=e[o];r!==void 0&&(n[o]=mt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return n}const rr=Symbol(""),Ce=Symbol(""),Wt=Symbol(""),oe=Symbol(""),re=Symbol("");function It(){let e=[];function n(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function o(){e=[]}return{add:n,list:()=>e.slice(),reset:o}}function kt(e,n,o,r,s,R=t=>t()){const t=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((w,c)=>{const a=u=>{u===!1?c(jt(4,{from:o,to:n})):u instanceof Error?c(u):Bn(u)?c(jt(2,{from:n,to:u})):(t&&r.enterCallbacks[s]===t&&typeof u=="function"&&t.push(u),w())},y=R(()=>e.call(r&&r.instances[s],n,o,a));let f=Promise.resolve(y);e.length<3&&(f=f.then(a)),f.catch(u=>c(u))})}function Zt(e,n,o,r,s=R=>R()){const R=[];for(const t of e)for(const w in t.components){let c=t.components[w];if(!(n!=="beforeRouteEnter"&&!t.instances[w]))if(Ve(c)){const y=(c.__vccOpts||c)[n];y&&R.push(kt(y,o,r,t,w,s))}else{let a=c();R.push(()=>a.then(y=>{if(!y)throw new Error(`Couldn't resolve component "${w}" at "${t.path}"`);const f=ln(y)?y.default:y;t.mods[w]=y,t.components[w]=f;const h=(f.__vccOpts||f)[n];return h&&kt(h,o,r,t,w,s)()}))}}return R}function Re(e){const n=xt(Wt),o=xt(oe),r=bt(()=>{const c=Lt(e.to);return n.resolve(c)}),s=bt(()=>{const{matched:c}=r.value,{length:a}=c,y=c[a-1],f=o.matched;if(!y||!f.length)return-1;const u=f.findIndex(At.bind(null,y));if(u>-1)return u;const h=ke(c[a-2]);return a>1&&ke(y)===h&&f[f.length-1].path!==h?f.findIndex(At.bind(null,c[a-2])):u}),R=bt(()=>s.value>-1&&cr(o.params,r.value.params)),t=bt(()=>s.value>-1&&s.value===o.matched.length-1&&Ne(o.params,r.value.params));function w(c={}){if(sr(c)){const a=n[Lt(e.replace)?"replace":"push"](Lt(e.to)).catch(Dt);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>a),a}return Promise.resolve()}return{route:r,href:bt(()=>r.value.href),isActive:R,isExactActive:t,navigate:w}}function ir(e){return e.length===1?e[0]:e}const or=Ie({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:Re,setup(e,{slots:n}){const o=nn(Re(e)),{options:r}=xt(Wt),s=bt(()=>({[Se(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[Se(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const R=n.default&&ir(n.default(o));return e.custom?R:Le("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:s.value},R)}}}),ar=or;function sr(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 n=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return e.preventDefault&&e.preventDefault(),!0}}function cr(e,n){for(const o in n){const r=n[o],s=e[o];if(typeof r=="string"){if(r!==s)return!1}else if(!mt(s)||s.length!==r.length||r.some((R,t)=>R!==s[t]))return!1}return!0}function ke(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Se=(e,n,o)=>e??n??o,lr=Ie({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:n,slots:o}){const r=xt(re),s=bt(()=>e.route||r.value),R=xt(Ce,0),t=bt(()=>{let a=Lt(R);const{matched:y}=s.value;let f;for(;(f=y[a])&&!f.components;)a++;return a}),w=bt(()=>s.value.matched[t.value]);qt(Ce,bt(()=>t.value+1)),qt(rr,w),qt(re,s);const c=St();return De(()=>[c.value,w.value,e.name],([a,y,f],[u,h,d])=>{y&&(y.instances[f]=a,h&&h!==y&&a&&a===u&&(y.leaveGuards.size||(y.leaveGuards=h.leaveGuards),y.updateGuards.size||(y.updateGuards=h.updateGuards))),a&&y&&(!h||!At(y,h)||!u)&&(y.enterCallbacks[f]||[]).forEach(m=>m(a))},{flush:"post"}),()=>{const a=s.value,y=e.name,f=w.value,u=f&&f.components[y];if(!u)return Te(o.default,{Component:u,route:a});const h=f.props[y],d=h?h===!0?a.params:typeof h=="function"?h(a):h:null,g=Le(u,rt({},d,n,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[y]=null)},ref:c}));return Te(o.default,{Component:g,route:a})||g}}});function Te(e,n){if(!e)return null;const o=e(n);return o.length===1?o[0]:o}const ur=lr;function fr(e){const n=qn(e.routes,e),o=e.parseQuery||er,r=e.stringifyQuery||Ee,s=e.history,R=It(),t=It(),w=It(),c=tn(Rt);let a=Rt;Ft&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const y=Jt.bind(null,F=>""+F),f=Jt.bind(null,En),u=Jt.bind(null,Ht);function h(F,l){let i,E;return We(F)?(i=n.getRecordMatcher(F),E=l):E=F,n.addRoute(E,i)}function d(F){const l=n.getRecordMatcher(F);l&&n.removeRoute(l)}function m(){return n.getRoutes().map(F=>F.record)}function g(F){return!!n.getRecordMatcher(F)}function _(F,l){if(l=rt({},l||c.value),typeof F=="string"){const P=Yt(o,F,l.path),Q=n.resolve({path:P.path},l),ft=s.createHref(P.fullPath);return rt(P,Q,{params:u(Q.params),hash:Ht(P.hash),redirectedFrom:void 0,href:ft})}let i;if(F.path!=null)i=rt({},F,{path:Yt(o,F.path,l.path).path});else{const P=rt({},F.params);for(const Q in P)P[Q]==null&&delete P[Q];i=rt({},F,{params:f(P)}),l.params=f(l.params)}const E=n.resolve(i,l),O=F.hash||"";E.params=y(u(E.params));const I=kn(r,rt({},F,{hash:mn(O),path:E.path})),j=s.createHref(I);return rt({fullPath:I,hash:O,query:r===Ee?nr(F.query):F.query||{}},E,{redirectedFrom:void 0,href:j})}function b(F){return typeof F=="string"?Yt(o,F,c.value.path):rt({},F)}function p(F,l){if(a!==F)return jt(8,{from:l,to:F})}function v(F){return x(F)}function T(F){return v(rt(b(F),{replace:!0}))}function A(F){const l=F.matched[F.matched.length-1];if(l&&l.redirect){const{redirect:i}=l;let E=typeof i=="function"?i(F):i;return typeof E=="string"&&(E=E.includes("?")||E.includes("#")?E=b(E):{path:E},E.params={}),rt({query:F.query,hash:F.hash,params:E.path!=null?{}:F.params},E)}}function x(F,l){const i=a=_(F),E=c.value,O=F.state,I=F.force,j=F.replace===!0,P=A(i);if(P)return x(rt(b(P),{state:typeof P=="object"?rt({},O,P.state):O,force:I,replace:j}),l||i);const Q=i;Q.redirectedFrom=l;let ft;return!I&&Sn(r,E,i)&&(ft=jt(16,{to:Q,from:E}),J(E,E,!0,!1)),(ft?Promise.resolve(ft):H(Q,E)).catch(ct=>Ct(ct)?Ct(ct,2)?ct:tt(ct):q(ct,Q,E)).then(ct=>{if(ct){if(Ct(ct,2))return x(rt({replace:j},b(ct.to),{state:typeof ct.to=="object"?rt({},O,ct.to.state):O,force:I}),l||Q)}else ct=Z(Q,E,!0,j,O);return W(Q,E,ct),ct})}function U(F,l){const i=p(F,l);return i?Promise.reject(i):Promise.resolve()}function V(F){const l=k.values().next().value;return l&&typeof l.runWithContext=="function"?l.runWithContext(F):F()}function H(F,l){let i;const[E,O,I]=hr(F,l);i=Zt(E.reverse(),"beforeRouteLeave",F,l);for(const P of E)P.leaveGuards.forEach(Q=>{i.push(kt(Q,F,l))});const j=U.bind(null,F,l);return i.push(j),pt(i).then(()=>{i=[];for(const P of R.list())i.push(kt(P,F,l));return i.push(j),pt(i)}).then(()=>{i=Zt(O,"beforeRouteUpdate",F,l);for(const P of O)P.updateGuards.forEach(Q=>{i.push(kt(Q,F,l))});return i.push(j),pt(i)}).then(()=>{i=[];for(const P of I)if(P.beforeEnter)if(mt(P.beforeEnter))for(const Q of P.beforeEnter)i.push(kt(Q,F,l));else i.push(kt(P.beforeEnter,F,l));return i.push(j),pt(i)}).then(()=>(F.matched.forEach(P=>P.enterCallbacks={}),i=Zt(I,"beforeRouteEnter",F,l,V),i.push(j),pt(i))).then(()=>{i=[];for(const P of t.list())i.push(kt(P,F,l));return i.push(j),pt(i)}).catch(P=>Ct(P,8)?P:Promise.reject(P))}function W(F,l,i){w.list().forEach(E=>V(()=>E(F,l,i)))}function Z(F,l,i,E,O){const I=p(F,l);if(I)return I;const j=l===Rt,P=Ft?history.state:{};i&&(E||j?s.replace(F.fullPath,rt({scroll:j&&P&&P.scroll},O)):s.push(F.fullPath,O)),c.value=F,J(F,l,i,j),tt()}let G;function X(){G||(G=s.listen((F,l,i)=>{if(!ut.listening)return;const E=_(F),O=A(E);if(O){x(rt(O,{replace:!0,force:!0}),E).catch(Dt);return}a=E;const I=c.value;Ft&&Ln(pe(I.fullPath,i.delta),Mt()),H(E,I).catch(j=>Ct(j,12)?j:Ct(j,2)?(x(rt(b(j.to),{force:!0}),E).then(P=>{Ct(P,20)&&!i.delta&&i.type===Pt.pop&&s.go(-1,!1)}).catch(Dt),Promise.reject()):(i.delta&&s.go(-i.delta,!1),q(j,E,I))).then(j=>{j=j||Z(E,I,!1),j&&(i.delta&&!Ct(j,8)?s.go(-i.delta,!1):i.type===Pt.pop&&Ct(j,20)&&s.go(-1,!1)),W(E,I,j)}).catch(Dt)}))}let $=It(),z=It(),M;function q(F,l,i){tt(F);const E=z.list();return E.length?E.forEach(O=>O(F,l,i)):console.error(F),Promise.reject(F)}function nt(){return M&&c.value!==Rt?Promise.resolve():new Promise((F,l)=>{$.add([F,l])})}function tt(F){return M||(M=!F,X(),$.list().forEach(([l,i])=>F?i(F):l()),$.reset()),F}function J(F,l,i,E){const{scrollBehavior:O}=e;if(!Ft||!O)return Promise.resolve();const I=!i&&Dn(pe(F.fullPath,0))||(E||!i)&&history.state&&history.state.scroll||null;return rn().then(()=>O(F,l,I)).then(j=>j&&In(j)).catch(j=>q(j,F,l))}const Y=F=>s.go(F);let it;const k=new Set,ut={currentRoute:c,listening:!0,addRoute:h,removeRoute:d,clearRoutes:n.clearRoutes,hasRoute:g,getRoutes:m,resolve:_,options:e,push:v,replace:T,go:Y,back:()=>Y(-1),forward:()=>Y(1),beforeEach:R.add,beforeResolve:t.add,afterEach:w.add,onError:z.add,isReady:nt,install(F){const l=this;F.component("RouterLink",ar),F.component("RouterView",ur),F.config.globalProperties.$router=l,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>Lt(c)}),Ft&&!it&&c.value===Rt&&(it=!0,v(s.location).catch(O=>{}));const i={};for(const O in Rt)Object.defineProperty(i,O,{get:()=>c.value[O],enumerable:!0});F.provide(Wt,l),F.provide(oe,en(i)),F.provide(re,c);const E=F.unmount;k.add(F),F.unmount=function(){k.delete(F),k.size<1&&(a=Rt,G&&G(),G=null,c.value=Rt,it=!1,M=!1),E()}}};function pt(F){return F.reduce((l,i)=>l.then(()=>V(i)),Promise.resolve())}return ut}function hr(e,n){const o=[],r=[],s=[],R=Math.max(n.matched.length,e.matched.length);for(let t=0;t<R;t++){const w=n.matched[t];w&&(e.matched.find(a=>At(a,w))?r.push(w):o.push(w));const c=e.matched[t];c&&(n.matched.find(a=>At(a,c))||s.push(c))}return[o,r,s]}function pr(){return xt(Wt)}function Hr(e){return xt(oe)}var te={exports:{}},xe;function dr(){return xe||(xe=1,function(e,n){var o={};/* @preserve * The MIT License (MIT) * * Copyright (c) 2013-2018 Petka Antonov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * */(function(r){e.exports=r()})(function(){return function r(s,R,t){function w(y,f){if(!R[y]){if(!s[y]){var u=typeof _dereq_=="function"&&_dereq_;if(!f&&u)return u(y,!0);if(c)return c(y,!0);var h=new Error("Cannot find module '"+y+"'");throw h.code="MODULE_NOT_FOUND",h}var d=R[y]={exports:{}};s[y][0].call(d.exports,function(m){var g=s[y][1][m];return w(g||m)},d,d.exports,r,s,R,t)}return R[y].exports}for(var c=typeof _dereq_=="function"&&_dereq_,a=0;a<t.length;a++)w(t[a]);return w}({1:[function(r,s,R){s.exports=function(t){var w=t._SomePromiseArray;function c(a){var y=new w(a),f=y.promise();return y.setHowMany(1),y.setUnwrap(),y.init(),f}t.any=function(a){return c(a)},t.prototype.any=function(){return c(this)}}},{}],2:[function(r,s,R){var t;try{throw new Error}catch(m){t=m}var w=r("./schedule"),c=r("./queue");function a(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new c(16),this._normalQueue=new c(16),this._haveDrainedQueues=!1;var m=this;this.drainQueues=function(){m._drainQueues()},this._schedule=w}a.prototype.setScheduler=function(m){var g=this._schedule;return this._schedule=m,this._customScheduler=!0,g},a.prototype.hasCustomScheduler=function(){return this._customScheduler},a.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},a.prototype.fatalError=function(m,g){g?(process.stderr.write("Fatal "+(m instanceof Error?m.stack:m)+` `),process.exit(2)):this.throwLater(m)},a.prototype.throwLater=function(m,g){if(arguments.length===1&&(g=m,m=function(){throw g}),typeof setTimeout<"u")setTimeout(function(){m(g)},0);else try{this._schedule(function(){m(g)})}catch{throw new Error(`No async scheduler available See http://goo.gl/MqrFmX `)}};function y(m,g,_){this._lateQueue.push(m,g,_),this._queueTick()}function f(m,g,_){this._normalQueue.push(m,g,_),this._queueTick()}function u(m){this._normalQueue._pushOne(m),this._queueTick()}a.prototype.invokeLater=y,a.prototype.invoke=f,a.prototype.settlePromises=u;function h(m){for(;m.length()>0;)d(m)}function d(m){var g=m.shift();if(typeof g!="function")g._settlePromises();else{var _=m.shift(),b=m.shift();g.call(_,b)}}a.prototype._drainQueues=function(){h(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,h(this._lateQueue)},a.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},a.prototype._reset=function(){this._isTickUsed=!1},s.exports=a,s.exports.firstLineError=t},{"./queue":26,"./schedule":29}],3:[function(r,s,R){s.exports=function(t,w,c,a){var y=!1,f=function(m,g){this._reject(g)},u=function(m,g){g.promiseRejectionQueued=!0,g.bindingPromise._then(f,f,null,this,m)},h=function(m,g){(this._bitField&50397184)===0&&this._resolveCallback(g.target)},d=function(m,g){g.promiseRejectionQueued||this._reject(m)};t.prototype.bind=function(m){y||(y=!0,t.prototype._propagateFrom=a.propagateFromFunction(),t.prototype._boundValue=a.boundValueFunction());var g=c(m),_=new t(w);_._propagateFrom(this,1);var b=this._target();if(_._setBoundTo(g),g instanceof t){var p={promiseRejectionQueued:!1,promise:_,target:b,bindingPromise:g};b._then(w,u,void 0,_,p),g._then(h,d,void 0,_,p),_._setOnCancel(g)}else _._resolveCallback(b);return _},t.prototype._setBoundTo=function(m){m!==void 0?(this._bitField=this._bitField|2097152,this._boundTo=m):this._bitField=this._bitField&-2097153},t.prototype._isBound=function(){return(this._bitField&2097152)===2097152},t.bind=function(m,g){return t.resolve(g).bind(m)}}},{}],4:[function(r,s,R){var t;typeof Promise<"u"&&(t=Promise);function w(){try{Promise===c&&(Promise=t)}catch{}return c}var c=r("./promise")();c.noConflict=w,s.exports=c},{"./promise":22}],5:[function(r,s,R){var t=Object.create;if(t){var w=t(null),c=t(null);w[" size"]=c[" size"]=0}s.exports=function(a){var y=r("./util"),f=y.canEvaluate;y.isIdentifier;var u;function h(_,b){var p;if(_!=null&&(p=_[b]),typeof p!="function"){var v="Object "+y.classString(_)+" has no method '"+y.toString(b)+"'";throw new a.TypeError(v)}return p}function d(_){var b=this.pop(),p=h(_,b);return p.apply(_,this)}a.prototype.call=function(_){var b=[].slice.call(arguments,1);return b.push(_),this._then(d,void 0,void 0,b,void 0)};function m(_){return _[this]}function g(_){var b=+this;return b<0&&(b=Math.max(0,b+_.length)),_[b]}a.prototype.get=function(_){var b=typeof _=="number",p;if(b)p=g;else if(f){var v=u(_);p=v!==null?v:m}else p=m;return this._then(p,void 0,void 0,_,void 0)}}},{"./util":36}],6:[function(r,s,R){s.exports=function(t,w,c,a){var y=r("./util"),f=y.tryCatch,u=y.errorObj,h=t._async;t.prototype.break=t.prototype.cancel=function(){if(!a.cancellation())return this._warn("cancellation is disabled");for(var d=this,m=d;d._isCancellable();){if(!d._cancelBy(m)){m._isFollowing()?m._followee().cancel():m._cancelBranched();break}var g=d._cancellationParent;if(g==null||!g._isCancellable()){d._isFollowing()?d._followee().cancel():d._cancelBranched();break}else d._isFollowing()&&d._followee().cancel(),d._setWillBeCancelled(),m=d,d=g}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(d){return d===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),h.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(d,m){if(y.isArray(d))for(var g=0;g<d.length;++g)this._doInvokeOnCancel(d[g],m);else if(d!==void 0)if(typeof d=="function"){if(!m){var _=f(d).call(this._boundValue());_===u&&(this._attachExtraTrace(_.e),h.throwLater(_.e))}}else d._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var d=this._onCancel();this._unsetOnCancel(),h.invoke(this._doInvokeOnCancel,this,d)},t.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(r,s,R){s.exports=function(t){var w=r("./util"),c=r("./es5").keys,a=w.tryCatch,y=w.errorObj;function f(u,h,d){return function(m){var g=d._boundValue();t:for(var _=0;_<u.length;++_){var b=u[_];if(b===Error||b!=null&&b.prototype instanceof Error){if(m instanceof b)return a(h).call(g,m)}else if(typeof b=="function"){var p=a(b).call(g,m);if(p===y)return p;if(p)return a(h).call(g,m)}else if(w.isObject(m)){for(var v=c(b),T=0;T<v.length;++T){var A=v[T];if(b[A]!=m[A])continue t}return a(h).call(g,m)}}return t}}return f}},{"./es5":13,"./util":36}],8:[function(r,s,R){s.exports=function(t){var w=!1,c=[];t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){};function a(){this._trace=new a.CapturedTrace(f())}a.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,c.push(this._trace))},a.prototype._popContext=function(){if(this._trace!==void 0){var u=c.pop(),h=u._promiseCreated;return u._promiseCreated=null,h}return null};function y(){if(w)return new a}function f(){var u=c.length-1;if(u>=0)return c[u]}return a.CapturedTrace=null,a.create=y,a.deactivateLongStackTraces=function(){},a.activateLongStackTraces=function(){var u=t.prototype._pushContext,h=t.prototype._popContext,d=t._peekContext,m=t.prototype._peekContext,g=t.prototype._promiseCreated;a.deactivateLongStackTraces=function(){t.prototype._pushContext=u,t.prototype._popContext=h,t._peekContext=d,t.prototype._peekContext=m,t.prototype._promiseCreated=g,w=!1},w=!0,t.prototype._pushContext=a.prototype._pushContext,t.prototype._popContext=a.prototype._popContext,t._peekContext=t.prototype._peekContext=f,t.prototype._promiseCreated=function(){var _=this._peekContext();_&&_._promiseCreated==null&&(_._promiseCreated=this)}},a}},{}],9:[function(r,s,R){s.exports=function(t,w,c,a){var y=t._async,f=r("./errors").Warning,u=r("./util"),h=r("./es5"),d=u.canAttachTrace,m,g,_=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,b=/\((?:timers\.js):\d+:\d+\)/,p=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,v=null,T=null,A=!1,x,U=u.env("BLUEBIRD_DEBUG")!=0,V=!!(u.env("BLUEBIRD_WARNINGS")!=0&&(U||u.env("BLUEBIRD_WARNINGS"))),H=!!(u.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(U||u.env("BLUEBIRD_LONG_STACK_TRACES"))),W=u.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(V||!!u.env("BLUEBIRD_W_FORGOTTEN_RETURN")),Z;(function(){var C=[];function S(){for(var L=0;L<C.length;++L)C[L]._notifyUnhandledRejection();D()}function D(){C.length=0}Z=function(L){C.push(L),setTimeout(S,1)},h.defineProperty(t,"_unhandledRejectionCheck",{value:S}),h.defineProperty(t,"_unhandledRejectionClear",{value:D})})(),t.prototype.suppressUnhandledRejections=function(){var C=this._target();C._bitField=C._bitField&-1048577|524288},t.prototype._ensurePossibleRejectionHandled=function(){(this._bitField&524288)===0&&(this._setRejectionIsUnhandled(),Z(this))},t.prototype._notifyUnhandledRejectionIsHandled=function(){ce("rejectionHandled",m,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456},t.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var C=this._settledValue();this._setUnhandledRejectionIsNotified(),ce("unhandledRejection",g,C,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},t.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},t.prototype._warn=function(C,S,D){return Q(C,S,D||this)},t.onPossiblyUnhandledRejection=function(C){var S=t._getContext();g=u.contextBind(S,C)},t.onUnhandledRejectionHandled=function(C){var S=t._getContext();m=u.contextBind(S,C)};var G=function(){};t.longStackTraces=function(){if(y.haveItemsQueued()&&!lt.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created See http://goo.gl/MqrFmX `);if(!lt.longStackTraces&&Qt()){var C=t.prototype._captureStackTrace,S=t.prototype._attachExtraTrace,D=t.prototype._dereferenceTrace;lt.longStackTraces=!0,G=function(){if(y.haveItemsQueued()&&!lt.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created See http://goo.gl/MqrFmX `);t.prototype._captureStackTrace=C,t.prototype._attachExtraTrace=S,t.prototype._dereferenceTrace=D,w.deactivateLongStackTraces(),lt.longStackTraces=!1},t.prototype._captureStackTrace=E,t.prototype._attachExtraTrace=O,t.prototype._dereferenceTrace=I,w.activateLongStackTraces()}},t.hasLongStackTraces=function(){return lt.longStackTraces&&Qt()};var X={unhandledrejection:{before:function(){var C=u.global.onunhandledrejection;return u.global.onunhandledrejection=null,C},after:function(C){u.global.onunhandledrejection=C}},rejectionhandled:{before:function(){var C=u.global.onrejectionhandled;return u.global.onrejectionhandled=null,C},after:function(C){u.global.onrejectionhandled=C}}},$=function(){var C=function(D,L){if(D){var N;try{return N=D.before(),!u.global.dispatchEvent(L)}finally{D.after(N)}}else return!u.global.dispatchEvent(L)};try{if(typeof CustomEvent=="function"){var S=new CustomEvent("CustomEvent");return u.global.dispatchEvent(S),function(D,L){D=D.toLowerCase();var N={detail:L,cancelable:!0},et=new CustomEvent(D,N);return h.defineProperty(et,"promise",{value:L.promise}),h.defineProperty(et,"reason",{value:L.reason}),C(X[D],et)}}else if(typeof Event=="function"){var S=new Event("CustomEvent");return u.global.dispatchEvent(S),function(L,N){L=L.toLowerCase();var et=new Event(L,{cancelable:!0});return et.detail=N,h.defineProperty(et,"promise",{value:N.promise}),h.defineProperty(et,"reason",{value:N.reason}),C(X[L],et)}}else{var S=document.createEvent("CustomEvent");return S.initCustomEvent("testingtheevent",!1,!0,{}),u.global.dispatchEvent(S),function(L,N){L=L.toLowerCase();var et=document.createEvent("CustomEvent");return et.initCustomEvent(L,!1,!0,N),C(X[L],et)}}}catch{}return function(){return!1}}(),z=function(){return u.isNode?function(){return process.emit.apply(process,arguments)}:u.global?function(C){var S="on"+C.toLowerCase(),D=u.global[S];return D?(D.apply(u.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}}();function M(C,S){return{promise:S}}var q={promiseCreated:M,promiseFulfilled:M,promiseRejected:M,promiseResolved:M,promiseCancelled:M,promiseChained:function(C,S,D){return{promise:S,child:D}},warning:function(C,S){return{warning:S}},unhandledRejection:function(C,S,D){return{reason:S,promise:D}},rejectionHandled:M},nt=function(C){var S=!1;try{S=z.apply(null,arguments)}catch(L){y.throwLater(L),S=!0}var D=!1;try{D=$(C,q[C].apply(null,arguments))}catch(L){y.throwLater(L),D=!0}return D||S};t.config=function(C){if(C=Object(C),"longStackTraces"in C&&(C.longStackTraces?t.longStackTraces():!C.longStackTraces&&t.hasLongStackTraces()&&G()),"warnings"in C){var S=C.warnings;lt.warnings=!!S,W=lt.warnings,u.isObject(S)&&"wForgottenReturn"in S&&(W=!!S.wForgottenReturn)}if("cancellation"in C&&C.cancellation&&!lt.cancellation){if(y.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=ut,t.prototype._propagateFrom=pt,t.prototype._onCancel=it,t.prototype._setOnCancel=k,t.prototype._attachCancellationCallback=Y,t.prototype._execute=J,l=pt,lt.cancellation=!0}if("monitoring"in C&&(C.monitoring&&!lt.monitoring?(lt.monitoring=!0,t.prototype._fireEvent=nt):!C.monitoring&&lt.monitoring&&(lt.monitoring=!1,t.prototype._fireEvent=tt)),"asyncHooks"in C&&u.nodeSupportsAsyncResource){var D=lt.asyncHooks,L=!!C.asyncHooks;D!==L&&(lt.asyncHooks=L,L?c():a())}return t};function tt(){return!1}t.prototype._fireEvent=tt,t.prototype._execute=function(C,S,D){try{C(S,D)}catch(L){return L}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(C){},t.prototype._attachCancellationCallback=function(C){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._dereferenceTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(C,S){};function J(C,S,D){var L=this;try{C(S,D,function(N){if(typeof N!="function")throw new TypeError("onCancel must be a function, got: "+u.toString(N));L._attachCancellationCallback(N)})}catch(N){return N}}function Y(C){if(!this._isCancellable())return this;var S=this._onCancel();S!==void 0?u.isArray(S)?S.push(C):this._setOnCancel([S,C]):this._setOnCancel(C)}function it(){return this._onCancelField}function k(C){this._onCancelField=C}function ut(){this._cancellationParent=void 0,this._onCancelField=void 0}function pt(C,S){if((S&1)!==0){this._cancellationParent=C;var D=C._branchesRemainingToCancel;D===void 0&&(D=0),C._branchesRemainingToCancel=D+1}(S&2)!==0&&C._isBound()&&this._setBoundTo(C._boundTo)}function F(C,S){(S&2)!==0&&C._isBound()&&this._setBoundTo(C._boundTo)}var l=F;function i(){var C=this._boundTo;return C!==void 0&&C instanceof t?C.isFulfilled()?C.value():void 0:C}function E(){this._trace=new Tt(this._peekContext())}function O(C,S){if(d(C)){var D=this._trace;if(D!==void 0&&S&&(D=D._parent),D!==void 0)D.attachExtraTrace(C);else if(!C.__stackCleaned__){var L=zt(C);u.notEnumerableProp(C,"stack",L.message+` `+L.stack.join(` `)),u.notEnumerableProp(C,"__stackCleaned__",!0)}}}function I(){this._trace=void 0}function j(C,S,D,L,N){if(C===void 0&&S!==null&&W){if(N!==void 0&&N._returnedNonUndefined()||(L._bitField&65535)===0)return;D&&(D=D+" ");var et="",at="";if(S._trace){for(var K=S._trace.stack.split(` `),st=gt(K),ht=st.length-1;ht>=0;--ht){var wt=st[ht];if(!b.test(wt)){var Et=wt.match(p);Et&&(et="at "+Et[1]+":"+Et[2]+":"+Et[3]+" ");break}}if(st.length>0){for(var Ye=st[0],ht=0;ht<K.length;++ht)if(K[ht]===Ye){ht>0&&(at=` `+K[ht-1]);break}}}var Ze="a promise was created in a "+D+"handler "+et+"but was not returned from it, see http://goo.gl/rRqMUw"+at;L._warn(Ze,!0,S)}}function P(C,S){var D=C+" is deprecated and will be removed in a future version.";return S&&(D+=" Use "+S+" instead."),Q(D)}function Q(C,S,D){if(lt.warnings){var L=new f(C),N;if(S)D._attachExtraTrace(L);else if(lt.longStackTraces&&(N=t._peekContext()))N.attachExtraTrace(L);else{var et=zt(L);L.stack=et.message+` `+et.stack.join(` `)}nt("warning",L)||se(L,"",!0)}}function ft(C,S){for(var D=0;D<S.length-1;++D)S[D].push("From previous event:"),S[D]=S[D].join(` `);return D<S.length&&(S[D]=S[D].join(` `)),C+` `+S.join(` `)}function ct(C){for(var S=0;S<C.length;++S)(C[S].length===0||S+1<C.length&&C[S][0]===C[S+1][0])&&(C.splice(S,1),S--)}function yt(C){for(var S=C[0],D=1;D<C.length;++D){for(var L=C[D],N=S.length-1,et=S[N],at=-1,K=L.length-1;K>=0;--K)if(L[K]===et){at=K;break}for(var K=at;K>=0;--K){var st=L[K];if(S[N]===st)S.pop(),N--;else break}S=L}}function gt(C){for(var S=[],D=0;D<C.length;++D){var L=C[D],N=L===" (No stack trace)"||v.test(L),et=N&&Kt(L);N&&!et&&(A&&L.charAt(0)!==" "&&(L=" "+L),S.push(L))}return S}function Ot(C){for(var S=C.stack.replace(/\s+$/g,"").split(` `),D=0;D<S.length;++D){var L=S[D];if(L===" (No stack trace)"||v.test(L))break}return D>0&&C.name!="SyntaxError"&&(S=S.slice(D)),S}function zt(C){var S=C.stack,D=C.toString();return S=typeof S=="string"&&S.length>0?Ot(C):[" (No stack trace)"],{message:D,stack:C.name=="SyntaxError"?S:gt(S)}}function se(C,S,D){if(typeof console<"u"){var L;if(u.isObject(C)){var N=C.stack;L=S+T(N,C)}else L=S+String(C);typeof x=="function"?x(L,D):(typeof console.log=="function"||typeof console.log=="object")&&console.log(L)}}function ce(C,S,D,L){var N=!1;try{typeof S=="function"&&(N=!0,C==="rejectionHandled"?S(L):S(D,L))}catch(et){y.throwLater(et)}C==="unhandledRejection"?!nt(C,D,L)&&!N&&se(D,"Unhandled rejection "):nt(C,L)}function le(C){var S;if(typeof C=="function")S="[function "+(C.name||"anonymous")+"]";else{S=C&&typeof C.toString=="function"?C.toString():u.toString(C);var D=/\[object [a-zA-Z0-9$_]+\]/;if(D.test(S))try{var L=JSON.stringify(C);S=L}catch{}S.length===0&&(S="(empty array)")}return"(<"+Xe(S)+">, no stack trace)"}function Xe(C){var S=41;return C.length<S?C:C.substr(0,S-3)+"..."}function Qt(){return typeof ue=="function"}var Kt=function(){return!1},qe=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Xt(C){var S=C.match(qe);if(S)return{fileName:S[1],line:parseInt(S[2],10)}}function Je(C,S){if(Qt()){for(var D=(C.stack||"").split(` `),L=(S.stack||"").split(` `),N=-1,et=-1,at,K,st=0;st<D.length;++st){var ht=Xt(D[st]);if(ht){at=ht.fileName,N=ht.line;break}}for(var st=0;st<L.length;++st){var ht=Xt(L[st]);if(ht){K=ht.fileName,et=ht.line;break}}N<0||et<0||!at||!K||at!==K||N>=et||(Kt=function(wt){if(_.test(wt))return!0;var Et=Xt(wt);return!!(Et&&Et.fileName===at&&N<=Et.line&&Et.line<=et)})}}function Tt(C){this._parent=C,this._promisesCreated=0;var S=this._length=1+(C===void 0?0:C._length);ue(this,Tt),S>32&&this.uncycle()}u.inherits(Tt,Error),w.CapturedTrace=Tt,Tt.prototype.uncycle=function(){var C=this._length;if(!(C<2)){for(var S=[],D={},L=0,N=this;N!==void 0;++L)S.push(N),N=N._parent;C=this._length=L;for(var L=C-1;L>=0;--L){var et=S[L].stack;D[et]===void 0&&(D[et]=L)}for(var L=0;L<C;++L){var at=S[L].stack,K=D[at];if(K!==void 0&&K!==L){K>0&&(S[K-1]._parent=void 0,S[K-1]._length=1),S[L]._parent=void 0,S[L]._length=1;var st=L>0?S[L-1]:this;K<C-1?(st._parent=S[K+1],st._parent.uncycle(),st._length=st._parent._length+1):(st._parent=void 0,st._length=1);for(var ht=st._length+1,wt=L-2;wt>=0;--wt)S[wt]._length=ht,ht++;return}}}},Tt.prototype.attachExtraTrace=function(C){if(!C.__stackCleaned__){this.uncycle();for(var S=zt(C),D=S.message,L=[S.stack],N=this;N!==void 0;)L.push(gt(N.stack.split(` `))),N=N._parent;yt(L),ct(L),u.notEnumerableProp(C,"stack",ft(D,L)),u.notEnumerableProp(C,"__stackCleaned__",!0)}};var ue=function(){var S=/^\s*at\s*/,D=function(at,K){return typeof at=="string"?at:K.name!==void 0&&K.message!==void 0?K.toString():le(K)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,v=S,T=D;var L=Error.captureStackTrace;return Kt=function(at){return _.test(at)},function(at,K){Error.stackTraceLimit+=6,L(at,K),Error.stackTraceLimit-=6}}var N=new Error;if(typeof N.stack=="string"&&N.stack.split(` `)[0].indexOf("stackDetection@")>=0)return v=/@/,T=D,A=!0,function(K){K.stack=new Error().stack};var et;try{throw new Error}catch(at){et="stack"in at}return!("stack"in N)&&et&&typeof Error.stackTraceLimit=="number"?(v=S,T=D,function(K){Error.stackTraceLimit+=6;try{throw new Error}catch(st){K.stack=st.stack}Error.stackTraceLimit-=6}):(T=function(at,K){return typeof at=="string"?at:(typeof K=="object"||typeof K=="function")&&K.name!==void 0&&K.message!==void 0?K.toString():le(K)},null)}();typeof console<"u"&&typeof console.warn<"u"&&(x=function(C){console.warn(C)},u.isNode&&process.stderr.isTTY?x=function(C,S){var D=S?"\x1B[33m":"\x1B[31m";console.warn(D+C+`\x1B[0m `)}:!u.isNode&&typeof new Error().stack=="string"&&(x=function(C,S){console.warn("%c"+C,S?"color: darkorange":"color: red")}));var lt={warnings:V,longStackTraces:!1,cancellation:!1,monitoring:!1,asyncHooks:!1};return H&&t.longStackTraces(),{asyncHooks:function(){return lt.asyncHooks},longStac