@tsmodule/tsmodule 40.0.11 → 40.0.14
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/bin.d.ts +2 -0
- package/dist/bin.js +7 -0
- package/dist/commands/build/index.d.ts +1 -0
- package/dist/commands/build/index.js +6 -62
- package/dist/commands/build/lib/emitTsDeclarations.js +1 -18
- package/dist/commands/convert/index.js +1 -51
- package/dist/commands/create/index.js +1 -51
- package/dist/commands/create/lib/templates.js +1 -51
- package/dist/commands/dev/index.js +3 -66
- package/dist/commands/execute/index.js +1 -10
- package/dist/commands/index.js +1 -66
- package/dist/commands/normalize/index.js +1 -47
- package/dist/commands/normalize/lib/typescriptApi.js +1 -14
- package/dist/constants.js +1 -4
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -89
- package/dist/loader/index.js +1 -12
- package/dist/loader/types.js +0 -3
- package/dist/specification/index.js +1 -4
- package/dist/specification/types.js +0 -3
- package/dist/types/index.js +1 -66
- package/dist/utils/cwd.js +1 -8
- package/dist/utils/packageJson.js +1 -4
- package/dist/utils/programCatch.d.ts +1 -0
- package/dist/utils/programCatch.js +1 -0
- package/dist/utils/require.js +1 -4
- package/dist/utils/resolve.js +1 -4
- package/dist/utils/showProgress.d.ts +11 -0
- package/dist/utils/showProgress.js +1 -0
- package/dist/utils/stdin.js +1 -12
- package/package.json +14 -16
- package/templates/default/.eslintrc +0 -52
- package/templates/default/.github/workflows/ci.yml +0 -30
- package/templates/default/.gitignore +0 -10
- package/templates/default/LICENSE +0 -16
- package/templates/default/README.md +0 -35
- package/templates/default/package.json +0 -5
- package/templates/default/src/index.ts +0 -4
- package/templates/default/test/example.test.ts +0 -7
- package/templates/default/tsconfig.json +0 -40
- package/templates/react/.eslintrc +0 -54
- package/templates/react/.gitignore +0 -11
- package/templates/react/LICENSE +0 -16
- package/templates/react/README.md +0 -48
- package/templates/react/next-env.d.ts +0 -5
- package/templates/react/next.config.js +0 -18
- package/templates/react/package.json +0 -5
- package/templates/react/postcss.config.js +0 -11
- package/templates/react/public/vercel.svg +0 -4
- package/templates/react/src/components/Card/index.css +0 -18
- package/templates/react/src/components/Card/index.tsx +0 -13
- package/templates/react/src/components/CardGrid/index.tsx +0 -29
- package/templates/react/src/components/Footer/index.tsx +0 -19
- package/templates/react/src/components/GetStarted/index.tsx +0 -8
- package/templates/react/src/components/Welcome/index.tsx +0 -7
- package/templates/react/src/components/index.css +0 -19
- package/templates/react/src/components/index.ts +0 -4
- package/templates/react/src/index.css +0 -20
- package/templates/react/src/index.ts +0 -1
- package/templates/react/src/pages/_app.tsx +0 -14
- package/templates/react/src/pages/api/hello.ts +0 -13
- package/templates/react/src/pages/index.tsx +0 -26
- package/templates/react/tailwind.config.js +0 -19
@@ -1,66 +1,3 @@
|
|
1
|
-
"
|
2
|
-
|
3
|
-
|
4
|
-
var Xc=Object.create;var Ro=Object.defineProperty;var Zc=Object.getOwnPropertyDescriptor;var zc=Object.getOwnPropertyNames;var eA=Object.getPrototypeOf,tA=Object.prototype.hasOwnProperty;var B=(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 g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var rA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zc(t))!tA.call(e,i)&&i!==r&&Ro(e,i,{get:()=>t[i],enumerable:!(n=Zc(t,i))||n.enumerable});return e};var qe=(e,t,r)=>(r=e!=null?Xc(eA(e)):{},rA(t||!e||!e.__esModule?Ro(r,"default",{value:e,enumerable:!0}):r,e));var Vo=g((Bm,Mn)=>{"use strict";var Wo=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Mn.exports=Wo;Mn.exports.default=Wo});var Zo=g((xm,Cr)=>{"use strict";var jA=Vo(),yr=new WeakMap,Xo=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(yr.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return jA(s,e),yr.set(s,n),s};Cr.exports=Xo;Cr.exports.default=Xo;Cr.exports.callCount=e=>{if(!yr.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return yr.get(e)}});var zo=g((wm,br)=>{br.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&br.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&br.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ia=g((Rm,Ct)=>{var K=global.process,et=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"};et(K)?(ea=B("assert"),mt=zo(),ta=/^win/i.test(K.platform),$t=B("events"),typeof $t!="function"&&($t=$t.EventEmitter),K.__signal_exit_emitter__?te=K.__signal_exit_emitter__:(te=K.__signal_exit_emitter__=new $t,te.count=0,te.emitted={}),te.infinite||(te.setMaxListeners(1/0),te.infinite=!0),Ct.exports=function(e,t){if(!et(global.process))return function(){};ea.equal(typeof e,"function","a callback must be provided for exit handler"),yt===!1&&Fn();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){te.removeListener(r,e),te.listeners("exit").length===0&&te.listeners("afterexit").length===0&&vr()};return te.on(r,e),n},vr=function(){!yt||!et(global.process)||(yt=!1,mt.forEach(function(t){try{K.removeListener(t,Sr[t])}catch{}}),K.emit=Br,K.reallyExit=qn,te.count-=1)},Ct.exports.unload=vr,tt=function(t,r,n){te.emitted[t]||(te.emitted[t]=!0,te.emit(t,r,n))},Sr={},mt.forEach(function(e){Sr[e]=function(){if(!!et(global.process)){var r=K.listeners(e);r.length===te.count&&(vr(),tt("exit",null,e),tt("afterexit",null,e),ta&&e==="SIGHUP"&&(e="SIGINT"),K.kill(K.pid,e))}}}),Ct.exports.signals=function(){return mt},yt=!1,Fn=function(){yt||!et(global.process)||(yt=!0,te.count+=1,mt=mt.filter(function(t){try{return K.on(t,Sr[t]),!0}catch{return!1}}),K.emit=na,K.reallyExit=ra)},Ct.exports.load=Fn,qn=K.reallyExit,ra=function(t){!et(global.process)||(K.exitCode=t||0,tt("exit",K.exitCode,null),tt("afterexit",K.exitCode,null),qn.call(K,K.exitCode))},Br=K.emit,na=function(t,r){if(t==="exit"&&et(global.process)){r!==void 0&&(K.exitCode=r);var n=Br.apply(this,arguments);return tt("exit",K.exitCode,null),tt("afterexit",K.exitCode,null),n}else return Br.apply(this,arguments)}):Ct.exports=function(){return function(){}};var ea,mt,ta,$t,te,vr,tt,Sr,yt,Fn,qn,ra,Br,na});var la=g((km,UA)=>{UA.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 Aa=g((Lm,ca)=>{"use strict";var wr=Object.assign({},la()),fa=Object.keys(wr);Object.defineProperty(wr,"random",{get(){let e=Math.floor(Math.random()*fa.length),t=fa[e];return wr[t]}});ca.exports=wr});var ha=g((Gm,Rr)=>{var WA=function(){"use strict";function e(o,a,u,f){var l;typeof a=="object"&&(u=a.depth,f=a.prototype,l=a.filter,a=a.circular);var h=[],A=[],C=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof u>"u"&&(u=1/0);function E(_,v){if(_===null)return null;if(v==0)return _;var b,O;if(typeof _!="object")return _;if(e.__isArray(_))b=[];else if(e.__isRegExp(_))b=new RegExp(_.source,s(_)),_.lastIndex&&(b.lastIndex=_.lastIndex);else if(e.__isDate(_))b=new Date(_.getTime());else{if(C&&Buffer.isBuffer(_))return Buffer.allocUnsafe?b=Buffer.allocUnsafe(_.length):b=new Buffer(_.length),_.copy(b),b;typeof f>"u"?(O=Object.getPrototypeOf(_),b=Object.create(O)):(b=Object.create(f),O=f)}if(a){var P=h.indexOf(_);if(P!=-1)return A[P];h.push(_),A.push(b)}for(var U in _){var x;O&&(x=Object.getOwnPropertyDescriptor(O,U)),!(x&&x.set==null)&&(b[U]=E(_[U],v-1))}return b}return E(o,u)}e.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};function t(o){return Object.prototype.toString.call(o)}e.__objToStr=t;function r(o){return typeof o=="object"&&t(o)==="[object Date]"}e.__isDate=r;function n(o){return typeof o=="object"&&t(o)==="[object Array]"}e.__isArray=n;function i(o){return typeof o=="object"&&t(o)==="[object RegExp]"}e.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return e.__getRegExpFlags=s,e}();typeof Rr=="object"&&Rr.exports&&(Rr.exports=WA)});var da=g((Um,pa)=>{var VA=ha();pa.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=VA(t[r]))}),e}});var _a=g((Km,ga)=>{ga.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 Ca=g((Jm,Gn)=>{"use strict";var XA=da(),Kt=_a(),ma={nul:0,control:0};Gn.exports=function(t){return ya(t,ma)};Gn.exports.config=function(e){return e=XA(e||{},ma),function(r){return ya(r,e)}};function ya(e,t){if(typeof e!="string")return Ea(e,t);for(var r=0,n=0;n<e.length;n++){var i=Ea(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function Ea(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:ZA(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 ZA(e){var t=0,r=Kt.length-1,n;if(e<Kt[0][0]||e>Kt[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>Kt[n][1])t=n+1;else if(e<Kt[n][0])r=n-1;else return!0;return!1}});var Kn=g((Wm,ba)=>{ba.exports=B("stream")});var xa=g((Vm,Ba)=>{"use strict";function va(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 zA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?va(Object(r),!0).forEach(function(n){eh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):va(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function th(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sa(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 rh(e,t,r){return t&&Sa(e.prototype,t),r&&Sa(e,r),e}var nh=B("buffer"),Qr=nh.Buffer,ih=B("util"),Jn=ih.inspect,sh=Jn&&Jn.custom||"inspect";function oh(e,t,r){Qr.prototype.copy.call(e,t,r)}Ba.exports=function(){function e(){th(this,e),this.head=null,this.tail=null,this.length=0}return rh(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 Qr.alloc(0);for(var n=Qr.allocUnsafe(r>>>0),i=this.head,s=0;i;)oh(i.data,n,s),s+=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,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=Qr.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:sh,value:function(r,n){return Jn(this,zA({},n,{depth:0,customInspect:!1}))}}]),e}()});var Wn=g((Xm,Ra)=>{"use strict";function ah(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(Yn,this,e)):process.nextTick(Yn,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Ir,r):(r._writableState.errorEmitted=!0,process.nextTick(wa,r,s)):process.nextTick(wa,r,s):t?(process.nextTick(Ir,r),t(s)):process.nextTick(Ir,r)}),this)}function wa(e,t){Yn(e,t),Ir(e)}function Ir(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function uh(){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 Yn(e,t){e.emit("error",t)}function lh(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}Ra.exports={destroy:ah,undestroy:uh,errorOrDestroy:lh}});var He=g((Zm,Ta)=>{"use strict";var Ia={};function pe(e,t,r){r||(r=Error);function n(s,o,a){return typeof t=="string"?t:t(s,o,a)}class i extends r{constructor(o,a,u){super(n(o,a,u))}}i.prototype.name=r.name,i.prototype.code=e,Ia[e]=i}function Qa(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 fh(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function ch(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Ah(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}pe("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);pe("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&fh(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(ch(e," argument"))i=`The ${e} ${n} ${Qa(t,"type")}`;else{let s=Ah(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${Qa(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);pe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");pe("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});pe("ERR_STREAM_PREMATURE_CLOSE","Premature close");pe("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});pe("ERR_MULTIPLE_CALLBACK","Callback called multiple times");pe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");pe("ERR_STREAM_WRITE_AFTER_END","write after end");pe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);pe("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);pe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Ta.exports.codes=Ia});var Vn=g((zm,Oa)=>{"use strict";var hh=He().codes.ERR_INVALID_OPT_VALUE;function ph(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function dh(e,t,r,n){var i=ph(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new hh(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}Oa.exports={getHighWaterMark:dh}});var Da=g((ey,Xn)=>{typeof Object.create=="function"?Xn.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Xn.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 rt=g((ty,zn)=>{try{if(Zn=B("util"),typeof Zn.inherits!="function")throw"";zn.exports=Zn.inherits}catch{zn.exports=Da()}var Zn});var La=g((ry,ka)=>{ka.exports=B("util").deprecate});var ri=g((ny,Ha)=>{"use strict";Ha.exports=W;function Na(e){var t=this;this.next=null,this.entry=null,this.finish=function(){jh(t,e)}}var vt;W.WritableState=Yt;var gh={deprecate:La()},Ma=Kn(),Or=B("buffer").Buffer,_h=global.Uint8Array||function(){};function Eh(e){return Or.from(e)}function mh(e){return Or.isBuffer(e)||e instanceof _h}var ti=Wn(),yh=Vn(),Ch=yh.getHighWaterMark,je=He().codes,bh=je.ERR_INVALID_ARG_TYPE,vh=je.ERR_METHOD_NOT_IMPLEMENTED,Sh=je.ERR_MULTIPLE_CALLBACK,Bh=je.ERR_STREAM_CANNOT_PIPE,xh=je.ERR_STREAM_DESTROYED,wh=je.ERR_STREAM_NULL_VALUES,Rh=je.ERR_STREAM_WRITE_AFTER_END,Qh=je.ERR_UNKNOWN_ENCODING,St=ti.errorOrDestroy;rt()(W,Ma);function Ih(){}function Yt(e,t,r){vt=vt||nt(),e=e||{},typeof r!="boolean"&&(r=t instanceof vt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=Ch(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){Nh(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 Na(this)}Yt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Yt.prototype,"buffer",{get:gh.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Tr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Tr=Function.prototype[Symbol.hasInstance],Object.defineProperty(W,Symbol.hasInstance,{value:function(t){return Tr.call(this,t)?!0:this!==W?!1:t&&t._writableState instanceof Yt}})):Tr=function(t){return t instanceof this};function W(e){vt=vt||nt();var t=this instanceof vt;if(!t&&!Tr.call(W,this))return new W(e);this._writableState=new Yt(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)),Ma.call(this)}W.prototype.pipe=function(){St(this,new Bh)};function Th(e,t){var r=new Rh;St(e,r),process.nextTick(t,r)}function Oh(e,t,r,n){var i;return r===null?i=new wh:typeof r!="string"&&!t.objectMode&&(i=new bh("chunk",["string","Buffer"],r)),i?(St(e,i),process.nextTick(n,i),!1):!0}W.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&mh(e);return s&&!Or.isBuffer(e)&&(e=Eh(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=Ih),n.ending?Th(this,r):(s||Oh(this,n,e,r))&&(n.pendingcb++,i=kh(this,n,s,e,t,r)),i};W.prototype.cork=function(){this._writableState.corked++};W.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Fa(this,e))};W.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 Qh(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Dh(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Or.from(t,r)),t}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function kh(e,t,r,n,i,s){if(!r){var o=Dh(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else ei(e,t,!1,a,n,i,s);return u}function ei(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new xh("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function Lh(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(Jt,e,t),e._writableState.errorEmitted=!0,St(e,n)):(i(n),e._writableState.errorEmitted=!0,St(e,n),Jt(e,t))}function Ph(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Nh(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new Sh;if(Ph(r),t)Lh(e,r,n,t,i);else{var s=qa(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Fa(e,r),n?process.nextTick(Pa,e,r,s,i):Pa(e,r,s,i)}}function Pa(e,t,r,n){r||Mh(e,t),t.pendingcb--,n(),Jt(e,t)}function Mh(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Fa(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,ei(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new Na(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback,h=t.objectMode?1:u.length;if(ei(e,t,!1,h,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}W.prototype._write=function(e,t,r){r(new vh("_write()"))};W.prototype._writev=null;W.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||Hh(this,n,r),this};Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function qa(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Fh(e,t){e._final(function(r){t.pendingcb--,r&&St(e,r),t.prefinished=!0,e.emit("prefinish"),Jt(e,t)})}function qh(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(Fh,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Jt(e,t){var r=qa(t);if(r&&(qh(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 Hh(e,t,r){t.ending=!0,Jt(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function jh(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(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});W.prototype.destroy=ti.destroy;W.prototype._undestroy=ti.undestroy;W.prototype._destroy=function(e,t){t(e)}});var nt=g((iy,$a)=>{"use strict";var $h=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};$a.exports=xe;var ja=si(),ii=ri();rt()(xe,ja);for(ni=$h(ii.prototype),Dr=0;Dr<ni.length;Dr++)kr=ni[Dr],xe.prototype[kr]||(xe.prototype[kr]=ii.prototype[kr]);var ni,kr,Dr;function xe(e){if(!(this instanceof xe))return new xe(e);ja.call(this,e),ii.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",Gh)))}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(xe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(xe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Gh(){this._writableState.ended||process.nextTick(Uh,this)}function Uh(e){e.end()}Object.defineProperty(xe.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 Ka=g((oi,Ua)=>{var Lr=B("buffer"),we=Lr.Buffer;function Ga(e,t){for(var r in e)t[r]=e[r]}we.from&&we.alloc&&we.allocUnsafe&&we.allocUnsafeSlow?Ua.exports=Lr:(Ga(Lr,oi),oi.Buffer=it);function it(e,t,r){return we(e,t,r)}it.prototype=Object.create(we.prototype);Ga(we,it);it.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return we(e,t,r)};it.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=we(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};it.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return we(e)};it.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Lr.SlowBuffer(e)}});var li=g(Ya=>{"use strict";var ui=Ka().Buffer,Ja=ui.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 Kh(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 Jh(e){var t=Kh(e);if(typeof t!="string"&&(ui.isEncoding===Ja||!Ja(e)))throw new Error("Unknown encoding: "+e);return t||e}Ya.StringDecoder=Wt;function Wt(e){this.encoding=Jh(e);var t;switch(this.encoding){case"utf16le":this.text=zh,this.end=ep,t=4;break;case"utf8":this.fillLast=Vh,t=4;break;case"base64":this.text=tp,this.end=rp,t=3;break;default:this.write=np,this.end=ip;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ui.allocUnsafe(t)}Wt.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||""};Wt.prototype.end=Zh;Wt.prototype.text=Xh;Wt.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 ai(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Yh(e,t,r){var n=t.length-1;if(n<r)return 0;var i=ai(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=ai(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=ai(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Wh(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 Vh(e){var t=this.lastTotal-this.lastNeed,r=Wh(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 Xh(e,t){var r=Yh(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 Zh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function zh(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 ep(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 tp(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 rp(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function np(e){return e.toString(this.encoding)}function ip(e){return e&&e.length?this.write(e):""}});var Pr=g((oy,Xa)=>{"use strict";var Wa=He().codes.ERR_STREAM_PREMATURE_CLOSE;function sp(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 op(){}function ap(e){return e.setHeader&&typeof e.abort=="function"}function Va(e,t,r){if(typeof t=="function")return Va(e,null,t);t||(t={}),r=sp(r||op);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,s=function(){e.writable||a()},o=e._writableState&&e._writableState.finished,a=function(){i=!1,o=!0,n||r.call(e)},u=e._readableState&&e._readableState.endEmitted,f=function(){n=!1,u=!0,i||r.call(e)},l=function(E){r.call(e,E)},h=function(){var E;if(n&&!u)return(!e._readableState||!e._readableState.ended)&&(E=new Wa),r.call(e,E);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(E=new Wa),r.call(e,E)},A=function(){e.req.on("finish",a)};return ap(e)?(e.on("complete",a),e.on("abort",h),e.req?A():e.on("request",A)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",f),e.on("finish",a),t.error!==!1&&e.on("error",l),e.on("close",h),function(){e.removeListener("complete",a),e.removeListener("abort",h),e.removeListener("request",A),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",f),e.removeListener("error",l),e.removeListener("close",h)}}Xa.exports=Va});var za=g((ay,Za)=>{"use strict";var Nr;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 up=Pr(),Ge=Symbol("lastResolve"),st=Symbol("lastReject"),Vt=Symbol("error"),Mr=Symbol("ended"),ot=Symbol("lastPromise"),fi=Symbol("handlePromise"),at=Symbol("stream");function Ue(e,t){return{value:e,done:t}}function lp(e){var t=e[Ge];if(t!==null){var r=e[at].read();r!==null&&(e[ot]=null,e[Ge]=null,e[st]=null,t(Ue(r,!1)))}}function fp(e){process.nextTick(lp,e)}function cp(e,t){return function(r,n){e.then(function(){if(t[Mr]){r(Ue(void 0,!0));return}t[fi](r,n)},n)}}var Ap=Object.getPrototypeOf(function(){}),hp=Object.setPrototypeOf((Nr={get stream(){return this[at]},next:function(){var t=this,r=this[Vt];if(r!==null)return Promise.reject(r);if(this[Mr])return Promise.resolve(Ue(void 0,!0));if(this[at].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[Vt]?a(t[Vt]):o(Ue(void 0,!0))})});var n=this[ot],i;if(n)i=new Promise(cp(n,this));else{var s=this[at].read();if(s!==null)return Promise.resolve(Ue(s,!1));i=new Promise(this[fi])}return this[ot]=i,i}},$e(Nr,Symbol.asyncIterator,function(){return this}),$e(Nr,"return",function(){var t=this;return new Promise(function(r,n){t[at].destroy(null,function(i){if(i){n(i);return}r(Ue(void 0,!0))})})}),Nr),Ap),pp=function(t){var r,n=Object.create(hp,(r={},$e(r,at,{value:t,writable:!0}),$e(r,Ge,{value:null,writable:!0}),$e(r,st,{value:null,writable:!0}),$e(r,Vt,{value:null,writable:!0}),$e(r,Mr,{value:t._readableState.endEmitted,writable:!0}),$e(r,fi,{value:function(s,o){var a=n[at].read();a?(n[ot]=null,n[Ge]=null,n[st]=null,s(Ue(a,!1))):(n[Ge]=s,n[st]=o)},writable:!0}),r));return n[ot]=null,up(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[st];s!==null&&(n[ot]=null,n[Ge]=null,n[st]=null,s(i)),n[Vt]=i;return}var o=n[Ge];o!==null&&(n[ot]=null,n[Ge]=null,n[st]=null,o(Ue(void 0,!0))),n[Mr]=!0}),t.on("readable",fp.bind(null,n)),n};Za.exports=pp});var nu=g((uy,ru)=>{"use strict";function eu(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(f){r(f);return}a.done?t(u):Promise.resolve(u).then(n,i)}function dp(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(u){eu(s,n,i,o,a,"next",u)}function a(u){eu(s,n,i,o,a,"throw",u)}o(void 0)})}}function tu(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 gp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tu(Object(r),!0).forEach(function(n){_p(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ep=He().codes.ERR_INVALID_ARG_TYPE;function mp(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 Ep("iterable",["Iterable"],t);var i=new e(gp({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=dp(function*(){try{var u=yield n.next(),f=u.value,l=u.done;l?i.push(null):i.push(yield f)?o():s=!1}catch(h){i.destroy(h)}}),a.apply(this,arguments)}return i}ru.exports=mp});var si=g((fy,hu)=>{"use strict";hu.exports=L;var Bt;L.ReadableState=au;var ly=B("events").EventEmitter,ou=function(t,r){return t.listeners(r).length},Zt=Kn(),Fr=B("buffer").Buffer,yp=global.Uint8Array||function(){};function Cp(e){return Fr.from(e)}function bp(e){return Fr.isBuffer(e)||e instanceof yp}var ci=B("util"),I;ci&&ci.debuglog?I=ci.debuglog("stream"):I=function(){};var vp=xa(),Ei=Wn(),Sp=Vn(),Bp=Sp.getHighWaterMark,qr=He().codes,xp=qr.ERR_INVALID_ARG_TYPE,wp=qr.ERR_STREAM_PUSH_AFTER_EOF,Rp=qr.ERR_METHOD_NOT_IMPLEMENTED,Qp=qr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,xt,Ai,hi;rt()(L,Zt);var Xt=Ei.errorOrDestroy,pi=["error","close","destroy","pause","resume"];function Ip(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 au(e,t,r){Bt=Bt||nt(),e=e||{},typeof r!="boolean"&&(r=t instanceof Bt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=Bp(this,e,"readableHighWaterMark",r),this.buffer=new vp,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&&(xt||(xt=li().StringDecoder),this.decoder=new xt(e.encoding),this.encoding=e.encoding)}function L(e){if(Bt=Bt||nt(),!(this instanceof L))return new L(e);var t=this instanceof Bt;this._readableState=new au(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Zt.call(this)}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});L.prototype.destroy=Ei.destroy;L.prototype._undestroy=Ei.undestroy;L.prototype._destroy=function(e,t){t(e)};L.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=Fr.from(e,t),t=""),n=!0),uu(this,e,t,!1,n)};L.prototype.unshift=function(e){return uu(this,e,null,!0,!1)};function uu(e,t,r,n,i){I("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,Dp(e,s);else{var o;if(i||(o=Tp(s,t)),o)Xt(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Fr.prototype&&(t=Cp(t)),n)s.endEmitted?Xt(e,new Qp):di(e,s,t,!0);else if(s.ended)Xt(e,new wp);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?di(e,s,t,!1):_i(e,s)):di(e,s,t,!1)}else n||(s.reading=!1,_i(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function di(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&&Hr(e)),_i(e,t)}function Tp(e,t){var r;return!bp(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new xp("chunk",["string","Buffer","Uint8Array"],t)),r}L.prototype.isPaused=function(){return this._readableState.flowing===!1};L.prototype.setEncoding=function(e){xt||(xt=li().StringDecoder);var t=new xt(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 iu=1073741824;function Op(e){return e>=iu?e=iu:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function su(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=Op(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}L.prototype.read=function(e){I("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 I("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?gi(this):Hr(this),null;if(e=su(e,t),e===0&&t.ended)return t.length===0&&gi(this),null;var n=t.needReadable;I("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,I("length less than watermark",n)),t.ended||t.reading?(n=!1,I("reading or ended",n)):n&&(I("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=su(r,t)));var i;return e>0?i=cu(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&&gi(this)),i!==null&&this.emit("data",i),i};function Dp(e,t){if(I("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?Hr(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,lu(e)))}}function Hr(e){var t=e._readableState;I("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(I("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(lu,e))}function lu(e){var t=e._readableState;I("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,mi(e)}function _i(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(kp,e,t))}function kp(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(I("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}L.prototype._read=function(e){Xt(this,new Rp("_read()"))};L.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,I("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:_;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(v,b){I("onunpipe"),v===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,l())}function a(){I("onend"),e.end()}var u=Lp(r);e.on("drain",u);var f=!1;function l(){I("cleanup"),e.removeListener("close",C),e.removeListener("finish",E),e.removeListener("drain",u),e.removeListener("error",A),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",_),r.removeListener("data",h),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}r.on("data",h);function h(v){I("ondata");var b=e.write(v);I("dest.write",b),b===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Au(n.pipes,e)!==-1)&&!f&&(I("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function A(v){I("onerror",v),_(),e.removeListener("error",A),ou(e,"error")===0&&Xt(e,v)}Ip(e,"error",A);function C(){e.removeListener("finish",E),_()}e.once("close",C);function E(){I("onfinish"),e.removeListener("close",C),_()}e.once("finish",E);function _(){I("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(I("pipe resume"),r.resume()),e};function Lp(e){return function(){var r=e._readableState;I("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&ou(e,"data")&&(r.flowing=!0,mi(e))}}L.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 s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Au(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};L.prototype.on=function(e,t){var r=Zt.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,I("on readable",n.length,n.reading),n.length?Hr(this):n.reading||process.nextTick(Pp,this)),r};L.prototype.addListener=L.prototype.on;L.prototype.removeListener=function(e,t){var r=Zt.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(fu,this),r};L.prototype.removeAllListeners=function(e){var t=Zt.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(fu,this),t};function fu(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 Pp(e){I("readable nexttick read 0"),e.read(0)}L.prototype.resume=function(){var e=this._readableState;return e.flowing||(I("resume"),e.flowing=!e.readableListening,Np(this,e)),e.paused=!1,this};function Np(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(Mp,e,t))}function Mp(e,t){I("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),mi(e),t.flowing&&!t.reading&&e.read(0)}L.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function mi(e){var t=e._readableState;for(I("flow",t.flowing);t.flowing&&e.read()!==null;);}L.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(I("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(I("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);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 s=0;s<pi.length;s++)e.on(pi[s],this.emit.bind(this,pi[s]));return this._read=function(o){I("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(L.prototype[Symbol.asyncIterator]=function(){return Ai===void 0&&(Ai=za()),Ai(this)});Object.defineProperty(L.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(L.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(L.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});L._fromList=cu;Object.defineProperty(L.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function cu(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 gi(e){var t=e._readableState;I("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(Fp,t,e))}function Fp(e,t){if(I("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"&&(L.from=function(e,t){return hi===void 0&&(hi=nu()),hi(L,e,t)});function Au(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var yi=g((cy,du)=>{"use strict";du.exports=Pe;var jr=He().codes,qp=jr.ERR_METHOD_NOT_IMPLEMENTED,Hp=jr.ERR_MULTIPLE_CALLBACK,jp=jr.ERR_TRANSFORM_ALREADY_TRANSFORMING,$p=jr.ERR_TRANSFORM_WITH_LENGTH_0,$r=nt();rt()(Pe,$r);function Gp(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Hp);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 Pe(e){if(!(this instanceof Pe))return new Pe(e);$r.call(this,e),this._transformState={afterTransform:Gp.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",Up)}function Up(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){pu(e,t,r)}):pu(this,null,null)}Pe.prototype.push=function(e,t){return this._transformState.needTransform=!1,$r.prototype.push.call(this,e,t)};Pe.prototype._transform=function(e,t,r){r(new qp("_transform()"))};Pe.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)}};Pe.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};Pe.prototype._destroy=function(e,t){$r.prototype._destroy.call(this,e,function(r){t(r)})};function pu(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new $p;if(e._transformState.transforming)throw new jp;return e.push(null)}});var Eu=g((Ay,_u)=>{"use strict";_u.exports=zt;var gu=yi();rt()(zt,gu);function zt(e){if(!(this instanceof zt))return new zt(e);gu.call(this,e)}zt.prototype._transform=function(e,t,r){r(null,e)}});var vu=g((hy,bu)=>{"use strict";var Ci;function Kp(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Cu=He().codes,Jp=Cu.ERR_MISSING_ARGS,Yp=Cu.ERR_STREAM_DESTROYED;function mu(e){if(e)throw e}function Wp(e){return e.setHeader&&typeof e.abort=="function"}function Vp(e,t,r,n){n=Kp(n);var i=!1;e.on("close",function(){i=!0}),Ci===void 0&&(Ci=Pr()),Ci(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,Wp(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new Yp("pipe"))}}}function yu(e){e()}function Xp(e,t){return e.pipe(t)}function Zp(e){return!e.length||typeof e[e.length-1]!="function"?mu:e.pop()}function zp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Zp(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Jp("streams");var i,s=t.map(function(o,a){var u=a<t.length-1,f=a>0;return Vp(o,u,f,function(l){i||(i=l),l&&s.forEach(yu),!u&&(s.forEach(yu),n(i))})});return t.reduce(Xp)}bu.exports=zp});var Su=g((de,tr)=>{var er=B("stream");process.env.READABLE_STREAM==="disable"&&er?(tr.exports=er.Readable,Object.assign(tr.exports,er),tr.exports.Stream=er):(de=tr.exports=si(),de.Stream=er||de,de.Readable=de,de.Writable=ri(),de.Duplex=nt(),de.Transform=yi(),de.PassThrough=Eu(),de.finished=Pr(),de.pipeline=vu())});var wu=g((py,xu)=>{"use strict";var{Buffer:Ce}=B("buffer"),Bu=Symbol.for("BufferList");function j(e){if(!(this instanceof j))return new j(e);j._init.call(this,e)}j._init=function(t){Object.defineProperty(this,Bu,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};j.prototype._new=function(t){return new j(t)};j.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}};j.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};j.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};j.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)};j.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||Ce.alloc(0);let s=!!t,o=this._offset(n),a=i-n,u=a,f=s&&r||0,l=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:Ce.concat(this._bufs,this.length);for(let h=0;h<this._bufs.length;h++)this._bufs[h].copy(t,f),f+=this._bufs[h].length;return t}if(u<=this._bufs[o[0]].length-l)return s?this._bufs[o[0]].copy(t,r,l,l+u):this._bufs[o[0]].slice(l,l+u);s||(t=Ce.allocUnsafe(a));for(let h=o[0];h<this._bufs.length;h++){let A=this._bufs[h].length-l;if(u>A)this._bufs[h].copy(t,f,l),f+=A;else{this._bufs[h].copy(t,f,l,l+u),f+=A;break}u-=A,l&&(l=0)}return t.length>f?t.slice(0,f):t};j.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),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};j.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};j.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};j.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};j.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(Ce.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(Ce.from(t));return this};j.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};j.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=Ce.from([e]):typeof e=="string"?e=Ce.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=Ce.from(e.buffer,e.byteOffset,e.byteLength):Ce.isBuffer(e)||(e=Ce.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],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=e.length){let u=o.indexOf(e,s);if(u!==-1)return this._reverseOffset([i,u]);s=o.length-e.length+1}else{let u=this._reverseOffset([i,s]);if(this._match(u,e))return u;s++}s=0}return-1};j.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?j.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:j.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();j.prototype._isBufferList=function(t){return t instanceof j||j.isBufferList(t)};j.isBufferList=function(t){return t!=null&&t[Bu]};xu.exports=j});var Ru=g((dy,Gr)=>{"use strict";var bi=Su().Duplex,ed=rt(),rr=wu();function re(e){if(!(this instanceof re))return new re(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}rr._init.call(this,e),bi.call(this)}ed(re,bi);Object.assign(re.prototype,rr.prototype);re.prototype._new=function(t){return new re(t)};re.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};re.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)};re.prototype.end=function(t){bi.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};re.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};re.prototype._isBufferList=function(t){return t instanceof re||t instanceof rr||re.isBufferList(t)};re.isBufferList=rr.isBufferList;Gr.exports=re;Gr.exports.BufferListStream=re;Gr.exports.BufferList=rr});var xi=g((Ry,Ou)=>{var Yr=B("fs"),Tu=B("path"),nd=B("os");function Si(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function Bi(e,t){try{return t(e)}catch(r){if(/^(ENOENT|EPERM|EACCES)$/.test(r.code))return r.code!=="ENOENT"&&console.warn("Warning: Cannot access %s",e),!1;throw r}}var id={nil:function(e){return e==null},array:function(e){return Array.isArray(e)},emptyObject:function(e){for(var t in e)return!1;return!0},buffer:function(e){return Buffer.isBuffer(e)},regExp:function(e){return Si(e,"RegExp")},string:function(e){return Si(e,"String")},func:function(e){return typeof e=="function"},number:function(e){return Si(e,"Number")},exists:function(e){return Yr.existsSync(e)},file:function(e){return Bi(e,function(t){return Yr.statSync(t).isFile()})},samePath:function(e,t){return Tu.resolve(e)===Tu.resolve(t)},directory:function(e){return Bi(e,function(t){return Yr.statSync(t).isDirectory()})},symbolicLink:function(e){return Bi(e,function(t){return Yr.lstatSync(t).isSymbolicLink()})},windows:function(){return nd.platform()==="win32"}};Ou.exports=id});var Nu=g((Qy,Pu)=>{var sr=B("fs"),Du=B("os"),wi=B("path"),Wr=xi(),ir,sd=Du.tmpdir&&Du.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function Lu(){this.stack=[]}Lu.prototype={create:function(e,t){var r=wi.join(t,"node-watch-"+Math.random().toString(16).substr(2));return this.stack.push({name:r,type:e}),r},write:function(){for(var e=0;e<arguments.length;++e)sr.writeFileSync(arguments[e]," ")},mkdir:function(){for(var e=0;e<arguments.length;++e)sr.mkdirSync(arguments[e])},cleanup:function(e){try{for(var t;t=this.stack.pop();){var r=t.type,n=t.name;r==="file"&&Wr.file(n)?sr.unlinkSync(n):r==="dir"&&Wr.directory(n)&&sr.rmdirSync(n)}}finally{Wr.func(e)&&e()}}};var ku=!1;Pu.exports=function e(t){if(!Wr.func(t))return!1;if(ir!==void 0)return t(ir);if(!ku)ku=!0;else return setTimeout(function(){e(t)},300);var r=new Lu,n=r.create("dir",sd),i=r.create("dir",n),s=r.create("file",i);r.mkdir(n,i);var o={recursive:!0},a;try{a=sr.watch(n,o)}catch(f){if(f.code=="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM")return t(ir=!1);throw f}if(!a)return!1;var u=setTimeout(function(){a.close(),r.cleanup(function(){t(ir=!1)})},200);a.on("change",function(f,l){wi.basename(s)===wi.basename(l)&&(a.close(),clearTimeout(u),r.cleanup(function(){t(ir=!0)}))}),r.write(s)}});var Yu=g((Iy,Ti)=>{var Qi=B("fs"),or=B("path"),Fu=B("util"),qu=B("events"),Hu=Nu(),q=xi(),od="update",ju="remove",Mu=Symbol("skip");function ad(e){return e.some(function(t,r,n){return n.indexOf(t)!==r})}function Ii(e){return e.filter(function(t,r,n){return n.indexOf(t)===r})}function ud(e){return e.reduce(function(t,r){return t.concat(r)},[])}function ld(e){if(e&&e!=="buffer"&&!Buffer.isEncoding(e))throw new Error("Unknown encoding: "+e)}function fd(e){return q.func(e)?function(t,r){e(t,!1)&&r()}:q.regExp(e)?function(t,r){e.test(t)&&r()}:function(t,r){r()}}function cd(e){return e.map(function(t){return q.exists(t)?[od,t]:[ju,t]})}function Ad(e){var t=Ii(e),r=/~$|^\.#|^##$/g,n=e.some(function(s){return r.test(s)});if(n){var i=ad(e.map(function(s){return s.replace(r,"")}));i&&(t=t.filter(function(s){return q.exists(s)}))}return cd(t)}function hd(e,t){var r,n=[],i=e.options.encoding,s=e.options.delay;q.number(s)||(s=200);function o(){Ad(n).forEach(function(a){a[1]=Buffer.from(a[1]),i!=="buffer"&&(a[1]=a[1].toString(i)),t.apply(null,a)}),r=null,n=[]}return function(a,u){n.push(u),r||(r=setTimeout(o,s))}}function $u(){var e={};return function(t){return function(r,n){e[r+n]=[r,n],setTimeout(function(){Object.keys(e).forEach(function(i){t.apply(null,e[i])}),e={}})}}}function Gu(e,t,r=function(){}){q.directory(e)?Qi.readdir(e,function(n,i){if(n)if(/^(EPERM|EACCES)$/.test(n.code))console.warn("Warning: Cannot access %s.",e);else throw n;else i.forEach(function(s){var o=or.join(e,s);q.directory(o)&&t(o)}),r()}):r()}function pd(e){var t=0;return function(){return t++,function(){t--,t===0&&e()}}}function dd(){return function(){}}function Uu(e,t){return!q.func(t)||t(e,Mu)!==Mu}var Ku=Fu.deprecate(function(){},"(node-watch) First param in callback function is replaced with event name since 0.5.0, use `(evt, filename) => {}` if you want to get the filename");function Qe(){qu.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}Fu.inherits(Qe,qu.EventEmitter);Qe.prototype.expose=function(){var e={},t=this,r=["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"];return r.forEach(function(n){e[n]=function(){return t[n].apply(t,arguments)}}),e};Qe.prototype.isClosed=function(){return this._isClosed};Qe.prototype.close=function(e){var t=this;if(e){var r=this.watchers[e];r&&r.close&&(r.close(),delete t.watchers[e]),Gu(e,function(n){t.close(n)})}else Object.keys(t.watchers).forEach(function(n){var i=t.watchers[n];i&&i.close&&i.close()}),this.watchers={};q.emptyObject(t.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(Ju,this)))};Qe.prototype.getWatchedPaths=function(e){if(q.func(e)){var t=this;t._isReady?e(Object.keys(t.watchers)):t.on("ready",function(){e(Object.keys(t.watchers))})}};function Ri(e){e._isReady||(e._isReady=!0,process.nextTick(function(){e.emit("ready")}))}function Ju(e){e.emit("close")}Qe.prototype.add=function(e,t){var r=this;t=t||{fpath:""};var n=or.resolve(t.fpath);this.watchers[n]=e;var i=function(o,a){if(!r.isClosed()){var u=a;q.nil(u)&&(u=""),u=or.join(t.fpath,u),t.options.recursive&&Hu(function(f){if(!f){var l=or.resolve(u);if(!q.exists(u))r.close(l);else{var h=q.directory(u)&&!r.watchers[l]&&Uu(u,t.options.filter);h&&r.watchDirectory(u,t.options)}}}),s(o,u)}},s=hd(t,function(o,a){if(t.compareName)t.compareName(a)&&r.emit("change",o,a);else{var u=fd(t.options.filter);u(a,function(){r.flag?r.flag="":r.emit("change",o,a)})}});e.on("error",function(o){r.isClosed()||(q.windows()&&o.code==="EPERM"?(e.emit("change",ju,t.fpath&&""),r.flag="windows-error",r.close(n)):r.emit("error",o))}),e.on("change",i)};Qe.prototype.watchFile=function(e,t,r){var n=or.join(e,"../"),i=Object.assign({},t,{filter:null,encoding:"utf8"});delete i.recursive;var s=Qi.watch(n,i);this.add(s,{type:"file",fpath:n,options:Object.assign({},i,{encoding:t.encoding}),compareName:function(o){return q.samePath(o,e)}}),q.func(r)&&(r.length===1&&Ku(),this.on("change",r))};Qe.prototype.watchDirectory=function(e,t,r,n=dd){var i=this,s=n();Hu(function(o){t.recursive=!!t.recursive;var a=Object.assign({},t,{encoding:"utf8"});if(o||delete a.recursive,i._isClosed)return s(),i.close();var u=Qi.watch(e,a);i.add(u,{type:"dir",fpath:e,options:t}),q.func(r)&&(r.length===1&&Ku(),i.on("change",r)),t.recursive&&!o&&Gu(e,function(f){Uu(f,t.filter)&&i.watchDirectory(f,t,null,n)},n()),s()})};function gd(e){var t=new Qe,r=$u(),n=e.length;return e.forEach(function(i){i.on("change",r(function(s,o){t.emit("change",s,o)})),i.on("error",function(s){t.emit("error",s)}),i.on("ready",function(){--n||Ri(t)})}),t.close=function(){e.forEach(function(i){i.close()}),process.nextTick(Ju,t)},t.getWatchedPaths=function(i){if(q.func(i)){var s=e.map(function(o){return new Promise(function(a){o.getWatchedPaths(a)})});Promise.all(s).then(function(o){var a=Ii(ud(o));i(a)})}},t.expose()}function Vr(e,t,r){var n=new Qe;if(q.buffer(e)&&(e=e.toString()),!q.array(e)&&!q.exists(e)&&n.emit("error",new Error(e+" does not exist.")),q.string(t)&&(t={encoding:t}),q.func(t)&&(r=t,t={}),arguments.length<2&&(t={}),t.encoding?ld(t.encoding):t.encoding="utf8",q.array(e)){if(e.length===1)return Vr(e[0],t,r);var i=$u();return gd(Ii(e).map(function(o){var a=Vr(o,t);return q.func(r)&&a.on("change",i(r)),a}))}if(q.file(e))n.watchFile(e,t,r),Ri(n);else if(q.directory(e)){var s=pd(function(){Ri(n)});n.watchDirectory(e,t,r,s)}return n.expose()}Ti.exports=Vr;Ti.exports.default=Vr});var Wu=g(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.splitWhen=wt.flatten=void 0;function _d(e){return e.reduce((t,r)=>[].concat(t,r),[])}wt.flatten=_d;function Ed(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}wt.splitWhen=Ed});var Vu=g(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.isEnoentCodeError=void 0;function md(e){return e.code==="ENOENT"}Xr.isEnoentCodeError=md});var Xu=g(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.createDirentFromStats=void 0;var Oi=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function yd(e,t){return new Oi(e,t)}Zr.createDirentFromStats=yd});var Zu=g(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.removeLeadingDotSegment=Ie.escape=Ie.makeAbsolute=Ie.unixify=void 0;var Cd=B("path"),bd=2,vd=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Sd(e){return e.replace(/\\/g,"/")}Ie.unixify=Sd;function Bd(e,t){return Cd.resolve(e,t)}Ie.makeAbsolute=Bd;function xd(e){return e.replace(vd,"\\$2")}Ie.escape=xd;function wd(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(bd)}return e}Ie.removeLeadingDotSegment=wd});var el=g((Ly,zu)=>{zu.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var nl=g((Py,rl)=>{var Rd=el(),tl={"{":"}","(":")","[":"]"},Qd=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var u=tl[a];if(u){var f=e.indexOf(u,t);f!==-1&&(t=f+1)}if(e[t]==="!")return!0}else t++}return!1},Id=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=tl[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};rl.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(Rd(t))return!0;var n=Qd;return r&&r.strict===!1&&(n=Id),n(t)}});var sl=g((Ny,il)=>{"use strict";var Td=nl(),Od=B("path").posix.dirname,Dd=B("os").platform()==="win32",Di="/",kd=/\\/g,Ld=/[\{\[].*[\}\]]$/,Pd=/(^|[^\\])([\{\[]|\([^\)]+$)/,Nd=/\\([\!\*\?\|\[\]\(\)\{\}])/g;il.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Dd&&t.indexOf(Di)<0&&(t=t.replace(kd,Di)),Ld.test(t)&&(t+=Di),t+="a";do t=Od(t);while(Td(t)||Pd.test(t));return t.replace(Nd,"$1")}});var zr=g(ge=>{"use strict";ge.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;ge.find=(e,t)=>e.nodes.find(r=>r.type===t);ge.exceedsLimit=(e,t,r=1,n)=>n===!1||!ge.isInteger(e)||!ge.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;ge.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};ge.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;ge.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;ge.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;ge.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);ge.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var en=g((Fy,al)=>{"use strict";var ol=zr();al.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&ol.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&ol.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var ll=g((qy,ul)=>{"use strict";ul.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var El=g((Hy,_l)=>{"use strict";var fl=ll(),ut=(e,t,r)=>{if(fl(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(fl(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+i+s+o+a;if(ut.cache.hasOwnProperty(u))return ut.cache[u].result;let f=Math.min(e,t),l=Math.max(e,t);if(Math.abs(f-l)===1){let _=e+"|"+t;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let h=gl(e)||gl(t),A={min:e,max:t,a:f,b:l},C=[],E=[];if(h&&(A.isPadded=h,A.maxLen=String(A.max).length),f<0){let _=l<0?Math.abs(l):1;E=cl(_,Math.abs(f),A,n),f=A.a=0}return l>=0&&(C=cl(f,l,A,n)),A.negatives=E,A.positives=C,A.result=Md(E,C,n),n.capture===!0?A.result=`(${A.result})`:n.wrap!==!1&&C.length+E.length>1&&(A.result=`(?:${A.result})`),ut.cache[u]=A,A.result};function Md(e,t,r){let n=ki(e,t,"-",!1,r)||[],i=ki(t,e,"",!1,r)||[],s=ki(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function Fd(e,t){let r=1,n=1,i=hl(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=hl(e,r);for(i=pl(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=pl(t+1,n)-1;return s=[...s],s.sort(jd),s}function qd(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=Hd(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,f]=n[a];u===f?s+=u:u!=="0"||f!=="9"?s+=$d(u,f,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function cl(e,t,r,n){let i=Fd(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let f=i[u],l=qd(String(o),String(f),n),h="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+dl(a.count),o=f+1;continue}r.isPadded&&(h=Gd(f,r,n)),l.string=h+l.pattern+dl(l.count),s.push(l),o=f+1,a=l}return s}function ki(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!Al(t,"string",a)&&s.push(r+a),n&&Al(t,"string",a)&&s.push(r+a)}return s}function Hd(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function jd(e,t){return e>t?1:t>e?-1:0}function Al(e,t,r){return e.some(n=>n[t]===r)}function hl(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function pl(e,t){return e-e%Math.pow(10,t)}function dl(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function $d(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function gl(e){return/^-?(0+)\d/.test(e)}function Gd(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}ut.cache={};ut.clearCache=()=>ut.cache={};_l.exports=ut});var Ni=g((jy,xl)=>{"use strict";var Ud=B("util"),Cl=El(),ml=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Kd=e=>t=>e===!0?Number(t):String(t),Li=e=>typeof e=="number"||typeof e=="string"&&e!=="",ar=e=>Number.isInteger(+e),Pi=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Jd=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Yd=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},yl=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},Wd=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},bl=(e,t,r,n)=>{if(r)return Cl(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},vl=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Cl(e,t,r)},Sl=(...e)=>new RangeError("Invalid range arguments: "+Ud.inspect(...e)),Bl=(e,t,r)=>{if(r.strictRanges===!0)throw Sl([e,t]);return[]},Vd=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Xd=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Sl([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),u=String(t),f=String(r);r=Math.max(Math.abs(r),1);let l=Pi(a)||Pi(u)||Pi(f),h=l?Math.max(a.length,u.length,f.length):0,A=l===!1&&Jd(e,t,n)===!1,C=n.transform||Kd(A);if(n.toRegex&&r===1)return bl(yl(e,h),yl(t,h),!0,n);let E={negatives:[],positives:[]},_=O=>E[O<0?"negatives":"positives"].push(Math.abs(O)),v=[],b=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):v.push(Yd(C(i,b),h,A)),i=o?i-r:i+r,b++;return n.toRegex===!0?r>1?Wd(E,n):vl(v,null,{wrap:!1,...n}):v},Zd=(e,t,r=1,n={})=>{if(!ar(e)&&e.length>1||!ar(t)&&t.length>1)return Bl(e,t,n);let i=n.transform||(A=>String.fromCharCode(A)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,u=Math.min(s,o),f=Math.max(s,o);if(n.toRegex&&r===1)return bl(u,f,!1,n);let l=[],h=0;for(;a?s>=o:s<=o;)l.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?vl(l,null,{wrap:!1,options:n}):l},tn=(e,t,r,n={})=>{if(t==null&&Li(e))return[e];if(!Li(e)||!Li(t))return Bl(e,t,n);if(typeof r=="function")return tn(e,t,1,{transform:r});if(ml(r))return tn(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,ar(r)?ar(e)&&ar(t)?Xd(e,t,r,i):Zd(e,t,Math.max(Math.abs(r),1),i):r!=null&&!ml(r)?Vd(r,i):tn(e,t,1,r)};xl.exports=tn});var Ql=g(($y,Rl)=>{"use strict";var zd=Ni(),wl=zr(),eg=(e,t={})=>{let r=(n,i={})=>{let s=wl.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=wl.reduce(n.nodes),h=zd(...l,{...t,wrap:!1,toRegex:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let l of n.nodes)f+=r(l,n);return f};return r(e)};Rl.exports=eg});var Ol=g((Gy,Tl)=>{"use strict";var tg=Ni(),Il=en(),Rt=zr(),lt=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Rt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(lt(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?lt(i,s,r):i+s);return Rt.flatten(n)},rg=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(lt(a.pop(),Il(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(lt(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=Rt.reduce(i.nodes);if(Rt.exceedsLimit(...h,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let A=tg(...h,t);A.length===0&&(A=Il(i,t)),a.push(lt(a.pop(),A)),i.nodes=[];return}let u=Rt.encloseBrace(i),f=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,f=l.queue;for(let h=0;h<i.nodes.length;h++){let A=i.nodes[h];if(A.type==="comma"&&i.type==="brace"){h===1&&f.push(""),f.push("");continue}if(A.type==="close"){a.push(lt(a.pop(),f,u));continue}if(A.value&&A.type!=="open"){f.push(lt(f.pop(),A.value));continue}A.nodes&&n(A,i)}return f};return Rt.flatten(n(e))};Tl.exports=rg});var kl=g((Uy,Dl)=>{"use strict";Dl.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
5
|
-
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Fl=g((Ky,Ml)=>{"use strict";var ng=en(),{MAX_LENGTH:Ll,CHAR_BACKSLASH:Mi,CHAR_BACKTICK:ig,CHAR_COMMA:sg,CHAR_DOT:og,CHAR_LEFT_PARENTHESES:ag,CHAR_RIGHT_PARENTHESES:ug,CHAR_LEFT_CURLY_BRACE:lg,CHAR_RIGHT_CURLY_BRACE:fg,CHAR_LEFT_SQUARE_BRACKET:Pl,CHAR_RIGHT_SQUARE_BRACKET:Nl,CHAR_DOUBLE_QUOTE:cg,CHAR_SINGLE_QUOTE:Ag,CHAR_NO_BREAK_SPACE:hg,CHAR_ZERO_WIDTH_NOBREAK_SPACE:pg}=kl(),dg=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Ll,r.maxLength):Ll;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,u=0,f=e.length,l=0,h=0,A,C={},E=()=>e[l++],_=v=>{if(v.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&v.type==="text"){a.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=a,a=v,v};for(_({type:"bos"});l<f;)if(o=s[s.length-1],A=E(),!(A===pg||A===hg)){if(A===Mi){_({type:"text",value:(t.keepEscaping?A:"")+E()});continue}if(A===Nl){_({type:"text",value:"\\"+A});continue}if(A===Pl){u++;let v=!0,b;for(;l<f&&(b=E());){if(A+=b,b===Pl){u++;continue}if(b===Mi){A+=E();continue}if(b===Nl&&(u--,u===0))break}_({type:"text",value:A});continue}if(A===ag){o=_({type:"paren",nodes:[]}),s.push(o),_({type:"text",value:A});continue}if(A===ug){if(o.type!=="paren"){_({type:"text",value:A});continue}o=s.pop(),_({type:"text",value:A}),o=s[s.length-1];continue}if(A===cg||A===Ag||A===ig){let v=A,b;for(t.keepQuotes!==!0&&(A="");l<f&&(b=E());){if(b===Mi){A+=b+E();continue}if(b===v){t.keepQuotes===!0&&(A+=b);break}A+=b}_({type:"text",value:A});continue}if(A===lg){h++;let v=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=_({type:"brace",open:!0,close:!1,dollar:v,depth:h,commas:0,ranges:0,nodes:[]}),s.push(o),_({type:"open",value:A});continue}if(A===fg){if(o.type!=="brace"){_({type:"text",value:A});continue}let v="close";o=s.pop(),o.close=!0,_({type:v,value:A}),h--,o=s[s.length-1];continue}if(A===sg&&h>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:ng(o)}]}_({type:"comma",value:A}),o.commas++;continue}if(A===og&&h>0&&o.commas===0){let v=o.nodes;if(h===0||v.length===0){_({type:"text",value:A});continue}if(a.type==="dot"){if(o.range=[],a.value+=A,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){v.pop();let b=v[v.length-1];b.value+=a.value+A,a=b,o.ranges--;continue}_({type:"dot",value:A});continue}_({type:"text",value:A})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(O=>{O.nodes||(O.type==="open"&&(O.isOpen=!0),O.type==="close"&&(O.isClose=!0),O.nodes||(O.type="text"),O.invalid=!0)});let v=s[s.length-1],b=v.nodes.indexOf(o);v.nodes.splice(b,1,...o.nodes)}while(s.length>0);return _({type:"eos"}),i};Ml.exports=dg});var jl=g((Jy,Hl)=>{"use strict";var ql=en(),gg=Ql(),_g=Ol(),Eg=Fl(),fe=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=fe.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(fe.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};fe.parse=(e,t={})=>Eg(e,t);fe.stringify=(e,t={})=>ql(typeof e=="string"?fe.parse(e,t):e,t);fe.compile=(e,t={})=>(typeof e=="string"&&(e=fe.parse(e,t)),gg(e,t));fe.expand=(e,t={})=>{typeof e=="string"&&(e=fe.parse(e,t));let r=_g(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};fe.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?fe.compile(e,t):fe.expand(e,t);Hl.exports=fe});var ur=g((Yy,Jl)=>{"use strict";var mg=B("path"),Te="\\\\/",$l=`[^${Te}]`,Ne="\\.",yg="\\+",Cg="\\?",rn="\\/",bg="(?=.)",Gl="[^/]",Fi=`(?:${rn}|$)`,Ul=`(?:^|${rn})`,qi=`${Ne}{1,2}${Fi}`,vg=`(?!${Ne})`,Sg=`(?!${Ul}${qi})`,Bg=`(?!${Ne}{0,1}${Fi})`,xg=`(?!${qi})`,wg=`[^.${rn}]`,Rg=`${Gl}*?`,Kl={DOT_LITERAL:Ne,PLUS_LITERAL:yg,QMARK_LITERAL:Cg,SLASH_LITERAL:rn,ONE_CHAR:bg,QMARK:Gl,END_ANCHOR:Fi,DOTS_SLASH:qi,NO_DOT:vg,NO_DOTS:Sg,NO_DOT_SLASH:Bg,NO_DOTS_SLASH:xg,QMARK_NO_DOT:wg,STAR:Rg,START_ANCHOR:Ul},Qg={...Kl,SLASH_LITERAL:`[${Te}]`,QMARK:$l,STAR:`${$l}*?`,DOTS_SLASH:`${Ne}{1,2}(?:[${Te}]|$)`,NO_DOT:`(?!${Ne})`,NO_DOTS:`(?!(?:^|[${Te}])${Ne}{1,2}(?:[${Te}]|$))`,NO_DOT_SLASH:`(?!${Ne}{0,1}(?:[${Te}]|$))`,NO_DOTS_SLASH:`(?!${Ne}{1,2}(?:[${Te}]|$))`,QMARK_NO_DOT:`[^.${Te}]`,START_ANCHOR:`(?:^|[${Te}])`,END_ANCHOR:`(?:[${Te}]|$)`},Ig={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Jl.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Ig,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:mg.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?Qg:Kl}}});var lr=g(ae=>{"use strict";var Tg=B("path"),Og=process.platform==="win32",{REGEX_BACKSLASH:Dg,REGEX_REMOVE_BACKSLASH:kg,REGEX_SPECIAL_CHARS:Lg,REGEX_SPECIAL_CHARS_GLOBAL:Pg}=ur();ae.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ae.hasRegexChars=e=>Lg.test(e);ae.isRegexChar=e=>e.length===1&&ae.hasRegexChars(e);ae.escapeRegex=e=>e.replace(Pg,"\\$1");ae.toPosixSlashes=e=>e.replace(Dg,"/");ae.removeBackslashes=e=>e.replace(kg,t=>t==="\\"?"":t);ae.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ae.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Og===!0||Tg.sep==="\\";ae.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ae.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ae.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ae.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var tf=g((Vy,ef)=>{"use strict";var Yl=lr(),{CHAR_ASTERISK:Hi,CHAR_AT:Ng,CHAR_BACKWARD_SLASH:fr,CHAR_COMMA:Mg,CHAR_DOT:ji,CHAR_EXCLAMATION_MARK:$i,CHAR_FORWARD_SLASH:zl,CHAR_LEFT_CURLY_BRACE:Gi,CHAR_LEFT_PARENTHESES:Ui,CHAR_LEFT_SQUARE_BRACKET:Fg,CHAR_PLUS:qg,CHAR_QUESTION_MARK:Wl,CHAR_RIGHT_CURLY_BRACE:Hg,CHAR_RIGHT_PARENTHESES:Vl,CHAR_RIGHT_SQUARE_BRACKET:jg}=ur(),Xl=e=>e===zl||e===fr,Zl=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},$g=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=e,f=-1,l=0,h=0,A=!1,C=!1,E=!1,_=!1,v=!1,b=!1,O=!1,P=!1,U=!1,x=!1,H=0,R,S,M={value:"",depth:0,isGlob:!1},z=()=>f>=n,c=()=>u.charCodeAt(f+1),D=()=>(R=S,u.charCodeAt(++f));for(;f<n;){S=D();let se;if(S===fr){O=M.backslashes=!0,S=D(),S===Gi&&(b=!0);continue}if(b===!0||S===Gi){for(H++;z()!==!0&&(S=D());){if(S===fr){O=M.backslashes=!0,D();continue}if(S===Gi){H++;continue}if(b!==!0&&S===ji&&(S=D())===ji){if(A=M.isBrace=!0,E=M.isGlob=!0,x=!0,i===!0)continue;break}if(b!==!0&&S===Mg){if(A=M.isBrace=!0,E=M.isGlob=!0,x=!0,i===!0)continue;break}if(S===Hg&&(H--,H===0)){b=!1,A=M.isBrace=!0,x=!0;break}}if(i===!0)continue;break}if(S===zl){if(s.push(f),o.push(M),M={value:"",depth:0,isGlob:!1},x===!0)continue;if(R===ji&&f===l+1){l+=2;continue}h=f+1;continue}if(r.noext!==!0&&(S===qg||S===Ng||S===Hi||S===Wl||S===$i)===!0&&c()===Ui){if(E=M.isGlob=!0,_=M.isExtglob=!0,x=!0,S===$i&&f===l&&(U=!0),i===!0){for(;z()!==!0&&(S=D());){if(S===fr){O=M.backslashes=!0,S=D();continue}if(S===Vl){E=M.isGlob=!0,x=!0;break}}continue}break}if(S===Hi){if(R===Hi&&(v=M.isGlobstar=!0),E=M.isGlob=!0,x=!0,i===!0)continue;break}if(S===Wl){if(E=M.isGlob=!0,x=!0,i===!0)continue;break}if(S===Fg){for(;z()!==!0&&(se=D());){if(se===fr){O=M.backslashes=!0,D();continue}if(se===jg){C=M.isBracket=!0,E=M.isGlob=!0,x=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&S===$i&&f===l){P=M.negated=!0,l++;continue}if(r.noparen!==!0&&S===Ui){if(E=M.isGlob=!0,i===!0){for(;z()!==!0&&(S=D());){if(S===Ui){O=M.backslashes=!0,S=D();continue}if(S===Vl){x=!0;break}}continue}break}if(E===!0){if(x=!0,i===!0)continue;break}}r.noext===!0&&(_=!1,E=!1);let F=u,ue="",p="";l>0&&(ue=u.slice(0,l),u=u.slice(l),h-=l),F&&E===!0&&h>0?(F=u.slice(0,h),p=u.slice(h)):E===!0?(F="",p=u):F=u,F&&F!==""&&F!=="/"&&F!==u&&Xl(F.charCodeAt(F.length-1))&&(F=F.slice(0,-1)),r.unescape===!0&&(p&&(p=Yl.removeBackslashes(p)),F&&O===!0&&(F=Yl.removeBackslashes(F)));let d={prefix:ue,input:e,start:l,base:F,glob:p,isBrace:A,isBracket:C,isGlob:E,isExtglob:_,isGlobstar:v,negated:P,negatedExtglob:U};if(r.tokens===!0&&(d.maxDepth=0,Xl(S)||o.push(M),d.tokens=o),r.parts===!0||r.tokens===!0){let se;for(let N=0;N<s.length;N++){let ve=se?se+1:l,Se=s[N],le=e.slice(ve,Se);r.tokens&&(N===0&&l!==0?(o[N].isPrefix=!0,o[N].value=ue):o[N].value=le,Zl(o[N]),d.maxDepth+=o[N].depth),(N!==0||le!=="")&&a.push(le),se=Se}if(se&&se+1<e.length){let N=e.slice(se+1);a.push(N),r.tokens&&(o[o.length-1].value=N,Zl(o[o.length-1]),d.maxDepth+=o[o.length-1].depth)}d.slashes=s,d.parts=a}return d};ef.exports=$g});var sf=g((Xy,nf)=>{"use strict";var nn=ur(),ce=lr(),{MAX_LENGTH:sn,POSIX_REGEX_SOURCE:Gg,REGEX_NON_SPECIAL_CHARS:Ug,REGEX_SPECIAL_CHARS_BACKREF:Kg,REPLACEMENTS:rf}=nn,Jg=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>ce.escapeRegex(i)).join("..")}return r},Qt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Ki=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=rf[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(sn,r.maxLength):sn,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=ce.isWindows(t),f=nn.globChars(u),l=nn.extglobChars(f),{DOT_LITERAL:h,PLUS_LITERAL:A,SLASH_LITERAL:C,ONE_CHAR:E,DOTS_SLASH:_,NO_DOT:v,NO_DOT_SLASH:b,NO_DOTS_SLASH:O,QMARK:P,QMARK_NO_DOT:U,STAR:x,START_ANCHOR:H}=f,R=y=>`(${a}(?:(?!${H}${y.dot?_:h}).)*?)`,S=r.dot?"":v,M=r.dot?P:U,z=r.bash===!0?R(r):x;r.capture&&(z=`(${z})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let c={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=ce.removePrefix(e,c),i=e.length;let D=[],F=[],ue=[],p=s,d,se=()=>c.index===i-1,N=c.peek=(y=1)=>e[c.index+y],ve=c.advance=()=>e[++c.index]||"",Se=()=>e.slice(c.index+1),le=(y="",$=0)=>{c.consumed+=y,c.index+=$},Ar=y=>{c.output+=y.output!=null?y.output:y.value,le(y.value)},Wc=()=>{let y=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)ve(),c.start++,y++;return y%2===0?!1:(c.negated=!0,c.start++,!0)},hr=y=>{c[y]++,ue.push(y)},Ze=y=>{c[y]--,ue.pop()},T=y=>{if(p.type==="globstar"){let $=c.braces>0&&(y.type==="comma"||y.type==="brace"),m=y.extglob===!0||D.length&&(y.type==="pipe"||y.type==="paren");y.type!=="slash"&&y.type!=="paren"&&!$&&!m&&(c.output=c.output.slice(0,-p.output.length),p.type="star",p.value="*",p.output=z,c.output+=p.output)}if(D.length&&y.type!=="paren"&&(D[D.length-1].inner+=y.value),(y.value||y.output)&&Ar(y),p&&p.type==="text"&&y.type==="text"){p.value+=y.value,p.output=(p.output||"")+y.value;return}y.prev=p,o.push(y),p=y},pr=(y,$)=>{let m={...l[$],conditions:1,inner:""};m.prev=p,m.parens=c.parens,m.output=c.output;let Q=(r.capture?"(":"")+m.open;hr("parens"),T({type:y,value:$,output:c.output?"":E}),T({type:"paren",extglob:!0,value:ve(),output:Q}),D.push(m)},Vc=y=>{let $=y.close+(r.capture?")":""),m;if(y.type==="negate"){let Q=z;if(y.inner&&y.inner.length>1&&y.inner.includes("/")&&(Q=R(r)),(Q!==z||se()||/^\)+$/.test(Se()))&&($=y.close=`)$))${Q}`),y.inner.includes("*")&&(m=Se())&&/^\.[^\\/.]+$/.test(m)){let Y=Ki(m,{...t,fastpaths:!1}).output;$=y.close=`)${Y})${Q})`}y.prev.type==="bos"&&(c.negatedExtglob=!0)}T({type:"paren",extglob:!0,value:d,output:$}),Ze("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let y=!1,$=e.replace(Kg,(m,Q,Y,oe,ee,wn)=>oe==="\\"?(y=!0,m):oe==="?"?Q?Q+oe+(ee?P.repeat(ee.length):""):wn===0?M+(ee?P.repeat(ee.length):""):P.repeat(Y.length):oe==="."?h.repeat(Y.length):oe==="*"?Q?Q+oe+(ee?z:""):z:Q?m:`\\${m}`);return y===!0&&(r.unescape===!0?$=$.replace(/\\/g,""):$=$.replace(/\\+/g,m=>m.length%2===0?"\\\\":m?"\\":"")),$===e&&r.contains===!0?(c.output=e,c):(c.output=ce.wrapOutput($,c,t),c)}for(;!se();){if(d=ve(),d==="\0")continue;if(d==="\\"){let m=N();if(m==="/"&&r.bash!==!0||m==="."||m===";")continue;if(!m){d+="\\",T({type:"text",value:d});continue}let Q=/^\\+/.exec(Se()),Y=0;if(Q&&Q[0].length>2&&(Y=Q[0].length,c.index+=Y,Y%2!==0&&(d+="\\")),r.unescape===!0?d=ve():d+=ve(),c.brackets===0){T({type:"text",value:d});continue}}if(c.brackets>0&&(d!=="]"||p.value==="["||p.value==="[^")){if(r.posix!==!1&&d===":"){let m=p.value.slice(1);if(m.includes("[")&&(p.posix=!0,m.includes(":"))){let Q=p.value.lastIndexOf("["),Y=p.value.slice(0,Q),oe=p.value.slice(Q+2),ee=Gg[oe];if(ee){p.value=Y+ee,c.backtrack=!0,ve(),!s.output&&o.indexOf(p)===1&&(s.output=E);continue}}}(d==="["&&N()!==":"||d==="-"&&N()==="]")&&(d=`\\${d}`),d==="]"&&(p.value==="["||p.value==="[^")&&(d=`\\${d}`),r.posix===!0&&d==="!"&&p.value==="["&&(d="^"),p.value+=d,Ar({value:d});continue}if(c.quotes===1&&d!=='"'){d=ce.escapeRegex(d),p.value+=d,Ar({value:d});continue}if(d==='"'){c.quotes=c.quotes===1?0:1,r.keepQuotes===!0&&T({type:"text",value:d});continue}if(d==="("){hr("parens"),T({type:"paren",value:d});continue}if(d===")"){if(c.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Qt("opening","("));let m=D[D.length-1];if(m&&c.parens===m.parens+1){Vc(D.pop());continue}T({type:"paren",value:d,output:c.parens?")":"\\)"}),Ze("parens");continue}if(d==="["){if(r.nobracket===!0||!Se().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Qt("closing","]"));d=`\\${d}`}else hr("brackets");T({type:"bracket",value:d});continue}if(d==="]"){if(r.nobracket===!0||p&&p.type==="bracket"&&p.value.length===1){T({type:"text",value:d,output:`\\${d}`});continue}if(c.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Qt("opening","["));T({type:"text",value:d,output:`\\${d}`});continue}Ze("brackets");let m=p.value.slice(1);if(p.posix!==!0&&m[0]==="^"&&!m.includes("/")&&(d=`/${d}`),p.value+=d,Ar({value:d}),r.literalBrackets===!1||ce.hasRegexChars(m))continue;let Q=ce.escapeRegex(p.value);if(c.output=c.output.slice(0,-p.value.length),r.literalBrackets===!0){c.output+=Q,p.value=Q;continue}p.value=`(${a}${Q}|${p.value})`,c.output+=p.value;continue}if(d==="{"&&r.nobrace!==!0){hr("braces");let m={type:"brace",value:d,output:"(",outputIndex:c.output.length,tokensIndex:c.tokens.length};F.push(m),T(m);continue}if(d==="}"){let m=F[F.length-1];if(r.nobrace===!0||!m){T({type:"text",value:d,output:d});continue}let Q=")";if(m.dots===!0){let Y=o.slice(),oe=[];for(let ee=Y.length-1;ee>=0&&(o.pop(),Y[ee].type!=="brace");ee--)Y[ee].type!=="dots"&&oe.unshift(Y[ee].value);Q=Jg(oe,r),c.backtrack=!0}if(m.comma!==!0&&m.dots!==!0){let Y=c.output.slice(0,m.outputIndex),oe=c.tokens.slice(m.tokensIndex);m.value=m.output="\\{",d=Q="\\}",c.output=Y;for(let ee of oe)c.output+=ee.output||ee.value}T({type:"brace",value:d,output:Q}),Ze("braces"),F.pop();continue}if(d==="|"){D.length>0&&D[D.length-1].conditions++,T({type:"text",value:d});continue}if(d===","){let m=d,Q=F[F.length-1];Q&&ue[ue.length-1]==="braces"&&(Q.comma=!0,m="|"),T({type:"comma",value:d,output:m});continue}if(d==="/"){if(p.type==="dot"&&c.index===c.start+1){c.start=c.index+1,c.consumed="",c.output="",o.pop(),p=s;continue}T({type:"slash",value:d,output:C});continue}if(d==="."){if(c.braces>0&&p.type==="dot"){p.value==="."&&(p.output=h);let m=F[F.length-1];p.type="dots",p.output+=d,p.value+=d,m.dots=!0;continue}if(c.braces+c.parens===0&&p.type!=="bos"&&p.type!=="slash"){T({type:"text",value:d,output:h});continue}T({type:"dot",value:d,output:h});continue}if(d==="?"){if(!(p&&p.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){pr("qmark",d);continue}if(p&&p.type==="paren"){let Q=N(),Y=d;if(Q==="<"&&!ce.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(p.value==="("&&!/[!=<:]/.test(Q)||Q==="<"&&!/<([!=]|\w+>)/.test(Se()))&&(Y=`\\${d}`),T({type:"text",value:d,output:Y});continue}if(r.dot!==!0&&(p.type==="slash"||p.type==="bos")){T({type:"qmark",value:d,output:U});continue}T({type:"qmark",value:d,output:P});continue}if(d==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){pr("negate",d);continue}if(r.nonegate!==!0&&c.index===0){Wc();continue}}if(d==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){pr("plus",d);continue}if(p&&p.value==="("||r.regex===!1){T({type:"plus",value:d,output:A});continue}if(p&&(p.type==="bracket"||p.type==="paren"||p.type==="brace")||c.parens>0){T({type:"plus",value:d});continue}T({type:"plus",value:A});continue}if(d==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){T({type:"at",extglob:!0,value:d,output:""});continue}T({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);let m=Ug.exec(Se());m&&(d+=m[0],c.index+=m[0].length),T({type:"text",value:d});continue}if(p&&(p.type==="globstar"||p.star===!0)){p.type="star",p.star=!0,p.value+=d,p.output=z,c.backtrack=!0,c.globstar=!0,le(d);continue}let y=Se();if(r.noextglob!==!0&&/^\([^?]/.test(y)){pr("star",d);continue}if(p.type==="star"){if(r.noglobstar===!0){le(d);continue}let m=p.prev,Q=m.prev,Y=m.type==="slash"||m.type==="bos",oe=Q&&(Q.type==="star"||Q.type==="globstar");if(r.bash===!0&&(!Y||y[0]&&y[0]!=="/")){T({type:"star",value:d,output:""});continue}let ee=c.braces>0&&(m.type==="comma"||m.type==="brace"),wn=D.length&&(m.type==="pipe"||m.type==="paren");if(!Y&&m.type!=="paren"&&!ee&&!wn){T({type:"star",value:d,output:""});continue}for(;y.slice(0,3)==="/**";){let dr=e[c.index+4];if(dr&&dr!=="/")break;y=y.slice(3),le("/**",3)}if(m.type==="bos"&&se()){p.type="globstar",p.value+=d,p.output=R(r),c.output=p.output,c.globstar=!0,le(d);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&!oe&&se()){c.output=c.output.slice(0,-(m.output+p.output).length),m.output=`(?:${m.output}`,p.type="globstar",p.output=R(r)+(r.strictSlashes?")":"|$)"),p.value+=d,c.globstar=!0,c.output+=m.output+p.output,le(d);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&y[0]==="/"){let dr=y[1]!==void 0?"|$":"";c.output=c.output.slice(0,-(m.output+p.output).length),m.output=`(?:${m.output}`,p.type="globstar",p.output=`${R(r)}${C}|${C}${dr})`,p.value+=d,c.output+=m.output+p.output,c.globstar=!0,le(d+ve()),T({type:"slash",value:"/",output:""});continue}if(m.type==="bos"&&y[0]==="/"){p.type="globstar",p.value+=d,p.output=`(?:^|${C}|${R(r)}${C})`,c.output=p.output,c.globstar=!0,le(d+ve()),T({type:"slash",value:"/",output:""});continue}c.output=c.output.slice(0,-p.output.length),p.type="globstar",p.output=R(r),p.value+=d,c.output+=p.output,c.globstar=!0,le(d);continue}let $={type:"star",value:d,output:z};if(r.bash===!0){$.output=".*?",(p.type==="bos"||p.type==="slash")&&($.output=S+$.output),T($);continue}if(p&&(p.type==="bracket"||p.type==="paren")&&r.regex===!0){$.output=d,T($);continue}(c.index===c.start||p.type==="slash"||p.type==="dot")&&(p.type==="dot"?(c.output+=b,p.output+=b):r.dot===!0?(c.output+=O,p.output+=O):(c.output+=S,p.output+=S),N()!=="*"&&(c.output+=E,p.output+=E)),T($)}for(;c.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Qt("closing","]"));c.output=ce.escapeLast(c.output,"["),Ze("brackets")}for(;c.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Qt("closing",")"));c.output=ce.escapeLast(c.output,"("),Ze("parens")}for(;c.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Qt("closing","}"));c.output=ce.escapeLast(c.output,"{"),Ze("braces")}if(r.strictSlashes!==!0&&(p.type==="star"||p.type==="bracket")&&T({type:"maybe_slash",value:"",output:`${C}?`}),c.backtrack===!0){c.output="";for(let y of c.tokens)c.output+=y.output!=null?y.output:y.value,y.suffix&&(c.output+=y.suffix)}return c};Ki.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(sn,r.maxLength):sn,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=rf[e]||e;let s=ce.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:f,NO_DOT:l,NO_DOTS:h,NO_DOTS_SLASH:A,STAR:C,START_ANCHOR:E}=nn.globChars(s),_=r.dot?h:l,v=r.dot?A:l,b=r.capture?"":"?:",O={negated:!1,prefix:""},P=r.bash===!0?".*?":C;r.capture&&(P=`(${P})`);let U=S=>S.noglobstar===!0?P:`(${b}(?:(?!${E}${S.dot?f:o}).)*?)`,x=S=>{switch(S){case"*":return`${_}${u}${P}`;case".*":return`${o}${u}${P}`;case"*.*":return`${_}${P}${o}${u}${P}`;case"*/*":return`${_}${P}${a}${u}${v}${P}`;case"**":return _+U(r);case"**/*":return`(?:${_}${U(r)}${a})?${v}${u}${P}`;case"**/*.*":return`(?:${_}${U(r)}${a})?${v}${P}${o}${u}${P}`;case"**/.*":return`(?:${_}${U(r)}${a})?${o}${u}${P}`;default:{let M=/^(.*?)\.(\w+)$/.exec(S);if(!M)return;let z=x(M[1]);return z?z+o+M[2]:void 0}}},H=ce.removePrefix(e,O),R=x(H);return R&&r.strictSlashes!==!0&&(R+=`${a}?`),R};nf.exports=Ki});var af=g((Zy,of)=>{"use strict";var Yg=B("path"),Wg=tf(),Ji=sf(),Yi=lr(),Vg=ur(),Xg=e=>e&&typeof e=="object"&&!Array.isArray(e),V=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(A=>V(A,t,r));return A=>{for(let C of l){let E=C(A);if(E)return E}return!1}}let n=Xg(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=Yi.isWindows(t),o=n?V.compileRe(e,t):V.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};u=V(i.ignore,l,r)}let f=(l,h=!1)=>{let{isMatch:A,match:C,output:E}=V.test(l,o,t,{glob:e,posix:s}),_={glob:e,state:a,regex:o,posix:s,input:l,output:E,match:C,isMatch:A};return typeof i.onResult=="function"&&i.onResult(_),A===!1?(_.isMatch=!1,h?_:!1):u(l)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,h?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),h?_:!0)};return r&&(f.state=a),f};V.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Yi.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=V.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:Boolean(a),match:a,output:u}};V.matchBase=(e,t,r,n=Yi.isWindows(r))=>(t instanceof RegExp?t:V.makeRe(t,r)).test(Yg.basename(e));V.isMatch=(e,t,r)=>V(t,r)(e);V.parse=(e,t)=>Array.isArray(e)?e.map(r=>V.parse(r,t)):Ji(e,{...t,fastpaths:!1});V.scan=(e,t)=>Wg(e,t);V.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=V.toRegex(a,t);return n===!0&&(u.state=e),u};V.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Ji.fastpaths(e,t)),i.output||(i=Ji(e,t)),V.compileRe(i,t,r,n)};V.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};V.constants=Vg;of.exports=V});var lf=g((zy,uf)=>{"use strict";uf.exports=af()});var pf=g((eC,hf)=>{"use strict";var cf=B("util"),Af=jl(),Oe=lf(),Wi=lr(),ff=e=>e===""||e==="./",J=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<t.length;l++){let h=Oe(String(t[l]),{...r,onResult:a},!0),A=h.state.negated||h.state.negatedExtglob;A&&o++;for(let C of e){let E=h(C,!0);!(A?!E.isMatch:E.isMatch)||(A?n.add(E.output):(n.delete(E.output),i.add(E.output)))}}let f=(o===t.length?[...s]:[...i]).filter(l=>!n.has(l));if(r&&f.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(l=>l.replace(/\\/g,"")):t}return f};J.match=J;J.matcher=(e,t)=>Oe(e,t);J.isMatch=(e,t,r)=>Oe(t,r)(e);J.any=J.isMatch;J.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(J(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};J.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${cf.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>J.contains(e,n,r));if(typeof t=="string"){if(ff(e)||ff(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return J.isMatch(e,t,{...r,contains:!0})};J.matchKeys=(e,t,r)=>{if(!Wi.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=J(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};J.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Oe(String(i),r);if(n.some(o=>s(o)))return!0}return!1};J.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Oe(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};J.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${cf.inspect(e)}"`);return[].concat(t).every(n=>Oe(n,r)(e))};J.capture=(e,t,r)=>{let n=Wi.isWindows(r),s=Oe.makeRe(String(e),{...r,capture:!0}).exec(n?Wi.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};J.makeRe=(...e)=>Oe.makeRe(...e);J.scan=(...e)=>Oe.scan(...e);J.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of Af(String(n),t))r.push(Oe.parse(i,t));return r};J.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:Af(e,t)};J.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return J.braces(e,{...t,expand:!0})};hf.exports=J});var bf=g(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.matchAny=w.convertPatternsToRe=w.makeRe=w.getPatternParts=w.expandBraceExpansion=w.expandPatternsWithBraceExpansion=w.isAffectDepthOfReadingPattern=w.endsWithSlashGlobStar=w.hasGlobStar=w.getBaseDirectory=w.isPatternRelatedToParentDirectory=w.getPatternsOutsideCurrentDirectory=w.getPatternsInsideCurrentDirectory=w.getPositivePatterns=w.getNegativePatterns=w.isPositivePattern=w.isNegativePattern=w.convertToNegativePattern=w.convertToPositivePattern=w.isDynamicPattern=w.isStaticPattern=void 0;var Zg=B("path"),zg=sl(),Vi=pf(),df="**",e_="\\",t_=/[*?]|^!/,r_=/\[[^[]*]/,n_=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,i_=/[!*+?@]\([^(]*\)/,s_=/,|\.\./;function gf(e,t={}){return!_f(e,t)}w.isStaticPattern=gf;function _f(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(e_)||t_.test(e)||r_.test(e)||n_.test(e)||t.extglob!==!1&&i_.test(e)||t.braceExpansion!==!1&&o_(e))}w.isDynamicPattern=_f;function o_(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return s_.test(n)}function a_(e){return on(e)?e.slice(1):e}w.convertToPositivePattern=a_;function u_(e){return"!"+e}w.convertToNegativePattern=u_;function on(e){return e.startsWith("!")&&e[1]!=="("}w.isNegativePattern=on;function Ef(e){return!on(e)}w.isPositivePattern=Ef;function l_(e){return e.filter(on)}w.getNegativePatterns=l_;function f_(e){return e.filter(Ef)}w.getPositivePatterns=f_;function c_(e){return e.filter(t=>!Xi(t))}w.getPatternsInsideCurrentDirectory=c_;function A_(e){return e.filter(Xi)}w.getPatternsOutsideCurrentDirectory=A_;function Xi(e){return e.startsWith("..")||e.startsWith("./..")}w.isPatternRelatedToParentDirectory=Xi;function h_(e){return zg(e,{flipBackslashes:!1})}w.getBaseDirectory=h_;function p_(e){return e.includes(df)}w.hasGlobStar=p_;function mf(e){return e.endsWith("/"+df)}w.endsWithSlashGlobStar=mf;function d_(e){let t=Zg.basename(e);return mf(e)||gf(t)}w.isAffectDepthOfReadingPattern=d_;function g_(e){return e.reduce((t,r)=>t.concat(yf(r)),[])}w.expandPatternsWithBraceExpansion=g_;function yf(e){return Vi.braces(e,{expand:!0,nodupes:!0})}w.expandBraceExpansion=yf;function __(e,t){let{parts:r}=Vi.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}w.getPatternParts=__;function Cf(e,t){return Vi.makeRe(e,t)}w.makeRe=Cf;function E_(e,t){return e.map(r=>Cf(r,t))}w.convertPatternsToRe=E_;function m_(e,t){return t.some(r=>r.test(e))}w.matchAny=m_});var xf=g((rC,Bf)=>{"use strict";var y_=B("stream"),vf=y_.PassThrough,C_=Array.prototype.slice;Bf.exports=b_;function b_(){let e=[],t=C_.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=vf(n);function a(){for(let l=0,h=arguments.length;l<h;l++)e.push(Sf(arguments[l],n));return u(),this}function u(){if(r)return;r=!0;let l=e.shift();if(!l){process.nextTick(f);return}Array.isArray(l)||(l=[l]);let h=l.length+1;function A(){--h>0||(r=!1,u())}function C(E){function _(){E.removeListener("merge2UnpipeEnd",_),E.removeListener("end",_),s&&E.removeListener("error",v),A()}function v(b){o.emit("error",b)}if(E._readableState.endEmitted)return A();E.on("merge2UnpipeEnd",_),E.on("end",_),s&&E.on("error",v),E.pipe(o,{end:!1}),E.resume()}for(let E=0;E<l.length;E++)C(l[E]);A()}function f(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function Sf(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=Sf(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(vf(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Rf=g(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.merge=void 0;var v_=xf();function S_(e){let t=v_(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>wf(e)),t.once("end",()=>wf(e)),t}an.merge=S_;function wf(e){e.forEach(t=>t.emit("close"))}});var Qf=g(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.isEmpty=It.isString=void 0;function B_(e){return typeof e=="string"}It.isString=B_;function x_(e){return e===""}It.isEmpty=x_});var Me=g(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.string=ne.stream=ne.pattern=ne.path=ne.fs=ne.errno=ne.array=void 0;var w_=Wu();ne.array=w_;var R_=Vu();ne.errno=R_;var Q_=Xu();ne.fs=Q_;var I_=Zu();ne.path=I_;var T_=bf();ne.pattern=T_;var O_=Rf();ne.stream=O_;var D_=Qf();ne.string=D_});var Of=g(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.convertPatternGroupToTask=ie.convertPatternGroupsToTasks=ie.groupPatternsByBaseDirectory=ie.getNegativePatternsAsPositive=ie.getPositivePatterns=ie.convertPatternsToTasks=ie.generate=void 0;var Fe=Me();function k_(e,t){let r=If(e),n=Tf(e,t.ignore),i=r.filter(u=>Fe.pattern.isStaticPattern(u,t)),s=r.filter(u=>Fe.pattern.isDynamicPattern(u,t)),o=Zi(i,n,!1),a=Zi(s,n,!0);return o.concat(a)}ie.generate=k_;function Zi(e,t,r){let n=[],i=Fe.pattern.getPatternsOutsideCurrentDirectory(e),s=Fe.pattern.getPatternsInsideCurrentDirectory(e),o=zi(i),a=zi(s);return n.push(...es(o,t,r)),"."in a?n.push(ts(".",s,t,r)):n.push(...es(a,t,r)),n}ie.convertPatternsToTasks=Zi;function If(e){return Fe.pattern.getPositivePatterns(e)}ie.getPositivePatterns=If;function Tf(e,t){return Fe.pattern.getNegativePatterns(e).concat(t).map(Fe.pattern.convertToPositivePattern)}ie.getNegativePatternsAsPositive=Tf;function zi(e){let t={};return e.reduce((r,n)=>{let i=Fe.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}ie.groupPatternsByBaseDirectory=zi;function es(e,t,r){return Object.keys(e).map(n=>ts(n,e[n],t,r))}ie.convertPatternGroupsToTasks=es;function ts(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Fe.pattern.convertToNegativePattern))}}ie.convertPatternGroupToTask=ts});var kf=g(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.removeDuplicateSlashes=Tt.transform=void 0;var L_=/(?!^)\/{2,}/g;function P_(e){return e.map(t=>Df(t))}Tt.transform=P_;function Df(e){return e.replace(L_,"/")}Tt.removeDuplicateSlashes=Df});var Pf=g(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.read=void 0;function N_(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){Lf(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){rs(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Lf(r,s);return}rs(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),rs(r,o)})})}un.read=N_;function Lf(e,t){e(t)}function rs(e,t){e(null,t)}});var Nf=g(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.read=void 0;function M_(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}ln.read=M_});var Mf=g(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.createFileSystemAdapter=Ke.FILE_SYSTEM_ADAPTER=void 0;var fn=B("fs");Ke.FILE_SYSTEM_ADAPTER={lstat:fn.lstat,stat:fn.stat,lstatSync:fn.lstatSync,statSync:fn.statSync};function F_(e){return e===void 0?Ke.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ke.FILE_SYSTEM_ADAPTER),e)}Ke.createFileSystemAdapter=F_});var Ff=g(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});var q_=Mf(),ns=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=q_.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};is.default=ns});var ft=g(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.statSync=Je.stat=Je.Settings=void 0;var qf=Pf(),H_=Nf(),ss=Ff();Je.Settings=ss.default;function j_(e,t,r){if(typeof t=="function"){qf.read(e,os(),t);return}qf.read(e,os(t),r)}Je.stat=j_;function $_(e,t){let r=os(t);return H_.read(e,r)}Je.statSync=$_;function os(e={}){return e instanceof ss.default?e:new ss.default(e)}});var $f=g((hC,jf)=>{var Hf;jf.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Hf||(Hf=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Uf=g((pC,Gf)=>{Gf.exports=U_;var G_=$f();function U_(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(u){function f(){t&&t(u,r),t=null}s?G_(f):f()}function a(u,f,l){r[u]=l,(--n===0||f)&&o(f)}n?i?i.forEach(function(u){e[u](function(f,l){a(u,f,l)})}):e.forEach(function(u,f){u(function(l,h){a(f,l,h)})}):o(null),s=!1}});var as=g(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var cn=process.versions.node.split(".");if(cn[0]===void 0||cn[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Kf=Number.parseInt(cn[0],10),K_=Number.parseInt(cn[1],10),Jf=10,J_=10,Y_=Kf>Jf,W_=Kf===Jf&&K_>=J_;An.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Y_||W_});var Yf=g(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.createDirentFromStats=void 0;var us=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function V_(e,t){return new us(e,t)}hn.createDirentFromStats=V_});var ls=g(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.fs=void 0;var X_=Yf();pn.fs=X_});var fs=g(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.joinPathSegments=void 0;function Z_(e,t,r){return e.endsWith(r)?e+t:e+r+t}dn.joinPathSegments=Z_});var ec=g(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.readdir=Ye.readdirWithFileTypes=Ye.read=void 0;var z_=ft(),Wf=Uf(),e0=as(),Vf=ls(),Xf=fs();function t0(e,t,r){if(!t.stats&&e0.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Zf(e,t,r);return}zf(e,t,r)}Ye.read=t0;function Zf(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){gn(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:Xf.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){cs(r,s);return}let o=s.map(a=>r0(a,t));Wf(o,(a,u)=>{if(a!==null){gn(r,a);return}cs(r,u)})})}Ye.readdirWithFileTypes=Zf;function r0(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=Vf.fs.createDirentFromStats(e.name,i),r(null,e)})}}function zf(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){gn(r,n);return}let s=i.map(o=>{let a=Xf.joinPathSegments(e,o,t.pathSegmentSeparator);return u=>{z_.stat(a,t.fsStatSettings,(f,l)=>{if(f!==null){u(f);return}let h={name:o,path:a,dirent:Vf.fs.createDirentFromStats(o,l)};t.stats&&(h.stats=l),u(null,h)})}});Wf(s,(o,a)=>{if(o!==null){gn(r,o);return}cs(r,a)})})}Ye.readdir=zf;function gn(e,t){e(t)}function cs(e,t){e(null,t)}});var sc=g(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.readdir=We.readdirWithFileTypes=We.read=void 0;var n0=ft(),i0=as(),tc=ls(),rc=fs();function s0(e,t){return!t.stats&&i0.IS_SUPPORT_READDIR_WITH_FILE_TYPES?nc(e,t):ic(e,t)}We.read=s0;function nc(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:rc.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=tc.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}We.readdirWithFileTypes=nc;function ic(e,t){return t.fs.readdirSync(e).map(n=>{let i=rc.joinPathSegments(e,n,t.pathSegmentSeparator),s=n0.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:tc.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}We.readdir=ic});var oc=g(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.createFileSystemAdapter=Ve.FILE_SYSTEM_ADAPTER=void 0;var Ot=B("fs");Ve.FILE_SYSTEM_ADAPTER={lstat:Ot.lstat,stat:Ot.stat,lstatSync:Ot.lstatSync,statSync:Ot.statSync,readdir:Ot.readdir,readdirSync:Ot.readdirSync};function o0(e){return e===void 0?Ve.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ve.FILE_SYSTEM_ADAPTER),e)}Ve.createFileSystemAdapter=o0});var ac=g(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});var a0=B("path"),u0=ft(),l0=oc(),As=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=l0.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,a0.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new u0.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};hs.default=As});var _n=g(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.Settings=Xe.scandirSync=Xe.scandir=void 0;var uc=ec(),f0=sc(),ps=ac();Xe.Settings=ps.default;function c0(e,t,r){if(typeof t=="function"){uc.read(e,ds(),t);return}uc.read(e,ds(t),r)}Xe.scandir=c0;function A0(e,t){let r=ds(t);return f0.read(e,r)}Xe.scandirSync=A0;function ds(e={}){return e instanceof ps.default?e:new ps.default(e)}});var fc=g((SC,lc)=>{"use strict";function h0(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}lc.exports=h0});var Ac=g((BC,gs)=>{"use strict";var p0=fc();function cc(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=p0(d0),i=null,s=null,o=0,a=null,u={push:_,drain:_e,saturated:_e,pause:l,paused:!1,concurrency:r,running:f,resume:C,idle:E,length:h,getQueue:A,unshift:v,empty:_e,kill:O,killAndDrain:P,error:U};return u;function f(){return o}function l(){u.paused=!0}function h(){for(var x=i,H=0;x;)x=x.next,H++;return H}function A(){for(var x=i,H=[];x;)H.push(x.value),x=x.next;return H}function C(){if(!!u.paused){u.paused=!1;for(var x=0;x<u.concurrency;x++)o++,b()}}function E(){return o===0&&u.length()===0}function _(x,H){var R=n.get();R.context=e,R.release=b,R.value=x,R.callback=H||_e,R.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=R,s=R):(i=R,s=R,u.saturated()):(o++,t.call(e,R.value,R.worked))}function v(x,H){var R=n.get();R.context=e,R.release=b,R.value=x,R.callback=H||_e,o===u.concurrency||u.paused?i?(R.next=i,i=R):(i=R,s=R,u.saturated()):(o++,t.call(e,R.value,R.worked))}function b(x){x&&n.release(x);var H=i;H?u.paused?o--:(s===i&&(s=null),i=H.next,H.next=null,t.call(e,H.value,H.worked),s===null&&u.empty()):--o===0&&u.drain()}function O(){i=null,s=null,u.drain=_e}function P(){i=null,s=null,u.drain(),u.drain=_e}function U(x){a=x}}function _e(){}function d0(){this.value=null,this.callback=_e,this.next=null,this.release=_e,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=_e,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function g0(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(l,h){t.call(this,l).then(function(A){h(null,A)},h)}var i=cc(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=f,i;function a(l){var h=new Promise(function(A,C){s(l,function(E,_){if(E){C(E);return}A(_)})});return h.catch(_e),h}function u(l){var h=new Promise(function(A,C){o(l,function(E,_){if(E){C(E);return}A(_)})});return h.catch(_e),h}function f(){var l=i.drain,h=new Promise(function(A){i.drain=function(){l(),A()}});return h}}gs.exports=cc;gs.exports.promise=g0});var En=g(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.joinPathSegments=De.replacePathSegmentSeparator=De.isAppliedFilter=De.isFatalError=void 0;function _0(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}De.isFatalError=_0;function E0(e,t){return e===null||e(t)}De.isAppliedFilter=E0;function m0(e,t){return e.split(/[/\\]/).join(t)}De.replacePathSegmentSeparator=m0;function y0(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}De.joinPathSegments=y0});var ms=g(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var C0=En(),_s=class{constructor(t,r){this._root=t,this._settings=r,this._root=C0.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Es.default=_s});var bs=g(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});var b0=B("events"),v0=_n(),S0=Ac(),mn=En(),B0=ms(),ys=class extends B0.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=v0.scandir,this._emitter=new b0.EventEmitter,this._queue=S0(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!mn.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=mn.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),mn.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&mn.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Cs.default=ys});var hc=g(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});var x0=bs(),vs=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new x0.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{w0(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{R0(t,this._storage)}),this._reader.read()}};Ss.default=vs;function w0(e,t){e(t)}function R0(e,t){e(null,t)}});var pc=g(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});var Q0=B("stream"),I0=bs(),Bs=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new I0.default(this._root,this._settings),this._stream=new Q0.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};xs.default=Bs});var dc=g(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var T0=_n(),yn=En(),O0=ms(),ws=class extends O0.default{constructor(){super(...arguments),this._scandir=T0.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(!!yn.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=yn.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),yn.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&yn.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Rs.default=ws});var gc=g(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});var D0=dc(),Qs=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new D0.default(this._root,this._settings)}read(){return this._reader.read()}};Is.default=Qs});var _c=g(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var k0=B("path"),L0=_n(),Ts=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,k0.sep),this.fsScandirSettings=new L0.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Os.default=Ts});var ks=g(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.Settings=ke.walkStream=ke.walkSync=ke.walk=void 0;var Ec=hc(),P0=pc(),N0=gc(),Ds=_c();ke.Settings=Ds.default;function M0(e,t,r){if(typeof t=="function"){new Ec.default(e,Cn()).read(t);return}new Ec.default(e,Cn(t)).read(r)}ke.walk=M0;function F0(e,t){let r=Cn(t);return new N0.default(e,r).read()}ke.walkSync=F0;function q0(e,t){let r=Cn(t);return new P0.default(e,r).read()}ke.walkStream=q0;function Cn(e={}){return e instanceof Ds.default?e:new Ds.default(e)}});var Ns=g(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});var H0=B("path"),j0=ft(),mc=Me(),Ls=class{constructor(t){this._settings=t,this._fsStatSettings=new j0.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return H0.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:mc.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!mc.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Ps.default=Ls});var qs=g(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});var $0=B("stream"),G0=ft(),U0=ks(),K0=Ns(),Ms=class extends K0.default{constructor(){super(...arguments),this._walkStream=U0.walkStream,this._stat=G0.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new $0.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Fs.default=Ms});var yc=g(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});var Dt=Me(),Hs=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=Dt.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(t){return Dt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Dt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Dt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Dt.array.splitWhen(t,r=>r.dynamic&&Dt.pattern.hasGlobStar(r.pattern))}};js.default=Hs});var Cc=g(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var J0=yc(),$s=class extends J0.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((u,f)=>{let l=s.segments[f];return!!(l.dynamic&&l.patternRe.test(u)||!l.dynamic&&l.pattern===u)}))return!0}return!1}};Gs.default=$s});var bc=g(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var bn=Me(),Y0=Cc(),Us=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new Y0.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(bn.pattern.isAffectDepthOfReadingPattern);return bn.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=bn.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!bn.pattern.matchAny(t,r)}};Ks.default=Us});var vc=g(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});var ct=Me(),Js=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=ct.pattern.convertPatternsToRe(t,this._micromatchOptions),i=ct.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=this._isMatchToPatterns(i,r)&&!this._isMatchToPatterns(t.path,n);return this._settings.unique&&s&&this._createIndexRecord(t),s}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=ct.path.makeAbsolute(this._settings.cwd,t);return ct.pattern.matchAny(n,r)}_isMatchToPatterns(t,r){let n=ct.path.removeLeadingDotSegment(t);return ct.pattern.matchAny(n,r)||ct.pattern.matchAny(n+"/",r)}};Ys.default=Js});var Sc=g(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});var W0=Me(),Ws=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return W0.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Vs.default=Ws});var xc=g(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var Bc=Me(),Xs=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Bc.path.makeAbsolute(this._settings.cwd,r),r=Bc.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Zs.default=Xs});var vn=g(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});var V0=B("path"),X0=bc(),Z0=vc(),z0=Sc(),eE=xc(),zs=class{constructor(t){this._settings=t,this.errorFilter=new z0.default(this._settings),this.entryFilter=new Z0.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new X0.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new eE.default(this._settings)}_getRootDirectory(t){return V0.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};eo.default=zs});var wc=g(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});var tE=qs(),rE=vn(),to=class extends rE.default{constructor(){super(...arguments),this._reader=new tE.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=[];return new Promise((s,o)=>{let a=this.api(r,t,n);a.once("error",o),a.on("data",u=>i.push(n.transform(u))),a.once("end",()=>s(i))})}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};ro.default=to});var Rc=g(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});var nE=B("stream"),iE=qs(),sE=vn(),no=class extends sE.default{constructor(){super(...arguments),this._reader=new iE.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new nE.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};io.default=no});var Qc=g(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});var oE=ft(),aE=ks(),uE=Ns(),so=class extends uE.default{constructor(){super(...arguments),this._walkSync=aE.walkSync,this._statSync=oE.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};oo.default=so});var Ic=g(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});var lE=Qc(),fE=vn(),ao=class extends fE.default{constructor(){super(...arguments),this._reader=new lE.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};uo.default=ao});var Tc=g(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var kt=B("fs"),cE=B("os"),AE=Math.max(cE.cpus().length,1);Lt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:kt.lstat,lstatSync:kt.lstatSync,stat:kt.stat,statSync:kt.statSync,readdir:kt.readdir,readdirSync:kt.readdirSync};var lo=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,AE),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},Lt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};Lt.default=lo});var ho=g((WC,kc)=>{"use strict";var Oc=Of(),Dc=kf(),hE=wc(),pE=Rc(),dE=Ic(),fo=Tc(),At=Me();async function co(e,t){Pt(e);let r=Ao(e,hE.default,t),n=await Promise.all(r);return At.array.flatten(n)}(function(e){function t(o,a){Pt(o);let u=Ao(o,dE.default,a);return At.array.flatten(u)}e.sync=t;function r(o,a){Pt(o);let u=Ao(o,pE.default,a);return At.stream.merge(u)}e.stream=r;function n(o,a){Pt(o);let u=Dc.transform([].concat(o)),f=new fo.default(a);return Oc.generate(u,f)}e.generateTasks=n;function i(o,a){Pt(o);let u=new fo.default(a);return At.pattern.isDynamicPattern(o,u)}e.isDynamicPattern=i;function s(o){return Pt(o),At.path.escape(o)}e.escapePath=s})(co||(co={}));function Ao(e,t,r){let n=Dc.transform([].concat(e)),i=new fo.default(r),s=Oc.generate(n,i),o=new t(i);return s.map(o.read,o)}function Pt(e){if(![].concat(e).every(n=>At.string.isString(n)&&!At.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}kc.exports=co});import{relative as YE,resolve as WE}from"path";import{existsSync as VE}from"fs";import{lstat as XE}from"fs/promises";var Qo=(e=0)=>t=>`\x1B[${t+e}m`,Io=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,To=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function nA(){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,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[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=Qo(),t.color.ansi256=Io(),t.color.ansi16m=To(),t.bgColor.ansi=Qo(10),t.bgColor.ansi256=Io(10),t.bgColor.ansi16m=To(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(o=>o+o).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&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,s;if(r>=232)n=((r-232)*10+8)/255,i=n,s=n;else{r-=16;let u=r%36;n=Math.floor(r/36)/5,i=Math.floor(u/6)/5,s=u%6/5}let o=Math.max(n,i,s)*2;if(o===0)return 30;let a=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(n));return o===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 iA=nA(),Ee=iA;import Rn from"node:process";import sA from"node:os";import Oo from"node:tty";function Ae(e,t=Rn.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:X}=Rn,gr;Ae("no-color")||Ae("no-colors")||Ae("color=false")||Ae("color=never")?gr=0:(Ae("color")||Ae("colors")||Ae("color=true")||Ae("color=always"))&&(gr=1);function oA(){if("FORCE_COLOR"in X)return X.FORCE_COLOR==="true"?1:X.FORCE_COLOR==="false"?0:X.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(X.FORCE_COLOR,10),3)}function aA(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function uA(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=oA();n!==void 0&&(gr=n);let i=r?gr:n;if(i===0)return 0;if(r){if(Ae("color=16m")||Ae("color=full")||Ae("color=truecolor"))return 3;if(Ae("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(X.TERM==="dumb")return s;if(Rn.platform==="win32"){let o=sA.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in X)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in X)||X.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in X)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(X.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in X&&"AGENT_NAME"in X)return 1;if(X.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in X){let o=Number.parseInt((X.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(X.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(X.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(X.TERM)||"COLORTERM"in X?1:s}function Do(e,t={}){let r=uA(e,{streamIsTTY:e&&e.isTTY,...t});return aA(r)}var lA={stdout:Do({isTTY:Oo.isatty(1)}),stderr:Do({isTTY:Oo.isatty(2)})},ko=lA;function Lo(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.slice(s),o}function Po(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
6
|
-
`:`
|
7
|
-
`)+r,i=n+1,n=e.indexOf(`
|
8
|
-
`,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:No,stderr:Mo}=ko,Qn=Symbol("GENERATOR"),pt=Symbol("STYLER"),Ft=Symbol("IS_EMPTY"),Fo=["ansi","ansi","ansi256","ansi16m"],dt=Object.create(null),fA=(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=No?No.level:0;e.level=t.level===void 0?r:t.level};var cA=e=>{let t=(...r)=>r.join(" ");return fA(t,e),Object.setPrototypeOf(t,qt.prototype),t};function qt(e){return cA(e)}Object.setPrototypeOf(qt.prototype,Function.prototype);for(let[e,t]of Object.entries(Ee))dt[e]={get(){let r=_r(this,Tn(t.open,t.close,this[pt]),this[Ft]);return Object.defineProperty(this,e,{value:r}),r}};dt.visible={get(){let e=_r(this,this[pt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var In=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Ee[r].ansi16m(...n):t==="ansi256"?Ee[r].ansi256(Ee.rgbToAnsi256(...n)):Ee[r].ansi(Ee.rgbToAnsi(...n)):e==="hex"?In("rgb",t,r,...Ee.hexToRgb(...n)):Ee[r][e](...n),AA=["rgb","hex","ansi256"];for(let e of AA){dt[e]={get(){let{level:r}=this;return function(...n){let i=Tn(In(e,Fo[r],"color",...n),Ee.color.close,this[pt]);return _r(this,i,this[Ft])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);dt[t]={get(){let{level:r}=this;return function(...n){let i=Tn(In(e,Fo[r],"bgColor",...n),Ee.bgColor.close,this[pt]);return _r(this,i,this[Ft])}}}}var hA=Object.defineProperties(()=>{},{...dt,level:{enumerable:!0,get(){return this[Qn].level},set(e){this[Qn].level=e}}}),Tn=(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}},_r=(e,t,r)=>{let n=(...i)=>pA(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,hA),n[Qn]=e,n[pt]=t,n[Ft]=r,n},pA=(e,t)=>{if(e.level<=0||!t)return e[Ft]?"":t;let r=e[pt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Lo(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
9
|
-
`);return s!==-1&&(t=Po(t,i,n,s)),n+t+i};Object.defineProperties(qt.prototype,dt);var dA=qt(),um=qt({level:Mo?Mo.level:0});var k=dA;import{spawn as gA,execSync as _A}from"child_process";import Pn from"node:process";import yA from"node:os";import $o 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 qo=(e=0)=>t=>`\x1B[${t+e}m`,Ho=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,jo=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function EA(){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,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[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=qo(),t.color.ansi256=Ho(),t.color.ansi16m=jo(),t.bgColor.ansi=qo(10),t.bgColor.ansi256=Ho(10),t.bgColor.ansi16m=jo(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(o=>o+o).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&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,s;if(r>=232)n=((r-232)*10+8)/255,i=n,s=n;else{r-=16;let u=r%36;n=Math.floor(r/36)/5,i=Math.floor(u/6)/5,s=u%6/5}let o=Math.max(n,i,s)*2;if(o===0)return 30;let a=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(n));return o===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 mA=EA(),Be=mA;function he(e,t=Pn.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:Z}=Pn,Er;he("no-color")||he("no-colors")||he("color=false")||he("color=never")?Er=0:(he("color")||he("colors")||he("color=true")||he("color=always"))&&(Er=1);function CA(){if("FORCE_COLOR"in Z)return Z.FORCE_COLOR==="true"?1:Z.FORCE_COLOR==="false"?0:Z.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Z.FORCE_COLOR,10),3)}function bA(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function vA(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=CA();n!==void 0&&(Er=n);let i=r?Er:n;if(i===0)return 0;if(r){if(he("color=16m")||he("color=full")||he("color=truecolor"))return 3;if(he("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(Z.TERM==="dumb")return s;if(Pn.platform==="win32"){let o=yA.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in Z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in Z)||Z.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in Z&&"AGENT_NAME"in Z)return 1;if(Z.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Z){let o=Number.parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:s}function Go(e,t={}){let r=vA(e,{streamIsTTY:e&&e.isTTY,...t});return bA(r)}var SA={stdout:Go({isTTY:$o.isatty(1)}),stderr:Go({isTTY:$o.isatty(2)})},BA=SA;function xA(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.slice(s),o}function wA(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
10
|
-
`:`
|
11
|
-
`)+r,i=n+1,n=e.indexOf(`
|
12
|
-
`,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Uo,stderr:Ko}=BA,On=Symbol("GENERATOR"),gt=Symbol("STYLER"),Ht=Symbol("IS_EMPTY"),Jo=["ansi","ansi","ansi256","ansi16m"],_t=Object.create(null),RA=(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=Uo?Uo.level:0;e.level=t.level===void 0?r:t.level},QA=e=>{let t=(...r)=>r.join(" ");return RA(t,e),Object.setPrototypeOf(t,jt.prototype),t};function jt(e){return QA(e)}Object.setPrototypeOf(jt.prototype,Function.prototype);for(let[e,t]of Object.entries(Be))_t[e]={get(){let r=mr(this,kn(t.open,t.close,this[gt]),this[Ht]);return Object.defineProperty(this,e,{value:r}),r}};_t.visible={get(){let e=mr(this,this[gt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Dn=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Be[r].ansi16m(...n):t==="ansi256"?Be[r].ansi256(Be.rgbToAnsi256(...n)):Be[r].ansi(Be.rgbToAnsi(...n)):e==="hex"?Dn("rgb",t,r,...Be.hexToRgb(...n)):Be[r][e](...n),IA=["rgb","hex","ansi256"];for(let e of IA){_t[e]={get(){let{level:r}=this;return function(...n){let i=kn(Dn(e,Jo[r],"color",...n),Be.color.close,this[gt]);return mr(this,i,this[Ht])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);_t[t]={get(){let{level:r}=this;return function(...n){let i=kn(Dn(e,Jo[r],"bgColor",...n),Be.bgColor.close,this[gt]);return mr(this,i,this[Ht])}}}}var TA=Object.defineProperties(()=>{},{..._t,level:{enumerable:!0,get(){return this[On].level},set(e){this[On].level=e}}}),kn=(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}},mr=(e,t,r)=>{let n=(...i)=>OA(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,TA),n[On]=e,n[gt]=t,n[Ht]=r,n},OA=(e,t)=>{if(e.level<=0||!t)return e[Ht]?"":t;let r=e[gt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=xA(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
13
|
-
`);return s!==-1&&(t=wA(t,i,n,s)),n+t+i};Object.defineProperties(jt.prototype,_t);var DA=jt(),pm=jt({level:Ko?Ko.level:0}),kA=DA,LA={win32:e=>({cmd:"cmd.exe",args:["/d","/s","/c",e]})},PA={"cp -rf":{win32:e=>{let t="xcopy /E /S /G /Q /Y",r=e.map(n=>n.endsWith("\\")?n:`${n}\\`).map(n=>n.replace(/\*\\$/,""));return`${t} ${r.join(" ")}`}},ln:{win32:e=>`mklink /D ${e.join(" ")}`},pkill:{win32:e=>`taskkill /T /F /pid ${e.join(" ")}`}},NA=(e,t,r)=>{let n={...LA,...t},i={...PA,...r},s=a=>{let u=process.platform,f=n[u];if(f)return f(a);let[l,...h]=a.split(" ");return{cmd:l,args:h}},o=(a=>{let u=Object.entries(i);for(let[f,l]of u)if(a.startsWith(f)){let h=process.platform,A=l[h];if(!A)break;let C=a.slice(f.length).trim().split(" ");return A(C)}return a})(e);return s(o)},MA=process.platform==="linux"||process.platform==="darwin",Ln=process.platform==="win32",FA={stdio:"pipe",shell:!0,detached:!Ln,env:process.env},qA={log:!0,commandTranslations:{},shellTranslations:{},...FA},Et=({log:e=!0,commandTranslations:t={},shellTranslations:r={},...n}=qA)=>{let i=null;return{childProcess:i,async run(s){if(i)throw new Error("Only one command per shell.");if(typeof s=="object"){let u=process.platform;s.posix&&MA&&(u="posix");let f=s[u];if(!f)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:s}));s=f}let{cmd:o,args:a}=NA(s,r,t);return e&&console.log(kA.dim(`
|
14
|
-
$ ${o} ${a.join(" ")}
|
15
|
-
`)),await new Promise((u,f)=>{i=gA(o,a,n);let l="",h="";if(!i)throw new Error("Child process was not set.");let A=C=>{i=null;let E={code:C,stdout:l,stderr:h};C===0||C===1&&!Ln?u(E):f(E)};i.stdout?.on("data",C=>{l+=C.toString()}),i.stderr?.on("data",C=>{h+=C.toString()}),i.on("close",A),i.on("exit",A),i.on("error",A),i.stdout?.pipe(process.stdout),i.stderr?.pipe(process.stderr)})},kill(s="SIGKILL"){if(i?.pid)if(Ln)_A(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,s);return!0}}};var Yo={NODE_ENV:"production"};try{let{env:e}=await import("process");e.NODE_ENV&&(Yo.NODE_ENV=e.NODE_ENV)}catch{}var Nn=Yo.NODE_ENV==="development";import{Console as HA}from"console";var ze=new HA({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),me=e=>{if(Nn){let{name:t}=e;return{log(...r){let n=k.bgBlue.white(` [${t}] `);ze.log(`${n}`,`
|
16
|
-
|
17
|
-
`,...r),ze.log()},group(){ze.log();let r=k.bgBlue.white(` [${t}] `);ze.group(r),ze.log()},groupEnd(){ze.log(`
|
18
|
-
`,"-".repeat(20),`
|
19
|
-
`),ze.groupEnd()}}}else return{log(){},group(){},groupEnd(){}}};var ye=(...e)=>{console.log(),console.log(...e),console.log()};import Kr from"node:process";import ua from"node:process";var sa=qe(Zo(),1),oa=qe(ia(),1);import $A from"node:process";var GA=(0,sa.default)(()=>{(0,oa.default)(()=>{$A.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),aa=GA;var xr=!1,bt={};bt.show=(e=ua.stderr)=>{!e.isTTY||(xr=!1,e.write("\x1B[?25h"))};bt.hide=(e=ua.stderr)=>{!e.isTTY||(aa(),xr=!0,e.write("\x1B[?25l"))};bt.toggle=(e,t)=>{e!==void 0&&(xr=e),xr?bt.show(t):bt.hide(t)};var Hn=bt;var nr=qe(Aa(),1);import Le from"node:process";function Gt(){return Le.platform!=="win32"?Le.env.TERM!=="linux":Boolean(Le.env.CI)||Boolean(Le.env.WT_SESSION)||Le.env.ConEmuTask==="{cmd::Cmder}"||Le.env.TERM_PROGRAM==="vscode"||Le.env.TERM==="xterm-256color"||Le.env.TERM==="alacritty"||Le.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var KA={info:k.blue("ℹ"),success:k.green("✔"),warning:k.yellow("⚠"),error:k.red("✖")},JA={info:k.blue("i"),success:k.green("√"),warning:k.yellow("‼"),error:k.red("×")},YA=Gt()?KA:JA,Ut=YA;function jn({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 $n(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(jn(),"")}var Iu=qe(Ca(),1);function Un({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var Qu=qe(Ru(),1);import be from"node:process";import td from"node:readline";var rd=3,Ur=class{#r=0;#f=new Qu.BufferListStream;#i;#n;constructor(){this.#f.pipe(be.stdout);let t=this;this.#i=function(r,n,...i){let{stdin:s}=be;if(t.#r>0||s.emit===t.#i){if(r==="keypress")return;r==="data"&&n.includes(rd)&&be.emit("SIGINT"),Reflect.apply(t.#i,this,[r,n,...i])}else Reflect.apply(be.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(){be.platform!=="win32"&&(this.#n=td.createInterface({input:be.stdin,output:this.#f}),this.#n.on("SIGINT",()=>{be.listenerCount("SIGINT")===0?be.emit("SIGINT"):(this.#n.close(),be.kill(be.pid,"SIGINT"))}))}_realStop(){be.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var Jr,vi=class{#r=0;#f=!1;#i=0;#n=0;#e;#o;#t;#c;#A;#a;#u;#l;#h;#s;color;constructor(t){Jr||(Jr=new Ur),typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:Kr.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#A=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:Un({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,Kr.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.#A||this.#o.interval||100}get spinner(){return this.#o}set spinner(t){if(this.#n=0,this.#A=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#o=t}else if(!Gt())this.#o=nr.default.line;else if(t===void 0)this.#o=nr.default.dots;else if(t!=="default"&&nr.default[t])this.#o=nr.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.#h}set text(t){this.#h=t||"",this.updateLineCount()}get prefixText(){return this.#s}set prefixText(t){this.#s=t||"",this.updateLineCount()}get isSpinning(){return this.#c!==void 0}getFullPrefixText(t=this.#s,r=" "){return typeof t=="string"&&t!==""?t+r:typeof t=="function"?t()+r:""}updateLineCount(){let t=this.#t.columns||80,r=this.getFullPrefixText(this.#s,"-");this.#i=0;for(let n of $n(" ".repeat(this.#l)+r+"--"+this.#h).split(`
|
20
|
-
`))this.#i+=Math.max(1,Math.ceil((0,Iu.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.#o,r=t[this.#n];this.color&&(r=k[this.color](r)),this.#n=++this.#n%t.length;let n=typeof this.#s=="string"&&this.#s!==""?this.#s+" ":"",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&&Hn.hide(this.#t),this.#e.discardStdin&&Kr.stdin.isTTY&&(this.#f=!0,Jr.start()),this.render(),this.#c=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
|
21
|
-
`),this)}stop(){return this.#a?(clearInterval(this.#c),this.#c=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&Hn.show(this.#t),this.#e.discardStdin&&Kr.stdin.isTTY&&this.#f&&(Jr.stop(),this.#f=!1),this):this}succeed(t){return this.stopAndPersist({symbol:Ut.success,text:t})}fail(t){return this.stopAndPersist({symbol:Ut.error,text:t})}warn(t){return this.stopAndPersist({symbol:Ut.warning,text:t})}info(t){return this.stopAndPersist({symbol:Ut.info,text:t})}stopAndPersist(t={}){if(this.#u)return this;let r=t.prefixText||this.#s,n=t.text||this.text,i=typeof n=="string"?" "+n:"";return this.stop(),this.#t.write(`${this.getFullPrefixText(r," ")}${t.symbol||" "}${i}
|
22
|
-
`),this}};function Re(e){return new vi(e)}var Yc=qe(Yu(),1);import{constants as NE,existsSync as wo}from"fs";import{copyFile as ME,mkdir as FE,readFile as Gc,rm as Fc,writeFile as qE}from"fs/promises";import{dirname as Uc,extname as HE,isAbsolute as jE,resolve as $E,resolve as cr}from"path";import{build as Bo,transform as GE}from"esbuild";var xo=qe(ho(),1);import{env as qc}from"process";import{extname as zC,resolve as po}from"path";var Mt=/\.[mc]?tsx?(?=\?|$)/;var ht=/\.([mc])?[tj]sx$/,Lc=/\.([mc])?[tj]sx?$/,Nt={format:"esm",charset:"utf8",sourcemap:"inline",target:"node16",minify:!1},gE={".mts":{...Nt,loader:"ts"},".jsx":{...Nt,loader:"jsx"},".tsx":{...Nt,loader:"tsx"},".cts":{...Nt,loader:"ts"},".ts":{...Nt,loader:"ts"},".json":{...Nt,loader:"json"}},VC=Object.keys(gE);var go=()=>{let e=process.cwd(),t=po(e,"src"),r=po(e,"dist");return{cwd:e,srcDir:t,outDir:r}},_o=e=>{e=po(e);let{srcDir:t,outDir:r}=go();return e.replace(t,r).replace(Mt,".js").replace(ht,".js")};var _E={moduleResolution:"node",module:"esnext",target:"esnext",esModuleInterop:!0,incremental:!1,rootDir:"src",outDir:"dist",declaration:!0,noEmit:!1,emitDeclarationOnly:!0},Eo=async()=>{let e=me(Eo),t=Et({log:!1}),r=Object.entries(_E).map(([i,s])=>`--${i} ${s}`).join(" "),n=`tsc -p tsconfig.json ${r}`;e.log(`Calling: ${n}`),await t.run(`tsc -p tsconfig.json ${r}`)};import{readFile as EE,writeFile as ab}from"fs/promises";import{resolve as mE}from"path";var Pc=async(e=process.cwd())=>{let t=mE(e,"package.json");return await EE(t,"utf-8")};var Mc=qe(ho(),1);import{existsSync as TE}from"fs";import{writeFile as OE}from"fs/promises";import{isAbsolute as DE,resolve as kE}from"path";import{dirname as vE,normalize as SE,posix as Sn,resolve as BE}from"path";import{existsSync as Nc}from"fs";import{readFile as xE}from"fs/promises";var yE=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function yo(e,t="@"){if(!G)return Co.then(()=>yo(e));let r=e.length+1,n=(G.__heap_base.value||G.__heap_base)+4*r-G.memory.buffer.byteLength;n>0&&G.memory.grow(Math.ceil(n/65536));let i=G.sa(r-1);if((yE?bE:CE)(e,new Uint16Array(G.memory.buffer,i,r)),!G.parse())throw Object.assign(new Error(`Parse error ${t}:${e.slice(0,G.e()).split(`
|
23
|
-
`).length}:${G.e()-e.lastIndexOf(`
|
24
|
-
`,G.e()-1)}`),{idx:G.e()});let s=[],o=[];for(;G.ri();){let u=G.is(),f=G.ie(),l=G.ai(),h=G.id(),A=G.ss(),C=G.se(),E;G.ip()&&(E=a(e.slice(h===-1?u-1:u,h===-1?f+1:f))),s.push({n:E,s:u,e:f,ss:A,se:C,d:h,a:l})}for(;G.re();){let u=e.slice(G.es(),G.ee()),f=u[0];o.push(f==='"'||f==="'"?a(u):u)}function a(u){try{return(0,eval)(u)}catch{}}return[s,o,!!G.f()]}function CE(e,t){let r=e.length,n=0;for(;n<r;){let i=e.charCodeAt(n);t[n++]=(255&i)<<8|i>>>8}}function bE(e,t){let r=e.length,n=0;for(;n<r;)t[n]=e.charCodeAt(n++)}var G,Co=WebAssembly.compile((mo="AGFzbQEAAAABKghgAX8Bf2AEf39/fwBgAn9/AGAAAX9gAABgAX8AYAN/f38Bf2ACf38BfwMqKQABAgMDAwMDAwMDAwMDAwMAAAQEBAUEBQAAAAAEBAAGBwACAAAABwMGBAUBcAEBAQUDAQABBg8CfwFBkPIAC38AQZDyAAsHZBEGbWVtb3J5AgACc2EAAAFlAAMCaXMABAJpZQAFAnNzAAYCc2UABwJhaQAIAmlkAAkCaXAACgJlcwALAmVlAAwCcmkADQJyZQAOAWYADwVwYXJzZQAQC19faGVhcF9iYXNlAwEKhjQpaAEBf0EAIAA2AtQJQQAoArAJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgLYCUEAIAA2AtwJQQBBADYCtAlBAEEANgLECUEAQQA2ArwJQQBBADYCuAlBAEEANgLMCUEAQQA2AsAJIAELnwEBA39BACgCxAkhBEEAQQAoAtwJIgU2AsQJQQAgBDYCyAlBACAFQSBqNgLcCSAEQRxqQbQJIAQbIAU2AgBBACgCqAkhBEEAKAKkCSEGIAUgATYCACAFIAA2AgggBSACIAJBAmpBACAGIANGGyAEIANGGzYCDCAFIAM2AhQgBUEANgIQIAUgAjYCBCAFQQA2AhwgBUEAKAKkCSADRjoAGAtIAQF/QQAoAswJIgJBCGpBuAkgAhtBACgC3AkiAjYCAEEAIAI2AswJQQAgAkEMajYC3AkgAkEANgIIIAIgATYCBCACIAA2AgALCABBACgC4AkLFQBBACgCvAkoAgBBACgCsAlrQQF1Cx4BAX9BACgCvAkoAgQiAEEAKAKwCWtBAXVBfyAAGwsVAEEAKAK8CSgCCEEAKAKwCWtBAXULHgEBf0EAKAK8CSgCDCIAQQAoArAJa0EBdUF/IAAbCx4BAX9BACgCvAkoAhAiAEEAKAKwCWtBAXVBfyAAGws7AQF/AkBBACgCvAkoAhQiAEEAKAKkCUcNAEF/DwsCQCAAQQAoAqgJRw0AQX4PCyAAQQAoArAJa0EBdQsLAEEAKAK8CS0AGAsVAEEAKALACSgCAEEAKAKwCWtBAXULFQBBACgCwAkoAgRBACgCsAlrQQF1CyUBAX9BAEEAKAK8CSIAQRxqQbQJIAAbKAIAIgA2ArwJIABBAEcLJQEBf0EAQQAoAsAJIgBBCGpBuAkgABsoAgAiADYCwAkgAEEARwsIAEEALQDkCQvnCwEGfyMAQYDaAGsiASQAQQBBAToA5AlBAEH//wM7AewJQQBBACgCrAk2AvAJQQBBACgCsAlBfmoiAjYCiApBACACQQAoAtQJQQF0aiIDNgKMCkEAQQA7AeYJQQBBADsB6AlBAEEAOwHqCUEAQQA6APQJQQBBADYC4AlBAEEAOgDQCUEAIAFBgNIAajYC+AlBACABQYASajYC/AlBACABNgKACkEAQQA6AIQKAkACQAJAAkADQEEAIAJBAmoiBDYCiAogAiADTw0BAkAgBC8BACIDQXdqQQVJDQACQAJAAkACQAJAIANBm39qDgUBCAgIAgALIANBIEYNBCADQS9GDQMgA0E7Rg0CDAcLQQAvAeoJDQEgBBARRQ0BIAJBBGpBgghBChAoDQEQEkEALQDkCQ0BQQBBACgCiAoiAjYC8AkMBwsgBBARRQ0AIAJBBGpBjAhBChAoDQAQEwtBAEEAKAKICjYC8AkMAQsCQCACLwEEIgRBKkYNACAEQS9HDQQQFAwBC0EBEBULQQAoAowKIQNBACgCiAohAgwACwtBACEDIAQhAkEALQDQCQ0CDAELQQAgAjYCiApBAEEAOgDkCQsDQEEAIAJBAmoiBDYCiAoCQAJAAkACQAJAAkAgAkEAKAKMCk8NACAELwEAIgNBd2pBBUkNBQJAAkACQAJAAkACQAJAAkACQAJAIANBYGoOCg8OCA4ODg4HAQIACwJAAkACQAJAIANBoH9qDgoIEREDEQERERECAAsgA0GFf2oOAwUQBgsLQQAvAeoJDQ8gBBARRQ0PIAJBBGpBgghBChAoDQ8QEgwPCyAEEBFFDQ4gAkEEakGMCEEKECgNDhATDA4LIAQQEUUNDSACKQAEQuyAhIOwjsA5Ug0NIAIvAQwiBEF3aiICQRdLDQtBASACdEGfgIAEcUUNCwwMC0EAQQAvAeoJIgJBAWo7AeoJQQAoAvwJIAJBAnRqQQAoAvAJNgIADAwLQQAvAeoJIgNFDQhBACADQX9qIgU7AeoJQQAvAegJIgNFDQsgA0ECdEEAKAKACmpBfGooAgAiBigCFEEAKAL8CSAFQf//A3FBAnRqKAIARw0LAkAgBigCBA0AIAYgBDYCBAtBACADQX9qOwHoCSAGIAJBBGo2AgwMCwsCQEEAKALwCSIELwEAQSlHDQBBACgCxAkiAkUNACACKAIEIARHDQBBAEEAKALICSICNgLECQJAIAJFDQAgAkEANgIcDAELQQBBADYCtAkLIAFBgBBqQQAvAeoJIgJqQQAtAIQKOgAAQQAgAkEBajsB6glBACgC/AkgAkECdGogBDYCAEEAQQA6AIQKDAoLQQAvAeoJIgJFDQZBACACQX9qIgM7AeoJIAJBAC8B7AkiBEcNAUEAQQAvAeYJQX9qIgI7AeYJQQBBACgC+AkgAkH//wNxQQF0ai8BADsB7AkLEBYMCAsgBEH//wNGDQcgA0H//wNxIARJDQQMBwtBJxAXDAYLQSIQFwwFCyADQS9HDQQCQAJAIAIvAQQiAkEqRg0AIAJBL0cNARAUDAcLQQEQFQwGCwJAAkACQAJAQQAoAvAJIgQvAQAiAhAYRQ0AAkACQAJAIAJBVWoOBAEFAgAFCyAEQX5qLwEAQVBqQf//A3FBCkkNAwwECyAEQX5qLwEAQStGDQIMAwsgBEF+ai8BAEEtRg0BDAILAkAgAkH9AEYNACACQSlHDQFBACgC/AlBAC8B6glBAnRqKAIAEBlFDQEMAgtBACgC/AlBAC8B6gkiA0ECdGooAgAQGg0BIAFBgBBqIANqLQAADQELIAQQGw0AIAJFDQBBASEEIAJBL0ZBAC0A9AlBAEdxRQ0BCxAcQQAhBAtBACAEOgD0CQwEC0EALwHsCUH//wNGQQAvAeoJRXFBAC0A0AlFcUEALwHoCUVxIQMMBgsQHUEAIQMMBQsgBEGgAUcNAQtBAEEBOgCECgtBAEEAKAKICjYC8AkLQQAoAogKIQIMAAsLIAFBgNoAaiQAIAMLHQACQEEAKAKwCSAARw0AQQEPCyAAQX5qLwEAEB4LpgYBBH9BAEEAKAKICiIAQQxqIgE2AogKQQEQISECAkACQAJAAkACQEEAKAKICiIDIAFHDQAgAhAlRQ0BCwJAAkACQAJAAkAgAkGff2oODAYBAwgBBwEBAQEBBAALAkACQCACQSpGDQAgAkH2AEYNBSACQfsARw0CQQAgA0ECajYCiApBARAhIQNBACgCiAohAQNAAkACQCADQf//A3EiAkEiRg0AIAJBJ0YNACACECQaQQAoAogKIQIMAQsgAhAXQQBBACgCiApBAmoiAjYCiAoLQQEQIRoCQCABIAIQJiIDQSxHDQBBAEEAKAKICkECajYCiApBARAhIQMLQQAoAogKIQICQCADQf0ARg0AIAIgAUYNBSACIQEgAkEAKAKMCk0NAQwFCwtBACACQQJqNgKICgwBC0EAIANBAmo2AogKQQEQIRpBACgCiAoiAiACECYaC0EBECEhAgtBACgCiAohAwJAIAJB5gBHDQAgA0ECakGeCEEGECgNAEEAIANBCGo2AogKIABBARAhECIPC0EAIANBfmo2AogKDAMLEB0PCwJAIAMpAAJC7ICEg7COwDlSDQAgAy8BChAeRQ0AQQAgA0EKajYCiApBARAhIQJBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LQQAgA0EEaiIDNgKICgtBACADQQRqIgI2AogKQQBBADoA5AkDQEEAIAJBAmo2AogKQQEQISEDQQAoAogKIQICQCADECRBIHJB+wBHDQBBAEEAKAKICkF+ajYCiAoPC0EAKAKICiIDIAJGDQEgAiADEAICQEEBECEiAkEsRg0AAkAgAkE9Rw0AQQBBACgCiApBfmo2AogKDwtBAEEAKAKICkF+ajYCiAoPC0EAKAKICiECDAALCw8LQQAgA0EKajYCiApBARAhGkEAKAKICiEDC0EAIANBEGo2AogKAkBBARAhIgJBKkcNAEEAQQAoAogKQQJqNgKICkEBECEhAgtBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LIAMgA0EOahACC6sGAQR/QQBBACgCiAoiAEEMaiIBNgKICgJAAkACQAJAAkACQAJAAkACQAJAQQEQISICQVlqDggCCAECAQEBBwALIAJBIkYNASACQfsARg0CC0EAKAKICiABRg0HC0EALwHqCQ0BQQAoAogKIQJBACgCjAohAwNAIAIgA08NBAJAAkAgAi8BACIBQSdGDQAgAUEiRw0BCyAAIAEQIg8LQQAgAkECaiICNgKICgwACwtBACgCiAohAkEALwHqCQ0BAkADQAJAAkACQCACQQAoAowKTw0AQQEQISICQSJGDQEgAkEnRg0BIAJB/QBHDQJBAEEAKAKICkECajYCiAoLQQEQIRpBACgCiAoiAikAAELmgMiD8I3ANlINBkEAIAJBCGo2AogKQQEQISICQSJGDQMgAkEnRg0DDAYLIAIQFwtBAEEAKAKICkECaiICNgKICgwACwsgACACECIMBQtBAEEAKAKICkF+ajYCiAoPC0EAIAJBfmo2AogKDwsQHQ8LQQBBACgCiApBAmo2AogKQQEQIUHtAEcNAUEAKAKICiICQQJqQZYIQQYQKA0BQQAoAvAJLwEAQS5GDQEgACAAIAJBCGpBACgCqAkQAQ8LQQAoAvwJQQAvAeoJIgJBAnRqQQAoAogKNgIAQQAgAkEBajsB6glBACgC8AkvAQBBLkYNAEEAQQAoAogKIgFBAmo2AogKQQEQISECIABBACgCiApBACABEAFBAEEALwHoCSIBQQFqOwHoCUEAKAKACiABQQJ0akEAKALECTYCAAJAIAJBIkYNACACQSdGDQBBAEEAKAKICkF+ajYCiAoPCyACEBdBAEEAKAKICkECaiICNgKICgJAAkACQEEBECFBV2oOBAECAgACC0EAQQAoAogKQQJqNgKICkEBECEaQQAoAsQJIgEgAjYCBCABQQE6ABggAUEAKAKICiICNgIQQQAgAkF+ajYCiAoPC0EAKALECSIBIAI2AgQgAUEBOgAYQQBBAC8B6glBf2o7AeoJIAFBACgCiApBAmo2AgxBAEEALwHoCUF/ajsB6AkPC0EAQQAoAogKQX5qNgKICg8LC0cBA39BACgCiApBAmohAEEAKAKMCiEBAkADQCAAIgJBfmogAU8NASACQQJqIQAgAi8BAEF2ag4EAQAAAQALC0EAIAI2AogKC5gBAQN/QQBBACgCiAoiAUECajYCiAogAUEGaiEBQQAoAowKIQIDQAJAAkACQCABQXxqIAJPDQAgAUF+ai8BACEDAkACQCAADQAgA0EqRg0BIANBdmoOBAIEBAIECyADQSpHDQMLIAEvAQBBL0cNAkEAIAFBfmo2AogKDAELIAFBfmohAQtBACABNgKICg8LIAFBAmohAQwACwu/AQEEf0EAKAKICiEAQQAoAowKIQECQAJAA0AgACICQQJqIQAgAiABTw0BAkACQCAALwEAIgNBpH9qDgUBAgICBAALIANBJEcNASACLwEEQfsARw0BQQBBAC8B5gkiAEEBajsB5glBACgC+AkgAEEBdGpBAC8B7Ak7AQBBACACQQRqNgKICkEAQQAvAeoJQQFqIgA7AewJQQAgADsB6gkPCyACQQRqIQAMAAsLQQAgADYCiAoQHQ8LQQAgADYCiAoLiAEBBH9BACgCiAohAUEAKAKMCiECAkACQANAIAEiA0ECaiEBIAMgAk8NASABLwEAIgQgAEYNAgJAIARB3ABGDQAgBEF2ag4EAgEBAgELIANBBGohASADLwEEQQ1HDQAgA0EGaiABIAMvAQZBCkYbIQEMAAsLQQAgATYCiAoQHQ8LQQAgATYCiAoLbAEBfwJAAkAgAEFfaiIBQQVLDQBBASABdEExcQ0BCyAAQUZqQf//A3FBBkkNACAAQSlHIABBWGpB//8DcUEHSXENAAJAIABBpX9qDgQBAAABAAsgAEH9AEcgAEGFf2pB//8DcUEESXEPC0EBCy4BAX9BASEBAkAgAEH2CEEFEB8NACAAQYAJQQMQHw0AIABBhglBAhAfIQELIAELgwEBAn9BASEBAkACQAJAAkACQAJAIAAvAQAiAkFFag4EBQQEAQALAkAgAkGbf2oOBAMEBAIACyACQSlGDQQgAkH5AEcNAyAAQX5qQZIJQQYQHw8LIABBfmovAQBBPUYPCyAAQX5qQYoJQQQQHw8LIABBfmpBnglBAxAfDwtBACEBCyABC5MDAQJ/QQAhAQJAAkACQAJAAkACQAJAAkACQCAALwEAQZx/ag4UAAECCAgICAgICAMECAgFCAYICAcICwJAAkAgAEF+ai8BAEGXf2oOBAAJCQEJCyAAQXxqQa4IQQIQHw8LIABBfGpBsghBAxAfDwsCQAJAIABBfmovAQBBjX9qDgIAAQgLAkAgAEF8ai8BACICQeEARg0AIAJB7ABHDQggAEF6akHlABAgDwsgAEF6akHjABAgDwsgAEF8akG4CEEEEB8PCyAAQX5qLwEAQe8ARw0FIABBfGovAQBB5QBHDQUCQCAAQXpqLwEAIgJB8ABGDQAgAkHjAEcNBiAAQXhqQcAIQQYQHw8LIABBeGpBzAhBAhAfDwtBASEBIABBfmoiAEHpABAgDQQgAEHQCEEFEB8PCyAAQX5qQeQAECAPCyAAQX5qQdoIQQcQHw8LIABBfmpB6AhBBBAfDwsCQCAAQX5qLwEAIgJB7wBGDQAgAkHlAEcNASAAQXxqQe4AECAPCyAAQXxqQfAIQQMQHyEBCyABC3ABAn8CQAJAA0BBAEEAKAKICiIAQQJqIgE2AogKIABBACgCjApPDQECQAJAAkAgAS8BACIBQaV/ag4CAQIACwJAIAFBdmoOBAQDAwQACyABQS9HDQIMBAsQJxoMAQtBACAAQQRqNgKICgwACwsQHQsLNQEBf0EAQQE6ANAJQQAoAogKIQBBAEEAKAKMCkECajYCiApBACAAQQAoArAJa0EBdTYC4AkLNAEBf0EBIQECQCAAQXdqQf//A3FBBUkNACAAQYABckGgAUYNACAAQS5HIAAQJXEhAQsgAQtJAQN/QQAhAwJAIAAgAkEBdCICayIEQQJqIgBBACgCsAkiBUkNACAAIAEgAhAoDQACQCAAIAVHDQBBAQ8LIAQvAQAQHiEDCyADCz0BAn9BACECAkBBACgCsAkiAyAASw0AIAAvAQAgAUcNAAJAIAMgAEcNAEEBDwsgAEF+ai8BABAeIQILIAILnAEBA39BACgCiAohAQJAA0ACQAJAIAEvAQAiAkEvRw0AAkAgAS8BAiIBQSpGDQAgAUEvRw0EEBQMAgsgABAVDAELAkACQCAARQ0AIAJBd2oiAUEXSw0BQQEgAXRBn4CABHFFDQEMAgsgAhAjRQ0DDAELIAJBoAFHDQILQQBBACgCiAoiA0ECaiIBNgKICiADQQAoAowKSQ0ACwsgAgvCAwEBfwJAIAFBIkYNACABQSdGDQAQHQ8LQQAoAogKIQIgARAXIAAgAkECakEAKAKICkEAKAKkCRABQQBBACgCiApBAmo2AogKQQAQISEAQQAoAogKIQECQAJAIABB4QBHDQAgAUECakGkCEEKEChFDQELQQAgAUF+ajYCiAoPC0EAIAFBDGo2AogKAkBBARAhQfsARg0AQQAgATYCiAoPC0EAKAKICiICIQADQEEAIABBAmo2AogKAkACQAJAQQEQISIAQSJGDQAgAEEnRw0BQScQF0EAQQAoAogKQQJqNgKICkEBECEhAAwCC0EiEBdBAEEAKAKICkECajYCiApBARAhIQAMAQsgABAkIQALAkAgAEE6Rg0AQQAgATYCiAoPC0EAQQAoAogKQQJqNgKICgJAQQEQISIAQSJGDQAgAEEnRg0AQQAgATYCiAoPCyAAEBdBAEEAKAKICkECajYCiAoCQAJAQQEQISIAQSxGDQAgAEH9AEYNAUEAIAE2AogKDwtBAEEAKAKICkECajYCiApBARAhQf0ARg0AQQAoAogKIQAMAQsLQQAoAsQJIgEgAjYCECABQQAoAogKQQJqNgIMCzABAX8CQAJAIABBd2oiAUEXSw0AQQEgAXRBjYCABHENAQsgAEGgAUYNAEEADwtBAQttAQJ/AkACQANAAkAgAEH//wNxIgFBd2oiAkEXSw0AQQEgAnRBn4CABHENAgsgAUGgAUYNASAAIQIgARAlDQJBACECQQBBACgCiAoiAEECajYCiAogAC8BAiIADQAMAgsLIAAhAgsgAkH//wNxC2gBAn9BASEBAkACQCAAQV9qIgJBBUsNAEEBIAJ0QTFxDQELIABB+P8DcUEoRg0AIABBRmpB//8DcUEGSQ0AAkAgAEGlf2oiAkEDSw0AIAJBAUcNAQsgAEGFf2pB//8DcUEESSEBCyABC4sBAQJ/AkBBACgCiAoiAi8BACIDQeEARw0AQQAgAkEEajYCiApBARAhIQJBACgCiAohAAJAAkAgAkEiRg0AIAJBJ0YNACACECQaQQAoAogKIQEMAQsgAhAXQQBBACgCiApBAmoiATYCiAoLQQEQISEDQQAoAogKIQILAkAgAiAARg0AIAAgARACCyADC3IBBH9BACgCiAohAEEAKAKMCiEBAkACQANAIABBAmohAiAAIAFPDQECQAJAIAIvAQAiA0Gkf2oOAgEEAAsgAiEAIANBdmoOBAIBAQIBCyAAQQRqIQAMAAsLQQAgAjYCiAoQHUEADwtBACACNgKICkHdAAtJAQN/QQAhAwJAIAJFDQACQANAIAAtAAAiBCABLQAAIgVHDQEgAUEBaiEBIABBAWohACACQX9qIgINAAwCCwsgBCAFayEDCyADCwvCAQIAQYAIC6QBAAB4AHAAbwByAHQAbQBwAG8AcgB0AGUAdABhAGYAcgBvAG0AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGkAbgBzAHQAYQBuAHQAeQByAGUAdAB1AHIAZABlAGIAdQBnAGcAZQBhAHcAYQBpAHQAaAByAHcAaABpAGwAZQBmAG8AcgBpAGYAYwBhAHQAYwBmAGkAbgBhAGwAbABlAGwAcwAAQaQJCxABAAAAAgAAAAAEAAAQOQAA",typeof Buffer<"u"?Buffer.from(mo,"base64"):Uint8Array.from(atob(mo),e=>e.charCodeAt(0)))).then(WebAssembly.instantiate).then(({exports:e})=>{G=e}),mo;await Co;var wE=[".js",".mjs",".jsx",".json",".ts",".mts",".tsx"],RE=async(e,t)=>{let r=vE(SE(t)),n=Bn(BE(r,e)),i=n.replace(Sn.extname(n),"");for(let s of wE){let o=`${i}${s}`,a=`${i}/index${s}`;if(Nc(o))return o;if(Nc(a))return a}},Bn=e=>e.replace(/\\/g,"/"),QE=(e,t)=>{e=Bn(e),t=Bn(t);let r=Sn.relative(Sn.dirname(e),t);return r.startsWith(".")?r:`./${r}`},IE=e=>e?e.startsWith(".")||e.includes("/")||Sn.extname(e):!1,bo=async e=>{let t=me(bo);t.log("Getting rewritten specifiers:",{modulePath:e}),e=Bn(e);let r=await xE(e,"utf8"),[n]=await yo(r),i=n.filter(o=>typeof o.n<"u");t.log("Found import statements:",{namedImportExportSpecifiers:i});let s=r.slice(0);for(let o of i){let a=o.n;t.log("Found specifier:",{specifier:a});let u=r.substring(o.ss,o.se);if(!a){t.log(`Could not find specifier in import statement: "${u}"`);continue}if(!IE(a)){t.log("Not resolving relative or non-named specifier:",{specifier:a});continue}let f=await RE(a,e);if(!f){t.log(`Could not resolve specifier "${a}" from "${e}". Assuming external.`);continue}t.log("Resolved specifier:",{resolvedSpecifier:f});let l=QE(e,f);t.log("Specifier replacement:",{specifierReplacement:l});let h=u.replace(a,l);t.log("Replacing import statement:",{specifier:a,importStatement:u,importStatementReplacement:h}),s=s.replace(u,h)}return s};var vo=async(e="dist/**/*.js")=>{let t=me(vo),n=DE(e)&&TE(e)?[e]:Mc.default.sync(e);t.log("Normalizing import/require specifiers:",{files:e,filesToNormalize:n});for(let i of n){let s=kE(i),o=await bo(s);t.log("Normalizing",{file:i,normalized:o}),await OE(s,o,{flag:"w",encoding:"utf-8"})}t.log("Normalized",{filesToNormalize:n})};import{readFileSync as LE}from"fs";function PE(e){return new Promise((t,r)=>{let n=[];function i(u){n.push(u)}function s(){a(),t(Buffer.concat(n))}function o(u){a(),r(u)}function a(){e.removeListener("data",i),e.removeListener("end",s),e.removeListener("error",o)}e.on("data",i),e.on("end",s),e.on("error",o)})}var So=async()=>{let e=me(So);e.log("Reading stdin");try{let r=LE(0).toString();if(r)return e.log("Found stdin",{stdin:r}),r}catch(r){e.log("Could not read stdin",{e:r})}return ye(k.gray("Type your source code. Press Ctrl+D to finish.")),(await PE(process.stdin)).toString()};var UE=`import React from "react";
|
25
|
-
import ReactDOM from "react-dom";
|
26
|
-
`,Hc=e=>{let t=` ${e} `;ye(k.bgBlue(k.bold(k.white(t))))},KE=async()=>{let e;if(wo("dist/package.json")?e=JSON.parse(await Gc("dist/package.json","utf-8")):e={},e?.module==="module")return!0;e.type="module",await qE("dist/package.json",JSON.stringify(e,null,2))},jc=(e,t,r)=>{t=cr(t);let n=_o(t);return{stdin:{contents:e,sourcefile:t,resolveDir:Uc(t),loader:r},outdir:void 0,outfile:n}},$c=async(e,t,r)=>{e=cr(e),t=cr(t);let o=["npx tailwindcss",r?"":"--minify","--postcss postcss.config.js",`-i ${e}`,`-o ${t}`];wo(cr(process.cwd(),"tailwind.config.js"))&&o.push("--config tailwind.config.js");let a=Et({log:!1,stdio:"ignore"}),u=o.join(" "),{code:f,stdout:l,stderr:h}=await a.run(u);if(f!==0)throw new Error(`Building CSS bundle exited with code ${f} for ${e}.
|
27
|
-
\rTried running: ${u}.
|
28
|
-
\rError: ${l+h}`)},JE=`
|
29
|
-
typeof document>"u"&&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)}})();
|
30
|
-
`,xn=async({input:e="src/**/*",styles:t="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=!1,jsOnly:o=!1,noWrite:a=!1,stdin:u=void 0,stdinFile:f=void 0})=>{qc.NODE_ENV=n?"development":"production";let l=me(xn);n&&(s=!0);let{cwd:h,srcDir:A,outDir:C}=go(),E=await Pc(),_=JSON.parse(E),v={treeShaking:i,target:r,minify:!n,jsx:"transform",jsxFactory:"React.createElement",format:"esm",charset:"utf8",logLevel:n?"warning":"error",define:{"process.env.NODE_ENV":n?JSON.stringify("development"):JSON.stringify("production")}},b=["esbuild","*.png"],O={...v,bundle:i,absWorkingDir:h,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:_?.platform??"node",write:!a,external:i?b:void 0,banner:i?{js:JE}:void 0},P="";if(u){l.log("Building file from stdin",{stdin:u,stdinFile:f,noWrite:a}),f||(ye(k.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof u=="string"&&u.length?P=u:P=await So();let c={...v,sourcefile:f,loader:"tsx",banner:void 0,footer:void 0};if(a)return(await GE(P,c)).code;{let D=jc(P,f,"tsx");await Bo({...O,...D}),ye(k.green("Successfully built stdin file to dist/.")),ye(k.grey("Use --no-write to print to stdout instead."));return}}l.log("Building",{files:e,dev:n,runtimeOnly:s}),Hc(`${k.bold("TS Module")} [${qc.NODE_ENV}]`);let U=xo.default.sync(e,{cwd:h}).filter(c=>HE(c)!==".d.ts").map(c=>cr(c));if(jE(e)){U.length||U.push(e);let c=e.replace(A,C).replace(Mt,".js").replace(ht,".js");l.log("Cleaning emitted file:",{outfile:c}),await Fc(c,{force:!0})}else l.log("Cleaning old output:",{outDir:C}),await Fc(C,{force:!0,recursive:!0});let x=U.filter(c=>ht.test(c));l.log("Compiling TSX files:",{tsxJsxInput:x});let H=x.filter(c=>!c.endsWith(".d.ts"));await Promise.all(H.map(async c=>{let D=await Gc(c,"utf-8"),F=UE+D,ue=jc(F,c,"tsx");await Bo({...O,...ue})})),Re("Built TSX files.").succeed();let R=U.filter(c=>Mt.test(c)).filter(c=>!ht.test(c));l.log("Compiling TS files:",{tsJsInput:R}),await Bo({...O,entryPoints:R.filter(c=>!c.endsWith(".d.ts"))}),Re("Built TS files.").succeed();let S=U.filter(c=>!Lc.test(c));l.log("Copying non-JS/TS files.",{allFiles:U,nonTsJsInput:S});for(let c of S){let D=_o(c);l.log("Copying non-source file:",{file:c,emittedFile:D}),await FE(Uc(D),{recursive:!0}),await ME(c,D,NE.COPYFILE_FICLONE)}if(!process.env.NO_REWRITES){let c=e.replace(A,C).replace(/^(\.\/)?src\//,"dist/").replace(Mt,".js").replace(ht,".js");l.log("Normalizing import specifiers in emitted JS.",{emittedJs:c}),await vo(c.endsWith(".js")?c:`${c}.js`),Re("Normalized import specifiers.").succeed()}if(await KE()&&Re('Forced "type": "module" in output.').succeed(),s)return;if(!o)if(wo($E(t))){l.log("Building styles for production.");let{style:c="./dist/bundle.css"}=_;if(l.log("Building style bundle.",{bundleInput:t,bundleOutput:c,dev:n}),await $c(t,c,n),i){l.log("Bundling all styles.");let D=xo.default.sync("dist/**/*.css"),F=Re("Bundling emitted styles.").start();await Promise.all(D.map(async ue=>await $c(ue,ue,n))),F.succeed(`Bundled all styles to ${k.bold(c)}.`)}}else ye(k.grey(`Bundle styles not found for this project.
|
31
|
-
\rChecked: `+k.bold(t)));Hc("Running post-build setup.");let z=Re("Generating type declarations.").start();await Eo(),z.succeed(`Generated delcarations for ${U.length} files.`),ye(k.green("Build complete."))};var Kc=()=>{console.clear()},Jc=e=>{ye(`
|
32
|
-
`,k.gray(`Built ${k.bold(e)}.`),`
|
33
|
-
`,k.blue(new Date().toLocaleString()))},tv=async()=>{let e=process.cwd(),t=Et();process.platform!=="win32"&&await t.run("clear"),Kc(),await xn({dev:!0}),Jc("src/**/*"),(0,Yc.default)(WE(e,"src"),{recursive:!0}).on("change",async(r,n)=>{if(!VE(n)||(await XE(n)).isDirectory())return;Kc();let a=Date.now();await xn({dev:!0,runtimeOnly:!0,input:n});let u=Date.now()-a;Re(k.blueBright(`Dev refresh finished in ${k.bold(`${u}ms`)}.`)).succeed(),Jc(YE(e,n))})};export{tv as dev};
|
34
|
-
/*!
|
35
|
-
* fill-range <https://github.com/jonschlinkert/fill-range>
|
36
|
-
*
|
37
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
38
|
-
* Licensed under the MIT License.
|
39
|
-
*/
|
40
|
-
/*!
|
41
|
-
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
42
|
-
*
|
43
|
-
* Copyright (c) 2014-2016, Jon Schlinkert.
|
44
|
-
* Licensed under the MIT License.
|
45
|
-
*/
|
46
|
-
/*!
|
47
|
-
* is-glob <https://github.com/jonschlinkert/is-glob>
|
48
|
-
*
|
49
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
50
|
-
* Released under the MIT License.
|
51
|
-
*/
|
52
|
-
/*!
|
53
|
-
* is-number <https://github.com/jonschlinkert/is-number>
|
54
|
-
*
|
55
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
56
|
-
* Released under the MIT License.
|
57
|
-
*/
|
58
|
-
/*!
|
59
|
-
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
60
|
-
*
|
61
|
-
* Copyright (c) 2015-present, Jon Schlinkert.
|
62
|
-
* Released under the MIT License.
|
63
|
-
*/
|
64
|
-
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
65
|
-
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
66
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
1
|
+
import{relative as m,resolve as l}from"path";import{existsSync as p}from"fs";import{lstat as u}from"fs/promises";import t from"chalk";import{createShell as f}from"await-shell";import{log as w}from"debug-logging";import d from"ora";import v from"node-watch";import{build as s}from"../build/index.js";const o=()=>{console.clear()},i=r=>{w(`
|
2
|
+
`,t.gray(`Built ${t.bold(r)}.`),`
|
3
|
+
`,t.blue(new Date().toLocaleString()))},V=async()=>{const r=process.cwd(),n=f();process.platform!=="win32"&&await n.run("clear"),o(),await s({dev:!0}),i("src/**/*"),v(l(r,"src"),{recursive:!0}).on("change",async(D,e)=>{if(!p(e)||(await u(e)).isDirectory())return;o();const c=Date.now();await s({dev:!0,runtimeOnly:!0,input:e});const a=Date.now()-c;d(t.blueBright(`Dev refresh finished in ${t.bold(`${a}ms`)}.`)).succeed(),i(m(r,e))})};export{V as dev};
|