@cmflow/cli 3.4.0-beta.1 → 3.4.0-beta.3

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.
Files changed (47) hide show
  1. package/dist/bin/cm.mjs +1581 -39146
  2. package/dist/bin/cmrelease.mjs +1414 -38776
  3. package/dist/common-Dm4NPnuV.mjs +2 -0
  4. package/dist/common-Dm4NPnuV.mjs.map +1 -0
  5. package/dist/{compile-packages-BB08_q2B.mjs → compile-packages-C3W4j84x.mjs} +2 -2
  6. package/dist/{compile-packages-BB08_q2B.mjs.map → compile-packages-C3W4j84x.mjs.map} +1 -1
  7. package/dist/{docker-Cc30aRzl.mjs → docker-DIPmaasN.mjs} +13 -13
  8. package/dist/docker-DIPmaasN.mjs.map +1 -0
  9. package/dist/{docker-clean-tags-EvFdWykP.mjs → docker-clean-tags-BM66YJe3.mjs} +2 -2
  10. package/dist/{docker-clean-tags-EvFdWykP.mjs.map → docker-clean-tags-BM66YJe3.mjs.map} +1 -1
  11. package/dist/{docker-publish-CG0aN9se.mjs → docker-publish-DCVRkc5l.mjs} +2 -2
  12. package/dist/{docker-publish-CG0aN9se.mjs.map → docker-publish-DCVRkc5l.mjs.map} +1 -1
  13. package/dist/{find-packages-611B-66T.mjs → find-packages-MKlLERHA.mjs} +10 -10
  14. package/dist/{find-packages-611B-66T.mjs.map → find-packages-MKlLERHA.mjs.map} +1 -1
  15. package/dist/{get-config-8ivgd1KC.mjs → get-config-sVSMVDr6.mjs} +2 -2
  16. package/dist/{get-config-8ivgd1KC.mjs.map → get-config-sVSMVDr6.mjs.map} +1 -1
  17. package/dist/{npm-VM_GgazT.mjs → npm-DHki_SHg.mjs} +2 -2
  18. package/dist/{npm-VM_GgazT.mjs.map → npm-DHki_SHg.mjs.map} +1 -1
  19. package/dist/{semver-DFjVbN1S.mjs → semver-DfG5T6W4.mjs} +2 -2
  20. package/dist/{semver-DFjVbN1S.mjs.map → semver-DfG5T6W4.mjs.map} +1 -1
  21. package/dist/{source-CwLcYLzI.mjs → source-CZqdi7bj.mjs} +3 -3
  22. package/dist/{source-CwLcYLzI.mjs.map → source-CZqdi7bj.mjs.map} +1 -1
  23. package/dist/{write-package-cxki9d3K.mjs → write-package-DiCHz3W9.mjs} +6 -6
  24. package/dist/{write-package-cxki9d3K.mjs.map → write-package-DiCHz3W9.mjs.map} +1 -1
  25. package/dist/{write-packages-CxCAl_AG.mjs → write-packages-CR0XLQhM.mjs} +4 -4
  26. package/dist/{write-packages-CxCAl_AG.mjs.map → write-packages-CR0XLQhM.mjs.map} +1 -1
  27. package/package.json +6 -4
  28. package/dist/cli-truncate-Bi2MjGwF.mjs +0 -323
  29. package/dist/cli-truncate-DMcpM5Q7.mjs +0 -2
  30. package/dist/cli-truncate-DMcpM5Q7.mjs.map +0 -1
  31. package/dist/cli-truncate-DsW0mgI_.mjs +0 -323
  32. package/dist/common-BdfXquG0.mjs +0 -61
  33. package/dist/common-BdfXquG0.mjs.map +0 -1
  34. package/dist/docker-Cc30aRzl.mjs.map +0 -1
  35. package/dist/get-east-asian-width-Tfn8qoqd.mjs +0 -2
  36. package/dist/get-east-asian-width-Tfn8qoqd.mjs.map +0 -1
  37. package/dist/get-east-asian-width-wiVWCFXf.mjs +0 -682
  38. package/dist/log-update-CLbF3iV6.mjs +0 -6
  39. package/dist/log-update-CLbF3iV6.mjs.map +0 -1
  40. package/dist/log-update-CTXRtajW.mjs +0 -668
  41. package/dist/log-update-Dy1vPMGY.mjs +0 -668
  42. package/dist/rolldown-runtime-B4iAMlE-.mjs +0 -35
  43. package/dist/wrap-ansi-9ugahFCy.mjs +0 -9
  44. package/dist/wrap-ansi-9ugahFCy.mjs.map +0 -1
  45. package/dist/wrap-ansi-BRr0GA6g.mjs +0 -330
  46. package/dist/wrap-ansi-Cupoo4Yg.mjs +0 -330
  47. package/dist/wrap-ansi-dwgEjNWf.mjs +0 -2
