build-this-branch
Version:
Script to automate creating built branches
22 lines • 301 kB
JavaScript
#!/usr/bin/env node
"use strict";var Ip=Object.defineProperty,Op=Object.defineProperties;var Rp=Object.getOwnPropertyDescriptors;var Hu=Object.getOwnPropertySymbols;var Dc=Object.prototype.hasOwnProperty,fc=Object.prototype.propertyIsEnumerable;var cc=(e,t,r)=>t in e?Ip(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Me=(e,t)=>{for(var r in t||(t={}))Dc.call(t,r)&&cc(e,r,t[r]);if(Hu)for(var r of Hu(t))fc.call(t,r)&&cc(e,r,t[r]);return e},Xt=(e,t)=>Op(e,Rp(t));var dc=(e,t)=>{var r={};for(var i in e)Dc.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&Hu)for(var i of Hu(e))t.indexOf(i)<0&&fc.call(e,i)&&(r[i]=e[i]);return r};var hc=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var Zt=(e,t,r)=>(hc(e,t,"read from private field"),r?r.call(e):t.get(e)),Wu=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Pt=(e,t,r,i)=>(hc(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),Qa=(e,t,r,i)=>({set _(a){Pt(e,t,a,r)},get _(){return Zt(e,t,i)}});var vt,Sn,Bn,qu=require("fs"),Pp=require("child_process"),pc=require("util"),gc=require("buffer"),Np=require("path"),Tp=require("process"),$p=require("url"),Ja=require("os"),Lp=require("assert"),jp=require("events"),mc=require("stream"),Mp=require("module"),zp=require("yoga-layout-prebuilt"),Up=require("tty");function Qe(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}function Gp(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var Dt=Qe(qu),Ec=Gp(qu),Qu=Qe(Pp),Hp=Qe(pc),Wp=Qe(gc),ge=Qe(Np),Be=Qe(Tp),qp=Qe($p),Ju=Qe(Ja),Vu=Qe(Lp),Ir=Qe(jp),Ku=Qe(mc),Qp=Qe(Mp),Z=Qe(zp),Cc=Qe(Up),en=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zn={exports:{}},Va,bc;function Jp(){if(bc)return Va;bc=1,Va=i,i.sync=a;var e=Dt.default;function t(l,s){var c=s.pathExt!==void 0?s.pathExt:process.env.PATHEXT;if(!c||(c=c.split(";"),c.indexOf("")!==-1))return!0;for(var d=0;d<c.length;d++){var h=c[d].toLowerCase();if(h&&l.substr(-h.length).toLowerCase()===h)return!0}return!1}function r(l,s,c){return!l.isSymbolicLink()&&!l.isFile()?!1:t(s,c)}function i(l,s,c){e.stat(l,function(d,h){c(d,d?!1:r(h,l,s))})}function a(l,s){return r(e.statSync(l),l,s)}return Va}var Ka,yc;function Vp(){if(yc)return Ka;yc=1,Ka=t,t.sync=r;var e=Dt.default;function t(l,s,c){e.stat(l,function(d,h){c(d,d?!1:i(h,s))})}function r(l,s){return i(e.statSync(l),s)}function i(l,s){return l.isFile()&&a(l,s)}function a(l,s){var c=l.mode,d=l.uid,h=l.gid,m=s.uid!==void 0?s.uid:process.getuid&&process.getuid(),E=s.gid!==void 0?s.gid:process.getgid&&process.getgid(),g=parseInt("100",8),C=parseInt("010",8),y=parseInt("001",8),v=g|C,k=c&y||c&C&&h===E||c&g&&d===m||c&v&&m===0;return k}return Ka}var Yu;process.platform==="win32"||en.TESTING_WINDOWS?Yu=Jp():Yu=Vp();var Kp=Ya;Ya.sync=Yp;function Ya(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,a){Ya(e,t||{},function(l,s){l?a(l):i(s)})})}Yu(e,t||{},function(i,a){i&&(i.code==="EACCES"||t&&t.ignoreErrors)&&(i=null,a=!1),r(i,a)})}function Yp(e,t){try{return Yu.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}const Un=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Fc=ge.default,Xp=Un?";":":",vc=Kp,wc=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Sc=(e,t)=>{const r=t.colon||Xp,i=e.match(/\//)||Un&&e.match(/\\/)?[""]:[...Un?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],a=Un?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",l=Un?a.split(r):[""];return Un&&e.indexOf(".")!==-1&&l[0]!==""&&l.unshift(""),{pathEnv:i,pathExt:l,pathExtExe:a}},Bc=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});const{pathEnv:i,pathExt:a,pathExtExe:l}=Sc(e,t),s=[],c=h=>new Promise((m,E)=>{if(h===i.length)return t.all&&s.length?m(s):E(wc(e));const g=i[h],C=/^".*"$/.test(g)?g.slice(1,-1):g,y=Fc.join(C,e),v=!C&&/^\.[\\\/]/.test(e)?e.slice(0,2)+y:y;m(d(v,h,0))}),d=(h,m,E)=>new Promise((g,C)=>{if(E===a.length)return g(c(m+1));const y=a[E];vc(h+y,{pathExt:l},(v,k)=>{if(!v&&k)if(t.all)s.push(h+y);else return g(h+y);return g(d(h,m,E+1))})});return r?c(0).then(h=>r(null,h),r):c(0)},Zp=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:i,pathExtExe:a}=Sc(e,t),l=[];for(let s=0;s<r.length;s++){const c=r[s],d=/^".*"$/.test(c)?c.slice(1,-1):c,h=Fc.join(d,e),m=!d&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;for(let E=0;E<i.length;E++){const g=m+i[E];try{if(vc.sync(g,{pathExt:a}))if(t.all)l.push(g);else return g}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw wc(e)};var e0=Bc;Bc.sync=Zp;var Xa={exports:{}};const xc=(e={})=>{const t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};Xa.exports=xc,Xa.exports.default=xc;const Ac=ge.default,t0=e0,n0=Xa.exports;function kc(e,t){const r=e.options.env||process.env,i=process.cwd(),a=e.options.cwd!=null,l=a&&process.chdir!==void 0&&!process.chdir.disabled;if(l)try{process.chdir(e.options.cwd)}catch{}let s;try{s=t0.sync(e.command,{path:r[n0({env:r})],pathExt:t?Ac.delimiter:void 0})}catch{}finally{l&&process.chdir(i)}return s&&(s=Ac.resolve(a?e.options.cwd:"",s)),s}function r0(e){return kc(e)||kc(e,!0)}var u0=r0,Za={};const eo=/([()\][%!^"`<>&|;, *?])/g;function i0(e){return e=e.replace(eo,"^$1"),e}function a0(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(eo,"^$1"),t&&(e=e.replace(eo,"^$1")),e}Za.command=i0,Za.argument=a0;var o0=/^#!(.*)/;const s0=o0;var l0=(e="")=>{const t=e.match(s0);if(!t)return null;const[r,i]=t[0].replace(/#! ?/,"").split(" "),a=r.split("/").pop();return a==="env"?i:i?`${a} ${i}`:a};const to=Dt.default,c0=l0;function D0(e){const r=Buffer.alloc(150);let i;try{i=to.openSync(e,"r"),to.readSync(i,r,0,150,0),to.closeSync(i)}catch{}return c0(r.toString())}var f0=D0;const d0=ge.default,_c=u0,Ic=Za,h0=f0,p0=process.platform==="win32",g0=/\.(?:com|exe)$/i,m0=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function E0(e){e.file=_c(e);const t=e.file&&h0(e.file);return t?(e.args.unshift(e.file),e.command=t,_c(e)):e.file}function C0(e){if(!p0)return e;const t=E0(e),r=!g0.test(t);if(e.options.forceShell||r){const i=m0.test(t);e.command=d0.normalize(e.command),e.command=Ic.command(e.command),e.args=e.args.map(l=>Ic.argument(l,i));const a=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${a}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function b0(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);const i={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?i:C0(i)}var y0=b0;const no=process.platform==="win32";function ro(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function F0(e,t){if(!no)return;const r=e.emit;e.emit=function(i,a){if(i==="exit"){const l=Oc(a,t);if(l)return r.call(e,"error",l)}return r.apply(e,arguments)}}function Oc(e,t){return no&&e===1&&!t.file?ro(t.original,"spawn"):null}function v0(e,t){return no&&e===1&&!t.file?ro(t.original,"spawnSync"):null}var w0={hookChildProcess:F0,verifyENOENT:Oc,verifyENOENTSync:v0,notFoundError:ro};const Rc=Qu.default,uo=y0,io=w0;function Pc(e,t,r){const i=uo(e,t,r),a=Rc.spawn(i.command,i.args,i.options);return io.hookChildProcess(a,i),a}function S0(e,t,r){const i=uo(e,t,r),a=Rc.spawnSync(i.command,i.args,i.options);return a.error=a.error||io.verifyENOENTSync(a.status,i),a}zn.exports=Pc,zn.exports.spawn=Pc,zn.exports.sync=S0,zn.exports._parse=uo,zn.exports._enoent=io;function B0(e){const t=typeof e=="string"?`
`:`
`.charCodeAt(),r=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e}function Nc(e={}){const{env:t=process.env,platform:r=process.platform}=e;return r!=="win32"?"PATH":Object.keys(t).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"}function x0(e={}){const{cwd:t=Be.default.cwd(),path:r=Be.default.env[Nc()],execPath:i=Be.default.execPath}=e;let a;const l=t instanceof URL?qp.default.fileURLToPath(t):t;let s=ge.default.resolve(l);const c=[];for(;a!==s;)c.push(ge.default.join(s,"node_modules/.bin")),a=s,s=ge.default.resolve(s,"..");return c.push(ge.default.resolve(l,i,"..")),[...c,r].join(ge.default.delimiter)}function A0(r={}){var i=r,{env:e=Be.default.env}=i,t=dc(i,["env"]);e=Me({},e);const a=Nc({env:e});return t.path=e[a],e[a]=x0(t),e}const k0=(e,t,r,i)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;const a=Object.getOwnPropertyDescriptor(e,r),l=Object.getOwnPropertyDescriptor(t,r);!_0(a,l)&&i||Object.defineProperty(e,r,l)},_0=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},I0=(e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},O0=(e,t)=>`/* Wrapped ${e}*/
${t}`,R0=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),P0=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),N0=(e,t,r)=>{const i=r===""?"":`with ${r.trim()}() `,a=O0.bind(null,i,t.toString());Object.defineProperty(a,"name",P0),Object.defineProperty(e,"toString",Xt(Me({},R0),{value:a}))};function T0(e,t,{ignoreNonConfigurable:r=!1}={}){const{name:i}=e;for(const a of Reflect.ownKeys(t))k0(e,t,a,r);return I0(e,t),N0(e,t,i),e}const Xu=new WeakMap,Tc=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,i=0;const a=e.displayName||e.name||"<anonymous>",l=function(...s){if(Xu.set(l,++i),i===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${a}\` can only be called once`);return r};return T0(l,e),Xu.set(l,i),l};Tc.callCount=e=>{if(!Xu.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Xu.get(e)};const $0=function(){const e=Lc-$c+1;return Array.from({length:e},L0)},L0=function(e,t){return{name:`SIGRT${t+1}`,number:$c+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},$c=34,Lc=64,j0=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],jc=function(){const e=$0();return[...j0,...e].map(M0)},M0=function({name:e,number:t,description:r,action:i,forced:a=!1,standard:l}){const{signals:{[e]:s}}=Ja.constants,c=s!==void 0;return{name:e,number:c?s:t,description:r,supported:c,action:i,forced:a,standard:l}},z0=function(){return jc().reduce(U0,{})},U0=function(e,{name:t,number:r,description:i,supported:a,action:l,forced:s,standard:c}){return Xt(Me({},e),{[t]:{name:t,number:r,description:i,supported:a,action:l,forced:s,standard:c}})},G0=z0(),H0=function(){const e=jc(),t=Lc+1,r=Array.from({length:t},(i,a)=>W0(a,e));return Object.assign({},...r)},W0=function(e,t){const r=q0(e,t);if(r===void 0)return{};const{name:i,description:a,supported:l,action:s,forced:c,standard:d}=r;return{[e]:{name:i,number:e,description:a,supported:l,action:s,forced:c,standard:d}}},q0=function(e,t){const r=t.find(({name:i})=>Ja.constants.signals[i]===e);return r!==void 0?r:t.find(i=>i.number===e)};H0();const Q0=({timedOut:e,timeout:t,errorCode:r,signal:i,signalDescription:a,exitCode:l,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":r!==void 0?`failed with ${r}`:i!==void 0?`was killed with ${i} (${a})`:l!==void 0?`failed with exit code ${l}`:"failed",Mc=({stdout:e,stderr:t,all:r,error:i,signal:a,exitCode:l,command:s,escapedCommand:c,timedOut:d,isCanceled:h,killed:m,parsed:{options:{timeout:E}}})=>{l=l===null?void 0:l,a=a===null?void 0:a;const g=a===void 0?void 0:G0[a].description,C=i&&i.code,v=`Command ${Q0({timedOut:d,timeout:E,errorCode:C,signal:a,signalDescription:g,exitCode:l,isCanceled:h})}: ${s}`,k=Object.prototype.toString.call(i)==="[object Error]",R=k?`${v}
${i.message}`:v,N=[R,t,e].filter(Boolean).join(`
`);return k?(i.originalMessage=i.message,i.message=N):i=new Error(N),i.shortMessage=R,i.command=s,i.escapedCommand=c,i.exitCode=l,i.signal=a,i.signalDescription=g,i.stdout=e,i.stderr=t,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=Boolean(d),i.isCanceled=h,i.killed=m&&!d,i},Zu=["stdin","stdout","stderr"],J0=e=>Zu.some(t=>e[t]!==void 0),V0=e=>{if(!e)return;const{stdio:t}=e;if(t===void 0)return Zu.map(i=>e[i]);if(J0(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Zu.map(i=>`\`${i}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);const r=Math.max(t.length,Zu.length);return Array.from({length:r},(i,a)=>t[a])};var Gn={exports:{}},ao={exports:{}},zc;function K0(){return zc||(zc=1,function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(ao)),ao.exports}var he=en.process;const Cn=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};if(!Cn(he))Gn.exports=function(){return function(){}};else{var Y0=Vu.default,Or=K0(),X0=/^win/i.test(he.platform),ei=Ir.default;typeof ei!="function"&&(ei=ei.EventEmitter);var Re;he.__signal_exit_emitter__?Re=he.__signal_exit_emitter__:(Re=he.__signal_exit_emitter__=new ei,Re.count=0,Re.emitted={}),Re.infinite||(Re.setMaxListeners(1/0),Re.infinite=!0),Gn.exports=function(e,t){if(!Cn(en.process))return function(){};Y0.equal(typeof e,"function","a callback must be provided for exit handler"),Rr===!1&&Uc();var r="exit";t&&t.alwaysLast&&(r="afterexit");var i=function(){Re.removeListener(r,e),Re.listeners("exit").length===0&&Re.listeners("afterexit").length===0&&oo()};return Re.on(r,e),i};var oo=function(){!Rr||!Cn(en.process)||(Rr=!1,Or.forEach(function(t){try{he.removeListener(t,so[t])}catch{}}),he.emit=lo,he.reallyExit=Gc,Re.count-=1)};Gn.exports.unload=oo;var Hn=function(t,r,i){Re.emitted[t]||(Re.emitted[t]=!0,Re.emit(t,r,i))},so={};Or.forEach(function(e){so[e]=function(){if(!!Cn(en.process)){var r=he.listeners(e);r.length===Re.count&&(oo(),Hn("exit",null,e),Hn("afterexit",null,e),X0&&e==="SIGHUP"&&(e="SIGINT"),he.kill(he.pid,e))}}}),Gn.exports.signals=function(){return Or};var Rr=!1,Uc=function(){Rr||!Cn(en.process)||(Rr=!0,Re.count+=1,Or=Or.filter(function(t){try{return he.on(t,so[t]),!0}catch{return!1}}),he.emit=eg,he.reallyExit=Z0)};Gn.exports.load=Uc;var Gc=he.reallyExit,Z0=function(t){!Cn(en.process)||(he.exitCode=t||0,Hn("exit",he.exitCode,null),Hn("afterexit",he.exitCode,null),Gc.call(he,he.exitCode))},lo=he.emit,eg=function(t,r){if(t==="exit"&&Cn(en.process)){r!==void 0&&(he.exitCode=r);var i=lo.apply(this,arguments);return Hn("exit",he.exitCode,null),Hn("afterexit",he.exitCode,null),i}else return lo.apply(this,arguments)}}const tg=1e3*5,ng=(e,t="SIGTERM",r={})=>{const i=e(t);return rg(e,t,r,i),i},rg=(e,t,r,i)=>{if(!ug(t,r,i))return;const a=ag(r),l=setTimeout(()=>{e("SIGKILL")},a);l.unref&&l.unref()},ug=(e,{forceKillAfterTimeout:t},r)=>ig(e)&&t!==!1&&r,ig=e=>e===Ju.default.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",ag=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return tg;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},og=(e,t)=>{e.kill()&&(t.isCanceled=!0)},sg=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},lg=(e,{timeout:t,killSignal:r="SIGTERM"},i)=>{if(t===0||t===void 0)return i;let a;const l=new Promise((c,d)=>{a=setTimeout(()=>{sg(e,r,d)},t)}),s=i.finally(()=>{clearTimeout(a)});return Promise.race([l,s])},cg=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Dg=async(e,{cleanup:t,detached:r},i)=>{if(!t||r)return i;const a=Gn.exports(()=>{e.kill()});return i.finally(()=>{a()})};function fg(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}var Wn={exports:{}};const{PassThrough:dg}=Ku.default;var hg=e=>{e=Me({},e);const{array:t}=e;let{encoding:r}=e;const i=r==="buffer";let a=!1;t?a=!(r||i):r=r||"utf8",i&&(r=null);const l=new dg({objectMode:a});r&&l.setEncoding(r);let s=0;const c=[];return l.on("data",d=>{c.push(d),a?s=c.length:s+=d.length}),l.getBufferedValue=()=>t?c:i?Buffer.concat(c,s):c.join(""),l.getBufferedLength=()=>s,l};const{constants:pg}=Wp.default,gg=Ku.default,{promisify:mg}=Hp.default,Eg=hg,Cg=mg(gg.pipeline);class Hc extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function co(e,t){if(!e)throw new Error("Expected a stream");t=Me({maxBuffer:1/0},t);const{maxBuffer:r}=t,i=Eg(t);return await new Promise((a,l)=>{const s=c=>{c&&i.getBufferedLength()<=pg.MAX_LENGTH&&(c.bufferedData=i.getBufferedValue()),l(c)};(async()=>{try{await Cg(e,i),a()}catch(c){s(c)}})(),i.on("data",()=>{i.getBufferedLength()>r&&s(new Hc)})}),i.getBufferedValue()}Wn.exports=co,Wn.exports.buffer=(e,t)=>co(e,Xt(Me({},t),{encoding:"buffer"})),Wn.exports.array=(e,t)=>co(e,Xt(Me({},t),{array:!0})),Wn.exports.MaxBufferError=Hc;const{PassThrough:bg}=Ku.default;var yg=function(){var e=[],t=new bg({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=i,t.on("unpipe",a),Array.prototype.slice.call(arguments).forEach(r),t;function r(l){return Array.isArray(l)?(l.forEach(r),this):(e.push(l),l.once("end",a.bind(null,l)),l.once("error",t.emit.bind(t,"error")),l.pipe(t,{end:!1}),this)}function i(){return e.length==0}function a(l){e=e.filter(function(s){return s!==l}),!e.length&&t.readable&&t.end()}};const Fg=(e,t)=>{t===void 0||e.stdin===void 0||(fg(t)?t.pipe(e.stdin):e.stdin.end(t))},vg=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const r=yg();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},Do=async(e,t)=>{if(!!e){e.destroy();try{return await t}catch(r){return r.bufferedData}}},fo=(e,{encoding:t,buffer:r,maxBuffer:i})=>{if(!(!e||!r))return t?Wn.exports(e,{encoding:t,maxBuffer:i}):Wn.exports.buffer(e,{maxBuffer:i})},wg=async({stdout:e,stderr:t,all:r},{encoding:i,buffer:a,maxBuffer:l},s)=>{const c=fo(e,{encoding:i,buffer:a,maxBuffer:l}),d=fo(t,{encoding:i,buffer:a,maxBuffer:l}),h=fo(r,{encoding:i,buffer:a,maxBuffer:l*2});try{return await Promise.all([s,c,d,h])}catch(m){return Promise.all([{error:m,signal:m.signal,timedOut:m.timedOut},Do(e,c),Do(t,d),Do(r,h)])}},Sg=(async()=>{})().constructor.prototype,Bg=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Sg,e)]),Wc=(e,t)=>{for(const[r,i]of Bg){const a=typeof t=="function"?(...l)=>Reflect.apply(i.value,t(),l):i.value.bind(t);Reflect.defineProperty(e,r,Xt(Me({},i),{value:a}))}return e},xg=e=>new Promise((t,r)=>{e.on("exit",(i,a)=>{t({exitCode:i,signal:a})}),e.on("error",i=>{r(i)}),e.stdin&&e.stdin.on("error",i=>{r(i)})}),qc=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Ag=/^[\w.-]+$/,kg=/"/g,_g=e=>typeof e!="string"||Ag.test(e)?e:`"${e.replace(kg,'\\"')}"`,Ig=(e,t)=>qc(e,t).join(" "),Og=(e,t)=>qc(e,t).map(r=>_g(r)).join(" "),Rg=1e3*1e3*100,Pg=({env:e,extendEnv:t,preferLocal:r,localDir:i,execPath:a})=>{const l=t?Me(Me({},Be.default.env),e):e;return r?A0({env:l,cwd:i,execPath:a}):l},Ng=(e,t,r={})=>{const i=zn.exports._parse(e,t,r);return e=i.command,t=i.args,r=i.options,r=Me({maxBuffer:Rg,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||Be.default.cwd(),execPath:Be.default.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},r),r.env=Pg(r),r.stdio=V0(r),Be.default.platform==="win32"&&ge.default.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:i}},ho=(e,t,r)=>typeof t!="string"&&!gc.Buffer.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?B0(t):t;function Je(e,t,r){const i=Ng(e,t,r),a=Ig(e,t),l=Og(e,t);cg(i.options);let s;try{s=Qu.default.spawn(i.file,i.args,i.options)}catch(C){const y=new Qu.default.ChildProcess,v=Promise.reject(Mc({error:C,stdout:"",stderr:"",all:"",command:a,escapedCommand:l,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return Wc(y,v)}const c=xg(s),d=lg(s,i.options,c),h=Dg(s,i.options,d),m={isCanceled:!1};s.kill=ng.bind(null,s.kill.bind(s)),s.cancel=og.bind(null,s,m);const g=Tc(async()=>{const[{error:C,exitCode:y,signal:v,timedOut:k},R,N,H]=await wg(s,i.options,h),B=ho(i.options,R),w=ho(i.options,N),A=ho(i.options,H);if(C||y!==0||v!==null){const P=Mc({error:C,exitCode:y,signal:v,stdout:B,stderr:w,all:A,command:a,escapedCommand:l,parsed:i,timedOut:k,isCanceled:m.isCanceled||(i.options.signal?i.options.signal.aborted:!1),killed:s.killed});if(!i.options.reject)return P;throw P}return{command:a,escapedCommand:l,exitCode:0,stdout:B,stderr:w,all:A,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Fg(s,i.options.input),s.all=vg(s,i.options),Wc(s,g)}var Tg=Object.defineProperty,$g=Object.defineProperties,Lg=Object.getOwnPropertyDescriptors,Qc=Object.getOwnPropertySymbols,jg=Object.prototype.hasOwnProperty,Mg=Object.prototype.propertyIsEnumerable,po=(e,t,r)=>t in e?Tg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pr=(e,t)=>{for(var r in t||(t={}))jg.call(t,r)&&po(e,r,t[r]);if(Qc)for(var r of Qc(t))Mg.call(t,r)&&po(e,r,t[r]);return e},zg=(e,t)=>$g(e,Lg(t)),Ug=(e,t,r)=>(po(e,typeof t!="symbol"?t+"":t,r),r),Jc=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},Gg=(e,t,r)=>(Jc(e,t,"read from private field"),r?r.call(e):t.get(e)),Hg=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Wg=(e,t,r,i)=>(Jc(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),ti,ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fe={exports:{}},re={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var Kc=Object.getOwnPropertySymbols,qg=Object.prototype.hasOwnProperty,Qg=Object.prototype.propertyIsEnumerable;function Jg(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Vg(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(l){return t[l]});if(i.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(l){a[l]=l}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Yc=Vg()?Object.assign:function(e,t){for(var r,i=Jg(e),a,l=1;l<arguments.length;l++){r=Object(arguments[l]);for(var s in r)qg.call(r,s)&&(i[s]=r[s]);if(Kc){a=Kc(r);for(var c=0;c<a.length;c++)Qg.call(r,a[c])&&(i[a[c]]=r[a[c]])}}return i};/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var go=Yc,qn=60103,Xc=60106;re.Fragment=60107,re.StrictMode=60108,re.Profiler=60114;var Zc=60109,eD=60110,tD=60112;re.Suspense=60113;var nD=60115,rD=60116;if(typeof Symbol=="function"&&Symbol.for){var dt=Symbol.for;qn=dt("react.element"),Xc=dt("react.portal"),re.Fragment=dt("react.fragment"),re.StrictMode=dt("react.strict_mode"),re.Profiler=dt("react.profiler"),Zc=dt("react.provider"),eD=dt("react.context"),tD=dt("react.forward_ref"),re.Suspense=dt("react.suspense"),nD=dt("react.memo"),rD=dt("react.lazy")}var uD=typeof Symbol=="function"&&Symbol.iterator;function Kg(e){return e===null||typeof e!="object"?null:(e=uD&&e[uD]||e["@@iterator"],typeof e=="function"?e:null)}function Nr(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var iD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},aD={};function Qn(e,t,r){this.props=e,this.context=t,this.refs=aD,this.updater=r||iD}Qn.prototype.isReactComponent={},Qn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Nr(85));this.updater.enqueueSetState(this,e,t,"setState")},Qn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oD(){}oD.prototype=Qn.prototype;function mo(e,t,r){this.props=e,this.context=t,this.refs=aD,this.updater=r||iD}var Eo=mo.prototype=new oD;Eo.constructor=mo,go(Eo,Qn.prototype),Eo.isPureReactComponent=!0;var Co={current:null},sD=Object.prototype.hasOwnProperty,lD={key:!0,ref:!0,__self:!0,__source:!0};function cD(e,t,r){var i,a={},l=null,s=null;if(t!=null)for(i in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)sD.call(t,i)&&!lD.hasOwnProperty(i)&&(a[i]=t[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var d=Array(c),h=0;h<c;h++)d[h]=arguments[h+2];a.children=d}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:qn,type:e,key:l,ref:s,props:a,_owner:Co.current}}function Yg(e,t){return{$$typeof:qn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bo(e){return typeof e=="object"&&e!==null&&e.$$typeof===qn}function Xg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var DD=/\/+/g;function yo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Xg(""+e.key):t.toString(36)}function ni(e,t,r,i,a){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case qn:case Xc:s=!0}}if(s)return s=e,a=a(s),e=i===""?"."+yo(s,0):i,Array.isArray(a)?(r="",e!=null&&(r=e.replace(DD,"$&/")+"/"),ni(a,t,r,"",function(h){return h})):a!=null&&(bo(a)&&(a=Yg(a,r+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(DD,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=i===""?".":i+":",Array.isArray(e))for(var c=0;c<e.length;c++){l=e[c];var d=i+yo(l,c);s+=ni(l,t,r,d,a)}else if(d=Kg(e),typeof d=="function")for(e=d.call(e),c=0;!(l=e.next()).done;)l=l.value,d=i+yo(l,c++),s+=ni(l,t,r,d,a);else if(l==="object")throw t=""+e,Error(Nr(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function ri(e,t,r){if(e==null)return e;var i=[],a=0;return ni(e,i,"","",function(l){return t.call(r,l,a++)}),i}function Zg(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(r){e._status===0&&(r=r.default,e._status=1,e._result=r)},function(r){e._status===0&&(e._status=2,e._result=r)})}if(e._status===1)return e._result;throw e._result}var fD={current:null};function Nt(){var e=fD.current;if(e===null)throw Error(Nr(321));return e}var em={ReactCurrentDispatcher:fD,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Co,IsSomeRendererActing:{current:!1},assign:go};re.Children={map:ri,forEach:function(e,t,r){ri(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ri(e,function(){t++}),t},toArray:function(e){return ri(e,function(t){return t})||[]},only:function(e){if(!bo(e))throw Error(Nr(143));return e}},re.Component=Qn,re.PureComponent=mo,re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=em,re.cloneElement=function(e,t,r){if(e==null)throw Error(Nr(267,e));var i=go({},e.props),a=e.key,l=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,s=Co.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)sD.call(t,d)&&!lD.hasOwnProperty(d)&&(i[d]=t[d]===void 0&&c!==void 0?c[d]:t[d])}var d=arguments.length-2;if(d===1)i.children=r;else if(1<d){c=Array(d);for(var h=0;h<d;h++)c[h]=arguments[h+2];i.children=c}return{$$typeof:qn,type:e.type,key:a,ref:l,props:i,_owner:s}},re.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:eD,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Zc,_context:e},e.Consumer=e},re.createElement=cD,re.createFactory=function(e){var t=cD.bind(null,e);return t.type=e,t},re.createRef=function(){return{current:null}},re.forwardRef=function(e){return{$$typeof:tD,render:e}},re.isValidElement=bo,re.lazy=function(e){return{$$typeof:rD,_payload:{_status:-1,_result:e},_init:Zg}},re.memo=function(e,t){return{$$typeof:nD,type:e,compare:t===void 0?null:t}},re.useCallback=function(e,t){return Nt().useCallback(e,t)},re.useContext=function(e,t){return Nt().useContext(e,t)},re.useDebugValue=function(){},re.useEffect=function(e,t){return Nt().useEffect(e,t)},re.useImperativeHandle=function(e,t,r){return Nt().useImperativeHandle(e,t,r)},re.useLayoutEffect=function(e,t){return Nt().useLayoutEffect(e,t)},re.useMemo=function(e,t){return Nt().useMemo(e,t)},re.useReducer=function(e,t,r){return Nt().useReducer(e,t,r)},re.useRef=function(e){return Nt().useRef(e)},re.useState=function(e){return Nt().useState(e)},re.version="17.0.2",function(e){e.exports=re}(fe);var Q=Vc(fe.exports);const dD=Symbol(),tm=Symbol(),Fo=Symbol(),vo=Object.getPrototypeOf,wo=new WeakMap,hD=e=>e&&(wo.has(e)?wo.get(e):vo(e)===Object.prototype||vo(e)===Array.prototype),pD=e=>typeof e=="object"&&e!==null,nm=(e,t)=>{let r=!1;const i=(l,s)=>{if(!r){let c=l.a.get(e);c||(c=new Set,l.a.set(e,c)),c.add(s)}},a={f:t,get(l,s){return s===Fo?e:(i(this,s),gD(l[s],this.a,this.c))},has(l,s){return s===tm?(r=!0,this.a.delete(e),!0):(i(this,s),s in l)},ownKeys(l){return i(this,dD),Reflect.ownKeys(l)}};return t&&(a.set=a.deleteProperty=()=>!1),a},gD=(e,t,r)=>{if(!hD(e))return e;const i=e[Fo]||e,a=(s=>Object.isFrozen(s)||Object.values(Object.getOwnPropertyDescriptors(s)).some(c=>!c.writable))(i);let l=r&&r.get(i);return l&&l.f===a||(l=nm(i,a),l.p=new Proxy(a?(s=>{if(Array.isArray(s))return Array.from(s);const c=Object.getOwnPropertyDescriptors(s);return Object.values(c).forEach(d=>{d.configurable=!0}),Object.create(vo(s),c)})(i):i,l),r&&r.set(i,l)),l.a=t,l.c=r,l.p},rm=(e,t)=>{const r=Reflect.ownKeys(e),i=Reflect.ownKeys(t);return r.length!==i.length||r.some((a,l)=>a!==i[l])},So=(e,t,r,i)=>{if(Object.is(e,t))return!1;if(!pD(e)||!pD(t))return!0;const a=r.get(e);if(!a)return!0;if(i){const s=i.get(e);if(s&&s.n===t)return s.g;i.set(e,{n:t,g:!1})}let l=null;for(const s of a){const c=s===dD?rm(e,t):So(e[s],t[s],r,i);if(c!==!0&&c!==!1||(l=c),l)break}return l===null&&(l=!0),i&&i.set(e,{n:t,g:l}),l},um=e=>hD(e)&&e[Fo]||null,mD=(e,t=!0)=>{wo.set(e,t)},ED=Symbol(),Tt=Symbol(),Bo=Symbol(),im=Symbol(),Tr=Symbol(),CD=Symbol(),bD=new WeakSet,ui=e=>typeof e=="object"&&e!==null,am=e=>ui(e)&&!bD.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),yD=new WeakMap;let FD=1;const vD=new WeakMap,wD=(e={})=>{if(!ui(e))throw new Error("object required");const t=yD.get(e);if(t)return t;let r=FD;const i=new Set,a=(g,C)=>{C||(C=++FD),r!==C&&(r=C,i.forEach(y=>y(g,C)))},l=new Map,s=g=>{let C=l.get(g);return C||(C=(y,v)=>{const k=[...y];k[1]=[g,...k[1]],a(k,v)},l.set(g,C)),C},c=g=>{const C=l.get(g);return l.delete(g),C},d=(g,C)=>{const y=vD.get(C);if((y==null?void 0:y[0])===r)return y[1];const v=Array.isArray(g)?[]:Object.create(Object.getPrototypeOf(g));return mD(v,!0),vD.set(C,[r,v]),Reflect.ownKeys(g).forEach(k=>{const R=Reflect.get(g,k,C);if(bD.has(R))mD(R,!1),v[k]=R;else if(R instanceof Promise)if(Tr in R)v[k]=R[Tr];else{const N=R[CD]||R;Object.defineProperty(v,k,{get(){if(Tr in R)return R[Tr];throw N}})}else R!=null&&R[Tt]?v[k]=R[Bo]:v[k]=R}),Object.freeze(v),v},h=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e)),m={get(g,C,y){return C===ED?r:C===Tt?i:C===Bo?d(g,y):C===im?m:Reflect.get(g,C,y)},deleteProperty(g,C){const y=Reflect.get(g,C),v=y==null?void 0:y[Tt];v&&v.delete(c(C));const k=Reflect.deleteProperty(g,C);return k&&a(["delete",[C],y]),k},is:Object.is,canProxy:am,set(g,C,y,v){var k;const R=Reflect.get(g,C,v);if(this.is(R,y))return!0;const N=R==null?void 0:R[Tt];N&&N.delete(c(C)),ui(y)&&(y=um(y)||y);let H;return(k=Object.getOwnPropertyDescriptor(g,C))!=null&&k.set?H=y:y instanceof Promise?H=y.then(B=>(H[Tr]=B,a(["resolve",[C],B]),B)).catch(B=>{H[CD]=B,a(["reject",[C],B])}):y!=null&&y[Tt]?(H=y,H[Tt].add(s(C))):this.canProxy(y)?(H=wD(y),H[Tt].add(s(C))):H=y,Reflect.set(g,C,H,v),a(["set",[C],y,R]),!0}},E=new Proxy(h,m);return yD.set(e,E),Reflect.ownKeys(e).forEach(g=>{const C=Object.getOwnPropertyDescriptor(e,g);C.get||C.set?Object.defineProperty(h,g,C):E[g]=e[g]}),E},om=e=>ui(e)?e[ED]:void 0,sm=(e,t,r)=>{let i;const a=[],l=s=>{if(a.push(s),r){t(a.splice(0));return}i||(i=Promise.resolve().then(()=>{i=void 0,t(a.splice(0))}))};return e[Tt].add(l),()=>{e[Tt].delete(l)}},xo=e=>e[Bo],tn="_uMS_T",Ao="_uMS_V",lm=(e,t)=>({[tn]:e,[Ao]:t}),cm=(e,t,r)=>{const i=fe.exports.useRef(),a=e[Ao](e[tn]),[l,s]=fe.exports.useState(()=>[e,t,r,a,t(e[tn])]);let c=l[4];return l[0]!==e||l[1]!==t||l[2]!==r?(c=t(e[tn]),s([e,t,r,a,c])):a!==l[3]&&a!==i.current&&(c=t(e[tn]),Object.is(c,l[4])||s([e,t,r,a,c])),fe.exports.useEffect(()=>{let d=!1;const h=()=>{if(!d)try{const E=t(e[tn]),g=e[Ao](e[tn]);i.current=g,s(C=>C[0]!==e||C[1]!==t||C[2]!==r||Object.is(C[4],E)?C:[C[0],C[1],C[2],g,E])}catch{s(E=>[...E])}},m=r(e[tn],h);return h(),()=>{d=!0,m()}},[e,t,r]),c},Dm=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),SD=Dm?fe.exports.useEffect:fe.exports.useLayoutEffect,ko=new WeakMap,fm=e=>(ko.has(e)||ko.set(e,lm(e,om)),ko.get(e)),dm=(e,t)=>{const r=fe.exports.useReducer(E=>E+1,0)[1],i=new WeakMap,a=fe.exports.useRef(),l=fe.exports.useRef(),s=fe.exports.useRef();SD(()=>{s.current=l.current=xo(e)},[e]),SD(()=>{a.current=i,l.current!==s.current&&So(l.current,s.current,i,new WeakMap)&&(l.current=s.current,r())});const c=t==null?void 0:t.sync,d=fe.exports.useCallback((E,g)=>sm(E,()=>{const C=xo(E);s.current=C;try{if(a.current&&!So(l.current,C,a.current,new WeakMap))return}catch{}l.current=C,g()},c),[c]),h=cm(fm(e),xo,d),m=fe.exports.useMemo(()=>new WeakMap,[]);return gD(h,i,m)};function hm(e,t=1,r={}){const{indent:i=" ",includeEmptyLines:a=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof i!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof i}\``);if(t===0)return e;const l=a?/^/gm:/^(?!\s*$)/gm;return e.replace(l,i.repeat(t))}function pm(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const BD=/\s+at.*[(\s](.*)\)?/,gm=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,mm=typeof Ju.default.homedir>"u"?"":Ju.default.homedir().replace(/\\/g,"/");function Em(e,{pretty:t=!1,basePath:r}={}){const i=r&&new RegExp(`(at | \\()${pm(r.replace(/\\/g,"/"))}`,"g");if(typeof e=="string")return e.replace(/\\/g,"/").split(`
`).filter(a=>{const l=a.match(BD);if(l===null||!l[1])return!0;const s=l[1];return s.includes(".app/Contents/Resources/electron.asar")||s.includes(".app/Contents/Resources/default_app.asar")?!1:!gm.test(s)}).filter(a=>a.trim()!=="").map(a=>(i&&(a=a.replace(i,"$1")),t&&(a=a.replace(BD,(l,s)=>l.replace(s,s.replace(mm,"~")))),a)).join(`
`)}const Cm=e=>e.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"");class bm extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError(`Expected input to be an Array, got ${typeof t}`);t=t.map(i=>i instanceof Error?i:i!==null&&typeof i=="object"?Object.assign(new Error(i.message),i):new Error(i));let r=t.map(i=>typeof i.stack=="string"?Cm(Em(i.stack)):String(i)).join(`
`);r=`
`+hm(r,4),super(r),Hg(this,ti,void 0),Ug(this,"name","AggregateError"),Wg(this,ti,t)}get errors(){return Gg(this,ti).slice()}}ti=new WeakMap;async function ym(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:i=!0}={}){return new Promise((a,l)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const s=[],c=[],d=new Map;let h=!1,m=!1,E=!1,g=0,C=0;const y=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),v=R=>{h=!0,m=!0,l(R)},k=async()=>{if(m)return;const R=await y.next(),N=C;if(C++,R.done){if(E=!0,g===0&&!m){if(!i&&c.length>0){v(new bm(c));return}if(m=!0,!d.size){a(s);return}const H=[];for(const[B,w]of s.entries())d.get(B)!==xD&&H.push(w);a(H)}return}g++,(async()=>{try{const H=await R.value;if(m)return;const B=await t(H,N);B===xD&&d.set(N,B),s[N]=B,g--,await k()}catch(H){if(i)v(H);else{c.push(H),g--;try{await k()}catch(B){v(B)}}}})()};(async()=>{for(let R=0;R<r;R++){try{await k()}catch(N){v(N);break}if(E||h)break}})()})}const xD=Symbol("skip");function Fm(e,t){const r=e.push(t)-1;return e[r]}function vm(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}var AD="Expected a function",kD=0/0,wm="[object Symbol]",Sm=/^\s+|\s+$/g,Bm=/^[-+]0x[0-9a-f]+$/i,xm=/^0b[01]+$/i,Am=/^0o[0-7]+$/i,km=parseInt,_m=typeof ft=="object"&&ft&&ft.Object===Object&&ft,Im=typeof self=="object"&&self&&self.Object===Object&&self,Om=_m||Im||Function("return this")(),Rm=Object.prototype,Pm=Rm.toString,Nm=Math.max,Tm=Math.min,_o=function(){return Om.Date.now()};function $m(e,t,r){var i,a,l,s,c,d,h=0,m=!1,E=!1,g=!0;if(typeof e!="function")throw new TypeError(AD);t=_D(t)||0,ii(r)&&(m=!!r.leading,E="maxWait"in r,l=E?Nm(_D(r.maxWait)||0,t):l,g="trailing"in r?!!r.trailing:g);function C(A){var P=i,_=a;return i=a=void 0,h=A,s=e.apply(_,P),s}function y(A){return h=A,c=setTimeout(R,t),m?C(A):s}function v(A){var P=A-d,_=A-h,T=t-P;return E?Tm(T,l-_):T}function k(A){var P=A-d,_=A-h;return d===void 0||P>=t||P<0||E&&_>=l}function R(){var A=_o();if(k(A))return N(A);c=setTimeout(R,v(A))}function N(A){return c=void 0,g&&i?C(A):(i=a=void 0,s)}function H(){c!==void 0&&clearTimeout(c),h=0,i=d=a=c=void 0}function B(){return c===void 0?s:N(_o())}function w(){var A=_o(),P=k(A);if(i=arguments,a=this,d=A,P){if(c===void 0)return y(d);if(E)return c=setTimeout(R,t),C(d)}return c===void 0&&(c=setTimeout(R,t)),s}return w.cancel=H,w.flush=B,w}function Lm(e,t,r){var i=!0,a=!0;if(typeof e!="function")throw new TypeError(AD);return ii(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),$m(e,t,{leading:i,maxWait:t,trailing:a})}function ii(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function jm(e){return!!e&&typeof e=="object"}function Mm(e){return typeof e=="symbol"||jm(e)&&Pm.call(e)==wm}function _D(e){if(typeof e=="number")return e;if(Mm(e))return kD;if(ii(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ii(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Sm,"");var r=xm.test(e);return r||Am.test(e)?km(e.slice(2),r?2:8):Bm.test(e)?kD:+e}var ID=Lm,OD={exports:{}};(function(e){const t=e.exports;e.exports.default=t;const r="\x1B[",i="\x1B]",a="\x07",l=";",s=process.env.TERM_PROGRAM==="Apple_Terminal";t.cursorTo=(c,d)=>{if(typeof c!="number")throw new TypeError("The `x` argument is required");return typeof d!="number"?r+(c+1)+"G":r+(d+1)+";"+(c+1)+"H"},t.cursorMove=(c,d)=>{if(typeof c!="number")throw new TypeError("The `x` argument is required");let h="";return c<0?h+=r+-c+"D":c>0&&(h+=r+c+"C"),d<0?h+=r+-d+"A":d>0&&(h+=r+d+"B"),h},t.cursorUp=(c=1)=>r+c+"A",t.cursorDown=(c=1)=>r+c+"B",t.cursorForward=(c=1)=>r+c+"C",t.cursorBackward=(c=1)=>r+c+"D",t.cursorLeft=r+"G",t.cursorSavePosition=s?"\x1B7":r+"s",t.cursorRestorePosition=s?"\x1B8":r+"u",t.cursorGetPosition=r+"6n",t.cursorNextLine=r+"E",t.cursorPrevLine=r+"F",t.cursorHide=r+"?25l",t.cursorShow=r+"?25h",t.eraseLines=c=>{let d="";for(let h=0;h<c;h++)d+=t.eraseLine+(h<c-1?t.cursorUp():"");return c&&(d+=t.cursorLeft),d},t.eraseEndLine=r+"K",t.eraseStartLine=r+"1K",t.eraseLine=r+"2K",t.eraseDown=r+"J",t.eraseUp=r+"1J",t.eraseScreen=r+"2J",t.scrollUp=r+"S",t.scrollDown=r+"T",t.clearScreen="\x1Bc",t.clearTerminal=process.platform==="win32"?`${t.eraseScreen}${r}0f`:`${t.eraseScreen}${r}3J${r}H`,t.beep=a,t.link=(c,d)=>[i,"8",l,l,d,a,c,i,"8",l,l,a].join(""),t.image=(c,d={})=>{let h=`${i}1337;File=inline=1`;return d.width&&(h+=`;width=${d.width}`),d.height&&(h+=`;height=${d.height}`),d.preserveAspectRatio===!1&&(h+=";preserveAspectRatio=0"),h+":"+c.toString("base64")+a},t.iTerm={setCwd:(c=process.cwd())=>`${i}50;CurrentDir=${c}${a}`,annotation:(c,d={})=>{let h=`${i}1337;`;const m=typeof d.x<"u",E=typeof d.y<"u";if((m||E)&&!(m&&E&&typeof d.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return c=c.replace(/\|/g,""),h+=d.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",d.length>0?h+=(m?[c,d.length,d.x,d.y]:[d.length,c]).join("|"):h+=c,h+a}}})(OD);var Io=OD.exports,$r={},ai={exports:{}},Oo={exports:{}};const RD=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Oo.exports=RD,Oo.exports.default=RD;const zm=Oo.exports,oi=new WeakMap,PD=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,i=0;const a=e.displayName||e.name||"<anonymous>",l=function(...s){if(oi.set(l,++i),i===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${a}\` can only be called once`);return r};return zm(l,e),oi.set(l,i),l};ai.exports=PD,ai.exports.default=PD,ai.exports.callCount=e=>{if(!oi.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return oi.get(e)};var bn={exports:{}},ND={exports:{}},TD;function Um(){return TD||(TD=1,function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(ND)),ND.exports}var pe=ft.process;const yn=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};if(!yn(pe))bn.exports=function(){return function(){}};else{var Gm=Vu.default,Lr=Um(),Hm=/^win/i.test(pe.platform),si=Ir.default;typeof si!="function"&&(si=si.EventEmitter);var Pe;pe.__signal_exit_emitter__?Pe=pe.__signal_exit_emitter__:(Pe=pe.__signal_exit_emitter__=new si,Pe.count=0,Pe.emitted={}),Pe.infinite||(Pe.setMaxListeners(1/0),Pe.infinite=!0),bn.exports=function(e,t){if(!yn(ft.process))return function(){};Gm.equal(typeof e,"function","a callback must be provided for exit handler"),jr===!1&&$D();var r="exit";t&&t.alwaysLast&&(r="afterexit");var i=function(){Pe.removeListener(r,e),Pe.listeners("exit").length===0&&Pe.listeners("afterexit").length===0&&Ro()};return Pe.on(r,e),i};var Ro=function(){!jr||!yn(ft.process)||(jr=!1,Lr.forEach(function(e){try{pe.removeListener(e,Po[e])}catch{}}),pe.emit=No,pe.reallyExit=LD,Pe.count-=1)};bn.exports.unload=Ro;var Jn=function(e,t,r){Pe.emitted[e]||(Pe.emitted[e]=!0,Pe.emit(e,t,r))},Po={};Lr.forEach(function(e){Po[e]=function(){if(yn(ft.process)){var t=pe.listeners(e);t.length===Pe.count&&(Ro(),Jn("exit",null,e),Jn("afterexit",null,e),Hm&&e==="SIGHUP"&&(e="SIGINT"),pe.kill(pe.pid,e))}}}),bn.exports.signals=function(){return Lr};var jr=!1,$D=function(){jr||!yn(ft.process)||(jr=!0,Pe.count+=1,Lr=Lr.filter(function(e){try{return pe.on(e,Po[e]),!0}catch{return!1}}),pe.emit=qm,pe.reallyExit=Wm)};bn.exports.load=$D;var LD=pe.reallyExit,Wm=function(e){!yn(ft.process)||(pe.exitCode=e||0,Jn("exit",pe.exitCode,null),Jn("afterexit",pe.exitCode,null),LD.call(pe,pe.exitCode))},No=pe.emit,qm=function(e,t){if(e==="exit"&&yn(ft.process)){t!==void 0&&(pe.exitCode=t);var r=No.apply(this,arguments);return Jn("exit",pe.exitCode,null),Jn("afterexit",pe.exitCode,null),r}else return No.apply(this,arguments)}}const Qm=ai.exports,Jm=bn.exports;var Vm=Qm(()=>{Jm(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})});(function(e){const t=Vm;let r=!1;e.show=(i=process.stderr)=>{!i.isTTY||(r=!1,i.write("\x1B[?25h"))},e.hide=(i=process.stderr)=>{!i.isTTY||(t(),r=!0,i.write("\x1B[?25l"))},e.toggle=(i,a)=>{i!==void 0&&(r=i),r?e.show(a):e.hide(a)}})($r);var jD={},Km=[{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",pr:"SYSTEM_PULLREQUEST_PULLREQUESTID"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT