@canva/cli
Version:
The official Canva CLI.
12 lines • 4.82 MB
JavaScript
#!/usr/bin/env node
// Copyright 2024 Canva Inc. All Rights Reserved.
import { createRequire } from 'module';const require = createRequire(import.meta.url);
/*! @canva/cli v2.1.0 | SEE LICENSE IN LICENSE.md */
var u8e=Object.create;var iN=Object.defineProperty;var p8e=Object.getOwnPropertyDescriptor;var ofr=Object.getOwnPropertyNames;var cfr=Object.getPrototypeOf,lfr=Object.prototype.hasOwnProperty;var f8e=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),FR=e=>{throw TypeError(e)};var d8e=(e,t,r)=>t in e?iN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var o8e=(e,t)=>iN(e,"name",{value:t,configurable:!0}),sr=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var x8e=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),k4=(e,t)=>{for(var r in t)iN(e,r,{get:t[r],enumerable:!0})},h8e=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ofr(t))!lfr.call(e,i)&&i!==r&&iN(e,i,{get:()=>t[i],enumerable:!(n=p8e(t,i))||n.enumerable});return e};var Os=(e,t,r)=>(r=e!=null?u8e(cfr(e)):{},h8e(t||!e||!e.__esModule?iN(r,"default",{value:e,enumerable:!0}):r,e)),Qs=e=>h8e(iN({},"__esModule",{value:!0}),e);var Kx=e=>[,,,u8e(e?.[f8e("metadata")]??null)],m8e=["class","method","getter","setter","accessor","field","value","get","set"],R4=e=>e!==void 0&&typeof e!="function"?FR("Function expected"):e,ufr=(e,t,r,n,i)=>({kind:m8e[e],name:t,metadata:n,addInitializer:a=>r._?FR("Already initialized"):i.push(R4(a||null))}),Gd=(e,t)=>d8e(t,f8e("metadata"),e[3]),Ai=(e,t,r,n)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(r):n=a[i].call(r,n);return n},Ni=(e,t,r,n,i,a)=>{var o,l,u,p,d,x=t&7,_=!!(t&8),m=!!(t&16),y=x>3?e.length+1:x?_?1:2:0,S=m8e[x+5],v=x>3&&(e[y-1]=[]),C=e[y]||(e[y]=[]),I=x&&(!m&&!_&&(i=i.prototype),x<5&&(x>3||!m)&&p8e(x<4?i:{get[r](){return c8e(this,a)},set[r](R){return l8e(this,a,R)}},r));x?m&&x<4&&o8e(a,(x>2?"set ":x>1?"get ":"")+r):o8e(i,r);for(var B=n.length-1;B>=0;B--)p=ufr(x,r,u={},e[3],C),x&&(p.static=_,p.private=m,d=p.access={has:m?R=>pfr(i,R):R=>r in R},x^3&&(d.get=m?R=>(x^1?c8e:ffr)(R,i,x^4?a:I.get):R=>R[r]),x>2&&(d.set=m?(R,V)=>l8e(R,i,V,x^4?a:I.set):(R,V)=>R[r]=V)),l=(0,n[B])(x?x<4?m?a:I[S]:x>4?void 0:{get:I.get,set:I.set}:i,p),u._=1,x^4||l===void 0?R4(l)&&(x>4?v.unshift(l):x?m?a=l:I[S]=l:i=l):typeof l!="object"||l===null?FR("Object expected"):(R4(o=l.get)&&(I.get=o),R4(o=l.set)&&(I.set=o),R4(o=l.init)&&v.unshift(o));return x||Gd(e,i),I&&iN(i,r,I),m?x^4?a:I:i},Lm=(e,t,r)=>d8e(e,typeof t!="symbol"?t+"":t,r),Che=(e,t,r)=>t.has(e)||FR("Cannot "+r),pfr=(e,t)=>Object(t)!==t?FR('Cannot use the "in" operator on this value'):e.has(t),c8e=(e,t,r)=>(Che(e,t,"read from private field"),r?r.call(e):t.get(e)),Wc=(e,t,r)=>t.has(e)?FR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),l8e=(e,t,r,n)=>(Che(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ffr=(e,t,r)=>(Che(e,t,"access private method"),r);var C6e=U((XMn,b6e)=>{b6e.exports=v6e;v6e.sync=ddr;var S6e=sr("fs");function fdr(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function T6e(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:fdr(t,r)}function v6e(e,t,r){S6e.stat(e,function(n,i){r(n,n?!1:T6e(i,e,t))})}function ddr(e,t){return T6e(S6e.statSync(e),e,t)}});var N6e=U((JMn,O6e)=>{O6e.exports=D6e;D6e.sync=xdr;var A6e=sr("fs");function D6e(e,t,r){A6e.stat(e,function(n,i){r(n,n?!1:I6e(i,t))})}function xdr(e,t){return I6e(A6e.statSync(e),t)}function I6e(e,t){return e.isFile()&&hdr(e,t)}function hdr(e,t){var r=e.mode,n=e.uid,i=e.gid,a=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),o=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),l=parseInt("100",8),u=parseInt("010",8),p=parseInt("001",8),d=l|u,x=r&p||r&u&&i===o||r&l&&n===a||r&d&&a===0;return x}});var P6e=U((ZMn,w6e)=>{var QMn=sr("fs"),H$;process.platform==="win32"||global.TESTING_WINDOWS?H$=C6e():H$=N6e();w6e.exports=ime;ime.sync=mdr;function ime(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){ime(e,t||{},function(a,o){a?i(a):n(o)})})}H$(e,t||{},function(n,i){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function mdr(e,t){try{return H$.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var U6e=U((e3n,B6e)=>{var qR=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",R6e=sr("path"),gdr=qR?";":":",k6e=P6e(),L6e=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),M6e=(e,t)=>{let r=t.colon||gdr,n=e.match(/\//)||qR&&e.match(/\\/)?[""]:[...qR?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=qR?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=qR?i.split(r):[""];return qR&&e.indexOf(".")!==-1&&a[0]!==""&&a.unshift(""),{pathEnv:n,pathExt:a,pathExtExe:i}},F6e=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:a}=M6e(e,t),o=[],l=p=>new Promise((d,x)=>{if(p===n.length)return t.all&&o.length?d(o):x(L6e(e));let _=n[p],m=/^".*"$/.test(_)?_.slice(1,-1):_,y=R6e.join(m,e),S=!m&&/^\.[\\\/]/.test(e)?e.slice(0,2)+y:y;d(u(S,p,0))}),u=(p,d,x)=>new Promise((_,m)=>{if(x===i.length)return _(l(d+1));let y=i[x];k6e(p+y,{pathExt:a},(S,v)=>{if(!S&&v)if(t.all)o.push(p+y);else return _(p+y);return _(u(p,d,x+1))})});return r?l(0).then(p=>r(null,p),r):l(0)},_dr=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=M6e(e,t),a=[];for(let o=0;o<r.length;o++){let l=r[o],u=/^".*"$/.test(l)?l.slice(1,-1):l,p=R6e.join(u,e),d=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let x=0;x<n.length;x++){let _=d+n[x];try{if(k6e.sync(_,{pathExt:i}))if(t.all)a.push(_);else return _}catch{}}}if(t.all&&a.length)return a;if(t.nothrow)return null;throw L6e(e)};B6e.exports=F6e;F6e.sync=_dr});var G6e=U((t3n,sme)=>{"use strict";var V6e=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};sme.exports=V6e;sme.exports.default=V6e});var $6e=U((r3n,H6e)=>{"use strict";var j6e=sr("path"),ydr=U6e(),Edr=G6e();function q6e(e,t){let r=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,a=i&&process.chdir!==void 0&&!process.chdir.disabled;if(a)try{process.chdir(e.options.cwd)}catch{}let o;try{o=ydr.sync(e.command,{path:r[Edr({env:r})],pathExt:t?j6e.delimiter:void 0})}catch{}finally{a&&process.chdir(n)}return o&&(o=j6e.resolve(i?e.options.cwd:"",o)),o}function Sdr(e){return q6e(e)||q6e(e,!0)}H6e.exports=Sdr});var Y6e=U((n3n,ome)=>{"use strict";var ame=/([()\][%!^"`<>&|;, *?])/g;function Tdr(e){return e=e.replace(ame,"^$1"),e}function vdr(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(ame,"^$1"),t&&(e=e.replace(ame,"^$1")),e}ome.exports.command=Tdr;ome.exports.argument=vdr});var W6e=U((i3n,K6e)=>{"use strict";K6e.exports=/^#!(.*)/});var X6e=U((s3n,z6e)=>{"use strict";var bdr=W6e();z6e.exports=(e="")=>{let t=e.match(bdr);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var Q6e=U((a3n,J6e)=>{"use strict";var cme=sr("fs"),Cdr=X6e();function Adr(e){let r=Buffer.alloc(150),n;try{n=cme.openSync(e,"r"),cme.readSync(n,r,0,150,0),cme.closeSync(n)}catch{}return Cdr(r.toString())}J6e.exports=Adr});var rBe=U((o3n,tBe)=>{"use strict";var Ddr=sr("path"),Z6e=$6e(),eBe=Y6e(),Idr=Q6e(),Odr=process.platform==="win32",Ndr=/\.(?:com|exe)$/i,wdr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Pdr(e){e.file=Z6e(e);let t=e.file&&Idr(e.file);return t?(e.args.unshift(e.file),e.command=t,Z6e(e)):e.file}function Rdr(e){if(!Odr)return e;let t=Pdr(e),r=!Ndr.test(t);if(e.options.forceShell||r){let n=wdr.test(t);e.command=Ddr.normalize(e.command),e.command=eBe.command(e.command),e.args=e.args.map(a=>eBe.argument(a,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function kdr(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:Rdr(n)}tBe.exports=kdr});var sBe=U((c3n,iBe)=>{"use strict";var lme=process.platform==="win32";function ume(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function Ldr(e,t){if(!lme)return;let r=e.emit;e.emit=function(n,i){if(n==="exit"){let a=nBe(i,t);if(a)return r.call(e,"error",a)}return r.apply(e,arguments)}}function nBe(e,t){return lme&&e===1&&!t.file?ume(t.original,"spawn"):null}function Mdr(e,t){return lme&&e===1&&!t.file?ume(t.original,"spawnSync"):null}iBe.exports={hookChildProcess:Ldr,verifyENOENT:nBe,verifyENOENTSync:Mdr,notFoundError:ume}});var cBe=U((l3n,HR)=>{"use strict";var aBe=sr("child_process"),pme=rBe(),fme=sBe();function oBe(e,t,r){let n=pme(e,t,r),i=aBe.spawn(n.command,n.args,n.options);return fme.hookChildProcess(i,n),i}function Fdr(e,t,r){let n=pme(e,t,r),i=aBe.spawnSync(n.command,n.args,n.options);return i.error=i.error||fme.verifyENOENTSync(i.status,n),i}HR.exports=oBe;HR.exports.spawn=oBe;HR.exports.sync=Fdr;HR.exports._parse=pme;HR.exports._enoent=fme});var MBe=U((d5n,LBe)=>{"use strict";var{PassThrough:Lxr}=sr("stream");LBe.exports=function(){var e=[],t=new Lxr({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(a){return Array.isArray(a)?(a.forEach(r),this):(e.push(a),a.once("end",i.bind(null,a)),a.once("error",t.emit.bind(t,"error")),a.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(a){e=e.filter(function(o){return o!==a}),!e.length&&t.readable&&t.end()}}});var hUe=U((y4n,xUe)=>{var TA=sr("constants"),mhr=process.cwd,lY=null,ghr=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return lY||(lY=mhr.call(process)),lY};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ume=process.chdir,process.chdir=function(e){lY=null,Ume.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ume));var Ume;xUe.exports=_hr;function _hr(e){TA.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=a(e.chown),e.fchown=a(e.fchown),e.lchown=a(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=l(e.stat),e.fstat=l(e.fstat),e.lstat=l(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(d,x,_){_&&process.nextTick(_)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(d,x,_,m){m&&process.nextTick(m)},e.lchownSync=function(){}),ghr==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(d){function x(_,m,y){var S=Date.now(),v=0;d(_,m,function C(I){if(I&&(I.code==="EACCES"||I.code==="EPERM"||I.code==="EBUSY")&&Date.now()-S<6e4){setTimeout(function(){e.stat(m,function(B,R){B&&B.code==="ENOENT"?d(_,m,C):y(I)})},v),v<100&&(v+=10);return}y&&y(I)})}return Object.setPrototypeOf&&Object.setPrototypeOf(x,d),x})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(d){function x(_,m,y,S,v,C){var I;if(C&&typeof C=="function"){var B=0;I=function(R,V,se){if(R&&R.code==="EAGAIN"&&B<10)return B++,d.call(e,_,m,y,S,v,I);C.apply(this,arguments)}}return d.call(e,_,m,y,S,v,I)}return Object.setPrototypeOf&&Object.setPrototypeOf(x,d),x})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(d){return function(x,_,m,y,S){for(var v=0;;)try{return d.call(e,x,_,m,y,S)}catch(C){if(C.code==="EAGAIN"&&v<10){v++;continue}throw C}}})(e.readSync);function t(d){d.lchmod=function(x,_,m){d.open(x,TA.O_WRONLY|TA.O_SYMLINK,_,function(y,S){if(y){m&&m(y);return}d.fchmod(S,_,function(v){d.close(S,function(C){m&&m(v||C)})})})},d.lchmodSync=function(x,_){var m=d.openSync(x,TA.O_WRONLY|TA.O_SYMLINK,_),y=!0,S;try{S=d.fchmodSync(m,_),y=!1}finally{if(y)try{d.closeSync(m)}catch{}else d.closeSync(m)}return S}}function r(d){TA.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(x,_,m,y){d.open(x,TA.O_SYMLINK,function(S,v){if(S){y&&y(S);return}d.futimes(v,_,m,function(C){d.close(v,function(I){y&&y(C||I)})})})},d.lutimesSync=function(x,_,m){var y=d.openSync(x,TA.O_SYMLINK),S,v=!0;try{S=d.futimesSync(y,_,m),v=!1}finally{if(v)try{d.closeSync(y)}catch{}else d.closeSync(y)}return S}):d.futimes&&(d.lutimes=function(x,_,m,y){y&&process.nextTick(y)},d.lutimesSync=function(){})}function n(d){return d&&function(x,_,m){return d.call(e,x,_,function(y){p(y)&&(y=null),m&&m.apply(this,arguments)})}}function i(d){return d&&function(x,_){try{return d.call(e,x,_)}catch(m){if(!p(m))throw m}}}function a(d){return d&&function(x,_,m,y){return d.call(e,x,_,m,function(S){p(S)&&(S=null),y&&y.apply(this,arguments)})}}function o(d){return d&&function(x,_,m){try{return d.call(e,x,_,m)}catch(y){if(!p(y))throw y}}}function l(d){return d&&function(x,_,m){typeof _=="function"&&(m=_,_=null);function y(S,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),m&&m.apply(this,arguments)}return _?d.call(e,x,_,y):d.call(e,x,y)}}function u(d){return d&&function(x,_){var m=_?d.call(e,x,_):d.call(e,x);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function p(d){if(!d||d.code==="ENOSYS")return!0;var x=!process.getuid||process.getuid()!==0;return!!(x&&(d.code==="EINVAL"||d.code==="EPERM"))}}});var _Ue=U((E4n,gUe)=>{var mUe=sr("stream").Stream;gUe.exports=yhr;function yhr(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);mUe.call(this);var a=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),l=0,u=o.length;l<u;l++){var p=o[l];this[p]=i[p]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){a._read()});return}e.open(this.path,this.flags,this.mode,function(d,x){if(d){a.emit("error",d),a.readable=!1;return}a.fd=x,a.emit("open",x),a._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);mUe.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var a=Object.keys(i),o=0,l=a.length;o<l;o++){var u=a[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var EUe=U((S4n,yUe)=>{"use strict";yUe.exports=Shr;var Ehr=Object.getPrototypeOf||function(e){return e.__proto__};function Shr(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Ehr(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var bUe=U((T4n,jme)=>{var zc=sr("fs"),Thr=hUe(),vhr=_Ue(),bhr=EUe(),uY=sr("util"),C0,fY;typeof Symbol=="function"&&typeof Symbol.for=="function"?(C0=Symbol.for("graceful-fs.queue"),fY=Symbol.for("graceful-fs.previous")):(C0="___graceful-fs.queue",fY="___graceful-fs.previous");function Chr(){}function vUe(e,t){Object.defineProperty(e,C0,{get:function(){return t}})}var EN=Chr;uY.debuglog?EN=uY.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(EN=function(){var e=uY.format.apply(uY,arguments);e="GFS4: "+e.split(/\n/).join(`
GFS4: `),console.error(e)});zc[C0]||(SUe=global[C0]||[],vUe(zc,SUe),zc.close=(function(e){function t(r,n){return e.call(zc,r,function(i){i||TUe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,fY,{value:e}),t})(zc.close),zc.closeSync=(function(e){function t(r){e.apply(zc,arguments),TUe()}return Object.defineProperty(t,fY,{value:e}),t})(zc.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){EN(zc[C0]),sr("assert").equal(zc[C0].length,0)}));var SUe;global[C0]||vUe(global,zc[C0]);jme.exports=Vme(bhr(zc));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!zc.__patched&&(jme.exports=Vme(zc),zc.__patched=!0);function Vme(e){Thr(e),e.gracefulify=Vme,e.createReadStream=V,e.createWriteStream=se;var t=e.readFile;e.readFile=r;function r(ge,ct,xt){return typeof ct=="function"&&(xt=ct,ct=null),Nt(ge,ct,xt);function Nt(It,Xt,yt,gr){return t(It,Xt,function(ot){ot&&(ot.code==="EMFILE"||ot.code==="ENFILE")?$R([Nt,[It,Xt,yt],ot,gr||Date.now(),Date.now()]):typeof yt=="function"&&yt.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(ge,ct,xt,Nt){return typeof xt=="function"&&(Nt=xt,xt=null),It(ge,ct,xt,Nt);function It(Xt,yt,gr,ot,mt){return n(Xt,yt,gr,function($e){$e&&($e.code==="EMFILE"||$e.code==="ENFILE")?$R([It,[Xt,yt,gr,ot],$e,mt||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}var a=e.appendFile;a&&(e.appendFile=o);function o(ge,ct,xt,Nt){return typeof xt=="function"&&(Nt=xt,xt=null),It(ge,ct,xt,Nt);function It(Xt,yt,gr,ot,mt){return a(Xt,yt,gr,function($e){$e&&($e.code==="EMFILE"||$e.code==="ENFILE")?$R([It,[Xt,yt,gr,ot],$e,mt||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=u);function u(ge,ct,xt,Nt){return typeof xt=="function"&&(Nt=xt,xt=0),It(ge,ct,xt,Nt);function It(Xt,yt,gr,ot,mt){return l(Xt,yt,gr,function($e){$e&&($e.code==="EMFILE"||$e.code==="ENFILE")?$R([It,[Xt,yt,gr,ot],$e,mt||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}var p=e.readdir;e.readdir=x;var d=/^v[0-5]\./;function x(ge,ct,xt){typeof ct=="function"&&(xt=ct,ct=null);var Nt=d.test(process.version)?function(yt,gr,ot,mt){return p(yt,It(yt,gr,ot,mt))}:function(yt,gr,ot,mt){return p(yt,gr,It(yt,gr,ot,mt))};return Nt(ge,ct,xt);function It(Xt,yt,gr,ot){return function(mt,$e){mt&&(mt.code==="EMFILE"||mt.code==="ENFILE")?$R([Nt,[Xt,yt,gr],mt,ot||Date.now(),Date.now()]):($e&&$e.sort&&$e.sort(),typeof gr=="function"&&gr.call(this,mt,$e))}}}if(process.version.substr(0,4)==="v0.8"){var _=vhr(e);C=_.ReadStream,B=_.WriteStream}var m=e.ReadStream;m&&(C.prototype=Object.create(m.prototype),C.prototype.open=I);var y=e.WriteStream;y&&(B.prototype=Object.create(y.prototype),B.prototype.open=R),Object.defineProperty(e,"ReadStream",{get:function(){return C},set:function(ge){C=ge},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return B},set:function(ge){B=ge},enumerable:!0,configurable:!0});var S=C;Object.defineProperty(e,"FileReadStream",{get:function(){return S},set:function(ge){S=ge},enumerable:!0,configurable:!0});var v=B;Object.defineProperty(e,"FileWriteStream",{get:function(){return v},set:function(ge){v=ge},enumerable:!0,configurable:!0});function C(ge,ct){return this instanceof C?(m.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function I(){var ge=this;nt(ge.path,ge.flags,ge.mode,function(ct,xt){ct?(ge.autoClose&&ge.destroy(),ge.emit("error",ct)):(ge.fd=xt,ge.emit("open",xt),ge.read())})}function B(ge,ct){return this instanceof B?(y.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function R(){var ge=this;nt(ge.path,ge.flags,ge.mode,function(ct,xt){ct?(ge.destroy(),ge.emit("error",ct)):(ge.fd=xt,ge.emit("open",xt))})}function V(ge,ct){return new e.ReadStream(ge,ct)}function se(ge,ct){return new e.WriteStream(ge,ct)}var ce=e.open;e.open=nt;function nt(ge,ct,xt,Nt){return typeof xt=="function"&&(Nt=xt,xt=null),It(ge,ct,xt,Nt);function It(Xt,yt,gr,ot,mt){return ce(Xt,yt,gr,function($e,Ue){$e&&($e.code==="EMFILE"||$e.code==="ENFILE")?$R([It,[Xt,yt,gr,ot],$e,mt||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}return e}function $R(e){EN("ENQUEUE",e[0].name,e[1]),zc[C0].push(e),Gme()}var pY;function TUe(){for(var e=Date.now(),t=0;t<zc[C0].length;++t)zc[C0][t].length>2&&(zc[C0][t][3]=e,zc[C0][t][4]=e);Gme()}function Gme(){if(clearTimeout(pY),pY=void 0,zc[C0].length!==0){var e=zc[C0].shift(),t=e[0],r=e[1],n=e[2],i=e[3],a=e[4];if(i===void 0)EN("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){EN("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var l=Date.now()-a,u=Math.max(a-i,1),p=Math.min(u*1.2,100);l>=p?(EN("RETRY",t.name,r),t.apply(null,r.concat([i]))):zc[C0].push(e)}pY===void 0&&(pY=setTimeout(Gme,0))}}});var eF=U((zFn,iVe)=>{"use strict";var imr=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};iVe.exports=imr});var tF=U((XFn,sVe)=>{"use strict";var smr="2.0.0",amr=Number.MAX_SAFE_INTEGER||9007199254740991,omr=16,cmr=250,lmr=["major","premajor","minor","preminor","patch","prepatch","prerelease"];sVe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:omr,MAX_SAFE_BUILD_LENGTH:cmr,MAX_SAFE_INTEGER:amr,RELEASE_TYPES:lmr,SEMVER_SPEC_VERSION:smr,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var XR=U((LS,aVe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:r1e,MAX_SAFE_BUILD_LENGTH:umr,MAX_LENGTH:pmr}=tF(),fmr=eF();LS=aVe.exports={};var dmr=LS.re=[],xmr=LS.safeRe=[],Gn=LS.src=[],hmr=LS.safeSrc=[],jn=LS.t={},mmr=0,n1e="[a-zA-Z0-9-]",gmr=[["\\s",1],["\\d",pmr],[n1e,umr]],_mr=e=>{for(let[t,r]of gmr)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Es=(e,t,r)=>{let n=_mr(t),i=mmr++;fmr(e,i,t),jn[e]=i,Gn[i]=t,hmr[i]=n,dmr[i]=new RegExp(t,r?"g":void 0),xmr[i]=new RegExp(n,r?"g":void 0)};Es("NUMERICIDENTIFIER","0|[1-9]\\d*");Es("NUMERICIDENTIFIERLOOSE","\\d+");Es("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${n1e}*`);Es("MAINVERSION",`(${Gn[jn.NUMERICIDENTIFIER]})\\.(${Gn[jn.NUMERICIDENTIFIER]})\\.(${Gn[jn.NUMERICIDENTIFIER]})`);Es("MAINVERSIONLOOSE",`(${Gn[jn.NUMERICIDENTIFIERLOOSE]})\\.(${Gn[jn.NUMERICIDENTIFIERLOOSE]})\\.(${Gn[jn.NUMERICIDENTIFIERLOOSE]})`);Es("PRERELEASEIDENTIFIER",`(?:${Gn[jn.NONNUMERICIDENTIFIER]}|${Gn[jn.NUMERICIDENTIFIER]})`);Es("PRERELEASEIDENTIFIERLOOSE",`(?:${Gn[jn.NONNUMERICIDENTIFIER]}|${Gn[jn.NUMERICIDENTIFIERLOOSE]})`);Es("PRERELEASE",`(?:-(${Gn[jn.PRERELEASEIDENTIFIER]}(?:\\.${Gn[jn.PRERELEASEIDENTIFIER]})*))`);Es("PRERELEASELOOSE",`(?:-?(${Gn[jn.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Gn[jn.PRERELEASEIDENTIFIERLOOSE]})*))`);Es("BUILDIDENTIFIER",`${n1e}+`);Es("BUILD",`(?:\\+(${Gn[jn.BUILDIDENTIFIER]}(?:\\.${Gn[jn.BUILDIDENTIFIER]})*))`);Es("FULLPLAIN",`v?${Gn[jn.MAINVERSION]}${Gn[jn.PRERELEASE]}?${Gn[jn.BUILD]}?`);Es("FULL",`^${Gn[jn.FULLPLAIN]}$`);Es("LOOSEPLAIN",`[v=\\s]*${Gn[jn.MAINVERSIONLOOSE]}${Gn[jn.PRERELEASELOOSE]}?${Gn[jn.BUILD]}?`);Es("LOOSE",`^${Gn[jn.LOOSEPLAIN]}$`);Es("GTLT","((?:<|>)?=?)");Es("XRANGEIDENTIFIERLOOSE",`${Gn[jn.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Es("XRANGEIDENTIFIER",`${Gn[jn.NUMERICIDENTIFIER]}|x|X|\\*`);Es("XRANGEPLAIN",`[v=\\s]*(${Gn[jn.XRANGEIDENTIFIER]})(?:\\.(${Gn[jn.XRANGEIDENTIFIER]})(?:\\.(${Gn[jn.XRANGEIDENTIFIER]})(?:${Gn[jn.PRERELEASE]})?${Gn[jn.BUILD]}?)?)?`);Es("XRANGEPLAINLOOSE",`[v=\\s]*(${Gn[jn.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Gn[jn.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Gn[jn.XRANGEIDENTIFIERLOOSE]})(?:${Gn[jn.PRERELEASELOOSE]})?${Gn[jn.BUILD]}?)?)?`);Es("XRANGE",`^${Gn[jn.GTLT]}\\s*${Gn[jn.XRANGEPLAIN]}$`);Es("XRANGELOOSE",`^${Gn[jn.GTLT]}\\s*${Gn[jn.XRANGEPLAINLOOSE]}$`);Es("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r1e}})(?:\\.(\\d{1,${r1e}}))?(?:\\.(\\d{1,${r1e}}))?`);Es("COERCE",`${Gn[jn.COERCEPLAIN]}(?:$|[^\\d])`);Es("COERCEFULL",Gn[jn.COERCEPLAIN]+`(?:${Gn[jn.PRERELEASE]})?(?:${Gn[jn.BUILD]})?(?:$|[^\\d])`);Es("COERCERTL",Gn[jn.COERCE],!0);Es("COERCERTLFULL",Gn[jn.COERCEFULL],!0);Es("LONETILDE","(?:~>?)");Es("TILDETRIM",`(\\s*)${Gn[jn.LONETILDE]}\\s+`,!0);LS.tildeTrimReplace="$1~";Es("TILDE",`^${Gn[jn.LONETILDE]}${Gn[jn.XRANGEPLAIN]}$`);Es("TILDELOOSE",`^${Gn[jn.LONETILDE]}${Gn[jn.XRANGEPLAINLOOSE]}$`);Es("LONECARET","(?:\\^)");Es("CARETTRIM",`(\\s*)${Gn[jn.LONECARET]}\\s+`,!0);LS.caretTrimReplace="$1^";Es("CARET",`^${Gn[jn.LONECARET]}${Gn[jn.XRANGEPLAIN]}$`);Es("CARETLOOSE",`^${Gn[jn.LONECARET]}${Gn[jn.XRANGEPLAINLOOSE]}$`);Es("COMPARATORLOOSE",`^${Gn[jn.GTLT]}\\s*(${Gn[jn.LOOSEPLAIN]})$|^$`);Es("COMPARATOR",`^${Gn[jn.GTLT]}\\s*(${Gn[jn.FULLPLAIN]})$|^$`);Es("COMPARATORTRIM",`(\\s*)${Gn[jn.GTLT]}\\s*(${Gn[jn.LOOSEPLAIN]}|${Gn[jn.XRANGEPLAIN]})`,!0);LS.comparatorTrimReplace="$1$2$3";Es("HYPHENRANGE",`^\\s*(${Gn[jn.XRANGEPLAIN]})\\s+-\\s+(${Gn[jn.XRANGEPLAIN]})\\s*$`);Es("HYPHENRANGELOOSE",`^\\s*(${Gn[jn.XRANGEPLAINLOOSE]})\\s+-\\s+(${Gn[jn.XRANGEPLAINLOOSE]})\\s*$`);Es("STAR","(<|>)?=?\\s*\\*");Es("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Es("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var EY=U((JFn,oVe)=>{"use strict";var ymr=Object.freeze({loose:!0}),Emr=Object.freeze({}),Smr=e=>e?typeof e!="object"?ymr:e:Emr;oVe.exports=Smr});var i1e=U((QFn,uVe)=>{"use strict";var cVe=/^[0-9]+$/,lVe=(e,t)=>{let r=cVe.test(e),n=cVe.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},Tmr=(e,t)=>lVe(t,e);uVe.exports={compareIdentifiers:lVe,rcompareIdentifiers:Tmr}});var up=U((ZFn,fVe)=>{"use strict";var SY=eF(),{MAX_LENGTH:pVe,MAX_SAFE_INTEGER:TY}=tF(),{safeRe:vY,t:bY}=XR(),vmr=EY(),{compareIdentifiers:JR}=i1e(),s1e=class e{constructor(t,r){if(r=vmr(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>pVe)throw new TypeError(`version is longer than ${pVe} characters`);SY("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?vY[bY.LOOSE]:vY[bY.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>TY||this.major<0)throw new TypeError("Invalid major version");if(this.minor>TY||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>TY||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let a=+i;if(a>=0&&a<TY)return a}return i}):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(t){if(SY("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),JR(this.major,t.major)||JR(this.minor,t.minor)||JR(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(SY("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return JR(n,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(SY("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return JR(n,i)}while(++r)}inc(t,r,n){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?vY[bY.PRERELEASELOOSE]:vY[bY.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,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 i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let a=[r,i];n===!1&&(a=[r]),JR(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};fVe.exports=s1e});var bN=U((e9n,xVe)=>{"use strict";var dVe=up(),bmr=(e,t,r=!1)=>{if(e instanceof dVe)return e;try{return new dVe(e,t)}catch(n){if(!r)return null;throw n}};xVe.exports=bmr});var a1e=U((t9n,mVe)=>{"use strict";var hVe=bN(),Cmr=(e,t)=>{let r=hVe(e,null,!0),n=hVe(t,null,!0),i=r.compare(n);if(i===0)return null;let a=i>0,o=a?r:n,l=a?n:r,u=!!o.prerelease.length;if(!!l.prerelease.length&&!u){if(!l.patch&&!l.minor)return"major";if(l.compareMain(o)===0)return l.minor&&!l.patch?"minor":"patch"}let d=u?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"};mVe.exports=Cmr});var eh=U((r9n,_Ve)=>{"use strict";var gVe=up(),Amr=(e,t,r)=>new gVe(e,r).compare(new gVe(t,r));_Ve.exports=Amr});var QR=U((n9n,yVe)=>{"use strict";var Dmr=eh(),Imr=(e,t,r)=>Dmr(e,t,r)>0;yVe.exports=Imr});var qVe=U(DN=>{DN.parse=DN.decode=Mmr;DN.stringify=DN.encode=VVe;DN.safe=tk;DN.unsafe=NY;var x1e=typeof process<"u"&&process.platform==="win32"?`\r
`:`
`;function VVe(e,t){var r=[],n="";typeof t=="string"?t={section:t,whitespace:!1}:(t=t||{},t.whitespace=t.whitespace===!0);var i=t.whitespace?" = ":"=";return Object.keys(e).forEach(function(a,o,l){var u=e[a];u&&Array.isArray(u)?u.forEach(function(p){n+=tk(a+"[]")+i+tk(p)+`
`}):u&&typeof u=="object"?r.push(a):n+=tk(a)+i+tk(u)+x1e}),t.section&&n.length&&(n="["+tk(t.section)+"]"+x1e+n),r.forEach(function(a,o,l){var u=GVe(a).join("\\."),p=(t.section?t.section+".":"")+u,d=VVe(e[a],{section:p,whitespace:t.whitespace});n.length&&d.length&&(n+=x1e),n+=d}),n}function GVe(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function Mmr(e){var t={},r=t,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,a=e.split(/[\r\n]+/g);return a.forEach(function(o,l,u){if(!(!o||o.match(/^\s*[;#]/))){var p=o.match(i);if(p){if(p[1]!==void 0){if(n=NY(p[1]),n==="__proto__"){r={};return}r=t[n]=t[n]||{};return}var d=NY(p[2]);if(d!=="__proto__"){var x=p[3]?NY(p[4]):!0;switch(x){case"true":case"false":case"null":x=JSON.parse(x)}if(d.length>2&&d.slice(-2)==="[]"){if(d=d.substring(0,d.length-2),d==="__proto__")return;r[d]?Array.isArray(r[d])||(r[d]=[r[d]]):r[d]=[]}Array.isArray(r[d])?r[d].push(x):r[d]=x}}}}),Object.keys(t).filter(function(o,l,u){if(!t[o]||typeof t[o]!="object"||Array.isArray(t[o]))return!1;var p=GVe(o),d=t,x=p.pop(),_=x.replace(/\\\./g,".");return p.forEach(function(m,y,S){m!=="__proto__"&&((!d[m]||typeof d[m]!="object")&&(d[m]={}),d=d[m])}),d===t&&_===x?!1:(d[_]=t[o],!0)}).forEach(function(o,l,u){delete t[o]}),t}function jVe(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function tk(e){return typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&jVe(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function NY(e,t){if(e=(e||"").trim(),jVe(e)){e.charAt(0)==="'"&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{for(var r=!1,n="",i=0,a=e.length;i<a;i++){var o=e.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return e}});var YVe=U((q9n,$Ve)=>{"use strict";var h1e=1,HVe=2;function Fmr(){return""}function Bmr(e,t,r){return e.slice(t,r).replace(/\S/g," ")}$Ve.exports=function(e,t){t=t||{};for(var r,n,i=!1,a=!1,o=0,l="",u=t.whitespace===!1?Fmr:Bmr,p=0;p<e.length;p++){if(r=e[p],n=e[p+1],!a&&r==='"'){var d=e[p-1]==="\\"&&e[p-2]!=="\\";d||(i=!i)}if(!i){if(!a&&r+n==="//")l+=e.slice(o,p),o=p,a=h1e,p++;else if(a===h1e&&r+n===`\r
`){p++,a=!1,l+=u(e,o,p),o=p;continue}else if(a===h1e&&r===`
`)a=!1,l+=u(e,o,p),o=p;else if(!a&&r+n==="/*"){l+=e.slice(o,p),o=p,a=HVe,p++;continue}else if(a===HVe&&r+n==="*/"){p++,a=!1,l+=u(e,o,p+1),o=p+1;continue}}}return l+(a?u(e.substr(o)):e.substr(o))}});var WVe=U(rk=>{"use strict";var KVe=sr("fs"),Umr=qVe(),sF=sr("path"),Vmr=YVe(),Gmr=rk.parse=function(e){return/^\s*{/.test(e)?JSON.parse(Vmr(e)):Umr.parse(e)},jmr=rk.file=function(){var e=[].slice.call(arguments).filter(function(i){return i!=null});for(var t in e)if(typeof e[t]!="string")return;var r=sF.join.apply(null,e),n;try{return KVe.readFileSync(r,"utf-8")}catch{return}},H9n=rk.json=function(){var e=jmr.apply(null,arguments);return e?Gmr(e):null},$9n=rk.env=function(e,t){t=t||process.env;var r={},n=e.length;for(var i in t)if(i.toLowerCase().indexOf(e.toLowerCase())===0){for(var a=i.substring(n).split("__"),o;(o=a.indexOf(""))>-1;)a.splice(o,1);var l=r;a.forEach(function(p,d){!p||typeof l!="object"||(d===a.length-1&&(l[p]=t[i]),l[p]===void 0&&(l[p]={}),l=l[p])})}return r},Y9n=rk.find=function(){var e=sF.join.apply(null,[].slice.call(arguments));function t(r,n){var i=sF.join(r,n);try{return KVe.statSync(i),i}catch{if(sF.dirname(r)!==r)return t(sF.dirname(r),n)}}return t(process.cwd(),e)}});var eGe=U((W9n,ZVe)=>{"use strict";function XVe(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp}function JVe(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function QVe(e){var t=[];return e.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?t[n]=QVe(r):XVe(r)?t[n]=JVe(r):t[n]=m1e({},r):t[n]=r}),t}function zVe(e,t){return t==="__proto__"?void 0:e[t]}var m1e=ZVe.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var e=arguments[0],t=Array.prototype.slice.call(arguments,1),r,n,i;return t.forEach(function(a){typeof a!="object"||a===null||Array.isArray(a)||Object.keys(a).forEach(function(o){if(n=zVe(e,o),r=zVe(a,o),r!==e)if(typeof r!="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=QVe(r);return}else if(XVe(r)){e[o]=JVe(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[o]=m1e({},r);return}else{e[o]=m1e(n,r);return}})}),e}});var iGe=U((z9n,nGe)=>{"use strict";function qmr(e,t){var r=e;t.slice(0,-1).forEach(function(i){r=r[i]||{}});var n=t[t.length-1];return n in r}function tGe(e){return typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function rGe(e,t){return t==="constructor"&&typeof e[t]=="function"||t==="__proto__"}nGe.exports=function(e,t){t||(t={});var r={bools:{},strings:{},unknownFn:null};typeof t.unknown=="function"&&(r.unknownFn=t.unknown),typeof t.boolean=="boolean"&&t.boolean?r.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach(function(R){r.bools[R]=!0});var n={};function i(R){return n[R].some(function(V){return r.bools[V]})}Object.keys(t.alias||{}).forEach(function(R){n[R]=[].concat(t.alias[R]),n[R].forEach(function(V){n[V]=[R].concat(n[R].filter(function(se){return V!==se}))})}),[].concat(t.string).filter(Boolean).forEach(function(R){r.strings[R]=!0,n[R]&&[].concat(n[R]).forEach(function(V){r.strings[V]=!0})});var a=t.default||{},o={_:[]};function l(R,V){return r.allBools&&/^--[^=]+$/.test(V)||r.strings[R]||r.bools[R]||n[R]}function u(R,V,se){for(var ce=R,nt=0;nt<V.length-1;nt++){var ge=V[nt];if(rGe(ce,ge))return;ce[ge]===void 0&&(ce[ge]={}),(ce[ge]===Object.prototype||ce[ge]===Number.prototype||ce[ge]===String.prototype)&&(ce[ge]={}),ce[ge]===Array.prototype&&(ce[ge]=[]),ce=ce[ge]}var ct=V[V.length-1];rGe(ce,ct)||((ce===Object.prototype||ce===Number.prototype||ce===String.prototype)&&(ce={}),ce===Array.prototype&&(ce=[]),ce[ct]===void 0||r.bools[ct]||typeof ce[ct]=="boolean"?ce[ct]=se:Array.isArray(ce[ct])?ce[ct].push(se):ce[ct]=[ce[ct],se])}function p(R,V,se){if(!(se&&r.unknownFn&&!l(R,se)&&r.unknownFn(se)===!1)){var ce=!r.strings[R]&&tGe(V)?Number(V):V;u(o,R.split("."),ce),(n[R]||[]).forEach(function(nt){u(o,nt.split("."),ce)})}}Object.keys(r.bools).forEach(function(R){p(R,a[R]===void 0?!1:a[R])});var d=[];e.indexOf("--")!==-1&&(d=e.slice(e.indexOf("--")+1),e=e.slice(0,e.indexOf("--")));for(var x=0;x<e.length;x++){var _=e[x],m,y;if(/^--.+=/.test(_)){var S=_.match(/^--([^=]+)=([\s\S]*)$/);m=S[1];var v=S[2];r.bools[m]&&(v=v!=="false"),p(m,v,_)}else if(/^--no-.+/.test(_))m=_.match(/^--no-(.+)/)[1],p(m,!1,_);else if(/^--.+/.test(_))m=_.match(/^--(.+)/)[1],y=e[x+1],y!==void 0&&!/^(-|--)[^-]/.test(y)&&!r.bools[m]&&!r.allBools&&(!n[m]||!i(m))?(p(m,y,_),x+=1):/^(true|false)$/.test(y)?(p(m,y==="true",_),x+=1):p(m,r.strings[m]?"":!0,_);else if(/^-[^-]+/.test(_)){for(var C=_.slice(1,-1).split(""),I=!1,B=0;B<C.length;B++){if(y=_.slice(B+2),y==="-"){p(C[B],y,_);continue}if(/[A-Za-z]/.test(C[B])&&y[0]==="="){p(C[B],y.slice(1),_),I=!0;break}if(/[A-Za-z]/.test(C[B])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(y)){p(C[B],y,_),I=!0;break}if(C[B+1]&&C[B+1].match(/\W/)){p(C[B],_.slice(B+2),_),I=!0;break}else p(C[B],r.strings[C[B]]?"":!0,_)}m=_.slice(-1)[0],!I&&m!=="-"&&(e[x+1]&&!/^(-|--)[^-]/.test(e[x+1])&&!r.bools[m]&&(!n[m]||!i(m))?(p(m,e[x+1],_),x+=1):e[x+1]&&/^(true|false)$/.test(e[x+1])?(p(m,e[x+1]==="true",_),x+=1):p(m,r.strings[m]?"":!0,_))}else if((!r.unknownFn||r.unknownFn(_)!==!1)&&o._.push(r.strings._||!tGe(_)?_:Number(_)),t.stopEarly){o._.push.apply(o._,e.slice(x+1));break}}return Object.keys(a).forEach(function(R){qmr(o,R.split("."))||(u(o,R.split("."),a[R]),(n[R]||[]).forEach(function(V){u(o,V.split("."),a[R])}))}),t["--"]?o["--"]=d.slice():d.forEach(function(R){o._.push(R)}),o}});var cGe=U((X9n,oGe)=>{var aF=WVe(),nk=sr("path").join,Hmr=eGe(),sGe="/etc",aGe=process.platform==="win32",oF=aGe?process.env.USERPROFILE:process.env.HOME;oGe.exports=function(e,t,r,n){if(typeof e!="string")throw new Error("rc(name): name *must* be string");r||(r=iGe()(process.argv.slice(2))),t=(typeof t=="string"?aF.json(t):t)||{},n=n||aF.parse;var i=aF.env(e+"_"),a=[t],o=[];function l(u){if(!(o.indexOf(u)>=0)){var p=aF.file(u);p&&(a.push(n(p)),o.push(u))}}return aGe||[nk(sGe,e,"config"),nk(sGe,e+"rc")].forEach(l),oF&&[nk(oF,".config",e,"config"),nk(oF,".config",e),nk(oF,"."+e,"config"),nk(oF,"."+e+"rc")].forEach(l),l(aF.find("."+e+"rc")),i.config&&l(i.config),r.config&&l(r.config),Hmr.apply(null,a.concat([i,r,o.length?{configs:o,config:o[o.length-1]}:void 0]))}});var pGe=U((Q9n,uGe)=>{var CA=sr("constants"),$mr=process.cwd,wY=null,Ymr=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return wY||(wY=$mr.call(process)),wY};try{process.cwd()}catch{}typeof process.chdir=="function"&&(_1e=process.chdir,process.chdir=function(e){wY=null,_1e.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,_1e));var _1e;uGe.exports=Kmr;function Kmr(e){CA.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=a(e.chown),e.fchown=a(e.fchown),e.lchown=a(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=l(e.stat),e.fstat=l(e.fstat),e.lstat=l(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(d,x,_){_&&process.nextTick(_)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(d,x,_,m){m&&process.nextTick(m)},e.lchownSync=function(){}),Ymr==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(d){function x(_,m,y){var S=Date.now(),v=0;d(_,m,function C(I){if(I&&(I.code==="EACCES"||I.code==="EPERM")&&Date.now()-S<6e4){setTimeout(function(){e.stat(m,function(B,R){B&&B.code==="ENOENT"?d(_,m,C):y(I)})},v),v<100&&(v+=10);return}y&&y(I)})}return Object.setPrototypeOf&&Object.setPrototypeOf(x,d),x})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(d){function x(_,m,y,S,v,C){var I;if(C&&typeof C=="function"){var B=0;I=function(R,V,se){if(R&&R.code==="EAGAIN"&&B<10)return B++,d.call(e,_,m,y,S,v,I);C.apply(this,arguments)}}return d.call(e,_,m,y,S,v,I)}return Object.setPrototypeOf&&Object.setPrototypeOf(x,d),x})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(d){return function(x,_,m,y,S){for(var v=0;;)try{return d.call(e,x,_,m,y,S)}catch(C){if(C.code==="EAGAIN"&&v<10){v++;continue}throw C}}})(e.readSync);function t(d){d.lchmod=function(x,_,m){d.open(x,CA.O_WRONLY|CA.O_SYMLINK,_,function(y,S){if(y){m&&m(y);return}d.fchmod(S,_,function(v){d.close(S,function(C){m&&m(v||C)})})})},d.lchmodSync=function(x,_){var m=d.openSync(x,CA.O_WRONLY|CA.O_SYMLINK,_),y=!0,S;try{S=d.fchmodSync(m,_),y=!1}finally{if(y)try{d.closeSync(m)}catch{}else d.closeSync(m)}return S}}function r(d){CA.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(x,_,m,y){d.open(x,CA.O_SYMLINK,function(S,v){if(S){y&&y(S);return}d.futimes(v,_,m,function(C){d.close(v,function(I){y&&y(C||I)})})})},d.lutimesSync=function(x,_,m){var y=d.openSync(x,CA.O_SYMLINK),S,v=!0;try{S=d.futimesSync(y,_,m),v=!1}finally{if(v)try{d.closeSync(y)}catch{}else d.closeSync(y)}return S}):d.futimes&&(d.lutimes=function(x,_,m,y){y&&process.nextTick(y)},d.lutimesSync=function(){})}function n(d){return d&&function(x,_,m){return d.call(e,x,_,function(y){p(y)&&(y=null),m&&m.apply(this,arguments)})}}function i(d){return d&&function(x,_){try{return d.call(e,x,_)}catch(m){if(!p(m))throw m}}}function a(d){return d&&function(x,_,m,y){return d.call(e,x,_,m,function(S){p(S)&&(S=null),y&&y.apply(this,arguments)})}}function o(d){return d&&function(x,_,m){try{return d.call(e,x,_,m)}catch(y){if(!p(y))throw y}}}function l(d){return d&&function(x,_,m){typeof _=="function"&&(m=_,_=null);function y(S,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),m&&m.apply(this,arguments)}return _?d.call(e,x,_,y):d.call(e,x,y)}}function u(d){return d&&function(x,_){var m=_?d.call(e,x,_):d.call(e,x);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function p(d){if(!d||d.code==="ENOSYS")return!0;var x=!process.getuid||process.getuid()!==0;return!!(x&&(d.code==="EINVAL"||d.code==="EPERM"))}}});var xGe=U((Z9n,dGe)=>{var fGe=sr("stream").Stream;dGe.exports=Wmr;function Wmr(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);fGe.call(this);var a=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),l=0,u=o.length;l<u;l++){var p=o[l];this[p]=i[p]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){a._read()});return}e.open(this.path,this.flags,this.mode,function(d,x){if(d){a.emit("error",d),a.readable=!1;return}a.fd=x,a.emit("open",x),a._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);fGe.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var a=Object.keys(i),o=0,l=a.length;o<l;o++){var u=a[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var mGe=U((e8n,hGe)=>{"use strict";hGe.exports=Xmr;var zmr=Object.getPrototypeOf||function(e){return e.__proto__};function Xmr(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:zmr(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var EGe=U((t8n,S1e)=>{var Xc=sr("fs"),Jmr=pGe(),Qmr=xGe(),Zmr=mGe(),PY=sr("util"),D0,kY;typeof Symbol=="function"&&typeof Symbol.for=="function"?(D0=Symbol.for("graceful-fs.queue"),kY=Symbol.for("graceful-fs.previous")):(D0="___graceful-fs.queue",kY="___graceful-fs.previous");function e1r(){}function yGe(e,t){Object.defineProperty(e,D0,{get:function(){return t}})}var IN=e1r;PY.debuglog?IN=PY.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(IN=function(){var e=PY.format.apply(PY,arguments);e="GFS4: "+e.split(/\n/).join(`
GFS4: `),console.error(e)});Xc[D0]||(gGe=global[D0]||[],yGe(Xc,gGe),Xc.close=(function(e){function t(r,n){return e.call(Xc,r,function(i){i||_Ge(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,kY,{value:e}),t})(Xc.close),Xc.closeSync=(function(e){function t(r){e.apply(Xc,arguments),_Ge()}return Object.defineProperty(t,kY,{value:e}),t})(Xc.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){IN(Xc[D0]),sr("assert").equal(Xc[D0].length,0)}));var gGe;global[D0]||yGe(global,Xc[D0]);S1e.exports=y1e(Zmr(Xc));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Xc.__patched&&(S1e.exports=y1e(Xc),Xc.__patched=!0);function y1e(e){Jmr(e),e.gracefulify=y1e,e.createReadStream=V,e.createWriteStream=se;var t=e.readFile;e.readFile=r;function r(ge,ct,xt){return typeof ct=="function"&&(xt=ct,ct=null),Nt(ge,ct,xt);function Nt(It,Xt,yt,gr){return t(It,Xt,function(ot){ot&&(ot.code==="EMFILE"||ot.code==="ENFILE")?ik([Nt,[It,Xt,yt],ot,gr||Date.now(),Date.now()]):typeof yt=="function"&&yt.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(ge,ct,xt,Nt){return typeof xt=="function"&&(Nt=xt,xt=null),It(ge,ct,xt,Nt);function It(Xt,yt,gr,ot,mt){return n(Xt,yt,gr,function($e){$e&&($e.code==="EMFILE"||$e.code==="ENFILE")?ik([It,[Xt,yt,gr,ot],$e,mt||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}var a=e.appendFile;a&&(e.appendFile=o);function o(ge,ct,xt,Nt){return typeof xt=="function"&&(Nt=xt,xt=null),It(ge,ct,xt,Nt);function It(Xt,yt,gr,ot,mt){return a(Xt,yt,gr,function($e){$e&&($e.code==="EMFILE"||$e.code==="ENFILE")?ik([It,[Xt,yt,gr,ot],$e,mt||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=u);function u(ge,ct,xt,Nt){return typeof xt=="function"&&(Nt=xt,xt=0),It(ge,ct,xt,Nt);function It(Xt,yt,gr,ot,mt){return l(Xt,yt,gr,function($e){$e&&($e.code==="EMFILE"||$e.code==="ENFILE")?ik([It,[Xt,yt,gr,ot],$e,mt||Date.now(),Date.now()]):typeof ot=="function"&&ot.apply(this,arguments)})}}var p=e.readdir;e.readdir=x;var d=/^v[0-5]\./;function x(ge,ct,xt){typeof ct=="function"&&(xt=ct,ct=null);var Nt=d.test(process.version)?function(yt,gr,ot,mt){return p(yt,It(yt,gr,ot,mt))}:function(yt,gr,ot,mt){return p(yt,gr,It(yt,gr,ot,mt))};return Nt(ge,ct,xt);function It(Xt,yt,gr,ot){return function(mt,$e){mt&&(mt.code==="EMFILE"||mt.code==="ENFILE")?ik([Nt,[Xt,yt,gr],mt,ot||Date.now(),Date.now()]):($e&&$e.sort&&$e.sort(),typeof gr=="function"&&gr.call(this,mt,$e))}}}if(process.version.substr(0,4)==="v0.8"){var _=Qmr(e);C=_.ReadStream,B=_.WriteStream}var m=e.ReadStream;m&&(C.prototype=Object.create(m.prototype),C.prototype.open=I);var y=e.WriteStream;y&&(B.prototype=Object.create(y.prototype),B.prototype.open=R),Object.defineProperty(e,"ReadStream",{get:function(){return C},set:function(ge){C=ge},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return B},set:function(ge){B=ge},enumerable:!0,configurable:!0});var S=C;Object.defineProperty(e,"FileReadStream",{get:function(){return S},set:function(ge){S=ge},enumerable:!0,configurable:!0});var v=B;Object.defineProperty(e,"FileWriteStream",{get:function(){return v},set:function(ge){v=ge},enumerable:!0,configurable:!0});function C(ge,ct){return this ins