@tsmodule/tsmodule 31.1.0 → 31.2.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/dist/commands/build/index.js +25 -290
- package/dist/commands/build/lib/emitTsDeclarations.js +12 -278
- package/dist/commands/create/index.js +15 -11
- package/dist/commands/dev/index.js +27 -292
- package/dist/commands/execute/index.js +6 -6
- package/dist/commands/normalize/index.js +22 -279
- package/dist/commands/normalize/lib/typescriptApi.js +45 -276
- package/dist/index.js +49 -314
- package/dist/utils/cwd.js +5 -1
- package/package.json +15 -13
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
|
|
2
2
|
await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
|
|
3
3
|
|
|
4
|
-
var Ma=Object.create;var dr=Object.defineProperty;var La=Object.getOwnPropertyDescriptor;var ja=Object.getOwnPropertyNames;var Ua=Object.getPrototypeOf,Wa=Object.prototype.hasOwnProperty;var $a=e=>dr(e,"__esModule",{value:!0});var E=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Ga=(e,t)=>()=>(e&&(t=e(e=0)),t);var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ya=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ja(t))!Wa.call(e,i)&&(r||i!=="default")&&dr(e,i,{get:()=>t[i],enumerable:!(n=La(t,i))||n.enumerable});return e},Be=(e,t)=>Ya($a(dr(e!=null?Ma(Ua(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var a=Ga(()=>{});var jn=m((fd,xr)=>{"use strict";a();var Ln=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};xr.exports=Ln;xr.exports.default=Ln});var Wn=m((ld,Rt)=>{"use strict";a();var hu=jn(),bt=new WeakMap,Un=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(bt.set(o,++n),n===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return hu(o,e),bt.set(o,n),o};Rt.exports=Un;Rt.exports.default=Un;Rt.exports.callCount=e=>{if(!bt.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return bt.get(e)}});var $n=m((cd,Tt)=>{a();Tt.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Tt.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Tt.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Jn=m((hd,je)=>{a();var F=global.process,Ee=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"};Ee(F)?(Gn=E("assert"),Me=$n(),Yn=/^win/i.test(F.platform),Ze=E("events"),typeof Ze!="function"&&(Ze=Ze.EventEmitter),F.__signal_exit_emitter__?I=F.__signal_exit_emitter__:(I=F.__signal_exit_emitter__=new Ze,I.count=0,I.emitted={}),I.infinite||(I.setMaxListeners(1/0),I.infinite=!0),je.exports=function(e,t){if(!Ee(global.process))return function(){};Gn.equal(typeof e,"function","a callback must be provided for exit handler"),Le===!1&&vr();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){I.removeListener(r,e),I.listeners("exit").length===0&&I.listeners("afterexit").length===0&&Ot()};return I.on(r,e),n},Ot=function(){!Le||!Ee(global.process)||(Le=!1,Me.forEach(function(t){try{F.removeListener(t,Ct[t])}catch{}}),F.emit=At,F.reallyExit=wr,I.count-=1)},je.exports.unload=Ot,be=function(t,r,n){I.emitted[t]||(I.emitted[t]=!0,I.emit(t,r,n))},Ct={},Me.forEach(function(e){Ct[e]=function(){if(!!Ee(global.process)){var r=F.listeners(e);r.length===I.count&&(Ot(),be("exit",null,e),be("afterexit",null,e),Yn&&e==="SIGHUP"&&(e="SIGINT"),F.kill(F.pid,e))}}}),je.exports.signals=function(){return Me},Le=!1,vr=function(){Le||!Ee(global.process)||(Le=!0,I.count+=1,Me=Me.filter(function(t){try{return F.on(t,Ct[t]),!0}catch{return!1}}),F.emit=Vn,F.reallyExit=Hn)},je.exports.load=vr,wr=F.reallyExit,Hn=function(t){!Ee(global.process)||(F.exitCode=t||0,be("exit",F.exitCode,null),be("afterexit",F.exitCode,null),wr.call(F,F.exitCode))},At=F.emit,Vn=function(t,r){if(t==="exit"&&Ee(global.process)){r!==void 0&&(F.exitCode=r);var n=At.apply(this,arguments);return be("exit",F.exitCode,null),be("afterexit",F.exitCode,null),n}else return At.apply(this,arguments)}):je.exports=function(){return function(){}};var Gn,Me,Yn,Ze,I,Ot,be,Ct,Le,vr,wr,Hn,At,Vn});var zn=m((gd,yu)=>{yu.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var ri=m((xd,ti)=>{"use strict";a();var Ft=Object.assign({},zn()),ei=Object.keys(Ft);Object.defineProperty(Ft,"random",{get(){let e=Math.floor(Math.random()*ei.length),t=ei[e];return Ft[t]}});ti.exports=Ft});var ni=m((Od,Pt)=>{a();var xu=function(){"use strict";function e(s,u,f,p){var l;typeof u=="object"&&(f=u.depth,p=u.prototype,l=u.filter,u=u.circular);var h=[],y=[],d=typeof Buffer<"u";typeof u>"u"&&(u=!0),typeof f>"u"&&(f=1/0);function _(g,v){if(g===null)return null;if(v==0)return g;var w,D;if(typeof g!="object")return g;if(e.__isArray(g))w=[];else if(e.__isRegExp(g))w=new RegExp(g.source,o(g)),g.lastIndex&&(w.lastIndex=g.lastIndex);else if(e.__isDate(g))w=new Date(g.getTime());else{if(d&&Buffer.isBuffer(g))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(g.length):w=new Buffer(g.length),g.copy(w),w;typeof p>"u"?(D=Object.getPrototypeOf(g),w=Object.create(D)):(w=Object.create(p),D=p)}if(u){var le=h.indexOf(g);if(le!=-1)return y[le];h.push(g),y.push(w)}for(var ce in g){var ke;D&&(ke=Object.getOwnPropertyDescriptor(D,ce)),!(ke&&ke.set==null)&&(w[ce]=_(g[ce],v-1))}return w}return _(s,f)}e.clonePrototype=function(u){if(u===null)return null;var f=function(){};return f.prototype=u,new f};function t(s){return Object.prototype.toString.call(s)}e.__objToStr=t;function r(s){return typeof s=="object"&&t(s)==="[object Date]"}e.__isDate=r;function n(s){return typeof s=="object"&&t(s)==="[object Array]"}e.__isArray=n;function i(s){return typeof s=="object"&&t(s)==="[object RegExp]"}e.__isRegExp=i;function o(s){var u="";return s.global&&(u+="g"),s.ignoreCase&&(u+="i"),s.multiline&&(u+="m"),u}return e.__getRegExpFlags=o,e}();typeof Pt=="object"&&Pt.exports&&(Pt.exports=xu)});var oi=m((Cd,ii)=>{a();var vu=ni();ii.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=vu(t[r]))}),e}});var ai=m((Ad,si)=>{a();si.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 ci=m((Dd,Rr)=>{"use strict";a();var wu=oi(),tt=ai(),fi={nul:0,control:0};Rr.exports=function(t){return li(t,fi)};Rr.exports.config=function(e){return e=wu(e||{},fi),function(r){return li(r,e)}};function li(e,t){if(typeof e!="string")return ui(e,t);for(var r=0,n=0;n<e.length;n++){var i=ui(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function ui(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:Su(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 Su(e){var t=0,r=tt.length-1,n;if(e<tt[0][0]||e>tt[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>tt[n][1])t=n+1;else if(e<tt[n][0])r=n-1;else return!0;return!1}});var Or=m((Pd,hi)=>{a();hi.exports=E("stream")});var mi=m((Nd,yi)=>{"use strict";a();function di(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Eu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?di(Object(r),!0).forEach(function(n){bu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):di(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ru(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Tu(e,t,r){return t&&pi(e.prototype,t),r&&pi(e,r),e}var Ou=E("buffer"),Nt=Ou.Buffer,Cu=E("util"),Cr=Cu.inspect,Au=Cr&&Cr.custom||"inspect";function Du(e,t,r){Nt.prototype.copy.call(e,t,r)}yi.exports=function(){function e(){Ru(this,e),this.head=null,this.tail=null,this.length=0}return Tu(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Nt.alloc(0);for(var n=Nt.allocUnsafe(r>>>0),i=this.head,o=0;i;)Du(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,o=n.data;for(r-=o.length;n=n.next;){var s=n.data,u=r>s.length?s.length:r;if(u===s.length?o+=s:o+=s.slice(0,r),r-=u,r===0){u===s.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(u));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=Nt.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var s=i.data,u=r>s.length?s.length:r;if(s.copy(n,n.length-r,0,u),r-=u,r===0){u===s.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(u));break}++o}return this.length-=o,n}},{key:Au,value:function(r,n){return Cr(this,Eu({},n,{depth:0,customInspect:!1}))}}]),e}()});var Dr=m((kd,gi)=>{"use strict";a();function Fu(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Ar,this,e)):process.nextTick(Ar,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(kt,r):(r._writableState.errorEmitted=!0,process.nextTick(_i,r,o)):process.nextTick(_i,r,o):t?(process.nextTick(kt,r),t(o)):process.nextTick(kt,r)}),this)}function _i(e,t){Ar(e,t),kt(e)}function kt(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Pu(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ar(e,t){e.emit("error",t)}function Nu(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}gi.exports={destroy:Fu,undestroy:Pu,errorOrDestroy:Nu}});var he=m((Bd,wi)=>{"use strict";a();var vi={};function ee(e,t,r){r||(r=Error);function n(o,s,u){return typeof t=="string"?t:t(o,s,u)}class i extends r{constructor(s,u,f){super(n(s,u,f))}}i.prototype.name=r.name,i.prototype.code=e,vi[e]=i}function xi(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function ku(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function Bu(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function qu(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}ee("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);ee("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&ku(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(Bu(e," argument"))i=`The ${e} ${n} ${xi(t,"type")}`;else{let o=qu(e,".")?"property":"argument";i=`The "${e}" ${o} ${n} ${xi(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);ee("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ee("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});ee("ERR_STREAM_PREMATURE_CLOSE","Premature close");ee("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});ee("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ee("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ee("ERR_STREAM_WRITE_AFTER_END","write after end");ee("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ee("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);ee("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");wi.exports.codes=vi});var Fr=m((qd,Si)=>{"use strict";a();var Iu=he().codes.ERR_INVALID_OPT_VALUE;function Mu(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Lu(e,t,r,n){var i=Mu(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new Iu(o,i)}return Math.floor(i)}return e.objectMode?16:16*1024}Si.exports={getHighWaterMark:Lu}});var Ei=m((Id,Pr)=>{a();typeof Object.create=="function"?Pr.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Pr.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var Re=m((Md,kr)=>{a();try{if(Nr=E("util"),typeof Nr.inherits!="function")throw"";kr.exports=Nr.inherits}catch{kr.exports=Ei()}var Nr});var Ri=m((Ld,bi)=>{a();bi.exports=E("util").deprecate});var Ir=m((jd,Fi)=>{"use strict";a();Fi.exports=N;function Oi(e){var t=this;this.next=null,this.entry=null,this.finish=function(){df(t,e)}}var We;N.WritableState=nt;var ju={deprecate:Ri()},Ci=Or(),qt=E("buffer").Buffer,Uu=global.Uint8Array||function(){};function Wu(e){return qt.from(e)}function $u(e){return qt.isBuffer(e)||e instanceof Uu}var qr=Dr(),Gu=Fr(),Yu=Gu.getHighWaterMark,de=he().codes,Hu=de.ERR_INVALID_ARG_TYPE,Vu=de.ERR_METHOD_NOT_IMPLEMENTED,Ju=de.ERR_MULTIPLE_CALLBACK,Ku=de.ERR_STREAM_CANNOT_PIPE,Xu=de.ERR_STREAM_DESTROYED,Qu=de.ERR_STREAM_NULL_VALUES,Zu=de.ERR_STREAM_WRITE_AFTER_END,zu=de.ERR_UNKNOWN_ENCODING,$e=qr.errorOrDestroy;Re()(N,Ci);function ef(){}function nt(e,t,r){We=We||Te(),e=e||{},typeof r!="boolean"&&(r=t instanceof We),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=Yu(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){uf(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Oi(this)}nt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(nt.prototype,"buffer",{get:ju.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Bt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Bt=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(t){return Bt.call(this,t)?!0:this!==N?!1:t&&t._writableState instanceof nt}})):Bt=function(t){return t instanceof this};function N(e){We=We||Te();var t=this instanceof We;if(!t&&!Bt.call(N,this))return new N(e);this._writableState=new nt(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Ci.call(this)}N.prototype.pipe=function(){$e(this,new Ku)};function tf(e,t){var r=new Zu;$e(e,r),process.nextTick(t,r)}function rf(e,t,r,n){var i;return r===null?i=new Qu:typeof r!="string"&&!t.objectMode&&(i=new Hu("chunk",["string","Buffer"],r)),i?($e(e,i),process.nextTick(n,i),!1):!0}N.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&$u(e);return o&&!qt.isBuffer(e)&&(e=Wu(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=ef),n.ending?tf(this,r):(o||rf(this,n,e,r))&&(n.pendingcb++,i=of(this,n,o,e,t,r)),i};N.prototype.cork=function(){this._writableState.corked++};N.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Ai(this,e))};N.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new zu(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function nf(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=qt.from(t,r)),t}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function of(e,t,r,n,i,o){if(!r){var s=nf(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var u=t.objectMode?1:n.length;t.length+=u;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},p?p.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Br(e,t,!1,u,n,i,o);return f}function Br(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Xu("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function sf(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(rt,e,t),e._writableState.errorEmitted=!0,$e(e,n)):(i(n),e._writableState.errorEmitted=!0,$e(e,n),rt(e,t))}function af(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function uf(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new Ju;if(af(r),t)sf(e,r,n,t,i);else{var o=Di(r)||e.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ai(e,r),n?process.nextTick(Ti,e,r,o,i):Ti(e,r,o,i)}}function Ti(e,t,r,n){r||ff(e,t),t.pendingcb--,n(),rt(e,t)}function ff(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Ai(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,Br(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new Oi(t),t.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,p=r.encoding,l=r.callback,h=t.objectMode?1:f.length;if(Br(e,t,!1,h,f,p,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}N.prototype._write=function(e,t,r){r(new Vu("_write()"))};N.prototype._writev=null;N.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||hf(this,n,r),this};Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Di(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function lf(e,t){e._final(function(r){t.pendingcb--,r&&$e(e,r),t.prefinished=!0,e.emit("prefinish"),rt(e,t)})}function cf(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(lf,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function rt(e,t){var r=Di(t);if(r&&(cf(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function hf(e,t,r){t.ending=!0,rt(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function df(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});N.prototype.destroy=qr.destroy;N.prototype._undestroy=qr.undestroy;N.prototype._destroy=function(e,t){t(e)}});var Te=m((Ud,Ni)=>{"use strict";a();var pf=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Ni.exports=ae;var Pi=jr(),Lr=Ir();Re()(ae,Pi);for(Mr=pf(Lr.prototype),It=0;It<Mr.length;It++)Mt=Mr[It],ae.prototype[Mt]||(ae.prototype[Mt]=Lr.prototype[Mt]);var Mr,Mt,It;function ae(e){if(!(this instanceof ae))return new ae(e);Pi.call(this,e),Lr.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",yf)))}Object.defineProperty(ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ae.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ae.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function yf(){this._writableState.ended||process.nextTick(mf,this)}function mf(e){e.end()}Object.defineProperty(ae.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var qi=m((Ur,Bi)=>{a();var Lt=E("buffer"),ue=Lt.Buffer;function ki(e,t){for(var r in e)t[r]=e[r]}ue.from&&ue.alloc&&ue.allocUnsafe&&ue.allocUnsafeSlow?Bi.exports=Lt:(ki(Lt,Ur),Ur.Buffer=Oe);function Oe(e,t,r){return ue(e,t,r)}Oe.prototype=Object.create(ue.prototype);ki(ue,Oe);Oe.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ue(e,t,r)};Oe.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=ue(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};Oe.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ue(e)};Oe.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Lt.SlowBuffer(e)}});var Gr=m(Mi=>{"use strict";a();var $r=qi().Buffer,Ii=$r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _f(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function gf(e){var t=_f(e);if(typeof t!="string"&&($r.isEncoding===Ii||!Ii(e)))throw new Error("Unknown encoding: "+e);return t||e}Mi.StringDecoder=it;function it(e){this.encoding=gf(e);var t;switch(this.encoding){case"utf16le":this.text=bf,this.end=Rf,t=4;break;case"utf8":this.fillLast=wf,t=4;break;case"base64":this.text=Tf,this.end=Of,t=3;break;default:this.write=Cf,this.end=Af;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$r.allocUnsafe(t)}it.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};it.prototype.end=Ef;it.prototype.text=Sf;it.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Wr(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function xf(e,t,r){var n=t.length-1;if(n<r)return 0;var i=Wr(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=Wr(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=Wr(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function vf(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function wf(e){var t=this.lastTotal-this.lastNeed,r=vf(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function Sf(e,t){var r=xf(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function Ef(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function bf(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function Rf(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function Tf(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function Of(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Cf(e){return e.toString(this.encoding)}function Af(e){return e&&e.length?this.write(e):""}});var jt=m(($d,Ui)=>{"use strict";a();var Li=he().codes.ERR_STREAM_PREMATURE_CLOSE;function Df(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function Ff(){}function Pf(e){return e.setHeader&&typeof e.abort=="function"}function ji(e,t,r){if(typeof t=="function")return ji(e,null,t);t||(t={}),r=Df(r||Ff);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,o=function(){e.writable||u()},s=e._writableState&&e._writableState.finished,u=function(){i=!1,s=!0,n||r.call(e)},f=e._readableState&&e._readableState.endEmitted,p=function(){n=!1,f=!0,i||r.call(e)},l=function(_){r.call(e,_)},h=function(){var _;if(n&&!f)return(!e._readableState||!e._readableState.ended)&&(_=new Li),r.call(e,_);if(i&&!s)return(!e._writableState||!e._writableState.ended)&&(_=new Li),r.call(e,_)},y=function(){e.req.on("finish",u)};return Pf(e)?(e.on("complete",u),e.on("abort",h),e.req?y():e.on("request",y)):i&&!e._writableState&&(e.on("end",o),e.on("close",o)),e.on("end",p),e.on("finish",u),t.error!==!1&&e.on("error",l),e.on("close",h),function(){e.removeListener("complete",u),e.removeListener("abort",h),e.removeListener("request",y),e.req&&e.req.removeListener("finish",u),e.removeListener("end",o),e.removeListener("close",o),e.removeListener("finish",u),e.removeListener("end",p),e.removeListener("error",l),e.removeListener("close",h)}}Ui.exports=ji});var $i=m((Gd,Wi)=>{"use strict";a();var Ut;function pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Nf=jt(),ye=Symbol("lastResolve"),Ce=Symbol("lastReject"),ot=Symbol("error"),Wt=Symbol("ended"),Ae=Symbol("lastPromise"),Yr=Symbol("handlePromise"),De=Symbol("stream");function me(e,t){return{value:e,done:t}}function kf(e){var t=e[ye];if(t!==null){var r=e[De].read();r!==null&&(e[Ae]=null,e[ye]=null,e[Ce]=null,t(me(r,!1)))}}function Bf(e){process.nextTick(kf,e)}function qf(e,t){return function(r,n){e.then(function(){if(t[Wt]){r(me(void 0,!0));return}t[Yr](r,n)},n)}}var If=Object.getPrototypeOf(function(){}),Mf=Object.setPrototypeOf((Ut={get stream(){return this[De]},next:function(){var t=this,r=this[ot];if(r!==null)return Promise.reject(r);if(this[Wt])return Promise.resolve(me(void 0,!0));if(this[De].destroyed)return new Promise(function(s,u){process.nextTick(function(){t[ot]?u(t[ot]):s(me(void 0,!0))})});var n=this[Ae],i;if(n)i=new Promise(qf(n,this));else{var o=this[De].read();if(o!==null)return Promise.resolve(me(o,!1));i=new Promise(this[Yr])}return this[Ae]=i,i}},pe(Ut,Symbol.asyncIterator,function(){return this}),pe(Ut,"return",function(){var t=this;return new Promise(function(r,n){t[De].destroy(null,function(i){if(i){n(i);return}r(me(void 0,!0))})})}),Ut),If),Lf=function(t){var r,n=Object.create(Mf,(r={},pe(r,De,{value:t,writable:!0}),pe(r,ye,{value:null,writable:!0}),pe(r,Ce,{value:null,writable:!0}),pe(r,ot,{value:null,writable:!0}),pe(r,Wt,{value:t._readableState.endEmitted,writable:!0}),pe(r,Yr,{value:function(o,s){var u=n[De].read();u?(n[Ae]=null,n[ye]=null,n[Ce]=null,o(me(u,!1))):(n[ye]=o,n[Ce]=s)},writable:!0}),r));return n[Ae]=null,Nf(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[Ce];o!==null&&(n[Ae]=null,n[ye]=null,n[Ce]=null,o(i)),n[ot]=i;return}var s=n[ye];s!==null&&(n[Ae]=null,n[ye]=null,n[Ce]=null,s(me(void 0,!0))),n[Wt]=!0}),t.on("readable",Bf.bind(null,n)),n};Wi.exports=Lf});var Vi=m((Yd,Hi)=>{"use strict";a();function Gi(e,t,r,n,i,o,s){try{var u=e[o](s),f=u.value}catch(p){r(p);return}u.done?t(f):Promise.resolve(f).then(n,i)}function jf(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(f){Gi(o,n,i,s,u,"next",f)}function u(f){Gi(o,n,i,s,u,"throw",f)}s(void 0)})}}function Yi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Uf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yi(Object(r),!0).forEach(function(n){Wf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $f=he().codes.ERR_INVALID_ARG_TYPE;function Gf(e,t,r){var n;if(t&&typeof t.next=="function")n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new $f("iterable",["Iterable"],t);var i=new e(Uf({objectMode:!0},r)),o=!1;i._read=function(){o||(o=!0,s())};function s(){return u.apply(this,arguments)}function u(){return u=jf(function*(){try{var f=yield n.next(),p=f.value,l=f.done;l?i.push(null):i.push(yield p)?s():o=!1}catch(h){i.destroy(h)}}),u.apply(this,arguments)}return i}Hi.exports=Gf});var jr=m((Vd,no)=>{"use strict";a();no.exports=b;var Ge;b.ReadableState=Qi;var Hd=E("events").EventEmitter,Xi=function(t,r){return t.listeners(r).length},at=Or(),$t=E("buffer").Buffer,Yf=global.Uint8Array||function(){};function Hf(e){return $t.from(e)}function Vf(e){return $t.isBuffer(e)||e instanceof Yf}var Hr=E("util"),S;Hr&&Hr.debuglog?S=Hr.debuglog("stream"):S=function(){};var Jf=mi(),zr=Dr(),Kf=Fr(),Xf=Kf.getHighWaterMark,Gt=he().codes,Qf=Gt.ERR_INVALID_ARG_TYPE,Zf=Gt.ERR_STREAM_PUSH_AFTER_EOF,zf=Gt.ERR_METHOD_NOT_IMPLEMENTED,el=Gt.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ye,Vr,Jr;Re()(b,at);var st=zr.errorOrDestroy,Kr=["error","close","destroy","pause","resume"];function tl(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function Qi(e,t,r){Ge=Ge||Te(),e=e||{},typeof r!="boolean"&&(r=t instanceof Ge),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=Xf(this,e,"readableHighWaterMark",r),this.buffer=new Jf,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Ye||(Ye=Gr().StringDecoder),this.decoder=new Ye(e.encoding),this.encoding=e.encoding)}function b(e){if(Ge=Ge||Te(),!(this instanceof b))return new b(e);var t=this instanceof Ge;this._readableState=new Qi(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),at.call(this)}Object.defineProperty(b.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});b.prototype.destroy=zr.destroy;b.prototype._undestroy=zr.undestroy;b.prototype._destroy=function(e,t){t(e)};b.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=$t.from(e,t),t=""),n=!0),Zi(this,e,t,!1,n)};b.prototype.unshift=function(e){return Zi(this,e,null,!0,!1)};function Zi(e,t,r,n,i){S("readableAddChunk",t);var o=e._readableState;if(t===null)o.reading=!1,il(e,o);else{var s;if(i||(s=rl(o,t)),s)st(e,s);else if(o.objectMode||t&&t.length>0)if(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==$t.prototype&&(t=Hf(t)),n)o.endEmitted?st(e,new el):Xr(e,o,t,!0);else if(o.ended)st(e,new Zf);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?Xr(e,o,t,!1):Zr(e,o)):Xr(e,o,t,!1)}else n||(o.reading=!1,Zr(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function Xr(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Yt(e)),Zr(e,t)}function rl(e,t){var r;return!Vf(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new Qf("chunk",["string","Buffer","Uint8Array"],t)),r}b.prototype.isPaused=function(){return this._readableState.flowing===!1};b.prototype.setEncoding=function(e){Ye||(Ye=Gr().StringDecoder);var t=new Ye(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Ji=1073741824;function nl(e){return e>=Ji?e=Ji:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Ki(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=nl(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}b.prototype.read=function(e){S("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return S("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Qr(this):Yt(this),null;if(e=Ki(e,t),e===0&&t.ended)return t.length===0&&Qr(this),null;var n=t.needReadable;S("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,S("length less than watermark",n)),t.ended||t.reading?(n=!1,S("reading or ended",n)):n&&(S("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Ki(r,t)));var i;return e>0?i=to(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Qr(this)),i!==null&&this.emit("data",i),i};function il(e,t){if(S("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?Yt(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,zi(e)))}}function Yt(e){var t=e._readableState;S("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(S("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(zi,e))}function zi(e){var t=e._readableState;S("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,en(e)}function Zr(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(ol,e,t))}function ol(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(S("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}b.prototype._read=function(e){st(this,new zf("_read()"))};b.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,S("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,o=i?u:g;n.endEmitted?process.nextTick(o):r.once("end",o),e.on("unpipe",s);function s(v,w){S("onunpipe"),v===r&&w&&w.hasUnpiped===!1&&(w.hasUnpiped=!0,l())}function u(){S("onend"),e.end()}var f=sl(r);e.on("drain",f);var p=!1;function l(){S("cleanup"),e.removeListener("close",d),e.removeListener("finish",_),e.removeListener("drain",f),e.removeListener("error",y),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",g),r.removeListener("data",h),p=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&f()}r.on("data",h);function h(v){S("ondata");var w=e.write(v);S("dest.write",w),w===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&ro(n.pipes,e)!==-1)&&!p&&(S("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function y(v){S("onerror",v),g(),e.removeListener("error",y),Xi(e,"error")===0&&st(e,v)}tl(e,"error",y);function d(){e.removeListener("finish",_),g()}e.once("close",d);function _(){S("onfinish"),e.removeListener("close",d),g()}e.once("finish",_);function g(){S("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(S("pipe resume"),r.resume()),e};function sl(e){return function(){var r=e._readableState;S("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Xi(e,"data")&&(r.flowing=!0,en(e))}}b.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=ro(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};b.prototype.on=function(e,t){var r=at.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,S("on readable",n.length,n.reading),n.length?Yt(this):n.reading||process.nextTick(al,this)),r};b.prototype.addListener=b.prototype.on;b.prototype.removeListener=function(e,t){var r=at.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(eo,this),r};b.prototype.removeAllListeners=function(e){var t=at.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(eo,this),t};function eo(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function al(e){S("readable nexttick read 0"),e.read(0)}b.prototype.resume=function(){var e=this._readableState;return e.flowing||(S("resume"),e.flowing=!e.readableListening,ul(this,e)),e.paused=!1,this};function ul(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(fl,e,t))}function fl(e,t){S("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),en(e),t.flowing&&!t.reading&&e.read(0)}b.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function en(e){var t=e._readableState;for(S("flow",t.flowing);t.flowing&&e.read()!==null;);}b.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(S("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&t.push(s)}t.push(null)}),e.on("data",function(s){if(S("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var u=t.push(s);u||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(u){return function(){return e[u].apply(e,arguments)}}(i));for(var o=0;o<Kr.length;o++)e.on(Kr[o],this.emit.bind(this,Kr[o]));return this._read=function(s){S("wrapped _read",s),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(b.prototype[Symbol.asyncIterator]=function(){return Vr===void 0&&(Vr=$i()),Vr(this)});Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(b.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(b.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});b._fromList=to;Object.defineProperty(b.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function to(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Qr(e){var t=e._readableState;S("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(ll,t,e))}function ll(e,t){if(S("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(b.from=function(e,t){return Jr===void 0&&(Jr=Vi()),Jr(b,e,t)});function ro(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var tn=m((Jd,oo)=>{"use strict";a();oo.exports=fe;var Ht=he().codes,cl=Ht.ERR_METHOD_NOT_IMPLEMENTED,hl=Ht.ERR_MULTIPLE_CALLBACK,dl=Ht.ERR_TRANSFORM_ALREADY_TRANSFORMING,pl=Ht.ERR_TRANSFORM_WITH_LENGTH_0,Vt=Te();Re()(fe,Vt);function yl(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new hl);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function fe(e){if(!(this instanceof fe))return new fe(e);Vt.call(this,e),this._transformState={afterTransform:yl.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",ml)}function ml(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){io(e,t,r)}):io(this,null,null)}fe.prototype.push=function(e,t){return this._transformState.needTransform=!1,Vt.prototype.push.call(this,e,t)};fe.prototype._transform=function(e,t,r){r(new cl("_transform()"))};fe.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};fe.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};fe.prototype._destroy=function(e,t){Vt.prototype._destroy.call(this,e,function(r){t(r)})};function io(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new pl;if(e._transformState.transforming)throw new dl;return e.push(null)}});var uo=m((Kd,ao)=>{"use strict";a();ao.exports=ut;var so=tn();Re()(ut,so);function ut(e){if(!(this instanceof ut))return new ut(e);so.call(this,e)}ut.prototype._transform=function(e,t,r){r(null,e)}});var po=m((Xd,ho)=>{"use strict";a();var rn;function _l(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var co=he().codes,gl=co.ERR_MISSING_ARGS,xl=co.ERR_STREAM_DESTROYED;function fo(e){if(e)throw e}function vl(e){return e.setHeader&&typeof e.abort=="function"}function wl(e,t,r,n){n=_l(n);var i=!1;e.on("close",function(){i=!0}),rn===void 0&&(rn=jt()),rn(e,{readable:t,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,vl(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(s||new xl("pipe"))}}}function lo(e){e()}function Sl(e,t){return e.pipe(t)}function El(e){return!e.length||typeof e[e.length-1]!="function"?fo:e.pop()}function bl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=El(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new gl("streams");var i,o=t.map(function(s,u){var f=u<t.length-1,p=u>0;return wl(s,f,p,function(l){i||(i=l),l&&o.forEach(lo),!f&&(o.forEach(lo),n(i))})});return t.reduce(Sl)}ho.exports=bl});var yo=m((te,lt)=>{a();var ft=E("stream");process.env.READABLE_STREAM==="disable"&&ft?(lt.exports=ft.Readable,Object.assign(lt.exports,ft),lt.exports.Stream=ft):(te=lt.exports=jr(),te.Stream=ft||te,te.Readable=te,te.Writable=Ir(),te.Duplex=Te(),te.Transform=tn(),te.PassThrough=uo(),te.finished=jt(),te.pipeline=po())});var go=m((Qd,_o)=>{"use strict";a();var{Buffer:ne}=E("buffer"),mo=Symbol.for("BufferList");function A(e){if(!(this instanceof A))return new A(e);A._init.call(this,e)}A._init=function(t){Object.defineProperty(this,mo,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};A.prototype._new=function(t){return new A(t)};A.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};A.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};A.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};A.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};A.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||ne.alloc(0);let o=!!t,s=this._offset(n),u=i-n,f=u,p=o&&r||0,l=s[1];if(n===0&&i===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:ne.concat(this._bufs,this.length);for(let h=0;h<this._bufs.length;h++)this._bufs[h].copy(t,p),p+=this._bufs[h].length;return t}if(f<=this._bufs[s[0]].length-l)return o?this._bufs[s[0]].copy(t,r,l,l+f):this._bufs[s[0]].slice(l,l+f);o||(t=ne.allocUnsafe(u));for(let h=s[0];h<this._bufs.length;h++){let y=this._bufs[h].length-l;if(f>y)this._bufs[h].copy(t,p,l),p+=y;else{this._bufs[h].copy(t,p,l,l+f),p+=y;break}f-=y,l&&(l=0)}return t.length>p?t.slice(0,p):t};A.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),o=this._bufs.slice(n[0],i[0]+1);return i[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,i[1]),n[1]!==0&&(o[0]=o[0].slice(n[1])),this._new(o)};A.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};A.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};A.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};A.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(ne.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(ne.from(t));return this};A.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};A.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=ne.from([e]):typeof e=="string"?e=ne.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=ne.from(e.buffer,e.byteOffset,e.byteLength):ne.isBuffer(e)||(e=ne.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let n=this._offset(t),i=n[0],o=n[1];for(;i<this._bufs.length;i++){let s=this._bufs[i];for(;o<s.length;)if(s.length-o>=e.length){let f=s.indexOf(e,o);if(f!==-1)return this._reverseOffset([i,f]);o=s.length-e.length+1}else{let f=this._reverseOffset([i,o]);if(this._match(f,e))return f;o++}o=0}return-1};A.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?A.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:A.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();A.prototype._isBufferList=function(t){return t instanceof A||A.isBufferList(t)};A.isBufferList=function(t){return t!=null&&t[mo]};_o.exports=A});var xo=m((Zd,Jt)=>{"use strict";a();var nn=yo().Duplex,Rl=Re(),ct=go();function $(e){if(!(this instanceof $))return new $(e);if(typeof e=="function"){this._callback=e;let t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)}),e=null}ct._init.call(this,e),nn.call(this)}Rl($,nn);Object.assign($.prototype,ct.prototype);$.prototype._new=function(t){return new $(t)};$.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};$.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};$.prototype.end=function(t){nn.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};$.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};$.prototype._isBufferList=function(t){return t instanceof $||t instanceof ct||$.isBufferList(t)};$.isBufferList=ct.isBufferList;Jt.exports=$;Jt.exports.BufferListStream=$;Jt.exports.BufferList=ct});var K=m(un=>{"use strict";a();un.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,o)=>i!=null?n(i):r(o))})},"name",{value:e.name})};un.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var To=m((y0,Ro)=>{a();var _e=E("constants"),Fl=process.cwd,Qt=null,Pl=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Qt||(Qt=Fl.call(process)),Qt};try{process.cwd()}catch{}typeof process.chdir=="function"&&(fn=process.chdir,process.chdir=function(e){Qt=null,fn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,fn));var fn;Ro.exports=Nl;function Nl(e){_e.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=f(e.statSync),e.fstatSync=f(e.fstatSync),e.lstatSync=f(e.lstatSync),e.lchmod||(e.lchmod=function(l,h,y){y&&process.nextTick(y)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(l,h,y,d){d&&process.nextTick(d)},e.lchownSync=function(){}),Pl==="win32"&&(e.rename=function(l){return function(h,y,d){var _=Date.now(),g=0;l(h,y,function v(w){if(w&&(w.code==="EACCES"||w.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){e.stat(y,function(D,le){D&&D.code==="ENOENT"?l(h,y,v):d(w)})},g),g<100&&(g+=10);return}d&&d(w)})}}(e.rename)),e.read=function(l){function h(y,d,_,g,v,w){var D;if(w&&typeof w=="function"){var le=0;D=function(ce,ke,Rn){if(ce&&ce.code==="EAGAIN"&&le<10)return le++,l.call(e,y,d,_,g,v,D);w.apply(this,arguments)}}return l.call(e,y,d,_,g,v,D)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,l),h}(e.read),e.readSync=function(l){return function(h,y,d,_,g){for(var v=0;;)try{return l.call(e,h,y,d,_,g)}catch(w){if(w.code==="EAGAIN"&&v<10){v++;continue}throw w}}}(e.readSync);function t(l){l.lchmod=function(h,y,d){l.open(h,_e.O_WRONLY|_e.O_SYMLINK,y,function(_,g){if(_){d&&d(_);return}l.fchmod(g,y,function(v){l.close(g,function(w){d&&d(v||w)})})})},l.lchmodSync=function(h,y){var d=l.openSync(h,_e.O_WRONLY|_e.O_SYMLINK,y),_=!0,g;try{g=l.fchmodSync(d,y),_=!1}finally{if(_)try{l.closeSync(d)}catch{}else l.closeSync(d)}return g}}function r(l){_e.hasOwnProperty("O_SYMLINK")?(l.lutimes=function(h,y,d,_){l.open(h,_e.O_SYMLINK,function(g,v){if(g){_&&_(g);return}l.futimes(v,y,d,function(w){l.close(v,function(D){_&&_(w||D)})})})},l.lutimesSync=function(h,y,d){var _=l.openSync(h,_e.O_SYMLINK),g,v=!0;try{g=l.futimesSync(_,y,d),v=!1}finally{if(v)try{l.closeSync(_)}catch{}else l.closeSync(_)}return g}):(l.lutimes=function(h,y,d,_){_&&process.nextTick(_)},l.lutimesSync=function(){})}function n(l){return l&&function(h,y,d){return l.call(e,h,y,function(_){p(_)&&(_=null),d&&d.apply(this,arguments)})}}function i(l){return l&&function(h,y){try{return l.call(e,h,y)}catch(d){if(!p(d))throw d}}}function o(l){return l&&function(h,y,d,_){return l.call(e,h,y,d,function(g){p(g)&&(g=null),_&&_.apply(this,arguments)})}}function s(l){return l&&function(h,y,d){try{return l.call(e,h,y,d)}catch(_){if(!p(_))throw _}}}function u(l){return l&&function(h,y,d){typeof y=="function"&&(d=y,y=null);function _(g,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),d&&d.apply(this,arguments)}return y?l.call(e,h,y,_):l.call(e,h,_)}}function f(l){return l&&function(h,y){var d=y?l.call(e,h,y):l.call(e,h);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function p(l){if(!l||l.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(l.code==="EINVAL"||l.code==="EPERM"))}}});var Ao=m((m0,Co)=>{a();var Oo=E("stream").Stream;Co.exports=kl;function kl(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Oo.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var s=Object.keys(i),u=0,f=s.length;u<f;u++){var p=s[u];this[p]=i[p]}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(){o._read()});return}e.open(this.path,this.flags,this.mode,function(l,h){if(l){o.emit("error",l),o.readable=!1;return}o.fd=h,o.emit("open",h),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Oo.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,u=o.length;s<u;s++){var f=o[s];this[f]=i[f]}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=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Fo=m((_0,Do)=>{"use strict";a();Do.exports=ql;var Bl=Object.getPrototypeOf||function(e){return e.__proto__};function ql(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Bl(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var V=m((g0,hn)=>{a();var P=E("fs"),Il=To(),Ml=Ao(),Ll=Fo(),Zt=E("util"),W,er;typeof Symbol=="function"&&typeof Symbol.for=="function"?(W=Symbol.for("graceful-fs.queue"),er=Symbol.for("graceful-fs.previous")):(W="___graceful-fs.queue",er="___graceful-fs.previous");function jl(){}function ko(e,t){Object.defineProperty(e,W,{get:function(){return t}})}var Fe=jl;Zt.debuglog?Fe=Zt.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Fe=function(){var e=Zt.format.apply(Zt,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
5
|
-
GFS4: `),console.error(e)});
|
|
4
|
+
var iu=Object.create;var br=Object.defineProperty;var ou=Object.getOwnPropertyDescriptor;var su=Object.getOwnPropertyNames;var au=Object.getPrototypeOf,uu=Object.prototype.hasOwnProperty;var lu=e=>br(e,"__esModule",{value:!0});var S=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var fu=(e,t)=>()=>(e&&(t=e(e=0)),t);var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var cu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of su(t))!uu.call(e,i)&&(r||i!=="default")&&br(e,i,{get:()=>t[i],enumerable:!(n=ou(t,i))||n.enumerable});return e},qe=(e,t)=>cu(lu(br(e!=null?iu(au(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var u=fu(()=>{});var si=m((Vd,Br)=>{"use strict";u();var oi=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Br.exports=oi;Br.exports.default=oi});var ui=m((Jd,Nt)=>{"use strict";u();var Xu=si(),Pt=new WeakMap,ai=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(Pt.set(o,++n),n===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Xu(o,e),Pt.set(o,n),o};Nt.exports=ai;Nt.exports.default=ai;Nt.exports.callCount=e=>{if(!Pt.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Pt.get(e)}});var li=m((Kd,It)=>{u();It.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&It.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&It.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var pi=m((Xd,Ye)=>{u();var F=global.process,Re=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"};Re(F)?(fi=S("assert"),We=li(),ci=/^win/i.test(F.platform),ot=S("events"),typeof ot!="function"&&(ot=ot.EventEmitter),F.__signal_exit_emitter__?q=F.__signal_exit_emitter__:(q=F.__signal_exit_emitter__=new ot,q.count=0,q.emitted={}),q.infinite||(q.setMaxListeners(1/0),q.infinite=!0),Ye.exports=function(e,t){if(!Re(global.process))return function(){};fi.equal(typeof e,"function","a callback must be provided for exit handler"),Ge===!1&&Pr();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){q.removeListener(r,e),q.listeners("exit").length===0&&q.listeners("afterexit").length===0&&Mt()};return q.on(r,e),n},Mt=function(){!Ge||!Re(global.process)||(Ge=!1,We.forEach(function(t){try{F.removeListener(t,kt[t])}catch{}}),F.emit=qt,F.reallyExit=Nr,q.count-=1)},Ye.exports.unload=Mt,Oe=function(t,r,n){q.emitted[t]||(q.emitted[t]=!0,q.emit(t,r,n))},kt={},We.forEach(function(e){kt[e]=function(){if(!!Re(global.process)){var r=F.listeners(e);r.length===q.count&&(Mt(),Oe("exit",null,e),Oe("afterexit",null,e),ci&&e==="SIGHUP"&&(e="SIGINT"),F.kill(F.pid,e))}}}),Ye.exports.signals=function(){return We},Ge=!1,Pr=function(){Ge||!Re(global.process)||(Ge=!0,q.count+=1,We=We.filter(function(t){try{return F.on(t,kt[t]),!0}catch{return!1}}),F.emit=di,F.reallyExit=hi)},Ye.exports.load=Pr,Nr=F.reallyExit,hi=function(t){!Re(global.process)||(F.exitCode=t||0,Oe("exit",F.exitCode,null),Oe("afterexit",F.exitCode,null),Nr.call(F,F.exitCode))},qt=F.emit,di=function(t,r){if(t==="exit"&&Re(global.process)){r!==void 0&&(F.exitCode=r);var n=qt.apply(this,arguments);return Oe("exit",F.exitCode,null),Oe("afterexit",F.exitCode,null),n}else return qt.apply(this,arguments)}):Ye.exports=function(){return function(){}};var fi,We,ci,ot,q,Mt,Oe,kt,Ge,Pr,Nr,hi,qt,di});var vi=m((r0,zu)=>{zu.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var bi=m((n0,wi)=>{"use strict";u();var jt=Object.assign({},vi()),xi=Object.keys(jt);Object.defineProperty(jt,"random",{get(){let e=Math.floor(Math.random()*xi.length),t=xi[e];return jt[t]}});wi.exports=jt});var Si=m((c0,$t)=>{u();var nl=function(){"use strict";function e(s,a,l,p){var f;typeof a=="object"&&(l=a.depth,p=a.prototype,f=a.filter,a=a.circular);var h=[],y=[],d=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function _(g,x){if(g===null)return null;if(x==0)return g;var w,D;if(typeof g!="object")return g;if(e.__isArray(g))w=[];else if(e.__isRegExp(g))w=new RegExp(g.source,o(g)),g.lastIndex&&(w.lastIndex=g.lastIndex);else if(e.__isDate(g))w=new Date(g.getTime());else{if(d&&Buffer.isBuffer(g))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(g.length):w=new Buffer(g.length),g.copy(w),w;typeof p>"u"?(D=Object.getPrototypeOf(g),w=Object.create(D)):(w=Object.create(p),D=p)}if(a){var de=h.indexOf(g);if(de!=-1)return y[de];h.push(g),y.push(w)}for(var pe in g){var ke;D&&(ke=Object.getOwnPropertyDescriptor(D,pe)),!(ke&&ke.set==null)&&(w[pe]=_(g[pe],x-1))}return w}return _(s,l)}e.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function t(s){return Object.prototype.toString.call(s)}e.__objToStr=t;function r(s){return typeof s=="object"&&t(s)==="[object Date]"}e.__isDate=r;function n(s){return typeof s=="object"&&t(s)==="[object Array]"}e.__isArray=n;function i(s){return typeof s=="object"&&t(s)==="[object RegExp]"}e.__isRegExp=i;function o(s){var a="";return s.global&&(a+="g"),s.ignoreCase&&(a+="i"),s.multiline&&(a+="m"),a}return e.__getRegExpFlags=o,e}();typeof $t=="object"&&$t.exports&&($t.exports=nl)});var Ti=m((h0,Ei)=>{u();var il=Si();Ei.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=il(t[r]))}),e}});var Oi=m((d0,Ri)=>{u();Ri.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 Fi=m((p0,qr)=>{"use strict";u();var ol=Ti(),ut=Oi(),Ai={nul:0,control:0};qr.exports=function(t){return Di(t,Ai)};qr.exports.config=function(e){return e=ol(e||{},Ai),function(r){return Di(r,e)}};function Di(e,t){if(typeof e!="string")return Ci(e,t);for(var r=0,n=0;n<e.length;n++){var i=Ci(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function Ci(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:sl(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 sl(e){var t=0,r=ut.length-1,n;if(e<ut[0][0]||e>ut[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>ut[n][1])t=n+1;else if(e<ut[n][0])r=n-1;else return!0;return!1}});var jr=m((m0,Bi)=>{u();Bi.exports=S("stream")});var Mi=m((_0,Ii)=>{"use strict";u();function Pi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function al(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pi(Object(r),!0).forEach(function(n){ul(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ul(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ll(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ni(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function fl(e,t,r){return t&&Ni(e.prototype,t),r&&Ni(e,r),e}var cl=S("buffer"),Ut=cl.Buffer,hl=S("util"),$r=hl.inspect,dl=$r&&$r.custom||"inspect";function pl(e,t,r){Ut.prototype.copy.call(e,t,r)}Ii.exports=function(){function e(){ll(this,e),this.head=null,this.tail=null,this.length=0}return fl(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Ut.alloc(0);for(var n=Ut.allocUnsafe(r>>>0),i=this.head,o=0;i;)pl(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,o=n.data;for(r-=o.length;n=n.next;){var s=n.data,a=r>s.length?s.length:r;if(a===s.length?o+=s:o+=s.slice(0,r),r-=a,r===0){a===s.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(a));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=Ut.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var s=i.data,a=r>s.length?s.length:r;if(s.copy(n,n.length-r,0,a),r-=a,r===0){a===s.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(a));break}++o}return this.length-=o,n}},{key:dl,value:function(r,n){return $r(this,al({},n,{depth:0,customInspect:!1}))}}]),e}()});var Wr=m((g0,qi)=>{"use strict";u();function yl(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Ur,this,e)):process.nextTick(Ur,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(Wt,r):(r._writableState.errorEmitted=!0,process.nextTick(ki,r,o)):process.nextTick(ki,r,o):t?(process.nextTick(Wt,r),t(o)):process.nextTick(Wt,r)}),this)}function ki(e,t){Ur(e,t),Wt(e)}function Wt(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function ml(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ur(e,t){e.emit("error",t)}function _l(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}qi.exports={destroy:yl,undestroy:ml,errorOrDestroy:_l}});var ye=m((v0,$i)=>{"use strict";u();var ji={};function re(e,t,r){r||(r=Error);function n(o,s,a){return typeof t=="string"?t:t(o,s,a)}class i extends r{constructor(s,a,l){super(n(s,a,l))}}i.prototype.name=r.name,i.prototype.code=e,ji[e]=i}function Li(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function gl(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function vl(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function xl(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}re("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);re("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&gl(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(vl(e," argument"))i=`The ${e} ${n} ${Li(t,"type")}`;else{let o=xl(e,".")?"property":"argument";i=`The "${e}" ${o} ${n} ${Li(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);re("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");re("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});re("ERR_STREAM_PREMATURE_CLOSE","Premature close");re("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});re("ERR_MULTIPLE_CALLBACK","Callback called multiple times");re("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");re("ERR_STREAM_WRITE_AFTER_END","write after end");re("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);re("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);re("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");$i.exports.codes=ji});var Gr=m((x0,Ui)=>{"use strict";u();var wl=ye().codes.ERR_INVALID_OPT_VALUE;function bl(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Sl(e,t,r,n){var i=bl(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new wl(o,i)}return Math.floor(i)}return e.objectMode?16:16*1024}Ui.exports={getHighWaterMark:Sl}});var Wi=m((w0,Yr)=>{u();typeof Object.create=="function"?Yr.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Yr.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var Ce=m((b0,Vr)=>{u();try{if(Hr=S("util"),typeof Hr.inherits!="function")throw"";Vr.exports=Hr.inherits}catch{Vr.exports=Wi()}var Hr});var Yi=m((S0,Gi)=>{u();Gi.exports=S("util").deprecate});var Xr=m((E0,Qi)=>{"use strict";u();Qi.exports=P;function Vi(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Xl(t,e)}}var Ve;P.WritableState=ft;var El={deprecate:Yi()},Ji=jr(),Yt=S("buffer").Buffer,Tl=global.Uint8Array||function(){};function Rl(e){return Yt.from(e)}function Ol(e){return Yt.isBuffer(e)||e instanceof Tl}var Kr=Wr(),Cl=Gr(),Al=Cl.getHighWaterMark,me=ye().codes,Dl=me.ERR_INVALID_ARG_TYPE,Fl=me.ERR_METHOD_NOT_IMPLEMENTED,Bl=me.ERR_MULTIPLE_CALLBACK,Pl=me.ERR_STREAM_CANNOT_PIPE,Nl=me.ERR_STREAM_DESTROYED,Il=me.ERR_STREAM_NULL_VALUES,Ml=me.ERR_STREAM_WRITE_AFTER_END,kl=me.ERR_UNKNOWN_ENCODING,Je=Kr.errorOrDestroy;Ce()(P,Ji);function ql(){}function ft(e,t,r){Ve=Ve||Ae(),e=e||{},typeof r!="boolean"&&(r=t instanceof Ve),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=Al(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Yl(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Vi(this)}ft.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(ft.prototype,"buffer",{get:El.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Gt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Gt=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(t){return Gt.call(this,t)?!0:this!==P?!1:t&&t._writableState instanceof ft}})):Gt=function(t){return t instanceof this};function P(e){Ve=Ve||Ae();var t=this instanceof Ve;if(!t&&!Gt.call(P,this))return new P(e);this._writableState=new ft(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Ji.call(this)}P.prototype.pipe=function(){Je(this,new Pl)};function Ll(e,t){var r=new Ml;Je(e,r),process.nextTick(t,r)}function jl(e,t,r,n){var i;return r===null?i=new Il:typeof r!="string"&&!t.objectMode&&(i=new Dl("chunk",["string","Buffer"],r)),i?(Je(e,i),process.nextTick(n,i),!1):!0}P.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&Ol(e);return o&&!Yt.isBuffer(e)&&(e=Rl(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=ql),n.ending?Ll(this,r):(o||jl(this,n,e,r))&&(n.pendingcb++,i=Ul(this,n,o,e,t,r)),i};P.prototype.cork=function(){this._writableState.corked++};P.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Ki(this,e))};P.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new kl(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function $l(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Yt.from(t,r)),t}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ul(e,t,r,n,i,o){if(!r){var s=$l(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},p?p.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Jr(e,t,!1,a,n,i,o);return l}function Jr(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Nl("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function Wl(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(lt,e,t),e._writableState.errorEmitted=!0,Je(e,n)):(i(n),e._writableState.errorEmitted=!0,Je(e,n),lt(e,t))}function Gl(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Yl(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new Bl;if(Gl(r),t)Wl(e,r,n,t,i);else{var o=Xi(r)||e.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ki(e,r),n?process.nextTick(Hi,e,r,o,i):Hi(e,r,o,i)}}function Hi(e,t,r,n){r||Hl(e,t),t.pendingcb--,n(),lt(e,t)}function Hl(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Ki(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,a=!0;r;)i[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;i.allBuffers=a,Jr(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new Vi(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,p=r.encoding,f=r.callback,h=t.objectMode?1:l.length;if(Jr(e,t,!1,h,l,p,f),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}P.prototype._write=function(e,t,r){r(new Fl("_write()"))};P.prototype._writev=null;P.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||Kl(this,n,r),this};Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Xi(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Vl(e,t){e._final(function(r){t.pendingcb--,r&&Je(e,r),t.prefinished=!0,e.emit("prefinish"),lt(e,t)})}function Jl(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(Vl,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function lt(e,t){var r=Xi(t);if(r&&(Jl(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function Kl(e,t,r){t.ending=!0,lt(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Xl(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});P.prototype.destroy=Kr.destroy;P.prototype._undestroy=Kr.undestroy;P.prototype._destroy=function(e,t){t(e)}});var Ae=m((T0,zi)=>{"use strict";u();var Ql=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};zi.exports=fe;var Zi=zr(),Zr=Xr();Ce()(fe,Zi);for(Qr=Ql(Zr.prototype),Ht=0;Ht<Qr.length;Ht++)Vt=Qr[Ht],fe.prototype[Vt]||(fe.prototype[Vt]=Zr.prototype[Vt]);var Qr,Vt,Ht;function fe(e){if(!(this instanceof fe))return new fe(e);Zi.call(this,e),Zr.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Zl)))}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(fe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(fe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Zl(){this._writableState.ended||process.nextTick(zl,this)}function zl(e){e.end()}Object.defineProperty(fe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var ro=m((en,to)=>{u();var Jt=S("buffer"),ce=Jt.Buffer;function eo(e,t){for(var r in e)t[r]=e[r]}ce.from&&ce.alloc&&ce.allocUnsafe&&ce.allocUnsafeSlow?to.exports=Jt:(eo(Jt,en),en.Buffer=De);function De(e,t,r){return ce(e,t,r)}De.prototype=Object.create(ce.prototype);eo(ce,De);De.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ce(e,t,r)};De.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=ce(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};De.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ce(e)};De.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Jt.SlowBuffer(e)}});var nn=m(io=>{"use strict";u();var rn=ro().Buffer,no=rn.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ef(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function tf(e){var t=ef(e);if(typeof t!="string"&&(rn.isEncoding===no||!no(e)))throw new Error("Unknown encoding: "+e);return t||e}io.StringDecoder=ct;function ct(e){this.encoding=tf(e);var t;switch(this.encoding){case"utf16le":this.text=uf,this.end=lf,t=4;break;case"utf8":this.fillLast=of,t=4;break;case"base64":this.text=ff,this.end=cf,t=3;break;default:this.write=hf,this.end=df;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rn.allocUnsafe(t)}ct.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};ct.prototype.end=af;ct.prototype.text=sf;ct.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function tn(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function rf(e,t,r){var n=t.length-1;if(n<r)return 0;var i=tn(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=tn(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=tn(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function nf(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function of(e){var t=this.lastTotal-this.lastNeed,r=nf(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function sf(e,t){var r=rf(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function af(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function uf(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function lf(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function ff(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function cf(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function hf(e){return e.toString(this.encoding)}function df(e){return e&&e.length?this.write(e):""}});var Kt=m((O0,ao)=>{"use strict";u();var oo=ye().codes.ERR_STREAM_PREMATURE_CLOSE;function pf(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function yf(){}function mf(e){return e.setHeader&&typeof e.abort=="function"}function so(e,t,r){if(typeof t=="function")return so(e,null,t);t||(t={}),r=pf(r||yf);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,o=function(){e.writable||a()},s=e._writableState&&e._writableState.finished,a=function(){i=!1,s=!0,n||r.call(e)},l=e._readableState&&e._readableState.endEmitted,p=function(){n=!1,l=!0,i||r.call(e)},f=function(_){r.call(e,_)},h=function(){var _;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(_=new oo),r.call(e,_);if(i&&!s)return(!e._writableState||!e._writableState.ended)&&(_=new oo),r.call(e,_)},y=function(){e.req.on("finish",a)};return mf(e)?(e.on("complete",a),e.on("abort",h),e.req?y():e.on("request",y)):i&&!e._writableState&&(e.on("end",o),e.on("close",o)),e.on("end",p),e.on("finish",a),t.error!==!1&&e.on("error",f),e.on("close",h),function(){e.removeListener("complete",a),e.removeListener("abort",h),e.removeListener("request",y),e.req&&e.req.removeListener("finish",a),e.removeListener("end",o),e.removeListener("close",o),e.removeListener("finish",a),e.removeListener("end",p),e.removeListener("error",f),e.removeListener("close",h)}}ao.exports=so});var lo=m((C0,uo)=>{"use strict";u();var Xt;function _e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _f=Kt(),ge=Symbol("lastResolve"),Fe=Symbol("lastReject"),ht=Symbol("error"),Qt=Symbol("ended"),Be=Symbol("lastPromise"),on=Symbol("handlePromise"),Pe=Symbol("stream");function ve(e,t){return{value:e,done:t}}function gf(e){var t=e[ge];if(t!==null){var r=e[Pe].read();r!==null&&(e[Be]=null,e[ge]=null,e[Fe]=null,t(ve(r,!1)))}}function vf(e){process.nextTick(gf,e)}function xf(e,t){return function(r,n){e.then(function(){if(t[Qt]){r(ve(void 0,!0));return}t[on](r,n)},n)}}var wf=Object.getPrototypeOf(function(){}),bf=Object.setPrototypeOf((Xt={get stream(){return this[Pe]},next:function(){var t=this,r=this[ht];if(r!==null)return Promise.reject(r);if(this[Qt])return Promise.resolve(ve(void 0,!0));if(this[Pe].destroyed)return new Promise(function(s,a){process.nextTick(function(){t[ht]?a(t[ht]):s(ve(void 0,!0))})});var n=this[Be],i;if(n)i=new Promise(xf(n,this));else{var o=this[Pe].read();if(o!==null)return Promise.resolve(ve(o,!1));i=new Promise(this[on])}return this[Be]=i,i}},_e(Xt,Symbol.asyncIterator,function(){return this}),_e(Xt,"return",function(){var t=this;return new Promise(function(r,n){t[Pe].destroy(null,function(i){if(i){n(i);return}r(ve(void 0,!0))})})}),Xt),wf),Sf=function(t){var r,n=Object.create(bf,(r={},_e(r,Pe,{value:t,writable:!0}),_e(r,ge,{value:null,writable:!0}),_e(r,Fe,{value:null,writable:!0}),_e(r,ht,{value:null,writable:!0}),_e(r,Qt,{value:t._readableState.endEmitted,writable:!0}),_e(r,on,{value:function(o,s){var a=n[Pe].read();a?(n[Be]=null,n[ge]=null,n[Fe]=null,o(ve(a,!1))):(n[ge]=o,n[Fe]=s)},writable:!0}),r));return n[Be]=null,_f(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[Fe];o!==null&&(n[Be]=null,n[ge]=null,n[Fe]=null,o(i)),n[ht]=i;return}var s=n[ge];s!==null&&(n[Be]=null,n[ge]=null,n[Fe]=null,s(ve(void 0,!0))),n[Qt]=!0}),t.on("readable",vf.bind(null,n)),n};uo.exports=Sf});var po=m((A0,ho)=>{"use strict";u();function fo(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(p){r(p);return}a.done?t(l):Promise.resolve(l).then(n,i)}function Ef(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(l){fo(o,n,i,s,a,"next",l)}function a(l){fo(o,n,i,s,a,"throw",l)}s(void 0)})}}function co(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?co(Object(r),!0).forEach(function(n){Rf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):co(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Of=ye().codes.ERR_INVALID_ARG_TYPE;function Cf(e,t,r){var n;if(t&&typeof t.next=="function")n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new Of("iterable",["Iterable"],t);var i=new e(Tf({objectMode:!0},r)),o=!1;i._read=function(){o||(o=!0,s())};function s(){return a.apply(this,arguments)}function a(){return a=Ef(function*(){try{var l=yield n.next(),p=l.value,f=l.done;f?i.push(null):i.push(yield p)?s():o=!1}catch(h){i.destroy(h)}}),a.apply(this,arguments)}return i}ho.exports=Cf});var zr=m((F0,Eo)=>{"use strict";u();Eo.exports=E;var Ke;E.ReadableState=go;var D0=S("events").EventEmitter,_o=function(t,r){return t.listeners(r).length},pt=jr(),Zt=S("buffer").Buffer,Af=global.Uint8Array||function(){};function Df(e){return Zt.from(e)}function Ff(e){return Zt.isBuffer(e)||e instanceof Af}var sn=S("util"),b;sn&&sn.debuglog?b=sn.debuglog("stream"):b=function(){};var Bf=Mi(),dn=Wr(),Pf=Gr(),Nf=Pf.getHighWaterMark,zt=ye().codes,If=zt.ERR_INVALID_ARG_TYPE,Mf=zt.ERR_STREAM_PUSH_AFTER_EOF,kf=zt.ERR_METHOD_NOT_IMPLEMENTED,qf=zt.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Xe,an,un;Ce()(E,pt);var dt=dn.errorOrDestroy,ln=["error","close","destroy","pause","resume"];function Lf(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function go(e,t,r){Ke=Ke||Ae(),e=e||{},typeof r!="boolean"&&(r=t instanceof Ke),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=Nf(this,e,"readableHighWaterMark",r),this.buffer=new Bf,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Xe||(Xe=nn().StringDecoder),this.decoder=new Xe(e.encoding),this.encoding=e.encoding)}function E(e){if(Ke=Ke||Ae(),!(this instanceof E))return new E(e);var t=this instanceof Ke;this._readableState=new go(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),pt.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});E.prototype.destroy=dn.destroy;E.prototype._undestroy=dn.undestroy;E.prototype._destroy=function(e,t){t(e)};E.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Zt.from(e,t),t=""),n=!0),vo(this,e,t,!1,n)};E.prototype.unshift=function(e){return vo(this,e,null,!0,!1)};function vo(e,t,r,n,i){b("readableAddChunk",t);var o=e._readableState;if(t===null)o.reading=!1,Uf(e,o);else{var s;if(i||(s=jf(o,t)),s)dt(e,s);else if(o.objectMode||t&&t.length>0)if(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==Zt.prototype&&(t=Df(t)),n)o.endEmitted?dt(e,new qf):fn(e,o,t,!0);else if(o.ended)dt(e,new Mf);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?fn(e,o,t,!1):hn(e,o)):fn(e,o,t,!1)}else n||(o.reading=!1,hn(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function fn(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&er(e)),hn(e,t)}function jf(e,t){var r;return!Ff(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new If("chunk",["string","Buffer","Uint8Array"],t)),r}E.prototype.isPaused=function(){return this._readableState.flowing===!1};E.prototype.setEncoding=function(e){Xe||(Xe=nn().StringDecoder);var t=new Xe(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var yo=1073741824;function $f(e){return e>=yo?e=yo:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function mo(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=$f(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}E.prototype.read=function(e){b("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return b("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?cn(this):er(this),null;if(e=mo(e,t),e===0&&t.ended)return t.length===0&&cn(this),null;var n=t.needReadable;b("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,b("length less than watermark",n)),t.ended||t.reading?(n=!1,b("reading or ended",n)):n&&(b("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=mo(r,t)));var i;return e>0?i=bo(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&cn(this)),i!==null&&this.emit("data",i),i};function Uf(e,t){if(b("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?er(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,xo(e)))}}function er(e){var t=e._readableState;b("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(b("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(xo,e))}function xo(e){var t=e._readableState;b("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,pn(e)}function hn(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(Wf,e,t))}function Wf(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(b("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}E.prototype._read=function(e){dt(this,new kf("_read()"))};E.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,b("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,o=i?a:g;n.endEmitted?process.nextTick(o):r.once("end",o),e.on("unpipe",s);function s(x,w){b("onunpipe"),x===r&&w&&w.hasUnpiped===!1&&(w.hasUnpiped=!0,f())}function a(){b("onend"),e.end()}var l=Gf(r);e.on("drain",l);var p=!1;function f(){b("cleanup"),e.removeListener("close",d),e.removeListener("finish",_),e.removeListener("drain",l),e.removeListener("error",y),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",h),p=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",h);function h(x){b("ondata");var w=e.write(x);b("dest.write",w),w===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&So(n.pipes,e)!==-1)&&!p&&(b("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function y(x){b("onerror",x),g(),e.removeListener("error",y),_o(e,"error")===0&&dt(e,x)}Lf(e,"error",y);function d(){e.removeListener("finish",_),g()}e.once("close",d);function _(){b("onfinish"),e.removeListener("close",d),g()}e.once("finish",_);function g(){b("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(b("pipe resume"),r.resume()),e};function Gf(e){return function(){var r=e._readableState;b("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&_o(e,"data")&&(r.flowing=!0,pn(e))}}E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=So(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};E.prototype.on=function(e,t){var r=pt.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,b("on readable",n.length,n.reading),n.length?er(this):n.reading||process.nextTick(Yf,this)),r};E.prototype.addListener=E.prototype.on;E.prototype.removeListener=function(e,t){var r=pt.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(wo,this),r};E.prototype.removeAllListeners=function(e){var t=pt.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(wo,this),t};function wo(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Yf(e){b("readable nexttick read 0"),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(b("resume"),e.flowing=!e.readableListening,Hf(this,e)),e.paused=!1,this};function Hf(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(Vf,e,t))}function Vf(e,t){b("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),pn(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function pn(e){var t=e._readableState;for(b("flow",t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(b("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&t.push(s)}t.push(null)}),e.on("data",function(s){if(b("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var a=t.push(s);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var o=0;o<ln.length;o++)e.on(ln[o],this.emit.bind(this,ln[o]));return this._read=function(s){b("wrapped _read",s),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(E.prototype[Symbol.asyncIterator]=function(){return an===void 0&&(an=lo()),an(this)});Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});E._fromList=bo;Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function bo(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function cn(e){var t=e._readableState;b("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(Jf,t,e))}function Jf(e,t){if(b("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(E.from=function(e,t){return un===void 0&&(un=po()),un(E,e,t)});function So(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var yn=m((B0,Ro)=>{"use strict";u();Ro.exports=he;var tr=ye().codes,Kf=tr.ERR_METHOD_NOT_IMPLEMENTED,Xf=tr.ERR_MULTIPLE_CALLBACK,Qf=tr.ERR_TRANSFORM_ALREADY_TRANSFORMING,Zf=tr.ERR_TRANSFORM_WITH_LENGTH_0,rr=Ae();Ce()(he,rr);function zf(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Xf);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function he(e){if(!(this instanceof he))return new he(e);rr.call(this,e),this._transformState={afterTransform:zf.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",ec)}function ec(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){To(e,t,r)}):To(this,null,null)}he.prototype.push=function(e,t){return this._transformState.needTransform=!1,rr.prototype.push.call(this,e,t)};he.prototype._transform=function(e,t,r){r(new Kf("_transform()"))};he.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};he.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};he.prototype._destroy=function(e,t){rr.prototype._destroy.call(this,e,function(r){t(r)})};function To(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Zf;if(e._transformState.transforming)throw new Qf;return e.push(null)}});var Ao=m((P0,Co)=>{"use strict";u();Co.exports=yt;var Oo=yn();Ce()(yt,Oo);function yt(e){if(!(this instanceof yt))return new yt(e);Oo.call(this,e)}yt.prototype._transform=function(e,t,r){r(null,e)}});var No=m((N0,Po)=>{"use strict";u();var mn;function tc(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Bo=ye().codes,rc=Bo.ERR_MISSING_ARGS,nc=Bo.ERR_STREAM_DESTROYED;function Do(e){if(e)throw e}function ic(e){return e.setHeader&&typeof e.abort=="function"}function oc(e,t,r,n){n=tc(n);var i=!1;e.on("close",function(){i=!0}),mn===void 0&&(mn=Kt()),mn(e,{readable:t,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,ic(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(s||new nc("pipe"))}}}function Fo(e){e()}function sc(e,t){return e.pipe(t)}function ac(e){return!e.length||typeof e[e.length-1]!="function"?Do:e.pop()}function uc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=ac(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new rc("streams");var i,o=t.map(function(s,a){var l=a<t.length-1,p=a>0;return oc(s,l,p,function(f){i||(i=f),f&&o.forEach(Fo),!l&&(o.forEach(Fo),n(i))})});return t.reduce(sc)}Po.exports=uc});var Io=m((ne,_t)=>{u();var mt=S("stream");process.env.READABLE_STREAM==="disable"&&mt?(_t.exports=mt.Readable,Object.assign(_t.exports,mt),_t.exports.Stream=mt):(ne=_t.exports=zr(),ne.Stream=mt||ne,ne.Readable=ne,ne.Writable=Xr(),ne.Duplex=Ae(),ne.Transform=yn(),ne.PassThrough=Ao(),ne.finished=Kt(),ne.pipeline=No())});var qo=m((I0,ko)=>{"use strict";u();var{Buffer:oe}=S("buffer"),Mo=Symbol.for("BufferList");function A(e){if(!(this instanceof A))return new A(e);A._init.call(this,e)}A._init=function(t){Object.defineProperty(this,Mo,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};A.prototype._new=function(t){return new A(t)};A.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};A.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};A.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};A.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};A.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||oe.alloc(0);let o=!!t,s=this._offset(n),a=i-n,l=a,p=o&&r||0,f=s[1];if(n===0&&i===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:oe.concat(this._bufs,this.length);for(let h=0;h<this._bufs.length;h++)this._bufs[h].copy(t,p),p+=this._bufs[h].length;return t}if(l<=this._bufs[s[0]].length-f)return o?this._bufs[s[0]].copy(t,r,f,f+l):this._bufs[s[0]].slice(f,f+l);o||(t=oe.allocUnsafe(a));for(let h=s[0];h<this._bufs.length;h++){let y=this._bufs[h].length-f;if(l>y)this._bufs[h].copy(t,p,f),p+=y;else{this._bufs[h].copy(t,p,f,f+l),p+=y;break}l-=y,f&&(f=0)}return t.length>p?t.slice(0,p):t};A.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),o=this._bufs.slice(n[0],i[0]+1);return i[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,i[1]),n[1]!==0&&(o[0]=o[0].slice(n[1])),this._new(o)};A.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};A.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};A.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};A.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(oe.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(oe.from(t));return this};A.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};A.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=oe.from([e]):typeof e=="string"?e=oe.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=oe.from(e.buffer,e.byteOffset,e.byteLength):oe.isBuffer(e)||(e=oe.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let n=this._offset(t),i=n[0],o=n[1];for(;i<this._bufs.length;i++){let s=this._bufs[i];for(;o<s.length;)if(s.length-o>=e.length){let l=s.indexOf(e,o);if(l!==-1)return this._reverseOffset([i,l]);o=s.length-e.length+1}else{let l=this._reverseOffset([i,o]);if(this._match(l,e))return l;o++}o=0}return-1};A.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?A.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:A.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();A.prototype._isBufferList=function(t){return t instanceof A||A.isBufferList(t)};A.isBufferList=function(t){return t!=null&&t[Mo]};ko.exports=A});var Lo=m((M0,nr)=>{"use strict";u();var _n=Io().Duplex,lc=Ce(),gt=qo();function G(e){if(!(this instanceof G))return new G(e);if(typeof e=="function"){this._callback=e;let t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)}),e=null}gt._init.call(this,e),_n.call(this)}lc(G,_n);Object.assign(G.prototype,gt.prototype);G.prototype._new=function(t){return new G(t)};G.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};G.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};G.prototype.end=function(t){_n.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};G.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};G.prototype._isBufferList=function(t){return t instanceof G||t instanceof gt||G.isBufferList(t)};G.isBufferList=gt.isBufferList;nr.exports=G;nr.exports.BufferListStream=G;nr.exports.BufferList=gt});var K=m(wn=>{"use strict";u();wn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,o)=>i!=null?n(i):r(o))})},"name",{value:e.name})};wn.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var Ho=m((z0,Yo)=>{u();var xe=S("constants"),yc=process.cwd,sr=null,mc=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return sr||(sr=yc.call(process)),sr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(bn=process.chdir,process.chdir=function(e){sr=null,bn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,bn));var bn;Yo.exports=_c;function _c(e){xe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.lchmod||(e.lchmod=function(f,h,y){y&&process.nextTick(y)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(f,h,y,d){d&&process.nextTick(d)},e.lchownSync=function(){}),mc==="win32"&&(e.rename=function(f){return function(h,y,d){var _=Date.now(),g=0;f(h,y,function x(w){if(w&&(w.code==="EACCES"||w.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){e.stat(y,function(D,de){D&&D.code==="ENOENT"?f(h,y,x):d(w)})},g),g<100&&(g+=10);return}d&&d(w)})}}(e.rename)),e.read=function(f){function h(y,d,_,g,x,w){var D;if(w&&typeof w=="function"){var de=0;D=function(pe,ke,qn){if(pe&&pe.code==="EAGAIN"&&de<10)return de++,f.call(e,y,d,_,g,x,D);w.apply(this,arguments)}}return f.call(e,y,d,_,g,x,D)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(e.read),e.readSync=function(f){return function(h,y,d,_,g){for(var x=0;;)try{return f.call(e,h,y,d,_,g)}catch(w){if(w.code==="EAGAIN"&&x<10){x++;continue}throw w}}}(e.readSync);function t(f){f.lchmod=function(h,y,d){f.open(h,xe.O_WRONLY|xe.O_SYMLINK,y,function(_,g){if(_){d&&d(_);return}f.fchmod(g,y,function(x){f.close(g,function(w){d&&d(x||w)})})})},f.lchmodSync=function(h,y){var d=f.openSync(h,xe.O_WRONLY|xe.O_SYMLINK,y),_=!0,g;try{g=f.fchmodSync(d,y),_=!1}finally{if(_)try{f.closeSync(d)}catch{}else f.closeSync(d)}return g}}function r(f){xe.hasOwnProperty("O_SYMLINK")?(f.lutimes=function(h,y,d,_){f.open(h,xe.O_SYMLINK,function(g,x){if(g){_&&_(g);return}f.futimes(x,y,d,function(w){f.close(x,function(D){_&&_(w||D)})})})},f.lutimesSync=function(h,y,d){var _=f.openSync(h,xe.O_SYMLINK),g,x=!0;try{g=f.futimesSync(_,y,d),x=!1}finally{if(x)try{f.closeSync(_)}catch{}else f.closeSync(_)}return g}):(f.lutimes=function(h,y,d,_){_&&process.nextTick(_)},f.lutimesSync=function(){})}function n(f){return f&&function(h,y,d){return f.call(e,h,y,function(_){p(_)&&(_=null),d&&d.apply(this,arguments)})}}function i(f){return f&&function(h,y){try{return f.call(e,h,y)}catch(d){if(!p(d))throw d}}}function o(f){return f&&function(h,y,d,_){return f.call(e,h,y,d,function(g){p(g)&&(g=null),_&&_.apply(this,arguments)})}}function s(f){return f&&function(h,y,d){try{return f.call(e,h,y,d)}catch(_){if(!p(_))throw _}}}function a(f){return f&&function(h,y,d){typeof y=="function"&&(d=y,y=null);function _(g,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),d&&d.apply(this,arguments)}return y?f.call(e,h,y,_):f.call(e,h,_)}}function l(f){return f&&function(h,y){var d=y?f.call(e,h,y):f.call(e,h);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function p(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var Ko=m((ep,Jo)=>{u();var Vo=S("stream").Stream;Jo.exports=gc;function gc(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Vo.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var s=Object.keys(i),a=0,l=s.length;a<l;a++){var p=s[a];this[p]=i[p]}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(){o._read()});return}e.open(this.path,this.flags,this.mode,function(f,h){if(f){o.emit("error",f),o.readable=!1;return}o.fd=h,o.emit("open",h),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Vo.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s<a;s++){var l=o[s];this[l]=i[l]}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=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Qo=m((tp,Xo)=>{"use strict";u();Xo.exports=xc;var vc=Object.getPrototypeOf||function(e){return e.__proto__};function xc(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:vc(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var V=m((rp,Tn)=>{u();var B=S("fs"),wc=Ho(),bc=Ko(),Sc=Qo(),ar=S("util"),W,lr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(W=Symbol.for("graceful-fs.queue"),lr=Symbol.for("graceful-fs.previous")):(W="___graceful-fs.queue",lr="___graceful-fs.previous");function Ec(){}function es(e,t){Object.defineProperty(e,W,{get:function(){return t}})}var Ne=Ec;ar.debuglog?Ne=ar.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ne=function(){var e=ar.format.apply(ar,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
5
|
+
GFS4: `),console.error(e)});B[W]||(Zo=global[W]||[],es(B,Zo),B.close=function(e){function t(r,n){return e.call(B,r,function(i){i||zo(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,lr,{value:e}),t}(B.close),B.closeSync=function(e){function t(r){e.apply(B,arguments),zo()}return Object.defineProperty(t,lr,{value:e}),t}(B.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ne(B[W]),S("assert").equal(B[W].length,0)}));var Zo;global[W]||es(global,B[W]);Tn.exports=Sn(Sc(B));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!B.__patched&&(Tn.exports=Sn(B),B.__patched=!0);function Sn(e){wc(e),e.gracefulify=Sn,e.createReadStream=pe,e.createWriteStream=ke;var t=e.readFile;e.readFile=r;function r(v,R,T){return typeof R=="function"&&(T=R,R=null),j(v,R,T);function j($,U,M,H){return t($,U,function(C){C&&(C.code==="EMFILE"||C.code==="ENFILE")?Qe([j,[$,U,M],C,H||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(v,R,T,j){return typeof T=="function"&&(j=T,T=null),$(v,R,T,j);function $(U,M,H,C,z){return n(U,M,H,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Qe([$,[U,M,H,C],k,z||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=s);function s(v,R,T,j){return typeof T=="function"&&(j=T,T=null),$(v,R,T,j);function $(U,M,H,C,z){return o(U,M,H,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Qe([$,[U,M,H,C],k,z||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=l);function l(v,R,T,j){return typeof T=="function"&&(j=T,T=0),$(v,R,T,j);function $(U,M,H,C,z){return a(U,M,H,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Qe([$,[U,M,H,C],k,z||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var p=e.readdir;e.readdir=f;function f(v,R,T){return typeof R=="function"&&(T=R,R=null),j(v,R,T);function j($,U,M,H){return p($,U,function(C,z){C&&(C.code==="EMFILE"||C.code==="ENFILE")?Qe([j,[$,U,M],C,H||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof M=="function"&&M.call(this,C,z))})}}if(process.version.substr(0,4)==="v0.8"){var h=bc(e);x=h.ReadStream,D=h.WriteStream}var y=e.ReadStream;y&&(x.prototype=Object.create(y.prototype),x.prototype.open=w);var d=e.WriteStream;d&&(D.prototype=Object.create(d.prototype),D.prototype.open=de),Object.defineProperty(e,"ReadStream",{get:function(){return x},set:function(v){x=v},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return D},set:function(v){D=v},enumerable:!0,configurable:!0});var _=x;Object.defineProperty(e,"FileReadStream",{get:function(){return _},set:function(v){_=v},enumerable:!0,configurable:!0});var g=D;Object.defineProperty(e,"FileWriteStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});function x(v,R){return this instanceof x?(y.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function w(){var v=this;wr(v.path,v.flags,v.mode,function(R,T){R?(v.autoClose&&v.destroy(),v.emit("error",R)):(v.fd=T,v.emit("open",T),v.read())})}function D(v,R){return this instanceof D?(d.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function de(){var v=this;wr(v.path,v.flags,v.mode,function(R,T){R?(v.destroy(),v.emit("error",R)):(v.fd=T,v.emit("open",T))})}function pe(v,R){return new e.ReadStream(v,R)}function ke(v,R){return new e.WriteStream(v,R)}var qn=e.open;e.open=wr;function wr(v,R,T,j){return typeof T=="function"&&(j=T,T=null),$(v,R,T,j);function $(U,M,H,C,z){return qn(U,M,H,function(k,Rd){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Qe([$,[U,M,H,C],k,z||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}return e}function Qe(e){Ne("ENQUEUE",e[0].name,e[1]),B[W].push(e),En()}var ur;function zo(){for(var e=Date.now(),t=0;t<B[W].length;++t)B[W][t].length>2&&(B[W][t][3]=e,B[W][t][4]=e);En()}function En(){if(clearTimeout(ur),ur=void 0,B[W].length!==0){var e=B[W].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Ne("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Ne("TIMEOUT",t.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var a=Date.now()-o,l=Math.max(o-i,1),p=Math.min(l*1.2,100);a>=p?(Ne("RETRY",t.name,r),t.apply(null,r.concat([i]))):B[W].push(e)}ur===void 0&&(ur=setTimeout(En,0))}}});var Ie=m(we=>{"use strict";u();var ts=K().fromCallback,Z=V(),Tc=["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(e=>typeof Z[e]=="function");Object.assign(we,Z);Tc.forEach(e=>{we[e]=ts(Z[e])});we.realpath.native=ts(Z.realpath.native);we.exists=function(e,t){return typeof t=="function"?Z.exists(e,t):new Promise(r=>Z.exists(e,r))};we.read=function(e,t,r,n,i,o){return typeof o=="function"?Z.read(e,t,r,n,i,o):new Promise((s,a)=>{Z.read(e,t,r,n,i,(l,p,f)=>{if(l)return a(l);s({bytesRead:p,buffer:f})})})};we.write=function(e,t,...r){return typeof r[r.length-1]=="function"?Z.write(e,t,...r):new Promise((n,i)=>{Z.write(e,t,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffer:a})})})};typeof Z.writev=="function"&&(we.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?Z.writev(e,t,...r):new Promise((n,i)=>{Z.writev(e,t,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffers:a})})})})});var ns=m((ip,rs)=>{"use strict";u();var Rc=S("path");rs.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Rc.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var as=m((op,Rn)=>{"use strict";u();var is=Ie(),{checkPath:os}=ns(),ss=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};Rn.exports.makeDir=async(e,t)=>(os(e),is.mkdir(e,{mode:ss(t),recursive:!0}));Rn.exports.makeDirSync=(e,t)=>(os(e),is.mkdirSync(e,{mode:ss(t),recursive:!0}))});var ae=m((sp,us)=>{"use strict";u();var Oc=K().fromPromise,{makeDir:Cc,makeDirSync:On}=as(),Cn=Oc(Cc);us.exports={mkdirs:Cn,mkdirsSync:On,mkdirp:Cn,mkdirpSync:On,ensureDir:Cn,ensureDirSync:On}});var be=m((ap,fs)=>{"use strict";u();var Ac=K().fromPromise,ls=Ie();function Dc(e){return ls.access(e).then(()=>!0).catch(()=>!1)}fs.exports={pathExists:Ac(Dc),pathExistsSync:ls.existsSync}});var An=m((up,cs)=>{"use strict";u();var Ze=V();function Fc(e,t,r,n){Ze.open(e,"r+",(i,o)=>{if(i)return n(i);Ze.futimes(o,t,r,s=>{Ze.close(o,a=>{n&&n(s||a)})})})}function Bc(e,t,r){let n=Ze.openSync(e,"r+");return Ze.futimesSync(n,t,r),Ze.closeSync(n)}cs.exports={utimesMillis:Fc,utimesMillisSync:Bc}});var Me=m((lp,ps)=>{"use strict";u();var ze=Ie(),L=S("path"),Pc=S("util");function Nc(e,t,r){let n=r.dereference?i=>ze.stat(i,{bigint:!0}):i=>ze.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,o])=>({srcStat:i,destStat:o}))}function Ic(e,t,r){let n,i=r.dereference?s=>ze.statSync(s,{bigint:!0}):s=>ze.lstatSync(s,{bigint:!0}),o=i(e);try{n=i(t)}catch(s){if(s.code==="ENOENT")return{srcStat:o,destStat:null};throw s}return{srcStat:o,destStat:n}}function Mc(e,t,r,n,i){Pc.callbackify(Nc)(e,t,n,(o,s)=>{if(o)return i(o);let{srcStat:a,destStat:l}=s;if(l){if(xt(a,l)){let p=L.basename(e),f=L.basename(t);return r==="move"&&p!==f&&p.toLowerCase()===f.toLowerCase()?i(null,{srcStat:a,destStat:l,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(a.isDirectory()&&!l.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!a.isDirectory()&&l.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return a.isDirectory()&&Dn(e,t)?i(new Error(fr(e,t,r))):i(null,{srcStat:a,destStat:l})})}function kc(e,t,r,n){let{srcStat:i,destStat:o}=Ic(e,t,n);if(o){if(xt(i,o)){let s=L.basename(e),a=L.basename(t);if(r==="move"&&s!==a&&s.toLowerCase()===a.toLowerCase())return{srcStat:i,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&Dn(e,t))throw new Error(fr(e,t,r));return{srcStat:i,destStat:o}}function hs(e,t,r,n,i){let o=L.resolve(L.dirname(e)),s=L.resolve(L.dirname(r));if(s===o||s===L.parse(s).root)return i();ze.stat(s,{bigint:!0},(a,l)=>a?a.code==="ENOENT"?i():i(a):xt(t,l)?i(new Error(fr(e,r,n))):hs(e,t,s,n,i))}function ds(e,t,r,n){let i=L.resolve(L.dirname(e)),o=L.resolve(L.dirname(r));if(o===i||o===L.parse(o).root)return;let s;try{s=ze.statSync(o,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(xt(t,s))throw new Error(fr(e,r,n));return ds(e,t,o,n)}function xt(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Dn(e,t){let r=L.resolve(e).split(L.sep).filter(i=>i),n=L.resolve(t).split(L.sep).filter(i=>i);return r.reduce((i,o,s)=>i&&n[s]===o,!0)}function fr(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}ps.exports={checkPaths:Mc,checkPathsSync:kc,checkParentPaths:hs,checkParentPathsSync:ds,isSrcSubdir:Dn,areIdentical:xt}});var bs=m((fp,ws)=>{"use strict";u();var X=V(),wt=S("path"),qc=ae().mkdirs,Lc=be().pathExists,jc=An().utimesMillis,bt=Me();function $c(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
6
6
|
|
|
7
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),
|
|
7
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),bt.checkPaths(e,t,"copy",r,(i,o)=>{if(i)return n(i);let{srcStat:s,destStat:a}=o;bt.checkParentPaths(e,s,t,"copy",l=>l?n(l):r.filter?_s(ys,a,e,t,r,n):ys(a,e,t,r,n))})}function ys(e,t,r,n,i){let o=wt.dirname(r);Lc(o,(s,a)=>{if(s)return i(s);if(a)return cr(e,t,r,n,i);qc(o,l=>l?i(l):cr(e,t,r,n,i))})}function _s(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then(s=>s?e(t,r,n,i,o):o(),s=>o(s))}function Uc(e,t,r,n,i){return n.filter?_s(cr,e,t,r,n,i):cr(e,t,r,n,i)}function cr(e,t,r,n,i){(n.dereference?X.stat:X.lstat)(t,(s,a)=>s?i(s):a.isDirectory()?Kc(a,e,t,r,n,i):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?Wc(a,e,t,r,n,i):a.isSymbolicLink()?Zc(e,t,r,n,i):a.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):a.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`)))}function Wc(e,t,r,n,i,o){return t?Gc(e,r,n,i,o):gs(e,r,n,i,o)}function Gc(e,t,r,n,i){if(n.overwrite)X.unlink(r,o=>o?i(o):gs(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function gs(e,t,r,n,i){X.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?Yc(e.mode,t,r,i):hr(r,e.mode,i))}function Yc(e,t,r,n){return Hc(e)?Vc(r,e,i=>i?n(i):ms(e,t,r,n)):ms(e,t,r,n)}function Hc(e){return(e&128)===0}function Vc(e,t,r){return hr(e,t|128,r)}function ms(e,t,r,n){Jc(t,r,i=>i?n(i):hr(r,e,n))}function hr(e,t,r){return X.chmod(e,t,r)}function Jc(e,t,r){X.stat(e,(n,i)=>n?r(n):jc(t,i.atime,i.mtime,r))}function Kc(e,t,r,n,i,o){return t?vs(r,n,i,o):Xc(e.mode,r,n,i,o)}function Xc(e,t,r,n,i){X.mkdir(r,o=>{if(o)return i(o);vs(t,r,n,s=>s?i(s):hr(r,e,i))})}function vs(e,t,r,n){X.readdir(e,(i,o)=>i?n(i):xs(o,e,t,r,n))}function xs(e,t,r,n,i){let o=e.pop();return o?Qc(e,o,t,r,n,i):i()}function Qc(e,t,r,n,i,o){let s=wt.join(r,t),a=wt.join(n,t);bt.checkPaths(s,a,"copy",i,(l,p)=>{if(l)return o(l);let{destStat:f}=p;Uc(f,s,a,i,h=>h?o(h):xs(e,r,n,i,o))})}function Zc(e,t,r,n,i){X.readlink(t,(o,s)=>{if(o)return i(o);if(n.dereference&&(s=wt.resolve(process.cwd(),s)),e)X.readlink(r,(a,l)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?X.symlink(s,r,i):i(a):(n.dereference&&(l=wt.resolve(process.cwd(),l)),bt.isSrcSubdir(s,l)?i(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${l}'.`)):e.isDirectory()&&bt.isSrcSubdir(l,s)?i(new Error(`Cannot overwrite '${l}' with '${s}'.`)):zc(s,r,i)));else return X.symlink(s,r,i)})}function zc(e,t,r){X.unlink(t,n=>n?r(n):X.symlink(e,t,r))}ws.exports=$c});var Os=m((cp,Rs)=>{"use strict";u();var Y=V(),St=S("path"),eh=ae().mkdirsSync,th=An().utimesMillisSync,Et=Me();function rh(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
8
8
|
|
|
9
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=
|
|
10
|
-
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function
|
|
9
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Et.checkPathsSync(e,t,"copy",r);return Et.checkParentPathsSync(e,n,t,"copy"),nh(i,e,t,r)}function nh(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=St.dirname(r);return Y.existsSync(i)||eh(i),Ss(e,t,r,n)}function ih(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return Ss(e,t,r,n)}function Ss(e,t,r,n){let o=(n.dereference?Y.statSync:Y.lstatSync)(t);if(o.isDirectory())return ch(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return oh(o,e,t,r,n);if(o.isSymbolicLink())return ph(e,t,r,n);throw o.isSocket()?new Error(`Cannot copy a socket file: ${t}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function oh(e,t,r,n,i){return t?sh(e,r,n,i):Es(e,r,n,i)}function sh(e,t,r,n){if(n.overwrite)return Y.unlinkSync(r),Es(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Es(e,t,r,n){return Y.copyFileSync(t,r),n.preserveTimestamps&&ah(e.mode,t,r),Fn(r,e.mode)}function ah(e,t,r){return uh(e)&&lh(r,e),fh(t,r)}function uh(e){return(e&128)===0}function lh(e,t){return Fn(e,t|128)}function Fn(e,t){return Y.chmodSync(e,t)}function fh(e,t){let r=Y.statSync(e);return th(t,r.atime,r.mtime)}function ch(e,t,r,n,i){return t?Ts(r,n,i):hh(e.mode,r,n,i)}function hh(e,t,r,n){return Y.mkdirSync(r),Ts(t,r,n),Fn(r,e)}function Ts(e,t,r){Y.readdirSync(e).forEach(n=>dh(n,e,t,r))}function dh(e,t,r,n){let i=St.join(t,e),o=St.join(r,e),{destStat:s}=Et.checkPathsSync(i,o,"copy",n);return ih(s,i,o,n)}function ph(e,t,r,n){let i=Y.readlinkSync(t);if(n.dereference&&(i=St.resolve(process.cwd(),i)),e){let o;try{o=Y.readlinkSync(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return Y.symlinkSync(i,r);throw s}if(n.dereference&&(o=St.resolve(process.cwd(),o)),Et.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(Y.statSync(r).isDirectory()&&Et.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return yh(i,r)}else return Y.symlinkSync(i,r)}function yh(e,t){return Y.unlinkSync(t),Y.symlinkSync(e,t)}Rs.exports=rh});var dr=m((hp,Cs)=>{"use strict";u();var mh=K().fromCallback;Cs.exports={copy:mh(bs()),copySync:Os()}});var ks=m((dp,Ms)=>{"use strict";u();var As=V(),Ps=S("path"),O=S("assert"),Tt=process.platform==="win32";function Ns(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||As[r],r=r+"Sync",e[r]=e[r]||As[r]}),e.maxBusyTries=e.maxBusyTries||3}function Bn(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),O(e,"rimraf: missing path"),O.strictEqual(typeof e,"string","rimraf: path should be a string"),O.strictEqual(typeof r,"function","rimraf: callback function required"),O(t,"rimraf: invalid options argument provided"),O.strictEqual(typeof t,"object","rimraf: options should be object"),Ns(t),Ds(e,t,function i(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&n<t.maxBusyTries){n++;let s=n*100;return setTimeout(()=>Ds(e,t,i),s)}o.code==="ENOENT"&&(o=null)}r(o)})}function Ds(e,t,r){O(e),O(t),O(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Tt)return Fs(e,t,n,r);if(i&&i.isDirectory())return pr(e,t,n,r);t.unlink(e,o=>{if(o){if(o.code==="ENOENT")return r(null);if(o.code==="EPERM")return Tt?Fs(e,t,o,r):pr(e,t,o,r);if(o.code==="EISDIR")return pr(e,t,o,r)}return r(o)})})}function Fs(e,t,r,n){O(e),O(t),O(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(o,s)=>{o?n(o.code==="ENOENT"?null:r):s.isDirectory()?pr(e,t,r,n):t.unlink(e,n)})})}function Bs(e,t,r){let n;O(e),O(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?yr(e,t,r):t.unlinkSync(e)}function pr(e,t,r,n){O(e),O(t),O(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?_h(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function _h(e,t,r){O(e),O(t),O(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let o=i.length,s;if(o===0)return t.rmdir(e,r);i.forEach(a=>{Bn(Ps.join(e,a),t,l=>{if(!s){if(l)return r(s=l);--o===0&&t.rmdir(e,r)}})})})}function Is(e,t){let r;t=t||{},Ns(t),O(e,"rimraf: missing path"),O.strictEqual(typeof e,"string","rimraf: path should be a string"),O(t,"rimraf: missing options"),O.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Tt&&Bs(e,t,n)}try{r&&r.isDirectory()?yr(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Tt?Bs(e,t,n):yr(e,t,n);if(n.code!=="EISDIR")throw n;yr(e,t,n)}}function yr(e,t,r){O(e),O(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")gh(e,t);else if(n.code!=="ENOENT")throw n}}function gh(e,t){if(O(e),O(t),t.readdirSync(e).forEach(r=>Is(Ps.join(e,r),t)),Tt){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}Ms.exports=Bn;Bn.sync=Is});var Rt=m((pp,Ls)=>{"use strict";u();var mr=V(),vh=K().fromCallback,qs=ks();function xh(e,t){if(mr.rm)return mr.rm(e,{recursive:!0,force:!0},t);qs(e,t)}function wh(e){if(mr.rmSync)return mr.rmSync(e,{recursive:!0,force:!0});qs.sync(e)}Ls.exports={remove:vh(xh),removeSync:wh}});var Vs=m((yp,Hs)=>{"use strict";u();var bh=K().fromPromise,Us=Ie(),Ws=S("path"),Gs=ae(),Ys=Rt(),js=bh(async function(t){let r;try{r=await Us.readdir(t)}catch{return Gs.mkdirs(t)}return Promise.all(r.map(n=>Ys.remove(Ws.join(t,n))))});function $s(e){let t;try{t=Us.readdirSync(e)}catch{return Gs.mkdirsSync(e)}t.forEach(r=>{r=Ws.join(e,r),Ys.removeSync(r)})}Hs.exports={emptyDirSync:$s,emptydirSync:$s,emptyDir:js,emptydir:js}});var Qs=m((mp,Xs)=>{"use strict";u();var Sh=K().fromCallback,Js=S("path"),Se=V(),Ks=ae();function Eh(e,t){function r(){Se.writeFile(e,"",n=>{if(n)return t(n);t()})}Se.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=Js.dirname(e);Se.stat(o,(s,a)=>{if(s)return s.code==="ENOENT"?Ks.mkdirs(o,l=>{if(l)return t(l);r()}):t(s);a.isDirectory()?r():Se.readdir(o,l=>{if(l)return t(l)})})})}function Th(e){let t;try{t=Se.statSync(e)}catch{}if(t&&t.isFile())return;let r=Js.dirname(e);try{Se.statSync(r).isDirectory()||Se.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Ks.mkdirsSync(r);else throw n}Se.writeFileSync(e,"")}Xs.exports={createFile:Sh(Eh),createFileSync:Th}});var ra=m((_p,ta)=>{"use strict";u();var Rh=K().fromCallback,Zs=S("path"),Ee=V(),zs=ae(),Oh=be().pathExists,{areIdentical:ea}=Me();function Ch(e,t,r){function n(i,o){Ee.link(i,o,s=>{if(s)return r(s);r(null)})}Ee.lstat(t,(i,o)=>{Ee.lstat(e,(s,a)=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),r(s);if(o&&ea(a,o))return r(null);let l=Zs.dirname(t);Oh(l,(p,f)=>{if(p)return r(p);if(f)return n(e,t);zs.mkdirs(l,h=>{if(h)return r(h);n(e,t)})})})})}function Ah(e,t){let r;try{r=Ee.lstatSync(t)}catch{}try{let o=Ee.lstatSync(e);if(r&&ea(o,r))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=Zs.dirname(t);return Ee.existsSync(n)||zs.mkdirsSync(n),Ee.linkSync(e,t)}ta.exports={createLink:Rh(Ch),createLinkSync:Ah}});var ia=m((gp,na)=>{"use strict";u();var Te=S("path"),Ot=V(),Dh=be().pathExists;function Fh(e,t,r){if(Te.isAbsolute(e))return Ot.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=Te.dirname(t),i=Te.join(n,e);return Dh(i,(o,s)=>o?r(o):s?r(null,{toCwd:i,toDst:e}):Ot.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:e,toDst:Te.relative(n,e)})))}}function Bh(e,t){let r;if(Te.isAbsolute(e)){if(r=Ot.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Te.dirname(t),i=Te.join(n,e);if(r=Ot.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Ot.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Te.relative(n,e)}}}na.exports={symlinkPaths:Fh,symlinkPathsSync:Bh}});var aa=m((vp,sa)=>{"use strict";u();var oa=V();function Ph(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);oa.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function Nh(e,t){let r;if(t)return t;try{r=oa.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}sa.exports={symlinkType:Ph,symlinkTypeSync:Nh}});var ya=m((xp,pa)=>{"use strict";u();var Ih=K().fromCallback,la=S("path"),ue=Ie(),fa=ae(),Mh=fa.mkdirs,kh=fa.mkdirsSync,ca=ia(),qh=ca.symlinkPaths,Lh=ca.symlinkPathsSync,ha=aa(),jh=ha.symlinkType,$h=ha.symlinkTypeSync,Uh=be().pathExists,{areIdentical:da}=Me();function Wh(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,ue.lstat(t,(i,o)=>{!i&&o.isSymbolicLink()?Promise.all([ue.stat(e),ue.stat(t)]).then(([s,a])=>{if(da(s,a))return n(null);ua(e,t,r,n)}):ua(e,t,r,n)})}function ua(e,t,r,n){qh(e,t,(i,o)=>{if(i)return n(i);e=o.toDst,jh(o.toCwd,r,(s,a)=>{if(s)return n(s);let l=la.dirname(t);Uh(l,(p,f)=>{if(p)return n(p);if(f)return ue.symlink(e,t,a,n);Mh(l,h=>{if(h)return n(h);ue.symlink(e,t,a,n)})})})})}function Gh(e,t,r){let n;try{n=ue.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){let a=ue.statSync(e),l=ue.statSync(t);if(da(a,l))return}let i=Lh(e,t);e=i.toDst,r=$h(i.toCwd,r);let o=la.dirname(t);return ue.existsSync(o)||kh(o),ue.symlinkSync(e,t,r)}pa.exports={createSymlink:Ih(Wh),createSymlinkSync:Gh}});var Sa=m((wp,ba)=>{"use strict";u();var{createFile:ma,createFileSync:_a}=Qs(),{createLink:ga,createLinkSync:va}=ra(),{createSymlink:xa,createSymlinkSync:wa}=ya();ba.exports={createFile:ma,createFileSync:_a,ensureFile:ma,ensureFileSync:_a,createLink:ga,createLinkSync:va,ensureLink:ga,ensureLinkSync:va,createSymlink:xa,createSymlinkSync:wa,ensureSymlink:xa,ensureSymlinkSync:wa}});var _r=m((bp,Ea)=>{u();function Yh(e,{EOL:t=`
|
|
10
|
+
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function Hh(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Ea.exports={stringify:Yh,stripBom:Hh}});var Ca=m((Sp,Oa)=>{u();var et;try{et=V()}catch{et=S("fs")}var gr=K(),{stringify:Ta,stripBom:Ra}=_r();async function Vh(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||et,n="throws"in t?t.throws:!0,i=await gr.fromCallback(r.readFile)(e,t);i=Ra(i);let o;try{o=JSON.parse(i,t?t.reviver:null)}catch(s){if(n)throw s.message=`${e}: ${s.message}`,s;return null}return o}var Jh=gr.fromPromise(Vh);function Kh(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||et,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Ra(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function Xh(e,t,r={}){let n=r.fs||et,i=Ta(t,r);await gr.fromCallback(n.writeFile)(e,i,r)}var Qh=gr.fromPromise(Xh);function Zh(e,t,r={}){let n=r.fs||et,i=Ta(t,r);return n.writeFileSync(e,i,r)}var zh={readFile:Jh,readFileSync:Kh,writeFile:Qh,writeFileSync:Zh};Oa.exports=zh});var Da=m((Ep,Aa)=>{"use strict";u();var vr=Ca();Aa.exports={readJson:vr.readFile,readJsonSync:vr.readFileSync,writeJson:vr.writeFile,writeJsonSync:vr.writeFileSync}});var xr=m((Tp,Pa)=>{"use strict";u();var ed=K().fromCallback,Ct=V(),Fa=S("path"),Ba=ae(),td=be().pathExists;function rd(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Fa.dirname(e);td(i,(o,s)=>{if(o)return n(o);if(s)return Ct.writeFile(e,t,r,n);Ba.mkdirs(i,a=>{if(a)return n(a);Ct.writeFile(e,t,r,n)})})}function nd(e,...t){let r=Fa.dirname(e);if(Ct.existsSync(r))return Ct.writeFileSync(e,...t);Ba.mkdirsSync(r),Ct.writeFileSync(e,...t)}Pa.exports={outputFile:ed(rd),outputFileSync:nd}});var Ia=m((Rp,Na)=>{"use strict";u();var{stringify:id}=_r(),{outputFile:od}=xr();async function sd(e,t,r={}){let n=id(t,r);await od(e,n,r)}Na.exports=sd});var ka=m((Op,Ma)=>{"use strict";u();var{stringify:ad}=_r(),{outputFileSync:ud}=xr();function ld(e,t,r){let n=ad(t,r);ud(e,n,r)}Ma.exports=ld});var La=m((Cp,qa)=>{"use strict";u();var fd=K().fromPromise,J=Da();J.outputJson=fd(Ia());J.outputJsonSync=ka();J.outputJSON=J.outputJson;J.outputJSONSync=J.outputJsonSync;J.writeJSON=J.writeJson;J.writeJSONSync=J.writeJsonSync;J.readJSON=J.readJson;J.readJSONSync=J.readJsonSync;qa.exports=J});var Ga=m((Ap,Wa)=>{"use strict";u();var cd=V(),Nn=S("path"),hd=dr().copy,Ua=Rt().remove,dd=ae().mkdirp,pd=be().pathExists,ja=Me();function yd(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;ja.checkPaths(e,t,"move",r,(o,s)=>{if(o)return n(o);let{srcStat:a,isChangingCase:l=!1}=s;ja.checkParentPaths(e,a,t,"move",p=>{if(p)return n(p);if(md(t))return $a(e,t,i,l,n);dd(Nn.dirname(t),f=>f?n(f):$a(e,t,i,l,n))})})}function md(e){let t=Nn.dirname(e);return Nn.parse(t).root===t}function $a(e,t,r,n,i){if(n)return Pn(e,t,r,i);if(r)return Ua(t,o=>o?i(o):Pn(e,t,r,i));pd(t,(o,s)=>o?i(o):s?i(new Error("dest already exists.")):Pn(e,t,r,i))}function Pn(e,t,r,n){cd.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):_d(e,t,r,n):n())}function _d(e,t,r,n){hd(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):Ua(e,n))}Wa.exports=yd});var Ka=m((Dp,Ja)=>{"use strict";u();var Ha=V(),Mn=S("path"),gd=dr().copySync,Va=Rt().removeSync,vd=ae().mkdirpSync,Ya=Me();function xd(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:o=!1}=Ya.checkPathsSync(e,t,"move",r);return Ya.checkParentPathsSync(e,i,t,"move"),wd(t)||vd(Mn.dirname(t)),bd(e,t,n,o)}function wd(e){let t=Mn.dirname(e);return Mn.parse(t).root===t}function bd(e,t,r,n){if(n)return In(e,t,r);if(r)return Va(t),In(e,t,r);if(Ha.existsSync(t))throw new Error("dest already exists.");return In(e,t,r)}function In(e,t,r){try{Ha.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Sd(e,t,r)}}function Sd(e,t,r){return gd(e,t,{overwrite:r,errorOnExist:!0}),Va(e)}Ja.exports=xd});var Qa=m((Fp,Xa)=>{"use strict";u();var Ed=K().fromCallback;Xa.exports={move:Ed(Ga()),moveSync:Ka()}});var za=m((Bp,Za)=>{"use strict";u();Za.exports={...Ie(),...dr(),...Vs(),...Sa(),...La(),...ae(),...Qa(),...xr(),...be(),...Rt()}});u();u();u();var Ln=(e=0)=>t=>`\x1B[${t+e}m`,jn=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,$n=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function hu(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,o]of Object.entries(n))t[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[i]=t[i],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi=Ln(),t.color.ansi256=jn(),t.color.ansi16m=$n(),t.bgColor.ansi=Ln(10),t.bgColor.ansi256=jn(10),t.bgColor.ansi16m=$n(10),Object.defineProperties(t,{rgbToAnsi256:{value:(r,n,i)=>r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:r=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!n)return[0,0,0];let{colorString:i}=n.groups;i.length===3&&(i=[...i].map(s=>s+s).join(""));let o=Number.parseInt(i,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:r=>t.rgbToAnsi256(...t.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,i,o;if(r>=232)n=((r-232)*10+8)/255,i=n,o=n;else{r-=16;let l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,o=l%6/5}let s=Math.max(n,i,o)*2;if(s===0)return 30;let a=30+(Math.round(o)<<2|Math.round(i)<<1|Math.round(n));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,i)=>t.ansi256ToAnsi(t.rgbToAnsi256(r,n,i)),enumerable:!1},hexToAnsi:{value:r=>t.ansi256ToAnsi(t.hexToAnsi256(r)),enumerable:!1}}),t}var du=hu(),ie=du;u();import Sr from"node:process";import pu from"node:os";import Un from"node:tty";function ee(e,t=Sr.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:N}=Sr,At;ee("no-color")||ee("no-colors")||ee("color=false")||ee("color=never")?At=0:(ee("color")||ee("colors")||ee("color=true")||ee("color=always"))&&(At=1);function yu(){if("FORCE_COLOR"in N)return N.FORCE_COLOR==="true"?1:N.FORCE_COLOR==="false"?0:N.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(N.FORCE_COLOR,10),3)}function mu(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function _u(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=yu();n!==void 0&&(At=n);let i=r?At:n;if(i===0)return 0;if(r){if(ee("color=16m")||ee("color=full")||ee("color=truecolor"))return 3;if(ee("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let o=i||0;if(N.TERM==="dumb")return o;if(Sr.platform==="win32"){let s=pu.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in N)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in N)||N.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in N)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(N.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in N&&"AGENT_NAME"in N)return 1;if(N.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in N){let s=Number.parseInt((N.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(N.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(N.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(N.TERM)||"COLORTERM"in N?1:o}function Wn(e,t={}){let r=_u(e,{streamIsTTY:e&&e.isTTY,...t});return mu(r)}var gu={stdout:Wn({isTTY:Un.isatty(1)}),stderr:Wn({isTTY:Un.isatty(2)})},Gn=gu;u();function Yn(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,s="";do s+=e.substr(o,n-o)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return s+=e.slice(o),s}function Hn(e,t,r,n){let i=0,o="";do{let s=e[n-1]==="\r";o+=e.substr(i,(s?n-1:n)-i)+t+(s?`\r
|
|
11
11
|
`:`
|
|
12
12
|
`)+r,i=n+1,n=e.indexOf(`
|
|
13
|
-
`,i)}while(n!==-1);return o+=e.slice(i),o}var{stdout:
|
|
14
|
-
`);return o!==-1&&(t=
|
|
13
|
+
`,i)}while(n!==-1);return o+=e.slice(i),o}var{stdout:Vn,stderr:Jn}=Gn,Er=Symbol("GENERATOR"),Le=Symbol("STYLER"),tt=Symbol("IS_EMPTY"),Kn=["ansi","ansi","ansi256","ansi16m"],je=Object.create(null),vu=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Vn?Vn.level:0;e.level=t.level===void 0?r:t.level};var xu=e=>{let t=(...r)=>r.join(" ");return vu(t,e),Object.setPrototypeOf(t,rt.prototype),t};function rt(e){return xu(e)}Object.setPrototypeOf(rt.prototype,Function.prototype);for(let[e,t]of Object.entries(ie))je[e]={get(){let r=Dt(this,Rr(t.open,t.close,this[Le]),this[tt]);return Object.defineProperty(this,e,{value:r}),r}};je.visible={get(){let e=Dt(this,this[Le],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Tr=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?ie[r].ansi16m(...n):t==="ansi256"?ie[r].ansi256(ie.rgbToAnsi256(...n)):ie[r].ansi(ie.rgbToAnsi(...n)):e==="hex"?Tr("rgb",t,r,...ie.hexToRgb(...n)):ie[r][e](...n),wu=["rgb","hex","ansi256"];for(let e of wu){je[e]={get(){let{level:r}=this;return function(...n){let i=Rr(Tr(e,Kn[r],"color",...n),ie.color.close,this[Le]);return Dt(this,i,this[tt])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);je[t]={get(){let{level:r}=this;return function(...n){let i=Rr(Tr(e,Kn[r],"bgColor",...n),ie.bgColor.close,this[Le]);return Dt(this,i,this[tt])}}}}var bu=Object.defineProperties(()=>{},{...je,level:{enumerable:!0,get(){return this[Er].level},set(e){this[Er].level=e}}}),Rr=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Dt=(e,t,r)=>{let n=(...i)=>Su(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,bu),n[Er]=e,n[Le]=t,n[tt]=r,n},Su=(e,t)=>{if(e.level<=0||!t)return e[tt]?"":t;let r=e[Le];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Yn(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
|
|
14
|
+
`);return o!==-1&&(t=Hn(t,i,n,o)),n+t+i};Object.defineProperties(rt.prototype,je);var Eu=rt(),Ld=rt({level:Jn?Jn.level:0});var Q=Eu;u();import{spawn as Tu,execSync as Ru}from"child_process";import Fr from"node:process";import Au from"node:os";import zn from"node:tty";await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:t}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=t(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:r}=await import("module");globalThis.require=r.createRequire(import.meta.url)}})();var Xn=(e=0)=>t=>`\x1B[${t+e}m`,Qn=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Zn=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function Ou(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,o]of Object.entries(n))t[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[i]=t[i],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi=Xn(),t.color.ansi256=Qn(),t.color.ansi16m=Zn(),t.bgColor.ansi=Xn(10),t.bgColor.ansi256=Qn(10),t.bgColor.ansi16m=Zn(10),Object.defineProperties(t,{rgbToAnsi256:{value:(r,n,i)=>r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:r=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!n)return[0,0,0];let{colorString:i}=n.groups;i.length===3&&(i=[...i].map(s=>s+s).join(""));let o=Number.parseInt(i,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:r=>t.rgbToAnsi256(...t.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,i,o;if(r>=232)n=((r-232)*10+8)/255,i=n,o=n;else{r-=16;let l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,o=l%6/5}let s=Math.max(n,i,o)*2;if(s===0)return 30;let a=30+(Math.round(o)<<2|Math.round(i)<<1|Math.round(n));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,i)=>t.ansi256ToAnsi(t.rgbToAnsi256(r,n,i)),enumerable:!1},hexToAnsi:{value:r=>t.ansi256ToAnsi(t.hexToAnsi256(r)),enumerable:!1}}),t}var Cu=Ou(),le=Cu;function te(e,t=Fr.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:I}=Fr,Ft;te("no-color")||te("no-colors")||te("color=false")||te("color=never")?Ft=0:(te("color")||te("colors")||te("color=true")||te("color=always"))&&(Ft=1);function Du(){if("FORCE_COLOR"in I)return I.FORCE_COLOR==="true"?1:I.FORCE_COLOR==="false"?0:I.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(I.FORCE_COLOR,10),3)}function Fu(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Bu(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=Du();n!==void 0&&(Ft=n);let i=r?Ft:n;if(i===0)return 0;if(r){if(te("color=16m")||te("color=full")||te("color=truecolor"))return 3;if(te("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let o=i||0;if(I.TERM==="dumb")return o;if(Fr.platform==="win32"){let s=Au.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in I)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in I)||I.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in I)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(I.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in I&&"AGENT_NAME"in I)return 1;if(I.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in I){let s=Number.parseInt((I.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(I.TERM_PROGRAM){case"iTerm.app":return s>=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:o}function ei(e,t={}){let r=Bu(e,{streamIsTTY:e&&e.isTTY,...t});return Fu(r)}var Pu={stdout:ei({isTTY:zn.isatty(1)}),stderr:ei({isTTY:zn.isatty(2)})},Nu=Pu;function Iu(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,s="";do s+=e.substr(o,n-o)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return s+=e.slice(o),s}function Mu(e,t,r,n){let i=0,o="";do{let s=e[n-1]==="\r";o+=e.substr(i,(s?n-1:n)-i)+t+(s?`\r
|
|
15
|
+
`:`
|
|
16
|
+
`)+r,i=n+1,n=e.indexOf(`
|
|
17
|
+
`,i)}while(n!==-1);return o+=e.slice(i),o}var{stdout:ti,stderr:ri}=Nu,Or=Symbol("GENERATOR"),$e=Symbol("STYLER"),nt=Symbol("IS_EMPTY"),ni=["ansi","ansi","ansi256","ansi16m"],Ue=Object.create(null),ku=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=ti?ti.level:0;e.level=t.level===void 0?r:t.level},qu=e=>{let t=(...r)=>r.join(" ");return ku(t,e),Object.setPrototypeOf(t,it.prototype),t};function it(e){return qu(e)}Object.setPrototypeOf(it.prototype,Function.prototype);for(let[e,t]of Object.entries(le))Ue[e]={get(){let r=Bt(this,Ar(t.open,t.close,this[$e]),this[nt]);return Object.defineProperty(this,e,{value:r}),r}};Ue.visible={get(){let e=Bt(this,this[$e],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Cr=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?le[r].ansi16m(...n):t==="ansi256"?le[r].ansi256(le.rgbToAnsi256(...n)):le[r].ansi(le.rgbToAnsi(...n)):e==="hex"?Cr("rgb",t,r,...le.hexToRgb(...n)):le[r][e](...n),Lu=["rgb","hex","ansi256"];for(let e of Lu){Ue[e]={get(){let{level:r}=this;return function(...n){let i=Ar(Cr(e,ni[r],"color",...n),le.color.close,this[$e]);return Bt(this,i,this[nt])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Ue[t]={get(){let{level:r}=this;return function(...n){let i=Ar(Cr(e,ni[r],"bgColor",...n),le.bgColor.close,this[$e]);return Bt(this,i,this[nt])}}}}var ju=Object.defineProperties(()=>{},{...Ue,level:{enumerable:!0,get(){return this[Or].level},set(e){this[Or].level=e}}}),Ar=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Bt=(e,t,r)=>{let n=(...i)=>$u(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,ju),n[Or]=e,n[$e]=t,n[nt]=r,n},$u=(e,t)=>{if(e.level<=0||!t)return e[nt]?"":t;let r=e[$e];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Iu(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
|
|
18
|
+
`);return o!==-1&&(t=Mu(t,i,n,o)),n+t+i};Object.defineProperties(it.prototype,Ue);var Uu=it(),Yd=it({level:ri?ri.level:0}),Wu=Uu,Gu={win32:e=>({cmd:"cmd.exe",args:["/d","/s","/c",e]})},Yu={"cp -rf":{win32:e=>{let t="xcopy /E /S /G /Q /Y",r=e.map(n=>n.endsWith("\\")?n:`${n}\\`);return`${t} ${r.join(" ")}`}},ln:{win32:e=>`mklink /D ${e.join(" ")}`},pkill:{win32:e=>`taskkill /T /F /pid ${e.join(" ")}`}},Hu=(e,t,r)=>{let n={...Gu,...t},i={...Yu,...r},o=a=>{let l=process.platform,p=n[l];if(p)return p(a);let[f,...h]=a.split(" ");return{cmd:f,args:h}},s=(a=>{let l=Object.entries(i);for(let[p,f]of l)if(a.startsWith(p)){let h=process.platform,y=f[h];if(!y)break;let d=a.slice(p.length).split(" ");return`${y(d)} ${a.slice(p.length)}`}return a})(e);return o(s)},Vu=process.platform==="linux"||process.platform==="darwin",Dr=process.platform==="win32",Ju={stdio:"pipe",shell:!0,detached:!Dr,env:process.env},Ku={log:!0,commandTranslations:{},shellTranslations:{},...Ju},ii=({log:e=!0,commandTranslations:t={},shellTranslations:r={},...n}=Ku)=>{let i=null;return{childProcess:i,async run(o){if(i)throw new Error("Only one command per shell.");if(typeof o=="object"){let l=process.platform;o.posix&&Vu&&(l="posix");let p=o[l];if(!p)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:o}));o=p}let{cmd:s,args:a}=Hu(o,r,t);return e&&console.log(Wu.dim(`
|
|
15
19
|
$ ${o}
|
|
16
|
-
`)),await new Promise((
|
|
17
|
-
`))this.#i+=Math.max(1,Math.ceil((0
|
|
18
|
-
`),this)}stop(){return this.#a?(clearInterval(this.#c),this.#c=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&
|
|
19
|
-
`),this}};function
|
|
20
|
+
`)),await new Promise((l,p)=>{i=Tu(s,a,n);let f="",h="";if(!i)throw new Error("Child process was not set.");let y=d=>{i=null;let _={code:d,stdout:f,stderr:h};d===0||d===1&&!Dr?l(_):p(_)};i.stdout?.on("data",d=>{f+=d.toString()}),i.stderr?.on("data",d=>{h+=d.toString()}),i.on("close",y),i.on("exit",y),i.on("error",y),i.stdout?.pipe(process.stdout),i.stderr?.pipe(process.stderr)})},kill(o="SIGKILL"){if(i?.pid)if(Dr)Ru(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,o);return!0}}};u();import ir from"node:process";u();import gi from"node:process";u();var yi=qe(ui(),1),mi=qe(pi(),1);import Qu from"node:process";var Zu=(0,yi.default)(()=>{(0,mi.default)(()=>{Qu.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),_i=Zu;var Lt=!1,He={};He.show=(e=gi.stderr)=>{!e.isTTY||(Lt=!1,e.write("\x1B[?25h"))};He.hide=(e=gi.stderr)=>{!e.isTTY||(_i(),Lt=!0,e.write("\x1B[?25l"))};He.toggle=(e,t)=>{e!==void 0&&(Lt=e),Lt?He.show(t):He.hide(t)};var Ir=He;var vt=qe(bi(),1);u();u();function st(){return process.platform!=="win32"?process.env.TERM!=="linux":Boolean(process.env.CI)||Boolean(process.env.WT_SESSION)||process.env.ConEmuTask==="{cmd::Cmder}"||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"}var el={info:Q.blue("ℹ"),success:Q.green("✔"),warning:Q.yellow("⚠"),error:Q.red("✖")},tl={info:Q.blue("i"),success:Q.green("√"),warning:Q.yellow("‼"),error:Q.red("×")},rl=st()?el:tl,at=rl;u();u();function Mr({onlyFirst:e=!1}={}){let t=["[\\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(t,e?void 0:"g")}function kr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Mr(),"")}var $o=qe(Fi(),1);u();function Lr({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}u();var jo=qe(Lo(),1);import se from"node:process";import fc from"node:readline";var cc=3,gn=class{#r=0;#f=new jo.BufferListStream;#i;#n;constructor(){this.#f.pipe(se.stdout);let t=this;this.#i=function(r,n,...i){let{stdin:o}=se;if(t.#r>0||o.emit===t.#i){if(r==="keypress")return;r==="data"&&n.includes(cc)&&se.emit("SIGINT"),Reflect.apply(t.#i,this,[r,n,...i])}else Reflect.apply(se.stdin.emit,this,[r,n,...i])}}start(){this.#r++,this.#r===1&&this._realStart()}stop(){if(this.#r<=0)throw new Error("`stop` called more times than `start`");this.#r--,this.#r===0&&this._realStop()}_realStart(){se.platform!=="win32"&&(this.#n=fc.createInterface({input:se.stdin,output:this.#f}),this.#n.on("SIGINT",()=>{se.listenerCount("SIGINT")===0?se.emit("SIGINT"):(this.#n.close(),se.kill(se.pid,"SIGINT"))}))}_realStop(){se.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var or,Uo=class{#r=0;#f=!1;#i=0;#n=0;#e;#s;#t;#c;#h;#a;#u;#l;#d;#o;color;constructor(t){or||(or=new gn),typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:ir.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#h=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:Lr({stream:this.#t}),this.#u=typeof this.#e.isSilent=="boolean"?this.#e.isSilent:!1,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.indent=this.#e.indent,ir.env.NODE_ENV==="test"&&(this._stream=this.#t,this._isEnabled=this.#a,Object.defineProperty(this,"_linesToClear",{get(){return this.#r},set(r){this.#r=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#n}}),Object.defineProperty(this,"_lineCount",{get(){return this.#i}}))}get indent(){return this.#l}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#l=t,this.updateLineCount()}get interval(){return this.#h||this.#s.interval||100}get spinner(){return this.#s}set spinner(t){if(this.#n=0,this.#h=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#s=t}else if(!st())this.#s=vt.default.line;else if(t===void 0)this.#s=vt.default.dots;else if(t!=="default"&&vt.default[t])this.#s=vt.default[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#d}set text(t){this.#d=t||"",this.updateLineCount()}get prefixText(){return this.#o}set prefixText(t){this.#o=t||"",this.updateLineCount()}get isSpinning(){return this.#c!==void 0}getFullPrefixText(t=this.#o,r=" "){return typeof t=="string"&&t!==""?t+r:typeof t=="function"?t()+r:""}updateLineCount(){let t=this.#t.columns||80,r=this.getFullPrefixText(this.#o,"-");this.#i=0;for(let n of kr(" ".repeat(this.#l)+r+"--"+this.#d).split(`
|
|
21
|
+
`))this.#i+=Math.max(1,Math.ceil((0,$o.default)(n)/t))}get isEnabled(){return this.#a&&!this.#u}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#a=t}get isSilent(){return this.#u}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#u=t}frame(){let{frames:t}=this.#s,r=t[this.#n];this.color&&(r=Q[this.color](r)),this.#n=++this.#n%t.length;let n=typeof this.#o=="string"&&this.#o!==""?this.#o+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.#a||!this.#t.isTTY)return this;this.#t.cursorTo(0);for(let t=0;t<this.#r;t++)t>0&&this.#t.moveCursor(0,-1),this.#t.clearLine(1);return(this.#l||this.lastIndent!==this.#l)&&this.#t.cursorTo(this.#l),this.lastIndent=this.#l,this.#r=0,this}render(){return this.#u?this:(this.clear(),this.#t.write(this.frame()),this.#r=this.#i,this)}start(t){return t&&(this.text=t),this.#u?this:this.#a?this.isSpinning?this:(this.#e.hideCursor&&Ir.hide(this.#t),this.#e.discardStdin&&ir.stdin.isTTY&&(this.#f=!0,or.start()),this.render(),this.#c=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
|
|
22
|
+
`),this)}stop(){return this.#a?(clearInterval(this.#c),this.#c=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&Ir.show(this.#t),this.#e.discardStdin&&ir.stdin.isTTY&&this.#f&&(or.stop(),this.#f=!1),this):this}succeed(t){return this.stopAndPersist({symbol:at.success,text:t})}fail(t){return this.stopAndPersist({symbol:at.error,text:t})}warn(t){return this.stopAndPersist({symbol:at.warning,text:t})}info(t){return this.stopAndPersist({symbol:at.info,text:t})}stopAndPersist(t={}){if(this.#u)return this;let r=t.prefixText||this.#o,n=t.text||this.text,i=typeof n=="string"?" "+n:"";return this.stop(),this.#t.write(`${this.getFullPrefixText(r," ")}${t.symbol||" "}${i}
|
|
23
|
+
`),this}};function vn(e){return new Uo(e)}u();import{dirname as hc,resolve as dc}from"path";import{fileURLToPath as pc}from"url";var Wo={default:[],react:["@tsmodule/react","react","react-dom"]},xn={default:["@types/node"],react:["next","@types/react","@types/react-dom","eslint","eslint-config-next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]},Go=dc(hc(pc(import.meta.url)),"..");u();var tu=qe(za(),1);import{resolve as eu}from"path";var kn=async(e,t)=>{let r=eu(Go,`./templates/${e}`),n=eu(t);await(0,tu.copy)(r,n,{overwrite:!0,recursive:!0})};u();import ru from"fs/promises";import{resolve as Td}from"path";var nu=async e=>{let t=Td(process.cwd(),e,"package.json"),r=await ru.readFile(t,"utf-8"),n=JSON.parse(r);n.name=e,await ru.writeFile(t,JSON.stringify(n,null,2))};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var Yp=async(e,{react:t=!1})=>{let r=ii(),n=vn(`Creating new module ${Q.blueBright(e)}.`).start();await kn("default",e),t&&await kn("react",e),await nu(e),n.succeed("Project created."),process.chdir(e);let i=[],o=["@tsmodule/tsmodule"];t?(i.push(...Wo.react),o.push(...xn.react)):o.push(...xn.default),i.length&&await r.run(`yarn add ${i.join(" ")}`),o.length&&await r.run(`yarn add -D ${o.join(" ")}`),n.succeed("Dependencies installed."),await r.run("git init"),n.succeed("Git initialized.")};export{Yp as create};
|
|
20
24
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|