create-cedar-app 1.0.0-canary.12988 → 1.0.0-canary.12991

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.
@@ -25,13 +25,13 @@ ${t.message}
25
25
  `,e(new Error(o))}),process.env.PATH=Hv}function IW(r){return dE?r.message.includes("is not recognized"):r.code===127}});var Qv=C((sye,Jv)=>{Jv.exports=Kv;Kv.sync=wW;var zv=W("fs");function PW(r,e){var t=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var n=0;n<t.length;n++){var s=t[n].toLowerCase();if(s&&r.substr(-s.length).toLowerCase()===s)return!0}return!1}function Xv(r,e,t){return!r.isSymbolicLink()&&!r.isFile()?!1:PW(e,t)}function Kv(r,e,t){zv.stat(r,function(n,s){t(n,n?!1:Xv(s,r,e))})}function wW(r,e){return Xv(zv.statSync(r),r,e)}});var nD=C((oye,rD)=>{rD.exports=eD;eD.sync=RW;var Zv=W("fs");function eD(r,e,t){Zv.stat(r,function(n,s){t(n,n?!1:tD(s,e))})}function RW(r,e){return tD(Zv.statSync(r),e)}function tD(r,e){return r.isFile()&&LW(r,e)}function LW(r,e){var t=r.mode,n=r.uid,s=r.gid,i=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=parseInt("001",8),l=a|c,f=t&u||t&c&&s===o||t&a&&n===i||t&l&&i===0;return f}});var sD=C((cye,iD)=>{var aye=W("fs"),Sp;process.platform==="win32"||global.TESTING_WINDOWS?Sp=Qv():Sp=nD();iD.exports=hE;hE.sync=MW;function hE(r,e,t){if(typeof e=="function"&&(t=e,e={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,s){hE(r,e||{},function(i,o){i?s(i):n(o)})})}Sp(r,e||{},function(n,s){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,s=!1),t(n,s)})}function MW(r,e){try{return Sp.sync(r,e||{})}catch(t){if(e&&e.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var pD=C((uye,fD)=>{var xa=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",oD=W("path"),NW=xa?";":":",aD=sD(),cD=r=>Object.assign(new Error(`not found: ${r}`),{code:"ENOENT"}),uD=(r,e)=>{let t=e.colon||NW,n=r.match(/\//)||xa&&r.match(/\\/)?[""]:[...xa?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(t)],s=xa?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=xa?s.split(t):[""];return xa&&r.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:s}},lD=(r,e,t)=>{typeof e=="function"&&(t=e,e={}),e||(e={});let{pathEnv:n,pathExt:s,pathExtExe:i}=uD(r,e),o=[],a=u=>new Promise((l,f)=>{if(u===n.length)return e.all&&o.length?l(o):f(cD(r));let p=n[u],d=/^".*"$/.test(p)?p.slice(1,-1):p,m=oD.join(d,r),g=!d&&/^\.[\\\/]/.test(r)?r.slice(0,2)+m:m;l(c(g,u,0))}),c=(u,l,f)=>new Promise((p,d)=>{if(f===s.length)return p(a(l+1));let m=s[f];aD(u+m,{pathExt:i},(g,h)=>{if(!g&&h)if(e.all)o.push(u+m);else return p(u+m);return p(c(u,l,f+1))})});return t?a(0).then(u=>t(null,u),t):a(0)},BW=(r,e)=>{e=e||{};let{pathEnv:t,pathExt:n,pathExtExe:s}=uD(r,e),i=[];for(let o=0;o<t.length;o++){let a=t[o],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=oD.join(c,r),l=!c&&/^\.[\\\/]/.test(r)?r.slice(0,2)+u:u;for(let f=0;f<n.length;f++){let p=l+n[f];try{if(aD.sync(p,{pathExt:s}))if(e.all)i.push(p);else return p}catch{}}}if(e.all&&i.length)return i;if(e.nothrow)return null;throw cD(r)};fD.exports=lD;lD.sync=BW});var gE=C((lye,mE)=>{"use strict";var dD=(r={})=>{let e=r.env||process.env;return(r.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};mE.exports=dD;mE.exports.default=dD});var ED=C((fye,gD)=>{"use strict";var hD=W("path"),UW=pD(),FW=gE();function mD(r,e){let t=r.options.env||process.env,n=process.cwd(),s=r.options.cwd!=null,i=s&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(r.options.cwd)}catch{}let o;try{o=UW.sync(r.command,{path:t[FW({env:t})],pathExt:e?hD.delimiter:void 0})}catch{}finally{i&&process.chdir(n)}return o&&(o=hD.resolve(s?r.options.cwd:"",o)),o}function VW(r){return mD(r)||mD(r,!0)}gD.exports=VW});var SD=C((pye,SE)=>{"use strict";var EE=/([()\][%!^"`<>&|;, *?])/g;function GW(r){return r=r.replace(EE,"^$1"),r}function kW(r,e){return r=`${r}`,r=r.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),r=r.replace(/(?=(\\+?)?)\1$/,"$1$1"),r=`"${r}"`,r=r.replace(EE,"^$1"),e&&(r=r.replace(EE,"^$1")),r}SE.exports.command=GW;SE.exports.argument=kW});var TD=C((dye,_D)=>{"use strict";_D.exports=/^#!(.*)/});var AD=C((hye,yD)=>{"use strict";var jW=TD();yD.exports=(r="")=>{let e=r.match(jW);if(!e)return null;let[t,n]=e[0].replace(/#! ?/,"").split(" "),s=t.split("/").pop();return s==="env"?n:n?`${s} ${n}`:s}});var CD=C((mye,OD)=>{"use strict";var _E=W("fs"),qW=AD();function $W(r){let t=Buffer.alloc(150),n;try{n=_E.openSync(r,"r"),_E.readSync(n,t,0,150,0),_E.closeSync(n)}catch{}return qW(t.toString())}OD.exports=$W});var bD=C((gye,xD)=>{"use strict";var HW=W("path"),vD=ED(),DD=SD(),WW=CD(),YW=process.platform==="win32",zW=/\.(?:com|exe)$/i,XW=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function KW(r){r.file=vD(r);let e=r.file&&WW(r.file);return e?(r.args.unshift(r.file),r.command=e,vD(r)):r.file}function JW(r){if(!YW)return r;let e=KW(r),t=!zW.test(e);if(r.options.forceShell||t){let n=XW.test(e);r.command=HW.normalize(r.command),r.command=DD.command(r.command),r.args=r.args.map(i=>DD.argument(i,n));let s=[r.command].concat(r.args).join(" ");r.args=["/d","/s","/c",`"${s}"`],r.command=process.env.comspec||"cmd.exe",r.options.windowsVerbatimArguments=!0}return r}function QW(r,e,t){e&&!Array.isArray(e)&&(t=e,e=null),e=e?e.slice(0):[],t=Object.assign({},t);let n={command:r,args:e,options:t,file:void 0,original:{command:r,args:e}};return t.shell?n:JW(n)}xD.exports=QW});var wD=C((Eye,PD)=>{"use strict";var TE=process.platform==="win32";function yE(r,e){return Object.assign(new Error(`${e} ${r.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${r.command}`,path:r.command,spawnargs:r.args})}function ZW(r,e){if(!TE)return;let t=r.emit;r.emit=function(n,s){if(n==="exit"){let i=ID(s,e);if(i)return t.call(r,"error",i)}return t.apply(r,arguments)}}function ID(r,e){return TE&&r===1&&!e.file?yE(e.original,"spawn"):null}function eY(r,e){return TE&&r===1&&!e.file?yE(e.original,"spawnSync"):null}PD.exports={hookChildProcess:ZW,verifyENOENT:ID,verifyENOENTSync:eY,notFoundError:yE}});var MD=C((Sye,ba)=>{"use strict";var RD=W("child_process"),AE=bD(),OE=wD();function LD(r,e,t){let n=AE(r,e,t),s=RD.spawn(n.command,n.args,n.options);return OE.hookChildProcess(s,n),s}function tY(r,e,t){let n=AE(r,e,t),s=RD.spawnSync(n.command,n.args,n.options);return s.error=s.error||OE.verifyENOENTSync(s.status,n),s}ba.exports=LD;ba.exports.spawn=LD;ba.exports.sync=tY;ba.exports._parse=AE;ba.exports._enoent=OE});var BD=C((_ye,ND)=>{"use strict";ND.exports=r=>{let e=typeof r=="string"?`
26
26
  `:10,t=typeof r=="string"?"\r":13;return r[r.length-1]===e&&(r=r.slice(0,r.length-1)),r[r.length-1]===t&&(r=r.slice(0,r.length-1)),r}});var VD=C((Tye,$u)=>{"use strict";var qu=W("path"),UD=gE(),FD=r=>{r={cwd:process.cwd(),path:process.env[UD()],execPath:process.execPath,...r};let e,t=qu.resolve(r.cwd),n=[];for(;e!==t;)n.push(qu.join(t,"node_modules/.bin")),e=t,t=qu.resolve(t,"..");let s=qu.resolve(r.cwd,r.execPath,"..");return n.push(s),n.concat(r.path).join(qu.delimiter)};$u.exports=FD;$u.exports.default=FD;$u.exports.env=r=>{r={env:process.env,...r};let e={...r.env},t=UD({env:e});return r.path=e[t],e[t]=$u.exports(r),e}});var kD=C((yye,CE)=>{"use strict";var GD=(r,e)=>{for(let t of Reflect.ownKeys(e))Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t));return r};CE.exports=GD;CE.exports.default=GD});var qD=C((Aye,Tp)=>{"use strict";var rY=kD(),_p=new WeakMap,jD=(r,e={})=>{if(typeof r!="function")throw new TypeError("Expected a function");let t,n=0,s=r.displayName||r.name||"<anonymous>",i=function(...o){if(_p.set(i,++n),n===1)t=r.apply(this,o),r=null;else if(e.throw===!0)throw new Error(`Function \`${s}\` can only be called once`);return t};return rY(i,r),_p.set(i,n),i};Tp.exports=jD;Tp.exports.default=jD;Tp.exports.callCount=r=>{if(!_p.has(r))throw new Error(`The given function \`${r.name}\` is not wrapped by the \`onetime\` package`);return _p.get(r)}});var $D=C(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.SIGNALS=void 0;var nY=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];yp.SIGNALS=nY});var vE=C(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.SIGRTMAX=Ia.getRealtimeSignals=void 0;var iY=function(){let r=WD-HD+1;return Array.from({length:r},sY)};Ia.getRealtimeSignals=iY;var sY=function(r,e){return{name:`SIGRT${e+1}`,number:HD+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},HD=34,WD=64;Ia.SIGRTMAX=WD});var YD=C(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.getSignals=void 0;var oY=W("os"),aY=$D(),cY=vE(),uY=function(){let r=(0,cY.getRealtimeSignals)();return[...aY.SIGNALS,...r].map(lY)};Ap.getSignals=uY;var lY=function({name:r,number:e,description:t,action:n,forced:s=!1,standard:i}){let{signals:{[r]:o}}=oY.constants,a=o!==void 0;return{name:r,number:a?o:e,description:t,supported:a,action:n,forced:s,standard:i}}});var XD=C(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.signalsByNumber=Pa.signalsByName=void 0;var fY=W("os"),zD=YD(),pY=vE(),dY=function(){return(0,zD.getSignals)().reduce(hY,{})},hY=function(r,{name:e,number:t,description:n,supported:s,action:i,forced:o,standard:a}){return{...r,[e]:{name:e,number:t,description:n,supported:s,action:i,forced:o,standard:a}}},mY=dY();Pa.signalsByName=mY;var gY=function(){let r=(0,zD.getSignals)(),e=pY.SIGRTMAX+1,t=Array.from({length:e},(n,s)=>EY(s,r));return Object.assign({},...t)},EY=function(r,e){let t=SY(r,e);if(t===void 0)return{};let{name:n,description:s,supported:i,action:o,forced:a,standard:c}=t;return{[r]:{name:n,number:r,description:s,supported:i,action:o,forced:a,standard:c}}},SY=function(r,e){let t=e.find(({name:n})=>fY.constants.signals[n]===r);return t!==void 0?t:e.find(n=>n.number===r)},_Y=gY();Pa.signalsByNumber=_Y});var JD=C((xye,KD)=>{"use strict";var{signalsByName:TY}=XD(),yY=({timedOut:r,timeout:e,errorCode:t,signal:n,signalDescription:s,exitCode:i,isCanceled:o})=>r?`timed out after ${e} milliseconds`:o?"was canceled":t!==void 0?`failed with ${t}`:n!==void 0?`was killed with ${n} (${s})`:i!==void 0?`failed with exit code ${i}`:"failed",AY=({stdout:r,stderr:e,all:t,error:n,signal:s,exitCode:i,command:o,escapedCommand:a,timedOut:c,isCanceled:u,killed:l,parsed:{options:{timeout:f}}})=>{i=i===null?void 0:i,s=s===null?void 0:s;let p=s===void 0?void 0:TY[s].description,d=n&&n.code,g=`Command ${yY({timedOut:c,timeout:f,errorCode:d,signal:s,signalDescription:p,exitCode:i,isCanceled:u})}: ${o}`,h=Object.prototype.toString.call(n)==="[object Error]",E=h?`${g}
27
27
  ${n.message}`:g,_=[E,e,r].filter(Boolean).join(`
28
- `);return h?(n.originalMessage=n.message,n.message=_):n=new Error(_),n.shortMessage=E,n.command=o,n.escapedCommand=a,n.exitCode=i,n.signal=s,n.signalDescription=p,n.stdout=r,n.stderr=e,t!==void 0&&(n.all=t),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=u,n.killed=l&&!c,n};KD.exports=AY});var ZD=C((bye,DE)=>{"use strict";var Op=["stdin","stdout","stderr"],OY=r=>Op.some(e=>r[e]!==void 0),QD=r=>{if(!r)return;let{stdio:e}=r;if(e===void 0)return Op.map(n=>r[n]);if(OY(r))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Op.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let t=Math.max(e.length,Op.length);return Array.from({length:t},(n,s)=>e[s])};DE.exports=QD;DE.exports.node=r=>{let e=QD(r);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var ex=C((Iye,Cp)=>{Cp.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Cp.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Cp.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var sx=C((Pye,La)=>{var bt=global.process,ho=function(r){return r&&typeof r=="object"&&typeof r.removeListener=="function"&&typeof r.emit=="function"&&typeof r.reallyExit=="function"&&typeof r.listeners=="function"&&typeof r.kill=="function"&&typeof r.pid=="number"&&typeof r.on=="function"};ho(bt)?(tx=W("assert"),wa=ex(),rx=/^win/i.test(bt.platform),Hu=W("events"),typeof Hu!="function"&&(Hu=Hu.EventEmitter),bt.__signal_exit_emitter__?er=bt.__signal_exit_emitter__:(er=bt.__signal_exit_emitter__=new Hu,er.count=0,er.emitted={}),er.infinite||(er.setMaxListeners(1/0),er.infinite=!0),La.exports=function(r,e){if(!ho(global.process))return function(){};tx.equal(typeof r,"function","a callback must be provided for exit handler"),Ra===!1&&xE();var t="exit";e&&e.alwaysLast&&(t="afterexit");var n=function(){er.removeListener(t,r),er.listeners("exit").length===0&&er.listeners("afterexit").length===0&&vp()};return er.on(t,r),n},vp=function(){!Ra||!ho(global.process)||(Ra=!1,wa.forEach(function(e){try{bt.removeListener(e,Dp[e])}catch{}}),bt.emit=xp,bt.reallyExit=bE,er.count-=1)},La.exports.unload=vp,mo=function(e,t,n){er.emitted[e]||(er.emitted[e]=!0,er.emit(e,t,n))},Dp={},wa.forEach(function(r){Dp[r]=function(){if(ho(global.process)){var t=bt.listeners(r);t.length===er.count&&(vp(),mo("exit",null,r),mo("afterexit",null,r),rx&&r==="SIGHUP"&&(r="SIGINT"),bt.kill(bt.pid,r))}}}),La.exports.signals=function(){return wa},Ra=!1,xE=function(){Ra||!ho(global.process)||(Ra=!0,er.count+=1,wa=wa.filter(function(e){try{return bt.on(e,Dp[e]),!0}catch{return!1}}),bt.emit=ix,bt.reallyExit=nx)},La.exports.load=xE,bE=bt.reallyExit,nx=function(e){ho(global.process)&&(bt.exitCode=e||0,mo("exit",bt.exitCode,null),mo("afterexit",bt.exitCode,null),bE.call(bt,bt.exitCode))},xp=bt.emit,ix=function(e,t){if(e==="exit"&&ho(global.process)){t!==void 0&&(bt.exitCode=t);var n=xp.apply(this,arguments);return mo("exit",bt.exitCode,null),mo("afterexit",bt.exitCode,null),n}else return xp.apply(this,arguments)}):La.exports=function(){return function(){}};var tx,wa,rx,Hu,er,vp,mo,Dp,Ra,xE,bE,nx,xp,ix});var ax=C((wye,ox)=>{"use strict";var CY=W("os"),vY=sx(),DY=1e3*5,xY=(r,e="SIGTERM",t={})=>{let n=r(e);return bY(r,e,t,n),n},bY=(r,e,t,n)=>{if(!IY(e,t,n))return;let s=wY(t),i=setTimeout(()=>{r("SIGKILL")},s);i.unref&&i.unref()},IY=(r,{forceKillAfterTimeout:e},t)=>PY(r)&&e!==!1&&t,PY=r=>r===CY.constants.signals.SIGTERM||typeof r=="string"&&r.toUpperCase()==="SIGTERM",wY=({forceKillAfterTimeout:r=!0})=>{if(r===!0)return DY;if(!Number.isFinite(r)||r<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${r}\` (${typeof r})`);return r},RY=(r,e)=>{r.kill()&&(e.isCanceled=!0)},LY=(r,e,t)=>{r.kill(e),t(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},MY=(r,{timeout:e,killSignal:t="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let s,i=new Promise((a,c)=>{s=setTimeout(()=>{LY(r,t,c)},e)}),o=n.finally(()=>{clearTimeout(s)});return Promise.race([i,o])},NY=({timeout:r})=>{if(r!==void 0&&(!Number.isFinite(r)||r<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${r}\` (${typeof r})`)},BY=async(r,{cleanup:e,detached:t},n)=>{if(!e||t)return n;let s=vY(()=>{r.kill()});return n.finally(()=>{s()})};ox.exports={spawnedKill:xY,spawnedCancel:RY,setupTimeout:MY,validateTimeout:NY,setExitHandler:BY}});var ux=C((Rye,cx)=>{"use strict";var mi=r=>r!==null&&typeof r=="object"&&typeof r.pipe=="function";mi.writable=r=>mi(r)&&r.writable!==!1&&typeof r._write=="function"&&typeof r._writableState=="object";mi.readable=r=>mi(r)&&r.readable!==!1&&typeof r._read=="function"&&typeof r._readableState=="object";mi.duplex=r=>mi.writable(r)&&mi.readable(r);mi.transform=r=>mi.duplex(r)&&typeof r._transform=="function";cx.exports=mi});var fx=C((Lye,lx)=>{"use strict";var{PassThrough:UY}=W("stream");lx.exports=r=>{r={...r};let{array:e}=r,{encoding:t}=r,n=t==="buffer",s=!1;e?s=!(t||n):t=t||"utf8",n&&(t=null);let i=new UY({objectMode:s});t&&i.setEncoding(t);let o=0,a=[];return i.on("data",c=>{a.push(c),s?o=a.length:o+=c.length}),i.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),i.getBufferedLength=()=>o,i}});var px=C((Mye,Wu)=>{"use strict";var{constants:FY}=W("buffer"),VY=W("stream"),{promisify:GY}=W("util"),kY=fx(),jY=GY(VY.pipeline),bp=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function IE(r,e){if(!r)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:t}=e,n=kY(e);return await new Promise((s,i)=>{let o=a=>{a&&n.getBufferedLength()<=FY.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),i(a)};(async()=>{try{await jY(r,n),s()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>t&&o(new bp)})}),n.getBufferedValue()}Wu.exports=IE;Wu.exports.buffer=(r,e)=>IE(r,{...e,encoding:"buffer"});Wu.exports.array=(r,e)=>IE(r,{...e,array:!0});Wu.exports.MaxBufferError=bp});var hx=C((Nye,dx)=>{"use strict";var{PassThrough:qY}=W("stream");dx.exports=function(){var r=[],e=new qY({objectMode:!0});return e.setMaxListeners(0),e.add=t,e.isEmpty=n,e.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(t),e;function t(i){return Array.isArray(i)?(i.forEach(t),this):(r.push(i),i.once("end",s.bind(null,i)),i.once("error",e.emit.bind(e,"error")),i.pipe(e,{end:!1}),this)}function n(){return r.length==0}function s(i){r=r.filter(function(o){return o!==i}),!r.length&&e.readable&&e.end()}}});var Sx=C((Bye,Ex)=>{"use strict";var gx=ux(),mx=px(),$Y=hx(),HY=(r,e)=>{e===void 0||r.stdin===void 0||(gx(e)?e.pipe(r.stdin):r.stdin.end(e))},WY=(r,{all:e})=>{if(!e||!r.stdout&&!r.stderr)return;let t=$Y();return r.stdout&&t.add(r.stdout),r.stderr&&t.add(r.stderr),t},PE=async(r,e)=>{if(r){r.destroy();try{return await e}catch(t){return t.bufferedData}}},wE=(r,{encoding:e,buffer:t,maxBuffer:n})=>{if(!(!r||!t))return e?mx(r,{encoding:e,maxBuffer:n}):mx.buffer(r,{maxBuffer:n})},YY=async({stdout:r,stderr:e,all:t},{encoding:n,buffer:s,maxBuffer:i},o)=>{let a=wE(r,{encoding:n,buffer:s,maxBuffer:i}),c=wE(e,{encoding:n,buffer:s,maxBuffer:i}),u=wE(t,{encoding:n,buffer:s,maxBuffer:i*2});try{return await Promise.all([o,a,c,u])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},PE(r,a),PE(e,c),PE(t,u)])}},zY=({input:r})=>{if(gx(r))throw new TypeError("The `input` option cannot be a stream in sync mode")};Ex.exports={handleInput:HY,makeAllStream:WY,getSpawnedResult:YY,validateInputSync:zY}});var Tx=C((Uye,_x)=>{"use strict";var XY=(async()=>{})().constructor.prototype,KY=["then","catch","finally"].map(r=>[r,Reflect.getOwnPropertyDescriptor(XY,r)]),JY=(r,e)=>{for(let[t,n]of KY){let s=typeof e=="function"?(...i)=>Reflect.apply(n.value,e(),i):n.value.bind(e);Reflect.defineProperty(r,t,{...n,value:s})}return r},QY=r=>new Promise((e,t)=>{r.on("exit",(n,s)=>{e({exitCode:n,signal:s})}),r.on("error",n=>{t(n)}),r.stdin&&r.stdin.on("error",n=>{t(n)})});_x.exports={mergePromise:JY,getSpawnedPromise:QY}});var Ox=C((Fye,Ax)=>{"use strict";var yx=(r,e=[])=>Array.isArray(e)?[r,...e]:[r],ZY=/^[\w.-]+$/,ez=/"/g,tz=r=>typeof r!="string"||ZY.test(r)?r:`"${r.replace(ez,'\\"')}"`,rz=(r,e)=>yx(r,e).join(" "),nz=(r,e)=>yx(r,e).map(t=>tz(t)).join(" "),iz=/ +/g,sz=r=>{let e=[];for(let t of r.trim().split(iz)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${t}`:e.push(t)}return e};Ax.exports={joinCommand:rz,getEscapedCommand:nz,parseCommand:sz}});var Px=C((Vye,Ma)=>{"use strict";var oz=W("path"),RE=W("child_process"),az=MD(),cz=BD(),uz=VD(),lz=qD(),Ip=JD(),vx=ZD(),{spawnedKill:fz,spawnedCancel:pz,setupTimeout:dz,validateTimeout:hz,setExitHandler:mz}=ax(),{handleInput:gz,getSpawnedResult:Ez,makeAllStream:Sz,validateInputSync:_z}=Sx(),{mergePromise:Cx,getSpawnedPromise:Tz}=Tx(),{joinCommand:Dx,parseCommand:xx,getEscapedCommand:bx}=Ox(),yz=1e3*1e3*100,Az=({env:r,extendEnv:e,preferLocal:t,localDir:n,execPath:s})=>{let i=e?{...process.env,...r}:r;return t?uz.env({env:i,cwd:n,execPath:s}):i},Ix=(r,e,t={})=>{let n=az._parse(r,e,t);return r=n.command,e=n.args,t=n.options,t={maxBuffer:yz,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:t.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...t},t.env=Az(t),t.stdio=vx(t),process.platform==="win32"&&oz.basename(r,".exe")==="cmd"&&e.unshift("/q"),{file:r,args:e,options:t,parsed:n}},Yu=(r,e,t)=>typeof e!="string"&&!Buffer.isBuffer(e)?t===void 0?void 0:"":r.stripFinalNewline?cz(e):e,Pp=(r,e,t)=>{let n=Ix(r,e,t),s=Dx(r,e),i=bx(r,e);hz(n.options);let o;try{o=RE.spawn(n.file,n.args,n.options)}catch(d){let m=new RE.ChildProcess,g=Promise.reject(Ip({error:d,stdout:"",stderr:"",all:"",command:s,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Cx(m,g)}let a=Tz(o),c=dz(o,n.options,a),u=mz(o,n.options,c),l={isCanceled:!1};o.kill=fz.bind(null,o.kill.bind(o)),o.cancel=pz.bind(null,o,l);let p=lz(async()=>{let[{error:d,exitCode:m,signal:g,timedOut:h},E,_,S]=await Ez(o,n.options,u),y=Yu(n.options,E),T=Yu(n.options,_),I=Yu(n.options,S);if(d||m!==0||g!==null){let v=Ip({error:d,exitCode:m,signal:g,stdout:y,stderr:T,all:I,command:s,escapedCommand:i,parsed:n,timedOut:h,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return v;throw v}return{command:s,escapedCommand:i,exitCode:0,stdout:y,stderr:T,all:I,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return gz(o,n.options.input),o.all=Sz(o,n.options),Cx(o,p)};Ma.exports=Pp;Ma.exports.sync=(r,e,t)=>{let n=Ix(r,e,t),s=Dx(r,e),i=bx(r,e);_z(n.options);let o;try{o=RE.spawnSync(n.file,n.args,n.options)}catch(u){throw Ip({error:u,stdout:"",stderr:"",all:"",command:s,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=Yu(n.options,o.stdout,o.error),c=Yu(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let u=Ip({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:s,escapedCommand:i,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return u;throw u}return{command:s,escapedCommand:i,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Ma.exports.command=(r,e)=>{let[t,...n]=xx(r);return Pp(t,n,e)};Ma.exports.commandSync=(r,e)=>{let[t,...n]=xx(r);return Pp.sync(t,n,e)};Ma.exports.node=(r,e,t={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(t=e,e=[]);let n=vx.node(t),s=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:i=process.execPath,nodeOptions:o=s}=t;return Pp(i,[...o,r,...Array.isArray(e)?e:[]],{...t,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var tr=C(LE=>{"use strict";LE.fromCallback=function(r){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")r.apply(this,e);else return new Promise((t,n)=>{r.call(this,...e,(s,i)=>s!=null?n(s):t(i))})},"name",{value:r.name})};LE.fromPromise=function(r){return Object.defineProperty(function(...e){let t=e[e.length-1];if(typeof t!="function")return r.apply(this,e);r.apply(this,e.slice(0,-1)).then(n=>t(null,n),t)},"name",{value:r.name})}});var Rx=C((kye,wx)=>{var rs=W("constants"),Oz=process.cwd,wp=null,Cz=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return wp||(wp=Oz.call(process)),wp};try{process.cwd()}catch{}typeof process.chdir=="function"&&(ME=process.chdir,process.chdir=function(r){wp=null,ME.call(process,r)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,ME));var ME;wx.exports=vz;function vz(r){rs.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(r),r.lutimes||t(r),r.chown=i(r.chown),r.fchown=i(r.fchown),r.lchown=i(r.lchown),r.chmod=n(r.chmod),r.fchmod=n(r.fchmod),r.lchmod=n(r.lchmod),r.chownSync=o(r.chownSync),r.fchownSync=o(r.fchownSync),r.lchownSync=o(r.lchownSync),r.chmodSync=s(r.chmodSync),r.fchmodSync=s(r.fchmodSync),r.lchmodSync=s(r.lchmodSync),r.stat=a(r.stat),r.fstat=a(r.fstat),r.lstat=a(r.lstat),r.statSync=c(r.statSync),r.fstatSync=c(r.fstatSync),r.lstatSync=c(r.lstatSync),r.chmod&&!r.lchmod&&(r.lchmod=function(l,f,p){p&&process.nextTick(p)},r.lchmodSync=function(){}),r.chown&&!r.lchown&&(r.lchown=function(l,f,p,d){d&&process.nextTick(d)},r.lchownSync=function(){}),Cz==="win32"&&(r.rename=typeof r.rename!="function"?r.rename:(function(l){function f(p,d,m){var g=Date.now(),h=0;l(p,d,function E(_){if(_&&(_.code==="EACCES"||_.code==="EPERM"||_.code==="EBUSY")&&Date.now()-g<6e4){setTimeout(function(){r.stat(d,function(S,y){S&&S.code==="ENOENT"?l(p,d,E):m(_)})},h),h<100&&(h+=10);return}m&&m(_)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,l),f})(r.rename)),r.read=typeof r.read!="function"?r.read:(function(l){function f(p,d,m,g,h,E){var _;if(E&&typeof E=="function"){var S=0;_=function(y,T,I){if(y&&y.code==="EAGAIN"&&S<10)return S++,l.call(r,p,d,m,g,h,_);E.apply(this,arguments)}}return l.call(r,p,d,m,g,h,_)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,l),f})(r.read),r.readSync=typeof r.readSync!="function"?r.readSync:(function(l){return function(f,p,d,m,g){for(var h=0;;)try{return l.call(r,f,p,d,m,g)}catch(E){if(E.code==="EAGAIN"&&h<10){h++;continue}throw E}}})(r.readSync);function e(l){l.lchmod=function(f,p,d){l.open(f,rs.O_WRONLY|rs.O_SYMLINK,p,function(m,g){if(m){d&&d(m);return}l.fchmod(g,p,function(h){l.close(g,function(E){d&&d(h||E)})})})},l.lchmodSync=function(f,p){var d=l.openSync(f,rs.O_WRONLY|rs.O_SYMLINK,p),m=!0,g;try{g=l.fchmodSync(d,p),m=!1}finally{if(m)try{l.closeSync(d)}catch{}else l.closeSync(d)}return g}}function t(l){rs.hasOwnProperty("O_SYMLINK")&&l.futimes?(l.lutimes=function(f,p,d,m){l.open(f,rs.O_SYMLINK,function(g,h){if(g){m&&m(g);return}l.futimes(h,p,d,function(E){l.close(h,function(_){m&&m(E||_)})})})},l.lutimesSync=function(f,p,d){var m=l.openSync(f,rs.O_SYMLINK),g,h=!0;try{g=l.futimesSync(m,p,d),h=!1}finally{if(h)try{l.closeSync(m)}catch{}else l.closeSync(m)}return g}):l.futimes&&(l.lutimes=function(f,p,d,m){m&&process.nextTick(m)},l.lutimesSync=function(){})}function n(l){return l&&function(f,p,d){return l.call(r,f,p,function(m){u(m)&&(m=null),d&&d.apply(this,arguments)})}}function s(l){return l&&function(f,p){try{return l.call(r,f,p)}catch(d){if(!u(d))throw d}}}function i(l){return l&&function(f,p,d,m){return l.call(r,f,p,d,function(g){u(g)&&(g=null),m&&m.apply(this,arguments)})}}function o(l){return l&&function(f,p,d){try{return l.call(r,f,p,d)}catch(m){if(!u(m))throw m}}}function a(l){return l&&function(f,p,d){typeof p=="function"&&(d=p,p=null);function m(g,h){h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),d&&d.apply(this,arguments)}return p?l.call(r,f,p,m):l.call(r,f,m)}}function c(l){return l&&function(f,p){var d=p?l.call(r,f,p):l.call(r,f);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function u(l){if(!l||l.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(l.code==="EINVAL"||l.code==="EPERM"))}}});var Nx=C((jye,Mx)=>{var Lx=W("stream").Stream;Mx.exports=Dz;function Dz(r){return{ReadStream:e,WriteStream:t};function e(n,s){if(!(this instanceof e))return new e(n,s);Lx.call(this);var i=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var o=Object.keys(s),a=0,c=o.length;a<c;a++){var u=o[a];this[u]=s[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}r.open(this.path,this.flags,this.mode,function(l,f){if(l){i.emit("error",l),i.readable=!1;return}i.fd=f,i.emit("open",f),i._read()})}function t(n,s){if(!(this instanceof t))return new t(n,s);Lx.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var i=Object.keys(s),o=0,a=i.length;o<a;o++){var c=i[o];this[c]=s[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=r.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Ux=C((qye,Bx)=>{"use strict";Bx.exports=bz;var xz=Object.getPrototypeOf||function(r){return r.__proto__};function bz(r){if(r===null||typeof r!="object")return r;if(r instanceof Object)var e={__proto__:xz(r)};else var e=Object.create(null);return Object.getOwnPropertyNames(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}),e}});var Ba=C(($ye,UE)=>{var Lt=W("fs"),Iz=Rx(),Pz=Nx(),wz=Ux(),Rp=W("util"),fr,Mp;typeof Symbol=="function"&&typeof Symbol.for=="function"?(fr=Symbol.for("graceful-fs.queue"),Mp=Symbol.for("graceful-fs.previous")):(fr="___graceful-fs.queue",Mp="___graceful-fs.previous");function Rz(){}function Gx(r,e){Object.defineProperty(r,fr,{get:function(){return e}})}var go=Rz;Rp.debuglog?go=Rp.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(go=function(){var r=Rp.format.apply(Rp,arguments);r="GFS4: "+r.split(/\n/).join(`
29
- GFS4: `),console.error(r)});Lt[fr]||(Fx=global[fr]||[],Gx(Lt,Fx),Lt.close=(function(r){function e(t,n){return r.call(Lt,t,function(s){s||Vx(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Mp,{value:r}),e})(Lt.close),Lt.closeSync=(function(r){function e(t){r.apply(Lt,arguments),Vx()}return Object.defineProperty(e,Mp,{value:r}),e})(Lt.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){go(Lt[fr]),W("assert").equal(Lt[fr].length,0)}));var Fx;global[fr]||Gx(global,Lt[fr]);UE.exports=NE(wz(Lt));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Lt.__patched&&(UE.exports=NE(Lt),Lt.__patched=!0);function NE(r){Iz(r),r.gracefulify=NE,r.createReadStream=T,r.createWriteStream=I;var e=r.readFile;r.readFile=t;function t(A,D,P){return typeof D=="function"&&(P=D,D=null),F(A,D,P);function F(V,H,k,X){return e(V,H,function(ee){ee&&(ee.code==="EMFILE"||ee.code==="ENFILE")?Na([F,[V,H,k],ee,X||Date.now(),Date.now()]):typeof k=="function"&&k.apply(this,arguments)})}}var n=r.writeFile;r.writeFile=s;function s(A,D,P,F){return typeof P=="function"&&(F=P,P=null),V(A,D,P,F);function V(H,k,X,ee,ne){return n(H,k,X,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?Na([V,[H,k,X,ee],ie,ne||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var i=r.appendFile;i&&(r.appendFile=o);function o(A,D,P,F){return typeof P=="function"&&(F=P,P=null),V(A,D,P,F);function V(H,k,X,ee,ne){return i(H,k,X,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?Na([V,[H,k,X,ee],ie,ne||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var a=r.copyFile;a&&(r.copyFile=c);function c(A,D,P,F){return typeof P=="function"&&(F=P,P=0),V(A,D,P,F);function V(H,k,X,ee,ne){return a(H,k,X,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?Na([V,[H,k,X,ee],ie,ne||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var u=r.readdir;r.readdir=f;var l=/^v[0-5]\./;function f(A,D,P){typeof D=="function"&&(P=D,D=null);var F=l.test(process.version)?function(k,X,ee,ne){return u(k,V(k,X,ee,ne))}:function(k,X,ee,ne){return u(k,X,V(k,X,ee,ne))};return F(A,D,P);function V(H,k,X,ee){return function(ne,ie){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?Na([F,[H,k,X],ne,ee||Date.now(),Date.now()]):(ie&&ie.sort&&ie.sort(),typeof X=="function"&&X.call(this,ne,ie))}}}if(process.version.substr(0,4)==="v0.8"){var p=Pz(r);E=p.ReadStream,S=p.WriteStream}var d=r.ReadStream;d&&(E.prototype=Object.create(d.prototype),E.prototype.open=_);var m=r.WriteStream;m&&(S.prototype=Object.create(m.prototype),S.prototype.open=y),Object.defineProperty(r,"ReadStream",{get:function(){return E},set:function(A){E=A},enumerable:!0,configurable:!0}),Object.defineProperty(r,"WriteStream",{get:function(){return S},set:function(A){S=A},enumerable:!0,configurable:!0});var g=E;Object.defineProperty(r,"FileReadStream",{get:function(){return g},set:function(A){g=A},enumerable:!0,configurable:!0});var h=S;Object.defineProperty(r,"FileWriteStream",{get:function(){return h},set:function(A){h=A},enumerable:!0,configurable:!0});function E(A,D){return this instanceof E?(d.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function _(){var A=this;x(A.path,A.flags,A.mode,function(D,P){D?(A.autoClose&&A.destroy(),A.emit("error",D)):(A.fd=P,A.emit("open",P),A.read())})}function S(A,D){return this instanceof S?(m.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function y(){var A=this;x(A.path,A.flags,A.mode,function(D,P){D?(A.destroy(),A.emit("error",D)):(A.fd=P,A.emit("open",P))})}function T(A,D){return new r.ReadStream(A,D)}function I(A,D){return new r.WriteStream(A,D)}var v=r.open;r.open=x;function x(A,D,P,F){return typeof P=="function"&&(F=P,P=null),V(A,D,P,F);function V(H,k,X,ee,ne){return v(H,k,X,function(ie,Ee){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?Na([V,[H,k,X,ee],ie,ne||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}return r}function Na(r){go("ENQUEUE",r[0].name,r[1]),Lt[fr].push(r),BE()}var Lp;function Vx(){for(var r=Date.now(),e=0;e<Lt[fr].length;++e)Lt[fr][e].length>2&&(Lt[fr][e][3]=r,Lt[fr][e][4]=r);BE()}function BE(){if(clearTimeout(Lp),Lp=void 0,Lt[fr].length!==0){var r=Lt[fr].shift(),e=r[0],t=r[1],n=r[2],s=r[3],i=r[4];if(s===void 0)go("RETRY",e.name,t),e.apply(null,t);else if(Date.now()-s>=6e4){go("TIMEOUT",e.name,t);var o=t.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),u=Math.min(c*1.2,100);a>=u?(go("RETRY",e.name,t),e.apply(null,t.concat([s]))):Lt[fr].push(r)}Lp===void 0&&(Lp=setTimeout(BE,0))}}});var Nr=C(Mi=>{"use strict";var kx=tr().fromCallback,Mr=Ba(),Lz=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(r=>typeof Mr[r]=="function");Object.assign(Mi,Mr);Lz.forEach(r=>{Mi[r]=kx(Mr[r])});Mi.exists=function(r,e){return typeof e=="function"?Mr.exists(r,e):new Promise(t=>Mr.exists(r,t))};Mi.read=function(r,e,t,n,s,i){return typeof i=="function"?Mr.read(r,e,t,n,s,i):new Promise((o,a)=>{Mr.read(r,e,t,n,s,(c,u,l)=>{if(c)return a(c);o({bytesRead:u,buffer:l})})})};Mi.write=function(r,e,...t){return typeof t[t.length-1]=="function"?Mr.write(r,e,...t):new Promise((n,s)=>{Mr.write(r,e,...t,(i,o,a)=>{if(i)return s(i);n({bytesWritten:o,buffer:a})})})};Mi.readv=function(r,e,...t){return typeof t[t.length-1]=="function"?Mr.readv(r,e,...t):new Promise((n,s)=>{Mr.readv(r,e,...t,(i,o,a)=>{if(i)return s(i);n({bytesRead:o,buffers:a})})})};Mi.writev=function(r,e,...t){return typeof t[t.length-1]=="function"?Mr.writev(r,e,...t):new Promise((n,s)=>{Mr.writev(r,e,...t,(i,o,a)=>{if(i)return s(i);n({bytesWritten:o,buffers:a})})})};typeof Mr.realpath.native=="function"?Mi.realpath.native=kx(Mr.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var qx=C((Wye,jx)=>{"use strict";var Mz=W("path");jx.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Mz.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}}});var Yx=C((Yye,FE)=>{"use strict";var $x=Nr(),{checkPath:Hx}=qx(),Wx=r=>{let e={mode:511};return typeof r=="number"?r:{...e,...r}.mode};FE.exports.makeDir=async(r,e)=>(Hx(r),$x.mkdir(r,{mode:Wx(e),recursive:!0}));FE.exports.makeDirSync=(r,e)=>(Hx(r),$x.mkdirSync(r,{mode:Wx(e),recursive:!0}))});var Hn=C((zye,zx)=>{"use strict";var Nz=tr().fromPromise,{makeDir:Bz,makeDirSync:VE}=Yx(),GE=Nz(Bz);zx.exports={mkdirs:GE,mkdirsSync:VE,mkdirp:GE,mkdirpSync:VE,ensureDir:GE,ensureDirSync:VE}});var ns=C((Xye,Kx)=>{"use strict";var Uz=tr().fromPromise,Xx=Nr();function Fz(r){return Xx.access(r).then(()=>!0).catch(()=>!1)}Kx.exports={pathExists:Uz(Fz),pathExistsSync:Xx.existsSync}});var kE=C((Kye,Jx)=>{"use strict";var Ua=Nr(),Vz=tr().fromPromise;async function Gz(r,e,t){let n=await Ua.open(r,"r+"),s=null;try{await Ua.futimes(n,e,t)}finally{try{await Ua.close(n)}catch(i){s=i}}if(s)throw s}function kz(r,e,t){let n=Ua.openSync(r,"r+");return Ua.futimesSync(n,e,t),Ua.closeSync(n)}Jx.exports={utimesMillis:Vz(Gz),utimesMillisSync:kz}});var Eo=C((Jye,tb)=>{"use strict";var Fa=Nr(),rr=W("path"),Qx=tr().fromPromise;function jz(r,e,t){let n=t.dereference?s=>Fa.stat(s,{bigint:!0}):s=>Fa.lstat(s,{bigint:!0});return Promise.all([n(r),n(e).catch(s=>{if(s.code==="ENOENT")return null;throw s})]).then(([s,i])=>({srcStat:s,destStat:i}))}function qz(r,e,t){let n,s=t.dereference?o=>Fa.statSync(o,{bigint:!0}):o=>Fa.lstatSync(o,{bigint:!0}),i=s(r);try{n=s(e)}catch(o){if(o.code==="ENOENT")return{srcStat:i,destStat:null};throw o}return{srcStat:i,destStat:n}}async function $z(r,e,t,n){let{srcStat:s,destStat:i}=await jz(r,e,n);if(i){if(zu(s,i)){let o=rr.basename(r),a=rr.basename(e);if(t==="move"&&o!==a&&o.toLowerCase()===a.toLowerCase())return{srcStat:s,destStat:i,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!i.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${r}'.`);if(!s.isDirectory()&&i.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${r}'.`)}if(s.isDirectory()&&jE(r,e))throw new Error(Np(r,e,t));return{srcStat:s,destStat:i}}function Hz(r,e,t,n){let{srcStat:s,destStat:i}=qz(r,e,n);if(i){if(zu(s,i)){let o=rr.basename(r),a=rr.basename(e);if(t==="move"&&o!==a&&o.toLowerCase()===a.toLowerCase())return{srcStat:s,destStat:i,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!i.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${r}'.`);if(!s.isDirectory()&&i.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${r}'.`)}if(s.isDirectory()&&jE(r,e))throw new Error(Np(r,e,t));return{srcStat:s,destStat:i}}async function Zx(r,e,t,n){let s=rr.resolve(rr.dirname(r)),i=rr.resolve(rr.dirname(t));if(i===s||i===rr.parse(i).root)return;let o;try{o=await Fa.stat(i,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(zu(e,o))throw new Error(Np(r,t,n));return Zx(r,e,i,n)}function eb(r,e,t,n){let s=rr.resolve(rr.dirname(r)),i=rr.resolve(rr.dirname(t));if(i===s||i===rr.parse(i).root)return;let o;try{o=Fa.statSync(i,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(zu(e,o))throw new Error(Np(r,t,n));return eb(r,e,i,n)}function zu(r,e){return e.ino&&e.dev&&e.ino===r.ino&&e.dev===r.dev}function jE(r,e){let t=rr.resolve(r).split(rr.sep).filter(s=>s),n=rr.resolve(e).split(rr.sep).filter(s=>s);return t.every((s,i)=>n[i]===s)}function Np(r,e,t){return`Cannot ${t} '${r}' to a subdirectory of itself, '${e}'.`}tb.exports={checkPaths:Qx($z),checkPathsSync:Hz,checkParentPaths:Qx(Zx),checkParentPathsSync:eb,isSrcSubdir:jE,areIdentical:zu}});var ob=C((Qye,sb)=>{"use strict";var _r=Nr(),Xu=W("path"),{mkdirs:Wz}=Hn(),{pathExists:Yz}=ns(),{utimesMillis:zz}=kE(),Ku=Eo();async function Xz(r,e,t={}){typeof t=="function"&&(t={filter:t}),t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
28
+ `);return h?(n.originalMessage=n.message,n.message=_):n=new Error(_),n.shortMessage=E,n.command=o,n.escapedCommand=a,n.exitCode=i,n.signal=s,n.signalDescription=p,n.stdout=r,n.stderr=e,t!==void 0&&(n.all=t),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=u,n.killed=l&&!c,n};KD.exports=AY});var ZD=C((bye,DE)=>{"use strict";var Op=["stdin","stdout","stderr"],OY=r=>Op.some(e=>r[e]!==void 0),QD=r=>{if(!r)return;let{stdio:e}=r;if(e===void 0)return Op.map(n=>r[n]);if(OY(r))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Op.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let t=Math.max(e.length,Op.length);return Array.from({length:t},(n,s)=>e[s])};DE.exports=QD;DE.exports.node=r=>{let e=QD(r);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var ex=C((Iye,Cp)=>{Cp.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Cp.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Cp.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var sx=C((Pye,La)=>{var bt=global.process,ho=function(r){return r&&typeof r=="object"&&typeof r.removeListener=="function"&&typeof r.emit=="function"&&typeof r.reallyExit=="function"&&typeof r.listeners=="function"&&typeof r.kill=="function"&&typeof r.pid=="number"&&typeof r.on=="function"};ho(bt)?(tx=W("assert"),wa=ex(),rx=/^win/i.test(bt.platform),Hu=W("events"),typeof Hu!="function"&&(Hu=Hu.EventEmitter),bt.__signal_exit_emitter__?er=bt.__signal_exit_emitter__:(er=bt.__signal_exit_emitter__=new Hu,er.count=0,er.emitted={}),er.infinite||(er.setMaxListeners(1/0),er.infinite=!0),La.exports=function(r,e){if(!ho(global.process))return function(){};tx.equal(typeof r,"function","a callback must be provided for exit handler"),Ra===!1&&xE();var t="exit";e&&e.alwaysLast&&(t="afterexit");var n=function(){er.removeListener(t,r),er.listeners("exit").length===0&&er.listeners("afterexit").length===0&&vp()};return er.on(t,r),n},vp=function(){!Ra||!ho(global.process)||(Ra=!1,wa.forEach(function(e){try{bt.removeListener(e,Dp[e])}catch{}}),bt.emit=xp,bt.reallyExit=bE,er.count-=1)},La.exports.unload=vp,mo=function(e,t,n){er.emitted[e]||(er.emitted[e]=!0,er.emit(e,t,n))},Dp={},wa.forEach(function(r){Dp[r]=function(){if(ho(global.process)){var t=bt.listeners(r);t.length===er.count&&(vp(),mo("exit",null,r),mo("afterexit",null,r),rx&&r==="SIGHUP"&&(r="SIGINT"),bt.kill(bt.pid,r))}}}),La.exports.signals=function(){return wa},Ra=!1,xE=function(){Ra||!ho(global.process)||(Ra=!0,er.count+=1,wa=wa.filter(function(e){try{return bt.on(e,Dp[e]),!0}catch{return!1}}),bt.emit=ix,bt.reallyExit=nx)},La.exports.load=xE,bE=bt.reallyExit,nx=function(e){ho(global.process)&&(bt.exitCode=e||0,mo("exit",bt.exitCode,null),mo("afterexit",bt.exitCode,null),bE.call(bt,bt.exitCode))},xp=bt.emit,ix=function(e,t){if(e==="exit"&&ho(global.process)){t!==void 0&&(bt.exitCode=t);var n=xp.apply(this,arguments);return mo("exit",bt.exitCode,null),mo("afterexit",bt.exitCode,null),n}else return xp.apply(this,arguments)}):La.exports=function(){return function(){}};var tx,wa,rx,Hu,er,vp,mo,Dp,Ra,xE,bE,nx,xp,ix});var ax=C((wye,ox)=>{"use strict";var CY=W("os"),vY=sx(),DY=1e3*5,xY=(r,e="SIGTERM",t={})=>{let n=r(e);return bY(r,e,t,n),n},bY=(r,e,t,n)=>{if(!IY(e,t,n))return;let s=wY(t),i=setTimeout(()=>{r("SIGKILL")},s);i.unref&&i.unref()},IY=(r,{forceKillAfterTimeout:e},t)=>PY(r)&&e!==!1&&t,PY=r=>r===CY.constants.signals.SIGTERM||typeof r=="string"&&r.toUpperCase()==="SIGTERM",wY=({forceKillAfterTimeout:r=!0})=>{if(r===!0)return DY;if(!Number.isFinite(r)||r<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${r}\` (${typeof r})`);return r},RY=(r,e)=>{r.kill()&&(e.isCanceled=!0)},LY=(r,e,t)=>{r.kill(e),t(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},MY=(r,{timeout:e,killSignal:t="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let s,i=new Promise((a,c)=>{s=setTimeout(()=>{LY(r,t,c)},e)}),o=n.finally(()=>{clearTimeout(s)});return Promise.race([i,o])},NY=({timeout:r})=>{if(r!==void 0&&(!Number.isFinite(r)||r<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${r}\` (${typeof r})`)},BY=async(r,{cleanup:e,detached:t},n)=>{if(!e||t)return n;let s=vY(()=>{r.kill()});return n.finally(()=>{s()})};ox.exports={spawnedKill:xY,spawnedCancel:RY,setupTimeout:MY,validateTimeout:NY,setExitHandler:BY}});var ux=C((Rye,cx)=>{"use strict";var mi=r=>r!==null&&typeof r=="object"&&typeof r.pipe=="function";mi.writable=r=>mi(r)&&r.writable!==!1&&typeof r._write=="function"&&typeof r._writableState=="object";mi.readable=r=>mi(r)&&r.readable!==!1&&typeof r._read=="function"&&typeof r._readableState=="object";mi.duplex=r=>mi.writable(r)&&mi.readable(r);mi.transform=r=>mi.duplex(r)&&typeof r._transform=="function";cx.exports=mi});var fx=C((Lye,lx)=>{"use strict";var{PassThrough:UY}=W("stream");lx.exports=r=>{r={...r};let{array:e}=r,{encoding:t}=r,n=t==="buffer",s=!1;e?s=!(t||n):t=t||"utf8",n&&(t=null);let i=new UY({objectMode:s});t&&i.setEncoding(t);let o=0,a=[];return i.on("data",c=>{a.push(c),s?o=a.length:o+=c.length}),i.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),i.getBufferedLength=()=>o,i}});var px=C((Mye,Wu)=>{"use strict";var{constants:FY}=W("buffer"),VY=W("stream"),{promisify:GY}=W("util"),kY=fx(),jY=GY(VY.pipeline),bp=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function IE(r,e){if(!r)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:t}=e,n=kY(e);return await new Promise((s,i)=>{let o=a=>{a&&n.getBufferedLength()<=FY.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),i(a)};(async()=>{try{await jY(r,n),s()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>t&&o(new bp)})}),n.getBufferedValue()}Wu.exports=IE;Wu.exports.buffer=(r,e)=>IE(r,{...e,encoding:"buffer"});Wu.exports.array=(r,e)=>IE(r,{...e,array:!0});Wu.exports.MaxBufferError=bp});var hx=C((Nye,dx)=>{"use strict";var{PassThrough:qY}=W("stream");dx.exports=function(){var r=[],e=new qY({objectMode:!0});return e.setMaxListeners(0),e.add=t,e.isEmpty=n,e.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(t),e;function t(i){return Array.isArray(i)?(i.forEach(t),this):(r.push(i),i.once("end",s.bind(null,i)),i.once("error",e.emit.bind(e,"error")),i.pipe(e,{end:!1}),this)}function n(){return r.length==0}function s(i){r=r.filter(function(o){return o!==i}),!r.length&&e.readable&&e.end()}}});var Sx=C((Bye,Ex)=>{"use strict";var gx=ux(),mx=px(),$Y=hx(),HY=(r,e)=>{e===void 0||r.stdin===void 0||(gx(e)?e.pipe(r.stdin):r.stdin.end(e))},WY=(r,{all:e})=>{if(!e||!r.stdout&&!r.stderr)return;let t=$Y();return r.stdout&&t.add(r.stdout),r.stderr&&t.add(r.stderr),t},PE=async(r,e)=>{if(r){r.destroy();try{return await e}catch(t){return t.bufferedData}}},wE=(r,{encoding:e,buffer:t,maxBuffer:n})=>{if(!(!r||!t))return e?mx(r,{encoding:e,maxBuffer:n}):mx.buffer(r,{maxBuffer:n})},YY=async({stdout:r,stderr:e,all:t},{encoding:n,buffer:s,maxBuffer:i},o)=>{let a=wE(r,{encoding:n,buffer:s,maxBuffer:i}),c=wE(e,{encoding:n,buffer:s,maxBuffer:i}),u=wE(t,{encoding:n,buffer:s,maxBuffer:i*2});try{return await Promise.all([o,a,c,u])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},PE(r,a),PE(e,c),PE(t,u)])}},zY=({input:r})=>{if(gx(r))throw new TypeError("The `input` option cannot be a stream in sync mode")};Ex.exports={handleInput:HY,makeAllStream:WY,getSpawnedResult:YY,validateInputSync:zY}});var Tx=C((Uye,_x)=>{"use strict";var XY=(async()=>{})().constructor.prototype,KY=["then","catch","finally"].map(r=>[r,Reflect.getOwnPropertyDescriptor(XY,r)]),JY=(r,e)=>{for(let[t,n]of KY){let s=typeof e=="function"?(...i)=>Reflect.apply(n.value,e(),i):n.value.bind(e);Reflect.defineProperty(r,t,{...n,value:s})}return r},QY=r=>new Promise((e,t)=>{r.on("exit",(n,s)=>{e({exitCode:n,signal:s})}),r.on("error",n=>{t(n)}),r.stdin&&r.stdin.on("error",n=>{t(n)})});_x.exports={mergePromise:JY,getSpawnedPromise:QY}});var Ox=C((Fye,Ax)=>{"use strict";var yx=(r,e=[])=>Array.isArray(e)?[r,...e]:[r],ZY=/^[\w.-]+$/,ez=/"/g,tz=r=>typeof r!="string"||ZY.test(r)?r:`"${r.replace(ez,'\\"')}"`,rz=(r,e)=>yx(r,e).join(" "),nz=(r,e)=>yx(r,e).map(t=>tz(t)).join(" "),iz=/ +/g,sz=r=>{let e=[];for(let t of r.trim().split(iz)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${t}`:e.push(t)}return e};Ax.exports={joinCommand:rz,getEscapedCommand:nz,parseCommand:sz}});var Px=C((Vye,Ma)=>{"use strict";var oz=W("path"),RE=W("child_process"),az=MD(),cz=BD(),uz=VD(),lz=qD(),Ip=JD(),vx=ZD(),{spawnedKill:fz,spawnedCancel:pz,setupTimeout:dz,validateTimeout:hz,setExitHandler:mz}=ax(),{handleInput:gz,getSpawnedResult:Ez,makeAllStream:Sz,validateInputSync:_z}=Sx(),{mergePromise:Cx,getSpawnedPromise:Tz}=Tx(),{joinCommand:Dx,parseCommand:xx,getEscapedCommand:bx}=Ox(),yz=1e3*1e3*100,Az=({env:r,extendEnv:e,preferLocal:t,localDir:n,execPath:s})=>{let i=e?{...process.env,...r}:r;return t?uz.env({env:i,cwd:n,execPath:s}):i},Ix=(r,e,t={})=>{let n=az._parse(r,e,t);return r=n.command,e=n.args,t=n.options,t={maxBuffer:yz,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:t.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...t},t.env=Az(t),t.stdio=vx(t),process.platform==="win32"&&oz.basename(r,".exe")==="cmd"&&e.unshift("/q"),{file:r,args:e,options:t,parsed:n}},Yu=(r,e,t)=>typeof e!="string"&&!Buffer.isBuffer(e)?t===void 0?void 0:"":r.stripFinalNewline?cz(e):e,Pp=(r,e,t)=>{let n=Ix(r,e,t),s=Dx(r,e),i=bx(r,e);hz(n.options);let o;try{o=RE.spawn(n.file,n.args,n.options)}catch(d){let m=new RE.ChildProcess,g=Promise.reject(Ip({error:d,stdout:"",stderr:"",all:"",command:s,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Cx(m,g)}let a=Tz(o),c=dz(o,n.options,a),u=mz(o,n.options,c),l={isCanceled:!1};o.kill=fz.bind(null,o.kill.bind(o)),o.cancel=pz.bind(null,o,l);let p=lz(async()=>{let[{error:d,exitCode:m,signal:g,timedOut:h},E,_,S]=await Ez(o,n.options,u),y=Yu(n.options,E),T=Yu(n.options,_),b=Yu(n.options,S);if(d||m!==0||g!==null){let v=Ip({error:d,exitCode:m,signal:g,stdout:y,stderr:T,all:b,command:s,escapedCommand:i,parsed:n,timedOut:h,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return v;throw v}return{command:s,escapedCommand:i,exitCode:0,stdout:y,stderr:T,all:b,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return gz(o,n.options.input),o.all=Sz(o,n.options),Cx(o,p)};Ma.exports=Pp;Ma.exports.sync=(r,e,t)=>{let n=Ix(r,e,t),s=Dx(r,e),i=bx(r,e);_z(n.options);let o;try{o=RE.spawnSync(n.file,n.args,n.options)}catch(u){throw Ip({error:u,stdout:"",stderr:"",all:"",command:s,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=Yu(n.options,o.stdout,o.error),c=Yu(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let u=Ip({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:s,escapedCommand:i,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return u;throw u}return{command:s,escapedCommand:i,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Ma.exports.command=(r,e)=>{let[t,...n]=xx(r);return Pp(t,n,e)};Ma.exports.commandSync=(r,e)=>{let[t,...n]=xx(r);return Pp.sync(t,n,e)};Ma.exports.node=(r,e,t={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(t=e,e=[]);let n=vx.node(t),s=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:i=process.execPath,nodeOptions:o=s}=t;return Pp(i,[...o,r,...Array.isArray(e)?e:[]],{...t,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var tr=C(LE=>{"use strict";LE.fromCallback=function(r){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")r.apply(this,e);else return new Promise((t,n)=>{r.call(this,...e,(s,i)=>s!=null?n(s):t(i))})},"name",{value:r.name})};LE.fromPromise=function(r){return Object.defineProperty(function(...e){let t=e[e.length-1];if(typeof t!="function")return r.apply(this,e);r.apply(this,e.slice(0,-1)).then(n=>t(null,n),t)},"name",{value:r.name})}});var Rx=C((kye,wx)=>{var rs=W("constants"),Oz=process.cwd,wp=null,Cz=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return wp||(wp=Oz.call(process)),wp};try{process.cwd()}catch{}typeof process.chdir=="function"&&(ME=process.chdir,process.chdir=function(r){wp=null,ME.call(process,r)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,ME));var ME;wx.exports=vz;function vz(r){rs.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(r),r.lutimes||t(r),r.chown=i(r.chown),r.fchown=i(r.fchown),r.lchown=i(r.lchown),r.chmod=n(r.chmod),r.fchmod=n(r.fchmod),r.lchmod=n(r.lchmod),r.chownSync=o(r.chownSync),r.fchownSync=o(r.fchownSync),r.lchownSync=o(r.lchownSync),r.chmodSync=s(r.chmodSync),r.fchmodSync=s(r.fchmodSync),r.lchmodSync=s(r.lchmodSync),r.stat=a(r.stat),r.fstat=a(r.fstat),r.lstat=a(r.lstat),r.statSync=c(r.statSync),r.fstatSync=c(r.fstatSync),r.lstatSync=c(r.lstatSync),r.chmod&&!r.lchmod&&(r.lchmod=function(l,f,p){p&&process.nextTick(p)},r.lchmodSync=function(){}),r.chown&&!r.lchown&&(r.lchown=function(l,f,p,d){d&&process.nextTick(d)},r.lchownSync=function(){}),Cz==="win32"&&(r.rename=typeof r.rename!="function"?r.rename:(function(l){function f(p,d,m){var g=Date.now(),h=0;l(p,d,function E(_){if(_&&(_.code==="EACCES"||_.code==="EPERM"||_.code==="EBUSY")&&Date.now()-g<6e4){setTimeout(function(){r.stat(d,function(S,y){S&&S.code==="ENOENT"?l(p,d,E):m(_)})},h),h<100&&(h+=10);return}m&&m(_)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,l),f})(r.rename)),r.read=typeof r.read!="function"?r.read:(function(l){function f(p,d,m,g,h,E){var _;if(E&&typeof E=="function"){var S=0;_=function(y,T,b){if(y&&y.code==="EAGAIN"&&S<10)return S++,l.call(r,p,d,m,g,h,_);E.apply(this,arguments)}}return l.call(r,p,d,m,g,h,_)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,l),f})(r.read),r.readSync=typeof r.readSync!="function"?r.readSync:(function(l){return function(f,p,d,m,g){for(var h=0;;)try{return l.call(r,f,p,d,m,g)}catch(E){if(E.code==="EAGAIN"&&h<10){h++;continue}throw E}}})(r.readSync);function e(l){l.lchmod=function(f,p,d){l.open(f,rs.O_WRONLY|rs.O_SYMLINK,p,function(m,g){if(m){d&&d(m);return}l.fchmod(g,p,function(h){l.close(g,function(E){d&&d(h||E)})})})},l.lchmodSync=function(f,p){var d=l.openSync(f,rs.O_WRONLY|rs.O_SYMLINK,p),m=!0,g;try{g=l.fchmodSync(d,p),m=!1}finally{if(m)try{l.closeSync(d)}catch{}else l.closeSync(d)}return g}}function t(l){rs.hasOwnProperty("O_SYMLINK")&&l.futimes?(l.lutimes=function(f,p,d,m){l.open(f,rs.O_SYMLINK,function(g,h){if(g){m&&m(g);return}l.futimes(h,p,d,function(E){l.close(h,function(_){m&&m(E||_)})})})},l.lutimesSync=function(f,p,d){var m=l.openSync(f,rs.O_SYMLINK),g,h=!0;try{g=l.futimesSync(m,p,d),h=!1}finally{if(h)try{l.closeSync(m)}catch{}else l.closeSync(m)}return g}):l.futimes&&(l.lutimes=function(f,p,d,m){m&&process.nextTick(m)},l.lutimesSync=function(){})}function n(l){return l&&function(f,p,d){return l.call(r,f,p,function(m){u(m)&&(m=null),d&&d.apply(this,arguments)})}}function s(l){return l&&function(f,p){try{return l.call(r,f,p)}catch(d){if(!u(d))throw d}}}function i(l){return l&&function(f,p,d,m){return l.call(r,f,p,d,function(g){u(g)&&(g=null),m&&m.apply(this,arguments)})}}function o(l){return l&&function(f,p,d){try{return l.call(r,f,p,d)}catch(m){if(!u(m))throw m}}}function a(l){return l&&function(f,p,d){typeof p=="function"&&(d=p,p=null);function m(g,h){h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),d&&d.apply(this,arguments)}return p?l.call(r,f,p,m):l.call(r,f,m)}}function c(l){return l&&function(f,p){var d=p?l.call(r,f,p):l.call(r,f);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function u(l){if(!l||l.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(l.code==="EINVAL"||l.code==="EPERM"))}}});var Nx=C((jye,Mx)=>{var Lx=W("stream").Stream;Mx.exports=Dz;function Dz(r){return{ReadStream:e,WriteStream:t};function e(n,s){if(!(this instanceof e))return new e(n,s);Lx.call(this);var i=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var o=Object.keys(s),a=0,c=o.length;a<c;a++){var u=o[a];this[u]=s[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}r.open(this.path,this.flags,this.mode,function(l,f){if(l){i.emit("error",l),i.readable=!1;return}i.fd=f,i.emit("open",f),i._read()})}function t(n,s){if(!(this instanceof t))return new t(n,s);Lx.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var i=Object.keys(s),o=0,a=i.length;o<a;o++){var c=i[o];this[c]=s[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=r.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Ux=C((qye,Bx)=>{"use strict";Bx.exports=bz;var xz=Object.getPrototypeOf||function(r){return r.__proto__};function bz(r){if(r===null||typeof r!="object")return r;if(r instanceof Object)var e={__proto__:xz(r)};else var e=Object.create(null);return Object.getOwnPropertyNames(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}),e}});var Ba=C(($ye,UE)=>{var Lt=W("fs"),Iz=Rx(),Pz=Nx(),wz=Ux(),Rp=W("util"),fr,Mp;typeof Symbol=="function"&&typeof Symbol.for=="function"?(fr=Symbol.for("graceful-fs.queue"),Mp=Symbol.for("graceful-fs.previous")):(fr="___graceful-fs.queue",Mp="___graceful-fs.previous");function Rz(){}function Gx(r,e){Object.defineProperty(r,fr,{get:function(){return e}})}var go=Rz;Rp.debuglog?go=Rp.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(go=function(){var r=Rp.format.apply(Rp,arguments);r="GFS4: "+r.split(/\n/).join(`
29
+ GFS4: `),console.error(r)});Lt[fr]||(Fx=global[fr]||[],Gx(Lt,Fx),Lt.close=(function(r){function e(t,n){return r.call(Lt,t,function(s){s||Vx(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Mp,{value:r}),e})(Lt.close),Lt.closeSync=(function(r){function e(t){r.apply(Lt,arguments),Vx()}return Object.defineProperty(e,Mp,{value:r}),e})(Lt.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){go(Lt[fr]),W("assert").equal(Lt[fr].length,0)}));var Fx;global[fr]||Gx(global,Lt[fr]);UE.exports=NE(wz(Lt));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Lt.__patched&&(UE.exports=NE(Lt),Lt.__patched=!0);function NE(r){Iz(r),r.gracefulify=NE,r.createReadStream=T,r.createWriteStream=b;var e=r.readFile;r.readFile=t;function t(A,D,P){return typeof D=="function"&&(P=D,D=null),F(A,D,P);function F(V,H,k,X){return e(V,H,function(ee){ee&&(ee.code==="EMFILE"||ee.code==="ENFILE")?Na([F,[V,H,k],ee,X||Date.now(),Date.now()]):typeof k=="function"&&k.apply(this,arguments)})}}var n=r.writeFile;r.writeFile=s;function s(A,D,P,F){return typeof P=="function"&&(F=P,P=null),V(A,D,P,F);function V(H,k,X,ee,ne){return n(H,k,X,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?Na([V,[H,k,X,ee],ie,ne||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var i=r.appendFile;i&&(r.appendFile=o);function o(A,D,P,F){return typeof P=="function"&&(F=P,P=null),V(A,D,P,F);function V(H,k,X,ee,ne){return i(H,k,X,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?Na([V,[H,k,X,ee],ie,ne||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var a=r.copyFile;a&&(r.copyFile=c);function c(A,D,P,F){return typeof P=="function"&&(F=P,P=0),V(A,D,P,F);function V(H,k,X,ee,ne){return a(H,k,X,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?Na([V,[H,k,X,ee],ie,ne||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var u=r.readdir;r.readdir=f;var l=/^v[0-5]\./;function f(A,D,P){typeof D=="function"&&(P=D,D=null);var F=l.test(process.version)?function(k,X,ee,ne){return u(k,V(k,X,ee,ne))}:function(k,X,ee,ne){return u(k,X,V(k,X,ee,ne))};return F(A,D,P);function V(H,k,X,ee){return function(ne,ie){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?Na([F,[H,k,X],ne,ee||Date.now(),Date.now()]):(ie&&ie.sort&&ie.sort(),typeof X=="function"&&X.call(this,ne,ie))}}}if(process.version.substr(0,4)==="v0.8"){var p=Pz(r);E=p.ReadStream,S=p.WriteStream}var d=r.ReadStream;d&&(E.prototype=Object.create(d.prototype),E.prototype.open=_);var m=r.WriteStream;m&&(S.prototype=Object.create(m.prototype),S.prototype.open=y),Object.defineProperty(r,"ReadStream",{get:function(){return E},set:function(A){E=A},enumerable:!0,configurable:!0}),Object.defineProperty(r,"WriteStream",{get:function(){return S},set:function(A){S=A},enumerable:!0,configurable:!0});var g=E;Object.defineProperty(r,"FileReadStream",{get:function(){return g},set:function(A){g=A},enumerable:!0,configurable:!0});var h=S;Object.defineProperty(r,"FileWriteStream",{get:function(){return h},set:function(A){h=A},enumerable:!0,configurable:!0});function E(A,D){return this instanceof E?(d.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function _(){var A=this;x(A.path,A.flags,A.mode,function(D,P){D?(A.autoClose&&A.destroy(),A.emit("error",D)):(A.fd=P,A.emit("open",P),A.read())})}function S(A,D){return this instanceof S?(m.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function y(){var A=this;x(A.path,A.flags,A.mode,function(D,P){D?(A.destroy(),A.emit("error",D)):(A.fd=P,A.emit("open",P))})}function T(A,D){return new r.ReadStream(A,D)}function b(A,D){return new r.WriteStream(A,D)}var v=r.open;r.open=x;function x(A,D,P,F){return typeof P=="function"&&(F=P,P=null),V(A,D,P,F);function V(H,k,X,ee,ne){return v(H,k,X,function(ie,Ee){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?Na([V,[H,k,X,ee],ie,ne||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}return r}function Na(r){go("ENQUEUE",r[0].name,r[1]),Lt[fr].push(r),BE()}var Lp;function Vx(){for(var r=Date.now(),e=0;e<Lt[fr].length;++e)Lt[fr][e].length>2&&(Lt[fr][e][3]=r,Lt[fr][e][4]=r);BE()}function BE(){if(clearTimeout(Lp),Lp=void 0,Lt[fr].length!==0){var r=Lt[fr].shift(),e=r[0],t=r[1],n=r[2],s=r[3],i=r[4];if(s===void 0)go("RETRY",e.name,t),e.apply(null,t);else if(Date.now()-s>=6e4){go("TIMEOUT",e.name,t);var o=t.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),u=Math.min(c*1.2,100);a>=u?(go("RETRY",e.name,t),e.apply(null,t.concat([s]))):Lt[fr].push(r)}Lp===void 0&&(Lp=setTimeout(BE,0))}}});var Nr=C(Mi=>{"use strict";var kx=tr().fromCallback,Mr=Ba(),Lz=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(r=>typeof Mr[r]=="function");Object.assign(Mi,Mr);Lz.forEach(r=>{Mi[r]=kx(Mr[r])});Mi.exists=function(r,e){return typeof e=="function"?Mr.exists(r,e):new Promise(t=>Mr.exists(r,t))};Mi.read=function(r,e,t,n,s,i){return typeof i=="function"?Mr.read(r,e,t,n,s,i):new Promise((o,a)=>{Mr.read(r,e,t,n,s,(c,u,l)=>{if(c)return a(c);o({bytesRead:u,buffer:l})})})};Mi.write=function(r,e,...t){return typeof t[t.length-1]=="function"?Mr.write(r,e,...t):new Promise((n,s)=>{Mr.write(r,e,...t,(i,o,a)=>{if(i)return s(i);n({bytesWritten:o,buffer:a})})})};Mi.readv=function(r,e,...t){return typeof t[t.length-1]=="function"?Mr.readv(r,e,...t):new Promise((n,s)=>{Mr.readv(r,e,...t,(i,o,a)=>{if(i)return s(i);n({bytesRead:o,buffers:a})})})};Mi.writev=function(r,e,...t){return typeof t[t.length-1]=="function"?Mr.writev(r,e,...t):new Promise((n,s)=>{Mr.writev(r,e,...t,(i,o,a)=>{if(i)return s(i);n({bytesWritten:o,buffers:a})})})};typeof Mr.realpath.native=="function"?Mi.realpath.native=kx(Mr.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var qx=C((Wye,jx)=>{"use strict";var Mz=W("path");jx.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Mz.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}}});var Yx=C((Yye,FE)=>{"use strict";var $x=Nr(),{checkPath:Hx}=qx(),Wx=r=>{let e={mode:511};return typeof r=="number"?r:{...e,...r}.mode};FE.exports.makeDir=async(r,e)=>(Hx(r),$x.mkdir(r,{mode:Wx(e),recursive:!0}));FE.exports.makeDirSync=(r,e)=>(Hx(r),$x.mkdirSync(r,{mode:Wx(e),recursive:!0}))});var Hn=C((zye,zx)=>{"use strict";var Nz=tr().fromPromise,{makeDir:Bz,makeDirSync:VE}=Yx(),GE=Nz(Bz);zx.exports={mkdirs:GE,mkdirsSync:VE,mkdirp:GE,mkdirpSync:VE,ensureDir:GE,ensureDirSync:VE}});var ns=C((Xye,Kx)=>{"use strict";var Uz=tr().fromPromise,Xx=Nr();function Fz(r){return Xx.access(r).then(()=>!0).catch(()=>!1)}Kx.exports={pathExists:Uz(Fz),pathExistsSync:Xx.existsSync}});var kE=C((Kye,Jx)=>{"use strict";var Ua=Nr(),Vz=tr().fromPromise;async function Gz(r,e,t){let n=await Ua.open(r,"r+"),s=null;try{await Ua.futimes(n,e,t)}finally{try{await Ua.close(n)}catch(i){s=i}}if(s)throw s}function kz(r,e,t){let n=Ua.openSync(r,"r+");return Ua.futimesSync(n,e,t),Ua.closeSync(n)}Jx.exports={utimesMillis:Vz(Gz),utimesMillisSync:kz}});var Eo=C((Jye,tb)=>{"use strict";var Fa=Nr(),rr=W("path"),Qx=tr().fromPromise;function jz(r,e,t){let n=t.dereference?s=>Fa.stat(s,{bigint:!0}):s=>Fa.lstat(s,{bigint:!0});return Promise.all([n(r),n(e).catch(s=>{if(s.code==="ENOENT")return null;throw s})]).then(([s,i])=>({srcStat:s,destStat:i}))}function qz(r,e,t){let n,s=t.dereference?o=>Fa.statSync(o,{bigint:!0}):o=>Fa.lstatSync(o,{bigint:!0}),i=s(r);try{n=s(e)}catch(o){if(o.code==="ENOENT")return{srcStat:i,destStat:null};throw o}return{srcStat:i,destStat:n}}async function $z(r,e,t,n){let{srcStat:s,destStat:i}=await jz(r,e,n);if(i){if(zu(s,i)){let o=rr.basename(r),a=rr.basename(e);if(t==="move"&&o!==a&&o.toLowerCase()===a.toLowerCase())return{srcStat:s,destStat:i,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!i.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${r}'.`);if(!s.isDirectory()&&i.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${r}'.`)}if(s.isDirectory()&&jE(r,e))throw new Error(Np(r,e,t));return{srcStat:s,destStat:i}}function Hz(r,e,t,n){let{srcStat:s,destStat:i}=qz(r,e,n);if(i){if(zu(s,i)){let o=rr.basename(r),a=rr.basename(e);if(t==="move"&&o!==a&&o.toLowerCase()===a.toLowerCase())return{srcStat:s,destStat:i,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!i.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${r}'.`);if(!s.isDirectory()&&i.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${r}'.`)}if(s.isDirectory()&&jE(r,e))throw new Error(Np(r,e,t));return{srcStat:s,destStat:i}}async function Zx(r,e,t,n){let s=rr.resolve(rr.dirname(r)),i=rr.resolve(rr.dirname(t));if(i===s||i===rr.parse(i).root)return;let o;try{o=await Fa.stat(i,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(zu(e,o))throw new Error(Np(r,t,n));return Zx(r,e,i,n)}function eb(r,e,t,n){let s=rr.resolve(rr.dirname(r)),i=rr.resolve(rr.dirname(t));if(i===s||i===rr.parse(i).root)return;let o;try{o=Fa.statSync(i,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(zu(e,o))throw new Error(Np(r,t,n));return eb(r,e,i,n)}function zu(r,e){return e.ino&&e.dev&&e.ino===r.ino&&e.dev===r.dev}function jE(r,e){let t=rr.resolve(r).split(rr.sep).filter(s=>s),n=rr.resolve(e).split(rr.sep).filter(s=>s);return t.every((s,i)=>n[i]===s)}function Np(r,e,t){return`Cannot ${t} '${r}' to a subdirectory of itself, '${e}'.`}tb.exports={checkPaths:Qx($z),checkPathsSync:Hz,checkParentPaths:Qx(Zx),checkParentPathsSync:eb,isSrcSubdir:jE,areIdentical:zu}});var ob=C((Qye,sb)=>{"use strict";var _r=Nr(),Xu=W("path"),{mkdirs:Wz}=Hn(),{pathExists:Yz}=ns(),{utimesMillis:zz}=kE(),Ku=Eo();async function Xz(r,e,t={}){typeof t=="function"&&(t={filter:t}),t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
30
30
 
31
31
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:n,destStat:s}=await Ku.checkPaths(r,e,"copy",t);if(await Ku.checkParentPaths(r,n,e,"copy"),!await nb(r,e,t))return;let o=Xu.dirname(e);await Yz(o)||await Wz(o),await ib(s,r,e,t)}async function nb(r,e,t){return t.filter?t.filter(r,e):!0}async function ib(r,e,t,n){let i=await(n.dereference?_r.stat:_r.lstat)(e);if(i.isDirectory())return Zz(i,r,e,t,n);if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return Kz(i,r,e,t,n);if(i.isSymbolicLink())return eX(r,e,t,n);throw i.isSocket()?new Error(`Cannot copy a socket file: ${e}`):i.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}async function Kz(r,e,t,n,s){if(!e)return rb(r,t,n,s);if(s.overwrite)return await _r.unlink(n),rb(r,t,n,s);if(s.errorOnExist)throw new Error(`'${n}' already exists`)}async function rb(r,e,t,n){if(await _r.copyFile(e,t),n.preserveTimestamps){Jz(r.mode)&&await Qz(t,r.mode);let s=await _r.stat(e);await zz(t,s.atime,s.mtime)}return _r.chmod(t,r.mode)}function Jz(r){return(r&128)===0}function Qz(r,e){return _r.chmod(r,e|128)}async function Zz(r,e,t,n,s){e||await _r.mkdir(n);let i=await _r.readdir(t);await Promise.all(i.map(async o=>{let a=Xu.join(t,o),c=Xu.join(n,o);if(!await nb(a,c,s))return;let{destStat:l}=await Ku.checkPaths(a,c,"copy",s);return ib(l,a,c,s)})),e||await _r.chmod(n,r.mode)}async function eX(r,e,t,n){let s=await _r.readlink(e);if(n.dereference&&(s=Xu.resolve(process.cwd(),s)),!r)return _r.symlink(s,t);let i=null;try{i=await _r.readlink(t)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return _r.symlink(s,t);throw o}if(n.dereference&&(i=Xu.resolve(process.cwd(),i)),Ku.isSrcSubdir(s,i))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${i}'.`);if(Ku.isSrcSubdir(i,s))throw new Error(`Cannot overwrite '${i}' with '${s}'.`);return await _r.unlink(t),_r.symlink(s,t)}sb.exports=Xz});var fb=C((Zye,lb)=>{"use strict";var Br=Ba(),Ju=W("path"),tX=Hn().mkdirsSync,rX=kE().utimesMillisSync,Qu=Eo();function nX(r,e,t){typeof t=="function"&&(t={filter:t}),t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
32
32
 
33
33
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:s}=Qu.checkPathsSync(r,e,"copy",t);if(Qu.checkParentPathsSync(r,n,e,"copy"),t.filter&&!t.filter(r,e))return;let i=Ju.dirname(e);return Br.existsSync(i)||tX(i),ab(s,r,e,t)}function ab(r,e,t,n){let i=(n.dereference?Br.statSync:Br.lstatSync)(e);if(i.isDirectory())return lX(i,r,e,t,n);if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return iX(i,r,e,t,n);if(i.isSymbolicLink())return dX(r,e,t,n);throw i.isSocket()?new Error(`Cannot copy a socket file: ${e}`):i.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function iX(r,e,t,n,s){return e?sX(r,t,n,s):cb(r,t,n,s)}function sX(r,e,t,n){if(n.overwrite)return Br.unlinkSync(t),cb(r,e,t,n);if(n.errorOnExist)throw new Error(`'${t}' already exists`)}function cb(r,e,t,n){return Br.copyFileSync(e,t),n.preserveTimestamps&&oX(r.mode,e,t),qE(t,r.mode)}function oX(r,e,t){return aX(r)&&cX(t,r),uX(e,t)}function aX(r){return(r&128)===0}function cX(r,e){return qE(r,e|128)}function qE(r,e){return Br.chmodSync(r,e)}function uX(r,e){let t=Br.statSync(r);return rX(e,t.atime,t.mtime)}function lX(r,e,t,n,s){return e?ub(t,n,s):fX(r.mode,t,n,s)}function fX(r,e,t,n){return Br.mkdirSync(t),ub(e,t,n),qE(t,r)}function ub(r,e,t){Br.readdirSync(r).forEach(n=>pX(n,r,e,t))}function pX(r,e,t,n){let s=Ju.join(e,r),i=Ju.join(t,r);if(n.filter&&!n.filter(s,i))return;let{destStat:o}=Qu.checkPathsSync(s,i,"copy",n);return ab(o,s,i,n)}function dX(r,e,t,n){let s=Br.readlinkSync(e);if(n.dereference&&(s=Ju.resolve(process.cwd(),s)),r){let i;try{i=Br.readlinkSync(t)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Br.symlinkSync(s,t);throw o}if(n.dereference&&(i=Ju.resolve(process.cwd(),i)),Qu.isSrcSubdir(s,i))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${i}'.`);if(Qu.isSrcSubdir(i,s))throw new Error(`Cannot overwrite '${i}' with '${s}'.`);return hX(s,t)}else return Br.symlinkSync(s,t)}function hX(r,e){return Br.unlinkSync(e),Br.symlinkSync(r,e)}lb.exports=nX});var Bp=C((eAe,pb)=>{"use strict";var mX=tr().fromPromise;pb.exports={copy:mX(ob()),copySync:fb()}});var Zu=C((tAe,hb)=>{"use strict";var db=Ba(),gX=tr().fromCallback;function EX(r,e){db.rm(r,{recursive:!0,force:!0},e)}function SX(r){db.rmSync(r,{recursive:!0,force:!0})}hb.exports={remove:gX(EX),removeSync:SX}});var Ab=C((rAe,yb)=>{"use strict";var _X=tr().fromPromise,Eb=Nr(),Sb=W("path"),_b=Hn(),Tb=Zu(),mb=_X(async function(e){let t;try{t=await Eb.readdir(e)}catch{return _b.mkdirs(e)}return Promise.all(t.map(n=>Tb.remove(Sb.join(e,n))))});function gb(r){let e;try{e=Eb.readdirSync(r)}catch{return _b.mkdirsSync(r)}e.forEach(t=>{t=Sb.join(r,t),Tb.removeSync(t)})}yb.exports={emptyDirSync:gb,emptydirSync:gb,emptyDir:mb,emptydir:mb}});var Db=C((nAe,vb)=>{"use strict";var TX=tr().fromPromise,Ob=W("path"),Ni=Nr(),Cb=Hn();async function yX(r){let e;try{e=await Ni.stat(r)}catch{}if(e&&e.isFile())return;let t=Ob.dirname(r),n=null;try{n=await Ni.stat(t)}catch(s){if(s.code==="ENOENT"){await Cb.mkdirs(t),await Ni.writeFile(r,"");return}else throw s}n.isDirectory()?await Ni.writeFile(r,""):await Ni.readdir(t)}function AX(r){let e;try{e=Ni.statSync(r)}catch{}if(e&&e.isFile())return;let t=Ob.dirname(r);try{Ni.statSync(t).isDirectory()||Ni.readdirSync(t)}catch(n){if(n&&n.code==="ENOENT")Cb.mkdirsSync(t);else throw n}Ni.writeFileSync(r,"")}vb.exports={createFile:TX(yX),createFileSync:AX}});var wb=C((iAe,Pb)=>{"use strict";var OX=tr().fromPromise,xb=W("path"),is=Nr(),bb=Hn(),{pathExists:CX}=ns(),{areIdentical:Ib}=Eo();async function vX(r,e){let t;try{t=await is.lstat(e)}catch{}let n;try{n=await is.lstat(r)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}if(t&&Ib(n,t))return;let s=xb.dirname(e);await CX(s)||await bb.mkdirs(s),await is.link(r,e)}function DX(r,e){let t;try{t=is.lstatSync(e)}catch{}try{let i=is.lstatSync(r);if(t&&Ib(i,t))return}catch(i){throw i.message=i.message.replace("lstat","ensureLink"),i}let n=xb.dirname(e);return is.existsSync(n)||bb.mkdirsSync(n),is.linkSync(r,e)}Pb.exports={createLink:OX(vX),createLinkSync:DX}});var Lb=C((sAe,Rb)=>{"use strict";var ss=W("path"),el=Nr(),{pathExists:xX}=ns(),bX=tr().fromPromise;async function IX(r,e){if(ss.isAbsolute(r)){try{await el.lstat(r)}catch(i){throw i.message=i.message.replace("lstat","ensureSymlink"),i}return{toCwd:r,toDst:r}}let t=ss.dirname(e),n=ss.join(t,r);if(await xX(n))return{toCwd:n,toDst:r};try{await el.lstat(r)}catch(i){throw i.message=i.message.replace("lstat","ensureSymlink"),i}return{toCwd:r,toDst:ss.relative(t,r)}}function PX(r,e){if(ss.isAbsolute(r)){if(!el.existsSync(r))throw new Error("absolute srcpath does not exist");return{toCwd:r,toDst:r}}let t=ss.dirname(e),n=ss.join(t,r);if(el.existsSync(n))return{toCwd:n,toDst:r};if(!el.existsSync(r))throw new Error("relative srcpath does not exist");return{toCwd:r,toDst:ss.relative(t,r)}}Rb.exports={symlinkPaths:bX(IX),symlinkPathsSync:PX}});var Bb=C((oAe,Nb)=>{"use strict";var Mb=Nr(),wX=tr().fromPromise;async function RX(r,e){if(e)return e;let t;try{t=await Mb.lstat(r)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}function LX(r,e){if(e)return e;let t;try{t=Mb.lstatSync(r)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}Nb.exports={symlinkType:wX(RX),symlinkTypeSync:LX}});var Gb=C((aAe,Vb)=>{"use strict";var MX=tr().fromPromise,Ub=W("path"),gi=Nr(),{mkdirs:NX,mkdirsSync:BX}=Hn(),{symlinkPaths:UX,symlinkPathsSync:FX}=Lb(),{symlinkType:VX,symlinkTypeSync:GX}=Bb(),{pathExists:kX}=ns(),{areIdentical:Fb}=Eo();async function jX(r,e,t){let n;try{n=await gi.lstat(e)}catch{}if(n&&n.isSymbolicLink()){let[a,c]=await Promise.all([gi.stat(r),gi.stat(e)]);if(Fb(a,c))return}let s=await UX(r,e);r=s.toDst;let i=await VX(s.toCwd,t),o=Ub.dirname(e);return await kX(o)||await NX(o),gi.symlink(r,e,i)}function qX(r,e,t){let n;try{n=gi.lstatSync(e)}catch{}if(n&&n.isSymbolicLink()){let a=gi.statSync(r),c=gi.statSync(e);if(Fb(a,c))return}let s=FX(r,e);r=s.toDst,t=GX(s.toCwd,t);let i=Ub.dirname(e);return gi.existsSync(i)||BX(i),gi.symlinkSync(r,e,t)}Vb.exports={createSymlink:MX(jX),createSymlinkSync:qX}});var zb=C((cAe,Yb)=>{"use strict";var{createFile:kb,createFileSync:jb}=Db(),{createLink:qb,createLinkSync:$b}=wb(),{createSymlink:Hb,createSymlinkSync:Wb}=Gb();Yb.exports={createFile:kb,createFileSync:jb,ensureFile:kb,ensureFileSync:jb,createLink:qb,createLinkSync:$b,ensureLink:qb,ensureLinkSync:$b,createSymlink:Hb,createSymlinkSync:Wb,ensureSymlink:Hb,ensureSymlinkSync:Wb}});var Up=C((uAe,Xb)=>{function $X(r,{EOL:e=`
34
- `,finalEOL:t=!0,replacer:n=null,spaces:s}={}){let i=t?e:"";return JSON.stringify(r,n,s).replace(/\n/g,e)+i}function HX(r){return Buffer.isBuffer(r)&&(r=r.toString("utf8")),r.replace(/^\uFEFF/,"")}Xb.exports={stringify:$X,stripBom:HX}});var Zb=C((lAe,Qb)=>{var Va;try{Va=Ba()}catch{Va=W("fs")}var Fp=tr(),{stringify:Kb,stripBom:Jb}=Up();async function WX(r,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||Va,n="throws"in e?e.throws:!0,s=await Fp.fromCallback(t.readFile)(r,e);s=Jb(s);let i;try{i=JSON.parse(s,e?e.reviver:null)}catch(o){if(n)throw o.message=`${r}: ${o.message}`,o;return null}return i}var YX=Fp.fromPromise(WX);function zX(r,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||Va,n="throws"in e?e.throws:!0;try{let s=t.readFileSync(r,e);return s=Jb(s),JSON.parse(s,e.reviver)}catch(s){if(n)throw s.message=`${r}: ${s.message}`,s;return null}}async function XX(r,e,t={}){let n=t.fs||Va,s=Kb(e,t);await Fp.fromCallback(n.writeFile)(r,s,t)}var KX=Fp.fromPromise(XX);function JX(r,e,t={}){let n=t.fs||Va,s=Kb(e,t);return n.writeFileSync(r,s,t)}var QX={readFile:YX,readFileSync:zX,writeFile:KX,writeFileSync:JX};Qb.exports=QX});var tI=C((fAe,eI)=>{"use strict";var Vp=Zb();eI.exports={readJson:Vp.readFile,readJsonSync:Vp.readFileSync,writeJson:Vp.writeFile,writeJsonSync:Vp.writeFileSync}});var Gp=C((pAe,iI)=>{"use strict";var ZX=tr().fromPromise,$E=Nr(),rI=W("path"),nI=Hn(),eK=ns().pathExists;async function tK(r,e,t="utf-8"){let n=rI.dirname(r);return await eK(n)||await nI.mkdirs(n),$E.writeFile(r,e,t)}function rK(r,...e){let t=rI.dirname(r);$E.existsSync(t)||nI.mkdirsSync(t),$E.writeFileSync(r,...e)}iI.exports={outputFile:ZX(tK),outputFileSync:rK}});var oI=C((dAe,sI)=>{"use strict";var{stringify:nK}=Up(),{outputFile:iK}=Gp();async function sK(r,e,t={}){let n=nK(e,t);await iK(r,n,t)}sI.exports=sK});var cI=C((hAe,aI)=>{"use strict";var{stringify:oK}=Up(),{outputFileSync:aK}=Gp();function cK(r,e,t){let n=oK(e,t);aK(r,n,t)}aI.exports=cK});var lI=C((mAe,uI)=>{"use strict";var uK=tr().fromPromise,Ur=tI();Ur.outputJson=uK(oI());Ur.outputJsonSync=cI();Ur.outputJSON=Ur.outputJson;Ur.outputJSONSync=Ur.outputJsonSync;Ur.writeJSON=Ur.writeJson;Ur.writeJSONSync=Ur.writeJsonSync;Ur.readJSON=Ur.readJson;Ur.readJSONSync=Ur.readJsonSync;uI.exports=Ur});var mI=C((gAe,hI)=>{"use strict";var lK=Nr(),fI=W("path"),{copy:fK}=Bp(),{remove:dI}=Zu(),{mkdirp:pK}=Hn(),{pathExists:dK}=ns(),pI=Eo();async function hK(r,e,t={}){let n=t.overwrite||t.clobber||!1,{srcStat:s,isChangingCase:i=!1}=await pI.checkPaths(r,e,"move",t);await pI.checkParentPaths(r,s,e,"move");let o=fI.dirname(e);return fI.parse(o).root!==o&&await pK(o),mK(r,e,n,i)}async function mK(r,e,t,n){if(!n){if(t)await dI(e);else if(await dK(e))throw new Error("dest already exists.")}try{await lK.rename(r,e)}catch(s){if(s.code!=="EXDEV")throw s;await gK(r,e,t)}}async function gK(r,e,t){return await fK(r,e,{overwrite:t,errorOnExist:!0,preserveTimestamps:!0}),dI(r)}hI.exports=hK});var TI=C((EAe,_I)=>{"use strict";var EI=Ba(),WE=W("path"),EK=Bp().copySync,SI=Zu().removeSync,SK=Hn().mkdirpSync,gI=Eo();function _K(r,e,t){t=t||{};let n=t.overwrite||t.clobber||!1,{srcStat:s,isChangingCase:i=!1}=gI.checkPathsSync(r,e,"move",t);return gI.checkParentPathsSync(r,s,e,"move"),TK(e)||SK(WE.dirname(e)),yK(r,e,n,i)}function TK(r){let e=WE.dirname(r);return WE.parse(e).root===e}function yK(r,e,t,n){if(n)return HE(r,e,t);if(t)return SI(e),HE(r,e,t);if(EI.existsSync(e))throw new Error("dest already exists.");return HE(r,e,t)}function HE(r,e,t){try{EI.renameSync(r,e)}catch(n){if(n.code!=="EXDEV")throw n;return AK(r,e,t)}}function AK(r,e,t){return EK(r,e,{overwrite:t,errorOnExist:!0,preserveTimestamps:!0}),SI(r)}_I.exports=_K});var AI=C((SAe,yI)=>{"use strict";var OK=tr().fromPromise;yI.exports={move:OK(mI()),moveSync:TI()}});var CI=C((_Ae,OI)=>{"use strict";OI.exports={...Nr(),...Bp(),...Ab(),...zb(),...lI(),...Hn(),...AI(),...Gp(),...ns(),...Zu()}});var BI=C((QE,ZE)=>{(function(r,e){typeof QE=="object"&&typeof ZE<"u"?ZE.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self,r.tinycolor=e())})(QE,(function(){"use strict";function r(U){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},r(U)}var e=/^\s+/,t=/\s+$/;function n(U,L){if(U=U||"",L=L||{},U instanceof n)return U;if(!(this instanceof n))return new n(U,L);var N=s(U);this._originalInput=U,this._r=N.r,this._g=N.g,this._b=N.b,this._a=N.a,this._roundA=Math.round(100*this._a)/100,this._format=L.format||N.format,this._gradientType=L.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=N.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var L=this.toRgb();return(L.r*299+L.g*587+L.b*114)/1e3},getLuminance:function(){var L=this.toRgb(),N,z,oe,fe,Re,De;return N=L.r/255,z=L.g/255,oe=L.b/255,N<=.03928?fe=N/12.92:fe=Math.pow((N+.055)/1.055,2.4),z<=.03928?Re=z/12.92:Re=Math.pow((z+.055)/1.055,2.4),oe<=.03928?De=oe/12.92:De=Math.pow((oe+.055)/1.055,2.4),.2126*fe+.7152*Re+.0722*De},setAlpha:function(L){return this._a=F(L),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var L=c(this._r,this._g,this._b);return{h:L.h*360,s:L.s,v:L.v,a:this._a}},toHsvString:function(){var L=c(this._r,this._g,this._b),N=Math.round(L.h*360),z=Math.round(L.s*100),oe=Math.round(L.v*100);return this._a==1?"hsv("+N+", "+z+"%, "+oe+"%)":"hsva("+N+", "+z+"%, "+oe+"%, "+this._roundA+")"},toHsl:function(){var L=o(this._r,this._g,this._b);return{h:L.h*360,s:L.s,l:L.l,a:this._a}},toHslString:function(){var L=o(this._r,this._g,this._b),N=Math.round(L.h*360),z=Math.round(L.s*100),oe=Math.round(L.l*100);return this._a==1?"hsl("+N+", "+z+"%, "+oe+"%)":"hsla("+N+", "+z+"%, "+oe+"%, "+this._roundA+")"},toHex:function(L){return l(this._r,this._g,this._b,L)},toHexString:function(L){return"#"+this.toHex(L)},toHex8:function(L){return f(this._r,this._g,this._b,this._a,L)},toHex8String:function(L){return"#"+this.toHex8(L)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(V(this._r,255)*100)+"%",g:Math.round(V(this._g,255)*100)+"%",b:Math.round(V(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(V(this._r,255)*100)+"%, "+Math.round(V(this._g,255)*100)+"%, "+Math.round(V(this._b,255)*100)+"%)":"rgba("+Math.round(V(this._r,255)*100)+"%, "+Math.round(V(this._g,255)*100)+"%, "+Math.round(V(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:D[l(this._r,this._g,this._b,!0)]||!1},toFilter:function(L){var N="#"+p(this._r,this._g,this._b,this._a),z=N,oe=this._gradientType?"GradientType = 1, ":"";if(L){var fe=n(L);z="#"+p(fe._r,fe._g,fe._b,fe._a)}return"progid:DXImageTransform.Microsoft.gradient("+oe+"startColorstr="+N+",endColorstr="+z+")"},toString:function(L){var N=!!L;L=L||this._format;var z=!1,oe=this._a<1&&this._a>=0,fe=!N&&oe&&(L==="hex"||L==="hex6"||L==="hex3"||L==="hex4"||L==="hex8"||L==="name");return fe?L==="name"&&this._a===0?this.toName():this.toRgbString():(L==="rgb"&&(z=this.toRgbString()),L==="prgb"&&(z=this.toPercentageRgbString()),(L==="hex"||L==="hex6")&&(z=this.toHexString()),L==="hex3"&&(z=this.toHexString(!0)),L==="hex4"&&(z=this.toHex8String(!0)),L==="hex8"&&(z=this.toHex8String()),L==="name"&&(z=this.toName()),L==="hsl"&&(z=this.toHslString()),L==="hsv"&&(z=this.toHsvString()),z||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(L,N){var z=L.apply(null,[this].concat([].slice.call(N)));return this._r=z._r,this._g=z._g,this._b=z._b,this.setAlpha(z._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(L,N){return L.apply(null,[this].concat([].slice.call(N)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(y,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(T,[3])},tetrad:function(){return this._applyCombination(T,[4])}},n.fromRatio=function(U,L){if(r(U)=="object"){var N={};for(var z in U)U.hasOwnProperty(z)&&(z==="a"?N[z]=U[z]:N[z]=ie(U[z]));U=N}return n(U,L)};function s(U){var L={r:0,g:0,b:0},N=1,z=null,oe=null,fe=null,Re=!1,De=!1;return typeof U=="string"&&(U=q(U)),r(U)=="object"&&(de(U.r)&&de(U.g)&&de(U.b)?(L=i(U.r,U.g,U.b),Re=!0,De=String(U.r).substr(-1)==="%"?"prgb":"rgb"):de(U.h)&&de(U.s)&&de(U.v)?(z=ie(U.s),oe=ie(U.v),L=u(U.h,z,oe),Re=!0,De="hsv"):de(U.h)&&de(U.s)&&de(U.l)&&(z=ie(U.s),fe=ie(U.l),L=a(U.h,z,fe),Re=!0,De="hsl"),U.hasOwnProperty("a")&&(N=U.a)),N=F(N),{ok:Re,format:U.format||De,r:Math.min(255,Math.max(L.r,0)),g:Math.min(255,Math.max(L.g,0)),b:Math.min(255,Math.max(L.b,0)),a:N}}function i(U,L,N){return{r:V(U,255)*255,g:V(L,255)*255,b:V(N,255)*255}}function o(U,L,N){U=V(U,255),L=V(L,255),N=V(N,255);var z=Math.max(U,L,N),oe=Math.min(U,L,N),fe,Re,De=(z+oe)/2;if(z==oe)fe=Re=0;else{var Se=z-oe;switch(Re=De>.5?Se/(2-z-oe):Se/(z+oe),z){case U:fe=(L-N)/Se+(L<N?6:0);break;case L:fe=(N-U)/Se+2;break;case N:fe=(U-L)/Se+4;break}fe/=6}return{h:fe,s:Re,l:De}}function a(U,L,N){var z,oe,fe;U=V(U,360),L=V(L,100),N=V(N,100);function Re(b,R,$){return $<0&&($+=1),$>1&&($-=1),$<1/6?b+(R-b)*6*$:$<1/2?R:$<2/3?b+(R-b)*(2/3-$)*6:b}if(L===0)z=oe=fe=N;else{var De=N<.5?N*(1+L):N+L-N*L,Se=2*N-De;z=Re(Se,De,U+1/3),oe=Re(Se,De,U),fe=Re(Se,De,U-1/3)}return{r:z*255,g:oe*255,b:fe*255}}function c(U,L,N){U=V(U,255),L=V(L,255),N=V(N,255);var z=Math.max(U,L,N),oe=Math.min(U,L,N),fe,Re,De=z,Se=z-oe;if(Re=z===0?0:Se/z,z==oe)fe=0;else{switch(z){case U:fe=(L-N)/Se+(L<N?6:0);break;case L:fe=(N-U)/Se+2;break;case N:fe=(U-L)/Se+4;break}fe/=6}return{h:fe,s:Re,v:De}}function u(U,L,N){U=V(U,360)*6,L=V(L,100),N=V(N,100);var z=Math.floor(U),oe=U-z,fe=N*(1-L),Re=N*(1-oe*L),De=N*(1-(1-oe)*L),Se=z%6,b=[N,Re,fe,fe,De,N][Se],R=[De,N,N,Re,fe,fe][Se],$=[fe,fe,De,N,N,Re][Se];return{r:b*255,g:R*255,b:$*255}}function l(U,L,N,z){var oe=[ne(Math.round(U).toString(16)),ne(Math.round(L).toString(16)),ne(Math.round(N).toString(16))];return z&&oe[0].charAt(0)==oe[0].charAt(1)&&oe[1].charAt(0)==oe[1].charAt(1)&&oe[2].charAt(0)==oe[2].charAt(1)?oe[0].charAt(0)+oe[1].charAt(0)+oe[2].charAt(0):oe.join("")}function f(U,L,N,z,oe){var fe=[ne(Math.round(U).toString(16)),ne(Math.round(L).toString(16)),ne(Math.round(N).toString(16)),ne(Ee(z))];return oe&&fe[0].charAt(0)==fe[0].charAt(1)&&fe[1].charAt(0)==fe[1].charAt(1)&&fe[2].charAt(0)==fe[2].charAt(1)&&fe[3].charAt(0)==fe[3].charAt(1)?fe[0].charAt(0)+fe[1].charAt(0)+fe[2].charAt(0)+fe[3].charAt(0):fe.join("")}function p(U,L,N,z){var oe=[ne(Ee(z)),ne(Math.round(U).toString(16)),ne(Math.round(L).toString(16)),ne(Math.round(N).toString(16))];return oe.join("")}n.equals=function(U,L){return!U||!L?!1:n(U).toRgbString()==n(L).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function d(U,L){L=L===0?0:L||10;var N=n(U).toHsl();return N.s-=L/100,N.s=H(N.s),n(N)}function m(U,L){L=L===0?0:L||10;var N=n(U).toHsl();return N.s+=L/100,N.s=H(N.s),n(N)}function g(U){return n(U).desaturate(100)}function h(U,L){L=L===0?0:L||10;var N=n(U).toHsl();return N.l+=L/100,N.l=H(N.l),n(N)}function E(U,L){L=L===0?0:L||10;var N=n(U).toRgb();return N.r=Math.max(0,Math.min(255,N.r-Math.round(255*-(L/100)))),N.g=Math.max(0,Math.min(255,N.g-Math.round(255*-(L/100)))),N.b=Math.max(0,Math.min(255,N.b-Math.round(255*-(L/100)))),n(N)}function _(U,L){L=L===0?0:L||10;var N=n(U).toHsl();return N.l-=L/100,N.l=H(N.l),n(N)}function S(U,L){var N=n(U).toHsl(),z=(N.h+L)%360;return N.h=z<0?360+z:z,n(N)}function y(U){var L=n(U).toHsl();return L.h=(L.h+180)%360,n(L)}function T(U,L){if(isNaN(L)||L<=0)throw new Error("Argument to polyad must be a positive number");for(var N=n(U).toHsl(),z=[n(U)],oe=360/L,fe=1;fe<L;fe++)z.push(n({h:(N.h+fe*oe)%360,s:N.s,l:N.l}));return z}function I(U){var L=n(U).toHsl(),N=L.h;return[n(U),n({h:(N+72)%360,s:L.s,l:L.l}),n({h:(N+216)%360,s:L.s,l:L.l})]}function v(U,L,N){L=L||6,N=N||30;var z=n(U).toHsl(),oe=360/N,fe=[n(U)];for(z.h=(z.h-(oe*L>>1)+720)%360;--L;)z.h=(z.h+oe)%360,fe.push(n(z));return fe}function x(U,L){L=L||6;for(var N=n(U).toHsv(),z=N.h,oe=N.s,fe=N.v,Re=[],De=1/L;L--;)Re.push(n({h:z,s:oe,v:fe})),fe=(fe+De)%1;return Re}n.mix=function(U,L,N){N=N===0?0:N||50;var z=n(U).toRgb(),oe=n(L).toRgb(),fe=N/100,Re={r:(oe.r-z.r)*fe+z.r,g:(oe.g-z.g)*fe+z.g,b:(oe.b-z.b)*fe+z.b,a:(oe.a-z.a)*fe+z.a};return n(Re)},n.readability=function(U,L){var N=n(U),z=n(L);return(Math.max(N.getLuminance(),z.getLuminance())+.05)/(Math.min(N.getLuminance(),z.getLuminance())+.05)},n.isReadable=function(U,L,N){var z=n.readability(U,L),oe,fe;switch(fe=!1,oe=ke(N),oe.level+oe.size){case"AAsmall":case"AAAlarge":fe=z>=4.5;break;case"AAlarge":fe=z>=3;break;case"AAAsmall":fe=z>=7;break}return fe},n.mostReadable=function(U,L,N){var z=null,oe=0,fe,Re,De,Se;N=N||{},Re=N.includeFallbackColors,De=N.level,Se=N.size;for(var b=0;b<L.length;b++)fe=n.readability(U,L[b]),fe>oe&&(oe=fe,z=n(L[b]));return n.isReadable(U,z,{level:De,size:Se})||!Re?z:(N.includeFallbackColors=!1,n.mostReadable(U,["#fff","#000"],N))};var A=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},D=n.hexNames=P(A);function P(U){var L={};for(var N in U)U.hasOwnProperty(N)&&(L[U[N]]=N);return L}function F(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function V(U,L){X(U)&&(U="100%");var N=ee(U);return U=Math.min(L,Math.max(0,parseFloat(U))),N&&(U=parseInt(U*L,10)/100),Math.abs(U-L)<1e-6?1:U%L/parseFloat(L)}function H(U){return Math.min(1,Math.max(0,U))}function k(U){return parseInt(U,16)}function X(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function ee(U){return typeof U=="string"&&U.indexOf("%")!=-1}function ne(U){return U.length==1?"0"+U:""+U}function ie(U){return U<=1&&(U=U*100+"%"),U}function Ee(U){return Math.round(parseFloat(U)*255).toString(16)}function K(U){return k(U)/255}var le=(function(){var U="[-\\+]?\\d+%?",L="[-\\+]?\\d*\\.\\d+%?",N="(?:"+L+")|(?:"+U+")",z="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",oe="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?";return{CSS_UNIT:new RegExp(N),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+oe),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+oe),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+oe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function de(U){return!!le.CSS_UNIT.exec(U)}function q(U){U=U.replace(e,"").replace(t,"").toLowerCase();var L=!1;if(A[U])U=A[U],L=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var N;return(N=le.rgb.exec(U))?{r:N[1],g:N[2],b:N[3]}:(N=le.rgba.exec(U))?{r:N[1],g:N[2],b:N[3],a:N[4]}:(N=le.hsl.exec(U))?{h:N[1],s:N[2],l:N[3]}:(N=le.hsla.exec(U))?{h:N[1],s:N[2],l:N[3],a:N[4]}:(N=le.hsv.exec(U))?{h:N[1],s:N[2],v:N[3]}:(N=le.hsva.exec(U))?{h:N[1],s:N[2],v:N[3],a:N[4]}:(N=le.hex8.exec(U))?{r:k(N[1]),g:k(N[2]),b:k(N[3]),a:K(N[4]),format:L?"name":"hex8"}:(N=le.hex6.exec(U))?{r:k(N[1]),g:k(N[2]),b:k(N[3]),format:L?"name":"hex"}:(N=le.hex4.exec(U))?{r:k(N[1]+""+N[1]),g:k(N[2]+""+N[2]),b:k(N[3]+""+N[3]),a:K(N[4]+""+N[4]),format:L?"name":"hex8"}:(N=le.hex3.exec(U))?{r:k(N[1]+""+N[1]),g:k(N[2]+""+N[2]),b:k(N[3]+""+N[3]),format:L?"name":"hex"}:!1}function ke(U){var L,N;return U=U||{level:"AA",size:"small"},L=(U.level||"AA").toUpperCase(),N=(U.size||"small").toLowerCase(),L!=="AA"&&L!=="AAA"&&(L="AA"),N!=="small"&&N!=="large"&&(N="small"),{level:L,size:N}}return n}))});var qI=C((LAe,jI)=>{var nl=BI(),GI={r:256,g:256,b:256,a:1},kI={h:360,s:1,v:1,a:1};function rS(r,e,t){let n={};for(let s in r)r.hasOwnProperty(s)&&(n[s]=t===0?0:(e[s]-r[s])/t);return n}function nS(r,e,t,n){let s={};for(let i in e)e.hasOwnProperty(i)&&(s[i]=r[i]*t+e[i],s[i]=s[i]<0?s[i]+n[i]:n[i]!==1?s[i]%n[i]:s[i]);return s}function eS(r,e,t){let n=r.color.toRgb(),s=e.color.toRgb(),i=rS(n,s,t),o=[r.color];for(let a=1;a<t;a++){let c=nS(i,n,a,GI);o.push(nl(c))}return o}function UI(r,e,t,n){let s=r.color.toHsv(),i=e.color.toHsv();if(s.s===0||i.s===0)return eS(r,e,t);let o;if(typeof n=="boolean")o=n;else{let l=s.h<i.h&&i.h-s.h<180||s.h>i.h&&s.h-i.h>180;o=n==="long"&&l||n==="short"&&!l}let a=rS(s,i,t),c=[r.color],u;s.h<=i.h&&!o||s.h>=i.h&&o?u=i.h-s.h:o?u=360-i.h+s.h:u=360-s.h+i.h,a.h=Math.pow(-1,o?1:0)*Math.abs(u)/t;for(let l=1;l<t;l++){let f=nS(a,s,l,kI);c.push(nl(f))}return c}function FI(r,e){let t=r.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<t)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let i=1;i<t;i++){let o=(e-1)*(r[i].pos-r[i-1].pos);n.push(Math.max(1,Math.round(o)))}let s=1;for(let i=t-1;i--;)s+=n[i];for(;s!==e;)if(s<e){let i=Math.min.apply(null,n);n[n.indexOf(i)]++,s++}else{let i=Math.max.apply(null,n);n[n.indexOf(i)]--,s--}return n}function VI(r,e,t,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let s,i;for(let c=0,u=r.length;c<u-1;c++)if(e>=r[c].pos&&e<r[c+1].pos){s=r[c],i=r[c+1];break}s||(s=i=r[r.length-1]);let o=rS(s.color[t](),i.color[t](),(i.pos-s.pos)*100),a=nS(o,s.color[t](),(e-s.pos)*100,n);return nl(a)}var tS=class r{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let t=e[0].pos!==void 0,n=e.length,s=-1,i=!1;this.stops=e.map((o,a)=>{let c=o.pos!==void 0;if(t^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let u=o.color!==void 0;if(!u&&(i||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(i=!u,o={color:u?nl(o.color):null,colorLess:!u,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<s)throw new Error("Color stops positions are not ordered");s=o.pos}else o={color:nl(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(t){e.push({color:t.color,pos:1-t.pos})}),new r(e.reverse())}loop(){let e=[],t=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{t.push({color:n.color,pos:1-n.pos/2})}),new r(e.concat(t.reverse()))}rgb(e){let t=FI(this.stops,e),n=[];this.stops.forEach((s,i)=>{s.colorLess&&(s.color=eS(this.stops[i-1],this.stops[i+1],2)[1])});for(let s=0,i=this.stops.length;s<i-1;s++){let o=eS(this.stops[s],this.stops[s+1],t[s]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,t){let n=FI(this.stops,e),s=[];this.stops.forEach((i,o)=>{i.colorLess&&(i.color=UI(this.stops[o-1],this.stops[o+1],2,t)[1])});for(let i=0,o=this.stops.length;i<o-1;i++){let a=UI(this.stops[i],this.stops[i+1],n[i],t);s.splice(s.length,0,...a)}return s.push(this.stops[this.stops.length-1].color),s}css(e,t){e=e||"linear",t=t||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+t;return this.stops.forEach(function(s){n+=", "+(s.colorLess?"":s.color.toRgbString()+" ")+s.pos*100+"%"}),n+=")",n}rgbAt(e){return VI(this.stops,e,"toRgb",GI)}hsvAt(e){return VI(this.stops,e,"toHsv",kI)}};jI.exports=function(r){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');r=arguments[0]}else r=Array.prototype.slice.call(arguments);return new tS(r)}});var il=C((BAe,WI)=>{var eJ="2.0.0",tJ=Number.MAX_SAFE_INTEGER||9007199254740991,rJ=16,nJ=250,iJ=["major","premajor","minor","preminor","patch","prepatch","prerelease"];WI.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:rJ,MAX_SAFE_BUILD_LENGTH:nJ,MAX_SAFE_INTEGER:tJ,RELEASE_TYPES:iJ,SEMVER_SPEC_VERSION:eJ,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var sl=C((UAe,YI)=>{var sJ=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};YI.exports=sJ});var ja=C((Bi,zI)=>{var{MAX_SAFE_COMPONENT_LENGTH:oS,MAX_SAFE_BUILD_LENGTH:oJ,MAX_LENGTH:aJ}=il(),cJ=sl();Bi=zI.exports={};var uJ=Bi.re=[],lJ=Bi.safeRe=[],ye=Bi.src=[],Ae=Bi.t={},fJ=0,aS="[a-zA-Z0-9-]",pJ=[["\\s",1],["\\d",aJ],[aS,oJ]],dJ=r=>{for(let[e,t]of pJ)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},ze=(r,e,t)=>{let n=dJ(e),s=fJ++;cJ(r,s,e),Ae[r]=s,ye[s]=e,uJ[s]=new RegExp(e,t?"g":void 0),lJ[s]=new RegExp(n,t?"g":void 0)};ze("NUMERICIDENTIFIER","0|[1-9]\\d*");ze("NUMERICIDENTIFIERLOOSE","\\d+");ze("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${aS}*`);ze("MAINVERSION",`(${ye[Ae.NUMERICIDENTIFIER]})\\.(${ye[Ae.NUMERICIDENTIFIER]})\\.(${ye[Ae.NUMERICIDENTIFIER]})`);ze("MAINVERSIONLOOSE",`(${ye[Ae.NUMERICIDENTIFIERLOOSE]})\\.(${ye[Ae.NUMERICIDENTIFIERLOOSE]})\\.(${ye[Ae.NUMERICIDENTIFIERLOOSE]})`);ze("PRERELEASEIDENTIFIER",`(?:${ye[Ae.NUMERICIDENTIFIER]}|${ye[Ae.NONNUMERICIDENTIFIER]})`);ze("PRERELEASEIDENTIFIERLOOSE",`(?:${ye[Ae.NUMERICIDENTIFIERLOOSE]}|${ye[Ae.NONNUMERICIDENTIFIER]})`);ze("PRERELEASE",`(?:-(${ye[Ae.PRERELEASEIDENTIFIER]}(?:\\.${ye[Ae.PRERELEASEIDENTIFIER]})*))`);ze("PRERELEASELOOSE",`(?:-?(${ye[Ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ye[Ae.PRERELEASEIDENTIFIERLOOSE]})*))`);ze("BUILDIDENTIFIER",`${aS}+`);ze("BUILD",`(?:\\+(${ye[Ae.BUILDIDENTIFIER]}(?:\\.${ye[Ae.BUILDIDENTIFIER]})*))`);ze("FULLPLAIN",`v?${ye[Ae.MAINVERSION]}${ye[Ae.PRERELEASE]}?${ye[Ae.BUILD]}?`);ze("FULL",`^${ye[Ae.FULLPLAIN]}$`);ze("LOOSEPLAIN",`[v=\\s]*${ye[Ae.MAINVERSIONLOOSE]}${ye[Ae.PRERELEASELOOSE]}?${ye[Ae.BUILD]}?`);ze("LOOSE",`^${ye[Ae.LOOSEPLAIN]}$`);ze("GTLT","((?:<|>)?=?)");ze("XRANGEIDENTIFIERLOOSE",`${ye[Ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ze("XRANGEIDENTIFIER",`${ye[Ae.NUMERICIDENTIFIER]}|x|X|\\*`);ze("XRANGEPLAIN",`[v=\\s]*(${ye[Ae.XRANGEIDENTIFIER]})(?:\\.(${ye[Ae.XRANGEIDENTIFIER]})(?:\\.(${ye[Ae.XRANGEIDENTIFIER]})(?:${ye[Ae.PRERELEASE]})?${ye[Ae.BUILD]}?)?)?`);ze("XRANGEPLAINLOOSE",`[v=\\s]*(${ye[Ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ye[Ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ye[Ae.XRANGEIDENTIFIERLOOSE]})(?:${ye[Ae.PRERELEASELOOSE]})?${ye[Ae.BUILD]}?)?)?`);ze("XRANGE",`^${ye[Ae.GTLT]}\\s*${ye[Ae.XRANGEPLAIN]}$`);ze("XRANGELOOSE",`^${ye[Ae.GTLT]}\\s*${ye[Ae.XRANGEPLAINLOOSE]}$`);ze("COERCEPLAIN",`(^|[^\\d])(\\d{1,${oS}})(?:\\.(\\d{1,${oS}}))?(?:\\.(\\d{1,${oS}}))?`);ze("COERCE",`${ye[Ae.COERCEPLAIN]}(?:$|[^\\d])`);ze("COERCEFULL",ye[Ae.COERCEPLAIN]+`(?:${ye[Ae.PRERELEASE]})?(?:${ye[Ae.BUILD]})?(?:$|[^\\d])`);ze("COERCERTL",ye[Ae.COERCE],!0);ze("COERCERTLFULL",ye[Ae.COERCEFULL],!0);ze("LONETILDE","(?:~>?)");ze("TILDETRIM",`(\\s*)${ye[Ae.LONETILDE]}\\s+`,!0);Bi.tildeTrimReplace="$1~";ze("TILDE",`^${ye[Ae.LONETILDE]}${ye[Ae.XRANGEPLAIN]}$`);ze("TILDELOOSE",`^${ye[Ae.LONETILDE]}${ye[Ae.XRANGEPLAINLOOSE]}$`);ze("LONECARET","(?:\\^)");ze("CARETTRIM",`(\\s*)${ye[Ae.LONECARET]}\\s+`,!0);Bi.caretTrimReplace="$1^";ze("CARET",`^${ye[Ae.LONECARET]}${ye[Ae.XRANGEPLAIN]}$`);ze("CARETLOOSE",`^${ye[Ae.LONECARET]}${ye[Ae.XRANGEPLAINLOOSE]}$`);ze("COMPARATORLOOSE",`^${ye[Ae.GTLT]}\\s*(${ye[Ae.LOOSEPLAIN]})$|^$`);ze("COMPARATOR",`^${ye[Ae.GTLT]}\\s*(${ye[Ae.FULLPLAIN]})$|^$`);ze("COMPARATORTRIM",`(\\s*)${ye[Ae.GTLT]}\\s*(${ye[Ae.LOOSEPLAIN]}|${ye[Ae.XRANGEPLAIN]})`,!0);Bi.comparatorTrimReplace="$1$2$3";ze("HYPHENRANGE",`^\\s*(${ye[Ae.XRANGEPLAIN]})\\s+-\\s+(${ye[Ae.XRANGEPLAIN]})\\s*$`);ze("HYPHENRANGELOOSE",`^\\s*(${ye[Ae.XRANGEPLAINLOOSE]})\\s+-\\s+(${ye[Ae.XRANGEPLAINLOOSE]})\\s*$`);ze("STAR","(<|>)?=?\\s*\\*");ze("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ze("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var qp=C((FAe,XI)=>{var hJ=Object.freeze({loose:!0}),mJ=Object.freeze({}),gJ=r=>r?typeof r!="object"?hJ:r:mJ;XI.exports=gJ});var cS=C((VAe,QI)=>{var KI=/^[0-9]+$/,JI=(r,e)=>{let t=KI.test(r),n=KI.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},EJ=(r,e)=>JI(e,r);QI.exports={compareIdentifiers:JI,rcompareIdentifiers:EJ}});var yr=C((GAe,rP)=>{var $p=sl(),{MAX_LENGTH:ZI,MAX_SAFE_INTEGER:Hp}=il(),{safeRe:eP,t:tP}=ja(),SJ=qp(),{compareIdentifiers:qa}=cS(),uS=class r{constructor(e,t){if(t=SJ(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ZI)throw new TypeError(`version is longer than ${ZI} characters`);$p("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?eP[tP.LOOSE]:eP[tP.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Hp||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Hp||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Hp||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Hp)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if($p("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),qa(this.major,e.major)||qa(this.minor,e.minor)||qa(this.patch,e.patch)}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if($p("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return qa(n,s)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if($p("build compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return qa(n,s)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let i=[t,s];n===!1&&(i=[t]),qa(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};rP.exports=uS});var So=C((kAe,iP)=>{var nP=yr(),_J=(r,e,t=!1)=>{if(r instanceof nP)return r;try{return new nP(r,e)}catch(n){if(!t)return null;throw n}};iP.exports=_J});var oP=C((jAe,sP)=>{var TJ=So(),yJ=(r,e)=>{let t=TJ(r,e);return t?t.version:null};sP.exports=yJ});var cP=C((qAe,aP)=>{var AJ=So(),OJ=(r,e)=>{let t=AJ(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};aP.exports=OJ});var fP=C(($Ae,lP)=>{var uP=yr(),CJ=(r,e,t,n,s)=>{typeof t=="string"&&(s=n,n=t,t=void 0);try{return new uP(r instanceof uP?r.version:r,t).inc(e,n,s).version}catch{return null}};lP.exports=CJ});var hP=C((HAe,dP)=>{var pP=So(),vJ=(r,e)=>{let t=pP(r,null,!0),n=pP(e,null,!0),s=t.compare(n);if(s===0)return null;let i=s>0,o=i?t:n,a=i?n:t,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c)return!a.patch&&!a.minor?"major":o.patch?"patch":o.minor?"minor":"major";let l=c?"pre":"";return t.major!==n.major?l+"major":t.minor!==n.minor?l+"minor":t.patch!==n.patch?l+"patch":"prerelease"};dP.exports=vJ});var gP=C((WAe,mP)=>{var DJ=yr(),xJ=(r,e)=>new DJ(r,e).major;mP.exports=xJ});var SP=C((YAe,EP)=>{var bJ=yr(),IJ=(r,e)=>new bJ(r,e).minor;EP.exports=IJ});var TP=C((zAe,_P)=>{var PJ=yr(),wJ=(r,e)=>new PJ(r,e).patch;_P.exports=wJ});var AP=C((XAe,yP)=>{var RJ=So(),LJ=(r,e)=>{let t=RJ(r,e);return t&&t.prerelease.length?t.prerelease:null};yP.exports=LJ});var Sn=C((KAe,CP)=>{var OP=yr(),MJ=(r,e,t)=>new OP(r,t).compare(new OP(e,t));CP.exports=MJ});var DP=C((JAe,vP)=>{var NJ=Sn(),BJ=(r,e,t)=>NJ(e,r,t);vP.exports=BJ});var bP=C((QAe,xP)=>{var UJ=Sn(),FJ=(r,e)=>UJ(r,e,!0);xP.exports=FJ});var Wp=C((ZAe,PP)=>{var IP=yr(),VJ=(r,e,t)=>{let n=new IP(r,t),s=new IP(e,t);return n.compare(s)||n.compareBuild(s)};PP.exports=VJ});var RP=C((eOe,wP)=>{var GJ=Wp(),kJ=(r,e)=>r.sort((t,n)=>GJ(t,n,e));wP.exports=kJ});var MP=C((tOe,LP)=>{var jJ=Wp(),qJ=(r,e)=>r.sort((t,n)=>jJ(n,t,e));LP.exports=qJ});var ol=C((rOe,NP)=>{var $J=Sn(),HJ=(r,e,t)=>$J(r,e,t)>0;NP.exports=HJ});var Yp=C((nOe,BP)=>{var WJ=Sn(),YJ=(r,e,t)=>WJ(r,e,t)<0;BP.exports=YJ});var lS=C((iOe,UP)=>{var zJ=Sn(),XJ=(r,e,t)=>zJ(r,e,t)===0;UP.exports=XJ});var fS=C((sOe,FP)=>{var KJ=Sn(),JJ=(r,e,t)=>KJ(r,e,t)!==0;FP.exports=JJ});var zp=C((oOe,VP)=>{var QJ=Sn(),ZJ=(r,e,t)=>QJ(r,e,t)>=0;VP.exports=ZJ});var Xp=C((aOe,GP)=>{var eQ=Sn(),tQ=(r,e,t)=>eQ(r,e,t)<=0;GP.exports=tQ});var pS=C((cOe,kP)=>{var rQ=lS(),nQ=fS(),iQ=ol(),sQ=zp(),oQ=Yp(),aQ=Xp(),cQ=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return rQ(r,t,n);case"!=":return nQ(r,t,n);case">":return iQ(r,t,n);case">=":return sQ(r,t,n);case"<":return oQ(r,t,n);case"<=":return aQ(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};kP.exports=cQ});var qP=C((uOe,jP)=>{var uQ=yr(),lQ=So(),{safeRe:Kp,t:Jp}=ja(),fQ=(r,e)=>{if(r instanceof uQ)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?Kp[Jp.COERCEFULL]:Kp[Jp.COERCE]);else{let c=e.includePrerelease?Kp[Jp.COERCERTLFULL]:Kp[Jp.COERCERTL],u;for(;(u=c.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||u.index+u[0].length!==t.index+t[0].length)&&(t=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(t===null)return null;let n=t[2],s=t[3]||"0",i=t[4]||"0",o=e.includePrerelease&&t[5]?`-${t[5]}`:"",a=e.includePrerelease&&t[6]?`+${t[6]}`:"";return lQ(`${n}.${s}.${i}${o}${a}`,e)};jP.exports=fQ});var HP=C((lOe,$P)=>{var dS=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,t)}return this}};$P.exports=dS});var _n=C((fOe,XP)=>{var pQ=/\s+/g,hS=class r{constructor(e,t){if(t=hQ(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof mS)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(pQ," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!YP(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&yQ(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&_Q)|(this.options.loose&&TQ))+":"+e,s=WP.get(n);if(s)return s;let i=this.options.loose,o=i?Wr[Fr.HYPHENRANGELOOSE]:Wr[Fr.HYPHENRANGE];e=e.replace(o,wQ(this.options.includePrerelease)),yt("hyphen replace",e),e=e.replace(Wr[Fr.COMPARATORTRIM],gQ),yt("comparator trim",e),e=e.replace(Wr[Fr.TILDETRIM],EQ),yt("tilde trim",e),e=e.replace(Wr[Fr.CARETTRIM],SQ),yt("caret trim",e);let a=e.split(" ").map(f=>AQ(f,this.options)).join(" ").split(/\s+/).map(f=>PQ(f,this.options));i&&(a=a.filter(f=>(yt("loose invalid filter",f,this.options),!!f.match(Wr[Fr.COMPARATORLOOSE])))),yt("range list",a);let c=new Map,u=a.map(f=>new mS(f,this.options));for(let f of u){if(YP(f))return[f];c.set(f.value,f)}c.size>1&&c.has("")&&c.delete("");let l=[...c.values()];return WP.set(n,l),l}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>zP(n,t)&&e.set.some(s=>zP(s,t)&&n.every(i=>s.every(o=>i.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new mQ(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(RQ(this.set[t],e,this.options))return!0;return!1}};XP.exports=hS;var dQ=HP(),WP=new dQ,hQ=qp(),mS=al(),yt=sl(),mQ=yr(),{safeRe:Wr,t:Fr,comparatorTrimReplace:gQ,tildeTrimReplace:EQ,caretTrimReplace:SQ}=ja(),{FLAG_INCLUDE_PRERELEASE:_Q,FLAG_LOOSE:TQ}=il(),YP=r=>r.value==="<0.0.0-0",yQ=r=>r.value==="",zP=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},AQ=(r,e)=>(yt("comp",r,e),r=vQ(r,e),yt("caret",r),r=OQ(r,e),yt("tildes",r),r=xQ(r,e),yt("xrange",r),r=IQ(r,e),yt("stars",r),r),Vr=r=>!r||r.toLowerCase()==="x"||r==="*",OQ=(r,e)=>r.trim().split(/\s+/).map(t=>CQ(t,e)).join(" "),CQ=(r,e)=>{let t=e.loose?Wr[Fr.TILDELOOSE]:Wr[Fr.TILDE];return r.replace(t,(n,s,i,o,a)=>{yt("tilde",r,n,s,i,o,a);let c;return Vr(s)?c="":Vr(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:Vr(o)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:a?(yt("replaceTilde pr",a),c=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,yt("tilde return",c),c})},vQ=(r,e)=>r.trim().split(/\s+/).map(t=>DQ(t,e)).join(" "),DQ=(r,e)=>{yt("caret",r,e);let t=e.loose?Wr[Fr.CARETLOOSE]:Wr[Fr.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,o,a,c)=>{yt("caret",r,s,i,o,a,c);let u;return Vr(i)?u="":Vr(o)?u=`>=${i}.0.0${n} <${+i+1}.0.0-0`:Vr(a)?i==="0"?u=`>=${i}.${o}.0${n} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.0${n} <${+i+1}.0.0-0`:c?(yt("replaceCaret pr",c),i==="0"?o==="0"?u=`>=${i}.${o}.${a}-${c} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a}-${c} <${+i+1}.0.0-0`):(yt("no pr"),i==="0"?o==="0"?u=`>=${i}.${o}.${a}${n} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a}${n} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),yt("caret return",u),u})},xQ=(r,e)=>(yt("replaceXRanges",r,e),r.split(/\s+/).map(t=>bQ(t,e)).join(" ")),bQ=(r,e)=>{r=r.trim();let t=e.loose?Wr[Fr.XRANGELOOSE]:Wr[Fr.XRANGE];return r.replace(t,(n,s,i,o,a,c)=>{yt("xRange",r,n,s,i,o,a,c);let u=Vr(i),l=u||Vr(o),f=l||Vr(a),p=f;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&p?(l&&(o=0),a=0,s===">"?(s=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",l?i=+i+1:o=+o+1),s==="<"&&(c="-0"),n=`${s+i}.${o}.${a}${c}`):l?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:f&&(n=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),yt("xRange return",n),n})},IQ=(r,e)=>(yt("replaceStars",r,e),r.trim().replace(Wr[Fr.STAR],"")),PQ=(r,e)=>(yt("replaceGTE0",r,e),r.trim().replace(Wr[e.includePrerelease?Fr.GTE0PRE:Fr.GTE0],"")),wQ=r=>(e,t,n,s,i,o,a,c,u,l,f,p)=>(Vr(n)?t="":Vr(s)?t=`>=${n}.0.0${r?"-0":""}`:Vr(i)?t=`>=${n}.${s}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,Vr(u)?c="":Vr(l)?c=`<${+u+1}.0.0-0`:Vr(f)?c=`<${u}.${+l+1}.0-0`:p?c=`<=${u}.${l}.${f}-${p}`:r?c=`<${u}.${l}.${+f+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),RQ=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(yt(r[n].semver),r[n].semver!==mS.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var al=C((pOe,tw)=>{var cl=Symbol("SemVer ANY"),SS=class r{static get ANY(){return cl}constructor(e,t){if(t=KP(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),ES("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===cl?this.value="":this.value=this.operator+this.semver.version,ES("comp",this)}parse(e){let t=this.options.loose?JP[QP.COMPARATORLOOSE]:JP[QP.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new ZP(n[2],this.options.loose):this.semver=cl}toString(){return this.value}test(e){if(ES("Comparator.test",e,this.options.loose),this.semver===cl||e===cl)return!0;if(typeof e=="string")try{e=new ZP(e,this.options)}catch{return!1}return gS(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new ew(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new ew(this.value,t).test(e.semver):(t=KP(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||gS(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||gS(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};tw.exports=SS;var KP=qp(),{safeRe:JP,t:QP}=ja(),gS=pS(),ES=sl(),ZP=yr(),ew=_n()});var ul=C((dOe,rw)=>{var LQ=_n(),MQ=(r,e,t)=>{try{e=new LQ(e,t)}catch{return!1}return e.test(r)};rw.exports=MQ});var iw=C((hOe,nw)=>{var NQ=_n(),BQ=(r,e)=>new NQ(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));nw.exports=BQ});var ow=C((mOe,sw)=>{var UQ=yr(),FQ=_n(),VQ=(r,e,t)=>{let n=null,s=null,i=null;try{i=new FQ(e,t)}catch{return null}return r.forEach(o=>{i.test(o)&&(!n||s.compare(o)===-1)&&(n=o,s=new UQ(n,t))}),n};sw.exports=VQ});var cw=C((gOe,aw)=>{var GQ=yr(),kQ=_n(),jQ=(r,e,t)=>{let n=null,s=null,i=null;try{i=new kQ(e,t)}catch{return null}return r.forEach(o=>{i.test(o)&&(!n||s.compare(o)===1)&&(n=o,s=new GQ(n,t))}),n};aw.exports=jQ});var fw=C((EOe,lw)=>{var _S=yr(),qQ=_n(),uw=ol(),$Q=(r,e)=>{r=new qQ(r,e);let t=new _S("0.0.0");if(r.test(t)||(t=new _S("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let s=r.set[n],i=null;s.forEach(o=>{let a=new _S(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||uw(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!t||uw(t,i))&&(t=i)}return t&&r.test(t)?t:null};lw.exports=$Q});var dw=C((SOe,pw)=>{var HQ=_n(),WQ=(r,e)=>{try{return new HQ(r,e).range||"*"}catch{return null}};pw.exports=WQ});var Qp=C((_Oe,Ew)=>{var YQ=yr(),gw=al(),{ANY:zQ}=gw,XQ=_n(),KQ=ul(),hw=ol(),mw=Yp(),JQ=Xp(),QQ=zp(),ZQ=(r,e,t,n)=>{r=new YQ(r,n),e=new XQ(e,n);let s,i,o,a,c;switch(t){case">":s=hw,i=JQ,o=mw,a=">",c=">=";break;case"<":s=mw,i=QQ,o=hw,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(KQ(r,e,n))return!1;for(let u=0;u<e.set.length;++u){let l=e.set[u],f=null,p=null;if(l.forEach(d=>{d.semver===zQ&&(d=new gw(">=0.0.0")),f=f||d,p=p||d,s(d.semver,f.semver,n)?f=d:o(d.semver,p.semver,n)&&(p=d)}),f.operator===a||f.operator===c||(!p.operator||p.operator===a)&&i(r,p.semver))return!1;if(p.operator===c&&o(r,p.semver))return!1}return!0};Ew.exports=ZQ});var _w=C((TOe,Sw)=>{var eZ=Qp(),tZ=(r,e,t)=>eZ(r,e,">",t);Sw.exports=tZ});var yw=C((yOe,Tw)=>{var rZ=Qp(),nZ=(r,e,t)=>rZ(r,e,"<",t);Tw.exports=nZ});var Cw=C((AOe,Ow)=>{var Aw=_n(),iZ=(r,e,t)=>(r=new Aw(r,t),e=new Aw(e,t),r.intersects(e,t));Ow.exports=iZ});var Dw=C((OOe,vw)=>{var sZ=ul(),oZ=Sn();vw.exports=(r,e,t)=>{let n=[],s=null,i=null,o=r.sort((l,f)=>oZ(l,f,t));for(let l of o)sZ(l,e,t)?(i=l,s||(s=l)):(i&&n.push([s,i]),i=null,s=null);s&&n.push([s,null]);let a=[];for(let[l,f]of n)l===f?a.push(l):!f&&l===o[0]?a.push("*"):f?l===o[0]?a.push(`<=${f}`):a.push(`${l} - ${f}`):a.push(`>=${l}`);let c=a.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return c.length<u.length?c:e}});var Rw=C((COe,ww)=>{var xw=_n(),yS=al(),{ANY:TS}=yS,ll=ul(),AS=Sn(),aZ=(r,e,t={})=>{if(r===e)return!0;r=new xw(r,t),e=new xw(e,t);let n=!1;e:for(let s of r.set){for(let i of e.set){let o=uZ(s,i,t);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},cZ=[new yS(">=0.0.0-0")],bw=[new yS(">=0.0.0")],uZ=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===TS){if(e.length===1&&e[0].semver===TS)return!0;t.includePrerelease?r=cZ:r=bw}if(e.length===1&&e[0].semver===TS){if(t.includePrerelease)return!0;e=bw}let n=new Set,s,i;for(let d of r)d.operator===">"||d.operator===">="?s=Iw(s,d,t):d.operator==="<"||d.operator==="<="?i=Pw(i,d,t):n.add(d.semver);if(n.size>1)return null;let o;if(s&&i){if(o=AS(s.semver,i.semver,t),o>0)return null;if(o===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let d of n){if(s&&!ll(d,String(s),t)||i&&!ll(d,String(i),t))return null;for(let m of e)if(!ll(d,String(m),t))return!1;return!0}let a,c,u,l,f=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,p=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;f&&f.prerelease.length===1&&i.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let d of e){if(l=l||d.operator===">"||d.operator===">=",u=u||d.operator==="<"||d.operator==="<=",s){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator===">"||d.operator===">="){if(a=Iw(s,d,t),a===d&&a!==s)return!1}else if(s.operator===">="&&!ll(s.semver,String(d),t))return!1}if(i){if(f&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===f.major&&d.semver.minor===f.minor&&d.semver.patch===f.patch&&(f=!1),d.operator==="<"||d.operator==="<="){if(c=Pw(i,d,t),c===d&&c!==i)return!1}else if(i.operator==="<="&&!ll(i.semver,String(d),t))return!1}if(!d.operator&&(i||s)&&o!==0)return!1}return!(s&&u&&!i&&o!==0||i&&l&&!s&&o!==0||p||f)},Iw=(r,e,t)=>{if(!r)return e;let n=AS(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},Pw=(r,e,t)=>{if(!r)return e;let n=AS(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};ww.exports=aZ});var Bw=C((vOe,Nw)=>{var OS=ja(),Lw=il(),lZ=yr(),Mw=cS(),fZ=So(),pZ=oP(),dZ=cP(),hZ=fP(),mZ=hP(),gZ=gP(),EZ=SP(),SZ=TP(),_Z=AP(),TZ=Sn(),yZ=DP(),AZ=bP(),OZ=Wp(),CZ=RP(),vZ=MP(),DZ=ol(),xZ=Yp(),bZ=lS(),IZ=fS(),PZ=zp(),wZ=Xp(),RZ=pS(),LZ=qP(),MZ=al(),NZ=_n(),BZ=ul(),UZ=iw(),FZ=ow(),VZ=cw(),GZ=fw(),kZ=dw(),jZ=Qp(),qZ=_w(),$Z=yw(),HZ=Cw(),WZ=Dw(),YZ=Rw();Nw.exports={parse:fZ,valid:pZ,clean:dZ,inc:hZ,diff:mZ,major:gZ,minor:EZ,patch:SZ,prerelease:_Z,compare:TZ,rcompare:yZ,compareLoose:AZ,compareBuild:OZ,sort:CZ,rsort:vZ,gt:DZ,lt:xZ,eq:bZ,neq:IZ,gte:PZ,lte:wZ,cmp:RZ,coerce:LZ,Comparator:MZ,Range:NZ,satisfies:BZ,toComparators:UZ,maxSatisfying:FZ,minSatisfying:VZ,minVersion:GZ,validRange:kZ,outside:jZ,gtr:qZ,ltr:$Z,intersects:HZ,simplifyRange:WZ,subset:YZ,SemVer:lZ,re:OS.re,src:OS.src,tokens:OS.t,SEMVER_SPEC_VERSION:Lw.SEMVER_SPEC_VERSION,RELEASE_TYPES:Lw.RELEASE_TYPES,compareIdentifiers:Mw.compareIdentifiers,rcompareIdentifiers:Mw.rcompareIdentifiers}});var kw=C((DOe,Gw)=>{"use strict";var vS=Object.defineProperty,zZ=Object.getOwnPropertyDescriptor,XZ=Object.getOwnPropertyNames,KZ=Object.prototype.hasOwnProperty,JZ=(r,e)=>{for(var t in e)vS(r,t,{get:e[t],enumerable:!0})},QZ=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of XZ(e))!KZ.call(r,s)&&s!==t&&vS(r,s,{get:()=>e[s],enumerable:!(n=zZ(e,s))||n.enumerable});return r},ZZ=r=>QZ(vS({},"__esModule",{value:!0}),r),Fw={};JZ(Fw,{ANSI_RESET:()=>ree,isSupported:()=>iee,terminalLink:()=>nee});Gw.exports=ZZ(Fw);var eee=["DOMTERM","WT_SESSION","KONSOLE_VERSION"];function Uw(r){let[e=0,t=0,n=0]=r.split(".").map(Number);return{major:e,minor:t,patch:n}}function ed(r){return process.env[r]!==void 0}function Zp(r){return process.env[r]||""}function fl(r,e){return ed(r)&&e.includes(Zp(r))}function tee(r){return r.some(e=>ed(e))}function Vw(){if(fl("TERMI_LINK_HYPERLINK",["1","true","always","enabled"]))return!0;if(fl("TERMI_LINK_HYPERLINK",["0","false","never","disabled"]))return!1;if(ed("VTE_VERSION"))return Uw(Zp("VTE_VERSION")).major>5e3;if(ed("TERM_PROGRAM")){let r=Uw(Zp("TERM_PROGRAM_VERSION"));switch(Zp("TERM_PROGRAM")){case"iTerm.app":return r.major>3||r.major===3&&r.minor>=1;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72;case"ghostty":return r.major>=1;case"terminology":return r.major>=1&&r.minor>=2;case"Hyper":return r.major>=3;case"alacritty":return r.major>=0&&r.minor>=11;case"kitty":return r.major>=0&&r.minor>=19;default:return!1}}return!!(fl("TERM",["xterm-kitty","alacritty","alacritty-direct","xterm-ghostty"])||fl("COLORTERM",["xfce4-terminal"])||fl("TERMINAL_EMULATOR",["JetBrains-JediTerm"])||tee(eee))}var ree="\x1B[0m";function CS(r){return r.replace(/[\x00-\x1F\x7F]/g,"")}function nee(r,e,t){let{fallback:n=null}=t||{};if(Vw()){let s=CS(e);return`\x1B]8;;${s}\x07${r||s}\x1B]8;;\x07`}return n==null?r?`${r} (${CS(e)})`:`${CS(e)}`:n===!1?"":n(r,e)}function iee(){return Vw()}});var $w=C((xOe,qw)=>{"use strict";var see=W("os"),jw=see.homedir();qw.exports=r=>{if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);return jw?r.replace(/^~(?=$|\/|\\)/,jw):r}});var fR=C((x1e,lR)=>{"use strict";var MS=W("fs"),jee=W("util"),qee=W("path"),zn,NS=class{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles=typeof e.updateFiles=="boolean"?e.updateFiles:!0,this.locale=e.locale||"en",this.fallbackToLanguage=typeof e.fallbackToLanguage=="boolean"?e.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let t=e.shift(),n=function(){};return typeof e[e.length-1]=="function"&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),zn.format.apply(zn.format,[this.cache[this.locale][t]||t].concat(e))}__n(){let e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),s=e.shift(),i=function(){};typeof e[e.length-1]=="function"&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let o=s===1?t:n;this.cache[this.locale][t]&&(o=this.cache[this.locale][t][s===1?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();let a=[o];return~o.indexOf("%d")&&a.push(s),zn.format.apply(zn.format,a.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach(function(s,i){let o=t[i+1];n+=s,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let e=this,t=this.writeQueue[0],n=t.directory,s=t.locale,i=t.cb,o=this._resolveLocaleFile(n,s),a=JSON.stringify(this.cache[s],null,2);zn.fs.writeFile(o,a,"utf-8",function(c){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(c)})}_readLocaleFile(){let e={},t=this._resolveLocaleFile(this.directory,this.locale);try{zn.fs.readFileSync&&(e=JSON.parse(zn.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),n.code==="ENOENT")e={};else throw n}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=zn.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){let s=zn.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(s)&&(n=s)}return n}_fileExistsSync(e){return zn.exists(e)}};function $ee(r,e){zn=e;let t=new NS(r);return{__:t.__.bind(t),__n:t.__n.bind(t),setLocale:t.setLocale.bind(t),getLocale:t.getLocale.bind(t),updateLocale:t.updateLocale.bind(t),locale:t.locale}}var Hee={fs:{readFileSync:MS.readFileSync,writeFile:MS.writeFile},format:jee.format,resolve:qee.resolve,exists:r=>{try{return MS.statSync(r).isFile()}catch{return!1}}},Wee=r=>$ee(r,Hee);lR.exports=Wee});var kS=C((b1e,_R)=>{"use strict";var Yee=W("util"),pR=W("path"),zee=W("fs");function ml(r){if(r!==r.toLowerCase()&&r!==r.toUpperCase()||(r=r.toLowerCase()),r.indexOf("-")===-1&&r.indexOf("_")===-1)return r;{let t="",n=!1,s=r.match(/^-+/);for(let i=s?s[0].length:0;i<r.length;i++){let o=r.charAt(i);n&&(n=!1,o=o.toUpperCase()),i!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(t+=o)}return t}}function gR(r,e){let t=r.toLowerCase();e=e||"-";let n="";for(let s=0;s<r.length;s++){let i=t.charAt(s),o=r.charAt(s);i!==o&&s>0?n+=`${e}${t.charAt(s)}`:n+=o}return n}function ER(r){return r==null?!1:typeof r=="number"||/^0x[0-9a-f]+$/i.test(r)?!0:/^0[^.]/.test(r)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(r)}function Xee(r){if(Array.isArray(r))return r.map(o=>typeof o!="string"?o+"":o);r=r.trim();let e=0,t=null,n=null,s=null,i=[];for(let o=0;o<r.length;o++){if(t=n,n=r.charAt(o),n===" "&&!s){t!==" "&&e++;continue}n===s?s=null:(n==="'"||n==='"')&&!s&&(s=n),i[e]||(i[e]=""),i[e]+=n}return i}var Xn;(function(r){r.BOOLEAN="boolean",r.STRING="string",r.NUMBER="number",r.ARRAY="array"})(Xn||(Xn={}));var Fi,GS=class{constructor(e){Fi=e}parse(e,t){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),s=Xee(e),i=typeof e=="string",o=Kee(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),c=Object.assign(Object.create(null),n.default),u=n.configObjects||[],l=n.envPrefix,f=a["populate--"],p=f?"--":"_",d=Object.create(null),m=Object.create(null),g=n.__||Fi.format,h={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},E=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,_=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(b){let R=typeof b=="object"?b.key:b,$=Object.keys(b).map(function(G){return{boolean:"bools",string:"strings",number:"numbers"}[G]}).filter(Boolean).pop();$&&(h[$][R]=!0),h.arrays[R]=!0,h.keys.push(R)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(b){h.bools[b]=!0,h.keys.push(b)}),[].concat(n.string||[]).filter(Boolean).forEach(function(b){h.strings[b]=!0,h.keys.push(b)}),[].concat(n.number||[]).filter(Boolean).forEach(function(b){h.numbers[b]=!0,h.keys.push(b)}),[].concat(n.count||[]).filter(Boolean).forEach(function(b){h.counts[b]=!0,h.keys.push(b)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(b){h.normalize[b]=!0,h.keys.push(b)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([b,R])=>{typeof R=="number"&&(h.nargs[b]=R,h.keys.push(b))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([b,R])=>{typeof R=="function"&&(h.coercions[b]=R,h.keys.push(b))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(b){h.configs[b]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([b,R])=>{(typeof R=="boolean"||typeof R=="function")&&(h.configs[b]=R)})),de(n.key,o,n.default,h.arrays),Object.keys(c).forEach(function(b){(h.aliases[b]||[]).forEach(function(R){c[R]=c[b]})});let S=null;Se();let y=[],T=Object.assign(Object.create(null),{_:[]}),I={};for(let b=0;b<s.length;b++){let R=s[b],$=R.replace(/^-{3,}/,"---"),G,w,Z,J,se,Je;if(R!=="--"&&/^-/.test(R)&&N(R))v(R);else if($.match(/^---+(=|$)/)){v(R);continue}else if(R.match(/^--.+=/)||!a["short-option-groups"]&&R.match(/^-.+=/))J=R.match(/^--?([^=]+)=([\s\S]*)$/),J!==null&&Array.isArray(J)&&J.length>=3&&(q(J[1],h.arrays)?b=A(b,J[1],s,J[2]):q(J[1],h.nargs)!==!1?b=x(b,J[1],s,J[2]):D(J[1],J[2],!0));else if(R.match(_)&&a["boolean-negation"])J=R.match(_),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],D(w,q(w,h.arrays)?[!1]:!1));else if(R.match(/^--.+/)||!a["short-option-groups"]&&R.match(/^-[^-]+/))J=R.match(/^--?(.+)/),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],q(w,h.arrays)?b=A(b,w,s):q(w,h.nargs)!==!1?b=x(b,w,s):(se=s[b+1],se!==void 0&&(!se.match(/^-/)||se.match(E))&&!q(w,h.bools)&&!q(w,h.counts)||/^(true|false)$/.test(se)?(D(w,se),b++):D(w,oe(w))));else if(R.match(/^-.\..+=/))J=R.match(/^-([^=]+)=([\s\S]*)$/),J!==null&&Array.isArray(J)&&J.length>=3&&D(J[1],J[2]);else if(R.match(/^-.\..+/)&&!R.match(E))se=s[b+1],J=R.match(/^-(.\..+)/),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],se!==void 0&&!se.match(/^-/)&&!q(w,h.bools)&&!q(w,h.counts)?(D(w,se),b++):D(w,oe(w)));else if(R.match(/^-[^-]+/)&&!R.match(E)){Z=R.slice(1,-1).split(""),G=!1;for(let st=0;st<Z.length;st++){if(se=R.slice(st+2),Z[st+1]&&Z[st+1]==="="){Je=R.slice(st+3),w=Z[st],q(w,h.arrays)?b=A(b,w,s,Je):q(w,h.nargs)!==!1?b=x(b,w,s,Je):D(w,Je),G=!0;break}if(se==="-"){D(Z[st],se);continue}if(/[A-Za-z]/.test(Z[st])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(se)&&q(se,h.bools)===!1){D(Z[st],se),G=!0;break}if(Z[st+1]&&Z[st+1].match(/\W/)){D(Z[st],se),G=!0;break}else D(Z[st],oe(Z[st]))}w=R.slice(-1)[0],!G&&w!=="-"&&(q(w,h.arrays)?b=A(b,w,s):q(w,h.nargs)!==!1?b=x(b,w,s):(se=s[b+1],se!==void 0&&(!/^(-|--)[^-]/.test(se)||se.match(E))&&!q(w,h.bools)&&!q(w,h.counts)||/^(true|false)$/.test(se)?(D(w,se),b++):D(w,oe(w))))}else if(R.match(/^-[0-9]$/)&&R.match(E)&&q(R.slice(1),h.bools))w=R.slice(1),D(w,oe(w));else if(R==="--"){y=s.slice(b+1);break}else if(a["halt-at-non-option"]){y=s.slice(b);break}else v(R)}ee(T,!0),ee(T,!1),H(T),X(),Ee(T,h.aliases,c,!0),ne(T),a["set-placeholder-key"]&&ie(T),Object.keys(h.counts).forEach(function(b){K(T,b.split("."))||D(b,0)}),f&&y.length&&(T[p]=[]),y.forEach(function(b){T[p].push(b)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(T).filter(b=>b!=="--"&&b.includes("-")).forEach(b=>{delete T[b]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(b=>o[b])).forEach(b=>{a["camel-case-expansion"]&&b.includes("-")&&delete T[b.split(".").map(R=>ml(R)).join(".")],delete T[b]});function v(b){let R=V("_",b);(typeof R=="string"||typeof R=="number")&&T._.push(R)}function x(b,R,$,G){let w,Z=q(R,h.nargs);if(Z=typeof Z!="number"||isNaN(Z)?1:Z,Z===0)return De(G)||(S=Error(g("Argument unexpected for: %s",R))),D(R,oe(R)),b;let J=De(G)?0:1;if(a["nargs-eats-options"])$.length-(b+1)+J<Z&&(S=Error(g("Not enough arguments following: %s",R))),J=Z;else{for(w=b+1;w<$.length&&(!$[w].match(/^-[^0-9]/)||$[w].match(E)||N($[w]));w++)J++;J<Z&&(S=Error(g("Not enough arguments following: %s",R)))}let se=Math.min(J,Z);for(!De(G)&&se>0&&(D(R,G),se--),w=b+1;w<se+b+1;w++)D(R,$[w]);return b+se}function A(b,R,$,G){let w=[],Z=G||$[b+1],J=q(R,h.nargs);if(q(R,h.bools)&&!/^(true|false)$/.test(Z))w.push(!0);else if(De(Z)||De(G)&&/^-/.test(Z)&&!E.test(Z)&&!N(Z)){if(c[R]!==void 0){let se=c[R];w=Array.isArray(se)?se:[se]}}else{De(G)||w.push(F(R,G,!0));for(let se=b+1;se<$.length&&!(!a["greedy-arrays"]&&w.length>0||J&&typeof J=="number"&&w.length>=J||(Z=$[se],/^-/.test(Z)&&!E.test(Z)&&!N(Z)));se++)b=se,w.push(F(R,Z,i))}return typeof J=="number"&&(J&&w.length<J||isNaN(J)&&w.length===0)&&(S=Error(g("Not enough arguments following: %s",R))),D(R,w),b}function D(b,R,$=i){if(/-/.test(b)&&a["camel-case-expansion"]){let Z=b.split(".").map(function(J){return ml(J)}).join(".");P(b,Z)}let G=F(b,R,$),w=b.split(".");le(T,w,G),h.aliases[b]&&h.aliases[b].forEach(function(Z){let J=Z.split(".");le(T,J,G)}),w.length>1&&a["dot-notation"]&&(h.aliases[w[0]]||[]).forEach(function(Z){let J=Z.split("."),se=[].concat(w);se.shift(),J=J.concat(se),(h.aliases[b]||[]).includes(J.join("."))||le(T,J,G)}),q(b,h.normalize)&&!q(b,h.arrays)&&[b].concat(h.aliases[b]||[]).forEach(function(J){Object.defineProperty(I,J,{enumerable:!0,get(){return R},set(se){R=typeof se=="string"?Fi.normalize(se):se}})})}function P(b,R){h.aliases[b]&&h.aliases[b].length||(h.aliases[b]=[R],d[R]=!0),h.aliases[R]&&h.aliases[R].length||P(R,b)}function F(b,R,$){$&&(R=Jee(R)),(q(b,h.bools)||q(b,h.counts))&&typeof R=="string"&&(R=R==="true");let G=Array.isArray(R)?R.map(function(w){return V(b,w)}):V(b,R);return q(b,h.counts)&&(De(G)||typeof G=="boolean")&&(G=BS()),q(b,h.normalize)&&q(b,h.arrays)&&(Array.isArray(R)?G=R.map(w=>Fi.normalize(w)):G=Fi.normalize(R)),G}function V(b,R){return!a["parse-positional-numbers"]&&b==="_"||!q(b,h.strings)&&!q(b,h.bools)&&!Array.isArray(R)&&(ER(R)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${R}`)))||!De(R)&&q(b,h.numbers))&&(R=Number(R)),R}function H(b){let R=Object.create(null);Ee(R,h.aliases,c),Object.keys(h.configs).forEach(function($){let G=b[$]||R[$];if(G)try{let w=null,Z=Fi.resolve(Fi.cwd(),G),J=h.configs[$];if(typeof J=="function"){try{w=J(Z)}catch(se){w=se}if(w instanceof Error){S=w;return}}else w=Fi.require(Z);k(w)}catch(w){w.name==="PermissionDenied"?S=w:b[$]&&(S=Error(g("Invalid JSON config file: %s",G)))}})}function k(b,R){Object.keys(b).forEach(function($){let G=b[$],w=R?R+"."+$:$;typeof G=="object"&&G!==null&&!Array.isArray(G)&&a["dot-notation"]?k(G,w):(!K(T,w.split("."))||q(w,h.arrays)&&a["combine-arrays"])&&D(w,G)})}function X(){typeof u<"u"&&u.forEach(function(b){k(b)})}function ee(b,R){if(typeof l>"u")return;let $=typeof l=="string"?l:"",G=Fi.env();Object.keys(G).forEach(function(w){if($===""||w.lastIndexOf($,0)===0){let Z=w.split("__").map(function(J,se){return se===0&&(J=J.substring($.length)),ml(J)});(R&&h.configs[Z.join(".")]||!R)&&!K(b,Z)&&D(Z.join("."),G[w])}})}function ne(b){let R,$=new Set;Object.keys(b).forEach(function(G){if(!$.has(G)&&(R=q(G,h.coercions),typeof R=="function"))try{let w=V(G,R(b[G]));[].concat(h.aliases[G]||[],G).forEach(Z=>{$.add(Z),b[Z]=w})}catch(w){S=w}})}function ie(b){return h.keys.forEach(R=>{~R.indexOf(".")||typeof b[R]>"u"&&(b[R]=void 0)}),b}function Ee(b,R,$,G=!1){Object.keys($).forEach(function(w){K(b,w.split("."))||(le(b,w.split("."),$[w]),G&&(m[w]=!0),(R[w]||[]).forEach(function(Z){K(b,Z.split("."))||le(b,Z.split("."),$[w])}))})}function K(b,R){let $=b;a["dot-notation"]||(R=[R.join(".")]),R.slice(0,-1).forEach(function(w){$=$[w]||{}});let G=R[R.length-1];return typeof $!="object"?!1:G in $}function le(b,R,$){let G=b;a["dot-notation"]||(R=[R.join(".")]),R.slice(0,-1).forEach(function(Je){Je=dR(Je),typeof G=="object"&&G[Je]===void 0&&(G[Je]={}),typeof G[Je]!="object"||Array.isArray(G[Je])?(Array.isArray(G[Je])?G[Je].push({}):G[Je]=[G[Je],{}],G=G[Je][G[Je].length-1]):G=G[Je]});let w=dR(R[R.length-1]),Z=q(R.join("."),h.arrays),J=Array.isArray($),se=a["duplicate-arguments-array"];!se&&q(w,h.nargs)&&(se=!0,(!De(G[w])&&h.nargs[w]===1||Array.isArray(G[w])&&G[w].length===h.nargs[w])&&(G[w]=void 0)),$===BS()?G[w]=BS(G[w]):Array.isArray(G[w])?se&&Z&&J?G[w]=a["flatten-duplicate-arrays"]?G[w].concat($):(Array.isArray(G[w][0])?G[w]:[G[w]]).concat([$]):!se&&!!Z==!!J?G[w]=$:G[w]=G[w].concat([$]):G[w]===void 0&&Z?G[w]=J?$:[$]:se&&!(G[w]===void 0||q(w,h.counts)||q(w,h.bools))?G[w]=[G[w],$]:G[w]=$}function de(...b){b.forEach(function(R){Object.keys(R||{}).forEach(function($){h.aliases[$]||(h.aliases[$]=[].concat(o[$]||[]),h.aliases[$].concat($).forEach(function(G){if(/-/.test(G)&&a["camel-case-expansion"]){let w=ml(G);w!==$&&h.aliases[$].indexOf(w)===-1&&(h.aliases[$].push(w),d[w]=!0)}}),h.aliases[$].concat($).forEach(function(G){if(G.length>1&&/[A-Z]/.test(G)&&a["camel-case-expansion"]){let w=gR(G,"-");w!==$&&h.aliases[$].indexOf(w)===-1&&(h.aliases[$].push(w),d[w]=!0)}}),h.aliases[$].forEach(function(G){h.aliases[G]=[$].concat(h.aliases[$].filter(function(w){return G!==w}))}))})})}function q(b,R){let $=[].concat(h.aliases[b]||[],b),G=Object.keys(R),w=$.find(Z=>G.includes(Z));return w?R[w]:!1}function ke(b){let R=Object.keys(h);return[].concat(R.map(G=>h[G])).some(function(G){return Array.isArray(G)?G.includes(b):G[b]})}function U(b,...R){return[].concat(...R).some(function(G){let w=b.match(G);return w&&ke(w[1])})}function L(b){if(b.match(E)||!b.match(/^-[^-]+/))return!1;let R=!0,$,G=b.slice(1).split("");for(let w=0;w<G.length;w++){if($=b.slice(w+2),!ke(G[w])){R=!1;break}if(G[w+1]&&G[w+1]==="="||$==="-"||/[A-Za-z]/.test(G[w])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test($)||G[w+1]&&G[w+1].match(/\W/))break}return R}function N(b){return a["unknown-options-as-args"]&&z(b)}function z(b){return b=b.replace(/^-{3,}/,"--"),b.match(E)||L(b)?!1:!U(b,/^-+([^=]+?)=[\s\S]*$/,_,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function oe(b){return!q(b,h.bools)&&!q(b,h.counts)&&`${b}`in c?c[b]:fe(Re(b))}function fe(b){return{[Xn.BOOLEAN]:!0,[Xn.STRING]:"",[Xn.NUMBER]:void 0,[Xn.ARRAY]:[]}[b]}function Re(b){let R=Xn.BOOLEAN;return q(b,h.strings)?R=Xn.STRING:q(b,h.numbers)?R=Xn.NUMBER:q(b,h.bools)?R=Xn.BOOLEAN:q(b,h.arrays)&&(R=Xn.ARRAY),R}function De(b){return b===void 0}function Se(){Object.keys(h.counts).find(b=>q(b,h.arrays)?(S=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",b)),!0):q(b,h.nargs)?(S=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",b)),!0):!1)}return{aliases:Object.assign({},h.aliases),argv:Object.assign(I,T),configuration:a,defaulted:Object.assign({},m),error:S,newAliases:Object.assign({},d)}}};function Kee(r){let e=[],t=Object.create(null),n=!0;for(Object.keys(r).forEach(function(s){e.push([].concat(r[s],s))});n;){n=!1;for(let s=0;s<e.length;s++)for(let i=s+1;i<e.length;i++)if(e[s].filter(function(a){return e[i].indexOf(a)!==-1}).length){e[s]=e[s].concat(e[i]),e.splice(i,1),n=!0;break}}return e.forEach(function(s){s=s.filter(function(o,a,c){return c.indexOf(o)===a});let i=s.pop();i!==void 0&&typeof i=="string"&&(t[i]=s)}),t}function BS(r){return r!==void 0?r+1:1}function dR(r){return r==="__proto__"?"___proto___":r}function Jee(r){return typeof r=="string"&&(r[0]==="'"||r[0]==='"')&&r[r.length-1]===r[0]?r.substring(1,r.length-1):r}var US,FS,VS,hR=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,mR=(FS=(US=process==null?void 0:process.versions)===null||US===void 0?void 0:US.node)!==null&&FS!==void 0?FS:(VS=process==null?void 0:process.version)===null||VS===void 0?void 0:VS.slice(1);if(mR&&Number(mR.match(/^([^.]+)/)[1])<hR)throw Error(`yargs parser supports a minimum Node.js version of ${hR}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Qee=process?process.env:{},SR=new GS({cwd:process.cwd,env:()=>Qee,format:Yee.format,normalize:pR.normalize,resolve:pR.resolve,require:r=>{if(typeof W<"u")return W(r);if(r.match(/\.json$/))return JSON.parse(zee.readFileSync(r,"utf8"));throw Error("only .json config files are supported in ESM")}}),gl=function(e,t){return SR.parse(e.slice(),t).argv};gl.detailed=function(r,e){return SR.parse(r.slice(),e)};gl.camelCase=ml;gl.decamelize=gR;gl.looksLikeNumber=ER;_R.exports=gl});var yR=C((P1e,TR)=>{"use strict";TR.exports=({onlyFirst:r=!1}={})=>{let e=["[\\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(e,r?void 0:"g")}});var yn=C((w1e,AR)=>{"use strict";var Zee=yR();AR.exports=r=>typeof r=="string"?r.replace(Zee(),""):r});var CR=C((R1e,jS)=>{"use strict";var OR=r=>Number.isNaN(r)?!1:r>=4352&&(r<=4447||r===9001||r===9002||11904<=r&&r<=12871&&r!==12351||12880<=r&&r<=19903||19968<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65131||65281<=r&&r<=65376||65504<=r&&r<=65510||110592<=r&&r<=110593||127488<=r&&r<=127569||131072<=r&&r<=262141);jS.exports=OR;jS.exports.default=OR});var DR=C((L1e,vR)=>{"use strict";vR.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var os=C((M1e,qS)=>{"use strict";var ete=yn(),tte=CR(),rte=DR(),xR=r=>{if(typeof r!="string"||r.length===0||(r=ete(r),r.length===0))return 0;r=r.replace(rte()," ");let e=0;for(let t=0;t<r.length;t++){let n=r.codePointAt(t);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&t++,e+=tte(n)?2:1)}return e};qS.exports=xR;qS.exports.default=xR});var IR=C((N1e,bR)=>{"use strict";bR.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var $S=C((B1e,wR)=>{var El=IR(),PR={};for(let r of Object.keys(El))PR[El[r]]=r;var Ie={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};wR.exports=Ie;for(let r of Object.keys(Ie)){if(!("channels"in Ie[r]))throw new Error("missing channels property: "+r);if(!("labels"in Ie[r]))throw new Error("missing channel labels property: "+r);if(Ie[r].labels.length!==Ie[r].channels)throw new Error("channel and label counts mismatch: "+r);let{channels:e,labels:t}=Ie[r];delete Ie[r].channels,delete Ie[r].labels,Object.defineProperty(Ie[r],"channels",{value:e}),Object.defineProperty(Ie[r],"labels",{value:t})}Ie.rgb.hsl=function(r){let e=r[0]/255,t=r[1]/255,n=r[2]/255,s=Math.min(e,t,n),i=Math.max(e,t,n),o=i-s,a,c;i===s?a=0:e===i?a=(t-n)/o:t===i?a=2+(n-e)/o:n===i&&(a=4+(e-t)/o),a=Math.min(a*60,360),a<0&&(a+=360);let u=(s+i)/2;return i===s?c=0:u<=.5?c=o/(i+s):c=o/(2-i-s),[a,c*100,u*100]};Ie.rgb.hsv=function(r){let e,t,n,s,i,o=r[0]/255,a=r[1]/255,c=r[2]/255,u=Math.max(o,a,c),l=u-Math.min(o,a,c),f=function(p){return(u-p)/6/l+1/2};return l===0?(s=0,i=0):(i=l/u,e=f(o),t=f(a),n=f(c),o===u?s=n-t:a===u?s=1/3+e-n:c===u&&(s=2/3+t-e),s<0?s+=1:s>1&&(s-=1)),[s*360,i*100,u*100]};Ie.rgb.hwb=function(r){let e=r[0],t=r[1],n=r[2],s=Ie.rgb.hsl(r)[0],i=1/255*Math.min(e,Math.min(t,n));return n=1-1/255*Math.max(e,Math.max(t,n)),[s,i*100,n*100]};Ie.rgb.cmyk=function(r){let e=r[0]/255,t=r[1]/255,n=r[2]/255,s=Math.min(1-e,1-t,1-n),i=(1-e-s)/(1-s)||0,o=(1-t-s)/(1-s)||0,a=(1-n-s)/(1-s)||0;return[i*100,o*100,a*100,s*100]};function nte(r,e){return(r[0]-e[0])**2+(r[1]-e[1])**2+(r[2]-e[2])**2}Ie.rgb.keyword=function(r){let e=PR[r];if(e)return e;let t=1/0,n;for(let s of Object.keys(El)){let i=El[s],o=nte(r,i);o<t&&(t=o,n=s)}return n};Ie.keyword.rgb=function(r){return El[r]};Ie.rgb.xyz=function(r){let e=r[0]/255,t=r[1]/255,n=r[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let s=e*.4124+t*.3576+n*.1805,i=e*.2126+t*.7152+n*.0722,o=e*.0193+t*.1192+n*.9505;return[s*100,i*100,o*100]};Ie.rgb.lab=function(r){let e=Ie.rgb.xyz(r),t=e[0],n=e[1],s=e[2];t/=95.047,n/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let i=116*n-16,o=500*(t-n),a=200*(n-s);return[i,o,a]};Ie.hsl.rgb=function(r){let e=r[0]/360,t=r[1]/100,n=r[2]/100,s,i,o;if(t===0)return o=n*255,[o,o,o];n<.5?s=n*(1+t):s=n+t-n*t;let a=2*n-s,c=[0,0,0];for(let u=0;u<3;u++)i=e+1/3*-(u-1),i<0&&i++,i>1&&i--,6*i<1?o=a+(s-a)*6*i:2*i<1?o=s:3*i<2?o=a+(s-a)*(2/3-i)*6:o=a,c[u]=o*255;return c};Ie.hsl.hsv=function(r){let e=r[0],t=r[1]/100,n=r[2]/100,s=t,i=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,s*=i<=1?i:2-i;let o=(n+t)/2,a=n===0?2*s/(i+s):2*t/(n+t);return[e,a*100,o*100]};Ie.hsv.rgb=function(r){let e=r[0]/60,t=r[1]/100,n=r[2]/100,s=Math.floor(e)%6,i=e-Math.floor(e),o=255*n*(1-t),a=255*n*(1-t*i),c=255*n*(1-t*(1-i));switch(n*=255,s){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};Ie.hsv.hsl=function(r){let e=r[0],t=r[1]/100,n=r[2]/100,s=Math.max(n,.01),i,o;o=(2-t)*n;let a=(2-t)*s;return i=t*s,i/=a<=1?a:2-a,i=i||0,o/=2,[e,i*100,o*100]};Ie.hwb.rgb=function(r){let e=r[0]/360,t=r[1]/100,n=r[2]/100,s=t+n,i;s>1&&(t/=s,n/=s);let o=Math.floor(6*e),a=1-n;i=6*e-o,(o&1)!==0&&(i=1-i);let c=t+i*(a-t),u,l,f;switch(o){default:case 6:case 0:u=a,l=c,f=t;break;case 1:u=c,l=a,f=t;break;case 2:u=t,l=a,f=c;break;case 3:u=t,l=c,f=a;break;case 4:u=c,l=t,f=a;break;case 5:u=a,l=t,f=c;break}return[u*255,l*255,f*255]};Ie.cmyk.rgb=function(r){let e=r[0]/100,t=r[1]/100,n=r[2]/100,s=r[3]/100,i=1-Math.min(1,e*(1-s)+s),o=1-Math.min(1,t*(1-s)+s),a=1-Math.min(1,n*(1-s)+s);return[i*255,o*255,a*255]};Ie.xyz.rgb=function(r){let e=r[0]/100,t=r[1]/100,n=r[2]/100,s,i,o;return s=e*3.2406+t*-1.5372+n*-.4986,i=e*-.9689+t*1.8758+n*.0415,o=e*.0557+t*-.204+n*1.057,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[s*255,i*255,o*255]};Ie.xyz.lab=function(r){let e=r[0],t=r[1],n=r[2];e/=95.047,t/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let s=116*t-16,i=500*(e-t),o=200*(t-n);return[s,i,o]};Ie.lab.xyz=function(r){let e=r[0],t=r[1],n=r[2],s,i,o;i=(e+16)/116,s=t/500+i,o=i-n/200;let a=i**3,c=s**3,u=o**3;return i=a>.008856?a:(i-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,s*=95.047,i*=100,o*=108.883,[s,i,o]};Ie.lab.lch=function(r){let e=r[0],t=r[1],n=r[2],s;s=Math.atan2(n,t)*360/2/Math.PI,s<0&&(s+=360);let o=Math.sqrt(t*t+n*n);return[e,o,s]};Ie.lch.lab=function(r){let e=r[0],t=r[1],s=r[2]/360*2*Math.PI,i=t*Math.cos(s),o=t*Math.sin(s);return[e,i,o]};Ie.rgb.ansi16=function(r,e=null){let[t,n,s]=r,i=e===null?Ie.rgb.hsv(r)[2]:e;if(i=Math.round(i/50),i===0)return 30;let o=30+(Math.round(s/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return i===2&&(o+=60),o};Ie.hsv.ansi16=function(r){return Ie.rgb.ansi16(Ie.hsv.rgb(r),r[2])};Ie.rgb.ansi256=function(r){let e=r[0],t=r[1],n=r[2];return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)};Ie.ansi16.rgb=function(r){let e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let t=(~~(r>50)+1)*.5,n=(e&1)*t*255,s=(e>>1&1)*t*255,i=(e>>2&1)*t*255;return[n,s,i]};Ie.ansi256.rgb=function(r){if(r>=232){let i=(r-232)*10+8;return[i,i,i]}r-=16;let e,t=Math.floor(r/36)/5*255,n=Math.floor((e=r%36)/6)/5*255,s=e%6/5*255;return[t,n,s]};Ie.rgb.hex=function(r){let t=(((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};Ie.hex.rgb=function(r){let e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let t=e[0];e[0].length===3&&(t=t.split("").map(a=>a+a).join(""));let n=parseInt(t,16),s=n>>16&255,i=n>>8&255,o=n&255;return[s,i,o]};Ie.rgb.hcg=function(r){let e=r[0]/255,t=r[1]/255,n=r[2]/255,s=Math.max(Math.max(e,t),n),i=Math.min(Math.min(e,t),n),o=s-i,a,c;return o<1?a=i/(1-o):a=0,o<=0?c=0:s===e?c=(t-n)/o%6:s===t?c=2+(n-e)/o:c=4+(e-t)/o,c/=6,c%=1,[c*360,o*100,a*100]};Ie.hsl.hcg=function(r){let e=r[1]/100,t=r[2]/100,n=t<.5?2*e*t:2*e*(1-t),s=0;return n<1&&(s=(t-.5*n)/(1-n)),[r[0],n*100,s*100]};Ie.hsv.hcg=function(r){let e=r[1]/100,t=r[2]/100,n=e*t,s=0;return n<1&&(s=(t-n)/(1-n)),[r[0],n*100,s*100]};Ie.hcg.rgb=function(r){let e=r[0]/360,t=r[1]/100,n=r[2]/100;if(t===0)return[n*255,n*255,n*255];let s=[0,0,0],i=e%1*6,o=i%1,a=1-o,c=0;switch(Math.floor(i)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return c=(1-t)*n,[(t*s[0]+c)*255,(t*s[1]+c)*255,(t*s[2]+c)*255]};Ie.hcg.hsv=function(r){let e=r[1]/100,t=r[2]/100,n=e+t*(1-e),s=0;return n>0&&(s=e/n),[r[0],s*100,n*100]};Ie.hcg.hsl=function(r){let e=r[1]/100,n=r[2]/100*(1-e)+.5*e,s=0;return n>0&&n<.5?s=e/(2*n):n>=.5&&n<1&&(s=e/(2*(1-n))),[r[0],s*100,n*100]};Ie.hcg.hwb=function(r){let e=r[1]/100,t=r[2]/100,n=e+t*(1-e);return[r[0],(n-e)*100,(1-n)*100]};Ie.hwb.hcg=function(r){let e=r[1]/100,n=1-r[2]/100,s=n-e,i=0;return s<1&&(i=(n-s)/(1-s)),[r[0],s*100,i*100]};Ie.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};Ie.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};Ie.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};Ie.gray.hsl=function(r){return[0,0,r[0]]};Ie.gray.hsv=Ie.gray.hsl;Ie.gray.hwb=function(r){return[0,100,r[0]]};Ie.gray.cmyk=function(r){return[0,0,0,r[0]]};Ie.gray.lab=function(r){return[r[0],0,0]};Ie.gray.hex=function(r){let e=Math.round(r[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};Ie.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]}});var LR=C((U1e,RR)=>{var ad=$S();function ite(){let r={},e=Object.keys(ad);for(let t=e.length,n=0;n<t;n++)r[e[n]]={distance:-1,parent:null};return r}function ste(r){let e=ite(),t=[r];for(e[r].distance=0;t.length;){let n=t.pop(),s=Object.keys(ad[n]);for(let i=s.length,o=0;o<i;o++){let a=s[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,t.unshift(a))}}return e}function ote(r,e){return function(t){return e(r(t))}}function ate(r,e){let t=[e[r].parent,r],n=ad[e[r].parent][r],s=e[r].parent;for(;e[s].parent;)t.unshift(e[s].parent),n=ote(ad[e[s].parent][s],n),s=e[s].parent;return n.conversion=t,n}RR.exports=function(r){let e=ste(r),t={},n=Object.keys(e);for(let s=n.length,i=0;i<s;i++){let o=n[i];e[o].parent!==null&&(t[o]=ate(o,e))}return t}});var NR=C((F1e,MR)=>{var HS=$S(),cte=LR(),$a={},ute=Object.keys(HS);function lte(r){let e=function(...t){let n=t[0];return n==null?n:(n.length>1&&(t=n),r(t))};return"conversion"in r&&(e.conversion=r.conversion),e}function fte(r){let e=function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let s=r(t);if(typeof s=="object")for(let i=s.length,o=0;o<i;o++)s[o]=Math.round(s[o]);return s};return"conversion"in r&&(e.conversion=r.conversion),e}ute.forEach(r=>{$a[r]={},Object.defineProperty($a[r],"channels",{value:HS[r].channels}),Object.defineProperty($a[r],"labels",{value:HS[r].labels});let e=cte(r);Object.keys(e).forEach(n=>{let s=e[n];$a[r][n]=fte(s),$a[r][n].raw=lte(s)})});MR.exports=$a});var YS=C((V1e,GR)=>{"use strict";var BR=(r,e)=>(...t)=>`\x1B[${r(...t)+e}m`,UR=(r,e)=>(...t)=>{let n=r(...t);return`\x1B[${38+e};5;${n}m`},FR=(r,e)=>(...t)=>{let n=r(...t);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},cd=r=>r,VR=(r,e,t)=>[r,e,t],Ha=(r,e,t)=>{Object.defineProperty(r,e,{get:()=>{let n=t();return Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},WS,Wa=(r,e,t,n)=>{WS===void 0&&(WS=NR());let s=n?10:0,i={};for(let[o,a]of Object.entries(WS)){let c=o==="ansi16"?"ansi":o;o===e?i[c]=r(t,s):typeof a=="object"&&(i[c]=r(a[e],s))}return i};function pte(){let r=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,n]of Object.entries(e)){for(let[s,i]of Object.entries(n))e[s]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},n[s]=e[s],r.set(i[0],i[1]);Object.defineProperty(e,t,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:r,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Ha(e.color,"ansi",()=>Wa(BR,"ansi16",cd,!1)),Ha(e.color,"ansi256",()=>Wa(UR,"ansi256",cd,!1)),Ha(e.color,"ansi16m",()=>Wa(FR,"rgb",VR,!1)),Ha(e.bgColor,"ansi",()=>Wa(BR,"ansi16",cd,!0)),Ha(e.bgColor,"ansi256",()=>Wa(UR,"ansi256",cd,!0)),Ha(e.bgColor,"ansi16m",()=>Wa(FR,"rgb",VR,!0)),e}Object.defineProperty(GR,"exports",{enumerable:!0,get:pte})});var JS=C((G1e,HR)=>{"use strict";var Sl=os(),dte=yn(),hte=YS(),ud=new Set(["\x1B","\x9B"]),mte=39,XS="\x07",qR="[",gte="]",$R="m",KS=`${gte}8;;`,kR=r=>`${ud.values().next().value}${qR}${r}${$R}`,jR=r=>`${ud.values().next().value}${KS}${r}${XS}`,Ete=r=>r.split(" ").map(e=>Sl(e)),zS=(r,e,t)=>{let n=[...e],s=!1,i=!1,o=Sl(dte(r[r.length-1]));for(let[a,c]of n.entries()){let u=Sl(c);if(o+u<=t?r[r.length-1]+=c:(r.push(c),o=0),ud.has(c)&&(s=!0,i=n.slice(a+1).join("").startsWith(KS)),s){i?c===XS&&(s=!1,i=!1):c===$R&&(s=!1);continue}o+=u,o===t&&a<n.length-1&&(r.push(""),o=0)}!o&&r[r.length-1].length>0&&r.length>1&&(r[r.length-2]+=r.pop())},Ste=r=>{let e=r.split(" "),t=e.length;for(;t>0&&!(Sl(e[t-1])>0);)t--;return t===e.length?r:e.slice(0,t).join(" ")+e.slice(t).join("")},_te=(r,e,t={})=>{if(t.trim!==!1&&r.trim()==="")return"";let n="",s,i,o=Ete(r),a=[""];for(let[u,l]of r.split(" ").entries()){t.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let f=Sl(a[a.length-1]);if(u!==0&&(f>=e&&(t.wordWrap===!1||t.trim===!1)&&(a.push(""),f=0),(f>0||t.trim===!1)&&(a[a.length-1]+=" ",f++)),t.hard&&o[u]>e){let p=e-f,d=1+Math.floor((o[u]-p-1)/e);Math.floor((o[u]-1)/e)<d&&a.push(""),zS(a,l,e);continue}if(f+o[u]>e&&f>0&&o[u]>0){if(t.wordWrap===!1&&f<e){zS(a,l,e);continue}a.push("")}if(f+o[u]>e&&t.wordWrap===!1){zS(a,l,e);continue}a[a.length-1]+=l}t.trim!==!1&&(a=a.map(Ste));let c=[...a.join(`
34
+ `,finalEOL:t=!0,replacer:n=null,spaces:s}={}){let i=t?e:"";return JSON.stringify(r,n,s).replace(/\n/g,e)+i}function HX(r){return Buffer.isBuffer(r)&&(r=r.toString("utf8")),r.replace(/^\uFEFF/,"")}Xb.exports={stringify:$X,stripBom:HX}});var Zb=C((lAe,Qb)=>{var Va;try{Va=Ba()}catch{Va=W("fs")}var Fp=tr(),{stringify:Kb,stripBom:Jb}=Up();async function WX(r,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||Va,n="throws"in e?e.throws:!0,s=await Fp.fromCallback(t.readFile)(r,e);s=Jb(s);let i;try{i=JSON.parse(s,e?e.reviver:null)}catch(o){if(n)throw o.message=`${r}: ${o.message}`,o;return null}return i}var YX=Fp.fromPromise(WX);function zX(r,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||Va,n="throws"in e?e.throws:!0;try{let s=t.readFileSync(r,e);return s=Jb(s),JSON.parse(s,e.reviver)}catch(s){if(n)throw s.message=`${r}: ${s.message}`,s;return null}}async function XX(r,e,t={}){let n=t.fs||Va,s=Kb(e,t);await Fp.fromCallback(n.writeFile)(r,s,t)}var KX=Fp.fromPromise(XX);function JX(r,e,t={}){let n=t.fs||Va,s=Kb(e,t);return n.writeFileSync(r,s,t)}var QX={readFile:YX,readFileSync:zX,writeFile:KX,writeFileSync:JX};Qb.exports=QX});var tI=C((fAe,eI)=>{"use strict";var Vp=Zb();eI.exports={readJson:Vp.readFile,readJsonSync:Vp.readFileSync,writeJson:Vp.writeFile,writeJsonSync:Vp.writeFileSync}});var Gp=C((pAe,iI)=>{"use strict";var ZX=tr().fromPromise,$E=Nr(),rI=W("path"),nI=Hn(),eK=ns().pathExists;async function tK(r,e,t="utf-8"){let n=rI.dirname(r);return await eK(n)||await nI.mkdirs(n),$E.writeFile(r,e,t)}function rK(r,...e){let t=rI.dirname(r);$E.existsSync(t)||nI.mkdirsSync(t),$E.writeFileSync(r,...e)}iI.exports={outputFile:ZX(tK),outputFileSync:rK}});var oI=C((dAe,sI)=>{"use strict";var{stringify:nK}=Up(),{outputFile:iK}=Gp();async function sK(r,e,t={}){let n=nK(e,t);await iK(r,n,t)}sI.exports=sK});var cI=C((hAe,aI)=>{"use strict";var{stringify:oK}=Up(),{outputFileSync:aK}=Gp();function cK(r,e,t){let n=oK(e,t);aK(r,n,t)}aI.exports=cK});var lI=C((mAe,uI)=>{"use strict";var uK=tr().fromPromise,Ur=tI();Ur.outputJson=uK(oI());Ur.outputJsonSync=cI();Ur.outputJSON=Ur.outputJson;Ur.outputJSONSync=Ur.outputJsonSync;Ur.writeJSON=Ur.writeJson;Ur.writeJSONSync=Ur.writeJsonSync;Ur.readJSON=Ur.readJson;Ur.readJSONSync=Ur.readJsonSync;uI.exports=Ur});var mI=C((gAe,hI)=>{"use strict";var lK=Nr(),fI=W("path"),{copy:fK}=Bp(),{remove:dI}=Zu(),{mkdirp:pK}=Hn(),{pathExists:dK}=ns(),pI=Eo();async function hK(r,e,t={}){let n=t.overwrite||t.clobber||!1,{srcStat:s,isChangingCase:i=!1}=await pI.checkPaths(r,e,"move",t);await pI.checkParentPaths(r,s,e,"move");let o=fI.dirname(e);return fI.parse(o).root!==o&&await pK(o),mK(r,e,n,i)}async function mK(r,e,t,n){if(!n){if(t)await dI(e);else if(await dK(e))throw new Error("dest already exists.")}try{await lK.rename(r,e)}catch(s){if(s.code!=="EXDEV")throw s;await gK(r,e,t)}}async function gK(r,e,t){return await fK(r,e,{overwrite:t,errorOnExist:!0,preserveTimestamps:!0}),dI(r)}hI.exports=hK});var TI=C((EAe,_I)=>{"use strict";var EI=Ba(),WE=W("path"),EK=Bp().copySync,SI=Zu().removeSync,SK=Hn().mkdirpSync,gI=Eo();function _K(r,e,t){t=t||{};let n=t.overwrite||t.clobber||!1,{srcStat:s,isChangingCase:i=!1}=gI.checkPathsSync(r,e,"move",t);return gI.checkParentPathsSync(r,s,e,"move"),TK(e)||SK(WE.dirname(e)),yK(r,e,n,i)}function TK(r){let e=WE.dirname(r);return WE.parse(e).root===e}function yK(r,e,t,n){if(n)return HE(r,e,t);if(t)return SI(e),HE(r,e,t);if(EI.existsSync(e))throw new Error("dest already exists.");return HE(r,e,t)}function HE(r,e,t){try{EI.renameSync(r,e)}catch(n){if(n.code!=="EXDEV")throw n;return AK(r,e,t)}}function AK(r,e,t){return EK(r,e,{overwrite:t,errorOnExist:!0,preserveTimestamps:!0}),SI(r)}_I.exports=_K});var AI=C((SAe,yI)=>{"use strict";var OK=tr().fromPromise;yI.exports={move:OK(mI()),moveSync:TI()}});var CI=C((_Ae,OI)=>{"use strict";OI.exports={...Nr(),...Bp(),...Ab(),...zb(),...lI(),...Hn(),...AI(),...Gp(),...ns(),...Zu()}});var BI=C((QE,ZE)=>{(function(r,e){typeof QE=="object"&&typeof ZE<"u"?ZE.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self,r.tinycolor=e())})(QE,(function(){"use strict";function r(U){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},r(U)}var e=/^\s+/,t=/\s+$/;function n(U,L){if(U=U||"",L=L||{},U instanceof n)return U;if(!(this instanceof n))return new n(U,L);var N=s(U);this._originalInput=U,this._r=N.r,this._g=N.g,this._b=N.b,this._a=N.a,this._roundA=Math.round(100*this._a)/100,this._format=L.format||N.format,this._gradientType=L.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=N.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var L=this.toRgb();return(L.r*299+L.g*587+L.b*114)/1e3},getLuminance:function(){var L=this.toRgb(),N,z,oe,fe,Re,De;return N=L.r/255,z=L.g/255,oe=L.b/255,N<=.03928?fe=N/12.92:fe=Math.pow((N+.055)/1.055,2.4),z<=.03928?Re=z/12.92:Re=Math.pow((z+.055)/1.055,2.4),oe<=.03928?De=oe/12.92:De=Math.pow((oe+.055)/1.055,2.4),.2126*fe+.7152*Re+.0722*De},setAlpha:function(L){return this._a=F(L),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var L=c(this._r,this._g,this._b);return{h:L.h*360,s:L.s,v:L.v,a:this._a}},toHsvString:function(){var L=c(this._r,this._g,this._b),N=Math.round(L.h*360),z=Math.round(L.s*100),oe=Math.round(L.v*100);return this._a==1?"hsv("+N+", "+z+"%, "+oe+"%)":"hsva("+N+", "+z+"%, "+oe+"%, "+this._roundA+")"},toHsl:function(){var L=o(this._r,this._g,this._b);return{h:L.h*360,s:L.s,l:L.l,a:this._a}},toHslString:function(){var L=o(this._r,this._g,this._b),N=Math.round(L.h*360),z=Math.round(L.s*100),oe=Math.round(L.l*100);return this._a==1?"hsl("+N+", "+z+"%, "+oe+"%)":"hsla("+N+", "+z+"%, "+oe+"%, "+this._roundA+")"},toHex:function(L){return l(this._r,this._g,this._b,L)},toHexString:function(L){return"#"+this.toHex(L)},toHex8:function(L){return f(this._r,this._g,this._b,this._a,L)},toHex8String:function(L){return"#"+this.toHex8(L)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(V(this._r,255)*100)+"%",g:Math.round(V(this._g,255)*100)+"%",b:Math.round(V(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(V(this._r,255)*100)+"%, "+Math.round(V(this._g,255)*100)+"%, "+Math.round(V(this._b,255)*100)+"%)":"rgba("+Math.round(V(this._r,255)*100)+"%, "+Math.round(V(this._g,255)*100)+"%, "+Math.round(V(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:D[l(this._r,this._g,this._b,!0)]||!1},toFilter:function(L){var N="#"+p(this._r,this._g,this._b,this._a),z=N,oe=this._gradientType?"GradientType = 1, ":"";if(L){var fe=n(L);z="#"+p(fe._r,fe._g,fe._b,fe._a)}return"progid:DXImageTransform.Microsoft.gradient("+oe+"startColorstr="+N+",endColorstr="+z+")"},toString:function(L){var N=!!L;L=L||this._format;var z=!1,oe=this._a<1&&this._a>=0,fe=!N&&oe&&(L==="hex"||L==="hex6"||L==="hex3"||L==="hex4"||L==="hex8"||L==="name");return fe?L==="name"&&this._a===0?this.toName():this.toRgbString():(L==="rgb"&&(z=this.toRgbString()),L==="prgb"&&(z=this.toPercentageRgbString()),(L==="hex"||L==="hex6")&&(z=this.toHexString()),L==="hex3"&&(z=this.toHexString(!0)),L==="hex4"&&(z=this.toHex8String(!0)),L==="hex8"&&(z=this.toHex8String()),L==="name"&&(z=this.toName()),L==="hsl"&&(z=this.toHslString()),L==="hsv"&&(z=this.toHsvString()),z||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(L,N){var z=L.apply(null,[this].concat([].slice.call(N)));return this._r=z._r,this._g=z._g,this._b=z._b,this.setAlpha(z._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(L,N){return L.apply(null,[this].concat([].slice.call(N)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(y,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(b,arguments)},triad:function(){return this._applyCombination(T,[3])},tetrad:function(){return this._applyCombination(T,[4])}},n.fromRatio=function(U,L){if(r(U)=="object"){var N={};for(var z in U)U.hasOwnProperty(z)&&(z==="a"?N[z]=U[z]:N[z]=ie(U[z]));U=N}return n(U,L)};function s(U){var L={r:0,g:0,b:0},N=1,z=null,oe=null,fe=null,Re=!1,De=!1;return typeof U=="string"&&(U=q(U)),r(U)=="object"&&(de(U.r)&&de(U.g)&&de(U.b)?(L=i(U.r,U.g,U.b),Re=!0,De=String(U.r).substr(-1)==="%"?"prgb":"rgb"):de(U.h)&&de(U.s)&&de(U.v)?(z=ie(U.s),oe=ie(U.v),L=u(U.h,z,oe),Re=!0,De="hsv"):de(U.h)&&de(U.s)&&de(U.l)&&(z=ie(U.s),fe=ie(U.l),L=a(U.h,z,fe),Re=!0,De="hsl"),U.hasOwnProperty("a")&&(N=U.a)),N=F(N),{ok:Re,format:U.format||De,r:Math.min(255,Math.max(L.r,0)),g:Math.min(255,Math.max(L.g,0)),b:Math.min(255,Math.max(L.b,0)),a:N}}function i(U,L,N){return{r:V(U,255)*255,g:V(L,255)*255,b:V(N,255)*255}}function o(U,L,N){U=V(U,255),L=V(L,255),N=V(N,255);var z=Math.max(U,L,N),oe=Math.min(U,L,N),fe,Re,De=(z+oe)/2;if(z==oe)fe=Re=0;else{var Se=z-oe;switch(Re=De>.5?Se/(2-z-oe):Se/(z+oe),z){case U:fe=(L-N)/Se+(L<N?6:0);break;case L:fe=(N-U)/Se+2;break;case N:fe=(U-L)/Se+4;break}fe/=6}return{h:fe,s:Re,l:De}}function a(U,L,N){var z,oe,fe;U=V(U,360),L=V(L,100),N=V(N,100);function Re(I,R,$){return $<0&&($+=1),$>1&&($-=1),$<1/6?I+(R-I)*6*$:$<1/2?R:$<2/3?I+(R-I)*(2/3-$)*6:I}if(L===0)z=oe=fe=N;else{var De=N<.5?N*(1+L):N+L-N*L,Se=2*N-De;z=Re(Se,De,U+1/3),oe=Re(Se,De,U),fe=Re(Se,De,U-1/3)}return{r:z*255,g:oe*255,b:fe*255}}function c(U,L,N){U=V(U,255),L=V(L,255),N=V(N,255);var z=Math.max(U,L,N),oe=Math.min(U,L,N),fe,Re,De=z,Se=z-oe;if(Re=z===0?0:Se/z,z==oe)fe=0;else{switch(z){case U:fe=(L-N)/Se+(L<N?6:0);break;case L:fe=(N-U)/Se+2;break;case N:fe=(U-L)/Se+4;break}fe/=6}return{h:fe,s:Re,v:De}}function u(U,L,N){U=V(U,360)*6,L=V(L,100),N=V(N,100);var z=Math.floor(U),oe=U-z,fe=N*(1-L),Re=N*(1-oe*L),De=N*(1-(1-oe)*L),Se=z%6,I=[N,Re,fe,fe,De,N][Se],R=[De,N,N,Re,fe,fe][Se],$=[fe,fe,De,N,N,Re][Se];return{r:I*255,g:R*255,b:$*255}}function l(U,L,N,z){var oe=[ne(Math.round(U).toString(16)),ne(Math.round(L).toString(16)),ne(Math.round(N).toString(16))];return z&&oe[0].charAt(0)==oe[0].charAt(1)&&oe[1].charAt(0)==oe[1].charAt(1)&&oe[2].charAt(0)==oe[2].charAt(1)?oe[0].charAt(0)+oe[1].charAt(0)+oe[2].charAt(0):oe.join("")}function f(U,L,N,z,oe){var fe=[ne(Math.round(U).toString(16)),ne(Math.round(L).toString(16)),ne(Math.round(N).toString(16)),ne(Ee(z))];return oe&&fe[0].charAt(0)==fe[0].charAt(1)&&fe[1].charAt(0)==fe[1].charAt(1)&&fe[2].charAt(0)==fe[2].charAt(1)&&fe[3].charAt(0)==fe[3].charAt(1)?fe[0].charAt(0)+fe[1].charAt(0)+fe[2].charAt(0)+fe[3].charAt(0):fe.join("")}function p(U,L,N,z){var oe=[ne(Ee(z)),ne(Math.round(U).toString(16)),ne(Math.round(L).toString(16)),ne(Math.round(N).toString(16))];return oe.join("")}n.equals=function(U,L){return!U||!L?!1:n(U).toRgbString()==n(L).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function d(U,L){L=L===0?0:L||10;var N=n(U).toHsl();return N.s-=L/100,N.s=H(N.s),n(N)}function m(U,L){L=L===0?0:L||10;var N=n(U).toHsl();return N.s+=L/100,N.s=H(N.s),n(N)}function g(U){return n(U).desaturate(100)}function h(U,L){L=L===0?0:L||10;var N=n(U).toHsl();return N.l+=L/100,N.l=H(N.l),n(N)}function E(U,L){L=L===0?0:L||10;var N=n(U).toRgb();return N.r=Math.max(0,Math.min(255,N.r-Math.round(255*-(L/100)))),N.g=Math.max(0,Math.min(255,N.g-Math.round(255*-(L/100)))),N.b=Math.max(0,Math.min(255,N.b-Math.round(255*-(L/100)))),n(N)}function _(U,L){L=L===0?0:L||10;var N=n(U).toHsl();return N.l-=L/100,N.l=H(N.l),n(N)}function S(U,L){var N=n(U).toHsl(),z=(N.h+L)%360;return N.h=z<0?360+z:z,n(N)}function y(U){var L=n(U).toHsl();return L.h=(L.h+180)%360,n(L)}function T(U,L){if(isNaN(L)||L<=0)throw new Error("Argument to polyad must be a positive number");for(var N=n(U).toHsl(),z=[n(U)],oe=360/L,fe=1;fe<L;fe++)z.push(n({h:(N.h+fe*oe)%360,s:N.s,l:N.l}));return z}function b(U){var L=n(U).toHsl(),N=L.h;return[n(U),n({h:(N+72)%360,s:L.s,l:L.l}),n({h:(N+216)%360,s:L.s,l:L.l})]}function v(U,L,N){L=L||6,N=N||30;var z=n(U).toHsl(),oe=360/N,fe=[n(U)];for(z.h=(z.h-(oe*L>>1)+720)%360;--L;)z.h=(z.h+oe)%360,fe.push(n(z));return fe}function x(U,L){L=L||6;for(var N=n(U).toHsv(),z=N.h,oe=N.s,fe=N.v,Re=[],De=1/L;L--;)Re.push(n({h:z,s:oe,v:fe})),fe=(fe+De)%1;return Re}n.mix=function(U,L,N){N=N===0?0:N||50;var z=n(U).toRgb(),oe=n(L).toRgb(),fe=N/100,Re={r:(oe.r-z.r)*fe+z.r,g:(oe.g-z.g)*fe+z.g,b:(oe.b-z.b)*fe+z.b,a:(oe.a-z.a)*fe+z.a};return n(Re)},n.readability=function(U,L){var N=n(U),z=n(L);return(Math.max(N.getLuminance(),z.getLuminance())+.05)/(Math.min(N.getLuminance(),z.getLuminance())+.05)},n.isReadable=function(U,L,N){var z=n.readability(U,L),oe,fe;switch(fe=!1,oe=ke(N),oe.level+oe.size){case"AAsmall":case"AAAlarge":fe=z>=4.5;break;case"AAlarge":fe=z>=3;break;case"AAAsmall":fe=z>=7;break}return fe},n.mostReadable=function(U,L,N){var z=null,oe=0,fe,Re,De,Se;N=N||{},Re=N.includeFallbackColors,De=N.level,Se=N.size;for(var I=0;I<L.length;I++)fe=n.readability(U,L[I]),fe>oe&&(oe=fe,z=n(L[I]));return n.isReadable(U,z,{level:De,size:Se})||!Re?z:(N.includeFallbackColors=!1,n.mostReadable(U,["#fff","#000"],N))};var A=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},D=n.hexNames=P(A);function P(U){var L={};for(var N in U)U.hasOwnProperty(N)&&(L[U[N]]=N);return L}function F(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function V(U,L){X(U)&&(U="100%");var N=ee(U);return U=Math.min(L,Math.max(0,parseFloat(U))),N&&(U=parseInt(U*L,10)/100),Math.abs(U-L)<1e-6?1:U%L/parseFloat(L)}function H(U){return Math.min(1,Math.max(0,U))}function k(U){return parseInt(U,16)}function X(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function ee(U){return typeof U=="string"&&U.indexOf("%")!=-1}function ne(U){return U.length==1?"0"+U:""+U}function ie(U){return U<=1&&(U=U*100+"%"),U}function Ee(U){return Math.round(parseFloat(U)*255).toString(16)}function K(U){return k(U)/255}var le=(function(){var U="[-\\+]?\\d+%?",L="[-\\+]?\\d*\\.\\d+%?",N="(?:"+L+")|(?:"+U+")",z="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",oe="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?";return{CSS_UNIT:new RegExp(N),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+oe),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+oe),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+oe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function de(U){return!!le.CSS_UNIT.exec(U)}function q(U){U=U.replace(e,"").replace(t,"").toLowerCase();var L=!1;if(A[U])U=A[U],L=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var N;return(N=le.rgb.exec(U))?{r:N[1],g:N[2],b:N[3]}:(N=le.rgba.exec(U))?{r:N[1],g:N[2],b:N[3],a:N[4]}:(N=le.hsl.exec(U))?{h:N[1],s:N[2],l:N[3]}:(N=le.hsla.exec(U))?{h:N[1],s:N[2],l:N[3],a:N[4]}:(N=le.hsv.exec(U))?{h:N[1],s:N[2],v:N[3]}:(N=le.hsva.exec(U))?{h:N[1],s:N[2],v:N[3],a:N[4]}:(N=le.hex8.exec(U))?{r:k(N[1]),g:k(N[2]),b:k(N[3]),a:K(N[4]),format:L?"name":"hex8"}:(N=le.hex6.exec(U))?{r:k(N[1]),g:k(N[2]),b:k(N[3]),format:L?"name":"hex"}:(N=le.hex4.exec(U))?{r:k(N[1]+""+N[1]),g:k(N[2]+""+N[2]),b:k(N[3]+""+N[3]),a:K(N[4]+""+N[4]),format:L?"name":"hex8"}:(N=le.hex3.exec(U))?{r:k(N[1]+""+N[1]),g:k(N[2]+""+N[2]),b:k(N[3]+""+N[3]),format:L?"name":"hex"}:!1}function ke(U){var L,N;return U=U||{level:"AA",size:"small"},L=(U.level||"AA").toUpperCase(),N=(U.size||"small").toLowerCase(),L!=="AA"&&L!=="AAA"&&(L="AA"),N!=="small"&&N!=="large"&&(N="small"),{level:L,size:N}}return n}))});var qI=C((LAe,jI)=>{var nl=BI(),GI={r:256,g:256,b:256,a:1},kI={h:360,s:1,v:1,a:1};function rS(r,e,t){let n={};for(let s in r)r.hasOwnProperty(s)&&(n[s]=t===0?0:(e[s]-r[s])/t);return n}function nS(r,e,t,n){let s={};for(let i in e)e.hasOwnProperty(i)&&(s[i]=r[i]*t+e[i],s[i]=s[i]<0?s[i]+n[i]:n[i]!==1?s[i]%n[i]:s[i]);return s}function eS(r,e,t){let n=r.color.toRgb(),s=e.color.toRgb(),i=rS(n,s,t),o=[r.color];for(let a=1;a<t;a++){let c=nS(i,n,a,GI);o.push(nl(c))}return o}function UI(r,e,t,n){let s=r.color.toHsv(),i=e.color.toHsv();if(s.s===0||i.s===0)return eS(r,e,t);let o;if(typeof n=="boolean")o=n;else{let l=s.h<i.h&&i.h-s.h<180||s.h>i.h&&s.h-i.h>180;o=n==="long"&&l||n==="short"&&!l}let a=rS(s,i,t),c=[r.color],u;s.h<=i.h&&!o||s.h>=i.h&&o?u=i.h-s.h:o?u=360-i.h+s.h:u=360-s.h+i.h,a.h=Math.pow(-1,o?1:0)*Math.abs(u)/t;for(let l=1;l<t;l++){let f=nS(a,s,l,kI);c.push(nl(f))}return c}function FI(r,e){let t=r.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<t)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let i=1;i<t;i++){let o=(e-1)*(r[i].pos-r[i-1].pos);n.push(Math.max(1,Math.round(o)))}let s=1;for(let i=t-1;i--;)s+=n[i];for(;s!==e;)if(s<e){let i=Math.min.apply(null,n);n[n.indexOf(i)]++,s++}else{let i=Math.max.apply(null,n);n[n.indexOf(i)]--,s--}return n}function VI(r,e,t,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let s,i;for(let c=0,u=r.length;c<u-1;c++)if(e>=r[c].pos&&e<r[c+1].pos){s=r[c],i=r[c+1];break}s||(s=i=r[r.length-1]);let o=rS(s.color[t](),i.color[t](),(i.pos-s.pos)*100),a=nS(o,s.color[t](),(e-s.pos)*100,n);return nl(a)}var tS=class r{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let t=e[0].pos!==void 0,n=e.length,s=-1,i=!1;this.stops=e.map((o,a)=>{let c=o.pos!==void 0;if(t^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let u=o.color!==void 0;if(!u&&(i||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(i=!u,o={color:u?nl(o.color):null,colorLess:!u,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<s)throw new Error("Color stops positions are not ordered");s=o.pos}else o={color:nl(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(t){e.push({color:t.color,pos:1-t.pos})}),new r(e.reverse())}loop(){let e=[],t=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{t.push({color:n.color,pos:1-n.pos/2})}),new r(e.concat(t.reverse()))}rgb(e){let t=FI(this.stops,e),n=[];this.stops.forEach((s,i)=>{s.colorLess&&(s.color=eS(this.stops[i-1],this.stops[i+1],2)[1])});for(let s=0,i=this.stops.length;s<i-1;s++){let o=eS(this.stops[s],this.stops[s+1],t[s]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,t){let n=FI(this.stops,e),s=[];this.stops.forEach((i,o)=>{i.colorLess&&(i.color=UI(this.stops[o-1],this.stops[o+1],2,t)[1])});for(let i=0,o=this.stops.length;i<o-1;i++){let a=UI(this.stops[i],this.stops[i+1],n[i],t);s.splice(s.length,0,...a)}return s.push(this.stops[this.stops.length-1].color),s}css(e,t){e=e||"linear",t=t||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+t;return this.stops.forEach(function(s){n+=", "+(s.colorLess?"":s.color.toRgbString()+" ")+s.pos*100+"%"}),n+=")",n}rgbAt(e){return VI(this.stops,e,"toRgb",GI)}hsvAt(e){return VI(this.stops,e,"toHsv",kI)}};jI.exports=function(r){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');r=arguments[0]}else r=Array.prototype.slice.call(arguments);return new tS(r)}});var il=C((BAe,WI)=>{var eJ="2.0.0",tJ=Number.MAX_SAFE_INTEGER||9007199254740991,rJ=16,nJ=250,iJ=["major","premajor","minor","preminor","patch","prepatch","prerelease"];WI.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:rJ,MAX_SAFE_BUILD_LENGTH:nJ,MAX_SAFE_INTEGER:tJ,RELEASE_TYPES:iJ,SEMVER_SPEC_VERSION:eJ,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var sl=C((UAe,YI)=>{var sJ=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};YI.exports=sJ});var ja=C((Bi,zI)=>{var{MAX_SAFE_COMPONENT_LENGTH:oS,MAX_SAFE_BUILD_LENGTH:oJ,MAX_LENGTH:aJ}=il(),cJ=sl();Bi=zI.exports={};var uJ=Bi.re=[],lJ=Bi.safeRe=[],ye=Bi.src=[],Ae=Bi.t={},fJ=0,aS="[a-zA-Z0-9-]",pJ=[["\\s",1],["\\d",aJ],[aS,oJ]],dJ=r=>{for(let[e,t]of pJ)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},ze=(r,e,t)=>{let n=dJ(e),s=fJ++;cJ(r,s,e),Ae[r]=s,ye[s]=e,uJ[s]=new RegExp(e,t?"g":void 0),lJ[s]=new RegExp(n,t?"g":void 0)};ze("NUMERICIDENTIFIER","0|[1-9]\\d*");ze("NUMERICIDENTIFIERLOOSE","\\d+");ze("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${aS}*`);ze("MAINVERSION",`(${ye[Ae.NUMERICIDENTIFIER]})\\.(${ye[Ae.NUMERICIDENTIFIER]})\\.(${ye[Ae.NUMERICIDENTIFIER]})`);ze("MAINVERSIONLOOSE",`(${ye[Ae.NUMERICIDENTIFIERLOOSE]})\\.(${ye[Ae.NUMERICIDENTIFIERLOOSE]})\\.(${ye[Ae.NUMERICIDENTIFIERLOOSE]})`);ze("PRERELEASEIDENTIFIER",`(?:${ye[Ae.NUMERICIDENTIFIER]}|${ye[Ae.NONNUMERICIDENTIFIER]})`);ze("PRERELEASEIDENTIFIERLOOSE",`(?:${ye[Ae.NUMERICIDENTIFIERLOOSE]}|${ye[Ae.NONNUMERICIDENTIFIER]})`);ze("PRERELEASE",`(?:-(${ye[Ae.PRERELEASEIDENTIFIER]}(?:\\.${ye[Ae.PRERELEASEIDENTIFIER]})*))`);ze("PRERELEASELOOSE",`(?:-?(${ye[Ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ye[Ae.PRERELEASEIDENTIFIERLOOSE]})*))`);ze("BUILDIDENTIFIER",`${aS}+`);ze("BUILD",`(?:\\+(${ye[Ae.BUILDIDENTIFIER]}(?:\\.${ye[Ae.BUILDIDENTIFIER]})*))`);ze("FULLPLAIN",`v?${ye[Ae.MAINVERSION]}${ye[Ae.PRERELEASE]}?${ye[Ae.BUILD]}?`);ze("FULL",`^${ye[Ae.FULLPLAIN]}$`);ze("LOOSEPLAIN",`[v=\\s]*${ye[Ae.MAINVERSIONLOOSE]}${ye[Ae.PRERELEASELOOSE]}?${ye[Ae.BUILD]}?`);ze("LOOSE",`^${ye[Ae.LOOSEPLAIN]}$`);ze("GTLT","((?:<|>)?=?)");ze("XRANGEIDENTIFIERLOOSE",`${ye[Ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ze("XRANGEIDENTIFIER",`${ye[Ae.NUMERICIDENTIFIER]}|x|X|\\*`);ze("XRANGEPLAIN",`[v=\\s]*(${ye[Ae.XRANGEIDENTIFIER]})(?:\\.(${ye[Ae.XRANGEIDENTIFIER]})(?:\\.(${ye[Ae.XRANGEIDENTIFIER]})(?:${ye[Ae.PRERELEASE]})?${ye[Ae.BUILD]}?)?)?`);ze("XRANGEPLAINLOOSE",`[v=\\s]*(${ye[Ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ye[Ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ye[Ae.XRANGEIDENTIFIERLOOSE]})(?:${ye[Ae.PRERELEASELOOSE]})?${ye[Ae.BUILD]}?)?)?`);ze("XRANGE",`^${ye[Ae.GTLT]}\\s*${ye[Ae.XRANGEPLAIN]}$`);ze("XRANGELOOSE",`^${ye[Ae.GTLT]}\\s*${ye[Ae.XRANGEPLAINLOOSE]}$`);ze("COERCEPLAIN",`(^|[^\\d])(\\d{1,${oS}})(?:\\.(\\d{1,${oS}}))?(?:\\.(\\d{1,${oS}}))?`);ze("COERCE",`${ye[Ae.COERCEPLAIN]}(?:$|[^\\d])`);ze("COERCEFULL",ye[Ae.COERCEPLAIN]+`(?:${ye[Ae.PRERELEASE]})?(?:${ye[Ae.BUILD]})?(?:$|[^\\d])`);ze("COERCERTL",ye[Ae.COERCE],!0);ze("COERCERTLFULL",ye[Ae.COERCEFULL],!0);ze("LONETILDE","(?:~>?)");ze("TILDETRIM",`(\\s*)${ye[Ae.LONETILDE]}\\s+`,!0);Bi.tildeTrimReplace="$1~";ze("TILDE",`^${ye[Ae.LONETILDE]}${ye[Ae.XRANGEPLAIN]}$`);ze("TILDELOOSE",`^${ye[Ae.LONETILDE]}${ye[Ae.XRANGEPLAINLOOSE]}$`);ze("LONECARET","(?:\\^)");ze("CARETTRIM",`(\\s*)${ye[Ae.LONECARET]}\\s+`,!0);Bi.caretTrimReplace="$1^";ze("CARET",`^${ye[Ae.LONECARET]}${ye[Ae.XRANGEPLAIN]}$`);ze("CARETLOOSE",`^${ye[Ae.LONECARET]}${ye[Ae.XRANGEPLAINLOOSE]}$`);ze("COMPARATORLOOSE",`^${ye[Ae.GTLT]}\\s*(${ye[Ae.LOOSEPLAIN]})$|^$`);ze("COMPARATOR",`^${ye[Ae.GTLT]}\\s*(${ye[Ae.FULLPLAIN]})$|^$`);ze("COMPARATORTRIM",`(\\s*)${ye[Ae.GTLT]}\\s*(${ye[Ae.LOOSEPLAIN]}|${ye[Ae.XRANGEPLAIN]})`,!0);Bi.comparatorTrimReplace="$1$2$3";ze("HYPHENRANGE",`^\\s*(${ye[Ae.XRANGEPLAIN]})\\s+-\\s+(${ye[Ae.XRANGEPLAIN]})\\s*$`);ze("HYPHENRANGELOOSE",`^\\s*(${ye[Ae.XRANGEPLAINLOOSE]})\\s+-\\s+(${ye[Ae.XRANGEPLAINLOOSE]})\\s*$`);ze("STAR","(<|>)?=?\\s*\\*");ze("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ze("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var qp=C((FAe,XI)=>{var hJ=Object.freeze({loose:!0}),mJ=Object.freeze({}),gJ=r=>r?typeof r!="object"?hJ:r:mJ;XI.exports=gJ});var cS=C((VAe,QI)=>{var KI=/^[0-9]+$/,JI=(r,e)=>{let t=KI.test(r),n=KI.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},EJ=(r,e)=>JI(e,r);QI.exports={compareIdentifiers:JI,rcompareIdentifiers:EJ}});var yr=C((GAe,rP)=>{var $p=sl(),{MAX_LENGTH:ZI,MAX_SAFE_INTEGER:Hp}=il(),{safeRe:eP,t:tP}=ja(),SJ=qp(),{compareIdentifiers:qa}=cS(),uS=class r{constructor(e,t){if(t=SJ(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ZI)throw new TypeError(`version is longer than ${ZI} characters`);$p("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?eP[tP.LOOSE]:eP[tP.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Hp||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Hp||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Hp||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Hp)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if($p("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),qa(this.major,e.major)||qa(this.minor,e.minor)||qa(this.patch,e.patch)}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if($p("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return qa(n,s)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if($p("build compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return qa(n,s)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let i=[t,s];n===!1&&(i=[t]),qa(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};rP.exports=uS});var So=C((kAe,iP)=>{var nP=yr(),_J=(r,e,t=!1)=>{if(r instanceof nP)return r;try{return new nP(r,e)}catch(n){if(!t)return null;throw n}};iP.exports=_J});var oP=C((jAe,sP)=>{var TJ=So(),yJ=(r,e)=>{let t=TJ(r,e);return t?t.version:null};sP.exports=yJ});var cP=C((qAe,aP)=>{var AJ=So(),OJ=(r,e)=>{let t=AJ(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};aP.exports=OJ});var fP=C(($Ae,lP)=>{var uP=yr(),CJ=(r,e,t,n,s)=>{typeof t=="string"&&(s=n,n=t,t=void 0);try{return new uP(r instanceof uP?r.version:r,t).inc(e,n,s).version}catch{return null}};lP.exports=CJ});var hP=C((HAe,dP)=>{var pP=So(),vJ=(r,e)=>{let t=pP(r,null,!0),n=pP(e,null,!0),s=t.compare(n);if(s===0)return null;let i=s>0,o=i?t:n,a=i?n:t,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c)return!a.patch&&!a.minor?"major":o.patch?"patch":o.minor?"minor":"major";let l=c?"pre":"";return t.major!==n.major?l+"major":t.minor!==n.minor?l+"minor":t.patch!==n.patch?l+"patch":"prerelease"};dP.exports=vJ});var gP=C((WAe,mP)=>{var DJ=yr(),xJ=(r,e)=>new DJ(r,e).major;mP.exports=xJ});var SP=C((YAe,EP)=>{var bJ=yr(),IJ=(r,e)=>new bJ(r,e).minor;EP.exports=IJ});var TP=C((zAe,_P)=>{var PJ=yr(),wJ=(r,e)=>new PJ(r,e).patch;_P.exports=wJ});var AP=C((XAe,yP)=>{var RJ=So(),LJ=(r,e)=>{let t=RJ(r,e);return t&&t.prerelease.length?t.prerelease:null};yP.exports=LJ});var Sn=C((KAe,CP)=>{var OP=yr(),MJ=(r,e,t)=>new OP(r,t).compare(new OP(e,t));CP.exports=MJ});var DP=C((JAe,vP)=>{var NJ=Sn(),BJ=(r,e,t)=>NJ(e,r,t);vP.exports=BJ});var bP=C((QAe,xP)=>{var UJ=Sn(),FJ=(r,e)=>UJ(r,e,!0);xP.exports=FJ});var Wp=C((ZAe,PP)=>{var IP=yr(),VJ=(r,e,t)=>{let n=new IP(r,t),s=new IP(e,t);return n.compare(s)||n.compareBuild(s)};PP.exports=VJ});var RP=C((eOe,wP)=>{var GJ=Wp(),kJ=(r,e)=>r.sort((t,n)=>GJ(t,n,e));wP.exports=kJ});var MP=C((tOe,LP)=>{var jJ=Wp(),qJ=(r,e)=>r.sort((t,n)=>jJ(n,t,e));LP.exports=qJ});var ol=C((rOe,NP)=>{var $J=Sn(),HJ=(r,e,t)=>$J(r,e,t)>0;NP.exports=HJ});var Yp=C((nOe,BP)=>{var WJ=Sn(),YJ=(r,e,t)=>WJ(r,e,t)<0;BP.exports=YJ});var lS=C((iOe,UP)=>{var zJ=Sn(),XJ=(r,e,t)=>zJ(r,e,t)===0;UP.exports=XJ});var fS=C((sOe,FP)=>{var KJ=Sn(),JJ=(r,e,t)=>KJ(r,e,t)!==0;FP.exports=JJ});var zp=C((oOe,VP)=>{var QJ=Sn(),ZJ=(r,e,t)=>QJ(r,e,t)>=0;VP.exports=ZJ});var Xp=C((aOe,GP)=>{var eQ=Sn(),tQ=(r,e,t)=>eQ(r,e,t)<=0;GP.exports=tQ});var pS=C((cOe,kP)=>{var rQ=lS(),nQ=fS(),iQ=ol(),sQ=zp(),oQ=Yp(),aQ=Xp(),cQ=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return rQ(r,t,n);case"!=":return nQ(r,t,n);case">":return iQ(r,t,n);case">=":return sQ(r,t,n);case"<":return oQ(r,t,n);case"<=":return aQ(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};kP.exports=cQ});var qP=C((uOe,jP)=>{var uQ=yr(),lQ=So(),{safeRe:Kp,t:Jp}=ja(),fQ=(r,e)=>{if(r instanceof uQ)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?Kp[Jp.COERCEFULL]:Kp[Jp.COERCE]);else{let c=e.includePrerelease?Kp[Jp.COERCERTLFULL]:Kp[Jp.COERCERTL],u;for(;(u=c.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||u.index+u[0].length!==t.index+t[0].length)&&(t=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(t===null)return null;let n=t[2],s=t[3]||"0",i=t[4]||"0",o=e.includePrerelease&&t[5]?`-${t[5]}`:"",a=e.includePrerelease&&t[6]?`+${t[6]}`:"";return lQ(`${n}.${s}.${i}${o}${a}`,e)};jP.exports=fQ});var HP=C((lOe,$P)=>{var dS=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,t)}return this}};$P.exports=dS});var _n=C((fOe,XP)=>{var pQ=/\s+/g,hS=class r{constructor(e,t){if(t=hQ(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof mS)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(pQ," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!YP(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&yQ(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&_Q)|(this.options.loose&&TQ))+":"+e,s=WP.get(n);if(s)return s;let i=this.options.loose,o=i?Wr[Fr.HYPHENRANGELOOSE]:Wr[Fr.HYPHENRANGE];e=e.replace(o,wQ(this.options.includePrerelease)),yt("hyphen replace",e),e=e.replace(Wr[Fr.COMPARATORTRIM],gQ),yt("comparator trim",e),e=e.replace(Wr[Fr.TILDETRIM],EQ),yt("tilde trim",e),e=e.replace(Wr[Fr.CARETTRIM],SQ),yt("caret trim",e);let a=e.split(" ").map(f=>AQ(f,this.options)).join(" ").split(/\s+/).map(f=>PQ(f,this.options));i&&(a=a.filter(f=>(yt("loose invalid filter",f,this.options),!!f.match(Wr[Fr.COMPARATORLOOSE])))),yt("range list",a);let c=new Map,u=a.map(f=>new mS(f,this.options));for(let f of u){if(YP(f))return[f];c.set(f.value,f)}c.size>1&&c.has("")&&c.delete("");let l=[...c.values()];return WP.set(n,l),l}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>zP(n,t)&&e.set.some(s=>zP(s,t)&&n.every(i=>s.every(o=>i.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new mQ(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(RQ(this.set[t],e,this.options))return!0;return!1}};XP.exports=hS;var dQ=HP(),WP=new dQ,hQ=qp(),mS=al(),yt=sl(),mQ=yr(),{safeRe:Wr,t:Fr,comparatorTrimReplace:gQ,tildeTrimReplace:EQ,caretTrimReplace:SQ}=ja(),{FLAG_INCLUDE_PRERELEASE:_Q,FLAG_LOOSE:TQ}=il(),YP=r=>r.value==="<0.0.0-0",yQ=r=>r.value==="",zP=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},AQ=(r,e)=>(yt("comp",r,e),r=vQ(r,e),yt("caret",r),r=OQ(r,e),yt("tildes",r),r=xQ(r,e),yt("xrange",r),r=IQ(r,e),yt("stars",r),r),Vr=r=>!r||r.toLowerCase()==="x"||r==="*",OQ=(r,e)=>r.trim().split(/\s+/).map(t=>CQ(t,e)).join(" "),CQ=(r,e)=>{let t=e.loose?Wr[Fr.TILDELOOSE]:Wr[Fr.TILDE];return r.replace(t,(n,s,i,o,a)=>{yt("tilde",r,n,s,i,o,a);let c;return Vr(s)?c="":Vr(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:Vr(o)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:a?(yt("replaceTilde pr",a),c=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,yt("tilde return",c),c})},vQ=(r,e)=>r.trim().split(/\s+/).map(t=>DQ(t,e)).join(" "),DQ=(r,e)=>{yt("caret",r,e);let t=e.loose?Wr[Fr.CARETLOOSE]:Wr[Fr.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,o,a,c)=>{yt("caret",r,s,i,o,a,c);let u;return Vr(i)?u="":Vr(o)?u=`>=${i}.0.0${n} <${+i+1}.0.0-0`:Vr(a)?i==="0"?u=`>=${i}.${o}.0${n} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.0${n} <${+i+1}.0.0-0`:c?(yt("replaceCaret pr",c),i==="0"?o==="0"?u=`>=${i}.${o}.${a}-${c} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a}-${c} <${+i+1}.0.0-0`):(yt("no pr"),i==="0"?o==="0"?u=`>=${i}.${o}.${a}${n} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a}${n} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),yt("caret return",u),u})},xQ=(r,e)=>(yt("replaceXRanges",r,e),r.split(/\s+/).map(t=>bQ(t,e)).join(" ")),bQ=(r,e)=>{r=r.trim();let t=e.loose?Wr[Fr.XRANGELOOSE]:Wr[Fr.XRANGE];return r.replace(t,(n,s,i,o,a,c)=>{yt("xRange",r,n,s,i,o,a,c);let u=Vr(i),l=u||Vr(o),f=l||Vr(a),p=f;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&p?(l&&(o=0),a=0,s===">"?(s=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",l?i=+i+1:o=+o+1),s==="<"&&(c="-0"),n=`${s+i}.${o}.${a}${c}`):l?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:f&&(n=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),yt("xRange return",n),n})},IQ=(r,e)=>(yt("replaceStars",r,e),r.trim().replace(Wr[Fr.STAR],"")),PQ=(r,e)=>(yt("replaceGTE0",r,e),r.trim().replace(Wr[e.includePrerelease?Fr.GTE0PRE:Fr.GTE0],"")),wQ=r=>(e,t,n,s,i,o,a,c,u,l,f,p)=>(Vr(n)?t="":Vr(s)?t=`>=${n}.0.0${r?"-0":""}`:Vr(i)?t=`>=${n}.${s}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,Vr(u)?c="":Vr(l)?c=`<${+u+1}.0.0-0`:Vr(f)?c=`<${u}.${+l+1}.0-0`:p?c=`<=${u}.${l}.${f}-${p}`:r?c=`<${u}.${l}.${+f+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),RQ=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(yt(r[n].semver),r[n].semver!==mS.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var al=C((pOe,tw)=>{var cl=Symbol("SemVer ANY"),SS=class r{static get ANY(){return cl}constructor(e,t){if(t=KP(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),ES("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===cl?this.value="":this.value=this.operator+this.semver.version,ES("comp",this)}parse(e){let t=this.options.loose?JP[QP.COMPARATORLOOSE]:JP[QP.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new ZP(n[2],this.options.loose):this.semver=cl}toString(){return this.value}test(e){if(ES("Comparator.test",e,this.options.loose),this.semver===cl||e===cl)return!0;if(typeof e=="string")try{e=new ZP(e,this.options)}catch{return!1}return gS(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new ew(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new ew(this.value,t).test(e.semver):(t=KP(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||gS(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||gS(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};tw.exports=SS;var KP=qp(),{safeRe:JP,t:QP}=ja(),gS=pS(),ES=sl(),ZP=yr(),ew=_n()});var ul=C((dOe,rw)=>{var LQ=_n(),MQ=(r,e,t)=>{try{e=new LQ(e,t)}catch{return!1}return e.test(r)};rw.exports=MQ});var iw=C((hOe,nw)=>{var NQ=_n(),BQ=(r,e)=>new NQ(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));nw.exports=BQ});var ow=C((mOe,sw)=>{var UQ=yr(),FQ=_n(),VQ=(r,e,t)=>{let n=null,s=null,i=null;try{i=new FQ(e,t)}catch{return null}return r.forEach(o=>{i.test(o)&&(!n||s.compare(o)===-1)&&(n=o,s=new UQ(n,t))}),n};sw.exports=VQ});var cw=C((gOe,aw)=>{var GQ=yr(),kQ=_n(),jQ=(r,e,t)=>{let n=null,s=null,i=null;try{i=new kQ(e,t)}catch{return null}return r.forEach(o=>{i.test(o)&&(!n||s.compare(o)===1)&&(n=o,s=new GQ(n,t))}),n};aw.exports=jQ});var fw=C((EOe,lw)=>{var _S=yr(),qQ=_n(),uw=ol(),$Q=(r,e)=>{r=new qQ(r,e);let t=new _S("0.0.0");if(r.test(t)||(t=new _S("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let s=r.set[n],i=null;s.forEach(o=>{let a=new _S(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||uw(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!t||uw(t,i))&&(t=i)}return t&&r.test(t)?t:null};lw.exports=$Q});var dw=C((SOe,pw)=>{var HQ=_n(),WQ=(r,e)=>{try{return new HQ(r,e).range||"*"}catch{return null}};pw.exports=WQ});var Qp=C((_Oe,Ew)=>{var YQ=yr(),gw=al(),{ANY:zQ}=gw,XQ=_n(),KQ=ul(),hw=ol(),mw=Yp(),JQ=Xp(),QQ=zp(),ZQ=(r,e,t,n)=>{r=new YQ(r,n),e=new XQ(e,n);let s,i,o,a,c;switch(t){case">":s=hw,i=JQ,o=mw,a=">",c=">=";break;case"<":s=mw,i=QQ,o=hw,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(KQ(r,e,n))return!1;for(let u=0;u<e.set.length;++u){let l=e.set[u],f=null,p=null;if(l.forEach(d=>{d.semver===zQ&&(d=new gw(">=0.0.0")),f=f||d,p=p||d,s(d.semver,f.semver,n)?f=d:o(d.semver,p.semver,n)&&(p=d)}),f.operator===a||f.operator===c||(!p.operator||p.operator===a)&&i(r,p.semver))return!1;if(p.operator===c&&o(r,p.semver))return!1}return!0};Ew.exports=ZQ});var _w=C((TOe,Sw)=>{var eZ=Qp(),tZ=(r,e,t)=>eZ(r,e,">",t);Sw.exports=tZ});var yw=C((yOe,Tw)=>{var rZ=Qp(),nZ=(r,e,t)=>rZ(r,e,"<",t);Tw.exports=nZ});var Cw=C((AOe,Ow)=>{var Aw=_n(),iZ=(r,e,t)=>(r=new Aw(r,t),e=new Aw(e,t),r.intersects(e,t));Ow.exports=iZ});var Dw=C((OOe,vw)=>{var sZ=ul(),oZ=Sn();vw.exports=(r,e,t)=>{let n=[],s=null,i=null,o=r.sort((l,f)=>oZ(l,f,t));for(let l of o)sZ(l,e,t)?(i=l,s||(s=l)):(i&&n.push([s,i]),i=null,s=null);s&&n.push([s,null]);let a=[];for(let[l,f]of n)l===f?a.push(l):!f&&l===o[0]?a.push("*"):f?l===o[0]?a.push(`<=${f}`):a.push(`${l} - ${f}`):a.push(`>=${l}`);let c=a.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return c.length<u.length?c:e}});var Rw=C((COe,ww)=>{var xw=_n(),yS=al(),{ANY:TS}=yS,ll=ul(),AS=Sn(),aZ=(r,e,t={})=>{if(r===e)return!0;r=new xw(r,t),e=new xw(e,t);let n=!1;e:for(let s of r.set){for(let i of e.set){let o=uZ(s,i,t);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},cZ=[new yS(">=0.0.0-0")],bw=[new yS(">=0.0.0")],uZ=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===TS){if(e.length===1&&e[0].semver===TS)return!0;t.includePrerelease?r=cZ:r=bw}if(e.length===1&&e[0].semver===TS){if(t.includePrerelease)return!0;e=bw}let n=new Set,s,i;for(let d of r)d.operator===">"||d.operator===">="?s=Iw(s,d,t):d.operator==="<"||d.operator==="<="?i=Pw(i,d,t):n.add(d.semver);if(n.size>1)return null;let o;if(s&&i){if(o=AS(s.semver,i.semver,t),o>0)return null;if(o===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let d of n){if(s&&!ll(d,String(s),t)||i&&!ll(d,String(i),t))return null;for(let m of e)if(!ll(d,String(m),t))return!1;return!0}let a,c,u,l,f=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,p=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;f&&f.prerelease.length===1&&i.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let d of e){if(l=l||d.operator===">"||d.operator===">=",u=u||d.operator==="<"||d.operator==="<=",s){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator===">"||d.operator===">="){if(a=Iw(s,d,t),a===d&&a!==s)return!1}else if(s.operator===">="&&!ll(s.semver,String(d),t))return!1}if(i){if(f&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===f.major&&d.semver.minor===f.minor&&d.semver.patch===f.patch&&(f=!1),d.operator==="<"||d.operator==="<="){if(c=Pw(i,d,t),c===d&&c!==i)return!1}else if(i.operator==="<="&&!ll(i.semver,String(d),t))return!1}if(!d.operator&&(i||s)&&o!==0)return!1}return!(s&&u&&!i&&o!==0||i&&l&&!s&&o!==0||p||f)},Iw=(r,e,t)=>{if(!r)return e;let n=AS(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},Pw=(r,e,t)=>{if(!r)return e;let n=AS(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};ww.exports=aZ});var Bw=C((vOe,Nw)=>{var OS=ja(),Lw=il(),lZ=yr(),Mw=cS(),fZ=So(),pZ=oP(),dZ=cP(),hZ=fP(),mZ=hP(),gZ=gP(),EZ=SP(),SZ=TP(),_Z=AP(),TZ=Sn(),yZ=DP(),AZ=bP(),OZ=Wp(),CZ=RP(),vZ=MP(),DZ=ol(),xZ=Yp(),bZ=lS(),IZ=fS(),PZ=zp(),wZ=Xp(),RZ=pS(),LZ=qP(),MZ=al(),NZ=_n(),BZ=ul(),UZ=iw(),FZ=ow(),VZ=cw(),GZ=fw(),kZ=dw(),jZ=Qp(),qZ=_w(),$Z=yw(),HZ=Cw(),WZ=Dw(),YZ=Rw();Nw.exports={parse:fZ,valid:pZ,clean:dZ,inc:hZ,diff:mZ,major:gZ,minor:EZ,patch:SZ,prerelease:_Z,compare:TZ,rcompare:yZ,compareLoose:AZ,compareBuild:OZ,sort:CZ,rsort:vZ,gt:DZ,lt:xZ,eq:bZ,neq:IZ,gte:PZ,lte:wZ,cmp:RZ,coerce:LZ,Comparator:MZ,Range:NZ,satisfies:BZ,toComparators:UZ,maxSatisfying:FZ,minSatisfying:VZ,minVersion:GZ,validRange:kZ,outside:jZ,gtr:qZ,ltr:$Z,intersects:HZ,simplifyRange:WZ,subset:YZ,SemVer:lZ,re:OS.re,src:OS.src,tokens:OS.t,SEMVER_SPEC_VERSION:Lw.SEMVER_SPEC_VERSION,RELEASE_TYPES:Lw.RELEASE_TYPES,compareIdentifiers:Mw.compareIdentifiers,rcompareIdentifiers:Mw.rcompareIdentifiers}});var kw=C((DOe,Gw)=>{"use strict";var vS=Object.defineProperty,zZ=Object.getOwnPropertyDescriptor,XZ=Object.getOwnPropertyNames,KZ=Object.prototype.hasOwnProperty,JZ=(r,e)=>{for(var t in e)vS(r,t,{get:e[t],enumerable:!0})},QZ=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of XZ(e))!KZ.call(r,s)&&s!==t&&vS(r,s,{get:()=>e[s],enumerable:!(n=zZ(e,s))||n.enumerable});return r},ZZ=r=>QZ(vS({},"__esModule",{value:!0}),r),Fw={};JZ(Fw,{ANSI_RESET:()=>ree,isSupported:()=>iee,terminalLink:()=>nee});Gw.exports=ZZ(Fw);var eee=["DOMTERM","WT_SESSION","KONSOLE_VERSION"];function Uw(r){let[e=0,t=0,n=0]=r.split(".").map(Number);return{major:e,minor:t,patch:n}}function ed(r){return process.env[r]!==void 0}function Zp(r){return process.env[r]||""}function fl(r,e){return ed(r)&&e.includes(Zp(r))}function tee(r){return r.some(e=>ed(e))}function Vw(){if(fl("TERMI_LINK_HYPERLINK",["1","true","always","enabled"]))return!0;if(fl("TERMI_LINK_HYPERLINK",["0","false","never","disabled"]))return!1;if(ed("VTE_VERSION"))return Uw(Zp("VTE_VERSION")).major>5e3;if(ed("TERM_PROGRAM")){let r=Uw(Zp("TERM_PROGRAM_VERSION"));switch(Zp("TERM_PROGRAM")){case"iTerm.app":return r.major>3||r.major===3&&r.minor>=1;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72;case"ghostty":return r.major>=1;case"terminology":return r.major>=1&&r.minor>=2;case"Hyper":return r.major>=3;case"alacritty":return r.major>=0&&r.minor>=11;case"kitty":return r.major>=0&&r.minor>=19;default:return!1}}return!!(fl("TERM",["xterm-kitty","alacritty","alacritty-direct","xterm-ghostty"])||fl("COLORTERM",["xfce4-terminal"])||fl("TERMINAL_EMULATOR",["JetBrains-JediTerm"])||tee(eee))}var ree="\x1B[0m";function CS(r){return r.replace(/[\x00-\x1F\x7F]/g,"")}function nee(r,e,t){let{fallback:n=null}=t||{};if(Vw()){let s=CS(e);return`\x1B]8;;${s}\x07${r||s}\x1B]8;;\x07`}return n==null?r?`${r} (${CS(e)})`:`${CS(e)}`:n===!1?"":n(r,e)}function iee(){return Vw()}});var $w=C((xOe,qw)=>{"use strict";var see=W("os"),jw=see.homedir();qw.exports=r=>{if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);return jw?r.replace(/^~(?=$|\/|\\)/,jw):r}});var fR=C((x1e,lR)=>{"use strict";var MS=W("fs"),jee=W("util"),qee=W("path"),zn,NS=class{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles=typeof e.updateFiles=="boolean"?e.updateFiles:!0,this.locale=e.locale||"en",this.fallbackToLanguage=typeof e.fallbackToLanguage=="boolean"?e.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let t=e.shift(),n=function(){};return typeof e[e.length-1]=="function"&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),zn.format.apply(zn.format,[this.cache[this.locale][t]||t].concat(e))}__n(){let e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),s=e.shift(),i=function(){};typeof e[e.length-1]=="function"&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let o=s===1?t:n;this.cache[this.locale][t]&&(o=this.cache[this.locale][t][s===1?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();let a=[o];return~o.indexOf("%d")&&a.push(s),zn.format.apply(zn.format,a.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach(function(s,i){let o=t[i+1];n+=s,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let e=this,t=this.writeQueue[0],n=t.directory,s=t.locale,i=t.cb,o=this._resolveLocaleFile(n,s),a=JSON.stringify(this.cache[s],null,2);zn.fs.writeFile(o,a,"utf-8",function(c){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(c)})}_readLocaleFile(){let e={},t=this._resolveLocaleFile(this.directory,this.locale);try{zn.fs.readFileSync&&(e=JSON.parse(zn.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),n.code==="ENOENT")e={};else throw n}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=zn.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){let s=zn.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(s)&&(n=s)}return n}_fileExistsSync(e){return zn.exists(e)}};function $ee(r,e){zn=e;let t=new NS(r);return{__:t.__.bind(t),__n:t.__n.bind(t),setLocale:t.setLocale.bind(t),getLocale:t.getLocale.bind(t),updateLocale:t.updateLocale.bind(t),locale:t.locale}}var Hee={fs:{readFileSync:MS.readFileSync,writeFile:MS.writeFile},format:jee.format,resolve:qee.resolve,exists:r=>{try{return MS.statSync(r).isFile()}catch{return!1}}},Wee=r=>$ee(r,Hee);lR.exports=Wee});var kS=C((b1e,_R)=>{"use strict";var Yee=W("util"),pR=W("path"),zee=W("fs");function ml(r){if(r!==r.toLowerCase()&&r!==r.toUpperCase()||(r=r.toLowerCase()),r.indexOf("-")===-1&&r.indexOf("_")===-1)return r;{let t="",n=!1,s=r.match(/^-+/);for(let i=s?s[0].length:0;i<r.length;i++){let o=r.charAt(i);n&&(n=!1,o=o.toUpperCase()),i!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(t+=o)}return t}}function gR(r,e){let t=r.toLowerCase();e=e||"-";let n="";for(let s=0;s<r.length;s++){let i=t.charAt(s),o=r.charAt(s);i!==o&&s>0?n+=`${e}${t.charAt(s)}`:n+=o}return n}function ER(r){return r==null?!1:typeof r=="number"||/^0x[0-9a-f]+$/i.test(r)?!0:/^0[^.]/.test(r)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(r)}function Xee(r){if(Array.isArray(r))return r.map(o=>typeof o!="string"?o+"":o);r=r.trim();let e=0,t=null,n=null,s=null,i=[];for(let o=0;o<r.length;o++){if(t=n,n=r.charAt(o),n===" "&&!s){t!==" "&&e++;continue}n===s?s=null:(n==="'"||n==='"')&&!s&&(s=n),i[e]||(i[e]=""),i[e]+=n}return i}var Xn;(function(r){r.BOOLEAN="boolean",r.STRING="string",r.NUMBER="number",r.ARRAY="array"})(Xn||(Xn={}));var Fi,GS=class{constructor(e){Fi=e}parse(e,t){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),s=Xee(e),i=typeof e=="string",o=Kee(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),c=Object.assign(Object.create(null),n.default),u=n.configObjects||[],l=n.envPrefix,f=a["populate--"],p=f?"--":"_",d=Object.create(null),m=Object.create(null),g=n.__||Fi.format,h={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},E=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,_=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(I){let R=typeof I=="object"?I.key:I,$=Object.keys(I).map(function(G){return{boolean:"bools",string:"strings",number:"numbers"}[G]}).filter(Boolean).pop();$&&(h[$][R]=!0),h.arrays[R]=!0,h.keys.push(R)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(I){h.bools[I]=!0,h.keys.push(I)}),[].concat(n.string||[]).filter(Boolean).forEach(function(I){h.strings[I]=!0,h.keys.push(I)}),[].concat(n.number||[]).filter(Boolean).forEach(function(I){h.numbers[I]=!0,h.keys.push(I)}),[].concat(n.count||[]).filter(Boolean).forEach(function(I){h.counts[I]=!0,h.keys.push(I)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(I){h.normalize[I]=!0,h.keys.push(I)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([I,R])=>{typeof R=="number"&&(h.nargs[I]=R,h.keys.push(I))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([I,R])=>{typeof R=="function"&&(h.coercions[I]=R,h.keys.push(I))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(I){h.configs[I]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([I,R])=>{(typeof R=="boolean"||typeof R=="function")&&(h.configs[I]=R)})),de(n.key,o,n.default,h.arrays),Object.keys(c).forEach(function(I){(h.aliases[I]||[]).forEach(function(R){c[R]=c[I]})});let S=null;Se();let y=[],T=Object.assign(Object.create(null),{_:[]}),b={};for(let I=0;I<s.length;I++){let R=s[I],$=R.replace(/^-{3,}/,"---"),G,w,Z,J,se,Je;if(R!=="--"&&/^-/.test(R)&&N(R))v(R);else if($.match(/^---+(=|$)/)){v(R);continue}else if(R.match(/^--.+=/)||!a["short-option-groups"]&&R.match(/^-.+=/))J=R.match(/^--?([^=]+)=([\s\S]*)$/),J!==null&&Array.isArray(J)&&J.length>=3&&(q(J[1],h.arrays)?I=A(I,J[1],s,J[2]):q(J[1],h.nargs)!==!1?I=x(I,J[1],s,J[2]):D(J[1],J[2],!0));else if(R.match(_)&&a["boolean-negation"])J=R.match(_),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],D(w,q(w,h.arrays)?[!1]:!1));else if(R.match(/^--.+/)||!a["short-option-groups"]&&R.match(/^-[^-]+/))J=R.match(/^--?(.+)/),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],q(w,h.arrays)?I=A(I,w,s):q(w,h.nargs)!==!1?I=x(I,w,s):(se=s[I+1],se!==void 0&&(!se.match(/^-/)||se.match(E))&&!q(w,h.bools)&&!q(w,h.counts)||/^(true|false)$/.test(se)?(D(w,se),I++):D(w,oe(w))));else if(R.match(/^-.\..+=/))J=R.match(/^-([^=]+)=([\s\S]*)$/),J!==null&&Array.isArray(J)&&J.length>=3&&D(J[1],J[2]);else if(R.match(/^-.\..+/)&&!R.match(E))se=s[I+1],J=R.match(/^-(.\..+)/),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],se!==void 0&&!se.match(/^-/)&&!q(w,h.bools)&&!q(w,h.counts)?(D(w,se),I++):D(w,oe(w)));else if(R.match(/^-[^-]+/)&&!R.match(E)){Z=R.slice(1,-1).split(""),G=!1;for(let st=0;st<Z.length;st++){if(se=R.slice(st+2),Z[st+1]&&Z[st+1]==="="){Je=R.slice(st+3),w=Z[st],q(w,h.arrays)?I=A(I,w,s,Je):q(w,h.nargs)!==!1?I=x(I,w,s,Je):D(w,Je),G=!0;break}if(se==="-"){D(Z[st],se);continue}if(/[A-Za-z]/.test(Z[st])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(se)&&q(se,h.bools)===!1){D(Z[st],se),G=!0;break}if(Z[st+1]&&Z[st+1].match(/\W/)){D(Z[st],se),G=!0;break}else D(Z[st],oe(Z[st]))}w=R.slice(-1)[0],!G&&w!=="-"&&(q(w,h.arrays)?I=A(I,w,s):q(w,h.nargs)!==!1?I=x(I,w,s):(se=s[I+1],se!==void 0&&(!/^(-|--)[^-]/.test(se)||se.match(E))&&!q(w,h.bools)&&!q(w,h.counts)||/^(true|false)$/.test(se)?(D(w,se),I++):D(w,oe(w))))}else if(R.match(/^-[0-9]$/)&&R.match(E)&&q(R.slice(1),h.bools))w=R.slice(1),D(w,oe(w));else if(R==="--"){y=s.slice(I+1);break}else if(a["halt-at-non-option"]){y=s.slice(I);break}else v(R)}ee(T,!0),ee(T,!1),H(T),X(),Ee(T,h.aliases,c,!0),ne(T),a["set-placeholder-key"]&&ie(T),Object.keys(h.counts).forEach(function(I){K(T,I.split("."))||D(I,0)}),f&&y.length&&(T[p]=[]),y.forEach(function(I){T[p].push(I)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(T).filter(I=>I!=="--"&&I.includes("-")).forEach(I=>{delete T[I]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(I=>o[I])).forEach(I=>{a["camel-case-expansion"]&&I.includes("-")&&delete T[I.split(".").map(R=>ml(R)).join(".")],delete T[I]});function v(I){let R=V("_",I);(typeof R=="string"||typeof R=="number")&&T._.push(R)}function x(I,R,$,G){let w,Z=q(R,h.nargs);if(Z=typeof Z!="number"||isNaN(Z)?1:Z,Z===0)return De(G)||(S=Error(g("Argument unexpected for: %s",R))),D(R,oe(R)),I;let J=De(G)?0:1;if(a["nargs-eats-options"])$.length-(I+1)+J<Z&&(S=Error(g("Not enough arguments following: %s",R))),J=Z;else{for(w=I+1;w<$.length&&(!$[w].match(/^-[^0-9]/)||$[w].match(E)||N($[w]));w++)J++;J<Z&&(S=Error(g("Not enough arguments following: %s",R)))}let se=Math.min(J,Z);for(!De(G)&&se>0&&(D(R,G),se--),w=I+1;w<se+I+1;w++)D(R,$[w]);return I+se}function A(I,R,$,G){let w=[],Z=G||$[I+1],J=q(R,h.nargs);if(q(R,h.bools)&&!/^(true|false)$/.test(Z))w.push(!0);else if(De(Z)||De(G)&&/^-/.test(Z)&&!E.test(Z)&&!N(Z)){if(c[R]!==void 0){let se=c[R];w=Array.isArray(se)?se:[se]}}else{De(G)||w.push(F(R,G,!0));for(let se=I+1;se<$.length&&!(!a["greedy-arrays"]&&w.length>0||J&&typeof J=="number"&&w.length>=J||(Z=$[se],/^-/.test(Z)&&!E.test(Z)&&!N(Z)));se++)I=se,w.push(F(R,Z,i))}return typeof J=="number"&&(J&&w.length<J||isNaN(J)&&w.length===0)&&(S=Error(g("Not enough arguments following: %s",R))),D(R,w),I}function D(I,R,$=i){if(/-/.test(I)&&a["camel-case-expansion"]){let Z=I.split(".").map(function(J){return ml(J)}).join(".");P(I,Z)}let G=F(I,R,$),w=I.split(".");le(T,w,G),h.aliases[I]&&h.aliases[I].forEach(function(Z){let J=Z.split(".");le(T,J,G)}),w.length>1&&a["dot-notation"]&&(h.aliases[w[0]]||[]).forEach(function(Z){let J=Z.split("."),se=[].concat(w);se.shift(),J=J.concat(se),(h.aliases[I]||[]).includes(J.join("."))||le(T,J,G)}),q(I,h.normalize)&&!q(I,h.arrays)&&[I].concat(h.aliases[I]||[]).forEach(function(J){Object.defineProperty(b,J,{enumerable:!0,get(){return R},set(se){R=typeof se=="string"?Fi.normalize(se):se}})})}function P(I,R){h.aliases[I]&&h.aliases[I].length||(h.aliases[I]=[R],d[R]=!0),h.aliases[R]&&h.aliases[R].length||P(R,I)}function F(I,R,$){$&&(R=Jee(R)),(q(I,h.bools)||q(I,h.counts))&&typeof R=="string"&&(R=R==="true");let G=Array.isArray(R)?R.map(function(w){return V(I,w)}):V(I,R);return q(I,h.counts)&&(De(G)||typeof G=="boolean")&&(G=BS()),q(I,h.normalize)&&q(I,h.arrays)&&(Array.isArray(R)?G=R.map(w=>Fi.normalize(w)):G=Fi.normalize(R)),G}function V(I,R){return!a["parse-positional-numbers"]&&I==="_"||!q(I,h.strings)&&!q(I,h.bools)&&!Array.isArray(R)&&(ER(R)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${R}`)))||!De(R)&&q(I,h.numbers))&&(R=Number(R)),R}function H(I){let R=Object.create(null);Ee(R,h.aliases,c),Object.keys(h.configs).forEach(function($){let G=I[$]||R[$];if(G)try{let w=null,Z=Fi.resolve(Fi.cwd(),G),J=h.configs[$];if(typeof J=="function"){try{w=J(Z)}catch(se){w=se}if(w instanceof Error){S=w;return}}else w=Fi.require(Z);k(w)}catch(w){w.name==="PermissionDenied"?S=w:I[$]&&(S=Error(g("Invalid JSON config file: %s",G)))}})}function k(I,R){Object.keys(I).forEach(function($){let G=I[$],w=R?R+"."+$:$;typeof G=="object"&&G!==null&&!Array.isArray(G)&&a["dot-notation"]?k(G,w):(!K(T,w.split("."))||q(w,h.arrays)&&a["combine-arrays"])&&D(w,G)})}function X(){typeof u<"u"&&u.forEach(function(I){k(I)})}function ee(I,R){if(typeof l>"u")return;let $=typeof l=="string"?l:"",G=Fi.env();Object.keys(G).forEach(function(w){if($===""||w.lastIndexOf($,0)===0){let Z=w.split("__").map(function(J,se){return se===0&&(J=J.substring($.length)),ml(J)});(R&&h.configs[Z.join(".")]||!R)&&!K(I,Z)&&D(Z.join("."),G[w])}})}function ne(I){let R,$=new Set;Object.keys(I).forEach(function(G){if(!$.has(G)&&(R=q(G,h.coercions),typeof R=="function"))try{let w=V(G,R(I[G]));[].concat(h.aliases[G]||[],G).forEach(Z=>{$.add(Z),I[Z]=w})}catch(w){S=w}})}function ie(I){return h.keys.forEach(R=>{~R.indexOf(".")||typeof I[R]>"u"&&(I[R]=void 0)}),I}function Ee(I,R,$,G=!1){Object.keys($).forEach(function(w){K(I,w.split("."))||(le(I,w.split("."),$[w]),G&&(m[w]=!0),(R[w]||[]).forEach(function(Z){K(I,Z.split("."))||le(I,Z.split("."),$[w])}))})}function K(I,R){let $=I;a["dot-notation"]||(R=[R.join(".")]),R.slice(0,-1).forEach(function(w){$=$[w]||{}});let G=R[R.length-1];return typeof $!="object"?!1:G in $}function le(I,R,$){let G=I;a["dot-notation"]||(R=[R.join(".")]),R.slice(0,-1).forEach(function(Je){Je=dR(Je),typeof G=="object"&&G[Je]===void 0&&(G[Je]={}),typeof G[Je]!="object"||Array.isArray(G[Je])?(Array.isArray(G[Je])?G[Je].push({}):G[Je]=[G[Je],{}],G=G[Je][G[Je].length-1]):G=G[Je]});let w=dR(R[R.length-1]),Z=q(R.join("."),h.arrays),J=Array.isArray($),se=a["duplicate-arguments-array"];!se&&q(w,h.nargs)&&(se=!0,(!De(G[w])&&h.nargs[w]===1||Array.isArray(G[w])&&G[w].length===h.nargs[w])&&(G[w]=void 0)),$===BS()?G[w]=BS(G[w]):Array.isArray(G[w])?se&&Z&&J?G[w]=a["flatten-duplicate-arrays"]?G[w].concat($):(Array.isArray(G[w][0])?G[w]:[G[w]]).concat([$]):!se&&!!Z==!!J?G[w]=$:G[w]=G[w].concat([$]):G[w]===void 0&&Z?G[w]=J?$:[$]:se&&!(G[w]===void 0||q(w,h.counts)||q(w,h.bools))?G[w]=[G[w],$]:G[w]=$}function de(...I){I.forEach(function(R){Object.keys(R||{}).forEach(function($){h.aliases[$]||(h.aliases[$]=[].concat(o[$]||[]),h.aliases[$].concat($).forEach(function(G){if(/-/.test(G)&&a["camel-case-expansion"]){let w=ml(G);w!==$&&h.aliases[$].indexOf(w)===-1&&(h.aliases[$].push(w),d[w]=!0)}}),h.aliases[$].concat($).forEach(function(G){if(G.length>1&&/[A-Z]/.test(G)&&a["camel-case-expansion"]){let w=gR(G,"-");w!==$&&h.aliases[$].indexOf(w)===-1&&(h.aliases[$].push(w),d[w]=!0)}}),h.aliases[$].forEach(function(G){h.aliases[G]=[$].concat(h.aliases[$].filter(function(w){return G!==w}))}))})})}function q(I,R){let $=[].concat(h.aliases[I]||[],I),G=Object.keys(R),w=$.find(Z=>G.includes(Z));return w?R[w]:!1}function ke(I){let R=Object.keys(h);return[].concat(R.map(G=>h[G])).some(function(G){return Array.isArray(G)?G.includes(I):G[I]})}function U(I,...R){return[].concat(...R).some(function(G){let w=I.match(G);return w&&ke(w[1])})}function L(I){if(I.match(E)||!I.match(/^-[^-]+/))return!1;let R=!0,$,G=I.slice(1).split("");for(let w=0;w<G.length;w++){if($=I.slice(w+2),!ke(G[w])){R=!1;break}if(G[w+1]&&G[w+1]==="="||$==="-"||/[A-Za-z]/.test(G[w])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test($)||G[w+1]&&G[w+1].match(/\W/))break}return R}function N(I){return a["unknown-options-as-args"]&&z(I)}function z(I){return I=I.replace(/^-{3,}/,"--"),I.match(E)||L(I)?!1:!U(I,/^-+([^=]+?)=[\s\S]*$/,_,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function oe(I){return!q(I,h.bools)&&!q(I,h.counts)&&`${I}`in c?c[I]:fe(Re(I))}function fe(I){return{[Xn.BOOLEAN]:!0,[Xn.STRING]:"",[Xn.NUMBER]:void 0,[Xn.ARRAY]:[]}[I]}function Re(I){let R=Xn.BOOLEAN;return q(I,h.strings)?R=Xn.STRING:q(I,h.numbers)?R=Xn.NUMBER:q(I,h.bools)?R=Xn.BOOLEAN:q(I,h.arrays)&&(R=Xn.ARRAY),R}function De(I){return I===void 0}function Se(){Object.keys(h.counts).find(I=>q(I,h.arrays)?(S=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",I)),!0):q(I,h.nargs)?(S=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",I)),!0):!1)}return{aliases:Object.assign({},h.aliases),argv:Object.assign(b,T),configuration:a,defaulted:Object.assign({},m),error:S,newAliases:Object.assign({},d)}}};function Kee(r){let e=[],t=Object.create(null),n=!0;for(Object.keys(r).forEach(function(s){e.push([].concat(r[s],s))});n;){n=!1;for(let s=0;s<e.length;s++)for(let i=s+1;i<e.length;i++)if(e[s].filter(function(a){return e[i].indexOf(a)!==-1}).length){e[s]=e[s].concat(e[i]),e.splice(i,1),n=!0;break}}return e.forEach(function(s){s=s.filter(function(o,a,c){return c.indexOf(o)===a});let i=s.pop();i!==void 0&&typeof i=="string"&&(t[i]=s)}),t}function BS(r){return r!==void 0?r+1:1}function dR(r){return r==="__proto__"?"___proto___":r}function Jee(r){return typeof r=="string"&&(r[0]==="'"||r[0]==='"')&&r[r.length-1]===r[0]?r.substring(1,r.length-1):r}var US,FS,VS,hR=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,mR=(FS=(US=process==null?void 0:process.versions)===null||US===void 0?void 0:US.node)!==null&&FS!==void 0?FS:(VS=process==null?void 0:process.version)===null||VS===void 0?void 0:VS.slice(1);if(mR&&Number(mR.match(/^([^.]+)/)[1])<hR)throw Error(`yargs parser supports a minimum Node.js version of ${hR}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Qee=process?process.env:{},SR=new GS({cwd:process.cwd,env:()=>Qee,format:Yee.format,normalize:pR.normalize,resolve:pR.resolve,require:r=>{if(typeof W<"u")return W(r);if(r.match(/\.json$/))return JSON.parse(zee.readFileSync(r,"utf8"));throw Error("only .json config files are supported in ESM")}}),gl=function(e,t){return SR.parse(e.slice(),t).argv};gl.detailed=function(r,e){return SR.parse(r.slice(),e)};gl.camelCase=ml;gl.decamelize=gR;gl.looksLikeNumber=ER;_R.exports=gl});var yR=C((P1e,TR)=>{"use strict";TR.exports=({onlyFirst:r=!1}={})=>{let e=["[\\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(e,r?void 0:"g")}});var yn=C((w1e,AR)=>{"use strict";var Zee=yR();AR.exports=r=>typeof r=="string"?r.replace(Zee(),""):r});var CR=C((R1e,jS)=>{"use strict";var OR=r=>Number.isNaN(r)?!1:r>=4352&&(r<=4447||r===9001||r===9002||11904<=r&&r<=12871&&r!==12351||12880<=r&&r<=19903||19968<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65131||65281<=r&&r<=65376||65504<=r&&r<=65510||110592<=r&&r<=110593||127488<=r&&r<=127569||131072<=r&&r<=262141);jS.exports=OR;jS.exports.default=OR});var DR=C((L1e,vR)=>{"use strict";vR.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var os=C((M1e,qS)=>{"use strict";var ete=yn(),tte=CR(),rte=DR(),xR=r=>{if(typeof r!="string"||r.length===0||(r=ete(r),r.length===0))return 0;r=r.replace(rte()," ");let e=0;for(let t=0;t<r.length;t++){let n=r.codePointAt(t);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&t++,e+=tte(n)?2:1)}return e};qS.exports=xR;qS.exports.default=xR});var IR=C((N1e,bR)=>{"use strict";bR.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var $S=C((B1e,wR)=>{var El=IR(),PR={};for(let r of Object.keys(El))PR[El[r]]=r;var Ie={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};wR.exports=Ie;for(let r of Object.keys(Ie)){if(!("channels"in Ie[r]))throw new Error("missing channels property: "+r);if(!("labels"in Ie[r]))throw new Error("missing channel labels property: "+r);if(Ie[r].labels.length!==Ie[r].channels)throw new Error("channel and label counts mismatch: "+r);let{channels:e,labels:t}=Ie[r];delete Ie[r].channels,delete Ie[r].labels,Object.defineProperty(Ie[r],"channels",{value:e}),Object.defineProperty(Ie[r],"labels",{value:t})}Ie.rgb.hsl=function(r){let e=r[0]/255,t=r[1]/255,n=r[2]/255,s=Math.min(e,t,n),i=Math.max(e,t,n),o=i-s,a,c;i===s?a=0:e===i?a=(t-n)/o:t===i?a=2+(n-e)/o:n===i&&(a=4+(e-t)/o),a=Math.min(a*60,360),a<0&&(a+=360);let u=(s+i)/2;return i===s?c=0:u<=.5?c=o/(i+s):c=o/(2-i-s),[a,c*100,u*100]};Ie.rgb.hsv=function(r){let e,t,n,s,i,o=r[0]/255,a=r[1]/255,c=r[2]/255,u=Math.max(o,a,c),l=u-Math.min(o,a,c),f=function(p){return(u-p)/6/l+1/2};return l===0?(s=0,i=0):(i=l/u,e=f(o),t=f(a),n=f(c),o===u?s=n-t:a===u?s=1/3+e-n:c===u&&(s=2/3+t-e),s<0?s+=1:s>1&&(s-=1)),[s*360,i*100,u*100]};Ie.rgb.hwb=function(r){let e=r[0],t=r[1],n=r[2],s=Ie.rgb.hsl(r)[0],i=1/255*Math.min(e,Math.min(t,n));return n=1-1/255*Math.max(e,Math.max(t,n)),[s,i*100,n*100]};Ie.rgb.cmyk=function(r){let e=r[0]/255,t=r[1]/255,n=r[2]/255,s=Math.min(1-e,1-t,1-n),i=(1-e-s)/(1-s)||0,o=(1-t-s)/(1-s)||0,a=(1-n-s)/(1-s)||0;return[i*100,o*100,a*100,s*100]};function nte(r,e){return(r[0]-e[0])**2+(r[1]-e[1])**2+(r[2]-e[2])**2}Ie.rgb.keyword=function(r){let e=PR[r];if(e)return e;let t=1/0,n;for(let s of Object.keys(El)){let i=El[s],o=nte(r,i);o<t&&(t=o,n=s)}return n};Ie.keyword.rgb=function(r){return El[r]};Ie.rgb.xyz=function(r){let e=r[0]/255,t=r[1]/255,n=r[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let s=e*.4124+t*.3576+n*.1805,i=e*.2126+t*.7152+n*.0722,o=e*.0193+t*.1192+n*.9505;return[s*100,i*100,o*100]};Ie.rgb.lab=function(r){let e=Ie.rgb.xyz(r),t=e[0],n=e[1],s=e[2];t/=95.047,n/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let i=116*n-16,o=500*(t-n),a=200*(n-s);return[i,o,a]};Ie.hsl.rgb=function(r){let e=r[0]/360,t=r[1]/100,n=r[2]/100,s,i,o;if(t===0)return o=n*255,[o,o,o];n<.5?s=n*(1+t):s=n+t-n*t;let a=2*n-s,c=[0,0,0];for(let u=0;u<3;u++)i=e+1/3*-(u-1),i<0&&i++,i>1&&i--,6*i<1?o=a+(s-a)*6*i:2*i<1?o=s:3*i<2?o=a+(s-a)*(2/3-i)*6:o=a,c[u]=o*255;return c};Ie.hsl.hsv=function(r){let e=r[0],t=r[1]/100,n=r[2]/100,s=t,i=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,s*=i<=1?i:2-i;let o=(n+t)/2,a=n===0?2*s/(i+s):2*t/(n+t);return[e,a*100,o*100]};Ie.hsv.rgb=function(r){let e=r[0]/60,t=r[1]/100,n=r[2]/100,s=Math.floor(e)%6,i=e-Math.floor(e),o=255*n*(1-t),a=255*n*(1-t*i),c=255*n*(1-t*(1-i));switch(n*=255,s){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};Ie.hsv.hsl=function(r){let e=r[0],t=r[1]/100,n=r[2]/100,s=Math.max(n,.01),i,o;o=(2-t)*n;let a=(2-t)*s;return i=t*s,i/=a<=1?a:2-a,i=i||0,o/=2,[e,i*100,o*100]};Ie.hwb.rgb=function(r){let e=r[0]/360,t=r[1]/100,n=r[2]/100,s=t+n,i;s>1&&(t/=s,n/=s);let o=Math.floor(6*e),a=1-n;i=6*e-o,(o&1)!==0&&(i=1-i);let c=t+i*(a-t),u,l,f;switch(o){default:case 6:case 0:u=a,l=c,f=t;break;case 1:u=c,l=a,f=t;break;case 2:u=t,l=a,f=c;break;case 3:u=t,l=c,f=a;break;case 4:u=c,l=t,f=a;break;case 5:u=a,l=t,f=c;break}return[u*255,l*255,f*255]};Ie.cmyk.rgb=function(r){let e=r[0]/100,t=r[1]/100,n=r[2]/100,s=r[3]/100,i=1-Math.min(1,e*(1-s)+s),o=1-Math.min(1,t*(1-s)+s),a=1-Math.min(1,n*(1-s)+s);return[i*255,o*255,a*255]};Ie.xyz.rgb=function(r){let e=r[0]/100,t=r[1]/100,n=r[2]/100,s,i,o;return s=e*3.2406+t*-1.5372+n*-.4986,i=e*-.9689+t*1.8758+n*.0415,o=e*.0557+t*-.204+n*1.057,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[s*255,i*255,o*255]};Ie.xyz.lab=function(r){let e=r[0],t=r[1],n=r[2];e/=95.047,t/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let s=116*t-16,i=500*(e-t),o=200*(t-n);return[s,i,o]};Ie.lab.xyz=function(r){let e=r[0],t=r[1],n=r[2],s,i,o;i=(e+16)/116,s=t/500+i,o=i-n/200;let a=i**3,c=s**3,u=o**3;return i=a>.008856?a:(i-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,s*=95.047,i*=100,o*=108.883,[s,i,o]};Ie.lab.lch=function(r){let e=r[0],t=r[1],n=r[2],s;s=Math.atan2(n,t)*360/2/Math.PI,s<0&&(s+=360);let o=Math.sqrt(t*t+n*n);return[e,o,s]};Ie.lch.lab=function(r){let e=r[0],t=r[1],s=r[2]/360*2*Math.PI,i=t*Math.cos(s),o=t*Math.sin(s);return[e,i,o]};Ie.rgb.ansi16=function(r,e=null){let[t,n,s]=r,i=e===null?Ie.rgb.hsv(r)[2]:e;if(i=Math.round(i/50),i===0)return 30;let o=30+(Math.round(s/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return i===2&&(o+=60),o};Ie.hsv.ansi16=function(r){return Ie.rgb.ansi16(Ie.hsv.rgb(r),r[2])};Ie.rgb.ansi256=function(r){let e=r[0],t=r[1],n=r[2];return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)};Ie.ansi16.rgb=function(r){let e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let t=(~~(r>50)+1)*.5,n=(e&1)*t*255,s=(e>>1&1)*t*255,i=(e>>2&1)*t*255;return[n,s,i]};Ie.ansi256.rgb=function(r){if(r>=232){let i=(r-232)*10+8;return[i,i,i]}r-=16;let e,t=Math.floor(r/36)/5*255,n=Math.floor((e=r%36)/6)/5*255,s=e%6/5*255;return[t,n,s]};Ie.rgb.hex=function(r){let t=(((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};Ie.hex.rgb=function(r){let e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let t=e[0];e[0].length===3&&(t=t.split("").map(a=>a+a).join(""));let n=parseInt(t,16),s=n>>16&255,i=n>>8&255,o=n&255;return[s,i,o]};Ie.rgb.hcg=function(r){let e=r[0]/255,t=r[1]/255,n=r[2]/255,s=Math.max(Math.max(e,t),n),i=Math.min(Math.min(e,t),n),o=s-i,a,c;return o<1?a=i/(1-o):a=0,o<=0?c=0:s===e?c=(t-n)/o%6:s===t?c=2+(n-e)/o:c=4+(e-t)/o,c/=6,c%=1,[c*360,o*100,a*100]};Ie.hsl.hcg=function(r){let e=r[1]/100,t=r[2]/100,n=t<.5?2*e*t:2*e*(1-t),s=0;return n<1&&(s=(t-.5*n)/(1-n)),[r[0],n*100,s*100]};Ie.hsv.hcg=function(r){let e=r[1]/100,t=r[2]/100,n=e*t,s=0;return n<1&&(s=(t-n)/(1-n)),[r[0],n*100,s*100]};Ie.hcg.rgb=function(r){let e=r[0]/360,t=r[1]/100,n=r[2]/100;if(t===0)return[n*255,n*255,n*255];let s=[0,0,0],i=e%1*6,o=i%1,a=1-o,c=0;switch(Math.floor(i)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return c=(1-t)*n,[(t*s[0]+c)*255,(t*s[1]+c)*255,(t*s[2]+c)*255]};Ie.hcg.hsv=function(r){let e=r[1]/100,t=r[2]/100,n=e+t*(1-e),s=0;return n>0&&(s=e/n),[r[0],s*100,n*100]};Ie.hcg.hsl=function(r){let e=r[1]/100,n=r[2]/100*(1-e)+.5*e,s=0;return n>0&&n<.5?s=e/(2*n):n>=.5&&n<1&&(s=e/(2*(1-n))),[r[0],s*100,n*100]};Ie.hcg.hwb=function(r){let e=r[1]/100,t=r[2]/100,n=e+t*(1-e);return[r[0],(n-e)*100,(1-n)*100]};Ie.hwb.hcg=function(r){let e=r[1]/100,n=1-r[2]/100,s=n-e,i=0;return s<1&&(i=(n-s)/(1-s)),[r[0],s*100,i*100]};Ie.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};Ie.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};Ie.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};Ie.gray.hsl=function(r){return[0,0,r[0]]};Ie.gray.hsv=Ie.gray.hsl;Ie.gray.hwb=function(r){return[0,100,r[0]]};Ie.gray.cmyk=function(r){return[0,0,0,r[0]]};Ie.gray.lab=function(r){return[r[0],0,0]};Ie.gray.hex=function(r){let e=Math.round(r[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};Ie.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]}});var LR=C((U1e,RR)=>{var ad=$S();function ite(){let r={},e=Object.keys(ad);for(let t=e.length,n=0;n<t;n++)r[e[n]]={distance:-1,parent:null};return r}function ste(r){let e=ite(),t=[r];for(e[r].distance=0;t.length;){let n=t.pop(),s=Object.keys(ad[n]);for(let i=s.length,o=0;o<i;o++){let a=s[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,t.unshift(a))}}return e}function ote(r,e){return function(t){return e(r(t))}}function ate(r,e){let t=[e[r].parent,r],n=ad[e[r].parent][r],s=e[r].parent;for(;e[s].parent;)t.unshift(e[s].parent),n=ote(ad[e[s].parent][s],n),s=e[s].parent;return n.conversion=t,n}RR.exports=function(r){let e=ste(r),t={},n=Object.keys(e);for(let s=n.length,i=0;i<s;i++){let o=n[i];e[o].parent!==null&&(t[o]=ate(o,e))}return t}});var NR=C((F1e,MR)=>{var HS=$S(),cte=LR(),$a={},ute=Object.keys(HS);function lte(r){let e=function(...t){let n=t[0];return n==null?n:(n.length>1&&(t=n),r(t))};return"conversion"in r&&(e.conversion=r.conversion),e}function fte(r){let e=function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let s=r(t);if(typeof s=="object")for(let i=s.length,o=0;o<i;o++)s[o]=Math.round(s[o]);return s};return"conversion"in r&&(e.conversion=r.conversion),e}ute.forEach(r=>{$a[r]={},Object.defineProperty($a[r],"channels",{value:HS[r].channels}),Object.defineProperty($a[r],"labels",{value:HS[r].labels});let e=cte(r);Object.keys(e).forEach(n=>{let s=e[n];$a[r][n]=fte(s),$a[r][n].raw=lte(s)})});MR.exports=$a});var YS=C((V1e,GR)=>{"use strict";var BR=(r,e)=>(...t)=>`\x1B[${r(...t)+e}m`,UR=(r,e)=>(...t)=>{let n=r(...t);return`\x1B[${38+e};5;${n}m`},FR=(r,e)=>(...t)=>{let n=r(...t);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},cd=r=>r,VR=(r,e,t)=>[r,e,t],Ha=(r,e,t)=>{Object.defineProperty(r,e,{get:()=>{let n=t();return Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},WS,Wa=(r,e,t,n)=>{WS===void 0&&(WS=NR());let s=n?10:0,i={};for(let[o,a]of Object.entries(WS)){let c=o==="ansi16"?"ansi":o;o===e?i[c]=r(t,s):typeof a=="object"&&(i[c]=r(a[e],s))}return i};function pte(){let r=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,n]of Object.entries(e)){for(let[s,i]of Object.entries(n))e[s]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},n[s]=e[s],r.set(i[0],i[1]);Object.defineProperty(e,t,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:r,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Ha(e.color,"ansi",()=>Wa(BR,"ansi16",cd,!1)),Ha(e.color,"ansi256",()=>Wa(UR,"ansi256",cd,!1)),Ha(e.color,"ansi16m",()=>Wa(FR,"rgb",VR,!1)),Ha(e.bgColor,"ansi",()=>Wa(BR,"ansi16",cd,!0)),Ha(e.bgColor,"ansi256",()=>Wa(UR,"ansi256",cd,!0)),Ha(e.bgColor,"ansi16m",()=>Wa(FR,"rgb",VR,!0)),e}Object.defineProperty(GR,"exports",{enumerable:!0,get:pte})});var JS=C((G1e,HR)=>{"use strict";var Sl=os(),dte=yn(),hte=YS(),ud=new Set(["\x1B","\x9B"]),mte=39,XS="\x07",qR="[",gte="]",$R="m",KS=`${gte}8;;`,kR=r=>`${ud.values().next().value}${qR}${r}${$R}`,jR=r=>`${ud.values().next().value}${KS}${r}${XS}`,Ete=r=>r.split(" ").map(e=>Sl(e)),zS=(r,e,t)=>{let n=[...e],s=!1,i=!1,o=Sl(dte(r[r.length-1]));for(let[a,c]of n.entries()){let u=Sl(c);if(o+u<=t?r[r.length-1]+=c:(r.push(c),o=0),ud.has(c)&&(s=!0,i=n.slice(a+1).join("").startsWith(KS)),s){i?c===XS&&(s=!1,i=!1):c===$R&&(s=!1);continue}o+=u,o===t&&a<n.length-1&&(r.push(""),o=0)}!o&&r[r.length-1].length>0&&r.length>1&&(r[r.length-2]+=r.pop())},Ste=r=>{let e=r.split(" "),t=e.length;for(;t>0&&!(Sl(e[t-1])>0);)t--;return t===e.length?r:e.slice(0,t).join(" ")+e.slice(t).join("")},_te=(r,e,t={})=>{if(t.trim!==!1&&r.trim()==="")return"";let n="",s,i,o=Ete(r),a=[""];for(let[u,l]of r.split(" ").entries()){t.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let f=Sl(a[a.length-1]);if(u!==0&&(f>=e&&(t.wordWrap===!1||t.trim===!1)&&(a.push(""),f=0),(f>0||t.trim===!1)&&(a[a.length-1]+=" ",f++)),t.hard&&o[u]>e){let p=e-f,d=1+Math.floor((o[u]-p-1)/e);Math.floor((o[u]-1)/e)<d&&a.push(""),zS(a,l,e);continue}if(f+o[u]>e&&f>0&&o[u]>0){if(t.wordWrap===!1&&f<e){zS(a,l,e);continue}a.push("")}if(f+o[u]>e&&t.wordWrap===!1){zS(a,l,e);continue}a[a.length-1]+=l}t.trim!==!1&&(a=a.map(Ste));let c=[...a.join(`
35
35
  `)];for(let[u,l]of c.entries()){if(n+=l,ud.has(l)){let{groups:p}=new RegExp(`(?:\\${qR}(?<code>\\d+)m|\\${KS}(?<uri>.*)${XS})`).exec(c.slice(u).join(""))||{groups:{}};if(p.code!==void 0){let d=Number.parseFloat(p.code);s=d===mte?void 0:d}else p.uri!==void 0&&(i=p.uri.length===0?void 0:p.uri)}let f=hte.codes.get(Number(s));c[u+1]===`
36
36
  `?(i&&(n+=jR("")),s&&f&&(n+=kR(f))):l===`
37
37
  `&&(s&&f&&(n+=kR(s)),i&&(n+=jR(i)))}return n};HR.exports=(r,e,t)=>String(r).normalize().replace(/\r\n/g,`
@@ -45,7 +45,7 @@ GFS4: `),console.error(r)});Lt[fr]||(Fx=global[fr]||[],Gx(Lt,Fx),Lt.close=(funct
45
45
  `:`${x} [${t("command")}]
46
46
  `,X.div(`${K}`)}}if(p.length>1||p.length===1&&!p[0][2]){X.div(t("Commands:"));let K=r.getInternalMethods().getContext(),le=K.commands.length?`${K.commands.join(" ")} `:"";r.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(p=p.sort(((q,ke)=>q[0].localeCompare(ke[0]))));let de=x?`${x} `:"";p.forEach((q=>{let ke=`${de}${le}${q[0].replace(/^\$0 ?/,"")}`;X.span({text:ke,padding:[0,2,0,2],width:_(p,k,`${x}${le}`)+4},{text:q[1]});let U=[];q[2]&&U.push(`[${t("default")}]`),q[3]&&q[3].length&&U.push(`[${t("aliases:")} ${q[3].join(", ")}]`),q[4]&&(typeof q[4]=="string"?U.push(`[${t("deprecated: %s",q[4])}]`):U.push(`[${t("deprecated")}]`)),U.length?X.div({text:U.join(" "),padding:[0,0,0,2],align:"right"}):X.div()})),X.div()}let ee=(Object.keys(V.alias)||[]).concat(Object.keys(r.parsed.newAliases)||[]);H=H.filter((K=>!r.parsed.newAliases[K]&&ee.every((le=>(V.alias[le]||[]).indexOf(K)===-1))));let ne=t("Options:");F[ne]||(F[ne]=[]),(function(K,le,de,q){let ke=[],U=null;Object.keys(de).forEach((L=>{ke=ke.concat(de[L])})),K.forEach((L=>{U=[L].concat(le[L]),U.some((N=>ke.indexOf(N)!==-1))||de[q].push(L)}))})(H,V.alias,F,ne);let ie=K=>/^--/.test(pd(K)),Ee=Object.keys(F).filter((K=>F[K].length>0)).map((K=>({groupName:K,normalizedKeys:F[K].filter(y).map((le=>{if(ee.includes(le))return le;for(let de,q=0;(de=ee[q])!==void 0;q++)if((V.alias[de]||[]).includes(le))return de;return le}))}))).filter((({normalizedKeys:K})=>K.length>0)).map((({groupName:K,normalizedKeys:le})=>{let de=le.reduce(((q,ke)=>(q[ke]=[ke].concat(V.alias[ke]||[]).map((U=>K===n.getPositionalGroupName()?U:(/^[0-9]$/.test(U)?V.boolean.includes(ke)?"-":"--":U.length>1?"--":"-")+U)).sort(((U,L)=>ie(U)===ie(L)?0:ie(U)?1:-1)).join(", "),q)),{});return{groupName:K,normalizedKeys:le,switches:de}}));if(Ee.filter((({groupName:K})=>K!==n.getPositionalGroupName())).some((({normalizedKeys:K,switches:le})=>!K.every((de=>ie(le[de])))))&&Ee.filter((({groupName:K})=>K!==n.getPositionalGroupName())).forEach((({normalizedKeys:K,switches:le})=>{K.forEach((de=>{var q,ke;ie(le[de])&&(le[de]=(q=le[de],ke=4,y_(q)?{text:q.text,indentation:q.indentation+ke}:{text:q,indentation:ke}))}))})),Ee.forEach((({groupName:K,normalizedKeys:le,switches:de})=>{X.div(K),le.forEach((q=>{let ke=de[q],U=d[q]||"",L=null;U.includes(E)&&(U=t(U.substring(16))),V.boolean.includes(q)&&(L=`[${t("boolean")}]`),V.count.includes(q)&&(L=`[${t("count")}]`),V.string.includes(q)&&(L=`[${t("string")}]`),V.normalize.includes(q)&&(L=`[${t("string")}]`),V.array.includes(q)&&(L=`[${t("array")}]`),V.number.includes(q)&&(L=`[${t("number")}]`);let N=[q in P?(z=P[q],typeof z=="string"?`[${t("deprecated: %s",z)}]`:`[${t("deprecated")}]`):null,L,q in A?`[${t("required")}]`:null,V.choices&&V.choices[q]?`[${t("choices:")} ${n.stringifiedValues(V.choices[q])}]`:null,T(V.default[q],V.defaultDescription[q])].filter(Boolean).join(" ");var z;X.span({text:pd(ke),padding:[0,2,0,2+lL(ke)],width:_(de,k)+4},U);let oe=r.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;N&&!oe?X.div({text:N,padding:[0,0,0,2],align:"right"}):X.div()})),X.div()})),f.length&&(X.div(t("Examples:")),f.forEach((K=>{K[0]=K[0].replace(/\$0/g,x)})),f.forEach((K=>{K[1]===""?X.div({text:K[0],padding:[0,2,0,2]}):X.div({text:K[0],padding:[0,2,0,2],width:_(f,k)+4},{text:K[1]})})),X.div()),m.length>0){let K=m.map((le=>le.replace(/\$0/g,x))).join(`
47
47
  `);X.div(`${K}
48
- `)}return X.toString().replace(/\s*$/,"")},n.cacheHelpMessage=function(){S=this.help()},n.clearCachedHelpMessage=function(){S=void 0},n.hasCachedHelpMessage=function(){return!!S},n.showHelp=x=>{let A=r.getInternalMethods().getLoggerInstance();x||(x="error"),(typeof x=="function"?x:A[x])(n.help())},n.functionDescription=x=>["(",x.name?e.Parser.decamelize(x.name,"-"):t("generated-value"),")"].join(""),n.stringifiedValues=function(x,A){let D="",P=A||", ",F=[].concat(x);return x&&F.length&&F.forEach((V=>{D.length&&(D+=P),D+=JSON.stringify(V)})),D};let I=null;n.version=x=>{I=x},n.showVersion=x=>{let A=r.getInternalMethods().getLoggerInstance();x||(x="error"),(typeof x=="function"?x:A[x])(I)},n.reset=function(x){return i=null,c=!1,u=[],l=!1,m=[],f=[],p=[],d=Ja(d,(A=>!x[A])),n};let v=[];return n.freeze=function(){v.push({failMessage:i,failureOutput:c,usages:u,usageDisabled:l,epilogs:m,examples:f,commands:p,descriptions:d})},n.unfreeze=function(x=!1){let A=v.pop();A&&(x?(d={...A.descriptions,...d},p=[...A.commands,...p],u=[...A.usages,...u],f=[...A.examples,...f],m=[...A.epilogs,...m]):{failMessage:i,failureOutput:c,usages:u,usageDisabled:l,epilogs:m,examples:f,commands:p,descriptions:d}=A)},n}function y_(r){return typeof r=="object"}function lL(r){return y_(r)?r.indentation:0}function pd(r){return y_(r)?r.text:r}var __=class{constructor(e,t,n,s){var i,o,a;this.yargs=e,this.usage=t,this.command=n,this.shim=s,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(a=((i=this.shim.getEnv("SHELL"))===null||i===void 0?void 0:i.includes("zsh"))||((o=this.shim.getEnv("ZSH_NAME"))===null||o===void 0?void 0:o.includes("zsh")))!==null&&a!==void 0&&a}defaultCompletion(e,t,n,s){let i=this.command.getCommandHandlers();for(let a=0,c=e.length;a<c;++a)if(i[e[a]]&&i[e[a]].builder){let u=i[e[a]].builder;if(S_(u)){this.indexAfterLastReset=a+1;let l=this.yargs.getInternalMethods().reset();return u(l,!0),l.argv}}let o=[];this.commandCompletions(o,e,n),this.optionCompletions(o,e,t,n),this.choicesFromOptionsCompletions(o,e,t,n),this.choicesFromPositionalsCompletions(o,e,t,n),s(null,o)}commandCompletions(e,t,n){let s=this.yargs.getInternalMethods().getContext().commands;n.match(/^-/)||s[s.length-1]===n||this.previousArgHasChoices(t)||this.usage.getCommands().forEach((i=>{let o=Qa(i[0]).cmd;if(t.indexOf(o)===-1)if(this.zshShell){let a=i[1]||"";e.push(o.replace(/:/g,"\\:")+":"+a)}else e.push(o)}))}optionCompletions(e,t,n,s){if((s.match(/^-/)||s===""&&e.length===0)&&!this.previousArgHasChoices(t)){let i=this.yargs.getOptions(),o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(i.key).forEach((a=>{let c=!!i.configuration["boolean-negation"]&&i.boolean.includes(a);o.includes(a)||i.hiddenOptions.includes(a)||this.argsContainKey(t,a,c)||this.completeOptionKey(a,e,s,c&&!!i.default[a])}))}}choicesFromOptionsCompletions(e,t,n,s){if(this.previousArgHasChoices(t)){let i=this.getPreviousArgChoices(t);i&&i.length>0&&e.push(...i.map((o=>o.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(e,t,n,s){if(s===""&&e.length>0&&this.previousArgHasChoices(t))return;let i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],o=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),a=i[n._.length-o-1];if(!a)return;let c=this.yargs.getOptions().choices[a]||[];for(let u of c)u.startsWith(s)&&e.push(u.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let t=e[e.length-1],n="";if(!t.startsWith("-")&&e.length>1&&(n=t,t=e[e.length-2]),!t.startsWith("-"))return;let s=t.replace(/^-+/,""),i=this.yargs.getOptions(),o=[s,...this.yargs.getAliases()[s]||[]],a;for(let c of o)if(Object.prototype.hasOwnProperty.call(i.key,c)&&Array.isArray(i.choices[c])){a=i.choices[c];break}return a?a.filter((c=>!n||c.startsWith(n))):void 0}previousArgHasChoices(e){let t=this.getPreviousArgChoices(e);return t!==void 0&&t.length>0}argsContainKey(e,t,n){let s=i=>e.indexOf((/^[^0-9]$/.test(i)?"-":"--")+i)!==-1;if(s(t)||n&&s(`no-${t}`))return!0;if(this.aliases){for(let i of this.aliases[t])if(s(i))return!0}return!1}completeOptionKey(e,t,n,s){var i,o,a,c;let u=e;if(this.zshShell){let f=this.usage.getDescriptions(),p=(o=(i=this==null?void 0:this.aliases)===null||i===void 0?void 0:i[e])===null||o===void 0?void 0:o.find((g=>{let h=f[g];return typeof h=="string"&&h.length>0})),d=p?f[p]:void 0,m=(c=(a=f[e])!==null&&a!==void 0?a:d)!==null&&c!==void 0?c:"";u=`${e.replace(/:/g,"\\:")}:${m.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let l=!/^--/.test(n)&&(f=>/^[^0-9]$/.test(f))(e)?"-":"--";t.push(l+u),s&&t.push(l+"no-"+u)}customCompletion(e,t,n,s){if(Kn(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){let i=this.customCompletionFunction(n,t);return kt(i)?i.then((o=>{this.shim.process.nextTick((()=>{s(null,o)}))})).catch((o=>{this.shim.process.nextTick((()=>{s(o,void 0)}))})):s(null,i)}return(function(i){return i.length>3})(this.customCompletionFunction)?this.customCompletionFunction(n,t,((i=s)=>this.defaultCompletion(e,t,n,i)),(i=>{s(null,i)})):this.customCompletionFunction(n,t,(i=>{s(null,i)}))}getCompletion(e,t){let n=e.length?e[e.length-1]:"",s=this.yargs.parse(e,!0),i=this.customCompletionFunction?o=>this.customCompletion(e,o,n,t):o=>this.defaultCompletion(e,o,n,t);return kt(s)?s.then(i):i(s)}generateCompletionScript(e,t){let n=this.zshShell?`#compdef {{app_name}}
48
+ `)}return X.toString().replace(/\s*$/,"")},n.cacheHelpMessage=function(){S=this.help()},n.clearCachedHelpMessage=function(){S=void 0},n.hasCachedHelpMessage=function(){return!!S},n.showHelp=x=>{let A=r.getInternalMethods().getLoggerInstance();x||(x="error"),(typeof x=="function"?x:A[x])(n.help())},n.functionDescription=x=>["(",x.name?e.Parser.decamelize(x.name,"-"):t("generated-value"),")"].join(""),n.stringifiedValues=function(x,A){let D="",P=A||", ",F=[].concat(x);return x&&F.length&&F.forEach((V=>{D.length&&(D+=P),D+=JSON.stringify(V)})),D};let b=null;n.version=x=>{b=x},n.showVersion=x=>{let A=r.getInternalMethods().getLoggerInstance();x||(x="error"),(typeof x=="function"?x:A[x])(b)},n.reset=function(x){return i=null,c=!1,u=[],l=!1,m=[],f=[],p=[],d=Ja(d,(A=>!x[A])),n};let v=[];return n.freeze=function(){v.push({failMessage:i,failureOutput:c,usages:u,usageDisabled:l,epilogs:m,examples:f,commands:p,descriptions:d})},n.unfreeze=function(x=!1){let A=v.pop();A&&(x?(d={...A.descriptions,...d},p=[...A.commands,...p],u=[...A.usages,...u],f=[...A.examples,...f],m=[...A.epilogs,...m]):{failMessage:i,failureOutput:c,usages:u,usageDisabled:l,epilogs:m,examples:f,commands:p,descriptions:d}=A)},n}function y_(r){return typeof r=="object"}function lL(r){return y_(r)?r.indentation:0}function pd(r){return y_(r)?r.text:r}var __=class{constructor(e,t,n,s){var i,o,a;this.yargs=e,this.usage=t,this.command=n,this.shim=s,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(a=((i=this.shim.getEnv("SHELL"))===null||i===void 0?void 0:i.includes("zsh"))||((o=this.shim.getEnv("ZSH_NAME"))===null||o===void 0?void 0:o.includes("zsh")))!==null&&a!==void 0&&a}defaultCompletion(e,t,n,s){let i=this.command.getCommandHandlers();for(let a=0,c=e.length;a<c;++a)if(i[e[a]]&&i[e[a]].builder){let u=i[e[a]].builder;if(S_(u)){this.indexAfterLastReset=a+1;let l=this.yargs.getInternalMethods().reset();return u(l,!0),l.argv}}let o=[];this.commandCompletions(o,e,n),this.optionCompletions(o,e,t,n),this.choicesFromOptionsCompletions(o,e,t,n),this.choicesFromPositionalsCompletions(o,e,t,n),s(null,o)}commandCompletions(e,t,n){let s=this.yargs.getInternalMethods().getContext().commands;n.match(/^-/)||s[s.length-1]===n||this.previousArgHasChoices(t)||this.usage.getCommands().forEach((i=>{let o=Qa(i[0]).cmd;if(t.indexOf(o)===-1)if(this.zshShell){let a=i[1]||"";e.push(o.replace(/:/g,"\\:")+":"+a)}else e.push(o)}))}optionCompletions(e,t,n,s){if((s.match(/^-/)||s===""&&e.length===0)&&!this.previousArgHasChoices(t)){let i=this.yargs.getOptions(),o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(i.key).forEach((a=>{let c=!!i.configuration["boolean-negation"]&&i.boolean.includes(a);o.includes(a)||i.hiddenOptions.includes(a)||this.argsContainKey(t,a,c)||this.completeOptionKey(a,e,s,c&&!!i.default[a])}))}}choicesFromOptionsCompletions(e,t,n,s){if(this.previousArgHasChoices(t)){let i=this.getPreviousArgChoices(t);i&&i.length>0&&e.push(...i.map((o=>o.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(e,t,n,s){if(s===""&&e.length>0&&this.previousArgHasChoices(t))return;let i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],o=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),a=i[n._.length-o-1];if(!a)return;let c=this.yargs.getOptions().choices[a]||[];for(let u of c)u.startsWith(s)&&e.push(u.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let t=e[e.length-1],n="";if(!t.startsWith("-")&&e.length>1&&(n=t,t=e[e.length-2]),!t.startsWith("-"))return;let s=t.replace(/^-+/,""),i=this.yargs.getOptions(),o=[s,...this.yargs.getAliases()[s]||[]],a;for(let c of o)if(Object.prototype.hasOwnProperty.call(i.key,c)&&Array.isArray(i.choices[c])){a=i.choices[c];break}return a?a.filter((c=>!n||c.startsWith(n))):void 0}previousArgHasChoices(e){let t=this.getPreviousArgChoices(e);return t!==void 0&&t.length>0}argsContainKey(e,t,n){let s=i=>e.indexOf((/^[^0-9]$/.test(i)?"-":"--")+i)!==-1;if(s(t)||n&&s(`no-${t}`))return!0;if(this.aliases){for(let i of this.aliases[t])if(s(i))return!0}return!1}completeOptionKey(e,t,n,s){var i,o,a,c;let u=e;if(this.zshShell){let f=this.usage.getDescriptions(),p=(o=(i=this==null?void 0:this.aliases)===null||i===void 0?void 0:i[e])===null||o===void 0?void 0:o.find((g=>{let h=f[g];return typeof h=="string"&&h.length>0})),d=p?f[p]:void 0,m=(c=(a=f[e])!==null&&a!==void 0?a:d)!==null&&c!==void 0?c:"";u=`${e.replace(/:/g,"\\:")}:${m.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let l=!/^--/.test(n)&&(f=>/^[^0-9]$/.test(f))(e)?"-":"--";t.push(l+u),s&&t.push(l+"no-"+u)}customCompletion(e,t,n,s){if(Kn(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){let i=this.customCompletionFunction(n,t);return kt(i)?i.then((o=>{this.shim.process.nextTick((()=>{s(null,o)}))})).catch((o=>{this.shim.process.nextTick((()=>{s(o,void 0)}))})):s(null,i)}return(function(i){return i.length>3})(this.customCompletionFunction)?this.customCompletionFunction(n,t,((i=s)=>this.defaultCompletion(e,t,n,i)),(i=>{s(null,i)})):this.customCompletionFunction(n,t,(i=>{s(null,i)}))}getCompletion(e,t){let n=e.length?e[e.length-1]:"",s=this.yargs.parse(e,!0),i=this.customCompletionFunction?o=>this.customCompletion(e,o,n,t):o=>this.defaultCompletion(e,o,n,t);return kt(s)?s.then(i):i(s)}generateCompletionScript(e,t){let n=this.zshShell?`#compdef {{app_name}}
49
49
  ###-begin-{{app_name}}-completions-###
50
50
  #
51
51
  # yargs command completion script
@@ -97,10 +97,10 @@ complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name
97
97
  `,"f"),xe(this,nr,M(this,nr,"f")+e.join(" "),"f")},error:(...e)=>{this[yd]()||console.error(...e),xe(this,on,!0,"f"),M(this,nr,"f").length&&xe(this,nr,M(this,nr,"f")+`
98
98
  `,"f"),xe(this,nr,M(this,nr,"f")+e.join(" "),"f")}}}[r_](e){Ad(M(this,Le,"f")).forEach((t=>{if(t==="configObjects")return;let n=M(this,Le,"f")[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n=="object"&&delete n[e]})),delete M(this,We,"f").getDescriptions()[e]}[hL](e,t,n){M(this,hd,"f")[n]||(M(this,je,"f").process.emitWarning(e,t),M(this,hd,"f")[n]=!0)}[mL](){M(this,md,"f").push({options:M(this,Le,"f"),configObjects:M(this,Le,"f").configObjects.slice(0),exitProcess:M(this,On,"f"),groups:M(this,Ei,"f"),strict:M(this,vo,"f"),strictCommands:M(this,Do,"f"),strictOptions:M(this,xo,"f"),completionCommand:M(this,sn,"f"),output:M(this,nr,"f"),exitError:M(this,as,"f"),hasOutput:M(this,on,"f"),parsed:this.parsed,parseFn:M(this,an,"f"),parseContext:M(this,Oo,"f")}),M(this,We,"f").freeze(),M(this,Ut,"f").freeze(),M(this,Gt,"f").freeze(),M(this,Cn,"f").freeze()}[gL](){let e,t="";return e=/\b(node|iojs|electron)(\.exe)?$/.test(M(this,je,"f").process.argv()[0])?M(this,je,"f").process.argv().slice(1,2):M(this,je,"f").process.argv().slice(0,1),t=e.map((n=>{let s=this[IL](M(this,yo,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&s.length<n.length?s:n})).join(" ").trim(),M(this,je,"f").getEnv("_")&&M(this,je,"f").getProcessArgvBin()===M(this,je,"f").getEnv("_")&&(t=M(this,je,"f").getEnv("_").replace(`${M(this,je,"f").path.dirname(M(this,je,"f").process.execPath())}/`,"")),t}[bo](){return M(this,Sd,"f")}[EL](){return M(this,Td,"f")}[n_](){if(!M(this,Ao,"f"))return;let e=M(this,je,"f").getEnv("LC_ALL")||M(this,je,"f").getEnv("LC_MESSAGES")||M(this,je,"f").getEnv("LANG")||M(this,je,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[SL](){return this[i_]().version||"unknown"}[_L](e){let t=e["--"]?e["--"]:e._;for(let n,s=0;(n=t[s])!==void 0;s++)M(this,je,"f").Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[s]=Number(n));return e}[i_](e){let t=e||"*";if(M(this,Xa,"f")[t])return M(this,Xa,"f")[t];let n={};try{let s=e||M(this,je,"f").mainFilename;!e&&M(this,je,"f").path.extname(s)&&(s=M(this,je,"f").path.dirname(s));let i=M(this,je,"f").findUp(s,((o,a)=>a.includes("package.json")?"package.json":void 0));Kn(i,void 0,M(this,je,"f")),n=JSON.parse(M(this,je,"f").readFileSync(i,"utf8"))}catch{}return M(this,Xa,"f")[t]=n||{},M(this,Xa,"f")[t]}[us](e,t){(t=[].concat(t)).forEach((n=>{n=this[a_](n),M(this,Le,"f")[e].push(n)}))}[Ka](e,t,n,s){this[o_](e,t,n,s,((i,o,a)=>{M(this,Le,"f")[i][o]=a}))}[s_](e,t,n,s){this[o_](e,t,n,s,((i,o,a)=>{M(this,Le,"f")[i][o]=(M(this,Le,"f")[i][o]||[]).concat(a)}))}[o_](e,t,n,s,i){if(Array.isArray(n))n.forEach((o=>{e(o,s)}));else if((o=>typeof o=="object")(n))for(let o of Ad(n))e(o,n[o]);else i(t,this[a_](n),s)}[a_](e){return e==="__proto__"?"___proto___":e}[c_](e,t){return this[Ka](this[c_].bind(this),"key",e,t),this}[u_](){var e,t,n,s,i,o,a,c,u,l,f,p;let d=M(this,md,"f").pop(),m;Kn(d,void 0,M(this,je,"f")),e=this,t=this,n=this,s=this,i=this,o=this,a=this,c=this,u=this,l=this,f=this,p=this,{options:{set value(g){xe(e,Le,g,"f")}}.value,configObjects:m,exitProcess:{set value(g){xe(t,On,g,"f")}}.value,groups:{set value(g){xe(n,Ei,g,"f")}}.value,output:{set value(g){xe(s,nr,g,"f")}}.value,exitError:{set value(g){xe(i,as,g,"f")}}.value,hasOutput:{set value(g){xe(o,on,g,"f")}}.value,parsed:this.parsed,strict:{set value(g){xe(a,vo,g,"f")}}.value,strictCommands:{set value(g){xe(c,Do,g,"f")}}.value,strictOptions:{set value(g){xe(u,xo,g,"f")}}.value,completionCommand:{set value(g){xe(l,sn,g,"f")}}.value,parseFn:{set value(g){xe(f,an,g,"f")}}.value,parseContext:{set value(g){xe(p,Oo,g,"f")}}.value}=d,M(this,Le,"f").configObjects=m,M(this,We,"f").unfreeze(),M(this,Ut,"f").unfreeze(),M(this,Gt,"f").unfreeze(),M(this,Cn,"f").unfreeze()}[TL](e,t){return Cl(t,(n=>(e(n),n)))}getInternalMethods(){return{getCommandInstance:this[yL].bind(this),getContext:this[AL].bind(this),getHasOutput:this[OL].bind(this),getLoggerInstance:this[CL].bind(this),getParseContext:this[vL].bind(this),getParserConfiguration:this[bo].bind(this),getUsageConfiguration:this[EL].bind(this),getUsageInstance:this[DL].bind(this),getValidationInstance:this[xL].bind(this),hasParseCallback:this[yd].bind(this),isGlobalContext:this[bL].bind(this),postProcess:this[Io].bind(this),reset:this[l_].bind(this),runValidation:this[f_].bind(this),runYargsParserAndExecuteCommands:this[yl].bind(this),setHasOutput:this[PL].bind(this)}}[yL](){return M(this,Gt,"f")}[AL](){return M(this,Tl,"f")}[OL](){return M(this,on,"f")}[CL](){return M(this,za,"f")}[vL](){return M(this,Oo,"f")||{}}[DL](){return M(this,We,"f")}[xL](){return M(this,Ut,"f")}[yd](){return!!M(this,an,"f")}[bL](){return M(this,gd,"f")}[Io](e,t,n,s){return n||kt(e)?e:(t||(e=this[pL](e)),(this[bo]()["parse-positional-numbers"]||this[bo]()["parse-positional-numbers"]===void 0)&&(e=this[_L](e)),s&&(e=Ol(e,this,M(this,Cn,"f").getMiddleware(),!1)),e)}[l_](e={}){xe(this,Le,M(this,Le,"f")||{},"f");let t={};t.local=M(this,Le,"f").local||[],t.configObjects=M(this,Le,"f").configObjects||[];let n={};return t.local.forEach((s=>{n[s]=!0,(e[s]||[]).forEach((i=>{n[i]=!0}))})),Object.assign(M(this,Co,"f"),Object.keys(M(this,Ei,"f")).reduce(((s,i)=>{let o=M(this,Ei,"f")[i].filter((a=>!(a in n)));return o.length>0&&(s[i]=o),s}),{})),xe(this,Ei,{},"f"),["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((s=>{t[s]=(M(this,Le,"f")[s]||[]).filter((i=>!n[i]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((s=>{t[s]=Ja(M(this,Le,"f")[s],(i=>!n[i]))})),t.envPrefix=M(this,Le,"f").envPrefix,xe(this,Le,t,"f"),xe(this,We,M(this,We,"f")?M(this,We,"f").reset(n):Gte(this,M(this,je,"f")),"f"),xe(this,Ut,M(this,Ut,"f")?M(this,Ut,"f").reset(n):(function(s,i,o){let a=o.y18n.__,c=o.y18n.__n,u={nonOptionCount:function(m){let g=s.getDemandedCommands(),h=m._.length+(m["--"]?m["--"].length:0)-s.getInternalMethods().getContext().commands.length;g._&&(h<g._.min||h>g._.max)&&(h<g._.min?g._.minMsg!==void 0?i.fail(g._.minMsg?g._.minMsg.replace(/\$0/g,h.toString()).replace(/\$1/,g._.min.toString()):null):i.fail(c("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",h,h.toString(),g._.min.toString())):h>g._.max&&(g._.maxMsg!==void 0?i.fail(g._.maxMsg?g._.maxMsg.replace(/\$0/g,h.toString()).replace(/\$1/,g._.max.toString()):null):i.fail(c("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",h,h.toString(),g._.max.toString()))))},positionalCount:function(m,g){g<m&&i.fail(c("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",g,g+"",m+""))},requiredArguments:function(m,g){let h=null;for(let E of Object.keys(g))Object.prototype.hasOwnProperty.call(m,E)&&m[E]!==void 0||(h=h||{},h[E]=g[E]);if(h){let E=[];for(let S of Object.keys(h)){let y=h[S];y&&E.indexOf(y)<0&&E.push(y)}let _=E.length?`
99
99
  ${E.join(`
100
- `)}`:"";i.fail(c("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+_))}},unknownArguments:function(m,g,h,E,_=!0){var S;let y=s.getInternalMethods().getCommandInstance().getCommands(),T=[],I=s.getInternalMethods().getContext();if(Object.keys(m).forEach((v=>{fL.includes(v)||Object.prototype.hasOwnProperty.call(h,v)||Object.prototype.hasOwnProperty.call(s.getInternalMethods().getParseContext(),v)||u.isValidAndSomeAliasIsNotNew(v,g)||T.push(v)})),_&&(I.commands.length>0||y.length>0||E)&&m._.slice(I.commands.length).forEach((v=>{y.includes(""+v)||T.push(""+v)})),_){let v=((S=s.getDemandedCommands()._)===null||S===void 0?void 0:S.max)||0,x=I.commands.length+v;x<m._.length&&m._.slice(x).forEach((A=>{A=String(A),I.commands.includes(A)||T.includes(A)||T.push(A)}))}T.length&&i.fail(c("Unknown argument: %s","Unknown arguments: %s",T.length,T.map((v=>v.trim()?v:`"${v}"`)).join(", ")))},unknownCommands:function(m){let g=s.getInternalMethods().getCommandInstance().getCommands(),h=[],E=s.getInternalMethods().getContext();return(E.commands.length>0||g.length>0)&&m._.slice(E.commands.length).forEach((_=>{g.includes(""+_)||h.push(""+_)})),h.length>0&&(i.fail(c("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(m,g){if(!Object.prototype.hasOwnProperty.call(g,m))return!1;let h=s.parsed.newAliases;return[m,...g[m]].some((E=>!Object.prototype.hasOwnProperty.call(h,E)||!h[m]))},limitedChoices:function(m){let g=s.getOptions(),h={};if(!Object.keys(g.choices).length)return;Object.keys(m).forEach((S=>{fL.indexOf(S)===-1&&Object.prototype.hasOwnProperty.call(g.choices,S)&&[].concat(m[S]).forEach((y=>{g.choices[S].indexOf(y)===-1&&y!==void 0&&(h[S]=(h[S]||[]).concat(y))}))}));let E=Object.keys(h);if(!E.length)return;let _=a("Invalid values:");E.forEach((S=>{_+=`
100
+ `)}`:"";i.fail(c("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+_))}},unknownArguments:function(m,g,h,E,_=!0){var S;let y=s.getInternalMethods().getCommandInstance().getCommands(),T=[],b=s.getInternalMethods().getContext();if(Object.keys(m).forEach((v=>{fL.includes(v)||Object.prototype.hasOwnProperty.call(h,v)||Object.prototype.hasOwnProperty.call(s.getInternalMethods().getParseContext(),v)||u.isValidAndSomeAliasIsNotNew(v,g)||T.push(v)})),_&&(b.commands.length>0||y.length>0||E)&&m._.slice(b.commands.length).forEach((v=>{y.includes(""+v)||T.push(""+v)})),_){let v=((S=s.getDemandedCommands()._)===null||S===void 0?void 0:S.max)||0,x=b.commands.length+v;x<m._.length&&m._.slice(x).forEach((A=>{A=String(A),b.commands.includes(A)||T.includes(A)||T.push(A)}))}T.length&&i.fail(c("Unknown argument: %s","Unknown arguments: %s",T.length,T.map((v=>v.trim()?v:`"${v}"`)).join(", ")))},unknownCommands:function(m){let g=s.getInternalMethods().getCommandInstance().getCommands(),h=[],E=s.getInternalMethods().getContext();return(E.commands.length>0||g.length>0)&&m._.slice(E.commands.length).forEach((_=>{g.includes(""+_)||h.push(""+_)})),h.length>0&&(i.fail(c("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(m,g){if(!Object.prototype.hasOwnProperty.call(g,m))return!1;let h=s.parsed.newAliases;return[m,...g[m]].some((E=>!Object.prototype.hasOwnProperty.call(h,E)||!h[m]))},limitedChoices:function(m){let g=s.getOptions(),h={};if(!Object.keys(g.choices).length)return;Object.keys(m).forEach((S=>{fL.indexOf(S)===-1&&Object.prototype.hasOwnProperty.call(g.choices,S)&&[].concat(m[S]).forEach((y=>{g.choices[S].indexOf(y)===-1&&y!==void 0&&(h[S]=(h[S]||[]).concat(y))}))}));let E=Object.keys(h);if(!E.length)return;let _=a("Invalid values:");E.forEach((S=>{_+=`
101
101
  ${a("Argument: %s, Given: %s, Choices: %s",S,i.stringifiedValues(h[S]),i.stringifiedValues(g.choices[S]))}`})),i.fail(_)}},l={};function f(m,g){let h=Number(g);return typeof(g=isNaN(h)?g:h)=="number"?g=m._.length>=g:g.match(/^--no-.+/)?(g=g.match(/^--no-(.+)/)[1],g=!Object.prototype.hasOwnProperty.call(m,g)):g=Object.prototype.hasOwnProperty.call(m,g),g}u.implies=function(m,g){be("<string|object> [array|number|string]",[m,g],arguments.length),typeof m=="object"?Object.keys(m).forEach((h=>{u.implies(h,m[h])})):(s.global(m),l[m]||(l[m]=[]),Array.isArray(g)?g.forEach((h=>u.implies(m,h))):(Kn(g,void 0,o),l[m].push(g)))},u.getImplied=function(){return l},u.implications=function(m){let g=[];if(Object.keys(l).forEach((h=>{let E=h;(l[h]||[]).forEach((_=>{let S=E,y=_;S=f(m,S),_=f(m,_),S&&!_&&g.push(` ${E} -> ${y}`)}))})),g.length){let h=`${a("Implications failed:")}
102
102
  `;g.forEach((E=>{h+=E})),i.fail(h)}};let p={};u.conflicts=function(m,g){be("<string|object> [array|string]",[m,g],arguments.length),typeof m=="object"?Object.keys(m).forEach((h=>{u.conflicts(h,m[h])})):(s.global(m),p[m]||(p[m]=[]),Array.isArray(g)?g.forEach((h=>u.conflicts(m,h))):p[m].push(g))},u.getConflicting=()=>p,u.conflicting=function(m){Object.keys(m).forEach((g=>{p[g]&&p[g].forEach((h=>{h&&m[g]!==void 0&&m[h]!==void 0&&i.fail(a("Arguments %s and %s are mutually exclusive",g,h))}))})),s.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(p).forEach((g=>{p[g].forEach((h=>{h&&m[o.Parser.camelCase(g)]!==void 0&&m[o.Parser.camelCase(h)]!==void 0&&i.fail(a("Arguments %s and %s are mutually exclusive",g,h))}))}))},u.recommendCommands=function(m,g){g=g.sort(((_,S)=>S.length-_.length));let h=null,E=1/0;for(let _,S=0;(_=g[S])!==void 0;S++){let y=kte(m,_);y<=3&&y<E&&(E=y,h=_)}h&&i.fail(a("Did you mean %s?",h))},u.reset=function(m){return l=Ja(l,(g=>!m[g])),p=Ja(p,(g=>!m[g])),u};let d=[];return u.freeze=function(){d.push({implied:l,conflicting:p})},u.unfreeze=function(){let m=d.pop();Kn(m,void 0,o),{implied:l,conflicting:p}=m},u})(this,M(this,We,"f"),M(this,je,"f")),"f"),xe(this,Gt,M(this,Gt,"f")?M(this,Gt,"f").reset():(function(s,i,o,a){return new E_(s,i,o,a)})(M(this,We,"f"),M(this,Ut,"f"),M(this,Cn,"f"),M(this,je,"f")),"f"),M(this,An,"f")||xe(this,An,(function(s,i,o,a){return new __(s,i,o,a)})(this,M(this,We,"f"),M(this,Gt,"f"),M(this,je,"f")),"f"),M(this,Cn,"f").reset(),xe(this,sn,null,"f"),xe(this,nr,"","f"),xe(this,as,null,"f"),xe(this,on,!1,"f"),this.parsed=!1,this}[IL](e,t){return M(this,je,"f").path.relative(e,t)}[yl](e,t,n,s=0,i=!1){let o=!!n||i;e=e||M(this,cs,"f"),M(this,Le,"f").__=M(this,je,"f").y18n.__,M(this,Le,"f").configuration=this[bo]();let a=!!M(this,Le,"f").configuration["populate--"],c=Object.assign({},M(this,Le,"f").configuration,{"populate--":!0}),u=M(this,je,"f").Parser.detailed(e,Object.assign({},M(this,Le,"f"),{configuration:{"parse-positional-numbers":!1,...c}})),l=Object.assign(u.argv,M(this,Oo,"f")),f,p=u.aliases,d=!1,m=!1;Object.keys(l).forEach((g=>{g===M(this,vn,"f")&&l[g]?d=!0:g===M(this,Si,"f")&&l[g]&&(m=!0)})),l.$0=this.$0,this.parsed=u,s===0&&M(this,We,"f").clearCachedHelpMessage();try{if(this[n_](),t)return this[Io](l,a,!!n,!1);M(this,vn,"f")&&[M(this,vn,"f")].concat(p[M(this,vn,"f")]||[]).filter((_=>_.length>1)).includes(""+l._[l._.length-1])&&(l._.pop(),d=!0),xe(this,gd,!1,"f");let g=M(this,Gt,"f").getCommands(),h=M(this,An,"f").completionKey in l,E=d||h||i;if(l._.length){if(g.length){let _;for(let S,y=s||0;l._[y]!==void 0;y++){if(S=String(l._[y]),g.includes(S)&&S!==M(this,sn,"f")){let T=M(this,Gt,"f").runCommand(S,this,u,y+1,i,d||m||i);return this[Io](T,a,!!n,!1)}if(!_&&S!==M(this,sn,"f")){_=S;break}}!M(this,Gt,"f").hasDefaultCommand()&&M(this,_d,"f")&&_&&!E&&M(this,Ut,"f").recommendCommands(_,g)}M(this,sn,"f")&&l._.includes(M(this,sn,"f"))&&!h&&(M(this,On,"f")&&Al(!0),this.showCompletionScript(),this.exit(0))}if(M(this,Gt,"f").hasDefaultCommand()&&!E){let _=M(this,Gt,"f").runCommand(null,this,u,0,i,d||m||i);return this[Io](_,a,!!n,!1)}if(h){M(this,On,"f")&&Al(!0);let _=(e=[].concat(e)).slice(e.indexOf(`--${M(this,An,"f").completionKey}`)+1);return M(this,An,"f").getCompletion(_,((S,y)=>{if(S)throw new ir(S.message);(y||[]).forEach((T=>{M(this,za,"f").log(T)})),this.exit(0)})),this[Io](l,!a,!!n,!1)}if(M(this,on,"f")||(d?(M(this,On,"f")&&Al(!0),o=!0,this.showHelp("log"),this.exit(0)):m&&(M(this,On,"f")&&Al(!0),o=!0,M(this,We,"f").showVersion("log"),this.exit(0))),!o&&M(this,Le,"f").skipValidation.length>0&&(o=Object.keys(l).some((_=>M(this,Le,"f").skipValidation.indexOf(_)>=0&&l[_]===!0))),!o){if(u.error)throw new ir(u.error.message);if(!h){let _=this[f_](p,{},u.error);n||(f=Ol(l,this,M(this,Cn,"f").getMiddleware(),!0)),f=this[TL](_,f??l),kt(f)&&!n&&(f=f.then((()=>Ol(l,this,M(this,Cn,"f").getMiddleware(),!1))))}}}catch(g){if(!(g instanceof ir))throw g;M(this,We,"f").fail(g.message,g)}return this[Io](f??l,a,!!n,!0)}[f_](e,t,n,s){let i={...this.getDemandedOptions()};return o=>{if(n)throw new ir(n.message);M(this,Ut,"f").nonOptionCount(o),M(this,Ut,"f").requiredArguments(o,i);let a=!1;M(this,Do,"f")&&(a=M(this,Ut,"f").unknownCommands(o)),M(this,vo,"f")&&!a?M(this,Ut,"f").unknownArguments(o,e,t,!!s):M(this,xo,"f")&&M(this,Ut,"f").unknownArguments(o,e,{},!1,!1),M(this,Ut,"f").limitedChoices(o),M(this,Ut,"f").implications(o),M(this,Ut,"f").conflicting(o)}}[PL](){xe(this,on,!0,"f")}[Po](e){if(typeof e=="string")M(this,Le,"f").key[e]=!0;else for(let t of e)M(this,Le,"f").key[t]=!0}},p_,d_,{readFileSync:jte}=W("fs"),{inspect:qte}=W("util"),{resolve:$te}=W("path"),Hte=fR(),Wte=kS(),h_,wL={assert:{notStrictEqual:sL.notStrictEqual,strictEqual:sL.strictEqual},cliui:zR(),findUp:QR(),getEnv:r=>process.env[r],getCallerFile:eL(),getProcessArgvBin:NL,inspect:qte,mainFilename:(d_=(p_=W?.main)===null||p_===void 0?void 0:p_.filename)!==null&&d_!==void 0?d_:process.cwd(),Parser:Wte,path:W("path"),process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(r,e)=>process.emitWarning(r,e),execPath:()=>process.execPath,exit:r=>{process.exit(r)},nextTick:process.nextTick,stdColumns:process.stdout.columns!==void 0?process.stdout.columns:null},readFileSync:jte,require:W,requireDirectory:iL(),stringWidth:os(),y18n:Hte({directory:$te(__dirname,"../locales"),updateFiles:!1})},RL=!((h_=process==null?void 0:process.env)===null||h_===void 0)&&h_.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12;if(process&&process.version&&Number(process.version.match(/v([^.]+)/)[1])<RL)throw Error(`yargs supports a minimum Node.js version of ${RL}. Read our version support policy: https://github.com/yargs/yargs#supported-nodejs-versions`);var Yte=kS(),m_,zte={applyExtends:Od,cjsPlatformShim:wL,Yargs:(m_=wL,(r=[],e=m_.process.cwd(),t)=>{let n=new T_(r,e,t,m_);return Object.defineProperty(n,"argv",{get:()=>n.parse(),enumerable:!0}),n.help(),n.version(),n}),argsert:be,isPromise:kt,objFilter:Ja,parseCommand:Qa,Parser:Yte,processArgv:Fte,YError:ir};BL.exports=zte});var YL=C((z1e,WL)=>{var GL,A_,D_,{defineProperty:Zte,setPrototypeOf:HL,create:ere,keys:tre}=Object,ls="",{round:wo,max:rre}=Math,O_=r=>{let e=/([a-f\d]{3,6})/i.exec(r)?.[1],t=e?.length,n=parseInt(6^t?3^t?"0":e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e,16);return[n>>16&255,n>>8&255,255&n]},kL=(r,e,t)=>r^e||e^t?16+36*wo(r/51)+6*wo(e/51)+wo(t/51):8>r?16:r>248?231:wo(24*(r-8)/247)+232,C_=r=>{let e,t,n,s,i;return 8>r?30+r:16>r?r-8+90:(232>r?(i=(r-=16)%36,e=(r/36|0)/5,t=(i/6|0)/5,n=i%6/5):e=t=n=(10*(r-232)+8)/255,s=2*rre(e,t,n),s?30+(wo(n)<<2|wo(t)<<1|wo(e))+(2^s?0:60):30)},nre=(()=>{let r=u=>n.some((l=>u.test(l))),e=globalThis,t=e.process??{},n=t.argv??[],s=t.env??{},i=-1;try{GL=","+tre(s).join(",")}catch{s={},i=0}let o="FORCE_COLOR",a={false:0,0:0,1:1,2:2,3:3}[s[o]]??-1,c=o in s&&a||r(/^--color=?(true|always)?$/);return c&&(i=a),~i||(i=((u,l,f)=>(A_=u.TERM,{"24bit":3,truecolor:3,ansi256:2,ansi:1}[u.COLORTERM]||(u.CI?/,GITHUB/.test(GL)?3:1:l&&A_!=="dumb"?f?3:/-256/.test(A_)?2:1:0)))(s,!!s.PM2_HOME||s.NEXT_RUNTIME?.includes("edge")||!!t.stdout?.isTTY,t.platform==="win32")),!a||s.NO_COLOR||r(/^--(no-color|color=(false|never))$/)?0:e.window?.chrome||c&&!i?3:i})(),jL={open:ls,close:ls},Za=39,ec=49,qL={},$L=({p:r},{open:e,close:t})=>{let n=(o,...a)=>{if(!o){if(e&&e===t)return e;if((o??ls)===ls)return ls}let c,u=o.raw?String.raw({raw:o},...a):ls+o,l=n.p,f=l.o,p=l.c;if(u.includes("\x1B"))for(;l;l=l.p){let{open:d,close:m}=l,g=m.length,h=ls,E=0;if(g)for(;~(c=u.indexOf(m,E));E=c+g)h+=u.slice(E,c)+d;u=h+u.slice(E)}return f+(u.includes(`
103
- `)?u.replace(/(\r?\n)/g,p+"$1"+f):u)+p},s=e,i=t;return r&&(s=r.o+e,i=t+r.c),HL(n,D_),n.p={open:e,close:t,o:s,c:i,p:r},n.open=s,n.close=i,n},v_=new function r(e=nre){let t={Ansis:r,level:e,isSupported:()=>s,strip:_=>_.replace(/[›][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,ls),extend(_){for(let S in _){let y=_[S],T=(typeof y)[0];T==="s"?(n(S,l(...O_(y))),n(h(S),f(...O_(y)))):n(S,y,T==="f")}return D_=ere({},qL),HL(t,D_),t}},n=(_,S,y)=>{qL[_]={get(){let T=y?(...I)=>$L(this,S(...I)):$L(this,S);return Zte(this,_,{value:T}),T}}},s=e>0,i=(_,S)=>s?{open:`\x1B[${_}m`,close:`\x1B[${S}m`}:jL,o=_=>S=>_(...O_(S)),a=(_,S)=>(y,T,I)=>i(`${_}8;2;${y};${T};${I}`,S),c=(_,S)=>(y,T,I)=>i(((v,x,A)=>C_(kL(v,x,A)))(y,T,I)+_,S),u=_=>(S,y,T)=>_(kL(S,y,T)),l=a(3,Za),f=a(4,ec),p=_=>i("38;5;"+_,Za),d=_=>i("48;5;"+_,ec);e===2?(l=u(p),f=u(d)):e===1&&(l=c(0,Za),f=c(10,ec),p=_=>i(C_(_),Za),d=_=>i(C_(_)+10,ec));let m,g={fg:p,bg:d,rgb:l,bgRgb:f,hex:o(l),bgHex:o(f),visible:jL,reset:i(0,0),bold:i(1,22),dim:i(2,22),italic:i(3,23),underline:i(4,24),inverse:i(7,27),hidden:i(8,28),strikethrough:i(9,29)},h=_=>"bg"+_[0].toUpperCase()+_.slice(1),E="Bright";return"black,red,green,yellow,blue,magenta,cyan,white,gray".split(",").map(((_,S)=>{m=h(_),8>S?(g[_+E]=i(90+S,Za),g[m+E]=i(100+S,ec)):S=60,g[_]=i(30+S,Za),g[m]=i(40+S,ec)})),t.extend(g)};WL.exports=v_,v_.default=v_});var XL=C((X1e,zL)=>{"use strict";zL.exports=(r,e=process.argv)=>{let t=r.startsWith("-")?"":r.length===1?"-":"--",n=e.indexOf(t+r),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}});var QL=C((K1e,JL)=>{"use strict";var ire=W("os"),KL=W("tty"),Dn=XL(),{env:sr}=process,fs;Dn("no-color")||Dn("no-colors")||Dn("color=false")||Dn("color=never")?fs=0:(Dn("color")||Dn("colors")||Dn("color=true")||Dn("color=always"))&&(fs=1);"FORCE_COLOR"in sr&&(sr.FORCE_COLOR==="true"?fs=1:sr.FORCE_COLOR==="false"?fs=0:fs=sr.FORCE_COLOR.length===0?1:Math.min(parseInt(sr.FORCE_COLOR,10),3));function x_(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function b_(r,e){if(fs===0)return 0;if(Dn("color=16m")||Dn("color=full")||Dn("color=truecolor"))return 3;if(Dn("color=256"))return 2;if(r&&!e&&fs===void 0)return 0;let t=fs||0;if(sr.TERM==="dumb")return t;if(process.platform==="win32"){let n=ire.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in sr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in sr)||sr.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in sr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(sr.TEAMCITY_VERSION)?1:0;if(sr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in sr){let n=parseInt((sr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(sr.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(sr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(sr.TERM)||"COLORTERM"in sr?1:t}function sre(r){let e=b_(r,r&&r.isTTY);return x_(e)}JL.exports={supportsColor:sre,stdout:x_(b_(!0,KL.isatty(1))),stderr:x_(b_(!0,KL.isatty(2)))}});var eM=C((J1e,ZL)=>{"use strict";var ore=(r,e,t)=>{let n=r.indexOf(e);if(n===-1)return r;let s=e.length,i=0,o="";do o+=r.substr(i,n-i)+e+t,i=n+s,n=r.indexOf(e,i);while(n!==-1);return o+=r.substr(i),o},are=(r,e,t,n)=>{let s=0,i="";do{let o=r[n-1]==="\r";i+=r.substr(s,(o?n-1:n)-s)+e+(o?`\r
103
+ `)?u.replace(/(\r?\n)/g,p+"$1"+f):u)+p},s=e,i=t;return r&&(s=r.o+e,i=t+r.c),HL(n,D_),n.p={open:e,close:t,o:s,c:i,p:r},n.open=s,n.close=i,n},v_=new function r(e=nre){let t={Ansis:r,level:e,isSupported:()=>s,strip:_=>_.replace(/[›][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,ls),extend(_){for(let S in _){let y=_[S],T=(typeof y)[0];T==="s"?(n(S,l(...O_(y))),n(h(S),f(...O_(y)))):n(S,y,T==="f")}return D_=ere({},qL),HL(t,D_),t}},n=(_,S,y)=>{qL[_]={get(){let T=y?(...b)=>$L(this,S(...b)):$L(this,S);return Zte(this,_,{value:T}),T}}},s=e>0,i=(_,S)=>s?{open:`\x1B[${_}m`,close:`\x1B[${S}m`}:jL,o=_=>S=>_(...O_(S)),a=(_,S)=>(y,T,b)=>i(`${_}8;2;${y};${T};${b}`,S),c=(_,S)=>(y,T,b)=>i(((v,x,A)=>C_(kL(v,x,A)))(y,T,b)+_,S),u=_=>(S,y,T)=>_(kL(S,y,T)),l=a(3,Za),f=a(4,ec),p=_=>i("38;5;"+_,Za),d=_=>i("48;5;"+_,ec);e===2?(l=u(p),f=u(d)):e===1&&(l=c(0,Za),f=c(10,ec),p=_=>i(C_(_),Za),d=_=>i(C_(_)+10,ec));let m,g={fg:p,bg:d,rgb:l,bgRgb:f,hex:o(l),bgHex:o(f),visible:jL,reset:i(0,0),bold:i(1,22),dim:i(2,22),italic:i(3,23),underline:i(4,24),inverse:i(7,27),hidden:i(8,28),strikethrough:i(9,29)},h=_=>"bg"+_[0].toUpperCase()+_.slice(1),E="Bright";return"black,red,green,yellow,blue,magenta,cyan,white,gray".split(",").map(((_,S)=>{m=h(_),8>S?(g[_+E]=i(90+S,Za),g[m+E]=i(100+S,ec)):S=60,g[_]=i(30+S,Za),g[m]=i(40+S,ec)})),t.extend(g)};WL.exports=v_,v_.default=v_});var XL=C((X1e,zL)=>{"use strict";zL.exports=(r,e=process.argv)=>{let t=r.startsWith("-")?"":r.length===1?"-":"--",n=e.indexOf(t+r),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}});var QL=C((K1e,JL)=>{"use strict";var ire=W("os"),KL=W("tty"),Dn=XL(),{env:sr}=process,fs;Dn("no-color")||Dn("no-colors")||Dn("color=false")||Dn("color=never")?fs=0:(Dn("color")||Dn("colors")||Dn("color=true")||Dn("color=always"))&&(fs=1);"FORCE_COLOR"in sr&&(sr.FORCE_COLOR==="true"?fs=1:sr.FORCE_COLOR==="false"?fs=0:fs=sr.FORCE_COLOR.length===0?1:Math.min(parseInt(sr.FORCE_COLOR,10),3));function x_(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function b_(r,e){if(fs===0)return 0;if(Dn("color=16m")||Dn("color=full")||Dn("color=truecolor"))return 3;if(Dn("color=256"))return 2;if(r&&!e&&fs===void 0)return 0;let t=fs||0;if(sr.TERM==="dumb")return t;if(process.platform==="win32"){let n=ire.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in sr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in sr)||sr.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in sr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(sr.TEAMCITY_VERSION)?1:0;if(sr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in sr){let n=parseInt((sr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(sr.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(sr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(sr.TERM)||"COLORTERM"in sr?1:t}function sre(r){let e=b_(r,r&&r.isTTY);return x_(e)}JL.exports={supportsColor:sre,stdout:x_(b_(!0,KL.isatty(1))),stderr:x_(b_(!0,KL.isatty(2)))}});var eM=C((J1e,ZL)=>{"use strict";var ore=(r,e,t)=>{let n=r.indexOf(e);if(n===-1)return r;let s=e.length,i=0,o="";do o+=r.substr(i,n-i)+e+t,i=n+s,n=r.indexOf(e,i);while(n!==-1);return o+=r.substr(i),o},are=(r,e,t,n)=>{let s=0,i="";do{let o=r[n-1]==="\r";i+=r.substr(s,(o?n-1:n)-s)+e+(o?`\r
104
104
  `:`
105
105
  `)+t,s=n+1,n=r.indexOf(`
106
106
  `,s)}while(n!==-1);return i+=r.substr(s),i};ZL.exports={stringReplaceAll:ore,stringEncaseCRLFWithFirstIndex:are}});var sM=C((Q1e,iM)=>{"use strict";var cre=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,tM=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ure=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,lre=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,fre=new Map([["n",`
@@ -120,7 +120,7 @@ ${E.join(`
120
120
  `:" ",n=[];for(let s=0;s<4;s++){let i=t(s);e[s]?n.push(i.repeat(e[s])):n.push("")}return n}lN.exports=J_});var dN=C((_Ce,pN)=>{"use strict";var une=Ar(),fN={default(r,e){return e},checkbox(r,e){throw new Error("checkbox role is not implemented yet")},editable(r,e){throw new Error("editable role is not implemented yet")},expandable(r,e){throw new Error("expandable role is not implemented yet")},heading(r,e){return e.disabled="",e.indicator=[e.indicator," "].find(t=>t!=null),e.message=e.message||"",e},input(r,e){throw new Error("input role is not implemented yet")},option(r,e){return fN.default(r,e)},radio(r,e){throw new Error("radio role is not implemented yet")},separator(r,e){return e.disabled="",e.indicator=[e.indicator," "].find(t=>t!=null),e.message=e.message||r.symbols.line.repeat(5),e},spacer(r,e){return e}};pN.exports=(r,e={})=>{let t=une.merge({},fN,e.roles);return t[r]||t.default}});var bl=C((TCe,gN)=>{"use strict";var lne=yn(),fne=sc(),pne=dN(),Ld=Ar(),{reorder:Q_,scrollUp:dne,scrollDown:hne,isObject:hN,swap:mne}=Ld,Z_=class extends fne{constructor(e){super(e),this.cursorHide(),this.maxSelected=e.maxSelected||1/0,this.multiple=e.multiple||!1,this.initial=e.initial||0,this.delay=e.delay||0,this.longest=0,this.num=""}async initialize(){typeof this.options.initial=="function"&&(this.initial=await this.options.initial.call(this)),await this.reset(!0),await super.initialize()}async reset(){let{choices:e,initial:t,autofocus:n,suggest:s}=this.options;if(this.state._choices=[],this.state.choices=[],this.choices=await Promise.all(await this.toChoices(e)),this.choices.forEach(i=>i.enabled=!1),typeof s!="function"&&this.selectable.length===0)throw new Error("At least one choice must be selectable");hN(t)&&(t=Object.keys(t)),Array.isArray(t)?(n!=null&&(this.index=this.findIndex(n)),t.forEach(i=>this.enable(this.find(i))),await this.render()):(n!=null&&(t=n),typeof t=="string"&&(t=this.findIndex(t)),typeof t=="number"&&t>-1&&(this.index=Math.max(0,Math.min(t,this.choices.length)),this.enable(this.find(this.index)))),this.isDisabled(this.focused)&&await this.down()}async toChoices(e,t){this.state.loadingChoices=!0;let n=[],s=0,i=async(o,a)=>{typeof o=="function"&&(o=await o.call(this)),o instanceof Promise&&(o=await o);for(let c=0;c<o.length;c++){let u=o[c]=await this.toChoice(o[c],s++,a);n.push(u),u.choices&&await i(u.choices,u)}return n};return i(e,t).then(o=>(this.state.loadingChoices=!1,o))}async toChoice(e,t,n){if(typeof e=="function"&&(e=await e.call(this,this)),e instanceof Promise&&(e=await e),typeof e=="string"&&(e={name:e}),e.normalized)return e;e.normalized=!0;let s=e.value;if(e=pne(e.role,this.options)(this,e),typeof e.disabled=="string"&&!e.hint&&(e.hint=e.disabled,e.disabled=!0),e.disabled===!0&&e.hint==null&&(e.hint="(disabled)"),e.index!=null)return e;e.name=e.name||e.key||e.title||e.value||e.message,e.message=e.message||e.name||"",e.value=[e.value,e.name].find(this.isValue.bind(this)),e.input="",e.index=t,e.cursor=0,Ld.define(e,"parent",n),e.level=n?n.level+1:1,e.indent==null&&(e.indent=n?n.indent+" ":e.indent||""),e.path=n?n.path+"."+e.name:e.name,e.enabled=!!(this.multiple&&!this.isDisabled(e)&&(e.enabled||this.isSelected(e))),this.isDisabled(e)||(this.longest=Math.max(this.longest,lne(e.message).length));let o={...e};return e.reset=(a=o.input,c=o.value)=>{for(let u of Object.keys(o))e[u]=o[u];e.input=a,e.value=c},s==null&&typeof e.initial=="function"&&(e.input=await e.initial.call(this,this.state,e,t)),e}async onChoice(e,t){this.emit("choice",e,t,this),typeof e.onChoice=="function"&&await e.onChoice.call(this,this.state,e,t)}async addChoice(e,t,n){let s=await this.toChoice(e,t,n);return this.choices.push(s),this.index=this.choices.length-1,this.limit=this.choices.length,s}async newItem(e,t,n){let s={name:"New choice name?",editable:!0,newChoice:!0,...e},i=await this.addChoice(s,t,n);return i.updateChoice=()=>{delete i.newChoice,i.name=i.message=i.input,i.input="",i.cursor=0},this.render()}indent(e){return e.indent==null?e.level>1?" ".repeat(e.level-1):"":e.indent}dispatch(e,t){if(this.multiple&&this[t.name])return this[t.name]();this.alert()}focus(e,t){return typeof t!="boolean"&&(t=e.enabled),t&&!e.enabled&&this.selected.length>=this.maxSelected?this.alert():(this.index=e.index,e.enabled=t&&!this.isDisabled(e),e)}space(){if(!this.multiple)return this.alert();if(this.focused)return this.toggle(this.focused),this.render()}a(){if(this.maxSelected<this.choices.length)return this.alert();let e=this.selectable.every(t=>t.enabled);return this.choices.forEach(t=>t.enabled=!e),this.render()}i(){return this.choices.length-this.selected.length>this.maxSelected?this.alert():(this.choices.forEach(e=>e.enabled=!e.enabled),this.render())}g(){if(!this.choices.some(t=>!!t.parent))return this.a();let e=this.focused;return this.toggle(e.parent&&!e.choices?e.parent:e),this.render()}toggle(e,t){if(!e.enabled&&this.selected.length>=this.maxSelected)return this.alert();typeof t!="boolean"&&(t=!e.enabled),e.enabled=t,e.choices&&e.choices.forEach(s=>this.toggle(s,t));let n=e.parent;for(;n;){let s=n.choices.filter(i=>this.isDisabled(i));n.enabled=s.every(i=>i.enabled===!0),n=n.parent}return mN(this,this.choices),this.emit("toggle",e,this),e}enable(e){return this.selected.length>=this.maxSelected?this.alert():(e.enabled=!this.isDisabled(e),e.choices&&e.choices.forEach(this.enable.bind(this)),e)}disable(e){return e.enabled=!1,e.choices&&e.choices.forEach(this.disable.bind(this)),e}number(e){this.num+=e;let t=n=>{let s=Number(n);if(s>this.choices.length-1)return this.alert();let i=this.focused,o=this.choices.find(a=>s===a.index);if(!o.enabled&&this.selected.length>=this.maxSelected)return this.alert();if(this.visible.indexOf(o)===-1){let a=Q_(this.choices),c=a.indexOf(o);if(i.index>c){let u=a.slice(c,c+this.limit),l=a.filter(f=>!u.includes(f));this.choices=u.concat(l)}else{let u=c-this.limit+1;this.choices=a.slice(u).concat(a.slice(0,u))}}return this.index=this.choices.indexOf(o),this.toggle(this.focused),this.render()};return clearTimeout(this.numberTimeout),new Promise(n=>{let s=this.choices.length,i=this.num,o=(a=!1,c)=>{clearTimeout(this.numberTimeout),a&&(c=t(i)),this.num="",n(c)};if(i==="0"||i.length===1&&+(i+"0")>s)return o(!0);if(Number(i)>s)return o(!1,this.alert());this.numberTimeout=setTimeout(()=>o(!0),this.delay)})}home(){return this.choices=Q_(this.choices),this.index=0,this.render()}end(){let e=this.choices.length-this.limit,t=Q_(this.choices);return this.choices=t.slice(e).concat(t.slice(0,e)),this.index=this.limit-1,this.render()}first(){return this.index=0,this.render()}last(){return this.index=this.visible.length-1,this.render()}prev(){return this.visible.length<=1?this.alert():this.up()}next(){return this.visible.length<=1?this.alert():this.down()}right(){return this.cursor>=this.input.length?this.alert():(this.cursor++,this.render())}left(){return this.cursor<=0?this.alert():(this.cursor--,this.render())}up(){let e=this.choices.length,t=this.visible.length,n=this.index;return this.options.scroll===!1&&n===0?this.alert():e>t&&n===0?this.scrollUp():(this.index=(n-1%e+e)%e,this.isDisabled()&&!this.allChoicesAreDisabled()?this.up():this.render())}down(){let e=this.choices.length,t=this.visible.length,n=this.index;return this.options.scroll===!1&&n===t-1?this.alert():e>t&&n===t-1?this.scrollDown():(this.index=(n+1)%e,this.isDisabled()&&!this.allChoicesAreDisabled()?this.down():this.render())}scrollUp(e=0){return this.choices=dne(this.choices),this.index=e,this.isDisabled()?this.up():this.render()}scrollDown(e=this.visible.length-1){return this.choices=hne(this.choices),this.index=e,this.isDisabled()?this.down():this.render()}async shiftUp(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index-1),await this.up(),this.sorting=!1;return}return this.scrollUp(this.index)}async shiftDown(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index+1),await this.down(),this.sorting=!1;return}return this.scrollDown(this.index)}pageUp(){return this.visible.length<=1?this.alert():(this.limit=Math.max(this.limit-1,0),this.index=Math.min(this.limit-1,this.index),this._limit=this.limit,this.isDisabled()?this.up():this.render())}pageDown(){return this.visible.length>=this.choices.length?this.alert():(this.index=Math.max(0,this.index),this.limit=Math.min(this.limit+1,this.choices.length),this._limit=this.limit,this.isDisabled()?this.down():this.render())}swap(e){mne(this.choices,this.index,e)}allChoicesAreDisabled(e=this.choices){return e.every(t=>this.isDisabled(t))}isDisabled(e=this.focused){return e&&["disabled","collapsed","hidden","completing","readonly"].some(n=>e[n]===!0)?!0:e&&e.role==="heading"}isEnabled(e=this.focused){if(Array.isArray(e))return e.every(t=>this.isEnabled(t));if(e.choices){let t=e.choices.filter(n=>!this.isDisabled(n));return e.enabled&&t.every(n=>this.isEnabled(n))}return e.enabled&&!this.isDisabled(e)}isChoice(e,t){return e.name===t||e.index===Number(t)}isSelected(e){return Array.isArray(this.initial)?this.initial.some(t=>this.isChoice(e,t)):this.isChoice(e,this.initial)}map(e=[],t="value"){return[].concat(e||[]).reduce((n,s)=>(n[s]=this.find(s,t),n),{})}filter(e,t){let s=typeof e=="function"?e:(a,c)=>[a.name,c].includes(e),o=(this.options.multiple?this.state._choices:this.choices).filter(s);return t?o.map(a=>a[t]):o}find(e,t){if(hN(e))return t?e[t]:e;let s=typeof e=="function"?e:(o,a)=>[o.name,a].includes(e),i=this.choices.find(s);if(i)return t?i[t]:i}findIndex(e){return this.choices.indexOf(this.find(e))}async submit(){let e=this.focused;if(!e)return this.alert();if(e.newChoice)return e.input?(e.updateChoice(),this.render()):this.alert();if(this.choices.some(o=>o.newChoice))return this.alert();let{reorder:t,sort:n}=this.options,s=this.multiple===!0,i=this.selected;return i===void 0?this.alert():(Array.isArray(i)&&t!==!1&&n!==!0&&(i=Ld.reorder(i)),this.value=s?i.map(o=>o.name):i.name,super.submit())}set choices(e=[]){this.state._choices=this.state._choices||[],this.state.choices=e;for(let t of e)this.state._choices.some(n=>n.name===t.name)||this.state._choices.push(t);if(!this._initial&&this.options.initial){this._initial=!0;let t=this.initial;if(typeof t=="string"||typeof t=="number"){let n=this.find(t);n&&(this.initial=n.index,this.focus(n,!0))}}}get choices(){return mN(this,this.state.choices||[])}set visible(e){this.state.visible=e}get visible(){return(this.state.visible||this.choices).slice(0,this.limit)}set limit(e){this.state.limit=e}get limit(){let{state:e,options:t,choices:n}=this,s=e.limit||this._limit||t.limit||n.length;return Math.min(s,this.height)}set value(e){super.value=e}get value(){return typeof super.value!="string"&&super.value===this.initial?this.input:super.value}set index(e){this.state.index=e}get index(){return Math.max(0,this.state?this.state.index:0)}get enabled(){return this.filter(this.isEnabled.bind(this))}get focused(){let e=this.choices[this.index];return e&&this.state.submitted&&this.multiple!==!0&&(e.enabled=!0),e}get selectable(){return this.choices.filter(e=>!this.isDisabled(e))}get selected(){return this.multiple?this.enabled:this.focused}};function mN(r,e){if(e instanceof Promise)return e;if(typeof e=="function"){if(Ld.isAsyncFn(e))return e;e=e.call(r,r)}for(let t of e){if(Array.isArray(t.choices)){let n=t.choices.filter(s=>!r.isDisabled(s));t.enabled=n.every(s=>s.enabled===!0)}r.isDisabled(t)===!0&&delete t.enabled}return e}gN.exports=Z_});var hs=C((yCe,EN)=>{"use strict";var gne=bl(),eT=Ar(),tT=class extends gne{constructor(e){super(e),this.emptyError=this.options.emptyError||"No items were selected"}async dispatch(e,t){if(this.multiple)return this[t.name]?await this[t.name](e,t):await super.dispatch(e,t);this.alert()}separator(){if(this.options.separator)return super.separator();let e=this.styles.muted(this.symbols.ellipsis);return this.state.submitted?super.separator():e}pointer(e,t){return!this.multiple||this.options.pointer?super.pointer(e,t):""}indicator(e,t){return this.multiple?super.indicator(e,t):""}choiceMessage(e,t){let n=this.resolve(e.message,this.state,e,t);return e.role==="heading"&&!eT.hasColor(n)&&(n=this.styles.strong(n)),this.resolve(n,this.state,e,t)}choiceSeparator(){return":"}async renderChoice(e,t){await this.onChoice(e,t);let n=this.index===t,s=await this.pointer(e,t),i=await this.indicator(e,t)+(e.pad||""),o=await this.resolve(e.hint,this.state,e,t);o&&!eT.hasColor(o)&&(o=this.styles.muted(o));let a=this.indent(e),c=await this.choiceMessage(e,t),u=()=>[this.margin[3],a+s+i,c,this.margin[1],o].filter(Boolean).join(" ");return e.role==="heading"?u():e.disabled?(eT.hasColor(c)||(c=this.styles.disabled(c)),u()):(n&&(c=this.styles.em(c)),u())}async renderChoices(){if(this.state.loading==="choices")return this.styles.warning("Loading choices");if(this.state.submitted)return"";let e=this.visible.map(async(i,o)=>await this.renderChoice(i,o)),t=await Promise.all(e);t.length||t.push(this.styles.danger("No matching choices"));let n=this.margin[0]+t.join(`
121
121
  `),s;return this.options.choicesHeader&&(s=await this.resolve(this.options.choicesHeader,this.state)),[s,n].filter(Boolean).join(`
122
122
  `)}format(){return!this.state.submitted||this.state.cancelled?"":Array.isArray(this.selected)?this.selected.map(e=>this.styles.primary(e.name)).join(", "):this.styles.primary(this.selected.name)}async render(){let{submitted:e,size:t}=this.state,n="",s=await this.header(),i=await this.prefix(),o=await this.separator(),a=await this.message();this.options.promptLine!==!1&&(n=[i,a,o,""].join(" "),this.state.prompt=n);let c=await this.format(),u=await this.error()||await this.hint(),l=await this.renderChoices(),f=await this.footer();c&&(n+=c),u&&!n.includes(u)&&(n+=" "+u),e&&!c&&!l.trim()&&this.multiple&&this.emptyError!=null&&(n+=this.styles.danger(this.emptyError)),this.clear(t),this.write([s,n,l,f].filter(Boolean).join(`
123
- `)),this.write(this.margin[2]),this.restore()}};EN.exports=tT});var _N=C((ACe,SN)=>{"use strict";var Ene=hs(),Sne=(r,e)=>{let t=r?new RegExp(r,"ig"):/$^/;return n=>r?n.replace(t,s=>e(s)):n},rT=class extends Ene{constructor(e){super(e),this.cursorShow()}moveCursor(e){this.state.cursor+=e}dispatch(e){return this.append(e)}space(e){return this.options.multiple?super.space(e):this.append(e)}append(e){let{cursor:t,input:n}=this.state;return this.input=n.slice(0,t)+e+n.slice(t),this.moveCursor(1),this.complete()}delete(){let{cursor:e,input:t}=this.state;return t?(this.input=t.slice(0,e-1)+t.slice(e),this.moveCursor(-1),this.complete()):this.alert()}deleteForward(){let{cursor:e,input:t}=this.state;return t[e]===void 0?this.alert():(this.input=`${t}`.slice(0,e)+`${t}`.slice(e+1),this.complete())}number(e){return this.append(e)}async complete(){this.completing=!0,this.choices=await this.suggest(this.input,this.state._choices),this.state.limit=void 0,this.index=Math.min(Math.max(this.visible.length-1,0),this.index),await this.render(),this.completing=!1}suggest(e=this.input,t=this.state._choices){if(typeof this.options.suggest=="function")return this.options.suggest.call(this,e,t);let n=e.toLowerCase();return t.filter(s=>s.message.toLowerCase().includes(n))}pointer(){return""}format(){if(!this.focused)return this.input;if(this.options.multiple&&this.state.submitted)return this.selected.map(e=>this.styles.primary(e.message)).join(", ");if(this.state.submitted){let e=this.value=this.input=this.focused.value;return this.styles.primary(e)}return this.input}async render(){if(this.state.status!=="pending")return super.render();let e=this.options.highlight||this.styles.complement,t=(i,o)=>i&&(e.stack?e(i):e.call(this,i)),n=Sne(this.input,t),s=this.choices;this.choices=s.map(i=>({...i,message:n(i.message)})),await super.render(),this.choices=s}submit(){return this.options.multiple&&(this.value=this.selected.map(e=>e.name)),super.submit()}};SN.exports=rT});var iT=C((OCe,TN)=>{"use strict";var nT=Ar();TN.exports=(r,e={})=>{r.cursorHide();let{input:t="",initial:n="",pos:s,showCursor:i=!0,color:o}=e,a=o||r.styles.placeholder,c=nT.inverse(r.styles.primary),u=g=>c(r.styles.black(g)),l=t,f=" ",p=u(f);if(r.blink&&r.blink.off===!0&&(u=g=>g,p=""),i&&s===0&&n===""&&t==="")return u(f);if(i&&s===0&&(t===n||t===""))return u(n[0])+a(n.slice(1));n=nT.isPrimitive(n)?`${n}`:"",t=nT.isPrimitive(t)?`${t}`:"";let d=n&&n.startsWith(t)&&n!==t,m=d?u(n[t.length]):p;if(s!==t.length&&i===!0&&(l=t.slice(0,s)+u(t[s])+t.slice(s+1),m=""),i===!1&&(m=""),d){let g=r.styles.unstyle(l+m);return l+m+a(n.slice(g.length))}return l+m}});var Md=C((CCe,yN)=>{"use strict";var _ne=yn(),Tne=hs(),yne=iT(),sT=class extends Tne{constructor(e){super({...e,multiple:!0}),this.type="form",this.initial=this.options.initial,this.align=[this.options.align,"right"].find(t=>t!=null),this.emptyError="",this.values={}}async reset(e){return await super.reset(),e===!0&&(this._index=this.index),this.index=this._index,this.values={},this.choices.forEach(t=>t.reset&&t.reset()),this.render()}dispatch(e){return!!e&&this.append(e)}append(e){let t=this.focused;if(!t)return this.alert();let{cursor:n,input:s}=t;return t.value=t.input=s.slice(0,n)+e+s.slice(n),t.cursor++,this.render()}delete(){let e=this.focused;if(!e||e.cursor<=0)return this.alert();let{cursor:t,input:n}=e;return e.value=e.input=n.slice(0,t-1)+n.slice(t),e.cursor--,this.render()}deleteForward(){let e=this.focused;if(!e)return this.alert();let{cursor:t,input:n}=e;if(n[t]===void 0)return this.alert();let s=`${n}`.slice(0,t)+`${n}`.slice(t+1);return e.value=e.input=s,this.render()}right(){let e=this.focused;return e?e.cursor>=e.input.length?this.alert():(e.cursor++,this.render()):this.alert()}left(){let e=this.focused;return e?e.cursor<=0?this.alert():(e.cursor--,this.render()):this.alert()}space(e,t){return this.dispatch(e,t)}number(e,t){return this.dispatch(e,t)}next(){let e=this.focused;if(!e)return this.alert();let{initial:t,input:n}=e;return t&&t.startsWith(n)&&n!==t?(e.value=e.input=t,e.cursor=e.value.length,this.render()):super.next()}prev(){let e=this.focused;return e?e.cursor===0?super.prev():(e.value=e.input="",e.cursor=0,this.render()):this.alert()}separator(){return""}format(e){return this.state.submitted?"":super.format(e)}pointer(){return""}indicator(e){return e.input?"\u29BF":"\u2299"}async choiceSeparator(e,t){let n=await this.resolve(e.separator,this.state,e,t)||":";return n?" "+this.styles.disabled(n):""}async renderChoice(e,t){await this.onChoice(e,t);let{state:n,styles:s}=this,{cursor:i,initial:o="",name:a,input:c=""}=e,{muted:u,submitted:l,primary:f,danger:p}=s,d=this.index===t,m=e.validate||(()=>!0),g=await this.choiceSeparator(e,t),h=e.message;this.align==="right"&&(h=h.padStart(this.longest+1," ")),this.align==="left"&&(h=h.padEnd(this.longest+1," "));let E=this.values[a]=c||o,_=c?"success":"dark";await m.call(e,E,this.state)!==!0&&(_="danger");let S=s[_],y=S(await this.indicator(e,t))+(e.pad||""),T=this.indent(e),I=()=>[T,y,h+g,c].filter(Boolean).join(" ");if(n.submitted)return h=_ne(h),c=l(c),I();if(e.format)c=await e.format.call(this,c,e,t);else{let v=this.styles.muted;c=yne(this,{input:c,initial:o,pos:i,showCursor:d,color:v})}return this.isValue(c)||(c=this.styles.muted(this.symbols.ellipsis)),e.result&&(this.values[a]=await e.result.call(this,E,e,t)),d&&(h=f(h)),e.error?c+=(c?" ":"")+p(e.error.trim()):e.hint&&(c+=(c?" ":"")+u(e.hint.trim())),I()}async submit(){return this.value=this.values,super.base.submit.call(this)}};yN.exports=sT});var oT=C((vCe,ON)=>{"use strict";var Ane=Md(),One=()=>{throw new Error("expected prompt to have a custom authenticate method")},AN=(r=One)=>{class e extends Ane{constructor(n){super(n)}async submit(){this.value=await r.call(this,this.values,this.state),super.base.submit.call(this)}static create(n){return AN(n)}}return e};ON.exports=AN()});var DN=C((DCe,vN)=>{"use strict";var Cne=oT();function vne(r,e){return r.username===this.options.username&&r.password===this.options.password}var CN=(r=vne)=>{let e=[{name:"username",message:"username"},{name:"password",message:"password",format(n){return this.options.showPassword?n:(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(n.length))}}];class t extends Cne.create(r){constructor(s){super({...s,choices:e})}static create(s){return CN(s)}}return t};vN.exports=CN()});var Nd=C((xCe,xN)=>{"use strict";var Dne=sc(),{isPrimitive:xne,hasColor:bne}=Ar(),aT=class extends Dne{constructor(e){super(e),this.cursorHide()}async initialize(){let e=await this.resolve(this.initial,this.state);this.input=await this.cast(e),await super.initialize()}dispatch(e){return this.isValue(e)?(this.input=e,this.submit()):this.alert()}format(e){let{styles:t,state:n}=this;return n.submitted?t.success(e):t.primary(e)}cast(e){return this.isTrue(e)}isTrue(e){return/^[ty1]/i.test(e)}isFalse(e){return/^[fn0]/i.test(e)}isValue(e){return xne(e)&&(this.isTrue(e)||this.isFalse(e))}async hint(){if(this.state.status==="pending"){let e=await this.element("hint");return bne(e)?e:this.styles.muted(e)}}async render(){let{input:e,size:t}=this.state,n=await this.prefix(),s=await this.separator(),i=await this.message(),o=this.styles.muted(this.default),a=[n,i,o,s].filter(Boolean).join(" ");this.state.prompt=a;let c=await this.header(),u=this.value=this.cast(e),l=await this.format(u),f=await this.error()||await this.hint(),p=await this.footer();f&&!a.includes(f)&&(l+=" "+f),a+=" "+l,this.clear(t),this.write([c,a,p].filter(Boolean).join(`
123
+ `)),this.write(this.margin[2]),this.restore()}};EN.exports=tT});var _N=C((ACe,SN)=>{"use strict";var Ene=hs(),Sne=(r,e)=>{let t=r?new RegExp(r,"ig"):/$^/;return n=>r?n.replace(t,s=>e(s)):n},rT=class extends Ene{constructor(e){super(e),this.cursorShow()}moveCursor(e){this.state.cursor+=e}dispatch(e){return this.append(e)}space(e){return this.options.multiple?super.space(e):this.append(e)}append(e){let{cursor:t,input:n}=this.state;return this.input=n.slice(0,t)+e+n.slice(t),this.moveCursor(1),this.complete()}delete(){let{cursor:e,input:t}=this.state;return t?(this.input=t.slice(0,e-1)+t.slice(e),this.moveCursor(-1),this.complete()):this.alert()}deleteForward(){let{cursor:e,input:t}=this.state;return t[e]===void 0?this.alert():(this.input=`${t}`.slice(0,e)+`${t}`.slice(e+1),this.complete())}number(e){return this.append(e)}async complete(){this.completing=!0,this.choices=await this.suggest(this.input,this.state._choices),this.state.limit=void 0,this.index=Math.min(Math.max(this.visible.length-1,0),this.index),await this.render(),this.completing=!1}suggest(e=this.input,t=this.state._choices){if(typeof this.options.suggest=="function")return this.options.suggest.call(this,e,t);let n=e.toLowerCase();return t.filter(s=>s.message.toLowerCase().includes(n))}pointer(){return""}format(){if(!this.focused)return this.input;if(this.options.multiple&&this.state.submitted)return this.selected.map(e=>this.styles.primary(e.message)).join(", ");if(this.state.submitted){let e=this.value=this.input=this.focused.value;return this.styles.primary(e)}return this.input}async render(){if(this.state.status!=="pending")return super.render();let e=this.options.highlight||this.styles.complement,t=(i,o)=>i&&(e.stack?e(i):e.call(this,i)),n=Sne(this.input,t),s=this.choices;this.choices=s.map(i=>({...i,message:n(i.message)})),await super.render(),this.choices=s}submit(){return this.options.multiple&&(this.value=this.selected.map(e=>e.name)),super.submit()}};SN.exports=rT});var iT=C((OCe,TN)=>{"use strict";var nT=Ar();TN.exports=(r,e={})=>{r.cursorHide();let{input:t="",initial:n="",pos:s,showCursor:i=!0,color:o}=e,a=o||r.styles.placeholder,c=nT.inverse(r.styles.primary),u=g=>c(r.styles.black(g)),l=t,f=" ",p=u(f);if(r.blink&&r.blink.off===!0&&(u=g=>g,p=""),i&&s===0&&n===""&&t==="")return u(f);if(i&&s===0&&(t===n||t===""))return u(n[0])+a(n.slice(1));n=nT.isPrimitive(n)?`${n}`:"",t=nT.isPrimitive(t)?`${t}`:"";let d=n&&n.startsWith(t)&&n!==t,m=d?u(n[t.length]):p;if(s!==t.length&&i===!0&&(l=t.slice(0,s)+u(t[s])+t.slice(s+1),m=""),i===!1&&(m=""),d){let g=r.styles.unstyle(l+m);return l+m+a(n.slice(g.length))}return l+m}});var Md=C((CCe,yN)=>{"use strict";var _ne=yn(),Tne=hs(),yne=iT(),sT=class extends Tne{constructor(e){super({...e,multiple:!0}),this.type="form",this.initial=this.options.initial,this.align=[this.options.align,"right"].find(t=>t!=null),this.emptyError="",this.values={}}async reset(e){return await super.reset(),e===!0&&(this._index=this.index),this.index=this._index,this.values={},this.choices.forEach(t=>t.reset&&t.reset()),this.render()}dispatch(e){return!!e&&this.append(e)}append(e){let t=this.focused;if(!t)return this.alert();let{cursor:n,input:s}=t;return t.value=t.input=s.slice(0,n)+e+s.slice(n),t.cursor++,this.render()}delete(){let e=this.focused;if(!e||e.cursor<=0)return this.alert();let{cursor:t,input:n}=e;return e.value=e.input=n.slice(0,t-1)+n.slice(t),e.cursor--,this.render()}deleteForward(){let e=this.focused;if(!e)return this.alert();let{cursor:t,input:n}=e;if(n[t]===void 0)return this.alert();let s=`${n}`.slice(0,t)+`${n}`.slice(t+1);return e.value=e.input=s,this.render()}right(){let e=this.focused;return e?e.cursor>=e.input.length?this.alert():(e.cursor++,this.render()):this.alert()}left(){let e=this.focused;return e?e.cursor<=0?this.alert():(e.cursor--,this.render()):this.alert()}space(e,t){return this.dispatch(e,t)}number(e,t){return this.dispatch(e,t)}next(){let e=this.focused;if(!e)return this.alert();let{initial:t,input:n}=e;return t&&t.startsWith(n)&&n!==t?(e.value=e.input=t,e.cursor=e.value.length,this.render()):super.next()}prev(){let e=this.focused;return e?e.cursor===0?super.prev():(e.value=e.input="",e.cursor=0,this.render()):this.alert()}separator(){return""}format(e){return this.state.submitted?"":super.format(e)}pointer(){return""}indicator(e){return e.input?"\u29BF":"\u2299"}async choiceSeparator(e,t){let n=await this.resolve(e.separator,this.state,e,t)||":";return n?" "+this.styles.disabled(n):""}async renderChoice(e,t){await this.onChoice(e,t);let{state:n,styles:s}=this,{cursor:i,initial:o="",name:a,input:c=""}=e,{muted:u,submitted:l,primary:f,danger:p}=s,d=this.index===t,m=e.validate||(()=>!0),g=await this.choiceSeparator(e,t),h=e.message;this.align==="right"&&(h=h.padStart(this.longest+1," ")),this.align==="left"&&(h=h.padEnd(this.longest+1," "));let E=this.values[a]=c||o,_=c?"success":"dark";await m.call(e,E,this.state)!==!0&&(_="danger");let S=s[_],y=S(await this.indicator(e,t))+(e.pad||""),T=this.indent(e),b=()=>[T,y,h+g,c].filter(Boolean).join(" ");if(n.submitted)return h=_ne(h),c=l(c),b();if(e.format)c=await e.format.call(this,c,e,t);else{let v=this.styles.muted;c=yne(this,{input:c,initial:o,pos:i,showCursor:d,color:v})}return this.isValue(c)||(c=this.styles.muted(this.symbols.ellipsis)),e.result&&(this.values[a]=await e.result.call(this,E,e,t)),d&&(h=f(h)),e.error?c+=(c?" ":"")+p(e.error.trim()):e.hint&&(c+=(c?" ":"")+u(e.hint.trim())),b()}async submit(){return this.value=this.values,super.base.submit.call(this)}};yN.exports=sT});var oT=C((vCe,ON)=>{"use strict";var Ane=Md(),One=()=>{throw new Error("expected prompt to have a custom authenticate method")},AN=(r=One)=>{class e extends Ane{constructor(n){super(n)}async submit(){this.value=await r.call(this,this.values,this.state),super.base.submit.call(this)}static create(n){return AN(n)}}return e};ON.exports=AN()});var DN=C((DCe,vN)=>{"use strict";var Cne=oT();function vne(r,e){return r.username===this.options.username&&r.password===this.options.password}var CN=(r=vne)=>{let e=[{name:"username",message:"username"},{name:"password",message:"password",format(n){return this.options.showPassword?n:(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(n.length))}}];class t extends Cne.create(r){constructor(s){super({...s,choices:e})}static create(s){return CN(s)}}return t};vN.exports=CN()});var Nd=C((xCe,xN)=>{"use strict";var Dne=sc(),{isPrimitive:xne,hasColor:bne}=Ar(),aT=class extends Dne{constructor(e){super(e),this.cursorHide()}async initialize(){let e=await this.resolve(this.initial,this.state);this.input=await this.cast(e),await super.initialize()}dispatch(e){return this.isValue(e)?(this.input=e,this.submit()):this.alert()}format(e){let{styles:t,state:n}=this;return n.submitted?t.success(e):t.primary(e)}cast(e){return this.isTrue(e)}isTrue(e){return/^[ty1]/i.test(e)}isFalse(e){return/^[fn0]/i.test(e)}isValue(e){return xne(e)&&(this.isTrue(e)||this.isFalse(e))}async hint(){if(this.state.status==="pending"){let e=await this.element("hint");return bne(e)?e:this.styles.muted(e)}}async render(){let{input:e,size:t}=this.state,n=await this.prefix(),s=await this.separator(),i=await this.message(),o=this.styles.muted(this.default),a=[n,i,o,s].filter(Boolean).join(" ");this.state.prompt=a;let c=await this.header(),u=this.value=this.cast(e),l=await this.format(u),f=await this.error()||await this.hint(),p=await this.footer();f&&!a.includes(f)&&(l+=" "+f),a+=" "+l,this.clear(t),this.write([c,a,p].filter(Boolean).join(`
124
124
  `)),this.restore()}set value(e){super.value=e}get value(){return this.cast(super.value)}};xN.exports=aT});var IN=C((bCe,bN)=>{"use strict";var Ine=Nd(),cT=class extends Ine{constructor(e){super(e),this.default=this.options.default||(this.initial?"(Y/n)":"(y/N)")}};bN.exports=cT});var wN=C((ICe,PN)=>{"use strict";var Pne=hs(),wne=Md(),oc=wne.prototype,uT=class extends Pne{constructor(e){super({...e,multiple:!0}),this.align=[this.options.align,"left"].find(t=>t!=null),this.emptyError="",this.values={}}dispatch(e,t){let n=this.focused,s=n.parent||{};return!n.editable&&!s.editable&&(e==="a"||e==="i")?super[e]():oc.dispatch.call(this,e,t)}append(e,t){return oc.append.call(this,e,t)}delete(e,t){return oc.delete.call(this,e,t)}space(e){return this.focused.editable?this.append(e):super.space()}number(e){return this.focused.editable?this.append(e):super.number(e)}next(){return this.focused.editable?oc.next.call(this):super.next()}prev(){return this.focused.editable?oc.prev.call(this):super.prev()}async indicator(e,t){let n=e.indicator||"",s=e.editable?n:super.indicator(e,t);return await this.resolve(s,this.state,e,t)||""}indent(e){return e.role==="heading"?"":e.editable?" ":" "}async renderChoice(e,t){return e.indent="",e.editable?oc.renderChoice.call(this,e,t):super.renderChoice(e,t)}error(){return""}footer(){return this.state.error}async validate(){let e=!0;for(let t of this.choices){if(typeof t.validate!="function"||t.role==="heading")continue;let n=t.parent?this.value[t.parent.name]:this.value;if(t.editable?n=t.value===t.name?t.initial||"":t.value:this.isDisabled(t)||(n=t.enabled===!0),e=await t.validate(n,this.state),e!==!0)break}return e!==!0&&(this.state.error=typeof e=="string"?e:"Invalid Input"),e}submit(){if(this.focused.newChoice===!0)return super.submit();if(this.choices.some(e=>e.newChoice))return this.alert();this.value={};for(let e of this.choices){let t=e.parent?this.value[e.parent.name]:this.value;if(e.role==="heading"){this.value[e.name]={};continue}e.editable?t[e.name]=e.value===e.name?e.initial||"":e.value:this.isDisabled(e)||(t[e.name]=e.enabled===!0)}return this.base.submit.call(this)}};PN.exports=uT});var No=C((PCe,RN)=>{"use strict";var Rne=sc(),Lne=k_(),Mne=iT(),{isPrimitive:Nne}=Ar(),lT=class extends Rne{constructor(e){super(e),this.initial=Nne(this.initial)?String(this.initial):"",this.initial&&this.cursorHide(),this.state.prevCursor=0,this.state.clipboard=[],this.keypressTimeout=this.options.keypressTimeout!==void 0?this.options.keypressTimeout:null}async keypress(e,t=e?Lne(e,{}):{}){let n=Date.now(),s=n-this.lastKeypress;this.lastKeypress=n;let i=t.name==="return"||t.name==="enter",o=this.state.prevKeypress,a;if(this.state.prevKeypress=t,this.keypressTimeout!=null&&i){if(s<this.keypressTimeout)return this.submit();this.state.multilineBuffer=this.state.multilineBuffer||"",this.state.multilineBuffer+=e,a=!0,o=null}return(a||this.options.multiline&&i)&&(!o||o.name!=="return")?this.append(`
125
125
  `,t):super.keypress(e,t)}moveCursor(e){this.cursor+=e}reset(){return this.input=this.value="",this.cursor=0,this.render()}dispatch(e,t){if(!e||t.ctrl||t.code)return this.alert();this.append(e)}append(e){let{cursor:t,input:n}=this.state;this.input=`${n}`.slice(0,t)+e+`${n}`.slice(t),this.moveCursor(String(e).length),this.render()}insert(e){this.append(e)}delete(){let{cursor:e,input:t}=this.state;if(e<=0)return this.alert();this.input=`${t}`.slice(0,e-1)+`${t}`.slice(e),this.moveCursor(-1),this.render()}deleteForward(){let{cursor:e,input:t}=this.state;if(t[e]===void 0)return this.alert();this.input=`${t}`.slice(0,e)+`${t}`.slice(e+1),this.render()}cutForward(){let e=this.cursor;if(this.input.length<=e)return this.alert();this.state.clipboard.push(this.input.slice(e)),this.input=this.input.slice(0,e),this.render()}cutLeft(){let e=this.cursor;if(e===0)return this.alert();let t=this.input.slice(0,e),n=this.input.slice(e),s=t.split(" ");this.state.clipboard.push(s.pop()),this.input=s.join(" "),this.cursor=this.input.length,this.input+=n,this.render()}paste(){if(!this.state.clipboard.length)return this.alert();this.insert(this.state.clipboard.pop()),this.render()}toggleCursor(){this.state.prevCursor?(this.cursor=this.state.prevCursor,this.state.prevCursor=0):(this.state.prevCursor=this.cursor,this.cursor=0),this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.input.length-1,this.render()}next(){let e=this.initial!=null?String(this.initial):"";if(!e||!e.startsWith(this.input))return this.alert();this.input=this.initial,this.cursor=this.initial.length,this.render()}prev(){if(!this.input)return this.alert();this.reset()}backward(){return this.left()}forward(){return this.right()}right(){return this.cursor>=this.input.length?this.alert():(this.moveCursor(1),this.render())}left(){return this.cursor<=0?this.alert():(this.moveCursor(-1),this.render())}isValue(e){return!!e}async format(e=this.value){let t=await this.resolve(this.initial,this.state);return this.state.submitted?this.styles.submitted(e||t):Mne(this,{input:e,initial:t,pos:this.cursor})}async render(){let e=this.state.size,t=await this.prefix(),n=await this.separator(),s=await this.message(),i=[t,s,n].filter(Boolean).join(" ");this.state.prompt=i;let o=await this.header(),a=await this.format(),c=await this.error()||await this.hint(),u=await this.footer();c&&!a.includes(c)&&(a+=" "+c),i+=" "+a,this.clear(e),this.write([o,i,u].filter(Boolean).join(`
126
126
  `)),this.restore()}};RN.exports=lT});var MN=C((wCe,LN)=>{"use strict";var Bne=r=>r.filter((e,t)=>r.lastIndexOf(e)===t),Bd=r=>Bne(r).filter(Boolean);LN.exports=(r,e={},t="")=>{let{past:n=[],present:s=""}=e,i,o;switch(r){case"prev":case"undo":return i=n.slice(0,n.length-1),o=n[n.length-1]||"",{past:Bd([t,...i]),present:o};case"next":case"redo":return i=n.slice(1),o=n[0]||"",{past:Bd([...i,t]),present:o};case"save":return{past:Bd([...n,t]),present:""};case"remove":return o=Bd(n.filter(a=>a!==t)),s="",o.length&&(s=o.pop()),{past:o,present:s};default:throw new Error(`Invalid action: "${r}"`)}}});var pT=C((RCe,BN)=>{"use strict";var Une=No(),NN=MN(),fT=class extends Une{constructor(e){super(e);let t=this.options.history;if(t&&t.store){let n=t.values||this.initial;this.autosave=!!t.autosave,this.store=t.store,this.data=this.store.get("values")||{past:[],present:n},this.initial=this.data.present||this.data.past[this.data.past.length-1]}}completion(e){return this.store?(this.data=NN(e,this.data,this.input),this.data.present?(this.input=this.data.present,this.cursor=this.input.length,this.render()):this.alert()):this.alert()}altUp(){return this.completion("prev")}altDown(){return this.completion("next")}prev(){return this.save(),super.prev()}save(){this.store&&(this.data=NN("save",this.data,this.input),this.store.set("values",this.data))}submit(){return this.store&&this.autosave===!0&&this.save(),super.submit()}};BN.exports=fT});var FN=C((LCe,UN)=>{"use strict";var Fne=No(),dT=class extends Fne{format(){return""}};UN.exports=dT});var GN=C((MCe,VN)=>{"use strict";var Vne=No(),hT=class extends Vne{constructor(e={}){super(e),this.sep=this.options.separator||/, */,this.initial=e.initial||""}split(e=this.value){return e?String(e).split(this.sep):[]}format(){let e=this.state.submitted?this.styles.primary:t=>t;return this.list.map(e).join(", ")}async submit(e){let t=this.state.error||await this.validate(this.list,this.state);return t!==!0?(this.state.error=t,super.submit()):(this.value=this.list,super.submit())}get list(){return this.split()}};VN.exports=hT});var jN=C((NCe,kN)=>{"use strict";var Gne=hs(),mT=class extends Gne{constructor(e){super({...e,multiple:!0})}};kN.exports=mT});var ET=C((BCe,qN)=>{"use strict";var kne=No(),gT=class extends kne{constructor(e={}){super({style:"number",...e}),this.min=this.isValue(e.min)?this.toNumber(e.min):-1/0,this.max=this.isValue(e.max)?this.toNumber(e.max):1/0,this.delay=e.delay!=null?e.delay:1e3,this.float=e.float!==!1,this.round=e.round===!0||e.float===!1,this.major=e.major||10,this.minor=e.minor||1,this.initial=e.initial!=null?e.initial:"",this.input=String(this.initial),this.cursor=this.input.length,this.cursorShow()}append(e){return!/[-+.]/.test(e)||e==="."&&this.input.includes(".")?this.alert("invalid number"):super.append(e)}number(e){return super.append(e)}next(){return this.input&&this.input!==this.initial?this.alert():this.isValue(this.initial)?(this.input=this.initial,this.cursor=String(this.initial).length,this.render()):this.alert()}up(e){let t=e||this.minor,n=this.toNumber(this.input);return n>this.max+t?this.alert():(this.input=`${n+t}`,this.render())}down(e){let t=e||this.minor,n=this.toNumber(this.input);return n<this.min-t?this.alert():(this.input=`${n-t}`,this.render())}shiftDown(){return this.down(this.major)}shiftUp(){return this.up(this.major)}format(e=this.input){return typeof this.options.format=="function"?this.options.format.call(this,e):this.styles.info(e)}toNumber(e=""){return this.float?+e:Math.round(+e)}isValue(e){return/^[-+]?[0-9]+((\.)|(\.[0-9]+))?$/.test(e)}submit(){let e=[this.input,this.initial].find(t=>this.isValue(t));return this.value=this.toNumber(e||0),super.submit()}};qN.exports=gT});var HN=C((UCe,$N)=>{$N.exports=ET()});var YN=C((FCe,WN)=>{"use strict";var jne=No(),ST=class extends jne{constructor(e){super(e),this.cursorShow()}format(e=this.input){return this.keypressed?(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(e.length)):""}};WN.exports=ST});var KN=C((VCe,XN)=>{"use strict";var qne=yn(),$ne=bl(),zN=Ar(),_T=class extends $ne{constructor(e={}){super(e),this.widths=[].concat(e.messageWidth||50),this.align=[].concat(e.align||"left"),this.linebreak=e.linebreak||!1,this.edgeLength=e.edgeLength||3,this.newline=e.newline||`
@@ -130,7 +130,7 @@ ${E.join(`
130
130
  `)].filter(Boolean)}async renderChoices(){if(this.state.submitted)return"";this.tableize();let e=this.visible.map(async(s,i)=>await this.renderChoice(s,i)),t=await Promise.all(e),n=await this.renderScaleHeading();return this.margin[0]+[n,...t.map(s=>s.join(" "))].join(`
131
131
  `)}async render(){let{submitted:e,size:t}=this.state,n=await this.prefix(),s=await this.separator(),i=await this.message(),o="";this.options.promptLine!==!1&&(o=[n,i,s,""].join(" "),this.state.prompt=o);let a=await this.header(),c=await this.format(),u=await this.renderScaleKey(),l=await this.error()||await this.hint(),f=await this.renderChoices(),p=await this.footer(),d=this.emptyError;c&&(o+=c),l&&!o.includes(l)&&(o+=" "+l),e&&!c&&!f.trim()&&this.multiple&&d!=null&&(o+=this.styles.danger(d)),this.clear(t),this.write([a,o,u,f,p].filter(Boolean).join(`
132
132
  `)),this.state.submitted||this.write(this.margin[2]),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIndex;return this.base.submit.call(this)}};XN.exports=_T});var ZN=C((GCe,QN)=>{"use strict";var JN=yn(),Hne=(r="")=>typeof r=="string"?r.replace(/^['"]|['"]$/g,""):"",yT=class{constructor(e){this.name=e.key,this.field=e.field||{},this.value=Hne(e.initial||this.field.initial||""),this.message=e.message||this.name,this.cursor=0,this.input="",this.lines=[]}},Wne=async(r={},e={},t=n=>n)=>{let n=new Set,s=r.fields||[],i=r.template,o=[],a=[],c=[],u=1;typeof i=="function"&&(i=await i());let l=-1,f=()=>i[++l],p=()=>i[l+1],d=m=>{m.line=u,o.push(m)};for(d({type:"bos",value:""});l<i.length-1;){let m=f();if(/^[^\S\n ]$/.test(m)){d({type:"text",value:m});continue}if(m===`
133
- `){d({type:"newline",value:m}),u++;continue}if(m==="\\"){m+=f(),d({type:"text",value:m});continue}if((m==="$"||m==="#"||m==="{")&&p()==="{"){let h=f();m+=h;let E={type:"template",open:m,inner:"",close:"",value:m},_;for(;_=f();){if(_==="}"){p()==="}"&&(_+=f()),E.value+=_,E.close=_;break}_===":"?(E.initial="",E.key=E.inner):E.initial!==void 0&&(E.initial+=_),E.value+=_,E.inner+=_}E.template=E.open+(E.initial||E.inner)+E.close,E.key=E.key||E.inner,hasOwnProperty.call(e,E.key)&&(E.initial=e[E.key]),E=t(E),d(E),c.push(E.key),n.add(E.key);let S=a.find(y=>y.name===E.key);E.field=s.find(y=>y.name===E.key),S||(S=new yT(E),a.push(S)),S.lines.push(E.line-1);continue}let g=o[o.length-1];g.type==="text"&&g.line===u?g.value+=m:d({type:"text",value:m})}return d({type:"eos",value:""}),{input:i,tabstops:o,unique:n,keys:c,items:a}};QN.exports=async r=>{let e=r.options,t=new Set(e.required===!0?[]:e.required||[]),n={...e.values,...e.initial},{tabstops:s,items:i,keys:o}=await Wne(e,n),a=TT("result",r,e),c=TT("format",r,e),u=TT("validate",r,e,!0),l=r.isValue.bind(r);return async(f={},p=!1)=>{let d=0;f.required=t,f.items=i,f.keys=o,f.output="";let m=async(_,S,y,T)=>{let I=await u(_,S,y,T);return I===!1?"Invalid field "+y.name:I};for(let _ of s){let S=_.value,y=_.key;if(_.type!=="template"){S&&(f.output+=S);continue}if(_.type==="template"){let T=i.find(D=>D.name===y);e.required===!0&&f.required.add(T.name);let I=[T.input,f.values[T.value],T.value,S].find(l),x=(T.field||{}).message||_.inner;if(p){let D=await m(f.values[y],f,T,d);if(D&&typeof D=="string"||D===!1){f.invalid.set(y,D);continue}f.invalid.delete(y);let P=await a(f.values[y],f,T,d);f.output+=JN(P);continue}T.placeholder=!1;let A=S;S=await c(S,f,T,d),I!==S?(f.values[y]=I,S=r.styles.typing(I),f.missing.delete(x)):(f.values[y]=void 0,I=`<${x}>`,S=r.styles.primary(I),T.placeholder=!0,f.required.has(y)&&f.missing.add(x)),f.missing.has(x)&&f.validating&&(S=r.styles.warning(I)),f.invalid.has(y)&&f.validating&&(S=r.styles.danger(I)),d===f.index&&(A!==S?S=r.styles.underline(S):S=r.styles.heading(JN(S))),d++}S&&(f.output+=S)}let g=f.output.split(`
133
+ `){d({type:"newline",value:m}),u++;continue}if(m==="\\"){m+=f(),d({type:"text",value:m});continue}if((m==="$"||m==="#"||m==="{")&&p()==="{"){let h=f();m+=h;let E={type:"template",open:m,inner:"",close:"",value:m},_;for(;_=f();){if(_==="}"){p()==="}"&&(_+=f()),E.value+=_,E.close=_;break}_===":"?(E.initial="",E.key=E.inner):E.initial!==void 0&&(E.initial+=_),E.value+=_,E.inner+=_}E.template=E.open+(E.initial||E.inner)+E.close,E.key=E.key||E.inner,hasOwnProperty.call(e,E.key)&&(E.initial=e[E.key]),E=t(E),d(E),c.push(E.key),n.add(E.key);let S=a.find(y=>y.name===E.key);E.field=s.find(y=>y.name===E.key),S||(S=new yT(E),a.push(S)),S.lines.push(E.line-1);continue}let g=o[o.length-1];g.type==="text"&&g.line===u?g.value+=m:d({type:"text",value:m})}return d({type:"eos",value:""}),{input:i,tabstops:o,unique:n,keys:c,items:a}};QN.exports=async r=>{let e=r.options,t=new Set(e.required===!0?[]:e.required||[]),n={...e.values,...e.initial},{tabstops:s,items:i,keys:o}=await Wne(e,n),a=TT("result",r,e),c=TT("format",r,e),u=TT("validate",r,e,!0),l=r.isValue.bind(r);return async(f={},p=!1)=>{let d=0;f.required=t,f.items=i,f.keys=o,f.output="";let m=async(_,S,y,T)=>{let b=await u(_,S,y,T);return b===!1?"Invalid field "+y.name:b};for(let _ of s){let S=_.value,y=_.key;if(_.type!=="template"){S&&(f.output+=S);continue}if(_.type==="template"){let T=i.find(D=>D.name===y);e.required===!0&&f.required.add(T.name);let b=[T.input,f.values[T.value],T.value,S].find(l),x=(T.field||{}).message||_.inner;if(p){let D=await m(f.values[y],f,T,d);if(D&&typeof D=="string"||D===!1){f.invalid.set(y,D);continue}f.invalid.delete(y);let P=await a(f.values[y],f,T,d);f.output+=JN(P);continue}T.placeholder=!1;let A=S;S=await c(S,f,T,d),b!==S?(f.values[y]=b,S=r.styles.typing(b),f.missing.delete(x)):(f.values[y]=void 0,b=`<${x}>`,S=r.styles.primary(b),T.placeholder=!0,f.required.has(y)&&f.missing.add(x)),f.missing.has(x)&&f.validating&&(S=r.styles.warning(b)),f.invalid.has(y)&&f.validating&&(S=r.styles.danger(b)),d===f.index&&(A!==S?S=r.styles.underline(S):S=r.styles.heading(JN(S))),d++}S&&(f.output+=S)}let g=f.output.split(`
134
134
  `).map(_=>" "+_),h=i.length,E=0;for(let _ of i)f.invalid.has(_.name)&&_.lines.forEach(S=>{g[S][0]===" "&&(g[S]=f.styles.danger(f.symbols.bullet)+g[S].slice(1))}),r.isValue(f.values[_.name])&&E++;return f.completed=(E/h*100).toFixed(0),f.output=g.join(`
135
135
  `),f.output}};function TT(r,e,t,n){return(s,i,o,a)=>typeof o.field[r]=="function"?o.field[r].call(e,s,i,o,a):[n,s].find(c=>e.isValue(c))}});var t2=C((kCe,e2)=>{"use strict";var Yne=yn(),zne=ZN(),Xne=sc(),AT=class extends Xne{constructor(e){super(e),this.cursorHide(),this.reset(!0)}async initialize(){this.interpolate=await zne(this),await super.initialize()}async reset(e){this.state.keys=[],this.state.invalid=new Map,this.state.missing=new Set,this.state.completed=0,this.state.values={},e!==!0&&(await this.initialize(),await this.render())}moveCursor(e){let t=this.getItem();this.cursor+=e,t.cursor+=e}dispatch(e,t){if(!t.code&&!t.ctrl&&e!=null&&this.getItem()){this.append(e,t);return}this.alert()}append(e,t){let n=this.getItem(),s=n.input.slice(0,this.cursor),i=n.input.slice(this.cursor);this.input=n.input=`${s}${e}${i}`,this.moveCursor(1),this.render()}delete(){let e=this.getItem();if(this.cursor<=0||!e.input)return this.alert();let t=e.input.slice(this.cursor),n=e.input.slice(0,this.cursor-1);this.input=e.input=`${n}${t}`,this.moveCursor(-1),this.render()}increment(e){return e>=this.state.keys.length-1?0:e+1}decrement(e){return e<=0?this.state.keys.length-1:e-1}first(){this.state.index=0,this.render()}last(){this.state.index=this.state.keys.length-1,this.render()}right(){if(this.cursor>=this.input.length)return this.alert();this.moveCursor(1),this.render()}left(){if(this.cursor<=0)return this.alert();this.moveCursor(-1),this.render()}prev(){this.state.index=this.decrement(this.state.index),this.getItem(),this.render()}next(){this.state.index=this.increment(this.state.index),this.getItem(),this.render()}up(){this.prev()}down(){this.next()}format(e){let t=this.state.completed<100?this.styles.warning:this.styles.success;return this.state.submitted===!0&&this.state.completed!==100&&(t=this.styles.danger),t(`${this.state.completed}% completed`)}async render(){let{index:e,keys:t=[],submitted:n,size:s}=this.state,i=[this.options.newline,`
136
136
  `].find(_=>_!=null),o=await this.prefix(),a=await this.separator(),c=await this.message(),u=[o,c,a].filter(Boolean).join(" ");this.state.prompt=u;let l=await this.header(),f=await this.error()||"",p=await this.hint()||"",d=n?"":await this.interpolate(this.state),m=this.state.key=t[e]||"",g=await this.format(m),h=await this.footer();g&&(u+=" "+g),p&&!g&&this.state.completed===0&&(u+=" "+p),this.clear(s);let E=[l,u,d,h,f.trim()];this.write(E.filter(Boolean).join(i)),this.restore()}getItem(e){let{items:t,keys:n,index:s}=this.state,i=t.find(o=>o.name===n[s]);return i&&i.input!=null&&(this.input=i.input,this.cursor=i.cursor),i}async submit(){typeof this.interpolate!="function"&&await this.initialize(),await this.interpolate(this.state,!0);let{invalid:e,missing:t,output:n,values:s}=this.state;if(e.size){let a="";for(let[c,u]of e)a+=`Invalid ${c}: ${u}
@@ -160,34 +160,34 @@ To resolve the conflict:`,(0,Pm.getConflictResolutionRecipe)(i,e))),n=s):oj.diag
160
160
  `,(0,Pm.getIncompatibilityDetails)(i,e),`To resolve the conflict:
161
161
  `,(0,Pm.getConflictResolutionRecipe)(i,e))}return n}};wm.MetricStorageRegistry=YA});var cj=C(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.MultiMetricStorage=void 0;var zA=class{constructor(e){this._backingStorages=e}record(e,t,n,s){this._backingStorages.forEach(i=>{i.record(e,t,n,s)})}};Rm.MultiMetricStorage=zA});var lj=C(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.BatchObservableResultImpl=Hc.ObservableResultImpl=void 0;var $c=(Pe(),Ue(Ne)),uj=cf(),Cue=Om(),XA=class{constructor(e,t){this._instrumentName=e,this._valueType=t,this._buffer=new uj.AttributeHashMap}observe(e,t={}){if(typeof e!="number"){$c.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${e}`);return}this._valueType===$c.ValueType.INT&&!Number.isInteger(e)&&($c.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||this._buffer.set(t,e)}};Hc.ObservableResultImpl=XA;var KA=class{constructor(){this._buffer=new Map}observe(e,t,n={}){if(!(0,Cue.isObservableInstrument)(e))return;let s=this._buffer.get(e);if(s==null&&(s=new uj.AttributeHashMap,this._buffer.set(e,s)),typeof t!="number"){$c.diag.warn(`non-number value provided to metric ${e._descriptor.name}: ${t}`);return}e._descriptor.valueType===$c.ValueType.INT&&!Number.isInteger(t)&&($c.diag.warn(`INT value type cannot accept a floating-point value for ${e._descriptor.name}, ignoring the fractional digits.`),t=Math.trunc(t),!Number.isInteger(t))||s.set(n,t)}};Hc.BatchObservableResultImpl=KA});var dj=C(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});Lm.ObservableRegistry=void 0;var vue=(Pe(),Ue(Ne)),fj=Om(),pj=lj(),uf=Oi(),JA=class{constructor(){this._callbacks=[],this._batchCallbacks=[]}addCallback(e,t){this._findCallback(e,t)>=0||this._callbacks.push({callback:e,instrument:t})}removeCallback(e,t){let n=this._findCallback(e,t);n<0||this._callbacks.splice(n,1)}addBatchCallback(e,t){let n=new Set(t.filter(fj.isObservableInstrument));if(n.size===0){vue.diag.error("BatchObservableCallback is not associated with valid instruments",t);return}this._findBatchCallback(e,n)>=0||this._batchCallbacks.push({callback:e,instruments:n})}removeBatchCallback(e,t){let n=new Set(t.filter(fj.isObservableInstrument)),s=this._findBatchCallback(e,n);s<0||this._batchCallbacks.splice(s,1)}async observe(e,t){let n=this._observeCallbacks(e,t),s=this._observeBatchCallbacks(e,t);return(await(0,uf.PromiseAllSettled)([...n,...s])).filter(uf.isPromiseAllSettledRejectionResult).map(a=>a.reason)}_observeCallbacks(e,t){return this._callbacks.map(async({callback:n,instrument:s})=>{let i=new pj.ObservableResultImpl(s._descriptor.name,s._descriptor.valueType),o=Promise.resolve(n(i));t!=null&&(o=(0,uf.callWithTimeout)(o,t)),await o,s._metricStorages.forEach(a=>{a.record(i._buffer,e)})})}_observeBatchCallbacks(e,t){return this._batchCallbacks.map(async({callback:n,instruments:s})=>{let i=new pj.BatchObservableResultImpl,o=Promise.resolve(n(i));t!=null&&(o=(0,uf.callWithTimeout)(o,t)),await o,s.forEach(a=>{let c=i._buffer.get(a);c!=null&&a._metricStorages.forEach(u=>{u.record(c,e)})})})}_findCallback(e,t){return this._callbacks.findIndex(n=>n.callback===e&&n.instrument===t)}_findBatchCallback(e,t){return this._batchCallbacks.findIndex(n=>n.callback===e&&(0,uf.setEquals)(n.instruments,t))}};Lm.ObservableRegistry=JA});var hj=C(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});Mm.SyncMetricStorage=void 0;var Due=VA(),xue=qA(),bue=HA(),QA=class extends Due.MetricStorage{constructor(e,t,n,s){super(e),this._attributesProcessor=n,this._deltaMetricStorage=new xue.DeltaMetricProcessor(t),this._temporalMetricStorage=new bue.TemporalMetricProcessor(t,s)}record(e,t,n,s){t=this._attributesProcessor.process(t,n),this._deltaMetricStorage.record(e,t,n,s)}collect(e,t){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(e,this._instrumentDescriptor,n,t)}};Mm.SyncMetricStorage=QA});var eO=C(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.FilteringAttributesProcessor=bs.NoopAttributesProcessor=bs.AttributesProcessor=void 0;var lf=class{static Noop(){return Iue}};bs.AttributesProcessor=lf;var Nm=class extends lf{process(e,t){return e}};bs.NoopAttributesProcessor=Nm;var ZA=class extends lf{constructor(e){super(),this._allowedAttributeNames=e}process(e,t){let n={};return Object.keys(e).filter(s=>this._allowedAttributeNames.includes(s)).forEach(s=>n[s]=e[s]),n}};bs.FilteringAttributesProcessor=ZA;var Iue=new Nm});var mj=C(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.MeterSharedState=void 0;var Pue=ji(),wue=Zk(),Rue=Oi(),Lue=ej(),Mue=aj(),Nue=cj(),Bue=dj(),Uue=hj(),Fue=eO(),tO=class{constructor(e,t){this._meterProviderSharedState=e,this._instrumentationScope=t,this.metricStorageRegistry=new Mue.MetricStorageRegistry,this.observableRegistry=new Bue.ObservableRegistry,this.meter=new wue.Meter(this)}registerMetricStorage(e){let t=this._registerMetricStorage(e,Uue.SyncMetricStorage);return t.length===1?t[0]:new Nue.MultiMetricStorage(t)}registerAsyncMetricStorage(e){return this._registerMetricStorage(e,Lue.AsyncMetricStorage)}async collect(e,t,n){let s=await this.observableRegistry.observe(t,n?.timeoutMillis),i=this.metricStorageRegistry.getStorages(e);if(i.length===0)return null;let o=i.map(a=>a.collect(e,t)).filter(Rue.isNotNullish);return o.length===0?{errors:s}:{scopeMetrics:{scope:this._instrumentationScope,metrics:o},errors:s}}_registerMetricStorage(e,t){let s=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope).map(i=>{let o=(0,Pue.createInstrumentDescriptorWithView)(i,e),a=this.metricStorageRegistry.findOrUpdateCompatibleStorage(o);if(a!=null)return a;let c=i.aggregation.createAggregator(o),u=new t(o,c,i.attributesProcessor,this._meterProviderSharedState.metricCollectors);return this.metricStorageRegistry.register(u),u});if(s.length===0){let o=this._meterProviderSharedState.selectAggregations(e.type).map(([a,c])=>{let u=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(a,e);if(u!=null)return u;let l=c.createAggregator(e),f=new t(e,l,Fue.AttributesProcessor.Noop(),[a]);return this.metricStorageRegistry.registerForCollector(a,f),f});s=s.concat(o)}return s}};Bm.MeterSharedState=tO});var gj=C(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});Um.MeterProviderSharedState=void 0;var Vue=Oi(),Gue=Qk(),kue=mj(),rO=class{constructor(e){this.resource=e,this.viewRegistry=new Gue.ViewRegistry,this.metricCollectors=[],this.meterSharedStates=new Map}getMeterSharedState(e){let t=(0,Vue.instrumentationScopeId)(e),n=this.meterSharedStates.get(t);return n==null&&(n=new kue.MeterSharedState(this,e),this.meterSharedStates.set(t,n)),n}selectAggregations(e){let t=[];for(let n of this.metricCollectors)t.push([n,n.selectAggregation(e)]);return t}};Um.MeterProviderSharedState=rO});var Ej=C(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.MetricCollector=void 0;var jue=dt(),nO=class{constructor(e,t){this._sharedState=e,this._metricReader=t}async collect(e){let t=(0,jue.millisToHrTime)(Date.now()),n=[],s=[],i=Array.from(this._sharedState.meterSharedStates.values()).map(async o=>{let a=await o.collect(this,t,e);a?.scopeMetrics!=null&&n.push(a.scopeMetrics),a?.errors!=null&&s.push(...a.errors)});return await Promise.all(i),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:n},errors:s}}async forceFlush(e){await this._metricReader.forceFlush(e)}async shutdown(e){await this._metricReader.shutdown(e)}selectAggregationTemporality(e){return this._metricReader.selectAggregationTemporality(e)}selectAggregation(e){return this._metricReader.selectAggregation(e)}};Fm.MetricCollector=nO});var _j=C(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.MeterProvider=void 0;var Vm=(Pe(),Ue(Ne)),Sj=Uc(),que=gj(),$ue=Ej(),iO=class{constructor(e){var t;this._shutdown=!1;let n=Sj.Resource.default().merge((t=e?.resource)!==null&&t!==void 0?t:Sj.Resource.empty());if(this._sharedState=new que.MeterProviderSharedState(n),e?.views!=null&&e.views.length>0)for(let s of e.views)this._sharedState.viewRegistry.addView(s);if(e?.readers!=null&&e.readers.length>0)for(let s of e.readers)this.addMetricReader(s)}getMeter(e,t="",n={}){return this._shutdown?(Vm.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,Vm.createNoopMeter)()):this._sharedState.getMeterSharedState({name:e,version:t,schemaUrl:n.schemaUrl}).meter}addMetricReader(e){let t=new $ue.MetricCollector(this._sharedState,e);e.setMetricProducer(t),this._sharedState.metricCollectors.push(t)}async shutdown(e){if(this._shutdown){Vm.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(t=>t.shutdown(e)))}async forceFlush(e){if(this._shutdown){Vm.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(t=>t.forceFlush(e)))}};Gm.MeterProvider=iO});var km=C(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.ExactPredicate=Wc.PatternPredicate=void 0;var Hue=/[\^$\\.+?()[\]{}|]/g,sO=class r{constructor(e){e==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(r.escapePattern(e)))}match(e){return this._matchAll?!0:this._regexp.test(e)}static escapePattern(e){return`^${e.replace(Hue,"\\$&").replace("*",".*")}$`}static hasWildcard(e){return e.includes("*")}};Wc.PatternPredicate=sO;var oO=class{constructor(e){this._matchAll=e===void 0,this._pattern=e}match(e){return!!(this._matchAll||e===this._pattern)}};Wc.ExactPredicate=oO});var yj=C(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});jm.InstrumentSelector=void 0;var Tj=km(),aO=class{constructor(e){var t;this._nameFilter=new Tj.PatternPredicate((t=e?.name)!==null&&t!==void 0?t:"*"),this._type=e?.type,this._unitFilter=new Tj.ExactPredicate(e?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};jm.InstrumentSelector=aO});var Aj=C(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.MeterSelector=void 0;var cO=km(),uO=class{constructor(e){this._nameFilter=new cO.ExactPredicate(e?.name),this._versionFilter=new cO.ExactPredicate(e?.version),this._schemaUrlFilter=new cO.ExactPredicate(e?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};qm.MeterSelector=uO});var Cj=C($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.View=void 0;var Wue=km(),Oj=eO(),Yue=yj(),zue=Aj(),Xue=Yh();function Kue(r){return r.instrumentName==null&&r.instrumentType==null&&r.instrumentUnit==null&&r.meterName==null&&r.meterVersion==null&&r.meterSchemaUrl==null}var lO=class{constructor(e){var t;if(Kue(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||Wue.PatternPredicate.hasWildcard(e.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");e.attributeKeys!=null?this.attributesProcessor=new Oj.FilteringAttributesProcessor(e.attributeKeys):this.attributesProcessor=Oj.AttributesProcessor.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(t=e.aggregation)!==null&&t!==void 0?t:Xue.Aggregation.Default(),this.instrumentSelector=new Yue.InstrumentSelector({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new zue.MeterSelector({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl})}};$m.View=lO});var vj=C(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.TimeoutError=nt.View=nt.Aggregation=nt.SumAggregation=nt.LastValueAggregation=nt.HistogramAggregation=nt.DropAggregation=nt.ExponentialHistogramAggregation=nt.ExplicitBucketHistogramAggregation=nt.DefaultAggregation=nt.MeterProvider=nt.InstrumentType=nt.ConsoleMetricExporter=nt.InMemoryMetricExporter=nt.PeriodicExportingMetricReader=nt.MetricReader=nt.DataPointType=nt.AggregationTemporality=void 0;var Jue=Lh();Object.defineProperty(nt,"AggregationTemporality",{enumerable:!0,get:function(){return Jue.AggregationTemporality}});var Que=yc();Object.defineProperty(nt,"DataPointType",{enumerable:!0,get:function(){return Que.DataPointType}});var Zue=aA();Object.defineProperty(nt,"MetricReader",{enumerable:!0,get:function(){return Zue.MetricReader}});var ele=Ek();Object.defineProperty(nt,"PeriodicExportingMetricReader",{enumerable:!0,get:function(){return ele.PeriodicExportingMetricReader}});var tle=_k();Object.defineProperty(nt,"InMemoryMetricExporter",{enumerable:!0,get:function(){return tle.InMemoryMetricExporter}});var rle=yk();Object.defineProperty(nt,"ConsoleMetricExporter",{enumerable:!0,get:function(){return rle.ConsoleMetricExporter}});var nle=ji();Object.defineProperty(nt,"InstrumentType",{enumerable:!0,get:function(){return nle.InstrumentType}});var ile=_j();Object.defineProperty(nt,"MeterProvider",{enumerable:!0,get:function(){return ile.MeterProvider}});var Is=Yh();Object.defineProperty(nt,"DefaultAggregation",{enumerable:!0,get:function(){return Is.DefaultAggregation}});Object.defineProperty(nt,"ExplicitBucketHistogramAggregation",{enumerable:!0,get:function(){return Is.ExplicitBucketHistogramAggregation}});Object.defineProperty(nt,"ExponentialHistogramAggregation",{enumerable:!0,get:function(){return Is.ExponentialHistogramAggregation}});Object.defineProperty(nt,"DropAggregation",{enumerable:!0,get:function(){return Is.DropAggregation}});Object.defineProperty(nt,"HistogramAggregation",{enumerable:!0,get:function(){return Is.HistogramAggregation}});Object.defineProperty(nt,"LastValueAggregation",{enumerable:!0,get:function(){return Is.LastValueAggregation}});Object.defineProperty(nt,"SumAggregation",{enumerable:!0,get:function(){return Is.SumAggregation}});Object.defineProperty(nt,"Aggregation",{enumerable:!0,get:function(){return Is.Aggregation}});var sle=Cj();Object.defineProperty(nt,"View",{enumerable:!0,get:function(){return sle.View}});var ole=Oi();Object.defineProperty(nt,"TimeoutError",{enumerable:!0,get:function(){return ole.TimeoutError}})});var Pj=C(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.toMetric=Ps.toScopeMetrics=Ps.toResourceMetrics=void 0;var Dj=(Pe(),Ue(Ne)),Yc=vj(),Hm=Kl(),ale=zl();function cle(r,e){let t=(0,ale.getOtlpEncoder)(e);return{resource:{attributes:(0,Hm.toAttributes)(r.resource.attributes),droppedAttributesCount:0},schemaUrl:void 0,scopeMetrics:bj(r.scopeMetrics,t)}}Ps.toResourceMetrics=cle;function bj(r,e){return Array.from(r.map(t=>({scope:{name:t.scope.name,version:t.scope.version},metrics:t.metrics.map(n=>Ij(n,e)),schemaUrl:t.scope.schemaUrl})))}Ps.toScopeMetrics=bj;function Ij(r,e){let t={name:r.descriptor.name,description:r.descriptor.description,unit:r.descriptor.unit},n=ple(r.aggregationTemporality);switch(r.dataPointType){case Yc.DataPointType.SUM:t.sum={aggregationTemporality:n,isMonotonic:r.isMonotonic,dataPoints:xj(r,e)};break;case Yc.DataPointType.GAUGE:t.gauge={dataPoints:xj(r,e)};break;case Yc.DataPointType.HISTOGRAM:t.histogram={aggregationTemporality:n,dataPoints:lle(r,e)};break;case Yc.DataPointType.EXPONENTIAL_HISTOGRAM:t.exponentialHistogram={aggregationTemporality:n,dataPoints:fle(r,e)};break}return t}Ps.toMetric=Ij;function ule(r,e,t){let n={attributes:(0,Hm.toAttributes)(r.attributes),startTimeUnixNano:t.encodeHrTime(r.startTime),timeUnixNano:t.encodeHrTime(r.endTime)};switch(e){case Dj.ValueType.INT:n.asInt=r.value;break;case Dj.ValueType.DOUBLE:n.asDouble=r.value;break}return n}function xj(r,e){return r.dataPoints.map(t=>ule(t,r.descriptor.valueType,e))}function lle(r,e){return r.dataPoints.map(t=>{let n=t.value;return{attributes:(0,Hm.toAttributes)(t.attributes),bucketCounts:n.buckets.counts,explicitBounds:n.buckets.boundaries,count:n.count,sum:n.sum,min:n.min,max:n.max,startTimeUnixNano:e.encodeHrTime(t.startTime),timeUnixNano:e.encodeHrTime(t.endTime)}})}function fle(r,e){return r.dataPoints.map(t=>{let n=t.value;return{attributes:(0,Hm.toAttributes)(t.attributes),count:n.count,min:n.min,max:n.max,sum:n.sum,positive:{offset:n.positive.offset,bucketCounts:n.positive.bucketCounts},negative:{offset:n.negative.offset,bucketCounts:n.negative.bucketCounts},scale:n.scale,zeroCount:n.zeroCount,startTimeUnixNano:e.encodeHrTime(t.startTime),timeUnixNano:e.encodeHrTime(t.endTime)}})}function ple(r){switch(r){case Yc.AggregationTemporality.DELTA:return 1;case Yc.AggregationTemporality.CUMULATIVE:return 2}}});var wj=C(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.createExportMetricsServiceRequest=void 0;var dle=Pj();function hle(r,e){return{resourceMetrics:r.map(t=>(0,dle.toResourceMetrics)(t,e))}}Wm.createExportMetricsServiceRequest=hle});var Lj=C(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.toLogAttributes=zc.createExportLogsServiceRequest=void 0;var mle=zl(),fO=Kl();function gle(r,e){let t=(0,mle.getOtlpEncoder)(e);return{resourceLogs:Sle(r,t)}}zc.createExportLogsServiceRequest=gle;function Ele(r){let e=new Map;for(let t of r){let{resource:n,instrumentationScope:{name:s,version:i="",schemaUrl:o=""}}=t,a=e.get(n);a||(a=new Map,e.set(n,a));let c=`${s}@${i}:${o}`,u=a.get(c);u||(u=[],a.set(c,u)),u.push(t)}return e}function Sle(r,e){let t=Ele(r);return Array.from(t,([n,s])=>({resource:{attributes:(0,fO.toAttributes)(n.attributes),droppedAttributesCount:0},scopeLogs:Array.from(s,([,i])=>{let{instrumentationScope:{name:o,version:a,schemaUrl:c}}=i[0];return{scope:{name:o,version:a},logRecords:i.map(u=>_le(u,e)),schemaUrl:c}}),schemaUrl:void 0}))}function _le(r,e){var t,n,s;return{timeUnixNano:e.encodeHrTime(r.hrTime),observedTimeUnixNano:e.encodeHrTime(r.hrTimeObserved),severityNumber:r.severityNumber,severityText:r.severityText,body:(0,fO.toAnyValue)(r.body),attributes:Rj(r.attributes),droppedAttributesCount:r.droppedAttributesCount,flags:(t=r.spanContext)===null||t===void 0?void 0:t.traceFlags,traceId:e.encodeOptionalSpanContext((n=r.spanContext)===null||n===void 0?void 0:n.traceId),spanId:e.encodeOptionalSpanContext((s=r.spanContext)===null||s===void 0?void 0:s.spanId)}}function Rj(r){return Object.keys(r).map(e=>(0,fO.toKeyValue)(e,r[e]))}zc.toLogAttributes=Rj});var Mj=C(ar=>{"use strict";var Tle=ar&&ar.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Xc=ar&&ar.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Tle(e,r,t)};Object.defineProperty(ar,"__esModule",{value:!0});ar.createExportLogsServiceRequest=ar.createExportMetricsServiceRequest=ar.createExportTraceServiceRequest=void 0;Xc(b8(),ar);Xc(zl(),ar);Xc(M8(),ar);Xc(B8(),ar);Xc(U8(),ar);Xc(V8(),ar);var yle=q8();Object.defineProperty(ar,"createExportTraceServiceRequest",{enumerable:!0,get:function(){return yle.createExportTraceServiceRequest}});var Ale=wj();Object.defineProperty(ar,"createExportMetricsServiceRequest",{enumerable:!0,get:function(){return Ale.createExportMetricsServiceRequest}});var Ole=Lj();Object.defineProperty(ar,"createExportLogsServiceRequest",{enumerable:!0,get:function(){return Ole.createExportLogsServiceRequest}})});var Nj=C(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.VERSION=void 0;Ym.VERSION="0.49.1"});var Fj=C(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.OTLPTraceExporter=void 0;var Kc=dt(),Cle=Fy(),Bj=Fy(),vle=Mj(),Dle=Nj(),Uj="v1/traces",xle=`http://localhost:4318/${Uj}`,ble={"User-Agent":`OTel-OTLP-Exporter-JavaScript/${Dle.VERSION}`},pO=class extends Cle.OTLPExporterNodeBase{constructor(e={}){super(e),this.headers=Object.assign(Object.assign(Object.assign(Object.assign({},this.headers),ble),Kc.baggageUtils.parseKeyPairsIntoRecord((0,Kc.getEnv)().OTEL_EXPORTER_OTLP_TRACES_HEADERS)),e.headers)}convert(e){return(0,vle.createExportTraceServiceRequest)(e,{useHex:!0,useLongBits:!1})}getDefaultUrl(e){return typeof e.url=="string"?e.url:(0,Kc.getEnv)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length>0?(0,Bj.appendRootPathToUrlIfNeeded)((0,Kc.getEnv)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT):(0,Kc.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?(0,Bj.appendResourcePathToUrl)((0,Kc.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT,Uj):xle}};zm.OTLPTraceExporter=pO});var Vj=C(ea=>{"use strict";var Ile=ea&&ea.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Ple=ea&&ea.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Ile(e,r,t)};Object.defineProperty(ea,"__esModule",{value:!0});Ple(Fj(),ea)});var Gj=C(ta=>{"use strict";var wle=ta&&ta.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Rle=ta&&ta.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&wle(e,r,t)};Object.defineProperty(ta,"__esModule",{value:!0});Rle(Vj(),ta)});var kj=C(ra=>{"use strict";var Lle=ra&&ra.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Mle=ra&&ra.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Lle(e,r,t)};Object.defineProperty(ra,"__esModule",{value:!0});Mle(Gj(),ra)});var hO=C(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.AbstractAsyncHooksContextManager=void 0;var Nle=W("events"),Ble=["addListener","on","once","prependListener","prependOnceListener"],dO=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,t){return t instanceof Nle.EventEmitter?this._bindEventEmitter(e,t):typeof t=="function"?this._bindFunction(e,t):t}_bindFunction(e,t){let n=this,s=function(...i){return n.with(e,()=>t.apply(this,i))};return Object.defineProperty(s,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),s}_bindEventEmitter(e,t){return this._getPatchMap(t)!==void 0||(this._createPatchMap(t),Ble.forEach(s=>{t[s]!==void 0&&(t[s]=this._patchAddListener(t,t[s],e))}),typeof t.removeListener=="function"&&(t.removeListener=this._patchRemoveListener(t,t.removeListener)),typeof t.off=="function"&&(t.off=this._patchRemoveListener(t,t.off)),typeof t.removeAllListeners=="function"&&(t.removeAllListeners=this._patchRemoveAllListeners(t,t.removeAllListeners))),t}_patchRemoveListener(e,t){let n=this;return function(s,i){var o;let a=(o=n._getPatchMap(e))===null||o===void 0?void 0:o[s];if(a===void 0)return t.call(this,s,i);let c=a.get(i);return t.call(this,s,c||i)}}_patchRemoveAllListeners(e,t){let n=this;return function(s){let i=n._getPatchMap(e);return i!==void 0&&(arguments.length===0?n._createPatchMap(e):i[s]!==void 0&&delete i[s]),t.apply(this,arguments)}}_patchAddListener(e,t,n){let s=this;return function(i,o){if(s._wrapped)return t.call(this,i,o);let a=s._getPatchMap(e);a===void 0&&(a=s._createPatchMap(e));let c=a[i];c===void 0&&(c=new WeakMap,a[i]=c);let u=s.bind(n,o);c.set(o,u),s._wrapped=!0;try{return t.call(this,i,u)}finally{s._wrapped=!1}}}_createPatchMap(e){let t=Object.create(null);return e[this._kOtListeners]=t,t}_getPatchMap(e){return e[this._kOtListeners]}};Xm.AbstractAsyncHooksContextManager=dO});var jj=C(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.AsyncHooksContextManager=void 0;var Ule=(Pe(),Ue(Ne)),Fle=W("async_hooks"),Vle=hO(),mO=class extends Vle.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=Fle.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){var e;return(e=this._stack[this._stack.length-1])!==null&&e!==void 0?e:Ule.ROOT_CONTEXT}with(e,t,n,...s){this._enterContext(e);try{return t.call(n,...s)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,t){if(t==="TIMERWRAP")return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(e,n)}_destroy(e){this._contexts.delete(e)}_before(e){let t=this._contexts.get(e);t!==void 0&&this._enterContext(t)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};Km.AsyncHooksContextManager=mO});var qj=C(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.AsyncLocalStorageContextManager=void 0;var Gle=(Pe(),Ue(Ne)),kle=W("async_hooks"),jle=hO(),gO=class extends jle.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new kle.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:Gle.ROOT_CONTEXT}with(e,t,n,...s){let i=n==null?t:t.bind(n);return this._asyncLocalStorage.run(e,i,...s)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};Jm.AsyncLocalStorageContextManager=gO});var Hj=C(ws=>{"use strict";var qle=ws&&ws.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),$j=ws&&ws.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&qle(e,r,t)};Object.defineProperty(ws,"__esModule",{value:!0});$j(jj(),ws);$j(qj(),ws)});var EO=C(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.B3_DEBUG_FLAG_KEY=void 0;var $le=(Pe(),Ue(Ne));Qm.B3_DEBUG_FLAG_KEY=(0,$le.createContextKey)("OpenTelemetry Context Key B3 Debug Flag")});var ff=C(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.X_B3_FLAGS=Jr.X_B3_PARENT_SPAN_ID=Jr.X_B3_SAMPLED=Jr.X_B3_SPAN_ID=Jr.X_B3_TRACE_ID=Jr.B3_CONTEXT_HEADER=void 0;Jr.B3_CONTEXT_HEADER="b3";Jr.X_B3_TRACE_ID="x-b3-traceid";Jr.X_B3_SPAN_ID="x-b3-spanid";Jr.X_B3_SAMPLED="x-b3-sampled";Jr.X_B3_PARENT_SPAN_ID="x-b3-parentspanid";Jr.X_B3_FLAGS="x-b3-flags"});var zj=C(e0=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});e0.B3MultiPropagator=void 0;var ti=(Pe(),Ue(Ne)),Hle=dt(),Wj=EO(),pn=ff(),Wle=new Set([!0,"true","True","1",1]),Yle=new Set([!1,"false","False","0",0]);function zle(r){return r===ti.TraceFlags.SAMPLED||r===ti.TraceFlags.NONE}function Xle(r){return Array.isArray(r)?r[0]:r}function Zm(r,e,t){let n=e.get(r,t);return Xle(n)}function Kle(r,e){let t=Zm(r,e,pn.X_B3_TRACE_ID);return typeof t=="string"?t.padStart(32,"0"):""}function Jle(r,e){let t=Zm(r,e,pn.X_B3_SPAN_ID);return typeof t=="string"?t:""}function Yj(r,e){return Zm(r,e,pn.X_B3_FLAGS)==="1"?"1":void 0}function Qle(r,e){let t=Zm(r,e,pn.X_B3_SAMPLED);if(Yj(r,e)==="1"||Wle.has(t))return ti.TraceFlags.SAMPLED;if(t===void 0||Yle.has(t))return ti.TraceFlags.NONE}var SO=class{inject(e,t,n){let s=ti.trace.getSpanContext(e);if(!s||!(0,ti.isSpanContextValid)(s)||(0,Hle.isTracingSuppressed)(e))return;let i=e.getValue(Wj.B3_DEBUG_FLAG_KEY);n.set(t,pn.X_B3_TRACE_ID,s.traceId),n.set(t,pn.X_B3_SPAN_ID,s.spanId),i==="1"?n.set(t,pn.X_B3_FLAGS,i):s.traceFlags!==void 0&&n.set(t,pn.X_B3_SAMPLED,(ti.TraceFlags.SAMPLED&s.traceFlags)===ti.TraceFlags.SAMPLED?"1":"0")}extract(e,t,n){let s=Kle(t,n),i=Jle(t,n),o=Qle(t,n),a=Yj(t,n);return(0,ti.isValidTraceId)(s)&&(0,ti.isValidSpanId)(i)&&zle(o)?(e=e.setValue(Wj.B3_DEBUG_FLAG_KEY,a),ti.trace.setSpanContext(e,{traceId:s,spanId:i,isRemote:!0,traceFlags:o})):e}fields(){return[pn.X_B3_TRACE_ID,pn.X_B3_SPAN_ID,pn.X_B3_FLAGS,pn.X_B3_SAMPLED,pn.X_B3_PARENT_SPAN_ID]}};e0.B3MultiPropagator=SO});var Kj=C(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.B3SinglePropagator=void 0;var na=(Pe(),Ue(Ne)),Zle=dt(),Xj=EO(),_O=ff(),efe=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,tfe="0".repeat(16),rfe=new Set(["d","1"]),nfe="d";function ife(r){return r.length===32?r:`${tfe}${r}`}function sfe(r){return r&&rfe.has(r)?na.TraceFlags.SAMPLED:na.TraceFlags.NONE}var TO=class{inject(e,t,n){let s=na.trace.getSpanContext(e);if(!s||!(0,na.isSpanContextValid)(s)||(0,Zle.isTracingSuppressed)(e))return;let i=e.getValue(Xj.B3_DEBUG_FLAG_KEY)||s.traceFlags&1,o=`${s.traceId}-${s.spanId}-${i}`;n.set(t,_O.B3_CONTEXT_HEADER,o)}extract(e,t,n){let s=n.get(t,_O.B3_CONTEXT_HEADER),i=Array.isArray(s)?s[0]:s;if(typeof i!="string")return e;let o=i.match(efe);if(!o)return e;let[,a,c,u]=o,l=ife(a);if(!(0,na.isValidTraceId)(l)||!(0,na.isValidSpanId)(c))return e;let f=sfe(u);return u===nfe&&(e=e.setValue(Xj.B3_DEBUG_FLAG_KEY,u)),na.trace.setSpanContext(e,{traceId:l,spanId:c,isRemote:!0,traceFlags:f})}fields(){return[_O.B3_CONTEXT_HEADER]}};t0.B3SinglePropagator=TO});var yO=C(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.B3InjectEncoding=void 0;var ofe;(function(r){r[r.SINGLE_HEADER=0]="SINGLE_HEADER",r[r.MULTI_HEADER=1]="MULTI_HEADER"})(ofe=pf.B3InjectEncoding||(pf.B3InjectEncoding={}))});var Jj=C(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.B3Propagator=void 0;var afe=dt(),cfe=zj(),ufe=Kj(),lfe=ff(),ffe=yO(),AO=class{constructor(e={}){this._b3MultiPropagator=new cfe.B3MultiPropagator,this._b3SinglePropagator=new ufe.B3SinglePropagator,e.injectEncoding===ffe.B3InjectEncoding.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}inject(e,t,n){(0,afe.isTracingSuppressed)(e)||this._inject(e,t,n)}extract(e,t,n){let s=n.get(t,lfe.B3_CONTEXT_HEADER);return(Array.isArray(s)?s[0]:s)?this._b3SinglePropagator.extract(e,t,n):this._b3MultiPropagator.extract(e,t,n)}fields(){return this._fields}};r0.B3Propagator=AO});var Qj=C(Wi=>{"use strict";var pfe=Wi&&Wi.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),OO=Wi&&Wi.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&pfe(e,r,t)};Object.defineProperty(Wi,"__esModule",{value:!0});OO(Jj(),Wi);OO(ff(),Wi);OO(yO(),Wi)});var Zj=C(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.ExceptionEventName=void 0;n0.ExceptionEventName="exception"});var vO=C(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});i0.Span=void 0;var ri=(Pe(),Ue(Ne)),Dr=dt(),ia=Ai(),dfe=Zj(),CO=class{constructor(e,t,n,s,i,o,a=[],c,u,l){this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:ri.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=s,this.parentSpanId=o,this.kind=i,this.links=a;let f=Date.now();this._performanceStartTime=Dr.otperformance.now(),this._performanceOffset=f-(this._performanceStartTime+(0,Dr.getTimeOrigin)()),this._startTimeProvided=c!=null,this.startTime=this._getTime(c??f),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,l!=null&&this.setAttributes(l),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t)}spanContext(){return this._spanContext}setAttribute(e,t){return t==null||this._isSpanEnded()?this:e.length===0?(ri.diag.warn(`Invalid attribute key: ${e}`),this):(0,Dr.isAttributeValue)(t)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),this):(ri.diag.warn(`Invalid attribute value set for key: ${e}`),this)}setAttributes(e){for(let[t,n]of Object.entries(e))this.setAttribute(t,n);return this}addEvent(e,t,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return ri.diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&ri.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,Dr.isTimeInput)(t)&&((0,Dr.isTimeInput)(n)||(n=t),t=void 0);let s=(0,Dr.sanitizeAttributes)(t);return this.events.push({name:e,attributes:s,time:this._getTime(n),droppedAttributesCount:0}),this}setStatus(e){return this._isSpanEnded()?this:(this.status=e,this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){ri.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=(0,Dr.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(ri.diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&ri.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<Dr.otperformance.now())return(0,Dr.hrTime)(e+this._performanceOffset);if(typeof e=="number")return(0,Dr.millisToHrTime)(e);if(e instanceof Date)return(0,Dr.millisToHrTime)(e.getTime());if((0,Dr.isTimeInputHrTime)(e))return e;if(this._startTimeProvided)return(0,Dr.millisToHrTime)(Date.now());let t=Dr.otperformance.now()-this._performanceStartTime;return(0,Dr.addHrTimes)(this.startTime,(0,Dr.millisToHrTime)(t))}isRecording(){return this._ended===!1}recordException(e,t){let n={};typeof e=="string"?n[ia.SemanticAttributes.EXCEPTION_MESSAGE]=e:e&&(e.code?n[ia.SemanticAttributes.EXCEPTION_TYPE]=e.code.toString():e.name&&(n[ia.SemanticAttributes.EXCEPTION_TYPE]=e.name),e.message&&(n[ia.SemanticAttributes.EXCEPTION_MESSAGE]=e.message),e.stack&&(n[ia.SemanticAttributes.EXCEPTION_STACKTRACE]=e.stack)),n[ia.SemanticAttributes.EXCEPTION_TYPE]||n[ia.SemanticAttributes.EXCEPTION_MESSAGE]?this.addEvent(dfe.ExceptionEventName,n,t):ri.diag.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){return this._ended&&ri.diag.warn(`Can not execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`),this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substr(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(ri.diag.warn(`Attribute value limit must be positive, got ${t}`),e):typeof e=="string"?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,t):n):e}};i0.Span=CO});var hf=C(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.SamplingDecision=void 0;var hfe;(function(r){r[r.NOT_RECORD=0]="NOT_RECORD",r[r.RECORD=1]="RECORD",r[r.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(hfe=df.SamplingDecision||(df.SamplingDecision={}))});var o0=C(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.AlwaysOffSampler=void 0;var mfe=hf(),DO=class{shouldSample(){return{decision:mfe.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};s0.AlwaysOffSampler=DO});var c0=C(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.AlwaysOnSampler=void 0;var gfe=hf(),xO=class{shouldSample(){return{decision:gfe.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};a0.AlwaysOnSampler=xO});var PO=C(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.ParentBasedSampler=void 0;var u0=(Pe(),Ue(Ne)),Efe=dt(),e6=o0(),bO=c0(),IO=class{constructor(e){var t,n,s,i;this._root=e.root,this._root||((0,Efe.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new bO.AlwaysOnSampler),this._remoteParentSampled=(t=e.remoteParentSampled)!==null&&t!==void 0?t:new bO.AlwaysOnSampler,this._remoteParentNotSampled=(n=e.remoteParentNotSampled)!==null&&n!==void 0?n:new e6.AlwaysOffSampler,this._localParentSampled=(s=e.localParentSampled)!==null&&s!==void 0?s:new bO.AlwaysOnSampler,this._localParentNotSampled=(i=e.localParentNotSampled)!==null&&i!==void 0?i:new e6.AlwaysOffSampler}shouldSample(e,t,n,s,i,o){let a=u0.trace.getSpanContext(e);return!a||!(0,u0.isSpanContextValid)(a)?this._root.shouldSample(e,t,n,s,i,o):a.isRemote?a.traceFlags&u0.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,s,i,o):this._remoteParentNotSampled.shouldSample(e,t,n,s,i,o):a.traceFlags&u0.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,t,n,s,i,o):this._localParentNotSampled.shouldSample(e,t,n,s,i,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};l0.ParentBasedSampler=IO});var RO=C(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});f0.TraceIdRatioBasedSampler=void 0;var Sfe=(Pe(),Ue(Ne)),t6=hf(),wO=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:(0,Sfe.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound?t6.SamplingDecision.RECORD_AND_SAMPLED:t6.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){let s=n*8,i=parseInt(e.slice(s,s+8),16);t=(t^i)>>>0}return t}};f0.TraceIdRatioBasedSampler=wO});var NO=C(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.buildSamplerFromEnv=Qc.loadDefaultConfig=void 0;var p0=(Pe(),Ue(Ne)),dr=dt(),r6=o0(),LO=c0(),MO=PO(),n6=RO(),_fe=(0,dr.getEnv)(),Tfe=dr.TracesSamplerValues.AlwaysOn,Jc=1;function yfe(){return{sampler:s6(_fe),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,dr.getEnv)().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,dr.getEnv)().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:(0,dr.getEnv)().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,dr.getEnv)().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:(0,dr.getEnv)().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:(0,dr.getEnv)().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:(0,dr.getEnv)().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:(0,dr.getEnv)().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}Qc.loadDefaultConfig=yfe;function s6(r=(0,dr.getEnv)()){switch(r.OTEL_TRACES_SAMPLER){case dr.TracesSamplerValues.AlwaysOn:return new LO.AlwaysOnSampler;case dr.TracesSamplerValues.AlwaysOff:return new r6.AlwaysOffSampler;case dr.TracesSamplerValues.ParentBasedAlwaysOn:return new MO.ParentBasedSampler({root:new LO.AlwaysOnSampler});case dr.TracesSamplerValues.ParentBasedAlwaysOff:return new MO.ParentBasedSampler({root:new r6.AlwaysOffSampler});case dr.TracesSamplerValues.TraceIdRatio:return new n6.TraceIdRatioBasedSampler(i6(r));case dr.TracesSamplerValues.ParentBasedTraceIdRatio:return new MO.ParentBasedSampler({root:new n6.TraceIdRatioBasedSampler(i6(r))});default:return p0.diag.error(`OTEL_TRACES_SAMPLER value "${r.OTEL_TRACES_SAMPLER} invalid, defaulting to ${Tfe}".`),new LO.AlwaysOnSampler}}Qc.buildSamplerFromEnv=s6;function i6(r){if(r.OTEL_TRACES_SAMPLER_ARG===void 0||r.OTEL_TRACES_SAMPLER_ARG==="")return p0.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Jc}.`),Jc;let e=Number(r.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(p0.diag.error(`OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${Jc}.`),Jc):e<0||e>1?(p0.diag.error(`OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${Jc}.`),Jc):e}});var UO=C(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.reconfigureLimits=Zc.mergeConfig=void 0;var o6=NO(),BO=dt();function Afe(r){let e={sampler:(0,o6.buildSamplerFromEnv)()},t=(0,o6.loadDefaultConfig)(),n=Object.assign({},t,e,r);return n.generalLimits=Object.assign({},t.generalLimits,r.generalLimits||{}),n.spanLimits=Object.assign({},t.spanLimits,r.spanLimits||{}),n}Zc.mergeConfig=Afe;function Ofe(r){var e,t,n,s,i,o,a,c,u,l,f,p;let d=Object.assign({},r.spanLimits),m=(0,BO.getEnvWithoutDefaults)();return d.attributeCountLimit=(o=(i=(s=(t=(e=r.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&t!==void 0?t:(n=r.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&s!==void 0?s:m.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&i!==void 0?i:m.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&o!==void 0?o:BO.DEFAULT_ATTRIBUTE_COUNT_LIMIT,d.attributeValueLengthLimit=(p=(f=(l=(c=(a=r.spanLimits)===null||a===void 0?void 0:a.attributeValueLengthLimit)!==null&&c!==void 0?c:(u=r.generalLimits)===null||u===void 0?void 0:u.attributeValueLengthLimit)!==null&&l!==void 0?l:m.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&f!==void 0?f:m.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:BO.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},r,{spanLimits:d})}Zc.reconfigureLimits=Ofe});var a6=C(d0=>{"use strict";Object.defineProperty(d0,"__esModule",{value:!0});d0.BatchSpanProcessorBase=void 0;var eu=(Pe(),Ue(Ne)),sa=dt(),FO=class{constructor(e,t){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;let n=(0,sa.getEnv)();this._maxExportBatchSize=typeof t?.maxExportBatchSize=="number"?t.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof t?.maxQueueSize=="number"?t.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof t?.scheduledDelayMillis=="number"?t.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof t?.exportTimeoutMillis=="number"?t.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new sa.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(eu.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&eu.TraceFlags.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&eu.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(eu.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>{let n=[],s=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=s;i<o;i++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,t)=>{let n=setTimeout(()=>{t(new Error("Timeout"))},this._exportTimeoutMillis);eu.context.with((0,sa.suppressTracing)(eu.context.active()),()=>{let s=this._finishedSpans.splice(0,this._maxExportBatchSize),i=()=>this._exporter.export(s,a=>{var c;clearTimeout(n),a.code===sa.ExportResultCode.SUCCESS?e():t((c=a.error)!==null&&c!==void 0?c:new Error("BatchSpanProcessor: span export failed"))}),o=s.map(a=>a.resource).filter(a=>a.asyncAttributesPending);o.length===0?i():Promise.all(o.map(a=>{var c;return(c=a.waitForAsyncAttributes)===null||c===void 0?void 0:c.call(a)})).then(i,a=>{(0,sa.globalErrorHandler)(a),t(a)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(t=>{this._isExporting=!1,(0,sa.globalErrorHandler)(t)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),(0,sa.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};d0.BatchSpanProcessorBase=FO});var c6=C(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0});h0.BatchSpanProcessor=void 0;var Cfe=a6(),VO=class extends Cfe.BatchSpanProcessorBase{onShutdown(){}};h0.BatchSpanProcessor=VO});var f6=C(g0=>{"use strict";Object.defineProperty(g0,"__esModule",{value:!0});g0.RandomIdGenerator=void 0;var vfe=8,l6=16,GO=class{constructor(){this.generateTraceId=u6(l6),this.generateSpanId=u6(vfe)}};g0.RandomIdGenerator=GO;var m0=Buffer.allocUnsafe(l6);function u6(r){return function(){for(let t=0;t<r/4;t++)m0.writeUInt32BE(Math.random()*2**32>>>0,t*4);for(let t=0;t<r&&!(m0[t]>0);t++)t===r-1&&(m0[r-1]=1);return m0.toString("hex",0,r)}}});var d6=C(Rs=>{"use strict";var Dfe=Rs&&Rs.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),p6=Rs&&Rs.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Dfe(e,r,t)};Object.defineProperty(Rs,"__esModule",{value:!0});p6(c6(),Rs);p6(f6(),Rs)});var E0=C(oa=>{"use strict";var xfe=oa&&oa.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),bfe=oa&&oa.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&xfe(e,r,t)};Object.defineProperty(oa,"__esModule",{value:!0});bfe(d6(),oa)});var h6=C(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});_0.Tracer=void 0;var hr=(Pe(),Ue(Ne)),S0=dt(),Ife=vO(),Pfe=UO(),wfe=E0(),kO=class{constructor(e,t,n){this._tracerProvider=n;let s=(0,Pfe.mergeConfig)(t);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=t.idGenerator||new wfe.RandomIdGenerator,this.resource=n.resource,this.instrumentationLibrary=e}startSpan(e,t={},n=hr.context.active()){var s,i,o;t.root&&(n=hr.trace.deleteSpan(n));let a=hr.trace.getSpan(n);if((0,S0.isTracingSuppressed)(n))return hr.diag.debug("Instrumentation suppressed, returning Noop Span"),hr.trace.wrapSpanContext(hr.INVALID_SPAN_CONTEXT);let c=a?.spanContext(),u=this._idGenerator.generateSpanId(),l,f,p;!c||!hr.trace.isSpanContextValid(c)?l=this._idGenerator.generateTraceId():(l=c.traceId,f=c.traceState,p=c.spanId);let d=(s=t.kind)!==null&&s!==void 0?s:hr.SpanKind.INTERNAL,m=((i=t.links)!==null&&i!==void 0?i:[]).map(T=>({context:T.context,attributes:(0,S0.sanitizeAttributes)(T.attributes)})),g=(0,S0.sanitizeAttributes)(t.attributes),h=this._sampler.shouldSample(n,l,e,d,g,m);f=(o=h.traceState)!==null&&o!==void 0?o:f;let E=h.decision===hr.SamplingDecision.RECORD_AND_SAMPLED?hr.TraceFlags.SAMPLED:hr.TraceFlags.NONE,_={traceId:l,spanId:u,traceFlags:E,traceState:f};if(h.decision===hr.SamplingDecision.NOT_RECORD)return hr.diag.debug("Recording is off, propagating context in a non-recording span"),hr.trace.wrapSpanContext(_);let S=(0,S0.sanitizeAttributes)(Object.assign(g,h.attributes));return new Ife.Span(this,n,e,_,d,p,m,t.startTime,void 0,S)}startActiveSpan(e,t,n,s){let i,o,a;if(arguments.length<2)return;arguments.length===2?a=t:arguments.length===3?(i=t,a=n):(i=t,o=n,a=s);let c=o??hr.context.active(),u=this.startSpan(e,i,c),l=hr.trace.setSpan(c,u);return hr.context.with(l,a,void 0,u)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}};_0.Tracer=kO});var m6=C(T0=>{"use strict";Object.defineProperty(T0,"__esModule",{value:!0});T0.MultiSpanProcessor=void 0;var Rfe=dt(),jO=class{constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(n=>{(0,Rfe.globalErrorHandler)(n||new Error("MultiSpanProcessor: forceFlush failed")),t()})})}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}};T0.MultiSpanProcessor=jO});var $O=C(y0=>{"use strict";Object.defineProperty(y0,"__esModule",{value:!0});y0.NoopSpanProcessor=void 0;var qO=class{onStart(e,t){}onEnd(e){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};y0.NoopSpanProcessor=qO});var E6=C(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.BasicTracerProvider=aa.ForceFlushState=void 0;var tu=(Pe(),Ue(Ne)),nu=dt(),g6=Uc(),Lfe=A0(),Mfe=NO(),Nfe=m6(),Bfe=$O(),Ufe=E0(),Ffe=UO(),ru;(function(r){r[r.resolved=0]="resolved",r[r.timeout=1]="timeout",r[r.error=2]="error",r[r.unresolved=3]="unresolved"})(ru=aa.ForceFlushState||(aa.ForceFlushState={}));var mf=class{constructor(e={}){var t;this._registeredSpanProcessors=[],this._tracers=new Map;let n=(0,nu.merge)({},(0,Mfe.loadDefaultConfig)(),(0,Ffe.reconfigureLimits)(e));this.resource=(t=n.resource)!==null&&t!==void 0?t:g6.Resource.empty(),this.resource=g6.Resource.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});let s=this._buildExporterFromEnv();if(s!==void 0){let i=new Ufe.BatchSpanProcessor(s);this.activeSpanProcessor=i}else this.activeSpanProcessor=new Bfe.NoopSpanProcessor}getTracer(e,t,n){let s=`${e}@${t||""}:${n?.schemaUrl||""}`;return this._tracers.has(s)||this._tracers.set(s,new Lfe.Tracer({name:e,version:t,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(s)}addSpanProcessor(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(t=>tu.diag.error("Error while trying to shutdown current span processor",t)),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new Nfe.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(e={}){tu.trace.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&tu.context.setGlobalContextManager(e.contextManager),e.propagator&&tu.propagation.setGlobalPropagator(e.propagator)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map(n=>new Promise(s=>{let i,o=setTimeout(()=>{s(new Error(`Span processor did not completed within timeout period of ${e} ms`)),i=ru.timeout},e);n.forceFlush().then(()=>{clearTimeout(o),i!==ru.timeout&&(i=ru.resolved,s(i))}).catch(a=>{clearTimeout(o),i=ru.error,s(a)})}));return new Promise((n,s)=>{Promise.all(t).then(i=>{let o=i.filter(a=>a!==ru.resolved);o.length>0?s(o):n()}).catch(i=>s([i]))})}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(e){var t;return(t=this.constructor._registeredPropagators.get(e))===null||t===void 0?void 0:t()}_getSpanExporter(e){var t;return(t=this.constructor._registeredExporters.get(e))===null||t===void 0?void 0:t()}_buildPropagatorFromEnv(){let e=Array.from(new Set((0,nu.getEnv)().OTEL_PROPAGATORS)),n=e.map(s=>{let i=this._getPropagator(s);return i||tu.diag.warn(`Propagator "${s}" requested through environment variable is unavailable.`),i}).reduce((s,i)=>(i&&s.push(i),s),[]);if(n.length!==0)return e.length===1?n[0]:new nu.CompositePropagator({propagators:n})}_buildExporterFromEnv(){let e=(0,nu.getEnv)().OTEL_TRACES_EXPORTER;if(e==="none"||e==="")return;let t=this._getSpanExporter(e);return t||tu.diag.error(`Exporter "${e}" requested through environment variable is unavailable.`),t}};aa.BasicTracerProvider=mf;mf._registeredPropagators=new Map([["tracecontext",()=>new nu.W3CTraceContextPropagator],["baggage",()=>new nu.W3CBaggagePropagator]]);mf._registeredExporters=new Map});var S6=C(O0=>{"use strict";Object.defineProperty(O0,"__esModule",{value:!0});O0.ConsoleSpanExporter=void 0;var HO=dt(),WO=class{export(e,t){return this._sendSpans(e,t)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(e){var t;return{traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:(t=e.spanContext().traceState)===null||t===void 0?void 0:t.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:(0,HO.hrTimeToMicroseconds)(e.startTime),duration:(0,HO.hrTimeToMicroseconds)(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}}_sendSpans(e,t){for(let n of e)console.dir(this._exportInfo(n),{depth:3});if(t)return t({code:HO.ExportResultCode.SUCCESS})}};O0.ConsoleSpanExporter=WO});var T6=C(C0=>{"use strict";Object.defineProperty(C0,"__esModule",{value:!0});C0.InMemorySpanExporter=void 0;var _6=dt(),YO=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(e,t){if(this._stopped)return t({code:_6.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...e),setTimeout(()=>t({code:_6.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}};C0.InMemorySpanExporter=YO});var A6=C(y6=>{"use strict";Object.defineProperty(y6,"__esModule",{value:!0})});var O6=C(v0=>{"use strict";Object.defineProperty(v0,"__esModule",{value:!0});v0.SimpleSpanProcessor=void 0;var Vfe=(Pe(),Ue(Ne)),iu=dt(),zO=class{constructor(e){this._exporter=e,this._shutdownOnce=new iu.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(e,t){}onEnd(e){var t,n;if(this._shutdownOnce.isCalled||(e.spanContext().traceFlags&Vfe.TraceFlags.SAMPLED)===0)return;let s=()=>iu.internal._export(this._exporter,[e]).then(i=>{var o;i.code!==iu.ExportResultCode.SUCCESS&&(0,iu.globalErrorHandler)((o=i.error)!==null&&o!==void 0?o:new Error(`SimpleSpanProcessor: span export failed (status ${i})`))}).catch(i=>{(0,iu.globalErrorHandler)(i)});if(e.resource.asyncAttributesPending){let i=(n=(t=e.resource).waitForAsyncAttributes)===null||n===void 0?void 0:n.call(t).then(()=>(i!=null&&this._unresolvedExports.delete(i),s()),o=>(0,iu.globalErrorHandler)(o));i!=null&&this._unresolvedExports.add(i)}else s()}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}};v0.SimpleSpanProcessor=zO});var v6=C(C6=>{"use strict";Object.defineProperty(C6,"__esModule",{value:!0})});var x6=C(D6=>{"use strict";Object.defineProperty(D6,"__esModule",{value:!0})});var I6=C(b6=>{"use strict";Object.defineProperty(b6,"__esModule",{value:!0})});var w6=C(P6=>{"use strict";Object.defineProperty(P6,"__esModule",{value:!0})});var L6=C(R6=>{"use strict";Object.defineProperty(R6,"__esModule",{value:!0})});var A0=C(Ot=>{"use strict";var Gfe=Ot&&Ot.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Kt=Ot&&Ot.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Gfe(e,r,t)};Object.defineProperty(Ot,"__esModule",{value:!0});Kt(h6(),Ot);Kt(E6(),Ot);Kt(E0(),Ot);Kt(S6(),Ot);Kt(T6(),Ot);Kt(A6(),Ot);Kt(O6(),Ot);Kt(v6(),Ot);Kt($O(),Ot);Kt(o0(),Ot);Kt(c0(),Ot);Kt(PO(),Ot);Kt(RO(),Ot);Kt(hf(),Ot);Kt(vO(),Ot);Kt(x6(),Ot);Kt(I6(),Ot);Kt(w6(),Ot);Kt(L6(),Ot)});var gf=C((Fbe,M6)=>{"use strict";var kfe="2.0.0",jfe=Number.MAX_SAFE_INTEGER||9007199254740991,qfe=16,$fe=250,Hfe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];M6.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:qfe,MAX_SAFE_BUILD_LENGTH:$fe,MAX_SAFE_INTEGER:jfe,RELEASE_TYPES:Hfe,SEMVER_SPEC_VERSION:kfe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ef=C((Vbe,N6)=>{"use strict";var Wfe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};N6.exports=Wfe});var su=C((Di,B6)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:XO,MAX_SAFE_BUILD_LENGTH:Yfe,MAX_LENGTH:zfe}=gf(),Xfe=Ef();Di=B6.exports={};var Kfe=Di.re=[],Jfe=Di.safeRe=[],Oe=Di.src=[],Qfe=Di.safeSrc=[],Ce=Di.t={},Zfe=0,KO="[a-zA-Z0-9-]",epe=[["\\s",1],["\\d",zfe],[KO,Yfe]],tpe=r=>{for(let[e,t]of epe)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},Xe=(r,e,t)=>{let n=tpe(e),s=Zfe++;Xfe(r,s,e),Ce[r]=s,Oe[s]=e,Qfe[s]=n,Kfe[s]=new RegExp(e,t?"g":void 0),Jfe[s]=new RegExp(n,t?"g":void 0)};Xe("NUMERICIDENTIFIER","0|[1-9]\\d*");Xe("NUMERICIDENTIFIERLOOSE","\\d+");Xe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${KO}*`);Xe("MAINVERSION",`(${Oe[Ce.NUMERICIDENTIFIER]})\\.(${Oe[Ce.NUMERICIDENTIFIER]})\\.(${Oe[Ce.NUMERICIDENTIFIER]})`);Xe("MAINVERSIONLOOSE",`(${Oe[Ce.NUMERICIDENTIFIERLOOSE]})\\.(${Oe[Ce.NUMERICIDENTIFIERLOOSE]})\\.(${Oe[Ce.NUMERICIDENTIFIERLOOSE]})`);Xe("PRERELEASEIDENTIFIER",`(?:${Oe[Ce.NONNUMERICIDENTIFIER]}|${Oe[Ce.NUMERICIDENTIFIER]})`);Xe("PRERELEASEIDENTIFIERLOOSE",`(?:${Oe[Ce.NONNUMERICIDENTIFIER]}|${Oe[Ce.NUMERICIDENTIFIERLOOSE]})`);Xe("PRERELEASE",`(?:-(${Oe[Ce.PRERELEASEIDENTIFIER]}(?:\\.${Oe[Ce.PRERELEASEIDENTIFIER]})*))`);Xe("PRERELEASELOOSE",`(?:-?(${Oe[Ce.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Oe[Ce.PRERELEASEIDENTIFIERLOOSE]})*))`);Xe("BUILDIDENTIFIER",`${KO}+`);Xe("BUILD",`(?:\\+(${Oe[Ce.BUILDIDENTIFIER]}(?:\\.${Oe[Ce.BUILDIDENTIFIER]})*))`);Xe("FULLPLAIN",`v?${Oe[Ce.MAINVERSION]}${Oe[Ce.PRERELEASE]}?${Oe[Ce.BUILD]}?`);Xe("FULL",`^${Oe[Ce.FULLPLAIN]}$`);Xe("LOOSEPLAIN",`[v=\\s]*${Oe[Ce.MAINVERSIONLOOSE]}${Oe[Ce.PRERELEASELOOSE]}?${Oe[Ce.BUILD]}?`);Xe("LOOSE",`^${Oe[Ce.LOOSEPLAIN]}$`);Xe("GTLT","((?:<|>)?=?)");Xe("XRANGEIDENTIFIERLOOSE",`${Oe[Ce.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Xe("XRANGEIDENTIFIER",`${Oe[Ce.NUMERICIDENTIFIER]}|x|X|\\*`);Xe("XRANGEPLAIN",`[v=\\s]*(${Oe[Ce.XRANGEIDENTIFIER]})(?:\\.(${Oe[Ce.XRANGEIDENTIFIER]})(?:\\.(${Oe[Ce.XRANGEIDENTIFIER]})(?:${Oe[Ce.PRERELEASE]})?${Oe[Ce.BUILD]}?)?)?`);Xe("XRANGEPLAINLOOSE",`[v=\\s]*(${Oe[Ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Oe[Ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Oe[Ce.XRANGEIDENTIFIERLOOSE]})(?:${Oe[Ce.PRERELEASELOOSE]})?${Oe[Ce.BUILD]}?)?)?`);Xe("XRANGE",`^${Oe[Ce.GTLT]}\\s*${Oe[Ce.XRANGEPLAIN]}$`);Xe("XRANGELOOSE",`^${Oe[Ce.GTLT]}\\s*${Oe[Ce.XRANGEPLAINLOOSE]}$`);Xe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${XO}})(?:\\.(\\d{1,${XO}}))?(?:\\.(\\d{1,${XO}}))?`);Xe("COERCE",`${Oe[Ce.COERCEPLAIN]}(?:$|[^\\d])`);Xe("COERCEFULL",Oe[Ce.COERCEPLAIN]+`(?:${Oe[Ce.PRERELEASE]})?(?:${Oe[Ce.BUILD]})?(?:$|[^\\d])`);Xe("COERCERTL",Oe[Ce.COERCE],!0);Xe("COERCERTLFULL",Oe[Ce.COERCEFULL],!0);Xe("LONETILDE","(?:~>?)");Xe("TILDETRIM",`(\\s*)${Oe[Ce.LONETILDE]}\\s+`,!0);Di.tildeTrimReplace="$1~";Xe("TILDE",`^${Oe[Ce.LONETILDE]}${Oe[Ce.XRANGEPLAIN]}$`);Xe("TILDELOOSE",`^${Oe[Ce.LONETILDE]}${Oe[Ce.XRANGEPLAINLOOSE]}$`);Xe("LONECARET","(?:\\^)");Xe("CARETTRIM",`(\\s*)${Oe[Ce.LONECARET]}\\s+`,!0);Di.caretTrimReplace="$1^";Xe("CARET",`^${Oe[Ce.LONECARET]}${Oe[Ce.XRANGEPLAIN]}$`);Xe("CARETLOOSE",`^${Oe[Ce.LONECARET]}${Oe[Ce.XRANGEPLAINLOOSE]}$`);Xe("COMPARATORLOOSE",`^${Oe[Ce.GTLT]}\\s*(${Oe[Ce.LOOSEPLAIN]})$|^$`);Xe("COMPARATOR",`^${Oe[Ce.GTLT]}\\s*(${Oe[Ce.FULLPLAIN]})$|^$`);Xe("COMPARATORTRIM",`(\\s*)${Oe[Ce.GTLT]}\\s*(${Oe[Ce.LOOSEPLAIN]}|${Oe[Ce.XRANGEPLAIN]})`,!0);Di.comparatorTrimReplace="$1$2$3";Xe("HYPHENRANGE",`^\\s*(${Oe[Ce.XRANGEPLAIN]})\\s+-\\s+(${Oe[Ce.XRANGEPLAIN]})\\s*$`);Xe("HYPHENRANGELOOSE",`^\\s*(${Oe[Ce.XRANGEPLAINLOOSE]})\\s+-\\s+(${Oe[Ce.XRANGEPLAINLOOSE]})\\s*$`);Xe("STAR","(<|>)?=?\\s*\\*");Xe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Xe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var D0=C((Gbe,U6)=>{"use strict";var rpe=Object.freeze({loose:!0}),npe=Object.freeze({}),ipe=r=>r?typeof r!="object"?rpe:r:npe;U6.exports=ipe});var JO=C((kbe,G6)=>{"use strict";var F6=/^[0-9]+$/,V6=(r,e)=>{if(typeof r=="number"&&typeof e=="number")return r===e?0:r<e?-1:1;let t=F6.test(r),n=F6.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},spe=(r,e)=>V6(e,r);G6.exports={compareIdentifiers:V6,rcompareIdentifiers:spe}});var xr=C((jbe,j6)=>{"use strict";var x0=Ef(),{MAX_LENGTH:k6,MAX_SAFE_INTEGER:b0}=gf(),{safeRe:I0,t:P0}=su(),ope=D0(),{compareIdentifiers:QO}=JO(),ZO=class r{constructor(e,t){if(t=ope(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>k6)throw new TypeError(`version is longer than ${k6} characters`);x0("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?I0[P0.LOOSE]:I0[P0.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>b0||this.major<0)throw new TypeError("Invalid major version");if(this.minor>b0||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>b0||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<b0)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(x0("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(x0("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return QO(n,s)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(x0("build compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return QO(n,s)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let s=`-${t}`.match(this.options.loose?I0[P0.PRERELEASELOOSE]:I0[P0.PRERELEASE]);if(!s||s[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let i=[t,s];n===!1&&(i=[t]),QO(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};j6.exports=ZO});var ca=C((qbe,$6)=>{"use strict";var q6=xr(),ape=(r,e,t=!1)=>{if(r instanceof q6)return r;try{return new q6(r,e)}catch(n){if(!t)return null;throw n}};$6.exports=ape});var W6=C(($be,H6)=>{"use strict";var cpe=ca(),upe=(r,e)=>{let t=cpe(r,e);return t?t.version:null};H6.exports=upe});var z6=C((Hbe,Y6)=>{"use strict";var lpe=ca(),fpe=(r,e)=>{let t=lpe(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};Y6.exports=fpe});var J6=C((Wbe,K6)=>{"use strict";var X6=xr(),ppe=(r,e,t,n,s)=>{typeof t=="string"&&(s=n,n=t,t=void 0);try{return new X6(r instanceof X6?r.version:r,t).inc(e,n,s).version}catch{return null}};K6.exports=ppe});var eq=C((Ybe,Z6)=>{"use strict";var Q6=ca(),dpe=(r,e)=>{let t=Q6(r,null,!0),n=Q6(e,null,!0),s=t.compare(n);if(s===0)return null;let i=s>0,o=i?t:n,a=i?n:t,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let l=c?"pre":"";return t.major!==n.major?l+"major":t.minor!==n.minor?l+"minor":t.patch!==n.patch?l+"patch":"prerelease"};Z6.exports=dpe});var rq=C((zbe,tq)=>{"use strict";var hpe=xr(),mpe=(r,e)=>new hpe(r,e).major;tq.exports=mpe});var iq=C((Xbe,nq)=>{"use strict";var gpe=xr(),Epe=(r,e)=>new gpe(r,e).minor;nq.exports=Epe});var oq=C((Kbe,sq)=>{"use strict";var Spe=xr(),_pe=(r,e)=>new Spe(r,e).patch;sq.exports=_pe});var cq=C((Jbe,aq)=>{"use strict";var Tpe=ca(),ype=(r,e)=>{let t=Tpe(r,e);return t&&t.prerelease.length?t.prerelease:null};aq.exports=ype});var Rn=C((Qbe,lq)=>{"use strict";var uq=xr(),Ape=(r,e,t)=>new uq(r,t).compare(new uq(e,t));lq.exports=Ape});var pq=C((Zbe,fq)=>{"use strict";var Ope=Rn(),Cpe=(r,e,t)=>Ope(e,r,t);fq.exports=Cpe});var hq=C((eIe,dq)=>{"use strict";var vpe=Rn(),Dpe=(r,e)=>vpe(r,e,!0);dq.exports=Dpe});var w0=C((tIe,gq)=>{"use strict";var mq=xr(),xpe=(r,e,t)=>{let n=new mq(r,t),s=new mq(e,t);return n.compare(s)||n.compareBuild(s)};gq.exports=xpe});var Sq=C((rIe,Eq)=>{"use strict";var bpe=w0(),Ipe=(r,e)=>r.sort((t,n)=>bpe(t,n,e));Eq.exports=Ipe});var Tq=C((nIe,_q)=>{"use strict";var Ppe=w0(),wpe=(r,e)=>r.sort((t,n)=>Ppe(n,t,e));_q.exports=wpe});var Sf=C((iIe,yq)=>{"use strict";var Rpe=Rn(),Lpe=(r,e,t)=>Rpe(r,e,t)>0;yq.exports=Lpe});var R0=C((sIe,Aq)=>{"use strict";var Mpe=Rn(),Npe=(r,e,t)=>Mpe(r,e,t)<0;Aq.exports=Npe});var e1=C((oIe,Oq)=>{"use strict";var Bpe=Rn(),Upe=(r,e,t)=>Bpe(r,e,t)===0;Oq.exports=Upe});var t1=C((aIe,Cq)=>{"use strict";var Fpe=Rn(),Vpe=(r,e,t)=>Fpe(r,e,t)!==0;Cq.exports=Vpe});var L0=C((cIe,vq)=>{"use strict";var Gpe=Rn(),kpe=(r,e,t)=>Gpe(r,e,t)>=0;vq.exports=kpe});var M0=C((uIe,Dq)=>{"use strict";var jpe=Rn(),qpe=(r,e,t)=>jpe(r,e,t)<=0;Dq.exports=qpe});var r1=C((lIe,xq)=>{"use strict";var $pe=e1(),Hpe=t1(),Wpe=Sf(),Ype=L0(),zpe=R0(),Xpe=M0(),Kpe=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return $pe(r,t,n);case"!=":return Hpe(r,t,n);case">":return Wpe(r,t,n);case">=":return Ype(r,t,n);case"<":return zpe(r,t,n);case"<=":return Xpe(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};xq.exports=Kpe});var Iq=C((fIe,bq)=>{"use strict";var Jpe=xr(),Qpe=ca(),{safeRe:N0,t:B0}=su(),Zpe=(r,e)=>{if(r instanceof Jpe)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?N0[B0.COERCEFULL]:N0[B0.COERCE]);else{let c=e.includePrerelease?N0[B0.COERCERTLFULL]:N0[B0.COERCERTL],u;for(;(u=c.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||u.index+u[0].length!==t.index+t[0].length)&&(t=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(t===null)return null;let n=t[2],s=t[3]||"0",i=t[4]||"0",o=e.includePrerelease&&t[5]?`-${t[5]}`:"",a=e.includePrerelease&&t[6]?`+${t[6]}`:"";return Qpe(`${n}.${s}.${i}${o}${a}`,e)};bq.exports=Zpe});var wq=C((pIe,Pq)=>{"use strict";var n1=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,t)}return this}};Pq.exports=n1});var Ln=C((dIe,Nq)=>{"use strict";var ede=/\s+/g,i1=class r{constructor(e,t){if(t=rde(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof s1)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(ede," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!Lq(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&ude(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&ade)|(this.options.loose&&cde))+":"+e,s=Rq.get(n);if(s)return s;let i=this.options.loose,o=i?kr[br.HYPHENRANGELOOSE]:kr[br.HYPHENRANGE];e=e.replace(o,_de(this.options.includePrerelease)),Ct("hyphen replace",e),e=e.replace(kr[br.COMPARATORTRIM],ide),Ct("comparator trim",e),e=e.replace(kr[br.TILDETRIM],sde),Ct("tilde trim",e),e=e.replace(kr[br.CARETTRIM],ode),Ct("caret trim",e);let a=e.split(" ").map(f=>lde(f,this.options)).join(" ").split(/\s+/).map(f=>Sde(f,this.options));i&&(a=a.filter(f=>(Ct("loose invalid filter",f,this.options),!!f.match(kr[br.COMPARATORLOOSE])))),Ct("range list",a);let c=new Map,u=a.map(f=>new s1(f,this.options));for(let f of u){if(Lq(f))return[f];c.set(f.value,f)}c.size>1&&c.has("")&&c.delete("");let l=[...c.values()];return Rq.set(n,l),l}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>Mq(n,t)&&e.set.some(s=>Mq(s,t)&&n.every(i=>s.every(o=>i.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new nde(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Tde(this.set[t],e,this.options))return!0;return!1}};Nq.exports=i1;var tde=wq(),Rq=new tde,rde=D0(),s1=_f(),Ct=Ef(),nde=xr(),{safeRe:kr,t:br,comparatorTrimReplace:ide,tildeTrimReplace:sde,caretTrimReplace:ode}=su(),{FLAG_INCLUDE_PRERELEASE:ade,FLAG_LOOSE:cde}=gf(),Lq=r=>r.value==="<0.0.0-0",ude=r=>r.value==="",Mq=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},lde=(r,e)=>(r=r.replace(kr[br.BUILD],""),Ct("comp",r,e),r=dde(r,e),Ct("caret",r),r=fde(r,e),Ct("tildes",r),r=mde(r,e),Ct("xrange",r),r=Ede(r,e),Ct("stars",r),r),jr=r=>!r||r.toLowerCase()==="x"||r==="*",fde=(r,e)=>r.trim().split(/\s+/).map(t=>pde(t,e)).join(" "),pde=(r,e)=>{let t=e.loose?kr[br.TILDELOOSE]:kr[br.TILDE];return r.replace(t,(n,s,i,o,a)=>{Ct("tilde",r,n,s,i,o,a);let c;return jr(s)?c="":jr(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:jr(o)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:a?(Ct("replaceTilde pr",a),c=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,Ct("tilde return",c),c})},dde=(r,e)=>r.trim().split(/\s+/).map(t=>hde(t,e)).join(" "),hde=(r,e)=>{Ct("caret",r,e);let t=e.loose?kr[br.CARETLOOSE]:kr[br.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,o,a,c)=>{Ct("caret",r,s,i,o,a,c);let u;return jr(i)?u="":jr(o)?u=`>=${i}.0.0${n} <${+i+1}.0.0-0`:jr(a)?i==="0"?u=`>=${i}.${o}.0${n} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.0${n} <${+i+1}.0.0-0`:c?(Ct("replaceCaret pr",c),i==="0"?o==="0"?u=`>=${i}.${o}.${a}-${c} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a}-${c} <${+i+1}.0.0-0`):(Ct("no pr"),i==="0"?o==="0"?u=`>=${i}.${o}.${a}${n} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a}${n} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),Ct("caret return",u),u})},mde=(r,e)=>(Ct("replaceXRanges",r,e),r.split(/\s+/).map(t=>gde(t,e)).join(" ")),gde=(r,e)=>{r=r.trim();let t=e.loose?kr[br.XRANGELOOSE]:kr[br.XRANGE];return r.replace(t,(n,s,i,o,a,c)=>{Ct("xRange",r,n,s,i,o,a,c);let u=jr(i),l=u||jr(o),f=l||jr(a),p=f;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&p?(l&&(o=0),a=0,s===">"?(s=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",l?i=+i+1:o=+o+1),s==="<"&&(c="-0"),n=`${s+i}.${o}.${a}${c}`):l?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:f&&(n=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),Ct("xRange return",n),n})},Ede=(r,e)=>(Ct("replaceStars",r,e),r.trim().replace(kr[br.STAR],"")),Sde=(r,e)=>(Ct("replaceGTE0",r,e),r.trim().replace(kr[e.includePrerelease?br.GTE0PRE:br.GTE0],"")),_de=r=>(e,t,n,s,i,o,a,c,u,l,f,p)=>(jr(n)?t="":jr(s)?t=`>=${n}.0.0${r?"-0":""}`:jr(i)?t=`>=${n}.${s}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,jr(u)?c="":jr(l)?c=`<${+u+1}.0.0-0`:jr(f)?c=`<${u}.${+l+1}.0-0`:p?c=`<=${u}.${l}.${f}-${p}`:r?c=`<${u}.${l}.${+f+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),Tde=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(Ct(r[n].semver),r[n].semver!==s1.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var _f=C((hIe,kq)=>{"use strict";var Tf=Symbol("SemVer ANY"),c1=class r{static get ANY(){return Tf}constructor(e,t){if(t=Bq(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),a1("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Tf?this.value="":this.value=this.operator+this.semver.version,a1("comp",this)}parse(e){let t=this.options.loose?Uq[Fq.COMPARATORLOOSE]:Uq[Fq.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Vq(n[2],this.options.loose):this.semver=Tf}toString(){return this.value}test(e){if(a1("Comparator.test",e,this.options.loose),this.semver===Tf||e===Tf)return!0;if(typeof e=="string")try{e=new Vq(e,this.options)}catch{return!1}return o1(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Gq(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new Gq(this.value,t).test(e.semver):(t=Bq(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||o1(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||o1(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};kq.exports=c1;var Bq=D0(),{safeRe:Uq,t:Fq}=su(),o1=r1(),a1=Ef(),Vq=xr(),Gq=Ln()});var yf=C((mIe,jq)=>{"use strict";var yde=Ln(),Ade=(r,e,t)=>{try{e=new yde(e,t)}catch{return!1}return e.test(r)};jq.exports=Ade});var $q=C((gIe,qq)=>{"use strict";var Ode=Ln(),Cde=(r,e)=>new Ode(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));qq.exports=Cde});var Wq=C((EIe,Hq)=>{"use strict";var vde=xr(),Dde=Ln(),xde=(r,e,t)=>{let n=null,s=null,i=null;try{i=new Dde(e,t)}catch{return null}return r.forEach(o=>{i.test(o)&&(!n||s.compare(o)===-1)&&(n=o,s=new vde(n,t))}),n};Hq.exports=xde});var zq=C((SIe,Yq)=>{"use strict";var bde=xr(),Ide=Ln(),Pde=(r,e,t)=>{let n=null,s=null,i=null;try{i=new Ide(e,t)}catch{return null}return r.forEach(o=>{i.test(o)&&(!n||s.compare(o)===1)&&(n=o,s=new bde(n,t))}),n};Yq.exports=Pde});var Jq=C((_Ie,Kq)=>{"use strict";var u1=xr(),wde=Ln(),Xq=Sf(),Rde=(r,e)=>{r=new wde(r,e);let t=new u1("0.0.0");if(r.test(t)||(t=new u1("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let s=r.set[n],i=null;s.forEach(o=>{let a=new u1(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||Xq(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!t||Xq(t,i))&&(t=i)}return t&&r.test(t)?t:null};Kq.exports=Rde});var Zq=C((TIe,Qq)=>{"use strict";var Lde=Ln(),Mde=(r,e)=>{try{return new Lde(r,e).range||"*"}catch{return null}};Qq.exports=Mde});var U0=C((yIe,n$)=>{"use strict";var Nde=xr(),r$=_f(),{ANY:Bde}=r$,Ude=Ln(),Fde=yf(),e$=Sf(),t$=R0(),Vde=M0(),Gde=L0(),kde=(r,e,t,n)=>{r=new Nde(r,n),e=new Ude(e,n);let s,i,o,a,c;switch(t){case">":s=e$,i=Vde,o=t$,a=">",c=">=";break;case"<":s=t$,i=Gde,o=e$,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Fde(r,e,n))return!1;for(let u=0;u<e.set.length;++u){let l=e.set[u],f=null,p=null;if(l.forEach(d=>{d.semver===Bde&&(d=new r$(">=0.0.0")),f=f||d,p=p||d,s(d.semver,f.semver,n)?f=d:o(d.semver,p.semver,n)&&(p=d)}),f.operator===a||f.operator===c||(!p.operator||p.operator===a)&&i(r,p.semver))return!1;if(p.operator===c&&o(r,p.semver))return!1}return!0};n$.exports=kde});var s$=C((AIe,i$)=>{"use strict";var jde=U0(),qde=(r,e,t)=>jde(r,e,">",t);i$.exports=qde});var a$=C((OIe,o$)=>{"use strict";var $de=U0(),Hde=(r,e,t)=>$de(r,e,"<",t);o$.exports=Hde});var l$=C((CIe,u$)=>{"use strict";var c$=Ln(),Wde=(r,e,t)=>(r=new c$(r,t),e=new c$(e,t),r.intersects(e,t));u$.exports=Wde});var p$=C((vIe,f$)=>{"use strict";var Yde=yf(),zde=Rn();f$.exports=(r,e,t)=>{let n=[],s=null,i=null,o=r.sort((l,f)=>zde(l,f,t));for(let l of o)Yde(l,e,t)?(i=l,s||(s=l)):(i&&n.push([s,i]),i=null,s=null);s&&n.push([s,null]);let a=[];for(let[l,f]of n)l===f?a.push(l):!f&&l===o[0]?a.push("*"):f?l===o[0]?a.push(`<=${f}`):a.push(`${l} - ${f}`):a.push(`>=${l}`);let c=a.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return c.length<u.length?c:e}});var S$=C((DIe,E$)=>{"use strict";var d$=Ln(),f1=_f(),{ANY:l1}=f1,Af=yf(),p1=Rn(),Xde=(r,e,t={})=>{if(r===e)return!0;r=new d$(r,t),e=new d$(e,t);let n=!1;e:for(let s of r.set){for(let i of e.set){let o=Jde(s,i,t);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},Kde=[new f1(">=0.0.0-0")],h$=[new f1(">=0.0.0")],Jde=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===l1){if(e.length===1&&e[0].semver===l1)return!0;t.includePrerelease?r=Kde:r=h$}if(e.length===1&&e[0].semver===l1){if(t.includePrerelease)return!0;e=h$}let n=new Set,s,i;for(let d of r)d.operator===">"||d.operator===">="?s=m$(s,d,t):d.operator==="<"||d.operator==="<="?i=g$(i,d,t):n.add(d.semver);if(n.size>1)return null;let o;if(s&&i){if(o=p1(s.semver,i.semver,t),o>0)return null;if(o===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let d of n){if(s&&!Af(d,String(s),t)||i&&!Af(d,String(i),t))return null;for(let m of e)if(!Af(d,String(m),t))return!1;return!0}let a,c,u,l,f=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,p=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;f&&f.prerelease.length===1&&i.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let d of e){if(l=l||d.operator===">"||d.operator===">=",u=u||d.operator==="<"||d.operator==="<=",s){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator===">"||d.operator===">="){if(a=m$(s,d,t),a===d&&a!==s)return!1}else if(s.operator===">="&&!Af(s.semver,String(d),t))return!1}if(i){if(f&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===f.major&&d.semver.minor===f.minor&&d.semver.patch===f.patch&&(f=!1),d.operator==="<"||d.operator==="<="){if(c=g$(i,d,t),c===d&&c!==i)return!1}else if(i.operator==="<="&&!Af(i.semver,String(d),t))return!1}if(!d.operator&&(i||s)&&o!==0)return!1}return!(s&&u&&!i&&o!==0||i&&l&&!s&&o!==0||p||f)},m$=(r,e,t)=>{if(!r)return e;let n=p1(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},g$=(r,e,t)=>{if(!r)return e;let n=p1(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};E$.exports=Xde});var A$=C((xIe,y$)=>{"use strict";var d1=su(),_$=gf(),Qde=xr(),T$=JO(),Zde=ca(),ehe=W6(),the=z6(),rhe=J6(),nhe=eq(),ihe=rq(),she=iq(),ohe=oq(),ahe=cq(),che=Rn(),uhe=pq(),lhe=hq(),fhe=w0(),phe=Sq(),dhe=Tq(),hhe=Sf(),mhe=R0(),ghe=e1(),Ehe=t1(),She=L0(),_he=M0(),The=r1(),yhe=Iq(),Ahe=_f(),Ohe=Ln(),Che=yf(),vhe=$q(),Dhe=Wq(),xhe=zq(),bhe=Jq(),Ihe=Zq(),Phe=U0(),whe=s$(),Rhe=a$(),Lhe=l$(),Mhe=p$(),Nhe=S$();y$.exports={parse:Zde,valid:ehe,clean:the,inc:rhe,diff:nhe,major:ihe,minor:she,patch:ohe,prerelease:ahe,compare:che,rcompare:uhe,compareLoose:lhe,compareBuild:fhe,sort:phe,rsort:dhe,gt:hhe,lt:mhe,eq:ghe,neq:Ehe,gte:She,lte:_he,cmp:The,coerce:yhe,Comparator:Ahe,Range:Ohe,satisfies:Che,toComparators:vhe,maxSatisfying:Dhe,minSatisfying:xhe,minVersion:bhe,validRange:Ihe,outside:Phe,gtr:whe,ltr:Rhe,intersects:Lhe,simplifyRange:Mhe,subset:Nhe,SemVer:Qde,re:d1.re,src:d1.src,tokens:d1.t,SEMVER_SPEC_VERSION:_$.SEMVER_SPEC_VERSION,RELEASE_TYPES:_$.RELEASE_TYPES,compareIdentifiers:T$.compareIdentifiers,rcompareIdentifiers:T$.rcompareIdentifiers}});var O$=C(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.JaegerPropagator=ni.UBER_BAGGAGE_HEADER_PREFIX=ni.UBER_TRACE_ID_HEADER=void 0;var ua=(Pe(),Ue(Ne)),Bhe=dt();ni.UBER_TRACE_ID_HEADER="uber-trace-id";ni.UBER_BAGGAGE_HEADER_PREFIX="uberctx";var h1=class{constructor(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=ni.UBER_BAGGAGE_HEADER_PREFIX):(this._jaegerTraceHeader=e?.customTraceHeader||ni.UBER_TRACE_ID_HEADER,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||ni.UBER_BAGGAGE_HEADER_PREFIX)}inject(e,t,n){let s=ua.trace.getSpanContext(e),i=ua.propagation.getBaggage(e);if(s&&(0,Bhe.isTracingSuppressed)(e)===!1){let o=`0${(s.traceFlags||ua.TraceFlags.NONE).toString(16)}`;n.set(t,this._jaegerTraceHeader,`${s.traceId}:${s.spanId}:0:${o}`)}if(i)for(let[o,a]of i.getAllEntries())n.set(t,`${this._jaegerBaggageHeaderPrefix}-${o}`,encodeURIComponent(a.value))}extract(e,t,n){var s;let i=n.get(t,this._jaegerTraceHeader),o=Array.isArray(i)?i[0]:i,a=n.keys(t).filter(l=>l.startsWith(`${this._jaegerBaggageHeaderPrefix}-`)).map(l=>{let f=n.get(t,l);return{key:l.substring(this._jaegerBaggageHeaderPrefix.length+1),value:Array.isArray(f)?f[0]:f}}),c=e;if(typeof o=="string"){let l=Fhe(o);l&&(c=ua.trace.setSpanContext(c,l))}if(a.length===0)return c;let u=(s=ua.propagation.getBaggage(e))!==null&&s!==void 0?s:ua.propagation.createBaggage();for(let l of a)l.value!==void 0&&(u=u.setEntry(l.key,{value:decodeURIComponent(l.value)}));return c=ua.propagation.setBaggage(c,u),c}fields(){return[this._jaegerTraceHeader]}};ni.JaegerPropagator=h1;var Uhe=/^[0-9a-f]{1,2}$/i;function Fhe(r){let e=decodeURIComponent(r).split(":");if(e.length!==4)return null;let[t,n,,s]=e,i=t.padStart(32,"0"),o=n.padStart(16,"0"),a=Uhe.test(s)?parseInt(s,16)&1:1;return{traceId:i,spanId:o,isRemote:!0,traceFlags:a}}});var C$=C(la=>{"use strict";var Vhe=la&&la.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),Ghe=la&&la.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Vhe(e,r,t)};Object.defineProperty(la,"__esModule",{value:!0});Ghe(O$(),la)});var x$=C(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0});G0.NodeTracerProvider=void 0;var v$=Hj(),F0=Qj(),D$=A0(),khe=A$(),jhe=C$(),V0=class extends D$.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let t=khe.gte(process.version,"14.8.0")?v$.AsyncLocalStorageContextManager:v$.AsyncHooksContextManager;e.contextManager=new t,e.contextManager.enable()}super.register(e)}};G0.NodeTracerProvider=V0;V0._registeredPropagators=new Map([...D$.BasicTracerProvider._registeredPropagators,["b3",()=>new F0.B3Propagator({injectEncoding:F0.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new F0.B3Propagator({injectEncoding:F0.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new jhe.JaegerPropagator]])});var I$=C(Ls=>{"use strict";var qhe=Ls&&Ls.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),b$=Ls&&Ls.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&qhe(e,r,t)};Object.defineProperty(Ls,"__esModule",{value:!0});b$(x$(),Ls);b$(A0(),Ls)});var P$=C((RIe,$he)=>{$he.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{name:"Cloudflare Workers",constant:"CLOUDFLARE_WORKERS",env:"WORKERS_CI"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var L$=C(ii=>{"use strict";var w$=P$(),qt=process.env;Object.defineProperty(ii,"_vendors",{value:w$.map(function(r){return r.constant})});ii.name=null;ii.isPR=null;ii.id=null;qt.CI!=="false"&&w$.forEach(function(r){let t=(Array.isArray(r.env)?r.env:[r.env]).every(function(n){return R$(n)});ii[r.constant]=t,t&&(ii.name=r.name,ii.isPR=Hhe(r),ii.id=r.constant)});ii.isCI=!!(qt.CI!=="false"&&(qt.BUILD_ID||qt.BUILD_NUMBER||qt.CI||qt.CI_APP_ID||qt.CI_BUILD_ID||qt.CI_BUILD_NUMBER||qt.CI_NAME||qt.CONTINUOUS_INTEGRATION||qt.RUN_ID||ii.name));function R$(r){return typeof r=="string"?!!qt[r]:"env"in r?qt[r.env]&&qt[r.env].includes(r.includes):"any"in r?r.any.some(function(e){return!!qt[e]}):Object.keys(r).every(function(e){return qt[e]===r[e]})}function Hhe(r){switch(typeof r.pr){case"string":return!!qt[r.pr];case"object":return"env"in r.pr?"any"in r.pr?r.pr.any.some(function(e){return qt[r.pr.env]===e}):r.pr.env in qt&&qt[r.pr.env]!==r.pr.ne:"any"in r.pr?r.pr.any.some(function(e){return!!qt[e]}):R$(r.pr);default:return null}}});var N$=C((MIe,M$)=>{(()=>{var r={2980:(n,s,i)=>{"use strict";i(7360),i(5888),i(8412),i(3852),i(5584);var o=i(9892),a=i(5008),c=i(5088),u=i(224);function l(f,p){(p=p||{}).clipboard&&console.log(`
162
162
  *** Clipboard option removed - use clipboardy or clipboard-cli directly ***
163
- `);var d=Object.keys(f).length>0?f:c.defaults,m=Object.entries(d).reduce((function(g,h){var E=h[0],_=h[1],S=o[`get${E}`];return S?(_&&g.push(S(_,p)),g):g=g.concat((_||[]).map((function(y){var T=o[`get${y.replace(/\s/g,"")}Info`];return T?T():Promise.resolve(["Unknown"])})))}),[]);return Promise.all(m).then((function(g){var h=g.reduce((function(E,_){return _&&_[0]&&Object.assign(E,{[_[0]]:_}),E}),{});return(function(E,_){var S=_.json?a.json:_.markdown?a.markdown:a.yaml;if(_.console){var y=!1;process.stdout.isTTY&&(y=!0),console.log(S(E,Object.assign({},_,{console:y})))}return S(E,Object.assign({},_,{console:!1}))})(Object.entries(c.defaults).reduce((function(E,_){var S=_[0],y=_[1];return h[S]?Object.assign(E,{[S]:h[S][1]}):Object.assign(E,{[S]:(y||[]).reduce((function(T,I){return h[I]?(h[I].shift(),h[I].length===1?Object.assign(T,{[I]:h[I][0]}):Object.assign(T,{[I]:{version:h[I][0],path:h[I][1]}})):T}),{})})}),{}),p)}))}n.exports={cli:function(f){if(f.all)return l(Object.assign({},c.defaults,{npmPackages:!0,npmGlobalPackages:!0}),f);if(f.raw)return l(JSON.parse(f.raw),f);if(f.helper){var p=o[`get${f.helper}`]||o[`get${f.helper}Info`]||o[f.helper];return p?p().then(console.log):console.error("Not Found")}var d=function(h,E){return h.toLowerCase().includes(E.toLowerCase())},m=Object.keys(f).filter((function(h){return Object.keys(c.defaults).some((function(E){return d(E,h)}))})),g=Object.entries(c.defaults).reduce((function(h,E){return m.some((function(_){return d(_,E[0])}))?Object.assign(h,{[E[0]]:E[1]||f[E[0]]}):h}),{});return f.preset?c[f.preset]?l(Object.assign({},u.omit(c[f.preset],["options"]),g),Object.assign({},c[f.preset].options,u.pick(f,["duplicates","fullTree","json","markdown","console"]))):console.error(`
164
- No "${f.preset}" preset found.`):l(g,f)},helpers:o,main:l,run:function(f,p){return typeof f.preset=="string"?l(c[f.preset],p):l(f,p)}}},5008:(n,s,i)=>{"use strict";i(223),i(3852),i(4880),i(3708),i(5584),i(5308);var o=i(6232),a=i(224);function c(_,S){return a.log("trace","clean",_),Object.keys(_).reduce((function(y,T){return!S.showNotFound&&_[T]==="Not Found"||_[T]==="N/A"||_[T]===void 0||Object.keys(_[T]).length===0?y:a.isObject(_[T])?Object.values(_[T]).every((function(I){return I==="N/A"||!S.showNotFound&&I==="Not Found"}))?y:Object.assign(y,{[T]:c(_[T],S)}):Object.assign(y,{[T]:_[T]})}),{})}function u(_,S){a.log("trace","formatHeaders"),S||(S={type:"underline"});var y={underline:["\x1B[4m","\x1B[0m"]};return _.slice().split(`
165
- `).map((function(T){if(T.slice("-1")===":"){var I=T.match(/^[\s]*/g)[0];return`${I}${y[S.type][0]}${T.slice(I.length)}${y[S.type][1]}`}return T})).join(`
166
- `)}function l(_){return a.log("trace","formatPackages"),_.npmPackages?Object.assign(_,{npmPackages:Object.entries(_.npmPackages||{}).reduce((function(S,y){var T=y[0],I=y[1];if(I==="Not Found")return Object.assign(S,{[T]:I});var v=I.wanted?`${I.wanted} =>`:"",x=Array.isArray(I.installed)?I.installed.join(", "):I.installed,A=I.duplicates?`(${I.duplicates.join(", ")})`:"";return Object.assign(S,{[T]:`${v} ${x} ${A}`})}),{})}):_}function f(_,S,y){return y||(y={emptyMessage:"None"}),Array.isArray(S)&&(S=S.length>0?S.join(", "):y.emptyMessage),{[_]:S}}function p(_,S){return Object.entries(_).reduce((function(y,T){var I=T[0],v=T[1];return a.isObject(v)?Object.assign(y,{[I]:p(v,S)}):Object.assign(y,S(I,v))}),{})}function d(_){return a.log("trace","serializeArrays"),p(_,f)}function m(_){return a.log("trace","serializeVersionsAndPaths"),Object.entries(_).reduce((function(S,y){return Object.assign(S,{[y[0]]:Object.entries(y[1]).reduce((function(T,I){var v=I[0],x=I[1];return x.version?Object.assign(T,{[v]:[x.version,x.path].filter(Boolean).join(" - ")}):Object.assign(T,{[v]:[x][0]})}),{})},{})}),{})}function g(_){return o(_,{indent:" ",prefix:`
163
+ `);var d=Object.keys(f).length>0?f:c.defaults,m=Object.entries(d).reduce((function(g,h){var E=h[0],_=h[1],S=o[`get${E}`];return S?(_&&g.push(S(_,p)),g):g=g.concat((_||[]).map((function(y){var T=o[`get${y.replace(/\s/g,"")}Info`];return T?T():Promise.resolve(["Unknown"])})))}),[]);return Promise.all(m).then((function(g){var h=g.reduce((function(E,_){return _&&_[0]&&Object.assign(E,{[_[0]]:_}),E}),{});return(function(E,_){var S=_.json?a.json:_.markdown?a.markdown:a.yaml;if(_.console){var y=!1;process.stdout.isTTY&&(y=!0),console.log(S(E,Object.assign({},_,{console:y})))}return S(E,Object.assign({},_,{console:!1}))})(Object.entries(c.defaults).reduce((function(E,_){var S=_[0],y=_[1];return h[S]?Object.assign(E,{[S]:h[S][1]}):Object.assign(E,{[S]:(y||[]).reduce((function(T,b){return h[b]?(h[b].shift(),h[b].length===1?Object.assign(T,{[b]:h[b][0]}):Object.assign(T,{[b]:{version:h[b][0],path:h[b][1]}})):T}),{})})}),{}),p)}))}n.exports={cli:function(f){if(f.all)return l(Object.assign({},c.defaults,{npmPackages:!0,npmGlobalPackages:!0,pnpmGlobalPackages:!0}),f);if(f.raw)return l(JSON.parse(f.raw),f);if(f.helper){var p=o[`get${f.helper}`]||o[`get${f.helper}Info`]||o[f.helper];return p?p().then(console.log):console.error("Not Found")}var d=function(h,E){return h.toLowerCase().includes(E.toLowerCase())},m=Object.keys(f).filter((function(h){return Object.keys(c.defaults).some((function(E){return d(E,h)}))})),g=Object.entries(c.defaults).reduce((function(h,E){return m.some((function(_){return d(_,E[0])}))?Object.assign(h,{[E[0]]:E[1]||f[E[0]]}):h}),{});return f.preset?c[f.preset]?l(Object.assign({},u.omit(c[f.preset],["options"]),g),Object.assign({},c[f.preset].options,u.pick(f,["duplicates","fullTree","json","markdown","console"]))):console.error(`
164
+ No "${f.preset}" preset found.`):l(g,f)},helpers:o,main:l,run:function(f,p){return typeof f.preset=="string"?l(c[f.preset],p):l(f,p)}}},5008:(n,s,i)=>{"use strict";i(223),i(3852),i(4880),i(3708),i(5584),i(5308);var o=i(6232),a=i(224);function c(_,S){return a.log("trace","clean",_),Object.keys(_).reduce((function(y,T){return!S.showNotFound&&_[T]==="Not Found"||_[T]==="N/A"||_[T]===void 0||Object.keys(_[T]).length===0?y:a.isObject(_[T])?Object.values(_[T]).every((function(b){return b==="N/A"||!S.showNotFound&&b==="Not Found"}))?y:Object.assign(y,{[T]:c(_[T],S)}):Object.assign(y,{[T]:_[T]})}),{})}function u(_,S){a.log("trace","formatHeaders"),S||(S={type:"underline"});var y={underline:["\x1B[4m","\x1B[0m"]};return _.slice().split(`
165
+ `).map((function(T){if(T.slice("-1")===":"){var b=T.match(/^[\s]*/g)[0];return`${b}${y[S.type][0]}${T.slice(b.length)}${y[S.type][1]}`}return T})).join(`
166
+ `)}function l(_){return a.log("trace","formatPackages"),_.npmPackages?Object.assign(_,{npmPackages:Object.entries(_.npmPackages||{}).reduce((function(S,y){var T=y[0],b=y[1];if(b==="Not Found")return Object.assign(S,{[T]:b});var v=b.wanted?`${b.wanted} =>`:"",x=Array.isArray(b.installed)?b.installed.join(", "):b.installed,A=b.duplicates?`(${b.duplicates.join(", ")})`:"";return Object.assign(S,{[T]:`${v} ${x} ${A}`})}),{})}):_}function f(_,S,y){return y||(y={emptyMessage:"None"}),Array.isArray(S)&&(S=S.length>0?S.join(", "):y.emptyMessage),{[_]:S}}function p(_,S){return Object.entries(_).reduce((function(y,T){var b=T[0],v=T[1];return a.isObject(v)?Object.assign(y,{[b]:p(v,S)}):Object.assign(y,S(b,v))}),{})}function d(_){return a.log("trace","serializeArrays"),p(_,f)}function m(_){return a.log("trace","serializeVersionsAndPaths"),Object.entries(_).reduce((function(S,y){return Object.assign(S,{[y[0]]:Object.entries(y[1]).reduce((function(T,b){var v=b[0],x=b[1];return x.version?Object.assign(T,{[v]:[x.version,x.path].filter(Boolean).join(" - ")}):Object.assign(T,{[v]:[x][0]})}),{})},{})}),{})}function g(_){return o(_,{indent:" ",prefix:`
167
167
  `,postfix:`
168
168
  `})}function h(_){return _.slice().split(`
169
169
  `).map((function(S){if(S!==""){var y=S.slice("-1")===":",T=S.search(/\S|$/);return y?`${"#".repeat(T/2+1)} `+S.slice(T):" - "+S.slice(T)}return""})).join(`
170
170
  `)}function E(_,S){return S||(S={indent:" "}),JSON.stringify(_,null,S.indent)}n.exports={json:function(_,S){return a.log("trace","formatToJson"),S||(S={}),_=a.pipe([function(){return c(_,S)},S.title?function(y){return{[S.title]:y}}:a.noop,E])(_),_=S.console?`
171
171
  ${_}
172
172
  `:_},markdown:function(_,S){return a.log("trace","formatToMarkdown"),a.pipe([function(){return c(_,S)},l,d,m,g,h,S.title?function(y){return`
173
- # ${S.title}${y}`}:a.noop])(_,S)},yaml:function(_,S){return a.log("trace","formatToYaml",S),a.pipe([function(){return c(_,S)},l,d,m,S.title?function(y){return{[S.title]:y}}:a.noop,g,S.console?u:a.noop])(_,S)}}},6732:(n,s,i)=>{"use strict";i(5888);var o=i(224);n.exports={getNodeInfo:function(){return o.log("trace","getNodeInfo"),Promise.all([o.isWindows?o.run("node -v").then(o.findVersion):o.which("node").then((function(a){return a?o.run(a+" -v"):Promise.resolve("")})).then(o.findVersion),o.which("node").then(o.condensePath)]).then((function(a){return o.determineFound("Node",a[0],a[1])}))},getnpmInfo:function(){return o.log("trace","getnpmInfo"),Promise.all([o.run("npm -v"),o.which("npm").then(o.condensePath)]).then((function(a){return o.determineFound("npm",a[0],a[1])}))},getWatchmanInfo:function(){return o.log("trace","getWatchmanInfo"),Promise.all([o.which("watchman").then((function(a){return a?o.run(a+" -v"):void 0})),o.which("watchman")]).then((function(a){return o.determineFound("Watchman",a[0],a[1])}))},getYarnInfo:function(){return o.log("trace","getYarnInfo"),Promise.all([o.run("yarn -v"),o.which("yarn").then(o.condensePath)]).then((function(a){return o.determineFound("Yarn",a[0],a[1])}))},getpnpmInfo:function(){return o.log("trace","getpnpmInfo"),Promise.all([o.run("pnpm -v"),o.which("pnpm").then(o.condensePath)]).then((function(a){return o.determineFound("pnpm",a[0],a[1])}))},getbunInfo:function(){return o.log("trace","getbunInfo"),Promise.all([o.run("bun -v"),o.which("bun").then(o.condensePath)]).then((function(a){return o.determineFound("bun",a[0],a[1])}))}}},2524:(n,s,i)=>{"use strict";i(3708),i(5888),i(8412);var o=i(2058),a=i(8558),c=i(224),u=i(7072);function l(f,p){var d;return(c.isLinux?c.run("firefox --version").then((function(m){return m.replace(/^.* ([^ ]*)/g,"$1")})):c.isMacOS&&typeof f=="string"&&f?c.getDarwinApplicationVersion(f):c.isWindows&&typeof p=="string"&&p?c.windowsExeExists(p).then((function(m){return d=m,m?c.run(`powershell ". '${m}' -v | Write-Output"`).then((function(g){return c.findVersion(g)})):c.NA})):Promise.resolve(c.NA)).then((function(m){return c.determineFound("Firefox",m,d||c.NA)}))}n.exports={getBraveBrowserInfo:function(){return c.log("trace","getBraveBrowser"),(c.isLinux?c.run("brave --version || brave-browser --version").then((function(f){return f.replace(/^.* ([^ ]*)/g,"$1")})):c.isMacOS?c.getDarwinApplicationVersion(c.browserBundleIdentifiers["Brave Browser"]).then(c.findVersion):Promise.resolve("N/A")).then((function(f){return c.determineFound("Brave Browser",f,"N/A")}))},getChromeInfo:function(){var f;if(c.log("trace","getChromeInfo"),c.isLinux)f=c.run("google-chrome --version").then((function(d){return d.replace(" dev","").replace(/^.* ([^ ]*)/g,"$1")}));else if(c.isMacOS)f=c.getDarwinApplicationVersion(c.browserBundleIdentifiers.Chrome).then(c.findVersion);else if(c.isWindows){var p;try{p=c.findVersion(o.readdirSync(u.join(process.env["ProgramFiles(x86)"],"Google/Chrome/Application")).join(`
174
- `))}catch{p=c.NotFound}f=Promise.resolve(p)}else f=Promise.resolve("N/A");return f.then((function(d){return c.determineFound("Chrome",d,"N/A")}))},getChromeCanaryInfo:function(){return c.log("trace","getChromeCanaryInfo"),c.getDarwinApplicationVersion(c.browserBundleIdentifiers["Chrome Canary"]).then((function(f){return c.determineFound("Chrome Canary",f,"N/A")}))},getChromiumInfo:function(){return c.log("trace","getChromiumInfo"),(c.isLinux?c.run("chromium --version").then(c.findVersion):Promise.resolve("N/A")).then((function(f){return c.determineFound("Chromium",f,"N/A")}))},getEdgeInfo:function(){var f;if(c.log("trace","getEdgeInfo"),c.isWindows&&a.release().split(".")[0]==="10"){var p={Spartan:"Microsoft.MicrosoftEdge",Chromium:"Microsoft.MicrosoftEdge.Stable",ChromiumDev:"Microsoft.MicrosoftEdge.Dev"};f=Promise.all(Object.keys(p).map((function(d){return(function(m,g){return c.run(`powershell get-appxpackage ${m}`).then((function(h){if(c.findVersion(h)!=="")return`${g} (${c.findVersion(h)})`}))})(p[d],d)})).filter((function(d){return d!==void 0})))}else{if(!c.isMacOS)return Promise.resolve("N/A");f=c.getDarwinApplicationVersion(c.browserBundleIdentifiers["Microsoft Edge"])}return f.then((function(d){return c.determineFound("Edge",Array.isArray(d)?d.filter((function(m){return m!==void 0})):d,c.NA)}))},getFirefoxInfo:function(){c.log("trace","getFirefoxInfo"),l(c.browserBundleIdentifiers.Firefox,"Mozilla Firefox/firefox.exe")},getFirefoxDeveloperEditionInfo:function(){c.log("trace","getFirefoxDeveloperEditionInfo"),l(c.browserBundleIdentifiers["Firefox Developer Edition"],"Firefox Developer Edition/firefox.exe")},getFirefoxNightlyInfo:function(){return c.log("trace","getFirefoxNightlyInfo"),(c.isLinux?c.run("firefox-trunk --version").then((function(f){return f.replace(/^.* ([^ ]*)/g,"$1")})):c.isMacOS?c.getDarwinApplicationVersion(c.browserBundleIdentifiers["Firefox Nightly"]):Promise.resolve("N/A")).then((function(f){return c.determineFound("Firefox Nightly",f,"N/A")}))},getInternetExplorerInfo:function(){var f;if(c.log("trace","getInternetExplorerInfo"),c.isWindows){var p=[process.env.SYSTEMDRIVE||"C:","Program Files","Internet Explorer","iexplore.exe"].join("\\\\");f=c.run(`wmic datafile where "name='${p}'" get Version`).then(c.findVersion)}else f=Promise.resolve("N/A");return f.then((function(d){return c.determineFound("Internet Explorer",d,"N/A")}))},getSafariTechnologyPreviewInfo:function(){return c.log("trace","getSafariTechnologyPreviewInfo"),c.getDarwinApplicationVersion(c.browserBundleIdentifiers["Safari Technology Preview"]).then((function(f){return c.determineFound("Safari Technology Preview",f,"N/A")}))},getSafariInfo:function(){return c.log("trace","getSafariInfo"),c.getDarwinApplicationVersion(c.browserBundleIdentifiers.Safari).then((function(f){return c.determineFound("Safari",f,"N/A")}))}}},6620:(n,s,i)=>{"use strict";i(7360),i(5888);var o=i(224);n.exports={getMongoDBInfo:function(){return o.log("trace","getMongoDBInfo"),Promise.all([o.run("mongo --version").then(o.findVersion),o.which("mongo")]).then((function(a){return o.determineFound("MongoDB",a[0],a[1])}))},getMySQLInfo:function(){return o.log("trace","getMySQLInfo"),Promise.all([o.run("mysql --version").then((function(a){return`${o.findVersion(a,null,1)}${a.includes("MariaDB")?" (MariaDB)":""}`})),o.which("mysql")]).then((function(a){return o.determineFound("MySQL",a[0],a[1])}))},getPostgreSQLInfo:function(){return o.log("trace","getPostgreSQLInfo"),Promise.all([o.run("postgres --version").then(o.findVersion),o.which("postgres")]).then((function(a){return o.determineFound("PostgreSQL",a[0],a[1])}))},getSQLiteInfo:function(){return o.log("trace","getSQLiteInfo"),Promise.all([o.run("sqlite3 --version").then(o.findVersion),o.which("sqlite3")]).then((function(a){return o.determineFound("SQLite",a[0],a[1])}))}}},3224:(n,s,i)=>{"use strict";i(3708),i(8412),i(5888);var o=i(7072),a=i(224);n.exports={getAndroidStudioInfo:function(){var c=Promise.resolve("N/A");if(a.isMacOS){var u=[o.join("/","Applications","Android Studio.app","Contents","Info.plist"),o.join(process.env.HOME,"Applications","Android Studio.app","Contents","Info.plist"),o.join("/","Applications","JetBrains Toolbox","Android Studio.app","Contents","Info.plist"),o.join(process.env.HOME,"Applications","JetBrains Toolbox","Android Studio.app","Contents","Info.plist")];c=Promise.all(u.map((function(l){return a.fileExists(l).then((function(f){if(!f)return null;var p=a.generatePlistBuddyCommand(l.replace(/ /g,"\\ "),["CFBundleShortVersionString","CFBundleVersion"]);return a.run(p).then((function(d){return d.split(`
175
- `).join(" ")}))}))}))).then((function(l){return l.find((function(f){return f!==null}))||a.NotFound}))}else a.isLinux?c=Promise.all([a.run('cat /opt/android-studio/bin/studio.sh | grep "$Home/.AndroidStudio" | head -1').then(a.findVersion),a.run("cat /opt/android-studio/build.txt")]).then((function(l){return`${l[0]} ${l[1]}`.trim()||a.NotFound})):a.isWindows&&(c=Promise.all([a.run('wmic datafile where name="C:\\\\Program Files\\\\Android\\\\Android Studio\\\\bin\\\\studio.exe" get Version').then((function(l){return l.replace(/(\r\n|\n|\r)/gm,"")})),a.run('type "C:\\\\Program Files\\\\Android\\\\Android Studio\\\\build.txt"').then((function(l){return l.replace(/(\r\n|\n|\r)/gm,"")}))]).then((function(l){return`${l[0]} ${l[1]}`.trim()||a.NotFound})));return c.then((function(l){return a.determineFound("Android Studio",l)}))},getAtomInfo:function(){return a.log("trace","getAtomInfo"),Promise.all([a.getDarwinApplicationVersion(a.ideBundleIdentifiers.Atom),"N/A"]).then((function(c){return a.determineFound("Atom",c[0],c[1])}))},getEmacsInfo:function(){return a.log("trace","getEmacsInfo"),a.isMacOS||a.isLinux?Promise.all([a.run("emacs --version").then(a.findVersion),a.run("which emacs")]).then((function(c){return a.determineFound("Emacs",c[0],c[1])})):Promise.resolve(["Emacs","N/A"])},getIntelliJInfo:function(){return a.log("trace","getIntelliJInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.IntelliJ).then((function(c){return a.determineFound("IntelliJ",c)}))},getNanoInfo:function(){return a.log("trace","getNanoInfo"),a.isLinux?Promise.all([a.run("nano --version").then(a.findVersion),a.run("which nano")]).then((function(c){return a.determineFound("Nano",c[0],c[1])})):Promise.resolve(["Nano","N/A"])},getNvimInfo:function(){return a.log("trace","getNvimInfo"),a.isMacOS||a.isLinux?Promise.all([a.run("nvim --version").then(a.findVersion),a.run("which nvim")]).then((function(c){return a.determineFound("Nvim",c[0],c[1])})):Promise.resolve(["Vim","N/A"])},getPhpStormInfo:function(){return a.log("trace","getPhpStormInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.PhpStorm).then((function(c){return a.determineFound("PhpStorm",c)}))},getSublimeTextInfo:function(){return a.log("trace","getSublimeTextInfo"),Promise.all([a.run("subl --version").then((function(c){return a.findVersion(c,/\d+/)})),a.which("subl")]).then((function(c){return c[0]===""&&a.isMacOS?(a.log("trace","getSublimeTextInfo using plist"),Promise.all([a.getDarwinApplicationVersion(a.ideBundleIdentifiers["Sublime Text"]),"N/A"])):c})).then((function(c){return a.determineFound("Sublime Text",c[0],c[1])}))},getVimInfo:function(){return a.log("trace","getVimInfo"),a.isMacOS||a.isLinux?Promise.all([a.run("vim --version").then(a.findVersion),a.run("which vim")]).then((function(c){return a.determineFound("Vim",c[0],c[1])})):Promise.resolve(["Vim","N/A"])},getVSCodeInfo:function(){return a.log("trace","getVSCodeInfo"),Promise.all([a.run("code --version").then(a.findVersion),a.which("code")]).then((function(c){return a.determineFound("VSCode",c[0],c[1])}))},getVisualStudioInfo:function(){return a.log("trace","getVisualStudioInfo"),a.isWindows?a.run(`"${process.env["ProgramFiles(x86)"]}/Microsoft Visual Studio/Installer/vswhere.exe" -format json -prerelease`).then((function(c){var u=JSON.parse(c).map((function(l){return{Version:l.installationVersion,DisplayName:l.displayName}}));return a.determineFound("Visual Studio",u.map((function(l){return`${l.Version} (${l.DisplayName})`})))})).catch((function(){return Promise.resolve(["Visual Studio",a.NotFound])})):Promise.resolve(["Visual Studio",a.NA])},getWebStormInfo:function(){return a.log("trace","getWebStormInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.WebStorm).then((function(c){return a.determineFound("WebStorm",c)}))},getXcodeInfo:function(){return a.log("trace","getXcodeInfo"),a.isMacOS?Promise.all([a.which("xcodebuild").then((function(c){return a.run(c+" -version")})).then((function(c){return`${a.findVersion(c)}/${c.split("Build version ")[1]}`})),a.which("xcodebuild")]).then((function(c){return a.determineFound("Xcode",c[0],c[1])})):Promise.resolve(["Xcode","N/A"])}}},9892:(n,s,i)=>{"use strict";function o(T,I,v){return I in T?Object.defineProperty(T,I,{value:v,enumerable:!0,configurable:!0,writable:!0}):T[I]=v,T}i(5584);var a=i(6304),c=i(224),u=i(6732),l=i(2524),f=i(6620),p=i(3224),d=i(6436),m=i(760),g=i(2060),h=i(7508),E=i(9284),_=i(8144),S=i(5882),y=i(9676);n.exports=Object.assign({},c,a,(function(T){for(var I=1;I<arguments.length;I++){var v=arguments[I]!=null?arguments[I]:{},x=Object.keys(v);typeof Object.getOwnPropertySymbols=="function"&&(x=x.concat(Object.getOwnPropertySymbols(v).filter((function(A){return Object.getOwnPropertyDescriptor(v,A).enumerable})))),x.forEach((function(A){o(T,A,v[A])}))}return T})({},u,l,f,p,d,m,g,h,E,_,S,y))},6436:(n,s,i)=>{"use strict";i(5888);var o=i(224);n.exports={getBashInfo:function(){return o.log("trace","getBashInfo"),Promise.all([o.run("bash --version").then(o.findVersion),o.which("bash")]).then((function(a){return o.determineFound("Bash",a[0],a[1])}))},getElixirInfo:function(){return o.log("trace","getElixirInfo"),Promise.all([o.run("elixir --version").then((function(a){return o.findVersion(a,/[Elixir]+\s([\d+.[\d+|.]+)/,1)})),o.which("elixir")]).then((function(a){return Promise.resolve(o.determineFound("Elixir",a[0],a[1]))}))},getErlangInfo:function(){return o.log("trace","getErlangInfo"),Promise.all([o.run(`erl -eval "{ok, Version} = file:read_file(filename:join([code:root_dir(), 'releases', erlang:system_info(otp_release), 'OTP_VERSION'])), io:fwrite(Version), halt()." -noshell`).then(o.findVersion),o.which("erl")]).then((function(a){return Promise.resolve(o.determineFound("Erlang",a[0],a[1]))}))},getGoInfo:function(){return o.log("trace","getGoInfo"),Promise.all([o.run("go version").then(o.findVersion),o.which("go")]).then((function(a){return o.determineFound("Go",a[0],a[1])}))},getJavaInfo:function(){return o.log("trace","getJavaInfo"),Promise.all([o.run("javac -version",{unify:!0}).then((function(a){return o.findVersion(a,/\d+\.[\w+|.|_|-]+/)})),o.run("which javac")]).then((function(a){return o.determineFound("Java",a[0],a[1])}))},getPerlInfo:function(){return o.log("trace","getPerlInfo"),Promise.all([o.run("perl -v").then(o.findVersion),o.which("perl")]).then((function(a){return o.determineFound("Perl",a[0],a[1])}))},getPHPInfo:function(){return o.log("trace","getPHPInfo"),Promise.all([o.run("php -v").then(o.findVersion),o.which("php")]).then((function(a){return o.determineFound("PHP",a[0],a[1])}))},getProtocInfo:function(){return o.log("trace","getProtocInfo"),Promise.all([o.run("protoc --version").then(o.findVersion),o.run("which protoc")]).then((function(a){return o.determineFound("Protoc",a[0],a[1])}))},getPythonInfo:function(){return o.log("trace","getPythonInfo"),Promise.all([o.run("python -V 2>&1").then(o.findVersion),o.run("which python")]).then((function(a){return o.determineFound("Python",a[0],a[1])}))},getPython3Info:function(){return o.log("trace","getPython3Info"),Promise.all([o.run("python3 -V 2>&1").then(o.findVersion),o.run("which python3")]).then((function(a){return o.determineFound("Python3",a[0],a[1])}))},getRInfo:function(){return o.log("trace","getRInfo"),Promise.all([o.run("R --version",{unify:!0}).then(o.findVersion),o.which("R")]).then((function(a){return o.determineFound("R",a[0],a[1])}))},getRubyInfo:function(){return o.log("trace","getRubyInfo"),Promise.all([o.run("ruby -v").then(o.findVersion),o.which("ruby")]).then((function(a){return o.determineFound("Ruby",a[0],a[1])}))},getRustInfo:function(){return o.log("trace","getRustInfo"),Promise.all([o.run("rustc --version").then(o.findVersion),o.run("which rustc")]).then((function(a){return o.determineFound("Rust",a[0],a[1])}))},getScalaInfo:function(){return o.log("trace","getScalaInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("scalac -version").then(o.findVersion),o.run("which scalac")]).then((function(a){return o.determineFound("Scala",a[0],a[1])})):Promise.resolve(["Scala","N/A"])}}},760:(n,s,i)=>{"use strict";i(5888);var o=i(224);n.exports={getAptInfo:function(){return o.log("trace","getAptInfo"),o.isLinux?Promise.all([o.run("apt --version").then(o.findVersion),o.which("apt")]).then((function(a){return o.determineFound("Apt",a[0],a[1])})):Promise.all(["Apt","N/A"])},getCargoInfo:function(){return o.log("trace","getCargoInfo"),Promise.all([o.run("cargo --version").then(o.findVersion),o.which("cargo").then(o.condensePath)]).then((function(a){return o.determineFound("Cargo",a[0],a[1])}))},getCocoaPodsInfo:function(){return o.log("trace","getCocoaPodsInfo"),o.isMacOS?Promise.all([o.run("pod --version").then(o.findVersion),o.which("pod")]).then((function(a){return o.determineFound("CocoaPods",a[0],a[1])})):Promise.all(["CocoaPods","N/A"])},getComposerInfo:function(){return o.log("trace","getComposerInfo"),Promise.all([o.run("composer --version").then(o.findVersion),o.which("composer").then(o.condensePath)]).then((function(a){return o.determineFound("Composer",a[0],a[1])}))},getGradleInfo:function(){return o.log("trace","getGradleInfo"),Promise.all([o.run("gradle --version").then(o.findVersion),o.which("gradle").then(o.condensePath)]).then((function(a){return o.determineFound("Gradle",a[0],a[1])}))},getHomebrewInfo:function(){return o.log("trace","getHomebrewInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("brew --version").then(o.findVersion),o.which("brew")]).then((function(a){return o.determineFound("Homebrew",a[0],a[1])})):Promise.all(["Homebrew","N/A"])},getMavenInfo:function(){return o.log("trace","getMavenInfo"),Promise.all([o.run("mvn --version").then(o.findVersion),o.which("mvn").then(o.condensePath)]).then((function(a){return o.determineFound("Maven",a[0],a[1])}))},getpip2Info:function(){return o.log("trace","getpip2Info"),Promise.all([o.run("pip2 --version").then(o.findVersion),o.which("pip2").then(o.condensePath)]).then((function(a){return o.determineFound("pip2",a[0],a[1])}))},getpip3Info:function(){return o.log("trace","getpip3Info"),Promise.all([o.run("pip3 --version").then(o.findVersion),o.which("pip3").then(o.condensePath)]).then((function(a){return o.determineFound("pip3",a[0],a[1])}))},getRubyGemsInfo:function(){return o.log("trace","getRubyGemsInfo"),Promise.all([o.run("gem --version").then(o.findVersion),o.which("gem")]).then((function(a){return o.determineFound("RubyGems",a[0],a[1])}))},getYumInfo:function(){return o.log("trace","getYumInfo"),o.isLinux?Promise.all([o.run("yum --version").then(o.findVersion),o.which("yum")]).then((function(a){return o.determineFound("Yum",a[0],a[1])})):Promise.all(["Yum","N/A"])}}},2060:(n,s,i)=>{"use strict";i(5888);var o=i(224),a=i(7072);n.exports={getYarnWorkspacesInfo:function(){return o.log("trace","getYarnWorkspacesInfo"),Promise.all([o.run("yarn -v"),o.getPackageJsonByPath("package.json").then((function(c){return c&&"workspaces"in c}))]).then((function(c){var u="Yarn Workspaces";return c[0]&&c[1]?Promise.resolve([u,c[0]]):Promise.resolve([u,"Not Found"])}))},getLernaInfo:function(){return o.log("trace","getLernaInfo"),Promise.all([o.getPackageJsonByName("lerna").then((function(c){return c&&c.version})),o.fileExists(a.join(process.cwd(),"lerna.json"))]).then((function(c){var u="Lerna";return c[0]&&c[1]?Promise.resolve([u,c[0]]):Promise.resolve([u,"Not Found"])}))}}},7508:(n,s,i)=>{"use strict";i(4880),i(5888),i(3708);var o=i(2058),a=i(7072),c=i(224);n.exports={getAndroidSDKInfo:function(){return c.run("sdkmanager --list").then((function(u){return!u&&process.env.ANDROID_HOME?c.run(`${process.env.ANDROID_HOME}/tools/bin/sdkmanager --list`):u})).then((function(u){return!u&&process.env.ANDROID_HOME?c.run(`${process.env.ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --list`):u})).then((function(u){return!u&&c.isMacOS?c.run("~/Library/Android/sdk/tools/bin/sdkmanager --list"):u})).then((function(u){var l=c.parseSDKManagerOutput(u),f=function(d){var m,g=a.join(d,"source.properties");try{m=o.readFileSync(g,"utf8")}catch(S){if(S.code==="ENOENT")return;throw S}for(var h=m.split(`
176
- `),E=0;E<h.length;E+=1){var _=h[E].split("=");if(_.length===2&&_[0].trim()==="Pkg.Revision")return _[1].trim()}},p=process.env.ANDROID_NDK?f(process.env.ANDROID_NDK):process.env.ANDROID_NDK_HOME?f(process.env.ANDROID_NDK_HOME):process.env.ANDROID_HOME?f(a.join(process.env.ANDROID_HOME,"ndk-bundle")):void 0;return l.buildTools.length||l.apiLevels.length||l.systemImages.length||p?Promise.resolve(["Android SDK",{"API Levels":l.apiLevels||c.NotFound,"Build Tools":l.buildTools||c.NotFound,"System Images":l.systemImages||c.NotFound,"Android NDK":p||c.NotFound}]):Promise.resolve(["Android SDK",c.NotFound])}))},getiOSSDKInfo:function(){return c.isMacOS?c.run("xcodebuild -showsdks").then((function(u){return u.match(/[\w]+\s[\d|.]+/g)})).then(c.uniq).then((function(u){return u.length?["iOS SDK",{Platforms:u}]:["iOS SDK",c.NotFound]})):Promise.resolve(["iOS SDK","N/A"])},getWindowsSDKInfo:function(){if(c.log("trace","getWindowsSDKInfo"),c.isWindows){var u=c.NotFound;return c.run("reg query HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppModelUnlock").then((function(l){u=l.split(/[\r\n]/g).slice(1).filter((function(p){return p!==""})).reduce((function(p,d){var m=d.match(/[^\s]+/g);return m[2]!=="0x0"&&m[2]!=="0x1"||(m[2]=m[2]==="0x1"?"Enabled":"Disabled"),p[m[0]]=m[2],p}),{}),Object.keys(u).length===0&&(u=c.NotFound);try{var f=o.readdirSync(`${process.env["ProgramFiles(x86)"]}/Windows Kits/10/Platforms/UAP`);u.Versions=f}catch{}return Promise.resolve(["Windows SDK",u])}))}return Promise.resolve(["Windows SDK",c.NA])}}},9284:(n,s,i)=>{"use strict";i(5888);var o=i(224);n.exports={getApacheInfo:function(){return o.log("trace","getApacheInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("apachectl -v").then(o.findVersion),o.run("which apachectl")]).then((function(a){return o.determineFound("Apache",a[0],a[1])})):Promise.resolve(["Apache","N/A"])},getNginxInfo:function(){return o.log("trace","getNginxInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("nginx -v 2>&1").then(o.findVersion),o.run("which nginx")]).then((function(a){return o.determineFound("Nginx",a[0],a[1])})):Promise.resolve(["Nginx","N/A"])}}},8144:(n,s,i)=>{"use strict";i(3708),i(4880),i(5888);var o=i(2288),a=i(224),c=i(8558);n.exports={getContainerInfo:function(){return a.log("trace","getContainerInfo"),a.isLinux?Promise.all([a.fileExists("/.dockerenv"),a.readFile("/proc/self/cgroup")]).then((function(u){return a.log("trace","getContainerInfoThen",u),Promise.resolve(["Container",u[0]||u[1]?"Yes":"N/A"])})).catch((function(u){return a.log("trace","getContainerInfoCatch",u)})):Promise.resolve(["Container","N/A"])},getCPUInfo:function(){var u;a.log("trace","getCPUInfo");try{var l=c.cpus();u="("+l.length+") "+c.arch()+" "+l[0].model}catch{u="Unknown"}return Promise.all(["CPU",u])},getMemoryInfo:function(){return a.log("trace","getMemoryInfo"),Promise.all(["Memory",`${a.toReadableBytes(c.freemem())} / ${a.toReadableBytes(c.totalmem())}`])},getOSInfo:function(){var u,l;if(a.log("trace","getOSInfo"),a.isMacOS)u=a.run("sw_vers -productVersion ");else if(a.isLinux)u=a.run("cat /etc/os-release").then((function(p){var d=(p||"").match(/NAME="(.+)"/)||"",m=(p||"").match(/VERSION="(.+)"/)||["",""],g=m!==null?m[1]:"";return`${d[1]} ${g}`.trim()||""}));else if(a.isWindows){u=Promise.resolve(c.release());var f=c.release().split(".");f[0]==="10"&&f[1]==="0"&&f[2]>=22e3&&(l="Windows 11")}else u=Promise.resolve();return u.then((function(p){return l=l||o(c.platform(),c.release()),p&&(l+=` ${p}`),["OS",l]}))},getShellInfo:function(){if(a.log("trace","getShellInfo",process.env),a.isMacOS||a.isLinux){var u=process.env.SHELL||a.runSync("getent passwd $LOGNAME | cut -d: -f7 | head -1"),l=`${u} --version 2>&1`;return u.match("/bin/ash")&&(l=`${u} --help 2>&1`),Promise.all([a.run(l).then(a.findVersion),a.which(u)]).then((function(f){return a.determineFound("Shell",f[0]||"Unknown",f[1])}))}return Promise.resolve(["Shell","N/A"])},getGLibcInfo:function(){return a.log("trace","getGLibc"),a.isLinux?Promise.all([a.run("ldd --version").then(a.findVersion)]).then((function(u){return a.determineFound("GLibc",u[0]||"Unknown")})):Promise.resolve(["GLibc","N/A"])}}},5882:(n,s,i)=>{"use strict";i(5888);var o=i(224);n.exports={getBazelInfo:function(){return o.log("trace","getBazelInfo"),Promise.all([o.run("bazel --version").then(o.findVersion),o.run("which bazel")]).then((function(a){return o.determineFound("Bazel",a[0],a[1])}))},getCMakeInfo:function(){return o.log("trace","getCMakeInfo"),Promise.all([o.run("cmake --version").then(o.findVersion),o.run("which cmake")]).then((function(a){return o.determineFound("CMake",a[0],a[1])}))},getGCCInfo:function(){return o.log("trace","getGCCInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("gcc -v 2>&1").then(o.findVersion),o.run("which gcc")]).then((function(a){return o.determineFound("GCC",a[0],a[1])})):Promise.resolve(["GCC","N/A"])},getClangInfo:function(){return o.log("trace","getClangInfo"),Promise.all([o.run("clang --version").then(o.findVersion),o.which("clang")]).then((function(a){return o.determineFound("Clang",a[0],a[1])}))},getGitInfo:function(){return o.log("trace","getGitInfo"),Promise.all([o.run("git --version").then(o.findVersion),o.run("which git")]).then((function(a){return o.determineFound("Git",a[0],a[1])}))},getMakeInfo:function(){return o.log("trace","getMakeInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("make --version").then(o.findVersion),o.run("which make")]).then((function(a){return o.determineFound("Make",a[0],a[1])})):Promise.resolve(["Make","N/A"])},getNinjaInfo:function(){return o.log("trace","getNinjaInfo"),Promise.all([o.run("ninja --version").then(o.findVersion),o.run("which ninja")]).then((function(a){return o.determineFound("Ninja",a[0],a[1])}))},getMercurialInfo:function(){return o.log("trace","getMercurialInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("hg --version").then(o.findVersion),o.run("which hg")]).then((function(a){return o.determineFound("Mercurial",a[0],a[1])})):Promise.resolve(["Mercurial","N/A"])},getSubversionInfo:function(){return o.log("trace","getSubversionInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("svn --version").then(o.findVersion),o.run("which svn")]).then((function(a){return o.determineFound("Subversion",a[0],a[1])})):Promise.resolve(["Subversion","N/A"])},getFFmpegInfo:function(){return o.log("trace","getFFmpegInfo"),Promise.all([o.run("ffmpeg -version").then(o.findVersion),o.which("ffmpeg")]).then((function(a){return o.determineFound("FFmpeg",a[0],a[1])}))},getCurlInfo:function(){return o.log("trace","getCurlInfo"),Promise.all([o.run("curl --version").then(o.findVersion),o.which("curl")]).then((function(a){return o.determineFound("Curl",a[0],a[1])}))},getOpenSSLInfo:function(){return o.log("trace","getOpenSSLInfo"),Promise.all([o.run("openssl version").then(o.findVersion),o.which("openssl")]).then((function(a){return o.determineFound("OpenSSL",a[0],a[1])}))}}},9676:(n,s,i)=>{"use strict";i(5888);var o=i(224);n.exports={getDockerInfo:function(){return o.log("trace","getDockerInfo"),Promise.all([o.run("docker --version").then(o.findVersion),o.which("docker")]).then((function(a){return o.determineFound("Docker",a[0],a[1])}))},getDockerComposeInfo:function(){return o.log("trace","getDockerComposeInfo"),Promise.all([o.run("docker-compose --version").then(o.findVersion),o.which("docker-compose")]).then((function(a){return o.determineFound("Docker Compose",a[0],a[1])}))},getParallelsInfo:function(){return o.log("trace","getParallelsInfo"),Promise.all([o.run("prlctl --version").then(o.findVersion),o.which("prlctl")]).then((function(a){return o.determineFound("Parallels",a[0],a[1])}))},getPodmanInfo:function(){return o.log("trace","getPodmanInfo"),Promise.all([o.run("podman --version").then(o.findVersion),o.which("podman")]).then((function(a){return o.determineFound("Podman",a[0],a[1])}))},getVirtualBoxInfo:function(){return o.log("trace","getVirtualBoxInfo"),Promise.all([o.run("vboxmanage --version").then(o.findVersion),o.which("vboxmanage")]).then((function(a){return o.determineFound("VirtualBox",a[0],a[1])}))},getVMwareFusionInfo:function(){return o.log("trace","getVMwareFusionInfo"),o.getDarwinApplicationVersion("com.vmware.fusion").then((function(a){return o.determineFound("VMWare Fusion",a,"N/A")}))}}},6032:n=>{"use strict";n.exports={androidSystemImages:/system-images;([\S \t]+)/g,androidAPILevels:/platforms;android-(\d+)[\S\s]/g,androidBuildTools:/build-tools;([\d|.]+)[\S\s]/g}},6304:(n,s,i)=>{"use strict";i(4880),i(5584),i(5888),i(7360),i(3708);var o=i(808),a=i(7072),c=i(224),u=function(l){var f=l.split("node_modules"+a.sep),p=f[f.length-1];return p.charAt(0)==="@"?[p.split(a.sep)[0],p.split(a.sep)[1]].join("/"):p.split(a.sep)[0]};n.exports={getnpmPackages:function(l,f){c.log("trace","getnpmPackages"),f||(f={});var p=null,d=null;return typeof l=="string"&&(l.includes("*")||l.includes("?")||l.includes("+")||l.includes("!")?p=l:l=l.split(",")),Promise.all(["npmPackages",c.getPackageJsonByPath("package.json").then((function(m){return Object.assign({},(m||{}).devDependencies||{},(m||{}).dependencies||{})})).then((function(m){return d=m,f.fullTree||f.duplicates||p?c.getAllPackageJsonPaths(p):Promise.resolve(Object.keys(m||[]).map((function(g){return a.join("node_modules",g,"package.json")})))})).then((function(m){return!p&&typeof l!="boolean"||f.fullTree?Array.isArray(l)?Promise.resolve((m||[]).filter((function(g){return l.includes(u(g))}))):Promise.resolve(m):Promise.resolve((m||[]).filter((function(g){return Object.keys(d||[]).includes(u(g))})))})).then((function(m){return Promise.all([m,Promise.all(m.map((function(g){return c.getPackageJsonByPath(g)})))])})).then((function(m){var g=m[0],h=m[1].reduce((function(E,_,S){return _&&_.name&&(E[_.name]||(E[_.name]={}),f.duplicates&&(E[_.name].duplicates=c.uniq((E[_.name].duplicates||[]).concat(_.version))),(g[S].match(/node_modules/g)||[]).length===1&&(E[_.name].installed=_.version)),E}),{});return Object.keys(h).forEach((function(E){h[E].duplicates&&h[E].installed&&(h[E].duplicates=h[E].duplicates.filter((function(_){return _!==h[E].installed}))),d[E]&&(h[E].wanted=d[E])})),h})).then((function(m){return f.showNotFound&&Array.isArray(l)&&l.forEach((function(g){m[g]||(m[g]="Not Found")})),m})).then((function(m){return c.sortObject(m)}))])},getnpmGlobalPackages:function(l,f){c.log("trace","getnpmGlobalPackages",l);var p=null;return typeof l=="string"?l.includes("*")||l.includes("?")||l.includes("+")||l.includes("!")?p=l:l=l.split(","):Array.isArray(l)||(l=!0),Promise.all(["npmGlobalPackages",c.run("npm get prefix --global").then((function(d){return new Promise((function(m,g){return o(a.join(d,c.isWindows?"":"lib","node_modules",p||"{*,@*/*}","package.json"),(function(h,E){h||m(E),g(h)}))}))})).then((function(d){return Promise.all(d.filter((function(m){return typeof l=="boolean"||p!==null||l.includes(u(m))})).map((function(m){return c.getPackageJsonByFullPath(m)})))})).then((function(d){return d.reduce((function(m,g){return g?Object.assign(m,{[g.name]:g.version}):m}),{})})).then((function(d){return f.showNotFound&&Array.isArray(l)&&l.forEach((function(m){d[m]||(d[m]="Not Found")})),d}))])}}},5088:n=>{"use strict";n.exports={defaults:{System:["OS","CPU","Memory","Container","Shell"],Binaries:["Node","Yarn","npm","pnpm","bun","Watchman"],Managers:["Apt","Cargo","CocoaPods","Composer","Gradle","Homebrew","Maven","pip2","pip3","RubyGems","Yum"],Utilities:["Bazel","CMake","Make","GCC","Git","Clang","Ninja","Mercurial","Subversion","FFmpeg","Curl","OpenSSL"],Servers:["Apache","Nginx"],Virtualization:["Docker","Docker Compose","Parallels","VirtualBox","VMware Fusion"],SDKs:["iOS SDK","Android SDK","Windows SDK"],IDEs:["Android Studio","Atom","Emacs","IntelliJ","NVim","Nano","PhpStorm","Sublime Text","VSCode","Visual Studio","Vim","WebStorm","Xcode"],Languages:["Bash","Go","Elixir","Erlang","Java","Perl","PHP","Protoc","Python","Python3","R","Ruby","Rust","Scala"],Databases:["MongoDB","MySQL","PostgreSQL","SQLite"],Browsers:["Brave Browser","Chrome","Chrome Canary","Chromium","Edge","Firefox","Firefox Developer Edition","Firefox Nightly","Internet Explorer","Safari","Safari Technology Preview"],Monorepos:["Yarn Workspaces","Lerna"],npmPackages:null,npmGlobalPackages:null},cssnano:{System:["OS","CPU"],Binaries:["Node","Yarn","npm","pnpm","bun"],npmPackages:["cssnano","postcss"],options:{duplicates:!0}},jest:{System:["OS","CPU"],Binaries:["Node","Yarn","npm","pnpm","bun"],npmPackages:["jest"]},"react-native":{System:["OS","CPU"],Binaries:["Node","Yarn","npm","pnpm","bun","Watchman"],SDKs:["iOS SDK","Android SDK","Windows SDK"],IDEs:["Android Studio","Xcode","Visual Studio"],npmPackages:["react","react-native"],npmGlobalPackages:["react-native-cli"]},nyc:{System:["OS","CPU","Memory"],Binaries:["Node","Yarn","npm","pnpm","bun"],npmPackages:"/**/{*babel*,@babel/*/,*istanbul*,nyc,source-map-support,typescript,ts-node}"},webpack:{System:["OS","CPU"],Binaries:["Node","Yarn","npm","pnpm","bun"],npmPackages:"*webpack*",npmGlobalPackages:["webpack","webpack-cli"]},"styled-components":{System:["OS","CPU"],Binaries:["Node","Yarn","npm","pnpm","bun"],Browsers:["Chrome","Firefox","Safari"],npmPackages:"*styled-components*"},"create-react-app":{System:["OS","CPU"],Binaries:["Node","npm","Yarn","pnpm","bun"],Browsers:["Chrome","Edge","Internet Explorer","Firefox","Safari"],npmPackages:["react","react-dom","react-scripts"],npmGlobalPackages:["create-react-app"],options:{duplicates:!0,showNotFound:!0}},apollo:{System:["OS"],Binaries:["Node","npm","Yarn","pnpm","bun"],Browsers:["Chrome","Edge","Firefox","Safari"],npmPackages:"{*apollo*,@apollo/*}",npmGlobalPackages:"{*apollo*,@apollo/*}"},"react-native-web":{System:["OS","CPU"],Binaries:["Node","npm","Yarn","pnpm","bun"],Browsers:["Chrome","Edge","Internet Explorer","Firefox","Safari"],npmPackages:["react","react-native-web"],options:{showNotFound:!0}},babel:{System:["OS"],Binaries:["Node","npm","Yarn","pnpm","bun"],Monorepos:["Yarn Workspaces","Lerna"],npmPackages:"{*babel*,@babel/*,eslint,webpack,create-react-app,react-native,lerna,jest,next,rollup}"},playwright:{System:["OS","CPU","Memory","Container"],Binaries:["Node","Yarn","npm","pnpm","bun"],Languages:["Bash"],IDEs:["VSCode"],npmPackages:"{playwright*,@playwright/*}"}}},224:(n,s,i)=>{"use strict";i(4880),i(4260),i(5584),i(7276),i(4228),i(3708),i(8412),i(5308),i(6568),i(5888);var o=i(7072),a=i(2058),c=i(8558),u=i(4368),l=i(8460),f=i(808),p=i(6032),d=function(T){var I=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).unify,v=I!==void 0&&I;return new Promise((function(x){u.exec(T,{stdio:[0,"pipe","ignore"]},(function(A,D,P){var F;F=v?D.toString()+P.toString():D.toString(),x((A?"":F).trim())}))}))},m=function(T){var I=Object.values(Array.prototype.slice.call(arguments).slice(1));(process.env.ENVINFO_DEBUG||"").toLowerCase()===T&&console.log(T,JSON.stringify(I))},g=function(T){return new Promise((function(I){a.readFile(T,"utf8",(function(v,x){return I(x||null)}))}))},h=function(T){return g(T).then((function(I){return I?JSON.parse(I):null}))},E=/\d+\.[\d+|.]+/g,_=function(T){m("trace","findDarwinApplication",T);var I=`mdfind "kMDItemCFBundleIdentifier=='${T}'"`;return m("trace",I),d(I).then((function(v){return v.replace(/(\s)/g,"\\ ")}))},S=function(T,I){var v=(I||["CFBundleShortVersionString"]).map((function(x){return"-c Print:"+x}));return["/usr/libexec/PlistBuddy"].concat(v).concat([T]).join(" ")},y=function(T,I){for(var v=[],x=null;(x=T.exec(I))!==null;)v.push(x);return v};n.exports={run:d,log:m,fileExists:function(T){return new Promise((function(I){a.stat(T,(function(v){return I(v?null:T)}))}))},windowsExeExists:function(T){return new Promise((function(I){var v;a.access(v=o.join(process.env.ProgramFiles,`${T}`),a.constants.R_OK,(function(x){x?a.access(v=o.join(process.env["ProgramFiles(x86)"],`${T}`),a.constants.X_OK,(function(A){I(A?null:v)})):I(v)}))}))},readFile:g,requireJson:h,versionRegex:E,findDarwinApplication:_,generatePlistBuddyCommand:S,matchAll:y,parseSDKManagerOutput:function(T){var I=T.split("Available")[0];return{apiLevels:y(p.androidAPILevels,I).map((function(v){return v[1]})),buildTools:y(p.androidBuildTools,I).map((function(v){return v[1]})),systemImages:y(p.androidSystemImages,I).map((function(v){return v[1].split("|").map((function(x){return x.trim()}))})).map((function(v){return v[0].split(";")[0]+" | "+v[2].split(" System Image")[0]}))}},isLinux:process.platform==="linux",isMacOS:process.platform==="darwin",NA:"N/A",NotFound:"Not Found",isWindows:process.platform.startsWith("win"),isObject:function(T){return typeof T=="object"&&!Array.isArray(T)},noop:function(T){return T},pipe:function(T){return function(I){return T.reduce((function(v,x){return x(v)}),I)}},browserBundleIdentifiers:{"Brave Browser":"com.brave.Browser",Chrome:"com.google.Chrome","Chrome Canary":"com.google.Chrome.canary",Firefox:"org.mozilla.firefox","Firefox Developer Edition":"org.mozilla.firefoxdeveloperedition","Firefox Nightly":"org.mozilla.nightly","Microsoft Edge":"com.microsoft.edgemac",Safari:"com.apple.Safari","Safari Technology Preview":"com.apple.SafariTechnologyPreview"},ideBundleIdentifiers:{Atom:"com.github.atom",IntelliJ:"com.jetbrains.intellij",PhpStorm:"com.jetbrains.PhpStorm","Sublime Text":"com.sublimetext.3",WebStorm:"com.jetbrains.WebStorm"},runSync:function(T){return(u.execSync(T,{stdio:[0,"pipe","ignore"]}).toString()||"").trim()},which:function(T){return new Promise((function(I){return l(T,(function(v,x){return I(x)}))}))},getDarwinApplicationVersion:function(T){var I;return m("trace","getDarwinApplicationVersion",T),I=process.platform!=="darwin"?"N/A":_(T).then((function(v){return d(S(o.join(v,"Contents","Info.plist"),["CFBundleShortVersionString"]))})),Promise.resolve(I)},uniq:function(T){return Array.from(new Set(T))},toReadableBytes:function(T){var I=Math.floor(Math.log(T)/Math.log(1024));return T?(T/Math.pow(1024,I)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB"][I]:"0 Bytes"},omit:function(T,I){return Object.keys(T).filter((function(v){return I.indexOf(v)<0})).reduce((function(v,x){return Object.assign(v,{[x]:T[x]})}),{})},pick:function(T,I){return Object.keys(T).filter((function(v){return I.indexOf(v)>=0})).reduce((function(v,x){return Object.assign(v,{[x]:T[x]})}),{})},getPackageJsonByName:function(T){return h(o.join(process.cwd(),"node_modules",T,"package.json"))},getPackageJsonByPath:function(T){return h(o.join(process.cwd(),T))},getPackageJsonByFullPath:function(T){return m("trace","getPackageJsonByFullPath",T),h(T)},getAllPackageJsonPaths:function(T){return m("trace","getAllPackageJsonPaths",T),new Promise((function(I){return f(T?o.join("node_modules",T,"package.json"):o.join("node_modules","**","package.json"),(function(v,x){return I(x.map(o.normalize)||[])}))}))},sortObject:function(T){return Object.keys(T).sort().reduce((function(I,v){return I[v]=T[v],I}),{})},findVersion:function(T,I,v){m("trace","findVersion",T,I,v);var x=v||0,A=I||E,D=T.match(A);return D?D[x]:T},condensePath:function(T){return(T||"").replace(c.homedir(),"~")},determineFound:function(T,I,v){return m("trace","determineFound",T,I,v),I==="N/A"?Promise.resolve([T,"N/A"]):I&&Object.keys(I).length!==0?v?Promise.resolve([T,I,v]):Promise.resolve([T,I]):Promise.resolve([T,"Not Found"])}}},9016:n=>{"use strict";function s(a,c,u){a instanceof RegExp&&(a=i(a,u)),c instanceof RegExp&&(c=i(c,u));var l=o(a,c,u);return l&&{start:l[0],end:l[1],pre:u.slice(0,l[0]),body:u.slice(l[0]+a.length,l[1]),post:u.slice(l[1]+c.length)}}function i(a,c){var u=c.match(a);return u?u[0]:null}function o(a,c,u){var l,f,p,d,m,g=u.indexOf(a),h=u.indexOf(c,g+1),E=g;if(g>=0&&h>0){for(l=[],p=u.length;E>=0&&!m;)E==g?(l.push(E),g=u.indexOf(a,E+1)):l.length==1?m=[l.pop(),h]:((f=l.pop())<p&&(p=f,d=h),h=u.indexOf(c,E+1)),E=g<h&&g>=0?g:h;l.length&&(m=[p,d])}return m}n.exports=s,s.range=o},1620:(n,s,i)=>{var o=i(6596),a=i(9016);n.exports=function(T){return T?(T.substr(0,2)==="{}"&&(T="\\{\\}"+T.substr(2)),y((function(I){return I.split("\\\\").join(c).split("\\{").join(u).split("\\}").join(l).split("\\,").join(f).split("\\.").join(p)})(T),!0).map(m)):[]};var c="\0SLASH"+Math.random()+"\0",u="\0OPEN"+Math.random()+"\0",l="\0CLOSE"+Math.random()+"\0",f="\0COMMA"+Math.random()+"\0",p="\0PERIOD"+Math.random()+"\0";function d(T){return parseInt(T,10)==T?parseInt(T,10):T.charCodeAt(0)}function m(T){return T.split(c).join("\\").split(u).join("{").split(l).join("}").split(f).join(",").split(p).join(".")}function g(T){if(!T)return[""];var I=[],v=a("{","}",T);if(!v)return T.split(",");var x=v.pre,A=v.body,D=v.post,P=x.split(",");P[P.length-1]+="{"+A+"}";var F=g(D);return D.length&&(P[P.length-1]+=F.shift(),P.push.apply(P,F)),I.push.apply(I,P),I}function h(T){return"{"+T+"}"}function E(T){return/^-?0\d/.test(T)}function _(T,I){return T<=I}function S(T,I){return T>=I}function y(T,I){var v=[],x=a("{","}",T);if(!x||/\$$/.test(x.pre))return[T];var A,D=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(x.body),P=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(x.body),F=D||P,V=x.body.indexOf(",")>=0;if(!F&&!V)return x.post.match(/,.*\}/)?y(T=x.pre+"{"+x.body+l+x.post):[T];if(F)A=x.body.split(/\.\./);else if((A=g(x.body)).length===1&&(A=y(A[0],!1).map(h)).length===1)return(X=x.post.length?y(x.post,!1):[""]).map((function(oe){return x.pre+A[0]+oe}));var H,k=x.pre,X=x.post.length?y(x.post,!1):[""];if(F){var ee=d(A[0]),ne=d(A[1]),ie=Math.max(A[0].length,A[1].length),Ee=A.length==3?Math.abs(d(A[2])):1,K=_;ne<ee&&(Ee*=-1,K=S);var le=A.some(E);H=[];for(var de=ee;K(de,ne);de+=Ee){var q;if(P)(q=String.fromCharCode(de))==="\\"&&(q="");else if(q=String(de),le){var ke=ie-q.length;if(ke>0){var U=new Array(ke+1).join("0");q=de<0?"-"+U+q.slice(1):U+q}}H.push(q)}}else H=o(A,(function(oe){return y(oe,!1)}));for(var L=0;L<H.length;L++)for(var N=0;N<X.length;N++){var z=k+H[L]+X[N];(!I||F||z)&&v.push(z)}return v}},6596:n=>{n.exports=function(i,o){for(var a=[],c=0;c<i.length;c++){var u=o(i[c],c);s(u)?a.push.apply(a,u):a.push(u)}return a};var s=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"}},2016:n=>{n.exports=function(s){if(typeof s!="function")throw TypeError(s+" is not a function!");return s}},7384:(n,s,i)=>{var o=i(7096)("unscopables"),a=Array.prototype;a[o]==null&&i(2336)(a,o,{}),n.exports=function(c){a[o][c]=!0}},2388:n=>{n.exports=function(s,i,o,a){if(!(s instanceof i)||a!==void 0&&a in s)throw TypeError(o+": incorrect invocation!");return s}},3504:(n,s,i)=>{var o=i(3888);n.exports=function(a){if(!o(a))throw TypeError(a+" is not an object!");return a}},7504:(n,s,i)=>{var o=i(2780),a=i(3528),c=i(8508);n.exports=function(u){return function(l,f,p){var d,m=o(l),g=a(m.length),h=c(p,g);if(u&&f!=f){for(;g>h;)if((d=m[h++])!=d)return!0}else for(;g>h;h++)if((u||h in m)&&m[h]===f)return u||h||0;return!u&&-1}}},5848:(n,s,i)=>{var o=i(6924),a=i(7096)("toStringTag"),c=o((function(){return arguments})())=="Arguments";n.exports=function(u){var l,f,p;return u===void 0?"Undefined":u===null?"Null":typeof(f=(function(d,m){try{return d[m]}catch{}})(l=Object(u),a))=="string"?f:c?o(l):(p=o(l))=="Object"&&typeof l.callee=="function"?"Arguments":p}},6924:n=>{var s={}.toString;n.exports=function(i){return s.call(i).slice(8,-1)}},148:(n,s,i)=>{"use strict";var o=i(8520).f,a=i(3472),c=i(7704),u=i(800),l=i(2388),f=i(7228),p=i(6952),d=i(172),m=i(3384),g=i(1668),h=i(2020).fastKey,E=i(2772),_=g?"_s":"size",S=function(y,T){var I,v=h(T);if(v!=="F")return y._i[v];for(I=y._f;I;I=I.n)if(I.k==T)return I};n.exports={getConstructor:function(y,T,I,v){var x=y((function(A,D){l(A,x,T,"_i"),A._t=T,A._i=a(null),A._f=void 0,A._l=void 0,A[_]=0,D!=null&&f(D,I,A[v],A)}));return c(x.prototype,{clear:function(){for(var A=E(this,T),D=A._i,P=A._f;P;P=P.n)P.r=!0,P.p&&(P.p=P.p.n=void 0),delete D[P.i];A._f=A._l=void 0,A[_]=0},delete:function(A){var D=E(this,T),P=S(D,A);if(P){var F=P.n,V=P.p;delete D._i[P.i],P.r=!0,V&&(V.n=F),F&&(F.p=V),D._f==P&&(D._f=F),D._l==P&&(D._l=V),D[_]--}return!!P},forEach:function(A){E(this,T);for(var D,P=u(A,arguments.length>1?arguments[1]:void 0,3);D=D?D.n:this._f;)for(P(D.v,D.k,this);D&&D.r;)D=D.p},has:function(A){return!!S(E(this,T),A)}}),g&&o(x.prototype,"size",{get:function(){return E(this,T)[_]}}),x},def:function(y,T,I){var v,x,A=S(y,T);return A?A.v=I:(y._l=A={i:x=h(T,!0),k:T,v:I,p:v=y._l,n:void 0,r:!1},y._f||(y._f=A),v&&(v.n=A),y[_]++,x!=="F"&&(y._i[x]=A)),y},getEntry:S,setStrong:function(y,T,I){p(y,T,(function(v,x){this._t=E(v,T),this._k=x,this._l=void 0}),(function(){for(var v=this,x=v._k,A=v._l;A&&A.r;)A=A.p;return v._t&&(v._l=A=A?A.n:v._t._f)?d(0,x=="keys"?A.k:x=="values"?A.v:[A.k,A.v]):(v._t=void 0,d(1))}),I?"entries":"values",!I,!0),m(T)}}},9412:(n,s,i)=>{"use strict";var o=i(2804),a=i(7076),c=i(8868),u=i(7704),l=i(2020),f=i(7228),p=i(2388),d=i(3888),m=i(9316),g=i(8380),h=i(6256),E=i(2672);n.exports=function(_,S,y,T,I,v){var x=o[_],A=x,D=I?"set":"add",P=A&&A.prototype,F={},V=function(ie){var Ee=P[ie];c(P,ie,ie=="delete"||ie=="has"?function(K){return!(v&&!d(K))&&Ee.call(this,K===0?0:K)}:ie=="get"?function(K){return v&&!d(K)?void 0:Ee.call(this,K===0?0:K)}:ie=="add"?function(K){return Ee.call(this,K===0?0:K),this}:function(K,le){return Ee.call(this,K===0?0:K,le),this})};if(typeof A=="function"&&(v||P.forEach&&!m((function(){new A().entries().next()})))){var H=new A,k=H[D](v?{}:-0,1)!=H,X=m((function(){H.has(1)})),ee=g((function(ie){new A(ie)})),ne=!v&&m((function(){for(var ie=new A,Ee=5;Ee--;)ie[D](Ee,Ee);return!ie.has(-0)}));ee||((A=S((function(ie,Ee){p(ie,A,_);var K=E(new x,ie,A);return Ee!=null&&f(Ee,I,K[D],K),K}))).prototype=P,P.constructor=A),(X||ne)&&(V("delete"),V("has"),I&&V("get")),(ne||k)&&V(D),v&&P.clear&&delete P.clear}else A=T.getConstructor(S,_,I,D),u(A.prototype,y),l.NEED=!0;return h(A,_),F[_]=A,a(a.G+a.W+a.F*(A!=x),F),v||T.setStrong(A,_,I),A}},8432:n=>{var s=n.exports={version:"2.5.7"};typeof __e=="number"&&(__e=s)},2340:(n,s,i)=>{"use strict";var o=i(8520),a=i(8164);n.exports=function(c,u,l){u in c?o.f(c,u,a(0,l)):c[u]=l}},800:(n,s,i)=>{var o=i(2016);n.exports=function(a,c,u){if(o(a),c===void 0)return a;switch(u){case 1:return function(l){return a.call(c,l)};case 2:return function(l,f){return a.call(c,l,f)};case 3:return function(l,f,p){return a.call(c,l,f,p)}}return function(){return a.apply(c,arguments)}}},24:n=>{n.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},1668:(n,s,i)=>{n.exports=!i(9316)((function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}))},1300:(n,s,i)=>{var o=i(3888),a=i(2804).document,c=o(a)&&o(a.createElement);n.exports=function(u){return c?a.createElement(u):{}}},444:n=>{n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},7076:(n,s,i)=>{var o=i(2804),a=i(8432),c=i(2336),u=i(8868),l=i(800),f="prototype",p=function(d,m,g){var h,E,_,S,y=d&p.F,T=d&p.G,I=d&p.S,v=d&p.P,x=d&p.B,A=T?o:I?o[m]||(o[m]={}):(o[m]||{})[f],D=T?a:a[m]||(a[m]={}),P=D[f]||(D[f]={});for(h in T&&(g=m),g)_=((E=!y&&A&&A[h]!==void 0)?A:g)[h],S=x&&E?l(_,o):v&&typeof _=="function"?l(Function.call,_):_,A&&u(A,h,_,d&p.U),D[h]!=_&&c(D,h,S),v&&P[h]!=_&&(P[h]=_)};o.core=a,p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,n.exports=p},9316:n=>{n.exports=function(s){try{return!!s()}catch{return!0}}},4448:(n,s,i)=>{"use strict";var o=i(2336),a=i(8868),c=i(9316),u=i(24),l=i(7096);n.exports=function(f,p,d){var m=l(f),g=d(u,m,""[f]),h=g[0],E=g[1];c((function(){var _={};return _[m]=function(){return 7},""[f](_)!=7}))&&(a(String.prototype,f,h),o(RegExp.prototype,m,p==2?function(_,S){return E.call(_,this,S)}:function(_){return E.call(_,this)}))}},8068:(n,s,i)=>{"use strict";var o=i(3504);n.exports=function(){var a=o(this),c="";return a.global&&(c+="g"),a.ignoreCase&&(c+="i"),a.multiline&&(c+="m"),a.unicode&&(c+="u"),a.sticky&&(c+="y"),c}},7228:(n,s,i)=>{var o=i(800),a=i(2372),c=i(3164),u=i(3504),l=i(3528),f=i(2800),p={},d={},m=n.exports=function(g,h,E,_,S){var y,T,I,v,x=S?function(){return g}:f(g),A=o(E,_,h?2:1),D=0;if(typeof x!="function")throw TypeError(g+" is not iterable!");if(c(x)){for(y=l(g.length);y>D;D++)if((v=h?A(u(T=g[D])[0],T[1]):A(g[D]))===p||v===d)return v}else for(I=x.call(g);!(T=I.next()).done;)if((v=a(I,A,T.value,h))===p||v===d)return v};m.BREAK=p,m.RETURN=d},2804:n=>{var s=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=s)},9080:n=>{var s={}.hasOwnProperty;n.exports=function(i,o){return s.call(i,o)}},2336:(n,s,i)=>{var o=i(8520),a=i(8164);n.exports=i(1668)?function(c,u,l){return o.f(c,u,a(1,l))}:function(c,u,l){return c[u]=l,c}},4016:(n,s,i)=>{var o=i(2804).document;n.exports=o&&o.documentElement},5516:(n,s,i)=>{n.exports=!i(1668)&&!i(9316)((function(){return Object.defineProperty(i(1300)("div"),"a",{get:function(){return 7}}).a!=7}))},2672:(n,s,i)=>{var o=i(3888),a=i(5076).set;n.exports=function(c,u,l){var f,p=u.constructor;return p!==l&&typeof p=="function"&&(f=p.prototype)!==l.prototype&&o(f)&&a&&a(c,f),c}},5628:n=>{n.exports=function(s,i,o){var a=o===void 0;switch(i.length){case 0:return a?s():s.call(o);case 1:return a?s(i[0]):s.call(o,i[0]);case 2:return a?s(i[0],i[1]):s.call(o,i[0],i[1]);case 3:return a?s(i[0],i[1],i[2]):s.call(o,i[0],i[1],i[2]);case 4:return a?s(i[0],i[1],i[2],i[3]):s.call(o,i[0],i[1],i[2],i[3])}return s.apply(o,i)}},2936:(n,s,i)=>{var o=i(6924);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return o(a)=="String"?a.split(""):Object(a)}},3164:(n,s,i)=>{var o=i(2488),a=i(7096)("iterator"),c=Array.prototype;n.exports=function(u){return u!==void 0&&(o.Array===u||c[a]===u)}},3888:n=>{n.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},7760:(n,s,i)=>{var o=i(3888),a=i(6924),c=i(7096)("match");n.exports=function(u){var l;return o(u)&&((l=u[c])!==void 0?!!l:a(u)=="RegExp")}},2372:(n,s,i)=>{var o=i(3504);n.exports=function(a,c,u,l){try{return l?c(o(u)[0],u[1]):c(u)}catch(p){var f=a.return;throw f!==void 0&&o(f.call(a)),p}}},128:(n,s,i)=>{"use strict";var o=i(3472),a=i(8164),c=i(6256),u={};i(2336)(u,i(7096)("iterator"),(function(){return this})),n.exports=function(l,f,p){l.prototype=o(u,{next:a(1,p)}),c(l,f+" Iterator")}},6952:(n,s,i)=>{"use strict";var o=i(4440),a=i(7076),c=i(8868),u=i(2336),l=i(2488),f=i(128),p=i(6256),d=i(9556),m=i(7096)("iterator"),g=!([].keys&&"next"in[].keys()),h="keys",E="values",_=function(){return this};n.exports=function(S,y,T,I,v,x,A){f(T,y,I);var D,P,F,V=function(le){if(!g&&le in ee)return ee[le];switch(le){case h:case E:return function(){return new T(this,le)}}return function(){return new T(this,le)}},H=y+" Iterator",k=v==E,X=!1,ee=S.prototype,ne=ee[m]||ee["@@iterator"]||v&&ee[v],ie=ne||V(v),Ee=v?k?V("entries"):ie:void 0,K=y=="Array"&&ee.entries||ne;if(K&&(F=d(K.call(new S)))!==Object.prototype&&F.next&&(p(F,H,!0),o||typeof F[m]=="function"||u(F,m,_)),k&&ne&&ne.name!==E&&(X=!0,ie=function(){return ne.call(this)}),o&&!A||!g&&!X&&ee[m]||u(ee,m,ie),l[y]=ie,l[H]=_,v)if(D={values:k?ie:V(E),keys:x?ie:V(h),entries:Ee},A)for(P in D)P in ee||c(ee,P,D[P]);else a(a.P+a.F*(g||X),y,D);return D}},8380:(n,s,i)=>{var o=i(7096)("iterator"),a=!1;try{var c=[7][o]();c.return=function(){a=!0},Array.from(c,(function(){throw 2}))}catch{}n.exports=function(u,l){if(!l&&!a)return!1;var f=!1;try{var p=[7],d=p[o]();d.next=function(){return{done:f=!0}},p[o]=function(){return d},u(p)}catch{}return f}},172:n=>{n.exports=function(s,i){return{value:i,done:!!s}}},2488:n=>{n.exports={}},4440:n=>{n.exports=!1},2020:(n,s,i)=>{var o=i(9664)("meta"),a=i(3888),c=i(9080),u=i(8520).f,l=0,f=Object.isExtensible||function(){return!0},p=!i(9316)((function(){return f(Object.preventExtensions({}))})),d=function(g){u(g,o,{value:{i:"O"+ ++l,w:{}}})},m=n.exports={KEY:o,NEED:!1,fastKey:function(g,h){if(!a(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!c(g,o)){if(!f(g))return"F";if(!h)return"E";d(g)}return g[o].i},getWeak:function(g,h){if(!c(g,o)){if(!f(g))return!0;if(!h)return!1;d(g)}return g[o].w},onFreeze:function(g){return p&&m.NEED&&f(g)&&!c(g,o)&&d(g),g}}},448:(n,s,i)=>{var o=i(2804),a=i(2280).set,c=o.MutationObserver||o.WebKitMutationObserver,u=o.process,l=o.Promise,f=i(6924)(u)=="process";n.exports=function(){var p,d,m,g=function(){var S,y;for(f&&(S=u.domain)&&S.exit();p;){y=p.fn,p=p.next;try{y()}catch(T){throw p?m():d=void 0,T}}d=void 0,S&&S.enter()};if(f)m=function(){u.nextTick(g)};else if(!c||o.navigator&&o.navigator.standalone)if(l&&l.resolve){var h=l.resolve(void 0);m=function(){h.then(g)}}else m=function(){a.call(o,g)};else{var E=!0,_=document.createTextNode("");new c(g).observe(_,{characterData:!0}),m=function(){_.data=E=!E}}return function(S){var y={fn:S,next:void 0};d&&(d.next=y),p||(p=y,m()),d=y}}},8024:(n,s,i)=>{"use strict";var o=i(2016);function a(c){var u,l;this.promise=new c((function(f,p){if(u!==void 0||l!==void 0)throw TypeError("Bad Promise constructor");u=f,l=p})),this.resolve=o(u),this.reject=o(l)}n.exports.f=function(c){return new a(c)}},6472:(n,s,i)=>{"use strict";var o=i(5444),a=i(5364),c=i(3875),u=i(1164),l=i(2936),f=Object.assign;n.exports=!f||i(9316)((function(){var p={},d={},m=Symbol(),g="abcdefghijklmnopqrst";return p[m]=7,g.split("").forEach((function(h){d[h]=h})),f({},p)[m]!=7||Object.keys(f({},d)).join("")!=g}))?function(p,d){for(var m=u(p),g=arguments.length,h=1,E=a.f,_=c.f;g>h;)for(var S,y=l(arguments[h++]),T=E?o(y).concat(E(y)):o(y),I=T.length,v=0;I>v;)_.call(y,S=T[v++])&&(m[S]=y[S]);return m}:f},3472:(n,s,i)=>{var o=i(3504),a=i(1176),c=i(444),u=i(4588)("IE_PROTO"),l=function(){},f="prototype",p=function(){var d,m=i(1300)("iframe"),g=c.length;for(m.style.display="none",i(4016).appendChild(m),m.src="javascript:",(d=m.contentWindow.document).open(),d.write("<script>document.F=Object</script>"),d.close(),p=d.F;g--;)delete p[f][c[g]];return p()};n.exports=Object.create||function(d,m){var g;return d!==null?(l[f]=o(d),g=new l,l[f]=null,g[u]=d):g=p(),m===void 0?g:a(g,m)}},8520:(n,s,i)=>{var o=i(3504),a=i(5516),c=i(1896),u=Object.defineProperty;s.f=i(1668)?Object.defineProperty:function(l,f,p){if(o(l),f=c(f,!0),o(p),a)try{return u(l,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(l[f]=p.value),l}},1176:(n,s,i)=>{var o=i(8520),a=i(3504),c=i(5444);n.exports=i(1668)?Object.defineProperties:function(u,l){a(u);for(var f,p=c(l),d=p.length,m=0;d>m;)o.f(u,f=p[m++],l[f]);return u}},6524:(n,s,i)=>{var o=i(3875),a=i(8164),c=i(2780),u=i(1896),l=i(9080),f=i(5516),p=Object.getOwnPropertyDescriptor;s.f=i(1668)?p:function(d,m){if(d=c(d),m=u(m,!0),f)try{return p(d,m)}catch{}if(l(d,m))return a(!o.f.call(d,m),d[m])}},5364:(n,s)=>{s.f=Object.getOwnPropertySymbols},9556:(n,s,i)=>{var o=i(9080),a=i(1164),c=i(4588)("IE_PROTO"),u=Object.prototype;n.exports=Object.getPrototypeOf||function(l){return l=a(l),o(l,c)?l[c]:typeof l.constructor=="function"&&l instanceof l.constructor?l.constructor.prototype:l instanceof Object?u:null}},3816:(n,s,i)=>{var o=i(9080),a=i(2780),c=i(7504)(!1),u=i(4588)("IE_PROTO");n.exports=function(l,f){var p,d=a(l),m=0,g=[];for(p in d)p!=u&&o(d,p)&&g.push(p);for(;f.length>m;)o(d,p=f[m++])&&(~c(g,p)||g.push(p));return g}},5444:(n,s,i)=>{var o=i(3816),a=i(444);n.exports=Object.keys||function(c){return o(c,a)}},3875:(n,s)=>{s.f={}.propertyIsEnumerable},2504:(n,s,i)=>{var o=i(5444),a=i(2780),c=i(3875).f;n.exports=function(u){return function(l){for(var f,p=a(l),d=o(p),m=d.length,g=0,h=[];m>g;)c.call(p,f=d[g++])&&h.push(u?[f,p[f]]:p[f]);return h}}},7904:n=>{n.exports=function(s){try{return{e:!1,v:s()}}catch(i){return{e:!0,v:i}}}},0:(n,s,i)=>{var o=i(3504),a=i(3888),c=i(8024);n.exports=function(u,l){if(o(u),a(l)&&l.constructor===u)return l;var f=c.f(u);return(0,f.resolve)(l),f.promise}},8164:n=>{n.exports=function(s,i){return{enumerable:!(1&s),configurable:!(2&s),writable:!(4&s),value:i}}},7704:(n,s,i)=>{var o=i(8868);n.exports=function(a,c,u){for(var l in c)o(a,l,c[l],u);return a}},8868:(n,s,i)=>{var o=i(2804),a=i(2336),c=i(9080),u=i(9664)("src"),l="toString",f=Function[l],p=(""+f).split(l);i(8432).inspectSource=function(d){return f.call(d)},(n.exports=function(d,m,g,h){var E=typeof g=="function";E&&(c(g,"name")||a(g,"name",m)),d[m]!==g&&(E&&(c(g,u)||a(g,u,d[m]?""+d[m]:p.join(String(m)))),d===o?d[m]=g:h?d[m]?d[m]=g:a(d,m,g):(delete d[m],a(d,m,g)))})(Function.prototype,l,(function(){return typeof this=="function"&&this[u]||f.call(this)}))},5076:(n,s,i)=>{var o=i(3888),a=i(3504),c=function(u,l){if(a(u),!o(l)&&l!==null)throw TypeError(l+": can't set as prototype!")};n.exports={set:Object.setPrototypeOf||("__proto__"in{}?(function(u,l,f){try{(f=i(800)(Function.call,i(6524).f(Object.prototype,"__proto__").set,2))(u,[]),l=!(u instanceof Array)}catch{l=!0}return function(p,d){return c(p,d),l?p.__proto__=d:f(p,d),p}})({},!1):void 0),check:c}},3384:(n,s,i)=>{"use strict";var o=i(2804),a=i(8520),c=i(1668),u=i(7096)("species");n.exports=function(l){var f=o[l];c&&f&&!f[u]&&a.f(f,u,{configurable:!0,get:function(){return this}})}},6256:(n,s,i)=>{var o=i(8520).f,a=i(9080),c=i(7096)("toStringTag");n.exports=function(u,l,f){u&&!a(u=f?u:u.prototype,c)&&o(u,c,{configurable:!0,value:l})}},4588:(n,s,i)=>{var o=i(5432)("keys"),a=i(9664);n.exports=function(c){return o[c]||(o[c]=a(c))}},5432:(n,s,i)=>{var o=i(8432),a=i(2804),c="__core-js_shared__",u=a[c]||(a[c]={});(n.exports=function(l,f){return u[l]||(u[l]=f!==void 0?f:{})})("versions",[]).push({version:o.version,mode:i(4440)?"pure":"global",copyright:"\xA9 2018 Denis Pushkarev (zloirock.ru)"})},6776:(n,s,i)=>{var o=i(3504),a=i(2016),c=i(7096)("species");n.exports=function(u,l){var f,p=o(u).constructor;return p===void 0||(f=o(p)[c])==null?l:a(f)}},6712:(n,s,i)=>{"use strict";var o=i(9316);n.exports=function(a,c){return!!a&&o((function(){c?a.call(null,(function(){}),1):a.call(null)}))}},2280:(n,s,i)=>{var o,a,c,u=i(800),l=i(5628),f=i(4016),p=i(1300),d=i(2804),m=d.process,g=d.setImmediate,h=d.clearImmediate,E=d.MessageChannel,_=d.Dispatch,S=0,y={},T="onreadystatechange",I=function(){var x=+this;if(y.hasOwnProperty(x)){var A=y[x];delete y[x],A()}},v=function(x){I.call(x.data)};g&&h||(g=function(x){for(var A=[],D=1;arguments.length>D;)A.push(arguments[D++]);return y[++S]=function(){l(typeof x=="function"?x:Function(x),A)},o(S),S},h=function(x){delete y[x]},i(6924)(m)=="process"?o=function(x){m.nextTick(u(I,x,1))}:_&&_.now?o=function(x){_.now(u(I,x,1))}:E?(c=(a=new E).port2,a.port1.onmessage=v,o=u(c.postMessage,c,1)):d.addEventListener&&typeof postMessage=="function"&&!d.importScripts?(o=function(x){d.postMessage(x+"","*")},d.addEventListener("message",v,!1)):o=T in p("script")?function(x){f.appendChild(p("script"))[T]=function(){f.removeChild(this),I.call(x)}}:function(x){setTimeout(u(I,x,1),0)}),n.exports={set:g,clear:h}},8508:(n,s,i)=>{var o=i(8236),a=Math.max,c=Math.min;n.exports=function(u,l){return(u=o(u))<0?a(u+l,0):c(u,l)}},8236:n=>{var s=Math.ceil,i=Math.floor;n.exports=function(o){return isNaN(o=+o)?0:(o>0?i:s)(o)}},2780:(n,s,i)=>{var o=i(2936),a=i(24);n.exports=function(c){return o(a(c))}},3528:(n,s,i)=>{var o=i(8236),a=Math.min;n.exports=function(c){return c>0?a(o(c),9007199254740991):0}},1164:(n,s,i)=>{var o=i(24);n.exports=function(a){return Object(o(a))}},1896:(n,s,i)=>{var o=i(3888);n.exports=function(a,c){if(!o(a))return a;var u,l;if(c&&typeof(u=a.toString)=="function"&&!o(l=u.call(a))||typeof(u=a.valueOf)=="function"&&!o(l=u.call(a))||!c&&typeof(u=a.toString)=="function"&&!o(l=u.call(a)))return l;throw TypeError("Can't convert object to primitive value")}},9664:n=>{var s=0,i=Math.random();n.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++s+i).toString(36))}},1168:(n,s,i)=>{var o=i(2804).navigator;n.exports=o&&o.userAgent||""},2772:(n,s,i)=>{var o=i(3888);n.exports=function(a,c){if(!o(a)||a._t!==c)throw TypeError("Incompatible receiver, "+c+" required!");return a}},7096:(n,s,i)=>{var o=i(5432)("wks"),a=i(9664),c=i(2804).Symbol,u=typeof c=="function";(n.exports=function(l){return o[l]||(o[l]=u&&c[l]||(u?c:a)("Symbol."+l))}).store=o},2800:(n,s,i)=>{var o=i(5848),a=i(7096)("iterator"),c=i(2488);n.exports=i(8432).getIteratorMethod=function(u){if(u!=null)return u[a]||u["@@iterator"]||c[o(u)]}},4228:(n,s,i)=>{"use strict";var o=i(800),a=i(7076),c=i(1164),u=i(2372),l=i(3164),f=i(3528),p=i(2340),d=i(2800);a(a.S+a.F*!i(8380)((function(m){Array.from(m)})),"Array",{from:function(m){var g,h,E,_,S=c(m),y=typeof this=="function"?this:Array,T=arguments.length,I=T>1?arguments[1]:void 0,v=I!==void 0,x=0,A=d(S);if(v&&(I=o(I,T>2?arguments[2]:void 0,2)),A==null||y==Array&&l(A))for(h=new y(g=f(S.length));g>x;x++)p(h,x,v?I(S[x],x):S[x]);else for(_=A.call(S),h=new y;!(E=_.next()).done;x++)p(h,x,v?u(_,I,[E.value,x],!0):E.value);return h.length=x,h}})},4260:(n,s,i)=>{"use strict";var o=i(7076),a=i(2016),c=i(1164),u=i(9316),l=[].sort,f=[1,2,3];o(o.P+o.F*(u((function(){f.sort(void 0)}))||!u((function(){f.sort(null)}))||!i(6712)(l)),"Array",{sort:function(p){return p===void 0?l.call(c(this)):l.call(c(this),a(p))}})},5584:(n,s,i)=>{var o=i(7076);o(o.S+o.F,"Object",{assign:i(6472)})},5888:(n,s,i)=>{"use strict";var o,a,c,u,l=i(4440),f=i(2804),p=i(800),d=i(5848),m=i(7076),g=i(3888),h=i(2016),E=i(2388),_=i(7228),S=i(6776),y=i(2280).set,T=i(448)(),I=i(8024),v=i(7904),x=i(1168),A=i(0),D="Promise",P=f.TypeError,F=f.process,V=F&&F.versions,H=V&&V.v8||"",k=f[D],X=d(F)=="process",ee=function(){},ne=a=I.f,ie=!!(function(){try{var L=k.resolve(1),N=(L.constructor={})[i(7096)("species")]=function(z){z(ee,ee)};return(X||typeof PromiseRejectionEvent=="function")&&L.then(ee)instanceof N&&H.indexOf("6.6")!==0&&x.indexOf("Chrome/66")===-1}catch{}})(),Ee=function(L){var N;return!(!g(L)||typeof(N=L.then)!="function")&&N},K=function(L,N){if(!L._n){L._n=!0;var z=L._c;T((function(){for(var oe=L._v,fe=L._s==1,Re=0,De=function(Se){var b,R,$,G=fe?Se.ok:Se.fail,w=Se.resolve,Z=Se.reject,J=Se.domain;try{G?(fe||(L._h==2&&q(L),L._h=1),G===!0?b=oe:(J&&J.enter(),b=G(oe),J&&(J.exit(),$=!0)),b===Se.promise?Z(P("Promise-chain cycle")):(R=Ee(b))?R.call(b,w,Z):w(b)):Z(oe)}catch(se){J&&!$&&J.exit(),Z(se)}};z.length>Re;)De(z[Re++]);L._c=[],L._n=!1,N&&!L._h&&le(L)}))}},le=function(L){y.call(f,(function(){var N,z,oe,fe=L._v,Re=de(L);if(Re&&(N=v((function(){X?F.emit("unhandledRejection",fe,L):(z=f.onunhandledrejection)?z({promise:L,reason:fe}):(oe=f.console)&&oe.error&&oe.error("Unhandled promise rejection",fe)})),L._h=X||de(L)?2:1),L._a=void 0,Re&&N.e)throw N.v}))},de=function(L){return L._h!==1&&(L._a||L._c).length===0},q=function(L){y.call(f,(function(){var N;X?F.emit("rejectionHandled",L):(N=f.onrejectionhandled)&&N({promise:L,reason:L._v})}))},ke=function(L){var N=this;N._d||(N._d=!0,(N=N._w||N)._v=L,N._s=2,N._a||(N._a=N._c.slice()),K(N,!0))},U=function(L){var N,z=this;if(!z._d){z._d=!0,z=z._w||z;try{if(z===L)throw P("Promise can't be resolved itself");(N=Ee(L))?T((function(){var oe={_w:z,_d:!1};try{N.call(L,p(U,oe,1),p(ke,oe,1))}catch(fe){ke.call(oe,fe)}})):(z._v=L,z._s=1,K(z,!1))}catch(oe){ke.call({_w:z,_d:!1},oe)}}};ie||(k=function(L){E(this,k,D,"_h"),h(L),o.call(this);try{L(p(U,this,1),p(ke,this,1))}catch(N){ke.call(this,N)}},(o=function(L){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=i(7704)(k.prototype,{then:function(L,N){var z=ne(S(this,k));return z.ok=typeof L!="function"||L,z.fail=typeof N=="function"&&N,z.domain=X?F.domain:void 0,this._c.push(z),this._a&&this._a.push(z),this._s&&K(this,!1),z.promise},catch:function(L){return this.then(void 0,L)}}),c=function(){var L=new o;this.promise=L,this.resolve=p(U,L,1),this.reject=p(ke,L,1)},I.f=ne=function(L){return L===k||L===u?new c(L):a(L)}),m(m.G+m.W+m.F*!ie,{Promise:k}),i(6256)(k,D),i(3384)(D),u=i(8432)[D],m(m.S+m.F*!ie,D,{reject:function(L){var N=ne(this);return(0,N.reject)(L),N.promise}}),m(m.S+m.F*(l||!ie),D,{resolve:function(L){return A(l&&this===u?k:this,L)}}),m(m.S+m.F*!(ie&&i(8380)((function(L){k.all(L).catch(ee)}))),D,{all:function(L){var N=this,z=ne(N),oe=z.resolve,fe=z.reject,Re=v((function(){var De=[],Se=0,b=1;_(L,!1,(function(R){var $=Se++,G=!1;De.push(void 0),b++,N.resolve(R).then((function(w){G||(G=!0,De[$]=w,--b||oe(De))}),fe)})),--b||oe(De)}));return Re.e&&fe(Re.v),z.promise},race:function(L){var N=this,z=ne(N),oe=z.reject,fe=v((function(){_(L,!1,(function(Re){N.resolve(Re).then(z.resolve,oe)}))}));return fe.e&&oe(fe.v),z.promise}})},7320:(n,s,i)=>{i(1668)&&/./g.flags!="g"&&i(8520).f(RegExp.prototype,"flags",{configurable:!0,get:i(8068)})},4880:(n,s,i)=>{i(4448)("match",1,(function(o,a,c){return[function(u){"use strict";var l=o(this),f=u?.[a];return f!==void 0?f.call(u,l):new RegExp(u)[a](String(l))},c]}))},8412:(n,s,i)=>{i(4448)("replace",2,(function(o,a,c){return[function(u,l){"use strict";var f=o(this),p=u?.[a];return p!==void 0?p.call(u,f,l):c.call(String(f),u,l)},c]}))},223:(n,s,i)=>{i(4448)("search",1,(function(o,a,c){return[function(u){"use strict";var l=o(this),f=u?.[a];return f!==void 0?f.call(u,l):new RegExp(u)[a](String(l))},c]}))},3708:(n,s,i)=>{i(4448)("split",2,(function(o,a,c){"use strict";var u=i(7760),l=c,f=[].push,p="split",d="length",m="lastIndex";if("abbc"[p](/(b)*/)[1]=="c"||"test"[p](/(?:)/,-1)[d]!=4||"ab"[p](/(?:ab)*/)[d]!=2||"."[p](/(.?)(.?)/)[d]!=4||"."[p](/()()/)[d]>1||""[p](/.?/)[d]){var g=/()??/.exec("")[1]===void 0;c=function(h,E){var _=String(this);if(h===void 0&&E===0)return[];if(!u(h))return l.call(_,h,E);var S,y,T,I,v,x=[],A=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(h.sticky?"y":""),D=0,P=E===void 0?4294967295:E>>>0,F=new RegExp(h.source,A+"g");for(g||(S=new RegExp("^"+F.source+"$(?!\\s)",A));(y=F.exec(_))&&!((T=y.index+y[0][d])>D&&(x.push(_.slice(D,y.index)),!g&&y[d]>1&&y[0].replace(S,(function(){for(v=1;v<arguments[d]-2;v++)arguments[v]===void 0&&(y[v]=void 0)})),y[d]>1&&y.index<_[d]&&f.apply(x,y.slice(1)),I=y[0][d],D=T,x[d]>=P));)F[m]===y.index&&F[m]++;return D===_[d]?!I&&F.test("")||x.push(""):x.push(_.slice(D)),x[d]>P?x.slice(0,P):x}}else"0"[p](void 0,0)[d]&&(c=function(h,E){return h===void 0&&E===0?[]:l.call(this,h,E)});return[function(h,E){var _=o(this),S=h?.[a];return S!==void 0?S.call(h,_,E):c.call(String(_),h,E)},c]}))},6568:(n,s,i)=>{"use strict";i(7320);var o=i(3504),a=i(8068),c=i(1668),u="toString",l=/./[u],f=function(p){i(8868)(RegExp.prototype,u,p,!0)};i(9316)((function(){return l.call({source:"a",flags:"b"})!="/a/b"}))?f((function(){var p=o(this);return"/".concat(p.source,"/","flags"in p?p.flags:!c&&p instanceof RegExp?a.call(p):void 0)})):l.name!=u&&f((function(){return l.call(this)}))},7276:(n,s,i)=>{"use strict";var o=i(148),a=i(2772);n.exports=i(9412)("Set",(function(c){return function(){return c(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(c){return o.def(a(this,"Set"),c=c===0?0:c,c)}},o)},7360:(n,s,i)=>{"use strict";var o=i(7076),a=i(7504)(!0);o(o.P,"Array",{includes:function(c){return a(this,c,arguments.length>1?arguments[1]:void 0)}}),i(7384)("includes")},3852:(n,s,i)=>{var o=i(7076),a=i(2504)(!0);o(o.S,"Object",{entries:function(c){return a(c)}})},5308:(n,s,i)=>{var o=i(7076),a=i(2504)(!1);o(o.S,"Object",{values:function(c){return a(c)}})},7468:(n,s,i)=>{"use strict";let o=i(4368),a=i(9624),c=i(1846);function u(l,f,p){let d=a(l,f,p),m=o.spawn(d.command,d.args,d.options);return c.hookChildProcess(m,d),m}n.exports=u,n.exports.spawn=u,n.exports.sync=function(l,f,p){let d=a(l,f,p),m=o.spawnSync(d.command,d.args,d.options);return m.error=m.error||c.verifyENOENTSync(m.status,d),m},n.exports._parse=a,n.exports._enoent=c},1846:n=>{"use strict";let s=process.platform==="win32";function i(a,c){return Object.assign(new Error(`${c} ${a.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${c} ${a.command}`,path:a.command,spawnargs:a.args})}function o(a,c){return s&&a===1&&!c.file?i(c.original,"spawn"):null}n.exports={hookChildProcess:function(a,c){if(!s)return;let u=a.emit;a.emit=function(l,f){if(l==="exit"){let p=o(f,c);if(p)return u.call(a,"error",p)}return u.apply(a,arguments)}},verifyENOENT:o,verifyENOENTSync:function(a,c){return s&&a===1&&!c.file?i(c.original,"spawnSync"):null},notFoundError:i}},9624:(n,s,i)=>{"use strict";let o=i(7072),a=i(9480),c=i(8372),u=i(824),l=i(7780),f=i(1716),p=process.platform==="win32",d=/\.(?:com|exe)$/i,m=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i,g=a((()=>f.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",!0)))||!1;n.exports=function(h,E,_){E&&!Array.isArray(E)&&(_=E,E=null);let S={command:h,args:E=E?E.slice(0):[],options:_=Object.assign({},_),file:void 0,original:{command:h,args:E}};return _.shell?(function(y){if(g)return y;let T=[y.command].concat(y.args).join(" ");return p?(y.command=typeof y.options.shell=="string"?y.options.shell:process.env.comspec||"cmd.exe",y.args=["/d","/s","/c",`"${T}"`],y.options.windowsVerbatimArguments=!0):(typeof y.options.shell=="string"?y.command=y.options.shell:process.platform==="android"?y.command="/system/bin/sh":y.command="/bin/sh",y.args=["-c",T]),y})(S):(function(y){if(!p)return y;let T=(function(v){v.file=c(v);let x=v.file&&l(v.file);return x?(v.args.unshift(v.file),v.command=x,c(v)):v.file})(y),I=!d.test(T);if(y.options.forceShell||I){let v=m.test(T);y.command=o.normalize(y.command),y.command=u.command(y.command),y.args=y.args.map((A=>u.argument(A,v)));let x=[y.command].concat(y.args).join(" ");y.args=["/d","/s","/c",`"${x}"`],y.command=process.env.comspec||"cmd.exe",y.options.windowsVerbatimArguments=!0}return y})(S)}},824:n=>{"use strict";let s=/([()\][%!^"`<>&|;, *?])/g;n.exports.command=function(i){return i.replace(s,"^$1")},n.exports.argument=function(i,o){return i=(i=`"${i=(i=(i=`${i}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(s,"^$1"),o&&(i=i.replace(s,"^$1")),i}},7780:(n,s,i)=>{"use strict";let o=i(2058),a=i(6176);n.exports=function(c){let u,l;Buffer.alloc?u=Buffer.alloc(150):(u=new Buffer(150),u.fill(0));try{l=o.openSync(c,"r"),o.readSync(l,u,0,150,0),o.closeSync(l)}catch{}return a(u.toString())}},8372:(n,s,i)=>{"use strict";let o=i(7072),a=i(8460),c=i(3032)();function u(l,f){let p=process.cwd(),d=l.options.cwd!=null;if(d)try{process.chdir(l.options.cwd)}catch{}let m;try{m=a.sync(l.command,{path:(l.options.env||process.env)[c],pathExt:f?o.delimiter:void 0})}catch{}finally{process.chdir(p)}return m&&(m=o.resolve(d?l.options.cwd:"",m)),m}n.exports=function(l){return u(l)||u(l,!0)}},9988:(n,s,i)=>{var o=i(4640),a=function(){},c=function(u,l,f){if(typeof l=="function")return c(u,null,l);l||(l={}),f=o(f||a);var p=u._writableState,d=u._readableState,m=l.readable||l.readable!==!1&&u.readable,g=l.writable||l.writable!==!1&&u.writable,h=function(){u.writable||E()},E=function(){g=!1,m||f.call(u)},_=function(){m=!1,g||f.call(u)},S=function(v){f.call(u,v?new Error("exited with error code: "+v):null)},y=function(v){f.call(u,v)},T=function(){return(!m||d&&d.ended)&&(!g||p&&p.ended)?void 0:f.call(u,new Error("premature close"))},I=function(){u.req.on("finish",E)};return(function(v){return v.setHeader&&typeof v.abort=="function"})(u)?(u.on("complete",E),u.on("abort",T),u.req?I():u.on("request",I)):g&&!p&&(u.on("end",h),u.on("close",h)),(function(v){return v.stdio&&Array.isArray(v.stdio)&&v.stdio.length===3})(u)&&u.on("exit",S),u.on("end",_),u.on("finish",E),l.error!==!1&&u.on("error",y),u.on("close",T),function(){u.removeListener("complete",E),u.removeListener("abort",T),u.removeListener("request",I),u.req&&u.req.removeListener("finish",E),u.removeListener("end",h),u.removeListener("close",h),u.removeListener("finish",E),u.removeListener("exit",S),u.removeListener("end",_),u.removeListener("error",y),u.removeListener("close",T)}};n.exports=c},84:(n,s,i)=>{n.exports=d,d.realpath=d,d.sync=m,d.realpathSync=m,d.monkeypatch=function(){o.realpath=d,o.realpathSync=m},d.unmonkeypatch=function(){o.realpath=a,o.realpathSync=c};var o=i(2058),a=o.realpath,c=o.realpathSync,u=process.version,l=/^v[0-5]\./.test(u),f=i(7192);function p(g){return g&&g.syscall==="realpath"&&(g.code==="ELOOP"||g.code==="ENOMEM"||g.code==="ENAMETOOLONG")}function d(g,h,E){if(l)return a(g,h,E);typeof h=="function"&&(E=h,h=null),a(g,h,(function(_,S){p(_)?f.realpath(g,h,E):E(_,S)}))}function m(g,h){if(l)return c(g,h);try{return c(g,h)}catch(E){if(p(E))return f.realpathSync(g,h);throw E}}},7192:(n,s,i)=>{var o=i(7072),a=process.platform==="win32",c=i(2058),u=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);if(o.normalize,a)var l=/(.*?)(?:[\/\\]+|$)/g;else l=/(.*?)(?:[\/]+|$)/g;if(a)var f=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else f=/^[\/]*/;s.realpathSync=function(p,d){if(p=o.resolve(p),d&&Object.prototype.hasOwnProperty.call(d,p))return d[p];var m,g,h,E,_=p,S={},y={};function T(){var P=f.exec(p);m=P[0].length,g=P[0],h=P[0],E="",a&&!y[h]&&(c.lstatSync(h),y[h]=!0)}for(T();m<p.length;){l.lastIndex=m;var I=l.exec(p);if(E=g,g+=I[0],h=E+I[1],m=l.lastIndex,!(y[h]||d&&d[h]===h)){var v;if(d&&Object.prototype.hasOwnProperty.call(d,h))v=d[h];else{var x=c.lstatSync(h);if(!x.isSymbolicLink()){y[h]=!0,d&&(d[h]=h);continue}var A=null;if(!a){var D=x.dev.toString(32)+":"+x.ino.toString(32);S.hasOwnProperty(D)&&(A=S[D])}A===null&&(c.statSync(h),A=c.readlinkSync(h)),v=o.resolve(E,A),d&&(d[h]=v),a||(S[D]=A)}p=o.resolve(v,p.slice(m)),T()}}return d&&(d[_]=p),p},s.realpath=function(p,d,m){if(typeof m!="function"&&(m=(function(P){return typeof P=="function"?P:(function(){var F;if(u){var V=new Error;F=function(k){k&&(V.message=k.message,H(k=V))}}else F=H;return F;function H(k){if(k){if(process.throwDeprecation)throw k;if(!process.noDeprecation){var X="fs: missing callback "+(k.stack||k.message);process.traceDeprecation?console.trace(X):console.error(X)}}}})()})(d),d=null),p=o.resolve(p),d&&Object.prototype.hasOwnProperty.call(d,p))return process.nextTick(m.bind(null,null,d[p]));var g,h,E,_,S=p,y={},T={};function I(){var P=f.exec(p);g=P[0].length,h=P[0],E=P[0],_="",a&&!T[E]?c.lstat(E,(function(F){if(F)return m(F);T[E]=!0,v()})):process.nextTick(v)}function v(){if(g>=p.length)return d&&(d[S]=p),m(null,p);l.lastIndex=g;var P=l.exec(p);return _=h,h+=P[0],E=_+P[1],g=l.lastIndex,T[E]||d&&d[E]===E?process.nextTick(v):d&&Object.prototype.hasOwnProperty.call(d,E)?D(d[E]):c.lstat(E,x)}function x(P,F){if(P)return m(P);if(!F.isSymbolicLink())return T[E]=!0,d&&(d[E]=E),process.nextTick(v);if(!a){var V=F.dev.toString(32)+":"+F.ino.toString(32);if(y.hasOwnProperty(V))return A(null,y[V],E)}c.stat(E,(function(H){if(H)return m(H);c.readlink(E,(function(k,X){a||(y[V]=X),A(k,X)}))}))}function A(P,F,V){if(P)return m(P);var H=o.resolve(_,F);d&&(d[V]=H),D(H)}function D(P){p=o.resolve(P,p.slice(g)),I()}I()}},9712:(n,s,i)=>{function o(h,E){return Object.prototype.hasOwnProperty.call(h,E)}s.alphasort=p,s.alphasorti=f,s.setopts=function(h,E,_){if(_||(_={}),_.matchBase&&E.indexOf("/")===-1){if(_.noglobstar)throw new Error("base matching requires globstar");E="**/"+E}h.silent=!!_.silent,h.pattern=E,h.strict=_.strict!==!1,h.realpath=!!_.realpath,h.realpathCache=_.realpathCache||Object.create(null),h.follow=!!_.follow,h.dot=!!_.dot,h.mark=!!_.mark,h.nodir=!!_.nodir,h.nodir&&(h.mark=!0),h.sync=!!_.sync,h.nounique=!!_.nounique,h.nonull=!!_.nonull,h.nosort=!!_.nosort,h.nocase=!!_.nocase,h.stat=!!_.stat,h.noprocess=!!_.noprocess,h.absolute=!!_.absolute,h.maxLength=_.maxLength||1/0,h.cache=_.cache||Object.create(null),h.statCache=_.statCache||Object.create(null),h.symlinks=_.symlinks||Object.create(null),(function(y,T){y.ignore=T.ignore||[],Array.isArray(y.ignore)||(y.ignore=[y.ignore]),y.ignore.length&&(y.ignore=y.ignore.map(d))})(h,_),h.changedCwd=!1;var S=process.cwd();o(_,"cwd")?(h.cwd=a.resolve(_.cwd),h.changedCwd=h.cwd!==S):h.cwd=S,h.root=_.root||a.resolve(h.cwd,"/"),h.root=a.resolve(h.root),process.platform==="win32"&&(h.root=h.root.replace(/\\/g,"/")),h.cwdAbs=u(h.cwd)?h.cwd:m(h,h.cwd),process.platform==="win32"&&(h.cwdAbs=h.cwdAbs.replace(/\\/g,"/")),h.nomount=!!_.nomount,_.nonegate=!0,_.nocomment=!0,h.minimatch=new l(E,_),h.options=h.minimatch.options},s.ownProp=o,s.makeAbs=m,s.finish=function(h){for(var E=h.nounique,_=E?[]:Object.create(null),S=0,y=h.matches.length;S<y;S++){var T=h.matches[S];if(T&&Object.keys(T).length!==0){var I=Object.keys(T);E?_.push.apply(_,I):I.forEach((function(x){_[x]=!0}))}else if(h.nonull){var v=h.minimatch.globSet[S];E?_.push(v):_[v]=!0}}if(E||(_=Object.keys(_)),h.nosort||(_=_.sort(h.nocase?f:p)),h.mark){for(S=0;S<_.length;S++)_[S]=h._mark(_[S]);h.nodir&&(_=_.filter((function(x){var A=!/\/$/.test(x),D=h.cache[x]||h.cache[m(h,x)];return A&&D&&(A=D!=="DIR"&&!Array.isArray(D)),A})))}h.ignore.length&&(_=_.filter((function(x){return!g(h,x)}))),h.found=_},s.mark=function(h,E){var _=m(h,E),S=h.cache[_],y=E;if(S){var T=S==="DIR"||Array.isArray(S),I=E.slice(-1)==="/";if(T&&!I?y+="/":!T&&I&&(y=y.slice(0,-1)),y!==E){var v=m(h,y);h.statCache[v]=h.statCache[_],h.cache[v]=h.cache[_]}}return y},s.isIgnored=g,s.childrenIgnored=function(h,E){return!!h.ignore.length&&h.ignore.some((function(_){return!(!_.gmatcher||!_.gmatcher.match(E))}))};var a=i(7072),c=i(836),u=i(4832),l=c.Minimatch;function f(h,E){return h.toLowerCase().localeCompare(E.toLowerCase())}function p(h,E){return h.localeCompare(E)}function d(h){var E=null;if(h.slice(-3)==="/**"){var _=h.replace(/(\/\*\*)+$/,"");E=new l(_,{dot:!0})}return{matcher:new l(h,{dot:!0}),gmatcher:E}}function m(h,E){var _=E;return _=E.charAt(0)==="/"?a.join(h.root,E):u(E)||E===""?E:h.changedCwd?a.resolve(h.cwd,E):a.resolve(E),process.platform==="win32"&&(_=_.replace(/\\/g,"/")),_}function g(h,E){return!!h.ignore.length&&h.ignore.some((function(_){return _.matcher.match(E)||!(!_.gmatcher||!_.gmatcher.match(E))}))}},808:(n,s,i)=>{n.exports=I;var o=i(2058),a=i(84),c=i(836),u=(c.Minimatch,i(3352)),l=i(467).EventEmitter,f=i(7072),p=i(6608),d=i(4832),m=i(4548),g=i(9712),h=(g.alphasort,g.alphasorti,g.setopts),E=g.ownProp,_=i(363),S=(i(970),g.childrenIgnored),y=g.isIgnored,T=i(4640);function I(A,D,P){if(typeof D=="function"&&(P=D,D={}),D||(D={}),D.sync){if(P)throw new TypeError("callback provided to sync glob");return m(A,D)}return new x(A,D,P)}I.sync=m;var v=I.GlobSync=m.GlobSync;function x(A,D,P){if(typeof D=="function"&&(P=D,D=null),D&&D.sync){if(P)throw new TypeError("callback provided to sync glob");return new v(A,D)}if(!(this instanceof x))return new x(A,D,P);h(this,A,D),this._didRealPath=!1;var F=this.minimatch.set.length;this.matches=new Array(F),typeof P=="function"&&(P=T(P),this.on("error",P),this.on("end",(function(ee){P(null,ee)})));var V=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(F===0)return X();for(var H=!0,k=0;k<F;k++)this._process(this.minimatch.set[k],k,!1,X);function X(){--V._processing,V._processing<=0&&(H?process.nextTick((function(){V._finish()})):V._finish())}H=!1}I.glob=I,I.hasMagic=function(A,D){var P=(function(H,k){if(k===null||typeof k!="object")return H;for(var X=Object.keys(k),ee=X.length;ee--;)H[X[ee]]=k[X[ee]];return H})({},D);P.noprocess=!0;var F=new x(A,P).minimatch.set;if(!A)return!1;if(F.length>1)return!0;for(var V=0;V<F[0].length;V++)if(typeof F[0][V]!="string")return!0;return!1},I.Glob=x,u(x,l),x.prototype._finish=function(){if(p(this instanceof x),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();g.finish(this),this.emit("end",this.found)}},x.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var A=this.matches.length;if(A===0)return this._finish();for(var D=this,P=0;P<this.matches.length;P++)this._realpathSet(P,F)}function F(){--A==0&&D._finish()}},x.prototype._realpathSet=function(A,D){var P=this.matches[A];if(!P)return D();var F=Object.keys(P),V=this,H=F.length;if(H===0)return D();var k=this.matches[A]=Object.create(null);F.forEach((function(X,ee){X=V._makeAbs(X),a.realpath(X,V.realpathCache,(function(ne,ie){ne?ne.syscall==="stat"?k[X]=!0:V.emit("error",ne):k[ie]=!0,--H==0&&(V.matches[A]=k,D())}))}))},x.prototype._mark=function(A){return g.mark(this,A)},x.prototype._makeAbs=function(A){return g.makeAbs(this,A)},x.prototype.abort=function(){this.aborted=!0,this.emit("abort")},x.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},x.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var A=this._emitQueue.slice(0);this._emitQueue.length=0;for(var D=0;D<A.length;D++){var P=A[D];this._emitMatch(P[0],P[1])}}if(this._processQueue.length){var F=this._processQueue.slice(0);for(this._processQueue.length=0,D=0;D<F.length;D++){var V=F[D];this._processing--,this._process(V[0],V[1],V[2],V[3])}}}},x.prototype._process=function(A,D,P,F){if(p(this instanceof x),p(typeof F=="function"),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([A,D,P,F]);else{for(var V,H=0;typeof A[H]=="string";)H++;switch(H){case A.length:return void this._processSimple(A.join("/"),D,F);case 0:V=null;break;default:V=A.slice(0,H).join("/")}var k,X=A.slice(H);V===null?k=".":((d(V)||d(A.join("/")))&&(V&&d(V)||(V="/"+V)),k=V);var ee=this._makeAbs(k);if(S(this,k))return F();X[0]===c.GLOBSTAR?this._processGlobStar(V,k,ee,X,D,P,F):this._processReaddir(V,k,ee,X,D,P,F)}},x.prototype._processReaddir=function(A,D,P,F,V,H,k){var X=this;this._readdir(P,H,(function(ee,ne){return X._processReaddir2(A,D,P,F,V,H,ne,k)}))},x.prototype._processReaddir2=function(A,D,P,F,V,H,k,X){if(!k)return X();for(var ee=F[0],ne=!!this.minimatch.negate,ie=ee._glob,Ee=this.dot||ie.charAt(0)===".",K=[],le=0;le<k.length;le++)((q=k[le]).charAt(0)!=="."||Ee)&&(ne&&!A?!q.match(ee):q.match(ee))&&K.push(q);var de=K.length;if(de===0)return X();if(F.length===1&&!this.mark&&!this.stat){for(this.matches[V]||(this.matches[V]=Object.create(null)),le=0;le<de;le++){var q=K[le];A&&(q=A!=="/"?A+"/"+q:A+q),q.charAt(0)!=="/"||this.nomount||(q=f.join(this.root,q)),this._emitMatch(V,q)}return X()}for(F.shift(),le=0;le<de;le++)q=K[le],A&&(q=A!=="/"?A+"/"+q:A+q),this._process([q].concat(F),V,H,X);X()},x.prototype._emitMatch=function(A,D){if(!this.aborted&&!y(this,D))if(this.paused)this._emitQueue.push([A,D]);else{var P=d(D)?D:this._makeAbs(D);if(this.mark&&(D=this._mark(D)),this.absolute&&(D=P),!this.matches[A][D]){if(this.nodir){var F=this.cache[P];if(F==="DIR"||Array.isArray(F))return}this.matches[A][D]=!0;var V=this.statCache[P];V&&this.emit("stat",D,V),this.emit("match",D)}}},x.prototype._readdirInGlobStar=function(A,D){if(!this.aborted){if(this.follow)return this._readdir(A,!1,D);var P=this,F=_("lstat\0"+A,(function(V,H){if(V&&V.code==="ENOENT")return D();var k=H&&H.isSymbolicLink();P.symlinks[A]=k,k||!H||H.isDirectory()?P._readdir(A,!1,D):(P.cache[A]="FILE",D())}));F&&o.lstat(A,F)}},x.prototype._readdir=function(A,D,P){if(!this.aborted&&(P=_("readdir\0"+A+"\0"+D,P))){if(D&&!E(this.symlinks,A))return this._readdirInGlobStar(A,P);if(E(this.cache,A)){var F=this.cache[A];if(!F||F==="FILE")return P();if(Array.isArray(F))return P(null,F)}o.readdir(A,(function(V,H,k){return function(X,ee){X?V._readdirError(H,X,k):V._readdirEntries(H,ee,k)}})(this,A,P))}},x.prototype._readdirEntries=function(A,D,P){if(!this.aborted){if(!this.mark&&!this.stat)for(var F=0;F<D.length;F++){var V=D[F];V=A==="/"?A+V:A+"/"+V,this.cache[V]=!0}return this.cache[A]=D,P(null,D)}},x.prototype._readdirError=function(A,D,P){if(!this.aborted){switch(D.code){case"ENOTSUP":case"ENOTDIR":var F=this._makeAbs(A);if(this.cache[F]="FILE",F===this.cwdAbs){var V=new Error(D.code+" invalid cwd "+this.cwd);V.path=this.cwd,V.code=D.code,this.emit("error",V),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(A)]=!1;break;default:this.cache[this._makeAbs(A)]=!1,this.strict&&(this.emit("error",D),this.abort()),this.silent||console.error("glob error",D)}return P()}},x.prototype._processGlobStar=function(A,D,P,F,V,H,k){var X=this;this._readdir(P,H,(function(ee,ne){X._processGlobStar2(A,D,P,F,V,H,ne,k)}))},x.prototype._processGlobStar2=function(A,D,P,F,V,H,k,X){if(!k)return X();var ee=F.slice(1),ne=A?[A]:[],ie=ne.concat(ee);this._process(ie,V,!1,X);var Ee=this.symlinks[P],K=k.length;if(Ee&&H)return X();for(var le=0;le<K;le++)if(k[le].charAt(0)!=="."||this.dot){var de=ne.concat(k[le],ee);this._process(de,V,!0,X);var q=ne.concat(k[le],F);this._process(q,V,!0,X)}X()},x.prototype._processSimple=function(A,D,P){var F=this;this._stat(A,(function(V,H){F._processSimple2(A,D,V,H,P)}))},x.prototype._processSimple2=function(A,D,P,F,V){if(this.matches[D]||(this.matches[D]=Object.create(null)),!F)return V();if(A&&d(A)&&!this.nomount){var H=/[\/\\]$/.test(A);A.charAt(0)==="/"?A=f.join(this.root,A):(A=f.resolve(this.root,A),H&&(A+="/"))}process.platform==="win32"&&(A=A.replace(/\\/g,"/")),this._emitMatch(D,A),V()},x.prototype._stat=function(A,D){var P=this._makeAbs(A),F=A.slice(-1)==="/";if(A.length>this.maxLength)return D();if(!this.stat&&E(this.cache,P)){var V=this.cache[P];if(Array.isArray(V)&&(V="DIR"),!F||V==="DIR")return D(null,V);if(F&&V==="FILE")return D()}var H=this.statCache[P];if(H!==void 0){if(H===!1)return D(null,H);var k=H.isDirectory()?"DIR":"FILE";return F&&k==="FILE"?D():D(null,k,H)}var X=this,ee=_("stat\0"+P,(function(ne,ie){if(ie&&ie.isSymbolicLink())return o.stat(P,(function(Ee,K){Ee?X._stat2(A,P,null,ie,D):X._stat2(A,P,Ee,K,D)}));X._stat2(A,P,ne,ie,D)}));ee&&o.lstat(P,ee)},x.prototype._stat2=function(A,D,P,F,V){if(P&&(P.code==="ENOENT"||P.code==="ENOTDIR"))return this.statCache[D]=!1,V();var H=A.slice(-1)==="/";if(this.statCache[D]=F,D.slice(-1)==="/"&&F&&!F.isDirectory())return V(null,!1,F);var k=!0;return F&&(k=F.isDirectory()?"DIR":"FILE"),this.cache[D]=this.cache[D]||k,H&&k==="FILE"?V():V(null,k,F)}},4548:(n,s,i)=>{n.exports=E,E.GlobSync=_;var o=i(2058),a=i(84),c=i(836),u=(c.Minimatch,i(808).Glob,i(970),i(7072)),l=i(6608),f=i(4832),p=i(9712),d=(p.alphasort,p.alphasorti,p.setopts),m=p.ownProp,g=p.childrenIgnored,h=p.isIgnored;function E(S,y){if(typeof y=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
173
+ # ${S.title}${y}`}:a.noop])(_,S)},yaml:function(_,S){return a.log("trace","formatToYaml",S),a.pipe([function(){return c(_,S)},l,d,m,S.title?function(y){return{[S.title]:y}}:a.noop,g,S.console?u:a.noop])(_,S)}}},6732:(n,s,i)=>{"use strict";i(5888);var o=i(224);n.exports={getNodeInfo:function(){return o.log("trace","getNodeInfo"),Promise.all([o.isWindows?o.run("node -v").then(o.findVersion):o.which("node").then((function(a){return a?o.run(a+" -v"):Promise.resolve("")})).then(o.findVersion),o.which("node")]).then((function(a){return o.determineFound("Node",a[0],a[1])}))},getnpmInfo:function(){return o.log("trace","getnpmInfo"),Promise.all([o.run("npm -v"),o.which("npm")]).then((function(a){return o.determineFound("npm",a[0],a[1])}))},getWatchmanInfo:function(){return o.log("trace","getWatchmanInfo"),Promise.all([o.which("watchman").then((function(a){return a?o.run(a+" -v"):void 0})),o.which("watchman")]).then((function(a){return o.determineFound("Watchman",a[0],a[1])}))},getYarnInfo:function(){return o.log("trace","getYarnInfo"),Promise.all([o.run("yarn -v"),o.which("yarn")]).then((function(a){return o.determineFound("Yarn",a[0],a[1])}))},getpnpmInfo:function(){return o.log("trace","getpnpmInfo"),Promise.all([o.run("pnpm -v"),o.which("pnpm")]).then((function(a){return o.determineFound("pnpm",a[0],a[1])}))},getbunInfo:function(){return o.log("trace","getbunInfo"),Promise.all([o.run("bun -v"),o.which("bun")]).then((function(a){return o.determineFound("bun",a[0],a[1])}))},getDenoInfo:function(){return o.log("trace","getDenoInfo"),Promise.all([o.isWindows?o.run("deno --version").then(o.findVersion):o.which("deno").then((function(a){return a?o.run(a+" --version"):Promise.resolve("")})).then(o.findVersion),o.which("deno")]).then((function(a){return o.determineFound("Deno",a[0],a[1])}))}}},2524:(n,s,i)=>{"use strict";i(3708),i(5888),i(8412);var o=i(2058),a=i(8558),c=i(224),u=i(7072);function l(f,p,d){var m;return(c.isLinux?c.run("firefox --version").then((function(g){return g.replace(/^.* ([^ ]*)/g,"$1")})):c.isMacOS&&typeof p=="string"&&p?c.getDarwinApplicationVersion(p):c.isWindows&&typeof d=="string"&&d?c.windowsExeExists(d).then((function(g){return m=g,g?c.run(`powershell "& '${g}' -v | Write-Output"`).then((function(h){return c.findVersion(h)})):c.NA})):Promise.resolve(c.NA)).then((function(g){return c.determineFound(f,g,m||c.NA)}))}n.exports={getBraveBrowserInfo:function(){return c.log("trace","getBraveBrowser"),(c.isLinux?c.run("brave --version || brave-browser --version").then((function(f){return f.replace(/^.* ([^ ]*)/g,"$1")})):c.isMacOS?c.getDarwinApplicationVersion(c.browserBundleIdentifiers["Brave Browser"]).then(c.findVersion):Promise.resolve("N/A")).then((function(f){return c.determineFound("Brave Browser",f,"N/A")}))},getChromeInfo:function(){var f;if(c.log("trace","getChromeInfo"),c.isLinux)f=c.run("google-chrome --version").then((function(m){return m.replace(" dev","").replace(/^.* ([^ ]*)/g,"$1")}));else if(c.isMacOS)f=c.getDarwinApplicationVersion(c.browserBundleIdentifiers.Chrome).then(c.findVersion);else if(c.isWindows){var p;try{var d=[process.env.ProgramFiles,process.env["ProgramFiles(x86)"]].filter(Boolean).map((function(m){try{return o.readdirSync(u.join(m,"Google/Chrome/Application"))}catch{return[]}})).reduce((function(m,g){return m.concat(g)}),[]);p=d.length?c.findVersion(d.join(`
174
+ `)):c.NotFound}catch{p=c.NotFound}f=Promise.resolve(p)}else f=Promise.resolve("N/A");return f.then((function(m){return c.determineFound("Chrome",m,"N/A")}))},getChromeCanaryInfo:function(){return c.log("trace","getChromeCanaryInfo"),c.getDarwinApplicationVersion(c.browserBundleIdentifiers["Chrome Canary"]).then((function(f){return c.determineFound("Chrome Canary",f,"N/A")}))},getChromiumInfo:function(){return c.log("trace","getChromiumInfo"),(c.isLinux?c.run("chromium --version").then(c.findVersion):Promise.resolve("N/A")).then((function(f){return c.determineFound("Chromium",f,"N/A")}))},getEdgeInfo:function(){var f;if(c.log("trace","getEdgeInfo"),c.isWindows&&a.release().split(".")[0]==="10"){var p={Spartan:"Microsoft.MicrosoftEdge",Chromium:"Microsoft.MicrosoftEdge.Stable",ChromiumDev:"Microsoft.MicrosoftEdge.Dev"};f=Promise.all(Object.keys(p).map((function(d){return(function(m,g){return c.run(`powershell get-appxpackage ${m}`).then((function(h){if(c.findVersion(h)!=="")return`${g} (${c.findVersion(h)})`}))})(p[d],d)})).filter((function(d){return d!==void 0})))}else{if(!c.isMacOS)return Promise.resolve("N/A");f=c.getDarwinApplicationVersion(c.browserBundleIdentifiers["Microsoft Edge"])}return f.then((function(d){return c.determineFound("Edge",Array.isArray(d)?d.filter((function(m){return m!==void 0})):d,c.NA)}))},getFirefoxInfo:function(){return c.log("trace","getFirefoxInfo"),l("Firefox",c.browserBundleIdentifiers.Firefox,"Mozilla Firefox/firefox.exe")},getFirefoxDeveloperEditionInfo:function(){return c.log("trace","getFirefoxDeveloperEditionInfo"),l("Firefox Developer Edition",c.browserBundleIdentifiers["Firefox Developer Edition"],"Firefox Developer Edition/firefox.exe")},getFirefoxNightlyInfo:function(){return c.log("trace","getFirefoxNightlyInfo"),(c.isLinux?c.run("firefox-trunk --version").then((function(f){return f.replace(/^.* ([^ ]*)/g,"$1")})):c.isMacOS?c.getDarwinApplicationVersion(c.browserBundleIdentifiers["Firefox Nightly"]):Promise.resolve("N/A")).then((function(f){return c.determineFound("Firefox Nightly",f,"N/A")}))},getInternetExplorerInfo:function(){var f;if(c.log("trace","getInternetExplorerInfo"),c.isWindows){var p=[process.env.SYSTEMDRIVE||"C:","Program Files","Internet Explorer","iexplore.exe"].join("\\\\");f=c.run(`wmic datafile where "name='${p}'" get Version`).then(c.findVersion)}else f=Promise.resolve("N/A");return f.then((function(d){return c.determineFound("Internet Explorer",d,"N/A")}))},getSafariTechnologyPreviewInfo:function(){return c.log("trace","getSafariTechnologyPreviewInfo"),c.getDarwinApplicationVersion(c.browserBundleIdentifiers["Safari Technology Preview"]).then((function(f){return c.determineFound("Safari Technology Preview",f,"N/A")}))},getSafariInfo:function(){return c.log("trace","getSafariInfo"),c.getDarwinApplicationVersion(c.browserBundleIdentifiers.Safari).then((function(f){return c.determineFound("Safari",f,"N/A")}))}}},6620:(n,s,i)=>{"use strict";i(7360),i(5888);var o=i(224);n.exports={getMongoDBInfo:function(){return o.log("trace","getMongoDBInfo"),Promise.all([o.run("mongo --version").then(o.findVersion),o.which("mongo")]).then((function(a){return o.determineFound("MongoDB",a[0],a[1])}))},getMySQLInfo:function(){return o.log("trace","getMySQLInfo"),Promise.all([o.run("mysql --version").then((function(a){return`${o.findVersion(a,null,1)}${a.includes("MariaDB")?" (MariaDB)":""}`})),o.which("mysql")]).then((function(a){return o.determineFound("MySQL",a[0],a[1])}))},getPostgreSQLInfo:function(){return o.log("trace","getPostgreSQLInfo"),Promise.all([o.run("postgres --version").then(o.findVersion),o.which("postgres")]).then((function(a){return o.determineFound("PostgreSQL",a[0],a[1])}))},getSQLiteInfo:function(){return o.log("trace","getSQLiteInfo"),Promise.all([o.run("sqlite3 --version").then(o.findVersion),o.which("sqlite3")]).then((function(a){return o.determineFound("SQLite",a[0],a[1])}))}}},3224:(n,s,i)=>{"use strict";i(3708),i(8412),i(5888);var o=i(7072),a=i(224);n.exports={getAndroidStudioInfo:function(){var c=Promise.resolve("N/A");if(a.isMacOS){var u=[o.join("/","Applications","Android Studio.app","Contents","Info.plist"),o.join(process.env.HOME,"Applications","Android Studio.app","Contents","Info.plist"),o.join("/","Applications","JetBrains Toolbox","Android Studio.app","Contents","Info.plist"),o.join(process.env.HOME,"Applications","JetBrains Toolbox","Android Studio.app","Contents","Info.plist")];c=Promise.all(u.map((function(l){return a.fileExists(l).then((function(f){if(!f)return null;var p=a.generatePlistBuddyCommand(l.replace(/ /g,"\\ "),["CFBundleShortVersionString","CFBundleVersion"]);return a.run(p).then((function(d){return d.split(`
175
+ `).join(" ")}))}))}))).then((function(l){return l.find((function(f){return f!==null}))||a.NotFound}))}else a.isLinux?c=Promise.all([a.run('cat /opt/android-studio/bin/studio.sh | grep "$Home/.AndroidStudio" | head -1').then(a.findVersion),a.run("cat /opt/android-studio/build.txt")]).then((function(l){return`${l[0]} ${l[1]}`.trim()||a.NotFound})):a.isWindows&&(c=Promise.all([a.run('wmic datafile where name="C:\\\\Program Files\\\\Android\\\\Android Studio\\\\bin\\\\studio.exe" get Version').then((function(l){return l.replace(/(\r\n|\n|\r)/gm,"")})),a.run('type "C:\\\\Program Files\\\\Android\\\\Android Studio\\\\build.txt"').then((function(l){return l.replace(/(\r\n|\n|\r)/gm,"")}))]).then((function(l){return`${l[0]} ${l[1]}`.trim()||a.NotFound})));return c.then((function(l){return a.determineFound("Android Studio",l)}))},getAtomInfo:function(){return a.log("trace","getAtomInfo"),Promise.all([a.getDarwinApplicationVersion(a.ideBundleIdentifiers.Atom),"N/A"]).then((function(c){return a.determineFound("Atom",c[0],c[1])}))},getEmacsInfo:function(){return a.log("trace","getEmacsInfo"),a.isMacOS||a.isLinux?Promise.all([a.run("emacs --version").then(a.findVersion),a.which("emacs")]).then((function(c){return a.determineFound("Emacs",c[0],c[1])})):Promise.resolve(["Emacs","N/A"])},getIntelliJInfo:function(){return a.log("trace","getIntelliJInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.IntelliJ).then((function(c){return a.determineFound("IntelliJ",c)}))},getNanoInfo:function(){return a.log("trace","getNanoInfo"),a.isLinux?Promise.all([a.run("nano --version").then(a.findVersion),a.which("nano")]).then((function(c){return a.determineFound("Nano",c[0],c[1])})):Promise.resolve(["Nano","N/A"])},getNvimInfo:function(){return a.log("trace","getNvimInfo"),a.isMacOS||a.isLinux?Promise.all([a.run("nvim --version").then(a.findVersion),a.which("nvim")]).then((function(c){return a.determineFound("Nvim",c[0],c[1])})):Promise.resolve(["Vim","N/A"])},getPhpStormInfo:function(){return a.log("trace","getPhpStormInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.PhpStorm).then((function(c){return a.determineFound("PhpStorm",c)}))},getSublimeTextInfo:function(){return a.log("trace","getSublimeTextInfo"),Promise.all([a.run("subl --version").then((function(c){return a.findVersion(c,/\d+/)})),a.which("subl")]).then((function(c){return c[0]===""&&a.isMacOS?(a.log("trace","getSublimeTextInfo using plist"),Promise.all([a.getDarwinApplicationVersion(a.ideBundleIdentifiers["Sublime Text"]),"N/A"])):c})).then((function(c){return a.determineFound("Sublime Text",c[0],c[1])}))},getVimInfo:function(){return a.log("trace","getVimInfo"),a.isMacOS||a.isLinux?Promise.all([a.run("vim --version").then(a.findVersion),a.which("vim")]).then((function(c){return a.determineFound("Vim",c[0],c[1])})):Promise.resolve(["Vim","N/A"])},getVSCodeInfo:function(){return a.log("trace","getVSCodeInfo"),Promise.all([a.run("code --version").then(a.findVersion),a.which("code")]).then((function(c){return a.determineFound("VSCode",c[0],c[1])}))},getCursorInfo:function(){return a.log("trace","getCursorInfo"),Promise.all([a.run("cursor --version").then(a.findVersion),a.which("cursor")]).then((function(c){return a.determineFound("Cursor",c[0],c[1])}))},getClaudeCodeInfo:function(){return a.log("trace","getClaudeCodeInfo"),Promise.all([a.run("claude --version").then(a.findVersion),a.which("claude")]).then((function(c){return a.determineFound("Claude Code",c[0],c[1])}))},getopencodeInfo:function(){return a.log("trace","getopencodeInfo"),Promise.all([a.run("opencode --version").then(a.findVersion),a.which("opencode")]).then((function(c){return a.determineFound("opencode",c[0],c[1])}))},getCodexInfo:function(){return a.log("trace","getCodexInfo"),Promise.all([a.run("codex --version").then(a.findVersion),a.which("codex")]).then((function(c){return a.determineFound("Codex",c[0],c[1])}))},getVisualStudioInfo:function(){return a.log("trace","getVisualStudioInfo"),a.isWindows?a.run(`"${process.env["ProgramFiles(x86)"]}/Microsoft Visual Studio/Installer/vswhere.exe" -format json -prerelease`).then((function(c){var u=JSON.parse(c).map((function(l){return{Version:l.installationVersion,DisplayName:l.displayName}}));return a.determineFound("Visual Studio",u.map((function(l){return`${l.Version} (${l.DisplayName})`})))})).catch((function(){return Promise.resolve(["Visual Studio",a.NotFound])})):Promise.resolve(["Visual Studio",a.NA])},getWebStormInfo:function(){return a.log("trace","getWebStormInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.WebStorm).then((function(c){return a.determineFound("WebStorm",c)}))},getXcodeInfo:function(){return a.log("trace","getXcodeInfo"),a.isMacOS?Promise.all([a.which("xcodebuild").then((function(c){return a.run(c+" -version")})).then((function(c){return`${a.findVersion(c)}/${c.split("Build version ")[1]}`})),a.which("xcodebuild")]).then((function(c){return a.determineFound("Xcode",c[0],c[1])})):Promise.resolve(["Xcode","N/A"])}}},9892:(n,s,i)=>{"use strict";function o(T,b,v){return b in T?Object.defineProperty(T,b,{value:v,enumerable:!0,configurable:!0,writable:!0}):T[b]=v,T}i(5584);var a=i(6304),c=i(224),u=i(6732),l=i(2524),f=i(6620),p=i(3224),d=i(6436),m=i(760),g=i(2060),h=i(7508),E=i(9284),_=i(8144),S=i(5882),y=i(9676);n.exports=Object.assign({},c,a,(function(T){for(var b=1;b<arguments.length;b++){var v=arguments[b]!=null?arguments[b]:{},x=Object.keys(v);typeof Object.getOwnPropertySymbols=="function"&&(x=x.concat(Object.getOwnPropertySymbols(v).filter((function(A){return Object.getOwnPropertyDescriptor(v,A).enumerable})))),x.forEach((function(A){o(T,A,v[A])}))}return T})({},u,l,f,p,d,m,g,h,E,_,S,y))},6436:(n,s,i)=>{"use strict";i(5888);var o=i(224);n.exports={getBashInfo:function(){return o.log("trace","getBashInfo"),Promise.all([o.run("bash --version").then(o.findVersion),o.which("bash")]).then((function(a){return o.determineFound("Bash",a[0],a[1])}))},getElixirInfo:function(){return o.log("trace","getElixirInfo"),Promise.all([o.run("elixir --version").then((function(a){return o.findVersion(a,/[Elixir]+\s([\d+.[\d+|.]+)/,1)})),o.which("elixir")]).then((function(a){return Promise.resolve(o.determineFound("Elixir",a[0],a[1]))}))},getErlangInfo:function(){return o.log("trace","getErlangInfo"),Promise.all([o.run(`erl -eval "{ok, Version} = file:read_file(filename:join([code:root_dir(), 'releases', erlang:system_info(otp_release), 'OTP_VERSION'])), io:fwrite(Version), halt()." -noshell`).then(o.findVersion),o.which("erl")]).then((function(a){return Promise.resolve(o.determineFound("Erlang",a[0],a[1]))}))},getGoInfo:function(){return o.log("trace","getGoInfo"),Promise.all([o.run("go version").then(o.findVersion),o.which("go")]).then((function(a){return o.determineFound("Go",a[0],a[1])}))},getJavaInfo:function(){return o.log("trace","getJavaInfo"),Promise.all([o.run("javac -version",{unify:!0}).then((function(a){return o.findVersion(a,/\d+\.[\w+|.|_|-]+/)})),o.which("javac")]).then((function(a){return o.determineFound("Java",a[0],a[1])}))},getPerlInfo:function(){return o.log("trace","getPerlInfo"),Promise.all([o.run("perl -v").then(o.findVersion),o.which("perl")]).then((function(a){return o.determineFound("Perl",a[0],a[1])}))},getPHPInfo:function(){return o.log("trace","getPHPInfo"),Promise.all([o.run("php -v").then(o.findVersion),o.which("php")]).then((function(a){return o.determineFound("PHP",a[0],a[1])}))},getProtocInfo:function(){return o.log("trace","getProtocInfo"),Promise.all([o.run("protoc --version").then(o.findVersion),o.which("protoc")]).then((function(a){return o.determineFound("Protoc",a[0],a[1])}))},getPythonInfo:function(){return o.log("trace","getPythonInfo"),Promise.all([o.run("python -V 2>&1").then(o.findVersion),o.which("python")]).then((function(a){return o.determineFound("Python",a[0],a[1])}))},getPython3Info:function(){return o.log("trace","getPython3Info"),Promise.all([o.run("python3 -V 2>&1").then(o.findVersion),o.which("python3")]).then((function(a){return o.determineFound("Python3",a[0],a[1])}))},getRInfo:function(){return o.log("trace","getRInfo"),Promise.all([o.run("R --version",{unify:!0}).then(o.findVersion),o.which("R")]).then((function(a){return o.determineFound("R",a[0],a[1])}))},getRubyInfo:function(){return o.log("trace","getRubyInfo"),Promise.all([o.run("ruby -v").then(o.findVersion),o.which("ruby")]).then((function(a){return o.determineFound("Ruby",a[0],a[1])}))},getRustInfo:function(){return o.log("trace","getRustInfo"),Promise.all([o.run("rustc --version").then(o.findVersion),o.which("rustc")]).then((function(a){return o.determineFound("Rust",a[0],a[1])}))},getZigInfo:function(){return o.log("trace","getZigInfo"),Promise.all([o.run("zig version").then(o.findVersion),o.which("zig")]).then((function(a){return o.determineFound("Zig",a[0],a[1])}))},getScalaInfo:function(){return o.log("trace","getScalaInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("scalac -version").then(o.findVersion),o.which("scalac")]).then((function(a){return o.determineFound("Scala",a[0],a[1])})):Promise.resolve(["Scala","N/A"])}}},760:(n,s,i)=>{"use strict";i(5888);var o=i(224);n.exports={getAptInfo:function(){return o.log("trace","getAptInfo"),o.isLinux?Promise.all([o.run("apt --version").then(o.findVersion),o.which("apt")]).then((function(a){return o.determineFound("Apt",a[0],a[1])})):Promise.all(["Apt","N/A"])},getCargoInfo:function(){return o.log("trace","getCargoInfo"),Promise.all([o.run("cargo --version").then(o.findVersion),o.which("cargo")]).then((function(a){return o.determineFound("Cargo",a[0],a[1])}))},getCocoaPodsInfo:function(){return o.log("trace","getCocoaPodsInfo"),o.isMacOS?Promise.all([o.run("pod --version").then(o.findVersion),o.which("pod")]).then((function(a){return o.determineFound("CocoaPods",a[0],a[1])})):Promise.all(["CocoaPods","N/A"])},getComposerInfo:function(){return o.log("trace","getComposerInfo"),Promise.all([o.run("composer --version").then(o.findVersion),o.which("composer").then(o.condensePath)]).then((function(a){return o.determineFound("Composer",a[0],a[1])}))},getGradleInfo:function(){return o.log("trace","getGradleInfo"),Promise.all([o.run("gradle --version").then(o.findVersion),o.which("gradle").then(o.condensePath)]).then((function(a){return o.determineFound("Gradle",a[0],a[1])}))},getHomebrewInfo:function(){return o.log("trace","getHomebrewInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("brew --version").then(o.findVersion),o.which("brew")]).then((function(a){return o.determineFound("Homebrew",a[0],a[1])})):Promise.all(["Homebrew","N/A"])},getMavenInfo:function(){return o.log("trace","getMavenInfo"),Promise.all([o.run("mvn --version").then(o.findVersion),o.which("mvn").then(o.condensePath)]).then((function(a){return o.determineFound("Maven",a[0],a[1])}))},getpip2Info:function(){return o.log("trace","getpip2Info"),Promise.all([o.run("pip2 --version").then(o.findVersion),o.which("pip2").then(o.condensePath)]).then((function(a){return o.determineFound("pip2",a[0],a[1])}))},getpip3Info:function(){return o.log("trace","getpip3Info"),Promise.all([o.run("pip3 --version").then(o.findVersion),o.which("pip3").then(o.condensePath)]).then((function(a){return o.determineFound("pip3",a[0],a[1])}))},getRubyGemsInfo:function(){return o.log("trace","getRubyGemsInfo"),Promise.all([o.run("gem --version").then(o.findVersion),o.which("gem")]).then((function(a){return o.determineFound("RubyGems",a[0],a[1])}))},getYumInfo:function(){return o.log("trace","getYumInfo"),o.isLinux?Promise.all([o.run("yum --version").then(o.findVersion),o.which("yum")]).then((function(a){return o.determineFound("Yum",a[0],a[1])})):Promise.all(["Yum","N/A"])}}},2060:(n,s,i)=>{"use strict";i(5888);var o=i(224),a=i(7072);n.exports={getYarnWorkspacesInfo:function(){return o.log("trace","getYarnWorkspacesInfo"),Promise.all([o.run("yarn -v"),o.getPackageJsonByPath("package.json").then((function(c){return c&&"workspaces"in c}))]).then((function(c){var u="Yarn Workspaces";return c[0]&&c[1]?Promise.resolve([u,c[0]]):Promise.resolve([u,"Not Found"])}))},getLernaInfo:function(){return o.log("trace","getLernaInfo"),Promise.all([o.getPackageJsonByName("lerna").then((function(c){return c&&c.version})),o.fileExists(a.join(process.cwd(),"lerna.json"))]).then((function(c){var u="Lerna";return c[0]&&c[1]?Promise.resolve([u,c[0]]):Promise.resolve([u,"Not Found"])}))}}},7508:(n,s,i)=>{"use strict";i(4880),i(5888),i(3708);var o=i(8558),a=i(2058),c=i(7072),u=i(224);n.exports={getAndroidSDKInfo:function(){return u.run("sdkmanager --list").then((function(l){return!l&&process.env.ANDROID_HOME?u.run(`${process.env.ANDROID_HOME}/tools/bin/sdkmanager --list`):l})).then((function(l){return!l&&process.env.ANDROID_HOME?u.run(`${process.env.ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --list`):l})).then((function(l){return!l&&u.isMacOS?u.run("~/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager --list"):l})).then((function(l){return!l&&u.isMacOS?u.run("~/Library/Android/sdk/tools/bin/sdkmanager --list"):l})).then((function(l){if(!l&&u.isWindows){var f=c.join(o.homedir(),"AppData/Local/Android/Sdk/cmdline-tools/latest/bin/sdkmanager");return u.run(`${f} --list`)}return l})).then((function(l){var f=u.parseSDKManagerOutput(l),p=function(m){var g,h=c.join(m,"source.properties");try{g=a.readFileSync(h,"utf8")}catch(y){if(y.code==="ENOENT")return;throw y}for(var E=g.split(`
176
+ `),_=0;_<E.length;_+=1){var S=E[_].split("=");if(S.length===2&&S[0].trim()==="Pkg.Revision")return S[1].trim()}},d=process.env.ANDROID_NDK?p(process.env.ANDROID_NDK):process.env.ANDROID_NDK_HOME?p(process.env.ANDROID_NDK_HOME):process.env.ANDROID_HOME?p(c.join(process.env.ANDROID_HOME,"ndk-bundle")):void 0;return f.buildTools.length||f.apiLevels.length||f.systemImages.length||d?Promise.resolve(["Android SDK",{"API Levels":f.apiLevels||u.NotFound,"Build Tools":f.buildTools||u.NotFound,"System Images":f.systemImages||u.NotFound,"Android NDK":d||u.NotFound}]):Promise.resolve(["Android SDK",u.NotFound])}))},getiOSSDKInfo:function(){return u.isMacOS?u.run("xcodebuild -showsdks").then((function(l){return l.match(/[\w]+\s[\d|.]+/g)})).then(u.uniq).then((function(l){return l.length?["iOS SDK",{Platforms:l}]:["iOS SDK",u.NotFound]})):Promise.resolve(["iOS SDK","N/A"])},getWindowsSDKInfo:function(){if(u.log("trace","getWindowsSDKInfo"),u.isWindows){var l=u.NotFound;return u.run("reg query HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppModelUnlock").then((function(f){l=f.split(/[\r\n]/g).slice(1).filter((function(d){return d!==""})).reduce((function(d,m){var g=m.match(/[^\s]+/g);return g[2]!=="0x0"&&g[2]!=="0x1"||(g[2]=g[2]==="0x1"?"Enabled":"Disabled"),d[g[0]]=g[2],d}),{}),Object.keys(l).length===0&&(l=u.NotFound);try{var p=a.readdirSync(`${process.env["ProgramFiles(x86)"]}/Windows Kits/10/Platforms/UAP`);l.Versions=p}catch{}return Promise.resolve(["Windows SDK",l])}))}return Promise.resolve(["Windows SDK",u.NA])}}},9284:(n,s,i)=>{"use strict";i(5888);var o=i(224);n.exports={getApacheInfo:function(){return o.log("trace","getApacheInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("apachectl -v").then(o.findVersion),o.which("apachectl")]).then((function(a){return o.determineFound("Apache",a[0],a[1])})):Promise.resolve(["Apache","N/A"])},getNginxInfo:function(){return o.log("trace","getNginxInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("nginx -v 2>&1").then(o.findVersion),o.which("nginx")]).then((function(a){return o.determineFound("Nginx",a[0],a[1])})):Promise.resolve(["Nginx","N/A"])}}},8144:(n,s,i)=>{"use strict";i(3708),i(4880),i(5888);var o=i(2288),a=i(224),c=i(8558);n.exports={getContainerInfo:function(){return a.log("trace","getContainerInfo"),a.isLinux?Promise.all([a.fileExists("/.dockerenv"),a.readFile("/proc/self/cgroup")]).then((function(u){return a.log("trace","getContainerInfoThen",u),Promise.resolve(["Container",u[0]||u[1]?"Yes":"N/A"])})).catch((function(u){return a.log("trace","getContainerInfoCatch",u)})):Promise.resolve(["Container","N/A"])},getCPUInfo:function(){var u;a.log("trace","getCPUInfo");try{var l=c.cpus();u="("+l.length+") "+c.arch()+" "+l[0].model}catch{u="Unknown"}return Promise.all(["CPU",u])},getMemoryInfo:function(){return a.log("trace","getMemoryInfo"),Promise.all(["Memory",`${a.toReadableBytes(c.freemem())} / ${a.toReadableBytes(c.totalmem())}`])},getOSInfo:function(){var u,l;if(a.log("trace","getOSInfo"),a.isMacOS)u=a.run("sw_vers -productVersion ");else if(a.isLinux)u=a.run("cat /etc/os-release").then((function(p){var d=(p||"").match(/NAME="(.+)"/)||"",m=(p||"").match(/VERSION="(.+)"/)||["",""],g=m!==null?m[1]:"";return`${d[1]} ${g}`.trim()||""}));else if(a.isWindows){u=Promise.resolve(c.release());var f=c.release().split(".");f[0]==="10"&&f[1]==="0"&&f[2]>=22e3&&(l="Windows 11")}else u=Promise.resolve();return u.then((function(p){return l=l||o(c.platform(),c.release()),p&&(l+=` ${p}`),["OS",l]}))},getShellInfo:function(){if(a.log("trace","getShellInfo",process.env),a.isMacOS||a.isLinux){var u=process.env.SHELL||a.runSync("getent passwd $LOGNAME | cut -d: -f7 | head -1"),l=`${u} --version 2>&1`;return u.match("/bin/ash")&&(l=`${u} --help 2>&1`),Promise.all([a.run(l).then(a.findVersion),a.which(u)]).then((function(f){return a.determineFound("Shell",f[0]||"Unknown",f[1])}))}return Promise.resolve(["Shell","N/A"])},getGLibcInfo:function(){return a.log("trace","getGLibc"),a.isLinux?Promise.all([a.run("ldd --version").then(a.findVersion)]).then((function(u){return a.determineFound("GLibc",u[0]||"Unknown")})):Promise.resolve(["GLibc","N/A"])}}},5882:(n,s,i)=>{"use strict";i(5888);var o=i(224);n.exports={getBazelInfo:function(){return o.log("trace","getBazelInfo"),Promise.all([o.run("bazel --version").then(o.findVersion),o.which("bazel")]).then((function(a){return o.determineFound("Bazel",a[0],a[1])}))},getCMakeInfo:function(){return o.log("trace","getCMakeInfo"),Promise.all([o.run("cmake --version").then(o.findVersion),o.which("cmake")]).then((function(a){return o.determineFound("CMake",a[0],a[1])}))},getGCCInfo:function(){return o.log("trace","getGCCInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("gcc -v 2>&1").then(o.findVersion),o.which("gcc")]).then((function(a){return o.determineFound("GCC",a[0],a[1])})):Promise.resolve(["GCC","N/A"])},getClangInfo:function(){return o.log("trace","getClangInfo"),Promise.all([o.run("clang --version").then(o.findVersion),o.which("clang")]).then((function(a){return o.determineFound("Clang",a[0],a[1])}))},getGitInfo:function(){return o.log("trace","getGitInfo"),Promise.all([o.run("git --version").then(o.findVersion),o.which("git")]).then((function(a){return o.determineFound("Git",a[0],a[1])}))},getGitLFSInfo:function(){return o.log("trace","getGitLFSInfo"),Promise.all([o.run("git lfs version").then(o.findVersion),o.which("git-lfs")]).then((function(a){return o.determineFound("Git LFS",a[0],a[1])}))},getMakeInfo:function(){return o.log("trace","getMakeInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("make --version").then(o.findVersion),o.which("make")]).then((function(a){return o.determineFound("Make",a[0],a[1])})):Promise.resolve(["Make","N/A"])},getNinjaInfo:function(){return o.log("trace","getNinjaInfo"),Promise.all([o.run("ninja --version").then(o.findVersion),o.which("ninja")]).then((function(a){return o.determineFound("Ninja",a[0],a[1])}))},getMercurialInfo:function(){return o.log("trace","getMercurialInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("hg --version").then(o.findVersion),o.which("hg")]).then((function(a){return o.determineFound("Mercurial",a[0],a[1])})):Promise.resolve(["Mercurial","N/A"])},getSubversionInfo:function(){return o.log("trace","getSubversionInfo"),o.isMacOS||o.isLinux?Promise.all([o.run("svn --version").then(o.findVersion),o.which("svn")]).then((function(a){return o.determineFound("Subversion",a[0],a[1])})):Promise.resolve(["Subversion","N/A"])},getFFmpegInfo:function(){return o.log("trace","getFFmpegInfo"),Promise.all([o.run("ffmpeg -version").then(o.findVersion),o.which("ffmpeg")]).then((function(a){return o.determineFound("FFmpeg",a[0],a[1])}))},getCurlInfo:function(){return o.log("trace","getCurlInfo"),Promise.all([o.run("curl --version").then(o.findVersion),o.which("curl")]).then((function(a){return o.determineFound("Curl",a[0],a[1])}))},getOpenSSLInfo:function(){return o.log("trace","getOpenSSLInfo"),Promise.all([o.run("openssl version").then(o.findVersion),o.which("openssl")]).then((function(a){return o.determineFound("OpenSSL",a[0],a[1])}))},getccacheInfo:function(){return o.log("trace","getccacheInfo"),Promise.all([o.run("ccache -V").then(o.findVersion),o.which("ccache")]).then((function(a){return o.determineFound("ccache",a[0],a[1])}))},get7zInfo:function(){o.log("trace","get7zInfo");var a=["7z","7zz"],c=function(){return Promise.all(a.map((function(u){return o.which(u)}))).then((function(u){var l=u.findIndex(Boolean);return l>=0?{bin:a[l],path:u[l]}:null}))};return o.isWindows?o.windowsExeExists("7-Zip/7z.exe").then((function(u){return u?Promise.all([o.run(`powershell "& '${u}' i | Write-Output"`).then(o.findVersion),Promise.resolve(u)]).then((function(l){return o.determineFound("7z",l[0],l[1])})):c().then((function(l){return l?Promise.all([o.run(`${l.bin} i`).then(o.findVersion),Promise.resolve(l.path)]).then((function(f){return o.determineFound("7z",f[0],f[1])})):o.determineFound("7z","",void 0)}))})):c().then((function(u){return u?Promise.all([o.run(`${u.bin} i`).then(o.findVersion),Promise.resolve(u.path)]).then((function(l){return o.determineFound("7z",l[0],l[1])})):o.determineFound("7z","",void 0)}))},getClashMetaInfo:function(){o.log("trace","getClashMetaInfo");var a=["mihomo"];return Promise.all(a.map((function(c){return o.which(c)}))).then((function(c){var u=c.findIndex(Boolean);return u>=0?{bin:a[u],path:c[u]}:null})).then((function(c){return c?Promise.all([o.run(`${c.bin} -v`).then(o.findVersion),Promise.resolve(c.path)]).then((function(u){return o.determineFound("Clash Meta",u[0],u[1])})):o.determineFound("Clash Meta","",void 0)}))},getCalibreInfo:function(){return o.log("trace","getCalibreInfo"),Promise.all([o.run("ebook-convert --version").then(o.findVersion),o.which("calibre")]).then((function(a){return o.determineFound("Calibre",a[0],a[1])}))}}},9676:(n,s,i)=>{"use strict";i(5888);var o=i(224);n.exports={getDockerInfo:function(){return o.log("trace","getDockerInfo"),Promise.all([o.run("docker --version").then(o.findVersion),o.which("docker")]).then((function(a){return o.determineFound("Docker",a[0],a[1])}))},getDockerComposeInfo:function(){return o.log("trace","getDockerComposeInfo"),Promise.all([o.run("docker-compose --version").then(o.findVersion),o.which("docker-compose")]).then((function(a){return o.determineFound("Docker Compose",a[0],a[1])}))},getParallelsInfo:function(){return o.log("trace","getParallelsInfo"),Promise.all([o.run("prlctl --version").then(o.findVersion),o.which("prlctl")]).then((function(a){return o.determineFound("Parallels",a[0],a[1])}))},getPodmanInfo:function(){return o.log("trace","getPodmanInfo"),Promise.all([o.run("podman --version").then(o.findVersion),o.which("podman")]).then((function(a){return o.determineFound("Podman",a[0],a[1])}))},getVirtualBoxInfo:function(){return o.log("trace","getVirtualBoxInfo"),Promise.all([o.run("vboxmanage --version").then(o.findVersion),o.which("vboxmanage")]).then((function(a){return o.determineFound("VirtualBox",a[0],a[1])}))},getVMwareFusionInfo:function(){return o.log("trace","getVMwareFusionInfo"),o.getDarwinApplicationVersion("com.vmware.fusion").then((function(a){return o.determineFound("VMWare Fusion",a,"N/A")}))}}},6032:n=>{"use strict";n.exports={androidSystemImages:/system-images;([\S \t]+)/g,androidAPILevels:/platforms;android-(\d+)[\S\s]/g,androidBuildTools:/build-tools;([\d|.]+)[\S\s]/g}},6304:(n,s,i)=>{"use strict";i(8412),i(9224),i(4880),i(5584),i(5888),i(7360),i(3708);var o=i(808),a=i(7072),c=i(224),u=function(l){var f=l.split("node_modules"+a.sep),p=f[f.length-1];return p.charAt(0)==="@"?[p.split(a.sep)[0],p.split(a.sep)[1]].join("/"):p.split(a.sep)[0]};n.exports={getnpmPackages:function(l,f){c.log("trace","getnpmPackages"),f||(f={});var p=null,d=null;return typeof l=="string"&&(l.includes("*")||l.includes("?")||l.includes("+")||l.includes("!")?p=l:l=l.split(",")),Promise.all(["npmPackages",c.getPackageJsonByPath("package.json").then((function(m){return Object.assign({},(m||{}).devDependencies||{},(m||{}).dependencies||{})})).then((function(m){return d=m,f.fullTree||f.duplicates||p?c.getAllPackageJsonPaths(p):Promise.resolve(Object.keys(m||[]).map((function(g){return a.join("node_modules",g,"package.json")})))})).then((function(m){return!p&&typeof l!="boolean"||f.fullTree?Array.isArray(l)?Promise.resolve((m||[]).filter((function(g){return l.includes(u(g))}))):Promise.resolve(m):Promise.resolve((m||[]).filter((function(g){return Object.keys(d||[]).includes(u(g))})))})).then((function(m){return Promise.all([m,Promise.all(m.map((function(g){return c.getPackageJsonByPath(g)})))])})).then((function(m){var g=m[0],h=m[1].reduce((function(E,_,S){return _&&_.name&&(E[_.name]||(E[_.name]={}),f.duplicates&&(E[_.name].duplicates=c.uniq((E[_.name].duplicates||[]).concat(_.version))),(g[S].match(/node_modules/g)||[]).length===1&&(E[_.name].installed=_.version)),E}),{});return Object.keys(h).forEach((function(E){h[E].duplicates&&h[E].installed&&(h[E].duplicates=h[E].duplicates.filter((function(_){return _!==h[E].installed}))),d[E]&&(h[E].wanted=d[E])})),h})).then((function(m){return f.showNotFound&&Array.isArray(l)&&l.forEach((function(g){m[g]||(m[g]="Not Found")})),m})).then((function(m){return c.sortObject(m)}))])},getnpmGlobalPackages:function(l,f){c.log("trace","getnpmGlobalPackages",l);var p=null;return typeof l=="string"?l.includes("*")||l.includes("?")||l.includes("+")||l.includes("!")?p=l:l=l.split(","):Array.isArray(l)||(l=!0),Promise.all(["npmGlobalPackages",c.run("npm get prefix --global").then((function(d){return new Promise((function(m,g){return o(a.join(d,c.isWindows?"":"lib","node_modules",p||"{*,@*/*}","package.json"),(function(h,E){h||m(E),g(h)}))}))})).then((function(d){return Promise.all(d.filter((function(m){return typeof l=="boolean"||p!==null||l.includes(u(m))})).map((function(m){return c.getPackageJsonByFullPath(m)})))})).then((function(d){return d.reduce((function(m,g){return g?Object.assign(m,{[g.name]:g.version}):m}),{})})).then((function(d){return f.showNotFound&&Array.isArray(l)&&l.forEach((function(m){d[m]||(d[m]="Not Found")})),d}))])},getpnpmGlobalPackages:function(l,f){c.log("trace","getpnpmGlobalPackages",l);var p=null;return typeof l=="string"?l.includes("*")||l.includes("?")||l.includes("+")||l.includes("!")?p=l:l=l.split(","):Array.isArray(l)||(l=!0),Promise.all(["pnpmGlobalPackages",c.run("pnpm list --global --depth=0 --json").then((function(d){var m={};try{var g=JSON.parse(d||"[]");(Array.isArray(g)?g:[g]).forEach((function(h){if(h){var E=h.dependencies||{};Object.keys(E).forEach((function(_){var S=E[_];S&&typeof S=="object"&&S.version?m[_]=S.version:typeof S=="string"&&(m[_]=S)})),h.name&&h.version&&(m[h.name]=h.version)}}))}catch(h){c.log("trace","pnpm parseJson error",h&&h.message||String(h))}return m})).then((function(d){var m=d||{};if(p!==null){var g=new RegExp("^"+p.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".")+"$");m=Object.keys(m).filter((function(h){return g.test(h)})).reduce((function(h,E){return Object.assign(h,{[E]:m[E]})}),{})}else Array.isArray(l)&&(m=Object.keys(m).filter((function(h){return l.includes(h)})).reduce((function(h,E){return Object.assign(h,{[E]:m[E]})}),{}));return f&&f.showNotFound&&Array.isArray(l)&&l.forEach((function(h){m[h]||(m[h]="Not Found")})),c.sortObject(m)}))])}}},5088:n=>{"use strict";n.exports={defaults:{System:["OS","CPU","Memory","Container","Shell"],Binaries:["Node","Yarn","npm","pnpm","bun","Deno","Watchman"],Managers:["Apt","Cargo","CocoaPods","Composer","Gradle","Homebrew","Maven","pip2","pip3","RubyGems","Yum"],Utilities:["7z","Bazel","CMake","Make","GCC","Git","Git LFS","Clang","Ninja","Mercurial","Subversion","FFmpeg","Curl","OpenSSL","ccache","Calibre","Clash Meta"],Servers:["Apache","Nginx"],Virtualization:["Docker","Docker Compose","Parallels","VirtualBox","VMware Fusion"],SDKs:["iOS SDK","Android SDK","Windows SDK"],IDEs:["Android Studio","Atom","Emacs","IntelliJ","NVim","Nano","PhpStorm","Sublime Text","VSCode","Cursor","Claude Code","Codex","opencode","Visual Studio","Vim","WebStorm","Xcode"],Languages:["Bash","Go","Elixir","Erlang","Java","Perl","PHP","Protoc","Python","Python3","R","Ruby","Rust","Scala","Zig"],Databases:["MongoDB","MySQL","PostgreSQL","SQLite"],Browsers:["Brave Browser","Chrome","Chrome Canary","Chromium","Edge","Firefox","Firefox Developer Edition","Firefox Nightly","Internet Explorer","Safari","Safari Technology Preview"],Monorepos:["Yarn Workspaces","Lerna"],npmPackages:null,npmGlobalPackages:null,pnpmGlobalPackages:null},cssnano:{System:["OS","CPU"],Binaries:["Node","Yarn","npm","pnpm","bun","Deno"],npmPackages:["cssnano","postcss"],options:{duplicates:!0}},jest:{System:["OS","CPU"],Binaries:["Node","Yarn","npm","pnpm","bun","Deno"],npmPackages:["jest"]},"react-native":{System:["OS","CPU"],Binaries:["Node","Yarn","npm","pnpm","bun","Watchman"],SDKs:["iOS SDK","Android SDK","Windows SDK"],IDEs:["Android Studio","Xcode","Visual Studio"],npmPackages:["react","react-native"],npmGlobalPackages:["react-native-cli"]},nyc:{System:["OS","CPU","Memory"],Binaries:["Node","Yarn","npm","pnpm","bun","Deno"],npmPackages:"/**/{*babel*,@babel/*/,*istanbul*,nyc,source-map-support,typescript,ts-node}"},webpack:{System:["OS","CPU"],Binaries:["Node","Yarn","npm","pnpm","bun","Deno"],npmPackages:"*webpack*",npmGlobalPackages:["webpack","webpack-cli"]},"styled-components":{System:["OS","CPU"],Binaries:["Node","Yarn","npm","pnpm","bun","Deno"],Browsers:["Chrome","Firefox","Safari"],npmPackages:"*styled-components*"},"create-react-app":{System:["OS","CPU"],Binaries:["Node","npm","Yarn","pnpm","bun"],Browsers:["Chrome","Edge","Internet Explorer","Firefox","Safari"],npmPackages:["react","react-dom","react-scripts"],npmGlobalPackages:["create-react-app"],options:{duplicates:!0,showNotFound:!0}},apollo:{System:["OS"],Binaries:["Node","npm","Yarn","pnpm","bun"],Browsers:["Chrome","Edge","Firefox","Safari"],npmPackages:"{*apollo*,@apollo/*}",npmGlobalPackages:"{*apollo*,@apollo/*}"},"react-native-web":{System:["OS","CPU"],Binaries:["Node","npm","Yarn","pnpm","bun"],Browsers:["Chrome","Edge","Internet Explorer","Firefox","Safari"],npmPackages:["react","react-native-web"],options:{showNotFound:!0}},babel:{System:["OS"],Binaries:["Node","npm","Yarn","pnpm","bun"],Monorepos:["Yarn Workspaces","Lerna"],npmPackages:"{*babel*,@babel/*,eslint,webpack,create-react-app,react-native,lerna,jest,next,rollup}"},playwright:{System:["OS","CPU","Memory","Container"],Binaries:["Node","Yarn","npm","pnpm","bun","Deno"],Languages:["Bash"],IDEs:["VSCode","Cursor","Claude Code","Codex","opencode"],npmPackages:"{playwright*,@playwright/*}"}}},224:(n,s,i)=>{"use strict";i(4880),i(4260),i(5584),i(7276),i(4228),i(3708),i(8412),i(5308),i(6568),i(5888);var o=i(7072),a=i(2058),c=i(8558),u=i(4368),l=i(8460),f=i(808),p=i(6032),d=function(T){var b=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).unify,v=b!==void 0&&b;return new Promise((function(x){u.exec(T,{stdio:[0,"pipe","ignore"]},(function(A,D,P){var F;F=v?D.toString()+P.toString():D.toString(),x((A?"":F).trim())}))}))},m=function(T){var b=Object.values(Array.prototype.slice.call(arguments).slice(1));(process.env.ENVINFO_DEBUG||"").toLowerCase()===T&&console.log(T,JSON.stringify(b))},g=function(T){return new Promise((function(b){a.readFile(T,"utf8",(function(v,x){return b(x||null)}))}))},h=function(T){return g(T).then((function(b){return b?JSON.parse(b):null}))},E=/\d+\.[\d+|.]+/g,_=function(T){m("trace","findDarwinApplication",T);var b=`mdfind "kMDItemCFBundleIdentifier=='${T}'"`;return m("trace",b),d(b).then((function(v){return v.replace(/(\s)/g,"\\ ")}))},S=function(T,b){var v=(b||["CFBundleShortVersionString"]).map((function(x){return"-c Print:"+x}));return["/usr/libexec/PlistBuddy"].concat(v).concat([T]).join(" ")},y=function(T,b){for(var v=[],x=null;(x=T.exec(b))!==null;)v.push(x);return v};n.exports={run:d,log:m,fileExists:function(T){return new Promise((function(b){a.stat(T,(function(v){return b(v?null:T)}))}))},windowsExeExists:function(T){return new Promise((function(b){var v;a.access(v=o.join(process.env.ProgramFiles,`${T}`),a.constants.R_OK,(function(x){x?a.access(v=o.join(process.env["ProgramFiles(x86)"],`${T}`),a.constants.X_OK,(function(A){b(A?null:v)})):b(v)}))}))},readFile:g,requireJson:h,versionRegex:E,findDarwinApplication:_,generatePlistBuddyCommand:S,matchAll:y,parseSDKManagerOutput:function(T){var b=T.split("Available")[0];return{apiLevels:y(p.androidAPILevels,b).map((function(v){return v[1]})),buildTools:y(p.androidBuildTools,b).map((function(v){return v[1]})),systemImages:y(p.androidSystemImages,b).map((function(v){return v[1].split("|").map((function(x){return x.trim()}))})).map((function(v){return v[0].split(";")[0]+" | "+v[2].split(" System Image")[0]}))}},isLinux:process.platform==="linux",isMacOS:process.platform==="darwin",NA:"N/A",NotFound:"Not Found",isWindows:process.platform.startsWith("win"),isObject:function(T){return typeof T=="object"&&!Array.isArray(T)},noop:function(T){return T},pipe:function(T){return function(b){return T.reduce((function(v,x){return x(v)}),b)}},browserBundleIdentifiers:{"Brave Browser":"com.brave.Browser",Chrome:"com.google.Chrome","Chrome Canary":"com.google.Chrome.canary",Firefox:"org.mozilla.firefox","Firefox Developer Edition":"org.mozilla.firefoxdeveloperedition","Firefox Nightly":"org.mozilla.nightly","Microsoft Edge":"com.microsoft.edgemac",Safari:"com.apple.Safari","Safari Technology Preview":"com.apple.SafariTechnologyPreview"},ideBundleIdentifiers:{Atom:"com.github.atom",IntelliJ:"com.jetbrains.intellij",PhpStorm:"com.jetbrains.PhpStorm","Sublime Text":"com.sublimetext.3",WebStorm:"com.jetbrains.WebStorm"},runSync:function(T){return(u.execSync(T,{stdio:[0,"pipe","ignore"]}).toString()||"").trim()},which:function(T){return new Promise((function(b){return l(T,(function(v,x){return b(x)}))}))},getDarwinApplicationVersion:function(T){var b;return m("trace","getDarwinApplicationVersion",T),b=process.platform!=="darwin"?"N/A":_(T).then((function(v){return d(S(o.join(v,"Contents","Info.plist"),["CFBundleShortVersionString"]))})),Promise.resolve(b)},uniq:function(T){return Array.from(new Set(T))},toReadableBytes:function(T){var b=Math.floor(Math.log(T)/Math.log(1024));return T?(T/Math.pow(1024,b)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB"][b]:"0 Bytes"},omit:function(T,b){return Object.keys(T).filter((function(v){return b.indexOf(v)<0})).reduce((function(v,x){return Object.assign(v,{[x]:T[x]})}),{})},pick:function(T,b){return Object.keys(T).filter((function(v){return b.indexOf(v)>=0})).reduce((function(v,x){return Object.assign(v,{[x]:T[x]})}),{})},getPackageJsonByName:function(T){return h(o.join(process.cwd(),"node_modules",T,"package.json"))},getPackageJsonByPath:function(T){return h(o.join(process.cwd(),T))},getPackageJsonByFullPath:function(T){return m("trace","getPackageJsonByFullPath",T),h(T)},getAllPackageJsonPaths:function(T){return m("trace","getAllPackageJsonPaths",T),new Promise((function(b){return f(T?o.join("node_modules",T,"package.json"):o.join("node_modules","**","package.json"),(function(v,x){return b(x.map(o.normalize)||[])}))}))},sortObject:function(T){return Object.keys(T).sort().reduce((function(b,v){return b[v]=T[v],b}),{})},findVersion:function(T,b,v){m("trace","findVersion",T,b,v);var x=v||0,A=b||E,D=T.match(A);return D?D[x]:T},condensePath:function(T){return(T||"").replace(c.homedir(),"~")},determineFound:function(T,b,v){return m("trace","determineFound",T,b,v),b==="N/A"?Promise.resolve([T,"N/A"]):b&&Object.keys(b).length!==0?v?Promise.resolve([T,b,v]):Promise.resolve([T,b]):Promise.resolve([T,"Not Found"])}}},9016:n=>{"use strict";function s(a,c,u){a instanceof RegExp&&(a=i(a,u)),c instanceof RegExp&&(c=i(c,u));var l=o(a,c,u);return l&&{start:l[0],end:l[1],pre:u.slice(0,l[0]),body:u.slice(l[0]+a.length,l[1]),post:u.slice(l[1]+c.length)}}function i(a,c){var u=c.match(a);return u?u[0]:null}function o(a,c,u){var l,f,p,d,m,g=u.indexOf(a),h=u.indexOf(c,g+1),E=g;if(g>=0&&h>0){for(l=[],p=u.length;E>=0&&!m;)E==g?(l.push(E),g=u.indexOf(a,E+1)):l.length==1?m=[l.pop(),h]:((f=l.pop())<p&&(p=f,d=h),h=u.indexOf(c,E+1)),E=g<h&&g>=0?g:h;l.length&&(m=[p,d])}return m}n.exports=s,s.range=o},1620:(n,s,i)=>{var o=i(6596),a=i(9016);n.exports=function(T){return T?(T.substr(0,2)==="{}"&&(T="\\{\\}"+T.substr(2)),y((function(b){return b.split("\\\\").join(c).split("\\{").join(u).split("\\}").join(l).split("\\,").join(f).split("\\.").join(p)})(T),!0).map(m)):[]};var c="\0SLASH"+Math.random()+"\0",u="\0OPEN"+Math.random()+"\0",l="\0CLOSE"+Math.random()+"\0",f="\0COMMA"+Math.random()+"\0",p="\0PERIOD"+Math.random()+"\0";function d(T){return parseInt(T,10)==T?parseInt(T,10):T.charCodeAt(0)}function m(T){return T.split(c).join("\\").split(u).join("{").split(l).join("}").split(f).join(",").split(p).join(".")}function g(T){if(!T)return[""];var b=[],v=a("{","}",T);if(!v)return T.split(",");var x=v.pre,A=v.body,D=v.post,P=x.split(",");P[P.length-1]+="{"+A+"}";var F=g(D);return D.length&&(P[P.length-1]+=F.shift(),P.push.apply(P,F)),b.push.apply(b,P),b}function h(T){return"{"+T+"}"}function E(T){return/^-?0\d/.test(T)}function _(T,b){return T<=b}function S(T,b){return T>=b}function y(T,b){var v=[],x=a("{","}",T);if(!x||/\$$/.test(x.pre))return[T];var A,D=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(x.body),P=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(x.body),F=D||P,V=x.body.indexOf(",")>=0;if(!F&&!V)return x.post.match(/,.*\}/)?y(T=x.pre+"{"+x.body+l+x.post):[T];if(F)A=x.body.split(/\.\./);else if((A=g(x.body)).length===1&&(A=y(A[0],!1).map(h)).length===1)return(X=x.post.length?y(x.post,!1):[""]).map((function(oe){return x.pre+A[0]+oe}));var H,k=x.pre,X=x.post.length?y(x.post,!1):[""];if(F){var ee=d(A[0]),ne=d(A[1]),ie=Math.max(A[0].length,A[1].length),Ee=A.length==3?Math.abs(d(A[2])):1,K=_;ne<ee&&(Ee*=-1,K=S);var le=A.some(E);H=[];for(var de=ee;K(de,ne);de+=Ee){var q;if(P)(q=String.fromCharCode(de))==="\\"&&(q="");else if(q=String(de),le){var ke=ie-q.length;if(ke>0){var U=new Array(ke+1).join("0");q=de<0?"-"+U+q.slice(1):U+q}}H.push(q)}}else H=o(A,(function(oe){return y(oe,!1)}));for(var L=0;L<H.length;L++)for(var N=0;N<X.length;N++){var z=k+H[L]+X[N];(!b||F||z)&&v.push(z)}return v}},6596:n=>{n.exports=function(i,o){for(var a=[],c=0;c<i.length;c++){var u=o(i[c],c);s(u)?a.push.apply(a,u):a.push(u)}return a};var s=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"}},2016:n=>{n.exports=function(s){if(typeof s!="function")throw TypeError(s+" is not a function!");return s}},7384:(n,s,i)=>{var o=i(7096)("unscopables"),a=Array.prototype;a[o]==null&&i(2336)(a,o,{}),n.exports=function(c){a[o][c]=!0}},2388:n=>{n.exports=function(s,i,o,a){if(!(s instanceof i)||a!==void 0&&a in s)throw TypeError(o+": incorrect invocation!");return s}},3504:(n,s,i)=>{var o=i(3888);n.exports=function(a){if(!o(a))throw TypeError(a+" is not an object!");return a}},7504:(n,s,i)=>{var o=i(2780),a=i(3528),c=i(8508);n.exports=function(u){return function(l,f,p){var d,m=o(l),g=a(m.length),h=c(p,g);if(u&&f!=f){for(;g>h;)if((d=m[h++])!=d)return!0}else for(;g>h;h++)if((u||h in m)&&m[h]===f)return u||h||0;return!u&&-1}}},5848:(n,s,i)=>{var o=i(6924),a=i(7096)("toStringTag"),c=o((function(){return arguments})())=="Arguments";n.exports=function(u){var l,f,p;return u===void 0?"Undefined":u===null?"Null":typeof(f=(function(d,m){try{return d[m]}catch{}})(l=Object(u),a))=="string"?f:c?o(l):(p=o(l))=="Object"&&typeof l.callee=="function"?"Arguments":p}},6924:n=>{var s={}.toString;n.exports=function(i){return s.call(i).slice(8,-1)}},148:(n,s,i)=>{"use strict";var o=i(8520).f,a=i(3472),c=i(7704),u=i(800),l=i(2388),f=i(7228),p=i(6952),d=i(172),m=i(3384),g=i(1668),h=i(2020).fastKey,E=i(2772),_=g?"_s":"size",S=function(y,T){var b,v=h(T);if(v!=="F")return y._i[v];for(b=y._f;b;b=b.n)if(b.k==T)return b};n.exports={getConstructor:function(y,T,b,v){var x=y((function(A,D){l(A,x,T,"_i"),A._t=T,A._i=a(null),A._f=void 0,A._l=void 0,A[_]=0,D!=null&&f(D,b,A[v],A)}));return c(x.prototype,{clear:function(){for(var A=E(this,T),D=A._i,P=A._f;P;P=P.n)P.r=!0,P.p&&(P.p=P.p.n=void 0),delete D[P.i];A._f=A._l=void 0,A[_]=0},delete:function(A){var D=E(this,T),P=S(D,A);if(P){var F=P.n,V=P.p;delete D._i[P.i],P.r=!0,V&&(V.n=F),F&&(F.p=V),D._f==P&&(D._f=F),D._l==P&&(D._l=V),D[_]--}return!!P},forEach:function(A){E(this,T);for(var D,P=u(A,arguments.length>1?arguments[1]:void 0,3);D=D?D.n:this._f;)for(P(D.v,D.k,this);D&&D.r;)D=D.p},has:function(A){return!!S(E(this,T),A)}}),g&&o(x.prototype,"size",{get:function(){return E(this,T)[_]}}),x},def:function(y,T,b){var v,x,A=S(y,T);return A?A.v=b:(y._l=A={i:x=h(T,!0),k:T,v:b,p:v=y._l,n:void 0,r:!1},y._f||(y._f=A),v&&(v.n=A),y[_]++,x!=="F"&&(y._i[x]=A)),y},getEntry:S,setStrong:function(y,T,b){p(y,T,(function(v,x){this._t=E(v,T),this._k=x,this._l=void 0}),(function(){for(var v=this,x=v._k,A=v._l;A&&A.r;)A=A.p;return v._t&&(v._l=A=A?A.n:v._t._f)?d(0,x=="keys"?A.k:x=="values"?A.v:[A.k,A.v]):(v._t=void 0,d(1))}),b?"entries":"values",!b,!0),m(T)}}},9412:(n,s,i)=>{"use strict";var o=i(2804),a=i(7076),c=i(8868),u=i(7704),l=i(2020),f=i(7228),p=i(2388),d=i(3888),m=i(9316),g=i(8380),h=i(6256),E=i(2672);n.exports=function(_,S,y,T,b,v){var x=o[_],A=x,D=b?"set":"add",P=A&&A.prototype,F={},V=function(ie){var Ee=P[ie];c(P,ie,ie=="delete"||ie=="has"?function(K){return!(v&&!d(K))&&Ee.call(this,K===0?0:K)}:ie=="get"?function(K){return v&&!d(K)?void 0:Ee.call(this,K===0?0:K)}:ie=="add"?function(K){return Ee.call(this,K===0?0:K),this}:function(K,le){return Ee.call(this,K===0?0:K,le),this})};if(typeof A=="function"&&(v||P.forEach&&!m((function(){new A().entries().next()})))){var H=new A,k=H[D](v?{}:-0,1)!=H,X=m((function(){H.has(1)})),ee=g((function(ie){new A(ie)})),ne=!v&&m((function(){for(var ie=new A,Ee=5;Ee--;)ie[D](Ee,Ee);return!ie.has(-0)}));ee||((A=S((function(ie,Ee){p(ie,A,_);var K=E(new x,ie,A);return Ee!=null&&f(Ee,b,K[D],K),K}))).prototype=P,P.constructor=A),(X||ne)&&(V("delete"),V("has"),b&&V("get")),(ne||k)&&V(D),v&&P.clear&&delete P.clear}else A=T.getConstructor(S,_,b,D),u(A.prototype,y),l.NEED=!0;return h(A,_),F[_]=A,a(a.G+a.W+a.F*(A!=x),F),v||T.setStrong(A,_,b),A}},8432:n=>{var s=n.exports={version:"2.5.7"};typeof __e=="number"&&(__e=s)},2340:(n,s,i)=>{"use strict";var o=i(8520),a=i(8164);n.exports=function(c,u,l){u in c?o.f(c,u,a(0,l)):c[u]=l}},800:(n,s,i)=>{var o=i(2016);n.exports=function(a,c,u){if(o(a),c===void 0)return a;switch(u){case 1:return function(l){return a.call(c,l)};case 2:return function(l,f){return a.call(c,l,f)};case 3:return function(l,f,p){return a.call(c,l,f,p)}}return function(){return a.apply(c,arguments)}}},24:n=>{n.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},1668:(n,s,i)=>{n.exports=!i(9316)((function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}))},1300:(n,s,i)=>{var o=i(3888),a=i(2804).document,c=o(a)&&o(a.createElement);n.exports=function(u){return c?a.createElement(u):{}}},444:n=>{n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},7076:(n,s,i)=>{var o=i(2804),a=i(8432),c=i(2336),u=i(8868),l=i(800),f="prototype",p=function(d,m,g){var h,E,_,S,y=d&p.F,T=d&p.G,b=d&p.S,v=d&p.P,x=d&p.B,A=T?o:b?o[m]||(o[m]={}):(o[m]||{})[f],D=T?a:a[m]||(a[m]={}),P=D[f]||(D[f]={});for(h in T&&(g=m),g)_=((E=!y&&A&&A[h]!==void 0)?A:g)[h],S=x&&E?l(_,o):v&&typeof _=="function"?l(Function.call,_):_,A&&u(A,h,_,d&p.U),D[h]!=_&&c(D,h,S),v&&P[h]!=_&&(P[h]=_)};o.core=a,p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,n.exports=p},9316:n=>{n.exports=function(s){try{return!!s()}catch{return!0}}},4448:(n,s,i)=>{"use strict";var o=i(2336),a=i(8868),c=i(9316),u=i(24),l=i(7096);n.exports=function(f,p,d){var m=l(f),g=d(u,m,""[f]),h=g[0],E=g[1];c((function(){var _={};return _[m]=function(){return 7},""[f](_)!=7}))&&(a(String.prototype,f,h),o(RegExp.prototype,m,p==2?function(_,S){return E.call(_,this,S)}:function(_){return E.call(_,this)}))}},8068:(n,s,i)=>{"use strict";var o=i(3504);n.exports=function(){var a=o(this),c="";return a.global&&(c+="g"),a.ignoreCase&&(c+="i"),a.multiline&&(c+="m"),a.unicode&&(c+="u"),a.sticky&&(c+="y"),c}},7228:(n,s,i)=>{var o=i(800),a=i(2372),c=i(3164),u=i(3504),l=i(3528),f=i(2800),p={},d={},m=n.exports=function(g,h,E,_,S){var y,T,b,v,x=S?function(){return g}:f(g),A=o(E,_,h?2:1),D=0;if(typeof x!="function")throw TypeError(g+" is not iterable!");if(c(x)){for(y=l(g.length);y>D;D++)if((v=h?A(u(T=g[D])[0],T[1]):A(g[D]))===p||v===d)return v}else for(b=x.call(g);!(T=b.next()).done;)if((v=a(b,A,T.value,h))===p||v===d)return v};m.BREAK=p,m.RETURN=d},2804:n=>{var s=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=s)},9080:n=>{var s={}.hasOwnProperty;n.exports=function(i,o){return s.call(i,o)}},2336:(n,s,i)=>{var o=i(8520),a=i(8164);n.exports=i(1668)?function(c,u,l){return o.f(c,u,a(1,l))}:function(c,u,l){return c[u]=l,c}},4016:(n,s,i)=>{var o=i(2804).document;n.exports=o&&o.documentElement},5516:(n,s,i)=>{n.exports=!i(1668)&&!i(9316)((function(){return Object.defineProperty(i(1300)("div"),"a",{get:function(){return 7}}).a!=7}))},2672:(n,s,i)=>{var o=i(3888),a=i(5076).set;n.exports=function(c,u,l){var f,p=u.constructor;return p!==l&&typeof p=="function"&&(f=p.prototype)!==l.prototype&&o(f)&&a&&a(c,f),c}},5628:n=>{n.exports=function(s,i,o){var a=o===void 0;switch(i.length){case 0:return a?s():s.call(o);case 1:return a?s(i[0]):s.call(o,i[0]);case 2:return a?s(i[0],i[1]):s.call(o,i[0],i[1]);case 3:return a?s(i[0],i[1],i[2]):s.call(o,i[0],i[1],i[2]);case 4:return a?s(i[0],i[1],i[2],i[3]):s.call(o,i[0],i[1],i[2],i[3])}return s.apply(o,i)}},2936:(n,s,i)=>{var o=i(6924);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return o(a)=="String"?a.split(""):Object(a)}},3164:(n,s,i)=>{var o=i(2488),a=i(7096)("iterator"),c=Array.prototype;n.exports=function(u){return u!==void 0&&(o.Array===u||c[a]===u)}},3888:n=>{n.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},7760:(n,s,i)=>{var o=i(3888),a=i(6924),c=i(7096)("match");n.exports=function(u){var l;return o(u)&&((l=u[c])!==void 0?!!l:a(u)=="RegExp")}},2372:(n,s,i)=>{var o=i(3504);n.exports=function(a,c,u,l){try{return l?c(o(u)[0],u[1]):c(u)}catch(p){var f=a.return;throw f!==void 0&&o(f.call(a)),p}}},128:(n,s,i)=>{"use strict";var o=i(3472),a=i(8164),c=i(6256),u={};i(2336)(u,i(7096)("iterator"),(function(){return this})),n.exports=function(l,f,p){l.prototype=o(u,{next:a(1,p)}),c(l,f+" Iterator")}},6952:(n,s,i)=>{"use strict";var o=i(4440),a=i(7076),c=i(8868),u=i(2336),l=i(2488),f=i(128),p=i(6256),d=i(9556),m=i(7096)("iterator"),g=!([].keys&&"next"in[].keys()),h="keys",E="values",_=function(){return this};n.exports=function(S,y,T,b,v,x,A){f(T,y,b);var D,P,F,V=function(le){if(!g&&le in ee)return ee[le];switch(le){case h:case E:return function(){return new T(this,le)}}return function(){return new T(this,le)}},H=y+" Iterator",k=v==E,X=!1,ee=S.prototype,ne=ee[m]||ee["@@iterator"]||v&&ee[v],ie=ne||V(v),Ee=v?k?V("entries"):ie:void 0,K=y=="Array"&&ee.entries||ne;if(K&&(F=d(K.call(new S)))!==Object.prototype&&F.next&&(p(F,H,!0),o||typeof F[m]=="function"||u(F,m,_)),k&&ne&&ne.name!==E&&(X=!0,ie=function(){return ne.call(this)}),o&&!A||!g&&!X&&ee[m]||u(ee,m,ie),l[y]=ie,l[H]=_,v)if(D={values:k?ie:V(E),keys:x?ie:V(h),entries:Ee},A)for(P in D)P in ee||c(ee,P,D[P]);else a(a.P+a.F*(g||X),y,D);return D}},8380:(n,s,i)=>{var o=i(7096)("iterator"),a=!1;try{var c=[7][o]();c.return=function(){a=!0},Array.from(c,(function(){throw 2}))}catch{}n.exports=function(u,l){if(!l&&!a)return!1;var f=!1;try{var p=[7],d=p[o]();d.next=function(){return{done:f=!0}},p[o]=function(){return d},u(p)}catch{}return f}},172:n=>{n.exports=function(s,i){return{value:i,done:!!s}}},2488:n=>{n.exports={}},4440:n=>{n.exports=!1},2020:(n,s,i)=>{var o=i(9664)("meta"),a=i(3888),c=i(9080),u=i(8520).f,l=0,f=Object.isExtensible||function(){return!0},p=!i(9316)((function(){return f(Object.preventExtensions({}))})),d=function(g){u(g,o,{value:{i:"O"+ ++l,w:{}}})},m=n.exports={KEY:o,NEED:!1,fastKey:function(g,h){if(!a(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!c(g,o)){if(!f(g))return"F";if(!h)return"E";d(g)}return g[o].i},getWeak:function(g,h){if(!c(g,o)){if(!f(g))return!0;if(!h)return!1;d(g)}return g[o].w},onFreeze:function(g){return p&&m.NEED&&f(g)&&!c(g,o)&&d(g),g}}},448:(n,s,i)=>{var o=i(2804),a=i(2280).set,c=o.MutationObserver||o.WebKitMutationObserver,u=o.process,l=o.Promise,f=i(6924)(u)=="process";n.exports=function(){var p,d,m,g=function(){var S,y;for(f&&(S=u.domain)&&S.exit();p;){y=p.fn,p=p.next;try{y()}catch(T){throw p?m():d=void 0,T}}d=void 0,S&&S.enter()};if(f)m=function(){u.nextTick(g)};else if(!c||o.navigator&&o.navigator.standalone)if(l&&l.resolve){var h=l.resolve(void 0);m=function(){h.then(g)}}else m=function(){a.call(o,g)};else{var E=!0,_=document.createTextNode("");new c(g).observe(_,{characterData:!0}),m=function(){_.data=E=!E}}return function(S){var y={fn:S,next:void 0};d&&(d.next=y),p||(p=y,m()),d=y}}},8024:(n,s,i)=>{"use strict";var o=i(2016);function a(c){var u,l;this.promise=new c((function(f,p){if(u!==void 0||l!==void 0)throw TypeError("Bad Promise constructor");u=f,l=p})),this.resolve=o(u),this.reject=o(l)}n.exports.f=function(c){return new a(c)}},6472:(n,s,i)=>{"use strict";var o=i(5444),a=i(5364),c=i(3875),u=i(1164),l=i(2936),f=Object.assign;n.exports=!f||i(9316)((function(){var p={},d={},m=Symbol(),g="abcdefghijklmnopqrst";return p[m]=7,g.split("").forEach((function(h){d[h]=h})),f({},p)[m]!=7||Object.keys(f({},d)).join("")!=g}))?function(p,d){for(var m=u(p),g=arguments.length,h=1,E=a.f,_=c.f;g>h;)for(var S,y=l(arguments[h++]),T=E?o(y).concat(E(y)):o(y),b=T.length,v=0;b>v;)_.call(y,S=T[v++])&&(m[S]=y[S]);return m}:f},3472:(n,s,i)=>{var o=i(3504),a=i(1176),c=i(444),u=i(4588)("IE_PROTO"),l=function(){},f="prototype",p=function(){var d,m=i(1300)("iframe"),g=c.length;for(m.style.display="none",i(4016).appendChild(m),m.src="javascript:",(d=m.contentWindow.document).open(),d.write("<script>document.F=Object</script>"),d.close(),p=d.F;g--;)delete p[f][c[g]];return p()};n.exports=Object.create||function(d,m){var g;return d!==null?(l[f]=o(d),g=new l,l[f]=null,g[u]=d):g=p(),m===void 0?g:a(g,m)}},8520:(n,s,i)=>{var o=i(3504),a=i(5516),c=i(1896),u=Object.defineProperty;s.f=i(1668)?Object.defineProperty:function(l,f,p){if(o(l),f=c(f,!0),o(p),a)try{return u(l,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(l[f]=p.value),l}},1176:(n,s,i)=>{var o=i(8520),a=i(3504),c=i(5444);n.exports=i(1668)?Object.defineProperties:function(u,l){a(u);for(var f,p=c(l),d=p.length,m=0;d>m;)o.f(u,f=p[m++],l[f]);return u}},6524:(n,s,i)=>{var o=i(3875),a=i(8164),c=i(2780),u=i(1896),l=i(9080),f=i(5516),p=Object.getOwnPropertyDescriptor;s.f=i(1668)?p:function(d,m){if(d=c(d),m=u(m,!0),f)try{return p(d,m)}catch{}if(l(d,m))return a(!o.f.call(d,m),d[m])}},7732:(n,s,i)=>{var o=i(3816),a=i(444).concat("length","prototype");s.f=Object.getOwnPropertyNames||function(c){return o(c,a)}},5364:(n,s)=>{s.f=Object.getOwnPropertySymbols},9556:(n,s,i)=>{var o=i(9080),a=i(1164),c=i(4588)("IE_PROTO"),u=Object.prototype;n.exports=Object.getPrototypeOf||function(l){return l=a(l),o(l,c)?l[c]:typeof l.constructor=="function"&&l instanceof l.constructor?l.constructor.prototype:l instanceof Object?u:null}},3816:(n,s,i)=>{var o=i(9080),a=i(2780),c=i(7504)(!1),u=i(4588)("IE_PROTO");n.exports=function(l,f){var p,d=a(l),m=0,g=[];for(p in d)p!=u&&o(d,p)&&g.push(p);for(;f.length>m;)o(d,p=f[m++])&&(~c(g,p)||g.push(p));return g}},5444:(n,s,i)=>{var o=i(3816),a=i(444);n.exports=Object.keys||function(c){return o(c,a)}},3875:(n,s)=>{s.f={}.propertyIsEnumerable},2504:(n,s,i)=>{var o=i(5444),a=i(2780),c=i(3875).f;n.exports=function(u){return function(l){for(var f,p=a(l),d=o(p),m=d.length,g=0,h=[];m>g;)c.call(p,f=d[g++])&&h.push(u?[f,p[f]]:p[f]);return h}}},7904:n=>{n.exports=function(s){try{return{e:!1,v:s()}}catch(i){return{e:!0,v:i}}}},0:(n,s,i)=>{var o=i(3504),a=i(3888),c=i(8024);n.exports=function(u,l){if(o(u),a(l)&&l.constructor===u)return l;var f=c.f(u);return(0,f.resolve)(l),f.promise}},8164:n=>{n.exports=function(s,i){return{enumerable:!(1&s),configurable:!(2&s),writable:!(4&s),value:i}}},7704:(n,s,i)=>{var o=i(8868);n.exports=function(a,c,u){for(var l in c)o(a,l,c[l],u);return a}},8868:(n,s,i)=>{var o=i(2804),a=i(2336),c=i(9080),u=i(9664)("src"),l="toString",f=Function[l],p=(""+f).split(l);i(8432).inspectSource=function(d){return f.call(d)},(n.exports=function(d,m,g,h){var E=typeof g=="function";E&&(c(g,"name")||a(g,"name",m)),d[m]!==g&&(E&&(c(g,u)||a(g,u,d[m]?""+d[m]:p.join(String(m)))),d===o?d[m]=g:h?d[m]?d[m]=g:a(d,m,g):(delete d[m],a(d,m,g)))})(Function.prototype,l,(function(){return typeof this=="function"&&this[u]||f.call(this)}))},5076:(n,s,i)=>{var o=i(3888),a=i(3504),c=function(u,l){if(a(u),!o(l)&&l!==null)throw TypeError(l+": can't set as prototype!")};n.exports={set:Object.setPrototypeOf||("__proto__"in{}?(function(u,l,f){try{(f=i(800)(Function.call,i(6524).f(Object.prototype,"__proto__").set,2))(u,[]),l=!(u instanceof Array)}catch{l=!0}return function(p,d){return c(p,d),l?p.__proto__=d:f(p,d),p}})({},!1):void 0),check:c}},3384:(n,s,i)=>{"use strict";var o=i(2804),a=i(8520),c=i(1668),u=i(7096)("species");n.exports=function(l){var f=o[l];c&&f&&!f[u]&&a.f(f,u,{configurable:!0,get:function(){return this}})}},6256:(n,s,i)=>{var o=i(8520).f,a=i(9080),c=i(7096)("toStringTag");n.exports=function(u,l,f){u&&!a(u=f?u:u.prototype,c)&&o(u,c,{configurable:!0,value:l})}},4588:(n,s,i)=>{var o=i(5432)("keys"),a=i(9664);n.exports=function(c){return o[c]||(o[c]=a(c))}},5432:(n,s,i)=>{var o=i(8432),a=i(2804),c="__core-js_shared__",u=a[c]||(a[c]={});(n.exports=function(l,f){return u[l]||(u[l]=f!==void 0?f:{})})("versions",[]).push({version:o.version,mode:i(4440)?"pure":"global",copyright:"\xA9 2018 Denis Pushkarev (zloirock.ru)"})},6776:(n,s,i)=>{var o=i(3504),a=i(2016),c=i(7096)("species");n.exports=function(u,l){var f,p=o(u).constructor;return p===void 0||(f=o(p)[c])==null?l:a(f)}},6712:(n,s,i)=>{"use strict";var o=i(9316);n.exports=function(a,c){return!!a&&o((function(){c?a.call(null,(function(){}),1):a.call(null)}))}},2280:(n,s,i)=>{var o,a,c,u=i(800),l=i(5628),f=i(4016),p=i(1300),d=i(2804),m=d.process,g=d.setImmediate,h=d.clearImmediate,E=d.MessageChannel,_=d.Dispatch,S=0,y={},T="onreadystatechange",b=function(){var x=+this;if(y.hasOwnProperty(x)){var A=y[x];delete y[x],A()}},v=function(x){b.call(x.data)};g&&h||(g=function(x){for(var A=[],D=1;arguments.length>D;)A.push(arguments[D++]);return y[++S]=function(){l(typeof x=="function"?x:Function(x),A)},o(S),S},h=function(x){delete y[x]},i(6924)(m)=="process"?o=function(x){m.nextTick(u(b,x,1))}:_&&_.now?o=function(x){_.now(u(b,x,1))}:E?(c=(a=new E).port2,a.port1.onmessage=v,o=u(c.postMessage,c,1)):d.addEventListener&&typeof postMessage=="function"&&!d.importScripts?(o=function(x){d.postMessage(x+"","*")},d.addEventListener("message",v,!1)):o=T in p("script")?function(x){f.appendChild(p("script"))[T]=function(){f.removeChild(this),b.call(x)}}:function(x){setTimeout(u(b,x,1),0)}),n.exports={set:g,clear:h}},8508:(n,s,i)=>{var o=i(8236),a=Math.max,c=Math.min;n.exports=function(u,l){return(u=o(u))<0?a(u+l,0):c(u,l)}},8236:n=>{var s=Math.ceil,i=Math.floor;n.exports=function(o){return isNaN(o=+o)?0:(o>0?i:s)(o)}},2780:(n,s,i)=>{var o=i(2936),a=i(24);n.exports=function(c){return o(a(c))}},3528:(n,s,i)=>{var o=i(8236),a=Math.min;n.exports=function(c){return c>0?a(o(c),9007199254740991):0}},1164:(n,s,i)=>{var o=i(24);n.exports=function(a){return Object(o(a))}},1896:(n,s,i)=>{var o=i(3888);n.exports=function(a,c){if(!o(a))return a;var u,l;if(c&&typeof(u=a.toString)=="function"&&!o(l=u.call(a))||typeof(u=a.valueOf)=="function"&&!o(l=u.call(a))||!c&&typeof(u=a.toString)=="function"&&!o(l=u.call(a)))return l;throw TypeError("Can't convert object to primitive value")}},9664:n=>{var s=0,i=Math.random();n.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++s+i).toString(36))}},1168:(n,s,i)=>{var o=i(2804).navigator;n.exports=o&&o.userAgent||""},2772:(n,s,i)=>{var o=i(3888);n.exports=function(a,c){if(!o(a)||a._t!==c)throw TypeError("Incompatible receiver, "+c+" required!");return a}},7096:(n,s,i)=>{var o=i(5432)("wks"),a=i(9664),c=i(2804).Symbol,u=typeof c=="function";(n.exports=function(l){return o[l]||(o[l]=u&&c[l]||(u?c:a)("Symbol."+l))}).store=o},2800:(n,s,i)=>{var o=i(5848),a=i(7096)("iterator"),c=i(2488);n.exports=i(8432).getIteratorMethod=function(u){if(u!=null)return u[a]||u["@@iterator"]||c[o(u)]}},4228:(n,s,i)=>{"use strict";var o=i(800),a=i(7076),c=i(1164),u=i(2372),l=i(3164),f=i(3528),p=i(2340),d=i(2800);a(a.S+a.F*!i(8380)((function(m){Array.from(m)})),"Array",{from:function(m){var g,h,E,_,S=c(m),y=typeof this=="function"?this:Array,T=arguments.length,b=T>1?arguments[1]:void 0,v=b!==void 0,x=0,A=d(S);if(v&&(b=o(b,T>2?arguments[2]:void 0,2)),A==null||y==Array&&l(A))for(h=new y(g=f(S.length));g>x;x++)p(h,x,v?b(S[x],x):S[x]);else for(_=A.call(S),h=new y;!(E=_.next()).done;x++)p(h,x,v?u(_,b,[E.value,x],!0):E.value);return h.length=x,h}})},4260:(n,s,i)=>{"use strict";var o=i(7076),a=i(2016),c=i(1164),u=i(9316),l=[].sort,f=[1,2,3];o(o.P+o.F*(u((function(){f.sort(void 0)}))||!u((function(){f.sort(null)}))||!i(6712)(l)),"Array",{sort:function(p){return p===void 0?l.call(c(this)):l.call(c(this),a(p))}})},5584:(n,s,i)=>{var o=i(7076);o(o.S+o.F,"Object",{assign:i(6472)})},5888:(n,s,i)=>{"use strict";var o,a,c,u,l=i(4440),f=i(2804),p=i(800),d=i(5848),m=i(7076),g=i(3888),h=i(2016),E=i(2388),_=i(7228),S=i(6776),y=i(2280).set,T=i(448)(),b=i(8024),v=i(7904),x=i(1168),A=i(0),D="Promise",P=f.TypeError,F=f.process,V=F&&F.versions,H=V&&V.v8||"",k=f[D],X=d(F)=="process",ee=function(){},ne=a=b.f,ie=!!(function(){try{var L=k.resolve(1),N=(L.constructor={})[i(7096)("species")]=function(z){z(ee,ee)};return(X||typeof PromiseRejectionEvent=="function")&&L.then(ee)instanceof N&&H.indexOf("6.6")!==0&&x.indexOf("Chrome/66")===-1}catch{}})(),Ee=function(L){var N;return!(!g(L)||typeof(N=L.then)!="function")&&N},K=function(L,N){if(!L._n){L._n=!0;var z=L._c;T((function(){for(var oe=L._v,fe=L._s==1,Re=0,De=function(Se){var I,R,$,G=fe?Se.ok:Se.fail,w=Se.resolve,Z=Se.reject,J=Se.domain;try{G?(fe||(L._h==2&&q(L),L._h=1),G===!0?I=oe:(J&&J.enter(),I=G(oe),J&&(J.exit(),$=!0)),I===Se.promise?Z(P("Promise-chain cycle")):(R=Ee(I))?R.call(I,w,Z):w(I)):Z(oe)}catch(se){J&&!$&&J.exit(),Z(se)}};z.length>Re;)De(z[Re++]);L._c=[],L._n=!1,N&&!L._h&&le(L)}))}},le=function(L){y.call(f,(function(){var N,z,oe,fe=L._v,Re=de(L);if(Re&&(N=v((function(){X?F.emit("unhandledRejection",fe,L):(z=f.onunhandledrejection)?z({promise:L,reason:fe}):(oe=f.console)&&oe.error&&oe.error("Unhandled promise rejection",fe)})),L._h=X||de(L)?2:1),L._a=void 0,Re&&N.e)throw N.v}))},de=function(L){return L._h!==1&&(L._a||L._c).length===0},q=function(L){y.call(f,(function(){var N;X?F.emit("rejectionHandled",L):(N=f.onrejectionhandled)&&N({promise:L,reason:L._v})}))},ke=function(L){var N=this;N._d||(N._d=!0,(N=N._w||N)._v=L,N._s=2,N._a||(N._a=N._c.slice()),K(N,!0))},U=function(L){var N,z=this;if(!z._d){z._d=!0,z=z._w||z;try{if(z===L)throw P("Promise can't be resolved itself");(N=Ee(L))?T((function(){var oe={_w:z,_d:!1};try{N.call(L,p(U,oe,1),p(ke,oe,1))}catch(fe){ke.call(oe,fe)}})):(z._v=L,z._s=1,K(z,!1))}catch(oe){ke.call({_w:z,_d:!1},oe)}}};ie||(k=function(L){E(this,k,D,"_h"),h(L),o.call(this);try{L(p(U,this,1),p(ke,this,1))}catch(N){ke.call(this,N)}},(o=function(L){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=i(7704)(k.prototype,{then:function(L,N){var z=ne(S(this,k));return z.ok=typeof L!="function"||L,z.fail=typeof N=="function"&&N,z.domain=X?F.domain:void 0,this._c.push(z),this._a&&this._a.push(z),this._s&&K(this,!1),z.promise},catch:function(L){return this.then(void 0,L)}}),c=function(){var L=new o;this.promise=L,this.resolve=p(U,L,1),this.reject=p(ke,L,1)},b.f=ne=function(L){return L===k||L===u?new c(L):a(L)}),m(m.G+m.W+m.F*!ie,{Promise:k}),i(6256)(k,D),i(3384)(D),u=i(8432)[D],m(m.S+m.F*!ie,D,{reject:function(L){var N=ne(this);return(0,N.reject)(L),N.promise}}),m(m.S+m.F*(l||!ie),D,{resolve:function(L){return A(l&&this===u?k:this,L)}}),m(m.S+m.F*!(ie&&i(8380)((function(L){k.all(L).catch(ee)}))),D,{all:function(L){var N=this,z=ne(N),oe=z.resolve,fe=z.reject,Re=v((function(){var De=[],Se=0,I=1;_(L,!1,(function(R){var $=Se++,G=!1;De.push(void 0),I++,N.resolve(R).then((function(w){G||(G=!0,De[$]=w,--I||oe(De))}),fe)})),--I||oe(De)}));return Re.e&&fe(Re.v),z.promise},race:function(L){var N=this,z=ne(N),oe=z.reject,fe=v((function(){_(L,!1,(function(Re){N.resolve(Re).then(z.resolve,oe)}))}));return fe.e&&oe(fe.v),z.promise}})},9224:(n,s,i)=>{var o=i(2804),a=i(2672),c=i(8520).f,u=i(7732).f,l=i(7760),f=i(8068),p=o.RegExp,d=p,m=p.prototype,g=/a/g,h=/a/g,E=new p(g)!==g;if(i(1668)&&(!E||i(9316)((function(){return h[i(7096)("match")]=!1,p(g)!=g||p(h)==h||p(g,"i")!="/a/i"})))){p=function(T,b){var v=this instanceof p,x=l(T),A=b===void 0;return!v&&x&&T.constructor===p&&A?T:a(E?new d(x&&!A?T.source:T,b):d((x=T instanceof p)?T.source:T,x&&A?f.call(T):b),v?this:m,p)};for(var _=function(T){T in p||c(p,T,{configurable:!0,get:function(){return d[T]},set:function(b){d[T]=b}})},S=u(d),y=0;S.length>y;)_(S[y++]);m.constructor=p,p.prototype=m,i(8868)(o,"RegExp",p)}i(3384)("RegExp")},7320:(n,s,i)=>{i(1668)&&/./g.flags!="g"&&i(8520).f(RegExp.prototype,"flags",{configurable:!0,get:i(8068)})},4880:(n,s,i)=>{i(4448)("match",1,(function(o,a,c){return[function(u){"use strict";var l=o(this),f=u?.[a];return f!==void 0?f.call(u,l):new RegExp(u)[a](String(l))},c]}))},8412:(n,s,i)=>{i(4448)("replace",2,(function(o,a,c){return[function(u,l){"use strict";var f=o(this),p=u?.[a];return p!==void 0?p.call(u,f,l):c.call(String(f),u,l)},c]}))},223:(n,s,i)=>{i(4448)("search",1,(function(o,a,c){return[function(u){"use strict";var l=o(this),f=u?.[a];return f!==void 0?f.call(u,l):new RegExp(u)[a](String(l))},c]}))},3708:(n,s,i)=>{i(4448)("split",2,(function(o,a,c){"use strict";var u=i(7760),l=c,f=[].push,p="split",d="length",m="lastIndex";if("abbc"[p](/(b)*/)[1]=="c"||"test"[p](/(?:)/,-1)[d]!=4||"ab"[p](/(?:ab)*/)[d]!=2||"."[p](/(.?)(.?)/)[d]!=4||"."[p](/()()/)[d]>1||""[p](/.?/)[d]){var g=/()??/.exec("")[1]===void 0;c=function(h,E){var _=String(this);if(h===void 0&&E===0)return[];if(!u(h))return l.call(_,h,E);var S,y,T,b,v,x=[],A=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(h.sticky?"y":""),D=0,P=E===void 0?4294967295:E>>>0,F=new RegExp(h.source,A+"g");for(g||(S=new RegExp("^"+F.source+"$(?!\\s)",A));(y=F.exec(_))&&!((T=y.index+y[0][d])>D&&(x.push(_.slice(D,y.index)),!g&&y[d]>1&&y[0].replace(S,(function(){for(v=1;v<arguments[d]-2;v++)arguments[v]===void 0&&(y[v]=void 0)})),y[d]>1&&y.index<_[d]&&f.apply(x,y.slice(1)),b=y[0][d],D=T,x[d]>=P));)F[m]===y.index&&F[m]++;return D===_[d]?!b&&F.test("")||x.push(""):x.push(_.slice(D)),x[d]>P?x.slice(0,P):x}}else"0"[p](void 0,0)[d]&&(c=function(h,E){return h===void 0&&E===0?[]:l.call(this,h,E)});return[function(h,E){var _=o(this),S=h?.[a];return S!==void 0?S.call(h,_,E):c.call(String(_),h,E)},c]}))},6568:(n,s,i)=>{"use strict";i(7320);var o=i(3504),a=i(8068),c=i(1668),u="toString",l=/./[u],f=function(p){i(8868)(RegExp.prototype,u,p,!0)};i(9316)((function(){return l.call({source:"a",flags:"b"})!="/a/b"}))?f((function(){var p=o(this);return"/".concat(p.source,"/","flags"in p?p.flags:!c&&p instanceof RegExp?a.call(p):void 0)})):l.name!=u&&f((function(){return l.call(this)}))},7276:(n,s,i)=>{"use strict";var o=i(148),a=i(2772);n.exports=i(9412)("Set",(function(c){return function(){return c(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(c){return o.def(a(this,"Set"),c=c===0?0:c,c)}},o)},7360:(n,s,i)=>{"use strict";var o=i(7076),a=i(7504)(!0);o(o.P,"Array",{includes:function(c){return a(this,c,arguments.length>1?arguments[1]:void 0)}}),i(7384)("includes")},3852:(n,s,i)=>{var o=i(7076),a=i(2504)(!0);o(o.S,"Object",{entries:function(c){return a(c)}})},5308:(n,s,i)=>{var o=i(7076),a=i(2504)(!1);o(o.S,"Object",{values:function(c){return a(c)}})},7468:(n,s,i)=>{"use strict";let o=i(4368),a=i(9624),c=i(1846);function u(l,f,p){let d=a(l,f,p),m=o.spawn(d.command,d.args,d.options);return c.hookChildProcess(m,d),m}n.exports=u,n.exports.spawn=u,n.exports.sync=function(l,f,p){let d=a(l,f,p),m=o.spawnSync(d.command,d.args,d.options);return m.error=m.error||c.verifyENOENTSync(m.status,d),m},n.exports._parse=a,n.exports._enoent=c},1846:n=>{"use strict";let s=process.platform==="win32";function i(a,c){return Object.assign(new Error(`${c} ${a.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${c} ${a.command}`,path:a.command,spawnargs:a.args})}function o(a,c){return s&&a===1&&!c.file?i(c.original,"spawn"):null}n.exports={hookChildProcess:function(a,c){if(!s)return;let u=a.emit;a.emit=function(l,f){if(l==="exit"){let p=o(f,c);if(p)return u.call(a,"error",p)}return u.apply(a,arguments)}},verifyENOENT:o,verifyENOENTSync:function(a,c){return s&&a===1&&!c.file?i(c.original,"spawnSync"):null},notFoundError:i}},9624:(n,s,i)=>{"use strict";let o=i(7072),a=i(9480),c=i(8372),u=i(824),l=i(7780),f=i(1716),p=process.platform==="win32",d=/\.(?:com|exe)$/i,m=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i,g=a((()=>f.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",!0)))||!1;n.exports=function(h,E,_){E&&!Array.isArray(E)&&(_=E,E=null);let S={command:h,args:E=E?E.slice(0):[],options:_=Object.assign({},_),file:void 0,original:{command:h,args:E}};return _.shell?(function(y){if(g)return y;let T=[y.command].concat(y.args).join(" ");return p?(y.command=typeof y.options.shell=="string"?y.options.shell:process.env.comspec||"cmd.exe",y.args=["/d","/s","/c",`"${T}"`],y.options.windowsVerbatimArguments=!0):(typeof y.options.shell=="string"?y.command=y.options.shell:process.platform==="android"?y.command="/system/bin/sh":y.command="/bin/sh",y.args=["-c",T]),y})(S):(function(y){if(!p)return y;let T=(function(v){v.file=c(v);let x=v.file&&l(v.file);return x?(v.args.unshift(v.file),v.command=x,c(v)):v.file})(y),b=!d.test(T);if(y.options.forceShell||b){let v=m.test(T);y.command=o.normalize(y.command),y.command=u.command(y.command),y.args=y.args.map((A=>u.argument(A,v)));let x=[y.command].concat(y.args).join(" ");y.args=["/d","/s","/c",`"${x}"`],y.command=process.env.comspec||"cmd.exe",y.options.windowsVerbatimArguments=!0}return y})(S)}},824:n=>{"use strict";let s=/([()\][%!^"`<>&|;, *?])/g;n.exports.command=function(i){return i.replace(s,"^$1")},n.exports.argument=function(i,o){return i=(i=`"${i=(i=(i=`${i}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(s,"^$1"),o&&(i=i.replace(s,"^$1")),i}},7780:(n,s,i)=>{"use strict";let o=i(2058),a=i(6176);n.exports=function(c){let u,l;Buffer.alloc?u=Buffer.alloc(150):(u=new Buffer(150),u.fill(0));try{l=o.openSync(c,"r"),o.readSync(l,u,0,150,0),o.closeSync(l)}catch{}return a(u.toString())}},8372:(n,s,i)=>{"use strict";let o=i(7072),a=i(8460),c=i(3032)();function u(l,f){let p=process.cwd(),d=l.options.cwd!=null;if(d)try{process.chdir(l.options.cwd)}catch{}let m;try{m=a.sync(l.command,{path:(l.options.env||process.env)[c],pathExt:f?o.delimiter:void 0})}catch{}finally{process.chdir(p)}return m&&(m=o.resolve(d?l.options.cwd:"",m)),m}n.exports=function(l){return u(l)||u(l,!0)}},9988:(n,s,i)=>{var o=i(4640),a=function(){},c=function(u,l,f){if(typeof l=="function")return c(u,null,l);l||(l={}),f=o(f||a);var p=u._writableState,d=u._readableState,m=l.readable||l.readable!==!1&&u.readable,g=l.writable||l.writable!==!1&&u.writable,h=function(){u.writable||E()},E=function(){g=!1,m||f.call(u)},_=function(){m=!1,g||f.call(u)},S=function(v){f.call(u,v?new Error("exited with error code: "+v):null)},y=function(v){f.call(u,v)},T=function(){return(!m||d&&d.ended)&&(!g||p&&p.ended)?void 0:f.call(u,new Error("premature close"))},b=function(){u.req.on("finish",E)};return(function(v){return v.setHeader&&typeof v.abort=="function"})(u)?(u.on("complete",E),u.on("abort",T),u.req?b():u.on("request",b)):g&&!p&&(u.on("end",h),u.on("close",h)),(function(v){return v.stdio&&Array.isArray(v.stdio)&&v.stdio.length===3})(u)&&u.on("exit",S),u.on("end",_),u.on("finish",E),l.error!==!1&&u.on("error",y),u.on("close",T),function(){u.removeListener("complete",E),u.removeListener("abort",T),u.removeListener("request",b),u.req&&u.req.removeListener("finish",E),u.removeListener("end",h),u.removeListener("close",h),u.removeListener("finish",E),u.removeListener("exit",S),u.removeListener("end",_),u.removeListener("error",y),u.removeListener("close",T)}};n.exports=c},84:(n,s,i)=>{n.exports=d,d.realpath=d,d.sync=m,d.realpathSync=m,d.monkeypatch=function(){o.realpath=d,o.realpathSync=m},d.unmonkeypatch=function(){o.realpath=a,o.realpathSync=c};var o=i(2058),a=o.realpath,c=o.realpathSync,u=process.version,l=/^v[0-5]\./.test(u),f=i(7192);function p(g){return g&&g.syscall==="realpath"&&(g.code==="ELOOP"||g.code==="ENOMEM"||g.code==="ENAMETOOLONG")}function d(g,h,E){if(l)return a(g,h,E);typeof h=="function"&&(E=h,h=null),a(g,h,(function(_,S){p(_)?f.realpath(g,h,E):E(_,S)}))}function m(g,h){if(l)return c(g,h);try{return c(g,h)}catch(E){if(p(E))return f.realpathSync(g,h);throw E}}},7192:(n,s,i)=>{var o=i(7072),a=process.platform==="win32",c=i(2058),u=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);if(o.normalize,a)var l=/(.*?)(?:[\/\\]+|$)/g;else l=/(.*?)(?:[\/]+|$)/g;if(a)var f=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else f=/^[\/]*/;s.realpathSync=function(p,d){if(p=o.resolve(p),d&&Object.prototype.hasOwnProperty.call(d,p))return d[p];var m,g,h,E,_=p,S={},y={};function T(){var P=f.exec(p);m=P[0].length,g=P[0],h=P[0],E="",a&&!y[h]&&(c.lstatSync(h),y[h]=!0)}for(T();m<p.length;){l.lastIndex=m;var b=l.exec(p);if(E=g,g+=b[0],h=E+b[1],m=l.lastIndex,!(y[h]||d&&d[h]===h)){var v;if(d&&Object.prototype.hasOwnProperty.call(d,h))v=d[h];else{var x=c.lstatSync(h);if(!x.isSymbolicLink()){y[h]=!0,d&&(d[h]=h);continue}var A=null;if(!a){var D=x.dev.toString(32)+":"+x.ino.toString(32);S.hasOwnProperty(D)&&(A=S[D])}A===null&&(c.statSync(h),A=c.readlinkSync(h)),v=o.resolve(E,A),d&&(d[h]=v),a||(S[D]=A)}p=o.resolve(v,p.slice(m)),T()}}return d&&(d[_]=p),p},s.realpath=function(p,d,m){if(typeof m!="function"&&(m=(function(P){return typeof P=="function"?P:(function(){var F;if(u){var V=new Error;F=function(k){k&&(V.message=k.message,H(k=V))}}else F=H;return F;function H(k){if(k){if(process.throwDeprecation)throw k;if(!process.noDeprecation){var X="fs: missing callback "+(k.stack||k.message);process.traceDeprecation?console.trace(X):console.error(X)}}}})()})(d),d=null),p=o.resolve(p),d&&Object.prototype.hasOwnProperty.call(d,p))return process.nextTick(m.bind(null,null,d[p]));var g,h,E,_,S=p,y={},T={};function b(){var P=f.exec(p);g=P[0].length,h=P[0],E=P[0],_="",a&&!T[E]?c.lstat(E,(function(F){if(F)return m(F);T[E]=!0,v()})):process.nextTick(v)}function v(){if(g>=p.length)return d&&(d[S]=p),m(null,p);l.lastIndex=g;var P=l.exec(p);return _=h,h+=P[0],E=_+P[1],g=l.lastIndex,T[E]||d&&d[E]===E?process.nextTick(v):d&&Object.prototype.hasOwnProperty.call(d,E)?D(d[E]):c.lstat(E,x)}function x(P,F){if(P)return m(P);if(!F.isSymbolicLink())return T[E]=!0,d&&(d[E]=E),process.nextTick(v);if(!a){var V=F.dev.toString(32)+":"+F.ino.toString(32);if(y.hasOwnProperty(V))return A(null,y[V],E)}c.stat(E,(function(H){if(H)return m(H);c.readlink(E,(function(k,X){a||(y[V]=X),A(k,X)}))}))}function A(P,F,V){if(P)return m(P);var H=o.resolve(_,F);d&&(d[V]=H),D(H)}function D(P){p=o.resolve(P,p.slice(g)),b()}b()}},9712:(n,s,i)=>{function o(h,E){return Object.prototype.hasOwnProperty.call(h,E)}s.alphasort=p,s.alphasorti=f,s.setopts=function(h,E,_){if(_||(_={}),_.matchBase&&E.indexOf("/")===-1){if(_.noglobstar)throw new Error("base matching requires globstar");E="**/"+E}h.silent=!!_.silent,h.pattern=E,h.strict=_.strict!==!1,h.realpath=!!_.realpath,h.realpathCache=_.realpathCache||Object.create(null),h.follow=!!_.follow,h.dot=!!_.dot,h.mark=!!_.mark,h.nodir=!!_.nodir,h.nodir&&(h.mark=!0),h.sync=!!_.sync,h.nounique=!!_.nounique,h.nonull=!!_.nonull,h.nosort=!!_.nosort,h.nocase=!!_.nocase,h.stat=!!_.stat,h.noprocess=!!_.noprocess,h.absolute=!!_.absolute,h.maxLength=_.maxLength||1/0,h.cache=_.cache||Object.create(null),h.statCache=_.statCache||Object.create(null),h.symlinks=_.symlinks||Object.create(null),(function(y,T){y.ignore=T.ignore||[],Array.isArray(y.ignore)||(y.ignore=[y.ignore]),y.ignore.length&&(y.ignore=y.ignore.map(d))})(h,_),h.changedCwd=!1;var S=process.cwd();o(_,"cwd")?(h.cwd=a.resolve(_.cwd),h.changedCwd=h.cwd!==S):h.cwd=S,h.root=_.root||a.resolve(h.cwd,"/"),h.root=a.resolve(h.root),process.platform==="win32"&&(h.root=h.root.replace(/\\/g,"/")),h.cwdAbs=u(h.cwd)?h.cwd:m(h,h.cwd),process.platform==="win32"&&(h.cwdAbs=h.cwdAbs.replace(/\\/g,"/")),h.nomount=!!_.nomount,_.nonegate=!0,_.nocomment=!0,h.minimatch=new l(E,_),h.options=h.minimatch.options},s.ownProp=o,s.makeAbs=m,s.finish=function(h){for(var E=h.nounique,_=E?[]:Object.create(null),S=0,y=h.matches.length;S<y;S++){var T=h.matches[S];if(T&&Object.keys(T).length!==0){var b=Object.keys(T);E?_.push.apply(_,b):b.forEach((function(x){_[x]=!0}))}else if(h.nonull){var v=h.minimatch.globSet[S];E?_.push(v):_[v]=!0}}if(E||(_=Object.keys(_)),h.nosort||(_=_.sort(h.nocase?f:p)),h.mark){for(S=0;S<_.length;S++)_[S]=h._mark(_[S]);h.nodir&&(_=_.filter((function(x){var A=!/\/$/.test(x),D=h.cache[x]||h.cache[m(h,x)];return A&&D&&(A=D!=="DIR"&&!Array.isArray(D)),A})))}h.ignore.length&&(_=_.filter((function(x){return!g(h,x)}))),h.found=_},s.mark=function(h,E){var _=m(h,E),S=h.cache[_],y=E;if(S){var T=S==="DIR"||Array.isArray(S),b=E.slice(-1)==="/";if(T&&!b?y+="/":!T&&b&&(y=y.slice(0,-1)),y!==E){var v=m(h,y);h.statCache[v]=h.statCache[_],h.cache[v]=h.cache[_]}}return y},s.isIgnored=g,s.childrenIgnored=function(h,E){return!!h.ignore.length&&h.ignore.some((function(_){return!(!_.gmatcher||!_.gmatcher.match(E))}))};var a=i(7072),c=i(836),u=i(4832),l=c.Minimatch;function f(h,E){return h.toLowerCase().localeCompare(E.toLowerCase())}function p(h,E){return h.localeCompare(E)}function d(h){var E=null;if(h.slice(-3)==="/**"){var _=h.replace(/(\/\*\*)+$/,"");E=new l(_,{dot:!0})}return{matcher:new l(h,{dot:!0}),gmatcher:E}}function m(h,E){var _=E;return _=E.charAt(0)==="/"?a.join(h.root,E):u(E)||E===""?E:h.changedCwd?a.resolve(h.cwd,E):a.resolve(E),process.platform==="win32"&&(_=_.replace(/\\/g,"/")),_}function g(h,E){return!!h.ignore.length&&h.ignore.some((function(_){return _.matcher.match(E)||!(!_.gmatcher||!_.gmatcher.match(E))}))}},808:(n,s,i)=>{n.exports=b;var o=i(2058),a=i(84),c=i(836),u=(c.Minimatch,i(3352)),l=i(467).EventEmitter,f=i(7072),p=i(6608),d=i(4832),m=i(4548),g=i(9712),h=(g.alphasort,g.alphasorti,g.setopts),E=g.ownProp,_=i(363),S=(i(970),g.childrenIgnored),y=g.isIgnored,T=i(4640);function b(A,D,P){if(typeof D=="function"&&(P=D,D={}),D||(D={}),D.sync){if(P)throw new TypeError("callback provided to sync glob");return m(A,D)}return new x(A,D,P)}b.sync=m;var v=b.GlobSync=m.GlobSync;function x(A,D,P){if(typeof D=="function"&&(P=D,D=null),D&&D.sync){if(P)throw new TypeError("callback provided to sync glob");return new v(A,D)}if(!(this instanceof x))return new x(A,D,P);h(this,A,D),this._didRealPath=!1;var F=this.minimatch.set.length;this.matches=new Array(F),typeof P=="function"&&(P=T(P),this.on("error",P),this.on("end",(function(ee){P(null,ee)})));var V=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(F===0)return X();for(var H=!0,k=0;k<F;k++)this._process(this.minimatch.set[k],k,!1,X);function X(){--V._processing,V._processing<=0&&(H?process.nextTick((function(){V._finish()})):V._finish())}H=!1}b.glob=b,b.hasMagic=function(A,D){var P=(function(H,k){if(k===null||typeof k!="object")return H;for(var X=Object.keys(k),ee=X.length;ee--;)H[X[ee]]=k[X[ee]];return H})({},D);P.noprocess=!0;var F=new x(A,P).minimatch.set;if(!A)return!1;if(F.length>1)return!0;for(var V=0;V<F[0].length;V++)if(typeof F[0][V]!="string")return!0;return!1},b.Glob=x,u(x,l),x.prototype._finish=function(){if(p(this instanceof x),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();g.finish(this),this.emit("end",this.found)}},x.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var A=this.matches.length;if(A===0)return this._finish();for(var D=this,P=0;P<this.matches.length;P++)this._realpathSet(P,F)}function F(){--A==0&&D._finish()}},x.prototype._realpathSet=function(A,D){var P=this.matches[A];if(!P)return D();var F=Object.keys(P),V=this,H=F.length;if(H===0)return D();var k=this.matches[A]=Object.create(null);F.forEach((function(X,ee){X=V._makeAbs(X),a.realpath(X,V.realpathCache,(function(ne,ie){ne?ne.syscall==="stat"?k[X]=!0:V.emit("error",ne):k[ie]=!0,--H==0&&(V.matches[A]=k,D())}))}))},x.prototype._mark=function(A){return g.mark(this,A)},x.prototype._makeAbs=function(A){return g.makeAbs(this,A)},x.prototype.abort=function(){this.aborted=!0,this.emit("abort")},x.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},x.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var A=this._emitQueue.slice(0);this._emitQueue.length=0;for(var D=0;D<A.length;D++){var P=A[D];this._emitMatch(P[0],P[1])}}if(this._processQueue.length){var F=this._processQueue.slice(0);for(this._processQueue.length=0,D=0;D<F.length;D++){var V=F[D];this._processing--,this._process(V[0],V[1],V[2],V[3])}}}},x.prototype._process=function(A,D,P,F){if(p(this instanceof x),p(typeof F=="function"),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([A,D,P,F]);else{for(var V,H=0;typeof A[H]=="string";)H++;switch(H){case A.length:return void this._processSimple(A.join("/"),D,F);case 0:V=null;break;default:V=A.slice(0,H).join("/")}var k,X=A.slice(H);V===null?k=".":((d(V)||d(A.join("/")))&&(V&&d(V)||(V="/"+V)),k=V);var ee=this._makeAbs(k);if(S(this,k))return F();X[0]===c.GLOBSTAR?this._processGlobStar(V,k,ee,X,D,P,F):this._processReaddir(V,k,ee,X,D,P,F)}},x.prototype._processReaddir=function(A,D,P,F,V,H,k){var X=this;this._readdir(P,H,(function(ee,ne){return X._processReaddir2(A,D,P,F,V,H,ne,k)}))},x.prototype._processReaddir2=function(A,D,P,F,V,H,k,X){if(!k)return X();for(var ee=F[0],ne=!!this.minimatch.negate,ie=ee._glob,Ee=this.dot||ie.charAt(0)===".",K=[],le=0;le<k.length;le++)((q=k[le]).charAt(0)!=="."||Ee)&&(ne&&!A?!q.match(ee):q.match(ee))&&K.push(q);var de=K.length;if(de===0)return X();if(F.length===1&&!this.mark&&!this.stat){for(this.matches[V]||(this.matches[V]=Object.create(null)),le=0;le<de;le++){var q=K[le];A&&(q=A!=="/"?A+"/"+q:A+q),q.charAt(0)!=="/"||this.nomount||(q=f.join(this.root,q)),this._emitMatch(V,q)}return X()}for(F.shift(),le=0;le<de;le++)q=K[le],A&&(q=A!=="/"?A+"/"+q:A+q),this._process([q].concat(F),V,H,X);X()},x.prototype._emitMatch=function(A,D){if(!this.aborted&&!y(this,D))if(this.paused)this._emitQueue.push([A,D]);else{var P=d(D)?D:this._makeAbs(D);if(this.mark&&(D=this._mark(D)),this.absolute&&(D=P),!this.matches[A][D]){if(this.nodir){var F=this.cache[P];if(F==="DIR"||Array.isArray(F))return}this.matches[A][D]=!0;var V=this.statCache[P];V&&this.emit("stat",D,V),this.emit("match",D)}}},x.prototype._readdirInGlobStar=function(A,D){if(!this.aborted){if(this.follow)return this._readdir(A,!1,D);var P=this,F=_("lstat\0"+A,(function(V,H){if(V&&V.code==="ENOENT")return D();var k=H&&H.isSymbolicLink();P.symlinks[A]=k,k||!H||H.isDirectory()?P._readdir(A,!1,D):(P.cache[A]="FILE",D())}));F&&o.lstat(A,F)}},x.prototype._readdir=function(A,D,P){if(!this.aborted&&(P=_("readdir\0"+A+"\0"+D,P))){if(D&&!E(this.symlinks,A))return this._readdirInGlobStar(A,P);if(E(this.cache,A)){var F=this.cache[A];if(!F||F==="FILE")return P();if(Array.isArray(F))return P(null,F)}o.readdir(A,(function(V,H,k){return function(X,ee){X?V._readdirError(H,X,k):V._readdirEntries(H,ee,k)}})(this,A,P))}},x.prototype._readdirEntries=function(A,D,P){if(!this.aborted){if(!this.mark&&!this.stat)for(var F=0;F<D.length;F++){var V=D[F];V=A==="/"?A+V:A+"/"+V,this.cache[V]=!0}return this.cache[A]=D,P(null,D)}},x.prototype._readdirError=function(A,D,P){if(!this.aborted){switch(D.code){case"ENOTSUP":case"ENOTDIR":var F=this._makeAbs(A);if(this.cache[F]="FILE",F===this.cwdAbs){var V=new Error(D.code+" invalid cwd "+this.cwd);V.path=this.cwd,V.code=D.code,this.emit("error",V),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(A)]=!1;break;default:this.cache[this._makeAbs(A)]=!1,this.strict&&(this.emit("error",D),this.abort()),this.silent||console.error("glob error",D)}return P()}},x.prototype._processGlobStar=function(A,D,P,F,V,H,k){var X=this;this._readdir(P,H,(function(ee,ne){X._processGlobStar2(A,D,P,F,V,H,ne,k)}))},x.prototype._processGlobStar2=function(A,D,P,F,V,H,k,X){if(!k)return X();var ee=F.slice(1),ne=A?[A]:[],ie=ne.concat(ee);this._process(ie,V,!1,X);var Ee=this.symlinks[P],K=k.length;if(Ee&&H)return X();for(var le=0;le<K;le++)if(k[le].charAt(0)!=="."||this.dot){var de=ne.concat(k[le],ee);this._process(de,V,!0,X);var q=ne.concat(k[le],F);this._process(q,V,!0,X)}X()},x.prototype._processSimple=function(A,D,P){var F=this;this._stat(A,(function(V,H){F._processSimple2(A,D,V,H,P)}))},x.prototype._processSimple2=function(A,D,P,F,V){if(this.matches[D]||(this.matches[D]=Object.create(null)),!F)return V();if(A&&d(A)&&!this.nomount){var H=/[\/\\]$/.test(A);A.charAt(0)==="/"?A=f.join(this.root,A):(A=f.resolve(this.root,A),H&&(A+="/"))}process.platform==="win32"&&(A=A.replace(/\\/g,"/")),this._emitMatch(D,A),V()},x.prototype._stat=function(A,D){var P=this._makeAbs(A),F=A.slice(-1)==="/";if(A.length>this.maxLength)return D();if(!this.stat&&E(this.cache,P)){var V=this.cache[P];if(Array.isArray(V)&&(V="DIR"),!F||V==="DIR")return D(null,V);if(F&&V==="FILE")return D()}var H=this.statCache[P];if(H!==void 0){if(H===!1)return D(null,H);var k=H.isDirectory()?"DIR":"FILE";return F&&k==="FILE"?D():D(null,k,H)}var X=this,ee=_("stat\0"+P,(function(ne,ie){if(ie&&ie.isSymbolicLink())return o.stat(P,(function(Ee,K){Ee?X._stat2(A,P,null,ie,D):X._stat2(A,P,Ee,K,D)}));X._stat2(A,P,ne,ie,D)}));ee&&o.lstat(P,ee)},x.prototype._stat2=function(A,D,P,F,V){if(P&&(P.code==="ENOENT"||P.code==="ENOTDIR"))return this.statCache[D]=!1,V();var H=A.slice(-1)==="/";if(this.statCache[D]=F,D.slice(-1)==="/"&&F&&!F.isDirectory())return V(null,!1,F);var k=!0;return F&&(k=F.isDirectory()?"DIR":"FILE"),this.cache[D]=this.cache[D]||k,H&&k==="FILE"?V():V(null,k,F)}},4548:(n,s,i)=>{n.exports=E,E.GlobSync=_;var o=i(2058),a=i(84),c=i(836),u=(c.Minimatch,i(808).Glob,i(970),i(7072)),l=i(6608),f=i(4832),p=i(9712),d=(p.alphasort,p.alphasorti,p.setopts),m=p.ownProp,g=p.childrenIgnored,h=p.isIgnored;function E(S,y){if(typeof y=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
177
177
  See: https://github.com/isaacs/node-glob/issues/167`);return new _(S,y).found}function _(S,y){if(!S)throw new Error("must provide pattern");if(typeof y=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
178
- See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof _))return new _(S,y);if(d(this,S,y),this.noprocess)return this;var T=this.minimatch.set.length;this.matches=new Array(T);for(var I=0;I<T;I++)this._process(this.minimatch.set[I],I,!1);this._finish()}_.prototype._finish=function(){if(l(this instanceof _),this.realpath){var S=this;this.matches.forEach((function(y,T){var I=S.matches[T]=Object.create(null);for(var v in y)try{v=S._makeAbs(v),I[a.realpathSync(v,S.realpathCache)]=!0}catch(x){if(x.syscall!=="stat")throw x;I[S._makeAbs(v)]=!0}}))}p.finish(this)},_.prototype._process=function(S,y,T){l(this instanceof _);for(var I,v=0;typeof S[v]=="string";)v++;switch(v){case S.length:return void this._processSimple(S.join("/"),y);case 0:I=null;break;default:I=S.slice(0,v).join("/")}var x,A=S.slice(v);I===null?x=".":((f(I)||f(S.join("/")))&&(I&&f(I)||(I="/"+I)),x=I);var D=this._makeAbs(x);g(this,x)||(A[0]===c.GLOBSTAR?this._processGlobStar(I,x,D,A,y,T):this._processReaddir(I,x,D,A,y,T))},_.prototype._processReaddir=function(S,y,T,I,v,x){var A=this._readdir(T,x);if(A){for(var D=I[0],P=!!this.minimatch.negate,F=D._glob,V=this.dot||F.charAt(0)===".",H=[],k=0;k<A.length;k++)((ne=A[k]).charAt(0)!=="."||V)&&(P&&!S?!ne.match(D):ne.match(D))&&H.push(ne);var X=H.length;if(X!==0)if(I.length!==1||this.mark||this.stat)for(I.shift(),k=0;k<X;k++){var ee;ne=H[k],ee=S?[S,ne]:[ne],this._process(ee.concat(I),v,x)}else for(this.matches[v]||(this.matches[v]=Object.create(null)),k=0;k<X;k++){var ne=H[k];S&&(ne=S.slice(-1)!=="/"?S+"/"+ne:S+ne),ne.charAt(0)!=="/"||this.nomount||(ne=u.join(this.root,ne)),this._emitMatch(v,ne)}}},_.prototype._emitMatch=function(S,y){if(!h(this,y)){var T=this._makeAbs(y);if(this.mark&&(y=this._mark(y)),this.absolute&&(y=T),!this.matches[S][y]){if(this.nodir){var I=this.cache[T];if(I==="DIR"||Array.isArray(I))return}this.matches[S][y]=!0,this.stat&&this._stat(y)}}},_.prototype._readdirInGlobStar=function(S){if(this.follow)return this._readdir(S,!1);var y,T;try{T=o.lstatSync(S)}catch(v){if(v.code==="ENOENT")return null}var I=T&&T.isSymbolicLink();return this.symlinks[S]=I,I||!T||T.isDirectory()?y=this._readdir(S,!1):this.cache[S]="FILE",y},_.prototype._readdir=function(S,y){if(y&&!m(this.symlinks,S))return this._readdirInGlobStar(S);if(m(this.cache,S)){var T=this.cache[S];if(!T||T==="FILE")return null;if(Array.isArray(T))return T}try{return this._readdirEntries(S,o.readdirSync(S))}catch(I){return this._readdirError(S,I),null}},_.prototype._readdirEntries=function(S,y){if(!this.mark&&!this.stat)for(var T=0;T<y.length;T++){var I=y[T];I=S==="/"?S+I:S+"/"+I,this.cache[I]=!0}return this.cache[S]=y,y},_.prototype._readdirError=function(S,y){switch(y.code){case"ENOTSUP":case"ENOTDIR":var T=this._makeAbs(S);if(this.cache[T]="FILE",T===this.cwdAbs){var I=new Error(y.code+" invalid cwd "+this.cwd);throw I.path=this.cwd,I.code=y.code,I}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(S)]=!1;break;default:if(this.cache[this._makeAbs(S)]=!1,this.strict)throw y;this.silent||console.error("glob error",y)}},_.prototype._processGlobStar=function(S,y,T,I,v,x){var A=this._readdir(T,x);if(A){var D=I.slice(1),P=S?[S]:[],F=P.concat(D);this._process(F,v,!1);var V=A.length;if(!this.symlinks[T]||!x){for(var H=0;H<V;H++)if(A[H].charAt(0)!=="."||this.dot){var k=P.concat(A[H],D);this._process(k,v,!0);var X=P.concat(A[H],I);this._process(X,v,!0)}}}},_.prototype._processSimple=function(S,y){var T=this._stat(S);if(this.matches[y]||(this.matches[y]=Object.create(null)),T){if(S&&f(S)&&!this.nomount){var I=/[\/\\]$/.test(S);S.charAt(0)==="/"?S=u.join(this.root,S):(S=u.resolve(this.root,S),I&&(S+="/"))}process.platform==="win32"&&(S=S.replace(/\\/g,"/")),this._emitMatch(y,S)}},_.prototype._stat=function(S){var y=this._makeAbs(S),T=S.slice(-1)==="/";if(S.length>this.maxLength)return!1;if(!this.stat&&m(this.cache,y)){var I=this.cache[y];if(Array.isArray(I)&&(I="DIR"),!T||I==="DIR")return I;if(T&&I==="FILE")return!1}var v=this.statCache[y];if(!v){var x;try{x=o.lstatSync(y)}catch(A){if(A&&(A.code==="ENOENT"||A.code==="ENOTDIR"))return this.statCache[y]=!1,!1}if(x&&x.isSymbolicLink())try{v=o.statSync(y)}catch{v=x}else v=x}return this.statCache[y]=v,I=!0,v&&(I=v.isDirectory()?"DIR":"FILE"),this.cache[y]=this.cache[y]||I,(!T||I!=="FILE")&&I},_.prototype._mark=function(S){return p.mark(this,S)},_.prototype._makeAbs=function(S){return p.makeAbs(this,S)}},363:(n,s,i)=>{var o=i(2680),a=Object.create(null),c=i(4640);n.exports=o((function(u,l){return a[u]?(a[u].push(l),null):(a[u]=[l],(function(f){return c((function p(){var d=a[f],m=d.length,g=(function(E){for(var _=E.length,S=[],y=0;y<_;y++)S[y]=E[y];return S})(arguments);try{for(var h=0;h<m;h++)d[h].apply(null,g)}finally{d.length>m?(d.splice(0,m),process.nextTick((function(){p.apply(null,g)}))):delete a[f]}}))})(u))}))},3352:(n,s,i)=>{try{var o=i(970);if(typeof o.inherits!="function")throw"";n.exports=o.inherits}catch{n.exports=i(8248)}},8248:n=>{typeof Object.create=="function"?n.exports=function(s,i){s.super_=i,s.prototype=Object.create(i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}})}:n.exports=function(s,i){s.super_=i;var o=function(){};o.prototype=i.prototype,s.prototype=new o,s.prototype.constructor=s}},1392:n=>{"use strict";var s=n.exports=function(i){return i!==null&&typeof i=="object"&&typeof i.pipe=="function"};s.writable=function(i){return s(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object"},s.readable=function(i){return s(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object"},s.duplex=function(i){return s.writable(i)&&s.readable(i)},s.transform=function(i){return s.duplex(i)&&typeof i._transform=="function"&&typeof i._transformState=="object"}},9268:(n,s,i)=>{var o;function a(c,u,l){if(typeof u=="function"&&(l=u,u={}),!l){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise((function(f,p){a(c,u||{},(function(d,m){d?p(d):f(m)}))}))}o(c,u||{},(function(f,p){f&&(f.code==="EACCES"||u&&u.ignoreErrors)&&(f=null,p=!1),l(f,p)}))}i(2058),o=process.platform==="win32"||global.TESTING_WINDOWS?i(8340):i(8692),n.exports=a,a.sync=function(c,u){try{return o.sync(c,u||{})}catch(l){if(u&&u.ignoreErrors||l.code==="EACCES")return!1;throw l}}},8692:(n,s,i)=>{n.exports=a,a.sync=function(u,l){return c(o.statSync(u),l)};var o=i(2058);function a(u,l,f){o.stat(u,(function(p,d){f(p,!p&&c(d,l))}))}function c(u,l){return u.isFile()&&(function(f,p){var d=f.mode,m=f.uid,g=f.gid,h=p.uid!==void 0?p.uid:process.getuid&&process.getuid(),E=p.gid!==void 0?p.gid:process.getgid&&process.getgid(),_=parseInt("100",8),S=parseInt("010",8);return d&parseInt("001",8)||d&S&&g===E||d&_&&m===h||d&(_|S)&&h===0})(u,l)}},8340:(n,s,i)=>{n.exports=c,c.sync=function(u,l){return a(o.statSync(u),u,l)};var o=i(2058);function a(u,l,f){return!(!u.isSymbolicLink()&&!u.isFile())&&(function(p,d){var m=d.pathExt!==void 0?d.pathExt:process.env.PATHEXT;if(!m||(m=m.split(";")).indexOf("")!==-1)return!0;for(var g=0;g<m.length;g++){var h=m[g].toLowerCase();if(h&&p.substr(-h.length).toLowerCase()===h)return!0}return!1})(l,f)}function c(u,l,f){o.stat(u,(function(p,d){f(p,!p&&a(d,u,l))}))}},2941:(n,s,i)=>{"use strict";let o=i(8558),a=new Map([[18,"Mojave"],[17,"High Sierra"],[16,"Sierra"],[15,"El Capitan"],[14,"Yosemite"],[13,"Mavericks"],[12,"Mountain Lion"],[11,"Lion"],[10,"Snow Leopard"],[9,"Leopard"],[8,"Tiger"],[7,"Panther"],[6,"Jaguar"],[5,"Puma"]]),c=u=>(u=Number((u||o.release()).split(".")[0]),{name:a.get(u),version:"10."+(u-4)});n.exports=c,n.exports.default=c},836:(n,s,i)=>{n.exports=g,g.Minimatch=h;var o={sep:"/"};try{o=i(7072)}catch{}var a=g.GLOBSTAR=h.GLOBSTAR={},c=i(1620),u={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},l="[^/]",f=l+"*?",p="().*{}+?[]^$\\!".split("").reduce((function(S,y){return S[y]=!0,S}),{}),d=/\/+/;function m(S,y){S=S||{},y=y||{};var T={};return Object.keys(y).forEach((function(I){T[I]=y[I]})),Object.keys(S).forEach((function(I){T[I]=S[I]})),T}function g(S,y,T){if(typeof y!="string")throw new TypeError("glob pattern string required");return T||(T={}),!(!T.nocomment&&y.charAt(0)==="#")&&(y.trim()===""?S==="":new h(y,T).match(S))}function h(S,y){if(!(this instanceof h))return new h(S,y);if(typeof S!="string")throw new TypeError("glob pattern string required");y||(y={}),S=S.trim(),o.sep!=="/"&&(S=S.split(o.sep).join("/")),this.options=y,this.set=[],this.pattern=S,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function E(S,y){if(y||(y=this instanceof h?this.options:{}),(S=S===void 0?this.pattern:S)===void 0)throw new TypeError("undefined pattern");return y.nobrace||!S.match(/\{.*\}/)?[S]:c(S)}g.filter=function(S,y){return y=y||{},function(T,I,v){return g(T,S,y)}},g.defaults=function(S){if(!S||!Object.keys(S).length)return g;var y=g,T=function(I,v,x){return y.minimatch(I,v,m(S,x))};return T.Minimatch=function(I,v){return new y.Minimatch(I,m(S,v))},T},h.defaults=function(S){return S&&Object.keys(S).length?g.defaults(S).Minimatch:h},h.prototype.debug=function(){},h.prototype.make=function(){if(!this._made){var S=this.pattern,y=this.options;if(y.nocomment||S.charAt(0)!=="#")if(S){this.parseNegate();var T=this.globSet=this.braceExpand();y.debug&&(this.debug=console.error),this.debug(this.pattern,T),T=this.globParts=T.map((function(I){return I.split(d)})),this.debug(this.pattern,T),T=T.map((function(I,v,x){return I.map(this.parse,this)}),this),this.debug(this.pattern,T),T=T.filter((function(I){return I.indexOf(!1)===-1})),this.debug(this.pattern,T),this.set=T}else this.empty=!0;else this.comment=!0}},h.prototype.parseNegate=function(){var S=this.pattern,y=!1,T=0;if(!this.options.nonegate){for(var I=0,v=S.length;I<v&&S.charAt(I)==="!";I++)y=!y,T++;T&&(this.pattern=S.substr(T)),this.negate=y}},g.braceExpand=function(S,y){return E(S,y)},h.prototype.braceExpand=E,h.prototype.parse=function(S,y){if(S.length>65536)throw new TypeError("pattern is too long");var T=this.options;if(!T.noglobstar&&S==="**")return a;if(S==="")return"";var I,v="",x=!!T.nocase,A=!1,D=[],P=[],F=!1,V=-1,H=-1,k=S.charAt(0)==="."?"":T.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",X=this;function ee(){if(I){switch(I){case"*":v+=f,x=!0;break;case"?":v+=l,x=!0;break;default:v+="\\"+I}X.debug("clearStateChar %j %j",I,v),I=!1}}for(var ne,ie=0,Ee=S.length;ie<Ee&&(ne=S.charAt(ie));ie++)if(this.debug("%s %s %s %j",S,ie,v,ne),A&&p[ne])v+="\\"+ne,A=!1;else switch(ne){case"/":return!1;case"\\":ee(),A=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",S,ie,v,ne),F){this.debug(" in class"),ne==="!"&&ie===H+1&&(ne="^"),v+=ne;continue}X.debug("call clearStateChar %j",I),ee(),I=ne,T.noext&&ee();continue;case"(":if(F){v+="(";continue}if(!I){v+="\\(";continue}D.push({type:I,start:ie-1,reStart:v.length,open:u[I].open,close:u[I].close}),v+=I==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",I,v),I=!1;continue;case")":if(F||!D.length){v+="\\)";continue}ee(),x=!0;var K=D.pop();v+=K.close,K.type==="!"&&P.push(K),K.reEnd=v.length;continue;case"|":if(F||!D.length||A){v+="\\|",A=!1;continue}ee(),v+="|";continue;case"[":if(ee(),F){v+="\\"+ne;continue}F=!0,H=ie,V=v.length,v+=ne;continue;case"]":if(ie===H+1||!F){v+="\\"+ne,A=!1;continue}if(F){var le=S.substring(H+1,ie);try{RegExp("["+le+"]")}catch{var de=this.parse(le,_);v=v.substr(0,V)+"\\["+de[0]+"\\]",x=x||de[1],F=!1;continue}}x=!0,F=!1,v+=ne;continue;default:ee(),A?A=!1:!p[ne]||ne==="^"&&F||(v+="\\"),v+=ne}for(F&&(le=S.substr(H+1),de=this.parse(le,_),v=v.substr(0,V)+"\\["+de[0],x=x||de[1]),K=D.pop();K;K=D.pop()){var q=v.slice(K.reStart+K.open.length);this.debug("setting tail",v,K),q=q.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(G,w,Z){return Z||(Z="\\"),w+w+Z+"|"})),this.debug(`tail=%j
179
- %s`,q,q,K,v);var ke=K.type==="*"?f:K.type==="?"?l:"\\"+K.type;x=!0,v=v.slice(0,K.reStart)+ke+"\\("+q}ee(),A&&(v+="\\\\");var U=!1;switch(v.charAt(0)){case".":case"[":case"(":U=!0}for(var L=P.length-1;L>-1;L--){var N=P[L],z=v.slice(0,N.reStart),oe=v.slice(N.reStart,N.reEnd-8),fe=v.slice(N.reEnd-8,N.reEnd),Re=v.slice(N.reEnd);fe+=Re;var De=z.split("(").length-1,Se=Re;for(ie=0;ie<De;ie++)Se=Se.replace(/\)[+*?]?/,"");var b="";(Re=Se)===""&&y!==_&&(b="$"),v=z+oe+Re+b+fe}if(v!==""&&x&&(v="(?=.)"+v),U&&(v=k+v),y===_)return[v,x];if(!x)return S.replace(/\\(.)/g,"$1");var R=T.nocase?"i":"";try{var $=new RegExp("^"+v+"$",R)}catch{return new RegExp("$.")}return $._glob=S,$._src=v,$};var _={};g.makeRe=function(S,y){return new h(S,y||{}).makeRe()},h.prototype.makeRe=function(){if(this.regexp||this.regexp===!1)return this.regexp;var S=this.set;if(!S.length)return this.regexp=!1,this.regexp;var y=this.options,T=y.noglobstar?f:y.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",I=y.nocase?"i":"",v=S.map((function(x){return x.map((function(A){return A===a?T:typeof A=="string"?A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):A._src})).join("\\/")})).join("|");v="^(?:"+v+")$",this.negate&&(v="^(?!"+v+").*$");try{this.regexp=new RegExp(v,I)}catch{this.regexp=!1}return this.regexp},g.match=function(S,y,T){var I=new h(y,T=T||{});return S=S.filter((function(v){return I.match(v)})),I.options.nonull&&!S.length&&S.push(y),S},h.prototype.match=function(S,y){if(this.debug("match",S,this.pattern),this.comment)return!1;if(this.empty)return S==="";if(S==="/"&&y)return!0;var T=this.options;o.sep!=="/"&&(S=S.split(o.sep).join("/")),S=S.split(d),this.debug(this.pattern,"split",S);var I,v,x=this.set;for(this.debug(this.pattern,"set",x),v=S.length-1;v>=0&&!(I=S[v]);v--);for(v=0;v<x.length;v++){var A=x[v],D=S;if(T.matchBase&&A.length===1&&(D=[I]),this.matchOne(D,A,y))return!!T.flipNegate||!this.negate}return!T.flipNegate&&this.negate},h.prototype.matchOne=function(S,y,T){var I=this.options;this.debug("matchOne",{this:this,file:S,pattern:y}),this.debug("matchOne",S.length,y.length);for(var v=0,x=0,A=S.length,D=y.length;v<A&&x<D;v++,x++){this.debug("matchOne loop");var P,F=y[x],V=S[v];if(this.debug(y,F,V),F===!1)return!1;if(F===a){this.debug("GLOBSTAR",[y,F,V]);var H=v,k=x+1;if(k===D){for(this.debug("** at the end");v<A;v++)if(S[v]==="."||S[v]===".."||!I.dot&&S[v].charAt(0)===".")return!1;return!0}for(;H<A;){var X=S[H];if(this.debug(`
180
- globstar while`,S,H,y,k,X),this.matchOne(S.slice(H),y.slice(k),T))return this.debug("globstar found match!",H,A,X),!0;if(X==="."||X===".."||!I.dot&&X.charAt(0)==="."){this.debug("dot detected!",S,H,y,k);break}this.debug("globstar swallow a segment, and continue"),H++}return!(!T||(this.debug(`
181
- >>> no match, partial?`,S,H,y,k),H!==A))}if(typeof F=="string"?(P=I.nocase?V.toLowerCase()===F.toLowerCase():V===F,this.debug("string match",F,V,P)):(P=V.match(F),this.debug("pattern match",F,V,P)),!P)return!1}if(v===A&&x===D)return!0;if(v===A)return T;if(x===D)return v===A-1&&S[v]==="";throw new Error("wtf?")}},9480:n=>{"use strict";n.exports=function(s){try{return s()}catch{}}},9584:(n,s,i)=>{"use strict";let o=i(7072),a=i(3032);n.exports=c=>{let u;c=Object.assign({cwd:process.cwd(),path:process.env[a()]},c);let l=o.resolve(c.cwd),f=[];for(;u!==l;)f.push(o.join(l,"node_modules/.bin")),u=l,l=o.resolve(l,"..");return f.push(o.dirname(process.execPath)),f.concat(c.path).join(o.delimiter)},n.exports.env=c=>{c=Object.assign({env:process.env},c);let u=Object.assign({},c.env),l=a({env:u});return c.path=u[l],u[l]=n.exports(c),u}},4640:(n,s,i)=>{var o=i(2680);function a(u){var l=function(){return l.called?l.value:(l.called=!0,l.value=u.apply(this,arguments))};return l.called=!1,l}function c(u){var l=function(){if(l.called)throw new Error(l.onceError);return l.called=!0,l.value=u.apply(this,arguments)},f=u.name||"Function wrapped with `once`";return l.onceError=f+" shouldn't be called more than once",l.called=!1,l}n.exports=o(a),n.exports.strict=o(c),a.proto=a((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return a(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return c(this)},configurable:!0})}))},2288:(n,s,i)=>{"use strict";let o=i(8558),a=i(2941),c=i(6468);n.exports=(u,l)=>{if(!u&&l)throw new Error("You can't specify a `release` without specifying `platform`");let f;if((u=u||o.platform())==="darwin"){l||o.platform()!=="darwin"||(l=o.release());let p=l?Number(l.split(".")[0])>15?"macOS":"OS X":"macOS";return f=l?a(l).name:"",p+(f?" "+f:"")}return u==="linux"?(l||o.platform()!=="linux"||(l=o.release()),f=l?l.replace(/^(\d+\.\d+).*/,"$1"):"","Linux"+(f?" "+f:"")):u==="win32"?(l||o.platform()!=="win32"||(l=o.release()),f=l?c(l):"","Windows"+(f?" "+f:"")):u}},1548:n=>{"use strict";n.exports=(s,i)=>(i=i||(()=>{}),s.then((o=>new Promise((a=>{a(i())})).then((()=>o))),(o=>new Promise((a=>{a(i())})).then((()=>{throw o})))))},4832:n=>{"use strict";function s(o){return o.charAt(0)==="/"}function i(o){var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(o),c=a[1]||"",u=!!(c&&c.charAt(1)!==":");return!!(a[2]||u)}n.exports=process.platform==="win32"?i:s,n.exports.posix=s,n.exports.win32=i},3032:n=>{"use strict";n.exports=s=>{let i=(s=s||{}).env||process.env;return(s.platform||process.platform)!=="win32"?"PATH":Object.keys(i).find((o=>o.toUpperCase()==="PATH"))||"Path"}},8984:(n,s,i)=>{var o=i(4640),a=i(9988),c=i(2058),u=function(){},l=/^v?\.0/.test(process.version),f=function(m){return typeof m=="function"},p=function(m){m()},d=function(m,g){return m.pipe(g)};n.exports=function(){var m,g=Array.prototype.slice.call(arguments),h=f(g[g.length-1]||u)&&g.pop()||u;if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new Error("pump requires two streams per minimum");var E=g.map((function(_,S){var y=S<g.length-1;return(function(T,I,v,x){x=o(x);var A=!1;T.on("close",(function(){A=!0})),a(T,{readable:I,writable:v},(function(P){if(P)return x(P);A=!0,x()}));var D=!1;return function(P){if(!A&&!D)return D=!0,(function(F){return!!l&&!!c&&(F instanceof(c.ReadStream||u)||F instanceof(c.WriteStream||u))&&f(F.close)})(T)?T.close(u):(function(F){return F.setHeader&&f(F.abort)})(T)?T.abort():f(T.destroy)?T.destroy():void x(P||new Error("stream was destroyed"))}})(_,y,S>0,(function(T){m||(m=T),T&&E.forEach(p),y||(E.forEach(p),h(m))}))}));return g.reduce(d)}},1716:(n,s)=>{var i;s=n.exports=Se,i=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var j=Array.prototype.slice.call(arguments,0);j.unshift("SEMVER"),console.log.apply(console,j)}:function(){},s.SEMVER_SPEC_VERSION="2.0.0";var o=256,a=Number.MAX_SAFE_INTEGER||9007199254740991,c=s.re=[],u=s.src=[],l=0,f=l++;u[f]="0|[1-9]\\d*";var p=l++;u[p]="[0-9]+";var d=l++;u[d]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var m=l++;u[m]="("+u[f]+")\\.("+u[f]+")\\.("+u[f]+")";var g=l++;u[g]="("+u[p]+")\\.("+u[p]+")\\.("+u[p]+")";var h=l++;u[h]="(?:"+u[f]+"|"+u[d]+")";var E=l++;u[E]="(?:"+u[p]+"|"+u[d]+")";var _=l++;u[_]="(?:-("+u[h]+"(?:\\."+u[h]+")*))";var S=l++;u[S]="(?:-?("+u[E]+"(?:\\."+u[E]+")*))";var y=l++;u[y]="[0-9A-Za-z-]+";var T=l++;u[T]="(?:\\+("+u[y]+"(?:\\."+u[y]+")*))";var I=l++,v="v?"+u[m]+u[_]+"?"+u[T]+"?";u[I]="^"+v+"$";var x="[v=\\s]*"+u[g]+u[S]+"?"+u[T]+"?",A=l++;u[A]="^"+x+"$";var D=l++;u[D]="((?:<|>)?=?)";var P=l++;u[P]=u[p]+"|x|X|\\*";var F=l++;u[F]=u[f]+"|x|X|\\*";var V=l++;u[V]="[v=\\s]*("+u[F]+")(?:\\.("+u[F]+")(?:\\.("+u[F]+")(?:"+u[_]+")?"+u[T]+"?)?)?";var H=l++;u[H]="[v=\\s]*("+u[P]+")(?:\\.("+u[P]+")(?:\\.("+u[P]+")(?:"+u[S]+")?"+u[T]+"?)?)?";var k=l++;u[k]="^"+u[D]+"\\s*"+u[V]+"$";var X=l++;u[X]="^"+u[D]+"\\s*"+u[H]+"$";var ee=l++;u[ee]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var ne=l++;u[ne]="(?:~>?)";var ie=l++;u[ie]="(\\s*)"+u[ne]+"\\s+",c[ie]=new RegExp(u[ie],"g");var Ee=l++;u[Ee]="^"+u[ne]+u[V]+"$";var K=l++;u[K]="^"+u[ne]+u[H]+"$";var le=l++;u[le]="(?:\\^)";var de=l++;u[de]="(\\s*)"+u[le]+"\\s+",c[de]=new RegExp(u[de],"g");var q=l++;u[q]="^"+u[le]+u[V]+"$";var ke=l++;u[ke]="^"+u[le]+u[H]+"$";var U=l++;u[U]="^"+u[D]+"\\s*("+x+")$|^$";var L=l++;u[L]="^"+u[D]+"\\s*("+v+")$|^$";var N=l++;u[N]="(\\s*)"+u[D]+"\\s*("+x+"|"+u[V]+")",c[N]=new RegExp(u[N],"g");var z=l++;u[z]="^\\s*("+u[V]+")\\s+-\\s+("+u[V]+")\\s*$";var oe=l++;u[oe]="^\\s*("+u[H]+")\\s+-\\s+("+u[H]+")\\s*$";var fe=l++;u[fe]="(<|>)?=?\\s*\\*";for(var Re=0;Re<35;Re++)i(Re,u[Re]),c[Re]||(c[Re]=new RegExp(u[Re]));function De(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof Se)return j;if(typeof j!="string"||j.length>o||!(Y.loose?c[A]:c[I]).test(j))return null;try{return new Se(j,Y)}catch{return null}}function Se(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof Se){if(j.loose===Y.loose)return j;j=j.version}else if(typeof j!="string")throw new TypeError("Invalid Version: "+j);if(j.length>o)throw new TypeError("version is longer than "+o+" characters");if(!(this instanceof Se))return new Se(j,Y);i("SemVer",j,Y),this.options=Y,this.loose=!!Y.loose;var re=j.trim().match(Y.loose?c[A]:c[I]);if(!re)throw new TypeError("Invalid Version: "+j);if(this.raw=j,this.major=+re[1],this.minor=+re[2],this.patch=+re[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");re[4]?this.prerelease=re[4].split(".").map((function(Te){if(/^[0-9]+$/.test(Te)){var Ve=+Te;if(Ve>=0&&Ve<a)return Ve}return Te})):this.prerelease=[],this.build=re[5]?re[5].split("."):[],this.format()}s.parse=De,s.valid=function(j,Y){var re=De(j,Y);return re?re.version:null},s.clean=function(j,Y){var re=De(j.trim().replace(/^[=v]+/,""),Y);return re?re.version:null},s.SemVer=Se,Se.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},Se.prototype.toString=function(){return this.version},Se.prototype.compare=function(j){return i("SemVer.compare",this.version,this.options,j),j instanceof Se||(j=new Se(j,this.options)),this.compareMain(j)||this.comparePre(j)},Se.prototype.compareMain=function(j){return j instanceof Se||(j=new Se(j,this.options)),R(this.major,j.major)||R(this.minor,j.minor)||R(this.patch,j.patch)},Se.prototype.comparePre=function(j){if(j instanceof Se||(j=new Se(j,this.options)),this.prerelease.length&&!j.prerelease.length)return-1;if(!this.prerelease.length&&j.prerelease.length)return 1;if(!this.prerelease.length&&!j.prerelease.length)return 0;var Y=0;do{var re=this.prerelease[Y],Te=j.prerelease[Y];if(i("prerelease compare",Y,re,Te),re===void 0&&Te===void 0)return 0;if(Te===void 0)return 1;if(re===void 0)return-1;if(re!==Te)return R(re,Te)}while(++Y)},Se.prototype.inc=function(j,Y){switch(j){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",Y);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",Y);break;case"prepatch":this.prerelease.length=0,this.inc("patch",Y),this.inc("pre",Y);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",Y),this.inc("pre",Y);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var re=this.prerelease.length;--re>=0;)typeof this.prerelease[re]=="number"&&(this.prerelease[re]++,re=-2);re===-1&&this.prerelease.push(0)}Y&&(this.prerelease[0]===Y?isNaN(this.prerelease[1])&&(this.prerelease=[Y,0]):this.prerelease=[Y,0]);break;default:throw new Error("invalid increment argument: "+j)}return this.format(),this.raw=this.version,this},s.inc=function(j,Y,re,Te){typeof re=="string"&&(Te=re,re=void 0);try{return new Se(j,re).inc(Y,Te).version}catch{return null}},s.diff=function(j,Y){if(Z(j,Y))return null;var re=De(j),Te=De(Y);if(re.prerelease.length||Te.prerelease.length){for(var Ve in re)if((Ve==="major"||Ve==="minor"||Ve==="patch")&&re[Ve]!==Te[Ve])return"pre"+Ve;return"prerelease"}for(var Ve in re)if((Ve==="major"||Ve==="minor"||Ve==="patch")&&re[Ve]!==Te[Ve])return Ve},s.compareIdentifiers=R;var b=/^[0-9]+$/;function R(j,Y){var re=b.test(j),Te=b.test(Y);return re&&Te&&(j=+j,Y=+Y),re&&!Te?-1:Te&&!re?1:j<Y?-1:j>Y?1:0}function $(j,Y,re){return new Se(j,re).compare(new Se(Y,re))}function G(j,Y,re){return $(j,Y,re)>0}function w(j,Y,re){return $(j,Y,re)<0}function Z(j,Y,re){return $(j,Y,re)===0}function J(j,Y,re){return $(j,Y,re)!==0}function se(j,Y,re){return $(j,Y,re)>=0}function Je(j,Y,re){return $(j,Y,re)<=0}function st(j,Y,re,Te){var Ve;switch(Y){case"===":typeof j=="object"&&(j=j.version),typeof re=="object"&&(re=re.version),Ve=j===re;break;case"!==":typeof j=="object"&&(j=j.version),typeof re=="object"&&(re=re.version),Ve=j!==re;break;case"":case"=":case"==":Ve=Z(j,re,Te);break;case"!=":Ve=J(j,re,Te);break;case">":Ve=G(j,re,Te);break;case">=":Ve=se(j,re,Te);break;case"<":Ve=w(j,re,Te);break;case"<=":Ve=Je(j,re,Te);break;default:throw new TypeError("Invalid operator: "+Y)}return Ve}function hn(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof hn){if(j.loose===!!Y.loose)return j;j=j.value}if(!(this instanceof hn))return new hn(j,Y);i("comparator",j,Y),this.options=Y,this.loose=!!Y.loose,this.parse(j),this.semver===Du?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}s.rcompareIdentifiers=function(j,Y){return R(Y,j)},s.major=function(j,Y){return new Se(j,Y).major},s.minor=function(j,Y){return new Se(j,Y).minor},s.patch=function(j,Y){return new Se(j,Y).patch},s.compare=$,s.compareLoose=function(j,Y){return $(j,Y,!0)},s.rcompare=function(j,Y,re){return $(Y,j,re)},s.sort=function(j,Y){return j.sort((function(re,Te){return s.compare(re,Te,Y)}))},s.rsort=function(j,Y){return j.sort((function(re,Te){return s.rcompare(re,Te,Y)}))},s.gt=G,s.lt=w,s.eq=Z,s.neq=J,s.gte=se,s.lte=Je,s.cmp=st,s.Comparator=hn;var Du={};function Bt(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof Bt)return j.loose===!!Y.loose&&j.includePrerelease===!!Y.includePrerelease?j:new Bt(j.raw,Y);if(j instanceof hn)return new Bt(j.value,Y);if(!(this instanceof Bt))return new Bt(j,Y);if(this.options=Y,this.loose=!!Y.loose,this.includePrerelease=!!Y.includePrerelease,this.raw=j,this.set=j.split(/\s*\|\|\s*/).map((function(re){return this.parseRange(re.trim())}),this).filter((function(re){return re.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+j);this.format()}function wr(j){return!j||j.toLowerCase()==="x"||j==="*"}function V9(j,Y,re,Te,Ve,Zt,ft,Rr,Ft,gr,fi,Vt,gt){return((Y=wr(re)?"":wr(Te)?">="+re+".0.0":wr(Ve)?">="+re+"."+Te+".0":">="+Y)+" "+(Rr=wr(Ft)?"":wr(gr)?"<"+(+Ft+1)+".0.0":wr(fi)?"<"+Ft+"."+(+gr+1)+".0":Vt?"<="+Ft+"."+gr+"."+fi+"-"+Vt:"<="+Rr)).trim()}function G9(j,Y,re){for(var Te=0;Te<j.length;Te++)if(!j[Te].test(Y))return!1;if(re||(re={}),Y.prerelease.length&&!re.includePrerelease){for(Te=0;Te<j.length;Te++)if(i(j[Te].semver),j[Te].semver!==Du&&j[Te].semver.prerelease.length>0){var Ve=j[Te].semver;if(Ve.major===Y.major&&Ve.minor===Y.minor&&Ve.patch===Y.patch)return!0}return!1}return!0}function zf(j,Y,re){try{Y=new Bt(Y,re)}catch{return!1}return Y.test(j)}function bg(j,Y,re,Te){var Ve,Zt,ft,Rr,Ft;switch(j=new Se(j,Te),Y=new Bt(Y,Te),re){case">":Ve=G,Zt=Je,ft=w,Rr=">",Ft=">=";break;case"<":Ve=w,Zt=se,ft=G,Rr="<",Ft="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(zf(j,Y,Te))return!1;for(var gr=0;gr<Y.set.length;++gr){var fi=Y.set[gr],Vt=null,gt=null;if(fi.forEach((function(Hr){Hr.semver===Du&&(Hr=new hn(">=0.0.0")),Vt=Vt||Hr,gt=gt||Hr,Ve(Hr.semver,Vt.semver,Te)?Vt=Hr:ft(Hr.semver,gt.semver,Te)&&(gt=Hr)})),Vt.operator===Rr||Vt.operator===Ft||(!gt.operator||gt.operator===Rr)&&Zt(j,gt.semver)||gt.operator===Ft&&ft(j,gt.semver))return!1}return!0}hn.prototype.parse=function(j){var Y=this.options.loose?c[U]:c[L],re=j.match(Y);if(!re)throw new TypeError("Invalid comparator: "+j);this.operator=re[1],this.operator==="="&&(this.operator=""),re[2]?this.semver=new Se(re[2],this.options.loose):this.semver=Du},hn.prototype.toString=function(){return this.value},hn.prototype.test=function(j){return i("Comparator.test",j,this.options.loose),this.semver===Du||(typeof j=="string"&&(j=new Se(j,this.options)),st(j,this.operator,this.semver,this.options))},hn.prototype.intersects=function(j,Y){if(!(j instanceof hn))throw new TypeError("a Comparator is required");var re;if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),this.operator==="")return re=new Bt(j.value,Y),zf(this.value,re,Y);if(j.operator==="")return re=new Bt(this.value,Y),zf(j.semver,re,Y);var Te=!(this.operator!==">="&&this.operator!==">"||j.operator!==">="&&j.operator!==">"),Ve=!(this.operator!=="<="&&this.operator!=="<"||j.operator!=="<="&&j.operator!=="<"),Zt=this.semver.version===j.semver.version,ft=!(this.operator!==">="&&this.operator!=="<="||j.operator!==">="&&j.operator!=="<="),Rr=st(this.semver,"<",j.semver,Y)&&(this.operator===">="||this.operator===">")&&(j.operator==="<="||j.operator==="<"),Ft=st(this.semver,">",j.semver,Y)&&(this.operator==="<="||this.operator==="<")&&(j.operator===">="||j.operator===">");return Te||Ve||Zt&&ft||Rr||Ft},s.Range=Bt,Bt.prototype.format=function(){return this.range=this.set.map((function(j){return j.join(" ").trim()})).join("||").trim(),this.range},Bt.prototype.toString=function(){return this.range},Bt.prototype.parseRange=function(j){var Y=this.options.loose;j=j.trim();var re=Y?c[oe]:c[z];j=j.replace(re,V9),i("hyphen replace",j),j=j.replace(c[N],"$1$2$3"),i("comparator trim",j,c[N]),j=(j=(j=j.replace(c[ie],"$1~")).replace(c[de],"$1^")).split(/\s+/).join(" ");var Te=Y?c[U]:c[L],Ve=j.split(" ").map((function(Zt){return(function(ft,Rr){return i("comp",ft,Rr),ft=(function(Ft,gr){return Ft.trim().split(/\s+/).map((function(fi){return(function(Vt,gt){i("caret",Vt,gt),gt&&typeof gt=="object"||(gt={loose:!!gt,includePrerelease:!1});var Hr=gt.loose?c[ke]:c[q];return Vt.replace(Hr,(function($n,He,et,_t,xt){var lr;return i("caret",Vt,$n,He,et,_t,xt),wr(He)?lr="":wr(et)?lr=">="+He+".0.0 <"+(+He+1)+".0.0":wr(_t)?lr=He==="0"?">="+He+"."+et+".0 <"+He+"."+(+et+1)+".0":">="+He+"."+et+".0 <"+(+He+1)+".0.0":xt?(i("replaceCaret pr",xt),xt.charAt(0)!=="-"&&(xt="-"+xt),lr=He==="0"?et==="0"?">="+He+"."+et+"."+_t+xt+" <"+He+"."+et+"."+(+_t+1):">="+He+"."+et+"."+_t+xt+" <"+He+"."+(+et+1)+".0":">="+He+"."+et+"."+_t+xt+" <"+(+He+1)+".0.0"):(i("no pr"),lr=He==="0"?et==="0"?">="+He+"."+et+"."+_t+" <"+He+"."+et+"."+(+_t+1):">="+He+"."+et+"."+_t+" <"+He+"."+(+et+1)+".0":">="+He+"."+et+"."+_t+" <"+(+He+1)+".0.0"),i("caret return",lr),lr}))})(fi,gr)})).join(" ")})(ft,Rr),i("caret",ft),ft=(function(Ft,gr){return Ft.trim().split(/\s+/).map((function(fi){return(function(Vt,gt){gt&&typeof gt=="object"||(gt={loose:!!gt,includePrerelease:!1});var Hr=gt.loose?c[K]:c[Ee];return Vt.replace(Hr,(function($n,He,et,_t,xt){var lr;return i("tilde",Vt,$n,He,et,_t,xt),wr(He)?lr="":wr(et)?lr=">="+He+".0.0 <"+(+He+1)+".0.0":wr(_t)?lr=">="+He+"."+et+".0 <"+He+"."+(+et+1)+".0":xt?(i("replaceTilde pr",xt),xt.charAt(0)!=="-"&&(xt="-"+xt),lr=">="+He+"."+et+"."+_t+xt+" <"+He+"."+(+et+1)+".0"):lr=">="+He+"."+et+"."+_t+" <"+He+"."+(+et+1)+".0",i("tilde return",lr),lr}))})(fi,gr)})).join(" ")})(ft,Rr),i("tildes",ft),ft=(function(Ft,gr){return i("replaceXRanges",Ft,gr),Ft.split(/\s+/).map((function(fi){return(function(Vt,gt){Vt=Vt.trim(),gt&&typeof gt=="object"||(gt={loose:!!gt,includePrerelease:!1});var Hr=gt.loose?c[X]:c[k];return Vt.replace(Hr,(function($n,He,et,_t,xt,lr){i("xRange",Vt,$n,He,et,_t,xt,lr);var SC=wr(et),xu=SC||wr(_t),bu=xu||wr(xt);return He==="="&&bu&&(He=""),SC?$n=He===">"||He==="<"?"<0.0.0":"*":He&&bu?(xu&&(_t=0),bu&&(xt=0),He===">"?(He=">=",xu?(et=+et+1,_t=0,xt=0):bu&&(_t=+_t+1,xt=0)):He==="<="&&(He="<",xu?et=+et+1:_t=+_t+1),$n=He+et+"."+_t+"."+xt):xu?$n=">="+et+".0.0 <"+(+et+1)+".0.0":bu&&($n=">="+et+"."+_t+".0 <"+et+"."+(+_t+1)+".0"),i("xRange return",$n),$n}))})(fi,gr)})).join(" ")})(ft,Rr),i("xrange",ft),ft=(function(Ft,gr){return i("replaceStars",Ft,gr),Ft.trim().replace(c[fe],"")})(ft,Rr),i("stars",ft),ft})(Zt,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(Ve=Ve.filter((function(Zt){return!!Zt.match(Te)}))),Ve.map((function(Zt){return new hn(Zt,this.options)}),this)},Bt.prototype.intersects=function(j,Y){if(!(j instanceof Bt))throw new TypeError("a Range is required");return this.set.some((function(re){return re.every((function(Te){return j.set.some((function(Ve){return Ve.every((function(Zt){return Te.intersects(Zt,Y)}))}))}))}))},s.toComparators=function(j,Y){return new Bt(j,Y).set.map((function(re){return re.map((function(Te){return Te.value})).join(" ").trim().split(" ")}))},Bt.prototype.test=function(j){if(!j)return!1;typeof j=="string"&&(j=new Se(j,this.options));for(var Y=0;Y<this.set.length;Y++)if(G9(this.set[Y],j,this.options))return!0;return!1},s.satisfies=zf,s.maxSatisfying=function(j,Y,re){var Te=null,Ve=null;try{var Zt=new Bt(Y,re)}catch{return null}return j.forEach((function(ft){Zt.test(ft)&&(Te&&Ve.compare(ft)!==-1||(Ve=new Se(Te=ft,re)))})),Te},s.minSatisfying=function(j,Y,re){var Te=null,Ve=null;try{var Zt=new Bt(Y,re)}catch{return null}return j.forEach((function(ft){Zt.test(ft)&&(Te&&Ve.compare(ft)!==1||(Ve=new Se(Te=ft,re)))})),Te},s.validRange=function(j,Y){try{return new Bt(j,Y).range||"*"}catch{return null}},s.ltr=function(j,Y,re){return bg(j,Y,"<",re)},s.gtr=function(j,Y,re){return bg(j,Y,">",re)},s.outside=bg,s.prerelease=function(j,Y){var re=De(j,Y);return re&&re.prerelease.length?re.prerelease:null},s.intersects=function(j,Y,re){return j=new Bt(j,re),Y=new Bt(Y,re),j.intersects(Y)},s.coerce=function(j){if(j instanceof Se)return j;if(typeof j!="string")return null;var Y=j.match(c[ee]);return Y==null?null:De((Y[1]||"0")+"."+(Y[2]||"0")+"."+(Y[3]||"0"))}},6176:(n,s,i)=>{"use strict";var o=i(184);n.exports=function(a){var c=a.match(o);if(!c)return null;var u=c[0].replace(/#! ?/,"").split(" "),l=u[0].split("/").pop(),f=u[1];return l==="env"?f:l+(f?" "+f:"")}},184:n=>{"use strict";n.exports=/^#!.*/},200:(n,s,i)=>{var o,a=i(6608),c=i(6132),u=i(467);function l(){d&&(d=!1,c.forEach((function(S){try{process.removeListener(S,p[S])}catch{}})),process.emit=E,process.reallyExit=g,o.count-=1)}function f(S,y,T){o.emitted[S]||(o.emitted[S]=!0,o.emit(S,y,T))}typeof u!="function"&&(u=u.EventEmitter),process.__signal_exit_emitter__?o=process.__signal_exit_emitter__:((o=process.__signal_exit_emitter__=new u).count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),n.exports=function(S,y){a.equal(typeof S,"function","a callback must be provided for exit handler"),d===!1&&m();var T="exit";return y&&y.alwaysLast&&(T="afterexit"),o.on(T,S),function(){o.removeListener(T,S),o.listeners("exit").length===0&&o.listeners("afterexit").length===0&&l()}},n.exports.unload=l;var p={};c.forEach((function(S){p[S]=function(){process.listeners(S).length===o.count&&(l(),f("exit",null,S),f("afterexit",null,S),process.kill(process.pid,S))}})),n.exports.signals=function(){return c},n.exports.load=m;var d=!1;function m(){d||(d=!0,o.count+=1,c=c.filter((function(S){try{return process.on(S,p[S]),!0}catch{return!1}})),process.emit=_,process.reallyExit=h)}var g=process.reallyExit;function h(S){process.exitCode=S||0,f("exit",process.exitCode,null),f("afterexit",process.exitCode,null),g.call(process,process.exitCode)}var E=process.emit;function _(S,y){if(S==="exit"){y!==void 0&&(process.exitCode=y);var T=E.apply(this,arguments);return f("exit",process.exitCode,null),f("afterexit",process.exitCode,null),T}return E.apply(this,arguments)}},6132:n=>{n.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&n.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&n.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},9860:n=>{"use strict";n.exports=function(s){var i=typeof s=="string"?`
182
- `:10,o=typeof s=="string"?"\r":13;return s[s.length-1]===i&&(s=s.slice(0,s.length-1)),s[s.length-1]===o&&(s=s.slice(0,s.length-1)),s}},8460:(n,s,i)=>{n.exports=p,p.sync=function(d,m){for(var g=f(d,m=m||{}),h=g.env,E=g.ext,_=g.extExe,S=[],y=0,T=h.length;y<T;y++){var I=h[y];I.charAt(0)==='"'&&I.slice(-1)==='"'&&(I=I.slice(1,-1));var v=a.join(I,d);!I&&/^\.[\\\/]/.test(d)&&(v=d.slice(0,2)+v);for(var x=0,A=E.length;x<A;x++){var D=v+E[x];try{if(u.sync(D,{pathExt:_})){if(!m.all)return D;S.push(D)}}catch{}}}if(m.all&&S.length)return S;if(m.nothrow)return null;throw l(d)};var o=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",a=i(7072),c=o?";":":",u=i(9268);function l(d){var m=new Error("not found: "+d);return m.code="ENOENT",m}function f(d,m){var g=m.colon||c,h=m.path||process.env.PATH||"",E=[""];h=h.split(g);var _="";return o&&(h.unshift(process.cwd()),E=(_=m.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(g),d.indexOf(".")!==-1&&E[0]!==""&&E.unshift("")),(d.match(/\//)||o&&d.match(/\\/))&&(h=[""]),{env:h,ext:E,extExe:_}}function p(d,m,g){typeof m=="function"&&(g=m,m={});var h=f(d,m),E=h.env,_=h.ext,S=h.extExe,y=[];(function T(I,v){if(I===v)return m.all&&y.length?g(null,y):g(l(d));var x=E[I];x.charAt(0)==='"'&&x.slice(-1)==='"'&&(x=x.slice(1,-1));var A=a.join(x,d);!x&&/^\.[\\\/]/.test(d)&&(A=d.slice(0,2)+A),(function D(P,F){if(P===F)return T(I+1,v);var V=_[P];u(A+V,{pathExt:S},(function(H,k){if(!H&&k){if(!m.all)return g(null,A+V);y.push(A+V)}return D(P+1,F)}))})(0,_.length)})(0,E.length)}},6468:(n,s,i)=>{"use strict";let o=i(8558),a=i(8636),c=new Map([["10.0","10"],["6.3","8.1"],["6.2","8"],["6.1","7"],["6.0","Vista"],["5.2","Server 2003"],["5.1","XP"],["5.0","2000"],["4.9","ME"],["4.1","98"],["4.0","95"]]);n.exports=u=>{let l=/\d+\.\d/.exec(u||o.release());if(u&&!l)throw new Error("`release` argument doesn't match `n.n`");let f=(l||[])[0];if((!u||u===o.release())&&["6.1","6.2","6.3","10.0"].includes(f)){let p=((a.sync("wmic",["os","get","Caption"]).stdout||"").match(/2008|2012|2016/)||[])[0];if(p)return`Server ${p}`}return c.get(f)}},8636:(n,s,i)=>{"use strict";let o=i(7072),a=i(4368),c=i(7468),u=i(9860),l=i(9584),f=i(1392),p=i(9068),d=i(1548),m=i(200),g=i(7688),h=i(6174);function E(v,x,A){let D;return(A=Object.assign({extendEnv:!0,env:{}},A)).extendEnv&&(A.env=Object.assign({},process.env,A.env)),A.__winShell===!0?(delete A.__winShell,D={command:v,args:x,options:A,file:v,original:{cmd:v,args:x}}):D=c._parse(v,x,A),(A=Object.assign({maxBuffer:1e7,buffer:!0,stripEof:!0,preferLocal:!0,localDir:D.options.cwd||process.cwd(),encoding:"utf8",reject:!0,cleanup:!0},D.options)).stdio=h(A),A.preferLocal&&(A.env=l.env(Object.assign({},A,{cwd:A.localDir}))),A.detached&&(A.cleanup=!1),process.platform==="win32"&&o.basename(D.command)==="cmd.exe"&&D.args.unshift("/q"),{cmd:D.command,args:D.args,opts:A,parsed:D}}function _(v,x){return x&&v.stripEof&&(x=u(x)),x}function S(v,x,A){let D="/bin/sh",P=["-c",x];return A=Object.assign({},A),process.platform==="win32"&&(A.__winShell=!0,D=process.env.comspec||"cmd.exe",P=["/s","/c",`"${x}"`],A.windowsVerbatimArguments=!0),A.shell&&(D=A.shell,delete A.shell),v(D,P,A)}function y(v,x,{encoding:A,buffer:D,maxBuffer:P}){if(!v[x])return null;let F;return F=D?A?p(v[x],{encoding:A,maxBuffer:P}):p.buffer(v[x],{maxBuffer:P}):new Promise(((V,H)=>{v[x].once("end",V).once("error",H)})),F.catch((V=>{throw V.stream=x,V.message=`${x} ${V.message}`,V}))}function T(v,x){let{stdout:A,stderr:D}=v,P=v.error,{code:F,signal:V}=v,{parsed:H,joinedCmd:k}=x,X=x.timedOut||!1;if(!P){let ee="";Array.isArray(H.opts.stdio)?(H.opts.stdio[2]!=="inherit"&&(ee+=ee.length>0?D:`
178
+ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof _))return new _(S,y);if(d(this,S,y),this.noprocess)return this;var T=this.minimatch.set.length;this.matches=new Array(T);for(var b=0;b<T;b++)this._process(this.minimatch.set[b],b,!1);this._finish()}_.prototype._finish=function(){if(l(this instanceof _),this.realpath){var S=this;this.matches.forEach((function(y,T){var b=S.matches[T]=Object.create(null);for(var v in y)try{v=S._makeAbs(v),b[a.realpathSync(v,S.realpathCache)]=!0}catch(x){if(x.syscall!=="stat")throw x;b[S._makeAbs(v)]=!0}}))}p.finish(this)},_.prototype._process=function(S,y,T){l(this instanceof _);for(var b,v=0;typeof S[v]=="string";)v++;switch(v){case S.length:return void this._processSimple(S.join("/"),y);case 0:b=null;break;default:b=S.slice(0,v).join("/")}var x,A=S.slice(v);b===null?x=".":((f(b)||f(S.join("/")))&&(b&&f(b)||(b="/"+b)),x=b);var D=this._makeAbs(x);g(this,x)||(A[0]===c.GLOBSTAR?this._processGlobStar(b,x,D,A,y,T):this._processReaddir(b,x,D,A,y,T))},_.prototype._processReaddir=function(S,y,T,b,v,x){var A=this._readdir(T,x);if(A){for(var D=b[0],P=!!this.minimatch.negate,F=D._glob,V=this.dot||F.charAt(0)===".",H=[],k=0;k<A.length;k++)((ne=A[k]).charAt(0)!=="."||V)&&(P&&!S?!ne.match(D):ne.match(D))&&H.push(ne);var X=H.length;if(X!==0)if(b.length!==1||this.mark||this.stat)for(b.shift(),k=0;k<X;k++){var ee;ne=H[k],ee=S?[S,ne]:[ne],this._process(ee.concat(b),v,x)}else for(this.matches[v]||(this.matches[v]=Object.create(null)),k=0;k<X;k++){var ne=H[k];S&&(ne=S.slice(-1)!=="/"?S+"/"+ne:S+ne),ne.charAt(0)!=="/"||this.nomount||(ne=u.join(this.root,ne)),this._emitMatch(v,ne)}}},_.prototype._emitMatch=function(S,y){if(!h(this,y)){var T=this._makeAbs(y);if(this.mark&&(y=this._mark(y)),this.absolute&&(y=T),!this.matches[S][y]){if(this.nodir){var b=this.cache[T];if(b==="DIR"||Array.isArray(b))return}this.matches[S][y]=!0,this.stat&&this._stat(y)}}},_.prototype._readdirInGlobStar=function(S){if(this.follow)return this._readdir(S,!1);var y,T;try{T=o.lstatSync(S)}catch(v){if(v.code==="ENOENT")return null}var b=T&&T.isSymbolicLink();return this.symlinks[S]=b,b||!T||T.isDirectory()?y=this._readdir(S,!1):this.cache[S]="FILE",y},_.prototype._readdir=function(S,y){if(y&&!m(this.symlinks,S))return this._readdirInGlobStar(S);if(m(this.cache,S)){var T=this.cache[S];if(!T||T==="FILE")return null;if(Array.isArray(T))return T}try{return this._readdirEntries(S,o.readdirSync(S))}catch(b){return this._readdirError(S,b),null}},_.prototype._readdirEntries=function(S,y){if(!this.mark&&!this.stat)for(var T=0;T<y.length;T++){var b=y[T];b=S==="/"?S+b:S+"/"+b,this.cache[b]=!0}return this.cache[S]=y,y},_.prototype._readdirError=function(S,y){switch(y.code){case"ENOTSUP":case"ENOTDIR":var T=this._makeAbs(S);if(this.cache[T]="FILE",T===this.cwdAbs){var b=new Error(y.code+" invalid cwd "+this.cwd);throw b.path=this.cwd,b.code=y.code,b}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(S)]=!1;break;default:if(this.cache[this._makeAbs(S)]=!1,this.strict)throw y;this.silent||console.error("glob error",y)}},_.prototype._processGlobStar=function(S,y,T,b,v,x){var A=this._readdir(T,x);if(A){var D=b.slice(1),P=S?[S]:[],F=P.concat(D);this._process(F,v,!1);var V=A.length;if(!this.symlinks[T]||!x){for(var H=0;H<V;H++)if(A[H].charAt(0)!=="."||this.dot){var k=P.concat(A[H],D);this._process(k,v,!0);var X=P.concat(A[H],b);this._process(X,v,!0)}}}},_.prototype._processSimple=function(S,y){var T=this._stat(S);if(this.matches[y]||(this.matches[y]=Object.create(null)),T){if(S&&f(S)&&!this.nomount){var b=/[\/\\]$/.test(S);S.charAt(0)==="/"?S=u.join(this.root,S):(S=u.resolve(this.root,S),b&&(S+="/"))}process.platform==="win32"&&(S=S.replace(/\\/g,"/")),this._emitMatch(y,S)}},_.prototype._stat=function(S){var y=this._makeAbs(S),T=S.slice(-1)==="/";if(S.length>this.maxLength)return!1;if(!this.stat&&m(this.cache,y)){var b=this.cache[y];if(Array.isArray(b)&&(b="DIR"),!T||b==="DIR")return b;if(T&&b==="FILE")return!1}var v=this.statCache[y];if(!v){var x;try{x=o.lstatSync(y)}catch(A){if(A&&(A.code==="ENOENT"||A.code==="ENOTDIR"))return this.statCache[y]=!1,!1}if(x&&x.isSymbolicLink())try{v=o.statSync(y)}catch{v=x}else v=x}return this.statCache[y]=v,b=!0,v&&(b=v.isDirectory()?"DIR":"FILE"),this.cache[y]=this.cache[y]||b,(!T||b!=="FILE")&&b},_.prototype._mark=function(S){return p.mark(this,S)},_.prototype._makeAbs=function(S){return p.makeAbs(this,S)}},363:(n,s,i)=>{var o=i(2680),a=Object.create(null),c=i(4640);n.exports=o((function(u,l){return a[u]?(a[u].push(l),null):(a[u]=[l],(function(f){return c((function p(){var d=a[f],m=d.length,g=(function(E){for(var _=E.length,S=[],y=0;y<_;y++)S[y]=E[y];return S})(arguments);try{for(var h=0;h<m;h++)d[h].apply(null,g)}finally{d.length>m?(d.splice(0,m),process.nextTick((function(){p.apply(null,g)}))):delete a[f]}}))})(u))}))},3352:(n,s,i)=>{try{var o=i(970);if(typeof o.inherits!="function")throw"";n.exports=o.inherits}catch{n.exports=i(8248)}},8248:n=>{typeof Object.create=="function"?n.exports=function(s,i){s.super_=i,s.prototype=Object.create(i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}})}:n.exports=function(s,i){s.super_=i;var o=function(){};o.prototype=i.prototype,s.prototype=new o,s.prototype.constructor=s}},1392:n=>{"use strict";var s=n.exports=function(i){return i!==null&&typeof i=="object"&&typeof i.pipe=="function"};s.writable=function(i){return s(i)&&i.writable!==!1&&typeof i._write=="function"&&typeof i._writableState=="object"},s.readable=function(i){return s(i)&&i.readable!==!1&&typeof i._read=="function"&&typeof i._readableState=="object"},s.duplex=function(i){return s.writable(i)&&s.readable(i)},s.transform=function(i){return s.duplex(i)&&typeof i._transform=="function"&&typeof i._transformState=="object"}},9268:(n,s,i)=>{var o;function a(c,u,l){if(typeof u=="function"&&(l=u,u={}),!l){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise((function(f,p){a(c,u||{},(function(d,m){d?p(d):f(m)}))}))}o(c,u||{},(function(f,p){f&&(f.code==="EACCES"||u&&u.ignoreErrors)&&(f=null,p=!1),l(f,p)}))}i(2058),o=process.platform==="win32"||global.TESTING_WINDOWS?i(8340):i(8692),n.exports=a,a.sync=function(c,u){try{return o.sync(c,u||{})}catch(l){if(u&&u.ignoreErrors||l.code==="EACCES")return!1;throw l}}},8692:(n,s,i)=>{n.exports=a,a.sync=function(u,l){return c(o.statSync(u),l)};var o=i(2058);function a(u,l,f){o.stat(u,(function(p,d){f(p,!p&&c(d,l))}))}function c(u,l){return u.isFile()&&(function(f,p){var d=f.mode,m=f.uid,g=f.gid,h=p.uid!==void 0?p.uid:process.getuid&&process.getuid(),E=p.gid!==void 0?p.gid:process.getgid&&process.getgid(),_=parseInt("100",8),S=parseInt("010",8);return d&parseInt("001",8)||d&S&&g===E||d&_&&m===h||d&(_|S)&&h===0})(u,l)}},8340:(n,s,i)=>{n.exports=c,c.sync=function(u,l){return a(o.statSync(u),u,l)};var o=i(2058);function a(u,l,f){return!(!u.isSymbolicLink()&&!u.isFile())&&(function(p,d){var m=d.pathExt!==void 0?d.pathExt:process.env.PATHEXT;if(!m||(m=m.split(";")).indexOf("")!==-1)return!0;for(var g=0;g<m.length;g++){var h=m[g].toLowerCase();if(h&&p.substr(-h.length).toLowerCase()===h)return!0}return!1})(l,f)}function c(u,l,f){o.stat(u,(function(p,d){f(p,!p&&a(d,u,l))}))}},2941:(n,s,i)=>{"use strict";let o=i(8558),a=new Map([[18,"Mojave"],[17,"High Sierra"],[16,"Sierra"],[15,"El Capitan"],[14,"Yosemite"],[13,"Mavericks"],[12,"Mountain Lion"],[11,"Lion"],[10,"Snow Leopard"],[9,"Leopard"],[8,"Tiger"],[7,"Panther"],[6,"Jaguar"],[5,"Puma"]]),c=u=>(u=Number((u||o.release()).split(".")[0]),{name:a.get(u),version:"10."+(u-4)});n.exports=c,n.exports.default=c},836:(n,s,i)=>{n.exports=g,g.Minimatch=h;var o={sep:"/"};try{o=i(7072)}catch{}var a=g.GLOBSTAR=h.GLOBSTAR={},c=i(1620),u={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},l="[^/]",f=l+"*?",p="().*{}+?[]^$\\!".split("").reduce((function(S,y){return S[y]=!0,S}),{}),d=/\/+/;function m(S,y){S=S||{},y=y||{};var T={};return Object.keys(y).forEach((function(b){T[b]=y[b]})),Object.keys(S).forEach((function(b){T[b]=S[b]})),T}function g(S,y,T){if(typeof y!="string")throw new TypeError("glob pattern string required");return T||(T={}),!(!T.nocomment&&y.charAt(0)==="#")&&(y.trim()===""?S==="":new h(y,T).match(S))}function h(S,y){if(!(this instanceof h))return new h(S,y);if(typeof S!="string")throw new TypeError("glob pattern string required");y||(y={}),S=S.trim(),o.sep!=="/"&&(S=S.split(o.sep).join("/")),this.options=y,this.set=[],this.pattern=S,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function E(S,y){if(y||(y=this instanceof h?this.options:{}),(S=S===void 0?this.pattern:S)===void 0)throw new TypeError("undefined pattern");return y.nobrace||!S.match(/\{.*\}/)?[S]:c(S)}g.filter=function(S,y){return y=y||{},function(T,b,v){return g(T,S,y)}},g.defaults=function(S){if(!S||!Object.keys(S).length)return g;var y=g,T=function(b,v,x){return y.minimatch(b,v,m(S,x))};return T.Minimatch=function(b,v){return new y.Minimatch(b,m(S,v))},T},h.defaults=function(S){return S&&Object.keys(S).length?g.defaults(S).Minimatch:h},h.prototype.debug=function(){},h.prototype.make=function(){if(!this._made){var S=this.pattern,y=this.options;if(y.nocomment||S.charAt(0)!=="#")if(S){this.parseNegate();var T=this.globSet=this.braceExpand();y.debug&&(this.debug=console.error),this.debug(this.pattern,T),T=this.globParts=T.map((function(b){return b.split(d)})),this.debug(this.pattern,T),T=T.map((function(b,v,x){return b.map(this.parse,this)}),this),this.debug(this.pattern,T),T=T.filter((function(b){return b.indexOf(!1)===-1})),this.debug(this.pattern,T),this.set=T}else this.empty=!0;else this.comment=!0}},h.prototype.parseNegate=function(){var S=this.pattern,y=!1,T=0;if(!this.options.nonegate){for(var b=0,v=S.length;b<v&&S.charAt(b)==="!";b++)y=!y,T++;T&&(this.pattern=S.substr(T)),this.negate=y}},g.braceExpand=function(S,y){return E(S,y)},h.prototype.braceExpand=E,h.prototype.parse=function(S,y){if(S.length>65536)throw new TypeError("pattern is too long");var T=this.options;if(!T.noglobstar&&S==="**")return a;if(S==="")return"";var b,v="",x=!!T.nocase,A=!1,D=[],P=[],F=!1,V=-1,H=-1,k=S.charAt(0)==="."?"":T.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",X=this;function ee(){if(b){switch(b){case"*":v+=f,x=!0;break;case"?":v+=l,x=!0;break;default:v+="\\"+b}X.debug("clearStateChar %j %j",b,v),b=!1}}for(var ne,ie=0,Ee=S.length;ie<Ee&&(ne=S.charAt(ie));ie++)if(this.debug("%s %s %s %j",S,ie,v,ne),A&&p[ne])v+="\\"+ne,A=!1;else switch(ne){case"/":return!1;case"\\":ee(),A=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",S,ie,v,ne),F){this.debug(" in class"),ne==="!"&&ie===H+1&&(ne="^"),v+=ne;continue}X.debug("call clearStateChar %j",b),ee(),b=ne,T.noext&&ee();continue;case"(":if(F){v+="(";continue}if(!b){v+="\\(";continue}D.push({type:b,start:ie-1,reStart:v.length,open:u[b].open,close:u[b].close}),v+=b==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",b,v),b=!1;continue;case")":if(F||!D.length){v+="\\)";continue}ee(),x=!0;var K=D.pop();v+=K.close,K.type==="!"&&P.push(K),K.reEnd=v.length;continue;case"|":if(F||!D.length||A){v+="\\|",A=!1;continue}ee(),v+="|";continue;case"[":if(ee(),F){v+="\\"+ne;continue}F=!0,H=ie,V=v.length,v+=ne;continue;case"]":if(ie===H+1||!F){v+="\\"+ne,A=!1;continue}if(F){var le=S.substring(H+1,ie);try{RegExp("["+le+"]")}catch{var de=this.parse(le,_);v=v.substr(0,V)+"\\["+de[0]+"\\]",x=x||de[1],F=!1;continue}}x=!0,F=!1,v+=ne;continue;default:ee(),A?A=!1:!p[ne]||ne==="^"&&F||(v+="\\"),v+=ne}for(F&&(le=S.substr(H+1),de=this.parse(le,_),v=v.substr(0,V)+"\\["+de[0],x=x||de[1]),K=D.pop();K;K=D.pop()){var q=v.slice(K.reStart+K.open.length);this.debug("setting tail",v,K),q=q.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(G,w,Z){return Z||(Z="\\"),w+w+Z+"|"})),this.debug(`tail=%j
179
+ %s`,q,q,K,v);var ke=K.type==="*"?f:K.type==="?"?l:"\\"+K.type;x=!0,v=v.slice(0,K.reStart)+ke+"\\("+q}ee(),A&&(v+="\\\\");var U=!1;switch(v.charAt(0)){case".":case"[":case"(":U=!0}for(var L=P.length-1;L>-1;L--){var N=P[L],z=v.slice(0,N.reStart),oe=v.slice(N.reStart,N.reEnd-8),fe=v.slice(N.reEnd-8,N.reEnd),Re=v.slice(N.reEnd);fe+=Re;var De=z.split("(").length-1,Se=Re;for(ie=0;ie<De;ie++)Se=Se.replace(/\)[+*?]?/,"");var I="";(Re=Se)===""&&y!==_&&(I="$"),v=z+oe+Re+I+fe}if(v!==""&&x&&(v="(?=.)"+v),U&&(v=k+v),y===_)return[v,x];if(!x)return S.replace(/\\(.)/g,"$1");var R=T.nocase?"i":"";try{var $=new RegExp("^"+v+"$",R)}catch{return new RegExp("$.")}return $._glob=S,$._src=v,$};var _={};g.makeRe=function(S,y){return new h(S,y||{}).makeRe()},h.prototype.makeRe=function(){if(this.regexp||this.regexp===!1)return this.regexp;var S=this.set;if(!S.length)return this.regexp=!1,this.regexp;var y=this.options,T=y.noglobstar?f:y.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",b=y.nocase?"i":"",v=S.map((function(x){return x.map((function(A){return A===a?T:typeof A=="string"?A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):A._src})).join("\\/")})).join("|");v="^(?:"+v+")$",this.negate&&(v="^(?!"+v+").*$");try{this.regexp=new RegExp(v,b)}catch{this.regexp=!1}return this.regexp},g.match=function(S,y,T){var b=new h(y,T=T||{});return S=S.filter((function(v){return b.match(v)})),b.options.nonull&&!S.length&&S.push(y),S},h.prototype.match=function(S,y){if(this.debug("match",S,this.pattern),this.comment)return!1;if(this.empty)return S==="";if(S==="/"&&y)return!0;var T=this.options;o.sep!=="/"&&(S=S.split(o.sep).join("/")),S=S.split(d),this.debug(this.pattern,"split",S);var b,v,x=this.set;for(this.debug(this.pattern,"set",x),v=S.length-1;v>=0&&!(b=S[v]);v--);for(v=0;v<x.length;v++){var A=x[v],D=S;if(T.matchBase&&A.length===1&&(D=[b]),this.matchOne(D,A,y))return!!T.flipNegate||!this.negate}return!T.flipNegate&&this.negate},h.prototype.matchOne=function(S,y,T){var b=this.options;this.debug("matchOne",{this:this,file:S,pattern:y}),this.debug("matchOne",S.length,y.length);for(var v=0,x=0,A=S.length,D=y.length;v<A&&x<D;v++,x++){this.debug("matchOne loop");var P,F=y[x],V=S[v];if(this.debug(y,F,V),F===!1)return!1;if(F===a){this.debug("GLOBSTAR",[y,F,V]);var H=v,k=x+1;if(k===D){for(this.debug("** at the end");v<A;v++)if(S[v]==="."||S[v]===".."||!b.dot&&S[v].charAt(0)===".")return!1;return!0}for(;H<A;){var X=S[H];if(this.debug(`
180
+ globstar while`,S,H,y,k,X),this.matchOne(S.slice(H),y.slice(k),T))return this.debug("globstar found match!",H,A,X),!0;if(X==="."||X===".."||!b.dot&&X.charAt(0)==="."){this.debug("dot detected!",S,H,y,k);break}this.debug("globstar swallow a segment, and continue"),H++}return!(!T||(this.debug(`
181
+ >>> no match, partial?`,S,H,y,k),H!==A))}if(typeof F=="string"?(P=b.nocase?V.toLowerCase()===F.toLowerCase():V===F,this.debug("string match",F,V,P)):(P=V.match(F),this.debug("pattern match",F,V,P)),!P)return!1}if(v===A&&x===D)return!0;if(v===A)return T;if(x===D)return v===A-1&&S[v]==="";throw new Error("wtf?")}},9480:n=>{"use strict";n.exports=function(s){try{return s()}catch{}}},9584:(n,s,i)=>{"use strict";let o=i(7072),a=i(3032);n.exports=c=>{let u;c=Object.assign({cwd:process.cwd(),path:process.env[a()]},c);let l=o.resolve(c.cwd),f=[];for(;u!==l;)f.push(o.join(l,"node_modules/.bin")),u=l,l=o.resolve(l,"..");return f.push(o.dirname(process.execPath)),f.concat(c.path).join(o.delimiter)},n.exports.env=c=>{c=Object.assign({env:process.env},c);let u=Object.assign({},c.env),l=a({env:u});return c.path=u[l],u[l]=n.exports(c),u}},4640:(n,s,i)=>{var o=i(2680);function a(u){var l=function(){return l.called?l.value:(l.called=!0,l.value=u.apply(this,arguments))};return l.called=!1,l}function c(u){var l=function(){if(l.called)throw new Error(l.onceError);return l.called=!0,l.value=u.apply(this,arguments)},f=u.name||"Function wrapped with `once`";return l.onceError=f+" shouldn't be called more than once",l.called=!1,l}n.exports=o(a),n.exports.strict=o(c),a.proto=a((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return a(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return c(this)},configurable:!0})}))},2288:(n,s,i)=>{"use strict";let o=i(8558),a=i(2941),c=i(6468);n.exports=(u,l)=>{if(!u&&l)throw new Error("You can't specify a `release` without specifying `platform`");let f;if((u=u||o.platform())==="darwin"){l||o.platform()!=="darwin"||(l=o.release());let p=l?Number(l.split(".")[0])>15?"macOS":"OS X":"macOS";return f=l?a(l).name:"",p+(f?" "+f:"")}return u==="linux"?(l||o.platform()!=="linux"||(l=o.release()),f=l?l.replace(/^(\d+\.\d+).*/,"$1"):"","Linux"+(f?" "+f:"")):u==="win32"?(l||o.platform()!=="win32"||(l=o.release()),f=l?c(l):"","Windows"+(f?" "+f:"")):u}},1548:n=>{"use strict";n.exports=(s,i)=>(i=i||(()=>{}),s.then((o=>new Promise((a=>{a(i())})).then((()=>o))),(o=>new Promise((a=>{a(i())})).then((()=>{throw o})))))},4832:n=>{"use strict";function s(o){return o.charAt(0)==="/"}function i(o){var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(o),c=a[1]||"",u=!!(c&&c.charAt(1)!==":");return!!(a[2]||u)}n.exports=process.platform==="win32"?i:s,n.exports.posix=s,n.exports.win32=i},3032:n=>{"use strict";n.exports=s=>{let i=(s=s||{}).env||process.env;return(s.platform||process.platform)!=="win32"?"PATH":Object.keys(i).find((o=>o.toUpperCase()==="PATH"))||"Path"}},8984:(n,s,i)=>{var o=i(4640),a=i(9988),c=i(2058),u=function(){},l=/^v?\.0/.test(process.version),f=function(m){return typeof m=="function"},p=function(m){m()},d=function(m,g){return m.pipe(g)};n.exports=function(){var m,g=Array.prototype.slice.call(arguments),h=f(g[g.length-1]||u)&&g.pop()||u;if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new Error("pump requires two streams per minimum");var E=g.map((function(_,S){var y=S<g.length-1;return(function(T,b,v,x){x=o(x);var A=!1;T.on("close",(function(){A=!0})),a(T,{readable:b,writable:v},(function(P){if(P)return x(P);A=!0,x()}));var D=!1;return function(P){if(!A&&!D)return D=!0,(function(F){return!!l&&!!c&&(F instanceof(c.ReadStream||u)||F instanceof(c.WriteStream||u))&&f(F.close)})(T)?T.close(u):(function(F){return F.setHeader&&f(F.abort)})(T)?T.abort():f(T.destroy)?T.destroy():void x(P||new Error("stream was destroyed"))}})(_,y,S>0,(function(T){m||(m=T),T&&E.forEach(p),y||(E.forEach(p),h(m))}))}));return g.reduce(d)}},1716:(n,s)=>{var i;s=n.exports=Se,i=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var j=Array.prototype.slice.call(arguments,0);j.unshift("SEMVER"),console.log.apply(console,j)}:function(){},s.SEMVER_SPEC_VERSION="2.0.0";var o=256,a=Number.MAX_SAFE_INTEGER||9007199254740991,c=s.re=[],u=s.src=[],l=0,f=l++;u[f]="0|[1-9]\\d*";var p=l++;u[p]="[0-9]+";var d=l++;u[d]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var m=l++;u[m]="("+u[f]+")\\.("+u[f]+")\\.("+u[f]+")";var g=l++;u[g]="("+u[p]+")\\.("+u[p]+")\\.("+u[p]+")";var h=l++;u[h]="(?:"+u[f]+"|"+u[d]+")";var E=l++;u[E]="(?:"+u[p]+"|"+u[d]+")";var _=l++;u[_]="(?:-("+u[h]+"(?:\\."+u[h]+")*))";var S=l++;u[S]="(?:-?("+u[E]+"(?:\\."+u[E]+")*))";var y=l++;u[y]="[0-9A-Za-z-]+";var T=l++;u[T]="(?:\\+("+u[y]+"(?:\\."+u[y]+")*))";var b=l++,v="v?"+u[m]+u[_]+"?"+u[T]+"?";u[b]="^"+v+"$";var x="[v=\\s]*"+u[g]+u[S]+"?"+u[T]+"?",A=l++;u[A]="^"+x+"$";var D=l++;u[D]="((?:<|>)?=?)";var P=l++;u[P]=u[p]+"|x|X|\\*";var F=l++;u[F]=u[f]+"|x|X|\\*";var V=l++;u[V]="[v=\\s]*("+u[F]+")(?:\\.("+u[F]+")(?:\\.("+u[F]+")(?:"+u[_]+")?"+u[T]+"?)?)?";var H=l++;u[H]="[v=\\s]*("+u[P]+")(?:\\.("+u[P]+")(?:\\.("+u[P]+")(?:"+u[S]+")?"+u[T]+"?)?)?";var k=l++;u[k]="^"+u[D]+"\\s*"+u[V]+"$";var X=l++;u[X]="^"+u[D]+"\\s*"+u[H]+"$";var ee=l++;u[ee]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var ne=l++;u[ne]="(?:~>?)";var ie=l++;u[ie]="(\\s*)"+u[ne]+"\\s+",c[ie]=new RegExp(u[ie],"g");var Ee=l++;u[Ee]="^"+u[ne]+u[V]+"$";var K=l++;u[K]="^"+u[ne]+u[H]+"$";var le=l++;u[le]="(?:\\^)";var de=l++;u[de]="(\\s*)"+u[le]+"\\s+",c[de]=new RegExp(u[de],"g");var q=l++;u[q]="^"+u[le]+u[V]+"$";var ke=l++;u[ke]="^"+u[le]+u[H]+"$";var U=l++;u[U]="^"+u[D]+"\\s*("+x+")$|^$";var L=l++;u[L]="^"+u[D]+"\\s*("+v+")$|^$";var N=l++;u[N]="(\\s*)"+u[D]+"\\s*("+x+"|"+u[V]+")",c[N]=new RegExp(u[N],"g");var z=l++;u[z]="^\\s*("+u[V]+")\\s+-\\s+("+u[V]+")\\s*$";var oe=l++;u[oe]="^\\s*("+u[H]+")\\s+-\\s+("+u[H]+")\\s*$";var fe=l++;u[fe]="(<|>)?=?\\s*\\*";for(var Re=0;Re<35;Re++)i(Re,u[Re]),c[Re]||(c[Re]=new RegExp(u[Re]));function De(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof Se)return j;if(typeof j!="string"||j.length>o||!(Y.loose?c[A]:c[b]).test(j))return null;try{return new Se(j,Y)}catch{return null}}function Se(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof Se){if(j.loose===Y.loose)return j;j=j.version}else if(typeof j!="string")throw new TypeError("Invalid Version: "+j);if(j.length>o)throw new TypeError("version is longer than "+o+" characters");if(!(this instanceof Se))return new Se(j,Y);i("SemVer",j,Y),this.options=Y,this.loose=!!Y.loose;var re=j.trim().match(Y.loose?c[A]:c[b]);if(!re)throw new TypeError("Invalid Version: "+j);if(this.raw=j,this.major=+re[1],this.minor=+re[2],this.patch=+re[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");re[4]?this.prerelease=re[4].split(".").map((function(Te){if(/^[0-9]+$/.test(Te)){var Ve=+Te;if(Ve>=0&&Ve<a)return Ve}return Te})):this.prerelease=[],this.build=re[5]?re[5].split("."):[],this.format()}s.parse=De,s.valid=function(j,Y){var re=De(j,Y);return re?re.version:null},s.clean=function(j,Y){var re=De(j.trim().replace(/^[=v]+/,""),Y);return re?re.version:null},s.SemVer=Se,Se.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},Se.prototype.toString=function(){return this.version},Se.prototype.compare=function(j){return i("SemVer.compare",this.version,this.options,j),j instanceof Se||(j=new Se(j,this.options)),this.compareMain(j)||this.comparePre(j)},Se.prototype.compareMain=function(j){return j instanceof Se||(j=new Se(j,this.options)),R(this.major,j.major)||R(this.minor,j.minor)||R(this.patch,j.patch)},Se.prototype.comparePre=function(j){if(j instanceof Se||(j=new Se(j,this.options)),this.prerelease.length&&!j.prerelease.length)return-1;if(!this.prerelease.length&&j.prerelease.length)return 1;if(!this.prerelease.length&&!j.prerelease.length)return 0;var Y=0;do{var re=this.prerelease[Y],Te=j.prerelease[Y];if(i("prerelease compare",Y,re,Te),re===void 0&&Te===void 0)return 0;if(Te===void 0)return 1;if(re===void 0)return-1;if(re!==Te)return R(re,Te)}while(++Y)},Se.prototype.inc=function(j,Y){switch(j){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",Y);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",Y);break;case"prepatch":this.prerelease.length=0,this.inc("patch",Y),this.inc("pre",Y);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",Y),this.inc("pre",Y);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var re=this.prerelease.length;--re>=0;)typeof this.prerelease[re]=="number"&&(this.prerelease[re]++,re=-2);re===-1&&this.prerelease.push(0)}Y&&(this.prerelease[0]===Y?isNaN(this.prerelease[1])&&(this.prerelease=[Y,0]):this.prerelease=[Y,0]);break;default:throw new Error("invalid increment argument: "+j)}return this.format(),this.raw=this.version,this},s.inc=function(j,Y,re,Te){typeof re=="string"&&(Te=re,re=void 0);try{return new Se(j,re).inc(Y,Te).version}catch{return null}},s.diff=function(j,Y){if(Z(j,Y))return null;var re=De(j),Te=De(Y);if(re.prerelease.length||Te.prerelease.length){for(var Ve in re)if((Ve==="major"||Ve==="minor"||Ve==="patch")&&re[Ve]!==Te[Ve])return"pre"+Ve;return"prerelease"}for(var Ve in re)if((Ve==="major"||Ve==="minor"||Ve==="patch")&&re[Ve]!==Te[Ve])return Ve},s.compareIdentifiers=R;var I=/^[0-9]+$/;function R(j,Y){var re=I.test(j),Te=I.test(Y);return re&&Te&&(j=+j,Y=+Y),re&&!Te?-1:Te&&!re?1:j<Y?-1:j>Y?1:0}function $(j,Y,re){return new Se(j,re).compare(new Se(Y,re))}function G(j,Y,re){return $(j,Y,re)>0}function w(j,Y,re){return $(j,Y,re)<0}function Z(j,Y,re){return $(j,Y,re)===0}function J(j,Y,re){return $(j,Y,re)!==0}function se(j,Y,re){return $(j,Y,re)>=0}function Je(j,Y,re){return $(j,Y,re)<=0}function st(j,Y,re,Te){var Ve;switch(Y){case"===":typeof j=="object"&&(j=j.version),typeof re=="object"&&(re=re.version),Ve=j===re;break;case"!==":typeof j=="object"&&(j=j.version),typeof re=="object"&&(re=re.version),Ve=j!==re;break;case"":case"=":case"==":Ve=Z(j,re,Te);break;case"!=":Ve=J(j,re,Te);break;case">":Ve=G(j,re,Te);break;case">=":Ve=se(j,re,Te);break;case"<":Ve=w(j,re,Te);break;case"<=":Ve=Je(j,re,Te);break;default:throw new TypeError("Invalid operator: "+Y)}return Ve}function hn(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof hn){if(j.loose===!!Y.loose)return j;j=j.value}if(!(this instanceof hn))return new hn(j,Y);i("comparator",j,Y),this.options=Y,this.loose=!!Y.loose,this.parse(j),this.semver===Du?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}s.rcompareIdentifiers=function(j,Y){return R(Y,j)},s.major=function(j,Y){return new Se(j,Y).major},s.minor=function(j,Y){return new Se(j,Y).minor},s.patch=function(j,Y){return new Se(j,Y).patch},s.compare=$,s.compareLoose=function(j,Y){return $(j,Y,!0)},s.rcompare=function(j,Y,re){return $(Y,j,re)},s.sort=function(j,Y){return j.sort((function(re,Te){return s.compare(re,Te,Y)}))},s.rsort=function(j,Y){return j.sort((function(re,Te){return s.rcompare(re,Te,Y)}))},s.gt=G,s.lt=w,s.eq=Z,s.neq=J,s.gte=se,s.lte=Je,s.cmp=st,s.Comparator=hn;var Du={};function Bt(j,Y){if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),j instanceof Bt)return j.loose===!!Y.loose&&j.includePrerelease===!!Y.includePrerelease?j:new Bt(j.raw,Y);if(j instanceof hn)return new Bt(j.value,Y);if(!(this instanceof Bt))return new Bt(j,Y);if(this.options=Y,this.loose=!!Y.loose,this.includePrerelease=!!Y.includePrerelease,this.raw=j,this.set=j.split(/\s*\|\|\s*/).map((function(re){return this.parseRange(re.trim())}),this).filter((function(re){return re.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+j);this.format()}function wr(j){return!j||j.toLowerCase()==="x"||j==="*"}function V9(j,Y,re,Te,Ve,Zt,ft,Rr,Ft,gr,fi,Vt,gt){return((Y=wr(re)?"":wr(Te)?">="+re+".0.0":wr(Ve)?">="+re+"."+Te+".0":">="+Y)+" "+(Rr=wr(Ft)?"":wr(gr)?"<"+(+Ft+1)+".0.0":wr(fi)?"<"+Ft+"."+(+gr+1)+".0":Vt?"<="+Ft+"."+gr+"."+fi+"-"+Vt:"<="+Rr)).trim()}function G9(j,Y,re){for(var Te=0;Te<j.length;Te++)if(!j[Te].test(Y))return!1;if(re||(re={}),Y.prerelease.length&&!re.includePrerelease){for(Te=0;Te<j.length;Te++)if(i(j[Te].semver),j[Te].semver!==Du&&j[Te].semver.prerelease.length>0){var Ve=j[Te].semver;if(Ve.major===Y.major&&Ve.minor===Y.minor&&Ve.patch===Y.patch)return!0}return!1}return!0}function zf(j,Y,re){try{Y=new Bt(Y,re)}catch{return!1}return Y.test(j)}function bg(j,Y,re,Te){var Ve,Zt,ft,Rr,Ft;switch(j=new Se(j,Te),Y=new Bt(Y,Te),re){case">":Ve=G,Zt=Je,ft=w,Rr=">",Ft=">=";break;case"<":Ve=w,Zt=se,ft=G,Rr="<",Ft="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(zf(j,Y,Te))return!1;for(var gr=0;gr<Y.set.length;++gr){var fi=Y.set[gr],Vt=null,gt=null;if(fi.forEach((function(Hr){Hr.semver===Du&&(Hr=new hn(">=0.0.0")),Vt=Vt||Hr,gt=gt||Hr,Ve(Hr.semver,Vt.semver,Te)?Vt=Hr:ft(Hr.semver,gt.semver,Te)&&(gt=Hr)})),Vt.operator===Rr||Vt.operator===Ft||(!gt.operator||gt.operator===Rr)&&Zt(j,gt.semver)||gt.operator===Ft&&ft(j,gt.semver))return!1}return!0}hn.prototype.parse=function(j){var Y=this.options.loose?c[U]:c[L],re=j.match(Y);if(!re)throw new TypeError("Invalid comparator: "+j);this.operator=re[1],this.operator==="="&&(this.operator=""),re[2]?this.semver=new Se(re[2],this.options.loose):this.semver=Du},hn.prototype.toString=function(){return this.value},hn.prototype.test=function(j){return i("Comparator.test",j,this.options.loose),this.semver===Du||(typeof j=="string"&&(j=new Se(j,this.options)),st(j,this.operator,this.semver,this.options))},hn.prototype.intersects=function(j,Y){if(!(j instanceof hn))throw new TypeError("a Comparator is required");var re;if(Y&&typeof Y=="object"||(Y={loose:!!Y,includePrerelease:!1}),this.operator==="")return re=new Bt(j.value,Y),zf(this.value,re,Y);if(j.operator==="")return re=new Bt(this.value,Y),zf(j.semver,re,Y);var Te=!(this.operator!==">="&&this.operator!==">"||j.operator!==">="&&j.operator!==">"),Ve=!(this.operator!=="<="&&this.operator!=="<"||j.operator!=="<="&&j.operator!=="<"),Zt=this.semver.version===j.semver.version,ft=!(this.operator!==">="&&this.operator!=="<="||j.operator!==">="&&j.operator!=="<="),Rr=st(this.semver,"<",j.semver,Y)&&(this.operator===">="||this.operator===">")&&(j.operator==="<="||j.operator==="<"),Ft=st(this.semver,">",j.semver,Y)&&(this.operator==="<="||this.operator==="<")&&(j.operator===">="||j.operator===">");return Te||Ve||Zt&&ft||Rr||Ft},s.Range=Bt,Bt.prototype.format=function(){return this.range=this.set.map((function(j){return j.join(" ").trim()})).join("||").trim(),this.range},Bt.prototype.toString=function(){return this.range},Bt.prototype.parseRange=function(j){var Y=this.options.loose;j=j.trim();var re=Y?c[oe]:c[z];j=j.replace(re,V9),i("hyphen replace",j),j=j.replace(c[N],"$1$2$3"),i("comparator trim",j,c[N]),j=(j=(j=j.replace(c[ie],"$1~")).replace(c[de],"$1^")).split(/\s+/).join(" ");var Te=Y?c[U]:c[L],Ve=j.split(" ").map((function(Zt){return(function(ft,Rr){return i("comp",ft,Rr),ft=(function(Ft,gr){return Ft.trim().split(/\s+/).map((function(fi){return(function(Vt,gt){i("caret",Vt,gt),gt&&typeof gt=="object"||(gt={loose:!!gt,includePrerelease:!1});var Hr=gt.loose?c[ke]:c[q];return Vt.replace(Hr,(function($n,He,et,_t,xt){var lr;return i("caret",Vt,$n,He,et,_t,xt),wr(He)?lr="":wr(et)?lr=">="+He+".0.0 <"+(+He+1)+".0.0":wr(_t)?lr=He==="0"?">="+He+"."+et+".0 <"+He+"."+(+et+1)+".0":">="+He+"."+et+".0 <"+(+He+1)+".0.0":xt?(i("replaceCaret pr",xt),xt.charAt(0)!=="-"&&(xt="-"+xt),lr=He==="0"?et==="0"?">="+He+"."+et+"."+_t+xt+" <"+He+"."+et+"."+(+_t+1):">="+He+"."+et+"."+_t+xt+" <"+He+"."+(+et+1)+".0":">="+He+"."+et+"."+_t+xt+" <"+(+He+1)+".0.0"):(i("no pr"),lr=He==="0"?et==="0"?">="+He+"."+et+"."+_t+" <"+He+"."+et+"."+(+_t+1):">="+He+"."+et+"."+_t+" <"+He+"."+(+et+1)+".0":">="+He+"."+et+"."+_t+" <"+(+He+1)+".0.0"),i("caret return",lr),lr}))})(fi,gr)})).join(" ")})(ft,Rr),i("caret",ft),ft=(function(Ft,gr){return Ft.trim().split(/\s+/).map((function(fi){return(function(Vt,gt){gt&&typeof gt=="object"||(gt={loose:!!gt,includePrerelease:!1});var Hr=gt.loose?c[K]:c[Ee];return Vt.replace(Hr,(function($n,He,et,_t,xt){var lr;return i("tilde",Vt,$n,He,et,_t,xt),wr(He)?lr="":wr(et)?lr=">="+He+".0.0 <"+(+He+1)+".0.0":wr(_t)?lr=">="+He+"."+et+".0 <"+He+"."+(+et+1)+".0":xt?(i("replaceTilde pr",xt),xt.charAt(0)!=="-"&&(xt="-"+xt),lr=">="+He+"."+et+"."+_t+xt+" <"+He+"."+(+et+1)+".0"):lr=">="+He+"."+et+"."+_t+" <"+He+"."+(+et+1)+".0",i("tilde return",lr),lr}))})(fi,gr)})).join(" ")})(ft,Rr),i("tildes",ft),ft=(function(Ft,gr){return i("replaceXRanges",Ft,gr),Ft.split(/\s+/).map((function(fi){return(function(Vt,gt){Vt=Vt.trim(),gt&&typeof gt=="object"||(gt={loose:!!gt,includePrerelease:!1});var Hr=gt.loose?c[X]:c[k];return Vt.replace(Hr,(function($n,He,et,_t,xt,lr){i("xRange",Vt,$n,He,et,_t,xt,lr);var SC=wr(et),xu=SC||wr(_t),bu=xu||wr(xt);return He==="="&&bu&&(He=""),SC?$n=He===">"||He==="<"?"<0.0.0":"*":He&&bu?(xu&&(_t=0),bu&&(xt=0),He===">"?(He=">=",xu?(et=+et+1,_t=0,xt=0):bu&&(_t=+_t+1,xt=0)):He==="<="&&(He="<",xu?et=+et+1:_t=+_t+1),$n=He+et+"."+_t+"."+xt):xu?$n=">="+et+".0.0 <"+(+et+1)+".0.0":bu&&($n=">="+et+"."+_t+".0 <"+et+"."+(+_t+1)+".0"),i("xRange return",$n),$n}))})(fi,gr)})).join(" ")})(ft,Rr),i("xrange",ft),ft=(function(Ft,gr){return i("replaceStars",Ft,gr),Ft.trim().replace(c[fe],"")})(ft,Rr),i("stars",ft),ft})(Zt,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(Ve=Ve.filter((function(Zt){return!!Zt.match(Te)}))),Ve.map((function(Zt){return new hn(Zt,this.options)}),this)},Bt.prototype.intersects=function(j,Y){if(!(j instanceof Bt))throw new TypeError("a Range is required");return this.set.some((function(re){return re.every((function(Te){return j.set.some((function(Ve){return Ve.every((function(Zt){return Te.intersects(Zt,Y)}))}))}))}))},s.toComparators=function(j,Y){return new Bt(j,Y).set.map((function(re){return re.map((function(Te){return Te.value})).join(" ").trim().split(" ")}))},Bt.prototype.test=function(j){if(!j)return!1;typeof j=="string"&&(j=new Se(j,this.options));for(var Y=0;Y<this.set.length;Y++)if(G9(this.set[Y],j,this.options))return!0;return!1},s.satisfies=zf,s.maxSatisfying=function(j,Y,re){var Te=null,Ve=null;try{var Zt=new Bt(Y,re)}catch{return null}return j.forEach((function(ft){Zt.test(ft)&&(Te&&Ve.compare(ft)!==-1||(Ve=new Se(Te=ft,re)))})),Te},s.minSatisfying=function(j,Y,re){var Te=null,Ve=null;try{var Zt=new Bt(Y,re)}catch{return null}return j.forEach((function(ft){Zt.test(ft)&&(Te&&Ve.compare(ft)!==1||(Ve=new Se(Te=ft,re)))})),Te},s.validRange=function(j,Y){try{return new Bt(j,Y).range||"*"}catch{return null}},s.ltr=function(j,Y,re){return bg(j,Y,"<",re)},s.gtr=function(j,Y,re){return bg(j,Y,">",re)},s.outside=bg,s.prerelease=function(j,Y){var re=De(j,Y);return re&&re.prerelease.length?re.prerelease:null},s.intersects=function(j,Y,re){return j=new Bt(j,re),Y=new Bt(Y,re),j.intersects(Y)},s.coerce=function(j){if(j instanceof Se)return j;if(typeof j!="string")return null;var Y=j.match(c[ee]);return Y==null?null:De((Y[1]||"0")+"."+(Y[2]||"0")+"."+(Y[3]||"0"))}},6176:(n,s,i)=>{"use strict";var o=i(184);n.exports=function(a){var c=a.match(o);if(!c)return null;var u=c[0].replace(/#! ?/,"").split(" "),l=u[0].split("/").pop(),f=u[1];return l==="env"?f:l+(f?" "+f:"")}},184:n=>{"use strict";n.exports=/^#!.*/},200:(n,s,i)=>{var o,a=i(6608),c=i(6132),u=i(467);function l(){d&&(d=!1,c.forEach((function(S){try{process.removeListener(S,p[S])}catch{}})),process.emit=E,process.reallyExit=g,o.count-=1)}function f(S,y,T){o.emitted[S]||(o.emitted[S]=!0,o.emit(S,y,T))}typeof u!="function"&&(u=u.EventEmitter),process.__signal_exit_emitter__?o=process.__signal_exit_emitter__:((o=process.__signal_exit_emitter__=new u).count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),n.exports=function(S,y){a.equal(typeof S,"function","a callback must be provided for exit handler"),d===!1&&m();var T="exit";return y&&y.alwaysLast&&(T="afterexit"),o.on(T,S),function(){o.removeListener(T,S),o.listeners("exit").length===0&&o.listeners("afterexit").length===0&&l()}},n.exports.unload=l;var p={};c.forEach((function(S){p[S]=function(){process.listeners(S).length===o.count&&(l(),f("exit",null,S),f("afterexit",null,S),process.kill(process.pid,S))}})),n.exports.signals=function(){return c},n.exports.load=m;var d=!1;function m(){d||(d=!0,o.count+=1,c=c.filter((function(S){try{return process.on(S,p[S]),!0}catch{return!1}})),process.emit=_,process.reallyExit=h)}var g=process.reallyExit;function h(S){process.exitCode=S||0,f("exit",process.exitCode,null),f("afterexit",process.exitCode,null),g.call(process,process.exitCode)}var E=process.emit;function _(S,y){if(S==="exit"){y!==void 0&&(process.exitCode=y);var T=E.apply(this,arguments);return f("exit",process.exitCode,null),f("afterexit",process.exitCode,null),T}return E.apply(this,arguments)}},6132:n=>{n.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&n.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&n.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},9860:n=>{"use strict";n.exports=function(s){var i=typeof s=="string"?`
182
+ `:10,o=typeof s=="string"?"\r":13;return s[s.length-1]===i&&(s=s.slice(0,s.length-1)),s[s.length-1]===o&&(s=s.slice(0,s.length-1)),s}},8460:(n,s,i)=>{n.exports=p,p.sync=function(d,m){for(var g=f(d,m=m||{}),h=g.env,E=g.ext,_=g.extExe,S=[],y=0,T=h.length;y<T;y++){var b=h[y];b.charAt(0)==='"'&&b.slice(-1)==='"'&&(b=b.slice(1,-1));var v=a.join(b,d);!b&&/^\.[\\\/]/.test(d)&&(v=d.slice(0,2)+v);for(var x=0,A=E.length;x<A;x++){var D=v+E[x];try{if(u.sync(D,{pathExt:_})){if(!m.all)return D;S.push(D)}}catch{}}}if(m.all&&S.length)return S;if(m.nothrow)return null;throw l(d)};var o=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",a=i(7072),c=o?";":":",u=i(9268);function l(d){var m=new Error("not found: "+d);return m.code="ENOENT",m}function f(d,m){var g=m.colon||c,h=m.path||process.env.PATH||"",E=[""];h=h.split(g);var _="";return o&&(h.unshift(process.cwd()),E=(_=m.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(g),d.indexOf(".")!==-1&&E[0]!==""&&E.unshift("")),(d.match(/\//)||o&&d.match(/\\/))&&(h=[""]),{env:h,ext:E,extExe:_}}function p(d,m,g){typeof m=="function"&&(g=m,m={});var h=f(d,m),E=h.env,_=h.ext,S=h.extExe,y=[];(function T(b,v){if(b===v)return m.all&&y.length?g(null,y):g(l(d));var x=E[b];x.charAt(0)==='"'&&x.slice(-1)==='"'&&(x=x.slice(1,-1));var A=a.join(x,d);!x&&/^\.[\\\/]/.test(d)&&(A=d.slice(0,2)+A),(function D(P,F){if(P===F)return T(b+1,v);var V=_[P];u(A+V,{pathExt:S},(function(H,k){if(!H&&k){if(!m.all)return g(null,A+V);y.push(A+V)}return D(P+1,F)}))})(0,_.length)})(0,E.length)}},6468:(n,s,i)=>{"use strict";let o=i(8558),a=i(8636),c=new Map([["10.0","10"],["6.3","8.1"],["6.2","8"],["6.1","7"],["6.0","Vista"],["5.2","Server 2003"],["5.1","XP"],["5.0","2000"],["4.9","ME"],["4.1","98"],["4.0","95"]]);n.exports=u=>{let l=/\d+\.\d/.exec(u||o.release());if(u&&!l)throw new Error("`release` argument doesn't match `n.n`");let f=(l||[])[0];if((!u||u===o.release())&&["6.1","6.2","6.3","10.0"].includes(f)){let p=((a.sync("wmic",["os","get","Caption"]).stdout||"").match(/2008|2012|2016/)||[])[0];if(p)return`Server ${p}`}return c.get(f)}},8636:(n,s,i)=>{"use strict";let o=i(7072),a=i(4368),c=i(7468),u=i(9860),l=i(9584),f=i(1392),p=i(9068),d=i(1548),m=i(200),g=i(7688),h=i(6174);function E(v,x,A){let D;return(A=Object.assign({extendEnv:!0,env:{}},A)).extendEnv&&(A.env=Object.assign({},process.env,A.env)),A.__winShell===!0?(delete A.__winShell,D={command:v,args:x,options:A,file:v,original:{cmd:v,args:x}}):D=c._parse(v,x,A),(A=Object.assign({maxBuffer:1e7,buffer:!0,stripEof:!0,preferLocal:!0,localDir:D.options.cwd||process.cwd(),encoding:"utf8",reject:!0,cleanup:!0},D.options)).stdio=h(A),A.preferLocal&&(A.env=l.env(Object.assign({},A,{cwd:A.localDir}))),A.detached&&(A.cleanup=!1),process.platform==="win32"&&o.basename(D.command)==="cmd.exe"&&D.args.unshift("/q"),{cmd:D.command,args:D.args,opts:A,parsed:D}}function _(v,x){return x&&v.stripEof&&(x=u(x)),x}function S(v,x,A){let D="/bin/sh",P=["-c",x];return A=Object.assign({},A),process.platform==="win32"&&(A.__winShell=!0,D=process.env.comspec||"cmd.exe",P=["/s","/c",`"${x}"`],A.windowsVerbatimArguments=!0),A.shell&&(D=A.shell,delete A.shell),v(D,P,A)}function y(v,x,{encoding:A,buffer:D,maxBuffer:P}){if(!v[x])return null;let F;return F=D?A?p(v[x],{encoding:A,maxBuffer:P}):p.buffer(v[x],{maxBuffer:P}):new Promise(((V,H)=>{v[x].once("end",V).once("error",H)})),F.catch((V=>{throw V.stream=x,V.message=`${x} ${V.message}`,V}))}function T(v,x){let{stdout:A,stderr:D}=v,P=v.error,{code:F,signal:V}=v,{parsed:H,joinedCmd:k}=x,X=x.timedOut||!1;if(!P){let ee="";Array.isArray(H.opts.stdio)?(H.opts.stdio[2]!=="inherit"&&(ee+=ee.length>0?D:`
183
183
  ${D}`),H.opts.stdio[1]!=="inherit"&&(ee+=`
184
184
  ${A}`)):H.opts.stdio!=="inherit"&&(ee=`
185
- ${D}${A}`),P=new Error(`Command failed: ${k}${ee}`),P.code=F<0?g(F):F}return P.stdout=A,P.stderr=D,P.failed=!0,P.signal=V||null,P.cmd=k,P.timedOut=X,P}function I(v,x){let A=v;return Array.isArray(x)&&x.length>0&&(A+=" "+x.join(" ")),A}n.exports=(v,x,A)=>{let D=E(v,x,A),{encoding:P,buffer:F,maxBuffer:V}=D.opts,H=I(v,x),k,X;try{k=a.spawn(D.cmd,D.args,D.opts)}catch(de){return Promise.reject(de)}D.opts.cleanup&&(X=m((()=>{k.kill()})));let ee=null,ne=!1,ie=()=>{ee&&(clearTimeout(ee),ee=null),X&&X()};D.opts.timeout>0&&(ee=setTimeout((()=>{ee=null,ne=!0,k.kill(D.opts.killSignal)}),D.opts.timeout));let Ee=new Promise((de=>{k.on("exit",((q,ke)=>{ie(),de({code:q,signal:ke})})),k.on("error",(q=>{ie(),de({error:q})})),k.stdin&&k.stdin.on("error",(q=>{ie(),de({error:q})}))}));function K(){k.stdout&&k.stdout.destroy(),k.stderr&&k.stderr.destroy()}let le=()=>d(Promise.all([Ee,y(k,"stdout",{encoding:P,buffer:F,maxBuffer:V}),y(k,"stderr",{encoding:P,buffer:F,maxBuffer:V})]).then((de=>{let q=de[0];if(q.stdout=de[1],q.stderr=de[2],q.error||q.code!==0||q.signal!==null){let ke=T(q,{joinedCmd:H,parsed:D,timedOut:ne});if(ke.killed=ke.killed||k.killed,!D.opts.reject)return ke;throw ke}return{stdout:_(D.opts,q.stdout),stderr:_(D.opts,q.stderr),code:0,failed:!1,killed:!1,signal:null,cmd:H,timedOut:!1}})),K);return c._enoent.hookChildProcess(k,D.parsed),(function(de,q){q!=null&&(f(q)?q.pipe(de.stdin):de.stdin.end(q))})(k,D.opts.input),k.then=(de,q)=>le().then(de,q),k.catch=de=>le().catch(de),k},n.exports.stdout=(...v)=>n.exports(...v).then((x=>x.stdout)),n.exports.stderr=(...v)=>n.exports(...v).then((x=>x.stderr)),n.exports.shell=(v,x)=>S(n.exports,v,x),n.exports.sync=(v,x,A)=>{let D=E(v,x,A),P=I(v,x);if(f(D.opts.input))throw new TypeError("The `input` option cannot be a stream in sync mode");let F=a.spawnSync(D.cmd,D.args,D.opts);if(F.code=F.status,F.error||F.status!==0||F.signal!==null){let V=T(F,{joinedCmd:P,parsed:D});if(!D.opts.reject)return V;throw V}return{stdout:_(D.opts,F.stdout),stderr:_(D.opts,F.stderr),code:0,failed:!1,signal:null,cmd:P,timedOut:!1}},n.exports.shellSync=(v,x)=>S(n.exports.sync,v,x)},7688:(n,s,i)=>{"use strict";let o=i(970),a;if(typeof o.getSystemErrorName=="function")n.exports=o.getSystemErrorName;else{try{if(a=process.binding("uv"),typeof a.errname!="function")throw new TypeError("uv.errname is not a function")}catch(u){console.error("execa/lib/errname: unable to establish process.binding('uv')",u),a=null}n.exports=u=>c(a,u)}function c(u,l){if(u)return u.errname(l);if(!(l<0))throw new Error("err >= 0");return`Unknown system error ${l}`}n.exports.__test__=c},6174:n=>{"use strict";let s=["stdin","stdout","stderr"];n.exports=i=>{if(!i)return null;if(i.stdio&&(u=>s.some((l=>!!u[l])))(i))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${s.map((u=>`\`${u}\``)).join(", ")}`);if(typeof i.stdio=="string")return i.stdio;let o=i.stdio||[];if(!Array.isArray(o))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof o}\``);let a=[],c=Math.max(o.length,s.length);for(let u=0;u<c;u++){let l=null;o[u]!==void 0?l=o[u]:i[s[u]]!==void 0&&(l=i[s[u]]),a[u]=l}return a}},656:(n,s,i)=>{"use strict";let{PassThrough:o}=i(8378);n.exports=a=>{a=Object.assign({},a);let{array:c}=a,{encoding:u}=a,l=u==="buffer",f=!1;c?f=!(u||l):u=u||"utf8",l&&(u=null);let p=0,d=[],m=new o({objectMode:f});return u&&m.setEncoding(u),m.on("data",(g=>{d.push(g),f?p=d.length:p+=g.length})),m.getBufferedValue=()=>c?d:l?Buffer.concat(d,p):d.join(""),m.getBufferedLength=()=>p,m}},9068:(n,s,i)=>{"use strict";let o=i(8984),a=i(656);class c extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}function u(l,f){if(!l)return Promise.reject(new Error("Expected a stream"));f=Object.assign({maxBuffer:1/0},f);let{maxBuffer:p}=f,d;return new Promise(((m,g)=>{let h=E=>{E&&(E.bufferedData=d.getBufferedValue()),g(E)};d=o(l,a(f),(E=>{E?h(E):m()})),d.on("data",(()=>{d.getBufferedLength()>p&&h(new c)}))})).then((()=>d.getBufferedValue()))}n.exports=u,n.exports.buffer=(l,f)=>u(l,Object.assign({},f,{encoding:"buffer"})),n.exports.array=(l,f)=>u(l,Object.assign({},f,{array:!0})),n.exports.MaxBufferError=c},2680:n=>{n.exports=function s(i,o){if(i&&o)return s(i)(o);if(typeof i!="function")throw new TypeError("need wrapper function");return Object.keys(i).forEach((function(c){a[c]=i[c]})),a;function a(){for(var c=new Array(arguments.length),u=0;u<c.length;u++)c[u]=arguments[u];var l=i.apply(this,c),f=c[c.length-1];return typeof l=="function"&&l!==f&&Object.keys(f).forEach((function(p){l[p]=f[p]})),l}}},4824:n=>{"use strict";function s(i){return i}n.exports={date:s,error:s,symbol:s,string:s,number:s,boolean:s,null:s,undefined:s}},324:(n,s,i)=>{"use strict";var o=i(3648),a=i(4616),c=i(4824);function u(l,f){return l===void 0?f:l}n.exports=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{indent:u(l.indent," "),prefix:u(l.prefix,`
185
+ ${D}${A}`),P=new Error(`Command failed: ${k}${ee}`),P.code=F<0?g(F):F}return P.stdout=A,P.stderr=D,P.failed=!0,P.signal=V||null,P.cmd=k,P.timedOut=X,P}function b(v,x){let A=v;return Array.isArray(x)&&x.length>0&&(A+=" "+x.join(" ")),A}n.exports=(v,x,A)=>{let D=E(v,x,A),{encoding:P,buffer:F,maxBuffer:V}=D.opts,H=b(v,x),k,X;try{k=a.spawn(D.cmd,D.args,D.opts)}catch(de){return Promise.reject(de)}D.opts.cleanup&&(X=m((()=>{k.kill()})));let ee=null,ne=!1,ie=()=>{ee&&(clearTimeout(ee),ee=null),X&&X()};D.opts.timeout>0&&(ee=setTimeout((()=>{ee=null,ne=!0,k.kill(D.opts.killSignal)}),D.opts.timeout));let Ee=new Promise((de=>{k.on("exit",((q,ke)=>{ie(),de({code:q,signal:ke})})),k.on("error",(q=>{ie(),de({error:q})})),k.stdin&&k.stdin.on("error",(q=>{ie(),de({error:q})}))}));function K(){k.stdout&&k.stdout.destroy(),k.stderr&&k.stderr.destroy()}let le=()=>d(Promise.all([Ee,y(k,"stdout",{encoding:P,buffer:F,maxBuffer:V}),y(k,"stderr",{encoding:P,buffer:F,maxBuffer:V})]).then((de=>{let q=de[0];if(q.stdout=de[1],q.stderr=de[2],q.error||q.code!==0||q.signal!==null){let ke=T(q,{joinedCmd:H,parsed:D,timedOut:ne});if(ke.killed=ke.killed||k.killed,!D.opts.reject)return ke;throw ke}return{stdout:_(D.opts,q.stdout),stderr:_(D.opts,q.stderr),code:0,failed:!1,killed:!1,signal:null,cmd:H,timedOut:!1}})),K);return c._enoent.hookChildProcess(k,D.parsed),(function(de,q){q!=null&&(f(q)?q.pipe(de.stdin):de.stdin.end(q))})(k,D.opts.input),k.then=(de,q)=>le().then(de,q),k.catch=de=>le().catch(de),k},n.exports.stdout=(...v)=>n.exports(...v).then((x=>x.stdout)),n.exports.stderr=(...v)=>n.exports(...v).then((x=>x.stderr)),n.exports.shell=(v,x)=>S(n.exports,v,x),n.exports.sync=(v,x,A)=>{let D=E(v,x,A),P=b(v,x);if(f(D.opts.input))throw new TypeError("The `input` option cannot be a stream in sync mode");let F=a.spawnSync(D.cmd,D.args,D.opts);if(F.code=F.status,F.error||F.status!==0||F.signal!==null){let V=T(F,{joinedCmd:P,parsed:D});if(!D.opts.reject)return V;throw V}return{stdout:_(D.opts,F.stdout),stderr:_(D.opts,F.stderr),code:0,failed:!1,signal:null,cmd:P,timedOut:!1}},n.exports.shellSync=(v,x)=>S(n.exports.sync,v,x)},7688:(n,s,i)=>{"use strict";let o=i(970),a;if(typeof o.getSystemErrorName=="function")n.exports=o.getSystemErrorName;else{try{if(a=process.binding("uv"),typeof a.errname!="function")throw new TypeError("uv.errname is not a function")}catch(u){console.error("execa/lib/errname: unable to establish process.binding('uv')",u),a=null}n.exports=u=>c(a,u)}function c(u,l){if(u)return u.errname(l);if(!(l<0))throw new Error("err >= 0");return`Unknown system error ${l}`}n.exports.__test__=c},6174:n=>{"use strict";let s=["stdin","stdout","stderr"];n.exports=i=>{if(!i)return null;if(i.stdio&&(u=>s.some((l=>!!u[l])))(i))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${s.map((u=>`\`${u}\``)).join(", ")}`);if(typeof i.stdio=="string")return i.stdio;let o=i.stdio||[];if(!Array.isArray(o))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof o}\``);let a=[],c=Math.max(o.length,s.length);for(let u=0;u<c;u++){let l=null;o[u]!==void 0?l=o[u]:i[s[u]]!==void 0&&(l=i[s[u]]),a[u]=l}return a}},656:(n,s,i)=>{"use strict";let{PassThrough:o}=i(8378);n.exports=a=>{a=Object.assign({},a);let{array:c}=a,{encoding:u}=a,l=u==="buffer",f=!1;c?f=!(u||l):u=u||"utf8",l&&(u=null);let p=0,d=[],m=new o({objectMode:f});return u&&m.setEncoding(u),m.on("data",(g=>{d.push(g),f?p=d.length:p+=g.length})),m.getBufferedValue=()=>c?d:l?Buffer.concat(d,p):d.join(""),m.getBufferedLength=()=>p,m}},9068:(n,s,i)=>{"use strict";let o=i(8984),a=i(656);class c extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}function u(l,f){if(!l)return Promise.reject(new Error("Expected a stream"));f=Object.assign({maxBuffer:1/0},f);let{maxBuffer:p}=f,d;return new Promise(((m,g)=>{let h=E=>{E&&(E.bufferedData=d.getBufferedValue()),g(E)};d=o(l,a(f),(E=>{E?h(E):m()})),d.on("data",(()=>{d.getBufferedLength()>p&&h(new c)}))})).then((()=>d.getBufferedValue()))}n.exports=u,n.exports.buffer=(l,f)=>u(l,Object.assign({},f,{encoding:"buffer"})),n.exports.array=(l,f)=>u(l,Object.assign({},f,{array:!0})),n.exports.MaxBufferError=c},2680:n=>{n.exports=function s(i,o){if(i&&o)return s(i)(o);if(typeof i!="function")throw new TypeError("need wrapper function");return Object.keys(i).forEach((function(c){a[c]=i[c]})),a;function a(){for(var c=new Array(arguments.length),u=0;u<c.length;u++)c[u]=arguments[u];var l=i.apply(this,c),f=c[c.length-1];return typeof l=="function"&&l!==f&&Object.keys(f).forEach((function(p){l[p]=f[p]})),l}}},4824:n=>{"use strict";function s(i){return i}n.exports={date:s,error:s,symbol:s,string:s,number:s,boolean:s,null:s,undefined:s}},324:(n,s,i)=>{"use strict";var o=i(3648),a=i(4616),c=i(4824);function u(l,f){return l===void 0?f:l}n.exports=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{indent:u(l.indent," "),prefix:u(l.prefix,`
186
186
  `),postfix:u(l.postfix,""),errorToString:l.errorToString||o,dateToString:l.dateToString||a,colors:Object.assign({},c,l.colors)}}},4616:n=>{"use strict";n.exports=function(s){return`new Date(${Date.prototype.toISOString.call(s)})`}},3648:n=>{"use strict";n.exports=function(s){return Error.prototype.toString.call(s)}},9411:n=>{"use strict";n.exports=function(){for(var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",o="",a=0;a<s;a+=1)o+=i;return o}},6232:(n,s,i)=>{"use strict";var o=i(7344),a=i(324),c=i(9411),u=["object","array"];n.exports=function(l,f){var p=a(f),d=p.colors,m=p.prefix,g=p.postfix,h=p.dateToString,E=p.errorToString,_=p.indent,S=new Map;function y(A){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Object.keys(A).length===0)return" {}";var F=`
187
- `,V=c(D,_);return Object.keys(A).forEach((function(H){var k=A[H],X=o(k),ee=c(P," "),ne=u.indexOf(X)!==-1?"":" ",ie=v(k)?" [Circular]":I(X,k,D+1,P);F+=`${ee}${V}${H}:${ne}${ie}
187
+ `,V=c(D,_);return Object.keys(A).forEach((function(H){var k=A[H],X=o(k),ee=c(P," "),ne=u.indexOf(X)!==-1?"":" ",ie=v(k)?" [Circular]":b(X,k,D+1,P);F+=`${ee}${V}${H}:${ne}${ie}
188
188
  `})),F.substring(0,F.length-1)}function T(A){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(A.length===0)return" []";var F=`
189
- `,V=c(D,_);return A.forEach((function(H){var k=o(H),X=c(P," "),ee=v(H)?"[Circular]":I(k,H,D,P+1).toString().trimLeft();F+=`${X}${V}- ${ee}
190
- `})),F.substring(0,F.length-1)}function I(A,D,P,F){switch(A){case"array":return T(D,P,F);case"object":return y(D,P,F);case"string":return d.string(D);case"symbol":return d.symbol(D.toString());case"number":return d.number(D);case"boolean":return d.boolean(D);case"null":return d.null("null");case"undefined":return d.undefined("undefined");case"date":return d.date(h(D));case"error":return d.error(E(D));default:return D&&D.toString?D.toString():Object.prototype.toString.call(D)}}function v(A){return!(["object","array"].indexOf(o(A))===-1||!S.has(A)&&(S.set(A),1))}var x="";return S.set(l),o(l)==="object"&&Object.keys(l).length>0?x=y(l):o(l)==="array"&&l.length>0&&(x=T(l)),x.length===0?"":`${m}${x.slice(1)}${g}`}},7344:n=>{"use strict";n.exports=function(s){return Array.isArray(s)?"array":s instanceof Date?"date":s instanceof Error?"error":s===null?"null":typeof s=="object"&&Object.prototype.toString.call(s)==="[object Object]"?"object":typeof s}},6608:n=>{"use strict";n.exports=W("assert")},4368:n=>{"use strict";n.exports=W("child_process")},467:n=>{"use strict";n.exports=W("events")},2058:n=>{"use strict";n.exports=W("fs")},8558:n=>{"use strict";n.exports=W("os")},7072:n=>{"use strict";n.exports=W("path")},8378:n=>{"use strict";n.exports=W("stream")},970:n=>{"use strict";n.exports=W("util")}},e={},t=(function n(s){var i=e[s];if(i!==void 0)return i.exports;var o=e[s]={exports:{}};return r[s](o,o.exports,n),o.exports})(2980);M$.exports=t})()});var B$=C((NIe,Whe)=>{Whe.exports={name:"systeminformation",version:"5.27.14",description:"Advanced, lightweight system and OS information library",license:"MIT",author:"Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",homepage:"https://systeminformation.io",main:"./lib/index.js",type:"commonjs",bin:{systeminformation:"lib/cli.js"},types:"./lib/index.d.ts",scripts:{test:"node ./test/test.js",testDeno:"deno run -A ./test/test.js"},files:["lib/"],keywords:["system information","sysinfo","monitor","monitoring","os","linux","osx","windows","freebsd","openbsd","netbsd","cpu","cpuload","physical cores","logical cores","processor","cores","threads","socket type","memory","file system","fsstats","diskio","block devices","netstats","network","network interfaces","network connections","network stats","iface","printer","processes","users","internet","battery","docker","docker stats","docker processes","graphics","graphic card","graphic controller","gpu","display","smart","disk layout","usb","audio","bluetooth","wifi","wifinetworks","virtual box","virtualbox","vm","backend","hardware","BIOS","chassis"],repository:{type:"git",url:"git+https://github.com/sebhildebrandt/systeminformation.git"},funding:{type:"Buy me a coffee",url:"https://www.buymeacoffee.com/systeminfo"},os:["darwin","linux","win32","freebsd","openbsd","netbsd","sunos","android"],engines:{node:">=8.0.0"}}});var Ht=C(Be=>{"use strict";var au=W("os"),ai=W("fs"),Yhe=W("path"),y1=W("child_process").spawn,zhe=W("child_process").exec,cu=W("child_process").execSync,Xhe=W("util"),pa=process.platform,A1=pa==="linux"||pa==="android",V$=pa==="darwin",$0=pa==="win32",G$=pa==="freebsd",k$=pa==="openbsd",j$=pa==="netbsd",m1=0,fa="",si="",Ms=null,oi=null,O1=process.env.WINDIR||"C:\\Windows",Jt,ou="",Of=[],C1=!1,j0="",Khe="$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 ; ",E1="--###START###--",U$="--ERROR--",q0="--###ENDCMD###--",S1="--##ID##--",Cf={windowsHide:!0,maxBuffer:1024*2e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})},H0={maxBuffer:1024*2e4,encoding:"UTF-8",stdio:["pipe","pipe","ignore"]};function Jhe(r){let e=parseInt(r,10);return isNaN(e)&&(e=0),e}function Qhe(r){let e=!1,t="",n="";for(let s of r)s>="0"&&s<="9"||e?(e=!0,t+=s):n+=s;return[n,t]}var k0=new String,_1=new String().replace,T1=new String().toLowerCase,q$=new String().toString,$$=new String().substr,H$=new String().substring,W$=new String().trim,Y$=new String().startsWith,z$=Math.min;function Zhe(r){return r&&{}.toString.call(r)==="[object Function]"}function eme(r){let e=[],t={};for(let n=0;n<r.length;n++){let s=Object.keys(r[n]);s.sort(function(o,a){return o-a});let i="";for(let o=0;o<s.length;o++)i+=JSON.stringify(s[o]),i+=JSON.stringify(r[n][s[o]]);({}).hasOwnProperty.call(t,i)||(e.push(r[n]),t[i]=!0)}return e}function tme(r,e){return r.sort(function(t,n){let s="",i="";return e.forEach(function(o){s=s+t[o],i=i+n[o]}),s<i?-1:s>i?1:0})}function rme(){return m1===0&&(m1=au.cpus().length),m1}function Ns(r,e,t,n,s){t=t||":",e=e.toLowerCase(),n=n||!1,s=s||!1;let i="";return r.some(o=>{let a=o.toLowerCase().replace(/\t/g,"");if(n&&(a=a.trim()),a.startsWith(e)&&(!s||a.match(e+t)||a.match(e+" "+t))){let c=n?o.trim().split(t):o.split(t);if(c.length>=2)return c.shift(),i=c.join(t).trim(),!0}}),i}function nme(r,e){return e=e||16,r.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(parseInt(arguments[1],e))})}function ime(r){let e="",t=0;return r.split("").forEach(n=>{n>="0"&&n<="9"?t===1&&t++:(t===0&&t++,t===1&&(e+=n))}),e}function sme(r,e){e=e||"",r=r.toUpperCase();let t=0,n=0,s=ime(r),i=r.split(s);if(i.length>=2){i[2]&&(i[1]+=i[2]);let o=i[1]&&i[1].toLowerCase().indexOf("pm")>-1||i[1].toLowerCase().indexOf("p.m.")>-1||i[1].toLowerCase().indexOf("p. m.")>-1||i[1].toLowerCase().indexOf("n")>-1||i[1].toLowerCase().indexOf("ch")>-1||i[1].toLowerCase().indexOf("\xF6s")>-1||e&&i[1].toLowerCase().indexOf(e)>-1;return t=parseInt(i[0],10),n=parseInt(i[1],10),t=o&&t<12?t+12:t,("0"+t).substr(-2)+":"+("0"+n).substr(-2)}}function ome(r,e){let t={date:"",time:""};e=e||{};let n=(e.dateFormat||"").toLowerCase(),s=e.pmDesignator||"",i=r.split(" ");if(i[0]){if(i[0].indexOf("/")>=0){let o=i[0].split("/");o.length===3&&(o[0].length===4?t.date=o[0]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[2]).substr(-2):o[2].length===2?(n.indexOf("/d/")>-1||n.indexOf("/dd/")>-1,t.date="20"+o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2)):(r.toLowerCase().indexOf("pm")>-1||r.toLowerCase().indexOf("p.m.")>-1||r.toLowerCase().indexOf("p. m.")>-1||r.toLowerCase().indexOf("am")>-1||r.toLowerCase().indexOf("a.m.")>-1||r.toLowerCase().indexOf("a. m.")>-1||n.indexOf("/d/")>-1||n.indexOf("/dd/")>-1)&&n.indexOf("dd/")!==0?t.date=o[2]+"-"+("0"+o[0]).substr(-2)+"-"+("0"+o[1]).substr(-2):t.date=o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2))}if(i[0].indexOf(".")>=0){let o=i[0].split(".");o.length===3&&(n.indexOf(".d.")>-1||n.indexOf(".dd.")>-1?t.date=o[2]+"-"+("0"+o[0]).substr(-2)+"-"+("0"+o[1]).substr(-2):t.date=o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2))}if(i[0].indexOf("-")>=0){let o=i[0].split("-");o.length===3&&(t.date=o[0]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[2]).substr(-2))}}if(i[1]){i.shift();let o=i.join(" ");t.time=sme(o,s)}return t}function ame(r,e){let t=e>0,n=1,s=0,i=0,o=[];for(let c=0;c<r.length;c++)n<=e?(/\s/.test(r[c])&&!t&&(i=c-1,o.push({from:s,to:i+1,cap:r.substring(s,i+1)}),s=i+2,n++),t=r[c]===" "):(!/\s/.test(r[c])&&t&&(i=c-1,s<i&&o.push({from:s,to:i,cap:r.substring(s,i)}),s=i+1,n++),t=r[c]===" ");i=5e3,o.push({from:s,to:i,cap:r.substring(s,i)});let a=o.length;for(let c=0;c<a;c++)o[c].cap.replace(/\s/g,"").length===0&&c+1<a&&(o[c].to=o[c+1].to,o[c].cap=o[c].cap+o[c+1].cap,o.splice(c+1,1),a=a-1);return o}function cme(r,e,t){for(let n=0;n<r.length;n++)if(r[n][e]===t)return n;return-1}function ume(){if(j0="powershell.exe",$0){let r=`${O1}\\system32\\WindowsPowerShell\\v1.0\\powershell.exe`;ai.existsSync(r)&&(j0=r)}}function X$(){if(au.type()==="Windows_NT"&&!fa&&(fa=O1+"\\system32\\wbem\\wmic.exe",!ai.existsSync(fa)))try{let r=cu("WHERE WMIC",Cf).toString().split(`\r
189
+ `,V=c(D,_);return A.forEach((function(H){var k=o(H),X=c(P," "),ee=v(H)?"[Circular]":b(k,H,D,P+1).toString().trimLeft();F+=`${X}${V}- ${ee}
190
+ `})),F.substring(0,F.length-1)}function b(A,D,P,F){switch(A){case"array":return T(D,P,F);case"object":return y(D,P,F);case"string":return d.string(D);case"symbol":return d.symbol(D.toString());case"number":return d.number(D);case"boolean":return d.boolean(D);case"null":return d.null("null");case"undefined":return d.undefined("undefined");case"date":return d.date(h(D));case"error":return d.error(E(D));default:return D&&D.toString?D.toString():Object.prototype.toString.call(D)}}function v(A){return!(["object","array"].indexOf(o(A))===-1||!S.has(A)&&(S.set(A),1))}var x="";return S.set(l),o(l)==="object"&&Object.keys(l).length>0?x=y(l):o(l)==="array"&&l.length>0&&(x=T(l)),x.length===0?"":`${m}${x.slice(1)}${g}`}},7344:n=>{"use strict";n.exports=function(s){return Array.isArray(s)?"array":s instanceof Date?"date":s instanceof Error?"error":s===null?"null":typeof s=="object"&&Object.prototype.toString.call(s)==="[object Object]"?"object":typeof s}},6608:n=>{"use strict";n.exports=W("assert")},4368:n=>{"use strict";n.exports=W("child_process")},467:n=>{"use strict";n.exports=W("events")},2058:n=>{"use strict";n.exports=W("fs")},8558:n=>{"use strict";n.exports=W("os")},7072:n=>{"use strict";n.exports=W("path")},8378:n=>{"use strict";n.exports=W("stream")},970:n=>{"use strict";n.exports=W("util")}},e={},t=(function n(s){var i=e[s];if(i!==void 0)return i.exports;var o=e[s]={exports:{}};return r[s](o,o.exports,n),o.exports})(2980);M$.exports=t})()});var B$=C((NIe,Whe)=>{Whe.exports={name:"systeminformation",version:"5.27.14",description:"Advanced, lightweight system and OS information library",license:"MIT",author:"Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",homepage:"https://systeminformation.io",main:"./lib/index.js",type:"commonjs",bin:{systeminformation:"lib/cli.js"},types:"./lib/index.d.ts",scripts:{test:"node ./test/test.js",testDeno:"deno run -A ./test/test.js"},files:["lib/"],keywords:["system information","sysinfo","monitor","monitoring","os","linux","osx","windows","freebsd","openbsd","netbsd","cpu","cpuload","physical cores","logical cores","processor","cores","threads","socket type","memory","file system","fsstats","diskio","block devices","netstats","network","network interfaces","network connections","network stats","iface","printer","processes","users","internet","battery","docker","docker stats","docker processes","graphics","graphic card","graphic controller","gpu","display","smart","disk layout","usb","audio","bluetooth","wifi","wifinetworks","virtual box","virtualbox","vm","backend","hardware","BIOS","chassis"],repository:{type:"git",url:"git+https://github.com/sebhildebrandt/systeminformation.git"},funding:{type:"Buy me a coffee",url:"https://www.buymeacoffee.com/systeminfo"},os:["darwin","linux","win32","freebsd","openbsd","netbsd","sunos","android"],engines:{node:">=8.0.0"}}});var Ht=C(Be=>{"use strict";var au=W("os"),ai=W("fs"),Yhe=W("path"),y1=W("child_process").spawn,zhe=W("child_process").exec,cu=W("child_process").execSync,Xhe=W("util"),pa=process.platform,A1=pa==="linux"||pa==="android",V$=pa==="darwin",$0=pa==="win32",G$=pa==="freebsd",k$=pa==="openbsd",j$=pa==="netbsd",m1=0,fa="",si="",Ms=null,oi=null,O1=process.env.WINDIR||"C:\\Windows",Jt,ou="",Of=[],C1=!1,j0="",Khe="$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 ; ",E1="--###START###--",U$="--ERROR--",q0="--###ENDCMD###--",S1="--##ID##--",Cf={windowsHide:!0,maxBuffer:1024*2e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})},H0={maxBuffer:1024*2e4,encoding:"UTF-8",stdio:["pipe","pipe","ignore"]};function Jhe(r){let e=parseInt(r,10);return isNaN(e)&&(e=0),e}function Qhe(r){let e=!1,t="",n="";for(let s of r)s>="0"&&s<="9"||e?(e=!0,t+=s):n+=s;return[n,t]}var k0=new String,_1=new String().replace,T1=new String().toLowerCase,q$=new String().toString,$$=new String().substr,H$=new String().substring,W$=new String().trim,Y$=new String().startsWith,z$=Math.min;function Zhe(r){return r&&{}.toString.call(r)==="[object Function]"}function eme(r){let e=[],t={};for(let n=0;n<r.length;n++){let s=Object.keys(r[n]);s.sort(function(o,a){return o-a});let i="";for(let o=0;o<s.length;o++)i+=JSON.stringify(s[o]),i+=JSON.stringify(r[n][s[o]]);({}).hasOwnProperty.call(t,i)||(e.push(r[n]),t[i]=!0)}return e}function tme(r,e){return r.sort(function(t,n){let s="",i="";return e.forEach(function(o){s=s+t[o],i=i+n[o]}),s<i?-1:s>i?1:0})}function rme(){return m1===0&&(m1=au.cpus().length),m1}function Ns(r,e,t,n,s){t=t||":",e=e.toLowerCase(),n=n||!1,s=s||!1;let i="";return r.some(o=>{let a=o.toLowerCase().replace(/\t/g,"");if(n&&(a=a.trim()),a.startsWith(e)&&(!s||a.match(e+t)||a.match(e+" "+t))){let c=n?o.trim().split(t):o.split(t);if(c.length>=2)return c.shift(),i=c.join(t).trim(),!0}}),i}function nme(r,e){return e=e||16,r.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(parseInt(arguments[1],e))})}function ime(r){let e="",t=0;return r.split("").forEach(n=>{n>="0"&&n<="9"?t===1&&t++:(t===0&&t++,t===1&&(e+=n))}),e}function sme(r,e){e=e||"",r=r.toUpperCase();let t=0,n=0,s=ime(r),i=r.split(s);if(i.length>=2){i[2]&&(i[1]+=i[2]);let o=i[1]&&i[1].toLowerCase().indexOf("pm")>-1||i[1].toLowerCase().indexOf("p.m.")>-1||i[1].toLowerCase().indexOf("p. m.")>-1||i[1].toLowerCase().indexOf("n")>-1||i[1].toLowerCase().indexOf("ch")>-1||i[1].toLowerCase().indexOf("\xF6s")>-1||e&&i[1].toLowerCase().indexOf(e)>-1;return t=parseInt(i[0],10),n=parseInt(i[1],10),t=o&&t<12?t+12:t,("0"+t).substr(-2)+":"+("0"+n).substr(-2)}}function ome(r,e){let t={date:"",time:""};e=e||{};let n=(e.dateFormat||"").toLowerCase(),s=e.pmDesignator||"",i=r.split(" ");if(i[0]){if(i[0].indexOf("/")>=0){let o=i[0].split("/");o.length===3&&(o[0].length===4?t.date=o[0]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[2]).substr(-2):o[2].length===2?(n.indexOf("/d/")>-1||n.indexOf("/dd/")>-1,t.date="20"+o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2)):(r.toLowerCase().indexOf("pm")>-1||r.toLowerCase().indexOf("p.m.")>-1||r.toLowerCase().indexOf("p. m.")>-1||r.toLowerCase().indexOf("am")>-1||r.toLowerCase().indexOf("a.m.")>-1||r.toLowerCase().indexOf("a. m.")>-1||n.indexOf("/d/")>-1||n.indexOf("/dd/")>-1)&&n.indexOf("dd/")!==0?t.date=o[2]+"-"+("0"+o[0]).substr(-2)+"-"+("0"+o[1]).substr(-2):t.date=o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2))}if(i[0].indexOf(".")>=0){let o=i[0].split(".");o.length===3&&(n.indexOf(".d.")>-1||n.indexOf(".dd.")>-1?t.date=o[2]+"-"+("0"+o[0]).substr(-2)+"-"+("0"+o[1]).substr(-2):t.date=o[2]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[0]).substr(-2))}if(i[0].indexOf("-")>=0){let o=i[0].split("-");o.length===3&&(t.date=o[0]+"-"+("0"+o[1]).substr(-2)+"-"+("0"+o[2]).substr(-2))}}if(i[1]){i.shift();let o=i.join(" ");t.time=sme(o,s)}return t}function ame(r,e){let t=e>0,n=1,s=0,i=0,o=[];for(let c=0;c<r.length;c++)n<=e?(/\s/.test(r[c])&&!t&&(i=c-1,o.push({from:s,to:i+1,cap:r.substring(s,i+1)}),s=i+2,n++),t=r[c]===" "):(!/\s/.test(r[c])&&t&&(i=c-1,s<i&&o.push({from:s,to:i,cap:r.substring(s,i)}),s=i+1,n++),t=r[c]===" ");i=5e3,o.push({from:s,to:i,cap:r.substring(s,i)});let a=o.length;for(let c=0;c<a;c++)o[c].cap.replace(/\s/g,"").length===0&&c+1<a&&(o[c].to=o[c+1].to,o[c].cap=o[c].cap+o[c+1].cap,o.splice(c+1,1),a=a-1);return o}function cme(r,e,t){for(let n=0;n<r.length;n++)if(r[n][e]===t)return n;return-1}function ume(){if(j0="powershell.exe",$0){let r=`${O1}\\system32\\WindowsPowerShell\\v1.0\\powershell.exe`;ai.existsSync(r)&&(j0=r)}}function X$(){if(au.type()==="Windows_NT"&&!fa&&(fa=O1+"\\system32\\wbem\\wmic.exe",!ai.existsSync(fa)))try{let r=cu("WHERE WMIC",Cf).toString().split(`\r
191
191
  `);r&&r.length?fa=r[0]:fa="wmic"}catch{fa="wmic"}return fa}function lme(r){return new Promise(e=>{process.nextTick(()=>{try{K$(X$()+" "+r).then(t=>{e(t,"")})}catch(t){e("",t)}})})}function fme(){return $0?`"${process.env.VBOX_INSTALL_PATH||process.env.VBOX_MSI_INSTALL_PATH}\\VBoxManage.exe"`:"vboxmanage"}function g1(r){let e="",t,n="";if(r.indexOf(E1)>=0){t=r.split(E1);let i=t[1].split(S1);e=i[0],i.length>1&&(r=i.slice(1).join(S1))}r.indexOf(q0)>=0&&(t=r.split(q0),n=t[0]);let s=-1;for(let i=0;i<Of.length;i++)Of[i].id===e&&(s=i,Of[i].callback(n));s>=0&&Of.splice(s,1)}function pme(){Jt||(Jt=y1(j0,["-NoProfile","-NoLogo","-InputFormat","Text","-NoExit","-Command","-"],{stdio:"pipe",windowsHide:!0,maxBuffer:1024*2e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})}),Jt&&Jt.pid&&(C1=!0,Jt.stdout.on("data",function(r){ou=ou+r.toString("utf8"),r.indexOf(q0)>=0&&(g1(ou),ou="")}),Jt.stderr.on("data",function(){g1(ou+U$)}),Jt.on("error",function(){g1(ou+U$)}),Jt.on("close",function(){Jt&&Jt.kill()})))}function dme(){try{Jt&&(Jt.stdin.write("exit"+au.EOL),Jt.stdin.end(),C1=!1)}catch{Jt&&Jt.kill()}Jt=null}function K$(r){if(C1){let e=Math.random().toString(36).substring(2,12);return new Promise(t=>{process.nextTick(()=>{function n(s){t(s)}Of.push({id:e,cmd:r,callback:n,start:new Date});try{Jt&&Jt.pid&&Jt.stdin.write(Khe+"echo "+E1+e+S1+"; "+au.EOL+r+au.EOL+"echo "+q0+au.EOL)}catch{t("")}})})}else{let e="";return new Promise(t=>{process.nextTick(()=>{try{let n=y1(j0,["-NoProfile","-NoLogo","-InputFormat","Text","-ExecutionPolicy","Unrestricted","-Command",r],{stdio:"pipe",windowsHide:!0,maxBuffer:2048e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})});n&&!n.pid&&n.on("error",function(){t(e)}),n&&n.pid?(n.stdout.on("data",function(s){e=e+s.toString("utf8")}),n.stderr.on("data",function(){n.kill(),t(e)}),n.on("close",function(){n.kill(),t(e)}),n.on("error",function(){n.kill(),t(e)})):t(e)}catch{t(e)}})})}}function hme(r,e,t){let n="";return t=t||{},new Promise(s=>{process.nextTick(()=>{try{let i=y1(r,e,t);i&&!i.pid&&i.on("error",function(){s(n)}),i&&i.pid?(i.stdout.on("data",function(o){n+=o.toString()}),i.on("close",function(){i.kill(),s(n)}),i.on("error",function(){i.kill(),s(n)})):s(n)}catch{s(n)}})})}function mme(){if($0){if(!si)try{let t=cu("chcp",Cf).toString().split(`\r
192
192
  `)[0].split(":");si=t.length>1?t[1].replace(".","").trim():""}catch{si="437"}return si}if(A1||V$||G$||k$||j$){if(!si)try{let t=cu("echo $LANG",H0).toString().split(`\r
193
193
  `)[0].split(".");si=t.length>1?t[1].trim():"",si||(si="UTF-8")}catch{si="UTF-8"}return si}}function gme(){if(Ms!==null)return Ms;if(Ms=!1,$0)try{let r=cu("WHERE smartctl 2>nul",Cf).toString().split(`\r
@@ -322,7 +322,7 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,fu
322
322
  `).forEach(function(o){let a=o.split(":");a[0].toLowerCase().indexOf("hw.l1icachesize")!==-1&&(t.l1d=parseInt(a[1].trim())*(a[1].indexOf("K")!==-1?1024:1)),a[0].toLowerCase().indexOf("hw.l1dcachesize")!==-1&&(t.l1i=parseInt(a[1].trim())*(a[1].indexOf("K")!==-1?1024:1)),a[0].toLowerCase().indexOf("hw.l2cachesize")!==-1&&(t.l2=parseInt(a[1].trim())*(a[1].indexOf("K")!==-1?1024:1)),a[0].toLowerCase().indexOf("hw.l3cachesize")!==-1&&(t.l3=parseInt(a[1].trim())*(a[1].indexOf("K")!==-1?1024:1))}),r&&r(t),e(t)}),og&&(r&&r(t),e(t)),rg)try{let n=[];n.push(pe.powerShell("Get-CimInstance Win32_processor | select L2CacheSize, L3CacheSize | fl")),n.push(pe.powerShell("Get-CimInstance Win32_CacheMemory | select CacheType,InstalledSize,Level | fl")),Promise.all(n).then(s=>{t=sH(s[0],s[1]),r&&r(t),e(t)})}catch{r&&r(t),e(t)}})})}function sH(r,e){let t={l1d:null,l1i:null,l2:null,l3:null},n=r.split(`\r
323
323
  `);t.l1d=0,t.l1i=0,t.l2=pe.getValue(n,"l2cachesize",":"),t.l3=pe.getValue(n,"l3cachesize",":"),t.l2?t.l2=parseInt(t.l2,10)*1024:t.l2=0,t.l3?t.l3=parseInt(t.l3,10)*1024:t.l3=0;let s=e.split(/\n\s*\n/),i=0,o=0,a=0;return s.forEach(function(c){let u=c.split(`\r
324
324
  `),l=pe.getValue(u,"CacheType"),f=pe.getValue(u,"Level"),p=pe.getValue(u,"InstalledSize");f==="3"&&l==="3"&&(t.l1i=t.l1i+parseInt(p,10)*1024),f==="3"&&l==="4"&&(t.l1d=t.l1d+parseInt(p,10)*1024),f==="3"&&l==="5"&&(i=parseInt(p,10)/2,o=parseInt(p,10)/2),f==="4"&&l==="5"&&(a=a+parseInt(p,10)*1024)}),!t.l1i&&!t.l1d&&(t.l1i=i,t.l1d=o),a&&(t.l2=a),t}Fs.cpuCache=iH;function i0e(){return new Promise(r=>{process.nextTick(()=>{let e=ui.loadavg().map(function(i){return i/pe.cores()}),t=parseFloat(Math.max.apply(Math,e).toFixed(2)),n={};if(Date.now()-it.ms>=200){it.ms=Date.now();let i=ui.cpus().map(function(E){return E.times.steal=0,E.times.guest=0,E}),o=0,a=0,c=0,u=0,l=0,f=0,p=0,d=[];if(P1=i&&i.length?i.length:0,gu)try{let E=eg("cat /proc/stat 2>/dev/null | grep cpu",pe.execOptsLinux).toString().split(`
325
- `);if(E.length>1&&(E.shift(),E.length===i.length))for(let _=0;_<E.length;_++){let S=E[_].split(" ");if(S.length>=10){let y=parseFloat(S[8])||0,T=parseFloat(S[9])||0;i[_].times.steal=y,i[_].times.guest=T}}}catch{pe.noop()}for(let E=0;E<P1;E++){let _=i[E].times;o+=_.user,a+=_.sys,c+=_.nice,l+=_.idle,u+=_.irq,f+=_.steal||0,p+=_.guest||0;let S=ae&&ae[E]&&ae[E].totalTick?ae[E].totalTick:0,y=ae&&ae[E]&&ae[E].totalLoad?ae[E].totalLoad:0,T=ae&&ae[E]&&ae[E].user?ae[E].user:0,I=ae&&ae[E]&&ae[E].sys?ae[E].sys:0,v=ae&&ae[E]&&ae[E].nice?ae[E].nice:0,x=ae&&ae[E]&&ae[E].idle?ae[E].idle:0,A=ae&&ae[E]&&ae[E].irq?ae[E].irq:0,D=ae&&ae[E]&&ae[E].steal?ae[E].steal:0,P=ae&&ae[E]&&ae[E].guest?ae[E].guest:0;ae[E]=_,ae[E].totalTick=ae[E].user+ae[E].sys+ae[E].nice+ae[E].irq+ae[E].steal+ae[E].guest+ae[E].idle,ae[E].totalLoad=ae[E].user+ae[E].sys+ae[E].nice+ae[E].irq+ae[E].steal+ae[E].guest,ae[E].currentTick=ae[E].totalTick-S,ae[E].load=ae[E].totalLoad-y,ae[E].loadUser=ae[E].user-T,ae[E].loadSystem=ae[E].sys-I,ae[E].loadNice=ae[E].nice-v,ae[E].loadIdle=ae[E].idle-x,ae[E].loadIrq=ae[E].irq-A,ae[E].loadSteal=ae[E].steal-D,ae[E].loadGuest=ae[E].guest-P,d[E]={},d[E].load=ae[E].load/ae[E].currentTick*100,d[E].loadUser=ae[E].loadUser/ae[E].currentTick*100,d[E].loadSystem=ae[E].loadSystem/ae[E].currentTick*100,d[E].loadNice=ae[E].loadNice/ae[E].currentTick*100,d[E].loadIdle=ae[E].loadIdle/ae[E].currentTick*100,d[E].loadIrq=ae[E].loadIrq/ae[E].currentTick*100,d[E].loadSteal=ae[E].loadSteal/ae[E].currentTick*100,d[E].loadGuest=ae[E].loadGuest/ae[E].currentTick*100,d[E].rawLoad=ae[E].load,d[E].rawLoadUser=ae[E].loadUser,d[E].rawLoadSystem=ae[E].loadSystem,d[E].rawLoadNice=ae[E].loadNice,d[E].rawLoadIdle=ae[E].loadIdle,d[E].rawLoadIrq=ae[E].loadIrq,d[E].rawLoadSteal=ae[E].loadSteal,d[E].rawLoadGuest=ae[E].loadGuest}let m=o+a+c+u+f+p+l,g=o+a+c+u+f+p,h=m-it.tick;n={avgLoad:t,currentLoad:(g-it.load)/h*100,currentLoadUser:(o-it.user)/h*100,currentLoadSystem:(a-it.system)/h*100,currentLoadNice:(c-it.nice)/h*100,currentLoadIdle:(l-it.idle)/h*100,currentLoadIrq:(u-it.irq)/h*100,currentLoadSteal:(f-it.steal)/h*100,currentLoadGuest:(p-it.guest)/h*100,rawCurrentLoad:g-it.load,rawCurrentLoadUser:o-it.user,rawCurrentLoadSystem:a-it.system,rawCurrentLoadNice:c-it.nice,rawCurrentLoadIdle:l-it.idle,rawCurrentLoadIrq:u-it.irq,rawCurrentLoadSteal:f-it.steal,rawCurrentLoadGuest:p-it.guest,cpus:d},it={user:o,nice:c,system:a,idle:l,irq:u,steal:f,guest:p,tick:m,load:g,ms:it.ms,currentLoad:n.currentLoad,currentLoadUser:n.currentLoadUser,currentLoadSystem:n.currentLoadSystem,currentLoadNice:n.currentLoadNice,currentLoadIdle:n.currentLoadIdle,currentLoadIrq:n.currentLoadIrq,currentLoadSteal:n.currentLoadSteal,currentLoadGuest:n.currentLoadGuest,rawCurrentLoad:n.rawCurrentLoad,rawCurrentLoadUser:n.rawCurrentLoadUser,rawCurrentLoadSystem:n.rawCurrentLoadSystem,rawCurrentLoadNice:n.rawCurrentLoadNice,rawCurrentLoadIdle:n.rawCurrentLoadIdle,rawCurrentLoadIrq:n.rawCurrentLoadIrq,rawCurrentLoadSteal:n.rawCurrentLoadSteal,rawCurrentLoadGuest:n.rawCurrentLoadGuest}}else{let i=[];for(let o=0;o<P1;o++)i[o]={},i[o].load=ae[o].load/ae[o].currentTick*100,i[o].loadUser=ae[o].loadUser/ae[o].currentTick*100,i[o].loadSystem=ae[o].loadSystem/ae[o].currentTick*100,i[o].loadNice=ae[o].loadNice/ae[o].currentTick*100,i[o].loadIdle=ae[o].loadIdle/ae[o].currentTick*100,i[o].loadIrq=ae[o].loadIrq/ae[o].currentTick*100,i[o].rawLoad=ae[o].load,i[o].rawLoadUser=ae[o].loadUser,i[o].rawLoadSystem=ae[o].loadSystem,i[o].rawLoadNice=ae[o].loadNice,i[o].rawLoadIdle=ae[o].loadIdle,i[o].rawLoadIrq=ae[o].loadIrq,i[o].rawLoadSteal=ae[o].loadSteal,i[o].rawLoadGuest=ae[o].loadGuest;n={avgLoad:t,currentLoad:it.currentLoad,currentLoadUser:it.currentLoadUser,currentLoadSystem:it.currentLoadSystem,currentLoadNice:it.currentLoadNice,currentLoadIdle:it.currentLoadIdle,currentLoadIrq:it.currentLoadIrq,currentLoadSteal:it.currentLoadSteal,currentLoadGuest:it.currentLoadGuest,rawCurrentLoad:it.rawCurrentLoad,rawCurrentLoadUser:it.rawCurrentLoadUser,rawCurrentLoadSystem:it.rawCurrentLoadSystem,rawCurrentLoadNice:it.rawCurrentLoadNice,rawCurrentLoadIdle:it.rawCurrentLoadIdle,rawCurrentLoadIrq:it.rawCurrentLoadIrq,rawCurrentLoadSteal:it.rawCurrentLoadSteal,rawCurrentLoadGuest:it.rawCurrentLoadGuest,cpus:i}}r(n)})})}function s0e(r){return new Promise(e=>{process.nextTick(()=>{i0e().then(t=>{r&&r(t),e(t)})})})}Fs.currentLoad=s0e;function o0e(){return new Promise(r=>{process.nextTick(()=>{let e=ui.cpus(),t=0,n=0,s=0,i=0,o=0,a=0;if(e&&e.length){for(let u=0,l=e.length;u<l;u++){let f=e[u].times;t+=f.user,n+=f.sys,s+=f.nice,i+=f.irq,o+=f.idle}let c=o+i+s+n+t;a=(c-o)/c*100}r(a)})})}function a0e(r){return new Promise(e=>{process.nextTick(()=>{o0e().then(t=>{r&&r(t),e(t)})})})}Fs.fullLoad=a0e});var mH=C(M1=>{"use strict";var xi=W("os"),bf=W("child_process").exec,ag=W("child_process").execSync,ge=Ht(),c0e=W("fs"),Vs=process.platform,cH=Vs==="linux"||Vs==="android",uH=Vs==="darwin",lH=Vs==="win32",fH=Vs==="freebsd",pH=Vs==="openbsd",dH=Vs==="netbsd",hH=Vs==="sunos",aH={"00CE":"Samsung Electronics Inc","014F":"Transcend Information Inc.","017A":"Apacer Technology Inc.","0198":"HyperX","029E":"Corsair","02FE":"Elpida","04CB":"A-DATA","04CD":"G.Skill International Enterprise","059B":"Crucial",1315:"Crucial","2C00":"Micron Technology Inc.",5105:"Qimonda AG i. In.","802C":"Micron Technology Inc.","80AD":"Hynix Semiconductor Inc.","80CE":"Samsung Electronics Inc.",8551:"Qimonda AG i. In.","859B":"Crucial",AD00:"Hynix Semiconductor Inc.",CE00:"Samsung Electronics Inc.",SAMSUNG:"Samsung Electronics Inc.",HYNIX:"Hynix Semiconductor Inc.","G-SKILL":"G-Skill International Enterprise","G.SKILL":"G-Skill International Enterprise",TRANSCEND:"Transcend Information",APACER:"Apacer Technology Inc",MICRON:"Micron Technology Inc.",QIMONDA:"Qimonda AG i. In."};function u0e(r){return new Promise(e=>{process.nextTick(()=>{let t={total:xi.totalmem(),free:xi.freemem(),used:xi.totalmem()-xi.freemem(),active:xi.totalmem()-xi.freemem(),available:xi.freemem(),buffers:0,cached:0,slab:0,buffcache:0,reclaimable:0,swaptotal:0,swapused:0,swapfree:0,writeback:null,dirty:null};if(cH)try{c0e.readFile("/proc/meminfo",function(n,s){if(!n){let i=s.toString().split(`
325
+ `);if(E.length>1&&(E.shift(),E.length===i.length))for(let _=0;_<E.length;_++){let S=E[_].split(" ");if(S.length>=10){let y=parseFloat(S[8])||0,T=parseFloat(S[9])||0;i[_].times.steal=y,i[_].times.guest=T}}}catch{pe.noop()}for(let E=0;E<P1;E++){let _=i[E].times;o+=_.user,a+=_.sys,c+=_.nice,l+=_.idle,u+=_.irq,f+=_.steal||0,p+=_.guest||0;let S=ae&&ae[E]&&ae[E].totalTick?ae[E].totalTick:0,y=ae&&ae[E]&&ae[E].totalLoad?ae[E].totalLoad:0,T=ae&&ae[E]&&ae[E].user?ae[E].user:0,b=ae&&ae[E]&&ae[E].sys?ae[E].sys:0,v=ae&&ae[E]&&ae[E].nice?ae[E].nice:0,x=ae&&ae[E]&&ae[E].idle?ae[E].idle:0,A=ae&&ae[E]&&ae[E].irq?ae[E].irq:0,D=ae&&ae[E]&&ae[E].steal?ae[E].steal:0,P=ae&&ae[E]&&ae[E].guest?ae[E].guest:0;ae[E]=_,ae[E].totalTick=ae[E].user+ae[E].sys+ae[E].nice+ae[E].irq+ae[E].steal+ae[E].guest+ae[E].idle,ae[E].totalLoad=ae[E].user+ae[E].sys+ae[E].nice+ae[E].irq+ae[E].steal+ae[E].guest,ae[E].currentTick=ae[E].totalTick-S,ae[E].load=ae[E].totalLoad-y,ae[E].loadUser=ae[E].user-T,ae[E].loadSystem=ae[E].sys-b,ae[E].loadNice=ae[E].nice-v,ae[E].loadIdle=ae[E].idle-x,ae[E].loadIrq=ae[E].irq-A,ae[E].loadSteal=ae[E].steal-D,ae[E].loadGuest=ae[E].guest-P,d[E]={},d[E].load=ae[E].load/ae[E].currentTick*100,d[E].loadUser=ae[E].loadUser/ae[E].currentTick*100,d[E].loadSystem=ae[E].loadSystem/ae[E].currentTick*100,d[E].loadNice=ae[E].loadNice/ae[E].currentTick*100,d[E].loadIdle=ae[E].loadIdle/ae[E].currentTick*100,d[E].loadIrq=ae[E].loadIrq/ae[E].currentTick*100,d[E].loadSteal=ae[E].loadSteal/ae[E].currentTick*100,d[E].loadGuest=ae[E].loadGuest/ae[E].currentTick*100,d[E].rawLoad=ae[E].load,d[E].rawLoadUser=ae[E].loadUser,d[E].rawLoadSystem=ae[E].loadSystem,d[E].rawLoadNice=ae[E].loadNice,d[E].rawLoadIdle=ae[E].loadIdle,d[E].rawLoadIrq=ae[E].loadIrq,d[E].rawLoadSteal=ae[E].loadSteal,d[E].rawLoadGuest=ae[E].loadGuest}let m=o+a+c+u+f+p+l,g=o+a+c+u+f+p,h=m-it.tick;n={avgLoad:t,currentLoad:(g-it.load)/h*100,currentLoadUser:(o-it.user)/h*100,currentLoadSystem:(a-it.system)/h*100,currentLoadNice:(c-it.nice)/h*100,currentLoadIdle:(l-it.idle)/h*100,currentLoadIrq:(u-it.irq)/h*100,currentLoadSteal:(f-it.steal)/h*100,currentLoadGuest:(p-it.guest)/h*100,rawCurrentLoad:g-it.load,rawCurrentLoadUser:o-it.user,rawCurrentLoadSystem:a-it.system,rawCurrentLoadNice:c-it.nice,rawCurrentLoadIdle:l-it.idle,rawCurrentLoadIrq:u-it.irq,rawCurrentLoadSteal:f-it.steal,rawCurrentLoadGuest:p-it.guest,cpus:d},it={user:o,nice:c,system:a,idle:l,irq:u,steal:f,guest:p,tick:m,load:g,ms:it.ms,currentLoad:n.currentLoad,currentLoadUser:n.currentLoadUser,currentLoadSystem:n.currentLoadSystem,currentLoadNice:n.currentLoadNice,currentLoadIdle:n.currentLoadIdle,currentLoadIrq:n.currentLoadIrq,currentLoadSteal:n.currentLoadSteal,currentLoadGuest:n.currentLoadGuest,rawCurrentLoad:n.rawCurrentLoad,rawCurrentLoadUser:n.rawCurrentLoadUser,rawCurrentLoadSystem:n.rawCurrentLoadSystem,rawCurrentLoadNice:n.rawCurrentLoadNice,rawCurrentLoadIdle:n.rawCurrentLoadIdle,rawCurrentLoadIrq:n.rawCurrentLoadIrq,rawCurrentLoadSteal:n.rawCurrentLoadSteal,rawCurrentLoadGuest:n.rawCurrentLoadGuest}}else{let i=[];for(let o=0;o<P1;o++)i[o]={},i[o].load=ae[o].load/ae[o].currentTick*100,i[o].loadUser=ae[o].loadUser/ae[o].currentTick*100,i[o].loadSystem=ae[o].loadSystem/ae[o].currentTick*100,i[o].loadNice=ae[o].loadNice/ae[o].currentTick*100,i[o].loadIdle=ae[o].loadIdle/ae[o].currentTick*100,i[o].loadIrq=ae[o].loadIrq/ae[o].currentTick*100,i[o].rawLoad=ae[o].load,i[o].rawLoadUser=ae[o].loadUser,i[o].rawLoadSystem=ae[o].loadSystem,i[o].rawLoadNice=ae[o].loadNice,i[o].rawLoadIdle=ae[o].loadIdle,i[o].rawLoadIrq=ae[o].loadIrq,i[o].rawLoadSteal=ae[o].loadSteal,i[o].rawLoadGuest=ae[o].loadGuest;n={avgLoad:t,currentLoad:it.currentLoad,currentLoadUser:it.currentLoadUser,currentLoadSystem:it.currentLoadSystem,currentLoadNice:it.currentLoadNice,currentLoadIdle:it.currentLoadIdle,currentLoadIrq:it.currentLoadIrq,currentLoadSteal:it.currentLoadSteal,currentLoadGuest:it.currentLoadGuest,rawCurrentLoad:it.rawCurrentLoad,rawCurrentLoadUser:it.rawCurrentLoadUser,rawCurrentLoadSystem:it.rawCurrentLoadSystem,rawCurrentLoadNice:it.rawCurrentLoadNice,rawCurrentLoadIdle:it.rawCurrentLoadIdle,rawCurrentLoadIrq:it.rawCurrentLoadIrq,rawCurrentLoadSteal:it.rawCurrentLoadSteal,rawCurrentLoadGuest:it.rawCurrentLoadGuest,cpus:i}}r(n)})})}function s0e(r){return new Promise(e=>{process.nextTick(()=>{i0e().then(t=>{r&&r(t),e(t)})})})}Fs.currentLoad=s0e;function o0e(){return new Promise(r=>{process.nextTick(()=>{let e=ui.cpus(),t=0,n=0,s=0,i=0,o=0,a=0;if(e&&e.length){for(let u=0,l=e.length;u<l;u++){let f=e[u].times;t+=f.user,n+=f.sys,s+=f.nice,i+=f.irq,o+=f.idle}let c=o+i+s+n+t;a=(c-o)/c*100}r(a)})})}function a0e(r){return new Promise(e=>{process.nextTick(()=>{o0e().then(t=>{r&&r(t),e(t)})})})}Fs.fullLoad=a0e});var mH=C(M1=>{"use strict";var xi=W("os"),bf=W("child_process").exec,ag=W("child_process").execSync,ge=Ht(),c0e=W("fs"),Vs=process.platform,cH=Vs==="linux"||Vs==="android",uH=Vs==="darwin",lH=Vs==="win32",fH=Vs==="freebsd",pH=Vs==="openbsd",dH=Vs==="netbsd",hH=Vs==="sunos",aH={"00CE":"Samsung Electronics Inc","014F":"Transcend Information Inc.","017A":"Apacer Technology Inc.","0198":"HyperX","029E":"Corsair","02FE":"Elpida","04CB":"A-DATA","04CD":"G.Skill International Enterprise","059B":"Crucial",1315:"Crucial","2C00":"Micron Technology Inc.",5105:"Qimonda AG i. In.","802C":"Micron Technology Inc.","80AD":"Hynix Semiconductor Inc.","80CE":"Samsung Electronics Inc.",8551:"Qimonda AG i. In.","859B":"Crucial",AD00:"Hynix Semiconductor Inc.",CE00:"Samsung Electronics Inc.",SAMSUNG:"Samsung Electronics Inc.",HYNIX:"Hynix Semiconductor Inc.","G-SKILL":"G-Skill International Enterprise","G.SKILL":"G-Skill International Enterprise",TRANSCEND:"Transcend Information",APACER:"Apacer Technology Inc",MICRON:"Micron Technology Inc.",QIMONDA:"Qimonda AG i. In."};function u0e(r){return new Promise(e=>{process.nextTick(()=>{let t={total:xi.totalmem(),free:xi.freemem(),used:xi.totalmem()-xi.freemem(),active:xi.totalmem()-xi.freemem(),available:xi.freemem(),buffers:0,cached:0,slab:0,buffcache:0,reclaimable:0,swaptotal:0,swapused:0,swapfree:0,writeback:null,dirty:null};if(cH)try{c0e.readFile("/proc/meminfo",function(n,s){if(!n){let i=s.toString().split(`
326
326
  `);t.total=parseInt(ge.getValue(i,"memtotal"),10),t.total=t.total?t.total*1024:xi.totalmem(),t.free=parseInt(ge.getValue(i,"memfree"),10),t.free=t.free?t.free*1024:xi.freemem(),t.used=t.total-t.free,t.buffers=parseInt(ge.getValue(i,"buffers"),10),t.buffers=t.buffers?t.buffers*1024:0,t.cached=parseInt(ge.getValue(i,"cached"),10),t.cached=t.cached?t.cached*1024:0,t.slab=parseInt(ge.getValue(i,"slab"),10),t.slab=t.slab?t.slab*1024:0,t.buffcache=t.buffers+t.cached+t.slab;let o=parseInt(ge.getValue(i,"memavailable"),10);t.available=o?o*1024:t.free+t.buffcache,t.active=t.total-t.available,t.swaptotal=parseInt(ge.getValue(i,"swaptotal"),10),t.swaptotal=t.swaptotal?t.swaptotal*1024:0,t.swapfree=parseInt(ge.getValue(i,"swapfree"),10),t.swapfree=t.swapfree?t.swapfree*1024:0,t.swapused=t.swaptotal-t.swapfree,t.writeback=parseInt(ge.getValue(i,"writeback"),10),t.writeback=t.writeback?t.writeback*1024:0,t.dirty=parseInt(ge.getValue(i,"dirty"),10),t.dirty=t.dirty?t.dirty*1024:0,t.reclaimable=parseInt(ge.getValue(i,"sreclaimable"),10),t.reclaimable=t.reclaimable?t.reclaimable*1024:0}r&&r(t),e(t)})}catch{r&&r(t),e(t)}if(fH||pH||dH)try{bf("/sbin/sysctl hw.realmem hw.physmem vm.stats.vm.v_page_count vm.stats.vm.v_wire_count vm.stats.vm.v_active_count vm.stats.vm.v_inactive_count vm.stats.vm.v_cache_count vm.stats.vm.v_free_count vm.stats.vm.v_page_size",function(n,s){if(!n){let i=s.toString().split(`
327
327
  `),o=parseInt(ge.getValue(i,"vm.stats.vm.v_page_size"),10),a=parseInt(ge.getValue(i,"vm.stats.vm.v_inactive_count"),10)*o,c=parseInt(ge.getValue(i,"vm.stats.vm.v_cache_count"),10)*o;t.total=parseInt(ge.getValue(i,"hw.realmem"),10),isNaN(t.total)&&(t.total=parseInt(ge.getValue(i,"hw.physmem"),10)),t.free=parseInt(ge.getValue(i,"vm.stats.vm.v_free_count"),10)*o,t.buffcache=a+c,t.available=t.buffcache+t.free,t.active=t.total-t.free-t.buffcache,t.swaptotal=0,t.swapfree=0,t.swapused=0}r&&r(t),e(t)})}catch{r&&r(t),e(t)}if(hH&&(r&&r(t),e(t)),uH){let n=4096;try{n=ge.toInt(ag("sysctl -n vm.pagesize").toString())||n}catch{ge.noop()}try{bf('vm_stat 2>/dev/null | egrep "Pages active|Pages inactive"',function(s,i){if(!s){let o=i.toString().split(`
328
328
  `);t.active=(parseInt(ge.getValue(o,"Pages active"),10)||0)*n,t.reclaimable=(parseInt(ge.getValue(o,"Pages inactive"),10)||0)*n,t.buffcache=t.used-t.active,t.available=t.free+t.buffcache}bf("sysctl -n vm.swapusage 2>/dev/null",function(o,a){if(!o){let c=a.toString().split(`
@@ -341,20 +341,20 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,fu
341
341
  `);t.cycleCount=parseInt("0"+Ye.getValue(i,"cyclecount","="),10),t.voltage=parseInt("0"+Ye.getValue(i,"voltage","="),10)/1e3,t.capacityUnit=t.voltage?"mWh":"mAh",t.maxCapacity=Math.round(parseInt("0"+Ye.getValue(i,"applerawmaxcapacity","="),10)*(t.voltage||1)),t.currentCapacity=Math.round(parseInt("0"+Ye.getValue(i,"applerawcurrentcapacity","="),10)*(t.voltage||1)),t.designedCapacity=Math.round(parseInt("0"+Ye.getValue(i,"DesignCapacity","="),10)*(t.voltage||1)),t.manufacturer="Apple",t.serial=Ye.getValue(i,"BatterySerialNumber","=")||Ye.getValue(i,"Serial","="),t.model=Ye.getValue(i,"DeviceName","=");let o=null,c=Ye.getValue(i,"internal","Battery").split(";");if(c&&c[0]){let u=c[0].split(" ");u&&u[1]&&(o=parseFloat(u[1].trim().replace(/%/g,"")))}c&&c[1]?(t.isCharging=c[1].trim()==="charging",t.acConnected=c[1].trim()!=="discharging"):(t.isCharging=Ye.getValue(i,"ischarging","=").toLowerCase()==="yes",t.acConnected=t.isCharging),t.maxCapacity&&t.currentCapacity&&(t.hasBattery=!0,t.type="Li-ion",t.percent=o!==null?o:Math.round(100*t.currentCapacity/t.maxCapacity),t.isCharging||(t.timeRemaining=parseInt("0"+Ye.getValue(i,"TimeRemaining","="),10)))}r&&r(t),e(t)}),E0e&&(r&&r(t),e(t)),d0e)try{let n=[];n.push(Ye.powerShell("Get-CimInstance Win32_Battery | select BatteryStatus, DesignCapacity, DesignVoltage, EstimatedChargeRemaining, DeviceID | fl")),n.push(Ye.powerShell("(Get-WmiObject -Class BatteryStaticData -Namespace ROOT/WMI).DesignedCapacity")),n.push(Ye.powerShell("(Get-CimInstance -Class BatteryFullChargedCapacity -Namespace ROOT/WMI).FullChargedCapacity")),Ye.promiseAll(n).then(s=>{if(s){let i=s.results[0].split(/\n\s*\n/),o=[],a=l=>/\S/.test(l);for(let l=0;l<i.length;l++)a(i[l])&&(!o.length||!a(i[l-1]))&&o.push([]),a(i[l])&&o[o.length-1].push(i[l]);let c=s.results[1].split(`\r
342
342
  `).filter(l=>l),u=s.results[2].split(`\r
343
343
  `).filter(l=>l);if(o.length){let l=!1,f=[];for(let p=0;p<o.length;p++){let d=o[p][0].split(`\r
344
- `),m=c&&c.length>=p+1&&c[p]?Ye.toInt(c[p]):0,g=u&&u.length>=p+1&&u[p]?Ye.toInt(u[p]):0,h=S0e(d,m,g);!l&&h.status>0&&h.status!==10?(t.hasBattery=h.hasBattery,t.maxCapacity=h.maxCapacity,t.designedCapacity=h.designedCapacity,t.voltage=h.voltage,t.capacityUnit=h.capacityUnit,t.percent=h.percent,t.currentCapacity=h.currentCapacity,t.isCharging=h.isCharging,t.acConnected=h.acConnected,t.model=h.model,l=!0):h.status!==-1&&f.push({hasBattery:h.hasBattery,maxCapacity:h.maxCapacity,designedCapacity:h.designedCapacity,voltage:h.voltage,capacityUnit:h.capacityUnit,percent:h.percent,currentCapacity:h.currentCapacity,isCharging:h.isCharging,timeRemaining:null,acConnected:h.acConnected,model:h.model,type:"",manufacturer:"",serial:""})}!l&&f.length&&(t=f[0],f.shift()),f.length&&(t.additionalBatteries=f)}}r&&r(t),e(t)})}catch{r&&r(t),e(t)}})})}});var OH=C(AH=>{"use strict";var cg=W("fs"),Su=W("child_process").exec,N1=W("child_process").execSync,_e=Ht(),ks=process.platform,If="",ug=ks==="linux"||ks==="android",_0e=ks==="darwin",_H=ks==="win32",T0e=ks==="freebsd",y0e=ks==="openbsd",A0e=ks==="netbsd",O0e=ks==="sunos",Pf=0,wf=0,lg=0,fg=0,TH={"-2":"UNINITIALIZED","-1":"OTHER",0:"HD15",1:"SVIDEO",2:"Composite video",3:"Component video",4:"DVI",5:"HDMI",6:"LVDS",8:"D_JPN",9:"SDI",10:"DP",11:"DP embedded",12:"UDI",13:"UDI embedded",14:"SDTVDONGLE",15:"MIRACAST","2147483648":"INTERNAL"};function yH(r){let e=[{pattern:"^LG.+",manufacturer:"LG"},{pattern:"^BENQ.+",manufacturer:"BenQ"},{pattern:"^ASUS.+",manufacturer:"Asus"},{pattern:"^DELL.+",manufacturer:"Dell"},{pattern:"^SAMSUNG.+",manufacturer:"Samsung"},{pattern:"^VIEWSON.+",manufacturer:"ViewSonic"},{pattern:"^SONY.+",manufacturer:"Sony"},{pattern:"^ACER.+",manufacturer:"Acer"},{pattern:"^AOC.+",manufacturer:"AOC Monitors"},{pattern:"^HP.+",manufacturer:"HP"},{pattern:"^EIZO.?",manufacturer:"Eizo"},{pattern:"^PHILIPS.?",manufacturer:"Philips"},{pattern:"^IIYAMA.?",manufacturer:"Iiyama"},{pattern:"^SHARP.?",manufacturer:"Sharp"},{pattern:"^NEC.?",manufacturer:"NEC"},{pattern:"^LENOVO.?",manufacturer:"Lenovo"},{pattern:"COMPAQ.?",manufacturer:"Compaq"},{pattern:"APPLE.?",manufacturer:"Apple"},{pattern:"INTEL.?",manufacturer:"Intel"},{pattern:"AMD.?",manufacturer:"AMD"},{pattern:"NVIDIA.?",manufacturer:"NVDIA"}],t="";return r&&(r=r.toUpperCase(),e.forEach(n=>{RegExp(n.pattern).test(r)&&(t=n.manufacturer)})),t}function C0e(r){return{610:"Apple","1e6d":"LG","10ac":"DELL","4dd9":"Sony","38a3":"NEC"}[r]||""}function v0e(r){let e="";return r=(r||"").toLowerCase(),r.indexOf("apple")>=0?e="0x05ac":r.indexOf("nvidia")>=0?e="0x10de":r.indexOf("intel")>=0?e="0x8086":(r.indexOf("ati")>=0||r.indexOf("amd")>=0)&&(e="0x1002"),e}function D0e(r){return{spdisplays_mtlgpufamilymac1:"mac1",spdisplays_mtlgpufamilymac2:"mac2",spdisplays_mtlgpufamilyapple1:"apple1",spdisplays_mtlgpufamilyapple2:"apple2",spdisplays_mtlgpufamilyapple3:"apple3",spdisplays_mtlgpufamilyapple4:"apple4",spdisplays_mtlgpufamilyapple5:"apple5",spdisplays_mtlgpufamilyapple6:"apple6",spdisplays_mtlgpufamilyapple7:"apple7",spdisplays_metalfeaturesetfamily11:"family1_v1",spdisplays_metalfeaturesetfamily12:"family1_v2",spdisplays_metalfeaturesetfamily13:"family1_v3",spdisplays_metalfeaturesetfamily14:"family1_v4",spdisplays_metalfeaturesetfamily21:"family2_v1"}[r]||""}function x0e(r){function e(p){let d={controllers:[],displays:[]};try{return p.forEach(function(m){let g=(m.sppci_bus||"").indexOf("builtin")>-1?"Built-In":(m.sppci_bus||"").indexOf("pcie")>-1?"PCIe":"",h=(parseInt(m.spdisplays_vram||"",10)||0)*((m.spdisplays_vram||"").indexOf("GB")>-1?1024:1),E=(parseInt(m.spdisplays_vram_shared||"",10)||0)*((m.spdisplays_vram_shared||"").indexOf("GB")>-1?1024:1),_=D0e(m.spdisplays_metal||m.spdisplays_metalfamily||"");d.controllers.push({vendor:yH(m.spdisplays_vendor||"")||m.spdisplays_vendor||"",model:m.sppci_model||"",bus:g,vramDynamic:g==="Built-In",vram:h||E||null,deviceId:m["spdisplays_device-id"]||"",vendorId:m["spdisplays_vendor-id"]||v0e((m.spdisplays_vendor||"")+(m.sppci_model||"")),external:m.sppci_device_type==="spdisplays_egpu",cores:m.sppci_cores||null,metalVersion:_}),m.spdisplays_ndrvs&&m.spdisplays_ndrvs.length&&m.spdisplays_ndrvs.forEach(function(S){let y=S.spdisplays_connection_type||"",T=(S._spdisplays_resolution||"").split("@"),I=T[0].split("x"),v=(S._spdisplays_pixels||"").split("x"),x=S.spdisplays_depth||"",A=S["_spdisplays_display-serial-number"]||S["_spdisplays_display-serial-number2"]||null;d.displays.push({vendor:C0e(S["_spdisplays_display-vendor-id"]||"")||yH(S._name||""),vendorId:S["_spdisplays_display-vendor-id"]||"",model:S._name||"",productionYear:S["_spdisplays_display-year"]||null,serial:A!=="0"?A:null,displayId:S._spdisplays_displayID||null,main:S.spdisplays_main?S.spdisplays_main==="spdisplays_yes":!1,builtin:(S.spdisplays_display_type||"").indexOf("built-in")>-1,connection:y.indexOf("_internal")>-1?"Internal":y.indexOf("_displayport")>-1?"Display Port":y.indexOf("_hdmi")>-1?"HDMI":null,sizeX:null,sizeY:null,pixelDepth:x==="CGSThirtyBitColor"?30:x==="CGSThirtytwoBitColor"?32:x==="CGSTwentyfourBitColor"?24:null,resolutionX:v.length>1?parseInt(v[0],10):null,resolutionY:v.length>1?parseInt(v[1],10):null,currentResX:I.length>1?parseInt(I[0],10):null,currentResY:I.length>1?parseInt(I[1],10):null,positionX:0,positionY:0,currentRefreshRate:T.length>1?parseInt(T[1],10):null})})}),d}catch{return d}}function t(p){let d=[],m={vendor:"",subVendor:"",model:"",bus:"",busAddress:"",vram:null,vramDynamic:!1,pciID:""},g=!1,h=[];try{h=N1('export LC_ALL=C; dmidecode -t 9 2>/dev/null; unset LC_ALL | grep "Bus Address: "',_e.execOptsLinux).toString().split(`
345
- `);for(let _=0;_<h.length;_++)h[_]=h[_].replace("Bus Address:","").replace("0000:","").trim();h=h.filter(function(_){return _!=null&&_})}catch{_e.noop()}let E=1;return p.forEach(_=>{let S="";if(E<p.length&&p[E]&&(S=p[E],S.indexOf(":")>0&&(S=S.split(":")[1])),_.trim()!==""){if(_[0]!==" "&&_[0]!==" "){let y=h.indexOf(_.split(" ")[0])>=0,T=_.toLowerCase().indexOf(" vga "),I=_.toLowerCase().indexOf("3d controller");if(T!==-1||I!==-1){I!==-1&&T===-1&&(T=I),(m.vendor||m.model||m.bus||m.vram!==null||m.vramDynamic)&&(d.push(m),m={vendor:"",model:"",bus:"",busAddress:"",vram:null,vramDynamic:!1});let v=_.split(" ")[0];/[\da-fA-F]{2}:[\da-fA-F]{2}\.[\da-fA-F]/.test(v)&&(m.busAddress=v),g=!0;let x=_.search(/\[[0-9a-f]{4}:[0-9a-f]{4}]|$/),A=_.substr(T,x-T).split(":");if(m.busAddress=_.substr(0,T).trim(),A.length>1&&(A[1]=A[1].trim(),A[1].toLowerCase().indexOf("corporation")>=0?(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf("corporation")+11).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf("corporation")+11,200).split("(")[0].trim(),m.bus=h.length>0&&y?"PCIe":"Onboard",m.vram=null,m.vramDynamic=!1):A[1].toLowerCase().indexOf(" inc.")>=0?((A[1].match(/]/g)||[]).length>1?(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf("]")+1).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf("]")+1,200).trim().split("(")[0].trim()):(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf(" inc.")+5).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf(" inc.")+5,200).trim().split("(")[0].trim()),m.bus=h.length>0&&y?"PCIe":"Onboard",m.vram=null,m.vramDynamic=!1):A[1].toLowerCase().indexOf(" ltd.")>=0&&((A[1].match(/]/g)||[]).length>1?(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf("]")+1).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf("]")+1,200).trim().split("(")[0].trim()):(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf(" ltd.")+5).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf(" ltd.")+5,200).trim().split("(")[0].trim())),m.model&&S.indexOf(m.model)!==-1)){let D=S.split(m.model)[0].trim();D&&(m.subVendor=D)}}else g=!1}if(g){let y=_.split(":");if(y.length>1&&y[0].replace(/ +/g,"").toLowerCase().indexOf("devicename")!==-1&&y[1].toLowerCase().indexOf("onboard")!==-1&&(m.bus="Onboard"),y.length>1&&y[0].replace(/ +/g,"").toLowerCase().indexOf("region")!==-1&&y[1].toLowerCase().indexOf("memory")!==-1){let T=y[1].split("=");T.length>1&&(m.vram=parseInt(T[1]))}}}E++}),(m.vendor||m.model||m.bus||m.busAddress||m.vram!==null||m.vramDynamic)&&d.push(m),d}function n(p,d){let m=/\[([^\]]+)\]\s+(\w+)\s+(.*)/,g=d.reduce((h,E)=>{let _=m.exec(E.trim());return _&&(h[_[1]]||(h[_[1]]={}),h[_[1]][_[2]]=_[3]),h},{});for(let h in g){let E=g[h];if(E.CL_DEVICE_TYPE==="CL_DEVICE_TYPE_GPU"){let _;if(E.CL_DEVICE_TOPOLOGY_AMD){let S=E.CL_DEVICE_TOPOLOGY_AMD.match(/[a-zA-Z0-9]+:\d+\.\d+/);S&&(_=S[0])}else if(E.CL_DEVICE_PCI_BUS_ID_NV&&E.CL_DEVICE_PCI_SLOT_ID_NV){let S=parseInt(E.CL_DEVICE_PCI_BUS_ID_NV),y=parseInt(E.CL_DEVICE_PCI_SLOT_ID_NV);if(!isNaN(S)&&!isNaN(y)){let T=S&255,I=y>>3&255,v=y&7;_=`${T.toString().padStart(2,"0")}:${I.toString().padStart(2,"0")}.${v}`}}if(_){let S=p.find(T=>T.busAddress===_);S||(S={vendor:"",model:"",bus:"",busAddress:_,vram:null,vramDynamic:!1},p.push(S)),S.vendor=E.CL_DEVICE_VENDOR,E.CL_DEVICE_BOARD_NAME_AMD?S.model=E.CL_DEVICE_BOARD_NAME_AMD:S.model=E.CL_DEVICE_NAME;let y=parseInt(E.CL_DEVICE_GLOBAL_MEM_SIZE);isNaN(y)||(S.vram=Math.round(y/1024/1024))}}}return p}function s(){if(If)return If;if(_H)try{let p=_e.WINDIR+"\\System32\\DriverStore\\FileRepository",m=cg.readdirSync(p).filter(g=>cg.readdirSync([p,g].join("/")).includes("nvidia-smi.exe")).reduce((g,h)=>{let E=cg.statSync([p,g,"nvidia-smi.exe"].join("/")),_=cg.statSync([p,h,"nvidia-smi.exe"].join("/"));return E.ctimeMs>_.ctimeMs?g:h});m&&(If=[p,m,"nvidia-smi.exe"].join("/"))}catch{_e.noop()}else ug&&(If="nvidia-smi");return If}function i(p){let d=s();if(p=p||_e.execOptsWin,d){let g=d+" "+"--query-gpu=driver_version,pci.sub_device_id,name,pci.bus_id,fan.speed,memory.total,memory.used,memory.free,utilization.gpu,utilization.memory,temperature.gpu,temperature.memory,power.draw,power.limit,clocks.gr,clocks.mem --format=csv,noheader,nounits"+(ug?" 2>/dev/null":"");ug&&(p.stdio=["pipe","pipe","ignore"]);try{let h=_e.sanitizeShellString(g);return N1(h,p).toString()}catch{_e.noop()}}return""}function o(){function p(h){return[null,void 0].includes(h)?h:parseFloat(h)}let d=i();if(!d)return[];let g=d.split(`
346
- `).filter(Boolean).map(h=>{let E=h.split(", ").map(_=>_.includes("N/A")?void 0:_);return E.length===16?{driverVersion:E[0],subDeviceId:E[1],name:E[2],pciBus:E[3],fanSpeed:p(E[4]),memoryTotal:p(E[5]),memoryUsed:p(E[6]),memoryFree:p(E[7]),utilizationGpu:p(E[8]),utilizationMemory:p(E[9]),temperatureGpu:p(E[10]),temperatureMemory:p(E[11]),powerDraw:p(E[12]),powerLimit:p(E[13]),clockCore:p(E[14]),clockMemory:p(E[15])}:{}});return g=g.filter(h=>"pciBus"in h),g}function a(p,d){return d.driverVersion&&(p.driverVersion=d.driverVersion),d.subDeviceId&&(p.subDeviceId=d.subDeviceId),d.name&&(p.name=d.name),d.pciBus&&(p.pciBus=d.pciBus),d.fanSpeed&&(p.fanSpeed=d.fanSpeed),d.memoryTotal&&(p.memoryTotal=d.memoryTotal,p.vram=d.memoryTotal,p.vramDynamic=!1),d.memoryUsed&&(p.memoryUsed=d.memoryUsed),d.memoryFree&&(p.memoryFree=d.memoryFree),d.utilizationGpu&&(p.utilizationGpu=d.utilizationGpu),d.utilizationMemory&&(p.utilizationMemory=d.utilizationMemory),d.temperatureGpu&&(p.temperatureGpu=d.temperatureGpu),d.temperatureMemory&&(p.temperatureMemory=d.temperatureMemory),d.powerDraw&&(p.powerDraw=d.powerDraw),d.powerLimit&&(p.powerLimit=d.powerLimit),d.clockCore&&(p.clockCore=d.clockCore),d.clockMemory&&(p.clockMemory=d.clockMemory),p}function c(p){let d={vendor:"",model:"",deviceName:"",main:!1,builtin:!1,connection:"",sizeX:null,sizeY:null,pixelDepth:null,resolutionX:null,resolutionY:null,currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null},m=108;if(p.substr(m,6)==="000000"&&(m+=36),p.substr(m,6)==="000000"&&(m+=36),p.substr(m,6)==="000000"&&(m+=36),p.substr(m,6)==="000000"&&(m+=36),d.resolutionX=parseInt("0x0"+p.substr(m+8,1)+p.substr(m+4,2)),d.resolutionY=parseInt("0x0"+p.substr(m+14,1)+p.substr(m+10,2)),d.sizeX=parseInt("0x0"+p.substr(m+28,1)+p.substr(m+24,2)),d.sizeY=parseInt("0x0"+p.substr(m+29,1)+p.substr(m+26,2)),m=p.indexOf("000000fc00"),m>=0){let g=p.substr(m+10,26);g.indexOf("0a")!==-1&&(g=g.substr(0,g.indexOf("0a")));try{g.length>2&&(d.model=g.match(/.{1,2}/g).map(function(h){return String.fromCharCode(parseInt(h,16))}).join(""))}catch{_e.noop()}}else d.model="";return d}function u(p,d){let m=[],g={vendor:"",model:"",deviceName:"",main:!1,builtin:!1,connection:"",sizeX:null,sizeY:null,pixelDepth:null,resolutionX:null,resolutionY:null,currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null},h=!1,E=!1,_="",S=0;for(let y=1;y<p.length;y++)if(p[y].trim()!==""){if(p[y][0]!==" "&&p[y][0]!==" "&&p[y].toLowerCase().indexOf(" connected ")!==-1){(g.model||g.main||g.builtin||g.connection||g.sizeX!==null||g.pixelDepth!==null||g.resolutionX!==null)&&(m.push(g),g={vendor:"",model:"",main:!1,builtin:!1,connection:"",sizeX:null,sizeY:null,pixelDepth:null,resolutionX:null,resolutionY:null,currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null});let T=p[y].split(" ");g.connection=T[0],g.main=p[y].toLowerCase().indexOf(" primary ")>=0,g.builtin=T[0].toLowerCase().indexOf("edp")>=0}if(h)if(p[y].search(/\S|$/)>S)_+=p[y].toLowerCase().trim();else{let T=c(_);g.vendor=T.vendor,g.model=T.model,g.resolutionX=T.resolutionX,g.resolutionY=T.resolutionY,g.sizeX=T.sizeX,g.sizeY=T.sizeY,g.pixelDepth=d,h=!1}if(p[y].toLowerCase().indexOf("edid:")>=0&&(h=!0,S=p[y].search(/\S|$/)),p[y].toLowerCase().indexOf("*current")>=0){let T=p[y].split("(");if(T&&T.length>1&&T[0].indexOf("x")>=0){let I=T[0].trim().split("x");g.currentResX=_e.toInt(I[0]),g.currentResY=_e.toInt(I[1])}E=!0}if(E&&p[y].toLowerCase().indexOf("clock")>=0&&p[y].toLowerCase().indexOf("hz")>=0&&p[y].toLowerCase().indexOf("v: height")>=0){let T=p[y].split("clock");T&&T.length>1&&T[1].toLowerCase().indexOf("hz")>=0&&(g.currentRefreshRate=_e.toInt(T[1])),E=!1}}return(g.model||g.main||g.builtin||g.connection||g.sizeX!==null||g.pixelDepth!==null||g.resolutionX!==null)&&m.push(g),m}return new Promise(p=>{process.nextTick(()=>{let d={controllers:[],displays:[]};if(_0e&&Su("system_profiler -xml -detailLevel full SPDisplaysDataType",function(g,h){if(!g){try{let E=h.toString();d=e(_e.plistParser(E)[0]._items)}catch{_e.noop()}try{h=N1('defaults read /Library/Preferences/com.apple.windowserver.plist 2>/dev/null;defaults read /Library/Preferences/com.apple.windowserver.displays.plist 2>/dev/null; echo ""',{maxBuffer:1024*2e4});let E=(h||"").toString(),_=_e.plistReader(E);if(_.DisplayAnyUserSets&&_.DisplayAnyUserSets.Configs&&_.DisplayAnyUserSets.Configs[0]&&_.DisplayAnyUserSets.Configs[0].DisplayConfig){let S=_.DisplayAnyUserSets.Configs[0].DisplayConfig,y=0;S.forEach(T=>{T.CurrentInfo&&T.CurrentInfo.OriginX!==void 0&&d.displays&&d.displays[y]&&(d.displays[y].positionX=T.CurrentInfo.OriginX),T.CurrentInfo&&T.CurrentInfo.OriginY!==void 0&&d.displays&&d.displays[y]&&(d.displays[y].positionY=T.CurrentInfo.OriginY),y++})}if(_.DisplayAnyUserSets&&_.DisplayAnyUserSets.length>0&&_.DisplayAnyUserSets[0].length>0&&_.DisplayAnyUserSets[0][0].DisplayID){let S=_.DisplayAnyUserSets[0],y=0;S.forEach(T=>{"OriginX"in T&&d.displays&&d.displays[y]&&(d.displays[y].positionX=T.OriginX),"OriginY"in T&&d.displays&&d.displays[y]&&(d.displays[y].positionY=T.OriginY),T.Mode&&T.Mode.BitsPerPixel!==void 0&&d.displays&&d.displays[y]&&(d.displays[y].pixelDepth=T.Mode.BitsPerPixel),y++})}}catch{_e.noop()}}r&&r(d),p(d)}),ug&&(_e.isRaspberry()&&Su(`fbset -s 2> /dev/null | grep 'mode "' ; vcgencmd get_mem gpu 2> /dev/null; tvservice -s 2> /dev/null; tvservice -n 2> /dev/null;`,function(h,E){let _=E.toString().split(`
344
+ `),m=c&&c.length>=p+1&&c[p]?Ye.toInt(c[p]):0,g=u&&u.length>=p+1&&u[p]?Ye.toInt(u[p]):0,h=S0e(d,m,g);!l&&h.status>0&&h.status!==10?(t.hasBattery=h.hasBattery,t.maxCapacity=h.maxCapacity,t.designedCapacity=h.designedCapacity,t.voltage=h.voltage,t.capacityUnit=h.capacityUnit,t.percent=h.percent,t.currentCapacity=h.currentCapacity,t.isCharging=h.isCharging,t.acConnected=h.acConnected,t.model=h.model,l=!0):h.status!==-1&&f.push({hasBattery:h.hasBattery,maxCapacity:h.maxCapacity,designedCapacity:h.designedCapacity,voltage:h.voltage,capacityUnit:h.capacityUnit,percent:h.percent,currentCapacity:h.currentCapacity,isCharging:h.isCharging,timeRemaining:null,acConnected:h.acConnected,model:h.model,type:"",manufacturer:"",serial:""})}!l&&f.length&&(t=f[0],f.shift()),f.length&&(t.additionalBatteries=f)}}r&&r(t),e(t)})}catch{r&&r(t),e(t)}})})}});var OH=C(AH=>{"use strict";var cg=W("fs"),Su=W("child_process").exec,N1=W("child_process").execSync,_e=Ht(),ks=process.platform,If="",ug=ks==="linux"||ks==="android",_0e=ks==="darwin",_H=ks==="win32",T0e=ks==="freebsd",y0e=ks==="openbsd",A0e=ks==="netbsd",O0e=ks==="sunos",Pf=0,wf=0,lg=0,fg=0,TH={"-2":"UNINITIALIZED","-1":"OTHER",0:"HD15",1:"SVIDEO",2:"Composite video",3:"Component video",4:"DVI",5:"HDMI",6:"LVDS",8:"D_JPN",9:"SDI",10:"DP",11:"DP embedded",12:"UDI",13:"UDI embedded",14:"SDTVDONGLE",15:"MIRACAST","2147483648":"INTERNAL"};function yH(r){let e=[{pattern:"^LG.+",manufacturer:"LG"},{pattern:"^BENQ.+",manufacturer:"BenQ"},{pattern:"^ASUS.+",manufacturer:"Asus"},{pattern:"^DELL.+",manufacturer:"Dell"},{pattern:"^SAMSUNG.+",manufacturer:"Samsung"},{pattern:"^VIEWSON.+",manufacturer:"ViewSonic"},{pattern:"^SONY.+",manufacturer:"Sony"},{pattern:"^ACER.+",manufacturer:"Acer"},{pattern:"^AOC.+",manufacturer:"AOC Monitors"},{pattern:"^HP.+",manufacturer:"HP"},{pattern:"^EIZO.?",manufacturer:"Eizo"},{pattern:"^PHILIPS.?",manufacturer:"Philips"},{pattern:"^IIYAMA.?",manufacturer:"Iiyama"},{pattern:"^SHARP.?",manufacturer:"Sharp"},{pattern:"^NEC.?",manufacturer:"NEC"},{pattern:"^LENOVO.?",manufacturer:"Lenovo"},{pattern:"COMPAQ.?",manufacturer:"Compaq"},{pattern:"APPLE.?",manufacturer:"Apple"},{pattern:"INTEL.?",manufacturer:"Intel"},{pattern:"AMD.?",manufacturer:"AMD"},{pattern:"NVIDIA.?",manufacturer:"NVDIA"}],t="";return r&&(r=r.toUpperCase(),e.forEach(n=>{RegExp(n.pattern).test(r)&&(t=n.manufacturer)})),t}function C0e(r){return{610:"Apple","1e6d":"LG","10ac":"DELL","4dd9":"Sony","38a3":"NEC"}[r]||""}function v0e(r){let e="";return r=(r||"").toLowerCase(),r.indexOf("apple")>=0?e="0x05ac":r.indexOf("nvidia")>=0?e="0x10de":r.indexOf("intel")>=0?e="0x8086":(r.indexOf("ati")>=0||r.indexOf("amd")>=0)&&(e="0x1002"),e}function D0e(r){return{spdisplays_mtlgpufamilymac1:"mac1",spdisplays_mtlgpufamilymac2:"mac2",spdisplays_mtlgpufamilyapple1:"apple1",spdisplays_mtlgpufamilyapple2:"apple2",spdisplays_mtlgpufamilyapple3:"apple3",spdisplays_mtlgpufamilyapple4:"apple4",spdisplays_mtlgpufamilyapple5:"apple5",spdisplays_mtlgpufamilyapple6:"apple6",spdisplays_mtlgpufamilyapple7:"apple7",spdisplays_metalfeaturesetfamily11:"family1_v1",spdisplays_metalfeaturesetfamily12:"family1_v2",spdisplays_metalfeaturesetfamily13:"family1_v3",spdisplays_metalfeaturesetfamily14:"family1_v4",spdisplays_metalfeaturesetfamily21:"family2_v1"}[r]||""}function x0e(r){function e(p){let d={controllers:[],displays:[]};try{return p.forEach(function(m){let g=(m.sppci_bus||"").indexOf("builtin")>-1?"Built-In":(m.sppci_bus||"").indexOf("pcie")>-1?"PCIe":"",h=(parseInt(m.spdisplays_vram||"",10)||0)*((m.spdisplays_vram||"").indexOf("GB")>-1?1024:1),E=(parseInt(m.spdisplays_vram_shared||"",10)||0)*((m.spdisplays_vram_shared||"").indexOf("GB")>-1?1024:1),_=D0e(m.spdisplays_metal||m.spdisplays_metalfamily||"");d.controllers.push({vendor:yH(m.spdisplays_vendor||"")||m.spdisplays_vendor||"",model:m.sppci_model||"",bus:g,vramDynamic:g==="Built-In",vram:h||E||null,deviceId:m["spdisplays_device-id"]||"",vendorId:m["spdisplays_vendor-id"]||v0e((m.spdisplays_vendor||"")+(m.sppci_model||"")),external:m.sppci_device_type==="spdisplays_egpu",cores:m.sppci_cores||null,metalVersion:_}),m.spdisplays_ndrvs&&m.spdisplays_ndrvs.length&&m.spdisplays_ndrvs.forEach(function(S){let y=S.spdisplays_connection_type||"",T=(S._spdisplays_resolution||"").split("@"),b=T[0].split("x"),v=(S._spdisplays_pixels||"").split("x"),x=S.spdisplays_depth||"",A=S["_spdisplays_display-serial-number"]||S["_spdisplays_display-serial-number2"]||null;d.displays.push({vendor:C0e(S["_spdisplays_display-vendor-id"]||"")||yH(S._name||""),vendorId:S["_spdisplays_display-vendor-id"]||"",model:S._name||"",productionYear:S["_spdisplays_display-year"]||null,serial:A!=="0"?A:null,displayId:S._spdisplays_displayID||null,main:S.spdisplays_main?S.spdisplays_main==="spdisplays_yes":!1,builtin:(S.spdisplays_display_type||"").indexOf("built-in")>-1,connection:y.indexOf("_internal")>-1?"Internal":y.indexOf("_displayport")>-1?"Display Port":y.indexOf("_hdmi")>-1?"HDMI":null,sizeX:null,sizeY:null,pixelDepth:x==="CGSThirtyBitColor"?30:x==="CGSThirtytwoBitColor"?32:x==="CGSTwentyfourBitColor"?24:null,resolutionX:v.length>1?parseInt(v[0],10):null,resolutionY:v.length>1?parseInt(v[1],10):null,currentResX:b.length>1?parseInt(b[0],10):null,currentResY:b.length>1?parseInt(b[1],10):null,positionX:0,positionY:0,currentRefreshRate:T.length>1?parseInt(T[1],10):null})})}),d}catch{return d}}function t(p){let d=[],m={vendor:"",subVendor:"",model:"",bus:"",busAddress:"",vram:null,vramDynamic:!1,pciID:""},g=!1,h=[];try{h=N1('export LC_ALL=C; dmidecode -t 9 2>/dev/null; unset LC_ALL | grep "Bus Address: "',_e.execOptsLinux).toString().split(`
345
+ `);for(let _=0;_<h.length;_++)h[_]=h[_].replace("Bus Address:","").replace("0000:","").trim();h=h.filter(function(_){return _!=null&&_})}catch{_e.noop()}let E=1;return p.forEach(_=>{let S="";if(E<p.length&&p[E]&&(S=p[E],S.indexOf(":")>0&&(S=S.split(":")[1])),_.trim()!==""){if(_[0]!==" "&&_[0]!==" "){let y=h.indexOf(_.split(" ")[0])>=0,T=_.toLowerCase().indexOf(" vga "),b=_.toLowerCase().indexOf("3d controller");if(T!==-1||b!==-1){b!==-1&&T===-1&&(T=b),(m.vendor||m.model||m.bus||m.vram!==null||m.vramDynamic)&&(d.push(m),m={vendor:"",model:"",bus:"",busAddress:"",vram:null,vramDynamic:!1});let v=_.split(" ")[0];/[\da-fA-F]{2}:[\da-fA-F]{2}\.[\da-fA-F]/.test(v)&&(m.busAddress=v),g=!0;let x=_.search(/\[[0-9a-f]{4}:[0-9a-f]{4}]|$/),A=_.substr(T,x-T).split(":");if(m.busAddress=_.substr(0,T).trim(),A.length>1&&(A[1]=A[1].trim(),A[1].toLowerCase().indexOf("corporation")>=0?(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf("corporation")+11).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf("corporation")+11,200).split("(")[0].trim(),m.bus=h.length>0&&y?"PCIe":"Onboard",m.vram=null,m.vramDynamic=!1):A[1].toLowerCase().indexOf(" inc.")>=0?((A[1].match(/]/g)||[]).length>1?(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf("]")+1).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf("]")+1,200).trim().split("(")[0].trim()):(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf(" inc.")+5).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf(" inc.")+5,200).trim().split("(")[0].trim()),m.bus=h.length>0&&y?"PCIe":"Onboard",m.vram=null,m.vramDynamic=!1):A[1].toLowerCase().indexOf(" ltd.")>=0&&((A[1].match(/]/g)||[]).length>1?(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf("]")+1).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf("]")+1,200).trim().split("(")[0].trim()):(m.vendor=A[1].substr(0,A[1].toLowerCase().indexOf(" ltd.")+5).trim(),m.model=A[1].substr(A[1].toLowerCase().indexOf(" ltd.")+5,200).trim().split("(")[0].trim())),m.model&&S.indexOf(m.model)!==-1)){let D=S.split(m.model)[0].trim();D&&(m.subVendor=D)}}else g=!1}if(g){let y=_.split(":");if(y.length>1&&y[0].replace(/ +/g,"").toLowerCase().indexOf("devicename")!==-1&&y[1].toLowerCase().indexOf("onboard")!==-1&&(m.bus="Onboard"),y.length>1&&y[0].replace(/ +/g,"").toLowerCase().indexOf("region")!==-1&&y[1].toLowerCase().indexOf("memory")!==-1){let T=y[1].split("=");T.length>1&&(m.vram=parseInt(T[1]))}}}E++}),(m.vendor||m.model||m.bus||m.busAddress||m.vram!==null||m.vramDynamic)&&d.push(m),d}function n(p,d){let m=/\[([^\]]+)\]\s+(\w+)\s+(.*)/,g=d.reduce((h,E)=>{let _=m.exec(E.trim());return _&&(h[_[1]]||(h[_[1]]={}),h[_[1]][_[2]]=_[3]),h},{});for(let h in g){let E=g[h];if(E.CL_DEVICE_TYPE==="CL_DEVICE_TYPE_GPU"){let _;if(E.CL_DEVICE_TOPOLOGY_AMD){let S=E.CL_DEVICE_TOPOLOGY_AMD.match(/[a-zA-Z0-9]+:\d+\.\d+/);S&&(_=S[0])}else if(E.CL_DEVICE_PCI_BUS_ID_NV&&E.CL_DEVICE_PCI_SLOT_ID_NV){let S=parseInt(E.CL_DEVICE_PCI_BUS_ID_NV),y=parseInt(E.CL_DEVICE_PCI_SLOT_ID_NV);if(!isNaN(S)&&!isNaN(y)){let T=S&255,b=y>>3&255,v=y&7;_=`${T.toString().padStart(2,"0")}:${b.toString().padStart(2,"0")}.${v}`}}if(_){let S=p.find(T=>T.busAddress===_);S||(S={vendor:"",model:"",bus:"",busAddress:_,vram:null,vramDynamic:!1},p.push(S)),S.vendor=E.CL_DEVICE_VENDOR,E.CL_DEVICE_BOARD_NAME_AMD?S.model=E.CL_DEVICE_BOARD_NAME_AMD:S.model=E.CL_DEVICE_NAME;let y=parseInt(E.CL_DEVICE_GLOBAL_MEM_SIZE);isNaN(y)||(S.vram=Math.round(y/1024/1024))}}}return p}function s(){if(If)return If;if(_H)try{let p=_e.WINDIR+"\\System32\\DriverStore\\FileRepository",m=cg.readdirSync(p).filter(g=>cg.readdirSync([p,g].join("/")).includes("nvidia-smi.exe")).reduce((g,h)=>{let E=cg.statSync([p,g,"nvidia-smi.exe"].join("/")),_=cg.statSync([p,h,"nvidia-smi.exe"].join("/"));return E.ctimeMs>_.ctimeMs?g:h});m&&(If=[p,m,"nvidia-smi.exe"].join("/"))}catch{_e.noop()}else ug&&(If="nvidia-smi");return If}function i(p){let d=s();if(p=p||_e.execOptsWin,d){let g=d+" "+"--query-gpu=driver_version,pci.sub_device_id,name,pci.bus_id,fan.speed,memory.total,memory.used,memory.free,utilization.gpu,utilization.memory,temperature.gpu,temperature.memory,power.draw,power.limit,clocks.gr,clocks.mem --format=csv,noheader,nounits"+(ug?" 2>/dev/null":"");ug&&(p.stdio=["pipe","pipe","ignore"]);try{let h=_e.sanitizeShellString(g);return N1(h,p).toString()}catch{_e.noop()}}return""}function o(){function p(h){return[null,void 0].includes(h)?h:parseFloat(h)}let d=i();if(!d)return[];let g=d.split(`
346
+ `).filter(Boolean).map(h=>{let E=h.split(", ").map(_=>_.includes("N/A")?void 0:_);return E.length===16?{driverVersion:E[0],subDeviceId:E[1],name:E[2],pciBus:E[3],fanSpeed:p(E[4]),memoryTotal:p(E[5]),memoryUsed:p(E[6]),memoryFree:p(E[7]),utilizationGpu:p(E[8]),utilizationMemory:p(E[9]),temperatureGpu:p(E[10]),temperatureMemory:p(E[11]),powerDraw:p(E[12]),powerLimit:p(E[13]),clockCore:p(E[14]),clockMemory:p(E[15])}:{}});return g=g.filter(h=>"pciBus"in h),g}function a(p,d){return d.driverVersion&&(p.driverVersion=d.driverVersion),d.subDeviceId&&(p.subDeviceId=d.subDeviceId),d.name&&(p.name=d.name),d.pciBus&&(p.pciBus=d.pciBus),d.fanSpeed&&(p.fanSpeed=d.fanSpeed),d.memoryTotal&&(p.memoryTotal=d.memoryTotal,p.vram=d.memoryTotal,p.vramDynamic=!1),d.memoryUsed&&(p.memoryUsed=d.memoryUsed),d.memoryFree&&(p.memoryFree=d.memoryFree),d.utilizationGpu&&(p.utilizationGpu=d.utilizationGpu),d.utilizationMemory&&(p.utilizationMemory=d.utilizationMemory),d.temperatureGpu&&(p.temperatureGpu=d.temperatureGpu),d.temperatureMemory&&(p.temperatureMemory=d.temperatureMemory),d.powerDraw&&(p.powerDraw=d.powerDraw),d.powerLimit&&(p.powerLimit=d.powerLimit),d.clockCore&&(p.clockCore=d.clockCore),d.clockMemory&&(p.clockMemory=d.clockMemory),p}function c(p){let d={vendor:"",model:"",deviceName:"",main:!1,builtin:!1,connection:"",sizeX:null,sizeY:null,pixelDepth:null,resolutionX:null,resolutionY:null,currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null},m=108;if(p.substr(m,6)==="000000"&&(m+=36),p.substr(m,6)==="000000"&&(m+=36),p.substr(m,6)==="000000"&&(m+=36),p.substr(m,6)==="000000"&&(m+=36),d.resolutionX=parseInt("0x0"+p.substr(m+8,1)+p.substr(m+4,2)),d.resolutionY=parseInt("0x0"+p.substr(m+14,1)+p.substr(m+10,2)),d.sizeX=parseInt("0x0"+p.substr(m+28,1)+p.substr(m+24,2)),d.sizeY=parseInt("0x0"+p.substr(m+29,1)+p.substr(m+26,2)),m=p.indexOf("000000fc00"),m>=0){let g=p.substr(m+10,26);g.indexOf("0a")!==-1&&(g=g.substr(0,g.indexOf("0a")));try{g.length>2&&(d.model=g.match(/.{1,2}/g).map(function(h){return String.fromCharCode(parseInt(h,16))}).join(""))}catch{_e.noop()}}else d.model="";return d}function u(p,d){let m=[],g={vendor:"",model:"",deviceName:"",main:!1,builtin:!1,connection:"",sizeX:null,sizeY:null,pixelDepth:null,resolutionX:null,resolutionY:null,currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null},h=!1,E=!1,_="",S=0;for(let y=1;y<p.length;y++)if(p[y].trim()!==""){if(p[y][0]!==" "&&p[y][0]!==" "&&p[y].toLowerCase().indexOf(" connected ")!==-1){(g.model||g.main||g.builtin||g.connection||g.sizeX!==null||g.pixelDepth!==null||g.resolutionX!==null)&&(m.push(g),g={vendor:"",model:"",main:!1,builtin:!1,connection:"",sizeX:null,sizeY:null,pixelDepth:null,resolutionX:null,resolutionY:null,currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null});let T=p[y].split(" ");g.connection=T[0],g.main=p[y].toLowerCase().indexOf(" primary ")>=0,g.builtin=T[0].toLowerCase().indexOf("edp")>=0}if(h)if(p[y].search(/\S|$/)>S)_+=p[y].toLowerCase().trim();else{let T=c(_);g.vendor=T.vendor,g.model=T.model,g.resolutionX=T.resolutionX,g.resolutionY=T.resolutionY,g.sizeX=T.sizeX,g.sizeY=T.sizeY,g.pixelDepth=d,h=!1}if(p[y].toLowerCase().indexOf("edid:")>=0&&(h=!0,S=p[y].search(/\S|$/)),p[y].toLowerCase().indexOf("*current")>=0){let T=p[y].split("(");if(T&&T.length>1&&T[0].indexOf("x")>=0){let b=T[0].trim().split("x");g.currentResX=_e.toInt(b[0]),g.currentResY=_e.toInt(b[1])}E=!0}if(E&&p[y].toLowerCase().indexOf("clock")>=0&&p[y].toLowerCase().indexOf("hz")>=0&&p[y].toLowerCase().indexOf("v: height")>=0){let T=p[y].split("clock");T&&T.length>1&&T[1].toLowerCase().indexOf("hz")>=0&&(g.currentRefreshRate=_e.toInt(T[1])),E=!1}}return(g.model||g.main||g.builtin||g.connection||g.sizeX!==null||g.pixelDepth!==null||g.resolutionX!==null)&&m.push(g),m}return new Promise(p=>{process.nextTick(()=>{let d={controllers:[],displays:[]};if(_0e&&Su("system_profiler -xml -detailLevel full SPDisplaysDataType",function(g,h){if(!g){try{let E=h.toString();d=e(_e.plistParser(E)[0]._items)}catch{_e.noop()}try{h=N1('defaults read /Library/Preferences/com.apple.windowserver.plist 2>/dev/null;defaults read /Library/Preferences/com.apple.windowserver.displays.plist 2>/dev/null; echo ""',{maxBuffer:1024*2e4});let E=(h||"").toString(),_=_e.plistReader(E);if(_.DisplayAnyUserSets&&_.DisplayAnyUserSets.Configs&&_.DisplayAnyUserSets.Configs[0]&&_.DisplayAnyUserSets.Configs[0].DisplayConfig){let S=_.DisplayAnyUserSets.Configs[0].DisplayConfig,y=0;S.forEach(T=>{T.CurrentInfo&&T.CurrentInfo.OriginX!==void 0&&d.displays&&d.displays[y]&&(d.displays[y].positionX=T.CurrentInfo.OriginX),T.CurrentInfo&&T.CurrentInfo.OriginY!==void 0&&d.displays&&d.displays[y]&&(d.displays[y].positionY=T.CurrentInfo.OriginY),y++})}if(_.DisplayAnyUserSets&&_.DisplayAnyUserSets.length>0&&_.DisplayAnyUserSets[0].length>0&&_.DisplayAnyUserSets[0][0].DisplayID){let S=_.DisplayAnyUserSets[0],y=0;S.forEach(T=>{"OriginX"in T&&d.displays&&d.displays[y]&&(d.displays[y].positionX=T.OriginX),"OriginY"in T&&d.displays&&d.displays[y]&&(d.displays[y].positionY=T.OriginY),T.Mode&&T.Mode.BitsPerPixel!==void 0&&d.displays&&d.displays[y]&&(d.displays[y].pixelDepth=T.Mode.BitsPerPixel),y++})}}catch{_e.noop()}}r&&r(d),p(d)}),ug&&(_e.isRaspberry()&&Su(`fbset -s 2> /dev/null | grep 'mode "' ; vcgencmd get_mem gpu 2> /dev/null; tvservice -s 2> /dev/null; tvservice -n 2> /dev/null;`,function(h,E){let _=E.toString().split(`
347
347
  `);if(_.length>3&&_[0].indexOf('mode "')>=-1&&_[2].indexOf("0x12000a")>-1){let S=_[0].replace("mode","").replace(/"/g,"").trim().split("x");S.length===2&&d.displays.push({vendor:"",model:_e.getValue(_,"device_name","="),main:!0,builtin:!1,connection:"HDMI",sizeX:null,sizeY:null,pixelDepth:null,resolutionX:parseInt(S[0],10),resolutionY:parseInt(S[1],10),currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null})}_.length>=1&&E.toString().indexOf("gpu=")>=-1&&d.controllers.push({vendor:"Broadcom",model:_e.getRpiGpu(),bus:"",vram:_e.getValue(_,"gpu","=").replace("M",""),vramDynamic:!0})}),Su("lspci -vvv 2>/dev/null",function(g,h){if(!g){let _=h.toString().split(`
348
348
  `);if(d.controllers.length===0){d.controllers=t(_);let S=o();d.controllers=d.controllers.map(y=>a(y,S.find(T=>T.pciBus.toLowerCase().endsWith(y.busAddress.toLowerCase()))||{}))}}Su("clinfo --raw",function(_,S){if(!_){let T=S.toString().split(`
349
- `);d.controllers=n(d.controllers,T)}Su("xdpyinfo 2>/dev/null | grep 'depth of root window' | awk '{ print $5 }'",function(T,I){let v=0;if(!T){let A=I.toString().split(`
349
+ `);d.controllers=n(d.controllers,T)}Su("xdpyinfo 2>/dev/null | grep 'depth of root window' | awk '{ print $5 }'",function(T,b){let v=0;if(!T){let A=b.toString().split(`
350
350
  `);v=parseInt(A[0])||0}Su("xrandr --verbose 2>/dev/null",function(A,D){if(!A){let P=D.toString().split(`
351
- `);d.displays=u(P,v)}r&&r(d),p(d)})})})})),(T0e||y0e||A0e)&&(r&&r(null),p(null)),O0e&&(r&&r(null),p(null)),_H)try{let m=[];m.push(_e.powerShell("Get-CimInstance win32_VideoController | fl *")),m.push(_e.powerShell('gp "HKLM:\\SYSTEM\\ControlSet001\\Control\\Class\\{4d36e968-e325-11ce-bfc1-08002be10318}\\*" -ErrorAction SilentlyContinue | where MatchingDeviceId $null -NE | select MatchingDeviceId,HardwareInformation.qwMemorySize | fl')),m.push(_e.powerShell("Get-CimInstance win32_desktopmonitor | fl *")),m.push(_e.powerShell("Get-CimInstance -Namespace root\\wmi -ClassName WmiMonitorBasicDisplayParams | fl")),m.push(_e.powerShell("Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.Screen]::AllScreens")),m.push(_e.powerShell("Get-CimInstance -Namespace root\\wmi -ClassName WmiMonitorConnectionParams | fl")),m.push(_e.powerShell('gwmi WmiMonitorID -Namespace root\\wmi | ForEach-Object {(($_.ManufacturerName -notmatch 0 | foreach {[char]$_}) -join "") + "|" + (($_.ProductCodeID -notmatch 0 | foreach {[char]$_}) -join "") + "|" + (($_.UserFriendlyName -notmatch 0 | foreach {[char]$_}) -join "") + "|" + (($_.SerialNumberID -notmatch 0 | foreach {[char]$_}) -join "") + "|" + $_.InstanceName}'));let g=o();Promise.all(m).then(h=>{let E=h[0].replace(/\r/g,"").split(/\n\s*\n/),_=h[1].replace(/\r/g,"").split(/\n\s*\n/);d.controllers=l(E,_),d.controllers=d.controllers.map(A=>A.vendor.toLowerCase()==="nvidia"?a(A,g.find(D=>{let P=(A.subDeviceId||"").toLowerCase(),F=D.subDeviceId.split("x"),V=F.length>1?F[1].toLowerCase():F[0].toLowerCase(),H=Math.abs(P.length-V.length);if(P.length>V.length)for(let k=0;k<H;k++)V="0"+V;else if(P.length<V.length)for(let k=0;k<H;k++)P="0"+P;return P===V})||{}):A);let S=h[2].replace(/\r/g,"").split(/\n\s*\n/);S[0].trim()===""&&S.shift(),S.length&&S[S.length-1].trim()===""&&S.pop();let y=h[3].replace(/\r/g,"").split("Active ");y.shift();let T=h[4].replace(/\r/g,"").split("BitsPerPixel ");T.shift();let I=h[5].replace(/\r/g,"").split(/\n\s*\n/);I.shift();let v=h[6].replace(/\r/g,"").split(/\n/),x=[];v.forEach(A=>{let D=A.split("|");D.length===5&&x.push({vendor:D[0],code:D[1],model:D[2],serial:D[3],instanceId:D[4]})}),d.displays=f(T,y,S,I,x),d.displays.length===1&&(Pf&&(d.displays[0].resolutionX=Pf,d.displays[0].currentResX||(d.displays[0].currentResX=Pf)),wf&&(d.displays[0].resolutionY=wf,d.displays[0].currentResY===0&&(d.displays[0].currentResY=wf)),lg&&(d.displays[0].pixelDepth=lg)),d.displays=d.displays.map(A=>(fg&&!A.currentRefreshRate&&(A.currentRefreshRate=fg),A)),r&&r(d),p(d)}).catch(()=>{r&&r(d),p(d)})}catch{r&&r(d),p(d)}})});function l(p,d){let m={};for(let h in d)if({}.hasOwnProperty.call(d,h)&&d[h].trim()!==""){let E=d[h].trim().split(`
351
+ `);d.displays=u(P,v)}r&&r(d),p(d)})})})})),(T0e||y0e||A0e)&&(r&&r(null),p(null)),O0e&&(r&&r(null),p(null)),_H)try{let m=[];m.push(_e.powerShell("Get-CimInstance win32_VideoController | fl *")),m.push(_e.powerShell('gp "HKLM:\\SYSTEM\\ControlSet001\\Control\\Class\\{4d36e968-e325-11ce-bfc1-08002be10318}\\*" -ErrorAction SilentlyContinue | where MatchingDeviceId $null -NE | select MatchingDeviceId,HardwareInformation.qwMemorySize | fl')),m.push(_e.powerShell("Get-CimInstance win32_desktopmonitor | fl *")),m.push(_e.powerShell("Get-CimInstance -Namespace root\\wmi -ClassName WmiMonitorBasicDisplayParams | fl")),m.push(_e.powerShell("Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.Screen]::AllScreens")),m.push(_e.powerShell("Get-CimInstance -Namespace root\\wmi -ClassName WmiMonitorConnectionParams | fl")),m.push(_e.powerShell('gwmi WmiMonitorID -Namespace root\\wmi | ForEach-Object {(($_.ManufacturerName -notmatch 0 | foreach {[char]$_}) -join "") + "|" + (($_.ProductCodeID -notmatch 0 | foreach {[char]$_}) -join "") + "|" + (($_.UserFriendlyName -notmatch 0 | foreach {[char]$_}) -join "") + "|" + (($_.SerialNumberID -notmatch 0 | foreach {[char]$_}) -join "") + "|" + $_.InstanceName}'));let g=o();Promise.all(m).then(h=>{let E=h[0].replace(/\r/g,"").split(/\n\s*\n/),_=h[1].replace(/\r/g,"").split(/\n\s*\n/);d.controllers=l(E,_),d.controllers=d.controllers.map(A=>A.vendor.toLowerCase()==="nvidia"?a(A,g.find(D=>{let P=(A.subDeviceId||"").toLowerCase(),F=D.subDeviceId.split("x"),V=F.length>1?F[1].toLowerCase():F[0].toLowerCase(),H=Math.abs(P.length-V.length);if(P.length>V.length)for(let k=0;k<H;k++)V="0"+V;else if(P.length<V.length)for(let k=0;k<H;k++)P="0"+P;return P===V})||{}):A);let S=h[2].replace(/\r/g,"").split(/\n\s*\n/);S[0].trim()===""&&S.shift(),S.length&&S[S.length-1].trim()===""&&S.pop();let y=h[3].replace(/\r/g,"").split("Active ");y.shift();let T=h[4].replace(/\r/g,"").split("BitsPerPixel ");T.shift();let b=h[5].replace(/\r/g,"").split(/\n\s*\n/);b.shift();let v=h[6].replace(/\r/g,"").split(/\n/),x=[];v.forEach(A=>{let D=A.split("|");D.length===5&&x.push({vendor:D[0],code:D[1],model:D[2],serial:D[3],instanceId:D[4]})}),d.displays=f(T,y,S,b,x),d.displays.length===1&&(Pf&&(d.displays[0].resolutionX=Pf,d.displays[0].currentResX||(d.displays[0].currentResX=Pf)),wf&&(d.displays[0].resolutionY=wf,d.displays[0].currentResY===0&&(d.displays[0].currentResY=wf)),lg&&(d.displays[0].pixelDepth=lg)),d.displays=d.displays.map(A=>(fg&&!A.currentRefreshRate&&(A.currentRefreshRate=fg),A)),r&&r(d),p(d)}).catch(()=>{r&&r(d),p(d)})}catch{r&&r(d),p(d)}})});function l(p,d){let m={};for(let h in d)if({}.hasOwnProperty.call(d,h)&&d[h].trim()!==""){let E=d[h].trim().split(`
352
352
  `),_=_e.getValue(E,"MatchingDeviceId").match(/PCI\\(VEN_[0-9A-F]{4})&(DEV_[0-9A-F]{4})(?:&(SUBSYS_[0-9A-F]{8}))?(?:&(REV_[0-9A-F]{2}))?/i);if(_){let S=parseInt(_e.getValue(E,"HardwareInformation.qwMemorySize"));if(!isNaN(S)){let y=_[1].toUpperCase()+"&"+_[2].toUpperCase();_[3]&&(y+="&"+_[3].toUpperCase()),_[4]&&(y+="&"+_[4].toUpperCase()),m[y]=S}}}let g=[];for(let h in p)if({}.hasOwnProperty.call(p,h)&&p[h].trim()!==""){let E=p[h].trim().split(`
353
- `),_=_e.getValue(E,"PNPDeviceID",":").match(/PCI\\(VEN_[0-9A-F]{4})&(DEV_[0-9A-F]{4})(?:&(SUBSYS_[0-9A-F]{8}))?(?:&(REV_[0-9A-F]{2}))?/i),S=null,y=null;if(_){if(S=_[3]||"",S&&(S=S.split("_")[1]),y==null&&_[3]&&_[4]){let T=_[1].toUpperCase()+"&"+_[2].toUpperCase()+"&"+_[3].toUpperCase()+"&"+_[4].toUpperCase();({}).hasOwnProperty.call(m,T)&&(y=m[T])}if(y==null&&_[3]){let T=_[1].toUpperCase()+"&"+_[2].toUpperCase()+"&"+_[3].toUpperCase();({}).hasOwnProperty.call(m,T)&&(y=m[T])}if(y==null&&_[4]){let T=_[1].toUpperCase()+"&"+_[2].toUpperCase()+"&"+_[4].toUpperCase();({}).hasOwnProperty.call(m,T)&&(y=m[T])}if(y==null){let T=_[1].toUpperCase()+"&"+_[2].toUpperCase();({}).hasOwnProperty.call(m,T)&&(y=m[T])}}g.push({vendor:_e.getValue(E,"AdapterCompatibility",":"),model:_e.getValue(E,"name",":"),bus:_e.getValue(E,"PNPDeviceID",":").startsWith("PCI")?"PCI":"",vram:(y??_e.toInt(_e.getValue(E,"AdapterRAM",":")))/1024/1024,vramDynamic:_e.getValue(E,"VideoMemoryType",":")==="2",subDeviceId:S}),Pf=_e.toInt(_e.getValue(E,"CurrentHorizontalResolution",":"))||Pf,wf=_e.toInt(_e.getValue(E,"CurrentVerticalResolution",":"))||wf,fg=_e.toInt(_e.getValue(E,"CurrentRefreshRate",":"))||fg,lg=_e.toInt(_e.getValue(E,"CurrentBitsPerPixel",":"))||lg}return g}function f(p,d,m,g,h){let E=[],_="",S="",y="",T=0,I=0;if(m&&m.length){let v=m[0].split(`
354
- `);_=_e.getValue(v,"MonitorManufacturer",":"),S=_e.getValue(v,"Name",":"),y=_e.getValue(v,"PNPDeviceID",":").replace(/&amp;/g,"&").toLowerCase(),T=_e.toInt(_e.getValue(v,"ScreenWidth",":")),I=_e.toInt(_e.getValue(v,"ScreenHeight",":"))}for(let v=0;v<p.length;v++)if(p[v].trim()!==""){p[v]="BitsPerPixel "+p[v],d[v]="Active "+d[v],(g.length===0||g[v]===void 0)&&(g[v]="Unknown");let x=p[v].split(`
353
+ `),_=_e.getValue(E,"PNPDeviceID",":").match(/PCI\\(VEN_[0-9A-F]{4})&(DEV_[0-9A-F]{4})(?:&(SUBSYS_[0-9A-F]{8}))?(?:&(REV_[0-9A-F]{2}))?/i),S=null,y=null;if(_){if(S=_[3]||"",S&&(S=S.split("_")[1]),y==null&&_[3]&&_[4]){let T=_[1].toUpperCase()+"&"+_[2].toUpperCase()+"&"+_[3].toUpperCase()+"&"+_[4].toUpperCase();({}).hasOwnProperty.call(m,T)&&(y=m[T])}if(y==null&&_[3]){let T=_[1].toUpperCase()+"&"+_[2].toUpperCase()+"&"+_[3].toUpperCase();({}).hasOwnProperty.call(m,T)&&(y=m[T])}if(y==null&&_[4]){let T=_[1].toUpperCase()+"&"+_[2].toUpperCase()+"&"+_[4].toUpperCase();({}).hasOwnProperty.call(m,T)&&(y=m[T])}if(y==null){let T=_[1].toUpperCase()+"&"+_[2].toUpperCase();({}).hasOwnProperty.call(m,T)&&(y=m[T])}}g.push({vendor:_e.getValue(E,"AdapterCompatibility",":"),model:_e.getValue(E,"name",":"),bus:_e.getValue(E,"PNPDeviceID",":").startsWith("PCI")?"PCI":"",vram:(y??_e.toInt(_e.getValue(E,"AdapterRAM",":")))/1024/1024,vramDynamic:_e.getValue(E,"VideoMemoryType",":")==="2",subDeviceId:S}),Pf=_e.toInt(_e.getValue(E,"CurrentHorizontalResolution",":"))||Pf,wf=_e.toInt(_e.getValue(E,"CurrentVerticalResolution",":"))||wf,fg=_e.toInt(_e.getValue(E,"CurrentRefreshRate",":"))||fg,lg=_e.toInt(_e.getValue(E,"CurrentBitsPerPixel",":"))||lg}return g}function f(p,d,m,g,h){let E=[],_="",S="",y="",T=0,b=0;if(m&&m.length){let v=m[0].split(`
354
+ `);_=_e.getValue(v,"MonitorManufacturer",":"),S=_e.getValue(v,"Name",":"),y=_e.getValue(v,"PNPDeviceID",":").replace(/&amp;/g,"&").toLowerCase(),T=_e.toInt(_e.getValue(v,"ScreenWidth",":")),b=_e.toInt(_e.getValue(v,"ScreenHeight",":"))}for(let v=0;v<p.length;v++)if(p[v].trim()!==""){p[v]="BitsPerPixel "+p[v],d[v]="Active "+d[v],(g.length===0||g[v]===void 0)&&(g[v]="Unknown");let x=p[v].split(`
355
355
  `),A=d[v].split(`
356
356
  `),D=g[v].split(`
357
- `),P=_e.getValue(x,"BitsPerPixel"),F=_e.getValue(x,"Bounds").replace("{","").replace("}","").replace(/=/g,":").split(","),V=_e.getValue(x,"Primary"),H=_e.getValue(A,"MaxHorizontalImageSize"),k=_e.getValue(A,"MaxVerticalImageSize"),X=_e.getValue(A,"InstanceName").toLowerCase(),ee=_e.getValue(D,"VideoOutputTechnology"),ne=_e.getValue(x,"DeviceName"),ie="",Ee="";h.forEach(K=>{K.instanceId.toLowerCase().startsWith(X)&&_.startsWith("(")&&S.startsWith("PnP")&&(ie=K.vendor,Ee=K.model)}),E.push({vendor:X.startsWith(y)&&ie===""?_:ie,model:X.startsWith(y)&&Ee===""?S:Ee,deviceName:ne,main:V.toLowerCase()==="true",builtin:ee==="2147483648",connection:ee&&TH[ee]?TH[ee]:"",resolutionX:_e.toInt(_e.getValue(F,"Width",":")),resolutionY:_e.toInt(_e.getValue(F,"Height",":")),sizeX:H?parseInt(H,10):null,sizeY:k?parseInt(k,10):null,pixelDepth:P,currentResX:_e.toInt(_e.getValue(F,"Width",":")),currentResY:_e.toInt(_e.getValue(F,"Height",":")),positionX:_e.toInt(_e.getValue(F,"X",":")),positionY:_e.toInt(_e.getValue(F,"Y",":"))})}return p.length===0&&E.push({vendor:_,model:S,main:!0,sizeX:null,sizeY:null,resolutionX:T,resolutionY:I,pixelDepth:null,currentResX:T,currentResY:I,positionX:0,positionY:0}),E}}AH.graphics=x0e});var bH=C(ma=>{"use strict";var ue=Ht(),CH=W("fs"),Ir=W("child_process").exec,js=W("child_process").execSync,b0e=ue.promisifySave(W("child_process").exec),$s=process.platform,Fn=$s==="linux"||$s==="android",qs=$s==="darwin",_u=$s==="win32",Vn=$s==="freebsd",Gn=$s==="openbsd",kn=$s==="netbsd",Tu=$s==="sunos",pt={},Ge={};function I0e(r,e){ue.isFunction(r)&&(e=r,r="");let t=[],n=[];function s(c){if(!c.startsWith("/"))return"NFS";let u=c.split("/"),l=u[u.length-1],f=t.filter(p=>p.indexOf(l)>=0);return f.length===1&&f[0].indexOf("APFS")>=0?"APFS":"HFS"}function i(c){let u=["rootfs","unionfs","squashfs","cramfs","initrd","initramfs","devtmpfs","tmpfs","udev","devfs","specfs","type","appimaged"],l=!1;return u.forEach(f=>{c.toLowerCase().indexOf(f)>=0&&(l=!0)}),l}function o(c){let u=c.toString().split(`
357
+ `),P=_e.getValue(x,"BitsPerPixel"),F=_e.getValue(x,"Bounds").replace("{","").replace("}","").replace(/=/g,":").split(","),V=_e.getValue(x,"Primary"),H=_e.getValue(A,"MaxHorizontalImageSize"),k=_e.getValue(A,"MaxVerticalImageSize"),X=_e.getValue(A,"InstanceName").toLowerCase(),ee=_e.getValue(D,"VideoOutputTechnology"),ne=_e.getValue(x,"DeviceName"),ie="",Ee="";h.forEach(K=>{K.instanceId.toLowerCase().startsWith(X)&&_.startsWith("(")&&S.startsWith("PnP")&&(ie=K.vendor,Ee=K.model)}),E.push({vendor:X.startsWith(y)&&ie===""?_:ie,model:X.startsWith(y)&&Ee===""?S:Ee,deviceName:ne,main:V.toLowerCase()==="true",builtin:ee==="2147483648",connection:ee&&TH[ee]?TH[ee]:"",resolutionX:_e.toInt(_e.getValue(F,"Width",":")),resolutionY:_e.toInt(_e.getValue(F,"Height",":")),sizeX:H?parseInt(H,10):null,sizeY:k?parseInt(k,10):null,pixelDepth:P,currentResX:_e.toInt(_e.getValue(F,"Width",":")),currentResY:_e.toInt(_e.getValue(F,"Height",":")),positionX:_e.toInt(_e.getValue(F,"X",":")),positionY:_e.toInt(_e.getValue(F,"Y",":"))})}return p.length===0&&E.push({vendor:_,model:S,main:!0,sizeX:null,sizeY:null,resolutionX:T,resolutionY:b,pixelDepth:null,currentResX:T,currentResY:b,positionX:0,positionY:0}),E}}AH.graphics=x0e});var bH=C(ma=>{"use strict";var ue=Ht(),CH=W("fs"),Ir=W("child_process").exec,js=W("child_process").execSync,b0e=ue.promisifySave(W("child_process").exec),$s=process.platform,Fn=$s==="linux"||$s==="android",qs=$s==="darwin",_u=$s==="win32",Vn=$s==="freebsd",Gn=$s==="openbsd",kn=$s==="netbsd",Tu=$s==="sunos",pt={},Ge={};function I0e(r,e){ue.isFunction(r)&&(e=r,r="");let t=[],n=[];function s(c){if(!c.startsWith("/"))return"NFS";let u=c.split("/"),l=u[u.length-1],f=t.filter(p=>p.indexOf(l)>=0);return f.length===1&&f[0].indexOf("APFS")>=0?"APFS":"HFS"}function i(c){let u=["rootfs","unionfs","squashfs","cramfs","initrd","initramfs","devtmpfs","tmpfs","udev","devfs","specfs","type","appimaged"],l=!1;return u.forEach(f=>{c.toLowerCase().indexOf(f)>=0&&(l=!0)}),l}function o(c){let u=c.toString().split(`
358
358
  `);if(u.shift(),c.toString().toLowerCase().indexOf("filesystem")){let l=0;for(let f=0;f<u.length;f++)u[f]?.toLowerCase().startsWith("filesystem")&&(l=f);for(let f=0;f<l;f++)u.shift()}return u}function a(c){let u=[];return c.forEach(l=>{if(l!==""&&(l=l.replace(/ +/g," ").split(" "),l&&(l[0].startsWith("/")||l[6]&&l[6]==="/"||l[0].indexOf("/")>0||l[0].indexOf(":")===1||!qs&&!i(l[1])))){let f=l[0],p=Fn||Vn||Gn||kn?l[1]:s(l[0]),d=parseInt(Fn||Vn||Gn||kn?l[2]:l[1],10)*1024,m=parseInt(Fn||Vn||Gn||kn?l[3]:l[2],10)*1024,g=parseInt(Fn||Vn||Gn||kn?l[4]:l[3],10)*1024,h=parseFloat((100*(m/(m+g))).toFixed(2)),E=n&&Object.keys(n).length>0?n[f]||!1:null;l.splice(0,Fn||Vn||Gn||kn?6:5);let _=l.join(" ");u.find(S=>S.fs===f&&S.type===p)||u.push({fs:f,type:p,size:d,used:m,available:g,use:h,mount:_,rw:E})}}),u}return new Promise(c=>{process.nextTick(()=>{let u=[];if(Fn||Vn||Gn||kn||qs){let l="";if(t=[],n={},qs){l="df -kP";try{t=js("diskutil list").toString().split(`
359
359
  `).filter(f=>!f.startsWith("/")&&f.indexOf(":")>0),js("mount").toString().split(`
360
360
  `).filter(f=>f.startsWith("/")).forEach(f=>{n[f.split(" ")[0]]=f.toLowerCase().indexOf("read-only")===-1})}catch{ue.noop()}}if(Fn)try{l="export LC_ALL=C; df -lkPTx squashfs; unset LC_ALL",js("cat /proc/mounts 2>/dev/null",ue.execOptsLinux).toString().split(`
@@ -420,7 +420,7 @@ Profile on interface`)}catch(r){return r.status===1&&r.stdout.includes("AutoConf
420
420
  `),t=LH(e);return Z0e(t)}catch{return[]}}function tge(r){let e=`nmcli device status 2>/dev/null | grep ${r}`;try{let i=Wt(e,he.execOptsLinux).toString().replace(/\s+/g," ").trim().split(" ").slice(3).join(" ");return i!="--"?i:""}catch{return""}}function MH(r){let e=[];try{let t=`cat ${r} 2> /dev/null | grep 'iface\\|source'`;Wt(t,he.execOptsLinux).toString().split(`
421
421
  `).forEach(s=>{let i=s.replace(/\s+/g," ").trim().split(" ");if(i.length>=4&&s.toLowerCase().indexOf(" inet ")>=0&&s.toLowerCase().indexOf("dhcp")>=0&&e.push(i[1]),s.toLowerCase().includes("source")){let o=s.split(" ")[1];e=e.concat(MH(o))}})}catch{he.noop()}return e}function rge(){let r="ip a 2> /dev/null",e=[];try{let t=Wt(r,he.execOptsLinux).toString().split(`
422
422
  `),n=LH(t);e=nge(n)}catch{he.noop()}try{e=MH("/etc/network/interfaces")}catch{he.noop()}return e}function nge(r){let e=[];return r&&r.length&&r.forEach(t=>{if(t&&t.length&&t[0].split(":").length>2){for(let s of t)if(s.indexOf(" inet ")>=0&&s.indexOf(" dynamic ")>=0){let i=s.split(" "),o=i[i.length-1].trim();e.push(o);break}}}),e}function ige(r,e,t){let n=!1;if(e){let s=`nmcli connection show "${e}" 2>/dev/null | grep ipv4.method;`;try{switch(Wt(s,he.execOptsLinux).toString().replace(/\s+/g," ").trim().split(" ").slice(1).toString()){case"auto":n=!0;break;default:n=!1;break}return n}catch{return t.indexOf(r)>=0}}else return t.indexOf(r)>=0}function sge(r){let e=!1,t=`ipconfig getpacket "${r}" 2>/dev/null | grep lease_time;`;try{let n=Wt(t).toString().split(`
423
- `);n.length&&n[0].startsWith("lease_time")&&(e=!0)}catch{he.noop()}return e}function oge(r){if(r){let e=`nmcli connection show "${r}" 2>/dev/null | grep ipv4.dns-search;`;try{let s=Wt(e,he.execOptsLinux).toString().replace(/\s+/g," ").trim().split(" ").slice(1).toString();return s=="--"?"Not defined":s}catch{return"Unknown"}}else return"Unknown"}function age(r){if(r){let e=`nmcli connection show "${r}" 2>/dev/null | grep 802-1x.eap;`;try{let s=Wt(e,he.execOptsLinux).toString().replace(/\s+/g," ").trim().split(" ").slice(1).toString();return s=="--"?"":s}catch{return"Not defined"}}else return"Not defined"}function cge(r){return r?r=="Not defined"?"Disabled":"Enabled":"Unknown"}function F1(r,e,t){let n=["00:00:00:00:00:00","00:03:FF","00:05:69","00:0C:29","00:0F:4B","00:13:07","00:13:BE","00:15:5d","00:16:3E","00:1C:42","00:21:F6","00:24:0B","00:50:56","00:A0:B1","00:E0:C8","08:00:27","0A:00:27","18:92:2C","16:DF:49","3C:F3:92","54:52:00","FC:15:97"];return t?n.filter(s=>t.toUpperCase().toUpperCase().startsWith(s.substring(0,t.length))).length>0||r.toLowerCase().indexOf(" virtual ")>-1||e.toLowerCase().indexOf(" virtual ")>-1||r.toLowerCase().indexOf("vethernet ")>-1||e.toLowerCase().indexOf("vethernet ")>-1||r.toLowerCase().startsWith("veth")||e.toLowerCase().startsWith("veth")||r.toLowerCase().startsWith("vboxnet")||e.toLowerCase().startsWith("vboxnet"):!1}function V1(r,e,t){return typeof r=="string"&&(t=r,e=!0,r=null),typeof r=="boolean"&&(e=r,r=null,t=""),typeof e>"u"&&(e=!0),t=t||"",t=""+t,new Promise(n=>{process.nextTick(()=>{let s=dg.networkInterfaces(),i=[],o=[],a=[],c=[];if(zi||Ws||Ys||zs)if(JSON.stringify(s)===JSON.stringify(yu)&&!e)i=Au,r&&r(i),n(i);else{let u=Ea();yu=JSON.parse(JSON.stringify(s)),o=ege(),o.forEach(l=>{({}).hasOwnProperty.call(s,l.iface)&&s[l.iface].forEach(function(m){(m.family==="IPv4"||m.family===4)&&(l.ip4subnet=m.netmask),(m.family==="IPv6"||m.family===6)&&(l.ip6subnet=m.netmask)});let f="",p=he.isPrototypePolluted()?"---":he.sanitizeShellString(l.iface),d=he.mathMin(p.length,2e3);for(let m=0;m<=d;m++)p[m]!==void 0&&(f=f+p[m]);i.push({iface:l.iface,ifaceName:l.iface,default:l.iface===u,ip4:l.ip4,ip4subnet:l.ip4subnet||"",ip6:l.ip6,ip6subnet:l.ip6subnet||"",mac:l.mac,internal:l.internal,virtual:l.internal?!1:F1(l.iface,l.iface,l.mac),operstate:l.operstate,type:l.type,duplex:l.duplex,mtu:l.mtu,speed:l.speed,dhcp:sge(f),dnsSuffix:"",ieee8021xAuth:"",ieee8021xState:"",carrierChanges:0})}),Au=i,t.toLowerCase().indexOf("default")>=0&&(i=i.filter(l=>l.default),i.length>0?i=i[0]:i=[]),r&&r(i),n(i)}if(Yi)if(JSON.stringify(s)===JSON.stringify(yu)&&!e)i=Au,r&&r(i),n(i);else{yu=JSON.parse(JSON.stringify(s)),wH=rge();let u=Ea();for(let l in s){let f="",p="",d="",m="",g="",h="",E="",_=null,S=0,y=!1,T="",I="",v="",x="";if({}.hasOwnProperty.call(s,l)){let A=l;s[l].forEach(function(K){(K.family==="IPv4"||K.family===4)&&(f=K.address,p=K.netmask),(K.family==="IPv6"||K.family===6)&&(!d||d.match(/^fe80::/i))&&(d=K.address,m=K.netmask),g=K.mac;let le=parseInt(process.versions.node.split("."),10);g.indexOf("00:00:0")>-1&&(Yi||zi)&&!K.internal&&le>=8&&le<=11&&(Object.keys(Ou).length===0&&(Ou=RH()),g=Ou[l]||"")});let D=l.split(":")[0].trim().toLowerCase(),P="",F=he.isPrototypePolluted()?"---":he.sanitizeShellString(D),V=he.mathMin(F.length,2e3);for(let K=0;K<=V;K++)F[K]!==void 0&&(P=P+F[K]);let H=`echo -n "addr_assign_type: "; cat /sys/class/net/${P}/addr_assign_type 2>/dev/null; echo;
423
+ `);n.length&&n[0].startsWith("lease_time")&&(e=!0)}catch{he.noop()}return e}function oge(r){if(r){let e=`nmcli connection show "${r}" 2>/dev/null | grep ipv4.dns-search;`;try{let s=Wt(e,he.execOptsLinux).toString().replace(/\s+/g," ").trim().split(" ").slice(1).toString();return s=="--"?"Not defined":s}catch{return"Unknown"}}else return"Unknown"}function age(r){if(r){let e=`nmcli connection show "${r}" 2>/dev/null | grep 802-1x.eap;`;try{let s=Wt(e,he.execOptsLinux).toString().replace(/\s+/g," ").trim().split(" ").slice(1).toString();return s=="--"?"":s}catch{return"Not defined"}}else return"Not defined"}function cge(r){return r?r=="Not defined"?"Disabled":"Enabled":"Unknown"}function F1(r,e,t){let n=["00:00:00:00:00:00","00:03:FF","00:05:69","00:0C:29","00:0F:4B","00:13:07","00:13:BE","00:15:5d","00:16:3E","00:1C:42","00:21:F6","00:24:0B","00:50:56","00:A0:B1","00:E0:C8","08:00:27","0A:00:27","18:92:2C","16:DF:49","3C:F3:92","54:52:00","FC:15:97"];return t?n.filter(s=>t.toUpperCase().toUpperCase().startsWith(s.substring(0,t.length))).length>0||r.toLowerCase().indexOf(" virtual ")>-1||e.toLowerCase().indexOf(" virtual ")>-1||r.toLowerCase().indexOf("vethernet ")>-1||e.toLowerCase().indexOf("vethernet ")>-1||r.toLowerCase().startsWith("veth")||e.toLowerCase().startsWith("veth")||r.toLowerCase().startsWith("vboxnet")||e.toLowerCase().startsWith("vboxnet"):!1}function V1(r,e,t){return typeof r=="string"&&(t=r,e=!0,r=null),typeof r=="boolean"&&(e=r,r=null,t=""),typeof e>"u"&&(e=!0),t=t||"",t=""+t,new Promise(n=>{process.nextTick(()=>{let s=dg.networkInterfaces(),i=[],o=[],a=[],c=[];if(zi||Ws||Ys||zs)if(JSON.stringify(s)===JSON.stringify(yu)&&!e)i=Au,r&&r(i),n(i);else{let u=Ea();yu=JSON.parse(JSON.stringify(s)),o=ege(),o.forEach(l=>{({}).hasOwnProperty.call(s,l.iface)&&s[l.iface].forEach(function(m){(m.family==="IPv4"||m.family===4)&&(l.ip4subnet=m.netmask),(m.family==="IPv6"||m.family===6)&&(l.ip6subnet=m.netmask)});let f="",p=he.isPrototypePolluted()?"---":he.sanitizeShellString(l.iface),d=he.mathMin(p.length,2e3);for(let m=0;m<=d;m++)p[m]!==void 0&&(f=f+p[m]);i.push({iface:l.iface,ifaceName:l.iface,default:l.iface===u,ip4:l.ip4,ip4subnet:l.ip4subnet||"",ip6:l.ip6,ip6subnet:l.ip6subnet||"",mac:l.mac,internal:l.internal,virtual:l.internal?!1:F1(l.iface,l.iface,l.mac),operstate:l.operstate,type:l.type,duplex:l.duplex,mtu:l.mtu,speed:l.speed,dhcp:sge(f),dnsSuffix:"",ieee8021xAuth:"",ieee8021xState:"",carrierChanges:0})}),Au=i,t.toLowerCase().indexOf("default")>=0&&(i=i.filter(l=>l.default),i.length>0?i=i[0]:i=[]),r&&r(i),n(i)}if(Yi)if(JSON.stringify(s)===JSON.stringify(yu)&&!e)i=Au,r&&r(i),n(i);else{yu=JSON.parse(JSON.stringify(s)),wH=rge();let u=Ea();for(let l in s){let f="",p="",d="",m="",g="",h="",E="",_=null,S=0,y=!1,T="",b="",v="",x="";if({}.hasOwnProperty.call(s,l)){let A=l;s[l].forEach(function(K){(K.family==="IPv4"||K.family===4)&&(f=K.address,p=K.netmask),(K.family==="IPv6"||K.family===6)&&(!d||d.match(/^fe80::/i))&&(d=K.address,m=K.netmask),g=K.mac;let le=parseInt(process.versions.node.split("."),10);g.indexOf("00:00:0")>-1&&(Yi||zi)&&!K.internal&&le>=8&&le<=11&&(Object.keys(Ou).length===0&&(Ou=RH()),g=Ou[l]||"")});let D=l.split(":")[0].trim().toLowerCase(),P="",F=he.isPrototypePolluted()?"---":he.sanitizeShellString(D),V=he.mathMin(F.length,2e3);for(let K=0;K<=V;K++)F[K]!==void 0&&(P=P+F[K]);let H=`echo -n "addr_assign_type: "; cat /sys/class/net/${P}/addr_assign_type 2>/dev/null; echo;
424
424
  echo -n "address: "; cat /sys/class/net/${P}/address 2>/dev/null; echo;
425
425
  echo -n "addr_len: "; cat /sys/class/net/${P}/addr_len 2>/dev/null; echo;
426
426
  echo -n "broadcast: "; cat /sys/class/net/${P}/broadcast 2>/dev/null; echo;
@@ -445,15 +445,15 @@ Profile on interface`)}catch(r){return r.status===1&&r.stdout.includes("AutoConf
445
445
  echo -n "type: "; cat /sys/class/net/${P}/type 2>/dev/null; echo;
446
446
  echo -n "wireless: "; cat /proc/net/wireless 2>/dev/null | grep ${P}; echo;
447
447
  echo -n "wirelessspeed: "; iw dev ${P} link 2>&1 | grep bitrate; echo;`,k=[];try{k=Wt(H,he.execOptsLinux).toString().split(`
448
- `);let K=tge(P);y=ige(P,K,wH),T=oge(K),I=age(K),v=cge(I)}catch{he.noop()}h=he.getValue(k,"duplex"),h=h.startsWith("cat")?"":h,E=parseInt(he.getValue(k,"mtu"),10);let X=parseInt(he.getValue(k,"speed"),10);_=isNaN(X)?null:X;let ee=he.getValue(k,"wirelessspeed").split("tx bitrate: ");_===null&&ee.length===2&&(X=parseFloat(ee[1]),_=isNaN(X)?null:X),S=parseInt(he.getValue(k,"carrier_changes"),10);let ne=he.getValue(k,"operstate");x=ne==="up"?he.getValue(k,"wireless").trim()?"wireless":"wired":"unknown",(P==="lo"||P.startsWith("bond"))&&(x="virtual");let ie=s[l]&&s[l][0]?s[l][0].internal:!1;(l.toLowerCase().indexOf("loopback")>-1||A.toLowerCase().indexOf("loopback")>-1)&&(ie=!0);let Ee=ie?!1:F1(l,A,g);i.push({iface:P,ifaceName:A,default:D===u,ip4:f,ip4subnet:p,ip6:d,ip6subnet:m,mac:g,internal:ie,virtual:Ee,operstate:ne,type:x,duplex:h,mtu:E,speed:_,dhcp:y,dnsSuffix:T,ieee8021xAuth:I,ieee8021xState:v,carrierChanges:S})}}Au=i,t.toLowerCase().indexOf("default")>=0&&(i=i.filter(l=>l.default),i.length>0?i=i[0]:i=[]),r&&r(i),n(i)}if(Rf)if(JSON.stringify(s)===JSON.stringify(yu)&&!e)i=Au,r&&r(i),n(i);else{yu=JSON.parse(JSON.stringify(s));let u=Ea();Y0e().then(function(l){l.forEach(f=>{let p=!1;Object.keys(s).forEach(d=>{p||s[d].forEach(m=>{Object.keys(m).indexOf("mac")>=0&&(p=m.mac===f.mac)})}),p||(s[f.name]=[{mac:f.mac}])}),c=K0e(),a=z0e();for(let f in s){let p="",d=he.isPrototypePolluted()?"---":he.sanitizeShellString(f),m=he.mathMin(d.length,2e3);for(let k=0;k<=m;k++)d[k]!==void 0&&(p=p+d[k]);let g=f,h="",E="",_="",S="",y="",T="",I="",v=null,x=0,A="down",D=!1,P="",F="",V="",H="";if({}.hasOwnProperty.call(s,f)){let k=f;s[f].forEach(function(Ee){(Ee.family==="IPv4"||Ee.family===4)&&(h=Ee.address,E=Ee.netmask),(Ee.family==="IPv6"||Ee.family===6)&&(!_||_.match(/^fe80::/i))&&(_=Ee.address,S=Ee.netmask),y=Ee.mac;let K=parseInt(process.versions.node.split("."),10);y.indexOf("00:00:0")>-1&&(Yi||zi)&&!Ee.internal&&K>=8&&K<=11&&(Object.keys(Ou).length===0&&(Ou=RH()),y=Ou[f]||"")}),P=X0e(a.ifaces,p);let X=!1;l.forEach(Ee=>{Ee.mac===y&&!X&&(g=Ee.iface||g,k=Ee.name,D=Ee.dhcp,A=Ee.operstate,v=A==="up"?Ee.speed:0,H=Ee.type,X=!0)}),(f.toLowerCase().indexOf("wlan")>=0||k.toLowerCase().indexOf("wlan")>=0||k.toLowerCase().indexOf("802.11n")>=0||k.toLowerCase().indexOf("wireless")>=0||k.toLowerCase().indexOf("wi-fi")>=0||k.toLowerCase().indexOf("wifi")>=0)&&(H="wireless");let ee=Q0e(H,p,c);F=ee.protocol,V=ee.state;let ne=s[f]&&s[f][0]?s[f][0].internal:!1;(f.toLowerCase().indexOf("loopback")>-1||k.toLowerCase().indexOf("loopback")>-1)&&(ne=!0);let ie=ne?!1:F1(f,k,y);i.push({iface:g,ifaceName:k,default:g===u,ip4:h,ip4subnet:E,ip6:_,ip6subnet:S,mac:y,internal:ne,virtual:ie,operstate:A,type:H,duplex:T,mtu:I,speed:v,dhcp:D,dnsSuffix:P,ieee8021xAuth:F,ieee8021xState:V,carrierChanges:x})}}Au=i,t.toLowerCase().indexOf("default")>=0&&(i=i.filter(f=>f.default),i.length>0?i=i[0]:i=[]),r&&r(i),n(i)})}})})}Sa.networkInterfaces=V1;function pg(r,e,t,n,s,i,o,a){let c={iface:r,operstate:n,rx_bytes:e,rx_dropped:s,rx_errors:i,tx_bytes:t,tx_dropped:o,tx_errors:a,rx_sec:null,tx_sec:null,ms:0};return ct[r]&&ct[r].ms?(c.ms=Date.now()-ct[r].ms,c.rx_sec=e-ct[r].rx_bytes>=0?(e-ct[r].rx_bytes)/(c.ms/1e3):0,c.tx_sec=t-ct[r].tx_bytes>=0?(t-ct[r].tx_bytes)/(c.ms/1e3):0,ct[r].rx_bytes=e,ct[r].tx_bytes=t,ct[r].rx_sec=c.rx_sec,ct[r].tx_sec=c.tx_sec,ct[r].ms=Date.now(),ct[r].last_ms=c.ms,ct[r].operstate=n):(ct[r]||(ct[r]={}),ct[r].rx_bytes=e,ct[r].tx_bytes=t,ct[r].rx_sec=null,ct[r].tx_sec=null,ct[r].ms=Date.now(),ct[r].last_ms=0,ct[r].operstate=n),c}function NH(r,e){let t=[];return new Promise(n=>{process.nextTick(()=>{if(he.isFunction(r)&&!e)e=r,t=[Ea()];else{if(typeof r!="string"&&r!==void 0)return e&&e([]),n([]);r=r||Ea();try{r.__proto__.toLowerCase=he.stringToLower,r.__proto__.replace=he.stringReplace,r.__proto__.toString=he.stringToString,r.__proto__.substr=he.stringSubstr,r.__proto__.substring=he.stringSubstring,r.__proto__.trim=he.stringTrim,r.__proto__.startsWith=he.stringStartWith}catch{Object.setPrototypeOf(r,he.stringObj)}r=r.trim().toLowerCase().replace(/,+/g,"|"),t=r.split("|")}let s=[],i=[];if(t.length&&t[0].trim()==="*")t=[],V1(!1).then(o=>{for(let a of o)t.push(a.iface);NH(t.join(",")).then(a=>{e&&e(a),n(a)})});else{for(let o of t)i.push(uge(o.trim()));i.length?Promise.all(i).then(o=>{e&&e(o),n(o)}):(e&&e(s),n(s))}})})}function uge(r){function e(t){let n=[];for(let s in t)if({}.hasOwnProperty.call(t,s)&&t[s].trim()!==""){let i=t[s].trim().split(`\r
448
+ `);let K=tge(P);y=ige(P,K,wH),T=oge(K),b=age(K),v=cge(b)}catch{he.noop()}h=he.getValue(k,"duplex"),h=h.startsWith("cat")?"":h,E=parseInt(he.getValue(k,"mtu"),10);let X=parseInt(he.getValue(k,"speed"),10);_=isNaN(X)?null:X;let ee=he.getValue(k,"wirelessspeed").split("tx bitrate: ");_===null&&ee.length===2&&(X=parseFloat(ee[1]),_=isNaN(X)?null:X),S=parseInt(he.getValue(k,"carrier_changes"),10);let ne=he.getValue(k,"operstate");x=ne==="up"?he.getValue(k,"wireless").trim()?"wireless":"wired":"unknown",(P==="lo"||P.startsWith("bond"))&&(x="virtual");let ie=s[l]&&s[l][0]?s[l][0].internal:!1;(l.toLowerCase().indexOf("loopback")>-1||A.toLowerCase().indexOf("loopback")>-1)&&(ie=!0);let Ee=ie?!1:F1(l,A,g);i.push({iface:P,ifaceName:A,default:D===u,ip4:f,ip4subnet:p,ip6:d,ip6subnet:m,mac:g,internal:ie,virtual:Ee,operstate:ne,type:x,duplex:h,mtu:E,speed:_,dhcp:y,dnsSuffix:T,ieee8021xAuth:b,ieee8021xState:v,carrierChanges:S})}}Au=i,t.toLowerCase().indexOf("default")>=0&&(i=i.filter(l=>l.default),i.length>0?i=i[0]:i=[]),r&&r(i),n(i)}if(Rf)if(JSON.stringify(s)===JSON.stringify(yu)&&!e)i=Au,r&&r(i),n(i);else{yu=JSON.parse(JSON.stringify(s));let u=Ea();Y0e().then(function(l){l.forEach(f=>{let p=!1;Object.keys(s).forEach(d=>{p||s[d].forEach(m=>{Object.keys(m).indexOf("mac")>=0&&(p=m.mac===f.mac)})}),p||(s[f.name]=[{mac:f.mac}])}),c=K0e(),a=z0e();for(let f in s){let p="",d=he.isPrototypePolluted()?"---":he.sanitizeShellString(f),m=he.mathMin(d.length,2e3);for(let k=0;k<=m;k++)d[k]!==void 0&&(p=p+d[k]);let g=f,h="",E="",_="",S="",y="",T="",b="",v=null,x=0,A="down",D=!1,P="",F="",V="",H="";if({}.hasOwnProperty.call(s,f)){let k=f;s[f].forEach(function(Ee){(Ee.family==="IPv4"||Ee.family===4)&&(h=Ee.address,E=Ee.netmask),(Ee.family==="IPv6"||Ee.family===6)&&(!_||_.match(/^fe80::/i))&&(_=Ee.address,S=Ee.netmask),y=Ee.mac;let K=parseInt(process.versions.node.split("."),10);y.indexOf("00:00:0")>-1&&(Yi||zi)&&!Ee.internal&&K>=8&&K<=11&&(Object.keys(Ou).length===0&&(Ou=RH()),y=Ou[f]||"")}),P=X0e(a.ifaces,p);let X=!1;l.forEach(Ee=>{Ee.mac===y&&!X&&(g=Ee.iface||g,k=Ee.name,D=Ee.dhcp,A=Ee.operstate,v=A==="up"?Ee.speed:0,H=Ee.type,X=!0)}),(f.toLowerCase().indexOf("wlan")>=0||k.toLowerCase().indexOf("wlan")>=0||k.toLowerCase().indexOf("802.11n")>=0||k.toLowerCase().indexOf("wireless")>=0||k.toLowerCase().indexOf("wi-fi")>=0||k.toLowerCase().indexOf("wifi")>=0)&&(H="wireless");let ee=Q0e(H,p,c);F=ee.protocol,V=ee.state;let ne=s[f]&&s[f][0]?s[f][0].internal:!1;(f.toLowerCase().indexOf("loopback")>-1||k.toLowerCase().indexOf("loopback")>-1)&&(ne=!0);let ie=ne?!1:F1(f,k,y);i.push({iface:g,ifaceName:k,default:g===u,ip4:h,ip4subnet:E,ip6:_,ip6subnet:S,mac:y,internal:ne,virtual:ie,operstate:A,type:H,duplex:T,mtu:b,speed:v,dhcp:D,dnsSuffix:P,ieee8021xAuth:F,ieee8021xState:V,carrierChanges:x})}}Au=i,t.toLowerCase().indexOf("default")>=0&&(i=i.filter(f=>f.default),i.length>0?i=i[0]:i=[]),r&&r(i),n(i)})}})})}Sa.networkInterfaces=V1;function pg(r,e,t,n,s,i,o,a){let c={iface:r,operstate:n,rx_bytes:e,rx_dropped:s,rx_errors:i,tx_bytes:t,tx_dropped:o,tx_errors:a,rx_sec:null,tx_sec:null,ms:0};return ct[r]&&ct[r].ms?(c.ms=Date.now()-ct[r].ms,c.rx_sec=e-ct[r].rx_bytes>=0?(e-ct[r].rx_bytes)/(c.ms/1e3):0,c.tx_sec=t-ct[r].tx_bytes>=0?(t-ct[r].tx_bytes)/(c.ms/1e3):0,ct[r].rx_bytes=e,ct[r].tx_bytes=t,ct[r].rx_sec=c.rx_sec,ct[r].tx_sec=c.tx_sec,ct[r].ms=Date.now(),ct[r].last_ms=c.ms,ct[r].operstate=n):(ct[r]||(ct[r]={}),ct[r].rx_bytes=e,ct[r].tx_bytes=t,ct[r].rx_sec=null,ct[r].tx_sec=null,ct[r].ms=Date.now(),ct[r].last_ms=0,ct[r].operstate=n),c}function NH(r,e){let t=[];return new Promise(n=>{process.nextTick(()=>{if(he.isFunction(r)&&!e)e=r,t=[Ea()];else{if(typeof r!="string"&&r!==void 0)return e&&e([]),n([]);r=r||Ea();try{r.__proto__.toLowerCase=he.stringToLower,r.__proto__.replace=he.stringReplace,r.__proto__.toString=he.stringToString,r.__proto__.substr=he.stringSubstr,r.__proto__.substring=he.stringSubstring,r.__proto__.trim=he.stringTrim,r.__proto__.startsWith=he.stringStartWith}catch{Object.setPrototypeOf(r,he.stringObj)}r=r.trim().toLowerCase().replace(/,+/g,"|"),t=r.split("|")}let s=[],i=[];if(t.length&&t[0].trim()==="*")t=[],V1(!1).then(o=>{for(let a of o)t.push(a.iface);NH(t.join(",")).then(a=>{e&&e(a),n(a)})});else{for(let o of t)i.push(uge(o.trim()));i.length?Promise.all(i).then(o=>{e&&e(o),n(o)}):(e&&e(s),n(s))}})})}function uge(r){function e(t){let n=[];for(let s in t)if({}.hasOwnProperty.call(t,s)&&t[s].trim()!==""){let i=t[s].trim().split(`\r
449
449
  `);n.push({name:he.getValue(i,"Name",":").replace(/[()[\] ]+/g,"").replace(/#|\//g,"_").toLowerCase(),rx_bytes:parseInt(he.getValue(i,"BytesReceivedPersec",":"),10),rx_errors:parseInt(he.getValue(i,"PacketsReceivedErrors",":"),10),rx_dropped:parseInt(he.getValue(i,"PacketsReceivedDiscarded",":"),10),tx_bytes:parseInt(he.getValue(i,"BytesSentPersec",":"),10),tx_errors:parseInt(he.getValue(i,"PacketsOutboundErrors",":"),10),tx_dropped:parseInt(he.getValue(i,"PacketsOutboundDiscarded",":"),10)})}return n}return new Promise(t=>{process.nextTick(()=>{let n="",s=he.isPrototypePolluted()?"---":he.sanitizeShellString(r),i=he.mathMin(s.length,2e3);for(let E=0;E<=i;E++)s[E]!==void 0&&(n=n+s[E]);let o={iface:n,operstate:"unknown",rx_bytes:0,rx_dropped:0,rx_errors:0,tx_bytes:0,tx_dropped:0,tx_errors:0,rx_sec:null,tx_sec:null,ms:0},a="unknown",c=0,u=0,l=0,f=0,p=0,d=0,m,g,h;if(!ct[n]||ct[n]&&!ct[n].ms||ct[n]&&ct[n].ms&&Date.now()-ct[n].ms>=500){if(Yi&&($0e.existsSync("/sys/class/net/"+n)?(m="cat /sys/class/net/"+n+"/operstate; cat /sys/class/net/"+n+"/statistics/rx_bytes; cat /sys/class/net/"+n+"/statistics/tx_bytes; cat /sys/class/net/"+n+"/statistics/rx_dropped; cat /sys/class/net/"+n+"/statistics/rx_errors; cat /sys/class/net/"+n+"/statistics/tx_dropped; cat /sys/class/net/"+n+"/statistics/tx_errors; ",dn(m,function(E,_){E||(g=_.toString().split(`
450
450
  `),a=g[0].trim(),c=parseInt(g[1],10),u=parseInt(g[2],10),l=parseInt(g[3],10),f=parseInt(g[4],10),p=parseInt(g[5],10),d=parseInt(g[6],10),o=pg(n,c,u,a,l,f,p,d)),t(o)})):t(o)),(Ws||Ys||zs)&&(m="netstat -ibndI "+n,dn(m,function(E,_){if(!E){g=_.toString().split(`
451
451
  `);for(let S=1;S<g.length;S++){let y=g[S].replace(/ +/g," ").split(" ");y&&y[0]&&y[7]&&y[10]&&(c=c+parseInt(y[7]),y[6].trim()!=="-"&&(l=l+parseInt(y[6])),y[5].trim()!=="-"&&(f=f+parseInt(y[5])),u=u+parseInt(y[10]),y[12].trim()!=="-"&&(p=p+parseInt(y[12])),y[9].trim()!=="-"&&(d=d+parseInt(y[9])),a="up")}o=pg(n,c,u,a,l,f,p,d)}t(o)})),zi&&(m="ifconfig "+n+' | grep "status"',dn(m,function(E,_){o.operstate=(_.toString().split(":")[1]||"").trim(),o.operstate=(o.operstate||"").toLowerCase(),o.operstate=o.operstate==="active"?"up":o.operstate==="inactive"?"down":"unknown",m="netstat -bdI "+n,dn(m,function(S,y){if(!S&&(g=y.toString().split(`
452
- `),g.length>1&&g[1].trim()!=="")){h=g[1].replace(/ +/g," ").split(" ");let T=h.length>11?1:0;c=parseInt(h[T+5]),l=parseInt(h[T+10]),f=parseInt(h[T+4]),u=parseInt(h[T+8]),p=parseInt(h[T+10]),d=parseInt(h[T+7]),o=pg(n,c,u,o.operstate,l,f,p,d)}t(o)})})),Rf){let E=[],_=n;he.powerShell("Get-CimInstance Win32_PerfRawData_Tcpip_NetworkInterface | select Name,BytesReceivedPersec,PacketsReceivedErrors,PacketsReceivedDiscarded,BytesSentPersec,PacketsOutboundErrors,PacketsOutboundDiscarded | fl").then((S,y)=>{if(!y){let T=S.toString().split(/\n\s*\n/);E=e(T)}V1(!1).then(T=>{c=0,u=0,E.forEach(I=>{T.forEach(v=>{(v.iface.toLowerCase()===n.toLowerCase()||v.mac.toLowerCase()===n.toLowerCase()||v.ip4.toLowerCase()===n.toLowerCase()||v.ip6.toLowerCase()===n.toLowerCase()||v.ifaceName.replace(/[()[\] ]+/g,"").replace(/#|\//g,"_").toLowerCase()===n.replace(/[()[\] ]+/g,"").replace("#","_").toLowerCase())&&v.ifaceName.replace(/[()[\] ]+/g,"").replace(/#|\//g,"_").toLowerCase()===I.name&&(_=v.iface,c=I.rx_bytes,l=I.rx_dropped,f=I.rx_errors,u=I.tx_bytes,p=I.tx_dropped,d=I.tx_errors,a=v.operstate)})}),c&&u&&(o=pg(_,parseInt(c),parseInt(u),a,l,f,p,d)),t(o)})})}}else o.rx_bytes=ct[n].rx_bytes,o.tx_bytes=ct[n].tx_bytes,o.rx_sec=ct[n].rx_sec,o.tx_sec=ct[n].tx_sec,o.ms=ct[n].last_ms,o.operstate=ct[n].operstate,t(o)})})}Sa.networkStats=NH;function lge(r,e){let t="";return r.forEach(n=>{let s=n.split(" ");(parseInt(s[0],10)||-1)===e&&(s.shift(),t=s.join(" ").split(":")[0])}),t=t.split(" -")[0],t=t.split(" /")[0],t}function fge(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(Yi||Ws||Ys||zs){let n='export LC_ALL=C; netstat -tunap | grep "ESTABLISHED\\|SYN_SENT\\|SYN_RECV\\|FIN_WAIT1\\|FIN_WAIT2\\|TIME_WAIT\\|CLOSE\\|CLOSE_WAIT\\|LAST_ACK\\|LISTEN\\|CLOSING\\|UNKNOWN"; unset LC_ALL';(Ws||Ys||zs)&&(n='export LC_ALL=C; netstat -na | grep "ESTABLISHED\\|SYN_SENT\\|SYN_RECV\\|FIN_WAIT1\\|FIN_WAIT2\\|TIME_WAIT\\|CLOSE\\|CLOSE_WAIT\\|LAST_ACK\\|LISTEN\\|CLOSING\\|UNKNOWN"; unset LC_ALL'),dn(n,{maxBuffer:1024*2e4},function(s,i){let o=i.toString().split(`
452
+ `),g.length>1&&g[1].trim()!=="")){h=g[1].replace(/ +/g," ").split(" ");let T=h.length>11?1:0;c=parseInt(h[T+5]),l=parseInt(h[T+10]),f=parseInt(h[T+4]),u=parseInt(h[T+8]),p=parseInt(h[T+10]),d=parseInt(h[T+7]),o=pg(n,c,u,o.operstate,l,f,p,d)}t(o)})})),Rf){let E=[],_=n;he.powerShell("Get-CimInstance Win32_PerfRawData_Tcpip_NetworkInterface | select Name,BytesReceivedPersec,PacketsReceivedErrors,PacketsReceivedDiscarded,BytesSentPersec,PacketsOutboundErrors,PacketsOutboundDiscarded | fl").then((S,y)=>{if(!y){let T=S.toString().split(/\n\s*\n/);E=e(T)}V1(!1).then(T=>{c=0,u=0,E.forEach(b=>{T.forEach(v=>{(v.iface.toLowerCase()===n.toLowerCase()||v.mac.toLowerCase()===n.toLowerCase()||v.ip4.toLowerCase()===n.toLowerCase()||v.ip6.toLowerCase()===n.toLowerCase()||v.ifaceName.replace(/[()[\] ]+/g,"").replace(/#|\//g,"_").toLowerCase()===n.replace(/[()[\] ]+/g,"").replace("#","_").toLowerCase())&&v.ifaceName.replace(/[()[\] ]+/g,"").replace(/#|\//g,"_").toLowerCase()===b.name&&(_=v.iface,c=b.rx_bytes,l=b.rx_dropped,f=b.rx_errors,u=b.tx_bytes,p=b.tx_dropped,d=b.tx_errors,a=v.operstate)})}),c&&u&&(o=pg(_,parseInt(c),parseInt(u),a,l,f,p,d)),t(o)})})}}else o.rx_bytes=ct[n].rx_bytes,o.tx_bytes=ct[n].tx_bytes,o.rx_sec=ct[n].rx_sec,o.tx_sec=ct[n].tx_sec,o.ms=ct[n].last_ms,o.operstate=ct[n].operstate,t(o)})})}Sa.networkStats=NH;function lge(r,e){let t="";return r.forEach(n=>{let s=n.split(" ");(parseInt(s[0],10)||-1)===e&&(s.shift(),t=s.join(" ").split(":")[0])}),t=t.split(" -")[0],t=t.split(" /")[0],t}function fge(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(Yi||Ws||Ys||zs){let n='export LC_ALL=C; netstat -tunap | grep "ESTABLISHED\\|SYN_SENT\\|SYN_RECV\\|FIN_WAIT1\\|FIN_WAIT2\\|TIME_WAIT\\|CLOSE\\|CLOSE_WAIT\\|LAST_ACK\\|LISTEN\\|CLOSING\\|UNKNOWN"; unset LC_ALL';(Ws||Ys||zs)&&(n='export LC_ALL=C; netstat -na | grep "ESTABLISHED\\|SYN_SENT\\|SYN_RECV\\|FIN_WAIT1\\|FIN_WAIT2\\|TIME_WAIT\\|CLOSE\\|CLOSE_WAIT\\|LAST_ACK\\|LISTEN\\|CLOSING\\|UNKNOWN"; unset LC_ALL'),dn(n,{maxBuffer:1024*2e4},function(s,i){let o=i.toString().split(`
453
453
  `);!s&&(o.length>1||o[0]!="")?(o.forEach(function(a){if(a=a.replace(/ +/g," ").split(" "),a.length>=7){let c=a[3],u="",l=a[3].split(":");l.length>1&&(u=l[l.length-1],l.pop(),c=l.join(":"));let f=a[4],p="",d=a[4].split(":");d.length>1&&(p=d[d.length-1],d.pop(),f=d.join(":"));let m=a[5],g=a[6].split("/");m&&t.push({protocol:a[0],localAddress:c,localPort:u,peerAddress:f,peerPort:p,state:m,pid:g[0]&&g[0]!=="-"?parseInt(g[0],10):null,process:g[1]?g[1].split(" ")[0].split(":")[0]:""})}}),r&&r(t),e(t)):(n='ss -tunap | grep "ESTAB\\|SYN-SENT\\|SYN-RECV\\|FIN-WAIT1\\|FIN-WAIT2\\|TIME-WAIT\\|CLOSE\\|CLOSE-WAIT\\|LAST-ACK\\|LISTEN\\|CLOSING"',dn(n,{maxBuffer:1024*2e4},function(a,c){a||c.toString().split(`
454
454
  `).forEach(function(l){if(l=l.replace(/ +/g," ").split(" "),l.length>=6){let f=l[4],p="",d=l[4].split(":");d.length>1&&(p=d[d.length-1],d.pop(),f=d.join(":"));let m=l[5],g="",h=l[5].split(":");h.length>1&&(g=h[h.length-1],h.pop(),m=h.join(":"));let E=l[1];E==="ESTAB"&&(E="ESTABLISHED"),E==="TIME-WAIT"&&(E="TIME_WAIT");let _=null,S="";if(l.length>=7&&l[6].indexOf("users:")>-1){let y=l[6].replace('users:(("',"").replace(/"/g,"").split(",");y.length>2&&(S=y[0].split(" ")[0].split(":")[0],_=parseInt(y[1],10))}E&&t.push({protocol:l[0],localAddress:f,localPort:p,peerAddress:m,peerPort:g,state:E,pid:_,process:S})}}),r&&r(t),e(t)}))})}if(zi){let n='netstat -natvln | head -n2; netstat -natvln | grep "tcp4\\|tcp6\\|udp4\\|udp6"',s="ESTABLISHED|SYN_SENT|SYN_RECV|FIN_WAIT1|FIN_WAIT_1|FIN_WAIT2|FIN_WAIT_2|TIME_WAIT|CLOSE|CLOSE_WAIT|LAST_ACK|LISTEN|CLOSING|UNKNOWN".split("|");dn(n,{maxBuffer:1024*2e4},function(i,o){i||dn("ps -axo pid,command",{maxBuffer:1024*2e4},function(a,c){let u=c.toString().split(`
455
455
  `);u=u.map((p=>p.trim().replace(/ +/g," ")));let l=o.toString().split(`
456
- `);l.shift();let f=8;l.length>1&&l[0].indexOf("pid")>0&&(f=(l.shift()||"").replace(/ Address/g,"_Address").replace(/process:/g,"").replace(/ +/g," ").split(" ").indexOf("pid")),l.forEach(function(p){if(p=p.replace(/ +/g," ").split(" "),p.length>=8){let d=p[3],m="",g=p[3].split(".");g.length>1&&(m=g[g.length-1],g.pop(),d=g.join("."));let h=p[4],E="",_=p[4].split(".");_.length>1&&(E=_[_.length-1],_.pop(),h=_.join("."));let S=s.indexOf(p[5])>=0,y=S?p[5]:"UNKNOWN",T="";p[p.length-9].indexOf(":")>=0?T=p[p.length-9].split(":")[1]:(T=p[f+(S?0:-1)],T.indexOf(":")>=0&&(T=T.split(":")[1]));let I=parseInt(T,10);y&&t.push({protocol:p[0],localAddress:d,localPort:m,peerAddress:h,peerPort:E,state:y,pid:I,process:lge(u,I)})}}),r&&r(t),e(t)})})}if(Rf){let n="netstat -nao";try{dn(n,he.execOptsWin,function(s,i){s||(i.toString().split(`\r
456
+ `);l.shift();let f=8;l.length>1&&l[0].indexOf("pid")>0&&(f=(l.shift()||"").replace(/ Address/g,"_Address").replace(/process:/g,"").replace(/ +/g," ").split(" ").indexOf("pid")),l.forEach(function(p){if(p=p.replace(/ +/g," ").split(" "),p.length>=8){let d=p[3],m="",g=p[3].split(".");g.length>1&&(m=g[g.length-1],g.pop(),d=g.join("."));let h=p[4],E="",_=p[4].split(".");_.length>1&&(E=_[_.length-1],_.pop(),h=_.join("."));let S=s.indexOf(p[5])>=0,y=S?p[5]:"UNKNOWN",T="";p[p.length-9].indexOf(":")>=0?T=p[p.length-9].split(":")[1]:(T=p[f+(S?0:-1)],T.indexOf(":")>=0&&(T=T.split(":")[1]));let b=parseInt(T,10);y&&t.push({protocol:p[0],localAddress:d,localPort:m,peerAddress:h,peerPort:E,state:y,pid:b,process:lge(u,b)})}}),r&&r(t),e(t)})})}if(Rf){let n="netstat -nao";try{dn(n,he.execOptsWin,function(s,i){s||(i.toString().split(`\r
457
457
  `).forEach(function(a){if(a=a.trim().replace(/ +/g," ").split(" "),a.length>=4){let c=a[1],u="",l=a[1].split(":");l.length>1&&(u=l[l.length-1],l.pop(),c=l.join(":")),c=c.replace(/\[/g,"").replace(/\]/g,"");let f=a[2],p="",d=a[2].split(":");d.length>1&&(p=d[d.length-1],d.pop(),f=d.join(":")),f=f.replace(/\[/g,"").replace(/\]/g,"");let m=he.toInt(a[4]),g=a[3];g==="HERGESTELLT"&&(g="ESTABLISHED"),g.startsWith("ABH")&&(g="LISTEN"),g==="SCHLIESSEN_WARTEN"&&(g="CLOSE_WAIT"),g==="WARTEND"&&(g="TIME_WAIT"),g==="SYN_GESENDET"&&(g="SYN_SENT"),g==="LISTENING"&&(g="LISTEN"),g==="SYN_RECEIVED"&&(g="SYN_RECV"),g==="FIN_WAIT_1"&&(g="FIN_WAIT1"),g==="FIN_WAIT_2"&&(g="FIN_WAIT2"),a[0].toLowerCase()!=="udp"&&g?t.push({protocol:a[0].toLowerCase(),localAddress:c,localPort:u,peerAddress:f,peerPort:p,state:g,pid:m,process:""}):a[0].toLowerCase()==="udp"&&t.push({protocol:a[0].toLowerCase(),localAddress:c,localPort:u,peerAddress:f,peerPort:p,state:"",pid:parseInt(a[3],10),process:""})}}),r&&r(t),e(t))})}catch{r&&r(t),e(t)}}})})}Sa.networkConnections=fge;function pge(r){return new Promise(e=>{process.nextTick(()=>{let t="";if(Yi||Ws||Ys||zs){let n="ip route get 1";try{dn(n,{maxBuffer:1024*2e4},function(s,i){if(s)r&&r(t),e(t);else{let o=i.toString().split(`
458
458
  `),c=(o&&o[0]?o[0]:"").split(" via ");c&&c[1]&&(c=c[1].split(" "),t=c[0]),r&&r(t),e(t)}})}catch{r&&r(t),e(t)}}if(zi){let n="route -n get default";try{dn(n,{maxBuffer:1024*2e4},function(s,i){if(!s){let o=i.toString().split(`
459
459
  `).map(a=>a.trim());t=he.getValue(o,"gateway")}t?(r&&r(t),e(t)):(n="netstat -rn | awk '/default/ {print $2}'",dn(n,{maxBuffer:1024*2e4},function(o,a){t=a.toString().split(`
@@ -494,16 +494,16 @@ Interface `);return n.shift(),n.forEach(s=>{let i=s.split(`
494
494
  `);for(let p of f){let d=p.split("]");d.length===2&&(n+=(n!==""?"|":"")+d[1].trim())}o=n.split("|")}catch{try{let p=H1("ls /etc/init.d/ -m 2> /dev/null",we.execOptsLinux).toString().split(`
495
495
  `).join("");if(n="",p){let d=p.split(",");for(let m of d){let g=m.trim();g&&(n+=(n!==""?"|":"")+g)}o=n.split("|")}}catch{n="",o=[]}}}_a&&n==="*"&&(e&&e(a),t(a));let u=_a?["-caxo","pcpu,pmem,pid,command"]:["-axo","pcpu,pmem,pid,command"];n!==""&&o.length>0?we.execSafe("ps",u).then(l=>{if(l){let f=l.replace(/ +/g," ").replace(/,+/g,".").split(`
496
496
  `);if(o.forEach(function(p){let d;_a?d=f.filter(function(g){return g.toLowerCase().indexOf(p)!==-1}):d=f.filter(function(g){return g.toLowerCase().indexOf(" "+p.toLowerCase()+":")!==-1||g.toLowerCase().indexOf("("+p.toLowerCase()+" ")!==-1||g.toLowerCase().indexOf("("+p.toLowerCase()+")")!==-1||g.toLowerCase().indexOf(" "+p.toLowerCase().replace(/[0-9.]/g,"")+":")!==-1||g.toLowerCase().indexOf("/"+p.toLowerCase())!==-1});let m=[];for(let g of d){let h=g.trim().split(" ")[2];h&&m.push(parseInt(h,10))}a.push({name:p,running:d.length>0,startmode:"",pids:m,cpu:parseFloat(d.reduce(function(g,h){return g+parseFloat(h.trim().split(" ")[0])},0).toFixed(2)),mem:parseFloat(d.reduce(function(g,h){return g+parseFloat(h.trim().split(" ")[1])},0).toFixed(2))})}),bi){let p='cat /proc/stat | grep "cpu "';for(let d in a)for(let m in a[d].pids)p+=";cat /proc/"+a[d].pids[m]+"/stat";Bf(p,{maxBuffer:1024*2e4},function(d,m){let g=m.toString().split(`
497
- `),h=Y1(g.shift()),E={},_={};g.forEach(S=>{if(_=z1(S,h,Cu),_.pid){let y=-1;for(let T in a)for(let I in a[T].pids)parseInt(a[T].pids[I])===parseInt(_.pid)&&(y=T);y>=0&&(a[y].cpu+=_.cpuu+_.cpus),E[_.pid]={cpuu:_.cpuu,cpus:_.cpus,utime:_.utime,stime:_.stime,cutime:_.cutime,cstime:_.cstime}}}),Cu.all=h,Cu.list=Object.assign({},E),Cu.ms=Date.now()-Cu.ms,Cu.result=Object.assign({},a),e&&e(a),t(a)})}else e&&e(a),t(a)}else u=["-o","comm"],we.execSafe("ps",u).then(f=>{if(f){let p=f.replace(/ +/g," ").replace(/,+/g,".").split(`
497
+ `),h=Y1(g.shift()),E={},_={};g.forEach(S=>{if(_=z1(S,h,Cu),_.pid){let y=-1;for(let T in a)for(let b in a[T].pids)parseInt(a[T].pids[b])===parseInt(_.pid)&&(y=T);y>=0&&(a[y].cpu+=_.cpuu+_.cpus),E[_.pid]={cpuu:_.cpuu,cpus:_.cpus,utime:_.utime,stime:_.stime,cutime:_.cutime,cstime:_.cstime}}}),Cu.all=h,Cu.list=Object.assign({},E),Cu.ms=Date.now()-Cu.ms,Cu.result=Object.assign({},a),e&&e(a),t(a)})}else e&&e(a),t(a)}else u=["-o","comm"],we.execSafe("ps",u).then(f=>{if(f){let p=f.replace(/ +/g," ").replace(/,+/g,".").split(`
498
498
  `);o.forEach(function(d){let m=p.filter(function(g){return g.indexOf(d)!==-1});a.push({name:d,running:m.length>0,startmode:"",cpu:0,mem:0})}),e&&e(a),t(a)}else o.forEach(function(p){a.push({name:p,running:!1,startmode:"",cpu:0,mem:0})}),e&&e(a),t(a)})}):(e&&e(a),t(a))}if(W1)try{let u="Get-CimInstance Win32_Service";o[0]!=="*"&&(u+=' -Filter "',o.forEach(l=>{u+=`Name='${l}' or `}),u=`${u.slice(0,-4)}"`),u+=" | select Name,Caption,Started,StartMode,ProcessId | fl",we.powerShell(u).then((l,f)=>{f?(o.forEach(function(p){a.push({name:p,running:!1,startmode:"",cpu:0,mem:0})}),e&&e(a),t(a)):(l.split(/\n\s*\n/).forEach(d=>{if(d.trim()!==""){let m=d.trim().split(`\r
499
- `),g=we.getValue(m,"Name",":",!0).toLowerCase(),h=we.getValue(m,"Caption",":",!0).toLowerCase(),E=we.getValue(m,"Started",":",!0),_=we.getValue(m,"StartMode",":",!0),S=we.getValue(m,"ProcessId",":",!0);(n==="*"||o.indexOf(g)>=0||o.indexOf(h)>=0)&&(a.push({name:g,running:E.toLowerCase()==="true",startmode:_,pids:[S],cpu:0,mem:0}),c.push(g),c.push(h))}}),n!=="*"&&o.filter(function(m){return c.indexOf(m)===-1}).forEach(function(m){a.push({name:m,running:!1,startmode:"",pids:[],cpu:0,mem:0})}),e&&e(a),t(a))})}catch{e&&e(a),t(a)}}else e&&e([]),t([])})})}_g.services=vge;function Y1(r){let e=r.replace(/ +/g," ").split(" "),t=e.length>=2?parseInt(e[1]):0,n=e.length>=3?parseInt(e[2]):0,s=e.length>=4?parseInt(e[3]):0,i=e.length>=5?parseInt(e[4]):0,o=e.length>=6?parseInt(e[5]):0,a=e.length>=7?parseInt(e[6]):0,c=e.length>=8?parseInt(e[7]):0,u=e.length>=9?parseInt(e[8]):0,l=e.length>=10?parseInt(e[9]):0,f=e.length>=11?parseInt(e[10]):0;return t+n+s+i+o+a+c+u+l+f}function z1(r,e,t){let n=r.replace(/ +/g," ").split(")");if(n.length>=2){let s=n[1].split(" ");if(s.length>=16){let i=parseInt(n[0].split(" ")[0]),o=parseInt(s[12]),a=parseInt(s[13]),c=parseInt(s[14]),u=parseInt(s[15]),l=0,f=0;return t.all>0&&t.list[i]?(l=(o+c-t.list[i].utime-t.list[i].cutime)/(e-t.all)*100,f=(a+u-t.list[i].stime-t.list[i].cstime)/(e-t.all)*100):(l=(o+c)/e*100,f=(a+u)/e*100),{pid:i,utime:o,stime:a,cutime:c,cstime:u,cpuu:l,cpus:f}}else return{pid:0,utime:0,stime:0,cutime:0,cstime:0,cpuu:0,cpus:0}}else return{pid:0,utime:0,stime:0,cutime:0,cstime:0,cpuu:0,cpus:0}}function qH(r,e,t){let n=0,s=0;return t.all>0&&t.list[r.pid]?(n=(r.utime-t.list[r.pid].utime)/(e-t.all)*100,s=(r.stime-t.list[r.pid].stime)/(e-t.all)*100):(n=r.utime/e*100,s=r.stime/e*100),{pid:r.pid,utime:r.utime,stime:r.stime,cpuu:n>0?n:0,cpus:s>0?s:0}}function Dge(r){let e=[];function t(o){o=o||"";let a=o.split(" ")[0];if(a.substr(-1)===":"&&(a=a.substr(0,a.length-1)),a.substr(0,1)!=="["){let c=a.split("/");isNaN(parseInt(c[c.length-1]))?a=c[c.length-1]:a=c[0]}return a}function n(o){let a=0,c=0;function u(D){a=c,e[D]?c=o.substring(e[D].to+a,1e4).indexOf(" "):c=1e4}u(0);let l=parseInt(o.substring(e[0].from+a,e[0].to+c));u(1);let f=parseInt(o.substring(e[1].from+a,e[1].to+c));u(2);let p=parseFloat(o.substring(e[2].from+a,e[2].to+c).replace(/,/g,"."));u(3);let d=parseFloat(o.substring(e[3].from+a,e[3].to+c).replace(/,/g,"."));u(4);let m=parseInt(o.substring(e[4].from+a,e[4].to+c));u(5);let g=parseInt(o.substring(e[5].from+a,e[5].to+c));u(6);let h=parseInt(o.substring(e[6].from+a,e[6].to+c));u(7);let E=parseInt(o.substring(e[7].from+a,e[7].to+c))||0;u(8);let _=Eg?Oge(o.substring(e[8].from+a,e[8].to+c).trim()):Cge(o.substring(e[8].from+a,e[8].to+c).trim());u(9);let S=o.substring(e[9].from+a,e[9].to+c).trim();S=S[0]==="R"?"running":S[0]==="S"?"sleeping":S[0]==="T"?"stopped":S[0]==="W"?"paging":S[0]==="X"?"dead":S[0]==="Z"?"zombie":S[0]==="D"||S[0]==="U"?"blocked":"unknown",u(10);let y=o.substring(e[10].from+a,e[10].to+c).trim();(y==="?"||y==="??")&&(y=""),u(11);let T=o.substring(e[11].from+a,e[11].to+c).trim();u(12);let I="",v="",x="",A=o.substring(e[12].from+a,e[12].to+c).trim();if(A.substr(A.length-1)==="]"&&(A=A.slice(0,-1)),A.substr(0,1)==="[")v=A.substring(1);else{let D=A.indexOf("("),P=A.indexOf(")"),F=A.indexOf("/"),V=A.indexOf(":");if(D<P&&D<F&&F<P)v=A.split(" ")[0],v=v.replace(/:/g,"");else if(V>0&&(F===-1||F>3))v=A.split(" ")[0],v=v.replace(/:/g,"");else{let H=A.indexOf(" -"),k=A.indexOf(" /");H=H>=0?H:1e4,k=k>=0?k:1e4;let X=Math.min(H,k),ee=A.substr(0,X),ne=A.substr(X),ie=ee.lastIndexOf("/");if(ie>=0&&(I=ee.substr(0,ie),ee=ee.substr(ie+1)),X===1e4&&ee.indexOf(" ")>-1){let Ee=ee.split(" ");yge.existsSync(Age.join(I,Ee[0]))?(v=Ee.shift(),x=(Ee.join(" ")+" "+ne).trim()):(v=ee.trim(),x=ne.trim())}else v=ee.trim(),x=ne.trim()}}return{pid:l,parentPid:f,name:bi?t(v):v,cpu:p,cpuu:0,cpus:0,mem:d,priority:m,memVsz:g,memRss:h,nice:E,started:_,state:S,tty:y,user:T,command:v,params:x,path:I}}function s(o){let a=[];if(o.length>1){let c=o[0];e=we.parseHead(c,8),o.shift(),o.forEach(function(u){u.trim()!==""&&a.push(n(u))})}return a}function i(o){function a(l){let f=("0"+(l.getMonth()+1).toString()).slice(-2),p=l.getFullYear().toString(),d=("0"+l.getDate().toString()).slice(-2),m=("0"+l.getHours().toString()).slice(-2),g=("0"+l.getMinutes().toString()).slice(-2),h=("0"+l.getSeconds().toString()).slice(-2);return p+"-"+f+"-"+d+" "+m+":"+g+":"+h}function c(l){let f="";if(l.indexOf("d")>=0){let p=l.split("d");f=a(new Date(Date.now()-(p[0]*24+p[1]*1)*60*60*1e3))}else if(l.indexOf("h")>=0){let p=l.split("h");f=a(new Date(Date.now()-(p[0]*60+p[1]*1)*60*1e3))}else if(l.indexOf(":")>=0){let p=l.split(":");f=a(new Date(Date.now()-(p.length>1?(p[0]*60+p[1])*1e3:p[0]*1e3)))}return f}let u=[];return o.forEach(function(l){if(l.trim()!==""){l=l.trim().replace(/ +/g," ").replace(/,+/g,".");let f=l.split(" "),p=f.slice(9).join(" "),d=parseFloat((1*parseInt(f[3])*1024/Sg.totalmem()).toFixed(1)),m=c(f[5]);u.push({pid:parseInt(f[0]),parentPid:parseInt(f[1]),name:t(p),cpu:0,cpuu:0,cpus:0,mem:d,priority:0,memVsz:parseInt(f[2]),memRss:parseInt(f[3]),nice:parseInt(f[4]),started:m,state:f[6]==="R"?"running":f[6]==="S"?"sleeping":f[6]==="T"?"stopped":f[6]==="W"?"paging":f[6]==="X"?"dead":f[6]==="Z"?"zombie":f[6]==="D"||f[6]==="U"?"blocked":"unknown",tty:f[7],user:f[8],command:p})}}),u}return new Promise(o=>{process.nextTick(()=>{let a={all:0,running:0,blocked:0,sleeping:0,unknown:0,list:[]},c="";if(Qt.ms&&Date.now()-Qt.ms>=500||Qt.ms===0)if(bi||Uf||Ff||Vf||_a||Eg)bi&&(c="export LC_ALL=C; ps -axo pid:11,ppid:11,pcpu:6,pmem:6,pri:5,vsz:11,rss:11,ni:5,etime:30,state:5,tty:15,user:20,command; unset LC_ALL"),(Uf||Ff||Vf)&&(c="export LC_ALL=C; ps -axo pid,ppid,pcpu,pmem,pri,vsz,rss,ni,etime,state,tty,user,command; unset LC_ALL"),_a&&(c="ps -axo pid,ppid,pcpu,pmem,pri,vsz=temp_title_1,rss=temp_title_2,nice,etime=temp_title_3,state,tty,user,command -r"),Eg&&(c="ps -Ao pid,ppid,pcpu,pmem,pri,vsz,rss,nice,stime,s,tty,user,comm"),Bf(c,{maxBuffer:1024*2e4},function(u,l){!u&&l.toString().trim()?(a.list=s(l.toString().split(`
499
+ `),g=we.getValue(m,"Name",":",!0).toLowerCase(),h=we.getValue(m,"Caption",":",!0).toLowerCase(),E=we.getValue(m,"Started",":",!0),_=we.getValue(m,"StartMode",":",!0),S=we.getValue(m,"ProcessId",":",!0);(n==="*"||o.indexOf(g)>=0||o.indexOf(h)>=0)&&(a.push({name:g,running:E.toLowerCase()==="true",startmode:_,pids:[S],cpu:0,mem:0}),c.push(g),c.push(h))}}),n!=="*"&&o.filter(function(m){return c.indexOf(m)===-1}).forEach(function(m){a.push({name:m,running:!1,startmode:"",pids:[],cpu:0,mem:0})}),e&&e(a),t(a))})}catch{e&&e(a),t(a)}}else e&&e([]),t([])})})}_g.services=vge;function Y1(r){let e=r.replace(/ +/g," ").split(" "),t=e.length>=2?parseInt(e[1]):0,n=e.length>=3?parseInt(e[2]):0,s=e.length>=4?parseInt(e[3]):0,i=e.length>=5?parseInt(e[4]):0,o=e.length>=6?parseInt(e[5]):0,a=e.length>=7?parseInt(e[6]):0,c=e.length>=8?parseInt(e[7]):0,u=e.length>=9?parseInt(e[8]):0,l=e.length>=10?parseInt(e[9]):0,f=e.length>=11?parseInt(e[10]):0;return t+n+s+i+o+a+c+u+l+f}function z1(r,e,t){let n=r.replace(/ +/g," ").split(")");if(n.length>=2){let s=n[1].split(" ");if(s.length>=16){let i=parseInt(n[0].split(" ")[0]),o=parseInt(s[12]),a=parseInt(s[13]),c=parseInt(s[14]),u=parseInt(s[15]),l=0,f=0;return t.all>0&&t.list[i]?(l=(o+c-t.list[i].utime-t.list[i].cutime)/(e-t.all)*100,f=(a+u-t.list[i].stime-t.list[i].cstime)/(e-t.all)*100):(l=(o+c)/e*100,f=(a+u)/e*100),{pid:i,utime:o,stime:a,cutime:c,cstime:u,cpuu:l,cpus:f}}else return{pid:0,utime:0,stime:0,cutime:0,cstime:0,cpuu:0,cpus:0}}else return{pid:0,utime:0,stime:0,cutime:0,cstime:0,cpuu:0,cpus:0}}function qH(r,e,t){let n=0,s=0;return t.all>0&&t.list[r.pid]?(n=(r.utime-t.list[r.pid].utime)/(e-t.all)*100,s=(r.stime-t.list[r.pid].stime)/(e-t.all)*100):(n=r.utime/e*100,s=r.stime/e*100),{pid:r.pid,utime:r.utime,stime:r.stime,cpuu:n>0?n:0,cpus:s>0?s:0}}function Dge(r){let e=[];function t(o){o=o||"";let a=o.split(" ")[0];if(a.substr(-1)===":"&&(a=a.substr(0,a.length-1)),a.substr(0,1)!=="["){let c=a.split("/");isNaN(parseInt(c[c.length-1]))?a=c[c.length-1]:a=c[0]}return a}function n(o){let a=0,c=0;function u(D){a=c,e[D]?c=o.substring(e[D].to+a,1e4).indexOf(" "):c=1e4}u(0);let l=parseInt(o.substring(e[0].from+a,e[0].to+c));u(1);let f=parseInt(o.substring(e[1].from+a,e[1].to+c));u(2);let p=parseFloat(o.substring(e[2].from+a,e[2].to+c).replace(/,/g,"."));u(3);let d=parseFloat(o.substring(e[3].from+a,e[3].to+c).replace(/,/g,"."));u(4);let m=parseInt(o.substring(e[4].from+a,e[4].to+c));u(5);let g=parseInt(o.substring(e[5].from+a,e[5].to+c));u(6);let h=parseInt(o.substring(e[6].from+a,e[6].to+c));u(7);let E=parseInt(o.substring(e[7].from+a,e[7].to+c))||0;u(8);let _=Eg?Oge(o.substring(e[8].from+a,e[8].to+c).trim()):Cge(o.substring(e[8].from+a,e[8].to+c).trim());u(9);let S=o.substring(e[9].from+a,e[9].to+c).trim();S=S[0]==="R"?"running":S[0]==="S"?"sleeping":S[0]==="T"?"stopped":S[0]==="W"?"paging":S[0]==="X"?"dead":S[0]==="Z"?"zombie":S[0]==="D"||S[0]==="U"?"blocked":"unknown",u(10);let y=o.substring(e[10].from+a,e[10].to+c).trim();(y==="?"||y==="??")&&(y=""),u(11);let T=o.substring(e[11].from+a,e[11].to+c).trim();u(12);let b="",v="",x="",A=o.substring(e[12].from+a,e[12].to+c).trim();if(A.substr(A.length-1)==="]"&&(A=A.slice(0,-1)),A.substr(0,1)==="[")v=A.substring(1);else{let D=A.indexOf("("),P=A.indexOf(")"),F=A.indexOf("/"),V=A.indexOf(":");if(D<P&&D<F&&F<P)v=A.split(" ")[0],v=v.replace(/:/g,"");else if(V>0&&(F===-1||F>3))v=A.split(" ")[0],v=v.replace(/:/g,"");else{let H=A.indexOf(" -"),k=A.indexOf(" /");H=H>=0?H:1e4,k=k>=0?k:1e4;let X=Math.min(H,k),ee=A.substr(0,X),ne=A.substr(X),ie=ee.lastIndexOf("/");if(ie>=0&&(b=ee.substr(0,ie),ee=ee.substr(ie+1)),X===1e4&&ee.indexOf(" ")>-1){let Ee=ee.split(" ");yge.existsSync(Age.join(b,Ee[0]))?(v=Ee.shift(),x=(Ee.join(" ")+" "+ne).trim()):(v=ee.trim(),x=ne.trim())}else v=ee.trim(),x=ne.trim()}}return{pid:l,parentPid:f,name:bi?t(v):v,cpu:p,cpuu:0,cpus:0,mem:d,priority:m,memVsz:g,memRss:h,nice:E,started:_,state:S,tty:y,user:T,command:v,params:x,path:b}}function s(o){let a=[];if(o.length>1){let c=o[0];e=we.parseHead(c,8),o.shift(),o.forEach(function(u){u.trim()!==""&&a.push(n(u))})}return a}function i(o){function a(l){let f=("0"+(l.getMonth()+1).toString()).slice(-2),p=l.getFullYear().toString(),d=("0"+l.getDate().toString()).slice(-2),m=("0"+l.getHours().toString()).slice(-2),g=("0"+l.getMinutes().toString()).slice(-2),h=("0"+l.getSeconds().toString()).slice(-2);return p+"-"+f+"-"+d+" "+m+":"+g+":"+h}function c(l){let f="";if(l.indexOf("d")>=0){let p=l.split("d");f=a(new Date(Date.now()-(p[0]*24+p[1]*1)*60*60*1e3))}else if(l.indexOf("h")>=0){let p=l.split("h");f=a(new Date(Date.now()-(p[0]*60+p[1]*1)*60*1e3))}else if(l.indexOf(":")>=0){let p=l.split(":");f=a(new Date(Date.now()-(p.length>1?(p[0]*60+p[1])*1e3:p[0]*1e3)))}return f}let u=[];return o.forEach(function(l){if(l.trim()!==""){l=l.trim().replace(/ +/g," ").replace(/,+/g,".");let f=l.split(" "),p=f.slice(9).join(" "),d=parseFloat((1*parseInt(f[3])*1024/Sg.totalmem()).toFixed(1)),m=c(f[5]);u.push({pid:parseInt(f[0]),parentPid:parseInt(f[1]),name:t(p),cpu:0,cpuu:0,cpus:0,mem:d,priority:0,memVsz:parseInt(f[2]),memRss:parseInt(f[3]),nice:parseInt(f[4]),started:m,state:f[6]==="R"?"running":f[6]==="S"?"sleeping":f[6]==="T"?"stopped":f[6]==="W"?"paging":f[6]==="X"?"dead":f[6]==="Z"?"zombie":f[6]==="D"||f[6]==="U"?"blocked":"unknown",tty:f[7],user:f[8],command:p})}}),u}return new Promise(o=>{process.nextTick(()=>{let a={all:0,running:0,blocked:0,sleeping:0,unknown:0,list:[]},c="";if(Qt.ms&&Date.now()-Qt.ms>=500||Qt.ms===0)if(bi||Uf||Ff||Vf||_a||Eg)bi&&(c="export LC_ALL=C; ps -axo pid:11,ppid:11,pcpu:6,pmem:6,pri:5,vsz:11,rss:11,ni:5,etime:30,state:5,tty:15,user:20,command; unset LC_ALL"),(Uf||Ff||Vf)&&(c="export LC_ALL=C; ps -axo pid,ppid,pcpu,pmem,pri,vsz,rss,ni,etime,state,tty,user,command; unset LC_ALL"),_a&&(c="ps -axo pid,ppid,pcpu,pmem,pri,vsz=temp_title_1,rss=temp_title_2,nice,etime=temp_title_3,state,tty,user,command -r"),Eg&&(c="ps -Ao pid,ppid,pcpu,pmem,pri,vsz,rss,nice,stime,s,tty,user,comm"),Bf(c,{maxBuffer:1024*2e4},function(u,l){!u&&l.toString().trim()?(a.list=s(l.toString().split(`
500
500
  `)).slice(),a.all=a.list.length,a.running=a.list.filter(function(f){return f.state==="running"}).length,a.blocked=a.list.filter(function(f){return f.state==="blocked"}).length,a.sleeping=a.list.filter(function(f){return f.state==="sleeping"}).length,bi?(c='cat /proc/stat | grep "cpu "',a.list.forEach(f=>{c+=";cat /proc/"+f.pid+"/stat"}),Bf(c,{maxBuffer:1024*2e4},function(f,p){let d=p.toString().split(`
501
501
  `),m=Y1(d.shift()),g={},h={};d.forEach(E=>{if(h=z1(E,m,Qt),h.pid){let _=a.list.map(function(S){return S.pid}).indexOf(h.pid);_>=0&&(a.list[_].cpu=h.cpuu+h.cpus,a.list[_].cpuu=h.cpuu,a.list[_].cpus=h.cpus),g[h.pid]={cpuu:h.cpuu,cpus:h.cpus,utime:h.utime,stime:h.stime,cutime:h.cutime,cstime:h.cstime}}}),Qt.all=m,Qt.list=Object.assign({},g),Qt.ms=Date.now()-Qt.ms,Qt.result=Object.assign({},a),r&&r(a),o(a)})):(r&&r(a),o(a))):(c="ps -o pid,ppid,vsz,rss,nice,etime,stat,tty,user,comm",Eg&&(c="ps -o pid,ppid,vsz,rss,nice,etime,s,tty,user,comm"),Bf(c,{maxBuffer:1024*2e4},function(f,p){if(f)r&&r(a),o(a);else{let d=p.toString().split(`
502
502
  `);d.shift(),a.list=i(d).slice(),a.all=a.list.length,a.running=a.list.filter(function(m){return m.state==="running"}).length,a.blocked=a.list.filter(function(m){return m.state==="blocked"}).length,a.sleeping=a.list.filter(function(m){return m.state==="sleeping"}).length,r&&r(a),o(a)}}))});else if(W1)try{we.powerShell('Get-CimInstance Win32_Process | select-Object ProcessId,ParentProcessId,ExecutionState,Caption,CommandLine,ExecutablePath,UserModeTime,KernelModeTime,WorkingSetSize,Priority,PageFileUsage, @{n="CreationDate";e={$_.CreationDate.ToString("yyyy-MM-dd HH:mm:ss")}} | fl').then((u,l)=>{if(!l){let f=u.split(/\n\s*\n/),p=[],d=[],m={},g=0,h=0;f.forEach(E=>{if(E.trim()!==""){let _=E.trim().split(`\r
503
- `),S=parseInt(we.getValue(_,"ProcessId",":",!0),10),y=parseInt(we.getValue(_,"ParentProcessId",":",!0),10),T=we.getValue(_,"ExecutionState",":"),I=we.getValue(_,"Caption",":",!0),v=we.getValue(_,"CommandLine",":",!0),x=!1;_.forEach(V=>{x&&V.toLowerCase().startsWith(" ")?v+=" "+V.trim():x=!1,V.toLowerCase().startsWith("commandline")&&(x=!0)});let A=we.getValue(_,"ExecutablePath",":",!0),D=parseInt(we.getValue(_,"UserModeTime",":",!0),10),P=parseInt(we.getValue(_,"KernelModeTime",":",!0),10),F=parseInt(we.getValue(_,"WorkingSetSize",":",!0),10);g=g+D,h=h+P,a.all++,T||a.unknown++,T==="3"&&a.running++,(T==="4"||T==="5")&&a.blocked++,d.push({pid:S,utime:D,stime:P,cpu:0,cpuu:0,cpus:0}),p.push({pid:S,parentPid:y,name:I,cpu:0,cpuu:0,cpus:0,mem:F/Sg.totalmem()*100,priority:parseInt(we.getValue(_,"Priority",":",!0),10),memVsz:parseInt(we.getValue(_,"PageFileUsage",":",!0),10),memRss:Math.floor(parseInt(we.getValue(_,"WorkingSetSize",":",!0),10)/1024),nice:0,started:we.getValue(_,"CreationDate",":",!0),state:T?jH[T]:jH[0],tty:"",user:"",command:v||I,path:A,params:""})}}),a.sleeping=a.all-a.running-a.blocked-a.unknown,a.list=p,d.forEach(E=>{let _=qH(E,g+h,Qt),S=a.list.map(function(y){return y.pid}).indexOf(_.pid);S>=0&&(a.list[S].cpu=_.cpuu+_.cpus,a.list[S].cpuu=_.cpuu,a.list[S].cpus=_.cpus),m[_.pid]={cpuu:_.cpuu,cpus:_.cpus,utime:_.utime,stime:_.stime}}),Qt.all=g+h,Qt.all_utime=g,Qt.all_stime=h,Qt.list=Object.assign({},m),Qt.ms=Date.now()-Qt.ms,Qt.result=Object.assign({},a)}r&&r(a),o(a)})}catch{r&&r(a),o(a)}else r&&r(a),o(a);else r&&r(Qt.result),o(Qt.result)})})}_g.processes=Dge;function xge(r,e){return we.isFunction(r)&&!e&&(e=r,r=""),new Promise(t=>{process.nextTick(()=>{if(r=r||"",typeof r!="string")return e&&e([]),t([]);let n="";try{n.__proto__.toLowerCase=we.stringToLower,n.__proto__.replace=we.stringReplace,n.__proto__.toString=we.stringToString,n.__proto__.substr=we.stringSubstr,n.__proto__.substring=we.stringSubstring,n.__proto__.trim=we.stringTrim,n.__proto__.startsWith=we.stringStartWith}catch{Object.setPrototypeOf(n,we.stringObj)}let s=we.sanitizeShellString(r),i=we.mathMin(s.length,2e3);for(let u=0;u<=i;u++)s[u]!==void 0&&(n=n+s[u]);n=n.trim().toLowerCase().replace(/, /g,"|").replace(/,+/g,"|"),n===""&&(n="*"),we.isPrototypePolluted()&&n!=="*"&&(n="------");let o=n.split("|"),a=[];if((we.isPrototypePolluted()?"":we.sanitizeShellString(r)||"*")&&o.length&&o[0]!=="------"){if(W1)try{we.powerShell("Get-CimInstance Win32_Process | select ProcessId,Caption,UserModeTime,KernelModeTime,WorkingSetSize | fl").then((u,l)=>{if(!l){let f=u.split(/\n\s*\n/),p=[],d={},m=0,g=0;f.forEach(h=>{if(h.trim()!==""){let E=h.trim().split(`\r
504
- `),_=parseInt(we.getValue(E,"ProcessId",":",!0),10),S=we.getValue(E,"Caption",":",!0),y=parseInt(we.getValue(E,"UserModeTime",":",!0),10),T=parseInt(we.getValue(E,"KernelModeTime",":",!0),10),I=parseInt(we.getValue(E,"WorkingSetSize",":",!0),10);m=m+y,g=g+T,p.push({pid:_,name:S,utime:y,stime:T,cpu:0,cpuu:0,cpus:0,mem:I});let v="",x=!1;if(o.forEach(function(A){S.toLowerCase().indexOf(A.toLowerCase())>=0&&!x&&(x=!0,v=A)}),n==="*"||x){let A=!1;a.forEach(function(D){D.proc.toLowerCase()===v.toLowerCase()&&(D.pids.push(_),D.mem+=I/Sg.totalmem()*100,A=!0)}),A||a.push({proc:v,pid:_,pids:[_],cpu:0,mem:I/Sg.totalmem()*100})}}}),n!=="*"&&o.filter(function(E){return p.filter(function(_){return _.name.toLowerCase().indexOf(E)>=0}).length===0}).forEach(function(E){a.push({proc:E,pid:null,pids:[],cpu:0,mem:0})}),p.forEach(h=>{let E=qH(h,m+g,Qr),_=-1;for(let S=0;S<a.length;S++)(a[S].pid===E.pid||a[S].pids.indexOf(E.pid)>=0)&&(_=S);_>=0&&(a[_].cpu+=E.cpuu+E.cpus),d[E.pid]={cpuu:E.cpuu,cpus:E.cpus,utime:E.utime,stime:E.stime}}),Qr.all=m+g,Qr.all_utime=m,Qr.all_stime=g,Qr.list=Object.assign({},d),Qr.ms=Date.now()-Qr.ms,Qr.result=JSON.parse(JSON.stringify(a)),e&&e(a),t(a)}})}catch{e&&e(a),t(a)}if(_a||bi||Uf||Ff||Vf){let u=["-axo","pid,ppid,pcpu,pmem,comm"];we.execSafe("ps",u).then(l=>{if(l){let f=[],p=l.toString().split(`
503
+ `),S=parseInt(we.getValue(_,"ProcessId",":",!0),10),y=parseInt(we.getValue(_,"ParentProcessId",":",!0),10),T=we.getValue(_,"ExecutionState",":"),b=we.getValue(_,"Caption",":",!0),v=we.getValue(_,"CommandLine",":",!0),x=!1;_.forEach(V=>{x&&V.toLowerCase().startsWith(" ")?v+=" "+V.trim():x=!1,V.toLowerCase().startsWith("commandline")&&(x=!0)});let A=we.getValue(_,"ExecutablePath",":",!0),D=parseInt(we.getValue(_,"UserModeTime",":",!0),10),P=parseInt(we.getValue(_,"KernelModeTime",":",!0),10),F=parseInt(we.getValue(_,"WorkingSetSize",":",!0),10);g=g+D,h=h+P,a.all++,T||a.unknown++,T==="3"&&a.running++,(T==="4"||T==="5")&&a.blocked++,d.push({pid:S,utime:D,stime:P,cpu:0,cpuu:0,cpus:0}),p.push({pid:S,parentPid:y,name:b,cpu:0,cpuu:0,cpus:0,mem:F/Sg.totalmem()*100,priority:parseInt(we.getValue(_,"Priority",":",!0),10),memVsz:parseInt(we.getValue(_,"PageFileUsage",":",!0),10),memRss:Math.floor(parseInt(we.getValue(_,"WorkingSetSize",":",!0),10)/1024),nice:0,started:we.getValue(_,"CreationDate",":",!0),state:T?jH[T]:jH[0],tty:"",user:"",command:v||b,path:A,params:""})}}),a.sleeping=a.all-a.running-a.blocked-a.unknown,a.list=p,d.forEach(E=>{let _=qH(E,g+h,Qt),S=a.list.map(function(y){return y.pid}).indexOf(_.pid);S>=0&&(a.list[S].cpu=_.cpuu+_.cpus,a.list[S].cpuu=_.cpuu,a.list[S].cpus=_.cpus),m[_.pid]={cpuu:_.cpuu,cpus:_.cpus,utime:_.utime,stime:_.stime}}),Qt.all=g+h,Qt.all_utime=g,Qt.all_stime=h,Qt.list=Object.assign({},m),Qt.ms=Date.now()-Qt.ms,Qt.result=Object.assign({},a)}r&&r(a),o(a)})}catch{r&&r(a),o(a)}else r&&r(a),o(a);else r&&r(Qt.result),o(Qt.result)})})}_g.processes=Dge;function xge(r,e){return we.isFunction(r)&&!e&&(e=r,r=""),new Promise(t=>{process.nextTick(()=>{if(r=r||"",typeof r!="string")return e&&e([]),t([]);let n="";try{n.__proto__.toLowerCase=we.stringToLower,n.__proto__.replace=we.stringReplace,n.__proto__.toString=we.stringToString,n.__proto__.substr=we.stringSubstr,n.__proto__.substring=we.stringSubstring,n.__proto__.trim=we.stringTrim,n.__proto__.startsWith=we.stringStartWith}catch{Object.setPrototypeOf(n,we.stringObj)}let s=we.sanitizeShellString(r),i=we.mathMin(s.length,2e3);for(let u=0;u<=i;u++)s[u]!==void 0&&(n=n+s[u]);n=n.trim().toLowerCase().replace(/, /g,"|").replace(/,+/g,"|"),n===""&&(n="*"),we.isPrototypePolluted()&&n!=="*"&&(n="------");let o=n.split("|"),a=[];if((we.isPrototypePolluted()?"":we.sanitizeShellString(r)||"*")&&o.length&&o[0]!=="------"){if(W1)try{we.powerShell("Get-CimInstance Win32_Process | select ProcessId,Caption,UserModeTime,KernelModeTime,WorkingSetSize | fl").then((u,l)=>{if(!l){let f=u.split(/\n\s*\n/),p=[],d={},m=0,g=0;f.forEach(h=>{if(h.trim()!==""){let E=h.trim().split(`\r
504
+ `),_=parseInt(we.getValue(E,"ProcessId",":",!0),10),S=we.getValue(E,"Caption",":",!0),y=parseInt(we.getValue(E,"UserModeTime",":",!0),10),T=parseInt(we.getValue(E,"KernelModeTime",":",!0),10),b=parseInt(we.getValue(E,"WorkingSetSize",":",!0),10);m=m+y,g=g+T,p.push({pid:_,name:S,utime:y,stime:T,cpu:0,cpuu:0,cpus:0,mem:b});let v="",x=!1;if(o.forEach(function(A){S.toLowerCase().indexOf(A.toLowerCase())>=0&&!x&&(x=!0,v=A)}),n==="*"||x){let A=!1;a.forEach(function(D){D.proc.toLowerCase()===v.toLowerCase()&&(D.pids.push(_),D.mem+=b/Sg.totalmem()*100,A=!0)}),A||a.push({proc:v,pid:_,pids:[_],cpu:0,mem:b/Sg.totalmem()*100})}}}),n!=="*"&&o.filter(function(E){return p.filter(function(_){return _.name.toLowerCase().indexOf(E)>=0}).length===0}).forEach(function(E){a.push({proc:E,pid:null,pids:[],cpu:0,mem:0})}),p.forEach(h=>{let E=qH(h,m+g,Qr),_=-1;for(let S=0;S<a.length;S++)(a[S].pid===E.pid||a[S].pids.indexOf(E.pid)>=0)&&(_=S);_>=0&&(a[_].cpu+=E.cpuu+E.cpus),d[E.pid]={cpuu:E.cpuu,cpus:E.cpus,utime:E.utime,stime:E.stime}}),Qr.all=m+g,Qr.all_utime=m,Qr.all_stime=g,Qr.list=Object.assign({},d),Qr.ms=Date.now()-Qr.ms,Qr.result=JSON.parse(JSON.stringify(a)),e&&e(a),t(a)}})}catch{e&&e(a),t(a)}if(_a||bi||Uf||Ff||Vf){let u=["-axo","pid,ppid,pcpu,pmem,comm"];we.execSafe("ps",u).then(l=>{if(l){let f=[],p=l.toString().split(`
505
505
  `).filter(function(d){if(n==="*")return!0;if(d.toLowerCase().indexOf("grep")!==-1)return!1;let m=!1;return o.forEach(function(g){m=m||d.toLowerCase().indexOf(g.toLowerCase())>=0}),m});if(p.shift(),p.forEach(function(d){let m=d.trim().replace(/ +/g," ").split(" ");if(m.length>4){let g=m[4].indexOf("/")>=0?m[4].substring(0,m[4].indexOf("/")):m[4],h=bi?g:m[4].substring(m[4].lastIndexOf("/")+1);f.push({name:h,pid:parseInt(m[0])||0,ppid:parseInt(m[1])||0,cpu:parseFloat(m[2].replace(",",".")),mem:parseFloat(m[3].replace(",","."))})}}),f.forEach(function(d){let m=-1,g=!1,h=d.name;for(let E=0;E<a.length;E++)d.name.toLowerCase().indexOf(a[E].proc.toLowerCase())>=0&&(m=E);o.forEach(function(E){d.name.toLowerCase().indexOf(E.toLowerCase())>=0&&!g&&(g=!0,h=E)}),(n==="*"||g)&&(m<0?h&&a.push({proc:h,pid:d.pid,pids:[d.pid],cpu:d.cpu,mem:d.mem}):(d.ppid<10&&(a[m].pid=d.pid),a[m].pids.push(d.pid),a[m].cpu+=d.cpu,a[m].mem+=d.mem))}),n!=="*"&&o.filter(function(m){return f.filter(function(g){return g.name.toLowerCase().indexOf(m)>=0}).length===0}).forEach(function(m){a.push({proc:m,pid:null,pids:[],cpu:0,mem:0})}),bi){a.forEach(function(m){m.cpu=0});let d='cat /proc/stat | grep "cpu "';for(let m in a)for(let g in a[m].pids)d+=";cat /proc/"+a[m].pids[g]+"/stat";Bf(d,{maxBuffer:1024*2e4},function(m,g){let h=g.toString().split(`
506
- `),E=Y1(h.shift()),_={},S={};h.forEach(y=>{if(S=z1(y,E,Qr),S.pid){let T=-1;for(let I in a)a[I].pids.indexOf(S.pid)>=0&&(T=I);T>=0&&(a[T].cpu+=S.cpuu+S.cpus),_[S.pid]={cpuu:S.cpuu,cpus:S.cpus,utime:S.utime,stime:S.stime,cutime:S.cutime,cstime:S.cstime}}}),a.forEach(function(y){y.cpu=Math.round(y.cpu*100)/100}),Qr.all=E,Qr.list=Object.assign({},_),Qr.ms=Date.now()-Qr.ms,Qr.result=Object.assign({},a),e&&e(a),t(a)})}else e&&e(a),t(a)}else e&&e(a),t(a)})}}})})}_g.processLoad=xge});var YH=C(WH=>{"use strict";var Gf=W("child_process").exec,Xi=Ht(),Js=process.platform,bge=Js==="linux"||Js==="android",Ige=Js==="darwin",Pge=Js==="win32",wge=Js==="freebsd",Rge=Js==="openbsd",Lge=Js==="netbsd",Mge=Js==="sunos";function HH(r,e){let t=[],n=[],s={},i=!0,o=[],a=[],c={},u=!0;return r.forEach(function(l){if(l==="---")u=!1;else{let f=l.replace(/ +/g," ").split(" ");u?n.push({user:f[0],tty:f[1],date:f[2],time:f[3],ip:f&&f.length>4?f[4].replace(/\(/g,"").replace(/\)/g,""):""}):i?(o=f,o.forEach(function(p){a.push(l.indexOf(p))}),i=!1):(s.user=l.substring(a[0],a[1]-1).trim(),s.tty=l.substring(a[1],a[2]-1).trim(),s.ip=l.substring(a[2],a[3]-1).replace(/\(/g,"").replace(/\)/g,"").trim(),s.command=l.substring(a[7],1e3).trim(),c=n.filter(function(p){return p.user.substring(0,8).trim()===s.user&&p.tty===s.tty}),c.length===1&&t.push({user:c[0].user,tty:c[0].tty,date:c[0].date,time:c[0].time,ip:c[0].ip,command:s.command}))}}),t.length===0&&e===2?n:t}function X1(r){let e=[],t=[],n={},s={},i=!0;return r.forEach(function(o){if(o==="---")i=!1;else{let a=o.replace(/ +/g," ").split(" ");if(i){let c=""+new Date().getFullYear()+"-"+("0"+("JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC".indexOf(a[2].toUpperCase())/3+1)).slice(-2)+"-"+("0"+a[3]).slice(-2);try{new Date(c)>new Date&&(c=""+(new Date().getFullYear()-1)+"-"+("0"+("JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC".indexOf(a[2].toUpperCase())/3+1)).slice(-2)+"-"+("0"+a[3]).slice(-2))}catch{Xi.noop()}t.push({user:a[0],tty:a[1],date:c,time:a[4]})}else n.user=a[0],n.tty=a[1],n.ip=a[2]!=="-"?a[2]:"",n.command=a.slice(5,1e3).join(" "),s=t.filter(function(c){return c.user.substring(0,10)===n.user.substring(0,10)&&(c.tty.substring(3,1e3)===n.tty||c.tty===n.tty)}),s.length===1&&e.push({user:s[0].user,tty:s[0].tty,date:s[0].date,time:s[0].time,ip:n.ip,command:n.command})}}),e}function Nge(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(bge&&Gf('export LC_ALL=C; who --ips; echo "---"; w; unset LC_ALL | tail -n +2',function(n,s){if(n)r&&r(t),e(t);else{let i=s.toString().split(`
506
+ `),E=Y1(h.shift()),_={},S={};h.forEach(y=>{if(S=z1(y,E,Qr),S.pid){let T=-1;for(let b in a)a[b].pids.indexOf(S.pid)>=0&&(T=b);T>=0&&(a[T].cpu+=S.cpuu+S.cpus),_[S.pid]={cpuu:S.cpuu,cpus:S.cpus,utime:S.utime,stime:S.stime,cutime:S.cutime,cstime:S.cstime}}}),a.forEach(function(y){y.cpu=Math.round(y.cpu*100)/100}),Qr.all=E,Qr.list=Object.assign({},_),Qr.ms=Date.now()-Qr.ms,Qr.result=Object.assign({},a),e&&e(a),t(a)})}else e&&e(a),t(a)}else e&&e(a),t(a)})}}})})}_g.processLoad=xge});var YH=C(WH=>{"use strict";var Gf=W("child_process").exec,Xi=Ht(),Js=process.platform,bge=Js==="linux"||Js==="android",Ige=Js==="darwin",Pge=Js==="win32",wge=Js==="freebsd",Rge=Js==="openbsd",Lge=Js==="netbsd",Mge=Js==="sunos";function HH(r,e){let t=[],n=[],s={},i=!0,o=[],a=[],c={},u=!0;return r.forEach(function(l){if(l==="---")u=!1;else{let f=l.replace(/ +/g," ").split(" ");u?n.push({user:f[0],tty:f[1],date:f[2],time:f[3],ip:f&&f.length>4?f[4].replace(/\(/g,"").replace(/\)/g,""):""}):i?(o=f,o.forEach(function(p){a.push(l.indexOf(p))}),i=!1):(s.user=l.substring(a[0],a[1]-1).trim(),s.tty=l.substring(a[1],a[2]-1).trim(),s.ip=l.substring(a[2],a[3]-1).replace(/\(/g,"").replace(/\)/g,"").trim(),s.command=l.substring(a[7],1e3).trim(),c=n.filter(function(p){return p.user.substring(0,8).trim()===s.user&&p.tty===s.tty}),c.length===1&&t.push({user:c[0].user,tty:c[0].tty,date:c[0].date,time:c[0].time,ip:c[0].ip,command:s.command}))}}),t.length===0&&e===2?n:t}function X1(r){let e=[],t=[],n={},s={},i=!0;return r.forEach(function(o){if(o==="---")i=!1;else{let a=o.replace(/ +/g," ").split(" ");if(i){let c=""+new Date().getFullYear()+"-"+("0"+("JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC".indexOf(a[2].toUpperCase())/3+1)).slice(-2)+"-"+("0"+a[3]).slice(-2);try{new Date(c)>new Date&&(c=""+(new Date().getFullYear()-1)+"-"+("0"+("JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC".indexOf(a[2].toUpperCase())/3+1)).slice(-2)+"-"+("0"+a[3]).slice(-2))}catch{Xi.noop()}t.push({user:a[0],tty:a[1],date:c,time:a[4]})}else n.user=a[0],n.tty=a[1],n.ip=a[2]!=="-"?a[2]:"",n.command=a.slice(5,1e3).join(" "),s=t.filter(function(c){return c.user.substring(0,10)===n.user.substring(0,10)&&(c.tty.substring(3,1e3)===n.tty||c.tty===n.tty)}),s.length===1&&e.push({user:s[0].user,tty:s[0].tty,date:s[0].date,time:s[0].time,ip:n.ip,command:n.command})}}),e}function Nge(r){return new Promise(e=>{process.nextTick(()=>{let t=[];if(bge&&Gf('export LC_ALL=C; who --ips; echo "---"; w; unset LC_ALL | tail -n +2',function(n,s){if(n)r&&r(t),e(t);else{let i=s.toString().split(`
507
507
  `);t=HH(i,1),t.length===0?Gf('who; echo "---"; w | tail -n +2',function(o,a){o||(i=a.toString().split(`
508
508
  `),t=HH(i,2)),r&&r(t),e(t)}):(r&&r(t),e(t))}}),(wge||Rge||Lge)&&Gf('who; echo "---"; w -ih',function(n,s){if(!n){let i=s.toString().split(`
509
509
  `);t=X1(i)}r&&r(t),e(t)}),Mge&&Gf('who; echo "---"; w -h',function(n,s){if(!n){let i=s.toString().split(`
@@ -578,12 +578,12 @@ Bus `);for(let a=1;a<o.length;a++){let c=DEe(o[a]);t.push(c)}}r&&r(t),e(t)}),_Ee
578
578
  `,s)}while(n!==-1);return i+=r.slice(s),i}var{stdout:LI,stderr:MI}=PI,zE=Symbol("GENERATOR"),Ga=Symbol("STYLER"),tl=Symbol("IS_EMPTY"),NI=["ansi","ansi","ansi256","ansi16m"],ka=Object.create(null),LK=(r,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let t=LI?LI.level:0;r.level=e.level===void 0?t:e.level};var MK=r=>{let e=(...t)=>t.join(" ");return LK(e,r),Object.setPrototypeOf(e,rl.prototype),e};function rl(r){return MK(r)}Object.setPrototypeOf(rl.prototype,Function.prototype);for(let[r,e]of Object.entries(Wn))ka[r]={get(){let t=jp(this,KE(e.open,e.close,this[Ga]),this[tl]);return Object.defineProperty(this,r,{value:t}),t}};ka.visible={get(){let r=jp(this,this[Ga],!0);return Object.defineProperty(this,"visible",{value:r}),r}};var XE=(r,e,t,...n)=>r==="rgb"?e==="ansi16m"?Wn[t].ansi16m(...n):e==="ansi256"?Wn[t].ansi256(Wn.rgbToAnsi256(...n)):Wn[t].ansi(Wn.rgbToAnsi(...n)):r==="hex"?XE("rgb",e,t,...Wn.hexToRgb(...n)):Wn[t][r](...n),NK=["rgb","hex","ansi256"];for(let r of NK){ka[r]={get(){let{level:t}=this;return function(...n){let s=KE(XE(r,NI[t],"color",...n),Wn.color.close,this[Ga]);return jp(this,s,this[tl])}}};let e="bg"+r[0].toUpperCase()+r.slice(1);ka[e]={get(){let{level:t}=this;return function(...n){let s=KE(XE(r,NI[t],"bgColor",...n),Wn.bgColor.close,this[Ga]);return jp(this,s,this[tl])}}}}var BK=Object.defineProperties(()=>{},{...ka,level:{enumerable:!0,get(){return this[zE].level},set(r){this[zE].level=r}}}),KE=(r,e,t)=>{let n,s;return t===void 0?(n=r,s=e):(n=t.openAll+r,s=e+t.closeAll),{open:r,close:e,openAll:n,closeAll:s,parent:t}},jp=(r,e,t)=>{let n=(...s)=>UK(n,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(n,BK),n[zE]=r,n[Ga]=e,n[tl]=t,n},UK=(r,e)=>{if(r.level<=0||!e)return r[tl]?"":e;let t=r[Ga];if(t===void 0)return e;let{openAll:n,closeAll:s}=t;if(e.includes("\x1B"))for(;t!==void 0;)e=wI(e,t.close,t.open),t=t.parent;let i=e.indexOf(`
579
579
  `);return i!==-1&&(e=RI(e,s,n,i)),n+e+s};Object.defineProperties(rl.prototype,ka);var FK=rl(),wAe=rl({level:MI?MI.level:0});var JE=FK;var iS=Er(qI(),1),Tr=(...r)=>{let e,t;if(r.length===0)throw new Error("Missing gradient colors");if(Array.isArray(r[0]))e=(0,iS.default)(r[0]),t=sS(r[1]);else{if(r.length===1)throw new Error(`Expected an array of colors, received ${JSON.stringify(r[0])}`);e=(0,iS.default)(...r)}let n=(s,i)=>VK(s?s.toString():"",e,i??t);return n.multiline=(s,i)=>GK(s?s.toString():"",e,i??t),n},$I=(r,e,t)=>e.interpolation?.toLowerCase()==="hsv"?r.hsv(t,e.hsvSpin?.toLowerCase()||!1):r.rgb(t);function VK(r,e,t){let n=sS(t),s=Math.max(r.replace(/\s/g,"").length,e.stops.length),i=$I(e,n,s),o="";for(let a of r)o+=a.match(/\s/g)?a:JE.hex(i.shift()?.toHex()||"#000")(a);return o}function GK(r,e,t){let n=sS(t),s=r.split(`
580
580
  `),i=Math.max(...s.map(c=>c.length),e.stops.length),o=$I(e,n,i),a=[];for(let c of s){let u=o.slice(0),l="";for(let f of c)l+=JE.hex(u.shift()?.toHex()||"#000")(f);a.push(l)}return a.join(`
581
- `)}function sS(r){let e={interpolation:"rgb",hsvSpin:"short",...r};if(r!==void 0&&typeof r!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof r}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be \`rgb\` or \`hsv\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`short\` or \`long\`, got \`${typeof e.hsvSpin}\``);return e}var en={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};function tn(r){let e=t=>Tr(...r.colors)(t,r.options);return e.multiline=(t="")=>Tr(...r.colors).multiline(t,r.options),e}var HI=Tr,kK=tn(en.atlas),jK=tn(en.cristal),qK=tn(en.teen),$K=tn(en.mind),HK=tn(en.morning),WK=tn(en.vice),YK=tn(en.passion),zK=tn(en.fruit),XK=tn(en.instagram),KK=tn(en.retro),JK=tn(en.summer),QK=tn(en.rainbow),ZK=tn(en.pastel);Tr.atlas=kK;Tr.cristal=jK;Tr.teen=qK;Tr.mind=$K;Tr.morning=HK;Tr.vice=WK;Tr.passion=YK;Tr.fruit=zK;Tr.instagram=XK;Tr.retro=KK;Tr.summer=JK;Tr.rainbow=QK;Tr.pastel=ZK;var mC=Er(Bw(),1),Yf=Er(kw(),1),EC=Er($w(),1);var _o=class r extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,r)}};function Hw(){return oee()?0:1}function oee(){return aee()&&!process.defaultApp}function aee(){return!!process.versions.electron}function td(r){return r.slice(Hw()+1)}function Ww(){return process.argv[Hw()]}import{format as lee}from"util";import{normalize as fee,resolve as pee}from"path";function To(r){if(r!==r.toLowerCase()&&r!==r.toUpperCase()||(r=r.toLowerCase()),r.indexOf("-")===-1&&r.indexOf("_")===-1)return r;{let t="",n=!1,s=r.match(/^-+/);for(let i=s?s[0].length:0;i<r.length;i++){let o=r.charAt(i);n&&(n=!1,o=o.toUpperCase()),i!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(t+=o)}return t}}function rd(r,e){let t=r.toLowerCase();e=e||"-";let n="";for(let s=0;s<r.length;s++){let i=t.charAt(s),o=r.charAt(s);i!==o&&s>0?n+=`${e}${t.charAt(s)}`:n+=o}return n}function nd(r){return r==null?!1:typeof r=="number"||/^0x[0-9a-f]+$/i.test(r)?!0:/^0[^.]/.test(r)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(r)}function Yw(r){if(Array.isArray(r))return r.map(o=>typeof o!="string"?o+"":o);r=r.trim();let e=0,t=null,n=null,s=null,i=[];for(let o=0;o<r.length;o++){if(t=n,n=r.charAt(o),n===" "&&!s){t!==" "&&e++;continue}n===s?s=null:(n==="'"||n==='"')&&!s&&(s=n),i[e]||(i[e]=""),i[e]+=n}return i}var Tn;(function(r){r.BOOLEAN="boolean",r.STRING="string",r.NUMBER="number",r.ARRAY="array"})(Tn||(Tn={}));var Ui,id=class{constructor(e){Ui=e}parse(e,t){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),s=Yw(e),i=typeof e=="string",o=cee(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),c=Object.assign(Object.create(null),n.default),u=n.configObjects||[],l=n.envPrefix,f=a["populate--"],p=f?"--":"_",d=Object.create(null),m=Object.create(null),g=n.__||Ui.format,h={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},E=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,_=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(b){let R=typeof b=="object"?b.key:b,$=Object.keys(b).map(function(G){return{boolean:"bools",string:"strings",number:"numbers"}[G]}).filter(Boolean).pop();$&&(h[$][R]=!0),h.arrays[R]=!0,h.keys.push(R)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(b){h.bools[b]=!0,h.keys.push(b)}),[].concat(n.string||[]).filter(Boolean).forEach(function(b){h.strings[b]=!0,h.keys.push(b)}),[].concat(n.number||[]).filter(Boolean).forEach(function(b){h.numbers[b]=!0,h.keys.push(b)}),[].concat(n.count||[]).filter(Boolean).forEach(function(b){h.counts[b]=!0,h.keys.push(b)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(b){h.normalize[b]=!0,h.keys.push(b)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([b,R])=>{typeof R=="number"&&(h.nargs[b]=R,h.keys.push(b))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([b,R])=>{typeof R=="function"&&(h.coercions[b]=R,h.keys.push(b))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(b){h.configs[b]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([b,R])=>{(typeof R=="boolean"||typeof R=="function")&&(h.configs[b]=R)})),de(n.key,o,n.default,h.arrays),Object.keys(c).forEach(function(b){(h.aliases[b]||[]).forEach(function(R){c[R]=c[b]})});let S=null;Se();let y=[],T=Object.assign(Object.create(null),{_:[]}),I={};for(let b=0;b<s.length;b++){let R=s[b],$=R.replace(/^-{3,}/,"---"),G,w,Z,J,se,Je;if(R!=="--"&&/^-/.test(R)&&N(R))v(R);else if($.match(/^---+(=|$)/)){v(R);continue}else if(R.match(/^--.+=/)||!a["short-option-groups"]&&R.match(/^-.+=/))J=R.match(/^--?([^=]+)=([\s\S]*)$/),J!==null&&Array.isArray(J)&&J.length>=3&&(q(J[1],h.arrays)?b=A(b,J[1],s,J[2]):q(J[1],h.nargs)!==!1?b=x(b,J[1],s,J[2]):D(J[1],J[2],!0));else if(R.match(_)&&a["boolean-negation"])J=R.match(_),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],D(w,q(w,h.arrays)?[!1]:!1));else if(R.match(/^--.+/)||!a["short-option-groups"]&&R.match(/^-[^-]+/))J=R.match(/^--?(.+)/),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],q(w,h.arrays)?b=A(b,w,s):q(w,h.nargs)!==!1?b=x(b,w,s):(se=s[b+1],se!==void 0&&(!se.match(/^-/)||se.match(E))&&!q(w,h.bools)&&!q(w,h.counts)||/^(true|false)$/.test(se)?(D(w,se),b++):D(w,oe(w))));else if(R.match(/^-.\..+=/))J=R.match(/^-([^=]+)=([\s\S]*)$/),J!==null&&Array.isArray(J)&&J.length>=3&&D(J[1],J[2]);else if(R.match(/^-.\..+/)&&!R.match(E))se=s[b+1],J=R.match(/^-(.\..+)/),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],se!==void 0&&!se.match(/^-/)&&!q(w,h.bools)&&!q(w,h.counts)?(D(w,se),b++):D(w,oe(w)));else if(R.match(/^-[^-]+/)&&!R.match(E)){Z=R.slice(1,-1).split(""),G=!1;for(let st=0;st<Z.length;st++){if(se=R.slice(st+2),Z[st+1]&&Z[st+1]==="="){Je=R.slice(st+3),w=Z[st],q(w,h.arrays)?b=A(b,w,s,Je):q(w,h.nargs)!==!1?b=x(b,w,s,Je):D(w,Je),G=!0;break}if(se==="-"){D(Z[st],se);continue}if(/[A-Za-z]/.test(Z[st])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(se)&&q(se,h.bools)===!1){D(Z[st],se),G=!0;break}if(Z[st+1]&&Z[st+1].match(/\W/)){D(Z[st],se),G=!0;break}else D(Z[st],oe(Z[st]))}w=R.slice(-1)[0],!G&&w!=="-"&&(q(w,h.arrays)?b=A(b,w,s):q(w,h.nargs)!==!1?b=x(b,w,s):(se=s[b+1],se!==void 0&&(!/^(-|--)[^-]/.test(se)||se.match(E))&&!q(w,h.bools)&&!q(w,h.counts)||/^(true|false)$/.test(se)?(D(w,se),b++):D(w,oe(w))))}else if(R.match(/^-[0-9]$/)&&R.match(E)&&q(R.slice(1),h.bools))w=R.slice(1),D(w,oe(w));else if(R==="--"){y=s.slice(b+1);break}else if(a["halt-at-non-option"]){y=s.slice(b);break}else v(R)}ee(T,!0),ee(T,!1),H(T),X(),Ee(T,h.aliases,c,!0),ne(T),a["set-placeholder-key"]&&ie(T),Object.keys(h.counts).forEach(function(b){K(T,b.split("."))||D(b,0)}),f&&y.length&&(T[p]=[]),y.forEach(function(b){T[p].push(b)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(T).filter(b=>b!=="--"&&b.includes("-")).forEach(b=>{delete T[b]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(b=>o[b])).forEach(b=>{a["camel-case-expansion"]&&b.includes("-")&&delete T[b.split(".").map(R=>To(R)).join(".")],delete T[b]});function v(b){let R=V("_",b);(typeof R=="string"||typeof R=="number")&&T._.push(R)}function x(b,R,$,G){let w,Z=q(R,h.nargs);if(Z=typeof Z!="number"||isNaN(Z)?1:Z,Z===0)return De(G)||(S=Error(g("Argument unexpected for: %s",R))),D(R,oe(R)),b;let J=De(G)?0:1;if(a["nargs-eats-options"])$.length-(b+1)+J<Z&&(S=Error(g("Not enough arguments following: %s",R))),J=Z;else{for(w=b+1;w<$.length&&(!$[w].match(/^-[^0-9]/)||$[w].match(E)||N($[w]));w++)J++;J<Z&&(S=Error(g("Not enough arguments following: %s",R)))}let se=Math.min(J,Z);for(!De(G)&&se>0&&(D(R,G),se--),w=b+1;w<se+b+1;w++)D(R,$[w]);return b+se}function A(b,R,$,G){let w=[],Z=G||$[b+1],J=q(R,h.nargs);if(q(R,h.bools)&&!/^(true|false)$/.test(Z))w.push(!0);else if(De(Z)||De(G)&&/^-/.test(Z)&&!E.test(Z)&&!N(Z)){if(c[R]!==void 0){let se=c[R];w=Array.isArray(se)?se:[se]}}else{De(G)||w.push(F(R,G,!0));for(let se=b+1;se<$.length&&!(!a["greedy-arrays"]&&w.length>0||J&&typeof J=="number"&&w.length>=J||(Z=$[se],/^-/.test(Z)&&!E.test(Z)&&!N(Z)));se++)b=se,w.push(F(R,Z,i))}return typeof J=="number"&&(J&&w.length<J||isNaN(J)&&w.length===0)&&(S=Error(g("Not enough arguments following: %s",R))),D(R,w),b}function D(b,R,$=i){if(/-/.test(b)&&a["camel-case-expansion"]){let Z=b.split(".").map(function(J){return To(J)}).join(".");P(b,Z)}let G=F(b,R,$),w=b.split(".");le(T,w,G),h.aliases[b]&&h.aliases[b].forEach(function(Z){let J=Z.split(".");le(T,J,G)}),w.length>1&&a["dot-notation"]&&(h.aliases[w[0]]||[]).forEach(function(Z){let J=Z.split("."),se=[].concat(w);se.shift(),J=J.concat(se),(h.aliases[b]||[]).includes(J.join("."))||le(T,J,G)}),q(b,h.normalize)&&!q(b,h.arrays)&&[b].concat(h.aliases[b]||[]).forEach(function(J){Object.defineProperty(I,J,{enumerable:!0,get(){return R},set(se){R=typeof se=="string"?Ui.normalize(se):se}})})}function P(b,R){h.aliases[b]&&h.aliases[b].length||(h.aliases[b]=[R],d[R]=!0),h.aliases[R]&&h.aliases[R].length||P(R,b)}function F(b,R,$){$&&(R=uee(R)),(q(b,h.bools)||q(b,h.counts))&&typeof R=="string"&&(R=R==="true");let G=Array.isArray(R)?R.map(function(w){return V(b,w)}):V(b,R);return q(b,h.counts)&&(De(G)||typeof G=="boolean")&&(G=DS()),q(b,h.normalize)&&q(b,h.arrays)&&(Array.isArray(R)?G=R.map(w=>Ui.normalize(w)):G=Ui.normalize(R)),G}function V(b,R){return!a["parse-positional-numbers"]&&b==="_"||!q(b,h.strings)&&!q(b,h.bools)&&!Array.isArray(R)&&(nd(R)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${R}`)))||!De(R)&&q(b,h.numbers))&&(R=Number(R)),R}function H(b){let R=Object.create(null);Ee(R,h.aliases,c),Object.keys(h.configs).forEach(function($){let G=b[$]||R[$];if(G)try{let w=null,Z=Ui.resolve(Ui.cwd(),G),J=h.configs[$];if(typeof J=="function"){try{w=J(Z)}catch(se){w=se}if(w instanceof Error){S=w;return}}else w=Ui.require(Z);k(w)}catch(w){w.name==="PermissionDenied"?S=w:b[$]&&(S=Error(g("Invalid JSON config file: %s",G)))}})}function k(b,R){Object.keys(b).forEach(function($){let G=b[$],w=R?R+"."+$:$;typeof G=="object"&&G!==null&&!Array.isArray(G)&&a["dot-notation"]?k(G,w):(!K(T,w.split("."))||q(w,h.arrays)&&a["combine-arrays"])&&D(w,G)})}function X(){typeof u<"u"&&u.forEach(function(b){k(b)})}function ee(b,R){if(typeof l>"u")return;let $=typeof l=="string"?l:"",G=Ui.env();Object.keys(G).forEach(function(w){if($===""||w.lastIndexOf($,0)===0){let Z=w.split("__").map(function(J,se){return se===0&&(J=J.substring($.length)),To(J)});(R&&h.configs[Z.join(".")]||!R)&&!K(b,Z)&&D(Z.join("."),G[w])}})}function ne(b){let R,$=new Set;Object.keys(b).forEach(function(G){if(!$.has(G)&&(R=q(G,h.coercions),typeof R=="function"))try{let w=V(G,R(b[G]));[].concat(h.aliases[G]||[],G).forEach(Z=>{$.add(Z),b[Z]=w})}catch(w){S=w}})}function ie(b){return h.keys.forEach(R=>{~R.indexOf(".")||typeof b[R]>"u"&&(b[R]=void 0)}),b}function Ee(b,R,$,G=!1){Object.keys($).forEach(function(w){K(b,w.split("."))||(le(b,w.split("."),$[w]),G&&(m[w]=!0),(R[w]||[]).forEach(function(Z){K(b,Z.split("."))||le(b,Z.split("."),$[w])}))})}function K(b,R){let $=b;a["dot-notation"]||(R=[R.join(".")]),R.slice(0,-1).forEach(function(w){$=$[w]||{}});let G=R[R.length-1];return typeof $!="object"?!1:G in $}function le(b,R,$){let G=b;a["dot-notation"]||(R=[R.join(".")]),R.slice(0,-1).forEach(function(Je){Je=zw(Je),typeof G=="object"&&G[Je]===void 0&&(G[Je]={}),typeof G[Je]!="object"||Array.isArray(G[Je])?(Array.isArray(G[Je])?G[Je].push({}):G[Je]=[G[Je],{}],G=G[Je][G[Je].length-1]):G=G[Je]});let w=zw(R[R.length-1]),Z=q(R.join("."),h.arrays),J=Array.isArray($),se=a["duplicate-arguments-array"];!se&&q(w,h.nargs)&&(se=!0,(!De(G[w])&&h.nargs[w]===1||Array.isArray(G[w])&&G[w].length===h.nargs[w])&&(G[w]=void 0)),$===DS()?G[w]=DS(G[w]):Array.isArray(G[w])?se&&Z&&J?G[w]=a["flatten-duplicate-arrays"]?G[w].concat($):(Array.isArray(G[w][0])?G[w]:[G[w]]).concat([$]):!se&&!!Z==!!J?G[w]=$:G[w]=G[w].concat([$]):G[w]===void 0&&Z?G[w]=J?$:[$]:se&&!(G[w]===void 0||q(w,h.counts)||q(w,h.bools))?G[w]=[G[w],$]:G[w]=$}function de(...b){b.forEach(function(R){Object.keys(R||{}).forEach(function($){h.aliases[$]||(h.aliases[$]=[].concat(o[$]||[]),h.aliases[$].concat($).forEach(function(G){if(/-/.test(G)&&a["camel-case-expansion"]){let w=To(G);w!==$&&h.aliases[$].indexOf(w)===-1&&(h.aliases[$].push(w),d[w]=!0)}}),h.aliases[$].concat($).forEach(function(G){if(G.length>1&&/[A-Z]/.test(G)&&a["camel-case-expansion"]){let w=rd(G,"-");w!==$&&h.aliases[$].indexOf(w)===-1&&(h.aliases[$].push(w),d[w]=!0)}}),h.aliases[$].forEach(function(G){h.aliases[G]=[$].concat(h.aliases[$].filter(function(w){return G!==w}))}))})})}function q(b,R){let $=[].concat(h.aliases[b]||[],b),G=Object.keys(R),w=$.find(Z=>G.includes(Z));return w?R[w]:!1}function ke(b){let R=Object.keys(h);return[].concat(R.map(G=>h[G])).some(function(G){return Array.isArray(G)?G.includes(b):G[b]})}function U(b,...R){return[].concat(...R).some(function(G){let w=b.match(G);return w&&ke(w[1])})}function L(b){if(b.match(E)||!b.match(/^-[^-]+/))return!1;let R=!0,$,G=b.slice(1).split("");for(let w=0;w<G.length;w++){if($=b.slice(w+2),!ke(G[w])){R=!1;break}if(G[w+1]&&G[w+1]==="="||$==="-"||/[A-Za-z]/.test(G[w])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test($)||G[w+1]&&G[w+1].match(/\W/))break}return R}function N(b){return a["unknown-options-as-args"]&&z(b)}function z(b){return b=b.replace(/^-{3,}/,"--"),b.match(E)||L(b)?!1:!U(b,/^-+([^=]+?)=[\s\S]*$/,_,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function oe(b){return!q(b,h.bools)&&!q(b,h.counts)&&`${b}`in c?c[b]:fe(Re(b))}function fe(b){return{[Tn.BOOLEAN]:!0,[Tn.STRING]:"",[Tn.NUMBER]:void 0,[Tn.ARRAY]:[]}[b]}function Re(b){let R=Tn.BOOLEAN;return q(b,h.strings)?R=Tn.STRING:q(b,h.numbers)?R=Tn.NUMBER:q(b,h.bools)?R=Tn.BOOLEAN:q(b,h.arrays)&&(R=Tn.ARRAY),R}function De(b){return b===void 0}function Se(){Object.keys(h.counts).find(b=>q(b,h.arrays)?(S=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",b)),!0):q(b,h.nargs)?(S=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",b)),!0):!1)}return{aliases:Object.assign({},h.aliases),argv:Object.assign(I,T),configuration:a,defaulted:Object.assign({},m),error:S,newAliases:Object.assign({},d)}}};function cee(r){let e=[],t=Object.create(null),n=!0;for(Object.keys(r).forEach(function(s){e.push([].concat(r[s],s))});n;){n=!1;for(let s=0;s<e.length;s++)for(let i=s+1;i<e.length;i++)if(e[s].filter(function(a){return e[i].indexOf(a)!==-1}).length){e[s]=e[s].concat(e[i]),e.splice(i,1),n=!0;break}}return e.forEach(function(s){s=s.filter(function(o,a,c){return c.indexOf(o)===a});let i=s.pop();i!==void 0&&typeof i=="string"&&(t[i]=s)}),t}function DS(r){return r!==void 0?r+1:1}function zw(r){return r==="__proto__"?"___proto___":r}function uee(r){return typeof r=="string"&&(r[0]==="'"||r[0]==='"')&&r[r.length-1]===r[0]?r.substring(1,r.length-1):r}import{readFileSync as dee}from"fs";var xS,bS,IS,Xw=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Kw=(bS=(xS=process==null?void 0:process.versions)===null||xS===void 0?void 0:xS.node)!==null&&bS!==void 0?bS:(IS=process==null?void 0:process.version)===null||IS===void 0?void 0:IS.slice(1);if(Kw&&Number(Kw.match(/^([^.]+)/)[1])<Xw)throw Error(`yargs parser supports a minimum Node.js version of ${Xw}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var hee=process?process.env:{},Jw=new id({cwd:process.cwd,env:()=>hee,format:lee,normalize:fee,resolve:pee,require:r=>{if(typeof W<"u")return W(r);if(r.match(/\.json$/))return JSON.parse(dee(r,"utf8"));throw Error("only .json config files are supported in ESM")}}),pl=function(e,t){return Jw.parse(e.slice(),t).argv};pl.detailed=function(r,e){return Jw.parse(r.slice(),e)};pl.camelCase=To;pl.decamelize=rd;pl.looksLikeNumber=nd;var dl=pl;import{notStrictEqual as Pee,strictEqual as wee}from"assert";var mee={right:Tee,center:yee},gee=0,sd=1,Eee=2,od=3,PS=class{constructor(e){var t;this.width=e.width,this.wrap=(t=e.wrap)!==null&&t!==void 0?t:!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]=="string")return this.applyLayoutDSL(e[0]);let t=e.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]=="string"&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
581
+ `)}function sS(r){let e={interpolation:"rgb",hsvSpin:"short",...r};if(r!==void 0&&typeof r!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof r}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be \`rgb\` or \`hsv\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`short\` or \`long\`, got \`${typeof e.hsvSpin}\``);return e}var en={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};function tn(r){let e=t=>Tr(...r.colors)(t,r.options);return e.multiline=(t="")=>Tr(...r.colors).multiline(t,r.options),e}var HI=Tr,kK=tn(en.atlas),jK=tn(en.cristal),qK=tn(en.teen),$K=tn(en.mind),HK=tn(en.morning),WK=tn(en.vice),YK=tn(en.passion),zK=tn(en.fruit),XK=tn(en.instagram),KK=tn(en.retro),JK=tn(en.summer),QK=tn(en.rainbow),ZK=tn(en.pastel);Tr.atlas=kK;Tr.cristal=jK;Tr.teen=qK;Tr.mind=$K;Tr.morning=HK;Tr.vice=WK;Tr.passion=YK;Tr.fruit=zK;Tr.instagram=XK;Tr.retro=KK;Tr.summer=JK;Tr.rainbow=QK;Tr.pastel=ZK;var mC=Er(Bw(),1),Yf=Er(kw(),1),EC=Er($w(),1);var _o=class r extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,r)}};function Hw(){return oee()?0:1}function oee(){return aee()&&!process.defaultApp}function aee(){return!!process.versions.electron}function td(r){return r.slice(Hw()+1)}function Ww(){return process.argv[Hw()]}import{format as lee}from"util";import{normalize as fee,resolve as pee}from"path";function To(r){if(r!==r.toLowerCase()&&r!==r.toUpperCase()||(r=r.toLowerCase()),r.indexOf("-")===-1&&r.indexOf("_")===-1)return r;{let t="",n=!1,s=r.match(/^-+/);for(let i=s?s[0].length:0;i<r.length;i++){let o=r.charAt(i);n&&(n=!1,o=o.toUpperCase()),i!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(t+=o)}return t}}function rd(r,e){let t=r.toLowerCase();e=e||"-";let n="";for(let s=0;s<r.length;s++){let i=t.charAt(s),o=r.charAt(s);i!==o&&s>0?n+=`${e}${t.charAt(s)}`:n+=o}return n}function nd(r){return r==null?!1:typeof r=="number"||/^0x[0-9a-f]+$/i.test(r)?!0:/^0[^.]/.test(r)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(r)}function Yw(r){if(Array.isArray(r))return r.map(o=>typeof o!="string"?o+"":o);r=r.trim();let e=0,t=null,n=null,s=null,i=[];for(let o=0;o<r.length;o++){if(t=n,n=r.charAt(o),n===" "&&!s){t!==" "&&e++;continue}n===s?s=null:(n==="'"||n==='"')&&!s&&(s=n),i[e]||(i[e]=""),i[e]+=n}return i}var Tn;(function(r){r.BOOLEAN="boolean",r.STRING="string",r.NUMBER="number",r.ARRAY="array"})(Tn||(Tn={}));var Ui,id=class{constructor(e){Ui=e}parse(e,t){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),s=Yw(e),i=typeof e=="string",o=cee(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),c=Object.assign(Object.create(null),n.default),u=n.configObjects||[],l=n.envPrefix,f=a["populate--"],p=f?"--":"_",d=Object.create(null),m=Object.create(null),g=n.__||Ui.format,h={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},E=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,_=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(I){let R=typeof I=="object"?I.key:I,$=Object.keys(I).map(function(G){return{boolean:"bools",string:"strings",number:"numbers"}[G]}).filter(Boolean).pop();$&&(h[$][R]=!0),h.arrays[R]=!0,h.keys.push(R)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(I){h.bools[I]=!0,h.keys.push(I)}),[].concat(n.string||[]).filter(Boolean).forEach(function(I){h.strings[I]=!0,h.keys.push(I)}),[].concat(n.number||[]).filter(Boolean).forEach(function(I){h.numbers[I]=!0,h.keys.push(I)}),[].concat(n.count||[]).filter(Boolean).forEach(function(I){h.counts[I]=!0,h.keys.push(I)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(I){h.normalize[I]=!0,h.keys.push(I)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([I,R])=>{typeof R=="number"&&(h.nargs[I]=R,h.keys.push(I))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([I,R])=>{typeof R=="function"&&(h.coercions[I]=R,h.keys.push(I))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(I){h.configs[I]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([I,R])=>{(typeof R=="boolean"||typeof R=="function")&&(h.configs[I]=R)})),de(n.key,o,n.default,h.arrays),Object.keys(c).forEach(function(I){(h.aliases[I]||[]).forEach(function(R){c[R]=c[I]})});let S=null;Se();let y=[],T=Object.assign(Object.create(null),{_:[]}),b={};for(let I=0;I<s.length;I++){let R=s[I],$=R.replace(/^-{3,}/,"---"),G,w,Z,J,se,Je;if(R!=="--"&&/^-/.test(R)&&N(R))v(R);else if($.match(/^---+(=|$)/)){v(R);continue}else if(R.match(/^--.+=/)||!a["short-option-groups"]&&R.match(/^-.+=/))J=R.match(/^--?([^=]+)=([\s\S]*)$/),J!==null&&Array.isArray(J)&&J.length>=3&&(q(J[1],h.arrays)?I=A(I,J[1],s,J[2]):q(J[1],h.nargs)!==!1?I=x(I,J[1],s,J[2]):D(J[1],J[2],!0));else if(R.match(_)&&a["boolean-negation"])J=R.match(_),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],D(w,q(w,h.arrays)?[!1]:!1));else if(R.match(/^--.+/)||!a["short-option-groups"]&&R.match(/^-[^-]+/))J=R.match(/^--?(.+)/),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],q(w,h.arrays)?I=A(I,w,s):q(w,h.nargs)!==!1?I=x(I,w,s):(se=s[I+1],se!==void 0&&(!se.match(/^-/)||se.match(E))&&!q(w,h.bools)&&!q(w,h.counts)||/^(true|false)$/.test(se)?(D(w,se),I++):D(w,oe(w))));else if(R.match(/^-.\..+=/))J=R.match(/^-([^=]+)=([\s\S]*)$/),J!==null&&Array.isArray(J)&&J.length>=3&&D(J[1],J[2]);else if(R.match(/^-.\..+/)&&!R.match(E))se=s[I+1],J=R.match(/^-(.\..+)/),J!==null&&Array.isArray(J)&&J.length>=2&&(w=J[1],se!==void 0&&!se.match(/^-/)&&!q(w,h.bools)&&!q(w,h.counts)?(D(w,se),I++):D(w,oe(w)));else if(R.match(/^-[^-]+/)&&!R.match(E)){Z=R.slice(1,-1).split(""),G=!1;for(let st=0;st<Z.length;st++){if(se=R.slice(st+2),Z[st+1]&&Z[st+1]==="="){Je=R.slice(st+3),w=Z[st],q(w,h.arrays)?I=A(I,w,s,Je):q(w,h.nargs)!==!1?I=x(I,w,s,Je):D(w,Je),G=!0;break}if(se==="-"){D(Z[st],se);continue}if(/[A-Za-z]/.test(Z[st])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(se)&&q(se,h.bools)===!1){D(Z[st],se),G=!0;break}if(Z[st+1]&&Z[st+1].match(/\W/)){D(Z[st],se),G=!0;break}else D(Z[st],oe(Z[st]))}w=R.slice(-1)[0],!G&&w!=="-"&&(q(w,h.arrays)?I=A(I,w,s):q(w,h.nargs)!==!1?I=x(I,w,s):(se=s[I+1],se!==void 0&&(!/^(-|--)[^-]/.test(se)||se.match(E))&&!q(w,h.bools)&&!q(w,h.counts)||/^(true|false)$/.test(se)?(D(w,se),I++):D(w,oe(w))))}else if(R.match(/^-[0-9]$/)&&R.match(E)&&q(R.slice(1),h.bools))w=R.slice(1),D(w,oe(w));else if(R==="--"){y=s.slice(I+1);break}else if(a["halt-at-non-option"]){y=s.slice(I);break}else v(R)}ee(T,!0),ee(T,!1),H(T),X(),Ee(T,h.aliases,c,!0),ne(T),a["set-placeholder-key"]&&ie(T),Object.keys(h.counts).forEach(function(I){K(T,I.split("."))||D(I,0)}),f&&y.length&&(T[p]=[]),y.forEach(function(I){T[p].push(I)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(T).filter(I=>I!=="--"&&I.includes("-")).forEach(I=>{delete T[I]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(I=>o[I])).forEach(I=>{a["camel-case-expansion"]&&I.includes("-")&&delete T[I.split(".").map(R=>To(R)).join(".")],delete T[I]});function v(I){let R=V("_",I);(typeof R=="string"||typeof R=="number")&&T._.push(R)}function x(I,R,$,G){let w,Z=q(R,h.nargs);if(Z=typeof Z!="number"||isNaN(Z)?1:Z,Z===0)return De(G)||(S=Error(g("Argument unexpected for: %s",R))),D(R,oe(R)),I;let J=De(G)?0:1;if(a["nargs-eats-options"])$.length-(I+1)+J<Z&&(S=Error(g("Not enough arguments following: %s",R))),J=Z;else{for(w=I+1;w<$.length&&(!$[w].match(/^-[^0-9]/)||$[w].match(E)||N($[w]));w++)J++;J<Z&&(S=Error(g("Not enough arguments following: %s",R)))}let se=Math.min(J,Z);for(!De(G)&&se>0&&(D(R,G),se--),w=I+1;w<se+I+1;w++)D(R,$[w]);return I+se}function A(I,R,$,G){let w=[],Z=G||$[I+1],J=q(R,h.nargs);if(q(R,h.bools)&&!/^(true|false)$/.test(Z))w.push(!0);else if(De(Z)||De(G)&&/^-/.test(Z)&&!E.test(Z)&&!N(Z)){if(c[R]!==void 0){let se=c[R];w=Array.isArray(se)?se:[se]}}else{De(G)||w.push(F(R,G,!0));for(let se=I+1;se<$.length&&!(!a["greedy-arrays"]&&w.length>0||J&&typeof J=="number"&&w.length>=J||(Z=$[se],/^-/.test(Z)&&!E.test(Z)&&!N(Z)));se++)I=se,w.push(F(R,Z,i))}return typeof J=="number"&&(J&&w.length<J||isNaN(J)&&w.length===0)&&(S=Error(g("Not enough arguments following: %s",R))),D(R,w),I}function D(I,R,$=i){if(/-/.test(I)&&a["camel-case-expansion"]){let Z=I.split(".").map(function(J){return To(J)}).join(".");P(I,Z)}let G=F(I,R,$),w=I.split(".");le(T,w,G),h.aliases[I]&&h.aliases[I].forEach(function(Z){let J=Z.split(".");le(T,J,G)}),w.length>1&&a["dot-notation"]&&(h.aliases[w[0]]||[]).forEach(function(Z){let J=Z.split("."),se=[].concat(w);se.shift(),J=J.concat(se),(h.aliases[I]||[]).includes(J.join("."))||le(T,J,G)}),q(I,h.normalize)&&!q(I,h.arrays)&&[I].concat(h.aliases[I]||[]).forEach(function(J){Object.defineProperty(b,J,{enumerable:!0,get(){return R},set(se){R=typeof se=="string"?Ui.normalize(se):se}})})}function P(I,R){h.aliases[I]&&h.aliases[I].length||(h.aliases[I]=[R],d[R]=!0),h.aliases[R]&&h.aliases[R].length||P(R,I)}function F(I,R,$){$&&(R=uee(R)),(q(I,h.bools)||q(I,h.counts))&&typeof R=="string"&&(R=R==="true");let G=Array.isArray(R)?R.map(function(w){return V(I,w)}):V(I,R);return q(I,h.counts)&&(De(G)||typeof G=="boolean")&&(G=DS()),q(I,h.normalize)&&q(I,h.arrays)&&(Array.isArray(R)?G=R.map(w=>Ui.normalize(w)):G=Ui.normalize(R)),G}function V(I,R){return!a["parse-positional-numbers"]&&I==="_"||!q(I,h.strings)&&!q(I,h.bools)&&!Array.isArray(R)&&(nd(R)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${R}`)))||!De(R)&&q(I,h.numbers))&&(R=Number(R)),R}function H(I){let R=Object.create(null);Ee(R,h.aliases,c),Object.keys(h.configs).forEach(function($){let G=I[$]||R[$];if(G)try{let w=null,Z=Ui.resolve(Ui.cwd(),G),J=h.configs[$];if(typeof J=="function"){try{w=J(Z)}catch(se){w=se}if(w instanceof Error){S=w;return}}else w=Ui.require(Z);k(w)}catch(w){w.name==="PermissionDenied"?S=w:I[$]&&(S=Error(g("Invalid JSON config file: %s",G)))}})}function k(I,R){Object.keys(I).forEach(function($){let G=I[$],w=R?R+"."+$:$;typeof G=="object"&&G!==null&&!Array.isArray(G)&&a["dot-notation"]?k(G,w):(!K(T,w.split("."))||q(w,h.arrays)&&a["combine-arrays"])&&D(w,G)})}function X(){typeof u<"u"&&u.forEach(function(I){k(I)})}function ee(I,R){if(typeof l>"u")return;let $=typeof l=="string"?l:"",G=Ui.env();Object.keys(G).forEach(function(w){if($===""||w.lastIndexOf($,0)===0){let Z=w.split("__").map(function(J,se){return se===0&&(J=J.substring($.length)),To(J)});(R&&h.configs[Z.join(".")]||!R)&&!K(I,Z)&&D(Z.join("."),G[w])}})}function ne(I){let R,$=new Set;Object.keys(I).forEach(function(G){if(!$.has(G)&&(R=q(G,h.coercions),typeof R=="function"))try{let w=V(G,R(I[G]));[].concat(h.aliases[G]||[],G).forEach(Z=>{$.add(Z),I[Z]=w})}catch(w){S=w}})}function ie(I){return h.keys.forEach(R=>{~R.indexOf(".")||typeof I[R]>"u"&&(I[R]=void 0)}),I}function Ee(I,R,$,G=!1){Object.keys($).forEach(function(w){K(I,w.split("."))||(le(I,w.split("."),$[w]),G&&(m[w]=!0),(R[w]||[]).forEach(function(Z){K(I,Z.split("."))||le(I,Z.split("."),$[w])}))})}function K(I,R){let $=I;a["dot-notation"]||(R=[R.join(".")]),R.slice(0,-1).forEach(function(w){$=$[w]||{}});let G=R[R.length-1];return typeof $!="object"?!1:G in $}function le(I,R,$){let G=I;a["dot-notation"]||(R=[R.join(".")]),R.slice(0,-1).forEach(function(Je){Je=zw(Je),typeof G=="object"&&G[Je]===void 0&&(G[Je]={}),typeof G[Je]!="object"||Array.isArray(G[Je])?(Array.isArray(G[Je])?G[Je].push({}):G[Je]=[G[Je],{}],G=G[Je][G[Je].length-1]):G=G[Je]});let w=zw(R[R.length-1]),Z=q(R.join("."),h.arrays),J=Array.isArray($),se=a["duplicate-arguments-array"];!se&&q(w,h.nargs)&&(se=!0,(!De(G[w])&&h.nargs[w]===1||Array.isArray(G[w])&&G[w].length===h.nargs[w])&&(G[w]=void 0)),$===DS()?G[w]=DS(G[w]):Array.isArray(G[w])?se&&Z&&J?G[w]=a["flatten-duplicate-arrays"]?G[w].concat($):(Array.isArray(G[w][0])?G[w]:[G[w]]).concat([$]):!se&&!!Z==!!J?G[w]=$:G[w]=G[w].concat([$]):G[w]===void 0&&Z?G[w]=J?$:[$]:se&&!(G[w]===void 0||q(w,h.counts)||q(w,h.bools))?G[w]=[G[w],$]:G[w]=$}function de(...I){I.forEach(function(R){Object.keys(R||{}).forEach(function($){h.aliases[$]||(h.aliases[$]=[].concat(o[$]||[]),h.aliases[$].concat($).forEach(function(G){if(/-/.test(G)&&a["camel-case-expansion"]){let w=To(G);w!==$&&h.aliases[$].indexOf(w)===-1&&(h.aliases[$].push(w),d[w]=!0)}}),h.aliases[$].concat($).forEach(function(G){if(G.length>1&&/[A-Z]/.test(G)&&a["camel-case-expansion"]){let w=rd(G,"-");w!==$&&h.aliases[$].indexOf(w)===-1&&(h.aliases[$].push(w),d[w]=!0)}}),h.aliases[$].forEach(function(G){h.aliases[G]=[$].concat(h.aliases[$].filter(function(w){return G!==w}))}))})})}function q(I,R){let $=[].concat(h.aliases[I]||[],I),G=Object.keys(R),w=$.find(Z=>G.includes(Z));return w?R[w]:!1}function ke(I){let R=Object.keys(h);return[].concat(R.map(G=>h[G])).some(function(G){return Array.isArray(G)?G.includes(I):G[I]})}function U(I,...R){return[].concat(...R).some(function(G){let w=I.match(G);return w&&ke(w[1])})}function L(I){if(I.match(E)||!I.match(/^-[^-]+/))return!1;let R=!0,$,G=I.slice(1).split("");for(let w=0;w<G.length;w++){if($=I.slice(w+2),!ke(G[w])){R=!1;break}if(G[w+1]&&G[w+1]==="="||$==="-"||/[A-Za-z]/.test(G[w])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test($)||G[w+1]&&G[w+1].match(/\W/))break}return R}function N(I){return a["unknown-options-as-args"]&&z(I)}function z(I){return I=I.replace(/^-{3,}/,"--"),I.match(E)||L(I)?!1:!U(I,/^-+([^=]+?)=[\s\S]*$/,_,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function oe(I){return!q(I,h.bools)&&!q(I,h.counts)&&`${I}`in c?c[I]:fe(Re(I))}function fe(I){return{[Tn.BOOLEAN]:!0,[Tn.STRING]:"",[Tn.NUMBER]:void 0,[Tn.ARRAY]:[]}[I]}function Re(I){let R=Tn.BOOLEAN;return q(I,h.strings)?R=Tn.STRING:q(I,h.numbers)?R=Tn.NUMBER:q(I,h.bools)?R=Tn.BOOLEAN:q(I,h.arrays)&&(R=Tn.ARRAY),R}function De(I){return I===void 0}function Se(){Object.keys(h.counts).find(I=>q(I,h.arrays)?(S=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",I)),!0):q(I,h.nargs)?(S=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",I)),!0):!1)}return{aliases:Object.assign({},h.aliases),argv:Object.assign(b,T),configuration:a,defaulted:Object.assign({},m),error:S,newAliases:Object.assign({},d)}}};function cee(r){let e=[],t=Object.create(null),n=!0;for(Object.keys(r).forEach(function(s){e.push([].concat(r[s],s))});n;){n=!1;for(let s=0;s<e.length;s++)for(let i=s+1;i<e.length;i++)if(e[s].filter(function(a){return e[i].indexOf(a)!==-1}).length){e[s]=e[s].concat(e[i]),e.splice(i,1),n=!0;break}}return e.forEach(function(s){s=s.filter(function(o,a,c){return c.indexOf(o)===a});let i=s.pop();i!==void 0&&typeof i=="string"&&(t[i]=s)}),t}function DS(r){return r!==void 0?r+1:1}function zw(r){return r==="__proto__"?"___proto___":r}function uee(r){return typeof r=="string"&&(r[0]==="'"||r[0]==='"')&&r[r.length-1]===r[0]?r.substring(1,r.length-1):r}import{readFileSync as dee}from"fs";var xS,bS,IS,Xw=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Kw=(bS=(xS=process==null?void 0:process.versions)===null||xS===void 0?void 0:xS.node)!==null&&bS!==void 0?bS:(IS=process==null?void 0:process.version)===null||IS===void 0?void 0:IS.slice(1);if(Kw&&Number(Kw.match(/^([^.]+)/)[1])<Xw)throw Error(`yargs parser supports a minimum Node.js version of ${Xw}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var hee=process?process.env:{},Jw=new id({cwd:process.cwd,env:()=>hee,format:lee,normalize:fee,resolve:pee,require:r=>{if(typeof W<"u")return W(r);if(r.match(/\.json$/))return JSON.parse(dee(r,"utf8"));throw Error("only .json config files are supported in ESM")}}),pl=function(e,t){return Jw.parse(e.slice(),t).argv};pl.detailed=function(r,e){return Jw.parse(r.slice(),e)};pl.camelCase=To;pl.decamelize=rd;pl.looksLikeNumber=nd;var dl=pl;import{notStrictEqual as Pee,strictEqual as wee}from"assert";var mee={right:Tee,center:yee},gee=0,sd=1,Eee=2,od=3,PS=class{constructor(e){var t;this.width=e.width,this.wrap=(t=e.wrap)!==null&&t!==void 0?t:!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]=="string")return this.applyLayoutDSL(e[0]);let t=e.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]=="string"&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
582
582
  `).map(s=>s.split(" ")),n=0;return t.forEach(s=>{s.length>1&&rn.stringWidth(s[0])>n&&(n=Math.min(Math.floor(this.width*.5),rn.stringWidth(s[0])))}),t.forEach(s=>{this.div(...s.map((i,o)=>({text:i.trim(),padding:this.measurePadding(i),width:o===0&&s.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){let t=rn.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){let e=[];return this.rows.forEach(t=>{this.rowToString(t,e)}),e.filter(t=>!t.hidden).map(t=>t.text).join(`
583
583
  `)}rowToString(e,t){return this.rasterize(e).forEach((n,s)=>{let i="";n.forEach((o,a)=>{let{width:c}=e[a],u=this.negatePadding(e[a]),l=o;if(u>rn.stringWidth(o)&&(l+=" ".repeat(u-rn.stringWidth(o))),e[a].align&&e[a].align!=="left"&&this.wrap){let p=mee[e[a].align];l=p(l,u),rn.stringWidth(l)<u&&(l+=" ".repeat((c||0)-rn.stringWidth(l)-1))}let f=e[a].padding||[0,0,0,0];f[od]&&(i+=" ".repeat(f[od])),i+=Qw(e[a],l,"| "),i+=l,i+=Qw(e[a],l," |"),f[sd]&&(i+=" ".repeat(f[sd])),s===0&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))}),t.push({text:i.replace(/ +$/,""),span:e.span})}),t}renderInline(e,t){let n=e.match(/^ */),s=n?n[0].length:0,i=t.text,o=rn.stringWidth(i.trimRight());return t.span?this.wrap?s<o?e:(t.hidden=!0,i.trimRight()+" ".repeat(s-o)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){let t=[],n=this.columnWidths(e),s;return e.forEach((i,o)=>{i.width=n[o],this.wrap?s=rn.wrap(i.text,this.negatePadding(i),{hard:!0}).split(`
584
584
  `):s=i.text.split(`
585
585
  `),i.border&&(s.unshift("."+"-".repeat(this.negatePadding(i)+2)+"."),s.push("'"+"-".repeat(this.negatePadding(i)+2)+"'")),i.padding&&(s.unshift(...new Array(i.padding[gee]||0).fill("")),s.push(...new Array(i.padding[Eee]||0).fill(""))),s.forEach((a,c)=>{t[c]||t.push([]);let u=t[c];for(let l=0;l<o;l++)u[l]===void 0&&u.push("");u.push(a)})}),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[od]||0)+(e.padding[sd]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map(o=>o.width||rn.stringWidth(o.text));let t=e.length,n=this.width,s=e.map(o=>{if(o.width)return t--,n-=o.width,o.width}),i=t?Math.floor(n/t):0;return s.map((o,a)=>o===void 0?Math.max(i,See(e[a])):o)}};function Qw(r,e,t){return r.border?/[.']-+[.']/.test(e)?"":e.trim().length!==0?t:" ":""}function See(r){let e=r.padding||[],t=1+(e[od]||0)+(e[sd]||0);return r.border?t+4:t}function _ee(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function Tee(r,e){r=r.trim();let t=rn.stringWidth(r);return t<e?" ".repeat(e-t)+r:r}function yee(r,e){r=r.trim();let t=rn.stringWidth(r);return t>=e?r:" ".repeat(e-t>>1)+r}var rn;function Zw(r,e){return rn=e,new PS({width:r?.width||_ee(),wrap:r?.wrap})}var eR=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function wS(r){return r.replace(eR,"")}function tR(r,e){let[t,n]=r.match(eR)||["",""];r=wS(r);let s="";for(let i=0;i<r.length;i++)i!==0&&i%e===0&&(s+=`
586
- `),s+=r.charAt(i);return t&&n&&(s=`${t}${s}${n}`),s}function RS(r){return Zw(r,{stringWidth:e=>[...e].length,stripAnsi:wS,wrap:tR})}import{dirname as rR,resolve as nR}from"path";import{readdirSync as Aee,statSync as Oee}from"fs";function iR(r,e){let t=nR(".",r),n;for(Oee(t).isDirectory()||(t=rR(t));;){if(n=e(t,Aee(t)),n)return nR(t,n);if(t=rR(n=t),n===t)break}}import{inspect as Ree}from"util";import{readFileSync as Lee}from"fs";import{fileURLToPath as Mee}from"url";import{basename as Nee,dirname as Bee,extname as Uee,relative as Fee,resolve as cR}from"path";import{readFileSync as Cee,statSync as vee,writeFile as Dee}from"fs";import{format as xee}from"util";import{resolve as bee}from"path";var sR={fs:{readFileSync:Cee,writeFile:Dee},format:xee,resolve:bee,exists:r=>{try{return vee(r).isFile()}catch{return!1}}};var Yn,LS=class{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles=typeof e.updateFiles=="boolean"?e.updateFiles:!0,this.locale=e.locale||"en",this.fallbackToLanguage=typeof e.fallbackToLanguage=="boolean"?e.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let t=e.shift(),n=function(){};return typeof e[e.length-1]=="function"&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),Yn.format.apply(Yn.format,[this.cache[this.locale][t]||t].concat(e))}__n(){let e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),s=e.shift(),i=function(){};typeof e[e.length-1]=="function"&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let o=s===1?t:n;this.cache[this.locale][t]&&(o=this.cache[this.locale][t][s===1?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();let a=[o];return~o.indexOf("%d")&&a.push(s),Yn.format.apply(Yn.format,a.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach(function(s,i){let o=t[i+1];n+=s,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let e=this,t=this.writeQueue[0],n=t.directory,s=t.locale,i=t.cb,o=this._resolveLocaleFile(n,s),a=JSON.stringify(this.cache[s],null,2);Yn.fs.writeFile(o,a,"utf-8",function(c){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(c)})}_readLocaleFile(){let e={},t=this._resolveLocaleFile(this.directory,this.locale);try{Yn.fs.readFileSync&&(e=JSON.parse(Yn.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),n.code==="ENOENT")e={};else throw n}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=Yn.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){let s=Yn.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(s)&&(n=s)}return n}_fileExistsSync(e){return Yn.exists(e)}};function oR(r,e){Yn=e;let t=new LS(r);return{__:t.__.bind(t),__n:t.__n.bind(t),setLocale:t.setLocale.bind(t),getLocale:t.getLocale.bind(t),updateLocale:t.updateLocale.bind(t),locale:t.locale}}var Iee=r=>oR(r,sR),aR=Iee;var Vee="require is not supported by ESM",uR="loading a directory of commands is not supported yet for ESM",hl;try{hl=Mee(import.meta.url)}catch{hl=process.cwd()}var Gee=hl.substring(0,hl.lastIndexOf("node_modules")),kee={assert:{notStrictEqual:Pee,strictEqual:wee},cliui:RS,findUp:iR,getEnv:r=>process.env[r],inspect:Ree,getCallerFile:()=>{throw new _o(uR)},getProcessArgvBin:Ww,mainFilename:Gee||process.cwd(),Parser:dl,path:{basename:Nee,dirname:Bee,extname:Uee,relative:Fee,resolve:cR},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(r,e)=>process.emitWarning(r,e),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:Lee,require:()=>{throw new _o(Vee)},requireDirectory:()=>{throw new _o(uR)},stringWidth:r=>[...r].length,y18n:aR({directory:cR(hl,"../../../locales"),updateFiles:!1})};var FL=Er(UL(),1),{applyExtends:Xte,cjsPlatformShim:Kte,Parser:Jte,processArgv:Qte,Yargs:Cd}=FL.default;Cd.applyExtends=(r,e,t)=>Xte(r,e,t,Kte);Cd.hideBin=Qte.hideBin;Cd.Parser=Jte;var VL=Cd;var lt=Er(N2(),1);var qd="create-cedar-app",$d="1.0.0-canary.12988+f527e703d";Pe();Pe();var L9=Er(kj(),1),lC=Er(Uc(),1),Dg=Er(I$(),1),Wf=Er(Ai(),1),M9=Er(L$(),1),N9=Er(N$(),1),fC=Er(w9(),1);var mr=[];for(let r=0;r<256;++r)mr.push((r+256).toString(16).slice(1));function R9(r,e=0){return(mr[r[e+0]]+mr[r[e+1]]+mr[r[e+2]]+mr[r[e+3]]+"-"+mr[r[e+4]]+mr[r[e+5]]+"-"+mr[r[e+6]]+mr[r[e+7]]+"-"+mr[r[e+8]]+mr[r[e+9]]+"-"+mr[r[e+10]]+mr[r[e+11]]+mr[r[e+12]]+mr[r[e+13]]+mr[r[e+14]]+mr[r[e+15]]).toLowerCase()}import dSe from"node:crypto";var Cg=new Uint8Array(256),Og=Cg.length;function aC(){return Og>Cg.length-16&&(dSe.randomFillSync(Cg),Og=0),Cg.slice(Og,Og+=16)}import hSe from"node:crypto";var cC={randomUUID:hSe.randomUUID};function mSe(r,e,t){if(cC.randomUUID&&!e&&!r)return cC.randomUUID();r=r||{};let n=r.random||(r.rng||aC)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let s=0;s<16;++s)e[t+s]=n[s];return e}return R9(n)}var uC=mSe;var vg,pC,dC,hC=uC();async function B9(){Fu.setLogger(new Qf,zt.ERROR);let r=JSON.parse(await N9.default.run({System:["OS","Shell"],Binaries:["Node","Yarn","npm"],npmPackages:"@cedarjs/*",IDEs:["VSCode"]},{json:!0})),e=r.System?.Shell;e?.path?.match("/")?r.System.Shell.name=r.System.Shell.path.split("/").pop():e?.path.match("\\")&&(r.System.Shell.name=r.System.Shell.path.split("\\").pop());let t=await fC.default.cpu(),n=await fC.default.mem(),s;Object.keys(process.env).some(o=>o.startsWith("GITPOD_"))&&(s="gitpod");let i=lC.Resource.default().merge(new lC.Resource({[Wf.SemanticResourceAttributes.SERVICE_NAME]:qd,[Wf.SemanticResourceAttributes.SERVICE_VERSION]:$d,[Wf.SemanticResourceAttributes.OS_TYPE]:r.System?.OS?.split(" ")[0],[Wf.SemanticResourceAttributes.OS_VERSION]:r.System?.OS?.split(" ")[1],"shell.name":r.System?.Shell?.name,"node.version":r.Binaries?.Node?.version,"yarn.version":r.Binaries?.Yarn?.version,"npm.version":r.Binaries?.npm?.version,"vscode.version":r.IDEs?.VSCode?.version,"cpu.count":t.physicalCores,"memory.gb":Math.round(n.total/1073741824),"env.node_env":process.env.NODE_ENV||null,"ci.redwood":!!process.env.REDWOOD_CI,"ci.isci":M9.default.isCI,"dev.environment":s,uid:hC}));vg=new Dg.NodeTracerProvider({resource:i}),dC=new L9.OTLPTraceExporter({url:process.env.REDWOOD_REDIRECT_TELEMETRY||"https://quark.quantumparticle.io/v1/traces"}),pC=new Dg.BatchSpanProcessor(dC),vg.addSpanProcessor(pC),vg.register(),process.on("SIGTERM",async()=>{await ur()})}async function ur(){try{Vu.trace.getActiveSpan()?.end(),await vg?.shutdown(),await pC?.shutdown(),await dC?.shutdown()}catch{}}function Pr(r){Vu.trace.getActiveSpan()?.setStatus({code:ts.ERROR,message:r.toString().split(`
586
+ `),s+=r.charAt(i);return t&&n&&(s=`${t}${s}${n}`),s}function RS(r){return Zw(r,{stringWidth:e=>[...e].length,stripAnsi:wS,wrap:tR})}import{dirname as rR,resolve as nR}from"path";import{readdirSync as Aee,statSync as Oee}from"fs";function iR(r,e){let t=nR(".",r),n;for(Oee(t).isDirectory()||(t=rR(t));;){if(n=e(t,Aee(t)),n)return nR(t,n);if(t=rR(n=t),n===t)break}}import{inspect as Ree}from"util";import{readFileSync as Lee}from"fs";import{fileURLToPath as Mee}from"url";import{basename as Nee,dirname as Bee,extname as Uee,relative as Fee,resolve as cR}from"path";import{readFileSync as Cee,statSync as vee,writeFile as Dee}from"fs";import{format as xee}from"util";import{resolve as bee}from"path";var sR={fs:{readFileSync:Cee,writeFile:Dee},format:xee,resolve:bee,exists:r=>{try{return vee(r).isFile()}catch{return!1}}};var Yn,LS=class{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles=typeof e.updateFiles=="boolean"?e.updateFiles:!0,this.locale=e.locale||"en",this.fallbackToLanguage=typeof e.fallbackToLanguage=="boolean"?e.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let t=e.shift(),n=function(){};return typeof e[e.length-1]=="function"&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),Yn.format.apply(Yn.format,[this.cache[this.locale][t]||t].concat(e))}__n(){let e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),s=e.shift(),i=function(){};typeof e[e.length-1]=="function"&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let o=s===1?t:n;this.cache[this.locale][t]&&(o=this.cache[this.locale][t][s===1?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();let a=[o];return~o.indexOf("%d")&&a.push(s),Yn.format.apply(Yn.format,a.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach(function(s,i){let o=t[i+1];n+=s,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let e=this,t=this.writeQueue[0],n=t.directory,s=t.locale,i=t.cb,o=this._resolveLocaleFile(n,s),a=JSON.stringify(this.cache[s],null,2);Yn.fs.writeFile(o,a,"utf-8",function(c){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(c)})}_readLocaleFile(){let e={},t=this._resolveLocaleFile(this.directory,this.locale);try{Yn.fs.readFileSync&&(e=JSON.parse(Yn.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),n.code==="ENOENT")e={};else throw n}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=Yn.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){let s=Yn.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(s)&&(n=s)}return n}_fileExistsSync(e){return Yn.exists(e)}};function oR(r,e){Yn=e;let t=new LS(r);return{__:t.__.bind(t),__n:t.__n.bind(t),setLocale:t.setLocale.bind(t),getLocale:t.getLocale.bind(t),updateLocale:t.updateLocale.bind(t),locale:t.locale}}var Iee=r=>oR(r,sR),aR=Iee;var Vee="require is not supported by ESM",uR="loading a directory of commands is not supported yet for ESM",hl;try{hl=Mee(import.meta.url)}catch{hl=process.cwd()}var Gee=hl.substring(0,hl.lastIndexOf("node_modules")),kee={assert:{notStrictEqual:Pee,strictEqual:wee},cliui:RS,findUp:iR,getEnv:r=>process.env[r],inspect:Ree,getCallerFile:()=>{throw new _o(uR)},getProcessArgvBin:Ww,mainFilename:Gee||process.cwd(),Parser:dl,path:{basename:Nee,dirname:Bee,extname:Uee,relative:Fee,resolve:cR},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(r,e)=>process.emitWarning(r,e),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:Lee,require:()=>{throw new _o(Vee)},requireDirectory:()=>{throw new _o(uR)},stringWidth:r=>[...r].length,y18n:aR({directory:cR(hl,"../../../locales"),updateFiles:!1})};var FL=Er(UL(),1),{applyExtends:Xte,cjsPlatformShim:Kte,Parser:Jte,processArgv:Qte,Yargs:Cd}=FL.default;Cd.applyExtends=(r,e,t)=>Xte(r,e,t,Kte);Cd.hideBin=Qte.hideBin;Cd.Parser=Jte;var VL=Cd;var lt=Er(N2(),1);var qd="create-cedar-app",$d="1.0.0-canary.12991+b4569b68d";Pe();Pe();var L9=Er(kj(),1),lC=Er(Uc(),1),Dg=Er(I$(),1),Wf=Er(Ai(),1),M9=Er(L$(),1),N9=Er(N$(),1),fC=Er(w9(),1);var mr=[];for(let r=0;r<256;++r)mr.push((r+256).toString(16).slice(1));function R9(r,e=0){return(mr[r[e+0]]+mr[r[e+1]]+mr[r[e+2]]+mr[r[e+3]]+"-"+mr[r[e+4]]+mr[r[e+5]]+"-"+mr[r[e+6]]+mr[r[e+7]]+"-"+mr[r[e+8]]+mr[r[e+9]]+"-"+mr[r[e+10]]+mr[r[e+11]]+mr[r[e+12]]+mr[r[e+13]]+mr[r[e+14]]+mr[r[e+15]]).toLowerCase()}import dSe from"node:crypto";var Cg=new Uint8Array(256),Og=Cg.length;function aC(){return Og>Cg.length-16&&(dSe.randomFillSync(Cg),Og=0),Cg.slice(Og,Og+=16)}import hSe from"node:crypto";var cC={randomUUID:hSe.randomUUID};function mSe(r,e,t){if(cC.randomUUID&&!e&&!r)return cC.randomUUID();r=r||{};let n=r.random||(r.rng||aC)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let s=0;s<16;++s)e[t+s]=n[s];return e}return R9(n)}var uC=mSe;var vg,pC,dC,hC=uC();async function B9(){Fu.setLogger(new Qf,zt.ERROR);let r=JSON.parse(await N9.default.run({System:["OS","Shell"],Binaries:["Node","Yarn","npm"],npmPackages:"@cedarjs/*",IDEs:["VSCode"]},{json:!0})),e=r.System?.Shell;e?.path?.match("/")?r.System.Shell.name=r.System.Shell.path.split("/").pop():e?.path.match("\\")&&(r.System.Shell.name=r.System.Shell.path.split("\\").pop());let t=await fC.default.cpu(),n=await fC.default.mem(),s;Object.keys(process.env).some(o=>o.startsWith("GITPOD_"))&&(s="gitpod");let i=lC.Resource.default().merge(new lC.Resource({[Wf.SemanticResourceAttributes.SERVICE_NAME]:qd,[Wf.SemanticResourceAttributes.SERVICE_VERSION]:$d,[Wf.SemanticResourceAttributes.OS_TYPE]:r.System?.OS?.split(" ")[0],[Wf.SemanticResourceAttributes.OS_VERSION]:r.System?.OS?.split(" ")[1],"shell.name":r.System?.Shell?.name,"node.version":r.Binaries?.Node?.version,"yarn.version":r.Binaries?.Yarn?.version,"npm.version":r.Binaries?.npm?.version,"vscode.version":r.IDEs?.VSCode?.version,"cpu.count":t.physicalCores,"memory.gb":Math.round(n.total/1073741824),"env.node_env":process.env.NODE_ENV||null,"ci.redwood":!!process.env.REDWOOD_CI,"ci.isci":M9.default.isCI,"dev.environment":s,uid:hC}));vg=new Dg.NodeTracerProvider({resource:i}),dC=new L9.OTLPTraceExporter({url:process.env.REDWOOD_REDIRECT_TELEMETRY||"https://quark.quantumparticle.io/v1/traces"}),pC=new Dg.BatchSpanProcessor(dC),vg.addSpanProcessor(pC),vg.register(),process.on("SIGTERM",async()=>{await ur()})}async function ur(){try{Vu.trace.getActiveSpan()?.end(),await vg?.shutdown(),await pC?.shutdown(),await dC?.shutdown()}catch{}}function Pr(r){Vu.trace.getActiveSpan()?.setStatus({code:ts.ERROR,message:r.toString().split(`
587
587
  `)[0]}),Vu.trace.getActiveSpan()?.recordException(r)}var F9="Initial commit",{telemetry:ESe}=dl(td(process.argv),{boolean:["telemetry"],default:{telemetry:process.env.REDWOOD_DISABLE_TELEMETRY===void 0||process.env.REDWOOD_DISABLE_TELEMETRY===""}}),Ke=new lt.RedwoodTUI;function SSe(){let{npm_config_user_agent:r}=process.env;if(r){let e=r.match(/yarn\/(\d+)/);if(e&&e[1])return parseInt(e[1],10)>=2}return!1}async function _Se(r){let e=new lt.ReactiveTUIContent({mode:"text",content:"Checking node and yarn compatibility",spinner:{enabled:!0}});Ke.startReactive(e);let[t,n]=await TSe(r);if(t){e.update({spinner:{enabled:!1},content:`${lt.RedwoodStyling.green("\u2714")} Compatibility checks passed`}),Ke.stopReactive();return}if(!t){mC.default.lt(n.node.version.version,mC.default.minVersion(n.node.wanted.raw))&&(Ke.stopReactive(!0),Ke.displayError("Compatibility checks failed",[" You need to upgrade the version of node you're using.",` You're using ${n.node.version.version} and we currently support node ${n.node.wanted.range}.`,""," Please use tools like nvm or corepack to change to a compatible version.",` See: ${(0,Yf.terminalLink)("How to - Using nvm","https://cedarjs.com/docs/how-to/using-nvm",{fallback:()=>"How to - Using nvm https://cedarjs.com/docs/how-to/using-nvm"})}`,` See: ${(0,Yf.terminalLink)("Tutorial - Prerequisites","https://cedarjs.com/docs/tutorial/chapter1/prerequisites",{fallback:()=>"Tutorial - Prerequisites https://cedarjs.com/docs/tutorial/chapter1/prerequisites"})}`].join(`
588
588
  `)),Pr("Compatibility checks failed"),await ur(),process.exit(1)),Ke.stopReactive(!0),Ke.displayWarning("Compatibility checks failed",[" You may want to downgrade the version of node you're using.",` You're using ${n.node.version.version} and we currently support node ${n.node.wanted.range}.`,""," This may make your project incompatible with some deploy targets, especially those using AWS Lambdas.",""," Please use tools like nvm or corepack to change to a compatible version.",` See: ${(0,Yf.terminalLink)("How to - Use nvm","https://cedarjs.com/docs/how-to/using-nvm",{fallback:()=>"How to - Use nvm https://cedarjs.com/docs/how-to/using-nvm"})}`,` See: ${(0,Yf.terminalLink)("Tutorial - Prerequisites","https://cedarjs.com/docs/tutorial/chapter1/prerequisites",{fallback:()=>"Tutorial - Prerequisites https://cedarjs.com/docs/tutorial/chapter1/prerequisites"})}`].join(`
589
589
  `));try{(await Ke.prompt({type:"select",name:"override-engine-error",message:"How would you like to proceed?",choices:["Override error and continue install","Quit install"],initial:0}))["override-engine-error"]==="Quit install"&&(Pr("User quit after engine check error"),await ur(),process.exit(0))}catch{Pr("User cancelled install at engine check error"),await ur(),process.exit(1)}}}function TSe(r){return new Promise(e=>{let{engines:t}=wi.default.readJSONSync(li.join(r,"package.json"));(0,U9.default)(t,(n,s)=>e([s.isSatisfied,s.versions]))})}async function ySe(r,{templateDir:e,overwrite:t}){let n=r,s=new lt.ReactiveTUIContent({mode:"text",content:"Creating project files",spinner:{enabled:!0}});return Ke.startReactive(s),n=await gC(n,{overwrite:t}),wi.default.ensureDirSync(li.dirname(n)),wi.default.copySync(e,n,{overwrite:t}),wi.default.renameSync(li.join(n,"gitignore.template"),li.join(n,".gitignore")),wi.default.ensureDirSync(li.join(n,".redwood")),wi.default.writeFileSync(li.join(n,".redwood","telemetry.txt"),hC),s.update({spinner:{enabled:!1},content:`${lt.RedwoodStyling.green("\u2714")} Project files created`}),Ke.stopReactive(),n}async function ASe(r){let e=new lt.ReactiveTUIContent({mode:"text",header:"Installing node modules",content:" \u23F1 This could take a while...",spinner:{enabled:!0}});Ke.startReactive(e);let t=process.cwd();process.chdir(r);let n=(0,xg.default)("yarn install",{shell:!0,cwd:r});try{await n}catch(s){Ke.stopReactive(!0),Ke.displayError("Couldn't install node modules",[`We couldn't install node modules via ${lt.RedwoodStyling.info("'yarn install'")}. Please see below for the full error message.`,"",s].join(`
@@ -601,7 +601,7 @@ Bus `);for(let a=1;a<o.length;a++){let c=DEe(o[a]);t.push(c)}}r&&r(t),e(t)}),_Ee
601
601
  \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588
602
602
  \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591
603
603
 
604
- `));let s=t._,i=t["yarn-install"]??(e?t.yes:null),o=t.typescript??t.yes,a=t.esm,c=t.overwrite,u=t["git-init"]??t.yes,l=t["commit-message"]??(t.yes?F9:null);mn.getActiveSpan()?.setAttribute("yarn-install",i),mn.getActiveSpan()?.setAttribute("overwrite",c);let f=String(s).replace(/,/g,"-"),p=gSe(new URL("../templates",import.meta.url)),d=t["node-check"];d?await _Se(li.join(p,"ts")):Ke.drawText(`${lt.RedwoodStyling.info("\u2139")} Skipped node version check`),mn.getActiveSpan()?.setAttribute("node-check",d),f=await vSe(f);let m=await DSe(o);mn.getActiveSpan()?.setAttribute("typescript",m);let g=await xSe(a);mn.getActiveSpan()?.setAttribute("esm",g);let h=li.join(p,m?g?"esm-ts":"ts":g?"esm-js":"js"),E=await bSe(u);mn.getActiveSpan()?.setAttribute("git",E);let _;E&&(_=await PSe(l));let S=!1;e&&(S=await wSe(i));let y=li.resolve(process.cwd(),f);if(y=await ySe(y,{templateDir:h,overwrite:c}),S){let I=Date.now();await ASe(y),mn.getActiveSpan()?.setAttribute("yarn-install-time",Date.now()-I)}else e&&Ke.drawText(`${lt.RedwoodStyling.info("\u2139")} Skipped yarn install step`);S&&await OSe(y),E&&await CSe(y,_);let T=y!==process.cwd();Ke.drawText(["",lt.RedwoodStyling.success("Thanks for trying out CedarJS!"),"",` \u26A1\uFE0F ${lt.RedwoodStyling.redwood("Get up and running fast with this Quick Start guide")}: https://cedarjs.com/docs/quick-start`,"",`${lt.RedwoodStyling.header("Fire it up!")} \u{1F680}`,"",...[T&&`${lt.RedwoodStyling.redwood(` > ${lt.RedwoodStyling.green(`cd ${li.relative(process.cwd(),y)}`)}`)}`,!S&&`${lt.RedwoodStyling.redwood(` > ${lt.RedwoodStyling.green("yarn install")}`)}`,`${lt.RedwoodStyling.redwood(` > ${lt.RedwoodStyling.green("yarn cedar dev")}`)}`].filter(Boolean),""].join(`
604
+ `));let s=t._,i=t["yarn-install"]??(e?t.yes:null),o=t.typescript??t.yes,a=t.esm,c=t.overwrite,u=t["git-init"]??t.yes,l=t["commit-message"]??(t.yes?F9:null);mn.getActiveSpan()?.setAttribute("yarn-install",i),mn.getActiveSpan()?.setAttribute("overwrite",c);let f=String(s).replace(/,/g,"-"),p=gSe(new URL("../templates",import.meta.url)),d=t["node-check"];d?await _Se(li.join(p,"ts")):Ke.drawText(`${lt.RedwoodStyling.info("\u2139")} Skipped node version check`),mn.getActiveSpan()?.setAttribute("node-check",d),f=await vSe(f);let m=await DSe(o);mn.getActiveSpan()?.setAttribute("typescript",m);let g=await xSe(a);mn.getActiveSpan()?.setAttribute("esm",g);let h=li.join(p,m?g?"esm-ts":"ts":g?"esm-js":"js"),E=await bSe(u);mn.getActiveSpan()?.setAttribute("git",E);let _;E&&(_=await PSe(l));let S=!1;e&&(S=await wSe(i));let y=li.resolve(process.cwd(),f);if(y=await ySe(y,{templateDir:h,overwrite:c}),S){let b=Date.now();await ASe(y),mn.getActiveSpan()?.setAttribute("yarn-install-time",Date.now()-b)}else e&&Ke.drawText(`${lt.RedwoodStyling.info("\u2139")} Skipped yarn install step`);S&&await OSe(y),E&&await CSe(y,_);let T=y!==process.cwd();Ke.drawText(["",lt.RedwoodStyling.success("Thanks for trying out CedarJS!"),"",` \u26A1\uFE0F ${lt.RedwoodStyling.redwood("Get up and running fast with this Quick Start guide")}: https://cedarjs.com/docs/quick-start`,"",`${lt.RedwoodStyling.header("Fire it up!")} \u{1F680}`,"",...[T&&`${lt.RedwoodStyling.redwood(` > ${lt.RedwoodStyling.green(`cd ${li.relative(process.cwd(),y)}`)}`)}`,!S&&`${lt.RedwoodStyling.redwood(` > ${lt.RedwoodStyling.green("yarn install")}`)}`,`${lt.RedwoodStyling.redwood(` > ${lt.RedwoodStyling.green("yarn cedar dev")}`)}`].filter(Boolean),""].join(`
605
605
  `))}if(ESe)try{await B9()}catch(r){console.error("Telemetry startup error"),console.error(r)}var LSe=mn.getTracer("redwoodjs");await LSe.startActiveSpan("create-cedar-app",async r=>{await RSe(),r?.setStatus({code:ts.OK}),r?.end()});try{await ur()}catch(r){console.error("Telemetry shutdown error"),console.error(r)}
606
606
  /*! Bundled license information:
607
607