@tachybase/module-backup 1.3.23 → 1.3.25

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.
@@ -1,4 +1,4 @@
1
- (function(){var e={3745:function(e,t,r){var n=r(7551);var i=r(6928);var a=r(6502);var s=r(7467);var o=r(2516);var u=r(5520);var l=r(4908);var c=e.exports={};var h=/[\/\\]/g;var processPatterns=function(e,t){var r=[];a(e).forEach((function(e){var n=e.indexOf("!")===0;if(n){e=e.slice(1)}var i=t(e);if(n){r=s(r,i)}else{r=o(r,i)}}));return r};c.exists=function(){var e=i.join.apply(i,arguments);return n.existsSync(e)};c.expand=function(...e){var t=u(e[0])?e.shift():{};var r=Array.isArray(e[0])?e[0]:e;if(r.length===0){return[]}var a=processPatterns(r,(function(e){return l.sync(e,t)}));if(t.filter){a=a.filter((function(e){e=i.join(t.cwd||"",e);try{if(typeof t.filter==="function"){return t.filter(e)}else{return n.statSync(e)[t.filter]()}}catch(e){return false}}))}return a};c.expandMapping=function(e,t,r){r=Object.assign({rename:function(e,t){return i.join(e||"",t)}},r);var n=[];var a={};c.expand(r,e).forEach((function(e){var s=e;if(r.flatten){s=i.basename(s)}if(r.ext){s=s.replace(/(\.[^\/]*)?$/,r.ext)}var o=r.rename(t,s,r);if(r.cwd){e=i.join(r.cwd,e)}o=o.replace(h,"/");e=e.replace(h,"/");if(a[o]){a[o].src.push(e)}else{n.push({src:[e],dest:o});a[o]=n[n.length-1]}}));return n};c.normalizeFilesArray=function(e){var t=[];e.forEach((function(e){var r;if("src"in e||"dest"in e){t.push(e)}}));if(t.length===0){return[]}t=_(t).chain().forEach((function(e){if(!("src"in e)||!e.src){return}if(Array.isArray(e.src)){e.src=a(e.src)}else{e.src=[e.src]}})).map((function(e){var t=Object.assign({},e);delete t.src;delete t.dest;if(e.expand){return c.expandMapping(e.src,e.dest,t).map((function(t){var r=Object.assign({},e);r.orig=Object.assign({},e);r.src=t.src;r.dest=t.dest;["expand","cwd","flatten","rename","ext"].forEach((function(e){delete r[e]}));return r}))}var r=Object.assign({},e);r.orig=Object.assign({},e);if("src"in r){Object.defineProperty(r,"src",{enumerable:true,get:function fn(){var r;if(!("result"in fn)){r=e.src;r=Array.isArray(r)?a(r):[r];fn.result=c.expand(t,r)}return fn.result}})}if("dest"in r){r.dest=e.dest}return r})).flatten().value();return t}},4587:function(e,t,r){var n=r(7551);var i=r(6928);var a=r(9023);var s=r(2186);var o=r(4527);var u=r(4242);var l=r(2203).Stream;var c=r(1397).PassThrough;var h=e.exports={};h.file=r(3745);function assertPath(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+nutils.inspect(e))}}h.collectStream=function(e,t){var r=[];var n=0;e.on("error",t);e.on("data",(function(e){r.push(e);n+=e.length}));e.on("end",(function(){var e=new Buffer(n);var i=0;r.forEach((function(t){t.copy(e,i);i+=t.length}));t(null,e)}))};h.dateify=function(e){e=e||new Date;if(e instanceof Date){e=e}else if(typeof e==="string"){e=new Date(e)}else{e=new Date}return e};h.defaults=function(e,t,r){var n=arguments;n[0]=n[0]||{};return u(...n)};h.isStream=function(e){return e instanceof l};h.lazyReadStream=function(e){return new s.Readable((function(){return n.createReadStream(e)}))};h.normalizeInputSource=function(e){if(e===null){return new Buffer(0)}else if(typeof e==="string"){return new Buffer(e)}else if(h.isStream(e)&&!e._readableState){var t=new c;e.pipe(t);return t}return e};h.sanitizePath=function(e){return o(e,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};h.trailingSlashIt=function(e){return e.slice(-1)!=="/"?e+"/":e};h.unixifyPath=function(e){return o(e,false).replace(/^\w+:/,"")};h.walkdir=function(e,t,r){var a=[];if(typeof t==="function"){r=t;t=e}n.readdir(e,(function(s,o){var u=0;var l;var c;if(s){return r(s)}(function next(){l=o[u++];if(!l){return r(null,a)}c=i.join(e,l);n.stat(c,(function(e,r){a.push({path:c,relative:i.relative(t,c).replace(/\\/g,"/"),stats:r});if(r&&r.isDirectory()){h.walkdir(c,t,(function(e,t){t.forEach((function(e){a.push(e)}));next()}))}else{next()}}))})()}))}},8145:function(e,t,r){var n=r(7551);var i=r(6928);var a=r(6502);var s=r(7467);var o=r(2516);var u=r(5520);var l=r(4908);var c=e.exports={};var h=/[\/\\]/g;var processPatterns=function(e,t){var r=[];a(e).forEach((function(e){var n=e.indexOf("!")===0;if(n){e=e.slice(1)}var i=t(e);if(n){r=s(r,i)}else{r=o(r,i)}}));return r};c.exists=function(){var e=i.join.apply(i,arguments);return n.existsSync(e)};c.expand=function(...e){var t=u(e[0])?e.shift():{};var r=Array.isArray(e[0])?e[0]:e;if(r.length===0){return[]}var a=processPatterns(r,(function(e){return l.sync(e,t)}));if(t.filter){a=a.filter((function(e){e=i.join(t.cwd||"",e);try{if(typeof t.filter==="function"){return t.filter(e)}else{return n.statSync(e)[t.filter]()}}catch(e){return false}}))}return a};c.expandMapping=function(e,t,r){r=Object.assign({rename:function(e,t){return i.join(e||"",t)}},r);var n=[];var a={};c.expand(r,e).forEach((function(e){var s=e;if(r.flatten){s=i.basename(s)}if(r.ext){s=s.replace(/(\.[^\/]*)?$/,r.ext)}var o=r.rename(t,s,r);if(r.cwd){e=i.join(r.cwd,e)}o=o.replace(h,"/");e=e.replace(h,"/");if(a[o]){a[o].src.push(e)}else{n.push({src:[e],dest:o});a[o]=n[n.length-1]}}));return n};c.normalizeFilesArray=function(e){var t=[];e.forEach((function(e){var r;if("src"in e||"dest"in e){t.push(e)}}));if(t.length===0){return[]}t=_(t).chain().forEach((function(e){if(!("src"in e)||!e.src){return}if(Array.isArray(e.src)){e.src=a(e.src)}else{e.src=[e.src]}})).map((function(e){var t=Object.assign({},e);delete t.src;delete t.dest;if(e.expand){return c.expandMapping(e.src,e.dest,t).map((function(t){var r=Object.assign({},e);r.orig=Object.assign({},e);r.src=t.src;r.dest=t.dest;["expand","cwd","flatten","rename","ext"].forEach((function(e){delete r[e]}));return r}))}var r=Object.assign({},e);r.orig=Object.assign({},e);if("src"in r){Object.defineProperty(r,"src",{enumerable:true,get:function fn(){var r;if(!("result"in fn)){r=e.src;r=Array.isArray(r)?a(r):[r];fn.result=c.expand(t,r)}return fn.result}})}if("dest"in r){r.dest=e.dest}return r})).flatten().value();return t}},7819:function(e,t,r){var n=r(7551);var i=r(6928);var a=r(2186);var s=r(4527);var o=r(4242);var u=r(2203).Stream;var l=r(1643).PassThrough;var c=e.exports={};c.file=r(8145);c.collectStream=function(e,t){var r=[];var n=0;e.on("error",t);e.on("data",(function(e){r.push(e);n+=e.length}));e.on("end",(function(){var e=Buffer.alloc(n);var i=0;r.forEach((function(t){t.copy(e,i);i+=t.length}));t(null,e)}))};c.dateify=function(e){e=e||new Date;if(e instanceof Date){e=e}else if(typeof e==="string"){e=new Date(e)}else{e=new Date}return e};c.defaults=function(e,t,r){var n=arguments;n[0]=n[0]||{};return o(...n)};c.isStream=function(e){return e instanceof u};c.lazyReadStream=function(e){return new a.Readable((function(){return n.createReadStream(e)}))};c.normalizeInputSource=function(e){if(e===null){return Buffer.alloc(0)}else if(typeof e==="string"){return Buffer.from(e)}else if(c.isStream(e)){return e.pipe(new l)}return e};c.sanitizePath=function(e){return s(e,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};c.trailingSlashIt=function(e){return e.slice(-1)!=="/"?e+"/":e};c.unixifyPath=function(e){return s(e,false).replace(/^\w+:/,"")};c.walkdir=function(e,t,r){var a=[];if(typeof t==="function"){r=t;t=e}n.readdir(e,(function(s,o){var u=0;var l;var h;if(s){return r(s)}(function next(){l=o[u++];if(!l){return r(null,a)}h=i.join(e,l);n.stat(h,(function(e,r){a.push({path:h,relative:i.relative(t,h).replace(/\\/g,"/"),stats:r});if(r&&r.isDirectory()){c.walkdir(h,t,(function(e,t){t.forEach((function(e){a.push(e)}));next()}))}else{next()}}))})()}))}},1538:function(e,t,r){
1
+ (function(){var e={6335:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=r(4343);class AbortSignal extends i.EventTarget{constructor(){super();throw new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const e=n.get(this);if(typeof e!=="boolean"){throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`)}return e}}i.defineEventAttribute(AbortSignal.prototype,"abort");function createAbortSignal(){const e=Object.create(AbortSignal.prototype);i.EventTarget.call(e);n.set(e,false);return e}function abortSignal(e){if(n.get(e)!==false){return}n.set(e,true);e.dispatchEvent({type:"abort"})}const n=new WeakMap;Object.defineProperties(AbortSignal.prototype,{aborted:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortSignal.prototype,Symbol.toStringTag,{configurable:true,value:"AbortSignal"})}class AbortController{constructor(){s.set(this,createAbortSignal())}get signal(){return getSignal(this)}abort(){abortSignal(getSignal(this))}}const s=new WeakMap;function getSignal(e){const t=s.get(e);if(t==null){throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${e===null?"null":typeof e}`)}return t}Object.defineProperties(AbortController.prototype,{signal:{enumerable:true},abort:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortController.prototype,Symbol.toStringTag,{configurable:true,value:"AbortController"})}t.AbortController=AbortController;t.AbortSignal=AbortSignal;t["default"]=AbortController;e.exports=AbortController;e.exports.AbortController=e.exports["default"]=AbortController;e.exports.AbortSignal=AbortSignal},81:function(e,t,r){var i=r(7551);var n=r(6928);var s=r(3281);var a=r(9176);var o=r(3124);var l=r(8600);var u=r(7751);var f=e.exports={};var c=/[\/\\]/g;var processPatterns=function(e,t){var r=[];s(e).forEach((function(e){var i=e.indexOf("!")===0;if(i){e=e.slice(1)}var n=t(e);if(i){r=a(r,n)}else{r=o(r,n)}}));return r};f.exists=function(){var e=n.join.apply(n,arguments);return i.existsSync(e)};f.expand=function(...e){var t=l(e[0])?e.shift():{};var r=Array.isArray(e[0])?e[0]:e;if(r.length===0){return[]}var s=processPatterns(r,(function(e){return u.sync(e,t)}));if(t.filter){s=s.filter((function(e){e=n.join(t.cwd||"",e);try{if(typeof t.filter==="function"){return t.filter(e)}else{return i.statSync(e)[t.filter]()}}catch(e){return false}}))}return s};f.expandMapping=function(e,t,r){r=Object.assign({rename:function(e,t){return n.join(e||"",t)}},r);var i=[];var s={};f.expand(r,e).forEach((function(e){var a=e;if(r.flatten){a=n.basename(a)}if(r.ext){a=a.replace(/(\.[^\/]*)?$/,r.ext)}var o=r.rename(t,a,r);if(r.cwd){e=n.join(r.cwd,e)}o=o.replace(c,"/");e=e.replace(c,"/");if(s[o]){s[o].src.push(e)}else{i.push({src:[e],dest:o});s[o]=i[i.length-1]}}));return i};f.normalizeFilesArray=function(e){var t=[];e.forEach((function(e){var r;if("src"in e||"dest"in e){t.push(e)}}));if(t.length===0){return[]}t=_(t).chain().forEach((function(e){if(!("src"in e)||!e.src){return}if(Array.isArray(e.src)){e.src=s(e.src)}else{e.src=[e.src]}})).map((function(e){var t=Object.assign({},e);delete t.src;delete t.dest;if(e.expand){return f.expandMapping(e.src,e.dest,t).map((function(t){var r=Object.assign({},e);r.orig=Object.assign({},e);r.src=t.src;r.dest=t.dest;["expand","cwd","flatten","rename","ext"].forEach((function(e){delete r[e]}));return r}))}var r=Object.assign({},e);r.orig=Object.assign({},e);if("src"in r){Object.defineProperty(r,"src",{enumerable:true,get:function fn(){var r;if(!("result"in fn)){r=e.src;r=Array.isArray(r)?s(r):[r];fn.result=f.expand(t,r)}return fn.result}})}if("dest"in r){r.dest=e.dest}return r})).flatten().value();return t}},4747:function(e,t,r){var i=r(7551);var n=r(6928);var s=r(3187);var a=r(2186);var o=r(4527);var l=r(8309);var u=r(2203).Stream;var f=r(8523).PassThrough;var c=e.exports={};c.file=r(81);c.collectStream=function(e,t){var r=[];var i=0;e.on("error",t);e.on("data",(function(e){r.push(e);i+=e.length}));e.on("end",(function(){var e=Buffer.alloc(i);var n=0;r.forEach((function(t){t.copy(e,n);n+=t.length}));t(null,e)}))};c.dateify=function(e){e=e||new Date;if(e instanceof Date){e=e}else if(typeof e==="string"){e=new Date(e)}else{e=new Date}return e};c.defaults=function(e,t,r){var i=arguments;i[0]=i[0]||{};return l(...i)};c.isStream=function(e){return s(e)};c.lazyReadStream=function(e){return new a.Readable((function(){return i.createReadStream(e)}))};c.normalizeInputSource=function(e){if(e===null){return Buffer.alloc(0)}else if(typeof e==="string"){return Buffer.from(e)}else if(c.isStream(e)){return e.pipe(new f)}return e};c.sanitizePath=function(e){return o(e,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};c.trailingSlashIt=function(e){return e.slice(-1)!=="/"?e+"/":e};c.unixifyPath=function(e){return o(e,false).replace(/^\w+:/,"")};c.walkdir=function(e,t,r){var s=[];if(typeof t==="function"){r=t;t=e}i.readdir(e,(function(a,o){var l=0;var u;var f;if(a){return r(a)}(function next(){u=o[l++];if(!u){return r(null,s)}f=n.join(e,u);i.stat(f,(function(e,i){s.push({path:f,relative:n.relative(t,f).replace(/\\/g,"/"),stats:i});if(i&&i.isDirectory()){c.walkdir(f,t,(function(e,t){if(e){return r(e)}t.forEach((function(e){s.push(e)}));next()}))}else{next()}}))})()}))}},2888:function(e,t,r){
2
2
  /**
3
3
  * Archiver Vending
4
4
  *
@@ -6,7 +6,7 @@
6
6
  * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
7
7
  * @copyright (c) 2012-2014 Chris Talkington, contributors.
8
8
  */
9
- var n=r(6379);var i={};var vending=function(e,t){return vending.create(e,t)};vending.create=function(e,t){if(i[e]){var r=new n(e,t);r.setFormat(e);r.setModule(new i[e](t));return r}else{throw new Error("create("+e+"): format not registered")}};vending.registerFormat=function(e,t){if(i[e]){throw new Error("register("+e+"): format already registered")}if(typeof t!=="function"){throw new Error("register("+e+"): format module invalid")}if(typeof t.prototype.append!=="function"||typeof t.prototype.finalize!=="function"){throw new Error("register("+e+"): format module missing methods")}i[e]=t};vending.isRegisteredFormat=function(e){if(i[e]){return true}return false};vending.registerFormat("zip",r(3598));vending.registerFormat("tar",r(9238));vending.registerFormat("json",r(1839));e.exports=vending},6379:function(e,t,r){
9
+ var i=r(4781);var n={};var vending=function(e,t){return vending.create(e,t)};vending.create=function(e,t){if(n[e]){var r=new i(e,t);r.setFormat(e);r.setModule(new n[e](t));return r}else{throw new Error("create("+e+"): format not registered")}};vending.registerFormat=function(e,t){if(n[e]){throw new Error("register("+e+"): format already registered")}if(typeof t!=="function"){throw new Error("register("+e+"): format module invalid")}if(typeof t.prototype.append!=="function"||typeof t.prototype.finalize!=="function"){throw new Error("register("+e+"): format module missing methods")}n[e]=t};vending.isRegisteredFormat=function(e){if(n[e]){return true}return false};vending.registerFormat("zip",r(3964));vending.registerFormat("tar",r(8628));vending.registerFormat("json",r(8957));e.exports=vending},4781:function(e,t,r){
10
10
  /**
11
11
  * Archiver Core
12
12
  *
@@ -14,7 +14,7 @@ var n=r(6379);var i={};var vending=function(e,t){return vending.create(e,t)};ven
14
14
  * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
15
15
  * @copyright (c) 2012-2014 Chris Talkington, contributors.
16
16
  */
17
- var n=r(9896);var i=r(8975);var a=r(4299);var s=r(6928);var o=r(4587);var u=r(9023).inherits;var l=r(9524);var c=r(1643).Transform;var h=process.platform==="win32";var Archiver=function(e,t){if(!(this instanceof Archiver)){return new Archiver(e,t)}if(typeof e!=="string"){t=e;e="zip"}t=this.options=o.defaults(t,{highWaterMark:1024*1024,statConcurrency:4});c.call(this,t);this._format=false;this._module=false;this._pending=0;this._pointer=0;this._entriesCount=0;this._entriesProcessedCount=0;this._fsEntriesTotalBytes=0;this._fsEntriesProcessedBytes=0;this._queue=a.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=a.queue(this._onStatQueueTask.bind(this),t.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};u(Archiver,c);Archiver.prototype._abort=function(){this._state.aborted=true;this._queue.kill();this._statQueue.kill();if(this._queue.idle()){this._shutdown()}};Archiver.prototype._append=function(e,t){t=t||{};var r={source:null,filepath:e};if(!t.name){t.name=e}t.sourcePath=e;r.data=t;this._entriesCount++;if(t.stats&&t.stats instanceof n.Stats){r=this._updateQueueTaskWithStats(r,t.stats);if(r){if(t.stats.size){this._fsEntriesTotalBytes+=t.stats.size}this._queue.push(r)}}else{this._statQueue.push(r)}};Archiver.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}this._state.finalizing=true;this._moduleFinalize();this._state.finalizing=false;this._state.finalized=true};Archiver.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return false}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize();return true}return false};Archiver.prototype._moduleAppend=function(e,t,r){if(this._state.aborted){r();return}this._module.append(e,t,function(e){this._task=null;if(this._state.aborted){this._shutdown();return}if(e){this.emit("error",e);setImmediate(r);return}this.emit("entry",t);this._entriesProcessedCount++;if(t.stats&&t.stats.size){this._fsEntriesProcessedBytes+=t.stats.size}this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}});setImmediate(r)}.bind(this))};Archiver.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function"){this._module.finalize()}else if(typeof this._module.end==="function"){this._module.end()}else{this.emit("error",new l("NOENDMETHOD"))}};Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this));this._module.pipe(this);this._state.modulePiped=true};Archiver.prototype._moduleSupports=function(e){if(!this._module.supports||!this._module.supports[e]){return false}return this._module.supports[e]};Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this);this._state.modulePiped=false};Archiver.prototype._normalizeEntryData=function(e,t){e=o.defaults(e,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(t&&e.stats===false){e.stats=t}var r=e.type==="directory";if(e.name){if(typeof e.prefix==="string"&&""!==e.prefix){e.name=e.prefix+"/"+e.name;e.prefix=null}e.name=o.sanitizePath(e.name);if(e.type!=="symlink"&&e.name.slice(-1)==="/"){r=true;e.type="directory"}else if(r){e.name+="/"}}if(typeof e.mode==="number"){if(h){e.mode&=511}else{e.mode&=4095}}else if(e.stats&&e.mode===null){if(h){e.mode=e.stats.mode&511}else{e.mode=e.stats.mode&4095}if(h&&r){e.mode=493}}else if(e.mode===null){e.mode=r?493:420}if(e.stats&&e.date===null){e.date=e.stats.mtime}else{e.date=o.dateify(e.date)}return e};Archiver.prototype._onModuleError=function(e){this.emit("error",e)};Archiver.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}};Archiver.prototype._onQueueTask=function(e,t){var fullCallback=()=>{if(e.data.callback){e.data.callback()}t()};if(this._state.finalizing||this._state.finalized||this._state.aborted){fullCallback();return}this._task=e;this._moduleAppend(e.source,e.data,fullCallback)};Archiver.prototype._onStatQueueTask=function(e,t){if(this._state.finalizing||this._state.finalized||this._state.aborted){t();return}n.lstat(e.filepath,function(r,n){if(this._state.aborted){setImmediate(t);return}if(r){this._entriesCount--;this.emit("warning",r);setImmediate(t);return}e=this._updateQueueTaskWithStats(e,n);if(e){if(n.size){this._fsEntriesTotalBytes+=n.size}this._queue.push(e)}setImmediate(t)}.bind(this))};Archiver.prototype._shutdown=function(){this._moduleUnpipe();this.end()};Archiver.prototype._transform=function(e,t,r){if(e){this._pointer+=e.length}r(null,e)};Archiver.prototype._updateQueueTaskWithStats=function(e,t){if(t.isFile()){e.data.type="file";e.data.sourceType="stream";e.source=o.lazyReadStream(e.filepath)}else if(t.isDirectory()&&this._moduleSupports("directory")){e.data.name=o.trailingSlashIt(e.data.name);e.data.type="directory";e.data.sourcePath=o.trailingSlashIt(e.filepath);e.data.sourceType="buffer";e.source=Buffer.concat([])}else if(t.isSymbolicLink()&&this._moduleSupports("symlink")){var r=n.readlinkSync(e.filepath);var i=s.dirname(e.filepath);e.data.type="symlink";e.data.linkname=s.relative(i,s.resolve(i,r));e.data.sourceType="buffer";e.source=Buffer.concat([])}else{if(t.isDirectory()){this.emit("warning",new l("DIRECTORYNOTSUPPORTED",e.data))}else if(t.isSymbolicLink()){this.emit("warning",new l("SYMLINKNOTSUPPORTED",e.data))}else{this.emit("warning",new l("ENTRYNOTSUPPORTED",e.data))}return null}e.data=this._normalizeEntryData(e.data,t);return e};Archiver.prototype.abort=function(){if(this._state.aborted||this._state.finalized){return this}this._abort();return this};Archiver.prototype.append=function(e,t){if(this._state.finalize||this._state.aborted){this.emit("error",new l("QUEUECLOSED"));return this}t=this._normalizeEntryData(t);if(typeof t.name!=="string"||t.name.length===0){this.emit("error",new l("ENTRYNAMEREQUIRED"));return this}if(t.type==="directory"&&!this._moduleSupports("directory")){this.emit("error",new l("DIRECTORYNOTSUPPORTED",{name:t.name}));return this}e=o.normalizeInputSource(e);if(Buffer.isBuffer(e)){t.sourceType="buffer"}else if(o.isStream(e)){t.sourceType="stream"}else{this.emit("error",new l("INPUTSTEAMBUFFERREQUIRED",{name:t.name}));return this}this._entriesCount++;this._queue.push({data:t,source:e});return this};Archiver.prototype.directory=function(e,t,r){if(this._state.finalize||this._state.aborted){this.emit("error",new l("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new l("DIRECTORYDIRPATHREQUIRED"));return this}this._pending++;if(t===false){t=""}else if(typeof t!=="string"){t=e}var n=false;if(typeof r==="function"){n=r;r={}}else if(typeof r!=="object"){r={}}var a={stat:true,dot:true};function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(e){this.emit("error",e)}function onGlobMatch(i){s.pause();var a=false;var o=Object.assign({},r);o.name=i.relative;o.prefix=t;o.stats=i.stat;o.callback=s.resume.bind(s);try{if(n){o=n(o);if(o===false){a=true}else if(typeof o!=="object"){throw new l("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:e})}}}catch(e){this.emit("error",e);return}if(a){s.resume();return}this._append(i.absolute,o)}var s=i(e,a);s.on("error",onGlobError.bind(this));s.on("match",onGlobMatch.bind(this));s.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.file=function(e,t){if(this._state.finalize||this._state.aborted){this.emit("error",new l("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new l("FILEFILEPATHREQUIRED"));return this}this._append(e,t);return this};Archiver.prototype.glob=function(e,t,r){this._pending++;t=o.defaults(t,{stat:true,pattern:e});function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(e){this.emit("error",e)}function onGlobMatch(e){n.pause();var t=Object.assign({},r);t.callback=n.resume.bind(n);t.stats=e.stat;t.name=e.relative;this._append(e.absolute,t)}var n=i(t.cwd||".",t);n.on("error",onGlobError.bind(this));n.on("match",onGlobMatch.bind(this));n.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.finalize=function(){if(this._state.aborted){var e=new l("ABORTED");this.emit("error",e);return Promise.reject(e)}if(this._state.finalize){var t=new l("FINALIZING");this.emit("error",t);return Promise.reject(t)}this._state.finalize=true;if(this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}var r=this;return new Promise((function(e,t){var n;r._module.on("end",(function(){if(!n){e()}}));r._module.on("error",(function(e){n=true;t(e)}))}))};Archiver.prototype.setFormat=function(e){if(this._format){this.emit("error",new l("FORMATSET"));return this}this._format=e;return this};Archiver.prototype.setModule=function(e){if(this._state.aborted){this.emit("error",new l("ABORTED"));return this}if(this._state.module){this.emit("error",new l("MODULESET"));return this}this._module=e;this._modulePipe();return this};Archiver.prototype.symlink=function(e,t,r){if(this._state.finalize||this._state.aborted){this.emit("error",new l("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new l("SYMLINKFILEPATHREQUIRED"));return this}if(typeof t!=="string"||t.length===0){this.emit("error",new l("SYMLINKTARGETREQUIRED",{filepath:e}));return this}if(!this._moduleSupports("symlink")){this.emit("error",new l("SYMLINKNOTSUPPORTED",{filepath:e}));return this}var n={};n.type="symlink";n.name=e.replace(/\\/g,"/");n.linkname=t.replace(/\\/g,"/");n.sourceType="buffer";if(typeof r==="number"){n.mode=r}this._entriesCount++;this._queue.push({data:n,source:Buffer.concat([])});return this};Archiver.prototype.pointer=function(){return this._pointer};Archiver.prototype.use=function(e){this._streams.push(e);return this};e.exports=Archiver},9524:function(e,t,r){
17
+ var i=r(9896);var n=r(8975);var s=r(5990);var a=r(6928);var o=r(4747);var l=r(9023).inherits;var u=r(6574);var f=r(8523).Transform;var c=process.platform==="win32";var Archiver=function(e,t){if(!(this instanceof Archiver)){return new Archiver(e,t)}if(typeof e!=="string"){t=e;e="zip"}t=this.options=o.defaults(t,{highWaterMark:1024*1024,statConcurrency:4});f.call(this,t);this._format=false;this._module=false;this._pending=0;this._pointer=0;this._entriesCount=0;this._entriesProcessedCount=0;this._fsEntriesTotalBytes=0;this._fsEntriesProcessedBytes=0;this._queue=s.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=s.queue(this._onStatQueueTask.bind(this),t.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};l(Archiver,f);Archiver.prototype._abort=function(){this._state.aborted=true;this._queue.kill();this._statQueue.kill();if(this._queue.idle()){this._shutdown()}};Archiver.prototype._append=function(e,t){t=t||{};var r={source:null,filepath:e};if(!t.name){t.name=e}t.sourcePath=e;r.data=t;this._entriesCount++;if(t.stats&&t.stats instanceof i.Stats){r=this._updateQueueTaskWithStats(r,t.stats);if(r){if(t.stats.size){this._fsEntriesTotalBytes+=t.stats.size}this._queue.push(r)}}else{this._statQueue.push(r)}};Archiver.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}this._state.finalizing=true;this._moduleFinalize();this._state.finalizing=false;this._state.finalized=true};Archiver.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return false}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize();return true}return false};Archiver.prototype._moduleAppend=function(e,t,r){if(this._state.aborted){r();return}this._module.append(e,t,function(e){this._task=null;if(this._state.aborted){this._shutdown();return}if(e){this.emit("error",e);setImmediate(r);return}this.emit("entry",t);this._entriesProcessedCount++;if(t.stats&&t.stats.size){this._fsEntriesProcessedBytes+=t.stats.size}this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}});setImmediate(r)}.bind(this))};Archiver.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function"){this._module.finalize()}else if(typeof this._module.end==="function"){this._module.end()}else{this.emit("error",new u("NOENDMETHOD"))}};Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this));this._module.pipe(this);this._state.modulePiped=true};Archiver.prototype._moduleSupports=function(e){if(!this._module.supports||!this._module.supports[e]){return false}return this._module.supports[e]};Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this);this._state.modulePiped=false};Archiver.prototype._normalizeEntryData=function(e,t){e=o.defaults(e,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(t&&e.stats===false){e.stats=t}var r=e.type==="directory";if(e.name){if(typeof e.prefix==="string"&&""!==e.prefix){e.name=e.prefix+"/"+e.name;e.prefix=null}e.name=o.sanitizePath(e.name);if(e.type!=="symlink"&&e.name.slice(-1)==="/"){r=true;e.type="directory"}else if(r){e.name+="/"}}if(typeof e.mode==="number"){if(c){e.mode&=511}else{e.mode&=4095}}else if(e.stats&&e.mode===null){if(c){e.mode=e.stats.mode&511}else{e.mode=e.stats.mode&4095}if(c&&r){e.mode=493}}else if(e.mode===null){e.mode=r?493:420}if(e.stats&&e.date===null){e.date=e.stats.mtime}else{e.date=o.dateify(e.date)}return e};Archiver.prototype._onModuleError=function(e){this.emit("error",e)};Archiver.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}};Archiver.prototype._onQueueTask=function(e,t){var fullCallback=()=>{if(e.data.callback){e.data.callback()}t()};if(this._state.finalizing||this._state.finalized||this._state.aborted){fullCallback();return}this._task=e;this._moduleAppend(e.source,e.data,fullCallback)};Archiver.prototype._onStatQueueTask=function(e,t){if(this._state.finalizing||this._state.finalized||this._state.aborted){t();return}i.lstat(e.filepath,function(r,i){if(this._state.aborted){setImmediate(t);return}if(r){this._entriesCount--;this.emit("warning",r);setImmediate(t);return}e=this._updateQueueTaskWithStats(e,i);if(e){if(i.size){this._fsEntriesTotalBytes+=i.size}this._queue.push(e)}setImmediate(t)}.bind(this))};Archiver.prototype._shutdown=function(){this._moduleUnpipe();this.end()};Archiver.prototype._transform=function(e,t,r){if(e){this._pointer+=e.length}r(null,e)};Archiver.prototype._updateQueueTaskWithStats=function(e,t){if(t.isFile()){e.data.type="file";e.data.sourceType="stream";e.source=o.lazyReadStream(e.filepath)}else if(t.isDirectory()&&this._moduleSupports("directory")){e.data.name=o.trailingSlashIt(e.data.name);e.data.type="directory";e.data.sourcePath=o.trailingSlashIt(e.filepath);e.data.sourceType="buffer";e.source=Buffer.concat([])}else if(t.isSymbolicLink()&&this._moduleSupports("symlink")){var r=i.readlinkSync(e.filepath);var n=a.dirname(e.filepath);e.data.type="symlink";e.data.linkname=a.relative(n,a.resolve(n,r));e.data.sourceType="buffer";e.source=Buffer.concat([])}else{if(t.isDirectory()){this.emit("warning",new u("DIRECTORYNOTSUPPORTED",e.data))}else if(t.isSymbolicLink()){this.emit("warning",new u("SYMLINKNOTSUPPORTED",e.data))}else{this.emit("warning",new u("ENTRYNOTSUPPORTED",e.data))}return null}e.data=this._normalizeEntryData(e.data,t);return e};Archiver.prototype.abort=function(){if(this._state.aborted||this._state.finalized){return this}this._abort();return this};Archiver.prototype.append=function(e,t){if(this._state.finalize||this._state.aborted){this.emit("error",new u("QUEUECLOSED"));return this}t=this._normalizeEntryData(t);if(typeof t.name!=="string"||t.name.length===0){this.emit("error",new u("ENTRYNAMEREQUIRED"));return this}if(t.type==="directory"&&!this._moduleSupports("directory")){this.emit("error",new u("DIRECTORYNOTSUPPORTED",{name:t.name}));return this}e=o.normalizeInputSource(e);if(Buffer.isBuffer(e)){t.sourceType="buffer"}else if(o.isStream(e)){t.sourceType="stream"}else{this.emit("error",new u("INPUTSTEAMBUFFERREQUIRED",{name:t.name}));return this}this._entriesCount++;this._queue.push({data:t,source:e});return this};Archiver.prototype.directory=function(e,t,r){if(this._state.finalize||this._state.aborted){this.emit("error",new u("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new u("DIRECTORYDIRPATHREQUIRED"));return this}this._pending++;if(t===false){t=""}else if(typeof t!=="string"){t=e}var i=false;if(typeof r==="function"){i=r;r={}}else if(typeof r!=="object"){r={}}var s={stat:true,dot:true};function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(e){this.emit("error",e)}function onGlobMatch(n){a.pause();var s=false;var o=Object.assign({},r);o.name=n.relative;o.prefix=t;o.stats=n.stat;o.callback=a.resume.bind(a);try{if(i){o=i(o);if(o===false){s=true}else if(typeof o!=="object"){throw new u("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:e})}}}catch(e){this.emit("error",e);return}if(s){a.resume();return}this._append(n.absolute,o)}var a=n(e,s);a.on("error",onGlobError.bind(this));a.on("match",onGlobMatch.bind(this));a.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.file=function(e,t){if(this._state.finalize||this._state.aborted){this.emit("error",new u("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new u("FILEFILEPATHREQUIRED"));return this}this._append(e,t);return this};Archiver.prototype.glob=function(e,t,r){this._pending++;t=o.defaults(t,{stat:true,pattern:e});function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(e){this.emit("error",e)}function onGlobMatch(e){i.pause();var t=Object.assign({},r);t.callback=i.resume.bind(i);t.stats=e.stat;t.name=e.relative;this._append(e.absolute,t)}var i=n(t.cwd||".",t);i.on("error",onGlobError.bind(this));i.on("match",onGlobMatch.bind(this));i.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.finalize=function(){if(this._state.aborted){var e=new u("ABORTED");this.emit("error",e);return Promise.reject(e)}if(this._state.finalize){var t=new u("FINALIZING");this.emit("error",t);return Promise.reject(t)}this._state.finalize=true;if(this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}var r=this;return new Promise((function(e,t){var i;r._module.on("end",(function(){if(!i){e()}}));r._module.on("error",(function(e){i=true;t(e)}))}))};Archiver.prototype.setFormat=function(e){if(this._format){this.emit("error",new u("FORMATSET"));return this}this._format=e;return this};Archiver.prototype.setModule=function(e){if(this._state.aborted){this.emit("error",new u("ABORTED"));return this}if(this._state.module){this.emit("error",new u("MODULESET"));return this}this._module=e;this._modulePipe();return this};Archiver.prototype.symlink=function(e,t,r){if(this._state.finalize||this._state.aborted){this.emit("error",new u("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new u("SYMLINKFILEPATHREQUIRED"));return this}if(typeof t!=="string"||t.length===0){this.emit("error",new u("SYMLINKTARGETREQUIRED",{filepath:e}));return this}if(!this._moduleSupports("symlink")){this.emit("error",new u("SYMLINKNOTSUPPORTED",{filepath:e}));return this}var i={};i.type="symlink";i.name=e.replace(/\\/g,"/");i.linkname=t.replace(/\\/g,"/");i.sourceType="buffer";if(typeof r==="number"){i.mode=r}this._entriesCount++;this._queue.push({data:i,source:Buffer.concat([])});return this};Archiver.prototype.pointer=function(){return this._pointer};Archiver.prototype.use=function(e){this._streams.push(e);return this};e.exports=Archiver},6574:function(e,t,r){
18
18
  /**
19
19
  * Archiver Core
20
20
  *
@@ -22,7 +22,7 @@ var n=r(9896);var i=r(8975);var a=r(4299);var s=r(6928);var o=r(4587);var u=r(90
22
22
  * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
23
23
  * @copyright (c) 2012-2014 Chris Talkington, contributors.
24
24
  */
25
- var n=r(9023);const i={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function ArchiverError(e,t){Error.captureStackTrace(this,this.constructor);this.message=i[e]||e;this.code=e;this.data=t}n.inherits(ArchiverError,Error);t=e.exports=ArchiverError},1839:function(e,t,r){
25
+ var i=r(9023);const n={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function ArchiverError(e,t){Error.captureStackTrace(this,this.constructor);this.message=n[e]||e;this.code=e;this.data=t}i.inherits(ArchiverError,Error);t=e.exports=ArchiverError},8957:function(e,t,r){
26
26
  /**
27
27
  * JSON Format Plugin
28
28
  *
@@ -30,7 +30,7 @@ var n=r(9023);const i={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"d
30
30
  * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
31
31
  * @copyright (c) 2012-2014 Chris Talkington, contributors.
32
32
  */
33
- var n=r(9023).inherits;var i=r(1643).Transform;var a=r(7064);var s=r(4587);var Json=function(e){if(!(this instanceof Json)){return new Json(e)}e=this.options=s.defaults(e,{});i.call(this,e);this.supports={directory:true,symlink:true};this.files=[]};n(Json,i);Json.prototype._transform=function(e,t,r){r(null,e)};Json.prototype._writeStringified=function(){var e=JSON.stringify(this.files);this.write(e)};Json.prototype.append=function(e,t,r){var n=this;t.crc32=0;function onend(e,i){if(e){r(e);return}t.size=i.length||0;t.crc32=a.unsigned(i);n.files.push(t);r(null,t)}if(t.sourceType==="buffer"){onend(null,e)}else if(t.sourceType==="stream"){s.collectStream(e,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};e.exports=Json},9238:function(e,t,r){
33
+ var i=r(9023).inherits;var n=r(8523).Transform;var s=r(7965);var a=r(4747);var Json=function(e){if(!(this instanceof Json)){return new Json(e)}e=this.options=a.defaults(e,{});n.call(this,e);this.supports={directory:true,symlink:true};this.files=[]};i(Json,n);Json.prototype._transform=function(e,t,r){r(null,e)};Json.prototype._writeStringified=function(){var e=JSON.stringify(this.files);this.write(e)};Json.prototype.append=function(e,t,r){var i=this;t.crc32=0;function onend(e,n){if(e){r(e);return}t.size=n.length||0;t.crc32=s.unsigned(n);i.files.push(t);r(null,t)}if(t.sourceType==="buffer"){onend(null,e)}else if(t.sourceType==="stream"){a.collectStream(e,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};e.exports=Json},8628:function(e,t,r){
34
34
  /**
35
35
  * TAR Format Plugin
36
36
  *
@@ -38,7 +38,7 @@ var n=r(9023).inherits;var i=r(1643).Transform;var a=r(7064);var s=r(4587);var J
38
38
  * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
39
39
  * @copyright (c) 2012-2014 Chris Talkington, contributors.
40
40
  */
41
- var n=r(3106);var i=r(2454);var a=r(4587);var Tar=function(e){if(!(this instanceof Tar)){return new Tar(e)}e=this.options=a.defaults(e,{gzip:false});if(typeof e.gzipOptions!=="object"){e.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=i.pack(e);this.compressor=false;if(e.gzip){this.compressor=n.createGzip(e.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};Tar.prototype._onCompressorError=function(e){this.engine.emit("error",e)};Tar.prototype.append=function(e,t,r){var n=this;t.mtime=t.date;function append(e,i){if(e){r(e);return}n.engine.entry(t,i,(function(e){r(e,t)}))}if(t.sourceType==="buffer"){append(null,e)}else if(t.sourceType==="stream"&&t.stats){t.size=t.stats.size;var i=n.engine.entry(t,(function(e){r(e,t)}));e.pipe(i)}else if(t.sourceType==="stream"){a.collectStream(e,append)}};Tar.prototype.finalize=function(){this.engine.finalize()};Tar.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tar.prototype.pipe=function(e,t){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(e,t)}else{return this.engine.pipe.apply(this.engine,arguments)}};Tar.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};e.exports=Tar},3598:function(e,t,r){
41
+ var i=r(3106);var n=r(2753);var s=r(4747);var Tar=function(e){if(!(this instanceof Tar)){return new Tar(e)}e=this.options=s.defaults(e,{gzip:false});if(typeof e.gzipOptions!=="object"){e.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=n.pack(e);this.compressor=false;if(e.gzip){this.compressor=i.createGzip(e.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};Tar.prototype._onCompressorError=function(e){this.engine.emit("error",e)};Tar.prototype.append=function(e,t,r){var i=this;t.mtime=t.date;function append(e,n){if(e){r(e);return}i.engine.entry(t,n,(function(e){r(e,t)}))}if(t.sourceType==="buffer"){append(null,e)}else if(t.sourceType==="stream"&&t.stats){t.size=t.stats.size;var n=i.engine.entry(t,(function(e){r(e,t)}));e.pipe(n)}else if(t.sourceType==="stream"){s.collectStream(e,append)}};Tar.prototype.finalize=function(){this.engine.finalize()};Tar.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tar.prototype.pipe=function(e,t){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(e,t)}else{return this.engine.pipe.apply(this.engine,arguments)}};Tar.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};e.exports=Tar},3964:function(e,t,r){
42
42
  /**
43
43
  * ZIP Format Plugin
44
44
  *
@@ -46,18 +46,23 @@ var n=r(3106);var i=r(2454);var a=r(4587);var Tar=function(e){if(!(this instance
46
46
  * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
47
47
  * @copyright (c) 2012-2014 Chris Talkington, contributors.
48
48
  */
49
- var n=r(3974);var i=r(4587);var Zip=function(e){if(!(this instanceof Zip)){return new Zip(e)}e=this.options=i.defaults(e,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new n(e)};Zip.prototype.append=function(e,t,r){this.engine.entry(e,t,r)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};e.exports=Zip},4299:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";function apply(e,...t){return(...r)=>e(...t,...r)}function initialParams(e){return function(...t){var r=t.pop();return e.call(this,t,r)}}var t=typeof queueMicrotask==="function"&&queueMicrotask;var r=typeof setImmediate==="function"&&setImmediate;var n=typeof process==="object"&&typeof process.nextTick==="function";function fallback(e){setTimeout(e,0)}function wrap(e){return(t,...r)=>e((()=>t(...r)))}var i;if(t){i=queueMicrotask}else if(r){i=setImmediate}else if(n){i=process.nextTick}else{i=fallback}var a=wrap(i);function asyncify(e){if(isAsync(e)){return function(...t){const r=t.pop();const n=e.apply(this,t);return handlePromise(n,r)}}return initialParams((function(t,r){var n;try{n=e.apply(this,t)}catch(e){return r(e)}if(n&&typeof n.then==="function"){return handlePromise(n,r)}else{r(null,n)}}))}function handlePromise(e,t){return e.then((e=>{invokeCallback(t,null,e)}),(e=>{invokeCallback(t,e&&(e instanceof Error||e.message)?e:new Error(e))}))}function invokeCallback(e,t,r){try{e(t,r)}catch(e){a((e=>{throw e}),e)}}function isAsync(e){return e[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(e){return e[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(e){return typeof e[Symbol.asyncIterator]==="function"}function wrapAsync(e){if(typeof e!=="function")throw new Error("expected a function");return isAsync(e)?asyncify(e):e}function awaitify(e,t){if(!t)t=e.length;if(!t)throw new Error("arity is undefined");function awaitable(...r){if(typeof r[t-1]==="function"){return e.apply(this,r)}return new Promise(((n,i)=>{r[t-1]=(e,...t)=>{if(e)return i(e);n(t.length>1?t:t[0])};e.apply(this,r)}))}return awaitable}function applyEach$1(e){return function applyEach(t,...r){const n=awaitify((function(n){var i=this;return e(t,((e,t)=>{wrapAsync(e).apply(i,r.concat(t))}),n)}));return n}}function _asyncMap(e,t,r,n){t=t||[];var i=[];var a=0;var s=wrapAsync(r);return e(t,((e,t,r)=>{var n=a++;s(e,((e,t)=>{i[n]=t;r(e)}))}),(e=>{n(e,i)}))}function isArrayLike(e){return e&&typeof e.length==="number"&&e.length>=0&&e.length%1===0}const s={};var o=s;function once(e){function wrapper(...t){if(e===null)return;var r=e;e=null;r.apply(this,t)}Object.assign(wrapper,e);return wrapper}function getIterator(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}function createArrayIterator(e){var t=-1;var r=e.length;return function next(){return++t<r?{value:e[t],key:t}:null}}function createES2015Iterator(e){var t=-1;return function next(){var r=e.next();if(r.done)return null;t++;return{value:r.value,key:t}}}function createObjectIterator(e){var t=e?Object.keys(e):[];var r=-1;var n=t.length;return function next(){var i=t[++r];if(i==="__proto__"){return next()}return r<n?{value:e[i],key:i}:null}}function createIterator(e){if(isArrayLike(e)){return createArrayIterator(e)}var t=getIterator(e);return t?createES2015Iterator(t):createObjectIterator(e)}function onlyOnce(e){return function(...t){if(e===null)throw new Error("Callback was already called.");var r=e;e=null;r.apply(this,t)}}function asyncEachOfLimit(e,t,r,n){let i=false;let a=false;let s=false;let u=0;let l=0;function replenish(){if(u>=t||s||i)return;s=true;e.next().then((({value:e,done:t})=>{if(a||i)return;s=false;if(t){i=true;if(u<=0){n(null)}return}u++;r(e,l,iterateeCallback);l++;replenish()})).catch(handleError)}function iterateeCallback(e,t){u-=1;if(a)return;if(e)return handleError(e);if(e===false){i=true;a=true;return}if(t===o||i&&u<=0){i=true;return n(null)}replenish()}function handleError(e){if(a)return;s=false;i=true;n(e)}replenish()}var eachOfLimit$2=e=>(t,r,n)=>{n=once(n);if(e<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!t){return n(null)}if(isAsyncGenerator(t)){return asyncEachOfLimit(t,e,r,n)}if(isAsyncIterable(t)){return asyncEachOfLimit(t[Symbol.asyncIterator](),e,r,n)}var i=createIterator(t);var a=false;var s=false;var u=0;var l=false;function iterateeCallback(e,t){if(s)return;u-=1;if(e){a=true;n(e)}else if(e===false){a=true;s=true}else if(t===o||a&&u<=0){a=true;return n(null)}else if(!l){replenish()}}function replenish(){l=true;while(u<e&&!a){var t=i();if(t===null){a=true;if(u<=0){n(null)}return}u+=1;r(t.value,t.key,onlyOnce(iterateeCallback))}l=false}replenish()};function eachOfLimit(e,t,r,n){return eachOfLimit$2(t)(e,wrapAsync(r),n)}var u=awaitify(eachOfLimit,4);function eachOfArrayLike(e,t,r){r=once(r);var n=0,i=0,{length:a}=e,s=false;if(a===0){r(null)}function iteratorCallback(e,t){if(e===false){s=true}if(s===true)return;if(e){r(e)}else if(++i===a||t===o){r(null)}}for(;n<a;n++){t(e[n],n,onlyOnce(iteratorCallback))}}function eachOfGeneric(e,t,r){return u(e,Infinity,t,r)}function eachOf(e,t,r){var n=isArrayLike(e)?eachOfArrayLike:eachOfGeneric;return n(e,wrapAsync(t),r)}var l=awaitify(eachOf,3);function map(e,t,r){return _asyncMap(l,e,t,r)}var c=awaitify(map,3);var h=applyEach$1(c);function eachOfSeries(e,t,r){return u(e,1,t,r)}var p=awaitify(eachOfSeries,3);function mapSeries(e,t,r){return _asyncMap(p,e,t,r)}var d=awaitify(mapSeries,3);var y=applyEach$1(d);const g=Symbol("promiseCallback");function promiseCallback(){let e,t;function callback(r,...n){if(r)return t(r);e(n.length>1?n:n[0])}callback[g]=new Promise(((r,n)=>{e=r,t=n}));return callback}function auto(e,t,r){if(typeof t!=="number"){r=t;t=null}r=once(r||promiseCallback());var n=Object.keys(e).length;if(!n){return r(null)}if(!t){t=n}var i={};var a=0;var s=false;var o=false;var u=Object.create(null);var l=[];var c=[];var h={};Object.keys(e).forEach((t=>{var r=e[t];if(!Array.isArray(r)){enqueueTask(t,[r]);c.push(t);return}var n=r.slice(0,r.length-1);var i=n.length;if(i===0){enqueueTask(t,r);c.push(t);return}h[t]=i;n.forEach((a=>{if(!e[a]){throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+a+"` in "+n.join(", "))}addListener(a,(()=>{i--;if(i===0){enqueueTask(t,r)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(e,t){l.push((()=>runTask(e,t)))}function processQueue(){if(s)return;if(l.length===0&&a===0){return r(null,i)}while(l.length&&a<t){var e=l.shift();e()}}function addListener(e,t){var r=u[e];if(!r){r=u[e]=[]}r.push(t)}function taskComplete(e){var t=u[e]||[];t.forEach((e=>e()));processQueue()}function runTask(e,t){if(o)return;var n=onlyOnce(((t,...n)=>{a--;if(t===false){s=true;return}if(n.length<2){[n]=n}if(t){var l={};Object.keys(i).forEach((e=>{l[e]=i[e]}));l[e]=n;o=true;u=Object.create(null);if(s)return;r(t,l)}else{i[e]=n;taskComplete(e)}}));a++;var l=wrapAsync(t[t.length-1]);if(t.length>1){l(i,n)}else{l(n)}}function checkForDeadlocks(){var e;var t=0;while(c.length){e=c.pop();t++;getDependents(e).forEach((e=>{if(--h[e]===0){c.push(e)}}))}if(t!==n){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(t){var r=[];Object.keys(e).forEach((n=>{const i=e[n];if(Array.isArray(i)&&i.indexOf(t)>=0){r.push(n)}}));return r}return r[g]}var v=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/;var b=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/;var _=/,/;var w=/(=.+)?(\s*)$/;function stripComments(e){let t="";let r=0;let n=e.indexOf("*/");while(r<e.length){if(e[r]==="/"&&e[r+1]==="/"){let t=e.indexOf("\n",r);r=t===-1?e.length:t}else if(n!==-1&&e[r]==="/"&&e[r+1]==="*"){let i=e.indexOf("*/",r);if(i!==-1){r=i+2;n=e.indexOf("*/",r)}else{t+=e[r];r++}}else{t+=e[r];r++}}return t}function parseParams(e){const t=stripComments(e.toString());let r=t.match(v);if(!r){r=t.match(b)}if(!r)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,n]=r;return n.replace(/\s/g,"").split(_).map((e=>e.replace(w,"").trim()))}function autoInject(e,t){var r={};Object.keys(e).forEach((t=>{var n=e[t];var i;var a=isAsync(n);var s=!a&&n.length===1||a&&n.length===0;if(Array.isArray(n)){i=[...n];n=i.pop();r[t]=i.concat(i.length>0?newTask:n)}else if(s){r[t]=n}else{i=parseParams(n);if(n.length===0&&!a&&i.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!a)i.pop();r[t]=i.concat(newTask)}function newTask(e,t){var r=i.map((t=>e[t]));r.push(t);wrapAsync(n)(...r)}}));return auto(r,t)}class DLL{constructor(){this.head=this.tail=null;this.length=0}removeLink(e){if(e.prev)e.prev.next=e.next;else this.head=e.next;if(e.next)e.next.prev=e.prev;else this.tail=e.prev;e.prev=e.next=null;this.length-=1;return e}empty(){while(this.head)this.shift();return this}insertAfter(e,t){t.prev=e;t.next=e.next;if(e.next)e.next.prev=t;else this.tail=t;e.next=t;this.length+=1}insertBefore(e,t){t.prev=e.prev;t.next=e;if(e.prev)e.prev.next=t;else this.head=t;e.prev=t;this.length+=1}unshift(e){if(this.head)this.insertBefore(this.head,e);else setInitial(this,e)}push(e){if(this.tail)this.insertAfter(this.tail,e);else setInitial(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var e=this.head;while(e){yield e.data;e=e.next}}remove(e){var t=this.head;while(t){var{next:r}=t;if(e(t)){this.removeLink(t)}t=r}return this}}function setInitial(e,t){e.length=1;e.head=e.tail=t}function queue$1(e,t,r){if(t==null){t=1}else if(t===0){throw new RangeError("Concurrency must not be zero")}var n=wrapAsync(e);var i=0;var s=[];const o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function on(e,t){o[e].push(t)}function once(e,t){const handleAndRemove=(...r)=>{off(e,handleAndRemove);t(...r)};o[e].push(handleAndRemove)}function off(e,t){if(!e)return Object.keys(o).forEach((e=>o[e]=[]));if(!t)return o[e]=[];o[e]=o[e].filter((e=>e!==t))}function trigger(e,...t){o[e].forEach((e=>e(...t)))}var u=false;function _insert(e,t,r,n){if(n!=null&&typeof n!=="function"){throw new Error("task callback must be a function")}c.started=true;var i,s;function promiseCallback(e,...t){if(e)return r?s(e):i();if(t.length<=1)return i(t[0]);i(t)}var o=c._createTaskItem(e,r?promiseCallback:n||promiseCallback);if(t){c._tasks.unshift(o)}else{c._tasks.push(o)}if(!u){u=true;a((()=>{u=false;c.process()}))}if(r||!n){return new Promise(((e,t)=>{i=e;s=t}))}}function _createCB(e){return function(t,...r){i-=1;for(var n=0,a=e.length;n<a;n++){var o=e[n];var u=s.indexOf(o);if(u===0){s.shift()}else if(u>0){s.splice(u,1)}o.callback(t,...r);if(t!=null){trigger("error",t,o.data)}}if(i<=c.concurrency-c.buffer){trigger("unsaturated")}if(c.idle()){trigger("drain")}c.process()}}function _maybeDrain(e){if(e.length===0&&c.idle()){a((()=>trigger("drain")));return true}return false}const eventMethod=e=>t=>{if(!t){return new Promise(((t,r)=>{once(e,((e,n)=>{if(e)return r(e);t(n)}))}))}off(e);on(e,t)};var l=false;var c={_tasks:new DLL,_createTaskItem(e,t){return{data:e,callback:t}},*[Symbol.iterator](){yield*c._tasks[Symbol.iterator]()},concurrency:t,payload:r,buffer:t/4,started:false,paused:false,push(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,false,false,t)))}return _insert(e,false,false,t)},pushAsync(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,false,true,t)))}return _insert(e,false,true,t)},kill(){off();c._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,true,false,t)))}return _insert(e,true,false,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,true,true,t)))}return _insert(e,true,true,t)},remove(e){c._tasks.remove(e)},process(){if(l){return}l=true;while(!c.paused&&i<c.concurrency&&c._tasks.length){var e=[],t=[];var r=c._tasks.length;if(c.payload)r=Math.min(r,c.payload);for(var a=0;a<r;a++){var o=c._tasks.shift();e.push(o);s.push(o);t.push(o.data)}i+=1;if(c._tasks.length===0){trigger("empty")}if(i===c.concurrency){trigger("saturated")}var u=onlyOnce(_createCB(e));n(t,u)}l=false},length(){return c._tasks.length},running(){return i},workersList(){return s},idle(){return c._tasks.length+i===0},pause(){c.paused=true},resume(){if(c.paused===false){return}c.paused=false;a(c.process)}};Object.defineProperties(c,{saturated:{writable:false,value:eventMethod("saturated")},unsaturated:{writable:false,value:eventMethod("unsaturated")},empty:{writable:false,value:eventMethod("empty")},drain:{writable:false,value:eventMethod("drain")},error:{writable:false,value:eventMethod("error")}});return c}function cargo$1(e,t){return queue$1(e,1,t)}function cargo(e,t,r){return queue$1(e,t,r)}function reduce(e,t,r,n){n=once(n);var i=wrapAsync(r);return p(e,((e,r,n)=>{i(t,e,((e,r)=>{t=r;n(e)}))}),(e=>n(e,t)))}var S=awaitify(reduce,4);function seq(...e){var t=e.map(wrapAsync);return function(...e){var r=this;var n=e[e.length-1];if(typeof n=="function"){e.pop()}else{n=promiseCallback()}S(t,e,((e,t,n)=>{t.apply(r,e.concat(((e,...t)=>{n(e,t)})))}),((e,t)=>n(e,...t)));return n[g]}}function compose(...e){return seq(...e.reverse())}function mapLimit(e,t,r,n){return _asyncMap(eachOfLimit$2(t),e,r,n)}var E=awaitify(mapLimit,4);function concatLimit(e,t,r,n){var i=wrapAsync(r);return E(e,t,((e,t)=>{i(e,((e,...r)=>{if(e)return t(e);return t(e,r)}))}),((e,t)=>{var r=[];for(var i=0;i<t.length;i++){if(t[i]){r=r.concat(...t[i])}}return n(e,r)}))}var k=awaitify(concatLimit,4);function concat(e,t,r){return k(e,Infinity,t,r)}var O=awaitify(concat,3);function concatSeries(e,t,r){return k(e,1,t,r)}var x=awaitify(concatSeries,3);function constant$1(...e){return function(...t){var r=t.pop();return r(null,...e)}}function _createTester(e,t){return(r,n,i,a)=>{var s=false;var u;const l=wrapAsync(i);r(n,((r,n,i)=>{l(r,((n,a)=>{if(n||n===false)return i(n);if(e(a)&&!u){s=true;u=t(true,r);return i(null,o)}i()}))}),(e=>{if(e)return a(e);a(null,s?u:t(false))}))}}function detect(e,t,r){return _createTester((e=>e),((e,t)=>t))(l,e,t,r)}var R=awaitify(detect,3);function detectLimit(e,t,r,n){return _createTester((e=>e),((e,t)=>t))(eachOfLimit$2(t),e,r,n)}var T=awaitify(detectLimit,4);function detectSeries(e,t,r){return _createTester((e=>e),((e,t)=>t))(eachOfLimit$2(1),e,t,r)}var L=awaitify(detectSeries,3);function consoleFunc(e){return(t,...r)=>wrapAsync(t)(...r,((t,...r)=>{if(typeof console==="object"){if(t){if(console.error){console.error(t)}}else if(console[e]){r.forEach((t=>console[e](t)))}}}))}var A=consoleFunc("dir");function doWhilst(e,t,r){r=onlyOnce(r);var n=wrapAsync(e);var i=wrapAsync(t);var a;function next(e,...t){if(e)return r(e);if(e===false)return;a=t;i(...t,check)}function check(e,t){if(e)return r(e);if(e===false)return;if(!t)return r(null,...a);n(next)}return check(null,true)}var C=awaitify(doWhilst,3);function doUntil(e,t,r){const n=wrapAsync(t);return C(e,((...e)=>{const t=e.pop();n(...e,((e,r)=>t(e,!r)))}),r)}function _withoutIndex(e){return(t,r,n)=>e(t,n)}function eachLimit$2(e,t,r){return l(e,_withoutIndex(wrapAsync(t)),r)}var I=awaitify(eachLimit$2,3);function eachLimit(e,t,r,n){return eachOfLimit$2(t)(e,_withoutIndex(wrapAsync(r)),n)}var M=awaitify(eachLimit,4);function eachSeries(e,t,r){return M(e,1,t,r)}var j=awaitify(eachSeries,3);function ensureAsync(e){if(isAsync(e))return e;return function(...t){var r=t.pop();var n=true;t.push(((...e)=>{if(n){a((()=>r(...e)))}else{r(...e)}}));e.apply(this,t);n=false}}function every(e,t,r){return _createTester((e=>!e),(e=>!e))(l,e,t,r)}var D=awaitify(every,3);function everyLimit(e,t,r,n){return _createTester((e=>!e),(e=>!e))(eachOfLimit$2(t),e,r,n)}var B=awaitify(everyLimit,4);function everySeries(e,t,r){return _createTester((e=>!e),(e=>!e))(p,e,t,r)}var P=awaitify(everySeries,3);function filterArray(e,t,r,n){var i=new Array(t.length);e(t,((e,t,n)=>{r(e,((e,r)=>{i[t]=!!r;n(e)}))}),(e=>{if(e)return n(e);var r=[];for(var a=0;a<t.length;a++){if(i[a])r.push(t[a])}n(null,r)}))}function filterGeneric(e,t,r,n){var i=[];e(t,((e,t,n)=>{r(e,((r,a)=>{if(r)return n(r);if(a){i.push({index:t,value:e})}n(r)}))}),(e=>{if(e)return n(e);n(null,i.sort(((e,t)=>e.index-t.index)).map((e=>e.value)))}))}function _filter(e,t,r,n){var i=isArrayLike(t)?filterArray:filterGeneric;return i(e,t,wrapAsync(r),n)}function filter(e,t,r){return _filter(l,e,t,r)}var N=awaitify(filter,3);function filterLimit(e,t,r,n){return _filter(eachOfLimit$2(t),e,r,n)}var F=awaitify(filterLimit,4);function filterSeries(e,t,r){return _filter(p,e,t,r)}var W=awaitify(filterSeries,3);function forever(e,t){var r=onlyOnce(t);var n=wrapAsync(ensureAsync(e));function next(e){if(e)return r(e);if(e===false)return;n(next)}return next()}var z=awaitify(forever,2);function groupByLimit(e,t,r,n){var i=wrapAsync(r);return E(e,t,((e,t)=>{i(e,((r,n)=>{if(r)return t(r);return t(r,{key:n,val:e})}))}),((e,t)=>{var r={};var{hasOwnProperty:i}=Object.prototype;for(var a=0;a<t.length;a++){if(t[a]){var{key:s}=t[a];var{val:o}=t[a];if(i.call(r,s)){r[s].push(o)}else{r[s]=[o]}}}return n(e,r)}))}var G=awaitify(groupByLimit,4);function groupBy(e,t,r){return G(e,Infinity,t,r)}function groupBySeries(e,t,r){return G(e,1,t,r)}var U=consoleFunc("log");function mapValuesLimit(e,t,r,n){n=once(n);var i={};var a=wrapAsync(r);return eachOfLimit$2(t)(e,((e,t,r)=>{a(e,t,((e,n)=>{if(e)return r(e);i[t]=n;r(e)}))}),(e=>n(e,i)))}var q=awaitify(mapValuesLimit,4);function mapValues(e,t,r){return q(e,Infinity,t,r)}function mapValuesSeries(e,t,r){return q(e,1,t,r)}function memoize(e,t=e=>e){var r=Object.create(null);var n=Object.create(null);var i=wrapAsync(e);var s=initialParams(((e,s)=>{var o=t(...e);if(o in r){a((()=>s(null,...r[o])))}else if(o in n){n[o].push(s)}else{n[o]=[s];i(...e,((e,...t)=>{if(!e){r[o]=t}var i=n[o];delete n[o];for(var a=0,s=i.length;a<s;a++){i[a](e,...t)}}))}}));s.memo=r;s.unmemoized=e;return s}var H;if(n){H=process.nextTick}else if(r){H=setImmediate}else{H=fallback}var $=wrap(H);var Z=awaitify(((e,t,r)=>{var n=isArrayLike(t)?[]:{};e(t,((e,t,r)=>{wrapAsync(e)(((e,...i)=>{if(i.length<2){[i]=i}n[t]=i;r(e)}))}),(e=>r(e,n)))}),3);function parallel(e,t){return Z(l,e,t)}function parallelLimit(e,t,r){return Z(eachOfLimit$2(t),e,r)}function queue(e,t){var r=wrapAsync(e);return queue$1(((e,t)=>{r(e[0],t)}),t,1)}class Heap{constructor(){this.heap=[];this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){this.heap=[];return this}percUp(e){let t;while(e>0&&smaller(this.heap[e],this.heap[t=parent(e)])){let r=this.heap[e];this.heap[e]=this.heap[t];this.heap[t]=r;e=t}}percDown(e){let t;while((t=leftChi(e))<this.heap.length){if(t+1<this.heap.length&&smaller(this.heap[t+1],this.heap[t])){t=t+1}if(smaller(this.heap[e],this.heap[t])){break}let r=this.heap[e];this.heap[e]=this.heap[t];this.heap[t]=r;e=t}}push(e){e.pushCount=++this.pushCount;this.heap.push(e);this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;this.heap[0]=this.heap[this.heap.length-1];this.heap.pop();this.percDown(0);return e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++){yield this.heap[e].data}}remove(e){let t=0;for(let r=0;r<this.heap.length;r++){if(!e(this.heap[r])){this.heap[t]=this.heap[r];t++}}this.heap.splice(t);for(let e=parent(this.heap.length-1);e>=0;e--){this.percDown(e)}return this}}function leftChi(e){return(e<<1)+1}function parent(e){return(e+1>>1)-1}function smaller(e,t){if(e.priority!==t.priority){return e.priority<t.priority}else{return e.pushCount<t.pushCount}}function priorityQueue(e,t){var r=queue(e,t);var{push:n,pushAsync:i}=r;r._tasks=new Heap;r._createTaskItem=({data:e,priority:t},r)=>({data:e,priority:t,callback:r});function createDataItems(e,t){if(!Array.isArray(e)){return{data:e,priority:t}}return e.map((e=>({data:e,priority:t})))}r.push=function(e,t=0,r){return n(createDataItems(e,t),r)};r.pushAsync=function(e,t=0,r){return i(createDataItems(e,t),r)};delete r.unshift;delete r.unshiftAsync;return r}function race(e,t){t=once(t);if(!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var r=0,n=e.length;r<n;r++){wrapAsync(e[r])(t)}}var Q=awaitify(race,2);function reduceRight(e,t,r,n){var i=[...e].reverse();return S(i,t,r,n)}function reflect(e){var t=wrapAsync(e);return initialParams((function reflectOn(e,r){e.push(((e,...t)=>{let n={};if(e){n.error=e}if(t.length>0){var i=t;if(t.length<=1){[i]=t}n.value=i}r(null,n)}));return t.apply(this,e)}))}function reflectAll(e){var t;if(Array.isArray(e)){t=e.map(reflect)}else{t={};Object.keys(e).forEach((r=>{t[r]=reflect.call(this,e[r])}))}return t}function reject$2(e,t,r,n){const i=wrapAsync(r);return _filter(e,t,((e,t)=>{i(e,((e,r)=>{t(e,!r)}))}),n)}function reject(e,t,r){return reject$2(l,e,t,r)}var V=awaitify(reject,3);function rejectLimit(e,t,r,n){return reject$2(eachOfLimit$2(t),e,r,n)}var K=awaitify(rejectLimit,4);function rejectSeries(e,t,r){return reject$2(p,e,t,r)}var Y=awaitify(rejectSeries,3);function constant(e){return function(){return e}}const X=5;const J=0;function retry(e,t,r){var n={times:X,intervalFunc:constant(J)};if(arguments.length<3&&typeof e==="function"){r=t||promiseCallback();t=e}else{parseTimes(n,e);r=r||promiseCallback()}if(typeof t!=="function"){throw new Error("Invalid arguments for async.retry")}var i=wrapAsync(t);var a=1;function retryAttempt(){i(((e,...t)=>{if(e===false)return;if(e&&a++<n.times&&(typeof n.errorFilter!="function"||n.errorFilter(e))){setTimeout(retryAttempt,n.intervalFunc(a-1))}else{r(e,...t)}}))}retryAttempt();return r[g]}function parseTimes(e,t){if(typeof t==="object"){e.times=+t.times||X;e.intervalFunc=typeof t.interval==="function"?t.interval:constant(+t.interval||J);e.errorFilter=t.errorFilter}else if(typeof t==="number"||typeof t==="string"){e.times=+t||X}else{throw new Error("Invalid arguments for async.retry")}}function retryable(e,t){if(!t){t=e;e=null}let r=e&&e.arity||t.length;if(isAsync(t)){r+=1}var n=wrapAsync(t);return initialParams(((t,i)=>{if(t.length<r-1||i==null){t.push(i);i=promiseCallback()}function taskFn(e){n(...t,e)}if(e)retry(e,taskFn,i);else retry(taskFn,i);return i[g]}))}function series(e,t){return Z(p,e,t)}function some(e,t,r){return _createTester(Boolean,(e=>e))(l,e,t,r)}var ee=awaitify(some,3);function someLimit(e,t,r,n){return _createTester(Boolean,(e=>e))(eachOfLimit$2(t),e,r,n)}var te=awaitify(someLimit,4);function someSeries(e,t,r){return _createTester(Boolean,(e=>e))(p,e,t,r)}var re=awaitify(someSeries,3);function sortBy(e,t,r){var n=wrapAsync(t);return c(e,((e,t)=>{n(e,((r,n)=>{if(r)return t(r);t(r,{value:e,criteria:n})}))}),((e,t)=>{if(e)return r(e);r(null,t.sort(comparator).map((e=>e.value)))}));function comparator(e,t){var r=e.criteria,n=t.criteria;return r<n?-1:r>n?1:0}}var ne=awaitify(sortBy,3);function timeout(e,t,r){var n=wrapAsync(e);return initialParams(((i,a)=>{var s=false;var o;function timeoutCallback(){var t=e.name||"anonymous";var n=new Error('Callback function "'+t+'" timed out.');n.code="ETIMEDOUT";if(r){n.info=r}s=true;a(n)}i.push(((...e)=>{if(!s){a(...e);clearTimeout(o)}}));o=setTimeout(timeoutCallback,t);n(...i)}))}function range(e){var t=Array(e);while(e--){t[e]=e}return t}function timesLimit(e,t,r,n){var i=wrapAsync(r);return E(range(e),t,i,n)}function times(e,t,r){return timesLimit(e,Infinity,t,r)}function timesSeries(e,t,r){return timesLimit(e,1,t,r)}function transform(e,t,r,n){if(arguments.length<=3&&typeof t==="function"){n=r;r=t;t=Array.isArray(e)?[]:{}}n=once(n||promiseCallback());var i=wrapAsync(r);l(e,((e,r,n)=>{i(t,e,r,n)}),(e=>n(e,t)));return n[g]}function tryEach(e,t){var r=null;var n;return j(e,((e,t)=>{wrapAsync(e)(((e,...i)=>{if(e===false)return t(e);if(i.length<2){[n]=i}else{n=i}r=e;t(e?null:{})}))}),(()=>t(r,n)))}var ie=awaitify(tryEach);function unmemoize(e){return(...t)=>(e.unmemoized||e)(...t)}function whilst(e,t,r){r=onlyOnce(r);var n=wrapAsync(t);var i=wrapAsync(e);var a=[];function next(e,...t){if(e)return r(e);a=t;if(e===false)return;i(check)}function check(e,t){if(e)return r(e);if(e===false)return;if(!t)return r(null,...a);n(next)}return i(check)}var ae=awaitify(whilst,3);function until(e,t,r){const n=wrapAsync(e);return ae((e=>n(((t,r)=>e(t,!r)))),t,r)}function waterfall(e,t){t=once(t);if(!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var r=0;function nextTask(t){var n=wrapAsync(e[r++]);n(...t,onlyOnce(next))}function next(n,...i){if(n===false)return;if(n||r===e.length){return t(n,...i)}nextTask(i)}nextTask([])}var se=awaitify(waterfall);var oe={apply:apply,applyEach:h,applyEachSeries:y,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo$1,cargoQueue:cargo,compose:compose,concat:O,concatLimit:k,concatSeries:x,constant:constant$1,detect:R,detectLimit:T,detectSeries:L,dir:A,doUntil:doUntil,doWhilst:C,each:I,eachLimit:M,eachOf:l,eachOfLimit:u,eachOfSeries:p,eachSeries:j,ensureAsync:ensureAsync,every:D,everyLimit:B,everySeries:P,filter:N,filterLimit:F,filterSeries:W,forever:z,groupBy:groupBy,groupByLimit:G,groupBySeries:groupBySeries,log:U,map:c,mapLimit:E,mapSeries:d,mapValues:mapValues,mapValuesLimit:q,mapValuesSeries:mapValuesSeries,memoize:memoize,nextTick:$,parallel:parallel,parallelLimit:parallelLimit,priorityQueue:priorityQueue,queue:queue,race:Q,reduce:S,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:V,rejectLimit:K,rejectSeries:Y,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:a,some:ee,someLimit:te,someSeries:re,sortBy:ne,timeout:timeout,times:times,timesLimit:timesLimit,timesSeries:timesSeries,transform:transform,tryEach:ie,unmemoize:unmemoize,until:until,waterfall:se,whilst:ae,all:D,allLimit:B,allSeries:P,any:ee,anyLimit:te,anySeries:re,find:R,findLimit:T,findSeries:L,flatMap:O,flatMapLimit:k,flatMapSeries:x,forEach:I,forEachSeries:j,forEachLimit:M,forEachOf:l,forEachOfSeries:p,forEachOfLimit:u,inject:S,foldl:S,foldr:reduceRight,select:N,selectLimit:F,selectSeries:W,wrapSync:asyncify,during:ae,doDuring:C};e.all=D;e.allLimit=B;e.allSeries=P;e.any=ee;e.anyLimit=te;e.anySeries=re;e.apply=apply;e.applyEach=h;e.applyEachSeries=y;e.asyncify=asyncify;e.auto=auto;e.autoInject=autoInject;e.cargo=cargo$1;e.cargoQueue=cargo;e.compose=compose;e.concat=O;e.concatLimit=k;e.concatSeries=x;e.constant=constant$1;e.default=oe;e.detect=R;e.detectLimit=T;e.detectSeries=L;e.dir=A;e.doDuring=C;e.doUntil=doUntil;e.doWhilst=C;e.during=ae;e.each=I;e.eachLimit=M;e.eachOf=l;e.eachOfLimit=u;e.eachOfSeries=p;e.eachSeries=j;e.ensureAsync=ensureAsync;e.every=D;e.everyLimit=B;e.everySeries=P;e.filter=N;e.filterLimit=F;e.filterSeries=W;e.find=R;e.findLimit=T;e.findSeries=L;e.flatMap=O;e.flatMapLimit=k;e.flatMapSeries=x;e.foldl=S;e.foldr=reduceRight;e.forEach=I;e.forEachLimit=M;e.forEachOf=l;e.forEachOfLimit=u;e.forEachOfSeries=p;e.forEachSeries=j;e.forever=z;e.groupBy=groupBy;e.groupByLimit=G;e.groupBySeries=groupBySeries;e.inject=S;e.log=U;e.map=c;e.mapLimit=E;e.mapSeries=d;e.mapValues=mapValues;e.mapValuesLimit=q;e.mapValuesSeries=mapValuesSeries;e.memoize=memoize;e.nextTick=$;e.parallel=parallel;e.parallelLimit=parallelLimit;e.priorityQueue=priorityQueue;e.queue=queue;e.race=Q;e.reduce=S;e.reduceRight=reduceRight;e.reflect=reflect;e.reflectAll=reflectAll;e.reject=V;e.rejectLimit=K;e.rejectSeries=Y;e.retry=retry;e.retryable=retryable;e.select=N;e.selectLimit=F;e.selectSeries=W;e.seq=seq;e.series=series;e.setImmediate=a;e.some=ee;e.someLimit=te;e.someSeries=re;e.sortBy=ne;e.timeout=timeout;e.times=times;e.timesLimit=timesLimit;e.timesSeries=timesSeries;e.transform=transform;e.tryEach=ie;e.unmemoize=unmemoize;e.until=until;e.waterfall=se;e.whilst=ae;e.wrapSync=asyncify;Object.defineProperty(e,"__esModule",{value:true})}))},127:function(e){"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,i,a,s,o;var u=r.indexOf(e);var l=r.indexOf(t,u+1);var c=u;if(u>=0&&l>0){if(e===t){return[u,l]}n=[];a=r.length;while(c>=0&&!o){if(c==u){n.push(c);u=r.indexOf(e,c+1)}else if(n.length==1){o=[n.pop(),l]}else{i=n.pop();if(i<a){a=i;s=l}l=r.indexOf(t,c+1)}c=u<l&&u>=0?u:l}if(n.length){o=[a,s]}}return o}},6411:function(e,t,r){"use strict";const{Buffer:n}=r(181);const i=Symbol.for("BufferList");function BufferList(e){if(!(this instanceof BufferList)){return new BufferList(e)}BufferList._init.call(this,e)}BufferList._init=function _init(e){Object.defineProperty(this,i,{value:true});this._bufs=[];this.length=0;if(e){this.append(e)}};BufferList.prototype._new=function _new(e){return new BufferList(e)};BufferList.prototype._offset=function _offset(e){if(e===0){return[0,0]}let t=0;for(let r=0;r<this._bufs.length;r++){const n=t+this._bufs[r].length;if(e<n||r===this._bufs.length-1){return[r,e-t]}t=n}};BufferList.prototype._reverseOffset=function(e){const t=e[0];let r=e[1];for(let e=0;e<t;e++){r+=this._bufs[e].length}return r};BufferList.prototype.get=function get(e){if(e>this.length||e<0){return undefined}const t=this._offset(e);return this._bufs[t[0]][t[1]]};BufferList.prototype.slice=function slice(e,t){if(typeof e==="number"&&e<0){e+=this.length}if(typeof t==="number"&&t<0){t+=this.length}return this.copy(null,0,e,t)};BufferList.prototype.copy=function copy(e,t,r,i){if(typeof r!=="number"||r<0){r=0}if(typeof i!=="number"||i>this.length){i=this.length}if(r>=this.length){return e||n.alloc(0)}if(i<=0){return e||n.alloc(0)}const copy=!!e;const a=this._offset(r);const s=i-r;let o=s;let u=copy&&t||0;let l=a[1];if(r===0&&i===this.length){if(!copy){return this._bufs.length===1?this._bufs[0]:n.concat(this._bufs,this.length)}for(let t=0;t<this._bufs.length;t++){this._bufs[t].copy(e,u);u+=this._bufs[t].length}return e}if(o<=this._bufs[a[0]].length-l){return copy?this._bufs[a[0]].copy(e,t,l,l+o):this._bufs[a[0]].slice(l,l+o)}if(!copy){e=n.allocUnsafe(s)}for(let t=a[0];t<this._bufs.length;t++){const r=this._bufs[t].length-l;if(o>r){this._bufs[t].copy(e,u,l);u+=r}else{this._bufs[t].copy(e,u,l,l+o);u+=r;break}o-=r;if(l){l=0}}if(e.length>u)return e.slice(0,u);return e};BufferList.prototype.shallowSlice=function shallowSlice(e,t){e=e||0;t=typeof t!=="number"?this.length:t;if(e<0){e+=this.length}if(t<0){t+=this.length}if(e===t){return this._new()}const r=this._offset(e);const n=this._offset(t);const i=this._bufs.slice(r[0],n[0]+1);if(n[1]===0){i.pop()}else{i[i.length-1]=i[i.length-1].slice(0,n[1])}if(r[1]!==0){i[0]=i[0].slice(r[1])}return this._new(i)};BufferList.prototype.toString=function toString(e,t,r){return this.slice(t,r).toString(e)};BufferList.prototype.consume=function consume(e){e=Math.trunc(e);if(Number.isNaN(e)||e<=0)return this;while(this._bufs.length){if(e>=this._bufs[0].length){e-=this._bufs[0].length;this.length-=this._bufs[0].length;this._bufs.shift()}else{this._bufs[0]=this._bufs[0].slice(e);this.length-=e;break}}return this};BufferList.prototype.duplicate=function duplicate(){const e=this._new();for(let t=0;t<this._bufs.length;t++){e.append(this._bufs[t])}return e};BufferList.prototype.append=function append(e){if(e==null){return this}if(e.buffer){this._appendBuffer(n.from(e.buffer,e.byteOffset,e.byteLength))}else if(Array.isArray(e)){for(let t=0;t<e.length;t++){this.append(e[t])}}else if(this._isBufferList(e)){for(let t=0;t<e._bufs.length;t++){this.append(e._bufs[t])}}else{if(typeof e==="number"){e=e.toString()}this._appendBuffer(n.from(e))}return this};BufferList.prototype._appendBuffer=function appendBuffer(e){this._bufs.push(e);this.length+=e.length};BufferList.prototype.indexOf=function(e,t,r){if(r===undefined&&typeof t==="string"){r=t;t=undefined}if(typeof e==="function"||Array.isArray(e)){throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.')}else if(typeof e==="number"){e=n.from([e])}else if(typeof e==="string"){e=n.from(e,r)}else if(this._isBufferList(e)){e=e.slice()}else if(Array.isArray(e.buffer)){e=n.from(e.buffer,e.byteOffset,e.byteLength)}else if(!n.isBuffer(e)){e=n.from(e)}t=Number(t||0);if(isNaN(t)){t=0}if(t<0){t=this.length+t}if(t<0){t=0}if(e.length===0){return t>this.length?this.length:t}const i=this._offset(t);let a=i[0];let s=i[1];for(;a<this._bufs.length;a++){const t=this._bufs[a];while(s<t.length){const r=t.length-s;if(r>=e.length){const r=t.indexOf(e,s);if(r!==-1){return this._reverseOffset([a,r])}s=t.length-e.length+1}else{const t=this._reverseOffset([a,s]);if(this._match(t,e)){return t}s++}}s=0}return-1};BufferList.prototype._match=function(e,t){if(this.length-e<t.length){return false}for(let r=0;r<t.length;r++){if(this.get(e+r)!==t[r]){return false}}return true};(function(){const e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(const t in e){(function(t){if(e[t]===null){BufferList.prototype[t]=function(e,r){return this.slice(e,e+r)[t](0,r)}}else{BufferList.prototype[t]=function(r=0){return this.slice(r,r+e[t])[t](0)}}})(t)}})();BufferList.prototype._isBufferList=function _isBufferList(e){return e instanceof BufferList||BufferList.isBufferList(e)};BufferList.isBufferList=function isBufferList(e){return e!=null&&e[i]};e.exports=BufferList},739:function(e,t,r){"use strict";const n=r(1643).Duplex;const i=r(4070);const a=r(6411);function BufferListStream(e){if(!(this instanceof BufferListStream)){return new BufferListStream(e)}if(typeof e==="function"){this._callback=e;const t=function piper(e){if(this._callback){this._callback(e);this._callback=null}}.bind(this);this.on("pipe",(function onPipe(e){e.on("error",t)}));this.on("unpipe",(function onUnpipe(e){e.removeListener("error",t)}));e=null}a._init.call(this,e);n.call(this)}i(BufferListStream,n);Object.assign(BufferListStream.prototype,a.prototype);BufferListStream.prototype._new=function _new(e){return new BufferListStream(e)};BufferListStream.prototype._write=function _write(e,t,r){this._appendBuffer(e);if(typeof r==="function"){r()}};BufferListStream.prototype._read=function _read(e){if(!this.length){return this.push(null)}e=Math.min(e,this.length);this.push(this.slice(0,e));this.consume(e)};BufferListStream.prototype.end=function end(e){n.prototype.end.call(this,e);if(this._callback){this._callback(null,this.slice());this._callback=null}};BufferListStream.prototype._destroy=function _destroy(e,t){this._bufs.length=0;this.length=0;t(e)};BufferListStream.prototype._isBufferList=function _isBufferList(e){return e instanceof BufferListStream||e instanceof a||BufferListStream.isBufferList(e)};BufferListStream.isBufferList=a.isBufferList;e.exports=BufferListStream;e.exports.BufferListStream=BufferListStream;e.exports.BufferList=a},5612:function(e,t,r){var n=r(8401);var i=r(127);e.exports=expandTop;var a="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var u="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(a).split("\\{").join(s).split("\\}").join(o).split("\\,").join(u).split("\\.").join(l)}function unescapeBraces(e){return e.split(a).join("\\").split(s).join("{").split(o).join("}").split(u).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var n=r.pre;var a=r.body;var s=r.post;var o=n.split(",");o[o.length-1]+="{"+a+"}";var u=parseCommaParts(s);if(s.length){o[o.length-1]+=u.shift();o.push.apply(o,u)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var a=i("{","}",e);if(!a||/\$$/.test(a.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var l=s||u;var c=a.body.indexOf(",")>=0;if(!l&&!c){if(a.post.match(/,.*\}/)){e=a.pre+"{"+a.body+o+a.post;return expand(e)}return[e]}var h;if(l){h=a.body.split(/\.\./)}else{h=parseCommaParts(a.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var p=a.post.length?expand(a.post,false):[""];return p.map((function(e){return a.pre+h[0]+e}))}}}var d=a.pre;var p=a.post.length?expand(a.post,false):[""];var y;if(l){var g=numeric(h[0]);var v=numeric(h[1]);var b=Math.max(h[0].length,h[1].length);var _=h.length==3?Math.abs(numeric(h[2])):1;var w=lte;var S=v<g;if(S){_*=-1;w=gte}var E=h.some(isPadded);y=[];for(var k=g;w(k,v);k+=_){var O;if(u){O=String.fromCharCode(k);if(O==="\\")O=""}else{O=String(k);if(E){var x=b-O.length;if(x>0){var R=new Array(x+1).join("0");if(k<0)O="-"+R+O.slice(1);else O=R+O}}}y.push(O)}}else{y=n(h,(function(e){return expand(e,false)}))}for(var T=0;T<y.length;T++){for(var L=0;L<p.length;L++){var A=d+y[T]+p[L];if(!t||l||A)r.push(A)}}return r}},6083:function(e,t,r){var n=r(127);e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0";var a="\0OPEN"+Math.random()+"\0";var s="\0CLOSE"+Math.random()+"\0";var o="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(a).split("\\}").join(s).split("\\,").join(o).split("\\.").join(u)}function unescapeBraces(e){return e.split(i).join("\\").split(a).join("{").split(s).join("}").split(o).join(",").split(u).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=n("{","}",e);if(!r)return e.split(",");var i=r.pre;var a=r.body;var s=r.post;var o=i.split(",");o[o.length-1]+="{"+a+"}";var u=parseCommaParts(s);if(s.length){o[o.length-1]+=u.shift();o.push.apply(o,u)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var i=n("{","}",e);if(!i)return[e];var a=i.pre;var o=i.post.length?expand(i.post,false):[""];if(/\$$/.test(i.pre)){for(var u=0;u<o.length;u++){var l=a+"{"+i.body+"}"+o[u];r.push(l)}}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var p=c||h;var d=i.body.indexOf(",")>=0;if(!p&&!d){if(i.post.match(/,.*\}/)){e=i.pre+"{"+i.body+s+i.post;return expand(e)}return[e]}var y;if(p){y=i.body.split(/\.\./)}else{y=parseCommaParts(i.body);if(y.length===1){y=expand(y[0],false).map(embrace);if(y.length===1){return o.map((function(e){return i.pre+y[0]+e}))}}}var g;if(p){var v=numeric(y[0]);var b=numeric(y[1]);var _=Math.max(y[0].length,y[1].length);var w=y.length==3?Math.abs(numeric(y[2])):1;var S=lte;var E=b<v;if(E){w*=-1;S=gte}var k=y.some(isPadded);g=[];for(var O=v;S(O,b);O+=w){var x;if(h){x=String.fromCharCode(O);if(x==="\\")x=""}else{x=String(O);if(k){var R=_-x.length;if(R>0){var T=new Array(R+1).join("0");if(O<0)x="-"+T+x.slice(1);else x=T+x}}}g.push(x)}}else{g=[];for(var L=0;L<y.length;L++){g.push.apply(g,expand(y[L],false))}}for(var L=0;L<g.length;L++){for(var u=0;u<o.length;u++){var l=a+g[L]+o[u];if(!t||p||l)r.push(l)}}}return r}},7064:function(e,t,r){var n=r(181).Buffer;var i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array!=="undefined"){i=new Int32Array(i)}function ensureBuffer(e){if(n.isBuffer(e)){return e}var t=typeof n.alloc==="function"&&typeof n.from==="function";if(typeof e==="number"){return t?n.alloc(e):new n(e)}else if(typeof e==="string"){return t?n.from(e):new n(e)}else{throw new Error("input must be buffer, number, or string, received "+typeof e)}}function bufferizeInt(e){var t=ensureBuffer(4);t.writeInt32BE(e,0);return t}function _crc32(e,t){e=ensureBuffer(e);if(n.isBuffer(t)){t=t.readUInt32BE(0)}var r=~~t^-1;for(var a=0;a<e.length;a++){r=i[(r^e[a])&255]^r>>>8}return r^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};e.exports=crc32},2806:function(e){var t=e.exports=function(){};t.prototype.getName=function(){};t.prototype.getSize=function(){};t.prototype.getLastModifiedDate=function(){};t.prototype.isDirectory=function(){}},9682:function(e,t,r){var n=r(9023).inherits;var i=r(1643).Transform;var a=r(2806);var s=r(9244);var o=e.exports=function(e){if(!(this instanceof o)){return new o(e)}i.call(this,e);this.offset=0;this._archive={finish:false,finished:false,processing:false}};n(o,i);o.prototype._appendBuffer=function(e,t,r){};o.prototype._appendStream=function(e,t,r){};o.prototype._emitErrorCallback=function(e){if(e){this.emit("error",e)}};o.prototype._finish=function(e){};o.prototype._normalizeEntry=function(e){};o.prototype._transform=function(e,t,r){r(null,e)};o.prototype.entry=function(e,t,r){t=t||null;if(typeof r!=="function"){r=this._emitErrorCallback.bind(this)}if(!(e instanceof a)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}this._archive.processing=true;this._normalizeEntry(e);this._entry=e;t=s.normalizeInputSource(t);if(Buffer.isBuffer(t)){this._appendBuffer(e,t,r)}else if(s.isStream(t)){this._appendStream(e,t,r)}else{this._archive.processing=false;r(new Error("input source must be valid Stream or Buffer instance"));return}return this};o.prototype.finish=function(){if(this._archive.processing){this._archive.finish=true;return}this._finish()};o.prototype.getBytesWritten=function(){return this.offset};o.prototype.write=function(e,t){if(e){this.offset+=e.length}return i.prototype.write.call(this,e,t)}},3468:function(e){e.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},4032:function(e,t,r){var n=r(4885);var i=1<<3;var a=1<<0;var s=1<<2;var o=1<<1;var u=1<<6;var l=1<<11;var c=e.exports=function(){if(!(this instanceof c)){return new c}this.descriptor=false;this.encryption=false;this.utf8=false;this.numberOfShannonFanoTrees=0;this.strongEncryption=false;this.slidingDictionarySize=0;return this};c.prototype.encode=function(){return n.getShortBytes((this.descriptor?i:0)|(this.utf8?l:0)|(this.encryption?a:0)|(this.strongEncryption?u:0))};c.prototype.parse=function(e,t){var r=n.getShortBytesValue(e,t);var h=new c;h.useDataDescriptor((r&i)!==0);h.useUTF8ForNames((r&l)!==0);h.useStrongEncryption((r&u)!==0);h.useEncryption((r&a)!==0);h.setSlidingDictionarySize((r&o)!==0?8192:4096);h.setNumberOfShannonFanoTrees((r&s)!==0?3:2);return h};c.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e};c.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};c.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e};c.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};c.prototype.useDataDescriptor=function(e){this.descriptor=e};c.prototype.usesDataDescriptor=function(){return this.descriptor};c.prototype.useEncryption=function(e){this.encryption=e};c.prototype.usesEncryption=function(){return this.encryption};c.prototype.useStrongEncryption=function(e){this.strongEncryption=e};c.prototype.usesStrongEncryption=function(){return this.strongEncryption};c.prototype.useUTF8ForNames=function(e){this.utf8=e};c.prototype.usesUTF8ForNames=function(){return this.utf8}},8050:function(e){e.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},4885:function(e){var t=e.exports={};t.dateToDos=function(e,t){t=t||false;var r=t?e.getFullYear():e.getUTCFullYear();if(r<1980){return 2162688}else if(r>=2044){return 2141175677}var n={year:r,month:t?e.getMonth():e.getUTCMonth(),date:t?e.getDate():e.getUTCDate(),hours:t?e.getHours():e.getUTCHours(),minutes:t?e.getMinutes():e.getUTCMinutes(),seconds:t?e.getSeconds():e.getUTCSeconds()};return n.year-1980<<25|n.month+1<<21|n.date<<16|n.hours<<11|n.minutes<<5|n.seconds/2};t.dosToDate=function(e){return new Date((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1)};t.fromDosTime=function(e){return t.dosToDate(e.readUInt32LE(0))};t.getEightBytes=function(e){var t=Buffer.alloc(8);t.writeUInt32LE(e%4294967296,0);t.writeUInt32LE(e/4294967296|0,4);return t};t.getShortBytes=function(e){var t=Buffer.alloc(2);t.writeUInt16LE((e&65535)>>>0,0);return t};t.getShortBytesValue=function(e,t){return e.readUInt16LE(t)};t.getLongBytes=function(e){var t=Buffer.alloc(4);t.writeUInt32LE((e&4294967295)>>>0,0);return t};t.getLongBytesValue=function(e,t){return e.readUInt32LE(t)};t.toDosTime=function(e){return t.getLongBytes(t.dateToDos(e))}},6580:function(e,t,r){var n=r(9023).inherits;var i=r(4527);var a=r(2806);var s=r(4032);var o=r(8050);var u=r(3468);var l=r(4885);var c=e.exports=function(e){if(!(this instanceof c)){return new c(e)}a.call(this);this.platform=u.PLATFORM_FAT;this.method=-1;this.name=null;this.size=0;this.csize=0;this.gpb=new s;this.crc=0;this.time=-1;this.minver=u.MIN_VERSION_INITIAL;this.mode=-1;this.extra=null;this.exattr=0;this.inattr=0;this.comment=null;if(e){this.setName(e)}};n(c,a);c.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};c.prototype.getComment=function(){return this.comment!==null?this.comment:""};c.prototype.getCompressedSize=function(){return this.csize};c.prototype.getCrc=function(){return this.crc};c.prototype.getExternalAttributes=function(){return this.exattr};c.prototype.getExtra=function(){return this.extra!==null?this.extra:u.EMPTY};c.prototype.getGeneralPurposeBit=function(){return this.gpb};c.prototype.getInternalAttributes=function(){return this.inattr};c.prototype.getLastModifiedDate=function(){return this.getTime()};c.prototype.getLocalFileDataExtra=function(){return this.getExtra()};c.prototype.getMethod=function(){return this.method};c.prototype.getName=function(){return this.name};c.prototype.getPlatform=function(){return this.platform};c.prototype.getSize=function(){return this.size};c.prototype.getTime=function(){return this.time!==-1?l.dosToDate(this.time):-1};c.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};c.prototype.getUnixMode=function(){return this.platform!==u.PLATFORM_UNIX?0:this.getExternalAttributes()>>u.SHORT_SHIFT&u.SHORT_MASK};c.prototype.getVersionNeededToExtract=function(){return this.minver};c.prototype.setComment=function(e){if(Buffer.byteLength(e)!==e.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.comment=e};c.prototype.setCompressedSize=function(e){if(e<0){throw new Error("invalid entry compressed size")}this.csize=e};c.prototype.setCrc=function(e){if(e<0){throw new Error("invalid entry crc32")}this.crc=e};c.prototype.setExternalAttributes=function(e){this.exattr=e>>>0};c.prototype.setExtra=function(e){this.extra=e};c.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof s)){throw new Error("invalid entry GeneralPurposeBit")}this.gpb=e};c.prototype.setInternalAttributes=function(e){this.inattr=e};c.prototype.setMethod=function(e){if(e<0){throw new Error("invalid entry compression method")}this.method=e};c.prototype.setName=function(e,t=false){e=i(e,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"");if(t){e=`/${e}`}if(Buffer.byteLength(e)!==e.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.name=e};c.prototype.setPlatform=function(e){this.platform=e};c.prototype.setSize=function(e){if(e<0){throw new Error("invalid entry size")}this.size=e};c.prototype.setTime=function(e,t){if(!(e instanceof Date)){throw new Error("invalid entry time")}this.time=l.dateToDos(e,t)};c.prototype.setUnixMode=function(e){e|=this.isDirectory()?u.S_IFDIR:u.S_IFREG;var t=0;t|=e<<u.SHORT_SHIFT|(this.isDirectory()?u.S_DOS_D:u.S_DOS_A);this.setExternalAttributes(t);this.mode=e&u.MODE_MASK;this.platform=u.PLATFORM_UNIX};c.prototype.setVersionNeededToExtract=function(e){this.minver=e};c.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};c.prototype.isUnixSymlink=function(){return(this.getUnixMode()&o.FILE_TYPE_FLAG)===o.LINK_FLAG};c.prototype.isZip64=function(){return this.csize>u.ZIP64_MAGIC||this.size>u.ZIP64_MAGIC}},4724:function(e,t,r){var n=r(9023).inherits;var i=r(7064);var{CRC32Stream:a}=r(655);var{DeflateCRC32Stream:s}=r(655);var o=r(9682);var u=r(6580);var l=r(4032);var c=r(3468);var h=r(9244);var p=r(4885);var d=e.exports=function(e){if(!(this instanceof d)){return new d(e)}e=this.options=this._defaults(e);o.call(this,e);this._entry=null;this._entries=[];this._archive={centralLength:0,centralOffset:0,comment:"",finish:false,finished:false,processing:false,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime}};n(d,o);d.prototype._afterAppend=function(e){this._entries.push(e);if(e.getGeneralPurposeBit().usesDataDescriptor()){this._writeDataDescriptor(e)}this._archive.processing=false;this._entry=null;if(this._archive.finish&&!this._archive.finished){this._finish()}};d.prototype._appendBuffer=function(e,t,r){if(t.length===0){e.setMethod(c.METHOD_STORED)}var n=e.getMethod();if(n===c.METHOD_STORED){e.setSize(t.length);e.setCompressedSize(t.length);e.setCrc(i.unsigned(t))}this._writeLocalFileHeader(e);if(n===c.METHOD_STORED){this.write(t);this._afterAppend(e);r(null,e);return}else if(n===c.METHOD_DEFLATED){this._smartStream(e,r).end(t);return}else{r(new Error("compression method "+n+" not implemented"));return}};d.prototype._appendStream=function(e,t,r){e.getGeneralPurposeBit().useDataDescriptor(true);e.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR);this._writeLocalFileHeader(e);var n=this._smartStream(e,r);t.once("error",(function(e){n.emit("error",e);n.end()}));t.pipe(n)};d.prototype._defaults=function(e){if(typeof e!=="object"){e={}}if(typeof e.zlib!=="object"){e.zlib={}}if(typeof e.zlib.level!=="number"){e.zlib.level=c.ZLIB_BEST_SPEED}e.forceZip64=!!e.forceZip64;e.forceLocalTime=!!e.forceLocalTime;return e};d.prototype._finish=function(){this._archive.centralOffset=this.offset;this._entries.forEach(function(e){this._writeCentralFileHeader(e)}.bind(this));this._archive.centralLength=this.offset-this._archive.centralOffset;if(this.isZip64()){this._writeCentralDirectoryZip64()}this._writeCentralDirectoryEnd();this._archive.processing=false;this._archive.finish=true;this._archive.finished=true;this.end()};d.prototype._normalizeEntry=function(e){if(e.getMethod()===-1){e.setMethod(c.METHOD_DEFLATED)}if(e.getMethod()===c.METHOD_DEFLATED){e.getGeneralPurposeBit().useDataDescriptor(true);e.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR)}if(e.getTime()===-1){e.setTime(new Date,this._archive.forceLocalTime)}e._offsets={file:0,data:0,contents:0}};d.prototype._smartStream=function(e,t){var r=e.getMethod()===c.METHOD_DEFLATED;var n=r?new s(this.options.zlib):new a;var i=null;function handleStuff(){var r=n.digest().readUInt32BE(0);e.setCrc(r);e.setSize(n.size());e.setCompressedSize(n.size(true));this._afterAppend(e);t(i,e)}n.once("end",handleStuff.bind(this));n.once("error",(function(e){i=e}));n.pipe(this,{end:false});return n};d.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length;var t=this._archive.centralLength;var r=this._archive.centralOffset;if(this.isZip64()){e=c.ZIP64_MAGIC_SHORT;t=c.ZIP64_MAGIC;r=c.ZIP64_MAGIC}this.write(p.getLongBytes(c.SIG_EOCD));this.write(c.SHORT_ZERO);this.write(c.SHORT_ZERO);this.write(p.getShortBytes(e));this.write(p.getShortBytes(e));this.write(p.getLongBytes(t));this.write(p.getLongBytes(r));var n=this.getComment();var i=Buffer.byteLength(n);this.write(p.getShortBytes(i));this.write(n)};d.prototype._writeCentralDirectoryZip64=function(){this.write(p.getLongBytes(c.SIG_ZIP64_EOCD));this.write(p.getEightBytes(44));this.write(p.getShortBytes(c.MIN_VERSION_ZIP64));this.write(p.getShortBytes(c.MIN_VERSION_ZIP64));this.write(c.LONG_ZERO);this.write(c.LONG_ZERO);this.write(p.getEightBytes(this._entries.length));this.write(p.getEightBytes(this._entries.length));this.write(p.getEightBytes(this._archive.centralLength));this.write(p.getEightBytes(this._archive.centralOffset));this.write(p.getLongBytes(c.SIG_ZIP64_EOCD_LOC));this.write(c.LONG_ZERO);this.write(p.getEightBytes(this._archive.centralOffset+this._archive.centralLength));this.write(p.getLongBytes(1))};d.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit();var r=e.getMethod();var n=e._offsets;var i=e.getSize();var a=e.getCompressedSize();if(e.isZip64()||n.file>c.ZIP64_MAGIC){i=c.ZIP64_MAGIC;a=c.ZIP64_MAGIC;e.setVersionNeededToExtract(c.MIN_VERSION_ZIP64);var s=Buffer.concat([p.getShortBytes(c.ZIP64_EXTRA_ID),p.getShortBytes(24),p.getEightBytes(e.getSize()),p.getEightBytes(e.getCompressedSize()),p.getEightBytes(n.file)],28);e.setExtra(s)}this.write(p.getLongBytes(c.SIG_CFH));this.write(p.getShortBytes(e.getPlatform()<<8|c.VERSION_MADEBY));this.write(p.getShortBytes(e.getVersionNeededToExtract()));this.write(t.encode());this.write(p.getShortBytes(r));this.write(p.getLongBytes(e.getTimeDos()));this.write(p.getLongBytes(e.getCrc()));this.write(p.getLongBytes(a));this.write(p.getLongBytes(i));var o=e.getName();var u=e.getComment();var l=e.getCentralDirectoryExtra();if(t.usesUTF8ForNames()){o=Buffer.from(o);u=Buffer.from(u)}this.write(p.getShortBytes(o.length));this.write(p.getShortBytes(l.length));this.write(p.getShortBytes(u.length));this.write(c.SHORT_ZERO);this.write(p.getShortBytes(e.getInternalAttributes()));this.write(p.getLongBytes(e.getExternalAttributes()));if(n.file>c.ZIP64_MAGIC){this.write(p.getLongBytes(c.ZIP64_MAGIC))}else{this.write(p.getLongBytes(n.file))}this.write(o);this.write(l);this.write(u)};d.prototype._writeDataDescriptor=function(e){this.write(p.getLongBytes(c.SIG_DD));this.write(p.getLongBytes(e.getCrc()));if(e.isZip64()){this.write(p.getEightBytes(e.getCompressedSize()));this.write(p.getEightBytes(e.getSize()))}else{this.write(p.getLongBytes(e.getCompressedSize()));this.write(p.getLongBytes(e.getSize()))}};d.prototype._writeLocalFileHeader=function(e){var t=e.getGeneralPurposeBit();var r=e.getMethod();var n=e.getName();var i=e.getLocalFileDataExtra();if(e.isZip64()){t.useDataDescriptor(true);e.setVersionNeededToExtract(c.MIN_VERSION_ZIP64)}if(t.usesUTF8ForNames()){n=Buffer.from(n)}e._offsets.file=this.offset;this.write(p.getLongBytes(c.SIG_LFH));this.write(p.getShortBytes(e.getVersionNeededToExtract()));this.write(t.encode());this.write(p.getShortBytes(r));this.write(p.getLongBytes(e.getTimeDos()));e._offsets.data=this.offset;if(t.usesDataDescriptor()){this.write(c.LONG_ZERO);this.write(c.LONG_ZERO);this.write(c.LONG_ZERO)}else{this.write(p.getLongBytes(e.getCrc()));this.write(p.getLongBytes(e.getCompressedSize()));this.write(p.getLongBytes(e.getSize()))}this.write(p.getShortBytes(n.length));this.write(p.getShortBytes(i.length));this.write(n);this.write(i);e._offsets.contents=this.offset};d.prototype.getComment=function(e){return this._archive.comment!==null?this._archive.comment:""};d.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>c.ZIP64_MAGIC_SHORT||this._archive.centralLength>c.ZIP64_MAGIC||this._archive.centralOffset>c.ZIP64_MAGIC};d.prototype.setComment=function(e){this._archive.comment=e}},7288:function(e,t,r){e.exports={ArchiveEntry:r(2806),ZipArchiveEntry:r(6580),ArchiveOutputStream:r(9682),ZipArchiveOutputStream:r(4724)}},9244:function(e,t,r){var n=r(2203).Stream;var i=r(1643).PassThrough;var a=e.exports={};a.isStream=function(e){return e instanceof n};a.normalizeInputSource=function(e){if(e===null){return Buffer.alloc(0)}else if(typeof e==="string"){return Buffer.from(e)}else if(a.isStream(e)&&!e._readableState){var t=new i;e.pipe(t);return t}return e}},8401:function(e){e.exports=function(e,r){var n=[];for(var i=0;i<e.length;i++){var a=r(e[i],i);if(t(a))n.push.apply(n,a);else n.push(a)}return n};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},9810:function(e,t,r){function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}t.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}t.isBoolean=isBoolean;function isNull(e){return e===null}t.isNull=isNull;function isNullOrUndefined(e){return e==null}t.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}t.isNumber=isNumber;function isString(e){return typeof e==="string"}t.isString=isString;function isSymbol(e){return typeof e==="symbol"}t.isSymbol=isSymbol;function isUndefined(e){return e===void 0}t.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}t.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}t.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.isError=isError;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=isPrimitive;t.isBuffer=r(181).Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},3778:function(e,t){
49
+ var i=r(8599);var n=r(4747);var Zip=function(e){if(!(this instanceof Zip)){return new Zip(e)}e=this.options=n.defaults(e,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new i(e)};Zip.prototype.append=function(e,t,r){this.engine.entry(e,t,r)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};e.exports=Zip},5990:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";function apply(e,...t){return(...r)=>e(...t,...r)}function initialParams(e){return function(...t){var r=t.pop();return e.call(this,t,r)}}var t=typeof queueMicrotask==="function"&&queueMicrotask;var r=typeof setImmediate==="function"&&setImmediate;var i=typeof process==="object"&&typeof process.nextTick==="function";function fallback(e){setTimeout(e,0)}function wrap(e){return(t,...r)=>e((()=>t(...r)))}var n;if(t){n=queueMicrotask}else if(r){n=setImmediate}else if(i){n=process.nextTick}else{n=fallback}var s=wrap(n);function asyncify(e){if(isAsync(e)){return function(...t){const r=t.pop();const i=e.apply(this,t);return handlePromise(i,r)}}return initialParams((function(t,r){var i;try{i=e.apply(this,t)}catch(e){return r(e)}if(i&&typeof i.then==="function"){return handlePromise(i,r)}else{r(null,i)}}))}function handlePromise(e,t){return e.then((e=>{invokeCallback(t,null,e)}),(e=>{invokeCallback(t,e&&(e instanceof Error||e.message)?e:new Error(e))}))}function invokeCallback(e,t,r){try{e(t,r)}catch(e){s((e=>{throw e}),e)}}function isAsync(e){return e[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(e){return e[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(e){return typeof e[Symbol.asyncIterator]==="function"}function wrapAsync(e){if(typeof e!=="function")throw new Error("expected a function");return isAsync(e)?asyncify(e):e}function awaitify(e,t){if(!t)t=e.length;if(!t)throw new Error("arity is undefined");function awaitable(...r){if(typeof r[t-1]==="function"){return e.apply(this,r)}return new Promise(((i,n)=>{r[t-1]=(e,...t)=>{if(e)return n(e);i(t.length>1?t:t[0])};e.apply(this,r)}))}return awaitable}function applyEach$1(e){return function applyEach(t,...r){const i=awaitify((function(i){var n=this;return e(t,((e,t)=>{wrapAsync(e).apply(n,r.concat(t))}),i)}));return i}}function _asyncMap(e,t,r,i){t=t||[];var n=[];var s=0;var a=wrapAsync(r);return e(t,((e,t,r)=>{var i=s++;a(e,((e,t)=>{n[i]=t;r(e)}))}),(e=>{i(e,n)}))}function isArrayLike(e){return e&&typeof e.length==="number"&&e.length>=0&&e.length%1===0}const a={};function once(e){function wrapper(...t){if(e===null)return;var r=e;e=null;r.apply(this,t)}Object.assign(wrapper,e);return wrapper}function getIterator(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}function createArrayIterator(e){var t=-1;var r=e.length;return function next(){return++t<r?{value:e[t],key:t}:null}}function createES2015Iterator(e){var t=-1;return function next(){var r=e.next();if(r.done)return null;t++;return{value:r.value,key:t}}}function createObjectIterator(e){var t=e?Object.keys(e):[];var r=-1;var i=t.length;return function next(){var n=t[++r];if(n==="__proto__"){return next()}return r<i?{value:e[n],key:n}:null}}function createIterator(e){if(isArrayLike(e)){return createArrayIterator(e)}var t=getIterator(e);return t?createES2015Iterator(t):createObjectIterator(e)}function onlyOnce(e){return function(...t){if(e===null)throw new Error("Callback was already called.");var r=e;e=null;r.apply(this,t)}}function asyncEachOfLimit(e,t,r,i){let n=false;let s=false;let o=false;let l=0;let u=0;function replenish(){if(l>=t||o||n)return;o=true;e.next().then((({value:e,done:t})=>{if(s||n)return;o=false;if(t){n=true;if(l<=0){i(null)}return}l++;r(e,u,iterateeCallback);u++;replenish()})).catch(handleError)}function iterateeCallback(e,t){l-=1;if(s)return;if(e)return handleError(e);if(e===false){n=true;s=true;return}if(t===a||n&&l<=0){n=true;return i(null)}replenish()}function handleError(e){if(s)return;o=false;n=true;i(e)}replenish()}var eachOfLimit$2=e=>(t,r,i)=>{i=once(i);if(e<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!t){return i(null)}if(isAsyncGenerator(t)){return asyncEachOfLimit(t,e,r,i)}if(isAsyncIterable(t)){return asyncEachOfLimit(t[Symbol.asyncIterator](),e,r,i)}var n=createIterator(t);var s=false;var o=false;var l=0;var u=false;function iterateeCallback(e,t){if(o)return;l-=1;if(e){s=true;i(e)}else if(e===false){s=true;o=true}else if(t===a||s&&l<=0){s=true;return i(null)}else if(!u){replenish()}}function replenish(){u=true;while(l<e&&!s){var t=n();if(t===null){s=true;if(l<=0){i(null)}return}l+=1;r(t.value,t.key,onlyOnce(iterateeCallback))}u=false}replenish()};function eachOfLimit(e,t,r,i){return eachOfLimit$2(t)(e,wrapAsync(r),i)}var o=awaitify(eachOfLimit,4);function eachOfArrayLike(e,t,r){r=once(r);var i=0,n=0,{length:s}=e,o=false;if(s===0){r(null)}function iteratorCallback(e,t){if(e===false){o=true}if(o===true)return;if(e){r(e)}else if(++n===s||t===a){r(null)}}for(;i<s;i++){t(e[i],i,onlyOnce(iteratorCallback))}}function eachOfGeneric(e,t,r){return o(e,Infinity,t,r)}function eachOf(e,t,r){var i=isArrayLike(e)?eachOfArrayLike:eachOfGeneric;return i(e,wrapAsync(t),r)}var l=awaitify(eachOf,3);function map(e,t,r){return _asyncMap(l,e,t,r)}var u=awaitify(map,3);var f=applyEach$1(u);function eachOfSeries(e,t,r){return o(e,1,t,r)}var c=awaitify(eachOfSeries,3);function mapSeries(e,t,r){return _asyncMap(c,e,t,r)}var h=awaitify(mapSeries,3);var d=applyEach$1(h);const p=Symbol("promiseCallback");function promiseCallback(){let e,t;function callback(r,...i){if(r)return t(r);e(i.length>1?i:i[0])}callback[p]=new Promise(((r,i)=>{e=r,t=i}));return callback}function auto(e,t,r){if(typeof t!=="number"){r=t;t=null}r=once(r||promiseCallback());var i=Object.keys(e).length;if(!i){return r(null)}if(!t){t=i}var n={};var s=0;var a=false;var o=false;var l=Object.create(null);var u=[];var f=[];var c={};Object.keys(e).forEach((t=>{var r=e[t];if(!Array.isArray(r)){enqueueTask(t,[r]);f.push(t);return}var i=r.slice(0,r.length-1);var n=i.length;if(n===0){enqueueTask(t,r);f.push(t);return}c[t]=n;i.forEach((s=>{if(!e[s]){throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+s+"` in "+i.join(", "))}addListener(s,(()=>{n--;if(n===0){enqueueTask(t,r)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(e,t){u.push((()=>runTask(e,t)))}function processQueue(){if(a)return;if(u.length===0&&s===0){return r(null,n)}while(u.length&&s<t){var e=u.shift();e()}}function addListener(e,t){var r=l[e];if(!r){r=l[e]=[]}r.push(t)}function taskComplete(e){var t=l[e]||[];t.forEach((e=>e()));processQueue()}function runTask(e,t){if(o)return;var i=onlyOnce(((t,...i)=>{s--;if(t===false){a=true;return}if(i.length<2){[i]=i}if(t){var u={};Object.keys(n).forEach((e=>{u[e]=n[e]}));u[e]=i;o=true;l=Object.create(null);if(a)return;r(t,u)}else{n[e]=i;taskComplete(e)}}));s++;var u=wrapAsync(t[t.length-1]);if(t.length>1){u(n,i)}else{u(i)}}function checkForDeadlocks(){var e;var t=0;while(f.length){e=f.pop();t++;getDependents(e).forEach((e=>{if(--c[e]===0){f.push(e)}}))}if(t!==i){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(t){var r=[];Object.keys(e).forEach((i=>{const n=e[i];if(Array.isArray(n)&&n.indexOf(t)>=0){r.push(i)}}));return r}return r[p]}var y=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/;var b=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/;var g=/,/;var w=/(=.+)?(\s*)$/;function stripComments(e){let t="";let r=0;let i=e.indexOf("*/");while(r<e.length){if(e[r]==="/"&&e[r+1]==="/"){let t=e.indexOf("\n",r);r=t===-1?e.length:t}else if(i!==-1&&e[r]==="/"&&e[r+1]==="*"){let n=e.indexOf("*/",r);if(n!==-1){r=n+2;i=e.indexOf("*/",r)}else{t+=e[r];r++}}else{t+=e[r];r++}}return t}function parseParams(e){const t=stripComments(e.toString());let r=t.match(y);if(!r){r=t.match(b)}if(!r)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,i]=r;return i.replace(/\s/g,"").split(g).map((e=>e.replace(w,"").trim()))}function autoInject(e,t){var r={};Object.keys(e).forEach((t=>{var i=e[t];var n;var s=isAsync(i);var a=!s&&i.length===1||s&&i.length===0;if(Array.isArray(i)){n=[...i];i=n.pop();r[t]=n.concat(n.length>0?newTask:i)}else if(a){r[t]=i}else{n=parseParams(i);if(i.length===0&&!s&&n.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!s)n.pop();r[t]=n.concat(newTask)}function newTask(e,t){var r=n.map((t=>e[t]));r.push(t);wrapAsync(i)(...r)}}));return auto(r,t)}class DLL{constructor(){this.head=this.tail=null;this.length=0}removeLink(e){if(e.prev)e.prev.next=e.next;else this.head=e.next;if(e.next)e.next.prev=e.prev;else this.tail=e.prev;e.prev=e.next=null;this.length-=1;return e}empty(){while(this.head)this.shift();return this}insertAfter(e,t){t.prev=e;t.next=e.next;if(e.next)e.next.prev=t;else this.tail=t;e.next=t;this.length+=1}insertBefore(e,t){t.prev=e.prev;t.next=e;if(e.prev)e.prev.next=t;else this.head=t;e.prev=t;this.length+=1}unshift(e){if(this.head)this.insertBefore(this.head,e);else setInitial(this,e)}push(e){if(this.tail)this.insertAfter(this.tail,e);else setInitial(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var e=this.head;while(e){yield e.data;e=e.next}}remove(e){var t=this.head;while(t){var{next:r}=t;if(e(t)){this.removeLink(t)}t=r}return this}}function setInitial(e,t){e.length=1;e.head=e.tail=t}function queue$1(e,t,r){if(t==null){t=1}else if(t===0){throw new RangeError("Concurrency must not be zero")}var i=wrapAsync(e);var n=0;var a=[];const o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function on(e,t){o[e].push(t)}function once(e,t){const handleAndRemove=(...r)=>{off(e,handleAndRemove);t(...r)};o[e].push(handleAndRemove)}function off(e,t){if(!e)return Object.keys(o).forEach((e=>o[e]=[]));if(!t)return o[e]=[];o[e]=o[e].filter((e=>e!==t))}function trigger(e,...t){o[e].forEach((e=>e(...t)))}var l=false;function _insert(e,t,r,i){if(i!=null&&typeof i!=="function"){throw new Error("task callback must be a function")}f.started=true;var n,a;function promiseCallback(e,...t){if(e)return r?a(e):n();if(t.length<=1)return n(t[0]);n(t)}var o=f._createTaskItem(e,r?promiseCallback:i||promiseCallback);if(t){f._tasks.unshift(o)}else{f._tasks.push(o)}if(!l){l=true;s((()=>{l=false;f.process()}))}if(r||!i){return new Promise(((e,t)=>{n=e;a=t}))}}function _createCB(e){return function(t,...r){n-=1;for(var i=0,s=e.length;i<s;i++){var o=e[i];var l=a.indexOf(o);if(l===0){a.shift()}else if(l>0){a.splice(l,1)}o.callback(t,...r);if(t!=null){trigger("error",t,o.data)}}if(n<=f.concurrency-f.buffer){trigger("unsaturated")}if(f.idle()){trigger("drain")}f.process()}}function _maybeDrain(e){if(e.length===0&&f.idle()){s((()=>trigger("drain")));return true}return false}const eventMethod=e=>t=>{if(!t){return new Promise(((t,r)=>{once(e,((e,i)=>{if(e)return r(e);t(i)}))}))}off(e);on(e,t)};var u=false;var f={_tasks:new DLL,_createTaskItem(e,t){return{data:e,callback:t}},*[Symbol.iterator](){yield*f._tasks[Symbol.iterator]()},concurrency:t,payload:r,buffer:t/4,started:false,paused:false,push(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,false,false,t)))}return _insert(e,false,false,t)},pushAsync(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,false,true,t)))}return _insert(e,false,true,t)},kill(){off();f._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,true,false,t)))}return _insert(e,true,false,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,true,true,t)))}return _insert(e,true,true,t)},remove(e){f._tasks.remove(e)},process(){if(u){return}u=true;while(!f.paused&&n<f.concurrency&&f._tasks.length){var e=[],t=[];var r=f._tasks.length;if(f.payload)r=Math.min(r,f.payload);for(var s=0;s<r;s++){var o=f._tasks.shift();e.push(o);a.push(o);t.push(o.data)}n+=1;if(f._tasks.length===0){trigger("empty")}if(n===f.concurrency){trigger("saturated")}var l=onlyOnce(_createCB(e));i(t,l)}u=false},length(){return f._tasks.length},running(){return n},workersList(){return a},idle(){return f._tasks.length+n===0},pause(){f.paused=true},resume(){if(f.paused===false){return}f.paused=false;s(f.process)}};Object.defineProperties(f,{saturated:{writable:false,value:eventMethod("saturated")},unsaturated:{writable:false,value:eventMethod("unsaturated")},empty:{writable:false,value:eventMethod("empty")},drain:{writable:false,value:eventMethod("drain")},error:{writable:false,value:eventMethod("error")}});return f}function cargo$1(e,t){return queue$1(e,1,t)}function cargo(e,t,r){return queue$1(e,t,r)}function reduce(e,t,r,i){i=once(i);var n=wrapAsync(r);return c(e,((e,r,i)=>{n(t,e,((e,r)=>{t=r;i(e)}))}),(e=>i(e,t)))}var _=awaitify(reduce,4);function seq(...e){var t=e.map(wrapAsync);return function(...e){var r=this;var i=e[e.length-1];if(typeof i=="function"){e.pop()}else{i=promiseCallback()}_(t,e,((e,t,i)=>{t.apply(r,e.concat(((e,...t)=>{i(e,t)})))}),((e,t)=>i(e,...t)));return i[p]}}function compose(...e){return seq(...e.reverse())}function mapLimit(e,t,r,i){return _asyncMap(eachOfLimit$2(t),e,r,i)}var S=awaitify(mapLimit,4);function concatLimit(e,t,r,i){var n=wrapAsync(r);return S(e,t,((e,t)=>{n(e,((e,...r)=>{if(e)return t(e);return t(e,r)}))}),((e,t)=>{var r=[];for(var n=0;n<t.length;n++){if(t[n]){r=r.concat(...t[n])}}return i(e,r)}))}var v=awaitify(concatLimit,4);function concat(e,t,r){return v(e,Infinity,t,r)}var x=awaitify(concat,3);function concatSeries(e,t,r){return v(e,1,t,r)}var k=awaitify(concatSeries,3);function constant$1(...e){return function(...t){var r=t.pop();return r(null,...e)}}function _createTester(e,t){return(r,i,n,s)=>{var o=false;var l;const u=wrapAsync(n);r(i,((r,i,n)=>{u(r,((i,s)=>{if(i||i===false)return n(i);if(e(s)&&!l){o=true;l=t(true,r);return n(null,a)}n()}))}),(e=>{if(e)return s(e);s(null,o?l:t(false))}))}}function detect(e,t,r){return _createTester((e=>e),((e,t)=>t))(l,e,t,r)}var T=awaitify(detect,3);function detectLimit(e,t,r,i){return _createTester((e=>e),((e,t)=>t))(eachOfLimit$2(t),e,r,i)}var R=awaitify(detectLimit,4);function detectSeries(e,t,r){return _createTester((e=>e),((e,t)=>t))(eachOfLimit$2(1),e,t,r)}var A=awaitify(detectSeries,3);function consoleFunc(e){return(t,...r)=>wrapAsync(t)(...r,((t,...r)=>{if(typeof console==="object"){if(t){if(console.error){console.error(t)}}else if(console[e]){r.forEach((t=>console[e](t)))}}}))}var O=consoleFunc("dir");function doWhilst(e,t,r){r=onlyOnce(r);var i=wrapAsync(e);var n=wrapAsync(t);var s;function next(e,...t){if(e)return r(e);if(e===false)return;s=t;n(...t,check)}function check(e,t){if(e)return r(e);if(e===false)return;if(!t)return r(null,...s);i(next)}return check(null,true)}var L=awaitify(doWhilst,3);function doUntil(e,t,r){const i=wrapAsync(t);return L(e,((...e)=>{const t=e.pop();i(...e,((e,r)=>t(e,!r)))}),r)}function _withoutIndex(e){return(t,r,i)=>e(t,i)}function eachLimit$2(e,t,r){return l(e,_withoutIndex(wrapAsync(t)),r)}var P=awaitify(eachLimit$2,3);function eachLimit(e,t,r,i){return eachOfLimit$2(t)(e,_withoutIndex(wrapAsync(r)),i)}var C=awaitify(eachLimit,4);function eachSeries(e,t,r){return C(e,1,t,r)}var M=awaitify(eachSeries,3);function ensureAsync(e){if(isAsync(e))return e;return function(...t){var r=t.pop();var i=true;t.push(((...e)=>{if(i){s((()=>r(...e)))}else{r(...e)}}));e.apply(this,t);i=false}}function every(e,t,r){return _createTester((e=>!e),(e=>!e))(l,e,t,r)}var I=awaitify(every,3);function everyLimit(e,t,r,i){return _createTester((e=>!e),(e=>!e))(eachOfLimit$2(t),e,r,i)}var D=awaitify(everyLimit,4);function everySeries(e,t,r){return _createTester((e=>!e),(e=>!e))(c,e,t,r)}var N=awaitify(everySeries,3);function filterArray(e,t,r,i){var n=new Array(t.length);e(t,((e,t,i)=>{r(e,((e,r)=>{n[t]=!!r;i(e)}))}),(e=>{if(e)return i(e);var r=[];for(var s=0;s<t.length;s++){if(n[s])r.push(t[s])}i(null,r)}))}function filterGeneric(e,t,r,i){var n=[];e(t,((e,t,i)=>{r(e,((r,s)=>{if(r)return i(r);if(s){n.push({index:t,value:e})}i(r)}))}),(e=>{if(e)return i(e);i(null,n.sort(((e,t)=>e.index-t.index)).map((e=>e.value)))}))}function _filter(e,t,r,i){var n=isArrayLike(t)?filterArray:filterGeneric;return n(e,t,wrapAsync(r),i)}function filter(e,t,r){return _filter(l,e,t,r)}var B=awaitify(filter,3);function filterLimit(e,t,r,i){return _filter(eachOfLimit$2(t),e,r,i)}var F=awaitify(filterLimit,4);function filterSeries(e,t,r){return _filter(c,e,t,r)}var j=awaitify(filterSeries,3);function forever(e,t){var r=onlyOnce(t);var i=wrapAsync(ensureAsync(e));function next(e){if(e)return r(e);if(e===false)return;i(next)}return next()}var W=awaitify(forever,2);function groupByLimit(e,t,r,i){var n=wrapAsync(r);return S(e,t,((e,t)=>{n(e,((r,i)=>{if(r)return t(r);return t(r,{key:i,val:e})}))}),((e,t)=>{var r={};var{hasOwnProperty:n}=Object.prototype;for(var s=0;s<t.length;s++){if(t[s]){var{key:a}=t[s];var{val:o}=t[s];if(n.call(r,a)){r[a].push(o)}else{r[a]=[o]}}}return i(e,r)}))}var z=awaitify(groupByLimit,4);function groupBy(e,t,r){return z(e,Infinity,t,r)}function groupBySeries(e,t,r){return z(e,1,t,r)}var U=consoleFunc("log");function mapValuesLimit(e,t,r,i){i=once(i);var n={};var s=wrapAsync(r);return eachOfLimit$2(t)(e,((e,t,r)=>{s(e,t,((e,i)=>{if(e)return r(e);n[t]=i;r(e)}))}),(e=>i(e,n)))}var G=awaitify(mapValuesLimit,4);function mapValues(e,t,r){return G(e,Infinity,t,r)}function mapValuesSeries(e,t,r){return G(e,1,t,r)}function memoize(e,t=e=>e){var r=Object.create(null);var i=Object.create(null);var n=wrapAsync(e);var a=initialParams(((e,a)=>{var o=t(...e);if(o in r){s((()=>a(null,...r[o])))}else if(o in i){i[o].push(a)}else{i[o]=[a];n(...e,((e,...t)=>{if(!e){r[o]=t}var n=i[o];delete i[o];for(var s=0,a=n.length;s<a;s++){n[s](e,...t)}}))}}));a.memo=r;a.unmemoized=e;return a}var $;if(i){$=process.nextTick}else if(r){$=setImmediate}else{$=fallback}var H=wrap($);var q=awaitify(((e,t,r)=>{var i=isArrayLike(t)?[]:{};e(t,((e,t,r)=>{wrapAsync(e)(((e,...n)=>{if(n.length<2){[n]=n}i[t]=n;r(e)}))}),(e=>r(e,i)))}),3);function parallel(e,t){return q(l,e,t)}function parallelLimit(e,t,r){return q(eachOfLimit$2(t),e,r)}function queue(e,t){var r=wrapAsync(e);return queue$1(((e,t)=>{r(e[0],t)}),t,1)}class Heap{constructor(){this.heap=[];this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){this.heap=[];return this}percUp(e){let t;while(e>0&&smaller(this.heap[e],this.heap[t=parent(e)])){let r=this.heap[e];this.heap[e]=this.heap[t];this.heap[t]=r;e=t}}percDown(e){let t;while((t=leftChi(e))<this.heap.length){if(t+1<this.heap.length&&smaller(this.heap[t+1],this.heap[t])){t=t+1}if(smaller(this.heap[e],this.heap[t])){break}let r=this.heap[e];this.heap[e]=this.heap[t];this.heap[t]=r;e=t}}push(e){e.pushCount=++this.pushCount;this.heap.push(e);this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;this.heap[0]=this.heap[this.heap.length-1];this.heap.pop();this.percDown(0);return e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++){yield this.heap[e].data}}remove(e){let t=0;for(let r=0;r<this.heap.length;r++){if(!e(this.heap[r])){this.heap[t]=this.heap[r];t++}}this.heap.splice(t);for(let e=parent(this.heap.length-1);e>=0;e--){this.percDown(e)}return this}}function leftChi(e){return(e<<1)+1}function parent(e){return(e+1>>1)-1}function smaller(e,t){if(e.priority!==t.priority){return e.priority<t.priority}else{return e.pushCount<t.pushCount}}function priorityQueue(e,t){var r=queue(e,t);var{push:i,pushAsync:n}=r;r._tasks=new Heap;r._createTaskItem=({data:e,priority:t},r)=>({data:e,priority:t,callback:r});function createDataItems(e,t){if(!Array.isArray(e)){return{data:e,priority:t}}return e.map((e=>({data:e,priority:t})))}r.push=function(e,t=0,r){return i(createDataItems(e,t),r)};r.pushAsync=function(e,t=0,r){return n(createDataItems(e,t),r)};delete r.unshift;delete r.unshiftAsync;return r}function race(e,t){t=once(t);if(!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var r=0,i=e.length;r<i;r++){wrapAsync(e[r])(t)}}var V=awaitify(race,2);function reduceRight(e,t,r,i){var n=[...e].reverse();return _(n,t,r,i)}function reflect(e){var t=wrapAsync(e);return initialParams((function reflectOn(e,r){e.push(((e,...t)=>{let i={};if(e){i.error=e}if(t.length>0){var n=t;if(t.length<=1){[n]=t}i.value=n}r(null,i)}));return t.apply(this,e)}))}function reflectAll(e){var t;if(Array.isArray(e)){t=e.map(reflect)}else{t={};Object.keys(e).forEach((r=>{t[r]=reflect.call(this,e[r])}))}return t}function reject$2(e,t,r,i){const n=wrapAsync(r);return _filter(e,t,((e,t)=>{n(e,((e,r)=>{t(e,!r)}))}),i)}function reject(e,t,r){return reject$2(l,e,t,r)}var Z=awaitify(reject,3);function rejectLimit(e,t,r,i){return reject$2(eachOfLimit$2(t),e,r,i)}var Y=awaitify(rejectLimit,4);function rejectSeries(e,t,r){return reject$2(c,e,t,r)}var K=awaitify(rejectSeries,3);function constant(e){return function(){return e}}const Q=5;const X=0;function retry(e,t,r){var i={times:Q,intervalFunc:constant(X)};if(arguments.length<3&&typeof e==="function"){r=t||promiseCallback();t=e}else{parseTimes(i,e);r=r||promiseCallback()}if(typeof t!=="function"){throw new Error("Invalid arguments for async.retry")}var n=wrapAsync(t);var s=1;function retryAttempt(){n(((e,...t)=>{if(e===false)return;if(e&&s++<i.times&&(typeof i.errorFilter!="function"||i.errorFilter(e))){setTimeout(retryAttempt,i.intervalFunc(s-1))}else{r(e,...t)}}))}retryAttempt();return r[p]}function parseTimes(e,t){if(typeof t==="object"){e.times=+t.times||Q;e.intervalFunc=typeof t.interval==="function"?t.interval:constant(+t.interval||X);e.errorFilter=t.errorFilter}else if(typeof t==="number"||typeof t==="string"){e.times=+t||Q}else{throw new Error("Invalid arguments for async.retry")}}function retryable(e,t){if(!t){t=e;e=null}let r=e&&e.arity||t.length;if(isAsync(t)){r+=1}var i=wrapAsync(t);return initialParams(((t,n)=>{if(t.length<r-1||n==null){t.push(n);n=promiseCallback()}function taskFn(e){i(...t,e)}if(e)retry(e,taskFn,n);else retry(taskFn,n);return n[p]}))}function series(e,t){return q(c,e,t)}function some(e,t,r){return _createTester(Boolean,(e=>e))(l,e,t,r)}var J=awaitify(some,3);function someLimit(e,t,r,i){return _createTester(Boolean,(e=>e))(eachOfLimit$2(t),e,r,i)}var ee=awaitify(someLimit,4);function someSeries(e,t,r){return _createTester(Boolean,(e=>e))(c,e,t,r)}var te=awaitify(someSeries,3);function sortBy(e,t,r){var i=wrapAsync(t);return u(e,((e,t)=>{i(e,((r,i)=>{if(r)return t(r);t(r,{value:e,criteria:i})}))}),((e,t)=>{if(e)return r(e);r(null,t.sort(comparator).map((e=>e.value)))}));function comparator(e,t){var r=e.criteria,i=t.criteria;return r<i?-1:r>i?1:0}}var re=awaitify(sortBy,3);function timeout(e,t,r){var i=wrapAsync(e);return initialParams(((n,s)=>{var a=false;var o;function timeoutCallback(){var t=e.name||"anonymous";var i=new Error('Callback function "'+t+'" timed out.');i.code="ETIMEDOUT";if(r){i.info=r}a=true;s(i)}n.push(((...e)=>{if(!a){s(...e);clearTimeout(o)}}));o=setTimeout(timeoutCallback,t);i(...n)}))}function range(e){var t=Array(e);while(e--){t[e]=e}return t}function timesLimit(e,t,r,i){var n=wrapAsync(r);return S(range(e),t,n,i)}function times(e,t,r){return timesLimit(e,Infinity,t,r)}function timesSeries(e,t,r){return timesLimit(e,1,t,r)}function transform(e,t,r,i){if(arguments.length<=3&&typeof t==="function"){i=r;r=t;t=Array.isArray(e)?[]:{}}i=once(i||promiseCallback());var n=wrapAsync(r);l(e,((e,r,i)=>{n(t,e,r,i)}),(e=>i(e,t)));return i[p]}function tryEach(e,t){var r=null;var i;return M(e,((e,t)=>{wrapAsync(e)(((e,...n)=>{if(e===false)return t(e);if(n.length<2){[i]=n}else{i=n}r=e;t(e?null:{})}))}),(()=>t(r,i)))}var ie=awaitify(tryEach);function unmemoize(e){return(...t)=>(e.unmemoized||e)(...t)}function whilst(e,t,r){r=onlyOnce(r);var i=wrapAsync(t);var n=wrapAsync(e);var s=[];function next(e,...t){if(e)return r(e);s=t;if(e===false)return;n(check)}function check(e,t){if(e)return r(e);if(e===false)return;if(!t)return r(null,...s);i(next)}return n(check)}var ne=awaitify(whilst,3);function until(e,t,r){const i=wrapAsync(e);return ne((e=>i(((t,r)=>e(t,!r)))),t,r)}function waterfall(e,t){t=once(t);if(!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var r=0;function nextTask(t){var i=wrapAsync(e[r++]);i(...t,onlyOnce(next))}function next(i,...n){if(i===false)return;if(i||r===e.length){return t(i,...n)}nextTask(n)}nextTask([])}var se=awaitify(waterfall);var ae={apply:apply,applyEach:f,applyEachSeries:d,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo$1,cargoQueue:cargo,compose:compose,concat:x,concatLimit:v,concatSeries:k,constant:constant$1,detect:T,detectLimit:R,detectSeries:A,dir:O,doUntil:doUntil,doWhilst:L,each:P,eachLimit:C,eachOf:l,eachOfLimit:o,eachOfSeries:c,eachSeries:M,ensureAsync:ensureAsync,every:I,everyLimit:D,everySeries:N,filter:B,filterLimit:F,filterSeries:j,forever:W,groupBy:groupBy,groupByLimit:z,groupBySeries:groupBySeries,log:U,map:u,mapLimit:S,mapSeries:h,mapValues:mapValues,mapValuesLimit:G,mapValuesSeries:mapValuesSeries,memoize:memoize,nextTick:H,parallel:parallel,parallelLimit:parallelLimit,priorityQueue:priorityQueue,queue:queue,race:V,reduce:_,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:Z,rejectLimit:Y,rejectSeries:K,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:s,some:J,someLimit:ee,someSeries:te,sortBy:re,timeout:timeout,times:times,timesLimit:timesLimit,timesSeries:timesSeries,transform:transform,tryEach:ie,unmemoize:unmemoize,until:until,waterfall:se,whilst:ne,all:I,allLimit:D,allSeries:N,any:J,anyLimit:ee,anySeries:te,find:T,findLimit:R,findSeries:A,flatMap:x,flatMapLimit:v,flatMapSeries:k,forEach:P,forEachSeries:M,forEachLimit:C,forEachOf:l,forEachOfSeries:c,forEachOfLimit:o,inject:_,foldl:_,foldr:reduceRight,select:B,selectLimit:F,selectSeries:j,wrapSync:asyncify,during:ne,doDuring:L};e.all=I;e.allLimit=D;e.allSeries=N;e.any=J;e.anyLimit=ee;e.anySeries=te;e.apply=apply;e.applyEach=f;e.applyEachSeries=d;e.asyncify=asyncify;e.auto=auto;e.autoInject=autoInject;e.cargo=cargo$1;e.cargoQueue=cargo;e.compose=compose;e.concat=x;e.concatLimit=v;e.concatSeries=k;e.constant=constant$1;e.default=ae;e.detect=T;e.detectLimit=R;e.detectSeries=A;e.dir=O;e.doDuring=L;e.doUntil=doUntil;e.doWhilst=L;e.during=ne;e.each=P;e.eachLimit=C;e.eachOf=l;e.eachOfLimit=o;e.eachOfSeries=c;e.eachSeries=M;e.ensureAsync=ensureAsync;e.every=I;e.everyLimit=D;e.everySeries=N;e.filter=B;e.filterLimit=F;e.filterSeries=j;e.find=T;e.findLimit=R;e.findSeries=A;e.flatMap=x;e.flatMapLimit=v;e.flatMapSeries=k;e.foldl=_;e.foldr=reduceRight;e.forEach=P;e.forEachLimit=C;e.forEachOf=l;e.forEachOfLimit=o;e.forEachOfSeries=c;e.forEachSeries=M;e.forever=W;e.groupBy=groupBy;e.groupByLimit=z;e.groupBySeries=groupBySeries;e.inject=_;e.log=U;e.map=u;e.mapLimit=S;e.mapSeries=h;e.mapValues=mapValues;e.mapValuesLimit=G;e.mapValuesSeries=mapValuesSeries;e.memoize=memoize;e.nextTick=H;e.parallel=parallel;e.parallelLimit=parallelLimit;e.priorityQueue=priorityQueue;e.queue=queue;e.race=V;e.reduce=_;e.reduceRight=reduceRight;e.reflect=reflect;e.reflectAll=reflectAll;e.reject=Z;e.rejectLimit=Y;e.rejectSeries=K;e.retry=retry;e.retryable=retryable;e.select=B;e.selectLimit=F;e.selectSeries=j;e.seq=seq;e.series=series;e.setImmediate=s;e.some=J;e.someLimit=ee;e.someSeries=te;e.sortBy=re;e.timeout=timeout;e.times=times;e.timesLimit=timesLimit;e.timesSeries=timesSeries;e.transform=transform;e.tryEach=ie;e.unmemoize=unmemoize;e.until=until;e.waterfall=se;e.whilst=ne;e.wrapSync=asyncify;Object.defineProperty(e,"__esModule",{value:true})}))},2312:function(e){function isBuffer(e){return Buffer.isBuffer(e)||e instanceof Uint8Array}function isEncoding(e){return Buffer.isEncoding(e)}function alloc(e,t,r){return Buffer.alloc(e,t,r)}function allocUnsafe(e){return Buffer.allocUnsafe(e)}function allocUnsafeSlow(e){return Buffer.allocUnsafeSlow(e)}function byteLength(e,t){return Buffer.byteLength(e,t)}function compare(e,t){return Buffer.compare(e,t)}function concat(e,t){return Buffer.concat(e,t)}function copy(e,t,r,i,n){return toBuffer(e).copy(t,r,i,n)}function equals(e,t){return toBuffer(e).equals(t)}function fill(e,t,r,i,n){return toBuffer(e).fill(t,r,i,n)}function from(e,t,r){return Buffer.from(e,t,r)}function includes(e,t,r,i){return toBuffer(e).includes(t,r,i)}function indexOf(e,t,r,i){return toBuffer(e).indexOf(t,r,i)}function lastIndexOf(e,t,r,i){return toBuffer(e).lastIndexOf(t,r,i)}function swap16(e){return toBuffer(e).swap16()}function swap32(e){return toBuffer(e).swap32()}function swap64(e){return toBuffer(e).swap64()}function toBuffer(e){if(Buffer.isBuffer(e))return e;return Buffer.from(e.buffer,e.byteOffset,e.byteLength)}function toString(e,t,r,i){return toBuffer(e).toString(t,r,i)}function write(e,t,r,i,n){return toBuffer(e).write(t,r,i,n)}function writeDoubleLE(e,t,r){return toBuffer(e).writeDoubleLE(t,r)}function writeFloatLE(e,t,r){return toBuffer(e).writeFloatLE(t,r)}function writeUInt32LE(e,t,r){return toBuffer(e).writeUInt32LE(t,r)}function writeInt32LE(e,t,r){return toBuffer(e).writeInt32LE(t,r)}function readDoubleLE(e,t){return toBuffer(e).readDoubleLE(t)}function readFloatLE(e,t){return toBuffer(e).readFloatLE(t)}function readUInt32LE(e,t){return toBuffer(e).readUInt32LE(t)}function readInt32LE(e,t){return toBuffer(e).readInt32LE(t)}function writeDoubleBE(e,t,r){return toBuffer(e).writeDoubleBE(t,r)}function writeFloatBE(e,t,r){return toBuffer(e).writeFloatBE(t,r)}function writeUInt32BE(e,t,r){return toBuffer(e).writeUInt32BE(t,r)}function writeInt32BE(e,t,r){return toBuffer(e).writeInt32BE(t,r)}function readDoubleBE(e,t){return toBuffer(e).readDoubleBE(t)}function readFloatBE(e,t){return toBuffer(e).readFloatBE(t)}function readUInt32BE(e,t){return toBuffer(e).readUInt32BE(t)}function readInt32BE(e,t){return toBuffer(e).readInt32BE(t)}e.exports={isBuffer:isBuffer,isEncoding:isEncoding,alloc:alloc,allocUnsafe:allocUnsafe,allocUnsafeSlow:allocUnsafeSlow,byteLength:byteLength,compare:compare,concat:concat,copy:copy,equals:equals,fill:fill,from:from,includes:includes,indexOf:indexOf,lastIndexOf:lastIndexOf,swap16:swap16,swap32:swap32,swap64:swap64,toBuffer:toBuffer,toString:toString,write:write,writeDoubleLE:writeDoubleLE,writeFloatLE:writeFloatLE,writeUInt32LE:writeUInt32LE,writeInt32LE:writeInt32LE,readDoubleLE:readDoubleLE,readFloatLE:readFloatLE,readUInt32LE:readUInt32LE,readInt32LE:readInt32LE,writeDoubleBE:writeDoubleBE,writeFloatBE:writeFloatBE,writeUInt32BE:writeUInt32BE,writeInt32BE:writeInt32BE,readDoubleBE:readDoubleBE,readFloatBE:readFloatBE,readUInt32BE:readUInt32BE,readInt32BE:readInt32BE}},127:function(e){"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var i=range(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var i,n,s,a,o;var l=r.indexOf(e);var u=r.indexOf(t,l+1);var f=l;if(l>=0&&u>0){if(e===t){return[l,u]}i=[];s=r.length;while(f>=0&&!o){if(f==l){i.push(f);l=r.indexOf(e,f+1)}else if(i.length==1){o=[i.pop(),u]}else{n=i.pop();if(n<s){s=n;a=u}u=r.indexOf(t,f+1)}f=l<u&&l>=0?l:u}if(i.length){o=[s,a]}}return o}},6083:function(e,t,r){var i=r(127);e.exports=expandTop;var n="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var o="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(n).split("\\{").join(s).split("\\}").join(a).split("\\,").join(o).split("\\.").join(l)}function unescapeBraces(e){return e.split(n).join("\\").split(s).join("{").split(a).join("}").split(o).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var n=r.pre;var s=r.body;var a=r.post;var o=n.split(",");o[o.length-1]+="{"+s+"}";var l=parseCommaParts(a);if(a.length){o[o.length-1]+=l.shift();o.push.apply(o,l)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var n=i("{","}",e);if(!n)return[e];var s=n.pre;var o=n.post.length?expand(n.post,false):[""];if(/\$$/.test(n.pre)){for(var l=0;l<o.length;l++){var u=s+"{"+n.body+"}"+o[l];r.push(u)}}else{var f=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body);var h=f||c;var d=n.body.indexOf(",")>=0;if(!h&&!d){if(n.post.match(/,.*\}/)){e=n.pre+"{"+n.body+a+n.post;return expand(e)}return[e]}var p;if(h){p=n.body.split(/\.\./)}else{p=parseCommaParts(n.body);if(p.length===1){p=expand(p[0],false).map(embrace);if(p.length===1){return o.map((function(e){return n.pre+p[0]+e}))}}}var y;if(h){var b=numeric(p[0]);var g=numeric(p[1]);var w=Math.max(p[0].length,p[1].length);var _=p.length==3?Math.abs(numeric(p[2])):1;var S=lte;var v=g<b;if(v){_*=-1;S=gte}var x=p.some(isPadded);y=[];for(var k=b;S(k,g);k+=_){var T;if(c){T=String.fromCharCode(k);if(T==="\\")T=""}else{T=String(k);if(x){var R=w-T.length;if(R>0){var A=new Array(R+1).join("0");if(k<0)T="-"+A+T.slice(1);else T=A+T}}}y.push(T)}}else{y=[];for(var O=0;O<p.length;O++){y.push.apply(y,expand(p[O],false))}}for(var O=0;O<y.length;O++){for(var l=0;l<o.length;l++){var u=s+y[O]+o[l];if(!t||h||u)r.push(u)}}}return r}},4271:function(e){var t=e.exports=function(){};t.prototype.getName=function(){};t.prototype.getSize=function(){};t.prototype.getLastModifiedDate=function(){};t.prototype.isDirectory=function(){}},4307:function(e,t,r){var i=r(9023).inherits;var n=r(3187);var s=r(8523).Transform;var a=r(4271);var o=r(4487);var l=e.exports=function(e){if(!(this instanceof l)){return new l(e)}s.call(this,e);this.offset=0;this._archive={finish:false,finished:false,processing:false}};i(l,s);l.prototype._appendBuffer=function(e,t,r){};l.prototype._appendStream=function(e,t,r){};l.prototype._emitErrorCallback=function(e){if(e){this.emit("error",e)}};l.prototype._finish=function(e){};l.prototype._normalizeEntry=function(e){};l.prototype._transform=function(e,t,r){r(null,e)};l.prototype.entry=function(e,t,r){t=t||null;if(typeof r!=="function"){r=this._emitErrorCallback.bind(this)}if(!(e instanceof a)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}this._archive.processing=true;this._normalizeEntry(e);this._entry=e;t=o.normalizeInputSource(t);if(Buffer.isBuffer(t)){this._appendBuffer(e,t,r)}else if(n(t)){this._appendStream(e,t,r)}else{this._archive.processing=false;r(new Error("input source must be valid Stream or Buffer instance"));return}return this};l.prototype.finish=function(){if(this._archive.processing){this._archive.finish=true;return}this._finish()};l.prototype.getBytesWritten=function(){return this.offset};l.prototype.write=function(e,t){if(e){this.offset+=e.length}return s.prototype.write.call(this,e,t)}},5765:function(e){e.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},117:function(e,t,r){var i=r(794);var n=1<<3;var s=1<<0;var a=1<<2;var o=1<<1;var l=1<<6;var u=1<<11;var f=e.exports=function(){if(!(this instanceof f)){return new f}this.descriptor=false;this.encryption=false;this.utf8=false;this.numberOfShannonFanoTrees=0;this.strongEncryption=false;this.slidingDictionarySize=0;return this};f.prototype.encode=function(){return i.getShortBytes((this.descriptor?n:0)|(this.utf8?u:0)|(this.encryption?s:0)|(this.strongEncryption?l:0))};f.prototype.parse=function(e,t){var r=i.getShortBytesValue(e,t);var c=new f;c.useDataDescriptor((r&n)!==0);c.useUTF8ForNames((r&u)!==0);c.useStrongEncryption((r&l)!==0);c.useEncryption((r&s)!==0);c.setSlidingDictionarySize((r&o)!==0?8192:4096);c.setNumberOfShannonFanoTrees((r&a)!==0?3:2);return c};f.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e};f.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};f.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e};f.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};f.prototype.useDataDescriptor=function(e){this.descriptor=e};f.prototype.usesDataDescriptor=function(){return this.descriptor};f.prototype.useEncryption=function(e){this.encryption=e};f.prototype.usesEncryption=function(){return this.encryption};f.prototype.useStrongEncryption=function(e){this.strongEncryption=e};f.prototype.usesStrongEncryption=function(){return this.strongEncryption};f.prototype.useUTF8ForNames=function(e){this.utf8=e};f.prototype.usesUTF8ForNames=function(){return this.utf8}},15:function(e){e.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},794:function(e){var t=e.exports={};t.dateToDos=function(e,t){t=t||false;var r=t?e.getFullYear():e.getUTCFullYear();if(r<1980){return 2162688}else if(r>=2044){return 2141175677}var i={year:r,month:t?e.getMonth():e.getUTCMonth(),date:t?e.getDate():e.getUTCDate(),hours:t?e.getHours():e.getUTCHours(),minutes:t?e.getMinutes():e.getUTCMinutes(),seconds:t?e.getSeconds():e.getUTCSeconds()};return i.year-1980<<25|i.month+1<<21|i.date<<16|i.hours<<11|i.minutes<<5|i.seconds/2};t.dosToDate=function(e){return new Date((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1)};t.fromDosTime=function(e){return t.dosToDate(e.readUInt32LE(0))};t.getEightBytes=function(e){var t=Buffer.alloc(8);t.writeUInt32LE(e%4294967296,0);t.writeUInt32LE(e/4294967296|0,4);return t};t.getShortBytes=function(e){var t=Buffer.alloc(2);t.writeUInt16LE((e&65535)>>>0,0);return t};t.getShortBytesValue=function(e,t){return e.readUInt16LE(t)};t.getLongBytes=function(e){var t=Buffer.alloc(4);t.writeUInt32LE((e&4294967295)>>>0,0);return t};t.getLongBytesValue=function(e,t){return e.readUInt32LE(t)};t.toDosTime=function(e){return t.getLongBytes(t.dateToDos(e))}},6469:function(e,t,r){var i=r(9023).inherits;var n=r(4527);var s=r(4271);var a=r(117);var o=r(15);var l=r(5765);var u=r(794);var f=e.exports=function(e){if(!(this instanceof f)){return new f(e)}s.call(this);this.platform=l.PLATFORM_FAT;this.method=-1;this.name=null;this.size=0;this.csize=0;this.gpb=new a;this.crc=0;this.time=-1;this.minver=l.MIN_VERSION_INITIAL;this.mode=-1;this.extra=null;this.exattr=0;this.inattr=0;this.comment=null;if(e){this.setName(e)}};i(f,s);f.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};f.prototype.getComment=function(){return this.comment!==null?this.comment:""};f.prototype.getCompressedSize=function(){return this.csize};f.prototype.getCrc=function(){return this.crc};f.prototype.getExternalAttributes=function(){return this.exattr};f.prototype.getExtra=function(){return this.extra!==null?this.extra:l.EMPTY};f.prototype.getGeneralPurposeBit=function(){return this.gpb};f.prototype.getInternalAttributes=function(){return this.inattr};f.prototype.getLastModifiedDate=function(){return this.getTime()};f.prototype.getLocalFileDataExtra=function(){return this.getExtra()};f.prototype.getMethod=function(){return this.method};f.prototype.getName=function(){return this.name};f.prototype.getPlatform=function(){return this.platform};f.prototype.getSize=function(){return this.size};f.prototype.getTime=function(){return this.time!==-1?u.dosToDate(this.time):-1};f.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};f.prototype.getUnixMode=function(){return this.platform!==l.PLATFORM_UNIX?0:this.getExternalAttributes()>>l.SHORT_SHIFT&l.SHORT_MASK};f.prototype.getVersionNeededToExtract=function(){return this.minver};f.prototype.setComment=function(e){if(Buffer.byteLength(e)!==e.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.comment=e};f.prototype.setCompressedSize=function(e){if(e<0){throw new Error("invalid entry compressed size")}this.csize=e};f.prototype.setCrc=function(e){if(e<0){throw new Error("invalid entry crc32")}this.crc=e};f.prototype.setExternalAttributes=function(e){this.exattr=e>>>0};f.prototype.setExtra=function(e){this.extra=e};f.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof a)){throw new Error("invalid entry GeneralPurposeBit")}this.gpb=e};f.prototype.setInternalAttributes=function(e){this.inattr=e};f.prototype.setMethod=function(e){if(e<0){throw new Error("invalid entry compression method")}this.method=e};f.prototype.setName=function(e,t=false){e=n(e,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"");if(t){e=`/${e}`}if(Buffer.byteLength(e)!==e.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.name=e};f.prototype.setPlatform=function(e){this.platform=e};f.prototype.setSize=function(e){if(e<0){throw new Error("invalid entry size")}this.size=e};f.prototype.setTime=function(e,t){if(!(e instanceof Date)){throw new Error("invalid entry time")}this.time=u.dateToDos(e,t)};f.prototype.setUnixMode=function(e){e|=this.isDirectory()?l.S_IFDIR:l.S_IFREG;var t=0;t|=e<<l.SHORT_SHIFT|(this.isDirectory()?l.S_DOS_D:l.S_DOS_A);this.setExternalAttributes(t);this.mode=e&l.MODE_MASK;this.platform=l.PLATFORM_UNIX};f.prototype.setVersionNeededToExtract=function(e){this.minver=e};f.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};f.prototype.isUnixSymlink=function(){return(this.getUnixMode()&o.FILE_TYPE_FLAG)===o.LINK_FLAG};f.prototype.isZip64=function(){return this.csize>l.ZIP64_MAGIC||this.size>l.ZIP64_MAGIC}},6509:function(e,t,r){var i=r(9023).inherits;var n=r(3778);var{CRC32Stream:s}=r(6504);var{DeflateCRC32Stream:a}=r(6504);var o=r(4307);var l=r(6469);var u=r(117);var f=r(5765);var c=r(4487);var h=r(794);var d=e.exports=function(e){if(!(this instanceof d)){return new d(e)}e=this.options=this._defaults(e);o.call(this,e);this._entry=null;this._entries=[];this._archive={centralLength:0,centralOffset:0,comment:"",finish:false,finished:false,processing:false,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime}};i(d,o);d.prototype._afterAppend=function(e){this._entries.push(e);if(e.getGeneralPurposeBit().usesDataDescriptor()){this._writeDataDescriptor(e)}this._archive.processing=false;this._entry=null;if(this._archive.finish&&!this._archive.finished){this._finish()}};d.prototype._appendBuffer=function(e,t,r){if(t.length===0){e.setMethod(f.METHOD_STORED)}var i=e.getMethod();if(i===f.METHOD_STORED){e.setSize(t.length);e.setCompressedSize(t.length);e.setCrc(n.buf(t)>>>0)}this._writeLocalFileHeader(e);if(i===f.METHOD_STORED){this.write(t);this._afterAppend(e);r(null,e);return}else if(i===f.METHOD_DEFLATED){this._smartStream(e,r).end(t);return}else{r(new Error("compression method "+i+" not implemented"));return}};d.prototype._appendStream=function(e,t,r){e.getGeneralPurposeBit().useDataDescriptor(true);e.setVersionNeededToExtract(f.MIN_VERSION_DATA_DESCRIPTOR);this._writeLocalFileHeader(e);var i=this._smartStream(e,r);t.once("error",(function(e){i.emit("error",e);i.end()}));t.pipe(i)};d.prototype._defaults=function(e){if(typeof e!=="object"){e={}}if(typeof e.zlib!=="object"){e.zlib={}}if(typeof e.zlib.level!=="number"){e.zlib.level=f.ZLIB_BEST_SPEED}e.forceZip64=!!e.forceZip64;e.forceLocalTime=!!e.forceLocalTime;return e};d.prototype._finish=function(){this._archive.centralOffset=this.offset;this._entries.forEach(function(e){this._writeCentralFileHeader(e)}.bind(this));this._archive.centralLength=this.offset-this._archive.centralOffset;if(this.isZip64()){this._writeCentralDirectoryZip64()}this._writeCentralDirectoryEnd();this._archive.processing=false;this._archive.finish=true;this._archive.finished=true;this.end()};d.prototype._normalizeEntry=function(e){if(e.getMethod()===-1){e.setMethod(f.METHOD_DEFLATED)}if(e.getMethod()===f.METHOD_DEFLATED){e.getGeneralPurposeBit().useDataDescriptor(true);e.setVersionNeededToExtract(f.MIN_VERSION_DATA_DESCRIPTOR)}if(e.getTime()===-1){e.setTime(new Date,this._archive.forceLocalTime)}e._offsets={file:0,data:0,contents:0}};d.prototype._smartStream=function(e,t){var r=e.getMethod()===f.METHOD_DEFLATED;var i=r?new a(this.options.zlib):new s;var n=null;function handleStuff(){var r=i.digest().readUInt32BE(0);e.setCrc(r);e.setSize(i.size());e.setCompressedSize(i.size(true));this._afterAppend(e);t(n,e)}i.once("end",handleStuff.bind(this));i.once("error",(function(e){n=e}));i.pipe(this,{end:false});return i};d.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length;var t=this._archive.centralLength;var r=this._archive.centralOffset;if(this.isZip64()){e=f.ZIP64_MAGIC_SHORT;t=f.ZIP64_MAGIC;r=f.ZIP64_MAGIC}this.write(h.getLongBytes(f.SIG_EOCD));this.write(f.SHORT_ZERO);this.write(f.SHORT_ZERO);this.write(h.getShortBytes(e));this.write(h.getShortBytes(e));this.write(h.getLongBytes(t));this.write(h.getLongBytes(r));var i=this.getComment();var n=Buffer.byteLength(i);this.write(h.getShortBytes(n));this.write(i)};d.prototype._writeCentralDirectoryZip64=function(){this.write(h.getLongBytes(f.SIG_ZIP64_EOCD));this.write(h.getEightBytes(44));this.write(h.getShortBytes(f.MIN_VERSION_ZIP64));this.write(h.getShortBytes(f.MIN_VERSION_ZIP64));this.write(f.LONG_ZERO);this.write(f.LONG_ZERO);this.write(h.getEightBytes(this._entries.length));this.write(h.getEightBytes(this._entries.length));this.write(h.getEightBytes(this._archive.centralLength));this.write(h.getEightBytes(this._archive.centralOffset));this.write(h.getLongBytes(f.SIG_ZIP64_EOCD_LOC));this.write(f.LONG_ZERO);this.write(h.getEightBytes(this._archive.centralOffset+this._archive.centralLength));this.write(h.getLongBytes(1))};d.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit();var r=e.getMethod();var i=e._offsets.file;var n=e.getSize();var s=e.getCompressedSize();if(e.isZip64()||i>f.ZIP64_MAGIC){n=f.ZIP64_MAGIC;s=f.ZIP64_MAGIC;i=f.ZIP64_MAGIC;e.setVersionNeededToExtract(f.MIN_VERSION_ZIP64);var a=Buffer.concat([h.getShortBytes(f.ZIP64_EXTRA_ID),h.getShortBytes(24),h.getEightBytes(e.getSize()),h.getEightBytes(e.getCompressedSize()),h.getEightBytes(e._offsets.file)],28);e.setExtra(a)}this.write(h.getLongBytes(f.SIG_CFH));this.write(h.getShortBytes(e.getPlatform()<<8|f.VERSION_MADEBY));this.write(h.getShortBytes(e.getVersionNeededToExtract()));this.write(t.encode());this.write(h.getShortBytes(r));this.write(h.getLongBytes(e.getTimeDos()));this.write(h.getLongBytes(e.getCrc()));this.write(h.getLongBytes(s));this.write(h.getLongBytes(n));var o=e.getName();var l=e.getComment();var u=e.getCentralDirectoryExtra();if(t.usesUTF8ForNames()){o=Buffer.from(o);l=Buffer.from(l)}this.write(h.getShortBytes(o.length));this.write(h.getShortBytes(u.length));this.write(h.getShortBytes(l.length));this.write(f.SHORT_ZERO);this.write(h.getShortBytes(e.getInternalAttributes()));this.write(h.getLongBytes(e.getExternalAttributes()));this.write(h.getLongBytes(i));this.write(o);this.write(u);this.write(l)};d.prototype._writeDataDescriptor=function(e){this.write(h.getLongBytes(f.SIG_DD));this.write(h.getLongBytes(e.getCrc()));if(e.isZip64()){this.write(h.getEightBytes(e.getCompressedSize()));this.write(h.getEightBytes(e.getSize()))}else{this.write(h.getLongBytes(e.getCompressedSize()));this.write(h.getLongBytes(e.getSize()))}};d.prototype._writeLocalFileHeader=function(e){var t=e.getGeneralPurposeBit();var r=e.getMethod();var i=e.getName();var n=e.getLocalFileDataExtra();if(e.isZip64()){t.useDataDescriptor(true);e.setVersionNeededToExtract(f.MIN_VERSION_ZIP64)}if(t.usesUTF8ForNames()){i=Buffer.from(i)}e._offsets.file=this.offset;this.write(h.getLongBytes(f.SIG_LFH));this.write(h.getShortBytes(e.getVersionNeededToExtract()));this.write(t.encode());this.write(h.getShortBytes(r));this.write(h.getLongBytes(e.getTimeDos()));e._offsets.data=this.offset;if(t.usesDataDescriptor()){this.write(f.LONG_ZERO);this.write(f.LONG_ZERO);this.write(f.LONG_ZERO)}else{this.write(h.getLongBytes(e.getCrc()));this.write(h.getLongBytes(e.getCompressedSize()));this.write(h.getLongBytes(e.getSize()))}this.write(h.getShortBytes(i.length));this.write(h.getShortBytes(n.length));this.write(i);this.write(n);e._offsets.contents=this.offset};d.prototype.getComment=function(e){return this._archive.comment!==null?this._archive.comment:""};d.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>f.ZIP64_MAGIC_SHORT||this._archive.centralLength>f.ZIP64_MAGIC||this._archive.centralOffset>f.ZIP64_MAGIC};d.prototype.setComment=function(e){this._archive.comment=e}},3223:function(e,t,r){e.exports={ArchiveEntry:r(4271),ZipArchiveEntry:r(6469),ArchiveOutputStream:r(4307),ZipArchiveOutputStream:r(6509)}},4487:function(e,t,r){var i=r(2203).Stream;var n=r(8523).PassThrough;var s=r(3187);var a=e.exports={};a.normalizeInputSource=function(e){if(e===null){return Buffer.alloc(0)}else if(typeof e==="string"){return Buffer.from(e)}else if(s(e)&&!e._readableState){var t=new n;e.pipe(t);return t}return e}},9810:function(e,t,r){function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}t.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}t.isBoolean=isBoolean;function isNull(e){return e===null}t.isNull=isNull;function isNullOrUndefined(e){return e==null}t.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}t.isNumber=isNumber;function isString(e){return typeof e==="string"}t.isString=isString;function isSymbol(e){return typeof e==="symbol"}t.isSymbol=isSymbol;function isUndefined(e){return e===void 0}t.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}t.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}t.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.isError=isError;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=isPrimitive;t.isBuffer=r(181).Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},3778:function(e,t){
50
50
  /*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
51
- var r;(function(e){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){e(t)}else{}}else{e(r={})}})((function(e){e.version="1.2.2";function signed_crc_table(){var e=0,t=new Array(256);for(var r=0;r!=256;++r){e=r;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;t[r]=e}return typeof Int32Array!=="undefined"?new Int32Array(t):t}var t=signed_crc_table();function slice_by_16_tables(e){var t=0,r=0,n=0,i=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(n=0;n!=256;++n)i[n]=e[n];for(n=0;n!=256;++n){r=e[n];for(t=256+n;t<4096;t+=256)r=i[t]=r>>>8^e[r&255]}var a=[];for(n=1;n!=16;++n)a[n-1]=typeof Int32Array!=="undefined"?i.subarray(n*256,n*256+256):i.slice(n*256,n*256+256);return a}var r=slice_by_16_tables(t);var n=r[0],i=r[1],a=r[2],s=r[3],o=r[4];var u=r[5],l=r[6],c=r[7],h=r[8],p=r[9];var d=r[10],y=r[11],g=r[12],v=r[13],b=r[14];function crc32_bstr(e,r){var n=r^-1;for(var i=0,a=e.length;i<a;)n=n>>>8^t[(n^e.charCodeAt(i++))&255];return~n}function crc32_buf(e,r){var _=r^-1,w=e.length-15,S=0;for(;S<w;)_=b[e[S++]^_&255]^v[e[S++]^_>>8&255]^g[e[S++]^_>>16&255]^y[e[S++]^_>>>24]^d[e[S++]]^p[e[S++]]^h[e[S++]]^c[e[S++]]^l[e[S++]]^u[e[S++]]^o[e[S++]]^s[e[S++]]^a[e[S++]]^i[e[S++]]^n[e[S++]]^t[e[S++]];w+=15;while(S<w)_=_>>>8^t[(_^e[S++])&255];return~_}function crc32_str(e,r){var n=r^-1;for(var i=0,a=e.length,s=0,o=0;i<a;){s=e.charCodeAt(i++);if(s<128){n=n>>>8^t[(n^s)&255]}else if(s<2048){n=n>>>8^t[(n^(192|s>>6&31))&255];n=n>>>8^t[(n^(128|s&63))&255]}else if(s>=55296&&s<57344){s=(s&1023)+64;o=e.charCodeAt(i++)&1023;n=n>>>8^t[(n^(240|s>>8&7))&255];n=n>>>8^t[(n^(128|s>>2&63))&255];n=n>>>8^t[(n^(128|o>>6&15|(s&3)<<4))&255];n=n>>>8^t[(n^(128|o&63))&255]}else{n=n>>>8^t[(n^(224|s>>12&15))&255];n=n>>>8^t[(n^(128|s>>6&63))&255];n=n>>>8^t[(n^(128|s&63))&255]}}return~n}e.table=t;e.bstr=crc32_bstr;e.buf=crc32_buf;e.str=crc32_str}))},8341:function(e,t,r){"use strict";const{Transform:n}=r(1643);const i=r(3778);class CRC32Stream extends n{constructor(e){super(e);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(e,t,r){if(e){this.checksum=i.buf(e,this.checksum)>>>0;this.rawSize+=e.length}r(null,e)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}e.exports=CRC32Stream},559:function(e,t,r){"use strict";const{DeflateRaw:n}=r(3106);const i=r(3778);class DeflateCRC32Stream extends n{constructor(e){super(e);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(e,t){if(e){this.compressedSize+=e.length}return super.push(e,t)}_transform(e,t,r){if(e){this.checksum=i.buf(e,this.checksum)>>>0;this.rawSize+=e.length}super._transform(e,t,r)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(e=false){if(e){return this.compressedSize}else{return this.rawSize}}}e.exports=DeflateCRC32Stream},655:function(e,t,r){"use strict";e.exports={CRC32Stream:r(8341),DeflateCRC32Stream:r(559)}},5859:function(e,t,r){var n=r(8068);var noop=function(){};var isRequest=function(e){return e.setHeader&&typeof e.abort==="function"};var isChildProcess=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var eos=function(e,t,r){if(typeof t==="function")return eos(e,null,t);if(!t)t={};r=n(r||noop);var i=e._writableState;var a=e._readableState;var s=t.readable||t.readable!==false&&e.readable;var o=t.writable||t.writable!==false&&e.writable;var u=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){o=false;if(!s)r.call(e)};var onend=function(){s=false;if(!o)r.call(e)};var onexit=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var onerror=function(t){r.call(e,t)};var onclose=function(){process.nextTick(onclosenexttick)};var onclosenexttick=function(){if(u)return;if(s&&!(a&&(a.ended&&!a.destroyed)))return r.call(e,new Error("premature close"));if(o&&!(i&&(i.ended&&!i.destroyed)))return r.call(e,new Error("premature close"))};var onrequest=function(){e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);e.on("abort",onclose);if(e.req)onrequest();else e.on("request",onrequest)}else if(o&&!i){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(isChildProcess(e))e.on("exit",onexit);e.on("end",onend);e.on("finish",onfinish);if(t.error!==false)e.on("error",onerror);e.on("close",onclose);return function(){u=true;e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("exit",onexit);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)}};e.exports=eos},9033:function(e,t,r){e.exports=r(9896).constants||r(9140)},1931:function(e,t,r){e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=r(9896);var i=n.realpath;var a=n.realpathSync;var s=process.version;var o=/^v[0-5]\./.test(s);var u=r(5022);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(o){return i(e,t,r)}if(typeof t==="function"){r=t;t=null}i(e,t,(function(n,i){if(newError(n)){u.realpath(e,t,r)}else{r(n,i)}}))}function realpathSync(e,t){if(o){return a(e,t)}try{return a(e,t)}catch(r){if(newError(r)){return u.realpathSync(e,t)}else{throw r}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=i;n.realpathSync=a}},5022:function(e,t,r){var n=r(6928);var i=process.platform==="win32";var a=r(9896);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(s){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var o=n.normalize;if(i){var u=/(.*?)(?:[\/\\]+|$)/g}else{var u=/(.*?)(?:[\/]+|$)/g}if(i){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,s={},o={};var c;var h;var p;var d;start();function start(){var t=l.exec(e);c=t[0].length;h=t[0];p=t[0];d="";if(i&&!o[p]){a.lstatSync(p);o[p]=true}}while(c<e.length){u.lastIndex=c;var y=u.exec(e);d=h;h+=y[0];p=d+y[1];c=u.lastIndex;if(o[p]||t&&t[p]===p){continue}var g;if(t&&Object.prototype.hasOwnProperty.call(t,p)){g=t[p]}else{var v=a.lstatSync(p);if(!v.isSymbolicLink()){o[p]=true;if(t)t[p]=p;continue}var b=null;if(!i){var _=v.dev.toString(32)+":"+v.ino.toString(32);if(s.hasOwnProperty(_)){b=s[_]}}if(b===null){a.statSync(p);b=a.readlinkSync(p)}g=n.resolve(d,b);if(t)t[p]=g;if(!i)s[_]=b}e=n.resolve(g,e.slice(c));start()}if(t)t[r]=e;return e};t.realpath=function realpath(e,t,r){if(typeof r!=="function"){r=maybeCallback(t);t=null}e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(r.bind(null,null,t[e]))}var s=e,o={},c={};var h;var p;var d;var y;start();function start(){var t=l.exec(e);h=t[0].length;p=t[0];d=t[0];y="";if(i&&!c[d]){a.lstat(d,(function(e){if(e)return r(e);c[d]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(h>=e.length){if(t)t[s]=e;return r(null,e)}u.lastIndex=h;var n=u.exec(e);y=p;p+=n[0];d=y+n[1];h=u.lastIndex;if(c[d]||t&&t[d]===d){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,d)){return gotResolvedLink(t[d])}return a.lstat(d,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){c[d]=true;if(t)t[d]=d;return process.nextTick(LOOP)}if(!i){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(o.hasOwnProperty(s)){return gotTarget(null,o[s],d)}}a.stat(d,(function(e){if(e)return r(e);a.readlink(d,(function(e,t){if(!i)o[s]=t;gotTarget(e,t)}))}))}function gotTarget(e,i,a){if(e)return r(e);var s=n.resolve(y,i);if(t)t[a]=s;gotResolvedLink(s)}function gotResolvedLink(t){e=n.resolve(t,e.slice(h));start()}}},8959:function(e,t,r){t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var n=r(9896);var i=r(6928);var a=r(6274);var s=r(2106);var o=a.Minimatch;function alphasort(e,t){return e.localeCompare(t,"en")}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new o(r,{dot:true})}return{matcher:new o(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.fs=r.fs||n;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var a=process.cwd();if(!ownProp(r,"cwd"))e.cwd=a;else{e.cwd=i.resolve(r.cwd);e.changedCwd=e.cwd!==a}e.root=r.root||i.resolve(e.cwd,"/");e.root=i.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=s(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;r.allowWindowsEscape=false;e.minimatch=new o(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var n=0,i=e.matches.length;n<i;n++){var a=e.matches[n];if(!a||Object.keys(a).length===0){if(e.nonull){var s=e.minimatch.globSet[n];if(t)r.push(s);else r[s]=true}}else{var o=Object.keys(a);if(t)r.push.apply(r,o);else o.forEach((function(e){r[e]=true}))}}if(!t)r=Object.keys(r);if(!e.nosort)r=r.sort(alphasort);if(e.mark){for(var n=0;n<r.length;n++){r[n]=e._mark(r[n])}if(e.nodir){r=r.filter((function(t){var r=!/\/$/.test(t);var n=e.cache[t]||e.cache[makeAbs(e,t)];if(r&&n)r=n!=="DIR"&&!Array.isArray(n);return r}))}}if(e.ignore.length)r=r.filter((function(t){return!isIgnored(e,t)}));e.found=r}function mark(e,t){var r=makeAbs(e,t);var n=e.cache[r];var i=t;if(n){var a=n==="DIR"||Array.isArray(n);var s=t.slice(-1)==="/";if(a&&!s)i+="/";else if(!a&&s)i=i.slice(0,-1);if(i!==t){var o=makeAbs(e,i);e.statCache[o]=e.statCache[r];e.cache[o]=e.cache[r]}}return i}function makeAbs(e,t){var r=t;if(t.charAt(0)==="/"){r=i.join(e.root,t)}else if(s(t)||t===""){r=t}else if(e.changedCwd){r=i.resolve(e.cwd,t)}else{r=i.resolve(t)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some((function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))}))}function childrenIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some((function(e){return!!(e.gmatcher&&e.gmatcher.match(t))}))}},4908:function(e,t,r){e.exports=glob;var n=r(1931);var i=r(6274);var a=i.Minimatch;var s=r(4070);var o=r(4434).EventEmitter;var u=r(6928);var l=r(2613);var c=r(2106);var h=r(9521);var p=r(8959);var d=p.setopts;var y=p.ownProp;var g=r(5678);var v=r(9023);var b=p.childrenIgnored;var _=p.isIgnored;var w=r(8068);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return h(e,t)}return new Glob(e,t,r)}glob.sync=h;var S=glob.GlobSync=h.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var n=r.length;while(n--){e[r[n]]=t[r[n]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var n=new Glob(e,r);var i=n.minimatch.set;if(!e)return false;if(i.length>1)return true;for(var a=0;a<i[0].length;a++){if(typeof i[0][a]!=="string")return true}return false};glob.Glob=Glob;s(Glob,o);function Glob(e,t,r){if(typeof t==="function"){r=t;t=null}if(t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new S(e,t)}if(!(this instanceof Glob))return new Glob(e,t,r);d(this,e,t);this._didRealPath=false;var n=this.minimatch.set.length;this.matches=new Array(n);if(typeof r==="function"){r=w(r);this.on("error",r);this.on("end",(function(e){r(null,e)}))}var i=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(n===0)return done();var a=true;for(var s=0;s<n;s++){this._process(this.minimatch.set[s],s,false,done)}a=false;function done(){--i._processing;if(i._processing<=0){if(a){process.nextTick((function(){i._finish()}))}else{i._finish()}}}}Glob.prototype._finish=function(){l(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var t=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--e===0)t._finish()}};Glob.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var i=Object.keys(r);var a=this;var s=i.length;if(s===0)return t();var o=this.matches[e]=Object.create(null);i.forEach((function(r,i){r=a._makeAbs(r);n.realpath(r,a.realpathCache,(function(n,i){if(!n)o[i]=true;else if(n.syscall==="stat")o[r]=true;else a.emit("error",n);if(--s===0){a.matches[e]=o;t()}}))}))};Glob.prototype._mark=function(e){return p.mark(this,e)};Glob.prototype._makeAbs=function(e){return p.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<n.length;t++){var i=n[t];this._processing--;this._process(i[0],i[1],i[2],i[3])}}}};Glob.prototype._process=function(e,t,r,n){l(this instanceof Glob);l(typeof n==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,t,r,n]);return}var a=0;while(typeof e[a]==="string"){a++}var s;switch(a){case e.length:this._processSimple(e.join("/"),t,n);return;case 0:s=null;break;default:s=e.slice(0,a).join("/");break}var o=e.slice(a);var u;if(s===null)u=".";else if(c(s)||c(e.map((function(e){return typeof e==="string"?e:"[*]"})).join("/"))){if(!s||!c(s))s="/"+s;u=s}else u=s;var h=this._makeAbs(u);if(b(this,u))return n();var p=o[0]===i.GLOBSTAR;if(p)this._processGlobStar(s,u,h,o,t,r,n);else this._processReaddir(s,u,h,o,t,r,n)};Glob.prototype._processReaddir=function(e,t,r,n,i,a,s){var o=this;this._readdir(r,a,(function(u,l){return o._processReaddir2(e,t,r,n,i,a,l,s)}))};Glob.prototype._processReaddir2=function(e,t,r,n,i,a,s,o){if(!s)return o();var l=n[0];var c=!!this.minimatch.negate;var h=l._glob;var p=this.dot||h.charAt(0)===".";var d=[];for(var y=0;y<s.length;y++){var g=s[y];if(g.charAt(0)!=="."||p){var v;if(c&&!e){v=!g.match(l)}else{v=g.match(l)}if(v)d.push(g)}}var b=d.length;if(b===0)return o();if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var y=0;y<b;y++){var g=d[y];if(e){if(e!=="/")g=e+"/"+g;else g=e+g}if(g.charAt(0)==="/"&&!this.nomount){g=u.join(this.root,g)}this._emitMatch(i,g)}return o()}n.shift();for(var y=0;y<b;y++){var g=d[y];var _;if(e){if(e!=="/")g=e+"/"+g;else g=e+g}this._process([g].concat(n),i,a,o)}o()};Glob.prototype._emitMatch=function(e,t){if(this.aborted)return;if(_(this,t))return;if(this.paused){this._emitQueue.push([e,t]);return}var r=c(t)?t:this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute)t=r;if(this.matches[e][t])return;if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=true;var i=this.statCache[r];if(i)this.emit("stat",t,i);this.emit("match",t)};Glob.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,false,t);var r="lstat\0"+e;var n=this;var i=g(r,lstatcb_);if(i)n.fs.lstat(e,i);function lstatcb_(r,i){if(r&&r.code==="ENOENT")return t();var a=i&&i.isSymbolicLink();n.symlinks[e]=a;if(!a&&i&&!i.isDirectory()){n.cache[e]="FILE";t()}else n._readdir(e,false,t)}};Glob.prototype._readdir=function(e,t,r){if(this.aborted)return;r=g("readdir\0"+e+"\0"+t,r);if(!r)return;if(t&&!y(this.symlinks,e))return this._readdirInGlobStar(e,r);if(y(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;i.fs.readdir(e,readdirCb(this,e,r))};function readdirCb(e,t,r){return function(n,i){if(n)e._readdirError(t,n,r);else e._readdirEntries(t,i,r)}}Glob.prototype._readdirEntries=function(e,t,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var n=0;n<t.length;n++){var i=t[n];if(e==="/")i=e+i;else i=e+"/"+i;this.cache[i]=true}}this.cache[e]=t;return r(null,t)};Glob.prototype._readdirError=function(e,t,r){if(this.aborted)return;switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);this.cache[n]="FILE";if(n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=t.code;this.emit("error",i);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",t);this.abort()}if(!this.silent)console.error("glob error",t);break}return r()};Glob.prototype._processGlobStar=function(e,t,r,n,i,a,s){var o=this;this._readdir(r,a,(function(u,l){o._processGlobStar2(e,t,r,n,i,a,l,s)}))};Glob.prototype._processGlobStar2=function(e,t,r,n,i,a,s,o){if(!s)return o();var u=n.slice(1);var l=e?[e]:[];var c=l.concat(u);this._process(c,i,false,o);var h=this.symlinks[r];var p=s.length;if(h&&a)return o();for(var d=0;d<p;d++){var y=s[d];if(y.charAt(0)==="."&&!this.dot)continue;var g=l.concat(s[d],u);this._process(g,i,true,o);var v=l.concat(s[d],n);this._process(v,i,true,o)}o()};Glob.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,(function(i,a){n._processSimple2(e,t,i,a,r)}))};Glob.prototype._processSimple2=function(e,t,r,n,i){if(!this.matches[t])this.matches[t]=Object.create(null);if(!n)return i();if(e&&c(e)&&!this.nomount){var a=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=u.join(this.root,e)}else{e=u.resolve(this.root,e);if(a)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e);i()};Glob.prototype._stat=function(e,t){var r=this._makeAbs(e);var n=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&y(this.cache,r)){var i=this.cache[r];if(Array.isArray(i))i="DIR";if(!n||i==="DIR")return t(null,i);if(n&&i==="FILE")return t()}var a;var s=this.statCache[r];if(s!==undefined){if(s===false)return t(null,s);else{var o=s.isDirectory()?"DIR":"FILE";if(n&&o==="FILE")return t();else return t(null,o,s)}}var u=this;var l=g("stat\0"+r,lstatcb_);if(l)u.fs.lstat(r,l);function lstatcb_(n,i){if(i&&i.isSymbolicLink()){return u.fs.stat(r,(function(n,a){if(n)u._stat2(e,r,null,i,t);else u._stat2(e,r,n,a,t)}))}else{u._stat2(e,r,n,i,t)}}};Glob.prototype._stat2=function(e,t,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return i()}var a=e.slice(-1)==="/";this.statCache[t]=n;if(t.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,false,n);var s=true;if(n)s=n.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||s;if(a&&s==="FILE")return i();return i(null,s,n)}},9521:function(e,t,r){e.exports=globSync;globSync.GlobSync=GlobSync;var n=r(1931);var i=r(6274);var a=i.Minimatch;var s=r(4908).Glob;var o=r(9023);var u=r(6928);var l=r(2613);var c=r(2106);var h=r(8959);var p=h.setopts;var d=h.ownProp;var y=h.childrenIgnored;var g=h.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);p(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++){this._process(this.minimatch.set[n],n,false)}this._finish()}GlobSync.prototype._finish=function(){l.ok(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach((function(t,r){var i=e.matches[r]=Object.create(null);for(var a in t){try{a=e._makeAbs(a);var s=n.realpathSync(a,e.realpathCache);i[s]=true}catch(t){if(t.syscall==="stat")i[e._makeAbs(a)]=true;else throw t}}}))}h.finish(this)};GlobSync.prototype._process=function(e,t,r){l.ok(this instanceof GlobSync);var n=0;while(typeof e[n]==="string"){n++}var a;switch(n){case e.length:this._processSimple(e.join("/"),t);return;case 0:a=null;break;default:a=e.slice(0,n).join("/");break}var s=e.slice(n);var o;if(a===null)o=".";else if(c(a)||c(e.map((function(e){return typeof e==="string"?e:"[*]"})).join("/"))){if(!a||!c(a))a="/"+a;o=a}else o=a;var u=this._makeAbs(o);if(y(this,o))return;var h=s[0]===i.GLOBSTAR;if(h)this._processGlobStar(a,o,u,s,t,r);else this._processReaddir(a,o,u,s,t,r)};GlobSync.prototype._processReaddir=function(e,t,r,n,i,a){var s=this._readdir(r,a);if(!s)return;var o=n[0];var l=!!this.minimatch.negate;var c=o._glob;var h=this.dot||c.charAt(0)===".";var p=[];for(var d=0;d<s.length;d++){var y=s[d];if(y.charAt(0)!=="."||h){var g;if(l&&!e){g=!y.match(o)}else{g=y.match(o)}if(g)p.push(y)}}var v=p.length;if(v===0)return;if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var d=0;d<v;d++){var y=p[d];if(e){if(e.slice(-1)!=="/")y=e+"/"+y;else y=e+y}if(y.charAt(0)==="/"&&!this.nomount){y=u.join(this.root,y)}this._emitMatch(i,y)}return}n.shift();for(var d=0;d<v;d++){var y=p[d];var b;if(e)b=[e,y];else b=[y];this._process(b.concat(n),i,a)}};GlobSync.prototype._emitMatch=function(e,t){if(g(this,t))return;var r=this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute){t=r}if(this.matches[e][t])return;if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=true;if(this.stat)this._stat(t)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var t;var r;var n;try{r=this.fs.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var i=r&&r.isSymbolicLink();this.symlinks[e]=i;if(!i&&r&&!r.isDirectory())this.cache[e]="FILE";else t=this._readdir(e,false);return t};GlobSync.prototype._readdir=function(e,t){var r;if(t&&!d(this.symlinks,e))return this._readdirInGlobStar(e);if(d(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){this._readdirError(e,t);return null}};GlobSync.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat){for(var r=0;r<t.length;r++){var n=t[r];if(e==="/")n=e+n;else n=e+"/"+n;this.cache[n]=true}}this.cache[e]=t;return t};GlobSync.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);this.cache[r]="FILE";if(r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=t.code;throw n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw t;if(!this.silent)console.error("glob error",t);break}};GlobSync.prototype._processGlobStar=function(e,t,r,n,i,a){var s=this._readdir(r,a);if(!s)return;var o=n.slice(1);var u=e?[e]:[];var l=u.concat(o);this._process(l,i,false);var c=s.length;var h=this.symlinks[r];if(h&&a)return;for(var p=0;p<c;p++){var d=s[p];if(d.charAt(0)==="."&&!this.dot)continue;var y=u.concat(s[p],o);this._process(y,i,true);var g=u.concat(s[p],n);this._process(g,i,true)}};GlobSync.prototype._processSimple=function(e,t){var r=this._stat(e);if(!this.matches[t])this.matches[t]=Object.create(null);if(!r)return;if(e&&c(e)&&!this.nomount){var n=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=u.join(this.root,e)}else{e=u.resolve(this.root,e);if(n)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e)};GlobSync.prototype._stat=function(e){var t=this._makeAbs(e);var r=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&d(this.cache,t)){var n=this.cache[t];if(Array.isArray(n))n="DIR";if(!r||n==="DIR")return n;if(r&&n==="FILE")return false}var i;var a=this.statCache[t];if(!a){var s;try{s=this.fs.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(s&&s.isSymbolicLink()){try{a=this.fs.statSync(t)}catch(e){a=s}}else{a=s}}this.statCache[t]=a;var n=true;if(a)n=a.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||n;if(r&&n==="FILE")return false;return n};GlobSync.prototype._mark=function(e){return h.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return h.makeAbs(this,e)}},1403:function(e){"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},7551:function(e,t,r){var n=r(9896);var i=r(4538);var a=r(2611);var s=r(1403);var o=r(9023);var u;var l;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");l=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";l="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,u,{get:function(){return t}})}var c=noop;if(o.debuglog)c=o.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))c=function(){var e=o.format.apply(o,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[u]){var h=global[u]||[];publishQueue(n,h);n.close=function(e){function close(t,r){return e.call(n,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,l,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);resetQueue()}Object.defineProperty(closeSync,l,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){c(n[u]);r(2613).equal(n[u].length,0)}))}}if(!global[u]){publishQueue(global,n[u])}e.exports=patch(s(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n,i){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n],t,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i,a){return r(e,t,n,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,i],r,a||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i,a){return n(e,t,r,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,i],n,a||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var s=e.copyFile;if(s)e.copyFile=copyFile;function copyFile(e,t,r,n){if(typeof r==="function"){n=r;r=0}return go$copyFile(e,t,r,n);function go$copyFile(e,t,r,n,i){return s(e,t,r,(function(a){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,n],a,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var o=e.readdir;e.readdir=readdir;var u=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var n=u.test(process.version)?function go$readdir(e,t,r,n){return o(e,fs$readdirCallback(e,t,r,n))}:function go$readdir(e,t,r,n){return o(e,t,fs$readdirCallback(e,t,r,n))};return n(e,t,r);function fs$readdirCallback(e,t,r,i){return function(a,s){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([n,[e,t,r],a,i||Date.now(),Date.now()]);else{if(s&&s.sort)s.sort();if(typeof r==="function")r.call(this,a,s)}}}}if(process.version.substr(0,4)==="v0.8"){var l=a(e);ReadStream=l.ReadStream;WriteStream=l.WriteStream}var c=e.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var h=e.WriteStream;if(h){WriteStream.prototype=Object.create(h.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var p=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});var d=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return h.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var y=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n,i){return y(e,t,r,(function(a,s){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$open,[e,t,r,n],a,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}return e}function enqueue(e){c("ENQUEUE",e[0].name,e[1]);n[u].push(e);retry()}var p;function resetQueue(){var e=Date.now();for(var t=0;t<n[u].length;++t){if(n[u][t].length>2){n[u][t][3]=e;n[u][t][4]=e}}retry()}function retry(){clearTimeout(p);p=undefined;if(n[u].length===0)return;var e=n[u].shift();var t=e[0];var r=e[1];var i=e[2];var a=e[3];var s=e[4];if(a===undefined){c("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-a>=6e4){c("TIMEOUT",t.name,r);var o=r.pop();if(typeof o==="function")o.call(null,i)}else{var l=Date.now()-s;var h=Math.max(s-a,1);var d=Math.min(h*1.2,100);if(l>=d){c("RETRY",t.name,r);t.apply(null,r.concat([a]))}else{n[u].push(e)}}if(p===undefined){p=setTimeout(retry,0)}}},2611:function(e,t,r){var n=r(2203).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var a=Object.keys(r);for(var s=0,o=a.length;s<o;s++){var u=a[s];this[u]=r[u]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){i._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var i=Object.keys(r);for(var a=0,s=i.length;a<s;a++){var o=i[a];this[o]=r[o]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},4538:function(e,t,r){var n=r(9140);var i=process.cwd;var a=null;var s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!a)a=i.call(process);return a};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var o=process.chdir;process.chdir=function(e){a=null;o.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,o)}e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(s==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,n,i){var a=Date.now();var s=0;t(r,n,(function CB(o){if(o&&(o.code==="EACCES"||o.code==="EPERM"||o.code==="EBUSY")&&Date.now()-a<6e4){setTimeout((function(){e.stat(n,(function(e,a){if(e&&e.code==="ENOENT")t(r,n,CB);else i(o)}))}),s);if(s<100)s+=10;return}if(i)i(o)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,n,i,a,s,o){var u;if(o&&typeof o==="function"){var l=0;u=function(c,h,p){if(c&&c.code==="EAGAIN"&&l<10){l++;return t.call(e,r,n,i,a,s,u)}o.apply(this,arguments)}}return t.call(e,r,n,i,a,s,u)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,n,i,a,s){var o=0;while(true){try{return t.call(e,r,n,i,a,s)}catch(e){if(e.code==="EAGAIN"&&o<10){o++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){if(t){if(i)i(t);return}e.fchmod(n,r,(function(t){e.close(n,(function(e){if(i)i(t||e)}))}))}))};e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var a=true;var s;try{s=e.fchmodSync(i,r);a=false}finally{if(a){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return s}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,i,a){e.open(t,n.O_SYMLINK,(function(t,n){if(t){if(a)a(t);return}e.futimes(n,r,i,(function(t){e.close(n,(function(e){if(a)a(t||e)}))}))}))};e.lutimesSync=function(t,r,i){var a=e.openSync(t,n.O_SYMLINK);var s;var o=true;try{s=e.futimesSync(a,r,i);o=false}finally{if(o){try{e.closeSync(a)}catch(e){}}else{e.closeSync(a)}}return s}}else if(e.futimes){e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,i){return t.call(e,r,n,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,i,a){return t.call(e,r,n,i,(function(e){if(chownErOk(e))e=null;if(a)a.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,i){if(typeof n==="function"){i=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var i=n?t.call(e,r,n):t.call(e,r);if(i){if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296}return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},5678:function(e,t,r){var n=r(8092);var i=Object.create(null);var a=r(8068);e.exports=n(inflight);function inflight(e,t){if(i[e]){i[e].push(t);return null}else{i[e]=[t];return makeres(e)}}function makeres(e){return a((function RES(){var t=i[e];var r=t.length;var n=slice(arguments);try{for(var a=0;a<r;a++){t[a].apply(null,n)}}finally{if(t.length>r){t.splice(0,r);process.nextTick((function(){RES.apply(null,n)}))}else{delete i[e]}}}))}function slice(e){var t=e.length;var r=[];for(var n=0;n<t;n++)r[n]=e[n];return r}},4070:function(e,t,r){try{var n=r(9023);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(6005)}},6005:function(e){if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},4057:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},2186:function(e,t,r){var n=r(9023);var i=r(3627);e.exports={Readable:Readable,Writable:Writable};n.inherits(Readable,i);n.inherits(Writable,i);function beforeFirstCall(e,t,r){e[t]=function(){delete e[t];r.apply(this,arguments);return this[t].apply(this,arguments)}}function Readable(e,t){if(!(this instanceof Readable))return new Readable(e,t);i.call(this,t);beforeFirstCall(this,"_read",(function(){var r=e.call(this,t);var n=this.emit.bind(this,"error");r.on("error",n);r.pipe(this)}));this.emit("readable")}function Writable(e,t){if(!(this instanceof Writable))return new Writable(e,t);i.call(this,t);beforeFirstCall(this,"_write",(function(){var r=e.call(this,t);var n=this.emit.bind(this,"error");r.on("error",n);this.pipe(r)}));this.emit("writable")}},4242:function(e){var t=9007199254740991;var r="[object Arguments]",n="[object Function]",i="[object GeneratorFunction]";var a=/^(?:0|[1-9]\d*)$/;function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function baseTimes(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}var s=Object.prototype;var o=s.hasOwnProperty;var u=s.toString;var l=s.propertyIsEnumerable;var c=Math.max;function arrayLikeKeys(e,t){var r=h(e)||isArguments(e)?baseTimes(e.length,String):[];var n=r.length,i=!!n;for(var a in e){if((t||o.call(e,a))&&!(i&&(a=="length"||isIndex(a,n)))){r.push(a)}}return r}function assignInDefaults(e,t,r,n){if(e===undefined||eq(e,s[r])&&!o.call(n,r)){return t}return e}function assignValue(e,t,r){var n=e[t];if(!(o.call(e,t)&&eq(n,r))||r===undefined&&!(t in e)){e[t]=r}}function baseKeysIn(e){if(!isObject(e)){return nativeKeysIn(e)}var t=isPrototype(e),r=[];for(var n in e){if(!(n=="constructor"&&(t||!o.call(e,n)))){r.push(n)}}return r}function baseRest(e,t){t=c(t===undefined?e.length-1:t,0);return function(){var r=arguments,n=-1,i=c(r.length-t,0),a=Array(i);while(++n<i){a[n]=r[t+n]}n=-1;var s=Array(t+1);while(++n<t){s[n]=r[n]}s[t]=a;return apply(e,this,s)}}function copyObject(e,t,r,n){r||(r={});var i=-1,a=t.length;while(++i<a){var s=t[i];var o=n?n(r[s],e[s],s,r,e):undefined;assignValue(r,s,o===undefined?e[s]:o)}return r}function createAssigner(e){return baseRest((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:undefined,s=i>2?r[2]:undefined;a=e.length>3&&typeof a=="function"?(i--,a):undefined;if(s&&isIterateeCall(r[0],r[1],s)){a=i<3?undefined:a;i=1}t=Object(t);while(++n<i){var o=r[n];if(o){e(t,o,n,a)}}return t}))}function isIndex(e,r){r=r==null?t:r;return!!r&&(typeof e=="number"||a.test(e))&&(e>-1&&e%1==0&&e<r)}function isIterateeCall(e,t,r){if(!isObject(r)){return false}var n=typeof t;if(n=="number"?isArrayLike(r)&&isIndex(t,r.length):n=="string"&&t in r){return eq(r[t],e)}return false}function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||s;return e===r}function nativeKeysIn(e){var t=[];if(e!=null){for(var r in Object(e)){t.push(r)}}return t}function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&o.call(e,"callee")&&(!l.call(e,"callee")||u.call(e)==r)}var h=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?u.call(e):"";return t==n||t==i}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}var p=createAssigner((function(e,t,r,n){copyObject(t,keysIn(t),e,n)}));var d=baseRest((function(e){e.push(undefined,assignInDefaults);return apply(p,undefined,e)}));function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,true):baseKeysIn(e)}e.exports=d},7467:function(e){var t=200;var r="__lodash_hash_undefined__";var n=9007199254740991;var i="[object Arguments]",a="[object Function]",s="[object GeneratorFunction]";var o=/[\\^$.*+?()[\]{}|]/g;var u=/^\[object .+?Constructor\]$/;var l=typeof global=="object"&&global&&global.Object===Object&&global;var c=typeof self=="object"&&self&&self.Object===Object&&self;var h=l||c||Function("return this")();function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var n=-1,i=e?e.length:0;while(++n<i){if(r(t,e[n])){return true}}return false}function arrayMap(e,t){var r=-1,n=e?e.length:0,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}function arrayPush(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}function baseFindIndex(e,t,r,n){var i=e.length,a=r+(n?1:-1);while(n?a--:++a<i){if(t(e[a],a,e)){return a}}return-1}function baseIndexOf(e,t,r){if(t!==t){return baseFindIndex(e,baseIsNaN,r)}var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}function baseIsNaN(e){return e!==e}function baseUnary(e){return function(t){return e(t)}}function cacheHas(e,t){return e.has(t)}function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}var p=Array.prototype,d=Function.prototype,y=Object.prototype;var g=h["__core-js_shared__"];var v=function(){var e=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var b=d.toString;var _=y.hasOwnProperty;var w=y.toString;var S=RegExp("^"+b.call(_).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var E=h.Symbol,k=y.propertyIsEnumerable,O=p.splice,x=E?E.isConcatSpreadable:undefined;var R=Math.max;var T=getNative(h,"Map"),L=getNative(Object,"create");function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function hashClear(){this.__data__=L?L(null):{}}function hashDelete(e){return this.has(e)&&delete this.__data__[e]}function hashGet(e){var t=this.__data__;if(L){var n=t[e];return n===r?undefined:n}return _.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.__data__;return L?t[e]!==undefined:_.call(t,e)}function hashSet(e,t){var n=this.__data__;n[e]=L&&t===undefined?r:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{O.call(t,r,1)}return true}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(T||ListCache),string:new Hash}}function mapCacheDelete(e){return getMapData(this,e)["delete"](e)}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){getMapData(this,e).set(e,t);return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e?e.length:0;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,r);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseDifference(e,r,n,i){var a=-1,s=arrayIncludes,o=true,u=e.length,l=[],c=r.length;if(!u){return l}if(n){r=arrayMap(r,baseUnary(n))}if(i){s=arrayIncludesWith;o=false}else if(r.length>=t){s=cacheHas;o=false;r=new SetCache(r)}e:while(++a<u){var h=e[a],p=n?n(h):h;h=i||h!==0?h:0;if(o&&p===p){var d=c;while(d--){if(r[d]===p){continue e}}l.push(h)}else if(!s(r,p,i)){l.push(h)}}return l}function baseFlatten(e,t,r,n,i){var a=-1,s=e.length;r||(r=isFlattenable);i||(i=[]);while(++a<s){var o=e[a];if(t>0&&r(o)){if(t>1){baseFlatten(o,t-1,r,n,i)}else{arrayPush(i,o)}}else if(!n){i[i.length]=o}}return i}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?S:u;return t.test(toSource(e))}function baseRest(e,t){t=R(t===undefined?e.length-1:t,0);return function(){var r=arguments,n=-1,i=R(r.length-t,0),a=Array(i);while(++n<i){a[n]=r[t+n]}n=-1;var s=Array(t+1);while(++n<t){s[n]=r[n]}s[t]=a;return apply(e,this,s)}}function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}function isFlattenable(e){return C(e)||isArguments(e)||!!(x&&e&&e[x])}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isMasked(e){return!!v&&v in e}function toSource(e){if(e!=null){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var A=baseRest((function(e,t){return isArrayLikeObject(e)?baseDifference(e,baseFlatten(t,1,isArrayLikeObject,true)):[]}));function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&_.call(e,"callee")&&(!k.call(e,"callee")||w.call(e)==i)}var C=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?w.call(e):"";return t==a||t==s}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=n}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}e.exports=A},6502:function(e){var t=9007199254740991;var r="[object Arguments]",n="[object Function]",i="[object GeneratorFunction]";var a=typeof global=="object"&&global&&global.Object===Object&&global;var s=typeof self=="object"&&self&&self.Object===Object&&self;var o=a||s||Function("return this")();function arrayPush(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}var u=Object.prototype;var l=u.hasOwnProperty;var c=u.toString;var h=o.Symbol,p=u.propertyIsEnumerable,d=h?h.isConcatSpreadable:undefined;function baseFlatten(e,t,r,n,i){var a=-1,s=e.length;r||(r=isFlattenable);i||(i=[]);while(++a<s){var o=e[a];if(t>0&&r(o)){if(t>1){baseFlatten(o,t-1,r,n,i)}else{arrayPush(i,o)}}else if(!n){i[i.length]=o}}return i}function isFlattenable(e){return y(e)||isArguments(e)||!!(d&&e&&e[d])}function flatten(e){var t=e?e.length:0;return t?baseFlatten(e,1):[]}function isArguments(e){return isArrayLikeObject(e)&&l.call(e,"callee")&&(!p.call(e,"callee")||c.call(e)==r)}var y=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?c.call(e):"";return t==n||t==i}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}e.exports=flatten},5520:function(e){var t="[object Object]";function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function overArg(e,t){return function(r){return e(t(r))}}var r=Function.prototype,n=Object.prototype;var i=r.toString;var a=n.hasOwnProperty;var s=i.call(Object);var o=n.toString;var u=overArg(Object.getPrototypeOf,Object);function isObjectLike(e){return!!e&&typeof e=="object"}function isPlainObject(e){if(!isObjectLike(e)||o.call(e)!=t||isHostObject(e)){return false}var r=u(e);if(r===null){return true}var n=a.call(r,"constructor")&&r.constructor;return typeof n=="function"&&n instanceof n&&i.call(n)==s}e.exports=isPlainObject},2516:function(e){var t=200;var r="__lodash_hash_undefined__";var n=1/0,i=9007199254740991;var a="[object Arguments]",s="[object Function]",o="[object GeneratorFunction]";var u=/[\\^$.*+?()[\]{}|]/g;var l=/^\[object .+?Constructor\]$/;var c=typeof global=="object"&&global&&global.Object===Object&&global;var h=typeof self=="object"&&self&&self.Object===Object&&self;var p=c||h||Function("return this")();function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var n=-1,i=e?e.length:0;while(++n<i){if(r(t,e[n])){return true}}return false}function arrayPush(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}function baseFindIndex(e,t,r,n){var i=e.length,a=r+(n?1:-1);while(n?a--:++a<i){if(t(e[a],a,e)){return a}}return-1}function baseIndexOf(e,t,r){if(t!==t){return baseFindIndex(e,baseIsNaN,r)}var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}function baseIsNaN(e){return e!==e}function cacheHas(e,t){return e.has(t)}function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function setToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var d=Array.prototype,y=Function.prototype,g=Object.prototype;var v=p["__core-js_shared__"];var b=function(){var e=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var _=y.toString;var w=g.hasOwnProperty;var S=g.toString;var E=RegExp("^"+_.call(w).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var k=p.Symbol,O=g.propertyIsEnumerable,x=d.splice,R=k?k.isConcatSpreadable:undefined;var T=Math.max;var L=getNative(p,"Map"),A=getNative(p,"Set"),C=getNative(Object,"create");function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function hashClear(){this.__data__=C?C(null):{}}function hashDelete(e){return this.has(e)&&delete this.__data__[e]}function hashGet(e){var t=this.__data__;if(C){var n=t[e];return n===r?undefined:n}return w.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.__data__;return C?t[e]!==undefined:w.call(t,e)}function hashSet(e,t){var n=this.__data__;n[e]=C&&t===undefined?r:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{x.call(t,r,1)}return true}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(L||ListCache),string:new Hash}}function mapCacheDelete(e){return getMapData(this,e)["delete"](e)}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){getMapData(this,e).set(e,t);return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e?e.length:0;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,r);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseFlatten(e,t,r,n,i){var a=-1,s=e.length;r||(r=isFlattenable);i||(i=[]);while(++a<s){var o=e[a];if(t>0&&r(o)){if(t>1){baseFlatten(o,t-1,r,n,i)}else{arrayPush(i,o)}}else if(!n){i[i.length]=o}}return i}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?E:l;return t.test(toSource(e))}function baseRest(e,t){t=T(t===undefined?e.length-1:t,0);return function(){var r=arguments,n=-1,i=T(r.length-t,0),a=Array(i);while(++n<i){a[n]=r[t+n]}n=-1;var s=Array(t+1);while(++n<t){s[n]=r[n]}s[t]=a;return apply(e,this,s)}}function baseUniq(e,r,n){var i=-1,a=arrayIncludes,s=e.length,o=true,u=[],l=u;if(n){o=false;a=arrayIncludesWith}else if(s>=t){var c=r?null:I(e);if(c){return setToArray(c)}o=false;a=cacheHas;l=new SetCache}else{l=r?[]:u}e:while(++i<s){var h=e[i],p=r?r(h):h;h=n||h!==0?h:0;if(o&&p===p){var d=l.length;while(d--){if(l[d]===p){continue e}}if(r){l.push(p)}u.push(h)}else if(!a(l,p,n)){if(l!==u){l.push(p)}u.push(h)}}return u}var I=!(A&&1/setToArray(new A([,-0]))[1]==n)?noop:function(e){return new A(e)};function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}function isFlattenable(e){return j(e)||isArguments(e)||!!(R&&e&&e[R])}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isMasked(e){return!!b&&b in e}function toSource(e){if(e!=null){try{return _.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var M=baseRest((function(e){return baseUniq(baseFlatten(e,1,isArrayLikeObject,true))}));function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&w.call(e,"callee")&&(!O.call(e,"callee")||S.call(e)==a)}var j=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?S.call(e):"";return t==s||t==o}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=i}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function noop(){}e.exports=M},6274:function(e,t,r){e.exports=minimatch;minimatch.Minimatch=Minimatch;var n=function(){try{return r(6928)}catch(e){}}()||{sep:"/"};minimatch.sep=n.sep;var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var a=r(5612);var s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var o="[^/]";var u=o+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var c="(?:(?!(?:\\/|^)\\.).)*?";var h=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var p=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,n,i){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,n,i){return t(r,n,ext(e,i))};r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,n){return t.filter(r,ext(e,n))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,n){return t.makeRe(r,ext(e,n))};r.braceExpand=function braceExpand(r,n){return t.braceExpand(r,ext(e,n))};r.match=function(r,n,i){return t.match(r,n,ext(e,i))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(p)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var n=0;if(r.nonegate)return;for(var i=0,a=e.length;i<a&&e.charAt(i)==="!";i++){t=!t;n++}if(n)this.pattern=e.substr(n);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return a(e)}var d=1024*64;var assertValidPattern=function(e){if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>d){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var y={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return i;else e="*"}if(e==="")return"";var n="";var a=!!r.nocase;var l=false;var c=[];var p=[];var d;var g=false;var v=-1;var b=-1;var _=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var w=this;function clearStateChar(){if(d){switch(d){case"*":n+=u;a=true;break;case"?":n+=o;a=true;break;default:n+="\\"+d;break}w.debug("clearStateChar %j %j",d,n);d=false}}for(var S=0,E=e.length,k;S<E&&(k=e.charAt(S));S++){this.debug("%s\t%s %s %j",e,S,n,k);if(l&&h[k]){n+="\\"+k;l=false;continue}switch(k){case"/":{return false}case"\\":clearStateChar();l=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,S,n,k);if(g){this.debug(" in class");if(k==="!"&&S===b+1)k="^";n+=k;continue}w.debug("call clearStateChar %j",d);clearStateChar();d=k;if(r.noext)clearStateChar();continue;case"(":if(g){n+="(";continue}if(!d){n+="\\(";continue}c.push({type:d,start:S-1,reStart:n.length,open:s[d].open,close:s[d].close});n+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,n);d=false;continue;case")":if(g||!c.length){n+="\\)";continue}clearStateChar();a=true;var O=c.pop();n+=O.close;if(O.type==="!"){p.push(O)}O.reEnd=n.length;continue;case"|":if(g||!c.length||l){n+="\\|";l=false;continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(g){n+="\\"+k;continue}g=true;b=S;v=n.length;n+=k;continue;case"]":if(S===b+1||!g){n+="\\"+k;l=false;continue}var x=e.substring(b+1,S);try{RegExp("["+x+"]")}catch(e){var R=this.parse(x,y);n=n.substr(0,v)+"\\["+R[0]+"\\]";a=a||R[1];g=false;continue}a=true;g=false;n+=k;continue;default:clearStateChar();if(l){l=false}else if(h[k]&&!(k==="^"&&g)){n+="\\"}n+=k}}if(g){x=e.substr(b+1);R=this.parse(x,y);n=n.substr(0,v)+"\\["+R[0];a=a||R[1]}for(O=c.pop();O;O=c.pop()){var T=n.slice(O.reStart+O.open.length);this.debug("setting tail",n,O);T=T.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",T,T,O,n);var L=O.type==="*"?u:O.type==="?"?o:"\\"+O.type;a=true;n=n.slice(0,O.reStart)+L+"\\("+T}clearStateChar();if(l){n+="\\\\"}var A=false;switch(n.charAt(0)){case"[":case".":case"(":A=true}for(var C=p.length-1;C>-1;C--){var I=p[C];var M=n.slice(0,I.reStart);var j=n.slice(I.reStart,I.reEnd-8);var D=n.slice(I.reEnd-8,I.reEnd);var B=n.slice(I.reEnd);D+=B;var P=M.split("(").length-1;var N=B;for(S=0;S<P;S++){N=N.replace(/\)[+*?]?/,"")}B=N;var F="";if(B===""&&t!==y){F="$"}var W=M+j+B+F+D;n=W}if(n!==""&&a){n="(?=.)"+n}if(A){n=_+n}if(t===y){return[n,a]}if(!a){return globUnescape(e)}var z=r.nocase?"i":"";try{var G=new RegExp("^"+n+"$",z)}catch(e){return new RegExp("$.")}G._glob=e;G._src=n;return G}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?u:t.dot?l:c;var n=t.nocase?"i":"";var a=e.map((function(e){return e.map((function(e){return e===i?r:typeof e==="string"?regExpEscape(e):e._src})).join("\\/")})).join("|");a="^(?:"+a+")$";if(this.negate)a="^(?!"+a+").*$";try{this.regexp=new RegExp(a,n)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var n=new Minimatch(t,r);e=e.filter((function(e){return n.match(e)}));if(n.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=function match(e,t){if(typeof t==="undefined")t=this.partial;this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(p);this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var a;var s;for(s=e.length-1;s>=0;s--){a=e[s];if(a)break}for(s=0;s<i.length;s++){var o=i[s];var u=e;if(r.matchBase&&o.length===1){u=[a]}var l=this.matchOne(u,o,t);if(l){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var a=0,s=0,o=e.length,u=t.length;a<o&&s<u;a++,s++){this.debug("matchOne loop");var l=t[s];var c=e[a];this.debug(t,l,c);if(l===false)return false;if(l===i){this.debug("GLOBSTAR",[t,l,c]);var h=a;var p=s+1;if(p===u){this.debug("** at the end");for(;a<o;a++){if(e[a]==="."||e[a]===".."||!n.dot&&e[a].charAt(0)===".")return false}return true}while(h<o){var d=e[h];this.debug("\nglobstar while",e,h,t,p,d);if(this.matchOne(e.slice(h),t.slice(p),r)){this.debug("globstar found match!",h,o,d);return true}else{if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,h,t,p);break}this.debug("globstar swallow a segment, and continue");h++}}if(r){this.debug("\n>>> no match, partial?",e,h,t,p);if(h===o)return true}return false}var y;if(typeof l==="string"){y=c===l;this.debug("string match",l,c,y)}else{y=c.match(l);this.debug("pattern match",l,c,y)}if(!y)return false}if(a===o&&s===u){return true}else if(a===o){return r}else if(s===u){return a===o-1&&e[a]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},3697:function(e){const t=typeof process==="object"&&process&&process.platform==="win32";e.exports=t?{sep:"\\"}:{sep:"/"}},1388:function(e,t,r){const n=e.exports=(e,t,r={})=>{assertValidPattern(t);if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)};e.exports=n;const i=r(3697);n.sep=i.sep;const a=Symbol("globstar **");n.GLOBSTAR=a;const s=r(6083);const o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const u="[^/]";const l=u+"*?";const c="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const h="(?:(?!(?:\\/|^)\\.).)*?";const charSet=e=>e.split("").reduce(((e,t)=>{e[t]=true;return e}),{});const p=charSet("().*{}+?[]^$\\!");const d=charSet("[.(");const y=/\/+/;n.filter=(e,t={})=>(r,i,a)=>n(r,e,t);const ext=(e,t={})=>{const r={};Object.keys(e).forEach((t=>r[t]=e[t]));Object.keys(t).forEach((e=>r[e]=t[e]));return r};n.defaults=e=>{if(!e||typeof e!=="object"||!Object.keys(e).length){return n}const t=n;const m=(r,n,i)=>t(r,n,ext(e,i));m.Minimatch=class Minimatch extends t.Minimatch{constructor(t,r){super(t,ext(e,r))}};m.Minimatch.defaults=r=>t.defaults(ext(e,r)).Minimatch;m.filter=(r,n)=>t.filter(r,ext(e,n));m.defaults=r=>t.defaults(ext(e,r));m.makeRe=(r,n)=>t.makeRe(r,ext(e,n));m.braceExpand=(r,n)=>t.braceExpand(r,ext(e,n));m.match=(r,n,i)=>t.match(r,n,ext(e,i));return m};n.braceExpand=(e,t)=>braceExpand(e,t);const braceExpand=(e,t={})=>{assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return s(e)};const g=1024*64;const assertValidPattern=e=>{if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>g){throw new TypeError("pattern is too long")}};const v=Symbol("subparse");n.makeRe=(e,t)=>new Minimatch(e,t||{}).makeRe();n.match=(e,t,r={})=>{const n=new Minimatch(t,r);e=e.filter((e=>n.match(e)));if(n.options.nonull&&!e.length){e.push(t)}return e};const globUnescape=e=>e.replace(/\\(.)/g,"$1");const charUnescape=e=>e.replace(/\\([^-\]])/g,"$1");const regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=e=>e.replace(/[[\]\\]/g,"\\$&");class Minimatch{constructor(e,t){assertValidPattern(e);if(!t)t={};this.options=t;this.set=[];this.pattern=e;this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}debug(){}make(){const e=this.pattern;const t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();let r=this.globSet=this.braceExpand();if(t.debug)this.debug=(...e)=>console.error(...e);this.debug(this.pattern,r);r=this.globParts=r.map((e=>e.split(y)));this.debug(this.pattern,r);r=r.map(((e,t,r)=>e.map(this.parse,this)));this.debug(this.pattern,r);r=r.filter((e=>e.indexOf(false)===-1));this.debug(this.pattern,r);this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=false;let r=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++){t=!t;r++}if(r)this.pattern=e.slice(r);this.negate=t}matchOne(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var i=0,s=0,o=e.length,u=t.length;i<o&&s<u;i++,s++){this.debug("matchOne loop");var l=t[s];var c=e[i];this.debug(t,l,c);if(l===false)return false;if(l===a){this.debug("GLOBSTAR",[t,l,c]);var h=i;var p=s+1;if(p===u){this.debug("** at the end");for(;i<o;i++){if(e[i]==="."||e[i]===".."||!n.dot&&e[i].charAt(0)===".")return false}return true}while(h<o){var d=e[h];this.debug("\nglobstar while",e,h,t,p,d);if(this.matchOne(e.slice(h),t.slice(p),r)){this.debug("globstar found match!",h,o,d);return true}else{if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,h,t,p);break}this.debug("globstar swallow a segment, and continue");h++}}if(r){this.debug("\n>>> no match, partial?",e,h,t,p);if(h===o)return true}return false}var y;if(typeof l==="string"){y=c===l;this.debug("string match",l,c,y)}else{y=c.match(l);this.debug("pattern match",l,c,y)}if(!y)return false}if(i===o&&s===u){return true}else if(i===o){return r}else if(s===u){return i===o-1&&e[i]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(e,t){assertValidPattern(e);const r=this.options;if(e==="**"){if(!r.noglobstar)return a;else e="*"}if(e==="")return"";let n="";let i=false;let s=false;const c=[];const h=[];let y;let g=false;let b=-1;let _=-1;let w;let S;let E;let k=e.charAt(0)===".";let O=r.dot||k;const patternStart=()=>k?"":O?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=e=>e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(y){switch(y){case"*":n+=l;i=true;break;case"?":n+=u;i=true;break;default:n+="\\"+y;break}this.debug("clearStateChar %j %j",y,n);y=false}};for(let t=0,a;t<e.length&&(a=e.charAt(t));t++){this.debug("%s\t%s %s %j",e,t,n,a);if(s){if(a==="/"){return false}if(p[a]){n+="\\"}n+=a;s=false;continue}switch(a){case"/":{return false}case"\\":if(g&&e.charAt(t+1)==="-"){n+=a;continue}clearStateChar();s=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,t,n,a);if(g){this.debug(" in class");if(a==="!"&&t===_+1)a="^";n+=a;continue}this.debug("call clearStateChar %j",y);clearStateChar();y=a;if(r.noext)clearStateChar();continue;case"(":{if(g){n+="(";continue}if(!y){n+="\\(";continue}const r={type:y,start:t-1,reStart:n.length,open:o[y].open,close:o[y].close};this.debug(this.pattern,"\t",r);c.push(r);n+=r.open;if(r.start===0&&r.type!=="!"){k=true;n+=subPatternStart(e.slice(t+1))}this.debug("plType %j %j",y,n);y=false;continue}case")":{const e=c[c.length-1];if(g||!e){n+="\\)";continue}c.pop();clearStateChar();i=true;S=e;n+=S.close;if(S.type==="!"){h.push(Object.assign(S,{reEnd:n.length}))}continue}case"|":{const r=c[c.length-1];if(g||!r){n+="\\|";continue}clearStateChar();n+="|";if(r.start===0&&r.type!=="!"){k=true;n+=subPatternStart(e.slice(t+1))}continue}case"[":clearStateChar();if(g){n+="\\"+a;continue}g=true;_=t;b=n.length;n+=a;continue;case"]":if(t===_+1||!g){n+="\\"+a;continue}w=e.substring(_+1,t);try{RegExp("["+braExpEscape(charUnescape(w))+"]");n+=a}catch(e){n=n.substring(0,b)+"(?:$.)"}i=true;g=false;continue;default:clearStateChar();if(p[a]&&!(a==="^"&&g)){n+="\\"}n+=a;break}}if(g){w=e.slice(_+1);E=this.parse(w,v);n=n.substring(0,b)+"\\["+E[0];i=i||E[1]}for(S=c.pop();S;S=c.pop()){let e;e=n.slice(S.reStart+S.open.length);this.debug("setting tail",n,S);e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>{if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",e,e,S,n);const t=S.type==="*"?l:S.type==="?"?u:"\\"+S.type;i=true;n=n.slice(0,S.reStart)+t+"\\("+e}clearStateChar();if(s){n+="\\\\"}const x=d[n.charAt(0)];for(let e=h.length-1;e>-1;e--){const r=h[e];const i=n.slice(0,r.reStart);const a=n.slice(r.reStart,r.reEnd-8);let s=n.slice(r.reEnd);const o=n.slice(r.reEnd-8,r.reEnd)+s;const u=i.split(")").length;const l=i.split("(").length-u;let c=s;for(let e=0;e<l;e++){c=c.replace(/\)[+*?]?/,"")}s=c;const p=s===""&&t!==v?"(?:$|\\/)":"";n=i+a+s+p+o}if(n!==""&&i){n="(?=.)"+n}if(x){n=patternStart()+n}if(t===v){return[n,i]}if(r.nocase&&!i){i=e.toUpperCase()!==e.toLowerCase()}if(!i){return globUnescape(e)}const R=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",R),{_glob:e,_src:n})}catch(e){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const e=this.set;if(!e.length){this.regexp=false;return this.regexp}const t=this.options;const r=t.noglobstar?l:t.dot?c:h;const n=t.nocase?"i":"";let i=e.map((e=>{e=e.map((e=>typeof e==="string"?regExpEscape(e):e===a?a:e._src)).reduce(((e,t)=>{if(!(e[e.length-1]===a&&t===a)){e.push(t)}return e}),[]);e.forEach(((t,n)=>{if(t!==a||e[n-1]===a){return}if(n===0){if(e.length>1){e[n+1]="(?:\\/|"+r+"\\/)?"+e[n+1]}else{e[n]=r}}else if(n===e.length-1){e[n-1]+="(?:\\/|"+r+")?"}else{e[n-1]+="(?:\\/|\\/"+r+"\\/)"+e[n+1];e[n+1]=a}}));return e.filter((e=>e!==a)).join("/")})).join("|");i="^(?:"+i+")$";if(this.negate)i="^(?!"+i+").*$";try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=false}return this.regexp}match(e,t=this.partial){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;const r=this.options;if(i.sep!=="/"){e=e.split(i.sep).join("/")}e=e.split(y);this.debug(this.pattern,"split",e);const n=this.set;this.debug(this.pattern,"set",n);let a;for(let t=e.length-1;t>=0;t--){a=e[t];if(a)break}for(let i=0;i<n.length;i++){const s=n[i];let o=e;if(r.matchBase&&s.length===1){o=[a]}const u=this.matchOne(o,s,t);if(u){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}static defaults(e){return n.defaults(e).Minimatch}}n.Minimatch=Minimatch},4527:function(e){
51
+ var r;(function(e){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){e(t)}else{}}else{e(r={})}})((function(e){e.version="1.2.2";function signed_crc_table(){var e=0,t=new Array(256);for(var r=0;r!=256;++r){e=r;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;t[r]=e}return typeof Int32Array!=="undefined"?new Int32Array(t):t}var t=signed_crc_table();function slice_by_16_tables(e){var t=0,r=0,i=0,n=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(i=0;i!=256;++i)n[i]=e[i];for(i=0;i!=256;++i){r=e[i];for(t=256+i;t<4096;t+=256)r=n[t]=r>>>8^e[r&255]}var s=[];for(i=1;i!=16;++i)s[i-1]=typeof Int32Array!=="undefined"?n.subarray(i*256,i*256+256):n.slice(i*256,i*256+256);return s}var r=slice_by_16_tables(t);var i=r[0],n=r[1],s=r[2],a=r[3],o=r[4];var l=r[5],u=r[6],f=r[7],c=r[8],h=r[9];var d=r[10],p=r[11],y=r[12],b=r[13],g=r[14];function crc32_bstr(e,r){var i=r^-1;for(var n=0,s=e.length;n<s;)i=i>>>8^t[(i^e.charCodeAt(n++))&255];return~i}function crc32_buf(e,r){var w=r^-1,_=e.length-15,S=0;for(;S<_;)w=g[e[S++]^w&255]^b[e[S++]^w>>8&255]^y[e[S++]^w>>16&255]^p[e[S++]^w>>>24]^d[e[S++]]^h[e[S++]]^c[e[S++]]^f[e[S++]]^u[e[S++]]^l[e[S++]]^o[e[S++]]^a[e[S++]]^s[e[S++]]^n[e[S++]]^i[e[S++]]^t[e[S++]];_+=15;while(S<_)w=w>>>8^t[(w^e[S++])&255];return~w}function crc32_str(e,r){var i=r^-1;for(var n=0,s=e.length,a=0,o=0;n<s;){a=e.charCodeAt(n++);if(a<128){i=i>>>8^t[(i^a)&255]}else if(a<2048){i=i>>>8^t[(i^(192|a>>6&31))&255];i=i>>>8^t[(i^(128|a&63))&255]}else if(a>=55296&&a<57344){a=(a&1023)+64;o=e.charCodeAt(n++)&1023;i=i>>>8^t[(i^(240|a>>8&7))&255];i=i>>>8^t[(i^(128|a>>2&63))&255];i=i>>>8^t[(i^(128|o>>6&15|(a&3)<<4))&255];i=i>>>8^t[(i^(128|o&63))&255]}else{i=i>>>8^t[(i^(224|a>>12&15))&255];i=i>>>8^t[(i^(128|a>>6&63))&255];i=i>>>8^t[(i^(128|a&63))&255]}}return~i}e.table=t;e.bstr=crc32_bstr;e.buf=crc32_buf;e.str=crc32_str}))},8896:function(e,t,r){"use strict";const{Transform:i}=r(8523);const n=r(3778);class CRC32Stream extends i{constructor(e){super(e);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(e,t,r){if(e){this.checksum=n.buf(e,this.checksum)>>>0;this.rawSize+=e.length}r(null,e)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}e.exports=CRC32Stream},8378:function(e,t,r){"use strict";const{DeflateRaw:i}=r(3106);const n=r(3778);class DeflateCRC32Stream extends i{constructor(e){super(e);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(e,t){if(e){this.compressedSize+=e.length}return super.push(e,t)}_transform(e,t,r){if(e){this.checksum=n.buf(e,this.checksum)>>>0;this.rawSize+=e.length}super._transform(e,t,r)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(e=false){if(e){return this.compressedSize}else{return this.rawSize}}}e.exports=DeflateCRC32Stream},6504:function(e,t,r){"use strict";e.exports={CRC32Stream:r(8896),DeflateCRC32Stream:r(8378)}},4343:function(e,t){"use strict";
52
+ /**
53
+ * @author Toru Nagashima <https://github.com/mysticatea>
54
+ * @copyright 2015 Toru Nagashima. All rights reserved.
55
+ * See LICENSE file in root directory for full license.
56
+ */Object.defineProperty(t,"__esModule",{value:true});const r=new WeakMap;const i=new WeakMap;function pd(e){const t=r.get(e);console.assert(t!=null,"'this' is expected an Event object, but got",e);return t}function setCancelFlag(e){if(e.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}return}if(!e.event.cancelable){return}e.canceled=true;if(typeof e.event.preventDefault==="function"){e.event.preventDefault()}}function Event(e,t){r.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:t.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const i=Object.keys(t);for(let e=0;e<i.length;++e){const t=i[e];if(!(t in this)){Object.defineProperty(this,t,defineRedirectDescriptor(t))}}}Event.prototype={get type(){return pd(this).event.type},get target(){return pd(this).eventTarget},get currentTarget(){return pd(this).currentTarget},composedPath(){const e=pd(this).currentTarget;if(e==null){return[]}return[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return pd(this).eventPhase},stopPropagation(){const e=pd(this);e.stopped=true;if(typeof e.event.stopPropagation==="function"){e.event.stopPropagation()}},stopImmediatePropagation(){const e=pd(this);e.stopped=true;e.immediateStopped=true;if(typeof e.event.stopImmediatePropagation==="function"){e.event.stopImmediatePropagation()}},get bubbles(){return Boolean(pd(this).event.bubbles)},get cancelable(){return Boolean(pd(this).event.cancelable)},preventDefault(){setCancelFlag(pd(this))},get defaultPrevented(){return pd(this).canceled},get composed(){return Boolean(pd(this).event.composed)},get timeStamp(){return pd(this).timeStamp},get srcElement(){return pd(this).eventTarget},get cancelBubble(){return pd(this).stopped},set cancelBubble(e){if(!e){return}const t=pd(this);t.stopped=true;if(typeof t.event.cancelBubble==="boolean"){t.event.cancelBubble=true}},get returnValue(){return!pd(this).canceled},set returnValue(e){if(!e){setCancelFlag(pd(this))}},initEvent(){}};Object.defineProperty(Event.prototype,"constructor",{value:Event,configurable:true,writable:true});if(typeof window!=="undefined"&&typeof window.Event!=="undefined"){Object.setPrototypeOf(Event.prototype,window.Event.prototype);i.set(window.Event.prototype,Event)}function defineRedirectDescriptor(e){return{get(){return pd(this).event[e]},set(t){pd(this).event[e]=t},configurable:true,enumerable:true}}function defineCallDescriptor(e){return{value(){const t=pd(this).event;return t[e].apply(t,arguments)},configurable:true,enumerable:true}}function defineWrapper(e,t){const r=Object.keys(t);if(r.length===0){return e}function CustomEvent(t,r){e.call(this,t,r)}CustomEvent.prototype=Object.create(e.prototype,{constructor:{value:CustomEvent,configurable:true,writable:true}});for(let i=0;i<r.length;++i){const n=r[i];if(!(n in e.prototype)){const e=Object.getOwnPropertyDescriptor(t,n);const r=typeof e.value==="function";Object.defineProperty(CustomEvent.prototype,n,r?defineCallDescriptor(n):defineRedirectDescriptor(n))}}return CustomEvent}function getWrapper(e){if(e==null||e===Object.prototype){return Event}let t=i.get(e);if(t==null){t=defineWrapper(getWrapper(Object.getPrototypeOf(e)),e);i.set(e,t)}return t}function wrapEvent(e,t){const r=getWrapper(Object.getPrototypeOf(t));return new r(e,t)}function isStopped(e){return pd(e).immediateStopped}function setEventPhase(e,t){pd(e).eventPhase=t}function setCurrentTarget(e,t){pd(e).currentTarget=t}function setPassiveListener(e,t){pd(e).passiveListener=t}const n=new WeakMap;const s=1;const a=2;const o=3;function isObject(e){return e!==null&&typeof e==="object"}function getListeners(e){const t=n.get(e);if(t==null){throw new TypeError("'this' is expected an EventTarget object, but got another value.")}return t}function defineEventAttributeDescriptor(e){return{get(){const t=getListeners(this);let r=t.get(e);while(r!=null){if(r.listenerType===o){return r.listener}r=r.next}return null},set(t){if(typeof t!=="function"&&!isObject(t)){t=null}const r=getListeners(this);let i=null;let n=r.get(e);while(n!=null){if(n.listenerType===o){if(i!==null){i.next=n.next}else if(n.next!==null){r.set(e,n.next)}else{r.delete(e)}}else{i=n}n=n.next}if(t!==null){const n={listener:t,listenerType:o,passive:false,once:false,next:null};if(i===null){r.set(e,n)}else{i.next=n}}},configurable:true,enumerable:true}}function defineEventAttribute(e,t){Object.defineProperty(e,`on${t}`,defineEventAttributeDescriptor(t))}function defineCustomEventTarget(e){function CustomEventTarget(){EventTarget.call(this)}CustomEventTarget.prototype=Object.create(EventTarget.prototype,{constructor:{value:CustomEventTarget,configurable:true,writable:true}});for(let t=0;t<e.length;++t){defineEventAttribute(CustomEventTarget.prototype,e[t])}return CustomEventTarget}function EventTarget(){if(this instanceof EventTarget){n.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0])){return defineCustomEventTarget(arguments[0])}if(arguments.length>0){const e=new Array(arguments.length);for(let t=0;t<arguments.length;++t){e[t]=arguments[t]}return defineCustomEventTarget(e)}throw new TypeError("Cannot call a class as a function")}EventTarget.prototype={addEventListener(e,t,r){if(t==null){return}if(typeof t!=="function"&&!isObject(t)){throw new TypeError("'listener' should be a function or an object.")}const i=getListeners(this);const n=isObject(r);const o=n?Boolean(r.capture):Boolean(r);const l=o?s:a;const u={listener:t,listenerType:l,passive:n&&Boolean(r.passive),once:n&&Boolean(r.once),next:null};let f=i.get(e);if(f===undefined){i.set(e,u);return}let c=null;while(f!=null){if(f.listener===t&&f.listenerType===l){return}c=f;f=f.next}c.next=u},removeEventListener(e,t,r){if(t==null){return}const i=getListeners(this);const n=isObject(r)?Boolean(r.capture):Boolean(r);const o=n?s:a;let l=null;let u=i.get(e);while(u!=null){if(u.listener===t&&u.listenerType===o){if(l!==null){l.next=u.next}else if(u.next!==null){i.set(e,u.next)}else{i.delete(e)}return}l=u;u=u.next}},dispatchEvent(e){if(e==null||typeof e.type!=="string"){throw new TypeError('"event.type" should be a string.')}const t=getListeners(this);const r=e.type;let i=t.get(r);if(i==null){return true}const n=wrapEvent(this,e);let s=null;while(i!=null){if(i.once){if(s!==null){s.next=i.next}else if(i.next!==null){t.set(r,i.next)}else{t.delete(r)}}else{s=i}setPassiveListener(n,i.passive?i.listener:null);if(typeof i.listener==="function"){try{i.listener.call(this,n)}catch(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}}}else if(i.listenerType!==o&&typeof i.listener.handleEvent==="function"){i.listener.handleEvent(n)}if(isStopped(n)){break}i=i.next}setPassiveListener(n,null);setEventPhase(n,0);setCurrentTarget(n,null);return!n.defaultPrevented}};Object.defineProperty(EventTarget.prototype,"constructor",{value:EventTarget,configurable:true,writable:true});if(typeof window!=="undefined"&&typeof window.EventTarget!=="undefined"){Object.setPrototypeOf(EventTarget.prototype,window.EventTarget.prototype)}t.defineEventAttribute=defineEventAttribute;t.EventTarget=EventTarget;t["default"]=EventTarget;e.exports=EventTarget;e.exports.EventTarget=e.exports["default"]=EventTarget;e.exports.defineEventAttribute=defineEventAttribute},7494:function(e){e.exports=class FixedFIFO{constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e);this.mask=e-1;this.top=0;this.btm=0;this.next=null}clear(){this.top=this.btm=0;this.next=null;this.buffer.fill(undefined)}push(e){if(this.buffer[this.top]!==undefined)return false;this.buffer[this.top]=e;this.top=this.top+1&this.mask;return true}shift(){const e=this.buffer[this.btm];if(e===undefined)return undefined;this.buffer[this.btm]=undefined;this.btm=this.btm+1&this.mask;return e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===undefined}}},5e3:function(e,t,r){const i=r(7494);e.exports=class FastFIFO{constructor(e){this.hwm=e||16;this.head=new i(this.hwm);this.tail=this.head;this.length=0}clear(){this.head=this.tail;this.head.clear();this.length=0}push(e){this.length++;if(!this.head.push(e)){const t=this.head;this.head=t.next=new i(2*this.head.buffer.length);this.head.push(e)}}shift(){if(this.length!==0)this.length--;const e=this.tail.shift();if(e===undefined&&this.tail.next){const e=this.tail.next;this.tail.next=null;this.tail=e;return this.tail.shift()}return e}peek(){const e=this.tail.peek();if(e===undefined&&this.tail.next)return this.tail.next.peek();return e}isEmpty(){return this.length===0}}},1403:function(e){"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},7551:function(e,t,r){var i=r(9896);var n=r(4538);var s=r(2611);var a=r(1403);var o=r(9023);var l;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){l=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{l="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,l,{get:function(){return t}})}var f=noop;if(o.debuglog)f=o.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))f=function(){var e=o.format.apply(o,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!i[l]){var c=global[l]||[];publishQueue(i,c);i.close=function(e){function close(t,r){return e.call(i,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,u,{value:e});return close}(i.close);i.closeSync=function(e){function closeSync(t){e.apply(i,arguments);resetQueue()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(i.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){f(i[l]);r(2613).equal(i[l].length,0)}))}}if(!global[l]){publishQueue(global,i[l])}e.exports=patch(a(i));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!i.__patched){e.exports=patch(i);i.__patched=true}function patch(e){n(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,i){if(typeof r==="function")i=r,r=null;return go$readFile(e,r,i);function go$readFile(e,r,i,n){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,i],t,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,i,n){if(typeof i==="function")n=i,i=null;return go$writeFile(e,t,i,n);function go$writeFile(e,t,i,n,s){return r(e,t,i,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,i,n],r,s||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var i=e.appendFile;if(i)e.appendFile=appendFile;function appendFile(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$appendFile(e,t,r,n);function go$appendFile(e,t,r,n,s){return i(e,t,r,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,n],i,s||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var a=e.copyFile;if(a)e.copyFile=copyFile;function copyFile(e,t,r,i){if(typeof r==="function"){i=r;r=0}return go$copyFile(e,t,r,i);function go$copyFile(e,t,r,i,n){return a(e,t,r,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,i],s,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var o=e.readdir;e.readdir=readdir;var l=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var i=l.test(process.version)?function go$readdir(e,t,r,i){return o(e,fs$readdirCallback(e,t,r,i))}:function go$readdir(e,t,r,i){return o(e,t,fs$readdirCallback(e,t,r,i))};return i(e,t,r);function fs$readdirCallback(e,t,r,n){return function(s,a){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([i,[e,t,r],s,n||Date.now(),Date.now()]);else{if(a&&a.sort)a.sort();if(typeof r==="function")r.call(this,s,a)}}}}if(process.version.substr(0,4)==="v0.8"){var u=s(e);ReadStream=u.ReadStream;WriteStream=u.WriteStream}var f=e.ReadStream;if(f){ReadStream.prototype=Object.create(f.prototype);ReadStream.prototype.open=ReadStream$open}var c=e.WriteStream;if(c){WriteStream.prototype=Object.create(c.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var h=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});var d=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return f.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return c.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var p=e.open;e.open=open;function open(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$open(e,t,r,i);function go$open(e,t,r,i,n){return p(e,t,r,(function(s,a){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$open,[e,t,r,i],s,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}return e}function enqueue(e){f("ENQUEUE",e[0].name,e[1]);i[l].push(e);retry()}var h;function resetQueue(){var e=Date.now();for(var t=0;t<i[l].length;++t){if(i[l][t].length>2){i[l][t][3]=e;i[l][t][4]=e}}retry()}function retry(){clearTimeout(h);h=undefined;if(i[l].length===0)return;var e=i[l].shift();var t=e[0];var r=e[1];var n=e[2];var s=e[3];var a=e[4];if(s===undefined){f("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-s>=6e4){f("TIMEOUT",t.name,r);var o=r.pop();if(typeof o==="function")o.call(null,n)}else{var u=Date.now()-a;var c=Math.max(a-s,1);var d=Math.min(c*1.2,100);if(u>=d){f("RETRY",t.name,r);t.apply(null,r.concat([s]))}else{i[l].push(e)}}if(h===undefined){h=setTimeout(retry,0)}}},2611:function(e,t,r){var i=r(2203).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);i.call(this);var n=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var s=Object.keys(r);for(var a=0,o=s.length;a<o;a++){var l=s[a];this[l]=r[l]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){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(){n._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){n.emit("error",e);n.readable=false;return}n.fd=t;n.emit("open",t);n._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);i.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var n=Object.keys(r);for(var s=0,a=n.length;s<a;s++){var o=n[s];this[o]=r[o]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},4538:function(e,t,r){var i=r(9140);var n=process.cwd;var s=null;var a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=n.call(process);return s};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var o=process.chdir;process.chdir=function(e){s=null;o.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,o)}e.exports=patch;function patch(e){if(i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,i){if(i)process.nextTick(i)};e.lchownSync=function(){}}if(a==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,i,n){var s=Date.now();var a=0;t(r,i,(function CB(o){if(o&&(o.code==="EACCES"||o.code==="EPERM"||o.code==="EBUSY")&&Date.now()-s<6e4){setTimeout((function(){e.stat(i,(function(e,s){if(e&&e.code==="ENOENT")t(r,i,CB);else n(o)}))}),a);if(a<100)a+=10;return}if(n)n(o)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,i,n,s,a,o){var l;if(o&&typeof o==="function"){var u=0;l=function(f,c,h){if(f&&f.code==="EAGAIN"&&u<10){u++;return t.call(e,r,i,n,s,a,l)}o.apply(this,arguments)}}return t.call(e,r,i,n,s,a,l)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,i,n,s,a){var o=0;while(true){try{return t.call(e,r,i,n,s,a)}catch(e){if(e.code==="EAGAIN"&&o<10){o++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,n){e.open(t,i.O_WRONLY|i.O_SYMLINK,r,(function(t,i){if(t){if(n)n(t);return}e.fchmod(i,r,(function(t){e.close(i,(function(e){if(n)n(t||e)}))}))}))};e.lchmodSync=function(t,r){var n=e.openSync(t,i.O_WRONLY|i.O_SYMLINK,r);var s=true;var a;try{a=e.fchmodSync(n,r);s=false}finally{if(s){try{e.closeSync(n)}catch(e){}}else{e.closeSync(n)}}return a}}function patchLutimes(e){if(i.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,n,s){e.open(t,i.O_SYMLINK,(function(t,i){if(t){if(s)s(t);return}e.futimes(i,r,n,(function(t){e.close(i,(function(e){if(s)s(t||e)}))}))}))};e.lutimesSync=function(t,r,n){var s=e.openSync(t,i.O_SYMLINK);var a;var o=true;try{a=e.futimesSync(s,r,n);o=false}finally{if(o){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return a}}else if(e.futimes){e.lutimes=function(e,t,r,i){if(i)process.nextTick(i)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,i,n){return t.call(e,r,i,(function(e){if(chownErOk(e))e=null;if(n)n.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,i){try{return t.call(e,r,i)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,i,n,s){return t.call(e,r,i,n,(function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,i,n){try{return t.call(e,r,i,n)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,i,n){if(typeof i==="function"){n=i;i=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(n)n.apply(this,arguments)}return i?t.call(e,r,i,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,i){var n=i?t.call(e,r,i):t.call(e,r);if(n){if(n.uid<0)n.uid+=4294967296;if(n.gid<0)n.gid+=4294967296}return n}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},4070:function(e,t,r){try{var i=r(9023);if(typeof i.inherits!=="function")throw"";e.exports=i.inherits}catch(t){e.exports=r(6005)}},6005:function(e){if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},3187:function(e){"use strict";const isStream=e=>e!==null&&typeof e==="object"&&typeof e.pipe==="function";isStream.writable=e=>isStream(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object";isStream.readable=e=>isStream(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object";isStream.duplex=e=>isStream.writable(e)&&isStream.readable(e);isStream.transform=e=>isStream.duplex(e)&&typeof e._transform==="function";e.exports=isStream},4057:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},2186:function(e,t,r){var i=r(9023);var n=r(3627);e.exports={Readable:Readable,Writable:Writable};i.inherits(Readable,n);i.inherits(Writable,n);function beforeFirstCall(e,t,r){e[t]=function(){delete e[t];r.apply(this,arguments);return this[t].apply(this,arguments)}}function Readable(e,t){if(!(this instanceof Readable))return new Readable(e,t);n.call(this,t);beforeFirstCall(this,"_read",(function(){var r=e.call(this,t);var i=this.emit.bind(this,"error");r.on("error",i);r.pipe(this)}));this.emit("readable")}function Writable(e,t){if(!(this instanceof Writable))return new Writable(e,t);n.call(this,t);beforeFirstCall(this,"_write",(function(){var r=e.call(this,t);var i=this.emit.bind(this,"error");r.on("error",i);this.pipe(r)}));this.emit("writable")}},4442:function(e,t,r){var i=r(7305),n=r(7729),s=r(3176),a=r(9836),o=r(9996);function Hash(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}Hash.prototype.clear=i;Hash.prototype["delete"]=n;Hash.prototype.get=s;Hash.prototype.has=a;Hash.prototype.set=o;e.exports=Hash},8394:function(e,t,r){var i=r(8793),n=r(6177),s=r(2904),a=r(716),o=r(9244);function ListCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}ListCache.prototype.clear=i;ListCache.prototype["delete"]=n;ListCache.prototype.get=s;ListCache.prototype.has=a;ListCache.prototype.set=o;e.exports=ListCache},7674:function(e,t,r){var i=r(5211),n=r(9134);var s=i(n,"Map");e.exports=s},3258:function(e,t,r){var i=r(2873),n=r(6593),s=r(9624),a=r(9100),o=r(1420);function MapCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}MapCache.prototype.clear=i;MapCache.prototype["delete"]=n;MapCache.prototype.get=s;MapCache.prototype.has=a;MapCache.prototype.set=o;e.exports=MapCache},4416:function(e,t,r){var i=r(5211),n=r(9134);var s=i(n,"Set");e.exports=s},6204:function(e,t,r){var i=r(3258),n=r(7205),s=r(2518);function SetCache(e){var t=-1,r=e==null?0:e.length;this.__data__=new i;while(++t<r){this.add(e[t])}}SetCache.prototype.add=SetCache.prototype.push=n;SetCache.prototype.has=s;e.exports=SetCache},7314:function(e,t,r){var i=r(9134);var n=i.Symbol;e.exports=n},1888:function(e){function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}e.exports=apply},5292:function(e,t,r){var i=r(8078);function arrayIncludes(e,t){var r=e==null?0:e.length;return!!r&&i(e,t,0)>-1}e.exports=arrayIncludes},532:function(e){function arrayIncludesWith(e,t,r){var i=-1,n=e==null?0:e.length;while(++i<n){if(r(t,e[i])){return true}}return false}e.exports=arrayIncludesWith},9942:function(e,t,r){var i=r(5641),n=r(1283),s=r(9238),a=r(7533),o=r(8528),l=r(5930);var u=Object.prototype;var f=u.hasOwnProperty;function arrayLikeKeys(e,t){var r=s(e),u=!r&&n(e),c=!r&&!u&&a(e),h=!r&&!u&&!c&&l(e),d=r||u||c||h,p=d?i(e.length,String):[],y=p.length;for(var b in e){if((t||f.call(e,b))&&!(d&&(b=="length"||c&&(b=="offset"||b=="parent")||h&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||o(b,y)))){p.push(b)}}return p}e.exports=arrayLikeKeys},6167:function(e){function arrayMap(e,t){var r=-1,i=e==null?0:e.length,n=Array(i);while(++r<i){n[r]=t(e[r],r,e)}return n}e.exports=arrayMap},3017:function(e){function arrayPush(e,t){var r=-1,i=t.length,n=e.length;while(++r<i){e[n+r]=t[r]}return e}e.exports=arrayPush},5962:function(e,t,r){var i=r(5885);function assocIndexOf(e,t){var r=e.length;while(r--){if(i(e[r][0],t)){return r}}return-1}e.exports=assocIndexOf},9792:function(e,t,r){var i=r(6204),n=r(5292),s=r(532),a=r(6167),o=r(6759),l=r(8832);var u=200;function baseDifference(e,t,r,f){var c=-1,h=n,d=true,p=e.length,y=[],b=t.length;if(!p){return y}if(r){t=a(t,o(r))}if(f){h=s;d=false}else if(t.length>=u){h=l;d=false;t=new i(t)}e:while(++c<p){var g=e[c],w=r==null?g:r(g);g=f||g!==0?g:0;if(d&&w===w){var _=b;while(_--){if(t[_]===w){continue e}}y.push(g)}else if(!h(t,w,f)){y.push(g)}}return y}e.exports=baseDifference},9394:function(e){function baseFindIndex(e,t,r,i){var n=e.length,s=r+(i?1:-1);while(i?s--:++s<n){if(t(e[s],s,e)){return s}}return-1}e.exports=baseFindIndex},2697:function(e,t,r){var i=r(3017),n=r(4618);function baseFlatten(e,t,r,s,a){var o=-1,l=e.length;r||(r=n);a||(a=[]);while(++o<l){var u=e[o];if(t>0&&r(u)){if(t>1){baseFlatten(u,t-1,r,s,a)}else{i(a,u)}}else if(!s){a[a.length]=u}}return a}e.exports=baseFlatten},1139:function(e,t,r){var i=r(7314),n=r(4774),s=r(7162);var a="[object Null]",o="[object Undefined]";var l=i?i.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?o:a}return l&&l in Object(e)?n(e):s(e)}e.exports=baseGetTag},8078:function(e,t,r){var i=r(9394),n=r(9326),s=r(8698);function baseIndexOf(e,t,r){return t===t?s(e,t,r):i(e,n,r)}e.exports=baseIndexOf},1659:function(e,t,r){var i=r(1139),n=r(3203);var s="[object Arguments]";function baseIsArguments(e){return n(e)&&i(e)==s}e.exports=baseIsArguments},9326:function(e){function baseIsNaN(e){return e!==e}e.exports=baseIsNaN},7960:function(e,t,r){var i=r(5463),n=r(4807),s=r(8620),a=r(6210);var o=/[\\^$.*+?()[\]{}|]/g;var l=/^\[object .+?Constructor\]$/;var u=Function.prototype,f=Object.prototype;var c=u.toString;var h=f.hasOwnProperty;var d=RegExp("^"+c.call(h).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!s(e)||n(e)){return false}var t=i(e)?d:l;return t.test(a(e))}e.exports=baseIsNative},1906:function(e,t,r){var i=r(1139),n=r(3243),s=r(3203);var a="[object Arguments]",o="[object Array]",l="[object Boolean]",u="[object Date]",f="[object Error]",c="[object Function]",h="[object Map]",d="[object Number]",p="[object Object]",y="[object RegExp]",b="[object Set]",g="[object String]",w="[object WeakMap]";var _="[object ArrayBuffer]",S="[object DataView]",v="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",T="[object Int16Array]",R="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",L="[object Uint16Array]",P="[object Uint32Array]";var C={};C[v]=C[x]=C[k]=C[T]=C[R]=C[A]=C[O]=C[L]=C[P]=true;C[a]=C[o]=C[_]=C[l]=C[S]=C[u]=C[f]=C[c]=C[h]=C[d]=C[p]=C[y]=C[b]=C[g]=C[w]=false;function baseIsTypedArray(e){return s(e)&&n(e.length)&&!!C[i(e)]}e.exports=baseIsTypedArray},496:function(e,t,r){var i=r(8620),n=r(4226),s=r(4146);var a=Object.prototype;var o=a.hasOwnProperty;function baseKeysIn(e){if(!i(e)){return s(e)}var t=n(e),r=[];for(var a in e){if(!(a=="constructor"&&(t||!o.call(e,a)))){r.push(a)}}return r}e.exports=baseKeysIn},9881:function(e,t,r){var i=r(2693),n=r(7602),s=r(2092);function baseRest(e,t){return s(n(e,t,i),e+"")}e.exports=baseRest},7115:function(e,t,r){var i=r(3275),n=r(3636),s=r(2693);var a=!n?s:function(e,t){return n(e,"toString",{configurable:true,enumerable:false,value:i(t),writable:true})};e.exports=a},5641:function(e){function baseTimes(e,t){var r=-1,i=Array(e);while(++r<e){i[r]=t(r)}return i}e.exports=baseTimes},6759:function(e){function baseUnary(e){return function(t){return e(t)}}e.exports=baseUnary},1566:function(e,t,r){var i=r(6204),n=r(5292),s=r(532),a=r(8832),o=r(5744),l=r(2260);var u=200;function baseUniq(e,t,r){var f=-1,c=n,h=e.length,d=true,p=[],y=p;if(r){d=false;c=s}else if(h>=u){var b=t?null:o(e);if(b){return l(b)}d=false;c=a;y=new i}else{y=t?[]:p}e:while(++f<h){var g=e[f],w=t?t(g):g;g=r||g!==0?g:0;if(d&&w===w){var _=y.length;while(_--){if(y[_]===w){continue e}}if(t){y.push(w)}p.push(g)}else if(!c(y,w,r)){if(y!==p){y.push(w)}p.push(g)}}return p}e.exports=baseUniq},8832:function(e){function cacheHas(e,t){return e.has(t)}e.exports=cacheHas},5358:function(e,t,r){var i=r(9134);var n=i["__core-js_shared__"];e.exports=n},5744:function(e,t,r){var i=r(4416),n=r(8303),s=r(2260);var a=1/0;var o=!(i&&1/s(new i([,-0]))[1]==a)?n:function(e){return new i(e)};e.exports=o},3636:function(e,t,r){var i=r(5211);var n=function(){try{var e=i(Object,"defineProperty");e({},"",{});return e}catch(e){}}();e.exports=n},1735:function(e){var t=typeof global=="object"&&global&&global.Object===Object&&global;e.exports=t},4844:function(e,t,r){var i=r(8075);function getMapData(e,t){var r=e.__data__;return i(t)?r[typeof t=="string"?"string":"hash"]:r.map}e.exports=getMapData},5211:function(e,t,r){var i=r(7960),n=r(9067);function getNative(e,t){var r=n(e,t);return i(r)?r:undefined}e.exports=getNative},6752:function(e,t,r){var i=r(7894);var n=i(Object.getPrototypeOf,Object);e.exports=n},4774:function(e,t,r){var i=r(7314);var n=Object.prototype;var s=n.hasOwnProperty;var a=n.toString;var o=i?i.toStringTag:undefined;function getRawTag(e){var t=s.call(e,o),r=e[o];try{e[o]=undefined;var i=true}catch(e){}var n=a.call(e);if(i){if(t){e[o]=r}else{delete e[o]}}return n}e.exports=getRawTag},9067:function(e){function getValue(e,t){return e==null?undefined:e[t]}e.exports=getValue},7305:function(e,t,r){var i=r(1969);function hashClear(){this.__data__=i?i(null):{};this.size=0}e.exports=hashClear},7729:function(e){function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}e.exports=hashDelete},3176:function(e,t,r){var i=r(1969);var n="__lodash_hash_undefined__";var s=Object.prototype;var a=s.hasOwnProperty;function hashGet(e){var t=this.__data__;if(i){var r=t[e];return r===n?undefined:r}return a.call(t,e)?t[e]:undefined}e.exports=hashGet},9836:function(e,t,r){var i=r(1969);var n=Object.prototype;var s=n.hasOwnProperty;function hashHas(e){var t=this.__data__;return i?t[e]!==undefined:s.call(t,e)}e.exports=hashHas},9996:function(e,t,r){var i=r(1969);var n="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=i&&t===undefined?n:t;return this}e.exports=hashSet},4618:function(e,t,r){var i=r(7314),n=r(1283),s=r(9238);var a=i?i.isConcatSpreadable:undefined;function isFlattenable(e){return s(e)||n(e)||!!(a&&e&&e[a])}e.exports=isFlattenable},8528:function(e){var t=9007199254740991;var r=/^(?:0|[1-9]\d*)$/;function isIndex(e,i){var n=typeof e;i=i==null?t:i;return!!i&&(n=="number"||n!="symbol"&&r.test(e))&&(e>-1&&e%1==0&&e<i)}e.exports=isIndex},583:function(e,t,r){var i=r(5885),n=r(1905),s=r(8528),a=r(8620);function isIterateeCall(e,t,r){if(!a(r)){return false}var o=typeof t;if(o=="number"?n(r)&&s(t,r.length):o=="string"&&t in r){return i(r[t],e)}return false}e.exports=isIterateeCall},8075:function(e){function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}e.exports=isKeyable},4807:function(e,t,r){var i=r(5358);var n=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!n&&n in e}e.exports=isMasked},4226:function(e){var t=Object.prototype;function isPrototype(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||t;return e===i}e.exports=isPrototype},8793:function(e){function listCacheClear(){this.__data__=[];this.size=0}e.exports=listCacheClear},6177:function(e,t,r){var i=r(5962);var n=Array.prototype;var s=n.splice;function listCacheDelete(e){var t=this.__data__,r=i(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{s.call(t,r,1)}--this.size;return true}e.exports=listCacheDelete},2904:function(e,t,r){var i=r(5962);function listCacheGet(e){var t=this.__data__,r=i(t,e);return r<0?undefined:t[r][1]}e.exports=listCacheGet},716:function(e,t,r){var i=r(5962);function listCacheHas(e){return i(this.__data__,e)>-1}e.exports=listCacheHas},9244:function(e,t,r){var i=r(5962);function listCacheSet(e,t){var r=this.__data__,n=i(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}e.exports=listCacheSet},2873:function(e,t,r){var i=r(4442),n=r(8394),s=r(7674);function mapCacheClear(){this.size=0;this.__data__={hash:new i,map:new(s||n),string:new i}}e.exports=mapCacheClear},6593:function(e,t,r){var i=r(4844);function mapCacheDelete(e){var t=i(this,e)["delete"](e);this.size-=t?1:0;return t}e.exports=mapCacheDelete},9624:function(e,t,r){var i=r(4844);function mapCacheGet(e){return i(this,e).get(e)}e.exports=mapCacheGet},9100:function(e,t,r){var i=r(4844);function mapCacheHas(e){return i(this,e).has(e)}e.exports=mapCacheHas},1420:function(e,t,r){var i=r(4844);function mapCacheSet(e,t){var r=i(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}e.exports=mapCacheSet},1969:function(e,t,r){var i=r(5211);var n=i(Object,"create");e.exports=n},4146:function(e){function nativeKeysIn(e){var t=[];if(e!=null){for(var r in Object(e)){t.push(r)}}return t}e.exports=nativeKeysIn},3986:function(e,t,r){e=r.nmd(e);var i=r(1735);var n=true&&t&&!t.nodeType&&t;var s=n&&"object"=="object"&&e&&!e.nodeType&&e;var a=s&&s.exports===n;var o=a&&i.process;var l=function(){try{var e=s&&s.require&&s.require("util").types;if(e){return e}return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=l},7162:function(e){var t=Object.prototype;var r=t.toString;function objectToString(e){return r.call(e)}e.exports=objectToString},7894:function(e){function overArg(e,t){return function(r){return e(t(r))}}e.exports=overArg},7602:function(e,t,r){var i=r(1888);var n=Math.max;function overRest(e,t,r){t=n(t===undefined?e.length-1:t,0);return function(){var s=arguments,a=-1,o=n(s.length-t,0),l=Array(o);while(++a<o){l[a]=s[t+a]}a=-1;var u=Array(t+1);while(++a<t){u[a]=s[a]}u[t]=r(l);return i(e,this,u)}}e.exports=overRest},9134:function(e,t,r){var i=r(1735);var n=typeof self=="object"&&self&&self.Object===Object&&self;var s=i||n||Function("return this")();e.exports=s},7205:function(e){var t="__lodash_hash_undefined__";function setCacheAdd(e){this.__data__.set(e,t);return this}e.exports=setCacheAdd},2518:function(e){function setCacheHas(e){return this.__data__.has(e)}e.exports=setCacheHas},2260:function(e){function setToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}e.exports=setToArray},2092:function(e,t,r){var i=r(7115),n=r(4724);var s=n(i);e.exports=s},4724:function(e){var t=800,r=16;var i=Date.now;function shortOut(e){var n=0,s=0;return function(){var a=i(),o=r-(a-s);s=a;if(o>0){if(++n>=t){return arguments[0]}}else{n=0}return e.apply(undefined,arguments)}}e.exports=shortOut},8698:function(e){function strictIndexOf(e,t,r){var i=r-1,n=e.length;while(++i<n){if(e[i]===t){return i}}return-1}e.exports=strictIndexOf},6210:function(e){var t=Function.prototype;var r=t.toString;function toSource(e){if(e!=null){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}e.exports=toSource},3275:function(e){function constant(e){return function(){return e}}e.exports=constant},8309:function(e,t,r){var i=r(9881),n=r(5885),s=r(583),a=r(2264);var o=Object.prototype;var l=o.hasOwnProperty;var u=i((function(e,t){e=Object(e);var r=-1;var i=t.length;var u=i>2?t[2]:undefined;if(u&&s(t[0],t[1],u)){i=1}while(++r<i){var f=t[r];var c=a(f);var h=-1;var d=c.length;while(++h<d){var p=c[h];var y=e[p];if(y===undefined||n(y,o[p])&&!l.call(e,p)){e[p]=f[p]}}}return e}));e.exports=u},9176:function(e,t,r){var i=r(9792),n=r(2697),s=r(9881),a=r(9454);var o=s((function(e,t){return a(e)?i(e,n(t,1,a,true)):[]}));e.exports=o},5885:function(e){function eq(e,t){return e===t||e!==e&&t!==t}e.exports=eq},3281:function(e,t,r){var i=r(2697);function flatten(e){var t=e==null?0:e.length;return t?i(e,1):[]}e.exports=flatten},2693:function(e){function identity(e){return e}e.exports=identity},1283:function(e,t,r){var i=r(1659),n=r(3203);var s=Object.prototype;var a=s.hasOwnProperty;var o=s.propertyIsEnumerable;var l=i(function(){return arguments}())?i:function(e){return n(e)&&a.call(e,"callee")&&!o.call(e,"callee")};e.exports=l},9238:function(e){var t=Array.isArray;e.exports=t},1905:function(e,t,r){var i=r(5463),n=r(3243);function isArrayLike(e){return e!=null&&n(e.length)&&!i(e)}e.exports=isArrayLike},9454:function(e,t,r){var i=r(1905),n=r(3203);function isArrayLikeObject(e){return n(e)&&i(e)}e.exports=isArrayLikeObject},7533:function(e,t,r){e=r.nmd(e);var i=r(9134),n=r(3316);var s=true&&t&&!t.nodeType&&t;var a=s&&"object"=="object"&&e&&!e.nodeType&&e;var o=a&&a.exports===s;var l=o?i.Buffer:undefined;var u=l?l.isBuffer:undefined;var f=u||n;e.exports=f},5463:function(e,t,r){var i=r(1139),n=r(8620);var s="[object AsyncFunction]",a="[object Function]",o="[object GeneratorFunction]",l="[object Proxy]";function isFunction(e){if(!n(e)){return false}var t=i(e);return t==a||t==o||t==s||t==l}e.exports=isFunction},3243:function(e){var t=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}e.exports=isLength},8620:function(e){function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}e.exports=isObject},3203:function(e){function isObjectLike(e){return e!=null&&typeof e=="object"}e.exports=isObjectLike},8600:function(e,t,r){var i=r(1139),n=r(6752),s=r(3203);var a="[object Object]";var o=Function.prototype,l=Object.prototype;var u=o.toString;var f=l.hasOwnProperty;var c=u.call(Object);function isPlainObject(e){if(!s(e)||i(e)!=a){return false}var t=n(e);if(t===null){return true}var r=f.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&u.call(r)==c}e.exports=isPlainObject},5930:function(e,t,r){var i=r(1906),n=r(6759),s=r(3986);var a=s&&s.isTypedArray;var o=a?n(a):i;e.exports=o},2264:function(e,t,r){var i=r(9942),n=r(496),s=r(1905);function keysIn(e){return s(e)?i(e,true):n(e)}e.exports=keysIn},8303:function(e){function noop(){}e.exports=noop},3316:function(e){function stubFalse(){return false}e.exports=stubFalse},3124:function(e,t,r){var i=r(2697),n=r(9881),s=r(1566),a=r(9454);var o=n((function(e){return s(i(e,1,a,true))}));e.exports=o},3697:function(e){const t=typeof process==="object"&&process&&process.platform==="win32";e.exports=t?{sep:"\\"}:{sep:"/"}},1388:function(e,t,r){const i=e.exports=(e,t,r={})=>{assertValidPattern(t);if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)};e.exports=i;const n=r(3697);i.sep=n.sep;const s=Symbol("globstar **");i.GLOBSTAR=s;const a=r(6083);const o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const l="[^/]";const u=l+"*?";const f="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const c="(?:(?!(?:\\/|^)\\.).)*?";const charSet=e=>e.split("").reduce(((e,t)=>{e[t]=true;return e}),{});const h=charSet("().*{}+?[]^$\\!");const d=charSet("[.(");const p=/\/+/;i.filter=(e,t={})=>(r,n,s)=>i(r,e,t);const ext=(e,t={})=>{const r={};Object.keys(e).forEach((t=>r[t]=e[t]));Object.keys(t).forEach((e=>r[e]=t[e]));return r};i.defaults=e=>{if(!e||typeof e!=="object"||!Object.keys(e).length){return i}const t=i;const m=(r,i,n)=>t(r,i,ext(e,n));m.Minimatch=class Minimatch extends t.Minimatch{constructor(t,r){super(t,ext(e,r))}};m.Minimatch.defaults=r=>t.defaults(ext(e,r)).Minimatch;m.filter=(r,i)=>t.filter(r,ext(e,i));m.defaults=r=>t.defaults(ext(e,r));m.makeRe=(r,i)=>t.makeRe(r,ext(e,i));m.braceExpand=(r,i)=>t.braceExpand(r,ext(e,i));m.match=(r,i,n)=>t.match(r,i,ext(e,n));return m};i.braceExpand=(e,t)=>braceExpand(e,t);const braceExpand=(e,t={})=>{assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return a(e)};const y=1024*64;const assertValidPattern=e=>{if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>y){throw new TypeError("pattern is too long")}};const b=Symbol("subparse");i.makeRe=(e,t)=>new Minimatch(e,t||{}).makeRe();i.match=(e,t,r={})=>{const i=new Minimatch(t,r);e=e.filter((e=>i.match(e)));if(i.options.nonull&&!e.length){e.push(t)}return e};const globUnescape=e=>e.replace(/\\(.)/g,"$1");const charUnescape=e=>e.replace(/\\([^-\]])/g,"$1");const regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=e=>e.replace(/[[\]\\]/g,"\\$&");class Minimatch{constructor(e,t){assertValidPattern(e);if(!t)t={};this.options=t;this.set=[];this.pattern=e;this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}debug(){}make(){const e=this.pattern;const t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();let r=this.globSet=this.braceExpand();if(t.debug)this.debug=(...e)=>console.error(...e);this.debug(this.pattern,r);r=this.globParts=r.map((e=>e.split(p)));this.debug(this.pattern,r);r=r.map(((e,t,r)=>e.map(this.parse,this)));this.debug(this.pattern,r);r=r.filter((e=>e.indexOf(false)===-1));this.debug(this.pattern,r);this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=false;let r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++){t=!t;r++}if(r)this.pattern=e.slice(r);this.negate=t}matchOne(e,t,r){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var n=0,a=0,o=e.length,l=t.length;n<o&&a<l;n++,a++){this.debug("matchOne loop");var u=t[a];var f=e[n];this.debug(t,u,f);if(u===false)return false;if(u===s){this.debug("GLOBSTAR",[t,u,f]);var c=n;var h=a+1;if(h===l){this.debug("** at the end");for(;n<o;n++){if(e[n]==="."||e[n]===".."||!i.dot&&e[n].charAt(0)===".")return false}return true}while(c<o){var d=e[c];this.debug("\nglobstar while",e,c,t,h,d);if(this.matchOne(e.slice(c),t.slice(h),r)){this.debug("globstar found match!",c,o,d);return true}else{if(d==="."||d===".."||!i.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,c,t,h);break}this.debug("globstar swallow a segment, and continue");c++}}if(r){this.debug("\n>>> no match, partial?",e,c,t,h);if(c===o)return true}return false}var p;if(typeof u==="string"){p=f===u;this.debug("string match",u,f,p)}else{p=f.match(u);this.debug("pattern match",u,f,p)}if(!p)return false}if(n===o&&a===l){return true}else if(n===o){return r}else if(a===l){return n===o-1&&e[n]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(e,t){assertValidPattern(e);const r=this.options;if(e==="**"){if(!r.noglobstar)return s;else e="*"}if(e==="")return"";let i="";let n=false;let a=false;const f=[];const c=[];let p;let y=false;let g=-1;let w=-1;let _;let S;let v;let x=e.charAt(0)===".";let k=r.dot||x;const patternStart=()=>x?"":k?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=e=>e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(p){switch(p){case"*":i+=u;n=true;break;case"?":i+=l;n=true;break;default:i+="\\"+p;break}this.debug("clearStateChar %j %j",p,i);p=false}};for(let t=0,s;t<e.length&&(s=e.charAt(t));t++){this.debug("%s\t%s %s %j",e,t,i,s);if(a){if(s==="/"){return false}if(h[s]){i+="\\"}i+=s;a=false;continue}switch(s){case"/":{return false}case"\\":if(y&&e.charAt(t+1)==="-"){i+=s;continue}clearStateChar();a=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,t,i,s);if(y){this.debug(" in class");if(s==="!"&&t===w+1)s="^";i+=s;continue}this.debug("call clearStateChar %j",p);clearStateChar();p=s;if(r.noext)clearStateChar();continue;case"(":{if(y){i+="(";continue}if(!p){i+="\\(";continue}const r={type:p,start:t-1,reStart:i.length,open:o[p].open,close:o[p].close};this.debug(this.pattern,"\t",r);f.push(r);i+=r.open;if(r.start===0&&r.type!=="!"){x=true;i+=subPatternStart(e.slice(t+1))}this.debug("plType %j %j",p,i);p=false;continue}case")":{const e=f[f.length-1];if(y||!e){i+="\\)";continue}f.pop();clearStateChar();n=true;S=e;i+=S.close;if(S.type==="!"){c.push(Object.assign(S,{reEnd:i.length}))}continue}case"|":{const r=f[f.length-1];if(y||!r){i+="\\|";continue}clearStateChar();i+="|";if(r.start===0&&r.type!=="!"){x=true;i+=subPatternStart(e.slice(t+1))}continue}case"[":clearStateChar();if(y){i+="\\"+s;continue}y=true;w=t;g=i.length;i+=s;continue;case"]":if(t===w+1||!y){i+="\\"+s;continue}_=e.substring(w+1,t);try{RegExp("["+braExpEscape(charUnescape(_))+"]");i+=s}catch(e){i=i.substring(0,g)+"(?:$.)"}n=true;y=false;continue;default:clearStateChar();if(h[s]&&!(s==="^"&&y)){i+="\\"}i+=s;break}}if(y){_=e.slice(w+1);v=this.parse(_,b);i=i.substring(0,g)+"\\["+v[0];n=n||v[1]}for(S=f.pop();S;S=f.pop()){let e;e=i.slice(S.reStart+S.open.length);this.debug("setting tail",i,S);e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>{if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",e,e,S,i);const t=S.type==="*"?u:S.type==="?"?l:"\\"+S.type;n=true;i=i.slice(0,S.reStart)+t+"\\("+e}clearStateChar();if(a){i+="\\\\"}const T=d[i.charAt(0)];for(let e=c.length-1;e>-1;e--){const r=c[e];const n=i.slice(0,r.reStart);const s=i.slice(r.reStart,r.reEnd-8);let a=i.slice(r.reEnd);const o=i.slice(r.reEnd-8,r.reEnd)+a;const l=n.split(")").length;const u=n.split("(").length-l;let f=a;for(let e=0;e<u;e++){f=f.replace(/\)[+*?]?/,"")}a=f;const h=a===""&&t!==b?"(?:$|\\/)":"";i=n+s+a+h+o}if(i!==""&&n){i="(?=.)"+i}if(T){i=patternStart()+i}if(t===b){return[i,n]}if(r.nocase&&!n){n=e.toUpperCase()!==e.toLowerCase()}if(!n){return globUnescape(e)}const R=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",R),{_glob:e,_src:i})}catch(e){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const e=this.set;if(!e.length){this.regexp=false;return this.regexp}const t=this.options;const r=t.noglobstar?u:t.dot?f:c;const i=t.nocase?"i":"";let n=e.map((e=>{e=e.map((e=>typeof e==="string"?regExpEscape(e):e===s?s:e._src)).reduce(((e,t)=>{if(!(e[e.length-1]===s&&t===s)){e.push(t)}return e}),[]);e.forEach(((t,i)=>{if(t!==s||e[i-1]===s){return}if(i===0){if(e.length>1){e[i+1]="(?:\\/|"+r+"\\/)?"+e[i+1]}else{e[i]=r}}else if(i===e.length-1){e[i-1]+="(?:\\/|"+r+")?"}else{e[i-1]+="(?:\\/|\\/"+r+"\\/)"+e[i+1];e[i+1]=s}}));return e.filter((e=>e!==s)).join("/")})).join("|");n="^(?:"+n+")$";if(this.negate)n="^(?!"+n+").*$";try{this.regexp=new RegExp(n,i)}catch(e){this.regexp=false}return this.regexp}match(e,t=this.partial){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;const r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(p);this.debug(this.pattern,"split",e);const i=this.set;this.debug(this.pattern,"set",i);let s;for(let t=e.length-1;t>=0;t--){s=e[t];if(s)break}for(let n=0;n<i.length;n++){const a=i[n];let o=e;if(r.matchBase&&a.length===1){o=[s]}const l=this.matchOne(o,a,t);if(l){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}static defaults(e){return i.defaults(e).Minimatch}}i.Minimatch=Minimatch},4527:function(e){
52
57
  /*!
53
58
  * normalize-path <https://github.com/jonschlinkert/normalize-path>
54
59
  *
55
60
  * Copyright (c) 2014-2018, Jon Schlinkert.
56
61
  * Released under the MIT License.
57
62
  */
58
- e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("expected path to be a string")}if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&e[3]==="\\"){var i=e[2];if((i==="?"||i===".")&&e.slice(0,2)==="\\\\"){e=e.slice(2);n="//"}}var a=e.split(/[/\\]+/);if(t!==false&&a[a.length-1]===""){a.pop()}return n+a.join("/")}},8068:function(e,t,r){var n=r(8092);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},2106:function(e){"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var i=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||i)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},1847:function(e){"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,t,r,n){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var i=arguments.length;var a,s;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function afterTickOne(){e.call(null,t)}));case 3:return process.nextTick((function afterTickTwo(){e.call(null,t,r)}));case 4:return process.nextTick((function afterTickThree(){e.call(null,t,r,n)}));default:a=new Array(i-1);s=0;while(s<a.length){a[s++]=arguments[s]}return process.nextTick((function afterTick(){e.apply(null,a)}))}}},7561:function(e,t,r){"use strict";var n=r(1847);var i=Object.keys||function(e){var t=[];for(var r in e){t.push(r)}return t};e.exports=Duplex;var a=Object.create(r(9810));a.inherits=r(4070);var s=r(6319);var o=r(227);a.inherits(Duplex,s);{var u=i(o.prototype);for(var l=0;l<u.length;l++){var c=u[l];if(!Duplex.prototype[c])Duplex.prototype[c]=o.prototype[c]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);s.call(this,e);o.call(this,e);if(e&&e.readable===false)this.readable=false;if(e&&e.writable===false)this.writable=false;this.allowHalfOpen=true;if(e&&e.allowHalfOpen===false)this.allowHalfOpen=false;this.once("end",onend)}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function onend(){if(this.allowHalfOpen||this._writableState.ended)return;n.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=e;this._writableState.destroyed=e}});Duplex.prototype._destroy=function(e,t){this.push(null);this.end();n.nextTick(t,e)}},7741:function(e,t,r){"use strict";e.exports=PassThrough;var n=r(5167);var i=Object.create(r(9810));i.inherits=r(4070);i.inherits(PassThrough,n);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);n.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},6319:function(e,t,r){"use strict";var n=r(1847);e.exports=Readable;var i=r(4057);var a;Readable.ReadableState=ReadableState;var s=r(4434).EventEmitter;var EElistenerCount=function(e,t){return e.listeners(t).length};var o=r(8705);var u=r(6912).Buffer;var l=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return u.from(e)}function _isUint8Array(e){return u.isBuffer(e)||e instanceof l}var c=Object.create(r(9810));c.inherits=r(4070);var h=r(9023);var p=void 0;if(h&&h.debuglog){p=h.debuglog("stream")}else{p=function(){}}var d=r(6271);var y=r(3383);var g;c.inherits(Readable,o);var v=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(i(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t){a=a||r(7561);e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.readableObjectMode;var i=e.highWaterMark;var s=e.readableHighWaterMark;var o=this.objectMode?16:16*1024;if(i||i===0)this.highWaterMark=i;else if(n&&(s||s===0))this.highWaterMark=s;else this.highWaterMark=o;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new d;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!g)g=r(8927).I;this.decoder=new g(e.encoding);this.encoding=e.encoding}}function Readable(e){a=a||r(7561);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}o.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=y.destroy;Readable.prototype._undestroy=y.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var n;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=u.from(e,t);t=""}n=true}}else{n=true}return readableAddChunk(this,e,t,false,n)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,n,i){var a=e._readableState;if(t===null){a.reading=false;onEofChunk(e,a)}else{var s;if(!i)s=chunkInvalid(a,t);if(s){e.emit("error",s)}else if(a.objectMode||t&&t.length>0){if(typeof t!=="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==u.prototype){t=_uint8ArrayToBuffer(t)}if(n){if(a.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,a,t,true)}else if(a.ended){e.emit("error",new Error("stream.push() after EOF"))}else{a.reading=false;if(a.decoder&&!r){t=a.decoder.write(t);if(a.objectMode||t.length!==0)addChunk(e,a,t,false);else maybeReadMore(e,a)}else{addChunk(e,a,t,false)}}}else if(!n){a.reading=false}}return needMoreData(a)}function addChunk(e,t,r,n){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(n)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var r;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}return r}function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!g)g=r(8927).I;this._readableState.decoder=new g(e);this._readableState.encoding=e;return this};var b=8388608;function computeNewHighWaterMark(e){if(e>=b){e=b}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){p("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){p("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var n=t.needReadable;p("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;p("length less than watermark",n)}if(t.ended||t.reading){n=false;p("reading or ended",n)}else if(n){p("do read");t.reading=true;t.sync=true;if(t.length===0)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=howMuchToRead(r,t)}var i;if(e>0)i=fromList(e,t);else i=null;if(i===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(i!==null)this.emit("data",i);return i};function onEofChunk(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){p("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)n.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){p("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;n.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){p("maybeReadMore read 0");e.read(0);if(r===t.length)break;else r=t.length}t.readingMore=false}Readable.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Readable.prototype.pipe=function(e,t){var r=this;var i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1;p("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var s=a?onend:unpipe;if(i.endEmitted)n.nextTick(s);else r.once("end",s);e.on("unpipe",onunpipe);function onunpipe(e,t){p("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){p("onend");e.end()}var o=pipeOnDrain(r);e.on("drain",o);var u=false;function cleanup(){p("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",o);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);u=true;if(i.awaitDrain&&(!e._writableState||e._writableState.needDrain))o()}var l=false;r.on("data",ondata);function ondata(t){p("ondata");l=false;var n=e.write(t);if(false===n&&!l){if((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&indexOf(i.pipes,e)!==-1)&&!u){p("false write response, pause",i.awaitDrain);i.awaitDrain++;l=true}r.pause()}}function onerror(t){p("onerror",t);unpipe();e.removeListener("error",onerror);if(EElistenerCount(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){p("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){p("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!i.flowing){p("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&EElistenerCount(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var n=t.pipes;var i=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var a=0;a<i;a++){n[a].emit("unpipe",this,{hasUnpiped:false})}return this}var s=indexOf(t.pipes,e);if(s===-1)return this;t.pipes.splice(s,1);t.pipesCount-=1;if(t.pipesCount===1)t.pipes=t.pipes[0];e.emit("unpipe",this,r);return this};Readable.prototype.on=function(e,t){var r=o.prototype.on.call(this,e,t);if(e==="data"){if(this._readableState.flowing!==false)this.resume()}else if(e==="readable"){var i=this._readableState;if(!i.endEmitted&&!i.readableListening){i.readableListening=i.needReadable=true;i.emittedReadable=false;if(!i.reading){n.nextTick(nReadingNextTick,this)}else if(i.length){emitReadable(this)}}}return r};Readable.prototype.addListener=Readable.prototype.on;function nReadingNextTick(e){p("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){p("resume");e.flowing=true;resume(this,e)}return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;n.nextTick(resume_,e,t)}}function resume_(e,t){if(!t.reading){p("resume read 0");e.read(0)}t.resumeScheduled=false;t.awaitDrain=0;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){p("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){p("pause");this._readableState.flowing=false;this.emit("pause")}return this};function flow(e){var t=e._readableState;p("flow",t.flowing);while(t.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var t=this;var r=this._readableState;var n=false;e.on("end",(function(){p("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)}));e.on("data",(function(i){p("wrapped data");if(r.decoder)i=r.decoder.write(i);if(r.objectMode&&(i===null||i===undefined))return;else if(!r.objectMode&&(!i||!i.length))return;var a=t.push(i);if(!a){n=true;e.pause()}}));for(var i in e){if(this[i]===undefined&&typeof e[i]==="function"){this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i)}}for(var a=0;a<v.length;a++){e.on(v[a],this.emit.bind(this,v[a]))}this._read=function(t){p("wrapped _read",t);if(n){n=false;e.resume()}};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Readable._fromList=fromList;function fromList(e,t){if(t.length===0)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=fromListPartial(e,t.buffer,t.decoder)}return r}function fromListPartial(e,t,r){var n;if(e<t.head.data.length){n=t.head.data.slice(0,e);t.head.data=t.head.data.slice(e)}else if(e===t.head.data.length){n=t.shift()}else{n=r?copyFromBufferString(e,t):copyFromBuffer(e,t)}return n}function copyFromBufferString(e,t){var r=t.head;var n=1;var i=r.data;e-=i.length;while(r=r.next){var a=r.data;var s=e>a.length?a.length:e;if(s===a.length)i+=a;else i+=a.slice(0,e);e-=s;if(e===0){if(s===a.length){++n;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=a.slice(s)}break}++n}t.length-=n;return i}function copyFromBuffer(e,t){var r=u.allocUnsafe(e);var n=t.head;var i=1;n.data.copy(r);e-=n.data.length;while(n=n.next){var a=n.data;var s=e>a.length?a.length:e;a.copy(r,r.length-e,0,s);e-=s;if(e===0){if(s===a.length){++i;if(n.next)t.head=n.next;else t.head=t.tail=null}else{t.head=n;n.data=a.slice(s)}break}++i}t.length-=i;return r}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;n.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var r=0,n=e.length;r<n;r++){if(e[r]===t)return r}return-1}},5167:function(e,t,r){"use strict";e.exports=Transform;var n=r(7561);var i=Object.create(r(9810));i.inherits=r(4070);i.inherits(Transform,n);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(!n){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);n(e);var i=this._readableState;i.reading=false;if(i.needReadable||i.length<i.highWaterMark){this._read(i.highWaterMark)}}function Transform(e){if(!(this instanceof Transform))return new Transform(e);n.call(this,e);this._transformState={afterTransform:afterTransform.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",prefinish)}function prefinish(){var e=this;if(typeof this._flush==="function"){this._flush((function(t,r){done(e,t,r)}))}else{done(this,null,null)}}Transform.prototype.push=function(e,t){this._transformState.needTransform=false;return n.prototype.push.call(this,e,t)};Transform.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Transform.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r;n.writechunk=e;n.writeencoding=t;if(!n.transforming){var i=this._readableState;if(n.needTransform||i.needReadable||i.length<i.highWaterMark)this._read(i.highWaterMark)}};Transform.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&t.writecb&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};Transform.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e);r.emit("close")}))};function done(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}},227:function(e,t,r){"use strict";var n=r(1847);e.exports=Writable;function WriteReq(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var i=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;var a;Writable.WritableState=WritableState;var s=Object.create(r(9810));s.inherits=r(4070);var o={deprecate:r(9987)};var u=r(8705);var l=r(6912).Buffer;var c=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return l.from(e)}function _isUint8Array(e){return l.isBuffer(e)||e instanceof c}var h=r(3383);s.inherits(Writable,u);function nop(){}function WritableState(e,t){a=a||r(7561);e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.writableObjectMode;var i=e.highWaterMark;var s=e.writableHighWaterMark;var o=this.objectMode?16:16*1024;if(i||i===0)this.highWaterMark=i;else if(n&&(s||s===0))this.highWaterMark=s;else this.highWaterMark=o;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=e.decodeStrings===false;this.decodeStrings=!u;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var p;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){p=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(p.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{p=function(e){return e instanceof this}}function Writable(e){a=a||r(7561);if(!p.call(Writable,this)&&!(this instanceof a)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}u.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var r=new Error("write after end");e.emit("error",r);n.nextTick(t,r)}function validChunk(e,t,r,i){var a=true;var s=false;if(r===null){s=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){s=new TypeError("Invalid non-string/buffer chunk")}if(s){e.emit("error",s);n.nextTick(i,s);a=false}return a}Writable.prototype.write=function(e,t,r){var n=this._writableState;var i=false;var a=!n.objectMode&&_isUint8Array(e);if(a&&!l.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(a)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=nop;if(n.ended)writeAfterEnd(this,r);else if(a||validChunk(this,n,e,r)){n.pendingcb++;i=writeOrBuffer(this,n,a,e,t,r)}return i};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=l.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,n,i,a){if(!r){var s=decodeChunk(t,n,i);if(n!==s){r=true;i="buffer";n=s}}var o=t.objectMode?1:n.length;t.length+=o;var u=t.length<t.highWaterMark;if(!u)t.needDrain=true;if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null};if(l){l.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,o,n,i,a)}return u}function doWrite(e,t,r,n,i,a,s){t.writelen=n;t.writecb=s;t.writing=true;t.sync=true;if(r)e._writev(i,t.onwrite);else e._write(i,a,t.onwrite);t.sync=false}function onwriteError(e,t,r,i,a){--t.pendingcb;if(r){n.nextTick(a,i);n.nextTick(finishMaybe,e,t);e._writableState.errorEmitted=true;e.emit("error",i)}else{a(i);e._writableState.errorEmitted=true;e.emit("error",i);finishMaybe(e,t)}}function onwriteStateUpdate(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function onwrite(e,t){var r=e._writableState;var n=r.sync;var a=r.writecb;onwriteStateUpdate(r);if(t)onwriteError(e,r,n,t,a);else{var s=needFinish(r);if(!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(n){i(afterWrite,e,r,s,a)}else{afterWrite(e,r,s,a)}}}function afterWrite(e,t,r,n){if(!r)onwriteDrain(e,t);t.pendingcb--;n();finishMaybe(e,t)}function onwriteDrain(e,t){if(t.length===0&&t.needDrain){t.needDrain=false;e.emit("drain")}}function clearBuffer(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount;var i=new Array(n);var a=t.corkedRequestsFree;a.entry=r;var s=0;var o=true;while(r){i[s]=r;if(!r.isBuf)o=false;r=r.next;s+=1}i.allBuffers=o;doWrite(e,t,true,t.length,i,"",a.finish);t.pendingcb++;t.lastBufferedRequest=null;if(a.next){t.corkedRequestsFree=a.next;a.next=null}else{t.corkedRequestsFree=new CorkedRequest(t)}t.bufferedRequestCount=0}else{while(r){var u=r.chunk;var l=r.encoding;var c=r.callback;var h=t.objectMode?1:u.length;doWrite(e,t,false,h,u,l,c);r=r.next;t.bufferedRequestCount--;if(t.writing){break}}if(r===null)t.lastBufferedRequest=null}t.bufferedRequest=r;t.bufferProcessing=false}Writable.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,t,r){var n=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}if(e!==null&&e!==undefined)this.write(e,t);if(n.corked){n.corked=1;this.uncork()}if(!n.ending)endWritable(this,n,r)};function needFinish(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function callFinal(e,t){e._final((function(r){t.pendingcb--;if(r){e.emit("error",r)}t.prefinished=true;e.emit("prefinish");finishMaybe(e,t)}))}function prefinish(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"){t.pendingcb++;t.finalCalled=true;n.nextTick(callFinal,e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function finishMaybe(e,t){var r=needFinish(t);if(r){prefinish(e,t);if(t.pendingcb===0){t.finished=true;e.emit("finish")}}return r}function endWritable(e,t,r){t.ending=true;finishMaybe(e,t);if(r){if(t.finished)n.nextTick(r);else e.once("finish",r)}t.ended=true;e.writable=false}function onCorkedFinish(e,t,r){var n=e.entry;e.entry=null;while(n){var i=n.callback;t.pendingcb--;i(r);n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(Writable.prototype,"destroyed",{get:function(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function(e){if(!this._writableState){return}this._writableState.destroyed=e}});Writable.prototype.destroy=h.destroy;Writable.prototype._undestroy=h.undestroy;Writable.prototype._destroy=function(e,t){this.end();t(e)}},6271:function(e,t,r){"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var n=r(6912).Buffer;var i=r(9023);function copyBuffer(e,t,r){e.copy(t,r)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next){r+=e+t.data}return r};BufferList.prototype.concat=function concat(e){if(this.length===0)return n.alloc(0);var t=n.allocUnsafe(e>>>0);var r=this.head;var i=0;while(r){copyBuffer(r.data,t,i);i+=r.data.length;r=r.next}return t};return BufferList}();if(i&&i.inspect&&i.inspect.custom){e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e}}},3383:function(e,t,r){"use strict";var n=r(1847);function destroy(e,t){var r=this;var i=this._readableState&&this._readableState.destroyed;var a=this._writableState&&this._writableState.destroyed;if(i||a){if(t){t(e)}else if(e){if(!this._writableState){n.nextTick(emitErrorNT,this,e)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;n.nextTick(emitErrorNT,this,e)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){if(!r._writableState){n.nextTick(emitErrorNT,r,e)}else if(!r._writableState.errorEmitted){r._writableState.errorEmitted=true;n.nextTick(emitErrorNT,r,e)}}else if(t){t(e)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy}},8705:function(e,t,r){e.exports=r(2203)},3627:function(e,t,r){e.exports=r(1397).PassThrough},1397:function(e,t,r){var n=r(2203);if(process.env.READABLE_STREAM==="disable"&&n){e.exports=n;t=e.exports=n.Readable;t.Readable=n.Readable;t.Writable=n.Writable;t.Duplex=n.Duplex;t.Transform=n.Transform;t.PassThrough=n.PassThrough;t.Stream=n}else{t=e.exports=r(6319);t.Stream=n||t;t.Readable=t;t.Writable=r(227);t.Duplex=r(7561);t.Transform=r(5167);t.PassThrough=r(7741)}},4804:function(e){"use strict";const t={};function createErrorType(e,r,n){if(!n){n=Error}function getMessage(e,t,n){if(typeof r==="string"){return r}else{return r(e,t,n)}}class NodeError extends n{constructor(e,t,r){super(getMessage(e,t,r))}}NodeError.prototype.name=n.name;NodeError.prototype.code=e;t[e]=NodeError}function oneOf(e,t){if(Array.isArray(e)){const r=e.length;e=e.map((e=>String(e)));if(r>2){return`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]}else if(r===2){return`one of ${t} ${e[0]} or ${e[1]}`}else{return`of ${t} ${e[0]}`}}else{return`of ${t} ${String(e)}`}}function startsWith(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function endsWith(e,t,r){if(r===undefined||r>e.length){r=e.length}return e.substring(r-t.length,r)===t}function includes(e,t,r){if(typeof r!=="number"){r=0}if(r+t.length>e.length){return false}else{return e.indexOf(t,r)!==-1}}createErrorType("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError);createErrorType("ERR_INVALID_ARG_TYPE",(function(e,t,r){let n;if(typeof t==="string"&&startsWith(t,"not ")){n="must not be";t=t.replace(/^not /,"")}else{n="must be"}let i;if(endsWith(e," argument")){i=`The ${e} ${n} ${oneOf(t,"type")}`}else{const r=includes(e,".")?"property":"argument";i=`The "${e}" ${r} ${n} ${oneOf(t,"type")}`}i+=`. Received type ${typeof r}`;return i}),TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"}));createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"}));createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");e.exports.F=t},7591:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=Duplex;var i=r(6437);var a=r(8709);r(4070)(Duplex,i);{var s=n(a.prototype);for(var o=0;o<s.length;o++){var u=s[o];if(!Duplex.prototype[u])Duplex.prototype[u]=a.prototype[u]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);i.call(this,e);a.call(this,e);this.allowHalfOpen=true;if(e){if(e.readable===false)this.readable=false;if(e.writable===false)this.writable=false;if(e.allowHalfOpen===false){this.allowHalfOpen=false;this.once("end",onend)}}}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:false,get:function get(){return this._writableState.highWaterMark}});Object.defineProperty(Duplex.prototype,"writableBuffer",{enumerable:false,get:function get(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Duplex.prototype,"writableLength",{enumerable:false,get:function get(){return this._writableState.length}});function onend(){if(this._writableState.ended)return;process.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"destroyed",{enumerable:false,get:function get(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function set(e){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=e;this._writableState.destroyed=e}})},5643:function(e,t,r){"use strict";e.exports=PassThrough;var n=r(1625);r(4070)(PassThrough,n);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);n.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},6437:function(e,t,r){"use strict";e.exports=Readable;var n;Readable.ReadableState=ReadableState;var i=r(4434).EventEmitter;var a=function EElistenerCount(e,t){return e.listeners(t).length};var s=r(5451);var o=r(181).Buffer;var u=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return o.from(e)}function _isUint8Array(e){return o.isBuffer(e)||e instanceof u}var l=r(9023);var c;if(l&&l.debuglog){c=l.debuglog("stream")}else{c=function debug(){}}var h=r(5344);var p=r(345);var d=r(6562),y=d.getHighWaterMark;var g=r(4804).F,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,_=g.ERR_METHOD_NOT_IMPLEMENTED,w=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var S;var E;var k;r(4070)(Readable,s);var O=p.errorOrDestroy;var x=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(Array.isArray(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t,i){n=n||r(7591);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=y(this,e,"readableHighWaterMark",i);this.buffer=new h;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.paused=true;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!S)S=r(3252).I;this.decoder=new S(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||r(7591);if(!(this instanceof Readable))return new Readable(e);var t=this instanceof n;this._readableState=new ReadableState(e,this,t);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}s.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:false,get:function get(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function set(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=p.destroy;Readable.prototype._undestroy=p.undestroy;Readable.prototype._destroy=function(e,t){t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var n;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=o.from(e,t);t=""}n=true}}else{n=true}return readableAddChunk(this,e,t,false,n)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,n,i){c("readableAddChunk",t);var a=e._readableState;if(t===null){a.reading=false;onEofChunk(e,a)}else{var s;if(!i)s=chunkInvalid(a,t);if(s){O(e,s)}else if(a.objectMode||t&&t.length>0){if(typeof t!=="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==o.prototype){t=_uint8ArrayToBuffer(t)}if(n){if(a.endEmitted)O(e,new w);else addChunk(e,a,t,true)}else if(a.ended){O(e,new b)}else if(a.destroyed){return false}else{a.reading=false;if(a.decoder&&!r){t=a.decoder.write(t);if(a.objectMode||t.length!==0)addChunk(e,a,t,false);else maybeReadMore(e,a)}else{addChunk(e,a,t,false)}}}else if(!n){a.reading=false;maybeReadMore(e,a)}}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function addChunk(e,t,r,n){if(t.flowing&&t.length===0&&!t.sync){t.awaitDrain=0;e.emit("data",r)}else{t.length+=t.objectMode?1:r.length;if(n)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var r;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new v("chunk",["string","Buffer","Uint8Array"],t)}return r}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!S)S=r(3252).I;var t=new S(e);this._readableState.decoder=t;this._readableState.encoding=this._readableState.decoder.encoding;var n=this._readableState.buffer.head;var i="";while(n!==null){i+=t.write(n.data);n=n.next}this._readableState.buffer.clear();if(i!=="")this._readableState.buffer.push(i);this._readableState.length=i.length;return this};var R=1073741824;function computeNewHighWaterMark(e){if(e>=R){e=R}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){c("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended)){c("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var n=t.needReadable;c("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;c("length less than watermark",n)}if(t.ended||t.reading){n=false;c("reading or ended",n)}else if(n){c("do read");t.reading=true;t.sync=true;if(t.length===0)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=howMuchToRead(r,t)}var i;if(e>0)i=fromList(e,t);else i=null;if(i===null){t.needReadable=t.length<=t.highWaterMark;e=0}else{t.length-=e;t.awaitDrain=0}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(i!==null)this.emit("data",i);return i};function onEofChunk(e,t){c("onEofChunk");if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;if(t.sync){emitReadable(e)}else{t.needReadable=false;if(!t.emittedReadable){t.emittedReadable=true;emitReadable_(e)}}}function emitReadable(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){c("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended);if(!t.destroyed&&(t.length||t.ended)){e.emit("readable");t.emittedReadable=false}t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark;flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;process.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0)){var r=t.length;c("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}Readable.prototype._read=function(e){O(this,new _("_read()"))};Readable.prototype.pipe=function(e,t){var r=this;var n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1;c("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var s=i?onend:unpipe;if(n.endEmitted)process.nextTick(s);else r.once("end",s);e.on("unpipe",onunpipe);function onunpipe(e,t){c("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){c("onend");e.end()}var o=pipeOnDrain(r);e.on("drain",o);var u=false;function cleanup(){c("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",o);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);u=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))o()}r.on("data",ondata);function ondata(t){c("ondata");var i=e.write(t);c("dest.write",i);if(i===false){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!u){c("false write response, pause",n.awaitDrain);n.awaitDrain++}r.pause()}}function onerror(t){c("onerror",t);unpipe();e.removeListener("error",onerror);if(a(e,"error")===0)O(e,t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){c("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){c("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){c("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&a(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var n=t.pipes;var i=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:false});return this}var s=indexOf(t.pipes,e);if(s===-1)return this;t.pipes.splice(s,1);t.pipesCount-=1;if(t.pipesCount===1)t.pipes=t.pipes[0];e.emit("unpipe",this,r);return this};Readable.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);var n=this._readableState;if(e==="data"){n.readableListening=this.listenerCount("readable")>0;if(n.flowing!==false)this.resume()}else if(e==="readable"){if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.flowing=false;n.emittedReadable=false;c("on readable",n.length,n.reading);if(n.length){emitReadable(this)}else if(!n.reading){process.nextTick(nReadingNextTick,this)}}}return r};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return r};Readable.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);if(e==="readable"||e===undefined){process.nextTick(updateReadableListening,this)}return t};function updateReadableListening(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0;if(t.resumeScheduled&&!t.paused){t.flowing=true}else if(e.listenerCount("data")>0){e.resume()}}function nReadingNextTick(e){c("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){c("resume");e.flowing=!e.readableListening;resume(this,e)}e.paused=false;return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;process.nextTick(resume_,e,t)}}function resume_(e,t){c("resume",t.reading);if(!t.reading){e.read(0)}t.resumeScheduled=false;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){c("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){c("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;c("flow",t.flowing);while(t.flowing&&e.read()!==null);}Readable.prototype.wrap=function(e){var t=this;var r=this._readableState;var n=false;e.on("end",(function(){c("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)}));e.on("data",(function(i){c("wrapped data");if(r.decoder)i=r.decoder.write(i);if(r.objectMode&&(i===null||i===undefined))return;else if(!r.objectMode&&(!i||!i.length))return;var a=t.push(i);if(!a){n=true;e.pause()}}));for(var i in e){if(this[i]===undefined&&typeof e[i]==="function"){this[i]=function methodWrap(t){return function methodWrapReturnFunction(){return e[t].apply(e,arguments)}}(i)}}for(var a=0;a<x.length;a++){e.on(x[a],this.emit.bind(this,x[a]))}this._read=function(t){c("wrapped _read",t);if(n){n=false;e.resume()}};return this};if(typeof Symbol==="function"){Readable.prototype[Symbol.asyncIterator]=function(){if(E===undefined){E=r(9756)}return E(this)}}Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:false,get:function get(){return this._readableState.highWaterMark}});Object.defineProperty(Readable.prototype,"readableBuffer",{enumerable:false,get:function get(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Readable.prototype,"readableFlowing",{enumerable:false,get:function get(){return this._readableState.flowing},set:function set(e){if(this._readableState){this._readableState.flowing=e}}});Readable._fromList=fromList;Object.defineProperty(Readable.prototype,"readableLength",{enumerable:false,get:function get(){return this._readableState.length}});function fromList(e,t){if(t.length===0)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.first();else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=t.buffer.consume(e,t.decoder)}return r}function endReadable(e){var t=e._readableState;c("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){c("endReadableNT",e.endEmitted,e.length);if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end");if(e.autoDestroy){var r=t._writableState;if(!r||r.autoDestroy&&r.finished){t.destroy()}}}}if(typeof Symbol==="function"){Readable.from=function(e,t){if(k===undefined){k=r(9995)}return k(Readable,e,t)}}function indexOf(e,t){for(var r=0,n=e.length;r<n;r++){if(e[r]===t)return r}return-1}},1625:function(e,t,r){"use strict";e.exports=Transform;var n=r(4804).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0;var u=r(7591);r(4070)(Transform,u);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(n===null){return this.emit("error",new a)}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);n(e);var i=this._readableState;i.reading=false;if(i.needReadable||i.length<i.highWaterMark){this._read(i.highWaterMark)}}function Transform(e){if(!(this instanceof Transform))return new Transform(e);u.call(this,e);this._transformState={afterTransform:afterTransform.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",prefinish)}function prefinish(){var e=this;if(typeof this._flush==="function"&&!this._readableState.destroyed){this._flush((function(t,r){done(e,t,r)}))}else{done(this,null,null)}}Transform.prototype.push=function(e,t){this._transformState.needTransform=false;return u.prototype.push.call(this,e,t)};Transform.prototype._transform=function(e,t,r){r(new i("_transform()"))};Transform.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r;n.writechunk=e;n.writeencoding=t;if(!n.transforming){var i=this._readableState;if(n.needTransform||i.needReadable||i.length<i.highWaterMark)this._read(i.highWaterMark)}};Transform.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};Transform.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))};function done(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(e._writableState.length)throw new o;if(e._transformState.transforming)throw new s;return e.push(null)}},8709:function(e,t,r){"use strict";e.exports=Writable;function WriteReq(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var n;Writable.WritableState=WritableState;var i={deprecate:r(9987)};var a=r(5451);var s=r(181).Buffer;var o=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return s.from(e)}function _isUint8Array(e){return s.isBuffer(e)||e instanceof o}var u=r(345);var l=r(6562),c=l.getHighWaterMark;var h=r(4804).F,p=h.ERR_INVALID_ARG_TYPE,d=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,_=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING;var S=u.errorOrDestroy;r(4070)(Writable,a);function nop(){}function WritableState(e,t,i){n=n||r(7591);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=c(this,e,"writableHighWaterMark",i);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var a=e.decodeStrings===false;this.decodeStrings=!a;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:i.deprecate((function writableStateBufferGetter(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var E;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){E=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(E.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{E=function realHasInstance(e){return e instanceof this}}function Writable(e){n=n||r(7591);var t=this instanceof n;if(!t&&!E.call(Writable,this))return new Writable(e);this._writableState=new WritableState(e,this,t);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}a.call(this)}Writable.prototype.pipe=function(){S(this,new g)};function writeAfterEnd(e,t){var r=new _;S(e,r);process.nextTick(t,r)}function validChunk(e,t,r,n){var i;if(r===null){i=new b}else if(typeof r!=="string"&&!t.objectMode){i=new p("chunk",["string","Buffer"],r)}if(i){S(e,i);process.nextTick(n,i);return false}return true}Writable.prototype.write=function(e,t,r){var n=this._writableState;var i=false;var a=!n.objectMode&&_isUint8Array(e);if(a&&!s.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(a)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=nop;if(n.ending)writeAfterEnd(this,r);else if(a||validChunk(this,n,e,r)){n.pendingcb++;i=writeOrBuffer(this,n,a,e,t,r)}return i};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);this._writableState.defaultEncoding=e;return this};Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:false,get:function get(){return this._writableState&&this._writableState.getBuffer()}});function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=s.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function get(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,n,i,a){if(!r){var s=decodeChunk(t,n,i);if(n!==s){r=true;i="buffer";n=s}}var o=t.objectMode?1:n.length;t.length+=o;var u=t.length<t.highWaterMark;if(!u)t.needDrain=true;if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null};if(l){l.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,o,n,i,a)}return u}function doWrite(e,t,r,n,i,a,s){t.writelen=n;t.writecb=s;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new v("write"));else if(r)e._writev(i,t.onwrite);else e._write(i,a,t.onwrite);t.sync=false}function onwriteError(e,t,r,n,i){--t.pendingcb;if(r){process.nextTick(i,n);process.nextTick(finishMaybe,e,t);e._writableState.errorEmitted=true;S(e,n)}else{i(n);e._writableState.errorEmitted=true;S(e,n);finishMaybe(e,t)}}function onwriteStateUpdate(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function onwrite(e,t){var r=e._writableState;var n=r.sync;var i=r.writecb;if(typeof i!=="function")throw new y;onwriteStateUpdate(r);if(t)onwriteError(e,r,n,t,i);else{var a=needFinish(r)||e.destroyed;if(!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(n){process.nextTick(afterWrite,e,r,a,i)}else{afterWrite(e,r,a,i)}}}function afterWrite(e,t,r,n){if(!r)onwriteDrain(e,t);t.pendingcb--;n();finishMaybe(e,t)}function onwriteDrain(e,t){if(t.length===0&&t.needDrain){t.needDrain=false;e.emit("drain")}}function clearBuffer(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount;var i=new Array(n);var a=t.corkedRequestsFree;a.entry=r;var s=0;var o=true;while(r){i[s]=r;if(!r.isBuf)o=false;r=r.next;s+=1}i.allBuffers=o;doWrite(e,t,true,t.length,i,"",a.finish);t.pendingcb++;t.lastBufferedRequest=null;if(a.next){t.corkedRequestsFree=a.next;a.next=null}else{t.corkedRequestsFree=new CorkedRequest(t)}t.bufferedRequestCount=0}else{while(r){var u=r.chunk;var l=r.encoding;var c=r.callback;var h=t.objectMode?1:u.length;doWrite(e,t,false,h,u,l,c);r=r.next;t.bufferedRequestCount--;if(t.writing){break}}if(r===null)t.lastBufferedRequest=null}t.bufferedRequest=r;t.bufferProcessing=false}Writable.prototype._write=function(e,t,r){r(new d("_write()"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,t,r){var n=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}if(e!==null&&e!==undefined)this.write(e,t);if(n.corked){n.corked=1;this.uncork()}if(!n.ending)endWritable(this,n,r);return this};Object.defineProperty(Writable.prototype,"writableLength",{enumerable:false,get:function get(){return this._writableState.length}});function needFinish(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function callFinal(e,t){e._final((function(r){t.pendingcb--;if(r){S(e,r)}t.prefinished=true;e.emit("prefinish");finishMaybe(e,t)}))}function prefinish(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"&&!t.destroyed){t.pendingcb++;t.finalCalled=true;process.nextTick(callFinal,e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function finishMaybe(e,t){var r=needFinish(t);if(r){prefinish(e,t);if(t.pendingcb===0){t.finished=true;e.emit("finish");if(t.autoDestroy){var n=e._readableState;if(!n||n.autoDestroy&&n.endEmitted){e.destroy()}}}}return r}function endWritable(e,t,r){t.ending=true;finishMaybe(e,t);if(r){if(t.finished)process.nextTick(r);else e.once("finish",r)}t.ended=true;e.writable=false}function onCorkedFinish(e,t,r){var n=e.entry;e.entry=null;while(n){var i=n.callback;t.pendingcb--;i(r);n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(Writable.prototype,"destroyed",{enumerable:false,get:function get(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function set(e){if(!this._writableState){return}this._writableState.destroyed=e}});Writable.prototype.destroy=u.destroy;Writable.prototype._undestroy=u.undestroy;Writable.prototype._destroy=function(e,t){t(e)}},9756:function(e,t,r){"use strict";var n;function _defineProperty(e,t,r){t=_toPropertyKey(t);if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t==="symbol"?t:String(t)}function _toPrimitive(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if(typeof n!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=r(8951);var a=Symbol("lastResolve");var s=Symbol("lastReject");var o=Symbol("error");var u=Symbol("ended");var l=Symbol("lastPromise");var c=Symbol("handlePromise");var h=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[a];if(t!==null){var r=e[h].read();if(r!==null){e[l]=null;e[a]=null;e[s]=null;t(createIterResult(r,false))}}}function onReadable(e){process.nextTick(readAndResolve,e)}function wrapForNext(e,t){return function(r,n){e.then((function(){if(t[u]){r(createIterResult(undefined,true));return}t[c](r,n)}),n)}}var p=Object.getPrototypeOf((function(){}));var d=Object.setPrototypeOf((n={get stream(){return this[h]},next:function next(){var e=this;var t=this[o];if(t!==null){return Promise.reject(t)}if(this[u]){return Promise.resolve(createIterResult(undefined,true))}if(this[h].destroyed){return new Promise((function(t,r){process.nextTick((function(){if(e[o]){r(e[o])}else{t(createIterResult(undefined,true))}}))}))}var r=this[l];var n;if(r){n=new Promise(wrapForNext(r,this))}else{var i=this[h].read();if(i!==null){return Promise.resolve(createIterResult(i,false))}n=new Promise(this[c])}this[l]=n;return n}},_defineProperty(n,Symbol.asyncIterator,(function(){return this})),_defineProperty(n,"return",(function _return(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){if(e){r(e);return}t(createIterResult(undefined,true))}))}))})),n),p);var y=function createReadableStreamAsyncIterator(e){var t;var r=Object.create(d,(t={},_defineProperty(t,h,{value:e,writable:true}),_defineProperty(t,a,{value:null,writable:true}),_defineProperty(t,s,{value:null,writable:true}),_defineProperty(t,o,{value:null,writable:true}),_defineProperty(t,u,{value:e._readableState.endEmitted,writable:true}),_defineProperty(t,c,{value:function value(e,t){var n=r[h].read();if(n){r[l]=null;r[a]=null;r[s]=null;e(createIterResult(n,false))}else{r[a]=e;r[s]=t}},writable:true}),t));r[l]=null;i(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=r[s];if(t!==null){r[l]=null;r[a]=null;r[s]=null;t(e)}r[o]=e;return}var n=r[a];if(n!==null){r[l]=null;r[a]=null;r[s]=null;n(createIterResult(undefined,true))}r[u]=true}));e.on("readable",onReadable.bind(null,r));return r};e.exports=y},5344:function(e,t,r){"use strict";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){t=_toPropertyKey(t);if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){if(t)_defineProperties(e.prototype,t);if(r)_defineProperties(e,r);Object.defineProperty(e,"prototype",{writable:false});return e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t==="symbol"?t:String(t)}function _toPrimitive(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if(typeof n!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n=r(181),i=n.Buffer;var a=r(9023),s=a.inspect;var o=s&&s.custom||"inspect";function copyBuffer(e,t,r){i.prototype.copy.call(e,t,r)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}_createClass(BufferList,[{key:"push",value:function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length}},{key:"unshift",value:function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length}},{key:"shift",value:function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e}},{key:"clear",value:function clear(){this.head=this.tail=null;this.length=0}},{key:"join",value:function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next)r+=e+t.data;return r}},{key:"concat",value:function concat(e){if(this.length===0)return i.alloc(0);var t=i.allocUnsafe(e>>>0);var r=this.head;var n=0;while(r){copyBuffer(r.data,t,n);n+=r.data.length;r=r.next}return t}},{key:"consume",value:function consume(e,t){var r;if(e<this.head.data.length){r=this.head.data.slice(0,e);this.head.data=this.head.data.slice(e)}else if(e===this.head.data.length){r=this.shift()}else{r=t?this._getString(e):this._getBuffer(e)}return r}},{key:"first",value:function first(){return this.head.data}},{key:"_getString",value:function _getString(e){var t=this.head;var r=1;var n=t.data;e-=n.length;while(t=t.next){var i=t.data;var a=e>i.length?i.length:e;if(a===i.length)n+=i;else n+=i.slice(0,e);e-=a;if(e===0){if(a===i.length){++r;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=i.slice(a)}break}++r}this.length-=r;return n}},{key:"_getBuffer",value:function _getBuffer(e){var t=i.allocUnsafe(e);var r=this.head;var n=1;r.data.copy(t);e-=r.data.length;while(r=r.next){var a=r.data;var s=e>a.length?a.length:e;a.copy(t,t.length-e,0,s);e-=s;if(e===0){if(s===a.length){++n;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=a.slice(s)}break}++n}this.length-=n;return t}},{key:o,value:function value(e,t){return s(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:false}))}}]);return BufferList}()},345:function(e){"use strict";function destroy(e,t){var r=this;var n=this._readableState&&this._readableState.destroyed;var i=this._writableState&&this._writableState.destroyed;if(n||i){if(t){t(e)}else if(e){if(!this._writableState){process.nextTick(emitErrorNT,this,e)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;process.nextTick(emitErrorNT,this,e)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){if(!r._writableState){process.nextTick(emitErrorAndCloseNT,r,e)}else if(!r._writableState.errorEmitted){r._writableState.errorEmitted=true;process.nextTick(emitErrorAndCloseNT,r,e)}else{process.nextTick(emitCloseNT,r)}}else if(t){process.nextTick(emitCloseNT,r);t(e)}else{process.nextTick(emitCloseNT,r)}}));return this}function emitErrorAndCloseNT(e,t){emitErrorNT(e,t);emitCloseNT(e)}function emitCloseNT(e){if(e._writableState&&!e._writableState.emitClose)return;if(e._readableState&&!e._readableState.emitClose)return;e.emit("close")}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}function errorOrDestroy(e,t){var r=e._readableState;var n=e._writableState;if(r&&r.autoDestroy||n&&n.autoDestroy)e.destroy(t);else e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},8951:function(e,t,r){"use strict";var n=r(4804).F.ERR_STREAM_PREMATURE_CLOSE;function once(e){var t=false;return function(){if(t)return;t=true;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++){n[i]=arguments[i]}e.apply(this,n)}}function noop(){}function isRequest(e){return e.setHeader&&typeof e.abort==="function"}function eos(e,t,r){if(typeof t==="function")return eos(e,null,t);if(!t)t={};r=once(r||noop);var i=t.readable||t.readable!==false&&e.readable;var a=t.writable||t.writable!==false&&e.writable;var s=function onlegacyfinish(){if(!e.writable)u()};var o=e._writableState&&e._writableState.finished;var u=function onfinish(){a=false;o=true;if(!i)r.call(e)};var l=e._readableState&&e._readableState.endEmitted;var c=function onend(){i=false;l=true;if(!a)r.call(e)};var h=function onerror(t){r.call(e,t)};var p=function onclose(){var t;if(i&&!l){if(!e._readableState||!e._readableState.ended)t=new n;return r.call(e,t)}if(a&&!o){if(!e._writableState||!e._writableState.ended)t=new n;return r.call(e,t)}};var d=function onrequest(){e.req.on("finish",u)};if(isRequest(e)){e.on("complete",u);e.on("abort",p);if(e.req)d();else e.on("request",d)}else if(a&&!e._writableState){e.on("end",s);e.on("close",s)}e.on("end",c);e.on("finish",u);if(t.error!==false)e.on("error",h);e.on("close",p);return function(){e.removeListener("complete",u);e.removeListener("abort",p);e.removeListener("request",d);if(e.req)e.req.removeListener("finish",u);e.removeListener("end",s);e.removeListener("close",s);e.removeListener("finish",u);e.removeListener("end",c);e.removeListener("error",h);e.removeListener("close",p)}}e.exports=eos},9995:function(e,t,r){"use strict";function asyncGeneratorStep(e,t,r,n,i,a,s){try{var o=e[a](s);var u=o.value}catch(e){r(e);return}if(o.done){t(u)}else{Promise.resolve(u).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function _next(e){asyncGeneratorStep(a,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(a,n,i,_next,_throw,"throw",e)}_next(undefined)}))}}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){t=_toPropertyKey(t);if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t==="symbol"?t:String(t)}function _toPrimitive(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if(typeof n!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n=r(4804).F.ERR_INVALID_ARG_TYPE;function from(e,t,r){var i;if(t&&typeof t.next==="function"){i=t}else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new n("iterable",["Iterable"],t);var a=new e(_objectSpread({objectMode:true},r));var s=false;a._read=function(){if(!s){s=true;next()}};function next(){return _next2.apply(this,arguments)}function _next2(){_next2=_asyncToGenerator((function*(){try{var e=yield i.next(),t=e.value,r=e.done;if(r){a.push(null)}else if(a.push(yield t)){next()}else{s=false}}catch(e){a.destroy(e)}}));return _next2.apply(this,arguments)}return a}e.exports=from},2165:function(e,t,r){"use strict";var n;function once(e){var t=false;return function(){if(t)return;t=true;e.apply(void 0,arguments)}}var i=r(4804).F,a=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function noop(e){if(e)throw e}function isRequest(e){return e.setHeader&&typeof e.abort==="function"}function destroyer(e,t,i,a){a=once(a);var o=false;e.on("close",(function(){o=true}));if(n===undefined)n=r(8951);n(e,{readable:t,writable:i},(function(e){if(e)return a(e);o=true;a()}));var u=false;return function(t){if(o)return;if(u)return;u=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();a(t||new s("pipe"))}}function call(e){e()}function pipe(e,t){return e.pipe(t)}function popCallback(e){if(!e.length)return noop;if(typeof e[e.length-1]!=="function")return noop;return e.pop()}function pipeline(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}var n=popCallback(t);if(Array.isArray(t[0]))t=t[0];if(t.length<2){throw new a("streams")}var i;var s=t.map((function(e,r){var a=r<t.length-1;var o=r>0;return destroyer(e,a,o,(function(e){if(!i)i=e;if(e)s.forEach(call);if(a)return;s.forEach(call);n(i)}))}));return t.reduce(pipe)}e.exports=pipeline},6562:function(e,t,r){"use strict";var n=r(4804).F.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function getHighWaterMark(e,t,r,i){var a=highWaterMarkFrom(t,i,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=i?r:"highWaterMark";throw new n(s,a)}return Math.floor(a)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},5451:function(e,t,r){e.exports=r(2203)},1643:function(e,t,r){var n=r(2203);if(process.env.READABLE_STREAM==="disable"&&n){e.exports=n.Readable;Object.assign(e.exports,n);e.exports.Stream=n}else{t=e.exports=r(6437);t.Stream=n||t;t.Readable=t;t.Writable=r(8709);t.Duplex=r(7591);t.Transform=r(1625);t.PassThrough=r(5643);t.finished=r(8951);t.pipeline=r(2165)}},8975:function(e,t,r){e.exports=readdirGlob;const n=r(9896);const{EventEmitter:i}=r(4434);const{Minimatch:a}=r(1388);const{resolve:s}=r(6928);function readdir(e,t){return new Promise(((r,i)=>{n.readdir(e,{withFileTypes:true},((e,n)=>{if(e){switch(e.code){case"ENOTDIR":if(t){i(e)}else{r([])}break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;case"ELOOP":default:i(e);break}}else{r(n)}}))}))}function stat(e,t){return new Promise(((r,i)=>{const a=t?n.stat:n.lstat;a(e,((n,i)=>{if(n){switch(n.code){case"ENOENT":if(t){r(stat(e,false))}else{r(null)}break;default:r(null);break}}else{r(i)}}))}))}async function*exploreWalkAsync(e,t,r,n,i,a){let s=await readdir(t+e,a);for(const a of s){let s=a.name;if(s===undefined){s=a;n=true}const o=e+"/"+s;const u=o.slice(1);const l=t+"/"+u;let c=null;if(n||r){c=await stat(l,r)}if(!c&&a.name!==undefined){c=a}if(c===null){c={isDirectory:()=>false}}if(c.isDirectory()){if(!i(u)){yield{relative:u,absolute:l,stats:c};yield*exploreWalkAsync(o,t,r,n,i,false)}}else{yield{relative:u,absolute:l,stats:c}}}}async function*explore(e,t,r,n){yield*exploreWalkAsync("",e,t,r,n,true)}function readOptions(e){return{pattern:e.pattern,dot:!!e.dot,noglobstar:!!e.noglobstar,matchBase:!!e.matchBase,nocase:!!e.nocase,ignore:e.ignore,skip:e.skip,follow:!!e.follow,stat:!!e.stat,nodir:!!e.nodir,mark:!!e.mark,silent:!!e.silent,absolute:!!e.absolute}}class ReaddirGlob extends i{constructor(e,t,r){super();if(typeof t==="function"){r=t;t=null}this.options=readOptions(t||{});this.matchers=[];if(this.options.pattern){const e=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=e.map((e=>new a(e,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase})))}this.ignoreMatchers=[];if(this.options.ignore){const e=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=e.map((e=>new a(e,{dot:true})))}this.skipMatchers=[];if(this.options.skip){const e=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=e.map((e=>new a(e,{dot:true})))}this.iterator=explore(s(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this));this.paused=false;this.inactive=false;this.aborted=false;if(r){this._matches=[];this.on("match",(e=>this._matches.push(this.options.absolute?e.absolute:e.relative)));this.on("error",(e=>r(e)));this.on("end",(()=>r(null,this._matches)))}setTimeout((()=>this._next()),0)}_shouldSkipDirectory(e){return this.skipMatchers.some((t=>t.match(e)))}_fileMatches(e,t){const r=e+(t?"/":"");return(this.matchers.length===0||this.matchers.some((e=>e.match(r))))&&!this.ignoreMatchers.some((e=>e.match(r)))&&(!this.options.nodir||!t)}_next(){if(!this.paused&&!this.aborted){this.iterator.next().then((e=>{if(!e.done){const t=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,t)){let r=e.value.relative;let n=e.value.absolute;if(this.options.mark&&t){r+="/";n+="/"}if(this.options.stat){this.emit("match",{relative:r,absolute:n,stat:e.value.stats})}else{this.emit("match",{relative:r,absolute:n})}}this._next(this.iterator)}else{this.emit("end")}})).catch((e=>{this.abort();this.emit("error",e);if(!e.code&&!this.options.silent){console.error(e)}}))}else{this.inactive=true}}abort(){this.aborted=true}pause(){this.paused=true}resume(){this.paused=false;if(this.inactive){this.inactive=false;this._next()}}}function readdirGlob(e,t,r){return new ReaddirGlob(e,t,r)}readdirGlob.ReaddirGlob=ReaddirGlob},6912:function(e,t,r){var n=r(181);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return i(e,t,r)}copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=i(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},3476:function(e,t,r){
63
+ e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("expected path to be a string")}if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var i="";if(r>4&&e[3]==="\\"){var n=e[2];if((n==="?"||n===".")&&e.slice(0,2)==="\\\\"){e=e.slice(2);i="//"}}var s=e.split(/[/\\]+/);if(t!==false&&s[s.length-1]===""){s.pop()}return i+s.join("/")}},1847:function(e){"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,t,r,i){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var n=arguments.length;var s,a;switch(n){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function afterTickOne(){e.call(null,t)}));case 3:return process.nextTick((function afterTickTwo(){e.call(null,t,r)}));case 4:return process.nextTick((function afterTickThree(){e.call(null,t,r,i)}));default:s=new Array(n-1);a=0;while(a<s.length){s[a++]=arguments[a]}return process.nextTick((function afterTick(){e.apply(null,s)}))}}},125:function(e){e.exports=global.process},7561:function(e,t,r){"use strict";var i=r(1847);var n=Object.keys||function(e){var t=[];for(var r in e){t.push(r)}return t};e.exports=Duplex;var s=Object.create(r(9810));s.inherits=r(4070);var a=r(6319);var o=r(227);s.inherits(Duplex,a);{var l=n(o.prototype);for(var u=0;u<l.length;u++){var f=l[u];if(!Duplex.prototype[f])Duplex.prototype[f]=o.prototype[f]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);a.call(this,e);o.call(this,e);if(e&&e.readable===false)this.readable=false;if(e&&e.writable===false)this.writable=false;this.allowHalfOpen=true;if(e&&e.allowHalfOpen===false)this.allowHalfOpen=false;this.once("end",onend)}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function onend(){if(this.allowHalfOpen||this._writableState.ended)return;i.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=e;this._writableState.destroyed=e}});Duplex.prototype._destroy=function(e,t){this.push(null);this.end();i.nextTick(t,e)}},7741:function(e,t,r){"use strict";e.exports=PassThrough;var i=r(5167);var n=Object.create(r(9810));n.inherits=r(4070);n.inherits(PassThrough,i);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);i.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},6319:function(e,t,r){"use strict";var i=r(1847);e.exports=Readable;var n=r(4057);var s;Readable.ReadableState=ReadableState;var a=r(4434).EventEmitter;var EElistenerCount=function(e,t){return e.listeners(t).length};var o=r(8705);var l=r(6912).Buffer;var u=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return l.from(e)}function _isUint8Array(e){return l.isBuffer(e)||e instanceof u}var f=Object.create(r(9810));f.inherits=r(4070);var c=r(9023);var h=void 0;if(c&&c.debuglog){h=c.debuglog("stream")}else{h=function(){}}var d=r(6271);var p=r(3383);var y;f.inherits(Readable,o);var b=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(n(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t){s=s||r(7561);e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;var n=e.highWaterMark;var a=e.readableHighWaterMark;var o=this.objectMode?16:16*1024;if(n||n===0)this.highWaterMark=n;else if(i&&(a||a===0))this.highWaterMark=a;else this.highWaterMark=o;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new d;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!y)y=r(8927).I;this.decoder=new y(e.encoding);this.encoding=e.encoding}}function Readable(e){s=s||r(7561);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}o.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=p.destroy;Readable.prototype._undestroy=p.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var i;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=l.from(e,t);t=""}i=true}}else{i=true}return readableAddChunk(this,e,t,false,i)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,i,n){var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var a;if(!n)a=chunkInvalid(s,t);if(a){e.emit("error",a)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==l.prototype){t=_uint8ArrayToBuffer(t)}if(i){if(s.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,s,t,true)}else if(s.ended){e.emit("error",new Error("stream.push() after EOF"))}else{s.reading=false;if(s.decoder&&!r){t=s.decoder.write(t);if(s.objectMode||t.length!==0)addChunk(e,s,t,false);else maybeReadMore(e,s)}else{addChunk(e,s,t,false)}}}else if(!i){s.reading=false}}return needMoreData(s)}function addChunk(e,t,r,i){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(i)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var r;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}return r}function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!y)y=r(8927).I;this._readableState.decoder=new y(e);this._readableState.encoding=e;return this};var g=8388608;function computeNewHighWaterMark(e){if(e>=g){e=g}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){h("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){h("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var i=t.needReadable;h("need readable",i);if(t.length===0||t.length-e<t.highWaterMark){i=true;h("length less than watermark",i)}if(t.ended||t.reading){i=false;h("reading or ended",i)}else if(i){h("do read");t.reading=true;t.sync=true;if(t.length===0)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=howMuchToRead(r,t)}var n;if(e>0)n=fromList(e,t);else n=null;if(n===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(n!==null)this.emit("data",n);return n};function onEofChunk(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){h("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)i.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){h("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;i.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){h("maybeReadMore read 0");e.read(0);if(r===t.length)break;else r=t.length}t.readingMore=false}Readable.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Readable.prototype.pipe=function(e,t){var r=this;var n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1;h("pipe count=%d opts=%j",n.pipesCount,t);var s=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var a=s?onend:unpipe;if(n.endEmitted)i.nextTick(a);else r.once("end",a);e.on("unpipe",onunpipe);function onunpipe(e,t){h("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){h("onend");e.end()}var o=pipeOnDrain(r);e.on("drain",o);var l=false;function cleanup(){h("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",o);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);l=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))o()}var u=false;r.on("data",ondata);function ondata(t){h("ondata");u=false;var i=e.write(t);if(false===i&&!u){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!l){h("false write response, pause",n.awaitDrain);n.awaitDrain++;u=true}r.pause()}}function onerror(t){h("onerror",t);unpipe();e.removeListener("error",onerror);if(EElistenerCount(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){h("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){h("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){h("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&EElistenerCount(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var i=t.pipes;var n=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var s=0;s<n;s++){i[s].emit("unpipe",this,{hasUnpiped:false})}return this}var a=indexOf(t.pipes,e);if(a===-1)return this;t.pipes.splice(a,1);t.pipesCount-=1;if(t.pipesCount===1)t.pipes=t.pipes[0];e.emit("unpipe",this,r);return this};Readable.prototype.on=function(e,t){var r=o.prototype.on.call(this,e,t);if(e==="data"){if(this._readableState.flowing!==false)this.resume()}else if(e==="readable"){var n=this._readableState;if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.emittedReadable=false;if(!n.reading){i.nextTick(nReadingNextTick,this)}else if(n.length){emitReadable(this)}}}return r};Readable.prototype.addListener=Readable.prototype.on;function nReadingNextTick(e){h("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){h("resume");e.flowing=true;resume(this,e)}return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;i.nextTick(resume_,e,t)}}function resume_(e,t){if(!t.reading){h("resume read 0");e.read(0)}t.resumeScheduled=false;t.awaitDrain=0;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){h("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){h("pause");this._readableState.flowing=false;this.emit("pause")}return this};function flow(e){var t=e._readableState;h("flow",t.flowing);while(t.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var t=this;var r=this._readableState;var i=false;e.on("end",(function(){h("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)}));e.on("data",(function(n){h("wrapped data");if(r.decoder)n=r.decoder.write(n);if(r.objectMode&&(n===null||n===undefined))return;else if(!r.objectMode&&(!n||!n.length))return;var s=t.push(n);if(!s){i=true;e.pause()}}));for(var n in e){if(this[n]===undefined&&typeof e[n]==="function"){this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n)}}for(var s=0;s<b.length;s++){e.on(b[s],this.emit.bind(this,b[s]))}this._read=function(t){h("wrapped _read",t);if(i){i=false;e.resume()}};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Readable._fromList=fromList;function fromList(e,t){if(t.length===0)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=fromListPartial(e,t.buffer,t.decoder)}return r}function fromListPartial(e,t,r){var i;if(e<t.head.data.length){i=t.head.data.slice(0,e);t.head.data=t.head.data.slice(e)}else if(e===t.head.data.length){i=t.shift()}else{i=r?copyFromBufferString(e,t):copyFromBuffer(e,t)}return i}function copyFromBufferString(e,t){var r=t.head;var i=1;var n=r.data;e-=n.length;while(r=r.next){var s=r.data;var a=e>s.length?s.length:e;if(a===s.length)n+=s;else n+=s.slice(0,e);e-=a;if(e===0){if(a===s.length){++i;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=s.slice(a)}break}++i}t.length-=i;return n}function copyFromBuffer(e,t){var r=l.allocUnsafe(e);var i=t.head;var n=1;i.data.copy(r);e-=i.data.length;while(i=i.next){var s=i.data;var a=e>s.length?s.length:e;s.copy(r,r.length-e,0,a);e-=a;if(e===0){if(a===s.length){++n;if(i.next)t.head=i.next;else t.head=t.tail=null}else{t.head=i;i.data=s.slice(a)}break}++n}t.length-=n;return r}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;i.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var r=0,i=e.length;r<i;r++){if(e[r]===t)return r}return-1}},5167:function(e,t,r){"use strict";e.exports=Transform;var i=r(7561);var n=Object.create(r(9810));n.inherits=r(4070);n.inherits(Transform,i);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var i=r.writecb;if(!i){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);i(e);var n=this._readableState;n.reading=false;if(n.needReadable||n.length<n.highWaterMark){this._read(n.highWaterMark)}}function Transform(e){if(!(this instanceof Transform))return new Transform(e);i.call(this,e);this._transformState={afterTransform:afterTransform.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",prefinish)}function prefinish(){var e=this;if(typeof this._flush==="function"){this._flush((function(t,r){done(e,t,r)}))}else{done(this,null,null)}}Transform.prototype.push=function(e,t){this._transformState.needTransform=false;return i.prototype.push.call(this,e,t)};Transform.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Transform.prototype._write=function(e,t,r){var i=this._transformState;i.writecb=r;i.writechunk=e;i.writeencoding=t;if(!i.transforming){var n=this._readableState;if(i.needTransform||n.needReadable||n.length<n.highWaterMark)this._read(n.highWaterMark)}};Transform.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&t.writecb&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};Transform.prototype._destroy=function(e,t){var r=this;i.prototype._destroy.call(this,e,(function(e){t(e);r.emit("close")}))};function done(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}},227:function(e,t,r){"use strict";var i=r(1847);e.exports=Writable;function WriteReq(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var n=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:i.nextTick;var s;Writable.WritableState=WritableState;var a=Object.create(r(9810));a.inherits=r(4070);var o={deprecate:r(9987)};var l=r(8705);var u=r(6912).Buffer;var f=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return u.from(e)}function _isUint8Array(e){return u.isBuffer(e)||e instanceof f}var c=r(3383);a.inherits(Writable,l);function nop(){}function WritableState(e,t){s=s||r(7561);e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;var n=e.highWaterMark;var a=e.writableHighWaterMark;var o=this.objectMode?16:16*1024;if(n||n===0)this.highWaterMark=n;else if(i&&(a||a===0))this.highWaterMark=a;else this.highWaterMark=o;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var l=e.decodeStrings===false;this.decodeStrings=!l;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var h;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){h=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(h.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{h=function(e){return e instanceof this}}function Writable(e){s=s||r(7561);if(!h.call(Writable,this)&&!(this instanceof s)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}l.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var r=new Error("write after end");e.emit("error",r);i.nextTick(t,r)}function validChunk(e,t,r,n){var s=true;var a=false;if(r===null){a=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){a=new TypeError("Invalid non-string/buffer chunk")}if(a){e.emit("error",a);i.nextTick(n,a);s=false}return s}Writable.prototype.write=function(e,t,r){var i=this._writableState;var n=false;var s=!i.objectMode&&_isUint8Array(e);if(s&&!u.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(s)t="buffer";else if(!t)t=i.defaultEncoding;if(typeof r!=="function")r=nop;if(i.ended)writeAfterEnd(this,r);else if(s||validChunk(this,i,e,r)){i.pendingcb++;n=writeOrBuffer(this,i,s,e,t,r)}return n};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=u.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,i,n,s){if(!r){var a=decodeChunk(t,i,n);if(i!==a){r=true;n="buffer";i=a}}var o=t.objectMode?1:i.length;t.length+=o;var l=t.length<t.highWaterMark;if(!l)t.needDrain=true;if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null};if(u){u.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,o,i,n,s)}return l}function doWrite(e,t,r,i,n,s,a){t.writelen=i;t.writecb=a;t.writing=true;t.sync=true;if(r)e._writev(n,t.onwrite);else e._write(n,s,t.onwrite);t.sync=false}function onwriteError(e,t,r,n,s){--t.pendingcb;if(r){i.nextTick(s,n);i.nextTick(finishMaybe,e,t);e._writableState.errorEmitted=true;e.emit("error",n)}else{s(n);e._writableState.errorEmitted=true;e.emit("error",n);finishMaybe(e,t)}}function onwriteStateUpdate(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function onwrite(e,t){var r=e._writableState;var i=r.sync;var s=r.writecb;onwriteStateUpdate(r);if(t)onwriteError(e,r,i,t,s);else{var a=needFinish(r);if(!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(i){n(afterWrite,e,r,a,s)}else{afterWrite(e,r,a,s)}}}function afterWrite(e,t,r,i){if(!r)onwriteDrain(e,t);t.pendingcb--;i();finishMaybe(e,t)}function onwriteDrain(e,t){if(t.length===0&&t.needDrain){t.needDrain=false;e.emit("drain")}}function clearBuffer(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount;var n=new Array(i);var s=t.corkedRequestsFree;s.entry=r;var a=0;var o=true;while(r){n[a]=r;if(!r.isBuf)o=false;r=r.next;a+=1}n.allBuffers=o;doWrite(e,t,true,t.length,n,"",s.finish);t.pendingcb++;t.lastBufferedRequest=null;if(s.next){t.corkedRequestsFree=s.next;s.next=null}else{t.corkedRequestsFree=new CorkedRequest(t)}t.bufferedRequestCount=0}else{while(r){var l=r.chunk;var u=r.encoding;var f=r.callback;var c=t.objectMode?1:l.length;doWrite(e,t,false,c,l,u,f);r=r.next;t.bufferedRequestCount--;if(t.writing){break}}if(r===null)t.lastBufferedRequest=null}t.bufferedRequest=r;t.bufferProcessing=false}Writable.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,t,r){var i=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}if(e!==null&&e!==undefined)this.write(e,t);if(i.corked){i.corked=1;this.uncork()}if(!i.ending)endWritable(this,i,r)};function needFinish(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function callFinal(e,t){e._final((function(r){t.pendingcb--;if(r){e.emit("error",r)}t.prefinished=true;e.emit("prefinish");finishMaybe(e,t)}))}function prefinish(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"){t.pendingcb++;t.finalCalled=true;i.nextTick(callFinal,e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function finishMaybe(e,t){var r=needFinish(t);if(r){prefinish(e,t);if(t.pendingcb===0){t.finished=true;e.emit("finish")}}return r}function endWritable(e,t,r){t.ending=true;finishMaybe(e,t);if(r){if(t.finished)i.nextTick(r);else e.once("finish",r)}t.ended=true;e.writable=false}function onCorkedFinish(e,t,r){var i=e.entry;e.entry=null;while(i){var n=i.callback;t.pendingcb--;n(r);i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(Writable.prototype,"destroyed",{get:function(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function(e){if(!this._writableState){return}this._writableState.destroyed=e}});Writable.prototype.destroy=c.destroy;Writable.prototype._undestroy=c.undestroy;Writable.prototype._destroy=function(e,t){this.end();t(e)}},6271:function(e,t,r){"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var i=r(6912).Buffer;var n=r(9023);function copyBuffer(e,t,r){e.copy(t,r)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next){r+=e+t.data}return r};BufferList.prototype.concat=function concat(e){if(this.length===0)return i.alloc(0);var t=i.allocUnsafe(e>>>0);var r=this.head;var n=0;while(r){copyBuffer(r.data,t,n);n+=r.data.length;r=r.next}return t};return BufferList}();if(n&&n.inspect&&n.inspect.custom){e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e}}},3383:function(e,t,r){"use strict";var i=r(1847);function destroy(e,t){var r=this;var n=this._readableState&&this._readableState.destroyed;var s=this._writableState&&this._writableState.destroyed;if(n||s){if(t){t(e)}else if(e){if(!this._writableState){i.nextTick(emitErrorNT,this,e)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;i.nextTick(emitErrorNT,this,e)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){if(!r._writableState){i.nextTick(emitErrorNT,r,e)}else if(!r._writableState.errorEmitted){r._writableState.errorEmitted=true;i.nextTick(emitErrorNT,r,e)}}else if(t){t(e)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy}},8705:function(e,t,r){e.exports=r(2203)},3627:function(e,t,r){e.exports=r(1397).PassThrough},1397:function(e,t,r){var i=r(2203);if(process.env.READABLE_STREAM==="disable"&&i){e.exports=i;t=e.exports=i.Readable;t.Readable=i.Readable;t.Writable=i.Writable;t.Duplex=i.Duplex;t.Transform=i.Transform;t.PassThrough=i.PassThrough;t.Stream=i}else{t=e.exports=r(6319);t.Stream=i||t;t.Readable=t;t.Writable=r(227);t.Duplex=r(7561);t.Transform=r(5167);t.PassThrough=r(7741)}},7580:function(e,t,r){"use strict";const{SymbolDispose:i}=r(2823);const{AbortError:n,codes:s}=r(8484);const{isNodeStream:a,isWebStream:o,kControllerErrorFunction:l}=r(7202);const u=r(2543);const{ERR_INVALID_ARG_TYPE:f}=s;let c;const validateAbortSignal=(e,t)=>{if(typeof e!=="object"||!("aborted"in e)){throw new f(t,"AbortSignal",e)}};e.exports.addAbortSignal=function addAbortSignal(t,r){validateAbortSignal(t,"signal");if(!a(r)&&!o(r)){throw new f("stream",["ReadableStream","WritableStream","Stream"],r)}return e.exports.addAbortSignalNoValidate(t,r)};e.exports.addAbortSignalNoValidate=function(e,t){if(typeof e!=="object"||!("aborted"in e)){return t}const s=a(t)?()=>{t.destroy(new n(undefined,{cause:e.reason}))}:()=>{t[l](new n(undefined,{cause:e.reason}))};if(e.aborted){s()}else{c=c||r(8547).addAbortListener;const n=c(e,s);u(t,n[i])}return t}},2536:function(e,t,r){"use strict";const{StringPrototypeSlice:i,SymbolIterator:n,TypedArrayPrototypeSet:s,Uint8Array:a}=r(2823);const{Buffer:o}=r(181);const{inspect:l}=r(8547);e.exports=class BufferList{constructor(){this.head=null;this.tail=null;this.length=0}push(e){const t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length}unshift(e){const t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length}shift(){if(this.length===0)return;const e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e}clear(){this.head=this.tail=null;this.length=0}join(e){if(this.length===0)return"";let t=this.head;let r=""+t.data;while((t=t.next)!==null)r+=e+t.data;return r}concat(e){if(this.length===0)return o.alloc(0);const t=o.allocUnsafe(e>>>0);let r=this.head;let i=0;while(r){s(t,r.data,i);i+=r.data.length;r=r.next}return t}consume(e,t){const r=this.head.data;if(e<r.length){const t=r.slice(0,e);this.head.data=r.slice(e);return t}if(e===r.length){return this.shift()}return t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[n](){for(let e=this.head;e;e=e.next){yield e.data}}_getString(e){let t="";let r=this.head;let n=0;do{const s=r.data;if(e>s.length){t+=s;e-=s.length}else{if(e===s.length){t+=s;++n;if(r.next)this.head=r.next;else this.head=this.tail=null}else{t+=i(s,0,e);this.head=r;r.data=i(s,e)}break}++n}while((r=r.next)!==null);this.length-=n;return t}_getBuffer(e){const t=o.allocUnsafe(e);const r=e;let i=this.head;let n=0;do{const o=i.data;if(e>o.length){s(t,o,r-e);e-=o.length}else{if(e===o.length){s(t,o,r-e);++n;if(i.next)this.head=i.next;else this.head=this.tail=null}else{s(t,new a(o.buffer,o.byteOffset,e),r-e);this.head=i;i.data=o.slice(e)}break}++n}while((i=i.next)!==null);this.length-=n;return t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return l(this,{...t,depth:0,customInspect:false})}}},1255:function(e,t,r){"use strict";const{pipeline:i}=r(4061);const n=r(657);const{destroyer:s}=r(7201);const{isNodeStream:a,isReadable:o,isWritable:l,isWebStream:u,isTransformStream:f,isWritableStream:c,isReadableStream:h}=r(7202);const{AbortError:d,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:y}}=r(8484);const b=r(2543);e.exports=function compose(...e){if(e.length===0){throw new y("streams")}if(e.length===1){return n.from(e[0])}const t=[...e];if(typeof e[0]==="function"){e[0]=n.from(e[0])}if(typeof e[e.length-1]==="function"){const t=e.length-1;e[t]=n.from(e[t])}for(let r=0;r<e.length;++r){if(!a(e[r])&&!u(e[r])){continue}if(r<e.length-1&&!(o(e[r])||h(e[r])||f(e[r]))){throw new p(`streams[${r}]`,t[r],"must be readable")}if(r>0&&!(l(e[r])||c(e[r])||f(e[r]))){throw new p(`streams[${r}]`,t[r],"must be writable")}}let r;let g;let w;let _;let S;function onfinished(e){const t=_;_=null;if(t){t(e)}else if(e){S.destroy(e)}else if(!T&&!k){S.destroy()}}const v=e[0];const x=i(e,onfinished);const k=!!(l(v)||c(v)||f(v));const T=!!(o(x)||h(x)||f(x));S=new n({writableObjectMode:!!(v!==null&&v!==undefined&&v.writableObjectMode),readableObjectMode:!!(x!==null&&x!==undefined&&x.readableObjectMode),writable:k,readable:T});if(k){if(a(v)){S._write=function(e,t,i){if(v.write(e,t)){i()}else{r=i}};S._final=function(e){v.end();g=e};v.on("drain",(function(){if(r){const e=r;r=null;e()}}))}else if(u(v)){const e=f(v)?v.writable:v;const t=e.getWriter();S._write=async function(e,r,i){try{await t.ready;t.write(e).catch((()=>{}));i()}catch(e){i(e)}};S._final=async function(e){try{await t.ready;t.close().catch((()=>{}));g=e}catch(t){e(t)}}}const e=f(x)?x.readable:x;b(e,(()=>{if(g){const e=g;g=null;e()}}))}if(T){if(a(x)){x.on("readable",(function(){if(w){const e=w;w=null;e()}}));x.on("end",(function(){S.push(null)}));S._read=function(){while(true){const e=x.read();if(e===null){w=S._read;return}if(!S.push(e)){return}}}}else if(u(x)){const e=f(x)?x.readable:x;const t=e.getReader();S._read=async function(){while(true){try{const{value:e,done:r}=await t.read();if(!S.push(e)){return}if(r){S.push(null);return}}catch{return}}}}}S._destroy=function(e,t){if(!e&&_!==null){e=new d}w=null;r=null;g=null;if(_===null){t(e)}else{_=t;if(a(x)){s(x,e)}}};return S}},7201:function(e,t,r){"use strict";const i=r(125);const{aggregateTwoErrors:n,codes:{ERR_MULTIPLE_CALLBACK:s},AbortError:a}=r(8484);const{Symbol:o}=r(2823);const{kIsDestroyed:l,isDestroyed:u,isFinished:f,isServerRequest:c}=r(7202);const h=o("kDestroy");const d=o("kConstruct");function checkError(e,t,r){if(e){e.stack;if(t&&!t.errored){t.errored=e}if(r&&!r.errored){r.errored=e}}}function destroy(e,t){const r=this._readableState;const i=this._writableState;const s=i||r;if(i!==null&&i!==undefined&&i.destroyed||r!==null&&r!==undefined&&r.destroyed){if(typeof t==="function"){t()}return this}checkError(e,i,r);if(i){i.destroyed=true}if(r){r.destroyed=true}if(!s.constructed){this.once(h,(function(r){_destroy(this,n(r,e),t)}))}else{_destroy(this,e,t)}return this}function _destroy(e,t,r){let n=false;function onDestroy(t){if(n){return}n=true;const s=e._readableState;const a=e._writableState;checkError(t,a,s);if(a){a.closed=true}if(s){s.closed=true}if(typeof r==="function"){r(t)}if(t){i.nextTick(emitErrorCloseNT,e,t)}else{i.nextTick(emitCloseNT,e)}}try{e._destroy(t||null,onDestroy)}catch(t){onDestroy(t)}}function emitErrorCloseNT(e,t){emitErrorNT(e,t);emitCloseNT(e)}function emitCloseNT(e){const t=e._readableState;const r=e._writableState;if(r){r.closeEmitted=true}if(t){t.closeEmitted=true}if(r!==null&&r!==undefined&&r.emitClose||t!==null&&t!==undefined&&t.emitClose){e.emit("close")}}function emitErrorNT(e,t){const r=e._readableState;const i=e._writableState;if(i!==null&&i!==undefined&&i.errorEmitted||r!==null&&r!==undefined&&r.errorEmitted){return}if(i){i.errorEmitted=true}if(r){r.errorEmitted=true}e.emit("error",t)}function undestroy(){const e=this._readableState;const t=this._writableState;if(e){e.constructed=true;e.closed=false;e.closeEmitted=false;e.destroyed=false;e.errored=null;e.errorEmitted=false;e.reading=false;e.ended=e.readable===false;e.endEmitted=e.readable===false}if(t){t.constructed=true;t.destroyed=false;t.closed=false;t.closeEmitted=false;t.errored=null;t.errorEmitted=false;t.finalCalled=false;t.prefinished=false;t.ended=t.writable===false;t.ending=t.writable===false;t.finished=t.writable===false}}function errorOrDestroy(e,t,r){const n=e._readableState;const s=e._writableState;if(s!==null&&s!==undefined&&s.destroyed||n!==null&&n!==undefined&&n.destroyed){return this}if(n!==null&&n!==undefined&&n.autoDestroy||s!==null&&s!==undefined&&s.autoDestroy)e.destroy(t);else if(t){t.stack;if(s&&!s.errored){s.errored=t}if(n&&!n.errored){n.errored=t}if(r){i.nextTick(emitErrorNT,e,t)}else{emitErrorNT(e,t)}}}function construct(e,t){if(typeof e._construct!=="function"){return}const r=e._readableState;const n=e._writableState;if(r){r.constructed=false}if(n){n.constructed=false}e.once(d,t);if(e.listenerCount(d)>1){return}i.nextTick(constructNT,e)}function constructNT(e){let t=false;function onConstruct(r){if(t){errorOrDestroy(e,r!==null&&r!==undefined?r:new s);return}t=true;const n=e._readableState;const a=e._writableState;const o=a||n;if(n){n.constructed=true}if(a){a.constructed=true}if(o.destroyed){e.emit(h,r)}else if(r){errorOrDestroy(e,r,true)}else{i.nextTick(emitConstructNT,e)}}try{e._construct((e=>{i.nextTick(onConstruct,e)}))}catch(e){i.nextTick(onConstruct,e)}}function emitConstructNT(e){e.emit(d)}function isRequest(e){return(e===null||e===undefined?undefined:e.setHeader)&&typeof e.abort==="function"}function emitCloseLegacy(e){e.emit("close")}function emitErrorCloseLegacy(e,t){e.emit("error",t);i.nextTick(emitCloseLegacy,e)}function destroyer(e,t){if(!e||u(e)){return}if(!t&&!f(e)){t=new a}if(c(e)){e.socket=null;e.destroy(t)}else if(isRequest(e)){e.abort()}else if(isRequest(e.req)){e.req.abort()}else if(typeof e.destroy==="function"){e.destroy(t)}else if(typeof e.close==="function"){e.close()}else if(t){i.nextTick(emitErrorCloseLegacy,e,t)}else{i.nextTick(emitCloseLegacy,e)}if(!e.destroyed){e[l]=true}}e.exports={construct:construct,destroyer:destroyer,destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},657:function(e,t,r){"use strict";const{ObjectDefineProperties:i,ObjectGetOwnPropertyDescriptor:n,ObjectKeys:s,ObjectSetPrototypeOf:a}=r(2823);e.exports=Duplex;const o=r(359);const l=r(3131);a(Duplex.prototype,o.prototype);a(Duplex,o);{const e=s(l.prototype);for(let t=0;t<e.length;t++){const r=e[t];if(!Duplex.prototype[r])Duplex.prototype[r]=l.prototype[r]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);o.call(this,e);l.call(this,e);if(e){this.allowHalfOpen=e.allowHalfOpen!==false;if(e.readable===false){this._readableState.readable=false;this._readableState.ended=true;this._readableState.endEmitted=true}if(e.writable===false){this._writableState.writable=false;this._writableState.ending=true;this._writableState.ended=true;this._writableState.finished=true}}else{this.allowHalfOpen=true}}i(Duplex.prototype,{writable:{__proto__:null,...n(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...n(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...n(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...n(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...n(l.prototype,"writableLength")},writableFinished:{__proto__:null,...n(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...n(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...n(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...n(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set(e){if(this._readableState&&this._writableState){this._readableState.destroyed=e;this._writableState.destroyed=e}}}});let u;function lazyWebStreams(){if(u===undefined)u={};return u}Duplex.fromWeb=function(e,t){return lazyWebStreams().newStreamDuplexFromReadableWritablePair(e,t)};Duplex.toWeb=function(e){return lazyWebStreams().newReadableWritablePairFromDuplex(e)};let f;Duplex.from=function(e){if(!f){f=r(567)}return f(e,"body")}},567:function(e,t,r){const i=r(125);"use strict";const n=r(181);const{isReadable:s,isWritable:a,isIterable:o,isNodeStream:l,isReadableNodeStream:u,isWritableNodeStream:f,isDuplexNodeStream:c,isReadableStream:h,isWritableStream:d}=r(7202);const p=r(2543);const{AbortError:y,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:g}}=r(8484);const{destroyer:w}=r(7201);const _=r(657);const S=r(359);const v=r(3131);const{createDeferredPromise:x}=r(8547);const k=r(83);const T=globalThis.Blob||n.Blob;const R=typeof T!=="undefined"?function isBlob(e){return e instanceof T}:function isBlob(e){return false};const A=globalThis.AbortController||r(6335).AbortController;const{FunctionPrototypeCall:O}=r(2823);class Duplexify extends _{constructor(e){super(e);if((e===null||e===undefined?undefined:e.readable)===false){this._readableState.readable=false;this._readableState.ended=true;this._readableState.endEmitted=true}if((e===null||e===undefined?undefined:e.writable)===false){this._writableState.writable=false;this._writableState.ending=true;this._writableState.ended=true;this._writableState.finished=true}}}e.exports=function duplexify(e,t){if(c(e)){return e}if(u(e)){return _duplexify({readable:e})}if(f(e)){return _duplexify({writable:e})}if(l(e)){return _duplexify({writable:false,readable:false})}if(h(e)){return _duplexify({readable:S.fromWeb(e)})}if(d(e)){return _duplexify({writable:v.fromWeb(e)})}if(typeof e==="function"){const{value:r,write:n,final:s,destroy:a}=fromAsyncGen(e);if(o(r)){return k(Duplexify,r,{objectMode:true,write:n,final:s,destroy:a})}const l=r===null||r===undefined?undefined:r.then;if(typeof l==="function"){let e;const t=O(l,r,(e=>{if(e!=null){throw new g("nully","body",e)}}),(t=>{w(e,t)}));return e=new Duplexify({objectMode:true,readable:false,write:n,final(e){s((async()=>{try{await t;i.nextTick(e,null)}catch(t){i.nextTick(e,t)}}))},destroy:a})}throw new g("Iterable, AsyncIterable or AsyncFunction",t,r)}if(R(e)){return duplexify(e.arrayBuffer())}if(o(e)){return k(Duplexify,e,{objectMode:true,writable:false})}if(h(e===null||e===undefined?undefined:e.readable)&&d(e===null||e===undefined?undefined:e.writable)){return Duplexify.fromWeb(e)}if(typeof(e===null||e===undefined?undefined:e.writable)==="object"||typeof(e===null||e===undefined?undefined:e.readable)==="object"){const t=e!==null&&e!==undefined&&e.readable?u(e===null||e===undefined?undefined:e.readable)?e===null||e===undefined?undefined:e.readable:duplexify(e.readable):undefined;const r=e!==null&&e!==undefined&&e.writable?f(e===null||e===undefined?undefined:e.writable)?e===null||e===undefined?undefined:e.writable:duplexify(e.writable):undefined;return _duplexify({readable:t,writable:r})}const r=e===null||e===undefined?undefined:e.then;if(typeof r==="function"){let t;O(r,e,(e=>{if(e!=null){t.push(e)}t.push(null)}),(e=>{w(t,e)}));return t=new Duplexify({objectMode:true,writable:false,read(){}})}throw new b(t,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function fromAsyncGen(e){let{promise:t,resolve:r}=x();const n=new A;const s=n.signal;const a=e(async function*(){while(true){const e=t;t=null;const{chunk:n,done:a,cb:o}=await e;i.nextTick(o);if(a)return;if(s.aborted)throw new y(undefined,{cause:s.reason});({promise:t,resolve:r}=x());yield n}}(),{signal:s});return{value:a,write(e,t,i){const n=r;r=null;n({chunk:e,done:false,cb:i})},final(e){const t=r;r=null;t({done:true,cb:e})},destroy(e,t){n.abort();t(e)}}}function _duplexify(e){const t=e.readable&&typeof e.readable.read!=="function"?S.wrap(e.readable):e.readable;const r=e.writable;let i=!!s(t);let n=!!a(r);let o;let l;let u;let f;let c;function onfinished(e){const t=f;f=null;if(t){t(e)}else if(e){c.destroy(e)}}c=new Duplexify({readableObjectMode:!!(t!==null&&t!==undefined&&t.readableObjectMode),writableObjectMode:!!(r!==null&&r!==undefined&&r.writableObjectMode),readable:i,writable:n});if(n){p(r,(e=>{n=false;if(e){w(t,e)}onfinished(e)}));c._write=function(e,t,i){if(r.write(e,t)){i()}else{o=i}};c._final=function(e){r.end();l=e};r.on("drain",(function(){if(o){const e=o;o=null;e()}}));r.on("finish",(function(){if(l){const e=l;l=null;e()}}))}if(i){p(t,(e=>{i=false;if(e){w(t,e)}onfinished(e)}));t.on("readable",(function(){if(u){const e=u;u=null;e()}}));t.on("end",(function(){c.push(null)}));c._read=function(){while(true){const e=t.read();if(e===null){u=c._read;return}if(!c.push(e)){return}}}}c._destroy=function(e,i){if(!e&&f!==null){e=new y}u=null;o=null;l=null;if(f===null){i(e)}else{f=i;w(r,e);w(t,e)}};return c}},2543:function(e,t,r){"use strict";const i=r(125);const{AbortError:n,codes:s}=r(8484);const{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:o}=s;const{kEmptyObject:l,once:u}=r(8547);const{validateAbortSignal:f,validateFunction:c,validateObject:h,validateBoolean:d}=r(8066);const{Promise:p,PromisePrototypeThen:y,SymbolDispose:b}=r(2823);const{isClosed:g,isReadable:w,isReadableNodeStream:_,isReadableStream:S,isReadableFinished:v,isReadableErrored:x,isWritable:k,isWritableNodeStream:T,isWritableStream:R,isWritableFinished:A,isWritableErrored:O,isNodeStream:L,willEmitClose:P,kIsClosedPromise:C}=r(7202);let M;function isRequest(e){return e.setHeader&&typeof e.abort==="function"}const nop=()=>{};function eos(e,t,s){var d,p;if(arguments.length===2){s=t;t=l}else if(t==null){t=l}else{h(t,"options")}c(s,"callback");f(t.signal,"options.signal");s=u(s);if(S(e)||R(e)){return eosWeb(e,t,s)}if(!L(e)){throw new a("stream",["ReadableStream","WritableStream","Stream"],e)}const y=(d=t.readable)!==null&&d!==undefined?d:_(e);const C=(p=t.writable)!==null&&p!==undefined?p:T(e);const I=e._writableState;const D=e._readableState;const onlegacyfinish=()=>{if(!e.writable){onfinish()}};let N=P(e)&&_(e)===y&&T(e)===C;let B=A(e,false);const onfinish=()=>{B=true;if(e.destroyed){N=false}if(N&&(!e.readable||y)){return}if(!y||F){s.call(e)}};let F=v(e,false);const onend=()=>{F=true;if(e.destroyed){N=false}if(N&&(!e.writable||C)){return}if(!C||B){s.call(e)}};const onerror=t=>{s.call(e,t)};let j=g(e);const onclose=()=>{j=true;const t=O(e)||x(e);if(t&&typeof t!=="boolean"){return s.call(e,t)}if(y&&!F&&_(e,true)){if(!v(e,false))return s.call(e,new o)}if(C&&!B){if(!A(e,false))return s.call(e,new o)}s.call(e)};const onclosed=()=>{j=true;const t=O(e)||x(e);if(t&&typeof t!=="boolean"){return s.call(e,t)}s.call(e)};const onrequest=()=>{e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);if(!N){e.on("abort",onclose)}if(e.req){onrequest()}else{e.on("request",onrequest)}}else if(C&&!I){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(!N&&typeof e.aborted==="boolean"){e.on("aborted",onclose)}e.on("end",onend);e.on("finish",onfinish);if(t.error!==false){e.on("error",onerror)}e.on("close",onclose);if(j){i.nextTick(onclose)}else if(I!==null&&I!==undefined&&I.errorEmitted||D!==null&&D!==undefined&&D.errorEmitted){if(!N){i.nextTick(onclosed)}}else if(!y&&(!N||w(e))&&(B||k(e)===false)){i.nextTick(onclosed)}else if(!C&&(!N||k(e))&&(F||w(e)===false)){i.nextTick(onclosed)}else if(D&&e.req&&e.aborted){i.nextTick(onclosed)}const cleanup=()=>{s=nop;e.removeListener("aborted",onclose);e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)};if(t.signal&&!j){const abort=()=>{const r=s;cleanup();r.call(e,new n(undefined,{cause:t.signal.reason}))};if(t.signal.aborted){i.nextTick(abort)}else{M=M||r(8547).addAbortListener;const i=M(t.signal,abort);const n=s;s=u(((...t)=>{i[b]();n.apply(e,t)}))}}return cleanup}function eosWeb(e,t,s){let a=false;let o=nop;if(t.signal){o=()=>{a=true;s.call(e,new n(undefined,{cause:t.signal.reason}))};if(t.signal.aborted){i.nextTick(o)}else{M=M||r(8547).addAbortListener;const i=M(t.signal,o);const n=s;s=u(((...t)=>{i[b]();n.apply(e,t)}))}}const resolverFn=(...t)=>{if(!a){i.nextTick((()=>s.apply(e,t)))}};y(e[C].promise,resolverFn,resolverFn);return nop}function finished(e,t){var r;let i=false;if(t===null){t=l}if((r=t)!==null&&r!==undefined&&r.cleanup){d(t.cleanup,"cleanup");i=t.cleanup}return new p(((r,n)=>{const s=eos(e,t,(e=>{if(i){s()}if(e){n(e)}else{r()}}))}))}e.exports=eos;e.exports.finished=finished},83:function(e,t,r){"use strict";const i=r(125);const{PromisePrototypeThen:n,SymbolAsyncIterator:s,SymbolIterator:a}=r(2823);const{Buffer:o}=r(181);const{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:u}=r(8484).codes;function from(e,t,r){let f;if(typeof t==="string"||t instanceof o){return new e({objectMode:true,...r,read(){this.push(t);this.push(null)}})}let c;if(t&&t[s]){c=true;f=t[s]()}else if(t&&t[a]){c=false;f=t[a]()}else{throw new l("iterable",["Iterable"],t)}const h=new e({objectMode:true,highWaterMark:1,...r});let d=false;h._read=function(){if(!d){d=true;next()}};h._destroy=function(e,t){n(close(e),(()=>i.nextTick(t,e)),(r=>i.nextTick(t,r||e)))};async function close(e){const t=e!==undefined&&e!==null;const r=typeof f.throw==="function";if(t&&r){const{value:t,done:r}=await f.throw(e);await t;if(r){return}}if(typeof f.return==="function"){const{value:e}=await f.return();await e}}async function next(){for(;;){try{const{value:e,done:t}=c?await f.next():f.next();if(t){h.push(null)}else{const t=e&&typeof e.then==="function"?await e:e;if(t===null){d=false;throw new u}else if(h.push(t)){continue}else{d=false}}}catch(e){h.destroy(e)}break}}return h}e.exports=from},6720:function(e,t,r){"use strict";const{ArrayIsArray:i,ObjectSetPrototypeOf:n}=r(2823);const{EventEmitter:s}=r(4434);function Stream(e){s.call(this,e)}n(Stream.prototype,s.prototype);n(Stream,s);Stream.prototype.pipe=function(e,t){const r=this;function ondata(t){if(e.writable&&e.write(t)===false&&r.pause){r.pause()}}r.on("data",ondata);function ondrain(){if(r.readable&&r.resume){r.resume()}}e.on("drain",ondrain);if(!e._isStdio&&(!t||t.end!==false)){r.on("end",onend);r.on("close",onclose)}let i=false;function onend(){if(i)return;i=true;e.end()}function onclose(){if(i)return;i=true;if(typeof e.destroy==="function")e.destroy()}function onerror(e){cleanup();if(s.listenerCount(this,"error")===0){this.emit("error",e)}}prependListener(r,"error",onerror);prependListener(e,"error",onerror);function cleanup(){r.removeListener("data",ondata);e.removeListener("drain",ondrain);r.removeListener("end",onend);r.removeListener("close",onclose);r.removeListener("error",onerror);e.removeListener("error",onerror);r.removeListener("end",cleanup);r.removeListener("close",cleanup);e.removeListener("close",cleanup)}r.on("end",cleanup);r.on("close",cleanup);e.on("close",cleanup);e.emit("pipe",r);return e};function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(i(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}e.exports={Stream:Stream,prependListener:prependListener}},774:function(e,t,r){"use strict";const i=globalThis.AbortController||r(6335).AbortController;const{codes:{ERR_INVALID_ARG_VALUE:n,ERR_INVALID_ARG_TYPE:s,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:o},AbortError:l}=r(8484);const{validateAbortSignal:u,validateInteger:f,validateObject:c}=r(8066);const h=r(2823).Symbol("kWeak");const d=r(2823).Symbol("kResistStopPropagation");const{finished:p}=r(2543);const y=r(1255);const{addAbortSignalNoValidate:b}=r(7580);const{isWritable:g,isNodeStream:w}=r(7202);const{deprecate:_}=r(8547);const{ArrayPrototypePush:S,Boolean:v,MathFloor:x,Number:k,NumberIsNaN:T,Promise:R,PromiseReject:A,PromiseResolve:O,PromisePrototypeThen:L,Symbol:P}=r(2823);const C=P("kEmpty");const M=P("kEof");function compose(e,t){if(t!=null){c(t,"options")}if((t===null||t===undefined?undefined:t.signal)!=null){u(t.signal,"options.signal")}if(w(e)&&!g(e)){throw new n("stream",e,"must be writable")}const r=y(this,e);if(t!==null&&t!==undefined&&t.signal){b(t.signal,r)}return r}function map(e,t){if(typeof e!=="function"){throw new s("fn",["Function","AsyncFunction"],e)}if(t!=null){c(t,"options")}if((t===null||t===undefined?undefined:t.signal)!=null){u(t.signal,"options.signal")}let i=1;if((t===null||t===undefined?undefined:t.concurrency)!=null){i=x(t.concurrency)}let n=i-1;if((t===null||t===undefined?undefined:t.highWaterMark)!=null){n=x(t.highWaterMark)}f(i,"options.concurrency",1);f(n,"options.highWaterMark",0);n+=i;return async function*map(){const s=r(8547).AbortSignalAny([t===null||t===undefined?undefined:t.signal].filter(v));const a=this;const o=[];const u={signal:s};let f;let c;let h=false;let d=0;function onCatch(){h=true;afterItemProcessed()}function afterItemProcessed(){d-=1;maybeResume()}function maybeResume(){if(c&&!h&&d<i&&o.length<n){c();c=null}}async function pump(){try{for await(let t of a){if(h){return}if(s.aborted){throw new l}try{t=e(t,u);if(t===C){continue}t=O(t)}catch(e){t=A(e)}d+=1;L(t,afterItemProcessed,onCatch);o.push(t);if(f){f();f=null}if(!h&&(o.length>=n||d>=i)){await new R((e=>{c=e}))}}o.push(M)}catch(e){const t=A(e);L(t,afterItemProcessed,onCatch);o.push(t)}finally{h=true;if(f){f();f=null}}}pump();try{while(true){while(o.length>0){const e=await o[0];if(e===M){return}if(s.aborted){throw new l}if(e!==C){yield e}o.shift();maybeResume()}await new R((e=>{f=e}))}}finally{h=true;if(c){c();c=null}}}.call(this)}function asIndexedPairs(e=undefined){if(e!=null){c(e,"options")}if((e===null||e===undefined?undefined:e.signal)!=null){u(e.signal,"options.signal")}return async function*asIndexedPairs(){let t=0;for await(const i of this){var r;if(e!==null&&e!==undefined&&(r=e.signal)!==null&&r!==undefined&&r.aborted){throw new l({cause:e.signal.reason})}yield[t++,i]}}.call(this)}async function some(e,t=undefined){for await(const r of filter.call(this,e,t)){return true}return false}async function every(e,t=undefined){if(typeof e!=="function"){throw new s("fn",["Function","AsyncFunction"],e)}return!await some.call(this,(async(...t)=>!await e(...t)),t)}async function find(e,t){for await(const r of filter.call(this,e,t)){return r}return undefined}async function forEach(e,t){if(typeof e!=="function"){throw new s("fn",["Function","AsyncFunction"],e)}async function forEachFn(t,r){await e(t,r);return C}for await(const e of map.call(this,forEachFn,t));}function filter(e,t){if(typeof e!=="function"){throw new s("fn",["Function","AsyncFunction"],e)}async function filterFn(t,r){if(await e(t,r)){return t}return C}return map.call(this,filterFn,t)}class ReduceAwareErrMissingArgs extends a{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function reduce(e,t,r){var n;if(typeof e!=="function"){throw new s("reducer",["Function","AsyncFunction"],e)}if(r!=null){c(r,"options")}if((r===null||r===undefined?undefined:r.signal)!=null){u(r.signal,"options.signal")}let a=arguments.length>1;if(r!==null&&r!==undefined&&(n=r.signal)!==null&&n!==undefined&&n.aborted){const e=new l(undefined,{cause:r.signal.reason});this.once("error",(()=>{}));await p(this.destroy(e));throw e}const o=new i;const f=o.signal;if(r!==null&&r!==undefined&&r.signal){const e={once:true,[h]:this,[d]:true};r.signal.addEventListener("abort",(()=>o.abort()),e)}let y=false;try{for await(const i of this){var b;y=true;if(r!==null&&r!==undefined&&(b=r.signal)!==null&&b!==undefined&&b.aborted){throw new l}if(!a){t=i;a=true}else{t=await e(t,i,{signal:f})}}if(!y&&!a){throw new ReduceAwareErrMissingArgs}}finally{o.abort()}return t}async function toArray(e){if(e!=null){c(e,"options")}if((e===null||e===undefined?undefined:e.signal)!=null){u(e.signal,"options.signal")}const t=[];for await(const i of this){var r;if(e!==null&&e!==undefined&&(r=e.signal)!==null&&r!==undefined&&r.aborted){throw new l(undefined,{cause:e.signal.reason})}S(t,i)}return t}function flatMap(e,t){const r=map.call(this,e,t);return async function*flatMap(){for await(const e of r){yield*e}}.call(this)}function toIntegerOrInfinity(e){e=k(e);if(T(e)){return 0}if(e<0){throw new o("number",">= 0",e)}return e}function drop(e,t=undefined){if(t!=null){c(t,"options")}if((t===null||t===undefined?undefined:t.signal)!=null){u(t.signal,"options.signal")}e=toIntegerOrInfinity(e);return async function*drop(){var r;if(t!==null&&t!==undefined&&(r=t.signal)!==null&&r!==undefined&&r.aborted){throw new l}for await(const r of this){var i;if(t!==null&&t!==undefined&&(i=t.signal)!==null&&i!==undefined&&i.aborted){throw new l}if(e--<=0){yield r}}}.call(this)}function take(e,t=undefined){if(t!=null){c(t,"options")}if((t===null||t===undefined?undefined:t.signal)!=null){u(t.signal,"options.signal")}e=toIntegerOrInfinity(e);return async function*take(){var r;if(t!==null&&t!==undefined&&(r=t.signal)!==null&&r!==undefined&&r.aborted){throw new l}for await(const r of this){var i;if(t!==null&&t!==undefined&&(i=t.signal)!==null&&i!==undefined&&i.aborted){throw new l}if(e-- >0){yield r}if(e<=0){return}}}.call(this)}e.exports.streamReturningOperators={asIndexedPairs:_(asIndexedPairs,"readable.asIndexedPairs will be removed in a future version."),drop:drop,filter:filter,flatMap:flatMap,map:map,take:take,compose:compose};e.exports.promiseReturningOperators={every:every,forEach:forEach,reduce:reduce,toArray:toArray,some:some,find:find}},3253:function(e,t,r){"use strict";const{ObjectSetPrototypeOf:i}=r(2823);e.exports=PassThrough;const n=r(3303);i(PassThrough.prototype,n.prototype);i(PassThrough,n);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);n.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},4061:function(e,t,r){const i=r(125);"use strict";const{ArrayIsArray:n,Promise:s,SymbolAsyncIterator:a,SymbolDispose:o}=r(2823);const l=r(2543);const{once:u}=r(8547);const f=r(7201);const c=r(657);const{aggregateTwoErrors:h,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:y,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:w}=r(8484);const{validateFunction:_,validateAbortSignal:S}=r(8066);const{isIterable:v,isReadable:x,isReadableNodeStream:k,isNodeStream:T,isTransformStream:R,isWebStream:A,isReadableStream:O,isReadableFinished:L}=r(7202);const P=globalThis.AbortController||r(6335).AbortController;let C;let M;let I;function destroyer(e,t,r){let i=false;e.on("close",(()=>{i=true}));const n=l(e,{readable:t,writable:r},(e=>{i=!e}));return{destroy:t=>{if(i)return;i=true;f.destroyer(e,t||new b("pipe"))},cleanup:n}}function popCallback(e){_(e[e.length-1],"streams[stream.length - 1]");return e.pop()}function makeAsyncIterable(e){if(v(e)){return e}else if(k(e)){return fromReadable(e)}throw new d("val",["Readable","Iterable","AsyncIterable"],e)}async function*fromReadable(e){if(!M){M=r(359)}yield*M.prototype[a].call(e)}async function pumpToNode(e,t,r,{end:i}){let n;let a=null;const resume=e=>{if(e){n=e}if(a){const e=a;a=null;e()}};const wait=()=>new s(((e,t)=>{if(n){t(n)}else{a=()=>{if(n){t(n)}else{e()}}}}));t.on("drain",resume);const o=l(t,{readable:false},resume);try{if(t.writableNeedDrain){await wait()}for await(const r of e){if(!t.write(r)){await wait()}}if(i){t.end();await wait()}r()}catch(e){r(n!==e?h(n,e):e)}finally{o();t.off("drain",resume)}}async function pumpToWeb(e,t,r,{end:i}){if(R(t)){t=t.writable}const n=t.getWriter();try{for await(const t of e){await n.ready;n.write(t).catch((()=>{}))}await n.ready;if(i){await n.close()}r()}catch(e){try{await n.abort(e);r(e)}catch(e){r(e)}}}function pipeline(...e){return pipelineImpl(e,u(popCallback(e)))}function pipelineImpl(e,t,s){if(e.length===1&&n(e[0])){e=e[0]}if(e.length<2){throw new y("streams")}const a=new P;const l=a.signal;const u=s===null||s===undefined?undefined:s.signal;const f=[];S(u,"options.signal");function abort(){finishImpl(new w)}I=I||r(8547).addAbortListener;let h;if(u){h=I(u,abort)}let b;let g;const _=[];let L=0;function finish(e){finishImpl(e,--L===0)}function finishImpl(e,r){var n;if(e&&(!b||b.code==="ERR_STREAM_PREMATURE_CLOSE")){b=e}if(!b&&!r){return}while(_.length){_.shift()(b)}(n=h)===null||n===undefined?undefined:n[o]();a.abort();if(r){if(!b){f.forEach((e=>e()))}i.nextTick(t,b,g)}}let M;for(let B=0;B<e.length;B++){const F=e[B];const j=B<e.length-1;const W=B>0;const z=j||(s===null||s===undefined?undefined:s.end)!==false;const U=B===e.length-1;if(T(F)){if(z){const{destroy:G,cleanup:$}=destroyer(F,j,W);_.push(G);if(x(F)&&U){f.push($)}}function onError(e){if(e&&e.name!=="AbortError"&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){finish(e)}}F.on("error",onError);if(x(F)&&U){f.push((()=>{F.removeListener("error",onError)}))}}if(B===0){if(typeof F==="function"){M=F({signal:l});if(!v(M)){throw new p("Iterable, AsyncIterable or Stream","source",M)}}else if(v(F)||k(F)||R(F)){M=F}else{M=c.from(F)}}else if(typeof F==="function"){if(R(M)){var D;M=makeAsyncIterable((D=M)===null||D===undefined?undefined:D.readable)}else{M=makeAsyncIterable(M)}M=F(M,{signal:l});if(j){if(!v(M,true)){throw new p("AsyncIterable",`transform[${B-1}]`,M)}}else{var N;if(!C){C=r(3253)}const H=new C({objectMode:true});const q=(N=M)===null||N===undefined?undefined:N.then;if(typeof q==="function"){L++;q.call(M,(e=>{g=e;if(e!=null){H.write(e)}if(z){H.end()}i.nextTick(finish)}),(e=>{H.destroy(e);i.nextTick(finish,e)}))}else if(v(M,true)){L++;pumpToNode(M,H,finish,{end:z})}else if(O(M)||R(M)){const Y=M.readable||M;L++;pumpToNode(Y,H,finish,{end:z})}else{throw new p("AsyncIterable or Promise","destination",M)}M=H;const{destroy:V,cleanup:Z}=destroyer(M,false,true);_.push(V);if(U){f.push(Z)}}}else if(T(F)){if(k(M)){L+=2;const K=pipe(M,F,finish,{end:z});if(x(F)&&U){f.push(K)}}else if(R(M)||O(M)){const Q=M.readable||M;L++;pumpToNode(Q,F,finish,{end:z})}else if(v(M)){L++;pumpToNode(M,F,finish,{end:z})}else{throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M)}M=F}else if(A(F)){if(k(M)){L++;pumpToWeb(makeAsyncIterable(M),F,finish,{end:z})}else if(O(M)||v(M)){L++;pumpToWeb(M,F,finish,{end:z})}else if(R(M)){L++;pumpToWeb(M.readable,F,finish,{end:z})}else{throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M)}M=F}else{M=c.from(F)}}if(l!==null&&l!==undefined&&l.aborted||u!==null&&u!==undefined&&u.aborted){i.nextTick(abort)}return M}function pipe(e,t,r,{end:n}){let s=false;t.on("close",(()=>{if(!s){r(new g)}}));e.pipe(t,{end:false});if(n){function endFn(){s=true;t.end()}if(L(e)){i.nextTick(endFn)}else{e.once("end",endFn)}}else{r()}l(e,{readable:true,writable:false},(t=>{const i=e._readableState;if(t&&t.code==="ERR_STREAM_PREMATURE_CLOSE"&&i&&i.ended&&!i.errored&&!i.errorEmitted){e.once("end",r).once("error",r)}else{r(t)}}));return l(t,{readable:false,writable:true},r)}e.exports={pipelineImpl:pipelineImpl,pipeline:pipeline}},359:function(e,t,r){"use strict";const i=r(125);const{ArrayPrototypeIndexOf:n,NumberIsInteger:s,NumberIsNaN:a,NumberParseInt:o,ObjectDefineProperties:l,ObjectKeys:u,ObjectSetPrototypeOf:f,Promise:c,SafeSet:h,SymbolAsyncDispose:d,SymbolAsyncIterator:p,Symbol:y}=r(2823);e.exports=Readable;Readable.ReadableState=ReadableState;const{EventEmitter:b}=r(4434);const{Stream:g,prependListener:w}=r(6720);const{Buffer:_}=r(181);const{addAbortSignal:S}=r(7580);const v=r(2543);let x=r(8547).debuglog("stream",(e=>{x=e}));const k=r(2536);const T=r(7201);const{getHighWaterMark:R,getDefaultHighWaterMark:A}=r(6650);const{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:L,ERR_METHOD_NOT_IMPLEMENTED:P,ERR_OUT_OF_RANGE:C,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:I},AbortError:D}=r(8484);const{validateObject:N}=r(8066);const B=y("kPaused");const{StringDecoder:F}=r(3252);const j=r(83);f(Readable.prototype,g.prototype);f(Readable,g);const nop=()=>{};const{errorOrDestroy:W}=T;const z=1<<0;const U=1<<1;const G=1<<2;const $=1<<3;const H=1<<4;const q=1<<5;const V=1<<6;const Z=1<<7;const Y=1<<8;const K=1<<9;const Q=1<<10;const X=1<<11;const J=1<<12;const ee=1<<13;const te=1<<14;const re=1<<15;const ie=1<<16;const ne=1<<17;const se=1<<18;function makeBitMapDescriptor(e){return{enumerable:false,get(){return(this.state&e)!==0},set(t){if(t)this.state|=e;else this.state&=~e}}}l(ReadableState.prototype,{objectMode:makeBitMapDescriptor(z),ended:makeBitMapDescriptor(U),endEmitted:makeBitMapDescriptor(G),reading:makeBitMapDescriptor($),constructed:makeBitMapDescriptor(H),sync:makeBitMapDescriptor(q),needReadable:makeBitMapDescriptor(V),emittedReadable:makeBitMapDescriptor(Z),readableListening:makeBitMapDescriptor(Y),resumeScheduled:makeBitMapDescriptor(K),errorEmitted:makeBitMapDescriptor(Q),emitClose:makeBitMapDescriptor(X),autoDestroy:makeBitMapDescriptor(J),destroyed:makeBitMapDescriptor(ee),closed:makeBitMapDescriptor(te),closeEmitted:makeBitMapDescriptor(re),multiAwaitDrain:makeBitMapDescriptor(ie),readingMore:makeBitMapDescriptor(ne),dataEmitted:makeBitMapDescriptor(se)});function ReadableState(e,t,i){if(typeof i!=="boolean")i=t instanceof r(657);this.state=X|J|H|q;if(e&&e.objectMode)this.state|=z;if(i&&e&&e.readableObjectMode)this.state|=z;this.highWaterMark=e?R(this,e,"readableHighWaterMark",i):A(false);this.buffer=new k;this.length=0;this.pipes=[];this.flowing=null;this[B]=null;if(e&&e.emitClose===false)this.state&=~X;if(e&&e.autoDestroy===false)this.state&=~J;this.errored=null;this.defaultEncoding=e&&e.defaultEncoding||"utf8";this.awaitDrainWriters=null;this.decoder=null;this.encoding=null;if(e&&e.encoding){this.decoder=new F(e.encoding);this.encoding=e.encoding}}function Readable(e){if(!(this instanceof Readable))return new Readable(e);const t=this instanceof r(657);this._readableState=new ReadableState(e,this,t);if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.construct==="function")this._construct=e.construct;if(e.signal&&!t)S(e.signal,this)}g.call(this,e);T.construct(this,(()=>{if(this._readableState.needReadable){maybeReadMore(this,this._readableState)}}))}Readable.prototype.destroy=T.destroy;Readable.prototype._undestroy=T.undestroy;Readable.prototype._destroy=function(e,t){t(e)};Readable.prototype[b.captureRejectionSymbol]=function(e){this.destroy(e)};Readable.prototype[d]=function(){let e;if(!this.destroyed){e=this.readableEnded?null:new D;this.destroy(e)}return new c(((t,r)=>v(this,(i=>i&&i!==e?r(i):t(null)))))};Readable.prototype.push=function(e,t){return readableAddChunk(this,e,t,false)};Readable.prototype.unshift=function(e,t){return readableAddChunk(this,e,t,true)};function readableAddChunk(e,t,r,i){x("readableAddChunk",t);const n=e._readableState;let s;if((n.state&z)===0){if(typeof t==="string"){r=r||n.defaultEncoding;if(n.encoding!==r){if(i&&n.encoding){t=_.from(t,r).toString(n.encoding)}else{t=_.from(t,r);r=""}}}else if(t instanceof _){r=""}else if(g._isUint8Array(t)){t=g._uint8ArrayToBuffer(t);r=""}else if(t!=null){s=new L("chunk",["string","Buffer","Uint8Array"],t)}}if(s){W(e,s)}else if(t===null){n.state&=~$;onEofChunk(e,n)}else if((n.state&z)!==0||t&&t.length>0){if(i){if((n.state&G)!==0)W(e,new I);else if(n.destroyed||n.errored)return false;else addChunk(e,n,t,true)}else if(n.ended){W(e,new M)}else if(n.destroyed||n.errored){return false}else{n.state&=~$;if(n.decoder&&!r){t=n.decoder.write(t);if(n.objectMode||t.length!==0)addChunk(e,n,t,false);else maybeReadMore(e,n)}else{addChunk(e,n,t,false)}}}else if(!i){n.state&=~$;maybeReadMore(e,n)}return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function addChunk(e,t,r,i){if(t.flowing&&t.length===0&&!t.sync&&e.listenerCount("data")>0){if((t.state&ie)!==0){t.awaitDrainWriters.clear()}else{t.awaitDrainWriters=null}t.dataEmitted=true;e.emit("data",r)}else{t.length+=t.objectMode?1:r.length;if(i)t.buffer.unshift(r);else t.buffer.push(r);if((t.state&V)!==0)emitReadable(e)}maybeReadMore(e,t)}Readable.prototype.isPaused=function(){const e=this._readableState;return e[B]===true||e.flowing===false};Readable.prototype.setEncoding=function(e){const t=new F(e);this._readableState.decoder=t;this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let i="";for(const e of r){i+=t.write(e)}r.clear();if(i!=="")r.push(i);this._readableState.length=i.length;return this};const ae=1073741824;function computeNewHighWaterMark(e){if(e>ae){throw new C("size","<= 1GiB",e)}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if((t.state&z)!==0)return 1;if(a(e)){if(t.flowing&&t.length)return t.buffer.first().length;return t.length}if(e<=t.length)return e;return t.ended?t.length:0}Readable.prototype.read=function(e){x("read",e);if(e===undefined){e=NaN}else if(!s(e)){e=o(e,10)}const t=this._readableState;const r=e;if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e!==0)t.state&=~Z;if(e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended)){x("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}let i=(t.state&V)!==0;x("need readable",i);if(t.length===0||t.length-e<t.highWaterMark){i=true;x("length less than watermark",i)}if(t.ended||t.reading||t.destroyed||t.errored||!t.constructed){i=false;x("reading, ended or constructing",i)}else if(i){x("do read");t.state|=$|q;if(t.length===0)t.state|=V;try{this._read(t.highWaterMark)}catch(e){W(this,e)}t.state&=~q;if(!t.reading)e=howMuchToRead(r,t)}let n;if(e>0)n=fromList(e,t);else n=null;if(n===null){t.needReadable=t.length<=t.highWaterMark;e=0}else{t.length-=e;if(t.multiAwaitDrain){t.awaitDrainWriters.clear()}else{t.awaitDrainWriters=null}}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(n!==null&&!t.errorEmitted&&!t.closeEmitted){t.dataEmitted=true;this.emit("data",n)}return n};function onEofChunk(e,t){x("onEofChunk");if(t.ended)return;if(t.decoder){const e=t.decoder.end();if(e&&e.length){t.buffer.push(e);t.length+=t.objectMode?1:e.length}}t.ended=true;if(t.sync){emitReadable(e)}else{t.needReadable=false;t.emittedReadable=true;emitReadable_(e)}}function emitReadable(e){const t=e._readableState;x("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){x("emitReadable",t.flowing);t.emittedReadable=true;i.nextTick(emitReadable_,e)}}function emitReadable_(e){const t=e._readableState;x("emitReadable_",t.destroyed,t.length,t.ended);if(!t.destroyed&&!t.errored&&(t.length||t.ended)){e.emit("readable");t.emittedReadable=false}t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark;flow(e)}function maybeReadMore(e,t){if(!t.readingMore&&t.constructed){t.readingMore=true;i.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0)){const r=t.length;x("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}Readable.prototype._read=function(e){throw new P("_read()")};Readable.prototype.pipe=function(e,t){const r=this;const n=this._readableState;if(n.pipes.length===1){if(!n.multiAwaitDrain){n.multiAwaitDrain=true;n.awaitDrainWriters=new h(n.awaitDrainWriters?[n.awaitDrainWriters]:[])}}n.pipes.push(e);x("pipe count=%d opts=%j",n.pipes.length,t);const s=(!t||t.end!==false)&&e!==i.stdout&&e!==i.stderr;const a=s?onend:unpipe;if(n.endEmitted)i.nextTick(a);else r.once("end",a);e.on("unpipe",onunpipe);function onunpipe(e,t){x("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){x("onend");e.end()}let o;let l=false;function cleanup(){x("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);if(o){e.removeListener("drain",o)}e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);l=true;if(o&&n.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain))o()}function pause(){if(!l){if(n.pipes.length===1&&n.pipes[0]===e){x("false write response, pause",0);n.awaitDrainWriters=e;n.multiAwaitDrain=false}else if(n.pipes.length>1&&n.pipes.includes(e)){x("false write response, pause",n.awaitDrainWriters.size);n.awaitDrainWriters.add(e)}r.pause()}if(!o){o=pipeOnDrain(r,e);e.on("drain",o)}}r.on("data",ondata);function ondata(t){x("ondata");const r=e.write(t);x("dest.write",r);if(r===false){pause()}}function onerror(t){x("onerror",t);unpipe();e.removeListener("error",onerror);if(e.listenerCount("error")===0){const r=e._writableState||e._readableState;if(r&&!r.errorEmitted){W(e,t)}else{e.emit("error",t)}}}w(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){x("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){x("unpipe");r.unpipe(e)}e.emit("pipe",r);if(e.writableNeedDrain===true){pause()}else if(!n.flowing){x("pipe resume");r.resume()}return e};function pipeOnDrain(e,t){return function pipeOnDrainFunctionResult(){const r=e._readableState;if(r.awaitDrainWriters===t){x("pipeOnDrain",1);r.awaitDrainWriters=null}else if(r.multiAwaitDrain){x("pipeOnDrain",r.awaitDrainWriters.size);r.awaitDrainWriters.delete(t)}if((!r.awaitDrainWriters||r.awaitDrainWriters.size===0)&&e.listenerCount("data")){e.resume()}}}Readable.prototype.unpipe=function(e){const t=this._readableState;const r={hasUnpiped:false};if(t.pipes.length===0)return this;if(!e){const e=t.pipes;t.pipes=[];this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:false});return this}const i=n(t.pipes,e);if(i===-1)return this;t.pipes.splice(i,1);if(t.pipes.length===0)this.pause();e.emit("unpipe",this,r);return this};Readable.prototype.on=function(e,t){const r=g.prototype.on.call(this,e,t);const n=this._readableState;if(e==="data"){n.readableListening=this.listenerCount("readable")>0;if(n.flowing!==false)this.resume()}else if(e==="readable"){if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.flowing=false;n.emittedReadable=false;x("on readable",n.length,n.reading);if(n.length){emitReadable(this)}else if(!n.reading){i.nextTick(nReadingNextTick,this)}}}return r};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(e,t){const r=g.prototype.removeListener.call(this,e,t);if(e==="readable"){i.nextTick(updateReadableListening,this)}return r};Readable.prototype.off=Readable.prototype.removeListener;Readable.prototype.removeAllListeners=function(e){const t=g.prototype.removeAllListeners.apply(this,arguments);if(e==="readable"||e===undefined){i.nextTick(updateReadableListening,this)}return t};function updateReadableListening(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0;if(t.resumeScheduled&&t[B]===false){t.flowing=true}else if(e.listenerCount("data")>0){e.resume()}else if(!t.readableListening){t.flowing=null}}function nReadingNextTick(e){x("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){const e=this._readableState;if(!e.flowing){x("resume");e.flowing=!e.readableListening;resume(this,e)}e[B]=false;return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;i.nextTick(resume_,e,t)}}function resume_(e,t){x("resume",t.reading);if(!t.reading){e.read(0)}t.resumeScheduled=false;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){x("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){x("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState[B]=true;return this};function flow(e){const t=e._readableState;x("flow",t.flowing);while(t.flowing&&e.read()!==null);}Readable.prototype.wrap=function(e){let t=false;e.on("data",(r=>{if(!this.push(r)&&e.pause){t=true;e.pause()}}));e.on("end",(()=>{this.push(null)}));e.on("error",(e=>{W(this,e)}));e.on("close",(()=>{this.destroy()}));e.on("destroy",(()=>{this.destroy()}));this._read=()=>{if(t&&e.resume){t=false;e.resume()}};const r=u(e);for(let t=1;t<r.length;t++){const i=r[t];if(this[i]===undefined&&typeof e[i]==="function"){this[i]=e[i].bind(e)}}return this};Readable.prototype[p]=function(){return streamToAsyncIterator(this)};Readable.prototype.iterator=function(e){if(e!==undefined){N(e,"options")}return streamToAsyncIterator(this,e)};function streamToAsyncIterator(e,t){if(typeof e.read!=="function"){e=Readable.wrap(e,{objectMode:true})}const r=createAsyncIterator(e,t);r.stream=e;return r}async function*createAsyncIterator(e,t){let r=nop;function next(t){if(this===e){r();r=nop}else{r=t}}e.on("readable",next);let i;const n=v(e,{writable:false},(e=>{i=e?O(i,e):null;r();r=nop}));try{while(true){const t=e.destroyed?null:e.read();if(t!==null){yield t}else if(i){throw i}else if(i===null){return}else{await new c(next)}}}catch(e){i=O(i,e);throw i}finally{if((i||(t===null||t===undefined?undefined:t.destroyOnReturn)!==false)&&(i===undefined||e._readableState.autoDestroy)){T.destroyer(e,null)}else{e.off("readable",next);n()}}}l(Readable.prototype,{readable:{__proto__:null,get(){const e=this._readableState;return!!e&&e.readable!==false&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){if(this._readableState){this._readableState.readable=!!e}}},readableDidRead:{__proto__:null,enumerable:false,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:false,get:function(){return!!(this._readableState.readable!==false&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:false,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:false,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:false,get:function(){return this._readableState.flowing},set:function(e){if(this._readableState){this._readableState.flowing=e}}},readableLength:{__proto__:null,enumerable:false,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.objectMode:false}},readableEncoding:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:false}},destroyed:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.destroyed:false},set(e){if(!this._readableState){return}this._readableState.destroyed=e}},readableEnded:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.endEmitted:false}}});l(ReadableState.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[B]!==false},set(e){this[B]=!!e}}});Readable._fromList=fromList;function fromList(e,t){if(t.length===0)return null;let r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.first();else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=t.buffer.consume(e,t.decoder)}return r}function endReadable(e){const t=e._readableState;x("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;i.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){x("endReadableNT",e.endEmitted,e.length);if(!e.errored&&!e.closeEmitted&&!e.endEmitted&&e.length===0){e.endEmitted=true;t.emit("end");if(t.writable&&t.allowHalfOpen===false){i.nextTick(endWritableNT,t)}else if(e.autoDestroy){const e=t._writableState;const r=!e||e.autoDestroy&&(e.finished||e.writable===false);if(r){t.destroy()}}}}function endWritableNT(e){const t=e.writable&&!e.writableEnded&&!e.destroyed;if(t){e.end()}}Readable.from=function(e,t){return j(Readable,e,t)};let oe;function lazyWebStreams(){if(oe===undefined)oe={};return oe}Readable.fromWeb=function(e,t){return lazyWebStreams().newStreamReadableFromReadableStream(e,t)};Readable.toWeb=function(e,t){return lazyWebStreams().newReadableStreamFromStreamReadable(e,t)};Readable.wrap=function(e,t){var r,i;return new Readable({objectMode:(r=(i=e.readableObjectMode)!==null&&i!==undefined?i:e.objectMode)!==null&&r!==undefined?r:true,...t,destroy(t,r){T.destroyer(e,t);r(t)}}).wrap(e)}},6650:function(e,t,r){"use strict";const{MathFloor:i,NumberIsInteger:n}=r(2823);const{validateInteger:s}=r(8066);const{ERR_INVALID_ARG_VALUE:a}=r(8484).codes;let o=16*1024;let l=16;function highWaterMarkFrom(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function getDefaultHighWaterMark(e){return e?l:o}function setDefaultHighWaterMark(e,t){s(t,"value",0);if(e){l=t}else{o=t}}function getHighWaterMark(e,t,r,s){const o=highWaterMarkFrom(t,s,r);if(o!=null){if(!n(o)||o<0){const e=s?`options.${r}`:"options.highWaterMark";throw new a(e,o)}return i(o)}return getDefaultHighWaterMark(e.objectMode)}e.exports={getHighWaterMark:getHighWaterMark,getDefaultHighWaterMark:getDefaultHighWaterMark,setDefaultHighWaterMark:setDefaultHighWaterMark}},3303:function(e,t,r){"use strict";const{ObjectSetPrototypeOf:i,Symbol:n}=r(2823);e.exports=Transform;const{ERR_METHOD_NOT_IMPLEMENTED:s}=r(8484).codes;const a=r(657);const{getHighWaterMark:o}=r(6650);i(Transform.prototype,a.prototype);i(Transform,a);const l=n("kCallback");function Transform(e){if(!(this instanceof Transform))return new Transform(e);const t=e?o(this,e,"readableHighWaterMark",true):null;if(t===0){e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}}a.call(this,e);this._readableState.sync=false;this[l]=null;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",prefinish)}function final(e){if(typeof this._flush==="function"&&!this.destroyed){this._flush(((t,r)=>{if(t){if(e){e(t)}else{this.destroy(t)}return}if(r!=null){this.push(r)}this.push(null);if(e){e()}}))}else{this.push(null);if(e){e()}}}function prefinish(){if(this._final!==final){final.call(this)}}Transform.prototype._final=final;Transform.prototype._transform=function(e,t,r){throw new s("_transform()")};Transform.prototype._write=function(e,t,r){const i=this._readableState;const n=this._writableState;const s=i.length;this._transform(e,t,((e,t)=>{if(e){r(e);return}if(t!=null){this.push(t)}if(n.ended||s===i.length||i.length<i.highWaterMark){r()}else{this[l]=r}}))};Transform.prototype._read=function(){if(this[l]){const e=this[l];this[l]=null;e()}}},7202:function(e,t,r){"use strict";const{SymbolAsyncIterator:i,SymbolIterator:n,SymbolFor:s}=r(2823);const a=s("nodejs.stream.destroyed");const o=s("nodejs.stream.errored");const l=s("nodejs.stream.readable");const u=s("nodejs.stream.writable");const f=s("nodejs.stream.disturbed");const c=s("nodejs.webstream.isClosedPromise");const h=s("nodejs.webstream.controllerErrorFunction");function isReadableNodeStream(e,t=false){var r;return!!(e&&typeof e.pipe==="function"&&typeof e.on==="function"&&(!t||typeof e.pause==="function"&&typeof e.resume==="function")&&(!e._writableState||((r=e._readableState)===null||r===undefined?undefined:r.readable)!==false)&&(!e._writableState||e._readableState))}function isWritableNodeStream(e){var t;return!!(e&&typeof e.write==="function"&&typeof e.on==="function"&&(!e._readableState||((t=e._writableState)===null||t===undefined?undefined:t.writable)!==false))}function isDuplexNodeStream(e){return!!(e&&typeof e.pipe==="function"&&e._readableState&&typeof e.on==="function"&&typeof e.write==="function")}function isNodeStream(e){return e&&(e._readableState||e._writableState||typeof e.write==="function"&&typeof e.on==="function"||typeof e.pipe==="function"&&typeof e.on==="function")}function isReadableStream(e){return!!(e&&!isNodeStream(e)&&typeof e.pipeThrough==="function"&&typeof e.getReader==="function"&&typeof e.cancel==="function")}function isWritableStream(e){return!!(e&&!isNodeStream(e)&&typeof e.getWriter==="function"&&typeof e.abort==="function")}function isTransformStream(e){return!!(e&&!isNodeStream(e)&&typeof e.readable==="object"&&typeof e.writable==="object")}function isWebStream(e){return isReadableStream(e)||isWritableStream(e)||isTransformStream(e)}function isIterable(e,t){if(e==null)return false;if(t===true)return typeof e[i]==="function";if(t===false)return typeof e[n]==="function";return typeof e[i]==="function"||typeof e[n]==="function"}function isDestroyed(e){if(!isNodeStream(e))return null;const t=e._writableState;const r=e._readableState;const i=t||r;return!!(e.destroyed||e[a]||i!==null&&i!==undefined&&i.destroyed)}function isWritableEnded(e){if(!isWritableNodeStream(e))return null;if(e.writableEnded===true)return true;const t=e._writableState;if(t!==null&&t!==undefined&&t.errored)return false;if(typeof(t===null||t===undefined?undefined:t.ended)!=="boolean")return null;return t.ended}function isWritableFinished(e,t){if(!isWritableNodeStream(e))return null;if(e.writableFinished===true)return true;const r=e._writableState;if(r!==null&&r!==undefined&&r.errored)return false;if(typeof(r===null||r===undefined?undefined:r.finished)!=="boolean")return null;return!!(r.finished||t===false&&r.ended===true&&r.length===0)}function isReadableEnded(e){if(!isReadableNodeStream(e))return null;if(e.readableEnded===true)return true;const t=e._readableState;if(!t||t.errored)return false;if(typeof(t===null||t===undefined?undefined:t.ended)!=="boolean")return null;return t.ended}function isReadableFinished(e,t){if(!isReadableNodeStream(e))return null;const r=e._readableState;if(r!==null&&r!==undefined&&r.errored)return false;if(typeof(r===null||r===undefined?undefined:r.endEmitted)!=="boolean")return null;return!!(r.endEmitted||t===false&&r.ended===true&&r.length===0)}function isReadable(e){if(e&&e[l]!=null)return e[l];if(typeof(e===null||e===undefined?undefined:e.readable)!=="boolean")return null;if(isDestroyed(e))return false;return isReadableNodeStream(e)&&e.readable&&!isReadableFinished(e)}function isWritable(e){if(e&&e[u]!=null)return e[u];if(typeof(e===null||e===undefined?undefined:e.writable)!=="boolean")return null;if(isDestroyed(e))return false;return isWritableNodeStream(e)&&e.writable&&!isWritableEnded(e)}function isFinished(e,t){if(!isNodeStream(e)){return null}if(isDestroyed(e)){return true}if((t===null||t===undefined?undefined:t.readable)!==false&&isReadable(e)){return false}if((t===null||t===undefined?undefined:t.writable)!==false&&isWritable(e)){return false}return true}function isWritableErrored(e){var t,r;if(!isNodeStream(e)){return null}if(e.writableErrored){return e.writableErrored}return(t=(r=e._writableState)===null||r===undefined?undefined:r.errored)!==null&&t!==undefined?t:null}function isReadableErrored(e){var t,r;if(!isNodeStream(e)){return null}if(e.readableErrored){return e.readableErrored}return(t=(r=e._readableState)===null||r===undefined?undefined:r.errored)!==null&&t!==undefined?t:null}function isClosed(e){if(!isNodeStream(e)){return null}if(typeof e.closed==="boolean"){return e.closed}const t=e._writableState;const r=e._readableState;if(typeof(t===null||t===undefined?undefined:t.closed)==="boolean"||typeof(r===null||r===undefined?undefined:r.closed)==="boolean"){return(t===null||t===undefined?undefined:t.closed)||(r===null||r===undefined?undefined:r.closed)}if(typeof e._closed==="boolean"&&isOutgoingMessage(e)){return e._closed}return null}function isOutgoingMessage(e){return typeof e._closed==="boolean"&&typeof e._defaultKeepAlive==="boolean"&&typeof e._removedConnection==="boolean"&&typeof e._removedContLen==="boolean"}function isServerResponse(e){return typeof e._sent100==="boolean"&&isOutgoingMessage(e)}function isServerRequest(e){var t;return typeof e._consuming==="boolean"&&typeof e._dumped==="boolean"&&((t=e.req)===null||t===undefined?undefined:t.upgradeOrConnect)===undefined}function willEmitClose(e){if(!isNodeStream(e))return null;const t=e._writableState;const r=e._readableState;const i=t||r;return!i&&isServerResponse(e)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===false)}function isDisturbed(e){var t;return!!(e&&((t=e[f])!==null&&t!==undefined?t:e.readableDidRead||e.readableAborted))}function isErrored(e){var t,r,i,n,s,a,l,u,f,c;return!!(e&&((t=(r=(i=(n=(s=(a=e[o])!==null&&a!==undefined?a:e.readableErrored)!==null&&s!==undefined?s:e.writableErrored)!==null&&n!==undefined?n:(l=e._readableState)===null||l===undefined?undefined:l.errorEmitted)!==null&&i!==undefined?i:(u=e._writableState)===null||u===undefined?undefined:u.errorEmitted)!==null&&r!==undefined?r:(f=e._readableState)===null||f===undefined?undefined:f.errored)!==null&&t!==undefined?t:(c=e._writableState)===null||c===undefined?undefined:c.errored))}e.exports={isDestroyed:isDestroyed,kIsDestroyed:a,isDisturbed:isDisturbed,kIsDisturbed:f,isErrored:isErrored,kIsErrored:o,isReadable:isReadable,kIsReadable:l,kIsClosedPromise:c,kControllerErrorFunction:h,kIsWritable:u,isClosed:isClosed,isDuplexNodeStream:isDuplexNodeStream,isFinished:isFinished,isIterable:isIterable,isReadableNodeStream:isReadableNodeStream,isReadableStream:isReadableStream,isReadableEnded:isReadableEnded,isReadableFinished:isReadableFinished,isReadableErrored:isReadableErrored,isNodeStream:isNodeStream,isWebStream:isWebStream,isWritable:isWritable,isWritableNodeStream:isWritableNodeStream,isWritableStream:isWritableStream,isWritableEnded:isWritableEnded,isWritableFinished:isWritableFinished,isWritableErrored:isWritableErrored,isServerRequest:isServerRequest,isServerResponse:isServerResponse,willEmitClose:willEmitClose,isTransformStream:isTransformStream}},3131:function(e,t,r){"use strict";const i=r(125);const{ArrayPrototypeSlice:n,Error:s,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:o,ObjectDefineProperties:l,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:f,Symbol:c,SymbolHasInstance:h}=r(2823);e.exports=Writable;Writable.WritableState=WritableState;const{EventEmitter:d}=r(4434);const p=r(6720).Stream;const{Buffer:y}=r(181);const b=r(7201);const{addAbortSignal:g}=r(7580);const{getHighWaterMark:w,getDefaultHighWaterMark:_}=r(6650);const{ERR_INVALID_ARG_TYPE:S,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:x,ERR_STREAM_CANNOT_PIPE:k,ERR_STREAM_DESTROYED:T,ERR_STREAM_ALREADY_FINISHED:R,ERR_STREAM_NULL_VALUES:A,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:L}=r(8484).codes;const{errorOrDestroy:P}=b;u(Writable.prototype,p.prototype);u(Writable,p);function nop(){}const C=c("kOnFinished");function WritableState(e,t,i){if(typeof i!=="boolean")i=t instanceof r(657);this.objectMode=!!(e&&e.objectMode);if(i)this.objectMode=this.objectMode||!!(e&&e.writableObjectMode);this.highWaterMark=e?w(this,e,"writableHighWaterMark",i):_(false);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;const n=!!(e&&e.decodeStrings===false);this.decodeStrings=!n;this.defaultEncoding=e&&e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=onwrite.bind(undefined,t);this.writecb=null;this.writelen=0;this.afterWriteTickInfo=null;resetBuffer(this);this.pendingcb=0;this.constructed=true;this.prefinished=false;this.errorEmitted=false;this.emitClose=!e||e.emitClose!==false;this.autoDestroy=!e||e.autoDestroy!==false;this.errored=null;this.closed=false;this.closeEmitted=false;this[C]=[]}function resetBuffer(e){e.buffered=[];e.bufferedIndex=0;e.allBuffers=true;e.allNoop=true}WritableState.prototype.getBuffer=function getBuffer(){return n(this.buffered,this.bufferedIndex)};o(WritableState.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Writable(e){const t=this instanceof r(657);if(!t&&!a(Writable,this))return new Writable(e);this._writableState=new WritableState(e,this,t);if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final;if(typeof e.construct==="function")this._construct=e.construct;if(e.signal)g(e.signal,this)}p.call(this,e);b.construct(this,(()=>{const e=this._writableState;if(!e.writing){clearBuffer(this,e)}finishMaybe(this,e)}))}o(Writable,h,{__proto__:null,value:function(e){if(a(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}});Writable.prototype.pipe=function(){P(this,new k)};function _write(e,t,r,n){const s=e._writableState;if(typeof r==="function"){n=r;r=s.defaultEncoding}else{if(!r)r=s.defaultEncoding;else if(r!=="buffer"&&!y.isEncoding(r))throw new L(r);if(typeof n!=="function")n=nop}if(t===null){throw new A}else if(!s.objectMode){if(typeof t==="string"){if(s.decodeStrings!==false){t=y.from(t,r);r="buffer"}}else if(t instanceof y){r="buffer"}else if(p._isUint8Array(t)){t=p._uint8ArrayToBuffer(t);r="buffer"}else{throw new S("chunk",["string","Buffer","Uint8Array"],t)}}let a;if(s.ending){a=new O}else if(s.destroyed){a=new T("write")}if(a){i.nextTick(n,a);P(e,a,true);return a}s.pendingcb++;return writeOrBuffer(e,s,t,r,n)}Writable.prototype.write=function(e,t,r){return _write(this,e,t,r)===true};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){const e=this._writableState;if(e.corked){e.corked--;if(!e.writing)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=f(e);if(!y.isEncoding(e))throw new L(e);this._writableState.defaultEncoding=e;return this};function writeOrBuffer(e,t,r,i,n){const s=t.objectMode?1:r.length;t.length+=s;const a=t.length<t.highWaterMark;if(!a)t.needDrain=true;if(t.writing||t.corked||t.errored||!t.constructed){t.buffered.push({chunk:r,encoding:i,callback:n});if(t.allBuffers&&i!=="buffer"){t.allBuffers=false}if(t.allNoop&&n!==nop){t.allNoop=false}}else{t.writelen=s;t.writecb=n;t.writing=true;t.sync=true;e._write(r,i,t.onwrite);t.sync=false}return a&&!t.errored&&!t.destroyed}function doWrite(e,t,r,i,n,s,a){t.writelen=i;t.writecb=a;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new T("write"));else if(r)e._writev(n,t.onwrite);else e._write(n,s,t.onwrite);t.sync=false}function onwriteError(e,t,r,i){--t.pendingcb;i(r);errorBuffer(t);P(e,r)}function onwrite(e,t){const r=e._writableState;const n=r.sync;const s=r.writecb;if(typeof s!=="function"){P(e,new x);return}r.writing=false;r.writecb=null;r.length-=r.writelen;r.writelen=0;if(t){t.stack;if(!r.errored){r.errored=t}if(e._readableState&&!e._readableState.errored){e._readableState.errored=t}if(n){i.nextTick(onwriteError,e,r,t,s)}else{onwriteError(e,r,t,s)}}else{if(r.buffered.length>r.bufferedIndex){clearBuffer(e,r)}if(n){if(r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===s){r.afterWriteTickInfo.count++}else{r.afterWriteTickInfo={count:1,cb:s,stream:e,state:r};i.nextTick(afterWriteTick,r.afterWriteTickInfo)}}else{afterWrite(e,r,1,s)}}}function afterWriteTick({stream:e,state:t,count:r,cb:i}){t.afterWriteTickInfo=null;return afterWrite(e,t,r,i)}function afterWrite(e,t,r,i){const n=!t.ending&&!e.destroyed&&t.length===0&&t.needDrain;if(n){t.needDrain=false;e.emit("drain")}while(r-- >0){t.pendingcb--;i()}if(t.destroyed){errorBuffer(t)}finishMaybe(e,t)}function errorBuffer(e){if(e.writing){return}for(let r=e.bufferedIndex;r<e.buffered.length;++r){var t;const{chunk:i,callback:n}=e.buffered[r];const s=e.objectMode?1:i.length;e.length-=s;n((t=e.errored)!==null&&t!==undefined?t:new T("write"))}const r=e[C].splice(0);for(let t=0;t<r.length;t++){var i;r[t]((i=e.errored)!==null&&i!==undefined?i:new T("end"))}resetBuffer(e)}function clearBuffer(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed){return}const{buffered:r,bufferedIndex:i,objectMode:s}=t;const a=r.length-i;if(!a){return}let o=i;t.bufferProcessing=true;if(a>1&&e._writev){t.pendingcb-=a-1;const i=t.allNoop?nop:e=>{for(let t=o;t<r.length;++t){r[t].callback(e)}};const s=t.allNoop&&o===0?r:n(r,o);s.allBuffers=t.allBuffers;doWrite(e,t,true,t.length,s,"",i);resetBuffer(t)}else{do{const{chunk:i,encoding:n,callback:a}=r[o];r[o++]=null;const l=s?1:i.length;doWrite(e,t,false,l,i,n,a)}while(o<r.length&&!t.writing);if(o===r.length){resetBuffer(t)}else if(o>256){r.splice(0,o);t.bufferedIndex=0}else{t.bufferedIndex=o}}t.bufferProcessing=false}Writable.prototype._write=function(e,t,r){if(this._writev){this._writev([{chunk:e,encoding:t}],r)}else{throw new v("_write()")}};Writable.prototype._writev=null;Writable.prototype.end=function(e,t,r){const n=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}let a;if(e!==null&&e!==undefined){const r=_write(this,e,t);if(r instanceof s){a=r}}if(n.corked){n.corked=1;this.uncork()}if(a){}else if(!n.errored&&!n.ending){n.ending=true;finishMaybe(this,n,true);n.ended=true}else if(n.finished){a=new R("end")}else if(n.destroyed){a=new T("end")}if(typeof r==="function"){if(a||n.finished){i.nextTick(r,a)}else{n[C].push(r)}}return this};function needFinish(e){return e.ending&&!e.destroyed&&e.constructed&&e.length===0&&!e.errored&&e.buffered.length===0&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function callFinal(e,t){let r=false;function onFinish(n){if(r){P(e,n!==null&&n!==undefined?n:x());return}r=true;t.pendingcb--;if(n){const r=t[C].splice(0);for(let e=0;e<r.length;e++){r[e](n)}P(e,n,t.sync)}else if(needFinish(t)){t.prefinished=true;e.emit("prefinish");t.pendingcb++;i.nextTick(finish,e,t)}}t.sync=true;t.pendingcb++;try{e._final(onFinish)}catch(e){onFinish(e)}t.sync=false}function prefinish(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"&&!t.destroyed){t.finalCalled=true;callFinal(e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function finishMaybe(e,t,r){if(needFinish(t)){prefinish(e,t);if(t.pendingcb===0){if(r){t.pendingcb++;i.nextTick(((e,t)=>{if(needFinish(t)){finish(e,t)}else{t.pendingcb--}}),e,t)}else if(needFinish(t)){t.pendingcb++;finish(e,t)}}}}function finish(e,t){t.pendingcb--;t.finished=true;const r=t[C].splice(0);for(let e=0;e<r.length;e++){r[e]()}e.emit("finish");if(t.autoDestroy){const t=e._readableState;const r=!t||t.autoDestroy&&(t.endEmitted||t.readable===false);if(r){e.destroy()}}}l(Writable.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:false}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:false},set(e){if(this._writableState){this._writableState.destroyed=e}}},writable:{__proto__:null,get(){const e=this._writableState;return!!e&&e.writable!==false&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){if(this._writableState){this._writableState.writable=!!e}}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:false}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:false}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:false}},writableNeedDrain:{__proto__:null,get(){const e=this._writableState;if(!e)return false;return!e.destroyed&&!e.ending&&e.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:false,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:false,get:function(){return!!(this._writableState.writable!==false&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});const M=b.destroy;Writable.prototype.destroy=function(e,t){const r=this._writableState;if(!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[C].length)){i.nextTick(errorBuffer,r)}M.call(this,e,t);return this};Writable.prototype._undestroy=b.undestroy;Writable.prototype._destroy=function(e,t){t(e)};Writable.prototype[d.captureRejectionSymbol]=function(e){this.destroy(e)};let I;function lazyWebStreams(){if(I===undefined)I={};return I}Writable.fromWeb=function(e,t){return lazyWebStreams().newStreamWritableFromWritableStream(e,t)};Writable.toWeb=function(e){return lazyWebStreams().newWritableStreamFromStreamWritable(e)}},8066:function(e,t,r){"use strict";const{ArrayIsArray:i,ArrayPrototypeIncludes:n,ArrayPrototypeJoin:s,ArrayPrototypeMap:a,NumberIsInteger:o,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:u,NumberMIN_SAFE_INTEGER:f,NumberParseInt:c,ObjectPrototypeHasOwnProperty:h,RegExpPrototypeExec:d,String:p,StringPrototypeToUpperCase:y,StringPrototypeTrim:b}=r(2823);const{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:w,ERR_INVALID_ARG_TYPE:_,ERR_INVALID_ARG_VALUE:S,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:x}}=r(8484);const{normalizeEncoding:k}=r(8547);const{isAsyncFunction:T,isArrayBufferView:R}=r(8547).types;const A={};function isInt32(e){return e===(e|0)}function isUint32(e){return e===e>>>0}const O=/^[0-7]+$/;const L="must be a 32-bit unsigned integer or an octal string";function parseFileMode(e,t,r){if(typeof e==="undefined"){e=r}if(typeof e==="string"){if(d(O,e)===null){throw new S(t,e,L)}e=c(e,8)}M(e,t);return e}const P=g(((e,t,r=f,i=u)=>{if(typeof e!=="number")throw new _(t,"number",e);if(!o(e))throw new v(t,"an integer",e);if(e<r||e>i)throw new v(t,`>= ${r} && <= ${i}`,e)}));const C=g(((e,t,r=-2147483648,i=2147483647)=>{if(typeof e!=="number"){throw new _(t,"number",e)}if(!o(e)){throw new v(t,"an integer",e)}if(e<r||e>i){throw new v(t,`>= ${r} && <= ${i}`,e)}}));const M=g(((e,t,r=false)=>{if(typeof e!=="number"){throw new _(t,"number",e)}if(!o(e)){throw new v(t,"an integer",e)}const i=r?1:0;const n=4294967295;if(e<i||e>n){throw new v(t,`>= ${i} && <= ${n}`,e)}}));function validateString(e,t){if(typeof e!=="string")throw new _(t,"string",e)}function validateNumber(e,t,r=undefined,i){if(typeof e!=="number")throw new _(t,"number",e);if(r!=null&&e<r||i!=null&&e>i||(r!=null||i!=null)&&l(e)){throw new v(t,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,e)}}const I=g(((e,t,r)=>{if(!n(r,e)){const i=s(a(r,(e=>typeof e==="string"?`'${e}'`:p(e))),", ");const n="must be one of: "+i;throw new S(t,e,n)}}));function validateBoolean(e,t){if(typeof e!=="boolean")throw new _(t,"boolean",e)}function getOwnPropertyValueOrDefault(e,t,r){return e==null||!h(e,t)?r:e[t]}const D=g(((e,t,r=null)=>{const n=getOwnPropertyValueOrDefault(r,"allowArray",false);const s=getOwnPropertyValueOrDefault(r,"allowFunction",false);const a=getOwnPropertyValueOrDefault(r,"nullable",false);if(!a&&e===null||!n&&i(e)||typeof e!=="object"&&(!s||typeof e!=="function")){throw new _(t,"Object",e)}}));const N=g(((e,t)=>{if(e!=null&&typeof e!=="object"&&typeof e!=="function"){throw new _(t,"a dictionary",e)}}));const B=g(((e,t,r=0)=>{if(!i(e)){throw new _(t,"Array",e)}if(e.length<r){const i=`must be longer than ${r}`;throw new S(t,e,i)}}));function validateStringArray(e,t){B(e,t);for(let r=0;r<e.length;r++){validateString(e[r],`${t}[${r}]`)}}function validateBooleanArray(e,t){B(e,t);for(let r=0;r<e.length;r++){validateBoolean(e[r],`${t}[${r}]`)}}function validateAbortSignalArray(e,t){B(e,t);for(let r=0;r<e.length;r++){const i=e[r];const n=`${t}[${r}]`;if(i==null){throw new _(n,"AbortSignal",i)}j(i,n)}}function validateSignalName(e,t="signal"){validateString(e,t);if(A[e]===undefined){if(A[y(e)]!==undefined){throw new x(e+" (signals must use all capital letters)")}throw new x(e)}}const F=g(((e,t="buffer")=>{if(!R(e)){throw new _(t,["Buffer","TypedArray","DataView"],e)}}));function validateEncoding(e,t){const r=k(t);const i=e.length;if(r==="hex"&&i%2!==0){throw new S("encoding",t,`is invalid for data of length ${i}`)}}function validatePort(e,t="Port",r=true){if(typeof e!=="number"&&typeof e!=="string"||typeof e==="string"&&b(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r){throw new w(t,e,r)}return e|0}const j=g(((e,t)=>{if(e!==undefined&&(e===null||typeof e!=="object"||!("aborted"in e))){throw new _(t,"AbortSignal",e)}}));const W=g(((e,t)=>{if(typeof e!=="function")throw new _(t,"Function",e)}));const z=g(((e,t)=>{if(typeof e!=="function"||T(e))throw new _(t,"Function",e)}));const U=g(((e,t)=>{if(e!==undefined)throw new _(t,"undefined",e)}));function validateUnion(e,t,r){if(!n(r,e)){throw new _(t,`('${s(r,"|")}')`,e)}}const G=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function validateLinkHeaderFormat(e,t){if(typeof e==="undefined"||!d(G,e)){throw new S(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}function validateLinkHeaderValue(e){if(typeof e==="string"){validateLinkHeaderFormat(e,"hints");return e}else if(i(e)){const t=e.length;let r="";if(t===0){return r}for(let i=0;i<t;i++){const n=e[i];validateLinkHeaderFormat(n,"hints");r+=n;if(i!==t-1){r+=", "}}return r}throw new S("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:isInt32,isUint32:isUint32,parseFileMode:parseFileMode,validateArray:B,validateStringArray:validateStringArray,validateBooleanArray:validateBooleanArray,validateAbortSignalArray:validateAbortSignalArray,validateBoolean:validateBoolean,validateBuffer:F,validateDictionary:N,validateEncoding:validateEncoding,validateFunction:W,validateInt32:C,validateInteger:P,validateNumber:validateNumber,validateObject:D,validateOneOf:I,validatePlainFunction:z,validatePort:validatePort,validateSignalName:validateSignalName,validateString:validateString,validateUint32:M,validateUndefined:U,validateUnion:validateUnion,validateAbortSignal:j,validateLinkHeaderValue:validateLinkHeaderValue}},8484:function(e,t,r){"use strict";const{format:i,inspect:n}=r(4560);const{AggregateError:s}=r(2823);const a=globalThis.AggregateError||s;const o=Symbol("kIsNodeError");const l=["string","function","number","object","Function","Object","boolean","bigint","symbol"];const u=/^([A-Z][a-z0-9]*)+$/;const f="__node_internal_";const c={};function assert(e,t){if(!e){throw new c.ERR_INTERNAL_ASSERTION(t)}}function addNumericalSeparator(e){let t="";let r=e.length;const i=e[0]==="-"?1:0;for(;r>=i+4;r-=3){t=`_${e.slice(r-3,r)}${t}`}return`${e.slice(0,r)}${t}`}function getMessage(e,t,r){if(typeof t==="function"){assert(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`);return t(...r)}const n=(t.match(/%[dfijoOs]/g)||[]).length;assert(n===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${n}).`);if(r.length===0){return t}return i(t,...r)}function E(e,t,r){if(!r){r=Error}class NodeError extends r{constructor(...r){super(getMessage(e,t,r))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(NodeError.prototype,{name:{value:r.name,writable:true,enumerable:false,configurable:true},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:true,enumerable:false,configurable:true}});NodeError.prototype.code=e;NodeError.prototype[o]=true;c[e]=NodeError}function hideStackFrames(e){const t=f+e.name;Object.defineProperty(e,"name",{value:t});return e}function aggregateTwoErrors(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors)){t.errors.push(e);return t}const r=new a([t,e],t.message);r.code=t.code;return r}return e||t}class AbortError extends Error{constructor(e="The operation was aborted",t=undefined){if(t!==undefined&&typeof t!=="object"){throw new c.ERR_INVALID_ARG_TYPE("options","Object",t)}super(e,t);this.code="ABORT_ERR";this.name="AbortError"}}E("ERR_ASSERTION","%s",Error);E("ERR_INVALID_ARG_TYPE",((e,t,r)=>{assert(typeof e==="string","'name' must be a string");if(!Array.isArray(t)){t=[t]}let i="The ";if(e.endsWith(" argument")){i+=`${e} `}else{i+=`"${e}" ${e.includes(".")?"property":"argument"} `}i+="must be ";const s=[];const a=[];const o=[];for(const e of t){assert(typeof e==="string","All expected entries have to be of type string");if(l.includes(e)){s.push(e.toLowerCase())}else if(u.test(e)){a.push(e)}else{assert(e!=="object",'The value "object" should be written as "Object"');o.push(e)}}if(a.length>0){const e=s.indexOf("object");if(e!==-1){s.splice(s,e,1);a.push("Object")}}if(s.length>0){switch(s.length){case 1:i+=`of type ${s[0]}`;break;case 2:i+=`one of type ${s[0]} or ${s[1]}`;break;default:{const e=s.pop();i+=`one of type ${s.join(", ")}, or ${e}`}}if(a.length>0||o.length>0){i+=" or "}}if(a.length>0){switch(a.length){case 1:i+=`an instance of ${a[0]}`;break;case 2:i+=`an instance of ${a[0]} or ${a[1]}`;break;default:{const e=a.pop();i+=`an instance of ${a.join(", ")}, or ${e}`}}if(o.length>0){i+=" or "}}switch(o.length){case 0:break;case 1:if(o[0].toLowerCase()!==o[0]){i+="an "}i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{const e=o.pop();i+=`one of ${o.join(", ")}, or ${e}`}}if(r==null){i+=`. Received ${r}`}else if(typeof r==="function"&&r.name){i+=`. Received function ${r.name}`}else if(typeof r==="object"){var f;if((f=r.constructor)!==null&&f!==undefined&&f.name){i+=`. Received an instance of ${r.constructor.name}`}else{const e=n(r,{depth:-1});i+=`. Received ${e}`}}else{let e=n(r,{colors:false});if(e.length>25){e=`${e.slice(0,25)}...`}i+=`. Received type ${typeof r} (${e})`}return i}),TypeError);E("ERR_INVALID_ARG_VALUE",((e,t,r="is invalid")=>{let i=n(t);if(i.length>128){i=i.slice(0,128)+"..."}const s=e.includes(".")?"property":"argument";return`The ${s} '${e}' ${r}. Received ${i}`}),TypeError);E("ERR_INVALID_RETURN_VALUE",((e,t,r)=>{var i;const n=r!==null&&r!==undefined&&(i=r.constructor)!==null&&i!==undefined&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}"`+` function but got ${n}.`}),TypeError);E("ERR_MISSING_ARGS",((...e)=>{assert(e.length>0,"At least one arg needs to be specified");let t;const r=e.length;e=(Array.isArray(e)?e:[e]).map((e=>`"${e}"`)).join(" or ");switch(r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}break}return`${t} must be specified`}),TypeError);E("ERR_OUT_OF_RANGE",((e,t,r)=>{assert(t,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32){i=addNumericalSeparator(String(r))}else if(typeof r==="bigint"){i=String(r);const e=BigInt(2)**BigInt(32);if(r>e||r<-e){i=addNumericalSeparator(i)}i+="n"}else{i=n(r)}return`The value of "${e}" is out of range. It must be ${t}. Received ${i}`}),RangeError);E("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);E("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);E("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);E("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);E("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);E("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);E("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);E("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);E("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);E("ERR_STREAM_WRITE_AFTER_END","write after end",Error);E("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);e.exports={AbortError:AbortError,aggregateTwoErrors:hideStackFrames(aggregateTwoErrors),hideStackFrames:hideStackFrames,codes:c}},8523:function(e,t,r){"use strict";const i=r(2203);if(i&&process.env.READABLE_STREAM==="disable"){const t=i.promises;e.exports._uint8ArrayToBuffer=i._uint8ArrayToBuffer;e.exports._isUint8Array=i._isUint8Array;e.exports.isDisturbed=i.isDisturbed;e.exports.isErrored=i.isErrored;e.exports.isReadable=i.isReadable;e.exports.Readable=i.Readable;e.exports.Writable=i.Writable;e.exports.Duplex=i.Duplex;e.exports.Transform=i.Transform;e.exports.PassThrough=i.PassThrough;e.exports.addAbortSignal=i.addAbortSignal;e.exports.finished=i.finished;e.exports.destroy=i.destroy;e.exports.pipeline=i.pipeline;e.exports.compose=i.compose;Object.defineProperty(i,"promises",{configurable:true,enumerable:true,get(){return t}});e.exports.Stream=i.Stream}else{const t=r(535);const i=r(1680);const n=t.Readable.destroy;e.exports=t.Readable;e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer;e.exports._isUint8Array=t._isUint8Array;e.exports.isDisturbed=t.isDisturbed;e.exports.isErrored=t.isErrored;e.exports.isReadable=t.isReadable;e.exports.Readable=t.Readable;e.exports.Writable=t.Writable;e.exports.Duplex=t.Duplex;e.exports.Transform=t.Transform;e.exports.PassThrough=t.PassThrough;e.exports.addAbortSignal=t.addAbortSignal;e.exports.finished=t.finished;e.exports.destroy=t.destroy;e.exports.destroy=n;e.exports.pipeline=t.pipeline;e.exports.compose=t.compose;Object.defineProperty(t,"promises",{configurable:true,enumerable:true,get(){return i}});e.exports.Stream=t.Stream}e.exports["default"]=e.exports},2823:function(e){"use strict";class AggregateError extends Error{constructor(e){if(!Array.isArray(e)){throw new TypeError(`Expected input to be an Array, got ${typeof e}`)}let t="";for(let r=0;r<e.length;r++){t+=` ${e[r].stack}\n`}super(t);this.name="AggregateError";this.errors=e}}e.exports={AggregateError:AggregateError,ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error:Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number:Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise:Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String:String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol:Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean:Boolean,Uint8Array:Uint8Array}},8547:function(e,t,r){"use strict";const i=r(181);const{format:n,inspect:s}=r(4560);const{codes:{ERR_INVALID_ARG_TYPE:a}}=r(8484);const{kResistStopPropagation:o,AggregateError:l,SymbolDispose:u}=r(2823);const f=globalThis.AbortSignal||r(6335).AbortSignal;const c=globalThis.AbortController||r(6335).AbortController;const h=Object.getPrototypeOf((async function(){})).constructor;const d=globalThis.Blob||i.Blob;const p=typeof d!=="undefined"?function isBlob(e){return e instanceof d}:function isBlob(e){return false};const validateAbortSignal=(e,t)=>{if(e!==undefined&&(e===null||typeof e!=="object"||!("aborted"in e))){throw new a(t,"AbortSignal",e)}};const validateFunction=(e,t)=>{if(typeof e!=="function"){throw new a(t,"Function",e)}};e.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(e){let t=false;return function(...r){if(t){return}t=true;e.apply(this,r)}},createDeferredPromise:function(){let e;let t;const r=new Promise(((r,i)=>{e=r;t=i}));return{promise:r,resolve:e,reject:t}},promisify(e){return new Promise(((t,r)=>{e(((e,...i)=>{if(e){return r(e)}return t(...i)}))}))},debuglog(){return function(){}},format:n,inspect:s,types:{isAsyncFunction(e){return e instanceof h},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:p,deprecate(e,t){return e},addAbortListener:r(4434).addAbortListener||function addAbortListener(e,t){if(e===undefined){throw new a("signal","AbortSignal",e)}validateAbortSignal(e,"signal");validateFunction(t,"listener");let r;if(e.aborted){queueMicrotask((()=>t()))}else{e.addEventListener("abort",t,{__proto__:null,once:true,[o]:true});r=()=>{e.removeEventListener("abort",t)}}return{__proto__:null,[u](){var e;(e=r)===null||e===undefined?undefined:e()}}},AbortSignalAny:f.any||function AbortSignalAny(e){if(e.length===1){return e[0]}const t=new c;const abort=()=>t.abort();e.forEach((e=>{validateAbortSignal(e,"signals");e.addEventListener("abort",abort,{once:true})}));t.signal.addEventListener("abort",(()=>{e.forEach((e=>e.removeEventListener("abort",abort)))}),{once:true});return t.signal}};e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},4560:function(e){"use strict";e.exports={format(e,...t){return e.replace(/%([sdifj])/g,(function(...[e,r]){const i=t.shift();if(r==="f"){return i.toFixed(6)}else if(r==="j"){return JSON.stringify(i)}else if(r==="s"&&typeof i==="object"){const e=i.constructor!==Object?i.constructor.name:"";return`${e} {}`.trim()}else{return i.toString()}}))},inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"')){return`"${e}"`}else if(!e.includes("`")&&!e.includes("${")){return`\`${e}\``}}return`'${e}'`;case"number":if(isNaN(e)){return"NaN"}else if(Object.is(e,-0)){return String(e)}return e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}}}},535:function(e,t,r){"use strict";const{Buffer:i}=r(181);const{ObjectDefineProperty:n,ObjectKeys:s,ReflectApply:a}=r(2823);const{promisify:{custom:o}}=r(8547);const{streamReturningOperators:l,promiseReturningOperators:u}=r(774);const{codes:{ERR_ILLEGAL_CONSTRUCTOR:f}}=r(8484);const c=r(1255);const{setDefaultHighWaterMark:h,getDefaultHighWaterMark:d}=r(6650);const{pipeline:p}=r(4061);const{destroyer:y}=r(7201);const b=r(2543);const g={};const w=r(1680);const _=r(7202);const S=e.exports=r(6720).Stream;S.isDestroyed=_.isDestroyed;S.isDisturbed=_.isDisturbed;S.isErrored=_.isErrored;S.isReadable=_.isReadable;S.isWritable=_.isWritable;S.Readable=r(359);for(const x of s(l)){const k=l[x];function fn(...e){if(new.target){throw f()}return S.Readable.from(a(k,this,e))}n(fn,"name",{__proto__:null,value:k.name});n(fn,"length",{__proto__:null,value:k.length});n(S.Readable.prototype,x,{__proto__:null,value:fn,enumerable:false,configurable:true,writable:true})}for(const T of s(u)){const R=u[T];function fn(...e){if(new.target){throw f()}return a(R,this,e)}n(fn,"name",{__proto__:null,value:R.name});n(fn,"length",{__proto__:null,value:R.length});n(S.Readable.prototype,T,{__proto__:null,value:fn,enumerable:false,configurable:true,writable:true})}S.Writable=r(3131);S.Duplex=r(657);S.Transform=r(3303);S.PassThrough=r(3253);S.pipeline=p;const{addAbortSignal:v}=r(7580);S.addAbortSignal=v;S.finished=b;S.destroy=y;S.compose=c;S.setDefaultHighWaterMark=h;S.getDefaultHighWaterMark=d;n(S,"promises",{__proto__:null,configurable:true,enumerable:true,get(){return w}});n(p,o,{__proto__:null,enumerable:true,get(){return w.pipeline}});n(b,o,{__proto__:null,enumerable:true,get(){return w.finished}});S.Stream=S;S._isUint8Array=function isUint8Array(e){return e instanceof Uint8Array};S._uint8ArrayToBuffer=function _uint8ArrayToBuffer(e){return i.from(e.buffer,e.byteOffset,e.byteLength)}},1680:function(e,t,r){"use strict";const{ArrayPrototypePop:i,Promise:n}=r(2823);const{isIterable:s,isNodeStream:a,isWebStream:o}=r(7202);const{pipelineImpl:l}=r(4061);const{finished:u}=r(2543);r(535);function pipeline(...e){return new n(((t,r)=>{let n;let u;const f=e[e.length-1];if(f&&typeof f==="object"&&!a(f)&&!s(f)&&!o(f)){const t=i(e);n=t.signal;u=t.end}l(e,((e,i)=>{if(e){r(e)}else{t(i)}}),{signal:n,end:u})}))}e.exports={finished:u,pipeline:pipeline}},8975:function(e,t,r){e.exports=readdirGlob;const i=r(9896);const{EventEmitter:n}=r(4434);const{Minimatch:s}=r(1388);const{resolve:a}=r(6928);function readdir(e,t){return new Promise(((r,n)=>{i.readdir(e,{withFileTypes:true},((e,i)=>{if(e){switch(e.code){case"ENOTDIR":if(t){n(e)}else{r([])}break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;case"ELOOP":default:n(e);break}}else{r(i)}}))}))}function stat(e,t){return new Promise(((r,n)=>{const s=t?i.stat:i.lstat;s(e,((i,n)=>{if(i){switch(i.code){case"ENOENT":if(t){r(stat(e,false))}else{r(null)}break;default:r(null);break}}else{r(n)}}))}))}async function*exploreWalkAsync(e,t,r,i,n,s){let a=await readdir(t+e,s);for(const s of a){let a=s.name;if(a===undefined){a=s;i=true}const o=e+"/"+a;const l=o.slice(1);const u=t+"/"+l;let f=null;if(i||r){f=await stat(u,r)}if(!f&&s.name!==undefined){f=s}if(f===null){f={isDirectory:()=>false}}if(f.isDirectory()){if(!n(l)){yield{relative:l,absolute:u,stats:f};yield*exploreWalkAsync(o,t,r,i,n,false)}}else{yield{relative:l,absolute:u,stats:f}}}}async function*explore(e,t,r,i){yield*exploreWalkAsync("",e,t,r,i,true)}function readOptions(e){return{pattern:e.pattern,dot:!!e.dot,noglobstar:!!e.noglobstar,matchBase:!!e.matchBase,nocase:!!e.nocase,ignore:e.ignore,skip:e.skip,follow:!!e.follow,stat:!!e.stat,nodir:!!e.nodir,mark:!!e.mark,silent:!!e.silent,absolute:!!e.absolute}}class ReaddirGlob extends n{constructor(e,t,r){super();if(typeof t==="function"){r=t;t=null}this.options=readOptions(t||{});this.matchers=[];if(this.options.pattern){const e=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=e.map((e=>new s(e,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase})))}this.ignoreMatchers=[];if(this.options.ignore){const e=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=e.map((e=>new s(e,{dot:true})))}this.skipMatchers=[];if(this.options.skip){const e=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=e.map((e=>new s(e,{dot:true})))}this.iterator=explore(a(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this));this.paused=false;this.inactive=false;this.aborted=false;if(r){this._matches=[];this.on("match",(e=>this._matches.push(this.options.absolute?e.absolute:e.relative)));this.on("error",(e=>r(e)));this.on("end",(()=>r(null,this._matches)))}setTimeout((()=>this._next()),0)}_shouldSkipDirectory(e){return this.skipMatchers.some((t=>t.match(e)))}_fileMatches(e,t){const r=e+(t?"/":"");return(this.matchers.length===0||this.matchers.some((e=>e.match(r))))&&!this.ignoreMatchers.some((e=>e.match(r)))&&(!this.options.nodir||!t)}_next(){if(!this.paused&&!this.aborted){this.iterator.next().then((e=>{if(!e.done){const t=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,t)){let r=e.value.relative;let i=e.value.absolute;if(this.options.mark&&t){r+="/";i+="/"}if(this.options.stat){this.emit("match",{relative:r,absolute:i,stat:e.value.stats})}else{this.emit("match",{relative:r,absolute:i})}}this._next(this.iterator)}else{this.emit("end")}})).catch((e=>{this.abort();this.emit("error",e);if(!e.code&&!this.options.silent){console.error(e)}}))}else{this.inactive=true}}abort(){this.aborted=true}pause(){this.paused=true}resume(){this.paused=false;if(this.inactive){this.inactive=false;this._next()}}}function readdirGlob(e,t,r){return new ReaddirGlob(e,t,r)}readdirGlob.ReaddirGlob=ReaddirGlob},6912:function(e,t,r){var i=r(181);var n=i.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow){e.exports=i}else{copyProps(i,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return n(e,t,r)}copyProps(n,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return n(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var i=n(e);if(t!==undefined){if(typeof r==="string"){i.fill(t,r)}else{i.fill(t)}}else{i.fill(0)}return i};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i.SlowBuffer(e)}},3476:function(e,t,r){
59
64
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
60
- var n=r(181);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return i(e,t,r)}SafeBuffer.prototype=Object.create(i.prototype);copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=i(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},8927:function(e,t,r){"use strict";var n=r(6912).Buffer;var i=n.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}t.I=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=n.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var n=t.length-1;if(n<r)return 0;var i=utf8CheckByte(t[n]);if(i>=0){if(i>0)e.lastNeed=i-1;return i}if(--n<r||i===-2)return 0;i=utf8CheckByte(t[n]);if(i>=0){if(i>0)e.lastNeed=i-2;return i}if(--n<r||i===-2)return 0;i=utf8CheckByte(t[n]);if(i>=0){if(i>0){if(i===2)i=0;else e.lastNeed=i-3}return i}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",t,n)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},3252:function(e,t,r){"use strict";var n=r(3476).Buffer;var i=n.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}t.I=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=n.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var n=t.length-1;if(n<r)return 0;var i=utf8CheckByte(t[n]);if(i>=0){if(i>0)e.lastNeed=i-1;return i}if(--n<r||i===-2)return 0;i=utf8CheckByte(t[n]);if(i>=0){if(i>0)e.lastNeed=i-2;return i}if(--n<r||i===-2)return 0;i=utf8CheckByte(t[n]);if(i>=0){if(i>0){if(i===2)i=0;else e.lastNeed=i-3}return i}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",t,n)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},5763:function(e,t,r){var n=r(9023);var i=r(739);var a=r(6940);var s=r(1643).Writable;var o=r(1643).PassThrough;var noop=function(){};var overflow=function(e){e&=511;return e&&512-e};var emptyStream=function(e,t){var r=new Source(e,t);r.end();return r};var mixinPax=function(e,t){if(t.path)e.name=t.path;if(t.linkpath)e.linkname=t.linkpath;if(t.size)e.size=parseInt(t.size,10);e.pax=t;return e};var Source=function(e,t){this._parent=e;this.offset=t;o.call(this,{autoDestroy:false})};n.inherits(Source,o);Source.prototype.destroy=function(e){this._parent.destroy(e)};var Extract=function(e){if(!(this instanceof Extract))return new Extract(e);s.call(this,e);e=e||{};this._offset=0;this._buffer=i();this._missing=0;this._partial=false;this._onparse=noop;this._header=null;this._stream=null;this._overflow=null;this._cb=null;this._locked=false;this._destroyed=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;var t=this;var r=t._buffer;var oncontinue=function(){t._continue()};var onunlock=function(e){t._locked=false;if(e)return t.destroy(e);if(!t._stream)oncontinue()};var onstreamend=function(){t._stream=null;var e=overflow(t._header.size);if(e)t._parse(e,ondrain);else t._parse(512,onheader);if(!t._locked)oncontinue()};var ondrain=function(){t._buffer.consume(overflow(t._header.size));t._parse(512,onheader);oncontinue()};var onpaxglobalheader=function(){var e=t._header.size;t._paxGlobal=a.decodePax(r.slice(0,e));r.consume(e);onstreamend()};var onpaxheader=function(){var e=t._header.size;t._pax=a.decodePax(r.slice(0,e));if(t._paxGlobal)t._pax=Object.assign({},t._paxGlobal,t._pax);r.consume(e);onstreamend()};var ongnulongpath=function(){var n=t._header.size;this._gnuLongPath=a.decodeLongPath(r.slice(0,n),e.filenameEncoding);r.consume(n);onstreamend()};var ongnulonglinkpath=function(){var n=t._header.size;this._gnuLongLinkPath=a.decodeLongPath(r.slice(0,n),e.filenameEncoding);r.consume(n);onstreamend()};var onheader=function(){var n=t._offset;var i;try{i=t._header=a.decode(r.slice(0,512),e.filenameEncoding,e.allowUnknownFormat)}catch(e){t.emit("error",e)}r.consume(512);if(!i){t._parse(512,onheader);oncontinue();return}if(i.type==="gnu-long-path"){t._parse(i.size,ongnulongpath);oncontinue();return}if(i.type==="gnu-long-link-path"){t._parse(i.size,ongnulonglinkpath);oncontinue();return}if(i.type==="pax-global-header"){t._parse(i.size,onpaxglobalheader);oncontinue();return}if(i.type==="pax-header"){t._parse(i.size,onpaxheader);oncontinue();return}if(t._gnuLongPath){i.name=t._gnuLongPath;t._gnuLongPath=null}if(t._gnuLongLinkPath){i.linkname=t._gnuLongLinkPath;t._gnuLongLinkPath=null}if(t._pax){t._header=i=mixinPax(i,t._pax);t._pax=null}t._locked=true;if(!i.size||i.type==="directory"){t._parse(512,onheader);t.emit("entry",i,emptyStream(t,n),onunlock);return}t._stream=new Source(t,n);t.emit("entry",i,t._stream,onunlock);t._parse(i.size,onstreamend);oncontinue()};this._onheader=onheader;this._parse(512,onheader)};n.inherits(Extract,s);Extract.prototype.destroy=function(e){if(this._destroyed)return;this._destroyed=true;if(e)this.emit("error",e);this.emit("close");if(this._stream)this._stream.emit("close")};Extract.prototype._parse=function(e,t){if(this._destroyed)return;this._offset+=e;this._missing=e;if(t===this._onheader)this._partial=false;this._onparse=t};Extract.prototype._continue=function(){if(this._destroyed)return;var e=this._cb;this._cb=noop;if(this._overflow)this._write(this._overflow,undefined,e);else e()};Extract.prototype._write=function(e,t,r){if(this._destroyed)return;var n=this._stream;var i=this._buffer;var a=this._missing;if(e.length)this._partial=true;if(e.length<a){this._missing-=e.length;this._overflow=null;if(n)return n.write(e,r);i.append(e);return r()}this._cb=r;this._missing=0;var s=null;if(e.length>a){s=e.slice(a);e=e.slice(0,a)}if(n)n.end(e);else i.append(e);this._overflow=s;this._onparse()};Extract.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};e.exports=Extract},6940:function(e,t){var r=Buffer.alloc;var n="0000000000000000000";var i="7777777777777777777";var a="0".charCodeAt(0);var s=Buffer.from("ustar\0","binary");var o=Buffer.from("00","binary");var u=Buffer.from("ustar ","binary");var l=Buffer.from(" \0","binary");var c=parseInt("7777",8);var h=257;var p=263;var clamp=function(e,t,r){if(typeof e!=="number")return r;e=~~e;if(e>=t)return t;if(e>=0)return e;e+=t;if(e>=0)return e;return 0};var toType=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null};var toTypeflag=function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0};var indexOf=function(e,t,r,n){for(;r<n;r++){if(e[r]===t)return r}return n};var cksum=function(e){var t=8*32;for(var r=0;r<148;r++)t+=e[r];for(var n=156;n<512;n++)t+=e[n];return t};var encodeOct=function(e,t){e=e.toString(8);if(e.length>t)return i.slice(0,t)+" ";else return n.slice(0,t-e.length)+e+" "};function parse256(e){var t;if(e[0]===128)t=true;else if(e[0]===255)t=false;else return null;var r=[];for(var n=e.length-1;n>0;n--){var i=e[n];if(t)r.push(i);else r.push(255-i)}var a=0;var s=r.length;for(n=0;n<s;n++){a+=r[n]*Math.pow(256,n)}return t?a:-1*a}var decodeOct=function(e,t,r){e=e.slice(t,t+r);t=0;if(e[t]&128){return parse256(e)}else{while(t<e.length&&e[t]===32)t++;var n=clamp(indexOf(e,32,t,e.length),e.length,e.length);while(t<n&&e[t]===0)t++;if(n===t)return 0;return parseInt(e.slice(t,n).toString(),8)}};var decodeStr=function(e,t,r,n){return e.slice(t,indexOf(e,0,t,t+r)).toString(n)};var addLength=function(e){var t=Buffer.byteLength(e);var r=Math.floor(Math.log(t)/Math.log(10))+1;if(t+r>=Math.pow(10,r))r++;return t+r+e};t.decodeLongPath=function(e,t){return decodeStr(e,0,e.length,t)};t.encodePax=function(e){var t="";if(e.name)t+=addLength(" path="+e.name+"\n");if(e.linkname)t+=addLength(" linkpath="+e.linkname+"\n");var r=e.pax;if(r){for(var n in r){t+=addLength(" "+n+"="+r[n]+"\n")}}return Buffer.from(t)};t.decodePax=function(e){var t={};while(e.length){var r=0;while(r<e.length&&e[r]!==32)r++;var n=parseInt(e.slice(0,r).toString(),10);if(!n)return t;var i=e.slice(r+1,n-1).toString();var a=i.indexOf("=");if(a===-1)return t;t[i.slice(0,a)]=i.slice(a+1);e=e.slice(n)}return t};t.encode=function(e){var t=r(512);var n=e.name;var i="";if(e.typeflag===5&&n[n.length-1]!=="/")n+="/";if(Buffer.byteLength(n)!==n.length)return null;while(Buffer.byteLength(n)>100){var u=n.indexOf("/");if(u===-1)return null;i+=i?"/"+n.slice(0,u):n.slice(0,u);n=n.slice(u+1)}if(Buffer.byteLength(n)>100||Buffer.byteLength(i)>155)return null;if(e.linkname&&Buffer.byteLength(e.linkname)>100)return null;t.write(n);t.write(encodeOct(e.mode&c,6),100);t.write(encodeOct(e.uid,6),108);t.write(encodeOct(e.gid,6),116);t.write(encodeOct(e.size,11),124);t.write(encodeOct(e.mtime.getTime()/1e3|0,11),136);t[156]=a+toTypeflag(e.type);if(e.linkname)t.write(e.linkname,157);s.copy(t,h);o.copy(t,p);if(e.uname)t.write(e.uname,265);if(e.gname)t.write(e.gname,297);t.write(encodeOct(e.devmajor||0,6),329);t.write(encodeOct(e.devminor||0,6),337);if(i)t.write(i,345);t.write(encodeOct(cksum(t),6),148);return t};t.decode=function(e,t,r){var n=e[156]===0?0:e[156]-a;var i=decodeStr(e,0,100,t);var o=decodeOct(e,100,8);var c=decodeOct(e,108,8);var d=decodeOct(e,116,8);var y=decodeOct(e,124,12);var g=decodeOct(e,136,12);var v=toType(n);var b=e[157]===0?null:decodeStr(e,157,100,t);var _=decodeStr(e,265,32);var w=decodeStr(e,297,32);var S=decodeOct(e,329,8);var E=decodeOct(e,337,8);var k=cksum(e);if(k===8*32)return null;if(k!==decodeOct(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(s.compare(e,h,h+6)===0){if(e[345])i=decodeStr(e,345,155,t)+"/"+i}else if(u.compare(e,h,h+6)===0&&l.compare(e,p,p+2)===0){}else{if(!r){throw new Error("Invalid tar header: unknown format.")}}if(n===0&&i&&i[i.length-1]==="/")n=5;return{name:i,mode:o,uid:c,gid:d,size:y,mtime:new Date(1e3*g),type:v,linkname:b,uname:_,gname:w,devmajor:S,devminor:E}}},2454:function(e,t,r){t.extract=r(5763);t.pack=r(3709)},3709:function(e,t,r){var n=r(9033);var i=r(5859);var a=r(4070);var s=Buffer.alloc;var o=r(1643).Readable;var u=r(1643).Writable;var l=r(3193).StringDecoder;var c=r(6940);var h=parseInt("755",8);var p=parseInt("644",8);var d=s(1024);var noop=function(){};var overflow=function(e,t){t&=511;if(t)e.push(d.slice(0,512-t))};function modeToType(e){switch(e&n.S_IFMT){case n.S_IFBLK:return"block-device";case n.S_IFCHR:return"character-device";case n.S_IFDIR:return"directory";case n.S_IFIFO:return"fifo";case n.S_IFLNK:return"symlink"}return"file"}var Sink=function(e){u.call(this);this.written=0;this._to=e;this._destroyed=false};a(Sink,u);Sink.prototype._write=function(e,t,r){this.written+=e.length;if(this._to.push(e))return r();this._to._drain=r};Sink.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var LinkSink=function(){u.call(this);this.linkname="";this._decoder=new l("utf-8");this._destroyed=false};a(LinkSink,u);LinkSink.prototype._write=function(e,t,r){this.linkname+=this._decoder.write(e);r()};LinkSink.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var Void=function(){u.call(this);this._destroyed=false};a(Void,u);Void.prototype._write=function(e,t,r){r(new Error("No body allowed for this entry"))};Void.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var Pack=function(e){if(!(this instanceof Pack))return new Pack(e);o.call(this,e);this._drain=noop;this._finalized=false;this._finalizing=false;this._destroyed=false;this._stream=null};a(Pack,o);Pack.prototype.entry=function(e,t,r){if(this._stream)throw new Error("already piping an entry");if(this._finalized||this._destroyed)return;if(typeof t==="function"){r=t;t=null}if(!r)r=noop;var n=this;if(!e.size||e.type==="symlink")e.size=0;if(!e.type)e.type=modeToType(e.mode);if(!e.mode)e.mode=e.type==="directory"?h:p;if(!e.uid)e.uid=0;if(!e.gid)e.gid=0;if(!e.mtime)e.mtime=new Date;if(typeof t==="string")t=Buffer.from(t);if(Buffer.isBuffer(t)){e.size=t.length;this._encode(e);var a=this.push(t);overflow(n,e.size);if(a)process.nextTick(r);else this._drain=r;return new Void}if(e.type==="symlink"&&!e.linkname){var s=new LinkSink;i(s,(function(t){if(t){n.destroy();return r(t)}e.linkname=s.linkname;n._encode(e);r()}));return s}this._encode(e);if(e.type!=="file"&&e.type!=="contiguous-file"){process.nextTick(r);return new Void}var o=new Sink(this);this._stream=o;i(o,(function(t){n._stream=null;if(t){n.destroy();return r(t)}if(o.written!==e.size){n.destroy();return r(new Error("size mismatch"))}overflow(n,e.size);if(n._finalizing)n.finalize();r()}));return o};Pack.prototype.finalize=function(){if(this._stream){this._finalizing=true;return}if(this._finalized)return;this._finalized=true;this.push(d);this.push(null)};Pack.prototype.destroy=function(e){if(this._destroyed)return;this._destroyed=true;if(e)this.emit("error",e);this.emit("close");if(this._stream&&this._stream.destroy)this._stream.destroy()};Pack.prototype._encode=function(e){if(!e.pax){var t=c.encode(e);if(t){this.push(t);return}}this._encodePax(e)};Pack.prototype._encodePax=function(e){var t=c.encodePax({name:e.name,linkname:e.linkname,pax:e.pax});var r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(c.encode(r));this.push(t);overflow(this,t.length);r.size=e.size;r.type=e.type;this.push(c.encode(r))};Pack.prototype._read=function(e){var t=this._drain;this._drain=noop;t()};e.exports=Pack},9987:function(e,t,r){e.exports=r(9023).deprecate},8092:function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var n=e.apply(this,t);var i=t[t.length-1];if(typeof n==="function"&&n!==i){Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n}}},3974:function(e,t,r){
65
+ var i=r(181);var n=i.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow){e.exports=i}else{copyProps(i,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return n(e,t,r)}SafeBuffer.prototype=Object.create(n.prototype);copyProps(n,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return n(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var i=n(e);if(t!==undefined){if(typeof r==="string"){i.fill(t,r)}else{i.fill(t)}}else{i.fill(0)}return i};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i.SlowBuffer(e)}},9129:function(e,t,r){const{EventEmitter:i}=r(4434);const n=new Error("Stream was destroyed");const s=new Error("Premature close");const a=r(5e3);const o=r(2302);const l=typeof queueMicrotask==="undefined"?e=>global.process.nextTick(e):queueMicrotask;const u=(1<<29)-1;const f=1;const c=2;const h=4;const d=8;const p=u^f;const y=u^c;const b=1<<4;const g=2<<4;const w=4<<4;const _=8<<4;const S=16<<4;const v=32<<4;const x=64<<4;const k=128<<4;const T=256<<4;const R=512<<4;const A=1024<<4;const O=2048<<4;const L=4096<<4;const P=8192<<4;const C=S|v;const M=b|L;const I=w|b;const D=T|_;const N=S|P;const B=u^b;const F=u^w;const j=u^(w|L);const W=u^L;const z=u^S;const U=u^(_|R);const G=u^x;const $=u^C;const H=u^O;const q=u^g;const V=u^P;const Z=u^N;const Y=1<<18;const K=2<<18;const Q=4<<18;const X=8<<18;const J=16<<18;const ee=32<<18;const te=64<<18;const re=128<<18;const ie=256<<18;const ne=512<<18;const se=1024<<18;const ae=u^(Y|ie);const oe=u^Q;const le=u^(Y|ne);const ue=u^J;const fe=u^X;const ce=u^re;const he=u^K;const de=u^se;const pe=b|Y;const ye=u^pe;const be=A|ee;const me=h|d|c;const ge=me|f;const we=me|be;const _e=oe&F;const Se=re|O;const ve=Se&ye;const Ee=ge|ve;const xe=ge|x|A;const ke=ge|A|_;const Te=ge|x|_;const Re=ge|T|_|R;const Ae=ge|b|x|A|L|P;const Oe=me|x|A;const Le=g|ge|O|w;const Pe=O|f;const Ce=ge|ne|ee;const Me=X|J;const Ie=X|Y;const De=X|J|ge|Y;const Ne=ge|Y|X|se;const Be=Q|Y;const Fe=Y|ie;const je=ge|ne|Ie|ee;const We=J|me|ne|ee;const ze=K|ge|re|Q;const Ue=ne|ee|me;const Ge=Symbol.asyncIterator||Symbol("asyncIterator");class WritableState{constructor(e,{highWaterMark:t=16384,map:r=null,mapWritable:i,byteLength:n,byteLengthWritable:s}={}){this.stream=e;this.queue=new a;this.highWaterMark=t;this.buffered=0;this.error=null;this.pipeline=null;this.drains=null;this.byteLength=s||n||defaultByteLength;this.map=i||r;this.afterWrite=afterWrite.bind(this);this.afterUpdateNextTick=updateWriteNT.bind(this)}get ended(){return(this.stream._duplexState&ee)!==0}push(e){if((this.stream._duplexState&Ue)!==0)return false;if(this.map!==null)e=this.map(e);this.buffered+=this.byteLength(e);this.queue.push(e);if(this.buffered<this.highWaterMark){this.stream._duplexState|=X;return true}this.stream._duplexState|=Me;return false}shift(){const e=this.queue.shift();this.buffered-=this.byteLength(e);if(this.buffered===0)this.stream._duplexState&=fe;return e}end(e){if(typeof e==="function")this.stream.once("finish",e);else if(e!==undefined&&e!==null)this.push(e);this.stream._duplexState=(this.stream._duplexState|ne)&oe}autoBatch(e,t){const r=[];const i=this.stream;r.push(e);while((i._duplexState&Ne)===Ie){r.push(i._writableState.shift())}if((i._duplexState&ge)!==0)return t(null);i._writev(r,t)}update(){const e=this.stream;e._duplexState|=K;do{while((e._duplexState&Ne)===X){const t=this.shift();e._duplexState|=Fe;e._write(t,this.afterWrite)}if((e._duplexState&Be)===0)this.updateNonPrimary()}while(this.continueUpdate()===true);e._duplexState&=he}updateNonPrimary(){const e=this.stream;if((e._duplexState&je)===ne){e._duplexState=e._duplexState|Y;e._final(afterFinal.bind(this));return}if((e._duplexState&me)===h){if((e._duplexState&Se)===0){e._duplexState|=pe;e._destroy(afterDestroy.bind(this))}return}if((e._duplexState&Ee)===f){e._duplexState=(e._duplexState|pe)&p;e._open(afterOpen.bind(this))}}continueUpdate(){if((this.stream._duplexState&re)===0)return false;this.stream._duplexState&=ce;return true}updateCallback(){if((this.stream._duplexState&ze)===Q)this.update();else this.updateNextTick()}updateNextTick(){if((this.stream._duplexState&re)!==0)return;this.stream._duplexState|=re;if((this.stream._duplexState&K)===0)l(this.afterUpdateNextTick)}}class ReadableState{constructor(e,{highWaterMark:t=16384,map:r=null,mapReadable:i,byteLength:n,byteLengthReadable:s}={}){this.stream=e;this.queue=new a;this.highWaterMark=t===0?1:t;this.buffered=0;this.readAhead=t>0;this.error=null;this.pipeline=null;this.byteLength=s||n||defaultByteLength;this.map=i||r;this.pipeTo=null;this.afterRead=afterRead.bind(this);this.afterUpdateNextTick=updateReadNT.bind(this)}get ended(){return(this.stream._duplexState&A)!==0}pipe(e,t){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof t!=="function")t=null;this.stream._duplexState|=v;this.pipeTo=e;this.pipeline=new Pipeline(this.stream,e,t);if(t)this.stream.on("error",noop);if(isStreamx(e)){e._writableState.pipeline=this.pipeline;if(t)e.on("error",noop);e.on("finish",this.pipeline.finished.bind(this.pipeline))}else{const t=this.pipeline.done.bind(this.pipeline,e);const r=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",t);e.on("close",r);e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",afterDrain.bind(this));this.stream.emit("piping",e);e.emit("pipe",this.stream)}push(e){const t=this.stream;if(e===null){this.highWaterMark=0;t._duplexState=(t._duplexState|x)&j;return false}if(this.map!==null){e=this.map(e);if(e===null){t._duplexState&=W;return this.buffered<this.highWaterMark}}this.buffered+=this.byteLength(e);this.queue.push(e);t._duplexState=(t._duplexState|_)&W;return this.buffered<this.highWaterMark}shift(){const e=this.queue.shift();this.buffered-=this.byteLength(e);if(this.buffered===0)this.stream._duplexState&=U;return e}unshift(e){const t=[this.map!==null?this.map(e):e];while(this.buffered>0)t.push(this.shift());for(let e=0;e<t.length-1;e++){const r=t[e];this.buffered+=this.byteLength(r);this.queue.push(r)}this.push(t[t.length-1])}read(){const e=this.stream;if((e._duplexState&ke)===_){const t=this.shift();if(this.pipeTo!==null&&this.pipeTo.write(t)===false)e._duplexState&=$;if((e._duplexState&k)!==0)e.emit("data",t);return t}if(this.readAhead===false){e._duplexState|=P;this.updateNextTick()}return null}drain(){const e=this.stream;while((e._duplexState&ke)===_&&(e._duplexState&C)!==0){const t=this.shift();if(this.pipeTo!==null&&this.pipeTo.write(t)===false)e._duplexState&=$;if((e._duplexState&k)!==0)e.emit("data",t)}}update(){const e=this.stream;e._duplexState|=g;do{this.drain();while(this.buffered<this.highWaterMark&&(e._duplexState&Ae)===P){e._duplexState|=M;e._read(this.afterRead);this.drain()}if((e._duplexState&Re)===D){e._duplexState|=R;e.emit("readable")}if((e._duplexState&I)===0)this.updateNonPrimary()}while(this.continueUpdate()===true);e._duplexState&=q}updateNonPrimary(){const e=this.stream;if((e._duplexState&Te)===x){e._duplexState=(e._duplexState|A)&G;e.emit("end");if((e._duplexState&we)===be)e._duplexState|=h;if(this.pipeTo!==null)this.pipeTo.end()}if((e._duplexState&me)===h){if((e._duplexState&Se)===0){e._duplexState|=pe;e._destroy(afterDestroy.bind(this))}return}if((e._duplexState&Ee)===f){e._duplexState=(e._duplexState|pe)&p;e._open(afterOpen.bind(this))}}continueUpdate(){if((this.stream._duplexState&O)===0)return false;this.stream._duplexState&=H;return true}updateCallback(){if((this.stream._duplexState&Le)===w)this.update();else this.updateNextTick()}updateNextTickIfOpen(){if((this.stream._duplexState&Pe)!==0)return;this.stream._duplexState|=O;if((this.stream._duplexState&g)===0)l(this.afterUpdateNextTick)}updateNextTick(){if((this.stream._duplexState&O)!==0)return;this.stream._duplexState|=O;if((this.stream._duplexState&g)===0)l(this.afterUpdateNextTick)}}class TransformState{constructor(e){this.data=null;this.afterTransform=afterTransform.bind(e);this.afterFinal=null}}class Pipeline{constructor(e,t,r){this.from=e;this.to=t;this.afterPipe=r;this.error=null;this.pipeToFinished=false}finished(){this.pipeToFinished=true}done(e,t){if(t)this.error=t;if(e===this.to){this.to=null;if(this.from!==null){if((this.from._duplexState&A)===0||!this.pipeToFinished){this.from.destroy(this.error||new Error("Writable stream closed prematurely"))}return}}if(e===this.from){this.from=null;if(this.to!==null){if((e._duplexState&A)===0){this.to.destroy(this.error||new Error("Readable stream closed before ending"))}return}}if(this.afterPipe!==null)this.afterPipe(this.error);this.to=this.from=this.afterPipe=null}}function afterDrain(){this.stream._duplexState|=v;this.updateCallback()}function afterFinal(e){const t=this.stream;if(e)t.destroy(e);if((t._duplexState&me)===0){t._duplexState|=ee;t.emit("finish")}if((t._duplexState&we)===be){t._duplexState|=h}t._duplexState&=le;if((t._duplexState&K)===0)this.update();else this.updateNextTick()}function afterDestroy(e){const t=this.stream;if(!e&&this.error!==n)e=this.error;if(e)t.emit("error",e);t._duplexState|=d;t.emit("close");const r=t._readableState;const i=t._writableState;if(r!==null&&r.pipeline!==null)r.pipeline.done(t,e);if(i!==null){while(i.drains!==null&&i.drains.length>0)i.drains.shift().resolve(false);if(i.pipeline!==null)i.pipeline.done(t,e)}}function afterWrite(e){const t=this.stream;if(e)t.destroy(e);t._duplexState&=ae;if(this.drains!==null)tickDrains(this.drains);if((t._duplexState&De)===J){t._duplexState&=ue;if((t._duplexState&te)===te){t.emit("drain")}}this.updateCallback()}function afterRead(e){if(e)this.stream.destroy(e);this.stream._duplexState&=B;if(this.readAhead===false&&(this.stream._duplexState&S)===0)this.stream._duplexState&=V;this.updateCallback()}function updateReadNT(){if((this.stream._duplexState&g)===0){this.stream._duplexState&=H;this.update()}}function updateWriteNT(){if((this.stream._duplexState&K)===0){this.stream._duplexState&=ce;this.update()}}function tickDrains(e){for(let t=0;t<e.length;t++){if(--e[t].writes===0){e.shift().resolve(true);t--}}}function afterOpen(e){const t=this.stream;if(e)t.destroy(e);if((t._duplexState&h)===0){if((t._duplexState&xe)===0)t._duplexState|=w;if((t._duplexState&Ce)===0)t._duplexState|=Q;t.emit("open")}t._duplexState&=ye;if(t._writableState!==null){t._writableState.updateCallback()}if(t._readableState!==null){t._readableState.updateCallback()}}function afterTransform(e,t){if(t!==undefined&&t!==null)this.push(t);this._writableState.afterWrite(e)}function newListener(e){if(this._readableState!==null){if(e==="data"){this._duplexState|=k|N;this._readableState.updateNextTick()}if(e==="readable"){this._duplexState|=T;this._readableState.updateNextTick()}}if(this._writableState!==null){if(e==="drain"){this._duplexState|=te;this._writableState.updateNextTick()}}}class Stream extends i{constructor(e){super();this._duplexState=0;this._readableState=null;this._writableState=null;if(e){if(e.open)this._open=e.open;if(e.destroy)this._destroy=e.destroy;if(e.predestroy)this._predestroy=e.predestroy;if(e.signal){e.signal.addEventListener("abort",abort.bind(this))}}this.on("newListener",newListener)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?true:undefined}get writable(){return this._writableState!==null?true:undefined}get destroyed(){return(this._duplexState&d)!==0}get destroying(){return(this._duplexState&me)!==0}destroy(e){if((this._duplexState&me)===0){if(!e)e=n;this._duplexState=(this._duplexState|h)&_e;if(this._readableState!==null){this._readableState.highWaterMark=0;this._readableState.error=e}if(this._writableState!==null){this._writableState.highWaterMark=0;this._writableState.error=e}this._duplexState|=c;this._predestroy();this._duplexState&=y;if(this._readableState!==null)this._readableState.updateNextTick();if(this._writableState!==null)this._writableState.updateNextTick()}}}class Readable extends Stream{constructor(e){super(e);this._duplexState|=f|ee|P;this._readableState=new ReadableState(this,e);if(e){if(this._readableState.readAhead===false)this._duplexState&=V;if(e.read)this._read=e.read;if(e.eagerOpen)this._readableState.updateNextTick();if(e.encoding)this.setEncoding(e.encoding)}}setEncoding(e){const t=new o(e);const r=this._readableState.map||echo;this._readableState.map=mapOrSkip;return this;function mapOrSkip(e){const i=t.push(e);return i===""&&(e.byteLength!==0||t.remaining>0)?null:r(i)}}_read(e){e(null)}pipe(e,t){this._readableState.updateNextTick();this._readableState.pipe(e,t);return e}read(){this._readableState.updateNextTick();return this._readableState.read()}push(e){this._readableState.updateNextTickIfOpen();return this._readableState.push(e)}unshift(e){this._readableState.updateNextTickIfOpen();return this._readableState.unshift(e)}resume(){this._duplexState|=N;this._readableState.updateNextTick();return this}pause(){this._duplexState&=this._readableState.readAhead===false?Z:z;return this}static _fromAsyncIterator(e,t){let r;const i=new Readable({...t,read(t){e.next().then(push).then(t.bind(null,null)).catch(t)},predestroy(){r=e.return()},destroy(e){if(!r)return e(null);r.then(e.bind(null,null)).catch(e)}});return i;function push(e){if(e.done)i.push(null);else i.push(e.value)}}static from(e,t){if(isReadStreamx(e))return e;if(e[Ge])return this._fromAsyncIterator(e[Ge](),t);if(!Array.isArray(e))e=e===undefined?[]:[e];let r=0;return new Readable({...t,read(t){this.push(r===e.length?null:e[r++]);t(null)}})}static isBackpressured(e){return(e._duplexState&Oe)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&S)===0}[Ge](){const e=this;let t=null;let r=null;let i=null;this.on("error",(e=>{t=e}));this.on("readable",onreadable);this.on("close",onclose);return{[Ge](){return this},next(){return new Promise((function(t,n){r=t;i=n;const s=e.read();if(s!==null)ondata(s);else if((e._duplexState&d)!==0)ondata(null)}))},return(){return destroy(null)},throw(e){return destroy(e)}};function onreadable(){if(r!==null)ondata(e.read())}function onclose(){if(r!==null)ondata(null)}function ondata(s){if(i===null)return;if(t)i(t);else if(s===null&&(e._duplexState&A)===0)i(n);else r({value:s,done:s===null});i=r=null}function destroy(t){e.destroy(t);return new Promise(((r,i)=>{if(e._duplexState&d)return r({value:undefined,done:true});e.once("close",(function(){if(t)i(t);else r({value:undefined,done:true})}))}))}}}class Writable extends Stream{constructor(e){super(e);this._duplexState|=f|A;this._writableState=new WritableState(this,e);if(e){if(e.writev)this._writev=e.writev;if(e.write)this._write=e.write;if(e.final)this._final=e.final;if(e.eagerOpen)this._writableState.updateNextTick()}}cork(){this._duplexState|=se}uncork(){this._duplexState&=de;this._writableState.updateNextTick()}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&We)!==0}static drained(e){if(e.destroyed)return Promise.resolve(false);const t=e._writableState;const r=isWritev(e)?Math.min(1,t.queue.length):t.queue.length;const i=r+(e._duplexState&ie?1:0);if(i===0)return Promise.resolve(true);if(t.drains===null)t.drains=[];return new Promise((e=>{t.drains.push({writes:i,resolve:e})}))}write(e){this._writableState.updateNextTick();return this._writableState.push(e)}end(e){this._writableState.updateNextTick();this._writableState.end(e);return this}}class Duplex extends Readable{constructor(e){super(e);this._duplexState=f|this._duplexState&P;this._writableState=new WritableState(this,e);if(e){if(e.writev)this._writev=e.writev;if(e.write)this._write=e.write;if(e.final)this._final=e.final}}cork(){this._duplexState|=se}uncork(){this._duplexState&=de;this._writableState.updateNextTick()}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}write(e){this._writableState.updateNextTick();return this._writableState.push(e)}end(e){this._writableState.updateNextTick();this._writableState.end(e);return this}}class Transform extends Duplex{constructor(e){super(e);this._transformState=new TransformState(this);if(e){if(e.transform)this._transform=e.transform;if(e.flush)this._flush=e.flush}}_write(e,t){if(this._readableState.buffered>=this._readableState.highWaterMark){this._transformState.data=e}else{this._transform(e,this._transformState.afterTransform)}}_read(e){if(this._transformState.data!==null){const t=this._transformState.data;this._transformState.data=null;e(null);this._transform(t,this._transformState.afterTransform)}else{e(null)}}destroy(e){super.destroy(e);if(this._transformState.data!==null){this._transformState.data=null;this._transformState.afterTransform()}}_transform(e,t){t(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e;this._flush(transformAfterFlush.bind(this))}}class PassThrough extends Transform{}function transformAfterFlush(e,t){const r=this._transformState.afterFinal;if(e)return r(e);if(t!==null&&t!==undefined)this.push(t);this.push(null);r(null)}function pipelinePromise(...e){return new Promise(((t,r)=>pipeline(...e,(e=>{if(e)return r(e);t()}))))}function pipeline(e,...t){const r=Array.isArray(e)?[...e,...t]:[e,...t];const i=r.length&&typeof r[r.length-1]==="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let n=r[0];let a=null;let o=null;for(let e=1;e<r.length;e++){a=r[e];if(isStreamx(n)){n.pipe(a,onerror)}else{errorHandle(n,true,e>1,onerror);n.pipe(a)}n=a}if(i){let e=false;const t=isStreamx(a)||!!(a._writableState&&a._writableState.autoDestroy);a.on("error",(e=>{if(o===null)o=e}));a.on("finish",(()=>{e=true;if(!t)i(o)}));if(t){a.on("close",(()=>i(o||(e?null:s))))}}return a;function errorHandle(e,t,r,i){e.on("error",i);e.on("close",onclose);function onclose(){if(t&&e._readableState&&!e._readableState.ended)return i(s);if(r&&e._writableState&&!e._writableState.ended)return i(s)}}function onerror(e){if(!e||o)return;o=e;for(const t of r){t.destroy(e)}}}function echo(e){return e}function isStream(e){return!!e._readableState||!!e._writableState}function isStreamx(e){return typeof e._duplexState==="number"&&isStream(e)}function isEnded(e){return!!e._readableState&&e._readableState.ended}function isFinished(e){return!!e._writableState&&e._writableState.ended}function getStreamError(e,t={}){const r=e._readableState&&e._readableState.error||e._writableState&&e._writableState.error;return!t.all&&r===n?null:r}function isReadStreamx(e){return isStreamx(e)&&e.readable}function isDisturbed(e){return(e._duplexState&f)!==f||(e._duplexState&Se)!==0}function isTypedArray(e){return typeof e==="object"&&e!==null&&typeof e.byteLength==="number"}function defaultByteLength(e){return isTypedArray(e)?e.byteLength:1024}function noop(){}function abort(){this.destroy(new Error("Stream aborted."))}function isWritev(e){return e._writev!==Writable.prototype._writev&&e._writev!==Duplex.prototype._writev}e.exports={pipeline:pipeline,pipelinePromise:pipelinePromise,isStream:isStream,isStreamx:isStreamx,isEnded:isEnded,isFinished:isFinished,isDisturbed:isDisturbed,getStreamError:getStreamError,Stream:Stream,Writable:Writable,Readable:Readable,Duplex:Duplex,Transform:Transform,PassThrough:PassThrough}},8927:function(e,t,r){"use strict";var i=r(6912).Buffer;var n=i.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}t.I=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=i.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var i=t.length-1;if(i<r)return 0;var n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-1;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-2;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0){if(n===2)n=0;else e.lastNeed=n-3}return n}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,i);return e.toString("utf8",t,i)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},3252:function(e,t,r){"use strict";var i=r(3476).Buffer;var n=i.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}t.StringDecoder=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=i.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var i=t.length-1;if(i<r)return 0;var n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-1;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-2;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0){if(n===2)n=0;else e.lastNeed=n-3}return n}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,i);return e.toString("utf8",t,i)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},4504:function(e,t,r){const i={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{e.exports=r(9896).constants||i}catch{e.exports=i}},5908:function(e,t,r){const{Writable:i,Readable:n,getStreamError:s}=r(9129);const a=r(5e3);const o=r(2312);const l=r(6263);const u=o.alloc(0);class BufferList{constructor(){this.buffered=0;this.shifted=0;this.queue=new a;this._offset=0}push(e){this.buffered+=e.byteLength;this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return u;let t=this._next(e);if(e===t.byteLength)return t;const r=[t];while((e-=t.byteLength)>0){t=this._next(e);r.push(t)}return o.concat(r)}_next(e){const t=this.queue.peek();const r=t.byteLength-this._offset;if(e>=r){const e=this._offset?t.subarray(this._offset,t.byteLength):t;this.queue.shift();this._offset=0;this.buffered-=r;this.shifted+=r;return e}this.buffered-=e;this.shifted+=e;return t.subarray(this._offset,this._offset+=e)}}class Source extends n{constructor(e,t,r){super();this.header=t;this.offset=r;this._parent=e}_read(e){if(this.header.size===0){this.push(null)}if(this._parent._stream===this){this._parent._update()}e(null)}_predestroy(){this._parent.destroy(s(this))}_detach(){if(this._parent._stream===this){this._parent._stream=null;this._parent._missing=overflow(this.header.size);this._parent._update()}}_destroy(e){this._detach();e(null)}}class Extract extends i{constructor(e){super(e);if(!e)e={};this._buffer=new BufferList;this._offset=0;this._header=null;this._stream=null;this._missing=0;this._longHeader=false;this._callback=noop;this._locked=false;this._finished=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;this._filenameEncoding=e.filenameEncoding||"utf-8";this._allowUnknownFormat=!!e.allowUnknownFormat;this._unlockBound=this._unlock.bind(this)}_unlock(e){this._locked=false;if(e){this.destroy(e);this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return false;this._offset=this._buffer.shifted;try{this._header=l.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){this._continueWrite(e);return false}if(!this._header)return true;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":this._longHeader=true;this._missing=this._header.size;return true}this._locked=true;this._applyLongHeaders();if(this._header.size===0||this._header.type==="directory"){this.emit("entry",this._header,this._createStream(),this._unlockBound);return true}this._stream=this._createStream();this._missing=this._header.size;this.emit("entry",this._header,this._stream,this._unlockBound);return true}_applyLongHeaders(){if(this._gnuLongPath){this._header.name=this._gnuLongPath;this._gnuLongPath=null}if(this._gnuLongLinkPath){this._header.linkname=this._gnuLongLinkPath;this._gnuLongLinkPath=null}if(this._pax){if(this._pax.path)this._header.name=this._pax.path;if(this._pax.linkpath)this._header.linkname=this._pax.linkpath;if(this._pax.size)this._header.size=parseInt(this._pax.size,10);this._header.pax=this._pax;this._pax=null}}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=l.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=l.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=l.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?l.decodePax(e):Object.assign({},this._paxGlobal,l.decodePax(e));break}}_consumeLongHeader(){this._longHeader=false;this._missing=overflow(this._header.size);const e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(e){this._continueWrite(e);return false}return true}_consumeStream(){const e=this._buffer.shiftFirst(this._missing);if(e===null)return false;this._missing-=e.byteLength;const t=this._stream.push(e);if(this._missing===0){this._stream.push(null);if(t)this._stream._detach();return t&&this._locked===false}return t}_createStream(){return new Source(this,this._header,this._offset)}_update(){while(this._buffer.buffered>0&&!this.destroying){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===false)return;continue}if(this._longHeader===true){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===false)return false;continue}const e=this._buffer.shiftFirst(this._missing);if(e!==null)this._missing-=e.byteLength;continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===false)return}this._continueWrite(null)}_continueWrite(e){const t=this._callback;this._callback=noop;t(e)}_write(e,t){this._callback=t;this._buffer.push(e);this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0;e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){if(this._stream)this._stream.destroy(s(this));e(null)}[Symbol.asyncIterator](){let e=null;let t=null;let r=null;let i=null;let n=null;const s=this;this.on("entry",onentry);this.on("error",(t=>{e=t}));this.on("close",onclose);return{[Symbol.asyncIterator](){return this},next(){return new Promise(onnext)},return(){return destroy(null)},throw(e){return destroy(e)}};function consumeCallback(e){if(!n)return;const t=n;n=null;t(e)}function onnext(n,a){if(e){return a(e)}if(i){n({value:i,done:false});i=null;return}t=n;r=a;consumeCallback(null);if(s._finished&&t){t({value:undefined,done:true});t=r=null}}function onentry(e,s,a){n=a;s.on("error",noop);if(t){t({value:s,done:false});t=r=null}else{i=s}}function onclose(){consumeCallback(e);if(!t)return;if(e)r(e);else t({value:undefined,done:true});t=r=null}function destroy(e){s.destroy(e);consumeCallback(e);return new Promise(((t,r)=>{if(s.destroyed)return t({value:undefined,done:true});s.once("close",(function(){if(e)r(e);else t({value:undefined,done:true})}))}))}}}e.exports=function extract(e){return new Extract(e)};function noop(){}function overflow(e){e&=511;return e&&512-e}},6263:function(e,t,r){const i=r(2312);const n="0000000000000000000";const s="7777777777777777777";const a="0".charCodeAt(0);const o=i.from([117,115,116,97,114,0]);const l=i.from([a,a]);const u=i.from([117,115,116,97,114,32]);const f=i.from([32,0]);const c=4095;const h=257;const d=263;t.decodeLongPath=function decodeLongPath(e,t){return decodeStr(e,0,e.length,t)};t.encodePax=function encodePax(e){let t="";if(e.name)t+=addLength(" path="+e.name+"\n");if(e.linkname)t+=addLength(" linkpath="+e.linkname+"\n");const r=e.pax;if(r){for(const e in r){t+=addLength(" "+e+"="+r[e]+"\n")}}return i.from(t)};t.decodePax=function decodePax(e){const t={};while(e.length){let r=0;while(r<e.length&&e[r]!==32)r++;const n=parseInt(i.toString(e.subarray(0,r)),10);if(!n)return t;const s=i.toString(e.subarray(r+1,n-1));const a=s.indexOf("=");if(a===-1)return t;t[s.slice(0,a)]=s.slice(a+1);e=e.subarray(n)}return t};t.encode=function encode(e){const t=i.alloc(512);let r=e.name;let n="";if(e.typeflag===5&&r[r.length-1]!=="/")r+="/";if(i.byteLength(r)!==r.length)return null;while(i.byteLength(r)>100){const e=r.indexOf("/");if(e===-1)return null;n+=n?"/"+r.slice(0,e):r.slice(0,e);r=r.slice(e+1)}if(i.byteLength(r)>100||i.byteLength(n)>155)return null;if(e.linkname&&i.byteLength(e.linkname)>100)return null;i.write(t,r);i.write(t,encodeOct(e.mode&c,6),100);i.write(t,encodeOct(e.uid,6),108);i.write(t,encodeOct(e.gid,6),116);encodeSize(e.size,t,124);i.write(t,encodeOct(e.mtime.getTime()/1e3|0,11),136);t[156]=a+toTypeflag(e.type);if(e.linkname)i.write(t,e.linkname,157);i.copy(o,t,h);i.copy(l,t,d);if(e.uname)i.write(t,e.uname,265);if(e.gname)i.write(t,e.gname,297);i.write(t,encodeOct(e.devmajor||0,6),329);i.write(t,encodeOct(e.devminor||0,6),337);if(n)i.write(t,n,345);i.write(t,encodeOct(cksum(t),6),148);return t};t.decode=function decode(e,t,r){let i=e[156]===0?0:e[156]-a;let n=decodeStr(e,0,100,t);const s=decodeOct(e,100,8);const o=decodeOct(e,108,8);const l=decodeOct(e,116,8);const u=decodeOct(e,124,12);const f=decodeOct(e,136,12);const c=toType(i);const h=e[157]===0?null:decodeStr(e,157,100,t);const d=decodeStr(e,265,32);const p=decodeStr(e,297,32);const y=decodeOct(e,329,8);const b=decodeOct(e,337,8);const g=cksum(e);if(g===8*32)return null;if(g!==decodeOct(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(isUSTAR(e)){if(e[345])n=decodeStr(e,345,155,t)+"/"+n}else if(isGNU(e)){}else{if(!r){throw new Error("Invalid tar header: unknown format.")}}if(i===0&&n&&n[n.length-1]==="/")i=5;return{name:n,mode:s,uid:o,gid:l,size:u,mtime:new Date(1e3*f),type:c,linkname:h,uname:d,gname:p,devmajor:y,devminor:b,pax:null}};function isUSTAR(e){return i.equals(o,e.subarray(h,h+6))}function isGNU(e){return i.equals(u,e.subarray(h,h+6))&&i.equals(f,e.subarray(d,d+2))}function clamp(e,t,r){if(typeof e!=="number")return r;e=~~e;if(e>=t)return t;if(e>=0)return e;e+=t;if(e>=0)return e;return 0}function toType(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function toTypeflag(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function indexOf(e,t,r,i){for(;r<i;r++){if(e[r]===t)return r}return i}function cksum(e){let t=8*32;for(let r=0;r<148;r++)t+=e[r];for(let r=156;r<512;r++)t+=e[r];return t}function encodeOct(e,t){e=e.toString(8);if(e.length>t)return s.slice(0,t)+" ";return n.slice(0,t-e.length)+e+" "}function encodeSizeBin(e,t,r){t[r]=128;for(let i=11;i>0;i--){t[r+i]=e&255;e=Math.floor(e/256)}}function encodeSize(e,t,r){if(e.toString(8).length>11){encodeSizeBin(e,t,r)}else{i.write(t,encodeOct(e,11),r)}}function parse256(e){let t;if(e[0]===128)t=true;else if(e[0]===255)t=false;else return null;const r=[];let i;for(i=e.length-1;i>0;i--){const n=e[i];if(t)r.push(n);else r.push(255-n)}let n=0;const s=r.length;for(i=0;i<s;i++){n+=r[i]*Math.pow(256,i)}return t?n:-1*n}function decodeOct(e,t,r){e=e.subarray(t,t+r);t=0;if(e[t]&128){return parse256(e)}else{while(t<e.length&&e[t]===32)t++;const r=clamp(indexOf(e,32,t,e.length),e.length,e.length);while(t<r&&e[t]===0)t++;if(r===t)return 0;return parseInt(i.toString(e.subarray(t,r)),8)}}function decodeStr(e,t,r,n){return i.toString(e.subarray(t,indexOf(e,0,t,t+r)),n)}function addLength(e){const t=i.byteLength(e);let r=Math.floor(Math.log(t)/Math.log(10))+1;if(t+r>=Math.pow(10,r))r++;return t+r+e}},2753:function(e,t,r){t.extract=r(5908);t.pack=r(4016)},4016:function(e,t,r){const{Readable:i,Writable:n,getStreamError:s}=r(9129);const a=r(2312);const o=r(4504);const l=r(6263);const u=493;const f=420;const c=a.alloc(1024);class Sink extends n{constructor(e,t,r){super({mapWritable:mapWritable,eagerOpen:true});this.written=0;this.header=t;this._callback=r;this._linkname=null;this._isLinkname=t.type==="symlink"&&!t.linkname;this._isVoid=t.type!=="file"&&t.type!=="contiguous-file";this._finished=false;this._pack=e;this._openCallback=null;if(this._pack._stream===null)this._pack._stream=this;else this._pack._pending.push(this)}_open(e){this._openCallback=e;if(this._pack._stream===this)this._continueOpen()}_continuePack(e){if(this._callback===null)return;const t=this._callback;this._callback=null;t(e)}_continueOpen(){if(this._pack._stream===null)this._pack._stream=this;const e=this._openCallback;this._openCallback=null;if(e===null)return;if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this;if(!this._isLinkname){this._pack._encode(this.header)}if(this._isVoid){this._finish();this._continuePack(null)}e(null)}_write(e,t){if(this._isLinkname){this._linkname=this._linkname?a.concat([this._linkname,e]):e;return t(null)}if(this._isVoid){if(e.byteLength>0){return t(new Error("No body allowed for this entry"))}return t()}this.written+=e.byteLength;if(this._pack.push(e))return t();this._pack._drain=t}_finish(){if(this._finished)return;this._finished=true;if(this._isLinkname){this.header.linkname=this._linkname?a.toString(this._linkname,"utf-8"):"";this._pack._encode(this.header)}overflow(this._pack,this.header.size);this._pack._done(this)}_final(e){if(this.written!==this.header.size){return e(new Error("Size mismatch"))}this._finish();e(null)}_getError(){return s(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this);this._continuePack(this._finished?null:this._getError());e()}}class Pack extends i{constructor(e){super(e);this._drain=noop;this._finalized=false;this._finalizing=false;this._pending=[];this._stream=null}entry(e,t,r){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");if(typeof t==="function"){r=t;t=null}if(!r)r=noop;if(!e.size||e.type==="symlink")e.size=0;if(!e.type)e.type=modeToType(e.mode);if(!e.mode)e.mode=e.type==="directory"?u:f;if(!e.uid)e.uid=0;if(!e.gid)e.gid=0;if(!e.mtime)e.mtime=new Date;if(typeof t==="string")t=a.from(t);const i=new Sink(this,e,r);if(a.isBuffer(t)){e.size=t.byteLength;i.write(t);i.end();return i}if(i._isVoid){return i}return i}finalize(){if(this._stream||this._pending.length>0){this._finalizing=true;return}if(this._finalized)return;this._finalized=true;this.push(c);this.push(null)}_done(e){if(e!==this._stream)return;this._stream=null;if(this._finalizing)this.finalize();if(this._pending.length)this._pending.shift()._continueOpen()}_encode(e){if(!e.pax){const t=l.encode(e);if(t){this.push(t);return}}this._encodePax(e)}_encodePax(e){const t=l.encodePax({name:e.name,linkname:e.linkname,pax:e.pax});const r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(l.encode(r));this.push(t);overflow(this,t.byteLength);r.size=e.size;r.type=e.type;this.push(l.encode(r))}_doDrain(){const e=this._drain;this._drain=noop;e()}_predestroy(){const e=s(this);if(this._stream)this._stream.destroy(e);while(this._pending.length){const t=this._pending.shift();t.destroy(e);t._continueOpen()}this._doDrain()}_read(e){this._doDrain();e()}}e.exports=function pack(e){return new Pack(e)};function modeToType(e){switch(e&o.S_IFMT){case o.S_IFBLK:return"block-device";case o.S_IFCHR:return"character-device";case o.S_IFDIR:return"directory";case o.S_IFIFO:return"fifo";case o.S_IFLNK:return"symlink"}return"file"}function noop(){}function overflow(e,t){t&=511;if(t)e.push(c.subarray(0,512-t))}function mapWritable(e){return a.isBuffer(e)?e:a.from(e)}},2302:function(e,t,r){const i=r(8520);const n=r(2590);e.exports=class TextDecoder{constructor(e="utf8"){this.encoding=normalizeEncoding(e);switch(this.encoding){case"utf8":this.decoder=new n;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new i(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){if(typeof e==="string")return e;return this.decoder.decode(e)}write(e){return this.push(e)}end(e){let t="";if(e)t=this.push(e);t+=this.decoder.flush();return t}};function normalizeEncoding(e){e=e.toLowerCase();switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:throw new Error("Unknown encoding: "+e)}}},8520:function(e,t,r){const i=r(2312);e.exports=class PassThroughDecoder{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return i.toString(e,this.encoding)}flush(){return""}}},2590:function(e,t,r){const i=r(2312);e.exports=class UTF8Decoder{constructor(){this.codePoint=0;this.bytesSeen=0;this.bytesNeeded=0;this.lowerBoundary=128;this.upperBoundary=191}get remaining(){return this.bytesSeen}decode(e){if(this.bytesNeeded===0){let t=true;for(let r=Math.max(0,e.byteLength-4),i=e.byteLength;r<i&&t;r++){t=e[r]<=127}if(t)return i.toString(e,"utf8")}let t="";for(let r=0,i=e.byteLength;r<i;r++){const i=e[r];if(this.bytesNeeded===0){if(i<=127){t+=String.fromCharCode(i)}else{this.bytesSeen=1;if(i>=194&&i<=223){this.bytesNeeded=2;this.codePoint=i&31}else if(i>=224&&i<=239){if(i===224)this.lowerBoundary=160;else if(i===237)this.upperBoundary=159;this.bytesNeeded=3;this.codePoint=i&15}else if(i>=240&&i<=244){if(i===240)this.lowerBoundary=144;if(i===244)this.upperBoundary=143;this.bytesNeeded=4;this.codePoint=i&7}else{t+="�"}}continue}if(i<this.lowerBoundary||i>this.upperBoundary){this.codePoint=0;this.bytesNeeded=0;this.bytesSeen=0;this.lowerBoundary=128;this.upperBoundary=191;t+="�";continue}this.lowerBoundary=128;this.upperBoundary=191;this.codePoint=this.codePoint<<6|i&63;this.bytesSeen++;if(this.bytesSeen!==this.bytesNeeded)continue;t+=String.fromCodePoint(this.codePoint);this.codePoint=0;this.bytesNeeded=0;this.bytesSeen=0}return t}flush(){const e=this.bytesNeeded>0?"�":"";this.codePoint=0;this.bytesNeeded=0;this.bytesSeen=0;this.lowerBoundary=128;this.upperBoundary=191;return e}}},9987:function(e,t,r){e.exports=r(9023).deprecate},8599:function(e,t,r){
61
66
  /**
62
67
  * ZipStream
63
68
  *
@@ -65,4 +70,4 @@ var n=r(181);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}i
65
70
  * @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
66
71
  * @copyright (c) 2014 Chris Talkington, contributors.
67
72
  */
68
- var n=r(9023).inherits;var i=r(7288).ZipArchiveOutputStream;var a=r(7288).ZipArchiveEntry;var s=r(7819);var o=e.exports=function(e){if(!(this instanceof o)){return new o(e)}e=this.options=e||{};e.zlib=e.zlib||{};i.call(this,e);if(typeof e.level==="number"&&e.level>=0){e.zlib.level=e.level;delete e.level}if(!e.forceZip64&&typeof e.zlib.level==="number"&&e.zlib.level===0){e.store=true}e.namePrependSlash=e.namePrependSlash||false;if(e.comment&&e.comment.length>0){this.setComment(e.comment)}};n(o,i);o.prototype._normalizeFileData=function(e){e=s.defaults(e,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var t=e.type==="directory";var r=e.type==="symlink";if(e.name){e.name=s.sanitizePath(e.name);if(!r&&e.name.slice(-1)==="/"){t=true;e.type="directory"}else if(t){e.name+="/"}}if(t||r){e.store=true}e.date=s.dateify(e.date);return e};o.prototype.entry=function(e,t,r){if(typeof r!=="function"){r=this._emitErrorCallback.bind(this)}t=this._normalizeFileData(t);if(t.type!=="file"&&t.type!=="directory"&&t.type!=="symlink"){r(new Error(t.type+" entries not currently supported"));return}if(typeof t.name!=="string"||t.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(t.type==="symlink"&&typeof t.linkname!=="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var n=new a(t.name);n.setTime(t.date,this.options.forceLocalTime);if(t.namePrependSlash){n.setName(t.name,true)}if(t.store){n.setMethod(0)}if(t.comment.length>0){n.setComment(t.comment)}if(t.type==="symlink"&&typeof t.mode!=="number"){t.mode=40960}if(typeof t.mode==="number"){if(t.type==="symlink"){t.mode|=40960}n.setUnixMode(t.mode)}if(t.type==="symlink"&&typeof t.linkname==="string"){e=Buffer.from(t.linkname)}return i.prototype.entry.call(this,n,e,r)};o.prototype.finalize=function(){this.finish()}},2613:function(e){"use strict";e.exports=require("assert")},181:function(e){"use strict";e.exports=require("buffer")},9140:function(e){"use strict";e.exports=require("constants")},4434:function(e){"use strict";e.exports=require("events")},9896:function(e){"use strict";e.exports=require("fs")},6928:function(e){"use strict";e.exports=require("path")},2203:function(e){"use strict";e.exports=require("stream")},3193:function(e){"use strict";e.exports=require("string_decoder")},9023:function(e){"use strict";e.exports=require("util")},3106:function(e){"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var a=true;try{e[r].call(i.exports,i,i.exports,__nccwpck_require__);a=false}finally{if(a)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(1538);module.exports=r})();
73
+ var i=r(9023).inherits;var n=r(3223).ZipArchiveOutputStream;var s=r(3223).ZipArchiveEntry;var a=r(4747);var o=e.exports=function(e){if(!(this instanceof o)){return new o(e)}e=this.options=e||{};e.zlib=e.zlib||{};n.call(this,e);if(typeof e.level==="number"&&e.level>=0){e.zlib.level=e.level;delete e.level}if(!e.forceZip64&&typeof e.zlib.level==="number"&&e.zlib.level===0){e.store=true}e.namePrependSlash=e.namePrependSlash||false;if(e.comment&&e.comment.length>0){this.setComment(e.comment)}};i(o,n);o.prototype._normalizeFileData=function(e){e=a.defaults(e,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var t=e.type==="directory";var r=e.type==="symlink";if(e.name){e.name=a.sanitizePath(e.name);if(!r&&e.name.slice(-1)==="/"){t=true;e.type="directory"}else if(t){e.name+="/"}}if(t||r){e.store=true}e.date=a.dateify(e.date);return e};o.prototype.entry=function(e,t,r){if(typeof r!=="function"){r=this._emitErrorCallback.bind(this)}t=this._normalizeFileData(t);if(t.type!=="file"&&t.type!=="directory"&&t.type!=="symlink"){r(new Error(t.type+" entries not currently supported"));return}if(typeof t.name!=="string"||t.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(t.type==="symlink"&&typeof t.linkname!=="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var i=new s(t.name);i.setTime(t.date,this.options.forceLocalTime);if(t.namePrependSlash){i.setName(t.name,true)}if(t.store){i.setMethod(0)}if(t.comment.length>0){i.setComment(t.comment)}if(t.type==="symlink"&&typeof t.mode!=="number"){t.mode=40960}if(typeof t.mode==="number"){if(t.type==="symlink"){t.mode|=40960}i.setUnixMode(t.mode)}if(t.type==="symlink"&&typeof t.linkname==="string"){e=Buffer.from(t.linkname)}return n.prototype.entry.call(this,i,e,r)};o.prototype.finalize=function(){this.finish()}},2613:function(e){"use strict";e.exports=require("assert")},181:function(e){"use strict";e.exports=require("buffer")},9140:function(e){"use strict";e.exports=require("constants")},4434:function(e){"use strict";e.exports=require("events")},9896:function(e){"use strict";e.exports=require("fs")},8474:function(e){"use strict";e.exports=require("node:events")},3024:function(e){"use strict";e.exports=require("node:fs")},1455:function(e){"use strict";e.exports=require("node:fs/promises")},6760:function(e){"use strict";e.exports=require("node:path")},7075:function(e){"use strict";e.exports=require("node:stream")},6193:function(e){"use strict";e.exports=require("node:string_decoder")},3136:function(e){"use strict";e.exports=require("node:url")},6928:function(e){"use strict";e.exports=require("path")},2203:function(e){"use strict";e.exports=require("stream")},9023:function(e){"use strict";e.exports=require("util")},3106:function(e){"use strict";e.exports=require("zlib")},9873:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Glob=void 0;const i=r(3791);const n=r(3136);const s=r(9133);const a=r(8001);const o=r(9889);const l=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Glob{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");this.withFileTypes=!!t.withFileTypes;this.signal=t.signal;this.follow=!!t.follow;this.dot=!!t.dot;this.dotRelative=!!t.dotRelative;this.nodir=!!t.nodir;this.mark=!!t.mark;if(!t.cwd){this.cwd=""}else if(t.cwd instanceof URL||t.cwd.startsWith("file://")){t.cwd=(0,n.fileURLToPath)(t.cwd)}this.cwd=t.cwd||"";this.root=t.root;this.magicalBraces=!!t.magicalBraces;this.nobrace=!!t.nobrace;this.noext=!!t.noext;this.realpath=!!t.realpath;this.absolute=t.absolute;this.includeChildMatches=t.includeChildMatches!==false;this.noglobstar=!!t.noglobstar;this.matchBase=!!t.matchBase;this.maxDepth=typeof t.maxDepth==="number"?t.maxDepth:Infinity;this.stat=!!t.stat;this.ignore=t.ignore;if(this.withFileTypes&&this.absolute!==undefined){throw new Error("cannot set absolute and withFileTypes:true")}if(typeof e==="string"){e=[e]}this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){e=e.map((e=>e.replace(/\\/g,"/")))}if(this.matchBase){if(t.noglobstar){throw new TypeError("base matching requires globstar")}e=e.map((e=>e.includes("/")?e:`./**/${e}`))}this.pattern=e;this.platform=t.platform||l;this.opts={...t,platform:this.platform};if(t.scurry){this.scurry=t.scurry;if(t.nocase!==undefined&&t.nocase!==t.scurry.nocase){throw new Error("nocase option contradicts provided scurry option")}}else{const e=t.platform==="win32"?s.PathScurryWin32:t.platform==="darwin"?s.PathScurryDarwin:t.platform?s.PathScurryPosix:s.PathScurry;this.scurry=new e(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;const r=this.platform==="darwin"||this.platform==="win32";const o={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:true,noext:this.noext,nonegate:true,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug};const u=this.pattern.map((e=>new i.Minimatch(e,o)));const[f,c]=u.reduce(((e,t)=>{e[0].push(...t.set);e[1].push(...t.globParts);return e}),[[],[]]);this.patterns=f.map(((e,t)=>{const r=c[t];if(!r)throw new Error("invalid pattern object");return new a.Pattern(e,r,0,this.platform)}))}async walk(){return[...await new o.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new o.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new o.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new o.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}t.Glob=Glob},241:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hasMagic=void 0;const i=r(3791);const hasMagic=(e,t={})=>{if(!Array.isArray(e)){e=[e]}for(const r of e){if(new i.Minimatch(r,t).hasMagic())return true}return false};t.hasMagic=hasMagic},6121:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Ignore=void 0;const i=r(3791);const n=r(8001);const s=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Ignore{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:r,noext:i,noglobstar:n,platform:a=s}){this.relative=[];this.absolute=[];this.relativeChildren=[];this.absoluteChildren=[];this.platform=a;this.mmopts={dot:true,nobrace:t,nocase:r,noext:i,noglobstar:n,optimizationLevel:2,platform:a,nocomment:true,nonegate:true};for(const t of e)this.add(t)}add(e){const t=new i.Minimatch(e,this.mmopts);for(let e=0;e<t.set.length;e++){const r=t.set[e];const s=t.globParts[e];if(!r||!s){throw new Error("invalid pattern object")}while(r[0]==="."&&s[0]==="."){r.shift();s.shift()}const a=new n.Pattern(r,s,0,this.platform);const o=new i.Minimatch(a.globString(),this.mmopts);const l=s[s.length-1]==="**";const u=a.isAbsolute();if(u)this.absolute.push(o);else this.relative.push(o);if(l){if(u)this.absoluteChildren.push(o);else this.relativeChildren.push(o)}}}ignored(e){const t=e.fullpath();const r=`${t}/`;const i=e.relative()||".";const n=`${i}/`;for(const e of this.relative){if(e.match(i)||e.match(n))return true}for(const e of this.absolute){if(e.match(t)||e.match(r))return true}return false}childrenIgnored(e){const t=e.fullpath()+"/";const r=(e.relative()||".")+"/";for(const e of this.relativeChildren){if(e.match(r))return true}for(const e of this.absoluteChildren){if(e.match(t))return true}return false}}t.Ignore=Ignore},7751:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.glob=t.sync=t.iterate=t.iterateSync=t.stream=t.streamSync=t.Ignore=t.hasMagic=t.Glob=t.unescape=t.escape=void 0;t.globStreamSync=globStreamSync;t.globStream=globStream;t.globSync=globSync;t.globIterateSync=globIterateSync;t.globIterate=globIterate;const i=r(3791);const n=r(9873);const s=r(241);var a=r(3791);Object.defineProperty(t,"escape",{enumerable:true,get:function(){return a.escape}});Object.defineProperty(t,"unescape",{enumerable:true,get:function(){return a.unescape}});var o=r(9873);Object.defineProperty(t,"Glob",{enumerable:true,get:function(){return o.Glob}});var l=r(241);Object.defineProperty(t,"hasMagic",{enumerable:true,get:function(){return l.hasMagic}});var u=r(6121);Object.defineProperty(t,"Ignore",{enumerable:true,get:function(){return u.Ignore}});function globStreamSync(e,t={}){return new n.Glob(e,t).streamSync()}function globStream(e,t={}){return new n.Glob(e,t).stream()}function globSync(e,t={}){return new n.Glob(e,t).walkSync()}async function glob_(e,t={}){return new n.Glob(e,t).walk()}function globIterateSync(e,t={}){return new n.Glob(e,t).iterateSync()}function globIterate(e,t={}){return new n.Glob(e,t).iterate()}t.streamSync=globStreamSync;t.stream=Object.assign(globStream,{sync:globStreamSync});t.iterateSync=globIterateSync;t.iterate=Object.assign(globIterate,{sync:globIterateSync});t.sync=Object.assign(globSync,{stream:globStreamSync,iterate:globIterateSync});t.glob=Object.assign(glob_,{glob:glob_,globSync:globSync,sync:t.sync,globStream:globStream,stream:t.stream,globStreamSync:globStreamSync,streamSync:t.streamSync,globIterate:globIterate,iterate:t.iterate,globIterateSync:globIterateSync,iterateSync:t.iterateSync,Glob:n.Glob,hasMagic:s.hasMagic,escape:i.escape,unescape:i.unescape});t.glob.glob=t.glob},8001:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const i=r(3791);const isPatternList=e=>e.length>=1;const isGlobList=e=>e.length>=1;class Pattern{#e;#t;#r;length;#i;#n;#s;#a;#o;#l;#u=true;constructor(e,t,r,i){if(!isPatternList(e)){throw new TypeError("empty pattern list")}if(!isGlobList(t)){throw new TypeError("empty glob list")}if(t.length!==e.length){throw new TypeError("mismatched pattern list and glob list lengths")}this.length=e.length;if(r<0||r>=this.length){throw new TypeError("index out of range")}this.#e=e;this.#t=t;this.#r=r;this.#i=i;if(this.#r===0){if(this.isUNC()){const[e,t,r,i,...n]=this.#e;const[s,a,o,l,...u]=this.#t;if(n[0]===""){n.shift();u.shift()}const f=[e,t,r,i,""].join("/");const c=[s,a,o,l,""].join("/");this.#e=[f,...n];this.#t=[c,...u];this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){const[e,...t]=this.#e;const[r,...i]=this.#t;if(t[0]===""){t.shift();i.shift()}const n=e+"/";const s=r+"/";this.#e=[n,...t];this.#t=[s,...i];this.length=this.#e.length}}}pattern(){return this.#e[this.#r]}isString(){return typeof this.#e[this.#r]==="string"}isGlobstar(){return this.#e[this.#r]===i.GLOBSTAR}isRegExp(){return this.#e[this.#r]instanceof RegExp}globString(){return this.#s=this.#s||(this.#r===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){if(this.#n!==undefined)return this.#n;if(!this.hasMore())return this.#n=null;this.#n=new Pattern(this.#e,this.#t,this.#r+1,this.#i);this.#n.#l=this.#l;this.#n.#o=this.#o;this.#n.#a=this.#a;return this.#n}isUNC(){const e=this.#e;return this.#o!==undefined?this.#o:this.#o=this.#i==="win32"&&this.#r===0&&e[0]===""&&e[1]===""&&typeof e[2]==="string"&&!!e[2]&&typeof e[3]==="string"&&!!e[3]}isDrive(){const e=this.#e;return this.#a!==undefined?this.#a:this.#a=this.#i==="win32"&&this.#r===0&&this.length>1&&typeof e[0]==="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){const e=this.#e;return this.#l!==undefined?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){const e=this.#e[0];return typeof e==="string"&&this.isAbsolute()&&this.#r===0?e:""}checkFollowGlobstar(){return!(this.#r===0||!this.isGlobstar()||!this.#u)}markFollowGlobstar(){if(this.#r===0||!this.isGlobstar()||!this.#u)return false;this.#u=false;return true}}t.Pattern=Pattern},6493:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Processor=t.SubWalks=t.MatchRecord=t.HasWalkedCache=void 0;const i=r(3791);class HasWalkedCache{store;constructor(e=new Map){this.store=e}copy(){return new HasWalkedCache(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){const r=e.fullpath();const i=this.store.get(r);if(i)i.add(t.globString());else this.store.set(r,new Set([t.globString()]))}}t.HasWalkedCache=HasWalkedCache;class MatchRecord{store=new Map;add(e,t,r){const i=(t?2:0)|(r?1:0);const n=this.store.get(e);this.store.set(e,n===undefined?i:i&n)}entries(){return[...this.store.entries()].map((([e,t])=>[e,!!(t&2),!!(t&1)]))}}t.MatchRecord=MatchRecord;class SubWalks{store=new Map;add(e,t){if(!e.canReaddir()){return}const r=this.store.get(e);if(r){if(!r.find((e=>e.globString()===t.globString()))){r.push(t)}}else this.store.set(e,[t])}get(e){const t=this.store.get(e);if(!t){throw new Error("attempting to walk unknown path")}return t}entries(){return this.keys().map((e=>[e,this.store.get(e)]))}keys(){return[...this.store.keys()].filter((e=>e.canReaddir()))}}t.SubWalks=SubWalks;class Processor{hasWalkedCache;matches=new MatchRecord;subwalks=new SubWalks;patterns;follow;dot;opts;constructor(e,t){this.opts=e;this.follow=!!e.follow;this.dot=!!e.dot;this.hasWalkedCache=t?t.copy():new HasWalkedCache}processPatterns(e,t){this.patterns=t;const r=t.map((t=>[e,t]));for(let[e,t]of r){this.hasWalkedCache.storeWalked(e,t);const r=t.root();const n=t.isAbsolute()&&this.opts.absolute!==false;if(r){e=e.resolve(r==="/"&&this.opts.root!==undefined?this.opts.root:r);const i=t.rest();if(!i){this.matches.add(e,true,false);continue}else{t=i}}if(e.isENOENT())continue;let s;let a;let o=false;while(typeof(s=t.pattern())==="string"&&(a=t.rest())){const r=e.resolve(s);e=r;t=a;o=true}s=t.pattern();a=t.rest();if(o){if(this.hasWalkedCache.hasWalked(e,t))continue;this.hasWalkedCache.storeWalked(e,t)}if(typeof s==="string"){const t=s===".."||s===""||s===".";this.matches.add(e.resolve(s),n,t);continue}else if(s===i.GLOBSTAR){if(!e.isSymbolicLink()||this.follow||t.checkFollowGlobstar()){this.subwalks.add(e,t)}const r=a?.pattern();const i=a?.rest();if(!a||(r===""||r===".")&&!i){this.matches.add(e,n,r===""||r===".")}else{if(r===".."){const t=e.parent||e;if(!i)this.matches.add(t,n,true);else if(!this.hasWalkedCache.hasWalked(t,i)){this.subwalks.add(t,i)}}}}else if(s instanceof RegExp){this.subwalks.add(e,t)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Processor(this.opts,this.hasWalkedCache)}filterEntries(e,t){const r=this.subwalks.get(e);const n=this.child();for(const e of t){for(const t of r){const r=t.isAbsolute();const s=t.pattern();const a=t.rest();if(s===i.GLOBSTAR){n.testGlobstar(e,t,a,r)}else if(s instanceof RegExp){n.testRegExp(e,s,a,r)}else{n.testString(e,s,a,r)}}}return n}testGlobstar(e,t,r,i){if(this.dot||!e.name.startsWith(".")){if(!t.hasMore()){this.matches.add(e,i,false)}if(e.canReaddir()){if(this.follow||!e.isSymbolicLink()){this.subwalks.add(e,t)}else if(e.isSymbolicLink()){if(r&&t.checkFollowGlobstar()){this.subwalks.add(e,r)}else if(t.markFollowGlobstar()){this.subwalks.add(e,t)}}}}if(r){const t=r.pattern();if(typeof t==="string"&&t!==".."&&t!==""&&t!=="."){this.testString(e,t,r.rest(),i)}else if(t===".."){const t=e.parent||e;this.subwalks.add(t,r)}else if(t instanceof RegExp){this.testRegExp(e,t,r.rest(),i)}}}testRegExp(e,t,r,i){if(!t.test(e.name))return;if(!r){this.matches.add(e,i,false)}else{this.subwalks.add(e,r)}}testString(e,t,r,i){if(!e.isNamed(t))return;if(!r){this.matches.add(e,i,false)}else{this.subwalks.add(e,r)}}}t.Processor=Processor},9889:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GlobStream=t.GlobWalker=t.GlobUtil=void 0;const i=r(9243);const n=r(6121);const s=r(6493);const makeIgnore=(e,t)=>typeof e==="string"?new n.Ignore([e],t):Array.isArray(e)?new n.Ignore(e,t):e;class GlobUtil{path;patterns;opts;seen=new Set;paused=false;aborted=false;#f=[];#c;#h;signal;maxDepth;includeChildMatches;constructor(e,t,r){this.patterns=e;this.path=t;this.opts=r;this.#h=!r.posix&&r.platform==="win32"?"\\":"/";this.includeChildMatches=r.includeChildMatches!==false;if(r.ignore||!this.includeChildMatches){this.#c=makeIgnore(r.ignore??[],r);if(!this.includeChildMatches&&typeof this.#c.add!=="function"){const e="cannot ignore child matches, ignore lacks add() method.";throw new Error(e)}}this.maxDepth=r.maxDepth||Infinity;if(r.signal){this.signal=r.signal;this.signal.addEventListener("abort",(()=>{this.#f.length=0}))}}#d(e){return this.seen.has(e)||!!this.#c?.ignored?.(e)}#p(e){return!!this.#c?.childrenIgnored?.(e)}pause(){this.paused=true}resume(){if(this.signal?.aborted)return;this.paused=false;let e=undefined;while(!this.paused&&(e=this.#f.shift())){e()}}onResume(e){if(this.signal?.aborted)return;if(!this.paused){e()}else{this.#f.push(e)}}async matchCheck(e,t){if(t&&this.opts.nodir)return undefined;let r;if(this.opts.realpath){r=e.realpathCached()||await e.realpath();if(!r)return undefined;e=r}const i=e.isUnknown()||this.opts.stat;const n=i?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){const e=await n.realpath();if(e&&(e.isUnknown()||this.opts.stat)){await e.lstat()}}return this.matchCheckTest(n,t)}matchCheckTest(e,t){return e&&(this.maxDepth===Infinity||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#d(e)?e:undefined}matchCheckSync(e,t){if(t&&this.opts.nodir)return undefined;let r;if(this.opts.realpath){r=e.realpathCached()||e.realpathSync();if(!r)return undefined;e=r}const i=e.isUnknown()||this.opts.stat;const n=i?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){const e=n.realpathSync();if(e&&(e?.isUnknown()||this.opts.stat)){e.lstatSync()}}return this.matchCheckTest(n,t)}matchFinish(e,t){if(this.#d(e))return;if(!this.includeChildMatches&&this.#c?.add){const t=`${e.relativePosix()}/**`;this.#c.add(t)}const r=this.opts.absolute===undefined?t:this.opts.absolute;this.seen.add(e);const i=this.opts.mark&&e.isDirectory()?this.#h:"";if(this.opts.withFileTypes){this.matchEmit(e)}else if(r){const t=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(t+i)}else{const t=this.opts.posix?e.relativePosix():e.relative();const r=this.opts.dotRelative&&!t.startsWith(".."+this.#h)?"."+this.#h:"";this.matchEmit(!t?"."+i:r+t+i)}}async match(e,t,r){const i=await this.matchCheck(e,r);if(i)this.matchFinish(i,t)}matchSync(e,t,r){const i=this.matchCheckSync(e,r);if(i)this.matchFinish(i,t)}walkCB(e,t,r){if(this.signal?.aborted)r();this.walkCB2(e,t,new s.Processor(this.opts),r)}walkCB2(e,t,r,i){if(this.#p(e))return i();if(this.signal?.aborted)i();if(this.paused){this.onResume((()=>this.walkCB2(e,t,r,i)));return}r.processPatterns(e,t);let n=1;const next=()=>{if(--n===0)i()};for(const[e,t,i]of r.matches.entries()){if(this.#d(e))continue;n++;this.match(e,t,i).then((()=>next()))}for(const e of r.subwalkTargets()){if(this.maxDepth!==Infinity&&e.depth()>=this.maxDepth){continue}n++;const t=e.readdirCached();if(e.calledReaddir())this.walkCB3(e,t,r,next);else{e.readdirCB(((t,i)=>this.walkCB3(e,i,r,next)),true)}}next()}walkCB3(e,t,r,i){r=r.filterEntries(e,t);let n=1;const next=()=>{if(--n===0)i()};for(const[e,t,i]of r.matches.entries()){if(this.#d(e))continue;n++;this.match(e,t,i).then((()=>next()))}for(const[e,t]of r.subwalks.entries()){n++;this.walkCB2(e,t,r.child(),next)}next()}walkCBSync(e,t,r){if(this.signal?.aborted)r();this.walkCB2Sync(e,t,new s.Processor(this.opts),r)}walkCB2Sync(e,t,r,i){if(this.#p(e))return i();if(this.signal?.aborted)i();if(this.paused){this.onResume((()=>this.walkCB2Sync(e,t,r,i)));return}r.processPatterns(e,t);let n=1;const next=()=>{if(--n===0)i()};for(const[e,t,i]of r.matches.entries()){if(this.#d(e))continue;this.matchSync(e,t,i)}for(const e of r.subwalkTargets()){if(this.maxDepth!==Infinity&&e.depth()>=this.maxDepth){continue}n++;const t=e.readdirSync();this.walkCB3Sync(e,t,r,next)}next()}walkCB3Sync(e,t,r,i){r=r.filterEntries(e,t);let n=1;const next=()=>{if(--n===0)i()};for(const[e,t,i]of r.matches.entries()){if(this.#d(e))continue;this.matchSync(e,t,i)}for(const[e,t]of r.subwalks.entries()){n++;this.walkCB2Sync(e,t,r.child(),next)}next()}}t.GlobUtil=GlobUtil;class GlobWalker extends GlobUtil{matches=new Set;constructor(e,t,r){super(e,t,r)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){await this.path.lstat()}await new Promise(((e,t)=>{this.walkCB(this.path,this.patterns,(()=>{if(this.signal?.aborted){t(this.signal.reason)}else{e(this.matches)}}))}));return this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason}));return this.matches}}t.GlobWalker=GlobWalker;class GlobStream extends GlobUtil{results;constructor(e,t,r){super(e,t,r);this.results=new i.Minipass({signal:this.signal,objectMode:true});this.results.on("drain",(()=>this.resume()));this.results.on("resume",(()=>this.resume()))}matchEmit(e){this.results.write(e);if(!this.results.flowing)this.pause()}stream(){const e=this.path;if(e.isUnknown()){e.lstat().then((()=>{this.walkCB(e,this.patterns,(()=>this.results.end()))}))}else{this.walkCB(e,this.patterns,(()=>this.results.end()))}return this.results}streamSync(){if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>this.results.end()));return this.results}}t.GlobStream=GlobStream},2013:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LRUCache=void 0;const r=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const i=new Set;const n=typeof process==="object"&&!!process?process:{};const emitWarning=(e,t,r,i)=>{typeof n.emitWarning==="function"?n.emitWarning(e,t,r,i):console.error(`[${r}] ${t}: ${e}`)};let s=globalThis.AbortController;let a=globalThis.AbortSignal;if(typeof s==="undefined"){a=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(e,t){this._onabort.push(t)}};s=class AbortController{constructor(){warnACPolyfill()}signal=new a;abort(e){if(this.signal.aborted)return;this.signal.reason=e;this.signal.aborted=true;for(const t of this.signal._onabort){t(e)}this.signal.onabort?.(e)}};let e=n.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!e)return;e=false;emitWarning("AbortController is not defined. If using lru-cache in "+"node 14, load an AbortController polyfill from the "+"`node-abort-controller` package. A minimal polyfill is "+"provided for use by LRUCache.fetch(), but it should not be "+"relied upon in other contexts (eg, passing it to other APIs that "+"use AbortController/AbortSignal might have undesirable effects). "+"You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill)}}const shouldWarn=e=>!i.has(e);const o=Symbol("type");const isPosInt=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e);const getUintArray=e=>!isPosInt(e)?null:e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(e){super(e);this.fill(0)}}class Stack{heap;length;static#y=false;static create(e){const t=getUintArray(e);if(!t)return[];Stack.#y=true;const r=new Stack(e,t);Stack.#y=false;return r}constructor(e,t){if(!Stack.#y){throw new TypeError("instantiate Stack using Stack.create(n)")}this.heap=new t(e);this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class LRUCache{#b;#m;#g;#w;#_;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#v;#E;#x;#k;#T;#R;#A;#O;#L;#P;#C;#M;#I;#D;#N;#B;#F;static unsafeExposeInternals(e){return{starts:e.#I,ttls:e.#D,sizes:e.#M,keyMap:e.#x,keyList:e.#k,valList:e.#T,next:e.#R,prev:e.#A,get head(){return e.#O},get tail(){return e.#L},free:e.#P,isBackgroundFetch:t=>e.#j(t),backgroundFetch:(t,r,i,n)=>e.#W(t,r,i,n),moveToTail:t=>e.#z(t),indexes:t=>e.#U(t),rindexes:t=>e.#G(t),isStale:t=>e.#$(t)}}get max(){return this.#b}get maxSize(){return this.#m}get calculatedSize(){return this.#E}get size(){return this.#v}get fetchMethod(){return this.#_}get memoMethod(){return this.#S}get dispose(){return this.#g}get disposeAfter(){return this.#w}constructor(e){const{max:t=0,ttl:r,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:a,updateAgeOnHas:o,allowStale:l,dispose:u,disposeAfter:f,noDisposeOnSet:c,noUpdateTTL:h,maxSize:d=0,maxEntrySize:p=0,sizeCalculation:y,fetchMethod:b,memoMethod:g,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:_,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:v,ignoreFetchAbort:x}=e;if(t!==0&&!isPosInt(t)){throw new TypeError("max option must be a nonnegative integer")}const k=t?getUintArray(t):Array;if(!k){throw new Error("invalid max value: "+t)}this.#b=t;this.#m=d;this.maxEntrySize=p||this.#m;this.sizeCalculation=y;if(this.sizeCalculation){if(!this.#m&&!this.maxEntrySize){throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize")}if(typeof this.sizeCalculation!=="function"){throw new TypeError("sizeCalculation set to non-function")}}if(g!==undefined&&typeof g!=="function"){throw new TypeError("memoMethod must be a function if defined")}this.#S=g;if(b!==undefined&&typeof b!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#_=b;this.#B=!!b;this.#x=new Map;this.#k=new Array(t).fill(undefined);this.#T=new Array(t).fill(undefined);this.#R=new k(t);this.#A=new k(t);this.#O=0;this.#L=0;this.#P=Stack.create(t);this.#v=0;this.#E=0;if(typeof u==="function"){this.#g=u}if(typeof f==="function"){this.#w=f;this.#C=[]}else{this.#w=undefined;this.#C=undefined}this.#N=!!this.#g;this.#F=!!this.#w;this.noDisposeOnSet=!!c;this.noUpdateTTL=!!h;this.noDeleteOnFetchRejection=!!w;this.allowStaleOnFetchRejection=!!S;this.allowStaleOnFetchAbort=!!v;this.ignoreFetchAbort=!!x;if(this.maxEntrySize!==0){if(this.#m!==0){if(!isPosInt(this.#m)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#H()}this.allowStale=!!l;this.noDeleteOnStaleGet=!!_;this.updateAgeOnGet=!!a;this.updateAgeOnHas=!!o;this.ttlResolution=isPosInt(n)||n===0?n:1;this.ttlAutopurge=!!s;this.ttl=r||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#q()}if(this.#b===0&&this.ttl===0&&this.#m===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#b&&!this.#m){const e="LRU_CACHE_UNBOUNDED";if(shouldWarn(e)){i.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(t,"UnboundedCacheWarning",e,LRUCache)}}}getRemainingTTL(e){return this.#x.has(e)?Infinity:0}#q(){const e=new ZeroArray(this.#b);const t=new ZeroArray(this.#b);this.#D=e;this.#I=t;this.#V=(i,n,s=r.now())=>{t[i]=n!==0?s:0;e[i]=n;if(n!==0&&this.ttlAutopurge){const e=setTimeout((()=>{if(this.#$(i)){this.#Z(this.#k[i],"expire")}}),n+1);if(e.unref){e.unref()}}};this.#Y=i=>{t[i]=e[i]!==0?r.now():0};this.#K=(r,n)=>{if(e[n]){const s=e[n];const a=t[n];if(!s||!a)return;r.ttl=s;r.start=a;r.now=i||getNow();const o=r.now-a;r.remainingTTL=s-o}};let i=0;const getNow=()=>{const e=r.now();if(this.ttlResolution>0){i=e;const t=setTimeout((()=>i=0),this.ttlResolution);if(t.unref){t.unref()}}return e};this.getRemainingTTL=r=>{const n=this.#x.get(r);if(n===undefined){return 0}const s=e[n];const a=t[n];if(!s||!a){return Infinity}const o=(i||getNow())-a;return s-o};this.#$=r=>{const n=t[r];const s=e[r];return!!s&&!!n&&(i||getNow())-n>s}}#Y=()=>{};#K=()=>{};#V=()=>{};#$=()=>false;#H(){const e=new ZeroArray(this.#b);this.#E=0;this.#M=e;this.#Q=t=>{this.#E-=e[t];e[t]=0};this.#X=(e,t,r,i)=>{if(this.#j(t)){return 0}if(!isPosInt(r)){if(i){if(typeof i!=="function"){throw new TypeError("sizeCalculation must be a function")}r=i(t,e);if(!isPosInt(r)){throw new TypeError("sizeCalculation return invalid (expect positive integer)")}}else{throw new TypeError("invalid size value (must be positive integer). "+"When maxSize or maxEntrySize is used, sizeCalculation "+"or size must be set.")}}return r};this.#J=(t,r,i)=>{e[t]=r;if(this.#m){const r=this.#m-e[t];while(this.#E>r){this.#ee(true)}}this.#E+=e[t];if(i){i.entrySize=r;i.totalCalculatedSize=this.#E}}}#Q=e=>{};#J=(e,t,r)=>{};#X=(e,t,r,i)=>{if(r||i){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#U({allowStale:e=this.allowStale}={}){if(this.#v){for(let t=this.#L;true;){if(!this.#te(t)){break}if(e||!this.#$(t)){yield t}if(t===this.#O){break}else{t=this.#A[t]}}}}*#G({allowStale:e=this.allowStale}={}){if(this.#v){for(let t=this.#O;true;){if(!this.#te(t)){break}if(e||!this.#$(t)){yield t}if(t===this.#L){break}else{t=this.#R[t]}}}}#te(e){return e!==undefined&&this.#x.get(this.#k[e])===e}*entries(){for(const e of this.#U()){if(this.#T[e]!==undefined&&this.#k[e]!==undefined&&!this.#j(this.#T[e])){yield[this.#k[e],this.#T[e]]}}}*rentries(){for(const e of this.#G()){if(this.#T[e]!==undefined&&this.#k[e]!==undefined&&!this.#j(this.#T[e])){yield[this.#k[e],this.#T[e]]}}}*keys(){for(const e of this.#U()){const t=this.#k[e];if(t!==undefined&&!this.#j(this.#T[e])){yield t}}}*rkeys(){for(const e of this.#G()){const t=this.#k[e];if(t!==undefined&&!this.#j(this.#T[e])){yield t}}}*values(){for(const e of this.#U()){const t=this.#T[e];if(t!==undefined&&!this.#j(this.#T[e])){yield this.#T[e]}}}*rvalues(){for(const e of this.#G()){const t=this.#T[e];if(t!==undefined&&!this.#j(this.#T[e])){yield this.#T[e]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(const r of this.#U()){const i=this.#T[r];const n=this.#j(i)?i.__staleWhileFetching:i;if(n===undefined)continue;if(e(n,this.#k[r],this)){return this.get(this.#k[r],t)}}}forEach(e,t=this){for(const r of this.#U()){const i=this.#T[r];const n=this.#j(i)?i.__staleWhileFetching:i;if(n===undefined)continue;e.call(t,n,this.#k[r],this)}}rforEach(e,t=this){for(const r of this.#G()){const i=this.#T[r];const n=this.#j(i)?i.__staleWhileFetching:i;if(n===undefined)continue;e.call(t,n,this.#k[r],this)}}purgeStale(){let e=false;for(const t of this.#G({allowStale:true})){if(this.#$(t)){this.#Z(this.#k[t],"expire");e=true}}return e}info(e){const t=this.#x.get(e);if(t===undefined)return undefined;const i=this.#T[t];const n=this.#j(i)?i.__staleWhileFetching:i;if(n===undefined)return undefined;const s={value:n};if(this.#D&&this.#I){const e=this.#D[t];const i=this.#I[t];if(e&&i){const t=e-(r.now()-i);s.ttl=t;s.start=Date.now()}}if(this.#M){s.size=this.#M[t]}return s}dump(){const e=[];for(const t of this.#U({allowStale:true})){const i=this.#k[t];const n=this.#T[t];const s=this.#j(n)?n.__staleWhileFetching:n;if(s===undefined||i===undefined)continue;const a={value:s};if(this.#D&&this.#I){a.ttl=this.#D[t];const e=r.now()-this.#I[t];a.start=Math.floor(Date.now()-e)}if(this.#M){a.size=this.#M[t]}e.unshift([i,a])}return e}load(e){this.clear();for(const[t,i]of e){if(i.start){const e=Date.now()-i.start;i.start=r.now()-e}this.set(t,i.value,i)}}set(e,t,r={}){if(t===undefined){this.delete(e);return this}const{ttl:i=this.ttl,start:n,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:o}=r;let{noUpdateTTL:l=this.noUpdateTTL}=r;const u=this.#X(e,t,r.size||0,a);if(this.maxEntrySize&&u>this.maxEntrySize){if(o){o.set="miss";o.maxEntrySizeExceeded=true}this.#Z(e,"set");return this}let f=this.#v===0?undefined:this.#x.get(e);if(f===undefined){f=this.#v===0?this.#L:this.#P.length!==0?this.#P.pop():this.#v===this.#b?this.#ee(false):this.#v;this.#k[f]=e;this.#T[f]=t;this.#x.set(e,f);this.#R[this.#L]=f;this.#A[f]=this.#L;this.#L=f;this.#v++;this.#J(f,u,o);if(o)o.set="add";l=false}else{this.#z(f);const r=this.#T[f];if(t!==r){if(this.#B&&this.#j(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=r;if(t!==undefined&&!s){if(this.#N){this.#g?.(t,e,"set")}if(this.#F){this.#C?.push([t,e,"set"])}}}else if(!s){if(this.#N){this.#g?.(r,e,"set")}if(this.#F){this.#C?.push([r,e,"set"])}}this.#Q(f);this.#J(f,u,o);this.#T[f]=t;if(o){o.set="replace";const e=r&&this.#j(r)?r.__staleWhileFetching:r;if(e!==undefined)o.oldValue=e}}else if(o){o.set="update"}}if(i!==0&&!this.#D){this.#q()}if(this.#D){if(!l){this.#V(f,i,n)}if(o)this.#K(o,f)}if(!s&&this.#F&&this.#C){const e=this.#C;let t;while(t=e?.shift()){this.#w?.(...t)}}return this}pop(){try{while(this.#v){const e=this.#T[this.#O];this.#ee(true);if(this.#j(e)){if(e.__staleWhileFetching){return e.__staleWhileFetching}}else if(e!==undefined){return e}}}finally{if(this.#F&&this.#C){const e=this.#C;let t;while(t=e?.shift()){this.#w?.(...t)}}}}#ee(e){const t=this.#O;const r=this.#k[t];const i=this.#T[t];if(this.#B&&this.#j(i)){i.__abortController.abort(new Error("evicted"))}else if(this.#N||this.#F){if(this.#N){this.#g?.(i,r,"evict")}if(this.#F){this.#C?.push([i,r,"evict"])}}this.#Q(t);if(e){this.#k[t]=undefined;this.#T[t]=undefined;this.#P.push(t)}if(this.#v===1){this.#O=this.#L=0;this.#P.length=0}else{this.#O=this.#R[t]}this.#x.delete(r);this.#v--;return t}has(e,t={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=t;const n=this.#x.get(e);if(n!==undefined){const e=this.#T[n];if(this.#j(e)&&e.__staleWhileFetching===undefined){return false}if(!this.#$(n)){if(r){this.#Y(n)}if(i){i.has="hit";this.#K(i,n)}return true}else if(i){i.has="stale";this.#K(i,n)}}else if(i){i.has="miss"}return false}peek(e,t={}){const{allowStale:r=this.allowStale}=t;const i=this.#x.get(e);if(i===undefined||!r&&this.#$(i)){return}const n=this.#T[i];return this.#j(n)?n.__staleWhileFetching:n}#W(e,t,r,i){const n=t===undefined?undefined:this.#T[t];if(this.#j(n)){return n}const a=new s;const{signal:o}=r;o?.addEventListener("abort",(()=>a.abort(o.reason)),{signal:a.signal});const l={signal:a.signal,options:r,context:i};const cb=(i,n=false)=>{const{aborted:s}=a.signal;const o=r.ignoreFetchAbort&&i!==undefined;if(r.status){if(s&&!n){r.status.fetchAborted=true;r.status.fetchError=a.signal.reason;if(o)r.status.fetchAbortIgnored=true}else{r.status.fetchResolved=true}}if(s&&!o&&!n){return fetchFail(a.signal.reason)}const f=u;if(this.#T[t]===u){if(i===undefined){if(f.__staleWhileFetching){this.#T[t]=f.__staleWhileFetching}else{this.#Z(e,"fetch")}}else{if(r.status)r.status.fetchUpdated=true;this.set(e,i,l.options)}}return i};const eb=e=>{if(r.status){r.status.fetchRejected=true;r.status.fetchError=e}return fetchFail(e)};const fetchFail=i=>{const{aborted:n}=a.signal;const s=n&&r.allowStaleOnFetchAbort;const o=s||r.allowStaleOnFetchRejection;const l=o||r.noDeleteOnFetchRejection;const f=u;if(this.#T[t]===u){const r=!l||f.__staleWhileFetching===undefined;if(r){this.#Z(e,"fetch")}else if(!s){this.#T[t]=f.__staleWhileFetching}}if(o){if(r.status&&f.__staleWhileFetching!==undefined){r.status.returnedStale=true}return f.__staleWhileFetching}else if(f.__returned===f){throw i}};const pcall=(t,i)=>{const s=this.#_?.(e,n,l);if(s&&s instanceof Promise){s.then((e=>t(e===undefined?undefined:e)),i)}a.signal.addEventListener("abort",(()=>{if(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort){t(undefined);if(r.allowStaleOnFetchAbort){t=e=>cb(e,true)}}}))};if(r.status)r.status.fetchDispatched=true;const u=new Promise(pcall).then(cb,eb);const f=Object.assign(u,{__abortController:a,__staleWhileFetching:n,__returned:undefined});if(t===undefined){this.set(e,f,{...l.options,status:undefined});t=this.#x.get(e)}else{this.#T[t]=f}return f}#j(e){if(!this.#B)return false;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof s}async fetch(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:o=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:h=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:p,forceRefresh:y=false,status:b,signal:g}=t;if(!this.#B){if(b)b.fetch="get";return this.get(e,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:n,status:b})}const w={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:n,ttl:s,noDisposeOnSet:a,size:o,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:d,ignoreFetchAbort:h,status:b,signal:g};let _=this.#x.get(e);if(_===undefined){if(b)b.fetch="miss";const t=this.#W(e,_,w,p);return t.__returned=t}else{const t=this.#T[_];if(this.#j(t)){const e=r&&t.__staleWhileFetching!==undefined;if(b){b.fetch="inflight";if(e)b.returnedStale=true}return e?t.__staleWhileFetching:t.__returned=t}const n=this.#$(_);if(!y&&!n){if(b)b.fetch="hit";this.#z(_);if(i){this.#Y(_)}if(b)this.#K(b,_);return t}const s=this.#W(e,_,w,p);const a=s.__staleWhileFetching!==undefined;const o=a&&r;if(b){b.fetch=n?"stale":"refresh";if(o&&n)b.returnedStale=true}return o?s.__staleWhileFetching:s.__returned=s}}async forceFetch(e,t={}){const r=await this.fetch(e,t);if(r===undefined)throw new Error("fetch() returned undefined");return r}memo(e,t={}){const r=this.#S;if(!r){throw new Error("no memoMethod provided to constructor")}const{context:i,forceRefresh:n,...s}=t;const a=this.get(e,s);if(!n&&a!==undefined)return a;const o=r(e,a,{options:s,context:i});this.set(e,o,s);return o}get(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:s}=t;const a=this.#x.get(e);if(a!==undefined){const t=this.#T[a];const o=this.#j(t);if(s)this.#K(s,a);if(this.#$(a)){if(s)s.get="stale";if(!o){if(!n){this.#Z(e,"expire")}if(s&&r)s.returnedStale=true;return r?t:undefined}else{if(s&&r&&t.__staleWhileFetching!==undefined){s.returnedStale=true}return r?t.__staleWhileFetching:undefined}}else{if(s)s.get="hit";if(o){return t.__staleWhileFetching}this.#z(a);if(i){this.#Y(a)}return t}}else if(s){s.get="miss"}}#re(e,t){this.#A[t]=e;this.#R[e]=t}#z(e){if(e!==this.#L){if(e===this.#O){this.#O=this.#R[e]}else{this.#re(this.#A[e],this.#R[e])}this.#re(this.#L,e);this.#L=e}}delete(e){return this.#Z(e,"delete")}#Z(e,t){let r=false;if(this.#v!==0){const i=this.#x.get(e);if(i!==undefined){r=true;if(this.#v===1){this.#ie(t)}else{this.#Q(i);const r=this.#T[i];if(this.#j(r)){r.__abortController.abort(new Error("deleted"))}else if(this.#N||this.#F){if(this.#N){this.#g?.(r,e,t)}if(this.#F){this.#C?.push([r,e,t])}}this.#x.delete(e);this.#k[i]=undefined;this.#T[i]=undefined;if(i===this.#L){this.#L=this.#A[i]}else if(i===this.#O){this.#O=this.#R[i]}else{const e=this.#A[i];this.#R[e]=this.#R[i];const t=this.#R[i];this.#A[t]=this.#A[i]}this.#v--;this.#P.push(i)}}}if(this.#F&&this.#C?.length){const e=this.#C;let t;while(t=e?.shift()){this.#w?.(...t)}}return r}clear(){return this.#ie("delete")}#ie(e){for(const t of this.#G({allowStale:true})){const r=this.#T[t];if(this.#j(r)){r.__abortController.abort(new Error("deleted"))}else{const i=this.#k[t];if(this.#N){this.#g?.(r,i,e)}if(this.#F){this.#C?.push([r,i,e])}}}this.#x.clear();this.#T.fill(undefined);this.#k.fill(undefined);if(this.#D&&this.#I){this.#D.fill(0);this.#I.fill(0)}if(this.#M){this.#M.fill(0)}this.#O=0;this.#L=0;this.#P.length=0;this.#E=0;this.#v=0;if(this.#F&&this.#C){const e=this.#C;let t;while(t=e?.shift()){this.#w?.(...t)}}}}t.LRUCache=LRUCache},8386:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertValidPattern=void 0;const r=1024*64;const assertValidPattern=e=>{if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>r){throw new TypeError("pattern is too long")}};t.assertValidPattern=assertValidPattern},6175:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AST=void 0;const i=r(6638);const n=r(8455);const s=new Set(["!","?","+","*","@"]);const isExtglobType=e=>s.has(e);const a="(?!(?:^|/)\\.\\.?(?:$|/))";const o="(?!\\.)";const l=new Set(["[","."]);const u=new Set(["..","."]);const f=new Set("().*{}+?[]^$\\!");const regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const c="[^/]";const h=c+"*?";const d=c+"+?";class AST{type;#ne;#se;#ae=false;#oe=[];#le;#ue;#fe;#ce=false;#he;#de;#pe=false;constructor(e,t,r={}){this.type=e;if(e)this.#se=true;this.#le=t;this.#ne=this.#le?this.#le.#ne:this;this.#he=this.#ne===this?r:this.#ne.#he;this.#fe=this.#ne===this?[]:this.#ne.#fe;if(e==="!"&&!this.#ne.#ce)this.#fe.push(this);this.#ue=this.#le?this.#le.#oe.length:0}get hasMagic(){if(this.#se!==undefined)return this.#se;for(const e of this.#oe){if(typeof e==="string")continue;if(e.type||e.hasMagic)return this.#se=true}return this.#se}toString(){if(this.#de!==undefined)return this.#de;if(!this.type){return this.#de=this.#oe.map((e=>String(e))).join("")}else{return this.#de=this.type+"("+this.#oe.map((e=>String(e))).join("|")+")"}}#ye(){if(this!==this.#ne)throw new Error("should only call on root");if(this.#ce)return this;this.toString();this.#ce=true;let e;while(e=this.#fe.pop()){if(e.type!=="!")continue;let t=e;let r=t.#le;while(r){for(let i=t.#ue+1;!r.type&&i<r.#oe.length;i++){for(const t of e.#oe){if(typeof t==="string"){throw new Error("string part in extglob AST??")}t.copyIn(r.#oe[i])}}t=r;r=t.#le}}return this}push(...e){for(const t of e){if(t==="")continue;if(typeof t!=="string"&&!(t instanceof AST&&t.#le===this)){throw new Error("invalid part: "+t)}this.#oe.push(t)}}toJSON(){const e=this.type===null?this.#oe.slice().map((e=>typeof e==="string"?e:e.toJSON())):[this.type,...this.#oe.map((e=>e.toJSON()))];if(this.isStart()&&!this.type)e.unshift([]);if(this.isEnd()&&(this===this.#ne||this.#ne.#ce&&this.#le?.type==="!")){e.push({})}return e}isStart(){if(this.#ne===this)return true;if(!this.#le?.isStart())return false;if(this.#ue===0)return true;const e=this.#le;for(let t=0;t<this.#ue;t++){const r=e.#oe[t];if(!(r instanceof AST&&r.type==="!")){return false}}return true}isEnd(){if(this.#ne===this)return true;if(this.#le?.type==="!")return true;if(!this.#le?.isEnd())return false;if(!this.type)return this.#le?.isEnd();const e=this.#le?this.#le.#oe.length:0;return this.#ue===e-1}copyIn(e){if(typeof e==="string")this.push(e);else this.push(e.clone(this))}clone(e){const t=new AST(this.type,e);for(const e of this.#oe){t.copyIn(e)}return t}static#be(e,t,r,i){let n=false;let s=false;let a=-1;let o=false;if(t.type===null){let l=r;let u="";while(l<e.length){const r=e.charAt(l++);if(n||r==="\\"){n=!n;u+=r;continue}if(s){if(l===a+1){if(r==="^"||r==="!"){o=true}}else if(r==="]"&&!(l===a+2&&o)){s=false}u+=r;continue}else if(r==="["){s=true;a=l;o=false;u+=r;continue}if(!i.noext&&isExtglobType(r)&&e.charAt(l)==="("){t.push(u);u="";const n=new AST(r,t);l=AST.#be(e,n,l,i);t.push(n);continue}u+=r}t.push(u);return l}let l=r+1;let u=new AST(null,t);const f=[];let c="";while(l<e.length){const r=e.charAt(l++);if(n||r==="\\"){n=!n;c+=r;continue}if(s){if(l===a+1){if(r==="^"||r==="!"){o=true}}else if(r==="]"&&!(l===a+2&&o)){s=false}c+=r;continue}else if(r==="["){s=true;a=l;o=false;c+=r;continue}if(isExtglobType(r)&&e.charAt(l)==="("){u.push(c);c="";const t=new AST(r,u);u.push(t);l=AST.#be(e,t,l,i);continue}if(r==="|"){u.push(c);c="";f.push(u);u=new AST(null,t);continue}if(r===")"){if(c===""&&t.#oe.length===0){t.#pe=true}u.push(c);c="";t.push(...f,u);return l}c+=r}t.type=null;t.#se=undefined;t.#oe=[e.substring(r-1)];return l}static fromGlob(e,t={}){const r=new AST(null,undefined,t);AST.#be(e,r,0,t);return r}toMMPattern(){if(this!==this.#ne)return this.#ne.toMMPattern();const e=this.toString();const[t,r,i,n]=this.toRegExpSource();const s=i||this.#se||this.#he.nocase&&!this.#he.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase();if(!s){return r}const a=(this.#he.nocase?"i":"")+(n?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#he}toRegExpSource(e){const t=e??!!this.#he.dot;if(this.#ne===this)this.#ye();if(!this.type){const r=this.isStart()&&this.isEnd();const i=this.#oe.map((t=>{const[i,n,s,a]=typeof t==="string"?AST.#me(t,this.#se,r):t.toRegExpSource(e);this.#se=this.#se||s;this.#ae=this.#ae||a;return i})).join("");let s="";if(this.isStart()){if(typeof this.#oe[0]==="string"){const r=this.#oe.length===1&&u.has(this.#oe[0]);if(!r){const r=l;const n=t&&r.has(i.charAt(0))||i.startsWith("\\.")&&r.has(i.charAt(2))||i.startsWith("\\.\\.")&&r.has(i.charAt(4));const u=!t&&!e&&r.has(i.charAt(0));s=n?a:u?o:""}}}let f="";if(this.isEnd()&&this.#ne.#ce&&this.#le?.type==="!"){f="(?:$|\\/)"}const c=s+i+f;return[c,(0,n.unescape)(i),this.#se=!!this.#se,this.#ae]}const r=this.type==="*"||this.type==="+";const i=this.type==="!"?"(?:(?!(?:":"(?:";let s=this.#ge(t);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const e=this.toString();this.#oe=[e];this.type=null;this.#se=undefined;return[e,(0,n.unescape)(this.toString()),false,false]}let f=!r||e||t||!o?"":this.#ge(true);if(f===s){f=""}if(f){s=`(?:${s})(?:${f})*?`}let c="";if(this.type==="!"&&this.#pe){c=(this.isStart()&&!t?o:"")+d}else{const r=this.type==="!"?"))"+(this.isStart()&&!t&&!e?o:"")+h+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&f?")":this.type==="*"&&f?`)?`:`)${this.type}`;c=i+s+r}return[c,(0,n.unescape)(s),this.#se=!!this.#se,this.#ae]}#ge(e){return this.#oe.map((t=>{if(typeof t==="string"){throw new Error("string type in extglob ast??")}const[r,i,n,s]=t.toRegExpSource(e);this.#ae=this.#ae||s;return r})).filter((e=>!(this.isStart()&&this.isEnd())||!!e)).join("|")}static#me(e,t,r=false){let s=false;let a="";let o=false;for(let n=0;n<e.length;n++){const l=e.charAt(n);if(s){s=false;a+=(f.has(l)?"\\":"")+l;continue}if(l==="\\"){if(n===e.length-1){a+="\\\\"}else{s=true}continue}if(l==="["){const[r,s,l,u]=(0,i.parseClass)(e,n);if(l){a+=r;o=o||s;n+=l-1;t=t||u;continue}}if(l==="*"){if(r&&e==="*")a+=d;else a+=h;t=true;continue}if(l==="?"){a+=c;t=true;continue}a+=regExpEscape(l)}return[a,(0,n.unescape)(e),!!t,o]}}t.AST=AST},6638:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseClass=void 0;const r={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",true],"[:alpha:]":["\\p{L}\\p{Nl}",true],"[:ascii:]":["\\x"+"00-\\x"+"7f",false],"[:blank:]":["\\p{Zs}\\t",true],"[:cntrl:]":["\\p{Cc}",true],"[:digit:]":["\\p{Nd}",true],"[:graph:]":["\\p{Z}\\p{C}",true,true],"[:lower:]":["\\p{Ll}",true],"[:print:]":["\\p{C}",true],"[:punct:]":["\\p{P}",true],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",true],"[:upper:]":["\\p{Lu}",true],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",true],"[:xdigit:]":["A-Fa-f0-9",false]};const braceEscape=e=>e.replace(/[[\]\\-]/g,"\\$&");const regexpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const rangesToString=e=>e.join("");const parseClass=(e,t)=>{const i=t;if(e.charAt(i)!=="["){throw new Error("not in a brace expression")}const n=[];const s=[];let a=i+1;let o=false;let l=false;let u=false;let f=false;let c=i;let h="";e:while(a<e.length){const t=e.charAt(a);if((t==="!"||t==="^")&&a===i+1){f=true;a++;continue}if(t==="]"&&o&&!u){c=a+1;break}o=true;if(t==="\\"){if(!u){u=true;a++;continue}}if(t==="["&&!u){for(const[t,[o,u,f]]of Object.entries(r)){if(e.startsWith(t,a)){if(h){return["$.",false,e.length-i,true]}a+=t.length;if(f)s.push(o);else n.push(o);l=l||u;continue e}}}u=false;if(h){if(t>h){n.push(braceEscape(h)+"-"+braceEscape(t))}else if(t===h){n.push(braceEscape(t))}h="";a++;continue}if(e.startsWith("-]",a+1)){n.push(braceEscape(t+"-"));a+=2;continue}if(e.startsWith("-",a+1)){h=t;a+=2;continue}n.push(braceEscape(t));a++}if(c<a){return["",false,0,false]}if(!n.length&&!s.length){return["$.",false,e.length-i,true]}if(s.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!f){const e=n[0].length===2?n[0].slice(-1):n[0];return[regexpEscape(e),false,c-i,false]}const d="["+(f?"^":"")+rangesToString(n)+"]";const p="["+(f?"":"^")+rangesToString(s)+"]";const y=n.length&&s.length?"("+d+"|"+p+")":n.length?d:p;return[y,l,c-i,true]};t.parseClass=parseClass},4820:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escape=void 0;const escape=(e,{windowsPathsNoEscape:t=false}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");t.escape=escape},3791:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.unescape=t.escape=t.AST=t.Minimatch=t.match=t.makeRe=t.braceExpand=t.defaults=t.filter=t.GLOBSTAR=t.sep=t.minimatch=void 0;const n=i(r(6083));const s=r(8386);const a=r(6175);const o=r(4820);const l=r(8455);const minimatch=(e,t,r={})=>{(0,s.assertValidPattern)(t);if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)};t.minimatch=minimatch;const u=/^\*+([^+@!?\*\[\(]*)$/;const starDotExtTest=e=>t=>!t.startsWith(".")&&t.endsWith(e);const starDotExtTestDot=e=>t=>t.endsWith(e);const starDotExtTestNocase=e=>{e=e.toLowerCase();return t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)};const starDotExtTestNocaseDot=e=>{e=e.toLowerCase();return t=>t.toLowerCase().endsWith(e)};const f=/^\*+\.\*+$/;const starDotStarTest=e=>!e.startsWith(".")&&e.includes(".");const starDotStarTestDot=e=>e!=="."&&e!==".."&&e.includes(".");const c=/^\.\*+$/;const dotStarTest=e=>e!=="."&&e!==".."&&e.startsWith(".");const h=/^\*+$/;const starTest=e=>e.length!==0&&!e.startsWith(".");const starTestDot=e=>e.length!==0&&e!=="."&&e!=="..";const d=/^\?+([^+@!?\*\[\(]*)?$/;const qmarksTestNocase=([e,t=""])=>{const r=qmarksTestNoExt([e]);if(!t)return r;t=t.toLowerCase();return e=>r(e)&&e.toLowerCase().endsWith(t)};const qmarksTestNocaseDot=([e,t=""])=>{const r=qmarksTestNoExtDot([e]);if(!t)return r;t=t.toLowerCase();return e=>r(e)&&e.toLowerCase().endsWith(t)};const qmarksTestDot=([e,t=""])=>{const r=qmarksTestNoExtDot([e]);return!t?r:e=>r(e)&&e.endsWith(t)};const qmarksTest=([e,t=""])=>{const r=qmarksTestNoExt([e]);return!t?r:e=>r(e)&&e.endsWith(t)};const qmarksTestNoExt=([e])=>{const t=e.length;return e=>e.length===t&&!e.startsWith(".")};const qmarksTestNoExtDot=([e])=>{const t=e.length;return e=>e.length===t&&e!=="."&&e!==".."};const p=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";const y={win32:{sep:"\\"},posix:{sep:"/"}};t.sep=p==="win32"?y.win32.sep:y.posix.sep;t.minimatch.sep=t.sep;t.GLOBSTAR=Symbol("globstar **");t.minimatch.GLOBSTAR=t.GLOBSTAR;const b="[^/]";const g=b+"*?";const w="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const _="(?:(?!(?:\\/|^)\\.).)*?";const filter=(e,r={})=>i=>(0,t.minimatch)(i,e,r);t.filter=filter;t.minimatch.filter=t.filter;const ext=(e,t={})=>Object.assign({},e,t);const defaults=e=>{if(!e||typeof e!=="object"||!Object.keys(e).length){return t.minimatch}const r=t.minimatch;const m=(t,i,n={})=>r(t,i,ext(e,n));return Object.assign(m,{Minimatch:class Minimatch extends r.Minimatch{constructor(t,r={}){super(t,ext(e,r))}static defaults(t){return r.defaults(ext(e,t)).Minimatch}},AST:class AST extends r.AST{constructor(t,r,i={}){super(t,r,ext(e,i))}static fromGlob(t,i={}){return r.AST.fromGlob(t,ext(e,i))}},unescape:(t,i={})=>r.unescape(t,ext(e,i)),escape:(t,i={})=>r.escape(t,ext(e,i)),filter:(t,i={})=>r.filter(t,ext(e,i)),defaults:t=>r.defaults(ext(e,t)),makeRe:(t,i={})=>r.makeRe(t,ext(e,i)),braceExpand:(t,i={})=>r.braceExpand(t,ext(e,i)),match:(t,i,n={})=>r.match(t,i,ext(e,n)),sep:r.sep,GLOBSTAR:t.GLOBSTAR})};t.defaults=defaults;t.minimatch.defaults=t.defaults;const braceExpand=(e,t={})=>{(0,s.assertValidPattern)(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return(0,n.default)(e)};t.braceExpand=braceExpand;t.minimatch.braceExpand=t.braceExpand;const makeRe=(e,t={})=>new Minimatch(e,t).makeRe();t.makeRe=makeRe;t.minimatch.makeRe=t.makeRe;const match=(e,t,r={})=>{const i=new Minimatch(t,r);e=e.filter((e=>i.match(e)));if(i.options.nonull&&!e.length){e.push(t)}return e};t.match=match;t.minimatch.match=t.match;const S=/[?*]|[+@!]\(.*?\)|\[|\]/;const regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Minimatch{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){(0,s.assertValidPattern)(e);t=t||{};this.options=t;this.pattern=e;this.platform=t.platform||p;this.isWindows=this.platform==="win32";this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.preserveMultipleSlashes=!!t.preserveMultipleSlashes;this.regexp=null;this.negate=false;this.nonegate=!!t.nonegate;this.comment=false;this.empty=false;this.partial=!!t.partial;this.nocase=!!this.options.nocase;this.windowsNoMagicRoot=t.windowsNoMagicRoot!==undefined?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase);this.globSet=[];this.globParts=[];this.set=[];this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1){return true}for(const e of this.set){for(const t of e){if(typeof t!=="string")return true}}return false}debug(...e){}make(){const e=this.pattern;const t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();this.globSet=[...new Set(this.braceExpand())];if(t.debug){this.debug=(...e)=>console.error(...e)}this.debug(this.pattern,this.globSet);const r=this.globSet.map((e=>this.slashSplit(e)));this.globParts=this.preprocess(r);this.debug(this.pattern,this.globParts);let i=this.globParts.map(((e,t,r)=>{if(this.isWindows&&this.windowsNoMagicRoot){const t=e[0]===""&&e[1]===""&&(e[2]==="?"||!S.test(e[2]))&&!S.test(e[3]);const r=/^[a-z]:/i.test(e[0]);if(t){return[...e.slice(0,4),...e.slice(4).map((e=>this.parse(e)))]}else if(r){return[e[0],...e.slice(1).map((e=>this.parse(e)))]}}return e.map((e=>this.parse(e)))}));this.debug(this.pattern,i);this.set=i.filter((e=>e.indexOf(false)===-1));if(this.isWindows){for(let e=0;e<this.set.length;e++){const t=this.set[e];if(t[0]===""&&t[1]===""&&this.globParts[e][2]==="?"&&typeof t[3]==="string"&&/^[a-z]:$/i.test(t[3])){t[2]="?"}}}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar){for(let t=0;t<e.length;t++){for(let r=0;r<e[t].length;r++){if(e[t][r]==="**"){e[t][r]="*"}}}}const{optimizationLevel:t=1}=this.options;if(t>=2){e=this.firstPhasePreProcess(e);e=this.secondPhasePreProcess(e)}else if(t>=1){e=this.levelOneOptimize(e)}else{e=this.adjascentGlobstarOptimize(e)}return e}adjascentGlobstarOptimize(e){return e.map((e=>{let t=-1;while(-1!==(t=e.indexOf("**",t+1))){let r=t;while(e[r+1]==="**"){r++}if(r!==t){e.splice(t,r-t)}}return e}))}levelOneOptimize(e){return e.map((e=>{e=e.reduce(((e,t)=>{const r=e[e.length-1];if(t==="**"&&r==="**"){return e}if(t===".."){if(r&&r!==".."&&r!=="."&&r!=="**"){e.pop();return e}}e.push(t);return e}),[]);return e.length===0?[""]:e}))}levelTwoFileOptimize(e){if(!Array.isArray(e)){e=this.slashSplit(e)}let t=false;do{t=false;if(!this.preserveMultipleSlashes){for(let r=1;r<e.length-1;r++){const i=e[r];if(r===1&&i===""&&e[0]==="")continue;if(i==="."||i===""){t=true;e.splice(r,1);r--}}if(e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")){t=true;e.pop()}}let r=0;while(-1!==(r=e.indexOf("..",r+1))){const i=e[r-1];if(i&&i!=="."&&i!==".."&&i!=="**"){t=true;e.splice(r-1,2);r-=2}}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=false;do{t=false;for(let r of e){let i=-1;while(-1!==(i=r.indexOf("**",i+1))){let n=i;while(r[n+1]==="**"){n++}if(n>i){r.splice(i+1,n-i)}let s=r[i+1];const a=r[i+2];const o=r[i+3];if(s!=="..")continue;if(!a||a==="."||a===".."||!o||o==="."||o===".."){continue}t=true;r.splice(i,1);const l=r.slice(0);l[i]="**";e.push(l);i--}if(!this.preserveMultipleSlashes){for(let e=1;e<r.length-1;e++){const i=r[e];if(e===1&&i===""&&r[0]==="")continue;if(i==="."||i===""){t=true;r.splice(e,1);e--}}if(r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")){t=true;r.pop()}}let n=0;while(-1!==(n=r.indexOf("..",n+1))){const e=r[n-1];if(e&&e!=="."&&e!==".."&&e!=="**"){t=true;const e=n===1&&r[n+1]==="**";const i=e?["."]:[];r.splice(n-1,2,...i);if(r.length===0)r.push("");n-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++){for(let r=t+1;r<e.length;r++){const i=this.partsMatch(e[t],e[r],!this.preserveMultipleSlashes);if(i){e[t]=[];e[r]=i;break}}}return e.filter((e=>e.length))}partsMatch(e,t,r=false){let i=0;let n=0;let s=[];let a="";while(i<e.length&&n<t.length){if(e[i]===t[n]){s.push(a==="b"?t[n]:e[i]);i++;n++}else if(r&&e[i]==="**"&&t[n]===e[i+1]){s.push(e[i]);i++}else if(r&&t[n]==="**"&&e[i]===t[n+1]){s.push(t[n]);n++}else if(e[i]==="*"&&t[n]&&(this.options.dot||!t[n].startsWith("."))&&t[n]!=="**"){if(a==="b")return false;a="a";s.push(e[i]);i++;n++}else if(t[n]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(a==="a")return false;a="b";s.push(t[n]);i++;n++}else{return false}}return e.length===t.length&&s}parseNegate(){if(this.nonegate)return;const e=this.pattern;let t=false;let r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++){t=!t;r++}if(r)this.pattern=e.slice(r);this.negate=t}matchOne(e,r,i=false){const n=this.options;if(this.isWindows){const t=typeof e[0]==="string"&&/^[a-z]:$/i.test(e[0]);const i=!t&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]);const n=typeof r[0]==="string"&&/^[a-z]:$/i.test(r[0]);const s=!n&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]==="string"&&/^[a-z]:$/i.test(r[3]);const a=i?3:t?0:undefined;const o=s?3:n?0:undefined;if(typeof a==="number"&&typeof o==="number"){const[t,i]=[e[a],r[o]];if(t.toLowerCase()===i.toLowerCase()){r[o]=t;if(o>a){r=r.slice(o)}else if(a>o){e=e.slice(a)}}}}const{optimizationLevel:s=1}=this.options;if(s>=2){e=this.levelTwoFileOptimize(e)}this.debug("matchOne",this,{file:e,pattern:r});this.debug("matchOne",e.length,r.length);for(var a=0,o=0,l=e.length,u=r.length;a<l&&o<u;a++,o++){this.debug("matchOne loop");var f=r[o];var c=e[a];this.debug(r,f,c);if(f===false){return false}if(f===t.GLOBSTAR){this.debug("GLOBSTAR",[r,f,c]);var h=a;var d=o+1;if(d===u){this.debug("** at the end");for(;a<l;a++){if(e[a]==="."||e[a]===".."||!n.dot&&e[a].charAt(0)===".")return false}return true}while(h<l){var p=e[h];this.debug("\nglobstar while",e,h,r,d,p);if(this.matchOne(e.slice(h),r.slice(d),i)){this.debug("globstar found match!",h,l,p);return true}else{if(p==="."||p===".."||!n.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue");h++}}if(i){this.debug("\n>>> no match, partial?",e,h,r,d);if(h===l){return true}}return false}let s;if(typeof f==="string"){s=c===f;this.debug("string match",f,c,s)}else{s=f.test(c);this.debug("pattern match",f,c,s)}if(!s)return false}if(a===l&&o===u){return true}else if(a===l){return i}else if(o===u){return a===l-1&&e[a]===""}else{throw new Error("wtf?")}}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(e){(0,s.assertValidPattern)(e);const r=this.options;if(e==="**")return t.GLOBSTAR;if(e==="")return"";let i;let n=null;if(i=e.match(h)){n=r.dot?starTestDot:starTest}else if(i=e.match(u)){n=(r.nocase?r.dot?starDotExtTestNocaseDot:starDotExtTestNocase:r.dot?starDotExtTestDot:starDotExtTest)(i[1])}else if(i=e.match(d)){n=(r.nocase?r.dot?qmarksTestNocaseDot:qmarksTestNocase:r.dot?qmarksTestDot:qmarksTest)(i)}else if(i=e.match(f)){n=r.dot?starDotStarTestDot:starDotStarTest}else if(i=e.match(c)){n=dotStarTest}const o=a.AST.fromGlob(e,this.options).toMMPattern();if(n&&typeof o==="object"){Reflect.defineProperty(o,"test",{value:n})}return o}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const e=this.set;if(!e.length){this.regexp=false;return this.regexp}const r=this.options;const i=r.noglobstar?g:r.dot?w:_;const n=new Set(r.nocase?["i"]:[]);let s=e.map((e=>{const r=e.map((e=>{if(e instanceof RegExp){for(const t of e.flags.split(""))n.add(t)}return typeof e==="string"?regExpEscape(e):e===t.GLOBSTAR?t.GLOBSTAR:e._src}));r.forEach(((e,n)=>{const s=r[n+1];const a=r[n-1];if(e!==t.GLOBSTAR||a===t.GLOBSTAR){return}if(a===undefined){if(s!==undefined&&s!==t.GLOBSTAR){r[n+1]="(?:\\/|"+i+"\\/)?"+s}else{r[n]=i}}else if(s===undefined){r[n-1]=a+"(?:\\/|"+i+")?"}else if(s!==t.GLOBSTAR){r[n-1]=a+"(?:\\/|\\/"+i+"\\/)"+s;r[n+1]=t.GLOBSTAR}}));return r.filter((e=>e!==t.GLOBSTAR)).join("/")})).join("|");const[a,o]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+o+"$";if(this.negate)s="^(?!"+s+").+$";try{this.regexp=new RegExp(s,[...n].join(""))}catch(e){this.regexp=false}return this.regexp}slashSplit(e){if(this.preserveMultipleSlashes){return e.split("/")}else if(this.isWindows&&/^\/\/[^\/]+/.test(e)){return["",...e.split(/\/+/)]}else{return e.split(/\/+/)}}match(e,t=this.partial){this.debug("match",e,this.pattern);if(this.comment){return false}if(this.empty){return e===""}if(e==="/"&&t){return true}const r=this.options;if(this.isWindows){e=e.split("\\").join("/")}const i=this.slashSplit(e);this.debug(this.pattern,"split",i);const n=this.set;this.debug(this.pattern,"set",n);let s=i[i.length-1];if(!s){for(let e=i.length-2;!s&&e>=0;e--){s=i[e]}}for(let e=0;e<n.length;e++){const a=n[e];let o=i;if(r.matchBase&&a.length===1){o=[s]}const l=this.matchOne(o,a,t);if(l){if(r.flipNegate){return true}return!this.negate}}if(r.flipNegate){return false}return this.negate}static defaults(e){return t.minimatch.defaults(e).Minimatch}}t.Minimatch=Minimatch;var v=r(6175);Object.defineProperty(t,"AST",{enumerable:true,get:function(){return v.AST}});var x=r(4820);Object.defineProperty(t,"escape",{enumerable:true,get:function(){return x.escape}});var k=r(8455);Object.defineProperty(t,"unescape",{enumerable:true,get:function(){return k.unescape}});t.minimatch.AST=a.AST;t.minimatch.Minimatch=Minimatch;t.minimatch.escape=o.escape;t.minimatch.unescape=l.unescape},8455:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.unescape=void 0;const unescape=(e,{windowsPathsNoEscape:t=false}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");t.unescape=unescape},9243:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Minipass=t.isWritable=t.isReadable=t.isStream=void 0;const n=typeof process==="object"&&process?process:{stdout:null,stderr:null};const s=r(8474);const a=i(r(7075));const o=r(6193);const isStream=e=>!!e&&typeof e==="object"&&(e instanceof Minipass||e instanceof a.default||(0,t.isReadable)(e)||(0,t.isWritable)(e));t.isStream=isStream;const isReadable=e=>!!e&&typeof e==="object"&&e instanceof s.EventEmitter&&typeof e.pipe==="function"&&e.pipe!==a.default.Writable.prototype.pipe;t.isReadable=isReadable;const isWritable=e=>!!e&&typeof e==="object"&&e instanceof s.EventEmitter&&typeof e.write==="function"&&typeof e.end==="function";t.isWritable=isWritable;const l=Symbol("EOF");const u=Symbol("maybeEmitEnd");const f=Symbol("emittedEnd");const c=Symbol("emittingEnd");const h=Symbol("emittedError");const d=Symbol("closed");const p=Symbol("read");const y=Symbol("flush");const b=Symbol("flushChunk");const g=Symbol("encoding");const w=Symbol("decoder");const _=Symbol("flowing");const S=Symbol("paused");const v=Symbol("resume");const x=Symbol("buffer");const k=Symbol("pipes");const T=Symbol("bufferLength");const R=Symbol("bufferPush");const A=Symbol("bufferShift");const O=Symbol("objectMode");const L=Symbol("destroyed");const P=Symbol("error");const C=Symbol("emitData");const M=Symbol("emitEnd");const I=Symbol("emitEnd2");const D=Symbol("async");const N=Symbol("abort");const B=Symbol("aborted");const F=Symbol("signal");const j=Symbol("dataListeners");const W=Symbol("discarded");const defer=e=>Promise.resolve().then(e);const nodefer=e=>e();const isEndish=e=>e==="end"||e==="finish"||e==="prefinish";const isArrayBufferLike=e=>e instanceof ArrayBuffer||!!e&&typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const isArrayBufferView=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e);class Pipe{src;dest;opts;ondrain;constructor(e,t,r){this.src=e;this.dest=t;this.opts=r;this.ondrain=()=>e[v]();this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(e,t,r){super(e,t,r);this.proxyErrors=e=>t.emit("error",e);e.on("error",this.proxyErrors)}}const isObjectModeOptions=e=>!!e.objectMode;const isEncodingOptions=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer";class Minipass extends s.EventEmitter{[_]=false;[S]=false;[k]=[];[x]=[];[O];[g];[D];[w];[l]=false;[f]=false;[c]=false;[d]=false;[h]=null;[T]=0;[L]=false;[F];[B]=false;[j]=0;[W]=false;writable=true;readable=true;constructor(...e){const t=e[0]||{};super();if(t.objectMode&&typeof t.encoding==="string"){throw new TypeError("Encoding and objectMode may not be used together")}if(isObjectModeOptions(t)){this[O]=true;this[g]=null}else if(isEncodingOptions(t)){this[g]=t.encoding;this[O]=false}else{this[O]=false;this[g]=null}this[D]=!!t.async;this[w]=this[g]?new o.StringDecoder(this[g]):null;if(t&&t.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[x]})}if(t&&t.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[k]})}const{signal:r}=t;if(r){this[F]=r;if(r.aborted){this[N]()}else{r.addEventListener("abort",(()=>this[N]()))}}}get bufferLength(){return this[T]}get encoding(){return this[g]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[O]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[D]}set["async"](e){this[D]=this[D]||!!e}[N](){this[B]=true;this.emit("abort",this[F]?.reason);this.destroy(this[F]?.reason)}get aborted(){return this[B]}set aborted(e){}write(e,t,r){if(this[B])return false;if(this[l])throw new Error("write after end");if(this[L]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function"){r=t;t="utf8"}if(!t)t="utf8";const i=this[D]?defer:nodefer;if(!this[O]&&!Buffer.isBuffer(e)){if(isArrayBufferView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(isArrayBufferLike(e)){e=Buffer.from(e)}else if(typeof e!=="string"){throw new Error("Non-contiguous data written to non-objectMode stream")}}if(this[O]){if(this[_]&&this[T]!==0)this[y](true);if(this[_])this.emit("data",e);else this[R](e);if(this[T]!==0)this.emit("readable");if(r)i(r);return this[_]}if(!e.length){if(this[T]!==0)this.emit("readable");if(r)i(r);return this[_]}if(typeof e==="string"&&!(t===this[g]&&!this[w]?.lastNeed)){e=Buffer.from(e,t)}if(Buffer.isBuffer(e)&&this[g]){e=this[w].write(e)}if(this[_]&&this[T]!==0)this[y](true);if(this[_])this.emit("data",e);else this[R](e);if(this[T]!==0)this.emit("readable");if(r)i(r);return this[_]}read(e){if(this[L])return null;this[W]=false;if(this[T]===0||e===0||e&&e>this[T]){this[u]();return null}if(this[O])e=null;if(this[x].length>1&&!this[O]){this[x]=[this[g]?this[x].join(""):Buffer.concat(this[x],this[T])]}const t=this[p](e||null,this[x][0]);this[u]();return t}[p](e,t){if(this[O])this[A]();else{const r=t;if(e===r.length||e===null)this[A]();else if(typeof r==="string"){this[x][0]=r.slice(e);t=r.slice(0,e);this[T]-=e}else{this[x][0]=r.subarray(e);t=r.subarray(0,e);this[T]-=e}}this.emit("data",t);if(!this[x].length&&!this[l])this.emit("drain");return t}end(e,t,r){if(typeof e==="function"){r=e;e=undefined}if(typeof t==="function"){r=t;t="utf8"}if(e!==undefined)this.write(e,t);if(r)this.once("end",r);this[l]=true;this.writable=false;if(this[_]||!this[S])this[u]();return this}[v](){if(this[L])return;if(!this[j]&&!this[k].length){this[W]=true}this[S]=false;this[_]=true;this.emit("resume");if(this[x].length)this[y]();else if(this[l])this[u]();else this.emit("drain")}resume(){return this[v]()}pause(){this[_]=false;this[S]=true;this[W]=false}get destroyed(){return this[L]}get flowing(){return this[_]}get paused(){return this[S]}[R](e){if(this[O])this[T]+=1;else this[T]+=e.length;this[x].push(e)}[A](){if(this[O])this[T]-=1;else this[T]-=this[x][0].length;return this[x].shift()}[y](e=false){do{}while(this[b](this[A]())&&this[x].length);if(!e&&!this[x].length&&!this[l])this.emit("drain")}[b](e){this.emit("data",e);return this[_]}pipe(e,t){if(this[L])return e;this[W]=false;const r=this[f];t=t||{};if(e===n.stdout||e===n.stderr)t.end=false;else t.end=t.end!==false;t.proxyErrors=!!t.proxyErrors;if(r){if(t.end)e.end()}else{this[k].push(!t.proxyErrors?new Pipe(this,e,t):new PipeProxyErrors(this,e,t));if(this[D])defer((()=>this[v]()));else this[v]()}return e}unpipe(e){const t=this[k].find((t=>t.dest===e));if(t){if(this[k].length===1){if(this[_]&&this[j]===0){this[_]=false}this[k]=[]}else this[k].splice(this[k].indexOf(t),1);t.unpipe()}}addListener(e,t){return this.on(e,t)}on(e,t){const r=super.on(e,t);if(e==="data"){this[W]=false;this[j]++;if(!this[k].length&&!this[_]){this[v]()}}else if(e==="readable"&&this[T]!==0){super.emit("readable")}else if(isEndish(e)&&this[f]){super.emit(e);this.removeAllListeners(e)}else if(e==="error"&&this[h]){const e=t;if(this[D])defer((()=>e.call(this,this[h])));else e.call(this,this[h])}return r}removeListener(e,t){return this.off(e,t)}off(e,t){const r=super.off(e,t);if(e==="data"){this[j]=this.listeners("data").length;if(this[j]===0&&!this[W]&&!this[k].length){this[_]=false}}return r}removeAllListeners(e){const t=super.removeAllListeners(e);if(e==="data"||e===undefined){this[j]=0;if(!this[W]&&!this[k].length){this[_]=false}}return t}get emittedEnd(){return this[f]}[u](){if(!this[c]&&!this[f]&&!this[L]&&this[x].length===0&&this[l]){this[c]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[d])this.emit("close");this[c]=false}}emit(e,...t){const r=t[0];if(e!=="error"&&e!=="close"&&e!==L&&this[L]){return false}else if(e==="data"){return!this[O]&&!r?false:this[D]?(defer((()=>this[C](r))),true):this[C](r)}else if(e==="end"){return this[M]()}else if(e==="close"){this[d]=true;if(!this[f]&&!this[L])return false;const e=super.emit("close");this.removeAllListeners("close");return e}else if(e==="error"){this[h]=r;super.emit(P,r);const e=!this[F]||this.listeners("error").length?super.emit("error",r):false;this[u]();return e}else if(e==="resume"){const e=super.emit("resume");this[u]();return e}else if(e==="finish"||e==="prefinish"){const t=super.emit(e);this.removeAllListeners(e);return t}const i=super.emit(e,...t);this[u]();return i}[C](e){for(const t of this[k]){if(t.dest.write(e)===false)this.pause()}const t=this[W]?false:super.emit("data",e);this[u]();return t}[M](){if(this[f])return false;this[f]=true;this.readable=false;return this[D]?(defer((()=>this[I]())),true):this[I]()}[I](){if(this[w]){const e=this[w].end();if(e){for(const t of this[k]){t.dest.write(e)}if(!this[W])super.emit("data",e)}}for(const e of this[k]){e.end()}const e=super.emit("end");this.removeAllListeners("end");return e}async collect(){const e=Object.assign([],{dataLength:0});if(!this[O])e.dataLength=0;const t=this.promise();this.on("data",(t=>{e.push(t);if(!this[O])e.dataLength+=t.length}));await t;return e}async concat(){if(this[O]){throw new Error("cannot concat in objectMode")}const e=await this.collect();return this[g]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise(((e,t)=>{this.on(L,(()=>t(new Error("stream destroyed"))));this.on("error",(e=>t(e)));this.on("end",(()=>e()))}))}[Symbol.asyncIterator](){this[W]=false;let e=false;const stop=async()=>{this.pause();e=true;return{value:undefined,done:true}};const next=()=>{if(e)return stop();const t=this.read();if(t!==null)return Promise.resolve({done:false,value:t});if(this[l])return stop();let r;let i;const onerr=e=>{this.off("data",ondata);this.off("end",onend);this.off(L,ondestroy);stop();i(e)};const ondata=e=>{this.off("error",onerr);this.off("end",onend);this.off(L,ondestroy);this.pause();r({value:e,done:!!this[l]})};const onend=()=>{this.off("error",onerr);this.off("data",ondata);this.off(L,ondestroy);stop();r({done:true,value:undefined})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((e,t)=>{i=t;r=e;this.once(L,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[W]=false;let e=false;const stop=()=>{this.pause();this.off(P,stop);this.off(L,stop);this.off("end",stop);e=true;return{done:true,value:undefined}};const next=()=>{if(e)return stop();const t=this.read();return t===null?stop():{done:false,value:t}};this.once("end",stop);this.once(P,stop);this.once(L,stop);return{next:next,throw:stop,return:stop,[Symbol.iterator](){return this}}}destroy(e){if(this[L]){if(e)this.emit("error",e);else this.emit(L);return this}this[L]=true;this[W]=true;this[x].length=0;this[T]=0;const t=this;if(typeof t.close==="function"&&!this[d])t.close();if(e)this.emit("error",e);else this.emit(L);return this}static get isStream(){return t.isStream}}t.Minipass=Minipass},9133:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,n)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.PathScurry=t.Path=t.PathScurryDarwin=t.PathScurryPosix=t.PathScurryWin32=t.PathScurryBase=t.PathPosix=t.PathWin32=t.PathBase=t.ChildrenCache=t.ResolveCache=void 0;const a=r(2013);const o=r(6760);const l=r(3136);const u=r(9896);const f=s(r(3024));const c=u.realpathSync.native;const h=r(1455);const d=r(9243);const p={lstatSync:u.lstatSync,readdir:u.readdir,readdirSync:u.readdirSync,readlinkSync:u.readlinkSync,realpathSync:c,promises:{lstat:h.lstat,readdir:h.readdir,readlink:h.readlink,realpath:h.realpath}};const fsFromOption=e=>!e||e===p||e===f?p:{...p,...e,promises:{...p.promises,...e.promises||{}}};const y=/^\\\\\?\\([a-z]:)\\?$/i;const uncToDrive=e=>e.replace(/\//g,"\\").replace(y,"$1\\");const b=/[\\\/]/;const g=0;const w=1;const _=2;const S=4;const v=6;const x=8;const k=10;const T=12;const R=15;const A=~R;const O=16;const L=32;const P=64;const C=128;const M=256;const I=512;const D=P|C|I;const N=1023;const entToType=e=>e.isFile()?x:e.isDirectory()?S:e.isSymbolicLink()?k:e.isCharacterDevice()?_:e.isBlockDevice()?v:e.isSocket()?T:e.isFIFO()?w:g;const B=new Map;const normalize=e=>{const t=B.get(e);if(t)return t;const r=e.normalize("NFKD");B.set(e,r);return r};const F=new Map;const normalizeNocase=e=>{const t=F.get(e);if(t)return t;const r=normalize(e.toLowerCase());F.set(e,r);return r};class ResolveCache extends a.LRUCache{constructor(){super({max:256})}}t.ResolveCache=ResolveCache;class ChildrenCache extends a.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:e=>e.length+1})}}t.ChildrenCache=ChildrenCache;const j=Symbol("PathScurry setAsCwd");class PathBase{name;root;roots;parent;nocase;isCWD=false;#we;#_e;get dev(){return this.#_e}#Se;get mode(){return this.#Se}#ve;get nlink(){return this.#ve}#Ee;get uid(){return this.#Ee}#xe;get gid(){return this.#xe}#ke;get rdev(){return this.#ke}#Te;get blksize(){return this.#Te}#Re;get ino(){return this.#Re}#v;get size(){return this.#v}#Ae;get blocks(){return this.#Ae}#Oe;get atimeMs(){return this.#Oe}#Le;get mtimeMs(){return this.#Le}#Pe;get ctimeMs(){return this.#Pe}#Ce;get birthtimeMs(){return this.#Ce}#Me;get atime(){return this.#Me}#Ie;get mtime(){return this.#Ie}#De;get ctime(){return this.#De}#Ne;get birthtime(){return this.#Ne}#Be;#Fe;#je;#We;#ze;#Ue;#Ge;#$e;#He;#qe;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=g,r,i,n,s,a){this.name=e;this.#Be=n?normalizeNocase(e):normalize(e);this.#Ge=t&N;this.nocase=n;this.roots=i;this.root=r||this;this.#$e=s;this.#je=a.fullpath;this.#ze=a.relative;this.#Ue=a.relativePosix;this.parent=a.parent;if(this.parent){this.#we=this.parent.#we}else{this.#we=fsFromOption(a.fs)}}depth(){if(this.#Fe!==undefined)return this.#Fe;if(!this.parent)return this.#Fe=0;return this.#Fe=this.parent.depth()+1}childrenCache(){return this.#$e}resolve(e){if(!e){return this}const t=this.getRootString(e);const r=e.substring(t.length);const i=r.split(this.splitSep);const n=t?this.getRoot(t).#Ve(i):this.#Ve(i);return n}#Ve(e){let t=this;for(const r of e){t=t.child(r)}return t}children(){const e=this.#$e.get(this);if(e){return e}const t=Object.assign([],{provisional:0});this.#$e.set(this,t);this.#Ge&=~O;return t}child(e,t){if(e===""||e==="."){return this}if(e===".."){return this.parent||this}const r=this.children();const i=this.nocase?normalizeNocase(e):normalize(e);for(const e of r){if(e.#Be===i){return e}}const n=this.parent?this.sep:"";const s=this.#je?this.#je+n+e:undefined;const a=this.newChild(e,g,{...t,parent:this,fullpath:s});if(!this.canReaddir()){a.#Ge|=C}r.push(a);return a}relative(){if(this.isCWD)return"";if(this.#ze!==undefined){return this.#ze}const e=this.name;const t=this.parent;if(!t){return this.#ze=this.name}const r=t.relative();return r+(!r||!t.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#Ue!==undefined)return this.#Ue;const e=this.name;const t=this.parent;if(!t){return this.#Ue=this.fullpathPosix()}const r=t.relativePosix();return r+(!r||!t.parent?"":"/")+e}fullpath(){if(this.#je!==undefined){return this.#je}const e=this.name;const t=this.parent;if(!t){return this.#je=this.name}const r=t.fullpath();const i=r+(!t.parent?"":this.sep)+e;return this.#je=i}fullpathPosix(){if(this.#We!==undefined)return this.#We;if(this.sep==="/")return this.#We=this.fullpath();if(!this.parent){const e=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(e)){return this.#We=`//?/${e}`}else{return this.#We=e}}const e=this.parent;const t=e.fullpathPosix();const r=t+(!t||!e.parent?"":"/")+this.name;return this.#We=r}isUnknown(){return(this.#Ge&R)===g}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#Ge&R)===x}isDirectory(){return(this.#Ge&R)===S}isCharacterDevice(){return(this.#Ge&R)===_}isBlockDevice(){return(this.#Ge&R)===v}isFIFO(){return(this.#Ge&R)===w}isSocket(){return(this.#Ge&R)===T}isSymbolicLink(){return(this.#Ge&k)===k}lstatCached(){return this.#Ge&L?this:undefined}readlinkCached(){return this.#He}realpathCached(){return this.#qe}readdirCached(){const e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#He)return true;if(!this.parent)return false;const e=this.#Ge&R;return!(e!==g&&e!==k||this.#Ge&M||this.#Ge&C)}calledReaddir(){return!!(this.#Ge&O)}isENOENT(){return!!(this.#Ge&C)}isNamed(e){return!this.nocase?this.#Be===normalize(e):this.#Be===normalizeNocase(e)}async readlink(){const e=this.#He;if(e){return e}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const e=await this.#we.promises.readlink(this.fullpath());const t=(await this.parent.realpath())?.resolve(e);if(t){return this.#He=t}}catch(e){this.#Ze(e.code);return undefined}}readlinkSync(){const e=this.#He;if(e){return e}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const e=this.#we.readlinkSync(this.fullpath());const t=this.parent.realpathSync()?.resolve(e);if(t){return this.#He=t}}catch(e){this.#Ze(e.code);return undefined}}#Ye(e){this.#Ge|=O;for(let t=e.provisional;t<e.length;t++){const r=e[t];if(r)r.#Ke()}}#Ke(){if(this.#Ge&C)return;this.#Ge=(this.#Ge|C)&A;this.#Qe()}#Qe(){const e=this.children();e.provisional=0;for(const t of e){t.#Ke()}}#Xe(){this.#Ge|=I;this.#Je()}#Je(){if(this.#Ge&P)return;let e=this.#Ge;if((e&R)===S)e&=A;this.#Ge=e|P;this.#Qe()}#et(e=""){if(e==="ENOTDIR"||e==="EPERM"){this.#Je()}else if(e==="ENOENT"){this.#Ke()}else{this.children().provisional=0}}#tt(e=""){if(e==="ENOTDIR"){const e=this.parent;e.#Je()}else if(e==="ENOENT"){this.#Ke()}}#Ze(e=""){let t=this.#Ge;t|=M;if(e==="ENOENT")t|=C;if(e==="EINVAL"||e==="UNKNOWN"){t&=A}this.#Ge=t;if(e==="ENOTDIR"&&this.parent){this.parent.#Je()}}#rt(e,t){return this.#it(e,t)||this.#nt(e,t)}#nt(e,t){const r=entToType(e);const i=this.newChild(e.name,r,{parent:this});const n=i.#Ge&R;if(n!==S&&n!==k&&n!==g){i.#Ge|=P}t.unshift(i);t.provisional++;return i}#it(e,t){for(let r=t.provisional;r<t.length;r++){const i=t[r];const n=this.nocase?normalizeNocase(e.name):normalize(e.name);if(n!==i.#Be){continue}return this.#st(e,i,r,t)}}#st(e,t,r,i){const n=t.name;t.#Ge=t.#Ge&A|entToType(e);if(n!==e.name)t.name=e.name;if(r!==i.provisional){if(r===i.length-1)i.pop();else i.splice(r,1);i.unshift(t)}i.provisional++;return t}async lstat(){if((this.#Ge&C)===0){try{this.#at(await this.#we.promises.lstat(this.fullpath()));return this}catch(e){this.#tt(e.code)}}}lstatSync(){if((this.#Ge&C)===0){try{this.#at(this.#we.lstatSync(this.fullpath()));return this}catch(e){this.#tt(e.code)}}}#at(e){const{atime:t,atimeMs:r,birthtime:i,birthtimeMs:n,blksize:s,blocks:a,ctime:o,ctimeMs:l,dev:u,gid:f,ino:c,mode:h,mtime:d,mtimeMs:p,nlink:y,rdev:b,size:w,uid:_}=e;this.#Me=t;this.#Oe=r;this.#Ne=i;this.#Ce=n;this.#Te=s;this.#Ae=a;this.#De=o;this.#Pe=l;this.#_e=u;this.#xe=f;this.#Re=c;this.#Se=h;this.#Ie=d;this.#Le=p;this.#ve=y;this.#ke=b;this.#v=w;this.#Ee=_;const v=entToType(e);this.#Ge=this.#Ge&A|v|L;if(v!==g&&v!==S&&v!==k){this.#Ge|=P}}#ot=[];#lt=false;#ut(e){this.#lt=false;const t=this.#ot.slice();this.#ot.length=0;t.forEach((t=>t(null,e)))}readdirCB(e,t=false){if(!this.canReaddir()){if(t)e(null,[]);else queueMicrotask((()=>e(null,[])));return}const r=this.children();if(this.calledReaddir()){const i=r.slice(0,r.provisional);if(t)e(null,i);else queueMicrotask((()=>e(null,i)));return}this.#ot.push(e);if(this.#lt){return}this.#lt=true;const i=this.fullpath();this.#we.readdir(i,{withFileTypes:true},((e,t)=>{if(e){this.#et(e.code);r.provisional=0}else{for(const e of t){this.#rt(e,r)}this.#Ye(r)}this.#ut(r.slice(0,r.provisional));return}))}#ft;async readdir(){if(!this.canReaddir()){return[]}const e=this.children();if(this.calledReaddir()){return e.slice(0,e.provisional)}const t=this.fullpath();if(this.#ft){await this.#ft}else{let resolve=()=>{};this.#ft=new Promise((e=>resolve=e));try{for(const r of await this.#we.promises.readdir(t,{withFileTypes:true})){this.#rt(r,e)}this.#Ye(e)}catch(t){this.#et(t.code);e.provisional=0}this.#ft=undefined;resolve()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir()){return[]}const e=this.children();if(this.calledReaddir()){return e.slice(0,e.provisional)}const t=this.fullpath();try{for(const r of this.#we.readdirSync(t,{withFileTypes:true})){this.#rt(r,e)}this.#Ye(e)}catch(t){this.#et(t.code);e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#Ge&D)return false;const e=R&this.#Ge;if(!(e===g||e===S||e===k)){return false}return true}shouldWalk(e,t){return(this.#Ge&S)===S&&!(this.#Ge&D)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#qe)return this.#qe;if((I|M|C)&this.#Ge)return undefined;try{const e=await this.#we.promises.realpath(this.fullpath());return this.#qe=this.resolve(e)}catch(e){this.#Xe()}}realpathSync(){if(this.#qe)return this.#qe;if((I|M|C)&this.#Ge)return undefined;try{const e=this.#we.realpathSync(this.fullpath());return this.#qe=this.resolve(e)}catch(e){this.#Xe()}}[j](e){if(e===this)return;e.isCWD=false;this.isCWD=true;const t=new Set([]);let r=[];let i=this;while(i&&i.parent){t.add(i);i.#ze=r.join(this.sep);i.#Ue=r.join("/");i=i.parent;r.push("..")}i=e;while(i&&i.parent&&!t.has(i)){i.#ze=undefined;i.#Ue=undefined;i=i.parent}}}t.PathBase=PathBase;class PathWin32 extends PathBase{sep="\\";splitSep=b;constructor(e,t=g,r,i,n,s,a){super(e,t,r,i,n,s,a)}newChild(e,t=g,r={}){return new PathWin32(e,t,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(e){return o.win32.parse(e).root}getRoot(e){e=uncToDrive(e.toUpperCase());if(e===this.root.name){return this.root}for(const[t,r]of Object.entries(this.roots)){if(this.sameRoot(e,t)){return this.roots[e]=r}}return this.roots[e]=new PathScurryWin32(e,this).root}sameRoot(e,t=this.root.name){e=e.toUpperCase().replace(/\//g,"\\").replace(y,"$1\\");return e===t}}t.PathWin32=PathWin32;class PathPosix extends PathBase{splitSep="/";sep="/";constructor(e,t=g,r,i,n,s,a){super(e,t,r,i,n,s,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,t=g,r={}){return new PathPosix(e,t,this.root,this.roots,this.nocase,this.childrenCache(),r)}}t.PathPosix=PathPosix;class PathScurryBase{root;rootPath;roots;cwd;#ct;#ht;#$e;nocase;#we;constructor(e=process.cwd(),t,r,{nocase:i,childrenCacheSize:n=16*1024,fs:s=p}={}){this.#we=fsFromOption(s);if(e instanceof URL||e.startsWith("file://")){e=(0,l.fileURLToPath)(e)}const a=t.resolve(e);this.roots=Object.create(null);this.rootPath=this.parseRootPath(a);this.#ct=new ResolveCache;this.#ht=new ResolveCache;this.#$e=new ChildrenCache(n);const o=a.substring(this.rootPath.length).split(r);if(o.length===1&&!o[0]){o.pop()}if(i===undefined){throw new TypeError("must provide nocase setting to PathScurryBase ctor")}this.nocase=i;this.root=this.newRoot(this.#we);this.roots[this.rootPath]=this.root;let u=this.root;let f=o.length-1;const c=t.sep;let h=this.rootPath;let d=false;for(const e of o){const t=f--;u=u.child(e,{relative:new Array(t).fill("..").join(c),relativePosix:new Array(t).fill("..").join("/"),fullpath:h+=(d?"":c)+e});d=true}this.cwd=u}depth(e=this.cwd){if(typeof e==="string"){e=this.cwd.resolve(e)}return e.depth()}childrenCache(){return this.#$e}resolve(...e){let t="";for(let r=e.length-1;r>=0;r--){const i=e[r];if(!i||i===".")continue;t=t?`${i}/${t}`:i;if(this.isAbsolute(i)){break}}const r=this.#ct.get(t);if(r!==undefined){return r}const i=this.cwd.resolve(t).fullpath();this.#ct.set(t,i);return i}resolvePosix(...e){let t="";for(let r=e.length-1;r>=0;r--){const i=e[r];if(!i||i===".")continue;t=t?`${i}/${t}`:i;if(this.isAbsolute(i)){break}}const r=this.#ht.get(t);if(r!==undefined){return r}const i=this.cwd.resolve(t).fullpathPosix();this.#ht.set(t,i);return i}relative(e=this.cwd){if(typeof e==="string"){e=this.cwd.resolve(e)}return e.relative()}relativePosix(e=this.cwd){if(typeof e==="string"){e=this.cwd.resolve(e)}return e.relativePosix()}basename(e=this.cwd){if(typeof e==="string"){e=this.cwd.resolve(e)}return e.name}dirname(e=this.cwd){if(typeof e==="string"){e=this.cwd.resolve(e)}return(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:true}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}const{withFileTypes:r}=t;if(!e.canReaddir()){return[]}else{const t=await e.readdir();return r?t:t.map((e=>e.name))}}readdirSync(e=this.cwd,t={withFileTypes:true}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}const{withFileTypes:r=true}=t;if(!e.canReaddir()){return[]}else if(r){return e.readdirSync()}else{return e.readdirSync().map((e=>e.name))}}async lstat(e=this.cwd){if(typeof e==="string"){e=this.cwd.resolve(e)}return e.lstat()}lstatSync(e=this.cwd){if(typeof e==="string"){e=this.cwd.resolve(e)}return e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:false}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e.withFileTypes;e=this.cwd}const r=await e.readlink();return t?r:r?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:false}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e.withFileTypes;e=this.cwd}const r=e.readlinkSync();return t?r:r?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:false}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e.withFileTypes;e=this.cwd}const r=await e.realpath();return t?r:r?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:false}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e.withFileTypes;e=this.cwd}const r=e.realpathSync();return t?r:r?.fullpath()}async walk(e=this.cwd,t={}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}const{withFileTypes:r=true,follow:i=false,filter:n,walkFilter:s}=t;const a=[];if(!n||n(e)){a.push(r?e:e.fullpath())}const o=new Set;const walk=(e,t)=>{o.add(e);e.readdirCB(((e,l)=>{if(e){return t(e)}let u=l.length;if(!u)return t();const next=()=>{if(--u===0){t()}};for(const e of l){if(!n||n(e)){a.push(r?e:e.fullpath())}if(i&&e.isSymbolicLink()){e.realpath().then((e=>e?.isUnknown()?e.lstat():e)).then((e=>e?.shouldWalk(o,s)?walk(e,next):next()))}else{if(e.shouldWalk(o,s)){walk(e,next)}else{next()}}}}),true)};const l=e;return new Promise(((e,t)=>{walk(l,(r=>{if(r)return t(r);e(a)}))}))}walkSync(e=this.cwd,t={}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}const{withFileTypes:r=true,follow:i=false,filter:n,walkFilter:s}=t;const a=[];if(!n||n(e)){a.push(r?e:e.fullpath())}const o=new Set([e]);for(const e of o){const t=e.readdirSync();for(const e of t){if(!n||n(e)){a.push(r?e:e.fullpath())}let t=e;if(e.isSymbolicLink()){if(!(i&&(t=e.realpathSync())))continue;if(t.isUnknown())t.lstatSync()}if(t.shouldWalk(o,s)){o.add(t)}}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}return this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}const{withFileTypes:r=true,follow:i=false,filter:n,walkFilter:s}=t;if(!n||n(e)){yield r?e:e.fullpath()}const a=new Set([e]);for(const e of a){const t=e.readdirSync();for(const e of t){if(!n||n(e)){yield r?e:e.fullpath()}let t=e;if(e.isSymbolicLink()){if(!(i&&(t=e.realpathSync())))continue;if(t.isUnknown())t.lstatSync()}if(t.shouldWalk(a,s)){a.add(t)}}}}stream(e=this.cwd,t={}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}const{withFileTypes:r=true,follow:i=false,filter:n,walkFilter:s}=t;const a=new d.Minipass({objectMode:true});if(!n||n(e)){a.write(r?e:e.fullpath())}const o=new Set;const l=[e];let u=0;const process=()=>{let e=false;while(!e){const t=l.shift();if(!t){if(u===0)a.end();return}u++;o.add(t);const onReaddir=(t,c,h=false)=>{if(t)return a.emit("error",t);if(i&&!h){const e=[];for(const t of c){if(t.isSymbolicLink()){e.push(t.realpath().then((e=>e?.isUnknown()?e.lstat():e)))}}if(e.length){Promise.all(e).then((()=>onReaddir(null,c,true)));return}}for(const t of c){if(t&&(!n||n(t))){if(!a.write(r?t:t.fullpath())){e=true}}}u--;for(const e of c){const t=e.realpathCached()||e;if(t.shouldWalk(o,s)){l.push(t)}}if(e&&!a.flowing){a.once("drain",process)}else if(!f){process()}};let f=true;t.readdirCB(onReaddir,true);f=false}};process();return a}streamSync(e=this.cwd,t={}){if(typeof e==="string"){e=this.cwd.resolve(e)}else if(!(e instanceof PathBase)){t=e;e=this.cwd}const{withFileTypes:r=true,follow:i=false,filter:n,walkFilter:s}=t;const a=new d.Minipass({objectMode:true});const o=new Set;if(!n||n(e)){a.write(r?e:e.fullpath())}const l=[e];let u=0;const process=()=>{let e=false;while(!e){const t=l.shift();if(!t){if(u===0)a.end();return}u++;o.add(t);const f=t.readdirSync();for(const t of f){if(!n||n(t)){if(!a.write(r?t:t.fullpath())){e=true}}}u--;for(const e of f){let t=e;if(e.isSymbolicLink()){if(!(i&&(t=e.realpathSync())))continue;if(t.isUnknown())t.lstatSync()}if(t.shouldWalk(o,s)){l.push(t)}}}if(e&&!a.flowing)a.once("drain",process)};process();return a}chdir(e=this.cwd){const t=this.cwd;this.cwd=typeof e==="string"?this.cwd.resolve(e):e;this.cwd[j](t)}}t.PathScurryBase=PathScurryBase;class PathScurryWin32 extends PathScurryBase{sep="\\";constructor(e=process.cwd(),t={}){const{nocase:r=true}=t;super(e,o.win32,"\\",{...t,nocase:r});this.nocase=r;for(let e=this.cwd;e;e=e.parent){e.nocase=this.nocase}}parseRootPath(e){return o.win32.parse(e).root.toUpperCase()}newRoot(e){return new PathWin32(this.rootPath,S,undefined,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}}t.PathScurryWin32=PathScurryWin32;class PathScurryPosix extends PathScurryBase{sep="/";constructor(e=process.cwd(),t={}){const{nocase:r=false}=t;super(e,o.posix,"/",{...t,nocase:r});this.nocase=r}parseRootPath(e){return"/"}newRoot(e){return new PathPosix(this.rootPath,S,undefined,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}}t.PathScurryPosix=PathScurryPosix;class PathScurryDarwin extends PathScurryPosix{constructor(e=process.cwd(),t={}){const{nocase:r=true}=t;super(e,{...t,nocase:r})}}t.PathScurryDarwin=PathScurryDarwin;t.Path=process.platform==="win32"?PathWin32:PathPosix;t.PathScurry=process.platform==="win32"?PathScurryWin32:process.platform==="darwin"?PathScurryDarwin:PathScurryPosix},7965:function(e){"use strict";function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}const t=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function ensureBuffer(e){if(Buffer.isBuffer(e)){return e}if(typeof e==="number"){return Buffer.alloc(e)}else if(typeof e==="string"){return Buffer.from(e)}else{throw new Error("input must be buffer, number, or string, received "+typeof e)}}function bufferizeInt(e){const t=ensureBuffer(4);t.writeInt32BE(e,0);return t}function _crc32(e,r){e=ensureBuffer(e);if(Buffer.isBuffer(r)){r=r.readUInt32BE(0)}let i=~~r^-1;for(var n=0;n<e.length;n++){i=t[(i^e[n])&255]^i>>>8}return i^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};var r=crc32;const i=getDefaultExportFromCjs(r);e.exports=i}};var t={};function __nccwpck_require__(r){var i=t[r];if(i!==undefined){return i.exports}var n=t[r]={id:r,loaded:false,exports:{}};var s=true;try{e[r].call(n.exports,n,n.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}n.loaded=true;return n.exports}!function(){__nccwpck_require__.nmd=function(e){e.paths=[];if(!e.children)e.children=[];return e}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(2888);module.exports=r})();