@@ -1,8 +1,8 @@
1
- import{A as e,D as t,k as n}from"./get-config-8ivgd1KC.mjs";import{dirname as r}from"path";var i=t((e=>{e.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]==`function`)e.apply(this,t);else return new Promise((n,r)=>{t.push((e,t)=>e==null?n(t):r(e)),e.apply(this,t)})},"name",{value:e.name})},e.fromPromise=function(e){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!=`function`)return e.apply(this,t);t.pop(),e.apply(this,t).then(e=>n(null,e),n)},"name",{value:e.name})}})),a=t(((e,t)=>{var r=n(`constants`),i=process.cwd,a=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return a||=i.call(process),a};try{process.cwd()}catch{}if(typeof process.chdir==`function`){var s=process.chdir;process.chdir=function(e){a=null,s.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s)}t.exports=c;function c(e){r.hasOwnProperty(`O_SYMLINK`)&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(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(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){}),o===`win32`&&(e.rename=typeof e.rename==`function`?(function(t){function n(n,r,i){var a=Date.now(),o=0;t(n,r,function s(c){if(c&&(c.code===`EACCES`||c.code===`EPERM`||c.code===`EBUSY`)&&Date.now()-a<6e4){setTimeout(function(){e.stat(r,function(e,a){e&&e.code===`ENOENT`?t(n,r,s):i(c)})},o),o<100&&(o+=10);return}i&&i(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.rename):e.rename),e.read=typeof e.read==`function`?(function(t){function n(n,r,i,a,o,s){var c;if(s&&typeof s==`function`){var l=0;c=function(u,d,f){if(u&&u.code===`EAGAIN`&&l<10)return l++,t.call(e,n,r,i,a,o,c);s.apply(this,arguments)}}return t.call(e,n,r,i,a,o,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.read):e.read,e.readSync=typeof e.readSync==`function`?(function(t){return function(n,r,i,a,o){for(var s=0;;)try{return t.call(e,n,r,i,a,o)}catch(e){if(e.code===`EAGAIN`&&s<10){s++;continue}throw e}}})(e.readSync):e.readSync;function t(e){e.lchmod=function(t,n,i){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,function(t,r){if(t){i&&i(t);return}e.fchmod(r,n,function(t){e.close(r,function(e){i&&i(t||e)})})})},e.lchmodSync=function(t,n){var i=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n),a=!0,o;try{o=e.fchmodSync(i,n),a=!1}finally{if(a)try{e.closeSync(i)}catch{}else e.closeSync(i)}return o}}function n(e){r.hasOwnProperty(`O_SYMLINK`)&&e.futimes?(e.lutimes=function(t,n,i,a){e.open(t,r.O_SYMLINK,function(t,r){if(t){a&&a(t);return}e.futimes(r,n,i,function(t){e.close(r,function(e){a&&a(t||e)})})})},e.lutimesSync=function(t,n,i){var a=e.openSync(t,r.O_SYMLINK),o,s=!0;try{o=e.futimesSync(a,n,i),s=!1}finally{if(s)try{e.closeSync(a)}catch{}else e.closeSync(a)}return o}):e.futimes&&(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}function i(t){return t&&function(n,r,i){return t.call(e,n,r,function(e){d(e)&&(e=null),i&&i.apply(this,arguments)})}}function a(t){return t&&function(n,r){try{return t.call(e,n,r)}catch(e){if(!d(e))throw e}}}function s(t){return t&&function(n,r,i,a){return t.call(e,n,r,i,function(e){d(e)&&(e=null),a&&a.apply(this,arguments)})}}function c(t){return t&&function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!d(e))throw e}}}function l(t){return t&&function(n,r,i){typeof r==`function`&&(i=r,r=null);function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return r?t.call(e,n,r,a):t.call(e,n,a)}}function u(t){return t&&function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}}function d(e){return!e||e.code===`ENOSYS`||(!process.getuid||process.getuid()!==0)&&(e.code===`EINVAL`||e.code===`EPERM`)}}})),o=t(((e,t)=>{var r=n(`stream`).Stream;t.exports=i;function i(e){return{ReadStream:t,WriteStream:n};function t(n,i){if(!(this instanceof t))return new t(n,i);r.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=65536,i||={};for(var o=Object.keys(i),s=0,c=o.length;s<c;s++){var l=o[s];this[l]=i[l]}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 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(e,t){if(e){a.emit(`error`,e),a.readable=!1;return}a.fd=t,a.emit(`open`,t),a._read()})}function n(t,i){if(!(this instanceof n))return new n(t,i);r.call(this),this.path=t,this.fd=null,this.writable=!0,this.flags=`w`,this.encoding=`binary`,this.mode=438,this.bytesWritten=0,i||={};for(var a=Object.keys(i),o=0,s=a.length;o<s;o++){var c=a[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!=`number`)throw TypeError(`start must be a Number`);if(this.start<0)throw 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())}}})),s=t(((e,t)=>{t.exports=r;var n=Object.getPrototypeOf||function(e){return e.__proto__};function r(e){if(typeof e!=`object`||!e)return e;if(e instanceof Object)var t={__proto__:n(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}})),c=t(((e,t)=>{var r=n(`fs`),i=a(),c=o(),l=s(),u=n(`util`),d,f;typeof Symbol==`function`&&typeof Symbol.for==`function`?(d=Symbol.for(`graceful-fs.queue`),f=Symbol.for(`graceful-fs.previous`)):(d=`___graceful-fs.queue`,f=`___graceful-fs.previous`);function p(){}function m(e,t){Object.defineProperty(e,d,{get:function(){return t}})}var h=p;u.debuglog?h=u.debuglog(`gfs4`):/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&(h=function(){var e=u.format.apply(u,arguments);e=`GFS4: `+e.split(/\n/).join(`
2
- GFS4: `),console.error(e)}),r[d]||(m(r,global[d]||[]),r.close=(function(e){function t(t,n){return e.call(r,t,function(e){e||y(),typeof n==`function`&&n.apply(this,arguments)})}return Object.defineProperty(t,f,{value:e}),t})(r.close),r.closeSync=(function(e){function t(t){e.apply(r,arguments),y()}return Object.defineProperty(t,f,{value:e}),t})(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&process.on(`exit`,function(){h(r[d]),n(`assert`).equal(r[d].length,0)})),global[d]||m(global,r[d]),t.exports=g(l(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=g(r),r.__patched=!0);function g(e){i(e),e.gracefulify=g,e.createReadStream=T,e.createWriteStream=E;var t=e.readFile;e.readFile=n;function n(e,n,r){return typeof n==`function`&&(r=n,n=null),i(e,n,r);function i(e,n,r,a){return t(e,n,function(t){t&&(t.code===`EMFILE`||t.code===`ENFILE`)?_([i,[e,n,r],t,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=a;function a(e,t,n,i){return typeof n==`function`&&(i=n,n=null),a(e,t,n,i);function a(e,t,n,i,o){return r(e,t,n,function(r){r&&(r.code===`EMFILE`||r.code===`ENFILE`)?_([a,[e,t,n,i],r,o||Date.now(),Date.now()]):typeof i==`function`&&i.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=s);function s(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return o(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?_([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=u);function u(e,t,n,r){return typeof n==`function`&&(r=n,n=0),i(e,t,n,r);function i(e,t,n,r,a){return l(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?_([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var d=e.readdir;e.readdir=p;var f=/^v[0-5]\./;function p(e,t,n){typeof t==`function`&&(n=t,t=null);var r=f.test(process.version)?function(e,t,n,r){return d(e,i(e,t,n,r))}:function(e,t,n,r){return d(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(a,o){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?_([r,[e,t,n],a,i||Date.now(),Date.now()]):(o&&o.sort&&o.sort(),typeof n==`function`&&n.call(this,a,o))}}}if(process.version.substr(0,4)===`v0.8`){var m=c(e);x=m.ReadStream,C=m.WriteStream}var h=e.ReadStream;h&&(x.prototype=Object.create(h.prototype),x.prototype.open=S);var v=e.WriteStream;v&&(C.prototype=Object.create(v.prototype),C.prototype.open=w),Object.defineProperty(e,"ReadStream",{get:function(){return x},set:function(e){x=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return C},set:function(e){C=e},enumerable:!0,configurable:!0});var y=x;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var b=C;Object.defineProperty(e,"FileWriteStream",{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});function x(e,t){return this instanceof x?(h.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function S(){var e=this;O(e.path,e.flags,e.mode,function(t,n){t?(e.autoClose&&e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n),e.read())})}function C(e,t){return this instanceof C?(v.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function w(){var e=this;O(e.path,e.flags,e.mode,function(t,n){t?(e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n))})}function T(t,n){return new e.ReadStream(t,n)}function E(t,n){return new e.WriteStream(t,n)}var D=e.open;e.open=O;function O(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return D(e,t,n,function(o,s){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?_([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}return e}function _(e){h(`ENQUEUE`,e[0].name,e[1]),r[d].push(e),b()}var v;function y(){for(var e=Date.now(),t=0;t<r[d].length;++t)r[d][t].length>2&&(r[d][t][3]=e,r[d][t][4]=e);b()}function b(){if(clearTimeout(v),v=void 0,r[d].length!==0){var e=r[d].shift(),t=e[0],n=e[1],i=e[2],a=e[3],o=e[4];if(a===void 0)h(`RETRY`,t.name,n),t.apply(null,n);else if(Date.now()-a>=6e4){h(`TIMEOUT`,t.name,n);var s=n.pop();typeof s==`function`&&s.call(null,i)}else{var c=Date.now()-o,l=Math.max(o-a,1);c>=Math.min(l*1.2,100)?(h(`RETRY`,t.name,n),t.apply(null,n.concat([a]))):r[d].push(e)}v===void 0&&(v=setTimeout(b,0))}}})),l=t((e=>{let t=i().fromCallback,n=c(),r=`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`.split(`.`).filter(e=>typeof n[e]==`function`);Object.assign(e,n),r.forEach(r=>{e[r]=t(n[r])}),e.exists=function(e,t){return typeof t==`function`?n.exists(e,t):new Promise(t=>n.exists(e,t))},e.read=function(e,t,r,i,a,o){return typeof o==`function`?n.read(e,t,r,i,a,o):new Promise((o,s)=>{n.read(e,t,r,i,a,(e,t,n)=>{if(e)return s(e);o({bytesRead:t,buffer:n})})})},e.write=function(e,t,...r){return typeof r[r.length-1]==`function`?n.write(e,t,...r):new Promise((i,a)=>{n.write(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffer:n})})})},typeof n.writev==`function`&&(e.writev=function(e,t,...r){return typeof r[r.length-1]==`function`?n.writev(e,t,...r):new Promise((i,a)=>{n.writev(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffers:n})})})}),typeof n.realpath.native==`function`?e.realpath.native=t(n.realpath.native):process.emitWarning(`fs.realpath.native is not a function. Is fs being monkey-patched?`,`Warning`,`fs-extra-WARN0003`)})),u=t(((e,t)=>{let r=n(`path`);t.exports.checkPath=function(e){if(process.platform===`win32`&&/[<>:"|?*]/.test(e.replace(r.parse(e).root,``))){let t=Error(`Path contains invalid characters: ${e}`);throw t.code=`EINVAL`,t}}})),d=t(((e,t)=>{let n=l(),{checkPath:r}=u(),i=e=>typeof e==`number`?e:{mode:511,...e}.mode;t.exports.makeDir=async(e,t)=>(r(e),n.mkdir(e,{mode:i(t),recursive:!0})),t.exports.makeDirSync=(e,t)=>(r(e),n.mkdirSync(e,{mode:i(t),recursive:!0}))})),f=t(((e,t)=>{let n=i().fromPromise,{makeDir:r,makeDirSync:a}=d(),o=n(r);t.exports={mkdirs:o,mkdirsSync:a,mkdirp:o,mkdirpSync:a,ensureDir:o,ensureDirSync:a}})),p=t(((e,t)=>{let n=i().fromPromise,r=l();function a(e){return r.access(e).then(()=>!0).catch(()=>!1)}t.exports={pathExists:n(a),pathExistsSync:r.existsSync}})),m=t(((e,t)=>{let n=c();function r(e,t,r,i){n.open(e,`r+`,(e,a)=>{if(e)return i(e);n.futimes(a,t,r,e=>{n.close(a,t=>{i&&i(e||t)})})})}function i(e,t,r){let i=n.openSync(e,`r+`);return n.futimesSync(i,t,r),n.closeSync(i)}t.exports={utimesMillis:r,utimesMillisSync:i}})),h=t(((e,t)=>{let r=l(),i=n(`path`),a=n(`util`);function o(e,t,n){let i=n.dereference?e=>r.stat(e,{bigint:!0}):e=>r.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch(e=>{if(e.code===`ENOENT`)return null;throw e})]).then(([e,t])=>({srcStat:e,destStat:t}))}function s(e,t,n){let i,a=n.dereference?e=>r.statSync(e,{bigint:!0}):e=>r.lstatSync(e,{bigint:!0}),o=a(e);try{i=a(t)}catch(e){if(e.code===`ENOENT`)return{srcStat:o,destStat:null};throw e}return{srcStat:o,destStat:i}}function c(e,t,n,r,s){a.callbackify(o)(e,t,r,(r,a)=>{if(r)return s(r);let{srcStat:o,destStat:c}=a;if(c){if(p(o,c)){let r=i.basename(e),a=i.basename(t);return n===`move`&&r!==a&&r.toLowerCase()===a.toLowerCase()?s(null,{srcStat:o,destStat:c,isChangingCase:!0}):s(Error(`Source and destination must not be the same.`))}if(o.isDirectory()&&!c.isDirectory())return s(Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!o.isDirectory()&&c.isDirectory())return s(Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return o.isDirectory()&&m(e,t)?s(Error(h(e,t,n))):s(null,{srcStat:o,destStat:c})})}function u(e,t,n,r){let{srcStat:a,destStat:o}=s(e,t,r);if(o){if(p(a,o)){let r=i.basename(e),s=i.basename(t);if(n===`move`&&r!==s&&r.toLowerCase()===s.toLowerCase())return{srcStat:a,destStat:o,isChangingCase:!0};throw Error(`Source and destination must not be the same.`)}if(a.isDirectory()&&!o.isDirectory())throw Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!a.isDirectory()&&o.isDirectory())throw Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(a.isDirectory()&&m(e,t))throw Error(h(e,t,n));return{srcStat:a,destStat:o}}function d(e,t,n,a,o){let s=i.resolve(i.dirname(e)),c=i.resolve(i.dirname(n));if(c===s||c===i.parse(c).root)return o();r.stat(c,{bigint:!0},(r,i)=>r?r.code===`ENOENT`?o():o(r):p(t,i)?o(Error(h(e,n,a))):d(e,t,c,a,o))}function f(e,t,n,a){let o=i.resolve(i.dirname(e)),s=i.resolve(i.dirname(n));if(s===o||s===i.parse(s).root)return;let c;try{c=r.statSync(s,{bigint:!0})}catch(e){if(e.code===`ENOENT`)return;throw e}if(p(t,c))throw Error(h(e,n,a));return f(e,t,s,a)}function p(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function m(e,t){let n=i.resolve(e).split(i.sep).filter(e=>e),r=i.resolve(t).split(i.sep).filter(e=>e);return n.reduce((e,t,n)=>e&&r[n]===t,!0)}function h(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}t.exports={checkPaths:c,checkPathsSync:u,checkParentPaths:d,checkParentPathsSync:f,isSrcSubdir:m,areIdentical:p}})),g=t(((e,t)=>{let r=c(),i=n(`path`),a=f().mkdirs,o=p().pathExists,s=m().utimesMillis,l=h();function u(e,t,n,r){typeof n==`function`&&!r?(r=n,n={}):typeof n==`function`&&(n={filter:n}),r||=function(){},n||={},n.clobber=`clobber`in n?!!n.clobber:!0,n.overwrite=`overwrite`in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch===`ia32`&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
1
+ import{E as e,O as t,k as n}from"./get-config-sVSMVDr6.mjs";import{dirname as r}from"path";var i=e((e=>{e.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]==`function`)e.apply(this,t);else return new Promise((n,r)=>{t.push((e,t)=>e==null?n(t):r(e)),e.apply(this,t)})},"name",{value:e.name})},e.fromPromise=function(e){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!=`function`)return e.apply(this,t);t.pop(),e.apply(this,t).then(e=>n(null,e),n)},"name",{value:e.name})}})),a=e(((e,n)=>{var r=t(`constants`),i=process.cwd,a=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return a||=i.call(process),a};try{process.cwd()}catch{}if(typeof process.chdir==`function`){var s=process.chdir;process.chdir=function(e){a=null,s.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s)}n.exports=c;function c(e){r.hasOwnProperty(`O_SYMLINK`)&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(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(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){}),o===`win32`&&(e.rename=typeof e.rename==`function`?(function(t){function n(n,r,i){var a=Date.now(),o=0;t(n,r,function s(c){if(c&&(c.code===`EACCES`||c.code===`EPERM`||c.code===`EBUSY`)&&Date.now()-a<6e4){setTimeout(function(){e.stat(r,function(e,a){e&&e.code===`ENOENT`?t(n,r,s):i(c)})},o),o<100&&(o+=10);return}i&&i(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.rename):e.rename),e.read=typeof e.read==`function`?(function(t){function n(n,r,i,a,o,s){var c;if(s&&typeof s==`function`){var l=0;c=function(u,d,f){if(u&&u.code===`EAGAIN`&&l<10)return l++,t.call(e,n,r,i,a,o,c);s.apply(this,arguments)}}return t.call(e,n,r,i,a,o,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.read):e.read,e.readSync=typeof e.readSync==`function`?(function(t){return function(n,r,i,a,o){for(var s=0;;)try{return t.call(e,n,r,i,a,o)}catch(e){if(e.code===`EAGAIN`&&s<10){s++;continue}throw e}}})(e.readSync):e.readSync;function t(e){e.lchmod=function(t,n,i){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,function(t,r){if(t){i&&i(t);return}e.fchmod(r,n,function(t){e.close(r,function(e){i&&i(t||e)})})})},e.lchmodSync=function(t,n){var i=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n),a=!0,o;try{o=e.fchmodSync(i,n),a=!1}finally{if(a)try{e.closeSync(i)}catch{}else e.closeSync(i)}return o}}function n(e){r.hasOwnProperty(`O_SYMLINK`)&&e.futimes?(e.lutimes=function(t,n,i,a){e.open(t,r.O_SYMLINK,function(t,r){if(t){a&&a(t);return}e.futimes(r,n,i,function(t){e.close(r,function(e){a&&a(t||e)})})})},e.lutimesSync=function(t,n,i){var a=e.openSync(t,r.O_SYMLINK),o,s=!0;try{o=e.futimesSync(a,n,i),s=!1}finally{if(s)try{e.closeSync(a)}catch{}else e.closeSync(a)}return o}):e.futimes&&(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}function i(t){return t&&function(n,r,i){return t.call(e,n,r,function(e){d(e)&&(e=null),i&&i.apply(this,arguments)})}}function a(t){return t&&function(n,r){try{return t.call(e,n,r)}catch(e){if(!d(e))throw e}}}function s(t){return t&&function(n,r,i,a){return t.call(e,n,r,i,function(e){d(e)&&(e=null),a&&a.apply(this,arguments)})}}function c(t){return t&&function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!d(e))throw e}}}function l(t){return t&&function(n,r,i){typeof r==`function`&&(i=r,r=null);function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return r?t.call(e,n,r,a):t.call(e,n,a)}}function u(t){return t&&function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}}function d(e){return!e||e.code===`ENOSYS`||(!process.getuid||process.getuid()!==0)&&(e.code===`EINVAL`||e.code===`EPERM`)}}})),o=e(((e,n)=>{var r=t(`stream`).Stream;n.exports=i;function i(e){return{ReadStream:t,WriteStream:n};function t(n,i){if(!(this instanceof t))return new t(n,i);r.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=65536,i||={};for(var o=Object.keys(i),s=0,c=o.length;s<c;s++){var l=o[s];this[l]=i[l]}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 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(e,t){if(e){a.emit(`error`,e),a.readable=!1;return}a.fd=t,a.emit(`open`,t),a._read()})}function n(t,i){if(!(this instanceof n))return new n(t,i);r.call(this),this.path=t,this.fd=null,this.writable=!0,this.flags=`w`,this.encoding=`binary`,this.mode=438,this.bytesWritten=0,i||={};for(var a=Object.keys(i),o=0,s=a.length;o<s;o++){var c=a[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!=`number`)throw TypeError(`start must be a Number`);if(this.start<0)throw 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())}}})),s=e(((e,t)=>{t.exports=r;var n=Object.getPrototypeOf||function(e){return e.__proto__};function r(e){if(typeof e!=`object`||!e)return e;if(e instanceof Object)var t={__proto__:n(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}})),c=e(((e,n)=>{var r=t(`fs`),i=a(),c=o(),l=s(),u=t(`util`),d,f;typeof Symbol==`function`&&typeof Symbol.for==`function`?(d=Symbol.for(`graceful-fs.queue`),f=Symbol.for(`graceful-fs.previous`)):(d=`___graceful-fs.queue`,f=`___graceful-fs.previous`);function p(){}function m(e,t){Object.defineProperty(e,d,{get:function(){return t}})}var h=p;u.debuglog?h=u.debuglog(`gfs4`):/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&(h=function(){var e=u.format.apply(u,arguments);e=`GFS4: `+e.split(/\n/).join(`
2
+ GFS4: `),console.error(e)}),r[d]||(m(r,global[d]||[]),r.close=(function(e){function t(t,n){return e.call(r,t,function(e){e||y(),typeof n==`function`&&n.apply(this,arguments)})}return Object.defineProperty(t,f,{value:e}),t})(r.close),r.closeSync=(function(e){function t(t){e.apply(r,arguments),y()}return Object.defineProperty(t,f,{value:e}),t})(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&process.on(`exit`,function(){h(r[d]),t(`assert`).equal(r[d].length,0)})),global[d]||m(global,r[d]),n.exports=g(l(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(n.exports=g(r),r.__patched=!0);function g(e){i(e),e.gracefulify=g,e.createReadStream=T,e.createWriteStream=E;var t=e.readFile;e.readFile=n;function n(e,n,r){return typeof n==`function`&&(r=n,n=null),i(e,n,r);function i(e,n,r,a){return t(e,n,function(t){t&&(t.code===`EMFILE`||t.code===`ENFILE`)?_([i,[e,n,r],t,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=a;function a(e,t,n,i){return typeof n==`function`&&(i=n,n=null),a(e,t,n,i);function a(e,t,n,i,o){return r(e,t,n,function(r){r&&(r.code===`EMFILE`||r.code===`ENFILE`)?_([a,[e,t,n,i],r,o||Date.now(),Date.now()]):typeof i==`function`&&i.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=s);function s(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return o(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?_([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=u);function u(e,t,n,r){return typeof n==`function`&&(r=n,n=0),i(e,t,n,r);function i(e,t,n,r,a){return l(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?_([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var d=e.readdir;e.readdir=p;var f=/^v[0-5]\./;function p(e,t,n){typeof t==`function`&&(n=t,t=null);var r=f.test(process.version)?function(e,t,n,r){return d(e,i(e,t,n,r))}:function(e,t,n,r){return d(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(a,o){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?_([r,[e,t,n],a,i||Date.now(),Date.now()]):(o&&o.sort&&o.sort(),typeof n==`function`&&n.call(this,a,o))}}}if(process.version.substr(0,4)===`v0.8`){var m=c(e);x=m.ReadStream,C=m.WriteStream}var h=e.ReadStream;h&&(x.prototype=Object.create(h.prototype),x.prototype.open=S);var v=e.WriteStream;v&&(C.prototype=Object.create(v.prototype),C.prototype.open=w),Object.defineProperty(e,"ReadStream",{get:function(){return x},set:function(e){x=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return C},set:function(e){C=e},enumerable:!0,configurable:!0});var y=x;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var b=C;Object.defineProperty(e,"FileWriteStream",{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});function x(e,t){return this instanceof x?(h.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function S(){var e=this;O(e.path,e.flags,e.mode,function(t,n){t?(e.autoClose&&e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n),e.read())})}function C(e,t){return this instanceof C?(v.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function w(){var e=this;O(e.path,e.flags,e.mode,function(t,n){t?(e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n))})}function T(t,n){return new e.ReadStream(t,n)}function E(t,n){return new e.WriteStream(t,n)}var D=e.open;e.open=O;function O(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return D(e,t,n,function(o,s){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?_([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}return e}function _(e){h(`ENQUEUE`,e[0].name,e[1]),r[d].push(e),b()}var v;function y(){for(var e=Date.now(),t=0;t<r[d].length;++t)r[d][t].length>2&&(r[d][t][3]=e,r[d][t][4]=e);b()}function b(){if(clearTimeout(v),v=void 0,r[d].length!==0){var e=r[d].shift(),t=e[0],n=e[1],i=e[2],a=e[3],o=e[4];if(a===void 0)h(`RETRY`,t.name,n),t.apply(null,n);else if(Date.now()-a>=6e4){h(`TIMEOUT`,t.name,n);var s=n.pop();typeof s==`function`&&s.call(null,i)}else{var c=Date.now()-o,l=Math.max(o-a,1);c>=Math.min(l*1.2,100)?(h(`RETRY`,t.name,n),t.apply(null,n.concat([a]))):r[d].push(e)}v===void 0&&(v=setTimeout(b,0))}}})),l=e((e=>{let t=i().fromCallback,n=c(),r=`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`.split(`.`).filter(e=>typeof n[e]==`function`);Object.assign(e,n),r.forEach(r=>{e[r]=t(n[r])}),e.exists=function(e,t){return typeof t==`function`?n.exists(e,t):new Promise(t=>n.exists(e,t))},e.read=function(e,t,r,i,a,o){return typeof o==`function`?n.read(e,t,r,i,a,o):new Promise((o,s)=>{n.read(e,t,r,i,a,(e,t,n)=>{if(e)return s(e);o({bytesRead:t,buffer:n})})})},e.write=function(e,t,...r){return typeof r[r.length-1]==`function`?n.write(e,t,...r):new Promise((i,a)=>{n.write(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffer:n})})})},typeof n.writev==`function`&&(e.writev=function(e,t,...r){return typeof r[r.length-1]==`function`?n.writev(e,t,...r):new Promise((i,a)=>{n.writev(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffers:n})})})}),typeof n.realpath.native==`function`?e.realpath.native=t(n.realpath.native):process.emitWarning(`fs.realpath.native is not a function. Is fs being monkey-patched?`,`Warning`,`fs-extra-WARN0003`)})),u=e(((e,n)=>{let r=t(`path`);n.exports.checkPath=function(e){if(process.platform===`win32`&&/[<>:"|?*]/.test(e.replace(r.parse(e).root,``))){let t=Error(`Path contains invalid characters: ${e}`);throw t.code=`EINVAL`,t}}})),d=e(((e,t)=>{let n=l(),{checkPath:r}=u(),i=e=>typeof e==`number`?e:{mode:511,...e}.mode;t.exports.makeDir=async(e,t)=>(r(e),n.mkdir(e,{mode:i(t),recursive:!0})),t.exports.makeDirSync=(e,t)=>(r(e),n.mkdirSync(e,{mode:i(t),recursive:!0}))})),f=e(((e,t)=>{let n=i().fromPromise,{makeDir:r,makeDirSync:a}=d(),o=n(r);t.exports={mkdirs:o,mkdirsSync:a,mkdirp:o,mkdirpSync:a,ensureDir:o,ensureDirSync:a}})),p=e(((e,t)=>{let n=i().fromPromise,r=l();function a(e){return r.access(e).then(()=>!0).catch(()=>!1)}t.exports={pathExists:n(a),pathExistsSync:r.existsSync}})),m=e(((e,t)=>{let n=c();function r(e,t,r,i){n.open(e,`r+`,(e,a)=>{if(e)return i(e);n.futimes(a,t,r,e=>{n.close(a,t=>{i&&i(e||t)})})})}function i(e,t,r){let i=n.openSync(e,`r+`);return n.futimesSync(i,t,r),n.closeSync(i)}t.exports={utimesMillis:r,utimesMillisSync:i}})),h=e(((e,n)=>{let r=l(),i=t(`path`),a=t(`util`);function o(e,t,n){let i=n.dereference?e=>r.stat(e,{bigint:!0}):e=>r.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch(e=>{if(e.code===`ENOENT`)return null;throw e})]).then(([e,t])=>({srcStat:e,destStat:t}))}function s(e,t,n){let i,a=n.dereference?e=>r.statSync(e,{bigint:!0}):e=>r.lstatSync(e,{bigint:!0}),o=a(e);try{i=a(t)}catch(e){if(e.code===`ENOENT`)return{srcStat:o,destStat:null};throw e}return{srcStat:o,destStat:i}}function c(e,t,n,r,s){a.callbackify(o)(e,t,r,(r,a)=>{if(r)return s(r);let{srcStat:o,destStat:c}=a;if(c){if(p(o,c)){let r=i.basename(e),a=i.basename(t);return n===`move`&&r!==a&&r.toLowerCase()===a.toLowerCase()?s(null,{srcStat:o,destStat:c,isChangingCase:!0}):s(Error(`Source and destination must not be the same.`))}if(o.isDirectory()&&!c.isDirectory())return s(Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!o.isDirectory()&&c.isDirectory())return s(Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return o.isDirectory()&&m(e,t)?s(Error(h(e,t,n))):s(null,{srcStat:o,destStat:c})})}function u(e,t,n,r){let{srcStat:a,destStat:o}=s(e,t,r);if(o){if(p(a,o)){let r=i.basename(e),s=i.basename(t);if(n===`move`&&r!==s&&r.toLowerCase()===s.toLowerCase())return{srcStat:a,destStat:o,isChangingCase:!0};throw Error(`Source and destination must not be the same.`)}if(a.isDirectory()&&!o.isDirectory())throw Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!a.isDirectory()&&o.isDirectory())throw Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(a.isDirectory()&&m(e,t))throw Error(h(e,t,n));return{srcStat:a,destStat:o}}function d(e,t,n,a,o){let s=i.resolve(i.dirname(e)),c=i.resolve(i.dirname(n));if(c===s||c===i.parse(c).root)return o();r.stat(c,{bigint:!0},(r,i)=>r?r.code===`ENOENT`?o():o(r):p(t,i)?o(Error(h(e,n,a))):d(e,t,c,a,o))}function f(e,t,n,a){let o=i.resolve(i.dirname(e)),s=i.resolve(i.dirname(n));if(s===o||s===i.parse(s).root)return;let c;try{c=r.statSync(s,{bigint:!0})}catch(e){if(e.code===`ENOENT`)return;throw e}if(p(t,c))throw Error(h(e,n,a));return f(e,t,s,a)}function p(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function m(e,t){let n=i.resolve(e).split(i.sep).filter(e=>e),r=i.resolve(t).split(i.sep).filter(e=>e);return n.reduce((e,t,n)=>e&&r[n]===t,!0)}function h(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}n.exports={checkPaths:c,checkPathsSync:u,checkParentPaths:d,checkParentPathsSync:f,isSrcSubdir:m,areIdentical:p}})),g=e(((e,n)=>{let r=c(),i=t(`path`),a=f().mkdirs,o=p().pathExists,s=m().utimesMillis,l=h();function u(e,t,n,r){typeof n==`function`&&!r?(r=n,n={}):typeof n==`function`&&(n={filter:n}),r||=function(){},n||={},n.clobber=`clobber`in n?!!n.clobber:!0,n.overwrite=`overwrite`in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch===`ia32`&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
3
3
 
4
- see https://github.com/jprichardson/node-fs-extra/issues/269`,`Warning`,`fs-extra-WARN0001`),l.checkPaths(e,t,`copy`,n,(i,a)=>{if(i)return r(i);let{srcStat:o,destStat:s}=a;l.checkParentPaths(e,o,t,`copy`,i=>i?r(i):n.filter?g(d,s,e,t,n,r):d(s,e,t,n,r))})}function d(e,t,n,r,s){let c=i.dirname(n);o(c,(i,o)=>{if(i)return s(i);if(o)return v(e,t,n,r,s);a(c,i=>i?s(i):v(e,t,n,r,s))})}function g(e,t,n,r,i,a){Promise.resolve(i.filter(n,r)).then(o=>o?e(t,n,r,i,a):a(),e=>a(e))}function _(e,t,n,r,i){return r.filter?g(v,e,t,n,r,i):v(e,t,n,r,i)}function v(e,t,n,i,a){(i.dereference?r.stat:r.lstat)(t,(r,o)=>r?a(r):o.isDirectory()?O(o,e,t,n,i,a):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?y(o,e,t,n,i,a):o.isSymbolicLink()?N(e,t,n,i,a):o.isSocket()?a(Error(`Cannot copy a socket file: ${t}`)):o.isFIFO()?a(Error(`Cannot copy a FIFO pipe: ${t}`)):a(Error(`Unknown file: ${t}`)))}function y(e,t,n,r,i,a){return t?b(e,n,r,i,a):x(e,n,r,i,a)}function b(e,t,n,i,a){if(i.overwrite)r.unlink(n,r=>r?a(r):x(e,t,n,i,a));else if(i.errorOnExist)return a(Error(`'${n}' already exists`));else return a()}function x(e,t,n,i,a){r.copyFile(t,n,r=>r?a(r):i.preserveTimestamps?S(e.mode,t,n,a):E(n,e.mode,a))}function S(e,t,n,r){return C(e)?w(n,e,i=>i?r(i):T(e,t,n,r)):T(e,t,n,r)}function C(e){return!(e&128)}function w(e,t,n){return E(e,t|128,n)}function T(e,t,n,r){D(t,n,t=>t?r(t):E(n,e,r))}function E(e,t,n){return r.chmod(e,t,n)}function D(e,t,n){r.stat(e,(e,r)=>e?n(e):s(t,r.atime,r.mtime,n))}function O(e,t,n,r,i,a){return t?A(n,r,i,a):k(e.mode,n,r,i,a)}function k(e,t,n,i,a){r.mkdir(n,r=>{if(r)return a(r);A(t,n,i,t=>t?a(t):E(n,e,a))})}function A(e,t,n,i){r.readdir(e,(r,a)=>r?i(r):j(a,e,t,n,i))}function j(e,t,n,r,i){let a=e.pop();return a?M(e,a,t,n,r,i):i()}function M(e,t,n,r,a,o){let s=i.join(n,t),c=i.join(r,t);l.checkPaths(s,c,`copy`,a,(t,i)=>{if(t)return o(t);let{destStat:l}=i;_(l,s,c,a,t=>t?o(t):j(e,n,r,a,o))})}function N(e,t,n,a,o){r.readlink(t,(t,s)=>{if(t)return o(t);if(a.dereference&&(s=i.resolve(process.cwd(),s)),e)r.readlink(n,(t,c)=>t?t.code===`EINVAL`||t.code===`UNKNOWN`?r.symlink(s,n,o):o(t):(a.dereference&&(c=i.resolve(process.cwd(),c)),l.isSrcSubdir(s,c)?o(Error(`Cannot copy '${s}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&l.isSrcSubdir(c,s)?o(Error(`Cannot overwrite '${c}' with '${s}'.`)):P(s,n,o)));else return r.symlink(s,n,o)})}function P(e,t,n){r.unlink(t,i=>i?n(i):r.symlink(e,t,n))}t.exports=u})),_=t(((e,t)=>{let r=c(),i=n(`path`),a=f().mkdirsSync,o=m().utimesMillisSync,s=h();function l(e,t,n){typeof n==`function`&&(n={filter:n}),n||={},n.clobber=`clobber`in n?!!n.clobber:!0,n.overwrite=`overwrite`in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch===`ia32`&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
4
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,`Warning`,`fs-extra-WARN0001`),l.checkPaths(e,t,`copy`,n,(i,a)=>{if(i)return r(i);let{srcStat:o,destStat:s}=a;l.checkParentPaths(e,o,t,`copy`,i=>i?r(i):n.filter?g(d,s,e,t,n,r):d(s,e,t,n,r))})}function d(e,t,n,r,s){let c=i.dirname(n);o(c,(i,o)=>{if(i)return s(i);if(o)return v(e,t,n,r,s);a(c,i=>i?s(i):v(e,t,n,r,s))})}function g(e,t,n,r,i,a){Promise.resolve(i.filter(n,r)).then(o=>o?e(t,n,r,i,a):a(),e=>a(e))}function _(e,t,n,r,i){return r.filter?g(v,e,t,n,r,i):v(e,t,n,r,i)}function v(e,t,n,i,a){(i.dereference?r.stat:r.lstat)(t,(r,o)=>r?a(r):o.isDirectory()?O(o,e,t,n,i,a):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?y(o,e,t,n,i,a):o.isSymbolicLink()?N(e,t,n,i,a):o.isSocket()?a(Error(`Cannot copy a socket file: ${t}`)):o.isFIFO()?a(Error(`Cannot copy a FIFO pipe: ${t}`)):a(Error(`Unknown file: ${t}`)))}function y(e,t,n,r,i,a){return t?b(e,n,r,i,a):x(e,n,r,i,a)}function b(e,t,n,i,a){if(i.overwrite)r.unlink(n,r=>r?a(r):x(e,t,n,i,a));else if(i.errorOnExist)return a(Error(`'${n}' already exists`));else return a()}function x(e,t,n,i,a){r.copyFile(t,n,r=>r?a(r):i.preserveTimestamps?S(e.mode,t,n,a):E(n,e.mode,a))}function S(e,t,n,r){return C(e)?w(n,e,i=>i?r(i):T(e,t,n,r)):T(e,t,n,r)}function C(e){return!(e&128)}function w(e,t,n){return E(e,t|128,n)}function T(e,t,n,r){D(t,n,t=>t?r(t):E(n,e,r))}function E(e,t,n){return r.chmod(e,t,n)}function D(e,t,n){r.stat(e,(e,r)=>e?n(e):s(t,r.atime,r.mtime,n))}function O(e,t,n,r,i,a){return t?A(n,r,i,a):k(e.mode,n,r,i,a)}function k(e,t,n,i,a){r.mkdir(n,r=>{if(r)return a(r);A(t,n,i,t=>t?a(t):E(n,e,a))})}function A(e,t,n,i){r.readdir(e,(r,a)=>r?i(r):j(a,e,t,n,i))}function j(e,t,n,r,i){let a=e.pop();return a?M(e,a,t,n,r,i):i()}function M(e,t,n,r,a,o){let s=i.join(n,t),c=i.join(r,t);l.checkPaths(s,c,`copy`,a,(t,i)=>{if(t)return o(t);let{destStat:l}=i;_(l,s,c,a,t=>t?o(t):j(e,n,r,a,o))})}function N(e,t,n,a,o){r.readlink(t,(t,s)=>{if(t)return o(t);if(a.dereference&&(s=i.resolve(process.cwd(),s)),e)r.readlink(n,(t,c)=>t?t.code===`EINVAL`||t.code===`UNKNOWN`?r.symlink(s,n,o):o(t):(a.dereference&&(c=i.resolve(process.cwd(),c)),l.isSrcSubdir(s,c)?o(Error(`Cannot copy '${s}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&l.isSrcSubdir(c,s)?o(Error(`Cannot overwrite '${c}' with '${s}'.`)):P(s,n,o)));else return r.symlink(s,n,o)})}function P(e,t,n){r.unlink(t,i=>i?n(i):r.symlink(e,t,n))}n.exports=u})),_=e(((e,n)=>{let r=c(),i=t(`path`),a=f().mkdirsSync,o=m().utimesMillisSync,s=h();function l(e,t,n){typeof n==`function`&&(n={filter:n}),n||={},n.clobber=`clobber`in n?!!n.clobber:!0,n.overwrite=`overwrite`in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch===`ia32`&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
5
5
 
6
- see https://github.com/jprichardson/node-fs-extra/issues/269`,`Warning`,`fs-extra-WARN0002`);let{srcStat:r,destStat:i}=s.checkPathsSync(e,t,`copy`,n);return s.checkParentPathsSync(e,r,t,`copy`),u(i,e,t,n)}function u(e,t,n,o){if(o.filter&&!o.filter(t,n))return;let s=i.dirname(n);return r.existsSync(s)||a(s),p(e,t,n,o)}function d(e,t,n,r){if(!(r.filter&&!r.filter(t,n)))return p(e,t,n,r)}function p(e,t,n,i){let a=(i.dereference?r.statSync:r.lstatSync)(t);if(a.isDirectory())return w(a,e,t,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return g(a,e,t,n,i);if(a.isSymbolicLink())return O(e,t,n,i);throw a.isSocket()?Error(`Cannot copy a socket file: ${t}`):a.isFIFO()?Error(`Cannot copy a FIFO pipe: ${t}`):Error(`Unknown file: ${t}`)}function g(e,t,n,r,i){return t?_(e,n,r,i):v(e,n,r,i)}function _(e,t,n,i){if(i.overwrite)return r.unlinkSync(n),v(e,t,n,i);if(i.errorOnExist)throw Error(`'${n}' already exists`)}function v(e,t,n,i){return r.copyFileSync(t,n),i.preserveTimestamps&&y(e.mode,t,n),S(n,e.mode)}function y(e,t,n){return b(e)&&x(n,e),C(t,n)}function b(e){return!(e&128)}function x(e,t){return S(e,t|128)}function S(e,t){return r.chmodSync(e,t)}function C(e,t){let n=r.statSync(e);return o(t,n.atime,n.mtime)}function w(e,t,n,r,i){return t?E(n,r,i):T(e.mode,n,r,i)}function T(e,t,n,i){return r.mkdirSync(n),E(t,n,i),S(n,e)}function E(e,t,n){r.readdirSync(e).forEach(r=>D(r,e,t,n))}function D(e,t,n,r){let a=i.join(t,e),o=i.join(n,e),{destStat:c}=s.checkPathsSync(a,o,`copy`,r);return d(c,a,o,r)}function O(e,t,n,a){let o=r.readlinkSync(t);if(a.dereference&&(o=i.resolve(process.cwd(),o)),e){let e;try{e=r.readlinkSync(n)}catch(e){if(e.code===`EINVAL`||e.code===`UNKNOWN`)return r.symlinkSync(o,n);throw e}if(a.dereference&&(e=i.resolve(process.cwd(),e)),s.isSrcSubdir(o,e))throw Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(r.statSync(n).isDirectory()&&s.isSrcSubdir(e,o))throw Error(`Cannot overwrite '${e}' with '${o}'.`);return k(o,n)}return r.symlinkSync(o,n)}function k(e,t){return r.unlinkSync(t),r.symlinkSync(e,t)}t.exports=l})),v=t(((e,t)=>{let n=i().fromCallback;t.exports={copy:n(g()),copySync:_()}})),y=t(((e,t)=>{let r=c(),i=n(`path`),a=n(`assert`),o=process.platform===`win32`;function s(e){[`unlink`,`chmod`,`stat`,`lstat`,`rmdir`,`readdir`].forEach(t=>{e[t]=e[t]||r[t],t+=`Sync`,e[t]=e[t]||r[t]}),e.maxBusyTries=e.maxBusyTries||3}function l(e,t,n){let r=0;typeof t==`function`&&(n=t,t={}),a(e,`rimraf: missing path`),a.strictEqual(typeof e,`string`,`rimraf: path should be a string`),a.strictEqual(typeof n,`function`,`rimraf: callback function required`),a(t,`rimraf: invalid options argument provided`),a.strictEqual(typeof t,`object`,`rimraf: options should be object`),s(t),u(e,t,function i(a){if(a){if((a.code===`EBUSY`||a.code===`ENOTEMPTY`||a.code===`EPERM`)&&r<t.maxBusyTries){r++;let n=r*100;return setTimeout(()=>u(e,t,i),n)}a.code===`ENOENT`&&(a=null)}n(a)})}function u(e,t,n){a(e),a(t),a(typeof n==`function`),t.lstat(e,(r,i)=>{if(r&&r.code===`ENOENT`)return n(null);if(r&&r.code===`EPERM`&&o)return d(e,t,r,n);if(i&&i.isDirectory())return p(e,t,r,n);t.unlink(e,r=>{if(r){if(r.code===`ENOENT`)return n(null);if(r.code===`EPERM`)return o?d(e,t,r,n):p(e,t,r,n);if(r.code===`EISDIR`)return p(e,t,r,n)}return n(r)})})}function d(e,t,n,r){a(e),a(t),a(typeof r==`function`),t.chmod(e,438,i=>{i?r(i.code===`ENOENT`?null:n):t.stat(e,(i,a)=>{i?r(i.code===`ENOENT`?null:n):a.isDirectory()?p(e,t,n,r):t.unlink(e,r)})})}function f(e,t,n){let r;a(e),a(t);try{t.chmodSync(e,438)}catch(e){if(e.code===`ENOENT`)return;throw n}try{r=t.statSync(e)}catch(e){if(e.code===`ENOENT`)return;throw n}r.isDirectory()?g(e,t,n):t.unlinkSync(e)}function p(e,t,n,r){a(e),a(t),a(typeof r==`function`),t.rmdir(e,i=>{i&&(i.code===`ENOTEMPTY`||i.code===`EEXIST`||i.code===`EPERM`)?m(e,t,r):i&&i.code===`ENOTDIR`?r(n):r(i)})}function m(e,t,n){a(e),a(t),a(typeof n==`function`),t.readdir(e,(r,a)=>{if(r)return n(r);let o=a.length,s;if(o===0)return t.rmdir(e,n);a.forEach(r=>{l(i.join(e,r),t,r=>{if(!s){if(r)return n(s=r);--o===0&&t.rmdir(e,n)}})})})}function h(e,t){let n;t||={},s(t),a(e,`rimraf: missing path`),a.strictEqual(typeof e,`string`,`rimraf: path should be a string`),a(t,`rimraf: missing options`),a.strictEqual(typeof t,`object`,`rimraf: options should be object`);try{n=t.lstatSync(e)}catch(n){if(n.code===`ENOENT`)return;n.code===`EPERM`&&o&&f(e,t,n)}try{n&&n.isDirectory()?g(e,t,null):t.unlinkSync(e)}catch(n){if(n.code===`ENOENT`)return;if(n.code===`EPERM`)return o?f(e,t,n):g(e,t,n);if(n.code!==`EISDIR`)throw n;g(e,t,n)}}function g(e,t,n){a(e),a(t);try{t.rmdirSync(e)}catch(r){if(r.code===`ENOTDIR`)throw n;if(r.code===`ENOTEMPTY`||r.code===`EEXIST`||r.code===`EPERM`)_(e,t);else if(r.code!==`ENOENT`)throw r}}function _(e,t){if(a(e),a(t),t.readdirSync(e).forEach(n=>h(i.join(e,n),t)),o){let n=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-n<500)}else return t.rmdirSync(e,t)}t.exports=l,l.sync=h})),b=t(((e,t)=>{let n=c(),r=i().fromCallback,a=y();function o(e,t){if(n.rm)return n.rm(e,{recursive:!0,force:!0},t);a(e,t)}function s(e){if(n.rmSync)return n.rmSync(e,{recursive:!0,force:!0});a.sync(e)}t.exports={remove:r(o),removeSync:s}})),x=t(((e,t)=>{let r=i().fromPromise,a=l(),o=n(`path`),s=f(),c=b(),u=r(async function(e){let t;try{t=await a.readdir(e)}catch{return s.mkdirs(e)}return Promise.all(t.map(t=>c.remove(o.join(e,t))))});function d(e){let t;try{t=a.readdirSync(e)}catch{return s.mkdirsSync(e)}t.forEach(t=>{t=o.join(e,t),c.removeSync(t)})}t.exports={emptyDirSync:d,emptydirSync:d,emptyDir:u,emptydir:u}})),S=t(((e,t)=>{let r=i().fromCallback,a=n(`path`),o=c(),s=f();function l(e,t){function n(){o.writeFile(e,``,e=>{if(e)return t(e);t()})}o.stat(e,(r,i)=>{if(!r&&i.isFile())return t();let c=a.dirname(e);o.stat(c,(e,r)=>{if(e)return e.code===`ENOENT`?s.mkdirs(c,e=>{if(e)return t(e);n()}):t(e);r.isDirectory()?n():o.readdir(c,e=>{if(e)return t(e)})})})}function u(e){let t;try{t=o.statSync(e)}catch{}if(t&&t.isFile())return;let n=a.dirname(e);try{o.statSync(n).isDirectory()||o.readdirSync(n)}catch(e){if(e&&e.code===`ENOENT`)s.mkdirsSync(n);else throw e}o.writeFileSync(e,``)}t.exports={createFile:r(l),createFileSync:u}})),C=t(((e,t)=>{let r=i().fromCallback,a=n(`path`),o=c(),s=f(),l=p().pathExists,{areIdentical:u}=h();function d(e,t,n){function r(e,t){o.link(e,t,e=>{if(e)return n(e);n(null)})}o.lstat(t,(i,c)=>{o.lstat(e,(i,o)=>{if(i)return i.message=i.message.replace(`lstat`,`ensureLink`),n(i);if(c&&u(o,c))return n(null);let d=a.dirname(t);l(d,(i,a)=>{if(i)return n(i);if(a)return r(e,t);s.mkdirs(d,i=>{if(i)return n(i);r(e,t)})})})})}function m(e,t){let n;try{n=o.lstatSync(t)}catch{}try{let t=o.lstatSync(e);if(n&&u(t,n))return}catch(e){throw e.message=e.message.replace(`lstat`,`ensureLink`),e}let r=a.dirname(t);return o.existsSync(r)||s.mkdirsSync(r),o.linkSync(e,t)}t.exports={createLink:r(d),createLinkSync:m}})),w=t(((e,t)=>{let r=n(`path`),i=c(),a=p().pathExists;function o(e,t,n){if(r.isAbsolute(e))return i.lstat(e,t=>t?(t.message=t.message.replace(`lstat`,`ensureSymlink`),n(t)):n(null,{toCwd:e,toDst:e}));{let o=r.dirname(t),s=r.join(o,e);return a(s,(t,a)=>t?n(t):a?n(null,{toCwd:s,toDst:e}):i.lstat(e,t=>t?(t.message=t.message.replace(`lstat`,`ensureSymlink`),n(t)):n(null,{toCwd:e,toDst:r.relative(o,e)})))}}function s(e,t){let n;if(r.isAbsolute(e)){if(n=i.existsSync(e),!n)throw Error(`absolute srcpath does not exist`);return{toCwd:e,toDst:e}}{let a=r.dirname(t),o=r.join(a,e);if(n=i.existsSync(o),n)return{toCwd:o,toDst:e};if(n=i.existsSync(e),!n)throw Error(`relative srcpath does not exist`);return{toCwd:e,toDst:r.relative(a,e)}}}t.exports={symlinkPaths:o,symlinkPathsSync:s}})),T=t(((e,t)=>{let n=c();function r(e,t,r){if(r=typeof t==`function`?t:r,t=typeof t!=`function`&&t,t)return r(null,t);n.lstat(e,(e,n)=>{if(e)return r(null,`file`);t=n&&n.isDirectory()?`dir`:`file`,r(null,t)})}function i(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return`file`}return r&&r.isDirectory()?`dir`:`file`}t.exports={symlinkType:r,symlinkTypeSync:i}})),E=t(((e,t)=>{let r=i().fromCallback,a=n(`path`),o=l(),s=f(),c=s.mkdirs,u=s.mkdirsSync,d=w(),m=d.symlinkPaths,g=d.symlinkPathsSync,_=T(),v=_.symlinkType,y=_.symlinkTypeSync,b=p().pathExists,{areIdentical:x}=h();function S(e,t,n,r){r=typeof n==`function`?n:r,n=typeof n!=`function`&&n,o.lstat(t,(i,a)=>{!i&&a.isSymbolicLink()?Promise.all([o.stat(e),o.stat(t)]).then(([i,a])=>{if(x(i,a))return r(null);C(e,t,n,r)}):C(e,t,n,r)})}function C(e,t,n,r){m(e,t,(i,s)=>{if(i)return r(i);e=s.toDst,v(s.toCwd,n,(n,i)=>{if(n)return r(n);let s=a.dirname(t);b(s,(n,a)=>{if(n)return r(n);if(a)return o.symlink(e,t,i,r);c(s,n=>{if(n)return r(n);o.symlink(e,t,i,r)})})})})}function E(e,t,n){let r;try{r=o.lstatSync(t)}catch{}if(r&&r.isSymbolicLink()){let n=o.statSync(e),r=o.statSync(t);if(x(n,r))return}let i=g(e,t);e=i.toDst,n=y(i.toCwd,n);let s=a.dirname(t);return o.existsSync(s)||u(s),o.symlinkSync(e,t,n)}t.exports={createSymlink:r(S),createSymlinkSync:E}})),D=t(((e,t)=>{let{createFile:n,createFileSync:r}=S(),{createLink:i,createLinkSync:a}=C(),{createSymlink:o,createSymlinkSync:s}=E();t.exports={createFile:n,createFileSync:r,ensureFile:n,ensureFileSync:r,createLink:i,createLinkSync:a,ensureLink:i,ensureLinkSync:a,createSymlink:o,createSymlinkSync:s,ensureSymlink:o,ensureSymlinkSync:s}})),O=t(((e,t)=>{function n(e,{EOL:t=`
7
- `,finalEOL:n=!0,replacer:r=null,spaces:i}={}){let a=n?t:``,o=JSON.stringify(e,r,i);if(o===void 0)throw TypeError(`Converting ${typeof e} value to JSON is not supported`);return o.replace(/\n/g,t)+a}function r(e){return Buffer.isBuffer(e)&&(e=e.toString(`utf8`)),e.replace(/^\uFEFF/,``)}t.exports={stringify:n,stripBom:r}})),k=t(((e,t)=>{let r;try{r=c()}catch{r=n(`fs`)}let a=i(),{stringify:o,stripBom:s}=O();async function l(e,t={}){typeof t==`string`&&(t={encoding:t});let n=t.fs||r,i=`throws`in t?t.throws:!0,o=await a.fromCallback(n.readFile)(e,t);o=s(o);let c;try{c=JSON.parse(o,t?t.reviver:null)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}return c}let u=a.fromPromise(l);function d(e,t={}){typeof t==`string`&&(t={encoding:t});let n=t.fs||r,i=`throws`in t?t.throws:!0;try{let r=n.readFileSync(e,t);return r=s(r),JSON.parse(r,t.reviver)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}}async function f(e,t,n={}){let i=n.fs||r,s=o(t,n);await a.fromCallback(i.writeFile)(e,s,n)}let p=a.fromPromise(f);function m(e,t,n={}){let i=n.fs||r,a=o(t,n);return i.writeFileSync(e,a,n)}t.exports={readFile:u,readFileSync:d,writeFile:p,writeFileSync:m}})),A=t(((e,t)=>{let n=k();t.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}})),j=t(((e,t)=>{let r=i().fromCallback,a=c(),o=n(`path`),s=f(),l=p().pathExists;function u(e,t,n,r){typeof n==`function`&&(r=n,n=`utf8`);let i=o.dirname(e);l(i,(o,c)=>{if(o)return r(o);if(c)return a.writeFile(e,t,n,r);s.mkdirs(i,i=>{if(i)return r(i);a.writeFile(e,t,n,r)})})}function d(e,...t){let n=o.dirname(e);if(a.existsSync(n))return a.writeFileSync(e,...t);s.mkdirsSync(n),a.writeFileSync(e,...t)}t.exports={outputFile:r(u),outputFileSync:d}})),M=t(((e,t)=>{let{stringify:n}=O(),{outputFile:r}=j();async function i(e,t,i={}){let a=n(t,i);await r(e,a,i)}t.exports=i})),N=t(((e,t)=>{let{stringify:n}=O(),{outputFileSync:r}=j();function i(e,t,i){let a=n(t,i);r(e,a,i)}t.exports=i})),P=t(((e,t)=>{let n=i().fromPromise,r=A();r.outputJson=n(M()),r.outputJsonSync=N(),r.outputJSON=r.outputJson,r.outputJSONSync=r.outputJsonSync,r.writeJSON=r.writeJson,r.writeJSONSync=r.writeJsonSync,r.readJSON=r.readJson,r.readJSONSync=r.readJsonSync,t.exports=r})),F=t(((e,t)=>{let r=c(),i=n(`path`),a=v().copy,o=b().remove,s=f().mkdirp,l=p().pathExists,u=h();function d(e,t,n,r){typeof n==`function`&&(r=n,n={}),n||={};let a=n.overwrite||n.clobber||!1;u.checkPaths(e,t,`move`,n,(n,o)=>{if(n)return r(n);let{srcStat:c,isChangingCase:l=!1}=o;u.checkParentPaths(e,c,t,`move`,n=>{if(n)return r(n);if(m(t))return g(e,t,a,l,r);s(i.dirname(t),n=>n?r(n):g(e,t,a,l,r))})})}function m(e){let t=i.dirname(e);return i.parse(t).root===t}function g(e,t,n,r,i){if(r)return _(e,t,n,i);if(n)return o(t,r=>r?i(r):_(e,t,n,i));l(t,(r,a)=>r?i(r):a?i(Error(`dest already exists.`)):_(e,t,n,i))}function _(e,t,n,i){r.rename(e,t,r=>r?r.code===`EXDEV`?y(e,t,n,i):i(r):i())}function y(e,t,n,r){a(e,t,{overwrite:n,errorOnExist:!0},t=>t?r(t):o(e,r))}t.exports=d})),I=t(((e,t)=>{let r=c(),i=n(`path`),a=v().copySync,o=b().removeSync,s=f().mkdirpSync,l=h();function u(e,t,n){n||={};let r=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:o=!1}=l.checkPathsSync(e,t,`move`,n);return l.checkParentPathsSync(e,a,t,`move`),d(t)||s(i.dirname(t)),p(e,t,r,o)}function d(e){let t=i.dirname(e);return i.parse(t).root===t}function p(e,t,n,i){if(i)return m(e,t,n);if(n)return o(t),m(e,t,n);if(r.existsSync(t))throw Error(`dest already exists.`);return m(e,t,n)}function m(e,t,n){try{r.renameSync(e,t)}catch(r){if(r.code!==`EXDEV`)throw r;return g(e,t,n)}}function g(e,t,n){return a(e,t,{overwrite:n,errorOnExist:!0}),o(e)}t.exports=u})),L=t(((e,t)=>{let n=i().fromCallback;t.exports={move:n(F()),moveSync:I()}})),R=t(((e,t)=>{t.exports={...l(),...v(),...x(),...D(),...P(),...f(),...L(),...j(),...p(),...b()}})),z=e(R(),1);async function B(e,t){return z.default.ensureDirSync(r(e)),z.default.writeFile(e,JSON.stringify(t,null,2),{encoding:`utf8`})}export{R as n,B as t};
8
- //# sourceMappingURL=write-package-cxki9d3K.mjs.map
6
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,`Warning`,`fs-extra-WARN0002`);let{srcStat:r,destStat:i}=s.checkPathsSync(e,t,`copy`,n);return s.checkParentPathsSync(e,r,t,`copy`),u(i,e,t,n)}function u(e,t,n,o){if(o.filter&&!o.filter(t,n))return;let s=i.dirname(n);return r.existsSync(s)||a(s),p(e,t,n,o)}function d(e,t,n,r){if(!(r.filter&&!r.filter(t,n)))return p(e,t,n,r)}function p(e,t,n,i){let a=(i.dereference?r.statSync:r.lstatSync)(t);if(a.isDirectory())return w(a,e,t,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return g(a,e,t,n,i);if(a.isSymbolicLink())return O(e,t,n,i);throw a.isSocket()?Error(`Cannot copy a socket file: ${t}`):a.isFIFO()?Error(`Cannot copy a FIFO pipe: ${t}`):Error(`Unknown file: ${t}`)}function g(e,t,n,r,i){return t?_(e,n,r,i):v(e,n,r,i)}function _(e,t,n,i){if(i.overwrite)return r.unlinkSync(n),v(e,t,n,i);if(i.errorOnExist)throw Error(`'${n}' already exists`)}function v(e,t,n,i){return r.copyFileSync(t,n),i.preserveTimestamps&&y(e.mode,t,n),S(n,e.mode)}function y(e,t,n){return b(e)&&x(n,e),C(t,n)}function b(e){return!(e&128)}function x(e,t){return S(e,t|128)}function S(e,t){return r.chmodSync(e,t)}function C(e,t){let n=r.statSync(e);return o(t,n.atime,n.mtime)}function w(e,t,n,r,i){return t?E(n,r,i):T(e.mode,n,r,i)}function T(e,t,n,i){return r.mkdirSync(n),E(t,n,i),S(n,e)}function E(e,t,n){r.readdirSync(e).forEach(r=>D(r,e,t,n))}function D(e,t,n,r){let a=i.join(t,e),o=i.join(n,e),{destStat:c}=s.checkPathsSync(a,o,`copy`,r);return d(c,a,o,r)}function O(e,t,n,a){let o=r.readlinkSync(t);if(a.dereference&&(o=i.resolve(process.cwd(),o)),e){let e;try{e=r.readlinkSync(n)}catch(e){if(e.code===`EINVAL`||e.code===`UNKNOWN`)return r.symlinkSync(o,n);throw e}if(a.dereference&&(e=i.resolve(process.cwd(),e)),s.isSrcSubdir(o,e))throw Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(r.statSync(n).isDirectory()&&s.isSrcSubdir(e,o))throw Error(`Cannot overwrite '${e}' with '${o}'.`);return k(o,n)}return r.symlinkSync(o,n)}function k(e,t){return r.unlinkSync(t),r.symlinkSync(e,t)}n.exports=l})),v=e(((e,t)=>{let n=i().fromCallback;t.exports={copy:n(g()),copySync:_()}})),y=e(((e,n)=>{let r=c(),i=t(`path`),a=t(`assert`),o=process.platform===`win32`;function s(e){[`unlink`,`chmod`,`stat`,`lstat`,`rmdir`,`readdir`].forEach(t=>{e[t]=e[t]||r[t],t+=`Sync`,e[t]=e[t]||r[t]}),e.maxBusyTries=e.maxBusyTries||3}function l(e,t,n){let r=0;typeof t==`function`&&(n=t,t={}),a(e,`rimraf: missing path`),a.strictEqual(typeof e,`string`,`rimraf: path should be a string`),a.strictEqual(typeof n,`function`,`rimraf: callback function required`),a(t,`rimraf: invalid options argument provided`),a.strictEqual(typeof t,`object`,`rimraf: options should be object`),s(t),u(e,t,function i(a){if(a){if((a.code===`EBUSY`||a.code===`ENOTEMPTY`||a.code===`EPERM`)&&r<t.maxBusyTries){r++;let n=r*100;return setTimeout(()=>u(e,t,i),n)}a.code===`ENOENT`&&(a=null)}n(a)})}function u(e,t,n){a(e),a(t),a(typeof n==`function`),t.lstat(e,(r,i)=>{if(r&&r.code===`ENOENT`)return n(null);if(r&&r.code===`EPERM`&&o)return d(e,t,r,n);if(i&&i.isDirectory())return p(e,t,r,n);t.unlink(e,r=>{if(r){if(r.code===`ENOENT`)return n(null);if(r.code===`EPERM`)return o?d(e,t,r,n):p(e,t,r,n);if(r.code===`EISDIR`)return p(e,t,r,n)}return n(r)})})}function d(e,t,n,r){a(e),a(t),a(typeof r==`function`),t.chmod(e,438,i=>{i?r(i.code===`ENOENT`?null:n):t.stat(e,(i,a)=>{i?r(i.code===`ENOENT`?null:n):a.isDirectory()?p(e,t,n,r):t.unlink(e,r)})})}function f(e,t,n){let r;a(e),a(t);try{t.chmodSync(e,438)}catch(e){if(e.code===`ENOENT`)return;throw n}try{r=t.statSync(e)}catch(e){if(e.code===`ENOENT`)return;throw n}r.isDirectory()?g(e,t,n):t.unlinkSync(e)}function p(e,t,n,r){a(e),a(t),a(typeof r==`function`),t.rmdir(e,i=>{i&&(i.code===`ENOTEMPTY`||i.code===`EEXIST`||i.code===`EPERM`)?m(e,t,r):i&&i.code===`ENOTDIR`?r(n):r(i)})}function m(e,t,n){a(e),a(t),a(typeof n==`function`),t.readdir(e,(r,a)=>{if(r)return n(r);let o=a.length,s;if(o===0)return t.rmdir(e,n);a.forEach(r=>{l(i.join(e,r),t,r=>{if(!s){if(r)return n(s=r);--o===0&&t.rmdir(e,n)}})})})}function h(e,t){let n;t||={},s(t),a(e,`rimraf: missing path`),a.strictEqual(typeof e,`string`,`rimraf: path should be a string`),a(t,`rimraf: missing options`),a.strictEqual(typeof t,`object`,`rimraf: options should be object`);try{n=t.lstatSync(e)}catch(n){if(n.code===`ENOENT`)return;n.code===`EPERM`&&o&&f(e,t,n)}try{n&&n.isDirectory()?g(e,t,null):t.unlinkSync(e)}catch(n){if(n.code===`ENOENT`)return;if(n.code===`EPERM`)return o?f(e,t,n):g(e,t,n);if(n.code!==`EISDIR`)throw n;g(e,t,n)}}function g(e,t,n){a(e),a(t);try{t.rmdirSync(e)}catch(r){if(r.code===`ENOTDIR`)throw n;if(r.code===`ENOTEMPTY`||r.code===`EEXIST`||r.code===`EPERM`)_(e,t);else if(r.code!==`ENOENT`)throw r}}function _(e,t){if(a(e),a(t),t.readdirSync(e).forEach(n=>h(i.join(e,n),t)),o){let n=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-n<500)}else return t.rmdirSync(e,t)}n.exports=l,l.sync=h})),b=e(((e,t)=>{let n=c(),r=i().fromCallback,a=y();function o(e,t){if(n.rm)return n.rm(e,{recursive:!0,force:!0},t);a(e,t)}function s(e){if(n.rmSync)return n.rmSync(e,{recursive:!0,force:!0});a.sync(e)}t.exports={remove:r(o),removeSync:s}})),x=e(((e,n)=>{let r=i().fromPromise,a=l(),o=t(`path`),s=f(),c=b(),u=r(async function(e){let t;try{t=await a.readdir(e)}catch{return s.mkdirs(e)}return Promise.all(t.map(t=>c.remove(o.join(e,t))))});function d(e){let t;try{t=a.readdirSync(e)}catch{return s.mkdirsSync(e)}t.forEach(t=>{t=o.join(e,t),c.removeSync(t)})}n.exports={emptyDirSync:d,emptydirSync:d,emptyDir:u,emptydir:u}})),S=e(((e,n)=>{let r=i().fromCallback,a=t(`path`),o=c(),s=f();function l(e,t){function n(){o.writeFile(e,``,e=>{if(e)return t(e);t()})}o.stat(e,(r,i)=>{if(!r&&i.isFile())return t();let c=a.dirname(e);o.stat(c,(e,r)=>{if(e)return e.code===`ENOENT`?s.mkdirs(c,e=>{if(e)return t(e);n()}):t(e);r.isDirectory()?n():o.readdir(c,e=>{if(e)return t(e)})})})}function u(e){let t;try{t=o.statSync(e)}catch{}if(t&&t.isFile())return;let n=a.dirname(e);try{o.statSync(n).isDirectory()||o.readdirSync(n)}catch(e){if(e&&e.code===`ENOENT`)s.mkdirsSync(n);else throw e}o.writeFileSync(e,``)}n.exports={createFile:r(l),createFileSync:u}})),C=e(((e,n)=>{let r=i().fromCallback,a=t(`path`),o=c(),s=f(),l=p().pathExists,{areIdentical:u}=h();function d(e,t,n){function r(e,t){o.link(e,t,e=>{if(e)return n(e);n(null)})}o.lstat(t,(i,c)=>{o.lstat(e,(i,o)=>{if(i)return i.message=i.message.replace(`lstat`,`ensureLink`),n(i);if(c&&u(o,c))return n(null);let d=a.dirname(t);l(d,(i,a)=>{if(i)return n(i);if(a)return r(e,t);s.mkdirs(d,i=>{if(i)return n(i);r(e,t)})})})})}function m(e,t){let n;try{n=o.lstatSync(t)}catch{}try{let t=o.lstatSync(e);if(n&&u(t,n))return}catch(e){throw e.message=e.message.replace(`lstat`,`ensureLink`),e}let r=a.dirname(t);return o.existsSync(r)||s.mkdirsSync(r),o.linkSync(e,t)}n.exports={createLink:r(d),createLinkSync:m}})),w=e(((e,n)=>{let r=t(`path`),i=c(),a=p().pathExists;function o(e,t,n){if(r.isAbsolute(e))return i.lstat(e,t=>t?(t.message=t.message.replace(`lstat`,`ensureSymlink`),n(t)):n(null,{toCwd:e,toDst:e}));{let o=r.dirname(t),s=r.join(o,e);return a(s,(t,a)=>t?n(t):a?n(null,{toCwd:s,toDst:e}):i.lstat(e,t=>t?(t.message=t.message.replace(`lstat`,`ensureSymlink`),n(t)):n(null,{toCwd:e,toDst:r.relative(o,e)})))}}function s(e,t){let n;if(r.isAbsolute(e)){if(n=i.existsSync(e),!n)throw Error(`absolute srcpath does not exist`);return{toCwd:e,toDst:e}}{let a=r.dirname(t),o=r.join(a,e);if(n=i.existsSync(o),n)return{toCwd:o,toDst:e};if(n=i.existsSync(e),!n)throw Error(`relative srcpath does not exist`);return{toCwd:e,toDst:r.relative(a,e)}}}n.exports={symlinkPaths:o,symlinkPathsSync:s}})),T=e(((e,t)=>{let n=c();function r(e,t,r){if(r=typeof t==`function`?t:r,t=typeof t!=`function`&&t,t)return r(null,t);n.lstat(e,(e,n)=>{if(e)return r(null,`file`);t=n&&n.isDirectory()?`dir`:`file`,r(null,t)})}function i(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return`file`}return r&&r.isDirectory()?`dir`:`file`}t.exports={symlinkType:r,symlinkTypeSync:i}})),E=e(((e,n)=>{let r=i().fromCallback,a=t(`path`),o=l(),s=f(),c=s.mkdirs,u=s.mkdirsSync,d=w(),m=d.symlinkPaths,g=d.symlinkPathsSync,_=T(),v=_.symlinkType,y=_.symlinkTypeSync,b=p().pathExists,{areIdentical:x}=h();function S(e,t,n,r){r=typeof n==`function`?n:r,n=typeof n!=`function`&&n,o.lstat(t,(i,a)=>{!i&&a.isSymbolicLink()?Promise.all([o.stat(e),o.stat(t)]).then(([i,a])=>{if(x(i,a))return r(null);C(e,t,n,r)}):C(e,t,n,r)})}function C(e,t,n,r){m(e,t,(i,s)=>{if(i)return r(i);e=s.toDst,v(s.toCwd,n,(n,i)=>{if(n)return r(n);let s=a.dirname(t);b(s,(n,a)=>{if(n)return r(n);if(a)return o.symlink(e,t,i,r);c(s,n=>{if(n)return r(n);o.symlink(e,t,i,r)})})})})}function E(e,t,n){let r;try{r=o.lstatSync(t)}catch{}if(r&&r.isSymbolicLink()){let n=o.statSync(e),r=o.statSync(t);if(x(n,r))return}let i=g(e,t);e=i.toDst,n=y(i.toCwd,n);let s=a.dirname(t);return o.existsSync(s)||u(s),o.symlinkSync(e,t,n)}n.exports={createSymlink:r(S),createSymlinkSync:E}})),D=e(((e,t)=>{let{createFile:n,createFileSync:r}=S(),{createLink:i,createLinkSync:a}=C(),{createSymlink:o,createSymlinkSync:s}=E();t.exports={createFile:n,createFileSync:r,ensureFile:n,ensureFileSync:r,createLink:i,createLinkSync:a,ensureLink:i,ensureLinkSync:a,createSymlink:o,createSymlinkSync:s,ensureSymlink:o,ensureSymlinkSync:s}})),O=e(((e,t)=>{function n(e,{EOL:t=`
7
+ `,finalEOL:n=!0,replacer:r=null,spaces:i}={}){let a=n?t:``,o=JSON.stringify(e,r,i);if(o===void 0)throw TypeError(`Converting ${typeof e} value to JSON is not supported`);return o.replace(/\n/g,t)+a}function r(e){return Buffer.isBuffer(e)&&(e=e.toString(`utf8`)),e.replace(/^\uFEFF/,``)}t.exports={stringify:n,stripBom:r}})),k=e(((e,n)=>{let r;try{r=c()}catch{r=t(`fs`)}let a=i(),{stringify:o,stripBom:s}=O();async function l(e,t={}){typeof t==`string`&&(t={encoding:t});let n=t.fs||r,i=`throws`in t?t.throws:!0,o=await a.fromCallback(n.readFile)(e,t);o=s(o);let c;try{c=JSON.parse(o,t?t.reviver:null)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}return c}let u=a.fromPromise(l);function d(e,t={}){typeof t==`string`&&(t={encoding:t});let n=t.fs||r,i=`throws`in t?t.throws:!0;try{let r=n.readFileSync(e,t);return r=s(r),JSON.parse(r,t.reviver)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}}async function f(e,t,n={}){let i=n.fs||r,s=o(t,n);await a.fromCallback(i.writeFile)(e,s,n)}let p=a.fromPromise(f);function m(e,t,n={}){let i=n.fs||r,a=o(t,n);return i.writeFileSync(e,a,n)}n.exports={readFile:u,readFileSync:d,writeFile:p,writeFileSync:m}})),A=e(((e,t)=>{let n=k();t.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}})),j=e(((e,n)=>{let r=i().fromCallback,a=c(),o=t(`path`),s=f(),l=p().pathExists;function u(e,t,n,r){typeof n==`function`&&(r=n,n=`utf8`);let i=o.dirname(e);l(i,(o,c)=>{if(o)return r(o);if(c)return a.writeFile(e,t,n,r);s.mkdirs(i,i=>{if(i)return r(i);a.writeFile(e,t,n,r)})})}function d(e,...t){let n=o.dirname(e);if(a.existsSync(n))return a.writeFileSync(e,...t);s.mkdirsSync(n),a.writeFileSync(e,...t)}n.exports={outputFile:r(u),outputFileSync:d}})),M=e(((e,t)=>{let{stringify:n}=O(),{outputFile:r}=j();async function i(e,t,i={}){let a=n(t,i);await r(e,a,i)}t.exports=i})),N=e(((e,t)=>{let{stringify:n}=O(),{outputFileSync:r}=j();function i(e,t,i){let a=n(t,i);r(e,a,i)}t.exports=i})),P=e(((e,t)=>{let n=i().fromPromise,r=A();r.outputJson=n(M()),r.outputJsonSync=N(),r.outputJSON=r.outputJson,r.outputJSONSync=r.outputJsonSync,r.writeJSON=r.writeJson,r.writeJSONSync=r.writeJsonSync,r.readJSON=r.readJson,r.readJSONSync=r.readJsonSync,t.exports=r})),F=e(((e,n)=>{let r=c(),i=t(`path`),a=v().copy,o=b().remove,s=f().mkdirp,l=p().pathExists,u=h();function d(e,t,n,r){typeof n==`function`&&(r=n,n={}),n||={};let a=n.overwrite||n.clobber||!1;u.checkPaths(e,t,`move`,n,(n,o)=>{if(n)return r(n);let{srcStat:c,isChangingCase:l=!1}=o;u.checkParentPaths(e,c,t,`move`,n=>{if(n)return r(n);if(m(t))return g(e,t,a,l,r);s(i.dirname(t),n=>n?r(n):g(e,t,a,l,r))})})}function m(e){let t=i.dirname(e);return i.parse(t).root===t}function g(e,t,n,r,i){if(r)return _(e,t,n,i);if(n)return o(t,r=>r?i(r):_(e,t,n,i));l(t,(r,a)=>r?i(r):a?i(Error(`dest already exists.`)):_(e,t,n,i))}function _(e,t,n,i){r.rename(e,t,r=>r?r.code===`EXDEV`?y(e,t,n,i):i(r):i())}function y(e,t,n,r){a(e,t,{overwrite:n,errorOnExist:!0},t=>t?r(t):o(e,r))}n.exports=d})),I=e(((e,n)=>{let r=c(),i=t(`path`),a=v().copySync,o=b().removeSync,s=f().mkdirpSync,l=h();function u(e,t,n){n||={};let r=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:o=!1}=l.checkPathsSync(e,t,`move`,n);return l.checkParentPathsSync(e,a,t,`move`),d(t)||s(i.dirname(t)),p(e,t,r,o)}function d(e){let t=i.dirname(e);return i.parse(t).root===t}function p(e,t,n,i){if(i)return m(e,t,n);if(n)return o(t),m(e,t,n);if(r.existsSync(t))throw Error(`dest already exists.`);return m(e,t,n)}function m(e,t,n){try{r.renameSync(e,t)}catch(r){if(r.code!==`EXDEV`)throw r;return g(e,t,n)}}function g(e,t,n){return a(e,t,{overwrite:n,errorOnExist:!0}),o(e)}n.exports=u})),L=e(((e,t)=>{let n=i().fromCallback;t.exports={move:n(F()),moveSync:I()}})),R=e(((e,t)=>{t.exports={...l(),...v(),...x(),...D(),...P(),...f(),...L(),...j(),...p(),...b()}})),z=n(R(),1);async function B(e,t){return z.default.ensureDirSync(r(e)),z.default.writeFile(e,JSON.stringify(t,null,2),{encoding:`utf8`})}export{R as n,B as t};
8
+ //# sourceMappingURL=write-package-DiCHz3W9.mjs.map