@turbo/gen 0.0.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +373 -0
- package/README.md +66 -0
- package/dist/cli.js +290 -0
- package/package.json +56 -0
package/dist/cli.js
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";var X5=Object.create;var Jh=Object.defineProperty;var Z5=Object.getOwnPropertyDescriptor;var Q5=Object.getOwnPropertyNames;var J5=Object.getPrototypeOf,eb=Object.prototype.hasOwnProperty;var ye=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var tb=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Q5(r))!eb.call(e,i)&&i!==t&&Jh(e,i,{get:()=>r[i],enumerable:!(n=Z5(r,i))||n.enumerable});return e};var Ue=(e,r,t)=>(t=e!=null?X5(J5(e)):{},tb(r||!e||!e.__esModule?Jh(t,"default",{value:e,enumerable:!0}):t,e));var yd=ye((U$,md)=>{md.exports=dd;dd.sync=HA;var fd=require("fs");function $A(e,r){var t=r.pathExt!==void 0?r.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var n=0;n<t.length;n++){var i=t[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function pd(e,r,t){return!e.isSymbolicLink()&&!e.isFile()?!1:$A(r,t)}function dd(e,r,t){fd.stat(e,function(n,i){t(n,n?!1:pd(i,e,r))})}function HA(e,r){return pd(fd.statSync(e),e,r)}});var wd=ye((G$,_d)=>{_d.exports=bd;bd.sync=qA;var gd=require("fs");function bd(e,r,t){gd.stat(e,function(n,i){t(n,n?!1:vd(i,r))})}function qA(e,r){return vd(gd.statSync(e),r)}function vd(e,r){return e.isFile()&&UA(e,r)}function UA(e,r){var t=e.mode,n=e.uid,i=e.gid,l=r.uid!==void 0?r.uid:process.getuid&&process.getuid(),a=r.gid!==void 0?r.gid:process.getgid&&process.getgid(),o=parseInt("100",8),s=parseInt("010",8),f=parseInt("001",8),c=o|s,h=t&f||t&s&&i===a||t&o&&n===l||t&c&&l===0;return h}});var Sd=ye((z$,Ed)=>{var W$=require("fs"),_s;process.platform==="win32"||global.TESTING_WINDOWS?_s=yd():_s=wd();Ed.exports=cu;cu.sync=GA;function cu(e,r,t){if(typeof r=="function"&&(t=r,r={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){cu(e,r||{},function(l,a){l?i(l):n(a)})})}_s(e,r||{},function(n,i){n&&(n.code==="EACCES"||r&&r.ignoreErrors)&&(n=null,i=!1),t(n,i)})}function GA(e,r){try{return _s.sync(e,r||{})}catch(t){if(r&&r.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var Od=ye((V$,Rd)=>{var fn=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",xd=require("path"),WA=fn?";":":",Ad=Sd(),Cd=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),kd=(e,r)=>{let t=r.colon||WA,n=e.match(/\//)||fn&&e.match(/\\/)?[""]:[...fn?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(t)],i=fn?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",l=fn?i.split(t):[""];return fn&&e.indexOf(".")!==-1&&l[0]!==""&&l.unshift(""),{pathEnv:n,pathExt:l,pathExtExe:i}},Dd=(e,r,t)=>{typeof r=="function"&&(t=r,r={}),r||(r={});let{pathEnv:n,pathExt:i,pathExtExe:l}=kd(e,r),a=[],o=f=>new Promise((c,h)=>{if(f===n.length)return r.all&&a.length?c(a):h(Cd(e));let u=n[f],d=/^".*"$/.test(u)?u.slice(1,-1):u,p=xd.join(d,e),y=!d&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;c(s(y,f,0))}),s=(f,c,h)=>new Promise((u,d)=>{if(h===i.length)return u(o(c+1));let p=i[h];Ad(f+p,{pathExt:l},(y,b)=>{if(!y&&b)if(r.all)a.push(f+p);else return u(f+p);return u(s(f,c,h+1))})});return t?o(0).then(f=>t(null,f),t):o(0)},zA=(e,r)=>{r=r||{};let{pathEnv:t,pathExt:n,pathExtExe:i}=kd(e,r),l=[];for(let a=0;a<t.length;a++){let o=t[a],s=/^".*"$/.test(o)?o.slice(1,-1):o,f=xd.join(s,e),c=!s&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let h=0;h<n.length;h++){let u=c+n[h];try{if(Ad.sync(u,{pathExt:i}))if(r.all)l.push(u);else return u}catch{}}}if(r.all&&l.length)return l;if(r.nothrow)return null;throw Cd(e)};Rd.exports=Dd;Dd.sync=zA});var fu=ye((K$,hu)=>{"use strict";var Td=(e={})=>{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};hu.exports=Td;hu.exports.default=Td});var Id=ye((Y$,Bd)=>{"use strict";var Fd=require("path"),VA=Od(),KA=fu();function Pd(e,r){let t=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,l=i&&process.chdir!==void 0&&!process.chdir.disabled;if(l)try{process.chdir(e.options.cwd)}catch{}let a;try{a=VA.sync(e.command,{path:t[KA({env:t})],pathExt:r?Fd.delimiter:void 0})}catch{}finally{l&&process.chdir(n)}return a&&(a=Fd.resolve(i?e.options.cwd:"",a)),a}function YA(e){return Pd(e)||Pd(e,!0)}Bd.exports=YA});var Ld=ye((X$,du)=>{"use strict";var pu=/([()\][%!^"`<>&|;, *?])/g;function XA(e){return e=e.replace(pu,"^$1"),e}function ZA(e,r){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(pu,"^$1"),r&&(e=e.replace(pu,"^$1")),e}du.exports.command=XA;du.exports.argument=ZA});var Nd=ye((Z$,Md)=>{"use strict";Md.exports=/^#!(.*)/});var $d=ye((Q$,jd)=>{"use strict";var QA=Nd();jd.exports=(e="")=>{let r=e.match(QA);if(!r)return null;let[t,n]=r[0].replace(/#! ?/,"").split(" "),i=t.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var qd=ye((J$,Hd)=>{"use strict";var mu=require("fs"),JA=$d();function eC(e){let t=Buffer.alloc(150),n;try{n=mu.openSync(e,"r"),mu.readSync(n,t,0,150,0),mu.closeSync(n)}catch{}return JA(t.toString())}Hd.exports=eC});var zd=ye((eH,Wd)=>{"use strict";var tC=require("path"),Ud=Id(),Gd=Ld(),rC=qd(),nC=process.platform==="win32",iC=/\.(?:com|exe)$/i,sC=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function oC(e){e.file=Ud(e);let r=e.file&&rC(e.file);return r?(e.args.unshift(e.file),e.command=r,Ud(e)):e.file}function aC(e){if(!nC)return e;let r=oC(e),t=!iC.test(r);if(e.options.forceShell||t){let n=sC.test(r);e.command=tC.normalize(e.command),e.command=Gd.command(e.command),e.args=e.args.map(l=>Gd.argument(l,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function uC(e,r,t){r&&!Array.isArray(r)&&(t=r,r=null),r=r?r.slice(0):[],t=Object.assign({},t);let n={command:e,args:r,options:t,file:void 0,original:{command:e,args:r}};return t.shell?n:aC(n)}Wd.exports=uC});var Yd=ye((tH,Kd)=>{"use strict";var yu=process.platform==="win32";function gu(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function lC(e,r){if(!yu)return;let t=e.emit;e.emit=function(n,i){if(n==="exit"){let l=Vd(i,r,"spawn");if(l)return t.call(e,"error",l)}return t.apply(e,arguments)}}function Vd(e,r){return yu&&e===1&&!r.file?gu(r.original,"spawn"):null}function cC(e,r){return yu&&e===1&&!r.file?gu(r.original,"spawnSync"):null}Kd.exports={hookChildProcess:lC,verifyENOENT:Vd,verifyENOENTSync:cC,notFoundError:gu}});var Qd=ye((rH,pn)=>{"use strict";var Xd=require("child_process"),bu=zd(),vu=Yd();function Zd(e,r,t){let n=bu(e,r,t),i=Xd.spawn(n.command,n.args,n.options);return vu.hookChildProcess(i,n),i}function hC(e,r,t){let n=bu(e,r,t),i=Xd.spawnSync(n.command,n.args,n.options);return i.error=i.error||vu.verifyENOENTSync(i.status,n),i}pn.exports=Zd;pn.exports.spawn=Zd;pn.exports.sync=hC;pn.exports._parse=bu;pn.exports._enoent=vu});var e0=ye((nH,Jd)=>{"use strict";Jd.exports=e=>{let r=typeof e=="string"?`
|
|
3
|
+
`:`
|
|
4
|
+
`.charCodeAt(),t=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e}});var n0=ye((iH,gi)=>{"use strict";var yi=require("path"),t0=fu(),r0=e=>{e={cwd:process.cwd(),path:process.env[t0()],execPath:process.execPath,...e};let r,t=yi.resolve(e.cwd),n=[];for(;r!==t;)n.push(yi.join(t,"node_modules/.bin")),r=t,t=yi.resolve(t,"..");let i=yi.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(yi.delimiter)};gi.exports=r0;gi.exports.default=r0;gi.exports.env=e=>{e={env:process.env,...e};let r={...e.env},t=t0({env:r});return e.path=r[t],r[t]=gi.exports(e),r}});var s0=ye((sH,_u)=>{"use strict";var i0=(e,r)=>{for(let t of Reflect.ownKeys(r))Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t));return e};_u.exports=i0;_u.exports.default=i0});var wu=ye((oH,Es)=>{"use strict";var fC=s0(),ws=new WeakMap,o0=(e,r={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let t,n=0,i=e.displayName||e.name||"<anonymous>",l=function(...a){if(ws.set(l,++n),n===1)t=e.apply(this,a),e=null;else if(r.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return t};return fC(l,e),ws.set(l,n),l};Es.exports=o0;Es.exports.default=o0;Es.exports.callCount=e=>{if(!ws.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ws.get(e)}});var a0=ye(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.SIGNALS=void 0;var pC=[{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"}];Ss.SIGNALS=pC});var Eu=ye(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.SIGRTMAX=dn.getRealtimeSignals=void 0;var dC=function(){let e=l0-u0+1;return Array.from({length:e},mC)};dn.getRealtimeSignals=dC;var mC=function(e,r){return{name:`SIGRT${r+1}`,number:u0+r,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},u0=34,l0=64;dn.SIGRTMAX=l0});var c0=ye(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.getSignals=void 0;var yC=require("os"),gC=a0(),bC=Eu(),vC=function(){let e=(0,bC.getRealtimeSignals)();return[...gC.SIGNALS,...e].map(_C)};xs.getSignals=vC;var _C=function({name:e,number:r,description:t,action:n,forced:i=!1,standard:l}){let{signals:{[e]:a}}=yC.constants,o=a!==void 0;return{name:e,number:o?a:r,description:t,supported:o,action:n,forced:i,standard:l}}});var f0=ye(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.signalsByNumber=mn.signalsByName=void 0;var wC=require("os"),h0=c0(),EC=Eu(),SC=function(){return(0,h0.getSignals)().reduce(xC,{})},xC=function(e,{name:r,number:t,description:n,supported:i,action:l,forced:a,standard:o}){return{...e,[r]:{name:r,number:t,description:n,supported:i,action:l,forced:a,standard:o}}},AC=SC();mn.signalsByName=AC;var CC=function(){let e=(0,h0.getSignals)(),r=EC.SIGRTMAX+1,t=Array.from({length:r},(n,i)=>kC(i,e));return Object.assign({},...t)},kC=function(e,r){let t=DC(e,r);if(t===void 0)return{};let{name:n,description:i,supported:l,action:a,forced:o,standard:s}=t;return{[e]:{name:n,number:e,description:i,supported:l,action:a,forced:o,standard:s}}},DC=function(e,r){let t=r.find(({name:n})=>wC.constants.signals[n]===e);return t!==void 0?t:r.find(n=>n.number===e)},RC=CC();mn.signalsByNumber=RC});var d0=ye((hH,p0)=>{"use strict";var{signalsByName:OC}=f0(),TC=({timedOut:e,timeout:r,errorCode:t,signal:n,signalDescription:i,exitCode:l,isCanceled:a})=>e?`timed out after ${r} milliseconds`:a?"was canceled":t!==void 0?`failed with ${t}`:n!==void 0?`was killed with ${n} (${i})`:l!==void 0?`failed with exit code ${l}`:"failed",FC=({stdout:e,stderr:r,all:t,error:n,signal:i,exitCode:l,command:a,escapedCommand:o,timedOut:s,isCanceled:f,killed:c,parsed:{options:{timeout:h}}})=>{l=l===null?void 0:l,i=i===null?void 0:i;let u=i===void 0?void 0:OC[i].description,d=n&&n.code,y=`Command ${TC({timedOut:s,timeout:h,errorCode:d,signal:i,signalDescription:u,exitCode:l,isCanceled:f})}: ${a}`,b=Object.prototype.toString.call(n)==="[object Error]",_=b?`${y}
|
|
5
|
+
${n.message}`:y,g=[_,r,e].filter(Boolean).join(`
|
|
6
|
+
`);return b?(n.originalMessage=n.message,n.message=g):n=new Error(g),n.shortMessage=_,n.command=a,n.escapedCommand=o,n.exitCode=l,n.signal=i,n.signalDescription=u,n.stdout=e,n.stderr=r,t!==void 0&&(n.all=t),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!s,n.isCanceled=f,n.killed=c&&!s,n};p0.exports=FC});var y0=ye((fH,Su)=>{"use strict";var As=["stdin","stdout","stderr"],PC=e=>As.some(r=>e[r]!==void 0),m0=e=>{if(!e)return;let{stdio:r}=e;if(r===void 0)return As.map(n=>e[n]);if(PC(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${As.map(n=>`\`${n}\``).join(", ")}`);if(typeof r=="string")return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);let t=Math.max(r.length,As.length);return Array.from({length:t},(n,i)=>r[i])};Su.exports=m0;Su.exports.node=e=>{let r=m0(e);return r==="ipc"?"ipc":r===void 0||typeof r=="string"?[r,r,r,"ipc"]:r.includes("ipc")?r:[...r,"ipc"]}});var g0=ye((pH,Cs)=>{Cs.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Cs.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Cs.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Cu=ye((dH,bn)=>{var Ve=global.process,jr=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"};jr(Ve)?(b0=require("assert"),yn=g0(),v0=/^win/i.test(Ve.platform),bi=require("events"),typeof bi!="function"&&(bi=bi.EventEmitter),Ve.__signal_exit_emitter__?it=Ve.__signal_exit_emitter__:(it=Ve.__signal_exit_emitter__=new bi,it.count=0,it.emitted={}),it.infinite||(it.setMaxListeners(1/0),it.infinite=!0),bn.exports=function(e,r){if(!jr(global.process))return function(){};b0.equal(typeof e,"function","a callback must be provided for exit handler"),gn===!1&&xu();var t="exit";r&&r.alwaysLast&&(t="afterexit");var n=function(){it.removeListener(t,e),it.listeners("exit").length===0&&it.listeners("afterexit").length===0&&ks()};return it.on(t,e),n},ks=function(){!gn||!jr(global.process)||(gn=!1,yn.forEach(function(r){try{Ve.removeListener(r,Ds[r])}catch{}}),Ve.emit=Rs,Ve.reallyExit=Au,it.count-=1)},bn.exports.unload=ks,$r=function(r,t,n){it.emitted[r]||(it.emitted[r]=!0,it.emit(r,t,n))},Ds={},yn.forEach(function(e){Ds[e]=function(){if(jr(global.process)){var t=Ve.listeners(e);t.length===it.count&&(ks(),$r("exit",null,e),$r("afterexit",null,e),v0&&e==="SIGHUP"&&(e="SIGINT"),Ve.kill(Ve.pid,e))}}}),bn.exports.signals=function(){return yn},gn=!1,xu=function(){gn||!jr(global.process)||(gn=!0,it.count+=1,yn=yn.filter(function(r){try{return Ve.on(r,Ds[r]),!0}catch{return!1}}),Ve.emit=w0,Ve.reallyExit=_0)},bn.exports.load=xu,Au=Ve.reallyExit,_0=function(r){jr(global.process)&&(Ve.exitCode=r||0,$r("exit",Ve.exitCode,null),$r("afterexit",Ve.exitCode,null),Au.call(Ve,Ve.exitCode))},Rs=Ve.emit,w0=function(r,t){if(r==="exit"&&jr(global.process)){t!==void 0&&(Ve.exitCode=t);var n=Rs.apply(this,arguments);return $r("exit",Ve.exitCode,null),$r("afterexit",Ve.exitCode,null),n}else return Rs.apply(this,arguments)}):bn.exports=function(){return function(){}};var b0,yn,v0,bi,it,ks,$r,Ds,gn,xu,Au,_0,Rs,w0});var S0=ye((mH,E0)=>{"use strict";var BC=require("os"),IC=Cu(),LC=1e3*5,MC=(e,r="SIGTERM",t={})=>{let n=e(r);return NC(e,r,t,n),n},NC=(e,r,t,n)=>{if(!jC(r,t,n))return;let i=HC(t),l=setTimeout(()=>{e("SIGKILL")},i);l.unref&&l.unref()},jC=(e,{forceKillAfterTimeout:r},t)=>$C(e)&&r!==!1&&t,$C=e=>e===BC.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",HC=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return LC;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},qC=(e,r)=>{e.kill()&&(r.isCanceled=!0)},UC=(e,r,t)=>{e.kill(r),t(Object.assign(new Error("Timed out"),{timedOut:!0,signal:r}))},GC=(e,{timeout:r,killSignal:t="SIGTERM"},n)=>{if(r===0||r===void 0)return n;let i,l=new Promise((o,s)=>{i=setTimeout(()=>{UC(e,t,s)},r)}),a=n.finally(()=>{clearTimeout(i)});return Promise.race([l,a])},WC=({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})`)},zC=async(e,{cleanup:r,detached:t},n)=>{if(!r||t)return n;let i=IC(()=>{e.kill()});return n.finally(()=>{i()})};E0.exports={spawnedKill:MC,spawnedCancel:qC,setupTimeout:GC,validateTimeout:WC,setExitHandler:zC}});var A0=ye((yH,x0)=>{"use strict";var Ht=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Ht.writable=e=>Ht(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Ht.readable=e=>Ht(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Ht.duplex=e=>Ht.writable(e)&&Ht.readable(e);Ht.transform=e=>Ht.duplex(e)&&typeof e._transform=="function";x0.exports=Ht});var k0=ye((gH,C0)=>{"use strict";var{PassThrough:VC}=require("stream");C0.exports=e=>{e={...e};let{array:r}=e,{encoding:t}=e,n=t==="buffer",i=!1;r?i=!(t||n):t=t||"utf8",n&&(t=null);let l=new VC({objectMode:i});t&&l.setEncoding(t);let a=0,o=[];return l.on("data",s=>{o.push(s),i?a=o.length:a+=s.length}),l.getBufferedValue=()=>r?o:n?Buffer.concat(o,a):o.join(""),l.getBufferedLength=()=>a,l}});var D0=ye((bH,vi)=>{"use strict";var{constants:KC}=require("buffer"),YC=require("stream"),{promisify:XC}=require("util"),ZC=k0(),QC=XC(YC.pipeline),Os=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function ku(e,r){if(!e)throw new Error("Expected a stream");r={maxBuffer:1/0,...r};let{maxBuffer:t}=r,n=ZC(r);return await new Promise((i,l)=>{let a=o=>{o&&n.getBufferedLength()<=KC.MAX_LENGTH&&(o.bufferedData=n.getBufferedValue()),l(o)};(async()=>{try{await QC(e,n),i()}catch(o){a(o)}})(),n.on("data",()=>{n.getBufferedLength()>t&&a(new Os)})}),n.getBufferedValue()}vi.exports=ku;vi.exports.buffer=(e,r)=>ku(e,{...r,encoding:"buffer"});vi.exports.array=(e,r)=>ku(e,{...r,array:!0});vi.exports.MaxBufferError=Os});var O0=ye((vH,R0)=>{"use strict";var{PassThrough:JC}=require("stream");R0.exports=function(){var e=[],r=new JC({objectMode:!0});return r.setMaxListeners(0),r.add=t,r.isEmpty=n,r.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(t),r;function t(l){return Array.isArray(l)?(l.forEach(t),this):(e.push(l),l.once("end",i.bind(null,l)),l.once("error",r.emit.bind(r,"error")),l.pipe(r,{end:!1}),this)}function n(){return e.length==0}function i(l){e=e.filter(function(a){return a!==l}),!e.length&&r.readable&&r.end()}}});var B0=ye((_H,P0)=>{"use strict";var F0=A0(),T0=D0(),ek=O0(),tk=(e,r)=>{r===void 0||e.stdin===void 0||(F0(r)?r.pipe(e.stdin):e.stdin.end(r))},rk=(e,{all:r})=>{if(!r||!e.stdout&&!e.stderr)return;let t=ek();return e.stdout&&t.add(e.stdout),e.stderr&&t.add(e.stderr),t},Du=async(e,r)=>{if(e){e.destroy();try{return await r}catch(t){return t.bufferedData}}},Ru=(e,{encoding:r,buffer:t,maxBuffer:n})=>{if(!(!e||!t))return r?T0(e,{encoding:r,maxBuffer:n}):T0.buffer(e,{maxBuffer:n})},nk=async({stdout:e,stderr:r,all:t},{encoding:n,buffer:i,maxBuffer:l},a)=>{let o=Ru(e,{encoding:n,buffer:i,maxBuffer:l}),s=Ru(r,{encoding:n,buffer:i,maxBuffer:l}),f=Ru(t,{encoding:n,buffer:i,maxBuffer:l*2});try{return await Promise.all([a,o,s,f])}catch(c){return Promise.all([{error:c,signal:c.signal,timedOut:c.timedOut},Du(e,o),Du(r,s),Du(t,f)])}},ik=({input:e})=>{if(F0(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};P0.exports={handleInput:tk,makeAllStream:rk,getSpawnedResult:nk,validateInputSync:ik}});var L0=ye((wH,I0)=>{"use strict";var sk=(async()=>{})().constructor.prototype,ok=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(sk,e)]),ak=(e,r)=>{for(let[t,n]of ok){let i=typeof r=="function"?(...l)=>Reflect.apply(n.value,r(),l):n.value.bind(r);Reflect.defineProperty(e,t,{...n,value:i})}return e},uk=e=>new Promise((r,t)=>{e.on("exit",(n,i)=>{r({exitCode:n,signal:i})}),e.on("error",n=>{t(n)}),e.stdin&&e.stdin.on("error",n=>{t(n)})});I0.exports={mergePromise:ak,getSpawnedPromise:uk}});var j0=ye((EH,N0)=>{"use strict";var M0=(e,r=[])=>Array.isArray(r)?[e,...r]:[e],lk=/^[\w.-]+$/,ck=/"/g,hk=e=>typeof e!="string"||lk.test(e)?e:`"${e.replace(ck,'\\"')}"`,fk=(e,r)=>M0(e,r).join(" "),pk=(e,r)=>M0(e,r).map(t=>hk(t)).join(" "),dk=/ +/g,mk=e=>{let r=[];for(let t of e.trim().split(dk)){let n=r[r.length-1];n&&n.endsWith("\\")?r[r.length-1]=`${n.slice(0,-1)} ${t}`:r.push(t)}return r};N0.exports={joinCommand:fk,getEscapedCommand:pk,parseCommand:mk}});var Tu=ye((SH,vn)=>{"use strict";var yk=require("path"),Ou=require("child_process"),gk=Qd(),bk=e0(),vk=n0(),_k=wu(),Ts=d0(),H0=y0(),{spawnedKill:wk,spawnedCancel:Ek,setupTimeout:Sk,validateTimeout:xk,setExitHandler:Ak}=S0(),{handleInput:Ck,getSpawnedResult:kk,makeAllStream:Dk,validateInputSync:Rk}=B0(),{mergePromise:$0,getSpawnedPromise:Ok}=L0(),{joinCommand:q0,parseCommand:U0,getEscapedCommand:G0}=j0(),Tk=1e3*1e3*100,Fk=({env:e,extendEnv:r,preferLocal:t,localDir:n,execPath:i})=>{let l=r?{...process.env,...e}:e;return t?vk.env({env:l,cwd:n,execPath:i}):l},W0=(e,r,t={})=>{let n=gk._parse(e,r,t);return e=n.command,r=n.args,t=n.options,t={maxBuffer:Tk,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:t.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...t},t.env=Fk(t),t.stdio=H0(t),process.platform==="win32"&&yk.basename(e,".exe")==="cmd"&&r.unshift("/q"),{file:e,args:r,options:t,parsed:n}},_i=(e,r,t)=>typeof r!="string"&&!Buffer.isBuffer(r)?t===void 0?void 0:"":e.stripFinalNewline?bk(r):r,Fs=(e,r,t)=>{let n=W0(e,r,t),i=q0(e,r),l=G0(e,r);xk(n.options);let a;try{a=Ou.spawn(n.file,n.args,n.options)}catch(d){let p=new Ou.ChildProcess,y=Promise.reject(Ts({error:d,stdout:"",stderr:"",all:"",command:i,escapedCommand:l,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return $0(p,y)}let o=Ok(a),s=Sk(a,n.options,o),f=Ak(a,n.options,s),c={isCanceled:!1};a.kill=wk.bind(null,a.kill.bind(a)),a.cancel=Ek.bind(null,a,c);let u=_k(async()=>{let[{error:d,exitCode:p,signal:y,timedOut:b},_,g,S]=await kk(a,n.options,f),E=_i(n.options,_),v=_i(n.options,g),m=_i(n.options,S);if(d||p!==0||y!==null){let w=Ts({error:d,exitCode:p,signal:y,stdout:E,stderr:v,all:m,command:i,escapedCommand:l,parsed:n,timedOut:b,isCanceled:c.isCanceled,killed:a.killed});if(!n.options.reject)return w;throw w}return{command:i,escapedCommand:l,exitCode:0,stdout:E,stderr:v,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Ck(a,n.options.input),a.all=Dk(a,n.options),$0(a,u)};vn.exports=Fs;vn.exports.sync=(e,r,t)=>{let n=W0(e,r,t),i=q0(e,r),l=G0(e,r);Rk(n.options);let a;try{a=Ou.spawnSync(n.file,n.args,n.options)}catch(f){throw Ts({error:f,stdout:"",stderr:"",all:"",command:i,escapedCommand:l,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let o=_i(n.options,a.stdout,a.error),s=_i(n.options,a.stderr,a.error);if(a.error||a.status!==0||a.signal!==null){let f=Ts({stdout:o,stderr:s,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:l,parsed:n,timedOut:a.error&&a.error.code==="ETIMEDOUT",isCanceled:!1,killed:a.signal!==null});if(!n.options.reject)return f;throw f}return{command:i,escapedCommand:l,exitCode:0,stdout:o,stderr:s,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};vn.exports.command=(e,r)=>{let[t,...n]=U0(e);return Fs(t,n,r)};vn.exports.commandSync=(e,r)=>{let[t,...n]=U0(e);return Fs.sync(t,n,r)};vn.exports.node=(e,r,t={})=>{r&&!Array.isArray(r)&&typeof r=="object"&&(t=r,r=[]);let n=H0.node(t),i=process.execArgv.filter(o=>!o.startsWith("--inspect")),{nodePath:l=process.execPath,nodeOptions:a=i}=t;return Fs(l,[...a,e,...Array.isArray(r)?r:[]],{...t,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var z0=ye(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.splitWhen=_n.flatten=void 0;function Pk(e){return e.reduce((r,t)=>[].concat(r,t),[])}_n.flatten=Pk;function Bk(e,r){let t=[[]],n=0;for(let i of e)r(i)?(n++,t[n]=[]):t[n].push(i);return t}_n.splitWhen=Bk});var V0=ye(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.isEnoentCodeError=void 0;function Ik(e){return e.code==="ENOENT"}Ps.isEnoentCodeError=Ik});var K0=ye(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.createDirentFromStats=void 0;var Fu=class{constructor(r,t){this.name=r,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function Lk(e,r){return new Fu(e,r)}Bs.createDirentFromStats=Lk});var Y0=ye(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.removeLeadingDotSegment=qt.escape=qt.makeAbsolute=qt.unixify=void 0;var Mk=require("path"),Nk=2,jk=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function $k(e){return e.replace(/\\/g,"/")}qt.unixify=$k;function Hk(e,r){return Mk.resolve(e,r)}qt.makeAbsolute=Hk;function qk(e){return e.replace(jk,"\\$2")}qt.escape=qk;function Uk(e){if(e.charAt(0)==="."){let r=e.charAt(1);if(r==="/"||r==="\\")return e.slice(Nk)}return e}qt.removeLeadingDotSegment=Uk});var Z0=ye((DH,X0)=>{X0.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(t[2])return!0;r=r.slice(t.index+t[0].length)}return!1}});var em=ye((RH,J0)=>{var Gk=Z0(),Q0={"{":"}","(":")","[":"]"},Wk=function(e){if(e[0]==="!")return!0;for(var r=0,t=-2,n=-2,i=-2,l=-2,a=-2;r<e.length;){if(e[r]==="*"||e[r+1]==="?"&&/[\].+)]/.test(e[r])||n!==-1&&e[r]==="["&&e[r+1]!=="]"&&(n<r&&(n=e.indexOf("]",r)),n>r&&(a===-1||a>n||(a=e.indexOf("\\",r),a===-1||a>n)))||i!==-1&&e[r]==="{"&&e[r+1]!=="}"&&(i=e.indexOf("}",r),i>r&&(a=e.indexOf("\\",r),a===-1||a>i))||l!==-1&&e[r]==="("&&e[r+1]==="?"&&/[:!=]/.test(e[r+2])&&e[r+3]!==")"&&(l=e.indexOf(")",r),l>r&&(a=e.indexOf("\\",r),a===-1||a>l))||t!==-1&&e[r]==="("&&e[r+1]!=="|"&&(t<r&&(t=e.indexOf("|",r)),t!==-1&&e[t+1]!==")"&&(l=e.indexOf(")",t),l>t&&(a=e.indexOf("\\",t),a===-1||a>l))))return!0;if(e[r]==="\\"){var o=e[r+1];r+=2;var s=Q0[o];if(s){var f=e.indexOf(s,r);f!==-1&&(r=f+1)}if(e[r]==="!")return!0}else r++}return!1},zk=function(e){if(e[0]==="!")return!0;for(var r=0;r<e.length;){if(/[*?{}()[\]]/.test(e[r]))return!0;if(e[r]==="\\"){var t=e[r+1];r+=2;var n=Q0[t];if(n){var i=e.indexOf(n,r);i!==-1&&(r=i+1)}if(e[r]==="!")return!0}else r++}return!1};J0.exports=function(r,t){if(typeof r!="string"||r==="")return!1;if(Gk(r))return!0;var n=Wk;return t&&t.strict===!1&&(n=zk),n(r)}});var rm=ye((OH,tm)=>{"use strict";var Vk=em(),Kk=require("path").posix.dirname,Yk=require("os").platform()==="win32",Pu="/",Xk=/\\/g,Zk=/[\{\[].*[\}\]]$/,Qk=/(^|[^\\])([\{\[]|\([^\)]+$)/,Jk=/\\([\!\*\?\|\[\]\(\)\{\}])/g;tm.exports=function(r,t){var n=Object.assign({flipBackslashes:!0},t);n.flipBackslashes&&Yk&&r.indexOf(Pu)<0&&(r=r.replace(Xk,Pu)),Zk.test(r)&&(r+=Pu),r+="a";do r=Kk(r);while(Vk(r)||Qk.test(r));return r.replace(Jk,"$1")}});var Is=ye(Ft=>{"use strict";Ft.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Ft.find=(e,r)=>e.nodes.find(t=>t.type===r);Ft.exceedsLimit=(e,r,t=1,n)=>n===!1||!Ft.isInteger(e)||!Ft.isInteger(r)?!1:(Number(r)-Number(e))/Number(t)>=n;Ft.escapeNode=(e,r=0,t)=>{let n=e.nodes[r];n&&(t&&n.type===t||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Ft.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);Ft.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Ft.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Ft.reduce=e=>e.reduce((r,t)=>(t.type==="text"&&r.push(t.value),t.type==="range"&&(t.type="text"),r),[]);Ft.flatten=(...e)=>{let r=[],t=n=>{for(let i=0;i<n.length;i++){let l=n[i];Array.isArray(l)?t(l,r):l!==void 0&&r.push(l)}return r};return t(e),r}});var Ls=ye((FH,im)=>{"use strict";var nm=Is();im.exports=(e,r={})=>{let t=(n,i={})=>{let l=r.escapeInvalid&&nm.isInvalidBrace(i),a=n.invalid===!0&&r.escapeInvalid===!0,o="";if(n.value)return(l||a)&&nm.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let s of n.nodes)o+=t(s);return o};return t(e)}});var om=ye((PH,sm)=>{"use strict";sm.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var mm=ye((BH,dm)=>{"use strict";var am=om(),Hr=(e,r,t)=>{if(am(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(r===void 0||e===r)return String(e);if(am(r)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...t};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),l=String(n.shorthand),a=String(n.capture),o=String(n.wrap),s=e+":"+r+"="+i+l+a+o;if(Hr.cache.hasOwnProperty(s))return Hr.cache[s].result;let f=Math.min(e,r),c=Math.max(e,r);if(Math.abs(f-c)===1){let y=e+"|"+r;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let h=pm(e)||pm(r),u={min:e,max:r,a:f,b:c},d=[],p=[];if(h&&(u.isPadded=h,u.maxLen=String(u.max).length),f<0){let y=c<0?Math.abs(c):1;p=um(y,Math.abs(f),u,n),f=u.a=0}return c>=0&&(d=um(f,c,u,n)),u.negatives=p,u.positives=d,u.result=eD(p,d,n),n.capture===!0?u.result=`(${u.result})`:n.wrap!==!1&&d.length+p.length>1&&(u.result=`(?:${u.result})`),Hr.cache[s]=u,u.result};function eD(e,r,t){let n=Bu(e,r,"-",!1,t)||[],i=Bu(r,e,"",!1,t)||[],l=Bu(e,r,"-?",!0,t)||[];return n.concat(l).concat(i).join("|")}function tD(e,r){let t=1,n=1,i=cm(e,t),l=new Set([r]);for(;e<=i&&i<=r;)l.add(i),t+=1,i=cm(e,t);for(i=hm(r+1,n)-1;e<i&&i<=r;)l.add(i),n+=1,i=hm(r+1,n)-1;return l=[...l],l.sort(iD),l}function rD(e,r,t){if(e===r)return{pattern:e,count:[],digits:0};let n=nD(e,r),i=n.length,l="",a=0;for(let o=0;o<i;o++){let[s,f]=n[o];s===f?l+=s:s!=="0"||f!=="9"?l+=sD(s,f,t):a++}return a&&(l+=t.shorthand===!0?"\\d":"[0-9]"),{pattern:l,count:[a],digits:i}}function um(e,r,t,n){let i=tD(e,r),l=[],a=e,o;for(let s=0;s<i.length;s++){let f=i[s],c=rD(String(a),String(f),n),h="";if(!t.isPadded&&o&&o.pattern===c.pattern){o.count.length>1&&o.count.pop(),o.count.push(c.count[0]),o.string=o.pattern+fm(o.count),a=f+1;continue}t.isPadded&&(h=oD(f,t,n)),c.string=h+c.pattern+fm(c.count),l.push(c),a=f+1,o=c}return l}function Bu(e,r,t,n,i){let l=[];for(let a of e){let{string:o}=a;!n&&!lm(r,"string",o)&&l.push(t+o),n&&lm(r,"string",o)&&l.push(t+o)}return l}function nD(e,r){let t=[];for(let n=0;n<e.length;n++)t.push([e[n],r[n]]);return t}function iD(e,r){return e>r?1:r>e?-1:0}function lm(e,r,t){return e.some(n=>n[r]===t)}function cm(e,r){return Number(String(e).slice(0,-r)+"9".repeat(r))}function hm(e,r){return e-e%Math.pow(10,r)}function fm(e){let[r=0,t=""]=e;return t||r>1?`{${r+(t?","+t:"")}}`:""}function sD(e,r,t){return`[${e}${r-e===1?"":"-"}${r}]`}function pm(e){return/^-?(0+)\d/.test(e)}function oD(e,r,t){if(!r.isPadded)return e;let n=Math.abs(r.maxLen-String(e).length),i=t.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Hr.cache={};Hr.clearCache=()=>Hr.cache={};dm.exports=Hr});var Mu=ye((IH,Sm)=>{"use strict";var aD=require("util"),bm=mm(),ym=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),uD=e=>r=>e===!0?Number(r):String(r),Iu=e=>typeof e=="number"||typeof e=="string"&&e!=="",wi=e=>Number.isInteger(+e),Lu=e=>{let r=`${e}`,t=-1;if(r[0]==="-"&&(r=r.slice(1)),r==="0")return!1;for(;r[++t]==="0";);return t>0},lD=(e,r,t)=>typeof e=="string"||typeof r=="string"?!0:t.stringify===!0,cD=(e,r,t)=>{if(r>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?r-1:r,"0")}return t===!1?String(e):e},gm=(e,r)=>{let t=e[0]==="-"?"-":"";for(t&&(e=e.slice(1),r--);e.length<r;)e="0"+e;return t?"-"+e:e},hD=(e,r)=>{e.negatives.sort((a,o)=>a<o?-1:a>o?1:0),e.positives.sort((a,o)=>a<o?-1:a>o?1:0);let t=r.capture?"":"?:",n="",i="",l;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${t}${e.negatives.join("|")})`),n&&i?l=`${n}|${i}`:l=n||i,r.wrap?`(${t}${l})`:l},vm=(e,r,t,n)=>{if(t)return bm(e,r,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===r)return i;let l=String.fromCharCode(r);return`[${i}-${l}]`},_m=(e,r,t)=>{if(Array.isArray(e)){let n=t.wrap===!0,i=t.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return bm(e,r,t)},wm=(...e)=>new RangeError("Invalid range arguments: "+aD.inspect(...e)),Em=(e,r,t)=>{if(t.strictRanges===!0)throw wm([e,r]);return[]},fD=(e,r)=>{if(r.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},pD=(e,r,t=1,n={})=>{let i=Number(e),l=Number(r);if(!Number.isInteger(i)||!Number.isInteger(l)){if(n.strictRanges===!0)throw wm([e,r]);return[]}i===0&&(i=0),l===0&&(l=0);let a=i>l,o=String(e),s=String(r),f=String(t);t=Math.max(Math.abs(t),1);let c=Lu(o)||Lu(s)||Lu(f),h=c?Math.max(o.length,s.length,f.length):0,u=c===!1&&lD(e,r,n)===!1,d=n.transform||uD(u);if(n.toRegex&&t===1)return vm(gm(e,h),gm(r,h),!0,n);let p={negatives:[],positives:[]},y=g=>p[g<0?"negatives":"positives"].push(Math.abs(g)),b=[],_=0;for(;a?i>=l:i<=l;)n.toRegex===!0&&t>1?y(i):b.push(cD(d(i,_),h,u)),i=a?i-t:i+t,_++;return n.toRegex===!0?t>1?hD(p,n):_m(b,null,{wrap:!1,...n}):b},dD=(e,r,t=1,n={})=>{if(!wi(e)&&e.length>1||!wi(r)&&r.length>1)return Em(e,r,n);let i=n.transform||(u=>String.fromCharCode(u)),l=`${e}`.charCodeAt(0),a=`${r}`.charCodeAt(0),o=l>a,s=Math.min(l,a),f=Math.max(l,a);if(n.toRegex&&t===1)return vm(s,f,!1,n);let c=[],h=0;for(;o?l>=a:l<=a;)c.push(i(l,h)),l=o?l-t:l+t,h++;return n.toRegex===!0?_m(c,null,{wrap:!1,options:n}):c},Ms=(e,r,t,n={})=>{if(r==null&&Iu(e))return[e];if(!Iu(e)||!Iu(r))return Em(e,r,n);if(typeof t=="function")return Ms(e,r,1,{transform:t});if(ym(t))return Ms(e,r,0,t);let i={...n};return i.capture===!0&&(i.wrap=!0),t=t||i.step||1,wi(t)?wi(e)&&wi(r)?pD(e,r,t,i):dD(e,r,Math.max(Math.abs(t),1),i):t!=null&&!ym(t)?fD(t,i):Ms(e,r,1,t)};Sm.exports=Ms});var Cm=ye((LH,Am)=>{"use strict";var mD=Mu(),xm=Is(),yD=(e,r={})=>{let t=(n,i={})=>{let l=xm.isInvalidBrace(i),a=n.invalid===!0&&r.escapeInvalid===!0,o=l===!0||a===!0,s=r.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return s+n.value;if(n.type==="open")return o?s+n.value:"(";if(n.type==="close")return o?s+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":o?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let c=xm.reduce(n.nodes),h=mD(...c,{...r,wrap:!1,toRegex:!0});if(h.length!==0)return c.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let c of n.nodes)f+=t(c,n);return f};return t(e)};Am.exports=yD});var Rm=ye((MH,Dm)=>{"use strict";var gD=Mu(),km=Ls(),wn=Is(),qr=(e="",r="",t=!1)=>{let n=[];if(e=[].concat(e),r=[].concat(r),!r.length)return e;if(!e.length)return t?wn.flatten(r).map(i=>`{${i}}`):r;for(let i of e)if(Array.isArray(i))for(let l of i)n.push(qr(l,r,t));else for(let l of r)t===!0&&typeof l=="string"&&(l=`{${l}}`),n.push(Array.isArray(l)?qr(i,l,t):i+l);return wn.flatten(n)},bD=(e,r={})=>{let t=r.rangeLimit===void 0?1e3:r.rangeLimit,n=(i,l={})=>{i.queue=[];let a=l,o=l.queue;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,o=a.queue;if(i.invalid||i.dollar){o.push(qr(o.pop(),km(i,r)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){o.push(qr(o.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=wn.reduce(i.nodes);if(wn.exceedsLimit(...h,r.step,t))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let u=gD(...h,r);u.length===0&&(u=km(i,r)),o.push(qr(o.pop(),u)),i.nodes=[];return}let s=wn.encloseBrace(i),f=i.queue,c=i;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,f=c.queue;for(let h=0;h<i.nodes.length;h++){let u=i.nodes[h];if(u.type==="comma"&&i.type==="brace"){h===1&&f.push(""),f.push("");continue}if(u.type==="close"){o.push(qr(o.pop(),f,s));continue}if(u.value&&u.type!=="open"){f.push(qr(f.pop(),u.value));continue}u.nodes&&n(u,i)}return f};return wn.flatten(n(e))};Dm.exports=bD});var Tm=ye((NH,Om)=>{"use strict";Om.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
7
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Lm=ye((jH,Im)=>{"use strict";var vD=Ls(),{MAX_LENGTH:Fm,CHAR_BACKSLASH:Nu,CHAR_BACKTICK:_D,CHAR_COMMA:wD,CHAR_DOT:ED,CHAR_LEFT_PARENTHESES:SD,CHAR_RIGHT_PARENTHESES:xD,CHAR_LEFT_CURLY_BRACE:AD,CHAR_RIGHT_CURLY_BRACE:CD,CHAR_LEFT_SQUARE_BRACKET:Pm,CHAR_RIGHT_SQUARE_BRACKET:Bm,CHAR_DOUBLE_QUOTE:kD,CHAR_SINGLE_QUOTE:DD,CHAR_NO_BREAK_SPACE:RD,CHAR_ZERO_WIDTH_NOBREAK_SPACE:OD}=Tm(),TD=(e,r={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let t=r||{},n=typeof t.maxLength=="number"?Math.min(Fm,t.maxLength):Fm;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},l=[i],a=i,o=i,s=0,f=e.length,c=0,h=0,u,d={},p=()=>e[c++],y=b=>{if(b.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&b.type==="text"){o.value+=b.value;return}return a.nodes.push(b),b.parent=a,b.prev=o,o=b,b};for(y({type:"bos"});c<f;)if(a=l[l.length-1],u=p(),!(u===OD||u===RD)){if(u===Nu){y({type:"text",value:(r.keepEscaping?u:"")+p()});continue}if(u===Bm){y({type:"text",value:"\\"+u});continue}if(u===Pm){s++;let b=!0,_;for(;c<f&&(_=p());){if(u+=_,_===Pm){s++;continue}if(_===Nu){u+=p();continue}if(_===Bm&&(s--,s===0))break}y({type:"text",value:u});continue}if(u===SD){a=y({type:"paren",nodes:[]}),l.push(a),y({type:"text",value:u});continue}if(u===xD){if(a.type!=="paren"){y({type:"text",value:u});continue}a=l.pop(),y({type:"text",value:u}),a=l[l.length-1];continue}if(u===kD||u===DD||u===_D){let b=u,_;for(r.keepQuotes!==!0&&(u="");c<f&&(_=p());){if(_===Nu){u+=_+p();continue}if(_===b){r.keepQuotes===!0&&(u+=_);break}u+=_}y({type:"text",value:u});continue}if(u===AD){h++;let _={type:"brace",open:!0,close:!1,dollar:o.value&&o.value.slice(-1)==="$"||a.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};a=y(_),l.push(a),y({type:"open",value:u});continue}if(u===CD){if(a.type!=="brace"){y({type:"text",value:u});continue}let b="close";a=l.pop(),a.close=!0,y({type:b,value:u}),h--,a=l[l.length-1];continue}if(u===wD&&h>0){if(a.ranges>0){a.ranges=0;let b=a.nodes.shift();a.nodes=[b,{type:"text",value:vD(a)}]}y({type:"comma",value:u}),a.commas++;continue}if(u===ED&&h>0&&a.commas===0){let b=a.nodes;if(h===0||b.length===0){y({type:"text",value:u});continue}if(o.type==="dot"){if(a.range=[],o.value+=u,o.type="range",a.nodes.length!==3&&a.nodes.length!==5){a.invalid=!0,a.ranges=0,o.type="text";continue}a.ranges++,a.args=[];continue}if(o.type==="range"){b.pop();let _=b[b.length-1];_.value+=o.value+u,o=_,a.ranges--;continue}y({type:"dot",value:u});continue}y({type:"text",value:u})}do if(a=l.pop(),a.type!=="root"){a.nodes.forEach(g=>{g.nodes||(g.type==="open"&&(g.isOpen=!0),g.type==="close"&&(g.isClose=!0),g.nodes||(g.type="text"),g.invalid=!0)});let b=l[l.length-1],_=b.nodes.indexOf(a);b.nodes.splice(_,1,...a.nodes)}while(l.length>0);return y({type:"eos"}),i};Im.exports=TD});var jm=ye(($H,Nm)=>{"use strict";var Mm=Ls(),FD=Cm(),PD=Rm(),BD=Lm(),kt=(e,r={})=>{let t=[];if(Array.isArray(e))for(let n of e){let i=kt.create(n,r);Array.isArray(i)?t.push(...i):t.push(i)}else t=[].concat(kt.create(e,r));return r&&r.expand===!0&&r.nodupes===!0&&(t=[...new Set(t)]),t};kt.parse=(e,r={})=>BD(e,r);kt.stringify=(e,r={})=>Mm(typeof e=="string"?kt.parse(e,r):e,r);kt.compile=(e,r={})=>(typeof e=="string"&&(e=kt.parse(e,r)),FD(e,r));kt.expand=(e,r={})=>{typeof e=="string"&&(e=kt.parse(e,r));let t=PD(e,r);return r.noempty===!0&&(t=t.filter(Boolean)),r.nodupes===!0&&(t=[...new Set(t)]),t};kt.create=(e,r={})=>e===""||e.length<3?[e]:r.expand!==!0?kt.compile(e,r):kt.expand(e,r);Nm.exports=kt});var Ei=ye((HH,Gm)=>{"use strict";var ID=require("path"),Ut="\\\\/",$m=`[^${Ut}]`,sr="\\.",LD="\\+",MD="\\?",Ns="\\/",ND="(?=.)",Hm="[^/]",ju=`(?:${Ns}|$)`,qm=`(?:^|${Ns})`,$u=`${sr}{1,2}${ju}`,jD=`(?!${sr})`,$D=`(?!${qm}${$u})`,HD=`(?!${sr}{0,1}${ju})`,qD=`(?!${$u})`,UD=`[^.${Ns}]`,GD=`${Hm}*?`,Um={DOT_LITERAL:sr,PLUS_LITERAL:LD,QMARK_LITERAL:MD,SLASH_LITERAL:Ns,ONE_CHAR:ND,QMARK:Hm,END_ANCHOR:ju,DOTS_SLASH:$u,NO_DOT:jD,NO_DOTS:$D,NO_DOT_SLASH:HD,NO_DOTS_SLASH:qD,QMARK_NO_DOT:UD,STAR:GD,START_ANCHOR:qm},WD={...Um,SLASH_LITERAL:`[${Ut}]`,QMARK:$m,STAR:`${$m}*?`,DOTS_SLASH:`${sr}{1,2}(?:[${Ut}]|$)`,NO_DOT:`(?!${sr})`,NO_DOTS:`(?!(?:^|[${Ut}])${sr}{1,2}(?:[${Ut}]|$))`,NO_DOT_SLASH:`(?!${sr}{0,1}(?:[${Ut}]|$))`,NO_DOTS_SLASH:`(?!${sr}{1,2}(?:[${Ut}]|$))`,QMARK_NO_DOT:`[^.${Ut}]`,START_ANCHOR:`(?:^|[${Ut}])`,END_ANCHOR:`(?:[${Ut}]|$)`},zD={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Gm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:zD,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:ID.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?WD:Um}}});var Si=ye(wt=>{"use strict";var VD=require("path"),KD=process.platform==="win32",{REGEX_BACKSLASH:YD,REGEX_REMOVE_BACKSLASH:XD,REGEX_SPECIAL_CHARS:ZD,REGEX_SPECIAL_CHARS_GLOBAL:QD}=Ei();wt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);wt.hasRegexChars=e=>ZD.test(e);wt.isRegexChar=e=>e.length===1&&wt.hasRegexChars(e);wt.escapeRegex=e=>e.replace(QD,"\\$1");wt.toPosixSlashes=e=>e.replace(YD,"/");wt.removeBackslashes=e=>e.replace(XD,r=>r==="\\"?"":r);wt.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};wt.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:KD===!0||VD.sep==="\\";wt.escapeLast=(e,r,t)=>{let n=e.lastIndexOf(r,t);return n===-1?e:e[n-1]==="\\"?wt.escapeLast(e,r,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};wt.removePrefix=(e,r={})=>{let t=e;return t.startsWith("./")&&(t=t.slice(2),r.prefix="./"),t};wt.wrapOutput=(e,r={},t={})=>{let n=t.contains?"":"^",i=t.contains?"":"$",l=`${n}(?:${e})${i}`;return r.negated===!0&&(l=`(?:^(?!${l}).*$)`),l}});var Qm=ye((UH,Zm)=>{"use strict";var Wm=Si(),{CHAR_ASTERISK:Hu,CHAR_AT:JD,CHAR_BACKWARD_SLASH:xi,CHAR_COMMA:eR,CHAR_DOT:qu,CHAR_EXCLAMATION_MARK:Uu,CHAR_FORWARD_SLASH:Xm,CHAR_LEFT_CURLY_BRACE:Gu,CHAR_LEFT_PARENTHESES:Wu,CHAR_LEFT_SQUARE_BRACKET:tR,CHAR_PLUS:rR,CHAR_QUESTION_MARK:zm,CHAR_RIGHT_CURLY_BRACE:nR,CHAR_RIGHT_PARENTHESES:Vm,CHAR_RIGHT_SQUARE_BRACKET:iR}=Ei(),Km=e=>e===Xm||e===xi,Ym=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},sR=(e,r)=>{let t=r||{},n=e.length-1,i=t.parts===!0||t.scanToEnd===!0,l=[],a=[],o=[],s=e,f=-1,c=0,h=0,u=!1,d=!1,p=!1,y=!1,b=!1,_=!1,g=!1,S=!1,E=!1,v=!1,m=0,w,x,A={value:"",depth:0,isGlob:!1},R=()=>f>=n,B=()=>s.charCodeAt(f+1),P=()=>(w=x,s.charCodeAt(++f));for(;f<n;){x=P();let L;if(x===xi){g=A.backslashes=!0,x=P(),x===Gu&&(_=!0);continue}if(_===!0||x===Gu){for(m++;R()!==!0&&(x=P());){if(x===xi){g=A.backslashes=!0,P();continue}if(x===Gu){m++;continue}if(_!==!0&&x===qu&&(x=P())===qu){if(u=A.isBrace=!0,p=A.isGlob=!0,v=!0,i===!0)continue;break}if(_!==!0&&x===eR){if(u=A.isBrace=!0,p=A.isGlob=!0,v=!0,i===!0)continue;break}if(x===nR&&(m--,m===0)){_=!1,u=A.isBrace=!0,v=!0;break}}if(i===!0)continue;break}if(x===Xm){if(l.push(f),a.push(A),A={value:"",depth:0,isGlob:!1},v===!0)continue;if(w===qu&&f===c+1){c+=2;continue}h=f+1;continue}if(t.noext!==!0&&(x===rR||x===JD||x===Hu||x===zm||x===Uu)===!0&&B()===Wu){if(p=A.isGlob=!0,y=A.isExtglob=!0,v=!0,x===Uu&&f===c&&(E=!0),i===!0){for(;R()!==!0&&(x=P());){if(x===xi){g=A.backslashes=!0,x=P();continue}if(x===Vm){p=A.isGlob=!0,v=!0;break}}continue}break}if(x===Hu){if(w===Hu&&(b=A.isGlobstar=!0),p=A.isGlob=!0,v=!0,i===!0)continue;break}if(x===zm){if(p=A.isGlob=!0,v=!0,i===!0)continue;break}if(x===tR){for(;R()!==!0&&(L=P());){if(L===xi){g=A.backslashes=!0,P();continue}if(L===iR){d=A.isBracket=!0,p=A.isGlob=!0,v=!0;break}}if(i===!0)continue;break}if(t.nonegate!==!0&&x===Uu&&f===c){S=A.negated=!0,c++;continue}if(t.noparen!==!0&&x===Wu){if(p=A.isGlob=!0,i===!0){for(;R()!==!0&&(x=P());){if(x===Wu){g=A.backslashes=!0,x=P();continue}if(x===Vm){v=!0;break}}continue}break}if(p===!0){if(v=!0,i===!0)continue;break}}t.noext===!0&&(y=!1,p=!1);let O=s,D="",k="";c>0&&(D=s.slice(0,c),s=s.slice(c),h-=c),O&&p===!0&&h>0?(O=s.slice(0,h),k=s.slice(h)):p===!0?(O="",k=s):O=s,O&&O!==""&&O!=="/"&&O!==s&&Km(O.charCodeAt(O.length-1))&&(O=O.slice(0,-1)),t.unescape===!0&&(k&&(k=Wm.removeBackslashes(k)),O&&g===!0&&(O=Wm.removeBackslashes(O)));let M={prefix:D,input:e,start:c,base:O,glob:k,isBrace:u,isBracket:d,isGlob:p,isExtglob:y,isGlobstar:b,negated:S,negatedExtglob:E};if(t.tokens===!0&&(M.maxDepth=0,Km(x)||a.push(A),M.tokens=a),t.parts===!0||t.tokens===!0){let L;for(let U=0;U<l.length;U++){let W=L?L+1:c,se=l[U],I=e.slice(W,se);t.tokens&&(U===0&&c!==0?(a[U].isPrefix=!0,a[U].value=D):a[U].value=I,Ym(a[U]),M.maxDepth+=a[U].depth),(U!==0||I!=="")&&o.push(I),L=se}if(L&&L+1<e.length){let U=e.slice(L+1);o.push(U),t.tokens&&(a[a.length-1].value=U,Ym(a[a.length-1]),M.maxDepth+=a[a.length-1].depth)}M.slashes=l,M.parts=o}return M};Zm.exports=sR});var t1=ye((GH,e1)=>{"use strict";var js=Ei(),Dt=Si(),{MAX_LENGTH:$s,POSIX_REGEX_SOURCE:oR,REGEX_NON_SPECIAL_CHARS:aR,REGEX_SPECIAL_CHARS_BACKREF:uR,REPLACEMENTS:Jm}=js,lR=(e,r)=>{if(typeof r.expandRange=="function")return r.expandRange(...e,r);e.sort();let t=`[${e.join("-")}]`;try{new RegExp(t)}catch{return e.map(i=>Dt.escapeRegex(i)).join("..")}return t},En=(e,r)=>`Missing ${e}: "${r}" - use "\\\\${r}" to match literal characters`,zu=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Jm[e]||e;let t={...r},n=typeof t.maxLength=="number"?Math.min($s,t.maxLength):$s,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let l={type:"bos",value:"",output:t.prepend||""},a=[l],o=t.capture?"":"?:",s=Dt.isWindows(r),f=js.globChars(s),c=js.extglobChars(f),{DOT_LITERAL:h,PLUS_LITERAL:u,SLASH_LITERAL:d,ONE_CHAR:p,DOTS_SLASH:y,NO_DOT:b,NO_DOT_SLASH:_,NO_DOTS_SLASH:g,QMARK:S,QMARK_NO_DOT:E,STAR:v,START_ANCHOR:m}=f,w=Q=>`(${o}(?:(?!${m}${Q.dot?y:h}).)*?)`,x=t.dot?"":b,A=t.dot?S:E,R=t.bash===!0?w(t):v;t.capture&&(R=`(${R})`),typeof t.noext=="boolean"&&(t.noextglob=t.noext);let B={input:e,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:a};e=Dt.removePrefix(e,B),i=e.length;let P=[],O=[],D=[],k=l,M,L=()=>B.index===i-1,U=B.peek=(Q=1)=>e[B.index+Q],W=B.advance=()=>e[++B.index]||"",se=()=>e.slice(B.index+1),I=(Q="",le=0)=>{B.consumed+=Q,B.index+=le},N=Q=>{B.output+=Q.output!=null?Q.output:Q.value,I(Q.value)},F=()=>{let Q=1;for(;U()==="!"&&(U(2)!=="("||U(3)==="?");)W(),B.start++,Q++;return Q%2===0?!1:(B.negated=!0,B.start++,!0)},V=Q=>{B[Q]++,D.push(Q)},G=Q=>{B[Q]--,D.pop()},J=Q=>{if(k.type==="globstar"){let le=B.braces>0&&(Q.type==="comma"||Q.type==="brace"),ue=Q.extglob===!0||P.length&&(Q.type==="pipe"||Q.type==="paren");Q.type!=="slash"&&Q.type!=="paren"&&!le&&!ue&&(B.output=B.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=R,B.output+=k.output)}if(P.length&&Q.type!=="paren"&&(P[P.length-1].inner+=Q.value),(Q.value||Q.output)&&N(Q),k&&k.type==="text"&&Q.type==="text"){k.value+=Q.value,k.output=(k.output||"")+Q.value;return}Q.prev=k,a.push(Q),k=Q},j=(Q,le)=>{let ue={...c[le],conditions:1,inner:""};ue.prev=k,ue.parens=B.parens,ue.output=B.output;let Y=(t.capture?"(":"")+ue.open;V("parens"),J({type:Q,value:le,output:B.output?"":p}),J({type:"paren",extglob:!0,value:W(),output:Y}),P.push(ue)},z=Q=>{let le=Q.close+(t.capture?")":""),ue;if(Q.type==="negate"){let Y=R;if(Q.inner&&Q.inner.length>1&&Q.inner.includes("/")&&(Y=w(t)),(Y!==R||L()||/^\)+$/.test(se()))&&(le=Q.close=`)$))${Y}`),Q.inner.includes("*")&&(ue=se())&&/^\.[^\\/.]+$/.test(ue)){let ne=zu(ue,{...r,fastpaths:!1}).output;le=Q.close=`)${ne})${Y})`}Q.prev.type==="bos"&&(B.negatedExtglob=!0)}J({type:"paren",extglob:!0,value:M,output:le}),G("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let Q=!1,le=e.replace(uR,(ue,Y,ne,T,q,C)=>T==="\\"?(Q=!0,ue):T==="?"?Y?Y+T+(q?S.repeat(q.length):""):C===0?A+(q?S.repeat(q.length):""):S.repeat(ne.length):T==="."?h.repeat(ne.length):T==="*"?Y?Y+T+(q?R:""):R:Y?ue:`\\${ue}`);return Q===!0&&(t.unescape===!0?le=le.replace(/\\/g,""):le=le.replace(/\\+/g,ue=>ue.length%2===0?"\\\\":ue?"\\":"")),le===e&&t.contains===!0?(B.output=e,B):(B.output=Dt.wrapOutput(le,B,r),B)}for(;!L();){if(M=W(),M==="\0")continue;if(M==="\\"){let ue=U();if(ue==="/"&&t.bash!==!0||ue==="."||ue===";")continue;if(!ue){M+="\\",J({type:"text",value:M});continue}let Y=/^\\+/.exec(se()),ne=0;if(Y&&Y[0].length>2&&(ne=Y[0].length,B.index+=ne,ne%2!==0&&(M+="\\")),t.unescape===!0?M=W():M+=W(),B.brackets===0){J({type:"text",value:M});continue}}if(B.brackets>0&&(M!=="]"||k.value==="["||k.value==="[^")){if(t.posix!==!1&&M===":"){let ue=k.value.slice(1);if(ue.includes("[")&&(k.posix=!0,ue.includes(":"))){let Y=k.value.lastIndexOf("["),ne=k.value.slice(0,Y),T=k.value.slice(Y+2),q=oR[T];if(q){k.value=ne+q,B.backtrack=!0,W(),!l.output&&a.indexOf(k)===1&&(l.output=p);continue}}}(M==="["&&U()!==":"||M==="-"&&U()==="]")&&(M=`\\${M}`),M==="]"&&(k.value==="["||k.value==="[^")&&(M=`\\${M}`),t.posix===!0&&M==="!"&&k.value==="["&&(M="^"),k.value+=M,N({value:M});continue}if(B.quotes===1&&M!=='"'){M=Dt.escapeRegex(M),k.value+=M,N({value:M});continue}if(M==='"'){B.quotes=B.quotes===1?0:1,t.keepQuotes===!0&&J({type:"text",value:M});continue}if(M==="("){V("parens"),J({type:"paren",value:M});continue}if(M===")"){if(B.parens===0&&t.strictBrackets===!0)throw new SyntaxError(En("opening","("));let ue=P[P.length-1];if(ue&&B.parens===ue.parens+1){z(P.pop());continue}J({type:"paren",value:M,output:B.parens?")":"\\)"}),G("parens");continue}if(M==="["){if(t.nobracket===!0||!se().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw new SyntaxError(En("closing","]"));M=`\\${M}`}else V("brackets");J({type:"bracket",value:M});continue}if(M==="]"){if(t.nobracket===!0||k&&k.type==="bracket"&&k.value.length===1){J({type:"text",value:M,output:`\\${M}`});continue}if(B.brackets===0){if(t.strictBrackets===!0)throw new SyntaxError(En("opening","["));J({type:"text",value:M,output:`\\${M}`});continue}G("brackets");let ue=k.value.slice(1);if(k.posix!==!0&&ue[0]==="^"&&!ue.includes("/")&&(M=`/${M}`),k.value+=M,N({value:M}),t.literalBrackets===!1||Dt.hasRegexChars(ue))continue;let Y=Dt.escapeRegex(k.value);if(B.output=B.output.slice(0,-k.value.length),t.literalBrackets===!0){B.output+=Y,k.value=Y;continue}k.value=`(${o}${Y}|${k.value})`,B.output+=k.value;continue}if(M==="{"&&t.nobrace!==!0){V("braces");let ue={type:"brace",value:M,output:"(",outputIndex:B.output.length,tokensIndex:B.tokens.length};O.push(ue),J(ue);continue}if(M==="}"){let ue=O[O.length-1];if(t.nobrace===!0||!ue){J({type:"text",value:M,output:M});continue}let Y=")";if(ue.dots===!0){let ne=a.slice(),T=[];for(let q=ne.length-1;q>=0&&(a.pop(),ne[q].type!=="brace");q--)ne[q].type!=="dots"&&T.unshift(ne[q].value);Y=lR(T,t),B.backtrack=!0}if(ue.comma!==!0&&ue.dots!==!0){let ne=B.output.slice(0,ue.outputIndex),T=B.tokens.slice(ue.tokensIndex);ue.value=ue.output="\\{",M=Y="\\}",B.output=ne;for(let q of T)B.output+=q.output||q.value}J({type:"brace",value:M,output:Y}),G("braces"),O.pop();continue}if(M==="|"){P.length>0&&P[P.length-1].conditions++,J({type:"text",value:M});continue}if(M===","){let ue=M,Y=O[O.length-1];Y&&D[D.length-1]==="braces"&&(Y.comma=!0,ue="|"),J({type:"comma",value:M,output:ue});continue}if(M==="/"){if(k.type==="dot"&&B.index===B.start+1){B.start=B.index+1,B.consumed="",B.output="",a.pop(),k=l;continue}J({type:"slash",value:M,output:d});continue}if(M==="."){if(B.braces>0&&k.type==="dot"){k.value==="."&&(k.output=h);let ue=O[O.length-1];k.type="dots",k.output+=M,k.value+=M,ue.dots=!0;continue}if(B.braces+B.parens===0&&k.type!=="bos"&&k.type!=="slash"){J({type:"text",value:M,output:h});continue}J({type:"dot",value:M,output:h});continue}if(M==="?"){if(!(k&&k.value==="(")&&t.noextglob!==!0&&U()==="("&&U(2)!=="?"){j("qmark",M);continue}if(k&&k.type==="paren"){let Y=U(),ne=M;if(Y==="<"&&!Dt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(k.value==="("&&!/[!=<:]/.test(Y)||Y==="<"&&!/<([!=]|\w+>)/.test(se()))&&(ne=`\\${M}`),J({type:"text",value:M,output:ne});continue}if(t.dot!==!0&&(k.type==="slash"||k.type==="bos")){J({type:"qmark",value:M,output:E});continue}J({type:"qmark",value:M,output:S});continue}if(M==="!"){if(t.noextglob!==!0&&U()==="("&&(U(2)!=="?"||!/[!=<:]/.test(U(3)))){j("negate",M);continue}if(t.nonegate!==!0&&B.index===0){F();continue}}if(M==="+"){if(t.noextglob!==!0&&U()==="("&&U(2)!=="?"){j("plus",M);continue}if(k&&k.value==="("||t.regex===!1){J({type:"plus",value:M,output:u});continue}if(k&&(k.type==="bracket"||k.type==="paren"||k.type==="brace")||B.parens>0){J({type:"plus",value:M});continue}J({type:"plus",value:u});continue}if(M==="@"){if(t.noextglob!==!0&&U()==="("&&U(2)!=="?"){J({type:"at",extglob:!0,value:M,output:""});continue}J({type:"text",value:M});continue}if(M!=="*"){(M==="$"||M==="^")&&(M=`\\${M}`);let ue=aR.exec(se());ue&&(M+=ue[0],B.index+=ue[0].length),J({type:"text",value:M});continue}if(k&&(k.type==="globstar"||k.star===!0)){k.type="star",k.star=!0,k.value+=M,k.output=R,B.backtrack=!0,B.globstar=!0,I(M);continue}let Q=se();if(t.noextglob!==!0&&/^\([^?]/.test(Q)){j("star",M);continue}if(k.type==="star"){if(t.noglobstar===!0){I(M);continue}let ue=k.prev,Y=ue.prev,ne=ue.type==="slash"||ue.type==="bos",T=Y&&(Y.type==="star"||Y.type==="globstar");if(t.bash===!0&&(!ne||Q[0]&&Q[0]!=="/")){J({type:"star",value:M,output:""});continue}let q=B.braces>0&&(ue.type==="comma"||ue.type==="brace"),C=P.length&&(ue.type==="pipe"||ue.type==="paren");if(!ne&&ue.type!=="paren"&&!q&&!C){J({type:"star",value:M,output:""});continue}for(;Q.slice(0,3)==="/**";){let H=e[B.index+4];if(H&&H!=="/")break;Q=Q.slice(3),I("/**",3)}if(ue.type==="bos"&&L()){k.type="globstar",k.value+=M,k.output=w(t),B.output=k.output,B.globstar=!0,I(M);continue}if(ue.type==="slash"&&ue.prev.type!=="bos"&&!T&&L()){B.output=B.output.slice(0,-(ue.output+k.output).length),ue.output=`(?:${ue.output}`,k.type="globstar",k.output=w(t)+(t.strictSlashes?")":"|$)"),k.value+=M,B.globstar=!0,B.output+=ue.output+k.output,I(M);continue}if(ue.type==="slash"&&ue.prev.type!=="bos"&&Q[0]==="/"){let H=Q[1]!==void 0?"|$":"";B.output=B.output.slice(0,-(ue.output+k.output).length),ue.output=`(?:${ue.output}`,k.type="globstar",k.output=`${w(t)}${d}|${d}${H})`,k.value+=M,B.output+=ue.output+k.output,B.globstar=!0,I(M+W()),J({type:"slash",value:"/",output:""});continue}if(ue.type==="bos"&&Q[0]==="/"){k.type="globstar",k.value+=M,k.output=`(?:^|${d}|${w(t)}${d})`,B.output=k.output,B.globstar=!0,I(M+W()),J({type:"slash",value:"/",output:""});continue}B.output=B.output.slice(0,-k.output.length),k.type="globstar",k.output=w(t),k.value+=M,B.output+=k.output,B.globstar=!0,I(M);continue}let le={type:"star",value:M,output:R};if(t.bash===!0){le.output=".*?",(k.type==="bos"||k.type==="slash")&&(le.output=x+le.output),J(le);continue}if(k&&(k.type==="bracket"||k.type==="paren")&&t.regex===!0){le.output=M,J(le);continue}(B.index===B.start||k.type==="slash"||k.type==="dot")&&(k.type==="dot"?(B.output+=_,k.output+=_):t.dot===!0?(B.output+=g,k.output+=g):(B.output+=x,k.output+=x),U()!=="*"&&(B.output+=p,k.output+=p)),J(le)}for(;B.brackets>0;){if(t.strictBrackets===!0)throw new SyntaxError(En("closing","]"));B.output=Dt.escapeLast(B.output,"["),G("brackets")}for(;B.parens>0;){if(t.strictBrackets===!0)throw new SyntaxError(En("closing",")"));B.output=Dt.escapeLast(B.output,"("),G("parens")}for(;B.braces>0;){if(t.strictBrackets===!0)throw new SyntaxError(En("closing","}"));B.output=Dt.escapeLast(B.output,"{"),G("braces")}if(t.strictSlashes!==!0&&(k.type==="star"||k.type==="bracket")&&J({type:"maybe_slash",value:"",output:`${d}?`}),B.backtrack===!0){B.output="";for(let Q of B.tokens)B.output+=Q.output!=null?Q.output:Q.value,Q.suffix&&(B.output+=Q.suffix)}return B};zu.fastpaths=(e,r)=>{let t={...r},n=typeof t.maxLength=="number"?Math.min($s,t.maxLength):$s,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=Jm[e]||e;let l=Dt.isWindows(r),{DOT_LITERAL:a,SLASH_LITERAL:o,ONE_CHAR:s,DOTS_SLASH:f,NO_DOT:c,NO_DOTS:h,NO_DOTS_SLASH:u,STAR:d,START_ANCHOR:p}=js.globChars(l),y=t.dot?h:c,b=t.dot?u:c,_=t.capture?"":"?:",g={negated:!1,prefix:""},S=t.bash===!0?".*?":d;t.capture&&(S=`(${S})`);let E=x=>x.noglobstar===!0?S:`(${_}(?:(?!${p}${x.dot?f:a}).)*?)`,v=x=>{switch(x){case"*":return`${y}${s}${S}`;case".*":return`${a}${s}${S}`;case"*.*":return`${y}${S}${a}${s}${S}`;case"*/*":return`${y}${S}${o}${s}${b}${S}`;case"**":return y+E(t);case"**/*":return`(?:${y}${E(t)}${o})?${b}${s}${S}`;case"**/*.*":return`(?:${y}${E(t)}${o})?${b}${S}${a}${s}${S}`;case"**/.*":return`(?:${y}${E(t)}${o})?${a}${s}${S}`;default:{let A=/^(.*?)\.(\w+)$/.exec(x);if(!A)return;let R=v(A[1]);return R?R+a+A[2]:void 0}}},m=Dt.removePrefix(e,g),w=v(m);return w&&t.strictSlashes!==!0&&(w+=`${o}?`),w};e1.exports=zu});var n1=ye((WH,r1)=>{"use strict";var cR=require("path"),hR=Qm(),Vu=t1(),Ku=Si(),fR=Ei(),pR=e=>e&&typeof e=="object"&&!Array.isArray(e),Xe=(e,r,t=!1)=>{if(Array.isArray(e)){let c=e.map(u=>Xe(u,r,t));return u=>{for(let d of c){let p=d(u);if(p)return p}return!1}}let n=pR(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=r||{},l=Ku.isWindows(r),a=n?Xe.compileRe(e,r):Xe.makeRe(e,r,!1,!0),o=a.state;delete a.state;let s=()=>!1;if(i.ignore){let c={...r,ignore:null,onMatch:null,onResult:null};s=Xe(i.ignore,c,t)}let f=(c,h=!1)=>{let{isMatch:u,match:d,output:p}=Xe.test(c,a,r,{glob:e,posix:l}),y={glob:e,state:o,regex:a,posix:l,input:c,output:p,match:d,isMatch:u};return typeof i.onResult=="function"&&i.onResult(y),u===!1?(y.isMatch=!1,h?y:!1):s(c)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),h?y:!0)};return t&&(f.state=o),f};Xe.test=(e,r,t,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let l=t||{},a=l.format||(i?Ku.toPosixSlashes:null),o=e===n,s=o&&a?a(e):e;return o===!1&&(s=a?a(e):e,o=s===n),(o===!1||l.capture===!0)&&(l.matchBase===!0||l.basename===!0?o=Xe.matchBase(e,r,t,i):o=r.exec(s)),{isMatch:!!o,match:o,output:s}};Xe.matchBase=(e,r,t,n=Ku.isWindows(t))=>(r instanceof RegExp?r:Xe.makeRe(r,t)).test(cR.basename(e));Xe.isMatch=(e,r,t)=>Xe(r,t)(e);Xe.parse=(e,r)=>Array.isArray(e)?e.map(t=>Xe.parse(t,r)):Vu(e,{...r,fastpaths:!1});Xe.scan=(e,r)=>hR(e,r);Xe.compileRe=(e,r,t=!1,n=!1)=>{if(t===!0)return e.output;let i=r||{},l=i.contains?"":"^",a=i.contains?"":"$",o=`${l}(?:${e.output})${a}`;e&&e.negated===!0&&(o=`^(?!${o}).*$`);let s=Xe.toRegex(o,r);return n===!0&&(s.state=e),s};Xe.makeRe=(e,r={},t=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return r.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Vu.fastpaths(e,r)),i.output||(i=Vu(e,r)),Xe.compileRe(i,r,t,n)};Xe.toRegex=(e,r)=>{try{let t=r||{};return new RegExp(e,t.flags||(t.nocase?"i":""))}catch(t){if(r&&r.debug===!0)throw t;return/$^/}};Xe.constants=fR;r1.exports=Xe});var s1=ye((zH,i1)=>{"use strict";i1.exports=n1()});var c1=ye((VH,l1)=>{"use strict";var a1=require("util"),u1=jm(),Gt=s1(),Yu=Si(),o1=e=>e===""||e==="./",Ke=(e,r,t)=>{r=[].concat(r),e=[].concat(e);let n=new Set,i=new Set,l=new Set,a=0,o=c=>{l.add(c.output),t&&t.onResult&&t.onResult(c)};for(let c=0;c<r.length;c++){let h=Gt(String(r[c]),{...t,onResult:o},!0),u=h.state.negated||h.state.negatedExtglob;u&&a++;for(let d of e){let p=h(d,!0);(u?!p.isMatch:p.isMatch)&&(u?n.add(p.output):(n.delete(p.output),i.add(p.output)))}}let f=(a===r.length?[...l]:[...i]).filter(c=>!n.has(c));if(t&&f.length===0){if(t.failglob===!0)throw new Error(`No matches found for "${r.join(", ")}"`);if(t.nonull===!0||t.nullglob===!0)return t.unescape?r.map(c=>c.replace(/\\/g,"")):r}return f};Ke.match=Ke;Ke.matcher=(e,r)=>Gt(e,r);Ke.isMatch=(e,r,t)=>Gt(r,t)(e);Ke.any=Ke.isMatch;Ke.not=(e,r,t={})=>{r=[].concat(r).map(String);let n=new Set,i=[],l=o=>{t.onResult&&t.onResult(o),i.push(o.output)},a=new Set(Ke(e,r,{...t,onResult:l}));for(let o of i)a.has(o)||n.add(o);return[...n]};Ke.contains=(e,r,t)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${a1.inspect(e)}"`);if(Array.isArray(r))return r.some(n=>Ke.contains(e,n,t));if(typeof r=="string"){if(o1(e)||o1(r))return!1;if(e.includes(r)||e.startsWith("./")&&e.slice(2).includes(r))return!0}return Ke.isMatch(e,r,{...t,contains:!0})};Ke.matchKeys=(e,r,t)=>{if(!Yu.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=Ke(Object.keys(e),r,t),i={};for(let l of n)i[l]=e[l];return i};Ke.some=(e,r,t)=>{let n=[].concat(e);for(let i of[].concat(r)){let l=Gt(String(i),t);if(n.some(a=>l(a)))return!0}return!1};Ke.every=(e,r,t)=>{let n=[].concat(e);for(let i of[].concat(r)){let l=Gt(String(i),t);if(!n.every(a=>l(a)))return!1}return!0};Ke.all=(e,r,t)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${a1.inspect(e)}"`);return[].concat(r).every(n=>Gt(n,t)(e))};Ke.capture=(e,r,t)=>{let n=Yu.isWindows(t),l=Gt.makeRe(String(e),{...t,capture:!0}).exec(n?Yu.toPosixSlashes(r):r);if(l)return l.slice(1).map(a=>a===void 0?"":a)};Ke.makeRe=(...e)=>Gt.makeRe(...e);Ke.scan=(...e)=>Gt.scan(...e);Ke.parse=(e,r)=>{let t=[];for(let n of[].concat(e||[]))for(let i of u1(String(n),r))t.push(Gt.parse(i,r));return t};Ke.braces=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");return r&&r.nobrace===!0||!/\{.*\}/.test(e)?[e]:u1(e,r)};Ke.braceExpand=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");return Ke.braces(e,{...r,expand:!0})};l1.exports=Ke});var b1=ye(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.matchAny=Fe.convertPatternsToRe=Fe.makeRe=Fe.getPatternParts=Fe.expandBraceExpansion=Fe.expandPatternsWithBraceExpansion=Fe.isAffectDepthOfReadingPattern=Fe.endsWithSlashGlobStar=Fe.hasGlobStar=Fe.getBaseDirectory=Fe.isPatternRelatedToParentDirectory=Fe.getPatternsOutsideCurrentDirectory=Fe.getPatternsInsideCurrentDirectory=Fe.getPositivePatterns=Fe.getNegativePatterns=Fe.isPositivePattern=Fe.isNegativePattern=Fe.convertToNegativePattern=Fe.convertToPositivePattern=Fe.isDynamicPattern=Fe.isStaticPattern=void 0;var dR=require("path"),mR=rm(),Xu=c1(),h1="**",yR="\\",gR=/[*?]|^!/,bR=/\[[^[]*]/,vR=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,_R=/[!*+?@]\([^(]*\)/,wR=/,|\.\./;function f1(e,r={}){return!p1(e,r)}Fe.isStaticPattern=f1;function p1(e,r={}){return e===""?!1:!!(r.caseSensitiveMatch===!1||e.includes(yR)||gR.test(e)||bR.test(e)||vR.test(e)||r.extglob!==!1&&_R.test(e)||r.braceExpansion!==!1&&ER(e))}Fe.isDynamicPattern=p1;function ER(e){let r=e.indexOf("{");if(r===-1)return!1;let t=e.indexOf("}",r+1);if(t===-1)return!1;let n=e.slice(r,t);return wR.test(n)}function SR(e){return Hs(e)?e.slice(1):e}Fe.convertToPositivePattern=SR;function xR(e){return"!"+e}Fe.convertToNegativePattern=xR;function Hs(e){return e.startsWith("!")&&e[1]!=="("}Fe.isNegativePattern=Hs;function d1(e){return!Hs(e)}Fe.isPositivePattern=d1;function AR(e){return e.filter(Hs)}Fe.getNegativePatterns=AR;function CR(e){return e.filter(d1)}Fe.getPositivePatterns=CR;function kR(e){return e.filter(r=>!Zu(r))}Fe.getPatternsInsideCurrentDirectory=kR;function DR(e){return e.filter(Zu)}Fe.getPatternsOutsideCurrentDirectory=DR;function Zu(e){return e.startsWith("..")||e.startsWith("./..")}Fe.isPatternRelatedToParentDirectory=Zu;function RR(e){return mR(e,{flipBackslashes:!1})}Fe.getBaseDirectory=RR;function OR(e){return e.includes(h1)}Fe.hasGlobStar=OR;function m1(e){return e.endsWith("/"+h1)}Fe.endsWithSlashGlobStar=m1;function TR(e){let r=dR.basename(e);return m1(e)||f1(r)}Fe.isAffectDepthOfReadingPattern=TR;function FR(e){return e.reduce((r,t)=>r.concat(y1(t)),[])}Fe.expandPatternsWithBraceExpansion=FR;function y1(e){return Xu.braces(e,{expand:!0,nodupes:!0})}Fe.expandBraceExpansion=y1;function PR(e,r){let{parts:t}=Xu.scan(e,Object.assign(Object.assign({},r),{parts:!0}));return t.length===0&&(t=[e]),t[0].startsWith("/")&&(t[0]=t[0].slice(1),t.unshift("")),t}Fe.getPatternParts=PR;function g1(e,r){return Xu.makeRe(e,r)}Fe.makeRe=g1;function BR(e,r){return e.map(t=>g1(t,r))}Fe.convertPatternsToRe=BR;function IR(e,r){return r.some(t=>t.test(e))}Fe.matchAny=IR});var E1=ye((YH,w1)=>{"use strict";var LR=require("stream"),v1=LR.PassThrough,MR=Array.prototype.slice;w1.exports=NR;function NR(){let e=[],r=MR.call(arguments),t=!1,n=r[r.length-1];n&&!Array.isArray(n)&&n.pipe==null?r.pop():n={};let i=n.end!==!1,l=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=v1(n);function o(){for(let c=0,h=arguments.length;c<h;c++)e.push(_1(arguments[c],n));return s(),this}function s(){if(t)return;t=!0;let c=e.shift();if(!c){process.nextTick(f);return}Array.isArray(c)||(c=[c]);let h=c.length+1;function u(){--h>0||(t=!1,s())}function d(p){function y(){p.removeListener("merge2UnpipeEnd",y),p.removeListener("end",y),l&&p.removeListener("error",b),u()}function b(_){a.emit("error",_)}if(p._readableState.endEmitted)return u();p.on("merge2UnpipeEnd",y),p.on("end",y),l&&p.on("error",b),p.pipe(a,{end:!1}),p.resume()}for(let p=0;p<c.length;p++)d(c[p]);u()}function f(){t=!1,a.emit("queueDrain"),i&&a.end()}return a.setMaxListeners(0),a.add=o,a.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),r.length&&o.apply(null,r),a}function _1(e,r){if(Array.isArray(e))for(let t=0,n=e.length;t<n;t++)e[t]=_1(e[t],r);else{if(!e._readableState&&e.pipe&&(e=e.pipe(v1(r))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var x1=ye(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.merge=void 0;var jR=E1();function $R(e){let r=jR(e);return e.forEach(t=>{t.once("error",n=>r.emit("error",n))}),r.once("close",()=>S1(e)),r.once("end",()=>S1(e)),r}qs.merge=$R;function S1(e){e.forEach(r=>r.emit("close"))}});var A1=ye(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.isEmpty=Sn.isString=void 0;function HR(e){return typeof e=="string"}Sn.isString=HR;function qR(e){return e===""}Sn.isEmpty=qR});var or=ye(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.string=ct.stream=ct.pattern=ct.path=ct.fs=ct.errno=ct.array=void 0;var UR=z0();ct.array=UR;var GR=V0();ct.errno=GR;var WR=K0();ct.fs=WR;var zR=Y0();ct.path=zR;var VR=b1();ct.pattern=VR;var KR=x1();ct.stream=KR;var YR=A1();ct.string=YR});var D1=ye(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.convertPatternGroupToTask=ht.convertPatternGroupsToTasks=ht.groupPatternsByBaseDirectory=ht.getNegativePatternsAsPositive=ht.getPositivePatterns=ht.convertPatternsToTasks=ht.generate=void 0;var ar=or();function XR(e,r){let t=C1(e),n=k1(e,r.ignore),i=t.filter(s=>ar.pattern.isStaticPattern(s,r)),l=t.filter(s=>ar.pattern.isDynamicPattern(s,r)),a=Qu(i,n,!1),o=Qu(l,n,!0);return a.concat(o)}ht.generate=XR;function Qu(e,r,t){let n=[],i=ar.pattern.getPatternsOutsideCurrentDirectory(e),l=ar.pattern.getPatternsInsideCurrentDirectory(e),a=Ju(i),o=Ju(l);return n.push(...el(a,r,t)),"."in o?n.push(tl(".",l,r,t)):n.push(...el(o,r,t)),n}ht.convertPatternsToTasks=Qu;function C1(e){return ar.pattern.getPositivePatterns(e)}ht.getPositivePatterns=C1;function k1(e,r){return ar.pattern.getNegativePatterns(e).concat(r).map(ar.pattern.convertToPositivePattern)}ht.getNegativePatternsAsPositive=k1;function Ju(e){let r={};return e.reduce((t,n)=>{let i=ar.pattern.getBaseDirectory(n);return i in t?t[i].push(n):t[i]=[n],t},r)}ht.groupPatternsByBaseDirectory=Ju;function el(e,r,t){return Object.keys(e).map(n=>tl(n,e[n],r,t))}ht.convertPatternGroupsToTasks=el;function tl(e,r,t,n){return{dynamic:n,positive:r,negative:t,base:e,patterns:[].concat(r,t.map(ar.pattern.convertToNegativePattern))}}ht.convertPatternGroupToTask=tl});var O1=ye(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.removeDuplicateSlashes=xn.transform=void 0;var ZR=/(?!^)\/{2,}/g;function QR(e){return e.map(r=>R1(r))}xn.transform=QR;function R1(e){return e.replace(ZR,"/")}xn.removeDuplicateSlashes=R1});var F1=ye(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.read=void 0;function JR(e,r,t){r.fs.lstat(e,(n,i)=>{if(n!==null){T1(t,n);return}if(!i.isSymbolicLink()||!r.followSymbolicLink){rl(t,i);return}r.fs.stat(e,(l,a)=>{if(l!==null){if(r.throwErrorOnBrokenSymbolicLink){T1(t,l);return}rl(t,i);return}r.markSymbolicLink&&(a.isSymbolicLink=()=>!0),rl(t,a)})})}Us.read=JR;function T1(e,r){e(r)}function rl(e,r){e(null,r)}});var P1=ye(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.read=void 0;function eO(e,r){let t=r.fs.lstatSync(e);if(!t.isSymbolicLink()||!r.followSymbolicLink)return t;try{let n=r.fs.statSync(e);return r.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!r.throwErrorOnBrokenSymbolicLink)return t;throw n}}Gs.read=eO});var B1=ye(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.createFileSystemAdapter=br.FILE_SYSTEM_ADAPTER=void 0;var Ws=require("fs");br.FILE_SYSTEM_ADAPTER={lstat:Ws.lstat,stat:Ws.stat,lstatSync:Ws.lstatSync,statSync:Ws.statSync};function tO(e){return e===void 0?br.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},br.FILE_SYSTEM_ADAPTER),e)}br.createFileSystemAdapter=tO});var I1=ye(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var rO=B1(),nl=class{constructor(r={}){this._options=r,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=rO.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(r,t){return r!=null?r:t}};il.default=nl});var Ur=ye(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.statSync=vr.stat=vr.Settings=void 0;var L1=F1(),nO=P1(),sl=I1();vr.Settings=sl.default;function iO(e,r,t){if(typeof r=="function"){L1.read(e,ol(),r);return}L1.read(e,ol(r),t)}vr.stat=iO;function sO(e,r){let t=ol(r);return nO.read(e,t)}vr.statSync=sO;function ol(e={}){return e instanceof sl.default?e:new sl.default(e)}});var j1=ye((oq,N1)=>{var M1;N1.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):e=>(M1||(M1=Promise.resolve())).then(e).catch(r=>setTimeout(()=>{throw r},0))});var H1=ye((aq,$1)=>{$1.exports=aO;var oO=j1();function aO(e,r){let t,n,i,l=!0;Array.isArray(e)?(t=[],n=e.length):(i=Object.keys(e),t={},n=i.length);function a(s){function f(){r&&r(s,t),r=null}l?oO(f):f()}function o(s,f,c){t[s]=c,(--n===0||f)&&a(f)}n?i?i.forEach(function(s){e[s](function(f,c){o(s,f,c)})}):e.forEach(function(s,f){s(function(c,h){o(f,c,h)})}):a(null),l=!1}});var al=ye(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var zs=process.versions.node.split(".");if(zs[0]===void 0||zs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var q1=Number.parseInt(zs[0],10),uO=Number.parseInt(zs[1],10),U1=10,lO=10,cO=q1>U1,hO=q1===U1&&uO>=lO;Vs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=cO||hO});var G1=ye(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.createDirentFromStats=void 0;var ul=class{constructor(r,t){this.name=r,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function fO(e,r){return new ul(e,r)}Ks.createDirentFromStats=fO});var ll=ye(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.fs=void 0;var pO=G1();Ys.fs=pO});var cl=ye(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.joinPathSegments=void 0;function dO(e,r,t){return e.endsWith(t)?e+r:e+t+r}Xs.joinPathSegments=dO});var X1=ye(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.readdir=_r.readdirWithFileTypes=_r.read=void 0;var mO=Ur(),W1=H1(),yO=al(),z1=ll(),V1=cl();function gO(e,r,t){if(!r.stats&&yO.IS_SUPPORT_READDIR_WITH_FILE_TYPES){K1(e,r,t);return}Y1(e,r,t)}_r.read=gO;function K1(e,r,t){r.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Zs(t,n);return}let l=i.map(o=>({dirent:o,name:o.name,path:V1.joinPathSegments(e,o.name,r.pathSegmentSeparator)}));if(!r.followSymbolicLinks){hl(t,l);return}let a=l.map(o=>bO(o,r));W1(a,(o,s)=>{if(o!==null){Zs(t,o);return}hl(t,s)})})}_r.readdirWithFileTypes=K1;function bO(e,r){return t=>{if(!e.dirent.isSymbolicLink()){t(null,e);return}r.fs.stat(e.path,(n,i)=>{if(n!==null){if(r.throwErrorOnBrokenSymbolicLink){t(n);return}t(null,e);return}e.dirent=z1.fs.createDirentFromStats(e.name,i),t(null,e)})}}function Y1(e,r,t){r.fs.readdir(e,(n,i)=>{if(n!==null){Zs(t,n);return}let l=i.map(a=>{let o=V1.joinPathSegments(e,a,r.pathSegmentSeparator);return s=>{mO.stat(o,r.fsStatSettings,(f,c)=>{if(f!==null){s(f);return}let h={name:a,path:o,dirent:z1.fs.createDirentFromStats(a,c)};r.stats&&(h.stats=c),s(null,h)})}});W1(l,(a,o)=>{if(a!==null){Zs(t,a);return}hl(t,o)})})}_r.readdir=Y1;function Zs(e,r){e(r)}function hl(e,r){e(null,r)}});var t2=ye(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.readdir=wr.readdirWithFileTypes=wr.read=void 0;var vO=Ur(),_O=al(),Z1=ll(),Q1=cl();function wO(e,r){return!r.stats&&_O.IS_SUPPORT_READDIR_WITH_FILE_TYPES?J1(e,r):e2(e,r)}wr.read=wO;function J1(e,r){return r.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Q1.joinPathSegments(e,n.name,r.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&r.followSymbolicLinks)try{let l=r.fs.statSync(i.path);i.dirent=Z1.fs.createDirentFromStats(i.name,l)}catch(l){if(r.throwErrorOnBrokenSymbolicLink)throw l}return i})}wr.readdirWithFileTypes=J1;function e2(e,r){return r.fs.readdirSync(e).map(n=>{let i=Q1.joinPathSegments(e,n,r.pathSegmentSeparator),l=vO.statSync(i,r.fsStatSettings),a={name:n,path:i,dirent:Z1.fs.createDirentFromStats(n,l)};return r.stats&&(a.stats=l),a})}wr.readdir=e2});var r2=ye(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.createFileSystemAdapter=Er.FILE_SYSTEM_ADAPTER=void 0;var An=require("fs");Er.FILE_SYSTEM_ADAPTER={lstat:An.lstat,stat:An.stat,lstatSync:An.lstatSync,statSync:An.statSync,readdir:An.readdir,readdirSync:An.readdirSync};function EO(e){return e===void 0?Er.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Er.FILE_SYSTEM_ADAPTER),e)}Er.createFileSystemAdapter=EO});var n2=ye(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var SO=require("path"),xO=Ur(),AO=r2(),fl=class{constructor(r={}){this._options=r,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=AO.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,SO.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new xO.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(r,t){return r!=null?r:t}};pl.default=fl});var Qs=ye(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.Settings=Sr.scandirSync=Sr.scandir=void 0;var i2=X1(),CO=t2(),dl=n2();Sr.Settings=dl.default;function kO(e,r,t){if(typeof r=="function"){i2.read(e,ml(),r);return}i2.read(e,ml(r),t)}Sr.scandir=kO;function DO(e,r){let t=ml(r);return CO.read(e,t)}Sr.scandirSync=DO;function ml(e={}){return e instanceof dl.default?e:new dl.default(e)}});var o2=ye((gq,s2)=>{"use strict";function RO(e){var r=new e,t=r;function n(){var l=r;return l.next?r=l.next:(r=new e,t=r),l.next=null,l}function i(l){t.next=l,t=l}return{get:n,release:i}}s2.exports=RO});var u2=ye((bq,yl)=>{"use strict";var OO=o2();function a2(e,r,t){if(typeof e=="function"&&(t=r,r=e,e=null),t<1)throw new Error("fastqueue concurrency must be greater than 1");var n=OO(TO),i=null,l=null,a=0,o=null,s={push:y,drain:Pt,saturated:Pt,pause:c,paused:!1,concurrency:t,running:f,resume:d,idle:p,length:h,getQueue:u,unshift:b,empty:Pt,kill:g,killAndDrain:S,error:E};return s;function f(){return a}function c(){s.paused=!0}function h(){for(var v=i,m=0;v;)v=v.next,m++;return m}function u(){for(var v=i,m=[];v;)m.push(v.value),v=v.next;return m}function d(){if(s.paused){s.paused=!1;for(var v=0;v<s.concurrency;v++)a++,_()}}function p(){return a===0&&s.length()===0}function y(v,m){var w=n.get();w.context=e,w.release=_,w.value=v,w.callback=m||Pt,w.errorHandler=o,a===s.concurrency||s.paused?l?(l.next=w,l=w):(i=w,l=w,s.saturated()):(a++,r.call(e,w.value,w.worked))}function b(v,m){var w=n.get();w.context=e,w.release=_,w.value=v,w.callback=m||Pt,a===s.concurrency||s.paused?i?(w.next=i,i=w):(i=w,l=w,s.saturated()):(a++,r.call(e,w.value,w.worked))}function _(v){v&&n.release(v);var m=i;m?s.paused?a--:(l===i&&(l=null),i=m.next,m.next=null,r.call(e,m.value,m.worked),l===null&&s.empty()):--a===0&&s.drain()}function g(){i=null,l=null,s.drain=Pt}function S(){i=null,l=null,s.drain(),s.drain=Pt}function E(v){o=v}}function Pt(){}function TO(){this.value=null,this.callback=Pt,this.next=null,this.release=Pt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,n){var i=e.callback,l=e.errorHandler,a=e.value;e.value=null,e.callback=Pt,e.errorHandler&&l(t,a),i.call(e.context,t,n),e.release(e)}}function FO(e,r,t){typeof e=="function"&&(t=r,r=e,e=null);function n(c,h){r.call(this,c).then(function(u){h(null,u)},h)}var i=a2(e,n,t),l=i.push,a=i.unshift;return i.push=o,i.unshift=s,i.drained=f,i;function o(c){var h=new Promise(function(u,d){l(c,function(p,y){if(p){d(p);return}u(y)})});return h.catch(Pt),h}function s(c){var h=new Promise(function(u,d){a(c,function(p,y){if(p){d(p);return}u(y)})});return h.catch(Pt),h}function f(){var c=i.drain,h=new Promise(function(u){i.drain=function(){c(),u()}});return h}}yl.exports=a2;yl.exports.promise=FO});var Js=ye(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.joinPathSegments=Wt.replacePathSegmentSeparator=Wt.isAppliedFilter=Wt.isFatalError=void 0;function PO(e,r){return e.errorFilter===null?!0:!e.errorFilter(r)}Wt.isFatalError=PO;function BO(e,r){return e===null||e(r)}Wt.isAppliedFilter=BO;function IO(e,r){return e.split(/[/\\]/).join(r)}Wt.replacePathSegmentSeparator=IO;function LO(e,r,t){return e===""?r:e.endsWith(t)?e+r:e+t+r}Wt.joinPathSegments=LO});var vl=ye(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var MO=Js(),gl=class{constructor(r,t){this._root=r,this._settings=t,this._root=MO.replacePathSegmentSeparator(r,t.pathSegmentSeparator)}};bl.default=gl});var El=ye(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var NO=require("events"),jO=Qs(),$O=u2(),eo=Js(),HO=vl(),_l=class extends HO.default{constructor(r,t){super(r,t),this._settings=t,this._scandir=jO.scandir,this._emitter=new NO.EventEmitter,this._queue=$O(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,t){let n={directory:r,base:t};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(r,t){this._scandir(r.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){t(n,void 0);return}for(let l of i)this._handleEntry(l,r.base);t(null,void 0)})}_handleError(r){this._isDestroyed||!eo.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,t){if(this._isDestroyed||this._isFatalError)return;let n=r.path;t!==void 0&&(r.path=eo.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),eo.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&eo.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(n,t===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};wl.default=_l});var l2=ye(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var qO=El(),Sl=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new qO.default(this._root,this._settings),this._storage=[]}read(r){this._reader.onError(t=>{UO(r,t)}),this._reader.onEntry(t=>{this._storage.push(t)}),this._reader.onEnd(()=>{GO(r,this._storage)}),this._reader.read()}};xl.default=Sl;function UO(e,r){e(r)}function GO(e,r){e(null,r)}});var c2=ye(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var WO=require("stream"),zO=El(),Al=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new zO.default(this._root,this._settings),this._stream=new WO.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Cl.default=Al});var h2=ye(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var VO=Qs(),to=Js(),KO=vl(),kl=class extends KO.default{constructor(){super(...arguments),this._scandir=VO.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(r,t){this._queue.add({directory:r,base:t})}_handleQueue(){for(let r of this._queue.values())this._handleDirectory(r.directory,r.base)}_handleDirectory(r,t){try{let n=this._scandir(r,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,t)}catch(n){this._handleError(n)}}_handleError(r){if(to.isFatalError(this._settings,r))throw r}_handleEntry(r,t){let n=r.path;t!==void 0&&(r.path=to.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),to.isAppliedFilter(this._settings.entryFilter,r)&&this._pushToStorage(r),r.dirent.isDirectory()&&to.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(n,t===void 0?void 0:r.path)}_pushToStorage(r){this._storage.push(r)}};Dl.default=kl});var f2=ye(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var YO=h2(),Rl=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new YO.default(this._root,this._settings)}read(){return this._reader.read()}};Ol.default=Rl});var p2=ye(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var XO=require("path"),ZO=Qs(),Tl=class{constructor(r={}){this._options=r,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,XO.sep),this.fsScandirSettings=new ZO.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,t){return r!=null?r:t}};Fl.default=Tl});var no=ye(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.Settings=zt.walkStream=zt.walkSync=zt.walk=void 0;var d2=l2(),QO=c2(),JO=f2(),Pl=p2();zt.Settings=Pl.default;function e3(e,r,t){if(typeof r=="function"){new d2.default(e,ro()).read(r);return}new d2.default(e,ro(r)).read(t)}zt.walk=e3;function t3(e,r){let t=ro(r);return new JO.default(e,t).read()}zt.walkSync=t3;function r3(e,r){let t=ro(r);return new QO.default(e,t).read()}zt.walkStream=r3;function ro(e={}){return e instanceof Pl.default?e:new Pl.default(e)}});var io=ye(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var n3=require("path"),i3=Ur(),m2=or(),Bl=class{constructor(r){this._settings=r,this._fsStatSettings=new i3.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(r){return n3.resolve(this._settings.cwd,r)}_makeEntry(r,t){let n={name:t,path:t,dirent:m2.fs.createDirentFromStats(t,r)};return this._settings.stats&&(n.stats=r),n}_isFatalError(r){return!m2.errno.isEnoentCodeError(r)&&!this._settings.suppressErrors}};Il.default=Bl});var Nl=ye(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var s3=require("stream"),o3=Ur(),a3=no(),u3=io(),Ll=class extends u3.default{constructor(){super(...arguments),this._walkStream=a3.walkStream,this._stat=o3.stat}dynamic(r,t){return this._walkStream(r,t)}static(r,t){let n=r.map(this._getFullEntryPath,this),i=new s3.PassThrough({objectMode:!0});i._write=(l,a,o)=>this._getEntry(n[l],r[l],t).then(s=>{s!==null&&t.entryFilter(s)&&i.push(s),l===n.length-1&&i.end(),o()}).catch(o);for(let l=0;l<n.length;l++)i.write(l);return i}_getEntry(r,t,n){return this._getStat(r).then(i=>this._makeEntry(i,t)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(r){return new Promise((t,n)=>{this._stat(r,this._fsStatSettings,(i,l)=>i===null?t(l):n(i))})}};Ml.default=Ll});var y2=ye($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var l3=no(),c3=io(),h3=Nl(),jl=class extends c3.default{constructor(){super(...arguments),this._walkAsync=l3.walk,this._readerStream=new h3.default(this._settings)}dynamic(r,t){return new Promise((n,i)=>{this._walkAsync(r,t,(l,a)=>{l===null?n(a):i(l)})})}async static(r,t){let n=[],i=this._readerStream.static(r,t);return new Promise((l,a)=>{i.once("error",a),i.on("data",o=>n.push(o)),i.once("end",()=>l(n))})}};$l.default=jl});var g2=ye(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var Cn=or(),Hl=class{constructor(r,t,n){this._patterns=r,this._settings=t,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let r=Cn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let t of r){let n=this._getPatternSegments(t),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:t,segments:n,sections:i})}}_getPatternSegments(r){return Cn.pattern.getPatternParts(r,this._micromatchOptions).map(n=>Cn.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Cn.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(r){return Cn.array.splitWhen(r,t=>t.dynamic&&Cn.pattern.hasGlobStar(t.pattern))}};ql.default=Hl});var b2=ye(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var f3=g2(),Ul=class extends f3.default{match(r){let t=r.split("/"),n=t.length,i=this._storage.filter(l=>!l.complete||l.segments.length>n);for(let l of i){let a=l.sections[0];if(!l.complete&&n>a.length||t.every((s,f)=>{let c=l.segments[f];return!!(c.dynamic&&c.patternRe.test(s)||!c.dynamic&&c.pattern===s)}))return!0}return!1}};Gl.default=Ul});var v2=ye(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var so=or(),p3=b2(),Wl=class{constructor(r,t){this._settings=r,this._micromatchOptions=t}getFilter(r,t,n){let i=this._getMatcher(t),l=this._getNegativePatternsRe(n);return a=>this._filter(r,a,i,l)}_getMatcher(r){return new p3.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let t=r.filter(so.pattern.isAffectDepthOfReadingPattern);return so.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(r,t,n,i){if(this._isSkippedByDeep(r,t.path)||this._isSkippedSymbolicLink(t))return!1;let l=so.path.removeLeadingDotSegment(t.path);return this._isSkippedByPositivePatterns(l,n)?!1:this._isSkippedByNegativePatterns(l,i)}_isSkippedByDeep(r,t){return this._settings.deep===1/0?!1:this._getEntryLevel(r,t)>=this._settings.deep}_getEntryLevel(r,t){let n=t.split("/").length;if(r==="")return n;let i=r.split("/").length;return n-i}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,t){return!this._settings.baseNameMatch&&!t.match(r)}_isSkippedByNegativePatterns(r,t){return!so.pattern.matchAny(r,t)}};zl.default=Wl});var _2=ye(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var Gr=or(),Vl=class{constructor(r,t){this._settings=r,this._micromatchOptions=t,this.index=new Map}getFilter(r,t){let n=Gr.pattern.convertPatternsToRe(r,this._micromatchOptions),i=Gr.pattern.convertPatternsToRe(t,this._micromatchOptions);return l=>this._filter(l,n,i)}_filter(r,t,n){if(this._settings.unique&&this._isDuplicateEntry(r)||this._onlyFileFilter(r)||this._onlyDirectoryFilter(r)||this._isSkippedByAbsoluteNegativePatterns(r.path,n))return!1;let i=this._settings.baseNameMatch?r.name:r.path,l=r.dirent.isDirectory(),a=this._isMatchToPatterns(i,t,l)&&!this._isMatchToPatterns(r.path,n,l);return this._settings.unique&&a&&this._createIndexRecord(r),a}_isDuplicateEntry(r){return this.index.has(r.path)}_createIndexRecord(r){this.index.set(r.path,void 0)}_onlyFileFilter(r){return this._settings.onlyFiles&&!r.dirent.isFile()}_onlyDirectoryFilter(r){return this._settings.onlyDirectories&&!r.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(r,t){if(!this._settings.absolute)return!1;let n=Gr.path.makeAbsolute(this._settings.cwd,r);return Gr.pattern.matchAny(n,t)}_isMatchToPatterns(r,t,n){let i=Gr.path.removeLeadingDotSegment(r),l=Gr.pattern.matchAny(i,t);return!l&&n?Gr.pattern.matchAny(i+"/",t):l}};Kl.default=Vl});var w2=ye(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var d3=or(),Yl=class{constructor(r){this._settings=r}getFilter(){return r=>this._isNonFatalError(r)}_isNonFatalError(r){return d3.errno.isEnoentCodeError(r)||this._settings.suppressErrors}};Xl.default=Yl});var S2=ye(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var E2=or(),Zl=class{constructor(r){this._settings=r}getTransformer(){return r=>this._transform(r)}_transform(r){let t=r.path;return this._settings.absolute&&(t=E2.path.makeAbsolute(this._settings.cwd,t),t=E2.path.unixify(t)),this._settings.markDirectories&&r.dirent.isDirectory()&&(t+="/"),this._settings.objectMode?Object.assign(Object.assign({},r),{path:t}):t}};Ql.default=Zl});var oo=ye(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var m3=require("path"),y3=v2(),g3=_2(),b3=w2(),v3=S2(),Jl=class{constructor(r){this._settings=r,this.errorFilter=new b3.default(this._settings),this.entryFilter=new g3.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new y3.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new v3.default(this._settings)}_getRootDirectory(r){return m3.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let t=r.base==="."?"":r.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};ec.default=Jl});var x2=ye(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var _3=y2(),w3=oo(),tc=class extends w3.default{constructor(){super(...arguments),this._reader=new _3.default(this._settings)}async read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r);return(await this.api(t,r,n)).map(l=>n.transform(l))}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};rc.default=tc});var A2=ye(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var E3=require("stream"),S3=Nl(),x3=oo(),nc=class extends x3.default{constructor(){super(...arguments),this._reader=new S3.default(this._settings)}read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r),i=this.api(t,r,n),l=new E3.Readable({objectMode:!0,read:()=>{}});return i.once("error",a=>l.emit("error",a)).on("data",a=>l.emit("data",n.transform(a))).once("end",()=>l.emit("end")),l.once("close",()=>i.destroy()),l}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};ic.default=nc});var C2=ye(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var A3=Ur(),C3=no(),k3=io(),sc=class extends k3.default{constructor(){super(...arguments),this._walkSync=C3.walkSync,this._statSync=A3.statSync}dynamic(r,t){return this._walkSync(r,t)}static(r,t){let n=[];for(let i of r){let l=this._getFullEntryPath(i),a=this._getEntry(l,i,t);a===null||!t.entryFilter(a)||n.push(a)}return n}_getEntry(r,t,n){try{let i=this._getStat(r);return this._makeEntry(i,t)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(r){return this._statSync(r,this._fsStatSettings)}};oc.default=sc});var k2=ye(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var D3=C2(),R3=oo(),ac=class extends R3.default{constructor(){super(...arguments),this._reader=new D3.default(this._settings)}read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r);return this.api(t,r,n).map(n.transform)}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};uc.default=ac});var D2=ye(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var kn=require("fs"),O3=require("os"),T3=Math.max(O3.cpus().length,1);Dn.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:kn.lstat,lstatSync:kn.lstatSync,stat:kn.stat,statSync:kn.statSync,readdir:kn.readdir,readdirSync:kn.readdirSync};var lc=class{constructor(r={}){this._options=r,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,T3),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(r,t){return r===void 0?t:r}_getFileSystemMethods(r={}){return Object.assign(Object.assign({},Dn.DEFAULT_FILE_SYSTEM_ADAPTER),r)}};Dn.default=lc});var F2=ye((Uq,T2)=>{"use strict";var R2=D1(),O2=O1(),F3=x2(),P3=A2(),B3=k2(),cc=D2(),Wr=or();async function hc(e,r){Rn(e);let t=fc(e,F3.default,r),n=await Promise.all(t);return Wr.array.flatten(n)}(function(e){function r(a,o){Rn(a);let s=fc(a,B3.default,o);return Wr.array.flatten(s)}e.sync=r;function t(a,o){Rn(a);let s=fc(a,P3.default,o);return Wr.stream.merge(s)}e.stream=t;function n(a,o){Rn(a);let s=O2.transform([].concat(a)),f=new cc.default(o);return R2.generate(s,f)}e.generateTasks=n;function i(a,o){Rn(a);let s=new cc.default(o);return Wr.pattern.isDynamicPattern(a,s)}e.isDynamicPattern=i;function l(a){return Rn(a),Wr.path.escape(a)}e.escapePath=l})(hc||(hc={}));function fc(e,r,t){let n=O2.transform([].concat(e)),i=new cc.default(t),l=R2.generate(n,i),a=new r(i);return l.map(a.read,a)}function Rn(e){if(![].concat(e).every(n=>Wr.string.isString(n)&&!Wr.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}T2.exports=hc});var On=ye((Gq,zr)=>{"use strict";function P2(e){return typeof e=="undefined"||e===null}function I3(e){return typeof e=="object"&&e!==null}function L3(e){return Array.isArray(e)?e:P2(e)?[]:[e]}function M3(e,r){var t,n,i,l;if(r)for(l=Object.keys(r),t=0,n=l.length;t<n;t+=1)i=l[t],e[i]=r[i];return e}function N3(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function j3(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}zr.exports.isNothing=P2;zr.exports.isObject=I3;zr.exports.toArray=L3;zr.exports.repeat=N3;zr.exports.isNegativeZero=j3;zr.exports.extend=M3});var Tn=ye((Wq,I2)=>{"use strict";function B2(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
|
|
8
|
+
|
|
9
|
+
`+e.mark.snippet),n+" "+t):n}function Ai(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=B2(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ai.prototype=Object.create(Error.prototype);Ai.prototype.constructor=Ai;Ai.prototype.toString=function(r){return this.name+": "+B2(this,r)};I2.exports=Ai});var M2=ye((zq,L2)=>{"use strict";var Ci=On();function pc(e,r,t,n,i){var l="",a="",o=Math.floor(i/2)-1;return n-r>o&&(l=" ... ",r=n-o+l.length),t-n>o&&(a=" ...",t=n+o-a.length),{str:l+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+l.length}}function dc(e,r){return Ci.repeat(" ",r-e.length)+e}function $3(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],l,a=-1;l=t.exec(e.buffer);)i.push(l.index),n.push(l.index+l[0].length),e.position<=l.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var o="",s,f,c=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+c+3);for(s=1;s<=r.linesBefore&&!(a-s<0);s++)f=pc(e.buffer,n[a-s],i[a-s],e.position-(n[a]-n[a-s]),h),o=Ci.repeat(" ",r.indent)+dc((e.line-s+1).toString(),c)+" | "+f.str+`
|
|
10
|
+
`+o;for(f=pc(e.buffer,n[a],i[a],e.position,h),o+=Ci.repeat(" ",r.indent)+dc((e.line+1).toString(),c)+" | "+f.str+`
|
|
11
|
+
`,o+=Ci.repeat("-",r.indent+c+3+f.pos)+`^
|
|
12
|
+
`,s=1;s<=r.linesAfter&&!(a+s>=i.length);s++)f=pc(e.buffer,n[a+s],i[a+s],e.position-(n[a]-n[a+s]),h),o+=Ci.repeat(" ",r.indent)+dc((e.line+s+1).toString(),c)+" | "+f.str+`
|
|
13
|
+
`;return o.replace(/\n$/,"")}L2.exports=$3});var ft=ye((Vq,j2)=>{"use strict";var N2=Tn(),H3=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],q3=["scalar","sequence","mapping"];function U3(e){var r={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(n){r[String(n)]=t})}),r}function G3(e,r){if(r=r||{},Object.keys(r).forEach(function(t){if(H3.indexOf(t)===-1)throw new N2('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(t){return t},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=U3(r.styleAliases||null),q3.indexOf(this.kind)===-1)throw new N2('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}j2.exports=G3});var gc=ye((Kq,H2)=>{"use strict";var ki=Tn(),mc=ft();function $2(e,r){var t=[];return e[r].forEach(function(n){var i=t.length;t.forEach(function(l,a){l.tag===n.tag&&l.kind===n.kind&&l.multi===n.multi&&(i=a)}),t[i]=n}),t}function W3(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,t=arguments.length;r<t;r+=1)arguments[r].forEach(n);return e}function yc(e){return this.extend(e)}yc.prototype.extend=function(r){var t=[],n=[];if(r instanceof mc)n.push(r);else if(Array.isArray(r))n=n.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(t=t.concat(r.implicit)),r.explicit&&(n=n.concat(r.explicit));else throw new ki("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(l){if(!(l instanceof mc))throw new ki("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(l.loadKind&&l.loadKind!=="scalar")throw new ki("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(l.multi)throw new ki("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(l){if(!(l instanceof mc))throw new ki("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(yc.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=$2(i,"implicit"),i.compiledExplicit=$2(i,"explicit"),i.compiledTypeMap=W3(i.compiledImplicit,i.compiledExplicit),i};H2.exports=yc});var bc=ye((Yq,q2)=>{"use strict";var z3=ft();q2.exports=new z3("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var vc=ye((Xq,U2)=>{"use strict";var V3=ft();U2.exports=new V3("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var _c=ye((Zq,G2)=>{"use strict";var K3=ft();G2.exports=new K3("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var wc=ye((Qq,W2)=>{"use strict";var Y3=gc();W2.exports=new Y3({explicit:[bc(),vc(),_c()]})});var Ec=ye((Jq,z2)=>{"use strict";var X3=ft();function Z3(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function Q3(){return null}function J3(e){return e===null}z2.exports=new X3("tag:yaml.org,2002:null",{kind:"scalar",resolve:Z3,construct:Q3,predicate:J3,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Sc=ye((eU,V2)=>{"use strict";var eT=ft();function tT(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function rT(e){return e==="true"||e==="True"||e==="TRUE"}function nT(e){return Object.prototype.toString.call(e)==="[object Boolean]"}V2.exports=new eT("tag:yaml.org,2002:bool",{kind:"scalar",resolve:tT,construct:rT,predicate:nT,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var xc=ye((tU,K2)=>{"use strict";var iT=On(),sT=ft();function oT(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function aT(e){return 48<=e&&e<=55}function uT(e){return 48<=e&&e<=57}function lT(e){if(e===null)return!1;var r=e.length,t=0,n=!1,i;if(!r)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===r)return!0;if(i=e[++t],i==="b"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!oT(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!aT(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;t<r;t++)if(i=e[t],i!=="_"){if(!uT(e.charCodeAt(t)))return!1;n=!0}return!(!n||i==="_")}function cT(e){var r=e,t=1,n;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),n=r[0],(n==="-"||n==="+")&&(n==="-"&&(t=-1),r=r.slice(1),n=r[0]),r==="0")return 0;if(n==="0"){if(r[1]==="b")return t*parseInt(r.slice(2),2);if(r[1]==="x")return t*parseInt(r.slice(2),16);if(r[1]==="o")return t*parseInt(r.slice(2),8)}return t*parseInt(r,10)}function hT(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!iT.isNegativeZero(e)}K2.exports=new sT("tag:yaml.org,2002:int",{kind:"scalar",resolve:lT,construct:cT,predicate:hT,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Ac=ye((rU,X2)=>{"use strict";var Y2=On(),fT=ft(),pT=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function dT(e){return!(e===null||!pT.test(e)||e[e.length-1]==="_")}function mT(e){var r,t;return r=e.replace(/_/g,"").toLowerCase(),t=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:t*parseFloat(r,10)}var yT=/^[-+]?[0-9]+e/;function gT(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Y2.isNegativeZero(e))return"-0.0";return t=e.toString(10),yT.test(t)?t.replace("e",".e"):t}function bT(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Y2.isNegativeZero(e))}X2.exports=new fT("tag:yaml.org,2002:float",{kind:"scalar",resolve:dT,construct:mT,predicate:bT,represent:gT,defaultStyle:"lowercase"})});var Cc=ye((nU,Z2)=>{"use strict";Z2.exports=wc().extend({implicit:[Ec(),Sc(),xc(),Ac()]})});var kc=ye((iU,Q2)=>{"use strict";Q2.exports=Cc()});var Dc=ye((sU,ty)=>{"use strict";var vT=ft(),J2=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ey=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function _T(e){return e===null?!1:J2.exec(e)!==null||ey.exec(e)!==null}function wT(e){var r,t,n,i,l,a,o,s=0,f=null,c,h,u;if(r=J2.exec(e),r===null&&(r=ey.exec(e)),r===null)throw new Error("Date resolve error");if(t=+r[1],n=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(t,n,i));if(l=+r[4],a=+r[5],o=+r[6],r[7]){for(s=r[7].slice(0,3);s.length<3;)s+="0";s=+s}return r[9]&&(c=+r[10],h=+(r[11]||0),f=(c*60+h)*6e4,r[9]==="-"&&(f=-f)),u=new Date(Date.UTC(t,n,i,l,a,o,s)),f&&u.setTime(u.getTime()-f),u}function ET(e){return e.toISOString()}ty.exports=new vT("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:_T,construct:wT,instanceOf:Date,represent:ET})});var Rc=ye((oU,ry)=>{"use strict";var ST=ft();function xT(e){return e==="<<"||e===null}ry.exports=new ST("tag:yaml.org,2002:merge",{kind:"scalar",resolve:xT})});var Tc=ye((aU,ny)=>{"use strict";var AT=ft(),Oc=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
14
|
+
\r`;function CT(e){if(e===null)return!1;var r,t,n=0,i=e.length,l=Oc;for(t=0;t<i;t++)if(r=l.indexOf(e.charAt(t)),!(r>64)){if(r<0)return!1;n+=6}return n%8===0}function kT(e){var r,t,n=e.replace(/[\r\n=]/g,""),i=n.length,l=Oc,a=0,o=[];for(r=0;r<i;r++)r%4===0&&r&&(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)),a=a<<6|l.indexOf(n.charAt(r));return t=i%4*6,t===0?(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)):t===18?(o.push(a>>10&255),o.push(a>>2&255)):t===12&&o.push(a>>4&255),new Uint8Array(o)}function DT(e){var r="",t=0,n,i,l=e.length,a=Oc;for(n=0;n<l;n++)n%3===0&&n&&(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]),t=(t<<8)+e[n];return i=l%3,i===0?(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]):i===2?(r+=a[t>>10&63],r+=a[t>>4&63],r+=a[t<<2&63],r+=a[64]):i===1&&(r+=a[t>>2&63],r+=a[t<<4&63],r+=a[64],r+=a[64]),r}function RT(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}ny.exports=new AT("tag:yaml.org,2002:binary",{kind:"scalar",resolve:CT,construct:kT,predicate:RT,represent:DT})});var Fc=ye((uU,iy)=>{"use strict";var OT=ft(),TT=Object.prototype.hasOwnProperty,FT=Object.prototype.toString;function PT(e){if(e===null)return!0;var r=[],t,n,i,l,a,o=e;for(t=0,n=o.length;t<n;t+=1){if(i=o[t],a=!1,FT.call(i)!=="[object Object]")return!1;for(l in i)if(TT.call(i,l))if(!a)a=!0;else return!1;if(!a)return!1;if(r.indexOf(l)===-1)r.push(l);else return!1}return!0}function BT(e){return e!==null?e:[]}iy.exports=new OT("tag:yaml.org,2002:omap",{kind:"sequence",resolve:PT,construct:BT})});var Pc=ye((lU,sy)=>{"use strict";var IT=ft(),LT=Object.prototype.toString;function MT(e){if(e===null)return!0;var r,t,n,i,l,a=e;for(l=new Array(a.length),r=0,t=a.length;r<t;r+=1){if(n=a[r],LT.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;l[r]=[i[0],n[i[0]]]}return!0}function NT(e){if(e===null)return[];var r,t,n,i,l,a=e;for(l=new Array(a.length),r=0,t=a.length;r<t;r+=1)n=a[r],i=Object.keys(n),l[r]=[i[0],n[i[0]]];return l}sy.exports=new IT("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:MT,construct:NT})});var Bc=ye((cU,oy)=>{"use strict";var jT=ft(),$T=Object.prototype.hasOwnProperty;function HT(e){if(e===null)return!0;var r,t=e;for(r in t)if($T.call(t,r)&&t[r]!==null)return!1;return!0}function qT(e){return e!==null?e:{}}oy.exports=new jT("tag:yaml.org,2002:set",{kind:"mapping",resolve:HT,construct:qT})});var ao=ye((hU,ay)=>{"use strict";ay.exports=kc().extend({implicit:[Dc(),Rc()],explicit:[Tc(),Fc(),Pc(),Bc()]})});var Sy=ye((fU,Nc)=>{"use strict";var Kr=On(),dy=Tn(),UT=M2(),GT=ao(),Ar=Object.prototype.hasOwnProperty,uo=1,my=2,yy=3,lo=4,Ic=1,WT=2,uy=3,zT=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,VT=/[\x85\u2028\u2029]/,KT=/[,\[\]\{\}]/,gy=/^(?:!|!!|![a-z\-]+!)$/i,by=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ly(e){return Object.prototype.toString.call(e)}function Vt(e){return e===10||e===13}function Yr(e){return e===9||e===32}function Et(e){return e===9||e===32||e===10||e===13}function Fn(e){return e===44||e===91||e===93||e===123||e===125}function YT(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function XT(e){return e===120?2:e===117?4:e===85?8:0}function ZT(e){return 48<=e&&e<=57?e-48:-1}function cy(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
15
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function QT(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var vy=new Array(256),_y=new Array(256);for(Vr=0;Vr<256;Vr++)vy[Vr]=cy(Vr)?1:0,_y[Vr]=cy(Vr);var Vr;function JT(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||GT,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function wy(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=UT(t),new dy(r,t)}function Oe(e,r){throw wy(e,r)}function co(e,r){e.onWarning&&e.onWarning.call(null,wy(e,r))}var hy={YAML:function(r,t,n){var i,l,a;r.version!==null&&Oe(r,"duplication of %YAML directive"),n.length!==1&&Oe(r,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Oe(r,"ill-formed argument of the YAML directive"),l=parseInt(i[1],10),a=parseInt(i[2],10),l!==1&&Oe(r,"unacceptable YAML version of the document"),r.version=n[0],r.checkLineBreaks=a<2,a!==1&&a!==2&&co(r,"unsupported YAML version of the document")},TAG:function(r,t,n){var i,l;n.length!==2&&Oe(r,"TAG directive accepts exactly two arguments"),i=n[0],l=n[1],gy.test(i)||Oe(r,"ill-formed tag handle (first argument) of the TAG directive"),Ar.call(r.tagMap,i)&&Oe(r,'there is a previously declared suffix for "'+i+'" tag handle'),by.test(l)||Oe(r,"ill-formed tag prefix (second argument) of the TAG directive");try{l=decodeURIComponent(l)}catch{Oe(r,"tag prefix is malformed: "+l)}r.tagMap[i]=l}};function xr(e,r,t,n){var i,l,a,o;if(r<t){if(o=e.input.slice(r,t),n)for(i=0,l=o.length;i<l;i+=1)a=o.charCodeAt(i),a===9||32<=a&&a<=1114111||Oe(e,"expected valid JSON character");else zT.test(o)&&Oe(e,"the stream contains non-printable characters");e.result+=o}}function fy(e,r,t,n){var i,l,a,o;for(Kr.isObject(t)||Oe(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(t),a=0,o=i.length;a<o;a+=1)l=i[a],Ar.call(r,l)||(r[l]=t[l],n[l]=!0)}function Pn(e,r,t,n,i,l,a,o,s){var f,c;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,c=i.length;f<c;f+=1)Array.isArray(i[f])&&Oe(e,"nested arrays are not supported inside keys"),typeof i=="object"&&ly(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&ly(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(f=0,c=l.length;f<c;f+=1)fy(e,r,l[f],t);else fy(e,r,l,t);else!e.json&&!Ar.call(t,i)&&Ar.call(r,i)&&(e.line=a||e.line,e.lineStart=o||e.lineStart,e.position=s||e.position,Oe(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:l}):r[i]=l,delete t[i];return r}function Lc(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Oe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Qe(e,r,t){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Yr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Vt(i))for(Lc(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return t!==-1&&n!==0&&e.lineIndent<t&&co(e,"deficient indentation"),n}function ho(e){var r=e.position,t;return t=e.input.charCodeAt(r),!!((t===45||t===46)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,t=e.input.charCodeAt(r),t===0||Et(t)))}function Mc(e,r){r===1?e.result+=" ":r>1&&(e.result+=Kr.repeat(`
|
|
16
|
+
`,r-1))}function eF(e,r,t){var n,i,l,a,o,s,f,c,h=e.kind,u=e.result,d;if(d=e.input.charCodeAt(e.position),Et(d)||Fn(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),Et(i)||t&&Fn(i)))return!1;for(e.kind="scalar",e.result="",l=a=e.position,o=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),Et(i)||t&&Fn(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),Et(n))break}else{if(e.position===e.lineStart&&ho(e)||t&&Fn(d))break;if(Vt(d))if(s=e.line,f=e.lineStart,c=e.lineIndent,Qe(e,!1,-1),e.lineIndent>=r){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=s,e.lineStart=f,e.lineIndent=c;break}}o&&(xr(e,l,a,!1),Mc(e,e.line-s),l=a=e.position,o=!1),Yr(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return xr(e,l,a,!1),e.result?!0:(e.kind=h,e.result=u,!1)}function tF(e,r){var t,n,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(xr(e,n,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)n=e.position,e.position++,i=e.position;else return!0;else Vt(t)?(xr(e,n,i,!0),Mc(e,Qe(e,!1,r)),n=i=e.position):e.position===e.lineStart&&ho(e)?Oe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Oe(e,"unexpected end of the stream within a single quoted scalar")}function rF(e,r){var t,n,i,l,a,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=n=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return xr(e,t,e.position,!0),e.position++,!0;if(o===92){if(xr(e,t,e.position,!0),o=e.input.charCodeAt(++e.position),Vt(o))Qe(e,!1,r);else if(o<256&&vy[o])e.result+=_y[o],e.position++;else if((a=XT(o))>0){for(i=a,l=0;i>0;i--)o=e.input.charCodeAt(++e.position),(a=YT(o))>=0?l=(l<<4)+a:Oe(e,"expected hexadecimal character");e.result+=QT(l),e.position++}else Oe(e,"unknown escape sequence");t=n=e.position}else Vt(o)?(xr(e,t,n,!0),Mc(e,Qe(e,!1,r)),t=n=e.position):e.position===e.lineStart&&ho(e)?Oe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Oe(e,"unexpected end of the stream within a double quoted scalar")}function nF(e,r){var t=!0,n,i,l,a=e.tag,o,s=e.anchor,f,c,h,u,d,p=Object.create(null),y,b,_,g;if(g=e.input.charCodeAt(e.position),g===91)c=93,d=!1,o=[];else if(g===123)c=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),g=e.input.charCodeAt(++e.position);g!==0;){if(Qe(e,!0,r),g=e.input.charCodeAt(e.position),g===c)return e.position++,e.tag=a,e.anchor=s,e.kind=d?"mapping":"sequence",e.result=o,!0;t?g===44&&Oe(e,"expected the node content, but found ','"):Oe(e,"missed comma between flow collection entries"),b=y=_=null,h=u=!1,g===63&&(f=e.input.charCodeAt(e.position+1),Et(f)&&(h=u=!0,e.position++,Qe(e,!0,r))),n=e.line,i=e.lineStart,l=e.position,Bn(e,r,uo,!1,!0),b=e.tag,y=e.result,Qe(e,!0,r),g=e.input.charCodeAt(e.position),(u||e.line===n)&&g===58&&(h=!0,g=e.input.charCodeAt(++e.position),Qe(e,!0,r),Bn(e,r,uo,!1,!0),_=e.result),d?Pn(e,o,p,b,y,_,n,i,l):h?o.push(Pn(e,null,p,b,y,_,n,i,l)):o.push(y),Qe(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(t=!0,g=e.input.charCodeAt(++e.position)):t=!1}Oe(e,"unexpected end of the stream within a flow collection")}function iF(e,r){var t,n,i=Ic,l=!1,a=!1,o=r,s=0,f=!1,c,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)Ic===i?i=h===43?uy:WT:Oe(e,"repeat of a chomping mode identifier");else if((c=ZT(h))>=0)c===0?Oe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Oe(e,"repeat of an indentation width identifier"):(o=r+c-1,a=!0);else break;if(Yr(h)){do h=e.input.charCodeAt(++e.position);while(Yr(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!Vt(h)&&h!==0)}for(;h!==0;){for(Lc(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!a||e.lineIndent<o)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>o&&(o=e.lineIndent),Vt(h)){s++;continue}if(e.lineIndent<o){i===uy?e.result+=Kr.repeat(`
|
|
17
|
+
`,l?1+s:s):i===Ic&&l&&(e.result+=`
|
|
18
|
+
`);break}for(n?Yr(h)?(f=!0,e.result+=Kr.repeat(`
|
|
19
|
+
`,l?1+s:s)):f?(f=!1,e.result+=Kr.repeat(`
|
|
20
|
+
`,s+1)):s===0?l&&(e.result+=" "):e.result+=Kr.repeat(`
|
|
21
|
+
`,s):e.result+=Kr.repeat(`
|
|
22
|
+
`,l?1+s:s),l=!0,a=!0,s=0,t=e.position;!Vt(h)&&h!==0;)h=e.input.charCodeAt(++e.position);xr(e,t,e.position,!1)}return!0}function py(e,r){var t,n=e.tag,i=e.anchor,l=[],a,o=!1,s;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),s=e.input.charCodeAt(e.position);s!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Oe(e,"tab characters must not be used in indentation")),!(s!==45||(a=e.input.charCodeAt(e.position+1),!Et(a))));){if(o=!0,e.position++,Qe(e,!0,-1)&&e.lineIndent<=r){l.push(null),s=e.input.charCodeAt(e.position);continue}if(t=e.line,Bn(e,r,yy,!1,!0),l.push(e.result),Qe(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>r)&&s!==0)Oe(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return o?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=l,!0):!1}function sF(e,r,t){var n,i,l,a,o,s,f=e.tag,c=e.anchor,h={},u=Object.create(null),d=null,p=null,y=null,b=!1,_=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),g=e.input.charCodeAt(e.position);g!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Oe(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),l=e.line,(g===63||g===58)&&Et(n))g===63?(b&&(Pn(e,h,u,d,p,null,a,o,s),d=p=y=null),_=!0,b=!0,i=!0):b?(b=!1,i=!0):Oe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else{if(a=e.line,o=e.lineStart,s=e.position,!Bn(e,t,my,!1,!0))break;if(e.line===l){for(g=e.input.charCodeAt(e.position);Yr(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),Et(g)||Oe(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(Pn(e,h,u,d,p,null,a,o,s),d=p=y=null),_=!0,b=!1,i=!1,d=e.tag,p=e.result;else if(_)Oe(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=c,!0}else if(_)Oe(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=c,!0}if((e.line===l||e.lineIndent>r)&&(b&&(a=e.line,o=e.lineStart,s=e.position),Bn(e,r,lo,!0,i)&&(b?p=e.result:y=e.result),b||(Pn(e,h,u,d,p,y,a,o,s),d=p=y=null),Qe(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===l||e.lineIndent>r)&&g!==0)Oe(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return b&&Pn(e,h,u,d,p,null,a,o,s),_&&(e.tag=f,e.anchor=c,e.kind="mapping",e.result=h),_}function oF(e){var r,t=!1,n=!1,i,l,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Oe(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",r=e.position,t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(l=e.input.slice(r,e.position),a=e.input.charCodeAt(++e.position)):Oe(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Et(a);)a===33&&(n?Oe(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),gy.test(i)||Oe(e,"named tag handle cannot contain such characters"),n=!0,r=e.position+1)),a=e.input.charCodeAt(++e.position);l=e.input.slice(r,e.position),KT.test(l)&&Oe(e,"tag suffix cannot contain flow indicator characters")}l&&!by.test(l)&&Oe(e,"tag name cannot contain such characters: "+l);try{l=decodeURIComponent(l)}catch{Oe(e,"tag name is malformed: "+l)}return t?e.tag=l:Ar.call(e.tagMap,i)?e.tag=e.tagMap[i]+l:i==="!"?e.tag="!"+l:i==="!!"?e.tag="tag:yaml.org,2002:"+l:Oe(e,'undeclared tag handle "'+i+'"'),!0}function aF(e){var r,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&Oe(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!Et(t)&&!Fn(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&Oe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function uF(e){var r,t,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!Et(n)&&!Fn(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&Oe(e,"name of an alias node must contain at least one character"),t=e.input.slice(r,e.position),Ar.call(e.anchorMap,t)||Oe(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],Qe(e,!0,-1),!0}function Bn(e,r,t,n,i){var l,a,o,s=1,f=!1,c=!1,h,u,d,p,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,l=a=o=lo===t||yy===t,n&&Qe(e,!0,-1)&&(f=!0,e.lineIndent>r?s=1:e.lineIndent===r?s=0:e.lineIndent<r&&(s=-1)),s===1)for(;oF(e)||aF(e);)Qe(e,!0,-1)?(f=!0,o=l,e.lineIndent>r?s=1:e.lineIndent===r?s=0:e.lineIndent<r&&(s=-1)):o=!1;if(o&&(o=f||i),(s===1||lo===t)&&(uo===t||my===t?y=r:y=r+1,b=e.position-e.lineStart,s===1?o&&(py(e,b)||sF(e,b,y))||nF(e,y)?c=!0:(a&&iF(e,y)||tF(e,y)||rF(e,y)?c=!0:uF(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&Oe(e,"alias node should not have any properties")):eF(e,y,uo===t)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):s===0&&(c=o&&py(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Oe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,u=e.implicitTypes.length;h<u;h+=1)if(p=e.implicitTypes[h],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Ar.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],h=0,u=d.length;h<u;h+=1)if(e.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||Oe(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&Oe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Oe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function lF(e){var r=e.position,t,n,i,l=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Qe(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(l=!0,a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!Et(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&Oe(e,"directive name must not be less than one character in length");a!==0;){for(;Yr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Vt(a));break}if(Vt(a))break;for(t=e.position;a!==0&&!Et(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}a!==0&&Lc(e),Ar.call(hy,n)?hy[n](e,n,i):co(e,'unknown document directive "'+n+'"')}if(Qe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Qe(e,!0,-1)):l&&Oe(e,"directives end mark is expected"),Bn(e,e.lineIndent-1,lo,!1,!0),Qe(e,!0,-1),e.checkLineBreaks&&VT.test(e.input.slice(r,e.position))&&co(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ho(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Qe(e,!0,-1));return}if(e.position<e.length-1)Oe(e,"end of the stream or a document separator is expected");else return}function Ey(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
23
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new JT(e,r),n=e.indexOf("\0");for(n!==-1&&(t.position=n,Oe(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)lF(t);return t.documents}function cF(e,r,t){r!==null&&typeof r=="object"&&typeof t=="undefined"&&(t=r,r=null);var n=Ey(e,t);if(typeof r!="function")return n;for(var i=0,l=n.length;i<l;i+=1)r(n[i])}function hF(e,r){var t=Ey(e,r);if(t.length!==0){if(t.length===1)return t[0];throw new dy("expected a single document in the stream, but found more")}}Nc.exports.loadAll=cF;Nc.exports.load=hF});var Gy=ye((pU,Uy)=>{"use strict";var mo=On(),Fi=Tn(),fF=ao(),Fy=Object.prototype.toString,Py=Object.prototype.hasOwnProperty,Uc=65279,pF=9,Ri=10,dF=13,mF=32,yF=33,gF=34,jc=35,bF=37,vF=38,_F=39,wF=42,By=44,EF=45,fo=58,SF=61,xF=62,AF=63,CF=64,Iy=91,Ly=93,kF=96,My=123,DF=124,Ny=125,pt={};pt[0]="\\0";pt[7]="\\a";pt[8]="\\b";pt[9]="\\t";pt[10]="\\n";pt[11]="\\v";pt[12]="\\f";pt[13]="\\r";pt[27]="\\e";pt[34]='\\"';pt[92]="\\\\";pt[133]="\\N";pt[160]="\\_";pt[8232]="\\L";pt[8233]="\\P";var RF=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],OF=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function TF(e,r){var t,n,i,l,a,o,s;if(r===null)return{};for(t={},n=Object.keys(r),i=0,l=n.length;i<l;i+=1)a=n[i],o=String(r[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),s=e.compiledTypeMap.fallback[a],s&&Py.call(s.styleAliases,o)&&(o=s.styleAliases[o]),t[a]=o;return t}function FF(e){var r,t,n;if(r=e.toString(16).toUpperCase(),e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new Fi("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+mo.repeat("0",n-r.length)+r}var PF=1,Oi=2;function BF(e){this.schema=e.schema||fF,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=mo.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=TF(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Oi:PF,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function xy(e,r){for(var t=mo.repeat(" ",r),n=0,i=-1,l="",a,o=e.length;n<o;)i=e.indexOf(`
|
|
24
|
+
`,n),i===-1?(a=e.slice(n),n=o):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
|
25
|
+
`&&(l+=t),l+=a;return l}function $c(e,r){return`
|
|
26
|
+
`+mo.repeat(" ",e.indent*r)}function IF(e,r){var t,n,i;for(t=0,n=e.implicitTypes.length;t<n;t+=1)if(i=e.implicitTypes[t],i.resolve(r))return!0;return!1}function po(e){return e===mF||e===pF}function Ti(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Uc||65536<=e&&e<=1114111}function Ay(e){return Ti(e)&&e!==Uc&&e!==dF&&e!==Ri}function Cy(e,r,t){var n=Ay(e),i=n&&!po(e);return(t?n:n&&e!==By&&e!==Iy&&e!==Ly&&e!==My&&e!==Ny)&&e!==jc&&!(r===fo&&!i)||Ay(r)&&!po(r)&&e===jc||r===fo&&i}function LF(e){return Ti(e)&&e!==Uc&&!po(e)&&e!==EF&&e!==AF&&e!==fo&&e!==By&&e!==Iy&&e!==Ly&&e!==My&&e!==Ny&&e!==jc&&e!==vF&&e!==wF&&e!==yF&&e!==DF&&e!==SF&&e!==xF&&e!==_F&&e!==gF&&e!==bF&&e!==CF&&e!==kF}function MF(e){return!po(e)&&e!==fo}function Di(e,r){var t=e.charCodeAt(r),n;return t>=55296&&t<=56319&&r+1<e.length&&(n=e.charCodeAt(r+1),n>=56320&&n<=57343)?(t-55296)*1024+n-56320+65536:t}function jy(e){var r=/^\n* /;return r.test(e)}var $y=1,Hc=2,Hy=3,qy=4,In=5;function NF(e,r,t,n,i,l,a,o){var s,f=0,c=null,h=!1,u=!1,d=n!==-1,p=-1,y=LF(Di(e,0))&&MF(Di(e,e.length-1));if(r||a)for(s=0;s<e.length;f>=65536?s+=2:s++){if(f=Di(e,s),!Ti(f))return In;y=y&&Cy(f,c,o),c=f}else{for(s=0;s<e.length;f>=65536?s+=2:s++){if(f=Di(e,s),f===Ri)h=!0,d&&(u=u||s-p-1>n&&e[p+1]!==" ",p=s);else if(!Ti(f))return In;y=y&&Cy(f,c,o),c=f}u=u||d&&s-p-1>n&&e[p+1]!==" "}return!h&&!u?y&&!a&&!i(e)?$y:l===Oi?In:Hc:t>9&&jy(e)?In:a?l===Oi?In:Hc:u?qy:Hy}function jF(e,r,t,n,i){e.dump=function(){if(r.length===0)return e.quotingType===Oi?'""':"''";if(!e.noCompatMode&&(RF.indexOf(r)!==-1||OF.test(r)))return e.quotingType===Oi?'"'+r+'"':"'"+r+"'";var l=e.indent*Math.max(1,t),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-l),o=n||e.flowLevel>-1&&t>=e.flowLevel;function s(f){return IF(e,f)}switch(NF(r,o,e.indent,a,s,e.quotingType,e.forceQuotes&&!n,i)){case $y:return r;case Hc:return"'"+r.replace(/'/g,"''")+"'";case Hy:return"|"+ky(r,e.indent)+Dy(xy(r,l));case qy:return">"+ky(r,e.indent)+Dy(xy($F(r,a),l));case In:return'"'+HF(r,a)+'"';default:throw new Fi("impossible error: invalid scalar style")}}()}function ky(e,r){var t=jy(e)?String(r):"",n=e[e.length-1]===`
|
|
27
|
+
`,i=n&&(e[e.length-2]===`
|
|
28
|
+
`||e===`
|
|
29
|
+
`),l=i?"+":n?"":"-";return t+l+`
|
|
30
|
+
`}function Dy(e){return e[e.length-1]===`
|
|
31
|
+
`?e.slice(0,-1):e}function $F(e,r){for(var t=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
|
|
32
|
+
`);return f=f!==-1?f:e.length,t.lastIndex=f,Ry(e.slice(0,f),r)}(),i=e[0]===`
|
|
33
|
+
`||e[0]===" ",l,a;a=t.exec(e);){var o=a[1],s=a[2];l=s[0]===" ",n+=o+(!i&&!l&&s!==""?`
|
|
34
|
+
`:"")+Ry(s,r),i=l}return n}function Ry(e,r){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,n,i=0,l,a=0,o=0,s="";n=t.exec(e);)o=n.index,o-i>r&&(l=a>i?a:o,s+=`
|
|
35
|
+
`+e.slice(i,l),i=l+1),a=o;return s+=`
|
|
36
|
+
`,e.length-i>r&&a>i?s+=e.slice(i,a)+`
|
|
37
|
+
`+e.slice(a+1):s+=e.slice(i),s.slice(1)}function HF(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=Di(e,i),n=pt[t],!n&&Ti(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||FF(t);return r}function qF(e,r,t){var n="",i=e.tag,l,a,o;for(l=0,a=t.length;l<a;l+=1)o=t[l],e.replacer&&(o=e.replacer.call(t,String(l),o)),(ur(e,r,o,!1,!1)||typeof o=="undefined"&&ur(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function Oy(e,r,t,n){var i="",l=e.tag,a,o,s;for(a=0,o=t.length;a<o;a+=1)s=t[a],e.replacer&&(s=e.replacer.call(t,String(a),s)),(ur(e,r+1,s,!0,!0,!1,!0)||typeof s=="undefined"&&ur(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=$c(e,r)),e.dump&&Ri===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=l,e.dump=i||"[]"}function UF(e,r,t){var n="",i=e.tag,l=Object.keys(t),a,o,s,f,c;for(a=0,o=l.length;a<o;a+=1)c="",n!==""&&(c+=", "),e.condenseFlow&&(c+='"'),s=l[a],f=t[s],e.replacer&&(f=e.replacer.call(t,s,f)),ur(e,r,s,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ur(e,r,f,!1,!1)&&(c+=e.dump,n+=c));e.tag=i,e.dump="{"+n+"}"}function GF(e,r,t,n){var i="",l=e.tag,a=Object.keys(t),o,s,f,c,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Fi("sortKeys must be a boolean or a function");for(o=0,s=a.length;o<s;o+=1)u="",(!n||i!=="")&&(u+=$c(e,r)),f=a[o],c=t[f],e.replacer&&(c=e.replacer.call(t,f,c)),ur(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&Ri===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=$c(e,r)),ur(e,r+1,c,!0,h)&&(e.dump&&Ri===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=l,e.dump=i||"{}"}function Ty(e,r,t){var n,i,l,a,o,s;for(i=t?e.explicitTypes:e.implicitTypes,l=0,a=i.length;l<a;l+=1)if(o=i[l],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof r=="object"&&r instanceof o.instanceOf)&&(!o.predicate||o.predicate(r))){if(t?o.multi&&o.representName?e.tag=o.representName(r):e.tag=o.tag:e.tag="?",o.represent){if(s=e.styleMap[o.tag]||o.defaultStyle,Fy.call(o.represent)==="[object Function]")n=o.represent(r,s);else if(Py.call(o.represent,s))n=o.represent[s](r,s);else throw new Fi("!<"+o.tag+'> tag resolver accepts not "'+s+'" style');e.dump=n}return!0}return!1}function ur(e,r,t,n,i,l,a){e.tag=null,e.dump=t,Ty(e,t,!1)||Ty(e,t,!0);var o=Fy.call(e.dump),s=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var c=o==="[object Object]"||o==="[object Array]",h,u;if(c&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(c&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(GF(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(UF(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(o==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?Oy(e,r-1,e.dump,i):Oy(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(qF(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&jF(e,e.dump,r,l,s);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Fi("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function WF(e,r){var t=[],n=[],i,l;for(qc(e,t,n),i=0,l=n.length;i<l;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(l)}function qc(e,r,t){var n,i,l;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,l=e.length;i<l;i+=1)qc(e[i],r,t);else for(n=Object.keys(e),i=0,l=n.length;i<l;i+=1)qc(e[n[i]],r,t)}function zF(e,r){r=r||{};var t=new BF(r);t.noRefs||WF(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),ur(t,0,n,!0,!0)?t.dump+`
|
|
38
|
+
`:""}Uy.exports.dump=zF});var zy=ye((dU,bt)=>{"use strict";var Wy=Sy(),VF=Gy();function Gc(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}bt.exports.Type=ft();bt.exports.Schema=gc();bt.exports.FAILSAFE_SCHEMA=wc();bt.exports.JSON_SCHEMA=Cc();bt.exports.CORE_SCHEMA=kc();bt.exports.DEFAULT_SCHEMA=ao();bt.exports.load=Wy.load;bt.exports.loadAll=Wy.loadAll;bt.exports.dump=VF.dump;bt.exports.YAMLException=Tn();bt.exports.types={binary:Tc(),float:Ac(),map:_c(),null:Ec(),pairs:Pc(),set:Bc(),timestamp:Dc(),bool:Sc(),int:xc(),merge:Rc(),omap:Fc(),seq:vc(),str:bc()};bt.exports.safeLoad=Gc("safeLoad","load");bt.exports.safeLoadAll=Gc("safeLoadAll","loadAll");bt.exports.safeDump=Gc("safeDump","dump")});var Ky=ye((mU,Vy)=>{"use strict";var KF=wu(),YF=Cu();Vy.exports=KF(()=>{YF(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var Yy=ye(Ln=>{"use strict";var XF=Ky(),yo=!1;Ln.show=(e=process.stderr)=>{e.isTTY&&(yo=!1,e.write("\x1B[?25h"))};Ln.hide=(e=process.stderr)=>{e.isTTY&&(XF(),yo=!0,e.write("\x1B[?25l"))};Ln.toggle=(e,r)=>{e!==void 0&&(yo=e),yo?Ln.show(r):Ln.hide(r)}});var Xy=ye((gU,ZF)=>{ZF.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var Jy=ye((bU,Qy)=>{"use strict";var go=Object.assign({},Xy()),Zy=Object.keys(go);Object.defineProperty(go,"random",{get(){let e=Math.floor(Math.random()*Zy.length),r=Zy[e];return go[r]}});Qy.exports=go});var tg=ye((vU,eg)=>{"use strict";var Cr=require("chalk"),QF=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",JF={info:Cr.blue("\u2139"),success:Cr.green("\u2714"),warning:Cr.yellow("\u26A0"),error:Cr.red("\u2716")},eP={info:Cr.blue("i"),success:Cr.green("\u221A"),warning:Cr.yellow("\u203C"),error:Cr.red("\xD7")};eg.exports=QF?JF:eP});var ng=ye((_U,rg)=>{"use strict";rg.exports=({onlyFirst:e=!1}={})=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}});var sg=ye((wU,ig)=>{"use strict";var tP=ng();ig.exports=e=>typeof e=="string"?e.replace(tP(),""):e});var og=ye((EU,bo)=>{var rP=function(){"use strict";function e(a,o,s,f){var c;typeof o=="object"&&(s=o.depth,f=o.prototype,c=o.filter,o=o.circular);var h=[],u=[],d=typeof Buffer!="undefined";typeof o=="undefined"&&(o=!0),typeof s=="undefined"&&(s=1/0);function p(y,b){if(y===null)return null;if(b==0)return y;var _,g;if(typeof y!="object")return y;if(e.__isArray(y))_=[];else if(e.__isRegExp(y))_=new RegExp(y.source,l(y)),y.lastIndex&&(_.lastIndex=y.lastIndex);else if(e.__isDate(y))_=new Date(y.getTime());else{if(d&&Buffer.isBuffer(y))return Buffer.allocUnsafe?_=Buffer.allocUnsafe(y.length):_=new Buffer(y.length),y.copy(_),_;typeof f=="undefined"?(g=Object.getPrototypeOf(y),_=Object.create(g)):(_=Object.create(f),g=f)}if(o){var S=h.indexOf(y);if(S!=-1)return u[S];h.push(y),u.push(_)}for(var E in y){var v;g&&(v=Object.getOwnPropertyDescriptor(g,E)),!(v&&v.set==null)&&(_[E]=p(y[E],b-1))}return _}return p(a,s)}e.clonePrototype=function(o){if(o===null)return null;var s=function(){};return s.prototype=o,new s};function r(a){return Object.prototype.toString.call(a)}e.__objToStr=r;function t(a){return typeof a=="object"&&r(a)==="[object Date]"}e.__isDate=t;function n(a){return typeof a=="object"&&r(a)==="[object Array]"}e.__isArray=n;function i(a){return typeof a=="object"&&r(a)==="[object RegExp]"}e.__isRegExp=i;function l(a){var o="";return a.global&&(o+="g"),a.ignoreCase&&(o+="i"),a.multiline&&(o+="m"),o}return e.__getRegExpFlags=l,e}();typeof bo=="object"&&bo.exports&&(bo.exports=rP)});var ug=ye((SU,ag)=>{var nP=og();ag.exports=function(e,r){return e=e||{},Object.keys(r).forEach(function(t){typeof e[t]=="undefined"&&(e[t]=nP(r[t]))}),e}});var cg=ye((xU,lg)=>{lg.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var dg=ye((AU,Wc)=>{"use strict";var iP=ug(),Pi=cg(),fg={nul:0,control:0};Wc.exports=function(r){return pg(r,fg)};Wc.exports.config=function(e){return e=iP(e||{},fg),function(t){return pg(t,e)}};function pg(e,r){if(typeof e!="string")return hg(e,r);for(var t=0,n=0;n<e.length;n++){var i=hg(e.charCodeAt(n),r);if(i<0)return-1;t+=i}return t}function hg(e,r){return e===0?r.nul:e<32||e>=127&&e<160?r.control:sP(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function sP(e){var r=0,t=Pi.length-1,n;if(e<Pi[0][0]||e>Pi[t][1])return!1;for(;t>=r;)if(n=Math.floor((r+t)/2),e>Pi[n][1])r=n+1;else if(e<Pi[n][0])t=n-1;else return!0;return!1}});var yg=ye((CU,mg)=>{"use strict";mg.exports=({stream:e=process.stdout}={})=>!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var bg=ye((kU,gg)=>{var zc=require("stream");gg.exports=st;function st(e){zc.apply(this),e=e||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}st.prototype=Object.create(zc.prototype);Object.defineProperty(st.prototype,"constructor",{value:st,enumerable:!1});st.prototype.mute=function(){this.muted=!0};st.prototype.unmute=function(){this.muted=!1};Object.defineProperty(st.prototype,"_onpipe",{value:oP,enumerable:!1,writable:!0,configurable:!0});function oP(e){this._src=e}Object.defineProperty(st.prototype,"isTTY",{get:aP,set:uP,enumerable:!0,configurable:!0});function aP(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function uP(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(st.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(st.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});st.prototype.pipe=function(e,r){return this._dest=e,zc.prototype.pipe.call(this,e,r)};st.prototype.pause=function(){if(this._src)return this._src.pause()};st.prototype.resume=function(){if(this._src)return this._src.resume()};st.prototype.write=function(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.substr(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.substr(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)};st.prototype.end=function(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")};function Vc(e){return function(){var r=this._dest,t=this._src;r&&r[e]&&r[e].apply(r,arguments),t&&t[e]&&t[e].apply(t,arguments)}}st.prototype.destroy=Vc("destroy");st.prototype.destroySoon=Vc("destroySoon");st.prototype.close=Vc("close")});var _g=ye((DU,Xc)=>{"use strict";var lP=require("readline"),cP=require("chalk"),vg=Yy(),vo=Jy(),_o=tg(),hP=sg(),fP=dg(),pP=yg(),dP=bg(),Kc=Symbol("text"),wo=Symbol("prefixText"),mP=3,Yc=class{constructor(){this.requests=0,this.mutedStream=new dP,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let r=this;this.ourEmit=function(t,n,...i){let{stdin:l}=process;if(r.requests>0||l.emit===r.ourEmit){if(t==="keypress")return;t==="data"&&n.includes(mP)&&process.emit("SIGINT"),Reflect.apply(r.oldEmit,this,[t,n,...i])}else Reflect.apply(process.stdin.emit,this,[t,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=lP.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},Eo,So=class{constructor(r){Eo||(Eo=new Yc),typeof r=="string"&&(r={text:r}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...r},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:pP({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(r=0){if(!(r>=0&&Number.isInteger(r)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=r}_updateInterval(r){r!==void 0&&(this.interval=r)}get spinner(){return this._spinner}set spinner(r){if(this.frameIndex=0,typeof r=="object"){if(r.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=r}else if(process.platform==="win32")this._spinner=vo.line;else if(r===void 0)this._spinner=vo.dots;else if(vo[r])this._spinner=vo[r];else throw new Error(`There is no built-in spinner named '${r}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Kc]}get prefixText(){return this[wo]}get isSpinning(){return this.id!==void 0}updateLineCount(){let r=this.stream.columns||80,t=typeof this[wo]=="string"?this[wo]+"-":"";this.lineCount=hP(t+"--"+this[Kc]).split(`
|
|
39
|
+
`).reduce((n,i)=>n+Math.max(1,Math.ceil(fP(i)/r)),0)}set text(r){this[Kc]=r,this.updateLineCount()}set prefixText(r){this[wo]=r,this.updateLineCount()}frame(){let{frames:r}=this.spinner,t=r[this.frameIndex];this.color&&(t=cP[this.color](t)),this.frameIndex=++this.frameIndex%r.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+t+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let r=0;r<this.linesToClear;r++)r>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(r){return r&&(this.text=r),this.isEnabled?this.isSpinning?this:(this.hideCursor&&vg.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,Eo.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
40
|
+
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&vg.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(Eo.stop(),this.isDiscardingStdin=!1),this):this}succeed(r){return this.stopAndPersist({symbol:_o.success,text:r})}fail(r){return this.stopAndPersist({symbol:_o.error,text:r})}warn(r){return this.stopAndPersist({symbol:_o.warning,text:r})}info(r){return this.stopAndPersist({symbol:_o.info,text:r})}stopAndPersist(r={}){let t=r.prefixText||this.prefixText,n=typeof t=="string"&&t!==""?t+" ":"",i=r.text||this.text,l=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${n}${r.symbol||" "}${l}
|
|
41
|
+
`),this}},yP=function(e){return new So(e)};Xc.exports=yP;Xc.exports.promise=(e,r)=>{if(typeof e.then!="function")throw new TypeError("Parameter `action` must be a Promise");let t=new So(r);return t.start(),(async()=>{try{await e,t.succeed()}catch{t.fail()}})(),t}});var wg=ye((RU,xo)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,i=e.round,l=e.min,a=e.max,o=e.random;function s(Y,ne){if(Y=Y||"",ne=ne||{},Y instanceof s)return Y;if(!(this instanceof s))return new s(Y,ne);var T=f(Y);this._originalInput=Y,this._r=T.r,this._g=T.g,this._b=T.b,this._a=T.a,this._roundA=i(100*this._a)/100,this._format=ne.format||T.format,this._gradientType=ne.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=T.ok,this._tc_id=n++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Y=this.toRgb();return(Y.r*299+Y.g*587+Y.b*114)/1e3},getLuminance:function(){var Y=this.toRgb(),ne,T,q,C,H,X;return ne=Y.r/255,T=Y.g/255,q=Y.b/255,ne<=.03928?C=ne/12.92:C=e.pow((ne+.055)/1.055,2.4),T<=.03928?H=T/12.92:H=e.pow((T+.055)/1.055,2.4),q<=.03928?X=q/12.92:X=e.pow((q+.055)/1.055,2.4),.2126*C+.7152*H+.0722*X},setAlpha:function(Y){return this._a=U(Y),this._roundA=i(100*this._a)/100,this},toHsv:function(){var Y=d(this._r,this._g,this._b);return{h:Y.h*360,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=d(this._r,this._g,this._b),ne=i(Y.h*360),T=i(Y.s*100),q=i(Y.v*100);return this._a==1?"hsv("+ne+", "+T+"%, "+q+"%)":"hsva("+ne+", "+T+"%, "+q+"%, "+this._roundA+")"},toHsl:function(){var Y=h(this._r,this._g,this._b);return{h:Y.h*360,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=h(this._r,this._g,this._b),ne=i(Y.h*360),T=i(Y.s*100),q=i(Y.l*100);return this._a==1?"hsl("+ne+", "+T+"%, "+q+"%)":"hsla("+ne+", "+T+"%, "+q+"%, "+this._roundA+")"},toHex:function(Y){return y(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return b(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(W(this._r,255)*100)+"%",g:i(W(this._g,255)*100)+"%",b:i(W(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(W(this._r,255)*100)+"%, "+i(W(this._g,255)*100)+"%, "+i(W(this._b,255)*100)+"%)":"rgba("+i(W(this._r,255)*100)+"%, "+i(W(this._g,255)*100)+"%, "+i(W(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:M[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(Y){var ne="#"+_(this._r,this._g,this._b,this._a),T=ne,q=this._gradientType?"GradientType = 1, ":"";if(Y){var C=s(Y);T="#"+_(C._r,C._g,C._b,C._a)}return"progid:DXImageTransform.Microsoft.gradient("+q+"startColorstr="+ne+",endColorstr="+T+")"},toString:function(Y){var ne=!!Y;Y=Y||this._format;var T=!1,q=this._a<1&&this._a>=0,C=!ne&&q&&(Y==="hex"||Y==="hex6"||Y==="hex3"||Y==="hex4"||Y==="hex8"||Y==="name");return C?Y==="name"&&this._a===0?this.toName():this.toRgbString():(Y==="rgb"&&(T=this.toRgbString()),Y==="prgb"&&(T=this.toPercentageRgbString()),(Y==="hex"||Y==="hex6")&&(T=this.toHexString()),Y==="hex3"&&(T=this.toHexString(!0)),Y==="hex4"&&(T=this.toHex8String(!0)),Y==="hex8"&&(T=this.toHex8String()),Y==="name"&&(T=this.toName()),Y==="hsl"&&(T=this.toHslString()),Y==="hsv"&&(T=this.toHsvString()),T||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Y,ne){var T=Y.apply(null,[this].concat([].slice.call(ne)));return this._r=T._r,this._g=T._g,this._b=T._b,this.setAlpha(T._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(Y,ne){return Y.apply(null,[this].concat([].slice.call(ne)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(A,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(P,arguments)},triad:function(){return this._applyCombination(R,arguments)},tetrad:function(){return this._applyCombination(B,arguments)}},s.fromRatio=function(Y,ne){if(typeof Y=="object"){var T={};for(var q in Y)Y.hasOwnProperty(q)&&(q==="a"?T[q]=Y[q]:T[q]=G(Y[q]));Y=T}return s(Y,ne)};function f(Y){var ne={r:0,g:0,b:0},T=1,q=null,C=null,H=null,X=!1,ie=!1;return typeof Y=="string"&&(Y=le(Y)),typeof Y=="object"&&(Q(Y.r)&&Q(Y.g)&&Q(Y.b)?(ne=c(Y.r,Y.g,Y.b),X=!0,ie=String(Y.r).substr(-1)==="%"?"prgb":"rgb"):Q(Y.h)&&Q(Y.s)&&Q(Y.v)?(q=G(Y.s),C=G(Y.v),ne=p(Y.h,q,C),X=!0,ie="hsv"):Q(Y.h)&&Q(Y.s)&&Q(Y.l)&&(q=G(Y.s),H=G(Y.l),ne=u(Y.h,q,H),X=!0,ie="hsl"),Y.hasOwnProperty("a")&&(T=Y.a)),T=U(T),{ok:X,format:Y.format||ie,r:l(255,a(ne.r,0)),g:l(255,a(ne.g,0)),b:l(255,a(ne.b,0)),a:T}}function c(Y,ne,T){return{r:W(Y,255)*255,g:W(ne,255)*255,b:W(T,255)*255}}function h(Y,ne,T){Y=W(Y,255),ne=W(ne,255),T=W(T,255);var q=a(Y,ne,T),C=l(Y,ne,T),H,X,ie=(q+C)/2;if(q==C)H=X=0;else{var me=q-C;switch(X=ie>.5?me/(2-q-C):me/(q+C),q){case Y:H=(ne-T)/me+(ne<T?6:0);break;case ne:H=(T-Y)/me+2;break;case T:H=(Y-ne)/me+4;break}H/=6}return{h:H,s:X,l:ie}}function u(Y,ne,T){var q,C,H;Y=W(Y,360),ne=W(ne,100),T=W(T,100);function X(ae,pe,oe){return oe<0&&(oe+=1),oe>1&&(oe-=1),oe<1/6?ae+(pe-ae)*6*oe:oe<1/2?pe:oe<2/3?ae+(pe-ae)*(2/3-oe)*6:ae}if(ne===0)q=C=H=T;else{var ie=T<.5?T*(1+ne):T+ne-T*ne,me=2*T-ie;q=X(me,ie,Y+1/3),C=X(me,ie,Y),H=X(me,ie,Y-1/3)}return{r:q*255,g:C*255,b:H*255}}function d(Y,ne,T){Y=W(Y,255),ne=W(ne,255),T=W(T,255);var q=a(Y,ne,T),C=l(Y,ne,T),H,X,ie=q,me=q-C;if(X=q===0?0:me/q,q==C)H=0;else{switch(q){case Y:H=(ne-T)/me+(ne<T?6:0);break;case ne:H=(T-Y)/me+2;break;case T:H=(Y-ne)/me+4;break}H/=6}return{h:H,s:X,v:ie}}function p(Y,ne,T){Y=W(Y,360)*6,ne=W(ne,100),T=W(T,100);var q=e.floor(Y),C=Y-q,H=T*(1-ne),X=T*(1-C*ne),ie=T*(1-(1-C)*ne),me=q%6,ae=[T,X,H,H,ie,T][me],pe=[ie,T,T,X,H,H][me],oe=[H,H,ie,T,T,X][me];return{r:ae*255,g:pe*255,b:oe*255}}function y(Y,ne,T,q){var C=[V(i(Y).toString(16)),V(i(ne).toString(16)),V(i(T).toString(16))];return q&&C[0].charAt(0)==C[0].charAt(1)&&C[1].charAt(0)==C[1].charAt(1)&&C[2].charAt(0)==C[2].charAt(1)?C[0].charAt(0)+C[1].charAt(0)+C[2].charAt(0):C.join("")}function b(Y,ne,T,q,C){var H=[V(i(Y).toString(16)),V(i(ne).toString(16)),V(i(T).toString(16)),V(J(q))];return C&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)&&H[3].charAt(0)==H[3].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0)+H[3].charAt(0):H.join("")}function _(Y,ne,T,q){var C=[V(J(q)),V(i(Y).toString(16)),V(i(ne).toString(16)),V(i(T).toString(16))];return C.join("")}s.equals=function(Y,ne){return!Y||!ne?!1:s(Y).toRgbString()==s(ne).toRgbString()},s.random=function(){return s.fromRatio({r:o(),g:o(),b:o()})};function g(Y,ne){ne=ne===0?0:ne||10;var T=s(Y).toHsl();return T.s-=ne/100,T.s=se(T.s),s(T)}function S(Y,ne){ne=ne===0?0:ne||10;var T=s(Y).toHsl();return T.s+=ne/100,T.s=se(T.s),s(T)}function E(Y){return s(Y).desaturate(100)}function v(Y,ne){ne=ne===0?0:ne||10;var T=s(Y).toHsl();return T.l+=ne/100,T.l=se(T.l),s(T)}function m(Y,ne){ne=ne===0?0:ne||10;var T=s(Y).toRgb();return T.r=a(0,l(255,T.r-i(255*-(ne/100)))),T.g=a(0,l(255,T.g-i(255*-(ne/100)))),T.b=a(0,l(255,T.b-i(255*-(ne/100)))),s(T)}function w(Y,ne){ne=ne===0?0:ne||10;var T=s(Y).toHsl();return T.l-=ne/100,T.l=se(T.l),s(T)}function x(Y,ne){var T=s(Y).toHsl(),q=(T.h+ne)%360;return T.h=q<0?360+q:q,s(T)}function A(Y){var ne=s(Y).toHsl();return ne.h=(ne.h+180)%360,s(ne)}function R(Y){var ne=s(Y).toHsl(),T=ne.h;return[s(Y),s({h:(T+120)%360,s:ne.s,l:ne.l}),s({h:(T+240)%360,s:ne.s,l:ne.l})]}function B(Y){var ne=s(Y).toHsl(),T=ne.h;return[s(Y),s({h:(T+90)%360,s:ne.s,l:ne.l}),s({h:(T+180)%360,s:ne.s,l:ne.l}),s({h:(T+270)%360,s:ne.s,l:ne.l})]}function P(Y){var ne=s(Y).toHsl(),T=ne.h;return[s(Y),s({h:(T+72)%360,s:ne.s,l:ne.l}),s({h:(T+216)%360,s:ne.s,l:ne.l})]}function O(Y,ne,T){ne=ne||6,T=T||30;var q=s(Y).toHsl(),C=360/T,H=[s(Y)];for(q.h=(q.h-(C*ne>>1)+720)%360;--ne;)q.h=(q.h+C)%360,H.push(s(q));return H}function D(Y,ne){ne=ne||6;for(var T=s(Y).toHsv(),q=T.h,C=T.s,H=T.v,X=[],ie=1/ne;ne--;)X.push(s({h:q,s:C,v:H})),H=(H+ie)%1;return X}s.mix=function(Y,ne,T){T=T===0?0:T||50;var q=s(Y).toRgb(),C=s(ne).toRgb(),H=T/100,X={r:(C.r-q.r)*H+q.r,g:(C.g-q.g)*H+q.g,b:(C.b-q.b)*H+q.b,a:(C.a-q.a)*H+q.a};return s(X)},s.readability=function(Y,ne){var T=s(Y),q=s(ne);return(e.max(T.getLuminance(),q.getLuminance())+.05)/(e.min(T.getLuminance(),q.getLuminance())+.05)},s.isReadable=function(Y,ne,T){var q=s.readability(Y,ne),C,H;switch(H=!1,C=ue(T),C.level+C.size){case"AAsmall":case"AAAlarge":H=q>=4.5;break;case"AAlarge":H=q>=3;break;case"AAAsmall":H=q>=7;break}return H},s.mostReadable=function(Y,ne,T){var q=null,C=0,H,X,ie,me;T=T||{},X=T.includeFallbackColors,ie=T.level,me=T.size;for(var ae=0;ae<ne.length;ae++)H=s.readability(Y,ne[ae]),H>C&&(C=H,q=s(ne[ae]));return s.isReadable(Y,q,{level:ie,size:me})||!X?q:(T.includeFallbackColors=!1,s.mostReadable(Y,["#fff","#000"],T))};var k=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=s.hexNames=L(k);function L(Y){var ne={};for(var T in Y)Y.hasOwnProperty(T)&&(ne[Y[T]]=T);return ne}function U(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function W(Y,ne){N(Y)&&(Y="100%");var T=F(Y);return Y=l(ne,a(0,parseFloat(Y))),T&&(Y=parseInt(Y*ne,10)/100),e.abs(Y-ne)<1e-6?1:Y%ne/parseFloat(ne)}function se(Y){return l(1,a(0,Y))}function I(Y){return parseInt(Y,16)}function N(Y){return typeof Y=="string"&&Y.indexOf(".")!=-1&&parseFloat(Y)===1}function F(Y){return typeof Y=="string"&&Y.indexOf("%")!=-1}function V(Y){return Y.length==1?"0"+Y:""+Y}function G(Y){return Y<=1&&(Y=Y*100+"%"),Y}function J(Y){return e.round(parseFloat(Y)*255).toString(16)}function j(Y){return I(Y)/255}var z=function(){var Y="[-\\+]?\\d+%?",ne="[-\\+]?\\d*\\.\\d+%?",T="(?:"+ne+")|(?:"+Y+")",q="[\\s|\\(]+("+T+")[,|\\s]+("+T+")[,|\\s]+("+T+")\\s*\\)?",C="[\\s|\\(]+("+T+")[,|\\s]+("+T+")[,|\\s]+("+T+")[,|\\s]+("+T+")\\s*\\)?";return{CSS_UNIT:new RegExp(T),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+C),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+C),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+C),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Q(Y){return!!z.CSS_UNIT.exec(Y)}function le(Y){Y=Y.replace(r,"").replace(t,"").toLowerCase();var ne=!1;if(k[Y])Y=k[Y],ne=!0;else if(Y=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var T;return(T=z.rgb.exec(Y))?{r:T[1],g:T[2],b:T[3]}:(T=z.rgba.exec(Y))?{r:T[1],g:T[2],b:T[3],a:T[4]}:(T=z.hsl.exec(Y))?{h:T[1],s:T[2],l:T[3]}:(T=z.hsla.exec(Y))?{h:T[1],s:T[2],l:T[3],a:T[4]}:(T=z.hsv.exec(Y))?{h:T[1],s:T[2],v:T[3]}:(T=z.hsva.exec(Y))?{h:T[1],s:T[2],v:T[3],a:T[4]}:(T=z.hex8.exec(Y))?{r:I(T[1]),g:I(T[2]),b:I(T[3]),a:j(T[4]),format:ne?"name":"hex8"}:(T=z.hex6.exec(Y))?{r:I(T[1]),g:I(T[2]),b:I(T[3]),format:ne?"name":"hex"}:(T=z.hex4.exec(Y))?{r:I(T[1]+""+T[1]),g:I(T[2]+""+T[2]),b:I(T[3]+""+T[3]),a:j(T[4]+""+T[4]),format:ne?"name":"hex8"}:(T=z.hex3.exec(Y))?{r:I(T[1]+""+T[1]),g:I(T[2]+""+T[2]),b:I(T[3]+""+T[3]),format:ne?"name":"hex"}:!1}function ue(Y){var ne,T;return Y=Y||{level:"AA",size:"small"},ne=(Y.level||"AA").toUpperCase(),T=(Y.size||"small").toLowerCase(),ne!=="AA"&&ne!=="AAA"&&(ne="AA"),T!=="small"&&T!=="large"&&(T="small"),{level:ne,size:T}}typeof xo!="undefined"&&xo.exports?xo.exports=s:typeof define=="function"&&define.amd?define(function(){return s}):window.tinycolor=s})(Math)});var Dg=ye((OU,kg)=>{var Bi=wg(),Ag={r:256,g:256,b:256,a:1},Cg={h:360,s:1,v:1,a:1};function Qc(e,r,t){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=t===0?0:(r[i]-e[i])/t);return n}function Jc(e,r,t,n){let i={};for(let l in r)r.hasOwnProperty(l)&&(i[l]=e[l]*t+r[l],i[l]=i[l]<0?i[l]+n[l]:n[l]!==1?i[l]%n[l]:i[l]);return i}function Zc(e,r,t){let n=e.color.toRgb(),i=r.color.toRgb(),l=Qc(n,i,t),a=[e.color];for(let o=1;o<t;o++){let s=Jc(l,n,o,Ag);a.push(Bi(s))}return a}function Eg(e,r,t,n){let i=e.color.toHsv(),l=r.color.toHsv();if(i.s===0||l.s===0)return Zc(e,r,t);let a;if(typeof n=="boolean")a=n;else{let c=i.h<l.h&&l.h-i.h<180||i.h>l.h&&i.h-l.h>180;a=n==="long"&&c||n==="short"&&!c}let o=Qc(i,l,t),s=[e.color],f;i.h<=l.h&&!a||i.h>=l.h&&a?f=l.h-i.h:a?f=360-l.h+i.h:f=360-i.h+l.h,o.h=Math.pow(-1,a?1:0)*Math.abs(f)/t;for(let c=1;c<t;c++){let h=Jc(o,i,c,Cg);s.push(Bi(h))}return s}function Sg(e,r){let t=e.length;if(r=parseInt(r,10),isNaN(r)||r<2)throw new Error("Invalid number of steps (< 2)");if(r<t)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let l=1;l<t;l++){let a=(r-1)*(e[l].pos-e[l-1].pos);n.push(Math.max(1,Math.round(a)))}let i=1;for(let l=t-1;l--;)i+=n[l];for(;i!==r;)if(i<r){let l=Math.min.apply(null,n);n[n.indexOf(l)]++,i++}else{let l=Math.max.apply(null,n);n[n.indexOf(l)]--,i--}return n}function xg(e,r,t,n){if(r<0||r>1)throw new Error("Position must be between 0 and 1");let i,l;for(let s=0,f=e.length;s<f-1;s++)if(r>=e[s].pos&&r<e[s+1].pos){i=e[s],l=e[s+1];break}i||(i=l=e[e.length-1]);let a=Qc(i.color[t](),l.color[t](),(l.pos-i.pos)*100),o=Jc(a,i.color[t](),(r-i.pos)*100,n);return Bi(o)}var Mn=class{constructor(r){if(r.length<2)throw new Error("Invalid number of stops (< 2)");let t=r[0].pos!==void 0,n=r.length,i=-1,l=!1;this.stops=r.map((a,o)=>{let s=a.pos!==void 0;if(t^s)throw new Error("Cannot mix positionned and not posionned color stops");if(s){let f=a.color!==void 0;if(!f&&(l||o===0||o===n-1))throw new Error("Cannot define two consecutive position-only stops");if(l=!f,a={color:f?Bi(a.color):null,colorLess:!f,pos:a.pos},a.pos<0||a.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(a.pos<i)throw new Error("Color stops positions are not ordered");i=a.pos}else a={color:Bi(a.color!==void 0?a.color:a),pos:o/(n-1)};return a}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let r=[];return this.stops.forEach(function(t){r.push({color:t.color,pos:1-t.pos})}),new Mn(r.reverse())}loop(){let r=[],t=[];return this.stops.forEach(n=>{r.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{t.push({color:n.color,pos:1-n.pos/2})}),new Mn(r.concat(t.reverse()))}rgb(r){let t=Sg(this.stops,r),n=[];this.stops.forEach((i,l)=>{i.colorLess&&(i.color=Zc(this.stops[l-1],this.stops[l+1],2)[1])});for(let i=0,l=this.stops.length;i<l-1;i++){let a=Zc(this.stops[i],this.stops[i+1],t[i]);n.splice(n.length,0,...a)}return n.push(this.stops[this.stops.length-1].color),n}hsv(r,t){let n=Sg(this.stops,r),i=[];this.stops.forEach((l,a)=>{l.colorLess&&(l.color=Eg(this.stops[a-1],this.stops[a+1],2,t)[1])});for(let l=0,a=this.stops.length;l<a-1;l++){let o=Eg(this.stops[l],this.stops[l+1],n[l],t);i.splice(i.length,0,...o)}return i.push(this.stops[this.stops.length-1].color),i}css(r,t){r=r||"linear",t=t||(r==="linear"?"to right":"ellipse at center");let n=r+"-gradient("+t;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(r){return xg(this.stops,r,"toRgb",Ag)}hsvAt(r){return xg(this.stops,r,"toHsv",Cg)}};kg.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new Mn(e)}});var Pg=ye((TU,Ao)=>{"use strict";var Og=require("chalk"),gP=Dg(),Rg=/\s/g;function eh(...e){let r=gP.apply(this,e),t=(n,i)=>bP(n?n.toString():"",r,i);return t.multiline=(n,i)=>vP(n?n.toString():"",r,i),t}var Tg=(e,r,t)=>r.interpolation.toLowerCase()==="hsv"?e.hsv(t,r.hsvSpin.toLowerCase()):e.rgb(t);function bP(e,r,t){let n=Fg(t),i=Math.max(e.replace(Rg,"").length,r.stops.length),l=Tg(r,n,i),a="";for(let o of e)a+=o.match(Rg)?o:Og.hex(l.shift().toHex())(o);return a}function vP(e,r,t){let n=Fg(t),i=e.split(`
|
|
42
|
+
`),l=Math.max.apply(null,i.map(s=>s.length).concat([r.stops.length])),a=Tg(r,n,l),o=[];for(let s of i){let f=a.slice(0),c="";for(let h of s)c+=Og.hex(f.shift().toHex())(h);o.push(c)}return o.join(`
|
|
43
|
+
`)}function Fg(e){let r={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof r.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof r.interpolation}\``);if(r.interpolation.toLowerCase()==="hsv"&&typeof r.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof r.hsvSpin}\``);return r}var Ii={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};Ao.exports=eh;for(let e in Ii)Ao.exports[e]=r=>new eh(Ii[e].colors)(r,Ii[e].options),Ao.exports[e].multiline=r=>new eh(Ii[e].colors).multiline(r,Ii[e].options)});var D5=ye((JU,k5)=>{"use strict";var _P=Object.create,No=Object.defineProperty,wP=Object.getOwnPropertyDescriptor,EP=Object.getOwnPropertyNames,SP=Object.getPrototypeOf,xP=Object.prototype.hasOwnProperty,AP=(e,r)=>{for(var t in r)No(e,t,{get:r[t],enumerable:!0})},Qg=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of EP(r))!xP.call(e,i)&&i!==t&&No(e,i,{get:()=>r[i],enumerable:!(n=wP(r,i))||n.enumerable});return e},et=(e,r,t)=>(t=e!=null?_P(SP(e)):{},Qg(r||!e||!e.__esModule?No(t,"default",{value:e,enumerable:!0}):t,e)),CP=e=>Qg(No({},"__esModule",{value:!0}),e),Jg={};AP(Jg,{ConvertError:()=>vt,MANAGERS:()=>qn,convert:()=>ON,getPackageManagerMeta:()=>A5,getWorkspaceDetails:()=>S5,install:()=>C5});k5.exports=CP(Jg);var kP=Object.create,fh=Object.defineProperty,DP=Object.getOwnPropertyDescriptor,RP=Object.getOwnPropertyNames,OP=Object.getPrototypeOf,TP=Object.prototype.hasOwnProperty,fe=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,t)=>(typeof require<"u"?require:r)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),FP=(e,r)=>()=>(e&&(r=e(e=0)),r),re=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),PP=(e,r)=>{for(var t in r)fh(e,t,{get:r[t],enumerable:!0})},BP=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of RP(r))!TP.call(e,i)&&i!==t&&fh(e,i,{get:()=>r[i],enumerable:!(n=DP(r,i))||n.enumerable});return e},at=(e,r,t)=>(t=e!=null?kP(OP(e)):{},BP(r||!e||!e.__esModule?fh(t,"default",{value:e,enumerable:!0}):t,e)),ee=FP(()=>{}),IP=require("stream"),LP=require("util"),Rr=re((e,r)=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var t=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function n(m){return t.includes(m)}var i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...t];function l(m){return i.includes(m)}var a=["null","undefined","string","number","bigint","boolean","symbol"];function o(m){return a.includes(m)}function s(m){return w=>typeof w===m}var{toString:f}=Object.prototype,c=m=>{let w=f.call(m).slice(8,-1);if(/HTML\w+Element/.test(w)&&u.domElement(m))return"HTMLElement";if(l(w))return w},h=m=>w=>c(w)===m;function u(m){if(m===null)return"null";switch(typeof m){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(u.observable(m))return"Observable";if(u.array(m))return"Array";if(u.buffer(m))return"Buffer";let w=c(m);if(w)return w;if(m instanceof String||m instanceof Boolean||m instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}u.undefined=s("undefined"),u.string=s("string");var d=s("number");u.number=m=>d(m)&&!u.nan(m),u.bigint=s("bigint"),u.function_=s("function"),u.null_=m=>m===null,u.class_=m=>u.function_(m)&&m.toString().startsWith("class "),u.boolean=m=>m===!0||m===!1,u.symbol=s("symbol"),u.numericString=m=>u.string(m)&&!u.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),u.array=(m,w)=>Array.isArray(m)?u.function_(w)?m.every(w):!0:!1,u.buffer=m=>{var w,x,A,R;return(R=(A=(x=(w=m)===null||w===void 0?void 0:w.constructor)===null||x===void 0?void 0:x.isBuffer)===null||A===void 0?void 0:A.call(x,m))!==null&&R!==void 0?R:!1},u.blob=m=>h("Blob")(m),u.nullOrUndefined=m=>u.null_(m)||u.undefined(m),u.object=m=>!u.null_(m)&&(typeof m=="object"||u.function_(m)),u.iterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.iterator])},u.asyncIterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.asyncIterator])},u.generator=m=>{var w,x;return u.iterable(m)&&u.function_((w=m)===null||w===void 0?void 0:w.next)&&u.function_((x=m)===null||x===void 0?void 0:x.throw)},u.asyncGenerator=m=>u.asyncIterable(m)&&u.function_(m.next)&&u.function_(m.throw),u.nativePromise=m=>h("Promise")(m);var p=m=>{var w,x;return u.function_((w=m)===null||w===void 0?void 0:w.then)&&u.function_((x=m)===null||x===void 0?void 0:x.catch)};u.promise=m=>u.nativePromise(m)||p(m),u.generatorFunction=h("GeneratorFunction"),u.asyncGeneratorFunction=m=>c(m)==="AsyncGeneratorFunction",u.asyncFunction=m=>c(m)==="AsyncFunction",u.boundFunction=m=>u.function_(m)&&!m.hasOwnProperty("prototype"),u.regExp=h("RegExp"),u.date=h("Date"),u.error=h("Error"),u.map=m=>h("Map")(m),u.set=m=>h("Set")(m),u.weakMap=m=>h("WeakMap")(m),u.weakSet=m=>h("WeakSet")(m),u.int8Array=h("Int8Array"),u.uint8Array=h("Uint8Array"),u.uint8ClampedArray=h("Uint8ClampedArray"),u.int16Array=h("Int16Array"),u.uint16Array=h("Uint16Array"),u.int32Array=h("Int32Array"),u.uint32Array=h("Uint32Array"),u.float32Array=h("Float32Array"),u.float64Array=h("Float64Array"),u.bigInt64Array=h("BigInt64Array"),u.bigUint64Array=h("BigUint64Array"),u.arrayBuffer=h("ArrayBuffer"),u.sharedArrayBuffer=h("SharedArrayBuffer"),u.dataView=h("DataView"),u.enumCase=(m,w)=>Object.values(w).includes(m),u.directInstanceOf=(m,w)=>Object.getPrototypeOf(m)===w.prototype,u.urlInstance=m=>h("URL")(m),u.urlString=m=>{if(!u.string(m))return!1;try{return new URL(m),!0}catch{return!1}},u.truthy=m=>!!m,u.falsy=m=>!m,u.nan=m=>Number.isNaN(m),u.primitive=m=>u.null_(m)||o(typeof m),u.integer=m=>Number.isInteger(m),u.safeInteger=m=>Number.isSafeInteger(m),u.plainObject=m=>{if(f.call(m)!=="[object Object]")return!1;let w=Object.getPrototypeOf(m);return w===null||w===Object.getPrototypeOf({})},u.typedArray=m=>n(c(m));var y=m=>u.safeInteger(m)&&m>=0;u.arrayLike=m=>!u.nullOrUndefined(m)&&!u.function_(m)&&y(m.length),u.inRange=(m,w)=>{if(u.number(w))return m>=Math.min(0,w)&&m<=Math.max(w,0);if(u.array(w)&&w.length===2)return m>=Math.min(...w)&&m<=Math.max(...w);throw new TypeError(`Invalid range: ${JSON.stringify(w)}`)};var b=1,_=["innerHTML","ownerDocument","style","attributes","nodeValue"];u.domElement=m=>u.object(m)&&m.nodeType===b&&u.string(m.nodeName)&&!u.plainObject(m)&&_.every(w=>w in m),u.observable=m=>{var w,x,A,R;return m?m===((x=(w=m)[Symbol.observable])===null||x===void 0?void 0:x.call(w))||m===((R=(A=m)["@@observable"])===null||R===void 0?void 0:R.call(A)):!1},u.nodeStream=m=>u.object(m)&&u.function_(m.pipe)&&!u.observable(m),u.infinite=m=>m===1/0||m===-1/0;var g=m=>w=>u.integer(w)&&Math.abs(w%2)===m;u.evenInteger=g(0),u.oddInteger=g(1),u.emptyArray=m=>u.array(m)&&m.length===0,u.nonEmptyArray=m=>u.array(m)&&m.length>0,u.emptyString=m=>u.string(m)&&m.length===0;var S=m=>u.string(m)&&!/\S/.test(m);u.emptyStringOrWhitespace=m=>u.emptyString(m)||S(m),u.nonEmptyString=m=>u.string(m)&&m.length>0,u.nonEmptyStringAndNotWhitespace=m=>u.string(m)&&!u.emptyStringOrWhitespace(m),u.emptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length===0,u.nonEmptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length>0,u.emptySet=m=>u.set(m)&&m.size===0,u.nonEmptySet=m=>u.set(m)&&m.size>0,u.emptyMap=m=>u.map(m)&&m.size===0,u.nonEmptyMap=m=>u.map(m)&&m.size>0,u.propertyKey=m=>u.any([u.string,u.number,u.symbol],m),u.formData=m=>h("FormData")(m),u.urlSearchParams=m=>h("URLSearchParams")(m);var E=(m,w,x)=>{if(!u.function_(w))throw new TypeError(`Invalid predicate: ${JSON.stringify(w)}`);if(x.length===0)throw new TypeError("Invalid number of values");return m.call(x,w)};u.any=(m,...w)=>(u.array(m)?m:[m]).some(x=>E(Array.prototype.some,x,w)),u.all=(m,...w)=>E(Array.prototype.every,m,w);var v=(m,w,x,A={})=>{if(!m){let{multipleValues:R}=A,B=R?`received values of types ${[...new Set(x.map(P=>`\`${u(P)}\``))].join(", ")}`:`received value of type \`${u(x)}\``;throw new TypeError(`Expected value which is \`${w}\`, ${B}.`)}};e.assert={undefined:m=>v(u.undefined(m),"undefined",m),string:m=>v(u.string(m),"string",m),number:m=>v(u.number(m),"number",m),bigint:m=>v(u.bigint(m),"bigint",m),function_:m=>v(u.function_(m),"Function",m),null_:m=>v(u.null_(m),"null",m),class_:m=>v(u.class_(m),"Class",m),boolean:m=>v(u.boolean(m),"boolean",m),symbol:m=>v(u.symbol(m),"symbol",m),numericString:m=>v(u.numericString(m),"string with a number",m),array:(m,w)=>{v(u.array(m),"Array",m),w&&m.forEach(w)},buffer:m=>v(u.buffer(m),"Buffer",m),blob:m=>v(u.blob(m),"Blob",m),nullOrUndefined:m=>v(u.nullOrUndefined(m),"null or undefined",m),object:m=>v(u.object(m),"Object",m),iterable:m=>v(u.iterable(m),"Iterable",m),asyncIterable:m=>v(u.asyncIterable(m),"AsyncIterable",m),generator:m=>v(u.generator(m),"Generator",m),asyncGenerator:m=>v(u.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(u.nativePromise(m),"native Promise",m),promise:m=>v(u.promise(m),"Promise",m),generatorFunction:m=>v(u.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(u.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(u.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(u.boundFunction(m),"Function",m),regExp:m=>v(u.regExp(m),"RegExp",m),date:m=>v(u.date(m),"Date",m),error:m=>v(u.error(m),"Error",m),map:m=>v(u.map(m),"Map",m),set:m=>v(u.set(m),"Set",m),weakMap:m=>v(u.weakMap(m),"WeakMap",m),weakSet:m=>v(u.weakSet(m),"WeakSet",m),int8Array:m=>v(u.int8Array(m),"Int8Array",m),uint8Array:m=>v(u.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(u.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(u.int16Array(m),"Int16Array",m),uint16Array:m=>v(u.uint16Array(m),"Uint16Array",m),int32Array:m=>v(u.int32Array(m),"Int32Array",m),uint32Array:m=>v(u.uint32Array(m),"Uint32Array",m),float32Array:m=>v(u.float32Array(m),"Float32Array",m),float64Array:m=>v(u.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(u.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(u.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(u.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(u.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(u.dataView(m),"DataView",m),enumCase:(m,w)=>v(u.enumCase(m,w),"EnumCase",m),urlInstance:m=>v(u.urlInstance(m),"URL",m),urlString:m=>v(u.urlString(m),"string with a URL",m),truthy:m=>v(u.truthy(m),"truthy",m),falsy:m=>v(u.falsy(m),"falsy",m),nan:m=>v(u.nan(m),"NaN",m),primitive:m=>v(u.primitive(m),"primitive",m),integer:m=>v(u.integer(m),"integer",m),safeInteger:m=>v(u.safeInteger(m),"integer",m),plainObject:m=>v(u.plainObject(m),"plain object",m),typedArray:m=>v(u.typedArray(m),"TypedArray",m),arrayLike:m=>v(u.arrayLike(m),"array-like",m),domElement:m=>v(u.domElement(m),"HTMLElement",m),observable:m=>v(u.observable(m),"Observable",m),nodeStream:m=>v(u.nodeStream(m),"Node.js Stream",m),infinite:m=>v(u.infinite(m),"infinite number",m),emptyArray:m=>v(u.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(u.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(u.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(u.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(u.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(u.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(u.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(u.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(u.emptySet(m),"empty set",m),nonEmptySet:m=>v(u.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(u.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(u.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(u.propertyKey(m),"PropertyKey",m),formData:m=>v(u.formData(m),"FormData",m),urlSearchParams:m=>v(u.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(u.evenInteger(m),"even integer",m),oddInteger:m=>v(u.oddInteger(m),"odd integer",m),directInstanceOf:(m,w)=>v(u.directInstanceOf(m,w),"T",m),inRange:(m,w)=>v(u.inRange(m,w),"in range",m),any:(m,...w)=>v(u.any(m,...w),"predicate returns truthy for any value",w,{multipleValues:!0}),all:(m,...w)=>v(u.all(m,...w),"predicate returns truthy for all values",w,{multipleValues:!0})},Object.defineProperties(u,{class:{value:u.class_},function:{value:u.function_},null:{value:u.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=u,r.exports=u,r.exports.default=u,r.exports.assert=e.assert}),MP=re((e,r)=>{"use strict";ee();var t=class extends Error{constructor(i){super(i||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},n=class{static fn(i){return(...l)=>new n((a,o,s)=>{l.push(s),i(...l).then(a,o)})}constructor(i){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((l,a)=>{this._reject=a;let o=c=>{(!this._isCanceled||!f.shouldReject)&&(this._isPending=!1,l(c))},s=c=>{this._isPending=!1,a(c)},f=c=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(c)};return Object.defineProperties(f,{shouldReject:{get:()=>this._rejectOnCancel,set:c=>{this._rejectOnCancel=c}}}),i(o,s,f)})}then(i,l){return this._promise.then(i,l)}catch(i){return this._promise.catch(i)}finally(i){return this._promise.finally(i)}cancel(i){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let l of this._cancelHandlers)l()}catch(l){this._reject(l);return}this._rejectOnCancel&&this._reject(new t(i))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(n.prototype,Promise.prototype),r.exports=n,r.exports.CancelError=t}),NP=re((e,r)=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});function t(i){return i.encrypted}var n=(i,l)=>{let a;typeof l=="function"?a={connect:l}:a=l;let o=typeof a.connect=="function",s=typeof a.secureConnect=="function",f=typeof a.close=="function",c=()=>{o&&a.connect(),t(i)&&s&&(i.authorized?a.secureConnect():i.authorizationError||i.once("secureConnect",a.secureConnect)),f&&i.once("close",a.close)};i.writable&&!i.connecting?c():i.connecting?i.once("connect",c):i.destroyed&&f&&a.close(i._hadError)};e.default=n,r.exports=n,r.exports.default=n}),jP=re((e,r)=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var t=NP(),n=fe("util"),i=Number(process.versions.node.split(".")[0]),l=a=>{if(a.timings)return a.timings;let o={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};a.timings=o;let s=u=>{let d=u.emit.bind(u);u.emit=(p,...y)=>(p==="error"&&(o.error=Date.now(),o.phases.total=o.error-o.start,u.emit=d),d(p,...y))};s(a);let f=()=>{o.abort=Date.now(),(!o.response||i>=13)&&(o.phases.total=Date.now()-o.start)};a.prependOnceListener("abort",f);let c=u=>{if(o.socket=Date.now(),o.phases.wait=o.socket-o.start,n.types.isProxy(u))return;let d=()=>{o.lookup=Date.now(),o.phases.dns=o.lookup-o.socket};u.prependOnceListener("lookup",d),t.default(u,{connect:()=>{o.connect=Date.now(),o.lookup===void 0&&(u.removeListener("lookup",d),o.lookup=o.connect,o.phases.dns=o.lookup-o.socket),o.phases.tcp=o.connect-o.lookup},secureConnect:()=>{o.secureConnect=Date.now(),o.phases.tls=o.secureConnect-o.connect}})};a.socket?c(a.socket):a.prependOnceListener("socket",c);let h=()=>{var u;o.upload=Date.now(),o.phases.request=o.upload-((u=o.secureConnect)!==null&&u!==void 0?u:o.connect)};return(()=>typeof a.writableFinished=="boolean"?a.writableFinished:a.finished&&a.outputSize===0&&(!a.socket||a.socket.writableLength===0))()?h():a.prependOnceListener("finish",h),a.prependOnceListener("response",u=>{o.response=Date.now(),o.phases.firstByte=o.response-o.upload,u.timings=o,s(u),u.prependOnceListener("end",()=>{o.end=Date.now(),o.phases.download=o.end-o.response,o.phases.total=o.end-o.start}),u.prependOnceListener("aborted",f)}),o};e.default=l,r.exports=l,r.exports.default=l}),$P=re((e,r)=>{"use strict";ee();var{V4MAPPED:t,ADDRCONFIG:n,ALL:i,promises:{Resolver:l},lookup:a}=fe("dns"),{promisify:o}=fe("util"),s=fe("os"),f=Symbol("cacheableLookupCreateConnection"),c=Symbol("cacheableLookupInstance"),h=Symbol("expires"),u=typeof i=="number",d=E=>{if(!(E&&typeof E.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},p=E=>{for(let v of E)v.family!==6&&(v.address=`::ffff:${v.address}`,v.family=6)},y=()=>{let E=!1,v=!1;for(let m of Object.values(s.networkInterfaces()))for(let w of m)if(!w.internal&&(w.family==="IPv6"?v=!0:E=!0,E&&v))return{has4:E,has6:v};return{has4:E,has6:v}},b=E=>Symbol.iterator in E,_={ttl:!0},g={all:!0},S=class{constructor({cache:E=new Map,maxTtl:v=1/0,fallbackDuration:m=3600,errorTtl:w=.15,resolver:x=new l,lookup:A=a}={}){if(this.maxTtl=v,this.errorTtl=w,this._cache=E,this._resolver=x,this._dnsLookup=o(A),this._resolver instanceof l?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=o(this._resolver.resolve4.bind(this._resolver)),this._resolve6=o(this._resolver.resolve6.bind(this._resolver))),this._iface=y(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,m<1)this._fallback=!1;else{this._fallback=!0;let R=setInterval(()=>{this._hostnamesToFallback.clear()},m*1e3);R.unref&&R.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(E){this.clear(),this._resolver.setServers(E)}get servers(){return this._resolver.getServers()}lookup(E,v,m){if(typeof v=="function"?(m=v,v={}):typeof v=="number"&&(v={family:v}),!m)throw new Error("Callback must be a function.");this.lookupAsync(E,v).then(w=>{v.all?m(null,w):m(null,w.address,w.family,w.expires,w.ttl)},m)}async lookupAsync(E,v={}){typeof v=="number"&&(v={family:v});let m=await this.query(E);if(v.family===6){let w=m.filter(x=>x.family===6);v.hints&t&&(u&&v.hints&i||w.length===0)?p(m):m=w}else v.family===4&&(m=m.filter(w=>w.family===4));if(v.hints&n){let{_iface:w}=this;m=m.filter(x=>x.family===6?w.has6:w.has4)}if(m.length===0){let w=new Error(`cacheableLookup ENOTFOUND ${E}`);throw w.code="ENOTFOUND",w.hostname=E,w}return v.all?m:m[0]}async query(E){let v=await this._cache.get(E);if(!v){let m=this._pending[E];if(m)v=await m;else{let w=this.queryAndCache(E);this._pending[E]=w;try{v=await w}finally{delete this._pending[E]}}}return v=v.map(m=>({...m})),v}async _resolve(E){let v=async P=>{try{return await P}catch(O){if(O.code==="ENODATA"||O.code==="ENOTFOUND")return[];throw O}},[m,w]=await Promise.all([this._resolve4(E,_),this._resolve6(E,_)].map(P=>v(P))),x=0,A=0,R=0,B=Date.now();for(let P of m)P.family=4,P.expires=B+P.ttl*1e3,x=Math.max(x,P.ttl);for(let P of w)P.family=6,P.expires=B+P.ttl*1e3,A=Math.max(A,P.ttl);return m.length>0?w.length>0?R=Math.min(x,A):R=x:R=A,{entries:[...m,...w],cacheTtl:R}}async _lookup(E){try{return{entries:await this._dnsLookup(E,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(E,v,m){if(this.maxTtl>0&&m>0){m=Math.min(m,this.maxTtl)*1e3,v[h]=Date.now()+m;try{await this._cache.set(E,v,m)}catch(w){this.lookupAsync=async()=>{let x=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw x.cause=w,x}}b(this._cache)&&this._tick(m)}}async queryAndCache(E){if(this._hostnamesToFallback.has(E))return this._dnsLookup(E,g);let v=await this._resolve(E);v.entries.length===0&&this._fallback&&(v=await this._lookup(E),v.entries.length!==0&&this._hostnamesToFallback.add(E));let m=v.entries.length===0?this.errorTtl:v.cacheTtl;return await this._set(E,v.entries,m),v.entries}_tick(E){let v=this._nextRemovalTime;(!v||E<v)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=E,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let m=1/0,w=Date.now();for(let[x,A]of this._cache){let R=A[h];w>=R?this._cache.delete(x):R<m&&(m=R)}m!==1/0&&this._tick(m-w)},E),this._removalTimeout.unref&&this._removalTimeout.unref())}install(E){if(d(E),f in E)throw new Error("CacheableLookup has been already installed");E[f]=E.createConnection,E[c]=this,E.createConnection=(v,m)=>("lookup"in v||(v.lookup=this.lookup),E[f](v,m))}uninstall(E){if(d(E),E[f]){if(E[c]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");E.createConnection=E[f],delete E[f],delete E[c]}}updateInterfaceInfo(){let{_iface:E}=this;this._iface=y(),(E.has4&&!this._iface.has4||E.has6&&!this._iface.has6)&&this._cache.clear()}clear(E){if(E){this._cache.delete(E);return}this._cache.clear()}};r.exports=S,r.exports.default=S}),HP=re((e,r)=>{"use strict";ee();var t="text/plain",n="us-ascii",i=(o,s)=>s.some(f=>f instanceof RegExp?f.test(o):f===o),l=(o,{stripHash:s})=>{let f=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(o);if(!f)throw new Error(`Invalid URL: ${o}`);let{type:c,data:h,hash:u}=f.groups,d=c.split(";");u=s?"":u;let p=!1;d[d.length-1]==="base64"&&(d.pop(),p=!0);let y=(d.shift()||"").toLowerCase(),b=[...d.map(_=>{let[g,S=""]=_.split("=").map(E=>E.trim());return g==="charset"&&(S=S.toLowerCase(),S===n)?"":`${g}${S?`=${S}`:""}`}).filter(Boolean)];return p&&b.push("base64"),(b.length!==0||y&&y!==t)&&b.unshift(y),`data:${b.join(";")},${p?h.trim():h}${u?`#${u}`:""}`},a=(o,s)=>{if(s={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...s},o=o.trim(),/^data:/i.test(o))return l(o,s);if(/^view-source:/i.test(o))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let f=o.startsWith("//");!f&&/^\.*\//.test(o)||(o=o.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,s.defaultProtocol));let c=new URL(o);if(s.forceHttp&&s.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(s.forceHttp&&c.protocol==="https:"&&(c.protocol="http:"),s.forceHttps&&c.protocol==="http:"&&(c.protocol="https:"),s.stripAuthentication&&(c.username="",c.password=""),s.stripHash?c.hash="":s.stripTextFragment&&(c.hash=c.hash.replace(/#?:~:text.*?$/i,"")),c.pathname&&(c.pathname=c.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),c.pathname)try{c.pathname=decodeURI(c.pathname)}catch{}if(s.removeDirectoryIndex===!0&&(s.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(s.removeDirectoryIndex)&&s.removeDirectoryIndex.length>0){let u=c.pathname.split("/"),d=u[u.length-1];i(d,s.removeDirectoryIndex)&&(u=u.slice(0,u.length-1),c.pathname=u.slice(1).join("/")+"/")}if(c.hostname&&(c.hostname=c.hostname.replace(/\.$/,""),s.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(c.hostname)&&(c.hostname=c.hostname.replace(/^www\./,""))),Array.isArray(s.removeQueryParameters))for(let u of[...c.searchParams.keys()])i(u,s.removeQueryParameters)&&c.searchParams.delete(u);s.removeQueryParameters===!0&&(c.search=""),s.sortQueryParameters&&c.searchParams.sort(),s.removeTrailingSlash&&(c.pathname=c.pathname.replace(/\/$/,""));let h=o;return o=c.toString(),!s.removeSingleSlash&&c.pathname==="/"&&!h.endsWith("/")&&c.hash===""&&(o=o.replace(/\/$/,"")),(s.removeTrailingSlash||c.pathname==="/")&&c.hash===""&&s.removeSingleSlash&&(o=o.replace(/\/$/,"")),f&&!s.normalizeProtocol&&(o=o.replace(/^http:\/\//,"//")),s.stripProtocol&&(o=o.replace(/^(?:https?:)?\/\//,"")),o};r.exports=a}),qP=re((e,r)=>{ee(),r.exports=t;function t(n,i){if(n&&i)return t(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(a){l[a]=n[a]}),l;function l(){for(var a=new Array(arguments.length),o=0;o<a.length;o++)a[o]=arguments[o];var s=n.apply(this,a),f=a[a.length-1];return typeof s=="function"&&s!==f&&Object.keys(f).forEach(function(c){s[c]=f[c]}),s}}}),e8=re((e,r)=>{ee();var t=qP();r.exports=t(n),r.exports.strict=t(i),n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})});function n(l){var a=function(){return a.called?a.value:(a.called=!0,a.value=l.apply(this,arguments))};return a.called=!1,a}function i(l){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=l.apply(this,arguments)},o=l.name||"Function wrapped with `once`";return a.onceError=o+" shouldn't be called more than once",a.called=!1,a}}),UP=re((e,r)=>{ee();var t=e8(),n=function(){},i=function(o){return o.setHeader&&typeof o.abort=="function"},l=function(o){return o.stdio&&Array.isArray(o.stdio)&&o.stdio.length===3},a=function(o,s,f){if(typeof s=="function")return a(o,null,s);s||(s={}),f=t(f||n);var c=o._writableState,h=o._readableState,u=s.readable||s.readable!==!1&&o.readable,d=s.writable||s.writable!==!1&&o.writable,p=!1,y=function(){o.writable||b()},b=function(){d=!1,u||f.call(o)},_=function(){u=!1,d||f.call(o)},g=function(w){f.call(o,w?new Error("exited with error code: "+w):null)},S=function(w){f.call(o,w)},E=function(){process.nextTick(v)},v=function(){if(!p){if(u&&!(h&&h.ended&&!h.destroyed))return f.call(o,new Error("premature close"));if(d&&!(c&&c.ended&&!c.destroyed))return f.call(o,new Error("premature close"))}},m=function(){o.req.on("finish",b)};return i(o)?(o.on("complete",b),o.on("abort",E),o.req?m():o.on("request",m)):d&&!c&&(o.on("end",y),o.on("close",y)),l(o)&&o.on("exit",g),o.on("end",_),o.on("finish",b),s.error!==!1&&o.on("error",S),o.on("close",E),function(){p=!0,o.removeListener("complete",b),o.removeListener("abort",E),o.removeListener("request",m),o.req&&o.req.removeListener("finish",b),o.removeListener("end",y),o.removeListener("close",y),o.removeListener("finish",b),o.removeListener("exit",g),o.removeListener("end",_),o.removeListener("error",S),o.removeListener("close",E)}};r.exports=a}),GP=re((e,r)=>{ee();var t=e8(),n=UP(),i=fe("fs"),l=function(){},a=/^v?\.0/.test(process.version),o=function(p){return typeof p=="function"},s=function(p){return!a||!i?!1:(p instanceof(i.ReadStream||l)||p instanceof(i.WriteStream||l))&&o(p.close)},f=function(p){return p.setHeader&&o(p.abort)},c=function(p,y,b,_){_=t(_);var g=!1;p.on("close",function(){g=!0}),n(p,{readable:y,writable:b},function(E){if(E)return _(E);g=!0,_()});var S=!1;return function(E){if(!g&&!S){if(S=!0,s(p))return p.close(l);if(f(p))return p.abort();if(o(p.destroy))return p.destroy();_(E||new Error("stream was destroyed"))}}},h=function(p){p()},u=function(p,y){return p.pipe(y)},d=function(){var p=Array.prototype.slice.call(arguments),y=o(p[p.length-1]||l)&&p.pop()||l;if(Array.isArray(p[0])&&(p=p[0]),p.length<2)throw new Error("pump requires two streams per minimum");var b,_=p.map(function(g,S){var E=S<p.length-1,v=S>0;return c(g,E,v,function(m){b||(b=m),m&&_.forEach(h),!E&&(_.forEach(h),y(b))})});return p.reduce(u)};r.exports=d}),WP=re((e,r)=>{"use strict";ee();var{PassThrough:t}=fe("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:l}=n,a=l==="buffer",o=!1;i?o=!(l||a):l=l||"utf8",a&&(l=null);let s=new t({objectMode:o});l&&s.setEncoding(l);let f=0,c=[];return s.on("data",h=>{c.push(h),o?f=c.length:f+=h.length}),s.getBufferedValue=()=>i?c:a?Buffer.concat(c,f):c.join(""),s.getBufferedLength=()=>f,s}}),zP=re((e,r)=>{"use strict";ee();var{constants:t}=fe("buffer"),n=GP(),i=WP(),l=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(o,s){if(!o)return Promise.reject(new Error("Expected a stream"));s={maxBuffer:1/0,...s};let{maxBuffer:f}=s,c;return await new Promise((h,u)=>{let d=p=>{p&&c.getBufferedLength()<=t.MAX_LENGTH&&(p.bufferedData=c.getBufferedValue()),u(p)};c=n(o,i(s),p=>{if(p){d(p);return}h()}),c.on("data",()=>{c.getBufferedLength()>f&&d(new l)})}),c.getBufferedValue()}r.exports=a,r.exports.default=a,r.exports.buffer=(o,s)=>a(o,{...s,encoding:"buffer"}),r.exports.array=(o,s)=>a(o,{...s,array:!0}),r.exports.MaxBufferError=l}),VP=re((e,r)=>{"use strict";ee();var t=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),n=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),i=new Set([500,502,503,504]),l={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},a={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function o(h){let u=parseInt(h,10);return isFinite(u)?u:0}function s(h){return h?i.has(h.status):!0}function f(h){let u={};if(!h)return u;let d=h.trim().split(/,/);for(let p of d){let[y,b]=p.split(/=/,2);u[y.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return u}function c(h){let u=[];for(let d in h){let p=h[d];u.push(p===!0?d:d+"="+p)}if(u.length)return u.join(", ")}r.exports=class{constructor(h,u,{shared:d,cacheHeuristic:p,immutableMinTimeToLive:y,ignoreCargoCult:b,_fromObject:_}={}){if(_){this._fromObject(_);return}if(!u||!u.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(h),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=p!==void 0?p:.1,this._immutableMinTtl=y!==void 0?y:24*3600*1e3,this._status="status"in u?u.status:200,this._resHeaders=u.headers,this._rescc=f(u.headers["cache-control"]),this._method="method"in h?h.method:"GET",this._url=h.url,this._host=h.headers.host,this._noAuthorization=!h.headers.authorization,this._reqHeaders=u.headers.vary?h.headers:null,this._reqcc=f(h.headers["cache-control"]),b&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":c(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),u.headers["cache-control"]==null&&/no-cache/.test(u.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&n.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(h){if(!h||!h.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(h){this._assertRequestHasHeaders(h);let u=f(h.headers["cache-control"]);return u["no-cache"]||/no-cache/.test(h.headers.pragma)||u["max-age"]&&this.age()>u["max-age"]||u["min-fresh"]&&this.timeToLive()<1e3*u["min-fresh"]||this.stale()&&!(u["max-stale"]&&!this._rescc["must-revalidate"]&&(u["max-stale"]===!0||u["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(h,!1)}_requestMatches(h,u){return(!this._url||this._url===h.url)&&this._host===h.headers.host&&(!h.method||this._method===h.method||u&&h.method==="HEAD")&&this._varyMatches(h)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(h){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let u=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of u)if(h.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(h){let u={};for(let d in h)l[d]||(u[d]=h[d]);if(h.connection){let d=h.connection.trim().split(/\s*,\s*/);for(let p of d)delete u[p]}if(u.warning){let d=u.warning.split(/,/).filter(p=>!/^\s*1[0-9][0-9]/.test(p));d.length?u.warning=d.join(",").trim():delete u.warning}return u}responseHeaders(){let h=this._copyWithoutHopByHopHeaders(this._resHeaders),u=this.age();return u>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(h.warning=(h.warning?`${h.warning}, `:"")+'113 - "rfc7234 5.5.4"'),h.age=`${Math.round(u)}`,h.date=new Date(this.now()).toUTCString(),h}date(){let h=Date.parse(this._resHeaders.date);return isFinite(h)?h:this._responseTime}age(){let h=this._ageValue(),u=(this.now()-this._responseTime)/1e3;return h+u}_ageValue(){return o(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return o(this._rescc["s-maxage"])}if(this._rescc["max-age"])return o(this._rescc["max-age"]);let h=this._rescc.immutable?this._immutableMinTtl:0,u=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<u?0:Math.max(h,(d-u)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&u>d)return Math.max(h,(u-d)/1e3*this._cacheHeuristic)}return h}timeToLive(){let h=this.maxAge()-this.age(),u=h+o(this._rescc["stale-if-error"]),d=h+o(this._rescc["stale-while-revalidate"]);return Math.max(0,h,u,d)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+o(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+o(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(h){return new this(void 0,void 0,{_fromObject:h})}_fromObject(h){if(this._responseTime)throw Error("Reinitialized");if(!h||h.v!==1)throw Error("Invalid serialization");this._responseTime=h.t,this._isShared=h.sh,this._cacheHeuristic=h.ch,this._immutableMinTtl=h.imm!==void 0?h.imm:24*3600*1e3,this._status=h.st,this._resHeaders=h.resh,this._rescc=h.rescc,this._method=h.m,this._url=h.u,this._host=h.h,this._noAuthorization=h.a,this._reqHeaders=h.reqh,this._reqcc=h.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(h){this._assertRequestHasHeaders(h);let u=this._copyWithoutHopByHopHeaders(h.headers);if(delete u["if-range"],!this._requestMatches(h,!0)||!this.storable())return delete u["if-none-match"],delete u["if-modified-since"],u;if(this._resHeaders.etag&&(u["if-none-match"]=u["if-none-match"]?`${u["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),u["accept-ranges"]||u["if-match"]||u["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete u["if-modified-since"],u["if-none-match"]){let d=u["if-none-match"].split(/,/).filter(p=>!/^\s*W\//.test(p));d.length?u["if-none-match"]=d.join(",").trim():delete u["if-none-match"]}}else this._resHeaders["last-modified"]&&!u["if-modified-since"]&&(u["if-modified-since"]=this._resHeaders["last-modified"]);return u}revalidatedPolicy(h,u){if(this._assertRequestHasHeaders(h),this._useStaleIfError()&&s(u))return{modified:!1,matches:!1,policy:this};if(!u||!u.headers)throw Error("Response headers missing");let d=!1;if(u.status!==void 0&&u.status!=304?d=!1:u.headers.etag&&!/^\s*W\//.test(u.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag:this._resHeaders.etag&&u.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===u.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!u.headers.etag&&!u.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(h,u),modified:u.status!=304,matches:!1};let p={};for(let b in this._resHeaders)p[b]=b in u.headers&&!a[b]?u.headers[b]:this._resHeaders[b];let y=Object.assign({},u,{status:this._status,method:this._method,headers:p});return{policy:new this.constructor(h,y,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),ph=re((e,r)=>{"use strict";ee(),r.exports=t=>{let n={};for(let[i,l]of Object.entries(t))n[i.toLowerCase()]=l;return n}}),KP=re((e,r)=>{"use strict";ee();var t=fe("stream").Readable,n=ph(),i=class extends t{constructor(l,a,o,s){if(typeof l!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof a!="object")throw new TypeError("Argument `headers` should be an object");if(!(o instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof s!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=l,this.headers=n(a),this.body=o,this.url=s}_read(){this.push(this.body),this.push(null)}};r.exports=i}),YP=re((e,r)=>{"use strict";ee();var t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];r.exports=(n,i)=>{let l=new Set(Object.keys(n).concat(t));for(let a of l)a in i||(i[a]=typeof n[a]=="function"?n[a].bind(n):n[a])}}),XP=re((e,r)=>{"use strict";ee();var t=fe("stream").PassThrough,n=YP(),i=l=>{if(!(l&&l.pipe))throw new TypeError("Parameter `response` must be a response stream.");let a=new t;return n(l,a),l.pipe(a)};r.exports=i}),ZP=re(e=>{ee(),e.stringify=function r(t){if(typeof t>"u")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var n="",i=Array.isArray(t);n=i?"[":"{";var l=!0;for(var a in t){var o=typeof t[a]=="function"||!i&&typeof t[a]>"u";Object.hasOwnProperty.call(t,a)&&!o&&(l||(n+=","),l=!1,i?t[a]==null?n+="null":n+=r(t[a]):t[a]!==void 0&&(n+=r(a)+":"+r(t[a])))}return n+=i?"]":"}",n}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t>"u"?"null":JSON.stringify(t)},e.parse=function(r){return JSON.parse(r,function(t,n){return typeof n=="string"?/^:base64:/.test(n)?Buffer.from(n.substring(8),"base64"):/^:/.test(n)?n.substring(1):n:n})}}),QP=re((e,r)=>{"use strict";ee();var t=fe("events"),n=ZP(),i=o=>{let s={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(o.adapter||o.uri){let f=o.adapter||/^[^:+]*/.exec(o.uri)[0];return new(fe(s[f]))(o)}return new Map},l=["sqlite","postgres","mysql","mongo","redis","tiered"],a=class extends t{constructor(o,{emitErrors:s=!0,...f}={}){if(super(),this.opts={namespace:"keyv",serialize:n.stringify,deserialize:n.parse,...typeof o=="string"?{uri:o}:o,...f},!this.opts.store){let h={...this.opts};this.opts.store=i(h)}if(this.opts.compression){let h=this.opts.compression;this.opts.serialize=h.serialize.bind(h),this.opts.deserialize=h.deserialize.bind(h)}typeof this.opts.store.on=="function"&&s&&this.opts.store.on("error",h=>this.emit("error",h)),this.opts.store.namespace=this.opts.namespace;let c=h=>async function*(){for await(let[u,d]of typeof h=="function"?h(this.opts.store.namespace):h){let p=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!u.includes(this.opts.store.namespace))){if(typeof p.expires=="number"&&Date.now()>p.expires){this.delete(u);continue}yield[this._getKeyUnprefix(u),p.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=c(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=c(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return l.includes(this.opts.store.opts.dialect)||l.findIndex(o=>this.opts.store.opts.url.includes(o))>=0}_getKeyPrefix(o){return`${this.opts.namespace}:${o}`}_getKeyPrefixArray(o){return o.map(s=>`${this.opts.namespace}:${s}`)}_getKeyUnprefix(o){return o.split(":").splice(1).join(":")}get(o,s){let{store:f}=this.opts,c=Array.isArray(o),h=c?this._getKeyPrefixArray(o):this._getKeyPrefix(o);if(c&&f.getMany===void 0){let u=[];for(let d of h)u.push(Promise.resolve().then(()=>f.get(d)).then(p=>typeof p=="string"?this.opts.deserialize(p):this.opts.compression?this.opts.deserialize(p):p).then(p=>{if(p!=null)return typeof p.expires=="number"&&Date.now()>p.expires?this.delete(d).then(()=>{}):s&&s.raw?p:p.value}));return Promise.allSettled(u).then(d=>{let p=[];for(let y of d)p.push(y.value);return p})}return Promise.resolve().then(()=>c?f.getMany(h):f.get(h)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null){if(c){let d=[];for(let p of u){if(typeof p=="string"&&(p=this.opts.deserialize(p)),p==null){d.push(void 0);continue}typeof p.expires=="number"&&Date.now()>p.expires?(this.delete(o).then(()=>{}),d.push(void 0)):d.push(s&&s.raw?p:p.value)}return d}return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(o).then(()=>{}):s&&s.raw?u:u.value}})}set(o,s,f){let c=this._getKeyPrefix(o);typeof f>"u"&&(f=this.opts.ttl),f===0&&(f=void 0);let{store:h}=this.opts;return Promise.resolve().then(()=>{let u=typeof f=="number"?Date.now()+f:null;return typeof s=="symbol"&&this.emit("error","symbol cannot be serialized"),s={value:s,expires:u},this.opts.serialize(s)}).then(u=>h.set(c,u,f)).then(()=>!0)}delete(o){let{store:s}=this.opts;if(Array.isArray(o)){let c=this._getKeyPrefixArray(o);if(s.deleteMany===void 0){let h=[];for(let u of c)h.push(s.delete(u));return Promise.allSettled(h).then(u=>u.every(d=>d.value===!0))}return Promise.resolve().then(()=>s.deleteMany(c))}let f=this._getKeyPrefix(o);return Promise.resolve().then(()=>s.delete(f))}clear(){let{store:o}=this.opts;return Promise.resolve().then(()=>o.clear())}has(o){let s=this._getKeyPrefix(o),{store:f}=this.opts;return Promise.resolve().then(async()=>typeof f.has=="function"?f.has(s):await f.get(s)!==void 0)}disconnect(){let{store:o}=this.opts;if(typeof o.disconnect=="function")return o.disconnect()}};r.exports=a}),JP=re((e,r)=>{"use strict";ee();var t=fe("events"),n=fe("url"),i=HP(),l=zP(),a=VP(),o=KP(),s=ph(),f=XP(),c=QP(),h=class{constructor(p,y){if(typeof p!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new c({uri:typeof y=="string"&&y,store:typeof y!="string"&&y,namespace:"cacheable-request"}),this.createCacheableRequest(p)}createCacheableRequest(p){return(y,b)=>{let _;if(typeof y=="string")_=d(n.parse(y)),y={};else if(y instanceof n.URL)_=d(n.parse(y.toString())),y={};else{let[x,...A]=(y.path||"").split("?"),R=A.length>0?`?${A.join("?")}`:"";_=d({...y,pathname:x,search:R})}y={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...y,...u(_)},y.headers=s(y.headers);let g=new t,S=i(n.format(_),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),E=`${y.method}:${S}`,v=!1,m=!1,w=x=>{m=!0;let A=!1,R,B=new Promise(O=>{R=()=>{A||(A=!0,O())}}),P=O=>{if(v&&!x.forceRefresh){O.status=O.statusCode;let k=a.fromObject(v.cachePolicy).revalidatedPolicy(x,O);if(!k.modified){let M=k.policy.responseHeaders();O=new o(v.statusCode,M,v.body,v.url),O.cachePolicy=k.policy,O.fromCache=!0}}O.fromCache||(O.cachePolicy=new a(x,O,x),O.fromCache=!1);let D;x.cache&&O.cachePolicy.storable()?(D=f(O),(async()=>{try{let k=l.buffer(O);if(await Promise.race([B,new Promise(W=>O.once("end",W))]),A)return;let M=await k,L={cachePolicy:O.cachePolicy.toObject(),url:O.url,statusCode:O.fromCache?v.statusCode:O.statusCode,body:M},U=x.strictTtl?O.cachePolicy.timeToLive():void 0;x.maxTtl&&(U=U?Math.min(U,x.maxTtl):x.maxTtl),await this.cache.set(E,L,U)}catch(k){g.emit("error",new h.CacheError(k))}})()):x.cache&&v&&(async()=>{try{await this.cache.delete(E)}catch(k){g.emit("error",new h.CacheError(k))}})(),g.emit("response",D||O),typeof b=="function"&&b(D||O)};try{let O=p(x,P);O.once("error",R),O.once("abort",R),g.emit("request",O)}catch(O){g.emit("error",new h.RequestError(O))}};return(async()=>{let x=async R=>{await Promise.resolve();let B=R.cache?await this.cache.get(E):void 0;if(typeof B>"u")return w(R);let P=a.fromObject(B.cachePolicy);if(P.satisfiesWithoutRevalidation(R)&&!R.forceRefresh){let O=P.responseHeaders(),D=new o(B.statusCode,O,B.body,B.url);D.cachePolicy=P,D.fromCache=!0,g.emit("response",D),typeof b=="function"&&b(D)}else v=B,R.headers=P.revalidationHeaders(R),w(R)},A=R=>g.emit("error",new h.CacheError(R));this.cache.once("error",A),g.on("response",()=>this.cache.removeListener("error",A));try{await x(y)}catch(R){y.automaticFailover&&!m&&w(y),g.emit("error",new h.CacheError(R))}})(),g}}};function u(p){let y={...p};return y.path=`${p.pathname||"/"}${p.search||""}`,delete y.pathname,delete y.search,y}function d(p){return{protocol:p.protocol,auth:p.auth,hostname:p.hostname||p.host||"localhost",port:p.port,pathname:p.pathname,search:p.search}}h.RequestError=class extends Error{constructor(p){super(p.message),this.name="RequestError",Object.assign(this,p)}},h.CacheError=class extends Error{constructor(p){super(p.message),this.name="CacheError",Object.assign(this,p)}},r.exports=h}),e6=re((e,r)=>{"use strict";ee();var t=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];r.exports=(n,i)=>{if(i._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let l=new Set(Object.keys(n).concat(t)),a={};for(let o of l)o in i||(a[o]={get(){let s=n[o];return typeof s=="function"?s.bind(n):s},set(s){n[o]=s},enumerable:!0,configurable:!1});return Object.defineProperties(i,a),n.once("aborted",()=>{i.destroy(),i.emit("aborted")}),n.once("close",()=>{n.complete&&i.readable?i.once("end",()=>{i.emit("close")}):i.emit("close")}),i}}),t6=re((e,r)=>{"use strict";ee();var{Transform:t,PassThrough:n}=fe("stream"),i=fe("zlib"),l=e6();r.exports=a=>{let o=(a.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(o))return a;let s=o==="br";if(s&&typeof i.createBrotliDecompress!="function")return a.destroy(new Error("Brotli is not supported on Node.js < 12")),a;let f=!0,c=new t({transform(d,p,y){f=!1,y(null,d)},flush(d){d()}}),h=new n({autoDestroy:!1,destroy(d,p){a.destroy(),p(d)}}),u=s?i.createBrotliDecompress():i.createUnzip();return u.once("error",d=>{if(f&&!a.readable){h.end();return}h.destroy(d)}),l(a,h),a.pipe(c).pipe(u).pipe(h),h}}),t8=re((e,r)=>{"use strict";ee();var t=class{constructor(n={}){if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=n.maxSize,this.onEviction=n.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(n,i){if(this.cache.set(n,i),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[l,a]of this.oldCache.entries())this.onEviction(l,a);this.oldCache=this.cache,this.cache=new Map}}get(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n)){let i=this.oldCache.get(n);return this.oldCache.delete(n),this._set(n,i),i}}set(n,i){return this.cache.has(n)?this.cache.set(n,i):this._set(n,i),this}has(n){return this.cache.has(n)||this.oldCache.has(n)}peek(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n))return this.oldCache.get(n)}delete(n){let i=this.cache.delete(n);return i&&this._size--,this.oldCache.delete(n)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[n]of this)yield n}*values(){for(let[,n]of this)yield n}*[Symbol.iterator](){for(let n of this.cache)yield n;for(let n of this.oldCache){let[i]=n;this.cache.has(i)||(yield n)}}get size(){let n=0;for(let i of this.oldCache.keys())this.cache.has(i)||n++;return Math.min(this._size+n,this.maxSize)}};r.exports=t}),r8=re((e,r)=>{"use strict";ee();var t=fe("events"),n=fe("tls"),i=fe("http2"),l=t8(),a=Symbol("currentStreamsCount"),o=Symbol("request"),s=Symbol("cachedOriginSet"),f=Symbol("gracefullyClosing"),c=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],h=(g,S,E)=>{let v=0,m=g.length;for(;v<m;){let w=v+m>>>1;E(g[w],S)?v=w+1:m=w}return v},u=(g,S)=>g.remoteSettings.maxConcurrentStreams>S.remoteSettings.maxConcurrentStreams,d=(g,S)=>{for(let E of g)E[s].length<S[s].length&&E[s].every(v=>S[s].includes(v))&&E[a]+S[a]<=S.remoteSettings.maxConcurrentStreams&&b(E)},p=(g,S)=>{for(let E of g)S[s].length<E[s].length&&S[s].every(v=>E[s].includes(v))&&S[a]+E[a]<=E.remoteSettings.maxConcurrentStreams&&b(S)},y=({agent:g,isFree:S})=>{let E={};for(let v in g.sessions){let m=g.sessions[v].filter(w=>{let x=w[_.kCurrentStreamsCount]<w.remoteSettings.maxConcurrentStreams;return S?x:!x});m.length!==0&&(E[v]=m)}return E},b=g=>{g[f]=!0,g[a]===0&&g.close()},_=class extends t{constructor({timeout:g=6e4,maxSessions:S=1/0,maxFreeSessions:E=10,maxCachedTlsSessions:v=100}={}){super(),this.sessions={},this.queue={},this.timeout=g,this.maxSessions=S,this.maxFreeSessions=E,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new l({maxSize:v})}static normalizeOrigin(g,S){return typeof g=="string"&&(g=new URL(g)),S&&g.hostname!==S&&(g.hostname=S),g.origin}normalizeOptions(g){let S="";if(g)for(let E of c)g[E]&&(S+=`:${g[E]}`);return S}_tryToCreateNewSession(g,S){if(!(g in this.queue)||!(S in this.queue[g]))return;let E=this.queue[g][S];this._sessionsCount<this.maxSessions&&!E.completed&&(E.completed=!0,E())}getSession(g,S,E){return new Promise((v,m)=>{Array.isArray(E)?(E=[...E],v()):E=[{resolve:v,reject:m}];let w=this.normalizeOptions(S),x=_.normalizeOrigin(g,S&&S.servername);if(x===void 0){for(let{reject:B}of E)B(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(w in this.sessions){let B=this.sessions[w],P=-1,O=-1,D;for(let k of B){let M=k.remoteSettings.maxConcurrentStreams;if(M<P)break;if(k[s].includes(x)){let L=k[a];if(L>=M||k[f]||k.destroyed)continue;D||(P=M),L>O&&(D=k,O=L)}}if(D){if(E.length!==1){for(let{reject:k}of E){let M=new Error(`Expected the length of listeners to be 1, got ${E.length}.
|
|
44
|
+
Please report this to https://github.com/szmarczak/http2-wrapper/`);k(M)}return}E[0].resolve(D);return}}if(w in this.queue){if(x in this.queue[w]){this.queue[w][x].listeners.push(...E),this._tryToCreateNewSession(w,x);return}}else this.queue[w]={};let A=()=>{w in this.queue&&this.queue[w][x]===R&&(delete this.queue[w][x],Object.keys(this.queue[w]).length===0&&delete this.queue[w])},R=()=>{let B=`${x}:${w}`,P=!1;try{let O=i.connect(g,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(B),...S});O[a]=0,O[f]=!1;let D=()=>O[a]<O.remoteSettings.maxConcurrentStreams,k=!0;O.socket.once("session",L=>{this.tlsSessionCache.set(B,L)}),O.once("error",L=>{for(let{reject:U}of E)U(L);this.tlsSessionCache.delete(B)}),O.setTimeout(this.timeout,()=>{O.destroy()}),O.once("close",()=>{if(P){k&&this._freeSessionsCount--,this._sessionsCount--;let L=this.sessions[w];L.splice(L.indexOf(O),1),L.length===0&&delete this.sessions[w]}else{let L=new Error("Session closed without receiving a SETTINGS frame");L.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:U}of E)U(L);A()}this._tryToCreateNewSession(w,x)});let M=()=>{if(!(!(w in this.queue)||!D())){for(let L of O[s])if(L in this.queue[w]){let{listeners:U}=this.queue[w][L];for(;U.length!==0&&D();)U.shift().resolve(O);let W=this.queue[w];if(W[L].listeners.length===0&&(delete W[L],Object.keys(W).length===0)){delete this.queue[w];break}if(!D())break}}};O.on("origin",()=>{O[s]=O.originSet,D()&&(M(),d(this.sessions[w],O))}),O.once("remoteSettings",()=>{if(O.ref(),O.unref(),this._sessionsCount++,R.destroyed){let L=new Error("Agent has been destroyed");for(let U of E)U.reject(L);O.destroy();return}O[s]=O.originSet;{let L=this.sessions;if(w in L){let U=L[w];U.splice(h(U,O,u),0,O)}else L[w]=[O]}this._freeSessionsCount+=1,P=!0,this.emit("session",O),M(),A(),O[a]===0&&this._freeSessionsCount>this.maxFreeSessions&&O.close(),E.length!==0&&(this.getSession(x,S,E),E.length=0),O.on("remoteSettings",()=>{M(),d(this.sessions[w],O)})}),O[o]=O.request,O.request=(L,U)=>{if(O[f])throw new Error("The session is gracefully closing. No new streams are allowed.");let W=O[o](L,U);return O.ref(),++O[a],O[a]===O.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,W.once("close",()=>{if(k=D(),--O[a],!O.destroyed&&!O.closed&&(p(this.sessions[w],O),D()&&!O.closed)){k||(this._freeSessionsCount++,k=!0);let se=O[a]===0;se&&O.unref(),se&&(this._freeSessionsCount>this.maxFreeSessions||O[f])?O.close():(d(this.sessions[w],O),M())}}),W}}catch(O){for(let D of E)D.reject(O);A()}};R.listeners=E,R.completed=!1,R.destroyed=!1,this.queue[w][x]=R,this._tryToCreateNewSession(w,x)})}request(g,S,E,v){return new Promise((m,w)=>{this.getSession(g,S,[{reject:w,resolve:x=>{try{m(x.request(E,v))}catch(A){w(A)}}}])})}createConnection(g,S){return _.connect(g,S)}static connect(g,S){S.ALPNProtocols=["h2"];let E=g.port||443,v=g.hostname||g.host;return typeof S.servername>"u"&&(S.servername=v),n.connect(E,v,S)}closeFreeSessions(){for(let g of Object.values(this.sessions))for(let S of g)S[a]===0&&S.close()}destroy(g){for(let S of Object.values(this.sessions))for(let E of S)E.destroy(g);for(let S of Object.values(this.queue))for(let E of Object.values(S))E.destroyed=!0;this.queue={}}get freeSessions(){return y({agent:this,isFree:!0})}get busySessions(){return y({agent:this,isFree:!1})}};_.kCurrentStreamsCount=a,_.kGracefullyClosing=f,r.exports={Agent:_,globalAgent:new _}}),n8=re((e,r)=>{"use strict";ee();var{Readable:t}=fe("stream"),n=class extends t{constructor(i,l){super({highWaterMark:l,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=i,this.connection=i,this._dumped=!1}_destroy(i){this.req._request.destroy(i)}setTimeout(i,l){return this.req.setTimeout(i,l),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};r.exports=n}),i8=re((e,r)=>{"use strict";ee(),r.exports=t=>{let n={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),r6=re((e,r)=>{"use strict";ee(),r.exports=(t,n,i)=>{for(let l of i)t.on(l,(...a)=>n.emit(l,...a))}}),n6=re((e,r)=>{"use strict";ee(),r.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),i6=re((e,r)=>{"use strict";ee();var t=(n,i,l)=>{r.exports[i]=class extends n{constructor(...a){super(typeof l=="string"?l:l(a)),this.name=`${super.name} [${i}]`,this.code=i}}};t(TypeError,"ERR_INVALID_ARG_TYPE",n=>{let i=n[0].includes(".")?"property":"argument",l=n[1],a=Array.isArray(l);return a&&(l=`${l.slice(0,-1).join(", ")} or ${l.slice(-1)}`),`The "${n[0]}" ${i} must be ${a?"one of":"of"} type ${l}. Received ${typeof n[2]}`}),t(TypeError,"ERR_INVALID_PROTOCOL",n=>`Protocol "${n[0]}" not supported. Expected "${n[1]}"`),t(Error,"ERR_HTTP_HEADERS_SENT",n=>`Cannot ${n[0]} headers after they are sent to the client`),t(TypeError,"ERR_INVALID_HTTP_TOKEN",n=>`${n[0]} must be a valid HTTP token [${n[1]}]`),t(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",n=>`Invalid value "${n[0]} for header "${n[1]}"`),t(TypeError,"ERR_INVALID_CHAR",n=>`Invalid character in ${n[0]} [${n[1]}]`)}),s8=re((e,r)=>{"use strict";ee();var t=fe("http2"),{Writable:n}=fe("stream"),{Agent:i,globalAgent:l}=r8(),a=n8(),o=i8(),s=r6(),f=n6(),{ERR_INVALID_ARG_TYPE:c,ERR_INVALID_PROTOCOL:h,ERR_HTTP_HEADERS_SENT:u,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:p,ERR_INVALID_CHAR:y}=i6(),{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:_,HTTP2_HEADER_PATH:g,HTTP2_METHOD_CONNECT:S}=t.constants,E=Symbol("headers"),v=Symbol("origin"),m=Symbol("session"),w=Symbol("options"),x=Symbol("flushedHeaders"),A=Symbol("jobs"),R=/^[\^`\-\w!#$%&*+.|~]+$/,B=/[^\t\u0020-\u007E\u0080-\u00FF]/,P=class extends n{constructor(O,D,k){super({autoDestroy:!1});let M=typeof O=="string"||O instanceof URL;if(M&&(O=o(O instanceof URL?O:new URL(O))),typeof D=="function"||D===void 0?(k=D,D=M?O:{...O}):D={...O,...D},D.h2session)this[m]=D.h2session;else if(D.agent===!1)this.agent=new i({maxFreeSessions:0});else if(typeof D.agent>"u"||D.agent===null)typeof D.createConnection=="function"?(this.agent=new i({maxFreeSessions:0}),this.agent.createConnection=D.createConnection):this.agent=l;else if(typeof D.agent.request=="function")this.agent=D.agent;else throw new c("options.agent",["Agent-like Object","undefined","false"],D.agent);if(D.protocol&&D.protocol!=="https:")throw new h(D.protocol,"https:");let L=D.port||D.defaultPort||this.agent&&this.agent.defaultPort||443,U=D.hostname||D.host||"localhost";delete D.hostname,delete D.host,delete D.port;let{timeout:W}=D;if(D.timeout=void 0,this[E]=Object.create(null),this[A]=[],this.socket=null,this.connection=null,this.method=D.method||"GET",this.path=D.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,D.headers)for(let[se,I]of Object.entries(D.headers))this.setHeader(se,I);D.auth&&!("authorization"in this[E])&&(this[E].authorization="Basic "+Buffer.from(D.auth).toString("base64")),D.session=D.tlsSession,D.path=D.socketPath,this[w]=D,L===443?(this[v]=`https://${U}`,":authority"in this[E]||(this[E][":authority"]=U)):(this[v]=`https://${U}:${L}`,":authority"in this[E]||(this[E][":authority"]=`${U}:${L}`)),W&&this.setTimeout(W),k&&this.once("response",k),this[x]=!1}get method(){return this[E][_]}set method(O){O&&(this[E][_]=O.toUpperCase())}get path(){return this[E][g]}set path(O){O&&(this[E][g]=O)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(O,D,k){if(this._mustNotHaveABody){k(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let M=()=>this._request.write(O,D,k);this._request?M():this[A].push(M)}_final(O){if(this.destroyed)return;this.flushHeaders();let D=()=>{if(this._mustNotHaveABody){O();return}this._request.end(O)};this._request?D():this[A].push(D)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(O,D){this.res&&this.res._dump(),this._request&&this._request.destroy(),D(O)}async flushHeaders(){if(this[x]||this.destroyed)return;this[x]=!0;let O=this.method===S,D=k=>{if(this._request=k,this.destroyed){k.destroy();return}O||s(k,this,["timeout","continue","close","error"]);let M=U=>(...W)=>{!this.writable&&!this.destroyed?U(...W):this.once("finish",()=>{U(...W)})};k.once("response",M((U,W,se)=>{let I=new a(this.socket,k.readableHighWaterMark);this.res=I,I.req=this,I.statusCode=U[b],I.headers=U,I.rawHeaders=se,I.once("end",()=>{this.aborted?(I.aborted=!0,I.emit("aborted")):(I.complete=!0,I.socket=null,I.connection=null)}),O?(I.upgrade=!0,this.emit("connect",I,k,Buffer.alloc(0))?this.emit("close"):k.destroy()):(k.on("data",N=>{!I._dumped&&!I.push(N)&&k.pause()}),k.once("end",()=>{I.push(null)}),this.emit("response",I)||I._dump())})),k.once("headers",M(U=>this.emit("information",{statusCode:U[b]}))),k.once("trailers",M((U,W,se)=>{let{res:I}=this;I.trailers=U,I.rawTrailers=se}));let{socket:L}=k.session;this.socket=L,this.connection=L;for(let U of this[A])U();this.emit("socket",this.socket)};if(this[m])try{D(this[m].request(this[E]))}catch(k){this.emit("error",k)}else{this.reusedSocket=!0;try{D(await this.agent.request(this[v],this[w],this[E]))}catch(k){this.emit("error",k)}}}getHeader(O){if(typeof O!="string")throw new c("name","string",O);return this[E][O.toLowerCase()]}get headersSent(){return this[x]}removeHeader(O){if(typeof O!="string")throw new c("name","string",O);if(this.headersSent)throw new u("remove");delete this[E][O.toLowerCase()]}setHeader(O,D){if(this.headersSent)throw new u("set");if(typeof O!="string"||!R.test(O)&&!f(O))throw new d("Header name",O);if(typeof D>"u")throw new p(D,O);if(B.test(D))throw new y("header content",O);this[E][O.toLowerCase()]=D}setNoDelay(){}setSocketKeepAlive(){}setTimeout(O,D){let k=()=>this._request.setTimeout(O,D);return this._request?k():this[A].push(k),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(O){}};r.exports=P}),s6=re((e,r)=>{"use strict";ee();var t=fe("tls");r.exports=(n={},i=t.connect)=>new Promise((l,a)=>{let o=!1,s,f=async()=>{await h,s.off("timeout",c),s.off("error",a),n.resolveSocket?(l({alpnProtocol:s.alpnProtocol,socket:s,timeout:o}),o&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),l({alpnProtocol:s.alpnProtocol,timeout:o}))},c=async()=>{o=!0,f()},h=(async()=>{try{s=await i(n,f),s.on("error",a),s.once("timeout",c)}catch(u){a(u)}})()})}),o6=re((e,r)=>{"use strict";ee();var t=fe("net");r.exports=n=>{let i=n.host,l=n.headers&&n.headers.host;return l&&(l.startsWith("[")?l.indexOf("]")===-1?i=l:i=l.slice(1,-1):i=l.split(":",1)[0]),t.isIP(i)?"":i}}),a6=re((e,r)=>{"use strict";ee();var t=fe("http"),n=fe("https"),i=s6(),l=t8(),a=s8(),o=o6(),s=i8(),f=new l({maxSize:100}),c=new Map,h=(d,p,y)=>{p._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",p,y)};p.on("free",b);let _=()=>{d.removeSocket(p,y)};p.on("close",_);let g=()=>{d.removeSocket(p,y),p.off("close",_),p.off("free",b),p.off("agentRemove",g)};p.on("agentRemove",g),d.emit("free",p,y)},u=async d=>{let p=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!f.has(p)){if(c.has(p))return(await c.get(p)).alpnProtocol;let{path:y,agent:b}=d;d.path=d.socketPath;let _=i(d);c.set(p,_);try{let{socket:g,alpnProtocol:S}=await _;if(f.set(p,S),d.path=y,S==="h2")g.destroy();else{let{globalAgent:E}=n,v=n.Agent.prototype.createConnection;b?b.createConnection===v?h(b,g,d):g.destroy():E.createConnection===v?h(E,g,d):g.destroy()}return c.delete(p),S}catch(g){throw c.delete(p),g}}return f.get(p)};r.exports=async(d,p,y)=>{if((typeof d=="string"||d instanceof URL)&&(d=s(new URL(d))),typeof p=="function"&&(y=p,p=void 0),p={ALPNProtocols:["h2","http/1.1"],...d,...p,resolveSocket:!0},!Array.isArray(p.ALPNProtocols)||p.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");p.protocol=p.protocol||"https:";let b=p.protocol==="https:";p.host=p.hostname||p.host||"localhost",p.session=p.tlsSession,p.servername=p.servername||o(p),p.port=p.port||(b?443:80),p._defaultAgent=b?n.globalAgent:t.globalAgent;let _=p.agent;if(_){if(_.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");p.agent=_[b?"https":"http"]}return b&&await u(p)==="h2"?(_&&(p.agent=_.http2),new a(p,y)):t.request(p,y)},r.exports.protocolCache=f}),u6=re((e,r)=>{"use strict";ee();var t=fe("http2"),n=r8(),i=s8(),l=n8(),a=a6(),o=(f,c,h)=>new i(f,c,h),s=(f,c,h)=>{let u=new i(f,c,h);return u.end(),u};r.exports={...t,ClientRequest:i,IncomingMessage:l,...n,request:o,get:s,auto:a}}),o8=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=Rr();e.default=t=>r.default.nodeStream(t)&&r.default.function_(t.getBoundary)}),l6=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=fe("fs"),t=fe("util"),n=Rr(),i=o8(),l=t.promisify(r.stat);e.default=async(a,o)=>{if(o&&"content-length"in o)return Number(o["content-length"]);if(!a)return 0;if(n.default.string(a))return Buffer.byteLength(a);if(n.default.buffer(a))return a.length;if(i.default(a))return t.promisify(a.getLength.bind(a))();if(a instanceof r.ReadStream){let{size:s}=await l(a.path);return s===0?void 0:s}}}),a8=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});function r(t,n,i){let l={};for(let a of i)l[a]=(...o)=>{n.emit(a,...o)},t.on(a,l[a]);return()=>{for(let a of i)t.off(a,l[a])}}e.default=r}),c6=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=()=>{let r=[];return{once(t,n,i){t.once(n,i),r.push({origin:t,event:n,fn:i})},unhandleAll(){for(let t of r){let{origin:n,event:i,fn:l}=t;n.removeListener(i,l)}r.length=0}}}}),h6=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.TimeoutError=void 0;var r=fe("net"),t=c6(),n=Symbol("reentry"),i=()=>{},l=class extends Error{constructor(a,o){super(`Timeout awaiting '${o}' for ${a}ms`),this.event=o,this.name="TimeoutError",this.code="ETIMEDOUT"}};e.TimeoutError=l,e.default=(a,o,s)=>{if(n in a)return i;a[n]=!0;let f=[],{once:c,unhandleAll:h}=t.default(),u=(_,g,S)=>{var E;let v=setTimeout(g,_,_,S);(E=v.unref)===null||E===void 0||E.call(v);let m=()=>{clearTimeout(v)};return f.push(m),m},{host:d,hostname:p}=s,y=(_,g)=>{a.destroy(new l(_,g))},b=()=>{for(let _ of f)_();h()};if(a.once("error",_=>{if(b(),a.listenerCount("error")===0)throw _}),a.once("close",b),c(a,"response",_=>{c(_,"end",b)}),typeof o.request<"u"&&u(o.request,y,"request"),typeof o.socket<"u"){let _=()=>{y(o.socket,"socket")};a.setTimeout(o.socket,_),f.push(()=>{a.removeListener("timeout",_)})}return c(a,"socket",_=>{var g;let{socketPath:S}=a;if(_.connecting){let E=!!(S!=null?S:r.isIP((g=p!=null?p:d)!==null&&g!==void 0?g:"")!==0);if(typeof o.lookup<"u"&&!E&&typeof _.address().address>"u"){let v=u(o.lookup,y,"lookup");c(_,"lookup",v)}if(typeof o.connect<"u"){let v=()=>u(o.connect,y,"connect");E?c(_,"connect",v()):c(_,"lookup",m=>{m===null&&c(_,"connect",v())})}typeof o.secureConnect<"u"&&s.protocol==="https:"&&c(_,"connect",()=>{let v=u(o.secureConnect,y,"secureConnect");c(_,"secureConnect",v)})}if(typeof o.send<"u"){let E=()=>u(o.send,y,"send");_.connecting?c(_,"connect",()=>{c(a,"upload-complete",E())}):c(a,"upload-complete",E())}}),typeof o.response<"u"&&c(a,"upload-complete",()=>{let _=u(o.response,y,"response");c(a,"response",_)}),b}}),f6=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=Rr();e.default=t=>{t=t;let n={protocol:t.protocol,hostname:r.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return r.default.string(t.port)&&t.port.length>0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),p6=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=fe("url"),t=["protocol","host","hostname","port","pathname","search"];e.default=(n,i)=>{var l,a;if(i.path){if(i.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(i.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(i.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(i.search&&i.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!n){if(!i.protocol)throw new TypeError("No URL protocol specified");n=`${i.protocol}//${(a=(l=i.hostname)!==null&&l!==void 0?l:i.host)!==null&&a!==void 0?a:""}`}let o=new r.URL(n);if(i.path){let s=i.path.indexOf("?");s===-1?i.pathname=i.path:(i.pathname=i.path.slice(0,s),i.search=i.path.slice(s+1)),delete i.path}for(let s of t)i[s]&&(o[s]=i[s].toString());return o}}),d6=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(t,n){typeof t=="object"?this.weakMap.set(t,n):this.map.set(t,n)}get(t){return typeof t=="object"?this.weakMap.get(t):this.map.get(t)}has(t){return typeof t=="object"?this.weakMap.has(t):this.map.has(t)}};e.default=r}),u8=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=async t=>{let n=[],i=0;for await(let l of t)n.push(l),i+=Buffer.byteLength(l);return Buffer.isBuffer(n[0])?Buffer.concat(n,i):Buffer.from(n.join(""))};e.default=r}),m6=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.dnsLookupIpVersionToFamily=e.isDnsLookupIpVersion=void 0;var r={auto:0,ipv4:4,ipv6:6};e.isDnsLookupIpVersion=t=>t in r,e.dnsLookupIpVersionToFamily=t=>{if(e.isDnsLookupIpVersion(t))return r[t];throw new Error("Invalid DNS lookup IP version")}}),l8=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.isResponseOk=void 0,e.isResponseOk=r=>{let{statusCode:t}=r,n=r.request.options.followRedirect?299:399;return t>=200&&t<=n||t===304}}),y6=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=new Set;e.default=t=>{r.has(t)||(r.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}}),g6=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=Rr(),t=(n,i)=>{if(r.default.null_(n.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");r.assert.any([r.default.string,r.default.undefined],n.encoding),r.assert.any([r.default.boolean,r.default.undefined],n.resolveBodyOnly),r.assert.any([r.default.boolean,r.default.undefined],n.methodRewriting),r.assert.any([r.default.boolean,r.default.undefined],n.isStream),r.assert.any([r.default.string,r.default.undefined],n.responseType),n.responseType===void 0&&(n.responseType="text");let{retry:l}=n;if(i?n.retry={...i.retry}:n.retry={calculateDelay:a=>a.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},r.default.object(l)?(n.retry={...n.retry,...l},n.retry.methods=[...new Set(n.retry.methods.map(a=>a.toUpperCase()))],n.retry.statusCodes=[...new Set(n.retry.statusCodes)],n.retry.errorCodes=[...new Set(n.retry.errorCodes)]):r.default.number(l)&&(n.retry.limit=l),r.default.undefined(n.retry.maxRetryAfter)&&(n.retry.maxRetryAfter=Math.min(...[n.timeout.request,n.timeout.connect].filter(r.default.number))),r.default.object(n.pagination)){i&&(n.pagination={...i.pagination,...n.pagination});let{pagination:a}=n;if(!r.default.function_(a.transform))throw new Error("`options.pagination.transform` must be implemented");if(!r.default.function_(a.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!r.default.function_(a.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!r.default.function_(a.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return n.responseType==="json"&&n.headers.accept===void 0&&(n.headers.accept="application/json"),n};e.default=t}),b6=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfterStatusCodes=void 0,e.retryAfterStatusCodes=new Set([413,429,503]);var r=({attemptCount:t,retryOptions:n,error:i,retryAfter:l})=>{if(t>n.limit)return 0;let a=n.methods.includes(i.options.method),o=n.errorCodes.includes(i.code),s=i.response&&n.statusCodes.includes(i.response.statusCode);if(!a||!o&&!s)return 0;if(i.response){if(l)return n.maxRetryAfter===void 0||l>n.maxRetryAfter?0:l;if(i.response.statusCode===413)return 0}let f=Math.random()*100;return 2**(t-1)*1e3+f};e.default=r}),ko=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedProtocolError=e.ReadError=e.TimeoutError=e.UploadError=e.CacheError=e.HTTPError=e.MaxRedirectsError=e.RequestError=e.setNonEnumerableProperties=e.knownHookEvents=e.withoutBody=e.kIsNormalizedAlready=void 0;var r=fe("util"),t=fe("stream"),n=fe("fs"),i=fe("url"),l=fe("http"),a=fe("http"),o=fe("https"),s=jP(),f=$P(),c=JP(),h=t6(),u=u6(),d=ph(),p=Rr(),y=l6(),b=o8(),_=a8(),g=h6(),S=f6(),E=p6(),v=d6(),m=u8(),w=m6(),x=l8(),A=y6(),R=g6(),B=b6(),P,O=Symbol("request"),D=Symbol("response"),k=Symbol("responseSize"),M=Symbol("downloadedSize"),L=Symbol("bodySize"),U=Symbol("uploadedSize"),W=Symbol("serverResponsesPiped"),se=Symbol("unproxyEvents"),I=Symbol("isFromCache"),N=Symbol("cancelTimeouts"),F=Symbol("startedReading"),V=Symbol("stopReading"),G=Symbol("triggerRead"),J=Symbol("body"),j=Symbol("jobs"),z=Symbol("originalResponse"),Q=Symbol("retryTimeout");e.kIsNormalizedAlready=Symbol("isNormalizedAlready");var le=p.default.string(process.versions.brotli);e.withoutBody=new Set(["GET","HEAD"]),e.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function ue(K){for(let $ in K){let ce=K[$];if(!p.default.string(ce)&&!p.default.number(ce)&&!p.default.boolean(ce)&&!p.default.null_(ce)&&!p.default.undefined(ce))throw new TypeError(`The \`searchParams\` value '${String(ce)}' must be a string, number, boolean or null`)}}function Y(K){return p.default.object(K)&&!("statusCode"in K)}var ne=new v.default,T=async K=>new Promise(($,ce)=>{let we=be=>{ce(be)};K.pending||$(),K.once("error",we),K.once("ready",()=>{K.off("error",we),$()})}),q=new Set([300,301,302,303,304,307,308]),C=["context","body","json","form"];e.setNonEnumerableProperties=(K,$)=>{let ce={};for(let we of K)if(we)for(let be of C)be in we&&(ce[be]={writable:!0,configurable:!0,enumerable:!1,value:we[be]});Object.defineProperties($,ce)};var H=class extends Error{constructor(K,$,ce){var we,be;if(super(K),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(we=$.code)!==null&&we!==void 0?we:"ERR_GOT_REQUEST_ERROR",ce instanceof Ce?(Object.defineProperty(this,"request",{enumerable:!1,value:ce}),Object.defineProperty(this,"response",{enumerable:!1,value:ce[D]}),Object.defineProperty(this,"options",{enumerable:!1,value:ce.options})):Object.defineProperty(this,"options",{enumerable:!1,value:ce}),this.timings=(be=this.request)===null||be===void 0?void 0:be.timings,p.default.string($.stack)&&p.default.string(this.stack)){let de=this.stack.indexOf(this.message)+this.message.length,ve=this.stack.slice(de).split(`
|
|
45
|
+
`).reverse(),Se=$.stack.slice($.stack.indexOf($.message)+$.message.length).split(`
|
|
46
|
+
`).reverse();for(;Se.length!==0&&Se[0]===ve[0];)ve.shift();this.stack=`${this.stack.slice(0,de)}${ve.reverse().join(`
|
|
47
|
+
`)}${Se.reverse().join(`
|
|
48
|
+
`)}`}}};e.RequestError=H;var X=class extends H{constructor(K){super(`Redirected ${K.options.maxRedirects} times. Aborting.`,{},K),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};e.MaxRedirectsError=X;var ie=class extends H{constructor(K){super(`Response code ${K.statusCode} (${K.statusMessage})`,{},K.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};e.HTTPError=ie;var me=class extends H{constructor(K,$){super(K.message,K,$),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};e.CacheError=me;var ae=class extends H{constructor(K,$){super(K.message,K,$),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};e.UploadError=ae;var pe=class extends H{constructor(K,$,ce){super(K.message,K,ce),this.name="TimeoutError",this.event=K.event,this.timings=$}};e.TimeoutError=pe;var oe=class extends H{constructor(K,$){super(K.message,K,$),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};e.ReadError=oe;var ge=class extends H{constructor(K){super(`Unsupported protocol "${K.url.protocol}"`,{},K),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};e.UnsupportedProtocolError=ge;var Ee=["socket","connect","continue","information","upgrade","timeout"],Ce=class extends t.Duplex{constructor(K,$={},ce){super({autoDestroy:!1,highWaterMark:0}),this[M]=0,this[U]=0,this.requestInitialized=!1,this[W]=new Set,this.redirects=[],this[V]=!1,this[G]=!1,this[j]=[],this.retryCount=0,this._progressCallbacks=[];let we=()=>this._unlockWrite(),be=()=>this._lockWrite();this.on("pipe",Ae=>{Ae.prependListener("data",we),Ae.on("data",be),Ae.prependListener("end",we),Ae.on("end",be)}),this.on("unpipe",Ae=>{Ae.off("data",we),Ae.off("data",be),Ae.off("end",we),Ae.off("end",be)}),this.on("pipe",Ae=>{Ae instanceof a.IncomingMessage&&(this.options.headers={...Ae.headers,...this.options.headers})});let{json:de,body:ve,form:Se}=$;if((de||ve||Se)&&this._lockWrite(),e.kIsNormalizedAlready in $)this.options=$;else try{this.options=this.constructor.normalizeArguments(K,$,ce)}catch(Ae){p.default.nodeStream($.body)&&$.body.destroy(),this.destroy(Ae);return}(async()=>{var Ae;try{this.options.body instanceof n.ReadStream&&await T(this.options.body);let{url:$e}=this.options;if(!$e)throw new TypeError("Missing `url` property");if(this.requestUrl=$e.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(Ae=this[O])===null||Ae===void 0||Ae.destroy();return}for(let Me of this[j])Me();this[j].length=0,this.requestInitialized=!0}catch($e){if($e instanceof H){this._beforeError($e);return}this.destroyed||this.destroy($e)}})()}static normalizeArguments(K,$,ce){var we,be,de,ve,Se;let Ae=$;if(p.default.object(K)&&!p.default.urlInstance(K))$={...ce,...K,...$};else{if(K&&$&&$.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");$={...ce,...$},K!==void 0&&($.url=K),p.default.urlInstance($.url)&&($.url=new i.URL($.url.toString()))}if($.cache===!1&&($.cache=void 0),$.dnsCache===!1&&($.dnsCache=void 0),p.assert.any([p.default.string,p.default.undefined],$.method),p.assert.any([p.default.object,p.default.undefined],$.headers),p.assert.any([p.default.string,p.default.urlInstance,p.default.undefined],$.prefixUrl),p.assert.any([p.default.object,p.default.undefined],$.cookieJar),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.searchParams),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.cache),p.assert.any([p.default.object,p.default.number,p.default.undefined],$.timeout),p.assert.any([p.default.object,p.default.undefined],$.context),p.assert.any([p.default.object,p.default.undefined],$.hooks),p.assert.any([p.default.boolean,p.default.undefined],$.decompress),p.assert.any([p.default.boolean,p.default.undefined],$.ignoreInvalidCookies),p.assert.any([p.default.boolean,p.default.undefined],$.followRedirect),p.assert.any([p.default.number,p.default.undefined],$.maxRedirects),p.assert.any([p.default.boolean,p.default.undefined],$.throwHttpErrors),p.assert.any([p.default.boolean,p.default.undefined],$.http2),p.assert.any([p.default.boolean,p.default.undefined],$.allowGetBody),p.assert.any([p.default.string,p.default.undefined],$.localAddress),p.assert.any([w.isDnsLookupIpVersion,p.default.undefined],$.dnsLookupIpVersion),p.assert.any([p.default.object,p.default.undefined],$.https),p.assert.any([p.default.boolean,p.default.undefined],$.rejectUnauthorized),$.https&&(p.assert.any([p.default.boolean,p.default.undefined],$.https.rejectUnauthorized),p.assert.any([p.default.function_,p.default.undefined],$.https.checkServerIdentity),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificateAuthority),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.key),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificate),p.assert.any([p.default.string,p.default.undefined],$.https.passphrase),p.assert.any([p.default.string,p.default.buffer,p.default.array,p.default.undefined],$.https.pfx)),p.assert.any([p.default.object,p.default.undefined],$.cacheOptions),p.default.string($.method)?$.method=$.method.toUpperCase():$.method="GET",$.headers===(ce==null?void 0:ce.headers)?$.headers={...$.headers}:$.headers=d({...ce==null?void 0:ce.headers,...$.headers}),"slashes"in $)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in $)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in $&&$.searchParams&&$.searchParams!==(ce==null?void 0:ce.searchParams)){let xe;if(p.default.string($.searchParams)||$.searchParams instanceof i.URLSearchParams)xe=new i.URLSearchParams($.searchParams);else{ue($.searchParams),xe=new i.URLSearchParams;for(let Pe in $.searchParams){let Ie=$.searchParams[Pe];Ie===null?xe.append(Pe,""):Ie!==void 0&&xe.append(Pe,Ie)}}(we=ce==null?void 0:ce.searchParams)===null||we===void 0||we.forEach((Pe,Ie)=>{xe.has(Ie)||xe.append(Ie,Pe)}),$.searchParams=xe}if($.username=(be=$.username)!==null&&be!==void 0?be:"",$.password=(de=$.password)!==null&&de!==void 0?de:"",p.default.undefined($.prefixUrl)?$.prefixUrl=(ve=ce==null?void 0:ce.prefixUrl)!==null&&ve!==void 0?ve:"":($.prefixUrl=$.prefixUrl.toString(),$.prefixUrl!==""&&!$.prefixUrl.endsWith("/")&&($.prefixUrl+="/")),p.default.string($.url)){if($.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");$.url=E.default($.prefixUrl+$.url,$)}else(p.default.undefined($.url)&&$.prefixUrl!==""||$.protocol)&&($.url=E.default($.prefixUrl,$));if($.url){"port"in $&&delete $.port;let{prefixUrl:xe}=$;Object.defineProperty($,"prefixUrl",{set:Ie=>{let ke=$.url;if(!ke.href.startsWith(Ie))throw new Error(`Cannot change \`prefixUrl\` from ${xe} to ${Ie}: ${ke.href}`);$.url=new i.URL(Ie+ke.href.slice(xe.length)),xe=Ie},get:()=>xe});let{protocol:Pe}=$.url;if(Pe==="unix:"&&(Pe="http:",$.url=new i.URL(`http://unix${$.url.pathname}${$.url.search}`)),$.searchParams&&($.url.search=$.searchParams.toString()),Pe!=="http:"&&Pe!=="https:")throw new ge($);$.username===""?$.username=$.url.username:$.url.username=$.username,$.password===""?$.password=$.url.password:$.url.password=$.password}let{cookieJar:$e}=$;if($e){let{setCookie:xe,getCookieString:Pe}=$e;p.assert.function_(xe),p.assert.function_(Pe),xe.length===4&&Pe.length===0&&(xe=r.promisify(xe.bind($.cookieJar)),Pe=r.promisify(Pe.bind($.cookieJar)),$.cookieJar={setCookie:xe,getCookieString:Pe})}let{cache:Me}=$;if(Me&&(ne.has(Me)||ne.set(Me,new c((xe,Pe)=>{let Ie=xe[O](xe,Pe);return p.default.promise(Ie)&&(Ie.once=(ke,De)=>{if(ke==="error")Ie.catch(De);else if(ke==="abort")(async()=>{try{(await Ie).once("abort",De)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${ke}`);return Ie}),Ie},Me))),$.cacheOptions={...$.cacheOptions},$.dnsCache===!0)P||(P=new f.default),$.dnsCache=P;else if(!p.default.undefined($.dnsCache)&&!$.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${p.default($.dnsCache)}`);p.default.number($.timeout)?$.timeout={request:$.timeout}:ce&&$.timeout!==ce.timeout?$.timeout={...ce.timeout,...$.timeout}:$.timeout={...$.timeout},$.context||($.context={});let Qt=$.hooks===(ce==null?void 0:ce.hooks);$.hooks={...$.hooks};for(let xe of e.knownHookEvents)if(xe in $.hooks)if(p.default.array($.hooks[xe]))$.hooks[xe]=[...$.hooks[xe]];else throw new TypeError(`Parameter \`${xe}\` must be an Array, got ${p.default($.hooks[xe])}`);else $.hooks[xe]=[];if(ce&&!Qt)for(let xe of e.knownHookEvents)ce.hooks[xe].length>0&&($.hooks[xe]=[...ce.hooks[xe],...$.hooks[xe]]);if("family"in $&&A.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),ce!=null&&ce.https&&($.https={...ce.https,...$.https}),"rejectUnauthorized"in $&&A.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in $&&A.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in $&&A.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in $&&A.default('"options.key" was never documented, please use "options.https.key"'),"cert"in $&&A.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in $&&A.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in $&&A.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in $)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if($.agent){for(let xe in $.agent)if(xe!=="http"&&xe!=="https"&&xe!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${xe}\``)}return $.maxRedirects=(Se=$.maxRedirects)!==null&&Se!==void 0?Se:0,e.setNonEnumerableProperties([ce,Ae],$),R.default($,ce)}_lockWrite(){let K=()=>{throw new TypeError("The payload has been already provided")};this.write=K,this.end=K}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:K}=this,{headers:$}=K,ce=!p.default.undefined(K.form),we=!p.default.undefined(K.json),be=!p.default.undefined(K.body),de=ce||we||be,ve=e.withoutBody.has(K.method)&&!(K.method==="GET"&&K.allowGetBody);if(this._cannotHaveBody=ve,de){if(ve)throw new TypeError(`The \`${K.method}\` method cannot be used with a body`);if([be,ce,we].filter(Se=>Se).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(be&&!(K.body instanceof t.Readable)&&!p.default.string(K.body)&&!p.default.buffer(K.body)&&!b.default(K.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(ce&&!p.default.object(K.form))throw new TypeError("The `form` option must be an Object");{let Se=!p.default.string($["content-type"]);be?(b.default(K.body)&&Se&&($["content-type"]=`multipart/form-data; boundary=${K.body.getBoundary()}`),this[J]=K.body):ce?(Se&&($["content-type"]="application/x-www-form-urlencoded"),this[J]=new i.URLSearchParams(K.form).toString()):(Se&&($["content-type"]="application/json"),this[J]=K.stringifyJson(K.json));let Ae=await y.default(this[J],K.headers);p.default.undefined($["content-length"])&&p.default.undefined($["transfer-encoding"])&&!ve&&!p.default.undefined(Ae)&&($["content-length"]=String(Ae))}}else ve?this._lockWrite():this._unlockWrite();this[L]=Number($["content-length"])||void 0}async _onResponseBase(K){let{options:$}=this,{url:ce}=$;this[z]=K,$.decompress&&(K=h(K));let we=K.statusCode,be=K;be.statusMessage=be.statusMessage?be.statusMessage:l.STATUS_CODES[we],be.url=$.url.toString(),be.requestUrl=this.requestUrl,be.redirectUrls=this.redirects,be.request=this,be.isFromCache=K.fromCache||!1,be.ip=this.ip,be.retryCount=this.retryCount,this[I]=be.isFromCache,this[k]=Number(K.headers["content-length"])||void 0,this[D]=K,K.once("end",()=>{this[k]=this[M],this.emit("downloadProgress",this.downloadProgress)}),K.once("error",ve=>{K.destroy(),this._beforeError(new oe(ve,this))}),K.once("aborted",()=>{this._beforeError(new oe({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let de=K.headers["set-cookie"];if(p.default.object($.cookieJar)&&de){let ve=de.map(async Se=>$.cookieJar.setCookie(Se,ce.toString()));$.ignoreInvalidCookies&&(ve=ve.map(async Se=>Se.catch(()=>{})));try{await Promise.all(ve)}catch(Se){this._beforeError(Se);return}}if($.followRedirect&&K.headers.location&&q.has(we)){if(K.resume(),this[O]&&(this[N](),delete this[O],this[se]()),(we===303&&$.method!=="GET"&&$.method!=="HEAD"||!$.methodRewriting)&&($.method="GET","body"in $&&delete $.body,"json"in $&&delete $.json,"form"in $&&delete $.form,this[J]=void 0,delete $.headers["content-length"]),this.redirects.length>=$.maxRedirects){this._beforeError(new X(this));return}try{let ve=function(Me){return Me.protocol==="unix:"||Me.hostname==="unix"},Se=Buffer.from(K.headers.location,"binary").toString(),Ae=new i.URL(Se,ce),$e=Ae.toString();if(decodeURI($e),!ve(ce)&&ve(Ae)){this._beforeError(new H("Cannot redirect to UNIX socket",{},this));return}Ae.hostname!==ce.hostname||Ae.port!==ce.port?("host"in $.headers&&delete $.headers.host,"cookie"in $.headers&&delete $.headers.cookie,"authorization"in $.headers&&delete $.headers.authorization,($.username||$.password)&&($.username="",$.password="")):(Ae.username=$.username,Ae.password=$.password),this.redirects.push($e),$.url=Ae;for(let Me of $.hooks.beforeRedirect)await Me($,be);this.emit("redirect",be,$),await this._makeRequest()}catch(ve){this._beforeError(ve);return}return}if($.isStream&&$.throwHttpErrors&&!x.isResponseOk(be)){this._beforeError(new ie(be));return}K.on("readable",()=>{this[G]&&this._read()}),this.on("resume",()=>{K.resume()}),this.on("pause",()=>{K.pause()}),K.once("end",()=>{this.push(null)}),this.emit("response",K);for(let ve of this[W])if(!ve.headersSent){for(let Se in K.headers){let Ae=$.decompress?Se!=="content-encoding":!0,$e=K.headers[Se];Ae&&ve.setHeader(Se,$e)}ve.statusCode=we}}async _onResponse(K){try{await this._onResponseBase(K)}catch($){this._beforeError($)}}_onRequest(K){let{options:$}=this,{timeout:ce,url:we}=$;s.default(K),this[N]=g.default(K,ce,we);let be=$.cache?"cacheableResponse":"response";K.once(be,Se=>{this._onResponse(Se)}),K.once("error",Se=>{var Ae;K.destroy(),(Ae=K.res)===null||Ae===void 0||Ae.removeAllListeners("end"),Se=Se instanceof g.TimeoutError?new pe(Se,this.timings,this):new H(Se.message,Se,this),this._beforeError(Se)}),this[se]=_.default(K,this,Ee),this[O]=K,this.emit("uploadProgress",this.uploadProgress);let de=this[J],ve=this.redirects.length===0?this:K;p.default.nodeStream(de)?(de.pipe(ve),de.once("error",Se=>{this._beforeError(new ae(Se,this))})):(this._unlockWrite(),p.default.undefined(de)?(this._cannotHaveBody||this._noPipe)&&(ve.end(),this._lockWrite()):(this._writeRequest(de,void 0,()=>{}),ve.end(),this._lockWrite())),this.emit("request",K)}async _createCacheableRequest(K,$){return new Promise((ce,we)=>{Object.assign($,S.default(K)),delete $.url;let be,de=ne.get($.cache)($,async ve=>{ve._readableState.autoDestroy=!1,be&&(await be).emit("cacheableResponse",ve),ce(ve)});$.url=K,de.once("error",we),de.once("request",async ve=>{be=ve,ce(be)})})}async _makeRequest(){var K,$,ce,we,be;let{options:de}=this,{headers:ve}=de;for(let De in ve)if(p.default.undefined(ve[De]))delete ve[De];else if(p.default.null_(ve[De]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${De}\` header`);if(de.decompress&&p.default.undefined(ve["accept-encoding"])&&(ve["accept-encoding"]=le?"gzip, deflate, br":"gzip, deflate"),de.cookieJar){let De=await de.cookieJar.getCookieString(de.url.toString());p.default.nonEmptyString(De)&&(de.headers.cookie=De)}for(let De of de.hooks.beforeRequest){let Jt=await De(de);if(!p.default.undefined(Jt)){de.request=()=>Jt;break}}de.body&&this[J]!==de.body&&(this[J]=de.body);let{agent:Se,request:Ae,timeout:$e,url:Me}=de;if(de.dnsCache&&!("lookup"in de)&&(de.lookup=de.dnsCache.lookup),Me.hostname==="unix"){let De=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Me.pathname}${Me.search}`);if(De!=null&&De.groups){let{socketPath:Jt,path:ra}=De.groups;Object.assign(de,{socketPath:Jt,path:ra,host:""})}}let Qt=Me.protocol==="https:",xe;de.http2?xe=u.auto:xe=Qt?o.request:l.request;let Pe=(K=de.request)!==null&&K!==void 0?K:xe,Ie=de.cache?this._createCacheableRequest:Pe;Se&&!de.http2&&(de.agent=Se[Qt?"https":"http"]),de[O]=Pe,delete de.request,delete de.timeout;let ke=de;if(ke.shared=($=de.cacheOptions)===null||$===void 0?void 0:$.shared,ke.cacheHeuristic=(ce=de.cacheOptions)===null||ce===void 0?void 0:ce.cacheHeuristic,ke.immutableMinTimeToLive=(we=de.cacheOptions)===null||we===void 0?void 0:we.immutableMinTimeToLive,ke.ignoreCargoCult=(be=de.cacheOptions)===null||be===void 0?void 0:be.ignoreCargoCult,de.dnsLookupIpVersion!==void 0)try{ke.family=w.dnsLookupIpVersionToFamily(de.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}de.https&&("rejectUnauthorized"in de.https&&(ke.rejectUnauthorized=de.https.rejectUnauthorized),de.https.checkServerIdentity&&(ke.checkServerIdentity=de.https.checkServerIdentity),de.https.certificateAuthority&&(ke.ca=de.https.certificateAuthority),de.https.certificate&&(ke.cert=de.https.certificate),de.https.key&&(ke.key=de.https.key),de.https.passphrase&&(ke.passphrase=de.https.passphrase),de.https.pfx&&(ke.pfx=de.https.pfx));try{let De=await Ie(Me,ke);p.default.undefined(De)&&(De=xe(Me,ke)),de.request=Ae,de.timeout=$e,de.agent=Se,de.https&&("rejectUnauthorized"in de.https&&delete ke.rejectUnauthorized,de.https.checkServerIdentity&&delete ke.checkServerIdentity,de.https.certificateAuthority&&delete ke.ca,de.https.certificate&&delete ke.cert,de.https.key&&delete ke.key,de.https.passphrase&&delete ke.passphrase,de.https.pfx&&delete ke.pfx),Y(De)?this._onRequest(De):this.writable?(this.once("finish",()=>{this._onResponse(De)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(De)}catch(De){throw De instanceof c.CacheError?new me(De,this):new H(De.message,De,this)}}async _error(K){try{for(let $ of this.options.hooks.beforeError)K=await $(K)}catch($){K=new H($.message,$,this)}this.destroy(K)}_beforeError(K){if(this[V])return;let{options:$}=this,ce=this.retryCount+1;this[V]=!0,K instanceof H||(K=new H(K.message,K,this));let we=K,{response:be}=we;(async()=>{if(be&&!be.body){be.setEncoding(this._readableState.encoding);try{be.rawBody=await m.default(be),be.body=be.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let de;try{let ve;be&&"retry-after"in be.headers&&(ve=Number(be.headers["retry-after"]),Number.isNaN(ve)?(ve=Date.parse(be.headers["retry-after"])-Date.now(),ve<=0&&(ve=1)):ve*=1e3),de=await $.retry.calculateDelay({attemptCount:ce,retryOptions:$.retry,error:we,retryAfter:ve,computedValue:B.default({attemptCount:ce,retryOptions:$.retry,error:we,retryAfter:ve,computedValue:0})})}catch(ve){this._error(new H(ve.message,ve,this));return}if(de){let ve=async()=>{try{for(let Se of this.options.hooks.beforeRetry)await Se(this.options,we,ce)}catch(Se){this._error(new H(Se.message,K,this));return}this.destroyed||(this.destroy(),this.emit("retry",ce,K))};this[Q]=setTimeout(ve,de);return}}this._error(we)})()}_read(){this[G]=!0;let K=this[D];if(K&&!this[V]){K.readableLength&&(this[G]=!1);let $;for(;($=K.read())!==null;){this[M]+=$.length,this[F]=!0;let ce=this.downloadProgress;ce.percent<1&&this.emit("downloadProgress",ce),this.push($)}}}_write(K,$,ce){let we=()=>{this._writeRequest(K,$,ce)};this.requestInitialized?we():this[j].push(we)}_writeRequest(K,$,ce){this[O].destroyed||(this._progressCallbacks.push(()=>{this[U]+=Buffer.byteLength(K,$);let we=this.uploadProgress;we.percent<1&&this.emit("uploadProgress",we)}),this[O].write(K,$,we=>{!we&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),ce(we)}))}_final(K){let $=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(O in this)){K();return}if(this[O].destroyed){K();return}this[O].end(ce=>{ce||(this[L]=this[U],this.emit("uploadProgress",this.uploadProgress),this[O].emit("upload-complete")),K(ce)})};this.requestInitialized?$():this[j].push($)}_destroy(K,$){var ce;this[V]=!0,clearTimeout(this[Q]),O in this&&(this[N](),!((ce=this[D])===null||ce===void 0)&&ce.complete||this[O].destroy()),K!==null&&!p.default.undefined(K)&&!(K instanceof H)&&(K=new H(K.message,K,this)),$(K)}get _isAboutToError(){return this[V]}get ip(){var K;return(K=this.socket)===null||K===void 0?void 0:K.remoteAddress}get aborted(){var K,$,ce;return(($=(K=this[O])===null||K===void 0?void 0:K.destroyed)!==null&&$!==void 0?$:this.destroyed)&&!(!((ce=this[z])===null||ce===void 0)&&ce.complete)}get socket(){var K,$;return($=(K=this[O])===null||K===void 0?void 0:K.socket)!==null&&$!==void 0?$:void 0}get downloadProgress(){let K;return this[k]?K=this[M]/this[k]:this[k]===this[M]?K=1:K=0,{percent:K,transferred:this[M],total:this[k]}}get uploadProgress(){let K;return this[L]?K=this[U]/this[L]:this[L]===this[U]?K=1:K=0,{percent:K,transferred:this[U],total:this[L]}}get timings(){var K;return(K=this[O])===null||K===void 0?void 0:K.timings}get isFromCache(){return this[I]}pipe(K,$){if(this[F])throw new Error("Failed to pipe. The response has been emitted already.");return K instanceof a.ServerResponse&&this[W].add(K),super.pipe(K,$)}unpipe(K){return K instanceof a.ServerResponse&&this[W].delete(K),super.unpipe(K),this}};e.default=Ce}),Do=re(e=>{"use strict";ee();var r=e&&e.__createBinding||(Object.create?function(a,o,s,f){f===void 0&&(f=s),Object.defineProperty(a,f,{enumerable:!0,get:function(){return o[s]}})}:function(a,o,s,f){f===void 0&&(f=s),a[f]=o[s]}),t=e&&e.__exportStar||function(a,o){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,a,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=e.ParseError=void 0;var n=ko(),i=class extends n.RequestError{constructor(a,o){let{options:s}=o.request;super(`${a.message} in "${s.url.toString()}"`,a,o.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};e.ParseError=i;var l=class extends n.RequestError{constructor(a){super("Promise was canceled",{},a),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};e.CancelError=l,t(ko(),e)}),v6=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=Do(),t=(n,i,l,a)=>{let{rawBody:o}=n;try{if(i==="text")return o.toString(a);if(i==="json")return o.length===0?"":l(o.toString());if(i==="buffer")return o;throw new r.ParseError({message:`Unknown body type '${i}'`,name:"Error"},n)}catch(s){throw new r.ParseError(s,n)}};e.default=t}),c8=re(e=>{"use strict";ee();var r=e&&e.__createBinding||(Object.create?function(p,y,b,_){_===void 0&&(_=b),Object.defineProperty(p,_,{enumerable:!0,get:function(){return y[b]}})}:function(p,y,b,_){_===void 0&&(_=b),p[_]=y[b]}),t=e&&e.__exportStar||function(p,y){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(y,b)&&r(y,p,b)};Object.defineProperty(e,"__esModule",{value:!0});var n=fe("events"),i=Rr(),l=MP(),a=Do(),o=v6(),s=ko(),f=a8(),c=u8(),h=l8(),u=["request","response","redirect","uploadProgress","downloadProgress"];function d(p){let y,b,_=new n.EventEmitter,g=new l((E,v,m)=>{let w=x=>{let A=new s.default(void 0,p);A.retryCount=x,A._noPipe=!0,m(()=>A.destroy()),m.shouldReject=!1,m(()=>v(new a.CancelError(A))),y=A,A.once("response",async P=>{var O;if(P.retryCount=x,P.request.aborted)return;let D;try{D=await c.default(A),P.rawBody=D}catch{return}if(A._isAboutToError)return;let k=((O=P.headers["content-encoding"])!==null&&O!==void 0?O:"").toLowerCase(),M=["gzip","deflate","br"].includes(k),{options:L}=A;if(M&&!L.decompress)P.body=D;else try{P.body=o.default(P,L.responseType,L.parseJson,L.encoding)}catch(U){if(P.body=D.toString(),h.isResponseOk(P)){A._beforeError(U);return}}try{for(let[U,W]of L.hooks.afterResponse.entries())P=await W(P,async se=>{let I=s.default.normalizeArguments(void 0,{...se,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},L);I.hooks.afterResponse=I.hooks.afterResponse.slice(0,U);for(let F of I.hooks.beforeRetry)await F(I);let N=d(I);return m(()=>{N.catch(()=>{}),N.cancel()}),N})}catch(U){A._beforeError(new a.RequestError(U.message,U,A));return}if(b=P,!h.isResponseOk(P)){A._beforeError(new a.HTTPError(P));return}A.destroy(),E(A.options.resolveBodyOnly?P.body:P)});let R=P=>{if(g.isCanceled)return;let{options:O}=A;if(P instanceof a.HTTPError&&!O.throwHttpErrors){let{response:D}=P;E(A.options.resolveBodyOnly?D.body:D);return}v(P)};A.once("error",R);let B=A.options.body;A.once("retry",(P,O)=>{var D,k;if(B===((D=O.request)===null||D===void 0?void 0:D.options.body)&&i.default.nodeStream((k=O.request)===null||k===void 0?void 0:k.options.body)){R(O);return}w(P)}),f.default(A,_,u)};w(0)});g.on=(E,v)=>(_.on(E,v),g);let S=E=>{let v=(async()=>{await g;let{options:m}=b.request;return o.default(b,E,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)),v};return g.json=()=>{let{headers:E}=y.options;return!y.writableFinished&&E.accept===void 0&&(E.accept="application/json"),S("json")},g.buffer=()=>S("buffer"),g.text=()=>S("text"),g}e.default=d,t(Do(),e)}),_6=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=Do();function t(n,...i){let l=(async()=>{if(n instanceof r.RequestError)try{for(let o of i)if(o)for(let s of o)n=await s(n)}catch(o){n=o}throw n})(),a=()=>l;return l.json=a,l.text=a,l.buffer=a,l.on=a,l}e.default=t}),w6=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=Rr();function t(n){for(let i of Object.values(n))(r.default.plainObject(i)||r.default.array(i))&&t(i);return Object.freeze(n)}e.default=t}),E6=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0})}),Bg=re(e=>{"use strict";ee();var r=e&&e.__createBinding||(Object.create?function(_,g,S,E){E===void 0&&(E=S),Object.defineProperty(_,E,{enumerable:!0,get:function(){return g[S]}})}:function(_,g,S,E){E===void 0&&(E=S),_[E]=g[S]}),t=e&&e.__exportStar||function(_,g){for(var S in _)S!=="default"&&!Object.prototype.hasOwnProperty.call(g,S)&&r(g,_,S)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHandler=void 0;var n=Rr(),i=c8(),l=_6(),a=ko(),o=w6(),s={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},f=async _=>new Promise(g=>{setTimeout(g,_)}),{normalizeArguments:c}=a.default,h=(..._)=>{let g;for(let S of _)g=c(void 0,S,g);return g},u=_=>_.isStream?new a.default(void 0,_):i.default(_),d=_=>"defaults"in _&&"options"in _.defaults,p=["get","post","put","patch","head","delete"];e.defaultHandler=(_,g)=>g(_);var y=(_,g)=>{if(_)for(let S of _)S(g)},b=_=>{_._rawHandlers=_.handlers,_.handlers=_.handlers.map(E=>(v,m)=>{let w,x=E(v,A=>(w=m(A),w));if(x!==w&&!v.isStream&&w){let A=x,{then:R,catch:B,finally:P}=A;Object.setPrototypeOf(A,Object.getPrototypeOf(w)),Object.defineProperties(A,Object.getOwnPropertyDescriptors(w)),A.then=R,A.catch=B,A.finally=P}return x});let g=(E,v={},m)=>{var w,x;let A=0,R=B=>_.handlers[A++](B,A===_.handlers.length?u:R);if(n.default.plainObject(E)){let B={...E,...v};a.setNonEnumerableProperties([E,v],B),v=B,E=void 0}try{let B;try{y(_.options.hooks.init,v),y((w=v.hooks)===null||w===void 0?void 0:w.init,v)}catch(O){B=O}let P=c(E,v,m!=null?m:_.options);if(P[a.kIsNormalizedAlready]=!0,B)throw new i.RequestError(B.message,B,P);return R(P)}catch(B){if(v.isStream)throw B;return l.default(B,_.options.hooks.beforeError,(x=v.hooks)===null||x===void 0?void 0:x.beforeError)}};g.extend=(...E)=>{let v=[_.options],m=[..._._rawHandlers],w;for(let x of E)d(x)?(v.push(x.defaults.options),m.push(...x.defaults._rawHandlers),w=x.defaults.mutableDefaults):(v.push(x),"handlers"in x&&m.push(...x.handlers),w=x.mutableDefaults);return m=m.filter(x=>x!==e.defaultHandler),m.length===0&&m.push(e.defaultHandler),b({options:h(...v),handlers:m,mutableDefaults:!!w})};let S=async function*(E,v){let m=c(E,v,_.options);m.resolveBodyOnly=!1;let w=m.pagination;if(!n.default.object(w))throw new TypeError("`options.pagination` must be implemented");let x=[],{countLimit:A}=w,R=0;for(;R<w.requestLimit;){R!==0&&await f(w.backoff);let B=await g(void 0,void 0,m),P=await w.transform(B),O=[];for(let k of P)if(w.filter(k,x,O)&&(!w.shouldContinue(k,x,O)||(yield k,w.stackAllItems&&x.push(k),O.push(k),--A<=0)))return;let D=w.paginate(B,x,O);if(D===!1)return;D===B.request.options?m=B.request.options:D!==void 0&&(m=c(void 0,D,m)),R++}};g.paginate=S,g.paginate.all=async(E,v)=>{let m=[];for await(let w of S(E,v))m.push(w);return m},g.paginate.each=S,g.stream=(E,v)=>g(E,{...v,isStream:!0});for(let E of p)g[E]=(v,m)=>g(v,{...m,method:E}),g.stream[E]=(v,m)=>g(v,{...m,method:E,isStream:!0});return Object.assign(g,s),Object.defineProperty(g,"defaults",{value:_.mutableDefaults?_:o.default(_),writable:_.mutableDefaults,configurable:_.mutableDefaults,enumerable:!0}),g.mergeOptions=h,g};e.default=b,t(E6(),e)}),S6=re((e,r)=>{"use strict";ee();var t=e&&e.__createBinding||(Object.create?function(s,f,c,h){h===void 0&&(h=c),Object.defineProperty(s,h,{enumerable:!0,get:function(){return f[c]}})}:function(s,f,c,h){h===void 0&&(h=c),s[h]=f[c]}),n=e&&e.__exportStar||function(s,f){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(f,c)&&t(f,s,c)};Object.defineProperty(e,"__esModule",{value:!0});var i=fe("url"),l=Bg(),a={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:s})=>s},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:s=>s.request.options.responseType==="json"?s.body:JSON.parse(s.body),paginate:s=>{if(!Reflect.has(s.headers,"link"))return!1;let f=s.headers.link.split(","),c;for(let h of f){let u=h.split(";");if(u[1].includes("next")){c=u[0].trimStart().trim(),c=c.slice(1,-1);break}}return c?{url:new i.URL(c)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:s=>JSON.parse(s),stringifyJson:s=>JSON.stringify(s),cacheOptions:{}},handlers:[l.defaultHandler],mutableDefaults:!1},o=l.default(a);e.default=o,r.exports=o,r.exports.default=o,r.exports.__esModule=!0,n(Bg(),e),n(c8(),e)}),Ui=re((e,r)=>{"use strict";ee();var t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);r.exports=n=>n?Object.keys(n).map(i=>[t.has(i)?t.get(i):i,n[i]]).reduce((i,l)=>(i[l[0]]=l[1],i),Object.create(null)):{}}),dh=re((e,r)=>{"use strict";ee();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=fe("events"),i=fe("stream"),l=fe("string_decoder").StringDecoder,a=Symbol("EOF"),o=Symbol("maybeEmitEnd"),s=Symbol("emittedEnd"),f=Symbol("emittingEnd"),c=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),w=Symbol("bufferPush"),x=Symbol("bufferShift"),A=Symbol("objectMode"),R=Symbol("destroyed"),B=Symbol("emitData"),P=Symbol("emitEnd"),O=Symbol("emitEnd2"),D=Symbol("async"),k=V=>Promise.resolve().then(V),M=global._MP_NO_ITERATOR_SYMBOLS_!=="1",L=M&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),U=M&&Symbol.iterator||Symbol("iterator not implemented"),W=V=>V==="end"||V==="finish"||V==="prefinish",se=V=>V instanceof ArrayBuffer||typeof V=="object"&&V.constructor&&V.constructor.name==="ArrayBuffer"&&V.byteLength>=0,I=V=>!Buffer.isBuffer(V)&&ArrayBuffer.isView(V),N=class{constructor(V,G,J){this.src=V,this.dest=G,this.opts=J,this.ondrain=()=>V[S](),G.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},F=class extends N{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(V,G,J){super(V,G,J),this.proxyErrors=j=>G.emit("error",j),V.on("error",this.proxyErrors)}};r.exports=class h8 extends i{constructor(G){super(),this[_]=!1,this[g]=!1,this[v]=[],this[E]=[],this[A]=G&&G.objectMode||!1,this[A]?this[y]=null:this[y]=G&&G.encoding||null,this[y]==="buffer"&&(this[y]=null),this[D]=G&&!!G.async||!1,this[b]=this[y]?new l(this[y]):null,this[a]=!1,this[s]=!1,this[f]=!1,this[h]=!1,this[c]=null,this.writable=!0,this.readable=!0,this[m]=0,this[R]=!1,G&&G.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[E]}),G&&G.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[y]}set encoding(G){if(this[A])throw new Error("cannot set encoding in objectMode");if(this[y]&&G!==this[y]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[y]!==G&&(this[b]=G?new l(G):null,this[E].length&&(this[E]=this[E].map(J=>this[b].write(J)))),this[y]=G}setEncoding(G){this.encoding=G}get objectMode(){return this[A]}set objectMode(G){this[A]=this[A]||!!G}get async(){return this[D]}set async(G){this[D]=this[D]||!!G}write(G,J,j){if(this[a])throw new Error("write after end");if(this[R])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof J=="function"&&(j=J,J="utf8"),J||(J="utf8");let z=this[D]?k:Q=>Q();return!this[A]&&!Buffer.isBuffer(G)&&(I(G)?G=Buffer.from(G.buffer,G.byteOffset,G.byteLength):se(G)?G=Buffer.from(G):typeof G!="string"&&(this.objectMode=!0)),this[A]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",G):this[w](G),this[m]!==0&&this.emit("readable"),j&&z(j),this.flowing):G.length?(typeof G=="string"&&!(J===this[y]&&!this[b].lastNeed)&&(G=Buffer.from(G,J)),Buffer.isBuffer(G)&&this[y]&&(G=this[b].write(G)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",G):this[w](G),this[m]!==0&&this.emit("readable"),j&&z(j),this.flowing):(this[m]!==0&&this.emit("readable"),j&&z(j),this.flowing)}read(G){if(this[R])return null;if(this[m]===0||G===0||G>this[m])return this[o](),null;this[A]&&(G=null),this[E].length>1&&!this[A]&&(this.encoding?this[E]=[this[E].join("")]:this[E]=[Buffer.concat(this[E],this[m])]);let J=this[u](G||null,this[E][0]);return this[o](),J}[u](G,J){return G===J.length||G===null?this[x]():(this[E][0]=J.slice(G),J=J.slice(0,G),this[m]-=G),this.emit("data",J),!this[E].length&&!this[a]&&this.emit("drain"),J}end(G,J,j){return typeof G=="function"&&(j=G,G=null),typeof J=="function"&&(j=J,J="utf8"),G&&this.write(G,J),j&&this.once("end",j),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[o](),this}[S](){this[R]||(this[g]=!1,this[_]=!0,this.emit("resume"),this[E].length?this[d]():this[a]?this[o]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[R]}get flowing(){return this[_]}get paused(){return this[g]}[w](G){this[A]?this[m]+=1:this[m]+=G.length,this[E].push(G)}[x](){return this[E].length&&(this[A]?this[m]-=1:this[m]-=this[E][0].length),this[E].shift()}[d](G){do;while(this[p](this[x]()));!G&&!this[E].length&&!this[a]&&this.emit("drain")}[p](G){return G?(this.emit("data",G),this.flowing):!1}pipe(G,J){if(this[R])return;let j=this[s];return J=J||{},G===t.stdout||G===t.stderr?J.end=!1:J.end=J.end!==!1,J.proxyErrors=!!J.proxyErrors,j?J.end&&G.end():(this[v].push(J.proxyErrors?new F(this,G,J):new N(this,G,J)),this[D]?k(()=>this[S]()):this[S]()),G}unpipe(G){let J=this[v].find(j=>j.dest===G);J&&(this[v].splice(this[v].indexOf(J),1),J.unpipe())}addListener(G,J){return this.on(G,J)}on(G,J){let j=super.on(G,J);return G==="data"&&!this[v].length&&!this.flowing?this[S]():G==="readable"&&this[m]!==0?super.emit("readable"):W(G)&&this[s]?(super.emit(G),this.removeAllListeners(G)):G==="error"&&this[c]&&(this[D]?k(()=>J.call(this,this[c])):J.call(this,this[c])),j}get emittedEnd(){return this[s]}[o](){!this[f]&&!this[s]&&!this[R]&&this[E].length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(G,J,...j){if(G!=="error"&&G!=="close"&&G!==R&&this[R])return;if(G==="data")return J?this[D]?k(()=>this[B](J)):this[B](J):!1;if(G==="end")return this[P]();if(G==="close"){if(this[h]=!0,!this[s]&&!this[R])return;let Q=super.emit("close");return this.removeAllListeners("close"),Q}else if(G==="error"){this[c]=J;let Q=super.emit("error",J);return this[o](),Q}else if(G==="resume"){let Q=super.emit("resume");return this[o](),Q}else if(G==="finish"||G==="prefinish"){let Q=super.emit(G);return this.removeAllListeners(G),Q}let z=super.emit(G,J,...j);return this[o](),z}[B](G){for(let j of this[v])j.dest.write(G)===!1&&this.pause();let J=super.emit("data",G);return this[o](),J}[P](){this[s]||(this[s]=!0,this.readable=!1,this[D]?k(()=>this[O]()):this[O]())}[O](){if(this[b]){let J=this[b].end();if(J){for(let j of this[v])j.dest.write(J);super.emit("data",J)}}for(let J of this[v])J.end();let G=super.emit("end");return this.removeAllListeners("end"),G}collect(){let G=[];this[A]||(G.dataLength=0);let J=this.promise();return this.on("data",j=>{G.push(j),this[A]||(G.dataLength+=j.length)}),J.then(()=>G)}concat(){return this[A]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(G=>this[A]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?G.join(""):Buffer.concat(G,G.dataLength))}promise(){return new Promise((G,J)=>{this.on(R,()=>J(new Error("stream destroyed"))),this.on("error",j=>J(j)),this.on("end",()=>G())})}[L](){return{next:()=>{let G=this.read();if(G!==null)return Promise.resolve({done:!1,value:G});if(this[a])return Promise.resolve({done:!0});let J=null,j=null,z=Y=>{this.removeListener("data",Q),this.removeListener("end",le),j(Y)},Q=Y=>{this.removeListener("error",z),this.removeListener("end",le),this.pause(),J({value:Y,done:!!this[a]})},le=()=>{this.removeListener("error",z),this.removeListener("data",Q),J({done:!0})},ue=()=>z(new Error("stream destroyed"));return new Promise((Y,ne)=>{j=ne,J=Y,this.once(R,ue),this.once("error",z),this.once("end",le),this.once("data",Q)})}}}[U](){return{next:()=>{let G=this.read();return{value:G,done:G===null}}}}destroy(G){return this[R]?(G?this.emit("error",G):this.emit(R),this):(this[R]=!0,this[E].length=0,this[m]=0,typeof this.close=="function"&&!this[h]&&this.close(),G?this.emit("error",G):this.emit(R),this)}static isStream(G){return!!G&&(G instanceof h8||G instanceof i||G instanceof n&&(typeof G.pipe=="function"||typeof G.write=="function"&&typeof G.end=="function"))}}}),x6=re((e,r)=>{ee();var t=fe("zlib").constants||{ZLIB_VERNUM:4736};r.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},t))}),f8=re((e,r)=>{"use strict";ee();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=fe("events"),i=fe("stream"),l=fe("string_decoder").StringDecoder,a=Symbol("EOF"),o=Symbol("maybeEmitEnd"),s=Symbol("emittedEnd"),f=Symbol("emittingEnd"),c=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),w=Symbol("objectMode"),x=Symbol("destroyed"),A=Symbol("emitData"),R=Symbol("emitEnd"),B=Symbol("emitEnd2"),P=Symbol("async"),O=N=>Promise.resolve().then(N),D=global._MP_NO_ITERATOR_SYMBOLS_!=="1",k=D&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),M=D&&Symbol.iterator||Symbol("iterator not implemented"),L=N=>N==="end"||N==="finish"||N==="prefinish",U=N=>N instanceof ArrayBuffer||typeof N=="object"&&N.constructor&&N.constructor.name==="ArrayBuffer"&&N.byteLength>=0,W=N=>!Buffer.isBuffer(N)&&ArrayBuffer.isView(N),se=class{constructor(N,F,V){this.src=N,this.dest=F,this.opts=V,this.ondrain=()=>N[S](),F.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},I=class extends se{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(N,F,V){super(N,F,V),this.proxyErrors=G=>F.emit("error",G),N.on("error",this.proxyErrors)}};r.exports=class p8 extends i{constructor(F){super(),this[_]=!1,this[g]=!1,this.pipes=[],this.buffer=[],this[w]=F&&F.objectMode||!1,this[w]?this[y]=null:this[y]=F&&F.encoding||null,this[y]==="buffer"&&(this[y]=null),this[P]=F&&!!F.async||!1,this[b]=this[y]?new l(this[y]):null,this[a]=!1,this[s]=!1,this[f]=!1,this[h]=!1,this[c]=null,this.writable=!0,this.readable=!0,this[E]=0,this[x]=!1}get bufferLength(){return this[E]}get encoding(){return this[y]}set encoding(F){if(this[w])throw new Error("cannot set encoding in objectMode");if(this[y]&&F!==this[y]&&(this[b]&&this[b].lastNeed||this[E]))throw new Error("cannot change encoding");this[y]!==F&&(this[b]=F?new l(F):null,this.buffer.length&&(this.buffer=this.buffer.map(V=>this[b].write(V)))),this[y]=F}setEncoding(F){this.encoding=F}get objectMode(){return this[w]}set objectMode(F){this[w]=this[w]||!!F}get async(){return this[P]}set async(F){this[P]=this[P]||!!F}write(F,V,G){if(this[a])throw new Error("write after end");if(this[x])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof V=="function"&&(G=V,V="utf8"),V||(V="utf8");let J=this[P]?O:j=>j();return!this[w]&&!Buffer.isBuffer(F)&&(W(F)?F=Buffer.from(F.buffer,F.byteOffset,F.byteLength):U(F)?F=Buffer.from(F):typeof F!="string"&&(this.objectMode=!0)),this[w]?(this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",F):this[v](F),this[E]!==0&&this.emit("readable"),G&&J(G),this.flowing):F.length?(typeof F=="string"&&!(V===this[y]&&!this[b].lastNeed)&&(F=Buffer.from(F,V)),Buffer.isBuffer(F)&&this[y]&&(F=this[b].write(F)),this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",F):this[v](F),this[E]!==0&&this.emit("readable"),G&&J(G),this.flowing):(this[E]!==0&&this.emit("readable"),G&&J(G),this.flowing)}read(F){if(this[x])return null;if(this[E]===0||F===0||F>this[E])return this[o](),null;this[w]&&(F=null),this.buffer.length>1&&!this[w]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[E])]);let V=this[u](F||null,this.buffer[0]);return this[o](),V}[u](F,V){return F===V.length||F===null?this[m]():(this.buffer[0]=V.slice(F),V=V.slice(0,F),this[E]-=F),this.emit("data",V),!this.buffer.length&&!this[a]&&this.emit("drain"),V}end(F,V,G){return typeof F=="function"&&(G=F,F=null),typeof V=="function"&&(G=V,V="utf8"),F&&this.write(F,V),G&&this.once("end",G),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[o](),this}[S](){this[x]||(this[g]=!1,this[_]=!0,this.emit("resume"),this.buffer.length?this[d]():this[a]?this[o]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[x]}get flowing(){return this[_]}get paused(){return this[g]}[v](F){this[w]?this[E]+=1:this[E]+=F.length,this.buffer.push(F)}[m](){return this.buffer.length&&(this[w]?this[E]-=1:this[E]-=this.buffer[0].length),this.buffer.shift()}[d](F){do;while(this[p](this[m]()));!F&&!this.buffer.length&&!this[a]&&this.emit("drain")}[p](F){return F?(this.emit("data",F),this.flowing):!1}pipe(F,V){if(this[x])return;let G=this[s];return V=V||{},F===t.stdout||F===t.stderr?V.end=!1:V.end=V.end!==!1,V.proxyErrors=!!V.proxyErrors,G?V.end&&F.end():(this.pipes.push(V.proxyErrors?new I(this,F,V):new se(this,F,V)),this[P]?O(()=>this[S]()):this[S]()),F}unpipe(F){let V=this.pipes.find(G=>G.dest===F);V&&(this.pipes.splice(this.pipes.indexOf(V),1),V.unpipe())}addListener(F,V){return this.on(F,V)}on(F,V){let G=super.on(F,V);return F==="data"&&!this.pipes.length&&!this.flowing?this[S]():F==="readable"&&this[E]!==0?super.emit("readable"):L(F)&&this[s]?(super.emit(F),this.removeAllListeners(F)):F==="error"&&this[c]&&(this[P]?O(()=>V.call(this,this[c])):V.call(this,this[c])),G}get emittedEnd(){return this[s]}[o](){!this[f]&&!this[s]&&!this[x]&&this.buffer.length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(F,V,...G){if(F!=="error"&&F!=="close"&&F!==x&&this[x])return;if(F==="data")return V?this[P]?O(()=>this[A](V)):this[A](V):!1;if(F==="end")return this[R]();if(F==="close"){if(this[h]=!0,!this[s]&&!this[x])return;let j=super.emit("close");return this.removeAllListeners("close"),j}else if(F==="error"){this[c]=V;let j=super.emit("error",V);return this[o](),j}else if(F==="resume"){let j=super.emit("resume");return this[o](),j}else if(F==="finish"||F==="prefinish"){let j=super.emit(F);return this.removeAllListeners(F),j}let J=super.emit(F,V,...G);return this[o](),J}[A](F){for(let G of this.pipes)G.dest.write(F)===!1&&this.pause();let V=super.emit("data",F);return this[o](),V}[R](){this[s]||(this[s]=!0,this.readable=!1,this[P]?O(()=>this[B]()):this[B]())}[B](){if(this[b]){let V=this[b].end();if(V){for(let G of this.pipes)G.dest.write(V);super.emit("data",V)}}for(let V of this.pipes)V.end();let F=super.emit("end");return this.removeAllListeners("end"),F}collect(){let F=[];this[w]||(F.dataLength=0);let V=this.promise();return this.on("data",G=>{F.push(G),this[w]||(F.dataLength+=G.length)}),V.then(()=>F)}concat(){return this[w]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(F=>this[w]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?F.join(""):Buffer.concat(F,F.dataLength))}promise(){return new Promise((F,V)=>{this.on(x,()=>V(new Error("stream destroyed"))),this.on("error",G=>V(G)),this.on("end",()=>F())})}[k](){return{next:()=>{let F=this.read();if(F!==null)return Promise.resolve({done:!1,value:F});if(this[a])return Promise.resolve({done:!0});let V=null,G=null,J=le=>{this.removeListener("data",j),this.removeListener("end",z),G(le)},j=le=>{this.removeListener("error",J),this.removeListener("end",z),this.pause(),V({value:le,done:!!this[a]})},z=()=>{this.removeListener("error",J),this.removeListener("data",j),V({done:!0})},Q=()=>J(new Error("stream destroyed"));return new Promise((le,ue)=>{G=ue,V=le,this.once(x,Q),this.once("error",J),this.once("end",z),this.once("data",j)})}}}[M](){return{next:()=>{let F=this.read();return{value:F,done:F===null}}}}destroy(F){return this[x]?(F?this.emit("error",F):this.emit(x),this):(this[x]=!0,this.buffer.length=0,this[E]=0,typeof this.close=="function"&&!this[h]&&this.close(),F?this.emit("error",F):this.emit(x),this)}static isStream(F){return!!F&&(F instanceof p8||F instanceof i||F instanceof n&&(typeof F.pipe=="function"||typeof F.write=="function"&&typeof F.end=="function"))}}}),d8=re(e=>{"use strict";ee();var r=fe("assert"),t=fe("buffer").Buffer,n=fe("zlib"),i=e.constants=x6(),l=f8(),a=t.concat,o=Symbol("_superWrite"),s=class extends Error{constructor(L){super("zlib: "+L.message),this.code=L.code,this.errno=L.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+L.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},f=Symbol("opts"),c=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),u=Symbol("fullFlushFlag"),d=Symbol("handle"),p=Symbol("onError"),y=Symbol("sawError"),b=Symbol("level"),_=Symbol("strategy"),g=Symbol("ended"),S=Symbol("_defaultFullFlush"),E=class extends l{constructor(L,U){if(!L||typeof L!="object")throw new TypeError("invalid options for ZlibBase constructor");super(L),this[y]=!1,this[g]=!1,this[f]=L,this[c]=L.flush,this[h]=L.finishFlush;try{this[d]=new n[U](L)}catch(W){throw new s(W)}this[p]=W=>{this[y]||(this[y]=!0,this.close(),this.emit("error",W))},this[d].on("error",W=>this[p](new s(W))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return r(this[d],"zlib binding closed"),this[d].reset()}flush(L){this.ended||(typeof L!="number"&&(L=this[u]),this.write(Object.assign(t.alloc(0),{[c]:L})))}end(L,U,W){return L&&this.write(L,U),this.flush(this[h]),this[g]=!0,super.end(null,null,W)}get ended(){return this[g]}write(L,U,W){if(typeof U=="function"&&(W=U,U="utf8"),typeof L=="string"&&(L=t.from(L,U)),this[y])return;r(this[d],"zlib binding closed");let se=this[d]._handle,I=se.close;se.close=()=>{};let N=this[d].close;this[d].close=()=>{},t.concat=G=>G;let F;try{let G=typeof L[c]=="number"?L[c]:this[c];F=this[d]._processChunk(L,G),t.concat=a}catch(G){t.concat=a,this[p](new s(G))}finally{this[d]&&(this[d]._handle=se,se.close=I,this[d].close=N,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",G=>this[p](new s(G)));let V;if(F)if(Array.isArray(F)&&F.length>0){V=this[o](t.from(F[0]));for(let G=1;G<F.length;G++)V=this[o](F[G])}else V=this[o](t.from(F));return W&&W(),V}[o](L){return super.write(L)}},v=class extends E{constructor(L,U){L=L||{},L.flush=L.flush||i.Z_NO_FLUSH,L.finishFlush=L.finishFlush||i.Z_FINISH,super(L,U),this[u]=i.Z_FULL_FLUSH,this[b]=L.level,this[_]=L.strategy}params(L,U){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[b]!==L||this[_]!==U){this.flush(i.Z_SYNC_FLUSH),r(this[d],"zlib binding closed");let W=this[d].flush;this[d].flush=(se,I)=>{this.flush(se),I()};try{this[d].params(L,U)}finally{this[d].flush=W}this[d]&&(this[b]=L,this[_]=U)}}}},m=class extends v{constructor(L){super(L,"Deflate")}},w=class extends v{constructor(L){super(L,"Inflate")}},x=Symbol("_portable"),A=class extends v{constructor(L){super(L,"Gzip"),this[x]=L&&!!L.portable}[o](L){return this[x]?(this[x]=!1,L[9]=255,super[o](L)):super[o](L)}},R=class extends v{constructor(L){super(L,"Gunzip")}},B=class extends v{constructor(L){super(L,"DeflateRaw")}},P=class extends v{constructor(L){super(L,"InflateRaw")}},O=class extends v{constructor(L){super(L,"Unzip")}},D=class extends E{constructor(L,U){L=L||{},L.flush=L.flush||i.BROTLI_OPERATION_PROCESS,L.finishFlush=L.finishFlush||i.BROTLI_OPERATION_FINISH,super(L,U),this[u]=i.BROTLI_OPERATION_FLUSH}},k=class extends D{constructor(L){super(L,"BrotliCompress")}},M=class extends D{constructor(L){super(L,"BrotliDecompress")}};e.Deflate=m,e.Inflate=w,e.Gzip=A,e.Gunzip=R,e.DeflateRaw=B,e.InflateRaw=P,e.Unzip=O,typeof n.BrotliCompress=="function"?(e.BrotliCompress=k,e.BrotliDecompress=M):e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Gi=re((e,r)=>{ee();var t=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;r.exports=t!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")}),mh=re((e,r)=>{"use strict";ee();var t=dh(),n=Gi(),i=Symbol("slurp");r.exports=class extends t{constructor(l,a,o){switch(super(),this.pause(),this.extended=a,this.globalExtended=o,this.header=l,this.startBlockSize=512*Math.ceil(l.size/512),this.blockRemain=this.startBlockSize,this.remain=l.size,this.type=l.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=n(l.path),this.mode=l.mode,this.mode&&(this.mode=this.mode&4095),this.uid=l.uid,this.gid=l.gid,this.uname=l.uname,this.gname=l.gname,this.size=l.size,this.mtime=l.mtime,this.atime=l.atime,this.ctime=l.ctime,this.linkpath=n(l.linkpath),this.uname=l.uname,this.gname=l.gname,a&&this[i](a),o&&this[i](o,!0)}write(l){let a=l.length;if(a>this.blockRemain)throw new Error("writing more to entry than is appropriate");let o=this.remain,s=this.blockRemain;return this.remain=Math.max(0,o-a),this.blockRemain=Math.max(0,s-a),this.ignore?!0:o>=a?super.write(l):super.write(l.slice(0,o))}[i](l,a){for(let o in l)l[o]!==null&&l[o]!==void 0&&!(a&&o==="path")&&(this[o]=o==="path"||o==="linkpath"?n(l[o]):l[o])}}}),m8=re(e=>{"use strict";ee(),e.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),e.code=new Map(Array.from(e.name).map(r=>[r[1],r[0]]))}),A6=re((e,r)=>{"use strict";ee();var t=(c,h)=>{if(Number.isSafeInteger(c))c<0?i(c,h):n(c,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},n=(c,h)=>{h[0]=128;for(var u=h.length;u>1;u--)h[u-1]=c&255,c=Math.floor(c/256)},i=(c,h)=>{h[0]=255;var u=!1;c=c*-1;for(var d=h.length;d>1;d--){var p=c&255;c=Math.floor(c/256),u?h[d-1]=s(p):p===0?h[d-1]=0:(u=!0,h[d-1]=f(p))}},l=c=>{let h=c[0],u=h===128?o(c.slice(1,c.length)):h===255?a(c):null;if(u===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(u))throw Error("parsed number outside of javascript safe integer range");return u},a=c=>{for(var h=c.length,u=0,d=!1,p=h-1;p>-1;p--){var y=c[p],b;d?b=s(y):y===0?b=y:(d=!0,b=f(y)),b!==0&&(u-=b*Math.pow(256,h-p-1))}return u},o=c=>{for(var h=c.length,u=0,d=h-1;d>-1;d--){var p=c[d];p!==0&&(u+=p*Math.pow(256,h-d-1))}return u},s=c=>(255^c)&255,f=c=>(255^c)+1&255;r.exports={encode:t,parse:l}}),Wi=re((e,r)=>{"use strict";ee();var t=m8(),n=fe("path").posix,i=A6(),l=Symbol("slurp"),a=Symbol("type"),o=class{constructor(w,x,A,R){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[a]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(w)?this.decode(w,x||0,A,R):w&&this.set(w)}decode(w,x,A,R){if(x||(x=0),!w||!(w.length>=x+512))throw new Error("need 512 bytes for header");if(this.path=f(w,x,100),this.mode=u(w,x+100,8),this.uid=u(w,x+108,8),this.gid=u(w,x+116,8),this.size=u(w,x+124,12),this.mtime=c(w,x+136,12),this.cksum=u(w,x+148,12),this[l](A),this[l](R,!0),this[a]=f(w,x+156,1),this[a]===""&&(this[a]="0"),this[a]==="0"&&this.path.slice(-1)==="/"&&(this[a]="5"),this[a]==="5"&&(this.size=0),this.linkpath=f(w,x+157,100),w.slice(x+257,x+265).toString()==="ustar\x0000")if(this.uname=f(w,x+265,32),this.gname=f(w,x+297,32),this.devmaj=u(w,x+329,8),this.devmin=u(w,x+337,8),w[x+475]!==0){let P=f(w,x+345,155);this.path=P+"/"+this.path}else{let P=f(w,x+345,130);P&&(this.path=P+"/"+this.path),this.atime=c(w,x+476,12),this.ctime=c(w,x+488,12)}let B=8*32;for(let P=x;P<x+148;P++)B+=w[P];for(let P=x+156;P<x+512;P++)B+=w[P];this.cksumValid=B===this.cksum,this.cksum===null&&B===8*32&&(this.nullBlock=!0)}[l](w,x){for(let A in w)w[A]!==null&&w[A]!==void 0&&!(x&&A==="path")&&(this[A]=w[A])}encode(w,x){if(w||(w=this.block=Buffer.alloc(512),x=0),x||(x=0),!(w.length>=x+512))throw new Error("need 512 bytes for header");let A=this.ctime||this.atime?130:155,R=s(this.path||"",A),B=R[0],P=R[1];this.needPax=R[2],this.needPax=m(w,x,100,B)||this.needPax,this.needPax=b(w,x+100,8,this.mode)||this.needPax,this.needPax=b(w,x+108,8,this.uid)||this.needPax,this.needPax=b(w,x+116,8,this.gid)||this.needPax,this.needPax=b(w,x+124,12,this.size)||this.needPax,this.needPax=E(w,x+136,12,this.mtime)||this.needPax,w[x+156]=this[a].charCodeAt(0),this.needPax=m(w,x+157,100,this.linkpath)||this.needPax,w.write("ustar\x0000",x+257,8),this.needPax=m(w,x+265,32,this.uname)||this.needPax,this.needPax=m(w,x+297,32,this.gname)||this.needPax,this.needPax=b(w,x+329,8,this.devmaj)||this.needPax,this.needPax=b(w,x+337,8,this.devmin)||this.needPax,this.needPax=m(w,x+345,A,P)||this.needPax,w[x+475]!==0?this.needPax=m(w,x+345,155,P)||this.needPax:(this.needPax=m(w,x+345,130,P)||this.needPax,this.needPax=E(w,x+476,12,this.atime)||this.needPax,this.needPax=E(w,x+488,12,this.ctime)||this.needPax);let O=8*32;for(let D=x;D<x+148;D++)O+=w[D];for(let D=x+156;D<x+512;D++)O+=w[D];return this.cksum=O,b(w,x+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(w){for(let x in w)w[x]!==null&&w[x]!==void 0&&(this[x]=w[x])}get type(){return t.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(w){t.code.has(w)?this[a]=t.code.get(w):this[a]=w}},s=(w,x)=>{let A=w,R="",B,P=n.parse(w).root||".";if(Buffer.byteLength(A)<100)B=[A,R,!1];else{R=n.dirname(A),A=n.basename(A);do Buffer.byteLength(A)<=100&&Buffer.byteLength(R)<=x?B=[A,R,!1]:Buffer.byteLength(A)>100&&Buffer.byteLength(R)<=x?B=[A.slice(0,100-1),R,!0]:(A=n.join(n.basename(R),A),R=n.dirname(R));while(R!==P&&!B);B||(B=[w.slice(0,100-1),"",!0])}return B},f=(w,x,A)=>w.slice(x,x+A).toString("utf8").replace(/\0.*/,""),c=(w,x,A)=>h(u(w,x,A)),h=w=>w===null?null:new Date(w*1e3),u=(w,x,A)=>w[x]&128?i.parse(w.slice(x,x+A)):p(w,x,A),d=w=>isNaN(w)?null:w,p=(w,x,A)=>d(parseInt(w.slice(x,x+A).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},b=(w,x,A,R)=>R===null?!1:R>y[A]||R<0?(i.encode(R,w.slice(x,x+A)),!0):(_(w,x,A,R),!1),_=(w,x,A,R)=>w.write(g(R,A),x,A,"ascii"),g=(w,x)=>S(Math.floor(w).toString(8),x),S=(w,x)=>(w.length===x-1?w:new Array(x-w.length-1).join("0")+w+" ")+"\0",E=(w,x,A,R)=>R===null?!1:b(w,x,A,R.getTime()/1e3),v=new Array(156).join("\0"),m=(w,x,A,R)=>R===null?!1:(w.write(R+v,x,A,"utf8"),R.length!==Buffer.byteLength(R)||R.length>A);r.exports=o}),yh=re((e,r)=>{"use strict";ee();var t=Wi(),n=fe("path"),i=class{constructor(s,f){this.atime=s.atime||null,this.charset=s.charset||null,this.comment=s.comment||null,this.ctime=s.ctime||null,this.gid=s.gid||null,this.gname=s.gname||null,this.linkpath=s.linkpath||null,this.mtime=s.mtime||null,this.path=s.path||null,this.size=s.size||null,this.uid=s.uid||null,this.uname=s.uname||null,this.dev=s.dev||null,this.ino=s.ino||null,this.nlink=s.nlink||null,this.global=f||!1}encode(){let s=this.encodeBody();if(s==="")return null;let f=Buffer.byteLength(s),c=512*Math.ceil(1+f/512),h=Buffer.allocUnsafe(c);for(let u=0;u<512;u++)h[u]=0;new t({path:("PaxHeader/"+n.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:f,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(s,512,f,"utf8");for(let u=f+512;u<h.length;u++)h[u]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(s){if(this[s]===null||this[s]===void 0)return"";let f=this[s]instanceof Date?this[s].getTime()/1e3:this[s],c=" "+(s==="dev"||s==="ino"||s==="nlink"?"SCHILY.":"")+s+"="+f+`
|
|
49
|
+
`,h=Buffer.byteLength(c),u=Math.floor(Math.log(h)/Math.log(10))+1;return h+u>=Math.pow(10,u)&&(u+=1),u+h+c}};i.parse=(s,f,c)=>new i(l(a(s),f),c);var l=(s,f)=>f?Object.keys(s).reduce((c,h)=>(c[h]=s[h],c),f):s,a=s=>s.replace(/\n$/,"").split(`
|
|
50
|
+
`).reduce(o,Object.create(null)),o=(s,f)=>{let c=parseInt(f,10);if(c!==Buffer.byteLength(f)+1)return s;f=f.slice((c+" ").length);let h=f.split("="),u=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!u)return s;let d=h.join("=");return s[u]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(u)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,s};r.exports=i}),zi=re((e,r)=>{ee(),r.exports=t=>{let n=t.length-1,i=-1;for(;n>-1&&t.charAt(n)==="/";)i=n,n--;return i===-1?t:t.slice(0,i)}}),gh=re((e,r)=>{"use strict";ee(),r.exports=t=>class extends t{warn(n,i,l={}){this.file&&(l.file=this.file),this.cwd&&(l.cwd=this.cwd),l.code=i instanceof Error&&i.code||n,l.tarCode=n,!this.strict&&l.recoverable!==!1?(i instanceof Error&&(l=Object.assign(i,l),i=i.message),this.emit("warn",l.tarCode,i,l)):i instanceof Error?this.emit("error",Object.assign(i,l)):this.emit("error",Object.assign(new Error(`${n}: ${i}`),l))}}}),y8=re((e,r)=>{"use strict";ee();var t=["|","<",">","?",":"],n=t.map(a=>String.fromCharCode(61440+a.charCodeAt(0))),i=new Map(t.map((a,o)=>[a,n[o]])),l=new Map(n.map((a,o)=>[a,t[o]]));r.exports={encode:a=>t.reduce((o,s)=>o.split(s).join(i.get(s)),a),decode:a=>n.reduce((o,s)=>o.split(s).join(l.get(s)),a)}}),g8=re((e,r)=>{ee();var{isAbsolute:t,parse:n}=fe("path").win32;r.exports=i=>{let l="",a=n(i);for(;t(i)||a.root;){let o=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":a.root;i=i.slice(o.length),l+=o,a=n(i)}return[l,i]}}),C6=re((e,r)=>{"use strict";ee(),r.exports=(t,n,i)=>(t&=4095,i&&(t=(t|384)&-19),n&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)}),b8=re((e,r)=>{"use strict";ee();var t=dh(),n=yh(),i=Wi(),l=fe("fs"),a=fe("path"),o=Gi(),s=zi(),f=(N,F)=>F?(N=o(N).replace(/^\.(\/|$)/,""),s(F)+"/"+N):o(N),c=16*1024*1024,h=Symbol("process"),u=Symbol("file"),d=Symbol("directory"),p=Symbol("symlink"),y=Symbol("hardlink"),b=Symbol("header"),_=Symbol("read"),g=Symbol("lstat"),S=Symbol("onlstat"),E=Symbol("onread"),v=Symbol("onreadlink"),m=Symbol("openfile"),w=Symbol("onopenfile"),x=Symbol("close"),A=Symbol("mode"),R=Symbol("awaitDrain"),B=Symbol("ondrain"),P=Symbol("prefix"),O=Symbol("hadError"),D=gh(),k=y8(),M=g8(),L=C6(),U=D(class extends t{constructor(N,F){if(F=F||{},super(F),typeof N!="string")throw new TypeError("path is required");this.path=o(N),this.portable=!!F.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=F.maxReadSize||c,this.linkCache=F.linkCache||new Map,this.statCache=F.statCache||new Map,this.preservePaths=!!F.preservePaths,this.cwd=o(F.cwd||process.cwd()),this.strict=!!F.strict,this.noPax=!!F.noPax,this.noMtime=!!F.noMtime,this.mtime=F.mtime||null,this.prefix=F.prefix?o(F.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof F.onwarn=="function"&&this.on("warn",F.onwarn);let V=!1;if(!this.preservePaths){let[G,J]=M(this.path);G&&(this.path=J,V=G)}this.win32=!!F.win32||process.platform==="win32",this.win32&&(this.path=k.decode(this.path.replace(/\\/g,"/")),N=N.replace(/\\/g,"/")),this.absolute=o(F.absolute||a.resolve(this.cwd,N)),this.path===""&&(this.path="./"),V&&this.warn("TAR_ENTRY_INFO",`stripping ${V} from absolute path`,{entry:this,path:V+this.path}),this.statCache.has(this.absolute)?this[S](this.statCache.get(this.absolute)):this[g]()}emit(N,...F){return N==="error"&&(this[O]=!0),super.emit(N,...F)}[g](){l.lstat(this.absolute,(N,F)=>{if(N)return this.emit("error",N);this[S](F)})}[S](N){this.statCache.set(this.absolute,N),this.stat=N,N.isFile()||(N.size=0),this.type=I(N),this.emit("stat",N),this[h]()}[h](){switch(this.type){case"File":return this[u]();case"Directory":return this[d]();case"SymbolicLink":return this[p]();default:return this.end()}}[A](N){return L(N,this.type==="Directory",this.portable)}[P](N){return f(N,this.prefix)}[b](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new i({path:this[P](this.path),linkpath:this.type==="Link"?this[P](this.linkpath):this.linkpath,mode:this[A](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new n({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[P](this.path),linkpath:this.type==="Link"?this[P](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[b](),this.end()}[p](){l.readlink(this.absolute,(N,F)=>{if(N)return this.emit("error",N);this[v](F)})}[v](N){this.linkpath=o(N),this[b](),this.end()}[y](N){this.type="Link",this.linkpath=o(a.relative(this.cwd,N)),this.stat.size=0,this[b](),this.end()}[u](){if(this.stat.nlink>1){let N=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(N)){let F=this.linkCache.get(N);if(F.indexOf(this.cwd)===0)return this[y](F)}this.linkCache.set(N,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){l.open(this.absolute,"r",(N,F)=>{if(N)return this.emit("error",N);this[w](F)})}[w](N){if(this.fd=N,this[O])return this[x]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let F=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(F),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[_]()}[_](){let{fd:N,buf:F,offset:V,length:G,pos:J}=this;l.read(N,F,V,G,J,(j,z)=>{if(j)return this[x](()=>this.emit("error",j));this[E](z)})}[x](N){l.close(this.fd,N)}[E](N){if(N<=0&&this.remain>0){let V=new Error("encountered unexpected EOF");return V.path=this.absolute,V.syscall="read",V.code="EOF",this[x](()=>this.emit("error",V))}if(N>this.remain){let V=new Error("did not encounter expected EOF");return V.path=this.absolute,V.syscall="read",V.code="EOF",this[x](()=>this.emit("error",V))}if(N===this.remain)for(let V=N;V<this.length&&N<this.blockRemain;V++)this.buf[V+this.offset]=0,N++,this.remain++;let F=this.offset===0&&N===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+N);this.write(F)?this[B]():this[R](()=>this[B]())}[R](N){this.once("drain",N)}write(N){if(this.blockRemain<N.length){let F=new Error("writing more data than expected");return F.path=this.absolute,this.emit("error",F)}return this.remain-=N.length,this.blockRemain-=N.length,this.pos+=N.length,this.offset+=N.length,super.write(N)}[B](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[x](N=>N?this.emit("error",N):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[_]()}}),W=class extends U{[g](){this[S](l.lstatSync(this.absolute))}[p](){this[v](l.readlinkSync(this.absolute))}[m](){this[w](l.openSync(this.absolute,"r"))}[_](){let N=!0;try{let{fd:F,buf:V,offset:G,length:J,pos:j}=this,z=l.readSync(F,V,G,J,j);this[E](z),N=!1}finally{if(N)try{this[x](()=>{})}catch{}}}[R](N){N()}[x](N){l.closeSync(this.fd),N()}},se=D(class extends t{constructor(N,F){F=F||{},super(F),this.preservePaths=!!F.preservePaths,this.portable=!!F.portable,this.strict=!!F.strict,this.noPax=!!F.noPax,this.noMtime=!!F.noMtime,this.readEntry=N,this.type=N.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=F.prefix||null,this.path=o(N.path),this.mode=this[A](N.mode),this.uid=this.portable?null:N.uid,this.gid=this.portable?null:N.gid,this.uname=this.portable?null:N.uname,this.gname=this.portable?null:N.gname,this.size=N.size,this.mtime=this.noMtime?null:F.mtime||N.mtime,this.atime=this.portable?null:N.atime,this.ctime=this.portable?null:N.ctime,this.linkpath=o(N.linkpath),typeof F.onwarn=="function"&&this.on("warn",F.onwarn);let V=!1;if(!this.preservePaths){let[G,J]=M(this.path);G&&(this.path=J,V=G)}this.remain=N.size,this.blockRemain=N.startBlockSize,this.header=new i({path:this[P](this.path),linkpath:this.type==="Link"?this[P](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),V&&this.warn("TAR_ENTRY_INFO",`stripping ${V} from absolute path`,{entry:this,path:V+this.path}),this.header.encode()&&!this.noPax&&super.write(new n({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[P](this.path),linkpath:this.type==="Link"?this[P](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),N.pipe(this)}[P](N){return f(N,this.prefix)}[A](N){return L(N,this.type==="Directory",this.portable)}write(N){let F=N.length;if(F>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=F,super.write(N)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});U.Sync=W,U.Tar=se;var I=N=>N.isFile()?"File":N.isDirectory()?"Directory":N.isSymbolicLink()?"SymbolicLink":"Unsupported";r.exports=U}),k6=re((e,r)=>{"use strict";ee(),r.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}}),v8=re((e,r)=>{"use strict";ee(),r.exports=t,t.Node=a,t.create=t;function t(o){var s=this;if(s instanceof t||(s=new t),s.tail=null,s.head=null,s.length=0,o&&typeof o.forEach=="function")o.forEach(function(h){s.push(h)});else if(arguments.length>0)for(var f=0,c=arguments.length;f<c;f++)s.push(arguments[f]);return s}t.prototype.removeNode=function(o){if(o.list!==this)throw new Error("removing node which does not belong to this list");var s=o.next,f=o.prev;return s&&(s.prev=f),f&&(f.next=s),o===this.head&&(this.head=s),o===this.tail&&(this.tail=f),o.list.length--,o.next=null,o.prev=null,o.list=null,s},t.prototype.unshiftNode=function(o){if(o!==this.head){o.list&&o.list.removeNode(o);var s=this.head;o.list=this,o.next=s,s&&(s.prev=o),this.head=o,this.tail||(this.tail=o),this.length++}},t.prototype.pushNode=function(o){if(o!==this.tail){o.list&&o.list.removeNode(o);var s=this.tail;o.list=this,o.prev=s,s&&(s.next=o),this.tail=o,this.head||(this.head=o),this.length++}},t.prototype.push=function(){for(var o=0,s=arguments.length;o<s;o++)i(this,arguments[o]);return this.length},t.prototype.unshift=function(){for(var o=0,s=arguments.length;o<s;o++)l(this,arguments[o]);return this.length},t.prototype.pop=function(){if(this.tail){var o=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,o}},t.prototype.shift=function(){if(this.head){var o=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,o}},t.prototype.forEach=function(o,s){s=s||this;for(var f=this.head,c=0;f!==null;c++)o.call(s,f.value,c,this),f=f.next},t.prototype.forEachReverse=function(o,s){s=s||this;for(var f=this.tail,c=this.length-1;f!==null;c--)o.call(s,f.value,c,this),f=f.prev},t.prototype.get=function(o){for(var s=0,f=this.head;f!==null&&s<o;s++)f=f.next;if(s===o&&f!==null)return f.value},t.prototype.getReverse=function(o){for(var s=0,f=this.tail;f!==null&&s<o;s++)f=f.prev;if(s===o&&f!==null)return f.value},t.prototype.map=function(o,s){s=s||this;for(var f=new t,c=this.head;c!==null;)f.push(o.call(s,c.value,this)),c=c.next;return f},t.prototype.mapReverse=function(o,s){s=s||this;for(var f=new t,c=this.tail;c!==null;)f.push(o.call(s,c.value,this)),c=c.prev;return f},t.prototype.reduce=function(o,s){var f,c=this.head;if(arguments.length>1)f=s;else if(this.head)c=this.head.next,f=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;c!==null;h++)f=o(f,c.value,h),c=c.next;return f},t.prototype.reduceReverse=function(o,s){var f,c=this.tail;if(arguments.length>1)f=s;else if(this.tail)c=this.tail.prev,f=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;c!==null;h--)f=o(f,c.value,h),c=c.prev;return f},t.prototype.toArray=function(){for(var o=new Array(this.length),s=0,f=this.head;f!==null;s++)o[s]=f.value,f=f.next;return o},t.prototype.toArrayReverse=function(){for(var o=new Array(this.length),s=0,f=this.tail;f!==null;s++)o[s]=f.value,f=f.prev;return o},t.prototype.slice=function(o,s){s=s||this.length,s<0&&(s+=this.length),o=o||0,o<0&&(o+=this.length);var f=new t;if(s<o||s<0)return f;o<0&&(o=0),s>this.length&&(s=this.length);for(var c=0,h=this.head;h!==null&&c<o;c++)h=h.next;for(;h!==null&&c<s;c++,h=h.next)f.push(h.value);return f},t.prototype.sliceReverse=function(o,s){s=s||this.length,s<0&&(s+=this.length),o=o||0,o<0&&(o+=this.length);var f=new t;if(s<o||s<0)return f;o<0&&(o=0),s>this.length&&(s=this.length);for(var c=this.length,h=this.tail;h!==null&&c>s;c--)h=h.prev;for(;h!==null&&c>o;c--,h=h.prev)f.push(h.value);return f},t.prototype.splice=function(o,s,...f){o>this.length&&(o=this.length-1),o<0&&(o=this.length+o);for(var c=0,h=this.head;h!==null&&c<o;c++)h=h.next;for(var u=[],c=0;h&&c<s;c++)u.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var c=0;c<f.length;c++)h=n(this,h,f[c]);return u},t.prototype.reverse=function(){for(var o=this.head,s=this.tail,f=o;f!==null;f=f.prev){var c=f.prev;f.prev=f.next,f.next=c}return this.head=s,this.tail=o,this};function n(o,s,f){var c=s===o.head?new a(f,null,s,o):new a(f,s,s.next,o);return c.next===null&&(o.tail=c),c.prev===null&&(o.head=c),o.length++,c}function i(o,s){o.tail=new a(s,o.tail,null,o),o.head||(o.head=o.tail),o.length++}function l(o,s){o.head=new a(s,null,o.head,o),o.tail||(o.tail=o.head),o.length++}function a(o,s,f,c){if(!(this instanceof a))return new a(o,s,f,c);this.list=c,this.value=o,s?(s.next=this,this.prev=s):this.prev=null,f?(f.prev=this,this.next=f):this.next=null}try{k6()(t)}catch{}}),bh=re((e,r)=>{"use strict";ee();var t=class{constructor(I,N){this.path=I||"./",this.absolute=N,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},n=dh(),i=d8(),l=mh(),a=b8(),o=a.Sync,s=a.Tar,f=v8(),c=Buffer.alloc(1024),h=Symbol("onStat"),u=Symbol("ended"),d=Symbol("queue"),p=Symbol("current"),y=Symbol("process"),b=Symbol("processing"),_=Symbol("processJob"),g=Symbol("jobs"),S=Symbol("jobDone"),E=Symbol("addFSEntry"),v=Symbol("addTarEntry"),m=Symbol("stat"),w=Symbol("readdir"),x=Symbol("onreaddir"),A=Symbol("pipe"),R=Symbol("entry"),B=Symbol("entryOpt"),P=Symbol("writeEntryClass"),O=Symbol("write"),D=Symbol("ondrain"),k=fe("fs"),M=fe("path"),L=gh(),U=Gi(),W=L(class extends n{constructor(I){super(I),I=I||Object.create(null),this.opt=I,this.file=I.file||"",this.cwd=I.cwd||process.cwd(),this.maxReadSize=I.maxReadSize,this.preservePaths=!!I.preservePaths,this.strict=!!I.strict,this.noPax=!!I.noPax,this.prefix=U(I.prefix||""),this.linkCache=I.linkCache||new Map,this.statCache=I.statCache||new Map,this.readdirCache=I.readdirCache||new Map,this[P]=a,typeof I.onwarn=="function"&&this.on("warn",I.onwarn),this.portable=!!I.portable,this.zip=null,I.gzip?(typeof I.gzip!="object"&&(I.gzip={}),this.portable&&(I.gzip.portable=!0),this.zip=new i.Gzip(I.gzip),this.zip.on("data",N=>super.write(N)),this.zip.on("end",N=>super.end()),this.zip.on("drain",N=>this[D]()),this.on("resume",N=>this.zip.resume())):this.on("drain",this[D]),this.noDirRecurse=!!I.noDirRecurse,this.follow=!!I.follow,this.noMtime=!!I.noMtime,this.mtime=I.mtime||null,this.filter=typeof I.filter=="function"?I.filter:N=>!0,this[d]=new f,this[g]=0,this.jobs=+I.jobs||4,this[b]=!1,this[u]=!1}[O](I){return super.write(I)}add(I){return this.write(I),this}end(I){return I&&this.write(I),this[u]=!0,this[y](),this}write(I){if(this[u])throw new Error("write after end");return I instanceof l?this[v](I):this[E](I),this.flowing}[v](I){let N=U(M.resolve(this.cwd,I.path));if(!this.filter(I.path,I))I.resume();else{let F=new t(I.path,N,!1);F.entry=new s(I,this[B](F)),F.entry.on("end",V=>this[S](F)),this[g]+=1,this[d].push(F)}this[y]()}[E](I){let N=U(M.resolve(this.cwd,I));this[d].push(new t(I,N)),this[y]()}[m](I){I.pending=!0,this[g]+=1;let N=this.follow?"stat":"lstat";k[N](I.absolute,(F,V)=>{I.pending=!1,this[g]-=1,F?this.emit("error",F):this[h](I,V)})}[h](I,N){this.statCache.set(I.absolute,N),I.stat=N,this.filter(I.path,N)||(I.ignore=!0),this[y]()}[w](I){I.pending=!0,this[g]+=1,k.readdir(I.absolute,(N,F)=>{if(I.pending=!1,this[g]-=1,N)return this.emit("error",N);this[x](I,F)})}[x](I,N){this.readdirCache.set(I.absolute,N),I.readdir=N,this[y]()}[y](){if(!this[b]){this[b]=!0;for(let I=this[d].head;I!==null&&this[g]<this.jobs;I=I.next)if(this[_](I.value),I.value.ignore){let N=I.next;this[d].removeNode(I),I.next=N}this[b]=!1,this[u]&&!this[d].length&&this[g]===0&&(this.zip?this.zip.end(c):(super.write(c),super.end()))}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[S](I){this[d].shift(),this[g]-=1,this[y]()}[_](I){if(!I.pending){if(I.entry){I===this[p]&&!I.piped&&this[A](I);return}if(I.stat||(this.statCache.has(I.absolute)?this[h](I,this.statCache.get(I.absolute)):this[m](I)),!!I.stat&&!I.ignore&&!(!this.noDirRecurse&&I.stat.isDirectory()&&!I.readdir&&(this.readdirCache.has(I.absolute)?this[x](I,this.readdirCache.get(I.absolute)):this[w](I),!I.readdir))){if(I.entry=this[R](I),!I.entry){I.ignore=!0;return}I===this[p]&&!I.piped&&this[A](I)}}}[B](I){return{onwarn:(N,F,V)=>this.warn(N,F,V),noPax:this.noPax,cwd:this.cwd,absolute:I.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[R](I){this[g]+=1;try{return new this[P](I.path,this[B](I)).on("end",()=>this[S](I)).on("error",N=>this.emit("error",N))}catch(N){this.emit("error",N)}}[D](){this[p]&&this[p].entry&&this[p].entry.resume()}[A](I){I.piped=!0,I.readdir&&I.readdir.forEach(V=>{let G=I.path,J=G==="./"?"":G.replace(/\/*$/,"/");this[E](J+V)});let N=I.entry,F=this.zip;F?N.on("data",V=>{F.write(V)||N.pause()}):N.on("data",V=>{super.write(V)||N.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),se=class extends W{constructor(I){super(I),this[P]=o}pause(){}resume(){}[m](I){let N=this.follow?"statSync":"lstatSync";this[h](I,k[N](I.absolute))}[w](I,N){this[x](I,k.readdirSync(I.absolute))}[A](I){let N=I.entry,F=this.zip;I.readdir&&I.readdir.forEach(V=>{let G=I.path,J=G==="./"?"":G.replace(/\/*$/,"/");this[E](J+V)}),F?N.on("data",V=>{F.write(V)}):N.on("data",V=>{super[O](V)})}};W.Sync=se,r.exports=W}),Vi=re(e=>{"use strict";ee();var r=f8(),t=fe("events").EventEmitter,n=fe("fs"),i=n.writev;if(!i){let I=process.binding("fs"),N=I.FSReqWrap||I.FSReqCallback;i=(F,V,G,J)=>{let j=(Q,le)=>J(Q,le,V),z=new N;z.oncomplete=j,I.writeBuffers(F,V,G,z)}}var l=Symbol("_autoClose"),a=Symbol("_close"),o=Symbol("_ended"),s=Symbol("_fd"),f=Symbol("_finished"),c=Symbol("_flags"),h=Symbol("_flush"),u=Symbol("_handleChunk"),d=Symbol("_makeBuf"),p=Symbol("_mode"),y=Symbol("_needDrain"),b=Symbol("_onerror"),_=Symbol("_onopen"),g=Symbol("_onread"),S=Symbol("_onwrite"),E=Symbol("_open"),v=Symbol("_path"),m=Symbol("_pos"),w=Symbol("_queue"),x=Symbol("_read"),A=Symbol("_readSize"),R=Symbol("_reading"),B=Symbol("_remain"),P=Symbol("_size"),O=Symbol("_write"),D=Symbol("_writing"),k=Symbol("_defaultFlag"),M=Symbol("_errored"),L=class extends r{constructor(I,N){if(N=N||{},super(N),this.readable=!0,this.writable=!1,typeof I!="string")throw new TypeError("path must be a string");this[M]=!1,this[s]=typeof N.fd=="number"?N.fd:null,this[v]=I,this[A]=N.readSize||16*1024*1024,this[R]=!1,this[P]=typeof N.size=="number"?N.size:1/0,this[B]=this[P],this[l]=typeof N.autoClose=="boolean"?N.autoClose:!0,typeof this[s]=="number"?this[x]():this[E]()}get fd(){return this[s]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[E](){n.open(this[v],"r",(I,N)=>this[_](I,N))}[_](I,N){I?this[b](I):(this[s]=N,this.emit("open",N),this[x]())}[d](){return Buffer.allocUnsafe(Math.min(this[A],this[B]))}[x](){if(!this[R]){this[R]=!0;let I=this[d]();if(I.length===0)return process.nextTick(()=>this[g](null,0,I));n.read(this[s],I,0,I.length,null,(N,F,V)=>this[g](N,F,V))}}[g](I,N,F){this[R]=!1,I?this[b](I):this[u](N,F)&&this[x]()}[a](){if(this[l]&&typeof this[s]=="number"){let I=this[s];this[s]=null,n.close(I,N=>N?this.emit("error",N):this.emit("close"))}}[b](I){this[R]=!0,this[a](),this.emit("error",I)}[u](I,N){let F=!1;return this[B]-=I,I>0&&(F=super.write(I<N.length?N.slice(0,I):N)),(I===0||this[B]<=0)&&(F=!1,this[a](),super.end()),F}emit(I,N){switch(I){case"prefinish":case"finish":break;case"drain":typeof this[s]=="number"&&this[x]();break;case"error":return this[M]?void 0:(this[M]=!0,super.emit(I,N));default:return super.emit(I,N)}}},U=class extends L{[E](){let I=!0;try{this[_](null,n.openSync(this[v],"r")),I=!1}finally{I&&this[a]()}}[x](){let I=!0;try{if(!this[R]){this[R]=!0;do{let N=this[d](),F=N.length===0?0:n.readSync(this[s],N,0,N.length,null);if(!this[u](F,N))break}while(!0);this[R]=!1}I=!1}finally{I&&this[a]()}}[a](){if(this[l]&&typeof this[s]=="number"){let I=this[s];this[s]=null,n.closeSync(I),this.emit("close")}}},W=class extends t{constructor(I,N){N=N||{},super(N),this.readable=!1,this.writable=!0,this[M]=!1,this[D]=!1,this[o]=!1,this[y]=!1,this[w]=[],this[v]=I,this[s]=typeof N.fd=="number"?N.fd:null,this[p]=N.mode===void 0?438:N.mode,this[m]=typeof N.start=="number"?N.start:null,this[l]=typeof N.autoClose=="boolean"?N.autoClose:!0;let F=this[m]!==null?"r+":"w";this[k]=N.flags===void 0,this[c]=this[k]?F:N.flags,this[s]===null&&this[E]()}emit(I,N){if(I==="error"){if(this[M])return;this[M]=!0}return super.emit(I,N)}get fd(){return this[s]}get path(){return this[v]}[b](I){this[a](),this[D]=!0,this.emit("error",I)}[E](){n.open(this[v],this[c],this[p],(I,N)=>this[_](I,N))}[_](I,N){this[k]&&this[c]==="r+"&&I&&I.code==="ENOENT"?(this[c]="w",this[E]()):I?this[b](I):(this[s]=N,this.emit("open",N),this[h]())}end(I,N){return I&&this.write(I,N),this[o]=!0,!this[D]&&!this[w].length&&typeof this[s]=="number"&&this[S](null,0),this}write(I,N){return typeof I=="string"&&(I=Buffer.from(I,N)),this[o]?(this.emit("error",new Error("write() after end()")),!1):this[s]===null||this[D]||this[w].length?(this[w].push(I),this[y]=!0,!1):(this[D]=!0,this[O](I),!0)}[O](I){n.write(this[s],I,0,I.length,this[m],(N,F)=>this[S](N,F))}[S](I,N){I?this[b](I):(this[m]!==null&&(this[m]+=N),this[w].length?this[h]():(this[D]=!1,this[o]&&!this[f]?(this[f]=!0,this[a](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[w].length===0)this[o]&&this[S](null,0);else if(this[w].length===1)this[O](this[w].pop());else{let I=this[w];this[w]=[],i(this[s],I,this[m],(N,F)=>this[S](N,F))}}[a](){if(this[l]&&typeof this[s]=="number"){let I=this[s];this[s]=null,n.close(I,N=>N?this.emit("error",N):this.emit("close"))}}},se=class extends W{[E](){let I;if(this[k]&&this[c]==="r+")try{I=n.openSync(this[v],this[c],this[p])}catch(N){if(N.code==="ENOENT")return this[c]="w",this[E]();throw N}else I=n.openSync(this[v],this[c],this[p]);this[_](null,I)}[a](){if(this[l]&&typeof this[s]=="number"){let I=this[s];this[s]=null,n.closeSync(I),this.emit("close")}}[O](I){let N=!0;try{this[S](null,n.writeSync(this[s],I,0,I.length,this[m])),N=!1}finally{if(N)try{this[a]()}catch{}}}};e.ReadStream=L,e.ReadStreamSync=U,e.WriteStream=W,e.WriteStreamSync=se}),vh=re((e,r)=>{"use strict";ee();var t=gh(),n=Wi(),i=fe("events"),l=v8(),a=1024*1024,o=mh(),s=yh(),f=d8(),{nextTick:c}=fe("process"),h=Buffer.from([31,139]),u=Symbol("state"),d=Symbol("writeEntry"),p=Symbol("readEntry"),y=Symbol("nextEntry"),b=Symbol("processEntry"),_=Symbol("extendedHeader"),g=Symbol("globalExtendedHeader"),S=Symbol("meta"),E=Symbol("emitMeta"),v=Symbol("buffer"),m=Symbol("queue"),w=Symbol("ended"),x=Symbol("emittedEnd"),A=Symbol("emit"),R=Symbol("unzip"),B=Symbol("consumeChunk"),P=Symbol("consumeChunkSub"),O=Symbol("consumeBody"),D=Symbol("consumeMeta"),k=Symbol("consumeHeader"),M=Symbol("consuming"),L=Symbol("bufferConcat"),U=Symbol("maybeEnd"),W=Symbol("writing"),se=Symbol("aborted"),I=Symbol("onDone"),N=Symbol("sawValidEntry"),F=Symbol("sawNullBlock"),V=Symbol("sawEOF"),G=Symbol("closeStream"),J=j=>!0;r.exports=t(class extends i{constructor(j){j=j||{},super(j),this.file=j.file||"",this[N]=null,this.on(I,z=>{(this[u]==="begin"||this[N]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),j.ondone?this.on(I,j.ondone):this.on(I,z=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!j.strict,this.maxMetaEntrySize=j.maxMetaEntrySize||a,this.filter=typeof j.filter=="function"?j.filter:J,this.writable=!0,this.readable=!1,this[m]=new l,this[v]=null,this[p]=null,this[d]=null,this[u]="begin",this[S]="",this[_]=null,this[g]=null,this[w]=!1,this[R]=null,this[se]=!1,this[F]=!1,this[V]=!1,this.on("end",()=>this[G]()),typeof j.onwarn=="function"&&this.on("warn",j.onwarn),typeof j.onentry=="function"&&this.on("entry",j.onentry)}[k](j,z){this[N]===null&&(this[N]=!1);let Q;try{Q=new n(j,z,this[_],this[g])}catch(le){return this.warn("TAR_ENTRY_INVALID",le)}if(Q.nullBlock)this[F]?(this[V]=!0,this[u]==="begin"&&(this[u]="header"),this[A]("eof")):(this[F]=!0,this[A]("nullBlock"));else if(this[F]=!1,!Q.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:Q});else if(!Q.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:Q});else{let le=Q.type;if(/^(Symbolic)?Link$/.test(le)&&!Q.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:Q});else if(!/^(Symbolic)?Link$/.test(le)&&Q.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:Q});else{let ue=this[d]=new o(Q,this[_],this[g]);if(!this[N])if(ue.remain){let Y=()=>{ue.invalid||(this[N]=!0)};ue.on("end",Y)}else this[N]=!0;ue.meta?ue.size>this.maxMetaEntrySize?(ue.ignore=!0,this[A]("ignoredEntry",ue),this[u]="ignore",ue.resume()):ue.size>0&&(this[S]="",ue.on("data",Y=>this[S]+=Y),this[u]="meta"):(this[_]=null,ue.ignore=ue.ignore||!this.filter(ue.path,ue),ue.ignore?(this[A]("ignoredEntry",ue),this[u]=ue.remain?"ignore":"header",ue.resume()):(ue.remain?this[u]="body":(this[u]="header",ue.end()),this[p]?this[m].push(ue):(this[m].push(ue),this[y]())))}}}[G](){c(()=>this.emit("close"))}[b](j){let z=!0;return j?Array.isArray(j)?this.emit.apply(this,j):(this[p]=j,this.emit("entry",j),j.emittedEnd||(j.on("end",Q=>this[y]()),z=!1)):(this[p]=null,z=!1),z}[y](){do;while(this[b](this[m].shift()));if(!this[m].length){let j=this[p];!j||j.flowing||j.size===j.remain?this[W]||this.emit("drain"):j.once("drain",z=>this.emit("drain"))}}[O](j,z){let Q=this[d],le=Q.blockRemain,ue=le>=j.length&&z===0?j:j.slice(z,z+le);return Q.write(ue),Q.blockRemain||(this[u]="header",this[d]=null,Q.end()),ue.length}[D](j,z){let Q=this[d],le=this[O](j,z);return this[d]||this[E](Q),le}[A](j,z,Q){!this[m].length&&!this[p]?this.emit(j,z,Q):this[m].push([j,z,Q])}[E](j){switch(this[A]("meta",this[S]),j.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=s.parse(this[S],this[_],!1);break;case"GlobalExtendedHeader":this[g]=s.parse(this[S],this[g],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null),this[_].path=this[S].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null),this[_].linkpath=this[S].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+j.type)}}abort(j){this[se]=!0,this.emit("abort",j),this.warn("TAR_ABORT",j,{recoverable:!1})}write(j){if(this[se])return;if(this[R]===null&&j){if(this[v]&&(j=Buffer.concat([this[v],j]),this[v]=null),j.length<h.length)return this[v]=j,!0;for(let Q=0;this[R]===null&&Q<h.length;Q++)j[Q]!==h[Q]&&(this[R]=!1);if(this[R]===null){let Q=this[w];this[w]=!1,this[R]=new f.Unzip,this[R].on("data",ue=>this[B](ue)),this[R].on("error",ue=>this.abort(ue)),this[R].on("end",ue=>{this[w]=!0,this[B]()}),this[W]=!0;let le=this[R][Q?"end":"write"](j);return this[W]=!1,le}}this[W]=!0,this[R]?this[R].write(j):this[B](j),this[W]=!1;let z=this[m].length?!1:this[p]?this[p].flowing:!0;return!z&&!this[m].length&&this[p].once("drain",Q=>this.emit("drain")),z}[L](j){j&&!this[se]&&(this[v]=this[v]?Buffer.concat([this[v],j]):j)}[U](){if(this[w]&&!this[x]&&!this[se]&&!this[M]){this[x]=!0;let j=this[d];if(j&&j.blockRemain){let z=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${j.blockRemain} more bytes, only ${z} available)`,{entry:j}),this[v]&&j.write(this[v]),j.end()}this[A](I)}}[B](j){if(this[M])this[L](j);else if(!j&&!this[v])this[U]();else{if(this[M]=!0,this[v]){this[L](j);let z=this[v];this[v]=null,this[P](z)}else this[P](j);for(;this[v]&&this[v].length>=512&&!this[se]&&!this[V];){let z=this[v];this[v]=null,this[P](z)}this[M]=!1}(!this[v]||this[w])&&this[U]()}[P](j){let z=0,Q=j.length;for(;z+512<=Q&&!this[se]&&!this[V];)switch(this[u]){case"begin":case"header":this[k](j,z),z+=512;break;case"ignore":case"body":z+=this[O](j,z);break;case"meta":z+=this[D](j,z);break;default:throw new Error("invalid state: "+this[u])}z<Q&&(this[v]?this[v]=Buffer.concat([j.slice(z),this[v]]):this[v]=j.slice(z))}end(j){this[se]||(this[R]?this[R].end(j):(this[w]=!0,this.write(j)))}})}),_h=re((e,r)=>{"use strict";ee();var t=Ui(),n=vh(),i=fe("fs"),l=Vi(),a=fe("path"),o=zi();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&f(b,p),b.noResume||s(b),b.file&&b.sync?c(b):b.file?h(b,y):u(b)};var s=d=>{let p=d.onentry;d.onentry=p?y=>{p(y),y.resume()}:y=>y.resume()},f=(d,p)=>{let y=new Map(p.map(g=>[o(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(o(g)):g=>_(o(g))},c=d=>{let p=u(d),y=d.file,b=!0,_;try{let g=i.statSync(y),S=d.maxReadSize||16*1024*1024;if(g.size<S)p.end(i.readFileSync(y));else{let E=0,v=Buffer.allocUnsafe(S);for(_=i.openSync(y,"r");E<g.size;){let m=i.readSync(_,v,0,S,E);E+=m,p.write(v.slice(0,m))}p.end()}b=!1}finally{if(b&&_)try{i.closeSync(_)}catch{}}},h=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("end",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new l.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},u=d=>new n(d)}),D6=re((e,r)=>{"use strict";ee();var t=Ui(),n=bh(),i=Vi(),l=_h(),a=fe("path");r.exports=(d,p,y)=>{if(typeof p=="function"&&(y=p),Array.isArray(d)&&(p=d,d={}),!p||!Array.isArray(p)||!p.length)throw new TypeError("no files or directories specified");p=Array.from(p);let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return b.file&&b.sync?o(b,p):b.file?s(b,p,y):b.sync?h(b,p):u(b,p)};var o=(d,p)=>{let y=new n.Sync(d),b=new i.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(b),f(y,p)},s=(d,p,y)=>{let b=new n(d),_=new i.WriteStream(d.file,{mode:d.mode||438});b.pipe(_);let g=new Promise((S,E)=>{_.on("error",E),_.on("close",S),b.on("error",E)});return c(b,p),y?g.then(y,y):g},f=(d,p)=>{p.forEach(y=>{y.charAt(0)==="@"?l({file:a.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(y)}),d.end()},c=(d,p)=>{for(;p.length;){let y=p.shift();if(y.charAt(0)==="@")return l({file:a.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>c(d,p));d.add(y)}d.end()},h=(d,p)=>{let y=new n.Sync(d);return f(y,p),y},u=(d,p)=>{let y=new n(d);return c(y,p),y}}),_8=re((e,r)=>{"use strict";ee();var t=Ui(),n=bh(),i=fe("fs"),l=Vi(),a=_h(),o=fe("path"),s=Wi();r.exports=(p,y,b)=>{let _=t(p);if(!_.file)throw new TypeError("file is required");if(_.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),_.sync?f(_,y):h(_,y,b)};var f=(p,y)=>{let b=new n.Sync(p),_=!0,g,S;try{try{g=i.openSync(p.file,"r+")}catch(m){if(m.code==="ENOENT")g=i.openSync(p.file,"w+");else throw m}let E=i.fstatSync(g),v=Buffer.alloc(512);e:for(S=0;S<E.size;S+=512){for(let x=0,A=0;x<512;x+=A){if(A=i.readSync(g,v,x,v.length-x,S+x),S===0&&v[0]===31&&v[1]===139)throw new Error("cannot append to compressed archives");if(!A)break e}let m=new s(v);if(!m.cksumValid)break;let w=512*Math.ceil(m.size/512);if(S+w+512>E.size)break;S+=w,p.mtimeCache&&p.mtimeCache.set(m.path,m.mtime)}_=!1,c(p,b,S,g,y)}finally{if(_)try{i.closeSync(g)}catch{}}},c=(p,y,b,_,g)=>{let S=new l.WriteStreamSync(p.file,{fd:_,start:b});y.pipe(S),u(y,g)},h=(p,y,b)=>{y=Array.from(y);let _=new n(p),g=(E,v,m)=>{let w=(P,O)=>{P?i.close(E,D=>m(P)):m(null,O)},x=0;if(v===0)return w(null,0);let A=0,R=Buffer.alloc(512),B=(P,O)=>{if(P)return w(P);if(A+=O,A<512&&O)return i.read(E,R,A,R.length-A,x+A,B);if(x===0&&R[0]===31&&R[1]===139)return w(new Error("cannot append to compressed archives"));if(A<512)return w(null,x);let D=new s(R);if(!D.cksumValid)return w(null,x);let k=512*Math.ceil(D.size/512);if(x+k+512>v||(x+=k+512,x>=v))return w(null,x);p.mtimeCache&&p.mtimeCache.set(D.path,D.mtime),A=0,i.read(E,R,0,512,x,B)};i.read(E,R,0,512,x,B)},S=new Promise((E,v)=>{_.on("error",v);let m="r+",w=(x,A)=>{if(x&&x.code==="ENOENT"&&m==="r+")return m="w+",i.open(p.file,m,w);if(x)return v(x);i.fstat(A,(R,B)=>{if(R)return i.close(A,()=>v(R));g(A,B.size,(P,O)=>{if(P)return v(P);let D=new l.WriteStream(p.file,{fd:A,start:O});_.pipe(D),D.on("error",v),D.on("close",E),d(_,y)})})};i.open(p.file,m,w)});return b?S.then(b,b):S},u=(p,y)=>{y.forEach(b=>{b.charAt(0)==="@"?a({file:o.resolve(p.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:_=>p.add(_)}):p.add(b)}),p.end()},d=(p,y)=>{for(;y.length;){let b=y.shift();if(b.charAt(0)==="@")return a({file:o.resolve(p.cwd,b.slice(1)),noResume:!0,onentry:_=>p.add(_)}).then(_=>d(p,y));p.add(b)}p.end()}}),R6=re((e,r)=>{"use strict";ee();var t=Ui(),n=_8();r.exports=(l,a,o)=>{let s=t(l);if(!s.file)throw new TypeError("file is required");if(s.gzip)throw new TypeError("cannot append to compressed archives");if(!a||!Array.isArray(a)||!a.length)throw new TypeError("no files or directories specified");return a=Array.from(a),i(s),n(s,a,o)};var i=l=>{let a=l.filter;l.mtimeCache||(l.mtimeCache=new Map),l.filter=a?(o,s)=>a(o,s)&&!(l.mtimeCache.get(o)>s.mtime):(o,s)=>!(l.mtimeCache.get(o)>s.mtime)}}),O6=re((e,r)=>{ee();var{promisify:t}=fe("util"),n=fe("fs"),i=l=>{if(!l)l={mode:511,fs:n};else if(typeof l=="object")l={mode:511,fs:n,...l};else if(typeof l=="number")l={mode:l,fs:n};else if(typeof l=="string")l={mode:parseInt(l,8),fs:n};else throw new TypeError("invalid options argument");return l.mkdir=l.mkdir||l.fs.mkdir||n.mkdir,l.mkdirAsync=t(l.mkdir),l.stat=l.stat||l.fs.stat||n.stat,l.statAsync=t(l.stat),l.statSync=l.statSync||l.fs.statSync||n.statSync,l.mkdirSync=l.mkdirSync||l.fs.mkdirSync||n.mkdirSync,l};r.exports=i}),T6=re((e,r)=>{ee();var t=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n,parse:i}=fe("path"),l=a=>{if(/\0/.test(a))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:a,code:"ERR_INVALID_ARG_VALUE"});if(a=n(a),t==="win32"){let o=/[*|"<>?:]/,{root:s}=i(a);if(o.test(a.substr(s.length)))throw Object.assign(new Error("Illegal characters in path."),{path:a,code:"EINVAL"})}return a};r.exports=l}),F6=re((e,r)=>{ee();var{dirname:t}=fe("path"),n=(l,a,o=void 0)=>o===a?Promise.resolve():l.statAsync(a).then(s=>s.isDirectory()?o:void 0,s=>s.code==="ENOENT"?n(l,t(a),a):void 0),i=(l,a,o=void 0)=>{if(o!==a)try{return l.statSync(a).isDirectory()?o:void 0}catch(s){return s.code==="ENOENT"?i(l,t(a),a):void 0}};r.exports={findMade:n,findMadeSync:i}}),w8=re((e,r)=>{ee();var{dirname:t}=fe("path"),n=(l,a,o)=>{a.recursive=!1;let s=t(l);return s===l?a.mkdirAsync(l,a).catch(f=>{if(f.code!=="EISDIR")throw f}):a.mkdirAsync(l,a).then(()=>o||l,f=>{if(f.code==="ENOENT")return n(s,a).then(c=>n(l,a,c));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;return a.statAsync(l).then(c=>{if(c.isDirectory())return o;throw f},()=>{throw f})})},i=(l,a,o)=>{let s=t(l);if(a.recursive=!1,s===l)try{return a.mkdirSync(l,a)}catch(f){if(f.code!=="EISDIR")throw f;return}try{return a.mkdirSync(l,a),o||l}catch(f){if(f.code==="ENOENT")return i(l,a,i(s,a,o));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;try{if(!a.statSync(l).isDirectory())throw f}catch{throw f}}};r.exports={mkdirpManual:n,mkdirpManualSync:i}}),P6=re((e,r)=>{ee();var{dirname:t}=fe("path"),{findMade:n,findMadeSync:i}=F6(),{mkdirpManual:l,mkdirpManualSync:a}=w8(),o=(f,c)=>(c.recursive=!0,t(f)===f?c.mkdirAsync(f,c):n(c,f).then(h=>c.mkdirAsync(f,c).then(()=>h).catch(u=>{if(u.code==="ENOENT")return l(f,c);throw u}))),s=(f,c)=>{if(c.recursive=!0,t(f)===f)return c.mkdirSync(f,c);let h=i(c,f);try{return c.mkdirSync(f,c),h}catch(u){if(u.code==="ENOENT")return a(f,c);throw u}};r.exports={mkdirpNative:o,mkdirpNativeSync:s}}),B6=re((e,r)=>{ee();var t=fe("fs"),n=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=n.replace(/^v/,"").split("."),l=+i[0]>10||+i[0]==10&&+i[1]>=12,a=l?s=>s.mkdir===t.mkdir:()=>!1,o=l?s=>s.mkdirSync===t.mkdirSync:()=>!1;r.exports={useNative:a,useNativeSync:o}}),I6=re((e,r)=>{ee();var t=O6(),n=T6(),{mkdirpNative:i,mkdirpNativeSync:l}=P6(),{mkdirpManual:a,mkdirpManualSync:o}=w8(),{useNative:s,useNativeSync:f}=B6(),c=(u,d)=>(u=n(u),d=t(d),s(d)?i(u,d):a(u,d)),h=(u,d)=>(u=n(u),d=t(d),f(d)?l(u,d):o(u,d));c.sync=h,c.native=(u,d)=>i(n(u),t(d)),c.manual=(u,d)=>a(n(u),t(d)),c.nativeSync=(u,d)=>l(n(u),t(d)),c.manualSync=(u,d)=>o(n(u),t(d)),r.exports=c}),L6=re((e,r)=>{"use strict";ee();var t=fe("fs"),n=fe("path"),i=t.lchown?"lchown":"chown",l=t.lchownSync?"lchownSync":"chownSync",a=t.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),o=(S,E,v)=>{try{return t[l](S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},s=(S,E,v)=>{try{return t.chownSync(S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},f=a?(S,E,v,m)=>w=>{!w||w.code!=="EISDIR"?m(w):t.chown(S,E,v,m)}:(S,E,v,m)=>m,c=a?(S,E,v)=>{try{return o(S,E,v)}catch(m){if(m.code!=="EISDIR")throw m;s(S,E,v)}}:(S,E,v)=>o(S,E,v),h=process.version,u=(S,E,v)=>t.readdir(S,E,v),d=(S,E)=>t.readdirSync(S,E);/^v4\./.test(h)&&(u=(S,E,v)=>t.readdir(S,v));var p=(S,E,v,m)=>{t[i](S,E,v,f(S,E,v,w=>{m(w&&w.code!=="ENOENT"?w:null)}))},y=(S,E,v,m,w)=>{if(typeof E=="string")return t.lstat(n.resolve(S,E),(x,A)=>{if(x)return w(x.code!=="ENOENT"?x:null);A.name=E,y(S,A,v,m,w)});if(E.isDirectory())b(n.resolve(S,E.name),v,m,x=>{if(x)return w(x);let A=n.resolve(S,E.name);p(A,v,m,w)});else{let x=n.resolve(S,E.name);p(x,v,m,w)}},b=(S,E,v,m)=>{u(S,{withFileTypes:!0},(w,x)=>{if(w){if(w.code==="ENOENT")return m();if(w.code!=="ENOTDIR"&&w.code!=="ENOTSUP")return m(w)}if(w||!x.length)return p(S,E,v,m);let A=x.length,R=null,B=P=>{if(!R){if(P)return m(R=P);if(--A===0)return p(S,E,v,m)}};x.forEach(P=>y(S,P,E,v,B))})},_=(S,E,v,m)=>{if(typeof E=="string")try{let w=t.lstatSync(n.resolve(S,E));w.name=E,E=w}catch(w){if(w.code==="ENOENT")return;throw w}E.isDirectory()&&g(n.resolve(S,E.name),v,m),c(n.resolve(S,E.name),v,m)},g=(S,E,v)=>{let m;try{m=d(S,{withFileTypes:!0})}catch(w){if(w.code==="ENOENT")return;if(w.code==="ENOTDIR"||w.code==="ENOTSUP")return c(S,E,v);throw w}return m&&m.length&&m.forEach(w=>_(S,w,E,v)),c(S,E,v)};r.exports=b,b.sync=g}),M6=re((e,r)=>{"use strict";ee();var t=I6(),n=fe("fs"),i=fe("path"),l=L6(),a=Gi(),o=class extends Error{constructor(y,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=y}get name(){return"SylinkError"}},s=class extends Error{constructor(y,b){super(b+": Cannot cd into '"+y+"'"),this.path=y,this.code=b}get name(){return"CwdError"}},f=(y,b)=>y.get(a(b)),c=(y,b,_)=>y.set(a(b),_),h=(y,b)=>{n.stat(y,(_,g)=>{(_||!g.isDirectory())&&(_=new s(y,_&&_.code||"ENOTDIR")),b(_)})};r.exports=(y,b,_)=>{y=a(y);let g=b.umask,S=b.mode|448,E=(S&g)!==0,v=b.uid,m=b.gid,w=typeof v=="number"&&typeof m=="number"&&(v!==b.processUid||m!==b.processGid),x=b.preserve,A=b.unlink,R=b.cache,B=a(b.cwd),P=(D,k)=>{D?_(D):(c(R,y,!0),k&&w?l(k,v,m,M=>P(M)):E?n.chmod(y,S,_):_())};if(R&&f(R,y)===!0)return P();if(y===B)return h(y,P);if(x)return t(y,{mode:S}).then(D=>P(null,D),P);let O=a(i.relative(B,y)).split("/");u(B,O,S,R,A,B,null,P)};var u=(y,b,_,g,S,E,v,m)=>{if(!b.length)return m(null,v);let w=b.shift(),x=a(i.resolve(y+"/"+w));if(f(g,x))return u(x,b,_,g,S,E,v,m);n.mkdir(x,_,d(x,b,_,g,S,E,v,m))},d=(y,b,_,g,S,E,v,m)=>w=>{w?n.lstat(y,(x,A)=>{if(x)x.path=x.path&&a(x.path),m(x);else if(A.isDirectory())u(y,b,_,g,S,E,v,m);else if(S)n.unlink(y,R=>{if(R)return m(R);n.mkdir(y,_,d(y,b,_,g,S,E,v,m))});else{if(A.isSymbolicLink())return m(new o(y,y+"/"+b.join("/")));m(w)}}):(v=v||y,u(y,b,_,g,S,E,v,m))},p=y=>{let b=!1,_="ENOTDIR";try{b=n.statSync(y).isDirectory()}catch(g){_=g.code}finally{if(!b)throw new s(y,_)}};r.exports.sync=(y,b)=>{y=a(y);let _=b.umask,g=b.mode|448,S=(g&_)!==0,E=b.uid,v=b.gid,m=typeof E=="number"&&typeof v=="number"&&(E!==b.processUid||v!==b.processGid),w=b.preserve,x=b.unlink,A=b.cache,R=a(b.cwd),B=D=>{c(A,y,!0),D&&m&&l.sync(D,E,v),S&&n.chmodSync(y,g)};if(A&&f(A,y)===!0)return B();if(y===R)return p(R),B();if(w)return B(t.sync(y,g));let P=a(i.relative(R,y)).split("/"),O=null;for(let D=P.shift(),k=R;D&&(k+="/"+D);D=P.shift())if(k=a(i.resolve(k)),!f(A,k))try{n.mkdirSync(k,g),O=O||k,c(A,k,!0)}catch{let M=n.lstatSync(k);if(M.isDirectory()){c(A,k,!0);continue}else if(x){n.unlinkSync(k),n.mkdirSync(k,g),O=O||k,c(A,k,!0);continue}else if(M.isSymbolicLink())return new o(k,k+"/"+P.join("/"))}return B(O)}}),E8=re((e,r)=>{ee();var t=Object.create(null),{hasOwnProperty:n}=Object.prototype;r.exports=i=>(n.call(t,i)||(t[i]=i.normalize("NFKD")),t[i])}),N6=re((e,r)=>{ee();var t=fe("assert"),n=E8(),i=zi(),{join:l}=fe("path"),a=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,o=a==="win32";r.exports=()=>{let s=new Map,f=new Map,c=b=>b.split("/").slice(0,-1).reduce((_,g)=>(_.length&&(g=l(_[_.length-1],g)),_.push(g||"/"),_),[]),h=new Set,u=b=>{let _=f.get(b);if(!_)throw new Error("function does not have any path reservations");return{paths:_.paths.map(g=>s.get(g)),dirs:[..._.dirs].map(g=>s.get(g))}},d=b=>{let{paths:_,dirs:g}=u(b);return _.every(S=>S[0]===b)&&g.every(S=>S[0]instanceof Set&&S[0].has(b))},p=b=>h.has(b)||!d(b)?!1:(h.add(b),b(()=>y(b)),!0),y=b=>{if(!h.has(b))return!1;let{paths:_,dirs:g}=f.get(b),S=new Set;return _.forEach(E=>{let v=s.get(E);t.equal(v[0],b),v.length===1?s.delete(E):(v.shift(),typeof v[0]=="function"?S.add(v[0]):v[0].forEach(m=>S.add(m)))}),g.forEach(E=>{let v=s.get(E);t(v[0]instanceof Set),v[0].size===1&&v.length===1?s.delete(E):v[0].size===1?(v.shift(),S.add(v[0])):v[0].delete(b)}),h.delete(b),S.forEach(E=>p(E)),!0};return{check:d,reserve:(b,_)=>{b=o?["win32 parallelization disabled"]:b.map(S=>n(i(l(S))).toLowerCase());let g=new Set(b.map(S=>c(S)).reduce((S,E)=>S.concat(E)));return f.set(_,{dirs:g,paths:b}),b.forEach(S=>{let E=s.get(S);E?E.push(_):s.set(S,[_])}),g.forEach(S=>{let E=s.get(S);E?E[E.length-1]instanceof Set?E[E.length-1].add(_):E.push(new Set([_])):s.set(S,[new Set([_])])}),p(_)}}}}),j6=re((e,r)=>{ee();var t=process.env.__FAKE_PLATFORM__||process.platform,n=t==="win32",i=global.__FAKE_TESTING_FS__||fe("fs"),{O_CREAT:l,O_TRUNC:a,O_WRONLY:o,UV_FS_O_FILEMAP:s=0}=i.constants,f=n&&!!s,c=512*1024,h=s|a|l|o;r.exports=f?u=>u<c?h:"w":()=>"w"}),S8=re((e,r)=>{"use strict";ee();var t=fe("assert"),n=vh(),i=fe("fs"),l=Vi(),a=fe("path"),o=M6(),s=y8(),f=N6(),c=g8(),h=Gi(),u=zi(),d=E8(),p=Symbol("onEntry"),y=Symbol("checkFs"),b=Symbol("checkFs2"),_=Symbol("pruneCache"),g=Symbol("isReusable"),S=Symbol("makeFs"),E=Symbol("file"),v=Symbol("directory"),m=Symbol("link"),w=Symbol("symlink"),x=Symbol("hardlink"),A=Symbol("unsupported"),R=Symbol("checkPath"),B=Symbol("mkdir"),P=Symbol("onError"),O=Symbol("pending"),D=Symbol("pend"),k=Symbol("unpend"),M=Symbol("ended"),L=Symbol("maybeClose"),U=Symbol("skip"),W=Symbol("doChown"),se=Symbol("uid"),I=Symbol("gid"),N=Symbol("checkedCwd"),F=fe("crypto"),V=j6(),G=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,J=G==="win32",j=(C,H)=>{if(!J)return i.unlink(C,H);let X=C+".DELETE."+F.randomBytes(16).toString("hex");i.rename(C,X,ie=>{if(ie)return H(ie);i.unlink(X,H)})},z=C=>{if(!J)return i.unlinkSync(C);let H=C+".DELETE."+F.randomBytes(16).toString("hex");i.renameSync(C,H),i.unlinkSync(H)},Q=(C,H,X)=>C===C>>>0?C:H===H>>>0?H:X,le=C=>d(u(h(C))).toLowerCase(),ue=(C,H)=>{H=le(H);for(let X of C.keys()){let ie=le(X);(ie===H||ie.indexOf(H+"/")===0)&&C.delete(X)}},Y=C=>{for(let H of C.keys())C.delete(H)},ne=class extends n{constructor(C){if(C||(C={}),C.ondone=H=>{this[M]=!0,this[L]()},super(C),this[N]=!1,this.reservations=f(),this.transform=typeof C.transform=="function"?C.transform:null,this.writable=!0,this.readable=!1,this[O]=0,this[M]=!1,this.dirCache=C.dirCache||new Map,typeof C.uid=="number"||typeof C.gid=="number"){if(typeof C.uid!="number"||typeof C.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(C.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=C.uid,this.gid=C.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;C.preserveOwner===void 0&&typeof C.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!C.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=C.forceChown===!0,this.win32=!!C.win32||J,this.newer=!!C.newer,this.keep=!!C.keep,this.noMtime=!!C.noMtime,this.preservePaths=!!C.preservePaths,this.unlink=!!C.unlink,this.cwd=h(a.resolve(C.cwd||process.cwd())),this.strip=+C.strip||0,this.processUmask=C.noChmod?0:process.umask(),this.umask=typeof C.umask=="number"?C.umask:this.processUmask,this.dmode=C.dmode||511&~this.umask,this.fmode=C.fmode||438&~this.umask,this.on("entry",H=>this[p](H))}warn(C,H,X={}){return(C==="TAR_BAD_ARCHIVE"||C==="TAR_ABORT")&&(X.recoverable=!1),super.warn(C,H,X)}[L](){this[M]&&this[O]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[R](C){if(this.strip){let H=h(C.path).split("/");if(H.length<this.strip)return!1;if(C.path=H.slice(this.strip).join("/"),C.type==="Link"){let X=h(C.linkpath).split("/");if(X.length>=this.strip)C.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let H=h(C.path),X=H.split("/");if(X.includes("..")||J&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:C,path:H}),!1;let[ie,me]=c(H);ie&&(C.path=me,this.warn("TAR_ENTRY_INFO",`stripping ${ie} from absolute path`,{entry:C,path:H}))}if(a.isAbsolute(C.path)?C.absolute=h(a.resolve(C.path)):C.absolute=h(a.resolve(this.cwd,C.path)),!this.preservePaths&&C.absolute.indexOf(this.cwd+"/")!==0&&C.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:C,path:h(C.path),resolvedPath:C.absolute,cwd:this.cwd}),!1;if(C.absolute===this.cwd&&C.type!=="Directory"&&C.type!=="GNUDumpDir")return!1;if(this.win32){let{root:H}=a.win32.parse(C.absolute);C.absolute=H+s.encode(C.absolute.slice(H.length));let{root:X}=a.win32.parse(C.path);C.path=X+s.encode(C.path.slice(X.length))}return!0}[p](C){if(!this[R](C))return C.resume();switch(t.equal(typeof C.absolute,"string"),C.type){case"Directory":case"GNUDumpDir":C.mode&&(C.mode=C.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](C);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[A](C)}}[P](C,H){C.name==="CwdError"?this.emit("error",C):(this.warn("TAR_ENTRY_ERROR",C,{entry:H}),this[k](),H.resume())}[B](C,H,X){o(h(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:H,noChmod:this.noChmod},X)}[W](C){return this.forceChown||this.preserveOwner&&(typeof C.uid=="number"&&C.uid!==this.processUid||typeof C.gid=="number"&&C.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[se](C){return Q(this.uid,C.uid,this.processUid)}[I](C){return Q(this.gid,C.gid,this.processGid)}[E](C,H){let X=C.mode&4095||this.fmode,ie=new l.WriteStream(C.absolute,{flags:V(C.size),mode:X,autoClose:!1});ie.on("error",oe=>{ie.fd&&i.close(ie.fd,()=>{}),ie.write=()=>!0,this[P](oe,C),H()});let me=1,ae=oe=>{if(oe){ie.fd&&i.close(ie.fd,()=>{}),this[P](oe,C),H();return}--me===0&&i.close(ie.fd,ge=>{ge?this[P](ge,C):this[k](),H()})};ie.on("finish",oe=>{let ge=C.absolute,Ee=ie.fd;if(C.mtime&&!this.noMtime){me++;let Ce=C.atime||new Date,K=C.mtime;i.futimes(Ee,Ce,K,$=>$?i.utimes(ge,Ce,K,ce=>ae(ce&&$)):ae())}if(this[W](C)){me++;let Ce=this[se](C),K=this[I](C);i.fchown(Ee,Ce,K,$=>$?i.chown(ge,Ce,K,ce=>ae(ce&&$)):ae())}ae()});let pe=this.transform&&this.transform(C)||C;pe!==C&&(pe.on("error",oe=>{this[P](oe,C),H()}),C.pipe(pe)),pe.pipe(ie)}[v](C,H){let X=C.mode&4095||this.dmode;this[B](C.absolute,X,ie=>{if(ie){this[P](ie,C),H();return}let me=1,ae=pe=>{--me===0&&(H(),this[k](),C.resume())};C.mtime&&!this.noMtime&&(me++,i.utimes(C.absolute,C.atime||new Date,C.mtime,ae)),this[W](C)&&(me++,i.chown(C.absolute,this[se](C),this[I](C),ae)),ae()})}[A](C){C.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${C.type}`,{entry:C}),C.resume()}[w](C,H){this[m](C,C.linkpath,"symlink",H)}[x](C,H){let X=h(a.resolve(this.cwd,C.linkpath));this[m](C,X,"link",H)}[D](){this[O]++}[k](){this[O]--,this[L]()}[U](C){this[k](),C.resume()}[g](C,H){return C.type==="File"&&!this.unlink&&H.isFile()&&H.nlink<=1&&!J}[y](C){this[D]();let H=[C.path];C.linkpath&&H.push(C.linkpath),this.reservations.reserve(H,X=>this[b](C,X))}[_](C){C.type==="SymbolicLink"?Y(this.dirCache):C.type!=="Directory"&&ue(this.dirCache,C.absolute)}[b](C,H){this[_](C);let X=pe=>{this[_](C),H(pe)},ie=()=>{this[B](this.cwd,this.dmode,pe=>{if(pe){this[P](pe,C),X();return}this[N]=!0,me()})},me=()=>{if(C.absolute!==this.cwd){let pe=h(a.dirname(C.absolute));if(pe!==this.cwd)return this[B](pe,this.dmode,oe=>{if(oe){this[P](oe,C),X();return}ae()})}ae()},ae=()=>{i.lstat(C.absolute,(pe,oe)=>{if(oe&&(this.keep||this.newer&&oe.mtime>C.mtime)){this[U](C),X();return}if(pe||this[g](C,oe))return this[S](null,C,X);if(oe.isDirectory()){if(C.type==="Directory"){let ge=!this.noChmod&&C.mode&&(oe.mode&4095)!==C.mode,Ee=Ce=>this[S](Ce,C,X);return ge?i.chmod(C.absolute,C.mode,Ee):Ee()}if(C.absolute!==this.cwd)return i.rmdir(C.absolute,ge=>this[S](ge,C,X))}if(C.absolute===this.cwd)return this[S](null,C,X);j(C.absolute,ge=>this[S](ge,C,X))})};this[N]?me():ie()}[S](C,H,X){if(C){this[P](C,H),X();return}switch(H.type){case"File":case"OldFile":case"ContiguousFile":return this[E](H,X);case"Link":return this[x](H,X);case"SymbolicLink":return this[w](H,X);case"Directory":case"GNUDumpDir":return this[v](H,X)}}[m](C,H,X,ie){i[X](H,C.absolute,me=>{me?this[P](me,C):(this[k](),C.resume()),ie()})}},T=C=>{try{return[null,C()]}catch(H){return[H,null]}},q=class extends ne{[S](C,H){return super[S](C,H,()=>{})}[y](C){if(this[_](C),!this[N]){let me=this[B](this.cwd,this.dmode);if(me)return this[P](me,C);this[N]=!0}if(C.absolute!==this.cwd){let me=h(a.dirname(C.absolute));if(me!==this.cwd){let ae=this[B](me,this.dmode);if(ae)return this[P](ae,C)}}let[H,X]=T(()=>i.lstatSync(C.absolute));if(X&&(this.keep||this.newer&&X.mtime>C.mtime))return this[U](C);if(H||this[g](C,X))return this[S](null,C);if(X.isDirectory()){if(C.type==="Directory"){let ae=!this.noChmod&&C.mode&&(X.mode&4095)!==C.mode,[pe]=ae?T(()=>{i.chmodSync(C.absolute,C.mode)}):[];return this[S](pe,C)}let[me]=T(()=>i.rmdirSync(C.absolute));this[S](me,C)}let[ie]=C.absolute===this.cwd?[]:T(()=>z(C.absolute));this[S](ie,C)}[E](C,H){let X=C.mode&4095||this.fmode,ie=pe=>{let oe;try{i.closeSync(me)}catch(ge){oe=ge}(pe||oe)&&this[P](pe||oe,C),H()},me;try{me=i.openSync(C.absolute,V(C.size),X)}catch(pe){return ie(pe)}let ae=this.transform&&this.transform(C)||C;ae!==C&&(ae.on("error",pe=>this[P](pe,C)),C.pipe(ae)),ae.on("data",pe=>{try{i.writeSync(me,pe,0,pe.length)}catch(oe){ie(oe)}}),ae.on("end",pe=>{let oe=null;if(C.mtime&&!this.noMtime){let ge=C.atime||new Date,Ee=C.mtime;try{i.futimesSync(me,ge,Ee)}catch(Ce){try{i.utimesSync(C.absolute,ge,Ee)}catch{oe=Ce}}}if(this[W](C)){let ge=this[se](C),Ee=this[I](C);try{i.fchownSync(me,ge,Ee)}catch(Ce){try{i.chownSync(C.absolute,ge,Ee)}catch{oe=oe||Ce}}}ie(oe)})}[v](C,H){let X=C.mode&4095||this.dmode,ie=this[B](C.absolute,X);if(ie){this[P](ie,C),H();return}if(C.mtime&&!this.noMtime)try{i.utimesSync(C.absolute,C.atime||new Date,C.mtime)}catch{}if(this[W](C))try{i.chownSync(C.absolute,this[se](C),this[I](C))}catch{}H(),C.resume()}[B](C,H){try{return o.sync(h(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:H})}catch(X){return X}}[m](C,H,X,ie){try{i[X+"Sync"](H,C.absolute),ie(),C.resume()}catch(me){return this[P](me,C)}}};ne.Sync=q,r.exports=ne}),$6=re((e,r)=>{"use strict";ee();var t=Ui(),n=S8(),i=fe("fs"),l=Vi(),a=fe("path"),o=zi();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&s(b,p),b.file&&b.sync?f(b):b.file?c(b,y):b.sync?h(b):u(b)};var s=(d,p)=>{let y=new Map(p.map(g=>[o(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(o(g)):g=>_(o(g))},f=d=>{let p=new n.Sync(d),y=d.file,b=i.statSync(y),_=d.maxReadSize||16*1024*1024;new l.ReadStreamSync(y,{readSize:_,size:b.size}).pipe(p)},c=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("close",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new l.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},h=d=>new n.Sync(d),u=d=>new n(d)}),H6=re(e=>{"use strict";ee(),e.c=e.create=D6(),e.r=e.replace=_8(),e.t=e.list=_h(),e.u=e.update=R6(),e.x=e.extract=$6(),e.Pack=bh(),e.Unpack=S8(),e.Parse=vh(),e.ReadEntry=mh(),e.WriteEntry=b8(),e.Header=Wi(),e.Pax=yh(),e.types=m8()});ee();var FU=at(S6()),PU=at(H6()),BU=(0,LP.promisify)(IP.Stream.pipeline),q6=re((e,r)=>{ee();var t=fe("constants"),n=process.cwd,i=null,l=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(a=process.chdir,process.chdir=function(s){i=null,a.call(process,s)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a));var a;r.exports=o;function o(s){t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(s),s.lutimes||c(s),s.chown=d(s.chown),s.fchown=d(s.fchown),s.lchown=d(s.lchown),s.chmod=h(s.chmod),s.fchmod=h(s.fchmod),s.lchmod=h(s.lchmod),s.chownSync=p(s.chownSync),s.fchownSync=p(s.fchownSync),s.lchownSync=p(s.lchownSync),s.chmodSync=u(s.chmodSync),s.fchmodSync=u(s.fchmodSync),s.lchmodSync=u(s.lchmodSync),s.stat=y(s.stat),s.fstat=y(s.fstat),s.lstat=y(s.lstat),s.statSync=b(s.statSync),s.fstatSync=b(s.fstatSync),s.lstatSync=b(s.lstatSync),s.chmod&&!s.lchmod&&(s.lchmod=function(g,S,E){E&&process.nextTick(E)},s.lchmodSync=function(){}),s.chown&&!s.lchown&&(s.lchown=function(g,S,E,v){v&&process.nextTick(v)},s.lchownSync=function(){}),l==="win32"&&(s.rename=typeof s.rename!="function"?s.rename:function(g){function S(E,v,m){var w=Date.now(),x=0;g(E,v,function A(R){if(R&&(R.code==="EACCES"||R.code==="EPERM")&&Date.now()-w<6e4){setTimeout(function(){s.stat(v,function(B,P){B&&B.code==="ENOENT"?g(E,v,A):m(R)})},x),x<100&&(x+=10);return}m&&m(R)})}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(s.rename)),s.read=typeof s.read!="function"?s.read:function(g){function S(E,v,m,w,x,A){var R;if(A&&typeof A=="function"){var B=0;R=function(P,O,D){if(P&&P.code==="EAGAIN"&&B<10)return B++,g.call(s,E,v,m,w,x,R);A.apply(this,arguments)}}return g.call(s,E,v,m,w,x,R)}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(s.read),s.readSync=typeof s.readSync!="function"?s.readSync:function(g){return function(S,E,v,m,w){for(var x=0;;)try{return g.call(s,S,E,v,m,w)}catch(A){if(A.code==="EAGAIN"&&x<10){x++;continue}throw A}}}(s.readSync);function f(g){g.lchmod=function(S,E,v){g.open(S,t.O_WRONLY|t.O_SYMLINK,E,function(m,w){if(m){v&&v(m);return}g.fchmod(w,E,function(x){g.close(w,function(A){v&&v(x||A)})})})},g.lchmodSync=function(S,E){var v=g.openSync(S,t.O_WRONLY|t.O_SYMLINK,E),m=!0,w;try{w=g.fchmodSync(v,E),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return w}}function c(g){t.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(S,E,v,m){g.open(S,t.O_SYMLINK,function(w,x){if(w){m&&m(w);return}g.futimes(x,E,v,function(A){g.close(x,function(R){m&&m(A||R)})})})},g.lutimesSync=function(S,E,v){var m=g.openSync(S,t.O_SYMLINK),w,x=!0;try{w=g.futimesSync(m,E,v),x=!1}finally{if(x)try{g.closeSync(m)}catch{}else g.closeSync(m)}return w}):g.futimes&&(g.lutimes=function(S,E,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function h(g){return g&&function(S,E,v){return g.call(s,S,E,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function u(g){return g&&function(S,E){try{return g.call(s,S,E)}catch(v){if(!_(v))throw v}}}function d(g){return g&&function(S,E,v,m){return g.call(s,S,E,v,function(w){_(w)&&(w=null),m&&m.apply(this,arguments)})}}function p(g){return g&&function(S,E,v){try{return g.call(s,S,E,v)}catch(m){if(!_(m))throw m}}}function y(g){return g&&function(S,E,v){typeof E=="function"&&(v=E,E=null);function m(w,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),v&&v.apply(this,arguments)}return E?g.call(s,S,E,m):g.call(s,S,m)}}function b(g){return g&&function(S,E){var v=E?g.call(s,S,E):g.call(s,S);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(g){if(!g||g.code==="ENOSYS")return!0;var S=!process.getuid||process.getuid()!==0;return!!(S&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),U6=re((e,r)=>{ee();var t=fe("stream").Stream;r.exports=n;function n(i){return{ReadStream:l,WriteStream:a};function l(o,s){if(!(this instanceof l))return new l(o,s);t.call(this);var f=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var c=Object.keys(s),h=0,u=c.length;h<u;h++){var d=c[h];this[d]=s[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(p,y){if(p){f.emit("error",p),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function a(o,s){if(!(this instanceof a))return new a(o,s);t.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var f=Object.keys(s),c=0,h=f.length;c<h;c++){var u=f[c];this[u]=s[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),G6=re((e,r)=>{"use strict";ee(),r.exports=n;var t=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var l={__proto__:t(i)};else var l=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(a){Object.defineProperty(l,a,Object.getOwnPropertyDescriptor(i,a))}),l}}),He=re((e,r)=>{ee();var t=fe("fs"),n=q6(),i=U6(),l=G6(),a=fe("util"),o,s;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),s=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",s="___graceful-fs.previous");function f(){}function c(g,S){Object.defineProperty(g,o,{get:function(){return S}})}var h=f;a.debuglog?h=a.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var g=a.format.apply(a,arguments);g="GFS4: "+g.split(/\n/).join(`
|
|
51
|
+
GFS4: `),console.error(g)}),t[o]||(u=global[o]||[],c(t,u),t.close=function(g){function S(E,v){return g.call(t,E,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(S,s,{value:g}),S}(t.close),t.closeSync=function(g){function S(E){g.apply(t,arguments),b()}return Object.defineProperty(S,s,{value:g}),S}(t.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(t[o]),fe("assert").equal(t[o].length,0)}));var u;global[o]||c(global,t[o]),r.exports=d(l(t)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!t.__patched&&(r.exports=d(t),t.__patched=!0);function d(g){n(g),g.gracefulify=d,g.createReadStream=F,g.createWriteStream=V;var S=g.readFile;g.readFile=E;function E(j,z,Q){return typeof z=="function"&&(Q=z,z=null),le(j,z,Q);function le(ue,Y,ne,T){return S(ue,Y,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([le,[ue,Y,ne],q,T||Date.now(),Date.now()]):typeof ne=="function"&&ne.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(j,z,Q,le){return typeof Q=="function"&&(le=Q,Q=null),ue(j,z,Q,le);function ue(Y,ne,T,q,C){return v(Y,ne,T,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?p([ue,[Y,ne,T,q],H,C||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var w=g.appendFile;w&&(g.appendFile=x);function x(j,z,Q,le){return typeof Q=="function"&&(le=Q,Q=null),ue(j,z,Q,le);function ue(Y,ne,T,q,C){return w(Y,ne,T,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?p([ue,[Y,ne,T,q],H,C||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var A=g.copyFile;A&&(g.copyFile=R);function R(j,z,Q,le){return typeof Q=="function"&&(le=Q,Q=0),ue(j,z,Q,le);function ue(Y,ne,T,q,C){return A(Y,ne,T,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?p([ue,[Y,ne,T,q],H,C||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var B=g.readdir;g.readdir=O;var P=/^v[0-5]\./;function O(j,z,Q){typeof z=="function"&&(Q=z,z=null);var le=P.test(process.version)?function(Y,ne,T,q){return B(Y,ue(Y,ne,T,q))}:function(Y,ne,T,q){return B(Y,ne,ue(Y,ne,T,q))};return le(j,z,Q);function ue(Y,ne,T,q){return function(C,H){C&&(C.code==="EMFILE"||C.code==="ENFILE")?p([le,[Y,ne,T],C,q||Date.now(),Date.now()]):(H&&H.sort&&H.sort(),typeof T=="function"&&T.call(this,C,H))}}}if(process.version.substr(0,4)==="v0.8"){var D=i(g);W=D.ReadStream,I=D.WriteStream}var k=g.ReadStream;k&&(W.prototype=Object.create(k.prototype),W.prototype.open=se);var M=g.WriteStream;M&&(I.prototype=Object.create(M.prototype),I.prototype.open=N),Object.defineProperty(g,"ReadStream",{get:function(){return W},set:function(j){W=j},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return I},set:function(j){I=j},enumerable:!0,configurable:!0});var L=W;Object.defineProperty(g,"FileReadStream",{get:function(){return L},set:function(j){L=j},enumerable:!0,configurable:!0});var U=I;Object.defineProperty(g,"FileWriteStream",{get:function(){return U},set:function(j){U=j},enumerable:!0,configurable:!0});function W(j,z){return this instanceof W?(k.apply(this,arguments),this):W.apply(Object.create(W.prototype),arguments)}function se(){var j=this;J(j.path,j.flags,j.mode,function(z,Q){z?(j.autoClose&&j.destroy(),j.emit("error",z)):(j.fd=Q,j.emit("open",Q),j.read())})}function I(j,z){return this instanceof I?(M.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function N(){var j=this;J(j.path,j.flags,j.mode,function(z,Q){z?(j.destroy(),j.emit("error",z)):(j.fd=Q,j.emit("open",Q))})}function F(j,z){return new g.ReadStream(j,z)}function V(j,z){return new g.WriteStream(j,z)}var G=g.open;g.open=J;function J(j,z,Q,le){return typeof Q=="function"&&(le=Q,Q=null),ue(j,z,Q,le);function ue(Y,ne,T,q,C){return G(Y,ne,T,function(H,X){H&&(H.code==="EMFILE"||H.code==="ENFILE")?p([ue,[Y,ne,T,q],H,C||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}return g}function p(g){h("ENQUEUE",g[0].name,g[1]),t[o].push(g),_()}var y;function b(){for(var g=Date.now(),S=0;S<t[o].length;++S)t[o][S].length>2&&(t[o][S][3]=g,t[o][S][4]=g);_()}function _(){if(clearTimeout(y),y=void 0,t[o].length!==0){var g=t[o].shift(),S=g[0],E=g[1],v=g[2],m=g[3],w=g[4];if(m===void 0)h("RETRY",S.name,E),S.apply(null,E);else if(Date.now()-m>=6e4){h("TIMEOUT",S.name,E);var x=E.pop();typeof x=="function"&&x.call(null,v)}else{var A=Date.now()-w,R=Math.max(w-m,1),B=Math.min(R*1.2,100);A>=B?(h("RETRY",S.name,E),S.apply(null,E.concat([m]))):t[o].push(g)}y===void 0&&(y=setTimeout(_,0))}}}),Rt=re(e=>{"use strict";ee(),e.fromCallback=function(r){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")r.apply(this,t);else return new Promise((n,i)=>{r.call(this,...t,(l,a)=>l!=null?i(l):n(a))})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!="function")return r.apply(this,t);r.apply(this,t.slice(0,-1)).then(i=>n(null,i),n)},"name",{value:r.name})}}),zn=re(e=>{"use strict";ee();var r=Rt().fromCallback,t=He(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.assign(e,t),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,l){return typeof l=="function"?t.exists(i,l):new Promise(a=>t.exists(i,a))},e.read=function(i,l,a,o,s,f){return typeof f=="function"?t.read(i,l,a,o,s,f):new Promise((c,h)=>{t.read(i,l,a,o,s,(u,d,p)=>{if(u)return h(u);c({bytesRead:d,buffer:p})})})},e.write=function(i,l,...a){return typeof a[a.length-1]=="function"?t.write(i,l,...a):new Promise((o,s)=>{t.write(i,l,...a,(f,c,h)=>{if(f)return s(f);o({bytesWritten:c,buffer:h})})})},e.readv=function(i,l,...a){return typeof a[a.length-1]=="function"?t.readv(i,l,...a):new Promise((o,s)=>{t.readv(i,l,...a,(f,c,h)=>{if(f)return s(f);o({bytesRead:c,buffers:h})})})},e.writev=function(i,l,...a){return typeof a[a.length-1]=="function"?t.writev(i,l,...a):new Promise((o,s)=>{t.writev(i,l,...a,(f,c,h)=>{if(f)return s(f);o({bytesWritten:c,buffers:h})})})},typeof t.realpath.native=="function"?e.realpath.native=r(t.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),W6=re((e,r)=>{"use strict";ee();var t=fe("path");r.exports.checkPath=function(n){if(process.platform==="win32"&&/[<>:"|?*]/.test(n.replace(t.parse(n).root,""))){let i=new Error(`Path contains invalid characters: ${n}`);throw i.code="EINVAL",i}}}),z6=re((e,r)=>{"use strict";ee();var t=zn(),{checkPath:n}=W6(),i=l=>typeof l=="number"?l:{mode:511,...l}.mode;r.exports.makeDir=async(l,a)=>(n(l),t.mkdir(l,{mode:i(a),recursive:!0})),r.exports.makeDirSync=(l,a)=>(n(l),t.mkdirSync(l,{mode:i(a),recursive:!0}))}),Xt=re((e,r)=>{"use strict";ee();var t=Rt().fromPromise,{makeDir:n,makeDirSync:i}=z6(),l=t(n);r.exports={mkdirs:l,mkdirsSync:i,mkdirp:l,mkdirpSync:i,ensureDir:l,ensureDirSync:i}}),tn=re((e,r)=>{"use strict";ee();var t=Rt().fromPromise,n=zn();function i(l){return n.access(l).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),x8=re((e,r)=>{"use strict";ee();var t=He();function n(l,a,o,s){t.open(l,"r+",(f,c)=>{if(f)return s(f);t.futimes(c,a,o,h=>{t.close(c,u=>{s&&s(h||u)})})})}function i(l,a,o){let s=t.openSync(l,"r+");return t.futimesSync(s,a,o),t.closeSync(s)}r.exports={utimesMillis:n,utimesMillisSync:i}}),Vn=re((e,r)=>{"use strict";ee();var t=zn(),n=fe("path"),i=fe("util");function l(p,y,b){let _=b.dereference?g=>t.stat(g,{bigint:!0}):g=>t.lstat(g,{bigint:!0});return Promise.all([_(p),_(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,S])=>({srcStat:g,destStat:S}))}function a(p,y,b){let _,g=b.dereference?E=>t.statSync(E,{bigint:!0}):E=>t.lstatSync(E,{bigint:!0}),S=g(p);try{_=g(y)}catch(E){if(E.code==="ENOENT")return{srcStat:S,destStat:null};throw E}return{srcStat:S,destStat:_}}function o(p,y,b,_,g){i.callbackify(l)(p,y,_,(S,E)=>{if(S)return g(S);let{srcStat:v,destStat:m}=E;if(m){if(h(v,m)){let w=n.basename(p),x=n.basename(y);return b==="move"&&w!==x&&w.toLowerCase()===x.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`))}return v.isDirectory()&&u(p,y)?g(new Error(d(p,y,b))):g(null,{srcStat:v,destStat:m})})}function s(p,y,b,_){let{srcStat:g,destStat:S}=a(p,y,_);if(S){if(h(g,S)){let E=n.basename(p),v=n.basename(y);if(b==="move"&&E!==v&&E.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:S,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!S.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`);if(!g.isDirectory()&&S.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`)}if(g.isDirectory()&&u(p,y))throw new Error(d(p,y,b));return{srcStat:g,destStat:S}}function f(p,y,b,_,g){let S=n.resolve(n.dirname(p)),E=n.resolve(n.dirname(b));if(E===S||E===n.parse(E).root)return g();t.stat(E,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):h(y,m)?g(new Error(d(p,b,_))):f(p,y,E,_,g))}function c(p,y,b,_){let g=n.resolve(n.dirname(p)),S=n.resolve(n.dirname(b));if(S===g||S===n.parse(S).root)return;let E;try{E=t.statSync(S,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(h(y,E))throw new Error(d(p,b,_));return c(p,y,S,_)}function h(p,y){return y.ino&&y.dev&&y.ino===p.ino&&y.dev===p.dev}function u(p,y){let b=n.resolve(p).split(n.sep).filter(g=>g),_=n.resolve(y).split(n.sep).filter(g=>g);return b.reduce((g,S,E)=>g&&_[E]===S,!0)}function d(p,y,b){return`Cannot ${b} '${p}' to a subdirectory of itself, '${y}'.`}r.exports={checkPaths:o,checkPathsSync:s,checkParentPaths:f,checkParentPathsSync:c,isSrcSubdir:u,areIdentical:h}}),V6=re((e,r)=>{"use strict";ee();var t=He(),n=fe("path"),i=Xt().mkdirs,l=tn().pathExists,a=x8().utimesMillis,o=Vn();function s(P,O,D,k){typeof D=="function"&&!k?(k=D,D={}):typeof D=="function"&&(D={filter:D}),k=k||function(){},D=D||{},D.clobber="clobber"in D?!!D.clobber:!0,D.overwrite="overwrite"in D?!!D.overwrite:D.clobber,D.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
52
|
+
|
|
53
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),o.checkPaths(P,O,"copy",D,(M,L)=>{if(M)return k(M);let{srcStat:U,destStat:W}=L;o.checkParentPaths(P,U,O,"copy",se=>{if(se)return k(se);c(P,O,D,(I,N)=>{if(I)return k(I);if(!N)return k();f(W,P,O,D,k)})})})}function f(P,O,D,k,M){let L=n.dirname(D);l(L,(U,W)=>{if(U)return M(U);if(W)return h(P,O,D,k,M);i(L,se=>se?M(se):h(P,O,D,k,M))})}function c(P,O,D,k){if(!D.filter)return k(null,!0);Promise.resolve(D.filter(P,O)).then(M=>k(null,M),M=>k(M))}function h(P,O,D,k,M){(k.dereference?t.stat:t.lstat)(O,(L,U)=>L?M(L):U.isDirectory()?v(U,P,O,D,k,M):U.isFile()||U.isCharacterDevice()||U.isBlockDevice()?u(U,P,O,D,k,M):U.isSymbolicLink()?R(P,O,D,k,M):U.isSocket()?M(new Error(`Cannot copy a socket file: ${O}`)):U.isFIFO()?M(new Error(`Cannot copy a FIFO pipe: ${O}`)):M(new Error(`Unknown file: ${O}`)))}function u(P,O,D,k,M,L){return O?d(P,D,k,M,L):p(P,D,k,M,L)}function d(P,O,D,k,M){if(k.overwrite)t.unlink(D,L=>L?M(L):p(P,O,D,k,M));else return k.errorOnExist?M(new Error(`'${D}' already exists`)):M()}function p(P,O,D,k,M){t.copyFile(O,D,L=>L?M(L):k.preserveTimestamps?y(P.mode,O,D,M):S(D,P.mode,M))}function y(P,O,D,k){return b(P)?_(D,P,M=>M?k(M):g(P,O,D,k)):g(P,O,D,k)}function b(P){return(P&128)===0}function _(P,O,D){return S(P,O|128,D)}function g(P,O,D,k){E(O,D,M=>M?k(M):S(D,P,k))}function S(P,O,D){return t.chmod(P,O,D)}function E(P,O,D){t.stat(P,(k,M)=>k?D(k):a(O,M.atime,M.mtime,D))}function v(P,O,D,k,M,L){return O?w(D,k,M,L):m(P.mode,D,k,M,L)}function m(P,O,D,k,M){t.mkdir(D,L=>{if(L)return M(L);w(O,D,k,U=>U?M(U):S(D,P,M))})}function w(P,O,D,k){t.readdir(P,(M,L)=>M?k(M):x(L,P,O,D,k))}function x(P,O,D,k,M){let L=P.pop();return L?A(P,L,O,D,k,M):M()}function A(P,O,D,k,M,L){let U=n.join(D,O),W=n.join(k,O);c(U,W,M,(se,I)=>{if(se)return L(se);if(!I)return x(P,D,k,M,L);o.checkPaths(U,W,"copy",M,(N,F)=>{if(N)return L(N);let{destStat:V}=F;h(V,U,W,M,G=>G?L(G):x(P,D,k,M,L))})})}function R(P,O,D,k,M){t.readlink(O,(L,U)=>{if(L)return M(L);if(k.dereference&&(U=n.resolve(process.cwd(),U)),P)t.readlink(D,(W,se)=>W?W.code==="EINVAL"||W.code==="UNKNOWN"?t.symlink(U,D,M):M(W):(k.dereference&&(se=n.resolve(process.cwd(),se)),o.isSrcSubdir(U,se)?M(new Error(`Cannot copy '${U}' to a subdirectory of itself, '${se}'.`)):o.isSrcSubdir(se,U)?M(new Error(`Cannot overwrite '${se}' with '${U}'.`)):B(U,D,M)));else return t.symlink(U,D,M)})}function B(P,O,D){t.unlink(O,k=>k?D(k):t.symlink(P,O,D))}r.exports=s}),K6=re((e,r)=>{"use strict";ee();var t=He(),n=fe("path"),i=Xt().mkdirsSync,l=x8().utimesMillisSync,a=Vn();function o(w,x,A){typeof A=="function"&&(A={filter:A}),A=A||{},A.clobber="clobber"in A?!!A.clobber:!0,A.overwrite="overwrite"in A?!!A.overwrite:A.clobber,A.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
54
|
+
|
|
55
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:R,destStat:B}=a.checkPathsSync(w,x,"copy",A);if(a.checkParentPathsSync(w,R,x,"copy"),A.filter&&!A.filter(w,x))return;let P=n.dirname(x);return t.existsSync(P)||i(P),s(B,w,x,A)}function s(w,x,A,R){let B=(R.dereference?t.statSync:t.lstatSync)(x);if(B.isDirectory())return _(B,w,x,A,R);if(B.isFile()||B.isCharacterDevice()||B.isBlockDevice())return f(B,w,x,A,R);if(B.isSymbolicLink())return v(w,x,A,R);throw B.isSocket()?new Error(`Cannot copy a socket file: ${x}`):B.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${x}`):new Error(`Unknown file: ${x}`)}function f(w,x,A,R,B){return x?c(w,A,R,B):h(w,A,R,B)}function c(w,x,A,R){if(R.overwrite)return t.unlinkSync(A),h(w,x,A,R);if(R.errorOnExist)throw new Error(`'${A}' already exists`)}function h(w,x,A,R){return t.copyFileSync(x,A),R.preserveTimestamps&&u(w.mode,x,A),y(A,w.mode)}function u(w,x,A){return d(w)&&p(A,w),b(x,A)}function d(w){return(w&128)===0}function p(w,x){return y(w,x|128)}function y(w,x){return t.chmodSync(w,x)}function b(w,x){let A=t.statSync(w);return l(x,A.atime,A.mtime)}function _(w,x,A,R,B){return x?S(A,R,B):g(w.mode,A,R,B)}function g(w,x,A,R){return t.mkdirSync(A),S(x,A,R),y(A,w)}function S(w,x,A){t.readdirSync(w).forEach(R=>E(R,w,x,A))}function E(w,x,A,R){let B=n.join(x,w),P=n.join(A,w);if(R.filter&&!R.filter(B,P))return;let{destStat:O}=a.checkPathsSync(B,P,"copy",R);return s(O,B,P,R)}function v(w,x,A,R){let B=t.readlinkSync(x);if(R.dereference&&(B=n.resolve(process.cwd(),B)),w){let P;try{P=t.readlinkSync(A)}catch(O){if(O.code==="EINVAL"||O.code==="UNKNOWN")return t.symlinkSync(B,A);throw O}if(R.dereference&&(P=n.resolve(process.cwd(),P)),a.isSrcSubdir(B,P))throw new Error(`Cannot copy '${B}' to a subdirectory of itself, '${P}'.`);if(a.isSrcSubdir(P,B))throw new Error(`Cannot overwrite '${P}' with '${B}'.`);return m(B,A)}else return t.symlinkSync(B,A)}function m(w,x){return t.unlinkSync(x),t.symlinkSync(w,x)}r.exports=o}),wh=re((e,r)=>{"use strict";ee();var t=Rt().fromCallback;r.exports={copy:t(V6()),copySync:K6()}}),jo=re((e,r)=>{"use strict";ee();var t=He(),n=Rt().fromCallback;function i(a,o){t.rm(a,{recursive:!0,force:!0},o)}function l(a){t.rmSync(a,{recursive:!0,force:!0})}r.exports={remove:n(i),removeSync:l}}),Y6=re((e,r)=>{"use strict";ee();var t=Rt().fromPromise,n=zn(),i=fe("path"),l=Xt(),a=jo(),o=t(async function(f){let c;try{c=await n.readdir(f)}catch{return l.mkdirs(f)}return Promise.all(c.map(h=>a.remove(i.join(f,h))))});function s(f){let c;try{c=n.readdirSync(f)}catch{return l.mkdirsSync(f)}c.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:s,emptydirSync:s,emptyDir:o,emptydir:o}}),X6=re((e,r)=>{"use strict";ee();var t=Rt().fromCallback,n=fe("path"),i=He(),l=Xt();function a(s,f){function c(){i.writeFile(s,"",h=>{if(h)return f(h);f()})}i.stat(s,(h,u)=>{if(!h&&u.isFile())return f();let d=n.dirname(s);i.stat(d,(p,y)=>{if(p)return p.code==="ENOENT"?l.mkdirs(d,b=>{if(b)return f(b);c()}):f(p);y.isDirectory()?c():i.readdir(d,b=>{if(b)return f(b)})})})}function o(s){let f;try{f=i.statSync(s)}catch{}if(f&&f.isFile())return;let c=n.dirname(s);try{i.statSync(c).isDirectory()||i.readdirSync(c)}catch(h){if(h&&h.code==="ENOENT")l.mkdirsSync(c);else throw h}i.writeFileSync(s,"")}r.exports={createFile:t(a),createFileSync:o}}),Z6=re((e,r)=>{"use strict";ee();var t=Rt().fromCallback,n=fe("path"),i=He(),l=Xt(),a=tn().pathExists,{areIdentical:o}=Vn();function s(c,h,u){function d(p,y){i.link(p,y,b=>{if(b)return u(b);u(null)})}i.lstat(h,(p,y)=>{i.lstat(c,(b,_)=>{if(b)return b.message=b.message.replace("lstat","ensureLink"),u(b);if(y&&o(_,y))return u(null);let g=n.dirname(h);a(g,(S,E)=>{if(S)return u(S);if(E)return d(c,h);l.mkdirs(g,v=>{if(v)return u(v);d(c,h)})})})})}function f(c,h){let u;try{u=i.lstatSync(h)}catch{}try{let p=i.lstatSync(c);if(u&&o(p,u))return}catch(p){throw p.message=p.message.replace("lstat","ensureLink"),p}let d=n.dirname(h);return i.existsSync(d)||l.mkdirsSync(d),i.linkSync(c,h)}r.exports={createLink:t(s),createLinkSync:f}}),Q6=re((e,r)=>{"use strict";ee();var t=fe("path"),n=He(),i=tn().pathExists;function l(o,s,f){if(t.isAbsolute(o))return n.lstat(o,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),f(c)):f(null,{toCwd:o,toDst:o}));{let c=t.dirname(s),h=t.join(c,o);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:o}):n.lstat(o,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:o,toDst:t.relative(c,o)})))}}function a(o,s){let f;if(t.isAbsolute(o)){if(f=n.existsSync(o),!f)throw new Error("absolute srcpath does not exist");return{toCwd:o,toDst:o}}else{let c=t.dirname(s),h=t.join(c,o);if(f=n.existsSync(h),f)return{toCwd:h,toDst:o};if(f=n.existsSync(o),!f)throw new Error("relative srcpath does not exist");return{toCwd:o,toDst:t.relative(c,o)}}}r.exports={symlinkPaths:l,symlinkPathsSync:a}}),J6=re((e,r)=>{"use strict";ee();var t=He();function n(l,a,o){if(o=typeof a=="function"?a:o,a=typeof a=="function"?!1:a,a)return o(null,a);t.lstat(l,(s,f)=>{if(s)return o(null,"file");a=f&&f.isDirectory()?"dir":"file",o(null,a)})}function i(l,a){let o;if(a)return a;try{o=t.lstatSync(l)}catch{return"file"}return o&&o.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),eB=re((e,r)=>{"use strict";ee();var t=Rt().fromCallback,n=fe("path"),i=zn(),l=Xt(),a=l.mkdirs,o=l.mkdirsSync,s=Q6(),f=s.symlinkPaths,c=s.symlinkPathsSync,h=J6(),u=h.symlinkType,d=h.symlinkTypeSync,p=tn().pathExists,{areIdentical:y}=Vn();function b(S,E,v,m){m=typeof v=="function"?v:m,v=typeof v=="function"?!1:v,i.lstat(E,(w,x)=>{!w&&x.isSymbolicLink()?Promise.all([i.stat(S),i.stat(E)]).then(([A,R])=>{if(y(A,R))return m(null);_(S,E,v,m)}):_(S,E,v,m)})}function _(S,E,v,m){f(S,E,(w,x)=>{if(w)return m(w);S=x.toDst,u(x.toCwd,v,(A,R)=>{if(A)return m(A);let B=n.dirname(E);p(B,(P,O)=>{if(P)return m(P);if(O)return i.symlink(S,E,R,m);a(B,D=>{if(D)return m(D);i.symlink(S,E,R,m)})})})})}function g(S,E,v){let m;try{m=i.lstatSync(E)}catch{}if(m&&m.isSymbolicLink()){let A=i.statSync(S),R=i.statSync(E);if(y(A,R))return}let w=c(S,E);S=w.toDst,v=d(w.toCwd,v);let x=n.dirname(E);return i.existsSync(x)||o(x),i.symlinkSync(S,E,v)}r.exports={createSymlink:t(b),createSymlinkSync:g}}),tB=re((e,r)=>{"use strict";ee();var{createFile:t,createFileSync:n}=X6(),{createLink:i,createLinkSync:l}=Z6(),{createSymlink:a,createSymlinkSync:o}=eB();r.exports={createFile:t,createFileSync:n,ensureFile:t,ensureFileSync:n,createLink:i,createLinkSync:l,ensureLink:i,ensureLinkSync:l,createSymlink:a,createSymlinkSync:o,ensureSymlink:a,ensureSymlinkSync:o}}),Eh=re((e,r)=>{ee();function t(i,{EOL:l=`
|
|
56
|
+
`,finalEOL:a=!0,replacer:o=null,spaces:s}={}){let f=a?l:"";return JSON.stringify(i,o,s).replace(/\n/g,l)+f}function n(i){return Buffer.isBuffer(i)&&(i=i.toString("utf8")),i.replace(/^\uFEFF/,"")}r.exports={stringify:t,stripBom:n}}),rB=re((e,r)=>{ee();var t;try{t=He()}catch{t=fe("fs")}var n=Rt(),{stringify:i,stripBom:l}=Eh();async function a(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0,_=await n.fromCallback(y.readFile)(d,p);_=l(_);let g;try{g=JSON.parse(_,p?p.reviver:null)}catch(S){if(b)throw S.message=`${d}: ${S.message}`,S;return null}return g}var o=n.fromPromise(a);function s(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0;try{let _=y.readFileSync(d,p);return _=l(_),JSON.parse(_,p.reviver)}catch(_){if(b)throw _.message=`${d}: ${_.message}`,_;return null}}async function f(d,p,y={}){let b=y.fs||t,_=i(p,y);await n.fromCallback(b.writeFile)(d,_,y)}var c=n.fromPromise(f);function h(d,p,y={}){let b=y.fs||t,_=i(p,y);return b.writeFileSync(d,_,y)}var u={readFile:o,readFileSync:s,writeFile:c,writeFileSync:h};r.exports=u}),nB=re((e,r)=>{"use strict";ee();var t=rB();r.exports={readJson:t.readFile,readJsonSync:t.readFileSync,writeJson:t.writeFile,writeJsonSync:t.writeFileSync}}),Sh=re((e,r)=>{"use strict";ee();var t=Rt().fromCallback,n=He(),i=fe("path"),l=Xt(),a=tn().pathExists;function o(f,c,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,c,h,u);l.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,c,h,u)})})}function s(f,...c){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...c);l.mkdirsSync(h),n.writeFileSync(f,...c)}r.exports={outputFile:t(o),outputFileSync:s}}),iB=re((e,r)=>{"use strict";ee();var{stringify:t}=Eh(),{outputFile:n}=Sh();async function i(l,a,o={}){let s=t(a,o);await n(l,s,o)}r.exports=i}),sB=re((e,r)=>{"use strict";ee();var{stringify:t}=Eh(),{outputFileSync:n}=Sh();function i(l,a,o){let s=t(a,o);n(l,s,o)}r.exports=i}),oB=re((e,r)=>{"use strict";ee();var t=Rt().fromPromise,n=nB();n.outputJson=t(iB()),n.outputJsonSync=sB(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),aB=re((e,r)=>{"use strict";ee();var t=He(),n=fe("path"),i=wh().copy,l=jo().remove,a=Xt().mkdirp,o=tn().pathExists,s=Vn();function f(p,y,b,_){typeof b=="function"&&(_=b,b={}),b=b||{};let g=b.overwrite||b.clobber||!1;s.checkPaths(p,y,"move",b,(S,E)=>{if(S)return _(S);let{srcStat:v,isChangingCase:m=!1}=E;s.checkParentPaths(p,v,y,"move",w=>{if(w)return _(w);if(c(y))return h(p,y,g,m,_);a(n.dirname(y),x=>x?_(x):h(p,y,g,m,_))})})}function c(p){let y=n.dirname(p);return n.parse(y).root===y}function h(p,y,b,_,g){if(_)return u(p,y,b,g);if(b)return l(y,S=>S?g(S):u(p,y,b,g));o(y,(S,E)=>S?g(S):E?g(new Error("dest already exists.")):u(p,y,b,g))}function u(p,y,b,_){t.rename(p,y,g=>g?g.code!=="EXDEV"?_(g):d(p,y,b,_):_())}function d(p,y,b,_){i(p,y,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},g=>g?_(g):l(p,_))}r.exports=f}),uB=re((e,r)=>{"use strict";ee();var t=He(),n=fe("path"),i=wh().copySync,l=jo().removeSync,a=Xt().mkdirpSync,o=Vn();function s(d,p,y){y=y||{};let b=y.overwrite||y.clobber||!1,{srcStat:_,isChangingCase:g=!1}=o.checkPathsSync(d,p,"move",y);return o.checkParentPathsSync(d,_,p,"move"),f(p)||a(n.dirname(p)),c(d,p,b,g)}function f(d){let p=n.dirname(d);return n.parse(p).root===p}function c(d,p,y,b){if(b)return h(d,p,y);if(y)return l(p),h(d,p,y);if(t.existsSync(p))throw new Error("dest already exists.");return h(d,p,y)}function h(d,p,y){try{t.renameSync(d,p)}catch(b){if(b.code!=="EXDEV")throw b;return u(d,p,y)}}function u(d,p,y){return i(d,p,{overwrite:y,errorOnExist:!0,preserveTimestamps:!0}),l(d)}r.exports=s}),lB=re((e,r)=>{"use strict";ee();var t=Rt().fromCallback;r.exports={move:t(aB()),moveSync:uB()}}),$o=re((e,r)=>{"use strict";ee(),r.exports={...zn(),...wh(),...Y6(),...tB(),...oB(),...Xt(),...lB(),...Sh(),...tn(),...jo()}});ee();var IU=at($o());ee();var LU=at($o()),cB=re((e,r)=>{"use strict";ee();var t=(n,i)=>{for(let l of Reflect.ownKeys(i))Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(i,l));return n};r.exports=t,r.exports.default=t}),A8=re((e,r)=>{"use strict";ee();var t=cB(),n=new WeakMap,i=(l,a={})=>{if(typeof l!="function")throw new TypeError("Expected a function");let o,s=0,f=l.displayName||l.name||"<anonymous>",c=function(...h){if(n.set(c,++s),s===1)o=l.apply(this,h),l=null;else if(a.throw===!0)throw new Error(`Function \`${f}\` can only be called once`);return o};return t(c,l),n.set(c,s),c};r.exports=i,r.exports.default=i,r.exports.callCount=l=>{if(!n.has(l))throw new Error(`The given function \`${l.name}\` is not wrapped by the \`onetime\` package`);return n.get(l)}}),hB=re((e,r)=>{ee(),r.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&r.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&r.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),C8=re((e,r)=>{ee();var t=global.process,n=function(g){return g&&typeof g=="object"&&typeof g.removeListener=="function"&&typeof g.emit=="function"&&typeof g.reallyExit=="function"&&typeof g.listeners=="function"&&typeof g.kill=="function"&&typeof g.pid=="number"&&typeof g.on=="function"};n(t)?(i=fe("assert"),l=hB(),a=/^win/i.test(t.platform),o=fe("events"),typeof o!="function"&&(o=o.EventEmitter),t.__signal_exit_emitter__?s=t.__signal_exit_emitter__:(s=t.__signal_exit_emitter__=new o,s.count=0,s.emitted={}),s.infinite||(s.setMaxListeners(1/0),s.infinite=!0),r.exports=function(g,S){if(!n(global.process))return function(){};i.equal(typeof g,"function","a callback must be provided for exit handler"),u===!1&&d();var E="exit";S&&S.alwaysLast&&(E="afterexit");var v=function(){s.removeListener(E,g),s.listeners("exit").length===0&&s.listeners("afterexit").length===0&&f()};return s.on(E,g),v},f=function(){!u||!n(global.process)||(u=!1,l.forEach(function(g){try{t.removeListener(g,h[g])}catch{}}),t.emit=b,t.reallyExit=p,s.count-=1)},r.exports.unload=f,c=function(g,S,E){s.emitted[g]||(s.emitted[g]=!0,s.emit(g,S,E))},h={},l.forEach(function(g){h[g]=function(){if(n(global.process)){var S=t.listeners(g);S.length===s.count&&(f(),c("exit",null,g),c("afterexit",null,g),a&&g==="SIGHUP"&&(g="SIGINT"),t.kill(t.pid,g))}}}),r.exports.signals=function(){return l},u=!1,d=function(){u||!n(global.process)||(u=!0,s.count+=1,l=l.filter(function(g){try{return t.on(g,h[g]),!0}catch{return!1}}),t.emit=_,t.reallyExit=y)},r.exports.load=d,p=t.reallyExit,y=function(g){!n(global.process)||(t.exitCode=g||0,c("exit",t.exitCode,null),c("afterexit",t.exitCode,null),p.call(t,t.exitCode))},b=t.emit,_=function(g,S){if(g==="exit"&&n(global.process)){S!==void 0&&(t.exitCode=S);var E=b.apply(this,arguments);return c("exit",t.exitCode,null),c("afterexit",t.exitCode,null),E}else return b.apply(this,arguments)}):r.exports=function(){return function(){}};var i,l,a,o,s,f,c,h,u,d,p,y,b,_}),fB=re((e,r)=>{"use strict";ee();var t=/[|\\{}()[\]^$+*?.]/g;r.exports=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(t,"\\$&")}}),pB=re((e,r)=>{"use strict";ee(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),k8=re((e,r)=>{ee();var t=pB(),n={};for(i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var i,l=r.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(s in l)if(l.hasOwnProperty(s)){if(!("channels"in l[s]))throw new Error("missing channels property: "+s);if(!("labels"in l[s]))throw new Error("missing channel labels property: "+s);if(l[s].labels.length!==l[s].channels)throw new Error("channel and label counts mismatch: "+s);a=l[s].channels,o=l[s].labels,delete l[s].channels,delete l[s].labels,Object.defineProperty(l[s],"channels",{value:a}),Object.defineProperty(l[s],"labels",{value:o})}var a,o,s;l.rgb.hsl=function(c){var h=c[0]/255,u=c[1]/255,d=c[2]/255,p=Math.min(h,u,d),y=Math.max(h,u,d),b=y-p,_,g,S;return y===p?_=0:h===y?_=(u-d)/b:u===y?_=2+(d-h)/b:d===y&&(_=4+(h-u)/b),_=Math.min(_*60,360),_<0&&(_+=360),S=(p+y)/2,y===p?g=0:S<=.5?g=b/(y+p):g=b/(2-y-p),[_,g*100,S*100]},l.rgb.hsv=function(c){var h,u,d,p,y,b=c[0]/255,_=c[1]/255,g=c[2]/255,S=Math.max(b,_,g),E=S-Math.min(b,_,g),v=function(m){return(S-m)/6/E+1/2};return E===0?p=y=0:(y=E/S,h=v(b),u=v(_),d=v(g),b===S?p=d-u:_===S?p=1/3+h-d:g===S&&(p=2/3+u-h),p<0?p+=1:p>1&&(p-=1)),[p*360,y*100,S*100]},l.rgb.hwb=function(c){var h=c[0],u=c[1],d=c[2],p=l.rgb.hsl(c)[0],y=1/255*Math.min(h,Math.min(u,d));return d=1-1/255*Math.max(h,Math.max(u,d)),[p,y*100,d*100]},l.rgb.cmyk=function(c){var h=c[0]/255,u=c[1]/255,d=c[2]/255,p,y,b,_;return _=Math.min(1-h,1-u,1-d),p=(1-h-_)/(1-_)||0,y=(1-u-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[p*100,y*100,b*100,_*100]};function f(c,h){return Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)+Math.pow(c[2]-h[2],2)}l.rgb.keyword=function(c){var h=n[c];if(h)return h;var u=1/0,d;for(var p in t)if(t.hasOwnProperty(p)){var y=t[p],b=f(c,y);b<u&&(u=b,d=p)}return d},l.keyword.rgb=function(c){return t[c]},l.rgb.xyz=function(c){var h=c[0]/255,u=c[1]/255,d=c[2]/255;h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92,u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=h*.4124+u*.3576+d*.1805,y=h*.2126+u*.7152+d*.0722,b=h*.0193+u*.1192+d*.9505;return[p*100,y*100,b*100]},l.rgb.lab=function(c){var h=l.rgb.xyz(c),u=h[0],d=h[1],p=h[2],y,b,_;return u/=95.047,d/=100,p/=108.883,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,y=116*d-16,b=500*(u-d),_=200*(d-p),[y,b,_]},l.hsl.rgb=function(c){var h=c[0]/360,u=c[1]/100,d=c[2]/100,p,y,b,_,g;if(u===0)return g=d*255,[g,g,g];d<.5?y=d*(1+u):y=d+u-d*u,p=2*d-y,_=[0,0,0];for(var S=0;S<3;S++)b=h+1/3*-(S-1),b<0&&b++,b>1&&b--,6*b<1?g=p+(y-p)*6*b:2*b<1?g=y:3*b<2?g=p+(y-p)*(2/3-b)*6:g=p,_[S]=g*255;return _},l.hsl.hsv=function(c){var h=c[0],u=c[1]/100,d=c[2]/100,p=u,y=Math.max(d,.01),b,_;return d*=2,u*=d<=1?d:2-d,p*=y<=1?y:2-y,_=(d+u)/2,b=d===0?2*p/(y+p):2*u/(d+u),[h,b*100,_*100]},l.hsv.rgb=function(c){var h=c[0]/60,u=c[1]/100,d=c[2]/100,p=Math.floor(h)%6,y=h-Math.floor(h),b=255*d*(1-u),_=255*d*(1-u*y),g=255*d*(1-u*(1-y));switch(d*=255,p){case 0:return[d,g,b];case 1:return[_,d,b];case 2:return[b,d,g];case 3:return[b,_,d];case 4:return[g,b,d];case 5:return[d,b,_]}},l.hsv.hsl=function(c){var h=c[0],u=c[1]/100,d=c[2]/100,p=Math.max(d,.01),y,b,_;return _=(2-u)*d,y=(2-u)*p,b=u*p,b/=y<=1?y:2-y,b=b||0,_/=2,[h,b*100,_*100]},l.hwb.rgb=function(c){var h=c[0]/360,u=c[1]/100,d=c[2]/100,p=u+d,y,b,_,g;p>1&&(u/=p,d/=p),y=Math.floor(6*h),b=1-d,_=6*h-y,y&1&&(_=1-_),g=u+_*(b-u);var S,E,v;switch(y){default:case 6:case 0:S=b,E=g,v=u;break;case 1:S=g,E=b,v=u;break;case 2:S=u,E=b,v=g;break;case 3:S=u,E=g,v=b;break;case 4:S=g,E=u,v=b;break;case 5:S=b,E=u,v=g;break}return[S*255,E*255,v*255]},l.cmyk.rgb=function(c){var h=c[0]/100,u=c[1]/100,d=c[2]/100,p=c[3]/100,y,b,_;return y=1-Math.min(1,h*(1-p)+p),b=1-Math.min(1,u*(1-p)+p),_=1-Math.min(1,d*(1-p)+p),[y*255,b*255,_*255]},l.xyz.rgb=function(c){var h=c[0]/100,u=c[1]/100,d=c[2]/100,p,y,b;return p=h*3.2406+u*-1.5372+d*-.4986,y=h*-.9689+u*1.8758+d*.0415,b=h*.0557+u*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,p=Math.min(Math.max(0,p),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[p*255,y*255,b*255]},l.xyz.lab=function(c){var h=c[0],u=c[1],d=c[2],p,y,b;return h/=95.047,u/=100,d/=108.883,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*u-16,y=500*(h-u),b=200*(u-d),[p,y,b]},l.lab.xyz=function(c){var h=c[0],u=c[1],d=c[2],p,y,b;y=(h+16)/116,p=u/500+y,b=y-d/200;var _=Math.pow(y,3),g=Math.pow(p,3),S=Math.pow(b,3);return y=_>.008856?_:(y-16/116)/7.787,p=g>.008856?g:(p-16/116)/7.787,b=S>.008856?S:(b-16/116)/7.787,p*=95.047,y*=100,b*=108.883,[p,y,b]},l.lab.lch=function(c){var h=c[0],u=c[1],d=c[2],p,y,b;return p=Math.atan2(d,u),y=p*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(u*u+d*d),[h,b,y]},l.lch.lab=function(c){var h=c[0],u=c[1],d=c[2],p,y,b;return b=d/360*2*Math.PI,p=u*Math.cos(b),y=u*Math.sin(b),[h,p,y]},l.rgb.ansi16=function(c){var h=c[0],u=c[1],d=c[2],p=1 in arguments?arguments[1]:l.rgb.hsv(c)[2];if(p=Math.round(p/50),p===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(h/255));return p===2&&(y+=60),y},l.hsv.ansi16=function(c){return l.rgb.ansi16(l.hsv.rgb(c),c[2])},l.rgb.ansi256=function(c){var h=c[0],u=c[1],d=c[2];if(h===u&&u===d)return h<8?16:h>248?231:Math.round((h-8)/247*24)+232;var p=16+36*Math.round(h/255*5)+6*Math.round(u/255*5)+Math.round(d/255*5);return p},l.ansi16.rgb=function(c){var h=c%10;if(h===0||h===7)return c>50&&(h+=3.5),h=h/10.5*255,[h,h,h];var u=(~~(c>50)+1)*.5,d=(h&1)*u*255,p=(h>>1&1)*u*255,y=(h>>2&1)*u*255;return[d,p,y]},l.ansi256.rgb=function(c){if(c>=232){var h=(c-232)*10+8;return[h,h,h]}c-=16;var u,d=Math.floor(c/36)/5*255,p=Math.floor((u=c%36)/6)/5*255,y=u%6/5*255;return[d,p,y]},l.rgb.hex=function(c){var h=((Math.round(c[0])&255)<<16)+((Math.round(c[1])&255)<<8)+(Math.round(c[2])&255),u=h.toString(16).toUpperCase();return"000000".substring(u.length)+u},l.hex.rgb=function(c){var h=c.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!h)return[0,0,0];var u=h[0];h[0].length===3&&(u=u.split("").map(function(_){return _+_}).join(""));var d=parseInt(u,16),p=d>>16&255,y=d>>8&255,b=d&255;return[p,y,b]},l.rgb.hcg=function(c){var h=c[0]/255,u=c[1]/255,d=c[2]/255,p=Math.max(Math.max(h,u),d),y=Math.min(Math.min(h,u),d),b=p-y,_,g;return b<1?_=y/(1-b):_=0,b<=0?g=0:p===h?g=(u-d)/b%6:p===u?g=2+(d-h)/b:g=4+(h-u)/b+4,g/=6,g%=1,[g*360,b*100,_*100]},l.hsl.hcg=function(c){var h=c[1]/100,u=c[2]/100,d=1,p=0;return u<.5?d=2*h*u:d=2*h*(1-u),d<1&&(p=(u-.5*d)/(1-d)),[c[0],d*100,p*100]},l.hsv.hcg=function(c){var h=c[1]/100,u=c[2]/100,d=h*u,p=0;return d<1&&(p=(u-d)/(1-d)),[c[0],d*100,p*100]},l.hcg.rgb=function(c){var h=c[0]/360,u=c[1]/100,d=c[2]/100;if(u===0)return[d*255,d*255,d*255];var p=[0,0,0],y=h%1*6,b=y%1,_=1-b,g=0;switch(Math.floor(y)){case 0:p[0]=1,p[1]=b,p[2]=0;break;case 1:p[0]=_,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=b;break;case 3:p[0]=0,p[1]=_,p[2]=1;break;case 4:p[0]=b,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=_}return g=(1-u)*d,[(u*p[0]+g)*255,(u*p[1]+g)*255,(u*p[2]+g)*255]},l.hcg.hsv=function(c){var h=c[1]/100,u=c[2]/100,d=h+u*(1-h),p=0;return d>0&&(p=h/d),[c[0],p*100,d*100]},l.hcg.hsl=function(c){var h=c[1]/100,u=c[2]/100,d=u*(1-h)+.5*h,p=0;return d>0&&d<.5?p=h/(2*d):d>=.5&&d<1&&(p=h/(2*(1-d))),[c[0],p*100,d*100]},l.hcg.hwb=function(c){var h=c[1]/100,u=c[2]/100,d=h+u*(1-h);return[c[0],(d-h)*100,(1-d)*100]},l.hwb.hcg=function(c){var h=c[1]/100,u=c[2]/100,d=1-u,p=d-h,y=0;return p<1&&(y=(d-p)/(1-p)),[c[0],p*100,y*100]},l.apple.rgb=function(c){return[c[0]/65535*255,c[1]/65535*255,c[2]/65535*255]},l.rgb.apple=function(c){return[c[0]/255*65535,c[1]/255*65535,c[2]/255*65535]},l.gray.rgb=function(c){return[c[0]/100*255,c[0]/100*255,c[0]/100*255]},l.gray.hsl=l.gray.hsv=function(c){return[0,0,c[0]]},l.gray.hwb=function(c){return[0,100,c[0]]},l.gray.cmyk=function(c){return[0,0,0,c[0]]},l.gray.lab=function(c){return[c[0],0,0]},l.gray.hex=function(c){var h=Math.round(c[0]/100*255)&255,u=(h<<16)+(h<<8)+h,d=u.toString(16).toUpperCase();return"000000".substring(d.length)+d},l.rgb.gray=function(c){var h=(c[0]+c[1]+c[2])/3;return[h/255*100]}}),dB=re((e,r)=>{ee();var t=k8();function n(){for(var o={},s=Object.keys(t),f=s.length,c=0;c<f;c++)o[s[c]]={distance:-1,parent:null};return o}function i(o){var s=n(),f=[o];for(s[o].distance=0;f.length;)for(var c=f.pop(),h=Object.keys(t[c]),u=h.length,d=0;d<u;d++){var p=h[d],y=s[p];y.distance===-1&&(y.distance=s[c].distance+1,y.parent=c,f.unshift(p))}return s}function l(o,s){return function(f){return s(o(f))}}function a(o,s){for(var f=[s[o].parent,o],c=t[s[o].parent][o],h=s[o].parent;s[h].parent;)f.unshift(s[h].parent),c=l(t[s[h].parent][h],c),h=s[h].parent;return c.conversion=f,c}r.exports=function(o){for(var s=i(o),f={},c=Object.keys(s),h=c.length,u=0;u<h;u++){var d=c[u],p=s[d];p.parent!==null&&(f[d]=a(d,s))}return f}}),mB=re((e,r)=>{ee();var t=k8(),n=dB(),i={},l=Object.keys(t);function a(s){var f=function(c){return c==null?c:(arguments.length>1&&(c=Array.prototype.slice.call(arguments)),s(c))};return"conversion"in s&&(f.conversion=s.conversion),f}function o(s){var f=function(c){if(c==null)return c;arguments.length>1&&(c=Array.prototype.slice.call(arguments));var h=s(c);if(typeof h=="object")for(var u=h.length,d=0;d<u;d++)h[d]=Math.round(h[d]);return h};return"conversion"in s&&(f.conversion=s.conversion),f}l.forEach(function(s){i[s]={},Object.defineProperty(i[s],"channels",{value:t[s].channels}),Object.defineProperty(i[s],"labels",{value:t[s].labels});var f=n(s),c=Object.keys(f);c.forEach(function(h){var u=f[h];i[s][h]=o(u),i[s][h].raw=a(u)})}),r.exports=i}),yB=re((e,r)=>{"use strict";ee();var t=mB(),n=(o,s)=>function(){return`\x1B[${o.apply(t,arguments)+s}m`},i=(o,s)=>function(){let f=o.apply(t,arguments);return`\x1B[${38+s};5;${f}m`},l=(o,s)=>function(){let f=o.apply(t,arguments);return`\x1B[${38+s};2;${f[0]};${f[1]};${f[2]}m`};function a(){let o=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.grey=s.color.gray;for(let h of Object.keys(s)){let u=s[h];for(let d of Object.keys(u)){let p=u[d];s[d]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},u[d]=s[d],o.set(p[0],p[1])}Object.defineProperty(s,h,{value:u,enumerable:!1}),Object.defineProperty(s,"codes",{value:o,enumerable:!1})}let f=h=>h,c=(h,u,d)=>[h,u,d];s.color.close="\x1B[39m",s.bgColor.close="\x1B[49m",s.color.ansi={ansi:n(f,0)},s.color.ansi256={ansi256:i(f,0)},s.color.ansi16m={rgb:l(c,0)},s.bgColor.ansi={ansi:n(f,10)},s.bgColor.ansi256={ansi256:i(f,10)},s.bgColor.ansi16m={rgb:l(c,10)};for(let h of Object.keys(t)){if(typeof t[h]!="object")continue;let u=t[h];h==="ansi16"&&(h="ansi"),"ansi16"in u&&(s.color.ansi[h]=n(u.ansi16,0),s.bgColor.ansi[h]=n(u.ansi16,10)),"ansi256"in u&&(s.color.ansi256[h]=i(u.ansi256,0),s.bgColor.ansi256[h]=i(u.ansi256,10)),"rgb"in u&&(s.color.ansi16m[h]=l(u.rgb,0),s.bgColor.ansi16m[h]=l(u.rgb,10))}return s}Object.defineProperty(r,"exports",{enumerable:!0,get:a})}),gB=re((e,r)=>{"use strict";ee(),r.exports=(t,n)=>{n=n||process.argv;let i=t.startsWith("-")?"":t.length===1?"-":"--",l=n.indexOf(i+t),a=n.indexOf("--");return l!==-1&&(a===-1?!0:l<a)}}),bB=re((e,r)=>{"use strict";ee();var t=fe("os"),n=gB(),i=process.env,l;n("no-color")||n("no-colors")||n("color=false")?l=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(l=!0),"FORCE_COLOR"in i&&(l=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function a(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function o(f){if(l===!1)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(f&&!f.isTTY&&l!==!0)return 0;let c=l?1:0;if(process.platform==="win32"){let h=t.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(h[0])>=10&&Number(h[2])>=10586?Number(h[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(h=>h in i)||i.CI_NAME==="codeship"?1:c;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let h=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,c)}function s(f){let c=o(f);return a(c)}r.exports={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}}),vB=re((e,r)=>{"use strict";ee();var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,l=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
|
57
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o(h){return h[0]==="u"&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):a.get(h)||h}function s(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(l,(_,g,S)=>g?o(g):S));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`);return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=s(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function c(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?p=p[y].apply(p,d[y]):p=p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(o(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:c(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(c(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),Ho=re((e,r)=>{"use strict";ee();var t=fB(),n=yB(),i=bB().stdout,l=vB(),a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],s=new Set(["gray"]),f=Object.create(null);function c(b,_){_=_||{};let g=i?i.level:0;b.level=_.level===void 0?g:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function h(b){if(!this||!(this instanceof h)||this.template){let _={};return c(_,b),_.template=function(){let g=[].slice.call(arguments);return y.apply(null,[_.template].concat(g))},Object.setPrototypeOf(_,h.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=h,_.template}c(this,b)}a&&(n.blue.open="\x1B[94m");for(let b of Object.keys(n))n[b].closeRe=new RegExp(t(n[b].close),"g"),f[b]={get(){let _=n[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(let b of Object.keys(n.color.ansi))s.has(b)||(f[b]={get(){let _=this.level;return function(){let g={open:n.color[o[_]][b].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(let b of Object.keys(n.bgColor.ansi)){if(s.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);f[_]={get(){let g=this.level;return function(){let S={open:n.bgColor[o[g]][b].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(S):[S],this._empty,b)}}}}var u=Object.defineProperties(()=>{},f);function d(b,_,g){let S=function(){return p.apply(S,arguments)};S._styles=b,S._empty=_;let E=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return E.level},set(v){E.level=v}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return E.enabled},set(v){E.enabled=v}}),S.hasGrey=this.hasGrey||g==="gray"||g==="grey",S.__proto__=u,S}function p(){let b=arguments,_=b.length,g=String(arguments[0]);if(_===0)return"";if(_>1)for(let E=1;E<_;E++)g+=" "+b[E];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let S=n.dim.open;a&&this.hasGrey&&(n.dim.open="");for(let E of this._styles.slice().reverse())g=E.open+g.replace(E.closeRe,E.open)+E.close,g=g.replace(/\r?\n/g,`${E.close}$&${E.open}`);return n.dim.open=S,g}function y(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),S=[_.raw[0]];for(let E=1;E<_.length;E++)S.push(String(g[E-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(_.raw[E]));return l(b,S.join(""))}Object.defineProperties(h.prototype,f),r.exports=h(),r.exports.supportsColor=i,r.exports.default=r.exports}),_B=re((e,r)=>{"use strict";ee(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),D8=re((e,r)=>{ee();var t=_B(),n={};for(let a of Object.keys(t))n[t[a]]=a;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};r.exports=i;for(let a of Object.keys(i)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);let{channels:o,labels:s}=i[a];delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:o}),Object.defineProperty(i[a],"labels",{value:s})}i.rgb.hsl=function(a){let o=a[0]/255,s=a[1]/255,f=a[2]/255,c=Math.min(o,s,f),h=Math.max(o,s,f),u=h-c,d,p;h===c?d=0:o===h?d=(s-f)/u:s===h?d=2+(f-o)/u:f===h&&(d=4+(o-s)/u),d=Math.min(d*60,360),d<0&&(d+=360);let y=(c+h)/2;return h===c?p=0:y<=.5?p=u/(h+c):p=u/(2-h-c),[d,p*100,y*100]},i.rgb.hsv=function(a){let o,s,f,c,h,u=a[0]/255,d=a[1]/255,p=a[2]/255,y=Math.max(u,d,p),b=y-Math.min(u,d,p),_=function(g){return(y-g)/6/b+1/2};return b===0?(c=0,h=0):(h=b/y,o=_(u),s=_(d),f=_(p),u===y?c=f-s:d===y?c=1/3+o-f:p===y&&(c=2/3+s-o),c<0?c+=1:c>1&&(c-=1)),[c*360,h*100,y*100]},i.rgb.hwb=function(a){let o=a[0],s=a[1],f=a[2],c=i.rgb.hsl(a)[0],h=1/255*Math.min(o,Math.min(s,f));return f=1-1/255*Math.max(o,Math.max(s,f)),[c,h*100,f*100]},i.rgb.cmyk=function(a){let o=a[0]/255,s=a[1]/255,f=a[2]/255,c=Math.min(1-o,1-s,1-f),h=(1-o-c)/(1-c)||0,u=(1-s-c)/(1-c)||0,d=(1-f-c)/(1-c)||0;return[h*100,u*100,d*100,c*100]};function l(a,o){return(a[0]-o[0])**2+(a[1]-o[1])**2+(a[2]-o[2])**2}i.rgb.keyword=function(a){let o=n[a];if(o)return o;let s=1/0,f;for(let c of Object.keys(t)){let h=t[c],u=l(a,h);u<s&&(s=u,f=c)}return f},i.keyword.rgb=function(a){return t[a]},i.rgb.xyz=function(a){let o=a[0]/255,s=a[1]/255,f=a[2]/255;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,f=f>.04045?((f+.055)/1.055)**2.4:f/12.92;let c=o*.4124+s*.3576+f*.1805,h=o*.2126+s*.7152+f*.0722,u=o*.0193+s*.1192+f*.9505;return[c*100,h*100,u*100]},i.rgb.lab=function(a){let o=i.rgb.xyz(a),s=o[0],f=o[1],c=o[2];s/=95.047,f/=100,c/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,f=f>.008856?f**(1/3):7.787*f+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;let h=116*f-16,u=500*(s-f),d=200*(f-c);return[h,u,d]},i.hsl.rgb=function(a){let o=a[0]/360,s=a[1]/100,f=a[2]/100,c,h,u;if(s===0)return u=f*255,[u,u,u];f<.5?c=f*(1+s):c=f+s-f*s;let d=2*f-c,p=[0,0,0];for(let y=0;y<3;y++)h=o+1/3*-(y-1),h<0&&h++,h>1&&h--,6*h<1?u=d+(c-d)*6*h:2*h<1?u=c:3*h<2?u=d+(c-d)*(2/3-h)*6:u=d,p[y]=u*255;return p},i.hsl.hsv=function(a){let o=a[0],s=a[1]/100,f=a[2]/100,c=s,h=Math.max(f,.01);f*=2,s*=f<=1?f:2-f,c*=h<=1?h:2-h;let u=(f+s)/2,d=f===0?2*c/(h+c):2*s/(f+s);return[o,d*100,u*100]},i.hsv.rgb=function(a){let o=a[0]/60,s=a[1]/100,f=a[2]/100,c=Math.floor(o)%6,h=o-Math.floor(o),u=255*f*(1-s),d=255*f*(1-s*h),p=255*f*(1-s*(1-h));switch(f*=255,c){case 0:return[f,p,u];case 1:return[d,f,u];case 2:return[u,f,p];case 3:return[u,d,f];case 4:return[p,u,f];case 5:return[f,u,d]}},i.hsv.hsl=function(a){let o=a[0],s=a[1]/100,f=a[2]/100,c=Math.max(f,.01),h,u;u=(2-s)*f;let d=(2-s)*c;return h=s*c,h/=d<=1?d:2-d,h=h||0,u/=2,[o,h*100,u*100]},i.hwb.rgb=function(a){let o=a[0]/360,s=a[1]/100,f=a[2]/100,c=s+f,h;c>1&&(s/=c,f/=c);let u=Math.floor(6*o),d=1-f;h=6*o-u,u&1&&(h=1-h);let p=s+h*(d-s),y,b,_;switch(u){default:case 6:case 0:y=d,b=p,_=s;break;case 1:y=p,b=d,_=s;break;case 2:y=s,b=d,_=p;break;case 3:y=s,b=p,_=d;break;case 4:y=p,b=s,_=d;break;case 5:y=d,b=s,_=p;break}return[y*255,b*255,_*255]},i.cmyk.rgb=function(a){let o=a[0]/100,s=a[1]/100,f=a[2]/100,c=a[3]/100,h=1-Math.min(1,o*(1-c)+c),u=1-Math.min(1,s*(1-c)+c),d=1-Math.min(1,f*(1-c)+c);return[h*255,u*255,d*255]},i.xyz.rgb=function(a){let o=a[0]/100,s=a[1]/100,f=a[2]/100,c,h,u;return c=o*3.2406+s*-1.5372+f*-.4986,h=o*-.9689+s*1.8758+f*.0415,u=o*.0557+s*-.204+f*1.057,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,c=Math.min(Math.max(0,c),1),h=Math.min(Math.max(0,h),1),u=Math.min(Math.max(0,u),1),[c*255,h*255,u*255]},i.xyz.lab=function(a){let o=a[0],s=a[1],f=a[2];o/=95.047,s/=100,f/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,f=f>.008856?f**(1/3):7.787*f+16/116;let c=116*s-16,h=500*(o-s),u=200*(s-f);return[c,h,u]},i.lab.xyz=function(a){let o=a[0],s=a[1],f=a[2],c,h,u;h=(o+16)/116,c=s/500+h,u=h-f/200;let d=h**3,p=c**3,y=u**3;return h=d>.008856?d:(h-16/116)/7.787,c=p>.008856?p:(c-16/116)/7.787,u=y>.008856?y:(u-16/116)/7.787,c*=95.047,h*=100,u*=108.883,[c,h,u]},i.lab.lch=function(a){let o=a[0],s=a[1],f=a[2],c;c=Math.atan2(f,s)*360/2/Math.PI,c<0&&(c+=360);let h=Math.sqrt(s*s+f*f);return[o,h,c]},i.lch.lab=function(a){let o=a[0],s=a[1],f=a[2]/360*2*Math.PI,c=s*Math.cos(f),h=s*Math.sin(f);return[o,c,h]},i.rgb.ansi16=function(a,o=null){let[s,f,c]=a,h=o===null?i.rgb.hsv(a)[2]:o;if(h=Math.round(h/50),h===0)return 30;let u=30+(Math.round(c/255)<<2|Math.round(f/255)<<1|Math.round(s/255));return h===2&&(u+=60),u},i.hsv.ansi16=function(a){return i.rgb.ansi16(i.hsv.rgb(a),a[2])},i.rgb.ansi256=function(a){let o=a[0],s=a[1],f=a[2];return o===s&&s===f?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(s/255*5)+Math.round(f/255*5)},i.ansi16.rgb=function(a){let o=a%10;if(o===0||o===7)return a>50&&(o+=3.5),o=o/10.5*255,[o,o,o];let s=(~~(a>50)+1)*.5,f=(o&1)*s*255,c=(o>>1&1)*s*255,h=(o>>2&1)*s*255;return[f,c,h]},i.ansi256.rgb=function(a){if(a>=232){let h=(a-232)*10+8;return[h,h,h]}a-=16;let o,s=Math.floor(a/36)/5*255,f=Math.floor((o=a%36)/6)/5*255,c=o%6/5*255;return[s,f,c]},i.rgb.hex=function(a){let o=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(o.length)+o},i.hex.rgb=function(a){let o=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!o)return[0,0,0];let s=o[0];o[0].length===3&&(s=s.split("").map(d=>d+d).join(""));let f=parseInt(s,16),c=f>>16&255,h=f>>8&255,u=f&255;return[c,h,u]},i.rgb.hcg=function(a){let o=a[0]/255,s=a[1]/255,f=a[2]/255,c=Math.max(Math.max(o,s),f),h=Math.min(Math.min(o,s),f),u=c-h,d,p;return u<1?d=h/(1-u):d=0,u<=0?p=0:c===o?p=(s-f)/u%6:c===s?p=2+(f-o)/u:p=4+(o-s)/u,p/=6,p%=1,[p*360,u*100,d*100]},i.hsl.hcg=function(a){let o=a[1]/100,s=a[2]/100,f=s<.5?2*o*s:2*o*(1-s),c=0;return f<1&&(c=(s-.5*f)/(1-f)),[a[0],f*100,c*100]},i.hsv.hcg=function(a){let o=a[1]/100,s=a[2]/100,f=o*s,c=0;return f<1&&(c=(s-f)/(1-f)),[a[0],f*100,c*100]},i.hcg.rgb=function(a){let o=a[0]/360,s=a[1]/100,f=a[2]/100;if(s===0)return[f*255,f*255,f*255];let c=[0,0,0],h=o%1*6,u=h%1,d=1-u,p=0;switch(Math.floor(h)){case 0:c[0]=1,c[1]=u,c[2]=0;break;case 1:c[0]=d,c[1]=1,c[2]=0;break;case 2:c[0]=0,c[1]=1,c[2]=u;break;case 3:c[0]=0,c[1]=d,c[2]=1;break;case 4:c[0]=u,c[1]=0,c[2]=1;break;default:c[0]=1,c[1]=0,c[2]=d}return p=(1-s)*f,[(s*c[0]+p)*255,(s*c[1]+p)*255,(s*c[2]+p)*255]},i.hcg.hsv=function(a){let o=a[1]/100,s=a[2]/100,f=o+s*(1-o),c=0;return f>0&&(c=o/f),[a[0],c*100,f*100]},i.hcg.hsl=function(a){let o=a[1]/100,s=a[2]/100*(1-o)+.5*o,f=0;return s>0&&s<.5?f=o/(2*s):s>=.5&&s<1&&(f=o/(2*(1-s))),[a[0],f*100,s*100]},i.hcg.hwb=function(a){let o=a[1]/100,s=a[2]/100,f=o+s*(1-o);return[a[0],(f-o)*100,(1-f)*100]},i.hwb.hcg=function(a){let o=a[1]/100,s=a[2]/100,f=1-s,c=f-o,h=0;return c<1&&(h=(f-c)/(1-c)),[a[0],c*100,h*100]},i.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},i.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},i.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},i.gray.hsl=function(a){return[0,0,a[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(a){return[0,100,a[0]]},i.gray.cmyk=function(a){return[0,0,0,a[0]]},i.gray.lab=function(a){return[a[0],0,0]},i.gray.hex=function(a){let o=Math.round(a[0]/100*255)&255,s=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".substring(s.length)+s},i.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}}),wB=re((e,r)=>{ee();var t=D8();function n(){let o={},s=Object.keys(t);for(let f=s.length,c=0;c<f;c++)o[s[c]]={distance:-1,parent:null};return o}function i(o){let s=n(),f=[o];for(s[o].distance=0;f.length;){let c=f.pop(),h=Object.keys(t[c]);for(let u=h.length,d=0;d<u;d++){let p=h[d],y=s[p];y.distance===-1&&(y.distance=s[c].distance+1,y.parent=c,f.unshift(p))}}return s}function l(o,s){return function(f){return s(o(f))}}function a(o,s){let f=[s[o].parent,o],c=t[s[o].parent][o],h=s[o].parent;for(;s[h].parent;)f.unshift(s[h].parent),c=l(t[s[h].parent][h],c),h=s[h].parent;return c.conversion=f,c}r.exports=function(o){let s=i(o),f={},c=Object.keys(s);for(let h=c.length,u=0;u<h;u++){let d=c[u];s[d].parent!==null&&(f[d]=a(d,s))}return f}}),EB=re((e,r)=>{ee();var t=D8(),n=wB(),i={},l=Object.keys(t);function a(s){let f=function(...c){let h=c[0];return h==null?h:(h.length>1&&(c=h),s(c))};return"conversion"in s&&(f.conversion=s.conversion),f}function o(s){let f=function(...c){let h=c[0];if(h==null)return h;h.length>1&&(c=h);let u=s(c);if(typeof u=="object")for(let d=u.length,p=0;p<d;p++)u[p]=Math.round(u[p]);return u};return"conversion"in s&&(f.conversion=s.conversion),f}l.forEach(s=>{i[s]={},Object.defineProperty(i[s],"channels",{value:t[s].channels}),Object.defineProperty(i[s],"labels",{value:t[s].labels});let f=n(s);Object.keys(f).forEach(c=>{let h=f[c];i[s][c]=o(h),i[s][c].raw=a(h)})}),r.exports=i}),R8=re((e,r)=>{"use strict";ee();var t=(h,u)=>(...d)=>`\x1B[${h(...d)+u}m`,n=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};5;${p}m`},i=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};2;${p[0]};${p[1]};${p[2]}m`},l=h=>h,a=(h,u,d)=>[h,u,d],o=(h,u,d)=>{Object.defineProperty(h,u,{get:()=>{let p=d();return Object.defineProperty(h,u,{value:p,enumerable:!0,configurable:!0}),p},enumerable:!0,configurable:!0})},s,f=(h,u,d,p)=>{s===void 0&&(s=EB());let y=p?10:0,b={};for(let[_,g]of Object.entries(s)){let S=_==="ansi16"?"ansi":_;_===u?b[S]=h(d,y):typeof g=="object"&&(b[S]=h(g[u],y))}return b};function c(){let h=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.gray=u.color.blackBright,u.bgColor.bgGray=u.bgColor.bgBlackBright,u.color.grey=u.color.blackBright,u.bgColor.bgGrey=u.bgColor.bgBlackBright;for(let[d,p]of Object.entries(u)){for(let[y,b]of Object.entries(p))u[y]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},p[y]=u[y],h.set(b[0],b[1]);Object.defineProperty(u,d,{value:p,enumerable:!1})}return Object.defineProperty(u,"codes",{value:h,enumerable:!1}),u.color.close="\x1B[39m",u.bgColor.close="\x1B[49m",o(u.color,"ansi",()=>f(t,"ansi16",l,!1)),o(u.color,"ansi256",()=>f(n,"ansi256",l,!1)),o(u.color,"ansi16m",()=>f(i,"rgb",a,!1)),o(u.bgColor,"ansi",()=>f(t,"ansi16",l,!0)),o(u.bgColor,"ansi256",()=>f(n,"ansi256",l,!0)),o(u.bgColor,"ansi16m",()=>f(i,"rgb",a,!0)),u}Object.defineProperty(r,"exports",{enumerable:!0,get:c})}),SB=re((e,r)=>{"use strict";ee(),r.exports=(t,n=process.argv)=>{let i=t.startsWith("-")?"":t.length===1?"-":"--",l=n.indexOf(i+t),a=n.indexOf("--");return l!==-1&&(a===-1||l<a)}}),O8=re((e,r)=>{"use strict";ee();var t=fe("os"),n=fe("tty"),i=SB(),{env:l}=process,a;i("no-color")||i("no-colors")||i("color=false")||i("color=never")?a=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(a=1),"FORCE_COLOR"in l&&(l.FORCE_COLOR==="true"?a=1:l.FORCE_COLOR==="false"?a=0:a=l.FORCE_COLOR.length===0?1:Math.min(parseInt(l.FORCE_COLOR,10),3));function o(c){return c===0?!1:{level:c,hasBasic:!0,has256:c>=2,has16m:c>=3}}function s(c,h){if(a===0)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(c&&!h&&a===void 0)return 0;let u=a||0;if(l.TERM==="dumb")return u;if(process.platform==="win32"){let d=t.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in l)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in l)||l.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in l)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION)?1:0;if(l.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in l){let d=parseInt((l.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(l.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)||"COLORTERM"in l?1:u}function f(c){let h=s(c,c&&c.isTTY);return o(h)}r.exports={supportsColor:f,stdout:o(s(!0,n.isatty(1))),stderr:o(s(!0,n.isatty(2)))}}),xB=re((e,r)=>{"use strict";ee();var t=(i,l,a)=>{let o=i.indexOf(l);if(o===-1)return i;let s=l.length,f=0,c="";do c+=i.substr(f,o-f)+l+a,f=o+s,o=i.indexOf(l,f);while(o!==-1);return c+=i.substr(f),c},n=(i,l,a,o)=>{let s=0,f="";do{let c=i[o-1]==="\r";f+=i.substr(s,(c?o-1:o)-s)+l+(c?`\r
|
|
58
|
+
`:`
|
|
59
|
+
`)+a,s=o+1,o=i.indexOf(`
|
|
60
|
+
`,s)}while(o!==-1);return f+=i.substr(s),f};r.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}}),AB=re((e,r)=>{"use strict";ee();var t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,l=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
|
61
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function s(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(l,(g,S,E)=>S?o(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=s(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function c(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(o(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:c(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(c(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),CB=re((e,r)=>{"use strict";ee();var t=R8(),{stdout:n,stderr:i}=O8(),{stringReplaceAll:l,stringEncaseCRLFWithFirstIndex:a}=xB(),o=["ansi","ansi","ansi256","ansi16m"],s=Object.create(null),f=(v,m={})=>{if(m.level>3||m.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let w=n?n.level:0;v.level=m.level===void 0?w:m.level},c=class{constructor(v){return h(v)}},h=v=>{let m={};return f(m,v),m.template=(...w)=>S(m.template,...w),Object.setPrototypeOf(m,u.prototype),Object.setPrototypeOf(m.template,m),m.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},m.template.Instance=c,m.template};function u(v){return h(v)}for(let[v,m]of Object.entries(t))s[v]={get(){let w=b(this,y(m.open,m.close,this._styler),this._isEmpty);return Object.defineProperty(this,v,{value:w}),w}};s.visible={get(){let v=b(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:v}),v}};var d=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let v of d)s[v]={get(){let{level:m}=this;return function(...w){let x=y(t.color[o[m]][v](...w),t.color.close,this._styler);return b(this,x,this._isEmpty)}}};for(let v of d){let m="bg"+v[0].toUpperCase()+v.slice(1);s[m]={get(){let{level:w}=this;return function(...x){let A=y(t.bgColor[o[w]][v](...x),t.bgColor.close,this._styler);return b(this,A,this._isEmpty)}}}}var p=Object.defineProperties(()=>{},{...s,level:{enumerable:!0,get(){return this._generator.level},set(v){this._generator.level=v}}}),y=(v,m,w)=>{let x,A;return w===void 0?(x=v,A=m):(x=w.openAll+v,A=m+w.closeAll),{open:v,close:m,openAll:x,closeAll:A,parent:w}},b=(v,m,w)=>{let x=(...A)=>_(x,A.length===1?""+A[0]:A.join(" "));return x.__proto__=p,x._generator=v,x._styler=m,x._isEmpty=w,x},_=(v,m)=>{if(v.level<=0||!m)return v._isEmpty?"":m;let w=v._styler;if(w===void 0)return m;let{openAll:x,closeAll:A}=w;if(m.indexOf("\x1B")!==-1)for(;w!==void 0;)m=l(m,w.close,w.open),w=w.parent;let R=m.indexOf(`
|
|
62
|
+
`);return R!==-1&&(m=a(m,A,x,R)),x+m+A},g,S=(v,...m)=>{let[w]=m;if(!Array.isArray(w))return m.join(" ");let x=m.slice(1),A=[w.raw[0]];for(let R=1;R<w.length;R++)A.push(String(x[R-1]).replace(/[{}\\]/g,"\\$&"),String(w.raw[R]));return g===void 0&&(g=AB()),g(v,A.join(""))};Object.defineProperties(u.prototype,s);var E=u();E.supportsColor=n,E.stderr=u({level:i?i.level:0}),E.stderr.supportsColor=i,E.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},r.exports=E}),kB=re((e,r)=>{"use strict";ee();var t=A8(),n=C8();r.exports=t(()=>{n(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})}),DB=re(e=>{"use strict";ee();var r=kB(),t=!1;e.show=(n=process.stderr)=>{!n.isTTY||(t=!1,n.write("\x1B[?25h"))},e.hide=(n=process.stderr)=>{!n.isTTY||(r(),t=!0,n.write("\x1B[?25l"))},e.toggle=(n,i)=>{n!==void 0&&(t=n),t?e.show(i):e.hide(i)}}),RB=re((e,r)=>{r.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}}),OB=re((e,r)=>{"use strict";ee();var t=Object.assign({},RB()),n=Object.keys(t);Object.defineProperty(t,"random",{get(){let i=Math.floor(Math.random()*n.length),l=n[i];return t[l]}}),r.exports=t}),TB=re((e,r)=>{"use strict";ee();var t=Ho(),n=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",i={info:t.blue("\u2139"),success:t.green("\u2714"),warning:t.yellow("\u26A0"),error:t.red("\u2716")},l={info:t.blue("i"),success:t.green("\u221A"),warning:t.yellow("\u203C"),error:t.red("\xD7")};r.exports=n?i:l}),FB=re((e,r)=>{"use strict";ee(),r.exports=({onlyFirst:t=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,t?void 0:"g")}}),PB=re((e,r)=>{"use strict";ee();var t=FB();r.exports=n=>typeof n=="string"?n.replace(t(),""):n}),BB=re((e,r)=>{ee();var t=function(){"use strict";function n(f,c,h,u){var d;typeof c=="object"&&(h=c.depth,u=c.prototype,d=c.filter,c=c.circular);var p=[],y=[],b=typeof Buffer<"u";typeof c>"u"&&(c=!0),typeof h>"u"&&(h=1/0);function _(g,S){if(g===null)return null;if(S==0)return g;var E,v;if(typeof g!="object")return g;if(n.__isArray(g))E=[];else if(n.__isRegExp(g))E=new RegExp(g.source,s(g)),g.lastIndex&&(E.lastIndex=g.lastIndex);else if(n.__isDate(g))E=new Date(g.getTime());else{if(b&&Buffer.isBuffer(g))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(g.length):E=new Buffer(g.length),g.copy(E),E;typeof u>"u"?(v=Object.getPrototypeOf(g),E=Object.create(v)):(E=Object.create(u),v=u)}if(c){var m=p.indexOf(g);if(m!=-1)return y[m];p.push(g),y.push(E)}for(var w in g){var x;v&&(x=Object.getOwnPropertyDescriptor(v,w)),!(x&&x.set==null)&&(E[w]=_(g[w],S-1))}return E}return _(f,h)}n.clonePrototype=function(f){if(f===null)return null;var c=function(){};return c.prototype=f,new c};function i(f){return Object.prototype.toString.call(f)}n.__objToStr=i;function l(f){return typeof f=="object"&&i(f)==="[object Date]"}n.__isDate=l;function a(f){return typeof f=="object"&&i(f)==="[object Array]"}n.__isArray=a;function o(f){return typeof f=="object"&&i(f)==="[object RegExp]"}n.__isRegExp=o;function s(f){var c="";return f.global&&(c+="g"),f.ignoreCase&&(c+="i"),f.multiline&&(c+="m"),c}return n.__getRegExpFlags=s,n}();typeof r=="object"&&r.exports&&(r.exports=t)}),IB=re((e,r)=>{ee();var t=BB();r.exports=function(n,i){return n=n||{},Object.keys(i).forEach(function(l){typeof n[l]>"u"&&(n[l]=t(i[l]))}),n}}),LB=re((e,r)=>{ee(),r.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]}),MB=re((e,r)=>{"use strict";ee();var t=IB(),n=LB(),i={nul:0,control:0};r.exports=function(s){return l(s,i)},r.exports.config=function(s){return s=t(s||{},i),function(f){return l(f,s)}};function l(s,f){if(typeof s!="string")return a(s,f);for(var c=0,h=0;h<s.length;h++){var u=a(s.charCodeAt(h),f);if(u<0)return-1;c+=u}return c}function a(s,f){return s===0?f.nul:s<32||s>=127&&s<160?f.control:o(s)?0:1+(s>=4352&&(s<=4447||s==9001||s==9002||s>=11904&&s<=42191&&s!=12351||s>=44032&&s<=55203||s>=63744&&s<=64255||s>=65040&&s<=65049||s>=65072&&s<=65135||s>=65280&&s<=65376||s>=65504&&s<=65510||s>=131072&&s<=196605||s>=196608&&s<=262141))}function o(s){var f=0,c=n.length-1,h;if(s<n[0][0]||s>n[c][1])return!1;for(;c>=f;)if(h=Math.floor((f+c)/2),s>n[h][1])f=h+1;else if(s<n[h][0])c=h-1;else return!0;return!1}}),NB=re((e,r)=>{"use strict";ee(),r.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}),jB=re((e,r)=>{ee();var t=fe("stream");r.exports=n;function n(s){t.apply(this),s=s||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=s.replace,this._prompt=s.prompt||null,this._hadControl=!1}n.prototype=Object.create(t.prototype),Object.defineProperty(n.prototype,"constructor",{value:n,enumerable:!1}),n.prototype.mute=function(){this.muted=!0},n.prototype.unmute=function(){this.muted=!1},Object.defineProperty(n.prototype,"_onpipe",{value:i,enumerable:!1,writable:!0,configurable:!0});function i(s){this._src=s}Object.defineProperty(n.prototype,"isTTY",{get:l,set:a,enumerable:!0,configurable:!0});function l(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function a(s){Object.defineProperty(this,"isTTY",{value:s,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(n.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),n.prototype.pipe=function(s,f){return this._dest=s,t.prototype.pipe.call(this,s,f)},n.prototype.pause=function(){if(this._src)return this._src.pause()},n.prototype.resume=function(){if(this._src)return this._src.resume()},n.prototype.write=function(s){if(this.muted){if(!this.replace)return!0;if(s.match(/^\u001b/))return s.indexOf(this._prompt)===0&&(s=s.substr(this._prompt.length),s=s.replace(/./g,this.replace),s=this._prompt+s),this._hadControl=!0,this.emit("data",s);this._prompt&&this._hadControl&&s.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),s=s.substr(this._prompt.length)),s=s.toString().replace(/./g,this.replace)}this.emit("data",s)},n.prototype.end=function(s){this.muted&&(s&&this.replace?s=s.toString().replace(/./g,this.replace):s=null),s&&this.emit("data",s),this.emit("end")};function o(s){return function(){var f=this._dest,c=this._src;f&&f[s]&&f[s].apply(f,arguments),c&&c[s]&&c[s].apply(c,arguments)}}n.prototype.destroy=o("destroy"),n.prototype.destroySoon=o("destroySoon"),n.prototype.close=o("close")}),$B=re((e,r)=>{"use strict";ee();var t=fe("readline"),n=CB(),i=DB(),l=OB(),a=TB(),o=PB(),s=MB(),f=NB(),c=jB(),h=Symbol("text"),u=Symbol("prefixText"),d=3,p=class{constructor(){this.requests=0,this.mutedStream=new c,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let g=this;this.ourEmit=function(S,E,...v){let{stdin:m}=process;if(g.requests>0||m.emit===g.ourEmit){if(S==="keypress")return;S==="data"&&E.includes(d)&&process.emit("SIGINT"),Reflect.apply(g.oldEmit,this,[S,E,...v])}else Reflect.apply(process.stdin.emit,this,[S,E,...v])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=t.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},y,b=class{constructor(g){y||(y=new p),typeof g=="string"&&(g={text:g}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...g},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:f({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(g=0){if(!(g>=0&&Number.isInteger(g)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=g}_updateInterval(g){g!==void 0&&(this.interval=g)}get spinner(){return this._spinner}set spinner(g){if(this.frameIndex=0,typeof g=="object"){if(g.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=g}else if(process.platform==="win32")this._spinner=l.line;else if(g===void 0)this._spinner=l.dots;else if(l[g])this._spinner=l[g];else throw new Error(`There is no built-in spinner named '${g}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[h]}get prefixText(){return this[u]}get isSpinning(){return this.id!==void 0}updateLineCount(){let g=this.stream.columns||80,S=typeof this[u]=="string"?this[u]+"-":"";this.lineCount=o(S+"--"+this[h]).split(`
|
|
63
|
+
`).reduce((E,v)=>E+Math.max(1,Math.ceil(s(v)/g)),0)}set text(g){this[h]=g,this.updateLineCount()}set prefixText(g){this[u]=g,this.updateLineCount()}frame(){let{frames:g}=this.spinner,S=g[this.frameIndex];this.color&&(S=n[this.color](S)),this.frameIndex=++this.frameIndex%g.length;let E=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",v=typeof this.text=="string"?" "+this.text:"";return E+S+v}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let g=0;g<this.linesToClear;g++)g>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(g){return g&&(this.text=g),this.isEnabled?this.isSpinning?this:(this.hideCursor&&i.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,y.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
64
|
+
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&i.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(y.stop(),this.isDiscardingStdin=!1),this):this}succeed(g){return this.stopAndPersist({symbol:a.success,text:g})}fail(g){return this.stopAndPersist({symbol:a.error,text:g})}warn(g){return this.stopAndPersist({symbol:a.warning,text:g})}info(g){return this.stopAndPersist({symbol:a.info,text:g})}stopAndPersist(g={}){let S=g.prefixText||this.prefixText,E=typeof S=="string"&&S!==""?S+" ":"",v=g.text||this.text,m=typeof v=="string"?" "+v:"";return this.stop(),this.stream.write(`${E}${g.symbol||" "}${m}
|
|
65
|
+
`),this}},_=function(g){return new b(g)};r.exports=_,r.exports.promise=(g,S)=>{if(typeof g.then!="function")throw new TypeError("Parameter `action` must be a Promise");let E=new b(S);return E.start(),(async()=>{try{await g,E.succeed()}catch{E.fail()}})(),E}}),HB=re((e,r)=>{"use strict";ee();var t=(i,l,a)=>{let o=i.indexOf(l);if(o===-1)return i;let s=l.length,f=0,c="";do c+=i.substr(f,o-f)+l+a,f=o+s,o=i.indexOf(l,f);while(o!==-1);return c+=i.substr(f),c},n=(i,l,a,o)=>{let s=0,f="";do{let c=i[o-1]==="\r";f+=i.substr(s,(c?o-1:o)-s)+l+(c?`\r
|
|
66
|
+
`:`
|
|
67
|
+
`)+a,s=o+1,o=i.indexOf(`
|
|
68
|
+
`,s)}while(o!==-1);return f+=i.substr(s),f};r.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}}),qB=re((e,r)=>{"use strict";ee();var t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,l=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
|
69
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function s(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(l,(g,S,E)=>S?o(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=s(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function c(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(o(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:c(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(c(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),UB=re((e,r)=>{"use strict";ee();var t=R8(),{stdout:n,stderr:i}=O8(),{stringReplaceAll:l,stringEncaseCRLFWithFirstIndex:a}=HB(),{isArray:o}=Array,s=["ansi","ansi","ansi256","ansi16m"],f=Object.create(null),c=(m,w={})=>{if(w.level&&!(Number.isInteger(w.level)&&w.level>=0&&w.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let x=n?n.level:0;m.level=w.level===void 0?x:w.level},h=class{constructor(m){return u(m)}},u=m=>{let w={};return c(w,m),w.template=(...x)=>E(w.template,...x),Object.setPrototypeOf(w,d.prototype),Object.setPrototypeOf(w.template,w),w.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},w.template.Instance=h,w.template};function d(m){return u(m)}for(let[m,w]of Object.entries(t))f[m]={get(){let x=_(this,b(w.open,w.close,this._styler),this._isEmpty);return Object.defineProperty(this,m,{value:x}),x}};f.visible={get(){let m=_(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:m}),m}};var p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let m of p)f[m]={get(){let{level:w}=this;return function(...x){let A=b(t.color[s[w]][m](...x),t.color.close,this._styler);return _(this,A,this._isEmpty)}}};for(let m of p){let w="bg"+m[0].toUpperCase()+m.slice(1);f[w]={get(){let{level:x}=this;return function(...A){let R=b(t.bgColor[s[x]][m](...A),t.bgColor.close,this._styler);return _(this,R,this._isEmpty)}}}}var y=Object.defineProperties(()=>{},{...f,level:{enumerable:!0,get(){return this._generator.level},set(m){this._generator.level=m}}}),b=(m,w,x)=>{let A,R;return x===void 0?(A=m,R=w):(A=x.openAll+m,R=w+x.closeAll),{open:m,close:w,openAll:A,closeAll:R,parent:x}},_=(m,w,x)=>{let A=(...R)=>o(R[0])&&o(R[0].raw)?g(A,E(A,...R)):g(A,R.length===1?""+R[0]:R.join(" "));return Object.setPrototypeOf(A,y),A._generator=m,A._styler=w,A._isEmpty=x,A},g=(m,w)=>{if(m.level<=0||!w)return m._isEmpty?"":w;let x=m._styler;if(x===void 0)return w;let{openAll:A,closeAll:R}=x;if(w.indexOf("\x1B")!==-1)for(;x!==void 0;)w=l(w,x.close,x.open),x=x.parent;let B=w.indexOf(`
|
|
70
|
+
`);return B!==-1&&(w=a(w,R,A,B)),A+w+R},S,E=(m,...w)=>{let[x]=w;if(!o(x)||!o(x.raw))return w.join(" ");let A=w.slice(1),R=[x.raw[0]];for(let B=1;B<x.length;B++)R.push(String(A[B-1]).replace(/[{}\\]/g,"\\$&"),String(x.raw[B]));return S===void 0&&(S=qB()),S(m,R.join(""))};Object.defineProperties(d.prototype,f);var v=d();v.supportsColor=n,v.stderr=d({level:i?i.level:0}),v.stderr.supportsColor=i,r.exports=v}),GB=re((e,r)=>{ee(),function(t){var n=/^\s+/,i=/\s+$/,l=0,a=t.round,o=t.min,s=t.max,f=t.random;function c(T,q){if(T=T||"",q=q||{},T instanceof c)return T;if(!(this instanceof c))return new c(T,q);var C=h(T);this._originalInput=T,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=a(100*this._a)/100,this._format=q.format||C.format,this._gradientType=q.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=C.ok,this._tc_id=l++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var T=this.toRgb();return(T.r*299+T.g*587+T.b*114)/1e3},getLuminance:function(){var T=this.toRgb(),q,C,H,X,ie,me;return q=T.r/255,C=T.g/255,H=T.b/255,q<=.03928?X=q/12.92:X=t.pow((q+.055)/1.055,2.4),C<=.03928?ie=C/12.92:ie=t.pow((C+.055)/1.055,2.4),H<=.03928?me=H/12.92:me=t.pow((H+.055)/1.055,2.4),.2126*X+.7152*ie+.0722*me},setAlpha:function(T){return this._a=se(T),this._roundA=a(100*this._a)/100,this},toHsv:function(){var T=y(this._r,this._g,this._b);return{h:T.h*360,s:T.s,v:T.v,a:this._a}},toHsvString:function(){var T=y(this._r,this._g,this._b),q=a(T.h*360),C=a(T.s*100),H=a(T.v*100);return this._a==1?"hsv("+q+", "+C+"%, "+H+"%)":"hsva("+q+", "+C+"%, "+H+"%, "+this._roundA+")"},toHsl:function(){var T=d(this._r,this._g,this._b);return{h:T.h*360,s:T.s,l:T.l,a:this._a}},toHslString:function(){var T=d(this._r,this._g,this._b),q=a(T.h*360),C=a(T.s*100),H=a(T.l*100);return this._a==1?"hsl("+q+", "+C+"%, "+H+"%)":"hsla("+q+", "+C+"%, "+H+"%, "+this._roundA+")"},toHex:function(T){return _(this._r,this._g,this._b,T)},toHexString:function(T){return"#"+this.toHex(T)},toHex8:function(T){return g(this._r,this._g,this._b,this._a,T)},toHex8String:function(T){return"#"+this.toHex8(T)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(I(this._r,255)*100)+"%",g:a(I(this._g,255)*100)+"%",b:a(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(I(this._r,255)*100)+"%, "+a(I(this._g,255)*100)+"%, "+a(I(this._b,255)*100)+"%)":"rgba("+a(I(this._r,255)*100)+"%, "+a(I(this._g,255)*100)+"%, "+a(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:U[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(T){var q="#"+S(this._r,this._g,this._b,this._a),C=q,H=this._gradientType?"GradientType = 1, ":"";if(T){var X=c(T);C="#"+S(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+H+"startColorstr="+q+",endColorstr="+C+")"},toString:function(T){var q=!!T;T=T||this._format;var C=!1,H=this._a<1&&this._a>=0,X=!q&&H&&(T==="hex"||T==="hex6"||T==="hex3"||T==="hex4"||T==="hex8"||T==="name");return X?T==="name"&&this._a===0?this.toName():this.toRgbString():(T==="rgb"&&(C=this.toRgbString()),T==="prgb"&&(C=this.toPercentageRgbString()),(T==="hex"||T==="hex6")&&(C=this.toHexString()),T==="hex3"&&(C=this.toHexString(!0)),T==="hex4"&&(C=this.toHex8String(!0)),T==="hex8"&&(C=this.toHex8String()),T==="name"&&(C=this.toName()),T==="hsl"&&(C=this.toHslString()),T==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(T,q){var C=T.apply(null,[this].concat([].slice.call(q)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(R,arguments)},_applyCombination:function(T,q){return T.apply(null,[this].concat([].slice.call(q)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(B,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},c.fromRatio=function(T,q){if(typeof T=="object"){var C={};for(var H in T)T.hasOwnProperty(H)&&(H==="a"?C[H]=T[H]:C[H]=j(T[H]));T=C}return c(T,q)};function h(T){var q={r:0,g:0,b:0},C=1,H=null,X=null,ie=null,me=!1,ae=!1;return typeof T=="string"&&(T=Y(T)),typeof T=="object"&&(ue(T.r)&&ue(T.g)&&ue(T.b)?(q=u(T.r,T.g,T.b),me=!0,ae=String(T.r).substr(-1)==="%"?"prgb":"rgb"):ue(T.h)&&ue(T.s)&&ue(T.v)?(H=j(T.s),X=j(T.v),q=b(T.h,H,X),me=!0,ae="hsv"):ue(T.h)&&ue(T.s)&&ue(T.l)&&(H=j(T.s),ie=j(T.l),q=p(T.h,H,ie),me=!0,ae="hsl"),T.hasOwnProperty("a")&&(C=T.a)),C=se(C),{ok:me,format:T.format||ae,r:o(255,s(q.r,0)),g:o(255,s(q.g,0)),b:o(255,s(q.b,0)),a:C}}function u(T,q,C){return{r:I(T,255)*255,g:I(q,255)*255,b:I(C,255)*255}}function d(T,q,C){T=I(T,255),q=I(q,255),C=I(C,255);var H=s(T,q,C),X=o(T,q,C),ie,me,ae=(H+X)/2;if(H==X)ie=me=0;else{var pe=H-X;switch(me=ae>.5?pe/(2-H-X):pe/(H+X),H){case T:ie=(q-C)/pe+(q<C?6:0);break;case q:ie=(C-T)/pe+2;break;case C:ie=(T-q)/pe+4;break}ie/=6}return{h:ie,s:me,l:ae}}function p(T,q,C){var H,X,ie;T=I(T,360),q=I(q,100),C=I(C,100);function me(oe,ge,Ee){return Ee<0&&(Ee+=1),Ee>1&&(Ee-=1),Ee<1/6?oe+(ge-oe)*6*Ee:Ee<1/2?ge:Ee<2/3?oe+(ge-oe)*(2/3-Ee)*6:oe}if(q===0)H=X=ie=C;else{var ae=C<.5?C*(1+q):C+q-C*q,pe=2*C-ae;H=me(pe,ae,T+1/3),X=me(pe,ae,T),ie=me(pe,ae,T-1/3)}return{r:H*255,g:X*255,b:ie*255}}function y(T,q,C){T=I(T,255),q=I(q,255),C=I(C,255);var H=s(T,q,C),X=o(T,q,C),ie,me,ae=H,pe=H-X;if(me=H===0?0:pe/H,H==X)ie=0;else{switch(H){case T:ie=(q-C)/pe+(q<C?6:0);break;case q:ie=(C-T)/pe+2;break;case C:ie=(T-q)/pe+4;break}ie/=6}return{h:ie,s:me,v:ae}}function b(T,q,C){T=I(T,360)*6,q=I(q,100),C=I(C,100);var H=t.floor(T),X=T-H,ie=C*(1-q),me=C*(1-X*q),ae=C*(1-(1-X)*q),pe=H%6,oe=[C,me,ie,ie,ae,C][pe],ge=[ae,C,C,me,ie,ie][pe],Ee=[ie,ie,ae,C,C,me][pe];return{r:oe*255,g:ge*255,b:Ee*255}}function _(T,q,C,H){var X=[J(a(T).toString(16)),J(a(q).toString(16)),J(a(C).toString(16))];return H&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0):X.join("")}function g(T,q,C,H,X){var ie=[J(a(T).toString(16)),J(a(q).toString(16)),J(a(C).toString(16)),J(z(H))];return X&&ie[0].charAt(0)==ie[0].charAt(1)&&ie[1].charAt(0)==ie[1].charAt(1)&&ie[2].charAt(0)==ie[2].charAt(1)&&ie[3].charAt(0)==ie[3].charAt(1)?ie[0].charAt(0)+ie[1].charAt(0)+ie[2].charAt(0)+ie[3].charAt(0):ie.join("")}function S(T,q,C,H){var X=[J(z(H)),J(a(T).toString(16)),J(a(q).toString(16)),J(a(C).toString(16))];return X.join("")}c.equals=function(T,q){return!T||!q?!1:c(T).toRgbString()==c(q).toRgbString()},c.random=function(){return c.fromRatio({r:f(),g:f(),b:f()})};function E(T,q){q=q===0?0:q||10;var C=c(T).toHsl();return C.s-=q/100,C.s=N(C.s),c(C)}function v(T,q){q=q===0?0:q||10;var C=c(T).toHsl();return C.s+=q/100,C.s=N(C.s),c(C)}function m(T){return c(T).desaturate(100)}function w(T,q){q=q===0?0:q||10;var C=c(T).toHsl();return C.l+=q/100,C.l=N(C.l),c(C)}function x(T,q){q=q===0?0:q||10;var C=c(T).toRgb();return C.r=s(0,o(255,C.r-a(255*-(q/100)))),C.g=s(0,o(255,C.g-a(255*-(q/100)))),C.b=s(0,o(255,C.b-a(255*-(q/100)))),c(C)}function A(T,q){q=q===0?0:q||10;var C=c(T).toHsl();return C.l-=q/100,C.l=N(C.l),c(C)}function R(T,q){var C=c(T).toHsl(),H=(C.h+q)%360;return C.h=H<0?360+H:H,c(C)}function B(T){var q=c(T).toHsl();return q.h=(q.h+180)%360,c(q)}function P(T){var q=c(T).toHsl(),C=q.h;return[c(T),c({h:(C+120)%360,s:q.s,l:q.l}),c({h:(C+240)%360,s:q.s,l:q.l})]}function O(T){var q=c(T).toHsl(),C=q.h;return[c(T),c({h:(C+90)%360,s:q.s,l:q.l}),c({h:(C+180)%360,s:q.s,l:q.l}),c({h:(C+270)%360,s:q.s,l:q.l})]}function D(T){var q=c(T).toHsl(),C=q.h;return[c(T),c({h:(C+72)%360,s:q.s,l:q.l}),c({h:(C+216)%360,s:q.s,l:q.l})]}function k(T,q,C){q=q||6,C=C||30;var H=c(T).toHsl(),X=360/C,ie=[c(T)];for(H.h=(H.h-(X*q>>1)+720)%360;--q;)H.h=(H.h+X)%360,ie.push(c(H));return ie}function M(T,q){q=q||6;for(var C=c(T).toHsv(),H=C.h,X=C.s,ie=C.v,me=[],ae=1/q;q--;)me.push(c({h:H,s:X,v:ie})),ie=(ie+ae)%1;return me}c.mix=function(T,q,C){C=C===0?0:C||50;var H=c(T).toRgb(),X=c(q).toRgb(),ie=C/100,me={r:(X.r-H.r)*ie+H.r,g:(X.g-H.g)*ie+H.g,b:(X.b-H.b)*ie+H.b,a:(X.a-H.a)*ie+H.a};return c(me)},c.readability=function(T,q){var C=c(T),H=c(q);return(t.max(C.getLuminance(),H.getLuminance())+.05)/(t.min(C.getLuminance(),H.getLuminance())+.05)},c.isReadable=function(T,q,C){var H=c.readability(T,q),X,ie;switch(ie=!1,X=ne(C),X.level+X.size){case"AAsmall":case"AAAlarge":ie=H>=4.5;break;case"AAlarge":ie=H>=3;break;case"AAAsmall":ie=H>=7;break}return ie},c.mostReadable=function(T,q,C){var H=null,X=0,ie,me,ae,pe;C=C||{},me=C.includeFallbackColors,ae=C.level,pe=C.size;for(var oe=0;oe<q.length;oe++)ie=c.readability(T,q[oe]),ie>X&&(X=ie,H=c(q[oe]));return c.isReadable(T,H,{level:ae,size:pe})||!me?H:(C.includeFallbackColors=!1,c.mostReadable(T,["#fff","#000"],C))};var L=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},U=c.hexNames=W(L);function W(T){var q={};for(var C in T)T.hasOwnProperty(C)&&(q[T[C]]=C);return q}function se(T){return T=parseFloat(T),(isNaN(T)||T<0||T>1)&&(T=1),T}function I(T,q){V(T)&&(T="100%");var C=G(T);return T=o(q,s(0,parseFloat(T))),C&&(T=parseInt(T*q,10)/100),t.abs(T-q)<1e-6?1:T%q/parseFloat(q)}function N(T){return o(1,s(0,T))}function F(T){return parseInt(T,16)}function V(T){return typeof T=="string"&&T.indexOf(".")!=-1&&parseFloat(T)===1}function G(T){return typeof T=="string"&&T.indexOf("%")!=-1}function J(T){return T.length==1?"0"+T:""+T}function j(T){return T<=1&&(T=T*100+"%"),T}function z(T){return t.round(parseFloat(T)*255).toString(16)}function Q(T){return F(T)/255}var le=function(){var T="[-\\+]?\\d+%?",q="[-\\+]?\\d*\\.\\d+%?",C="(?:"+q+")|(?:"+T+")",H="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",X="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ue(T){return!!le.CSS_UNIT.exec(T)}function Y(T){T=T.replace(n,"").replace(i,"").toLowerCase();var q=!1;if(L[T])T=L[T],q=!0;else if(T=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=le.rgb.exec(T))?{r:C[1],g:C[2],b:C[3]}:(C=le.rgba.exec(T))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=le.hsl.exec(T))?{h:C[1],s:C[2],l:C[3]}:(C=le.hsla.exec(T))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=le.hsv.exec(T))?{h:C[1],s:C[2],v:C[3]}:(C=le.hsva.exec(T))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=le.hex8.exec(T))?{r:F(C[1]),g:F(C[2]),b:F(C[3]),a:Q(C[4]),format:q?"name":"hex8"}:(C=le.hex6.exec(T))?{r:F(C[1]),g:F(C[2]),b:F(C[3]),format:q?"name":"hex"}:(C=le.hex4.exec(T))?{r:F(C[1]+""+C[1]),g:F(C[2]+""+C[2]),b:F(C[3]+""+C[3]),a:Q(C[4]+""+C[4]),format:q?"name":"hex8"}:(C=le.hex3.exec(T))?{r:F(C[1]+""+C[1]),g:F(C[2]+""+C[2]),b:F(C[3]+""+C[3]),format:q?"name":"hex"}:!1}function ne(T){var q,C;return T=T||{level:"AA",size:"small"},q=(T.level||"AA").toUpperCase(),C=(T.size||"small").toLowerCase(),q!=="AA"&&q!=="AAA"&&(q="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:q,size:C}}typeof r<"u"&&r.exports?r.exports=c:typeof define=="function"&&define.amd?define(function(){return c}):window.tinycolor=c}(Math)}),WB=re((e,r)=>{ee();var t=GB(),n={r:256,g:256,b:256,a:1},i={h:360,s:1,v:1,a:1};function l(u,d,p){let y={};for(let b in u)u.hasOwnProperty(b)&&(y[b]=p===0?0:(d[b]-u[b])/p);return y}function a(u,d,p,y){let b={};for(let _ in d)d.hasOwnProperty(_)&&(b[_]=u[_]*p+d[_],b[_]=b[_]<0?b[_]+y[_]:y[_]!==1?b[_]%y[_]:b[_]);return b}function o(u,d,p){let y=u.color.toRgb(),b=d.color.toRgb(),_=l(y,b,p),g=[u.color];for(let S=1;S<p;S++){let E=a(_,y,S,n);g.push(t(E))}return g}function s(u,d,p,y){let b=u.color.toHsv(),_=d.color.toHsv();if(b.s===0||_.s===0)return o(u,d,p);let g;if(typeof y=="boolean")g=y;else{let m=b.h<_.h&&_.h-b.h<180||b.h>_.h&&b.h-_.h>180;g=y==="long"&&m||y==="short"&&!m}let S=l(b,_,p),E=[u.color],v;b.h<=_.h&&!g||b.h>=_.h&&g?v=_.h-b.h:g?v=360-_.h+b.h:v=360-b.h+_.h,S.h=Math.pow(-1,g?1:0)*Math.abs(v)/p;for(let m=1;m<p;m++){let w=a(S,b,m,i);E.push(t(w))}return E}function f(u,d){let p=u.length;if(d=parseInt(d,10),isNaN(d)||d<2)throw new Error("Invalid number of steps (< 2)");if(d<p)throw new Error("Number of steps cannot be inferior to number of stops");let y=[];for(let _=1;_<p;_++){let g=(d-1)*(u[_].pos-u[_-1].pos);y.push(Math.max(1,Math.round(g)))}let b=1;for(let _=p-1;_--;)b+=y[_];for(;b!==d;)if(b<d){let _=Math.min.apply(null,y);y[y.indexOf(_)]++,b++}else{let _=Math.max.apply(null,y);y[y.indexOf(_)]--,b--}return y}function c(u,d,p,y){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,_;for(let E=0,v=u.length;E<v-1;E++)if(d>=u[E].pos&&d<u[E+1].pos){b=u[E],_=u[E+1];break}b||(b=_=u[u.length-1]);let g=l(b.color[p](),_.color[p](),(_.pos-b.pos)*100),S=a(g,b.color[p](),(d-b.pos)*100,y);return t(S)}var h=class{constructor(u){if(u.length<2)throw new Error("Invalid number of stops (< 2)");let d=u[0].pos!==void 0,p=u.length,y=-1,b=!1;this.stops=u.map((_,g)=>{let S=_.pos!==void 0;if(d^S)throw new Error("Cannot mix positionned and not posionned color stops");if(S){let E=_.color!==void 0;if(!E&&(b||g===0||g===p-1))throw new Error("Cannot define two consecutive position-only stops");if(b=!E,_={color:E?t(_.color):null,colorLess:!E,pos:_.pos},_.pos<0||_.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(_.pos<y)throw new Error("Color stops positions are not ordered");y=_.pos}else _={color:t(_.color!==void 0?_.color:_),pos:g/(p-1)};return _}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),p++),this.stops[p-1].pos!==1&&this.stops.push({color:this.stops[p-1].color,pos:1})}reverse(){let u=[];return this.stops.forEach(function(d){u.push({color:d.color,pos:1-d.pos})}),new h(u.reverse())}loop(){let u=[],d=[];return this.stops.forEach(p=>{u.push({color:p.color,pos:p.pos/2})}),this.stops.slice(0,-1).forEach(p=>{d.push({color:p.color,pos:1-p.pos/2})}),new h(u.concat(d.reverse()))}rgb(u){let d=f(this.stops,u),p=[];this.stops.forEach((y,b)=>{y.colorLess&&(y.color=o(this.stops[b-1],this.stops[b+1],2)[1])});for(let y=0,b=this.stops.length;y<b-1;y++){let _=o(this.stops[y],this.stops[y+1],d[y]);p.splice(p.length,0,..._)}return p.push(this.stops[this.stops.length-1].color),p}hsv(u,d){let p=f(this.stops,u),y=[];this.stops.forEach((b,_)=>{b.colorLess&&(b.color=s(this.stops[_-1],this.stops[_+1],2,d)[1])});for(let b=0,_=this.stops.length;b<_-1;b++){let g=s(this.stops[b],this.stops[b+1],p[b],d);y.splice(y.length,0,...g)}return y.push(this.stops[this.stops.length-1].color),y}css(u,d){u=u||"linear",d=d||(u==="linear"?"to right":"ellipse at center");let p=u+"-gradient("+d;return this.stops.forEach(function(y){p+=", "+(y.colorLess?"":y.color.toRgbString()+" ")+y.pos*100+"%"}),p+=")",p}rgbAt(u){return c(this.stops,u,"toRgb",n)}hsvAt(u){return c(this.stops,u,"toHsv",i)}};r.exports=function(u){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');u=arguments[0]}else u=Array.prototype.slice.call(arguments);return new h(u)}}),zB=re((e,r)=>{"use strict";ee();var t=UB(),n=WB(),i=/\s/g;function l(...h){let u=n.apply(this,h),d=(p,y)=>o(p?p.toString():"",u,y);return d.multiline=(p,y)=>s(p?p.toString():"",u,y),d}var a=(h,u,d)=>u.interpolation.toLowerCase()==="hsv"?h.hsv(d,u.hsvSpin.toLowerCase()):h.rgb(d);function o(h,u,d){let p=f(d),y=Math.max(h.replace(i,"").length,u.stops.length),b=a(u,p,y),_="";for(let g of h)_+=g.match(i)?g:t.hex(b.shift().toHex())(g);return _}function s(h,u,d){let p=f(d),y=h.split(`
|
|
71
|
+
`),b=Math.max.apply(null,y.map(S=>S.length).concat([u.stops.length])),_=a(u,p,b),g=[];for(let S of y){let E=_.slice(0),v="";for(let m of S)v+=t.hex(E.shift().toHex())(m);g.push(v)}return g.join(`
|
|
72
|
+
`)}function f(h){let u={interpolation:"rgb",hsvSpin:"short",...h};if(h!==void 0&&typeof h!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof h}\``);if(typeof u.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof u.interpolation}\``);if(u.interpolation.toLowerCase()==="hsv"&&typeof u.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof u.hsvSpin}\``);return u}var c={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};r.exports=l;for(let h in c)r.exports[h]=u=>new l(c[h].colors)(u,c[h].options),r.exports[h].multiline=u=>new l(c[h].colors).multiline(u,c[h].options)}),VB={};PP(VB,{dimmed:()=>r9,error:()=>e9,info:()=>JB,item:()=>n9,turboBlue:()=>Un,turboGradient:()=>ZB,turboLoader:()=>QB,turboRed:()=>P8,warn:()=>t9,yellow:()=>B8});ee();var qo=at(Ho()),KB=at($B()),YB=at(zB()),T8="#0099F7",F8="#F11712",XB="#FFFF00",ZB=(0,YB.default)(T8,F8),Un=qo.default.hex(T8),P8=qo.default.hex(F8),B8=qo.default.hex(XB),QB=e=>(0,KB.default)({text:e,spinner:{frames:[" ",Un("> "),Un(">> "),Un(">>>")]}}),JB=(...e)=>{console.log(Un.bold(">>>"),...e)},e9=(...e)=>{console.error(P8.bold(">>>"),...e)},t9=(...e)=>{console.error(B8.bold(">>>"),...e)},r9=(...e)=>{console.log(qo.default.dim(...e))},n9=(...e)=>{console.log(Un.bold(" \u2022"),...e)},i9=re((e,r)=>{ee();function t(n,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}r.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var i=new Date().getTime();if(n&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);var l=this._timeouts.shift();if(l===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),l=this._cachedTimeouts.slice(-1);else return!1;var a=this;return this._timer=setTimeout(function(){a._attempts++,a._operationTimeoutCb&&(a._timeout=setTimeout(function(){a._operationTimeoutCb(a._attempts)},a._operationTimeout),a._options.unref&&a._timeout.unref()),a._fn(a._attempts)},l),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(n,i){this._fn=n,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var l=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){l._operationTimeoutCb()},l._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},t.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(this._errors.length===0)return null;for(var n={},i=null,l=0,a=0;a<this._errors.length;a++){var o=this._errors[a],s=o.message,f=(n[s]||0)+1;n[s]=f,f>=l&&(i=o,l=f)}return i}}),s9=re(e=>{ee();var r=i9();e.operation=function(t){var n=e.timeouts(t);return new r(n,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in t)n[i]=t[i];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var l=[],a=0;a<n.retries;a++)l.push(this.createTimeout(a,n));return t&&t.forever&&!l.length&&l.push(this.createTimeout(a,n)),l.sort(function(o,s){return o-s}),l},e.createTimeout=function(t,n){var i=n.randomize?Math.random()+1:1,l=Math.round(i*Math.max(n.minTimeout,1)*Math.pow(n.factor,t));return l=Math.min(l,n.maxTimeout),l},e.wrap=function(t,n,i){if(n instanceof Array&&(i=n,n=null),!i){i=[];for(var l in t)typeof t[l]=="function"&&i.push(l)}for(var a=0;a<i.length;a++){var o=i[a],s=t[o];t[o]=function(f){var c=e.operation(n),h=Array.prototype.slice.call(arguments,1),u=h.pop();h.push(function(d){c.retry(d)||(d&&(arguments[0]=c.mainError()),u.apply(this,arguments))}),c.attempt(function(){f.apply(t,h)})}.bind(t,s),t[o].options=n}}}),o9=re((e,r)=>{ee(),r.exports=s9()}),a9=re((e,r)=>{ee();var t=o9();function n(i,l){function a(o,s){var f=l||{},c;"randomize"in f||(f.randomize=!0),c=t.operation(f);function h(p){s(p||new Error("Aborted"))}function u(p,y){if(p.bail){h(p);return}c.retry(p)?f.onRetry&&f.onRetry(p,y):s(c.mainError())}function d(p){var y;try{y=i(h,p)}catch(b){u(b,p);return}Promise.resolve(y).then(o).catch(function(b){u(b,p)})}c.attempt(d)}return new Promise(a)}r.exports=n});ee();ee();var MU=at(a9()),NU=at(Ho()),jU=at($o()),u9=et(require("os"),1),l9=re((e,r)=>{ee(),r.exports=l,l.sync=a;var t=fe("fs");function n(o,s){var f=s.pathExt!==void 0?s.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var c=0;c<f.length;c++){var h=f[c].toLowerCase();if(h&&o.substr(-h.length).toLowerCase()===h)return!0}return!1}function i(o,s,f){return!o.isSymbolicLink()&&!o.isFile()?!1:n(s,f)}function l(o,s,f){t.stat(o,function(c,h){f(c,c?!1:i(h,o,s))})}function a(o,s){return i(t.statSync(o),o,s)}}),c9=re((e,r)=>{ee(),r.exports=n,n.sync=i;var t=fe("fs");function n(o,s,f){t.stat(o,function(c,h){f(c,c?!1:l(h,s))})}function i(o,s){return l(t.statSync(o),s)}function l(o,s){return o.isFile()&&a(o,s)}function a(o,s){var f=o.mode,c=o.uid,h=o.gid,u=s.uid!==void 0?s.uid:process.getuid&&process.getuid(),d=s.gid!==void 0?s.gid:process.getgid&&process.getgid(),p=parseInt("100",8),y=parseInt("010",8),b=parseInt("001",8),_=p|y,g=f&b||f&y&&h===d||f&p&&c===u||f&_&&u===0;return g}}),h9=re((e,r)=>{ee();var t=fe("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=l9():n=c9(),r.exports=i,i.sync=l;function i(a,o,s){if(typeof o=="function"&&(s=o,o={}),!s){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(f,c){i(a,o||{},function(h,u){h?c(h):f(u)})})}n(a,o||{},function(f,c){f&&(f.code==="EACCES"||o&&o.ignoreErrors)&&(f=null,c=!1),s(f,c)})}function l(a,o){try{return n.sync(a,o||{})}catch(s){if(o&&o.ignoreErrors||s.code==="EACCES")return!1;throw s}}}),f9=re((e,r)=>{ee();var t=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=fe("path"),i=t?";":":",l=h9(),a=c=>Object.assign(new Error(`not found: ${c}`),{code:"ENOENT"}),o=(c,h)=>{let u=h.colon||i,d=c.match(/\//)||t&&c.match(/\\/)?[""]:[...t?[process.cwd()]:[],...(h.path||process.env.PATH||"").split(u)],p=t?h.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",y=t?p.split(u):[""];return t&&c.indexOf(".")!==-1&&y[0]!==""&&y.unshift(""),{pathEnv:d,pathExt:y,pathExtExe:p}},s=(c,h,u)=>{typeof h=="function"&&(u=h,h={}),h||(h={});let{pathEnv:d,pathExt:p,pathExtExe:y}=o(c,h),b=[],_=S=>new Promise((E,v)=>{if(S===d.length)return h.all&&b.length?E(b):v(a(c));let m=d[S],w=/^".*"$/.test(m)?m.slice(1,-1):m,x=n.join(w,c),A=!w&&/^\.[\\\/]/.test(c)?c.slice(0,2)+x:x;E(g(A,S,0))}),g=(S,E,v)=>new Promise((m,w)=>{if(v===p.length)return m(_(E+1));let x=p[v];l(S+x,{pathExt:y},(A,R)=>{if(!A&&R)if(h.all)b.push(S+x);else return m(S+x);return m(g(S,E,v+1))})});return u?_(0).then(S=>u(null,S),u):_(0)},f=(c,h)=>{h=h||{};let{pathEnv:u,pathExt:d,pathExtExe:p}=o(c,h),y=[];for(let b=0;b<u.length;b++){let _=u[b],g=/^".*"$/.test(_)?_.slice(1,-1):_,S=n.join(g,c),E=!g&&/^\.[\\\/]/.test(c)?c.slice(0,2)+S:S;for(let v=0;v<d.length;v++){let m=E+d[v];try{if(l.sync(m,{pathExt:p}))if(h.all)y.push(m);else return m}catch{}}}if(h.all&&y.length)return y;if(h.nothrow)return null;throw a(c)};r.exports=s,s.sync=f}),I8=re((e,r)=>{"use strict";ee();var t=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(l=>l.toUpperCase()==="PATH")||"Path"};r.exports=t,r.exports.default=t}),p9=re((e,r)=>{"use strict";ee();var t=fe("path"),n=f9(),i=I8();function l(o,s){let f=o.options.env||process.env,c=process.cwd(),h=o.options.cwd!=null,u=h&&process.chdir!==void 0&&!process.chdir.disabled;if(u)try{process.chdir(o.options.cwd)}catch{}let d;try{d=n.sync(o.command,{path:f[i({env:f})],pathExt:s?t.delimiter:void 0})}catch{}finally{u&&process.chdir(c)}return d&&(d=t.resolve(h?o.options.cwd:"",d)),d}function a(o){return l(o)||l(o,!0)}r.exports=a}),d9=re((e,r)=>{"use strict";ee();var t=/([()\][%!^"`<>&|;, *?])/g;function n(l){return l=l.replace(t,"^$1"),l}function i(l,a){return l=`${l}`,l=l.replace(/(\\*)"/g,'$1$1\\"'),l=l.replace(/(\\*)$/,"$1$1"),l=`"${l}"`,l=l.replace(t,"^$1"),a&&(l=l.replace(t,"^$1")),l}r.exports.command=n,r.exports.argument=i}),m9=re((e,r)=>{"use strict";ee(),r.exports=/^#!(.*)/}),y9=re((e,r)=>{"use strict";ee();var t=m9();r.exports=(n="")=>{let i=n.match(t);if(!i)return null;let[l,a]=i[0].replace(/#! ?/,"").split(" "),o=l.split("/").pop();return o==="env"?a:a?`${o} ${a}`:o}}),g9=re((e,r)=>{"use strict";ee();var t=fe("fs"),n=y9();function i(l){let a=Buffer.alloc(150),o;try{o=t.openSync(l,"r"),t.readSync(o,a,0,150,0),t.closeSync(o)}catch{}return n(a.toString())}r.exports=i}),b9=re((e,r)=>{"use strict";ee();var t=fe("path"),n=p9(),i=d9(),l=g9(),a=process.platform==="win32",o=/\.(?:com|exe)$/i,s=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function f(u){u.file=n(u);let d=u.file&&l(u.file);return d?(u.args.unshift(u.file),u.command=d,n(u)):u.file}function c(u){if(!a)return u;let d=f(u),p=!o.test(d);if(u.options.forceShell||p){let y=s.test(d);u.command=t.normalize(u.command),u.command=i.command(u.command),u.args=u.args.map(_=>i.argument(_,y));let b=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${b}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}function h(u,d,p){d&&!Array.isArray(d)&&(p=d,d=null),d=d?d.slice(0):[],p=Object.assign({},p);let y={command:u,args:d,options:p,file:void 0,original:{command:u,args:d}};return p.shell?y:c(y)}r.exports=h}),v9=re((e,r)=>{"use strict";ee();var t=process.platform==="win32";function n(o,s){return Object.assign(new Error(`${s} ${o.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${s} ${o.command}`,path:o.command,spawnargs:o.args})}function i(o,s){if(!t)return;let f=o.emit;o.emit=function(c,h){if(c==="exit"){let u=l(h,s,"spawn");if(u)return f.call(o,"error",u)}return f.apply(o,arguments)}}function l(o,s){return t&&o===1&&!s.file?n(s.original,"spawn"):null}function a(o,s){return t&&o===1&&!s.file?n(s.original,"spawnSync"):null}r.exports={hookChildProcess:i,verifyENOENT:l,verifyENOENTSync:a,notFoundError:n}}),_9=re((e,r)=>{"use strict";ee();var t=fe("child_process"),n=b9(),i=v9();function l(o,s,f){let c=n(o,s,f),h=t.spawn(c.command,c.args,c.options);return i.hookChildProcess(h,c),h}function a(o,s,f){let c=n(o,s,f),h=t.spawnSync(c.command,c.args,c.options);return h.error=h.error||i.verifyENOENTSync(h.status,c),h}r.exports=l,r.exports.spawn=l,r.exports.sync=a,r.exports._parse=n,r.exports._enoent=i}),w9=re((e,r)=>{"use strict";ee(),r.exports=t=>{let n=typeof t=="string"?`
|
|
73
|
+
`:`
|
|
74
|
+
`.charCodeAt(),i=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===n&&(t=t.slice(0,t.length-1)),t[t.length-1]===i&&(t=t.slice(0,t.length-1)),t}}),E9=re((e,r)=>{"use strict";ee();var t=fe("path"),n=I8(),i=l=>{l={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...l};let a,o=t.resolve(l.cwd),s=[];for(;a!==o;)s.push(t.join(o,"node_modules/.bin")),a=o,o=t.resolve(o,"..");let f=t.resolve(l.cwd,l.execPath,"..");return s.push(f),s.concat(l.path).join(t.delimiter)};r.exports=i,r.exports.default=i,r.exports.env=l=>{l={env:process.env,...l};let a={...l.env},o=n({env:a});return l.path=a[o],a[o]=r.exports(l),a}}),S9=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var r=[{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"}];e.SIGNALS=r}),L8=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var r=function(){let l=i-n+1;return Array.from({length:l},t)};e.getRealtimeSignals=r;var t=function(l,a){return{name:`SIGRT${a+1}`,number:n+a,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;e.SIGRTMAX=i}),x9=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var r=fe("os"),t=S9(),n=L8(),i=function(){let a=(0,n.getRealtimeSignals)();return[...t.SIGNALS,...a].map(l)};e.getSignals=i;var l=function({name:a,number:o,description:s,action:f,forced:c=!1,standard:h}){let{signals:{[a]:u}}=r.constants,d=u!==void 0;return{name:a,number:d?u:o,description:s,supported:d,action:f,forced:c,standard:h}}}),A9=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var r=fe("os"),t=x9(),n=L8(),i=function(){return(0,t.getSignals)().reduce(l,{})},l=function(h,{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}){return{...h,[u]:{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}}},a=i();e.signalsByName=a;var o=function(){let h=(0,t.getSignals)(),u=n.SIGRTMAX+1,d=Array.from({length:u},(p,y)=>s(y,h));return Object.assign({},...d)},s=function(h,u){let d=f(h,u);if(d===void 0)return{};let{name:p,description:y,supported:b,action:_,forced:g,standard:S}=d;return{[h]:{name:p,number:h,description:y,supported:b,action:_,forced:g,standard:S}}},f=function(h,u){let d=u.find(({name:p})=>r.constants.signals[p]===h);return d!==void 0?d:u.find(p=>p.number===h)},c=o();e.signalsByNumber=c}),C9=re((e,r)=>{"use strict";ee();var{signalsByName:t}=A9(),n=({timedOut:l,timeout:a,errorCode:o,signal:s,signalDescription:f,exitCode:c,isCanceled:h})=>l?`timed out after ${a} milliseconds`:h?"was canceled":o!==void 0?`failed with ${o}`:s!==void 0?`was killed with ${s} (${f})`:c!==void 0?`failed with exit code ${c}`:"failed",i=({stdout:l,stderr:a,all:o,error:s,signal:f,exitCode:c,command:h,escapedCommand:u,timedOut:d,isCanceled:p,killed:y,parsed:{options:{timeout:b}}})=>{c=c===null?void 0:c,f=f===null?void 0:f;let _=f===void 0?void 0:t[f].description,g=s&&s.code,S=`Command ${n({timedOut:d,timeout:b,errorCode:g,signal:f,signalDescription:_,exitCode:c,isCanceled:p})}: ${h}`,E=Object.prototype.toString.call(s)==="[object Error]",v=E?`${S}
|
|
75
|
+
${s.message}`:S,m=[v,a,l].filter(Boolean).join(`
|
|
76
|
+
`);return E?(s.originalMessage=s.message,s.message=m):s=new Error(m),s.shortMessage=v,s.command=h,s.escapedCommand=u,s.exitCode=c,s.signal=f,s.signalDescription=_,s.stdout=l,s.stderr=a,o!==void 0&&(s.all=o),"bufferedData"in s&&delete s.bufferedData,s.failed=!0,s.timedOut=!!d,s.isCanceled=p,s.killed=y&&!d,s};r.exports=i}),k9=re((e,r)=>{"use strict";ee();var t=["stdin","stdout","stderr"],n=l=>t.some(a=>l[a]!==void 0),i=l=>{if(!l)return;let{stdio:a}=l;if(a===void 0)return t.map(s=>l[s]);if(n(l))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(s=>`\`${s}\``).join(", ")}`);if(typeof a=="string")return a;if(!Array.isArray(a))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof a}\``);let o=Math.max(a.length,t.length);return Array.from({length:o},(s,f)=>a[f])};r.exports=i,r.exports.node=l=>{let a=i(l);return a==="ipc"?"ipc":a===void 0||typeof a=="string"?[a,a,a,"ipc"]:a.includes("ipc")?a:[...a,"ipc"]}}),D9=re((e,r)=>{"use strict";ee();var t=fe("os"),n=C8(),i=1e3*5,l=(y,b="SIGTERM",_={})=>{let g=y(b);return a(y,b,_,g),g},a=(y,b,_,g)=>{if(!o(b,_,g))return;let S=f(_),E=setTimeout(()=>{y("SIGKILL")},S);E.unref&&E.unref()},o=(y,{forceKillAfterTimeout:b},_)=>s(y)&&b!==!1&&_,s=y=>y===t.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},c=(y,b)=>{y.kill()&&(b.isCanceled=!0)},h=(y,b,_)=>{y.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},u=(y,{timeout:b,killSignal:_="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let S,E=new Promise((m,w)=>{S=setTimeout(()=>{h(y,_,w)},b)}),v=g.finally(()=>{clearTimeout(S)});return Promise.race([E,v])},d=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},p=async(y,{cleanup:b,detached:_},g)=>{if(!b||_)return g;let S=n(()=>{y.kill()});return g.finally(()=>{S()})};r.exports={spawnedKill:l,spawnedCancel:c,setupTimeout:u,validateTimeout:d,setExitHandler:p}}),R9=re((e,r)=>{"use strict";ee();var t=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";t.writable=n=>t(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",t.readable=n=>t(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",t.duplex=n=>t.writable(n)&&t.readable(n),t.transform=n=>t.duplex(n)&&typeof n._transform=="function",r.exports=t}),O9=re((e,r)=>{"use strict";ee();var{PassThrough:t}=fe("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:l}=n,a=l==="buffer",o=!1;i?o=!(l||a):l=l||"utf8",a&&(l=null);let s=new t({objectMode:o});l&&s.setEncoding(l);let f=0,c=[];return s.on("data",h=>{c.push(h),o?f=c.length:f+=h.length}),s.getBufferedValue=()=>i?c:a?Buffer.concat(c,f):c.join(""),s.getBufferedLength=()=>f,s}}),T9=re((e,r)=>{"use strict";ee();var{constants:t}=fe("buffer"),n=fe("stream"),{promisify:i}=fe("util"),l=O9(),a=i(n.pipeline),o=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function s(f,c){if(!f)throw new Error("Expected a stream");c={maxBuffer:1/0,...c};let{maxBuffer:h}=c,u=l(c);return await new Promise((d,p)=>{let y=b=>{b&&u.getBufferedLength()<=t.MAX_LENGTH&&(b.bufferedData=u.getBufferedValue()),p(b)};(async()=>{try{await a(f,u),d()}catch(b){y(b)}})(),u.on("data",()=>{u.getBufferedLength()>h&&y(new o)})}),u.getBufferedValue()}r.exports=s,r.exports.buffer=(f,c)=>s(f,{...c,encoding:"buffer"}),r.exports.array=(f,c)=>s(f,{...c,array:!0}),r.exports.MaxBufferError=o}),F9=re((e,r)=>{"use strict";ee();var{PassThrough:t}=fe("stream");r.exports=function(){var n=[],i=new t({objectMode:!0});return i.setMaxListeners(0),i.add=l,i.isEmpty=a,i.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(l),i;function l(s){return Array.isArray(s)?(s.forEach(l),this):(n.push(s),s.once("end",o.bind(null,s)),s.once("error",i.emit.bind(i,"error")),s.pipe(i,{end:!1}),this)}function a(){return n.length==0}function o(s){n=n.filter(function(f){return f!==s}),!n.length&&i.readable&&i.end()}}}),P9=re((e,r)=>{"use strict";ee();var t=R9(),n=T9(),i=F9(),l=(h,u)=>{u===void 0||h.stdin===void 0||(t(u)?u.pipe(h.stdin):h.stdin.end(u))},a=(h,{all:u})=>{if(!u||!h.stdout&&!h.stderr)return;let d=i();return h.stdout&&d.add(h.stdout),h.stderr&&d.add(h.stderr),d},o=async(h,u)=>{if(h){h.destroy();try{return await u}catch(d){return d.bufferedData}}},s=(h,{encoding:u,buffer:d,maxBuffer:p})=>{if(!(!h||!d))return u?n(h,{encoding:u,maxBuffer:p}):n.buffer(h,{maxBuffer:p})},f=async({stdout:h,stderr:u,all:d},{encoding:p,buffer:y,maxBuffer:b},_)=>{let g=s(h,{encoding:p,buffer:y,maxBuffer:b}),S=s(u,{encoding:p,buffer:y,maxBuffer:b}),E=s(d,{encoding:p,buffer:y,maxBuffer:b*2});try{return await Promise.all([_,g,S,E])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},o(h,g),o(u,S),o(d,E)])}},c=({input:h})=>{if(t(h))throw new TypeError("The `input` option cannot be a stream in sync mode")};r.exports={handleInput:l,makeAllStream:a,getSpawnedResult:f,validateInputSync:c}}),B9=re((e,r)=>{"use strict";ee();var t=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(a=>[a,Reflect.getOwnPropertyDescriptor(t,a)]),i=(a,o)=>{for(let[s,f]of n){let c=typeof o=="function"?(...h)=>Reflect.apply(f.value,o(),h):f.value.bind(o);Reflect.defineProperty(a,s,{...f,value:c})}return a},l=a=>new Promise((o,s)=>{a.on("exit",(f,c)=>{o({exitCode:f,signal:c})}),a.on("error",f=>{s(f)}),a.stdin&&a.stdin.on("error",f=>{s(f)})});r.exports={mergePromise:i,getSpawnedPromise:l}}),I9=re((e,r)=>{"use strict";ee();var t=(c,h=[])=>Array.isArray(h)?[c,...h]:[c],n=/^[\w.-]+$/,i=/"/g,l=c=>typeof c!="string"||n.test(c)?c:`"${c.replace(i,'\\"')}"`,a=(c,h)=>t(c,h).join(" "),o=(c,h)=>t(c,h).map(u=>l(u)).join(" "),s=/ +/g,f=c=>{let h=[];for(let u of c.trim().split(s)){let d=h[h.length-1];d&&d.endsWith("\\")?h[h.length-1]=`${d.slice(0,-1)} ${u}`:h.push(u)}return h};r.exports={joinCommand:a,getEscapedCommand:o,parseCommand:f}}),L9=re((e,r)=>{"use strict";ee();var t=fe("path"),n=fe("child_process"),i=_9(),l=w9(),a=E9(),o=A8(),s=C9(),f=k9(),{spawnedKill:c,spawnedCancel:h,setupTimeout:u,validateTimeout:d,setExitHandler:p}=D9(),{handleInput:y,getSpawnedResult:b,makeAllStream:_,validateInputSync:g}=P9(),{mergePromise:S,getSpawnedPromise:E}=B9(),{joinCommand:v,parseCommand:m,getEscapedCommand:w}=I9(),x=1e3*1e3*100,A=({env:O,extendEnv:D,preferLocal:k,localDir:M,execPath:L})=>{let U=D?{...process.env,...O}:O;return k?a.env({env:U,cwd:M,execPath:L}):U},R=(O,D,k={})=>{let M=i._parse(O,D,k);return O=M.command,D=M.args,k=M.options,k={maxBuffer:x,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:k.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...k},k.env=A(k),k.stdio=f(k),process.platform==="win32"&&t.basename(O,".exe")==="cmd"&&D.unshift("/q"),{file:O,args:D,options:k,parsed:M}},B=(O,D,k)=>typeof D!="string"&&!Buffer.isBuffer(D)?k===void 0?void 0:"":O.stripFinalNewline?l(D):D,P=(O,D,k)=>{let M=R(O,D,k),L=v(O,D),U=w(O,D);d(M.options);let W;try{W=n.spawn(M.file,M.args,M.options)}catch(G){let J=new n.ChildProcess,j=Promise.reject(s({error:G,stdout:"",stderr:"",all:"",command:L,escapedCommand:U,parsed:M,timedOut:!1,isCanceled:!1,killed:!1}));return S(J,j)}let se=E(W),I=u(W,M.options,se),N=p(W,M.options,I),F={isCanceled:!1};W.kill=c.bind(null,W.kill.bind(W)),W.cancel=h.bind(null,W,F);let V=o(async()=>{let[{error:G,exitCode:J,signal:j,timedOut:z},Q,le,ue]=await b(W,M.options,N),Y=B(M.options,Q),ne=B(M.options,le),T=B(M.options,ue);if(G||J!==0||j!==null){let q=s({error:G,exitCode:J,signal:j,stdout:Y,stderr:ne,all:T,command:L,escapedCommand:U,parsed:M,timedOut:z,isCanceled:F.isCanceled,killed:W.killed});if(!M.options.reject)return q;throw q}return{command:L,escapedCommand:U,exitCode:0,stdout:Y,stderr:ne,all:T,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(W,M.options.input),W.all=_(W,M.options),S(W,V)};r.exports=P,r.exports.sync=(O,D,k)=>{let M=R(O,D,k),L=v(O,D),U=w(O,D);g(M.options);let W;try{W=n.spawnSync(M.file,M.args,M.options)}catch(N){throw s({error:N,stdout:"",stderr:"",all:"",command:L,escapedCommand:U,parsed:M,timedOut:!1,isCanceled:!1,killed:!1})}let se=B(M.options,W.stdout,W.error),I=B(M.options,W.stderr,W.error);if(W.error||W.status!==0||W.signal!==null){let N=s({stdout:se,stderr:I,error:W.error,signal:W.signal,exitCode:W.status,command:L,escapedCommand:U,parsed:M,timedOut:W.error&&W.error.code==="ETIMEDOUT",isCanceled:!1,killed:W.signal!==null});if(!M.options.reject)return N;throw N}return{command:L,escapedCommand:U,exitCode:0,stdout:se,stderr:I,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},r.exports.command=(O,D)=>{let[k,...M]=m(O);return P(k,M,D)},r.exports.commandSync=(O,D)=>{let[k,...M]=m(O);return P.sync(k,M,D)},r.exports.node=(O,D,k={})=>{D&&!Array.isArray(D)&&typeof D=="object"&&(k=D,D=[]);let M=f.node(k),L=process.execArgv.filter(se=>!se.startsWith("--inspect")),{nodePath:U=process.execPath,nodeOptions:W=L}=k;return P(U,[...W,O,...Array.isArray(D)?D:[]],{...k,stdin:void 0,stdout:void 0,stderr:void 0,stdio:M,shell:!1})}});ee();var M9=at(L9());async function th(e){let r={cwd:u9.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"}},t=!1;try{let n=process.env.npm_config_user_agent;return n&&n.startsWith(e)&&(t=!0),{available:!0,version:(await(0,M9.default)(e,["--version"],r)).stdout.trim()}}catch{return{available:t}}}async function N9(){let[e,r,t]=await Promise.all([th("yarnpkg"),th("npm"),th("pnpm")]);return{yarn:e,pnpm:t,npm:r}}ee();var $U=at($o()),HU=at(Ho());ee();var j9=re((e,r)=>{ee();function t(n){return r.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r.exports.__esModule=!0,r.exports.default=r.exports,t(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}),$9=re((e,r)=>{ee();var t=j9().default;function n(){"use strict";r.exports=n=function(){return i},r.exports.__esModule=!0,r.exports.default=r.exports;var i={},l=Object.prototype,a=l.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},s=o.iterator||"@@iterator",f=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function h(D,k,M){return Object.defineProperty(D,k,{value:M,enumerable:!0,configurable:!0,writable:!0}),D[k]}try{h({},"")}catch{h=function(D,k,M){return D[k]=M}}function u(D,k,M,L){var U=k&&k.prototype instanceof y?k:y,W=Object.create(U.prototype),se=new B(L||[]);return W._invoke=function(I,N,F){var V="suspendedStart";return function(G,J){if(V==="executing")throw new Error("Generator is already running");if(V==="completed"){if(G==="throw")throw J;return O()}for(F.method=G,F.arg=J;;){var j=F.delegate;if(j){var z=x(j,F);if(z){if(z===p)continue;return z}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(V==="suspendedStart")throw V="completed",F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);V="executing";var Q=d(I,N,F);if(Q.type==="normal"){if(V=F.done?"completed":"suspendedYield",Q.arg===p)continue;return{value:Q.arg,done:F.done}}Q.type==="throw"&&(V="completed",F.method="throw",F.arg=Q.arg)}}}(D,M,se),W}function d(D,k,M){try{return{type:"normal",arg:D.call(k,M)}}catch(L){return{type:"throw",arg:L}}}i.wrap=u;var p={};function y(){}function b(){}function _(){}var g={};h(g,s,function(){return this});var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==l&&a.call(E,s)&&(g=E);var v=_.prototype=y.prototype=Object.create(g);function m(D){["next","throw","return"].forEach(function(k){h(D,k,function(M){return this._invoke(k,M)})})}function w(D,k){function M(U,W,se,I){var N=d(D[U],D,W);if(N.type!=="throw"){var F=N.arg,V=F.value;return V&&t(V)=="object"&&a.call(V,"__await")?k.resolve(V.__await).then(function(G){M("next",G,se,I)},function(G){M("throw",G,se,I)}):k.resolve(V).then(function(G){F.value=G,se(F)},function(G){return M("throw",G,se,I)})}I(N.arg)}var L;this._invoke=function(U,W){function se(){return new k(function(I,N){M(U,W,I,N)})}return L=L?L.then(se,se):se()}}function x(D,k){var M=D.iterator[k.method];if(M===void 0){if(k.delegate=null,k.method==="throw"){if(D.iterator.return&&(k.method="return",k.arg=void 0,x(D,k),k.method==="throw"))return p;k.method="throw",k.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var L=d(M,D.iterator,k.arg);if(L.type==="throw")return k.method="throw",k.arg=L.arg,k.delegate=null,p;var U=L.arg;return U?U.done?(k[D.resultName]=U.value,k.next=D.nextLoc,k.method!=="return"&&(k.method="next",k.arg=void 0),k.delegate=null,p):U:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,p)}function A(D){var k={tryLoc:D[0]};1 in D&&(k.catchLoc=D[1]),2 in D&&(k.finallyLoc=D[2],k.afterLoc=D[3]),this.tryEntries.push(k)}function R(D){var k=D.completion||{};k.type="normal",delete k.arg,D.completion=k}function B(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(A,this),this.reset(!0)}function P(D){if(D){var k=D[s];if(k)return k.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var M=-1,L=function U(){for(;++M<D.length;)if(a.call(D,M))return U.value=D[M],U.done=!1,U;return U.value=void 0,U.done=!0,U};return L.next=L}}return{next:O}}function O(){return{value:void 0,done:!0}}return b.prototype=_,h(v,"constructor",_),h(_,"constructor",b),b.displayName=h(_,c,"GeneratorFunction"),i.isGeneratorFunction=function(D){var k=typeof D=="function"&&D.constructor;return!!k&&(k===b||(k.displayName||k.name)==="GeneratorFunction")},i.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,_):(D.__proto__=_,h(D,c,"GeneratorFunction")),D.prototype=Object.create(v),D},i.awrap=function(D){return{__await:D}},m(w.prototype),h(w.prototype,f,function(){return this}),i.AsyncIterator=w,i.async=function(D,k,M,L,U){U===void 0&&(U=Promise);var W=new w(u(D,k,M,L),U);return i.isGeneratorFunction(k)?W:W.next().then(function(se){return se.done?se.value:W.next()})},m(v),h(v,c,"Generator"),h(v,s,function(){return this}),h(v,"toString",function(){return"[object Generator]"}),i.keys=function(D){var k=[];for(var M in D)k.push(M);return k.reverse(),function L(){for(;k.length;){var U=k.pop();if(U in D)return L.value=U,L.done=!1,L}return L.done=!0,L}},i.values=P,B.prototype={constructor:B,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(R),!D)for(var k in this)k.charAt(0)==="t"&&a.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=void 0)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var k=this;function M(N,F){return W.type="throw",W.arg=D,k.next=N,F&&(k.method="next",k.arg=void 0),!!F}for(var L=this.tryEntries.length-1;L>=0;--L){var U=this.tryEntries[L],W=U.completion;if(U.tryLoc==="root")return M("end");if(U.tryLoc<=this.prev){var se=a.call(U,"catchLoc"),I=a.call(U,"finallyLoc");if(se&&I){if(this.prev<U.catchLoc)return M(U.catchLoc,!0);if(this.prev<U.finallyLoc)return M(U.finallyLoc)}else if(se){if(this.prev<U.catchLoc)return M(U.catchLoc,!0)}else{if(!I)throw new Error("try statement without catch or finally");if(this.prev<U.finallyLoc)return M(U.finallyLoc)}}}},abrupt:function(D,k){for(var M=this.tryEntries.length-1;M>=0;--M){var L=this.tryEntries[M];if(L.tryLoc<=this.prev&&a.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var U=L;break}}U&&(D==="break"||D==="continue")&&U.tryLoc<=k&&k<=U.finallyLoc&&(U=null);var W=U?U.completion:{};return W.type=D,W.arg=k,U?(this.method="next",this.next=U.finallyLoc,p):this.complete(W)},complete:function(D,k){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&k&&(this.next=k),p},finish:function(D){for(var k=this.tryEntries.length-1;k>=0;--k){var M=this.tryEntries[k];if(M.finallyLoc===D)return this.complete(M.completion,M.afterLoc),R(M),p}},catch:function(D){for(var k=this.tryEntries.length-1;k>=0;--k){var M=this.tryEntries[k];if(M.tryLoc===D){var L=M.completion;if(L.type==="throw"){var U=L.arg;R(M)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(D,k,M){return this.delegate={iterator:P(D),resultName:k,nextLoc:M},this.method==="next"&&(this.arg=void 0),p}},i}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}),H9=re((e,r)=>{ee();var t=$9()();r.exports=t;try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}),q9=re((e,r)=>{"use strict";ee();var t=(n,...i)=>new Promise(l=>{l(n(...i))});r.exports=t,r.exports.default=t}),U9=re((e,r)=>{"use strict";ee();var t=q9(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let l=[],a=0,o=()=>{a--,l.length>0&&l.shift()()},s=(h,u,...d)=>{a++;let p=t(h,...d);u(p),p.then(o,o)},f=(h,u,...d)=>{a<i?s(h,u,...d):l.push(s.bind(null,h,u,...d))},c=(h,...u)=>new Promise(d=>f(h,d,...u));return Object.defineProperties(c,{activeCount:{get:()=>a},pendingCount:{get:()=>l.length},clearQueue:{value:()=>{l.length=0}}}),c};r.exports=n,r.exports.default=n}),G9=re((e,r)=>{"use strict";ee();var t=U9(),n=class extends Error{constructor(o){super(),this.value=o}},i=async(o,s)=>s(await o),l=async o=>{let s=await Promise.all(o);if(s[1]===!0)throw new n(s[0]);return!1},a=async(o,s,f)=>{f={concurrency:1/0,preserveOrder:!0,...f};let c=t(f.concurrency),h=[...o].map(d=>[d,c(i,d,s)]),u=t(f.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>u(l,d)))}catch(d){if(d instanceof n)return d.value;throw d}};r.exports=a,r.exports.default=a}),W9=re((e,r)=>{"use strict";ee();var t=fe("path"),n=fe("fs"),{promisify:i}=fe("util"),l=G9(),a=i(n.stat),o=i(n.lstat),s={directory:"isDirectory",file:"isFile"};function f({type:h}){if(!(h in s))throw new Error(`Invalid type specified: ${h}`)}var c=(h,u)=>h===void 0||u[s[h]]();r.exports=async(h,u)=>{u={cwd:process.cwd(),type:"file",allowSymlinks:!0,...u},f(u);let d=u.allowSymlinks?a:o;return l(h,async p=>{try{let y=await d(t.resolve(u.cwd,p));return c(u.type,y)}catch{return!1}},u)},r.exports.sync=(h,u)=>{u={cwd:process.cwd(),allowSymlinks:!0,type:"file",...u},f(u);let d=u.allowSymlinks?n.statSync:n.lstatSync;for(let p of h)try{let y=d(t.resolve(u.cwd,p));if(c(u.type,y))return p}catch{}}}),z9=re((e,r)=>{"use strict";ee();var t=fe("fs"),{promisify:n}=fe("util"),i=n(t.access);r.exports=async l=>{try{return await i(l),!0}catch{return!1}},r.exports.sync=l=>{try{return t.accessSync(l),!0}catch{return!1}}}),V9=re((e,r)=>{"use strict";ee();var t=fe("path"),n=W9(),i=z9(),l=Symbol("findUp.stop");r.exports=async(a,o={})=>{let s=t.resolve(o.cwd||""),{root:f}=t.parse(s),c=[].concat(a),h=async u=>{if(typeof a!="function")return n(c,u);let d=await a(u.cwd);return typeof d=="string"?n([d],u):d};for(;;){let u=await h({...o,cwd:s});if(u===l)return;if(u)return t.resolve(s,u);if(s===f)return;s=t.dirname(s)}},r.exports.sync=(a,o={})=>{let s=t.resolve(o.cwd||""),{root:f}=t.parse(s),c=[].concat(a),h=u=>{if(typeof a!="function")return n.sync(c,u);let d=a(u.cwd);return typeof d=="string"?n.sync([d],u):d};for(;;){let u=h({...o,cwd:s});if(u===l)return;if(u)return t.resolve(s,u);if(s===f)return;s=t.dirname(s)}},r.exports.exists=i,r.exports.sync.exists=i.sync,r.exports.stop=l}),Ot=re(e=>{"use strict";ee(),e.fromCallback=function(r){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")r.apply(this,arguments);else return new Promise((t,n)=>{arguments[arguments.length]=(i,l)=>{if(i)return n(i);t(l)},arguments.length++,r.apply(this,arguments)})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(){let t=arguments[arguments.length-1];if(typeof t!="function")return r.apply(this,arguments);r.apply(this,arguments).then(n=>t(null,n),t)},"name",{value:r.name})}}),M8=re(e=>{"use strict";ee();var r=Ot().fromCallback,t=He(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.keys(t).forEach(i=>{i!=="promises"&&(e[i]=t[i])}),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,l){return typeof l=="function"?t.exists(i,l):new Promise(a=>t.exists(i,a))},e.read=function(i,l,a,o,s,f){return typeof f=="function"?t.read(i,l,a,o,s,f):new Promise((c,h)=>{t.read(i,l,a,o,s,(u,d,p)=>{if(u)return h(u);c({bytesRead:d,buffer:p})})})},e.write=function(i,l,...a){return typeof a[a.length-1]=="function"?t.write(i,l,...a):new Promise((o,s)=>{t.write(i,l,...a,(f,c,h)=>{if(f)return s(f);o({bytesWritten:c,buffer:h})})})},typeof t.realpath.native=="function"&&(e.realpath.native=r(t.realpath.native))}),N8=re((e,r)=>{"use strict";ee();var t=fe("path");function n(a){return a=t.normalize(t.resolve(a)).split(t.sep),a.length>0?a[0]:null}var i=/[<>:"|?*]/;function l(a){let o=n(a);return a=a.replace(o,""),i.test(a)}r.exports={getRootPath:n,invalidWin32Path:l}}),K9=re((e,r)=>{"use strict";ee();var t=He(),n=fe("path"),i=N8().invalidWin32Path,l=parseInt("0777",8);function a(o,s,f,c){if(typeof s=="function"?(f=s,s={}):(!s||typeof s!="object")&&(s={mode:s}),process.platform==="win32"&&i(o)){let d=new Error(o+" contains invalid WIN32 path characters.");return d.code="EINVAL",f(d)}let h=s.mode,u=s.fs||t;h===void 0&&(h=l&~process.umask()),c||(c=null),f=f||function(){},o=n.resolve(o),u.mkdir(o,h,d=>{if(!d)return c=c||o,f(null,c);switch(d.code){case"ENOENT":if(n.dirname(o)===o)return f(d);a(n.dirname(o),s,(p,y)=>{p?f(p,y):a(o,s,f,y)});break;default:u.stat(o,(p,y)=>{p||!y.isDirectory()?f(d,c):f(null,c)});break}})}r.exports=a}),Y9=re((e,r)=>{"use strict";ee();var t=He(),n=fe("path"),i=N8().invalidWin32Path,l=parseInt("0777",8);function a(o,s,f){(!s||typeof s!="object")&&(s={mode:s});let c=s.mode,h=s.fs||t;if(process.platform==="win32"&&i(o)){let u=new Error(o+" contains invalid WIN32 path characters.");throw u.code="EINVAL",u}c===void 0&&(c=l&~process.umask()),f||(f=null),o=n.resolve(o);try{h.mkdirSync(o,c),f=f||o}catch(u){if(u.code==="ENOENT"){if(n.dirname(o)===o)throw u;f=a(n.dirname(o),s,f),a(o,s,f)}else{let d;try{d=h.statSync(o)}catch{throw u}if(!d.isDirectory())throw u}}return f}r.exports=a}),It=re((e,r)=>{"use strict";ee();var t=Ot().fromCallback,n=t(K9()),i=Y9();r.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}}),j8=re((e,r)=>{"use strict";ee();var t=He(),n=fe("os"),i=fe("path");function l(){let c=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));c=i.join(n.tmpdir(),c);let h=new Date(1435410243862);t.writeFileSync(c,"https://github.com/jprichardson/node-fs-extra/pull/141");let u=t.openSync(c,"r+");return t.futimesSync(u,h,h),t.closeSync(u),t.statSync(c).mtime>1435410243e3}function a(c){let h=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));h=i.join(n.tmpdir(),h);let u=new Date(1435410243862);t.writeFile(h,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return c(d);t.open(h,"r+",(p,y)=>{if(p)return c(p);t.futimes(y,u,u,b=>{if(b)return c(b);t.close(y,_=>{if(_)return c(_);t.stat(h,(g,S)=>{if(g)return c(g);c(null,S.mtime>1435410243e3)})})})})})}function o(c){if(typeof c=="number")return Math.floor(c/1e3)*1e3;if(c instanceof Date)return new Date(Math.floor(c.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function s(c,h,u,d){t.open(c,"r+",(p,y)=>{if(p)return d(p);t.futimes(y,h,u,b=>{t.close(y,_=>{d&&d(b||_)})})})}function f(c,h,u){let d=t.openSync(c,"r+");return t.futimesSync(d,h,u),t.closeSync(d)}r.exports={hasMillisRes:a,hasMillisResSync:l,timeRemoveMillis:o,utimesMillis:s,utimesMillisSync:f}}),Uo=re((e,r)=>{"use strict";ee();var t=He(),n=fe("path"),i=10,l=5,a=0,o=process.versions.node.split("."),s=Number.parseInt(o[0],10),f=Number.parseInt(o[1],10),c=Number.parseInt(o[2],10);function h(){return s>i||s===i&&(f>l||f===l&&c>=a)}function u(E,v,m){h()?t.stat(E,{bigint:!0},(w,x)=>{if(w)return m(w);t.stat(v,{bigint:!0},(A,R)=>A?A.code==="ENOENT"?m(null,{srcStat:x,destStat:null}):m(A):m(null,{srcStat:x,destStat:R}))}):t.stat(E,(w,x)=>{if(w)return m(w);t.stat(v,(A,R)=>A?A.code==="ENOENT"?m(null,{srcStat:x,destStat:null}):m(A):m(null,{srcStat:x,destStat:R}))})}function d(E,v){let m,w;h()?m=t.statSync(E,{bigint:!0}):m=t.statSync(E);try{h()?w=t.statSync(v,{bigint:!0}):w=t.statSync(v)}catch(x){if(x.code==="ENOENT")return{srcStat:m,destStat:null};throw x}return{srcStat:m,destStat:w}}function p(E,v,m,w){u(E,v,(x,A)=>{if(x)return w(x);let{srcStat:R,destStat:B}=A;return B&&B.ino&&B.dev&&B.ino===R.ino&&B.dev===R.dev?w(new Error("Source and destination must not be the same.")):R.isDirectory()&&g(E,v)?w(new Error(S(E,v,m))):w(null,{srcStat:R,destStat:B})})}function y(E,v,m){let{srcStat:w,destStat:x}=d(E,v);if(x&&x.ino&&x.dev&&x.ino===w.ino&&x.dev===w.dev)throw new Error("Source and destination must not be the same.");if(w.isDirectory()&&g(E,v))throw new Error(S(E,v,m));return{srcStat:w,destStat:x}}function b(E,v,m,w,x){let A=n.resolve(n.dirname(E)),R=n.resolve(n.dirname(m));if(R===A||R===n.parse(R).root)return x();h()?t.stat(R,{bigint:!0},(B,P)=>B?B.code==="ENOENT"?x():x(B):P.ino&&P.dev&&P.ino===v.ino&&P.dev===v.dev?x(new Error(S(E,m,w))):b(E,v,R,w,x)):t.stat(R,(B,P)=>B?B.code==="ENOENT"?x():x(B):P.ino&&P.dev&&P.ino===v.ino&&P.dev===v.dev?x(new Error(S(E,m,w))):b(E,v,R,w,x))}function _(E,v,m,w){let x=n.resolve(n.dirname(E)),A=n.resolve(n.dirname(m));if(A===x||A===n.parse(A).root)return;let R;try{h()?R=t.statSync(A,{bigint:!0}):R=t.statSync(A)}catch(B){if(B.code==="ENOENT")return;throw B}if(R.ino&&R.dev&&R.ino===v.ino&&R.dev===v.dev)throw new Error(S(E,m,w));return _(E,v,A,w)}function g(E,v){let m=n.resolve(E).split(n.sep).filter(x=>x),w=n.resolve(v).split(n.sep).filter(x=>x);return m.reduce((x,A,R)=>x&&w[R]===A,!0)}function S(E,v,m){return`Cannot ${m} '${E}' to a subdirectory of itself, '${v}'.`}r.exports={checkPaths:p,checkPathsSync:y,checkParentPaths:b,checkParentPathsSync:_,isSrcSubdir:g}}),X9=re((e,r)=>{"use strict";ee(),r.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}}),Z9=re((e,r)=>{"use strict";ee();var t=He(),n=fe("path"),i=It().mkdirsSync,l=j8().utimesMillisSync,a=Uo();function o(v,m,w){typeof w=="function"&&(w={filter:w}),w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
77
|
+
|
|
78
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:x,destStat:A}=a.checkPathsSync(v,m,"copy");return a.checkParentPathsSync(v,x,m,"copy"),s(A,v,m,w)}function s(v,m,w,x){if(x.filter&&!x.filter(m,w))return;let A=n.dirname(w);return t.existsSync(A)||i(A),f(v,m,w,x)}function f(v,m,w,x){if(!(x.filter&&!x.filter(m,w)))return c(v,m,w,x)}function c(v,m,w,x){let A=(x.dereference?t.statSync:t.lstatSync)(m);if(A.isDirectory())return y(A,v,m,w,x);if(A.isFile()||A.isCharacterDevice()||A.isBlockDevice())return h(A,v,m,w,x);if(A.isSymbolicLink())return S(v,m,w,x)}function h(v,m,w,x,A){return m?u(v,w,x,A):d(v,w,x,A)}function u(v,m,w,x){if(x.overwrite)return t.unlinkSync(w),d(v,m,w,x);if(x.errorOnExist)throw new Error(`'${w}' already exists`)}function d(v,m,w,x){return typeof t.copyFileSync=="function"?(t.copyFileSync(m,w),t.chmodSync(w,v.mode),x.preserveTimestamps?l(w,v.atime,v.mtime):void 0):p(v,m,w,x)}function p(v,m,w,x){let A=X9()(65536),R=t.openSync(m,"r"),B=t.openSync(w,"w",v.mode),P=0;for(;P<v.size;){let O=t.readSync(R,A,0,65536,P);t.writeSync(B,A,0,O),P+=O}x.preserveTimestamps&&t.futimesSync(B,v.atime,v.mtime),t.closeSync(R),t.closeSync(B)}function y(v,m,w,x,A){if(!m)return b(v,w,x,A);if(m&&!m.isDirectory())throw new Error(`Cannot overwrite non-directory '${x}' with directory '${w}'.`);return _(w,x,A)}function b(v,m,w,x){return t.mkdirSync(w),_(m,w,x),t.chmodSync(w,v.mode)}function _(v,m,w){t.readdirSync(v).forEach(x=>g(x,v,m,w))}function g(v,m,w,x){let A=n.join(m,v),R=n.join(w,v),{destStat:B}=a.checkPathsSync(A,R,"copy");return f(B,A,R,x)}function S(v,m,w,x){let A=t.readlinkSync(m);if(x.dereference&&(A=n.resolve(process.cwd(),A)),v){let R;try{R=t.readlinkSync(w)}catch(B){if(B.code==="EINVAL"||B.code==="UNKNOWN")return t.symlinkSync(A,w);throw B}if(x.dereference&&(R=n.resolve(process.cwd(),R)),a.isSrcSubdir(A,R))throw new Error(`Cannot copy '${A}' to a subdirectory of itself, '${R}'.`);if(t.statSync(w).isDirectory()&&a.isSrcSubdir(R,A))throw new Error(`Cannot overwrite '${R}' with '${A}'.`);return E(A,w)}else return t.symlinkSync(A,w)}function E(v,m){return t.unlinkSync(m),t.symlinkSync(v,m)}r.exports=o}),$8=re((e,r)=>{"use strict";ee(),r.exports={copySync:Z9()}}),cr=re((e,r)=>{"use strict";ee();var t=Ot().fromPromise,n=M8();function i(l){return n.access(l).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),Q9=re((e,r)=>{"use strict";ee();var t=He(),n=fe("path"),i=It().mkdirs,l=cr().pathExists,a=j8().utimesMillis,o=Uo();function s(A,R,B,P){typeof B=="function"&&!P?(P=B,B={}):typeof B=="function"&&(B={filter:B}),P=P||function(){},B=B||{},B.clobber="clobber"in B?!!B.clobber:!0,B.overwrite="overwrite"in B?!!B.overwrite:B.clobber,B.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
79
|
+
|
|
80
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),o.checkPaths(A,R,"copy",(O,D)=>{if(O)return P(O);let{srcStat:k,destStat:M}=D;o.checkParentPaths(A,k,R,"copy",L=>L?P(L):B.filter?c(f,M,A,R,B,P):f(M,A,R,B,P))})}function f(A,R,B,P,O){let D=n.dirname(B);l(D,(k,M)=>{if(k)return O(k);if(M)return h(A,R,B,P,O);i(D,L=>L?O(L):h(A,R,B,P,O))})}function c(A,R,B,P,O,D){Promise.resolve(O.filter(B,P)).then(k=>k?A(R,B,P,O,D):D(),k=>D(k))}function h(A,R,B,P,O){return P.filter?c(u,A,R,B,P,O):u(A,R,B,P,O)}function u(A,R,B,P,O){(P.dereference?t.stat:t.lstat)(R,(D,k)=>{if(D)return O(D);if(k.isDirectory())return g(k,A,R,B,P,O);if(k.isFile()||k.isCharacterDevice()||k.isBlockDevice())return d(k,A,R,B,P,O);if(k.isSymbolicLink())return w(A,R,B,P,O)})}function d(A,R,B,P,O,D){return R?p(A,B,P,O,D):y(A,B,P,O,D)}function p(A,R,B,P,O){if(P.overwrite)t.unlink(B,D=>D?O(D):y(A,R,B,P,O));else return P.errorOnExist?O(new Error(`'${B}' already exists`)):O()}function y(A,R,B,P,O){return typeof t.copyFile=="function"?t.copyFile(R,B,D=>D?O(D):_(A,B,P,O)):b(A,R,B,P,O)}function b(A,R,B,P,O){let D=t.createReadStream(R);D.on("error",k=>O(k)).once("open",()=>{let k=t.createWriteStream(B,{mode:A.mode});k.on("error",M=>O(M)).on("open",()=>D.pipe(k)).once("close",()=>_(A,B,P,O))})}function _(A,R,B,P){t.chmod(R,A.mode,O=>O?P(O):B.preserveTimestamps?a(R,A.atime,A.mtime,P):P())}function g(A,R,B,P,O,D){return R?R&&!R.isDirectory()?D(new Error(`Cannot overwrite non-directory '${P}' with directory '${B}'.`)):E(B,P,O,D):S(A,B,P,O,D)}function S(A,R,B,P,O){t.mkdir(B,D=>{if(D)return O(D);E(R,B,P,k=>k?O(k):t.chmod(B,A.mode,O))})}function E(A,R,B,P){t.readdir(A,(O,D)=>O?P(O):v(D,A,R,B,P))}function v(A,R,B,P,O){let D=A.pop();return D?m(A,D,R,B,P,O):O()}function m(A,R,B,P,O,D){let k=n.join(B,R),M=n.join(P,R);o.checkPaths(k,M,"copy",(L,U)=>{if(L)return D(L);let{destStat:W}=U;h(W,k,M,O,se=>se?D(se):v(A,B,P,O,D))})}function w(A,R,B,P,O){t.readlink(R,(D,k)=>{if(D)return O(D);if(P.dereference&&(k=n.resolve(process.cwd(),k)),A)t.readlink(B,(M,L)=>M?M.code==="EINVAL"||M.code==="UNKNOWN"?t.symlink(k,B,O):O(M):(P.dereference&&(L=n.resolve(process.cwd(),L)),o.isSrcSubdir(k,L)?O(new Error(`Cannot copy '${k}' to a subdirectory of itself, '${L}'.`)):A.isDirectory()&&o.isSrcSubdir(L,k)?O(new Error(`Cannot overwrite '${L}' with '${k}'.`)):x(k,B,O)));else return t.symlink(k,B,O)})}function x(A,R,B){t.unlink(R,P=>P?B(P):t.symlink(A,R,B))}r.exports=s}),H8=re((e,r)=>{"use strict";ee();var t=Ot().fromCallback;r.exports={copy:t(Q9())}}),J9=re((e,r)=>{"use strict";ee();var t=He(),n=fe("path"),i=fe("assert"),l=process.platform==="win32";function a(b){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(_=>{b[_]=b[_]||t[_],_=_+"Sync",b[_]=b[_]||t[_]}),b.maxBusyTries=b.maxBusyTries||3}function o(b,_,g){let S=0;typeof _=="function"&&(g=_,_={}),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i.strictEqual(typeof g,"function","rimraf: callback function required"),i(_,"rimraf: invalid options argument provided"),i.strictEqual(typeof _,"object","rimraf: options should be object"),a(_),s(b,_,function E(v){if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&S<_.maxBusyTries){S++;let m=S*100;return setTimeout(()=>s(b,_,E),m)}v.code==="ENOENT"&&(v=null)}g(v)})}function s(b,_,g){i(b),i(_),i(typeof g=="function"),_.lstat(b,(S,E)=>{if(S&&S.code==="ENOENT")return g(null);if(S&&S.code==="EPERM"&&l)return f(b,_,S,g);if(E&&E.isDirectory())return h(b,_,S,g);_.unlink(b,v=>{if(v){if(v.code==="ENOENT")return g(null);if(v.code==="EPERM")return l?f(b,_,v,g):h(b,_,v,g);if(v.code==="EISDIR")return h(b,_,v,g)}return g(v)})})}function f(b,_,g,S){i(b),i(_),i(typeof S=="function"),g&&i(g instanceof Error),_.chmod(b,438,E=>{E?S(E.code==="ENOENT"?null:g):_.stat(b,(v,m)=>{v?S(v.code==="ENOENT"?null:g):m.isDirectory()?h(b,_,g,S):_.unlink(b,S)})})}function c(b,_,g){let S;i(b),i(_),g&&i(g instanceof Error);try{_.chmodSync(b,438)}catch(E){if(E.code==="ENOENT")return;throw g}try{S=_.statSync(b)}catch(E){if(E.code==="ENOENT")return;throw g}S.isDirectory()?p(b,_,g):_.unlinkSync(b)}function h(b,_,g,S){i(b),i(_),g&&i(g instanceof Error),i(typeof S=="function"),_.rmdir(b,E=>{E&&(E.code==="ENOTEMPTY"||E.code==="EEXIST"||E.code==="EPERM")?u(b,_,S):E&&E.code==="ENOTDIR"?S(g):S(E)})}function u(b,_,g){i(b),i(_),i(typeof g=="function"),_.readdir(b,(S,E)=>{if(S)return g(S);let v=E.length,m;if(v===0)return _.rmdir(b,g);E.forEach(w=>{o(n.join(b,w),_,x=>{if(!m){if(x)return g(m=x);--v===0&&_.rmdir(b,g)}})})})}function d(b,_){let g;_=_||{},a(_),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i(_,"rimraf: missing options"),i.strictEqual(typeof _,"object","rimraf: options should be object");try{g=_.lstatSync(b)}catch(S){if(S.code==="ENOENT")return;S.code==="EPERM"&&l&&c(b,_,S)}try{g&&g.isDirectory()?p(b,_,null):_.unlinkSync(b)}catch(S){if(S.code==="ENOENT")return;if(S.code==="EPERM")return l?c(b,_,S):p(b,_,S);if(S.code!=="EISDIR")throw S;p(b,_,S)}}function p(b,_,g){i(b),i(_),g&&i(g instanceof Error);try{_.rmdirSync(b)}catch(S){if(S.code==="ENOTDIR")throw g;if(S.code==="ENOTEMPTY"||S.code==="EEXIST"||S.code==="EPERM")y(b,_);else if(S.code!=="ENOENT")throw S}}function y(b,_){if(i(b),i(_),_.readdirSync(b).forEach(g=>d(n.join(b,g),_)),l){let g=Date.now();do try{return _.rmdirSync(b,_)}catch{}while(Date.now()-g<500)}else return _.rmdirSync(b,_)}r.exports=o,o.sync=d}),Go=re((e,r)=>{"use strict";ee();var t=Ot().fromCallback,n=J9();r.exports={remove:t(n),removeSync:n.sync}}),e4=re((e,r)=>{"use strict";ee();var t=Ot().fromCallback,n=He(),i=fe("path"),l=It(),a=Go(),o=t(function(f,c){c=c||function(){},n.readdir(f,(h,u)=>{if(h)return l.mkdirs(f,c);u=u.map(p=>i.join(f,p)),d();function d(){let p=u.pop();if(!p)return c();a.remove(p,y=>{if(y)return c(y);d()})}})});function s(f){let c;try{c=n.readdirSync(f)}catch{return l.mkdirsSync(f)}c.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:s,emptydirSync:s,emptyDir:o,emptydir:o}}),t4=re((e,r)=>{"use strict";ee();var t=Ot().fromCallback,n=fe("path"),i=He(),l=It(),a=cr().pathExists;function o(f,c){function h(){i.writeFile(f,"",u=>{if(u)return c(u);c()})}i.stat(f,(u,d)=>{if(!u&&d.isFile())return c();let p=n.dirname(f);a(p,(y,b)=>{if(y)return c(y);if(b)return h();l.mkdirs(p,_=>{if(_)return c(_);h()})})})}function s(f){let c;try{c=i.statSync(f)}catch{}if(c&&c.isFile())return;let h=n.dirname(f);i.existsSync(h)||l.mkdirsSync(h),i.writeFileSync(f,"")}r.exports={createFile:t(o),createFileSync:s}}),r4=re((e,r)=>{"use strict";ee();var t=Ot().fromCallback,n=fe("path"),i=He(),l=It(),a=cr().pathExists;function o(f,c,h){function u(d,p){i.link(d,p,y=>{if(y)return h(y);h(null)})}a(c,(d,p)=>{if(d)return h(d);if(p)return h(null);i.lstat(f,y=>{if(y)return y.message=y.message.replace("lstat","ensureLink"),h(y);let b=n.dirname(c);a(b,(_,g)=>{if(_)return h(_);if(g)return u(f,c);l.mkdirs(b,S=>{if(S)return h(S);u(f,c)})})})})}function s(f,c){if(i.existsSync(c))return;try{i.lstatSync(f)}catch(u){throw u.message=u.message.replace("lstat","ensureLink"),u}let h=n.dirname(c);return i.existsSync(h)||l.mkdirsSync(h),i.linkSync(f,c)}r.exports={createLink:t(o),createLinkSync:s}}),n4=re((e,r)=>{"use strict";ee();var t=fe("path"),n=He(),i=cr().pathExists;function l(o,s,f){if(t.isAbsolute(o))return n.lstat(o,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),f(c)):f(null,{toCwd:o,toDst:o}));{let c=t.dirname(s),h=t.join(c,o);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:o}):n.lstat(o,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:o,toDst:t.relative(c,o)})))}}function a(o,s){let f;if(t.isAbsolute(o)){if(f=n.existsSync(o),!f)throw new Error("absolute srcpath does not exist");return{toCwd:o,toDst:o}}else{let c=t.dirname(s),h=t.join(c,o);if(f=n.existsSync(h),f)return{toCwd:h,toDst:o};if(f=n.existsSync(o),!f)throw new Error("relative srcpath does not exist");return{toCwd:o,toDst:t.relative(c,o)}}}r.exports={symlinkPaths:l,symlinkPathsSync:a}}),i4=re((e,r)=>{"use strict";ee();var t=He();function n(l,a,o){if(o=typeof a=="function"?a:o,a=typeof a=="function"?!1:a,a)return o(null,a);t.lstat(l,(s,f)=>{if(s)return o(null,"file");a=f&&f.isDirectory()?"dir":"file",o(null,a)})}function i(l,a){let o;if(a)return a;try{o=t.lstatSync(l)}catch{return"file"}return o&&o.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),s4=re((e,r)=>{"use strict";ee();var t=Ot().fromCallback,n=fe("path"),i=He(),l=It(),a=l.mkdirs,o=l.mkdirsSync,s=n4(),f=s.symlinkPaths,c=s.symlinkPathsSync,h=i4(),u=h.symlinkType,d=h.symlinkTypeSync,p=cr().pathExists;function y(_,g,S,E){E=typeof S=="function"?S:E,S=typeof S=="function"?!1:S,p(g,(v,m)=>{if(v)return E(v);if(m)return E(null);f(_,g,(w,x)=>{if(w)return E(w);_=x.toDst,u(x.toCwd,S,(A,R)=>{if(A)return E(A);let B=n.dirname(g);p(B,(P,O)=>{if(P)return E(P);if(O)return i.symlink(_,g,R,E);a(B,D=>{if(D)return E(D);i.symlink(_,g,R,E)})})})})})}function b(_,g,S){if(i.existsSync(g))return;let E=c(_,g);_=E.toDst,S=d(E.toCwd,S);let v=n.dirname(g);return i.existsSync(v)||o(v),i.symlinkSync(_,g,S)}r.exports={createSymlink:t(y),createSymlinkSync:b}}),o4=re((e,r)=>{"use strict";ee();var t=t4(),n=r4(),i=s4();r.exports={createFile:t.createFile,createFileSync:t.createFileSync,ensureFile:t.createFile,ensureFileSync:t.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),a4=re((e,r)=>{ee();var t;try{t=He()}catch{t=fe("fs")}function n(c,h,u){u==null&&(u=h,h={}),typeof h=="string"&&(h={encoding:h}),h=h||{};var d=h.fs||t,p=!0;"throws"in h&&(p=h.throws),d.readFile(c,h,function(y,b){if(y)return u(y);b=s(b);var _;try{_=JSON.parse(b,h?h.reviver:null)}catch(g){return p?(g.message=c+": "+g.message,u(g)):u(null,null)}u(null,_)})}function i(c,h){h=h||{},typeof h=="string"&&(h={encoding:h});var u=h.fs||t,d=!0;"throws"in h&&(d=h.throws);try{var p=u.readFileSync(c,h);return p=s(p),JSON.parse(p,h.reviver)}catch(y){if(d)throw y.message=c+": "+y.message,y;return null}}function l(c,h){var u,d=`
|
|
81
|
+
`;typeof h=="object"&&h!==null&&(h.spaces&&(u=h.spaces),h.EOL&&(d=h.EOL));var p=JSON.stringify(c,h?h.replacer:null,u);return p.replace(/\n/g,d)+d}function a(c,h,u,d){d==null&&(d=u,u={}),u=u||{};var p=u.fs||t,y="";try{y=l(h,u)}catch(b){d&&d(b,null);return}p.writeFile(c,y,u,d)}function o(c,h,u){u=u||{};var d=u.fs||t,p=l(h,u);return d.writeFileSync(c,p,u)}function s(c){return Buffer.isBuffer(c)&&(c=c.toString("utf8")),c=c.replace(/^\uFEFF/,""),c}var f={readFile:n,readFileSync:i,writeFile:a,writeFileSync:o};r.exports=f}),xh=re((e,r)=>{"use strict";ee();var t=Ot().fromCallback,n=a4();r.exports={readJson:t(n.readFile),readJsonSync:n.readFileSync,writeJson:t(n.writeFile),writeJsonSync:n.writeFileSync}}),u4=re((e,r)=>{"use strict";ee();var t=fe("path"),n=It(),i=cr().pathExists,l=xh();function a(o,s,f,c){typeof f=="function"&&(c=f,f={});let h=t.dirname(o);i(h,(u,d)=>{if(u)return c(u);if(d)return l.writeJson(o,s,f,c);n.mkdirs(h,p=>{if(p)return c(p);l.writeJson(o,s,f,c)})})}r.exports=a}),l4=re((e,r)=>{"use strict";ee();var t=He(),n=fe("path"),i=It(),l=xh();function a(o,s,f){let c=n.dirname(o);t.existsSync(c)||i.mkdirsSync(c),l.writeJsonSync(o,s,f)}r.exports=a}),c4=re((e,r)=>{"use strict";ee();var t=Ot().fromCallback,n=xh();n.outputJson=t(u4()),n.outputJsonSync=l4(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),h4=re((e,r)=>{"use strict";ee();var t=He(),n=fe("path"),i=$8().copySync,l=Go().removeSync,a=It().mkdirpSync,o=Uo();function s(u,d,p){p=p||{};let y=p.overwrite||p.clobber||!1,{srcStat:b}=o.checkPathsSync(u,d,"move");return o.checkParentPathsSync(u,b,d,"move"),a(n.dirname(d)),f(u,d,y)}function f(u,d,p){if(p)return l(d),c(u,d,p);if(t.existsSync(d))throw new Error("dest already exists.");return c(u,d,p)}function c(u,d,p){try{t.renameSync(u,d)}catch(y){if(y.code!=="EXDEV")throw y;return h(u,d,p)}}function h(u,d,p){return i(u,d,{overwrite:p,errorOnExist:!0}),l(u)}r.exports=s}),f4=re((e,r)=>{"use strict";ee(),r.exports={moveSync:h4()}}),p4=re((e,r)=>{"use strict";ee();var t=He(),n=fe("path"),i=H8().copy,l=Go().remove,a=It().mkdirp,o=cr().pathExists,s=Uo();function f(d,p,y,b){typeof y=="function"&&(b=y,y={});let _=y.overwrite||y.clobber||!1;s.checkPaths(d,p,"move",(g,S)=>{if(g)return b(g);let{srcStat:E}=S;s.checkParentPaths(d,E,p,"move",v=>{if(v)return b(v);a(n.dirname(p),m=>m?b(m):c(d,p,_,b))})})}function c(d,p,y,b){if(y)return l(p,_=>_?b(_):h(d,p,y,b));o(p,(_,g)=>_?b(_):g?b(new Error("dest already exists.")):h(d,p,y,b))}function h(d,p,y,b){t.rename(d,p,_=>_?_.code!=="EXDEV"?b(_):u(d,p,y,b):b())}function u(d,p,y,b){i(d,p,{overwrite:y,errorOnExist:!0},_=>_?b(_):l(d,b))}r.exports=f}),d4=re((e,r)=>{"use strict";ee();var t=Ot().fromCallback;r.exports={move:t(p4())}}),m4=re((e,r)=>{"use strict";ee();var t=Ot().fromCallback,n=He(),i=fe("path"),l=It(),a=cr().pathExists;function o(f,c,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,c,h,u);l.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,c,h,u)})})}function s(f,...c){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...c);l.mkdirsSync(h),n.writeFileSync(f,...c)}r.exports={outputFile:t(o),outputFileSync:s}}),y4=re((e,r)=>{"use strict";ee(),r.exports=Object.assign({},M8(),$8(),H8(),e4(),o4(),c4(),It(),f4(),d4(),m4(),cr(),Go());var t=fe("fs");Object.getOwnPropertyDescriptor(t,"promises")&&Object.defineProperty(r.exports,"promises",{get(){return t.promises}})});ee();ee();var qU=at(H9());ee();ee();function g4(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}ee();ee();function sh(e){return sh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},sh(e)}ee();function b4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v4(e,r){if(r&&(sh(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b4(e)}ee();function Ro(e){return Ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ro(e)}ee();ee();function Mi(e,r){return Mi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Mi(e,r)}function _4(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Mi(e,r)}ee();ee();function w4(e){return Function.toString.call(e).indexOf("[native code]")!==-1}ee();ee();function E4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Co(e,r,t){return E4()?Co=Reflect.construct.bind():Co=function(n,i,l){var a=[null];a.push.apply(a,i);var o=Function.bind.apply(n,a),s=new o;return l&&Mi(s,l.prototype),s},Co.apply(null,arguments)}function oh(e){var r=typeof Map=="function"?new Map:void 0;return oh=function(t){if(t===null||!w4(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return Co(t,arguments,Ro(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Mi(n,t)},oh(e)}var UU=at(V9()),GU=at(y4()),WU=function(e){_4(r,e);function r(t){var n;return g4(this,r),n=v4(this,Ro(r).call(this,"No package.json could be found upwards from the directory ".concat(t))),n.directory=t,n}return r}(oh(Error));ee();var S4=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function r(n){return n.reduce((i,l)=>[].concat(i,l),[])}e.flatten=r;function t(n,i){let l=[[]],a=0;for(let o of n)i(o)?(a++,l[a]=[]):l[a].push(o);return l}e.splitWhen=t}),x4=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function r(t){return t.code==="ENOENT"}e.isEnoentCodeError=r}),A4=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),C4=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var r=fe("path"),t=2,n=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(s){return s.replace(/\\/g,"/")}e.unixify=i;function l(s,f){return r.resolve(s,f)}e.makeAbsolute=l;function a(s){return s.replace(n,"\\$2")}e.escape=a;function o(s){if(s.charAt(0)==="."){let f=s.charAt(1);if(f==="/"||f==="\\")return s.slice(t)}return s}e.removeLeadingDotSegment=o}),k4=re((e,r)=>{ee(),r.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(n[2])return!0;t=t.slice(n.index+n[0].length)}return!1}}),D4=re((e,r)=>{ee();var t=k4(),n={"{":"}","(":")","[":"]"},i=function(a){if(a[0]==="!")return!0;for(var o=0,s=-2,f=-2,c=-2,h=-2,u=-2;o<a.length;){if(a[o]==="*"||a[o+1]==="?"&&/[\].+)]/.test(a[o])||f!==-1&&a[o]==="["&&a[o+1]!=="]"&&(f<o&&(f=a.indexOf("]",o)),f>o&&(u===-1||u>f||(u=a.indexOf("\\",o),u===-1||u>f)))||c!==-1&&a[o]==="{"&&a[o+1]!=="}"&&(c=a.indexOf("}",o),c>o&&(u=a.indexOf("\\",o),u===-1||u>c))||h!==-1&&a[o]==="("&&a[o+1]==="?"&&/[:!=]/.test(a[o+2])&&a[o+3]!==")"&&(h=a.indexOf(")",o),h>o&&(u=a.indexOf("\\",o),u===-1||u>h))||s!==-1&&a[o]==="("&&a[o+1]!=="|"&&(s<o&&(s=a.indexOf("|",o)),s!==-1&&a[s+1]!==")"&&(h=a.indexOf(")",s),h>s&&(u=a.indexOf("\\",s),u===-1||u>h))))return!0;if(a[o]==="\\"){var d=a[o+1];o+=2;var p=n[d];if(p){var y=a.indexOf(p,o);y!==-1&&(o=y+1)}if(a[o]==="!")return!0}else o++}return!1},l=function(a){if(a[0]==="!")return!0;for(var o=0;o<a.length;){if(/[*?{}()[\]]/.test(a[o]))return!0;if(a[o]==="\\"){var s=a[o+1];o+=2;var f=n[s];if(f){var c=a.indexOf(f,o);c!==-1&&(o=c+1)}if(a[o]==="!")return!0}else o++}return!1};r.exports=function(a,o){if(typeof a!="string"||a==="")return!1;if(t(a))return!0;var s=i;return o&&o.strict===!1&&(s=l),s(a)}}),R4=re((e,r)=>{"use strict";ee();var t=D4(),n=fe("path").posix.dirname,i=fe("os").platform()==="win32",l="/",a=/\\/g,o=/[\{\[].*[\}\]]$/,s=/(^|[^\\])([\{\[]|\([^\)]+$)/,f=/\\([\!\*\?\|\[\]\(\)\{\}])/g;r.exports=function(c,h){var u=Object.assign({flipBackslashes:!0},h);u.flipBackslashes&&i&&c.indexOf(l)<0&&(c=c.replace(a,l)),o.test(c)&&(c+=l),c+="a";do c=n(c);while(t(c)||s.test(c));return c.replace(f,"$1")}}),Ah=re(e=>{"use strict";ee(),e.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1,e.find=(r,t)=>r.nodes.find(n=>n.type===t),e.exceedsLimit=(r,t,n=1,i)=>i===!1||!e.isInteger(r)||!e.isInteger(t)?!1:(Number(t)-Number(r))/Number(n)>=i,e.escapeNode=(r,t=0,n)=>{let i=r.nodes[t];!i||(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=r=>r.type!=="brace"||r.commas>>0+r.ranges>>0?!1:(r.invalid=!0,!0),e.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:!(r.commas>>0+r.ranges>>0)||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1,e.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0,e.reduce=r=>r.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]),e.flatten=(...r)=>{let t=[],n=i=>{for(let l=0;l<i.length;l++){let a=i[l];Array.isArray(a)?n(a,t):a!==void 0&&t.push(a)}return t};return n(r),t}}),Ch=re((e,r)=>{"use strict";ee();var t=Ah();r.exports=(n,i={})=>{let l=(a,o={})=>{let s=i.escapeInvalid&&t.isInvalidBrace(o),f=a.invalid===!0&&i.escapeInvalid===!0,c="";if(a.value)return(s||f)&&t.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(let h of a.nodes)c+=l(h);return c};return l(n)}}),O4=re((e,r)=>{"use strict";ee(),r.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}}),T4=re((e,r)=>{"use strict";ee();var t=O4(),n=(g,S,E)=>{if(t(g)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(S===void 0||g===S)return String(g);if(t(S)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...E};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),w=String(v.shorthand),x=String(v.capture),A=String(v.wrap),R=g+":"+S+"="+m+w+x+A;if(n.cache.hasOwnProperty(R))return n.cache[R].result;let B=Math.min(g,S),P=Math.max(g,S);if(Math.abs(B-P)===1){let L=g+"|"+S;return v.capture?`(${L})`:v.wrap===!1?L:`(?:${L})`}let O=b(g)||b(S),D={min:g,max:S,a:B,b:P},k=[],M=[];if(O&&(D.isPadded=O,D.maxLen=String(D.max).length),B<0){let L=P<0?Math.abs(P):1;M=o(L,Math.abs(B),D,v),B=D.a=0}return P>=0&&(k=o(B,P,D,v)),D.negatives=M,D.positives=k,D.result=i(M,k,v),v.capture===!0?D.result=`(${D.result})`:v.wrap!==!1&&k.length+M.length>1&&(D.result=`(?:${D.result})`),n.cache[R]=D,D.result};function i(g,S,E){let v=s(g,S,"-",!1,E)||[],m=s(S,g,"",!1,E)||[],w=s(g,S,"-?",!0,E)||[];return v.concat(w).concat(m).join("|")}function l(g,S){let E=1,v=1,m=u(g,E),w=new Set([S]);for(;g<=m&&m<=S;)w.add(m),E+=1,m=u(g,E);for(m=d(S+1,v)-1;g<m&&m<=S;)w.add(m),v+=1,m=d(S+1,v)-1;return w=[...w],w.sort(c),w}function a(g,S,E){if(g===S)return{pattern:g,count:[],digits:0};let v=f(g,S),m=v.length,w="",x=0;for(let A=0;A<m;A++){let[R,B]=v[A];R===B?w+=R:R!=="0"||B!=="9"?w+=y(R,B,E):x++}return x&&(w+=E.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[x],digits:m}}function o(g,S,E,v){let m=l(g,S),w=[],x=g,A;for(let R=0;R<m.length;R++){let B=m[R],P=a(String(x),String(B),v),O="";if(!E.isPadded&&A&&A.pattern===P.pattern){A.count.length>1&&A.count.pop(),A.count.push(P.count[0]),A.string=A.pattern+p(A.count),x=B+1;continue}E.isPadded&&(O=_(B,E,v)),P.string=O+P.pattern+p(P.count),w.push(P),x=B+1,A=P}return w}function s(g,S,E,v,m){let w=[];for(let x of g){let{string:A}=x;!v&&!h(S,"string",A)&&w.push(E+A),v&&h(S,"string",A)&&w.push(E+A)}return w}function f(g,S){let E=[];for(let v=0;v<g.length;v++)E.push([g[v],S[v]]);return E}function c(g,S){return g>S?1:S>g?-1:0}function h(g,S,E){return g.some(v=>v[S]===E)}function u(g,S){return Number(String(g).slice(0,-S)+"9".repeat(S))}function d(g,S){return g-g%Math.pow(10,S)}function p(g){let[S=0,E=""]=g;return E||S>1?`{${S+(E?","+E:"")}}`:""}function y(g,S,E){return`[${g}${S-g===1?"":"-"}${S}]`}function b(g){return/^-?(0+)\d/.test(g)}function _(g,S,E){if(!S.isPadded)return g;let v=Math.abs(S.maxLen-String(g).length),m=E.relaxZeros!==!1;switch(v){case 0:return"";case 1:return m?"0?":"0";case 2:return m?"0{0,2}":"00";default:return m?`0{0,${v}}`:`0{${v}}`}}n.cache={},n.clearCache=()=>n.cache={},r.exports=n}),q8=re((e,r)=>{"use strict";ee();var t=fe("util"),n=T4(),i=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),l=v=>m=>v===!0?Number(m):String(m),a=v=>typeof v=="number"||typeof v=="string"&&v!=="",o=v=>Number.isInteger(+v),s=v=>{let m=`${v}`,w=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++w]==="0";);return w>0},f=(v,m,w)=>typeof v=="string"||typeof m=="string"?!0:w.stringify===!0,c=(v,m,w)=>{if(m>0){let x=v[0]==="-"?"-":"";x&&(v=v.slice(1)),v=x+v.padStart(x?m-1:m,"0")}return w===!1?String(v):v},h=(v,m)=>{let w=v[0]==="-"?"-":"";for(w&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return w?"-"+v:v},u=(v,m)=>{v.negatives.sort((B,P)=>B<P?-1:B>P?1:0),v.positives.sort((B,P)=>B<P?-1:B>P?1:0);let w=m.capture?"":"?:",x="",A="",R;return v.positives.length&&(x=v.positives.join("|")),v.negatives.length&&(A=`-(${w}${v.negatives.join("|")})`),x&&A?R=`${x}|${A}`:R=x||A,m.wrap?`(${w}${R})`:R},d=(v,m,w,x)=>{if(w)return n(v,m,{wrap:!1,...x});let A=String.fromCharCode(v);if(v===m)return A;let R=String.fromCharCode(m);return`[${A}-${R}]`},p=(v,m,w)=>{if(Array.isArray(v)){let x=w.wrap===!0,A=w.capture?"":"?:";return x?`(${A}${v.join("|")})`:v.join("|")}return n(v,m,w)},y=(...v)=>new RangeError("Invalid range arguments: "+t.inspect(...v)),b=(v,m,w)=>{if(w.strictRanges===!0)throw y([v,m]);return[]},_=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},g=(v,m,w=1,x={})=>{let A=Number(v),R=Number(m);if(!Number.isInteger(A)||!Number.isInteger(R)){if(x.strictRanges===!0)throw y([v,m]);return[]}A===0&&(A=0),R===0&&(R=0);let B=A>R,P=String(v),O=String(m),D=String(w);w=Math.max(Math.abs(w),1);let k=s(P)||s(O)||s(D),M=k?Math.max(P.length,O.length,D.length):0,L=k===!1&&f(v,m,x)===!1,U=x.transform||l(L);if(x.toRegex&&w===1)return d(h(v,M),h(m,M),!0,x);let W={negatives:[],positives:[]},se=F=>W[F<0?"negatives":"positives"].push(Math.abs(F)),I=[],N=0;for(;B?A>=R:A<=R;)x.toRegex===!0&&w>1?se(A):I.push(c(U(A,N),M,L)),A=B?A-w:A+w,N++;return x.toRegex===!0?w>1?u(W,x):p(I,null,{wrap:!1,...x}):I},S=(v,m,w=1,x={})=>{if(!o(v)&&v.length>1||!o(m)&&m.length>1)return b(v,m,x);let A=x.transform||(L=>String.fromCharCode(L)),R=`${v}`.charCodeAt(0),B=`${m}`.charCodeAt(0),P=R>B,O=Math.min(R,B),D=Math.max(R,B);if(x.toRegex&&w===1)return d(O,D,!1,x);let k=[],M=0;for(;P?R>=B:R<=B;)k.push(A(R,M)),R=P?R-w:R+w,M++;return x.toRegex===!0?p(k,null,{wrap:!1,options:x}):k},E=(v,m,w,x={})=>{if(m==null&&a(v))return[v];if(!a(v)||!a(m))return b(v,m,x);if(typeof w=="function")return E(v,m,1,{transform:w});if(i(w))return E(v,m,0,w);let A={...x};return A.capture===!0&&(A.wrap=!0),w=w||A.step||1,o(w)?o(v)&&o(m)?g(v,m,w,A):S(v,m,Math.max(Math.abs(w),1),A):w!=null&&!i(w)?_(w,A):E(v,m,1,w)};r.exports=E}),F4=re((e,r)=>{"use strict";ee();var t=q8(),n=Ah(),i=(l,a={})=>{let o=(s,f={})=>{let c=n.isInvalidBrace(f),h=s.invalid===!0&&a.escapeInvalid===!0,u=c===!0||h===!0,d=a.escapeInvalid===!0?"\\":"",p="";if(s.isOpen===!0||s.isClose===!0)return d+s.value;if(s.type==="open")return u?d+s.value:"(";if(s.type==="close")return u?d+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":u?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let y=n.reduce(s.nodes),b=t(...y,{...a,wrap:!1,toRegex:!0});if(b.length!==0)return y.length>1&&b.length>1?`(${b})`:b}if(s.nodes)for(let y of s.nodes)p+=o(y,s);return p};return o(l)};r.exports=i}),P4=re((e,r)=>{"use strict";ee();var t=q8(),n=Ch(),i=Ah(),l=(o="",s="",f=!1)=>{let c=[];if(o=[].concat(o),s=[].concat(s),!s.length)return o;if(!o.length)return f?i.flatten(s).map(h=>`{${h}}`):s;for(let h of o)if(Array.isArray(h))for(let u of h)c.push(l(u,s,f));else for(let u of s)f===!0&&typeof u=="string"&&(u=`{${u}}`),c.push(Array.isArray(u)?l(h,u,f):h+u);return i.flatten(c)},a=(o,s={})=>{let f=s.rangeLimit===void 0?1e3:s.rangeLimit,c=(h,u={})=>{h.queue=[];let d=u,p=u.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(h.invalid||h.dollar){p.push(l(p.pop(),n(h,s)));return}if(h.type==="brace"&&h.invalid!==!0&&h.nodes.length===2){p.push(l(p.pop(),["{}"]));return}if(h.nodes&&h.ranges>0){let g=i.reduce(h.nodes);if(i.exceedsLimit(...g,s.step,f))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=t(...g,s);S.length===0&&(S=n(h,s)),p.push(l(p.pop(),S)),h.nodes=[];return}let y=i.encloseBrace(h),b=h.queue,_=h;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,b=_.queue;for(let g=0;g<h.nodes.length;g++){let S=h.nodes[g];if(S.type==="comma"&&h.type==="brace"){g===1&&b.push(""),b.push("");continue}if(S.type==="close"){p.push(l(p.pop(),b,y));continue}if(S.value&&S.type!=="open"){b.push(l(b.pop(),S.value));continue}S.nodes&&c(S,h)}return b};return i.flatten(c(o))};r.exports=a}),B4=re((e,r)=>{"use strict";ee(),r.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
82
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),I4=re((e,r)=>{"use strict";ee();var t=Ch(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:l,CHAR_COMMA:a,CHAR_DOT:o,CHAR_LEFT_PARENTHESES:s,CHAR_RIGHT_PARENTHESES:f,CHAR_LEFT_CURLY_BRACE:c,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=B4(),g=(S,E={})=>{if(typeof S!="string")throw new TypeError("Expected a string");let v=E||{},m=typeof v.maxLength=="number"?Math.min(n,v.maxLength):n;if(S.length>m)throw new SyntaxError(`Input length (${S.length}), exceeds max characters (${m})`);let w={type:"root",input:S,nodes:[]},x=[w],A=w,R=w,B=0,P=S.length,O=0,D=0,k,M={},L=()=>S[O++],U=W=>{if(W.type==="text"&&R.type==="dot"&&(R.type="text"),R&&R.type==="text"&&W.type==="text"){R.value+=W.value;return}return A.nodes.push(W),W.parent=A,W.prev=R,R=W,W};for(U({type:"bos"});O<P;)if(A=x[x.length-1],k=L(),!(k===_||k===b)){if(k===i){U({type:"text",value:(E.keepEscaping?k:"")+L()});continue}if(k===d){U({type:"text",value:"\\"+k});continue}if(k===u){B++;let W=!0,se;for(;O<P&&(se=L());){if(k+=se,se===u){B++;continue}if(se===i){k+=L();continue}if(se===d&&(B--,B===0))break}U({type:"text",value:k});continue}if(k===s){A=U({type:"paren",nodes:[]}),x.push(A),U({type:"text",value:k});continue}if(k===f){if(A.type!=="paren"){U({type:"text",value:k});continue}A=x.pop(),U({type:"text",value:k}),A=x[x.length-1];continue}if(k===p||k===y||k===l){let W=k,se;for(E.keepQuotes!==!0&&(k="");O<P&&(se=L());){if(se===i){k+=se+L();continue}if(se===W){E.keepQuotes===!0&&(k+=se);break}k+=se}U({type:"text",value:k});continue}if(k===c){D++;let W=R.value&&R.value.slice(-1)==="$"||A.dollar===!0;A=U({type:"brace",open:!0,close:!1,dollar:W,depth:D,commas:0,ranges:0,nodes:[]}),x.push(A),U({type:"open",value:k});continue}if(k===h){if(A.type!=="brace"){U({type:"text",value:k});continue}let W="close";A=x.pop(),A.close=!0,U({type:W,value:k}),D--,A=x[x.length-1];continue}if(k===a&&D>0){if(A.ranges>0){A.ranges=0;let W=A.nodes.shift();A.nodes=[W,{type:"text",value:t(A)}]}U({type:"comma",value:k}),A.commas++;continue}if(k===o&&D>0&&A.commas===0){let W=A.nodes;if(D===0||W.length===0){U({type:"text",value:k});continue}if(R.type==="dot"){if(A.range=[],R.value+=k,R.type="range",A.nodes.length!==3&&A.nodes.length!==5){A.invalid=!0,A.ranges=0,R.type="text";continue}A.ranges++,A.args=[];continue}if(R.type==="range"){W.pop();let se=W[W.length-1];se.value+=R.value+k,R=se,A.ranges--;continue}U({type:"dot",value:k});continue}U({type:"text",value:k})}do if(A=x.pop(),A.type!=="root"){A.nodes.forEach(I=>{I.nodes||(I.type==="open"&&(I.isOpen=!0),I.type==="close"&&(I.isClose=!0),I.nodes||(I.type="text"),I.invalid=!0)});let W=x[x.length-1],se=W.nodes.indexOf(A);W.nodes.splice(se,1,...A.nodes)}while(x.length>0);return U({type:"eos"}),w};r.exports=g}),L4=re((e,r)=>{"use strict";ee();var t=Ch(),n=F4(),i=P4(),l=I4(),a=(o,s={})=>{let f=[];if(Array.isArray(o))for(let c of o){let h=a.create(c,s);Array.isArray(h)?f.push(...h):f.push(h)}else f=[].concat(a.create(o,s));return s&&s.expand===!0&&s.nodupes===!0&&(f=[...new Set(f)]),f};a.parse=(o,s={})=>l(o,s),a.stringify=(o,s={})=>t(typeof o=="string"?a.parse(o,s):o,s),a.compile=(o,s={})=>(typeof o=="string"&&(o=a.parse(o,s)),n(o,s)),a.expand=(o,s={})=>{typeof o=="string"&&(o=a.parse(o,s));let f=i(o,s);return s.noempty===!0&&(f=f.filter(Boolean)),s.nodupes===!0&&(f=[...new Set(f)]),f},a.create=(o,s={})=>o===""||o.length<3?[o]:s.expand!==!0?a.compile(o,s):a.expand(o,s),r.exports=a}),Wo=re((e,r)=>{"use strict";ee();var t=fe("path"),n="\\\\/",i=`[^${n}]`,l="\\.",a="\\+",o="\\?",s="\\/",f="(?=.)",c="[^/]",h=`(?:${s}|$)`,u=`(?:^|${s})`,d=`${l}{1,2}${h}`,p=`(?!${l})`,y=`(?!${u}${d})`,b=`(?!${l}{0,1}${h})`,_=`(?!${d})`,g=`[^.${s}]`,S=`${c}*?`,E={DOT_LITERAL:l,PLUS_LITERAL:a,QMARK_LITERAL:o,SLASH_LITERAL:s,ONE_CHAR:f,QMARK:c,END_ANCHOR:h,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:_,QMARK_NO_DOT:g,STAR:S,START_ANCHOR:u},v={...E,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${l}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${l})`,NO_DOTS:`(?!(?:^|[${n}])${l}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${l}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${l}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},m={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:m,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:t.sep,extglobChars(w){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${w.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(w){return w===!0?v:E}}}),zo=re(e=>{"use strict";ee();var r=fe("path"),t=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:l,REGEX_SPECIAL_CHARS_GLOBAL:a}=Wo();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>l.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(a,"\\$1"),e.toPosixSlashes=o=>o.replace(n,"/"),e.removeBackslashes=o=>o.replace(i,s=>s==="\\"?"":s),e.supportsLookbehinds=()=>{let o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},e.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:t===!0||r.sep==="\\",e.escapeLast=(o,s,f)=>{let c=o.lastIndexOf(s,f);return c===-1?o:o[c-1]==="\\"?e.escapeLast(o,s,c-1):`${o.slice(0,c)}\\${o.slice(c)}`},e.removePrefix=(o,s={})=>{let f=o;return f.startsWith("./")&&(f=f.slice(2),s.prefix="./"),f},e.wrapOutput=(o,s={},f={})=>{let c=f.contains?"":"^",h=f.contains?"":"$",u=`${c}(?:${o})${h}`;return s.negated===!0&&(u=`(?:^(?!${u}).*$)`),u}}),M4=re((e,r)=>{"use strict";ee();var t=zo(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:l,CHAR_COMMA:a,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:s,CHAR_FORWARD_SLASH:f,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:_}=Wo(),g=v=>v===f||v===l,S=v=>{v.isPrefix!==!0&&(v.depth=v.isGlobstar?1/0:1)},E=(v,m)=>{let w=m||{},x=v.length-1,A=w.parts===!0||w.scanToEnd===!0,R=[],B=[],P=[],O=v,D=-1,k=0,M=0,L=!1,U=!1,W=!1,se=!1,I=!1,N=!1,F=!1,V=!1,G=!1,J=!1,j=0,z,Q,le={value:"",depth:0,isGlob:!1},ue=()=>D>=x,Y=()=>O.charCodeAt(D+1),ne=()=>(z=Q,O.charCodeAt(++D));for(;D<x;){Q=ne();let X;if(Q===l){F=le.backslashes=!0,Q=ne(),Q===c&&(N=!0);continue}if(N===!0||Q===c){for(j++;ue()!==!0&&(Q=ne());){if(Q===l){F=le.backslashes=!0,ne();continue}if(Q===c){j++;continue}if(N!==!0&&Q===o&&(Q=ne())===o){if(L=le.isBrace=!0,W=le.isGlob=!0,J=!0,A===!0)continue;break}if(N!==!0&&Q===a){if(L=le.isBrace=!0,W=le.isGlob=!0,J=!0,A===!0)continue;break}if(Q===y&&(j--,j===0)){N=!1,L=le.isBrace=!0,J=!0;break}}if(A===!0)continue;break}if(Q===f){if(R.push(D),B.push(le),le={value:"",depth:0,isGlob:!1},J===!0)continue;if(z===o&&D===k+1){k+=2;continue}M=D+1;continue}if(w.noext!==!0&&(Q===d||Q===i||Q===n||Q===p||Q===s)&&Y()===h){if(W=le.isGlob=!0,se=le.isExtglob=!0,J=!0,Q===s&&D===k&&(G=!0),A===!0){for(;ue()!==!0&&(Q=ne());){if(Q===l){F=le.backslashes=!0,Q=ne();continue}if(Q===b){W=le.isGlob=!0,J=!0;break}}continue}break}if(Q===n){if(z===n&&(I=le.isGlobstar=!0),W=le.isGlob=!0,J=!0,A===!0)continue;break}if(Q===p){if(W=le.isGlob=!0,J=!0,A===!0)continue;break}if(Q===u){for(;ue()!==!0&&(X=ne());){if(X===l){F=le.backslashes=!0,ne();continue}if(X===_){U=le.isBracket=!0,W=le.isGlob=!0,J=!0;break}}if(A===!0)continue;break}if(w.nonegate!==!0&&Q===s&&D===k){V=le.negated=!0,k++;continue}if(w.noparen!==!0&&Q===h){if(W=le.isGlob=!0,A===!0){for(;ue()!==!0&&(Q=ne());){if(Q===h){F=le.backslashes=!0,Q=ne();continue}if(Q===b){J=!0;break}}continue}break}if(W===!0){if(J=!0,A===!0)continue;break}}w.noext===!0&&(se=!1,W=!1);let T=O,q="",C="";k>0&&(q=O.slice(0,k),O=O.slice(k),M-=k),T&&W===!0&&M>0?(T=O.slice(0,M),C=O.slice(M)):W===!0?(T="",C=O):T=O,T&&T!==""&&T!=="/"&&T!==O&&g(T.charCodeAt(T.length-1))&&(T=T.slice(0,-1)),w.unescape===!0&&(C&&(C=t.removeBackslashes(C)),T&&F===!0&&(T=t.removeBackslashes(T)));let H={prefix:q,input:v,start:k,base:T,glob:C,isBrace:L,isBracket:U,isGlob:W,isExtglob:se,isGlobstar:I,negated:V,negatedExtglob:G};if(w.tokens===!0&&(H.maxDepth=0,g(Q)||B.push(le),H.tokens=B),w.parts===!0||w.tokens===!0){let X;for(let ie=0;ie<R.length;ie++){let me=X?X+1:k,ae=R[ie],pe=v.slice(me,ae);w.tokens&&(ie===0&&k!==0?(B[ie].isPrefix=!0,B[ie].value=q):B[ie].value=pe,S(B[ie]),H.maxDepth+=B[ie].depth),(ie!==0||pe!=="")&&P.push(pe),X=ae}if(X&&X+1<v.length){let ie=v.slice(X+1);P.push(ie),w.tokens&&(B[B.length-1].value=ie,S(B[B.length-1]),H.maxDepth+=B[B.length-1].depth)}H.slashes=R,H.parts=P}return H};r.exports=E}),N4=re((e,r)=>{"use strict";ee();var t=Wo(),n=zo(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:l,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:s}=t,f=(u,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...u,d);u.sort();let p=`[${u.join("-")}]`;try{new RegExp(p)}catch{return u.map(y=>n.escapeRegex(y)).join("..")}return p},c=(u,d)=>`Missing ${u}: "${d}" - use "\\\\${d}" to match literal characters`,h=(u,d)=>{if(typeof u!="string")throw new TypeError("Expected a string");u=s[u]||u;let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);let _={type:"bos",value:"",output:p.prepend||""},g=[_],S=p.capture?"":"?:",E=n.isWindows(d),v=t.globChars(E),m=t.extglobChars(v),{DOT_LITERAL:w,PLUS_LITERAL:x,SLASH_LITERAL:A,ONE_CHAR:R,DOTS_SLASH:B,NO_DOT:P,NO_DOT_SLASH:O,NO_DOTS_SLASH:D,QMARK:k,QMARK_NO_DOT:M,STAR:L,START_ANCHOR:U}=v,W=ae=>`(${S}(?:(?!${U}${ae.dot?B:w}).)*?)`,se=p.dot?"":P,I=p.dot?k:M,N=p.bash===!0?W(p):L;p.capture&&(N=`(${N})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);let F={input:u,index:-1,start:0,dot:p.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};u=n.removePrefix(u,F),b=u.length;let V=[],G=[],J=[],j=_,z,Q=()=>F.index===b-1,le=F.peek=(ae=1)=>u[F.index+ae],ue=F.advance=()=>u[++F.index]||"",Y=()=>u.slice(F.index+1),ne=(ae="",pe=0)=>{F.consumed+=ae,F.index+=pe},T=ae=>{F.output+=ae.output!=null?ae.output:ae.value,ne(ae.value)},q=()=>{let ae=1;for(;le()==="!"&&(le(2)!=="("||le(3)==="?");)ue(),F.start++,ae++;return ae%2===0?!1:(F.negated=!0,F.start++,!0)},C=ae=>{F[ae]++,J.push(ae)},H=ae=>{F[ae]--,J.pop()},X=ae=>{if(j.type==="globstar"){let pe=F.braces>0&&(ae.type==="comma"||ae.type==="brace"),oe=ae.extglob===!0||V.length&&(ae.type==="pipe"||ae.type==="paren");ae.type!=="slash"&&ae.type!=="paren"&&!pe&&!oe&&(F.output=F.output.slice(0,-j.output.length),j.type="star",j.value="*",j.output=N,F.output+=j.output)}if(V.length&&ae.type!=="paren"&&(V[V.length-1].inner+=ae.value),(ae.value||ae.output)&&T(ae),j&&j.type==="text"&&ae.type==="text"){j.value+=ae.value,j.output=(j.output||"")+ae.value;return}ae.prev=j,g.push(ae),j=ae},ie=(ae,pe)=>{let oe={...m[pe],conditions:1,inner:""};oe.prev=j,oe.parens=F.parens,oe.output=F.output;let ge=(p.capture?"(":"")+oe.open;C("parens"),X({type:ae,value:pe,output:F.output?"":R}),X({type:"paren",extglob:!0,value:ue(),output:ge}),V.push(oe)},me=ae=>{let pe=ae.close+(p.capture?")":""),oe;if(ae.type==="negate"){let ge=N;if(ae.inner&&ae.inner.length>1&&ae.inner.includes("/")&&(ge=W(p)),(ge!==N||Q()||/^\)+$/.test(Y()))&&(pe=ae.close=`)$))${ge}`),ae.inner.includes("*")&&(oe=Y())&&/^\.[^\\/.]+$/.test(oe)){let Ee=h(oe,{...d,fastpaths:!1}).output;pe=ae.close=`)${Ee})${ge})`}ae.prev.type==="bos"&&(F.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:z,output:pe}),H("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(u)){let ae=!1,pe=u.replace(o,(oe,ge,Ee,Ce,K,$)=>Ce==="\\"?(ae=!0,oe):Ce==="?"?ge?ge+Ce+(K?k.repeat(K.length):""):$===0?I+(K?k.repeat(K.length):""):k.repeat(Ee.length):Ce==="."?w.repeat(Ee.length):Ce==="*"?ge?ge+Ce+(K?N:""):N:ge?oe:`\\${oe}`);return ae===!0&&(p.unescape===!0?pe=pe.replace(/\\/g,""):pe=pe.replace(/\\+/g,oe=>oe.length%2===0?"\\\\":oe?"\\":"")),pe===u&&p.contains===!0?(F.output=u,F):(F.output=n.wrapOutput(pe,F,d),F)}for(;!Q();){if(z=ue(),z==="\0")continue;if(z==="\\"){let oe=le();if(oe==="/"&&p.bash!==!0||oe==="."||oe===";")continue;if(!oe){z+="\\",X({type:"text",value:z});continue}let ge=/^\\+/.exec(Y()),Ee=0;if(ge&&ge[0].length>2&&(Ee=ge[0].length,F.index+=Ee,Ee%2!==0&&(z+="\\")),p.unescape===!0?z=ue():z+=ue(),F.brackets===0){X({type:"text",value:z});continue}}if(F.brackets>0&&(z!=="]"||j.value==="["||j.value==="[^")){if(p.posix!==!1&&z===":"){let oe=j.value.slice(1);if(oe.includes("[")&&(j.posix=!0,oe.includes(":"))){let ge=j.value.lastIndexOf("["),Ee=j.value.slice(0,ge),Ce=j.value.slice(ge+2),K=l[Ce];if(K){j.value=Ee+K,F.backtrack=!0,ue(),!_.output&&g.indexOf(j)===1&&(_.output=R);continue}}}(z==="["&&le()!==":"||z==="-"&&le()==="]")&&(z=`\\${z}`),z==="]"&&(j.value==="["||j.value==="[^")&&(z=`\\${z}`),p.posix===!0&&z==="!"&&j.value==="["&&(z="^"),j.value+=z,T({value:z});continue}if(F.quotes===1&&z!=='"'){z=n.escapeRegex(z),j.value+=z,T({value:z});continue}if(z==='"'){F.quotes=F.quotes===1?0:1,p.keepQuotes===!0&&X({type:"text",value:z});continue}if(z==="("){C("parens"),X({type:"paren",value:z});continue}if(z===")"){if(F.parens===0&&p.strictBrackets===!0)throw new SyntaxError(c("opening","("));let oe=V[V.length-1];if(oe&&F.parens===oe.parens+1){me(V.pop());continue}X({type:"paren",value:z,output:F.parens?")":"\\)"}),H("parens");continue}if(z==="["){if(p.nobracket===!0||!Y().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(c("closing","]"));z=`\\${z}`}else C("brackets");X({type:"bracket",value:z});continue}if(z==="]"){if(p.nobracket===!0||j&&j.type==="bracket"&&j.value.length===1){X({type:"text",value:z,output:`\\${z}`});continue}if(F.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(c("opening","["));X({type:"text",value:z,output:`\\${z}`});continue}H("brackets");let oe=j.value.slice(1);if(j.posix!==!0&&oe[0]==="^"&&!oe.includes("/")&&(z=`/${z}`),j.value+=z,T({value:z}),p.literalBrackets===!1||n.hasRegexChars(oe))continue;let ge=n.escapeRegex(j.value);if(F.output=F.output.slice(0,-j.value.length),p.literalBrackets===!0){F.output+=ge,j.value=ge;continue}j.value=`(${S}${ge}|${j.value})`,F.output+=j.value;continue}if(z==="{"&&p.nobrace!==!0){C("braces");let oe={type:"brace",value:z,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};G.push(oe),X(oe);continue}if(z==="}"){let oe=G[G.length-1];if(p.nobrace===!0||!oe){X({type:"text",value:z,output:z});continue}let ge=")";if(oe.dots===!0){let Ee=g.slice(),Ce=[];for(let K=Ee.length-1;K>=0&&(g.pop(),Ee[K].type!=="brace");K--)Ee[K].type!=="dots"&&Ce.unshift(Ee[K].value);ge=f(Ce,p),F.backtrack=!0}if(oe.comma!==!0&&oe.dots!==!0){let Ee=F.output.slice(0,oe.outputIndex),Ce=F.tokens.slice(oe.tokensIndex);oe.value=oe.output="\\{",z=ge="\\}",F.output=Ee;for(let K of Ce)F.output+=K.output||K.value}X({type:"brace",value:z,output:ge}),H("braces"),G.pop();continue}if(z==="|"){V.length>0&&V[V.length-1].conditions++,X({type:"text",value:z});continue}if(z===","){let oe=z,ge=G[G.length-1];ge&&J[J.length-1]==="braces"&&(ge.comma=!0,oe="|"),X({type:"comma",value:z,output:oe});continue}if(z==="/"){if(j.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",g.pop(),j=_;continue}X({type:"slash",value:z,output:A});continue}if(z==="."){if(F.braces>0&&j.type==="dot"){j.value==="."&&(j.output=w);let oe=G[G.length-1];j.type="dots",j.output+=z,j.value+=z,oe.dots=!0;continue}if(F.braces+F.parens===0&&j.type!=="bos"&&j.type!=="slash"){X({type:"text",value:z,output:w});continue}X({type:"dot",value:z,output:w});continue}if(z==="?"){if(!(j&&j.value==="(")&&p.noextglob!==!0&&le()==="("&&le(2)!=="?"){ie("qmark",z);continue}if(j&&j.type==="paren"){let oe=le(),ge=z;if(oe==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(j.value==="("&&!/[!=<:]/.test(oe)||oe==="<"&&!/<([!=]|\w+>)/.test(Y()))&&(ge=`\\${z}`),X({type:"text",value:z,output:ge});continue}if(p.dot!==!0&&(j.type==="slash"||j.type==="bos")){X({type:"qmark",value:z,output:M});continue}X({type:"qmark",value:z,output:k});continue}if(z==="!"){if(p.noextglob!==!0&&le()==="("&&(le(2)!=="?"||!/[!=<:]/.test(le(3)))){ie("negate",z);continue}if(p.nonegate!==!0&&F.index===0){q();continue}}if(z==="+"){if(p.noextglob!==!0&&le()==="("&&le(2)!=="?"){ie("plus",z);continue}if(j&&j.value==="("||p.regex===!1){X({type:"plus",value:z,output:x});continue}if(j&&(j.type==="bracket"||j.type==="paren"||j.type==="brace")||F.parens>0){X({type:"plus",value:z});continue}X({type:"plus",value:x});continue}if(z==="@"){if(p.noextglob!==!0&&le()==="("&&le(2)!=="?"){X({type:"at",extglob:!0,value:z,output:""});continue}X({type:"text",value:z});continue}if(z!=="*"){(z==="$"||z==="^")&&(z=`\\${z}`);let oe=a.exec(Y());oe&&(z+=oe[0],F.index+=oe[0].length),X({type:"text",value:z});continue}if(j&&(j.type==="globstar"||j.star===!0)){j.type="star",j.star=!0,j.value+=z,j.output=N,F.backtrack=!0,F.globstar=!0,ne(z);continue}let ae=Y();if(p.noextglob!==!0&&/^\([^?]/.test(ae)){ie("star",z);continue}if(j.type==="star"){if(p.noglobstar===!0){ne(z);continue}let oe=j.prev,ge=oe.prev,Ee=oe.type==="slash"||oe.type==="bos",Ce=ge&&(ge.type==="star"||ge.type==="globstar");if(p.bash===!0&&(!Ee||ae[0]&&ae[0]!=="/")){X({type:"star",value:z,output:""});continue}let K=F.braces>0&&(oe.type==="comma"||oe.type==="brace"),$=V.length&&(oe.type==="pipe"||oe.type==="paren");if(!Ee&&oe.type!=="paren"&&!K&&!$){X({type:"star",value:z,output:""});continue}for(;ae.slice(0,3)==="/**";){let ce=u[F.index+4];if(ce&&ce!=="/")break;ae=ae.slice(3),ne("/**",3)}if(oe.type==="bos"&&Q()){j.type="globstar",j.value+=z,j.output=W(p),F.output=j.output,F.globstar=!0,ne(z);continue}if(oe.type==="slash"&&oe.prev.type!=="bos"&&!Ce&&Q()){F.output=F.output.slice(0,-(oe.output+j.output).length),oe.output=`(?:${oe.output}`,j.type="globstar",j.output=W(p)+(p.strictSlashes?")":"|$)"),j.value+=z,F.globstar=!0,F.output+=oe.output+j.output,ne(z);continue}if(oe.type==="slash"&&oe.prev.type!=="bos"&&ae[0]==="/"){let ce=ae[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(oe.output+j.output).length),oe.output=`(?:${oe.output}`,j.type="globstar",j.output=`${W(p)}${A}|${A}${ce})`,j.value+=z,F.output+=oe.output+j.output,F.globstar=!0,ne(z+ue()),X({type:"slash",value:"/",output:""});continue}if(oe.type==="bos"&&ae[0]==="/"){j.type="globstar",j.value+=z,j.output=`(?:^|${A}|${W(p)}${A})`,F.output=j.output,F.globstar=!0,ne(z+ue()),X({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-j.output.length),j.type="globstar",j.output=W(p),j.value+=z,F.output+=j.output,F.globstar=!0,ne(z);continue}let pe={type:"star",value:z,output:N};if(p.bash===!0){pe.output=".*?",(j.type==="bos"||j.type==="slash")&&(pe.output=se+pe.output),X(pe);continue}if(j&&(j.type==="bracket"||j.type==="paren")&&p.regex===!0){pe.output=z,X(pe);continue}(F.index===F.start||j.type==="slash"||j.type==="dot")&&(j.type==="dot"?(F.output+=O,j.output+=O):p.dot===!0?(F.output+=D,j.output+=D):(F.output+=se,j.output+=se),le()!=="*"&&(F.output+=R,j.output+=R)),X(pe)}for(;F.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing","]"));F.output=n.escapeLast(F.output,"["),H("brackets")}for(;F.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing",")"));F.output=n.escapeLast(F.output,"("),H("parens")}for(;F.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing","}"));F.output=n.escapeLast(F.output,"{"),H("braces")}if(p.strictSlashes!==!0&&(j.type==="star"||j.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${A}?`}),F.backtrack===!0){F.output="";for(let ae of F.tokens)F.output+=ae.output!=null?ae.output:ae.value,ae.suffix&&(F.output+=ae.suffix)}return F};h.fastpaths=(u,d)=>{let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);u=s[u]||u;let _=n.isWindows(d),{DOT_LITERAL:g,SLASH_LITERAL:S,ONE_CHAR:E,DOTS_SLASH:v,NO_DOT:m,NO_DOTS:w,NO_DOTS_SLASH:x,STAR:A,START_ANCHOR:R}=t.globChars(_),B=p.dot?w:m,P=p.dot?x:m,O=p.capture?"":"?:",D={negated:!1,prefix:""},k=p.bash===!0?".*?":A;p.capture&&(k=`(${k})`);let M=se=>se.noglobstar===!0?k:`(${O}(?:(?!${R}${se.dot?v:g}).)*?)`,L=se=>{switch(se){case"*":return`${B}${E}${k}`;case".*":return`${g}${E}${k}`;case"*.*":return`${B}${k}${g}${E}${k}`;case"*/*":return`${B}${k}${S}${E}${P}${k}`;case"**":return B+M(p);case"**/*":return`(?:${B}${M(p)}${S})?${P}${E}${k}`;case"**/*.*":return`(?:${B}${M(p)}${S})?${P}${k}${g}${E}${k}`;case"**/.*":return`(?:${B}${M(p)}${S})?${g}${E}${k}`;default:{let I=/^(.*?)\.(\w+)$/.exec(se);if(!I)return;let N=L(I[1]);return N?N+g+I[2]:void 0}}},U=n.removePrefix(u,D),W=L(U);return W&&p.strictSlashes!==!0&&(W+=`${S}?`),W},r.exports=h}),j4=re((e,r)=>{"use strict";ee();var t=fe("path"),n=M4(),i=N4(),l=zo(),a=Wo(),o=f=>f&&typeof f=="object"&&!Array.isArray(f),s=(f,c,h=!1)=>{if(Array.isArray(f)){let S=f.map(E=>s(E,c,h));return E=>{for(let v of S){let m=v(E);if(m)return m}return!1}}let u=o(f)&&f.tokens&&f.input;if(f===""||typeof f!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let d=c||{},p=l.isWindows(c),y=u?s.compileRe(f,c):s.makeRe(f,c,!1,!0),b=y.state;delete y.state;let _=()=>!1;if(d.ignore){let S={...c,ignore:null,onMatch:null,onResult:null};_=s(d.ignore,S,h)}let g=(S,E=!1)=>{let{isMatch:v,match:m,output:w}=s.test(S,y,c,{glob:f,posix:p}),x={glob:f,state:b,regex:y,posix:p,input:S,output:w,match:m,isMatch:v};return typeof d.onResult=="function"&&d.onResult(x),v===!1?(x.isMatch=!1,E?x:!1):_(S)?(typeof d.onIgnore=="function"&&d.onIgnore(x),x.isMatch=!1,E?x:!1):(typeof d.onMatch=="function"&&d.onMatch(x),E?x:!0)};return h&&(g.state=b),g};s.test=(f,c,h,{glob:u,posix:d}={})=>{if(typeof f!="string")throw new TypeError("Expected input to be a string");if(f==="")return{isMatch:!1,output:""};let p=h||{},y=p.format||(d?l.toPosixSlashes:null),b=f===u,_=b&&y?y(f):f;return b===!1&&(_=y?y(f):f,b=_===u),(b===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?b=s.matchBase(f,c,h,d):b=c.exec(_)),{isMatch:!!b,match:b,output:_}},s.matchBase=(f,c,h,u=l.isWindows(h))=>(c instanceof RegExp?c:s.makeRe(c,h)).test(t.basename(f)),s.isMatch=(f,c,h)=>s(c,h)(f),s.parse=(f,c)=>Array.isArray(f)?f.map(h=>s.parse(h,c)):i(f,{...c,fastpaths:!1}),s.scan=(f,c)=>n(f,c),s.compileRe=(f,c,h=!1,u=!1)=>{if(h===!0)return f.output;let d=c||{},p=d.contains?"":"^",y=d.contains?"":"$",b=`${p}(?:${f.output})${y}`;f&&f.negated===!0&&(b=`^(?!${b}).*$`);let _=s.toRegex(b,c);return u===!0&&(_.state=f),_},s.makeRe=(f,c={},h=!1,u=!1)=>{if(!f||typeof f!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return c.fastpaths!==!1&&(f[0]==="."||f[0]==="*")&&(d.output=i.fastpaths(f,c)),d.output||(d=i(f,c)),s.compileRe(d,c,h,u)},s.toRegex=(f,c)=>{try{let h=c||{};return new RegExp(f,h.flags||(h.nocase?"i":""))}catch(h){if(c&&c.debug===!0)throw h;return/$^/}},s.constants=a,r.exports=s}),$4=re((e,r)=>{"use strict";ee(),r.exports=j4()}),H4=re((e,r)=>{"use strict";ee();var t=fe("util"),n=L4(),i=$4(),l=zo(),a=s=>s===""||s==="./",o=(s,f,c)=>{f=[].concat(f),s=[].concat(s);let h=new Set,u=new Set,d=new Set,p=0,y=_=>{d.add(_.output),c&&c.onResult&&c.onResult(_)};for(let _=0;_<f.length;_++){let g=i(String(f[_]),{...c,onResult:y},!0),S=g.state.negated||g.state.negatedExtglob;S&&p++;for(let E of s){let v=g(E,!0);!(S?!v.isMatch:v.isMatch)||(S?h.add(v.output):(h.delete(v.output),u.add(v.output)))}}let b=(p===f.length?[...d]:[...u]).filter(_=>!h.has(_));if(c&&b.length===0){if(c.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(c.nonull===!0||c.nullglob===!0)return c.unescape?f.map(_=>_.replace(/\\/g,"")):f}return b};o.match=o,o.matcher=(s,f)=>i(s,f),o.isMatch=(s,f,c)=>i(f,c)(s),o.any=o.isMatch,o.not=(s,f,c={})=>{f=[].concat(f).map(String);let h=new Set,u=[],d=y=>{c.onResult&&c.onResult(y),u.push(y.output)},p=new Set(o(s,f,{...c,onResult:d}));for(let y of u)p.has(y)||h.add(y);return[...h]},o.contains=(s,f,c)=>{if(typeof s!="string")throw new TypeError(`Expected a string: "${t.inspect(s)}"`);if(Array.isArray(f))return f.some(h=>o.contains(s,h,c));if(typeof f=="string"){if(a(s)||a(f))return!1;if(s.includes(f)||s.startsWith("./")&&s.slice(2).includes(f))return!0}return o.isMatch(s,f,{...c,contains:!0})},o.matchKeys=(s,f,c)=>{if(!l.isObject(s))throw new TypeError("Expected the first argument to be an object");let h=o(Object.keys(s),f,c),u={};for(let d of h)u[d]=s[d];return u},o.some=(s,f,c)=>{let h=[].concat(s);for(let u of[].concat(f)){let d=i(String(u),c);if(h.some(p=>d(p)))return!0}return!1},o.every=(s,f,c)=>{let h=[].concat(s);for(let u of[].concat(f)){let d=i(String(u),c);if(!h.every(p=>d(p)))return!1}return!0},o.all=(s,f,c)=>{if(typeof s!="string")throw new TypeError(`Expected a string: "${t.inspect(s)}"`);return[].concat(f).every(h=>i(h,c)(s))},o.capture=(s,f,c)=>{let h=l.isWindows(c),u=i.makeRe(String(s),{...c,capture:!0}).exec(h?l.toPosixSlashes(f):f);if(u)return u.slice(1).map(d=>d===void 0?"":d)},o.makeRe=(...s)=>i.makeRe(...s),o.scan=(...s)=>i.scan(...s),o.parse=(s,f)=>{let c=[];for(let h of[].concat(s||[]))for(let u of n(String(h),f))c.push(i.parse(u,f));return c},o.braces=(s,f)=>{if(typeof s!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!/\{.*\}/.test(s)?[s]:n(s,f)},o.braceExpand=(s,f)=>{if(typeof s!="string")throw new TypeError("Expected a string");return o.braces(s,{...f,expand:!0})},r.exports=o}),q4=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var r=fe("path"),t=R4(),n=H4(),i="**",l="\\",a=/[*?]|^!/,o=/\[[^[]*]/,s=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,f=/[!*+?@]\([^(]*\)/,c=/,|\.\./;function h(L,U={}){return!u(L,U)}e.isStaticPattern=h;function u(L,U={}){return L===""?!1:!!(U.caseSensitiveMatch===!1||L.includes(l)||a.test(L)||o.test(L)||s.test(L)||U.extglob!==!1&&f.test(L)||U.braceExpansion!==!1&&d(L))}e.isDynamicPattern=u;function d(L){let U=L.indexOf("{");if(U===-1)return!1;let W=L.indexOf("}",U+1);if(W===-1)return!1;let se=L.slice(U,W);return c.test(se)}function p(L){return b(L)?L.slice(1):L}e.convertToPositivePattern=p;function y(L){return"!"+L}e.convertToNegativePattern=y;function b(L){return L.startsWith("!")&&L[1]!=="("}e.isNegativePattern=b;function _(L){return!b(L)}e.isPositivePattern=_;function g(L){return L.filter(b)}e.getNegativePatterns=g;function S(L){return L.filter(_)}e.getPositivePatterns=S;function E(L){return L.filter(U=>!m(U))}e.getPatternsInsideCurrentDirectory=E;function v(L){return L.filter(m)}e.getPatternsOutsideCurrentDirectory=v;function m(L){return L.startsWith("..")||L.startsWith("./..")}e.isPatternRelatedToParentDirectory=m;function w(L){return t(L,{flipBackslashes:!1})}e.getBaseDirectory=w;function x(L){return L.includes(i)}e.hasGlobStar=x;function A(L){return L.endsWith("/"+i)}e.endsWithSlashGlobStar=A;function R(L){let U=r.basename(L);return A(L)||h(U)}e.isAffectDepthOfReadingPattern=R;function B(L){return L.reduce((U,W)=>U.concat(P(W)),[])}e.expandPatternsWithBraceExpansion=B;function P(L){return n.braces(L,{expand:!0,nodupes:!0})}e.expandBraceExpansion=P;function O(L,U){let{parts:W}=n.scan(L,Object.assign(Object.assign({},U),{parts:!0}));return W.length===0&&(W=[L]),W[0].startsWith("/")&&(W[0]=W[0].slice(1),W.unshift("")),W}e.getPatternParts=O;function D(L,U){return n.makeRe(L,U)}e.makeRe=D;function k(L,U){return L.map(W=>D(W,U))}e.convertPatternsToRe=k;function M(L,U){return U.some(W=>W.test(L))}e.matchAny=M}),U4=re((e,r)=>{"use strict";ee();var t=fe("stream"),n=t.PassThrough,i=Array.prototype.slice;r.exports=l;function l(){let o=[],s=i.call(arguments),f=!1,c=s[s.length-1];c&&!Array.isArray(c)&&c.pipe==null?s.pop():c={};let h=c.end!==!1,u=c.pipeError===!0;c.objectMode==null&&(c.objectMode=!0),c.highWaterMark==null&&(c.highWaterMark=64*1024);let d=n(c);function p(){for(let _=0,g=arguments.length;_<g;_++)o.push(a(arguments[_],c));return y(),this}function y(){if(f)return;f=!0;let _=o.shift();if(!_){process.nextTick(b);return}Array.isArray(_)||(_=[_]);let g=_.length+1;function S(){--g>0||(f=!1,y())}function E(v){function m(){v.removeListener("merge2UnpipeEnd",m),v.removeListener("end",m),u&&v.removeListener("error",w),S()}function w(x){d.emit("error",x)}if(v._readableState.endEmitted)return S();v.on("merge2UnpipeEnd",m),v.on("end",m),u&&v.on("error",w),v.pipe(d,{end:!1}),v.resume()}for(let v=0;v<_.length;v++)E(_[v]);S()}function b(){f=!1,d.emit("queueDrain"),h&&d.end()}return d.setMaxListeners(0),d.add=p,d.on("unpipe",function(_){_.emit("merge2UnpipeEnd")}),s.length&&p.apply(null,s),d}function a(o,s){if(Array.isArray(o))for(let f=0,c=o.length;f<c;f++)o[f]=a(o[f],s);else{if(!o._readableState&&o.pipe&&(o=o.pipe(n(s))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}}),G4=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var r=U4();function t(i){let l=r(i);return i.forEach(a=>{a.once("error",o=>l.emit("error",o))}),l.once("close",()=>n(i)),l.once("end",()=>n(i)),l}e.merge=t;function n(i){i.forEach(l=>l.emit("close"))}}),W4=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function r(n){return typeof n=="string"}e.isString=r;function t(n){return n===""}e.isEmpty=t}),Or=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var r=S4();e.array=r;var t=x4();e.errno=t;var n=A4();e.fs=n;var i=C4();e.path=i;var l=q4();e.pattern=l;var a=G4();e.stream=a;var o=W4();e.string=o}),z4=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var r=Or();function t(f,c){let h=i(f),u=l(f,c.ignore),d=h.filter(_=>r.pattern.isStaticPattern(_,c)),p=h.filter(_=>r.pattern.isDynamicPattern(_,c)),y=n(d,u,!1),b=n(p,u,!0);return y.concat(b)}e.generate=t;function n(f,c,h){let u=[],d=r.pattern.getPatternsOutsideCurrentDirectory(f),p=r.pattern.getPatternsInsideCurrentDirectory(f),y=a(d),b=a(p);return u.push(...o(y,c,h)),"."in b?u.push(s(".",p,c,h)):u.push(...o(b,c,h)),u}e.convertPatternsToTasks=n;function i(f){return r.pattern.getPositivePatterns(f)}e.getPositivePatterns=i;function l(f,c){return r.pattern.getNegativePatterns(f).concat(c).map(r.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=l;function a(f){let c={};return f.reduce((h,u)=>{let d=r.pattern.getBaseDirectory(u);return d in h?h[d].push(u):h[d]=[u],h},c)}e.groupPatternsByBaseDirectory=a;function o(f,c,h){return Object.keys(f).map(u=>s(u,f[u],c,h))}e.convertPatternGroupsToTasks=o;function s(f,c,h,u){return{dynamic:u,positive:c,negative:h,base:f,patterns:[].concat(c,h.map(r.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=s}),V4=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var r=/(?!^)\/{2,}/g;function t(i){return i.map(l=>n(l))}e.transform=t;function n(i){return i.replace(r,"/")}e.removeDuplicateSlashes=n}),K4=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(i,l,a){l.fs.lstat(i,(o,s)=>{if(o!==null){t(a,o);return}if(!s.isSymbolicLink()||!l.followSymbolicLink){n(a,s);return}l.fs.stat(i,(f,c)=>{if(f!==null){if(l.throwErrorOnBrokenSymbolicLink){t(a,f);return}n(a,s);return}l.markSymbolicLink&&(c.isSymbolicLink=()=>!0),n(a,c)})})}e.read=r;function t(i,l){i(l)}function n(i,l){i(null,l)}}),Y4=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(t,n){let i=n.fs.lstatSync(t);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let l=n.fs.statSync(t);return n.markSymbolicLink&&(l.isSymbolicLink=()=>!0),l}catch(l){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw l}}e.read=r}),X4=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=fe("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),Z4=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=X4(),t=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=r.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n!=null?n:i}};e.default=t}),Kn=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var r=K4(),t=Y4(),n=Z4();e.Settings=n.default;function i(o,s,f){if(typeof s=="function"){r.read(o,a(),s);return}r.read(o,a(s),f)}e.stat=i;function l(o,s){let f=a(s);return t.read(o,f)}e.statSync=l;function a(o={}){return o instanceof n.default?o:new n.default(o)}}),Q4=re((e,r)=>{ee();var t;r.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(t||(t=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}),J4=re((e,r)=>{ee(),r.exports=n;var t=Q4();function n(i,l){let a,o,s,f=!0;Array.isArray(i)?(a=[],o=i.length):(s=Object.keys(i),a={},o=s.length);function c(u){function d(){l&&l(u,a),l=null}f?t(d):d()}function h(u,d,p){a[u]=p,(--o===0||d)&&c(d)}o?s?s.forEach(function(u){i[u](function(d,p){h(u,d,p)})}):i.forEach(function(u,d){u(function(p,y){h(d,p,y)})}):c(null),f=!1}}),U8=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var r=process.versions.node.split(".");if(r[0]===void 0||r[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var t=Number.parseInt(r[0],10),n=Number.parseInt(r[1],10),i=10,l=10,a=t>i,o=t===i&&n>=l;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||o}),eI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),G8=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var r=eI();e.fs=r}),W8=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function r(t,n,i){return t.endsWith(i)?t+n:t+i+n}e.joinPathSegments=r}),tI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=Kn(),t=J4(),n=U8(),i=G8(),l=W8();function a(u,d,p){if(!d.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){o(u,d,p);return}f(u,d,p)}e.read=a;function o(u,d,p){d.fs.readdir(u,{withFileTypes:!0},(y,b)=>{if(y!==null){c(p,y);return}let _=b.map(S=>({dirent:S,name:S.name,path:l.joinPathSegments(u,S.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){h(p,_);return}let g=_.map(S=>s(S,d));t(g,(S,E)=>{if(S!==null){c(p,S);return}h(p,E)})})}e.readdirWithFileTypes=o;function s(u,d){return p=>{if(!u.dirent.isSymbolicLink()){p(null,u);return}d.fs.stat(u.path,(y,b)=>{if(y!==null){if(d.throwErrorOnBrokenSymbolicLink){p(y);return}p(null,u);return}u.dirent=i.fs.createDirentFromStats(u.name,b),p(null,u)})}}function f(u,d,p){d.fs.readdir(u,(y,b)=>{if(y!==null){c(p,y);return}let _=b.map(g=>{let S=l.joinPathSegments(u,g,d.pathSegmentSeparator);return E=>{r.stat(S,d.fsStatSettings,(v,m)=>{if(v!==null){E(v);return}let w={name:g,path:S,dirent:i.fs.createDirentFromStats(g,m)};d.stats&&(w.stats=m),E(null,w)})}});t(_,(g,S)=>{if(g!==null){c(p,g);return}h(p,S)})})}e.readdir=f;function c(u,d){u(d)}function h(u,d){u(null,d)}}),rI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=Kn(),t=U8(),n=G8(),i=W8();function l(s,f){return!f.stats&&t.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(s,f):o(s,f)}e.read=l;function a(s,f){return f.fs.readdirSync(s,{withFileTypes:!0}).map(c=>{let h={dirent:c,name:c.name,path:i.joinPathSegments(s,c.name,f.pathSegmentSeparator)};if(h.dirent.isSymbolicLink()&&f.followSymbolicLinks)try{let u=f.fs.statSync(h.path);h.dirent=n.fs.createDirentFromStats(h.name,u)}catch(u){if(f.throwErrorOnBrokenSymbolicLink)throw u}return h})}e.readdirWithFileTypes=a;function o(s,f){return f.fs.readdirSync(s).map(c=>{let h=i.joinPathSegments(s,c,f.pathSegmentSeparator),u=r.statSync(h,f.fsStatSettings),d={name:c,path:h,dirent:n.fs.createDirentFromStats(c,u)};return f.stats&&(d.stats=u),d})}e.readdir=o}),nI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=fe("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),iI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=fe("path"),t=Kn(),n=nI(),i=class{constructor(l={}){this._options=l,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new t.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(l,a){return l!=null?l:a}};e.default=i}),kh=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var r=tI(),t=rI(),n=iI();e.Settings=n.default;function i(o,s,f){if(typeof s=="function"){r.read(o,a(),s);return}r.read(o,a(s),f)}e.scandir=i;function l(o,s){let f=a(s);return t.read(o,f)}e.scandirSync=l;function a(o={}){return o instanceof n.default?o:new n.default(o)}}),sI=re((e,r)=>{"use strict";ee();function t(n){var i=new n,l=i;function a(){var s=i;return s.next?i=s.next:(i=new n,l=i),s.next=null,s}function o(s){l.next=s,l=s}return{get:a,release:o}}r.exports=t}),oI=re((e,r)=>{"use strict";ee();var t=sI();function n(o,s,f){if(typeof o=="function"&&(f=s,s=o,o=null),f<1)throw new Error("fastqueue concurrency must be greater than 1");var c=t(l),h=null,u=null,d=0,p=null,y={push:m,drain:i,saturated:i,pause:_,paused:!1,concurrency:f,running:b,resume:E,idle:v,length:g,getQueue:S,unshift:w,empty:i,kill:A,killAndDrain:R,error:B};return y;function b(){return d}function _(){y.paused=!0}function g(){for(var P=h,O=0;P;)P=P.next,O++;return O}function S(){for(var P=h,O=[];P;)O.push(P.value),P=P.next;return O}function E(){if(y.paused){y.paused=!1;for(var P=0;P<y.concurrency;P++)d++,x()}}function v(){return d===0&&y.length()===0}function m(P,O){var D=c.get();D.context=o,D.release=x,D.value=P,D.callback=O||i,D.errorHandler=p,d===y.concurrency||y.paused?u?(u.next=D,u=D):(h=D,u=D,y.saturated()):(d++,s.call(o,D.value,D.worked))}function w(P,O){var D=c.get();D.context=o,D.release=x,D.value=P,D.callback=O||i,d===y.concurrency||y.paused?h?(D.next=h,h=D):(h=D,u=D,y.saturated()):(d++,s.call(o,D.value,D.worked))}function x(P){P&&c.release(P);var O=h;O?y.paused?d--:(u===h&&(u=null),h=O.next,O.next=null,s.call(o,O.value,O.worked),u===null&&y.empty()):--d===0&&y.drain()}function A(){h=null,u=null,y.drain=i}function R(){h=null,u=null,y.drain(),y.drain=i}function B(P){p=P}}function i(){}function l(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var o=this;this.worked=function(s,f){var c=o.callback,h=o.errorHandler,u=o.value;o.value=null,o.callback=i,o.errorHandler&&h(s,u),c.call(o.context,s,f),o.release(o)}}function a(o,s,f){typeof o=="function"&&(f=s,s=o,o=null);function c(_,g){s.call(this,_).then(function(S){g(null,S)},g)}var h=n(o,c,f),u=h.push,d=h.unshift;return h.push=p,h.unshift=y,h.drained=b,h;function p(_){var g=new Promise(function(S,E){u(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function y(_){var g=new Promise(function(S,E){d(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function b(){var _=h.drain,g=new Promise(function(S){h.drain=function(){_(),S()}});return g}}r.exports=n,r.exports.promise=a}),Dh=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function r(l,a){return l.errorFilter===null?!0:!l.errorFilter(a)}e.isFatalError=r;function t(l,a){return l===null||l(a)}e.isAppliedFilter=t;function n(l,a){return l.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=n;function i(l,a,o){return l===""?a:l.endsWith(o)?l+a:l+o+a}e.joinPathSegments=i}),z8=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=Dh(),t=class{constructor(n,i){this._root=n,this._settings=i,this._root=r.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=t}),V8=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=fe("events"),t=kh(),n=oI(),i=Dh(),l=z8(),a=class extends l.default{constructor(o,s){super(o,s),this._settings=s,this._scandir=t.scandir,this._emitter=new r.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(o){this._emitter.on("entry",o)}onError(o){this._emitter.once("error",o)}onEnd(o){this._emitter.once("end",o)}_pushToQueue(o,s){let f={directory:o,base:s};this._queue.push(f,c=>{c!==null&&this._handleError(c)})}_worker(o,s){this._scandir(o.directory,this._settings.fsScandirSettings,(f,c)=>{if(f!==null){s(f,void 0);return}for(let h of c)this._handleEntry(h,o.base);s(null,void 0)})}_handleError(o){this._isDestroyed||!i.isFatalError(this._settings,o)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",o))}_handleEntry(o,s){if(this._isDestroyed||this._isFatalError)return;let f=o.path;s!==void 0&&(o.path=i.joinPathSegments(s,o.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,o)&&this._emitEntry(o),o.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(f,s===void 0?void 0:o.path)}_emitEntry(o){this._emitter.emit("entry",o)}};e.default=a}),aI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=V8(),t=class{constructor(l,a){this._root=l,this._settings=a,this._reader=new r.default(this._root,this._settings),this._storage=[]}read(l){this._reader.onError(a=>{n(l,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{i(l,this._storage)}),this._reader.read()}};e.default=t;function n(l,a){l(a)}function i(l,a){l(null,a)}}),uI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=fe("stream"),t=V8(),n=class{constructor(i,l){this._root=i,this._settings=l,this._reader=new t.default(this._root,this._settings),this._stream=new r.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}),lI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=kh(),t=Dh(),n=z8(),i=class extends n.default{constructor(){super(...arguments),this._scandir=r.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(l,a){this._queue.add({directory:l,base:a})}_handleQueue(){for(let l of this._queue.values())this._handleDirectory(l.directory,l.base)}_handleDirectory(l,a){try{let o=this._scandir(l,this._settings.fsScandirSettings);for(let s of o)this._handleEntry(s,a)}catch(o){this._handleError(o)}}_handleError(l){if(t.isFatalError(this._settings,l))throw l}_handleEntry(l,a){let o=l.path;a!==void 0&&(l.path=t.joinPathSegments(a,l.name,this._settings.pathSegmentSeparator)),t.isAppliedFilter(this._settings.entryFilter,l)&&this._pushToStorage(l),l.dirent.isDirectory()&&t.isAppliedFilter(this._settings.deepFilter,l)&&this._pushToQueue(o,a===void 0?void 0:l.path)}_pushToStorage(l){this._storage.push(l)}};e.default=i}),cI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=lI(),t=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=t}),hI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=fe("path"),t=kh(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.fsScandirSettings=new t.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,l){return i!=null?i:l}};e.default=n}),Rh=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var r=aI(),t=uI(),n=cI(),i=hI();e.Settings=i.default;function l(f,c,h){if(typeof c=="function"){new r.default(f,s()).read(c);return}new r.default(f,s(c)).read(h)}e.walk=l;function a(f,c){let h=s(c);return new n.default(f,h).read()}e.walkSync=a;function o(f,c){let h=s(c);return new t.default(f,h).read()}e.walkStream=o;function s(f={}){return f instanceof i.default?f:new i.default(f)}}),Oh=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=fe("path"),t=Kn(),n=Or(),i=class{constructor(l){this._settings=l,this._fsStatSettings=new t.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(l){return r.resolve(this._settings.cwd,l)}_makeEntry(l,a){let o={name:a,path:a,dirent:n.fs.createDirentFromStats(a,l)};return this._settings.stats&&(o.stats=l),o}_isFatalError(l){return!n.errno.isEnoentCodeError(l)&&!this._settings.suppressErrors}};e.default=i}),K8=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=fe("stream"),t=Kn(),n=Rh(),i=Oh(),l=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=t.stat}dynamic(a,o){return this._walkStream(a,o)}static(a,o){let s=a.map(this._getFullEntryPath,this),f=new r.PassThrough({objectMode:!0});f._write=(c,h,u)=>this._getEntry(s[c],a[c],o).then(d=>{d!==null&&o.entryFilter(d)&&f.push(d),c===s.length-1&&f.end(),u()}).catch(u);for(let c=0;c<s.length;c++)f.write(c);return f}_getEntry(a,o,s){return this._getStat(a).then(f=>this._makeEntry(f,o)).catch(f=>{if(s.errorFilter(f))return null;throw f})}_getStat(a){return new Promise((o,s)=>{this._stat(a,this._fsStatSettings,(f,c)=>f===null?o(c):s(f))})}};e.default=l}),fI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=Rh(),t=Oh(),n=K8(),i=class extends t.default{constructor(){super(...arguments),this._walkAsync=r.walk,this._readerStream=new n.default(this._settings)}dynamic(l,a){return new Promise((o,s)=>{this._walkAsync(l,a,(f,c)=>{f===null?o(c):s(f)})})}async static(l,a){let o=[],s=this._readerStream.static(l,a);return new Promise((f,c)=>{s.once("error",c),s.on("data",h=>o.push(h)),s.once("end",()=>f(o))})}};e.default=i}),pI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=Or(),t=class{constructor(n,i,l){this._patterns=n,this._settings=i,this._micromatchOptions=l,this._storage=[],this._fillStorage()}_fillStorage(){let n=r.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of n){let l=this._getPatternSegments(i),a=this._splitSegmentsIntoSections(l);this._storage.push({complete:a.length<=1,pattern:i,segments:l,sections:a})}}_getPatternSegments(n){return r.pattern.getPatternParts(n,this._micromatchOptions).map(i=>r.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:r.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(n){return r.array.splitWhen(n,i=>i.dynamic&&r.pattern.hasGlobStar(i.pattern))}};e.default=t}),dI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=pI(),t=class extends r.default{match(n){let i=n.split("/"),l=i.length,a=this._storage.filter(o=>!o.complete||o.segments.length>l);for(let o of a){let s=o.sections[0];if(!o.complete&&l>s.length||i.every((f,c)=>{let h=o.segments[c];return!!(h.dynamic&&h.patternRe.test(f)||!h.dynamic&&h.pattern===f)}))return!0}return!1}};e.default=t}),mI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=Or(),t=dI(),n=class{constructor(i,l){this._settings=i,this._micromatchOptions=l}getFilter(i,l,a){let o=this._getMatcher(l),s=this._getNegativePatternsRe(a);return f=>this._filter(i,f,o,s)}_getMatcher(i){return new t.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let l=i.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(l,this._micromatchOptions)}_filter(i,l,a,o){if(this._isSkippedByDeep(i,l.path)||this._isSkippedSymbolicLink(l))return!1;let s=r.path.removeLeadingDotSegment(l.path);return this._isSkippedByPositivePatterns(s,a)?!1:this._isSkippedByNegativePatterns(s,o)}_isSkippedByDeep(i,l){return this._settings.deep===1/0?!1:this._getEntryLevel(i,l)>=this._settings.deep}_getEntryLevel(i,l){let a=l.split("/").length;if(i==="")return a;let o=i.split("/").length;return a-o}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,l){return!this._settings.baseNameMatch&&!l.match(i)}_isSkippedByNegativePatterns(i,l){return!r.pattern.matchAny(i,l)}};e.default=n}),yI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=Or(),t=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let l=r.pattern.convertPatternsToRe(n,this._micromatchOptions),a=r.pattern.convertPatternsToRe(i,this._micromatchOptions);return o=>this._filter(o,l,a)}_filter(n,i,l){if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(n.path,l))return!1;let a=this._settings.baseNameMatch?n.name:n.path,o=n.dirent.isDirectory(),s=this._isMatchToPatterns(a,i,o)&&!this._isMatchToPatterns(n.path,l,o);return this._settings.unique&&s&&this._createIndexRecord(n),s}_isDuplicateEntry(n){return this.index.has(n.path)}_createIndexRecord(n){this.index.set(n.path,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let l=r.path.makeAbsolute(this._settings.cwd,n);return r.pattern.matchAny(l,i)}_isMatchToPatterns(n,i,l){let a=r.path.removeLeadingDotSegment(n),o=r.pattern.matchAny(a,i);return!o&&l?r.pattern.matchAny(a+"/",i):o}};e.default=t}),gI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=Or(),t=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return r.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=t}),bI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=Or(),t=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=r.path.makeAbsolute(this._settings.cwd,i),i=r.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=t}),Th=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=fe("path"),t=mI(),n=yI(),i=gI(),l=bI(),a=class{constructor(o){this._settings=o,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new t.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new l.default(this._settings)}_getRootDirectory(o){return r.resolve(this._settings.cwd,o.base)}_getReaderOptions(o){let s=o.base==="."?"":o.base;return{basePath:s,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(s,o.positive,o.negative),entryFilter:this.entryFilter.getFilter(o.positive,o.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=a}),vI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=fI(),t=Th(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}async read(i){let l=this._getRootDirectory(i),a=this._getReaderOptions(i);return(await this.api(l,i,a)).map(o=>a.transform(o))}api(i,l,a){return l.dynamic?this._reader.dynamic(i,a):this._reader.static(l.patterns,a)}};e.default=n}),_I=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=fe("stream"),t=K8(),n=Th(),i=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(l){let a=this._getRootDirectory(l),o=this._getReaderOptions(l),s=this.api(a,l,o),f=new r.Readable({objectMode:!0,read:()=>{}});return s.once("error",c=>f.emit("error",c)).on("data",c=>f.emit("data",o.transform(c))).once("end",()=>f.emit("end")),f.once("close",()=>s.destroy()),f}api(l,a,o){return a.dynamic?this._reader.dynamic(l,o):this._reader.static(a.patterns,o)}};e.default=i}),wI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=Kn(),t=Rh(),n=Oh(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=t.walkSync,this._statSync=r.statSync}dynamic(l,a){return this._walkSync(l,a)}static(l,a){let o=[];for(let s of l){let f=this._getFullEntryPath(s),c=this._getEntry(f,s,a);c===null||!a.entryFilter(c)||o.push(c)}return o}_getEntry(l,a,o){try{let s=this._getStat(l);return this._makeEntry(s,a)}catch(s){if(o.errorFilter(s))return null;throw s}}_getStat(l){return this._statSync(l,this._fsStatSettings)}};e.default=i}),EI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0});var r=wI(),t=Th(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(i){let l=this._getRootDirectory(i),a=this._getReaderOptions(i);return this.api(l,i,a).map(a.transform)}api(i,l,a){return l.dynamic?this._reader.dynamic(i,a):this._reader.static(l.patterns,a)}};e.default=n}),SI=re(e=>{"use strict";ee(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var r=fe("fs"),t=fe("os"),n=Math.max(t.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};var i=class{constructor(l={}){this._options=l,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(l,a){return l===void 0?a:l}_getFileSystemMethods(l={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),l)}};e.default=i}),xI=re((e,r)=>{"use strict";ee();var t=z4(),n=V4(),i=vI(),l=_I(),a=EI(),o=SI(),s=Or();async function f(u,d){h(u);let p=c(u,i.default,d),y=await Promise.all(p);return s.array.flatten(y)}(function(u){function d(g,S){h(g);let E=c(g,a.default,S);return s.array.flatten(E)}u.sync=d;function p(g,S){h(g);let E=c(g,l.default,S);return s.stream.merge(E)}u.stream=p;function y(g,S){h(g);let E=n.transform([].concat(g)),v=new o.default(S);return t.generate(E,v)}u.generateTasks=y;function b(g,S){h(g);let E=new o.default(S);return s.pattern.isDynamicPattern(g,E)}u.isDynamicPattern=b;function _(g){return h(g),s.path.escape(g)}u.escapePath=_})(f||(f={}));function c(u,d,p){let y=n.transform([].concat(u)),b=new o.default(p),_=t.generate(y,b),g=new d(b);return _.map(g.read,g)}function h(u){if(![].concat(u).every(d=>s.string.isString(d)&&!s.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}r.exports=f});ee();ee();function Y8(e){return typeof e>"u"||e===null}function AI(e){return typeof e=="object"&&e!==null}function CI(e){return Array.isArray(e)?e:Y8(e)?[]:[e]}function kI(e,r){var t,n,i,l;if(r)for(l=Object.keys(r),t=0,n=l.length;t<n;t+=1)i=l[t],e[i]=r[i];return e}function DI(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function RI(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var OI=Y8,TI=AI,FI=CI,PI=DI,BI=RI,II=kI,rt={isNothing:OI,isObject:TI,toArray:FI,repeat:PI,isNegativeZero:BI,extend:II};function X8(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
|
|
83
|
+
|
|
84
|
+
`+e.mark.snippet),n+" "+t):n}function Ni(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=X8(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ni.prototype=Object.create(Error.prototype);Ni.prototype.constructor=Ni;Ni.prototype.toString=function(e){return this.name+": "+X8(this,e)};var St=Ni;function rh(e,r,t,n,i){var l="",a="",o=Math.floor(i/2)-1;return n-r>o&&(l=" ... ",r=n-o+l.length),t-n>o&&(a=" ...",t=n+o-a.length),{str:l+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+l.length}}function nh(e,r){return rt.repeat(" ",r-e.length)+e}function LI(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],l,a=-1;l=t.exec(e.buffer);)i.push(l.index),n.push(l.index+l[0].length),e.position<=l.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var o="",s,f,c=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+c+3);for(s=1;s<=r.linesBefore&&!(a-s<0);s++)f=rh(e.buffer,n[a-s],i[a-s],e.position-(n[a]-n[a-s]),h),o=rt.repeat(" ",r.indent)+nh((e.line-s+1).toString(),c)+" | "+f.str+`
|
|
85
|
+
`+o;for(f=rh(e.buffer,n[a],i[a],e.position,h),o+=rt.repeat(" ",r.indent)+nh((e.line+1).toString(),c)+" | "+f.str+`
|
|
86
|
+
`,o+=rt.repeat("-",r.indent+c+3+f.pos)+`^
|
|
87
|
+
`,s=1;s<=r.linesAfter&&!(a+s>=i.length);s++)f=rh(e.buffer,n[a+s],i[a+s],e.position-(n[a]-n[a+s]),h),o+=rt.repeat(" ",r.indent)+nh((e.line+s+1).toString(),c)+" | "+f.str+`
|
|
88
|
+
`;return o.replace(/\n$/,"")}var MI=LI,NI=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],jI=["scalar","sequence","mapping"];function $I(e){var r={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(n){r[String(n)]=t})}),r}function HI(e,r){if(r=r||{},Object.keys(r).forEach(function(t){if(NI.indexOf(t)===-1)throw new St('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(t){return t},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=$I(r.styleAliases||null),jI.indexOf(this.kind)===-1)throw new St('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var dt=HI;function Ig(e,r){var t=[];return e[r].forEach(function(n){var i=t.length;t.forEach(function(l,a){l.tag===n.tag&&l.kind===n.kind&&l.multi===n.multi&&(i=a)}),t[i]=n}),t}function qI(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,t=arguments.length;r<t;r+=1)arguments[r].forEach(n);return e}function ah(e){return this.extend(e)}ah.prototype.extend=function(e){var r=[],t=[];if(e instanceof dt)t.push(e);else if(Array.isArray(e))t=t.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(t=t.concat(e.explicit));else throw new St("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(i){if(!(i instanceof dt))throw new St("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new St("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new St("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(i){if(!(i instanceof dt))throw new St("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(ah.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(t),n.compiledImplicit=Ig(n,"implicit"),n.compiledExplicit=Ig(n,"explicit"),n.compiledTypeMap=qI(n.compiledImplicit,n.compiledExplicit),n};var UI=ah,GI=new dt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),WI=new dt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),zI=new dt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),VI=new UI({explicit:[GI,WI,zI]});function KI(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function YI(){return null}function XI(e){return e===null}var ZI=new dt("tag:yaml.org,2002:null",{kind:"scalar",resolve:KI,construct:YI,predicate:XI,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function QI(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function JI(e){return e==="true"||e==="True"||e==="TRUE"}function eL(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var tL=new dt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:QI,construct:JI,predicate:eL,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function rL(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function nL(e){return 48<=e&&e<=55}function iL(e){return 48<=e&&e<=57}function sL(e){if(e===null)return!1;var r=e.length,t=0,n=!1,i;if(!r)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===r)return!0;if(i=e[++t],i==="b"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!rL(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!nL(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;t<r;t++)if(i=e[t],i!=="_"){if(!iL(e.charCodeAt(t)))return!1;n=!0}return!(!n||i==="_")}function oL(e){var r=e,t=1,n;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),n=r[0],(n==="-"||n==="+")&&(n==="-"&&(t=-1),r=r.slice(1),n=r[0]),r==="0")return 0;if(n==="0"){if(r[1]==="b")return t*parseInt(r.slice(2),2);if(r[1]==="x")return t*parseInt(r.slice(2),16);if(r[1]==="o")return t*parseInt(r.slice(2),8)}return t*parseInt(r,10)}function aL(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!rt.isNegativeZero(e)}var uL=new dt("tag:yaml.org,2002:int",{kind:"scalar",resolve:sL,construct:oL,predicate:aL,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),lL=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function cL(e){return!(e===null||!lL.test(e)||e[e.length-1]==="_")}function hL(e){var r,t;return r=e.replace(/_/g,"").toLowerCase(),t=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:t*parseFloat(r,10)}var fL=/^[-+]?[0-9]+e/;function pL(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(rt.isNegativeZero(e))return"-0.0";return t=e.toString(10),fL.test(t)?t.replace("e",".e"):t}function dL(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||rt.isNegativeZero(e))}var mL=new dt("tag:yaml.org,2002:float",{kind:"scalar",resolve:cL,construct:hL,predicate:dL,represent:pL,defaultStyle:"lowercase"}),yL=VI.extend({implicit:[ZI,tL,uL,mL]}),gL=yL,Z8=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Q8=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function bL(e){return e===null?!1:Z8.exec(e)!==null||Q8.exec(e)!==null}function vL(e){var r,t,n,i,l,a,o,s=0,f=null,c,h,u;if(r=Z8.exec(e),r===null&&(r=Q8.exec(e)),r===null)throw new Error("Date resolve error");if(t=+r[1],n=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(t,n,i));if(l=+r[4],a=+r[5],o=+r[6],r[7]){for(s=r[7].slice(0,3);s.length<3;)s+="0";s=+s}return r[9]&&(c=+r[10],h=+(r[11]||0),f=(c*60+h)*6e4,r[9]==="-"&&(f=-f)),u=new Date(Date.UTC(t,n,i,l,a,o,s)),f&&u.setTime(u.getTime()-f),u}function _L(e){return e.toISOString()}var wL=new dt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:bL,construct:vL,instanceOf:Date,represent:_L});function EL(e){return e==="<<"||e===null}var SL=new dt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:EL}),Fh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
89
|
+
\r`;function xL(e){if(e===null)return!1;var r,t,n=0,i=e.length,l=Fh;for(t=0;t<i;t++)if(r=l.indexOf(e.charAt(t)),!(r>64)){if(r<0)return!1;n+=6}return n%8===0}function AL(e){var r,t,n=e.replace(/[\r\n=]/g,""),i=n.length,l=Fh,a=0,o=[];for(r=0;r<i;r++)r%4===0&&r&&(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)),a=a<<6|l.indexOf(n.charAt(r));return t=i%4*6,t===0?(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)):t===18?(o.push(a>>10&255),o.push(a>>2&255)):t===12&&o.push(a>>4&255),new Uint8Array(o)}function CL(e){var r="",t=0,n,i,l=e.length,a=Fh;for(n=0;n<l;n++)n%3===0&&n&&(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]),t=(t<<8)+e[n];return i=l%3,i===0?(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]):i===2?(r+=a[t>>10&63],r+=a[t>>4&63],r+=a[t<<2&63],r+=a[64]):i===1&&(r+=a[t>>2&63],r+=a[t<<4&63],r+=a[64],r+=a[64]),r}function kL(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var DL=new dt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:xL,construct:AL,predicate:kL,represent:CL}),RL=Object.prototype.hasOwnProperty,OL=Object.prototype.toString;function TL(e){if(e===null)return!0;var r=[],t,n,i,l,a,o=e;for(t=0,n=o.length;t<n;t+=1){if(i=o[t],a=!1,OL.call(i)!=="[object Object]")return!1;for(l in i)if(RL.call(i,l))if(!a)a=!0;else return!1;if(!a)return!1;if(r.indexOf(l)===-1)r.push(l);else return!1}return!0}function FL(e){return e!==null?e:[]}var PL=new dt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:TL,construct:FL}),BL=Object.prototype.toString;function IL(e){if(e===null)return!0;var r,t,n,i,l,a=e;for(l=new Array(a.length),r=0,t=a.length;r<t;r+=1){if(n=a[r],BL.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;l[r]=[i[0],n[i[0]]]}return!0}function LL(e){if(e===null)return[];var r,t,n,i,l,a=e;for(l=new Array(a.length),r=0,t=a.length;r<t;r+=1)n=a[r],i=Object.keys(n),l[r]=[i[0],n[i[0]]];return l}var ML=new dt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:IL,construct:LL}),NL=Object.prototype.hasOwnProperty;function jL(e){if(e===null)return!0;var r,t=e;for(r in t)if(NL.call(t,r)&&t[r]!==null)return!1;return!0}function $L(e){return e!==null?e:{}}var HL=new dt("tag:yaml.org,2002:set",{kind:"mapping",resolve:jL,construct:$L}),J8=gL.extend({implicit:[wL,SL],explicit:[DL,PL,ML,HL]}),Dr=Object.prototype.hasOwnProperty,Oo=1,e5=2,t5=3,To=4,ih=1,qL=2,Lg=3,UL=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,GL=/[\x85\u2028\u2029]/,WL=/[,\[\]\{\}]/,r5=/^(?:!|!!|![a-z\-]+!)$/i,n5=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Mg(e){return Object.prototype.toString.call(e)}function Kt(e){return e===10||e===13}function Zr(e){return e===9||e===32}function xt(e){return e===9||e===32||e===10||e===13}function $n(e){return e===44||e===91||e===93||e===123||e===125}function zL(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function VL(e){return e===120?2:e===117?4:e===85?8:0}function KL(e){return 48<=e&&e<=57?e-48:-1}function Ng(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
90
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function YL(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var i5=new Array(256),s5=new Array(256);for(Xr=0;Xr<256;Xr++)i5[Xr]=Ng(Xr)?1:0,s5[Xr]=Ng(Xr);var Xr;function XL(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||J8,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function o5(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=MI(t),new St(r,t)}function Te(e,r){throw o5(e,r)}function Fo(e,r){e.onWarning&&e.onWarning.call(null,o5(e,r))}var jg={YAML:function(e,r,t){var n,i,l;e.version!==null&&Te(e,"duplication of %YAML directive"),t.length!==1&&Te(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),n===null&&Te(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),l=parseInt(n[2],10),i!==1&&Te(e,"unacceptable YAML version of the document"),e.version=t[0],e.checkLineBreaks=l<2,l!==1&&l!==2&&Fo(e,"unsupported YAML version of the document")},TAG:function(e,r,t){var n,i;t.length!==2&&Te(e,"TAG directive accepts exactly two arguments"),n=t[0],i=t[1],r5.test(n)||Te(e,"ill-formed tag handle (first argument) of the TAG directive"),Dr.call(e.tagMap,n)&&Te(e,'there is a previously declared suffix for "'+n+'" tag handle'),n5.test(i)||Te(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{Te(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function kr(e,r,t,n){var i,l,a,o;if(r<t){if(o=e.input.slice(r,t),n)for(i=0,l=o.length;i<l;i+=1)a=o.charCodeAt(i),a===9||32<=a&&a<=1114111||Te(e,"expected valid JSON character");else UL.test(o)&&Te(e,"the stream contains non-printable characters");e.result+=o}}function $g(e,r,t,n){var i,l,a,o;for(rt.isObject(t)||Te(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(t),a=0,o=i.length;a<o;a+=1)l=i[a],Dr.call(r,l)||(r[l]=t[l],n[l]=!0)}function Hn(e,r,t,n,i,l,a,o,s){var f,c;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,c=i.length;f<c;f+=1)Array.isArray(i[f])&&Te(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Mg(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&Mg(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(f=0,c=l.length;f<c;f+=1)$g(e,r,l[f],t);else $g(e,r,l,t);else!e.json&&!Dr.call(t,i)&&Dr.call(r,i)&&(e.line=a||e.line,e.lineStart=o||e.lineStart,e.position=s||e.position,Te(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:l}):r[i]=l,delete t[i];return r}function Ph(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Te(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Je(e,r,t){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Zr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Kt(i))for(Ph(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return t!==-1&&n!==0&&e.lineIndent<t&&Fo(e,"deficient indentation"),n}function Vo(e){var r=e.position,t;return t=e.input.charCodeAt(r),!!((t===45||t===46)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,t=e.input.charCodeAt(r),t===0||xt(t)))}function Bh(e,r){r===1?e.result+=" ":r>1&&(e.result+=rt.repeat(`
|
|
91
|
+
`,r-1))}function ZL(e,r,t){var n,i,l,a,o,s,f,c,h=e.kind,u=e.result,d;if(d=e.input.charCodeAt(e.position),xt(d)||$n(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),xt(i)||t&&$n(i)))return!1;for(e.kind="scalar",e.result="",l=a=e.position,o=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),xt(i)||t&&$n(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),xt(n))break}else{if(e.position===e.lineStart&&Vo(e)||t&&$n(d))break;if(Kt(d))if(s=e.line,f=e.lineStart,c=e.lineIndent,Je(e,!1,-1),e.lineIndent>=r){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=s,e.lineStart=f,e.lineIndent=c;break}}o&&(kr(e,l,a,!1),Bh(e,e.line-s),l=a=e.position,o=!1),Zr(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return kr(e,l,a,!1),e.result?!0:(e.kind=h,e.result=u,!1)}function QL(e,r){var t,n,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(kr(e,n,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)n=e.position,e.position++,i=e.position;else return!0;else Kt(t)?(kr(e,n,i,!0),Bh(e,Je(e,!1,r)),n=i=e.position):e.position===e.lineStart&&Vo(e)?Te(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Te(e,"unexpected end of the stream within a single quoted scalar")}function JL(e,r){var t,n,i,l,a,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=n=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return kr(e,t,e.position,!0),e.position++,!0;if(o===92){if(kr(e,t,e.position,!0),o=e.input.charCodeAt(++e.position),Kt(o))Je(e,!1,r);else if(o<256&&i5[o])e.result+=s5[o],e.position++;else if((a=VL(o))>0){for(i=a,l=0;i>0;i--)o=e.input.charCodeAt(++e.position),(a=zL(o))>=0?l=(l<<4)+a:Te(e,"expected hexadecimal character");e.result+=YL(l),e.position++}else Te(e,"unknown escape sequence");t=n=e.position}else Kt(o)?(kr(e,t,n,!0),Bh(e,Je(e,!1,r)),t=n=e.position):e.position===e.lineStart&&Vo(e)?Te(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Te(e,"unexpected end of the stream within a double quoted scalar")}function eM(e,r){var t=!0,n,i,l,a=e.tag,o,s=e.anchor,f,c,h,u,d,p=Object.create(null),y,b,_,g;if(g=e.input.charCodeAt(e.position),g===91)c=93,d=!1,o=[];else if(g===123)c=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),g=e.input.charCodeAt(++e.position);g!==0;){if(Je(e,!0,r),g=e.input.charCodeAt(e.position),g===c)return e.position++,e.tag=a,e.anchor=s,e.kind=d?"mapping":"sequence",e.result=o,!0;t?g===44&&Te(e,"expected the node content, but found ','"):Te(e,"missed comma between flow collection entries"),b=y=_=null,h=u=!1,g===63&&(f=e.input.charCodeAt(e.position+1),xt(f)&&(h=u=!0,e.position++,Je(e,!0,r))),n=e.line,i=e.lineStart,l=e.position,Gn(e,r,Oo,!1,!0),b=e.tag,y=e.result,Je(e,!0,r),g=e.input.charCodeAt(e.position),(u||e.line===n)&&g===58&&(h=!0,g=e.input.charCodeAt(++e.position),Je(e,!0,r),Gn(e,r,Oo,!1,!0),_=e.result),d?Hn(e,o,p,b,y,_,n,i,l):h?o.push(Hn(e,null,p,b,y,_,n,i,l)):o.push(y),Je(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(t=!0,g=e.input.charCodeAt(++e.position)):t=!1}Te(e,"unexpected end of the stream within a flow collection")}function tM(e,r){var t,n,i=ih,l=!1,a=!1,o=r,s=0,f=!1,c,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)ih===i?i=h===43?Lg:qL:Te(e,"repeat of a chomping mode identifier");else if((c=KL(h))>=0)c===0?Te(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Te(e,"repeat of an indentation width identifier"):(o=r+c-1,a=!0);else break;if(Zr(h)){do h=e.input.charCodeAt(++e.position);while(Zr(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!Kt(h)&&h!==0)}for(;h!==0;){for(Ph(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!a||e.lineIndent<o)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>o&&(o=e.lineIndent),Kt(h)){s++;continue}if(e.lineIndent<o){i===Lg?e.result+=rt.repeat(`
|
|
92
|
+
`,l?1+s:s):i===ih&&l&&(e.result+=`
|
|
93
|
+
`);break}for(n?Zr(h)?(f=!0,e.result+=rt.repeat(`
|
|
94
|
+
`,l?1+s:s)):f?(f=!1,e.result+=rt.repeat(`
|
|
95
|
+
`,s+1)):s===0?l&&(e.result+=" "):e.result+=rt.repeat(`
|
|
96
|
+
`,s):e.result+=rt.repeat(`
|
|
97
|
+
`,l?1+s:s),l=!0,a=!0,s=0,t=e.position;!Kt(h)&&h!==0;)h=e.input.charCodeAt(++e.position);kr(e,t,e.position,!1)}return!0}function Hg(e,r){var t,n=e.tag,i=e.anchor,l=[],a,o=!1,s;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),s=e.input.charCodeAt(e.position);s!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Te(e,"tab characters must not be used in indentation")),!(s!==45||(a=e.input.charCodeAt(e.position+1),!xt(a))));){if(o=!0,e.position++,Je(e,!0,-1)&&e.lineIndent<=r){l.push(null),s=e.input.charCodeAt(e.position);continue}if(t=e.line,Gn(e,r,t5,!1,!0),l.push(e.result),Je(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>r)&&s!==0)Te(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return o?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=l,!0):!1}function rM(e,r,t){var n,i,l,a,o,s,f=e.tag,c=e.anchor,h={},u=Object.create(null),d=null,p=null,y=null,b=!1,_=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),g=e.input.charCodeAt(e.position);g!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Te(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),l=e.line,(g===63||g===58)&&xt(n))g===63?(b&&(Hn(e,h,u,d,p,null,a,o,s),d=p=y=null),_=!0,b=!0,i=!0):b?(b=!1,i=!0):Te(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else{if(a=e.line,o=e.lineStart,s=e.position,!Gn(e,t,e5,!1,!0))break;if(e.line===l){for(g=e.input.charCodeAt(e.position);Zr(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),xt(g)||Te(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(Hn(e,h,u,d,p,null,a,o,s),d=p=y=null),_=!0,b=!1,i=!1,d=e.tag,p=e.result;else if(_)Te(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=c,!0}else if(_)Te(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=c,!0}if((e.line===l||e.lineIndent>r)&&(b&&(a=e.line,o=e.lineStart,s=e.position),Gn(e,r,To,!0,i)&&(b?p=e.result:y=e.result),b||(Hn(e,h,u,d,p,y,a,o,s),d=p=y=null),Je(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===l||e.lineIndent>r)&&g!==0)Te(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return b&&Hn(e,h,u,d,p,null,a,o,s),_&&(e.tag=f,e.anchor=c,e.kind="mapping",e.result=h),_}function nM(e){var r,t=!1,n=!1,i,l,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Te(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",r=e.position,t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(l=e.input.slice(r,e.position),a=e.input.charCodeAt(++e.position)):Te(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!xt(a);)a===33&&(n?Te(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),r5.test(i)||Te(e,"named tag handle cannot contain such characters"),n=!0,r=e.position+1)),a=e.input.charCodeAt(++e.position);l=e.input.slice(r,e.position),WL.test(l)&&Te(e,"tag suffix cannot contain flow indicator characters")}l&&!n5.test(l)&&Te(e,"tag name cannot contain such characters: "+l);try{l=decodeURIComponent(l)}catch{Te(e,"tag name is malformed: "+l)}return t?e.tag=l:Dr.call(e.tagMap,i)?e.tag=e.tagMap[i]+l:i==="!"?e.tag="!"+l:i==="!!"?e.tag="tag:yaml.org,2002:"+l:Te(e,'undeclared tag handle "'+i+'"'),!0}function iM(e){var r,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&Te(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!xt(t)&&!$n(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&Te(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function sM(e){var r,t,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!xt(n)&&!$n(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&Te(e,"name of an alias node must contain at least one character"),t=e.input.slice(r,e.position),Dr.call(e.anchorMap,t)||Te(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],Je(e,!0,-1),!0}function Gn(e,r,t,n,i){var l,a,o,s=1,f=!1,c=!1,h,u,d,p,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,l=a=o=To===t||t5===t,n&&Je(e,!0,-1)&&(f=!0,e.lineIndent>r?s=1:e.lineIndent===r?s=0:e.lineIndent<r&&(s=-1)),s===1)for(;nM(e)||iM(e);)Je(e,!0,-1)?(f=!0,o=l,e.lineIndent>r?s=1:e.lineIndent===r?s=0:e.lineIndent<r&&(s=-1)):o=!1;if(o&&(o=f||i),(s===1||To===t)&&(Oo===t||e5===t?y=r:y=r+1,b=e.position-e.lineStart,s===1?o&&(Hg(e,b)||rM(e,b,y))||eM(e,y)?c=!0:(a&&tM(e,y)||QL(e,y)||JL(e,y)?c=!0:sM(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&Te(e,"alias node should not have any properties")):ZL(e,y,Oo===t)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):s===0&&(c=o&&Hg(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Te(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,u=e.implicitTypes.length;h<u;h+=1)if(p=e.implicitTypes[h],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Dr.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],h=0,u=d.length;h<u;h+=1)if(e.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||Te(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&Te(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Te(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function oM(e){var r=e.position,t,n,i,l=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Je(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(l=!0,a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!xt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&Te(e,"directive name must not be less than one character in length");a!==0;){for(;Zr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Kt(a));break}if(Kt(a))break;for(t=e.position;a!==0&&!xt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}a!==0&&Ph(e),Dr.call(jg,n)?jg[n](e,n,i):Fo(e,'unknown document directive "'+n+'"')}if(Je(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Je(e,!0,-1)):l&&Te(e,"directives end mark is expected"),Gn(e,e.lineIndent-1,To,!1,!0),Je(e,!0,-1),e.checkLineBreaks&&GL.test(e.input.slice(r,e.position))&&Fo(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Vo(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Je(e,!0,-1));return}if(e.position<e.length-1)Te(e,"end of the stream or a document separator is expected");else return}function a5(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
98
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new XL(e,r),n=e.indexOf("\0");for(n!==-1&&(t.position=n,Te(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)oM(t);return t.documents}function aM(e,r,t){r!==null&&typeof r=="object"&&typeof t>"u"&&(t=r,r=null);var n=a5(e,t);if(typeof r!="function")return n;for(var i=0,l=n.length;i<l;i+=1)r(n[i])}function uM(e,r){var t=a5(e,r);if(t.length!==0){if(t.length===1)return t[0];throw new St("expected a single document in the stream, but found more")}}var lM=aM,cM=uM,u5={loadAll:lM,load:cM},l5=Object.prototype.toString,c5=Object.prototype.hasOwnProperty,Ih=65279,hM=9,ji=10,fM=13,pM=32,dM=33,mM=34,uh=35,yM=37,gM=38,bM=39,vM=42,h5=44,_M=45,Po=58,wM=61,EM=62,SM=63,xM=64,f5=91,p5=93,AM=96,d5=123,CM=124,m5=125,mt={};mt[0]="\\0";mt[7]="\\a";mt[8]="\\b";mt[9]="\\t";mt[10]="\\n";mt[11]="\\v";mt[12]="\\f";mt[13]="\\r";mt[27]="\\e";mt[34]='\\"';mt[92]="\\\\";mt[133]="\\N";mt[160]="\\_";mt[8232]="\\L";mt[8233]="\\P";var kM=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],DM=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function RM(e,r){var t,n,i,l,a,o,s;if(r===null)return{};for(t={},n=Object.keys(r),i=0,l=n.length;i<l;i+=1)a=n[i],o=String(r[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),s=e.compiledTypeMap.fallback[a],s&&c5.call(s.styleAliases,o)&&(o=s.styleAliases[o]),t[a]=o;return t}function OM(e){var r,t,n;if(r=e.toString(16).toUpperCase(),e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new St("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+rt.repeat("0",n-r.length)+r}var TM=1,$i=2;function FM(e){this.schema=e.schema||J8,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=rt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=RM(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?$i:TM,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function qg(e,r){for(var t=rt.repeat(" ",r),n=0,i=-1,l="",a,o=e.length;n<o;)i=e.indexOf(`
|
|
99
|
+
`,n),i===-1?(a=e.slice(n),n=o):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
|
100
|
+
`&&(l+=t),l+=a;return l}function lh(e,r){return`
|
|
101
|
+
`+rt.repeat(" ",e.indent*r)}function PM(e,r){var t,n,i;for(t=0,n=e.implicitTypes.length;t<n;t+=1)if(i=e.implicitTypes[t],i.resolve(r))return!0;return!1}function Bo(e){return e===pM||e===hM}function Hi(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ih||65536<=e&&e<=1114111}function Ug(e){return Hi(e)&&e!==Ih&&e!==fM&&e!==ji}function Gg(e,r,t){var n=Ug(e),i=n&&!Bo(e);return(t?n:n&&e!==h5&&e!==f5&&e!==p5&&e!==d5&&e!==m5)&&e!==uh&&!(r===Po&&!i)||Ug(r)&&!Bo(r)&&e===uh||r===Po&&i}function BM(e){return Hi(e)&&e!==Ih&&!Bo(e)&&e!==_M&&e!==SM&&e!==Po&&e!==h5&&e!==f5&&e!==p5&&e!==d5&&e!==m5&&e!==uh&&e!==gM&&e!==vM&&e!==dM&&e!==CM&&e!==wM&&e!==EM&&e!==bM&&e!==mM&&e!==yM&&e!==xM&&e!==AM}function IM(e){return!Bo(e)&&e!==Po}function Li(e,r){var t=e.charCodeAt(r),n;return t>=55296&&t<=56319&&r+1<e.length&&(n=e.charCodeAt(r+1),n>=56320&&n<=57343)?(t-55296)*1024+n-56320+65536:t}function y5(e){var r=/^\n* /;return r.test(e)}var g5=1,ch=2,b5=3,v5=4,jn=5;function LM(e,r,t,n,i,l,a,o){var s,f=0,c=null,h=!1,u=!1,d=n!==-1,p=-1,y=BM(Li(e,0))&&IM(Li(e,e.length-1));if(r||a)for(s=0;s<e.length;f>=65536?s+=2:s++){if(f=Li(e,s),!Hi(f))return jn;y=y&&Gg(f,c,o),c=f}else{for(s=0;s<e.length;f>=65536?s+=2:s++){if(f=Li(e,s),f===ji)h=!0,d&&(u=u||s-p-1>n&&e[p+1]!==" ",p=s);else if(!Hi(f))return jn;y=y&&Gg(f,c,o),c=f}u=u||d&&s-p-1>n&&e[p+1]!==" "}return!h&&!u?y&&!a&&!i(e)?g5:l===$i?jn:ch:t>9&&y5(e)?jn:a?l===$i?jn:ch:u?v5:b5}function MM(e,r,t,n,i){e.dump=function(){if(r.length===0)return e.quotingType===$i?'""':"''";if(!e.noCompatMode&&(kM.indexOf(r)!==-1||DM.test(r)))return e.quotingType===$i?'"'+r+'"':"'"+r+"'";var l=e.indent*Math.max(1,t),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-l),o=n||e.flowLevel>-1&&t>=e.flowLevel;function s(f){return PM(e,f)}switch(LM(r,o,e.indent,a,s,e.quotingType,e.forceQuotes&&!n,i)){case g5:return r;case ch:return"'"+r.replace(/'/g,"''")+"'";case b5:return"|"+Wg(r,e.indent)+zg(qg(r,l));case v5:return">"+Wg(r,e.indent)+zg(qg(NM(r,a),l));case jn:return'"'+jM(r)+'"';default:throw new St("impossible error: invalid scalar style")}}()}function Wg(e,r){var t=y5(e)?String(r):"",n=e[e.length-1]===`
|
|
102
|
+
`,i=n&&(e[e.length-2]===`
|
|
103
|
+
`||e===`
|
|
104
|
+
`),l=i?"+":n?"":"-";return t+l+`
|
|
105
|
+
`}function zg(e){return e[e.length-1]===`
|
|
106
|
+
`?e.slice(0,-1):e}function NM(e,r){for(var t=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
|
|
107
|
+
`);return f=f!==-1?f:e.length,t.lastIndex=f,Vg(e.slice(0,f),r)}(),i=e[0]===`
|
|
108
|
+
`||e[0]===" ",l,a;a=t.exec(e);){var o=a[1],s=a[2];l=s[0]===" ",n+=o+(!i&&!l&&s!==""?`
|
|
109
|
+
`:"")+Vg(s,r),i=l}return n}function Vg(e,r){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,n,i=0,l,a=0,o=0,s="";n=t.exec(e);)o=n.index,o-i>r&&(l=a>i?a:o,s+=`
|
|
110
|
+
`+e.slice(i,l),i=l+1),a=o;return s+=`
|
|
111
|
+
`,e.length-i>r&&a>i?s+=e.slice(i,a)+`
|
|
112
|
+
`+e.slice(a+1):s+=e.slice(i),s.slice(1)}function jM(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=Li(e,i),n=mt[t],!n&&Hi(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||OM(t);return r}function $M(e,r,t){var n="",i=e.tag,l,a,o;for(l=0,a=t.length;l<a;l+=1)o=t[l],e.replacer&&(o=e.replacer.call(t,String(l),o)),(lr(e,r,o,!1,!1)||typeof o>"u"&&lr(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function Kg(e,r,t,n){var i="",l=e.tag,a,o,s;for(a=0,o=t.length;a<o;a+=1)s=t[a],e.replacer&&(s=e.replacer.call(t,String(a),s)),(lr(e,r+1,s,!0,!0,!1,!0)||typeof s>"u"&&lr(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=lh(e,r)),e.dump&&ji===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=l,e.dump=i||"[]"}function HM(e,r,t){var n="",i=e.tag,l=Object.keys(t),a,o,s,f,c;for(a=0,o=l.length;a<o;a+=1)c="",n!==""&&(c+=", "),e.condenseFlow&&(c+='"'),s=l[a],f=t[s],e.replacer&&(f=e.replacer.call(t,s,f)),lr(e,r,s,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),lr(e,r,f,!1,!1)&&(c+=e.dump,n+=c));e.tag=i,e.dump="{"+n+"}"}function qM(e,r,t,n){var i="",l=e.tag,a=Object.keys(t),o,s,f,c,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new St("sortKeys must be a boolean or a function");for(o=0,s=a.length;o<s;o+=1)u="",(!n||i!=="")&&(u+=lh(e,r)),f=a[o],c=t[f],e.replacer&&(c=e.replacer.call(t,f,c)),lr(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&ji===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=lh(e,r)),lr(e,r+1,c,!0,h)&&(e.dump&&ji===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=l,e.dump=i||"{}"}function Yg(e,r,t){var n,i,l,a,o,s;for(i=t?e.explicitTypes:e.implicitTypes,l=0,a=i.length;l<a;l+=1)if(o=i[l],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof r=="object"&&r instanceof o.instanceOf)&&(!o.predicate||o.predicate(r))){if(t?o.multi&&o.representName?e.tag=o.representName(r):e.tag=o.tag:e.tag="?",o.represent){if(s=e.styleMap[o.tag]||o.defaultStyle,l5.call(o.represent)==="[object Function]")n=o.represent(r,s);else if(c5.call(o.represent,s))n=o.represent[s](r,s);else throw new St("!<"+o.tag+'> tag resolver accepts not "'+s+'" style');e.dump=n}return!0}return!1}function lr(e,r,t,n,i,l,a){e.tag=null,e.dump=t,Yg(e,t,!1)||Yg(e,t,!0);var o=l5.call(e.dump),s=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var c=o==="[object Object]"||o==="[object Array]",h,u;if(c&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(c&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(qM(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(HM(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(o==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?Kg(e,r-1,e.dump,i):Kg(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):($M(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&MM(e,e.dump,r,l,s);else{if(o==="[object Undefined]"||e.skipInvalid)return!1;throw new St("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function UM(e,r){var t=[],n=[],i,l;for(hh(e,t,n),i=0,l=n.length;i<l;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(l)}function hh(e,r,t){var n,i,l;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,l=e.length;i<l;i+=1)hh(e[i],r,t);else for(n=Object.keys(e),i=0,l=n.length;i<l;i+=1)hh(e[n[i]],r,t)}function GM(e,r){r=r||{};var t=new FM(r);t.noRefs||UM(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),lr(t,0,n,!0,!0)?t.dump+`
|
|
113
|
+
`:""}var WM=GM,zM={dump:WM};function Lh(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var zU=u5.load,VU=u5.loadAll,KU=zM.dump,YU=Lh("safeLoad","load"),XU=Lh("safeLoadAll","loadAll"),ZU=Lh("safeDump","dump"),QU=at(xI()),vt=class extends Error{constructor(e,r){var t;super(e),this.name="ConvertError",this.type=(t=r==null?void 0:r.type)!=null?t:"unknown",Error.captureStackTrace(this,vt)}},Yt=et(require("fs-extra")),qi=et(require("path")),VM=et(Tu()),KM=et(require("fs-extra")),YM=et(require("chalk")),XM=et(require("path")),Io=et(require("fs-extra")),Qr=et(require("path")),ZM=et(F2()),QM=et(zy()),JM=/^(?!_)(.+)@(.+)$/;function Nt({workspaceRoot:e}){let r=Qr.default.join(e,"package.json");try{return Io.default.readJsonSync(r,"utf8")}catch(t){if(t&&typeof t=="object"&&"code"in t){if(t.code==="ENOENT")throw new vt(`no "package.json" found at ${e}`,{type:"package_json-missing"});if(t.code==="EJSONPARSE")throw new vt(`failed to parse "package.json" at ${e}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${e}`)}}function Mh({workspaceRoot:e}){let{packageManager:r}=Nt({workspaceRoot:e});if(r)try{let t=r.match(JM);if(t){let[n,i]=t;return i}}catch{}}function Ko({workspaceRoot:e}){let r=Nt({workspaceRoot:e}),t=Qr.default.basename(e),{name:n=t,description:i}=r;return{name:n,description:i}}function Xg({workspaceRoot:e}){let r=Qr.default.join(e,"pnpm-workspace.yaml");if(Io.default.existsSync(r))try{let t=QM.default.load(Io.default.readFileSync(r,"utf8"));if(t instanceof Object&&"packages"in t&&Array.isArray(t.packages))return t.packages}catch{throw new vt(`failed to parse ${r}`,{type:"pnpm-workspace_parse_error"})}return[]}function Nh({root:e,lockFile:r,workspaceConfig:t}){let n=l=>Qr.default.join(e,l),i={root:e,lockfile:n(r),packageJson:n("package.json"),nodeModules:n("node_modules")};return t&&(i.workspaceConfig=n(t)),i}function jh({workspaceRoot:e,workspaceGlobs:r}){return r?r.flatMap(t=>{let n=`${t}/package.json`;return ZM.default.sync(n,{onlyFiles:!0,absolute:!0,cwd:e})}).map(t=>{let n=Qr.default.dirname(t),{name:i,description:l}=Ko({workspaceRoot:n});return{name:i,description:l,paths:{root:n,packageJson:t,nodeModules:Qr.default.join(n,"node_modules")}}}):[]}function eN({directory:e}){let r=Qr.default.resolve(process.cwd(),e);return{exists:Io.default.existsSync(r),absolute:r}}function Yn({packageManager:e,action:r,project:t}){let n=t.workspaceData.globs.length>0;return`${r==="remove"?"Removing":"Adding"} ${e} ${n?"workspaces":""} ${r==="remove"?"from":"to"} ${t.name}`}function tN({dependencyList:e,project:r,to:t}){let n=[];return r.workspaceData.workspaces.forEach(i=>{let{name:l}=i;if(e[l]){let a=e[l],o=a.startsWith("workspace:")?a.slice(10):a;e[l]=t.name==="pnpm"?`workspace:${o}`:o,n.push(l)}}),{dependencyList:e,updated:n}}function Wn({project:e,workspace:r,to:t,logger:n,options:i}){if(["yarn","npm"].includes(t.name)&&["yarn","npm"].includes(e.packageManager))return;let l=Nt({workspaceRoot:r.paths.root}),a={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},o=["dependencies","devDependencies","peerDependencies","optionalDependencies"];o.forEach(h=>{let u=l[h];if(u){let{updated:d,dependencyList:p}=tN({dependencyList:u,project:e,to:t});l[h]=p,a[h]=d}});let s=h=>{let u=a[h].length;if(u>0)return`${YM.default.green(u.toString())} ${h}`},f=o.map(s).filter(Boolean),c=`./${XM.default.relative(e.paths.root,r.paths.packageJson)}`;if(f.length>=1){let h="updating";f.forEach((u,d)=>{f.length===1?h+=` ${u} in ${c}`:d===f.length-1?h+=`and ${u} in ${c}`:h+=` ${u}, `}),n.workspaceStep(h)}else n.workspaceStep(`no workspace dependencies found in ${c}`);i!=null&&i.dry||KM.default.writeJSONSync(r.paths.packageJson,l,{spaces:2})}async function _5(e){let r=qi.default.join(e.workspaceRoot,"pnpm-lock.yaml"),t=qi.default.join(e.workspaceRoot,"pnpm-workspace.yaml"),n=Mh({workspaceRoot:e.workspaceRoot});return Yt.default.existsSync(r)||Yt.default.existsSync(t)||n==="pnpm"}async function rN(e){if(!await _5(e))throw new vt("Not a pnpm project",{type:"package_manager-unexpected"});let{name:r,description:t}=Ko(e);return{name:r,description:t,packageManager:"pnpm",paths:Nh({root:e.workspaceRoot,lockFile:"pnpm-lock.yaml",workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:Xg(e),workspaces:jh({workspaceGlobs:Xg(e),...e})}}}async function nN(e){let{project:r,to:t,logger:n,options:i}=e,l=r.workspaceData.globs.length>0;n.mainStep(Yn({action:"create",packageManager:"pnpm",project:r}));let a=Nt({workspaceRoot:r.paths.root});n.rootHeader(),a.packageManager=`${t.name}@${t.version}`,n.rootStep(`adding "packageManager" field to ${r.name} root "package.json"`),i!=null&&i.dry||(Yt.default.writeJSONSync(r.paths.packageJson,a,{spaces:2}),l&&(n.rootStep('adding "pnpm-workspace.yaml"'),Yt.default.writeFileSync(qi.default.join(r.paths.root,"pnpm-workspace.yaml"),`packages:
|
|
114
|
+
${r.workspaceData.globs.map(o=>` - "${o}"`).join(`
|
|
115
|
+
`)}`))),l&&(Wn({workspace:{name:"root",paths:r.paths},project:r,to:t,logger:n,options:i}),n.workspaceHeader(),r.workspaceData.workspaces.forEach(o=>Wn({workspace:o,project:r,to:t,logger:n,options:i})))}async function iN(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(Yn({action:"remove",packageManager:"pnpm",project:r}));let l=Nt({workspaceRoot:r.paths.root});if(r.paths.workspaceConfig&&i&&(t.subStep('removing "pnpm-workspace.yaml"'),n!=null&&n.dry||Yt.default.rmSync(r.paths.workspaceConfig,{force:!0})),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete l.packageManager,!(n!=null&&n.dry)){Yt.default.writeJSONSync(r.paths.packageJson,l,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(o=>Yt.default.rm(o,{recursive:!0,force:!0})))}catch{throw new vt("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function sN(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${qi.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||Yt.default.rmSync(r.paths.lockfile,{force:!0})}async function oN(e){let{project:r,logger:t,options:n}=e;if(r.packageManager!=="pnpm"&&(t.subStep(`converting ${qi.default.relative(r.paths.root,r.paths.lockfile)} to pnpm-lock.yaml`),!(n!=null&&n.dry)&&Yt.default.existsSync(r.paths.lockfile)))try{await(0,VM.default)("pnpm",["import"],{stdio:"ignore",cwd:r.paths.root})}finally{Yt.default.rmSync(r.paths.lockfile,{force:!0})}}var aN={detect:_5,read:rN,create:nN,remove:iN,clean:sN,convertLock:oN},uN=aN,Jr=et(require("fs-extra")),Lo=et(require("path"));async function w5(e){let r=Lo.default.join(e.workspaceRoot,"package-lock.json"),t=Mh({workspaceRoot:e.workspaceRoot});return Jr.default.existsSync(r)||t==="npm"}async function lN(e){if(!await w5(e))throw new vt("Not an npm project",{type:"package_manager-unexpected"});let r=Nt(e),{name:t,description:n}=Ko(e);return{name:t,description:n,packageManager:"npm",paths:Nh({root:e.workspaceRoot,lockFile:"package-lock.json"}),workspaceData:{globs:r.workspaces||[],workspaces:jh({workspaceGlobs:r.workspaces,...e})}}}async function cN(e){let{project:r,options:t,to:n,logger:i}=e,l=r.workspaceData.globs.length>0;i.mainStep(Yn({packageManager:"npm",action:"create",project:r}));let a=Nt({workspaceRoot:r.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${Lo.default.relative(r.paths.root,r.paths.packageJson)}`),a.packageManager=`${n.name}@${n.version}`,l?(i.rootStep(`adding "workspaces" field to ${Lo.default.relative(r.paths.root,r.paths.packageJson)}`),a.workspaces=r.workspaceData.globs,t!=null&&t.dry||Jr.default.writeJSONSync(r.paths.packageJson,a,{spaces:2}),Wn({workspace:{name:"root",paths:r.paths},project:r,to:n,logger:i,options:t}),i.workspaceHeader(),r.workspaceData.workspaces.forEach(o=>Wn({workspace:o,project:r,to:n,logger:i,options:t}))):t!=null&&t.dry||Jr.default.writeJSONSync(r.paths.packageJson,a,{spaces:2})}async function hN(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(Yn({packageManager:"npm",action:"remove",project:r}));let l=Nt({workspaceRoot:r.paths.root});if(i&&(t.subStep(`removing "workspaces" field in ${r.name} root "package.json"`),delete l.workspaces),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete l.packageManager,!(n!=null&&n.dry)){Jr.default.writeJSONSync(r.paths.packageJson,l,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(o=>Jr.default.rm(o,{recursive:!0,force:!0})))}catch{throw new vt("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function fN(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${Lo.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||Jr.default.rmSync(r.paths.lockfile,{force:!0})}async function pN(e){let{project:r,options:t}=e;r.packageManager!=="npm"&&(t!=null&&t.dry||Jr.default.rmSync(r.paths.lockfile,{force:!0}))}var dN={detect:w5,read:lN,create:cN,remove:hN,clean:fN,convertLock:pN},mN=dN,en=et(require("fs-extra")),Mo=et(require("path"));async function E5(e){let r=Mo.default.join(e.workspaceRoot,"yarn.lock"),t=Mh({workspaceRoot:e.workspaceRoot});return en.default.existsSync(r)||t==="yarn"}async function yN(e){if(!await E5(e))throw new vt("Not a yarn project",{type:"package_manager-unexpected"});let r=Nt(e),{name:t,description:n}=Ko(e);return{name:t,description:n,packageManager:"yarn",paths:Nh({root:e.workspaceRoot,lockFile:"yarn.lock"}),workspaceData:{globs:r.workspaces||[],workspaces:jh({workspaceGlobs:r.workspaces,...e})}}}async function gN(e){let{project:r,to:t,logger:n,options:i}=e,l=r.workspaceData.globs.length>0;n.mainStep(Yn({packageManager:"yarn",action:"create",project:r}));let a=Nt({workspaceRoot:r.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${Mo.default.relative(r.paths.root,r.paths.packageJson)}`),a.packageManager=`${t.name}@${t.version}`,l?(n.rootStep(`adding "workspaces" field to ${Mo.default.relative(r.paths.root,r.paths.packageJson)}`),a.workspaces=r.workspaceData.globs,i!=null&&i.dry||en.default.writeJSONSync(r.paths.packageJson,a,{spaces:2}),Wn({workspace:{name:"root",paths:r.paths},project:r,to:t,logger:n,options:i}),n.workspaceHeader(),r.workspaceData.workspaces.forEach(o=>Wn({workspace:o,project:r,to:t,logger:n,options:i}))):i!=null&&i.dry||en.default.writeJSONSync(r.paths.packageJson,a,{spaces:2})}async function bN(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(Yn({packageManager:"yarn",action:"remove",project:r}));let l=Nt({workspaceRoot:r.paths.root});if(i&&(t.subStep(`removing "workspaces" field in ${r.name} root "package.json"`),delete l.workspaces),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete l.packageManager,!(n!=null&&n.dry)){en.default.writeJSONSync(r.paths.packageJson,l,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(o=>o.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(o=>en.default.rm(o,{recursive:!0,force:!0})))}catch{throw new vt("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function vN(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${Mo.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||en.default.rmSync(r.paths.lockfile,{force:!0})}async function _N(e){let{project:r,options:t}=e;r.packageManager!=="yarn"&&(t!=null&&t.dry||en.default.rmSync(r.paths.lockfile,{force:!0}))}var wN={detect:E5,read:yN,create:gN,remove:bN,clean:vN,convertLock:_N},EN=wN,SN={pnpm:uN,yarn:EN,npm:mN},qn=SN;async function S5({root:e}){let{exists:r,absolute:t}=eN({directory:e});if(!r)throw new vt(`Could not find directory at ${t}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:n,read:i}of Object.values(qn))if(await n({workspaceRoot:t}))return i({workspaceRoot:t});throw new vt("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}var xN=et(require("chalk")),AN=et(Tu()),CN=et(_g()),kN=require("semver"),Bt=et(require("chalk")),DN=et(Pg()),Nn=2,x5=class{constructor({interactive:e,dry:r}={}){this.interactive=e!=null?e:!0,this.dry=r!=null?r:!1,this.step=1}logger(...e){this.interactive&&console.log(...e)}indented(e,...r){this.logger(" ".repeat(Nn*e),...r)}header(e){this.blankLine(),this.logger(Bt.default.bold(e))}installerFrames(){let e=`${" ".repeat(Nn)} - ${this.dry?Bt.default.yellow("SKIPPED | "):Bt.default.green("OK | ")}`;return[`${e} `,`${e}> `,`${e}>> `,`${e}>>>`]}gradient(e){return(0,DN.default)("#0099F7","#F11712")(e.toString())}hero(){this.logger(Bt.default.bold(this.gradient(`
|
|
116
|
+
>>> TURBOREPO
|
|
117
|
+
`)))}info(...e){this.logger(...e)}mainStep(e){this.blankLine(),this.logger(`${this.step}. ${Bt.default.underline(e)}`),this.step+=1}subStep(...e){this.logger(" ".repeat(Nn),"-",this.dry?Bt.default.yellow("SKIPPED |"):Bt.default.green("OK |"),...e)}subStepFailure(...e){this.logger(" ".repeat(Nn),"-",Bt.default.red("ERROR |"),...e)}rootHeader(){this.blankLine(),this.indented(2,"Root:")}rootStep(...e){this.logger(" ".repeat(Nn*3),"-",this.dry?Bt.default.yellow("SKIPPED |"):Bt.default.green("OK |"),...e)}workspaceHeader(){this.blankLine(),this.indented(2,"Workspaces:")}workspaceStep(...e){this.logger(" ".repeat(Nn*3),"-",this.dry?Bt.default.yellow("SKIPPED |"):Bt.default.green("OK |"),...e)}blankLine(){this.logger()}error(...e){console.error(...e)}},Zg={npm:[{name:"npm",template:"npm",command:"npm",installArgs:["install"],version:"latest",executable:"npx",semver:"*",default:!0}],pnpm:[{name:"pnpm6",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest-6",executable:"pnpx",semver:"6.x"},{name:"pnpm",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest",executable:"pnpm dlx",semver:">=7",default:!0}],yarn:[{name:"yarn",template:"yarn",command:"yarn",installArgs:["install"],version:"1.x",executable:"npx",semver:"<2",default:!0},{name:"berry",template:"berry",command:"yarn",installArgs:["install","--no-immutable"],version:"stable",executable:"yarn dlx",semver:">=2"}]};function A5(e){let{version:r,name:t}=e;return r?Zg[t].find(n=>(0,kN.satisfies)(r,n.semver)):Zg[t].find(n=>n.default)}async function C5(e){let{to:r,logger:t,options:n}=e,i=t!=null?t:new x5(n),l=A5(r);if(!l)throw new vt("Unsupported package manager version.",{type:"package_manager-unsupported_version"});if(i.subStep(`running "${l.command} ${l.installArgs}"`),!(n!=null&&n.dry)){let a;i!=null&&i.interactive&&(a=(0,CN.default)({text:"installing dependencies...",spinner:{frames:i.installerFrames()}}).start());try{await(0,AN.default)(l.command,l.installArgs,{cwd:e.project.paths.root}),a&&a.stop(),i.subStep("dependencies installed")}catch(o){throw i.subStepFailure("failed to install dependencies"),o}}}async function RN({project:e,to:r,logger:t,options:n}){if(t.header(`Converting project from ${e.packageManager} to ${r.name}.`),e.packageManager==r.name)throw new vt("You are already using this package manager",{type:"package_manager-already_in_use"});await qn[e.packageManager].remove({project:e,to:r,logger:t,options:n}),await qn[r.name].create({project:e,to:r,logger:t,options:n}),t.mainStep("Installing dependencies"),n!=null&&n.skipInstall?t.subStep(xN.default.yellow("Skipping install")):(await qn[r.name].convertLock({project:e,logger:t,options:n}),await C5({project:e,to:r,logger:t,options:n})),t.mainStep(`Cleaning up ${e.packageManager} workspaces`),await qn[e.packageManager].clean({project:e,logger:t})}async function ON({root:e,to:r,options:t}){let n=new x5({...t,interactive:!1}),[i,l]=await Promise.all([S5({root:e}),N9()]);await RN({project:i,to:{name:r,version:l[r].version},logger:n,options:t})}});var Qh=Ue(require("chalk")),ut=require("commander");var ef=Ue(require("chalk")),tf=Ue(require("update-check"));var Xn={name:"@turbo/gen",version:"0.0.1-alpha.0",description:"Extend a Turborepo",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-gen"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:"dist/cli.js",scripts:{build:"tsup",test:"jest",lint:"eslint src/**/*.ts","check-types":"tsc --noEmit"},dependencies:{chalk:"2.4.2",commander:"^10.0.0","fs-extra":"^10.1.0",inquirer:"^8.2.4",minimatch:"^9.0.0","node-plop":"^0.26.3",semver:"^7.3.8","update-check":"^1.5.4","validate-npm-package-name":"^5.0.0"},devDependencies:{"@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^8.2.5","@types/jest":"^27.4.0","@types/node":"^16.11.12","@types/semver":"^7.3.9","@types/validate-npm-package-name":"^4.0.0",eslint:"^7.23.0",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^4.5.5"},files:["dist"]};var nb=(0,tf.default)(Xn).catch(()=>null);async function Xi(){try{let e=await nb;e!=null&&e.latest&&(console.log(),console.log(ef.default.yellow.bold(`A new version of \`${Xn.name}\` is available!`)),console.log()),process.exit()}catch{}}var ib=Object.create,na=Object.defineProperty,sb=Object.getOwnPropertyDescriptor,ob=Object.getOwnPropertyNames,ab=Object.getPrototypeOf,ub=Object.prototype.hasOwnProperty,he=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(r,t)=>(typeof require!="undefined"?require:r)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),lb=(e,r)=>()=>(e&&(r=e(e=0)),r),te=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),rf=(e,r)=>{for(var t in r)na(e,t,{get:r[t],enumerable:!0})},cb=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of ob(r))!ub.call(e,i)&&i!==t&&na(e,i,{get:()=>r[i],enumerable:!(n=sb(r,i))||n.enumerable});return e},Ge=(e,r,t)=>(t=e!=null?ib(ab(e)):{},cb(r||!e||!e.__esModule?na(t,"default",{value:e,enumerable:!0}):t,e)),Z=lb(()=>{});var Of=require("stream"),Tf=require("util"),Ff=require("path"),Pf=require("os"),ri=require("fs"),hr=te((e,r)=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var t=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function n(m){return t.includes(m)}var i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...t];function l(m){return i.includes(m)}var a=["null","undefined","string","number","bigint","boolean","symbol"];function o(m){return a.includes(m)}function s(m){return w=>typeof w===m}var{toString:f}=Object.prototype,c=m=>{let w=f.call(m).slice(8,-1);if(/HTML\w+Element/.test(w)&&u.domElement(m))return"HTMLElement";if(l(w))return w},h=m=>w=>c(w)===m;function u(m){if(m===null)return"null";switch(typeof m){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(u.observable(m))return"Observable";if(u.array(m))return"Array";if(u.buffer(m))return"Buffer";let w=c(m);if(w)return w;if(m instanceof String||m instanceof Boolean||m instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}u.undefined=s("undefined"),u.string=s("string");var d=s("number");u.number=m=>d(m)&&!u.nan(m),u.bigint=s("bigint"),u.function_=s("function"),u.null_=m=>m===null,u.class_=m=>u.function_(m)&&m.toString().startsWith("class "),u.boolean=m=>m===!0||m===!1,u.symbol=s("symbol"),u.numericString=m=>u.string(m)&&!u.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),u.array=(m,w)=>Array.isArray(m)?u.function_(w)?m.every(w):!0:!1,u.buffer=m=>{var w,x,A,R;return(R=(A=(x=(w=m)===null||w===void 0?void 0:w.constructor)===null||x===void 0?void 0:x.isBuffer)===null||A===void 0?void 0:A.call(x,m))!==null&&R!==void 0?R:!1},u.blob=m=>h("Blob")(m),u.nullOrUndefined=m=>u.null_(m)||u.undefined(m),u.object=m=>!u.null_(m)&&(typeof m=="object"||u.function_(m)),u.iterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.iterator])},u.asyncIterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.asyncIterator])},u.generator=m=>{var w,x;return u.iterable(m)&&u.function_((w=m)===null||w===void 0?void 0:w.next)&&u.function_((x=m)===null||x===void 0?void 0:x.throw)},u.asyncGenerator=m=>u.asyncIterable(m)&&u.function_(m.next)&&u.function_(m.throw),u.nativePromise=m=>h("Promise")(m);var p=m=>{var w,x;return u.function_((w=m)===null||w===void 0?void 0:w.then)&&u.function_((x=m)===null||x===void 0?void 0:x.catch)};u.promise=m=>u.nativePromise(m)||p(m),u.generatorFunction=h("GeneratorFunction"),u.asyncGeneratorFunction=m=>c(m)==="AsyncGeneratorFunction",u.asyncFunction=m=>c(m)==="AsyncFunction",u.boundFunction=m=>u.function_(m)&&!m.hasOwnProperty("prototype"),u.regExp=h("RegExp"),u.date=h("Date"),u.error=h("Error"),u.map=m=>h("Map")(m),u.set=m=>h("Set")(m),u.weakMap=m=>h("WeakMap")(m),u.weakSet=m=>h("WeakSet")(m),u.int8Array=h("Int8Array"),u.uint8Array=h("Uint8Array"),u.uint8ClampedArray=h("Uint8ClampedArray"),u.int16Array=h("Int16Array"),u.uint16Array=h("Uint16Array"),u.int32Array=h("Int32Array"),u.uint32Array=h("Uint32Array"),u.float32Array=h("Float32Array"),u.float64Array=h("Float64Array"),u.bigInt64Array=h("BigInt64Array"),u.bigUint64Array=h("BigUint64Array"),u.arrayBuffer=h("ArrayBuffer"),u.sharedArrayBuffer=h("SharedArrayBuffer"),u.dataView=h("DataView"),u.enumCase=(m,w)=>Object.values(w).includes(m),u.directInstanceOf=(m,w)=>Object.getPrototypeOf(m)===w.prototype,u.urlInstance=m=>h("URL")(m),u.urlString=m=>{if(!u.string(m))return!1;try{return new URL(m),!0}catch{return!1}},u.truthy=m=>!!m,u.falsy=m=>!m,u.nan=m=>Number.isNaN(m),u.primitive=m=>u.null_(m)||o(typeof m),u.integer=m=>Number.isInteger(m),u.safeInteger=m=>Number.isSafeInteger(m),u.plainObject=m=>{if(f.call(m)!=="[object Object]")return!1;let w=Object.getPrototypeOf(m);return w===null||w===Object.getPrototypeOf({})},u.typedArray=m=>n(c(m));var y=m=>u.safeInteger(m)&&m>=0;u.arrayLike=m=>!u.nullOrUndefined(m)&&!u.function_(m)&&y(m.length),u.inRange=(m,w)=>{if(u.number(w))return m>=Math.min(0,w)&&m<=Math.max(w,0);if(u.array(w)&&w.length===2)return m>=Math.min(...w)&&m<=Math.max(...w);throw new TypeError(`Invalid range: ${JSON.stringify(w)}`)};var b=1,_=["innerHTML","ownerDocument","style","attributes","nodeValue"];u.domElement=m=>u.object(m)&&m.nodeType===b&&u.string(m.nodeName)&&!u.plainObject(m)&&_.every(w=>w in m),u.observable=m=>{var w,x,A,R;return m?m===((x=(w=m)[Symbol.observable])===null||x===void 0?void 0:x.call(w))||m===((R=(A=m)["@@observable"])===null||R===void 0?void 0:R.call(A)):!1},u.nodeStream=m=>u.object(m)&&u.function_(m.pipe)&&!u.observable(m),u.infinite=m=>m===1/0||m===-1/0;var g=m=>w=>u.integer(w)&&Math.abs(w%2)===m;u.evenInteger=g(0),u.oddInteger=g(1),u.emptyArray=m=>u.array(m)&&m.length===0,u.nonEmptyArray=m=>u.array(m)&&m.length>0,u.emptyString=m=>u.string(m)&&m.length===0;var S=m=>u.string(m)&&!/\S/.test(m);u.emptyStringOrWhitespace=m=>u.emptyString(m)||S(m),u.nonEmptyString=m=>u.string(m)&&m.length>0,u.nonEmptyStringAndNotWhitespace=m=>u.string(m)&&!u.emptyStringOrWhitespace(m),u.emptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length===0,u.nonEmptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length>0,u.emptySet=m=>u.set(m)&&m.size===0,u.nonEmptySet=m=>u.set(m)&&m.size>0,u.emptyMap=m=>u.map(m)&&m.size===0,u.nonEmptyMap=m=>u.map(m)&&m.size>0,u.propertyKey=m=>u.any([u.string,u.number,u.symbol],m),u.formData=m=>h("FormData")(m),u.urlSearchParams=m=>h("URLSearchParams")(m);var E=(m,w,x)=>{if(!u.function_(w))throw new TypeError(`Invalid predicate: ${JSON.stringify(w)}`);if(x.length===0)throw new TypeError("Invalid number of values");return m.call(x,w)};u.any=(m,...w)=>(u.array(m)?m:[m]).some(x=>E(Array.prototype.some,x,w)),u.all=(m,...w)=>E(Array.prototype.every,m,w);var v=(m,w,x,A={})=>{if(!m){let{multipleValues:R}=A,B=R?`received values of types ${[...new Set(x.map(P=>`\`${u(P)}\``))].join(", ")}`:`received value of type \`${u(x)}\``;throw new TypeError(`Expected value which is \`${w}\`, ${B}.`)}};e.assert={undefined:m=>v(u.undefined(m),"undefined",m),string:m=>v(u.string(m),"string",m),number:m=>v(u.number(m),"number",m),bigint:m=>v(u.bigint(m),"bigint",m),function_:m=>v(u.function_(m),"Function",m),null_:m=>v(u.null_(m),"null",m),class_:m=>v(u.class_(m),"Class",m),boolean:m=>v(u.boolean(m),"boolean",m),symbol:m=>v(u.symbol(m),"symbol",m),numericString:m=>v(u.numericString(m),"string with a number",m),array:(m,w)=>{v(u.array(m),"Array",m),w&&m.forEach(w)},buffer:m=>v(u.buffer(m),"Buffer",m),blob:m=>v(u.blob(m),"Blob",m),nullOrUndefined:m=>v(u.nullOrUndefined(m),"null or undefined",m),object:m=>v(u.object(m),"Object",m),iterable:m=>v(u.iterable(m),"Iterable",m),asyncIterable:m=>v(u.asyncIterable(m),"AsyncIterable",m),generator:m=>v(u.generator(m),"Generator",m),asyncGenerator:m=>v(u.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(u.nativePromise(m),"native Promise",m),promise:m=>v(u.promise(m),"Promise",m),generatorFunction:m=>v(u.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(u.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(u.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(u.boundFunction(m),"Function",m),regExp:m=>v(u.regExp(m),"RegExp",m),date:m=>v(u.date(m),"Date",m),error:m=>v(u.error(m),"Error",m),map:m=>v(u.map(m),"Map",m),set:m=>v(u.set(m),"Set",m),weakMap:m=>v(u.weakMap(m),"WeakMap",m),weakSet:m=>v(u.weakSet(m),"WeakSet",m),int8Array:m=>v(u.int8Array(m),"Int8Array",m),uint8Array:m=>v(u.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(u.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(u.int16Array(m),"Int16Array",m),uint16Array:m=>v(u.uint16Array(m),"Uint16Array",m),int32Array:m=>v(u.int32Array(m),"Int32Array",m),uint32Array:m=>v(u.uint32Array(m),"Uint32Array",m),float32Array:m=>v(u.float32Array(m),"Float32Array",m),float64Array:m=>v(u.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(u.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(u.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(u.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(u.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(u.dataView(m),"DataView",m),enumCase:(m,w)=>v(u.enumCase(m,w),"EnumCase",m),urlInstance:m=>v(u.urlInstance(m),"URL",m),urlString:m=>v(u.urlString(m),"string with a URL",m),truthy:m=>v(u.truthy(m),"truthy",m),falsy:m=>v(u.falsy(m),"falsy",m),nan:m=>v(u.nan(m),"NaN",m),primitive:m=>v(u.primitive(m),"primitive",m),integer:m=>v(u.integer(m),"integer",m),safeInteger:m=>v(u.safeInteger(m),"integer",m),plainObject:m=>v(u.plainObject(m),"plain object",m),typedArray:m=>v(u.typedArray(m),"TypedArray",m),arrayLike:m=>v(u.arrayLike(m),"array-like",m),domElement:m=>v(u.domElement(m),"HTMLElement",m),observable:m=>v(u.observable(m),"Observable",m),nodeStream:m=>v(u.nodeStream(m),"Node.js Stream",m),infinite:m=>v(u.infinite(m),"infinite number",m),emptyArray:m=>v(u.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(u.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(u.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(u.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(u.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(u.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(u.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(u.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(u.emptySet(m),"empty set",m),nonEmptySet:m=>v(u.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(u.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(u.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(u.propertyKey(m),"PropertyKey",m),formData:m=>v(u.formData(m),"FormData",m),urlSearchParams:m=>v(u.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(u.evenInteger(m),"even integer",m),oddInteger:m=>v(u.oddInteger(m),"odd integer",m),directInstanceOf:(m,w)=>v(u.directInstanceOf(m,w),"T",m),inRange:(m,w)=>v(u.inRange(m,w),"in range",m),any:(m,...w)=>v(u.any(m,...w),"predicate returns truthy for any value",w,{multipleValues:!0}),all:(m,...w)=>v(u.all(m,...w),"predicate returns truthy for all values",w,{multipleValues:!0})},Object.defineProperties(u,{class:{value:u.class_},function:{value:u.function_},null:{value:u.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=u,r.exports=u,r.exports.default=u,r.exports.assert=e.assert}),hb=te((e,r)=>{"use strict";Z();var t=class extends Error{constructor(i){super(i||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},n=class{static fn(i){return(...l)=>new n((a,o,s)=>{l.push(s),i(...l).then(a,o)})}constructor(i){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((l,a)=>{this._reject=a;let o=c=>{(!this._isCanceled||!f.shouldReject)&&(this._isPending=!1,l(c))},s=c=>{this._isPending=!1,a(c)},f=c=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(c)};return Object.defineProperties(f,{shouldReject:{get:()=>this._rejectOnCancel,set:c=>{this._rejectOnCancel=c}}}),i(o,s,f)})}then(i,l){return this._promise.then(i,l)}catch(i){return this._promise.catch(i)}finally(i){return this._promise.finally(i)}cancel(i){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let l of this._cancelHandlers)l()}catch(l){this._reject(l);return}this._rejectOnCancel&&this._reject(new t(i))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(n.prototype,Promise.prototype),r.exports=n,r.exports.CancelError=t}),fb=te((e,r)=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});function t(i){return i.encrypted}var n=(i,l)=>{let a;typeof l=="function"?a={connect:l}:a=l;let o=typeof a.connect=="function",s=typeof a.secureConnect=="function",f=typeof a.close=="function",c=()=>{o&&a.connect(),t(i)&&s&&(i.authorized?a.secureConnect():i.authorizationError||i.once("secureConnect",a.secureConnect)),f&&i.once("close",a.close)};i.writable&&!i.connecting?c():i.connecting?i.once("connect",c):i.destroyed&&f&&a.close(i._hadError)};e.default=n,r.exports=n,r.exports.default=n}),pb=te((e,r)=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var t=fb(),n=he("util"),i=Number(process.versions.node.split(".")[0]),l=a=>{if(a.timings)return a.timings;let o={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};a.timings=o;let s=u=>{let d=u.emit.bind(u);u.emit=(p,...y)=>(p==="error"&&(o.error=Date.now(),o.phases.total=o.error-o.start,u.emit=d),d(p,...y))};s(a);let f=()=>{o.abort=Date.now(),(!o.response||i>=13)&&(o.phases.total=Date.now()-o.start)};a.prependOnceListener("abort",f);let c=u=>{if(o.socket=Date.now(),o.phases.wait=o.socket-o.start,n.types.isProxy(u))return;let d=()=>{o.lookup=Date.now(),o.phases.dns=o.lookup-o.socket};u.prependOnceListener("lookup",d),t.default(u,{connect:()=>{o.connect=Date.now(),o.lookup===void 0&&(u.removeListener("lookup",d),o.lookup=o.connect,o.phases.dns=o.lookup-o.socket),o.phases.tcp=o.connect-o.lookup},secureConnect:()=>{o.secureConnect=Date.now(),o.phases.tls=o.secureConnect-o.connect}})};a.socket?c(a.socket):a.prependOnceListener("socket",c);let h=()=>{var u;o.upload=Date.now(),o.phases.request=o.upload-((u=o.secureConnect)!==null&&u!==void 0?u:o.connect)};return(()=>typeof a.writableFinished=="boolean"?a.writableFinished:a.finished&&a.outputSize===0&&(!a.socket||a.socket.writableLength===0))()?h():a.prependOnceListener("finish",h),a.prependOnceListener("response",u=>{o.response=Date.now(),o.phases.firstByte=o.response-o.upload,u.timings=o,s(u),u.prependOnceListener("end",()=>{o.end=Date.now(),o.phases.download=o.end-o.response,o.phases.total=o.end-o.start}),u.prependOnceListener("aborted",f)}),o};e.default=l,r.exports=l,r.exports.default=l}),db=te((e,r)=>{"use strict";Z();var{V4MAPPED:t,ADDRCONFIG:n,ALL:i,promises:{Resolver:l},lookup:a}=he("dns"),{promisify:o}=he("util"),s=he("os"),f=Symbol("cacheableLookupCreateConnection"),c=Symbol("cacheableLookupInstance"),h=Symbol("expires"),u=typeof i=="number",d=E=>{if(!(E&&typeof E.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},p=E=>{for(let v of E)v.family!==6&&(v.address=`::ffff:${v.address}`,v.family=6)},y=()=>{let E=!1,v=!1;for(let m of Object.values(s.networkInterfaces()))for(let w of m)if(!w.internal&&(w.family==="IPv6"?v=!0:E=!0,E&&v))return{has4:E,has6:v};return{has4:E,has6:v}},b=E=>Symbol.iterator in E,_={ttl:!0},g={all:!0},S=class{constructor({cache:E=new Map,maxTtl:v=1/0,fallbackDuration:m=3600,errorTtl:w=.15,resolver:x=new l,lookup:A=a}={}){if(this.maxTtl=v,this.errorTtl=w,this._cache=E,this._resolver=x,this._dnsLookup=o(A),this._resolver instanceof l?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=o(this._resolver.resolve4.bind(this._resolver)),this._resolve6=o(this._resolver.resolve6.bind(this._resolver))),this._iface=y(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,m<1)this._fallback=!1;else{this._fallback=!0;let R=setInterval(()=>{this._hostnamesToFallback.clear()},m*1e3);R.unref&&R.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(E){this.clear(),this._resolver.setServers(E)}get servers(){return this._resolver.getServers()}lookup(E,v,m){if(typeof v=="function"?(m=v,v={}):typeof v=="number"&&(v={family:v}),!m)throw new Error("Callback must be a function.");this.lookupAsync(E,v).then(w=>{v.all?m(null,w):m(null,w.address,w.family,w.expires,w.ttl)},m)}async lookupAsync(E,v={}){typeof v=="number"&&(v={family:v});let m=await this.query(E);if(v.family===6){let w=m.filter(x=>x.family===6);v.hints&t&&(u&&v.hints&i||w.length===0)?p(m):m=w}else v.family===4&&(m=m.filter(w=>w.family===4));if(v.hints&n){let{_iface:w}=this;m=m.filter(x=>x.family===6?w.has6:w.has4)}if(m.length===0){let w=new Error(`cacheableLookup ENOTFOUND ${E}`);throw w.code="ENOTFOUND",w.hostname=E,w}return v.all?m:m[0]}async query(E){let v=await this._cache.get(E);if(!v){let m=this._pending[E];if(m)v=await m;else{let w=this.queryAndCache(E);this._pending[E]=w;try{v=await w}finally{delete this._pending[E]}}}return v=v.map(m=>({...m})),v}async _resolve(E){let v=async P=>{try{return await P}catch(O){if(O.code==="ENODATA"||O.code==="ENOTFOUND")return[];throw O}},[m,w]=await Promise.all([this._resolve4(E,_),this._resolve6(E,_)].map(P=>v(P))),x=0,A=0,R=0,B=Date.now();for(let P of m)P.family=4,P.expires=B+P.ttl*1e3,x=Math.max(x,P.ttl);for(let P of w)P.family=6,P.expires=B+P.ttl*1e3,A=Math.max(A,P.ttl);return m.length>0?w.length>0?R=Math.min(x,A):R=x:R=A,{entries:[...m,...w],cacheTtl:R}}async _lookup(E){try{return{entries:await this._dnsLookup(E,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(E,v,m){if(this.maxTtl>0&&m>0){m=Math.min(m,this.maxTtl)*1e3,v[h]=Date.now()+m;try{await this._cache.set(E,v,m)}catch(w){this.lookupAsync=async()=>{let x=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw x.cause=w,x}}b(this._cache)&&this._tick(m)}}async queryAndCache(E){if(this._hostnamesToFallback.has(E))return this._dnsLookup(E,g);let v=await this._resolve(E);v.entries.length===0&&this._fallback&&(v=await this._lookup(E),v.entries.length!==0&&this._hostnamesToFallback.add(E));let m=v.entries.length===0?this.errorTtl:v.cacheTtl;return await this._set(E,v.entries,m),v.entries}_tick(E){let v=this._nextRemovalTime;(!v||E<v)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=E,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let m=1/0,w=Date.now();for(let[x,A]of this._cache){let R=A[h];w>=R?this._cache.delete(x):R<m&&(m=R)}m!==1/0&&this._tick(m-w)},E),this._removalTimeout.unref&&this._removalTimeout.unref())}install(E){if(d(E),f in E)throw new Error("CacheableLookup has been already installed");E[f]=E.createConnection,E[c]=this,E.createConnection=(v,m)=>("lookup"in v||(v.lookup=this.lookup),E[f](v,m))}uninstall(E){if(d(E),E[f]){if(E[c]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");E.createConnection=E[f],delete E[f],delete E[c]}}updateInterfaceInfo(){let{_iface:E}=this;this._iface=y(),(E.has4&&!this._iface.has4||E.has6&&!this._iface.has6)&&this._cache.clear()}clear(E){if(E){this._cache.delete(E);return}this._cache.clear()}};r.exports=S,r.exports.default=S}),mb=te((e,r)=>{"use strict";Z();var t="text/plain",n="us-ascii",i=(o,s)=>s.some(f=>f instanceof RegExp?f.test(o):f===o),l=(o,{stripHash:s})=>{let f=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(o);if(!f)throw new Error(`Invalid URL: ${o}`);let{type:c,data:h,hash:u}=f.groups,d=c.split(";");u=s?"":u;let p=!1;d[d.length-1]==="base64"&&(d.pop(),p=!0);let y=(d.shift()||"").toLowerCase(),b=[...d.map(_=>{let[g,S=""]=_.split("=").map(E=>E.trim());return g==="charset"&&(S=S.toLowerCase(),S===n)?"":`${g}${S?`=${S}`:""}`}).filter(Boolean)];return p&&b.push("base64"),(b.length!==0||y&&y!==t)&&b.unshift(y),`data:${b.join(";")},${p?h.trim():h}${u?`#${u}`:""}`},a=(o,s)=>{if(s={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...s},o=o.trim(),/^data:/i.test(o))return l(o,s);if(/^view-source:/i.test(o))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let f=o.startsWith("//");!f&&/^\.*\//.test(o)||(o=o.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,s.defaultProtocol));let c=new URL(o);if(s.forceHttp&&s.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(s.forceHttp&&c.protocol==="https:"&&(c.protocol="http:"),s.forceHttps&&c.protocol==="http:"&&(c.protocol="https:"),s.stripAuthentication&&(c.username="",c.password=""),s.stripHash?c.hash="":s.stripTextFragment&&(c.hash=c.hash.replace(/#?:~:text.*?$/i,"")),c.pathname&&(c.pathname=c.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),c.pathname)try{c.pathname=decodeURI(c.pathname)}catch{}if(s.removeDirectoryIndex===!0&&(s.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(s.removeDirectoryIndex)&&s.removeDirectoryIndex.length>0){let u=c.pathname.split("/"),d=u[u.length-1];i(d,s.removeDirectoryIndex)&&(u=u.slice(0,u.length-1),c.pathname=u.slice(1).join("/")+"/")}if(c.hostname&&(c.hostname=c.hostname.replace(/\.$/,""),s.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(c.hostname)&&(c.hostname=c.hostname.replace(/^www\./,""))),Array.isArray(s.removeQueryParameters))for(let u of[...c.searchParams.keys()])i(u,s.removeQueryParameters)&&c.searchParams.delete(u);s.removeQueryParameters===!0&&(c.search=""),s.sortQueryParameters&&c.searchParams.sort(),s.removeTrailingSlash&&(c.pathname=c.pathname.replace(/\/$/,""));let h=o;return o=c.toString(),!s.removeSingleSlash&&c.pathname==="/"&&!h.endsWith("/")&&c.hash===""&&(o=o.replace(/\/$/,"")),(s.removeTrailingSlash||c.pathname==="/")&&c.hash===""&&s.removeSingleSlash&&(o=o.replace(/\/$/,"")),f&&!s.normalizeProtocol&&(o=o.replace(/^http:\/\//,"//")),s.stripProtocol&&(o=o.replace(/^(?:https?:)?\/\//,"")),o};r.exports=a}),yb=te((e,r)=>{Z(),r.exports=t;function t(n,i){if(n&&i)return t(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(a){l[a]=n[a]}),l;function l(){for(var a=new Array(arguments.length),o=0;o<a.length;o++)a[o]=arguments[o];var s=n.apply(this,a),f=a[a.length-1];return typeof s=="function"&&s!==f&&Object.keys(f).forEach(function(c){s[c]=f[c]}),s}}}),sf=te((e,r)=>{Z();var t=yb();r.exports=t(n),r.exports.strict=t(i),n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})});function n(l){var a=function(){return a.called?a.value:(a.called=!0,a.value=l.apply(this,arguments))};return a.called=!1,a}function i(l){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=l.apply(this,arguments)},o=l.name||"Function wrapped with `once`";return a.onceError=o+" shouldn't be called more than once",a.called=!1,a}}),gb=te((e,r)=>{Z();var t=sf(),n=function(){},i=function(o){return o.setHeader&&typeof o.abort=="function"},l=function(o){return o.stdio&&Array.isArray(o.stdio)&&o.stdio.length===3},a=function(o,s,f){if(typeof s=="function")return a(o,null,s);s||(s={}),f=t(f||n);var c=o._writableState,h=o._readableState,u=s.readable||s.readable!==!1&&o.readable,d=s.writable||s.writable!==!1&&o.writable,p=!1,y=function(){o.writable||b()},b=function(){d=!1,u||f.call(o)},_=function(){u=!1,d||f.call(o)},g=function(w){f.call(o,w?new Error("exited with error code: "+w):null)},S=function(w){f.call(o,w)},E=function(){process.nextTick(v)},v=function(){if(!p){if(u&&!(h&&h.ended&&!h.destroyed))return f.call(o,new Error("premature close"));if(d&&!(c&&c.ended&&!c.destroyed))return f.call(o,new Error("premature close"))}},m=function(){o.req.on("finish",b)};return i(o)?(o.on("complete",b),o.on("abort",E),o.req?m():o.on("request",m)):d&&!c&&(o.on("end",y),o.on("close",y)),l(o)&&o.on("exit",g),o.on("end",_),o.on("finish",b),s.error!==!1&&o.on("error",S),o.on("close",E),function(){p=!0,o.removeListener("complete",b),o.removeListener("abort",E),o.removeListener("request",m),o.req&&o.req.removeListener("finish",b),o.removeListener("end",y),o.removeListener("close",y),o.removeListener("finish",b),o.removeListener("exit",g),o.removeListener("end",_),o.removeListener("error",S),o.removeListener("close",E)}};r.exports=a}),bb=te((e,r)=>{Z();var t=sf(),n=gb(),i=he("fs"),l=function(){},a=/^v?\.0/.test(process.version),o=function(p){return typeof p=="function"},s=function(p){return!a||!i?!1:(p instanceof(i.ReadStream||l)||p instanceof(i.WriteStream||l))&&o(p.close)},f=function(p){return p.setHeader&&o(p.abort)},c=function(p,y,b,_){_=t(_);var g=!1;p.on("close",function(){g=!0}),n(p,{readable:y,writable:b},function(E){if(E)return _(E);g=!0,_()});var S=!1;return function(E){if(!g&&!S){if(S=!0,s(p))return p.close(l);if(f(p))return p.abort();if(o(p.destroy))return p.destroy();_(E||new Error("stream was destroyed"))}}},h=function(p){p()},u=function(p,y){return p.pipe(y)},d=function(){var p=Array.prototype.slice.call(arguments),y=o(p[p.length-1]||l)&&p.pop()||l;if(Array.isArray(p[0])&&(p=p[0]),p.length<2)throw new Error("pump requires two streams per minimum");var b,_=p.map(function(g,S){var E=S<p.length-1,v=S>0;return c(g,E,v,function(m){b||(b=m),m&&_.forEach(h),!E&&(_.forEach(h),y(b))})});return p.reduce(u)};r.exports=d}),vb=te((e,r)=>{"use strict";Z();var{PassThrough:t}=he("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:l}=n,a=l==="buffer",o=!1;i?o=!(l||a):l=l||"utf8",a&&(l=null);let s=new t({objectMode:o});l&&s.setEncoding(l);let f=0,c=[];return s.on("data",h=>{c.push(h),o?f=c.length:f+=h.length}),s.getBufferedValue=()=>i?c:a?Buffer.concat(c,f):c.join(""),s.getBufferedLength=()=>f,s}}),_b=te((e,r)=>{"use strict";Z();var{constants:t}=he("buffer"),n=bb(),i=vb(),l=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(o,s){if(!o)return Promise.reject(new Error("Expected a stream"));s={maxBuffer:1/0,...s};let{maxBuffer:f}=s,c;return await new Promise((h,u)=>{let d=p=>{p&&c.getBufferedLength()<=t.MAX_LENGTH&&(p.bufferedData=c.getBufferedValue()),u(p)};c=n(o,i(s),p=>{if(p){d(p);return}h()}),c.on("data",()=>{c.getBufferedLength()>f&&d(new l)})}),c.getBufferedValue()}r.exports=a,r.exports.default=a,r.exports.buffer=(o,s)=>a(o,{...s,encoding:"buffer"}),r.exports.array=(o,s)=>a(o,{...s,array:!0}),r.exports.MaxBufferError=l}),wb=te((e,r)=>{"use strict";Z();var t=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),n=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),i=new Set([500,502,503,504]),l={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},a={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function o(h){let u=parseInt(h,10);return isFinite(u)?u:0}function s(h){return h?i.has(h.status):!0}function f(h){let u={};if(!h)return u;let d=h.trim().split(/,/);for(let p of d){let[y,b]=p.split(/=/,2);u[y.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return u}function c(h){let u=[];for(let d in h){let p=h[d];u.push(p===!0?d:d+"="+p)}if(u.length)return u.join(", ")}r.exports=class{constructor(h,u,{shared:d,cacheHeuristic:p,immutableMinTimeToLive:y,ignoreCargoCult:b,_fromObject:_}={}){if(_){this._fromObject(_);return}if(!u||!u.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(h),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=p!==void 0?p:.1,this._immutableMinTtl=y!==void 0?y:24*3600*1e3,this._status="status"in u?u.status:200,this._resHeaders=u.headers,this._rescc=f(u.headers["cache-control"]),this._method="method"in h?h.method:"GET",this._url=h.url,this._host=h.headers.host,this._noAuthorization=!h.headers.authorization,this._reqHeaders=u.headers.vary?h.headers:null,this._reqcc=f(h.headers["cache-control"]),b&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":c(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),u.headers["cache-control"]==null&&/no-cache/.test(u.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&n.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(h){if(!h||!h.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(h){this._assertRequestHasHeaders(h);let u=f(h.headers["cache-control"]);return u["no-cache"]||/no-cache/.test(h.headers.pragma)||u["max-age"]&&this.age()>u["max-age"]||u["min-fresh"]&&this.timeToLive()<1e3*u["min-fresh"]||this.stale()&&!(u["max-stale"]&&!this._rescc["must-revalidate"]&&(u["max-stale"]===!0||u["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(h,!1)}_requestMatches(h,u){return(!this._url||this._url===h.url)&&this._host===h.headers.host&&(!h.method||this._method===h.method||u&&h.method==="HEAD")&&this._varyMatches(h)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(h){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let u=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of u)if(h.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(h){let u={};for(let d in h)l[d]||(u[d]=h[d]);if(h.connection){let d=h.connection.trim().split(/\s*,\s*/);for(let p of d)delete u[p]}if(u.warning){let d=u.warning.split(/,/).filter(p=>!/^\s*1[0-9][0-9]/.test(p));d.length?u.warning=d.join(",").trim():delete u.warning}return u}responseHeaders(){let h=this._copyWithoutHopByHopHeaders(this._resHeaders),u=this.age();return u>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(h.warning=(h.warning?`${h.warning}, `:"")+'113 - "rfc7234 5.5.4"'),h.age=`${Math.round(u)}`,h.date=new Date(this.now()).toUTCString(),h}date(){let h=Date.parse(this._resHeaders.date);return isFinite(h)?h:this._responseTime}age(){let h=this._ageValue(),u=(this.now()-this._responseTime)/1e3;return h+u}_ageValue(){return o(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return o(this._rescc["s-maxage"])}if(this._rescc["max-age"])return o(this._rescc["max-age"]);let h=this._rescc.immutable?this._immutableMinTtl:0,u=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<u?0:Math.max(h,(d-u)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&u>d)return Math.max(h,(u-d)/1e3*this._cacheHeuristic)}return h}timeToLive(){let h=this.maxAge()-this.age(),u=h+o(this._rescc["stale-if-error"]),d=h+o(this._rescc["stale-while-revalidate"]);return Math.max(0,h,u,d)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+o(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+o(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(h){return new this(void 0,void 0,{_fromObject:h})}_fromObject(h){if(this._responseTime)throw Error("Reinitialized");if(!h||h.v!==1)throw Error("Invalid serialization");this._responseTime=h.t,this._isShared=h.sh,this._cacheHeuristic=h.ch,this._immutableMinTtl=h.imm!==void 0?h.imm:24*3600*1e3,this._status=h.st,this._resHeaders=h.resh,this._rescc=h.rescc,this._method=h.m,this._url=h.u,this._host=h.h,this._noAuthorization=h.a,this._reqHeaders=h.reqh,this._reqcc=h.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(h){this._assertRequestHasHeaders(h);let u=this._copyWithoutHopByHopHeaders(h.headers);if(delete u["if-range"],!this._requestMatches(h,!0)||!this.storable())return delete u["if-none-match"],delete u["if-modified-since"],u;if(this._resHeaders.etag&&(u["if-none-match"]=u["if-none-match"]?`${u["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),u["accept-ranges"]||u["if-match"]||u["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete u["if-modified-since"],u["if-none-match"]){let d=u["if-none-match"].split(/,/).filter(p=>!/^\s*W\//.test(p));d.length?u["if-none-match"]=d.join(",").trim():delete u["if-none-match"]}}else this._resHeaders["last-modified"]&&!u["if-modified-since"]&&(u["if-modified-since"]=this._resHeaders["last-modified"]);return u}revalidatedPolicy(h,u){if(this._assertRequestHasHeaders(h),this._useStaleIfError()&&s(u))return{modified:!1,matches:!1,policy:this};if(!u||!u.headers)throw Error("Response headers missing");let d=!1;if(u.status!==void 0&&u.status!=304?d=!1:u.headers.etag&&!/^\s*W\//.test(u.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag:this._resHeaders.etag&&u.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===u.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!u.headers.etag&&!u.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(h,u),modified:u.status!=304,matches:!1};let p={};for(let b in this._resHeaders)p[b]=b in u.headers&&!a[b]?u.headers[b]:this._resHeaders[b];let y=Object.assign({},u,{status:this._status,method:this._method,headers:p});return{policy:new this.constructor(h,y,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),ia=te((e,r)=>{"use strict";Z(),r.exports=t=>{let n={};for(let[i,l]of Object.entries(t))n[i.toLowerCase()]=l;return n}}),Eb=te((e,r)=>{"use strict";Z();var t=he("stream").Readable,n=ia(),i=class extends t{constructor(l,a,o,s){if(typeof l!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof a!="object")throw new TypeError("Argument `headers` should be an object");if(!(o instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof s!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=l,this.headers=n(a),this.body=o,this.url=s}_read(){this.push(this.body),this.push(null)}};r.exports=i}),Sb=te((e,r)=>{"use strict";Z();var t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];r.exports=(n,i)=>{let l=new Set(Object.keys(n).concat(t));for(let a of l)a in i||(i[a]=typeof n[a]=="function"?n[a].bind(n):n[a])}}),xb=te((e,r)=>{"use strict";Z();var t=he("stream").PassThrough,n=Sb(),i=l=>{if(!(l&&l.pipe))throw new TypeError("Parameter `response` must be a response stream.");let a=new t;return n(l,a),l.pipe(a)};r.exports=i}),Ab=te(e=>{Z(),e.stringify=function r(t){if(typeof t>"u")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var n="",i=Array.isArray(t);n=i?"[":"{";var l=!0;for(var a in t){var o=typeof t[a]=="function"||!i&&typeof t[a]>"u";Object.hasOwnProperty.call(t,a)&&!o&&(l||(n+=","),l=!1,i?t[a]==null?n+="null":n+=r(t[a]):t[a]!==void 0&&(n+=r(a)+":"+r(t[a])))}return n+=i?"]":"}",n}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t>"u"?"null":JSON.stringify(t)},e.parse=function(r){return JSON.parse(r,function(t,n){return typeof n=="string"?/^:base64:/.test(n)?Buffer.from(n.substring(8),"base64"):/^:/.test(n)?n.substring(1):n:n})}}),Cb=te((e,r)=>{"use strict";Z();var t=he("events"),n=Ab(),i=o=>{let s={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(o.adapter||o.uri){let f=o.adapter||/^[^:+]*/.exec(o.uri)[0];return new(he(s[f]))(o)}return new Map},l=["sqlite","postgres","mysql","mongo","redis","tiered"],a=class extends t{constructor(o,{emitErrors:s=!0,...f}={}){if(super(),this.opts={namespace:"keyv",serialize:n.stringify,deserialize:n.parse,...typeof o=="string"?{uri:o}:o,...f},!this.opts.store){let h={...this.opts};this.opts.store=i(h)}if(this.opts.compression){let h=this.opts.compression;this.opts.serialize=h.serialize.bind(h),this.opts.deserialize=h.deserialize.bind(h)}typeof this.opts.store.on=="function"&&s&&this.opts.store.on("error",h=>this.emit("error",h)),this.opts.store.namespace=this.opts.namespace;let c=h=>async function*(){for await(let[u,d]of typeof h=="function"?h(this.opts.store.namespace):h){let p=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!u.includes(this.opts.store.namespace))){if(typeof p.expires=="number"&&Date.now()>p.expires){this.delete(u);continue}yield[this._getKeyUnprefix(u),p.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=c(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=c(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return l.includes(this.opts.store.opts.dialect)||l.findIndex(o=>this.opts.store.opts.url.includes(o))>=0}_getKeyPrefix(o){return`${this.opts.namespace}:${o}`}_getKeyPrefixArray(o){return o.map(s=>`${this.opts.namespace}:${s}`)}_getKeyUnprefix(o){return o.split(":").splice(1).join(":")}get(o,s){let{store:f}=this.opts,c=Array.isArray(o),h=c?this._getKeyPrefixArray(o):this._getKeyPrefix(o);if(c&&f.getMany===void 0){let u=[];for(let d of h)u.push(Promise.resolve().then(()=>f.get(d)).then(p=>typeof p=="string"?this.opts.deserialize(p):this.opts.compression?this.opts.deserialize(p):p).then(p=>{if(p!=null)return typeof p.expires=="number"&&Date.now()>p.expires?this.delete(d).then(()=>{}):s&&s.raw?p:p.value}));return Promise.allSettled(u).then(d=>{let p=[];for(let y of d)p.push(y.value);return p})}return Promise.resolve().then(()=>c?f.getMany(h):f.get(h)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null){if(c){let d=[];for(let p of u){if(typeof p=="string"&&(p=this.opts.deserialize(p)),p==null){d.push(void 0);continue}typeof p.expires=="number"&&Date.now()>p.expires?(this.delete(o).then(()=>{}),d.push(void 0)):d.push(s&&s.raw?p:p.value)}return d}return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(o).then(()=>{}):s&&s.raw?u:u.value}})}set(o,s,f){let c=this._getKeyPrefix(o);typeof f>"u"&&(f=this.opts.ttl),f===0&&(f=void 0);let{store:h}=this.opts;return Promise.resolve().then(()=>{let u=typeof f=="number"?Date.now()+f:null;return typeof s=="symbol"&&this.emit("error","symbol cannot be serialized"),s={value:s,expires:u},this.opts.serialize(s)}).then(u=>h.set(c,u,f)).then(()=>!0)}delete(o){let{store:s}=this.opts;if(Array.isArray(o)){let c=this._getKeyPrefixArray(o);if(s.deleteMany===void 0){let h=[];for(let u of c)h.push(s.delete(u));return Promise.allSettled(h).then(u=>u.every(d=>d.value===!0))}return Promise.resolve().then(()=>s.deleteMany(c))}let f=this._getKeyPrefix(o);return Promise.resolve().then(()=>s.delete(f))}clear(){let{store:o}=this.opts;return Promise.resolve().then(()=>o.clear())}has(o){let s=this._getKeyPrefix(o),{store:f}=this.opts;return Promise.resolve().then(async()=>typeof f.has=="function"?f.has(s):await f.get(s)!==void 0)}disconnect(){let{store:o}=this.opts;if(typeof o.disconnect=="function")return o.disconnect()}};r.exports=a}),kb=te((e,r)=>{"use strict";Z();var t=he("events"),n=he("url"),i=mb(),l=_b(),a=wb(),o=Eb(),s=ia(),f=xb(),c=Cb(),h=class{constructor(p,y){if(typeof p!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new c({uri:typeof y=="string"&&y,store:typeof y!="string"&&y,namespace:"cacheable-request"}),this.createCacheableRequest(p)}createCacheableRequest(p){return(y,b)=>{let _;if(typeof y=="string")_=d(n.parse(y)),y={};else if(y instanceof n.URL)_=d(n.parse(y.toString())),y={};else{let[x,...A]=(y.path||"").split("?"),R=A.length>0?`?${A.join("?")}`:"";_=d({...y,pathname:x,search:R})}y={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...y,...u(_)},y.headers=s(y.headers);let g=new t,S=i(n.format(_),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),E=`${y.method}:${S}`,v=!1,m=!1,w=x=>{m=!0;let A=!1,R,B=new Promise(O=>{R=()=>{A||(A=!0,O())}}),P=O=>{if(v&&!x.forceRefresh){O.status=O.statusCode;let k=a.fromObject(v.cachePolicy).revalidatedPolicy(x,O);if(!k.modified){let M=k.policy.responseHeaders();O=new o(v.statusCode,M,v.body,v.url),O.cachePolicy=k.policy,O.fromCache=!0}}O.fromCache||(O.cachePolicy=new a(x,O,x),O.fromCache=!1);let D;x.cache&&O.cachePolicy.storable()?(D=f(O),(async()=>{try{let k=l.buffer(O);if(await Promise.race([B,new Promise(W=>O.once("end",W))]),A)return;let M=await k,L={cachePolicy:O.cachePolicy.toObject(),url:O.url,statusCode:O.fromCache?v.statusCode:O.statusCode,body:M},U=x.strictTtl?O.cachePolicy.timeToLive():void 0;x.maxTtl&&(U=U?Math.min(U,x.maxTtl):x.maxTtl),await this.cache.set(E,L,U)}catch(k){g.emit("error",new h.CacheError(k))}})()):x.cache&&v&&(async()=>{try{await this.cache.delete(E)}catch(k){g.emit("error",new h.CacheError(k))}})(),g.emit("response",D||O),typeof b=="function"&&b(D||O)};try{let O=p(x,P);O.once("error",R),O.once("abort",R),g.emit("request",O)}catch(O){g.emit("error",new h.RequestError(O))}};return(async()=>{let x=async R=>{await Promise.resolve();let B=R.cache?await this.cache.get(E):void 0;if(typeof B>"u")return w(R);let P=a.fromObject(B.cachePolicy);if(P.satisfiesWithoutRevalidation(R)&&!R.forceRefresh){let O=P.responseHeaders(),D=new o(B.statusCode,O,B.body,B.url);D.cachePolicy=P,D.fromCache=!0,g.emit("response",D),typeof b=="function"&&b(D)}else v=B,R.headers=P.revalidationHeaders(R),w(R)},A=R=>g.emit("error",new h.CacheError(R));this.cache.once("error",A),g.on("response",()=>this.cache.removeListener("error",A));try{await x(y)}catch(R){y.automaticFailover&&!m&&w(y),g.emit("error",new h.CacheError(R))}})(),g}}};function u(p){let y={...p};return y.path=`${p.pathname||"/"}${p.search||""}`,delete y.pathname,delete y.search,y}function d(p){return{protocol:p.protocol,auth:p.auth,hostname:p.hostname||p.host||"localhost",port:p.port,pathname:p.pathname,search:p.search}}h.RequestError=class extends Error{constructor(p){super(p.message),this.name="RequestError",Object.assign(this,p)}},h.CacheError=class extends Error{constructor(p){super(p.message),this.name="CacheError",Object.assign(this,p)}},r.exports=h}),Db=te((e,r)=>{"use strict";Z();var t=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];r.exports=(n,i)=>{if(i._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let l=new Set(Object.keys(n).concat(t)),a={};for(let o of l)o in i||(a[o]={get(){let s=n[o];return typeof s=="function"?s.bind(n):s},set(s){n[o]=s},enumerable:!0,configurable:!1});return Object.defineProperties(i,a),n.once("aborted",()=>{i.destroy(),i.emit("aborted")}),n.once("close",()=>{n.complete&&i.readable?i.once("end",()=>{i.emit("close")}):i.emit("close")}),i}}),Rb=te((e,r)=>{"use strict";Z();var{Transform:t,PassThrough:n}=he("stream"),i=he("zlib"),l=Db();r.exports=a=>{let o=(a.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(o))return a;let s=o==="br";if(s&&typeof i.createBrotliDecompress!="function")return a.destroy(new Error("Brotli is not supported on Node.js < 12")),a;let f=!0,c=new t({transform(d,p,y){f=!1,y(null,d)},flush(d){d()}}),h=new n({autoDestroy:!1,destroy(d,p){a.destroy(),p(d)}}),u=s?i.createBrotliDecompress():i.createUnzip();return u.once("error",d=>{if(f&&!a.readable){h.end();return}h.destroy(d)}),l(a,h),a.pipe(c).pipe(u).pipe(h),h}}),of=te((e,r)=>{"use strict";Z();var t=class{constructor(n={}){if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=n.maxSize,this.onEviction=n.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(n,i){if(this.cache.set(n,i),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[l,a]of this.oldCache.entries())this.onEviction(l,a);this.oldCache=this.cache,this.cache=new Map}}get(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n)){let i=this.oldCache.get(n);return this.oldCache.delete(n),this._set(n,i),i}}set(n,i){return this.cache.has(n)?this.cache.set(n,i):this._set(n,i),this}has(n){return this.cache.has(n)||this.oldCache.has(n)}peek(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n))return this.oldCache.get(n)}delete(n){let i=this.cache.delete(n);return i&&this._size--,this.oldCache.delete(n)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[n]of this)yield n}*values(){for(let[,n]of this)yield n}*[Symbol.iterator](){for(let n of this.cache)yield n;for(let n of this.oldCache){let[i]=n;this.cache.has(i)||(yield n)}}get size(){let n=0;for(let i of this.oldCache.keys())this.cache.has(i)||n++;return Math.min(this._size+n,this.maxSize)}};r.exports=t}),af=te((e,r)=>{"use strict";Z();var t=he("events"),n=he("tls"),i=he("http2"),l=of(),a=Symbol("currentStreamsCount"),o=Symbol("request"),s=Symbol("cachedOriginSet"),f=Symbol("gracefullyClosing"),c=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],h=(g,S,E)=>{let v=0,m=g.length;for(;v<m;){let w=v+m>>>1;E(g[w],S)?v=w+1:m=w}return v},u=(g,S)=>g.remoteSettings.maxConcurrentStreams>S.remoteSettings.maxConcurrentStreams,d=(g,S)=>{for(let E of g)E[s].length<S[s].length&&E[s].every(v=>S[s].includes(v))&&E[a]+S[a]<=S.remoteSettings.maxConcurrentStreams&&b(E)},p=(g,S)=>{for(let E of g)S[s].length<E[s].length&&S[s].every(v=>E[s].includes(v))&&S[a]+E[a]<=E.remoteSettings.maxConcurrentStreams&&b(S)},y=({agent:g,isFree:S})=>{let E={};for(let v in g.sessions){let m=g.sessions[v].filter(w=>{let x=w[_.kCurrentStreamsCount]<w.remoteSettings.maxConcurrentStreams;return S?x:!x});m.length!==0&&(E[v]=m)}return E},b=g=>{g[f]=!0,g[a]===0&&g.close()},_=class extends t{constructor({timeout:g=6e4,maxSessions:S=1/0,maxFreeSessions:E=10,maxCachedTlsSessions:v=100}={}){super(),this.sessions={},this.queue={},this.timeout=g,this.maxSessions=S,this.maxFreeSessions=E,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new l({maxSize:v})}static normalizeOrigin(g,S){return typeof g=="string"&&(g=new URL(g)),S&&g.hostname!==S&&(g.hostname=S),g.origin}normalizeOptions(g){let S="";if(g)for(let E of c)g[E]&&(S+=`:${g[E]}`);return S}_tryToCreateNewSession(g,S){if(!(g in this.queue)||!(S in this.queue[g]))return;let E=this.queue[g][S];this._sessionsCount<this.maxSessions&&!E.completed&&(E.completed=!0,E())}getSession(g,S,E){return new Promise((v,m)=>{Array.isArray(E)?(E=[...E],v()):E=[{resolve:v,reject:m}];let w=this.normalizeOptions(S),x=_.normalizeOrigin(g,S&&S.servername);if(x===void 0){for(let{reject:B}of E)B(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(w in this.sessions){let B=this.sessions[w],P=-1,O=-1,D;for(let k of B){let M=k.remoteSettings.maxConcurrentStreams;if(M<P)break;if(k[s].includes(x)){let L=k[a];if(L>=M||k[f]||k.destroyed)continue;D||(P=M),L>O&&(D=k,O=L)}}if(D){if(E.length!==1){for(let{reject:k}of E){let M=new Error(`Expected the length of listeners to be 1, got ${E.length}.
|
|
118
|
+
Please report this to https://github.com/szmarczak/http2-wrapper/`);k(M)}return}E[0].resolve(D);return}}if(w in this.queue){if(x in this.queue[w]){this.queue[w][x].listeners.push(...E),this._tryToCreateNewSession(w,x);return}}else this.queue[w]={};let A=()=>{w in this.queue&&this.queue[w][x]===R&&(delete this.queue[w][x],Object.keys(this.queue[w]).length===0&&delete this.queue[w])},R=()=>{let B=`${x}:${w}`,P=!1;try{let O=i.connect(g,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(B),...S});O[a]=0,O[f]=!1;let D=()=>O[a]<O.remoteSettings.maxConcurrentStreams,k=!0;O.socket.once("session",L=>{this.tlsSessionCache.set(B,L)}),O.once("error",L=>{for(let{reject:U}of E)U(L);this.tlsSessionCache.delete(B)}),O.setTimeout(this.timeout,()=>{O.destroy()}),O.once("close",()=>{if(P){k&&this._freeSessionsCount--,this._sessionsCount--;let L=this.sessions[w];L.splice(L.indexOf(O),1),L.length===0&&delete this.sessions[w]}else{let L=new Error("Session closed without receiving a SETTINGS frame");L.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:U}of E)U(L);A()}this._tryToCreateNewSession(w,x)});let M=()=>{if(!(!(w in this.queue)||!D())){for(let L of O[s])if(L in this.queue[w]){let{listeners:U}=this.queue[w][L];for(;U.length!==0&&D();)U.shift().resolve(O);let W=this.queue[w];if(W[L].listeners.length===0&&(delete W[L],Object.keys(W).length===0)){delete this.queue[w];break}if(!D())break}}};O.on("origin",()=>{O[s]=O.originSet,D()&&(M(),d(this.sessions[w],O))}),O.once("remoteSettings",()=>{if(O.ref(),O.unref(),this._sessionsCount++,R.destroyed){let L=new Error("Agent has been destroyed");for(let U of E)U.reject(L);O.destroy();return}O[s]=O.originSet;{let L=this.sessions;if(w in L){let U=L[w];U.splice(h(U,O,u),0,O)}else L[w]=[O]}this._freeSessionsCount+=1,P=!0,this.emit("session",O),M(),A(),O[a]===0&&this._freeSessionsCount>this.maxFreeSessions&&O.close(),E.length!==0&&(this.getSession(x,S,E),E.length=0),O.on("remoteSettings",()=>{M(),d(this.sessions[w],O)})}),O[o]=O.request,O.request=(L,U)=>{if(O[f])throw new Error("The session is gracefully closing. No new streams are allowed.");let W=O[o](L,U);return O.ref(),++O[a],O[a]===O.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,W.once("close",()=>{if(k=D(),--O[a],!O.destroyed&&!O.closed&&(p(this.sessions[w],O),D()&&!O.closed)){k||(this._freeSessionsCount++,k=!0);let se=O[a]===0;se&&O.unref(),se&&(this._freeSessionsCount>this.maxFreeSessions||O[f])?O.close():(d(this.sessions[w],O),M())}}),W}}catch(O){for(let D of E)D.reject(O);A()}};R.listeners=E,R.completed=!1,R.destroyed=!1,this.queue[w][x]=R,this._tryToCreateNewSession(w,x)})}request(g,S,E,v){return new Promise((m,w)=>{this.getSession(g,S,[{reject:w,resolve:x=>{try{m(x.request(E,v))}catch(A){w(A)}}}])})}createConnection(g,S){return _.connect(g,S)}static connect(g,S){S.ALPNProtocols=["h2"];let E=g.port||443,v=g.hostname||g.host;return typeof S.servername>"u"&&(S.servername=v),n.connect(E,v,S)}closeFreeSessions(){for(let g of Object.values(this.sessions))for(let S of g)S[a]===0&&S.close()}destroy(g){for(let S of Object.values(this.sessions))for(let E of S)E.destroy(g);for(let S of Object.values(this.queue))for(let E of Object.values(S))E.destroyed=!0;this.queue={}}get freeSessions(){return y({agent:this,isFree:!0})}get busySessions(){return y({agent:this,isFree:!1})}};_.kCurrentStreamsCount=a,_.kGracefullyClosing=f,r.exports={Agent:_,globalAgent:new _}}),uf=te((e,r)=>{"use strict";Z();var{Readable:t}=he("stream"),n=class extends t{constructor(i,l){super({highWaterMark:l,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=i,this.connection=i,this._dumped=!1}_destroy(i){this.req._request.destroy(i)}setTimeout(i,l){return this.req.setTimeout(i,l),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};r.exports=n}),lf=te((e,r)=>{"use strict";Z(),r.exports=t=>{let n={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),Ob=te((e,r)=>{"use strict";Z(),r.exports=(t,n,i)=>{for(let l of i)t.on(l,(...a)=>n.emit(l,...a))}}),Tb=te((e,r)=>{"use strict";Z(),r.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),Fb=te((e,r)=>{"use strict";Z();var t=(n,i,l)=>{r.exports[i]=class extends n{constructor(...a){super(typeof l=="string"?l:l(a)),this.name=`${super.name} [${i}]`,this.code=i}}};t(TypeError,"ERR_INVALID_ARG_TYPE",n=>{let i=n[0].includes(".")?"property":"argument",l=n[1],a=Array.isArray(l);return a&&(l=`${l.slice(0,-1).join(", ")} or ${l.slice(-1)}`),`The "${n[0]}" ${i} must be ${a?"one of":"of"} type ${l}. Received ${typeof n[2]}`}),t(TypeError,"ERR_INVALID_PROTOCOL",n=>`Protocol "${n[0]}" not supported. Expected "${n[1]}"`),t(Error,"ERR_HTTP_HEADERS_SENT",n=>`Cannot ${n[0]} headers after they are sent to the client`),t(TypeError,"ERR_INVALID_HTTP_TOKEN",n=>`${n[0]} must be a valid HTTP token [${n[1]}]`),t(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",n=>`Invalid value "${n[0]} for header "${n[1]}"`),t(TypeError,"ERR_INVALID_CHAR",n=>`Invalid character in ${n[0]} [${n[1]}]`)}),cf=te((e,r)=>{"use strict";Z();var t=he("http2"),{Writable:n}=he("stream"),{Agent:i,globalAgent:l}=af(),a=uf(),o=lf(),s=Ob(),f=Tb(),{ERR_INVALID_ARG_TYPE:c,ERR_INVALID_PROTOCOL:h,ERR_HTTP_HEADERS_SENT:u,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:p,ERR_INVALID_CHAR:y}=Fb(),{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:_,HTTP2_HEADER_PATH:g,HTTP2_METHOD_CONNECT:S}=t.constants,E=Symbol("headers"),v=Symbol("origin"),m=Symbol("session"),w=Symbol("options"),x=Symbol("flushedHeaders"),A=Symbol("jobs"),R=/^[\^`\-\w!#$%&*+.|~]+$/,B=/[^\t\u0020-\u007E\u0080-\u00FF]/,P=class extends n{constructor(O,D,k){super({autoDestroy:!1});let M=typeof O=="string"||O instanceof URL;if(M&&(O=o(O instanceof URL?O:new URL(O))),typeof D=="function"||D===void 0?(k=D,D=M?O:{...O}):D={...O,...D},D.h2session)this[m]=D.h2session;else if(D.agent===!1)this.agent=new i({maxFreeSessions:0});else if(typeof D.agent>"u"||D.agent===null)typeof D.createConnection=="function"?(this.agent=new i({maxFreeSessions:0}),this.agent.createConnection=D.createConnection):this.agent=l;else if(typeof D.agent.request=="function")this.agent=D.agent;else throw new c("options.agent",["Agent-like Object","undefined","false"],D.agent);if(D.protocol&&D.protocol!=="https:")throw new h(D.protocol,"https:");let L=D.port||D.defaultPort||this.agent&&this.agent.defaultPort||443,U=D.hostname||D.host||"localhost";delete D.hostname,delete D.host,delete D.port;let{timeout:W}=D;if(D.timeout=void 0,this[E]=Object.create(null),this[A]=[],this.socket=null,this.connection=null,this.method=D.method||"GET",this.path=D.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,D.headers)for(let[se,I]of Object.entries(D.headers))this.setHeader(se,I);D.auth&&!("authorization"in this[E])&&(this[E].authorization="Basic "+Buffer.from(D.auth).toString("base64")),D.session=D.tlsSession,D.path=D.socketPath,this[w]=D,L===443?(this[v]=`https://${U}`,":authority"in this[E]||(this[E][":authority"]=U)):(this[v]=`https://${U}:${L}`,":authority"in this[E]||(this[E][":authority"]=`${U}:${L}`)),W&&this.setTimeout(W),k&&this.once("response",k),this[x]=!1}get method(){return this[E][_]}set method(O){O&&(this[E][_]=O.toUpperCase())}get path(){return this[E][g]}set path(O){O&&(this[E][g]=O)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(O,D,k){if(this._mustNotHaveABody){k(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let M=()=>this._request.write(O,D,k);this._request?M():this[A].push(M)}_final(O){if(this.destroyed)return;this.flushHeaders();let D=()=>{if(this._mustNotHaveABody){O();return}this._request.end(O)};this._request?D():this[A].push(D)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(O,D){this.res&&this.res._dump(),this._request&&this._request.destroy(),D(O)}async flushHeaders(){if(this[x]||this.destroyed)return;this[x]=!0;let O=this.method===S,D=k=>{if(this._request=k,this.destroyed){k.destroy();return}O||s(k,this,["timeout","continue","close","error"]);let M=U=>(...W)=>{!this.writable&&!this.destroyed?U(...W):this.once("finish",()=>{U(...W)})};k.once("response",M((U,W,se)=>{let I=new a(this.socket,k.readableHighWaterMark);this.res=I,I.req=this,I.statusCode=U[b],I.headers=U,I.rawHeaders=se,I.once("end",()=>{this.aborted?(I.aborted=!0,I.emit("aborted")):(I.complete=!0,I.socket=null,I.connection=null)}),O?(I.upgrade=!0,this.emit("connect",I,k,Buffer.alloc(0))?this.emit("close"):k.destroy()):(k.on("data",N=>{!I._dumped&&!I.push(N)&&k.pause()}),k.once("end",()=>{I.push(null)}),this.emit("response",I)||I._dump())})),k.once("headers",M(U=>this.emit("information",{statusCode:U[b]}))),k.once("trailers",M((U,W,se)=>{let{res:I}=this;I.trailers=U,I.rawTrailers=se}));let{socket:L}=k.session;this.socket=L,this.connection=L;for(let U of this[A])U();this.emit("socket",this.socket)};if(this[m])try{D(this[m].request(this[E]))}catch(k){this.emit("error",k)}else{this.reusedSocket=!0;try{D(await this.agent.request(this[v],this[w],this[E]))}catch(k){this.emit("error",k)}}}getHeader(O){if(typeof O!="string")throw new c("name","string",O);return this[E][O.toLowerCase()]}get headersSent(){return this[x]}removeHeader(O){if(typeof O!="string")throw new c("name","string",O);if(this.headersSent)throw new u("remove");delete this[E][O.toLowerCase()]}setHeader(O,D){if(this.headersSent)throw new u("set");if(typeof O!="string"||!R.test(O)&&!f(O))throw new d("Header name",O);if(typeof D>"u")throw new p(D,O);if(B.test(D))throw new y("header content",O);this[E][O.toLowerCase()]=D}setNoDelay(){}setSocketKeepAlive(){}setTimeout(O,D){let k=()=>this._request.setTimeout(O,D);return this._request?k():this[A].push(k),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(O){}};r.exports=P}),Pb=te((e,r)=>{"use strict";Z();var t=he("tls");r.exports=(n={},i=t.connect)=>new Promise((l,a)=>{let o=!1,s,f=async()=>{await h,s.off("timeout",c),s.off("error",a),n.resolveSocket?(l({alpnProtocol:s.alpnProtocol,socket:s,timeout:o}),o&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),l({alpnProtocol:s.alpnProtocol,timeout:o}))},c=async()=>{o=!0,f()},h=(async()=>{try{s=await i(n,f),s.on("error",a),s.once("timeout",c)}catch(u){a(u)}})()})}),Bb=te((e,r)=>{"use strict";Z();var t=he("net");r.exports=n=>{let i=n.host,l=n.headers&&n.headers.host;return l&&(l.startsWith("[")?l.indexOf("]")===-1?i=l:i=l.slice(1,-1):i=l.split(":",1)[0]),t.isIP(i)?"":i}}),Ib=te((e,r)=>{"use strict";Z();var t=he("http"),n=he("https"),i=Pb(),l=of(),a=cf(),o=Bb(),s=lf(),f=new l({maxSize:100}),c=new Map,h=(d,p,y)=>{p._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",p,y)};p.on("free",b);let _=()=>{d.removeSocket(p,y)};p.on("close",_);let g=()=>{d.removeSocket(p,y),p.off("close",_),p.off("free",b),p.off("agentRemove",g)};p.on("agentRemove",g),d.emit("free",p,y)},u=async d=>{let p=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!f.has(p)){if(c.has(p))return(await c.get(p)).alpnProtocol;let{path:y,agent:b}=d;d.path=d.socketPath;let _=i(d);c.set(p,_);try{let{socket:g,alpnProtocol:S}=await _;if(f.set(p,S),d.path=y,S==="h2")g.destroy();else{let{globalAgent:E}=n,v=n.Agent.prototype.createConnection;b?b.createConnection===v?h(b,g,d):g.destroy():E.createConnection===v?h(E,g,d):g.destroy()}return c.delete(p),S}catch(g){throw c.delete(p),g}}return f.get(p)};r.exports=async(d,p,y)=>{if((typeof d=="string"||d instanceof URL)&&(d=s(new URL(d))),typeof p=="function"&&(y=p,p=void 0),p={ALPNProtocols:["h2","http/1.1"],...d,...p,resolveSocket:!0},!Array.isArray(p.ALPNProtocols)||p.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");p.protocol=p.protocol||"https:";let b=p.protocol==="https:";p.host=p.hostname||p.host||"localhost",p.session=p.tlsSession,p.servername=p.servername||o(p),p.port=p.port||(b?443:80),p._defaultAgent=b?n.globalAgent:t.globalAgent;let _=p.agent;if(_){if(_.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");p.agent=_[b?"https":"http"]}return b&&await u(p)==="h2"?(_&&(p.agent=_.http2),new a(p,y)):t.request(p,y)},r.exports.protocolCache=f}),Lb=te((e,r)=>{"use strict";Z();var t=he("http2"),n=af(),i=cf(),l=uf(),a=Ib(),o=(f,c,h)=>new i(f,c,h),s=(f,c,h)=>{let u=new i(f,c,h);return u.end(),u};r.exports={...t,ClientRequest:i,IncomingMessage:l,...n,request:o,get:s,auto:a}}),hf=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=hr();e.default=t=>r.default.nodeStream(t)&&r.default.function_(t.getBoundary)}),Mb=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=he("fs"),t=he("util"),n=hr(),i=hf(),l=t.promisify(r.stat);e.default=async(a,o)=>{if(o&&"content-length"in o)return Number(o["content-length"]);if(!a)return 0;if(n.default.string(a))return Buffer.byteLength(a);if(n.default.buffer(a))return a.length;if(i.default(a))return t.promisify(a.getLength.bind(a))();if(a instanceof r.ReadStream){let{size:s}=await l(a.path);return s===0?void 0:s}}}),ff=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});function r(t,n,i){let l={};for(let a of i)l[a]=(...o)=>{n.emit(a,...o)},t.on(a,l[a]);return()=>{for(let a of i)t.off(a,l[a])}}e.default=r}),Nb=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=()=>{let r=[];return{once(t,n,i){t.once(n,i),r.push({origin:t,event:n,fn:i})},unhandleAll(){for(let t of r){let{origin:n,event:i,fn:l}=t;n.removeListener(i,l)}r.length=0}}}}),jb=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.TimeoutError=void 0;var r=he("net"),t=Nb(),n=Symbol("reentry"),i=()=>{},l=class extends Error{constructor(a,o){super(`Timeout awaiting '${o}' for ${a}ms`),this.event=o,this.name="TimeoutError",this.code="ETIMEDOUT"}};e.TimeoutError=l,e.default=(a,o,s)=>{if(n in a)return i;a[n]=!0;let f=[],{once:c,unhandleAll:h}=t.default(),u=(_,g,S)=>{var E;let v=setTimeout(g,_,_,S);(E=v.unref)===null||E===void 0||E.call(v);let m=()=>{clearTimeout(v)};return f.push(m),m},{host:d,hostname:p}=s,y=(_,g)=>{a.destroy(new l(_,g))},b=()=>{for(let _ of f)_();h()};if(a.once("error",_=>{if(b(),a.listenerCount("error")===0)throw _}),a.once("close",b),c(a,"response",_=>{c(_,"end",b)}),typeof o.request<"u"&&u(o.request,y,"request"),typeof o.socket<"u"){let _=()=>{y(o.socket,"socket")};a.setTimeout(o.socket,_),f.push(()=>{a.removeListener("timeout",_)})}return c(a,"socket",_=>{var g;let{socketPath:S}=a;if(_.connecting){let E=!!(S!=null?S:r.isIP((g=p!=null?p:d)!==null&&g!==void 0?g:"")!==0);if(typeof o.lookup<"u"&&!E&&typeof _.address().address>"u"){let v=u(o.lookup,y,"lookup");c(_,"lookup",v)}if(typeof o.connect<"u"){let v=()=>u(o.connect,y,"connect");E?c(_,"connect",v()):c(_,"lookup",m=>{m===null&&c(_,"connect",v())})}typeof o.secureConnect<"u"&&s.protocol==="https:"&&c(_,"connect",()=>{let v=u(o.secureConnect,y,"secureConnect");c(_,"secureConnect",v)})}if(typeof o.send<"u"){let E=()=>u(o.send,y,"send");_.connecting?c(_,"connect",()=>{c(a,"upload-complete",E())}):c(a,"upload-complete",E())}}),typeof o.response<"u"&&c(a,"upload-complete",()=>{let _=u(o.response,y,"response");c(a,"response",_)}),b}}),$b=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=hr();e.default=t=>{t=t;let n={protocol:t.protocol,hostname:r.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return r.default.string(t.port)&&t.port.length>0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),Hb=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=he("url"),t=["protocol","host","hostname","port","pathname","search"];e.default=(n,i)=>{var l,a;if(i.path){if(i.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(i.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(i.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(i.search&&i.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!n){if(!i.protocol)throw new TypeError("No URL protocol specified");n=`${i.protocol}//${(a=(l=i.hostname)!==null&&l!==void 0?l:i.host)!==null&&a!==void 0?a:""}`}let o=new r.URL(n);if(i.path){let s=i.path.indexOf("?");s===-1?i.pathname=i.path:(i.pathname=i.path.slice(0,s),i.search=i.path.slice(s+1)),delete i.path}for(let s of t)i[s]&&(o[s]=i[s].toString());return o}}),qb=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(t,n){typeof t=="object"?this.weakMap.set(t,n):this.map.set(t,n)}get(t){return typeof t=="object"?this.weakMap.get(t):this.map.get(t)}has(t){return typeof t=="object"?this.weakMap.has(t):this.map.has(t)}};e.default=r}),pf=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=async t=>{let n=[],i=0;for await(let l of t)n.push(l),i+=Buffer.byteLength(l);return Buffer.isBuffer(n[0])?Buffer.concat(n,i):Buffer.from(n.join(""))};e.default=r}),Ub=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.dnsLookupIpVersionToFamily=e.isDnsLookupIpVersion=void 0;var r={auto:0,ipv4:4,ipv6:6};e.isDnsLookupIpVersion=t=>t in r,e.dnsLookupIpVersionToFamily=t=>{if(e.isDnsLookupIpVersion(t))return r[t];throw new Error("Invalid DNS lookup IP version")}}),df=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.isResponseOk=void 0,e.isResponseOk=r=>{let{statusCode:t}=r,n=r.request.options.followRedirect?299:399;return t>=200&&t<=n||t===304}}),Gb=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=new Set;e.default=t=>{r.has(t)||(r.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}}),Wb=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=hr(),t=(n,i)=>{if(r.default.null_(n.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");r.assert.any([r.default.string,r.default.undefined],n.encoding),r.assert.any([r.default.boolean,r.default.undefined],n.resolveBodyOnly),r.assert.any([r.default.boolean,r.default.undefined],n.methodRewriting),r.assert.any([r.default.boolean,r.default.undefined],n.isStream),r.assert.any([r.default.string,r.default.undefined],n.responseType),n.responseType===void 0&&(n.responseType="text");let{retry:l}=n;if(i?n.retry={...i.retry}:n.retry={calculateDelay:a=>a.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},r.default.object(l)?(n.retry={...n.retry,...l},n.retry.methods=[...new Set(n.retry.methods.map(a=>a.toUpperCase()))],n.retry.statusCodes=[...new Set(n.retry.statusCodes)],n.retry.errorCodes=[...new Set(n.retry.errorCodes)]):r.default.number(l)&&(n.retry.limit=l),r.default.undefined(n.retry.maxRetryAfter)&&(n.retry.maxRetryAfter=Math.min(...[n.timeout.request,n.timeout.connect].filter(r.default.number))),r.default.object(n.pagination)){i&&(n.pagination={...i.pagination,...n.pagination});let{pagination:a}=n;if(!r.default.function_(a.transform))throw new Error("`options.pagination.transform` must be implemented");if(!r.default.function_(a.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!r.default.function_(a.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!r.default.function_(a.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return n.responseType==="json"&&n.headers.accept===void 0&&(n.headers.accept="application/json"),n};e.default=t}),zb=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfterStatusCodes=void 0,e.retryAfterStatusCodes=new Set([413,429,503]);var r=({attemptCount:t,retryOptions:n,error:i,retryAfter:l})=>{if(t>n.limit)return 0;let a=n.methods.includes(i.options.method),o=n.errorCodes.includes(i.code),s=i.response&&n.statusCodes.includes(i.response.statusCode);if(!a||!o&&!s)return 0;if(i.response){if(l)return n.maxRetryAfter===void 0||l>n.maxRetryAfter?0:l;if(i.response.statusCode===413)return 0}let f=Math.random()*100;return 2**(t-1)*1e3+f};e.default=r}),Zi=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedProtocolError=e.ReadError=e.TimeoutError=e.UploadError=e.CacheError=e.HTTPError=e.MaxRedirectsError=e.RequestError=e.setNonEnumerableProperties=e.knownHookEvents=e.withoutBody=e.kIsNormalizedAlready=void 0;var r=he("util"),t=he("stream"),n=he("fs"),i=he("url"),l=he("http"),a=he("http"),o=he("https"),s=pb(),f=db(),c=kb(),h=Rb(),u=Lb(),d=ia(),p=hr(),y=Mb(),b=hf(),_=ff(),g=jb(),S=$b(),E=Hb(),v=qb(),m=pf(),w=Ub(),x=df(),A=Gb(),R=Wb(),B=zb(),P,O=Symbol("request"),D=Symbol("response"),k=Symbol("responseSize"),M=Symbol("downloadedSize"),L=Symbol("bodySize"),U=Symbol("uploadedSize"),W=Symbol("serverResponsesPiped"),se=Symbol("unproxyEvents"),I=Symbol("isFromCache"),N=Symbol("cancelTimeouts"),F=Symbol("startedReading"),V=Symbol("stopReading"),G=Symbol("triggerRead"),J=Symbol("body"),j=Symbol("jobs"),z=Symbol("originalResponse"),Q=Symbol("retryTimeout");e.kIsNormalizedAlready=Symbol("isNormalizedAlready");var le=p.default.string(process.versions.brotli);e.withoutBody=new Set(["GET","HEAD"]),e.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function ue(K){for(let $ in K){let ce=K[$];if(!p.default.string(ce)&&!p.default.number(ce)&&!p.default.boolean(ce)&&!p.default.null_(ce)&&!p.default.undefined(ce))throw new TypeError(`The \`searchParams\` value '${String(ce)}' must be a string, number, boolean or null`)}}function Y(K){return p.default.object(K)&&!("statusCode"in K)}var ne=new v.default,T=async K=>new Promise(($,ce)=>{let we=be=>{ce(be)};K.pending||$(),K.once("error",we),K.once("ready",()=>{K.off("error",we),$()})}),q=new Set([300,301,302,303,304,307,308]),C=["context","body","json","form"];e.setNonEnumerableProperties=(K,$)=>{let ce={};for(let we of K)if(we)for(let be of C)be in we&&(ce[be]={writable:!0,configurable:!0,enumerable:!1,value:we[be]});Object.defineProperties($,ce)};var H=class extends Error{constructor(K,$,ce){var we,be;if(super(K),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(we=$.code)!==null&&we!==void 0?we:"ERR_GOT_REQUEST_ERROR",ce instanceof Ce?(Object.defineProperty(this,"request",{enumerable:!1,value:ce}),Object.defineProperty(this,"response",{enumerable:!1,value:ce[D]}),Object.defineProperty(this,"options",{enumerable:!1,value:ce.options})):Object.defineProperty(this,"options",{enumerable:!1,value:ce}),this.timings=(be=this.request)===null||be===void 0?void 0:be.timings,p.default.string($.stack)&&p.default.string(this.stack)){let de=this.stack.indexOf(this.message)+this.message.length,ve=this.stack.slice(de).split(`
|
|
119
|
+
`).reverse(),Se=$.stack.slice($.stack.indexOf($.message)+$.message.length).split(`
|
|
120
|
+
`).reverse();for(;Se.length!==0&&Se[0]===ve[0];)ve.shift();this.stack=`${this.stack.slice(0,de)}${ve.reverse().join(`
|
|
121
|
+
`)}${Se.reverse().join(`
|
|
122
|
+
`)}`}}};e.RequestError=H;var X=class extends H{constructor(K){super(`Redirected ${K.options.maxRedirects} times. Aborting.`,{},K),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};e.MaxRedirectsError=X;var ie=class extends H{constructor(K){super(`Response code ${K.statusCode} (${K.statusMessage})`,{},K.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};e.HTTPError=ie;var me=class extends H{constructor(K,$){super(K.message,K,$),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};e.CacheError=me;var ae=class extends H{constructor(K,$){super(K.message,K,$),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};e.UploadError=ae;var pe=class extends H{constructor(K,$,ce){super(K.message,K,ce),this.name="TimeoutError",this.event=K.event,this.timings=$}};e.TimeoutError=pe;var oe=class extends H{constructor(K,$){super(K.message,K,$),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};e.ReadError=oe;var ge=class extends H{constructor(K){super(`Unsupported protocol "${K.url.protocol}"`,{},K),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};e.UnsupportedProtocolError=ge;var Ee=["socket","connect","continue","information","upgrade","timeout"],Ce=class extends t.Duplex{constructor(K,$={},ce){super({autoDestroy:!1,highWaterMark:0}),this[M]=0,this[U]=0,this.requestInitialized=!1,this[W]=new Set,this.redirects=[],this[V]=!1,this[G]=!1,this[j]=[],this.retryCount=0,this._progressCallbacks=[];let we=()=>this._unlockWrite(),be=()=>this._lockWrite();this.on("pipe",Ae=>{Ae.prependListener("data",we),Ae.on("data",be),Ae.prependListener("end",we),Ae.on("end",be)}),this.on("unpipe",Ae=>{Ae.off("data",we),Ae.off("data",be),Ae.off("end",we),Ae.off("end",be)}),this.on("pipe",Ae=>{Ae instanceof a.IncomingMessage&&(this.options.headers={...Ae.headers,...this.options.headers})});let{json:de,body:ve,form:Se}=$;if((de||ve||Se)&&this._lockWrite(),e.kIsNormalizedAlready in $)this.options=$;else try{this.options=this.constructor.normalizeArguments(K,$,ce)}catch(Ae){p.default.nodeStream($.body)&&$.body.destroy(),this.destroy(Ae);return}(async()=>{var Ae;try{this.options.body instanceof n.ReadStream&&await T(this.options.body);let{url:$e}=this.options;if(!$e)throw new TypeError("Missing `url` property");if(this.requestUrl=$e.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(Ae=this[O])===null||Ae===void 0||Ae.destroy();return}for(let Me of this[j])Me();this[j].length=0,this.requestInitialized=!0}catch($e){if($e instanceof H){this._beforeError($e);return}this.destroyed||this.destroy($e)}})()}static normalizeArguments(K,$,ce){var we,be,de,ve,Se;let Ae=$;if(p.default.object(K)&&!p.default.urlInstance(K))$={...ce,...K,...$};else{if(K&&$&&$.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");$={...ce,...$},K!==void 0&&($.url=K),p.default.urlInstance($.url)&&($.url=new i.URL($.url.toString()))}if($.cache===!1&&($.cache=void 0),$.dnsCache===!1&&($.dnsCache=void 0),p.assert.any([p.default.string,p.default.undefined],$.method),p.assert.any([p.default.object,p.default.undefined],$.headers),p.assert.any([p.default.string,p.default.urlInstance,p.default.undefined],$.prefixUrl),p.assert.any([p.default.object,p.default.undefined],$.cookieJar),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.searchParams),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.cache),p.assert.any([p.default.object,p.default.number,p.default.undefined],$.timeout),p.assert.any([p.default.object,p.default.undefined],$.context),p.assert.any([p.default.object,p.default.undefined],$.hooks),p.assert.any([p.default.boolean,p.default.undefined],$.decompress),p.assert.any([p.default.boolean,p.default.undefined],$.ignoreInvalidCookies),p.assert.any([p.default.boolean,p.default.undefined],$.followRedirect),p.assert.any([p.default.number,p.default.undefined],$.maxRedirects),p.assert.any([p.default.boolean,p.default.undefined],$.throwHttpErrors),p.assert.any([p.default.boolean,p.default.undefined],$.http2),p.assert.any([p.default.boolean,p.default.undefined],$.allowGetBody),p.assert.any([p.default.string,p.default.undefined],$.localAddress),p.assert.any([w.isDnsLookupIpVersion,p.default.undefined],$.dnsLookupIpVersion),p.assert.any([p.default.object,p.default.undefined],$.https),p.assert.any([p.default.boolean,p.default.undefined],$.rejectUnauthorized),$.https&&(p.assert.any([p.default.boolean,p.default.undefined],$.https.rejectUnauthorized),p.assert.any([p.default.function_,p.default.undefined],$.https.checkServerIdentity),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificateAuthority),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.key),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificate),p.assert.any([p.default.string,p.default.undefined],$.https.passphrase),p.assert.any([p.default.string,p.default.buffer,p.default.array,p.default.undefined],$.https.pfx)),p.assert.any([p.default.object,p.default.undefined],$.cacheOptions),p.default.string($.method)?$.method=$.method.toUpperCase():$.method="GET",$.headers===(ce==null?void 0:ce.headers)?$.headers={...$.headers}:$.headers=d({...ce==null?void 0:ce.headers,...$.headers}),"slashes"in $)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in $)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in $&&$.searchParams&&$.searchParams!==(ce==null?void 0:ce.searchParams)){let xe;if(p.default.string($.searchParams)||$.searchParams instanceof i.URLSearchParams)xe=new i.URLSearchParams($.searchParams);else{ue($.searchParams),xe=new i.URLSearchParams;for(let Pe in $.searchParams){let Ie=$.searchParams[Pe];Ie===null?xe.append(Pe,""):Ie!==void 0&&xe.append(Pe,Ie)}}(we=ce==null?void 0:ce.searchParams)===null||we===void 0||we.forEach((Pe,Ie)=>{xe.has(Ie)||xe.append(Ie,Pe)}),$.searchParams=xe}if($.username=(be=$.username)!==null&&be!==void 0?be:"",$.password=(de=$.password)!==null&&de!==void 0?de:"",p.default.undefined($.prefixUrl)?$.prefixUrl=(ve=ce==null?void 0:ce.prefixUrl)!==null&&ve!==void 0?ve:"":($.prefixUrl=$.prefixUrl.toString(),$.prefixUrl!==""&&!$.prefixUrl.endsWith("/")&&($.prefixUrl+="/")),p.default.string($.url)){if($.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");$.url=E.default($.prefixUrl+$.url,$)}else(p.default.undefined($.url)&&$.prefixUrl!==""||$.protocol)&&($.url=E.default($.prefixUrl,$));if($.url){"port"in $&&delete $.port;let{prefixUrl:xe}=$;Object.defineProperty($,"prefixUrl",{set:Ie=>{let ke=$.url;if(!ke.href.startsWith(Ie))throw new Error(`Cannot change \`prefixUrl\` from ${xe} to ${Ie}: ${ke.href}`);$.url=new i.URL(Ie+ke.href.slice(xe.length)),xe=Ie},get:()=>xe});let{protocol:Pe}=$.url;if(Pe==="unix:"&&(Pe="http:",$.url=new i.URL(`http://unix${$.url.pathname}${$.url.search}`)),$.searchParams&&($.url.search=$.searchParams.toString()),Pe!=="http:"&&Pe!=="https:")throw new ge($);$.username===""?$.username=$.url.username:$.url.username=$.username,$.password===""?$.password=$.url.password:$.url.password=$.password}let{cookieJar:$e}=$;if($e){let{setCookie:xe,getCookieString:Pe}=$e;p.assert.function_(xe),p.assert.function_(Pe),xe.length===4&&Pe.length===0&&(xe=r.promisify(xe.bind($.cookieJar)),Pe=r.promisify(Pe.bind($.cookieJar)),$.cookieJar={setCookie:xe,getCookieString:Pe})}let{cache:Me}=$;if(Me&&(ne.has(Me)||ne.set(Me,new c((xe,Pe)=>{let Ie=xe[O](xe,Pe);return p.default.promise(Ie)&&(Ie.once=(ke,De)=>{if(ke==="error")Ie.catch(De);else if(ke==="abort")(async()=>{try{(await Ie).once("abort",De)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${ke}`);return Ie}),Ie},Me))),$.cacheOptions={...$.cacheOptions},$.dnsCache===!0)P||(P=new f.default),$.dnsCache=P;else if(!p.default.undefined($.dnsCache)&&!$.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${p.default($.dnsCache)}`);p.default.number($.timeout)?$.timeout={request:$.timeout}:ce&&$.timeout!==ce.timeout?$.timeout={...ce.timeout,...$.timeout}:$.timeout={...$.timeout},$.context||($.context={});let Qt=$.hooks===(ce==null?void 0:ce.hooks);$.hooks={...$.hooks};for(let xe of e.knownHookEvents)if(xe in $.hooks)if(p.default.array($.hooks[xe]))$.hooks[xe]=[...$.hooks[xe]];else throw new TypeError(`Parameter \`${xe}\` must be an Array, got ${p.default($.hooks[xe])}`);else $.hooks[xe]=[];if(ce&&!Qt)for(let xe of e.knownHookEvents)ce.hooks[xe].length>0&&($.hooks[xe]=[...ce.hooks[xe],...$.hooks[xe]]);if("family"in $&&A.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),ce!=null&&ce.https&&($.https={...ce.https,...$.https}),"rejectUnauthorized"in $&&A.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in $&&A.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in $&&A.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in $&&A.default('"options.key" was never documented, please use "options.https.key"'),"cert"in $&&A.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in $&&A.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in $&&A.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in $)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if($.agent){for(let xe in $.agent)if(xe!=="http"&&xe!=="https"&&xe!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${xe}\``)}return $.maxRedirects=(Se=$.maxRedirects)!==null&&Se!==void 0?Se:0,e.setNonEnumerableProperties([ce,Ae],$),R.default($,ce)}_lockWrite(){let K=()=>{throw new TypeError("The payload has been already provided")};this.write=K,this.end=K}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:K}=this,{headers:$}=K,ce=!p.default.undefined(K.form),we=!p.default.undefined(K.json),be=!p.default.undefined(K.body),de=ce||we||be,ve=e.withoutBody.has(K.method)&&!(K.method==="GET"&&K.allowGetBody);if(this._cannotHaveBody=ve,de){if(ve)throw new TypeError(`The \`${K.method}\` method cannot be used with a body`);if([be,ce,we].filter(Se=>Se).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(be&&!(K.body instanceof t.Readable)&&!p.default.string(K.body)&&!p.default.buffer(K.body)&&!b.default(K.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(ce&&!p.default.object(K.form))throw new TypeError("The `form` option must be an Object");{let Se=!p.default.string($["content-type"]);be?(b.default(K.body)&&Se&&($["content-type"]=`multipart/form-data; boundary=${K.body.getBoundary()}`),this[J]=K.body):ce?(Se&&($["content-type"]="application/x-www-form-urlencoded"),this[J]=new i.URLSearchParams(K.form).toString()):(Se&&($["content-type"]="application/json"),this[J]=K.stringifyJson(K.json));let Ae=await y.default(this[J],K.headers);p.default.undefined($["content-length"])&&p.default.undefined($["transfer-encoding"])&&!ve&&!p.default.undefined(Ae)&&($["content-length"]=String(Ae))}}else ve?this._lockWrite():this._unlockWrite();this[L]=Number($["content-length"])||void 0}async _onResponseBase(K){let{options:$}=this,{url:ce}=$;this[z]=K,$.decompress&&(K=h(K));let we=K.statusCode,be=K;be.statusMessage=be.statusMessage?be.statusMessage:l.STATUS_CODES[we],be.url=$.url.toString(),be.requestUrl=this.requestUrl,be.redirectUrls=this.redirects,be.request=this,be.isFromCache=K.fromCache||!1,be.ip=this.ip,be.retryCount=this.retryCount,this[I]=be.isFromCache,this[k]=Number(K.headers["content-length"])||void 0,this[D]=K,K.once("end",()=>{this[k]=this[M],this.emit("downloadProgress",this.downloadProgress)}),K.once("error",ve=>{K.destroy(),this._beforeError(new oe(ve,this))}),K.once("aborted",()=>{this._beforeError(new oe({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let de=K.headers["set-cookie"];if(p.default.object($.cookieJar)&&de){let ve=de.map(async Se=>$.cookieJar.setCookie(Se,ce.toString()));$.ignoreInvalidCookies&&(ve=ve.map(async Se=>Se.catch(()=>{})));try{await Promise.all(ve)}catch(Se){this._beforeError(Se);return}}if($.followRedirect&&K.headers.location&&q.has(we)){if(K.resume(),this[O]&&(this[N](),delete this[O],this[se]()),(we===303&&$.method!=="GET"&&$.method!=="HEAD"||!$.methodRewriting)&&($.method="GET","body"in $&&delete $.body,"json"in $&&delete $.json,"form"in $&&delete $.form,this[J]=void 0,delete $.headers["content-length"]),this.redirects.length>=$.maxRedirects){this._beforeError(new X(this));return}try{let ve=function(Me){return Me.protocol==="unix:"||Me.hostname==="unix"},Se=Buffer.from(K.headers.location,"binary").toString(),Ae=new i.URL(Se,ce),$e=Ae.toString();if(decodeURI($e),!ve(ce)&&ve(Ae)){this._beforeError(new H("Cannot redirect to UNIX socket",{},this));return}Ae.hostname!==ce.hostname||Ae.port!==ce.port?("host"in $.headers&&delete $.headers.host,"cookie"in $.headers&&delete $.headers.cookie,"authorization"in $.headers&&delete $.headers.authorization,($.username||$.password)&&($.username="",$.password="")):(Ae.username=$.username,Ae.password=$.password),this.redirects.push($e),$.url=Ae;for(let Me of $.hooks.beforeRedirect)await Me($,be);this.emit("redirect",be,$),await this._makeRequest()}catch(ve){this._beforeError(ve);return}return}if($.isStream&&$.throwHttpErrors&&!x.isResponseOk(be)){this._beforeError(new ie(be));return}K.on("readable",()=>{this[G]&&this._read()}),this.on("resume",()=>{K.resume()}),this.on("pause",()=>{K.pause()}),K.once("end",()=>{this.push(null)}),this.emit("response",K);for(let ve of this[W])if(!ve.headersSent){for(let Se in K.headers){let Ae=$.decompress?Se!=="content-encoding":!0,$e=K.headers[Se];Ae&&ve.setHeader(Se,$e)}ve.statusCode=we}}async _onResponse(K){try{await this._onResponseBase(K)}catch($){this._beforeError($)}}_onRequest(K){let{options:$}=this,{timeout:ce,url:we}=$;s.default(K),this[N]=g.default(K,ce,we);let be=$.cache?"cacheableResponse":"response";K.once(be,Se=>{this._onResponse(Se)}),K.once("error",Se=>{var Ae;K.destroy(),(Ae=K.res)===null||Ae===void 0||Ae.removeAllListeners("end"),Se=Se instanceof g.TimeoutError?new pe(Se,this.timings,this):new H(Se.message,Se,this),this._beforeError(Se)}),this[se]=_.default(K,this,Ee),this[O]=K,this.emit("uploadProgress",this.uploadProgress);let de=this[J],ve=this.redirects.length===0?this:K;p.default.nodeStream(de)?(de.pipe(ve),de.once("error",Se=>{this._beforeError(new ae(Se,this))})):(this._unlockWrite(),p.default.undefined(de)?(this._cannotHaveBody||this._noPipe)&&(ve.end(),this._lockWrite()):(this._writeRequest(de,void 0,()=>{}),ve.end(),this._lockWrite())),this.emit("request",K)}async _createCacheableRequest(K,$){return new Promise((ce,we)=>{Object.assign($,S.default(K)),delete $.url;let be,de=ne.get($.cache)($,async ve=>{ve._readableState.autoDestroy=!1,be&&(await be).emit("cacheableResponse",ve),ce(ve)});$.url=K,de.once("error",we),de.once("request",async ve=>{be=ve,ce(be)})})}async _makeRequest(){var K,$,ce,we,be;let{options:de}=this,{headers:ve}=de;for(let De in ve)if(p.default.undefined(ve[De]))delete ve[De];else if(p.default.null_(ve[De]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${De}\` header`);if(de.decompress&&p.default.undefined(ve["accept-encoding"])&&(ve["accept-encoding"]=le?"gzip, deflate, br":"gzip, deflate"),de.cookieJar){let De=await de.cookieJar.getCookieString(de.url.toString());p.default.nonEmptyString(De)&&(de.headers.cookie=De)}for(let De of de.hooks.beforeRequest){let Jt=await De(de);if(!p.default.undefined(Jt)){de.request=()=>Jt;break}}de.body&&this[J]!==de.body&&(this[J]=de.body);let{agent:Se,request:Ae,timeout:$e,url:Me}=de;if(de.dnsCache&&!("lookup"in de)&&(de.lookup=de.dnsCache.lookup),Me.hostname==="unix"){let De=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Me.pathname}${Me.search}`);if(De!=null&&De.groups){let{socketPath:Jt,path:ra}=De.groups;Object.assign(de,{socketPath:Jt,path:ra,host:""})}}let Qt=Me.protocol==="https:",xe;de.http2?xe=u.auto:xe=Qt?o.request:l.request;let Pe=(K=de.request)!==null&&K!==void 0?K:xe,Ie=de.cache?this._createCacheableRequest:Pe;Se&&!de.http2&&(de.agent=Se[Qt?"https":"http"]),de[O]=Pe,delete de.request,delete de.timeout;let ke=de;if(ke.shared=($=de.cacheOptions)===null||$===void 0?void 0:$.shared,ke.cacheHeuristic=(ce=de.cacheOptions)===null||ce===void 0?void 0:ce.cacheHeuristic,ke.immutableMinTimeToLive=(we=de.cacheOptions)===null||we===void 0?void 0:we.immutableMinTimeToLive,ke.ignoreCargoCult=(be=de.cacheOptions)===null||be===void 0?void 0:be.ignoreCargoCult,de.dnsLookupIpVersion!==void 0)try{ke.family=w.dnsLookupIpVersionToFamily(de.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}de.https&&("rejectUnauthorized"in de.https&&(ke.rejectUnauthorized=de.https.rejectUnauthorized),de.https.checkServerIdentity&&(ke.checkServerIdentity=de.https.checkServerIdentity),de.https.certificateAuthority&&(ke.ca=de.https.certificateAuthority),de.https.certificate&&(ke.cert=de.https.certificate),de.https.key&&(ke.key=de.https.key),de.https.passphrase&&(ke.passphrase=de.https.passphrase),de.https.pfx&&(ke.pfx=de.https.pfx));try{let De=await Ie(Me,ke);p.default.undefined(De)&&(De=xe(Me,ke)),de.request=Ae,de.timeout=$e,de.agent=Se,de.https&&("rejectUnauthorized"in de.https&&delete ke.rejectUnauthorized,de.https.checkServerIdentity&&delete ke.checkServerIdentity,de.https.certificateAuthority&&delete ke.ca,de.https.certificate&&delete ke.cert,de.https.key&&delete ke.key,de.https.passphrase&&delete ke.passphrase,de.https.pfx&&delete ke.pfx),Y(De)?this._onRequest(De):this.writable?(this.once("finish",()=>{this._onResponse(De)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(De)}catch(De){throw De instanceof c.CacheError?new me(De,this):new H(De.message,De,this)}}async _error(K){try{for(let $ of this.options.hooks.beforeError)K=await $(K)}catch($){K=new H($.message,$,this)}this.destroy(K)}_beforeError(K){if(this[V])return;let{options:$}=this,ce=this.retryCount+1;this[V]=!0,K instanceof H||(K=new H(K.message,K,this));let we=K,{response:be}=we;(async()=>{if(be&&!be.body){be.setEncoding(this._readableState.encoding);try{be.rawBody=await m.default(be),be.body=be.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let de;try{let ve;be&&"retry-after"in be.headers&&(ve=Number(be.headers["retry-after"]),Number.isNaN(ve)?(ve=Date.parse(be.headers["retry-after"])-Date.now(),ve<=0&&(ve=1)):ve*=1e3),de=await $.retry.calculateDelay({attemptCount:ce,retryOptions:$.retry,error:we,retryAfter:ve,computedValue:B.default({attemptCount:ce,retryOptions:$.retry,error:we,retryAfter:ve,computedValue:0})})}catch(ve){this._error(new H(ve.message,ve,this));return}if(de){let ve=async()=>{try{for(let Se of this.options.hooks.beforeRetry)await Se(this.options,we,ce)}catch(Se){this._error(new H(Se.message,K,this));return}this.destroyed||(this.destroy(),this.emit("retry",ce,K))};this[Q]=setTimeout(ve,de);return}}this._error(we)})()}_read(){this[G]=!0;let K=this[D];if(K&&!this[V]){K.readableLength&&(this[G]=!1);let $;for(;($=K.read())!==null;){this[M]+=$.length,this[F]=!0;let ce=this.downloadProgress;ce.percent<1&&this.emit("downloadProgress",ce),this.push($)}}}_write(K,$,ce){let we=()=>{this._writeRequest(K,$,ce)};this.requestInitialized?we():this[j].push(we)}_writeRequest(K,$,ce){this[O].destroyed||(this._progressCallbacks.push(()=>{this[U]+=Buffer.byteLength(K,$);let we=this.uploadProgress;we.percent<1&&this.emit("uploadProgress",we)}),this[O].write(K,$,we=>{!we&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),ce(we)}))}_final(K){let $=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(O in this)){K();return}if(this[O].destroyed){K();return}this[O].end(ce=>{ce||(this[L]=this[U],this.emit("uploadProgress",this.uploadProgress),this[O].emit("upload-complete")),K(ce)})};this.requestInitialized?$():this[j].push($)}_destroy(K,$){var ce;this[V]=!0,clearTimeout(this[Q]),O in this&&(this[N](),!((ce=this[D])===null||ce===void 0)&&ce.complete||this[O].destroy()),K!==null&&!p.default.undefined(K)&&!(K instanceof H)&&(K=new H(K.message,K,this)),$(K)}get _isAboutToError(){return this[V]}get ip(){var K;return(K=this.socket)===null||K===void 0?void 0:K.remoteAddress}get aborted(){var K,$,ce;return(($=(K=this[O])===null||K===void 0?void 0:K.destroyed)!==null&&$!==void 0?$:this.destroyed)&&!(!((ce=this[z])===null||ce===void 0)&&ce.complete)}get socket(){var K,$;return($=(K=this[O])===null||K===void 0?void 0:K.socket)!==null&&$!==void 0?$:void 0}get downloadProgress(){let K;return this[k]?K=this[M]/this[k]:this[k]===this[M]?K=1:K=0,{percent:K,transferred:this[M],total:this[k]}}get uploadProgress(){let K;return this[L]?K=this[U]/this[L]:this[L]===this[U]?K=1:K=0,{percent:K,transferred:this[U],total:this[L]}}get timings(){var K;return(K=this[O])===null||K===void 0?void 0:K.timings}get isFromCache(){return this[I]}pipe(K,$){if(this[F])throw new Error("Failed to pipe. The response has been emitted already.");return K instanceof a.ServerResponse&&this[W].add(K),super.pipe(K,$)}unpipe(K){return K instanceof a.ServerResponse&&this[W].delete(K),super.unpipe(K),this}};e.default=Ce}),Qi=te(e=>{"use strict";Z();var r=e&&e.__createBinding||(Object.create?function(a,o,s,f){f===void 0&&(f=s),Object.defineProperty(a,f,{enumerable:!0,get:function(){return o[s]}})}:function(a,o,s,f){f===void 0&&(f=s),a[f]=o[s]}),t=e&&e.__exportStar||function(a,o){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,a,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=e.ParseError=void 0;var n=Zi(),i=class extends n.RequestError{constructor(a,o){let{options:s}=o.request;super(`${a.message} in "${s.url.toString()}"`,a,o.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};e.ParseError=i;var l=class extends n.RequestError{constructor(a){super("Promise was canceled",{},a),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};e.CancelError=l,t(Zi(),e)}),Vb=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=Qi(),t=(n,i,l,a)=>{let{rawBody:o}=n;try{if(i==="text")return o.toString(a);if(i==="json")return o.length===0?"":l(o.toString());if(i==="buffer")return o;throw new r.ParseError({message:`Unknown body type '${i}'`,name:"Error"},n)}catch(s){throw new r.ParseError(s,n)}};e.default=t}),mf=te(e=>{"use strict";Z();var r=e&&e.__createBinding||(Object.create?function(p,y,b,_){_===void 0&&(_=b),Object.defineProperty(p,_,{enumerable:!0,get:function(){return y[b]}})}:function(p,y,b,_){_===void 0&&(_=b),p[_]=y[b]}),t=e&&e.__exportStar||function(p,y){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(y,b)&&r(y,p,b)};Object.defineProperty(e,"__esModule",{value:!0});var n=he("events"),i=hr(),l=hb(),a=Qi(),o=Vb(),s=Zi(),f=ff(),c=pf(),h=df(),u=["request","response","redirect","uploadProgress","downloadProgress"];function d(p){let y,b,_=new n.EventEmitter,g=new l((E,v,m)=>{let w=x=>{let A=new s.default(void 0,p);A.retryCount=x,A._noPipe=!0,m(()=>A.destroy()),m.shouldReject=!1,m(()=>v(new a.CancelError(A))),y=A,A.once("response",async P=>{var O;if(P.retryCount=x,P.request.aborted)return;let D;try{D=await c.default(A),P.rawBody=D}catch{return}if(A._isAboutToError)return;let k=((O=P.headers["content-encoding"])!==null&&O!==void 0?O:"").toLowerCase(),M=["gzip","deflate","br"].includes(k),{options:L}=A;if(M&&!L.decompress)P.body=D;else try{P.body=o.default(P,L.responseType,L.parseJson,L.encoding)}catch(U){if(P.body=D.toString(),h.isResponseOk(P)){A._beforeError(U);return}}try{for(let[U,W]of L.hooks.afterResponse.entries())P=await W(P,async se=>{let I=s.default.normalizeArguments(void 0,{...se,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},L);I.hooks.afterResponse=I.hooks.afterResponse.slice(0,U);for(let F of I.hooks.beforeRetry)await F(I);let N=d(I);return m(()=>{N.catch(()=>{}),N.cancel()}),N})}catch(U){A._beforeError(new a.RequestError(U.message,U,A));return}if(b=P,!h.isResponseOk(P)){A._beforeError(new a.HTTPError(P));return}A.destroy(),E(A.options.resolveBodyOnly?P.body:P)});let R=P=>{if(g.isCanceled)return;let{options:O}=A;if(P instanceof a.HTTPError&&!O.throwHttpErrors){let{response:D}=P;E(A.options.resolveBodyOnly?D.body:D);return}v(P)};A.once("error",R);let B=A.options.body;A.once("retry",(P,O)=>{var D,k;if(B===((D=O.request)===null||D===void 0?void 0:D.options.body)&&i.default.nodeStream((k=O.request)===null||k===void 0?void 0:k.options.body)){R(O);return}w(P)}),f.default(A,_,u)};w(0)});g.on=(E,v)=>(_.on(E,v),g);let S=E=>{let v=(async()=>{await g;let{options:m}=b.request;return o.default(b,E,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)),v};return g.json=()=>{let{headers:E}=y.options;return!y.writableFinished&&E.accept===void 0&&(E.accept="application/json"),S("json")},g.buffer=()=>S("buffer"),g.text=()=>S("text"),g}e.default=d,t(Qi(),e)}),Kb=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=Qi();function t(n,...i){let l=(async()=>{if(n instanceof r.RequestError)try{for(let o of i)if(o)for(let s of o)n=await s(n)}catch(o){n=o}throw n})(),a=()=>l;return l.json=a,l.text=a,l.buffer=a,l.on=a,l}e.default=t}),Yb=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=hr();function t(n){for(let i of Object.values(n))(r.default.plainObject(i)||r.default.array(i))&&t(i);return Object.freeze(n)}e.default=t}),Xb=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0})}),nf=te(e=>{"use strict";Z();var r=e&&e.__createBinding||(Object.create?function(_,g,S,E){E===void 0&&(E=S),Object.defineProperty(_,E,{enumerable:!0,get:function(){return g[S]}})}:function(_,g,S,E){E===void 0&&(E=S),_[E]=g[S]}),t=e&&e.__exportStar||function(_,g){for(var S in _)S!=="default"&&!Object.prototype.hasOwnProperty.call(g,S)&&r(g,_,S)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHandler=void 0;var n=hr(),i=mf(),l=Kb(),a=Zi(),o=Yb(),s={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},f=async _=>new Promise(g=>{setTimeout(g,_)}),{normalizeArguments:c}=a.default,h=(..._)=>{let g;for(let S of _)g=c(void 0,S,g);return g},u=_=>_.isStream?new a.default(void 0,_):i.default(_),d=_=>"defaults"in _&&"options"in _.defaults,p=["get","post","put","patch","head","delete"];e.defaultHandler=(_,g)=>g(_);var y=(_,g)=>{if(_)for(let S of _)S(g)},b=_=>{_._rawHandlers=_.handlers,_.handlers=_.handlers.map(E=>(v,m)=>{let w,x=E(v,A=>(w=m(A),w));if(x!==w&&!v.isStream&&w){let A=x,{then:R,catch:B,finally:P}=A;Object.setPrototypeOf(A,Object.getPrototypeOf(w)),Object.defineProperties(A,Object.getOwnPropertyDescriptors(w)),A.then=R,A.catch=B,A.finally=P}return x});let g=(E,v={},m)=>{var w,x;let A=0,R=B=>_.handlers[A++](B,A===_.handlers.length?u:R);if(n.default.plainObject(E)){let B={...E,...v};a.setNonEnumerableProperties([E,v],B),v=B,E=void 0}try{let B;try{y(_.options.hooks.init,v),y((w=v.hooks)===null||w===void 0?void 0:w.init,v)}catch(O){B=O}let P=c(E,v,m!=null?m:_.options);if(P[a.kIsNormalizedAlready]=!0,B)throw new i.RequestError(B.message,B,P);return R(P)}catch(B){if(v.isStream)throw B;return l.default(B,_.options.hooks.beforeError,(x=v.hooks)===null||x===void 0?void 0:x.beforeError)}};g.extend=(...E)=>{let v=[_.options],m=[..._._rawHandlers],w;for(let x of E)d(x)?(v.push(x.defaults.options),m.push(...x.defaults._rawHandlers),w=x.defaults.mutableDefaults):(v.push(x),"handlers"in x&&m.push(...x.handlers),w=x.mutableDefaults);return m=m.filter(x=>x!==e.defaultHandler),m.length===0&&m.push(e.defaultHandler),b({options:h(...v),handlers:m,mutableDefaults:!!w})};let S=async function*(E,v){let m=c(E,v,_.options);m.resolveBodyOnly=!1;let w=m.pagination;if(!n.default.object(w))throw new TypeError("`options.pagination` must be implemented");let x=[],{countLimit:A}=w,R=0;for(;R<w.requestLimit;){R!==0&&await f(w.backoff);let B=await g(void 0,void 0,m),P=await w.transform(B),O=[];for(let k of P)if(w.filter(k,x,O)&&(!w.shouldContinue(k,x,O)||(yield k,w.stackAllItems&&x.push(k),O.push(k),--A<=0)))return;let D=w.paginate(B,x,O);if(D===!1)return;D===B.request.options?m=B.request.options:D!==void 0&&(m=c(void 0,D,m)),R++}};g.paginate=S,g.paginate.all=async(E,v)=>{let m=[];for await(let w of S(E,v))m.push(w);return m},g.paginate.each=S,g.stream=(E,v)=>g(E,{...v,isStream:!0});for(let E of p)g[E]=(v,m)=>g(v,{...m,method:E}),g.stream[E]=(v,m)=>g(v,{...m,method:E,isStream:!0});return Object.assign(g,s),Object.defineProperty(g,"defaults",{value:_.mutableDefaults?_:o.default(_),writable:_.mutableDefaults,configurable:_.mutableDefaults,enumerable:!0}),g.mergeOptions=h,g};e.default=b,t(Xb(),e)}),Zb=te((e,r)=>{"use strict";Z();var t=e&&e.__createBinding||(Object.create?function(s,f,c,h){h===void 0&&(h=c),Object.defineProperty(s,h,{enumerable:!0,get:function(){return f[c]}})}:function(s,f,c,h){h===void 0&&(h=c),s[h]=f[c]}),n=e&&e.__exportStar||function(s,f){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(f,c)&&t(f,s,c)};Object.defineProperty(e,"__esModule",{value:!0});var i=he("url"),l=nf(),a={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:s})=>s},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:s=>s.request.options.responseType==="json"?s.body:JSON.parse(s.body),paginate:s=>{if(!Reflect.has(s.headers,"link"))return!1;let f=s.headers.link.split(","),c;for(let h of f){let u=h.split(";");if(u[1].includes("next")){c=u[0].trimStart().trim(),c=c.slice(1,-1);break}}return c?{url:new i.URL(c)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:s=>JSON.parse(s),stringifyJson:s=>JSON.stringify(s),cacheOptions:{}},handlers:[l.defaultHandler],mutableDefaults:!1},o=l.default(a);e.default=o,r.exports=o,r.exports.default=o,r.exports.__esModule=!0,n(nf(),e),n(mf(),e)}),Zn=te((e,r)=>{"use strict";Z();var t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);r.exports=n=>n?Object.keys(n).map(i=>[t.has(i)?t.get(i):i,n[i]]).reduce((i,l)=>(i[l[0]]=l[1],i),Object.create(null)):{}}),sa=te((e,r)=>{"use strict";Z();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=he("events"),i=he("stream"),l=he("string_decoder").StringDecoder,a=Symbol("EOF"),o=Symbol("maybeEmitEnd"),s=Symbol("emittedEnd"),f=Symbol("emittingEnd"),c=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),w=Symbol("bufferPush"),x=Symbol("bufferShift"),A=Symbol("objectMode"),R=Symbol("destroyed"),B=Symbol("emitData"),P=Symbol("emitEnd"),O=Symbol("emitEnd2"),D=Symbol("async"),k=V=>Promise.resolve().then(V),M=global._MP_NO_ITERATOR_SYMBOLS_!=="1",L=M&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),U=M&&Symbol.iterator||Symbol("iterator not implemented"),W=V=>V==="end"||V==="finish"||V==="prefinish",se=V=>V instanceof ArrayBuffer||typeof V=="object"&&V.constructor&&V.constructor.name==="ArrayBuffer"&&V.byteLength>=0,I=V=>!Buffer.isBuffer(V)&&ArrayBuffer.isView(V),N=class{constructor(V,G,J){this.src=V,this.dest=G,this.opts=J,this.ondrain=()=>V[S](),G.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},F=class extends N{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(V,G,J){super(V,G,J),this.proxyErrors=j=>G.emit("error",j),V.on("error",this.proxyErrors)}};r.exports=class yf extends i{constructor(G){super(),this[_]=!1,this[g]=!1,this[v]=[],this[E]=[],this[A]=G&&G.objectMode||!1,this[A]?this[y]=null:this[y]=G&&G.encoding||null,this[y]==="buffer"&&(this[y]=null),this[D]=G&&!!G.async||!1,this[b]=this[y]?new l(this[y]):null,this[a]=!1,this[s]=!1,this[f]=!1,this[h]=!1,this[c]=null,this.writable=!0,this.readable=!0,this[m]=0,this[R]=!1,G&&G.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[E]}),G&&G.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[y]}set encoding(G){if(this[A])throw new Error("cannot set encoding in objectMode");if(this[y]&&G!==this[y]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[y]!==G&&(this[b]=G?new l(G):null,this[E].length&&(this[E]=this[E].map(J=>this[b].write(J)))),this[y]=G}setEncoding(G){this.encoding=G}get objectMode(){return this[A]}set objectMode(G){this[A]=this[A]||!!G}get async(){return this[D]}set async(G){this[D]=this[D]||!!G}write(G,J,j){if(this[a])throw new Error("write after end");if(this[R])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof J=="function"&&(j=J,J="utf8"),J||(J="utf8");let z=this[D]?k:Q=>Q();return!this[A]&&!Buffer.isBuffer(G)&&(I(G)?G=Buffer.from(G.buffer,G.byteOffset,G.byteLength):se(G)?G=Buffer.from(G):typeof G!="string"&&(this.objectMode=!0)),this[A]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",G):this[w](G),this[m]!==0&&this.emit("readable"),j&&z(j),this.flowing):G.length?(typeof G=="string"&&!(J===this[y]&&!this[b].lastNeed)&&(G=Buffer.from(G,J)),Buffer.isBuffer(G)&&this[y]&&(G=this[b].write(G)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",G):this[w](G),this[m]!==0&&this.emit("readable"),j&&z(j),this.flowing):(this[m]!==0&&this.emit("readable"),j&&z(j),this.flowing)}read(G){if(this[R])return null;if(this[m]===0||G===0||G>this[m])return this[o](),null;this[A]&&(G=null),this[E].length>1&&!this[A]&&(this.encoding?this[E]=[this[E].join("")]:this[E]=[Buffer.concat(this[E],this[m])]);let J=this[u](G||null,this[E][0]);return this[o](),J}[u](G,J){return G===J.length||G===null?this[x]():(this[E][0]=J.slice(G),J=J.slice(0,G),this[m]-=G),this.emit("data",J),!this[E].length&&!this[a]&&this.emit("drain"),J}end(G,J,j){return typeof G=="function"&&(j=G,G=null),typeof J=="function"&&(j=J,J="utf8"),G&&this.write(G,J),j&&this.once("end",j),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[o](),this}[S](){this[R]||(this[g]=!1,this[_]=!0,this.emit("resume"),this[E].length?this[d]():this[a]?this[o]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[R]}get flowing(){return this[_]}get paused(){return this[g]}[w](G){this[A]?this[m]+=1:this[m]+=G.length,this[E].push(G)}[x](){return this[E].length&&(this[A]?this[m]-=1:this[m]-=this[E][0].length),this[E].shift()}[d](G){do;while(this[p](this[x]()));!G&&!this[E].length&&!this[a]&&this.emit("drain")}[p](G){return G?(this.emit("data",G),this.flowing):!1}pipe(G,J){if(this[R])return;let j=this[s];return J=J||{},G===t.stdout||G===t.stderr?J.end=!1:J.end=J.end!==!1,J.proxyErrors=!!J.proxyErrors,j?J.end&&G.end():(this[v].push(J.proxyErrors?new F(this,G,J):new N(this,G,J)),this[D]?k(()=>this[S]()):this[S]()),G}unpipe(G){let J=this[v].find(j=>j.dest===G);J&&(this[v].splice(this[v].indexOf(J),1),J.unpipe())}addListener(G,J){return this.on(G,J)}on(G,J){let j=super.on(G,J);return G==="data"&&!this[v].length&&!this.flowing?this[S]():G==="readable"&&this[m]!==0?super.emit("readable"):W(G)&&this[s]?(super.emit(G),this.removeAllListeners(G)):G==="error"&&this[c]&&(this[D]?k(()=>J.call(this,this[c])):J.call(this,this[c])),j}get emittedEnd(){return this[s]}[o](){!this[f]&&!this[s]&&!this[R]&&this[E].length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(G,J,...j){if(G!=="error"&&G!=="close"&&G!==R&&this[R])return;if(G==="data")return J?this[D]?k(()=>this[B](J)):this[B](J):!1;if(G==="end")return this[P]();if(G==="close"){if(this[h]=!0,!this[s]&&!this[R])return;let Q=super.emit("close");return this.removeAllListeners("close"),Q}else if(G==="error"){this[c]=J;let Q=super.emit("error",J);return this[o](),Q}else if(G==="resume"){let Q=super.emit("resume");return this[o](),Q}else if(G==="finish"||G==="prefinish"){let Q=super.emit(G);return this.removeAllListeners(G),Q}let z=super.emit(G,J,...j);return this[o](),z}[B](G){for(let j of this[v])j.dest.write(G)===!1&&this.pause();let J=super.emit("data",G);return this[o](),J}[P](){this[s]||(this[s]=!0,this.readable=!1,this[D]?k(()=>this[O]()):this[O]())}[O](){if(this[b]){let J=this[b].end();if(J){for(let j of this[v])j.dest.write(J);super.emit("data",J)}}for(let J of this[v])J.end();let G=super.emit("end");return this.removeAllListeners("end"),G}collect(){let G=[];this[A]||(G.dataLength=0);let J=this.promise();return this.on("data",j=>{G.push(j),this[A]||(G.dataLength+=j.length)}),J.then(()=>G)}concat(){return this[A]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(G=>this[A]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?G.join(""):Buffer.concat(G,G.dataLength))}promise(){return new Promise((G,J)=>{this.on(R,()=>J(new Error("stream destroyed"))),this.on("error",j=>J(j)),this.on("end",()=>G())})}[L](){return{next:()=>{let G=this.read();if(G!==null)return Promise.resolve({done:!1,value:G});if(this[a])return Promise.resolve({done:!0});let J=null,j=null,z=Y=>{this.removeListener("data",Q),this.removeListener("end",le),j(Y)},Q=Y=>{this.removeListener("error",z),this.removeListener("end",le),this.pause(),J({value:Y,done:!!this[a]})},le=()=>{this.removeListener("error",z),this.removeListener("data",Q),J({done:!0})},ue=()=>z(new Error("stream destroyed"));return new Promise((Y,ne)=>{j=ne,J=Y,this.once(R,ue),this.once("error",z),this.once("end",le),this.once("data",Q)})}}}[U](){return{next:()=>{let G=this.read();return{value:G,done:G===null}}}}destroy(G){return this[R]?(G?this.emit("error",G):this.emit(R),this):(this[R]=!0,this[E].length=0,this[m]=0,typeof this.close=="function"&&!this[h]&&this.close(),G?this.emit("error",G):this.emit(R),this)}static isStream(G){return!!G&&(G instanceof yf||G instanceof i||G instanceof n&&(typeof G.pipe=="function"||typeof G.write=="function"&&typeof G.end=="function"))}}}),Qb=te((e,r)=>{Z();var t=he("zlib").constants||{ZLIB_VERNUM:4736};r.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},t))}),gf=te((e,r)=>{"use strict";Z();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=he("events"),i=he("stream"),l=he("string_decoder").StringDecoder,a=Symbol("EOF"),o=Symbol("maybeEmitEnd"),s=Symbol("emittedEnd"),f=Symbol("emittingEnd"),c=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),w=Symbol("objectMode"),x=Symbol("destroyed"),A=Symbol("emitData"),R=Symbol("emitEnd"),B=Symbol("emitEnd2"),P=Symbol("async"),O=N=>Promise.resolve().then(N),D=global._MP_NO_ITERATOR_SYMBOLS_!=="1",k=D&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),M=D&&Symbol.iterator||Symbol("iterator not implemented"),L=N=>N==="end"||N==="finish"||N==="prefinish",U=N=>N instanceof ArrayBuffer||typeof N=="object"&&N.constructor&&N.constructor.name==="ArrayBuffer"&&N.byteLength>=0,W=N=>!Buffer.isBuffer(N)&&ArrayBuffer.isView(N),se=class{constructor(N,F,V){this.src=N,this.dest=F,this.opts=V,this.ondrain=()=>N[S](),F.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},I=class extends se{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(N,F,V){super(N,F,V),this.proxyErrors=G=>F.emit("error",G),N.on("error",this.proxyErrors)}};r.exports=class bf extends i{constructor(F){super(),this[_]=!1,this[g]=!1,this.pipes=[],this.buffer=[],this[w]=F&&F.objectMode||!1,this[w]?this[y]=null:this[y]=F&&F.encoding||null,this[y]==="buffer"&&(this[y]=null),this[P]=F&&!!F.async||!1,this[b]=this[y]?new l(this[y]):null,this[a]=!1,this[s]=!1,this[f]=!1,this[h]=!1,this[c]=null,this.writable=!0,this.readable=!0,this[E]=0,this[x]=!1}get bufferLength(){return this[E]}get encoding(){return this[y]}set encoding(F){if(this[w])throw new Error("cannot set encoding in objectMode");if(this[y]&&F!==this[y]&&(this[b]&&this[b].lastNeed||this[E]))throw new Error("cannot change encoding");this[y]!==F&&(this[b]=F?new l(F):null,this.buffer.length&&(this.buffer=this.buffer.map(V=>this[b].write(V)))),this[y]=F}setEncoding(F){this.encoding=F}get objectMode(){return this[w]}set objectMode(F){this[w]=this[w]||!!F}get async(){return this[P]}set async(F){this[P]=this[P]||!!F}write(F,V,G){if(this[a])throw new Error("write after end");if(this[x])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof V=="function"&&(G=V,V="utf8"),V||(V="utf8");let J=this[P]?O:j=>j();return!this[w]&&!Buffer.isBuffer(F)&&(W(F)?F=Buffer.from(F.buffer,F.byteOffset,F.byteLength):U(F)?F=Buffer.from(F):typeof F!="string"&&(this.objectMode=!0)),this[w]?(this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",F):this[v](F),this[E]!==0&&this.emit("readable"),G&&J(G),this.flowing):F.length?(typeof F=="string"&&!(V===this[y]&&!this[b].lastNeed)&&(F=Buffer.from(F,V)),Buffer.isBuffer(F)&&this[y]&&(F=this[b].write(F)),this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",F):this[v](F),this[E]!==0&&this.emit("readable"),G&&J(G),this.flowing):(this[E]!==0&&this.emit("readable"),G&&J(G),this.flowing)}read(F){if(this[x])return null;if(this[E]===0||F===0||F>this[E])return this[o](),null;this[w]&&(F=null),this.buffer.length>1&&!this[w]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[E])]);let V=this[u](F||null,this.buffer[0]);return this[o](),V}[u](F,V){return F===V.length||F===null?this[m]():(this.buffer[0]=V.slice(F),V=V.slice(0,F),this[E]-=F),this.emit("data",V),!this.buffer.length&&!this[a]&&this.emit("drain"),V}end(F,V,G){return typeof F=="function"&&(G=F,F=null),typeof V=="function"&&(G=V,V="utf8"),F&&this.write(F,V),G&&this.once("end",G),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[o](),this}[S](){this[x]||(this[g]=!1,this[_]=!0,this.emit("resume"),this.buffer.length?this[d]():this[a]?this[o]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[x]}get flowing(){return this[_]}get paused(){return this[g]}[v](F){this[w]?this[E]+=1:this[E]+=F.length,this.buffer.push(F)}[m](){return this.buffer.length&&(this[w]?this[E]-=1:this[E]-=this.buffer[0].length),this.buffer.shift()}[d](F){do;while(this[p](this[m]()));!F&&!this.buffer.length&&!this[a]&&this.emit("drain")}[p](F){return F?(this.emit("data",F),this.flowing):!1}pipe(F,V){if(this[x])return;let G=this[s];return V=V||{},F===t.stdout||F===t.stderr?V.end=!1:V.end=V.end!==!1,V.proxyErrors=!!V.proxyErrors,G?V.end&&F.end():(this.pipes.push(V.proxyErrors?new I(this,F,V):new se(this,F,V)),this[P]?O(()=>this[S]()):this[S]()),F}unpipe(F){let V=this.pipes.find(G=>G.dest===F);V&&(this.pipes.splice(this.pipes.indexOf(V),1),V.unpipe())}addListener(F,V){return this.on(F,V)}on(F,V){let G=super.on(F,V);return F==="data"&&!this.pipes.length&&!this.flowing?this[S]():F==="readable"&&this[E]!==0?super.emit("readable"):L(F)&&this[s]?(super.emit(F),this.removeAllListeners(F)):F==="error"&&this[c]&&(this[P]?O(()=>V.call(this,this[c])):V.call(this,this[c])),G}get emittedEnd(){return this[s]}[o](){!this[f]&&!this[s]&&!this[x]&&this.buffer.length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(F,V,...G){if(F!=="error"&&F!=="close"&&F!==x&&this[x])return;if(F==="data")return V?this[P]?O(()=>this[A](V)):this[A](V):!1;if(F==="end")return this[R]();if(F==="close"){if(this[h]=!0,!this[s]&&!this[x])return;let j=super.emit("close");return this.removeAllListeners("close"),j}else if(F==="error"){this[c]=V;let j=super.emit("error",V);return this[o](),j}else if(F==="resume"){let j=super.emit("resume");return this[o](),j}else if(F==="finish"||F==="prefinish"){let j=super.emit(F);return this.removeAllListeners(F),j}let J=super.emit(F,V,...G);return this[o](),J}[A](F){for(let G of this.pipes)G.dest.write(F)===!1&&this.pause();let V=super.emit("data",F);return this[o](),V}[R](){this[s]||(this[s]=!0,this.readable=!1,this[P]?O(()=>this[B]()):this[B]())}[B](){if(this[b]){let V=this[b].end();if(V){for(let G of this.pipes)G.dest.write(V);super.emit("data",V)}}for(let V of this.pipes)V.end();let F=super.emit("end");return this.removeAllListeners("end"),F}collect(){let F=[];this[w]||(F.dataLength=0);let V=this.promise();return this.on("data",G=>{F.push(G),this[w]||(F.dataLength+=G.length)}),V.then(()=>F)}concat(){return this[w]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(F=>this[w]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?F.join(""):Buffer.concat(F,F.dataLength))}promise(){return new Promise((F,V)=>{this.on(x,()=>V(new Error("stream destroyed"))),this.on("error",G=>V(G)),this.on("end",()=>F())})}[k](){return{next:()=>{let F=this.read();if(F!==null)return Promise.resolve({done:!1,value:F});if(this[a])return Promise.resolve({done:!0});let V=null,G=null,J=le=>{this.removeListener("data",j),this.removeListener("end",z),G(le)},j=le=>{this.removeListener("error",J),this.removeListener("end",z),this.pause(),V({value:le,done:!!this[a]})},z=()=>{this.removeListener("error",J),this.removeListener("data",j),V({done:!0})},Q=()=>J(new Error("stream destroyed"));return new Promise((le,ue)=>{G=ue,V=le,this.once(x,Q),this.once("error",J),this.once("end",z),this.once("data",j)})}}}[M](){return{next:()=>{let F=this.read();return{value:F,done:F===null}}}}destroy(F){return this[x]?(F?this.emit("error",F):this.emit(x),this):(this[x]=!0,this.buffer.length=0,this[E]=0,typeof this.close=="function"&&!this[h]&&this.close(),F?this.emit("error",F):this.emit(x),this)}static isStream(F){return!!F&&(F instanceof bf||F instanceof i||F instanceof n&&(typeof F.pipe=="function"||typeof F.write=="function"&&typeof F.end=="function"))}}}),vf=te(e=>{"use strict";Z();var r=he("assert"),t=he("buffer").Buffer,n=he("zlib"),i=e.constants=Qb(),l=gf(),a=t.concat,o=Symbol("_superWrite"),s=class extends Error{constructor(L){super("zlib: "+L.message),this.code=L.code,this.errno=L.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+L.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},f=Symbol("opts"),c=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),u=Symbol("fullFlushFlag"),d=Symbol("handle"),p=Symbol("onError"),y=Symbol("sawError"),b=Symbol("level"),_=Symbol("strategy"),g=Symbol("ended"),S=Symbol("_defaultFullFlush"),E=class extends l{constructor(L,U){if(!L||typeof L!="object")throw new TypeError("invalid options for ZlibBase constructor");super(L),this[y]=!1,this[g]=!1,this[f]=L,this[c]=L.flush,this[h]=L.finishFlush;try{this[d]=new n[U](L)}catch(W){throw new s(W)}this[p]=W=>{this[y]||(this[y]=!0,this.close(),this.emit("error",W))},this[d].on("error",W=>this[p](new s(W))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return r(this[d],"zlib binding closed"),this[d].reset()}flush(L){this.ended||(typeof L!="number"&&(L=this[u]),this.write(Object.assign(t.alloc(0),{[c]:L})))}end(L,U,W){return L&&this.write(L,U),this.flush(this[h]),this[g]=!0,super.end(null,null,W)}get ended(){return this[g]}write(L,U,W){if(typeof U=="function"&&(W=U,U="utf8"),typeof L=="string"&&(L=t.from(L,U)),this[y])return;r(this[d],"zlib binding closed");let se=this[d]._handle,I=se.close;se.close=()=>{};let N=this[d].close;this[d].close=()=>{},t.concat=G=>G;let F;try{let G=typeof L[c]=="number"?L[c]:this[c];F=this[d]._processChunk(L,G),t.concat=a}catch(G){t.concat=a,this[p](new s(G))}finally{this[d]&&(this[d]._handle=se,se.close=I,this[d].close=N,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",G=>this[p](new s(G)));let V;if(F)if(Array.isArray(F)&&F.length>0){V=this[o](t.from(F[0]));for(let G=1;G<F.length;G++)V=this[o](F[G])}else V=this[o](t.from(F));return W&&W(),V}[o](L){return super.write(L)}},v=class extends E{constructor(L,U){L=L||{},L.flush=L.flush||i.Z_NO_FLUSH,L.finishFlush=L.finishFlush||i.Z_FINISH,super(L,U),this[u]=i.Z_FULL_FLUSH,this[b]=L.level,this[_]=L.strategy}params(L,U){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[b]!==L||this[_]!==U){this.flush(i.Z_SYNC_FLUSH),r(this[d],"zlib binding closed");let W=this[d].flush;this[d].flush=(se,I)=>{this.flush(se),I()};try{this[d].params(L,U)}finally{this[d].flush=W}this[d]&&(this[b]=L,this[_]=U)}}}},m=class extends v{constructor(L){super(L,"Deflate")}},w=class extends v{constructor(L){super(L,"Inflate")}},x=Symbol("_portable"),A=class extends v{constructor(L){super(L,"Gzip"),this[x]=L&&!!L.portable}[o](L){return this[x]?(this[x]=!1,L[9]=255,super[o](L)):super[o](L)}},R=class extends v{constructor(L){super(L,"Gunzip")}},B=class extends v{constructor(L){super(L,"DeflateRaw")}},P=class extends v{constructor(L){super(L,"InflateRaw")}},O=class extends v{constructor(L){super(L,"Unzip")}},D=class extends E{constructor(L,U){L=L||{},L.flush=L.flush||i.BROTLI_OPERATION_PROCESS,L.finishFlush=L.finishFlush||i.BROTLI_OPERATION_FINISH,super(L,U),this[u]=i.BROTLI_OPERATION_FLUSH}},k=class extends D{constructor(L){super(L,"BrotliCompress")}},M=class extends D{constructor(L){super(L,"BrotliDecompress")}};e.Deflate=m,e.Inflate=w,e.Gzip=A,e.Gunzip=R,e.DeflateRaw=B,e.InflateRaw=P,e.Unzip=O,typeof n.BrotliCompress=="function"?(e.BrotliCompress=k,e.BrotliDecompress=M):e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Qn=te((e,r)=>{Z();var t=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;r.exports=t!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")}),oa=te((e,r)=>{"use strict";Z();var t=sa(),n=Qn(),i=Symbol("slurp");r.exports=class extends t{constructor(l,a,o){switch(super(),this.pause(),this.extended=a,this.globalExtended=o,this.header=l,this.startBlockSize=512*Math.ceil(l.size/512),this.blockRemain=this.startBlockSize,this.remain=l.size,this.type=l.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=n(l.path),this.mode=l.mode,this.mode&&(this.mode=this.mode&4095),this.uid=l.uid,this.gid=l.gid,this.uname=l.uname,this.gname=l.gname,this.size=l.size,this.mtime=l.mtime,this.atime=l.atime,this.ctime=l.ctime,this.linkpath=n(l.linkpath),this.uname=l.uname,this.gname=l.gname,a&&this[i](a),o&&this[i](o,!0)}write(l){let a=l.length;if(a>this.blockRemain)throw new Error("writing more to entry than is appropriate");let o=this.remain,s=this.blockRemain;return this.remain=Math.max(0,o-a),this.blockRemain=Math.max(0,s-a),this.ignore?!0:o>=a?super.write(l):super.write(l.slice(0,o))}[i](l,a){for(let o in l)l[o]!==null&&l[o]!==void 0&&!(a&&o==="path")&&(this[o]=o==="path"||o==="linkpath"?n(l[o]):l[o])}}}),_f=te(e=>{"use strict";Z(),e.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),e.code=new Map(Array.from(e.name).map(r=>[r[1],r[0]]))}),Jb=te((e,r)=>{"use strict";Z();var t=(c,h)=>{if(Number.isSafeInteger(c))c<0?i(c,h):n(c,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},n=(c,h)=>{h[0]=128;for(var u=h.length;u>1;u--)h[u-1]=c&255,c=Math.floor(c/256)},i=(c,h)=>{h[0]=255;var u=!1;c=c*-1;for(var d=h.length;d>1;d--){var p=c&255;c=Math.floor(c/256),u?h[d-1]=s(p):p===0?h[d-1]=0:(u=!0,h[d-1]=f(p))}},l=c=>{let h=c[0],u=h===128?o(c.slice(1,c.length)):h===255?a(c):null;if(u===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(u))throw Error("parsed number outside of javascript safe integer range");return u},a=c=>{for(var h=c.length,u=0,d=!1,p=h-1;p>-1;p--){var y=c[p],b;d?b=s(y):y===0?b=y:(d=!0,b=f(y)),b!==0&&(u-=b*Math.pow(256,h-p-1))}return u},o=c=>{for(var h=c.length,u=0,d=h-1;d>-1;d--){var p=c[d];p!==0&&(u+=p*Math.pow(256,h-d-1))}return u},s=c=>(255^c)&255,f=c=>(255^c)+1&255;r.exports={encode:t,parse:l}}),Jn=te((e,r)=>{"use strict";Z();var t=_f(),n=he("path").posix,i=Jb(),l=Symbol("slurp"),a=Symbol("type"),o=class{constructor(w,x,A,R){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[a]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(w)?this.decode(w,x||0,A,R):w&&this.set(w)}decode(w,x,A,R){if(x||(x=0),!w||!(w.length>=x+512))throw new Error("need 512 bytes for header");if(this.path=f(w,x,100),this.mode=u(w,x+100,8),this.uid=u(w,x+108,8),this.gid=u(w,x+116,8),this.size=u(w,x+124,12),this.mtime=c(w,x+136,12),this.cksum=u(w,x+148,12),this[l](A),this[l](R,!0),this[a]=f(w,x+156,1),this[a]===""&&(this[a]="0"),this[a]==="0"&&this.path.slice(-1)==="/"&&(this[a]="5"),this[a]==="5"&&(this.size=0),this.linkpath=f(w,x+157,100),w.slice(x+257,x+265).toString()==="ustar\x0000")if(this.uname=f(w,x+265,32),this.gname=f(w,x+297,32),this.devmaj=u(w,x+329,8),this.devmin=u(w,x+337,8),w[x+475]!==0){let P=f(w,x+345,155);this.path=P+"/"+this.path}else{let P=f(w,x+345,130);P&&(this.path=P+"/"+this.path),this.atime=c(w,x+476,12),this.ctime=c(w,x+488,12)}let B=8*32;for(let P=x;P<x+148;P++)B+=w[P];for(let P=x+156;P<x+512;P++)B+=w[P];this.cksumValid=B===this.cksum,this.cksum===null&&B===8*32&&(this.nullBlock=!0)}[l](w,x){for(let A in w)w[A]!==null&&w[A]!==void 0&&!(x&&A==="path")&&(this[A]=w[A])}encode(w,x){if(w||(w=this.block=Buffer.alloc(512),x=0),x||(x=0),!(w.length>=x+512))throw new Error("need 512 bytes for header");let A=this.ctime||this.atime?130:155,R=s(this.path||"",A),B=R[0],P=R[1];this.needPax=R[2],this.needPax=m(w,x,100,B)||this.needPax,this.needPax=b(w,x+100,8,this.mode)||this.needPax,this.needPax=b(w,x+108,8,this.uid)||this.needPax,this.needPax=b(w,x+116,8,this.gid)||this.needPax,this.needPax=b(w,x+124,12,this.size)||this.needPax,this.needPax=E(w,x+136,12,this.mtime)||this.needPax,w[x+156]=this[a].charCodeAt(0),this.needPax=m(w,x+157,100,this.linkpath)||this.needPax,w.write("ustar\x0000",x+257,8),this.needPax=m(w,x+265,32,this.uname)||this.needPax,this.needPax=m(w,x+297,32,this.gname)||this.needPax,this.needPax=b(w,x+329,8,this.devmaj)||this.needPax,this.needPax=b(w,x+337,8,this.devmin)||this.needPax,this.needPax=m(w,x+345,A,P)||this.needPax,w[x+475]!==0?this.needPax=m(w,x+345,155,P)||this.needPax:(this.needPax=m(w,x+345,130,P)||this.needPax,this.needPax=E(w,x+476,12,this.atime)||this.needPax,this.needPax=E(w,x+488,12,this.ctime)||this.needPax);let O=8*32;for(let D=x;D<x+148;D++)O+=w[D];for(let D=x+156;D<x+512;D++)O+=w[D];return this.cksum=O,b(w,x+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(w){for(let x in w)w[x]!==null&&w[x]!==void 0&&(this[x]=w[x])}get type(){return t.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(w){t.code.has(w)?this[a]=t.code.get(w):this[a]=w}},s=(w,x)=>{let A=w,R="",B,P=n.parse(w).root||".";if(Buffer.byteLength(A)<100)B=[A,R,!1];else{R=n.dirname(A),A=n.basename(A);do Buffer.byteLength(A)<=100&&Buffer.byteLength(R)<=x?B=[A,R,!1]:Buffer.byteLength(A)>100&&Buffer.byteLength(R)<=x?B=[A.slice(0,100-1),R,!0]:(A=n.join(n.basename(R),A),R=n.dirname(R));while(R!==P&&!B);B||(B=[w.slice(0,100-1),"",!0])}return B},f=(w,x,A)=>w.slice(x,x+A).toString("utf8").replace(/\0.*/,""),c=(w,x,A)=>h(u(w,x,A)),h=w=>w===null?null:new Date(w*1e3),u=(w,x,A)=>w[x]&128?i.parse(w.slice(x,x+A)):p(w,x,A),d=w=>isNaN(w)?null:w,p=(w,x,A)=>d(parseInt(w.slice(x,x+A).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},b=(w,x,A,R)=>R===null?!1:R>y[A]||R<0?(i.encode(R,w.slice(x,x+A)),!0):(_(w,x,A,R),!1),_=(w,x,A,R)=>w.write(g(R,A),x,A,"ascii"),g=(w,x)=>S(Math.floor(w).toString(8),x),S=(w,x)=>(w.length===x-1?w:new Array(x-w.length-1).join("0")+w+" ")+"\0",E=(w,x,A,R)=>R===null?!1:b(w,x,A,R.getTime()/1e3),v=new Array(156).join("\0"),m=(w,x,A,R)=>R===null?!1:(w.write(R+v,x,A,"utf8"),R.length!==Buffer.byteLength(R)||R.length>A);r.exports=o}),aa=te((e,r)=>{"use strict";Z();var t=Jn(),n=he("path"),i=class{constructor(s,f){this.atime=s.atime||null,this.charset=s.charset||null,this.comment=s.comment||null,this.ctime=s.ctime||null,this.gid=s.gid||null,this.gname=s.gname||null,this.linkpath=s.linkpath||null,this.mtime=s.mtime||null,this.path=s.path||null,this.size=s.size||null,this.uid=s.uid||null,this.uname=s.uname||null,this.dev=s.dev||null,this.ino=s.ino||null,this.nlink=s.nlink||null,this.global=f||!1}encode(){let s=this.encodeBody();if(s==="")return null;let f=Buffer.byteLength(s),c=512*Math.ceil(1+f/512),h=Buffer.allocUnsafe(c);for(let u=0;u<512;u++)h[u]=0;new t({path:("PaxHeader/"+n.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:f,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(s,512,f,"utf8");for(let u=f+512;u<h.length;u++)h[u]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(s){if(this[s]===null||this[s]===void 0)return"";let f=this[s]instanceof Date?this[s].getTime()/1e3:this[s],c=" "+(s==="dev"||s==="ino"||s==="nlink"?"SCHILY.":"")+s+"="+f+`
|
|
123
|
+
`,h=Buffer.byteLength(c),u=Math.floor(Math.log(h)/Math.log(10))+1;return h+u>=Math.pow(10,u)&&(u+=1),u+h+c}};i.parse=(s,f,c)=>new i(l(a(s),f),c);var l=(s,f)=>f?Object.keys(s).reduce((c,h)=>(c[h]=s[h],c),f):s,a=s=>s.replace(/\n$/,"").split(`
|
|
124
|
+
`).reduce(o,Object.create(null)),o=(s,f)=>{let c=parseInt(f,10);if(c!==Buffer.byteLength(f)+1)return s;f=f.slice((c+" ").length);let h=f.split("="),u=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!u)return s;let d=h.join("=");return s[u]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(u)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,s};r.exports=i}),ei=te((e,r)=>{Z(),r.exports=t=>{let n=t.length-1,i=-1;for(;n>-1&&t.charAt(n)==="/";)i=n,n--;return i===-1?t:t.slice(0,i)}}),ua=te((e,r)=>{"use strict";Z(),r.exports=t=>class extends t{warn(n,i,l={}){this.file&&(l.file=this.file),this.cwd&&(l.cwd=this.cwd),l.code=i instanceof Error&&i.code||n,l.tarCode=n,!this.strict&&l.recoverable!==!1?(i instanceof Error&&(l=Object.assign(i,l),i=i.message),this.emit("warn",l.tarCode,i,l)):i instanceof Error?this.emit("error",Object.assign(i,l)):this.emit("error",Object.assign(new Error(`${n}: ${i}`),l))}}}),wf=te((e,r)=>{"use strict";Z();var t=["|","<",">","?",":"],n=t.map(a=>String.fromCharCode(61440+a.charCodeAt(0))),i=new Map(t.map((a,o)=>[a,n[o]])),l=new Map(n.map((a,o)=>[a,t[o]]));r.exports={encode:a=>t.reduce((o,s)=>o.split(s).join(i.get(s)),a),decode:a=>n.reduce((o,s)=>o.split(s).join(l.get(s)),a)}}),Ef=te((e,r)=>{Z();var{isAbsolute:t,parse:n}=he("path").win32;r.exports=i=>{let l="",a=n(i);for(;t(i)||a.root;){let o=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":a.root;i=i.slice(o.length),l+=o,a=n(i)}return[l,i]}}),ev=te((e,r)=>{"use strict";Z(),r.exports=(t,n,i)=>(t&=4095,i&&(t=(t|384)&-19),n&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)}),Sf=te((e,r)=>{"use strict";Z();var t=sa(),n=aa(),i=Jn(),l=he("fs"),a=he("path"),o=Qn(),s=ei(),f=(N,F)=>F?(N=o(N).replace(/^\.(\/|$)/,""),s(F)+"/"+N):o(N),c=16*1024*1024,h=Symbol("process"),u=Symbol("file"),d=Symbol("directory"),p=Symbol("symlink"),y=Symbol("hardlink"),b=Symbol("header"),_=Symbol("read"),g=Symbol("lstat"),S=Symbol("onlstat"),E=Symbol("onread"),v=Symbol("onreadlink"),m=Symbol("openfile"),w=Symbol("onopenfile"),x=Symbol("close"),A=Symbol("mode"),R=Symbol("awaitDrain"),B=Symbol("ondrain"),P=Symbol("prefix"),O=Symbol("hadError"),D=ua(),k=wf(),M=Ef(),L=ev(),U=D(class extends t{constructor(N,F){if(F=F||{},super(F),typeof N!="string")throw new TypeError("path is required");this.path=o(N),this.portable=!!F.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=F.maxReadSize||c,this.linkCache=F.linkCache||new Map,this.statCache=F.statCache||new Map,this.preservePaths=!!F.preservePaths,this.cwd=o(F.cwd||process.cwd()),this.strict=!!F.strict,this.noPax=!!F.noPax,this.noMtime=!!F.noMtime,this.mtime=F.mtime||null,this.prefix=F.prefix?o(F.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof F.onwarn=="function"&&this.on("warn",F.onwarn);let V=!1;if(!this.preservePaths){let[G,J]=M(this.path);G&&(this.path=J,V=G)}this.win32=!!F.win32||process.platform==="win32",this.win32&&(this.path=k.decode(this.path.replace(/\\/g,"/")),N=N.replace(/\\/g,"/")),this.absolute=o(F.absolute||a.resolve(this.cwd,N)),this.path===""&&(this.path="./"),V&&this.warn("TAR_ENTRY_INFO",`stripping ${V} from absolute path`,{entry:this,path:V+this.path}),this.statCache.has(this.absolute)?this[S](this.statCache.get(this.absolute)):this[g]()}emit(N,...F){return N==="error"&&(this[O]=!0),super.emit(N,...F)}[g](){l.lstat(this.absolute,(N,F)=>{if(N)return this.emit("error",N);this[S](F)})}[S](N){this.statCache.set(this.absolute,N),this.stat=N,N.isFile()||(N.size=0),this.type=I(N),this.emit("stat",N),this[h]()}[h](){switch(this.type){case"File":return this[u]();case"Directory":return this[d]();case"SymbolicLink":return this[p]();default:return this.end()}}[A](N){return L(N,this.type==="Directory",this.portable)}[P](N){return f(N,this.prefix)}[b](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new i({path:this[P](this.path),linkpath:this.type==="Link"?this[P](this.linkpath):this.linkpath,mode:this[A](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new n({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[P](this.path),linkpath:this.type==="Link"?this[P](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[b](),this.end()}[p](){l.readlink(this.absolute,(N,F)=>{if(N)return this.emit("error",N);this[v](F)})}[v](N){this.linkpath=o(N),this[b](),this.end()}[y](N){this.type="Link",this.linkpath=o(a.relative(this.cwd,N)),this.stat.size=0,this[b](),this.end()}[u](){if(this.stat.nlink>1){let N=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(N)){let F=this.linkCache.get(N);if(F.indexOf(this.cwd)===0)return this[y](F)}this.linkCache.set(N,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){l.open(this.absolute,"r",(N,F)=>{if(N)return this.emit("error",N);this[w](F)})}[w](N){if(this.fd=N,this[O])return this[x]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let F=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(F),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[_]()}[_](){let{fd:N,buf:F,offset:V,length:G,pos:J}=this;l.read(N,F,V,G,J,(j,z)=>{if(j)return this[x](()=>this.emit("error",j));this[E](z)})}[x](N){l.close(this.fd,N)}[E](N){if(N<=0&&this.remain>0){let V=new Error("encountered unexpected EOF");return V.path=this.absolute,V.syscall="read",V.code="EOF",this[x](()=>this.emit("error",V))}if(N>this.remain){let V=new Error("did not encounter expected EOF");return V.path=this.absolute,V.syscall="read",V.code="EOF",this[x](()=>this.emit("error",V))}if(N===this.remain)for(let V=N;V<this.length&&N<this.blockRemain;V++)this.buf[V+this.offset]=0,N++,this.remain++;let F=this.offset===0&&N===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+N);this.write(F)?this[B]():this[R](()=>this[B]())}[R](N){this.once("drain",N)}write(N){if(this.blockRemain<N.length){let F=new Error("writing more data than expected");return F.path=this.absolute,this.emit("error",F)}return this.remain-=N.length,this.blockRemain-=N.length,this.pos+=N.length,this.offset+=N.length,super.write(N)}[B](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[x](N=>N?this.emit("error",N):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[_]()}}),W=class extends U{[g](){this[S](l.lstatSync(this.absolute))}[p](){this[v](l.readlinkSync(this.absolute))}[m](){this[w](l.openSync(this.absolute,"r"))}[_](){let N=!0;try{let{fd:F,buf:V,offset:G,length:J,pos:j}=this,z=l.readSync(F,V,G,J,j);this[E](z),N=!1}finally{if(N)try{this[x](()=>{})}catch{}}}[R](N){N()}[x](N){l.closeSync(this.fd),N()}},se=D(class extends t{constructor(N,F){F=F||{},super(F),this.preservePaths=!!F.preservePaths,this.portable=!!F.portable,this.strict=!!F.strict,this.noPax=!!F.noPax,this.noMtime=!!F.noMtime,this.readEntry=N,this.type=N.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=F.prefix||null,this.path=o(N.path),this.mode=this[A](N.mode),this.uid=this.portable?null:N.uid,this.gid=this.portable?null:N.gid,this.uname=this.portable?null:N.uname,this.gname=this.portable?null:N.gname,this.size=N.size,this.mtime=this.noMtime?null:F.mtime||N.mtime,this.atime=this.portable?null:N.atime,this.ctime=this.portable?null:N.ctime,this.linkpath=o(N.linkpath),typeof F.onwarn=="function"&&this.on("warn",F.onwarn);let V=!1;if(!this.preservePaths){let[G,J]=M(this.path);G&&(this.path=J,V=G)}this.remain=N.size,this.blockRemain=N.startBlockSize,this.header=new i({path:this[P](this.path),linkpath:this.type==="Link"?this[P](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),V&&this.warn("TAR_ENTRY_INFO",`stripping ${V} from absolute path`,{entry:this,path:V+this.path}),this.header.encode()&&!this.noPax&&super.write(new n({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[P](this.path),linkpath:this.type==="Link"?this[P](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),N.pipe(this)}[P](N){return f(N,this.prefix)}[A](N){return L(N,this.type==="Directory",this.portable)}write(N){let F=N.length;if(F>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=F,super.write(N)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});U.Sync=W,U.Tar=se;var I=N=>N.isFile()?"File":N.isDirectory()?"Directory":N.isSymbolicLink()?"SymbolicLink":"Unsupported";r.exports=U}),tv=te((e,r)=>{"use strict";Z(),r.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}}),xf=te((e,r)=>{"use strict";Z(),r.exports=t,t.Node=a,t.create=t;function t(o){var s=this;if(s instanceof t||(s=new t),s.tail=null,s.head=null,s.length=0,o&&typeof o.forEach=="function")o.forEach(function(h){s.push(h)});else if(arguments.length>0)for(var f=0,c=arguments.length;f<c;f++)s.push(arguments[f]);return s}t.prototype.removeNode=function(o){if(o.list!==this)throw new Error("removing node which does not belong to this list");var s=o.next,f=o.prev;return s&&(s.prev=f),f&&(f.next=s),o===this.head&&(this.head=s),o===this.tail&&(this.tail=f),o.list.length--,o.next=null,o.prev=null,o.list=null,s},t.prototype.unshiftNode=function(o){if(o!==this.head){o.list&&o.list.removeNode(o);var s=this.head;o.list=this,o.next=s,s&&(s.prev=o),this.head=o,this.tail||(this.tail=o),this.length++}},t.prototype.pushNode=function(o){if(o!==this.tail){o.list&&o.list.removeNode(o);var s=this.tail;o.list=this,o.prev=s,s&&(s.next=o),this.tail=o,this.head||(this.head=o),this.length++}},t.prototype.push=function(){for(var o=0,s=arguments.length;o<s;o++)i(this,arguments[o]);return this.length},t.prototype.unshift=function(){for(var o=0,s=arguments.length;o<s;o++)l(this,arguments[o]);return this.length},t.prototype.pop=function(){if(this.tail){var o=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,o}},t.prototype.shift=function(){if(this.head){var o=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,o}},t.prototype.forEach=function(o,s){s=s||this;for(var f=this.head,c=0;f!==null;c++)o.call(s,f.value,c,this),f=f.next},t.prototype.forEachReverse=function(o,s){s=s||this;for(var f=this.tail,c=this.length-1;f!==null;c--)o.call(s,f.value,c,this),f=f.prev},t.prototype.get=function(o){for(var s=0,f=this.head;f!==null&&s<o;s++)f=f.next;if(s===o&&f!==null)return f.value},t.prototype.getReverse=function(o){for(var s=0,f=this.tail;f!==null&&s<o;s++)f=f.prev;if(s===o&&f!==null)return f.value},t.prototype.map=function(o,s){s=s||this;for(var f=new t,c=this.head;c!==null;)f.push(o.call(s,c.value,this)),c=c.next;return f},t.prototype.mapReverse=function(o,s){s=s||this;for(var f=new t,c=this.tail;c!==null;)f.push(o.call(s,c.value,this)),c=c.prev;return f},t.prototype.reduce=function(o,s){var f,c=this.head;if(arguments.length>1)f=s;else if(this.head)c=this.head.next,f=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;c!==null;h++)f=o(f,c.value,h),c=c.next;return f},t.prototype.reduceReverse=function(o,s){var f,c=this.tail;if(arguments.length>1)f=s;else if(this.tail)c=this.tail.prev,f=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;c!==null;h--)f=o(f,c.value,h),c=c.prev;return f},t.prototype.toArray=function(){for(var o=new Array(this.length),s=0,f=this.head;f!==null;s++)o[s]=f.value,f=f.next;return o},t.prototype.toArrayReverse=function(){for(var o=new Array(this.length),s=0,f=this.tail;f!==null;s++)o[s]=f.value,f=f.prev;return o},t.prototype.slice=function(o,s){s=s||this.length,s<0&&(s+=this.length),o=o||0,o<0&&(o+=this.length);var f=new t;if(s<o||s<0)return f;o<0&&(o=0),s>this.length&&(s=this.length);for(var c=0,h=this.head;h!==null&&c<o;c++)h=h.next;for(;h!==null&&c<s;c++,h=h.next)f.push(h.value);return f},t.prototype.sliceReverse=function(o,s){s=s||this.length,s<0&&(s+=this.length),o=o||0,o<0&&(o+=this.length);var f=new t;if(s<o||s<0)return f;o<0&&(o=0),s>this.length&&(s=this.length);for(var c=this.length,h=this.tail;h!==null&&c>s;c--)h=h.prev;for(;h!==null&&c>o;c--,h=h.prev)f.push(h.value);return f},t.prototype.splice=function(o,s,...f){o>this.length&&(o=this.length-1),o<0&&(o=this.length+o);for(var c=0,h=this.head;h!==null&&c<o;c++)h=h.next;for(var u=[],c=0;h&&c<s;c++)u.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var c=0;c<f.length;c++)h=n(this,h,f[c]);return u},t.prototype.reverse=function(){for(var o=this.head,s=this.tail,f=o;f!==null;f=f.prev){var c=f.prev;f.prev=f.next,f.next=c}return this.head=s,this.tail=o,this};function n(o,s,f){var c=s===o.head?new a(f,null,s,o):new a(f,s,s.next,o);return c.next===null&&(o.tail=c),c.prev===null&&(o.head=c),o.length++,c}function i(o,s){o.tail=new a(s,o.tail,null,o),o.head||(o.head=o.tail),o.length++}function l(o,s){o.head=new a(s,null,o.head,o),o.tail||(o.tail=o.head),o.length++}function a(o,s,f,c){if(!(this instanceof a))return new a(o,s,f,c);this.list=c,this.value=o,s?(s.next=this,this.prev=s):this.prev=null,f?(f.prev=this,this.next=f):this.next=null}try{tv()(t)}catch{}}),la=te((e,r)=>{"use strict";Z();var t=class{constructor(I,N){this.path=I||"./",this.absolute=N,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},n=sa(),i=vf(),l=oa(),a=Sf(),o=a.Sync,s=a.Tar,f=xf(),c=Buffer.alloc(1024),h=Symbol("onStat"),u=Symbol("ended"),d=Symbol("queue"),p=Symbol("current"),y=Symbol("process"),b=Symbol("processing"),_=Symbol("processJob"),g=Symbol("jobs"),S=Symbol("jobDone"),E=Symbol("addFSEntry"),v=Symbol("addTarEntry"),m=Symbol("stat"),w=Symbol("readdir"),x=Symbol("onreaddir"),A=Symbol("pipe"),R=Symbol("entry"),B=Symbol("entryOpt"),P=Symbol("writeEntryClass"),O=Symbol("write"),D=Symbol("ondrain"),k=he("fs"),M=he("path"),L=ua(),U=Qn(),W=L(class extends n{constructor(I){super(I),I=I||Object.create(null),this.opt=I,this.file=I.file||"",this.cwd=I.cwd||process.cwd(),this.maxReadSize=I.maxReadSize,this.preservePaths=!!I.preservePaths,this.strict=!!I.strict,this.noPax=!!I.noPax,this.prefix=U(I.prefix||""),this.linkCache=I.linkCache||new Map,this.statCache=I.statCache||new Map,this.readdirCache=I.readdirCache||new Map,this[P]=a,typeof I.onwarn=="function"&&this.on("warn",I.onwarn),this.portable=!!I.portable,this.zip=null,I.gzip?(typeof I.gzip!="object"&&(I.gzip={}),this.portable&&(I.gzip.portable=!0),this.zip=new i.Gzip(I.gzip),this.zip.on("data",N=>super.write(N)),this.zip.on("end",N=>super.end()),this.zip.on("drain",N=>this[D]()),this.on("resume",N=>this.zip.resume())):this.on("drain",this[D]),this.noDirRecurse=!!I.noDirRecurse,this.follow=!!I.follow,this.noMtime=!!I.noMtime,this.mtime=I.mtime||null,this.filter=typeof I.filter=="function"?I.filter:N=>!0,this[d]=new f,this[g]=0,this.jobs=+I.jobs||4,this[b]=!1,this[u]=!1}[O](I){return super.write(I)}add(I){return this.write(I),this}end(I){return I&&this.write(I),this[u]=!0,this[y](),this}write(I){if(this[u])throw new Error("write after end");return I instanceof l?this[v](I):this[E](I),this.flowing}[v](I){let N=U(M.resolve(this.cwd,I.path));if(!this.filter(I.path,I))I.resume();else{let F=new t(I.path,N,!1);F.entry=new s(I,this[B](F)),F.entry.on("end",V=>this[S](F)),this[g]+=1,this[d].push(F)}this[y]()}[E](I){let N=U(M.resolve(this.cwd,I));this[d].push(new t(I,N)),this[y]()}[m](I){I.pending=!0,this[g]+=1;let N=this.follow?"stat":"lstat";k[N](I.absolute,(F,V)=>{I.pending=!1,this[g]-=1,F?this.emit("error",F):this[h](I,V)})}[h](I,N){this.statCache.set(I.absolute,N),I.stat=N,this.filter(I.path,N)||(I.ignore=!0),this[y]()}[w](I){I.pending=!0,this[g]+=1,k.readdir(I.absolute,(N,F)=>{if(I.pending=!1,this[g]-=1,N)return this.emit("error",N);this[x](I,F)})}[x](I,N){this.readdirCache.set(I.absolute,N),I.readdir=N,this[y]()}[y](){if(!this[b]){this[b]=!0;for(let I=this[d].head;I!==null&&this[g]<this.jobs;I=I.next)if(this[_](I.value),I.value.ignore){let N=I.next;this[d].removeNode(I),I.next=N}this[b]=!1,this[u]&&!this[d].length&&this[g]===0&&(this.zip?this.zip.end(c):(super.write(c),super.end()))}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[S](I){this[d].shift(),this[g]-=1,this[y]()}[_](I){if(!I.pending){if(I.entry){I===this[p]&&!I.piped&&this[A](I);return}if(I.stat||(this.statCache.has(I.absolute)?this[h](I,this.statCache.get(I.absolute)):this[m](I)),!!I.stat&&!I.ignore&&!(!this.noDirRecurse&&I.stat.isDirectory()&&!I.readdir&&(this.readdirCache.has(I.absolute)?this[x](I,this.readdirCache.get(I.absolute)):this[w](I),!I.readdir))){if(I.entry=this[R](I),!I.entry){I.ignore=!0;return}I===this[p]&&!I.piped&&this[A](I)}}}[B](I){return{onwarn:(N,F,V)=>this.warn(N,F,V),noPax:this.noPax,cwd:this.cwd,absolute:I.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[R](I){this[g]+=1;try{return new this[P](I.path,this[B](I)).on("end",()=>this[S](I)).on("error",N=>this.emit("error",N))}catch(N){this.emit("error",N)}}[D](){this[p]&&this[p].entry&&this[p].entry.resume()}[A](I){I.piped=!0,I.readdir&&I.readdir.forEach(V=>{let G=I.path,J=G==="./"?"":G.replace(/\/*$/,"/");this[E](J+V)});let N=I.entry,F=this.zip;F?N.on("data",V=>{F.write(V)||N.pause()}):N.on("data",V=>{super.write(V)||N.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),se=class extends W{constructor(I){super(I),this[P]=o}pause(){}resume(){}[m](I){let N=this.follow?"statSync":"lstatSync";this[h](I,k[N](I.absolute))}[w](I,N){this[x](I,k.readdirSync(I.absolute))}[A](I){let N=I.entry,F=this.zip;I.readdir&&I.readdir.forEach(V=>{let G=I.path,J=G==="./"?"":G.replace(/\/*$/,"/");this[E](J+V)}),F?N.on("data",V=>{F.write(V)}):N.on("data",V=>{super[O](V)})}};W.Sync=se,r.exports=W}),ti=te(e=>{"use strict";Z();var r=gf(),t=he("events").EventEmitter,n=he("fs"),i=n.writev;if(!i){let I=process.binding("fs"),N=I.FSReqWrap||I.FSReqCallback;i=(F,V,G,J)=>{let j=(Q,le)=>J(Q,le,V),z=new N;z.oncomplete=j,I.writeBuffers(F,V,G,z)}}var l=Symbol("_autoClose"),a=Symbol("_close"),o=Symbol("_ended"),s=Symbol("_fd"),f=Symbol("_finished"),c=Symbol("_flags"),h=Symbol("_flush"),u=Symbol("_handleChunk"),d=Symbol("_makeBuf"),p=Symbol("_mode"),y=Symbol("_needDrain"),b=Symbol("_onerror"),_=Symbol("_onopen"),g=Symbol("_onread"),S=Symbol("_onwrite"),E=Symbol("_open"),v=Symbol("_path"),m=Symbol("_pos"),w=Symbol("_queue"),x=Symbol("_read"),A=Symbol("_readSize"),R=Symbol("_reading"),B=Symbol("_remain"),P=Symbol("_size"),O=Symbol("_write"),D=Symbol("_writing"),k=Symbol("_defaultFlag"),M=Symbol("_errored"),L=class extends r{constructor(I,N){if(N=N||{},super(N),this.readable=!0,this.writable=!1,typeof I!="string")throw new TypeError("path must be a string");this[M]=!1,this[s]=typeof N.fd=="number"?N.fd:null,this[v]=I,this[A]=N.readSize||16*1024*1024,this[R]=!1,this[P]=typeof N.size=="number"?N.size:1/0,this[B]=this[P],this[l]=typeof N.autoClose=="boolean"?N.autoClose:!0,typeof this[s]=="number"?this[x]():this[E]()}get fd(){return this[s]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[E](){n.open(this[v],"r",(I,N)=>this[_](I,N))}[_](I,N){I?this[b](I):(this[s]=N,this.emit("open",N),this[x]())}[d](){return Buffer.allocUnsafe(Math.min(this[A],this[B]))}[x](){if(!this[R]){this[R]=!0;let I=this[d]();if(I.length===0)return process.nextTick(()=>this[g](null,0,I));n.read(this[s],I,0,I.length,null,(N,F,V)=>this[g](N,F,V))}}[g](I,N,F){this[R]=!1,I?this[b](I):this[u](N,F)&&this[x]()}[a](){if(this[l]&&typeof this[s]=="number"){let I=this[s];this[s]=null,n.close(I,N=>N?this.emit("error",N):this.emit("close"))}}[b](I){this[R]=!0,this[a](),this.emit("error",I)}[u](I,N){let F=!1;return this[B]-=I,I>0&&(F=super.write(I<N.length?N.slice(0,I):N)),(I===0||this[B]<=0)&&(F=!1,this[a](),super.end()),F}emit(I,N){switch(I){case"prefinish":case"finish":break;case"drain":typeof this[s]=="number"&&this[x]();break;case"error":return this[M]?void 0:(this[M]=!0,super.emit(I,N));default:return super.emit(I,N)}}},U=class extends L{[E](){let I=!0;try{this[_](null,n.openSync(this[v],"r")),I=!1}finally{I&&this[a]()}}[x](){let I=!0;try{if(!this[R]){this[R]=!0;do{let N=this[d](),F=N.length===0?0:n.readSync(this[s],N,0,N.length,null);if(!this[u](F,N))break}while(!0);this[R]=!1}I=!1}finally{I&&this[a]()}}[a](){if(this[l]&&typeof this[s]=="number"){let I=this[s];this[s]=null,n.closeSync(I),this.emit("close")}}},W=class extends t{constructor(I,N){N=N||{},super(N),this.readable=!1,this.writable=!0,this[M]=!1,this[D]=!1,this[o]=!1,this[y]=!1,this[w]=[],this[v]=I,this[s]=typeof N.fd=="number"?N.fd:null,this[p]=N.mode===void 0?438:N.mode,this[m]=typeof N.start=="number"?N.start:null,this[l]=typeof N.autoClose=="boolean"?N.autoClose:!0;let F=this[m]!==null?"r+":"w";this[k]=N.flags===void 0,this[c]=this[k]?F:N.flags,this[s]===null&&this[E]()}emit(I,N){if(I==="error"){if(this[M])return;this[M]=!0}return super.emit(I,N)}get fd(){return this[s]}get path(){return this[v]}[b](I){this[a](),this[D]=!0,this.emit("error",I)}[E](){n.open(this[v],this[c],this[p],(I,N)=>this[_](I,N))}[_](I,N){this[k]&&this[c]==="r+"&&I&&I.code==="ENOENT"?(this[c]="w",this[E]()):I?this[b](I):(this[s]=N,this.emit("open",N),this[h]())}end(I,N){return I&&this.write(I,N),this[o]=!0,!this[D]&&!this[w].length&&typeof this[s]=="number"&&this[S](null,0),this}write(I,N){return typeof I=="string"&&(I=Buffer.from(I,N)),this[o]?(this.emit("error",new Error("write() after end()")),!1):this[s]===null||this[D]||this[w].length?(this[w].push(I),this[y]=!0,!1):(this[D]=!0,this[O](I),!0)}[O](I){n.write(this[s],I,0,I.length,this[m],(N,F)=>this[S](N,F))}[S](I,N){I?this[b](I):(this[m]!==null&&(this[m]+=N),this[w].length?this[h]():(this[D]=!1,this[o]&&!this[f]?(this[f]=!0,this[a](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[w].length===0)this[o]&&this[S](null,0);else if(this[w].length===1)this[O](this[w].pop());else{let I=this[w];this[w]=[],i(this[s],I,this[m],(N,F)=>this[S](N,F))}}[a](){if(this[l]&&typeof this[s]=="number"){let I=this[s];this[s]=null,n.close(I,N=>N?this.emit("error",N):this.emit("close"))}}},se=class extends W{[E](){let I;if(this[k]&&this[c]==="r+")try{I=n.openSync(this[v],this[c],this[p])}catch(N){if(N.code==="ENOENT")return this[c]="w",this[E]();throw N}else I=n.openSync(this[v],this[c],this[p]);this[_](null,I)}[a](){if(this[l]&&typeof this[s]=="number"){let I=this[s];this[s]=null,n.closeSync(I),this.emit("close")}}[O](I){let N=!0;try{this[S](null,n.writeSync(this[s],I,0,I.length,this[m])),N=!1}finally{if(N)try{this[a]()}catch{}}}};e.ReadStream=L,e.ReadStreamSync=U,e.WriteStream=W,e.WriteStreamSync=se}),ca=te((e,r)=>{"use strict";Z();var t=ua(),n=Jn(),i=he("events"),l=xf(),a=1024*1024,o=oa(),s=aa(),f=vf(),{nextTick:c}=he("process"),h=Buffer.from([31,139]),u=Symbol("state"),d=Symbol("writeEntry"),p=Symbol("readEntry"),y=Symbol("nextEntry"),b=Symbol("processEntry"),_=Symbol("extendedHeader"),g=Symbol("globalExtendedHeader"),S=Symbol("meta"),E=Symbol("emitMeta"),v=Symbol("buffer"),m=Symbol("queue"),w=Symbol("ended"),x=Symbol("emittedEnd"),A=Symbol("emit"),R=Symbol("unzip"),B=Symbol("consumeChunk"),P=Symbol("consumeChunkSub"),O=Symbol("consumeBody"),D=Symbol("consumeMeta"),k=Symbol("consumeHeader"),M=Symbol("consuming"),L=Symbol("bufferConcat"),U=Symbol("maybeEnd"),W=Symbol("writing"),se=Symbol("aborted"),I=Symbol("onDone"),N=Symbol("sawValidEntry"),F=Symbol("sawNullBlock"),V=Symbol("sawEOF"),G=Symbol("closeStream"),J=j=>!0;r.exports=t(class extends i{constructor(j){j=j||{},super(j),this.file=j.file||"",this[N]=null,this.on(I,z=>{(this[u]==="begin"||this[N]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),j.ondone?this.on(I,j.ondone):this.on(I,z=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!j.strict,this.maxMetaEntrySize=j.maxMetaEntrySize||a,this.filter=typeof j.filter=="function"?j.filter:J,this.writable=!0,this.readable=!1,this[m]=new l,this[v]=null,this[p]=null,this[d]=null,this[u]="begin",this[S]="",this[_]=null,this[g]=null,this[w]=!1,this[R]=null,this[se]=!1,this[F]=!1,this[V]=!1,this.on("end",()=>this[G]()),typeof j.onwarn=="function"&&this.on("warn",j.onwarn),typeof j.onentry=="function"&&this.on("entry",j.onentry)}[k](j,z){this[N]===null&&(this[N]=!1);let Q;try{Q=new n(j,z,this[_],this[g])}catch(le){return this.warn("TAR_ENTRY_INVALID",le)}if(Q.nullBlock)this[F]?(this[V]=!0,this[u]==="begin"&&(this[u]="header"),this[A]("eof")):(this[F]=!0,this[A]("nullBlock"));else if(this[F]=!1,!Q.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:Q});else if(!Q.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:Q});else{let le=Q.type;if(/^(Symbolic)?Link$/.test(le)&&!Q.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:Q});else if(!/^(Symbolic)?Link$/.test(le)&&Q.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:Q});else{let ue=this[d]=new o(Q,this[_],this[g]);if(!this[N])if(ue.remain){let Y=()=>{ue.invalid||(this[N]=!0)};ue.on("end",Y)}else this[N]=!0;ue.meta?ue.size>this.maxMetaEntrySize?(ue.ignore=!0,this[A]("ignoredEntry",ue),this[u]="ignore",ue.resume()):ue.size>0&&(this[S]="",ue.on("data",Y=>this[S]+=Y),this[u]="meta"):(this[_]=null,ue.ignore=ue.ignore||!this.filter(ue.path,ue),ue.ignore?(this[A]("ignoredEntry",ue),this[u]=ue.remain?"ignore":"header",ue.resume()):(ue.remain?this[u]="body":(this[u]="header",ue.end()),this[p]?this[m].push(ue):(this[m].push(ue),this[y]())))}}}[G](){c(()=>this.emit("close"))}[b](j){let z=!0;return j?Array.isArray(j)?this.emit.apply(this,j):(this[p]=j,this.emit("entry",j),j.emittedEnd||(j.on("end",Q=>this[y]()),z=!1)):(this[p]=null,z=!1),z}[y](){do;while(this[b](this[m].shift()));if(!this[m].length){let j=this[p];!j||j.flowing||j.size===j.remain?this[W]||this.emit("drain"):j.once("drain",z=>this.emit("drain"))}}[O](j,z){let Q=this[d],le=Q.blockRemain,ue=le>=j.length&&z===0?j:j.slice(z,z+le);return Q.write(ue),Q.blockRemain||(this[u]="header",this[d]=null,Q.end()),ue.length}[D](j,z){let Q=this[d],le=this[O](j,z);return this[d]||this[E](Q),le}[A](j,z,Q){!this[m].length&&!this[p]?this.emit(j,z,Q):this[m].push([j,z,Q])}[E](j){switch(this[A]("meta",this[S]),j.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=s.parse(this[S],this[_],!1);break;case"GlobalExtendedHeader":this[g]=s.parse(this[S],this[g],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null),this[_].path=this[S].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null),this[_].linkpath=this[S].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+j.type)}}abort(j){this[se]=!0,this.emit("abort",j),this.warn("TAR_ABORT",j,{recoverable:!1})}write(j){if(this[se])return;if(this[R]===null&&j){if(this[v]&&(j=Buffer.concat([this[v],j]),this[v]=null),j.length<h.length)return this[v]=j,!0;for(let Q=0;this[R]===null&&Q<h.length;Q++)j[Q]!==h[Q]&&(this[R]=!1);if(this[R]===null){let Q=this[w];this[w]=!1,this[R]=new f.Unzip,this[R].on("data",ue=>this[B](ue)),this[R].on("error",ue=>this.abort(ue)),this[R].on("end",ue=>{this[w]=!0,this[B]()}),this[W]=!0;let le=this[R][Q?"end":"write"](j);return this[W]=!1,le}}this[W]=!0,this[R]?this[R].write(j):this[B](j),this[W]=!1;let z=this[m].length?!1:this[p]?this[p].flowing:!0;return!z&&!this[m].length&&this[p].once("drain",Q=>this.emit("drain")),z}[L](j){j&&!this[se]&&(this[v]=this[v]?Buffer.concat([this[v],j]):j)}[U](){if(this[w]&&!this[x]&&!this[se]&&!this[M]){this[x]=!0;let j=this[d];if(j&&j.blockRemain){let z=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${j.blockRemain} more bytes, only ${z} available)`,{entry:j}),this[v]&&j.write(this[v]),j.end()}this[A](I)}}[B](j){if(this[M])this[L](j);else if(!j&&!this[v])this[U]();else{if(this[M]=!0,this[v]){this[L](j);let z=this[v];this[v]=null,this[P](z)}else this[P](j);for(;this[v]&&this[v].length>=512&&!this[se]&&!this[V];){let z=this[v];this[v]=null,this[P](z)}this[M]=!1}(!this[v]||this[w])&&this[U]()}[P](j){let z=0,Q=j.length;for(;z+512<=Q&&!this[se]&&!this[V];)switch(this[u]){case"begin":case"header":this[k](j,z),z+=512;break;case"ignore":case"body":z+=this[O](j,z);break;case"meta":z+=this[D](j,z);break;default:throw new Error("invalid state: "+this[u])}z<Q&&(this[v]?this[v]=Buffer.concat([j.slice(z),this[v]]):this[v]=j.slice(z))}end(j){this[se]||(this[R]?this[R].end(j):(this[w]=!0,this.write(j)))}})}),ha=te((e,r)=>{"use strict";Z();var t=Zn(),n=ca(),i=he("fs"),l=ti(),a=he("path"),o=ei();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&f(b,p),b.noResume||s(b),b.file&&b.sync?c(b):b.file?h(b,y):u(b)};var s=d=>{let p=d.onentry;d.onentry=p?y=>{p(y),y.resume()}:y=>y.resume()},f=(d,p)=>{let y=new Map(p.map(g=>[o(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(o(g)):g=>_(o(g))},c=d=>{let p=u(d),y=d.file,b=!0,_;try{let g=i.statSync(y),S=d.maxReadSize||16*1024*1024;if(g.size<S)p.end(i.readFileSync(y));else{let E=0,v=Buffer.allocUnsafe(S);for(_=i.openSync(y,"r");E<g.size;){let m=i.readSync(_,v,0,S,E);E+=m,p.write(v.slice(0,m))}p.end()}b=!1}finally{if(b&&_)try{i.closeSync(_)}catch{}}},h=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("end",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new l.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},u=d=>new n(d)}),rv=te((e,r)=>{"use strict";Z();var t=Zn(),n=la(),i=ti(),l=ha(),a=he("path");r.exports=(d,p,y)=>{if(typeof p=="function"&&(y=p),Array.isArray(d)&&(p=d,d={}),!p||!Array.isArray(p)||!p.length)throw new TypeError("no files or directories specified");p=Array.from(p);let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return b.file&&b.sync?o(b,p):b.file?s(b,p,y):b.sync?h(b,p):u(b,p)};var o=(d,p)=>{let y=new n.Sync(d),b=new i.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(b),f(y,p)},s=(d,p,y)=>{let b=new n(d),_=new i.WriteStream(d.file,{mode:d.mode||438});b.pipe(_);let g=new Promise((S,E)=>{_.on("error",E),_.on("close",S),b.on("error",E)});return c(b,p),y?g.then(y,y):g},f=(d,p)=>{p.forEach(y=>{y.charAt(0)==="@"?l({file:a.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(y)}),d.end()},c=(d,p)=>{for(;p.length;){let y=p.shift();if(y.charAt(0)==="@")return l({file:a.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>c(d,p));d.add(y)}d.end()},h=(d,p)=>{let y=new n.Sync(d);return f(y,p),y},u=(d,p)=>{let y=new n(d);return c(y,p),y}}),Af=te((e,r)=>{"use strict";Z();var t=Zn(),n=la(),i=he("fs"),l=ti(),a=ha(),o=he("path"),s=Jn();r.exports=(p,y,b)=>{let _=t(p);if(!_.file)throw new TypeError("file is required");if(_.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),_.sync?f(_,y):h(_,y,b)};var f=(p,y)=>{let b=new n.Sync(p),_=!0,g,S;try{try{g=i.openSync(p.file,"r+")}catch(m){if(m.code==="ENOENT")g=i.openSync(p.file,"w+");else throw m}let E=i.fstatSync(g),v=Buffer.alloc(512);e:for(S=0;S<E.size;S+=512){for(let x=0,A=0;x<512;x+=A){if(A=i.readSync(g,v,x,v.length-x,S+x),S===0&&v[0]===31&&v[1]===139)throw new Error("cannot append to compressed archives");if(!A)break e}let m=new s(v);if(!m.cksumValid)break;let w=512*Math.ceil(m.size/512);if(S+w+512>E.size)break;S+=w,p.mtimeCache&&p.mtimeCache.set(m.path,m.mtime)}_=!1,c(p,b,S,g,y)}finally{if(_)try{i.closeSync(g)}catch{}}},c=(p,y,b,_,g)=>{let S=new l.WriteStreamSync(p.file,{fd:_,start:b});y.pipe(S),u(y,g)},h=(p,y,b)=>{y=Array.from(y);let _=new n(p),g=(E,v,m)=>{let w=(P,O)=>{P?i.close(E,D=>m(P)):m(null,O)},x=0;if(v===0)return w(null,0);let A=0,R=Buffer.alloc(512),B=(P,O)=>{if(P)return w(P);if(A+=O,A<512&&O)return i.read(E,R,A,R.length-A,x+A,B);if(x===0&&R[0]===31&&R[1]===139)return w(new Error("cannot append to compressed archives"));if(A<512)return w(null,x);let D=new s(R);if(!D.cksumValid)return w(null,x);let k=512*Math.ceil(D.size/512);if(x+k+512>v||(x+=k+512,x>=v))return w(null,x);p.mtimeCache&&p.mtimeCache.set(D.path,D.mtime),A=0,i.read(E,R,0,512,x,B)};i.read(E,R,0,512,x,B)},S=new Promise((E,v)=>{_.on("error",v);let m="r+",w=(x,A)=>{if(x&&x.code==="ENOENT"&&m==="r+")return m="w+",i.open(p.file,m,w);if(x)return v(x);i.fstat(A,(R,B)=>{if(R)return i.close(A,()=>v(R));g(A,B.size,(P,O)=>{if(P)return v(P);let D=new l.WriteStream(p.file,{fd:A,start:O});_.pipe(D),D.on("error",v),D.on("close",E),d(_,y)})})};i.open(p.file,m,w)});return b?S.then(b,b):S},u=(p,y)=>{y.forEach(b=>{b.charAt(0)==="@"?a({file:o.resolve(p.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:_=>p.add(_)}):p.add(b)}),p.end()},d=(p,y)=>{for(;y.length;){let b=y.shift();if(b.charAt(0)==="@")return a({file:o.resolve(p.cwd,b.slice(1)),noResume:!0,onentry:_=>p.add(_)}).then(_=>d(p,y));p.add(b)}p.end()}}),nv=te((e,r)=>{"use strict";Z();var t=Zn(),n=Af();r.exports=(l,a,o)=>{let s=t(l);if(!s.file)throw new TypeError("file is required");if(s.gzip)throw new TypeError("cannot append to compressed archives");if(!a||!Array.isArray(a)||!a.length)throw new TypeError("no files or directories specified");return a=Array.from(a),i(s),n(s,a,o)};var i=l=>{let a=l.filter;l.mtimeCache||(l.mtimeCache=new Map),l.filter=a?(o,s)=>a(o,s)&&!(l.mtimeCache.get(o)>s.mtime):(o,s)=>!(l.mtimeCache.get(o)>s.mtime)}}),iv=te((e,r)=>{Z();var{promisify:t}=he("util"),n=he("fs"),i=l=>{if(!l)l={mode:511,fs:n};else if(typeof l=="object")l={mode:511,fs:n,...l};else if(typeof l=="number")l={mode:l,fs:n};else if(typeof l=="string")l={mode:parseInt(l,8),fs:n};else throw new TypeError("invalid options argument");return l.mkdir=l.mkdir||l.fs.mkdir||n.mkdir,l.mkdirAsync=t(l.mkdir),l.stat=l.stat||l.fs.stat||n.stat,l.statAsync=t(l.stat),l.statSync=l.statSync||l.fs.statSync||n.statSync,l.mkdirSync=l.mkdirSync||l.fs.mkdirSync||n.mkdirSync,l};r.exports=i}),sv=te((e,r)=>{Z();var t=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n,parse:i}=he("path"),l=a=>{if(/\0/.test(a))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:a,code:"ERR_INVALID_ARG_VALUE"});if(a=n(a),t==="win32"){let o=/[*|"<>?:]/,{root:s}=i(a);if(o.test(a.substr(s.length)))throw Object.assign(new Error("Illegal characters in path."),{path:a,code:"EINVAL"})}return a};r.exports=l}),ov=te((e,r)=>{Z();var{dirname:t}=he("path"),n=(l,a,o=void 0)=>o===a?Promise.resolve():l.statAsync(a).then(s=>s.isDirectory()?o:void 0,s=>s.code==="ENOENT"?n(l,t(a),a):void 0),i=(l,a,o=void 0)=>{if(o!==a)try{return l.statSync(a).isDirectory()?o:void 0}catch(s){return s.code==="ENOENT"?i(l,t(a),a):void 0}};r.exports={findMade:n,findMadeSync:i}}),Cf=te((e,r)=>{Z();var{dirname:t}=he("path"),n=(l,a,o)=>{a.recursive=!1;let s=t(l);return s===l?a.mkdirAsync(l,a).catch(f=>{if(f.code!=="EISDIR")throw f}):a.mkdirAsync(l,a).then(()=>o||l,f=>{if(f.code==="ENOENT")return n(s,a).then(c=>n(l,a,c));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;return a.statAsync(l).then(c=>{if(c.isDirectory())return o;throw f},()=>{throw f})})},i=(l,a,o)=>{let s=t(l);if(a.recursive=!1,s===l)try{return a.mkdirSync(l,a)}catch(f){if(f.code!=="EISDIR")throw f;return}try{return a.mkdirSync(l,a),o||l}catch(f){if(f.code==="ENOENT")return i(l,a,i(s,a,o));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;try{if(!a.statSync(l).isDirectory())throw f}catch{throw f}}};r.exports={mkdirpManual:n,mkdirpManualSync:i}}),av=te((e,r)=>{Z();var{dirname:t}=he("path"),{findMade:n,findMadeSync:i}=ov(),{mkdirpManual:l,mkdirpManualSync:a}=Cf(),o=(f,c)=>(c.recursive=!0,t(f)===f?c.mkdirAsync(f,c):n(c,f).then(h=>c.mkdirAsync(f,c).then(()=>h).catch(u=>{if(u.code==="ENOENT")return l(f,c);throw u}))),s=(f,c)=>{if(c.recursive=!0,t(f)===f)return c.mkdirSync(f,c);let h=i(c,f);try{return c.mkdirSync(f,c),h}catch(u){if(u.code==="ENOENT")return a(f,c);throw u}};r.exports={mkdirpNative:o,mkdirpNativeSync:s}}),uv=te((e,r)=>{Z();var t=he("fs"),n=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=n.replace(/^v/,"").split("."),l=+i[0]>10||+i[0]==10&&+i[1]>=12,a=l?s=>s.mkdir===t.mkdir:()=>!1,o=l?s=>s.mkdirSync===t.mkdirSync:()=>!1;r.exports={useNative:a,useNativeSync:o}}),lv=te((e,r)=>{Z();var t=iv(),n=sv(),{mkdirpNative:i,mkdirpNativeSync:l}=av(),{mkdirpManual:a,mkdirpManualSync:o}=Cf(),{useNative:s,useNativeSync:f}=uv(),c=(u,d)=>(u=n(u),d=t(d),s(d)?i(u,d):a(u,d)),h=(u,d)=>(u=n(u),d=t(d),f(d)?l(u,d):o(u,d));c.sync=h,c.native=(u,d)=>i(n(u),t(d)),c.manual=(u,d)=>a(n(u),t(d)),c.nativeSync=(u,d)=>l(n(u),t(d)),c.manualSync=(u,d)=>o(n(u),t(d)),r.exports=c}),cv=te((e,r)=>{"use strict";Z();var t=he("fs"),n=he("path"),i=t.lchown?"lchown":"chown",l=t.lchownSync?"lchownSync":"chownSync",a=t.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),o=(S,E,v)=>{try{return t[l](S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},s=(S,E,v)=>{try{return t.chownSync(S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},f=a?(S,E,v,m)=>w=>{!w||w.code!=="EISDIR"?m(w):t.chown(S,E,v,m)}:(S,E,v,m)=>m,c=a?(S,E,v)=>{try{return o(S,E,v)}catch(m){if(m.code!=="EISDIR")throw m;s(S,E,v)}}:(S,E,v)=>o(S,E,v),h=process.version,u=(S,E,v)=>t.readdir(S,E,v),d=(S,E)=>t.readdirSync(S,E);/^v4\./.test(h)&&(u=(S,E,v)=>t.readdir(S,v));var p=(S,E,v,m)=>{t[i](S,E,v,f(S,E,v,w=>{m(w&&w.code!=="ENOENT"?w:null)}))},y=(S,E,v,m,w)=>{if(typeof E=="string")return t.lstat(n.resolve(S,E),(x,A)=>{if(x)return w(x.code!=="ENOENT"?x:null);A.name=E,y(S,A,v,m,w)});if(E.isDirectory())b(n.resolve(S,E.name),v,m,x=>{if(x)return w(x);let A=n.resolve(S,E.name);p(A,v,m,w)});else{let x=n.resolve(S,E.name);p(x,v,m,w)}},b=(S,E,v,m)=>{u(S,{withFileTypes:!0},(w,x)=>{if(w){if(w.code==="ENOENT")return m();if(w.code!=="ENOTDIR"&&w.code!=="ENOTSUP")return m(w)}if(w||!x.length)return p(S,E,v,m);let A=x.length,R=null,B=P=>{if(!R){if(P)return m(R=P);if(--A===0)return p(S,E,v,m)}};x.forEach(P=>y(S,P,E,v,B))})},_=(S,E,v,m)=>{if(typeof E=="string")try{let w=t.lstatSync(n.resolve(S,E));w.name=E,E=w}catch(w){if(w.code==="ENOENT")return;throw w}E.isDirectory()&&g(n.resolve(S,E.name),v,m),c(n.resolve(S,E.name),v,m)},g=(S,E,v)=>{let m;try{m=d(S,{withFileTypes:!0})}catch(w){if(w.code==="ENOENT")return;if(w.code==="ENOTDIR"||w.code==="ENOTSUP")return c(S,E,v);throw w}return m&&m.length&&m.forEach(w=>_(S,w,E,v)),c(S,E,v)};r.exports=b,b.sync=g}),hv=te((e,r)=>{"use strict";Z();var t=lv(),n=he("fs"),i=he("path"),l=cv(),a=Qn(),o=class extends Error{constructor(y,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=y}get name(){return"SylinkError"}},s=class extends Error{constructor(y,b){super(b+": Cannot cd into '"+y+"'"),this.path=y,this.code=b}get name(){return"CwdError"}},f=(y,b)=>y.get(a(b)),c=(y,b,_)=>y.set(a(b),_),h=(y,b)=>{n.stat(y,(_,g)=>{(_||!g.isDirectory())&&(_=new s(y,_&&_.code||"ENOTDIR")),b(_)})};r.exports=(y,b,_)=>{y=a(y);let g=b.umask,S=b.mode|448,E=(S&g)!==0,v=b.uid,m=b.gid,w=typeof v=="number"&&typeof m=="number"&&(v!==b.processUid||m!==b.processGid),x=b.preserve,A=b.unlink,R=b.cache,B=a(b.cwd),P=(D,k)=>{D?_(D):(c(R,y,!0),k&&w?l(k,v,m,M=>P(M)):E?n.chmod(y,S,_):_())};if(R&&f(R,y)===!0)return P();if(y===B)return h(y,P);if(x)return t(y,{mode:S}).then(D=>P(null,D),P);let O=a(i.relative(B,y)).split("/");u(B,O,S,R,A,B,null,P)};var u=(y,b,_,g,S,E,v,m)=>{if(!b.length)return m(null,v);let w=b.shift(),x=a(i.resolve(y+"/"+w));if(f(g,x))return u(x,b,_,g,S,E,v,m);n.mkdir(x,_,d(x,b,_,g,S,E,v,m))},d=(y,b,_,g,S,E,v,m)=>w=>{w?n.lstat(y,(x,A)=>{if(x)x.path=x.path&&a(x.path),m(x);else if(A.isDirectory())u(y,b,_,g,S,E,v,m);else if(S)n.unlink(y,R=>{if(R)return m(R);n.mkdir(y,_,d(y,b,_,g,S,E,v,m))});else{if(A.isSymbolicLink())return m(new o(y,y+"/"+b.join("/")));m(w)}}):(v=v||y,u(y,b,_,g,S,E,v,m))},p=y=>{let b=!1,_="ENOTDIR";try{b=n.statSync(y).isDirectory()}catch(g){_=g.code}finally{if(!b)throw new s(y,_)}};r.exports.sync=(y,b)=>{y=a(y);let _=b.umask,g=b.mode|448,S=(g&_)!==0,E=b.uid,v=b.gid,m=typeof E=="number"&&typeof v=="number"&&(E!==b.processUid||v!==b.processGid),w=b.preserve,x=b.unlink,A=b.cache,R=a(b.cwd),B=D=>{c(A,y,!0),D&&m&&l.sync(D,E,v),S&&n.chmodSync(y,g)};if(A&&f(A,y)===!0)return B();if(y===R)return p(R),B();if(w)return B(t.sync(y,g));let P=a(i.relative(R,y)).split("/"),O=null;for(let D=P.shift(),k=R;D&&(k+="/"+D);D=P.shift())if(k=a(i.resolve(k)),!f(A,k))try{n.mkdirSync(k,g),O=O||k,c(A,k,!0)}catch{let M=n.lstatSync(k);if(M.isDirectory()){c(A,k,!0);continue}else if(x){n.unlinkSync(k),n.mkdirSync(k,g),O=O||k,c(A,k,!0);continue}else if(M.isSymbolicLink())return new o(k,k+"/"+P.join("/"))}return B(O)}}),kf=te((e,r)=>{Z();var t=Object.create(null),{hasOwnProperty:n}=Object.prototype;r.exports=i=>(n.call(t,i)||(t[i]=i.normalize("NFKD")),t[i])}),fv=te((e,r)=>{Z();var t=he("assert"),n=kf(),i=ei(),{join:l}=he("path"),a=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,o=a==="win32";r.exports=()=>{let s=new Map,f=new Map,c=b=>b.split("/").slice(0,-1).reduce((_,g)=>(_.length&&(g=l(_[_.length-1],g)),_.push(g||"/"),_),[]),h=new Set,u=b=>{let _=f.get(b);if(!_)throw new Error("function does not have any path reservations");return{paths:_.paths.map(g=>s.get(g)),dirs:[..._.dirs].map(g=>s.get(g))}},d=b=>{let{paths:_,dirs:g}=u(b);return _.every(S=>S[0]===b)&&g.every(S=>S[0]instanceof Set&&S[0].has(b))},p=b=>h.has(b)||!d(b)?!1:(h.add(b),b(()=>y(b)),!0),y=b=>{if(!h.has(b))return!1;let{paths:_,dirs:g}=f.get(b),S=new Set;return _.forEach(E=>{let v=s.get(E);t.equal(v[0],b),v.length===1?s.delete(E):(v.shift(),typeof v[0]=="function"?S.add(v[0]):v[0].forEach(m=>S.add(m)))}),g.forEach(E=>{let v=s.get(E);t(v[0]instanceof Set),v[0].size===1&&v.length===1?s.delete(E):v[0].size===1?(v.shift(),S.add(v[0])):v[0].delete(b)}),h.delete(b),S.forEach(E=>p(E)),!0};return{check:d,reserve:(b,_)=>{b=o?["win32 parallelization disabled"]:b.map(S=>n(i(l(S))).toLowerCase());let g=new Set(b.map(S=>c(S)).reduce((S,E)=>S.concat(E)));return f.set(_,{dirs:g,paths:b}),b.forEach(S=>{let E=s.get(S);E?E.push(_):s.set(S,[_])}),g.forEach(S=>{let E=s.get(S);E?E[E.length-1]instanceof Set?E[E.length-1].add(_):E.push(new Set([_])):s.set(S,[new Set([_])])}),p(_)}}}}),pv=te((e,r)=>{Z();var t=process.env.__FAKE_PLATFORM__||process.platform,n=t==="win32",i=global.__FAKE_TESTING_FS__||he("fs"),{O_CREAT:l,O_TRUNC:a,O_WRONLY:o,UV_FS_O_FILEMAP:s=0}=i.constants,f=n&&!!s,c=512*1024,h=s|a|l|o;r.exports=f?u=>u<c?h:"w":()=>"w"}),Df=te((e,r)=>{"use strict";Z();var t=he("assert"),n=ca(),i=he("fs"),l=ti(),a=he("path"),o=hv(),s=wf(),f=fv(),c=Ef(),h=Qn(),u=ei(),d=kf(),p=Symbol("onEntry"),y=Symbol("checkFs"),b=Symbol("checkFs2"),_=Symbol("pruneCache"),g=Symbol("isReusable"),S=Symbol("makeFs"),E=Symbol("file"),v=Symbol("directory"),m=Symbol("link"),w=Symbol("symlink"),x=Symbol("hardlink"),A=Symbol("unsupported"),R=Symbol("checkPath"),B=Symbol("mkdir"),P=Symbol("onError"),O=Symbol("pending"),D=Symbol("pend"),k=Symbol("unpend"),M=Symbol("ended"),L=Symbol("maybeClose"),U=Symbol("skip"),W=Symbol("doChown"),se=Symbol("uid"),I=Symbol("gid"),N=Symbol("checkedCwd"),F=he("crypto"),V=pv(),G=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,J=G==="win32",j=(C,H)=>{if(!J)return i.unlink(C,H);let X=C+".DELETE."+F.randomBytes(16).toString("hex");i.rename(C,X,ie=>{if(ie)return H(ie);i.unlink(X,H)})},z=C=>{if(!J)return i.unlinkSync(C);let H=C+".DELETE."+F.randomBytes(16).toString("hex");i.renameSync(C,H),i.unlinkSync(H)},Q=(C,H,X)=>C===C>>>0?C:H===H>>>0?H:X,le=C=>d(u(h(C))).toLowerCase(),ue=(C,H)=>{H=le(H);for(let X of C.keys()){let ie=le(X);(ie===H||ie.indexOf(H+"/")===0)&&C.delete(X)}},Y=C=>{for(let H of C.keys())C.delete(H)},ne=class extends n{constructor(C){if(C||(C={}),C.ondone=H=>{this[M]=!0,this[L]()},super(C),this[N]=!1,this.reservations=f(),this.transform=typeof C.transform=="function"?C.transform:null,this.writable=!0,this.readable=!1,this[O]=0,this[M]=!1,this.dirCache=C.dirCache||new Map,typeof C.uid=="number"||typeof C.gid=="number"){if(typeof C.uid!="number"||typeof C.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(C.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=C.uid,this.gid=C.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;C.preserveOwner===void 0&&typeof C.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!C.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=C.forceChown===!0,this.win32=!!C.win32||J,this.newer=!!C.newer,this.keep=!!C.keep,this.noMtime=!!C.noMtime,this.preservePaths=!!C.preservePaths,this.unlink=!!C.unlink,this.cwd=h(a.resolve(C.cwd||process.cwd())),this.strip=+C.strip||0,this.processUmask=C.noChmod?0:process.umask(),this.umask=typeof C.umask=="number"?C.umask:this.processUmask,this.dmode=C.dmode||511&~this.umask,this.fmode=C.fmode||438&~this.umask,this.on("entry",H=>this[p](H))}warn(C,H,X={}){return(C==="TAR_BAD_ARCHIVE"||C==="TAR_ABORT")&&(X.recoverable=!1),super.warn(C,H,X)}[L](){this[M]&&this[O]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[R](C){if(this.strip){let H=h(C.path).split("/");if(H.length<this.strip)return!1;if(C.path=H.slice(this.strip).join("/"),C.type==="Link"){let X=h(C.linkpath).split("/");if(X.length>=this.strip)C.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let H=h(C.path),X=H.split("/");if(X.includes("..")||J&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:C,path:H}),!1;let[ie,me]=c(H);ie&&(C.path=me,this.warn("TAR_ENTRY_INFO",`stripping ${ie} from absolute path`,{entry:C,path:H}))}if(a.isAbsolute(C.path)?C.absolute=h(a.resolve(C.path)):C.absolute=h(a.resolve(this.cwd,C.path)),!this.preservePaths&&C.absolute.indexOf(this.cwd+"/")!==0&&C.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:C,path:h(C.path),resolvedPath:C.absolute,cwd:this.cwd}),!1;if(C.absolute===this.cwd&&C.type!=="Directory"&&C.type!=="GNUDumpDir")return!1;if(this.win32){let{root:H}=a.win32.parse(C.absolute);C.absolute=H+s.encode(C.absolute.slice(H.length));let{root:X}=a.win32.parse(C.path);C.path=X+s.encode(C.path.slice(X.length))}return!0}[p](C){if(!this[R](C))return C.resume();switch(t.equal(typeof C.absolute,"string"),C.type){case"Directory":case"GNUDumpDir":C.mode&&(C.mode=C.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](C);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[A](C)}}[P](C,H){C.name==="CwdError"?this.emit("error",C):(this.warn("TAR_ENTRY_ERROR",C,{entry:H}),this[k](),H.resume())}[B](C,H,X){o(h(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:H,noChmod:this.noChmod},X)}[W](C){return this.forceChown||this.preserveOwner&&(typeof C.uid=="number"&&C.uid!==this.processUid||typeof C.gid=="number"&&C.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[se](C){return Q(this.uid,C.uid,this.processUid)}[I](C){return Q(this.gid,C.gid,this.processGid)}[E](C,H){let X=C.mode&4095||this.fmode,ie=new l.WriteStream(C.absolute,{flags:V(C.size),mode:X,autoClose:!1});ie.on("error",oe=>{ie.fd&&i.close(ie.fd,()=>{}),ie.write=()=>!0,this[P](oe,C),H()});let me=1,ae=oe=>{if(oe){ie.fd&&i.close(ie.fd,()=>{}),this[P](oe,C),H();return}--me===0&&i.close(ie.fd,ge=>{ge?this[P](ge,C):this[k](),H()})};ie.on("finish",oe=>{let ge=C.absolute,Ee=ie.fd;if(C.mtime&&!this.noMtime){me++;let Ce=C.atime||new Date,K=C.mtime;i.futimes(Ee,Ce,K,$=>$?i.utimes(ge,Ce,K,ce=>ae(ce&&$)):ae())}if(this[W](C)){me++;let Ce=this[se](C),K=this[I](C);i.fchown(Ee,Ce,K,$=>$?i.chown(ge,Ce,K,ce=>ae(ce&&$)):ae())}ae()});let pe=this.transform&&this.transform(C)||C;pe!==C&&(pe.on("error",oe=>{this[P](oe,C),H()}),C.pipe(pe)),pe.pipe(ie)}[v](C,H){let X=C.mode&4095||this.dmode;this[B](C.absolute,X,ie=>{if(ie){this[P](ie,C),H();return}let me=1,ae=pe=>{--me===0&&(H(),this[k](),C.resume())};C.mtime&&!this.noMtime&&(me++,i.utimes(C.absolute,C.atime||new Date,C.mtime,ae)),this[W](C)&&(me++,i.chown(C.absolute,this[se](C),this[I](C),ae)),ae()})}[A](C){C.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${C.type}`,{entry:C}),C.resume()}[w](C,H){this[m](C,C.linkpath,"symlink",H)}[x](C,H){let X=h(a.resolve(this.cwd,C.linkpath));this[m](C,X,"link",H)}[D](){this[O]++}[k](){this[O]--,this[L]()}[U](C){this[k](),C.resume()}[g](C,H){return C.type==="File"&&!this.unlink&&H.isFile()&&H.nlink<=1&&!J}[y](C){this[D]();let H=[C.path];C.linkpath&&H.push(C.linkpath),this.reservations.reserve(H,X=>this[b](C,X))}[_](C){C.type==="SymbolicLink"?Y(this.dirCache):C.type!=="Directory"&&ue(this.dirCache,C.absolute)}[b](C,H){this[_](C);let X=pe=>{this[_](C),H(pe)},ie=()=>{this[B](this.cwd,this.dmode,pe=>{if(pe){this[P](pe,C),X();return}this[N]=!0,me()})},me=()=>{if(C.absolute!==this.cwd){let pe=h(a.dirname(C.absolute));if(pe!==this.cwd)return this[B](pe,this.dmode,oe=>{if(oe){this[P](oe,C),X();return}ae()})}ae()},ae=()=>{i.lstat(C.absolute,(pe,oe)=>{if(oe&&(this.keep||this.newer&&oe.mtime>C.mtime)){this[U](C),X();return}if(pe||this[g](C,oe))return this[S](null,C,X);if(oe.isDirectory()){if(C.type==="Directory"){let ge=!this.noChmod&&C.mode&&(oe.mode&4095)!==C.mode,Ee=Ce=>this[S](Ce,C,X);return ge?i.chmod(C.absolute,C.mode,Ee):Ee()}if(C.absolute!==this.cwd)return i.rmdir(C.absolute,ge=>this[S](ge,C,X))}if(C.absolute===this.cwd)return this[S](null,C,X);j(C.absolute,ge=>this[S](ge,C,X))})};this[N]?me():ie()}[S](C,H,X){if(C){this[P](C,H),X();return}switch(H.type){case"File":case"OldFile":case"ContiguousFile":return this[E](H,X);case"Link":return this[x](H,X);case"SymbolicLink":return this[w](H,X);case"Directory":case"GNUDumpDir":return this[v](H,X)}}[m](C,H,X,ie){i[X](H,C.absolute,me=>{me?this[P](me,C):(this[k](),C.resume()),ie()})}},T=C=>{try{return[null,C()]}catch(H){return[H,null]}},q=class extends ne{[S](C,H){return super[S](C,H,()=>{})}[y](C){if(this[_](C),!this[N]){let me=this[B](this.cwd,this.dmode);if(me)return this[P](me,C);this[N]=!0}if(C.absolute!==this.cwd){let me=h(a.dirname(C.absolute));if(me!==this.cwd){let ae=this[B](me,this.dmode);if(ae)return this[P](ae,C)}}let[H,X]=T(()=>i.lstatSync(C.absolute));if(X&&(this.keep||this.newer&&X.mtime>C.mtime))return this[U](C);if(H||this[g](C,X))return this[S](null,C);if(X.isDirectory()){if(C.type==="Directory"){let ae=!this.noChmod&&C.mode&&(X.mode&4095)!==C.mode,[pe]=ae?T(()=>{i.chmodSync(C.absolute,C.mode)}):[];return this[S](pe,C)}let[me]=T(()=>i.rmdirSync(C.absolute));this[S](me,C)}let[ie]=C.absolute===this.cwd?[]:T(()=>z(C.absolute));this[S](ie,C)}[E](C,H){let X=C.mode&4095||this.fmode,ie=pe=>{let oe;try{i.closeSync(me)}catch(ge){oe=ge}(pe||oe)&&this[P](pe||oe,C),H()},me;try{me=i.openSync(C.absolute,V(C.size),X)}catch(pe){return ie(pe)}let ae=this.transform&&this.transform(C)||C;ae!==C&&(ae.on("error",pe=>this[P](pe,C)),C.pipe(ae)),ae.on("data",pe=>{try{i.writeSync(me,pe,0,pe.length)}catch(oe){ie(oe)}}),ae.on("end",pe=>{let oe=null;if(C.mtime&&!this.noMtime){let ge=C.atime||new Date,Ee=C.mtime;try{i.futimesSync(me,ge,Ee)}catch(Ce){try{i.utimesSync(C.absolute,ge,Ee)}catch{oe=Ce}}}if(this[W](C)){let ge=this[se](C),Ee=this[I](C);try{i.fchownSync(me,ge,Ee)}catch(Ce){try{i.chownSync(C.absolute,ge,Ee)}catch{oe=oe||Ce}}}ie(oe)})}[v](C,H){let X=C.mode&4095||this.dmode,ie=this[B](C.absolute,X);if(ie){this[P](ie,C),H();return}if(C.mtime&&!this.noMtime)try{i.utimesSync(C.absolute,C.atime||new Date,C.mtime)}catch{}if(this[W](C))try{i.chownSync(C.absolute,this[se](C),this[I](C))}catch{}H(),C.resume()}[B](C,H){try{return o.sync(h(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:H})}catch(X){return X}}[m](C,H,X,ie){try{i[X+"Sync"](H,C.absolute),ie(),C.resume()}catch(me){return this[P](me,C)}}};ne.Sync=q,r.exports=ne}),dv=te((e,r)=>{"use strict";Z();var t=Zn(),n=Df(),i=he("fs"),l=ti(),a=he("path"),o=ei();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&s(b,p),b.file&&b.sync?f(b):b.file?c(b,y):b.sync?h(b):u(b)};var s=(d,p)=>{let y=new Map(p.map(g=>[o(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(o(g)):g=>_(o(g))},f=d=>{let p=new n.Sync(d),y=d.file,b=i.statSync(y),_=d.maxReadSize||16*1024*1024;new l.ReadStreamSync(y,{readSize:_,size:b.size}).pipe(p)},c=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("close",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new l.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},h=d=>new n.Sync(d),u=d=>new n(d)}),mv=te(e=>{"use strict";Z(),e.c=e.create=rv(),e.r=e.replace=Af(),e.t=e.list=ha(),e.u=e.update=nv(),e.x=e.extract=dv(),e.Pack=la(),e.Unpack=Df(),e.Parse=ca(),e.ReadEntry=oa(),e.WriteEntry=Sf(),e.Header=Jn(),e.Pax=aa(),e.types=_f()});Z();var fa=Ge(Zb()),Rf=Ge(mv()),yv=(0,Tf.promisify)(Of.Stream.pipeline);async function Ji(e){try{return(await fa.default.head(e)).statusCode===200}catch{return!1}}async function pa(e,r){let[,t,n,i,l,...a]=e.pathname.split("/"),o=r?r.replace(/^\//,""):a.join("/");if(i===void 0||i===""&&l===void 0)try{let f=await(0,fa.default)(`https://api.github.com/repos/${t}/${n}`),c=JSON.parse(f.body);return{username:t,name:n,branch:c.default_branch,filePath:o}}catch{return}let s=r?`${l}/${a.join("/")}`.replace(new RegExp(`/${o}|/$`),""):l;if(t&&n&&s&&i==="tree")return{username:t,name:n,branch:s,filePath:o}}function da({username:e,name:r,branch:t,filePath:n}){let i=`https://api.github.com/repos/${e}/${r}/contents`,l=`${n?`/${n}`:""}/package.json`;return Ji(i+l+`?ref=${t}`)}function ma(e){try{let r=new URL(e);return Ji(r.href)}catch{return Ji(`https://api.github.com/repos/vercel/turbo/contents/examples/${encodeURIComponent(e)}`)}}async function Bf(e,r){let t=(0,Ff.join)((0,Pf.tmpdir)(),`${r}.temp-${Date.now()}`);return await yv(fa.default.stream(e),(0,ri.createWriteStream)(t)),t}async function ya(e,{username:r,name:t,branch:n,filePath:i}){let l=await Bf(`https://codeload.github.com/${r}/${t}/tar.gz/${n}`,"turbo-ct-example");await Rf.default.x({file:l,cwd:e,strip:i?i.split("/").length+1:1,filter:a=>a.startsWith(`${t}-${n.replace(/\//g,"-")}${i?`/${i}/`:"/"}`)}),await ri.promises.unlink(l)}async function ga(e,r){let t=await Bf("https://codeload.github.com/vercel/turbo/tar.gz/main","turbo-ct-example");await Rf.default.x({file:t,cwd:e,strip:2+r.split("/").length,filter:n=>n.includes(`turbo-main/examples/${r}/`)}),await ri.promises.unlink(t)}var gv=te((e,r)=>{Z();var t=he("constants"),n=process.cwd,i=null,l=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(a=process.chdir,process.chdir=function(s){i=null,a.call(process,s)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a));var a;r.exports=o;function o(s){t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(s),s.lutimes||c(s),s.chown=d(s.chown),s.fchown=d(s.fchown),s.lchown=d(s.lchown),s.chmod=h(s.chmod),s.fchmod=h(s.fchmod),s.lchmod=h(s.lchmod),s.chownSync=p(s.chownSync),s.fchownSync=p(s.fchownSync),s.lchownSync=p(s.lchownSync),s.chmodSync=u(s.chmodSync),s.fchmodSync=u(s.fchmodSync),s.lchmodSync=u(s.lchmodSync),s.stat=y(s.stat),s.fstat=y(s.fstat),s.lstat=y(s.lstat),s.statSync=b(s.statSync),s.fstatSync=b(s.fstatSync),s.lstatSync=b(s.lstatSync),s.chmod&&!s.lchmod&&(s.lchmod=function(g,S,E){E&&process.nextTick(E)},s.lchmodSync=function(){}),s.chown&&!s.lchown&&(s.lchown=function(g,S,E,v){v&&process.nextTick(v)},s.lchownSync=function(){}),l==="win32"&&(s.rename=typeof s.rename!="function"?s.rename:function(g){function S(E,v,m){var w=Date.now(),x=0;g(E,v,function A(R){if(R&&(R.code==="EACCES"||R.code==="EPERM")&&Date.now()-w<6e4){setTimeout(function(){s.stat(v,function(B,P){B&&B.code==="ENOENT"?g(E,v,A):m(R)})},x),x<100&&(x+=10);return}m&&m(R)})}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(s.rename)),s.read=typeof s.read!="function"?s.read:function(g){function S(E,v,m,w,x,A){var R;if(A&&typeof A=="function"){var B=0;R=function(P,O,D){if(P&&P.code==="EAGAIN"&&B<10)return B++,g.call(s,E,v,m,w,x,R);A.apply(this,arguments)}}return g.call(s,E,v,m,w,x,R)}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(s.read),s.readSync=typeof s.readSync!="function"?s.readSync:function(g){return function(S,E,v,m,w){for(var x=0;;)try{return g.call(s,S,E,v,m,w)}catch(A){if(A.code==="EAGAIN"&&x<10){x++;continue}throw A}}}(s.readSync);function f(g){g.lchmod=function(S,E,v){g.open(S,t.O_WRONLY|t.O_SYMLINK,E,function(m,w){if(m){v&&v(m);return}g.fchmod(w,E,function(x){g.close(w,function(A){v&&v(x||A)})})})},g.lchmodSync=function(S,E){var v=g.openSync(S,t.O_WRONLY|t.O_SYMLINK,E),m=!0,w;try{w=g.fchmodSync(v,E),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return w}}function c(g){t.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(S,E,v,m){g.open(S,t.O_SYMLINK,function(w,x){if(w){m&&m(w);return}g.futimes(x,E,v,function(A){g.close(x,function(R){m&&m(A||R)})})})},g.lutimesSync=function(S,E,v){var m=g.openSync(S,t.O_SYMLINK),w,x=!0;try{w=g.futimesSync(m,E,v),x=!1}finally{if(x)try{g.closeSync(m)}catch{}else g.closeSync(m)}return w}):g.futimes&&(g.lutimes=function(S,E,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function h(g){return g&&function(S,E,v){return g.call(s,S,E,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function u(g){return g&&function(S,E){try{return g.call(s,S,E)}catch(v){if(!_(v))throw v}}}function d(g){return g&&function(S,E,v,m){return g.call(s,S,E,v,function(w){_(w)&&(w=null),m&&m.apply(this,arguments)})}}function p(g){return g&&function(S,E,v){try{return g.call(s,S,E,v)}catch(m){if(!_(m))throw m}}}function y(g){return g&&function(S,E,v){typeof E=="function"&&(v=E,E=null);function m(w,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),v&&v.apply(this,arguments)}return E?g.call(s,S,E,m):g.call(s,S,m)}}function b(g){return g&&function(S,E){var v=E?g.call(s,S,E):g.call(s,S);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(g){if(!g||g.code==="ENOSYS")return!0;var S=!process.getuid||process.getuid()!==0;return!!(S&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),bv=te((e,r)=>{Z();var t=he("stream").Stream;r.exports=n;function n(i){return{ReadStream:l,WriteStream:a};function l(o,s){if(!(this instanceof l))return new l(o,s);t.call(this);var f=this;this.path=o,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var c=Object.keys(s),h=0,u=c.length;h<u;h++){var d=c[h];this[d]=s[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(p,y){if(p){f.emit("error",p),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function a(o,s){if(!(this instanceof a))return new a(o,s);t.call(this),this.path=o,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var f=Object.keys(s),c=0,h=f.length;c<h;c++){var u=f[c];this[u]=s[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),vv=te((e,r)=>{"use strict";Z(),r.exports=n;var t=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var l={__proto__:t(i)};else var l=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(a){Object.defineProperty(l,a,Object.getOwnPropertyDescriptor(i,a))}),l}}),je=te((e,r)=>{Z();var t=he("fs"),n=gv(),i=bv(),l=vv(),a=he("util"),o,s;typeof Symbol=="function"&&typeof Symbol.for=="function"?(o=Symbol.for("graceful-fs.queue"),s=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",s="___graceful-fs.previous");function f(){}function c(g,S){Object.defineProperty(g,o,{get:function(){return S}})}var h=f;a.debuglog?h=a.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var g=a.format.apply(a,arguments);g="GFS4: "+g.split(/\n/).join(`
|
|
125
|
+
GFS4: `),console.error(g)}),t[o]||(u=global[o]||[],c(t,u),t.close=function(g){function S(E,v){return g.call(t,E,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(S,s,{value:g}),S}(t.close),t.closeSync=function(g){function S(E){g.apply(t,arguments),b()}return Object.defineProperty(S,s,{value:g}),S}(t.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(t[o]),he("assert").equal(t[o].length,0)}));var u;global[o]||c(global,t[o]),r.exports=d(l(t)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!t.__patched&&(r.exports=d(t),t.__patched=!0);function d(g){n(g),g.gracefulify=d,g.createReadStream=F,g.createWriteStream=V;var S=g.readFile;g.readFile=E;function E(j,z,Q){return typeof z=="function"&&(Q=z,z=null),le(j,z,Q);function le(ue,Y,ne,T){return S(ue,Y,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([le,[ue,Y,ne],q,T||Date.now(),Date.now()]):typeof ne=="function"&&ne.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(j,z,Q,le){return typeof Q=="function"&&(le=Q,Q=null),ue(j,z,Q,le);function ue(Y,ne,T,q,C){return v(Y,ne,T,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?p([ue,[Y,ne,T,q],H,C||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var w=g.appendFile;w&&(g.appendFile=x);function x(j,z,Q,le){return typeof Q=="function"&&(le=Q,Q=null),ue(j,z,Q,le);function ue(Y,ne,T,q,C){return w(Y,ne,T,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?p([ue,[Y,ne,T,q],H,C||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var A=g.copyFile;A&&(g.copyFile=R);function R(j,z,Q,le){return typeof Q=="function"&&(le=Q,Q=0),ue(j,z,Q,le);function ue(Y,ne,T,q,C){return A(Y,ne,T,function(H){H&&(H.code==="EMFILE"||H.code==="ENFILE")?p([ue,[Y,ne,T,q],H,C||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var B=g.readdir;g.readdir=O;var P=/^v[0-5]\./;function O(j,z,Q){typeof z=="function"&&(Q=z,z=null);var le=P.test(process.version)?function(Y,ne,T,q){return B(Y,ue(Y,ne,T,q))}:function(Y,ne,T,q){return B(Y,ne,ue(Y,ne,T,q))};return le(j,z,Q);function ue(Y,ne,T,q){return function(C,H){C&&(C.code==="EMFILE"||C.code==="ENFILE")?p([le,[Y,ne,T],C,q||Date.now(),Date.now()]):(H&&H.sort&&H.sort(),typeof T=="function"&&T.call(this,C,H))}}}if(process.version.substr(0,4)==="v0.8"){var D=i(g);W=D.ReadStream,I=D.WriteStream}var k=g.ReadStream;k&&(W.prototype=Object.create(k.prototype),W.prototype.open=se);var M=g.WriteStream;M&&(I.prototype=Object.create(M.prototype),I.prototype.open=N),Object.defineProperty(g,"ReadStream",{get:function(){return W},set:function(j){W=j},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return I},set:function(j){I=j},enumerable:!0,configurable:!0});var L=W;Object.defineProperty(g,"FileReadStream",{get:function(){return L},set:function(j){L=j},enumerable:!0,configurable:!0});var U=I;Object.defineProperty(g,"FileWriteStream",{get:function(){return U},set:function(j){U=j},enumerable:!0,configurable:!0});function W(j,z){return this instanceof W?(k.apply(this,arguments),this):W.apply(Object.create(W.prototype),arguments)}function se(){var j=this;J(j.path,j.flags,j.mode,function(z,Q){z?(j.autoClose&&j.destroy(),j.emit("error",z)):(j.fd=Q,j.emit("open",Q),j.read())})}function I(j,z){return this instanceof I?(M.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function N(){var j=this;J(j.path,j.flags,j.mode,function(z,Q){z?(j.destroy(),j.emit("error",z)):(j.fd=Q,j.emit("open",Q))})}function F(j,z){return new g.ReadStream(j,z)}function V(j,z){return new g.WriteStream(j,z)}var G=g.open;g.open=J;function J(j,z,Q,le){return typeof Q=="function"&&(le=Q,Q=null),ue(j,z,Q,le);function ue(Y,ne,T,q,C){return G(Y,ne,T,function(H,X){H&&(H.code==="EMFILE"||H.code==="ENFILE")?p([ue,[Y,ne,T,q],H,C||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}return g}function p(g){h("ENQUEUE",g[0].name,g[1]),t[o].push(g),_()}var y;function b(){for(var g=Date.now(),S=0;S<t[o].length;++S)t[o][S].length>2&&(t[o][S][3]=g,t[o][S][4]=g);_()}function _(){if(clearTimeout(y),y=void 0,t[o].length!==0){var g=t[o].shift(),S=g[0],E=g[1],v=g[2],m=g[3],w=g[4];if(m===void 0)h("RETRY",S.name,E),S.apply(null,E);else if(Date.now()-m>=6e4){h("TIMEOUT",S.name,E);var x=E.pop();typeof x=="function"&&x.call(null,v)}else{var A=Date.now()-w,R=Math.max(w-m,1),B=Math.min(R*1.2,100);A>=B?(h("RETRY",S.name,E),S.apply(null,E.concat([m]))):t[o].push(g)}y===void 0&&(y=setTimeout(_,0))}}});var At=te(e=>{"use strict";Z(),e.fromCallback=function(r){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")r.apply(this,t);else return new Promise((n,i)=>{r.call(this,...t,(l,a)=>l!=null?i(l):n(a))})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!="function")return r.apply(this,t);r.apply(this,t.slice(0,-1)).then(i=>n(null,i),n)},"name",{value:r.name})}}),rn=te(e=>{"use strict";Z();var r=At().fromCallback,t=je(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.assign(e,t),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,l){return typeof l=="function"?t.exists(i,l):new Promise(a=>t.exists(i,a))},e.read=function(i,l,a,o,s,f){return typeof f=="function"?t.read(i,l,a,o,s,f):new Promise((c,h)=>{t.read(i,l,a,o,s,(u,d,p)=>{if(u)return h(u);c({bytesRead:d,buffer:p})})})},e.write=function(i,l,...a){return typeof a[a.length-1]=="function"?t.write(i,l,...a):new Promise((o,s)=>{t.write(i,l,...a,(f,c,h)=>{if(f)return s(f);o({bytesWritten:c,buffer:h})})})},e.readv=function(i,l,...a){return typeof a[a.length-1]=="function"?t.readv(i,l,...a):new Promise((o,s)=>{t.readv(i,l,...a,(f,c,h)=>{if(f)return s(f);o({bytesRead:c,buffers:h})})})},e.writev=function(i,l,...a){return typeof a[a.length-1]=="function"?t.writev(i,l,...a):new Promise((o,s)=>{t.writev(i,l,...a,(f,c,h)=>{if(f)return s(f);o({bytesWritten:c,buffers:h})})})},typeof t.realpath.native=="function"?e.realpath.native=r(t.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),_v=te((e,r)=>{"use strict";Z();var t=he("path");r.exports.checkPath=function(n){if(process.platform==="win32"&&/[<>:"|?*]/.test(n.replace(t.parse(n).root,""))){let i=new Error(`Path contains invalid characters: ${n}`);throw i.code="EINVAL",i}}}),wv=te((e,r)=>{"use strict";Z();var t=rn(),{checkPath:n}=_v(),i=l=>typeof l=="number"?l:{...{mode:511},...l}.mode;r.exports.makeDir=async(l,a)=>(n(l),t.mkdir(l,{mode:i(a),recursive:!0})),r.exports.makeDirSync=(l,a)=>(n(l),t.mkdirSync(l,{mode:i(a),recursive:!0}))}),jt=te((e,r)=>{"use strict";Z();var t=At().fromPromise,{makeDir:n,makeDirSync:i}=wv(),l=t(n);r.exports={mkdirs:l,mkdirsSync:i,mkdirp:l,mkdirpSync:i,ensureDir:l,ensureDirSync:i}}),Fr=te((e,r)=>{"use strict";Z();var t=At().fromPromise,n=rn();function i(l){return n.access(l).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),If=te((e,r)=>{"use strict";Z();var t=je();function n(l,a,o,s){t.open(l,"r+",(f,c)=>{if(f)return s(f);t.futimes(c,a,o,h=>{t.close(c,u=>{s&&s(h||u)})})})}function i(l,a,o){let s=t.openSync(l,"r+");return t.futimesSync(s,a,o),t.closeSync(s)}r.exports={utimesMillis:n,utimesMillisSync:i}}),nn=te((e,r)=>{"use strict";Z();var t=rn(),n=he("path"),i=he("util");function l(p,y,b){let _=b.dereference?g=>t.stat(g,{bigint:!0}):g=>t.lstat(g,{bigint:!0});return Promise.all([_(p),_(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,S])=>({srcStat:g,destStat:S}))}function a(p,y,b){let _,g=b.dereference?E=>t.statSync(E,{bigint:!0}):E=>t.lstatSync(E,{bigint:!0}),S=g(p);try{_=g(y)}catch(E){if(E.code==="ENOENT")return{srcStat:S,destStat:null};throw E}return{srcStat:S,destStat:_}}function o(p,y,b,_,g){i.callbackify(l)(p,y,_,(S,E)=>{if(S)return g(S);let{srcStat:v,destStat:m}=E;if(m){if(h(v,m)){let w=n.basename(p),x=n.basename(y);return b==="move"&&w!==x&&w.toLowerCase()===x.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`))}return v.isDirectory()&&u(p,y)?g(new Error(d(p,y,b))):g(null,{srcStat:v,destStat:m})})}function s(p,y,b,_){let{srcStat:g,destStat:S}=a(p,y,_);if(S){if(h(g,S)){let E=n.basename(p),v=n.basename(y);if(b==="move"&&E!==v&&E.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:S,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!S.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`);if(!g.isDirectory()&&S.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`)}if(g.isDirectory()&&u(p,y))throw new Error(d(p,y,b));return{srcStat:g,destStat:S}}function f(p,y,b,_,g){let S=n.resolve(n.dirname(p)),E=n.resolve(n.dirname(b));if(E===S||E===n.parse(E).root)return g();t.stat(E,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):h(y,m)?g(new Error(d(p,b,_))):f(p,y,E,_,g))}function c(p,y,b,_){let g=n.resolve(n.dirname(p)),S=n.resolve(n.dirname(b));if(S===g||S===n.parse(S).root)return;let E;try{E=t.statSync(S,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(h(y,E))throw new Error(d(p,b,_));return c(p,y,S,_)}function h(p,y){return y.ino&&y.dev&&y.ino===p.ino&&y.dev===p.dev}function u(p,y){let b=n.resolve(p).split(n.sep).filter(g=>g),_=n.resolve(y).split(n.sep).filter(g=>g);return b.reduce((g,S,E)=>g&&_[E]===S,!0)}function d(p,y,b){return`Cannot ${b} '${p}' to a subdirectory of itself, '${y}'.`}r.exports={checkPaths:o,checkPathsSync:s,checkParentPaths:f,checkParentPathsSync:c,isSrcSubdir:u,areIdentical:h}}),Ev=te((e,r)=>{"use strict";Z();var t=je(),n=he("path"),i=jt().mkdirs,l=Fr().pathExists,a=If().utimesMillis,o=nn();function s(P,O,D,k){typeof D=="function"&&!k?(k=D,D={}):typeof D=="function"&&(D={filter:D}),k=k||function(){},D=D||{},D.clobber="clobber"in D?!!D.clobber:!0,D.overwrite="overwrite"in D?!!D.overwrite:D.clobber,D.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
126
|
+
|
|
127
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),o.checkPaths(P,O,"copy",D,(M,L)=>{if(M)return k(M);let{srcStat:U,destStat:W}=L;o.checkParentPaths(P,U,O,"copy",se=>{if(se)return k(se);c(P,O,D,(I,N)=>{if(I)return k(I);if(!N)return k();f(W,P,O,D,k)})})})}function f(P,O,D,k,M){let L=n.dirname(D);l(L,(U,W)=>{if(U)return M(U);if(W)return h(P,O,D,k,M);i(L,se=>se?M(se):h(P,O,D,k,M))})}function c(P,O,D,k){if(!D.filter)return k(null,!0);Promise.resolve(D.filter(P,O)).then(M=>k(null,M),M=>k(M))}function h(P,O,D,k,M){(k.dereference?t.stat:t.lstat)(O,(L,U)=>L?M(L):U.isDirectory()?v(U,P,O,D,k,M):U.isFile()||U.isCharacterDevice()||U.isBlockDevice()?u(U,P,O,D,k,M):U.isSymbolicLink()?R(P,O,D,k,M):U.isSocket()?M(new Error(`Cannot copy a socket file: ${O}`)):U.isFIFO()?M(new Error(`Cannot copy a FIFO pipe: ${O}`)):M(new Error(`Unknown file: ${O}`)))}function u(P,O,D,k,M,L){return O?d(P,D,k,M,L):p(P,D,k,M,L)}function d(P,O,D,k,M){if(k.overwrite)t.unlink(D,L=>L?M(L):p(P,O,D,k,M));else return k.errorOnExist?M(new Error(`'${D}' already exists`)):M()}function p(P,O,D,k,M){t.copyFile(O,D,L=>L?M(L):k.preserveTimestamps?y(P.mode,O,D,M):S(D,P.mode,M))}function y(P,O,D,k){return b(P)?_(D,P,M=>M?k(M):g(P,O,D,k)):g(P,O,D,k)}function b(P){return(P&128)===0}function _(P,O,D){return S(P,O|128,D)}function g(P,O,D,k){E(O,D,M=>M?k(M):S(D,P,k))}function S(P,O,D){return t.chmod(P,O,D)}function E(P,O,D){t.stat(P,(k,M)=>k?D(k):a(O,M.atime,M.mtime,D))}function v(P,O,D,k,M,L){return O?w(D,k,M,L):m(P.mode,D,k,M,L)}function m(P,O,D,k,M){t.mkdir(D,L=>{if(L)return M(L);w(O,D,k,U=>U?M(U):S(D,P,M))})}function w(P,O,D,k){t.readdir(P,(M,L)=>M?k(M):x(L,P,O,D,k))}function x(P,O,D,k,M){let L=P.pop();return L?A(P,L,O,D,k,M):M()}function A(P,O,D,k,M,L){let U=n.join(D,O),W=n.join(k,O);c(U,W,M,(se,I)=>{if(se)return L(se);if(!I)return x(P,D,k,M,L);o.checkPaths(U,W,"copy",M,(N,F)=>{if(N)return L(N);let{destStat:V}=F;h(V,U,W,M,G=>G?L(G):x(P,D,k,M,L))})})}function R(P,O,D,k,M){t.readlink(O,(L,U)=>{if(L)return M(L);if(k.dereference&&(U=n.resolve(process.cwd(),U)),P)t.readlink(D,(W,se)=>W?W.code==="EINVAL"||W.code==="UNKNOWN"?t.symlink(U,D,M):M(W):(k.dereference&&(se=n.resolve(process.cwd(),se)),o.isSrcSubdir(U,se)?M(new Error(`Cannot copy '${U}' to a subdirectory of itself, '${se}'.`)):o.isSrcSubdir(se,U)?M(new Error(`Cannot overwrite '${se}' with '${U}'.`)):B(U,D,M)));else return t.symlink(U,D,M)})}function B(P,O,D){t.unlink(O,k=>k?D(k):t.symlink(P,O,D))}r.exports=s}),Sv=te((e,r)=>{"use strict";Z();var t=je(),n=he("path"),i=jt().mkdirsSync,l=If().utimesMillisSync,a=nn();function o(w,x,A){typeof A=="function"&&(A={filter:A}),A=A||{},A.clobber="clobber"in A?!!A.clobber:!0,A.overwrite="overwrite"in A?!!A.overwrite:A.clobber,A.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
128
|
+
|
|
129
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:R,destStat:B}=a.checkPathsSync(w,x,"copy",A);if(a.checkParentPathsSync(w,R,x,"copy"),A.filter&&!A.filter(w,x))return;let P=n.dirname(x);return t.existsSync(P)||i(P),s(B,w,x,A)}function s(w,x,A,R){let B=(R.dereference?t.statSync:t.lstatSync)(x);if(B.isDirectory())return _(B,w,x,A,R);if(B.isFile()||B.isCharacterDevice()||B.isBlockDevice())return f(B,w,x,A,R);if(B.isSymbolicLink())return v(w,x,A,R);throw B.isSocket()?new Error(`Cannot copy a socket file: ${x}`):B.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${x}`):new Error(`Unknown file: ${x}`)}function f(w,x,A,R,B){return x?c(w,A,R,B):h(w,A,R,B)}function c(w,x,A,R){if(R.overwrite)return t.unlinkSync(A),h(w,x,A,R);if(R.errorOnExist)throw new Error(`'${A}' already exists`)}function h(w,x,A,R){return t.copyFileSync(x,A),R.preserveTimestamps&&u(w.mode,x,A),y(A,w.mode)}function u(w,x,A){return d(w)&&p(A,w),b(x,A)}function d(w){return(w&128)===0}function p(w,x){return y(w,x|128)}function y(w,x){return t.chmodSync(w,x)}function b(w,x){let A=t.statSync(w);return l(x,A.atime,A.mtime)}function _(w,x,A,R,B){return x?S(A,R,B):g(w.mode,A,R,B)}function g(w,x,A,R){return t.mkdirSync(A),S(x,A,R),y(A,w)}function S(w,x,A){t.readdirSync(w).forEach(R=>E(R,w,x,A))}function E(w,x,A,R){let B=n.join(x,w),P=n.join(A,w);if(R.filter&&!R.filter(B,P))return;let{destStat:O}=a.checkPathsSync(B,P,"copy",R);return s(O,B,P,R)}function v(w,x,A,R){let B=t.readlinkSync(x);if(R.dereference&&(B=n.resolve(process.cwd(),B)),w){let P;try{P=t.readlinkSync(A)}catch(O){if(O.code==="EINVAL"||O.code==="UNKNOWN")return t.symlinkSync(B,A);throw O}if(R.dereference&&(P=n.resolve(process.cwd(),P)),a.isSrcSubdir(B,P))throw new Error(`Cannot copy '${B}' to a subdirectory of itself, '${P}'.`);if(a.isSrcSubdir(P,B))throw new Error(`Cannot overwrite '${P}' with '${B}'.`);return m(B,A)}else return t.symlinkSync(B,A)}function m(w,x){return t.unlinkSync(x),t.symlinkSync(w,x)}r.exports=o}),ba=te((e,r)=>{"use strict";Z();var t=At().fromCallback;r.exports={copy:t(Ev()),copySync:Sv()}}),es=te((e,r)=>{"use strict";Z();var t=je(),n=At().fromCallback;function i(a,o){t.rm(a,{recursive:!0,force:!0},o)}function l(a){t.rmSync(a,{recursive:!0,force:!0})}r.exports={remove:n(i),removeSync:l}}),xv=te((e,r)=>{"use strict";Z();var t=At().fromPromise,n=rn(),i=he("path"),l=jt(),a=es(),o=t(async function(f){let c;try{c=await n.readdir(f)}catch{return l.mkdirs(f)}return Promise.all(c.map(h=>a.remove(i.join(f,h))))});function s(f){let c;try{c=n.readdirSync(f)}catch{return l.mkdirsSync(f)}c.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:s,emptydirSync:s,emptyDir:o,emptydir:o}}),Av=te((e,r)=>{"use strict";Z();var t=At().fromCallback,n=he("path"),i=je(),l=jt();function a(s,f){function c(){i.writeFile(s,"",h=>{if(h)return f(h);f()})}i.stat(s,(h,u)=>{if(!h&&u.isFile())return f();let d=n.dirname(s);i.stat(d,(p,y)=>{if(p)return p.code==="ENOENT"?l.mkdirs(d,b=>{if(b)return f(b);c()}):f(p);y.isDirectory()?c():i.readdir(d,b=>{if(b)return f(b)})})})}function o(s){let f;try{f=i.statSync(s)}catch{}if(f&&f.isFile())return;let c=n.dirname(s);try{i.statSync(c).isDirectory()||i.readdirSync(c)}catch(h){if(h&&h.code==="ENOENT")l.mkdirsSync(c);else throw h}i.writeFileSync(s,"")}r.exports={createFile:t(a),createFileSync:o}}),Cv=te((e,r)=>{"use strict";Z();var t=At().fromCallback,n=he("path"),i=je(),l=jt(),a=Fr().pathExists,{areIdentical:o}=nn();function s(c,h,u){function d(p,y){i.link(p,y,b=>{if(b)return u(b);u(null)})}i.lstat(h,(p,y)=>{i.lstat(c,(b,_)=>{if(b)return b.message=b.message.replace("lstat","ensureLink"),u(b);if(y&&o(_,y))return u(null);let g=n.dirname(h);a(g,(S,E)=>{if(S)return u(S);if(E)return d(c,h);l.mkdirs(g,v=>{if(v)return u(v);d(c,h)})})})})}function f(c,h){let u;try{u=i.lstatSync(h)}catch{}try{let p=i.lstatSync(c);if(u&&o(p,u))return}catch(p){throw p.message=p.message.replace("lstat","ensureLink"),p}let d=n.dirname(h);return i.existsSync(d)||l.mkdirsSync(d),i.linkSync(c,h)}r.exports={createLink:t(s),createLinkSync:f}}),kv=te((e,r)=>{"use strict";Z();var t=he("path"),n=je(),i=Fr().pathExists;function l(o,s,f){if(t.isAbsolute(o))return n.lstat(o,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),f(c)):f(null,{toCwd:o,toDst:o}));{let c=t.dirname(s),h=t.join(c,o);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:o}):n.lstat(o,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:o,toDst:t.relative(c,o)})))}}function a(o,s){let f;if(t.isAbsolute(o)){if(f=n.existsSync(o),!f)throw new Error("absolute srcpath does not exist");return{toCwd:o,toDst:o}}else{let c=t.dirname(s),h=t.join(c,o);if(f=n.existsSync(h),f)return{toCwd:h,toDst:o};if(f=n.existsSync(o),!f)throw new Error("relative srcpath does not exist");return{toCwd:o,toDst:t.relative(c,o)}}}r.exports={symlinkPaths:l,symlinkPathsSync:a}}),Dv=te((e,r)=>{"use strict";Z();var t=je();function n(l,a,o){if(o=typeof a=="function"?a:o,a=typeof a=="function"?!1:a,a)return o(null,a);t.lstat(l,(s,f)=>{if(s)return o(null,"file");a=f&&f.isDirectory()?"dir":"file",o(null,a)})}function i(l,a){let o;if(a)return a;try{o=t.lstatSync(l)}catch{return"file"}return o&&o.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),Rv=te((e,r)=>{"use strict";Z();var t=At().fromCallback,n=he("path"),i=rn(),l=jt(),a=l.mkdirs,o=l.mkdirsSync,s=kv(),f=s.symlinkPaths,c=s.symlinkPathsSync,h=Dv(),u=h.symlinkType,d=h.symlinkTypeSync,p=Fr().pathExists,{areIdentical:y}=nn();function b(S,E,v,m){m=typeof v=="function"?v:m,v=typeof v=="function"?!1:v,i.lstat(E,(w,x)=>{!w&&x.isSymbolicLink()?Promise.all([i.stat(S),i.stat(E)]).then(([A,R])=>{if(y(A,R))return m(null);_(S,E,v,m)}):_(S,E,v,m)})}function _(S,E,v,m){f(S,E,(w,x)=>{if(w)return m(w);S=x.toDst,u(x.toCwd,v,(A,R)=>{if(A)return m(A);let B=n.dirname(E);p(B,(P,O)=>{if(P)return m(P);if(O)return i.symlink(S,E,R,m);a(B,D=>{if(D)return m(D);i.symlink(S,E,R,m)})})})})}function g(S,E,v){let m;try{m=i.lstatSync(E)}catch{}if(m&&m.isSymbolicLink()){let A=i.statSync(S),R=i.statSync(E);if(y(A,R))return}let w=c(S,E);S=w.toDst,v=d(w.toCwd,v);let x=n.dirname(E);return i.existsSync(x)||o(x),i.symlinkSync(S,E,v)}r.exports={createSymlink:t(b),createSymlinkSync:g}}),Ov=te((e,r)=>{"use strict";Z();var{createFile:t,createFileSync:n}=Av(),{createLink:i,createLinkSync:l}=Cv(),{createSymlink:a,createSymlinkSync:o}=Rv();r.exports={createFile:t,createFileSync:n,ensureFile:t,ensureFileSync:n,createLink:i,createLinkSync:l,ensureLink:i,ensureLinkSync:l,createSymlink:a,createSymlinkSync:o,ensureSymlink:a,ensureSymlinkSync:o}}),va=te((e,r)=>{Z();function t(i,{EOL:l=`
|
|
130
|
+
`,finalEOL:a=!0,replacer:o=null,spaces:s}={}){let f=a?l:"";return JSON.stringify(i,o,s).replace(/\n/g,l)+f}function n(i){return Buffer.isBuffer(i)&&(i=i.toString("utf8")),i.replace(/^\uFEFF/,"")}r.exports={stringify:t,stripBom:n}}),Tv=te((e,r)=>{Z();var t;try{t=je()}catch{t=he("fs")}var n=At(),{stringify:i,stripBom:l}=va();async function a(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0,_=await n.fromCallback(y.readFile)(d,p);_=l(_);let g;try{g=JSON.parse(_,p?p.reviver:null)}catch(S){if(b)throw S.message=`${d}: ${S.message}`,S;return null}return g}var o=n.fromPromise(a);function s(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0;try{let _=y.readFileSync(d,p);return _=l(_),JSON.parse(_,p.reviver)}catch(_){if(b)throw _.message=`${d}: ${_.message}`,_;return null}}async function f(d,p,y={}){let b=y.fs||t,_=i(p,y);await n.fromCallback(b.writeFile)(d,_,y)}var c=n.fromPromise(f);function h(d,p,y={}){let b=y.fs||t,_=i(p,y);return b.writeFileSync(d,_,y)}var u={readFile:o,readFileSync:s,writeFile:c,writeFileSync:h};r.exports=u}),Fv=te((e,r)=>{"use strict";Z();var t=Tv();r.exports={readJson:t.readFile,readJsonSync:t.readFileSync,writeJson:t.writeFile,writeJsonSync:t.writeFileSync}}),_a=te((e,r)=>{"use strict";Z();var t=At().fromCallback,n=je(),i=he("path"),l=jt(),a=Fr().pathExists;function o(f,c,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,c,h,u);l.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,c,h,u)})})}function s(f,...c){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...c);l.mkdirsSync(h),n.writeFileSync(f,...c)}r.exports={outputFile:t(o),outputFileSync:s}}),Pv=te((e,r)=>{"use strict";Z();var{stringify:t}=va(),{outputFile:n}=_a();async function i(l,a,o={}){let s=t(a,o);await n(l,s,o)}r.exports=i}),Bv=te((e,r)=>{"use strict";Z();var{stringify:t}=va(),{outputFileSync:n}=_a();function i(l,a,o){let s=t(a,o);n(l,s,o)}r.exports=i}),Iv=te((e,r)=>{"use strict";Z();var t=At().fromPromise,n=Fv();n.outputJson=t(Pv()),n.outputJsonSync=Bv(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),Lv=te((e,r)=>{"use strict";Z();var t=je(),n=he("path"),i=ba().copy,l=es().remove,a=jt().mkdirp,o=Fr().pathExists,s=nn();function f(p,y,b,_){typeof b=="function"&&(_=b,b={}),b=b||{};let g=b.overwrite||b.clobber||!1;s.checkPaths(p,y,"move",b,(S,E)=>{if(S)return _(S);let{srcStat:v,isChangingCase:m=!1}=E;s.checkParentPaths(p,v,y,"move",w=>{if(w)return _(w);if(c(y))return h(p,y,g,m,_);a(n.dirname(y),x=>x?_(x):h(p,y,g,m,_))})})}function c(p){let y=n.dirname(p);return n.parse(y).root===y}function h(p,y,b,_,g){if(_)return u(p,y,b,g);if(b)return l(y,S=>S?g(S):u(p,y,b,g));o(y,(S,E)=>S?g(S):E?g(new Error("dest already exists.")):u(p,y,b,g))}function u(p,y,b,_){t.rename(p,y,g=>g?g.code!=="EXDEV"?_(g):d(p,y,b,_):_())}function d(p,y,b,_){i(p,y,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},g=>g?_(g):l(p,_))}r.exports=f}),Mv=te((e,r)=>{"use strict";Z();var t=je(),n=he("path"),i=ba().copySync,l=es().removeSync,a=jt().mkdirpSync,o=nn();function s(d,p,y){y=y||{};let b=y.overwrite||y.clobber||!1,{srcStat:_,isChangingCase:g=!1}=o.checkPathsSync(d,p,"move",y);return o.checkParentPathsSync(d,_,p,"move"),f(p)||a(n.dirname(p)),c(d,p,b,g)}function f(d){let p=n.dirname(d);return n.parse(p).root===p}function c(d,p,y,b){if(b)return h(d,p,y);if(y)return l(p),h(d,p,y);if(t.existsSync(p))throw new Error("dest already exists.");return h(d,p,y)}function h(d,p,y){try{t.renameSync(d,p)}catch(b){if(b.code!=="EXDEV")throw b;return u(d,p,y)}}function u(d,p,y){return i(d,p,{overwrite:y,errorOnExist:!0,preserveTimestamps:!0}),l(d)}r.exports=s}),Nv=te((e,r)=>{"use strict";Z();var t=At().fromCallback;r.exports={move:t(Lv()),moveSync:Mv()}}),fr=te((e,r)=>{"use strict";Z(),r.exports={...rn(),...ba(),...xv(),...Ov(),...Iv(),...jt(),...Nv(),..._a(),...Fr(),...es()}});Z();var jv=Ge(fr()),$v=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log","yarnrc.yml",".yarn"];function ni(e){let r=jv.default.readdirSync(e).filter(t=>!$v.includes(t)).filter(t=>!/\.iml$/.test(t));return{isEmpty:r.length===0,conflicts:r}}Z();var wa=Ge(fr());async function Ea(e){try{return await wa.default.access(e,(wa.default.constants||wa.default).W_OK),!0}catch{return!1}}var Hv=te((e,r)=>{"use strict";Z();var t=(n,i)=>{for(let l of Reflect.ownKeys(i))Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(i,l));return n};r.exports=t,r.exports.default=t}),ts=te((e,r)=>{"use strict";Z();var t=Hv(),n=new WeakMap,i=(l,a={})=>{if(typeof l!="function")throw new TypeError("Expected a function");let o,s=0,f=l.displayName||l.name||"<anonymous>",c=function(...h){if(n.set(c,++s),s===1)o=l.apply(this,h),l=null;else if(a.throw===!0)throw new Error(`Function \`${f}\` can only be called once`);return o};return t(c,l),n.set(c,s),c};r.exports=i,r.exports.default=i,r.exports.callCount=l=>{if(!n.has(l))throw new Error(`The given function \`${l.name}\` is not wrapped by the \`onetime\` package`);return n.get(l)}}),qv=te((e,r)=>{Z(),r.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&r.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&r.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),rs=te((e,r)=>{Z();var t=global.process,n=function(g){return g&&typeof g=="object"&&typeof g.removeListener=="function"&&typeof g.emit=="function"&&typeof g.reallyExit=="function"&&typeof g.listeners=="function"&&typeof g.kill=="function"&&typeof g.pid=="number"&&typeof g.on=="function"};n(t)?(i=he("assert"),l=qv(),a=/^win/i.test(t.platform),o=he("events"),typeof o!="function"&&(o=o.EventEmitter),t.__signal_exit_emitter__?s=t.__signal_exit_emitter__:(s=t.__signal_exit_emitter__=new o,s.count=0,s.emitted={}),s.infinite||(s.setMaxListeners(1/0),s.infinite=!0),r.exports=function(g,S){if(!n(global.process))return function(){};i.equal(typeof g,"function","a callback must be provided for exit handler"),u===!1&&d();var E="exit";S&&S.alwaysLast&&(E="afterexit");var v=function(){s.removeListener(E,g),s.listeners("exit").length===0&&s.listeners("afterexit").length===0&&f()};return s.on(E,g),v},f=function(){!u||!n(global.process)||(u=!1,l.forEach(function(g){try{t.removeListener(g,h[g])}catch{}}),t.emit=b,t.reallyExit=p,s.count-=1)},r.exports.unload=f,c=function(g,S,E){s.emitted[g]||(s.emitted[g]=!0,s.emit(g,S,E))},h={},l.forEach(function(g){h[g]=function(){if(n(global.process)){var S=t.listeners(g);S.length===s.count&&(f(),c("exit",null,g),c("afterexit",null,g),a&&g==="SIGHUP"&&(g="SIGINT"),t.kill(t.pid,g))}}}),r.exports.signals=function(){return l},u=!1,d=function(){u||!n(global.process)||(u=!0,s.count+=1,l=l.filter(function(g){try{return t.on(g,h[g]),!0}catch{return!1}}),t.emit=_,t.reallyExit=y)},r.exports.load=d,p=t.reallyExit,y=function(g){!n(global.process)||(t.exitCode=g||0,c("exit",t.exitCode,null),c("afterexit",t.exitCode,null),p.call(t,t.exitCode))},b=t.emit,_=function(g,S){if(g==="exit"&&n(global.process)){S!==void 0&&(t.exitCode=S);var E=b.apply(this,arguments);return c("exit",t.exitCode,null),c("afterexit",t.exitCode,null),E}else return b.apply(this,arguments)}):r.exports=function(){return function(){}};var i,l,a,o,s,f,c,h,u,d,p,y,b,_});var Uv=te((e,r)=>{"use strict";Z();var t=/[|\\{}()[\]^$+*?.]/g;r.exports=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(t,"\\$&")}}),Gv=te((e,r)=>{"use strict";Z(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),Lf=te((e,r)=>{Z();var t=Gv(),n={};for(i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var i,l=r.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(s in l)if(l.hasOwnProperty(s)){if(!("channels"in l[s]))throw new Error("missing channels property: "+s);if(!("labels"in l[s]))throw new Error("missing channel labels property: "+s);if(l[s].labels.length!==l[s].channels)throw new Error("channel and label counts mismatch: "+s);a=l[s].channels,o=l[s].labels,delete l[s].channels,delete l[s].labels,Object.defineProperty(l[s],"channels",{value:a}),Object.defineProperty(l[s],"labels",{value:o})}var a,o,s;l.rgb.hsl=function(c){var h=c[0]/255,u=c[1]/255,d=c[2]/255,p=Math.min(h,u,d),y=Math.max(h,u,d),b=y-p,_,g,S;return y===p?_=0:h===y?_=(u-d)/b:u===y?_=2+(d-h)/b:d===y&&(_=4+(h-u)/b),_=Math.min(_*60,360),_<0&&(_+=360),S=(p+y)/2,y===p?g=0:S<=.5?g=b/(y+p):g=b/(2-y-p),[_,g*100,S*100]},l.rgb.hsv=function(c){var h,u,d,p,y,b=c[0]/255,_=c[1]/255,g=c[2]/255,S=Math.max(b,_,g),E=S-Math.min(b,_,g),v=function(m){return(S-m)/6/E+1/2};return E===0?p=y=0:(y=E/S,h=v(b),u=v(_),d=v(g),b===S?p=d-u:_===S?p=1/3+h-d:g===S&&(p=2/3+u-h),p<0?p+=1:p>1&&(p-=1)),[p*360,y*100,S*100]},l.rgb.hwb=function(c){var h=c[0],u=c[1],d=c[2],p=l.rgb.hsl(c)[0],y=1/255*Math.min(h,Math.min(u,d));return d=1-1/255*Math.max(h,Math.max(u,d)),[p,y*100,d*100]},l.rgb.cmyk=function(c){var h=c[0]/255,u=c[1]/255,d=c[2]/255,p,y,b,_;return _=Math.min(1-h,1-u,1-d),p=(1-h-_)/(1-_)||0,y=(1-u-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[p*100,y*100,b*100,_*100]};function f(c,h){return Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)+Math.pow(c[2]-h[2],2)}l.rgb.keyword=function(c){var h=n[c];if(h)return h;var u=1/0,d;for(var p in t)if(t.hasOwnProperty(p)){var y=t[p],b=f(c,y);b<u&&(u=b,d=p)}return d},l.keyword.rgb=function(c){return t[c]},l.rgb.xyz=function(c){var h=c[0]/255,u=c[1]/255,d=c[2]/255;h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92,u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=h*.4124+u*.3576+d*.1805,y=h*.2126+u*.7152+d*.0722,b=h*.0193+u*.1192+d*.9505;return[p*100,y*100,b*100]},l.rgb.lab=function(c){var h=l.rgb.xyz(c),u=h[0],d=h[1],p=h[2],y,b,_;return u/=95.047,d/=100,p/=108.883,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,y=116*d-16,b=500*(u-d),_=200*(d-p),[y,b,_]},l.hsl.rgb=function(c){var h=c[0]/360,u=c[1]/100,d=c[2]/100,p,y,b,_,g;if(u===0)return g=d*255,[g,g,g];d<.5?y=d*(1+u):y=d+u-d*u,p=2*d-y,_=[0,0,0];for(var S=0;S<3;S++)b=h+1/3*-(S-1),b<0&&b++,b>1&&b--,6*b<1?g=p+(y-p)*6*b:2*b<1?g=y:3*b<2?g=p+(y-p)*(2/3-b)*6:g=p,_[S]=g*255;return _},l.hsl.hsv=function(c){var h=c[0],u=c[1]/100,d=c[2]/100,p=u,y=Math.max(d,.01),b,_;return d*=2,u*=d<=1?d:2-d,p*=y<=1?y:2-y,_=(d+u)/2,b=d===0?2*p/(y+p):2*u/(d+u),[h,b*100,_*100]},l.hsv.rgb=function(c){var h=c[0]/60,u=c[1]/100,d=c[2]/100,p=Math.floor(h)%6,y=h-Math.floor(h),b=255*d*(1-u),_=255*d*(1-u*y),g=255*d*(1-u*(1-y));switch(d*=255,p){case 0:return[d,g,b];case 1:return[_,d,b];case 2:return[b,d,g];case 3:return[b,_,d];case 4:return[g,b,d];case 5:return[d,b,_]}},l.hsv.hsl=function(c){var h=c[0],u=c[1]/100,d=c[2]/100,p=Math.max(d,.01),y,b,_;return _=(2-u)*d,y=(2-u)*p,b=u*p,b/=y<=1?y:2-y,b=b||0,_/=2,[h,b*100,_*100]},l.hwb.rgb=function(c){var h=c[0]/360,u=c[1]/100,d=c[2]/100,p=u+d,y,b,_,g;p>1&&(u/=p,d/=p),y=Math.floor(6*h),b=1-d,_=6*h-y,y&1&&(_=1-_),g=u+_*(b-u);var S,E,v;switch(y){default:case 6:case 0:S=b,E=g,v=u;break;case 1:S=g,E=b,v=u;break;case 2:S=u,E=b,v=g;break;case 3:S=u,E=g,v=b;break;case 4:S=g,E=u,v=b;break;case 5:S=b,E=u,v=g;break}return[S*255,E*255,v*255]},l.cmyk.rgb=function(c){var h=c[0]/100,u=c[1]/100,d=c[2]/100,p=c[3]/100,y,b,_;return y=1-Math.min(1,h*(1-p)+p),b=1-Math.min(1,u*(1-p)+p),_=1-Math.min(1,d*(1-p)+p),[y*255,b*255,_*255]},l.xyz.rgb=function(c){var h=c[0]/100,u=c[1]/100,d=c[2]/100,p,y,b;return p=h*3.2406+u*-1.5372+d*-.4986,y=h*-.9689+u*1.8758+d*.0415,b=h*.0557+u*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,p=Math.min(Math.max(0,p),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[p*255,y*255,b*255]},l.xyz.lab=function(c){var h=c[0],u=c[1],d=c[2],p,y,b;return h/=95.047,u/=100,d/=108.883,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*u-16,y=500*(h-u),b=200*(u-d),[p,y,b]},l.lab.xyz=function(c){var h=c[0],u=c[1],d=c[2],p,y,b;y=(h+16)/116,p=u/500+y,b=y-d/200;var _=Math.pow(y,3),g=Math.pow(p,3),S=Math.pow(b,3);return y=_>.008856?_:(y-16/116)/7.787,p=g>.008856?g:(p-16/116)/7.787,b=S>.008856?S:(b-16/116)/7.787,p*=95.047,y*=100,b*=108.883,[p,y,b]},l.lab.lch=function(c){var h=c[0],u=c[1],d=c[2],p,y,b;return p=Math.atan2(d,u),y=p*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(u*u+d*d),[h,b,y]},l.lch.lab=function(c){var h=c[0],u=c[1],d=c[2],p,y,b;return b=d/360*2*Math.PI,p=u*Math.cos(b),y=u*Math.sin(b),[h,p,y]},l.rgb.ansi16=function(c){var h=c[0],u=c[1],d=c[2],p=1 in arguments?arguments[1]:l.rgb.hsv(c)[2];if(p=Math.round(p/50),p===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(h/255));return p===2&&(y+=60),y},l.hsv.ansi16=function(c){return l.rgb.ansi16(l.hsv.rgb(c),c[2])},l.rgb.ansi256=function(c){var h=c[0],u=c[1],d=c[2];if(h===u&&u===d)return h<8?16:h>248?231:Math.round((h-8)/247*24)+232;var p=16+36*Math.round(h/255*5)+6*Math.round(u/255*5)+Math.round(d/255*5);return p},l.ansi16.rgb=function(c){var h=c%10;if(h===0||h===7)return c>50&&(h+=3.5),h=h/10.5*255,[h,h,h];var u=(~~(c>50)+1)*.5,d=(h&1)*u*255,p=(h>>1&1)*u*255,y=(h>>2&1)*u*255;return[d,p,y]},l.ansi256.rgb=function(c){if(c>=232){var h=(c-232)*10+8;return[h,h,h]}c-=16;var u,d=Math.floor(c/36)/5*255,p=Math.floor((u=c%36)/6)/5*255,y=u%6/5*255;return[d,p,y]},l.rgb.hex=function(c){var h=((Math.round(c[0])&255)<<16)+((Math.round(c[1])&255)<<8)+(Math.round(c[2])&255),u=h.toString(16).toUpperCase();return"000000".substring(u.length)+u},l.hex.rgb=function(c){var h=c.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!h)return[0,0,0];var u=h[0];h[0].length===3&&(u=u.split("").map(function(_){return _+_}).join(""));var d=parseInt(u,16),p=d>>16&255,y=d>>8&255,b=d&255;return[p,y,b]},l.rgb.hcg=function(c){var h=c[0]/255,u=c[1]/255,d=c[2]/255,p=Math.max(Math.max(h,u),d),y=Math.min(Math.min(h,u),d),b=p-y,_,g;return b<1?_=y/(1-b):_=0,b<=0?g=0:p===h?g=(u-d)/b%6:p===u?g=2+(d-h)/b:g=4+(h-u)/b+4,g/=6,g%=1,[g*360,b*100,_*100]},l.hsl.hcg=function(c){var h=c[1]/100,u=c[2]/100,d=1,p=0;return u<.5?d=2*h*u:d=2*h*(1-u),d<1&&(p=(u-.5*d)/(1-d)),[c[0],d*100,p*100]},l.hsv.hcg=function(c){var h=c[1]/100,u=c[2]/100,d=h*u,p=0;return d<1&&(p=(u-d)/(1-d)),[c[0],d*100,p*100]},l.hcg.rgb=function(c){var h=c[0]/360,u=c[1]/100,d=c[2]/100;if(u===0)return[d*255,d*255,d*255];var p=[0,0,0],y=h%1*6,b=y%1,_=1-b,g=0;switch(Math.floor(y)){case 0:p[0]=1,p[1]=b,p[2]=0;break;case 1:p[0]=_,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=b;break;case 3:p[0]=0,p[1]=_,p[2]=1;break;case 4:p[0]=b,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=_}return g=(1-u)*d,[(u*p[0]+g)*255,(u*p[1]+g)*255,(u*p[2]+g)*255]},l.hcg.hsv=function(c){var h=c[1]/100,u=c[2]/100,d=h+u*(1-h),p=0;return d>0&&(p=h/d),[c[0],p*100,d*100]},l.hcg.hsl=function(c){var h=c[1]/100,u=c[2]/100,d=u*(1-h)+.5*h,p=0;return d>0&&d<.5?p=h/(2*d):d>=.5&&d<1&&(p=h/(2*(1-d))),[c[0],p*100,d*100]},l.hcg.hwb=function(c){var h=c[1]/100,u=c[2]/100,d=h+u*(1-h);return[c[0],(d-h)*100,(1-d)*100]},l.hwb.hcg=function(c){var h=c[1]/100,u=c[2]/100,d=1-u,p=d-h,y=0;return p<1&&(y=(d-p)/(1-p)),[c[0],p*100,y*100]},l.apple.rgb=function(c){return[c[0]/65535*255,c[1]/65535*255,c[2]/65535*255]},l.rgb.apple=function(c){return[c[0]/255*65535,c[1]/255*65535,c[2]/255*65535]},l.gray.rgb=function(c){return[c[0]/100*255,c[0]/100*255,c[0]/100*255]},l.gray.hsl=l.gray.hsv=function(c){return[0,0,c[0]]},l.gray.hwb=function(c){return[0,100,c[0]]},l.gray.cmyk=function(c){return[0,0,0,c[0]]},l.gray.lab=function(c){return[c[0],0,0]},l.gray.hex=function(c){var h=Math.round(c[0]/100*255)&255,u=(h<<16)+(h<<8)+h,d=u.toString(16).toUpperCase();return"000000".substring(d.length)+d},l.rgb.gray=function(c){var h=(c[0]+c[1]+c[2])/3;return[h/255*100]}}),Wv=te((e,r)=>{Z();var t=Lf();function n(){for(var o={},s=Object.keys(t),f=s.length,c=0;c<f;c++)o[s[c]]={distance:-1,parent:null};return o}function i(o){var s=n(),f=[o];for(s[o].distance=0;f.length;)for(var c=f.pop(),h=Object.keys(t[c]),u=h.length,d=0;d<u;d++){var p=h[d],y=s[p];y.distance===-1&&(y.distance=s[c].distance+1,y.parent=c,f.unshift(p))}return s}function l(o,s){return function(f){return s(o(f))}}function a(o,s){for(var f=[s[o].parent,o],c=t[s[o].parent][o],h=s[o].parent;s[h].parent;)f.unshift(s[h].parent),c=l(t[s[h].parent][h],c),h=s[h].parent;return c.conversion=f,c}r.exports=function(o){for(var s=i(o),f={},c=Object.keys(s),h=c.length,u=0;u<h;u++){var d=c[u],p=s[d];p.parent!==null&&(f[d]=a(d,s))}return f}}),zv=te((e,r)=>{Z();var t=Lf(),n=Wv(),i={},l=Object.keys(t);function a(s){var f=function(c){return c==null?c:(arguments.length>1&&(c=Array.prototype.slice.call(arguments)),s(c))};return"conversion"in s&&(f.conversion=s.conversion),f}function o(s){var f=function(c){if(c==null)return c;arguments.length>1&&(c=Array.prototype.slice.call(arguments));var h=s(c);if(typeof h=="object")for(var u=h.length,d=0;d<u;d++)h[d]=Math.round(h[d]);return h};return"conversion"in s&&(f.conversion=s.conversion),f}l.forEach(function(s){i[s]={},Object.defineProperty(i[s],"channels",{value:t[s].channels}),Object.defineProperty(i[s],"labels",{value:t[s].labels});var f=n(s),c=Object.keys(f);c.forEach(function(h){var u=f[h];i[s][h]=o(u),i[s][h].raw=a(u)})}),r.exports=i}),Vv=te((e,r)=>{"use strict";Z();var t=zv(),n=(o,s)=>function(){return`\x1B[${o.apply(t,arguments)+s}m`},i=(o,s)=>function(){let f=o.apply(t,arguments);return`\x1B[${38+s};5;${f}m`},l=(o,s)=>function(){let f=o.apply(t,arguments);return`\x1B[${38+s};2;${f[0]};${f[1]};${f[2]}m`};function a(){let o=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.grey=s.color.gray;for(let h of Object.keys(s)){let u=s[h];for(let d of Object.keys(u)){let p=u[d];s[d]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},u[d]=s[d],o.set(p[0],p[1])}Object.defineProperty(s,h,{value:u,enumerable:!1}),Object.defineProperty(s,"codes",{value:o,enumerable:!1})}let f=h=>h,c=(h,u,d)=>[h,u,d];s.color.close="\x1B[39m",s.bgColor.close="\x1B[49m",s.color.ansi={ansi:n(f,0)},s.color.ansi256={ansi256:i(f,0)},s.color.ansi16m={rgb:l(c,0)},s.bgColor.ansi={ansi:n(f,10)},s.bgColor.ansi256={ansi256:i(f,10)},s.bgColor.ansi16m={rgb:l(c,10)};for(let h of Object.keys(t)){if(typeof t[h]!="object")continue;let u=t[h];h==="ansi16"&&(h="ansi"),"ansi16"in u&&(s.color.ansi[h]=n(u.ansi16,0),s.bgColor.ansi[h]=n(u.ansi16,10)),"ansi256"in u&&(s.color.ansi256[h]=i(u.ansi256,0),s.bgColor.ansi256[h]=i(u.ansi256,10)),"rgb"in u&&(s.color.ansi16m[h]=l(u.rgb,0),s.bgColor.ansi16m[h]=l(u.rgb,10))}return s}Object.defineProperty(r,"exports",{enumerable:!0,get:a})}),Kv=te((e,r)=>{"use strict";Z(),r.exports=(t,n)=>{n=n||process.argv;let i=t.startsWith("-")?"":t.length===1?"-":"--",l=n.indexOf(i+t),a=n.indexOf("--");return l!==-1&&(a===-1?!0:l<a)}}),Yv=te((e,r)=>{"use strict";Z();var t=he("os"),n=Kv(),i=process.env,l;n("no-color")||n("no-colors")||n("color=false")?l=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(l=!0),"FORCE_COLOR"in i&&(l=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function a(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function o(f){if(l===!1)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(f&&!f.isTTY&&l!==!0)return 0;let c=l?1:0;if(process.platform==="win32"){let h=t.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(h[0])>=10&&Number(h[2])>=10586?Number(h[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(h=>h in i)||i.CI_NAME==="codeship"?1:c;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let h=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,c)}function s(f){let c=o(f);return a(c)}r.exports={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}}),Xv=te((e,r)=>{"use strict";Z();var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,l=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
|
131
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o(h){return h[0]==="u"&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):a.get(h)||h}function s(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(l,(_,g,S)=>g?o(g):S));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`);return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=s(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function c(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?p=p[y].apply(p,d[y]):p=p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(o(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:c(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(c(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),Pr=te((e,r)=>{"use strict";Z();var t=Uv(),n=Vv(),i=Yv().stdout,l=Xv(),a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),o=["ansi","ansi","ansi256","ansi16m"],s=new Set(["gray"]),f=Object.create(null);function c(b,_){_=_||{};let g=i?i.level:0;b.level=_.level===void 0?g:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function h(b){if(!this||!(this instanceof h)||this.template){let _={};return c(_,b),_.template=function(){let g=[].slice.call(arguments);return y.apply(null,[_.template].concat(g))},Object.setPrototypeOf(_,h.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=h,_.template}c(this,b)}a&&(n.blue.open="\x1B[94m");for(let b of Object.keys(n))n[b].closeRe=new RegExp(t(n[b].close),"g"),f[b]={get(){let _=n[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(let b of Object.keys(n.color.ansi))s.has(b)||(f[b]={get(){let _=this.level;return function(){let g={open:n.color[o[_]][b].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(let b of Object.keys(n.bgColor.ansi)){if(s.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);f[_]={get(){let g=this.level;return function(){let S={open:n.bgColor[o[g]][b].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(S):[S],this._empty,b)}}}}var u=Object.defineProperties(()=>{},f);function d(b,_,g){let S=function(){return p.apply(S,arguments)};S._styles=b,S._empty=_;let E=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return E.level},set(v){E.level=v}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return E.enabled},set(v){E.enabled=v}}),S.hasGrey=this.hasGrey||g==="gray"||g==="grey",S.__proto__=u,S}function p(){let b=arguments,_=b.length,g=String(arguments[0]);if(_===0)return"";if(_>1)for(let E=1;E<_;E++)g+=" "+b[E];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let S=n.dim.open;a&&this.hasGrey&&(n.dim.open="");for(let E of this._styles.slice().reverse())g=E.open+g.replace(E.closeRe,E.open)+E.close,g=g.replace(/\r?\n/g,`${E.close}$&${E.open}`);return n.dim.open=S,g}function y(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),S=[_.raw[0]];for(let E=1;E<_.length;E++)S.push(String(g[E-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(_.raw[E]));return l(b,S.join(""))}Object.defineProperties(h.prototype,f),r.exports=h(),r.exports.supportsColor=i,r.exports.default=r.exports});var Zv=te((e,r)=>{"use strict";Z(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),Mf=te((e,r)=>{Z();var t=Zv(),n={};for(let a of Object.keys(t))n[t[a]]=a;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};r.exports=i;for(let a of Object.keys(i)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);let{channels:o,labels:s}=i[a];delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:o}),Object.defineProperty(i[a],"labels",{value:s})}i.rgb.hsl=function(a){let o=a[0]/255,s=a[1]/255,f=a[2]/255,c=Math.min(o,s,f),h=Math.max(o,s,f),u=h-c,d,p;h===c?d=0:o===h?d=(s-f)/u:s===h?d=2+(f-o)/u:f===h&&(d=4+(o-s)/u),d=Math.min(d*60,360),d<0&&(d+=360);let y=(c+h)/2;return h===c?p=0:y<=.5?p=u/(h+c):p=u/(2-h-c),[d,p*100,y*100]},i.rgb.hsv=function(a){let o,s,f,c,h,u=a[0]/255,d=a[1]/255,p=a[2]/255,y=Math.max(u,d,p),b=y-Math.min(u,d,p),_=function(g){return(y-g)/6/b+1/2};return b===0?(c=0,h=0):(h=b/y,o=_(u),s=_(d),f=_(p),u===y?c=f-s:d===y?c=1/3+o-f:p===y&&(c=2/3+s-o),c<0?c+=1:c>1&&(c-=1)),[c*360,h*100,y*100]},i.rgb.hwb=function(a){let o=a[0],s=a[1],f=a[2],c=i.rgb.hsl(a)[0],h=1/255*Math.min(o,Math.min(s,f));return f=1-1/255*Math.max(o,Math.max(s,f)),[c,h*100,f*100]},i.rgb.cmyk=function(a){let o=a[0]/255,s=a[1]/255,f=a[2]/255,c=Math.min(1-o,1-s,1-f),h=(1-o-c)/(1-c)||0,u=(1-s-c)/(1-c)||0,d=(1-f-c)/(1-c)||0;return[h*100,u*100,d*100,c*100]};function l(a,o){return(a[0]-o[0])**2+(a[1]-o[1])**2+(a[2]-o[2])**2}i.rgb.keyword=function(a){let o=n[a];if(o)return o;let s=1/0,f;for(let c of Object.keys(t)){let h=t[c],u=l(a,h);u<s&&(s=u,f=c)}return f},i.keyword.rgb=function(a){return t[a]},i.rgb.xyz=function(a){let o=a[0]/255,s=a[1]/255,f=a[2]/255;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,f=f>.04045?((f+.055)/1.055)**2.4:f/12.92;let c=o*.4124+s*.3576+f*.1805,h=o*.2126+s*.7152+f*.0722,u=o*.0193+s*.1192+f*.9505;return[c*100,h*100,u*100]},i.rgb.lab=function(a){let o=i.rgb.xyz(a),s=o[0],f=o[1],c=o[2];s/=95.047,f/=100,c/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,f=f>.008856?f**(1/3):7.787*f+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;let h=116*f-16,u=500*(s-f),d=200*(f-c);return[h,u,d]},i.hsl.rgb=function(a){let o=a[0]/360,s=a[1]/100,f=a[2]/100,c,h,u;if(s===0)return u=f*255,[u,u,u];f<.5?c=f*(1+s):c=f+s-f*s;let d=2*f-c,p=[0,0,0];for(let y=0;y<3;y++)h=o+1/3*-(y-1),h<0&&h++,h>1&&h--,6*h<1?u=d+(c-d)*6*h:2*h<1?u=c:3*h<2?u=d+(c-d)*(2/3-h)*6:u=d,p[y]=u*255;return p},i.hsl.hsv=function(a){let o=a[0],s=a[1]/100,f=a[2]/100,c=s,h=Math.max(f,.01);f*=2,s*=f<=1?f:2-f,c*=h<=1?h:2-h;let u=(f+s)/2,d=f===0?2*c/(h+c):2*s/(f+s);return[o,d*100,u*100]},i.hsv.rgb=function(a){let o=a[0]/60,s=a[1]/100,f=a[2]/100,c=Math.floor(o)%6,h=o-Math.floor(o),u=255*f*(1-s),d=255*f*(1-s*h),p=255*f*(1-s*(1-h));switch(f*=255,c){case 0:return[f,p,u];case 1:return[d,f,u];case 2:return[u,f,p];case 3:return[u,d,f];case 4:return[p,u,f];case 5:return[f,u,d]}},i.hsv.hsl=function(a){let o=a[0],s=a[1]/100,f=a[2]/100,c=Math.max(f,.01),h,u;u=(2-s)*f;let d=(2-s)*c;return h=s*c,h/=d<=1?d:2-d,h=h||0,u/=2,[o,h*100,u*100]},i.hwb.rgb=function(a){let o=a[0]/360,s=a[1]/100,f=a[2]/100,c=s+f,h;c>1&&(s/=c,f/=c);let u=Math.floor(6*o),d=1-f;h=6*o-u,u&1&&(h=1-h);let p=s+h*(d-s),y,b,_;switch(u){default:case 6:case 0:y=d,b=p,_=s;break;case 1:y=p,b=d,_=s;break;case 2:y=s,b=d,_=p;break;case 3:y=s,b=p,_=d;break;case 4:y=p,b=s,_=d;break;case 5:y=d,b=s,_=p;break}return[y*255,b*255,_*255]},i.cmyk.rgb=function(a){let o=a[0]/100,s=a[1]/100,f=a[2]/100,c=a[3]/100,h=1-Math.min(1,o*(1-c)+c),u=1-Math.min(1,s*(1-c)+c),d=1-Math.min(1,f*(1-c)+c);return[h*255,u*255,d*255]},i.xyz.rgb=function(a){let o=a[0]/100,s=a[1]/100,f=a[2]/100,c,h,u;return c=o*3.2406+s*-1.5372+f*-.4986,h=o*-.9689+s*1.8758+f*.0415,u=o*.0557+s*-.204+f*1.057,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,c=Math.min(Math.max(0,c),1),h=Math.min(Math.max(0,h),1),u=Math.min(Math.max(0,u),1),[c*255,h*255,u*255]},i.xyz.lab=function(a){let o=a[0],s=a[1],f=a[2];o/=95.047,s/=100,f/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,f=f>.008856?f**(1/3):7.787*f+16/116;let c=116*s-16,h=500*(o-s),u=200*(s-f);return[c,h,u]},i.lab.xyz=function(a){let o=a[0],s=a[1],f=a[2],c,h,u;h=(o+16)/116,c=s/500+h,u=h-f/200;let d=h**3,p=c**3,y=u**3;return h=d>.008856?d:(h-16/116)/7.787,c=p>.008856?p:(c-16/116)/7.787,u=y>.008856?y:(u-16/116)/7.787,c*=95.047,h*=100,u*=108.883,[c,h,u]},i.lab.lch=function(a){let o=a[0],s=a[1],f=a[2],c;c=Math.atan2(f,s)*360/2/Math.PI,c<0&&(c+=360);let h=Math.sqrt(s*s+f*f);return[o,h,c]},i.lch.lab=function(a){let o=a[0],s=a[1],f=a[2]/360*2*Math.PI,c=s*Math.cos(f),h=s*Math.sin(f);return[o,c,h]},i.rgb.ansi16=function(a,o=null){let[s,f,c]=a,h=o===null?i.rgb.hsv(a)[2]:o;if(h=Math.round(h/50),h===0)return 30;let u=30+(Math.round(c/255)<<2|Math.round(f/255)<<1|Math.round(s/255));return h===2&&(u+=60),u},i.hsv.ansi16=function(a){return i.rgb.ansi16(i.hsv.rgb(a),a[2])},i.rgb.ansi256=function(a){let o=a[0],s=a[1],f=a[2];return o===s&&s===f?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(s/255*5)+Math.round(f/255*5)},i.ansi16.rgb=function(a){let o=a%10;if(o===0||o===7)return a>50&&(o+=3.5),o=o/10.5*255,[o,o,o];let s=(~~(a>50)+1)*.5,f=(o&1)*s*255,c=(o>>1&1)*s*255,h=(o>>2&1)*s*255;return[f,c,h]},i.ansi256.rgb=function(a){if(a>=232){let h=(a-232)*10+8;return[h,h,h]}a-=16;let o,s=Math.floor(a/36)/5*255,f=Math.floor((o=a%36)/6)/5*255,c=o%6/5*255;return[s,f,c]},i.rgb.hex=function(a){let o=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(o.length)+o},i.hex.rgb=function(a){let o=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!o)return[0,0,0];let s=o[0];o[0].length===3&&(s=s.split("").map(d=>d+d).join(""));let f=parseInt(s,16),c=f>>16&255,h=f>>8&255,u=f&255;return[c,h,u]},i.rgb.hcg=function(a){let o=a[0]/255,s=a[1]/255,f=a[2]/255,c=Math.max(Math.max(o,s),f),h=Math.min(Math.min(o,s),f),u=c-h,d,p;return u<1?d=h/(1-u):d=0,u<=0?p=0:c===o?p=(s-f)/u%6:c===s?p=2+(f-o)/u:p=4+(o-s)/u,p/=6,p%=1,[p*360,u*100,d*100]},i.hsl.hcg=function(a){let o=a[1]/100,s=a[2]/100,f=s<.5?2*o*s:2*o*(1-s),c=0;return f<1&&(c=(s-.5*f)/(1-f)),[a[0],f*100,c*100]},i.hsv.hcg=function(a){let o=a[1]/100,s=a[2]/100,f=o*s,c=0;return f<1&&(c=(s-f)/(1-f)),[a[0],f*100,c*100]},i.hcg.rgb=function(a){let o=a[0]/360,s=a[1]/100,f=a[2]/100;if(s===0)return[f*255,f*255,f*255];let c=[0,0,0],h=o%1*6,u=h%1,d=1-u,p=0;switch(Math.floor(h)){case 0:c[0]=1,c[1]=u,c[2]=0;break;case 1:c[0]=d,c[1]=1,c[2]=0;break;case 2:c[0]=0,c[1]=1,c[2]=u;break;case 3:c[0]=0,c[1]=d,c[2]=1;break;case 4:c[0]=u,c[1]=0,c[2]=1;break;default:c[0]=1,c[1]=0,c[2]=d}return p=(1-s)*f,[(s*c[0]+p)*255,(s*c[1]+p)*255,(s*c[2]+p)*255]},i.hcg.hsv=function(a){let o=a[1]/100,s=a[2]/100,f=o+s*(1-o),c=0;return f>0&&(c=o/f),[a[0],c*100,f*100]},i.hcg.hsl=function(a){let o=a[1]/100,s=a[2]/100*(1-o)+.5*o,f=0;return s>0&&s<.5?f=o/(2*s):s>=.5&&s<1&&(f=o/(2*(1-s))),[a[0],f*100,s*100]},i.hcg.hwb=function(a){let o=a[1]/100,s=a[2]/100,f=o+s*(1-o);return[a[0],(f-o)*100,(1-f)*100]},i.hwb.hcg=function(a){let o=a[1]/100,s=a[2]/100,f=1-s,c=f-o,h=0;return c<1&&(h=(f-c)/(1-c)),[a[0],c*100,h*100]},i.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},i.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},i.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},i.gray.hsl=function(a){return[0,0,a[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(a){return[0,100,a[0]]},i.gray.cmyk=function(a){return[0,0,0,a[0]]},i.gray.lab=function(a){return[a[0],0,0]},i.gray.hex=function(a){let o=Math.round(a[0]/100*255)&255,s=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".substring(s.length)+s},i.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}}),Qv=te((e,r)=>{Z();var t=Mf();function n(){let o={},s=Object.keys(t);for(let f=s.length,c=0;c<f;c++)o[s[c]]={distance:-1,parent:null};return o}function i(o){let s=n(),f=[o];for(s[o].distance=0;f.length;){let c=f.pop(),h=Object.keys(t[c]);for(let u=h.length,d=0;d<u;d++){let p=h[d],y=s[p];y.distance===-1&&(y.distance=s[c].distance+1,y.parent=c,f.unshift(p))}}return s}function l(o,s){return function(f){return s(o(f))}}function a(o,s){let f=[s[o].parent,o],c=t[s[o].parent][o],h=s[o].parent;for(;s[h].parent;)f.unshift(s[h].parent),c=l(t[s[h].parent][h],c),h=s[h].parent;return c.conversion=f,c}r.exports=function(o){let s=i(o),f={},c=Object.keys(s);for(let h=c.length,u=0;u<h;u++){let d=c[u];s[d].parent!==null&&(f[d]=a(d,s))}return f}}),Jv=te((e,r)=>{Z();var t=Mf(),n=Qv(),i={},l=Object.keys(t);function a(s){let f=function(...c){let h=c[0];return h==null?h:(h.length>1&&(c=h),s(c))};return"conversion"in s&&(f.conversion=s.conversion),f}function o(s){let f=function(...c){let h=c[0];if(h==null)return h;h.length>1&&(c=h);let u=s(c);if(typeof u=="object")for(let d=u.length,p=0;p<d;p++)u[p]=Math.round(u[p]);return u};return"conversion"in s&&(f.conversion=s.conversion),f}l.forEach(s=>{i[s]={},Object.defineProperty(i[s],"channels",{value:t[s].channels}),Object.defineProperty(i[s],"labels",{value:t[s].labels});let f=n(s);Object.keys(f).forEach(c=>{let h=f[c];i[s][c]=o(h),i[s][c].raw=a(h)})}),r.exports=i}),Nf=te((e,r)=>{"use strict";Z();var t=(h,u)=>(...d)=>`\x1B[${h(...d)+u}m`,n=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};5;${p}m`},i=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};2;${p[0]};${p[1]};${p[2]}m`},l=h=>h,a=(h,u,d)=>[h,u,d],o=(h,u,d)=>{Object.defineProperty(h,u,{get:()=>{let p=d();return Object.defineProperty(h,u,{value:p,enumerable:!0,configurable:!0}),p},enumerable:!0,configurable:!0})},s,f=(h,u,d,p)=>{s===void 0&&(s=Jv());let y=p?10:0,b={};for(let[_,g]of Object.entries(s)){let S=_==="ansi16"?"ansi":_;_===u?b[S]=h(d,y):typeof g=="object"&&(b[S]=h(g[u],y))}return b};function c(){let h=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.gray=u.color.blackBright,u.bgColor.bgGray=u.bgColor.bgBlackBright,u.color.grey=u.color.blackBright,u.bgColor.bgGrey=u.bgColor.bgBlackBright;for(let[d,p]of Object.entries(u)){for(let[y,b]of Object.entries(p))u[y]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},p[y]=u[y],h.set(b[0],b[1]);Object.defineProperty(u,d,{value:p,enumerable:!1})}return Object.defineProperty(u,"codes",{value:h,enumerable:!1}),u.color.close="\x1B[39m",u.bgColor.close="\x1B[49m",o(u.color,"ansi",()=>f(t,"ansi16",l,!1)),o(u.color,"ansi256",()=>f(n,"ansi256",l,!1)),o(u.color,"ansi16m",()=>f(i,"rgb",a,!1)),o(u.bgColor,"ansi",()=>f(t,"ansi16",l,!0)),o(u.bgColor,"ansi256",()=>f(n,"ansi256",l,!0)),o(u.bgColor,"ansi16m",()=>f(i,"rgb",a,!0)),u}Object.defineProperty(r,"exports",{enumerable:!0,get:c})}),e_=te((e,r)=>{"use strict";Z(),r.exports=(t,n=process.argv)=>{let i=t.startsWith("-")?"":t.length===1?"-":"--",l=n.indexOf(i+t),a=n.indexOf("--");return l!==-1&&(a===-1||l<a)}}),jf=te((e,r)=>{"use strict";Z();var t=he("os"),n=he("tty"),i=e_(),{env:l}=process,a;i("no-color")||i("no-colors")||i("color=false")||i("color=never")?a=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(a=1),"FORCE_COLOR"in l&&(l.FORCE_COLOR==="true"?a=1:l.FORCE_COLOR==="false"?a=0:a=l.FORCE_COLOR.length===0?1:Math.min(parseInt(l.FORCE_COLOR,10),3));function o(c){return c===0?!1:{level:c,hasBasic:!0,has256:c>=2,has16m:c>=3}}function s(c,h){if(a===0)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(c&&!h&&a===void 0)return 0;let u=a||0;if(l.TERM==="dumb")return u;if(process.platform==="win32"){let d=t.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in l)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in l)||l.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in l)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION)?1:0;if(l.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in l){let d=parseInt((l.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(l.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)||"COLORTERM"in l?1:u}function f(c){let h=s(c,c&&c.isTTY);return o(h)}r.exports={supportsColor:f,stdout:o(s(!0,n.isatty(1))),stderr:o(s(!0,n.isatty(2)))}}),t_=te((e,r)=>{"use strict";Z();var t=(i,l,a)=>{let o=i.indexOf(l);if(o===-1)return i;let s=l.length,f=0,c="";do c+=i.substr(f,o-f)+l+a,f=o+s,o=i.indexOf(l,f);while(o!==-1);return c+=i.substr(f),c},n=(i,l,a,o)=>{let s=0,f="";do{let c=i[o-1]==="\r";f+=i.substr(s,(c?o-1:o)-s)+l+(c?`\r
|
|
132
|
+
`:`
|
|
133
|
+
`)+a,s=o+1,o=i.indexOf(`
|
|
134
|
+
`,s)}while(o!==-1);return f+=i.substr(s),f};r.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}}),r_=te((e,r)=>{"use strict";Z();var t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,l=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
|
135
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function s(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(l,(g,S,E)=>S?o(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=s(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function c(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(o(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:c(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(c(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),n_=te((e,r)=>{"use strict";Z();var t=Nf(),{stdout:n,stderr:i}=jf(),{stringReplaceAll:l,stringEncaseCRLFWithFirstIndex:a}=t_(),o=["ansi","ansi","ansi256","ansi16m"],s=Object.create(null),f=(v,m={})=>{if(m.level>3||m.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let w=n?n.level:0;v.level=m.level===void 0?w:m.level},c=class{constructor(v){return h(v)}},h=v=>{let m={};return f(m,v),m.template=(...w)=>S(m.template,...w),Object.setPrototypeOf(m,u.prototype),Object.setPrototypeOf(m.template,m),m.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},m.template.Instance=c,m.template};function u(v){return h(v)}for(let[v,m]of Object.entries(t))s[v]={get(){let w=b(this,y(m.open,m.close,this._styler),this._isEmpty);return Object.defineProperty(this,v,{value:w}),w}};s.visible={get(){let v=b(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:v}),v}};var d=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let v of d)s[v]={get(){let{level:m}=this;return function(...w){let x=y(t.color[o[m]][v](...w),t.color.close,this._styler);return b(this,x,this._isEmpty)}}};for(let v of d){let m="bg"+v[0].toUpperCase()+v.slice(1);s[m]={get(){let{level:w}=this;return function(...x){let A=y(t.bgColor[o[w]][v](...x),t.bgColor.close,this._styler);return b(this,A,this._isEmpty)}}}}var p=Object.defineProperties(()=>{},{...s,level:{enumerable:!0,get(){return this._generator.level},set(v){this._generator.level=v}}}),y=(v,m,w)=>{let x,A;return w===void 0?(x=v,A=m):(x=w.openAll+v,A=m+w.closeAll),{open:v,close:m,openAll:x,closeAll:A,parent:w}},b=(v,m,w)=>{let x=(...A)=>_(x,A.length===1?""+A[0]:A.join(" "));return x.__proto__=p,x._generator=v,x._styler=m,x._isEmpty=w,x},_=(v,m)=>{if(v.level<=0||!m)return v._isEmpty?"":m;let w=v._styler;if(w===void 0)return m;let{openAll:x,closeAll:A}=w;if(m.indexOf("\x1B")!==-1)for(;w!==void 0;)m=l(m,w.close,w.open),w=w.parent;let R=m.indexOf(`
|
|
136
|
+
`);return R!==-1&&(m=a(m,A,x,R)),x+m+A},g,S=(v,...m)=>{let[w]=m;if(!Array.isArray(w))return m.join(" ");let x=m.slice(1),A=[w.raw[0]];for(let R=1;R<w.length;R++)A.push(String(x[R-1]).replace(/[{}\\]/g,"\\$&"),String(w.raw[R]));return g===void 0&&(g=r_()),g(v,A.join(""))};Object.defineProperties(u.prototype,s);var E=u();E.supportsColor=n,E.stderr=u({level:i?i.level:0}),E.stderr.supportsColor=i,E.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},r.exports=E}),i_=te((e,r)=>{"use strict";Z();var t=ts(),n=rs();r.exports=t(()=>{n(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})}),s_=te(e=>{"use strict";Z();var r=i_(),t=!1;e.show=(n=process.stderr)=>{!n.isTTY||(t=!1,n.write("\x1B[?25h"))},e.hide=(n=process.stderr)=>{!n.isTTY||(r(),t=!0,n.write("\x1B[?25l"))},e.toggle=(n,i)=>{n!==void 0&&(t=n),t?e.show(i):e.hide(i)}}),o_=te((e,r)=>{r.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}}),a_=te((e,r)=>{"use strict";Z();var t=Object.assign({},o_()),n=Object.keys(t);Object.defineProperty(t,"random",{get(){let i=Math.floor(Math.random()*n.length),l=n[i];return t[l]}}),r.exports=t}),u_=te((e,r)=>{"use strict";Z();var t=Pr(),n=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",i={info:t.blue("\u2139"),success:t.green("\u2714"),warning:t.yellow("\u26A0"),error:t.red("\u2716")},l={info:t.blue("i"),success:t.green("\u221A"),warning:t.yellow("\u203C"),error:t.red("\xD7")};r.exports=n?i:l}),l_=te((e,r)=>{"use strict";Z(),r.exports=({onlyFirst:t=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,t?void 0:"g")}}),c_=te((e,r)=>{"use strict";Z();var t=l_();r.exports=n=>typeof n=="string"?n.replace(t(),""):n}),h_=te((e,r)=>{Z();var t=function(){"use strict";function n(f,c,h,u){var d;typeof c=="object"&&(h=c.depth,u=c.prototype,d=c.filter,c=c.circular);var p=[],y=[],b=typeof Buffer<"u";typeof c>"u"&&(c=!0),typeof h>"u"&&(h=1/0);function _(g,S){if(g===null)return null;if(S==0)return g;var E,v;if(typeof g!="object")return g;if(n.__isArray(g))E=[];else if(n.__isRegExp(g))E=new RegExp(g.source,s(g)),g.lastIndex&&(E.lastIndex=g.lastIndex);else if(n.__isDate(g))E=new Date(g.getTime());else{if(b&&Buffer.isBuffer(g))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(g.length):E=new Buffer(g.length),g.copy(E),E;typeof u>"u"?(v=Object.getPrototypeOf(g),E=Object.create(v)):(E=Object.create(u),v=u)}if(c){var m=p.indexOf(g);if(m!=-1)return y[m];p.push(g),y.push(E)}for(var w in g){var x;v&&(x=Object.getOwnPropertyDescriptor(v,w)),!(x&&x.set==null)&&(E[w]=_(g[w],S-1))}return E}return _(f,h)}n.clonePrototype=function(f){if(f===null)return null;var c=function(){};return c.prototype=f,new c};function i(f){return Object.prototype.toString.call(f)}n.__objToStr=i;function l(f){return typeof f=="object"&&i(f)==="[object Date]"}n.__isDate=l;function a(f){return typeof f=="object"&&i(f)==="[object Array]"}n.__isArray=a;function o(f){return typeof f=="object"&&i(f)==="[object RegExp]"}n.__isRegExp=o;function s(f){var c="";return f.global&&(c+="g"),f.ignoreCase&&(c+="i"),f.multiline&&(c+="m"),c}return n.__getRegExpFlags=s,n}();typeof r=="object"&&r.exports&&(r.exports=t)}),f_=te((e,r)=>{Z();var t=h_();r.exports=function(n,i){return n=n||{},Object.keys(i).forEach(function(l){typeof n[l]>"u"&&(n[l]=t(i[l]))}),n}}),p_=te((e,r)=>{Z(),r.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]}),d_=te((e,r)=>{"use strict";Z();var t=f_(),n=p_(),i={nul:0,control:0};r.exports=function(s){return l(s,i)},r.exports.config=function(s){return s=t(s||{},i),function(f){return l(f,s)}};function l(s,f){if(typeof s!="string")return a(s,f);for(var c=0,h=0;h<s.length;h++){var u=a(s.charCodeAt(h),f);if(u<0)return-1;c+=u}return c}function a(s,f){return s===0?f.nul:s<32||s>=127&&s<160?f.control:o(s)?0:1+(s>=4352&&(s<=4447||s==9001||s==9002||s>=11904&&s<=42191&&s!=12351||s>=44032&&s<=55203||s>=63744&&s<=64255||s>=65040&&s<=65049||s>=65072&&s<=65135||s>=65280&&s<=65376||s>=65504&&s<=65510||s>=131072&&s<=196605||s>=196608&&s<=262141))}function o(s){var f=0,c=n.length-1,h;if(s<n[0][0]||s>n[c][1])return!1;for(;c>=f;)if(h=Math.floor((f+c)/2),s>n[h][1])f=h+1;else if(s<n[h][0])c=h-1;else return!0;return!1}}),m_=te((e,r)=>{"use strict";Z(),r.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}),y_=te((e,r)=>{Z();var t=he("stream");r.exports=n;function n(s){t.apply(this),s=s||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=s.replace,this._prompt=s.prompt||null,this._hadControl=!1}n.prototype=Object.create(t.prototype),Object.defineProperty(n.prototype,"constructor",{value:n,enumerable:!1}),n.prototype.mute=function(){this.muted=!0},n.prototype.unmute=function(){this.muted=!1},Object.defineProperty(n.prototype,"_onpipe",{value:i,enumerable:!1,writable:!0,configurable:!0});function i(s){this._src=s}Object.defineProperty(n.prototype,"isTTY",{get:l,set:a,enumerable:!0,configurable:!0});function l(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function a(s){Object.defineProperty(this,"isTTY",{value:s,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(n.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),n.prototype.pipe=function(s,f){return this._dest=s,t.prototype.pipe.call(this,s,f)},n.prototype.pause=function(){if(this._src)return this._src.pause()},n.prototype.resume=function(){if(this._src)return this._src.resume()},n.prototype.write=function(s){if(this.muted){if(!this.replace)return!0;if(s.match(/^\u001b/))return s.indexOf(this._prompt)===0&&(s=s.substr(this._prompt.length),s=s.replace(/./g,this.replace),s=this._prompt+s),this._hadControl=!0,this.emit("data",s);this._prompt&&this._hadControl&&s.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),s=s.substr(this._prompt.length)),s=s.toString().replace(/./g,this.replace)}this.emit("data",s)},n.prototype.end=function(s){this.muted&&(s&&this.replace?s=s.toString().replace(/./g,this.replace):s=null),s&&this.emit("data",s),this.emit("end")};function o(s){return function(){var f=this._dest,c=this._src;f&&f[s]&&f[s].apply(f,arguments),c&&c[s]&&c[s].apply(c,arguments)}}n.prototype.destroy=o("destroy"),n.prototype.destroySoon=o("destroySoon"),n.prototype.close=o("close")}),g_=te((e,r)=>{"use strict";Z();var t=he("readline"),n=n_(),i=s_(),l=a_(),a=u_(),o=c_(),s=d_(),f=m_(),c=y_(),h=Symbol("text"),u=Symbol("prefixText"),d=3,p=class{constructor(){this.requests=0,this.mutedStream=new c,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let g=this;this.ourEmit=function(S,E,...v){let{stdin:m}=process;if(g.requests>0||m.emit===g.ourEmit){if(S==="keypress")return;S==="data"&&E.includes(d)&&process.emit("SIGINT"),Reflect.apply(g.oldEmit,this,[S,E,...v])}else Reflect.apply(process.stdin.emit,this,[S,E,...v])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=t.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},y,b=class{constructor(g){y||(y=new p),typeof g=="string"&&(g={text:g}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...g},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:f({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(g=0){if(!(g>=0&&Number.isInteger(g)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=g}_updateInterval(g){g!==void 0&&(this.interval=g)}get spinner(){return this._spinner}set spinner(g){if(this.frameIndex=0,typeof g=="object"){if(g.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=g}else if(process.platform==="win32")this._spinner=l.line;else if(g===void 0)this._spinner=l.dots;else if(l[g])this._spinner=l[g];else throw new Error(`There is no built-in spinner named '${g}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[h]}get prefixText(){return this[u]}get isSpinning(){return this.id!==void 0}updateLineCount(){let g=this.stream.columns||80,S=typeof this[u]=="string"?this[u]+"-":"";this.lineCount=o(S+"--"+this[h]).split(`
|
|
137
|
+
`).reduce((E,v)=>E+Math.max(1,Math.ceil(s(v)/g)),0)}set text(g){this[h]=g,this.updateLineCount()}set prefixText(g){this[u]=g,this.updateLineCount()}frame(){let{frames:g}=this.spinner,S=g[this.frameIndex];this.color&&(S=n[this.color](S)),this.frameIndex=++this.frameIndex%g.length;let E=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",v=typeof this.text=="string"?" "+this.text:"";return E+S+v}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let g=0;g<this.linesToClear;g++)g>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(g){return g&&(this.text=g),this.isEnabled?this.isSpinning?this:(this.hideCursor&&i.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,y.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
138
|
+
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&i.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(y.stop(),this.isDiscardingStdin=!1),this):this}succeed(g){return this.stopAndPersist({symbol:a.success,text:g})}fail(g){return this.stopAndPersist({symbol:a.error,text:g})}warn(g){return this.stopAndPersist({symbol:a.warning,text:g})}info(g){return this.stopAndPersist({symbol:a.info,text:g})}stopAndPersist(g={}){let S=g.prefixText||this.prefixText,E=typeof S=="string"&&S!==""?S+" ":"",v=g.text||this.text,m=typeof v=="string"?" "+v:"";return this.stop(),this.stream.write(`${E}${g.symbol||" "}${m}
|
|
139
|
+
`),this}},_=function(g){return new b(g)};r.exports=_,r.exports.promise=(g,S)=>{if(typeof g.then!="function")throw new TypeError("Parameter `action` must be a Promise");let E=new b(S);return E.start(),(async()=>{try{await g,E.succeed()}catch{E.fail()}})(),E}}),b_=te((e,r)=>{"use strict";Z();var t=(i,l,a)=>{let o=i.indexOf(l);if(o===-1)return i;let s=l.length,f=0,c="";do c+=i.substr(f,o-f)+l+a,f=o+s,o=i.indexOf(l,f);while(o!==-1);return c+=i.substr(f),c},n=(i,l,a,o)=>{let s=0,f="";do{let c=i[o-1]==="\r";f+=i.substr(s,(c?o-1:o)-s)+l+(c?`\r
|
|
140
|
+
`:`
|
|
141
|
+
`)+a,s=o+1,o=i.indexOf(`
|
|
142
|
+
`,s)}while(o!==-1);return f+=i.substr(s),f};r.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}}),v_=te((e,r)=>{"use strict";Z();var t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,l=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
|
143
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function s(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(l,(g,S,E)=>S?o(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=s(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function c(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(o(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:c(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(c(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),__=te((e,r)=>{"use strict";Z();var t=Nf(),{stdout:n,stderr:i}=jf(),{stringReplaceAll:l,stringEncaseCRLFWithFirstIndex:a}=b_(),{isArray:o}=Array,s=["ansi","ansi","ansi256","ansi16m"],f=Object.create(null),c=(m,w={})=>{if(w.level&&!(Number.isInteger(w.level)&&w.level>=0&&w.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let x=n?n.level:0;m.level=w.level===void 0?x:w.level},h=class{constructor(m){return u(m)}},u=m=>{let w={};return c(w,m),w.template=(...x)=>E(w.template,...x),Object.setPrototypeOf(w,d.prototype),Object.setPrototypeOf(w.template,w),w.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},w.template.Instance=h,w.template};function d(m){return u(m)}for(let[m,w]of Object.entries(t))f[m]={get(){let x=_(this,b(w.open,w.close,this._styler),this._isEmpty);return Object.defineProperty(this,m,{value:x}),x}};f.visible={get(){let m=_(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:m}),m}};var p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let m of p)f[m]={get(){let{level:w}=this;return function(...x){let A=b(t.color[s[w]][m](...x),t.color.close,this._styler);return _(this,A,this._isEmpty)}}};for(let m of p){let w="bg"+m[0].toUpperCase()+m.slice(1);f[w]={get(){let{level:x}=this;return function(...A){let R=b(t.bgColor[s[x]][m](...A),t.bgColor.close,this._styler);return _(this,R,this._isEmpty)}}}}var y=Object.defineProperties(()=>{},{...f,level:{enumerable:!0,get(){return this._generator.level},set(m){this._generator.level=m}}}),b=(m,w,x)=>{let A,R;return x===void 0?(A=m,R=w):(A=x.openAll+m,R=w+x.closeAll),{open:m,close:w,openAll:A,closeAll:R,parent:x}},_=(m,w,x)=>{let A=(...R)=>o(R[0])&&o(R[0].raw)?g(A,E(A,...R)):g(A,R.length===1?""+R[0]:R.join(" "));return Object.setPrototypeOf(A,y),A._generator=m,A._styler=w,A._isEmpty=x,A},g=(m,w)=>{if(m.level<=0||!w)return m._isEmpty?"":w;let x=m._styler;if(x===void 0)return w;let{openAll:A,closeAll:R}=x;if(w.indexOf("\x1B")!==-1)for(;x!==void 0;)w=l(w,x.close,x.open),x=x.parent;let B=w.indexOf(`
|
|
144
|
+
`);return B!==-1&&(w=a(w,R,A,B)),A+w+R},S,E=(m,...w)=>{let[x]=w;if(!o(x)||!o(x.raw))return w.join(" ");let A=w.slice(1),R=[x.raw[0]];for(let B=1;B<x.length;B++)R.push(String(A[B-1]).replace(/[{}\\]/g,"\\$&"),String(x.raw[B]));return S===void 0&&(S=v_()),S(m,R.join(""))};Object.defineProperties(d.prototype,f);var v=d();v.supportsColor=n,v.stderr=d({level:i?i.level:0}),v.stderr.supportsColor=i,r.exports=v}),w_=te((e,r)=>{Z(),function(t){var n=/^\s+/,i=/\s+$/,l=0,a=t.round,o=t.min,s=t.max,f=t.random;function c(T,q){if(T=T||"",q=q||{},T instanceof c)return T;if(!(this instanceof c))return new c(T,q);var C=h(T);this._originalInput=T,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=a(100*this._a)/100,this._format=q.format||C.format,this._gradientType=q.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=C.ok,this._tc_id=l++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var T=this.toRgb();return(T.r*299+T.g*587+T.b*114)/1e3},getLuminance:function(){var T=this.toRgb(),q,C,H,X,ie,me;return q=T.r/255,C=T.g/255,H=T.b/255,q<=.03928?X=q/12.92:X=t.pow((q+.055)/1.055,2.4),C<=.03928?ie=C/12.92:ie=t.pow((C+.055)/1.055,2.4),H<=.03928?me=H/12.92:me=t.pow((H+.055)/1.055,2.4),.2126*X+.7152*ie+.0722*me},setAlpha:function(T){return this._a=se(T),this._roundA=a(100*this._a)/100,this},toHsv:function(){var T=y(this._r,this._g,this._b);return{h:T.h*360,s:T.s,v:T.v,a:this._a}},toHsvString:function(){var T=y(this._r,this._g,this._b),q=a(T.h*360),C=a(T.s*100),H=a(T.v*100);return this._a==1?"hsv("+q+", "+C+"%, "+H+"%)":"hsva("+q+", "+C+"%, "+H+"%, "+this._roundA+")"},toHsl:function(){var T=d(this._r,this._g,this._b);return{h:T.h*360,s:T.s,l:T.l,a:this._a}},toHslString:function(){var T=d(this._r,this._g,this._b),q=a(T.h*360),C=a(T.s*100),H=a(T.l*100);return this._a==1?"hsl("+q+", "+C+"%, "+H+"%)":"hsla("+q+", "+C+"%, "+H+"%, "+this._roundA+")"},toHex:function(T){return _(this._r,this._g,this._b,T)},toHexString:function(T){return"#"+this.toHex(T)},toHex8:function(T){return g(this._r,this._g,this._b,this._a,T)},toHex8String:function(T){return"#"+this.toHex8(T)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(I(this._r,255)*100)+"%",g:a(I(this._g,255)*100)+"%",b:a(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(I(this._r,255)*100)+"%, "+a(I(this._g,255)*100)+"%, "+a(I(this._b,255)*100)+"%)":"rgba("+a(I(this._r,255)*100)+"%, "+a(I(this._g,255)*100)+"%, "+a(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:U[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(T){var q="#"+S(this._r,this._g,this._b,this._a),C=q,H=this._gradientType?"GradientType = 1, ":"";if(T){var X=c(T);C="#"+S(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+H+"startColorstr="+q+",endColorstr="+C+")"},toString:function(T){var q=!!T;T=T||this._format;var C=!1,H=this._a<1&&this._a>=0,X=!q&&H&&(T==="hex"||T==="hex6"||T==="hex3"||T==="hex4"||T==="hex8"||T==="name");return X?T==="name"&&this._a===0?this.toName():this.toRgbString():(T==="rgb"&&(C=this.toRgbString()),T==="prgb"&&(C=this.toPercentageRgbString()),(T==="hex"||T==="hex6")&&(C=this.toHexString()),T==="hex3"&&(C=this.toHexString(!0)),T==="hex4"&&(C=this.toHex8String(!0)),T==="hex8"&&(C=this.toHex8String()),T==="name"&&(C=this.toName()),T==="hsl"&&(C=this.toHslString()),T==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(T,q){var C=T.apply(null,[this].concat([].slice.call(q)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(R,arguments)},_applyCombination:function(T,q){return T.apply(null,[this].concat([].slice.call(q)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(B,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},c.fromRatio=function(T,q){if(typeof T=="object"){var C={};for(var H in T)T.hasOwnProperty(H)&&(H==="a"?C[H]=T[H]:C[H]=j(T[H]));T=C}return c(T,q)};function h(T){var q={r:0,g:0,b:0},C=1,H=null,X=null,ie=null,me=!1,ae=!1;return typeof T=="string"&&(T=Y(T)),typeof T=="object"&&(ue(T.r)&&ue(T.g)&&ue(T.b)?(q=u(T.r,T.g,T.b),me=!0,ae=String(T.r).substr(-1)==="%"?"prgb":"rgb"):ue(T.h)&&ue(T.s)&&ue(T.v)?(H=j(T.s),X=j(T.v),q=b(T.h,H,X),me=!0,ae="hsv"):ue(T.h)&&ue(T.s)&&ue(T.l)&&(H=j(T.s),ie=j(T.l),q=p(T.h,H,ie),me=!0,ae="hsl"),T.hasOwnProperty("a")&&(C=T.a)),C=se(C),{ok:me,format:T.format||ae,r:o(255,s(q.r,0)),g:o(255,s(q.g,0)),b:o(255,s(q.b,0)),a:C}}function u(T,q,C){return{r:I(T,255)*255,g:I(q,255)*255,b:I(C,255)*255}}function d(T,q,C){T=I(T,255),q=I(q,255),C=I(C,255);var H=s(T,q,C),X=o(T,q,C),ie,me,ae=(H+X)/2;if(H==X)ie=me=0;else{var pe=H-X;switch(me=ae>.5?pe/(2-H-X):pe/(H+X),H){case T:ie=(q-C)/pe+(q<C?6:0);break;case q:ie=(C-T)/pe+2;break;case C:ie=(T-q)/pe+4;break}ie/=6}return{h:ie,s:me,l:ae}}function p(T,q,C){var H,X,ie;T=I(T,360),q=I(q,100),C=I(C,100);function me(oe,ge,Ee){return Ee<0&&(Ee+=1),Ee>1&&(Ee-=1),Ee<1/6?oe+(ge-oe)*6*Ee:Ee<1/2?ge:Ee<2/3?oe+(ge-oe)*(2/3-Ee)*6:oe}if(q===0)H=X=ie=C;else{var ae=C<.5?C*(1+q):C+q-C*q,pe=2*C-ae;H=me(pe,ae,T+1/3),X=me(pe,ae,T),ie=me(pe,ae,T-1/3)}return{r:H*255,g:X*255,b:ie*255}}function y(T,q,C){T=I(T,255),q=I(q,255),C=I(C,255);var H=s(T,q,C),X=o(T,q,C),ie,me,ae=H,pe=H-X;if(me=H===0?0:pe/H,H==X)ie=0;else{switch(H){case T:ie=(q-C)/pe+(q<C?6:0);break;case q:ie=(C-T)/pe+2;break;case C:ie=(T-q)/pe+4;break}ie/=6}return{h:ie,s:me,v:ae}}function b(T,q,C){T=I(T,360)*6,q=I(q,100),C=I(C,100);var H=t.floor(T),X=T-H,ie=C*(1-q),me=C*(1-X*q),ae=C*(1-(1-X)*q),pe=H%6,oe=[C,me,ie,ie,ae,C][pe],ge=[ae,C,C,me,ie,ie][pe],Ee=[ie,ie,ae,C,C,me][pe];return{r:oe*255,g:ge*255,b:Ee*255}}function _(T,q,C,H){var X=[J(a(T).toString(16)),J(a(q).toString(16)),J(a(C).toString(16))];return H&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0):X.join("")}function g(T,q,C,H,X){var ie=[J(a(T).toString(16)),J(a(q).toString(16)),J(a(C).toString(16)),J(z(H))];return X&&ie[0].charAt(0)==ie[0].charAt(1)&&ie[1].charAt(0)==ie[1].charAt(1)&&ie[2].charAt(0)==ie[2].charAt(1)&&ie[3].charAt(0)==ie[3].charAt(1)?ie[0].charAt(0)+ie[1].charAt(0)+ie[2].charAt(0)+ie[3].charAt(0):ie.join("")}function S(T,q,C,H){var X=[J(z(H)),J(a(T).toString(16)),J(a(q).toString(16)),J(a(C).toString(16))];return X.join("")}c.equals=function(T,q){return!T||!q?!1:c(T).toRgbString()==c(q).toRgbString()},c.random=function(){return c.fromRatio({r:f(),g:f(),b:f()})};function E(T,q){q=q===0?0:q||10;var C=c(T).toHsl();return C.s-=q/100,C.s=N(C.s),c(C)}function v(T,q){q=q===0?0:q||10;var C=c(T).toHsl();return C.s+=q/100,C.s=N(C.s),c(C)}function m(T){return c(T).desaturate(100)}function w(T,q){q=q===0?0:q||10;var C=c(T).toHsl();return C.l+=q/100,C.l=N(C.l),c(C)}function x(T,q){q=q===0?0:q||10;var C=c(T).toRgb();return C.r=s(0,o(255,C.r-a(255*-(q/100)))),C.g=s(0,o(255,C.g-a(255*-(q/100)))),C.b=s(0,o(255,C.b-a(255*-(q/100)))),c(C)}function A(T,q){q=q===0?0:q||10;var C=c(T).toHsl();return C.l-=q/100,C.l=N(C.l),c(C)}function R(T,q){var C=c(T).toHsl(),H=(C.h+q)%360;return C.h=H<0?360+H:H,c(C)}function B(T){var q=c(T).toHsl();return q.h=(q.h+180)%360,c(q)}function P(T){var q=c(T).toHsl(),C=q.h;return[c(T),c({h:(C+120)%360,s:q.s,l:q.l}),c({h:(C+240)%360,s:q.s,l:q.l})]}function O(T){var q=c(T).toHsl(),C=q.h;return[c(T),c({h:(C+90)%360,s:q.s,l:q.l}),c({h:(C+180)%360,s:q.s,l:q.l}),c({h:(C+270)%360,s:q.s,l:q.l})]}function D(T){var q=c(T).toHsl(),C=q.h;return[c(T),c({h:(C+72)%360,s:q.s,l:q.l}),c({h:(C+216)%360,s:q.s,l:q.l})]}function k(T,q,C){q=q||6,C=C||30;var H=c(T).toHsl(),X=360/C,ie=[c(T)];for(H.h=(H.h-(X*q>>1)+720)%360;--q;)H.h=(H.h+X)%360,ie.push(c(H));return ie}function M(T,q){q=q||6;for(var C=c(T).toHsv(),H=C.h,X=C.s,ie=C.v,me=[],ae=1/q;q--;)me.push(c({h:H,s:X,v:ie})),ie=(ie+ae)%1;return me}c.mix=function(T,q,C){C=C===0?0:C||50;var H=c(T).toRgb(),X=c(q).toRgb(),ie=C/100,me={r:(X.r-H.r)*ie+H.r,g:(X.g-H.g)*ie+H.g,b:(X.b-H.b)*ie+H.b,a:(X.a-H.a)*ie+H.a};return c(me)},c.readability=function(T,q){var C=c(T),H=c(q);return(t.max(C.getLuminance(),H.getLuminance())+.05)/(t.min(C.getLuminance(),H.getLuminance())+.05)},c.isReadable=function(T,q,C){var H=c.readability(T,q),X,ie;switch(ie=!1,X=ne(C),X.level+X.size){case"AAsmall":case"AAAlarge":ie=H>=4.5;break;case"AAlarge":ie=H>=3;break;case"AAAsmall":ie=H>=7;break}return ie},c.mostReadable=function(T,q,C){var H=null,X=0,ie,me,ae,pe;C=C||{},me=C.includeFallbackColors,ae=C.level,pe=C.size;for(var oe=0;oe<q.length;oe++)ie=c.readability(T,q[oe]),ie>X&&(X=ie,H=c(q[oe]));return c.isReadable(T,H,{level:ae,size:pe})||!me?H:(C.includeFallbackColors=!1,c.mostReadable(T,["#fff","#000"],C))};var L=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},U=c.hexNames=W(L);function W(T){var q={};for(var C in T)T.hasOwnProperty(C)&&(q[T[C]]=C);return q}function se(T){return T=parseFloat(T),(isNaN(T)||T<0||T>1)&&(T=1),T}function I(T,q){V(T)&&(T="100%");var C=G(T);return T=o(q,s(0,parseFloat(T))),C&&(T=parseInt(T*q,10)/100),t.abs(T-q)<1e-6?1:T%q/parseFloat(q)}function N(T){return o(1,s(0,T))}function F(T){return parseInt(T,16)}function V(T){return typeof T=="string"&&T.indexOf(".")!=-1&&parseFloat(T)===1}function G(T){return typeof T=="string"&&T.indexOf("%")!=-1}function J(T){return T.length==1?"0"+T:""+T}function j(T){return T<=1&&(T=T*100+"%"),T}function z(T){return t.round(parseFloat(T)*255).toString(16)}function Q(T){return F(T)/255}var le=function(){var T="[-\\+]?\\d+%?",q="[-\\+]?\\d*\\.\\d+%?",C="(?:"+q+")|(?:"+T+")",H="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",X="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ue(T){return!!le.CSS_UNIT.exec(T)}function Y(T){T=T.replace(n,"").replace(i,"").toLowerCase();var q=!1;if(L[T])T=L[T],q=!0;else if(T=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=le.rgb.exec(T))?{r:C[1],g:C[2],b:C[3]}:(C=le.rgba.exec(T))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=le.hsl.exec(T))?{h:C[1],s:C[2],l:C[3]}:(C=le.hsla.exec(T))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=le.hsv.exec(T))?{h:C[1],s:C[2],v:C[3]}:(C=le.hsva.exec(T))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=le.hex8.exec(T))?{r:F(C[1]),g:F(C[2]),b:F(C[3]),a:Q(C[4]),format:q?"name":"hex8"}:(C=le.hex6.exec(T))?{r:F(C[1]),g:F(C[2]),b:F(C[3]),format:q?"name":"hex"}:(C=le.hex4.exec(T))?{r:F(C[1]+""+C[1]),g:F(C[2]+""+C[2]),b:F(C[3]+""+C[3]),a:Q(C[4]+""+C[4]),format:q?"name":"hex8"}:(C=le.hex3.exec(T))?{r:F(C[1]+""+C[1]),g:F(C[2]+""+C[2]),b:F(C[3]+""+C[3]),format:q?"name":"hex"}:!1}function ne(T){var q,C;return T=T||{level:"AA",size:"small"},q=(T.level||"AA").toUpperCase(),C=(T.size||"small").toLowerCase(),q!=="AA"&&q!=="AAA"&&(q="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:q,size:C}}typeof r<"u"&&r.exports?r.exports=c:typeof define=="function"&&define.amd?define(function(){return c}):window.tinycolor=c}(Math)}),E_=te((e,r)=>{Z();var t=w_(),n={r:256,g:256,b:256,a:1},i={h:360,s:1,v:1,a:1};function l(u,d,p){let y={};for(let b in u)u.hasOwnProperty(b)&&(y[b]=p===0?0:(d[b]-u[b])/p);return y}function a(u,d,p,y){let b={};for(let _ in d)d.hasOwnProperty(_)&&(b[_]=u[_]*p+d[_],b[_]=b[_]<0?b[_]+y[_]:y[_]!==1?b[_]%y[_]:b[_]);return b}function o(u,d,p){let y=u.color.toRgb(),b=d.color.toRgb(),_=l(y,b,p),g=[u.color];for(let S=1;S<p;S++){let E=a(_,y,S,n);g.push(t(E))}return g}function s(u,d,p,y){let b=u.color.toHsv(),_=d.color.toHsv();if(b.s===0||_.s===0)return o(u,d,p);let g;if(typeof y=="boolean")g=y;else{let m=b.h<_.h&&_.h-b.h<180||b.h>_.h&&b.h-_.h>180;g=y==="long"&&m||y==="short"&&!m}let S=l(b,_,p),E=[u.color],v;b.h<=_.h&&!g||b.h>=_.h&&g?v=_.h-b.h:g?v=360-_.h+b.h:v=360-b.h+_.h,S.h=Math.pow(-1,g?1:0)*Math.abs(v)/p;for(let m=1;m<p;m++){let w=a(S,b,m,i);E.push(t(w))}return E}function f(u,d){let p=u.length;if(d=parseInt(d,10),isNaN(d)||d<2)throw new Error("Invalid number of steps (< 2)");if(d<p)throw new Error("Number of steps cannot be inferior to number of stops");let y=[];for(let _=1;_<p;_++){let g=(d-1)*(u[_].pos-u[_-1].pos);y.push(Math.max(1,Math.round(g)))}let b=1;for(let _=p-1;_--;)b+=y[_];for(;b!==d;)if(b<d){let _=Math.min.apply(null,y);y[y.indexOf(_)]++,b++}else{let _=Math.max.apply(null,y);y[y.indexOf(_)]--,b--}return y}function c(u,d,p,y){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,_;for(let E=0,v=u.length;E<v-1;E++)if(d>=u[E].pos&&d<u[E+1].pos){b=u[E],_=u[E+1];break}b||(b=_=u[u.length-1]);let g=l(b.color[p](),_.color[p](),(_.pos-b.pos)*100),S=a(g,b.color[p](),(d-b.pos)*100,y);return t(S)}var h=class{constructor(u){if(u.length<2)throw new Error("Invalid number of stops (< 2)");let d=u[0].pos!==void 0,p=u.length,y=-1,b=!1;this.stops=u.map((_,g)=>{let S=_.pos!==void 0;if(d^S)throw new Error("Cannot mix positionned and not posionned color stops");if(S){let E=_.color!==void 0;if(!E&&(b||g===0||g===p-1))throw new Error("Cannot define two consecutive position-only stops");if(b=!E,_={color:E?t(_.color):null,colorLess:!E,pos:_.pos},_.pos<0||_.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(_.pos<y)throw new Error("Color stops positions are not ordered");y=_.pos}else _={color:t(_.color!==void 0?_.color:_),pos:g/(p-1)};return _}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),p++),this.stops[p-1].pos!==1&&this.stops.push({color:this.stops[p-1].color,pos:1})}reverse(){let u=[];return this.stops.forEach(function(d){u.push({color:d.color,pos:1-d.pos})}),new h(u.reverse())}loop(){let u=[],d=[];return this.stops.forEach(p=>{u.push({color:p.color,pos:p.pos/2})}),this.stops.slice(0,-1).forEach(p=>{d.push({color:p.color,pos:1-p.pos/2})}),new h(u.concat(d.reverse()))}rgb(u){let d=f(this.stops,u),p=[];this.stops.forEach((y,b)=>{y.colorLess&&(y.color=o(this.stops[b-1],this.stops[b+1],2)[1])});for(let y=0,b=this.stops.length;y<b-1;y++){let _=o(this.stops[y],this.stops[y+1],d[y]);p.splice(p.length,0,..._)}return p.push(this.stops[this.stops.length-1].color),p}hsv(u,d){let p=f(this.stops,u),y=[];this.stops.forEach((b,_)=>{b.colorLess&&(b.color=s(this.stops[_-1],this.stops[_+1],2,d)[1])});for(let b=0,_=this.stops.length;b<_-1;b++){let g=s(this.stops[b],this.stops[b+1],p[b],d);y.splice(y.length,0,...g)}return y.push(this.stops[this.stops.length-1].color),y}css(u,d){u=u||"linear",d=d||(u==="linear"?"to right":"ellipse at center");let p=u+"-gradient("+d;return this.stops.forEach(function(y){p+=", "+(y.colorLess?"":y.color.toRgbString()+" ")+y.pos*100+"%"}),p+=")",p}rgbAt(u){return c(this.stops,u,"toRgb",n)}hsvAt(u){return c(this.stops,u,"toHsv",i)}};r.exports=function(u){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');u=arguments[0]}else u=Array.prototype.slice.call(arguments);return new h(u)}}),S_=te((e,r)=>{"use strict";Z();var t=__(),n=E_(),i=/\s/g;function l(...h){let u=n.apply(this,h),d=(p,y)=>o(p?p.toString():"",u,y);return d.multiline=(p,y)=>s(p?p.toString():"",u,y),d}var a=(h,u,d)=>u.interpolation.toLowerCase()==="hsv"?h.hsv(d,u.hsvSpin.toLowerCase()):h.rgb(d);function o(h,u,d){let p=f(d),y=Math.max(h.replace(i,"").length,u.stops.length),b=a(u,p,y),_="";for(let g of h)_+=g.match(i)?g:t.hex(b.shift().toHex())(g);return _}function s(h,u,d){let p=f(d),y=h.split(`
|
|
145
|
+
`),b=Math.max.apply(null,y.map(S=>S.length).concat([u.stops.length])),_=a(u,p,b),g=[];for(let S of y){let E=_.slice(0),v="";for(let m of S)v+=t.hex(E.shift().toHex())(m);g.push(v)}return g.join(`
|
|
146
|
+
`)}function f(h){let u={interpolation:"rgb",hsvSpin:"short",...h};if(h!==void 0&&typeof h!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof h}\``);if(typeof u.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof u.interpolation}\``);if(u.interpolation.toLowerCase()==="hsv"&&typeof u.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof u.hsvSpin}\``);return u}var c={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};r.exports=l;for(let h in c)r.exports[h]=u=>new l(c[h].colors)(u,c[h].options),r.exports[h].multiline=u=>new l(c[h].colors).multiline(u,c[h].options)}),qe={};rf(qe,{dimmed:()=>O_,error:()=>Lt,info:()=>D_,item:()=>T_,turboBlue:()=>sn,turboGradient:()=>k_,turboLoader:()=>Sa,turboRed:()=>qf,warn:()=>R_,yellow:()=>Uf});Z();var ns=Ge(Pr()),x_=Ge(g_()),A_=Ge(S_()),$f="#0099F7",Hf="#F11712",C_="#FFFF00",k_=(0,A_.default)($f,Hf),sn=ns.default.hex($f),qf=ns.default.hex(Hf),Uf=ns.default.hex(C_),Sa=e=>(0,x_.default)({text:e,spinner:{frames:[" ",sn("> "),sn(">> "),sn(">>>")]}}),D_=(...e)=>{console.log(sn.bold(">>>"),...e)},Lt=(...e)=>{console.error(qf.bold(">>>"),...e)},R_=(...e)=>{console.error(Uf.bold(">>>"),...e)},O_=(...e)=>{console.log(ns.default.dim(...e))},T_=(...e)=>{console.log(sn.bold(" \u2022"),...e)};var on=Ue(require("path"),1),F_=te((e,r)=>{Z();function t(n,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}r.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var i=new Date().getTime();if(n&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);var l=this._timeouts.shift();if(l===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),l=this._cachedTimeouts.slice(-1);else return!1;var a=this;return this._timer=setTimeout(function(){a._attempts++,a._operationTimeoutCb&&(a._timeout=setTimeout(function(){a._operationTimeoutCb(a._attempts)},a._operationTimeout),a._options.unref&&a._timeout.unref()),a._fn(a._attempts)},l),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(n,i){this._fn=n,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var l=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){l._operationTimeoutCb()},l._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},t.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(this._errors.length===0)return null;for(var n={},i=null,l=0,a=0;a<this._errors.length;a++){var o=this._errors[a],s=o.message,f=(n[s]||0)+1;n[s]=f,f>=l&&(i=o,l=f)}return i}}),P_=te(e=>{Z();var r=F_();e.operation=function(t){var n=e.timeouts(t);return new r(n,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in t)n[i]=t[i];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var l=[],a=0;a<n.retries;a++)l.push(this.createTimeout(a,n));return t&&t.forever&&!l.length&&l.push(this.createTimeout(a,n)),l.sort(function(o,s){return o-s}),l},e.createTimeout=function(t,n){var i=n.randomize?Math.random()+1:1,l=Math.round(i*Math.max(n.minTimeout,1)*Math.pow(n.factor,t));return l=Math.min(l,n.maxTimeout),l},e.wrap=function(t,n,i){if(n instanceof Array&&(i=n,n=null),!i){i=[];for(var l in t)typeof t[l]=="function"&&i.push(l)}for(var a=0;a<i.length;a++){var o=i[a],s=t[o];t[o]=function(f){var c=e.operation(n),h=Array.prototype.slice.call(arguments,1),u=h.pop();h.push(function(d){c.retry(d)||(d&&(arguments[0]=c.mainError()),u.apply(this,arguments))}),c.attempt(function(){f.apply(t,h)})}.bind(t,s),t[o].options=n}}}),B_=te((e,r)=>{Z(),r.exports=P_()}),I_=te((e,r)=>{Z();var t=B_();function n(i,l){function a(o,s){var f=l||{},c;"randomize"in f||(f.randomize=!0),c=t.operation(f);function h(p){s(p||new Error("Aborted"))}function u(p,y){if(p.bail){h(p);return}c.retry(p)?f.onRetry&&f.onRetry(p,y):s(c.mainError())}function d(p){var y;try{y=i(h,p)}catch(b){u(b,p);return}Promise.resolve(y).then(o).catch(function(b){u(b,p)})}c.attempt(d)}return new Promise(a)}r.exports=n});Z();Z();var Gf=Ge(I_()),pr=Ge(Pr()),xa=Ge(fr()),L_=class extends Error{};async function Aa({appPath:e,example:r,isDefaultExample:t,examplePath:n}){let i,l;try{l=new URL(r)}catch(_){_.code!=="ERR_INVALID_URL"&&(Lt(_),process.exit(1))}l?(l.origin!=="https://github.com"&&(Lt(`Invalid URL: ${pr.default.red(`"${r}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`),process.exit(1)),i=await pa(l,n),i||(Lt(`Unable to fetch repository information from: ${pr.default.red(`"${r}"`)}. Please fix the URL and try again.`),process.exit(1)),await da(i)||(Lt(`Could not locate the repository for ${pr.default.red(`"${r}"`)}. Please check that the repository exists and try again.`),process.exit(1))):await ma(r)||(Lt(`Could not locate an example named ${pr.default.red(`"${r}"`)}. It could be due to the following:
|
|
147
|
+
`,`1. Your spelling of example ${pr.default.red(`"${r}"`)} might be incorrect.
|
|
148
|
+
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1));let a=on.default.resolve(e);await Ea(on.default.dirname(a))||(Lt("The application path is not writable, please check folder permissions and try again."),Lt("It is likely you do not have write permissions for this folder."),process.exit(1));let o=on.default.basename(a);try{await xa.default.mkdir(a,{recursive:!0})}catch(_){Lt("Unable to create project directory"),console.error(_),process.exit(1)}let{isEmpty:s,conflicts:f}=ni(a);s||(Lt(`${pr.default.dim(a)} has ${f.length} conflicting ${f.length===1?"file":"files"} - please try a different location`),process.exit(1));let c=process.cwd();process.chdir(a);let h=Sa("Downloading files...");try{i?(console.log(`
|
|
149
|
+
Downloading files from repo ${pr.default.cyan(r)}. This might take a moment.`),console.log(),h.start(),await(0,Gf.default)(()=>ya(a,i),{retries:3})):(console.log(`
|
|
150
|
+
Downloading files${t?"":` for example ${pr.default.cyan(r)}`}. This might take a moment.`),console.log(),h.start(),await(0,Gf.default)(()=>ga(a,r),{retries:3}))}catch(_){let g=function(S){return typeof S=="object"&&S!==null&&typeof S.message=="string"};var u=g;throw new L_(g(_)?_.message:_+"")}finally{h.stop()}let d=on.default.join(a,"package.json"),p=xa.default.existsSync(d),y=[];if(p){let _;try{_=xa.default.readJsonSync(d)}catch{}_&&y.push(...Object.keys(_.scripts||{}))}let b=e;return on.default.join(c,o)===e&&(b=o),{cdPath:b,hasPackageJson:p,availableScripts:y,repoInfo:i}}var M_=te((e,r)=>{Z(),r.exports=l,l.sync=a;var t=he("fs");function n(o,s){var f=s.pathExt!==void 0?s.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var c=0;c<f.length;c++){var h=f[c].toLowerCase();if(h&&o.substr(-h.length).toLowerCase()===h)return!0}return!1}function i(o,s,f){return!o.isSymbolicLink()&&!o.isFile()?!1:n(s,f)}function l(o,s,f){t.stat(o,function(c,h){f(c,c?!1:i(h,o,s))})}function a(o,s){return i(t.statSync(o),o,s)}}),N_=te((e,r)=>{Z(),r.exports=n,n.sync=i;var t=he("fs");function n(o,s,f){t.stat(o,function(c,h){f(c,c?!1:l(h,s))})}function i(o,s){return l(t.statSync(o),s)}function l(o,s){return o.isFile()&&a(o,s)}function a(o,s){var f=o.mode,c=o.uid,h=o.gid,u=s.uid!==void 0?s.uid:process.getuid&&process.getuid(),d=s.gid!==void 0?s.gid:process.getgid&&process.getgid(),p=parseInt("100",8),y=parseInt("010",8),b=parseInt("001",8),_=p|y,g=f&b||f&y&&h===d||f&p&&c===u||f&_&&u===0;return g}}),j_=te((e,r)=>{Z();var t=he("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=M_():n=N_(),r.exports=i,i.sync=l;function i(a,o,s){if(typeof o=="function"&&(s=o,o={}),!s){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(f,c){i(a,o||{},function(h,u){h?c(h):f(u)})})}n(a,o||{},function(f,c){f&&(f.code==="EACCES"||o&&o.ignoreErrors)&&(f=null,c=!1),s(f,c)})}function l(a,o){try{return n.sync(a,o||{})}catch(s){if(o&&o.ignoreErrors||s.code==="EACCES")return!1;throw s}}}),$_=te((e,r)=>{Z();var t=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=he("path"),i=t?";":":",l=j_(),a=c=>Object.assign(new Error(`not found: ${c}`),{code:"ENOENT"}),o=(c,h)=>{let u=h.colon||i,d=c.match(/\//)||t&&c.match(/\\/)?[""]:[...t?[process.cwd()]:[],...(h.path||process.env.PATH||"").split(u)],p=t?h.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",y=t?p.split(u):[""];return t&&c.indexOf(".")!==-1&&y[0]!==""&&y.unshift(""),{pathEnv:d,pathExt:y,pathExtExe:p}},s=(c,h,u)=>{typeof h=="function"&&(u=h,h={}),h||(h={});let{pathEnv:d,pathExt:p,pathExtExe:y}=o(c,h),b=[],_=S=>new Promise((E,v)=>{if(S===d.length)return h.all&&b.length?E(b):v(a(c));let m=d[S],w=/^".*"$/.test(m)?m.slice(1,-1):m,x=n.join(w,c),A=!w&&/^\.[\\\/]/.test(c)?c.slice(0,2)+x:x;E(g(A,S,0))}),g=(S,E,v)=>new Promise((m,w)=>{if(v===p.length)return m(_(E+1));let x=p[v];l(S+x,{pathExt:y},(A,R)=>{if(!A&&R)if(h.all)b.push(S+x);else return m(S+x);return m(g(S,E,v+1))})});return u?_(0).then(S=>u(null,S),u):_(0)},f=(c,h)=>{h=h||{};let{pathEnv:u,pathExt:d,pathExtExe:p}=o(c,h),y=[];for(let b=0;b<u.length;b++){let _=u[b],g=/^".*"$/.test(_)?_.slice(1,-1):_,S=n.join(g,c),E=!g&&/^\.[\\\/]/.test(c)?c.slice(0,2)+S:S;for(let v=0;v<d.length;v++){let m=E+d[v];try{if(l.sync(m,{pathExt:p}))if(h.all)y.push(m);else return m}catch{}}}if(h.all&&y.length)return y;if(h.nothrow)return null;throw a(c)};r.exports=s,s.sync=f}),Wf=te((e,r)=>{"use strict";Z();var t=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(l=>l.toUpperCase()==="PATH")||"Path"};r.exports=t,r.exports.default=t}),H_=te((e,r)=>{"use strict";Z();var t=he("path"),n=$_(),i=Wf();function l(o,s){let f=o.options.env||process.env,c=process.cwd(),h=o.options.cwd!=null,u=h&&process.chdir!==void 0&&!process.chdir.disabled;if(u)try{process.chdir(o.options.cwd)}catch{}let d;try{d=n.sync(o.command,{path:f[i({env:f})],pathExt:s?t.delimiter:void 0})}catch{}finally{u&&process.chdir(c)}return d&&(d=t.resolve(h?o.options.cwd:"",d)),d}function a(o){return l(o)||l(o,!0)}r.exports=a}),q_=te((e,r)=>{"use strict";Z();var t=/([()\][%!^"`<>&|;, *?])/g;function n(l){return l=l.replace(t,"^$1"),l}function i(l,a){return l=`${l}`,l=l.replace(/(\\*)"/g,'$1$1\\"'),l=l.replace(/(\\*)$/,"$1$1"),l=`"${l}"`,l=l.replace(t,"^$1"),a&&(l=l.replace(t,"^$1")),l}r.exports.command=n,r.exports.argument=i}),U_=te((e,r)=>{"use strict";Z(),r.exports=/^#!(.*)/}),G_=te((e,r)=>{"use strict";Z();var t=U_();r.exports=(n="")=>{let i=n.match(t);if(!i)return null;let[l,a]=i[0].replace(/#! ?/,"").split(" "),o=l.split("/").pop();return o==="env"?a:a?`${o} ${a}`:o}}),W_=te((e,r)=>{"use strict";Z();var t=he("fs"),n=G_();function i(l){let a=Buffer.alloc(150),o;try{o=t.openSync(l,"r"),t.readSync(o,a,0,150,0),t.closeSync(o)}catch{}return n(a.toString())}r.exports=i}),z_=te((e,r)=>{"use strict";Z();var t=he("path"),n=H_(),i=q_(),l=W_(),a=process.platform==="win32",o=/\.(?:com|exe)$/i,s=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function f(u){u.file=n(u);let d=u.file&&l(u.file);return d?(u.args.unshift(u.file),u.command=d,n(u)):u.file}function c(u){if(!a)return u;let d=f(u),p=!o.test(d);if(u.options.forceShell||p){let y=s.test(d);u.command=t.normalize(u.command),u.command=i.command(u.command),u.args=u.args.map(_=>i.argument(_,y));let b=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${b}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}function h(u,d,p){d&&!Array.isArray(d)&&(p=d,d=null),d=d?d.slice(0):[],p=Object.assign({},p);let y={command:u,args:d,options:p,file:void 0,original:{command:u,args:d}};return p.shell?y:c(y)}r.exports=h}),V_=te((e,r)=>{"use strict";Z();var t=process.platform==="win32";function n(o,s){return Object.assign(new Error(`${s} ${o.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${s} ${o.command}`,path:o.command,spawnargs:o.args})}function i(o,s){if(!t)return;let f=o.emit;o.emit=function(c,h){if(c==="exit"){let u=l(h,s,"spawn");if(u)return f.call(o,"error",u)}return f.apply(o,arguments)}}function l(o,s){return t&&o===1&&!s.file?n(s.original,"spawn"):null}function a(o,s){return t&&o===1&&!s.file?n(s.original,"spawnSync"):null}r.exports={hookChildProcess:i,verifyENOENT:l,verifyENOENTSync:a,notFoundError:n}}),K_=te((e,r)=>{"use strict";Z();var t=he("child_process"),n=z_(),i=V_();function l(o,s,f){let c=n(o,s,f),h=t.spawn(c.command,c.args,c.options);return i.hookChildProcess(h,c),h}function a(o,s,f){let c=n(o,s,f),h=t.spawnSync(c.command,c.args,c.options);return h.error=h.error||i.verifyENOENTSync(h.status,c),h}r.exports=l,r.exports.spawn=l,r.exports.sync=a,r.exports._parse=n,r.exports._enoent=i}),Y_=te((e,r)=>{"use strict";Z(),r.exports=t=>{let n=typeof t=="string"?`
|
|
151
|
+
`:`
|
|
152
|
+
`.charCodeAt(),i=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===n&&(t=t.slice(0,t.length-1)),t[t.length-1]===i&&(t=t.slice(0,t.length-1)),t}}),X_=te((e,r)=>{"use strict";Z();var t=he("path"),n=Wf(),i=l=>{l={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...l};let a,o=t.resolve(l.cwd),s=[];for(;a!==o;)s.push(t.join(o,"node_modules/.bin")),a=o,o=t.resolve(o,"..");let f=t.resolve(l.cwd,l.execPath,"..");return s.push(f),s.concat(l.path).join(t.delimiter)};r.exports=i,r.exports.default=i,r.exports.env=l=>{l={env:process.env,...l};let a={...l.env},o=n({env:a});return l.path=a[o],a[o]=r.exports(l),a}}),Z_=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var r=[{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"}];e.SIGNALS=r}),zf=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var r=function(){let l=i-n+1;return Array.from({length:l},t)};e.getRealtimeSignals=r;var t=function(l,a){return{name:`SIGRT${a+1}`,number:n+a,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;e.SIGRTMAX=i}),Q_=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var r=he("os"),t=Z_(),n=zf(),i=function(){let a=(0,n.getRealtimeSignals)();return[...t.SIGNALS,...a].map(l)};e.getSignals=i;var l=function({name:a,number:o,description:s,action:f,forced:c=!1,standard:h}){let{signals:{[a]:u}}=r.constants,d=u!==void 0;return{name:a,number:d?u:o,description:s,supported:d,action:f,forced:c,standard:h}}}),J_=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var r=he("os"),t=Q_(),n=zf(),i=function(){return(0,t.getSignals)().reduce(l,{})},l=function(h,{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}){return{...h,[u]:{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}}},a=i();e.signalsByName=a;var o=function(){let h=(0,t.getSignals)(),u=n.SIGRTMAX+1,d=Array.from({length:u},(p,y)=>s(y,h));return Object.assign({},...d)},s=function(h,u){let d=f(h,u);if(d===void 0)return{};let{name:p,description:y,supported:b,action:_,forced:g,standard:S}=d;return{[h]:{name:p,number:h,description:y,supported:b,action:_,forced:g,standard:S}}},f=function(h,u){let d=u.find(({name:p})=>r.constants.signals[p]===h);return d!==void 0?d:u.find(p=>p.number===h)},c=o();e.signalsByNumber=c}),ew=te((e,r)=>{"use strict";Z();var{signalsByName:t}=J_(),n=({timedOut:l,timeout:a,errorCode:o,signal:s,signalDescription:f,exitCode:c,isCanceled:h})=>l?`timed out after ${a} milliseconds`:h?"was canceled":o!==void 0?`failed with ${o}`:s!==void 0?`was killed with ${s} (${f})`:c!==void 0?`failed with exit code ${c}`:"failed",i=({stdout:l,stderr:a,all:o,error:s,signal:f,exitCode:c,command:h,escapedCommand:u,timedOut:d,isCanceled:p,killed:y,parsed:{options:{timeout:b}}})=>{c=c===null?void 0:c,f=f===null?void 0:f;let _=f===void 0?void 0:t[f].description,g=s&&s.code,S=`Command ${n({timedOut:d,timeout:b,errorCode:g,signal:f,signalDescription:_,exitCode:c,isCanceled:p})}: ${h}`,E=Object.prototype.toString.call(s)==="[object Error]",v=E?`${S}
|
|
153
|
+
${s.message}`:S,m=[v,a,l].filter(Boolean).join(`
|
|
154
|
+
`);return E?(s.originalMessage=s.message,s.message=m):s=new Error(m),s.shortMessage=v,s.command=h,s.escapedCommand=u,s.exitCode=c,s.signal=f,s.signalDescription=_,s.stdout=l,s.stderr=a,o!==void 0&&(s.all=o),"bufferedData"in s&&delete s.bufferedData,s.failed=!0,s.timedOut=!!d,s.isCanceled=p,s.killed=y&&!d,s};r.exports=i}),tw=te((e,r)=>{"use strict";Z();var t=["stdin","stdout","stderr"],n=l=>t.some(a=>l[a]!==void 0),i=l=>{if(!l)return;let{stdio:a}=l;if(a===void 0)return t.map(s=>l[s]);if(n(l))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(s=>`\`${s}\``).join(", ")}`);if(typeof a=="string")return a;if(!Array.isArray(a))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof a}\``);let o=Math.max(a.length,t.length);return Array.from({length:o},(s,f)=>a[f])};r.exports=i,r.exports.node=l=>{let a=i(l);return a==="ipc"?"ipc":a===void 0||typeof a=="string"?[a,a,a,"ipc"]:a.includes("ipc")?a:[...a,"ipc"]}}),rw=te((e,r)=>{"use strict";Z();var t=he("os"),n=rs(),i=1e3*5,l=(y,b="SIGTERM",_={})=>{let g=y(b);return a(y,b,_,g),g},a=(y,b,_,g)=>{if(!o(b,_,g))return;let S=f(_),E=setTimeout(()=>{y("SIGKILL")},S);E.unref&&E.unref()},o=(y,{forceKillAfterTimeout:b},_)=>s(y)&&b!==!1&&_,s=y=>y===t.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},c=(y,b)=>{y.kill()&&(b.isCanceled=!0)},h=(y,b,_)=>{y.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},u=(y,{timeout:b,killSignal:_="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let S,E=new Promise((m,w)=>{S=setTimeout(()=>{h(y,_,w)},b)}),v=g.finally(()=>{clearTimeout(S)});return Promise.race([E,v])},d=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},p=async(y,{cleanup:b,detached:_},g)=>{if(!b||_)return g;let S=n(()=>{y.kill()});return g.finally(()=>{S()})};r.exports={spawnedKill:l,spawnedCancel:c,setupTimeout:u,validateTimeout:d,setExitHandler:p}}),nw=te((e,r)=>{"use strict";Z();var t=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";t.writable=n=>t(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",t.readable=n=>t(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",t.duplex=n=>t.writable(n)&&t.readable(n),t.transform=n=>t.duplex(n)&&typeof n._transform=="function",r.exports=t}),iw=te((e,r)=>{"use strict";Z();var{PassThrough:t}=he("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:l}=n,a=l==="buffer",o=!1;i?o=!(l||a):l=l||"utf8",a&&(l=null);let s=new t({objectMode:o});l&&s.setEncoding(l);let f=0,c=[];return s.on("data",h=>{c.push(h),o?f=c.length:f+=h.length}),s.getBufferedValue=()=>i?c:a?Buffer.concat(c,f):c.join(""),s.getBufferedLength=()=>f,s}}),sw=te((e,r)=>{"use strict";Z();var{constants:t}=he("buffer"),n=he("stream"),{promisify:i}=he("util"),l=iw(),a=i(n.pipeline),o=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function s(f,c){if(!f)throw new Error("Expected a stream");c={maxBuffer:1/0,...c};let{maxBuffer:h}=c,u=l(c);return await new Promise((d,p)=>{let y=b=>{b&&u.getBufferedLength()<=t.MAX_LENGTH&&(b.bufferedData=u.getBufferedValue()),p(b)};(async()=>{try{await a(f,u),d()}catch(b){y(b)}})(),u.on("data",()=>{u.getBufferedLength()>h&&y(new o)})}),u.getBufferedValue()}r.exports=s,r.exports.buffer=(f,c)=>s(f,{...c,encoding:"buffer"}),r.exports.array=(f,c)=>s(f,{...c,array:!0}),r.exports.MaxBufferError=o}),ow=te((e,r)=>{"use strict";Z();var{PassThrough:t}=he("stream");r.exports=function(){var n=[],i=new t({objectMode:!0});return i.setMaxListeners(0),i.add=l,i.isEmpty=a,i.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(l),i;function l(s){return Array.isArray(s)?(s.forEach(l),this):(n.push(s),s.once("end",o.bind(null,s)),s.once("error",i.emit.bind(i,"error")),s.pipe(i,{end:!1}),this)}function a(){return n.length==0}function o(s){n=n.filter(function(f){return f!==s}),!n.length&&i.readable&&i.end()}}}),aw=te((e,r)=>{"use strict";Z();var t=nw(),n=sw(),i=ow(),l=(h,u)=>{u===void 0||h.stdin===void 0||(t(u)?u.pipe(h.stdin):h.stdin.end(u))},a=(h,{all:u})=>{if(!u||!h.stdout&&!h.stderr)return;let d=i();return h.stdout&&d.add(h.stdout),h.stderr&&d.add(h.stderr),d},o=async(h,u)=>{if(h){h.destroy();try{return await u}catch(d){return d.bufferedData}}},s=(h,{encoding:u,buffer:d,maxBuffer:p})=>{if(!(!h||!d))return u?n(h,{encoding:u,maxBuffer:p}):n.buffer(h,{maxBuffer:p})},f=async({stdout:h,stderr:u,all:d},{encoding:p,buffer:y,maxBuffer:b},_)=>{let g=s(h,{encoding:p,buffer:y,maxBuffer:b}),S=s(u,{encoding:p,buffer:y,maxBuffer:b}),E=s(d,{encoding:p,buffer:y,maxBuffer:b*2});try{return await Promise.all([_,g,S,E])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},o(h,g),o(u,S),o(d,E)])}},c=({input:h})=>{if(t(h))throw new TypeError("The `input` option cannot be a stream in sync mode")};r.exports={handleInput:l,makeAllStream:a,getSpawnedResult:f,validateInputSync:c}}),uw=te((e,r)=>{"use strict";Z();var t=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(a=>[a,Reflect.getOwnPropertyDescriptor(t,a)]),i=(a,o)=>{for(let[s,f]of n){let c=typeof o=="function"?(...h)=>Reflect.apply(f.value,o(),h):f.value.bind(o);Reflect.defineProperty(a,s,{...f,value:c})}return a},l=a=>new Promise((o,s)=>{a.on("exit",(f,c)=>{o({exitCode:f,signal:c})}),a.on("error",f=>{s(f)}),a.stdin&&a.stdin.on("error",f=>{s(f)})});r.exports={mergePromise:i,getSpawnedPromise:l}}),lw=te((e,r)=>{"use strict";Z();var t=(c,h=[])=>Array.isArray(h)?[c,...h]:[c],n=/^[\w.-]+$/,i=/"/g,l=c=>typeof c!="string"||n.test(c)?c:`"${c.replace(i,'\\"')}"`,a=(c,h)=>t(c,h).join(" "),o=(c,h)=>t(c,h).map(u=>l(u)).join(" "),s=/ +/g,f=c=>{let h=[];for(let u of c.trim().split(s)){let d=h[h.length-1];d&&d.endsWith("\\")?h[h.length-1]=`${d.slice(0,-1)} ${u}`:h.push(u)}return h};r.exports={joinCommand:a,getEscapedCommand:o,parseCommand:f}}),cw=te((e,r)=>{"use strict";Z();var t=he("path"),n=he("child_process"),i=K_(),l=Y_(),a=X_(),o=ts(),s=ew(),f=tw(),{spawnedKill:c,spawnedCancel:h,setupTimeout:u,validateTimeout:d,setExitHandler:p}=rw(),{handleInput:y,getSpawnedResult:b,makeAllStream:_,validateInputSync:g}=aw(),{mergePromise:S,getSpawnedPromise:E}=uw(),{joinCommand:v,parseCommand:m,getEscapedCommand:w}=lw(),x=1e3*1e3*100,A=({env:O,extendEnv:D,preferLocal:k,localDir:M,execPath:L})=>{let U=D?{...process.env,...O}:O;return k?a.env({env:U,cwd:M,execPath:L}):U},R=(O,D,k={})=>{let M=i._parse(O,D,k);return O=M.command,D=M.args,k=M.options,k={maxBuffer:x,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:k.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...k},k.env=A(k),k.stdio=f(k),process.platform==="win32"&&t.basename(O,".exe")==="cmd"&&D.unshift("/q"),{file:O,args:D,options:k,parsed:M}},B=(O,D,k)=>typeof D!="string"&&!Buffer.isBuffer(D)?k===void 0?void 0:"":O.stripFinalNewline?l(D):D,P=(O,D,k)=>{let M=R(O,D,k),L=v(O,D),U=w(O,D);d(M.options);let W;try{W=n.spawn(M.file,M.args,M.options)}catch(G){let J=new n.ChildProcess,j=Promise.reject(s({error:G,stdout:"",stderr:"",all:"",command:L,escapedCommand:U,parsed:M,timedOut:!1,isCanceled:!1,killed:!1}));return S(J,j)}let se=E(W),I=u(W,M.options,se),N=p(W,M.options,I),F={isCanceled:!1};W.kill=c.bind(null,W.kill.bind(W)),W.cancel=h.bind(null,W,F);let V=o(async()=>{let[{error:G,exitCode:J,signal:j,timedOut:z},Q,le,ue]=await b(W,M.options,N),Y=B(M.options,Q),ne=B(M.options,le),T=B(M.options,ue);if(G||J!==0||j!==null){let q=s({error:G,exitCode:J,signal:j,stdout:Y,stderr:ne,all:T,command:L,escapedCommand:U,parsed:M,timedOut:z,isCanceled:F.isCanceled,killed:W.killed});if(!M.options.reject)return q;throw q}return{command:L,escapedCommand:U,exitCode:0,stdout:Y,stderr:ne,all:T,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(W,M.options.input),W.all=_(W,M.options),S(W,V)};r.exports=P,r.exports.sync=(O,D,k)=>{let M=R(O,D,k),L=v(O,D),U=w(O,D);g(M.options);let W;try{W=n.spawnSync(M.file,M.args,M.options)}catch(N){throw s({error:N,stdout:"",stderr:"",all:"",command:L,escapedCommand:U,parsed:M,timedOut:!1,isCanceled:!1,killed:!1})}let se=B(M.options,W.stdout,W.error),I=B(M.options,W.stderr,W.error);if(W.error||W.status!==0||W.signal!==null){let N=s({stdout:se,stderr:I,error:W.error,signal:W.signal,exitCode:W.status,command:L,escapedCommand:U,parsed:M,timedOut:W.error&&W.error.code==="ETIMEDOUT",isCanceled:!1,killed:W.signal!==null});if(!M.options.reject)return N;throw N}return{command:L,escapedCommand:U,exitCode:0,stdout:se,stderr:I,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},r.exports.command=(O,D)=>{let[k,...M]=m(O);return P(k,M,D)},r.exports.commandSync=(O,D)=>{let[k,...M]=m(O);return P.sync(k,M,D)},r.exports.node=(O,D,k={})=>{D&&!Array.isArray(D)&&typeof D=="object"&&(k=D,D=[]);let M=f.node(k),L=process.execArgv.filter(se=>!se.startsWith("--inspect")),{nodePath:U=process.execPath,nodeOptions:W=L}=k;return P(U,[...W,O,...Array.isArray(D)?D:[]],{...k,stdin:void 0,stdout:void 0,stderr:void 0,stdio:M,shell:!1})}});Z();var I7=Ge(cw());var Ca=Ue(require("path"),1);Z();var Vf=Ge(fr()),Kf=Ge(Pr());function is(e){let r=Ca.default.resolve(e),t=Ca.default.basename(r),n=Vf.default.existsSync(r),i=Vf.default.lstatSync(r,{throwIfNoEntry:!1});if(i&&!i.isDirectory())return{valid:!1,root:r,projectName:t,error:`${Kf.default.dim(t)} is not a directory - please try a different location`};if(n){let{isEmpty:l,conflicts:a}=ni(r);if(!l)return{valid:!1,root:r,projectName:t,error:`${Kf.default.dim(t)} (${r}) has ${a.length} conflicting ${a.length===1?"file":"files"} - please try a different location`}}return{valid:!0,root:r,projectName:t}}var ka=Ue(require("fs"),1),ii=Ue(require("path"),1);Z();function si({target:e,cwd:r,contentCheck:t}){let n=ii.default.parse(r).root,i=!1;for(;!i&&r!==n;){if(t)try{let l=ka.default.readFileSync(ii.default.join(r,e)).toString();if(t(l)){i=!0;break}}catch{}else if(ka.default.existsSync(ii.default.join(r,e))){i=!0;break}r=ii.default.dirname(r)}return i?r:null}var hs=Ue(require("path"),1),hw=te((e,r)=>{Z();function t(n){return r.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r.exports.__esModule=!0,r.exports.default=r.exports,t(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}),fw=te((e,r)=>{Z();var t=hw().default;function n(){"use strict";r.exports=n=function(){return i},r.exports.__esModule=!0,r.exports.default=r.exports;var i={},l=Object.prototype,a=l.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},s=o.iterator||"@@iterator",f=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function h(D,k,M){return Object.defineProperty(D,k,{value:M,enumerable:!0,configurable:!0,writable:!0}),D[k]}try{h({},"")}catch{h=function(D,k,M){return D[k]=M}}function u(D,k,M,L){var U=k&&k.prototype instanceof y?k:y,W=Object.create(U.prototype),se=new B(L||[]);return W._invoke=function(I,N,F){var V="suspendedStart";return function(G,J){if(V==="executing")throw new Error("Generator is already running");if(V==="completed"){if(G==="throw")throw J;return O()}for(F.method=G,F.arg=J;;){var j=F.delegate;if(j){var z=x(j,F);if(z){if(z===p)continue;return z}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(V==="suspendedStart")throw V="completed",F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);V="executing";var Q=d(I,N,F);if(Q.type==="normal"){if(V=F.done?"completed":"suspendedYield",Q.arg===p)continue;return{value:Q.arg,done:F.done}}Q.type==="throw"&&(V="completed",F.method="throw",F.arg=Q.arg)}}}(D,M,se),W}function d(D,k,M){try{return{type:"normal",arg:D.call(k,M)}}catch(L){return{type:"throw",arg:L}}}i.wrap=u;var p={};function y(){}function b(){}function _(){}var g={};h(g,s,function(){return this});var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==l&&a.call(E,s)&&(g=E);var v=_.prototype=y.prototype=Object.create(g);function m(D){["next","throw","return"].forEach(function(k){h(D,k,function(M){return this._invoke(k,M)})})}function w(D,k){function M(U,W,se,I){var N=d(D[U],D,W);if(N.type!=="throw"){var F=N.arg,V=F.value;return V&&t(V)=="object"&&a.call(V,"__await")?k.resolve(V.__await).then(function(G){M("next",G,se,I)},function(G){M("throw",G,se,I)}):k.resolve(V).then(function(G){F.value=G,se(F)},function(G){return M("throw",G,se,I)})}I(N.arg)}var L;this._invoke=function(U,W){function se(){return new k(function(I,N){M(U,W,I,N)})}return L=L?L.then(se,se):se()}}function x(D,k){var M=D.iterator[k.method];if(M===void 0){if(k.delegate=null,k.method==="throw"){if(D.iterator.return&&(k.method="return",k.arg=void 0,x(D,k),k.method==="throw"))return p;k.method="throw",k.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var L=d(M,D.iterator,k.arg);if(L.type==="throw")return k.method="throw",k.arg=L.arg,k.delegate=null,p;var U=L.arg;return U?U.done?(k[D.resultName]=U.value,k.next=D.nextLoc,k.method!=="return"&&(k.method="next",k.arg=void 0),k.delegate=null,p):U:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,p)}function A(D){var k={tryLoc:D[0]};1 in D&&(k.catchLoc=D[1]),2 in D&&(k.finallyLoc=D[2],k.afterLoc=D[3]),this.tryEntries.push(k)}function R(D){var k=D.completion||{};k.type="normal",delete k.arg,D.completion=k}function B(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(A,this),this.reset(!0)}function P(D){if(D){var k=D[s];if(k)return k.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var M=-1,L=function U(){for(;++M<D.length;)if(a.call(D,M))return U.value=D[M],U.done=!1,U;return U.value=void 0,U.done=!0,U};return L.next=L}}return{next:O}}function O(){return{value:void 0,done:!0}}return b.prototype=_,h(v,"constructor",_),h(_,"constructor",b),b.displayName=h(_,c,"GeneratorFunction"),i.isGeneratorFunction=function(D){var k=typeof D=="function"&&D.constructor;return!!k&&(k===b||(k.displayName||k.name)==="GeneratorFunction")},i.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,_):(D.__proto__=_,h(D,c,"GeneratorFunction")),D.prototype=Object.create(v),D},i.awrap=function(D){return{__await:D}},m(w.prototype),h(w.prototype,f,function(){return this}),i.AsyncIterator=w,i.async=function(D,k,M,L,U){U===void 0&&(U=Promise);var W=new w(u(D,k,M,L),U);return i.isGeneratorFunction(k)?W:W.next().then(function(se){return se.done?se.value:W.next()})},m(v),h(v,c,"Generator"),h(v,s,function(){return this}),h(v,"toString",function(){return"[object Generator]"}),i.keys=function(D){var k=[];for(var M in D)k.push(M);return k.reverse(),function L(){for(;k.length;){var U=k.pop();if(U in D)return L.value=U,L.done=!1,L}return L.done=!0,L}},i.values=P,B.prototype={constructor:B,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(R),!D)for(var k in this)k.charAt(0)==="t"&&a.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=void 0)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var k=this;function M(N,F){return W.type="throw",W.arg=D,k.next=N,F&&(k.method="next",k.arg=void 0),!!F}for(var L=this.tryEntries.length-1;L>=0;--L){var U=this.tryEntries[L],W=U.completion;if(U.tryLoc==="root")return M("end");if(U.tryLoc<=this.prev){var se=a.call(U,"catchLoc"),I=a.call(U,"finallyLoc");if(se&&I){if(this.prev<U.catchLoc)return M(U.catchLoc,!0);if(this.prev<U.finallyLoc)return M(U.finallyLoc)}else if(se){if(this.prev<U.catchLoc)return M(U.catchLoc,!0)}else{if(!I)throw new Error("try statement without catch or finally");if(this.prev<U.finallyLoc)return M(U.finallyLoc)}}}},abrupt:function(D,k){for(var M=this.tryEntries.length-1;M>=0;--M){var L=this.tryEntries[M];if(L.tryLoc<=this.prev&&a.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var U=L;break}}U&&(D==="break"||D==="continue")&&U.tryLoc<=k&&k<=U.finallyLoc&&(U=null);var W=U?U.completion:{};return W.type=D,W.arg=k,U?(this.method="next",this.next=U.finallyLoc,p):this.complete(W)},complete:function(D,k){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&k&&(this.next=k),p},finish:function(D){for(var k=this.tryEntries.length-1;k>=0;--k){var M=this.tryEntries[k];if(M.finallyLoc===D)return this.complete(M.completion,M.afterLoc),R(M),p}},catch:function(D){for(var k=this.tryEntries.length-1;k>=0;--k){var M=this.tryEntries[k];if(M.tryLoc===D){var L=M.completion;if(L.type==="throw"){var U=L.arg;R(M)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(D,k,M){return this.delegate={iterator:P(D),resultName:k,nextLoc:M},this.method==="next"&&(this.arg=void 0),p}},i}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}),pw=te((e,r)=>{Z();var t=fw()();r.exports=t;try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}),dw=te((e,r)=>{"use strict";Z();var t=(n,...i)=>new Promise(l=>{l(n(...i))});r.exports=t,r.exports.default=t}),mw=te((e,r)=>{"use strict";Z();var t=dw(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let l=[],a=0,o=()=>{a--,l.length>0&&l.shift()()},s=(h,u,...d)=>{a++;let p=t(h,...d);u(p),p.then(o,o)},f=(h,u,...d)=>{a<i?s(h,u,...d):l.push(s.bind(null,h,u,...d))},c=(h,...u)=>new Promise(d=>f(h,d,...u));return Object.defineProperties(c,{activeCount:{get:()=>a},pendingCount:{get:()=>l.length},clearQueue:{value:()=>{l.length=0}}}),c};r.exports=n,r.exports.default=n}),yw=te((e,r)=>{"use strict";Z();var t=mw(),n=class extends Error{constructor(o){super(),this.value=o}},i=async(o,s)=>s(await o),l=async o=>{let s=await Promise.all(o);if(s[1]===!0)throw new n(s[0]);return!1},a=async(o,s,f)=>{f={concurrency:1/0,preserveOrder:!0,...f};let c=t(f.concurrency),h=[...o].map(d=>[d,c(i,d,s)]),u=t(f.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>u(l,d)))}catch(d){if(d instanceof n)return d.value;throw d}};r.exports=a,r.exports.default=a}),gw=te((e,r)=>{"use strict";Z();var t=he("path"),n=he("fs"),{promisify:i}=he("util"),l=yw(),a=i(n.stat),o=i(n.lstat),s={directory:"isDirectory",file:"isFile"};function f({type:h}){if(!(h in s))throw new Error(`Invalid type specified: ${h}`)}var c=(h,u)=>h===void 0||u[s[h]]();r.exports=async(h,u)=>{u={cwd:process.cwd(),type:"file",allowSymlinks:!0,...u},f(u);let d=u.allowSymlinks?a:o;return l(h,async p=>{try{let y=await d(t.resolve(u.cwd,p));return c(u.type,y)}catch{return!1}},u)},r.exports.sync=(h,u)=>{u={cwd:process.cwd(),allowSymlinks:!0,type:"file",...u},f(u);let d=u.allowSymlinks?n.statSync:n.lstatSync;for(let p of h)try{let y=d(t.resolve(u.cwd,p));if(c(u.type,y))return p}catch{}}}),bw=te((e,r)=>{"use strict";Z();var t=he("fs"),{promisify:n}=he("util"),i=n(t.access);r.exports=async l=>{try{return await i(l),!0}catch{return!1}},r.exports.sync=l=>{try{return t.accessSync(l),!0}catch{return!1}}}),vw=te((e,r)=>{"use strict";Z();var t=he("path"),n=gw(),i=bw(),l=Symbol("findUp.stop");r.exports=async(a,o={})=>{let s=t.resolve(o.cwd||""),{root:f}=t.parse(s),c=[].concat(a),h=async u=>{if(typeof a!="function")return n(c,u);let d=await a(u.cwd);return typeof d=="string"?n([d],u):d};for(;;){let u=await h({...o,cwd:s});if(u===l)return;if(u)return t.resolve(s,u);if(s===f)return;s=t.dirname(s)}},r.exports.sync=(a,o={})=>{let s=t.resolve(o.cwd||""),{root:f}=t.parse(s),c=[].concat(a),h=u=>{if(typeof a!="function")return n.sync(c,u);let d=a(u.cwd);return typeof d=="string"?n.sync([d],u):d};for(;;){let u=h({...o,cwd:s});if(u===l)return;if(u)return t.resolve(s,u);if(s===f)return;s=t.dirname(s)}},r.exports.exists=i,r.exports.sync.exists=i.sync,r.exports.stop=l}),Ct=te(e=>{"use strict";Z(),e.fromCallback=function(r){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")r.apply(this,arguments);else return new Promise((t,n)=>{arguments[arguments.length]=(i,l)=>{if(i)return n(i);t(l)},arguments.length++,r.apply(this,arguments)})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(){let t=arguments[arguments.length-1];if(typeof t!="function")return r.apply(this,arguments);r.apply(this,arguments).then(n=>t(null,n),t)},"name",{value:r.name})}}),Xf=te(e=>{"use strict";Z();var r=Ct().fromCallback,t=je(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.keys(t).forEach(i=>{i!=="promises"&&(e[i]=t[i])}),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,l){return typeof l=="function"?t.exists(i,l):new Promise(a=>t.exists(i,a))},e.read=function(i,l,a,o,s,f){return typeof f=="function"?t.read(i,l,a,o,s,f):new Promise((c,h)=>{t.read(i,l,a,o,s,(u,d,p)=>{if(u)return h(u);c({bytesRead:d,buffer:p})})})},e.write=function(i,l,...a){return typeof a[a.length-1]=="function"?t.write(i,l,...a):new Promise((o,s)=>{t.write(i,l,...a,(f,c,h)=>{if(f)return s(f);o({bytesWritten:c,buffer:h})})})},typeof t.realpath.native=="function"&&(e.realpath.native=r(t.realpath.native))}),Zf=te((e,r)=>{"use strict";Z();var t=he("path");function n(a){return a=t.normalize(t.resolve(a)).split(t.sep),a.length>0?a[0]:null}var i=/[<>:"|?*]/;function l(a){let o=n(a);return a=a.replace(o,""),i.test(a)}r.exports={getRootPath:n,invalidWin32Path:l}}),_w=te((e,r)=>{"use strict";Z();var t=je(),n=he("path"),i=Zf().invalidWin32Path,l=parseInt("0777",8);function a(o,s,f,c){if(typeof s=="function"?(f=s,s={}):(!s||typeof s!="object")&&(s={mode:s}),process.platform==="win32"&&i(o)){let d=new Error(o+" contains invalid WIN32 path characters.");return d.code="EINVAL",f(d)}let h=s.mode,u=s.fs||t;h===void 0&&(h=l&~process.umask()),c||(c=null),f=f||function(){},o=n.resolve(o),u.mkdir(o,h,d=>{if(!d)return c=c||o,f(null,c);switch(d.code){case"ENOENT":if(n.dirname(o)===o)return f(d);a(n.dirname(o),s,(p,y)=>{p?f(p,y):a(o,s,f,y)});break;default:u.stat(o,(p,y)=>{p||!y.isDirectory()?f(d,c):f(null,c)});break}})}r.exports=a}),ww=te((e,r)=>{"use strict";Z();var t=je(),n=he("path"),i=Zf().invalidWin32Path,l=parseInt("0777",8);function a(o,s,f){(!s||typeof s!="object")&&(s={mode:s});let c=s.mode,h=s.fs||t;if(process.platform==="win32"&&i(o)){let u=new Error(o+" contains invalid WIN32 path characters.");throw u.code="EINVAL",u}c===void 0&&(c=l&~process.umask()),f||(f=null),o=n.resolve(o);try{h.mkdirSync(o,c),f=f||o}catch(u){if(u.code==="ENOENT"){if(n.dirname(o)===o)throw u;f=a(n.dirname(o),s,f),a(o,s,f)}else{let d;try{d=h.statSync(o)}catch{throw u}if(!d.isDirectory())throw u}}return f}r.exports=a}),Tt=te((e,r)=>{"use strict";Z();var t=Ct().fromCallback,n=t(_w()),i=ww();r.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}}),Qf=te((e,r)=>{"use strict";Z();var t=je(),n=he("os"),i=he("path");function l(){let c=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));c=i.join(n.tmpdir(),c);let h=new Date(1435410243862);t.writeFileSync(c,"https://github.com/jprichardson/node-fs-extra/pull/141");let u=t.openSync(c,"r+");return t.futimesSync(u,h,h),t.closeSync(u),t.statSync(c).mtime>1435410243e3}function a(c){let h=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));h=i.join(n.tmpdir(),h);let u=new Date(1435410243862);t.writeFile(h,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return c(d);t.open(h,"r+",(p,y)=>{if(p)return c(p);t.futimes(y,u,u,b=>{if(b)return c(b);t.close(y,_=>{if(_)return c(_);t.stat(h,(g,S)=>{if(g)return c(g);c(null,S.mtime>1435410243e3)})})})})})}function o(c){if(typeof c=="number")return Math.floor(c/1e3)*1e3;if(c instanceof Date)return new Date(Math.floor(c.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function s(c,h,u,d){t.open(c,"r+",(p,y)=>{if(p)return d(p);t.futimes(y,h,u,b=>{t.close(y,_=>{d&&d(b||_)})})})}function f(c,h,u){let d=t.openSync(c,"r+");return t.futimesSync(d,h,u),t.closeSync(d)}r.exports={hasMillisRes:a,hasMillisResSync:l,timeRemoveMillis:o,utimesMillis:s,utimesMillisSync:f}}),ls=te((e,r)=>{"use strict";Z();var t=je(),n=he("path"),i=10,l=5,a=0,o=process.versions.node.split("."),s=Number.parseInt(o[0],10),f=Number.parseInt(o[1],10),c=Number.parseInt(o[2],10);function h(){return s>i||s===i&&(f>l||f===l&&c>=a)}function u(E,v,m){h()?t.stat(E,{bigint:!0},(w,x)=>{if(w)return m(w);t.stat(v,{bigint:!0},(A,R)=>A?A.code==="ENOENT"?m(null,{srcStat:x,destStat:null}):m(A):m(null,{srcStat:x,destStat:R}))}):t.stat(E,(w,x)=>{if(w)return m(w);t.stat(v,(A,R)=>A?A.code==="ENOENT"?m(null,{srcStat:x,destStat:null}):m(A):m(null,{srcStat:x,destStat:R}))})}function d(E,v){let m,w;h()?m=t.statSync(E,{bigint:!0}):m=t.statSync(E);try{h()?w=t.statSync(v,{bigint:!0}):w=t.statSync(v)}catch(x){if(x.code==="ENOENT")return{srcStat:m,destStat:null};throw x}return{srcStat:m,destStat:w}}function p(E,v,m,w){u(E,v,(x,A)=>{if(x)return w(x);let{srcStat:R,destStat:B}=A;return B&&B.ino&&B.dev&&B.ino===R.ino&&B.dev===R.dev?w(new Error("Source and destination must not be the same.")):R.isDirectory()&&g(E,v)?w(new Error(S(E,v,m))):w(null,{srcStat:R,destStat:B})})}function y(E,v,m){let{srcStat:w,destStat:x}=d(E,v);if(x&&x.ino&&x.dev&&x.ino===w.ino&&x.dev===w.dev)throw new Error("Source and destination must not be the same.");if(w.isDirectory()&&g(E,v))throw new Error(S(E,v,m));return{srcStat:w,destStat:x}}function b(E,v,m,w,x){let A=n.resolve(n.dirname(E)),R=n.resolve(n.dirname(m));if(R===A||R===n.parse(R).root)return x();h()?t.stat(R,{bigint:!0},(B,P)=>B?B.code==="ENOENT"?x():x(B):P.ino&&P.dev&&P.ino===v.ino&&P.dev===v.dev?x(new Error(S(E,m,w))):b(E,v,R,w,x)):t.stat(R,(B,P)=>B?B.code==="ENOENT"?x():x(B):P.ino&&P.dev&&P.ino===v.ino&&P.dev===v.dev?x(new Error(S(E,m,w))):b(E,v,R,w,x))}function _(E,v,m,w){let x=n.resolve(n.dirname(E)),A=n.resolve(n.dirname(m));if(A===x||A===n.parse(A).root)return;let R;try{h()?R=t.statSync(A,{bigint:!0}):R=t.statSync(A)}catch(B){if(B.code==="ENOENT")return;throw B}if(R.ino&&R.dev&&R.ino===v.ino&&R.dev===v.dev)throw new Error(S(E,m,w));return _(E,v,A,w)}function g(E,v){let m=n.resolve(E).split(n.sep).filter(x=>x),w=n.resolve(v).split(n.sep).filter(x=>x);return m.reduce((x,A,R)=>x&&w[R]===A,!0)}function S(E,v,m){return`Cannot ${m} '${E}' to a subdirectory of itself, '${v}'.`}r.exports={checkPaths:p,checkPathsSync:y,checkParentPaths:b,checkParentPathsSync:_,isSrcSubdir:g}}),Ew=te((e,r)=>{"use strict";Z(),r.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}}),Sw=te((e,r)=>{"use strict";Z();var t=je(),n=he("path"),i=Tt().mkdirsSync,l=Qf().utimesMillisSync,a=ls();function o(v,m,w){typeof w=="function"&&(w={filter:w}),w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
155
|
+
|
|
156
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:x,destStat:A}=a.checkPathsSync(v,m,"copy");return a.checkParentPathsSync(v,x,m,"copy"),s(A,v,m,w)}function s(v,m,w,x){if(x.filter&&!x.filter(m,w))return;let A=n.dirname(w);return t.existsSync(A)||i(A),f(v,m,w,x)}function f(v,m,w,x){if(!(x.filter&&!x.filter(m,w)))return c(v,m,w,x)}function c(v,m,w,x){let A=(x.dereference?t.statSync:t.lstatSync)(m);if(A.isDirectory())return y(A,v,m,w,x);if(A.isFile()||A.isCharacterDevice()||A.isBlockDevice())return h(A,v,m,w,x);if(A.isSymbolicLink())return S(v,m,w,x)}function h(v,m,w,x,A){return m?u(v,w,x,A):d(v,w,x,A)}function u(v,m,w,x){if(x.overwrite)return t.unlinkSync(w),d(v,m,w,x);if(x.errorOnExist)throw new Error(`'${w}' already exists`)}function d(v,m,w,x){return typeof t.copyFileSync=="function"?(t.copyFileSync(m,w),t.chmodSync(w,v.mode),x.preserveTimestamps?l(w,v.atime,v.mtime):void 0):p(v,m,w,x)}function p(v,m,w,x){let A=Ew()(65536),R=t.openSync(m,"r"),B=t.openSync(w,"w",v.mode),P=0;for(;P<v.size;){let O=t.readSync(R,A,0,65536,P);t.writeSync(B,A,0,O),P+=O}x.preserveTimestamps&&t.futimesSync(B,v.atime,v.mtime),t.closeSync(R),t.closeSync(B)}function y(v,m,w,x,A){if(!m)return b(v,w,x,A);if(m&&!m.isDirectory())throw new Error(`Cannot overwrite non-directory '${x}' with directory '${w}'.`);return _(w,x,A)}function b(v,m,w,x){return t.mkdirSync(w),_(m,w,x),t.chmodSync(w,v.mode)}function _(v,m,w){t.readdirSync(v).forEach(x=>g(x,v,m,w))}function g(v,m,w,x){let A=n.join(m,v),R=n.join(w,v),{destStat:B}=a.checkPathsSync(A,R,"copy");return f(B,A,R,x)}function S(v,m,w,x){let A=t.readlinkSync(m);if(x.dereference&&(A=n.resolve(process.cwd(),A)),v){let R;try{R=t.readlinkSync(w)}catch(B){if(B.code==="EINVAL"||B.code==="UNKNOWN")return t.symlinkSync(A,w);throw B}if(x.dereference&&(R=n.resolve(process.cwd(),R)),a.isSrcSubdir(A,R))throw new Error(`Cannot copy '${A}' to a subdirectory of itself, '${R}'.`);if(t.statSync(w).isDirectory()&&a.isSrcSubdir(R,A))throw new Error(`Cannot overwrite '${R}' with '${A}'.`);return E(A,w)}else return t.symlinkSync(A,w)}function E(v,m){return t.unlinkSync(m),t.symlinkSync(v,m)}r.exports=o}),Jf=te((e,r)=>{"use strict";Z(),r.exports={copySync:Sw()}}),nr=te((e,r)=>{"use strict";Z();var t=Ct().fromPromise,n=Xf();function i(l){return n.access(l).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),xw=te((e,r)=>{"use strict";Z();var t=je(),n=he("path"),i=Tt().mkdirs,l=nr().pathExists,a=Qf().utimesMillis,o=ls();function s(A,R,B,P){typeof B=="function"&&!P?(P=B,B={}):typeof B=="function"&&(B={filter:B}),P=P||function(){},B=B||{},B.clobber="clobber"in B?!!B.clobber:!0,B.overwrite="overwrite"in B?!!B.overwrite:B.clobber,B.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
157
|
+
|
|
158
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),o.checkPaths(A,R,"copy",(O,D)=>{if(O)return P(O);let{srcStat:k,destStat:M}=D;o.checkParentPaths(A,k,R,"copy",L=>L?P(L):B.filter?c(f,M,A,R,B,P):f(M,A,R,B,P))})}function f(A,R,B,P,O){let D=n.dirname(B);l(D,(k,M)=>{if(k)return O(k);if(M)return h(A,R,B,P,O);i(D,L=>L?O(L):h(A,R,B,P,O))})}function c(A,R,B,P,O,D){Promise.resolve(O.filter(B,P)).then(k=>k?A(R,B,P,O,D):D(),k=>D(k))}function h(A,R,B,P,O){return P.filter?c(u,A,R,B,P,O):u(A,R,B,P,O)}function u(A,R,B,P,O){(P.dereference?t.stat:t.lstat)(R,(D,k)=>{if(D)return O(D);if(k.isDirectory())return g(k,A,R,B,P,O);if(k.isFile()||k.isCharacterDevice()||k.isBlockDevice())return d(k,A,R,B,P,O);if(k.isSymbolicLink())return w(A,R,B,P,O)})}function d(A,R,B,P,O,D){return R?p(A,B,P,O,D):y(A,B,P,O,D)}function p(A,R,B,P,O){if(P.overwrite)t.unlink(B,D=>D?O(D):y(A,R,B,P,O));else return P.errorOnExist?O(new Error(`'${B}' already exists`)):O()}function y(A,R,B,P,O){return typeof t.copyFile=="function"?t.copyFile(R,B,D=>D?O(D):_(A,B,P,O)):b(A,R,B,P,O)}function b(A,R,B,P,O){let D=t.createReadStream(R);D.on("error",k=>O(k)).once("open",()=>{let k=t.createWriteStream(B,{mode:A.mode});k.on("error",M=>O(M)).on("open",()=>D.pipe(k)).once("close",()=>_(A,B,P,O))})}function _(A,R,B,P){t.chmod(R,A.mode,O=>O?P(O):B.preserveTimestamps?a(R,A.atime,A.mtime,P):P())}function g(A,R,B,P,O,D){return R?R&&!R.isDirectory()?D(new Error(`Cannot overwrite non-directory '${P}' with directory '${B}'.`)):E(B,P,O,D):S(A,B,P,O,D)}function S(A,R,B,P,O){t.mkdir(B,D=>{if(D)return O(D);E(R,B,P,k=>k?O(k):t.chmod(B,A.mode,O))})}function E(A,R,B,P){t.readdir(A,(O,D)=>O?P(O):v(D,A,R,B,P))}function v(A,R,B,P,O){let D=A.pop();return D?m(A,D,R,B,P,O):O()}function m(A,R,B,P,O,D){let k=n.join(B,R),M=n.join(P,R);o.checkPaths(k,M,"copy",(L,U)=>{if(L)return D(L);let{destStat:W}=U;h(W,k,M,O,se=>se?D(se):v(A,B,P,O,D))})}function w(A,R,B,P,O){t.readlink(R,(D,k)=>{if(D)return O(D);if(P.dereference&&(k=n.resolve(process.cwd(),k)),A)t.readlink(B,(M,L)=>M?M.code==="EINVAL"||M.code==="UNKNOWN"?t.symlink(k,B,O):O(M):(P.dereference&&(L=n.resolve(process.cwd(),L)),o.isSrcSubdir(k,L)?O(new Error(`Cannot copy '${k}' to a subdirectory of itself, '${L}'.`)):A.isDirectory()&&o.isSrcSubdir(L,k)?O(new Error(`Cannot overwrite '${L}' with '${k}'.`)):x(k,B,O)));else return t.symlink(k,B,O)})}function x(A,R,B){t.unlink(R,P=>P?B(P):t.symlink(A,R,B))}r.exports=s}),ep=te((e,r)=>{"use strict";Z();var t=Ct().fromCallback;r.exports={copy:t(xw())}}),Aw=te((e,r)=>{"use strict";Z();var t=je(),n=he("path"),i=he("assert"),l=process.platform==="win32";function a(b){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(_=>{b[_]=b[_]||t[_],_=_+"Sync",b[_]=b[_]||t[_]}),b.maxBusyTries=b.maxBusyTries||3}function o(b,_,g){let S=0;typeof _=="function"&&(g=_,_={}),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i.strictEqual(typeof g,"function","rimraf: callback function required"),i(_,"rimraf: invalid options argument provided"),i.strictEqual(typeof _,"object","rimraf: options should be object"),a(_),s(b,_,function E(v){if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&S<_.maxBusyTries){S++;let m=S*100;return setTimeout(()=>s(b,_,E),m)}v.code==="ENOENT"&&(v=null)}g(v)})}function s(b,_,g){i(b),i(_),i(typeof g=="function"),_.lstat(b,(S,E)=>{if(S&&S.code==="ENOENT")return g(null);if(S&&S.code==="EPERM"&&l)return f(b,_,S,g);if(E&&E.isDirectory())return h(b,_,S,g);_.unlink(b,v=>{if(v){if(v.code==="ENOENT")return g(null);if(v.code==="EPERM")return l?f(b,_,v,g):h(b,_,v,g);if(v.code==="EISDIR")return h(b,_,v,g)}return g(v)})})}function f(b,_,g,S){i(b),i(_),i(typeof S=="function"),g&&i(g instanceof Error),_.chmod(b,438,E=>{E?S(E.code==="ENOENT"?null:g):_.stat(b,(v,m)=>{v?S(v.code==="ENOENT"?null:g):m.isDirectory()?h(b,_,g,S):_.unlink(b,S)})})}function c(b,_,g){let S;i(b),i(_),g&&i(g instanceof Error);try{_.chmodSync(b,438)}catch(E){if(E.code==="ENOENT")return;throw g}try{S=_.statSync(b)}catch(E){if(E.code==="ENOENT")return;throw g}S.isDirectory()?p(b,_,g):_.unlinkSync(b)}function h(b,_,g,S){i(b),i(_),g&&i(g instanceof Error),i(typeof S=="function"),_.rmdir(b,E=>{E&&(E.code==="ENOTEMPTY"||E.code==="EEXIST"||E.code==="EPERM")?u(b,_,S):E&&E.code==="ENOTDIR"?S(g):S(E)})}function u(b,_,g){i(b),i(_),i(typeof g=="function"),_.readdir(b,(S,E)=>{if(S)return g(S);let v=E.length,m;if(v===0)return _.rmdir(b,g);E.forEach(w=>{o(n.join(b,w),_,x=>{if(!m){if(x)return g(m=x);--v===0&&_.rmdir(b,g)}})})})}function d(b,_){let g;_=_||{},a(_),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i(_,"rimraf: missing options"),i.strictEqual(typeof _,"object","rimraf: options should be object");try{g=_.lstatSync(b)}catch(S){if(S.code==="ENOENT")return;S.code==="EPERM"&&l&&c(b,_,S)}try{g&&g.isDirectory()?p(b,_,null):_.unlinkSync(b)}catch(S){if(S.code==="ENOENT")return;if(S.code==="EPERM")return l?c(b,_,S):p(b,_,S);if(S.code!=="EISDIR")throw S;p(b,_,S)}}function p(b,_,g){i(b),i(_),g&&i(g instanceof Error);try{_.rmdirSync(b)}catch(S){if(S.code==="ENOTDIR")throw g;if(S.code==="ENOTEMPTY"||S.code==="EEXIST"||S.code==="EPERM")y(b,_);else if(S.code!=="ENOENT")throw S}}function y(b,_){if(i(b),i(_),_.readdirSync(b).forEach(g=>d(n.join(b,g),_)),l){let g=Date.now();do try{return _.rmdirSync(b,_)}catch{}while(Date.now()-g<500)}else return _.rmdirSync(b,_)}r.exports=o,o.sync=d}),cs=te((e,r)=>{"use strict";Z();var t=Ct().fromCallback,n=Aw();r.exports={remove:t(n),removeSync:n.sync}}),Cw=te((e,r)=>{"use strict";Z();var t=Ct().fromCallback,n=je(),i=he("path"),l=Tt(),a=cs(),o=t(function(f,c){c=c||function(){},n.readdir(f,(h,u)=>{if(h)return l.mkdirs(f,c);u=u.map(p=>i.join(f,p)),d();function d(){let p=u.pop();if(!p)return c();a.remove(p,y=>{if(y)return c(y);d()})}})});function s(f){let c;try{c=n.readdirSync(f)}catch{return l.mkdirsSync(f)}c.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:s,emptydirSync:s,emptyDir:o,emptydir:o}}),kw=te((e,r)=>{"use strict";Z();var t=Ct().fromCallback,n=he("path"),i=je(),l=Tt(),a=nr().pathExists;function o(f,c){function h(){i.writeFile(f,"",u=>{if(u)return c(u);c()})}i.stat(f,(u,d)=>{if(!u&&d.isFile())return c();let p=n.dirname(f);a(p,(y,b)=>{if(y)return c(y);if(b)return h();l.mkdirs(p,_=>{if(_)return c(_);h()})})})}function s(f){let c;try{c=i.statSync(f)}catch{}if(c&&c.isFile())return;let h=n.dirname(f);i.existsSync(h)||l.mkdirsSync(h),i.writeFileSync(f,"")}r.exports={createFile:t(o),createFileSync:s}}),Dw=te((e,r)=>{"use strict";Z();var t=Ct().fromCallback,n=he("path"),i=je(),l=Tt(),a=nr().pathExists;function o(f,c,h){function u(d,p){i.link(d,p,y=>{if(y)return h(y);h(null)})}a(c,(d,p)=>{if(d)return h(d);if(p)return h(null);i.lstat(f,y=>{if(y)return y.message=y.message.replace("lstat","ensureLink"),h(y);let b=n.dirname(c);a(b,(_,g)=>{if(_)return h(_);if(g)return u(f,c);l.mkdirs(b,S=>{if(S)return h(S);u(f,c)})})})})}function s(f,c){if(i.existsSync(c))return;try{i.lstatSync(f)}catch(u){throw u.message=u.message.replace("lstat","ensureLink"),u}let h=n.dirname(c);return i.existsSync(h)||l.mkdirsSync(h),i.linkSync(f,c)}r.exports={createLink:t(o),createLinkSync:s}}),Rw=te((e,r)=>{"use strict";Z();var t=he("path"),n=je(),i=nr().pathExists;function l(o,s,f){if(t.isAbsolute(o))return n.lstat(o,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),f(c)):f(null,{toCwd:o,toDst:o}));{let c=t.dirname(s),h=t.join(c,o);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:o}):n.lstat(o,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:o,toDst:t.relative(c,o)})))}}function a(o,s){let f;if(t.isAbsolute(o)){if(f=n.existsSync(o),!f)throw new Error("absolute srcpath does not exist");return{toCwd:o,toDst:o}}else{let c=t.dirname(s),h=t.join(c,o);if(f=n.existsSync(h),f)return{toCwd:h,toDst:o};if(f=n.existsSync(o),!f)throw new Error("relative srcpath does not exist");return{toCwd:o,toDst:t.relative(c,o)}}}r.exports={symlinkPaths:l,symlinkPathsSync:a}}),Ow=te((e,r)=>{"use strict";Z();var t=je();function n(l,a,o){if(o=typeof a=="function"?a:o,a=typeof a=="function"?!1:a,a)return o(null,a);t.lstat(l,(s,f)=>{if(s)return o(null,"file");a=f&&f.isDirectory()?"dir":"file",o(null,a)})}function i(l,a){let o;if(a)return a;try{o=t.lstatSync(l)}catch{return"file"}return o&&o.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),Tw=te((e,r)=>{"use strict";Z();var t=Ct().fromCallback,n=he("path"),i=je(),l=Tt(),a=l.mkdirs,o=l.mkdirsSync,s=Rw(),f=s.symlinkPaths,c=s.symlinkPathsSync,h=Ow(),u=h.symlinkType,d=h.symlinkTypeSync,p=nr().pathExists;function y(_,g,S,E){E=typeof S=="function"?S:E,S=typeof S=="function"?!1:S,p(g,(v,m)=>{if(v)return E(v);if(m)return E(null);f(_,g,(w,x)=>{if(w)return E(w);_=x.toDst,u(x.toCwd,S,(A,R)=>{if(A)return E(A);let B=n.dirname(g);p(B,(P,O)=>{if(P)return E(P);if(O)return i.symlink(_,g,R,E);a(B,D=>{if(D)return E(D);i.symlink(_,g,R,E)})})})})})}function b(_,g,S){if(i.existsSync(g))return;let E=c(_,g);_=E.toDst,S=d(E.toCwd,S);let v=n.dirname(g);return i.existsSync(v)||o(v),i.symlinkSync(_,g,S)}r.exports={createSymlink:t(y),createSymlinkSync:b}}),Fw=te((e,r)=>{"use strict";Z();var t=kw(),n=Dw(),i=Tw();r.exports={createFile:t.createFile,createFileSync:t.createFileSync,ensureFile:t.createFile,ensureFileSync:t.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),Pw=te((e,r)=>{Z();var t;try{t=je()}catch{t=he("fs")}function n(c,h,u){u==null&&(u=h,h={}),typeof h=="string"&&(h={encoding:h}),h=h||{};var d=h.fs||t,p=!0;"throws"in h&&(p=h.throws),d.readFile(c,h,function(y,b){if(y)return u(y);b=s(b);var _;try{_=JSON.parse(b,h?h.reviver:null)}catch(g){return p?(g.message=c+": "+g.message,u(g)):u(null,null)}u(null,_)})}function i(c,h){h=h||{},typeof h=="string"&&(h={encoding:h});var u=h.fs||t,d=!0;"throws"in h&&(d=h.throws);try{var p=u.readFileSync(c,h);return p=s(p),JSON.parse(p,h.reviver)}catch(y){if(d)throw y.message=c+": "+y.message,y;return null}}function l(c,h){var u,d=`
|
|
159
|
+
`;typeof h=="object"&&h!==null&&(h.spaces&&(u=h.spaces),h.EOL&&(d=h.EOL));var p=JSON.stringify(c,h?h.replacer:null,u);return p.replace(/\n/g,d)+d}function a(c,h,u,d){d==null&&(d=u,u={}),u=u||{};var p=u.fs||t,y="";try{y=l(h,u)}catch(b){d&&d(b,null);return}p.writeFile(c,y,u,d)}function o(c,h,u){u=u||{};var d=u.fs||t,p=l(h,u);return d.writeFileSync(c,p,u)}function s(c){return Buffer.isBuffer(c)&&(c=c.toString("utf8")),c=c.replace(/^\uFEFF/,""),c}var f={readFile:n,readFileSync:i,writeFile:a,writeFileSync:o};r.exports=f}),La=te((e,r)=>{"use strict";Z();var t=Ct().fromCallback,n=Pw();r.exports={readJson:t(n.readFile),readJsonSync:n.readFileSync,writeJson:t(n.writeFile),writeJsonSync:n.writeFileSync}}),Bw=te((e,r)=>{"use strict";Z();var t=he("path"),n=Tt(),i=nr().pathExists,l=La();function a(o,s,f,c){typeof f=="function"&&(c=f,f={});let h=t.dirname(o);i(h,(u,d)=>{if(u)return c(u);if(d)return l.writeJson(o,s,f,c);n.mkdirs(h,p=>{if(p)return c(p);l.writeJson(o,s,f,c)})})}r.exports=a}),Iw=te((e,r)=>{"use strict";Z();var t=je(),n=he("path"),i=Tt(),l=La();function a(o,s,f){let c=n.dirname(o);t.existsSync(c)||i.mkdirsSync(c),l.writeJsonSync(o,s,f)}r.exports=a}),Lw=te((e,r)=>{"use strict";Z();var t=Ct().fromCallback,n=La();n.outputJson=t(Bw()),n.outputJsonSync=Iw(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),Mw=te((e,r)=>{"use strict";Z();var t=je(),n=he("path"),i=Jf().copySync,l=cs().removeSync,a=Tt().mkdirpSync,o=ls();function s(u,d,p){p=p||{};let y=p.overwrite||p.clobber||!1,{srcStat:b}=o.checkPathsSync(u,d,"move");return o.checkParentPathsSync(u,b,d,"move"),a(n.dirname(d)),f(u,d,y)}function f(u,d,p){if(p)return l(d),c(u,d,p);if(t.existsSync(d))throw new Error("dest already exists.");return c(u,d,p)}function c(u,d,p){try{t.renameSync(u,d)}catch(y){if(y.code!=="EXDEV")throw y;return h(u,d,p)}}function h(u,d,p){return i(u,d,{overwrite:p,errorOnExist:!0}),l(u)}r.exports=s}),Nw=te((e,r)=>{"use strict";Z(),r.exports={moveSync:Mw()}}),jw=te((e,r)=>{"use strict";Z();var t=je(),n=he("path"),i=ep().copy,l=cs().remove,a=Tt().mkdirp,o=nr().pathExists,s=ls();function f(d,p,y,b){typeof y=="function"&&(b=y,y={});let _=y.overwrite||y.clobber||!1;s.checkPaths(d,p,"move",(g,S)=>{if(g)return b(g);let{srcStat:E}=S;s.checkParentPaths(d,E,p,"move",v=>{if(v)return b(v);a(n.dirname(p),m=>m?b(m):c(d,p,_,b))})})}function c(d,p,y,b){if(y)return l(p,_=>_?b(_):h(d,p,y,b));o(p,(_,g)=>_?b(_):g?b(new Error("dest already exists.")):h(d,p,y,b))}function h(d,p,y,b){t.rename(d,p,_=>_?_.code!=="EXDEV"?b(_):u(d,p,y,b):b())}function u(d,p,y,b){i(d,p,{overwrite:y,errorOnExist:!0},_=>_?b(_):l(d,b))}r.exports=f}),$w=te((e,r)=>{"use strict";Z();var t=Ct().fromCallback;r.exports={move:t(jw())}}),Hw=te((e,r)=>{"use strict";Z();var t=Ct().fromCallback,n=je(),i=he("path"),l=Tt(),a=nr().pathExists;function o(f,c,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,c,h,u);l.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,c,h,u)})})}function s(f,...c){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...c);l.mkdirsSync(h),n.writeFileSync(f,...c)}r.exports={outputFile:t(o),outputFileSync:s}}),qw=te((e,r)=>{"use strict";Z(),r.exports=Object.assign({},Xf(),Jf(),ep(),Cw(),Fw(),Lw(),Tt(),Nw(),$w(),Hw(),nr(),cs());var t=he("fs");Object.getOwnPropertyDescriptor(t,"promises")&&Object.defineProperty(r.exports,"promises",{get(){return t.promises}})});Z();Z();var K7=Ge(pw());Z();Z();function Uw(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}Z();Z();function Ta(e){return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ta(e)}Z();function Gw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ww(e,r){if(r&&(Ta(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gw(e)}Z();function as(e){return as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},as(e)}Z();Z();function ui(e,r){return ui=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},ui(e,r)}function zw(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&ui(e,r)}Z();Z();function Vw(e){return Function.toString.call(e).indexOf("[native code]")!==-1}Z();Z();function Kw(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function os(e,r,t){return Kw()?os=Reflect.construct.bind():os=function(n,i,l){var a=[null];a.push.apply(a,i);var o=Function.bind.apply(n,a),s=new o;return l&&ui(s,l.prototype),s},os.apply(null,arguments)}function Fa(e){var r=typeof Map=="function"?new Map:void 0;return Fa=function(t){if(t===null||!Vw(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return os(t,arguments,as(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ui(n,t)},Fa(e)}var Yw=Ge(vw()),Ma=Ge(qw()),Xw=function(e){zw(r,e);function r(t){var n;return Uw(this,r),n=Ww(this,as(r).call(this,"No package.json could be found upwards from the directory ".concat(t))),n.directory=t,n}return r}(Fa(Error));function Zw(e,r){try{var t=Ma.default.readJsonSync(hs.default.join(e,"package.json"));if(r.current===void 0&&(r.current=e),t.workspaces||t.bolt)return e}catch(n){if(n.code!=="ENOENT")throw n}}function Qw(e){try{var r=Ma.default.readJsonSync(hs.default.join(e,"lerna.json"));if(r.useWorkspaces!==!0)return e}catch(t){if(t.code!=="ENOENT")throw t}}function Jw(e){var r=Ma.default.existsSync(hs.default.join(e,"pnpm-workspace.yaml"));if(r)return e}function eE(e){var r={current:void 0},t=(0,Yw.sync)(function(n){return[Qw(n),Zw(n,r),Jw(n)].find(function(i){return i})},{cwd:e,type:"directory"});if(r.current===void 0)throw new Xw(e);return t===void 0?r.current:t}Z();var tE=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,rE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,nE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Da={Space_Separator:tE,ID_Start:rE,ID_Continue:nE},Ye={isSpaceSeparator(e){return typeof e=="string"&&Da.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Da.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||Da.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Pa,yt,tr,us,dr,Mt,nt,Na,ai,iE=function(e,r){Pa=String(e),yt="start",tr=[],us=0,dr=1,Mt=0,nt=void 0,Na=void 0,ai=void 0;do nt=sE(),uE[yt]();while(nt.type!=="eof");return typeof r=="function"?Ba({"":ai},"",r):ai};function Ba(e,r,t){let n=e[r];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let l=String(i),a=Ba(n,l,t);a===void 0?delete n[l]:Object.defineProperty(n,l,{value:a,writable:!0,enumerable:!0,configurable:!0})}else for(let i in n){let l=Ba(n,i,t);l===void 0?delete n[i]:Object.defineProperty(n,i,{value:l,writable:!0,enumerable:!0,configurable:!0})}return t.call(e,r,n)}var Le,Be,oi,er,Ne;function sE(){for(Le="default",Be="",oi=!1,er=1;;){Ne=rr();let e=tp[Le]();if(e)return e}}function rr(){if(Pa[us])return String.fromCodePoint(Pa.codePointAt(us))}function _e(){let e=rr();return e===`
|
|
160
|
+
`?(dr++,Mt=0):e?Mt+=e.length:Mt++,e&&(us+=e.length),e}var tp={default(){switch(Ne){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
|
161
|
+
`:case"\r":case"\u2028":case"\u2029":_e();return;case"/":_e(),Le="comment";return;case void 0:return _e(),We("eof")}if(Ye.isSpaceSeparator(Ne)){_e();return}return tp[yt]()},comment(){switch(Ne){case"*":_e(),Le="multiLineComment";return;case"/":_e(),Le="singleLineComment";return}throw ze(_e())},multiLineComment(){switch(Ne){case"*":_e(),Le="multiLineCommentAsterisk";return;case void 0:throw ze(_e())}_e()},multiLineCommentAsterisk(){switch(Ne){case"*":_e();return;case"/":_e(),Le="default";return;case void 0:throw ze(_e())}_e(),Le="multiLineComment"},singleLineComment(){switch(Ne){case`
|
|
162
|
+
`:case"\r":case"\u2028":case"\u2029":_e(),Le="default";return;case void 0:return _e(),We("eof")}_e()},value(){switch(Ne){case"{":case"[":return We("punctuator",_e());case"n":return _e(),Br("ull"),We("null",null);case"t":return _e(),Br("rue"),We("boolean",!0);case"f":return _e(),Br("alse"),We("boolean",!1);case"-":case"+":_e()==="-"&&(er=-1),Le="sign";return;case".":Be=_e(),Le="decimalPointLeading";return;case"0":Be=_e(),Le="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Be=_e(),Le="decimalInteger";return;case"I":return _e(),Br("nfinity"),We("numeric",1/0);case"N":return _e(),Br("aN"),We("numeric",NaN);case'"':case"'":oi=_e()==='"',Be="",Le="string";return}throw ze(_e())},identifierNameStartEscape(){if(Ne!=="u")throw ze(_e());_e();let e=Ia();switch(e){case"$":case"_":break;default:if(!Ye.isIdStartChar(e))throw Yf();break}Be+=e,Le="identifierName"},identifierName(){switch(Ne){case"$":case"_":case"\u200C":case"\u200D":Be+=_e();return;case"\\":_e(),Le="identifierNameEscape";return}if(Ye.isIdContinueChar(Ne)){Be+=_e();return}return We("identifier",Be)},identifierNameEscape(){if(Ne!=="u")throw ze(_e());_e();let e=Ia();switch(e){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!Ye.isIdContinueChar(e))throw Yf();break}Be+=e,Le="identifierName"},sign(){switch(Ne){case".":Be=_e(),Le="decimalPointLeading";return;case"0":Be=_e(),Le="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Be=_e(),Le="decimalInteger";return;case"I":return _e(),Br("nfinity"),We("numeric",er*(1/0));case"N":return _e(),Br("aN"),We("numeric",NaN)}throw ze(_e())},zero(){switch(Ne){case".":Be+=_e(),Le="decimalPoint";return;case"e":case"E":Be+=_e(),Le="decimalExponent";return;case"x":case"X":Be+=_e(),Le="hexadecimal";return}return We("numeric",er*0)},decimalInteger(){switch(Ne){case".":Be+=_e(),Le="decimalPoint";return;case"e":case"E":Be+=_e(),Le="decimalExponent";return}if(Ye.isDigit(Ne)){Be+=_e();return}return We("numeric",er*Number(Be))},decimalPointLeading(){if(Ye.isDigit(Ne)){Be+=_e(),Le="decimalFraction";return}throw ze(_e())},decimalPoint(){switch(Ne){case"e":case"E":Be+=_e(),Le="decimalExponent";return}if(Ye.isDigit(Ne)){Be+=_e(),Le="decimalFraction";return}return We("numeric",er*Number(Be))},decimalFraction(){switch(Ne){case"e":case"E":Be+=_e(),Le="decimalExponent";return}if(Ye.isDigit(Ne)){Be+=_e();return}return We("numeric",er*Number(Be))},decimalExponent(){switch(Ne){case"+":case"-":Be+=_e(),Le="decimalExponentSign";return}if(Ye.isDigit(Ne)){Be+=_e(),Le="decimalExponentInteger";return}throw ze(_e())},decimalExponentSign(){if(Ye.isDigit(Ne)){Be+=_e(),Le="decimalExponentInteger";return}throw ze(_e())},decimalExponentInteger(){if(Ye.isDigit(Ne)){Be+=_e();return}return We("numeric",er*Number(Be))},hexadecimal(){if(Ye.isHexDigit(Ne)){Be+=_e(),Le="hexadecimalInteger";return}throw ze(_e())},hexadecimalInteger(){if(Ye.isHexDigit(Ne)){Be+=_e();return}return We("numeric",er*Number(Be))},string(){switch(Ne){case"\\":_e(),Be+=oE();return;case'"':if(oi)return _e(),We("string",Be);Be+=_e();return;case"'":if(!oi)return _e(),We("string",Be);Be+=_e();return;case`
|
|
163
|
+
`:case"\r":throw ze(_e());case"\u2028":case"\u2029":lE(Ne);break;case void 0:throw ze(_e())}Be+=_e()},start(){switch(Ne){case"{":case"[":return We("punctuator",_e())}Le="value"},beforePropertyName(){switch(Ne){case"$":case"_":Be=_e(),Le="identifierName";return;case"\\":_e(),Le="identifierNameStartEscape";return;case"}":return We("punctuator",_e());case'"':case"'":oi=_e()==='"',Le="string";return}if(Ye.isIdStartChar(Ne)){Be+=_e(),Le="identifierName";return}throw ze(_e())},afterPropertyName(){if(Ne===":")return We("punctuator",_e());throw ze(_e())},beforePropertyValue(){Le="value"},afterPropertyValue(){switch(Ne){case",":case"}":return We("punctuator",_e())}throw ze(_e())},beforeArrayValue(){if(Ne==="]")return We("punctuator",_e());Le="value"},afterArrayValue(){switch(Ne){case",":case"]":return We("punctuator",_e())}throw ze(_e())},end(){throw ze(_e())}};function We(e,r){return{type:e,value:r,line:dr,column:Mt}}function Br(e){for(let r of e){if(rr()!==r)throw ze(_e());_e()}}function oE(){switch(rr()){case"b":return _e(),"\b";case"f":return _e(),"\f";case"n":return _e(),`
|
|
164
|
+
`;case"r":return _e(),"\r";case"t":return _e()," ";case"v":return _e(),"\v";case"0":if(_e(),Ye.isDigit(rr()))throw ze(_e());return"\0";case"x":return _e(),aE();case"u":return _e(),Ia();case`
|
|
165
|
+
`:case"\u2028":case"\u2029":return _e(),"";case"\r":return _e(),rr()===`
|
|
166
|
+
`&&_e(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw ze(_e());case void 0:throw ze(_e())}return _e()}function aE(){let e="",r=rr();if(!Ye.isHexDigit(r)||(e+=_e(),r=rr(),!Ye.isHexDigit(r)))throw ze(_e());return e+=_e(),String.fromCodePoint(parseInt(e,16))}function Ia(){let e="",r=4;for(;r-- >0;){let t=rr();if(!Ye.isHexDigit(t))throw ze(_e());e+=_e()}return String.fromCodePoint(parseInt(e,16))}var uE={start(){if(nt.type==="eof")throw Ir();Ra()},beforePropertyName(){switch(nt.type){case"identifier":case"string":Na=nt.value,yt="afterPropertyName";return;case"punctuator":ss();return;case"eof":throw Ir()}},afterPropertyName(){if(nt.type==="eof")throw Ir();yt="beforePropertyValue"},beforePropertyValue(){if(nt.type==="eof")throw Ir();Ra()},beforeArrayValue(){if(nt.type==="eof")throw Ir();if(nt.type==="punctuator"&&nt.value==="]"){ss();return}Ra()},afterPropertyValue(){if(nt.type==="eof")throw Ir();switch(nt.value){case",":yt="beforePropertyName";return;case"}":ss()}},afterArrayValue(){if(nt.type==="eof")throw Ir();switch(nt.value){case",":yt="beforeArrayValue";return;case"]":ss()}},end(){}};function Ra(){let e;switch(nt.type){case"punctuator":switch(nt.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=nt.value;break}if(ai===void 0)ai=e;else{let r=tr[tr.length-1];Array.isArray(r)?r.push(e):Object.defineProperty(r,Na,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")tr.push(e),Array.isArray(e)?yt="beforeArrayValue":yt="beforePropertyName";else{let r=tr[tr.length-1];r==null?yt="end":Array.isArray(r)?yt="afterArrayValue":yt="afterPropertyValue"}}function ss(){tr.pop();let e=tr[tr.length-1];e==null?yt="end":Array.isArray(e)?yt="afterArrayValue":yt="afterPropertyValue"}function ze(e){return ja(e===void 0?`JSON5: invalid end of input at ${dr}:${Mt}`:`JSON5: invalid character '${rp(e)}' at ${dr}:${Mt}`)}function Ir(){return ja(`JSON5: invalid end of input at ${dr}:${Mt}`)}function Yf(){return Mt-=5,ja(`JSON5: invalid identifier character at ${dr}:${Mt}`)}function lE(e){console.warn(`JSON5: '${rp(e)}' in strings is not valid ECMAScript; consider escaping`)}function rp(e){let r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(r[e])return r[e];if(e<" "){let t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function ja(e){let r=new SyntaxError(e);return r.lineNumber=dr,r.columnNumber=Mt,r}var cE=function(e,r,t){let n=[],i="",l,a,o="",s;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(t=r.space,s=r.quote,r=r.replacer),typeof r=="function")a=r;else if(Array.isArray(r)){l=[];for(let p of r){let y;typeof p=="string"?y=p:(typeof p=="number"||p instanceof String||p instanceof Number)&&(y=String(p)),y!==void 0&&l.indexOf(y)<0&&l.push(y)}}return t instanceof Number?t=Number(t):t instanceof String&&(t=String(t)),typeof t=="number"?t>0&&(t=Math.min(10,Math.floor(t)),o=" ".substr(0,t)):typeof t=="string"&&(o=t.substr(0,10)),f("",{"":e});function f(p,y){let b=y[p];switch(b!=null&&(typeof b.toJSON5=="function"?b=b.toJSON5(p):typeof b.toJSON=="function"&&(b=b.toJSON(p))),a&&(b=a.call(y,p,b)),b instanceof Number?b=Number(b):b instanceof String?b=String(b):b instanceof Boolean&&(b=b.valueOf()),b){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof b=="string")return c(b,!1);if(typeof b=="number")return String(b);if(typeof b=="object")return Array.isArray(b)?d(b):h(b)}function c(p){let y={"'":.1,'"':.2},b={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},_="";for(let S=0;S<p.length;S++){let E=p[S];switch(E){case"'":case'"':y[E]++,_+=E;continue;case"\0":if(Ye.isDigit(p[S+1])){_+="\\x00";continue}}if(b[E]){_+=b[E];continue}if(E<" "){let v=E.charCodeAt(0).toString(16);_+="\\x"+("00"+v).substring(v.length);continue}_+=E}let g=s||Object.keys(y).reduce((S,E)=>y[S]<y[E]?S:E);return _=_.replace(new RegExp(g,"g"),b[g]),g+_+g}function h(p){if(n.indexOf(p)>=0)throw TypeError("Converting circular structure to JSON5");n.push(p);let y=i;i=i+o;let b=l||Object.keys(p),_=[];for(let S of b){let E=f(S,p);if(E!==void 0){let v=u(S)+":";o!==""&&(v+=" "),v+=E,_.push(v)}}let g;if(_.length===0)g="{}";else{let S;if(o==="")S=_.join(","),g="{"+S+"}";else{let E=`,
|
|
167
|
+
`+i;S=_.join(E),g=`{
|
|
168
|
+
`+i+S+`,
|
|
169
|
+
`+y+"}"}}return n.pop(),i=y,g}function u(p){if(p.length===0)return c(p,!0);let y=String.fromCodePoint(p.codePointAt(0));if(!Ye.isIdStartChar(y))return c(p,!0);for(let b=y.length;b<p.length;b++)if(!Ye.isIdContinueChar(String.fromCodePoint(p.codePointAt(b))))return c(p,!0);return p}function d(p){if(n.indexOf(p)>=0)throw TypeError("Converting circular structure to JSON5");n.push(p);let y=i;i=i+o;let b=[];for(let g=0;g<p.length;g++){let S=f(String(g),p);b.push(S!==void 0?S:"null")}let _;if(b.length===0)_="[]";else if(o==="")_="["+b.join(",")+"]";else{let g=`,
|
|
170
|
+
`+i,S=b.join(g);_=`[
|
|
171
|
+
`+i+S+`,
|
|
172
|
+
`+y+"]"}return n.pop(),i=y,_}},hE={parse:iE,stringify:cE},fE=hE,$a=fE;function pE(e){return!$a.parse(e).extends}var Oa={};function li(e,r){var t;let n=(t=r==null?void 0:r.cache)!=null?t:!0,i=e||process.cwd();if(n&&Oa[i])return Oa[i];let l=si({target:"turbo.json",cwd:i,contentCheck:pE});if(!l)try{if(l=eE(i),!l)return null}catch{return null}return n&&(Oa[i]=l),l}var hi=Ue(require("fs"),1),Mr=Ue(require("path"),1),dE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function r(n){return n.reduce((i,l)=>[].concat(i,l),[])}e.flatten=r;function t(n,i){let l=[[]],a=0;for(let o of n)i(o)?(a++,l[a]=[]):l[a].push(o);return l}e.splitWhen=t}),mE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function r(t){return t.code==="ENOENT"}e.isEnoentCodeError=r}),yE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),gE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var r=he("path"),t=2,n=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(s){return s.replace(/\\/g,"/")}e.unixify=i;function l(s,f){return r.resolve(s,f)}e.makeAbsolute=l;function a(s){return s.replace(n,"\\$2")}e.escape=a;function o(s){if(s.charAt(0)==="."){let f=s.charAt(1);if(f==="/"||f==="\\")return s.slice(t)}return s}e.removeLeadingDotSegment=o}),bE=te((e,r)=>{Z(),r.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(n[2])return!0;t=t.slice(n.index+n[0].length)}return!1}}),vE=te((e,r)=>{Z();var t=bE(),n={"{":"}","(":")","[":"]"},i=function(a){if(a[0]==="!")return!0;for(var o=0,s=-2,f=-2,c=-2,h=-2,u=-2;o<a.length;){if(a[o]==="*"||a[o+1]==="?"&&/[\].+)]/.test(a[o])||f!==-1&&a[o]==="["&&a[o+1]!=="]"&&(f<o&&(f=a.indexOf("]",o)),f>o&&(u===-1||u>f||(u=a.indexOf("\\",o),u===-1||u>f)))||c!==-1&&a[o]==="{"&&a[o+1]!=="}"&&(c=a.indexOf("}",o),c>o&&(u=a.indexOf("\\",o),u===-1||u>c))||h!==-1&&a[o]==="("&&a[o+1]==="?"&&/[:!=]/.test(a[o+2])&&a[o+3]!==")"&&(h=a.indexOf(")",o),h>o&&(u=a.indexOf("\\",o),u===-1||u>h))||s!==-1&&a[o]==="("&&a[o+1]!=="|"&&(s<o&&(s=a.indexOf("|",o)),s!==-1&&a[s+1]!==")"&&(h=a.indexOf(")",s),h>s&&(u=a.indexOf("\\",s),u===-1||u>h))))return!0;if(a[o]==="\\"){var d=a[o+1];o+=2;var p=n[d];if(p){var y=a.indexOf(p,o);y!==-1&&(o=y+1)}if(a[o]==="!")return!0}else o++}return!1},l=function(a){if(a[0]==="!")return!0;for(var o=0;o<a.length;){if(/[*?{}()[\]]/.test(a[o]))return!0;if(a[o]==="\\"){var s=a[o+1];o+=2;var f=n[s];if(f){var c=a.indexOf(f,o);c!==-1&&(o=c+1)}if(a[o]==="!")return!0}else o++}return!1};r.exports=function(a,o){if(typeof a!="string"||a==="")return!1;if(t(a))return!0;var s=i;return o&&o.strict===!1&&(s=l),s(a)}}),_E=te((e,r)=>{"use strict";Z();var t=vE(),n=he("path").posix.dirname,i=he("os").platform()==="win32",l="/",a=/\\/g,o=/[\{\[].*[\}\]]$/,s=/(^|[^\\])([\{\[]|\([^\)]+$)/,f=/\\([\!\*\?\|\[\]\(\)\{\}])/g;r.exports=function(c,h){var u=Object.assign({flipBackslashes:!0},h);u.flipBackslashes&&i&&c.indexOf(l)<0&&(c=c.replace(a,l)),o.test(c)&&(c+=l),c+="a";do c=n(c);while(t(c)||s.test(c));return c.replace(f,"$1")}}),Xa=te(e=>{"use strict";Z(),e.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1,e.find=(r,t)=>r.nodes.find(n=>n.type===t),e.exceedsLimit=(r,t,n=1,i)=>i===!1||!e.isInteger(r)||!e.isInteger(t)?!1:(Number(t)-Number(r))/Number(n)>=i,e.escapeNode=(r,t=0,n)=>{let i=r.nodes[t];!i||(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=r=>r.type!=="brace"||r.commas>>0+r.ranges>>0?!1:(r.invalid=!0,!0),e.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:!(r.commas>>0+r.ranges>>0)||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1,e.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0,e.reduce=r=>r.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]),e.flatten=(...r)=>{let t=[],n=i=>{for(let l=0;l<i.length;l++){let a=i[l];Array.isArray(a)?n(a,t):a!==void 0&&t.push(a)}return t};return n(r),t}}),Za=te((e,r)=>{"use strict";Z();var t=Xa();r.exports=(n,i={})=>{let l=(a,o={})=>{let s=i.escapeInvalid&&t.isInvalidBrace(o),f=a.invalid===!0&&i.escapeInvalid===!0,c="";if(a.value)return(s||f)&&t.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(let h of a.nodes)c+=l(h);return c};return l(n)}}),wE=te((e,r)=>{"use strict";Z(),r.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}}),EE=te((e,r)=>{"use strict";Z();var t=wE(),n=(g,S,E)=>{if(t(g)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(S===void 0||g===S)return String(g);if(t(S)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...E};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),w=String(v.shorthand),x=String(v.capture),A=String(v.wrap),R=g+":"+S+"="+m+w+x+A;if(n.cache.hasOwnProperty(R))return n.cache[R].result;let B=Math.min(g,S),P=Math.max(g,S);if(Math.abs(B-P)===1){let L=g+"|"+S;return v.capture?`(${L})`:v.wrap===!1?L:`(?:${L})`}let O=b(g)||b(S),D={min:g,max:S,a:B,b:P},k=[],M=[];if(O&&(D.isPadded=O,D.maxLen=String(D.max).length),B<0){let L=P<0?Math.abs(P):1;M=o(L,Math.abs(B),D,v),B=D.a=0}return P>=0&&(k=o(B,P,D,v)),D.negatives=M,D.positives=k,D.result=i(M,k,v),v.capture===!0?D.result=`(${D.result})`:v.wrap!==!1&&k.length+M.length>1&&(D.result=`(?:${D.result})`),n.cache[R]=D,D.result};function i(g,S,E){let v=s(g,S,"-",!1,E)||[],m=s(S,g,"",!1,E)||[],w=s(g,S,"-?",!0,E)||[];return v.concat(w).concat(m).join("|")}function l(g,S){let E=1,v=1,m=u(g,E),w=new Set([S]);for(;g<=m&&m<=S;)w.add(m),E+=1,m=u(g,E);for(m=d(S+1,v)-1;g<m&&m<=S;)w.add(m),v+=1,m=d(S+1,v)-1;return w=[...w],w.sort(c),w}function a(g,S,E){if(g===S)return{pattern:g,count:[],digits:0};let v=f(g,S),m=v.length,w="",x=0;for(let A=0;A<m;A++){let[R,B]=v[A];R===B?w+=R:R!=="0"||B!=="9"?w+=y(R,B,E):x++}return x&&(w+=E.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[x],digits:m}}function o(g,S,E,v){let m=l(g,S),w=[],x=g,A;for(let R=0;R<m.length;R++){let B=m[R],P=a(String(x),String(B),v),O="";if(!E.isPadded&&A&&A.pattern===P.pattern){A.count.length>1&&A.count.pop(),A.count.push(P.count[0]),A.string=A.pattern+p(A.count),x=B+1;continue}E.isPadded&&(O=_(B,E,v)),P.string=O+P.pattern+p(P.count),w.push(P),x=B+1,A=P}return w}function s(g,S,E,v,m){let w=[];for(let x of g){let{string:A}=x;!v&&!h(S,"string",A)&&w.push(E+A),v&&h(S,"string",A)&&w.push(E+A)}return w}function f(g,S){let E=[];for(let v=0;v<g.length;v++)E.push([g[v],S[v]]);return E}function c(g,S){return g>S?1:S>g?-1:0}function h(g,S,E){return g.some(v=>v[S]===E)}function u(g,S){return Number(String(g).slice(0,-S)+"9".repeat(S))}function d(g,S){return g-g%Math.pow(10,S)}function p(g){let[S=0,E=""]=g;return E||S>1?`{${S+(E?","+E:"")}}`:""}function y(g,S,E){return`[${g}${S-g===1?"":"-"}${S}]`}function b(g){return/^-?(0+)\d/.test(g)}function _(g,S,E){if(!S.isPadded)return g;let v=Math.abs(S.maxLen-String(g).length),m=E.relaxZeros!==!1;switch(v){case 0:return"";case 1:return m?"0?":"0";case 2:return m?"0{0,2}":"00";default:return m?`0{0,${v}}`:`0{${v}}`}}n.cache={},n.clearCache=()=>n.cache={},r.exports=n}),bp=te((e,r)=>{"use strict";Z();var t=he("util"),n=EE(),i=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),l=v=>m=>v===!0?Number(m):String(m),a=v=>typeof v=="number"||typeof v=="string"&&v!=="",o=v=>Number.isInteger(+v),s=v=>{let m=`${v}`,w=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++w]==="0";);return w>0},f=(v,m,w)=>typeof v=="string"||typeof m=="string"?!0:w.stringify===!0,c=(v,m,w)=>{if(m>0){let x=v[0]==="-"?"-":"";x&&(v=v.slice(1)),v=x+v.padStart(x?m-1:m,"0")}return w===!1?String(v):v},h=(v,m)=>{let w=v[0]==="-"?"-":"";for(w&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return w?"-"+v:v},u=(v,m)=>{v.negatives.sort((B,P)=>B<P?-1:B>P?1:0),v.positives.sort((B,P)=>B<P?-1:B>P?1:0);let w=m.capture?"":"?:",x="",A="",R;return v.positives.length&&(x=v.positives.join("|")),v.negatives.length&&(A=`-(${w}${v.negatives.join("|")})`),x&&A?R=`${x}|${A}`:R=x||A,m.wrap?`(${w}${R})`:R},d=(v,m,w,x)=>{if(w)return n(v,m,{wrap:!1,...x});let A=String.fromCharCode(v);if(v===m)return A;let R=String.fromCharCode(m);return`[${A}-${R}]`},p=(v,m,w)=>{if(Array.isArray(v)){let x=w.wrap===!0,A=w.capture?"":"?:";return x?`(${A}${v.join("|")})`:v.join("|")}return n(v,m,w)},y=(...v)=>new RangeError("Invalid range arguments: "+t.inspect(...v)),b=(v,m,w)=>{if(w.strictRanges===!0)throw y([v,m]);return[]},_=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},g=(v,m,w=1,x={})=>{let A=Number(v),R=Number(m);if(!Number.isInteger(A)||!Number.isInteger(R)){if(x.strictRanges===!0)throw y([v,m]);return[]}A===0&&(A=0),R===0&&(R=0);let B=A>R,P=String(v),O=String(m),D=String(w);w=Math.max(Math.abs(w),1);let k=s(P)||s(O)||s(D),M=k?Math.max(P.length,O.length,D.length):0,L=k===!1&&f(v,m,x)===!1,U=x.transform||l(L);if(x.toRegex&&w===1)return d(h(v,M),h(m,M),!0,x);let W={negatives:[],positives:[]},se=F=>W[F<0?"negatives":"positives"].push(Math.abs(F)),I=[],N=0;for(;B?A>=R:A<=R;)x.toRegex===!0&&w>1?se(A):I.push(c(U(A,N),M,L)),A=B?A-w:A+w,N++;return x.toRegex===!0?w>1?u(W,x):p(I,null,{wrap:!1,...x}):I},S=(v,m,w=1,x={})=>{if(!o(v)&&v.length>1||!o(m)&&m.length>1)return b(v,m,x);let A=x.transform||(L=>String.fromCharCode(L)),R=`${v}`.charCodeAt(0),B=`${m}`.charCodeAt(0),P=R>B,O=Math.min(R,B),D=Math.max(R,B);if(x.toRegex&&w===1)return d(O,D,!1,x);let k=[],M=0;for(;P?R>=B:R<=B;)k.push(A(R,M)),R=P?R-w:R+w,M++;return x.toRegex===!0?p(k,null,{wrap:!1,options:x}):k},E=(v,m,w,x={})=>{if(m==null&&a(v))return[v];if(!a(v)||!a(m))return b(v,m,x);if(typeof w=="function")return E(v,m,1,{transform:w});if(i(w))return E(v,m,0,w);let A={...x};return A.capture===!0&&(A.wrap=!0),w=w||A.step||1,o(w)?o(v)&&o(m)?g(v,m,w,A):S(v,m,Math.max(Math.abs(w),1),A):w!=null&&!i(w)?_(w,A):E(v,m,1,w)};r.exports=E}),SE=te((e,r)=>{"use strict";Z();var t=bp(),n=Xa(),i=(l,a={})=>{let o=(s,f={})=>{let c=n.isInvalidBrace(f),h=s.invalid===!0&&a.escapeInvalid===!0,u=c===!0||h===!0,d=a.escapeInvalid===!0?"\\":"",p="";if(s.isOpen===!0||s.isClose===!0)return d+s.value;if(s.type==="open")return u?d+s.value:"(";if(s.type==="close")return u?d+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":u?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let y=n.reduce(s.nodes),b=t(...y,{...a,wrap:!1,toRegex:!0});if(b.length!==0)return y.length>1&&b.length>1?`(${b})`:b}if(s.nodes)for(let y of s.nodes)p+=o(y,s);return p};return o(l)};r.exports=i}),xE=te((e,r)=>{"use strict";Z();var t=bp(),n=Za(),i=Xa(),l=(o="",s="",f=!1)=>{let c=[];if(o=[].concat(o),s=[].concat(s),!s.length)return o;if(!o.length)return f?i.flatten(s).map(h=>`{${h}}`):s;for(let h of o)if(Array.isArray(h))for(let u of h)c.push(l(u,s,f));else for(let u of s)f===!0&&typeof u=="string"&&(u=`{${u}}`),c.push(Array.isArray(u)?l(h,u,f):h+u);return i.flatten(c)},a=(o,s={})=>{let f=s.rangeLimit===void 0?1e3:s.rangeLimit,c=(h,u={})=>{h.queue=[];let d=u,p=u.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(h.invalid||h.dollar){p.push(l(p.pop(),n(h,s)));return}if(h.type==="brace"&&h.invalid!==!0&&h.nodes.length===2){p.push(l(p.pop(),["{}"]));return}if(h.nodes&&h.ranges>0){let g=i.reduce(h.nodes);if(i.exceedsLimit(...g,s.step,f))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=t(...g,s);S.length===0&&(S=n(h,s)),p.push(l(p.pop(),S)),h.nodes=[];return}let y=i.encloseBrace(h),b=h.queue,_=h;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,b=_.queue;for(let g=0;g<h.nodes.length;g++){let S=h.nodes[g];if(S.type==="comma"&&h.type==="brace"){g===1&&b.push(""),b.push("");continue}if(S.type==="close"){p.push(l(p.pop(),b,y));continue}if(S.value&&S.type!=="open"){b.push(l(b.pop(),S.value));continue}S.nodes&&c(S,h)}return b};return i.flatten(c(o))};r.exports=a}),AE=te((e,r)=>{"use strict";Z(),r.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
173
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),CE=te((e,r)=>{"use strict";Z();var t=Za(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:l,CHAR_COMMA:a,CHAR_DOT:o,CHAR_LEFT_PARENTHESES:s,CHAR_RIGHT_PARENTHESES:f,CHAR_LEFT_CURLY_BRACE:c,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=AE(),g=(S,E={})=>{if(typeof S!="string")throw new TypeError("Expected a string");let v=E||{},m=typeof v.maxLength=="number"?Math.min(n,v.maxLength):n;if(S.length>m)throw new SyntaxError(`Input length (${S.length}), exceeds max characters (${m})`);let w={type:"root",input:S,nodes:[]},x=[w],A=w,R=w,B=0,P=S.length,O=0,D=0,k,M={},L=()=>S[O++],U=W=>{if(W.type==="text"&&R.type==="dot"&&(R.type="text"),R&&R.type==="text"&&W.type==="text"){R.value+=W.value;return}return A.nodes.push(W),W.parent=A,W.prev=R,R=W,W};for(U({type:"bos"});O<P;)if(A=x[x.length-1],k=L(),!(k===_||k===b)){if(k===i){U({type:"text",value:(E.keepEscaping?k:"")+L()});continue}if(k===d){U({type:"text",value:"\\"+k});continue}if(k===u){B++;let W=!0,se;for(;O<P&&(se=L());){if(k+=se,se===u){B++;continue}if(se===i){k+=L();continue}if(se===d&&(B--,B===0))break}U({type:"text",value:k});continue}if(k===s){A=U({type:"paren",nodes:[]}),x.push(A),U({type:"text",value:k});continue}if(k===f){if(A.type!=="paren"){U({type:"text",value:k});continue}A=x.pop(),U({type:"text",value:k}),A=x[x.length-1];continue}if(k===p||k===y||k===l){let W=k,se;for(E.keepQuotes!==!0&&(k="");O<P&&(se=L());){if(se===i){k+=se+L();continue}if(se===W){E.keepQuotes===!0&&(k+=se);break}k+=se}U({type:"text",value:k});continue}if(k===c){D++;let W=R.value&&R.value.slice(-1)==="$"||A.dollar===!0;A=U({type:"brace",open:!0,close:!1,dollar:W,depth:D,commas:0,ranges:0,nodes:[]}),x.push(A),U({type:"open",value:k});continue}if(k===h){if(A.type!=="brace"){U({type:"text",value:k});continue}let W="close";A=x.pop(),A.close=!0,U({type:W,value:k}),D--,A=x[x.length-1];continue}if(k===a&&D>0){if(A.ranges>0){A.ranges=0;let W=A.nodes.shift();A.nodes=[W,{type:"text",value:t(A)}]}U({type:"comma",value:k}),A.commas++;continue}if(k===o&&D>0&&A.commas===0){let W=A.nodes;if(D===0||W.length===0){U({type:"text",value:k});continue}if(R.type==="dot"){if(A.range=[],R.value+=k,R.type="range",A.nodes.length!==3&&A.nodes.length!==5){A.invalid=!0,A.ranges=0,R.type="text";continue}A.ranges++,A.args=[];continue}if(R.type==="range"){W.pop();let se=W[W.length-1];se.value+=R.value+k,R=se,A.ranges--;continue}U({type:"dot",value:k});continue}U({type:"text",value:k})}do if(A=x.pop(),A.type!=="root"){A.nodes.forEach(I=>{I.nodes||(I.type==="open"&&(I.isOpen=!0),I.type==="close"&&(I.isClose=!0),I.nodes||(I.type="text"),I.invalid=!0)});let W=x[x.length-1],se=W.nodes.indexOf(A);W.nodes.splice(se,1,...A.nodes)}while(x.length>0);return U({type:"eos"}),w};r.exports=g}),kE=te((e,r)=>{"use strict";Z();var t=Za(),n=SE(),i=xE(),l=CE(),a=(o,s={})=>{let f=[];if(Array.isArray(o))for(let c of o){let h=a.create(c,s);Array.isArray(h)?f.push(...h):f.push(h)}else f=[].concat(a.create(o,s));return s&&s.expand===!0&&s.nodupes===!0&&(f=[...new Set(f)]),f};a.parse=(o,s={})=>l(o,s),a.stringify=(o,s={})=>t(typeof o=="string"?a.parse(o,s):o,s),a.compile=(o,s={})=>(typeof o=="string"&&(o=a.parse(o,s)),n(o,s)),a.expand=(o,s={})=>{typeof o=="string"&&(o=a.parse(o,s));let f=i(o,s);return s.noempty===!0&&(f=f.filter(Boolean)),s.nodupes===!0&&(f=[...new Set(f)]),f},a.create=(o,s={})=>o===""||o.length<3?[o]:s.expand!==!0?a.compile(o,s):a.expand(o,s),r.exports=a}),gs=te((e,r)=>{"use strict";Z();var t=he("path"),n="\\\\/",i=`[^${n}]`,l="\\.",a="\\+",o="\\?",s="\\/",f="(?=.)",c="[^/]",h=`(?:${s}|$)`,u=`(?:^|${s})`,d=`${l}{1,2}${h}`,p=`(?!${l})`,y=`(?!${u}${d})`,b=`(?!${l}{0,1}${h})`,_=`(?!${d})`,g=`[^.${s}]`,S=`${c}*?`,E={DOT_LITERAL:l,PLUS_LITERAL:a,QMARK_LITERAL:o,SLASH_LITERAL:s,ONE_CHAR:f,QMARK:c,END_ANCHOR:h,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:_,QMARK_NO_DOT:g,STAR:S,START_ANCHOR:u},v={...E,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${l}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${l})`,NO_DOTS:`(?!(?:^|[${n}])${l}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${l}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${l}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},m={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:m,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:t.sep,extglobChars(w){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${w.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(w){return w===!0?v:E}}}),bs=te(e=>{"use strict";Z();var r=he("path"),t=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:l,REGEX_SPECIAL_CHARS_GLOBAL:a}=gs();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>l.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(a,"\\$1"),e.toPosixSlashes=o=>o.replace(n,"/"),e.removeBackslashes=o=>o.replace(i,s=>s==="\\"?"":s),e.supportsLookbehinds=()=>{let o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},e.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:t===!0||r.sep==="\\",e.escapeLast=(o,s,f)=>{let c=o.lastIndexOf(s,f);return c===-1?o:o[c-1]==="\\"?e.escapeLast(o,s,c-1):`${o.slice(0,c)}\\${o.slice(c)}`},e.removePrefix=(o,s={})=>{let f=o;return f.startsWith("./")&&(f=f.slice(2),s.prefix="./"),f},e.wrapOutput=(o,s={},f={})=>{let c=f.contains?"":"^",h=f.contains?"":"$",u=`${c}(?:${o})${h}`;return s.negated===!0&&(u=`(?:^(?!${u}).*$)`),u}}),DE=te((e,r)=>{"use strict";Z();var t=bs(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:l,CHAR_COMMA:a,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:s,CHAR_FORWARD_SLASH:f,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:_}=gs(),g=v=>v===f||v===l,S=v=>{v.isPrefix!==!0&&(v.depth=v.isGlobstar?1/0:1)},E=(v,m)=>{let w=m||{},x=v.length-1,A=w.parts===!0||w.scanToEnd===!0,R=[],B=[],P=[],O=v,D=-1,k=0,M=0,L=!1,U=!1,W=!1,se=!1,I=!1,N=!1,F=!1,V=!1,G=!1,J=!1,j=0,z,Q,le={value:"",depth:0,isGlob:!1},ue=()=>D>=x,Y=()=>O.charCodeAt(D+1),ne=()=>(z=Q,O.charCodeAt(++D));for(;D<x;){Q=ne();let X;if(Q===l){F=le.backslashes=!0,Q=ne(),Q===c&&(N=!0);continue}if(N===!0||Q===c){for(j++;ue()!==!0&&(Q=ne());){if(Q===l){F=le.backslashes=!0,ne();continue}if(Q===c){j++;continue}if(N!==!0&&Q===o&&(Q=ne())===o){if(L=le.isBrace=!0,W=le.isGlob=!0,J=!0,A===!0)continue;break}if(N!==!0&&Q===a){if(L=le.isBrace=!0,W=le.isGlob=!0,J=!0,A===!0)continue;break}if(Q===y&&(j--,j===0)){N=!1,L=le.isBrace=!0,J=!0;break}}if(A===!0)continue;break}if(Q===f){if(R.push(D),B.push(le),le={value:"",depth:0,isGlob:!1},J===!0)continue;if(z===o&&D===k+1){k+=2;continue}M=D+1;continue}if(w.noext!==!0&&(Q===d||Q===i||Q===n||Q===p||Q===s)&&Y()===h){if(W=le.isGlob=!0,se=le.isExtglob=!0,J=!0,Q===s&&D===k&&(G=!0),A===!0){for(;ue()!==!0&&(Q=ne());){if(Q===l){F=le.backslashes=!0,Q=ne();continue}if(Q===b){W=le.isGlob=!0,J=!0;break}}continue}break}if(Q===n){if(z===n&&(I=le.isGlobstar=!0),W=le.isGlob=!0,J=!0,A===!0)continue;break}if(Q===p){if(W=le.isGlob=!0,J=!0,A===!0)continue;break}if(Q===u){for(;ue()!==!0&&(X=ne());){if(X===l){F=le.backslashes=!0,ne();continue}if(X===_){U=le.isBracket=!0,W=le.isGlob=!0,J=!0;break}}if(A===!0)continue;break}if(w.nonegate!==!0&&Q===s&&D===k){V=le.negated=!0,k++;continue}if(w.noparen!==!0&&Q===h){if(W=le.isGlob=!0,A===!0){for(;ue()!==!0&&(Q=ne());){if(Q===h){F=le.backslashes=!0,Q=ne();continue}if(Q===b){J=!0;break}}continue}break}if(W===!0){if(J=!0,A===!0)continue;break}}w.noext===!0&&(se=!1,W=!1);let T=O,q="",C="";k>0&&(q=O.slice(0,k),O=O.slice(k),M-=k),T&&W===!0&&M>0?(T=O.slice(0,M),C=O.slice(M)):W===!0?(T="",C=O):T=O,T&&T!==""&&T!=="/"&&T!==O&&g(T.charCodeAt(T.length-1))&&(T=T.slice(0,-1)),w.unescape===!0&&(C&&(C=t.removeBackslashes(C)),T&&F===!0&&(T=t.removeBackslashes(T)));let H={prefix:q,input:v,start:k,base:T,glob:C,isBrace:L,isBracket:U,isGlob:W,isExtglob:se,isGlobstar:I,negated:V,negatedExtglob:G};if(w.tokens===!0&&(H.maxDepth=0,g(Q)||B.push(le),H.tokens=B),w.parts===!0||w.tokens===!0){let X;for(let ie=0;ie<R.length;ie++){let me=X?X+1:k,ae=R[ie],pe=v.slice(me,ae);w.tokens&&(ie===0&&k!==0?(B[ie].isPrefix=!0,B[ie].value=q):B[ie].value=pe,S(B[ie]),H.maxDepth+=B[ie].depth),(ie!==0||pe!=="")&&P.push(pe),X=ae}if(X&&X+1<v.length){let ie=v.slice(X+1);P.push(ie),w.tokens&&(B[B.length-1].value=ie,S(B[B.length-1]),H.maxDepth+=B[B.length-1].depth)}H.slashes=R,H.parts=P}return H};r.exports=E}),RE=te((e,r)=>{"use strict";Z();var t=gs(),n=bs(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:l,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:s}=t,f=(u,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...u,d);u.sort();let p=`[${u.join("-")}]`;try{new RegExp(p)}catch{return u.map(y=>n.escapeRegex(y)).join("..")}return p},c=(u,d)=>`Missing ${u}: "${d}" - use "\\\\${d}" to match literal characters`,h=(u,d)=>{if(typeof u!="string")throw new TypeError("Expected a string");u=s[u]||u;let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);let _={type:"bos",value:"",output:p.prepend||""},g=[_],S=p.capture?"":"?:",E=n.isWindows(d),v=t.globChars(E),m=t.extglobChars(v),{DOT_LITERAL:w,PLUS_LITERAL:x,SLASH_LITERAL:A,ONE_CHAR:R,DOTS_SLASH:B,NO_DOT:P,NO_DOT_SLASH:O,NO_DOTS_SLASH:D,QMARK:k,QMARK_NO_DOT:M,STAR:L,START_ANCHOR:U}=v,W=ae=>`(${S}(?:(?!${U}${ae.dot?B:w}).)*?)`,se=p.dot?"":P,I=p.dot?k:M,N=p.bash===!0?W(p):L;p.capture&&(N=`(${N})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);let F={input:u,index:-1,start:0,dot:p.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};u=n.removePrefix(u,F),b=u.length;let V=[],G=[],J=[],j=_,z,Q=()=>F.index===b-1,le=F.peek=(ae=1)=>u[F.index+ae],ue=F.advance=()=>u[++F.index]||"",Y=()=>u.slice(F.index+1),ne=(ae="",pe=0)=>{F.consumed+=ae,F.index+=pe},T=ae=>{F.output+=ae.output!=null?ae.output:ae.value,ne(ae.value)},q=()=>{let ae=1;for(;le()==="!"&&(le(2)!=="("||le(3)==="?");)ue(),F.start++,ae++;return ae%2===0?!1:(F.negated=!0,F.start++,!0)},C=ae=>{F[ae]++,J.push(ae)},H=ae=>{F[ae]--,J.pop()},X=ae=>{if(j.type==="globstar"){let pe=F.braces>0&&(ae.type==="comma"||ae.type==="brace"),oe=ae.extglob===!0||V.length&&(ae.type==="pipe"||ae.type==="paren");ae.type!=="slash"&&ae.type!=="paren"&&!pe&&!oe&&(F.output=F.output.slice(0,-j.output.length),j.type="star",j.value="*",j.output=N,F.output+=j.output)}if(V.length&&ae.type!=="paren"&&(V[V.length-1].inner+=ae.value),(ae.value||ae.output)&&T(ae),j&&j.type==="text"&&ae.type==="text"){j.value+=ae.value,j.output=(j.output||"")+ae.value;return}ae.prev=j,g.push(ae),j=ae},ie=(ae,pe)=>{let oe={...m[pe],conditions:1,inner:""};oe.prev=j,oe.parens=F.parens,oe.output=F.output;let ge=(p.capture?"(":"")+oe.open;C("parens"),X({type:ae,value:pe,output:F.output?"":R}),X({type:"paren",extglob:!0,value:ue(),output:ge}),V.push(oe)},me=ae=>{let pe=ae.close+(p.capture?")":""),oe;if(ae.type==="negate"){let ge=N;if(ae.inner&&ae.inner.length>1&&ae.inner.includes("/")&&(ge=W(p)),(ge!==N||Q()||/^\)+$/.test(Y()))&&(pe=ae.close=`)$))${ge}`),ae.inner.includes("*")&&(oe=Y())&&/^\.[^\\/.]+$/.test(oe)){let Ee=h(oe,{...d,fastpaths:!1}).output;pe=ae.close=`)${Ee})${ge})`}ae.prev.type==="bos"&&(F.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:z,output:pe}),H("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(u)){let ae=!1,pe=u.replace(o,(oe,ge,Ee,Ce,K,$)=>Ce==="\\"?(ae=!0,oe):Ce==="?"?ge?ge+Ce+(K?k.repeat(K.length):""):$===0?I+(K?k.repeat(K.length):""):k.repeat(Ee.length):Ce==="."?w.repeat(Ee.length):Ce==="*"?ge?ge+Ce+(K?N:""):N:ge?oe:`\\${oe}`);return ae===!0&&(p.unescape===!0?pe=pe.replace(/\\/g,""):pe=pe.replace(/\\+/g,oe=>oe.length%2===0?"\\\\":oe?"\\":"")),pe===u&&p.contains===!0?(F.output=u,F):(F.output=n.wrapOutput(pe,F,d),F)}for(;!Q();){if(z=ue(),z==="\0")continue;if(z==="\\"){let oe=le();if(oe==="/"&&p.bash!==!0||oe==="."||oe===";")continue;if(!oe){z+="\\",X({type:"text",value:z});continue}let ge=/^\\+/.exec(Y()),Ee=0;if(ge&&ge[0].length>2&&(Ee=ge[0].length,F.index+=Ee,Ee%2!==0&&(z+="\\")),p.unescape===!0?z=ue():z+=ue(),F.brackets===0){X({type:"text",value:z});continue}}if(F.brackets>0&&(z!=="]"||j.value==="["||j.value==="[^")){if(p.posix!==!1&&z===":"){let oe=j.value.slice(1);if(oe.includes("[")&&(j.posix=!0,oe.includes(":"))){let ge=j.value.lastIndexOf("["),Ee=j.value.slice(0,ge),Ce=j.value.slice(ge+2),K=l[Ce];if(K){j.value=Ee+K,F.backtrack=!0,ue(),!_.output&&g.indexOf(j)===1&&(_.output=R);continue}}}(z==="["&&le()!==":"||z==="-"&&le()==="]")&&(z=`\\${z}`),z==="]"&&(j.value==="["||j.value==="[^")&&(z=`\\${z}`),p.posix===!0&&z==="!"&&j.value==="["&&(z="^"),j.value+=z,T({value:z});continue}if(F.quotes===1&&z!=='"'){z=n.escapeRegex(z),j.value+=z,T({value:z});continue}if(z==='"'){F.quotes=F.quotes===1?0:1,p.keepQuotes===!0&&X({type:"text",value:z});continue}if(z==="("){C("parens"),X({type:"paren",value:z});continue}if(z===")"){if(F.parens===0&&p.strictBrackets===!0)throw new SyntaxError(c("opening","("));let oe=V[V.length-1];if(oe&&F.parens===oe.parens+1){me(V.pop());continue}X({type:"paren",value:z,output:F.parens?")":"\\)"}),H("parens");continue}if(z==="["){if(p.nobracket===!0||!Y().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(c("closing","]"));z=`\\${z}`}else C("brackets");X({type:"bracket",value:z});continue}if(z==="]"){if(p.nobracket===!0||j&&j.type==="bracket"&&j.value.length===1){X({type:"text",value:z,output:`\\${z}`});continue}if(F.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(c("opening","["));X({type:"text",value:z,output:`\\${z}`});continue}H("brackets");let oe=j.value.slice(1);if(j.posix!==!0&&oe[0]==="^"&&!oe.includes("/")&&(z=`/${z}`),j.value+=z,T({value:z}),p.literalBrackets===!1||n.hasRegexChars(oe))continue;let ge=n.escapeRegex(j.value);if(F.output=F.output.slice(0,-j.value.length),p.literalBrackets===!0){F.output+=ge,j.value=ge;continue}j.value=`(${S}${ge}|${j.value})`,F.output+=j.value;continue}if(z==="{"&&p.nobrace!==!0){C("braces");let oe={type:"brace",value:z,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};G.push(oe),X(oe);continue}if(z==="}"){let oe=G[G.length-1];if(p.nobrace===!0||!oe){X({type:"text",value:z,output:z});continue}let ge=")";if(oe.dots===!0){let Ee=g.slice(),Ce=[];for(let K=Ee.length-1;K>=0&&(g.pop(),Ee[K].type!=="brace");K--)Ee[K].type!=="dots"&&Ce.unshift(Ee[K].value);ge=f(Ce,p),F.backtrack=!0}if(oe.comma!==!0&&oe.dots!==!0){let Ee=F.output.slice(0,oe.outputIndex),Ce=F.tokens.slice(oe.tokensIndex);oe.value=oe.output="\\{",z=ge="\\}",F.output=Ee;for(let K of Ce)F.output+=K.output||K.value}X({type:"brace",value:z,output:ge}),H("braces"),G.pop();continue}if(z==="|"){V.length>0&&V[V.length-1].conditions++,X({type:"text",value:z});continue}if(z===","){let oe=z,ge=G[G.length-1];ge&&J[J.length-1]==="braces"&&(ge.comma=!0,oe="|"),X({type:"comma",value:z,output:oe});continue}if(z==="/"){if(j.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",g.pop(),j=_;continue}X({type:"slash",value:z,output:A});continue}if(z==="."){if(F.braces>0&&j.type==="dot"){j.value==="."&&(j.output=w);let oe=G[G.length-1];j.type="dots",j.output+=z,j.value+=z,oe.dots=!0;continue}if(F.braces+F.parens===0&&j.type!=="bos"&&j.type!=="slash"){X({type:"text",value:z,output:w});continue}X({type:"dot",value:z,output:w});continue}if(z==="?"){if(!(j&&j.value==="(")&&p.noextglob!==!0&&le()==="("&&le(2)!=="?"){ie("qmark",z);continue}if(j&&j.type==="paren"){let oe=le(),ge=z;if(oe==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(j.value==="("&&!/[!=<:]/.test(oe)||oe==="<"&&!/<([!=]|\w+>)/.test(Y()))&&(ge=`\\${z}`),X({type:"text",value:z,output:ge});continue}if(p.dot!==!0&&(j.type==="slash"||j.type==="bos")){X({type:"qmark",value:z,output:M});continue}X({type:"qmark",value:z,output:k});continue}if(z==="!"){if(p.noextglob!==!0&&le()==="("&&(le(2)!=="?"||!/[!=<:]/.test(le(3)))){ie("negate",z);continue}if(p.nonegate!==!0&&F.index===0){q();continue}}if(z==="+"){if(p.noextglob!==!0&&le()==="("&&le(2)!=="?"){ie("plus",z);continue}if(j&&j.value==="("||p.regex===!1){X({type:"plus",value:z,output:x});continue}if(j&&(j.type==="bracket"||j.type==="paren"||j.type==="brace")||F.parens>0){X({type:"plus",value:z});continue}X({type:"plus",value:x});continue}if(z==="@"){if(p.noextglob!==!0&&le()==="("&&le(2)!=="?"){X({type:"at",extglob:!0,value:z,output:""});continue}X({type:"text",value:z});continue}if(z!=="*"){(z==="$"||z==="^")&&(z=`\\${z}`);let oe=a.exec(Y());oe&&(z+=oe[0],F.index+=oe[0].length),X({type:"text",value:z});continue}if(j&&(j.type==="globstar"||j.star===!0)){j.type="star",j.star=!0,j.value+=z,j.output=N,F.backtrack=!0,F.globstar=!0,ne(z);continue}let ae=Y();if(p.noextglob!==!0&&/^\([^?]/.test(ae)){ie("star",z);continue}if(j.type==="star"){if(p.noglobstar===!0){ne(z);continue}let oe=j.prev,ge=oe.prev,Ee=oe.type==="slash"||oe.type==="bos",Ce=ge&&(ge.type==="star"||ge.type==="globstar");if(p.bash===!0&&(!Ee||ae[0]&&ae[0]!=="/")){X({type:"star",value:z,output:""});continue}let K=F.braces>0&&(oe.type==="comma"||oe.type==="brace"),$=V.length&&(oe.type==="pipe"||oe.type==="paren");if(!Ee&&oe.type!=="paren"&&!K&&!$){X({type:"star",value:z,output:""});continue}for(;ae.slice(0,3)==="/**";){let ce=u[F.index+4];if(ce&&ce!=="/")break;ae=ae.slice(3),ne("/**",3)}if(oe.type==="bos"&&Q()){j.type="globstar",j.value+=z,j.output=W(p),F.output=j.output,F.globstar=!0,ne(z);continue}if(oe.type==="slash"&&oe.prev.type!=="bos"&&!Ce&&Q()){F.output=F.output.slice(0,-(oe.output+j.output).length),oe.output=`(?:${oe.output}`,j.type="globstar",j.output=W(p)+(p.strictSlashes?")":"|$)"),j.value+=z,F.globstar=!0,F.output+=oe.output+j.output,ne(z);continue}if(oe.type==="slash"&&oe.prev.type!=="bos"&&ae[0]==="/"){let ce=ae[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(oe.output+j.output).length),oe.output=`(?:${oe.output}`,j.type="globstar",j.output=`${W(p)}${A}|${A}${ce})`,j.value+=z,F.output+=oe.output+j.output,F.globstar=!0,ne(z+ue()),X({type:"slash",value:"/",output:""});continue}if(oe.type==="bos"&&ae[0]==="/"){j.type="globstar",j.value+=z,j.output=`(?:^|${A}|${W(p)}${A})`,F.output=j.output,F.globstar=!0,ne(z+ue()),X({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-j.output.length),j.type="globstar",j.output=W(p),j.value+=z,F.output+=j.output,F.globstar=!0,ne(z);continue}let pe={type:"star",value:z,output:N};if(p.bash===!0){pe.output=".*?",(j.type==="bos"||j.type==="slash")&&(pe.output=se+pe.output),X(pe);continue}if(j&&(j.type==="bracket"||j.type==="paren")&&p.regex===!0){pe.output=z,X(pe);continue}(F.index===F.start||j.type==="slash"||j.type==="dot")&&(j.type==="dot"?(F.output+=O,j.output+=O):p.dot===!0?(F.output+=D,j.output+=D):(F.output+=se,j.output+=se),le()!=="*"&&(F.output+=R,j.output+=R)),X(pe)}for(;F.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing","]"));F.output=n.escapeLast(F.output,"["),H("brackets")}for(;F.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing",")"));F.output=n.escapeLast(F.output,"("),H("parens")}for(;F.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(c("closing","}"));F.output=n.escapeLast(F.output,"{"),H("braces")}if(p.strictSlashes!==!0&&(j.type==="star"||j.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${A}?`}),F.backtrack===!0){F.output="";for(let ae of F.tokens)F.output+=ae.output!=null?ae.output:ae.value,ae.suffix&&(F.output+=ae.suffix)}return F};h.fastpaths=(u,d)=>{let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);u=s[u]||u;let _=n.isWindows(d),{DOT_LITERAL:g,SLASH_LITERAL:S,ONE_CHAR:E,DOTS_SLASH:v,NO_DOT:m,NO_DOTS:w,NO_DOTS_SLASH:x,STAR:A,START_ANCHOR:R}=t.globChars(_),B=p.dot?w:m,P=p.dot?x:m,O=p.capture?"":"?:",D={negated:!1,prefix:""},k=p.bash===!0?".*?":A;p.capture&&(k=`(${k})`);let M=se=>se.noglobstar===!0?k:`(${O}(?:(?!${R}${se.dot?v:g}).)*?)`,L=se=>{switch(se){case"*":return`${B}${E}${k}`;case".*":return`${g}${E}${k}`;case"*.*":return`${B}${k}${g}${E}${k}`;case"*/*":return`${B}${k}${S}${E}${P}${k}`;case"**":return B+M(p);case"**/*":return`(?:${B}${M(p)}${S})?${P}${E}${k}`;case"**/*.*":return`(?:${B}${M(p)}${S})?${P}${k}${g}${E}${k}`;case"**/.*":return`(?:${B}${M(p)}${S})?${g}${E}${k}`;default:{let I=/^(.*?)\.(\w+)$/.exec(se);if(!I)return;let N=L(I[1]);return N?N+g+I[2]:void 0}}},U=n.removePrefix(u,D),W=L(U);return W&&p.strictSlashes!==!0&&(W+=`${S}?`),W},r.exports=h}),OE=te((e,r)=>{"use strict";Z();var t=he("path"),n=DE(),i=RE(),l=bs(),a=gs(),o=f=>f&&typeof f=="object"&&!Array.isArray(f),s=(f,c,h=!1)=>{if(Array.isArray(f)){let S=f.map(E=>s(E,c,h));return E=>{for(let v of S){let m=v(E);if(m)return m}return!1}}let u=o(f)&&f.tokens&&f.input;if(f===""||typeof f!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let d=c||{},p=l.isWindows(c),y=u?s.compileRe(f,c):s.makeRe(f,c,!1,!0),b=y.state;delete y.state;let _=()=>!1;if(d.ignore){let S={...c,ignore:null,onMatch:null,onResult:null};_=s(d.ignore,S,h)}let g=(S,E=!1)=>{let{isMatch:v,match:m,output:w}=s.test(S,y,c,{glob:f,posix:p}),x={glob:f,state:b,regex:y,posix:p,input:S,output:w,match:m,isMatch:v};return typeof d.onResult=="function"&&d.onResult(x),v===!1?(x.isMatch=!1,E?x:!1):_(S)?(typeof d.onIgnore=="function"&&d.onIgnore(x),x.isMatch=!1,E?x:!1):(typeof d.onMatch=="function"&&d.onMatch(x),E?x:!0)};return h&&(g.state=b),g};s.test=(f,c,h,{glob:u,posix:d}={})=>{if(typeof f!="string")throw new TypeError("Expected input to be a string");if(f==="")return{isMatch:!1,output:""};let p=h||{},y=p.format||(d?l.toPosixSlashes:null),b=f===u,_=b&&y?y(f):f;return b===!1&&(_=y?y(f):f,b=_===u),(b===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?b=s.matchBase(f,c,h,d):b=c.exec(_)),{isMatch:!!b,match:b,output:_}},s.matchBase=(f,c,h,u=l.isWindows(h))=>(c instanceof RegExp?c:s.makeRe(c,h)).test(t.basename(f)),s.isMatch=(f,c,h)=>s(c,h)(f),s.parse=(f,c)=>Array.isArray(f)?f.map(h=>s.parse(h,c)):i(f,{...c,fastpaths:!1}),s.scan=(f,c)=>n(f,c),s.compileRe=(f,c,h=!1,u=!1)=>{if(h===!0)return f.output;let d=c||{},p=d.contains?"":"^",y=d.contains?"":"$",b=`${p}(?:${f.output})${y}`;f&&f.negated===!0&&(b=`^(?!${b}).*$`);let _=s.toRegex(b,c);return u===!0&&(_.state=f),_},s.makeRe=(f,c={},h=!1,u=!1)=>{if(!f||typeof f!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return c.fastpaths!==!1&&(f[0]==="."||f[0]==="*")&&(d.output=i.fastpaths(f,c)),d.output||(d=i(f,c)),s.compileRe(d,c,h,u)},s.toRegex=(f,c)=>{try{let h=c||{};return new RegExp(f,h.flags||(h.nocase?"i":""))}catch(h){if(c&&c.debug===!0)throw h;return/$^/}},s.constants=a,r.exports=s}),TE=te((e,r)=>{"use strict";Z(),r.exports=OE()}),FE=te((e,r)=>{"use strict";Z();var t=he("util"),n=kE(),i=TE(),l=bs(),a=s=>s===""||s==="./",o=(s,f,c)=>{f=[].concat(f),s=[].concat(s);let h=new Set,u=new Set,d=new Set,p=0,y=_=>{d.add(_.output),c&&c.onResult&&c.onResult(_)};for(let _=0;_<f.length;_++){let g=i(String(f[_]),{...c,onResult:y},!0),S=g.state.negated||g.state.negatedExtglob;S&&p++;for(let E of s){let v=g(E,!0);!(S?!v.isMatch:v.isMatch)||(S?h.add(v.output):(h.delete(v.output),u.add(v.output)))}}let b=(p===f.length?[...d]:[...u]).filter(_=>!h.has(_));if(c&&b.length===0){if(c.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(c.nonull===!0||c.nullglob===!0)return c.unescape?f.map(_=>_.replace(/\\/g,"")):f}return b};o.match=o,o.matcher=(s,f)=>i(s,f),o.isMatch=(s,f,c)=>i(f,c)(s),o.any=o.isMatch,o.not=(s,f,c={})=>{f=[].concat(f).map(String);let h=new Set,u=[],d=y=>{c.onResult&&c.onResult(y),u.push(y.output)},p=new Set(o(s,f,{...c,onResult:d}));for(let y of u)p.has(y)||h.add(y);return[...h]},o.contains=(s,f,c)=>{if(typeof s!="string")throw new TypeError(`Expected a string: "${t.inspect(s)}"`);if(Array.isArray(f))return f.some(h=>o.contains(s,h,c));if(typeof f=="string"){if(a(s)||a(f))return!1;if(s.includes(f)||s.startsWith("./")&&s.slice(2).includes(f))return!0}return o.isMatch(s,f,{...c,contains:!0})},o.matchKeys=(s,f,c)=>{if(!l.isObject(s))throw new TypeError("Expected the first argument to be an object");let h=o(Object.keys(s),f,c),u={};for(let d of h)u[d]=s[d];return u},o.some=(s,f,c)=>{let h=[].concat(s);for(let u of[].concat(f)){let d=i(String(u),c);if(h.some(p=>d(p)))return!0}return!1},o.every=(s,f,c)=>{let h=[].concat(s);for(let u of[].concat(f)){let d=i(String(u),c);if(!h.every(p=>d(p)))return!1}return!0},o.all=(s,f,c)=>{if(typeof s!="string")throw new TypeError(`Expected a string: "${t.inspect(s)}"`);return[].concat(f).every(h=>i(h,c)(s))},o.capture=(s,f,c)=>{let h=l.isWindows(c),u=i.makeRe(String(s),{...c,capture:!0}).exec(h?l.toPosixSlashes(f):f);if(u)return u.slice(1).map(d=>d===void 0?"":d)},o.makeRe=(...s)=>i.makeRe(...s),o.scan=(...s)=>i.scan(...s),o.parse=(s,f)=>{let c=[];for(let h of[].concat(s||[]))for(let u of n(String(h),f))c.push(i.parse(u,f));return c},o.braces=(s,f)=>{if(typeof s!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!/\{.*\}/.test(s)?[s]:n(s,f)},o.braceExpand=(s,f)=>{if(typeof s!="string")throw new TypeError("Expected a string");return o.braces(s,{...f,expand:!0})},r.exports=o}),PE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var r=he("path"),t=_E(),n=FE(),i="**",l="\\",a=/[*?]|^!/,o=/\[[^[]*]/,s=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,f=/[!*+?@]\([^(]*\)/,c=/,|\.\./;function h(L,U={}){return!u(L,U)}e.isStaticPattern=h;function u(L,U={}){return L===""?!1:!!(U.caseSensitiveMatch===!1||L.includes(l)||a.test(L)||o.test(L)||s.test(L)||U.extglob!==!1&&f.test(L)||U.braceExpansion!==!1&&d(L))}e.isDynamicPattern=u;function d(L){let U=L.indexOf("{");if(U===-1)return!1;let W=L.indexOf("}",U+1);if(W===-1)return!1;let se=L.slice(U,W);return c.test(se)}function p(L){return b(L)?L.slice(1):L}e.convertToPositivePattern=p;function y(L){return"!"+L}e.convertToNegativePattern=y;function b(L){return L.startsWith("!")&&L[1]!=="("}e.isNegativePattern=b;function _(L){return!b(L)}e.isPositivePattern=_;function g(L){return L.filter(b)}e.getNegativePatterns=g;function S(L){return L.filter(_)}e.getPositivePatterns=S;function E(L){return L.filter(U=>!m(U))}e.getPatternsInsideCurrentDirectory=E;function v(L){return L.filter(m)}e.getPatternsOutsideCurrentDirectory=v;function m(L){return L.startsWith("..")||L.startsWith("./..")}e.isPatternRelatedToParentDirectory=m;function w(L){return t(L,{flipBackslashes:!1})}e.getBaseDirectory=w;function x(L){return L.includes(i)}e.hasGlobStar=x;function A(L){return L.endsWith("/"+i)}e.endsWithSlashGlobStar=A;function R(L){let U=r.basename(L);return A(L)||h(U)}e.isAffectDepthOfReadingPattern=R;function B(L){return L.reduce((U,W)=>U.concat(P(W)),[])}e.expandPatternsWithBraceExpansion=B;function P(L){return n.braces(L,{expand:!0,nodupes:!0})}e.expandBraceExpansion=P;function O(L,U){let{parts:W}=n.scan(L,Object.assign(Object.assign({},U),{parts:!0}));return W.length===0&&(W=[L]),W[0].startsWith("/")&&(W[0]=W[0].slice(1),W.unshift("")),W}e.getPatternParts=O;function D(L,U){return n.makeRe(L,U)}e.makeRe=D;function k(L,U){return L.map(W=>D(W,U))}e.convertPatternsToRe=k;function M(L,U){return U.some(W=>W.test(L))}e.matchAny=M}),BE=te((e,r)=>{"use strict";Z();var t=he("stream"),n=t.PassThrough,i=Array.prototype.slice;r.exports=l;function l(){let o=[],s=i.call(arguments),f=!1,c=s[s.length-1];c&&!Array.isArray(c)&&c.pipe==null?s.pop():c={};let h=c.end!==!1,u=c.pipeError===!0;c.objectMode==null&&(c.objectMode=!0),c.highWaterMark==null&&(c.highWaterMark=64*1024);let d=n(c);function p(){for(let _=0,g=arguments.length;_<g;_++)o.push(a(arguments[_],c));return y(),this}function y(){if(f)return;f=!0;let _=o.shift();if(!_){process.nextTick(b);return}Array.isArray(_)||(_=[_]);let g=_.length+1;function S(){--g>0||(f=!1,y())}function E(v){function m(){v.removeListener("merge2UnpipeEnd",m),v.removeListener("end",m),u&&v.removeListener("error",w),S()}function w(x){d.emit("error",x)}if(v._readableState.endEmitted)return S();v.on("merge2UnpipeEnd",m),v.on("end",m),u&&v.on("error",w),v.pipe(d,{end:!1}),v.resume()}for(let v=0;v<_.length;v++)E(_[v]);S()}function b(){f=!1,d.emit("queueDrain"),h&&d.end()}return d.setMaxListeners(0),d.add=p,d.on("unpipe",function(_){_.emit("merge2UnpipeEnd")}),s.length&&p.apply(null,s),d}function a(o,s){if(Array.isArray(o))for(let f=0,c=o.length;f<c;f++)o[f]=a(o[f],s);else{if(!o._readableState&&o.pipe&&(o=o.pipe(n(s))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}}),IE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var r=BE();function t(i){let l=r(i);return i.forEach(a=>{a.once("error",o=>l.emit("error",o))}),l.once("close",()=>n(i)),l.once("end",()=>n(i)),l}e.merge=t;function n(i){i.forEach(l=>l.emit("close"))}}),LE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function r(n){return typeof n=="string"}e.isString=r;function t(n){return n===""}e.isEmpty=t}),gr=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var r=dE();e.array=r;var t=mE();e.errno=t;var n=yE();e.fs=n;var i=gE();e.path=i;var l=PE();e.pattern=l;var a=IE();e.stream=a;var o=LE();e.string=o}),ME=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var r=gr();function t(f,c){let h=i(f),u=l(f,c.ignore),d=h.filter(_=>r.pattern.isStaticPattern(_,c)),p=h.filter(_=>r.pattern.isDynamicPattern(_,c)),y=n(d,u,!1),b=n(p,u,!0);return y.concat(b)}e.generate=t;function n(f,c,h){let u=[],d=r.pattern.getPatternsOutsideCurrentDirectory(f),p=r.pattern.getPatternsInsideCurrentDirectory(f),y=a(d),b=a(p);return u.push(...o(y,c,h)),"."in b?u.push(s(".",p,c,h)):u.push(...o(b,c,h)),u}e.convertPatternsToTasks=n;function i(f){return r.pattern.getPositivePatterns(f)}e.getPositivePatterns=i;function l(f,c){return r.pattern.getNegativePatterns(f).concat(c).map(r.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=l;function a(f){let c={};return f.reduce((h,u)=>{let d=r.pattern.getBaseDirectory(u);return d in h?h[d].push(u):h[d]=[u],h},c)}e.groupPatternsByBaseDirectory=a;function o(f,c,h){return Object.keys(f).map(u=>s(u,f[u],c,h))}e.convertPatternGroupsToTasks=o;function s(f,c,h,u){return{dynamic:u,positive:c,negative:h,base:f,patterns:[].concat(c,h.map(r.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=s}),NE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var r=/(?!^)\/{2,}/g;function t(i){return i.map(l=>n(l))}e.transform=t;function n(i){return i.replace(r,"/")}e.removeDuplicateSlashes=n}),jE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(i,l,a){l.fs.lstat(i,(o,s)=>{if(o!==null){t(a,o);return}if(!s.isSymbolicLink()||!l.followSymbolicLink){n(a,s);return}l.fs.stat(i,(f,c)=>{if(f!==null){if(l.throwErrorOnBrokenSymbolicLink){t(a,f);return}n(a,s);return}l.markSymbolicLink&&(c.isSymbolicLink=()=>!0),n(a,c)})})}e.read=r;function t(i,l){i(l)}function n(i,l){i(null,l)}}),$E=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(t,n){let i=n.fs.lstatSync(t);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let l=n.fs.statSync(t);return n.markSymbolicLink&&(l.isSymbolicLink=()=>!0),l}catch(l){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw l}}e.read=r}),HE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=he("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),qE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=HE(),t=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=r.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n!=null?n:i}};e.default=t}),hn=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var r=jE(),t=$E(),n=qE();e.Settings=n.default;function i(o,s,f){if(typeof s=="function"){r.read(o,a(),s);return}r.read(o,a(s),f)}e.stat=i;function l(o,s){let f=a(s);return t.read(o,f)}e.statSync=l;function a(o={}){return o instanceof n.default?o:new n.default(o)}}),UE=te((e,r)=>{Z();var t;r.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(t||(t=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}),GE=te((e,r)=>{Z(),r.exports=n;var t=UE();function n(i,l){let a,o,s,f=!0;Array.isArray(i)?(a=[],o=i.length):(s=Object.keys(i),a={},o=s.length);function c(u){function d(){l&&l(u,a),l=null}f?t(d):d()}function h(u,d,p){a[u]=p,(--o===0||d)&&c(d)}o?s?s.forEach(function(u){i[u](function(d,p){h(u,d,p)})}):i.forEach(function(u,d){u(function(p,y){h(d,p,y)})}):c(null),f=!1}}),vp=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var r=process.versions.node.split(".");if(r[0]===void 0||r[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var t=Number.parseInt(r[0],10),n=Number.parseInt(r[1],10),i=10,l=10,a=t>i,o=t===i&&n>=l;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||o}),WE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),_p=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var r=WE();e.fs=r}),wp=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function r(t,n,i){return t.endsWith(i)?t+n:t+i+n}e.joinPathSegments=r}),zE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=hn(),t=GE(),n=vp(),i=_p(),l=wp();function a(u,d,p){if(!d.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){o(u,d,p);return}f(u,d,p)}e.read=a;function o(u,d,p){d.fs.readdir(u,{withFileTypes:!0},(y,b)=>{if(y!==null){c(p,y);return}let _=b.map(S=>({dirent:S,name:S.name,path:l.joinPathSegments(u,S.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){h(p,_);return}let g=_.map(S=>s(S,d));t(g,(S,E)=>{if(S!==null){c(p,S);return}h(p,E)})})}e.readdirWithFileTypes=o;function s(u,d){return p=>{if(!u.dirent.isSymbolicLink()){p(null,u);return}d.fs.stat(u.path,(y,b)=>{if(y!==null){if(d.throwErrorOnBrokenSymbolicLink){p(y);return}p(null,u);return}u.dirent=i.fs.createDirentFromStats(u.name,b),p(null,u)})}}function f(u,d,p){d.fs.readdir(u,(y,b)=>{if(y!==null){c(p,y);return}let _=b.map(g=>{let S=l.joinPathSegments(u,g,d.pathSegmentSeparator);return E=>{r.stat(S,d.fsStatSettings,(v,m)=>{if(v!==null){E(v);return}let w={name:g,path:S,dirent:i.fs.createDirentFromStats(g,m)};d.stats&&(w.stats=m),E(null,w)})}});t(_,(g,S)=>{if(g!==null){c(p,g);return}h(p,S)})})}e.readdir=f;function c(u,d){u(d)}function h(u,d){u(null,d)}}),VE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=hn(),t=vp(),n=_p(),i=wp();function l(s,f){return!f.stats&&t.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(s,f):o(s,f)}e.read=l;function a(s,f){return f.fs.readdirSync(s,{withFileTypes:!0}).map(c=>{let h={dirent:c,name:c.name,path:i.joinPathSegments(s,c.name,f.pathSegmentSeparator)};if(h.dirent.isSymbolicLink()&&f.followSymbolicLinks)try{let u=f.fs.statSync(h.path);h.dirent=n.fs.createDirentFromStats(h.name,u)}catch(u){if(f.throwErrorOnBrokenSymbolicLink)throw u}return h})}e.readdirWithFileTypes=a;function o(s,f){return f.fs.readdirSync(s).map(c=>{let h=i.joinPathSegments(s,c,f.pathSegmentSeparator),u=r.statSync(h,f.fsStatSettings),d={name:c,path:h,dirent:n.fs.createDirentFromStats(c,u)};return f.stats&&(d.stats=u),d})}e.readdir=o}),KE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=he("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),YE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=he("path"),t=hn(),n=KE(),i=class{constructor(l={}){this._options=l,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new t.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(l,a){return l!=null?l:a}};e.default=i}),Qa=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var r=zE(),t=VE(),n=YE();e.Settings=n.default;function i(o,s,f){if(typeof s=="function"){r.read(o,a(),s);return}r.read(o,a(s),f)}e.scandir=i;function l(o,s){let f=a(s);return t.read(o,f)}e.scandirSync=l;function a(o={}){return o instanceof n.default?o:new n.default(o)}}),XE=te((e,r)=>{"use strict";Z();function t(n){var i=new n,l=i;function a(){var s=i;return s.next?i=s.next:(i=new n,l=i),s.next=null,s}function o(s){l.next=s,l=s}return{get:a,release:o}}r.exports=t}),ZE=te((e,r)=>{"use strict";Z();var t=XE();function n(o,s,f){if(typeof o=="function"&&(f=s,s=o,o=null),f<1)throw new Error("fastqueue concurrency must be greater than 1");var c=t(l),h=null,u=null,d=0,p=null,y={push:m,drain:i,saturated:i,pause:_,paused:!1,concurrency:f,running:b,resume:E,idle:v,length:g,getQueue:S,unshift:w,empty:i,kill:A,killAndDrain:R,error:B};return y;function b(){return d}function _(){y.paused=!0}function g(){for(var P=h,O=0;P;)P=P.next,O++;return O}function S(){for(var P=h,O=[];P;)O.push(P.value),P=P.next;return O}function E(){if(y.paused){y.paused=!1;for(var P=0;P<y.concurrency;P++)d++,x()}}function v(){return d===0&&y.length()===0}function m(P,O){var D=c.get();D.context=o,D.release=x,D.value=P,D.callback=O||i,D.errorHandler=p,d===y.concurrency||y.paused?u?(u.next=D,u=D):(h=D,u=D,y.saturated()):(d++,s.call(o,D.value,D.worked))}function w(P,O){var D=c.get();D.context=o,D.release=x,D.value=P,D.callback=O||i,d===y.concurrency||y.paused?h?(D.next=h,h=D):(h=D,u=D,y.saturated()):(d++,s.call(o,D.value,D.worked))}function x(P){P&&c.release(P);var O=h;O?y.paused?d--:(u===h&&(u=null),h=O.next,O.next=null,s.call(o,O.value,O.worked),u===null&&y.empty()):--d===0&&y.drain()}function A(){h=null,u=null,y.drain=i}function R(){h=null,u=null,y.drain(),y.drain=i}function B(P){p=P}}function i(){}function l(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var o=this;this.worked=function(s,f){var c=o.callback,h=o.errorHandler,u=o.value;o.value=null,o.callback=i,o.errorHandler&&h(s,u),c.call(o.context,s,f),o.release(o)}}function a(o,s,f){typeof o=="function"&&(f=s,s=o,o=null);function c(_,g){s.call(this,_).then(function(S){g(null,S)},g)}var h=n(o,c,f),u=h.push,d=h.unshift;return h.push=p,h.unshift=y,h.drained=b,h;function p(_){var g=new Promise(function(S,E){u(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function y(_){var g=new Promise(function(S,E){d(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function b(){var _=h.drain,g=new Promise(function(S){h.drain=function(){_(),S()}});return g}}r.exports=n,r.exports.promise=a}),Ja=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function r(l,a){return l.errorFilter===null?!0:!l.errorFilter(a)}e.isFatalError=r;function t(l,a){return l===null||l(a)}e.isAppliedFilter=t;function n(l,a){return l.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=n;function i(l,a,o){return l===""?a:l.endsWith(o)?l+a:l+o+a}e.joinPathSegments=i}),Ep=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=Ja(),t=class{constructor(n,i){this._root=n,this._settings=i,this._root=r.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=t}),Sp=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=he("events"),t=Qa(),n=ZE(),i=Ja(),l=Ep(),a=class extends l.default{constructor(o,s){super(o,s),this._settings=s,this._scandir=t.scandir,this._emitter=new r.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(o){this._emitter.on("entry",o)}onError(o){this._emitter.once("error",o)}onEnd(o){this._emitter.once("end",o)}_pushToQueue(o,s){let f={directory:o,base:s};this._queue.push(f,c=>{c!==null&&this._handleError(c)})}_worker(o,s){this._scandir(o.directory,this._settings.fsScandirSettings,(f,c)=>{if(f!==null){s(f,void 0);return}for(let h of c)this._handleEntry(h,o.base);s(null,void 0)})}_handleError(o){this._isDestroyed||!i.isFatalError(this._settings,o)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",o))}_handleEntry(o,s){if(this._isDestroyed||this._isFatalError)return;let f=o.path;s!==void 0&&(o.path=i.joinPathSegments(s,o.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,o)&&this._emitEntry(o),o.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(f,s===void 0?void 0:o.path)}_emitEntry(o){this._emitter.emit("entry",o)}};e.default=a}),QE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=Sp(),t=class{constructor(l,a){this._root=l,this._settings=a,this._reader=new r.default(this._root,this._settings),this._storage=[]}read(l){this._reader.onError(a=>{n(l,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{i(l,this._storage)}),this._reader.read()}};e.default=t;function n(l,a){l(a)}function i(l,a){l(null,a)}}),JE=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=he("stream"),t=Sp(),n=class{constructor(i,l){this._root=i,this._settings=l,this._reader=new t.default(this._root,this._settings),this._stream=new r.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}),eS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=Qa(),t=Ja(),n=Ep(),i=class extends n.default{constructor(){super(...arguments),this._scandir=r.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(l,a){this._queue.add({directory:l,base:a})}_handleQueue(){for(let l of this._queue.values())this._handleDirectory(l.directory,l.base)}_handleDirectory(l,a){try{let o=this._scandir(l,this._settings.fsScandirSettings);for(let s of o)this._handleEntry(s,a)}catch(o){this._handleError(o)}}_handleError(l){if(t.isFatalError(this._settings,l))throw l}_handleEntry(l,a){let o=l.path;a!==void 0&&(l.path=t.joinPathSegments(a,l.name,this._settings.pathSegmentSeparator)),t.isAppliedFilter(this._settings.entryFilter,l)&&this._pushToStorage(l),l.dirent.isDirectory()&&t.isAppliedFilter(this._settings.deepFilter,l)&&this._pushToQueue(o,a===void 0?void 0:l.path)}_pushToStorage(l){this._storage.push(l)}};e.default=i}),tS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=eS(),t=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=t}),rS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=he("path"),t=Qa(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.fsScandirSettings=new t.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,l){return i!=null?i:l}};e.default=n}),eu=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var r=QE(),t=JE(),n=tS(),i=rS();e.Settings=i.default;function l(f,c,h){if(typeof c=="function"){new r.default(f,s()).read(c);return}new r.default(f,s(c)).read(h)}e.walk=l;function a(f,c){let h=s(c);return new n.default(f,h).read()}e.walkSync=a;function o(f,c){let h=s(c);return new t.default(f,h).read()}e.walkStream=o;function s(f={}){return f instanceof i.default?f:new i.default(f)}}),tu=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=he("path"),t=hn(),n=gr(),i=class{constructor(l){this._settings=l,this._fsStatSettings=new t.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(l){return r.resolve(this._settings.cwd,l)}_makeEntry(l,a){let o={name:a,path:a,dirent:n.fs.createDirentFromStats(a,l)};return this._settings.stats&&(o.stats=l),o}_isFatalError(l){return!n.errno.isEnoentCodeError(l)&&!this._settings.suppressErrors}};e.default=i}),xp=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=he("stream"),t=hn(),n=eu(),i=tu(),l=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=t.stat}dynamic(a,o){return this._walkStream(a,o)}static(a,o){let s=a.map(this._getFullEntryPath,this),f=new r.PassThrough({objectMode:!0});f._write=(c,h,u)=>this._getEntry(s[c],a[c],o).then(d=>{d!==null&&o.entryFilter(d)&&f.push(d),c===s.length-1&&f.end(),u()}).catch(u);for(let c=0;c<s.length;c++)f.write(c);return f}_getEntry(a,o,s){return this._getStat(a).then(f=>this._makeEntry(f,o)).catch(f=>{if(s.errorFilter(f))return null;throw f})}_getStat(a){return new Promise((o,s)=>{this._stat(a,this._fsStatSettings,(f,c)=>f===null?o(c):s(f))})}};e.default=l}),nS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=eu(),t=tu(),n=xp(),i=class extends t.default{constructor(){super(...arguments),this._walkAsync=r.walk,this._readerStream=new n.default(this._settings)}dynamic(l,a){return new Promise((o,s)=>{this._walkAsync(l,a,(f,c)=>{f===null?o(c):s(f)})})}async static(l,a){let o=[],s=this._readerStream.static(l,a);return new Promise((f,c)=>{s.once("error",c),s.on("data",h=>o.push(h)),s.once("end",()=>f(o))})}};e.default=i}),iS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=gr(),t=class{constructor(n,i,l){this._patterns=n,this._settings=i,this._micromatchOptions=l,this._storage=[],this._fillStorage()}_fillStorage(){let n=r.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of n){let l=this._getPatternSegments(i),a=this._splitSegmentsIntoSections(l);this._storage.push({complete:a.length<=1,pattern:i,segments:l,sections:a})}}_getPatternSegments(n){return r.pattern.getPatternParts(n,this._micromatchOptions).map(i=>r.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:r.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(n){return r.array.splitWhen(n,i=>i.dynamic&&r.pattern.hasGlobStar(i.pattern))}};e.default=t}),sS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=iS(),t=class extends r.default{match(n){let i=n.split("/"),l=i.length,a=this._storage.filter(o=>!o.complete||o.segments.length>l);for(let o of a){let s=o.sections[0];if(!o.complete&&l>s.length||i.every((f,c)=>{let h=o.segments[c];return!!(h.dynamic&&h.patternRe.test(f)||!h.dynamic&&h.pattern===f)}))return!0}return!1}};e.default=t}),oS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=gr(),t=sS(),n=class{constructor(i,l){this._settings=i,this._micromatchOptions=l}getFilter(i,l,a){let o=this._getMatcher(l),s=this._getNegativePatternsRe(a);return f=>this._filter(i,f,o,s)}_getMatcher(i){return new t.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let l=i.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(l,this._micromatchOptions)}_filter(i,l,a,o){if(this._isSkippedByDeep(i,l.path)||this._isSkippedSymbolicLink(l))return!1;let s=r.path.removeLeadingDotSegment(l.path);return this._isSkippedByPositivePatterns(s,a)?!1:this._isSkippedByNegativePatterns(s,o)}_isSkippedByDeep(i,l){return this._settings.deep===1/0?!1:this._getEntryLevel(i,l)>=this._settings.deep}_getEntryLevel(i,l){let a=l.split("/").length;if(i==="")return a;let o=i.split("/").length;return a-o}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,l){return!this._settings.baseNameMatch&&!l.match(i)}_isSkippedByNegativePatterns(i,l){return!r.pattern.matchAny(i,l)}};e.default=n}),aS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=gr(),t=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let l=r.pattern.convertPatternsToRe(n,this._micromatchOptions),a=r.pattern.convertPatternsToRe(i,this._micromatchOptions);return o=>this._filter(o,l,a)}_filter(n,i,l){if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(n.path,l))return!1;let a=this._settings.baseNameMatch?n.name:n.path,o=n.dirent.isDirectory(),s=this._isMatchToPatterns(a,i,o)&&!this._isMatchToPatterns(n.path,l,o);return this._settings.unique&&s&&this._createIndexRecord(n),s}_isDuplicateEntry(n){return this.index.has(n.path)}_createIndexRecord(n){this.index.set(n.path,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let l=r.path.makeAbsolute(this._settings.cwd,n);return r.pattern.matchAny(l,i)}_isMatchToPatterns(n,i,l){let a=r.path.removeLeadingDotSegment(n),o=r.pattern.matchAny(a,i);return!o&&l?r.pattern.matchAny(a+"/",i):o}};e.default=t}),uS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=gr(),t=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return r.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=t}),lS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=gr(),t=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=r.path.makeAbsolute(this._settings.cwd,i),i=r.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=t}),ru=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=he("path"),t=oS(),n=aS(),i=uS(),l=lS(),a=class{constructor(o){this._settings=o,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new t.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new l.default(this._settings)}_getRootDirectory(o){return r.resolve(this._settings.cwd,o.base)}_getReaderOptions(o){let s=o.base==="."?"":o.base;return{basePath:s,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(s,o.positive,o.negative),entryFilter:this.entryFilter.getFilter(o.positive,o.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=a}),cS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=nS(),t=ru(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}async read(i){let l=this._getRootDirectory(i),a=this._getReaderOptions(i);return(await this.api(l,i,a)).map(o=>a.transform(o))}api(i,l,a){return l.dynamic?this._reader.dynamic(i,a):this._reader.static(l.patterns,a)}};e.default=n}),hS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=he("stream"),t=xp(),n=ru(),i=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(l){let a=this._getRootDirectory(l),o=this._getReaderOptions(l),s=this.api(a,l,o),f=new r.Readable({objectMode:!0,read:()=>{}});return s.once("error",c=>f.emit("error",c)).on("data",c=>f.emit("data",o.transform(c))).once("end",()=>f.emit("end")),f.once("close",()=>s.destroy()),f}api(l,a,o){return a.dynamic?this._reader.dynamic(l,o):this._reader.static(a.patterns,o)}};e.default=i}),fS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=hn(),t=eu(),n=tu(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=t.walkSync,this._statSync=r.statSync}dynamic(l,a){return this._walkSync(l,a)}static(l,a){let o=[];for(let s of l){let f=this._getFullEntryPath(s),c=this._getEntry(f,s,a);c===null||!a.entryFilter(c)||o.push(c)}return o}_getEntry(l,a,o){try{let s=this._getStat(l);return this._makeEntry(s,a)}catch(s){if(o.errorFilter(s))return null;throw s}}_getStat(l){return this._statSync(l,this._fsStatSettings)}};e.default=i}),pS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=fS(),t=ru(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(i){let l=this._getRootDirectory(i),a=this._getReaderOptions(i);return this.api(l,i,a).map(a.transform)}api(i,l,a){return l.dynamic?this._reader.dynamic(i,a):this._reader.static(l.patterns,a)}};e.default=n}),dS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var r=he("fs"),t=he("os"),n=Math.max(t.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};var i=class{constructor(l={}){this._options=l,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(l,a){return l===void 0?a:l}_getFileSystemMethods(l={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),l)}};e.default=i}),mS=te((e,r)=>{"use strict";Z();var t=ME(),n=NE(),i=cS(),l=hS(),a=pS(),o=dS(),s=gr();async function f(u,d){h(u);let p=c(u,i.default,d),y=await Promise.all(p);return s.array.flatten(y)}(function(u){function d(g,S){h(g);let E=c(g,a.default,S);return s.array.flatten(E)}u.sync=d;function p(g,S){h(g);let E=c(g,l.default,S);return s.stream.merge(E)}u.stream=p;function y(g,S){h(g);let E=n.transform([].concat(g)),v=new o.default(S);return t.generate(E,v)}u.generateTasks=y;function b(g,S){h(g);let E=new o.default(S);return s.pattern.isDynamicPattern(g,E)}u.isDynamicPattern=b;function _(g){return h(g),s.path.escape(g)}u.escapePath=_})(f||(f={}));function c(u,d,p){let y=n.transform([].concat(u)),b=new o.default(p),_=t.generate(y,b),g=new d(b);return _.map(g.read,g)}function h(u){if(![].concat(u).every(d=>s.string.isString(d)&&!s.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}r.exports=f});Z();Z();function Ap(e){return typeof e>"u"||e===null}function yS(e){return typeof e=="object"&&e!==null}function gS(e){return Array.isArray(e)?e:Ap(e)?[]:[e]}function bS(e,r){var t,n,i,l;if(r)for(l=Object.keys(r),t=0,n=l.length;t<n;t+=1)i=l[t],e[i]=r[i];return e}function vS(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function _S(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var wS=Ap,ES=yS,SS=gS,xS=vS,AS=_S,CS=bS,tt={isNothing:wS,isObject:ES,toArray:SS,repeat:xS,isNegativeZero:AS,extend:CS};function Cp(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
|
|
174
|
+
|
|
175
|
+
`+e.mark.snippet),n+" "+t):n}function fi(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=Cp(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}fi.prototype=Object.create(Error.prototype);fi.prototype.constructor=fi;fi.prototype.toString=function(e){return this.name+": "+Cp(this,e)};var gt=fi;function Ha(e,r,t,n,i){var l="",a="",o=Math.floor(i/2)-1;return n-r>o&&(l=" ... ",r=n-o+l.length),t-n>o&&(a=" ...",t=n+o-a.length),{str:l+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+l.length}}function qa(e,r){return tt.repeat(" ",r-e.length)+e}function kS(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],l,a=-1;l=t.exec(e.buffer);)i.push(l.index),n.push(l.index+l[0].length),e.position<=l.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var o="",s,f,c=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+c+3);for(s=1;s<=r.linesBefore&&!(a-s<0);s++)f=Ha(e.buffer,n[a-s],i[a-s],e.position-(n[a]-n[a-s]),h),o=tt.repeat(" ",r.indent)+qa((e.line-s+1).toString(),c)+" | "+f.str+`
|
|
176
|
+
`+o;for(f=Ha(e.buffer,n[a],i[a],e.position,h),o+=tt.repeat(" ",r.indent)+qa((e.line+1).toString(),c)+" | "+f.str+`
|
|
177
|
+
`,o+=tt.repeat("-",r.indent+c+3+f.pos)+`^
|
|
178
|
+
`,s=1;s<=r.linesAfter&&!(a+s>=i.length);s++)f=Ha(e.buffer,n[a+s],i[a+s],e.position-(n[a]-n[a+s]),h),o+=tt.repeat(" ",r.indent)+qa((e.line+s+1).toString(),c)+" | "+f.str+`
|
|
179
|
+
`;return o.replace(/\n$/,"")}var DS=kS,RS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],OS=["scalar","sequence","mapping"];function TS(e){var r={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(n){r[String(n)]=t})}),r}function FS(e,r){if(r=r||{},Object.keys(r).forEach(function(t){if(RS.indexOf(t)===-1)throw new gt('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(t){return t},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=TS(r.styleAliases||null),OS.indexOf(this.kind)===-1)throw new gt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var ot=FS;function np(e,r){var t=[];return e[r].forEach(function(n){var i=t.length;t.forEach(function(l,a){l.tag===n.tag&&l.kind===n.kind&&l.multi===n.multi&&(i=a)}),t[i]=n}),t}function PS(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,t=arguments.length;r<t;r+=1)arguments[r].forEach(n);return e}function Wa(e){return this.extend(e)}Wa.prototype.extend=function(e){var r=[],t=[];if(e instanceof ot)t.push(e);else if(Array.isArray(e))t=t.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(t=t.concat(e.explicit));else throw new gt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(i){if(!(i instanceof ot))throw new gt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new gt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new gt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(i){if(!(i instanceof ot))throw new gt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Wa.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(t),n.compiledImplicit=np(n,"implicit"),n.compiledExplicit=np(n,"explicit"),n.compiledTypeMap=PS(n.compiledImplicit,n.compiledExplicit),n};var kp=Wa,Dp=new ot("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Rp=new ot("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Op=new ot("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Tp=new kp({explicit:[Dp,Rp,Op]});function BS(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function IS(){return null}function LS(e){return e===null}var Fp=new ot("tag:yaml.org,2002:null",{kind:"scalar",resolve:BS,construct:IS,predicate:LS,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function MS(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function NS(e){return e==="true"||e==="True"||e==="TRUE"}function jS(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Pp=new ot("tag:yaml.org,2002:bool",{kind:"scalar",resolve:MS,construct:NS,predicate:jS,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function $S(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function HS(e){return 48<=e&&e<=55}function qS(e){return 48<=e&&e<=57}function US(e){if(e===null)return!1;var r=e.length,t=0,n=!1,i;if(!r)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===r)return!0;if(i=e[++t],i==="b"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!$S(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!HS(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;t<r;t++)if(i=e[t],i!=="_"){if(!qS(e.charCodeAt(t)))return!1;n=!0}return!(!n||i==="_")}function GS(e){var r=e,t=1,n;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),n=r[0],(n==="-"||n==="+")&&(n==="-"&&(t=-1),r=r.slice(1),n=r[0]),r==="0")return 0;if(n==="0"){if(r[1]==="b")return t*parseInt(r.slice(2),2);if(r[1]==="x")return t*parseInt(r.slice(2),16);if(r[1]==="o")return t*parseInt(r.slice(2),8)}return t*parseInt(r,10)}function WS(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!tt.isNegativeZero(e)}var Bp=new ot("tag:yaml.org,2002:int",{kind:"scalar",resolve:US,construct:GS,predicate:WS,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),zS=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function VS(e){return!(e===null||!zS.test(e)||e[e.length-1]==="_")}function KS(e){var r,t;return r=e.replace(/_/g,"").toLowerCase(),t=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:t*parseFloat(r,10)}var YS=/^[-+]?[0-9]+e/;function XS(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(tt.isNegativeZero(e))return"-0.0";return t=e.toString(10),YS.test(t)?t.replace("e",".e"):t}function ZS(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||tt.isNegativeZero(e))}var Ip=new ot("tag:yaml.org,2002:float",{kind:"scalar",resolve:VS,construct:KS,predicate:ZS,represent:XS,defaultStyle:"lowercase"}),Lp=Tp.extend({implicit:[Fp,Pp,Bp,Ip]}),Mp=Lp,Np=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),jp=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function QS(e){return e===null?!1:Np.exec(e)!==null||jp.exec(e)!==null}function JS(e){var r,t,n,i,l,a,o,s=0,f=null,c,h,u;if(r=Np.exec(e),r===null&&(r=jp.exec(e)),r===null)throw new Error("Date resolve error");if(t=+r[1],n=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(t,n,i));if(l=+r[4],a=+r[5],o=+r[6],r[7]){for(s=r[7].slice(0,3);s.length<3;)s+="0";s=+s}return r[9]&&(c=+r[10],h=+(r[11]||0),f=(c*60+h)*6e4,r[9]==="-"&&(f=-f)),u=new Date(Date.UTC(t,n,i,l,a,o,s)),f&&u.setTime(u.getTime()-f),u}function ex(e){return e.toISOString()}var $p=new ot("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:QS,construct:JS,instanceOf:Date,represent:ex});function tx(e){return e==="<<"||e===null}var Hp=new ot("tag:yaml.org,2002:merge",{kind:"scalar",resolve:tx}),nu=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
180
|
+
\r`;function rx(e){if(e===null)return!1;var r,t,n=0,i=e.length,l=nu;for(t=0;t<i;t++)if(r=l.indexOf(e.charAt(t)),!(r>64)){if(r<0)return!1;n+=6}return n%8===0}function nx(e){var r,t,n=e.replace(/[\r\n=]/g,""),i=n.length,l=nu,a=0,o=[];for(r=0;r<i;r++)r%4===0&&r&&(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)),a=a<<6|l.indexOf(n.charAt(r));return t=i%4*6,t===0?(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)):t===18?(o.push(a>>10&255),o.push(a>>2&255)):t===12&&o.push(a>>4&255),new Uint8Array(o)}function ix(e){var r="",t=0,n,i,l=e.length,a=nu;for(n=0;n<l;n++)n%3===0&&n&&(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]),t=(t<<8)+e[n];return i=l%3,i===0?(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]):i===2?(r+=a[t>>10&63],r+=a[t>>4&63],r+=a[t<<2&63],r+=a[64]):i===1&&(r+=a[t>>2&63],r+=a[t<<4&63],r+=a[64],r+=a[64]),r}function sx(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var qp=new ot("tag:yaml.org,2002:binary",{kind:"scalar",resolve:rx,construct:nx,predicate:sx,represent:ix}),ox=Object.prototype.hasOwnProperty,ax=Object.prototype.toString;function ux(e){if(e===null)return!0;var r=[],t,n,i,l,a,o=e;for(t=0,n=o.length;t<n;t+=1){if(i=o[t],a=!1,ax.call(i)!=="[object Object]")return!1;for(l in i)if(ox.call(i,l))if(!a)a=!0;else return!1;if(!a)return!1;if(r.indexOf(l)===-1)r.push(l);else return!1}return!0}function lx(e){return e!==null?e:[]}var Up=new ot("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ux,construct:lx}),cx=Object.prototype.toString;function hx(e){if(e===null)return!0;var r,t,n,i,l,a=e;for(l=new Array(a.length),r=0,t=a.length;r<t;r+=1){if(n=a[r],cx.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;l[r]=[i[0],n[i[0]]]}return!0}function fx(e){if(e===null)return[];var r,t,n,i,l,a=e;for(l=new Array(a.length),r=0,t=a.length;r<t;r+=1)n=a[r],i=Object.keys(n),l[r]=[i[0],n[i[0]]];return l}var Gp=new ot("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:hx,construct:fx}),px=Object.prototype.hasOwnProperty;function dx(e){if(e===null)return!0;var r,t=e;for(r in t)if(px.call(t,r)&&t[r]!==null)return!1;return!0}function mx(e){return e!==null?e:{}}var Wp=new ot("tag:yaml.org,2002:set",{kind:"mapping",resolve:dx,construct:mx}),iu=Mp.extend({implicit:[$p,Hp],explicit:[qp,Up,Gp,Wp]}),yr=Object.prototype.hasOwnProperty,fs=1,zp=2,Vp=3,ps=4,Ua=1,yx=2,ip=3,gx=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,bx=/[\x85\u2028\u2029]/,vx=/[,\[\]\{\}]/,Kp=/^(?:!|!!|![a-z\-]+!)$/i,Yp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function sp(e){return Object.prototype.toString.call(e)}function $t(e){return e===10||e===13}function Nr(e){return e===9||e===32}function _t(e){return e===9||e===32||e===10||e===13}function un(e){return e===44||e===91||e===93||e===123||e===125}function _x(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function wx(e){return e===120?2:e===117?4:e===85?8:0}function Ex(e){return 48<=e&&e<=57?e-48:-1}function op(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
181
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Sx(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Xp=new Array(256),Zp=new Array(256);for(Lr=0;Lr<256;Lr++)Xp[Lr]=op(Lr)?1:0,Zp[Lr]=op(Lr);var Lr;function xx(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||iu,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Qp(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=DS(t),new gt(r,t)}function Re(e,r){throw Qp(e,r)}function ds(e,r){e.onWarning&&e.onWarning.call(null,Qp(e,r))}var ap={YAML:function(e,r,t){var n,i,l;e.version!==null&&Re(e,"duplication of %YAML directive"),t.length!==1&&Re(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),n===null&&Re(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),l=parseInt(n[2],10),i!==1&&Re(e,"unacceptable YAML version of the document"),e.version=t[0],e.checkLineBreaks=l<2,l!==1&&l!==2&&ds(e,"unsupported YAML version of the document")},TAG:function(e,r,t){var n,i;t.length!==2&&Re(e,"TAG directive accepts exactly two arguments"),n=t[0],i=t[1],Kp.test(n)||Re(e,"ill-formed tag handle (first argument) of the TAG directive"),yr.call(e.tagMap,n)&&Re(e,'there is a previously declared suffix for "'+n+'" tag handle'),Yp.test(i)||Re(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{Re(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function mr(e,r,t,n){var i,l,a,o;if(r<t){if(o=e.input.slice(r,t),n)for(i=0,l=o.length;i<l;i+=1)a=o.charCodeAt(i),a===9||32<=a&&a<=1114111||Re(e,"expected valid JSON character");else gx.test(o)&&Re(e,"the stream contains non-printable characters");e.result+=o}}function up(e,r,t,n){var i,l,a,o;for(tt.isObject(t)||Re(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(t),a=0,o=i.length;a<o;a+=1)l=i[a],yr.call(r,l)||(r[l]=t[l],n[l]=!0)}function ln(e,r,t,n,i,l,a,o,s){var f,c;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,c=i.length;f<c;f+=1)Array.isArray(i[f])&&Re(e,"nested arrays are not supported inside keys"),typeof i=="object"&&sp(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&sp(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(f=0,c=l.length;f<c;f+=1)up(e,r,l[f],t);else up(e,r,l,t);else!e.json&&!yr.call(t,i)&&yr.call(r,i)&&(e.line=a||e.line,e.lineStart=o||e.lineStart,e.position=s||e.position,Re(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:l}):r[i]=l,delete t[i];return r}function su(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Re(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ze(e,r,t){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Nr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if($t(i))for(su(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return t!==-1&&n!==0&&e.lineIndent<t&&ds(e,"deficient indentation"),n}function vs(e){var r=e.position,t;return t=e.input.charCodeAt(r),!!((t===45||t===46)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,t=e.input.charCodeAt(r),t===0||_t(t)))}function ou(e,r){r===1?e.result+=" ":r>1&&(e.result+=tt.repeat(`
|
|
182
|
+
`,r-1))}function Ax(e,r,t){var n,i,l,a,o,s,f,c,h=e.kind,u=e.result,d;if(d=e.input.charCodeAt(e.position),_t(d)||un(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),_t(i)||t&&un(i)))return!1;for(e.kind="scalar",e.result="",l=a=e.position,o=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),_t(i)||t&&un(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),_t(n))break}else{if(e.position===e.lineStart&&vs(e)||t&&un(d))break;if($t(d))if(s=e.line,f=e.lineStart,c=e.lineIndent,Ze(e,!1,-1),e.lineIndent>=r){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=s,e.lineStart=f,e.lineIndent=c;break}}o&&(mr(e,l,a,!1),ou(e,e.line-s),l=a=e.position,o=!1),Nr(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return mr(e,l,a,!1),e.result?!0:(e.kind=h,e.result=u,!1)}function Cx(e,r){var t,n,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(mr(e,n,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)n=e.position,e.position++,i=e.position;else return!0;else $t(t)?(mr(e,n,i,!0),ou(e,Ze(e,!1,r)),n=i=e.position):e.position===e.lineStart&&vs(e)?Re(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Re(e,"unexpected end of the stream within a single quoted scalar")}function kx(e,r){var t,n,i,l,a,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=n=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return mr(e,t,e.position,!0),e.position++,!0;if(o===92){if(mr(e,t,e.position,!0),o=e.input.charCodeAt(++e.position),$t(o))Ze(e,!1,r);else if(o<256&&Xp[o])e.result+=Zp[o],e.position++;else if((a=wx(o))>0){for(i=a,l=0;i>0;i--)o=e.input.charCodeAt(++e.position),(a=_x(o))>=0?l=(l<<4)+a:Re(e,"expected hexadecimal character");e.result+=Sx(l),e.position++}else Re(e,"unknown escape sequence");t=n=e.position}else $t(o)?(mr(e,t,n,!0),ou(e,Ze(e,!1,r)),t=n=e.position):e.position===e.lineStart&&vs(e)?Re(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Re(e,"unexpected end of the stream within a double quoted scalar")}function Dx(e,r){var t=!0,n,i,l,a=e.tag,o,s=e.anchor,f,c,h,u,d,p=Object.create(null),y,b,_,g;if(g=e.input.charCodeAt(e.position),g===91)c=93,d=!1,o=[];else if(g===123)c=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),g=e.input.charCodeAt(++e.position);g!==0;){if(Ze(e,!0,r),g=e.input.charCodeAt(e.position),g===c)return e.position++,e.tag=a,e.anchor=s,e.kind=d?"mapping":"sequence",e.result=o,!0;t?g===44&&Re(e,"expected the node content, but found ','"):Re(e,"missed comma between flow collection entries"),b=y=_=null,h=u=!1,g===63&&(f=e.input.charCodeAt(e.position+1),_t(f)&&(h=u=!0,e.position++,Ze(e,!0,r))),n=e.line,i=e.lineStart,l=e.position,cn(e,r,fs,!1,!0),b=e.tag,y=e.result,Ze(e,!0,r),g=e.input.charCodeAt(e.position),(u||e.line===n)&&g===58&&(h=!0,g=e.input.charCodeAt(++e.position),Ze(e,!0,r),cn(e,r,fs,!1,!0),_=e.result),d?ln(e,o,p,b,y,_,n,i,l):h?o.push(ln(e,null,p,b,y,_,n,i,l)):o.push(y),Ze(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(t=!0,g=e.input.charCodeAt(++e.position)):t=!1}Re(e,"unexpected end of the stream within a flow collection")}function Rx(e,r){var t,n,i=Ua,l=!1,a=!1,o=r,s=0,f=!1,c,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)Ua===i?i=h===43?ip:yx:Re(e,"repeat of a chomping mode identifier");else if((c=Ex(h))>=0)c===0?Re(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Re(e,"repeat of an indentation width identifier"):(o=r+c-1,a=!0);else break;if(Nr(h)){do h=e.input.charCodeAt(++e.position);while(Nr(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!$t(h)&&h!==0)}for(;h!==0;){for(su(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!a||e.lineIndent<o)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>o&&(o=e.lineIndent),$t(h)){s++;continue}if(e.lineIndent<o){i===ip?e.result+=tt.repeat(`
|
|
183
|
+
`,l?1+s:s):i===Ua&&l&&(e.result+=`
|
|
184
|
+
`);break}for(n?Nr(h)?(f=!0,e.result+=tt.repeat(`
|
|
185
|
+
`,l?1+s:s)):f?(f=!1,e.result+=tt.repeat(`
|
|
186
|
+
`,s+1)):s===0?l&&(e.result+=" "):e.result+=tt.repeat(`
|
|
187
|
+
`,s):e.result+=tt.repeat(`
|
|
188
|
+
`,l?1+s:s),l=!0,a=!0,s=0,t=e.position;!$t(h)&&h!==0;)h=e.input.charCodeAt(++e.position);mr(e,t,e.position,!1)}return!0}function lp(e,r){var t,n=e.tag,i=e.anchor,l=[],a,o=!1,s;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),s=e.input.charCodeAt(e.position);s!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Re(e,"tab characters must not be used in indentation")),!(s!==45||(a=e.input.charCodeAt(e.position+1),!_t(a))));){if(o=!0,e.position++,Ze(e,!0,-1)&&e.lineIndent<=r){l.push(null),s=e.input.charCodeAt(e.position);continue}if(t=e.line,cn(e,r,Vp,!1,!0),l.push(e.result),Ze(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>r)&&s!==0)Re(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return o?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=l,!0):!1}function Ox(e,r,t){var n,i,l,a,o,s,f=e.tag,c=e.anchor,h={},u=Object.create(null),d=null,p=null,y=null,b=!1,_=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),g=e.input.charCodeAt(e.position);g!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Re(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),l=e.line,(g===63||g===58)&&_t(n))g===63?(b&&(ln(e,h,u,d,p,null,a,o,s),d=p=y=null),_=!0,b=!0,i=!0):b?(b=!1,i=!0):Re(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else{if(a=e.line,o=e.lineStart,s=e.position,!cn(e,t,zp,!1,!0))break;if(e.line===l){for(g=e.input.charCodeAt(e.position);Nr(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),_t(g)||Re(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(ln(e,h,u,d,p,null,a,o,s),d=p=y=null),_=!0,b=!1,i=!1,d=e.tag,p=e.result;else if(_)Re(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=c,!0}else if(_)Re(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=c,!0}if((e.line===l||e.lineIndent>r)&&(b&&(a=e.line,o=e.lineStart,s=e.position),cn(e,r,ps,!0,i)&&(b?p=e.result:y=e.result),b||(ln(e,h,u,d,p,y,a,o,s),d=p=y=null),Ze(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===l||e.lineIndent>r)&&g!==0)Re(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return b&&ln(e,h,u,d,p,null,a,o,s),_&&(e.tag=f,e.anchor=c,e.kind="mapping",e.result=h),_}function Tx(e){var r,t=!1,n=!1,i,l,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Re(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",r=e.position,t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(l=e.input.slice(r,e.position),a=e.input.charCodeAt(++e.position)):Re(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!_t(a);)a===33&&(n?Re(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),Kp.test(i)||Re(e,"named tag handle cannot contain such characters"),n=!0,r=e.position+1)),a=e.input.charCodeAt(++e.position);l=e.input.slice(r,e.position),vx.test(l)&&Re(e,"tag suffix cannot contain flow indicator characters")}l&&!Yp.test(l)&&Re(e,"tag name cannot contain such characters: "+l);try{l=decodeURIComponent(l)}catch{Re(e,"tag name is malformed: "+l)}return t?e.tag=l:yr.call(e.tagMap,i)?e.tag=e.tagMap[i]+l:i==="!"?e.tag="!"+l:i==="!!"?e.tag="tag:yaml.org,2002:"+l:Re(e,'undeclared tag handle "'+i+'"'),!0}function Fx(e){var r,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&Re(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!_t(t)&&!un(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&Re(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function Px(e){var r,t,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!_t(n)&&!un(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&Re(e,"name of an alias node must contain at least one character"),t=e.input.slice(r,e.position),yr.call(e.anchorMap,t)||Re(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],Ze(e,!0,-1),!0}function cn(e,r,t,n,i){var l,a,o,s=1,f=!1,c=!1,h,u,d,p,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,l=a=o=ps===t||Vp===t,n&&Ze(e,!0,-1)&&(f=!0,e.lineIndent>r?s=1:e.lineIndent===r?s=0:e.lineIndent<r&&(s=-1)),s===1)for(;Tx(e)||Fx(e);)Ze(e,!0,-1)?(f=!0,o=l,e.lineIndent>r?s=1:e.lineIndent===r?s=0:e.lineIndent<r&&(s=-1)):o=!1;if(o&&(o=f||i),(s===1||ps===t)&&(fs===t||zp===t?y=r:y=r+1,b=e.position-e.lineStart,s===1?o&&(lp(e,b)||Ox(e,b,y))||Dx(e,y)?c=!0:(a&&Rx(e,y)||Cx(e,y)||kx(e,y)?c=!0:Px(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&Re(e,"alias node should not have any properties")):Ax(e,y,fs===t)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):s===0&&(c=o&&lp(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Re(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,u=e.implicitTypes.length;h<u;h+=1)if(p=e.implicitTypes[h],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(yr.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],h=0,u=d.length;h<u;h+=1)if(e.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||Re(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&Re(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Re(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function Bx(e){var r=e.position,t,n,i,l=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Ze(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(l=!0,a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!_t(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&Re(e,"directive name must not be less than one character in length");a!==0;){for(;Nr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!$t(a));break}if($t(a))break;for(t=e.position;a!==0&&!_t(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}a!==0&&su(e),yr.call(ap,n)?ap[n](e,n,i):ds(e,'unknown document directive "'+n+'"')}if(Ze(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ze(e,!0,-1)):l&&Re(e,"directives end mark is expected"),cn(e,e.lineIndent-1,ps,!1,!0),Ze(e,!0,-1),e.checkLineBreaks&&bx.test(e.input.slice(r,e.position))&&ds(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&vs(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ze(e,!0,-1));return}if(e.position<e.length-1)Re(e,"end of the stream or a document separator is expected");else return}function Jp(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
189
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new xx(e,r),n=e.indexOf("\0");for(n!==-1&&(t.position=n,Re(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)Bx(t);return t.documents}function Ix(e,r,t){r!==null&&typeof r=="object"&&typeof t>"u"&&(t=r,r=null);var n=Jp(e,t);if(typeof r!="function")return n;for(var i=0,l=n.length;i<l;i+=1)r(n[i])}function Lx(e,r){var t=Jp(e,r);if(t.length!==0){if(t.length===1)return t[0];throw new gt("expected a single document in the stream, but found more")}}var Mx=Ix,Nx=Lx,ed={loadAll:Mx,load:Nx},td=Object.prototype.toString,rd=Object.prototype.hasOwnProperty,au=65279,jx=9,pi=10,$x=13,Hx=32,qx=33,Ux=34,za=35,Gx=37,Wx=38,zx=39,Vx=42,nd=44,Kx=45,ms=58,Yx=61,Xx=62,Zx=63,Qx=64,id=91,sd=93,Jx=96,od=123,eA=124,ad=125,lt={};lt[0]="\\0";lt[7]="\\a";lt[8]="\\b";lt[9]="\\t";lt[10]="\\n";lt[11]="\\v";lt[12]="\\f";lt[13]="\\r";lt[27]="\\e";lt[34]='\\"';lt[92]="\\\\";lt[133]="\\N";lt[160]="\\_";lt[8232]="\\L";lt[8233]="\\P";var tA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],rA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function nA(e,r){var t,n,i,l,a,o,s;if(r===null)return{};for(t={},n=Object.keys(r),i=0,l=n.length;i<l;i+=1)a=n[i],o=String(r[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),s=e.compiledTypeMap.fallback[a],s&&rd.call(s.styleAliases,o)&&(o=s.styleAliases[o]),t[a]=o;return t}function iA(e){var r,t,n;if(r=e.toString(16).toUpperCase(),e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new gt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+tt.repeat("0",n-r.length)+r}var sA=1,di=2;function oA(e){this.schema=e.schema||iu,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=tt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=nA(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?di:sA,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function cp(e,r){for(var t=tt.repeat(" ",r),n=0,i=-1,l="",a,o=e.length;n<o;)i=e.indexOf(`
|
|
190
|
+
`,n),i===-1?(a=e.slice(n),n=o):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
|
191
|
+
`&&(l+=t),l+=a;return l}function Va(e,r){return`
|
|
192
|
+
`+tt.repeat(" ",e.indent*r)}function aA(e,r){var t,n,i;for(t=0,n=e.implicitTypes.length;t<n;t+=1)if(i=e.implicitTypes[t],i.resolve(r))return!0;return!1}function ys(e){return e===Hx||e===jx}function mi(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==au||65536<=e&&e<=1114111}function hp(e){return mi(e)&&e!==au&&e!==$x&&e!==pi}function fp(e,r,t){var n=hp(e),i=n&&!ys(e);return(t?n:n&&e!==nd&&e!==id&&e!==sd&&e!==od&&e!==ad)&&e!==za&&!(r===ms&&!i)||hp(r)&&!ys(r)&&e===za||r===ms&&i}function uA(e){return mi(e)&&e!==au&&!ys(e)&&e!==Kx&&e!==Zx&&e!==ms&&e!==nd&&e!==id&&e!==sd&&e!==od&&e!==ad&&e!==za&&e!==Wx&&e!==Vx&&e!==qx&&e!==eA&&e!==Yx&&e!==Xx&&e!==zx&&e!==Ux&&e!==Gx&&e!==Qx&&e!==Jx}function lA(e){return!ys(e)&&e!==ms}function ci(e,r){var t=e.charCodeAt(r),n;return t>=55296&&t<=56319&&r+1<e.length&&(n=e.charCodeAt(r+1),n>=56320&&n<=57343)?(t-55296)*1024+n-56320+65536:t}function ud(e){var r=/^\n* /;return r.test(e)}var ld=1,Ka=2,cd=3,hd=4,an=5;function cA(e,r,t,n,i,l,a,o){var s,f=0,c=null,h=!1,u=!1,d=n!==-1,p=-1,y=uA(ci(e,0))&&lA(ci(e,e.length-1));if(r||a)for(s=0;s<e.length;f>=65536?s+=2:s++){if(f=ci(e,s),!mi(f))return an;y=y&&fp(f,c,o),c=f}else{for(s=0;s<e.length;f>=65536?s+=2:s++){if(f=ci(e,s),f===pi)h=!0,d&&(u=u||s-p-1>n&&e[p+1]!==" ",p=s);else if(!mi(f))return an;y=y&&fp(f,c,o),c=f}u=u||d&&s-p-1>n&&e[p+1]!==" "}return!h&&!u?y&&!a&&!i(e)?ld:l===di?an:Ka:t>9&&ud(e)?an:a?l===di?an:Ka:u?hd:cd}function hA(e,r,t,n,i){e.dump=function(){if(r.length===0)return e.quotingType===di?'""':"''";if(!e.noCompatMode&&(tA.indexOf(r)!==-1||rA.test(r)))return e.quotingType===di?'"'+r+'"':"'"+r+"'";var l=e.indent*Math.max(1,t),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-l),o=n||e.flowLevel>-1&&t>=e.flowLevel;function s(f){return aA(e,f)}switch(cA(r,o,e.indent,a,s,e.quotingType,e.forceQuotes&&!n,i)){case ld:return r;case Ka:return"'"+r.replace(/'/g,"''")+"'";case cd:return"|"+pp(r,e.indent)+dp(cp(r,l));case hd:return">"+pp(r,e.indent)+dp(cp(fA(r,a),l));case an:return'"'+pA(r)+'"';default:throw new gt("impossible error: invalid scalar style")}}()}function pp(e,r){var t=ud(e)?String(r):"",n=e[e.length-1]===`
|
|
193
|
+
`,i=n&&(e[e.length-2]===`
|
|
194
|
+
`||e===`
|
|
195
|
+
`),l=i?"+":n?"":"-";return t+l+`
|
|
196
|
+
`}function dp(e){return e[e.length-1]===`
|
|
197
|
+
`?e.slice(0,-1):e}function fA(e,r){for(var t=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
|
|
198
|
+
`);return f=f!==-1?f:e.length,t.lastIndex=f,mp(e.slice(0,f),r)}(),i=e[0]===`
|
|
199
|
+
`||e[0]===" ",l,a;a=t.exec(e);){var o=a[1],s=a[2];l=s[0]===" ",n+=o+(!i&&!l&&s!==""?`
|
|
200
|
+
`:"")+mp(s,r),i=l}return n}function mp(e,r){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,n,i=0,l,a=0,o=0,s="";n=t.exec(e);)o=n.index,o-i>r&&(l=a>i?a:o,s+=`
|
|
201
|
+
`+e.slice(i,l),i=l+1),a=o;return s+=`
|
|
202
|
+
`,e.length-i>r&&a>i?s+=e.slice(i,a)+`
|
|
203
|
+
`+e.slice(a+1):s+=e.slice(i),s.slice(1)}function pA(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=ci(e,i),n=lt[t],!n&&mi(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||iA(t);return r}function dA(e,r,t){var n="",i=e.tag,l,a,o;for(l=0,a=t.length;l<a;l+=1)o=t[l],e.replacer&&(o=e.replacer.call(t,String(l),o)),(ir(e,r,o,!1,!1)||typeof o>"u"&&ir(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function yp(e,r,t,n){var i="",l=e.tag,a,o,s;for(a=0,o=t.length;a<o;a+=1)s=t[a],e.replacer&&(s=e.replacer.call(t,String(a),s)),(ir(e,r+1,s,!0,!0,!1,!0)||typeof s>"u"&&ir(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Va(e,r)),e.dump&&pi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=l,e.dump=i||"[]"}function mA(e,r,t){var n="",i=e.tag,l=Object.keys(t),a,o,s,f,c;for(a=0,o=l.length;a<o;a+=1)c="",n!==""&&(c+=", "),e.condenseFlow&&(c+='"'),s=l[a],f=t[s],e.replacer&&(f=e.replacer.call(t,s,f)),ir(e,r,s,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ir(e,r,f,!1,!1)&&(c+=e.dump,n+=c));e.tag=i,e.dump="{"+n+"}"}function yA(e,r,t,n){var i="",l=e.tag,a=Object.keys(t),o,s,f,c,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new gt("sortKeys must be a boolean or a function");for(o=0,s=a.length;o<s;o+=1)u="",(!n||i!=="")&&(u+=Va(e,r)),f=a[o],c=t[f],e.replacer&&(c=e.replacer.call(t,f,c)),ir(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&pi===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=Va(e,r)),ir(e,r+1,c,!0,h)&&(e.dump&&pi===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=l,e.dump=i||"{}"}function gp(e,r,t){var n,i,l,a,o,s;for(i=t?e.explicitTypes:e.implicitTypes,l=0,a=i.length;l<a;l+=1)if(o=i[l],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof r=="object"&&r instanceof o.instanceOf)&&(!o.predicate||o.predicate(r))){if(t?o.multi&&o.representName?e.tag=o.representName(r):e.tag=o.tag:e.tag="?",o.represent){if(s=e.styleMap[o.tag]||o.defaultStyle,td.call(o.represent)==="[object Function]")n=o.represent(r,s);else if(rd.call(o.represent,s))n=o.represent[s](r,s);else throw new gt("!<"+o.tag+'> tag resolver accepts not "'+s+'" style');e.dump=n}return!0}return!1}function ir(e,r,t,n,i,l,a){e.tag=null,e.dump=t,gp(e,t,!1)||gp(e,t,!0);var o=td.call(e.dump),s=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var c=o==="[object Object]"||o==="[object Array]",h,u;if(c&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(c&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(yA(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(mA(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(o==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?yp(e,r-1,e.dump,i):yp(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(dA(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&hA(e,e.dump,r,l,s);else{if(o==="[object Undefined]"||e.skipInvalid)return!1;throw new gt("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function gA(e,r){var t=[],n=[],i,l;for(Ya(e,t,n),i=0,l=n.length;i<l;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(l)}function Ya(e,r,t){var n,i,l;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,l=e.length;i<l;i+=1)Ya(e[i],r,t);else for(n=Object.keys(e),i=0,l=n.length;i<l;i+=1)Ya(e[n[i]],r,t)}function bA(e,r){r=r||{};var t=new oA(r);t.noRefs||gA(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),ir(t,0,n,!0,!0)?t.dump+`
|
|
204
|
+
`:""}var vA=bA,_A={dump:vA};function uu(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var wA=ot,EA=kp,SA=Tp,xA=Lp,AA=Mp,CA=iu,kA=ed.load,DA=ed.loadAll,RA=_A.dump,OA=gt,TA={binary:qp,float:Ip,map:Op,null:Fp,pairs:Gp,set:Wp,timestamp:$p,bool:Pp,int:Bp,merge:Hp,omap:Up,seq:Rp,str:Dp},FA=uu("safeLoad","load"),PA=uu("safeLoadAll","loadAll"),BA=uu("safeDump","dump"),IA={Type:wA,Schema:EA,FAILSAFE_SCHEMA:SA,JSON_SCHEMA:xA,CORE_SCHEMA:AA,DEFAULT_SCHEMA:CA,load:kA,loadAll:DA,dump:RA,YAMLException:OA,types:TA,safeLoad:FA,safeLoadAll:PA,safeDump:BA},LA=IA,MA=Ge(mS()),NA="turbo.json",Ga={};function jA(e){try{if(hi.default.existsSync(Mr.default.join(e,"pnpm-workspace.yaml"))){let r=LA.load(hi.default.readFileSync(Mr.default.join(e,"pnpm-workspace.yaml"),"utf8"));return(r==null?void 0:r.packages)||[]}else{let r=JSON.parse(hi.default.readFileSync(Mr.default.join(e,"package.json"),"utf8"));return r!=null&&r.workspaces?"packages"in(r==null?void 0:r.workspaces)?r.workspaces.packages||[]:(r==null?void 0:r.workspaces)||[]:[]}}catch{return[]}}function lu(e,r){var t;let n=li(e,r),i=[],l=(t=r==null?void 0:r.cache)!=null?t:!0;if(l&&e&&Ga[e])return Ga[e];if(n){let a=jA(n).map(o=>`${o}/turbo.json`);(0,MA.sync)([NA,...a],{cwd:n,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(o=>Mr.default.join(n,o)).forEach(o=>{try{let s=hi.default.readFileSync(o,"utf8"),f=$a.parse(s),c=Mr.default.dirname(o)===n;if(c){if("extends"in f)return}else if(!("extends"in f))return;i.push({config:f,turboConfigPath:o,workspacePath:Mr.default.dirname(o),isRootConfig:c})}catch(s){console.warn(s)}})}return l&&e&&(Ga[e]=i),i}var R5=Ue(D5());async function Yo({root:e}){let r=e||process.cwd(),t=li(r);if(!t)qe.error("Unable to infer repository root - override with --root");else try{return(0,R5.getWorkspaceDetails)({root:t})}catch{qe.error(`Unable to determine workspace details. Make sure "${e}" is the root, or add "packageManager" to "package.json" or ensure a lockfile is present.`)}process.exit(1)}var M5=Ue(require("chalk"));var T5=Ue(require("fs-extra")),$h=Ue(require("node-plop")),Ki=Ue(require("path")),F5=Ue(require("inquirer"));var Hh=Ki.default.join("generators","config.js"),TN=[Hh,"plopfile.js","plopfile.cjs","plopfile.mjs"];function P5({project:e,configPath:r}){if(r){let t=(0,$h.default)(r,{destBasePath:e.paths.root,force:!1});return O5({plop:t,project:e})}for(let t of TN){let n=Ki.default.join(e.paths.root,t);try{let i=(0,$h.default)(n,{destBasePath:e.paths.root,force:!1});return O5({plop:i,project:e})}catch{}}}function B5({project:e}){let r=P5({project:e});if(!r)return[];let n=r.getGeneratorList().map(o=>r.getGenerator(o.name)),i={};n.forEach(o=>{let s=o,f=e.workspaceData.workspaces.find(c=>s.basePath.includes(c.paths.root));f?(i[f.name]||(i[f.name]=[]),i[f.name].push(s)):(i.root||(i.root=[]),i.root.push(s))});let l=[],a=void 0;if(Object.keys(i).forEach(o=>{o!==a&&l.push(new F5.default.Separator(o)),l.push(...i[o])}),!l.length)throw new Error("No generators found");return l}function FN({project:e,generator:r}){let t={root:e.paths.root,workspace:r.basePath?si({cwd:r.basePath,target:"package.json"}):void 0},n={};try{n=lu(r.basePath)}catch{}return{turbo:{paths:t,configs:n}}}function O5({plop:e,project:r}){return r.workspaceData.workspaces.forEach(t=>{T5.default.existsSync(Ki.default.join(t.paths.root,Hh))&&e.load(Ki.default.join(t.paths.root,Hh),{destBasePath:t.paths.root})}),e}async function I5({project:e,generator:r,bypassArgs:t}){let n=P5({project:e});if(!n)throw new Error("Unable to load generators");let i=n.getGenerator(r);if(!i)throw new Error(`Generator ${r} not found`);let l=await i.runPrompts(t),a=await i.runActions({...l,...FN({project:e,generator:i})},{onComment:o=>{console.info(o)}});if(a.failures&&a.failures.length>0)throw a.failures.forEach(o=>{qe.error(`Error - ${o.error}. Unable to ${o.type} to "${o.path}"`)}),new Error(`Failed to run "${r}" generator`);a.changes&&a.changes.length>0&&(qe.info("Changes made:"),a.changes.forEach(o=>{o.path&&qe.item(`${o.path} (${o.type})`)}))}var Xo=Ue(require("inquirer"));async function L5({generators:e,generator:r}){return r&&e.find(n=>!(n instanceof Xo.default.Separator)&&n.name===r)?{selectedGenerator:r}:await Xo.default.prompt({type:"list",name:"selectedGenerator",default:r,when:!r,message:"Select generator to run?",choices:e.map(n=>n instanceof Xo.default.Separator?n:{name:n.description?` ${n.name}: ${n.description}`:` ${n.name}`,value:n.name})})}async function qh({generator:e,project:r,opts:t}){let n=B5({project:r});if(!n.length){qe.error("No custom generators found."),console.log(),qe.dimmed("Visit https://turbo.build/repo/docs/generators to get started.");return}let{selectedGenerator:i}=await L5({generators:n,generator:e});await I5({project:r,generator:i,bypassArgs:t.args}),console.log(),console.log(M5.default.bold(qe.turboGradient(">>> Success!")))}var zh=Ue(require("path")),ea=Ue(require("fs-extra")),K5=Ue(require("chalk"));var H5=Ue(require("fs-extra")),Yi=Ue(require("path")),Zt=Ue(require("inquirer")),q5=require("minimatch"),Wh=Ue(require("validate-npm-package-name"));var Uh=Ue(require("path"));var N5=Ue(require("path"));function j5({project:e}){let t=e.workspaceData.workspaces.map(i=>N5.default.relative(e.paths.root,i.paths.root)),n=new Set;return e.workspaceData.globs.forEach(i=>{if(!t.includes(i)){if(i.startsWith("!"))return;{let a=i.split("/")[0];n.add(a)}}}),Array.from(n)}function Gh({project:e,workspace:r}){return Uh.default.relative(e.paths.root,r.paths.root).split(Uh.default.sep)[0]}function Zo({project:e}){let r=j5({project:e}),t=r.includes("apps"),n=r.includes("packages"),i={},l=[];return e.workspaceData.workspaces.forEach(a=>{let o=Gh({project:e,workspace:a});o!=="apps"&&l.push(a),i[o]||(i[o]=[]),i[o].push(a)}),{hasRootApps:t,hasRootPackages:n,workspacesByGroup:i,nonAppWorkspaces:l}}var $5=Ue(require("inquirer"));function Qo({project:e,what:r,showAllDependencies:t}){let n=Zo({project:e}),i=[],l=e.workspaceData.workspaces;t||(r==="app"&&n.hasRootApps?l=n.workspacesByGroup.apps:r==="package"&&n.nonAppWorkspaces.length>0&&(l=n.nonAppWorkspaces));let a;return l.forEach(o=>{let s=Gh({project:e,workspace:o});s!==a&&i.push(new $5.default.Separator(s)),a=s,i.push(o)}),i}async function U5({override:e,suggestion:r,what:t}){let{validForNewPackages:n}=(0,Wh.default)(e||"");return e&&n?{answer:e}:Zt.default.prompt({type:"input",name:"answer",default:r,validate:i=>{let{validForNewPackages:l}=(0,Wh.default)(i);return l||`Invalid ${t} name`},message:`What is the name of the ${t}?`})}async function G5({override:e}){return e?{answer:e}:Zt.default.prompt({type:"list",name:"answer",message:"What type of workspace should be added?",choices:[{name:"app",value:"app"},{name:"package",value:"package"}]})}async function W5({what:e,name:r,destination:t,project:n}){let i=r.includes("/")?r.split("/")[1]:r;if(t){let{valid:s,root:f}=is(t);if(s)return{absolute:f,relative:Yi.default.relative(n.paths.root,f)}}let l,a=Zo({project:n});e==="app"&&a.hasRootApps?l=`${n.paths.root}/apps/${i}`:e==="package"&&a.hasRootPackages&&(l=`${n.paths.root}/packages/${i}`);let{answer:o}=await Zt.default.prompt({type:"input",name:"answer",message:`Where should "${r}" be added?`,default:l?Yi.default.relative(n.paths.root,l):void 0,validate:s=>{let f=Yi.default.join(n.paths.root,s),{valid:c,error:h}=is(f),u=n.workspaceData.globs.some(d=>(0,q5.minimatch)(s,d));return c&&u?!0:u?h:`${s} is not a valid workspace location`}});return{absolute:Yi.default.join(n.paths.root,o),relative:o}}async function z5({workspaces:e,name:r}){return await Zt.default.prompt({type:"list",name:"answer",loop:!1,pageSize:25,message:`Which workspace should "${r}" start from?`,choices:e.map(n=>n instanceof Zt.default.Separator?n:{name:` ${n.name}`,value:n})})}async function V5({name:e,project:r,source:t,showAllDependencies:n}){let i={dependencies:{},devDependencies:{},peerDependencies:{},optionalDependencies:{}},{answer:l}=await BN({message:`Add workspace dependencies to "${e}"?`});if(!l)return i;let{answer:a}=await Zt.default.prompt({type:"checkbox",name:"answer",message:`Select all dependencies types to modify for "${e}"`,loop:!1,choices:[{name:"dependencies",value:"dependencies"},{name:"devDependencies",value:"devDependencies"},{name:"peerDependencies",value:"peerDependencies"},{name:"optionalDependencies",value:"optionalDependencies"}]}),o=Qo({project:r,what:"package",showAllDependencies:n}),s=t?H5.default.readJsonSync(t.paths.packageJson):void 0;for(let f of a){let{answer:c}=await Zt.default.prompt({type:"checkbox",name:"answer",default:s&&Object.keys((s==null?void 0:s[f])||{}),pageSize:15,message:`Which packages should be added as ${f} to "${e}?`,loop:!1,choices:o.map(u=>u instanceof Zt.default.Separator?u:{name:` ${u.name}`,value:u.name})}),h=(s==null?void 0:s[f])||{};if(Object.keys(h).length){let u=new Set(Object.keys(h));c.forEach(d=>{u.has(d)||(h[d]=r.packageManager==="pnpm"?"workspace:*":"*")}),i[f]=h}else i[f]=c.reduce((u,d)=>({...u,[d]:r.packageManager==="pnpm"?"workspace:*":"*"}),{})}return i}async function BN({message:e}){return await Zt.default.prompt({type:"confirm",name:"answer",message:e})}async function Jo({project:e,opts:r}){var s,f;let t,{answer:n}=await G5({override:r.what}),i=((s=r.examplePath)==null?void 0:s.split("/").pop())||((f=r.example)==null?void 0:f.split("/").pop())||void 0,{answer:l}=await U5({override:r.name,what:n,suggestion:i});if(r.copy&&!r.example){let{answer:c}=await z5({workspaces:Qo({project:e,what:n}),name:l});t=c}let a=await W5({what:n,name:l,project:e,destination:r.destination}),o=await V5({name:l,project:e,source:t,showAllDependencies:r.showAllDependencies});return{what:n,name:l,location:a,source:t,dependencies:o}}async function Vh({project:e,opts:r}){let{name:t,location:n,dependencies:i}=await Jo({project:e,opts:r}),l={name:t,version:"0.0.0",private:!0,scripts:{build:"turbo build"}};Object.keys(i).forEach(a=>{let o=i[a];o&&Object.keys(o).length>0&&(l[a]=o)}),ea.default.mkdirSync(n.absolute,{recursive:!0}),ea.default.writeFileSync(zh.default.join(n.absolute,"package.json"),JSON.stringify(l,null,2)),ea.default.writeFileSync(zh.default.join(n.absolute,"README.md"),`# \`${t}\``),console.log(),console.log(`${K5.default.bold(qe.turboGradient(">>> Success!"))} Created ${t} at "${n.relative}"`)}var Kh=Ue(require("path")),Tr=Ue(require("fs-extra")),Y5=Ue(require("chalk"));async function Yh({project:e,opts:r}){let{name:t,what:n,location:i,source:l,dependencies:a}=await Jo({project:e,opts:r}),o=Kh.default.join(i.absolute,"package.json");if(r.example){console.log(),qe.warn("Some manual modifications may be required."),qe.dimmed(`This ${n} may require local dependencies or a different package manager than what is available in this repo`),await Aa({appPath:i.absolute,example:r.example,examplePath:r.examplePath});try{if(Tr.default.existsSync(o)){if((await Tr.default.readJSON(o)).workspaces)throw new Error("New workspace root detected - unexpected 'workspaces' field in package.json")}else throw new Error("New workspace is missing a package.json file");if(Tr.default.existsSync(Kh.default.join(i.absolute,"pnpm-workspace.yaml")))throw new Error("New workspace root detected - unexpected pnpm-workspace.yaml")}catch(f){let c="UNKNOWN_ERROR";f instanceof Error&&(c=f.message),qe.error(c),await Tr.default.rm(i.absolute,{recursive:!0,force:!0});return}}else if(l){let f=async(h,u)=>!h.includes("node_modules"),c=qe.turboLoader(`Creating "${t}" from "${l.name}"...`);c.start(),await Tr.default.copy(l.paths.root,i.absolute,{filter:f}),c.stop()}let s=await Tr.default.readJSON(o);s.name=t,Object.keys(a).forEach(f=>{let c=a[f];c&&Object.keys(c).length>0&&(s[f]=c)}),await Tr.default.writeJSON(o,s,{spaces:2}),console.log(),console.log(`${Y5.default.bold(qe.turboGradient(">>> Success!"))} Created ${t} at "${i.relative}"`)}async function Xh(e){let r=await Yo(e);console.log();let t={project:r,opts:e};e.copy?(e.example?qe.info(`Copy a remote workspace from ${e.example}`):qe.info(`Copy an existing workspace from ${r.name}`),console.log(),await Yh(t)):(qe.info(`Add an empty workspace to ${r.name}`),console.log(),await Vh(t))}async function Zh(e,r){let t=await Yo(r);console.log(),qe.info(`Modify ${t.name} using custom generators`),console.log(),await qh({generator:e,project:t,opts:r})}var ta=new ut.Command;ta.name(Qh.default.bold(qe.turboGradient("@turbo/gen"))).description("Extend your Turborepo").version(Xn.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command");ta.command("add").aliases(["a"]).description("Add a new package or app to your project").addOption(new ut.Option("-n, --name <workspace-name>","Name for the new workspace")).addOption(new ut.Option("-b, --empty","Generate an empty workspace").conflicts("copy").default(!0)).addOption(new ut.Option("-c, --copy","Generate a workspace using an existing workspace as a template").conflicts("empty")).addOption(new ut.Option("-d, --destination <dir>","Where the new workspace should be created")).addOption(new ut.Option("-w, --what <type>","The type of workspace to create").choices(["app","package"])).addOption(new ut.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new ut.Option("-e, --example [github-url]","An example package to add. You can use a GitHub URL with any branch and/or subdirectory.").implies({copy:!0})).addOption(new ut.Option("-p, --example-path <path-to-example>",`In a rare case, your GitHub URL might contain a branch name with
|
|
205
|
+
a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
|
|
206
|
+
In this case, you must specify the path to the example separately:
|
|
207
|
+
--example-path foo/bar
|
|
208
|
+
`).implies({copy:!0})).addOption(new ut.Option("--show-all-dependencies","Do not filter available dependencies by the workspace type").default(!1)).action(Xh);ta.command("generate").aliases(["g","gen"]).description("Run custom generators").addArgument(new ut.Argument("[generator-name]","The name of the generator to run")).addOption(new ut.Option("-c, --config <config>","Generator configuration file").default("generators/config.js")).addOption(new ut.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new ut.Option("-a, --args <args...>","Arguments passed directly to generator").default([])).action(Zh);ta.parseAsync().then(Xi).catch(async e=>{console.log(),e.command?qe.error(`${Qh.default.bold(e.command)} has failed.`):(qe.error("Unexpected error. Please report it as a bug:"),console.log(e)),console.log(),await Xi(),process.exit(1)});
|
|
209
|
+
/*!
|
|
210
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
211
|
+
*
|
|
212
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
213
|
+
* Licensed under the MIT License.
|
|
214
|
+
*/
|
|
215
|
+
/*!
|
|
216
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
217
|
+
*
|
|
218
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
219
|
+
* Licensed under the MIT License.
|
|
220
|
+
*/
|
|
221
|
+
/*!
|
|
222
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
223
|
+
*
|
|
224
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
225
|
+
* Released under the MIT License.
|
|
226
|
+
*/
|
|
227
|
+
/*!
|
|
228
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
229
|
+
*
|
|
230
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
231
|
+
* Released under the MIT License.
|
|
232
|
+
*/
|
|
233
|
+
/*!
|
|
234
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
235
|
+
*
|
|
236
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
237
|
+
* Released under the MIT License.
|
|
238
|
+
*/
|
|
239
|
+
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
240
|
+
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
241
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
242
|
+
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
243
|
+
/*! Bundled license information:
|
|
244
|
+
|
|
245
|
+
is-extglob/index.js:
|
|
246
|
+
(*!
|
|
247
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
248
|
+
*
|
|
249
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
250
|
+
* Licensed under the MIT License.
|
|
251
|
+
*)
|
|
252
|
+
|
|
253
|
+
is-glob/index.js:
|
|
254
|
+
(*!
|
|
255
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
256
|
+
*
|
|
257
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
258
|
+
* Released under the MIT License.
|
|
259
|
+
*)
|
|
260
|
+
|
|
261
|
+
is-number/index.js:
|
|
262
|
+
(*!
|
|
263
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
264
|
+
*
|
|
265
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
266
|
+
* Released under the MIT License.
|
|
267
|
+
*)
|
|
268
|
+
|
|
269
|
+
to-regex-range/index.js:
|
|
270
|
+
(*!
|
|
271
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
272
|
+
*
|
|
273
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
274
|
+
* Released under the MIT License.
|
|
275
|
+
*)
|
|
276
|
+
|
|
277
|
+
fill-range/index.js:
|
|
278
|
+
(*!
|
|
279
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
280
|
+
*
|
|
281
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
282
|
+
* Licensed under the MIT License.
|
|
283
|
+
*)
|
|
284
|
+
|
|
285
|
+
queue-microtask/index.js:
|
|
286
|
+
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
287
|
+
|
|
288
|
+
run-parallel/index.js:
|
|
289
|
+
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
290
|
+
*/
|