@nocobase/plugin-action-import 1.6.20 → 1.6.21

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.
@@ -14,7 +14,7 @@ var n=r(35010);var i={};var vending=function(e,t){return vending.create(e,t)};ve
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(57147);var i=r(17978);var s=r(57888);var o=r(71017);var c=r(82072);var h=r(73837).inherits;var p=r(13143);var g=r(43871).Transform;var y=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=c.defaults(t,{highWaterMark:1024*1024,statConcurrency:4});g.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=[]};h(Archiver,g);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 p("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=c.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=c.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(y){e.mode&=511}else{e.mode&=4095}}else if(e.stats&&e.mode===null){if(y){e.mode=e.stats.mode&511}else{e.mode=e.stats.mode&4095}if(y&&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=c.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=c.lazyReadStream(e.filepath)}else if(t.isDirectory()&&this._moduleSupports("directory")){e.data.name=c.trailingSlashIt(e.data.name);e.data.type="directory";e.data.sourcePath=c.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=o.dirname(e.filepath);e.data.type="symlink";e.data.linkname=o.relative(i,o.resolve(i,r));e.data.sourceType="buffer";e.source=Buffer.concat([])}else{if(t.isDirectory()){this.emit("warning",new p("DIRECTORYNOTSUPPORTED",e.data))}else if(t.isSymbolicLink()){this.emit("warning",new p("SYMLINKNOTSUPPORTED",e.data))}else{this.emit("warning",new p("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 p("QUEUECLOSED"));return this}t=this._normalizeEntryData(t);if(typeof t.name!=="string"||t.name.length===0){this.emit("error",new p("ENTRYNAMEREQUIRED"));return this}if(t.type==="directory"&&!this._moduleSupports("directory")){this.emit("error",new p("DIRECTORYNOTSUPPORTED",{name:t.name}));return this}e=c.normalizeInputSource(e);if(Buffer.isBuffer(e)){t.sourceType="buffer"}else if(c.isStream(e)){t.sourceType="stream"}else{this.emit("error",new p("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 p("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new p("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 s={stat:true,dot:true};function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(e){this.emit("error",e)}function onGlobMatch(i){o.pause();var s=false;var c=Object.assign({},r);c.name=i.relative;c.prefix=t;c.stats=i.stat;c.callback=o.resume.bind(o);try{if(n){c=n(c);if(c===false){s=true}else if(typeof c!=="object"){throw new p("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:e})}}}catch(e){this.emit("error",e);return}if(s){o.resume();return}this._append(i.absolute,c)}var o=i(e,s);o.on("error",onGlobError.bind(this));o.on("match",onGlobMatch.bind(this));o.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.file=function(e,t){if(this._state.finalize||this._state.aborted){this.emit("error",new p("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new p("FILEFILEPATHREQUIRED"));return this}this._append(e,t);return this};Archiver.prototype.glob=function(e,t,r){this._pending++;t=c.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 p("ABORTED");this.emit("error",e);return Promise.reject(e)}if(this._state.finalize){var t=new p("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 p("FORMATSET"));return this}this._format=e;return this};Archiver.prototype.setModule=function(e){if(this._state.aborted){this.emit("error",new p("ABORTED"));return this}if(this._state.module){this.emit("error",new p("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 p("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new p("SYMLINKFILEPATHREQUIRED"));return this}if(typeof t!=="string"||t.length===0){this.emit("error",new p("SYMLINKTARGETREQUIRED",{filepath:e}));return this}if(!this._moduleSupports("symlink")){this.emit("error",new p("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},13143:function(e,t,r){
17
+ var n=r(57147);var i=r(17978);var s=r(83198);var o=r(71017);var c=r(82072);var h=r(73837).inherits;var p=r(13143);var g=r(43871).Transform;var y=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=c.defaults(t,{highWaterMark:1024*1024,statConcurrency:4});g.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=[]};h(Archiver,g);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 p("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=c.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=c.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(y){e.mode&=511}else{e.mode&=4095}}else if(e.stats&&e.mode===null){if(y){e.mode=e.stats.mode&511}else{e.mode=e.stats.mode&4095}if(y&&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=c.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=c.lazyReadStream(e.filepath)}else if(t.isDirectory()&&this._moduleSupports("directory")){e.data.name=c.trailingSlashIt(e.data.name);e.data.type="directory";e.data.sourcePath=c.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=o.dirname(e.filepath);e.data.type="symlink";e.data.linkname=o.relative(i,o.resolve(i,r));e.data.sourceType="buffer";e.source=Buffer.concat([])}else{if(t.isDirectory()){this.emit("warning",new p("DIRECTORYNOTSUPPORTED",e.data))}else if(t.isSymbolicLink()){this.emit("warning",new p("SYMLINKNOTSUPPORTED",e.data))}else{this.emit("warning",new p("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 p("QUEUECLOSED"));return this}t=this._normalizeEntryData(t);if(typeof t.name!=="string"||t.name.length===0){this.emit("error",new p("ENTRYNAMEREQUIRED"));return this}if(t.type==="directory"&&!this._moduleSupports("directory")){this.emit("error",new p("DIRECTORYNOTSUPPORTED",{name:t.name}));return this}e=c.normalizeInputSource(e);if(Buffer.isBuffer(e)){t.sourceType="buffer"}else if(c.isStream(e)){t.sourceType="stream"}else{this.emit("error",new p("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 p("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new p("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 s={stat:true,dot:true};function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(e){this.emit("error",e)}function onGlobMatch(i){o.pause();var s=false;var c=Object.assign({},r);c.name=i.relative;c.prefix=t;c.stats=i.stat;c.callback=o.resume.bind(o);try{if(n){c=n(c);if(c===false){s=true}else if(typeof c!=="object"){throw new p("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:e})}}}catch(e){this.emit("error",e);return}if(s){o.resume();return}this._append(i.absolute,c)}var o=i(e,s);o.on("error",onGlobError.bind(this));o.on("match",onGlobMatch.bind(this));o.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.file=function(e,t){if(this._state.finalize||this._state.aborted){this.emit("error",new p("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new p("FILEFILEPATHREQUIRED"));return this}this._append(e,t);return this};Archiver.prototype.glob=function(e,t,r){this._pending++;t=c.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 p("ABORTED");this.emit("error",e);return Promise.reject(e)}if(this._state.finalize){var t=new p("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 p("FORMATSET"));return this}this._format=e;return this};Archiver.prototype.setModule=function(e){if(this._state.aborted){this.emit("error",new p("ABORTED"));return this}if(this._state.module){this.emit("error",new p("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 p("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new p("SYMLINKFILEPATHREQUIRED"));return this}if(typeof t!=="string"||t.length===0){this.emit("error",new p("SYMLINKTARGETREQUIRED",{filepath:e}));return this}if(!this._moduleSupports("symlink")){this.emit("error",new p("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},13143:function(e,t,r){
18
18
  /**
19
19
  * Archiver Core
20
20
  *
@@ -46,7 +46,7 @@ var n=r(59796);var i=r(91518);var s=r(82072);var Tar=function(e){if(!(this insta
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(86454);var i=r(82072);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},32364: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.q=t},38513: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(38911);var s=r(67953);r(44124)(Duplex,i);{var o=n(s.prototype);for(var c=0;c<o.length;c++){var h=o[c];if(!Duplex.prototype[h])Duplex.prototype[h]=s.prototype[h]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);i.call(this,e);s.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}})},33355:function(e,t,r){"use strict";e.exports=PassThrough;var n=r(71634);r(44124)(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)}},38911:function(e,t,r){"use strict";e.exports=Readable;var n;Readable.ReadableState=ReadableState;var i=r(82361).EventEmitter;var s=function EElistenerCount(e,t){return e.listeners(t).length};var o=r(1781);var c=r(14300).Buffer;var h=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return c.from(e)}function _isUint8Array(e){return c.isBuffer(e)||e instanceof h}var p=r(73837);var g;if(p&&p.debuglog){g=p.debuglog("stream")}else{g=function debug(){}}var y=r(65502);var b=r(28012);var v=r(81205),_=v.getHighWaterMark;var w=r(32364).q,S=w.ERR_INVALID_ARG_TYPE,k=w.ERR_STREAM_PUSH_AFTER_EOF,x=w.ERR_METHOD_NOT_IMPLEMENTED,E=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var R;var C;var O;r(44124)(Readable,o);var P=b.errorOrDestroy;var A=["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(38513);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=_(this,e,"readableHighWaterMark",i);this.buffer=new y;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(!R)R=r(94841).s;this.decoder=new R(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||r(38513);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}o.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=b.destroy;Readable.prototype._undestroy=b.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=c.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){g("readableAddChunk",t);var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var o;if(!i)o=chunkInvalid(s,t);if(o){P(e,o)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==c.prototype){t=_uint8ArrayToBuffer(t)}if(n){if(s.endEmitted)P(e,new E);else addChunk(e,s,t,true)}else if(s.ended){P(e,new k)}else if(s.destroyed){return false}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(!n){s.reading=false;maybeReadMore(e,s)}}return!s.ended&&(s.length<s.highWaterMark||s.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 S("chunk",["string","Buffer","Uint8Array"],t)}return r}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!R)R=r(94841).s;var t=new R(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 I=1073741824;function computeNewHighWaterMark(e){if(e>=I){e=I}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){g("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)){g("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;g("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;g("length less than watermark",n)}if(t.ended||t.reading){n=false;g("reading or ended",n)}else if(n){g("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){g("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;g("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){g("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;g("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;g("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}Readable.prototype._read=function(e){P(this,new x("_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;g("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var o=i?onend:unpipe;if(n.endEmitted)process.nextTick(o);else r.once("end",o);e.on("unpipe",onunpipe);function onunpipe(e,t){g("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){g("onend");e.end()}var c=pipeOnDrain(r);e.on("drain",c);var h=false;function cleanup(){g("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",c);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);h=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))c()}r.on("data",ondata);function ondata(t){g("ondata");var i=e.write(t);g("dest.write",i);if(i===false){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!h){g("false write response, pause",n.awaitDrain);n.awaitDrain++}r.pause()}}function onerror(t){g("onerror",t);unpipe();e.removeListener("error",onerror);if(s(e,"error")===0)P(e,t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){g("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){g("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){g("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;g("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&s(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 s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:false});return this}var o=indexOf(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,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);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;g("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=o.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return r};Readable.prototype.removeAllListeners=function(e){var t=o.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){g("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){g("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){g("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(){g("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){g("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;g("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(){g("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){g("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 s=t.push(i);if(!s){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 s=0;s<A.length;s++){e.on(A[s],this.emit.bind(this,A[s]))}this._read=function(t){g("wrapped _read",t);if(n){n=false;e.resume()}};return this};if(typeof Symbol==="function"){Readable.prototype[Symbol.asyncIterator]=function(){if(C===undefined){C=r(64683)}return C(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;g("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){g("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(O===undefined){O=r(26709)}return O(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}},71634:function(e,t,r){"use strict";e.exports=Transform;var n=r(32364).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0;var h=r(38513);r(44124)(Transform,h);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(n===null){return this.emit("error",new s)}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);h.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 h.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){h.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 c;if(e._transformState.transforming)throw new o;return e.push(null)}},67953: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(65278)};var s=r(1781);var o=r(14300).Buffer;var c=(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 c}var h=r(28012);var p=r(81205),g=p.getHighWaterMark;var y=r(32364).q,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_MULTIPLE_CALLBACK,w=y.ERR_STREAM_CANNOT_PIPE,S=y.ERR_STREAM_DESTROYED,k=y.ERR_STREAM_NULL_VALUES,x=y.ERR_STREAM_WRITE_AFTER_END,E=y.ERR_UNKNOWN_ENCODING;var R=h.errorOrDestroy;r(44124)(Writable,s);function nop(){}function WritableState(e,t,i){n=n||r(38513);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=g(this,e,"writableHighWaterMark",i);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var s=e.decodeStrings===false;this.decodeStrings=!s;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 C;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){C=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(C.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{C=function realHasInstance(e){return e instanceof this}}function Writable(e){n=n||r(38513);var t=this instanceof n;if(!t&&!C.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}s.call(this)}Writable.prototype.pipe=function(){R(this,new w)};function writeAfterEnd(e,t){var r=new x;R(e,r);process.nextTick(t,r)}function validChunk(e,t,r,n){var i;if(r===null){i=new k}else if(typeof r!=="string"&&!t.objectMode){i=new b("chunk",["string","Buffer"],r)}if(i){R(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 s=!n.objectMode&&_isUint8Array(e);if(s&&!o.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(s)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=nop;if(n.ending)writeAfterEnd(this,r);else if(s||validChunk(this,n,e,r)){n.pendingcb++;i=writeOrBuffer(this,n,s,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 E(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=o.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,s){if(!r){var o=decodeChunk(t,n,i);if(n!==o){r=true;i="buffer";n=o}}var c=t.objectMode?1:n.length;t.length+=c;var h=t.length<t.highWaterMark;if(!h)t.needDrain=true;if(t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null};if(p){p.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,c,n,i,s)}return h}function doWrite(e,t,r,n,i,s,o){t.writelen=n;t.writecb=o;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new S("write"));else if(r)e._writev(i,t.onwrite);else e._write(i,s,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;R(e,n)}else{i(n);e._writableState.errorEmitted=true;R(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 _;onwriteStateUpdate(r);if(t)onwriteError(e,r,n,t,i);else{var s=needFinish(r)||e.destroyed;if(!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(n){process.nextTick(afterWrite,e,r,s,i)}else{afterWrite(e,r,s,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 s=t.corkedRequestsFree;s.entry=r;var o=0;var c=true;while(r){i[o]=r;if(!r.isBuf)c=false;r=r.next;o+=1}i.allBuffers=c;doWrite(e,t,true,t.length,i,"",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 h=r.chunk;var p=r.encoding;var g=r.callback;var y=t.objectMode?1:h.length;doWrite(e,t,false,y,h,p,g);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 v("_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){R(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=h.destroy;Writable.prototype._undestroy=h.undestroy;Writable.prototype._destroy=function(e,t){t(e)}},64683: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(21979);var s=Symbol("lastResolve");var o=Symbol("lastReject");var c=Symbol("error");var h=Symbol("ended");var p=Symbol("lastPromise");var g=Symbol("handlePromise");var y=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[s];if(t!==null){var r=e[y].read();if(r!==null){e[p]=null;e[s]=null;e[o]=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[h]){r(createIterResult(undefined,true));return}t[g](r,n)}),n)}}var b=Object.getPrototypeOf((function(){}));var v=Object.setPrototypeOf((n={get stream(){return this[y]},next:function next(){var e=this;var t=this[c];if(t!==null){return Promise.reject(t)}if(this[h]){return Promise.resolve(createIterResult(undefined,true))}if(this[y].destroyed){return new Promise((function(t,r){process.nextTick((function(){if(e[c]){r(e[c])}else{t(createIterResult(undefined,true))}}))}))}var r=this[p];var n;if(r){n=new Promise(wrapForNext(r,this))}else{var i=this[y].read();if(i!==null){return Promise.resolve(createIterResult(i,false))}n=new Promise(this[g])}this[p]=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[y].destroy(null,(function(e){if(e){r(e);return}t(createIterResult(undefined,true))}))}))})),n),b);var _=function createReadableStreamAsyncIterator(e){var t;var r=Object.create(v,(t={},_defineProperty(t,y,{value:e,writable:true}),_defineProperty(t,s,{value:null,writable:true}),_defineProperty(t,o,{value:null,writable:true}),_defineProperty(t,c,{value:null,writable:true}),_defineProperty(t,h,{value:e._readableState.endEmitted,writable:true}),_defineProperty(t,g,{value:function value(e,t){var n=r[y].read();if(n){r[p]=null;r[s]=null;r[o]=null;e(createIterResult(n,false))}else{r[s]=e;r[o]=t}},writable:true}),t));r[p]=null;i(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=r[o];if(t!==null){r[p]=null;r[s]=null;r[o]=null;t(e)}r[c]=e;return}var n=r[s];if(n!==null){r[p]=null;r[s]=null;r[o]=null;n(createIterResult(undefined,true))}r[h]=true}));e.on("readable",onReadable.bind(null,r));return r};e.exports=_},65502: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(14300),i=n.Buffer;var s=r(73837),o=s.inspect;var c=o&&o.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 s=e>i.length?i.length:e;if(s===i.length)n+=i;else n+=i.slice(0,e);e-=s;if(e===0){if(s===i.length){++r;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=i.slice(s)}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 s=r.data;var o=e>s.length?s.length:e;s.copy(t,t.length-e,0,o);e-=o;if(e===0){if(o===s.length){++n;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=s.slice(o)}break}++n}this.length-=n;return t}},{key:c,value:function value(e,t){return o(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:false}))}}]);return BufferList}()},28012: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}},21979:function(e,t,r){"use strict";var n=r(32364).q.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 s=t.writable||t.writable!==false&&e.writable;var o=function onlegacyfinish(){if(!e.writable)h()};var c=e._writableState&&e._writableState.finished;var h=function onfinish(){s=false;c=true;if(!i)r.call(e)};var p=e._readableState&&e._readableState.endEmitted;var g=function onend(){i=false;p=true;if(!s)r.call(e)};var y=function onerror(t){r.call(e,t)};var b=function onclose(){var t;if(i&&!p){if(!e._readableState||!e._readableState.ended)t=new n;return r.call(e,t)}if(s&&!c){if(!e._writableState||!e._writableState.ended)t=new n;return r.call(e,t)}};var v=function onrequest(){e.req.on("finish",h)};if(isRequest(e)){e.on("complete",h);e.on("abort",b);if(e.req)v();else e.on("request",v)}else if(s&&!e._writableState){e.on("end",o);e.on("close",o)}e.on("end",g);e.on("finish",h);if(t.error!==false)e.on("error",y);e.on("close",b);return function(){e.removeListener("complete",h);e.removeListener("abort",b);e.removeListener("request",v);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",o);e.removeListener("close",o);e.removeListener("finish",h);e.removeListener("end",g);e.removeListener("error",y);e.removeListener("close",b)}}e.exports=eos},26709:function(e,t,r){"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var c=e[s](o);var h=c.value}catch(e){r(e);return}if(c.done){t(h)}else{Promise.resolve(h).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,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(32364).q.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 s=new e(_objectSpread({objectMode:true},r));var o=false;s._read=function(){if(!o){o=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){s.push(null)}else if(s.push(yield t)){next()}else{o=false}}catch(e){s.destroy(e)}}));return _next2.apply(this,arguments)}return s}e.exports=from},94397: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(32364).q,s=i.ERR_MISSING_ARGS,o=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,s){s=once(s);var c=false;e.on("close",(function(){c=true}));if(n===undefined)n=r(21979);n(e,{readable:t,writable:i},(function(e){if(e)return s(e);c=true;s()}));var h=false;return function(t){if(c)return;if(h)return;h=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();s(t||new o("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 s("streams")}var i;var o=t.map((function(e,r){var s=r<t.length-1;var c=r>0;return destroyer(e,s,c,(function(e){if(!i)i=e;if(e)o.forEach(call);if(s)return;o.forEach(call);n(i)}))}));return t.reduce(pipe)}e.exports=pipeline},81205:function(e,t,r){"use strict";var n=r(32364).q.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 s=highWaterMarkFrom(t,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var o=i?r:"highWaterMark";throw new n(o,s)}return Math.floor(s)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},1781:function(e,t,r){e.exports=r(12781)},43871:function(e,t,r){var n=r(12781);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(38911);t.Stream=n||t;t.Readable=t;t.Writable=r(67953);t.Duplex=r(38513);t.Transform=r(71634);t.PassThrough=r(33355);t.finished=r(21979);t.pipeline=r(94397)}},13934:function(e,t,r){var n=r(73837);var i=r(20336);var s=r(70209);var o=r(43871).Writable;var c=r(43871).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;c.call(this,{autoDestroy:false})};n.inherits(Source,c);Source.prototype.destroy=function(e){this._parent.destroy(e)};var Extract=function(e){if(!(this instanceof Extract))return new Extract(e);o.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=s.decodePax(r.slice(0,e));r.consume(e);onstreamend()};var onpaxheader=function(){var e=t._header.size;t._pax=s.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=s.decodeLongPath(r.slice(0,n),e.filenameEncoding);r.consume(n);onstreamend()};var ongnulonglinkpath=function(){var n=t._header.size;this._gnuLongLinkPath=s.decodeLongPath(r.slice(0,n),e.filenameEncoding);r.consume(n);onstreamend()};var onheader=function(){var n=t._offset;var i;try{i=t._header=s.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,o);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 s=this._missing;if(e.length)this._partial=true;if(e.length<s){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 o=null;if(e.length>s){o=e.slice(s);e=e.slice(0,s)}if(n)n.end(e);else i.append(e);this._overflow=o;this._onparse()};Extract.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};e.exports=Extract},70209:function(e,t){var r=Buffer.alloc;var n="0000000000000000000";var i="7777777777777777777";var s="0".charCodeAt(0);var o=Buffer.from("ustar\0","binary");var c=Buffer.from("00","binary");var h=Buffer.from("ustar ","binary");var p=Buffer.from(" \0","binary");var g=parseInt("7777",8);var y=257;var b=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 s=0;var o=r.length;for(n=0;n<o;n++){s+=r[n]*Math.pow(256,n)}return t?s:-1*s}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 s=i.indexOf("=");if(s===-1)return t;t[i.slice(0,s)]=i.slice(s+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 h=n.indexOf("/");if(h===-1)return null;i+=i?"/"+n.slice(0,h):n.slice(0,h);n=n.slice(h+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&g,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]=s+toTypeflag(e.type);if(e.linkname)t.write(e.linkname,157);o.copy(t,y);c.copy(t,b);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]-s;var i=decodeStr(e,0,100,t);var c=decodeOct(e,100,8);var g=decodeOct(e,108,8);var v=decodeOct(e,116,8);var _=decodeOct(e,124,12);var w=decodeOct(e,136,12);var S=toType(n);var k=e[157]===0?null:decodeStr(e,157,100,t);var x=decodeStr(e,265,32);var E=decodeStr(e,297,32);var R=decodeOct(e,329,8);var C=decodeOct(e,337,8);var O=cksum(e);if(O===8*32)return null;if(O!==decodeOct(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(o.compare(e,y,y+6)===0){if(e[345])i=decodeStr(e,345,155,t)+"/"+i}else if(h.compare(e,y,y+6)===0&&p.compare(e,b,b+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:c,uid:g,gid:v,size:_,mtime:new Date(1e3*w),type:S,linkname:k,uname:x,gname:E,devmajor:R,devminor:C}}},91518:function(e,t,r){t.extract=r(13934);t.pack=r(48014)},48014:function(e,t,r){var n=r(73186);var i=r(88434);var s=r(44124);var o=Buffer.alloc;var c=r(43871).Readable;var h=r(43871).Writable;var p=r(71576).StringDecoder;var g=r(70209);var y=parseInt("755",8);var b=parseInt("644",8);var v=o(1024);var noop=function(){};var overflow=function(e,t){t&=511;if(t)e.push(v.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){h.call(this);this.written=0;this._to=e;this._destroyed=false};s(Sink,h);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(){h.call(this);this.linkname="";this._decoder=new p("utf-8");this._destroyed=false};s(LinkSink,h);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(){h.call(this);this._destroyed=false};s(Void,h);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);c.call(this,e);this._drain=noop;this._finalized=false;this._finalizing=false;this._destroyed=false;this._stream=null};s(Pack,c);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"?y:b;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 s=this.push(t);overflow(n,e.size);if(s)process.nextTick(r);else this._drain=r;return new Void}if(e.type==="symlink"&&!e.linkname){var o=new LinkSink;i(o,(function(t){if(t){n.destroy();return r(t)}e.linkname=o.linkname;n._encode(e);r()}));return o}this._encode(e);if(e.type!=="file"&&e.type!=="contiguous-file"){process.nextTick(r);return new Void}var c=new Sink(this);this._stream=c;i(c,(function(t){n._stream=null;if(t){n.destroy();return r(t)}if(c.written!==e.size){n.destroy();return r(new Error("size mismatch"))}overflow(n,e.size);if(n._finalizing)n.finalize();r()}));return c};Pack.prototype.finalize=function(){if(this._stream){this._finalizing=true;return}if(this._finalized)return;this._finalized=true;this.push(v);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=g.encode(e);if(t){this.push(t);return}}this._encodePax(e)};Pack.prototype._encodePax=function(e){var t=g.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(g.encode(r));this.push(t);overflow(this,t.length);r.size=e.size;r.type=e.type;this.push(g.encode(r))};Pack.prototype._read=function(e){var t=this._drain;this._drain=noop;t()};e.exports=Pack},57888: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 s=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){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(((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 s=0;var o=wrapAsync(r);return e(t,((e,t,r)=>{var n=s++;o(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 o={};var c=o;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 s=false;let o=false;let h=0;let p=0;function replenish(){if(h>=t||o||i)return;o=true;e.next().then((({value:e,done:t})=>{if(s||i)return;o=false;if(t){i=true;if(h<=0){n(null)}return}h++;r(e,p,iterateeCallback);p++;replenish()})).catch(handleError)}function iterateeCallback(e,t){h-=1;if(s)return;if(e)return handleError(e);if(e===false){i=true;s=true;return}if(t===c||i&&h<=0){i=true;return n(null)}replenish()}function handleError(e){if(s)return;o=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 s=false;var o=false;var h=0;var p=false;function iterateeCallback(e,t){if(o)return;h-=1;if(e){s=true;n(e)}else if(e===false){s=true;o=true}else if(t===c||s&&h<=0){s=true;return n(null)}else if(!p){replenish()}}function replenish(){p=true;while(h<e&&!s){var t=i();if(t===null){s=true;if(h<=0){n(null)}return}h+=1;r(t.value,t.key,onlyOnce(iterateeCallback))}p=false}replenish()};function eachOfLimit(e,t,r,n){return eachOfLimit$2(t)(e,wrapAsync(r),n)}var h=awaitify(eachOfLimit,4);function eachOfArrayLike(e,t,r){r=once(r);var n=0,i=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(++i===s||t===c){r(null)}}for(;n<s;n++){t(e[n],n,onlyOnce(iteratorCallback))}}function eachOfGeneric(e,t,r){return h(e,Infinity,t,r)}function eachOf(e,t,r){var n=isArrayLike(e)?eachOfArrayLike:eachOfGeneric;return n(e,wrapAsync(t),r)}var p=awaitify(eachOf,3);function map(e,t,r){return _asyncMap(p,e,t,r)}var g=awaitify(map,3);var y=applyEach$1(g);function eachOfSeries(e,t,r){return h(e,1,t,r)}var b=awaitify(eachOfSeries,3);function mapSeries(e,t,r){return _asyncMap(b,e,t,r)}var v=awaitify(mapSeries,3);var _=applyEach$1(v);const w=Symbol("promiseCallback");function promiseCallback(){let e,t;function callback(r,...n){if(r)return t(r);e(n.length>1?n:n[0])}callback[w]=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 s=0;var o=false;var c=false;var h=Object.create(null);var p=[];var g=[];var y={};Object.keys(e).forEach((t=>{var r=e[t];if(!Array.isArray(r)){enqueueTask(t,[r]);g.push(t);return}var n=r.slice(0,r.length-1);var i=n.length;if(i===0){enqueueTask(t,r);g.push(t);return}y[t]=i;n.forEach((s=>{if(!e[s]){throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+s+"` in "+n.join(", "))}addListener(s,(()=>{i--;if(i===0){enqueueTask(t,r)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(e,t){p.push((()=>runTask(e,t)))}function processQueue(){if(o)return;if(p.length===0&&s===0){return r(null,i)}while(p.length&&s<t){var e=p.shift();e()}}function addListener(e,t){var r=h[e];if(!r){r=h[e]=[]}r.push(t)}function taskComplete(e){var t=h[e]||[];t.forEach((e=>e()));processQueue()}function runTask(e,t){if(c)return;var n=onlyOnce(((t,...n)=>{s--;if(t===false){o=true;return}if(n.length<2){[n]=n}if(t){var p={};Object.keys(i).forEach((e=>{p[e]=i[e]}));p[e]=n;c=true;h=Object.create(null);if(o)return;r(t,p)}else{i[e]=n;taskComplete(e)}}));s++;var p=wrapAsync(t[t.length-1]);if(t.length>1){p(i,n)}else{p(n)}}function checkForDeadlocks(){var e;var t=0;while(g.length){e=g.pop();t++;getDependents(e).forEach((e=>{if(--y[e]===0){g.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[w]}var S=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/;var k=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/;var x=/,/;var E=/(=.+)?(\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(S);if(!r){r=t.match(k)}if(!r)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,n]=r;return n.replace(/\s/g,"").split(x).map((e=>e.replace(E,"").trim()))}function autoInject(e,t){var r={};Object.keys(e).forEach((t=>{var n=e[t];var i;var s=isAsync(n);var o=!s&&n.length===1||s&&n.length===0;if(Array.isArray(n)){i=[...n];n=i.pop();r[t]=i.concat(i.length>0?newTask:n)}else if(o){r[t]=n}else{i=parseParams(n);if(n.length===0&&!s&&i.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!s)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 o=[];const c={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function on(e,t){c[e].push(t)}function once(e,t){const handleAndRemove=(...r)=>{off(e,handleAndRemove);t(...r)};c[e].push(handleAndRemove)}function off(e,t){if(!e)return Object.keys(c).forEach((e=>c[e]=[]));if(!t)return c[e]=[];c[e]=c[e].filter((e=>e!==t))}function trigger(e,...t){c[e].forEach((e=>e(...t)))}var h=false;function _insert(e,t,r,n){if(n!=null&&typeof n!=="function"){throw new Error("task callback must be a function")}g.started=true;var i,o;function promiseCallback(e,...t){if(e)return r?o(e):i();if(t.length<=1)return i(t[0]);i(t)}var c=g._createTaskItem(e,r?promiseCallback:n||promiseCallback);if(t){g._tasks.unshift(c)}else{g._tasks.push(c)}if(!h){h=true;s((()=>{h=false;g.process()}))}if(r||!n){return new Promise(((e,t)=>{i=e;o=t}))}}function _createCB(e){return function(t,...r){i-=1;for(var n=0,s=e.length;n<s;n++){var c=e[n];var h=o.indexOf(c);if(h===0){o.shift()}else if(h>0){o.splice(h,1)}c.callback(t,...r);if(t!=null){trigger("error",t,c.data)}}if(i<=g.concurrency-g.buffer){trigger("unsaturated")}if(g.idle()){trigger("drain")}g.process()}}function _maybeDrain(e){if(e.length===0&&g.idle()){s((()=>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 p=false;var g={_tasks:new DLL,_createTaskItem(e,t){return{data:e,callback:t}},*[Symbol.iterator](){yield*g._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();g._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){g._tasks.remove(e)},process(){if(p){return}p=true;while(!g.paused&&i<g.concurrency&&g._tasks.length){var e=[],t=[];var r=g._tasks.length;if(g.payload)r=Math.min(r,g.payload);for(var s=0;s<r;s++){var c=g._tasks.shift();e.push(c);o.push(c);t.push(c.data)}i+=1;if(g._tasks.length===0){trigger("empty")}if(i===g.concurrency){trigger("saturated")}var h=onlyOnce(_createCB(e));n(t,h)}p=false},length(){return g._tasks.length},running(){return i},workersList(){return o},idle(){return g._tasks.length+i===0},pause(){g.paused=true},resume(){if(g.paused===false){return}g.paused=false;s(g.process)}};Object.defineProperties(g,{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 g}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 b(e,((e,r,n)=>{i(t,e,((e,r)=>{t=r;n(e)}))}),(e=>n(e,t)))}var R=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()}R(t,e,((e,t,n)=>{t.apply(r,e.concat(((e,...t)=>{n(e,t)})))}),((e,t)=>n(e,...t)));return n[w]}}function compose(...e){return seq(...e.reverse())}function mapLimit(e,t,r,n){return _asyncMap(eachOfLimit$2(t),e,r,n)}var C=awaitify(mapLimit,4);function concatLimit(e,t,r,n){var i=wrapAsync(r);return C(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 O=awaitify(concatLimit,4);function concat(e,t,r){return O(e,Infinity,t,r)}var P=awaitify(concat,3);function concatSeries(e,t,r){return O(e,1,t,r)}var A=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,s)=>{var o=false;var h;const p=wrapAsync(i);r(n,((r,n,i)=>{p(r,((n,s)=>{if(n||n===false)return i(n);if(e(s)&&!h){o=true;h=t(true,r);return i(null,c)}i()}))}),(e=>{if(e)return s(e);s(null,o?h:t(false))}))}}function detect(e,t,r){return _createTester((e=>e),((e,t)=>t))(p,e,t,r)}var I=awaitify(detect,3);function detectLimit(e,t,r,n){return _createTester((e=>e),((e,t)=>t))(eachOfLimit$2(t),e,r,n)}var N=awaitify(detectLimit,4);function detectSeries(e,t,r){return _createTester((e=>e),((e,t)=>t))(eachOfLimit$2(1),e,t,r)}var M=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 D=consoleFunc("dir");function doWhilst(e,t,r){r=onlyOnce(r);var n=wrapAsync(e);var i=wrapAsync(t);var s;function next(e,...t){if(e)return r(e);if(e===false)return;s=t;i(...t,check)}function check(e,t){if(e)return r(e);if(e===false)return;if(!t)return r(null,...s);n(next)}return check(null,true)}var L=awaitify(doWhilst,3);function doUntil(e,t,r){const n=wrapAsync(t);return L(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 p(e,_withoutIndex(wrapAsync(t)),r)}var j=awaitify(eachLimit$2,3);function eachLimit(e,t,r,n){return eachOfLimit$2(t)(e,_withoutIndex(wrapAsync(r)),n)}var F=awaitify(eachLimit,4);function eachSeries(e,t,r){return F(e,1,t,r)}var B=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){s((()=>r(...e)))}else{r(...e)}}));e.apply(this,t);n=false}}function every(e,t,r){return _createTester((e=>!e),(e=>!e))(p,e,t,r)}var W=awaitify(every,3);function everyLimit(e,t,r,n){return _createTester((e=>!e),(e=>!e))(eachOfLimit$2(t),e,r,n)}var H=awaitify(everyLimit,4);function everySeries(e,t,r){return _createTester((e=>!e),(e=>!e))(b,e,t,r)}var z=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 s=0;s<t.length;s++){if(i[s])r.push(t[s])}n(null,r)}))}function filterGeneric(e,t,r,n){var i=[];e(t,((e,t,n)=>{r(e,((r,s)=>{if(r)return n(r);if(s){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(p,e,t,r)}var U=awaitify(filter,3);function filterLimit(e,t,r,n){return _filter(eachOfLimit$2(t),e,r,n)}var $=awaitify(filterLimit,4);function filterSeries(e,t,r){return _filter(b,e,t,r)}var q=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 V=awaitify(forever,2);function groupByLimit(e,t,r,n){var i=wrapAsync(r);return C(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 s=0;s<t.length;s++){if(t[s]){var{key:o}=t[s];var{val:c}=t[s];if(i.call(r,o)){r[o].push(c)}else{r[o]=[c]}}}return n(e,r)}))}var X=awaitify(groupByLimit,4);function groupBy(e,t,r){return X(e,Infinity,t,r)}function groupBySeries(e,t,r){return X(e,1,t,r)}var G=consoleFunc("log");function mapValuesLimit(e,t,r,n){n=once(n);var i={};var s=wrapAsync(r);return eachOfLimit$2(t)(e,((e,t,r)=>{s(e,t,((e,n)=>{if(e)return r(e);i[t]=n;r(e)}))}),(e=>n(e,i)))}var K=awaitify(mapValuesLimit,4);function mapValues(e,t,r){return K(e,Infinity,t,r)}function mapValuesSeries(e,t,r){return K(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 o=initialParams(((e,o)=>{var c=t(...e);if(c in r){s((()=>o(null,...r[c])))}else if(c in n){n[c].push(o)}else{n[c]=[o];i(...e,((e,...t)=>{if(!e){r[c]=t}var i=n[c];delete n[c];for(var s=0,o=i.length;s<o;s++){i[s](e,...t)}}))}}));o.memo=r;o.unmemoized=e;return o}var Z;if(n){Z=process.nextTick}else if(r){Z=setImmediate}else{Z=fallback}var Y=wrap(Z);var Q=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 Q(p,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: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 J=awaitify(race,2);function reduceRight(e,t,r,n){var i=[...e].reverse();return R(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(p,e,t,r)}var ee=awaitify(reject,3);function rejectLimit(e,t,r,n){return reject$2(eachOfLimit$2(t),e,r,n)}var te=awaitify(rejectLimit,4);function rejectSeries(e,t,r){return reject$2(b,e,t,r)}var re=awaitify(rejectSeries,3);function constant(e){return function(){return e}}const ne=5;const ie=0;function retry(e,t,r){var n={times:ne,intervalFunc:constant(ie)};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 s=1;function retryAttempt(){i(((e,...t)=>{if(e===false)return;if(e&&s++<n.times&&(typeof n.errorFilter!="function"||n.errorFilter(e))){setTimeout(retryAttempt,n.intervalFunc(s-1))}else{r(e,...t)}}))}retryAttempt();return r[w]}function parseTimes(e,t){if(typeof t==="object"){e.times=+t.times||ne;e.intervalFunc=typeof t.interval==="function"?t.interval:constant(+t.interval||ie);e.errorFilter=t.errorFilter}else if(typeof t==="number"||typeof t==="string"){e.times=+t||ne}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[w]}))}function series(e,t){return Q(b,e,t)}function some(e,t,r){return _createTester(Boolean,(e=>e))(p,e,t,r)}var ae=awaitify(some,3);function someLimit(e,t,r,n){return _createTester(Boolean,(e=>e))(eachOfLimit$2(t),e,r,n)}var se=awaitify(someLimit,4);function someSeries(e,t,r){return _createTester(Boolean,(e=>e))(b,e,t,r)}var oe=awaitify(someSeries,3);function sortBy(e,t,r){var n=wrapAsync(t);return g(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 le=awaitify(sortBy,3);function timeout(e,t,r){var n=wrapAsync(e);return initialParams(((i,s)=>{var o=false;var c;function timeoutCallback(){var t=e.name||"anonymous";var n=new Error('Callback function "'+t+'" timed out.');n.code="ETIMEDOUT";if(r){n.info=r}o=true;s(n)}i.push(((...e)=>{if(!o){s(...e);clearTimeout(c)}}));c=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 C(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);p(e,((e,r,n)=>{i(t,e,r,n)}),(e=>n(e,t)));return n[w]}function tryEach(e,t){var r=null;var n;return B(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 ue=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 s=[];function next(e,...t){if(e)return r(e);s=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,...s);n(next)}return i(check)}var fe=awaitify(whilst,3);function until(e,t,r){const n=wrapAsync(e);return fe((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 ce=awaitify(waterfall);var he={apply:apply,applyEach:y,applyEachSeries:_,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo$1,cargoQueue:cargo,compose:compose,concat:P,concatLimit:O,concatSeries:A,constant:constant$1,detect:I,detectLimit:N,detectSeries:M,dir:D,doUntil:doUntil,doWhilst:L,each:j,eachLimit:F,eachOf:p,eachOfLimit:h,eachOfSeries:b,eachSeries:B,ensureAsync:ensureAsync,every:W,everyLimit:H,everySeries:z,filter:U,filterLimit:$,filterSeries:q,forever:V,groupBy:groupBy,groupByLimit:X,groupBySeries:groupBySeries,log:G,map:g,mapLimit:C,mapSeries:v,mapValues:mapValues,mapValuesLimit:K,mapValuesSeries:mapValuesSeries,memoize:memoize,nextTick:Y,parallel:parallel,parallelLimit:parallelLimit,priorityQueue:priorityQueue,queue:queue,race:J,reduce:R,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:ee,rejectLimit:te,rejectSeries:re,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:s,some:ae,someLimit:se,someSeries:oe,sortBy:le,timeout:timeout,times:times,timesLimit:timesLimit,timesSeries:timesSeries,transform:transform,tryEach:ue,unmemoize:unmemoize,until:until,waterfall:ce,whilst:fe,all:W,allLimit:H,allSeries:z,any:ae,anyLimit:se,anySeries:oe,find:I,findLimit:N,findSeries:M,flatMap:P,flatMapLimit:O,flatMapSeries:A,forEach:j,forEachSeries:B,forEachLimit:F,forEachOf:p,forEachOfSeries:b,forEachOfLimit:h,inject:R,foldl:R,foldr:reduceRight,select:U,selectLimit:$,selectSeries:q,wrapSync:asyncify,during:fe,doDuring:L};e.all=W;e.allLimit=H;e.allSeries=z;e.any=ae;e.anyLimit=se;e.anySeries=oe;e.apply=apply;e.applyEach=y;e.applyEachSeries=_;e.asyncify=asyncify;e.auto=auto;e.autoInject=autoInject;e.cargo=cargo$1;e.cargoQueue=cargo;e.compose=compose;e.concat=P;e.concatLimit=O;e.concatSeries=A;e.constant=constant$1;e.default=he;e.detect=I;e.detectLimit=N;e.detectSeries=M;e.dir=D;e.doDuring=L;e.doUntil=doUntil;e.doWhilst=L;e.during=fe;e.each=j;e.eachLimit=F;e.eachOf=p;e.eachOfLimit=h;e.eachOfSeries=b;e.eachSeries=B;e.ensureAsync=ensureAsync;e.every=W;e.everyLimit=H;e.everySeries=z;e.filter=U;e.filterLimit=$;e.filterSeries=q;e.find=I;e.findLimit=N;e.findSeries=M;e.flatMap=P;e.flatMapLimit=O;e.flatMapSeries=A;e.foldl=R;e.foldr=reduceRight;e.forEach=j;e.forEachLimit=F;e.forEachOf=p;e.forEachOfLimit=h;e.forEachOfSeries=b;e.forEachSeries=B;e.forever=V;e.groupBy=groupBy;e.groupByLimit=X;e.groupBySeries=groupBySeries;e.inject=R;e.log=G;e.map=g;e.mapLimit=C;e.mapSeries=v;e.mapValues=mapValues;e.mapValuesLimit=K;e.mapValuesSeries=mapValuesSeries;e.memoize=memoize;e.nextTick=Y;e.parallel=parallel;e.parallelLimit=parallelLimit;e.priorityQueue=priorityQueue;e.queue=queue;e.race=J;e.reduce=R;e.reduceRight=reduceRight;e.reflect=reflect;e.reflectAll=reflectAll;e.reject=ee;e.rejectLimit=te;e.rejectSeries=re;e.retry=retry;e.retryable=retryable;e.select=U;e.selectLimit=$;e.selectSeries=q;e.seq=seq;e.series=series;e.setImmediate=s;e.some=ae;e.someLimit=se;e.someSeries=oe;e.sortBy=le;e.timeout=timeout;e.times=times;e.timesLimit=timesLimit;e.timesSeries=timesSeries;e.transform=transform;e.tryEach=ue;e.unmemoize=unmemoize;e.until=until;e.waterfall=ce;e.whilst=fe;e.wrapSync=asyncify;Object.defineProperty(e,"__esModule",{value:true})}))},9417: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,s,o,c;var h=r.indexOf(e);var p=r.indexOf(t,h+1);var g=h;if(h>=0&&p>0){if(e===t){return[h,p]}n=[];s=r.length;while(g>=0&&!c){if(g==h){n.push(g);h=r.indexOf(e,g+1)}else if(n.length==1){c=[n.pop(),p]}else{i=n.pop();if(i<s){s=i;o=p}p=r.indexOf(t,g+1)}g=h<p&&h>=0?h:p}if(n.length){c=[s,o]}}return c}},41575:function(e,t,r){e=r.nmd(e);var n=function(e){"use strict";var t=1e7,r=7,i=9007199254740992,s=smallToArray(i),o="0123456789abcdefghijklmnopqrstuvwxyz";var c=typeof BigInt==="function";function Integer(e,t,r,n){if(typeof e==="undefined")return Integer[0];if(typeof t!=="undefined")return+t===10&&!r?parseValue(e):parseBase(e,t,r,n);return parseValue(e)}function BigInteger(e,t){this.value=e;this.sign=t;this.isSmall=false}BigInteger.prototype=Object.create(Integer.prototype);function SmallInteger(e){this.value=e;this.sign=e<0;this.isSmall=true}SmallInteger.prototype=Object.create(Integer.prototype);function NativeBigInt(e){this.value=e}NativeBigInt.prototype=Object.create(Integer.prototype);function isPrecise(e){return-i<e&&e<i}function smallToArray(e){if(e<1e7)return[e];if(e<1e14)return[e%1e7,Math.floor(e/1e7)];return[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function arrayToSmall(e){trim(e);var r=e.length;if(r<4&&compareAbs(e,s)<0){switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*t;default:return e[0]+(e[1]+e[2]*t)*t}}return e}function trim(e){var t=e.length;while(e[--t]===0);e.length=t+1}function createArray(e){var t=new Array(e);var r=-1;while(++r<e){t[r]=0}return t}function truncate(e){if(e>0)return Math.floor(e);return Math.ceil(e)}function add(e,r){var n=e.length,i=r.length,s=new Array(n),o=0,c=t,h,p;for(p=0;p<i;p++){h=e[p]+r[p]+o;o=h>=c?1:0;s[p]=h-o*c}while(p<n){h=e[p]+o;o=h===c?1:0;s[p++]=h-o*c}if(o>0)s.push(o);return s}function addAny(e,t){if(e.length>=t.length)return add(e,t);return add(t,e)}function addSmall(e,r){var n=e.length,i=new Array(n),s=t,o,c;for(c=0;c<n;c++){o=e[c]-s+r;r=Math.floor(o/s);i[c]=o-r*s;r+=1}while(r>0){i[c++]=r%s;r=Math.floor(r/s)}return i}BigInteger.prototype.add=function(e){var t=parseValue(e);if(this.sign!==t.sign){return this.subtract(t.negate())}var r=this.value,n=t.value;if(t.isSmall){return new BigInteger(addSmall(r,Math.abs(n)),this.sign)}return new BigInteger(addAny(r,n),this.sign)};BigInteger.prototype.plus=BigInteger.prototype.add;SmallInteger.prototype.add=function(e){var t=parseValue(e);var r=this.value;if(r<0!==t.sign){return this.subtract(t.negate())}var n=t.value;if(t.isSmall){if(isPrecise(r+n))return new SmallInteger(r+n);n=smallToArray(Math.abs(n))}return new BigInteger(addSmall(n,Math.abs(r)),r<0)};SmallInteger.prototype.plus=SmallInteger.prototype.add;NativeBigInt.prototype.add=function(e){return new NativeBigInt(this.value+parseValue(e).value)};NativeBigInt.prototype.plus=NativeBigInt.prototype.add;function subtract(e,r){var n=e.length,i=r.length,s=new Array(n),o=0,c=t,h,p;for(h=0;h<i;h++){p=e[h]-o-r[h];if(p<0){p+=c;o=1}else o=0;s[h]=p}for(h=i;h<n;h++){p=e[h]-o;if(p<0)p+=c;else{s[h++]=p;break}s[h]=p}for(;h<n;h++){s[h]=e[h]}trim(s);return s}function subtractAny(e,t,r){var n;if(compareAbs(e,t)>=0){n=subtract(e,t)}else{n=subtract(t,e);r=!r}n=arrayToSmall(n);if(typeof n==="number"){if(r)n=-n;return new SmallInteger(n)}return new BigInteger(n,r)}function subtractSmall(e,r,n){var i=e.length,s=new Array(i),o=-r,c=t,h,p;for(h=0;h<i;h++){p=e[h]+o;o=Math.floor(p/c);p%=c;s[h]=p<0?p+c:p}s=arrayToSmall(s);if(typeof s==="number"){if(n)s=-s;return new SmallInteger(s)}return new BigInteger(s,n)}BigInteger.prototype.subtract=function(e){var t=parseValue(e);if(this.sign!==t.sign){return this.add(t.negate())}var r=this.value,n=t.value;if(t.isSmall)return subtractSmall(r,Math.abs(n),this.sign);return subtractAny(r,n,this.sign)};BigInteger.prototype.minus=BigInteger.prototype.subtract;SmallInteger.prototype.subtract=function(e){var t=parseValue(e);var r=this.value;if(r<0!==t.sign){return this.add(t.negate())}var n=t.value;if(t.isSmall){return new SmallInteger(r-n)}return subtractSmall(n,Math.abs(r),r>=0)};SmallInteger.prototype.minus=SmallInteger.prototype.subtract;NativeBigInt.prototype.subtract=function(e){return new NativeBigInt(this.value-parseValue(e).value)};NativeBigInt.prototype.minus=NativeBigInt.prototype.subtract;BigInteger.prototype.negate=function(){return new BigInteger(this.value,!this.sign)};SmallInteger.prototype.negate=function(){var e=this.sign;var t=new SmallInteger(-this.value);t.sign=!e;return t};NativeBigInt.prototype.negate=function(){return new NativeBigInt(-this.value)};BigInteger.prototype.abs=function(){return new BigInteger(this.value,false)};SmallInteger.prototype.abs=function(){return new SmallInteger(Math.abs(this.value))};NativeBigInt.prototype.abs=function(){return new NativeBigInt(this.value>=0?this.value:-this.value)};function multiplyLong(e,r){var n=e.length,i=r.length,s=n+i,o=createArray(s),c=t,h,p,g,y,b;for(g=0;g<n;++g){y=e[g];for(var v=0;v<i;++v){b=r[v];h=y*b+o[g+v];p=Math.floor(h/c);o[g+v]=h-p*c;o[g+v+1]+=p}}trim(o);return o}function multiplySmall(e,r){var n=e.length,i=new Array(n),s=t,o=0,c,h;for(h=0;h<n;h++){c=e[h]*r+o;o=Math.floor(c/s);i[h]=c-o*s}while(o>0){i[h++]=o%s;o=Math.floor(o/s)}return i}function shiftLeft(e,t){var r=[];while(t-- >0)r.push(0);return r.concat(e)}function multiplyKaratsuba(e,t){var r=Math.max(e.length,t.length);if(r<=30)return multiplyLong(e,t);r=Math.ceil(r/2);var n=e.slice(r),i=e.slice(0,r),s=t.slice(r),o=t.slice(0,r);var c=multiplyKaratsuba(i,o),h=multiplyKaratsuba(n,s),p=multiplyKaratsuba(addAny(i,n),addAny(o,s));var g=addAny(addAny(c,shiftLeft(subtract(subtract(p,c),h),r)),shiftLeft(h,2*r));trim(g);return g}function useKaratsuba(e,t){return-.012*e-.012*t+15e-6*e*t>0}BigInteger.prototype.multiply=function(e){var r=parseValue(e),n=this.value,i=r.value,s=this.sign!==r.sign,o;if(r.isSmall){if(i===0)return Integer[0];if(i===1)return this;if(i===-1)return this.negate();o=Math.abs(i);if(o<t){return new BigInteger(multiplySmall(n,o),s)}i=smallToArray(o)}if(useKaratsuba(n.length,i.length))return new BigInteger(multiplyKaratsuba(n,i),s);return new BigInteger(multiplyLong(n,i),s)};BigInteger.prototype.times=BigInteger.prototype.multiply;function multiplySmallAndArray(e,r,n){if(e<t){return new BigInteger(multiplySmall(r,e),n)}return new BigInteger(multiplyLong(r,smallToArray(e)),n)}SmallInteger.prototype._multiplyBySmall=function(e){if(isPrecise(e.value*this.value)){return new SmallInteger(e.value*this.value)}return multiplySmallAndArray(Math.abs(e.value),smallToArray(Math.abs(this.value)),this.sign!==e.sign)};BigInteger.prototype._multiplyBySmall=function(e){if(e.value===0)return Integer[0];if(e.value===1)return this;if(e.value===-1)return this.negate();return multiplySmallAndArray(Math.abs(e.value),this.value,this.sign!==e.sign)};SmallInteger.prototype.multiply=function(e){return parseValue(e)._multiplyBySmall(this)};SmallInteger.prototype.times=SmallInteger.prototype.multiply;NativeBigInt.prototype.multiply=function(e){return new NativeBigInt(this.value*parseValue(e).value)};NativeBigInt.prototype.times=NativeBigInt.prototype.multiply;function square(e){var r=e.length,n=createArray(r+r),i=t,s,o,c,h,p;for(c=0;c<r;c++){h=e[c];o=0-h*h;for(var g=c;g<r;g++){p=e[g];s=2*(h*p)+n[c+g]+o;o=Math.floor(s/i);n[c+g]=s-o*i}n[c+r]=o}trim(n);return n}BigInteger.prototype.square=function(){return new BigInteger(square(this.value),false)};SmallInteger.prototype.square=function(){var e=this.value*this.value;if(isPrecise(e))return new SmallInteger(e);return new BigInteger(square(smallToArray(Math.abs(this.value))),false)};NativeBigInt.prototype.square=function(e){return new NativeBigInt(this.value*this.value)};function divMod1(e,r){var n=e.length,i=r.length,s=t,o=createArray(r.length),c=r[i-1],h=Math.ceil(s/(2*c)),p=multiplySmall(e,h),g=multiplySmall(r,h),y,b,v,_,w,S,k;if(p.length<=n)p.push(0);g.push(0);c=g[i-1];for(b=n-i;b>=0;b--){y=s-1;if(p[b+i]!==c){y=Math.floor((p[b+i]*s+p[b+i-1])/c)}v=0;_=0;S=g.length;for(w=0;w<S;w++){v+=y*g[w];k=Math.floor(v/s);_+=p[b+w]-(v-k*s);v=k;if(_<0){p[b+w]=_+s;_=-1}else{p[b+w]=_;_=0}}while(_!==0){y-=1;v=0;for(w=0;w<S;w++){v+=p[b+w]-s+g[w];if(v<0){p[b+w]=v+s;v=0}else{p[b+w]=v;v=1}}_+=v}o[b]=y}p=divModSmall(p,h)[0];return[arrayToSmall(o),arrayToSmall(p)]}function divMod2(e,r){var n=e.length,i=r.length,s=[],o=[],c=t,h,p,g,y,b;while(n){o.unshift(e[--n]);trim(o);if(compareAbs(o,r)<0){s.push(0);continue}p=o.length;g=o[p-1]*c+o[p-2];y=r[i-1]*c+r[i-2];if(p>i){g=(g+1)*c}h=Math.ceil(g/y);do{b=multiplySmall(r,h);if(compareAbs(b,o)<=0)break;h--}while(h);s.push(h);o=subtract(o,b)}s.reverse();return[arrayToSmall(s),arrayToSmall(o)]}function divModSmall(e,r){var n=e.length,i=createArray(n),s=t,o,c,h,p;h=0;for(o=n-1;o>=0;--o){p=h*s+e[o];c=truncate(p/r);h=p-c*r;i[o]=c|0}return[i,h|0]}function divModAny(e,r){var n,i=parseValue(r);if(c){return[new NativeBigInt(e.value/i.value),new NativeBigInt(e.value%i.value)]}var s=e.value,o=i.value;var h;if(o===0)throw new Error("Cannot divide by zero");if(e.isSmall){if(i.isSmall){return[new SmallInteger(truncate(s/o)),new SmallInteger(s%o)]}return[Integer[0],e]}if(i.isSmall){if(o===1)return[e,Integer[0]];if(o==-1)return[e.negate(),Integer[0]];var p=Math.abs(o);if(p<t){n=divModSmall(s,p);h=arrayToSmall(n[0]);var g=n[1];if(e.sign)g=-g;if(typeof h==="number"){if(e.sign!==i.sign)h=-h;return[new SmallInteger(h),new SmallInteger(g)]}return[new BigInteger(h,e.sign!==i.sign),new SmallInteger(g)]}o=smallToArray(p)}var y=compareAbs(s,o);if(y===-1)return[Integer[0],e];if(y===0)return[Integer[e.sign===i.sign?1:-1],Integer[0]];if(s.length+o.length<=200)n=divMod1(s,o);else n=divMod2(s,o);h=n[0];var b=e.sign!==i.sign,v=n[1],_=e.sign;if(typeof h==="number"){if(b)h=-h;h=new SmallInteger(h)}else h=new BigInteger(h,b);if(typeof v==="number"){if(_)v=-v;v=new SmallInteger(v)}else v=new BigInteger(v,_);return[h,v]}BigInteger.prototype.divmod=function(e){var t=divModAny(this,e);return{quotient:t[0],remainder:t[1]}};NativeBigInt.prototype.divmod=SmallInteger.prototype.divmod=BigInteger.prototype.divmod;BigInteger.prototype.divide=function(e){return divModAny(this,e)[0]};NativeBigInt.prototype.over=NativeBigInt.prototype.divide=function(e){return new NativeBigInt(this.value/parseValue(e).value)};SmallInteger.prototype.over=SmallInteger.prototype.divide=BigInteger.prototype.over=BigInteger.prototype.divide;BigInteger.prototype.mod=function(e){return divModAny(this,e)[1]};NativeBigInt.prototype.mod=NativeBigInt.prototype.remainder=function(e){return new NativeBigInt(this.value%parseValue(e).value)};SmallInteger.prototype.remainder=SmallInteger.prototype.mod=BigInteger.prototype.remainder=BigInteger.prototype.mod;BigInteger.prototype.pow=function(e){var t=parseValue(e),r=this.value,n=t.value,i,s,o;if(n===0)return Integer[1];if(r===0)return Integer[0];if(r===1)return Integer[1];if(r===-1)return t.isEven()?Integer[1]:Integer[-1];if(t.sign){return Integer[0]}if(!t.isSmall)throw new Error("The exponent "+t.toString()+" is too large.");if(this.isSmall){if(isPrecise(i=Math.pow(r,n)))return new SmallInteger(truncate(i))}s=this;o=Integer[1];while(true){if(n&1===1){o=o.times(s);--n}if(n===0)break;n/=2;s=s.square()}return o};SmallInteger.prototype.pow=BigInteger.prototype.pow;NativeBigInt.prototype.pow=function(e){var t=parseValue(e);var r=this.value,n=t.value;var i=BigInt(0),s=BigInt(1),o=BigInt(2);if(n===i)return Integer[1];if(r===i)return Integer[0];if(r===s)return Integer[1];if(r===BigInt(-1))return t.isEven()?Integer[1]:Integer[-1];if(t.isNegative())return new NativeBigInt(i);var c=this;var h=Integer[1];while(true){if((n&s)===s){h=h.times(c);--n}if(n===i)break;n/=o;c=c.square()}return h};BigInteger.prototype.modPow=function(e,t){e=parseValue(e);t=parseValue(t);if(t.isZero())throw new Error("Cannot take modPow with modulus 0");var r=Integer[1],n=this.mod(t);if(e.isNegative()){e=e.multiply(Integer[-1]);n=n.modInv(t)}while(e.isPositive()){if(n.isZero())return Integer[0];if(e.isOdd())r=r.multiply(n).mod(t);e=e.divide(2);n=n.square().mod(t)}return r};NativeBigInt.prototype.modPow=SmallInteger.prototype.modPow=BigInteger.prototype.modPow;function compareAbs(e,t){if(e.length!==t.length){return e.length>t.length?1:-1}for(var r=e.length-1;r>=0;r--){if(e[r]!==t[r])return e[r]>t[r]?1:-1}return 0}BigInteger.prototype.compareAbs=function(e){var t=parseValue(e),r=this.value,n=t.value;if(t.isSmall)return 1;return compareAbs(r,n)};SmallInteger.prototype.compareAbs=function(e){var t=parseValue(e),r=Math.abs(this.value),n=t.value;if(t.isSmall){n=Math.abs(n);return r===n?0:r>n?1:-1}return-1};NativeBigInt.prototype.compareAbs=function(e){var t=this.value;var r=parseValue(e).value;t=t>=0?t:-t;r=r>=0?r:-r;return t===r?0:t>r?1:-1};BigInteger.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var t=parseValue(e),r=this.value,n=t.value;if(this.sign!==t.sign){return t.sign?1:-1}if(t.isSmall){return this.sign?-1:1}return compareAbs(r,n)*(this.sign?-1:1)};BigInteger.prototype.compareTo=BigInteger.prototype.compare;SmallInteger.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var t=parseValue(e),r=this.value,n=t.value;if(t.isSmall){return r==n?0:r>n?1:-1}if(r<0!==t.sign){return r<0?-1:1}return r<0?1:-1};SmallInteger.prototype.compareTo=SmallInteger.prototype.compare;NativeBigInt.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var t=this.value;var r=parseValue(e).value;return t===r?0:t>r?1:-1};NativeBigInt.prototype.compareTo=NativeBigInt.prototype.compare;BigInteger.prototype.equals=function(e){return this.compare(e)===0};NativeBigInt.prototype.eq=NativeBigInt.prototype.equals=SmallInteger.prototype.eq=SmallInteger.prototype.equals=BigInteger.prototype.eq=BigInteger.prototype.equals;BigInteger.prototype.notEquals=function(e){return this.compare(e)!==0};NativeBigInt.prototype.neq=NativeBigInt.prototype.notEquals=SmallInteger.prototype.neq=SmallInteger.prototype.notEquals=BigInteger.prototype.neq=BigInteger.prototype.notEquals;BigInteger.prototype.greater=function(e){return this.compare(e)>0};NativeBigInt.prototype.gt=NativeBigInt.prototype.greater=SmallInteger.prototype.gt=SmallInteger.prototype.greater=BigInteger.prototype.gt=BigInteger.prototype.greater;BigInteger.prototype.lesser=function(e){return this.compare(e)<0};NativeBigInt.prototype.lt=NativeBigInt.prototype.lesser=SmallInteger.prototype.lt=SmallInteger.prototype.lesser=BigInteger.prototype.lt=BigInteger.prototype.lesser;BigInteger.prototype.greaterOrEquals=function(e){return this.compare(e)>=0};NativeBigInt.prototype.geq=NativeBigInt.prototype.greaterOrEquals=SmallInteger.prototype.geq=SmallInteger.prototype.greaterOrEquals=BigInteger.prototype.geq=BigInteger.prototype.greaterOrEquals;BigInteger.prototype.lesserOrEquals=function(e){return this.compare(e)<=0};NativeBigInt.prototype.leq=NativeBigInt.prototype.lesserOrEquals=SmallInteger.prototype.leq=SmallInteger.prototype.lesserOrEquals=BigInteger.prototype.leq=BigInteger.prototype.lesserOrEquals;BigInteger.prototype.isEven=function(){return(this.value[0]&1)===0};SmallInteger.prototype.isEven=function(){return(this.value&1)===0};NativeBigInt.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)};BigInteger.prototype.isOdd=function(){return(this.value[0]&1)===1};SmallInteger.prototype.isOdd=function(){return(this.value&1)===1};NativeBigInt.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)};BigInteger.prototype.isPositive=function(){return!this.sign};SmallInteger.prototype.isPositive=function(){return this.value>0};NativeBigInt.prototype.isPositive=SmallInteger.prototype.isPositive;BigInteger.prototype.isNegative=function(){return this.sign};SmallInteger.prototype.isNegative=function(){return this.value<0};NativeBigInt.prototype.isNegative=SmallInteger.prototype.isNegative;BigInteger.prototype.isUnit=function(){return false};SmallInteger.prototype.isUnit=function(){return Math.abs(this.value)===1};NativeBigInt.prototype.isUnit=function(){return this.abs().value===BigInt(1)};BigInteger.prototype.isZero=function(){return false};SmallInteger.prototype.isZero=function(){return this.value===0};NativeBigInt.prototype.isZero=function(){return this.value===BigInt(0)};BigInteger.prototype.isDivisibleBy=function(e){var t=parseValue(e);if(t.isZero())return false;if(t.isUnit())return true;if(t.compareAbs(2)===0)return this.isEven();return this.mod(t).isZero()};NativeBigInt.prototype.isDivisibleBy=SmallInteger.prototype.isDivisibleBy=BigInteger.prototype.isDivisibleBy;function isBasicPrime(e){var t=e.abs();if(t.isUnit())return false;if(t.equals(2)||t.equals(3)||t.equals(5))return true;if(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))return false;if(t.lesser(49))return true}function millerRabinTest(e,t){var r=e.prev(),i=r,s=0,o,c,h,p;while(i.isEven())i=i.divide(2),s++;e:for(h=0;h<t.length;h++){if(e.lesser(t[h]))continue;p=n(t[h]).modPow(i,e);if(p.isUnit()||p.equals(r))continue;for(o=s-1;o!=0;o--){p=p.square().mod(e);if(p.isUnit())return false;if(p.equals(r))continue e}return false}return true}BigInteger.prototype.isPrime=function(t){var r=isBasicPrime(this);if(r!==e)return r;var i=this.abs();var s=i.bitLength();if(s<=64)return millerRabinTest(i,[2,3,5,7,11,13,17,19,23,29,31,37]);var o=Math.log(2)*s.toJSNumber();var c=Math.ceil(t===true?2*Math.pow(o,2):o);for(var h=[],p=0;p<c;p++){h.push(n(p+2))}return millerRabinTest(i,h)};NativeBigInt.prototype.isPrime=SmallInteger.prototype.isPrime=BigInteger.prototype.isPrime;BigInteger.prototype.isProbablePrime=function(t,r){var i=isBasicPrime(this);if(i!==e)return i;var s=this.abs();var o=t===e?5:t;for(var c=[],h=0;h<o;h++){c.push(n.randBetween(2,s.minus(2),r))}return millerRabinTest(s,c)};NativeBigInt.prototype.isProbablePrime=SmallInteger.prototype.isProbablePrime=BigInteger.prototype.isProbablePrime;BigInteger.prototype.modInv=function(e){var t=n.zero,r=n.one,i=parseValue(e),s=this.abs(),o,c,h;while(!s.isZero()){o=i.divide(s);c=t;h=i;t=r;i=s;r=c.subtract(o.multiply(r));s=h.subtract(o.multiply(s))}if(!i.isUnit())throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");if(t.compare(0)===-1){t=t.add(e)}if(this.isNegative()){return t.negate()}return t};NativeBigInt.prototype.modInv=SmallInteger.prototype.modInv=BigInteger.prototype.modInv;BigInteger.prototype.next=function(){var e=this.value;if(this.sign){return subtractSmall(e,1,this.sign)}return new BigInteger(addSmall(e,1),this.sign)};SmallInteger.prototype.next=function(){var e=this.value;if(e+1<i)return new SmallInteger(e+1);return new BigInteger(s,false)};NativeBigInt.prototype.next=function(){return new NativeBigInt(this.value+BigInt(1))};BigInteger.prototype.prev=function(){var e=this.value;if(this.sign){return new BigInteger(addSmall(e,1),true)}return subtractSmall(e,1,this.sign)};SmallInteger.prototype.prev=function(){var e=this.value;if(e-1>-i)return new SmallInteger(e-1);return new BigInteger(s,true)};NativeBigInt.prototype.prev=function(){return new NativeBigInt(this.value-BigInt(1))};var h=[1];while(2*h[h.length-1]<=t)h.push(2*h[h.length-1]);var p=h.length,g=h[p-1];function shift_isSmall(e){return Math.abs(e)<=t}BigInteger.prototype.shiftLeft=function(e){var t=parseValue(e).toJSNumber();if(!shift_isSmall(t)){throw new Error(String(t)+" is too large for shifting.")}if(t<0)return this.shiftRight(-t);var r=this;if(r.isZero())return r;while(t>=p){r=r.multiply(g);t-=p-1}return r.multiply(h[t])};NativeBigInt.prototype.shiftLeft=SmallInteger.prototype.shiftLeft=BigInteger.prototype.shiftLeft;BigInteger.prototype.shiftRight=function(e){var t;var r=parseValue(e).toJSNumber();if(!shift_isSmall(r)){throw new Error(String(r)+" is too large for shifting.")}if(r<0)return this.shiftLeft(-r);var n=this;while(r>=p){if(n.isZero()||n.isNegative()&&n.isUnit())return n;t=divModAny(n,g);n=t[1].isNegative()?t[0].prev():t[0];r-=p-1}t=divModAny(n,h[r]);return t[1].isNegative()?t[0].prev():t[0]};NativeBigInt.prototype.shiftRight=SmallInteger.prototype.shiftRight=BigInteger.prototype.shiftRight;function bitwise(e,t,r){t=parseValue(t);var i=e.isNegative(),s=t.isNegative();var o=i?e.not():e,c=s?t.not():t;var h=0,p=0;var y=null,b=null;var v=[];while(!o.isZero()||!c.isZero()){y=divModAny(o,g);h=y[1].toJSNumber();if(i){h=g-1-h}b=divModAny(c,g);p=b[1].toJSNumber();if(s){p=g-1-p}o=y[0];c=b[0];v.push(r(h,p))}var _=r(i?1:0,s?1:0)!==0?n(-1):n(0);for(var w=v.length-1;w>=0;w-=1){_=_.multiply(g).add(n(v[w]))}return _}BigInteger.prototype.not=function(){return this.negate().prev()};NativeBigInt.prototype.not=SmallInteger.prototype.not=BigInteger.prototype.not;BigInteger.prototype.and=function(e){return bitwise(this,e,(function(e,t){return e&t}))};NativeBigInt.prototype.and=SmallInteger.prototype.and=BigInteger.prototype.and;BigInteger.prototype.or=function(e){return bitwise(this,e,(function(e,t){return e|t}))};NativeBigInt.prototype.or=SmallInteger.prototype.or=BigInteger.prototype.or;BigInteger.prototype.xor=function(e){return bitwise(this,e,(function(e,t){return e^t}))};NativeBigInt.prototype.xor=SmallInteger.prototype.xor=BigInteger.prototype.xor;var y=1<<30,b=(t&-t)*(t&-t)|y;function roughLOB(e){var r=e.value,n=typeof r==="number"?r|y:typeof r==="bigint"?r|BigInt(y):r[0]+r[1]*t|b;return n&-n}function integerLogarithm(e,t){if(t.compareTo(e)<=0){var r=integerLogarithm(e,t.square(t));var i=r.p;var s=r.e;var o=i.multiply(t);return o.compareTo(e)<=0?{p:o,e:s*2+1}:{p:i,e:s*2}}return{p:n(1),e:0}}BigInteger.prototype.bitLength=function(){var e=this;if(e.compareTo(n(0))<0){e=e.negate().subtract(n(1))}if(e.compareTo(n(0))===0){return n(0)}return n(integerLogarithm(e,n(2)).e).add(n(1))};NativeBigInt.prototype.bitLength=SmallInteger.prototype.bitLength=BigInteger.prototype.bitLength;function max(e,t){e=parseValue(e);t=parseValue(t);return e.greater(t)?e:t}function min(e,t){e=parseValue(e);t=parseValue(t);return e.lesser(t)?e:t}function gcd(e,t){e=parseValue(e).abs();t=parseValue(t).abs();if(e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;var r=Integer[1],n,i;while(e.isEven()&&t.isEven()){n=min(roughLOB(e),roughLOB(t));e=e.divide(n);t=t.divide(n);r=r.multiply(n)}while(e.isEven()){e=e.divide(roughLOB(e))}do{while(t.isEven()){t=t.divide(roughLOB(t))}if(e.greater(t)){i=t;t=e;e=i}t=t.subtract(e)}while(!t.isZero());return r.isUnit()?e:e.multiply(r)}function lcm(e,t){e=parseValue(e).abs();t=parseValue(t).abs();return e.divide(gcd(e,t)).multiply(t)}function randBetween(e,r,n){e=parseValue(e);r=parseValue(r);var i=n||Math.random;var s=min(e,r),o=max(e,r);var c=o.subtract(s).add(1);if(c.isSmall)return s.add(Math.floor(i()*c));var h=toBase(c,t).value;var p=[],g=true;for(var y=0;y<h.length;y++){var b=g?h[y]+(y+1<h.length?h[y+1]/t:0):t;var v=truncate(i()*b);p.push(v);if(v<h[y])g=false}return s.add(Integer.fromArray(p,t,false))}var parseBase=function(e,t,r,n){r=r||o;e=String(e);if(!n){e=e.toLowerCase();r=r.toLowerCase()}var i=e.length;var s;var c=Math.abs(t);var h={};for(s=0;s<r.length;s++){h[r[s]]=s}for(s=0;s<i;s++){var p=e[s];if(p==="-")continue;if(p in h){if(h[p]>=c){if(p==="1"&&c===1)continue;throw new Error(p+" is not a valid digit in base "+t+".")}}}t=parseValue(t);var g=[];var y=e[0]==="-";for(s=y?1:0;s<e.length;s++){var p=e[s];if(p in h)g.push(parseValue(h[p]));else if(p==="<"){var b=s;do{s++}while(e[s]!==">"&&s<e.length);g.push(parseValue(e.slice(b+1,s)))}else throw new Error(p+" is not a valid character")}return parseBaseFromArray(g,t,y)};function parseBaseFromArray(e,t,r){var n=Integer[0],i=Integer[1],s;for(s=e.length-1;s>=0;s--){n=n.add(e[s].times(i));i=i.times(t)}return r?n.negate():n}function stringify(e,t){t=t||o;if(e<t.length){return t[e]}return"<"+e+">"}function toBase(e,t){t=n(t);if(t.isZero()){if(e.isZero())return{value:[0],isNegative:false};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:false};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);r.unshift([1]);return{value:[].concat.apply([],r),isNegative:false}}var i=false;if(e.isNegative()&&t.isPositive()){i=true;e=e.abs()}if(t.isUnit()){if(e.isZero())return{value:[0],isNegative:false};return{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i}}var s=[];var o=e,c;while(o.isNegative()||o.compareAbs(t)>=0){c=o.divmod(t);o=c.quotient;var h=c.remainder;if(h.isNegative()){h=t.minus(h).abs();o=o.next()}s.push(h.toJSNumber())}s.push(o.toJSNumber());return{value:s.reverse(),isNegative:i}}function toBaseString(e,t,r){var n=toBase(e,t);return(n.isNegative?"-":"")+n.value.map((function(e){return stringify(e,r)})).join("")}BigInteger.prototype.toArray=function(e){return toBase(this,e)};SmallInteger.prototype.toArray=function(e){return toBase(this,e)};NativeBigInt.prototype.toArray=function(e){return toBase(this,e)};BigInteger.prototype.toString=function(t,r){if(t===e)t=10;if(t!==10||r)return toBaseString(this,t,r);var n=this.value,i=n.length,s=String(n[--i]),o="0000000",c;while(--i>=0){c=String(n[i]);s+=o.slice(c.length)+c}var h=this.sign?"-":"";return h+s};SmallInteger.prototype.toString=function(t,r){if(t===e)t=10;if(t!=10||r)return toBaseString(this,t,r);return String(this.value)};NativeBigInt.prototype.toString=SmallInteger.prototype.toString;NativeBigInt.prototype.toJSON=BigInteger.prototype.toJSON=SmallInteger.prototype.toJSON=function(){return this.toString()};BigInteger.prototype.valueOf=function(){return parseInt(this.toString(),10)};BigInteger.prototype.toJSNumber=BigInteger.prototype.valueOf;SmallInteger.prototype.valueOf=function(){return this.value};SmallInteger.prototype.toJSNumber=SmallInteger.prototype.valueOf;NativeBigInt.prototype.valueOf=NativeBigInt.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function parseStringValue(e){if(isPrecise(+e)){var t=+e;if(t===truncate(t))return c?new NativeBigInt(BigInt(t)):new SmallInteger(t);throw new Error("Invalid integer: "+e)}var n=e[0]==="-";if(n)e=e.slice(1);var i=e.split(/e/i);if(i.length>2)throw new Error("Invalid integer: "+i.join("e"));if(i.length===2){var s=i[1];if(s[0]==="+")s=s.slice(1);s=+s;if(s!==truncate(s)||!isPrecise(s))throw new Error("Invalid integer: "+s+" is not a valid exponent.");var o=i[0];var h=o.indexOf(".");if(h>=0){s-=o.length-h-1;o=o.slice(0,h)+o.slice(h+1)}if(s<0)throw new Error("Cannot include negative exponent part for integers");o+=new Array(s+1).join("0");e=o}var p=/^([0-9][0-9]*)$/.test(e);if(!p)throw new Error("Invalid integer: "+e);if(c){return new NativeBigInt(BigInt(n?"-"+e:e))}var g=[],y=e.length,b=r,v=y-b;while(y>0){g.push(+e.slice(v,y));v-=b;if(v<0)v=0;y-=b}trim(g);return new BigInteger(g,n)}function parseNumberValue(e){if(c){return new NativeBigInt(BigInt(e))}if(isPrecise(e)){if(e!==truncate(e))throw new Error(e+" is not an integer.");return new SmallInteger(e)}return parseStringValue(e.toString())}function parseValue(e){if(typeof e==="number"){return parseNumberValue(e)}if(typeof e==="string"){return parseStringValue(e)}if(typeof e==="bigint"){return new NativeBigInt(e)}return e}for(var v=0;v<1e3;v++){Integer[v]=parseValue(v);if(v>0)Integer[-v]=parseValue(-v)}Integer.one=Integer[1];Integer.zero=Integer[0];Integer.minusOne=Integer[-1];Integer.max=max;Integer.min=min;Integer.gcd=gcd;Integer.lcm=lcm;Integer.isInstance=function(e){return e instanceof BigInteger||e instanceof SmallInteger||e instanceof NativeBigInt};Integer.randBetween=randBetween;Integer.fromArray=function(e,t,r){return parseBaseFromArray(e.map(parseValue),parseValue(t||10),r)};return Integer}();if(true&&e.hasOwnProperty("exports")){e.exports=n}if(typeof define==="function"&&define.amd){define((function(){return n}))}},66474:function(e,t,r){var n=r(46533);var i=r(82361).EventEmitter;var s=r(51590);var o=r(13755);var c=r(12781).Stream;t=e.exports=function(e,r){if(Buffer.isBuffer(e)){return t.parse(e)}var n=t.stream();if(e&&e.pipe){e.pipe(n)}else if(e){e.on(r||"data",(function(e){n.write(e)}));e.on("end",(function(){n.end()}))}return n};t.stream=function(e){if(e)return t.apply(null,arguments);var r=null;function getBytes(e,t,n){r={bytes:e,skip:n,cb:function(e){r=null;t(e)}};dispatch()}var h=null;function dispatch(){if(!r){if(v)b=true;return}if(typeof r==="function"){r()}else{var e=h+r.bytes;if(g.length>=e){var t;if(h==null){t=g.splice(0,e);if(!r.skip){t=t.slice()}}else{if(!r.skip){t=g.slice(h,e)}h=e}if(r.skip){r.cb()}else{r.cb(t)}}}}function builder(e){function next(){if(!b)e.next()}var t=words((function(e,t){return function(r){getBytes(e,(function(e){y.set(r,t(e));next()}))}}));t.tap=function(t){e.nest(t,y.store)};t.into=function(t,r){if(!y.get(t))y.set(t,{});var n=y;y=o(n.get(t));e.nest((function(){r.apply(this,arguments);this.tap((function(){y=n}))}),y.store)};t.flush=function(){y.store={};next()};t.loop=function(t){var r=false;e.nest(false,(function loop(){this.vars=y.store;t.call(this,(function(){r=true;next()}),y.store);this.tap(function(){if(r)e.next();else loop.call(this)}.bind(this))}),y.store)};t.buffer=function(e,t){if(typeof t==="string"){t=y.get(t)}getBytes(t,(function(t){y.set(e,t);next()}))};t.skip=function(e){if(typeof e==="string"){e=y.get(e)}getBytes(e,(function(){next()}))};t.scan=function find(e,t){if(typeof t==="string"){t=new Buffer(t)}else if(!Buffer.isBuffer(t)){throw new Error("search must be a Buffer or a string")}var n=0;r=function(){var i=g.indexOf(t,h+n);var s=i-h-n;if(i!==-1){r=null;if(h!=null){y.set(e,g.slice(h,h+n+s));h+=n+s+t.length}else{y.set(e,g.slice(0,n+s));g.splice(0,n+s+t.length)}next();dispatch()}else{s=Math.max(g.length-t.length-h-n,0)}n+=s};dispatch()};t.peek=function(t){h=0;e.nest((function(){t.call(this,y.store);this.tap((function(){h=null}))}))};return t}var p=n.light(builder);p.writable=true;var g=s();p.write=function(e){g.push(e);dispatch()};var y=o();var b=false,v=false;p.end=function(){v=true};p.pipe=c.prototype.pipe;Object.getOwnPropertyNames(i.prototype).forEach((function(e){p[e]=i.prototype[e]}));return p};t.parse=function parse(e){var t=words((function(i,s){return function(o){if(r+i<=e.length){var c=e.slice(r,r+i);r+=i;n.set(o,s(c))}else{n.set(o,null)}return t}}));var r=0;var n=o();t.vars=n.store;t.tap=function(e){e.call(t,n.store);return t};t.into=function(e,r){if(!n.get(e)){n.set(e,{})}var i=n;n=o(i.get(e));r.call(t,n.store);n=i;return t};t.loop=function(e){var r=false;var ender=function(){r=true};while(r===false){e.call(t,ender,n.store)}return t};t.buffer=function(i,s){if(typeof s==="string"){s=n.get(s)}var o=e.slice(r,Math.min(e.length,r+s));r+=s;n.set(i,o);return t};t.skip=function(e){if(typeof e==="string"){e=n.get(e)}r+=e;return t};t.scan=function(i,s){if(typeof s==="string"){s=new Buffer(s)}else if(!Buffer.isBuffer(s)){throw new Error("search must be a Buffer or a string")}n.set(i,null);for(var o=0;o+r<=e.length-s.length+1;o++){for(var c=0;c<s.length&&e[r+o+c]===s[c];c++);if(c===s.length)break}n.set(i,e.slice(r,r+o));r+=o+s.length;return t};t.peek=function(e){var i=r;e.call(t,n.store);r=i;return t};t.flush=function(){n.store={};return t};t.eof=function(){return r>=e.length};return t};function decodeLEu(e){var t=0;for(var r=0;r<e.length;r++){t+=Math.pow(256,r)*e[r]}return t}function decodeBEu(e){var t=0;for(var r=0;r<e.length;r++){t+=Math.pow(256,e.length-r-1)*e[r]}return t}function decodeBEs(e){var t=decodeBEu(e);if((e[0]&128)==128){t-=Math.pow(256,e.length)}return t}function decodeLEs(e){var t=decodeLEu(e);if((e[e.length-1]&128)==128){t-=Math.pow(256,e.length)}return t}function words(e){var t={};[1,2,4,8].forEach((function(r){var n=r*8;t["word"+n+"le"]=t["word"+n+"lu"]=e(r,decodeLEu);t["word"+n+"ls"]=e(r,decodeLEs);t["word"+n+"be"]=t["word"+n+"bu"]=e(r,decodeBEu);t["word"+n+"bs"]=e(r,decodeBEs)}));t.word8=t.word8u=t.word8be;t.word8s=t.word8bs;return t}},13755:function(e){e.exports=function(e){function getset(e,r){var n=t.store;var i=e.split(".");i.slice(0,-1).forEach((function(e){if(n[e]===undefined)n[e]={};n=n[e]}));var s=i[i.length-1];if(arguments.length==1){return n[s]}else{return n[s]=r}}var t={get:function(e){return getset(e)},set:function(e,t){return getset(e,t)},store:e||{}};return t}},23664:function(e,t,r){"use strict";const{Buffer:n}=r(14300);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 s=this._offset(r);const o=i-r;let c=o;let h=copy&&t||0;let p=s[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,h);h+=this._bufs[t].length}return e}if(c<=this._bufs[s[0]].length-p){return copy?this._bufs[s[0]].copy(e,t,p,p+c):this._bufs[s[0]].slice(p,p+c)}if(!copy){e=n.allocUnsafe(o)}for(let t=s[0];t<this._bufs.length;t++){const r=this._bufs[t].length-p;if(c>r){this._bufs[t].copy(e,h,p);h+=r}else{this._bufs[t].copy(e,h,p,p+c);h+=r;break}c-=r;if(p){p=0}}if(e.length>h)return e.slice(0,h);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 s=i[0];let o=i[1];for(;s<this._bufs.length;s++){const t=this._bufs[s];while(o<t.length){const r=t.length-o;if(r>=e.length){const r=t.indexOf(e,o);if(r!==-1){return this._reverseOffset([s,r])}o=t.length-e.length+1}else{const t=this._reverseOffset([s,o]);if(this._match(t,e)){return t}o++}}o=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},20336:function(e,t,r){"use strict";const n=r(85519).Duplex;const i=r(44124);const s=r(23664);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}s._init.call(this,e);n.call(this)}i(BufferListStream,n);Object.assign(BufferListStream.prototype,s.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 s||BufferListStream.isBufferList(e)};BufferListStream.isBufferList=s.isBufferList;e.exports=BufferListStream;e.exports.BufferListStream=BufferListStream;e.exports.BufferList=s},97713: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.q=t},13928: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(85209);var s=r(58729);r(44124)(Duplex,i);{var o=n(s.prototype);for(var c=0;c<o.length;c++){var h=o[c];if(!Duplex.prototype[h])Duplex.prototype[h]=s.prototype[h]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);i.call(this,e);s.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}})},4991:function(e,t,r){"use strict";e.exports=PassThrough;var n=r(26753);r(44124)(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)}},85209:function(e,t,r){"use strict";e.exports=Readable;var n;Readable.ReadableState=ReadableState;var i=r(82361).EventEmitter;var s=function EElistenerCount(e,t){return e.listeners(t).length};var o=r(36238);var c=r(14300).Buffer;var h=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return c.from(e)}function _isUint8Array(e){return c.isBuffer(e)||e instanceof h}var p=r(73837);var g;if(p&&p.debuglog){g=p.debuglog("stream")}else{g=function debug(){}}var y=r(70662);var b=r(36994);var v=r(3533),_=v.getHighWaterMark;var w=r(97713).q,S=w.ERR_INVALID_ARG_TYPE,k=w.ERR_STREAM_PUSH_AFTER_EOF,x=w.ERR_METHOD_NOT_IMPLEMENTED,E=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var R;var C;var O;r(44124)(Readable,o);var P=b.errorOrDestroy;var A=["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(13928);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=_(this,e,"readableHighWaterMark",i);this.buffer=new y;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(!R)R=r(94841).s;this.decoder=new R(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||r(13928);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}o.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=b.destroy;Readable.prototype._undestroy=b.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=c.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){g("readableAddChunk",t);var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var o;if(!i)o=chunkInvalid(s,t);if(o){P(e,o)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==c.prototype){t=_uint8ArrayToBuffer(t)}if(n){if(s.endEmitted)P(e,new E);else addChunk(e,s,t,true)}else if(s.ended){P(e,new k)}else if(s.destroyed){return false}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(!n){s.reading=false;maybeReadMore(e,s)}}return!s.ended&&(s.length<s.highWaterMark||s.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 S("chunk",["string","Buffer","Uint8Array"],t)}return r}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!R)R=r(94841).s;var t=new R(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 I=1073741824;function computeNewHighWaterMark(e){if(e>=I){e=I}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){g("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)){g("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;g("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;g("length less than watermark",n)}if(t.ended||t.reading){n=false;g("reading or ended",n)}else if(n){g("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){g("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;g("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){g("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;g("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;g("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}Readable.prototype._read=function(e){P(this,new x("_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;g("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var o=i?onend:unpipe;if(n.endEmitted)process.nextTick(o);else r.once("end",o);e.on("unpipe",onunpipe);function onunpipe(e,t){g("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){g("onend");e.end()}var c=pipeOnDrain(r);e.on("drain",c);var h=false;function cleanup(){g("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",c);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);h=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))c()}r.on("data",ondata);function ondata(t){g("ondata");var i=e.write(t);g("dest.write",i);if(i===false){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!h){g("false write response, pause",n.awaitDrain);n.awaitDrain++}r.pause()}}function onerror(t){g("onerror",t);unpipe();e.removeListener("error",onerror);if(s(e,"error")===0)P(e,t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){g("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){g("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){g("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;g("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&s(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 s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:false});return this}var o=indexOf(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,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);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;g("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=o.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return r};Readable.prototype.removeAllListeners=function(e){var t=o.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){g("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){g("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){g("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(){g("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){g("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;g("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(){g("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){g("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 s=t.push(i);if(!s){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 s=0;s<A.length;s++){e.on(A[s],this.emit.bind(this,A[s]))}this._read=function(t){g("wrapped _read",t);if(n){n=false;e.resume()}};return this};if(typeof Symbol==="function"){Readable.prototype[Symbol.asyncIterator]=function(){if(C===undefined){C=r(37558)}return C(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;g("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){g("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(O===undefined){O=r(57039)}return O(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}},26753:function(e,t,r){"use strict";e.exports=Transform;var n=r(97713).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0;var h=r(13928);r(44124)(Transform,h);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(n===null){return this.emit("error",new s)}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);h.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 h.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){h.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 c;if(e._transformState.transforming)throw new o;return e.push(null)}},58729: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(65278)};var s=r(36238);var o=r(14300).Buffer;var c=(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 c}var h=r(36994);var p=r(3533),g=p.getHighWaterMark;var y=r(97713).q,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_MULTIPLE_CALLBACK,w=y.ERR_STREAM_CANNOT_PIPE,S=y.ERR_STREAM_DESTROYED,k=y.ERR_STREAM_NULL_VALUES,x=y.ERR_STREAM_WRITE_AFTER_END,E=y.ERR_UNKNOWN_ENCODING;var R=h.errorOrDestroy;r(44124)(Writable,s);function nop(){}function WritableState(e,t,i){n=n||r(13928);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=g(this,e,"writableHighWaterMark",i);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var s=e.decodeStrings===false;this.decodeStrings=!s;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 C;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){C=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(C.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{C=function realHasInstance(e){return e instanceof this}}function Writable(e){n=n||r(13928);var t=this instanceof n;if(!t&&!C.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}s.call(this)}Writable.prototype.pipe=function(){R(this,new w)};function writeAfterEnd(e,t){var r=new x;R(e,r);process.nextTick(t,r)}function validChunk(e,t,r,n){var i;if(r===null){i=new k}else if(typeof r!=="string"&&!t.objectMode){i=new b("chunk",["string","Buffer"],r)}if(i){R(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 s=!n.objectMode&&_isUint8Array(e);if(s&&!o.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(s)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=nop;if(n.ending)writeAfterEnd(this,r);else if(s||validChunk(this,n,e,r)){n.pendingcb++;i=writeOrBuffer(this,n,s,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 E(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=o.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,s){if(!r){var o=decodeChunk(t,n,i);if(n!==o){r=true;i="buffer";n=o}}var c=t.objectMode?1:n.length;t.length+=c;var h=t.length<t.highWaterMark;if(!h)t.needDrain=true;if(t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null};if(p){p.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,c,n,i,s)}return h}function doWrite(e,t,r,n,i,s,o){t.writelen=n;t.writecb=o;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new S("write"));else if(r)e._writev(i,t.onwrite);else e._write(i,s,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;R(e,n)}else{i(n);e._writableState.errorEmitted=true;R(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 _;onwriteStateUpdate(r);if(t)onwriteError(e,r,n,t,i);else{var s=needFinish(r)||e.destroyed;if(!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(n){process.nextTick(afterWrite,e,r,s,i)}else{afterWrite(e,r,s,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 s=t.corkedRequestsFree;s.entry=r;var o=0;var c=true;while(r){i[o]=r;if(!r.isBuf)c=false;r=r.next;o+=1}i.allBuffers=c;doWrite(e,t,true,t.length,i,"",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 h=r.chunk;var p=r.encoding;var g=r.callback;var y=t.objectMode?1:h.length;doWrite(e,t,false,y,h,p,g);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 v("_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){R(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=h.destroy;Writable.prototype._undestroy=h.undestroy;Writable.prototype._destroy=function(e,t){t(e)}},37558: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(12659);var s=Symbol("lastResolve");var o=Symbol("lastReject");var c=Symbol("error");var h=Symbol("ended");var p=Symbol("lastPromise");var g=Symbol("handlePromise");var y=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[s];if(t!==null){var r=e[y].read();if(r!==null){e[p]=null;e[s]=null;e[o]=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[h]){r(createIterResult(undefined,true));return}t[g](r,n)}),n)}}var b=Object.getPrototypeOf((function(){}));var v=Object.setPrototypeOf((n={get stream(){return this[y]},next:function next(){var e=this;var t=this[c];if(t!==null){return Promise.reject(t)}if(this[h]){return Promise.resolve(createIterResult(undefined,true))}if(this[y].destroyed){return new Promise((function(t,r){process.nextTick((function(){if(e[c]){r(e[c])}else{t(createIterResult(undefined,true))}}))}))}var r=this[p];var n;if(r){n=new Promise(wrapForNext(r,this))}else{var i=this[y].read();if(i!==null){return Promise.resolve(createIterResult(i,false))}n=new Promise(this[g])}this[p]=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[y].destroy(null,(function(e){if(e){r(e);return}t(createIterResult(undefined,true))}))}))})),n),b);var _=function createReadableStreamAsyncIterator(e){var t;var r=Object.create(v,(t={},_defineProperty(t,y,{value:e,writable:true}),_defineProperty(t,s,{value:null,writable:true}),_defineProperty(t,o,{value:null,writable:true}),_defineProperty(t,c,{value:null,writable:true}),_defineProperty(t,h,{value:e._readableState.endEmitted,writable:true}),_defineProperty(t,g,{value:function value(e,t){var n=r[y].read();if(n){r[p]=null;r[s]=null;r[o]=null;e(createIterResult(n,false))}else{r[s]=e;r[o]=t}},writable:true}),t));r[p]=null;i(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=r[o];if(t!==null){r[p]=null;r[s]=null;r[o]=null;t(e)}r[c]=e;return}var n=r[s];if(n!==null){r[p]=null;r[s]=null;r[o]=null;n(createIterResult(undefined,true))}r[h]=true}));e.on("readable",onReadable.bind(null,r));return r};e.exports=_},70662: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(14300),i=n.Buffer;var s=r(73837),o=s.inspect;var c=o&&o.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 s=e>i.length?i.length:e;if(s===i.length)n+=i;else n+=i.slice(0,e);e-=s;if(e===0){if(s===i.length){++r;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=i.slice(s)}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 s=r.data;var o=e>s.length?s.length:e;s.copy(t,t.length-e,0,o);e-=o;if(e===0){if(o===s.length){++n;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=s.slice(o)}break}++n}this.length-=n;return t}},{key:c,value:function value(e,t){return o(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:false}))}}]);return BufferList}()},36994: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}},12659:function(e,t,r){"use strict";var n=r(97713).q.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 s=t.writable||t.writable!==false&&e.writable;var o=function onlegacyfinish(){if(!e.writable)h()};var c=e._writableState&&e._writableState.finished;var h=function onfinish(){s=false;c=true;if(!i)r.call(e)};var p=e._readableState&&e._readableState.endEmitted;var g=function onend(){i=false;p=true;if(!s)r.call(e)};var y=function onerror(t){r.call(e,t)};var b=function onclose(){var t;if(i&&!p){if(!e._readableState||!e._readableState.ended)t=new n;return r.call(e,t)}if(s&&!c){if(!e._writableState||!e._writableState.ended)t=new n;return r.call(e,t)}};var v=function onrequest(){e.req.on("finish",h)};if(isRequest(e)){e.on("complete",h);e.on("abort",b);if(e.req)v();else e.on("request",v)}else if(s&&!e._writableState){e.on("end",o);e.on("close",o)}e.on("end",g);e.on("finish",h);if(t.error!==false)e.on("error",y);e.on("close",b);return function(){e.removeListener("complete",h);e.removeListener("abort",b);e.removeListener("request",v);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",o);e.removeListener("close",o);e.removeListener("finish",h);e.removeListener("end",g);e.removeListener("error",y);e.removeListener("close",b)}}e.exports=eos},57039:function(e,t,r){"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var c=e[s](o);var h=c.value}catch(e){r(e);return}if(c.done){t(h)}else{Promise.resolve(h).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,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(97713).q.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 s=new e(_objectSpread({objectMode:true},r));var o=false;s._read=function(){if(!o){o=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){s.push(null)}else if(s.push(yield t)){next()}else{o=false}}catch(e){s.destroy(e)}}));return _next2.apply(this,arguments)}return s}e.exports=from},20740: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(97713).q,s=i.ERR_MISSING_ARGS,o=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,s){s=once(s);var c=false;e.on("close",(function(){c=true}));if(n===undefined)n=r(12659);n(e,{readable:t,writable:i},(function(e){if(e)return s(e);c=true;s()}));var h=false;return function(t){if(c)return;if(h)return;h=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();s(t||new o("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 s("streams")}var i;var o=t.map((function(e,r){var s=r<t.length-1;var c=r>0;return destroyer(e,s,c,(function(e){if(!i)i=e;if(e)o.forEach(call);if(s)return;o.forEach(call);n(i)}))}));return t.reduce(pipe)}e.exports=pipeline},3533:function(e,t,r){"use strict";var n=r(97713).q.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 s=highWaterMarkFrom(t,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var o=i?r:"highWaterMark";throw new n(o,s)}return Math.floor(s)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},36238:function(e,t,r){e.exports=r(12781)},85519:function(e,t,r){var n=r(12781);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(85209);t.Stream=n||t;t.Readable=t;t.Writable=r(58729);t.Duplex=r(13928);t.Transform=r(26753);t.PassThrough=r(4991);t.finished=r(12659);t.pipeline=r(20740)}},33717:function(e,t,r){var n=r(9417);e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var h="\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(s).split("\\}").join(o).split("\\,").join(c).split("\\.").join(h)}function unescapeBraces(e){return e.split(i).join("\\").split(s).join("{").split(o).join("}").split(c).join(",").split(h).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=n("{","}",e);if(!r)return e.split(",");var i=r.pre;var s=r.body;var o=r.post;var c=i.split(",");c[c.length-1]+="{"+s+"}";var h=parseCommaParts(o);if(o.length){c[c.length-1]+=h.shift();c.push.apply(c,h)}t.push.apply(t,c);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 s=i.pre;var c=i.post.length?expand(i.post,false):[""];if(/\$$/.test(i.pre)){for(var h=0;h<c.length;h++){var p=s+"{"+i.body+"}"+c[h];r.push(p)}}else{var g=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var b=g||y;var v=i.body.indexOf(",")>=0;if(!b&&!v){if(i.post.match(/,.*\}/)){e=i.pre+"{"+i.body+o+i.post;return expand(e)}return[e]}var _;if(b){_=i.body.split(/\.\./)}else{_=parseCommaParts(i.body);if(_.length===1){_=expand(_[0],false).map(embrace);if(_.length===1){return c.map((function(e){return i.pre+_[0]+e}))}}}var w;if(b){var S=numeric(_[0]);var k=numeric(_[1]);var x=Math.max(_[0].length,_[1].length);var E=_.length==3?Math.abs(numeric(_[2])):1;var R=lte;var C=k<S;if(C){E*=-1;R=gte}var O=_.some(isPadded);w=[];for(var P=S;R(P,k);P+=E){var A;if(y){A=String.fromCharCode(P);if(A==="\\")A=""}else{A=String(P);if(O){var I=x-A.length;if(I>0){var N=new Array(I+1).join("0");if(P<0)A="-"+N+A.slice(1);else A=N+A}}}w.push(A)}}else{w=[];for(var M=0;M<_.length;M++){w.push.apply(w,expand(_[M],false))}}for(var M=0;M<w.length;M++){for(var h=0;h<c.length;h++){var p=s+w[M]+c[h];if(!t||b||p)r.push(p)}}}return r}},84794:function(e,t,r){var n=r(14300).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 s=0;s<e.length;s++){r=i[(r^e[s])&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},97329:function(e,t,r){"use strict";var n=r(93478);if(!Buffer.prototype.indexOf){Buffer.prototype.indexOf=function(e,t){t=t||0;if(typeof e==="string"||e instanceof String){e=n(e)}else if(typeof e==="number"||e instanceof Number){e=n([e])}var r=e.length;for(var i=t;i<=this.length-r;i++){var s=false;for(var o=0;o<r;o++){if(this[i+o]!=e[o]){s=true;break}}if(!s){return i}}return-1}}function bufferLastIndexOf(e,t){if(typeof e==="string"||e instanceof String){e=n(e)}else if(typeof e==="number"||e instanceof Number){e=n([e])}var r=e.length;t=t||this.length-r;for(var i=t;i>=0;i--){var s=false;for(var o=0;o<r;o++){if(this[i+o]!=e[o]){s=true;break}}if(!s){return i}}return-1}if(Buffer.prototype.lastIndexOf){if(n("ABC").lastIndexOf("ABC")===-1)Buffer.prototype.lastIndexOf=bufferLastIndexOf}else{Buffer.prototype.lastIndexOf=bufferLastIndexOf}},93478:function(e){e.exports=function initBuffer(e){var t=process&&process.version?process.version:"v5.0.0";var r=t.split(".")[0].replace("v","");return r<6?new Buffer(e):Buffer.from(e)}},51590:function(e){e.exports=Buffers;function Buffers(e){if(!(this instanceof Buffers))return new Buffers(e);this.buffers=e||[];this.length=this.buffers.reduce((function(e,t){return e+t.length}),0)}Buffers.prototype.push=function(){for(var e=0;e<arguments.length;e++){if(!Buffer.isBuffer(arguments[e])){throw new TypeError("Tried to push a non-buffer")}}for(var e=0;e<arguments.length;e++){var t=arguments[e];this.buffers.push(t);this.length+=t.length}return this.length};Buffers.prototype.unshift=function(){for(var e=0;e<arguments.length;e++){if(!Buffer.isBuffer(arguments[e])){throw new TypeError("Tried to unshift a non-buffer")}}for(var e=0;e<arguments.length;e++){var t=arguments[e];this.buffers.unshift(t);this.length+=t.length}return this.length};Buffers.prototype.copy=function(e,t,r,n){return this.slice(r,n).copy(e,t,0,n-r)};Buffers.prototype.splice=function(e,t){var r=this.buffers;var n=e>=0?e:this.length-e;var i=[].slice.call(arguments,2);if(t===undefined){t=this.length-n}else if(t>this.length-n){t=this.length-n}for(var e=0;e<i.length;e++){this.length+=i[e].length}var s=new Buffers;var o=0;var c=0;for(var h=0;h<r.length&&c+r[h].length<n;h++){c+=r[h].length}if(n-c>0){var p=n-c;if(p+t<r[h].length){s.push(r[h].slice(p,p+t));var g=r[h];var y=new Buffer(p);for(var e=0;e<p;e++){y[e]=g[e]}var b=new Buffer(g.length-p-t);for(var e=p+t;e<g.length;e++){b[e-t-p]=g[e]}if(i.length>0){var v=i.slice();v.unshift(y);v.push(b);r.splice.apply(r,[h,1].concat(v));h+=v.length;i=[]}else{r.splice(h,1,y,b);h+=2}}else{s.push(r[h].slice(p));r[h]=r[h].slice(0,p);h++}}if(i.length>0){r.splice.apply(r,[h,0].concat(i));h+=i.length}while(s.length<t){var _=r[h];var w=_.length;var S=Math.min(w,t-s.length);if(S===w){s.push(_);r.splice(h,1)}else{s.push(_.slice(0,S));r[h]=r[h].slice(S)}}this.length-=s.length;return s};Buffers.prototype.slice=function(e,t){var r=this.buffers;if(t===undefined)t=this.length;if(e===undefined)e=0;if(t>this.length)t=this.length;var n=0;for(var i=0;i<r.length&&n+r[i].length<=e;i++){n+=r[i].length}var s=new Buffer(t-e);var o=0;for(var c=i;o<t-e&&c<r.length;c++){var h=r[c].length;var p=o===0?e-n:0;var g=o+h>=t-e?Math.min(p+(t-e)-o,h):h;r[c].copy(s,o,p,g);o+=g-p}return s};Buffers.prototype.pos=function(e){if(e<0||e>=this.length)throw new Error("oob");var t=e,r=0,n=null;for(;;){n=this.buffers[r];if(t<n.length){return{buf:r,offset:t}}else{t-=n.length}r++}};Buffers.prototype.get=function get(e){var t=this.pos(e);return this.buffers[t.buf].get(t.offset)};Buffers.prototype.set=function set(e,t){var r=this.pos(e);return this.buffers[r.buf].set(r.offset,t)};Buffers.prototype.indexOf=function(e,t){if("string"===typeof e){e=new Buffer(e)}else if(e instanceof Buffer){}else{throw new Error("Invalid type for a search string")}if(!e.length){return 0}if(!this.length){return-1}var r=0,n=0,i=0,s,o=0;if(t){var c=this.pos(t);r=c.buf;n=c.offset;o=t}for(;;){while(n>=this.buffers[r].length){n=0;r++;if(r>=this.buffers.length){return-1}}var h=this.buffers[r][n];if(h==e[i]){if(i==0){s={i:r,j:n,pos:o}}i++;if(i==e.length){return s.pos}}else if(i!=0){r=s.i;n=s.j;o=s.pos;i=0}n++;o++}};Buffers.prototype.toBuffer=function(){return this.slice()};Buffers.prototype.toString=function(e,t,r){return this.slice(t,r).toString(e)}},46533:function(e,t,r){var n=r(8588);var i=r(82361).EventEmitter;e.exports=Chainsaw;function Chainsaw(e){var t=Chainsaw.saw(e,{});var r=e.call(t.handlers,t);if(r!==undefined)t.handlers=r;t.record();return t.chain()}Chainsaw.light=function ChainsawLight(e){var t=Chainsaw.saw(e,{});var r=e.call(t.handlers,t);if(r!==undefined)t.handlers=r;return t.chain()};Chainsaw.saw=function(e,t){var r=new i;r.handlers=t;r.actions=[];r.chain=function(){var e=n(r.handlers).map((function(t){if(this.isRoot)return t;var n=this.path;if(typeof t==="function"){this.update((function(){r.actions.push({path:n,args:[].slice.call(arguments)});return e}))}}));process.nextTick((function(){r.emit("begin");r.next()}));return e};r.pop=function(){return r.actions.shift()};r.next=function(){var e=r.pop();if(!e){r.emit("end")}else if(!e.trap){var t=r.handlers;e.path.forEach((function(e){t=t[e]}));t.apply(r.handlers,e.args)}};r.nest=function(t){var n=[].slice.call(arguments,1);var i=true;if(typeof t==="boolean"){var i=t;t=n.shift()}var s=Chainsaw.saw(e,{});var o=e.call(s.handlers,s);if(o!==undefined)s.handlers=o;if("undefined"!==typeof r.step){s.record()}t.apply(s.chain(),n);if(i!==false)s.on("end",r.next)};r.record=function(){upgradeChainsaw(r)};["trap","down","jump"].forEach((function(e){r[e]=function(){throw new Error("To use the trap, down and jump features, please "+"call record() first to start recording actions.")}}));return r};function upgradeChainsaw(e){e.step=0;e.pop=function(){return e.actions[e.step++]};e.trap=function(t,r){var n=Array.isArray(t)?t:[t];e.actions.push({path:n,step:e.step,cb:r,trap:true})};e.down=function(t){var r=(Array.isArray(t)?t:[t]).join("/");var n=e.actions.slice(e.step).map((function(t){if(t.trap&&t.step<=e.step)return false;return t.path.join("/")==r})).indexOf(true);if(n>=0)e.step+=n;else e.step=e.actions.length;var i=e.actions[e.step-1];if(i&&i.trap){e.step=i.step;i.cb()}else e.next()};e.jump=function(t){e.step=t;e.next()}}},92240:function(e){var t=e.exports=function(){};t.prototype.getName=function(){};t.prototype.getSize=function(){};t.prototype.getLastModifiedDate=function(){};t.prototype.isDirectory=function(){}},36728:function(e,t,r){var n=r(73837).inherits;var i=r(12353).Transform;var s=r(92240);var o=r(95208);var c=e.exports=function(e){if(!(this instanceof c)){return new c(e)}i.call(this,e);this.offset=0;this._archive={finish:false,finished:false,processing:false}};n(c,i);c.prototype._appendBuffer=function(e,t,r){};c.prototype._appendStream=function(e,t,r){};c.prototype._emitErrorCallback=function(e){if(e){this.emit("error",e)}};c.prototype._finish=function(e){};c.prototype._normalizeEntry=function(e){};c.prototype._transform=function(e,t,r){r(null,e)};c.prototype.entry=function(e,t,r){t=t||null;if(typeof r!=="function"){r=this._emitErrorCallback.bind(this)}if(!(e instanceof s)){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(o.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};c.prototype.finish=function(){if(this._archive.processing){this._archive.finish=true;return}this._finish()};c.prototype.getBytesWritten=function(){return this.offset};c.prototype.write=function(e,t){if(e){this.offset+=e.length}return i.prototype.write.call(this,e,t)}},11704: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}},63229:function(e,t,r){var n=r(68682);var i=1<<3;var s=1<<0;var o=1<<2;var c=1<<1;var h=1<<6;var p=1<<11;var g=e.exports=function(){if(!(this instanceof g)){return new g}this.descriptor=false;this.encryption=false;this.utf8=false;this.numberOfShannonFanoTrees=0;this.strongEncryption=false;this.slidingDictionarySize=0;return this};g.prototype.encode=function(){return n.getShortBytes((this.descriptor?i:0)|(this.utf8?p:0)|(this.encryption?s:0)|(this.strongEncryption?h:0))};g.prototype.parse=function(e,t){var r=n.getShortBytesValue(e,t);var y=new g;y.useDataDescriptor((r&i)!==0);y.useUTF8ForNames((r&p)!==0);y.useStrongEncryption((r&h)!==0);y.useEncryption((r&s)!==0);y.setSlidingDictionarySize((r&c)!==0?8192:4096);y.setNumberOfShannonFanoTrees((r&o)!==0?3:2);return y};g.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e};g.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};g.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e};g.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};g.prototype.useDataDescriptor=function(e){this.descriptor=e};g.prototype.usesDataDescriptor=function(){return this.descriptor};g.prototype.useEncryption=function(e){this.encryption=e};g.prototype.usesEncryption=function(){return this.encryption};g.prototype.useStrongEncryption=function(e){this.strongEncryption=e};g.prototype.usesStrongEncryption=function(){return this.strongEncryption};g.prototype.useUTF8ForNames=function(e){this.utf8=e};g.prototype.usesUTF8ForNames=function(){return this.utf8}},70713: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}},68682: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))}},3179:function(e,t,r){var n=r(73837).inherits;var i=r(55388);var s=r(92240);var o=r(63229);var c=r(70713);var h=r(11704);var p=r(68682);var g=e.exports=function(e){if(!(this instanceof g)){return new g(e)}s.call(this);this.platform=h.PLATFORM_FAT;this.method=-1;this.name=null;this.size=0;this.csize=0;this.gpb=new o;this.crc=0;this.time=-1;this.minver=h.MIN_VERSION_INITIAL;this.mode=-1;this.extra=null;this.exattr=0;this.inattr=0;this.comment=null;if(e){this.setName(e)}};n(g,s);g.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};g.prototype.getComment=function(){return this.comment!==null?this.comment:""};g.prototype.getCompressedSize=function(){return this.csize};g.prototype.getCrc=function(){return this.crc};g.prototype.getExternalAttributes=function(){return this.exattr};g.prototype.getExtra=function(){return this.extra!==null?this.extra:h.EMPTY};g.prototype.getGeneralPurposeBit=function(){return this.gpb};g.prototype.getInternalAttributes=function(){return this.inattr};g.prototype.getLastModifiedDate=function(){return this.getTime()};g.prototype.getLocalFileDataExtra=function(){return this.getExtra()};g.prototype.getMethod=function(){return this.method};g.prototype.getName=function(){return this.name};g.prototype.getPlatform=function(){return this.platform};g.prototype.getSize=function(){return this.size};g.prototype.getTime=function(){return this.time!==-1?p.dosToDate(this.time):-1};g.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};g.prototype.getUnixMode=function(){return this.platform!==h.PLATFORM_UNIX?0:this.getExternalAttributes()>>h.SHORT_SHIFT&h.SHORT_MASK};g.prototype.getVersionNeededToExtract=function(){return this.minver};g.prototype.setComment=function(e){if(Buffer.byteLength(e)!==e.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.comment=e};g.prototype.setCompressedSize=function(e){if(e<0){throw new Error("invalid entry compressed size")}this.csize=e};g.prototype.setCrc=function(e){if(e<0){throw new Error("invalid entry crc32")}this.crc=e};g.prototype.setExternalAttributes=function(e){this.exattr=e>>>0};g.prototype.setExtra=function(e){this.extra=e};g.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof o)){throw new Error("invalid entry GeneralPurposeBit")}this.gpb=e};g.prototype.setInternalAttributes=function(e){this.inattr=e};g.prototype.setMethod=function(e){if(e<0){throw new Error("invalid entry compression method")}this.method=e};g.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};g.prototype.setPlatform=function(e){this.platform=e};g.prototype.setSize=function(e){if(e<0){throw new Error("invalid entry size")}this.size=e};g.prototype.setTime=function(e,t){if(!(e instanceof Date)){throw new Error("invalid entry time")}this.time=p.dateToDos(e,t)};g.prototype.setUnixMode=function(e){e|=this.isDirectory()?h.S_IFDIR:h.S_IFREG;var t=0;t|=e<<h.SHORT_SHIFT|(this.isDirectory()?h.S_DOS_D:h.S_DOS_A);this.setExternalAttributes(t);this.mode=e&h.MODE_MASK;this.platform=h.PLATFORM_UNIX};g.prototype.setVersionNeededToExtract=function(e){this.minver=e};g.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};g.prototype.isUnixSymlink=function(){return(this.getUnixMode()&c.FILE_TYPE_FLAG)===c.LINK_FLAG};g.prototype.isZip64=function(){return this.csize>h.ZIP64_MAGIC||this.size>h.ZIP64_MAGIC}},44432:function(e,t,r){var n=r(73837).inherits;var i=r(84794);var{CRC32Stream:s}=r(5101);var{DeflateCRC32Stream:o}=r(5101);var c=r(36728);var h=r(3179);var p=r(63229);var g=r(11704);var y=r(95208);var b=r(68682);var v=e.exports=function(e){if(!(this instanceof v)){return new v(e)}e=this.options=this._defaults(e);c.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(v,c);v.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()}};v.prototype._appendBuffer=function(e,t,r){if(t.length===0){e.setMethod(g.METHOD_STORED)}var n=e.getMethod();if(n===g.METHOD_STORED){e.setSize(t.length);e.setCompressedSize(t.length);e.setCrc(i.unsigned(t))}this._writeLocalFileHeader(e);if(n===g.METHOD_STORED){this.write(t);this._afterAppend(e);r(null,e);return}else if(n===g.METHOD_DEFLATED){this._smartStream(e,r).end(t);return}else{r(new Error("compression method "+n+" not implemented"));return}};v.prototype._appendStream=function(e,t,r){e.getGeneralPurposeBit().useDataDescriptor(true);e.setVersionNeededToExtract(g.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)};v.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=g.ZLIB_BEST_SPEED}e.forceZip64=!!e.forceZip64;e.forceLocalTime=!!e.forceLocalTime;return e};v.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()};v.prototype._normalizeEntry=function(e){if(e.getMethod()===-1){e.setMethod(g.METHOD_DEFLATED)}if(e.getMethod()===g.METHOD_DEFLATED){e.getGeneralPurposeBit().useDataDescriptor(true);e.setVersionNeededToExtract(g.MIN_VERSION_DATA_DESCRIPTOR)}if(e.getTime()===-1){e.setTime(new Date,this._archive.forceLocalTime)}e._offsets={file:0,data:0,contents:0}};v.prototype._smartStream=function(e,t){var r=e.getMethod()===g.METHOD_DEFLATED;var n=r?new o(this.options.zlib):new s;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};v.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length;var t=this._archive.centralLength;var r=this._archive.centralOffset;if(this.isZip64()){e=g.ZIP64_MAGIC_SHORT;t=g.ZIP64_MAGIC;r=g.ZIP64_MAGIC}this.write(b.getLongBytes(g.SIG_EOCD));this.write(g.SHORT_ZERO);this.write(g.SHORT_ZERO);this.write(b.getShortBytes(e));this.write(b.getShortBytes(e));this.write(b.getLongBytes(t));this.write(b.getLongBytes(r));var n=this.getComment();var i=Buffer.byteLength(n);this.write(b.getShortBytes(i));this.write(n)};v.prototype._writeCentralDirectoryZip64=function(){this.write(b.getLongBytes(g.SIG_ZIP64_EOCD));this.write(b.getEightBytes(44));this.write(b.getShortBytes(g.MIN_VERSION_ZIP64));this.write(b.getShortBytes(g.MIN_VERSION_ZIP64));this.write(g.LONG_ZERO);this.write(g.LONG_ZERO);this.write(b.getEightBytes(this._entries.length));this.write(b.getEightBytes(this._entries.length));this.write(b.getEightBytes(this._archive.centralLength));this.write(b.getEightBytes(this._archive.centralOffset));this.write(b.getLongBytes(g.SIG_ZIP64_EOCD_LOC));this.write(g.LONG_ZERO);this.write(b.getEightBytes(this._archive.centralOffset+this._archive.centralLength));this.write(b.getLongBytes(1))};v.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit();var r=e.getMethod();var n=e._offsets;var i=e.getSize();var s=e.getCompressedSize();if(e.isZip64()||n.file>g.ZIP64_MAGIC){i=g.ZIP64_MAGIC;s=g.ZIP64_MAGIC;e.setVersionNeededToExtract(g.MIN_VERSION_ZIP64);var o=Buffer.concat([b.getShortBytes(g.ZIP64_EXTRA_ID),b.getShortBytes(24),b.getEightBytes(e.getSize()),b.getEightBytes(e.getCompressedSize()),b.getEightBytes(n.file)],28);e.setExtra(o)}this.write(b.getLongBytes(g.SIG_CFH));this.write(b.getShortBytes(e.getPlatform()<<8|g.VERSION_MADEBY));this.write(b.getShortBytes(e.getVersionNeededToExtract()));this.write(t.encode());this.write(b.getShortBytes(r));this.write(b.getLongBytes(e.getTimeDos()));this.write(b.getLongBytes(e.getCrc()));this.write(b.getLongBytes(s));this.write(b.getLongBytes(i));var c=e.getName();var h=e.getComment();var p=e.getCentralDirectoryExtra();if(t.usesUTF8ForNames()){c=Buffer.from(c);h=Buffer.from(h)}this.write(b.getShortBytes(c.length));this.write(b.getShortBytes(p.length));this.write(b.getShortBytes(h.length));this.write(g.SHORT_ZERO);this.write(b.getShortBytes(e.getInternalAttributes()));this.write(b.getLongBytes(e.getExternalAttributes()));if(n.file>g.ZIP64_MAGIC){this.write(b.getLongBytes(g.ZIP64_MAGIC))}else{this.write(b.getLongBytes(n.file))}this.write(c);this.write(p);this.write(h)};v.prototype._writeDataDescriptor=function(e){this.write(b.getLongBytes(g.SIG_DD));this.write(b.getLongBytes(e.getCrc()));if(e.isZip64()){this.write(b.getEightBytes(e.getCompressedSize()));this.write(b.getEightBytes(e.getSize()))}else{this.write(b.getLongBytes(e.getCompressedSize()));this.write(b.getLongBytes(e.getSize()))}};v.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(g.MIN_VERSION_ZIP64)}if(t.usesUTF8ForNames()){n=Buffer.from(n)}e._offsets.file=this.offset;this.write(b.getLongBytes(g.SIG_LFH));this.write(b.getShortBytes(e.getVersionNeededToExtract()));this.write(t.encode());this.write(b.getShortBytes(r));this.write(b.getLongBytes(e.getTimeDos()));e._offsets.data=this.offset;if(t.usesDataDescriptor()){this.write(g.LONG_ZERO);this.write(g.LONG_ZERO);this.write(g.LONG_ZERO)}else{this.write(b.getLongBytes(e.getCrc()));this.write(b.getLongBytes(e.getCompressedSize()));this.write(b.getLongBytes(e.getSize()))}this.write(b.getShortBytes(n.length));this.write(b.getShortBytes(i.length));this.write(n);this.write(i);e._offsets.contents=this.offset};v.prototype.getComment=function(e){return this._archive.comment!==null?this._archive.comment:""};v.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>g.ZIP64_MAGIC_SHORT||this._archive.centralLength>g.ZIP64_MAGIC||this._archive.centralOffset>g.ZIP64_MAGIC};v.prototype.setComment=function(e){this._archive.comment=e}},25445:function(e,t,r){e.exports={ArchiveEntry:r(92240),ZipArchiveEntry:r(3179),ArchiveOutputStream:r(36728),ZipArchiveOutputStream:r(44432)}},95208:function(e,t,r){var n=r(12781).Stream;var i=r(12353).PassThrough;var s=e.exports={};s.isStream=function(e){return e instanceof n};s.normalizeInputSource=function(e){if(e===null){return Buffer.alloc(0)}else if(typeof e==="string"){return Buffer.from(e)}else if(s.isStream(e)&&!e._readableState){var t=new i;e.pipe(t);return t}return e}},2383: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.q=t},870: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(40696);var s=r(75302);r(44124)(Duplex,i);{var o=n(s.prototype);for(var c=0;c<o.length;c++){var h=o[c];if(!Duplex.prototype[h])Duplex.prototype[h]=s.prototype[h]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);i.call(this,e);s.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}})},52793:function(e,t,r){"use strict";e.exports=PassThrough;var n=r(5025);r(44124)(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)}},40696:function(e,t,r){"use strict";e.exports=Readable;var n;Readable.ReadableState=ReadableState;var i=r(82361).EventEmitter;var s=function EElistenerCount(e,t){return e.listeners(t).length};var o=r(62669);var c=r(14300).Buffer;var h=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return c.from(e)}function _isUint8Array(e){return c.isBuffer(e)||e instanceof h}var p=r(73837);var g;if(p&&p.debuglog){g=p.debuglog("stream")}else{g=function debug(){}}var y=r(89988);var b=r(32476);var v=r(60929),_=v.getHighWaterMark;var w=r(2383).q,S=w.ERR_INVALID_ARG_TYPE,k=w.ERR_STREAM_PUSH_AFTER_EOF,x=w.ERR_METHOD_NOT_IMPLEMENTED,E=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var R;var C;var O;r(44124)(Readable,o);var P=b.errorOrDestroy;var A=["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(870);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=_(this,e,"readableHighWaterMark",i);this.buffer=new y;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(!R)R=r(94841).s;this.decoder=new R(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||r(870);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}o.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=b.destroy;Readable.prototype._undestroy=b.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=c.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){g("readableAddChunk",t);var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var o;if(!i)o=chunkInvalid(s,t);if(o){P(e,o)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==c.prototype){t=_uint8ArrayToBuffer(t)}if(n){if(s.endEmitted)P(e,new E);else addChunk(e,s,t,true)}else if(s.ended){P(e,new k)}else if(s.destroyed){return false}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(!n){s.reading=false;maybeReadMore(e,s)}}return!s.ended&&(s.length<s.highWaterMark||s.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 S("chunk",["string","Buffer","Uint8Array"],t)}return r}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!R)R=r(94841).s;var t=new R(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 I=1073741824;function computeNewHighWaterMark(e){if(e>=I){e=I}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){g("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)){g("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;g("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;g("length less than watermark",n)}if(t.ended||t.reading){n=false;g("reading or ended",n)}else if(n){g("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){g("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;g("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){g("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;g("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;g("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}Readable.prototype._read=function(e){P(this,new x("_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;g("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var o=i?onend:unpipe;if(n.endEmitted)process.nextTick(o);else r.once("end",o);e.on("unpipe",onunpipe);function onunpipe(e,t){g("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){g("onend");e.end()}var c=pipeOnDrain(r);e.on("drain",c);var h=false;function cleanup(){g("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",c);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);h=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))c()}r.on("data",ondata);function ondata(t){g("ondata");var i=e.write(t);g("dest.write",i);if(i===false){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!h){g("false write response, pause",n.awaitDrain);n.awaitDrain++}r.pause()}}function onerror(t){g("onerror",t);unpipe();e.removeListener("error",onerror);if(s(e,"error")===0)P(e,t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){g("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){g("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){g("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;g("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&s(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 s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:false});return this}var o=indexOf(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,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);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;g("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=o.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return r};Readable.prototype.removeAllListeners=function(e){var t=o.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){g("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){g("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){g("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(){g("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){g("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;g("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(){g("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){g("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 s=t.push(i);if(!s){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 s=0;s<A.length;s++){e.on(A[s],this.emit.bind(this,A[s]))}this._read=function(t){g("wrapped _read",t);if(n){n=false;e.resume()}};return this};if(typeof Symbol==="function"){Readable.prototype[Symbol.asyncIterator]=function(){if(C===undefined){C=r(98462)}return C(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;g("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){g("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(O===undefined){O=r(22219)}return O(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}},5025:function(e,t,r){"use strict";e.exports=Transform;var n=r(2383).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0;var h=r(870);r(44124)(Transform,h);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(n===null){return this.emit("error",new s)}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);h.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 h.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){h.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 c;if(e._transformState.transforming)throw new o;return e.push(null)}},75302: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(65278)};var s=r(62669);var o=r(14300).Buffer;var c=(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 c}var h=r(32476);var p=r(60929),g=p.getHighWaterMark;var y=r(2383).q,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_MULTIPLE_CALLBACK,w=y.ERR_STREAM_CANNOT_PIPE,S=y.ERR_STREAM_DESTROYED,k=y.ERR_STREAM_NULL_VALUES,x=y.ERR_STREAM_WRITE_AFTER_END,E=y.ERR_UNKNOWN_ENCODING;var R=h.errorOrDestroy;r(44124)(Writable,s);function nop(){}function WritableState(e,t,i){n=n||r(870);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=g(this,e,"writableHighWaterMark",i);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var s=e.decodeStrings===false;this.decodeStrings=!s;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 C;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){C=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(C.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{C=function realHasInstance(e){return e instanceof this}}function Writable(e){n=n||r(870);var t=this instanceof n;if(!t&&!C.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}s.call(this)}Writable.prototype.pipe=function(){R(this,new w)};function writeAfterEnd(e,t){var r=new x;R(e,r);process.nextTick(t,r)}function validChunk(e,t,r,n){var i;if(r===null){i=new k}else if(typeof r!=="string"&&!t.objectMode){i=new b("chunk",["string","Buffer"],r)}if(i){R(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 s=!n.objectMode&&_isUint8Array(e);if(s&&!o.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(s)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=nop;if(n.ending)writeAfterEnd(this,r);else if(s||validChunk(this,n,e,r)){n.pendingcb++;i=writeOrBuffer(this,n,s,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 E(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=o.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,s){if(!r){var o=decodeChunk(t,n,i);if(n!==o){r=true;i="buffer";n=o}}var c=t.objectMode?1:n.length;t.length+=c;var h=t.length<t.highWaterMark;if(!h)t.needDrain=true;if(t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null};if(p){p.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,c,n,i,s)}return h}function doWrite(e,t,r,n,i,s,o){t.writelen=n;t.writecb=o;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new S("write"));else if(r)e._writev(i,t.onwrite);else e._write(i,s,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;R(e,n)}else{i(n);e._writableState.errorEmitted=true;R(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 _;onwriteStateUpdate(r);if(t)onwriteError(e,r,n,t,i);else{var s=needFinish(r)||e.destroyed;if(!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(n){process.nextTick(afterWrite,e,r,s,i)}else{afterWrite(e,r,s,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 s=t.corkedRequestsFree;s.entry=r;var o=0;var c=true;while(r){i[o]=r;if(!r.isBuf)c=false;r=r.next;o+=1}i.allBuffers=c;doWrite(e,t,true,t.length,i,"",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 h=r.chunk;var p=r.encoding;var g=r.callback;var y=t.objectMode?1:h.length;doWrite(e,t,false,y,h,p,g);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 v("_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){R(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=h.destroy;Writable.prototype._undestroy=h.undestroy;Writable.prototype._destroy=function(e,t){t(e)}},98462: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(25480);var s=Symbol("lastResolve");var o=Symbol("lastReject");var c=Symbol("error");var h=Symbol("ended");var p=Symbol("lastPromise");var g=Symbol("handlePromise");var y=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[s];if(t!==null){var r=e[y].read();if(r!==null){e[p]=null;e[s]=null;e[o]=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[h]){r(createIterResult(undefined,true));return}t[g](r,n)}),n)}}var b=Object.getPrototypeOf((function(){}));var v=Object.setPrototypeOf((n={get stream(){return this[y]},next:function next(){var e=this;var t=this[c];if(t!==null){return Promise.reject(t)}if(this[h]){return Promise.resolve(createIterResult(undefined,true))}if(this[y].destroyed){return new Promise((function(t,r){process.nextTick((function(){if(e[c]){r(e[c])}else{t(createIterResult(undefined,true))}}))}))}var r=this[p];var n;if(r){n=new Promise(wrapForNext(r,this))}else{var i=this[y].read();if(i!==null){return Promise.resolve(createIterResult(i,false))}n=new Promise(this[g])}this[p]=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[y].destroy(null,(function(e){if(e){r(e);return}t(createIterResult(undefined,true))}))}))})),n),b);var _=function createReadableStreamAsyncIterator(e){var t;var r=Object.create(v,(t={},_defineProperty(t,y,{value:e,writable:true}),_defineProperty(t,s,{value:null,writable:true}),_defineProperty(t,o,{value:null,writable:true}),_defineProperty(t,c,{value:null,writable:true}),_defineProperty(t,h,{value:e._readableState.endEmitted,writable:true}),_defineProperty(t,g,{value:function value(e,t){var n=r[y].read();if(n){r[p]=null;r[s]=null;r[o]=null;e(createIterResult(n,false))}else{r[s]=e;r[o]=t}},writable:true}),t));r[p]=null;i(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=r[o];if(t!==null){r[p]=null;r[s]=null;r[o]=null;t(e)}r[c]=e;return}var n=r[s];if(n!==null){r[p]=null;r[s]=null;r[o]=null;n(createIterResult(undefined,true))}r[h]=true}));e.on("readable",onReadable.bind(null,r));return r};e.exports=_},89988: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(14300),i=n.Buffer;var s=r(73837),o=s.inspect;var c=o&&o.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 s=e>i.length?i.length:e;if(s===i.length)n+=i;else n+=i.slice(0,e);e-=s;if(e===0){if(s===i.length){++r;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=i.slice(s)}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 s=r.data;var o=e>s.length?s.length:e;s.copy(t,t.length-e,0,o);e-=o;if(e===0){if(o===s.length){++n;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=s.slice(o)}break}++n}this.length-=n;return t}},{key:c,value:function value(e,t){return o(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:false}))}}]);return BufferList}()},32476: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}},25480:function(e,t,r){"use strict";var n=r(2383).q.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 s=t.writable||t.writable!==false&&e.writable;var o=function onlegacyfinish(){if(!e.writable)h()};var c=e._writableState&&e._writableState.finished;var h=function onfinish(){s=false;c=true;if(!i)r.call(e)};var p=e._readableState&&e._readableState.endEmitted;var g=function onend(){i=false;p=true;if(!s)r.call(e)};var y=function onerror(t){r.call(e,t)};var b=function onclose(){var t;if(i&&!p){if(!e._readableState||!e._readableState.ended)t=new n;return r.call(e,t)}if(s&&!c){if(!e._writableState||!e._writableState.ended)t=new n;return r.call(e,t)}};var v=function onrequest(){e.req.on("finish",h)};if(isRequest(e)){e.on("complete",h);e.on("abort",b);if(e.req)v();else e.on("request",v)}else if(s&&!e._writableState){e.on("end",o);e.on("close",o)}e.on("end",g);e.on("finish",h);if(t.error!==false)e.on("error",y);e.on("close",b);return function(){e.removeListener("complete",h);e.removeListener("abort",b);e.removeListener("request",v);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",o);e.removeListener("close",o);e.removeListener("finish",h);e.removeListener("end",g);e.removeListener("error",y);e.removeListener("close",b)}}e.exports=eos},22219:function(e,t,r){"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var c=e[s](o);var h=c.value}catch(e){r(e);return}if(c.done){t(h)}else{Promise.resolve(h).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,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(2383).q.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 s=new e(_objectSpread({objectMode:true},r));var o=false;s._read=function(){if(!o){o=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){s.push(null)}else if(s.push(yield t)){next()}else{o=false}}catch(e){s.destroy(e)}}));return _next2.apply(this,arguments)}return s}e.exports=from},74970: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(2383).q,s=i.ERR_MISSING_ARGS,o=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,s){s=once(s);var c=false;e.on("close",(function(){c=true}));if(n===undefined)n=r(25480);n(e,{readable:t,writable:i},(function(e){if(e)return s(e);c=true;s()}));var h=false;return function(t){if(c)return;if(h)return;h=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();s(t||new o("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 s("streams")}var i;var o=t.map((function(e,r){var s=r<t.length-1;var c=r>0;return destroyer(e,s,c,(function(e){if(!i)i=e;if(e)o.forEach(call);if(s)return;o.forEach(call);n(i)}))}));return t.reduce(pipe)}e.exports=pipeline},60929:function(e,t,r){"use strict";var n=r(2383).q.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 s=highWaterMarkFrom(t,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var o=i?r:"highWaterMark";throw new n(o,s)}return Math.floor(s)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},62669:function(e,t,r){e.exports=r(12781)},12353:function(e,t,r){var n=r(12781);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(40696);t.Stream=n||t;t.Readable=t;t.Writable=r(75302);t.Duplex=r(870);t.Transform=r(5025);t.PassThrough=r(52793);t.finished=r(25480);t.pipeline=r(74970)}},86891:function(e){e.exports=function(e,r){var n=[];for(var i=0;i<e.length;i++){var s=r(e[i],i);if(t(s))n.push.apply(n,s);else n.push(s)}return n};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},95898: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(14300).Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},83201:function(e,t){
49
+ var n=r(86454);var i=r(82072);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},83198: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 s=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){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(((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 s=0;var o=wrapAsync(r);return e(t,((e,t,r)=>{var n=s++;o(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 o={};var c=o;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 s=false;let o=false;let h=0;let p=0;function replenish(){if(h>=t||o||i)return;o=true;e.next().then((({value:e,done:t})=>{if(s||i)return;o=false;if(t){i=true;if(h<=0){n(null)}return}h++;r(e,p,iterateeCallback);p++;replenish()})).catch(handleError)}function iterateeCallback(e,t){h-=1;if(s)return;if(e)return handleError(e);if(e===false){i=true;s=true;return}if(t===c||i&&h<=0){i=true;return n(null)}replenish()}function handleError(e){if(s)return;o=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 s=false;var o=false;var h=0;var p=false;function iterateeCallback(e,t){if(o)return;h-=1;if(e){s=true;n(e)}else if(e===false){s=true;o=true}else if(t===c||s&&h<=0){s=true;return n(null)}else if(!p){replenish()}}function replenish(){p=true;while(h<e&&!s){var t=i();if(t===null){s=true;if(h<=0){n(null)}return}h+=1;r(t.value,t.key,onlyOnce(iterateeCallback))}p=false}replenish()};function eachOfLimit(e,t,r,n){return eachOfLimit$2(t)(e,wrapAsync(r),n)}var h=awaitify(eachOfLimit,4);function eachOfArrayLike(e,t,r){r=once(r);var n=0,i=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(++i===s||t===c){r(null)}}for(;n<s;n++){t(e[n],n,onlyOnce(iteratorCallback))}}function eachOfGeneric(e,t,r){return h(e,Infinity,t,r)}function eachOf(e,t,r){var n=isArrayLike(e)?eachOfArrayLike:eachOfGeneric;return n(e,wrapAsync(t),r)}var p=awaitify(eachOf,3);function map(e,t,r){return _asyncMap(p,e,t,r)}var g=awaitify(map,3);var y=applyEach$1(g);function eachOfSeries(e,t,r){return h(e,1,t,r)}var b=awaitify(eachOfSeries,3);function mapSeries(e,t,r){return _asyncMap(b,e,t,r)}var v=awaitify(mapSeries,3);var _=applyEach$1(v);const w=Symbol("promiseCallback");function promiseCallback(){let e,t;function callback(r,...n){if(r)return t(r);e(n.length>1?n:n[0])}callback[w]=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 s=0;var o=false;var c=false;var h=Object.create(null);var p=[];var g=[];var y={};Object.keys(e).forEach((t=>{var r=e[t];if(!Array.isArray(r)){enqueueTask(t,[r]);g.push(t);return}var n=r.slice(0,r.length-1);var i=n.length;if(i===0){enqueueTask(t,r);g.push(t);return}y[t]=i;n.forEach((s=>{if(!e[s]){throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+s+"` in "+n.join(", "))}addListener(s,(()=>{i--;if(i===0){enqueueTask(t,r)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(e,t){p.push((()=>runTask(e,t)))}function processQueue(){if(o)return;if(p.length===0&&s===0){return r(null,i)}while(p.length&&s<t){var e=p.shift();e()}}function addListener(e,t){var r=h[e];if(!r){r=h[e]=[]}r.push(t)}function taskComplete(e){var t=h[e]||[];t.forEach((e=>e()));processQueue()}function runTask(e,t){if(c)return;var n=onlyOnce(((t,...n)=>{s--;if(t===false){o=true;return}if(n.length<2){[n]=n}if(t){var p={};Object.keys(i).forEach((e=>{p[e]=i[e]}));p[e]=n;c=true;h=Object.create(null);if(o)return;r(t,p)}else{i[e]=n;taskComplete(e)}}));s++;var p=wrapAsync(t[t.length-1]);if(t.length>1){p(i,n)}else{p(n)}}function checkForDeadlocks(){var e;var t=0;while(g.length){e=g.pop();t++;getDependents(e).forEach((e=>{if(--y[e]===0){g.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[w]}var S=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/;var k=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/;var x=/,/;var E=/(=.+)?(\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(S);if(!r){r=t.match(k)}if(!r)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,n]=r;return n.replace(/\s/g,"").split(x).map((e=>e.replace(E,"").trim()))}function autoInject(e,t){var r={};Object.keys(e).forEach((t=>{var n=e[t];var i;var s=isAsync(n);var o=!s&&n.length===1||s&&n.length===0;if(Array.isArray(n)){i=[...n];n=i.pop();r[t]=i.concat(i.length>0?newTask:n)}else if(o){r[t]=n}else{i=parseParams(n);if(n.length===0&&!s&&i.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!s)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 o=[];const c={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function on(e,t){c[e].push(t)}function once(e,t){const handleAndRemove=(...r)=>{off(e,handleAndRemove);t(...r)};c[e].push(handleAndRemove)}function off(e,t){if(!e)return Object.keys(c).forEach((e=>c[e]=[]));if(!t)return c[e]=[];c[e]=c[e].filter((e=>e!==t))}function trigger(e,...t){c[e].forEach((e=>e(...t)))}var h=false;function _insert(e,t,r,n){if(n!=null&&typeof n!=="function"){throw new Error("task callback must be a function")}g.started=true;var i,o;function promiseCallback(e,...t){if(e)return r?o(e):i();if(t.length<=1)return i(t[0]);i(t)}var c=g._createTaskItem(e,r?promiseCallback:n||promiseCallback);if(t){g._tasks.unshift(c)}else{g._tasks.push(c)}if(!h){h=true;s((()=>{h=false;g.process()}))}if(r||!n){return new Promise(((e,t)=>{i=e;o=t}))}}function _createCB(e){return function(t,...r){i-=1;for(var n=0,s=e.length;n<s;n++){var c=e[n];var h=o.indexOf(c);if(h===0){o.shift()}else if(h>0){o.splice(h,1)}c.callback(t,...r);if(t!=null){trigger("error",t,c.data)}}if(i<=g.concurrency-g.buffer){trigger("unsaturated")}if(g.idle()){trigger("drain")}g.process()}}function _maybeDrain(e){if(e.length===0&&g.idle()){s((()=>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 p=false;var g={_tasks:new DLL,_createTaskItem(e,t){return{data:e,callback:t}},*[Symbol.iterator](){yield*g._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();g._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){g._tasks.remove(e)},process(){if(p){return}p=true;while(!g.paused&&i<g.concurrency&&g._tasks.length){var e=[],t=[];var r=g._tasks.length;if(g.payload)r=Math.min(r,g.payload);for(var s=0;s<r;s++){var c=g._tasks.shift();e.push(c);o.push(c);t.push(c.data)}i+=1;if(g._tasks.length===0){trigger("empty")}if(i===g.concurrency){trigger("saturated")}var h=onlyOnce(_createCB(e));n(t,h)}p=false},length(){return g._tasks.length},running(){return i},workersList(){return o},idle(){return g._tasks.length+i===0},pause(){g.paused=true},resume(){if(g.paused===false){return}g.paused=false;s(g.process)}};Object.defineProperties(g,{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 g}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 b(e,((e,r,n)=>{i(t,e,((e,r)=>{t=r;n(e)}))}),(e=>n(e,t)))}var R=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()}R(t,e,((e,t,n)=>{t.apply(r,e.concat(((e,...t)=>{n(e,t)})))}),((e,t)=>n(e,...t)));return n[w]}}function compose(...e){return seq(...e.reverse())}function mapLimit(e,t,r,n){return _asyncMap(eachOfLimit$2(t),e,r,n)}var C=awaitify(mapLimit,4);function concatLimit(e,t,r,n){var i=wrapAsync(r);return C(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 O=awaitify(concatLimit,4);function concat(e,t,r){return O(e,Infinity,t,r)}var P=awaitify(concat,3);function concatSeries(e,t,r){return O(e,1,t,r)}var A=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,s)=>{var o=false;var h;const p=wrapAsync(i);r(n,((r,n,i)=>{p(r,((n,s)=>{if(n||n===false)return i(n);if(e(s)&&!h){o=true;h=t(true,r);return i(null,c)}i()}))}),(e=>{if(e)return s(e);s(null,o?h:t(false))}))}}function detect(e,t,r){return _createTester((e=>e),((e,t)=>t))(p,e,t,r)}var I=awaitify(detect,3);function detectLimit(e,t,r,n){return _createTester((e=>e),((e,t)=>t))(eachOfLimit$2(t),e,r,n)}var N=awaitify(detectLimit,4);function detectSeries(e,t,r){return _createTester((e=>e),((e,t)=>t))(eachOfLimit$2(1),e,t,r)}var M=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 D=consoleFunc("dir");function doWhilst(e,t,r){r=onlyOnce(r);var n=wrapAsync(e);var i=wrapAsync(t);var s;function next(e,...t){if(e)return r(e);if(e===false)return;s=t;i(...t,check)}function check(e,t){if(e)return r(e);if(e===false)return;if(!t)return r(null,...s);n(next)}return check(null,true)}var L=awaitify(doWhilst,3);function doUntil(e,t,r){const n=wrapAsync(t);return L(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 p(e,_withoutIndex(wrapAsync(t)),r)}var j=awaitify(eachLimit$2,3);function eachLimit(e,t,r,n){return eachOfLimit$2(t)(e,_withoutIndex(wrapAsync(r)),n)}var F=awaitify(eachLimit,4);function eachSeries(e,t,r){return F(e,1,t,r)}var B=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){s((()=>r(...e)))}else{r(...e)}}));e.apply(this,t);n=false}}function every(e,t,r){return _createTester((e=>!e),(e=>!e))(p,e,t,r)}var W=awaitify(every,3);function everyLimit(e,t,r,n){return _createTester((e=>!e),(e=>!e))(eachOfLimit$2(t),e,r,n)}var H=awaitify(everyLimit,4);function everySeries(e,t,r){return _createTester((e=>!e),(e=>!e))(b,e,t,r)}var z=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 s=0;s<t.length;s++){if(i[s])r.push(t[s])}n(null,r)}))}function filterGeneric(e,t,r,n){var i=[];e(t,((e,t,n)=>{r(e,((r,s)=>{if(r)return n(r);if(s){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(p,e,t,r)}var U=awaitify(filter,3);function filterLimit(e,t,r,n){return _filter(eachOfLimit$2(t),e,r,n)}var $=awaitify(filterLimit,4);function filterSeries(e,t,r){return _filter(b,e,t,r)}var q=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 V=awaitify(forever,2);function groupByLimit(e,t,r,n){var i=wrapAsync(r);return C(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 s=0;s<t.length;s++){if(t[s]){var{key:o}=t[s];var{val:c}=t[s];if(i.call(r,o)){r[o].push(c)}else{r[o]=[c]}}}return n(e,r)}))}var X=awaitify(groupByLimit,4);function groupBy(e,t,r){return X(e,Infinity,t,r)}function groupBySeries(e,t,r){return X(e,1,t,r)}var G=consoleFunc("log");function mapValuesLimit(e,t,r,n){n=once(n);var i={};var s=wrapAsync(r);return eachOfLimit$2(t)(e,((e,t,r)=>{s(e,t,((e,n)=>{if(e)return r(e);i[t]=n;r(e)}))}),(e=>n(e,i)))}var K=awaitify(mapValuesLimit,4);function mapValues(e,t,r){return K(e,Infinity,t,r)}function mapValuesSeries(e,t,r){return K(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 o=initialParams(((e,o)=>{var c=t(...e);if(c in r){s((()=>o(null,...r[c])))}else if(c in n){n[c].push(o)}else{n[c]=[o];i(...e,((e,...t)=>{if(!e){r[c]=t}var i=n[c];delete n[c];for(var s=0,o=i.length;s<o;s++){i[s](e,...t)}}))}}));o.memo=r;o.unmemoized=e;return o}var Z;if(n){Z=process.nextTick}else if(r){Z=setImmediate}else{Z=fallback}var Y=wrap(Z);var Q=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 Q(p,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: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 J=awaitify(race,2);function reduceRight(e,t,r,n){var i=[...e].reverse();return R(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(p,e,t,r)}var ee=awaitify(reject,3);function rejectLimit(e,t,r,n){return reject$2(eachOfLimit$2(t),e,r,n)}var te=awaitify(rejectLimit,4);function rejectSeries(e,t,r){return reject$2(b,e,t,r)}var re=awaitify(rejectSeries,3);function constant(e){return function(){return e}}const ne=5;const ie=0;function retry(e,t,r){var n={times:ne,intervalFunc:constant(ie)};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 s=1;function retryAttempt(){i(((e,...t)=>{if(e===false)return;if(e&&s++<n.times&&(typeof n.errorFilter!="function"||n.errorFilter(e))){setTimeout(retryAttempt,n.intervalFunc(s-1))}else{r(e,...t)}}))}retryAttempt();return r[w]}function parseTimes(e,t){if(typeof t==="object"){e.times=+t.times||ne;e.intervalFunc=typeof t.interval==="function"?t.interval:constant(+t.interval||ie);e.errorFilter=t.errorFilter}else if(typeof t==="number"||typeof t==="string"){e.times=+t||ne}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[w]}))}function series(e,t){return Q(b,e,t)}function some(e,t,r){return _createTester(Boolean,(e=>e))(p,e,t,r)}var ae=awaitify(some,3);function someLimit(e,t,r,n){return _createTester(Boolean,(e=>e))(eachOfLimit$2(t),e,r,n)}var se=awaitify(someLimit,4);function someSeries(e,t,r){return _createTester(Boolean,(e=>e))(b,e,t,r)}var oe=awaitify(someSeries,3);function sortBy(e,t,r){var n=wrapAsync(t);return g(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 le=awaitify(sortBy,3);function timeout(e,t,r){var n=wrapAsync(e);return initialParams(((i,s)=>{var o=false;var c;function timeoutCallback(){var t=e.name||"anonymous";var n=new Error('Callback function "'+t+'" timed out.');n.code="ETIMEDOUT";if(r){n.info=r}o=true;s(n)}i.push(((...e)=>{if(!o){s(...e);clearTimeout(c)}}));c=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 C(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);p(e,((e,r,n)=>{i(t,e,r,n)}),(e=>n(e,t)));return n[w]}function tryEach(e,t){var r=null;var n;return B(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 ue=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 s=[];function next(e,...t){if(e)return r(e);s=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,...s);n(next)}return i(check)}var fe=awaitify(whilst,3);function until(e,t,r){const n=wrapAsync(e);return fe((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 ce=awaitify(waterfall);var he={apply:apply,applyEach:y,applyEachSeries:_,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo$1,cargoQueue:cargo,compose:compose,concat:P,concatLimit:O,concatSeries:A,constant:constant$1,detect:I,detectLimit:N,detectSeries:M,dir:D,doUntil:doUntil,doWhilst:L,each:j,eachLimit:F,eachOf:p,eachOfLimit:h,eachOfSeries:b,eachSeries:B,ensureAsync:ensureAsync,every:W,everyLimit:H,everySeries:z,filter:U,filterLimit:$,filterSeries:q,forever:V,groupBy:groupBy,groupByLimit:X,groupBySeries:groupBySeries,log:G,map:g,mapLimit:C,mapSeries:v,mapValues:mapValues,mapValuesLimit:K,mapValuesSeries:mapValuesSeries,memoize:memoize,nextTick:Y,parallel:parallel,parallelLimit:parallelLimit,priorityQueue:priorityQueue,queue:queue,race:J,reduce:R,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:ee,rejectLimit:te,rejectSeries:re,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:s,some:ae,someLimit:se,someSeries:oe,sortBy:le,timeout:timeout,times:times,timesLimit:timesLimit,timesSeries:timesSeries,transform:transform,tryEach:ue,unmemoize:unmemoize,until:until,waterfall:ce,whilst:fe,all:W,allLimit:H,allSeries:z,any:ae,anyLimit:se,anySeries:oe,find:I,findLimit:N,findSeries:M,flatMap:P,flatMapLimit:O,flatMapSeries:A,forEach:j,forEachSeries:B,forEachLimit:F,forEachOf:p,forEachOfSeries:b,forEachOfLimit:h,inject:R,foldl:R,foldr:reduceRight,select:U,selectLimit:$,selectSeries:q,wrapSync:asyncify,during:fe,doDuring:L};e.all=W;e.allLimit=H;e.allSeries=z;e.any=ae;e.anyLimit=se;e.anySeries=oe;e.apply=apply;e.applyEach=y;e.applyEachSeries=_;e.asyncify=asyncify;e.auto=auto;e.autoInject=autoInject;e.cargo=cargo$1;e.cargoQueue=cargo;e.compose=compose;e.concat=P;e.concatLimit=O;e.concatSeries=A;e.constant=constant$1;e.default=he;e.detect=I;e.detectLimit=N;e.detectSeries=M;e.dir=D;e.doDuring=L;e.doUntil=doUntil;e.doWhilst=L;e.during=fe;e.each=j;e.eachLimit=F;e.eachOf=p;e.eachOfLimit=h;e.eachOfSeries=b;e.eachSeries=B;e.ensureAsync=ensureAsync;e.every=W;e.everyLimit=H;e.everySeries=z;e.filter=U;e.filterLimit=$;e.filterSeries=q;e.find=I;e.findLimit=N;e.findSeries=M;e.flatMap=P;e.flatMapLimit=O;e.flatMapSeries=A;e.foldl=R;e.foldr=reduceRight;e.forEach=j;e.forEachLimit=F;e.forEachOf=p;e.forEachOfLimit=h;e.forEachOfSeries=b;e.forEachSeries=B;e.forever=V;e.groupBy=groupBy;e.groupByLimit=X;e.groupBySeries=groupBySeries;e.inject=R;e.log=G;e.map=g;e.mapLimit=C;e.mapSeries=v;e.mapValues=mapValues;e.mapValuesLimit=K;e.mapValuesSeries=mapValuesSeries;e.memoize=memoize;e.nextTick=Y;e.parallel=parallel;e.parallelLimit=parallelLimit;e.priorityQueue=priorityQueue;e.queue=queue;e.race=J;e.reduce=R;e.reduceRight=reduceRight;e.reflect=reflect;e.reflectAll=reflectAll;e.reject=ee;e.rejectLimit=te;e.rejectSeries=re;e.retry=retry;e.retryable=retryable;e.select=U;e.selectLimit=$;e.selectSeries=q;e.seq=seq;e.series=series;e.setImmediate=s;e.some=ae;e.someLimit=se;e.someSeries=oe;e.sortBy=le;e.timeout=timeout;e.times=times;e.timesLimit=timesLimit;e.timesSeries=timesSeries;e.transform=transform;e.tryEach=ue;e.unmemoize=unmemoize;e.until=until;e.waterfall=ce;e.whilst=fe;e.wrapSync=asyncify;Object.defineProperty(e,"__esModule",{value:true})}))},32364: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.q=t},38513: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(38911);var s=r(67953);r(44124)(Duplex,i);{var o=n(s.prototype);for(var c=0;c<o.length;c++){var h=o[c];if(!Duplex.prototype[h])Duplex.prototype[h]=s.prototype[h]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);i.call(this,e);s.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}})},33355:function(e,t,r){"use strict";e.exports=PassThrough;var n=r(71634);r(44124)(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)}},38911:function(e,t,r){"use strict";e.exports=Readable;var n;Readable.ReadableState=ReadableState;var i=r(82361).EventEmitter;var s=function EElistenerCount(e,t){return e.listeners(t).length};var o=r(1781);var c=r(14300).Buffer;var h=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return c.from(e)}function _isUint8Array(e){return c.isBuffer(e)||e instanceof h}var p=r(73837);var g;if(p&&p.debuglog){g=p.debuglog("stream")}else{g=function debug(){}}var y=r(65502);var b=r(28012);var v=r(81205),_=v.getHighWaterMark;var w=r(32364).q,S=w.ERR_INVALID_ARG_TYPE,k=w.ERR_STREAM_PUSH_AFTER_EOF,x=w.ERR_METHOD_NOT_IMPLEMENTED,E=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var R;var C;var O;r(44124)(Readable,o);var P=b.errorOrDestroy;var A=["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(38513);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=_(this,e,"readableHighWaterMark",i);this.buffer=new y;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(!R)R=r(94841).s;this.decoder=new R(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||r(38513);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}o.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=b.destroy;Readable.prototype._undestroy=b.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=c.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){g("readableAddChunk",t);var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var o;if(!i)o=chunkInvalid(s,t);if(o){P(e,o)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==c.prototype){t=_uint8ArrayToBuffer(t)}if(n){if(s.endEmitted)P(e,new E);else addChunk(e,s,t,true)}else if(s.ended){P(e,new k)}else if(s.destroyed){return false}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(!n){s.reading=false;maybeReadMore(e,s)}}return!s.ended&&(s.length<s.highWaterMark||s.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 S("chunk",["string","Buffer","Uint8Array"],t)}return r}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!R)R=r(94841).s;var t=new R(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 I=1073741824;function computeNewHighWaterMark(e){if(e>=I){e=I}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){g("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)){g("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;g("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;g("length less than watermark",n)}if(t.ended||t.reading){n=false;g("reading or ended",n)}else if(n){g("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){g("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;g("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){g("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;g("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;g("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}Readable.prototype._read=function(e){P(this,new x("_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;g("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var o=i?onend:unpipe;if(n.endEmitted)process.nextTick(o);else r.once("end",o);e.on("unpipe",onunpipe);function onunpipe(e,t){g("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){g("onend");e.end()}var c=pipeOnDrain(r);e.on("drain",c);var h=false;function cleanup(){g("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",c);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);h=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))c()}r.on("data",ondata);function ondata(t){g("ondata");var i=e.write(t);g("dest.write",i);if(i===false){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!h){g("false write response, pause",n.awaitDrain);n.awaitDrain++}r.pause()}}function onerror(t){g("onerror",t);unpipe();e.removeListener("error",onerror);if(s(e,"error")===0)P(e,t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){g("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){g("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){g("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;g("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&s(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 s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:false});return this}var o=indexOf(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,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);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;g("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=o.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return r};Readable.prototype.removeAllListeners=function(e){var t=o.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){g("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){g("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){g("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(){g("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){g("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;g("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(){g("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){g("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 s=t.push(i);if(!s){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 s=0;s<A.length;s++){e.on(A[s],this.emit.bind(this,A[s]))}this._read=function(t){g("wrapped _read",t);if(n){n=false;e.resume()}};return this};if(typeof Symbol==="function"){Readable.prototype[Symbol.asyncIterator]=function(){if(C===undefined){C=r(64683)}return C(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;g("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){g("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(O===undefined){O=r(26709)}return O(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}},71634:function(e,t,r){"use strict";e.exports=Transform;var n=r(32364).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0;var h=r(38513);r(44124)(Transform,h);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(n===null){return this.emit("error",new s)}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);h.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 h.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){h.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 c;if(e._transformState.transforming)throw new o;return e.push(null)}},67953: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(65278)};var s=r(1781);var o=r(14300).Buffer;var c=(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 c}var h=r(28012);var p=r(81205),g=p.getHighWaterMark;var y=r(32364).q,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_MULTIPLE_CALLBACK,w=y.ERR_STREAM_CANNOT_PIPE,S=y.ERR_STREAM_DESTROYED,k=y.ERR_STREAM_NULL_VALUES,x=y.ERR_STREAM_WRITE_AFTER_END,E=y.ERR_UNKNOWN_ENCODING;var R=h.errorOrDestroy;r(44124)(Writable,s);function nop(){}function WritableState(e,t,i){n=n||r(38513);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=g(this,e,"writableHighWaterMark",i);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var s=e.decodeStrings===false;this.decodeStrings=!s;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 C;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){C=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(C.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{C=function realHasInstance(e){return e instanceof this}}function Writable(e){n=n||r(38513);var t=this instanceof n;if(!t&&!C.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}s.call(this)}Writable.prototype.pipe=function(){R(this,new w)};function writeAfterEnd(e,t){var r=new x;R(e,r);process.nextTick(t,r)}function validChunk(e,t,r,n){var i;if(r===null){i=new k}else if(typeof r!=="string"&&!t.objectMode){i=new b("chunk",["string","Buffer"],r)}if(i){R(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 s=!n.objectMode&&_isUint8Array(e);if(s&&!o.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(s)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=nop;if(n.ending)writeAfterEnd(this,r);else if(s||validChunk(this,n,e,r)){n.pendingcb++;i=writeOrBuffer(this,n,s,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 E(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=o.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,s){if(!r){var o=decodeChunk(t,n,i);if(n!==o){r=true;i="buffer";n=o}}var c=t.objectMode?1:n.length;t.length+=c;var h=t.length<t.highWaterMark;if(!h)t.needDrain=true;if(t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null};if(p){p.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,c,n,i,s)}return h}function doWrite(e,t,r,n,i,s,o){t.writelen=n;t.writecb=o;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new S("write"));else if(r)e._writev(i,t.onwrite);else e._write(i,s,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;R(e,n)}else{i(n);e._writableState.errorEmitted=true;R(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 _;onwriteStateUpdate(r);if(t)onwriteError(e,r,n,t,i);else{var s=needFinish(r)||e.destroyed;if(!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(n){process.nextTick(afterWrite,e,r,s,i)}else{afterWrite(e,r,s,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 s=t.corkedRequestsFree;s.entry=r;var o=0;var c=true;while(r){i[o]=r;if(!r.isBuf)c=false;r=r.next;o+=1}i.allBuffers=c;doWrite(e,t,true,t.length,i,"",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 h=r.chunk;var p=r.encoding;var g=r.callback;var y=t.objectMode?1:h.length;doWrite(e,t,false,y,h,p,g);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 v("_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){R(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=h.destroy;Writable.prototype._undestroy=h.undestroy;Writable.prototype._destroy=function(e,t){t(e)}},64683: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(21979);var s=Symbol("lastResolve");var o=Symbol("lastReject");var c=Symbol("error");var h=Symbol("ended");var p=Symbol("lastPromise");var g=Symbol("handlePromise");var y=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[s];if(t!==null){var r=e[y].read();if(r!==null){e[p]=null;e[s]=null;e[o]=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[h]){r(createIterResult(undefined,true));return}t[g](r,n)}),n)}}var b=Object.getPrototypeOf((function(){}));var v=Object.setPrototypeOf((n={get stream(){return this[y]},next:function next(){var e=this;var t=this[c];if(t!==null){return Promise.reject(t)}if(this[h]){return Promise.resolve(createIterResult(undefined,true))}if(this[y].destroyed){return new Promise((function(t,r){process.nextTick((function(){if(e[c]){r(e[c])}else{t(createIterResult(undefined,true))}}))}))}var r=this[p];var n;if(r){n=new Promise(wrapForNext(r,this))}else{var i=this[y].read();if(i!==null){return Promise.resolve(createIterResult(i,false))}n=new Promise(this[g])}this[p]=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[y].destroy(null,(function(e){if(e){r(e);return}t(createIterResult(undefined,true))}))}))})),n),b);var _=function createReadableStreamAsyncIterator(e){var t;var r=Object.create(v,(t={},_defineProperty(t,y,{value:e,writable:true}),_defineProperty(t,s,{value:null,writable:true}),_defineProperty(t,o,{value:null,writable:true}),_defineProperty(t,c,{value:null,writable:true}),_defineProperty(t,h,{value:e._readableState.endEmitted,writable:true}),_defineProperty(t,g,{value:function value(e,t){var n=r[y].read();if(n){r[p]=null;r[s]=null;r[o]=null;e(createIterResult(n,false))}else{r[s]=e;r[o]=t}},writable:true}),t));r[p]=null;i(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=r[o];if(t!==null){r[p]=null;r[s]=null;r[o]=null;t(e)}r[c]=e;return}var n=r[s];if(n!==null){r[p]=null;r[s]=null;r[o]=null;n(createIterResult(undefined,true))}r[h]=true}));e.on("readable",onReadable.bind(null,r));return r};e.exports=_},65502: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(14300),i=n.Buffer;var s=r(73837),o=s.inspect;var c=o&&o.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 s=e>i.length?i.length:e;if(s===i.length)n+=i;else n+=i.slice(0,e);e-=s;if(e===0){if(s===i.length){++r;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=i.slice(s)}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 s=r.data;var o=e>s.length?s.length:e;s.copy(t,t.length-e,0,o);e-=o;if(e===0){if(o===s.length){++n;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=s.slice(o)}break}++n}this.length-=n;return t}},{key:c,value:function value(e,t){return o(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:false}))}}]);return BufferList}()},28012: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}},21979:function(e,t,r){"use strict";var n=r(32364).q.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 s=t.writable||t.writable!==false&&e.writable;var o=function onlegacyfinish(){if(!e.writable)h()};var c=e._writableState&&e._writableState.finished;var h=function onfinish(){s=false;c=true;if(!i)r.call(e)};var p=e._readableState&&e._readableState.endEmitted;var g=function onend(){i=false;p=true;if(!s)r.call(e)};var y=function onerror(t){r.call(e,t)};var b=function onclose(){var t;if(i&&!p){if(!e._readableState||!e._readableState.ended)t=new n;return r.call(e,t)}if(s&&!c){if(!e._writableState||!e._writableState.ended)t=new n;return r.call(e,t)}};var v=function onrequest(){e.req.on("finish",h)};if(isRequest(e)){e.on("complete",h);e.on("abort",b);if(e.req)v();else e.on("request",v)}else if(s&&!e._writableState){e.on("end",o);e.on("close",o)}e.on("end",g);e.on("finish",h);if(t.error!==false)e.on("error",y);e.on("close",b);return function(){e.removeListener("complete",h);e.removeListener("abort",b);e.removeListener("request",v);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",o);e.removeListener("close",o);e.removeListener("finish",h);e.removeListener("end",g);e.removeListener("error",y);e.removeListener("close",b)}}e.exports=eos},26709:function(e,t,r){"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var c=e[s](o);var h=c.value}catch(e){r(e);return}if(c.done){t(h)}else{Promise.resolve(h).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,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(32364).q.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 s=new e(_objectSpread({objectMode:true},r));var o=false;s._read=function(){if(!o){o=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){s.push(null)}else if(s.push(yield t)){next()}else{o=false}}catch(e){s.destroy(e)}}));return _next2.apply(this,arguments)}return s}e.exports=from},94397: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(32364).q,s=i.ERR_MISSING_ARGS,o=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,s){s=once(s);var c=false;e.on("close",(function(){c=true}));if(n===undefined)n=r(21979);n(e,{readable:t,writable:i},(function(e){if(e)return s(e);c=true;s()}));var h=false;return function(t){if(c)return;if(h)return;h=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();s(t||new o("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 s("streams")}var i;var o=t.map((function(e,r){var s=r<t.length-1;var c=r>0;return destroyer(e,s,c,(function(e){if(!i)i=e;if(e)o.forEach(call);if(s)return;o.forEach(call);n(i)}))}));return t.reduce(pipe)}e.exports=pipeline},81205:function(e,t,r){"use strict";var n=r(32364).q.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 s=highWaterMarkFrom(t,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var o=i?r:"highWaterMark";throw new n(o,s)}return Math.floor(s)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},1781:function(e,t,r){e.exports=r(12781)},43871:function(e,t,r){var n=r(12781);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(38911);t.Stream=n||t;t.Readable=t;t.Writable=r(67953);t.Duplex=r(38513);t.Transform=r(71634);t.PassThrough=r(33355);t.finished=r(21979);t.pipeline=r(94397)}},13934:function(e,t,r){var n=r(73837);var i=r(20336);var s=r(70209);var o=r(43871).Writable;var c=r(43871).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;c.call(this,{autoDestroy:false})};n.inherits(Source,c);Source.prototype.destroy=function(e){this._parent.destroy(e)};var Extract=function(e){if(!(this instanceof Extract))return new Extract(e);o.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=s.decodePax(r.slice(0,e));r.consume(e);onstreamend()};var onpaxheader=function(){var e=t._header.size;t._pax=s.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=s.decodeLongPath(r.slice(0,n),e.filenameEncoding);r.consume(n);onstreamend()};var ongnulonglinkpath=function(){var n=t._header.size;this._gnuLongLinkPath=s.decodeLongPath(r.slice(0,n),e.filenameEncoding);r.consume(n);onstreamend()};var onheader=function(){var n=t._offset;var i;try{i=t._header=s.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,o);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 s=this._missing;if(e.length)this._partial=true;if(e.length<s){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 o=null;if(e.length>s){o=e.slice(s);e=e.slice(0,s)}if(n)n.end(e);else i.append(e);this._overflow=o;this._onparse()};Extract.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};e.exports=Extract},70209:function(e,t){var r=Buffer.alloc;var n="0000000000000000000";var i="7777777777777777777";var s="0".charCodeAt(0);var o=Buffer.from("ustar\0","binary");var c=Buffer.from("00","binary");var h=Buffer.from("ustar ","binary");var p=Buffer.from(" \0","binary");var g=parseInt("7777",8);var y=257;var b=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 s=0;var o=r.length;for(n=0;n<o;n++){s+=r[n]*Math.pow(256,n)}return t?s:-1*s}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 s=i.indexOf("=");if(s===-1)return t;t[i.slice(0,s)]=i.slice(s+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 h=n.indexOf("/");if(h===-1)return null;i+=i?"/"+n.slice(0,h):n.slice(0,h);n=n.slice(h+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&g,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]=s+toTypeflag(e.type);if(e.linkname)t.write(e.linkname,157);o.copy(t,y);c.copy(t,b);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]-s;var i=decodeStr(e,0,100,t);var c=decodeOct(e,100,8);var g=decodeOct(e,108,8);var v=decodeOct(e,116,8);var _=decodeOct(e,124,12);var w=decodeOct(e,136,12);var S=toType(n);var k=e[157]===0?null:decodeStr(e,157,100,t);var x=decodeStr(e,265,32);var E=decodeStr(e,297,32);var R=decodeOct(e,329,8);var C=decodeOct(e,337,8);var O=cksum(e);if(O===8*32)return null;if(O!==decodeOct(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(o.compare(e,y,y+6)===0){if(e[345])i=decodeStr(e,345,155,t)+"/"+i}else if(h.compare(e,y,y+6)===0&&p.compare(e,b,b+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:c,uid:g,gid:v,size:_,mtime:new Date(1e3*w),type:S,linkname:k,uname:x,gname:E,devmajor:R,devminor:C}}},91518:function(e,t,r){t.extract=r(13934);t.pack=r(48014)},48014:function(e,t,r){var n=r(73186);var i=r(88434);var s=r(44124);var o=Buffer.alloc;var c=r(43871).Readable;var h=r(43871).Writable;var p=r(71576).StringDecoder;var g=r(70209);var y=parseInt("755",8);var b=parseInt("644",8);var v=o(1024);var noop=function(){};var overflow=function(e,t){t&=511;if(t)e.push(v.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){h.call(this);this.written=0;this._to=e;this._destroyed=false};s(Sink,h);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(){h.call(this);this.linkname="";this._decoder=new p("utf-8");this._destroyed=false};s(LinkSink,h);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(){h.call(this);this._destroyed=false};s(Void,h);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);c.call(this,e);this._drain=noop;this._finalized=false;this._finalizing=false;this._destroyed=false;this._stream=null};s(Pack,c);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"?y:b;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 s=this.push(t);overflow(n,e.size);if(s)process.nextTick(r);else this._drain=r;return new Void}if(e.type==="symlink"&&!e.linkname){var o=new LinkSink;i(o,(function(t){if(t){n.destroy();return r(t)}e.linkname=o.linkname;n._encode(e);r()}));return o}this._encode(e);if(e.type!=="file"&&e.type!=="contiguous-file"){process.nextTick(r);return new Void}var c=new Sink(this);this._stream=c;i(c,(function(t){n._stream=null;if(t){n.destroy();return r(t)}if(c.written!==e.size){n.destroy();return r(new Error("size mismatch"))}overflow(n,e.size);if(n._finalizing)n.finalize();r()}));return c};Pack.prototype.finalize=function(){if(this._stream){this._finalizing=true;return}if(this._finalized)return;this._finalized=true;this.push(v);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=g.encode(e);if(t){this.push(t);return}}this._encodePax(e)};Pack.prototype._encodePax=function(e){var t=g.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(g.encode(r));this.push(t);overflow(this,t.length);r.size=e.size;r.type=e.type;this.push(g.encode(r))};Pack.prototype._read=function(e){var t=this._drain;this._drain=noop;t()};e.exports=Pack},9417: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,s,o,c;var h=r.indexOf(e);var p=r.indexOf(t,h+1);var g=h;if(h>=0&&p>0){if(e===t){return[h,p]}n=[];s=r.length;while(g>=0&&!c){if(g==h){n.push(g);h=r.indexOf(e,g+1)}else if(n.length==1){c=[n.pop(),p]}else{i=n.pop();if(i<s){s=i;o=p}p=r.indexOf(t,g+1)}g=h<p&&h>=0?h:p}if(n.length){c=[s,o]}}return c}},41575:function(e,t,r){e=r.nmd(e);var n=function(e){"use strict";var t=1e7,r=7,i=9007199254740992,s=smallToArray(i),o="0123456789abcdefghijklmnopqrstuvwxyz";var c=typeof BigInt==="function";function Integer(e,t,r,n){if(typeof e==="undefined")return Integer[0];if(typeof t!=="undefined")return+t===10&&!r?parseValue(e):parseBase(e,t,r,n);return parseValue(e)}function BigInteger(e,t){this.value=e;this.sign=t;this.isSmall=false}BigInteger.prototype=Object.create(Integer.prototype);function SmallInteger(e){this.value=e;this.sign=e<0;this.isSmall=true}SmallInteger.prototype=Object.create(Integer.prototype);function NativeBigInt(e){this.value=e}NativeBigInt.prototype=Object.create(Integer.prototype);function isPrecise(e){return-i<e&&e<i}function smallToArray(e){if(e<1e7)return[e];if(e<1e14)return[e%1e7,Math.floor(e/1e7)];return[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function arrayToSmall(e){trim(e);var r=e.length;if(r<4&&compareAbs(e,s)<0){switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*t;default:return e[0]+(e[1]+e[2]*t)*t}}return e}function trim(e){var t=e.length;while(e[--t]===0);e.length=t+1}function createArray(e){var t=new Array(e);var r=-1;while(++r<e){t[r]=0}return t}function truncate(e){if(e>0)return Math.floor(e);return Math.ceil(e)}function add(e,r){var n=e.length,i=r.length,s=new Array(n),o=0,c=t,h,p;for(p=0;p<i;p++){h=e[p]+r[p]+o;o=h>=c?1:0;s[p]=h-o*c}while(p<n){h=e[p]+o;o=h===c?1:0;s[p++]=h-o*c}if(o>0)s.push(o);return s}function addAny(e,t){if(e.length>=t.length)return add(e,t);return add(t,e)}function addSmall(e,r){var n=e.length,i=new Array(n),s=t,o,c;for(c=0;c<n;c++){o=e[c]-s+r;r=Math.floor(o/s);i[c]=o-r*s;r+=1}while(r>0){i[c++]=r%s;r=Math.floor(r/s)}return i}BigInteger.prototype.add=function(e){var t=parseValue(e);if(this.sign!==t.sign){return this.subtract(t.negate())}var r=this.value,n=t.value;if(t.isSmall){return new BigInteger(addSmall(r,Math.abs(n)),this.sign)}return new BigInteger(addAny(r,n),this.sign)};BigInteger.prototype.plus=BigInteger.prototype.add;SmallInteger.prototype.add=function(e){var t=parseValue(e);var r=this.value;if(r<0!==t.sign){return this.subtract(t.negate())}var n=t.value;if(t.isSmall){if(isPrecise(r+n))return new SmallInteger(r+n);n=smallToArray(Math.abs(n))}return new BigInteger(addSmall(n,Math.abs(r)),r<0)};SmallInteger.prototype.plus=SmallInteger.prototype.add;NativeBigInt.prototype.add=function(e){return new NativeBigInt(this.value+parseValue(e).value)};NativeBigInt.prototype.plus=NativeBigInt.prototype.add;function subtract(e,r){var n=e.length,i=r.length,s=new Array(n),o=0,c=t,h,p;for(h=0;h<i;h++){p=e[h]-o-r[h];if(p<0){p+=c;o=1}else o=0;s[h]=p}for(h=i;h<n;h++){p=e[h]-o;if(p<0)p+=c;else{s[h++]=p;break}s[h]=p}for(;h<n;h++){s[h]=e[h]}trim(s);return s}function subtractAny(e,t,r){var n;if(compareAbs(e,t)>=0){n=subtract(e,t)}else{n=subtract(t,e);r=!r}n=arrayToSmall(n);if(typeof n==="number"){if(r)n=-n;return new SmallInteger(n)}return new BigInteger(n,r)}function subtractSmall(e,r,n){var i=e.length,s=new Array(i),o=-r,c=t,h,p;for(h=0;h<i;h++){p=e[h]+o;o=Math.floor(p/c);p%=c;s[h]=p<0?p+c:p}s=arrayToSmall(s);if(typeof s==="number"){if(n)s=-s;return new SmallInteger(s)}return new BigInteger(s,n)}BigInteger.prototype.subtract=function(e){var t=parseValue(e);if(this.sign!==t.sign){return this.add(t.negate())}var r=this.value,n=t.value;if(t.isSmall)return subtractSmall(r,Math.abs(n),this.sign);return subtractAny(r,n,this.sign)};BigInteger.prototype.minus=BigInteger.prototype.subtract;SmallInteger.prototype.subtract=function(e){var t=parseValue(e);var r=this.value;if(r<0!==t.sign){return this.add(t.negate())}var n=t.value;if(t.isSmall){return new SmallInteger(r-n)}return subtractSmall(n,Math.abs(r),r>=0)};SmallInteger.prototype.minus=SmallInteger.prototype.subtract;NativeBigInt.prototype.subtract=function(e){return new NativeBigInt(this.value-parseValue(e).value)};NativeBigInt.prototype.minus=NativeBigInt.prototype.subtract;BigInteger.prototype.negate=function(){return new BigInteger(this.value,!this.sign)};SmallInteger.prototype.negate=function(){var e=this.sign;var t=new SmallInteger(-this.value);t.sign=!e;return t};NativeBigInt.prototype.negate=function(){return new NativeBigInt(-this.value)};BigInteger.prototype.abs=function(){return new BigInteger(this.value,false)};SmallInteger.prototype.abs=function(){return new SmallInteger(Math.abs(this.value))};NativeBigInt.prototype.abs=function(){return new NativeBigInt(this.value>=0?this.value:-this.value)};function multiplyLong(e,r){var n=e.length,i=r.length,s=n+i,o=createArray(s),c=t,h,p,g,y,b;for(g=0;g<n;++g){y=e[g];for(var v=0;v<i;++v){b=r[v];h=y*b+o[g+v];p=Math.floor(h/c);o[g+v]=h-p*c;o[g+v+1]+=p}}trim(o);return o}function multiplySmall(e,r){var n=e.length,i=new Array(n),s=t,o=0,c,h;for(h=0;h<n;h++){c=e[h]*r+o;o=Math.floor(c/s);i[h]=c-o*s}while(o>0){i[h++]=o%s;o=Math.floor(o/s)}return i}function shiftLeft(e,t){var r=[];while(t-- >0)r.push(0);return r.concat(e)}function multiplyKaratsuba(e,t){var r=Math.max(e.length,t.length);if(r<=30)return multiplyLong(e,t);r=Math.ceil(r/2);var n=e.slice(r),i=e.slice(0,r),s=t.slice(r),o=t.slice(0,r);var c=multiplyKaratsuba(i,o),h=multiplyKaratsuba(n,s),p=multiplyKaratsuba(addAny(i,n),addAny(o,s));var g=addAny(addAny(c,shiftLeft(subtract(subtract(p,c),h),r)),shiftLeft(h,2*r));trim(g);return g}function useKaratsuba(e,t){return-.012*e-.012*t+15e-6*e*t>0}BigInteger.prototype.multiply=function(e){var r=parseValue(e),n=this.value,i=r.value,s=this.sign!==r.sign,o;if(r.isSmall){if(i===0)return Integer[0];if(i===1)return this;if(i===-1)return this.negate();o=Math.abs(i);if(o<t){return new BigInteger(multiplySmall(n,o),s)}i=smallToArray(o)}if(useKaratsuba(n.length,i.length))return new BigInteger(multiplyKaratsuba(n,i),s);return new BigInteger(multiplyLong(n,i),s)};BigInteger.prototype.times=BigInteger.prototype.multiply;function multiplySmallAndArray(e,r,n){if(e<t){return new BigInteger(multiplySmall(r,e),n)}return new BigInteger(multiplyLong(r,smallToArray(e)),n)}SmallInteger.prototype._multiplyBySmall=function(e){if(isPrecise(e.value*this.value)){return new SmallInteger(e.value*this.value)}return multiplySmallAndArray(Math.abs(e.value),smallToArray(Math.abs(this.value)),this.sign!==e.sign)};BigInteger.prototype._multiplyBySmall=function(e){if(e.value===0)return Integer[0];if(e.value===1)return this;if(e.value===-1)return this.negate();return multiplySmallAndArray(Math.abs(e.value),this.value,this.sign!==e.sign)};SmallInteger.prototype.multiply=function(e){return parseValue(e)._multiplyBySmall(this)};SmallInteger.prototype.times=SmallInteger.prototype.multiply;NativeBigInt.prototype.multiply=function(e){return new NativeBigInt(this.value*parseValue(e).value)};NativeBigInt.prototype.times=NativeBigInt.prototype.multiply;function square(e){var r=e.length,n=createArray(r+r),i=t,s,o,c,h,p;for(c=0;c<r;c++){h=e[c];o=0-h*h;for(var g=c;g<r;g++){p=e[g];s=2*(h*p)+n[c+g]+o;o=Math.floor(s/i);n[c+g]=s-o*i}n[c+r]=o}trim(n);return n}BigInteger.prototype.square=function(){return new BigInteger(square(this.value),false)};SmallInteger.prototype.square=function(){var e=this.value*this.value;if(isPrecise(e))return new SmallInteger(e);return new BigInteger(square(smallToArray(Math.abs(this.value))),false)};NativeBigInt.prototype.square=function(e){return new NativeBigInt(this.value*this.value)};function divMod1(e,r){var n=e.length,i=r.length,s=t,o=createArray(r.length),c=r[i-1],h=Math.ceil(s/(2*c)),p=multiplySmall(e,h),g=multiplySmall(r,h),y,b,v,_,w,S,k;if(p.length<=n)p.push(0);g.push(0);c=g[i-1];for(b=n-i;b>=0;b--){y=s-1;if(p[b+i]!==c){y=Math.floor((p[b+i]*s+p[b+i-1])/c)}v=0;_=0;S=g.length;for(w=0;w<S;w++){v+=y*g[w];k=Math.floor(v/s);_+=p[b+w]-(v-k*s);v=k;if(_<0){p[b+w]=_+s;_=-1}else{p[b+w]=_;_=0}}while(_!==0){y-=1;v=0;for(w=0;w<S;w++){v+=p[b+w]-s+g[w];if(v<0){p[b+w]=v+s;v=0}else{p[b+w]=v;v=1}}_+=v}o[b]=y}p=divModSmall(p,h)[0];return[arrayToSmall(o),arrayToSmall(p)]}function divMod2(e,r){var n=e.length,i=r.length,s=[],o=[],c=t,h,p,g,y,b;while(n){o.unshift(e[--n]);trim(o);if(compareAbs(o,r)<0){s.push(0);continue}p=o.length;g=o[p-1]*c+o[p-2];y=r[i-1]*c+r[i-2];if(p>i){g=(g+1)*c}h=Math.ceil(g/y);do{b=multiplySmall(r,h);if(compareAbs(b,o)<=0)break;h--}while(h);s.push(h);o=subtract(o,b)}s.reverse();return[arrayToSmall(s),arrayToSmall(o)]}function divModSmall(e,r){var n=e.length,i=createArray(n),s=t,o,c,h,p;h=0;for(o=n-1;o>=0;--o){p=h*s+e[o];c=truncate(p/r);h=p-c*r;i[o]=c|0}return[i,h|0]}function divModAny(e,r){var n,i=parseValue(r);if(c){return[new NativeBigInt(e.value/i.value),new NativeBigInt(e.value%i.value)]}var s=e.value,o=i.value;var h;if(o===0)throw new Error("Cannot divide by zero");if(e.isSmall){if(i.isSmall){return[new SmallInteger(truncate(s/o)),new SmallInteger(s%o)]}return[Integer[0],e]}if(i.isSmall){if(o===1)return[e,Integer[0]];if(o==-1)return[e.negate(),Integer[0]];var p=Math.abs(o);if(p<t){n=divModSmall(s,p);h=arrayToSmall(n[0]);var g=n[1];if(e.sign)g=-g;if(typeof h==="number"){if(e.sign!==i.sign)h=-h;return[new SmallInteger(h),new SmallInteger(g)]}return[new BigInteger(h,e.sign!==i.sign),new SmallInteger(g)]}o=smallToArray(p)}var y=compareAbs(s,o);if(y===-1)return[Integer[0],e];if(y===0)return[Integer[e.sign===i.sign?1:-1],Integer[0]];if(s.length+o.length<=200)n=divMod1(s,o);else n=divMod2(s,o);h=n[0];var b=e.sign!==i.sign,v=n[1],_=e.sign;if(typeof h==="number"){if(b)h=-h;h=new SmallInteger(h)}else h=new BigInteger(h,b);if(typeof v==="number"){if(_)v=-v;v=new SmallInteger(v)}else v=new BigInteger(v,_);return[h,v]}BigInteger.prototype.divmod=function(e){var t=divModAny(this,e);return{quotient:t[0],remainder:t[1]}};NativeBigInt.prototype.divmod=SmallInteger.prototype.divmod=BigInteger.prototype.divmod;BigInteger.prototype.divide=function(e){return divModAny(this,e)[0]};NativeBigInt.prototype.over=NativeBigInt.prototype.divide=function(e){return new NativeBigInt(this.value/parseValue(e).value)};SmallInteger.prototype.over=SmallInteger.prototype.divide=BigInteger.prototype.over=BigInteger.prototype.divide;BigInteger.prototype.mod=function(e){return divModAny(this,e)[1]};NativeBigInt.prototype.mod=NativeBigInt.prototype.remainder=function(e){return new NativeBigInt(this.value%parseValue(e).value)};SmallInteger.prototype.remainder=SmallInteger.prototype.mod=BigInteger.prototype.remainder=BigInteger.prototype.mod;BigInteger.prototype.pow=function(e){var t=parseValue(e),r=this.value,n=t.value,i,s,o;if(n===0)return Integer[1];if(r===0)return Integer[0];if(r===1)return Integer[1];if(r===-1)return t.isEven()?Integer[1]:Integer[-1];if(t.sign){return Integer[0]}if(!t.isSmall)throw new Error("The exponent "+t.toString()+" is too large.");if(this.isSmall){if(isPrecise(i=Math.pow(r,n)))return new SmallInteger(truncate(i))}s=this;o=Integer[1];while(true){if(n&1===1){o=o.times(s);--n}if(n===0)break;n/=2;s=s.square()}return o};SmallInteger.prototype.pow=BigInteger.prototype.pow;NativeBigInt.prototype.pow=function(e){var t=parseValue(e);var r=this.value,n=t.value;var i=BigInt(0),s=BigInt(1),o=BigInt(2);if(n===i)return Integer[1];if(r===i)return Integer[0];if(r===s)return Integer[1];if(r===BigInt(-1))return t.isEven()?Integer[1]:Integer[-1];if(t.isNegative())return new NativeBigInt(i);var c=this;var h=Integer[1];while(true){if((n&s)===s){h=h.times(c);--n}if(n===i)break;n/=o;c=c.square()}return h};BigInteger.prototype.modPow=function(e,t){e=parseValue(e);t=parseValue(t);if(t.isZero())throw new Error("Cannot take modPow with modulus 0");var r=Integer[1],n=this.mod(t);if(e.isNegative()){e=e.multiply(Integer[-1]);n=n.modInv(t)}while(e.isPositive()){if(n.isZero())return Integer[0];if(e.isOdd())r=r.multiply(n).mod(t);e=e.divide(2);n=n.square().mod(t)}return r};NativeBigInt.prototype.modPow=SmallInteger.prototype.modPow=BigInteger.prototype.modPow;function compareAbs(e,t){if(e.length!==t.length){return e.length>t.length?1:-1}for(var r=e.length-1;r>=0;r--){if(e[r]!==t[r])return e[r]>t[r]?1:-1}return 0}BigInteger.prototype.compareAbs=function(e){var t=parseValue(e),r=this.value,n=t.value;if(t.isSmall)return 1;return compareAbs(r,n)};SmallInteger.prototype.compareAbs=function(e){var t=parseValue(e),r=Math.abs(this.value),n=t.value;if(t.isSmall){n=Math.abs(n);return r===n?0:r>n?1:-1}return-1};NativeBigInt.prototype.compareAbs=function(e){var t=this.value;var r=parseValue(e).value;t=t>=0?t:-t;r=r>=0?r:-r;return t===r?0:t>r?1:-1};BigInteger.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var t=parseValue(e),r=this.value,n=t.value;if(this.sign!==t.sign){return t.sign?1:-1}if(t.isSmall){return this.sign?-1:1}return compareAbs(r,n)*(this.sign?-1:1)};BigInteger.prototype.compareTo=BigInteger.prototype.compare;SmallInteger.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var t=parseValue(e),r=this.value,n=t.value;if(t.isSmall){return r==n?0:r>n?1:-1}if(r<0!==t.sign){return r<0?-1:1}return r<0?1:-1};SmallInteger.prototype.compareTo=SmallInteger.prototype.compare;NativeBigInt.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var t=this.value;var r=parseValue(e).value;return t===r?0:t>r?1:-1};NativeBigInt.prototype.compareTo=NativeBigInt.prototype.compare;BigInteger.prototype.equals=function(e){return this.compare(e)===0};NativeBigInt.prototype.eq=NativeBigInt.prototype.equals=SmallInteger.prototype.eq=SmallInteger.prototype.equals=BigInteger.prototype.eq=BigInteger.prototype.equals;BigInteger.prototype.notEquals=function(e){return this.compare(e)!==0};NativeBigInt.prototype.neq=NativeBigInt.prototype.notEquals=SmallInteger.prototype.neq=SmallInteger.prototype.notEquals=BigInteger.prototype.neq=BigInteger.prototype.notEquals;BigInteger.prototype.greater=function(e){return this.compare(e)>0};NativeBigInt.prototype.gt=NativeBigInt.prototype.greater=SmallInteger.prototype.gt=SmallInteger.prototype.greater=BigInteger.prototype.gt=BigInteger.prototype.greater;BigInteger.prototype.lesser=function(e){return this.compare(e)<0};NativeBigInt.prototype.lt=NativeBigInt.prototype.lesser=SmallInteger.prototype.lt=SmallInteger.prototype.lesser=BigInteger.prototype.lt=BigInteger.prototype.lesser;BigInteger.prototype.greaterOrEquals=function(e){return this.compare(e)>=0};NativeBigInt.prototype.geq=NativeBigInt.prototype.greaterOrEquals=SmallInteger.prototype.geq=SmallInteger.prototype.greaterOrEquals=BigInteger.prototype.geq=BigInteger.prototype.greaterOrEquals;BigInteger.prototype.lesserOrEquals=function(e){return this.compare(e)<=0};NativeBigInt.prototype.leq=NativeBigInt.prototype.lesserOrEquals=SmallInteger.prototype.leq=SmallInteger.prototype.lesserOrEquals=BigInteger.prototype.leq=BigInteger.prototype.lesserOrEquals;BigInteger.prototype.isEven=function(){return(this.value[0]&1)===0};SmallInteger.prototype.isEven=function(){return(this.value&1)===0};NativeBigInt.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)};BigInteger.prototype.isOdd=function(){return(this.value[0]&1)===1};SmallInteger.prototype.isOdd=function(){return(this.value&1)===1};NativeBigInt.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)};BigInteger.prototype.isPositive=function(){return!this.sign};SmallInteger.prototype.isPositive=function(){return this.value>0};NativeBigInt.prototype.isPositive=SmallInteger.prototype.isPositive;BigInteger.prototype.isNegative=function(){return this.sign};SmallInteger.prototype.isNegative=function(){return this.value<0};NativeBigInt.prototype.isNegative=SmallInteger.prototype.isNegative;BigInteger.prototype.isUnit=function(){return false};SmallInteger.prototype.isUnit=function(){return Math.abs(this.value)===1};NativeBigInt.prototype.isUnit=function(){return this.abs().value===BigInt(1)};BigInteger.prototype.isZero=function(){return false};SmallInteger.prototype.isZero=function(){return this.value===0};NativeBigInt.prototype.isZero=function(){return this.value===BigInt(0)};BigInteger.prototype.isDivisibleBy=function(e){var t=parseValue(e);if(t.isZero())return false;if(t.isUnit())return true;if(t.compareAbs(2)===0)return this.isEven();return this.mod(t).isZero()};NativeBigInt.prototype.isDivisibleBy=SmallInteger.prototype.isDivisibleBy=BigInteger.prototype.isDivisibleBy;function isBasicPrime(e){var t=e.abs();if(t.isUnit())return false;if(t.equals(2)||t.equals(3)||t.equals(5))return true;if(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))return false;if(t.lesser(49))return true}function millerRabinTest(e,t){var r=e.prev(),i=r,s=0,o,c,h,p;while(i.isEven())i=i.divide(2),s++;e:for(h=0;h<t.length;h++){if(e.lesser(t[h]))continue;p=n(t[h]).modPow(i,e);if(p.isUnit()||p.equals(r))continue;for(o=s-1;o!=0;o--){p=p.square().mod(e);if(p.isUnit())return false;if(p.equals(r))continue e}return false}return true}BigInteger.prototype.isPrime=function(t){var r=isBasicPrime(this);if(r!==e)return r;var i=this.abs();var s=i.bitLength();if(s<=64)return millerRabinTest(i,[2,3,5,7,11,13,17,19,23,29,31,37]);var o=Math.log(2)*s.toJSNumber();var c=Math.ceil(t===true?2*Math.pow(o,2):o);for(var h=[],p=0;p<c;p++){h.push(n(p+2))}return millerRabinTest(i,h)};NativeBigInt.prototype.isPrime=SmallInteger.prototype.isPrime=BigInteger.prototype.isPrime;BigInteger.prototype.isProbablePrime=function(t,r){var i=isBasicPrime(this);if(i!==e)return i;var s=this.abs();var o=t===e?5:t;for(var c=[],h=0;h<o;h++){c.push(n.randBetween(2,s.minus(2),r))}return millerRabinTest(s,c)};NativeBigInt.prototype.isProbablePrime=SmallInteger.prototype.isProbablePrime=BigInteger.prototype.isProbablePrime;BigInteger.prototype.modInv=function(e){var t=n.zero,r=n.one,i=parseValue(e),s=this.abs(),o,c,h;while(!s.isZero()){o=i.divide(s);c=t;h=i;t=r;i=s;r=c.subtract(o.multiply(r));s=h.subtract(o.multiply(s))}if(!i.isUnit())throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");if(t.compare(0)===-1){t=t.add(e)}if(this.isNegative()){return t.negate()}return t};NativeBigInt.prototype.modInv=SmallInteger.prototype.modInv=BigInteger.prototype.modInv;BigInteger.prototype.next=function(){var e=this.value;if(this.sign){return subtractSmall(e,1,this.sign)}return new BigInteger(addSmall(e,1),this.sign)};SmallInteger.prototype.next=function(){var e=this.value;if(e+1<i)return new SmallInteger(e+1);return new BigInteger(s,false)};NativeBigInt.prototype.next=function(){return new NativeBigInt(this.value+BigInt(1))};BigInteger.prototype.prev=function(){var e=this.value;if(this.sign){return new BigInteger(addSmall(e,1),true)}return subtractSmall(e,1,this.sign)};SmallInteger.prototype.prev=function(){var e=this.value;if(e-1>-i)return new SmallInteger(e-1);return new BigInteger(s,true)};NativeBigInt.prototype.prev=function(){return new NativeBigInt(this.value-BigInt(1))};var h=[1];while(2*h[h.length-1]<=t)h.push(2*h[h.length-1]);var p=h.length,g=h[p-1];function shift_isSmall(e){return Math.abs(e)<=t}BigInteger.prototype.shiftLeft=function(e){var t=parseValue(e).toJSNumber();if(!shift_isSmall(t)){throw new Error(String(t)+" is too large for shifting.")}if(t<0)return this.shiftRight(-t);var r=this;if(r.isZero())return r;while(t>=p){r=r.multiply(g);t-=p-1}return r.multiply(h[t])};NativeBigInt.prototype.shiftLeft=SmallInteger.prototype.shiftLeft=BigInteger.prototype.shiftLeft;BigInteger.prototype.shiftRight=function(e){var t;var r=parseValue(e).toJSNumber();if(!shift_isSmall(r)){throw new Error(String(r)+" is too large for shifting.")}if(r<0)return this.shiftLeft(-r);var n=this;while(r>=p){if(n.isZero()||n.isNegative()&&n.isUnit())return n;t=divModAny(n,g);n=t[1].isNegative()?t[0].prev():t[0];r-=p-1}t=divModAny(n,h[r]);return t[1].isNegative()?t[0].prev():t[0]};NativeBigInt.prototype.shiftRight=SmallInteger.prototype.shiftRight=BigInteger.prototype.shiftRight;function bitwise(e,t,r){t=parseValue(t);var i=e.isNegative(),s=t.isNegative();var o=i?e.not():e,c=s?t.not():t;var h=0,p=0;var y=null,b=null;var v=[];while(!o.isZero()||!c.isZero()){y=divModAny(o,g);h=y[1].toJSNumber();if(i){h=g-1-h}b=divModAny(c,g);p=b[1].toJSNumber();if(s){p=g-1-p}o=y[0];c=b[0];v.push(r(h,p))}var _=r(i?1:0,s?1:0)!==0?n(-1):n(0);for(var w=v.length-1;w>=0;w-=1){_=_.multiply(g).add(n(v[w]))}return _}BigInteger.prototype.not=function(){return this.negate().prev()};NativeBigInt.prototype.not=SmallInteger.prototype.not=BigInteger.prototype.not;BigInteger.prototype.and=function(e){return bitwise(this,e,(function(e,t){return e&t}))};NativeBigInt.prototype.and=SmallInteger.prototype.and=BigInteger.prototype.and;BigInteger.prototype.or=function(e){return bitwise(this,e,(function(e,t){return e|t}))};NativeBigInt.prototype.or=SmallInteger.prototype.or=BigInteger.prototype.or;BigInteger.prototype.xor=function(e){return bitwise(this,e,(function(e,t){return e^t}))};NativeBigInt.prototype.xor=SmallInteger.prototype.xor=BigInteger.prototype.xor;var y=1<<30,b=(t&-t)*(t&-t)|y;function roughLOB(e){var r=e.value,n=typeof r==="number"?r|y:typeof r==="bigint"?r|BigInt(y):r[0]+r[1]*t|b;return n&-n}function integerLogarithm(e,t){if(t.compareTo(e)<=0){var r=integerLogarithm(e,t.square(t));var i=r.p;var s=r.e;var o=i.multiply(t);return o.compareTo(e)<=0?{p:o,e:s*2+1}:{p:i,e:s*2}}return{p:n(1),e:0}}BigInteger.prototype.bitLength=function(){var e=this;if(e.compareTo(n(0))<0){e=e.negate().subtract(n(1))}if(e.compareTo(n(0))===0){return n(0)}return n(integerLogarithm(e,n(2)).e).add(n(1))};NativeBigInt.prototype.bitLength=SmallInteger.prototype.bitLength=BigInteger.prototype.bitLength;function max(e,t){e=parseValue(e);t=parseValue(t);return e.greater(t)?e:t}function min(e,t){e=parseValue(e);t=parseValue(t);return e.lesser(t)?e:t}function gcd(e,t){e=parseValue(e).abs();t=parseValue(t).abs();if(e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;var r=Integer[1],n,i;while(e.isEven()&&t.isEven()){n=min(roughLOB(e),roughLOB(t));e=e.divide(n);t=t.divide(n);r=r.multiply(n)}while(e.isEven()){e=e.divide(roughLOB(e))}do{while(t.isEven()){t=t.divide(roughLOB(t))}if(e.greater(t)){i=t;t=e;e=i}t=t.subtract(e)}while(!t.isZero());return r.isUnit()?e:e.multiply(r)}function lcm(e,t){e=parseValue(e).abs();t=parseValue(t).abs();return e.divide(gcd(e,t)).multiply(t)}function randBetween(e,r,n){e=parseValue(e);r=parseValue(r);var i=n||Math.random;var s=min(e,r),o=max(e,r);var c=o.subtract(s).add(1);if(c.isSmall)return s.add(Math.floor(i()*c));var h=toBase(c,t).value;var p=[],g=true;for(var y=0;y<h.length;y++){var b=g?h[y]+(y+1<h.length?h[y+1]/t:0):t;var v=truncate(i()*b);p.push(v);if(v<h[y])g=false}return s.add(Integer.fromArray(p,t,false))}var parseBase=function(e,t,r,n){r=r||o;e=String(e);if(!n){e=e.toLowerCase();r=r.toLowerCase()}var i=e.length;var s;var c=Math.abs(t);var h={};for(s=0;s<r.length;s++){h[r[s]]=s}for(s=0;s<i;s++){var p=e[s];if(p==="-")continue;if(p in h){if(h[p]>=c){if(p==="1"&&c===1)continue;throw new Error(p+" is not a valid digit in base "+t+".")}}}t=parseValue(t);var g=[];var y=e[0]==="-";for(s=y?1:0;s<e.length;s++){var p=e[s];if(p in h)g.push(parseValue(h[p]));else if(p==="<"){var b=s;do{s++}while(e[s]!==">"&&s<e.length);g.push(parseValue(e.slice(b+1,s)))}else throw new Error(p+" is not a valid character")}return parseBaseFromArray(g,t,y)};function parseBaseFromArray(e,t,r){var n=Integer[0],i=Integer[1],s;for(s=e.length-1;s>=0;s--){n=n.add(e[s].times(i));i=i.times(t)}return r?n.negate():n}function stringify(e,t){t=t||o;if(e<t.length){return t[e]}return"<"+e+">"}function toBase(e,t){t=n(t);if(t.isZero()){if(e.isZero())return{value:[0],isNegative:false};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:false};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);r.unshift([1]);return{value:[].concat.apply([],r),isNegative:false}}var i=false;if(e.isNegative()&&t.isPositive()){i=true;e=e.abs()}if(t.isUnit()){if(e.isZero())return{value:[0],isNegative:false};return{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i}}var s=[];var o=e,c;while(o.isNegative()||o.compareAbs(t)>=0){c=o.divmod(t);o=c.quotient;var h=c.remainder;if(h.isNegative()){h=t.minus(h).abs();o=o.next()}s.push(h.toJSNumber())}s.push(o.toJSNumber());return{value:s.reverse(),isNegative:i}}function toBaseString(e,t,r){var n=toBase(e,t);return(n.isNegative?"-":"")+n.value.map((function(e){return stringify(e,r)})).join("")}BigInteger.prototype.toArray=function(e){return toBase(this,e)};SmallInteger.prototype.toArray=function(e){return toBase(this,e)};NativeBigInt.prototype.toArray=function(e){return toBase(this,e)};BigInteger.prototype.toString=function(t,r){if(t===e)t=10;if(t!==10||r)return toBaseString(this,t,r);var n=this.value,i=n.length,s=String(n[--i]),o="0000000",c;while(--i>=0){c=String(n[i]);s+=o.slice(c.length)+c}var h=this.sign?"-":"";return h+s};SmallInteger.prototype.toString=function(t,r){if(t===e)t=10;if(t!=10||r)return toBaseString(this,t,r);return String(this.value)};NativeBigInt.prototype.toString=SmallInteger.prototype.toString;NativeBigInt.prototype.toJSON=BigInteger.prototype.toJSON=SmallInteger.prototype.toJSON=function(){return this.toString()};BigInteger.prototype.valueOf=function(){return parseInt(this.toString(),10)};BigInteger.prototype.toJSNumber=BigInteger.prototype.valueOf;SmallInteger.prototype.valueOf=function(){return this.value};SmallInteger.prototype.toJSNumber=SmallInteger.prototype.valueOf;NativeBigInt.prototype.valueOf=NativeBigInt.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function parseStringValue(e){if(isPrecise(+e)){var t=+e;if(t===truncate(t))return c?new NativeBigInt(BigInt(t)):new SmallInteger(t);throw new Error("Invalid integer: "+e)}var n=e[0]==="-";if(n)e=e.slice(1);var i=e.split(/e/i);if(i.length>2)throw new Error("Invalid integer: "+i.join("e"));if(i.length===2){var s=i[1];if(s[0]==="+")s=s.slice(1);s=+s;if(s!==truncate(s)||!isPrecise(s))throw new Error("Invalid integer: "+s+" is not a valid exponent.");var o=i[0];var h=o.indexOf(".");if(h>=0){s-=o.length-h-1;o=o.slice(0,h)+o.slice(h+1)}if(s<0)throw new Error("Cannot include negative exponent part for integers");o+=new Array(s+1).join("0");e=o}var p=/^([0-9][0-9]*)$/.test(e);if(!p)throw new Error("Invalid integer: "+e);if(c){return new NativeBigInt(BigInt(n?"-"+e:e))}var g=[],y=e.length,b=r,v=y-b;while(y>0){g.push(+e.slice(v,y));v-=b;if(v<0)v=0;y-=b}trim(g);return new BigInteger(g,n)}function parseNumberValue(e){if(c){return new NativeBigInt(BigInt(e))}if(isPrecise(e)){if(e!==truncate(e))throw new Error(e+" is not an integer.");return new SmallInteger(e)}return parseStringValue(e.toString())}function parseValue(e){if(typeof e==="number"){return parseNumberValue(e)}if(typeof e==="string"){return parseStringValue(e)}if(typeof e==="bigint"){return new NativeBigInt(e)}return e}for(var v=0;v<1e3;v++){Integer[v]=parseValue(v);if(v>0)Integer[-v]=parseValue(-v)}Integer.one=Integer[1];Integer.zero=Integer[0];Integer.minusOne=Integer[-1];Integer.max=max;Integer.min=min;Integer.gcd=gcd;Integer.lcm=lcm;Integer.isInstance=function(e){return e instanceof BigInteger||e instanceof SmallInteger||e instanceof NativeBigInt};Integer.randBetween=randBetween;Integer.fromArray=function(e,t,r){return parseBaseFromArray(e.map(parseValue),parseValue(t||10),r)};return Integer}();if(true&&e.hasOwnProperty("exports")){e.exports=n}if(typeof define==="function"&&define.amd){define((function(){return n}))}},66474:function(e,t,r){var n=r(46533);var i=r(82361).EventEmitter;var s=r(51590);var o=r(13755);var c=r(12781).Stream;t=e.exports=function(e,r){if(Buffer.isBuffer(e)){return t.parse(e)}var n=t.stream();if(e&&e.pipe){e.pipe(n)}else if(e){e.on(r||"data",(function(e){n.write(e)}));e.on("end",(function(){n.end()}))}return n};t.stream=function(e){if(e)return t.apply(null,arguments);var r=null;function getBytes(e,t,n){r={bytes:e,skip:n,cb:function(e){r=null;t(e)}};dispatch()}var h=null;function dispatch(){if(!r){if(v)b=true;return}if(typeof r==="function"){r()}else{var e=h+r.bytes;if(g.length>=e){var t;if(h==null){t=g.splice(0,e);if(!r.skip){t=t.slice()}}else{if(!r.skip){t=g.slice(h,e)}h=e}if(r.skip){r.cb()}else{r.cb(t)}}}}function builder(e){function next(){if(!b)e.next()}var t=words((function(e,t){return function(r){getBytes(e,(function(e){y.set(r,t(e));next()}))}}));t.tap=function(t){e.nest(t,y.store)};t.into=function(t,r){if(!y.get(t))y.set(t,{});var n=y;y=o(n.get(t));e.nest((function(){r.apply(this,arguments);this.tap((function(){y=n}))}),y.store)};t.flush=function(){y.store={};next()};t.loop=function(t){var r=false;e.nest(false,(function loop(){this.vars=y.store;t.call(this,(function(){r=true;next()}),y.store);this.tap(function(){if(r)e.next();else loop.call(this)}.bind(this))}),y.store)};t.buffer=function(e,t){if(typeof t==="string"){t=y.get(t)}getBytes(t,(function(t){y.set(e,t);next()}))};t.skip=function(e){if(typeof e==="string"){e=y.get(e)}getBytes(e,(function(){next()}))};t.scan=function find(e,t){if(typeof t==="string"){t=new Buffer(t)}else if(!Buffer.isBuffer(t)){throw new Error("search must be a Buffer or a string")}var n=0;r=function(){var i=g.indexOf(t,h+n);var s=i-h-n;if(i!==-1){r=null;if(h!=null){y.set(e,g.slice(h,h+n+s));h+=n+s+t.length}else{y.set(e,g.slice(0,n+s));g.splice(0,n+s+t.length)}next();dispatch()}else{s=Math.max(g.length-t.length-h-n,0)}n+=s};dispatch()};t.peek=function(t){h=0;e.nest((function(){t.call(this,y.store);this.tap((function(){h=null}))}))};return t}var p=n.light(builder);p.writable=true;var g=s();p.write=function(e){g.push(e);dispatch()};var y=o();var b=false,v=false;p.end=function(){v=true};p.pipe=c.prototype.pipe;Object.getOwnPropertyNames(i.prototype).forEach((function(e){p[e]=i.prototype[e]}));return p};t.parse=function parse(e){var t=words((function(i,s){return function(o){if(r+i<=e.length){var c=e.slice(r,r+i);r+=i;n.set(o,s(c))}else{n.set(o,null)}return t}}));var r=0;var n=o();t.vars=n.store;t.tap=function(e){e.call(t,n.store);return t};t.into=function(e,r){if(!n.get(e)){n.set(e,{})}var i=n;n=o(i.get(e));r.call(t,n.store);n=i;return t};t.loop=function(e){var r=false;var ender=function(){r=true};while(r===false){e.call(t,ender,n.store)}return t};t.buffer=function(i,s){if(typeof s==="string"){s=n.get(s)}var o=e.slice(r,Math.min(e.length,r+s));r+=s;n.set(i,o);return t};t.skip=function(e){if(typeof e==="string"){e=n.get(e)}r+=e;return t};t.scan=function(i,s){if(typeof s==="string"){s=new Buffer(s)}else if(!Buffer.isBuffer(s)){throw new Error("search must be a Buffer or a string")}n.set(i,null);for(var o=0;o+r<=e.length-s.length+1;o++){for(var c=0;c<s.length&&e[r+o+c]===s[c];c++);if(c===s.length)break}n.set(i,e.slice(r,r+o));r+=o+s.length;return t};t.peek=function(e){var i=r;e.call(t,n.store);r=i;return t};t.flush=function(){n.store={};return t};t.eof=function(){return r>=e.length};return t};function decodeLEu(e){var t=0;for(var r=0;r<e.length;r++){t+=Math.pow(256,r)*e[r]}return t}function decodeBEu(e){var t=0;for(var r=0;r<e.length;r++){t+=Math.pow(256,e.length-r-1)*e[r]}return t}function decodeBEs(e){var t=decodeBEu(e);if((e[0]&128)==128){t-=Math.pow(256,e.length)}return t}function decodeLEs(e){var t=decodeLEu(e);if((e[e.length-1]&128)==128){t-=Math.pow(256,e.length)}return t}function words(e){var t={};[1,2,4,8].forEach((function(r){var n=r*8;t["word"+n+"le"]=t["word"+n+"lu"]=e(r,decodeLEu);t["word"+n+"ls"]=e(r,decodeLEs);t["word"+n+"be"]=t["word"+n+"bu"]=e(r,decodeBEu);t["word"+n+"bs"]=e(r,decodeBEs)}));t.word8=t.word8u=t.word8be;t.word8s=t.word8bs;return t}},13755:function(e){e.exports=function(e){function getset(e,r){var n=t.store;var i=e.split(".");i.slice(0,-1).forEach((function(e){if(n[e]===undefined)n[e]={};n=n[e]}));var s=i[i.length-1];if(arguments.length==1){return n[s]}else{return n[s]=r}}var t={get:function(e){return getset(e)},set:function(e,t){return getset(e,t)},store:e||{}};return t}},23664:function(e,t,r){"use strict";const{Buffer:n}=r(14300);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 s=this._offset(r);const o=i-r;let c=o;let h=copy&&t||0;let p=s[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,h);h+=this._bufs[t].length}return e}if(c<=this._bufs[s[0]].length-p){return copy?this._bufs[s[0]].copy(e,t,p,p+c):this._bufs[s[0]].slice(p,p+c)}if(!copy){e=n.allocUnsafe(o)}for(let t=s[0];t<this._bufs.length;t++){const r=this._bufs[t].length-p;if(c>r){this._bufs[t].copy(e,h,p);h+=r}else{this._bufs[t].copy(e,h,p,p+c);h+=r;break}c-=r;if(p){p=0}}if(e.length>h)return e.slice(0,h);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 s=i[0];let o=i[1];for(;s<this._bufs.length;s++){const t=this._bufs[s];while(o<t.length){const r=t.length-o;if(r>=e.length){const r=t.indexOf(e,o);if(r!==-1){return this._reverseOffset([s,r])}o=t.length-e.length+1}else{const t=this._reverseOffset([s,o]);if(this._match(t,e)){return t}o++}}o=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},20336:function(e,t,r){"use strict";const n=r(85519).Duplex;const i=r(44124);const s=r(23664);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}s._init.call(this,e);n.call(this)}i(BufferListStream,n);Object.assign(BufferListStream.prototype,s.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 s||BufferListStream.isBufferList(e)};BufferListStream.isBufferList=s.isBufferList;e.exports=BufferListStream;e.exports.BufferListStream=BufferListStream;e.exports.BufferList=s},97713: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.q=t},13928: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(85209);var s=r(58729);r(44124)(Duplex,i);{var o=n(s.prototype);for(var c=0;c<o.length;c++){var h=o[c];if(!Duplex.prototype[h])Duplex.prototype[h]=s.prototype[h]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);i.call(this,e);s.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}})},4991:function(e,t,r){"use strict";e.exports=PassThrough;var n=r(26753);r(44124)(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)}},85209:function(e,t,r){"use strict";e.exports=Readable;var n;Readable.ReadableState=ReadableState;var i=r(82361).EventEmitter;var s=function EElistenerCount(e,t){return e.listeners(t).length};var o=r(36238);var c=r(14300).Buffer;var h=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return c.from(e)}function _isUint8Array(e){return c.isBuffer(e)||e instanceof h}var p=r(73837);var g;if(p&&p.debuglog){g=p.debuglog("stream")}else{g=function debug(){}}var y=r(70662);var b=r(36994);var v=r(3533),_=v.getHighWaterMark;var w=r(97713).q,S=w.ERR_INVALID_ARG_TYPE,k=w.ERR_STREAM_PUSH_AFTER_EOF,x=w.ERR_METHOD_NOT_IMPLEMENTED,E=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var R;var C;var O;r(44124)(Readable,o);var P=b.errorOrDestroy;var A=["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(13928);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=_(this,e,"readableHighWaterMark",i);this.buffer=new y;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(!R)R=r(94841).s;this.decoder=new R(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||r(13928);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}o.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=b.destroy;Readable.prototype._undestroy=b.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=c.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){g("readableAddChunk",t);var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var o;if(!i)o=chunkInvalid(s,t);if(o){P(e,o)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==c.prototype){t=_uint8ArrayToBuffer(t)}if(n){if(s.endEmitted)P(e,new E);else addChunk(e,s,t,true)}else if(s.ended){P(e,new k)}else if(s.destroyed){return false}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(!n){s.reading=false;maybeReadMore(e,s)}}return!s.ended&&(s.length<s.highWaterMark||s.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 S("chunk",["string","Buffer","Uint8Array"],t)}return r}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!R)R=r(94841).s;var t=new R(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 I=1073741824;function computeNewHighWaterMark(e){if(e>=I){e=I}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){g("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)){g("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;g("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;g("length less than watermark",n)}if(t.ended||t.reading){n=false;g("reading or ended",n)}else if(n){g("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){g("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;g("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){g("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;g("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;g("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}Readable.prototype._read=function(e){P(this,new x("_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;g("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var o=i?onend:unpipe;if(n.endEmitted)process.nextTick(o);else r.once("end",o);e.on("unpipe",onunpipe);function onunpipe(e,t){g("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){g("onend");e.end()}var c=pipeOnDrain(r);e.on("drain",c);var h=false;function cleanup(){g("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",c);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);h=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))c()}r.on("data",ondata);function ondata(t){g("ondata");var i=e.write(t);g("dest.write",i);if(i===false){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!h){g("false write response, pause",n.awaitDrain);n.awaitDrain++}r.pause()}}function onerror(t){g("onerror",t);unpipe();e.removeListener("error",onerror);if(s(e,"error")===0)P(e,t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){g("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){g("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){g("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;g("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&s(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 s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:false});return this}var o=indexOf(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,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);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;g("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=o.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return r};Readable.prototype.removeAllListeners=function(e){var t=o.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){g("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){g("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){g("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(){g("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){g("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;g("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(){g("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){g("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 s=t.push(i);if(!s){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 s=0;s<A.length;s++){e.on(A[s],this.emit.bind(this,A[s]))}this._read=function(t){g("wrapped _read",t);if(n){n=false;e.resume()}};return this};if(typeof Symbol==="function"){Readable.prototype[Symbol.asyncIterator]=function(){if(C===undefined){C=r(37558)}return C(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;g("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){g("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(O===undefined){O=r(57039)}return O(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}},26753:function(e,t,r){"use strict";e.exports=Transform;var n=r(97713).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0;var h=r(13928);r(44124)(Transform,h);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(n===null){return this.emit("error",new s)}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);h.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 h.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){h.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 c;if(e._transformState.transforming)throw new o;return e.push(null)}},58729: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(65278)};var s=r(36238);var o=r(14300).Buffer;var c=(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 c}var h=r(36994);var p=r(3533),g=p.getHighWaterMark;var y=r(97713).q,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_MULTIPLE_CALLBACK,w=y.ERR_STREAM_CANNOT_PIPE,S=y.ERR_STREAM_DESTROYED,k=y.ERR_STREAM_NULL_VALUES,x=y.ERR_STREAM_WRITE_AFTER_END,E=y.ERR_UNKNOWN_ENCODING;var R=h.errorOrDestroy;r(44124)(Writable,s);function nop(){}function WritableState(e,t,i){n=n||r(13928);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=g(this,e,"writableHighWaterMark",i);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var s=e.decodeStrings===false;this.decodeStrings=!s;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 C;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){C=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(C.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{C=function realHasInstance(e){return e instanceof this}}function Writable(e){n=n||r(13928);var t=this instanceof n;if(!t&&!C.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}s.call(this)}Writable.prototype.pipe=function(){R(this,new w)};function writeAfterEnd(e,t){var r=new x;R(e,r);process.nextTick(t,r)}function validChunk(e,t,r,n){var i;if(r===null){i=new k}else if(typeof r!=="string"&&!t.objectMode){i=new b("chunk",["string","Buffer"],r)}if(i){R(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 s=!n.objectMode&&_isUint8Array(e);if(s&&!o.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(s)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=nop;if(n.ending)writeAfterEnd(this,r);else if(s||validChunk(this,n,e,r)){n.pendingcb++;i=writeOrBuffer(this,n,s,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 E(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=o.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,s){if(!r){var o=decodeChunk(t,n,i);if(n!==o){r=true;i="buffer";n=o}}var c=t.objectMode?1:n.length;t.length+=c;var h=t.length<t.highWaterMark;if(!h)t.needDrain=true;if(t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null};if(p){p.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,c,n,i,s)}return h}function doWrite(e,t,r,n,i,s,o){t.writelen=n;t.writecb=o;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new S("write"));else if(r)e._writev(i,t.onwrite);else e._write(i,s,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;R(e,n)}else{i(n);e._writableState.errorEmitted=true;R(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 _;onwriteStateUpdate(r);if(t)onwriteError(e,r,n,t,i);else{var s=needFinish(r)||e.destroyed;if(!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(n){process.nextTick(afterWrite,e,r,s,i)}else{afterWrite(e,r,s,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 s=t.corkedRequestsFree;s.entry=r;var o=0;var c=true;while(r){i[o]=r;if(!r.isBuf)c=false;r=r.next;o+=1}i.allBuffers=c;doWrite(e,t,true,t.length,i,"",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 h=r.chunk;var p=r.encoding;var g=r.callback;var y=t.objectMode?1:h.length;doWrite(e,t,false,y,h,p,g);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 v("_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){R(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=h.destroy;Writable.prototype._undestroy=h.undestroy;Writable.prototype._destroy=function(e,t){t(e)}},37558: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(12659);var s=Symbol("lastResolve");var o=Symbol("lastReject");var c=Symbol("error");var h=Symbol("ended");var p=Symbol("lastPromise");var g=Symbol("handlePromise");var y=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[s];if(t!==null){var r=e[y].read();if(r!==null){e[p]=null;e[s]=null;e[o]=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[h]){r(createIterResult(undefined,true));return}t[g](r,n)}),n)}}var b=Object.getPrototypeOf((function(){}));var v=Object.setPrototypeOf((n={get stream(){return this[y]},next:function next(){var e=this;var t=this[c];if(t!==null){return Promise.reject(t)}if(this[h]){return Promise.resolve(createIterResult(undefined,true))}if(this[y].destroyed){return new Promise((function(t,r){process.nextTick((function(){if(e[c]){r(e[c])}else{t(createIterResult(undefined,true))}}))}))}var r=this[p];var n;if(r){n=new Promise(wrapForNext(r,this))}else{var i=this[y].read();if(i!==null){return Promise.resolve(createIterResult(i,false))}n=new Promise(this[g])}this[p]=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[y].destroy(null,(function(e){if(e){r(e);return}t(createIterResult(undefined,true))}))}))})),n),b);var _=function createReadableStreamAsyncIterator(e){var t;var r=Object.create(v,(t={},_defineProperty(t,y,{value:e,writable:true}),_defineProperty(t,s,{value:null,writable:true}),_defineProperty(t,o,{value:null,writable:true}),_defineProperty(t,c,{value:null,writable:true}),_defineProperty(t,h,{value:e._readableState.endEmitted,writable:true}),_defineProperty(t,g,{value:function value(e,t){var n=r[y].read();if(n){r[p]=null;r[s]=null;r[o]=null;e(createIterResult(n,false))}else{r[s]=e;r[o]=t}},writable:true}),t));r[p]=null;i(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=r[o];if(t!==null){r[p]=null;r[s]=null;r[o]=null;t(e)}r[c]=e;return}var n=r[s];if(n!==null){r[p]=null;r[s]=null;r[o]=null;n(createIterResult(undefined,true))}r[h]=true}));e.on("readable",onReadable.bind(null,r));return r};e.exports=_},70662: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(14300),i=n.Buffer;var s=r(73837),o=s.inspect;var c=o&&o.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 s=e>i.length?i.length:e;if(s===i.length)n+=i;else n+=i.slice(0,e);e-=s;if(e===0){if(s===i.length){++r;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=i.slice(s)}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 s=r.data;var o=e>s.length?s.length:e;s.copy(t,t.length-e,0,o);e-=o;if(e===0){if(o===s.length){++n;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=s.slice(o)}break}++n}this.length-=n;return t}},{key:c,value:function value(e,t){return o(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:false}))}}]);return BufferList}()},36994: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}},12659:function(e,t,r){"use strict";var n=r(97713).q.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 s=t.writable||t.writable!==false&&e.writable;var o=function onlegacyfinish(){if(!e.writable)h()};var c=e._writableState&&e._writableState.finished;var h=function onfinish(){s=false;c=true;if(!i)r.call(e)};var p=e._readableState&&e._readableState.endEmitted;var g=function onend(){i=false;p=true;if(!s)r.call(e)};var y=function onerror(t){r.call(e,t)};var b=function onclose(){var t;if(i&&!p){if(!e._readableState||!e._readableState.ended)t=new n;return r.call(e,t)}if(s&&!c){if(!e._writableState||!e._writableState.ended)t=new n;return r.call(e,t)}};var v=function onrequest(){e.req.on("finish",h)};if(isRequest(e)){e.on("complete",h);e.on("abort",b);if(e.req)v();else e.on("request",v)}else if(s&&!e._writableState){e.on("end",o);e.on("close",o)}e.on("end",g);e.on("finish",h);if(t.error!==false)e.on("error",y);e.on("close",b);return function(){e.removeListener("complete",h);e.removeListener("abort",b);e.removeListener("request",v);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",o);e.removeListener("close",o);e.removeListener("finish",h);e.removeListener("end",g);e.removeListener("error",y);e.removeListener("close",b)}}e.exports=eos},57039:function(e,t,r){"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var c=e[s](o);var h=c.value}catch(e){r(e);return}if(c.done){t(h)}else{Promise.resolve(h).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,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(97713).q.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 s=new e(_objectSpread({objectMode:true},r));var o=false;s._read=function(){if(!o){o=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){s.push(null)}else if(s.push(yield t)){next()}else{o=false}}catch(e){s.destroy(e)}}));return _next2.apply(this,arguments)}return s}e.exports=from},20740: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(97713).q,s=i.ERR_MISSING_ARGS,o=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,s){s=once(s);var c=false;e.on("close",(function(){c=true}));if(n===undefined)n=r(12659);n(e,{readable:t,writable:i},(function(e){if(e)return s(e);c=true;s()}));var h=false;return function(t){if(c)return;if(h)return;h=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();s(t||new o("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 s("streams")}var i;var o=t.map((function(e,r){var s=r<t.length-1;var c=r>0;return destroyer(e,s,c,(function(e){if(!i)i=e;if(e)o.forEach(call);if(s)return;o.forEach(call);n(i)}))}));return t.reduce(pipe)}e.exports=pipeline},3533:function(e,t,r){"use strict";var n=r(97713).q.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 s=highWaterMarkFrom(t,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var o=i?r:"highWaterMark";throw new n(o,s)}return Math.floor(s)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},36238:function(e,t,r){e.exports=r(12781)},85519:function(e,t,r){var n=r(12781);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(85209);t.Stream=n||t;t.Readable=t;t.Writable=r(58729);t.Duplex=r(13928);t.Transform=r(26753);t.PassThrough=r(4991);t.finished=r(12659);t.pipeline=r(20740)}},33717:function(e,t,r){var n=r(9417);e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var h="\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(s).split("\\}").join(o).split("\\,").join(c).split("\\.").join(h)}function unescapeBraces(e){return e.split(i).join("\\").split(s).join("{").split(o).join("}").split(c).join(",").split(h).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=n("{","}",e);if(!r)return e.split(",");var i=r.pre;var s=r.body;var o=r.post;var c=i.split(",");c[c.length-1]+="{"+s+"}";var h=parseCommaParts(o);if(o.length){c[c.length-1]+=h.shift();c.push.apply(c,h)}t.push.apply(t,c);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 s=i.pre;var c=i.post.length?expand(i.post,false):[""];if(/\$$/.test(i.pre)){for(var h=0;h<c.length;h++){var p=s+"{"+i.body+"}"+c[h];r.push(p)}}else{var g=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var b=g||y;var v=i.body.indexOf(",")>=0;if(!b&&!v){if(i.post.match(/,.*\}/)){e=i.pre+"{"+i.body+o+i.post;return expand(e)}return[e]}var _;if(b){_=i.body.split(/\.\./)}else{_=parseCommaParts(i.body);if(_.length===1){_=expand(_[0],false).map(embrace);if(_.length===1){return c.map((function(e){return i.pre+_[0]+e}))}}}var w;if(b){var S=numeric(_[0]);var k=numeric(_[1]);var x=Math.max(_[0].length,_[1].length);var E=_.length==3?Math.abs(numeric(_[2])):1;var R=lte;var C=k<S;if(C){E*=-1;R=gte}var O=_.some(isPadded);w=[];for(var P=S;R(P,k);P+=E){var A;if(y){A=String.fromCharCode(P);if(A==="\\")A=""}else{A=String(P);if(O){var I=x-A.length;if(I>0){var N=new Array(I+1).join("0");if(P<0)A="-"+N+A.slice(1);else A=N+A}}}w.push(A)}}else{w=[];for(var M=0;M<_.length;M++){w.push.apply(w,expand(_[M],false))}}for(var M=0;M<w.length;M++){for(var h=0;h<c.length;h++){var p=s+w[M]+c[h];if(!t||b||p)r.push(p)}}}return r}},84794:function(e,t,r){var n=r(14300).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 s=0;s<e.length;s++){r=i[(r^e[s])&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},97329:function(e,t,r){"use strict";var n=r(93478);if(!Buffer.prototype.indexOf){Buffer.prototype.indexOf=function(e,t){t=t||0;if(typeof e==="string"||e instanceof String){e=n(e)}else if(typeof e==="number"||e instanceof Number){e=n([e])}var r=e.length;for(var i=t;i<=this.length-r;i++){var s=false;for(var o=0;o<r;o++){if(this[i+o]!=e[o]){s=true;break}}if(!s){return i}}return-1}}function bufferLastIndexOf(e,t){if(typeof e==="string"||e instanceof String){e=n(e)}else if(typeof e==="number"||e instanceof Number){e=n([e])}var r=e.length;t=t||this.length-r;for(var i=t;i>=0;i--){var s=false;for(var o=0;o<r;o++){if(this[i+o]!=e[o]){s=true;break}}if(!s){return i}}return-1}if(Buffer.prototype.lastIndexOf){if(n("ABC").lastIndexOf("ABC")===-1)Buffer.prototype.lastIndexOf=bufferLastIndexOf}else{Buffer.prototype.lastIndexOf=bufferLastIndexOf}},93478:function(e){e.exports=function initBuffer(e){var t=process&&process.version?process.version:"v5.0.0";var r=t.split(".")[0].replace("v","");return r<6?new Buffer(e):Buffer.from(e)}},51590:function(e){e.exports=Buffers;function Buffers(e){if(!(this instanceof Buffers))return new Buffers(e);this.buffers=e||[];this.length=this.buffers.reduce((function(e,t){return e+t.length}),0)}Buffers.prototype.push=function(){for(var e=0;e<arguments.length;e++){if(!Buffer.isBuffer(arguments[e])){throw new TypeError("Tried to push a non-buffer")}}for(var e=0;e<arguments.length;e++){var t=arguments[e];this.buffers.push(t);this.length+=t.length}return this.length};Buffers.prototype.unshift=function(){for(var e=0;e<arguments.length;e++){if(!Buffer.isBuffer(arguments[e])){throw new TypeError("Tried to unshift a non-buffer")}}for(var e=0;e<arguments.length;e++){var t=arguments[e];this.buffers.unshift(t);this.length+=t.length}return this.length};Buffers.prototype.copy=function(e,t,r,n){return this.slice(r,n).copy(e,t,0,n-r)};Buffers.prototype.splice=function(e,t){var r=this.buffers;var n=e>=0?e:this.length-e;var i=[].slice.call(arguments,2);if(t===undefined){t=this.length-n}else if(t>this.length-n){t=this.length-n}for(var e=0;e<i.length;e++){this.length+=i[e].length}var s=new Buffers;var o=0;var c=0;for(var h=0;h<r.length&&c+r[h].length<n;h++){c+=r[h].length}if(n-c>0){var p=n-c;if(p+t<r[h].length){s.push(r[h].slice(p,p+t));var g=r[h];var y=new Buffer(p);for(var e=0;e<p;e++){y[e]=g[e]}var b=new Buffer(g.length-p-t);for(var e=p+t;e<g.length;e++){b[e-t-p]=g[e]}if(i.length>0){var v=i.slice();v.unshift(y);v.push(b);r.splice.apply(r,[h,1].concat(v));h+=v.length;i=[]}else{r.splice(h,1,y,b);h+=2}}else{s.push(r[h].slice(p));r[h]=r[h].slice(0,p);h++}}if(i.length>0){r.splice.apply(r,[h,0].concat(i));h+=i.length}while(s.length<t){var _=r[h];var w=_.length;var S=Math.min(w,t-s.length);if(S===w){s.push(_);r.splice(h,1)}else{s.push(_.slice(0,S));r[h]=r[h].slice(S)}}this.length-=s.length;return s};Buffers.prototype.slice=function(e,t){var r=this.buffers;if(t===undefined)t=this.length;if(e===undefined)e=0;if(t>this.length)t=this.length;var n=0;for(var i=0;i<r.length&&n+r[i].length<=e;i++){n+=r[i].length}var s=new Buffer(t-e);var o=0;for(var c=i;o<t-e&&c<r.length;c++){var h=r[c].length;var p=o===0?e-n:0;var g=o+h>=t-e?Math.min(p+(t-e)-o,h):h;r[c].copy(s,o,p,g);o+=g-p}return s};Buffers.prototype.pos=function(e){if(e<0||e>=this.length)throw new Error("oob");var t=e,r=0,n=null;for(;;){n=this.buffers[r];if(t<n.length){return{buf:r,offset:t}}else{t-=n.length}r++}};Buffers.prototype.get=function get(e){var t=this.pos(e);return this.buffers[t.buf].get(t.offset)};Buffers.prototype.set=function set(e,t){var r=this.pos(e);return this.buffers[r.buf].set(r.offset,t)};Buffers.prototype.indexOf=function(e,t){if("string"===typeof e){e=new Buffer(e)}else if(e instanceof Buffer){}else{throw new Error("Invalid type for a search string")}if(!e.length){return 0}if(!this.length){return-1}var r=0,n=0,i=0,s,o=0;if(t){var c=this.pos(t);r=c.buf;n=c.offset;o=t}for(;;){while(n>=this.buffers[r].length){n=0;r++;if(r>=this.buffers.length){return-1}}var h=this.buffers[r][n];if(h==e[i]){if(i==0){s={i:r,j:n,pos:o}}i++;if(i==e.length){return s.pos}}else if(i!=0){r=s.i;n=s.j;o=s.pos;i=0}n++;o++}};Buffers.prototype.toBuffer=function(){return this.slice()};Buffers.prototype.toString=function(e,t,r){return this.slice(t,r).toString(e)}},46533:function(e,t,r){var n=r(8588);var i=r(82361).EventEmitter;e.exports=Chainsaw;function Chainsaw(e){var t=Chainsaw.saw(e,{});var r=e.call(t.handlers,t);if(r!==undefined)t.handlers=r;t.record();return t.chain()}Chainsaw.light=function ChainsawLight(e){var t=Chainsaw.saw(e,{});var r=e.call(t.handlers,t);if(r!==undefined)t.handlers=r;return t.chain()};Chainsaw.saw=function(e,t){var r=new i;r.handlers=t;r.actions=[];r.chain=function(){var e=n(r.handlers).map((function(t){if(this.isRoot)return t;var n=this.path;if(typeof t==="function"){this.update((function(){r.actions.push({path:n,args:[].slice.call(arguments)});return e}))}}));process.nextTick((function(){r.emit("begin");r.next()}));return e};r.pop=function(){return r.actions.shift()};r.next=function(){var e=r.pop();if(!e){r.emit("end")}else if(!e.trap){var t=r.handlers;e.path.forEach((function(e){t=t[e]}));t.apply(r.handlers,e.args)}};r.nest=function(t){var n=[].slice.call(arguments,1);var i=true;if(typeof t==="boolean"){var i=t;t=n.shift()}var s=Chainsaw.saw(e,{});var o=e.call(s.handlers,s);if(o!==undefined)s.handlers=o;if("undefined"!==typeof r.step){s.record()}t.apply(s.chain(),n);if(i!==false)s.on("end",r.next)};r.record=function(){upgradeChainsaw(r)};["trap","down","jump"].forEach((function(e){r[e]=function(){throw new Error("To use the trap, down and jump features, please "+"call record() first to start recording actions.")}}));return r};function upgradeChainsaw(e){e.step=0;e.pop=function(){return e.actions[e.step++]};e.trap=function(t,r){var n=Array.isArray(t)?t:[t];e.actions.push({path:n,step:e.step,cb:r,trap:true})};e.down=function(t){var r=(Array.isArray(t)?t:[t]).join("/");var n=e.actions.slice(e.step).map((function(t){if(t.trap&&t.step<=e.step)return false;return t.path.join("/")==r})).indexOf(true);if(n>=0)e.step+=n;else e.step=e.actions.length;var i=e.actions[e.step-1];if(i&&i.trap){e.step=i.step;i.cb()}else e.next()};e.jump=function(t){e.step=t;e.next()}}},92240:function(e){var t=e.exports=function(){};t.prototype.getName=function(){};t.prototype.getSize=function(){};t.prototype.getLastModifiedDate=function(){};t.prototype.isDirectory=function(){}},36728:function(e,t,r){var n=r(73837).inherits;var i=r(12353).Transform;var s=r(92240);var o=r(95208);var c=e.exports=function(e){if(!(this instanceof c)){return new c(e)}i.call(this,e);this.offset=0;this._archive={finish:false,finished:false,processing:false}};n(c,i);c.prototype._appendBuffer=function(e,t,r){};c.prototype._appendStream=function(e,t,r){};c.prototype._emitErrorCallback=function(e){if(e){this.emit("error",e)}};c.prototype._finish=function(e){};c.prototype._normalizeEntry=function(e){};c.prototype._transform=function(e,t,r){r(null,e)};c.prototype.entry=function(e,t,r){t=t||null;if(typeof r!=="function"){r=this._emitErrorCallback.bind(this)}if(!(e instanceof s)){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(o.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};c.prototype.finish=function(){if(this._archive.processing){this._archive.finish=true;return}this._finish()};c.prototype.getBytesWritten=function(){return this.offset};c.prototype.write=function(e,t){if(e){this.offset+=e.length}return i.prototype.write.call(this,e,t)}},11704: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}},63229:function(e,t,r){var n=r(68682);var i=1<<3;var s=1<<0;var o=1<<2;var c=1<<1;var h=1<<6;var p=1<<11;var g=e.exports=function(){if(!(this instanceof g)){return new g}this.descriptor=false;this.encryption=false;this.utf8=false;this.numberOfShannonFanoTrees=0;this.strongEncryption=false;this.slidingDictionarySize=0;return this};g.prototype.encode=function(){return n.getShortBytes((this.descriptor?i:0)|(this.utf8?p:0)|(this.encryption?s:0)|(this.strongEncryption?h:0))};g.prototype.parse=function(e,t){var r=n.getShortBytesValue(e,t);var y=new g;y.useDataDescriptor((r&i)!==0);y.useUTF8ForNames((r&p)!==0);y.useStrongEncryption((r&h)!==0);y.useEncryption((r&s)!==0);y.setSlidingDictionarySize((r&c)!==0?8192:4096);y.setNumberOfShannonFanoTrees((r&o)!==0?3:2);return y};g.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e};g.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};g.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e};g.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};g.prototype.useDataDescriptor=function(e){this.descriptor=e};g.prototype.usesDataDescriptor=function(){return this.descriptor};g.prototype.useEncryption=function(e){this.encryption=e};g.prototype.usesEncryption=function(){return this.encryption};g.prototype.useStrongEncryption=function(e){this.strongEncryption=e};g.prototype.usesStrongEncryption=function(){return this.strongEncryption};g.prototype.useUTF8ForNames=function(e){this.utf8=e};g.prototype.usesUTF8ForNames=function(){return this.utf8}},70713: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}},68682: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))}},3179:function(e,t,r){var n=r(73837).inherits;var i=r(55388);var s=r(92240);var o=r(63229);var c=r(70713);var h=r(11704);var p=r(68682);var g=e.exports=function(e){if(!(this instanceof g)){return new g(e)}s.call(this);this.platform=h.PLATFORM_FAT;this.method=-1;this.name=null;this.size=0;this.csize=0;this.gpb=new o;this.crc=0;this.time=-1;this.minver=h.MIN_VERSION_INITIAL;this.mode=-1;this.extra=null;this.exattr=0;this.inattr=0;this.comment=null;if(e){this.setName(e)}};n(g,s);g.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};g.prototype.getComment=function(){return this.comment!==null?this.comment:""};g.prototype.getCompressedSize=function(){return this.csize};g.prototype.getCrc=function(){return this.crc};g.prototype.getExternalAttributes=function(){return this.exattr};g.prototype.getExtra=function(){return this.extra!==null?this.extra:h.EMPTY};g.prototype.getGeneralPurposeBit=function(){return this.gpb};g.prototype.getInternalAttributes=function(){return this.inattr};g.prototype.getLastModifiedDate=function(){return this.getTime()};g.prototype.getLocalFileDataExtra=function(){return this.getExtra()};g.prototype.getMethod=function(){return this.method};g.prototype.getName=function(){return this.name};g.prototype.getPlatform=function(){return this.platform};g.prototype.getSize=function(){return this.size};g.prototype.getTime=function(){return this.time!==-1?p.dosToDate(this.time):-1};g.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};g.prototype.getUnixMode=function(){return this.platform!==h.PLATFORM_UNIX?0:this.getExternalAttributes()>>h.SHORT_SHIFT&h.SHORT_MASK};g.prototype.getVersionNeededToExtract=function(){return this.minver};g.prototype.setComment=function(e){if(Buffer.byteLength(e)!==e.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.comment=e};g.prototype.setCompressedSize=function(e){if(e<0){throw new Error("invalid entry compressed size")}this.csize=e};g.prototype.setCrc=function(e){if(e<0){throw new Error("invalid entry crc32")}this.crc=e};g.prototype.setExternalAttributes=function(e){this.exattr=e>>>0};g.prototype.setExtra=function(e){this.extra=e};g.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof o)){throw new Error("invalid entry GeneralPurposeBit")}this.gpb=e};g.prototype.setInternalAttributes=function(e){this.inattr=e};g.prototype.setMethod=function(e){if(e<0){throw new Error("invalid entry compression method")}this.method=e};g.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};g.prototype.setPlatform=function(e){this.platform=e};g.prototype.setSize=function(e){if(e<0){throw new Error("invalid entry size")}this.size=e};g.prototype.setTime=function(e,t){if(!(e instanceof Date)){throw new Error("invalid entry time")}this.time=p.dateToDos(e,t)};g.prototype.setUnixMode=function(e){e|=this.isDirectory()?h.S_IFDIR:h.S_IFREG;var t=0;t|=e<<h.SHORT_SHIFT|(this.isDirectory()?h.S_DOS_D:h.S_DOS_A);this.setExternalAttributes(t);this.mode=e&h.MODE_MASK;this.platform=h.PLATFORM_UNIX};g.prototype.setVersionNeededToExtract=function(e){this.minver=e};g.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};g.prototype.isUnixSymlink=function(){return(this.getUnixMode()&c.FILE_TYPE_FLAG)===c.LINK_FLAG};g.prototype.isZip64=function(){return this.csize>h.ZIP64_MAGIC||this.size>h.ZIP64_MAGIC}},44432:function(e,t,r){var n=r(73837).inherits;var i=r(84794);var{CRC32Stream:s}=r(5101);var{DeflateCRC32Stream:o}=r(5101);var c=r(36728);var h=r(3179);var p=r(63229);var g=r(11704);var y=r(95208);var b=r(68682);var v=e.exports=function(e){if(!(this instanceof v)){return new v(e)}e=this.options=this._defaults(e);c.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(v,c);v.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()}};v.prototype._appendBuffer=function(e,t,r){if(t.length===0){e.setMethod(g.METHOD_STORED)}var n=e.getMethod();if(n===g.METHOD_STORED){e.setSize(t.length);e.setCompressedSize(t.length);e.setCrc(i.unsigned(t))}this._writeLocalFileHeader(e);if(n===g.METHOD_STORED){this.write(t);this._afterAppend(e);r(null,e);return}else if(n===g.METHOD_DEFLATED){this._smartStream(e,r).end(t);return}else{r(new Error("compression method "+n+" not implemented"));return}};v.prototype._appendStream=function(e,t,r){e.getGeneralPurposeBit().useDataDescriptor(true);e.setVersionNeededToExtract(g.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)};v.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=g.ZLIB_BEST_SPEED}e.forceZip64=!!e.forceZip64;e.forceLocalTime=!!e.forceLocalTime;return e};v.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()};v.prototype._normalizeEntry=function(e){if(e.getMethod()===-1){e.setMethod(g.METHOD_DEFLATED)}if(e.getMethod()===g.METHOD_DEFLATED){e.getGeneralPurposeBit().useDataDescriptor(true);e.setVersionNeededToExtract(g.MIN_VERSION_DATA_DESCRIPTOR)}if(e.getTime()===-1){e.setTime(new Date,this._archive.forceLocalTime)}e._offsets={file:0,data:0,contents:0}};v.prototype._smartStream=function(e,t){var r=e.getMethod()===g.METHOD_DEFLATED;var n=r?new o(this.options.zlib):new s;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};v.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length;var t=this._archive.centralLength;var r=this._archive.centralOffset;if(this.isZip64()){e=g.ZIP64_MAGIC_SHORT;t=g.ZIP64_MAGIC;r=g.ZIP64_MAGIC}this.write(b.getLongBytes(g.SIG_EOCD));this.write(g.SHORT_ZERO);this.write(g.SHORT_ZERO);this.write(b.getShortBytes(e));this.write(b.getShortBytes(e));this.write(b.getLongBytes(t));this.write(b.getLongBytes(r));var n=this.getComment();var i=Buffer.byteLength(n);this.write(b.getShortBytes(i));this.write(n)};v.prototype._writeCentralDirectoryZip64=function(){this.write(b.getLongBytes(g.SIG_ZIP64_EOCD));this.write(b.getEightBytes(44));this.write(b.getShortBytes(g.MIN_VERSION_ZIP64));this.write(b.getShortBytes(g.MIN_VERSION_ZIP64));this.write(g.LONG_ZERO);this.write(g.LONG_ZERO);this.write(b.getEightBytes(this._entries.length));this.write(b.getEightBytes(this._entries.length));this.write(b.getEightBytes(this._archive.centralLength));this.write(b.getEightBytes(this._archive.centralOffset));this.write(b.getLongBytes(g.SIG_ZIP64_EOCD_LOC));this.write(g.LONG_ZERO);this.write(b.getEightBytes(this._archive.centralOffset+this._archive.centralLength));this.write(b.getLongBytes(1))};v.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit();var r=e.getMethod();var n=e._offsets;var i=e.getSize();var s=e.getCompressedSize();if(e.isZip64()||n.file>g.ZIP64_MAGIC){i=g.ZIP64_MAGIC;s=g.ZIP64_MAGIC;e.setVersionNeededToExtract(g.MIN_VERSION_ZIP64);var o=Buffer.concat([b.getShortBytes(g.ZIP64_EXTRA_ID),b.getShortBytes(24),b.getEightBytes(e.getSize()),b.getEightBytes(e.getCompressedSize()),b.getEightBytes(n.file)],28);e.setExtra(o)}this.write(b.getLongBytes(g.SIG_CFH));this.write(b.getShortBytes(e.getPlatform()<<8|g.VERSION_MADEBY));this.write(b.getShortBytes(e.getVersionNeededToExtract()));this.write(t.encode());this.write(b.getShortBytes(r));this.write(b.getLongBytes(e.getTimeDos()));this.write(b.getLongBytes(e.getCrc()));this.write(b.getLongBytes(s));this.write(b.getLongBytes(i));var c=e.getName();var h=e.getComment();var p=e.getCentralDirectoryExtra();if(t.usesUTF8ForNames()){c=Buffer.from(c);h=Buffer.from(h)}this.write(b.getShortBytes(c.length));this.write(b.getShortBytes(p.length));this.write(b.getShortBytes(h.length));this.write(g.SHORT_ZERO);this.write(b.getShortBytes(e.getInternalAttributes()));this.write(b.getLongBytes(e.getExternalAttributes()));if(n.file>g.ZIP64_MAGIC){this.write(b.getLongBytes(g.ZIP64_MAGIC))}else{this.write(b.getLongBytes(n.file))}this.write(c);this.write(p);this.write(h)};v.prototype._writeDataDescriptor=function(e){this.write(b.getLongBytes(g.SIG_DD));this.write(b.getLongBytes(e.getCrc()));if(e.isZip64()){this.write(b.getEightBytes(e.getCompressedSize()));this.write(b.getEightBytes(e.getSize()))}else{this.write(b.getLongBytes(e.getCompressedSize()));this.write(b.getLongBytes(e.getSize()))}};v.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(g.MIN_VERSION_ZIP64)}if(t.usesUTF8ForNames()){n=Buffer.from(n)}e._offsets.file=this.offset;this.write(b.getLongBytes(g.SIG_LFH));this.write(b.getShortBytes(e.getVersionNeededToExtract()));this.write(t.encode());this.write(b.getShortBytes(r));this.write(b.getLongBytes(e.getTimeDos()));e._offsets.data=this.offset;if(t.usesDataDescriptor()){this.write(g.LONG_ZERO);this.write(g.LONG_ZERO);this.write(g.LONG_ZERO)}else{this.write(b.getLongBytes(e.getCrc()));this.write(b.getLongBytes(e.getCompressedSize()));this.write(b.getLongBytes(e.getSize()))}this.write(b.getShortBytes(n.length));this.write(b.getShortBytes(i.length));this.write(n);this.write(i);e._offsets.contents=this.offset};v.prototype.getComment=function(e){return this._archive.comment!==null?this._archive.comment:""};v.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>g.ZIP64_MAGIC_SHORT||this._archive.centralLength>g.ZIP64_MAGIC||this._archive.centralOffset>g.ZIP64_MAGIC};v.prototype.setComment=function(e){this._archive.comment=e}},25445:function(e,t,r){e.exports={ArchiveEntry:r(92240),ZipArchiveEntry:r(3179),ArchiveOutputStream:r(36728),ZipArchiveOutputStream:r(44432)}},95208:function(e,t,r){var n=r(12781).Stream;var i=r(12353).PassThrough;var s=e.exports={};s.isStream=function(e){return e instanceof n};s.normalizeInputSource=function(e){if(e===null){return Buffer.alloc(0)}else if(typeof e==="string"){return Buffer.from(e)}else if(s.isStream(e)&&!e._readableState){var t=new i;e.pipe(t);return t}return e}},2383: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.q=t},870: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(40696);var s=r(75302);r(44124)(Duplex,i);{var o=n(s.prototype);for(var c=0;c<o.length;c++){var h=o[c];if(!Duplex.prototype[h])Duplex.prototype[h]=s.prototype[h]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);i.call(this,e);s.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}})},52793:function(e,t,r){"use strict";e.exports=PassThrough;var n=r(5025);r(44124)(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)}},40696:function(e,t,r){"use strict";e.exports=Readable;var n;Readable.ReadableState=ReadableState;var i=r(82361).EventEmitter;var s=function EElistenerCount(e,t){return e.listeners(t).length};var o=r(62669);var c=r(14300).Buffer;var h=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return c.from(e)}function _isUint8Array(e){return c.isBuffer(e)||e instanceof h}var p=r(73837);var g;if(p&&p.debuglog){g=p.debuglog("stream")}else{g=function debug(){}}var y=r(89988);var b=r(32476);var v=r(60929),_=v.getHighWaterMark;var w=r(2383).q,S=w.ERR_INVALID_ARG_TYPE,k=w.ERR_STREAM_PUSH_AFTER_EOF,x=w.ERR_METHOD_NOT_IMPLEMENTED,E=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var R;var C;var O;r(44124)(Readable,o);var P=b.errorOrDestroy;var A=["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(870);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=_(this,e,"readableHighWaterMark",i);this.buffer=new y;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(!R)R=r(94841).s;this.decoder=new R(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||r(870);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}o.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=b.destroy;Readable.prototype._undestroy=b.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=c.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){g("readableAddChunk",t);var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var o;if(!i)o=chunkInvalid(s,t);if(o){P(e,o)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==c.prototype){t=_uint8ArrayToBuffer(t)}if(n){if(s.endEmitted)P(e,new E);else addChunk(e,s,t,true)}else if(s.ended){P(e,new k)}else if(s.destroyed){return false}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(!n){s.reading=false;maybeReadMore(e,s)}}return!s.ended&&(s.length<s.highWaterMark||s.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 S("chunk",["string","Buffer","Uint8Array"],t)}return r}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!R)R=r(94841).s;var t=new R(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 I=1073741824;function computeNewHighWaterMark(e){if(e>=I){e=I}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){g("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)){g("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;g("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;g("length less than watermark",n)}if(t.ended||t.reading){n=false;g("reading or ended",n)}else if(n){g("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){g("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;g("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){g("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;g("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;g("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}Readable.prototype._read=function(e){P(this,new x("_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;g("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var o=i?onend:unpipe;if(n.endEmitted)process.nextTick(o);else r.once("end",o);e.on("unpipe",onunpipe);function onunpipe(e,t){g("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){g("onend");e.end()}var c=pipeOnDrain(r);e.on("drain",c);var h=false;function cleanup(){g("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",c);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);h=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))c()}r.on("data",ondata);function ondata(t){g("ondata");var i=e.write(t);g("dest.write",i);if(i===false){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!h){g("false write response, pause",n.awaitDrain);n.awaitDrain++}r.pause()}}function onerror(t){g("onerror",t);unpipe();e.removeListener("error",onerror);if(s(e,"error")===0)P(e,t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){g("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){g("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){g("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;g("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&s(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 s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:false});return this}var o=indexOf(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,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);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;g("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=o.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return r};Readable.prototype.removeAllListeners=function(e){var t=o.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){g("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){g("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){g("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(){g("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){g("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;g("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(){g("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){g("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 s=t.push(i);if(!s){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 s=0;s<A.length;s++){e.on(A[s],this.emit.bind(this,A[s]))}this._read=function(t){g("wrapped _read",t);if(n){n=false;e.resume()}};return this};if(typeof Symbol==="function"){Readable.prototype[Symbol.asyncIterator]=function(){if(C===undefined){C=r(98462)}return C(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;g("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){g("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(O===undefined){O=r(22219)}return O(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}},5025:function(e,t,r){"use strict";e.exports=Transform;var n=r(2383).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0;var h=r(870);r(44124)(Transform,h);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(n===null){return this.emit("error",new s)}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);h.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 h.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){h.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 c;if(e._transformState.transforming)throw new o;return e.push(null)}},75302: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(65278)};var s=r(62669);var o=r(14300).Buffer;var c=(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 c}var h=r(32476);var p=r(60929),g=p.getHighWaterMark;var y=r(2383).q,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_MULTIPLE_CALLBACK,w=y.ERR_STREAM_CANNOT_PIPE,S=y.ERR_STREAM_DESTROYED,k=y.ERR_STREAM_NULL_VALUES,x=y.ERR_STREAM_WRITE_AFTER_END,E=y.ERR_UNKNOWN_ENCODING;var R=h.errorOrDestroy;r(44124)(Writable,s);function nop(){}function WritableState(e,t,i){n=n||r(870);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=g(this,e,"writableHighWaterMark",i);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var s=e.decodeStrings===false;this.decodeStrings=!s;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 C;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){C=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(C.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{C=function realHasInstance(e){return e instanceof this}}function Writable(e){n=n||r(870);var t=this instanceof n;if(!t&&!C.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}s.call(this)}Writable.prototype.pipe=function(){R(this,new w)};function writeAfterEnd(e,t){var r=new x;R(e,r);process.nextTick(t,r)}function validChunk(e,t,r,n){var i;if(r===null){i=new k}else if(typeof r!=="string"&&!t.objectMode){i=new b("chunk",["string","Buffer"],r)}if(i){R(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 s=!n.objectMode&&_isUint8Array(e);if(s&&!o.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(s)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=nop;if(n.ending)writeAfterEnd(this,r);else if(s||validChunk(this,n,e,r)){n.pendingcb++;i=writeOrBuffer(this,n,s,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 E(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=o.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,s){if(!r){var o=decodeChunk(t,n,i);if(n!==o){r=true;i="buffer";n=o}}var c=t.objectMode?1:n.length;t.length+=c;var h=t.length<t.highWaterMark;if(!h)t.needDrain=true;if(t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null};if(p){p.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,c,n,i,s)}return h}function doWrite(e,t,r,n,i,s,o){t.writelen=n;t.writecb=o;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new S("write"));else if(r)e._writev(i,t.onwrite);else e._write(i,s,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;R(e,n)}else{i(n);e._writableState.errorEmitted=true;R(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 _;onwriteStateUpdate(r);if(t)onwriteError(e,r,n,t,i);else{var s=needFinish(r)||e.destroyed;if(!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(n){process.nextTick(afterWrite,e,r,s,i)}else{afterWrite(e,r,s,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 s=t.corkedRequestsFree;s.entry=r;var o=0;var c=true;while(r){i[o]=r;if(!r.isBuf)c=false;r=r.next;o+=1}i.allBuffers=c;doWrite(e,t,true,t.length,i,"",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 h=r.chunk;var p=r.encoding;var g=r.callback;var y=t.objectMode?1:h.length;doWrite(e,t,false,y,h,p,g);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 v("_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){R(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=h.destroy;Writable.prototype._undestroy=h.undestroy;Writable.prototype._destroy=function(e,t){t(e)}},98462: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(25480);var s=Symbol("lastResolve");var o=Symbol("lastReject");var c=Symbol("error");var h=Symbol("ended");var p=Symbol("lastPromise");var g=Symbol("handlePromise");var y=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[s];if(t!==null){var r=e[y].read();if(r!==null){e[p]=null;e[s]=null;e[o]=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[h]){r(createIterResult(undefined,true));return}t[g](r,n)}),n)}}var b=Object.getPrototypeOf((function(){}));var v=Object.setPrototypeOf((n={get stream(){return this[y]},next:function next(){var e=this;var t=this[c];if(t!==null){return Promise.reject(t)}if(this[h]){return Promise.resolve(createIterResult(undefined,true))}if(this[y].destroyed){return new Promise((function(t,r){process.nextTick((function(){if(e[c]){r(e[c])}else{t(createIterResult(undefined,true))}}))}))}var r=this[p];var n;if(r){n=new Promise(wrapForNext(r,this))}else{var i=this[y].read();if(i!==null){return Promise.resolve(createIterResult(i,false))}n=new Promise(this[g])}this[p]=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[y].destroy(null,(function(e){if(e){r(e);return}t(createIterResult(undefined,true))}))}))})),n),b);var _=function createReadableStreamAsyncIterator(e){var t;var r=Object.create(v,(t={},_defineProperty(t,y,{value:e,writable:true}),_defineProperty(t,s,{value:null,writable:true}),_defineProperty(t,o,{value:null,writable:true}),_defineProperty(t,c,{value:null,writable:true}),_defineProperty(t,h,{value:e._readableState.endEmitted,writable:true}),_defineProperty(t,g,{value:function value(e,t){var n=r[y].read();if(n){r[p]=null;r[s]=null;r[o]=null;e(createIterResult(n,false))}else{r[s]=e;r[o]=t}},writable:true}),t));r[p]=null;i(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=r[o];if(t!==null){r[p]=null;r[s]=null;r[o]=null;t(e)}r[c]=e;return}var n=r[s];if(n!==null){r[p]=null;r[s]=null;r[o]=null;n(createIterResult(undefined,true))}r[h]=true}));e.on("readable",onReadable.bind(null,r));return r};e.exports=_},89988: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(14300),i=n.Buffer;var s=r(73837),o=s.inspect;var c=o&&o.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 s=e>i.length?i.length:e;if(s===i.length)n+=i;else n+=i.slice(0,e);e-=s;if(e===0){if(s===i.length){++r;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=i.slice(s)}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 s=r.data;var o=e>s.length?s.length:e;s.copy(t,t.length-e,0,o);e-=o;if(e===0){if(o===s.length){++n;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=s.slice(o)}break}++n}this.length-=n;return t}},{key:c,value:function value(e,t){return o(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:false}))}}]);return BufferList}()},32476: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}},25480:function(e,t,r){"use strict";var n=r(2383).q.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 s=t.writable||t.writable!==false&&e.writable;var o=function onlegacyfinish(){if(!e.writable)h()};var c=e._writableState&&e._writableState.finished;var h=function onfinish(){s=false;c=true;if(!i)r.call(e)};var p=e._readableState&&e._readableState.endEmitted;var g=function onend(){i=false;p=true;if(!s)r.call(e)};var y=function onerror(t){r.call(e,t)};var b=function onclose(){var t;if(i&&!p){if(!e._readableState||!e._readableState.ended)t=new n;return r.call(e,t)}if(s&&!c){if(!e._writableState||!e._writableState.ended)t=new n;return r.call(e,t)}};var v=function onrequest(){e.req.on("finish",h)};if(isRequest(e)){e.on("complete",h);e.on("abort",b);if(e.req)v();else e.on("request",v)}else if(s&&!e._writableState){e.on("end",o);e.on("close",o)}e.on("end",g);e.on("finish",h);if(t.error!==false)e.on("error",y);e.on("close",b);return function(){e.removeListener("complete",h);e.removeListener("abort",b);e.removeListener("request",v);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",o);e.removeListener("close",o);e.removeListener("finish",h);e.removeListener("end",g);e.removeListener("error",y);e.removeListener("close",b)}}e.exports=eos},22219:function(e,t,r){"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var c=e[s](o);var h=c.value}catch(e){r(e);return}if(c.done){t(h)}else{Promise.resolve(h).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,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(2383).q.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 s=new e(_objectSpread({objectMode:true},r));var o=false;s._read=function(){if(!o){o=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){s.push(null)}else if(s.push(yield t)){next()}else{o=false}}catch(e){s.destroy(e)}}));return _next2.apply(this,arguments)}return s}e.exports=from},74970: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(2383).q,s=i.ERR_MISSING_ARGS,o=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,s){s=once(s);var c=false;e.on("close",(function(){c=true}));if(n===undefined)n=r(25480);n(e,{readable:t,writable:i},(function(e){if(e)return s(e);c=true;s()}));var h=false;return function(t){if(c)return;if(h)return;h=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();s(t||new o("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 s("streams")}var i;var o=t.map((function(e,r){var s=r<t.length-1;var c=r>0;return destroyer(e,s,c,(function(e){if(!i)i=e;if(e)o.forEach(call);if(s)return;o.forEach(call);n(i)}))}));return t.reduce(pipe)}e.exports=pipeline},60929:function(e,t,r){"use strict";var n=r(2383).q.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 s=highWaterMarkFrom(t,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var o=i?r:"highWaterMark";throw new n(o,s)}return Math.floor(s)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},62669:function(e,t,r){e.exports=r(12781)},12353:function(e,t,r){var n=r(12781);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(40696);t.Stream=n||t;t.Readable=t;t.Writable=r(75302);t.Duplex=r(870);t.Transform=r(5025);t.PassThrough=r(52793);t.finished=r(25480);t.pipeline=r(74970)}},86891:function(e){e.exports=function(e,r){var n=[];for(var i=0;i<e.length;i++){var s=r(e[i],i);if(t(s))n.push.apply(n,s);else n.push(s)}return n};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},95898: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(14300).Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},83201:function(e,t){
50
50
  /*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
51
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 s=[];for(n=1;n!=16;++n)s[n-1]=typeof Int32Array!=="undefined"?i.subarray(n*256,n*256+256):i.slice(n*256,n*256+256);return s}var r=slice_by_16_tables(t);var n=r[0],i=r[1],s=r[2],o=r[3],c=r[4];var h=r[5],p=r[6],g=r[7],y=r[8],b=r[9];var v=r[10],_=r[11],w=r[12],S=r[13],k=r[14];function crc32_bstr(e,r){var n=r^-1;for(var i=0,s=e.length;i<s;)n=n>>>8^t[(n^e.charCodeAt(i++))&255];return~n}function crc32_buf(e,r){var x=r^-1,E=e.length-15,R=0;for(;R<E;)x=k[e[R++]^x&255]^S[e[R++]^x>>8&255]^w[e[R++]^x>>16&255]^_[e[R++]^x>>>24]^v[e[R++]]^b[e[R++]]^y[e[R++]]^g[e[R++]]^p[e[R++]]^h[e[R++]]^c[e[R++]]^o[e[R++]]^s[e[R++]]^i[e[R++]]^n[e[R++]]^t[e[R++]];E+=15;while(R<E)x=x>>>8^t[(x^e[R++])&255];return~x}function crc32_str(e,r){var n=r^-1;for(var i=0,s=e.length,o=0,c=0;i<s;){o=e.charCodeAt(i++);if(o<128){n=n>>>8^t[(n^o)&255]}else if(o<2048){n=n>>>8^t[(n^(192|o>>6&31))&255];n=n>>>8^t[(n^(128|o&63))&255]}else if(o>=55296&&o<57344){o=(o&1023)+64;c=e.charCodeAt(i++)&1023;n=n>>>8^t[(n^(240|o>>8&7))&255];n=n>>>8^t[(n^(128|o>>2&63))&255];n=n>>>8^t[(n^(128|c>>6&15|(o&3)<<4))&255];n=n>>>8^t[(n^(128|c&63))&255]}else{n=n>>>8^t[(n^(224|o>>12&15))&255];n=n>>>8^t[(n^(128|o>>6&63))&255];n=n>>>8^t[(n^(128|o&63))&255]}}return~n}e.table=t;e.bstr=crc32_bstr;e.buf=crc32_buf;e.str=crc32_str}))},94521:function(e,t,r){"use strict";const{Transform:n}=r(69968);const i=r(83201);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},92563:function(e,t,r){"use strict";const{DeflateRaw:n}=r(59796);const i=r(83201);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},5101:function(e,t,r){"use strict";e.exports={CRC32Stream:r(94521),DeflateCRC32Stream:r(92563)}},2553: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.q=t},57481: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(61259);var s=r(2085);r(44124)(Duplex,i);{var o=n(s.prototype);for(var c=0;c<o.length;c++){var h=o[c];if(!Duplex.prototype[h])Duplex.prototype[h]=s.prototype[h]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);i.call(this,e);s.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}})},67482:function(e,t,r){"use strict";e.exports=PassThrough;var n=r(6966);r(44124)(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)}},61259:function(e,t,r){"use strict";e.exports=Readable;var n;Readable.ReadableState=ReadableState;var i=r(82361).EventEmitter;var s=function EElistenerCount(e,t){return e.listeners(t).length};var o=r(67899);var c=r(14300).Buffer;var h=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return c.from(e)}function _isUint8Array(e){return c.isBuffer(e)||e instanceof h}var p=r(73837);var g;if(p&&p.debuglog){g=p.debuglog("stream")}else{g=function debug(){}}var y=r(21226);var b=r(18150);var v=r(52461),_=v.getHighWaterMark;var w=r(2553).q,S=w.ERR_INVALID_ARG_TYPE,k=w.ERR_STREAM_PUSH_AFTER_EOF,x=w.ERR_METHOD_NOT_IMPLEMENTED,E=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var R;var C;var O;r(44124)(Readable,o);var P=b.errorOrDestroy;var A=["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(57481);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=_(this,e,"readableHighWaterMark",i);this.buffer=new y;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(!R)R=r(94841).s;this.decoder=new R(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||r(57481);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}o.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=b.destroy;Readable.prototype._undestroy=b.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=c.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){g("readableAddChunk",t);var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var o;if(!i)o=chunkInvalid(s,t);if(o){P(e,o)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==c.prototype){t=_uint8ArrayToBuffer(t)}if(n){if(s.endEmitted)P(e,new E);else addChunk(e,s,t,true)}else if(s.ended){P(e,new k)}else if(s.destroyed){return false}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(!n){s.reading=false;maybeReadMore(e,s)}}return!s.ended&&(s.length<s.highWaterMark||s.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 S("chunk",["string","Buffer","Uint8Array"],t)}return r}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!R)R=r(94841).s;var t=new R(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 I=1073741824;function computeNewHighWaterMark(e){if(e>=I){e=I}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){g("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)){g("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;g("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;g("length less than watermark",n)}if(t.ended||t.reading){n=false;g("reading or ended",n)}else if(n){g("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){g("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;g("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){g("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;g("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;g("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}Readable.prototype._read=function(e){P(this,new x("_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;g("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var o=i?onend:unpipe;if(n.endEmitted)process.nextTick(o);else r.once("end",o);e.on("unpipe",onunpipe);function onunpipe(e,t){g("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){g("onend");e.end()}var c=pipeOnDrain(r);e.on("drain",c);var h=false;function cleanup(){g("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",c);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);h=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))c()}r.on("data",ondata);function ondata(t){g("ondata");var i=e.write(t);g("dest.write",i);if(i===false){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!h){g("false write response, pause",n.awaitDrain);n.awaitDrain++}r.pause()}}function onerror(t){g("onerror",t);unpipe();e.removeListener("error",onerror);if(s(e,"error")===0)P(e,t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){g("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){g("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){g("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;g("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&s(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 s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:false});return this}var o=indexOf(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,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);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;g("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=o.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return r};Readable.prototype.removeAllListeners=function(e){var t=o.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){g("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){g("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){g("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(){g("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){g("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;g("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(){g("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){g("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 s=t.push(i);if(!s){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 s=0;s<A.length;s++){e.on(A[s],this.emit.bind(this,A[s]))}this._read=function(t){g("wrapped _read",t);if(n){n=false;e.resume()}};return this};if(typeof Symbol==="function"){Readable.prototype[Symbol.asyncIterator]=function(){if(C===undefined){C=r(10505)}return C(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;g("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){g("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(O===undefined){O=r(62997)}return O(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}},6966:function(e,t,r){"use strict";e.exports=Transform;var n=r(2553).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0;var h=r(57481);r(44124)(Transform,h);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(n===null){return this.emit("error",new s)}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);h.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 h.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){h.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 c;if(e._transformState.transforming)throw new o;return e.push(null)}},2085: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(65278)};var s=r(67899);var o=r(14300).Buffer;var c=(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 c}var h=r(18150);var p=r(52461),g=p.getHighWaterMark;var y=r(2553).q,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_MULTIPLE_CALLBACK,w=y.ERR_STREAM_CANNOT_PIPE,S=y.ERR_STREAM_DESTROYED,k=y.ERR_STREAM_NULL_VALUES,x=y.ERR_STREAM_WRITE_AFTER_END,E=y.ERR_UNKNOWN_ENCODING;var R=h.errorOrDestroy;r(44124)(Writable,s);function nop(){}function WritableState(e,t,i){n=n||r(57481);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=g(this,e,"writableHighWaterMark",i);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var s=e.decodeStrings===false;this.decodeStrings=!s;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 C;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){C=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(C.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{C=function realHasInstance(e){return e instanceof this}}function Writable(e){n=n||r(57481);var t=this instanceof n;if(!t&&!C.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}s.call(this)}Writable.prototype.pipe=function(){R(this,new w)};function writeAfterEnd(e,t){var r=new x;R(e,r);process.nextTick(t,r)}function validChunk(e,t,r,n){var i;if(r===null){i=new k}else if(typeof r!=="string"&&!t.objectMode){i=new b("chunk",["string","Buffer"],r)}if(i){R(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 s=!n.objectMode&&_isUint8Array(e);if(s&&!o.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(s)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=nop;if(n.ending)writeAfterEnd(this,r);else if(s||validChunk(this,n,e,r)){n.pendingcb++;i=writeOrBuffer(this,n,s,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 E(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=o.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,s){if(!r){var o=decodeChunk(t,n,i);if(n!==o){r=true;i="buffer";n=o}}var c=t.objectMode?1:n.length;t.length+=c;var h=t.length<t.highWaterMark;if(!h)t.needDrain=true;if(t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null};if(p){p.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,c,n,i,s)}return h}function doWrite(e,t,r,n,i,s,o){t.writelen=n;t.writecb=o;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new S("write"));else if(r)e._writev(i,t.onwrite);else e._write(i,s,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;R(e,n)}else{i(n);e._writableState.errorEmitted=true;R(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 _;onwriteStateUpdate(r);if(t)onwriteError(e,r,n,t,i);else{var s=needFinish(r)||e.destroyed;if(!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(n){process.nextTick(afterWrite,e,r,s,i)}else{afterWrite(e,r,s,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 s=t.corkedRequestsFree;s.entry=r;var o=0;var c=true;while(r){i[o]=r;if(!r.isBuf)c=false;r=r.next;o+=1}i.allBuffers=c;doWrite(e,t,true,t.length,i,"",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 h=r.chunk;var p=r.encoding;var g=r.callback;var y=t.objectMode?1:h.length;doWrite(e,t,false,y,h,p,g);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 v("_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){R(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=h.destroy;Writable.prototype._undestroy=h.undestroy;Writable.prototype._destroy=function(e,t){t(e)}},10505: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(36523);var s=Symbol("lastResolve");var o=Symbol("lastReject");var c=Symbol("error");var h=Symbol("ended");var p=Symbol("lastPromise");var g=Symbol("handlePromise");var y=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[s];if(t!==null){var r=e[y].read();if(r!==null){e[p]=null;e[s]=null;e[o]=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[h]){r(createIterResult(undefined,true));return}t[g](r,n)}),n)}}var b=Object.getPrototypeOf((function(){}));var v=Object.setPrototypeOf((n={get stream(){return this[y]},next:function next(){var e=this;var t=this[c];if(t!==null){return Promise.reject(t)}if(this[h]){return Promise.resolve(createIterResult(undefined,true))}if(this[y].destroyed){return new Promise((function(t,r){process.nextTick((function(){if(e[c]){r(e[c])}else{t(createIterResult(undefined,true))}}))}))}var r=this[p];var n;if(r){n=new Promise(wrapForNext(r,this))}else{var i=this[y].read();if(i!==null){return Promise.resolve(createIterResult(i,false))}n=new Promise(this[g])}this[p]=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[y].destroy(null,(function(e){if(e){r(e);return}t(createIterResult(undefined,true))}))}))})),n),b);var _=function createReadableStreamAsyncIterator(e){var t;var r=Object.create(v,(t={},_defineProperty(t,y,{value:e,writable:true}),_defineProperty(t,s,{value:null,writable:true}),_defineProperty(t,o,{value:null,writable:true}),_defineProperty(t,c,{value:null,writable:true}),_defineProperty(t,h,{value:e._readableState.endEmitted,writable:true}),_defineProperty(t,g,{value:function value(e,t){var n=r[y].read();if(n){r[p]=null;r[s]=null;r[o]=null;e(createIterResult(n,false))}else{r[s]=e;r[o]=t}},writable:true}),t));r[p]=null;i(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=r[o];if(t!==null){r[p]=null;r[s]=null;r[o]=null;t(e)}r[c]=e;return}var n=r[s];if(n!==null){r[p]=null;r[s]=null;r[o]=null;n(createIterResult(undefined,true))}r[h]=true}));e.on("readable",onReadable.bind(null,r));return r};e.exports=_},21226: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(14300),i=n.Buffer;var s=r(73837),o=s.inspect;var c=o&&o.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 s=e>i.length?i.length:e;if(s===i.length)n+=i;else n+=i.slice(0,e);e-=s;if(e===0){if(s===i.length){++r;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=i.slice(s)}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 s=r.data;var o=e>s.length?s.length:e;s.copy(t,t.length-e,0,o);e-=o;if(e===0){if(o===s.length){++n;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=s.slice(o)}break}++n}this.length-=n;return t}},{key:c,value:function value(e,t){return o(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:false}))}}]);return BufferList}()},18150: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}},36523:function(e,t,r){"use strict";var n=r(2553).q.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 s=t.writable||t.writable!==false&&e.writable;var o=function onlegacyfinish(){if(!e.writable)h()};var c=e._writableState&&e._writableState.finished;var h=function onfinish(){s=false;c=true;if(!i)r.call(e)};var p=e._readableState&&e._readableState.endEmitted;var g=function onend(){i=false;p=true;if(!s)r.call(e)};var y=function onerror(t){r.call(e,t)};var b=function onclose(){var t;if(i&&!p){if(!e._readableState||!e._readableState.ended)t=new n;return r.call(e,t)}if(s&&!c){if(!e._writableState||!e._writableState.ended)t=new n;return r.call(e,t)}};var v=function onrequest(){e.req.on("finish",h)};if(isRequest(e)){e.on("complete",h);e.on("abort",b);if(e.req)v();else e.on("request",v)}else if(s&&!e._writableState){e.on("end",o);e.on("close",o)}e.on("end",g);e.on("finish",h);if(t.error!==false)e.on("error",y);e.on("close",b);return function(){e.removeListener("complete",h);e.removeListener("abort",b);e.removeListener("request",v);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",o);e.removeListener("close",o);e.removeListener("finish",h);e.removeListener("end",g);e.removeListener("error",y);e.removeListener("close",b)}}e.exports=eos},62997:function(e,t,r){"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var c=e[s](o);var h=c.value}catch(e){r(e);return}if(c.done){t(h)}else{Promise.resolve(h).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,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(2553).q.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 s=new e(_objectSpread({objectMode:true},r));var o=false;s._read=function(){if(!o){o=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){s.push(null)}else if(s.push(yield t)){next()}else{o=false}}catch(e){s.destroy(e)}}));return _next2.apply(this,arguments)}return s}e.exports=from},90552: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(2553).q,s=i.ERR_MISSING_ARGS,o=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,s){s=once(s);var c=false;e.on("close",(function(){c=true}));if(n===undefined)n=r(36523);n(e,{readable:t,writable:i},(function(e){if(e)return s(e);c=true;s()}));var h=false;return function(t){if(c)return;if(h)return;h=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();s(t||new o("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 s("streams")}var i;var o=t.map((function(e,r){var s=r<t.length-1;var c=r>0;return destroyer(e,s,c,(function(e){if(!i)i=e;if(e)o.forEach(call);if(s)return;o.forEach(call);n(i)}))}));return t.reduce(pipe)}e.exports=pipeline},52461:function(e,t,r){"use strict";var n=r(2553).q.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 s=highWaterMarkFrom(t,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var o=i?r:"highWaterMark";throw new n(o,s)}return Math.floor(s)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},67899:function(e,t,r){e.exports=r(12781)},69968:function(e,t,r){var n=r(12781);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(61259);t.Stream=n||t;t.Readable=t;t.Writable=r(2085);t.Duplex=r(57481);t.Transform=r(6966);t.PassThrough=r(67482);t.finished=r(36523);t.pipeline=r(90552)}},31932:function(e,t,r){"use strict";var n=r(51642);function DuplexWrapper(e,t,r){if(typeof r==="undefined"){r=t;t=e;e=null}n.Duplex.call(this,e);if(typeof r.read!=="function"){r=new n.Readable(e).wrap(r)}this._writable=t;this._readable=r;this._waiting=false;var i=this;t.once("finish",(function(){i.end()}));this.once("finish",(function(){t.end()}));r.on("readable",(function(){if(i._waiting){i._waiting=false;i._read()}}));r.once("end",(function(){i.push(null)}));if(!e||typeof e.bubbleErrors==="undefined"||e.bubbleErrors){t.on("error",(function(e){i.emit("error",e)}));r.on("error",(function(e){i.emit("error",e)}))}}DuplexWrapper.prototype=Object.create(n.Duplex.prototype,{constructor:{value:DuplexWrapper}});DuplexWrapper.prototype._write=function _write(e,t,r){this._writable.write(e,t,r)};DuplexWrapper.prototype._read=function _read(){var e;var t=0;while((e=this._readable.read())!==null){this.push(e);t++}if(t===0){this._waiting=true}};e.exports=function duplex2(e,t,r){return new DuplexWrapper(e,t,r)};e.exports.DuplexWrapper=DuplexWrapper},88434:function(e,t,r){var n=r(1223);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 s=e._readableState;var o=t.readable||t.readable!==false&&e.readable;var c=t.writable||t.writable!==false&&e.writable;var h=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){c=false;if(!o)r.call(e)};var onend=function(){o=false;if(!c)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(h)return;if(o&&!(s&&(s.ended&&!s.destroyed)))return r.call(e,new Error("premature close"));if(c&&!(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(c&&!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(){h=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},18785:function(e,t,r){if(parseInt(process.versions.node.split(".")[0],10)<10){throw new Error("For node versions older than 10, please use the ES5 Import: https://github.com/exceljs/exceljs#es5-imports")}e.exports=r(90214)},20382:function(e,t,r){const n=r(57147);const i=r(78974);const s=r(45286);const o=r(63110);const c=r(87060).extend(s).extend(o);const h=r(42653);const{fs:{exists:p}}=r(55049);const g={true:true,false:false,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};class CSV{constructor(e){this.workbook=e;this.worksheet=null}async readFile(e,t){t=t||{};if(!await p(e)){throw new Error(`File not found: ${e}`)}const r=n.createReadStream(e);const i=await this.read(r,t);r.close();return i}read(e,t){t=t||{};return new Promise(((r,n)=>{const s=this.workbook.addWorksheet(t.sheetName);const o=t.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"];const h=t.map||function(e){if(e===""){return null}const t=Number(e);if(!Number.isNaN(t)&&t!==Infinity){return t}const r=o.reduce(((t,r)=>{if(t){return t}const n=c(e,r,true);if(n.isValid()){return n}return null}),null);if(r){return new Date(r.valueOf())}const n=g[e];if(n!==undefined){return n}return e};const p=i.parse(t.parserOptions).on("data",(e=>{s.addRow(e.map(h))})).on("end",(()=>{p.emit("worksheet",s)}));p.on("worksheet",r).on("error",n);e.pipe(p)}))}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(e,t){return new Promise(((r,n)=>{t=t||{};const s=this.workbook.getWorksheet(t.sheetName||t.sheetId);const o=i.format(t.formatterOptions);e.on("finish",(()=>{r()}));o.on("error",n);o.pipe(e);const{dateFormat:h,dateUTC:p}=t;const g=t.map||(e=>{if(e){if(e.text||e.hyperlink){return e.hyperlink||e.text||""}if(e.formula||e.result){return e.result||""}if(e instanceof Date){if(h){return p?c.utc(e).format(h):c(e).format(h)}return p?c.utc(e).format():c(e).format()}if(e.error){return e.error}if(typeof e==="object"){return JSON.stringify(e)}}return e});const y=t.includeEmptyRows===undefined||t.includeEmptyRows;let b=1;if(s){s.eachRow(((e,t)=>{if(y){while(b++<t-1){o.write([])}}const{values:r}=e;r.shift();o.write(r.map(g));b=t}))}o.end()}))}writeFile(e,t){t=t||{};const r={encoding:t.encoding||"utf8"};const i=n.createWriteStream(e,r);return this.write(i,t)}async writeBuffer(e){const t=new h;await this.write(t,e);return t.read()}}e.exports=CSV},13988:function(e,t,r){"use strict";const n=r(25646);class Anchor{constructor(e,t,r=0){this.worksheet=e;if(!t){this.nativeCol=0;this.nativeColOff=0;this.nativeRow=0;this.nativeRowOff=0}else if(typeof t==="string"){const e=n.decodeAddress(t);this.nativeCol=e.col+r;this.nativeColOff=0;this.nativeRow=e.row+r;this.nativeRowOff=0}else if(t.nativeCol!==undefined){this.nativeCol=t.nativeCol||0;this.nativeColOff=t.nativeColOff||0;this.nativeRow=t.nativeRow||0;this.nativeRowOff=t.nativeRowOff||0}else if(t.col!==undefined){this.col=t.col+r;this.row=t.row+r}else{this.nativeCol=0;this.nativeColOff=0;this.nativeRow=0;this.nativeRowOff=0}}static asInstance(e){return e instanceof Anchor||e==null?e:new Anchor(e)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(e){this.nativeCol=Math.floor(e);this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(e){this.nativeRow=Math.floor(e);this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(this.worksheet.getColumn(this.nativeCol+1).width*1e4):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(this.worksheet.getRow(this.nativeRow+1).height*1e4):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(e){this.nativeCol=e.nativeCol;this.nativeColOff=e.nativeColOff;this.nativeRow=e.nativeRow;this.nativeRowOff=e.nativeRowOff}}e.exports=Anchor},45858:function(e,t,r){const n=r(25646);const i=r(10642);const s=r(34244);const{slideFormula:o}=r(52096);const c=r(56679);class Cell{constructor(e,t,r){if(!e||!t){throw new Error("A Cell needs a Row")}this._row=e;this._column=t;n.validateAddress(r);this._address=r;this._value=h.create(Cell.Types.Null,this);this.style=this._mergeStyle(e.style,t.style,{});this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style;delete this._value;delete this._row;delete this._column;delete this._address}get numFmt(){return this.style.numFmt}set numFmt(e){this.style.numFmt=e}get font(){return this.style.font}set font(e){this.style.font=e}get alignment(){return this.style.alignment}set alignment(e){this.style.alignment=e}get border(){return this.style.border}set border(e){this.style.border=e}get fill(){return this.style.fill}set fill(e){this.style.fill=e}get protection(){return this.style.protection}set protection(e){this.style.protection=e}_mergeStyle(e,t,r){const n=e&&e.numFmt||t&&t.numFmt;if(n)r.numFmt=n;const i=e&&e.font||t&&t.font;if(i)r.font=i;const s=e&&e.alignment||t&&t.alignment;if(s)r.alignment=s;const o=e&&e.border||t&&t.border;if(o)r.border=o;const c=e&&e.fill||t&&t.fill;if(c)r.fill=c;const h=e&&e.protection||t&&t.protection;if(h)r.protection=h;return r}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===Cell.Types.Merge}merge(e,t){this._value.release();this._value=h.create(Cell.Types.Merge,this,e);if(!t){this.style=e.style}}unmerge(){if(this.type===Cell.Types.Merge){this._value.release();this._value=h.create(Cell.Types.Null,this);this.style=this._mergeStyle(this._row.style,this._column.style,{})}}isMergedTo(e){if(this._value.type!==Cell.Types.Merge)return false;return this._value.isMergedTo(e)}get master(){if(this.type===Cell.Types.Merge){return this._value.master}return this}get isHyperlink(){return this._value.type===Cell.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(e){if(this.type===Cell.Types.Merge){this._value.master.value=e;return}this._value.release();this._value=h.create(h.getType(e),this,e)}get note(){return this._comment&&this._comment.note}set note(e){this._comment=new c(e)}get text(){return this._value.toString()}get html(){return i.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(e){if(this.type===Cell.Types.String){this._value=h.create(Cell.Types.Hyperlink,this,{text:this._value.value,hyperlink:e})}}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:e}=this._row;return{sheetName:e.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(e){this.names=[e]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(e){const{definedNames:t}=this.workbook;t.removeAllNames(this.fullAddress);e.forEach((e=>{t.addEx(this.fullAddress,e)}))}addName(e){this.workbook.definedNames.addEx(this.fullAddress,e)}removeName(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(e){this._dataValidations.add(this.address,e)}get model(){const{model:e}=this._value;e.style=this.style;if(this._comment){e.comment=this._comment.model}return e}set model(e){this._value.release();this._value=h.create(e.type,this);this._value.model=e;if(e.comment){switch(e.comment.type){case"note":this._comment=c.fromModel(e.comment);break}}if(e.style){this.style=e.style}else{this.style={}}}}Cell.Types=s.ValueType;class NullValue{constructor(e){this.model={address:e.address,type:Cell.Types.Null}}get value(){return null}set value(e){}get type(){return Cell.Types.Null}get effectiveType(){return Cell.Types.Null}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){}toString(){return""}}class NumberValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Number,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.Number}get effectiveType(){return Cell.Types.Number}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class StringValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.String}get effectiveType(){return Cell.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}class RichTextValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}toString(){return this.model.value.richText.map((e=>e.text)).join("")}get type(){return Cell.Types.RichText}get effectiveType(){return Cell.Types.RichText}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}class DateValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Date,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.Date}get effectiveType(){return Cell.Types.Date}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}class HyperlinkValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Hyperlink,text:t?t.text:undefined,hyperlink:t?t.hyperlink:undefined};if(t&&t.tooltip){this.model.tooltip=t.tooltip}}get value(){const e={text:this.model.text,hyperlink:this.model.hyperlink};if(this.model.tooltip){e.tooltip=this.model.tooltip}return e}set value(e){this.model={text:e.text,hyperlink:e.hyperlink};if(e.tooltip){this.model.tooltip=e.tooltip}}get text(){return this.model.text}set text(e){this.model.text=e}get hyperlink(){return this.model.hyperlink}set hyperlink(e){this.model.hyperlink=e}get type(){return Cell.Types.Hyperlink}get effectiveType(){return Cell.Types.Hyperlink}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}class MergeValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Merge,master:t?t.address:undefined};this._master=t;if(t){t.addMergeRef()}}get value(){return this._master.value}set value(e){if(e instanceof Cell){if(this._master){this._master.releaseMergeRef()}e.addMergeRef();this._master=e}else{this._master.value=e}}isMergedTo(e){return e===this._master}get master(){return this._master}get type(){return Cell.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}class FormulaValue{constructor(e,t){this.cell=e;this.model={address:e.address,type:Cell.Types.Formula,shareType:t?t.shareType:undefined,ref:t?t.ref:undefined,formula:t?t.formula:undefined,sharedFormula:t?t.sharedFormula:undefined,result:t?t.result:undefined}}_copyModel(e){const t={};const cp=r=>{const n=e[r];if(n){t[r]=n}};cp("formula");cp("result");cp("ref");cp("shareType");cp("sharedFormula");return t}get value(){return this._copyModel(this.model)}set value(e){this.model=this._copyModel(e)}validate(e){switch(h.getType(e)){case Cell.Types.Null:case Cell.Types.String:case Cell.Types.Number:case Cell.Types.Date:break;case Cell.Types.Hyperlink:case Cell.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){const e=this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g);const t=this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g);return{ranges:e,cells:t}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(e){this.model.formula=e}get formulaType(){if(this.model.formula){return s.FormulaType.Master}if(this.model.sharedFormula){return s.FormulaType.Shared}return s.FormulaType.None}get result(){return this.model.result}set result(e){this.model.result=e}get type(){return Cell.Types.Formula}get effectiveType(){const e=this.model.result;if(e===null||e===undefined){return s.ValueType.Null}if(e instanceof String||typeof e==="string"){return s.ValueType.String}if(typeof e==="number"){return s.ValueType.Number}if(e instanceof Date){return s.ValueType.Date}if(e.text&&e.hyperlink){return s.ValueType.Hyperlink}if(e.formula){return s.ValueType.Formula}return s.ValueType.Null}get address(){return this.model.address}set address(e){this.model.address=e}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:e}=this.cell;const t=e.findCell(this.model.sharedFormula);this._translatedFormula=t&&o(t.formula,t.address,this.model.address)}return this._translatedFormula}toCsvString(){return`${this.model.result||""}`}release(){}toString(){return this.model.result?this.model.result.toString():""}}class SharedStringValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.SharedString,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.SharedString}get effectiveType(){return Cell.Types.SharedString}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class BooleanValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Boolean,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.Boolean}get effectiveType(){return Cell.Types.Boolean}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}class ErrorValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.Error,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return Cell.Types.Error}get effectiveType(){return Cell.Types.Error}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}class JSONValue{constructor(e,t){this.model={address:e.address,type:Cell.Types.String,value:JSON.stringify(t),rawValue:t}}get value(){return this.model.rawValue}set value(e){this.model.rawValue=e;this.model.value=JSON.stringify(e)}get type(){return Cell.Types.String}get effectiveType(){return Cell.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}const h={getType(e){if(e===null||e===undefined){return Cell.Types.Null}if(e instanceof String||typeof e==="string"){return Cell.Types.String}if(typeof e==="number"){return Cell.Types.Number}if(typeof e==="boolean"){return Cell.Types.Boolean}if(e instanceof Date){return Cell.Types.Date}if(e.text&&e.hyperlink){return Cell.Types.Hyperlink}if(e.formula||e.sharedFormula){return Cell.Types.Formula}if(e.richText){return Cell.Types.RichText}if(e.sharedString){return Cell.Types.SharedString}if(e.error){return Cell.Types.Error}return Cell.Types.JSON},types:[{t:Cell.Types.Null,f:NullValue},{t:Cell.Types.Number,f:NumberValue},{t:Cell.Types.String,f:StringValue},{t:Cell.Types.Date,f:DateValue},{t:Cell.Types.Hyperlink,f:HyperlinkValue},{t:Cell.Types.Formula,f:FormulaValue},{t:Cell.Types.Merge,f:MergeValue},{t:Cell.Types.JSON,f:JSONValue},{t:Cell.Types.SharedString,f:SharedStringValue},{t:Cell.Types.RichText,f:RichTextValue},{t:Cell.Types.Boolean,f:BooleanValue},{t:Cell.Types.Error,f:ErrorValue}].reduce(((e,t)=>{e[t.t]=t.f;return e}),[]),create(e,t,r){const n=this.types[e];if(!n){throw new Error(`Could not create Value of type ${e}`)}return new n(t,r)}};e.exports=Cell},15984:function(e,t,r){"use strict";const n=r(10642);const i=r(34244);const s=r(25646);const o=9;class Column{constructor(e,t,r){this._worksheet=e;this._number=t;if(r!==false){this.defn=r}}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return s.n2l(this._number)}get isCustomWidth(){return this.width!==undefined&&this.width!==o}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){if(e){this.key=e.key;this.width=e.width!==undefined?e.width:o;this.outlineLevel=e.outlineLevel;if(e.style){this.style=e.style}else{this.style={}}this.header=e.header;this._hidden=!!e.hidden}else{delete this._header;delete this._key;delete this.width;this.style={};this.outlineLevel=0}}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){if(e!==undefined){this._header=e;this.headers.forEach(((e,t)=>{this._worksheet.getCell(t+1,this.number).value=e}))}else{this._header=undefined}}get key(){return this._key}set key(e){const t=this._key&&this._worksheet.getColumnKey(this._key);if(t===this){this._worksheet.deleteColumnKey(this._key)}this._key=e;if(e){this._worksheet.setColumnKey(this._key,this)}}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:undefined})}equivalentTo(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&n.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth){return false}if(this.hidden){return false}if(this.outlineLevel){return false}const e=this.style;if(e&&(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)){return false}return true}get headerCount(){return this.headers.length}eachCell(e,t){const r=this.number;if(!t){t=e;e=null}this._worksheet.eachRow(e,((e,n)=>{t(e.getCell(r),n)}))}get values(){const e=[];this.eachCell(((t,r)=>{if(t&&t.type!==i.ValueType.Null){e[r]=t.value}}));return e}set values(e){if(!e){return}const t=this.number;let r=0;if(e.hasOwnProperty("0")){r=1}e.forEach(((e,n)=>{this._worksheet.getCell(n+r,t).value=e}))}_applyStyle(e,t){this.style[e]=t;this.eachCell((r=>{r[e]=t}));return t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const t=[];let r=null;if(e){e.forEach(((e,n)=>{if(e.isDefault){if(r){r=null}}else if(!r||!e.equivalentTo(r)){r={min:n+1,max:n+1,width:e.width!==undefined?e.width:o,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed};t.push(r)}else{r.max=n+1}}))}return t.length?t:undefined}static fromModel(e,t){t=t||[];const r=[];let n=1;let i=0;t=t.sort((function(e,t){return e.min-t.min}));while(i<t.length){const s=t[i++];while(n<s.min){r.push(new Column(e,n++))}while(n<=s.max){r.push(new Column(e,n++,s))}}return r.length?r:null}}e.exports=Column},67013:function(e){class DataValidations{constructor(e){this.model=e||{}}add(e,t){return this.model[e]=t}find(e){return this.model[e]}remove(e){this.model[e]=undefined}}e.exports=DataValidations},31052:function(e,t,r){"use strict";const n=r(10642);const i=r(25646);const s=r(16609);const o=r(29146);const c=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;class DefinedNames{constructor(){this.matrixMap={}}getMatrix(e){const t=this.matrixMap[e]||(this.matrixMap[e]=new s);return t}add(e,t){const r=i.decodeEx(e);this.addEx(r,t)}addEx(e,t){const r=this.getMatrix(t);if(e.top){for(let t=e.left;t<=e.right;t++){for(let n=e.top;n<=e.bottom;n++){const s={sheetName:e.sheetName,address:i.n2l(t)+n,row:n,col:t};r.addCellEx(s)}}}else{r.addCellEx(e)}}remove(e,t){const r=i.decodeEx(e);this.removeEx(r,t)}removeEx(e,t){const r=this.getMatrix(t);r.removeCellEx(e)}removeAllNames(e){n.each(this.matrixMap,(t=>{t.removeCellEx(e)}))}forEach(e){n.each(this.matrixMap,((t,r)=>{t.forEach((t=>{e(r,t)}))}))}getNames(e){return this.getNamesEx(i.decodeEx(e))}getNamesEx(e){return n.map(this.matrixMap,((t,r)=>t.findCellEx(e)&&r)).filter(Boolean)}_explore(e,t){t.mark=false;const{sheetName:r}=t;const n=new o(t.row,t.col,t.row,t.col,r);let i;let s;function vGrow(i,s){const o=e.findCellAt(r,i,t.col);if(!o||!o.mark){return false}n[s]=i;o.mark=false;return true}for(s=t.row-1;vGrow(s,"top");s--);for(s=t.row+1;vGrow(s,"bottom");s++);function hGrow(t,i){const o=[];for(s=n.top;s<=n.bottom;s++){const n=e.findCellAt(r,s,t);if(n&&n.mark){o.push(n)}else{return false}}n[i]=t;for(let e=0;e<o.length;e++){o[e].mark=false}return true}for(i=t.col-1;hGrow(i,"left");i--);for(i=t.col+1;hGrow(i,"right");i++);return n}getRanges(e,t){t=t||this.matrixMap[e];if(!t){return{name:e,ranges:[]}}t.forEach((e=>{e.mark=true}));const r=t.map((e=>e.mark&&this._explore(t,e))).filter(Boolean).map((e=>e.$shortRange));return{name:e,ranges:r}}normaliseMatrix(e,t){e.forEachInSheet(t,((e,t,r)=>{if(e){if(e.row!==t||e.col!==r){e.row=t;e.col=r;e.address=i.n2l(r)+t}}}))}spliceRows(e,t,r,i){n.each(this.matrixMap,(n=>{n.spliceRows(e,t,r,i);this.normaliseMatrix(n,e)}))}spliceColumns(e,t,r,i){n.each(this.matrixMap,(n=>{n.spliceColumns(e,t,r,i);this.normaliseMatrix(n,e)}))}get model(){return n.map(this.matrixMap,((e,t)=>this.getRanges(t,e))).filter((e=>e.ranges.length))}set model(e){const t=this.matrixMap={};e.forEach((e=>{const r=t[e.name]=new s;e.ranges.forEach((e=>{if(c.test(e.split("!").pop()||"")){r.addCell(e)}}))}))}}e.exports=DefinedNames},34244:function(e){"use strict";e.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},35476:function(e,t,r){const n=r(25646);const i=r(13988);class Image{constructor(e,t){this.worksheet=e;this.model=t}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model({type:e,imageId:t,range:r,hyperlinks:s}){this.type=e;this.imageId=t;if(e==="image"){if(typeof r==="string"){const e=n.decode(r);this.range={tl:new i(this.worksheet,{col:e.left,row:e.top},-1),br:new i(this.worksheet,{col:e.right,row:e.bottom},0),editAs:"oneCell"}}else{this.range={tl:new i(this.worksheet,r.tl,0),br:r.br&&new i(this.worksheet,r.br,0),ext:r.ext,editAs:r.editAs,hyperlinks:s||r.hyperlinks}}}}}e.exports=Image},4465:function(e,t,r){"use strict";const n=r(76247);class ModelContainer{constructor(e){this.model=e}get xlsx(){if(!this._xlsx){this._xlsx=new n(this)}return this._xlsx}}e.exports=ModelContainer},56679:function(e,t,r){const n=r(10642);class Note{constructor(e){this.note=e}get model(){let e=null;switch(typeof this.note){case"string":e={type:"note",note:{texts:[{text:this.note}]}};break;default:e={type:"note",note:this.note};break}return n.deepMerge({},Note.DEFAULT_CONFIGS,e)}set model(e){const{note:t}=e;const{texts:r}=t;if(r.length===1&&Object.keys(r[0]).length===1){this.note=r[0].text}else{this.note=t}}static fromModel(e){const t=new Note;t.model=e;return t}}Note.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}};e.exports=Note},29146:function(e,t,r){const n=r(25646);class Range{constructor(){this.decode(arguments)}setTLBR(e,t,r,i,s){if(arguments.length<4){const i=n.decodeAddress(e);const o=n.decodeAddress(t);this.model={top:Math.min(i.row,o.row),left:Math.min(i.col,o.col),bottom:Math.max(i.row,o.row),right:Math.max(i.col,o.col),sheetName:r};this.setTLBR(i.row,i.col,o.row,o.col,s)}else{this.model={top:Math.min(e,r),left:Math.min(t,i),bottom:Math.max(e,r),right:Math.max(t,i),sheetName:s}}}decode(e){switch(e.length){case 5:this.setTLBR(e[0],e[1],e[2],e[3],e[4]);break;case 4:this.setTLBR(e[0],e[1],e[2],e[3]);break;case 3:this.setTLBR(e[0],e[1],e[2]);break;case 2:this.setTLBR(e[0],e[1]);break;case 1:{const t=e[0];if(t instanceof Range){this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName}}else if(t instanceof Array){this.decode(t)}else if(t.top&&t.left&&t.bottom&&t.right){this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName}}else{const e=n.decodeEx(t);if(e.top){this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}}else{this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error(`Invalid number of arguments to _getDimensions() - ${e.length}`)}}get top(){return this.model.top||1}set top(e){this.model.top=e}get left(){return this.model.left||1}set left(e){this.model.left=e}get bottom(){return this.model.bottom||1}set bottom(e){this.model.bottom=e}get right(){return this.model.right||1}set right(e){this.model.right=e}get sheetName(){return this.model.sheetName}set sheetName(e){this.model.sheetName=e}get _serialisedSheetName(){const{sheetName:e}=this.model;if(e){if(/^[a-zA-Z0-9]*$/.test(e)){return`${e}!`}return`'${e}'!`}return""}expand(e,t,r,n){if(!this.model.top||e<this.top)this.top=e;if(!this.model.left||t<this.left)this.left=t;if(!this.model.bottom||r>this.bottom)this.bottom=r;if(!this.model.right||n>this.right)this.right=n}expandRow(e){if(e){const{dimensions:t,number:r}=e;if(t){this.expand(r,t.min,r,t.max)}}}expandToAddress(e){const t=n.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}get tl(){return n.n2l(this.left)+this.top}get $t$l(){return`$${n.n2l(this.left)}$${this.top}`}get br(){return n.n2l(this.right)+this.bottom}get $b$r(){return`$${n.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(e){if(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName)return false;if(e.bottom<this.top)return false;if(e.top>this.bottom)return false;if(e.right<this.left)return false;if(e.left>this.right)return false;return true}contains(e){const t=n.decodeEx(e);return this.containsEx(t)}containsEx(e){if(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName)return false;return e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}forEachAddress(e){for(let t=this.left;t<=this.right;t++){for(let r=this.top;r<=this.bottom;r++){e(n.encodeAddress(r,t),r,t)}}}}e.exports=Range},54226:function(e,t,r){"use strict";const n=r(10642);const i=r(34244);const s=r(25646);const o=r(45858);class Row{constructor(e,t){this._worksheet=e;this._number=t;this._cells=[];this.style={};this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet;delete this._cells;delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let t=this._cells[e.col-1];if(!t){const r=this._worksheet.getColumn(e.col);t=new o(this,r,e.address);this._cells[e.col-1]=t}return t}getCell(e){if(typeof e==="string"){const t=this._worksheet.getColumnKey(e);if(t){e=t.number}else{e=s.l2n(e)}}return this._cells[e-1]||this.getCellEx({address:s.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,t,...r){const n=e+t;const i=r.length-t;const s=this._cells.length;let o;let c;let h;if(i<0){for(o=e+r.length;o<=s;o++){h=this._cells[o-1];c=this._cells[o-i-1];if(c){h=this.getCell(o);h.value=c.value;h.style=c.style;h._comment=c._comment}else if(h){h.value=null;h.style={};h._comment=undefined}}}else if(i>0){for(o=s;o>=n;o--){c=this._cells[o-1];if(c){h=this.getCell(o+i);h.value=c.value;h.style=c.style;h._comment=c._comment}else{this._cells[o+i-1]=undefined}}}for(o=0;o<r.length;o++){h=this.getCell(e+o);h.value=r[o];h.style={};h._comment=undefined}}eachCell(e,t){if(!t){t=e;e=null}if(e&&e.includeEmpty){const e=this._cells.length;for(let r=1;r<=e;r++){t(this.getCell(r),r)}}else{this._cells.forEach(((e,r)=>{if(e&&e.type!==i.ValueType.Null){t(e,r+1)}}))}}addPageBreak(e,t){const r=this._worksheet;const n=Math.max(0,e-1)||0;const i=Math.max(0,t-1)||16838;const s={id:this._number,max:i,man:1};if(n)s.min=n;r.rowBreaks.push(s)}get values(){const e=[];this._cells.forEach((t=>{if(t&&t.type!==i.ValueType.Null){e[t.col]=t.value}}));return e}set values(e){this._cells=[];if(!e){}else if(e instanceof Array){let t=0;if(e.hasOwnProperty("0")){t=1}e.forEach(((e,r)=>{if(e!==undefined){this.getCellEx({address:s.encodeAddress(this._number,r+t),row:this._number,col:r+t}).value=e}}))}else{this._worksheet.eachColumnKey(((t,r)=>{if(e[r]!==undefined){this.getCellEx({address:s.encodeAddress(this._number,t.number),row:this._number,col:t.number}).value=e[r]}}))}}get hasValues(){return n.some(this._cells,(e=>e&&e.type!==i.ValueType.Null))}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;this.eachCell((()=>{e++}));return e}get dimensions(){let e=0;let t=0;this._cells.forEach((r=>{if(r&&r.type!==i.ValueType.Null){if(!e||e>r.col){e=r.col}if(t<r.col){t=r.col}}}));return e>0?{min:e,max:t}:null}_applyStyle(e,t){this.style[e]=t;this._cells.forEach((r=>{if(r){r[e]=t}}));return t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let t=0;let r=0;this._cells.forEach((n=>{if(n){const i=n.model;if(i){if(!t||t>n.col){t=n.col}if(r<n.col){r=n.col}e.push(i)}}}));return this.height||e.length?{cells:e,number:this.number,min:t,max:r,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number){throw new Error("Invalid row number in model")}this._cells=[];let t;e.cells.forEach((e=>{switch(e.type){case o.Types.Merge:break;default:{let r;if(e.address){r=s.decodeAddress(e.address)}else if(t){const{row:e}=t;const n=t.col+1;r={row:e,col:n,address:s.encodeAddress(e,n),$col$row:`$${s.n2l(n)}$${e}`}}t=r;const n=this.getCellEx(r);n.model=e;break}}}));if(e.height){this.height=e.height}else{delete this.height}this.hidden=e.hidden;this.outlineLevel=e.outlineLevel||0;this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}e.exports=Row},2526:function(e,t,r){const n=r(25646);class Column{constructor(e,t,r){this.table=e;this.column=t;this.index=r}_set(e,t){this.table.cacheState();this.column[e]=t}get name(){return this.column.name}set name(e){this._set("name",e)}get filterButton(){return this.column.filterButton}set filterButton(e){this.column.filterButton=e}get style(){return this.column.style}set style(e){this.column.style=e}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(e){this._set("totalsRowLabel",e)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(e){this._set("totalsRowFunction",e)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(e){this._set("totalsRowResult",e)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(e){this._set("totalsRowFormula",e)}}class Table{constructor(e,t){this.worksheet=e;if(t){this.table=t;this.validate();this.store()}}getFormula(e){switch(e.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${e.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${e.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${e.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${e.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${e.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${e.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${e.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${e.name}])`;case"custom":return e.totalsRowFormula;default:throw new Error(`Invalid Totals Row Function: ${e.totalsRowFunction}`)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:e}=this;const assign=(e,t,r)=>{if(e[t]===undefined){e[t]=r}};assign(e,"headerRow",true);assign(e,"totalsRow",false);assign(e,"style",{});assign(e.style,"theme","TableStyleMedium2");assign(e.style,"showFirstColumn",false);assign(e.style,"showLastColumn",false);assign(e.style,"showRowStripes",false);assign(e.style,"showColumnStripes",false);const assert=(e,t)=>{if(!e){throw new Error(t)}};assert(e.ref,"Table must have ref");assert(e.columns,"Table must have column definitions");assert(e.rows,"Table must have row definitions");e.tl=n.decodeAddress(e.ref);const{row:t,col:r}=e.tl;assert(t>0,"Table must be on valid row");assert(r>0,"Table must be on valid col");const{width:i,filterHeight:s,tableHeight:o}=this;e.autoFilterRef=n.encode(t,r,t+s-1,r+i-1);e.tableRef=n.encode(t,r,t+o-1,r+i-1);e.columns.forEach(((e,t)=>{assert(e.name,`Column ${t} must have a name`);if(t===0){assign(e,"totalsRowLabel","Total")}else{assign(e,"totalsRowFunction","none");e.totalsRowFormula=this.getFormula(e)}}))}store(){const assignStyle=(e,t)=>{if(t){Object.keys(t).forEach((r=>{e[r]=t[r]}))}};const{worksheet:e,table:t}=this;const{row:r,col:n}=t.tl;let i=0;if(t.headerRow){const s=e.getRow(r+i++);t.columns.forEach(((e,t)=>{const{style:r,name:i}=e;const o=s.getCell(n+t);o.value=i;assignStyle(o,r)}))}t.rows.forEach((s=>{const o=e.getRow(r+i++);s.forEach(((e,r)=>{const i=o.getCell(n+r);i.value=e;assignStyle(i,t.columns[r].style)}))}));if(t.totalsRow){const s=e.getRow(r+i++);t.columns.forEach(((e,t)=>{const r=s.getCell(n+t);if(t===0){r.value=e.totalsRowLabel}else{const t=this.getFormula(e);if(t){r.value={formula:e.totalsRowFormula,result:e.totalsRowResult}}else{r.value=null}}assignStyle(r,e.style)}))}}load(e){const{table:t}=this;const{row:r,col:n}=t.tl;let i=0;if(t.headerRow){const s=e.getRow(r+i++);t.columns.forEach(((e,t)=>{const r=s.getCell(n+t);r.value=e.name}))}t.rows.forEach((t=>{const s=e.getRow(r+i++);t.forEach(((e,t)=>{const r=s.getCell(n+t);r.value=e}))}));if(t.totalsRow){const s=e.getRow(r+i++);t.columns.forEach(((e,t)=>{const r=s.getCell(n+t);if(t===0){r.value=e.totalsRowLabel}else{const t=this.getFormula(e);if(t){r.value={formula:e.totalsRowFormula,result:e.totalsRowResult}}}}))}}get model(){return this.table}set model(e){this.table=e}cacheState(){if(!this._cache){this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight}}}commit(){if(!this._cache){return}this.validate();const e=n.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref){for(let t=0;t<this._cache.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++){const n=r.getCell(e.col+t);n.value=null}}}else{for(let t=this.tableHeight;t<this._cache.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++){const n=r.getCell(e.col+t);n.value=null}}for(let t=0;t<this.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=this.width;t<this._cache.width;t++){const n=r.getCell(e.col+t);n.value=null}}}this.store()}addRow(e,t){this.cacheState();if(t===undefined){this.table.rows.push(e)}else{this.table.rows.splice(t,0,e)}}removeRows(e,t=1){this.cacheState();this.table.rows.splice(e,t)}getColumn(e){const t=this.table.columns[e];return new Column(this,t,e)}addColumn(e,t,r){this.cacheState();if(r===undefined){this.table.columns.push(e);this.table.rows.forEach(((e,r)=>{e.push(t[r])}))}else{this.table.columns.splice(r,0,e);this.table.rows.forEach(((e,n)=>{e.splice(r,0,t[n])}))}}removeColumns(e,t=1){this.cacheState();this.table.columns.splice(e,t);this.table.rows.forEach((r=>{r.splice(e,t)}))}_assign(e,t,r){this.cacheState();e[t]=r}get ref(){return this.table.ref}set ref(e){this._assign(this.table,"ref",e)}get name(){return this.table.name}set name(e){this.table.name=e}get displayName(){return this.table.displyName||this.table.name}set displayNamename(e){this.table.displayName=e}get headerRow(){return this.table.headerRow}set headerRow(e){this._assign(this.table,"headerRow",e)}get totalsRow(){return this.table.totalsRow}set totalsRow(e){this._assign(this.table,"totalsRow",e)}get theme(){return this.table.style.name}set theme(e){this.table.style.name=e}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(e){this.table.style.showFirstColumn=e}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(e){this.table.style.showLastColumn=e}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(e){this.table.style.showRowStripes=e}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(e){this.table.style.showColumnStripes=e}}e.exports=Table},81516:function(e,t,r){"use strict";const n=r(49835);const i=r(31052);const s=r(76247);const o=r(20382);class Workbook{constructor(){this.category="";this.company="";this.created=new Date;this.description="";this.keywords="";this.manager="";this.modified=this.created;this.properties={};this.calcProperties={};this._worksheets=[];this.subject="";this.title="";this.views=[];this.media=[];this._definedNames=new i}get xlsx(){if(!this._xlsx)this._xlsx=new s(this);return this._xlsx}get csv(){if(!this._csv)this._csv=new o(this);return this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++){if(!this._worksheets[e]){return e}}return this._worksheets.length||1}addWorksheet(e,t){const r=this.nextId;if(t){if(typeof t==="string"){console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }');t={properties:{tabColor:{argb:t}}}}else if(t.argb||t.theme||t.indexed){console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }");t={properties:{tabColor:t}}}}const i=this._worksheets.reduce(((e,t)=>(t&&t.orderNo)>e?t.orderNo:e),0);const s=Object.assign({},t,{id:r,name:e,orderNo:i+1,workbook:this});const o=new n(s);this._worksheets[r]=o;return o}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const t=this.getWorksheet(e);if(t){t.destroy()}}getWorksheet(e){if(e===undefined){return this._worksheets.find(Boolean)}if(typeof e==="number"){return this._worksheets[e]}if(typeof e==="string"){return this._worksheets.find((t=>t&&t.name===e))}return undefined}get worksheets(){return this._worksheets.slice(1).sort(((e,t)=>e.orderNo-t.orderNo)).filter(Boolean)}eachSheet(e){this.worksheets.forEach((t=>{e(t,t.id)}))}get definedNames(){return this._definedNames}clearThemes(){this._themes=undefined}addImage(e){const t=this.media.length;this.media.push(Object.assign({},e,{type:"image"}));return t}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map((e=>e.model)),sheets:this.worksheets.map((e=>e.model)).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator;this.lastModifiedBy=e.lastModifiedBy;this.lastPrinted=e.lastPrinted;this.created=e.created;this.modified=e.modified;this.company=e.company;this.manager=e.manager;this.title=e.title;this.subject=e.subject;this.keywords=e.keywords;this.category=e.category;this.description=e.description;this.language=e.language;this.revision=e.revision;this.contentStatus=e.contentStatus;this.properties=e.properties;this.calcProperties=e.calcProperties;this._worksheets=[];e.worksheets.forEach((t=>{const{id:r,name:i,state:s}=t;const o=e.sheets&&e.sheets.findIndex((e=>e.id===r));const c=this._worksheets[r]=new n({id:r,name:i,orderNo:o,state:s,workbook:this});c.model=t}));this._definedNames.model=e.definedNames;this.views=e.views;this._themes=e.themes;this.media=e.media||[]}}e.exports=Workbook},49835:function(e,t,r){const n=r(10642);const i=r(25646);const s=r(29146);const o=r(54226);const c=r(15984);const h=r(34244);const p=r(35476);const g=r(2526);const y=r(67013);const b=r(93653);const{copyStyle:v}=r(6577);class Worksheet{constructor(e){e=e||{};this._workbook=e.workbook;this.id=e.id;this.orderNo=e.orderNo;this.name=e.name;this.state=e.state||"visible";this._rows=[];this._columns=null;this._keys={};this._merges={};this.rowBreaks=[];this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},e.properties);this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!!(e.pageSetup&&(e.pageSetup.fitToWidth||e.pageSetup.fitToHeight)&&!e.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:false,draft:false,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:undefined,showRowColHeaders:false,showGridLines:false,firstPageNumber:undefined,horizontalCentered:false,verticalCentered:false,rowBreaks:null,colBreaks:null},e.pageSetup);this.headerFooter=Object.assign({},{differentFirst:false,differentOddEven:false,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter);this.dataValidations=new y;this.views=e.views||[];this.autoFilter=e.autoFilter||null;this._media=[];this.sheetProtection=null;this.tables={};this.conditionalFormattings=[]}get name(){return this._name}set name(e){if(e===undefined){e=`sheet${this.id}`}if(this._name===e)return;if(typeof e!=="string"){throw new Error("The name has to be a string.")}if(e===""){throw new Error("The name can't be empty.")}if(e==="History"){throw new Error('The name "History" is protected. Please use a different name.')}if(/[*?:/\\[\]]/.test(e)){throw new Error(`Worksheet name ${e} cannot include any of the following characters: * ? : \\ / [ ]`)}if(/(^')|('$)/.test(e)){throw new Error(`The first or last character of worksheet name cannot be a single quotation mark: ${e}`)}if(e&&e.length>31){console.warn(`Worksheet name ${e} exceeds 31 chars. This will be truncated`);e=e.substring(0,31)}if(this._workbook._worksheets.find((t=>t&&t.name.toLowerCase()===e.toLowerCase()))){throw new Error(`Worksheet name already exists: ${e}`)}this._name=e}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const e=new s;this._rows.forEach((t=>{if(t){const r=t.dimensions;if(r){e.expand(t.number,r.min,t.number,r.max)}}}));return e}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce(((e,t)=>{const r=t.header&&1||t.headers&&t.headers.length||0;return Math.max(e,r)}),0);let t=1;const r=this._columns=[];e.forEach((e=>{const n=new c(this,t++,false);r.push(n);n.defn=e}))}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){n.each(this._keys,e)}getColumn(e){if(typeof e==="string"){const t=this._keys[e];if(t)return t;e=i.l2n(e)}if(!this._columns){this._columns=[]}if(e>this._columns.length){let t=this._columns.length+1;while(t<=e){this._columns.push(new c(this,t++))}}return this._columns[e-1]}spliceColumns(e,t,...r){const n=this._rows;const i=n.length;if(r.length>0){for(let n=0;n<i;n++){const i=[e,t];r.forEach((e=>{i.push(e[n]||null)}));const s=this.getRow(n+1);s.splice.apply(s,i)}}else{this._rows.forEach((r=>{if(r){r.splice(e,t)}}))}const s=r.length-t;const o=e+t;const c=this._columns.length;if(s<0){for(let t=e+r.length;t<=c;t++){this.getColumn(t).defn=this.getColumn(t-s).defn}}else if(s>0){for(let e=c;e>=o;e--){this.getColumn(e+s).defn=this.getColumn(e).defn}}for(let t=e;t<e+r.length;t++){this.getColumn(t).defn=null}this.workbook.definedNames.spliceColumns(this.name,e,t,r.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let e=0;this.eachRow((t=>{e=Math.max(e,t.cellCount)}));return e}get actualColumnCount(){const e=[];let t=0;this.eachRow((r=>{r.eachCell((({col:r})=>{if(!e[r]){e[r]=true;t++}}))}));return t}_commitRow(){}get _lastRowNumber(){const e=this._rows;let t=e.length;while(t>0&&e[t-1]===undefined){t--}return t}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length){return this._rows[this._rows.length-1]}return undefined}findRow(e){return this._rows[e-1]}findRows(e,t){return this._rows.slice(e-1,e-1+t)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let e=0;this.eachRow((()=>{e++}));return e}getRow(e){let t=this._rows[e-1];if(!t){t=this._rows[e-1]=new o(this,e)}return t}getRows(e,t){if(t<1)return undefined;const r=[];for(let n=e;n<e+t;n++){r.push(this.getRow(n))}return r}addRow(e,t="n"){const r=this._nextRow;const n=this.getRow(r);n.values=e;this._setStyleOption(r,t[0]==="i"?t:"n");return n}addRows(e,t="n"){const r=[];e.forEach((e=>{r.push(this.addRow(e,t))}));return r}insertRow(e,t,r="n"){this.spliceRows(e,0,t);this._setStyleOption(e,r);return this.getRow(e)}insertRows(e,t,r="n"){this.spliceRows(e,0,...t);if(r!=="n"){for(let n=0;n<t.length;n++){if(r[0]==="o"&&this.findRow(t.length+e+n)!==undefined){this._copyStyle(t.length+e+n,e+n,r[1]==="+")}else if(r[0]==="i"&&this.findRow(e-1)!==undefined){this._copyStyle(e-1,e+n,r[1]==="+")}}}return this.getRows(e,t.length)}_setStyleOption(e,t="n"){if(t[0]==="o"&&this.findRow(e+1)!==undefined){this._copyStyle(e+1,e,t[1]==="+")}else if(t[0]==="i"&&this.findRow(e-1)!==undefined){this._copyStyle(e-1,e,t[1]==="+")}}_copyStyle(e,t,r=false){const n=this.getRow(e);const i=this.getRow(t);i.style=v(n.style);n.eachCell({includeEmpty:r},((e,t)=>{i.getCell(t).style=v(e.style)}));i.height=n.height}duplicateRow(e,t,r=false){const n=this._rows[e-1];const i=new Array(t).fill(n.values);this.spliceRows(e+1,r?0:t,...i);for(let r=0;r<t;r++){const t=this._rows[e+r];t.style=n.style;t.height=n.height;n.eachCell({includeEmpty:true},((e,r)=>{t.getCell(r).style=e.style}))}}spliceRows(e,t,...r){const n=e+t;const i=r.length;const s=i-t;const o=this._rows.length;let c;let h;if(s<0){if(e===o){this._rows[o-1]=undefined}for(c=n;c<=o;c++){h=this._rows[c-1];if(h){const e=this.getRow(c+s);e.values=h.values;e.style=h.style;e.height=h.height;h.eachCell({includeEmpty:true},((t,r)=>{e.getCell(r).style=t.style}));this._rows[c-1]=undefined}else{this._rows[c+s-1]=undefined}}}else if(s>0){for(c=o;c>=n;c--){h=this._rows[c-1];if(h){const e=this.getRow(c+s);e.values=h.values;e.style=h.style;e.height=h.height;h.eachCell({includeEmpty:true},((t,r)=>{e.getCell(r).style=t.style;if(t._value.constructor.name==="MergeValue"){const e=this.getRow(t._row._number+i).getCell(r);const n=t._value._master;const s=this.getRow(n._row._number+i).getCell(n._column._number);e.merge(s)}}))}else{this._rows[c+s-1]=undefined}}}for(c=0;c<i;c++){const t=this.getRow(e+c);t.style={};t.values=r[c]}this.workbook.definedNames.spliceRows(this.name,e,t,i)}eachRow(e,t){if(!t){t=e;e=undefined}if(e&&e.includeEmpty){const e=this._rows.length;for(let r=1;r<=e;r++){t(this.getRow(r),r)}}else{this._rows.forEach((e=>{if(e&&e.hasValues){t(e,e.number)}}))}}getSheetValues(){const e=[];this._rows.forEach((t=>{if(t){e[t.number]=t.values}}));return e}findCell(e,t){const r=i.getAddress(e,t);const n=this._rows[r.row-1];return n?n.findCell(r.col):undefined}getCell(e,t){const r=i.getAddress(e,t);const n=this.getRow(r.row);return n.getCellEx(r)}mergeCells(...e){const t=new s(e);this._mergeCellsInternal(t)}mergeCellsWithoutStyle(...e){const t=new s(e);this._mergeCellsInternal(t,true)}_mergeCellsInternal(e,t){n.each(this._merges,(t=>{if(t.intersects(e)){throw new Error("Cannot merge already merged cells")}}));const r=this.getCell(e.top,e.left);for(let n=e.top;n<=e.bottom;n++){for(let i=e.left;i<=e.right;i++){if(n>e.top||i>e.left){this.getCell(n,i).merge(r,t)}}}this._merges[r.address]=e}_unMergeMaster(e){const t=this._merges[e.address];if(t){for(let e=t.top;e<=t.bottom;e++){for(let r=t.left;r<=t.right;r++){this.getCell(e,r).unmerge()}}delete this._merges[e.address]}}get hasMerges(){return n.some(this._merges,Boolean)}unMergeCells(...e){const t=new s(e);for(let e=t.top;e<=t.bottom;e++){for(let r=t.left;r<=t.right;r++){const t=this.findCell(e,r);if(t){if(t.type===h.ValueType.Merge){this._unMergeMaster(t.master)}else if(this._merges[t.address]){this._unMergeMaster(t)}}}}}fillFormula(e,t,r,n="shared"){const s=i.decode(e);const{top:o,left:c,bottom:h,right:p}=s;const g=p-c+1;const y=i.encodeAddress(o,c);const b=n==="shared";let v;if(typeof r==="function"){v=r}else if(Array.isArray(r)){if(Array.isArray(r[0])){v=(e,t)=>r[e-o][t-c]}else{v=(e,t)=>r[(e-o)*g+(t-c)]}}else{v=()=>undefined}let _=true;for(let r=o;r<=h;r++){for(let i=c;i<=p;i++){if(_){this.getCell(r,i).value={shareType:n,formula:t,ref:e,result:v(r,i)};_=false}else{this.getCell(r,i).value=b?{sharedFormula:y,result:v(r,i)}:v(r,i)}}}}addImage(e,t){const r={type:"image",imageId:e,range:t};this._media.push(new p(this,r))}getImages(){return this._media.filter((e=>e.type==="image"))}addBackgroundImage(e){const t={type:"background",imageId:e};this._media.push(new p(this,t))}getBackgroundImageId(){const e=this._media.find((e=>e.type==="background"));return e&&e.imageId}protect(e,t){return new Promise((r=>{this.sheetProtection={sheet:true};if(t&&"spinCount"in t){t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5}if(e){this.sheetProtection.algorithmName="SHA-512";this.sheetProtection.saltValue=b.randomBytes(16).toString("base64");this.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5;this.sheetProtection.hashValue=b.convertPasswordToHash(e,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)}if(t){this.sheetProtection=Object.assign(this.sheetProtection,t);if(!e&&"spinCount"in t){delete this.sheetProtection.spinCount}}r()}))}unprotect(){this.sheetProtection=null}addTable(e){const t=new g(this,e);this.tables[e.name]=t;return t}getTable(e){return this.tables[e]}removeTable(e){delete this.tables[e]}getTables(){return Object.values(this.tables)}addConditionalFormatting(e){this.conditionalFormattings.push(e)}removeConditionalFormatting(e){if(typeof e==="number"){this.conditionalFormattings.splice(e,1)}else if(e instanceof Function){this.conditionalFormattings=this.conditionalFormattings.filter(e)}else{this.conditionalFormattings=[]}}get tabColor(){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor");return this.properties.tabColor}set tabColor(e){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor");this.properties.tabColor=e}get model(){const e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map((e=>e.model)),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map((e=>e.model)),conditionalFormattings:this.conditionalFormattings};e.cols=c.toModel(this.columns);const t=e.rows=[];const r=e.dimensions=new s;this._rows.forEach((e=>{const n=e&&e.model;if(n){r.expand(n.number,n.min,n.number,n.max);t.push(n)}}));e.merges=[];n.each(this._merges,(t=>{e.merges.push(t.range)}));return e}_parseRows(e){this._rows=[];e.rows.forEach((e=>{const t=new o(this,e.number);this._rows[t.number-1]=t;t.model=e}))}_parseMergeCells(e){n.each(e.mergeCells,(e=>{this.mergeCellsWithoutStyle(e)}))}set model(e){this.name=e.name;this._columns=c.fromModel(this,e.cols);this._parseRows(e);this._parseMergeCells(e);this.dataValidations=new y(e.dataValidations);this.properties=e.properties;this.pageSetup=e.pageSetup;this.headerFooter=e.headerFooter;this.views=e.views;this.autoFilter=e.autoFilter;this._media=e.media.map((e=>new p(this,e)));this.sheetProtection=e.sheetProtection;this.tables=e.tables.reduce(((e,t)=>{const r=new g;r.model=t;e[t.name]=r;return e}),{});this.conditionalFormattings=e.conditionalFormattings}}e.exports=Worksheet},90214:function(e,t,r){const n={Workbook:r(81516),ModelContainer:r(4465),stream:{xlsx:{WorkbookWriter:r(60602),WorkbookReader:r(74597)}}};Object.assign(n,r(34244));e.exports=n},97603:function(e,t,r){const{EventEmitter:n}=r(82361);const i=r(54928);const s=r(34244);const o=r(4076);class HyperlinkReader extends n{constructor({workbook:e,id:t,iterator:r,options:n}){super();this.workbook=e;this.id=t;this.iterator=r;this.options=n}get count(){return this.hyperlinks&&this.hyperlinks.length||0}each(e){return this.hyperlinks.forEach(e)}async read(){const{iterator:e,options:t}=this;let r=false;let n=null;switch(t.hyperlinks){case"emit":r=true;break;case"cache":this.hyperlinks=n={};break;default:break}if(!r&&!n){this.emit("finished");return}try{for await(const t of i(e)){for(const{eventType:e,value:i}of t){if(e==="opentag"){const e=i;if(e.name==="Relationship"){const t=e.attributes.Id;switch(e.attributes.Type){case o.Hyperlink:{const i={type:s.RelationshipType.Styles,rId:t,target:e.attributes.Target,targetMode:e.attributes.TargetMode};if(r){this.emit("hyperlink",i)}else{n[i.rId]=i}}break;default:break}}}}}this.emit("finished")}catch(e){this.emit("error",e)}}}e.exports=HyperlinkReader},69987:function(e,t,r){const n=r(15643);const i=r(4076);const s=r(25646);const o=r(42297);const c=r(48749);class SheetCommentsWriter{constructor(e,t,r){this.id=r.id;this.count=0;this._worksheet=e;this._workbook=r.workbook;this._sheetRelsWriter=t}get commentsStream(){if(!this._commentsStream){this._commentsStream=this._workbook._openStream(`/xl/comments${this.id}.xml`)}return this._commentsStream}get vmlStream(){if(!this._vmlStream){this._vmlStream=this._workbook._openStream(`xl/drawings/vmlDrawing${this.id}.vml`)}return this._vmlStream}_addRelationships(){const e={Type:i.Comments,Target:`../comments${this.id}.xml`};this._sheetRelsWriter.addRelationship(e);const t={Type:i.VmlDrawing,Target:`../drawings/vmlDrawing${this.id}.vml`};this.vmlRelId=this._sheetRelsWriter.addRelationship(t)}_addCommentRefs(){this._workbook.commentRefs.push({commentName:`comments${this.id}`,vmlDrawing:`vmlDrawing${this.id}`})}_writeOpen(){this.commentsStream.write('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+'<comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">'+"<authors><author>Author</author></authors>"+"<commentList>");this.vmlStream.write('<?xml version="1.0" encoding="UTF-8"?>'+'<xml xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:x="urn:schemas-microsoft-com:office:excel">'+'<o:shapelayout v:ext="edit">'+'<o:idmap v:ext="edit" data="1" />'+"</o:shapelayout>"+'<v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe">'+'<v:stroke joinstyle="miter" />'+'<v:path gradientshapeok="t" o:connecttype="rect" />'+"</v:shapetype>")}_writeComment(e,t){const r=new o;const i=new n;r.render(i,e);this.commentsStream.write(i.xml);const s=new c;const h=new n;s.render(h,e,t);this.vmlStream.write(h.xml)}_writeClose(){this.commentsStream.write("</commentList></comments>");this.vmlStream.write("</xml>")}addComments(e){if(e&&e.length){if(!this.startedData){this._worksheet.comments=[];this._writeOpen();this._addRelationships();this._addCommentRefs();this.startedData=true}e.forEach((e=>{e.refAddress=s.decodeAddress(e.ref)}));e.forEach((e=>{this._writeComment(e,this.count);this.count+=1}))}}commit(){if(this.count){this._writeClose();this.commentsStream.end();this.vmlStream.end()}}}e.exports=SheetCommentsWriter},30269:function(e,t,r){const n=r(55049);const i=r(4076);class HyperlinksProxy{constructor(e){this.writer=e}push(e){this.writer.addHyperlink(e)}}class SheetRelsWriter{constructor(e){this.id=e.id;this.count=0;this._hyperlinks=[];this._workbook=e.workbook}get stream(){if(!this._stream){this._stream=this._workbook._openStream(`/xl/worksheets/_rels/sheet${this.id}.xml.rels`)}return this._stream}get length(){return this._hyperlinks.length}each(e){return this._hyperlinks.forEach(e)}get hyperlinksProxy(){return this._hyperlinksProxy||(this._hyperlinksProxy=new HyperlinksProxy(this))}addHyperlink(e){const t={Target:e.target,Type:i.Hyperlink,TargetMode:"External"};const r=this._writeRelationship(t);this._hyperlinks.push({rId:r,address:e.address})}addMedia(e){return this._writeRelationship(e)}addRelationship(e){return this._writeRelationship(e)}commit(){if(this.count){this._writeClose();this.stream.end()}}_writeOpen(){this.stream.write(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">`)}_writeRelationship(e){if(!this.count){this._writeOpen()}const t=`rId${++this.count}`;if(e.TargetMode){this.stream.write(`<Relationship Id="${t}"`+` Type="${e.Type}"`+` Target="${n.xmlEncode(e.Target)}"`+` TargetMode="${e.TargetMode}"`+"/>")}else{this.stream.write(`<Relationship Id="${t}" Type="${e.Type}" Target="${e.Target}"/>`)}return t}_writeClose(){this.stream.write("</Relationships>")}}e.exports=SheetRelsWriter},74597:function(e,t,r){const n=r(57147);const{EventEmitter:i}=r(82361);const{PassThrough:s,Readable:o}=r(96377);const c=r(12781);const h=r(61639);const p=r(81941);const g=r(60507);const y=r(54928);const b=r(35064);const v=r(49112);const _=r(43905);const w=r(15658);const S=r(97603);p.setGracefulCleanup();class WorkbookReader extends i{constructor(e,t={}){super();this.input=e;this.options={worksheets:"emit",sharedStrings:"cache",hyperlinks:"ignore",styles:"ignore",entries:"ignore",...t};this.styles=new b;this.styles.init()}_getStream(e){if(e instanceof c.Readable||e instanceof o){return e}if(typeof e==="string"){return n.createReadStream(e)}throw new Error(`Could not recognise input: ${e}`)}async read(e,t){try{for await(const{eventType:r,value:n}of this.parse(e,t)){switch(r){case"shared-strings":this.emit(r,n);break;case"worksheet":this.emit(r,n);await n.read();break;case"hyperlinks":this.emit(r,n);break}}this.emit("end");this.emit("finished")}catch(e){this.emit("error",e)}}async*[Symbol.asyncIterator](){for await(const{eventType:e,value:t}of this.parse()){if(e==="worksheet"){yield t}}}async*parse(e,t){if(t)this.options=t;const r=this.stream=this._getStream(e||this.input);const i=h.Parse({forceStream:true});r.pipe(i);const o=[];for await(const e of g(i)){let t;let r;switch(e.path){case"_rels/.rels":break;case"xl/_rels/workbook.xml.rels":await this._parseRels(e);break;case"xl/workbook.xml":await this._parseWorkbook(e);break;case"xl/sharedStrings.xml":yield*this._parseSharedStrings(e);break;case"xl/styles.xml":await this._parseStyles(e);break;default:if(e.path.match(/xl\/worksheets\/sheet\d+[.]xml/)){t=e.path.match(/xl\/worksheets\/sheet(\d+)[.]xml/);r=t[1];if(this.sharedStrings&&this.workbookRels){yield*this._parseWorksheet(g(e),r)}else{await new Promise(((t,i)=>{p.file(((s,c,h,p)=>{if(s){return i(s)}o.push({sheetNo:r,path:c,tempFileCleanupCallback:p});const g=n.createWriteStream(c);g.on("error",i);e.pipe(g);return g.on("finish",(()=>t()))}))}))}}else if(e.path.match(/xl\/worksheets\/_rels\/sheet\d+[.]xml.rels/)){t=e.path.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/);r=t[1];yield*this._parseHyperlinks(g(e),r)}break}e.autodrain()}for(const{sheetNo:e,path:t,tempFileCleanupCallback:r}of o){let i=n.createReadStream(t);if(!i[Symbol.asyncIterator]){i=i.pipe(new s)}yield*this._parseWorksheet(i,e);r()}}_emitEntry(e){if(this.options.entries==="emit"){this.emit("entry",e)}}async _parseRels(e){const t=new _;this.workbookRels=await t.parseStream(g(e))}async _parseWorkbook(e){this._emitEntry({type:"workbook"});const t=new v;await t.parseStream(g(e));this.properties=t.map.workbookPr;this.model=t.model}async*_parseSharedStrings(e){this._emitEntry({type:"shared-strings"});switch(this.options.sharedStrings){case"cache":this.sharedStrings=[];break;case"emit":break;default:return}let t=null;let r=[];let n=0;let i=null;for await(const s of y(g(e))){for(const{eventType:e,value:o}of s){if(e==="opentag"){const e=o;switch(e.name){case"b":i=i||{};i.bold=true;break;case"charset":i=i||{};i.charset=parseInt(e.attributes.charset,10);break;case"color":i=i||{};i.color={};if(e.attributes.rgb){i.color.argb=e.attributes.argb}if(e.attributes.val){i.color.argb=e.attributes.val}if(e.attributes.theme){i.color.theme=e.attributes.theme}break;case"family":i=i||{};i.family=parseInt(e.attributes.val,10);break;case"i":i=i||{};i.italic=true;break;case"outline":i=i||{};i.outline=true;break;case"rFont":i=i||{};i.name=e.value;break;case"si":i=null;r=[];t=null;break;case"sz":i=i||{};i.size=parseInt(e.attributes.val,10);break;case"strike":break;case"t":t=null;break;case"u":i=i||{};i.underline=true;break;case"vertAlign":i=i||{};i.vertAlign=e.attributes.val;break}}else if(e==="text"){t=t?t+o:o}else if(e==="closetag"){const e=o;switch(e.name){case"r":r.push({font:i,text:t});i=null;t=null;break;case"si":if(this.options.sharedStrings==="cache"){this.sharedStrings.push(r.length?{richText:r}:t)}else if(this.options.sharedStrings==="emit"){yield{index:n++,text:r.length?{richText:r}:t}}r=[];i=null;t=null;break}}}}}async _parseStyles(e){this._emitEntry({type:"styles"});if(this.options.styles==="cache"){this.styles=new b;await this.styles.parseStream(g(e))}}*_parseWorksheet(e,t){this._emitEntry({type:"worksheet",id:t});const r=new w({workbook:this,id:t,iterator:e,options:this.options});const n=(this.workbookRels||[]).find((e=>e.Target===`worksheets/sheet${t}.xml`));const i=n&&(this.model.sheets||[]).find((e=>e.rId===n.Id));if(i){r.id=i.id;r.name=i.name;r.state=i.state}if(this.options.worksheets==="emit"){yield{eventType:"worksheet",value:r}}}*_parseHyperlinks(e,t){this._emitEntry({type:"hyperlinks",id:t});const r=new S({workbook:this,id:t,iterator:e,options:this.options});if(this.options.hyperlinks==="emit"){yield{eventType:"hyperlinks",value:r}}}}WorkbookReader.Options={worksheets:["emit","ignore"],sharedStrings:["cache","emit","ignore"],hyperlinks:["cache","emit","ignore"],styles:["cache","ignore"],entries:["emit","ignore"]};e.exports=WorkbookReader},60602:function(e,t,r){const n=r(57147);const i=r(43084);const s=r(42653);const o=r(4076);const c=r(35064);const h=r(80756);const p=r(31052);const g=r(86225);const y=r(43905);const b=r(61871);const v=r(79001);const _=r(49112);const w=r(20397);const S=r(29340);const k=r(67895);class WorkbookWriter{constructor(e){e=e||{};this.created=e.created||new Date;this.modified=e.modified||this.created;this.creator=e.creator||"ExcelJS";this.lastModifiedBy=e.lastModifiedBy||"ExcelJS";this.lastPrinted=e.lastPrinted;this.useSharedStrings=e.useSharedStrings||false;this.sharedStrings=new h;this.styles=e.useStyles?new c(true):new c.Mock(true);this._definedNames=new p;this._worksheets=[];this.views=[];this.zipOptions=e.zip;this.media=[];this.commentRefs=[];this.zip=i("zip",this.zipOptions);if(e.stream){this.stream=e.stream}else if(e.filename){this.stream=n.createWriteStream(e.filename)}else{this.stream=new s}this.zip.pipe(this.stream);this.promise=Promise.all([this.addThemes(),this.addOfficeRels()])}get definedNames(){return this._definedNames}_openStream(e){const t=new s({bufSize:65536,batch:true});this.zip.append(t,{name:e});t.on("finish",(()=>{t.emit("zipped")}));return t}_commitWorksheets(){const commitWorksheet=function(e){if(!e.committed){return new Promise((t=>{e.stream.on("zipped",(()=>{t()}));e.commit()}))}return Promise.resolve()};const e=this._worksheets.map(commitWorksheet);if(e.length){return Promise.all(e)}return Promise.resolve()}async commit(){await this.promise;await this.addMedia();await this._commitWorksheets();await Promise.all([this.addContentTypes(),this.addApp(),this.addCore(),this.addSharedStrings(),this.addStyles(),this.addWorkbookRels()]);await this.addWorkbook();return this._finalize()}get nextId(){let e;for(e=1;e<this._worksheets.length;e++){if(!this._worksheets[e]){return e}}return this._worksheets.length||1}addImage(e){const t=this.media.length;const r=Object.assign({},e,{type:"image",name:`image${t}.${e.extension}`});this.media.push(r);return t}getImage(e){return this.media[e]}addWorksheet(e,t){t=t||{};const r=t.useSharedStrings!==undefined?t.useSharedStrings:this.useSharedStrings;if(t.tabColor){console.trace("tabColor option has moved to { properties: tabColor: {...} }");t.properties=Object.assign({tabColor:t.tabColor},t.properties)}const n=this.nextId;e=e||`sheet${n}`;const i=new S({id:n,name:e,workbook:this,useSharedStrings:r,properties:t.properties,state:t.state,pageSetup:t.pageSetup,views:t.views,autoFilter:t.autoFilter,headerFooter:t.headerFooter});this._worksheets[n]=i;return i}getWorksheet(e){if(e===undefined){return this._worksheets.find((()=>true))}if(typeof e==="number"){return this._worksheets[e]}if(typeof e==="string"){return this._worksheets.find((t=>t&&t.name===e))}return undefined}addStyles(){return new Promise((e=>{this.zip.append(this.styles.xml,{name:"xl/styles.xml"});e()}))}addThemes(){return new Promise((e=>{this.zip.append(k,{name:"xl/theme/theme1.xml"});e()}))}addOfficeRels(){return new Promise((e=>{const t=new y;const r=t.toXml([{Id:"rId1",Type:o.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:o.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:o.ExtenderProperties,Target:"docProps/app.xml"}]);this.zip.append(r,{name:"/_rels/.rels"});e()}))}addContentTypes(){return new Promise((e=>{const t={worksheets:this._worksheets.filter(Boolean),sharedStrings:this.sharedStrings,commentRefs:this.commentRefs,media:this.media};const r=new b;const n=r.toXml(t);this.zip.append(n,{name:"[Content_Types].xml"});e()}))}addMedia(){return Promise.all(this.media.map((e=>{if(e.type==="image"){const t=`xl/media/${e.name}`;if(e.filename){return this.zip.file(e.filename,{name:t})}if(e.buffer){return this.zip.append(e.buffer,{name:t})}if(e.base64){const r=e.base64;const n=r.substring(r.indexOf(",")+1);return this.zip.append(n,{name:t,base64:true})}}throw new Error("Unsupported media")})))}addApp(){return new Promise((e=>{const t={worksheets:this._worksheets.filter(Boolean)};const r=new v;const n=r.toXml(t);this.zip.append(n,{name:"docProps/app.xml"});e()}))}addCore(){return new Promise((e=>{const t=new g;const r=t.toXml(this);this.zip.append(r,{name:"docProps/core.xml"});e()}))}addSharedStrings(){if(this.sharedStrings.count){return new Promise((e=>{const t=new w;const r=t.toXml(this.sharedStrings);this.zip.append(r,{name:"/xl/sharedStrings.xml"});e()}))}return Promise.resolve()}addWorkbookRels(){let e=1;const t=[{Id:`rId${e++}`,Type:o.Styles,Target:"styles.xml"},{Id:`rId${e++}`,Type:o.Theme,Target:"theme/theme1.xml"}];if(this.sharedStrings.count){t.push({Id:`rId${e++}`,Type:o.SharedStrings,Target:"sharedStrings.xml"})}this._worksheets.forEach((r=>{if(r){r.rId=`rId${e++}`;t.push({Id:r.rId,Type:o.Worksheet,Target:`worksheets/sheet${r.id}.xml`})}}));return new Promise((e=>{const r=new y;const n=r.toXml(t);this.zip.append(n,{name:"/xl/_rels/workbook.xml.rels"});e()}))}addWorkbook(){const{zip:e}=this;const t={worksheets:this._worksheets.filter(Boolean),definedNames:this._definedNames.model,views:this.views,properties:{},calcProperties:{}};return new Promise((r=>{const n=new _;n.prepare(t);e.append(n.toXml(t),{name:"/xl/workbook.xml"});r()}))}_finalize(){return new Promise(((e,t)=>{this.stream.on("error",t);this.stream.on("finish",(()=>{e(this)}));this.zip.on("error",t);this.zip.finalize()}))}}e.exports=WorkbookWriter},15658:function(e,t,r){const{EventEmitter:n}=r(82361);const i=r(54928);const s=r(10642);const o=r(55049);const c=r(25646);const h=r(29146);const p=r(54226);const g=r(15984);class WorksheetReader extends n{constructor({workbook:e,id:t,iterator:r,options:n}){super();this.workbook=e;this.id=t;this.iterator=r;this.options=n||{};this.name=`Sheet${this.id}`;this._columns=null;this._keys={};this._dimensions=new h}destroy(){throw new Error("Invalid Operation: destroy")}get dimensions(){return this._dimensions}get columns(){return this._columns}getColumn(e){if(typeof e==="string"){const t=this._keys[e];if(t){return t}e=c.l2n(e)}if(!this._columns){this._columns=[]}if(e>this._columns.length){let t=this._columns.length+1;while(t<=e){this._columns.push(new g(this,t++))}}return this._columns[e-1]}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){s.each(this._keys,e)}async read(){try{for await(const e of this.parse()){for(const{eventType:t,value:r}of e){this.emit(t,r)}}this.emit("finished")}catch(e){this.emit("error",e)}}async*[Symbol.asyncIterator](){for await(const e of this.parse()){for(const{eventType:t,value:r}of e){if(t==="row"){yield r}}}}async*parse(){const{iterator:e,options:t}=this;let r=false;let n=false;let s=null;switch(t.worksheets){case"emit":r=true;break;case"prep":break;default:break}switch(t.hyperlinks){case"emit":n=true;break;case"cache":this.hyperlinks=s={};break;default:break}if(!r&&!n&&!s){return}const{sharedStrings:h,styles:y,properties:b}=this.workbook;let v=false;let _=false;let w=false;let S=null;let k=null;let x=null;let E=null;for await(const t of i(e)){const e=[];for(const{eventType:i,value:R}of t){if(i==="opentag"){const t=R;if(r){switch(t.name){case"cols":v=true;S=[];break;case"sheetData":_=true;break;case"col":if(v){S.push({min:parseInt(t.attributes.min,10),max:parseInt(t.attributes.max,10),width:parseFloat(t.attributes.width),styleId:parseInt(t.attributes.style||"0",10)})}break;case"row":if(_){const e=parseInt(t.attributes.r,10);k=new p(this,e);if(t.attributes.ht){k.height=parseFloat(t.attributes.ht)}if(t.attributes.s){const e=parseInt(t.attributes.s,10);const r=y.getStyleModel(e);if(r){k.style=r}}}break;case"c":if(k){x={ref:t.attributes.r,s:parseInt(t.attributes.s,10),t:t.attributes.t}}break;case"f":if(x){E=x.f={text:""}}break;case"v":if(x){E=x.v={text:""}}break;case"is":case"t":if(x){E=x.v={text:""}}break;case"mergeCell":break;default:break}}if(n||s){switch(t.name){case"hyperlinks":w=true;break;case"hyperlink":if(w){const r={ref:t.attributes.ref,rId:t.attributes["r:id"]};if(n){e.push({eventType:"hyperlink",value:r})}else{s[r.ref]=r}}break;default:break}}}else if(i==="text"){if(r){if(E){E.text+=R}}}else if(i==="closetag"){const t=R;if(r){switch(t.name){case"cols":v=false;this._columns=g.fromModel(S);break;case"sheetData":_=false;break;case"row":this._dimensions.expandRow(k);e.push({eventType:"row",value:k});k=null;break;case"c":if(k&&x){const e=c.decodeAddress(x.ref);const t=k.getCell(e.col);if(x.s){const e=y.getStyleModel(x.s);if(e){t.style=e}}if(x.f){const e={formula:x.f.text};if(x.v){if(x.t==="str"){e.result=o.xmlDecode(x.v.text)}else{e.result=parseFloat(x.v.text)}}t.value=e}else if(x.v){switch(x.t){case"s":{const e=parseInt(x.v.text,10);if(h){t.value=h[e]}else{t.value={sharedString:e}}break}case"inlineStr":case"str":t.value=o.xmlDecode(x.v.text);break;case"e":t.value={error:x.v.text};break;case"b":t.value=parseInt(x.v.text,10)!==0;break;default:if(o.isDateFmt(t.numFmt)){t.value=o.excelToDate(parseFloat(x.v.text),b.model&&b.model.date1904)}else{t.value=parseFloat(x.v.text)}break}}if(s){const e=s[x.ref];if(e){t.text=t.value;t.value=undefined;t.hyperlink=e}}x=null}break;default:break}}if(n||s){switch(t.name){case"hyperlinks":w=false;break;default:break}}}}if(e.length>0){yield e}}}}e.exports=WorksheetReader},29340:function(e,t,r){const n=r(10642);const i=r(4076);const s=r(25646);const o=r(93653);const c=r(29146);const h=r(9345);const p=r(54226);const g=r(15984);const y=r(30269);const b=r(69987);const v=r(67013);const _=new h;const w=r(49526);const S=r(63258);const k=r(95740);const x=r(32601);const E=r(56379);const R=r(39818);const C=r(20699);const O=r(48830);const P=r(57715);const A=r(36649);const I=r(2229);const N=r(78066);const M=r(60843);const D=r(88362);const L=r(50941);const j=r(40691);const F={dataValidations:new S,sheetProperties:new k,sheetFormatProperties:new x,columns:new w({tag:"cols",length:false,childXform:new E}),row:new R,hyperlinks:new w({tag:"hyperlinks",length:false,childXform:new C}),sheetViews:new w({tag:"sheetViews",length:false,childXform:new O}),sheetProtection:new P,pageMargins:new A,pageSeteup:new I,autoFilter:new N,picture:new M,conditionalFormattings:new D,headerFooter:new L,rowBreaks:new j};class WorksheetWriter{constructor(e){this.id=e.id;this.name=e.name||`Sheet${this.id}`;this.state=e.state||"visible";this._rows=[];this._columns=null;this._keys={};this._merges=[];this._merges.add=function(){};this._sheetRelsWriter=new y(e);this._sheetCommentsWriter=new b(this,this._sheetRelsWriter,e);this._dimensions=new c;this._rowZero=1;this.committed=false;this.dataValidations=new v;this._formulae={};this._siFormulae=0;this.conditionalFormatting=[];this.rowBreaks=[];this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},e.properties);this.headerFooter=Object.assign({},{differentFirst:false,differentOddEven:false,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter);this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!!(e.pageSetup&&(e.pageSetup.fitToWidth||e.pageSetup.fitToHeight)&&!e.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:false,draft:false,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:undefined,showRowColHeaders:false,showGridLines:false,horizontalCentered:false,verticalCentered:false,rowBreaks:null,colBreaks:null},e.pageSetup);this.useSharedStrings=e.useSharedStrings||false;this._workbook=e.workbook;this.hasComments=false;this._views=e.views||[];this.autoFilter=e.autoFilter||null;this._media=[];this.sheetProtection=null;this._writeOpenWorksheet();this.startedData=false}get workbook(){return this._workbook}get stream(){if(!this._stream){this._stream=this._workbook._openStream(`/xl/worksheets/sheet${this.id}.xml`);this._stream.pause()}return this._stream}destroy(){throw new Error("Invalid Operation: destroy")}commit(){if(this.committed){return}this._rows.forEach((e=>{if(e){this._writeRow(e)}}));this._rows=null;if(!this.startedData){this._writeOpenSheetData()}this._writeCloseSheetData();this._writeAutoFilter();this._writeMergeCells();this._writeHyperlinks();this._writeConditionalFormatting();this._writeDataValidations();this._writeSheetProtection();this._writePageMargins();this._writePageSetup();this._writeBackground();this._writeHeaderFooter();this._writeRowBreaks();this._writeLegacyData();this._writeCloseWorksheet();this.stream.end();this._sheetCommentsWriter.commit();this._sheetRelsWriter.commit();this.committed=true}get dimensions(){return this._dimensions}get views(){return this._views}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce(((e,t)=>{const r=t.header&&1||t.headers&&t.headers.length||0;return Math.max(e,r)}),0);let t=1;const r=this._columns=[];e.forEach((e=>{const n=new g(this,t++,false);r.push(n);n.defn=e}))}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){n.each(this._keys,e)}getColumn(e){if(typeof e==="string"){const t=this._keys[e];if(t)return t;e=s.l2n(e)}if(!this._columns){this._columns=[]}if(e>this._columns.length){let t=this._columns.length+1;while(t<=e){this._columns.push(new g(this,t++))}}return this._columns[e-1]}get _nextRow(){return this._rowZero+this._rows.length}eachRow(e,t){if(!t){t=e;e=undefined}if(e&&e.includeEmpty){const e=this._nextRow;for(let r=this._rowZero;r<e;r++){t(this.getRow(r),r)}}else{this._rows.forEach((e=>{if(e.hasValues){t(e,e.number)}}))}}_commitRow(e){let t=false;while(this._rows.length&&!t){const r=this._rows.shift();this._rowZero++;if(r){this._writeRow(r);t=r.number===e.number;this._rowZero=r.number+1}}}get lastRow(){if(this._rows.length){return this._rows[this._rows.length-1]}return undefined}findRow(e){const t=e-this._rowZero;return this._rows[t]}getRow(e){const t=e-this._rowZero;if(t<0){throw new Error("Out of bounds: this row has been committed")}let r=this._rows[t];if(!r){this._rows[t]=r=new p(this,e)}return r}addRow(e){const t=new p(this,this._nextRow);this._rows[t.number-this._rowZero]=t;t.values=e;return t}findCell(e,t){const r=s.getAddress(e,t);const n=this.findRow(r.row);return n?n.findCell(r.column):undefined}getCell(e,t){const r=s.getAddress(e,t);const n=this.getRow(r.row);return n.getCellEx(r)}mergeCells(...e){const t=new c(e);this._merges.forEach((e=>{if(e.intersects(t)){throw new Error("Cannot merge already merged cells")}}));const r=this.getCell(t.top,t.left);for(let e=t.top;e<=t.bottom;e++){for(let n=t.left;n<=t.right;n++){if(e>t.top||n>t.left){this.getCell(e,n).merge(r)}}}this._merges.push(t)}addConditionalFormatting(e){this.conditionalFormatting.push(e)}removeConditionalFormatting(e){if(typeof e==="number"){this.conditionalFormatting.splice(e,1)}else if(e instanceof Function){this.conditionalFormatting=this.conditionalFormatting.filter(e)}else{this.conditionalFormatting=[]}}addBackgroundImage(e){this._background={imageId:e}}getBackgroundImageId(){return this._background&&this._background.imageId}protect(e,t){return new Promise((r=>{this.sheetProtection={sheet:true};if(t&&"spinCount"in t){t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5}if(e){this.sheetProtection.algorithmName="SHA-512";this.sheetProtection.saltValue=o.randomBytes(16).toString("base64");this.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5;this.sheetProtection.hashValue=o.convertPasswordToHash(e,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)}if(t){this.sheetProtection=Object.assign(this.sheetProtection,t);if(!e&&"spinCount"in t){delete this.sheetProtection.spinCount}}r()}))}unprotect(){this.sheetProtection=null}_write(e){_.reset();_.addText(e);this.stream.write(_)}_writeSheetProperties(e,t,r){const n={outlineProperties:t&&t.outlineProperties,tabColor:t&&t.tabColor,pageSetup:r&&r.fitToPage?{fitToPage:r.fitToPage}:undefined};e.addText(F.sheetProperties.toXml(n))}_writeSheetFormatProperties(e,t){const r=t?{defaultRowHeight:t.defaultRowHeight,dyDescent:t.dyDescent,outlineLevelCol:t.outlineLevelCol,outlineLevelRow:t.outlineLevelRow}:undefined;if(t.defaultColWidth){r.defaultColWidth=t.defaultColWidth}e.addText(F.sheetFormatProperties.toXml(r))}_writeOpenWorksheet(){_.reset();_.addText('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>');_.addText('<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"'+' xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"'+' xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"'+' mc:Ignorable="x14ac"'+' xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">');this._writeSheetProperties(_,this.properties,this.pageSetup);_.addText(F.sheetViews.toXml(this.views));this._writeSheetFormatProperties(_,this.properties);this.stream.write(_)}_writeColumns(){const e=g.toModel(this.columns);if(e){F.columns.prepare(e,{styles:this._workbook.styles});this.stream.write(F.columns.toXml(e))}}_writeOpenSheetData(){this._write("<sheetData>")}_writeRow(e){if(!this.startedData){this._writeColumns();this._writeOpenSheetData();this.startedData=true}if(e.hasValues||e.height){const{model:t}=e;const r={styles:this._workbook.styles,sharedStrings:this.useSharedStrings?this._workbook.sharedStrings:undefined,hyperlinks:this._sheetRelsWriter.hyperlinksProxy,merges:this._merges,formulae:this._formulae,siFormulae:this._siFormulae,comments:[]};F.row.prepare(t,r);this.stream.write(F.row.toXml(t));if(r.comments.length){this.hasComments=true;this._sheetCommentsWriter.addComments(r.comments)}}}_writeCloseSheetData(){this._write("</sheetData>")}_writeMergeCells(){if(this._merges.length){_.reset();_.addText(`<mergeCells count="${this._merges.length}">`);this._merges.forEach((e=>{_.addText(`<mergeCell ref="${e}"/>`)}));_.addText("</mergeCells>");this.stream.write(_)}}_writeHyperlinks(){this.stream.write(F.hyperlinks.toXml(this._sheetRelsWriter._hyperlinks))}_writeConditionalFormatting(){const e={styles:this._workbook.styles};F.conditionalFormattings.prepare(this.conditionalFormatting,e);this.stream.write(F.conditionalFormattings.toXml(this.conditionalFormatting))}_writeRowBreaks(){this.stream.write(F.rowBreaks.toXml(this.rowBreaks))}_writeDataValidations(){this.stream.write(F.dataValidations.toXml(this.dataValidations.model))}_writeSheetProtection(){this.stream.write(F.sheetProtection.toXml(this.sheetProtection))}_writePageMargins(){this.stream.write(F.pageMargins.toXml(this.pageSetup.margins))}_writePageSetup(){this.stream.write(F.pageSeteup.toXml(this.pageSetup))}_writeHeaderFooter(){this.stream.write(F.headerFooter.toXml(this.headerFooter))}_writeAutoFilter(){this.stream.write(F.autoFilter.toXml(this.autoFilter))}_writeBackground(){if(this._background){if(this._background.imageId!==undefined){const e=this._workbook.getImage(this._background.imageId);const t=this._sheetRelsWriter.addMedia({Target:`../media/${e.name}`,Type:i.Image});this._background={...this._background,rId:t}}this.stream.write(F.picture.toXml({rId:this._background.rId}))}}_writeLegacyData(){if(this.hasComments){_.reset();_.addText(`<legacyDrawing r:id="${this._sheetCommentsWriter.vmlRelId}"/>`);this.stream.write(_)}}_writeDimensions(){}_writeCloseWorksheet(){this._write("</worksheet>")}}e.exports=WorksheetWriter},94578:function(e,t){const r=typeof TextDecoder==="undefined"?null:new TextDecoder("utf-8");function bufferToString(e){if(typeof e==="string"){return e}if(r){return r.decode(e)}return e.toString()}t.bufferToString=bufferToString},89012:function(e,t,r){const n=typeof TextEncoder==="undefined"?null:new TextEncoder("utf-8");const{Buffer:i}=r(14300);function stringToBuffer(e){if(typeof e!=="string"){return e}if(n){return i.from(n.encode(e).buffer)}return i.from(e)}t.stringToBuffer=stringToBuffer},16609:function(e,t,r){const n=r(10642);const i=r(25646);class CellMatrix{constructor(e){this.template=e;this.sheets={}}addCell(e){this.addCellEx(i.decodeEx(e))}getCell(e){return this.findCellEx(i.decodeEx(e),true)}findCell(e){return this.findCellEx(i.decodeEx(e),false)}findCellAt(e,t,r){const n=this.sheets[e];const i=n&&n[t];return i&&i[r]}addCellEx(e){if(e.top){for(let t=e.top;t<=e.bottom;t++){for(let r=e.left;r<=e.right;r++){this.getCellAt(e.sheetName,t,r)}}}else{this.findCellEx(e,true)}}getCellEx(e){return this.findCellEx(e,true)}findCellEx(e,t){const r=this.findSheet(e,t);const n=this.findSheetRow(r,e,t);return this.findRowCell(n,e,t)}getCellAt(e,t,r){const n=this.sheets[e]||(this.sheets[e]=[]);const s=n[t]||(n[t]=[]);const o=s[r]||(s[r]={sheetName:e,address:i.n2l(r)+t,row:t,col:r});return o}removeCellEx(e){const t=this.findSheet(e);if(!t){return}const r=this.findSheetRow(t,e);if(!r){return}delete r[e.col]}forEachInSheet(e,t){const r=this.sheets[e];if(r){r.forEach(((e,r)=>{if(e){e.forEach(((e,n)=>{if(e){t(e,r,n)}}))}}))}}forEach(e){n.each(this.sheets,((t,r)=>{this.forEachInSheet(r,e)}))}map(e){const t=[];this.forEach((r=>{t.push(e(r))}));return t}findSheet(e,t){const r=e.sheetName;if(this.sheets[r]){return this.sheets[r]}if(t){return this.sheets[r]=[]}return undefined}findSheetRow(e,t,r){const{row:n}=t;if(e&&e[n]){return e[n]}if(r){return e[n]=[]}return undefined}findRowCell(e,t,r){const{col:n}=t;if(e&&e[n]){return e[n]}if(r){return e[n]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t}return undefined}spliceRows(e,t,r,n){const i=this.sheets[e];if(i){const e=[];for(let t=0;t<n;t++){e.push([])}i.splice(t,r,...e)}}spliceColumns(e,t,r,i){const s=this.sheets[e];if(s){const e=[];for(let t=0;t<i;t++){e.push(null)}n.each(s,(n=>{n.splice(t,r,...e)}))}}}e.exports=CellMatrix},25646:function(e){const t=/^[A-Z]+\d+$/;const r={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level(e){if(e<=26){return 1}if(e<=26*26){return 2}return 3},_fill(e){let t;let r;let n;let i;let s;let o=1;if(e>=4){throw new Error("Out of bounds. Excel supports columns from 1 to 16384")}if(this._l2nFill<1&&e>=1){while(o<=26){t=this._dictionary[o-1];this._n2l[o]=t;this._l2n[t]=o;o++}this._l2nFill=1}if(this._l2nFill<2&&e>=2){o=27;while(o<=26+26*26){r=o-(26+1);n=r%26;i=Math.floor(r/26);t=this._dictionary[i]+this._dictionary[n];this._n2l[o]=t;this._l2n[t]=o;o++}this._l2nFill=2}if(this._l2nFill<3&&e>=3){o=26+26*26+1;while(o<=16384){r=o-(26*26+26+1);n=r%26;i=Math.floor(r/26)%26;s=Math.floor(r/(26*26));t=this._dictionary[s]+this._dictionary[i]+this._dictionary[n];this._n2l[o]=t;this._l2n[t]=o;o++}this._l2nFill=3}},l2n(e){if(!this._l2n[e]){this._fill(e.length)}if(!this._l2n[e]){throw new Error(`Out of bounds. Invalid column letter: ${e}`)}return this._l2n[e]},n2l(e){if(e<1||e>16384){throw new Error(`${e} is out of bounds. Excel supports columns from 1 to 16384`)}if(!this._n2l[e]){this._fill(this._level(e))}return this._n2l[e]},_hash:{},validateAddress(e){if(!t.test(e)){throw new Error(`Invalid Address: ${e}`)}return true},decodeAddress(e){const t=e.length<5&&this._hash[e];if(t){return t}let r=false;let n="";let i=0;let s=false;let o="";let c=0;for(let t=0,h;t<e.length;t++){h=e.charCodeAt(t);if(!s&&h>=65&&h<=90){r=true;n+=e[t];i=i*26+h-64}else if(h>=48&&h<=57){s=true;o+=e[t];c=c*10+h-48}else if(s&&r&&h!==36){break}}if(!r){i=undefined}else if(i>16384){throw new Error(`Out of bounds. Invalid column letter: ${n}`)}if(!s){c=undefined}e=n+o;const h={address:e,col:i,row:c,$col$row:`$${n}$${o}`};if(i<=100&&c<=100){this._hash[e]=h;this._hash[h.$col$row]=h}return h},getAddress(e,t){if(t){const r=this.n2l(t)+e;return this.decodeAddress(r)}return this.decodeAddress(e)},decode(e){const t=e.split(":");if(t.length===2){const e=this.decodeAddress(t[0]);const r=this.decodeAddress(t[1]);const n={top:Math.min(e.row,r.row),left:Math.min(e.col,r.col),bottom:Math.max(e.row,r.row),right:Math.max(e.col,r.col)};n.tl=this.n2l(n.left)+n.top;n.br=this.n2l(n.right)+n.bottom;n.dimensions=`${n.tl}:${n.br}`;return n}return this.decodeAddress(e)},decodeEx(e){const t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/);const r=t[1]||t[2];const n=t[3];const i=n.split(":");if(i.length>1){let e=this.decodeAddress(i[0]);let t=this.decodeAddress(i[1]);const n=Math.min(e.row,t.row);const s=Math.min(e.col,t.col);const o=Math.max(e.row,t.row);const c=Math.max(e.col,t.col);e=this.n2l(s)+n;t=this.n2l(c)+o;return{top:n,left:s,bottom:o,right:c,sheetName:r,tl:{address:e,col:s,row:n,$col$row:`$${this.n2l(s)}$${n}`,sheetName:r},br:{address:t,col:c,row:o,$col$row:`$${this.n2l(c)}$${o}`,sheetName:r},dimensions:`${e}:${t}`}}if(n.startsWith("#")){return r?{sheetName:r,error:n}:{error:n}}const s=this.decodeAddress(n);return r?{sheetName:r,...s}:s},encodeAddress(e,t){return r.n2l(t)+e},encode(){switch(arguments.length){case 2:return r.encodeAddress(arguments[0],arguments[1]);case 4:return`${r.encodeAddress(arguments[0],arguments[1])}:${r.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(e,t){const[r,n,,i,s]=e;const[o,c]=t;return o>=r&&o<=i&&c>=n&&c<=s}};e.exports=r},6577:function(e,t){const oneDepthCopy=(e,t)=>({...e,...t.reduce(((t,r)=>{if(e[r])t[r]={...e[r]};return t}),{})});const setIfExists=(e,t,r,n=[])=>{if(e[r])t[r]=oneDepthCopy(e[r],n)};const isEmptyObj=e=>Object.keys(e).length===0;const copyStyle=e=>{if(!e)return e;if(isEmptyObj(e))return{};const t={...e};setIfExists(e,t,"font",["color"]);setIfExists(e,t,"alignment");setIfExists(e,t,"protection");if(e.border){setIfExists(e,t,"border");setIfExists(e.border,t.border,"top",["color"]);setIfExists(e.border,t.border,"left",["color"]);setIfExists(e.border,t.border,"bottom",["color"]);setIfExists(e.border,t.border,"right",["color"]);setIfExists(e.border,t.border,"diagonal",["color"])}if(e.fill){setIfExists(e,t,"fill",["fgColor","bgColor","center"]);if(e.fill.stops){t.fill.stops=e.fill.stops.map((e=>oneDepthCopy(e,["color"])))}}return t};t.copyStyle=copyStyle},93653:function(e,t,r){"use strict";const n=r(6113);const i={hash(e,...t){const r=n.createHash(e);r.update(Buffer.concat(t));return r.digest()},convertPasswordToHash(e,t,r,i){t=t.toLowerCase();const s=n.getHashes();if(s.indexOf(t)<0){throw new Error(`Hash algorithm '${t}' not supported!`)}const o=Buffer.from(e,"utf16le");let c=this.hash(t,Buffer.from(r,"base64"),o);for(let e=0;e<i;e++){const r=Buffer.alloc(4);r.writeUInt32LE(e,0);c=this.hash(t,c,r)}return c.toString("base64")},randomBytes(e){return n.randomBytes(e)}};e.exports=i},60507:function(e){e.exports=async function*iterateStream(e){const t=[];e.on("data",(e=>t.push(e)));let r;const n=new Promise((e=>r=e));let i=false;e.on("end",(()=>{i=true;r()}));let s=false;e.on("error",(e=>{s=e;r()}));while(!i||t.length>0){if(t.length===0){e.resume();await Promise.race([once(e,"data"),n])}else{e.pause();const r=t.shift();yield r}if(s)throw s}r()};function once(e,t){return new Promise((r=>{let n=false;const handler=()=>{if(!n){n=true;e.removeListener(t,handler);r()}};e.addListener(t,handler)}))}},54928:function(e,t,r){const{SaxesParser:n}=r(42958);const{PassThrough:i}=r(96377);const{bufferToString:s}=r(94578);e.exports=async function*(e){if(e.pipe&&!e[Symbol.asyncIterator]){e=e.pipe(new i)}const t=new n;let r;t.on("error",(e=>{r=e}));let o=[];t.on("opentag",(e=>o.push({eventType:"opentag",value:e})));t.on("text",(e=>o.push({eventType:"text",value:e})));t.on("closetag",(e=>o.push({eventType:"closetag",value:e})));for await(const n of e){t.write(s(n));if(r)throw r;yield o;o=[]}}},52096:function(e,t,r){const n=r(25646);const i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi;const s=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;function slideFormula(e,t,r){const o=n.decode(t);const c=n.decode(r);return e.replace(i,((e,t,r,i,h)=>{if(h){return e}const p=s.exec(i);if(p){const r=p[1];const i=p[2].toUpperCase();const s=p[3];const h=p[4];if(i.length>3||i.length===3&&i>"XFD"){return e}let g=n.l2n(i);let y=parseInt(h,10);if(!r){g+=c.col-o.col}if(!s){y+=c.row-o.row}const b=(t||"")+(r||"")+n.n2l(g)+(s||"")+y;return b}return e}))}e.exports={slideFormula:slideFormula}},80756:function(e){class SharedStrings{constructor(){this._values=[];this._totalRefs=0;this._hash=Object.create(null)}get count(){return this._values.length}get values(){return this._values}get totalRefs(){return this._totalRefs}getString(e){return this._values[e]}add(e){let t=this._hash[e];if(t===undefined){t=this._hash[e]=this._values.length;this._values.push(e)}this._totalRefs++;return t}}e.exports=SharedStrings},42653:function(e,t,r){const n=r(96377);const i=r(55049);const s=r(9345);class StringChunk{constructor(e,t){this._data=e;this._encoding=t}get length(){return this.toBuffer().length}copy(e,t,r,n){return this.toBuffer().copy(e,t,r,n)}toBuffer(){if(!this._buffer){this._buffer=Buffer.from(this._data,this._encoding)}return this._buffer}}class StringBufChunk{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,r,n){return this._data._buf.copy(e,t,r,n)}toBuffer(){return this._data.toBuffer()}}class BufferChunk{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,r,n){this._data.copy(e,t,r,n)}toBuffer(){return this._data}}class ReadWriteBuf{constructor(e){this.size=e;this.buffer=Buffer.alloc(e);this.iRead=0;this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size){return this.buffer}const e=Buffer.alloc(this.iWrite-this.iRead);this.buffer.copy(e,0,this.iRead,this.iWrite);return e}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(e){let t;if(e===0){return null}if(e===undefined||e>=this.length){t=this.toBuffer();this.iRead=this.iWrite;return t}t=Buffer.alloc(e);this.buffer.copy(t,0,this.iRead,e);this.iRead+=e;return t}write(e,t,r){const n=Math.min(r,this.size-this.iWrite);e.copy(this.buffer,this.iWrite,t,t+n);this.iWrite+=n;return n}}const StreamBuf=function(e){e=e||{};this.bufSize=e.bufSize||1024*1024;this.buffers=[];this.batch=e.batch||false;this.corked=false;this.inPos=0;this.outPos=0;this.pipes=[];this.paused=false;this.encoding=null};i.inherits(StreamBuf,n.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return Buffer.concat(this.buffers.map((e=>e.toBuffer())))}},_getWritableBuffer(){if(this.buffers.length){const e=this.buffers[this.buffers.length-1];if(!e.full){return e}}const e=new ReadWriteBuf(this.bufSize);this.buffers.push(e);return e},async _pipe(e){const write=function(t){return new Promise((r=>{t.write(e.toBuffer(),(()=>{r()}))}))};await Promise.all(this.pipes.map(write))},_writeToBuffers(e){let t=0;const r=e.length;while(t<r){const n=this._getWritableBuffer();t+=n.write(e,t,r-t)}},async write(e,t,r){if(t instanceof Function){r=t;t="utf8"}r=r||i.nop;let n;if(e instanceof s){n=new StringBufChunk(e)}else if(e instanceof Buffer){n=new BufferChunk(e)}else if(typeof e==="string"||e instanceof String||e instanceof ArrayBuffer){n=new StringChunk(e,t)}else{throw new Error("Chunk must be one of type String, Buffer or StringBuf.")}if(this.pipes.length){if(this.batch){this._writeToBuffers(n);while(!this.corked&&this.buffers.length>1){this._pipe(this.buffers.shift())}}else if(!this.corked){await this._pipe(n);r()}else{this._writeToBuffers(n);process.nextTick(r)}}else{if(!this.paused){this.emit("data",n.toBuffer())}this._writeToBuffers(n);this.emit("readable")}return true},cork(){this.corked=true},_flush(){if(this.pipes.length){while(this.buffers.length){this._pipe(this.buffers.shift())}}},uncork(){this.corked=false;this._flush()},end(e,t,r){const writeComplete=e=>{if(e){r(e)}else{this._flush();this.pipes.forEach((e=>{e.end()}));this.emit("finish")}};if(e){this.write(e,t,writeComplete)}else{writeComplete()}},read(e){let t;if(e){t=[];while(e&&this.buffers.length&&!this.buffers[0].eod){const r=this.buffers[0];const n=r.read(e);e-=n.length;t.push(n);if(r.eod&&r.full){this.buffers.shift()}}return Buffer.concat(t)}t=this.buffers.map((e=>e.toBuffer())).filter(Boolean);this.buffers=[];return Buffer.concat(t)},setEncoding(e){this.encoding=e},pause(){this.paused=true},resume(){this.paused=false},isPaused(){return!!this.paused},pipe(e){this.pipes.push(e);if(!this.paused&&this.buffers.length){this.end()}},unpipe(e){this.pipes=this.pipes.filter((t=>t!==e))},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}});e.exports=StreamBuf},9345:function(e){class StringBuf{constructor(e){this._buf=Buffer.alloc(e&&e.size||16384);this._encoding=e&&e.encoding||"utf8";this._inPos=0;this._buffer=undefined}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){if(!this._buffer){this._buffer=Buffer.alloc(this.length);this._buf.copy(this._buffer,0,0,this.length)}return this._buffer}reset(e){e=e||0;this._buffer=undefined;this._inPos=e}_grow(e){let t=this._buf.length*2;while(t<e){t*=2}const r=Buffer.alloc(t);this._buf.copy(r,0);this._buf=r}addText(e){this._buffer=undefined;let t=this._inPos+this._buf.write(e,this._inPos,this._encoding);while(t>=this._buf.length-4){this._grow(this._inPos+e.length);t=this._inPos+this._buf.write(e,this._inPos,this._encoding)}this._inPos=t}addStringBuf(e){if(e.length){this._buffer=undefined;if(this.length+e.length>this.capacity){this._grow(this.length+e.length)}e._buf.copy(this._buf,this._inPos,0,e.length);this._inPos+=e.length}}}e.exports=StringBuf},10642:function(e){const{toString:t}=Object.prototype;const r=/["&<>]/;const n={each:function each(e,t){if(e){if(Array.isArray(e)){e.forEach(t)}else{Object.keys(e).forEach((r=>{t(e[r],r)}))}}},some:function some(e,t){if(e){if(Array.isArray(e)){return e.some(t)}return Object.keys(e).some((r=>t(e[r],r)))}return false},every:function every(e,t){if(e){if(Array.isArray(e)){return e.every(t)}return Object.keys(e).every((r=>t(e[r],r)))}return true},map:function map(e,t){if(e){if(Array.isArray(e)){return e.map(t)}return Object.keys(e).map((r=>t(e[r],r)))}return[]},keyBy(e,t){return e.reduce(((e,r)=>{e[r[t]]=r;return e}),{})},isEqual:function isEqual(e,t){const r=typeof e;const i=typeof t;const s=Array.isArray(e);const o=Array.isArray(t);let c;if(r!==i){return false}switch(typeof e){case"object":if(s||o){if(s&&o){return e.length===t.length&&e.every(((e,r)=>{const i=t[r];return n.isEqual(e,i)}))}return false}if(e===null||t===null){return e===t}c=Object.keys(e);if(Object.keys(t).length!==c.length){return false}for(const e of c){if(!t.hasOwnProperty(e)){return false}}return n.every(e,((e,r)=>{const i=t[r];return n.isEqual(e,i)}));default:return e===t}},escapeHtml(e){const t=r.exec(e);if(!t)return e;let n="";let i="";let s=0;let o=t.index;for(;o<e.length;o++){switch(e.charAt(o)){case'"':i="&quot;";break;case"&":i="&amp;";break;case"'":i="&apos;";break;case"<":i="&lt;";break;case">":i="&gt;";break;default:continue}if(s!==o)n+=e.substring(s,o);s=o+1;n+=i}if(s!==o)return n+e.substring(s,o);return n},strcmp(e,t){if(e<t)return-1;if(e>t)return 1;return 0},isUndefined(e){return t.call(e)==="[object Undefined]"},isObject(e){return t.call(e)==="[object Object]"},deepMerge(){const e=arguments[0]||{};const{length:t}=arguments;let r,i,s;function assignValue(t,o){r=e[o];s=Array.isArray(t);if(n.isObject(t)||s){if(s){s=false;i=r&&Array.isArray(r)?r:[]}else{i=r&&n.isObject(r)?r:{}}e[o]=n.deepMerge(i,t)}else if(!n.isUndefined(t)){e[o]=t}}for(let e=0;e<t;e++){n.each(arguments[e],assignValue)}return e}};e.exports=n},55049:function(e,t,r){const n=r(57147);const inherits=function(e,t,r,n){e.super_=t;if(!n){n=r;r=null}if(r){Object.keys(r).forEach((t=>{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}const i={constructor:{value:e,enumerable:false,writable:false,configurable:true}};if(n){Object.keys(n).forEach((e=>{i[e]=Object.getOwnPropertyDescriptor(n,e)}))}e.prototype=Object.create(t.prototype,i)};const i=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/;const s={nop(){},promiseImmediate(e){return new Promise((t=>{if(global.setImmediate){setImmediate((()=>{t(e)}))}else{setTimeout((()=>{t(e)}),1)}}))},inherits:inherits,dateToExcel(e,t){return 25569+e.getTime()/(24*3600*1e3)-(t?1462:0)},excelToDate(e,t){const r=Math.round((e-25569+(t?1462:0))*24*3600*1e3);return new Date(r)},parsePath(e){const t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath(e){const t=s.parsePath(e);return`${t.path}/_rels/${t.name}.rels`},xmlEncode(e){const t=i.exec(e);if(!t)return e;let r="";let n="";let s=0;let o=t.index;for(;o<e.length;o++){const t=e.charCodeAt(o);switch(t){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&apos;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;case 127:n="";break;default:{if(t<=31&&(t<=8||t>=11&&t!==13)){n="";break}continue}}if(s!==o)r+=e.substring(s,o);s=o+1;if(n)r+=n}if(s!==o)return r+e.substring(s,o);return r},xmlDecode(e){return e.replace(/&([a-z]*);/g,(e=>{switch(e){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return e}}))},validInt(e){const t=parseInt(e,10);return!Number.isNaN(t)?t:0},isDateFmt(e){if(!e){return false}e=e.replace(/\[[^\]]*]/g,"");e=e.replace(/"[^"]*"/g,"");const t=e.match(/[ymdhMsb]+/)!==null;return t},fs:{exists(e){return new Promise((t=>{n.access(e,n.constants.F_OK,(e=>{t(!e)}))}))}},toIsoDateString(e){return e.toIsoString().subsstr(0,10)},parseBoolean(e){return e===true||e==="true"||e===1||e==="1"}};e.exports=s},15643:function(e,t,r){const n=r(10642);const i=r(55049);const s="<";const o=">";const c="</";const h="/>";function pushAttribute(e,t,r){e.push(` ${t}="${i.xmlEncode(r.toString())}"`)}function pushAttributes(e,t){if(t){const r=[];n.each(t,((e,t)=>{if(e!==undefined){pushAttribute(r,t,e)}}));e.push(r.join(""))}}class XmlStream{constructor(){this._xml=[];this._stack=[];this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:undefined}get cursor(){return this._xml.length}openXml(e){const t=this._xml;t.push("<?xml");pushAttributes(t,e);t.push("?>\n")}openNode(e,t){const r=this.tos;const n=this._xml;if(r&&this.open){n.push(o)}this._stack.push(e);n.push(s);n.push(e);pushAttributes(n,t);this.leaf=true;this.open=true}addAttribute(e,t){if(!this.open){throw new Error("Cannot write attributes to node if it is not open")}if(t!==undefined){pushAttribute(this._xml,e,t)}}addAttributes(e){if(!this.open){throw new Error("Cannot write attributes to node if it is not open")}pushAttributes(this._xml,e)}writeText(e){const t=this._xml;if(this.open){t.push(o);this.open=false}this.leaf=false;t.push(i.xmlEncode(e.toString()))}writeXml(e){if(this.open){this._xml.push(o);this.open=false}this.leaf=false;this._xml.push(e)}closeNode(){const e=this._stack.pop();const t=this._xml;if(this.leaf){t.push(h)}else{t.push(c);t.push(e);t.push(o)}this.open=false;this.leaf=false}leafNode(e,t,r){this.openNode(e,t);if(r!==undefined){this.writeText(r)}this.closeNode()}closeAll(){while(this._stack.length){this.closeNode()}}addRollback(){this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open});return this.cursor}commit(){this._rollbacks.pop()}rollback(){const e=this._rollbacks.pop();if(this._xml.length>e.xml){this._xml.splice(e.xml,this._xml.length-e.xml)}if(this._stack.length>e.stack){this._stack.splice(e.stack,this._stack.length-e.stack)}this.leaf=e.leaf;this.open=e.open}get xml(){this.closeAll();return this._xml.join("")}}XmlStream.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"};e.exports=XmlStream},58562:function(e,t,r){const n=r(82361);const i=r(83592);const s=r(42653);const{stringToBuffer:o}=r(89012);class ZipWriter extends n.EventEmitter{constructor(e){super();this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},e);this.zip=new i;this.stream=new s}append(e,t){if(t.hasOwnProperty("base64")&&t.base64){this.zip.file(t.name,e,{base64:true})}else{if(process.browser&&typeof e==="string"){e=o(e)}this.zip.file(t.name,e)}}async finalize(){const e=await this.zip.generateAsync(this.options);this.stream.end(e);this.emit("finish")}read(e){return this.stream.read(e)}setEncoding(e){return this.stream.setEncoding(e)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(e,t){return this.stream.pipe(e,t)}unpipe(e){return this.stream.unpipe(e)}unshift(e){return this.stream.unshift(e)}wrap(e){return this.stream.wrap(e)}}e.exports={ZipWriter:ZipWriter}},59277:function(e){e.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},4076:function(e){"use strict";e.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},78975:function(e,t,r){const n=r(54928);const i=r(15643);class BaseXform{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,t){}reset(){this.model=null;if(this.map){Object.values(this.map).forEach((e=>{if(e instanceof BaseXform){e.reset()}else if(e.xform){e.xform.reset()}}))}}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const t of e){for(const{eventType:e,value:r}of t){if(e==="opentag"){this.parseOpen(r)}else if(e==="text"){this.parseText(r)}else if(e==="closetag"){if(!this.parseClose(r.name)){return this.model}}}}return this.model}async parseStream(e){return this.parse(n(e))}get xml(){return this.toXml(this.model)}toXml(e){const t=new i;this.render(t,e);return t.xml}static toAttribute(e,t,r=false){if(e===undefined){if(r){return t}}else if(r||e!==t){return e.toString()}return undefined}static toStringAttribute(e,t,r=false){return BaseXform.toAttribute(e,t,r)}static toStringValue(e,t){return e===undefined?t:e}static toBoolAttribute(e,t,r=false){if(e===undefined){if(r){return t}}else if(r||e!==t){return e?"1":"0"}return undefined}static toBoolValue(e,t){return e===undefined?t:e==="1"}static toIntAttribute(e,t,r=false){return BaseXform.toAttribute(e,t,r)}static toIntValue(e,t){return e===undefined?t:parseInt(e,10)}static toFloatAttribute(e,t,r=false){return BaseXform.toAttribute(e,t,r)}static toFloatValue(e,t){return e===undefined?t:parseFloat(e)}}e.exports=BaseXform},89820:function(e,t,r){const n=r(78975);const i=r(25646);class DefinedNamesXform extends n{render(e,t){e.openNode("definedName",{name:t.name,localSheetId:t.localSheetId});e.writeText(t.ranges.join(","));e.closeNode()}parseOpen(e){switch(e.name){case"definedName":this._parsedName=e.attributes.name;this._parsedLocalSheetId=e.attributes.localSheetId;this._parsedText=[];return true;default:return false}}parseText(e){this._parsedText.push(e)}parseClose(){this.model={name:this._parsedName,ranges:extractRanges(this._parsedText.join(""))};if(this._parsedLocalSheetId!==undefined){this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)}return false}}function isValidRange(e){try{i.decodeEx(e);return true}catch(e){return false}}function extractRanges(e){const t=[];let r=false;let n="";e.split(",").forEach((e=>{if(!e){return}const i=(e.match(/'/g)||[]).length;if(!i){if(r){n+=`${e},`}else if(isValidRange(e)){t.push(e)}return}const s=i%2===0;if(!r&&s&&isValidRange(e)){t.push(e)}else if(r&&!s){r=false;if(isValidRange(n+e)){t.push(n+e)}n=""}else{r=true;n+=`${e},`}}));return t}e.exports=DefinedNamesXform},41451:function(e,t,r){const n=r(55049);const i=r(78975);class WorksheetXform extends i{render(e,t){e.leafNode("sheet",{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}parseOpen(e){if(e.name==="sheet"){this.model={name:n.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes["r:id"]};return true}return false}parseText(){}parseClose(){return false}}e.exports=WorksheetXform},15866:function(e,t,r){const n=r(78975);class WorkbookCalcPropertiesXform extends n{render(e,t){e.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:undefined})}parseOpen(e){if(e.name==="calcPr"){this.model={};return true}return false}parseText(){}parseClose(){return false}}e.exports=WorkbookCalcPropertiesXform},28208:function(e,t,r){const n=r(78975);class WorksheetPropertiesXform extends n{render(e,t){e.leafNode("workbookPr",{date1904:t.date1904?1:undefined,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(e){if(e.name==="workbookPr"){this.model={date1904:e.attributes.date1904==="1"};return true}return false}parseText(){}parseClose(){return false}}e.exports=WorksheetPropertiesXform},13186:function(e,t,r){const n=r(78975);class WorkbookViewXform extends n{render(e,t){const r={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};if(t.visibility&&t.visibility!=="visible"){r.visibility=t.visibility}e.leafNode("workbookView",r)}parseOpen(e){if(e.name==="workbookView"){const t=this.model={};const addS=function(e,r,n){const i=r!==undefined?t[e]=r:n;if(i!==undefined){t[e]=i}};const addN=function(e,r,n){const i=r!==undefined?t[e]=parseInt(r,10):n;if(i!==undefined){t[e]=i}};addN("x",e.attributes.xWindow,0);addN("y",e.attributes.yWindow,0);addN("width",e.attributes.windowWidth,25e3);addN("height",e.attributes.windowHeight,1e4);addS("visibility",e.attributes.visibility,"visible");addN("activeTab",e.attributes.activeTab,undefined);addN("firstSheet",e.attributes.firstSheet,undefined);return true}return false}parseText(){}parseClose(){return false}}e.exports=WorkbookViewXform},49112:function(e,t,r){const n=r(10642);const i=r(25646);const s=r(15643);const o=r(78975);const c=r(21058);const h=r(49526);const p=r(89820);const g=r(41451);const y=r(13186);const b=r(28208);const v=r(15866);class WorkbookXform extends o{constructor(){super();this.map={fileVersion:WorkbookXform.STATIC_XFORMS.fileVersion,workbookPr:new b,bookViews:new h({tag:"bookViews",count:false,childXform:new y}),sheets:new h({tag:"sheets",count:false,childXform:new g}),definedNames:new h({tag:"definedNames",count:false,childXform:new p}),calcPr:new v}}prepare(e){e.sheets=e.worksheets;const t=[];let r=0;e.sheets.forEach((e=>{if(e.pageSetup&&e.pageSetup.printArea){e.pageSetup.printArea.split("&&").forEach((n=>{const i=n.split(":");const s={name:"_xlnm.Print_Area",ranges:[`'${e.name}'!$${i[0]}:$${i[1]}`],localSheetId:r};t.push(s)}))}if(e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){const n=[];if(e.pageSetup.printTitlesColumn){const t=e.pageSetup.printTitlesColumn.split(":");n.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}if(e.pageSetup.printTitlesRow){const t=e.pageSetup.printTitlesRow.split(":");n.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}const i={name:"_xlnm.Print_Titles",ranges:n,localSheetId:r};t.push(i)}r++}));if(t.length){e.definedNames=e.definedNames.concat(t)}(e.media||[]).forEach(((e,t)=>{e.name=e.type+(t+1)}))}render(e,t){e.openXml(s.StdDocAttributes);e.openNode("workbook",WorkbookXform.WORKBOOK_ATTRIBUTES);this.map.fileVersion.render(e);this.map.workbookPr.render(e,t.properties);this.map.bookViews.render(e,t.views);this.map.sheets.render(e,t.sheets);this.map.definedNames.render(e,t.definedNames);this.map.calcPr.render(e,t.calcProperties);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"workbook":return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}return true}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"workbook":this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}};if(this.map.definedNames.model){this.model.definedNames=this.map.definedNames.model}return false;default:return true}}reconcile(e){const t=(e.workbookRels||[]).reduce(((e,t)=>{e[t.Id]=t;return e}),{});const r=[];let s;let o=0;(e.sheets||[]).forEach((n=>{const i=t[n.rId];if(!i){return}s=e.worksheetHash[`xl/${i.Target.replace(/^(\s|\/xl\/)+/,"")}`];if(s){s.name=n.name;s.id=n.id;s.state=n.state;r[o++]=s}}));const c=[];n.each(e.definedNames,(e=>{if(e.name==="_xlnm.Print_Area"){s=r[e.localSheetId];if(s){if(!s.pageSetup){s.pageSetup={}}const t=i.decodeEx(e.ranges[0]);s.pageSetup.printArea=s.pageSetup.printArea?`${s.pageSetup.printArea}&&${t.dimensions}`:t.dimensions}}else if(e.name==="_xlnm.Print_Titles"){s=r[e.localSheetId];if(s){if(!s.pageSetup){s.pageSetup={}}const t=e.ranges.join(",");const r=/\$/g;const n=/\$\d+:\$\d+/;const i=t.match(n);if(i&&i.length){const e=i[0];s.pageSetup.printTitlesRow=e.replace(r,"")}const o=/\$[A-Z]+:\$[A-Z]+/;const c=t.match(o);if(c&&c.length){const e=c[0];s.pageSetup.printTitlesColumn=e.replace(r,"")}}}else{c.push(e)}}));e.definedNames=c;e.media.forEach(((e,t)=>{e.index=t}))}}WorkbookXform.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"};WorkbookXform.STATIC_XFORMS={fileVersion:new c({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})};e.exports=WorkbookXform},42297:function(e,t,r){const n=r(80188);const i=r(55049);const s=r(78975);const o=e.exports=function(e){this.model=e};i.inherits(o,s,{get tag(){return"r"},get richTextXform(){if(!this._richTextXform){this._richTextXform=new n}return this._richTextXform},render(e,t){t=t||this.model;e.openNode("comment",{ref:t.ref,authorId:0});e.openNode("text");if(t&&t.note&&t.note.texts){t.note.texts.forEach((t=>{this.richTextXform.render(e,t)}))}e.closeNode();e.closeNode()},parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"comment":this.model={type:"note",note:{texts:[]},...e.attributes};return true;case"r":this.parser=this.richTextXform;this.parser.parseOpen(e);return true;default:return false}},parseText(e){if(this.parser){this.parser.parseText(e)}},parseClose(e){switch(e){case"comment":return false;case"r":this.model.note.texts.push(this.parser.model);this.parser=undefined;return true;default:if(this.parser){this.parser.parseClose(e)}return true}}})},4766:function(e,t,r){const n=r(15643);const i=r(55049);const s=r(78975);const o=r(42297);const c=e.exports=function(){this.map={comment:new o}};i.inherits(c,s,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(e,t){t=t||this.model;e.openXml(n.StdDocAttributes);e.openNode("comments",c.COMMENTS_ATTRIBUTES);e.openNode("authors");e.leafNode("author",null,"Author");e.closeNode();e.openNode("commentList");t.comments.forEach((t=>{this.map.comment.render(e,t)}));e.closeNode();e.closeNode()},parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"commentList":this.model={comments:[]};return true;case"comment":this.parser=this.map.comment;this.parser.parseOpen(e);return true;default:return false}},parseText(e){if(this.parser){this.parser.parseText(e)}},parseClose(e){switch(e){case"commentList":return false;case"comment":this.model.comments.push(this.parser.model);this.parser=undefined;return true;default:if(this.parser){this.parser.parseClose(e)}return true}}})},39267:function(e,t,r){const n=r(78975);class VmlPositionXform extends n{constructor(e){super();this._model=e}get tag(){return this._model&&this._model.tag}render(e,t,r){if(t===r[2]){e.leafNode(this.tag)}else if(this.tag==="x:SizeWithCells"&&t===r[1]){e.leafNode(this.tag)}}parseOpen(e){switch(e.name){case this.tag:this.model={};this.model[this.tag]=true;return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=VmlPositionXform},22660:function(e,t,r){const n=r(78975);class VmlProtectionXform extends n{constructor(e){super();this._model=e}get tag(){return this._model&&this._model.tag}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(e){switch(e.name){case this.tag:this.text="";return true;default:return false}}parseText(e){this.text=e}parseClose(){return false}}e.exports=VmlProtectionXform},26168:function(e,t,r){const n=r(78975);class VmlAnchorXform extends n{get tag(){return"x:Anchor"}getAnchorRect(e){const t=Math.floor(e.left);const r=Math.floor((e.left-t)*68);const n=Math.floor(e.top);const i=Math.floor((e.top-n)*18);const s=Math.floor(e.right);const o=Math.floor((e.right-s)*68);const c=Math.floor(e.bottom);const h=Math.floor((e.bottom-c)*18);return[t,r,n,i,s,o,c,h]}getDefaultRect(e){const t=e.col;const r=6;const n=Math.max(e.row-2,0);const i=14;const s=t+2;const o=2;const c=n+4;const h=16;return[t,r,n,i,s,o,c,h]}render(e,t){const r=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode("x:Anchor",null,r.join(", "))}parseOpen(e){switch(e.name){case this.tag:this.text="";return true;default:return false}}parseText(e){this.text=e}parseClose(){return false}}e.exports=VmlAnchorXform},17129:function(e,t,r){const n=r(78975);const i=r(26168);const s=r(22660);const o=r(39267);const c=["twoCells","oneCells","absolute"];class VmlClientDataXform extends n{constructor(){super();this.map={"x:Anchor":new i,"x:Locked":new s({tag:"x:Locked"}),"x:LockText":new s({tag:"x:LockText"}),"x:SizeWithCells":new o({tag:"x:SizeWithCells"}),"x:MoveWithCells":new o({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(e,t){const{protection:r,editAs:n}=t.note;e.openNode(this.tag,{ObjectType:"Note"});this.map["x:MoveWithCells"].render(e,n,c);this.map["x:SizeWithCells"].render(e,n,c);this.map["x:Anchor"].render(e,t);this.map["x:Locked"].render(e,r.locked);e.leafNode("x:AutoFill",null,"False");this.map["x:LockText"].render(e,r.lockText);e.leafNode("x:Row",null,t.refAddress.row-1);e.leafNode("x:Column",null,t.refAddress.col-1);e.closeNode()}parseOpen(e){switch(e.name){case this.tag:this.reset();this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.normalizeModel();return false;default:return true}}normalizeModel(){const e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model);const t=Object.keys(e).length;this.model.editAs=c[t];this.model.anchor=this.map["x:Anchor"].text;this.model.protection.locked=this.map["x:Locked"].text;this.model.protection.lockText=this.map["x:LockText"].text}}e.exports=VmlClientDataXform},85464:function(e,t,r){const n=r(15643);const i=r(78975);const s=r(48749);class VmlNotesXform extends i{constructor(){super();this.map={"v:shape":new s}}get tag(){return"xml"}render(e,t){e.openXml(n.StdDocAttributes);e.openNode(this.tag,VmlNotesXform.DRAWING_ATTRIBUTES);e.openNode("o:shapelayout",{"v:ext":"edit"});e.leafNode("o:idmap",{"v:ext":"edit",data:1});e.closeNode();e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"});e.leafNode("v:stroke",{joinstyle:"miter"});e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"});e.closeNode();t.comments.forEach(((t,r)=>{this.map["v:shape"].render(e,t,r)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();this.model={comments:[]};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.comments.push(this.parser.model);this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}reconcile(e,t){e.anchors.forEach((e=>{if(e.br){this.map["xdr:twoCellAnchor"].reconcile(e,t)}else{this.map["xdr:oneCellAnchor"].reconcile(e,t)}}))}}VmlNotesXform.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"};e.exports=VmlNotesXform},48749:function(e,t,r){const n=r(78975);const i=r(71608);const s=r(17129);class VmlShapeXform extends n{constructor(){super();this.map={"v:textbox":new i,"x:ClientData":new s}}get tag(){return"v:shape"}render(e,t,r){e.openNode("v:shape",VmlShapeXform.V_SHAPE_ATTRIBUTES(t,r));e.leafNode("v:fill",{color2:"infoBackground [80]"});e.leafNode("v:shadow",{color:"none [81]",obscured:"t"});e.leafNode("v:path",{"o:connecttype":"none"});this.map["v:textbox"].render(e,t);this.map["x:ClientData"].render(e,t);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset;this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection;this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor;this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs;return false;default:return true}}}VmlShapeXform.V_SHAPE_ATTRIBUTES=(e,t)=>({id:`_x0000_s${1025+t}`,type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode});e.exports=VmlShapeXform},71608:function(e,t,r){const n=r(78975);class VmlTextboxXform extends n{get tag(){return"v:textbox"}conversionUnit(e,t,r){return`${parseFloat(e)*t.toFixed(2)}${r}`}reverseConversionUnit(e){return(e||"").split(",").map((e=>Number(parseFloat(this.conversionUnit(parseFloat(e),.1,"")).toFixed(2))))}render(e,t){const r={style:"mso-direction-alt:auto"};if(t&&t.note){let{inset:e}=t.note&&t.note.margins;if(Array.isArray(e)){e=e.map((e=>this.conversionUnit(e,10,"mm"))).join(",")}if(e){r.inset=e}}e.openNode("v:textbox",r);e.leafNode("div",{style:"text-align:left"});e.closeNode()}parseOpen(e){switch(e.name){case this.tag:this.model={inset:this.reverseConversionUnit(e.attributes.inset)};return true;default:return true}}parseText(){}parseClose(e){switch(e){case this.tag:return false;default:return true}}}e.exports=VmlTextboxXform},56944:function(e,t,r){const n=r(78975);class CompositeXform extends n{createNewModel(e){return{}}parseOpen(e){this.parser=this.parser||this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}if(e.name===this.tag){this.model=this.createNewModel(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e)}}onParserClose(e,t){this.model[e]=t.model}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.onParserClose(e,this.parser);this.parser=undefined}return true}return e!==this.tag}}e.exports=CompositeXform},71616:function(e,t,r){const n=r(78975);class AppHeadingPairsXform extends n{render(e,t){e.openNode("HeadingPairs");e.openNode("vt:vector",{size:2,baseType:"variant"});e.openNode("vt:variant");e.leafNode("vt:lpstr",undefined,"Worksheets");e.closeNode();e.openNode("vt:variant");e.leafNode("vt:i4",undefined,t.length);e.closeNode();e.closeNode();e.closeNode()}parseOpen(e){return e.name==="HeadingPairs"}parseText(){}parseClose(e){return e!=="HeadingPairs"}}e.exports=AppHeadingPairsXform},82931:function(e,t,r){const n=r(78975);class AppTitlesOfPartsXform extends n{render(e,t){e.openNode("TitlesOfParts");e.openNode("vt:vector",{size:t.length,baseType:"lpstr"});t.forEach((t=>{e.leafNode("vt:lpstr",undefined,t.name)}));e.closeNode();e.closeNode()}parseOpen(e){return e.name==="TitlesOfParts"}parseText(){}parseClose(e){return e!=="TitlesOfParts"}}e.exports=AppTitlesOfPartsXform},79001:function(e,t,r){const n=r(15643);const i=r(78975);const s=r(63663);const o=r(71616);const c=r(82931);class AppXform extends i{constructor(){super();this.map={Company:new s({tag:"Company"}),Manager:new s({tag:"Manager"}),HeadingPairs:new o,TitleOfParts:new c}}render(e,t){e.openXml(n.StdDocAttributes);e.openNode("Properties",AppXform.PROPERTY_ATTRIBUTES);e.leafNode("Application",undefined,"Microsoft Excel");e.leafNode("DocSecurity",undefined,"0");e.leafNode("ScaleCrop",undefined,"false");this.map.HeadingPairs.render(e,t.worksheets);this.map.TitleOfParts.render(e,t.worksheets);this.map.Company.render(e,t.company||"");this.map.Manager.render(e,t.manager);e.leafNode("LinksUpToDate",undefined,"false");e.leafNode("SharedDoc",undefined,"false");e.leafNode("HyperlinksChanged",undefined,"false");e.leafNode("AppVersion",undefined,"16.0300");e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"Properties":return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"Properties":this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model};return false;default:return true}}}AppXform.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,"")};AppXform.DateAttrs={"xsi:type":"dcterms:W3CDTF"};AppXform.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"};e.exports=AppXform},61871:function(e,t,r){const n=r(15643);const i=r(78975);class ContentTypesXform extends i{render(e,t){e.openXml(n.StdDocAttributes);e.openNode("Types",ContentTypesXform.PROPERTY_ATTRIBUTES);const r={};(t.media||[]).forEach((t=>{if(t.type==="image"){const n=t.extension;if(!r[n]){r[n]=true;e.leafNode("Default",{Extension:n,ContentType:`image/${n}`})}}}));e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"});e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"});e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"});t.worksheets.forEach((t=>{const r=`/xl/worksheets/sheet${t.id}.xml`;e.leafNode("Override",{PartName:r,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}));e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"});e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"});const i=t.sharedStrings&&t.sharedStrings.count;if(i){e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"})}if(t.tables){t.tables.forEach((t=>{e.leafNode("Override",{PartName:`/xl/tables/${t.target}`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}))}if(t.drawings){t.drawings.forEach((t=>{e.leafNode("Override",{PartName:`/xl/drawings/${t.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}))}if(t.commentRefs){e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"});t.commentRefs.forEach((({commentName:t})=>{e.leafNode("Override",{PartName:`/xl/${t}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})}))}e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"});e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"});e.closeNode()}parseOpen(){return false}parseText(){}parseClose(){return false}}ContentTypesXform.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"};e.exports=ContentTypesXform},86225:function(e,t,r){const n=r(15643);const i=r(78975);const s=r(42731);const o=r(63663);const c=r(2036);class CoreXform extends i{constructor(){super();this.map={"dc:creator":new o({tag:"dc:creator"}),"dc:title":new o({tag:"dc:title"}),"dc:subject":new o({tag:"dc:subject"}),"dc:description":new o({tag:"dc:description"}),"dc:identifier":new o({tag:"dc:identifier"}),"dc:language":new o({tag:"dc:language"}),"cp:keywords":new o({tag:"cp:keywords"}),"cp:category":new o({tag:"cp:category"}),"cp:lastModifiedBy":new o({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new s({tag:"cp:lastPrinted",format:CoreXform.DateFormat}),"cp:revision":new c({tag:"cp:revision"}),"cp:version":new o({tag:"cp:version"}),"cp:contentStatus":new o({tag:"cp:contentStatus"}),"cp:contentType":new o({tag:"cp:contentType"}),"dcterms:created":new s({tag:"dcterms:created",attrs:CoreXform.DateAttrs,format:CoreXform.DateFormat}),"dcterms:modified":new s({tag:"dcterms:modified",attrs:CoreXform.DateAttrs,format:CoreXform.DateFormat})}}render(e,t){e.openXml(n.StdDocAttributes);e.openNode("cp:coreProperties",CoreXform.CORE_PROPERTY_ATTRIBUTES);this.map["dc:creator"].render(e,t.creator);this.map["dc:title"].render(e,t.title);this.map["dc:subject"].render(e,t.subject);this.map["dc:description"].render(e,t.description);this.map["dc:identifier"].render(e,t.identifier);this.map["dc:language"].render(e,t.language);this.map["cp:keywords"].render(e,t.keywords);this.map["cp:category"].render(e,t.category);this.map["cp:lastModifiedBy"].render(e,t.lastModifiedBy);this.map["cp:lastPrinted"].render(e,t.lastPrinted);this.map["cp:revision"].render(e,t.revision);this.map["cp:version"].render(e,t.version);this.map["cp:contentStatus"].render(e,t.contentStatus);this.map["cp:contentType"].render(e,t.contentType);this.map["dcterms:created"].render(e,t.created);this.map["dcterms:modified"].render(e,t.modified);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"cp:coreProperties":case"coreProperties":return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"cp:coreProperties":case"coreProperties":this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model};return false;default:throw new Error(`Unexpected xml node in parseClose: ${e}`)}}}CoreXform.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,"")};CoreXform.DateAttrs={"xsi:type":"dcterms:W3CDTF"};CoreXform.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"};e.exports=CoreXform},57294:function(e,t,r){const n=r(78975);class RelationshipXform extends n{render(e,t){e.leafNode("Relationship",t)}parseOpen(e){switch(e.name){case"Relationship":this.model=e.attributes;return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=RelationshipXform},43905:function(e,t,r){const n=r(15643);const i=r(78975);const s=r(57294);class RelationshipsXform extends i{constructor(){super();this.map={Relationship:new s}}render(e,t){t=t||this._values;e.openXml(n.StdDocAttributes);e.openNode("Relationships",RelationshipsXform.RELATIONSHIPS_ATTRIBUTES);t.forEach((t=>{this.map.Relationship.render(e,t)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"Relationships":this.model=[];return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.push(this.parser.model);this.parser=undefined}return true}switch(e){case"Relationships":return false;default:throw new Error(`Unexpected xml node in parseClose: ${e}`)}}}RelationshipsXform.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"};e.exports=RelationshipsXform},96689:function(e,t,r){const n=r(78975);class BaseCellAnchorXform extends n{parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();this.model={range:{editAs:e.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}reconcilePicture(e,t){if(e&&e.rId){const r=t.rels[e.rId];const n=r.Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(n){const e=n[1];const r=t.mediaIndex[e];return t.media[r]}}return undefined}}e.exports=BaseCellAnchorXform},39066:function(e,t,r){const n=r(78975);const i=r(89121);class BlipFillXform extends n{constructor(){super();this.map={"a:blip":new i}}get tag(){return"xdr:blipFill"}render(e,t){e.openNode(this.tag);this.map["a:blip"].render(e,t);e.openNode("a:stretch");e.leafNode("a:fillRect");e.closeNode();e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model=this.map["a:blip"].model;return false;default:return true}}}e.exports=BlipFillXform},89121:function(e,t,r){const n=r(78975);class BlipXform extends n{get tag(){return"a:blip"}render(e,t){e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}parseOpen(e){switch(e.name){case this.tag:this.model={rId:e.attributes["r:embed"]};return true;default:return true}}parseText(){}parseClose(e){switch(e){case this.tag:return false;default:return true}}}e.exports=BlipXform},94307:function(e,t,r){const n=r(78975);class CNvPicPrXform extends n{get tag(){return"xdr:cNvPicPr"}render(e){e.openNode(this.tag);e.leafNode("a:picLocks",{noChangeAspect:"1"});e.closeNode()}parseOpen(e){switch(e.name){case this.tag:return true;default:return true}}parseText(){}parseClose(e){switch(e){case this.tag:return false;default:return true}}}e.exports=CNvPicPrXform},14754:function(e,t,r){const n=r(78975);const i=r(93924);const s=r(79672);class CNvPrXform extends n{constructor(){super();this.map={"a:hlinkClick":new i,"a:extLst":new s}}get tag(){return"xdr:cNvPr"}render(e,t){e.openNode(this.tag,{id:t.index,name:`Picture ${t.index}`});this.map["a:hlinkClick"].render(e,t);this.map["a:extLst"].render(e,t);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model=this.map["a:hlinkClick"].model;return false;default:return true}}}e.exports=CNvPrXform},3146:function(e,t,r){const n=r(78975);const i=r(2036);class CellPositionXform extends n{constructor(e){super();this.tag=e.tag;this.map={"xdr:col":new i({tag:"xdr:col",zero:true}),"xdr:colOff":new i({tag:"xdr:colOff",zero:true}),"xdr:row":new i({tag:"xdr:row",zero:true}),"xdr:rowOff":new i({tag:"xdr:rowOff",zero:true})}}render(e,t){e.openNode(this.tag);this.map["xdr:col"].render(e,t.nativeCol);this.map["xdr:colOff"].render(e,t.nativeColOff);this.map["xdr:row"].render(e,t.nativeRow);this.map["xdr:rowOff"].render(e,t.nativeRowOff);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model};return false;default:return true}}}e.exports=CellPositionXform},87736:function(e,t,r){const n=r(25646);const i=r(15643);const s=r(78975);const o=r(35114);const c=r(89650);function getAnchorType(e){const t=typeof e.range==="string"?n.decode(e.range):e.range;return t.br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}class DrawingXform extends s{constructor(){super();this.map={"xdr:twoCellAnchor":new o,"xdr:oneCellAnchor":new c}}prepare(e){e.anchors.forEach(((e,t)=>{e.anchorType=getAnchorType(e);const r=this.map[e.anchorType];r.prepare(e,{index:t})}))}get tag(){return"xdr:wsDr"}render(e,t){e.openXml(i.StdDocAttributes);e.openNode(this.tag,DrawingXform.DRAWING_ATTRIBUTES);t.anchors.forEach((t=>{const r=this.map[t.anchorType];r.render(e,t)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();this.model={anchors:[]};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.anchors.push(this.parser.model);this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}reconcile(e,t){e.anchors.forEach((e=>{if(e.br){this.map["xdr:twoCellAnchor"].reconcile(e,t)}else{this.map["xdr:oneCellAnchor"].reconcile(e,t)}}))}}DrawingXform.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"};e.exports=DrawingXform},79672:function(e,t,r){const n=r(78975);class ExtLstXform extends n{get tag(){return"a:extLst"}render(e){e.openNode(this.tag);e.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"});e.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"});e.closeNode();e.closeNode()}parseOpen(e){switch(e.name){case this.tag:return true;default:return true}}parseText(){}parseClose(e){switch(e){case this.tag:return false;default:return true}}}e.exports=ExtLstXform},60331:function(e,t,r){const n=r(78975);const i=9525;class ExtXform extends n{constructor(e){super();this.tag=e.tag;this.map={}}render(e,t){e.openNode(this.tag);const r=Math.floor(t.width*i);const n=Math.floor(t.height*i);e.addAttribute("cx",r);e.addAttribute("cy",n);e.closeNode()}parseOpen(e){if(e.name===this.tag){this.model={width:parseInt(e.attributes.cx||"0",10)/i,height:parseInt(e.attributes.cy||"0",10)/i};return true}return false}parseText(){}parseClose(){return false}}e.exports=ExtXform},93924:function(e,t,r){const n=r(78975);class HLinkClickXform extends n{get tag(){return"a:hlinkClick"}render(e,t){if(!(t.hyperlinks&&t.hyperlinks.rId)){return}e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}parseOpen(e){switch(e.name){case this.tag:this.model={hyperlinks:{rId:e.attributes["r:id"],tooltip:e.attributes.tooltip}};return true;default:return true}}parseText(){}parseClose(){return false}}e.exports=HLinkClickXform},15801:function(e,t,r){const n=r(78975);const i=r(14754);const s=r(94307);class NvPicPrXform extends n{constructor(){super();this.map={"xdr:cNvPr":new i,"xdr:cNvPicPr":new s}}get tag(){return"xdr:nvPicPr"}render(e,t){e.openNode(this.tag);this.map["xdr:cNvPr"].render(e,t);this.map["xdr:cNvPicPr"].render(e,t);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model=this.map["xdr:cNvPr"].model;return false;default:return true}}}e.exports=NvPicPrXform},89650:function(e,t,r){const n=r(96689);const i=r(21058);const s=r(3146);const o=r(60331);const c=r(76111);class OneCellAnchorXform extends n{constructor(){super();this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:ext":new o({tag:"xdr:ext"}),"xdr:pic":new c,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"});this.map["xdr:from"].render(e,t.range.tl);this.map["xdr:ext"].render(e,t.range.ext);this.map["xdr:pic"].render(e,t.picture);this.map["xdr:clientData"].render(e,{});e.closeNode()}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.range.tl=this.map["xdr:from"].model;this.model.range.ext=this.map["xdr:ext"].model;this.model.picture=this.map["xdr:pic"].model;return false;default:return true}}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}e.exports=OneCellAnchorXform},76111:function(e,t,r){const n=r(78975);const i=r(21058);const s=r(39066);const o=r(15801);const c=r(63235);class PicXform extends n{constructor(){super();this.map={"xdr:nvPicPr":new o,"xdr:blipFill":new s,"xdr:spPr":new i(c)}}get tag(){return"xdr:pic"}prepare(e,t){e.index=t.index+1}render(e,t){e.openNode(this.tag);this.map["xdr:nvPicPr"].render(e,t);this.map["xdr:blipFill"].render(e,t);this.map["xdr:spPr"].render(e,t);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.mergeModel(this.parser.model);this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}}e.exports=PicXform},63235:function(e){e.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},35114:function(e,t,r){const n=r(96689);const i=r(21058);const s=r(3146);const o=r(76111);class TwoCellAnchorXform extends n{constructor(){super();this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:to":new s({tag:"xdr:to"}),"xdr:pic":new o,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"});this.map["xdr:from"].render(e,t.range.tl);this.map["xdr:to"].render(e,t.range.br);this.map["xdr:pic"].render(e,t.picture);this.map["xdr:clientData"].render(e,{});e.closeNode()}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.range.tl=this.map["xdr:from"].model;this.model.range.br=this.map["xdr:to"].model;this.model.picture=this.map["xdr:pic"].model;return false;default:return true}}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}e.exports=TwoCellAnchorXform},49526:function(e,t,r){const n=r(78975);class ListXform extends n{constructor(e){super();this.tag=e.tag;this.always=!!e.always;this.count=e.count;this.empty=e.empty;this.$count=e.$count||"count";this.$=e.$;this.childXform=e.childXform;this.maxItems=e.maxItems}prepare(e,t){const{childXform:r}=this;if(e){e.forEach(((e,n)=>{t.index=n;r.prepare(e,t)}))}}render(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$);if(this.count){e.addAttribute(this.$count,t&&t.length||0)}const{childXform:r}=this;(t||[]).forEach(((t,n)=>{r.render(e,t,n)}));e.closeNode()}else if(this.empty){e.leafNode(this.tag)}}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.model=[];return true;default:if(this.childXform.parseOpen(e)){this.parser=this.childXform;return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.push(this.parser.model);this.parser=undefined;if(this.maxItems&&this.model.length>this.maxItems){throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`)}}return true}return false}reconcile(e,t){if(e){const{childXform:r}=this;e.forEach((e=>{r.reconcile(e,t)}))}}}e.exports=ListXform},78066:function(e,t,r){const n=r(25646);const i=r(78975);class AutoFilterXform extends i{get tag(){return"autoFilter"}render(e,t){if(t){if(typeof t==="string"){e.leafNode("autoFilter",{ref:t})}else{const getAddress=function(e){if(typeof e==="string"){return e}return n.getAddress(e.row,e.column).address};const r=getAddress(t.from);const i=getAddress(t.to);if(r&&i){e.leafNode("autoFilter",{ref:`${r}:${i}`})}}}}parseOpen(e){if(e.name==="autoFilter"){this.model=e.attributes.ref}}}e.exports=AutoFilterXform},97170:function(e,t,r){const n=r(55049);const i=r(78975);const s=r(29146);const o=r(34244);const c=r(80188);function getValueType(e){if(e===null||e===undefined){return o.ValueType.Null}if(e instanceof String||typeof e==="string"){return o.ValueType.String}if(typeof e==="number"){return o.ValueType.Number}if(typeof e==="boolean"){return o.ValueType.Boolean}if(e instanceof Date){return o.ValueType.Date}if(e.text&&e.hyperlink){return o.ValueType.Hyperlink}if(e.formula){return o.ValueType.Formula}if(e.error){return o.ValueType.Error}throw new Error("I could not understand type of value")}function getEffectiveCellType(e){switch(e.type){case o.ValueType.Formula:return getValueType(e.result);default:return e.type}}class CellXform extends i{constructor(){super();this.richTextXForm=new c}get tag(){return"c"}prepare(e,t){const r=t.styles.addStyleModel(e.style||{},getEffectiveCellType(e));if(r){e.styleId=r}if(e.comment){t.comments.push({...e.comment,ref:e.address})}switch(e.type){case o.ValueType.String:case o.ValueType.RichText:if(t.sharedStrings){e.ssId=t.sharedStrings.add(e.value)}break;case o.ValueType.Date:if(t.date1904){e.date1904=true}break;case o.ValueType.Hyperlink:if(t.sharedStrings&&e.text!==undefined&&e.text!==null){e.ssId=t.sharedStrings.add(e.text)}t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case o.ValueType.Merge:t.merges.add(e);break;case o.ValueType.Formula:if(t.date1904){e.date1904=true}if(e.shareType==="shared"){e.si=t.siFormulae++}if(e.formula){t.formulae[e.address]=e}else if(e.sharedFormula){const r=t.formulae[e.sharedFormula];if(!r){throw new Error(`Shared Formula master must exist above and or left of clone for cell ${e.address}`)}if(r.si===undefined){r.shareType="shared";r.si=t.siFormulae++;r.range=new s(r.address,e.address)}else if(r.range){r.range.expandToAddress(e.address)}e.si=r.si}break;default:break}}renderFormula(e,t){let r=null;switch(t.shareType){case"shared":r={t:"shared",ref:t.ref||t.range.range,si:t.si};break;case"array":r={t:"array",ref:t.ref};break;default:if(t.si!==undefined){r={t:"shared",si:t.si}}break}switch(getValueType(t.result)){case o.ValueType.Null:e.leafNode("f",r,t.formula);break;case o.ValueType.String:e.addAttribute("t","str");e.leafNode("f",r,t.formula);e.leafNode("v",null,t.result);break;case o.ValueType.Number:e.leafNode("f",r,t.formula);e.leafNode("v",null,t.result);break;case o.ValueType.Boolean:e.addAttribute("t","b");e.leafNode("f",r,t.formula);e.leafNode("v",null,t.result?1:0);break;case o.ValueType.Error:e.addAttribute("t","e");e.leafNode("f",r,t.formula);e.leafNode("v",null,t.result.error);break;case o.ValueType.Date:e.leafNode("f",r,t.formula);e.leafNode("v",null,n.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}}render(e,t){if(t.type===o.ValueType.Null&&!t.styleId){return}e.openNode("c");e.addAttribute("r",t.address);if(t.styleId){e.addAttribute("s",t.styleId)}switch(t.type){case o.ValueType.Null:break;case o.ValueType.Number:e.leafNode("v",null,t.value);break;case o.ValueType.Boolean:e.addAttribute("t","b");e.leafNode("v",null,t.value?"1":"0");break;case o.ValueType.Error:e.addAttribute("t","e");e.leafNode("v",null,t.value.error);break;case o.ValueType.String:case o.ValueType.RichText:if(t.ssId!==undefined){e.addAttribute("t","s");e.leafNode("v",null,t.ssId)}else if(t.value&&t.value.richText){e.addAttribute("t","inlineStr");e.openNode("is");t.value.richText.forEach((t=>{this.richTextXForm.render(e,t)}));e.closeNode("is")}else{e.addAttribute("t","str");e.leafNode("v",null,t.value)}break;case o.ValueType.Date:e.leafNode("v",null,n.dateToExcel(t.value,t.date1904));break;case o.ValueType.Hyperlink:if(t.ssId!==undefined){e.addAttribute("t","s");e.leafNode("v",null,t.ssId)}else{e.addAttribute("t","str");e.leafNode("v",null,t.text)}break;case o.ValueType.Formula:this.renderFormula(e,t);break;case o.ValueType.Merge:break;default:break}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"c":this.model={address:e.attributes.r};this.t=e.attributes.t;if(e.attributes.s){this.model.styleId=parseInt(e.attributes.s,10)}return true;case"f":this.currentNode="f";this.model.si=e.attributes.si;this.model.shareType=e.attributes.t;this.model.ref=e.attributes.ref;return true;case"v":this.currentNode="v";return true;case"t":this.currentNode="t";return true;case"r":this.parser=this.richTextXForm;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e);return}switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;break;case"v":case"t":if(this.model.value&&this.model.value.richText){this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e}else{this.model.value=this.model.value?this.model.value+e:e}break;default:break}}parseClose(e){switch(e){case"c":{const{model:e}=this;if(e.formula||e.shareType){e.type=o.ValueType.Formula;if(e.value){if(this.t==="str"){e.result=n.xmlDecode(e.value)}else if(this.t==="b"){e.result=parseInt(e.value,10)!==0}else if(this.t==="e"){e.result={error:e.value}}else{e.result=parseFloat(e.value)}e.value=undefined}}else if(e.value!==undefined){switch(this.t){case"s":e.type=o.ValueType.String;e.value=parseInt(e.value,10);break;case"str":e.type=o.ValueType.String;e.value=n.xmlDecode(e.value);break;case"inlineStr":e.type=o.ValueType.String;break;case"b":e.type=o.ValueType.Boolean;e.value=parseInt(e.value,10)!==0;break;case"e":e.type=o.ValueType.Error;e.value={error:e.value};break;default:e.type=o.ValueType.Number;e.value=parseFloat(e.value);break}}else if(e.styleId){e.type=o.ValueType.Null}else{e.type=o.ValueType.Merge}return false}case"f":case"v":case"is":this.currentNode=undefined;return true;case"t":if(this.parser){this.parser.parseClose(e);return true}this.currentNode=undefined;return true;case"r":this.model.value=this.model.value||{};this.model.value.richText=this.model.value.richText||[];this.model.value.richText.push(this.parser.model);this.parser=undefined;this.currentNode=undefined;return true;default:if(this.parser){this.parser.parseClose(e);return true}return false}}reconcile(e,t){const r=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);if(r){e.style=r}if(e.styleId!==undefined){e.styleId=undefined}switch(e.type){case o.ValueType.String:if(typeof e.value==="number"){if(t.sharedStrings){e.value=t.sharedStrings.getString(e.value)}}if(e.value.richText){e.type=o.ValueType.RichText}break;case o.ValueType.Number:if(r&&n.isDateFmt(r.numFmt)){e.type=o.ValueType.Date;e.value=n.excelToDate(e.value,t.date1904)}break;case o.ValueType.Formula:if(e.result!==undefined&&r&&n.isDateFmt(r.numFmt)){e.result=n.excelToDate(e.result,t.date1904)}if(e.shareType==="shared"){if(e.ref){t.formulae[e.si]=e.address}else{e.sharedFormula=t.formulae[e.si];delete e.shareType}delete e.si}break;default:break}const i=t.hyperlinkMap[e.address];if(i){if(e.type===o.ValueType.Formula){e.text=e.result;e.result=undefined}else{e.text=e.value;e.value=undefined}e.type=o.ValueType.Hyperlink;e.hyperlink=i}const s=t.commentsMap&&t.commentsMap[e.address];if(s){e.comment=s}}}e.exports=CellXform},51965:function(e,t,r){const n=r(78975);class CfIconExtXform extends n{get tag(){return"x14:cfIcon"}render(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}parseOpen({attributes:e}){this.model={iconSet:e.iconSet,iconId:n.toIntValue(e.iconId)}}parseClose(e){return e!==this.tag}}e.exports=CfIconExtXform},81804:function(e,t,r){const{v4:n}=r(34320);const i=r(78975);const s=r(56944);const o=r(81376);const c=r(86896);const h={"3Triangles":true,"3Stars":true,"5Boxes":true};class CfRuleExtXform extends s{constructor(){super();this.map={"x14:dataBar":this.databarXform=new o,"x14:iconSet":this.iconSetXform=new c}}get tag(){return"x14:cfRule"}static isExt(e){if(e.type==="dataBar"){return o.isExt(e)}if(e.type==="iconSet"){if(e.custom||h[e.iconSet]){return true}}return false}prepare(e){if(CfRuleExtXform.isExt(e)){e.x14Id=`{${n()}}`.toUpperCase()}}render(e,t){if(!CfRuleExtXform.isExt(t)){return}switch(t.type){case"dataBar":this.renderDataBar(e,t);break;case"iconSet":this.renderIconSet(e,t);break}}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",id:t.x14Id});this.databarXform.render(e,t);e.closeNode()}renderIconSet(e,t){e.openNode(this.tag,{type:"iconSet",priority:t.priority,id:t.x14Id||`{${n()}}`});this.iconSetXform.render(e,t);e.closeNode()}createNewModel({attributes:e}){return{type:e.type,x14Id:e.id,priority:i.toIntValue(e.priority)}}onParserClose(e,t){Object.assign(this.model,t.model)}}e.exports=CfRuleExtXform},621:function(e,t,r){const n=r(56944);const i=r(79203);class CfvoExtXform extends n{constructor(){super();this.map={"xm:f":this.fExtXform=new i}}get tag(){return"x14:cfvo"}render(e,t){e.openNode(this.tag,{type:t.type});if(t.value!==undefined){this.fExtXform.render(e,t.value)}e.closeNode()}createNewModel(e){return{type:e.attributes.type}}onParserClose(e,t){switch(e){case"xm:f":this.model.value=t.model?parseFloat(t.model):0;break}}}e.exports=CfvoExtXform},61780:function(e,t,r){const n=r(56944);const i=r(42);const s=r(81804);class ConditionalFormattingExtXform extends n{constructor(){super();this.map={"xm:sqref":this.sqRef=new i,"x14:cfRule":this.cfRule=new s}}get tag(){return"x14:conditionalFormatting"}prepare(e,t){e.rules.forEach((e=>{this.cfRule.prepare(e,t)}))}render(e,t){if(!t.rules.some(s.isExt)){return}e.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"});t.rules.filter(s.isExt).forEach((t=>this.cfRule.render(e,t)));this.sqRef.render(e,t.ref);e.closeNode()}createNewModel(){return{rules:[]}}onParserClose(e,t){switch(e){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model);break}}}e.exports=ConditionalFormattingExtXform},38440:function(e,t,r){const n=r(56944);const i=r(81804);const s=r(61780);class ConditionalFormattingsExtXform extends n{constructor(){super();this.map={"x14:conditionalFormatting":this.cfXform=new s}}get tag(){return"x14:conditionalFormattings"}hasContent(e){if(e.hasExtContent===undefined){e.hasExtContent=e.some((e=>e.rules.some(i.isExt)))}return e.hasExtContent}prepare(e,t){e.forEach((e=>{this.cfXform.prepare(e,t)}))}render(e,t){if(this.hasContent(t)){e.openNode(this.tag);t.forEach((t=>this.cfXform.render(e,t)));e.closeNode()}}createNewModel(){return[]}onParserClose(e,t){this.model.push(t.model)}}e.exports=ConditionalFormattingsExtXform},81376:function(e,t,r){const n=r(78975);const i=r(56944);const s=r(94661);const o=r(621);class DatabarExtXform extends i{constructor(){super();this.map={"x14:cfvo":this.cfvoXform=new o,"x14:borderColor":this.borderColorXform=new s("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new s("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new s("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new s("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,t){e.openNode(this.tag,{minLength:n.toIntAttribute(t.minLength,0,true),maxLength:n.toIntAttribute(t.maxLength,100,true),border:n.toBoolAttribute(t.border,false),gradient:n.toBoolAttribute(t.gradient,true),negativeBarColorSameAsPositive:n.toBoolAttribute(t.negativeBarColorSameAsPositive,true),negativeBarBorderColorSameAsPositive:n.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,true),axisPosition:n.toAttribute(t.axisPosition,"auto"),direction:n.toAttribute(t.direction,"leftToRight")});t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));this.borderColorXform.render(e,t.borderColor);this.negativeBorderColorXform.render(e,t.negativeBorderColor);this.negativeFillColorXform.render(e,t.negativeFillColor);this.axisColorXform.render(e,t.axisColor);e.closeNode()}createNewModel({attributes:e}){return{cfvo:[],minLength:n.toIntValue(e.minLength,0),maxLength:n.toIntValue(e.maxLength,100),border:n.toBoolValue(e.border,false),gradient:n.toBoolValue(e.gradient,true),negativeBarColorSameAsPositive:n.toBoolValue(e.negativeBarColorSameAsPositive,true),negativeBarBorderColorSameAsPositive:n.toBoolValue(e.negativeBarBorderColorSameAsPositive,true),axisPosition:n.toStringValue(e.axisPosition,"auto"),direction:n.toStringValue(e.direction,"leftToRight")}}onParserClose(e,t){const[,r]=e.split(":");switch(r){case"cfvo":this.model.cfvo.push(t.model);break;default:this.model[r]=t.model;break}}}e.exports=DatabarExtXform},79203:function(e,t,r){const n=r(78975);class FExtXform extends n{get tag(){return"xm:f"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}e.exports=FExtXform},86896:function(e,t,r){const n=r(78975);const i=r(56944);const s=r(621);const o=r(51965);class IconSetExtXform extends i{constructor(){super();this.map={"x14:cfvo":this.cfvoXform=new s,"x14:cfIcon":this.cfIconXform=new o}}get tag(){return"x14:iconSet"}render(e,t){e.openNode(this.tag,{iconSet:n.toStringAttribute(t.iconSet),reverse:n.toBoolAttribute(t.reverse,false),showValue:n.toBoolAttribute(t.showValue,true),custom:n.toBoolAttribute(t.icons,false)});t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));if(t.icons){t.icons.forEach(((t,r)=>{t.iconId=r;this.cfIconXform.render(e,t)}))}e.closeNode()}createNewModel({attributes:e}){return{cfvo:[],iconSet:n.toStringValue(e.iconSet,"3TrafficLights"),reverse:n.toBoolValue(e.reverse,false),showValue:n.toBoolValue(e.showValue,true)}}onParserClose(e,t){const[,r]=e.split(":");switch(r){case"cfvo":this.model.cfvo.push(t.model);break;case"cfIcon":if(!this.model.icons){this.model.icons=[]}this.model.icons.push(t.model);break;default:this.model[r]=t.model;break}}}e.exports=IconSetExtXform},42:function(e,t,r){const n=r(78975);class SqrefExtXform extends n{get tag(){return"xm:sqref"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}e.exports=SqrefExtXform},53341:function(e,t,r){const n=r(78975);const i=r(56944);const s=r(29146);const o=r(38742);const c=r(82245);const h=r(3215);const p=r(73539);const g=r(32349);const y={"3Triangles":true,"3Stars":true,"5Boxes":true};const getTextFormula=e=>{if(e.formulae&&e.formulae[0]){return e.formulae[0]}const t=new s(e.ref);const{tl:r}=t;switch(e.operator){case"containsText":return`NOT(ISERROR(SEARCH("${e.text}",${r})))`;case"containsBlanks":return`LEN(TRIM(${r}))=0`;case"notContainsBlanks":return`LEN(TRIM(${r}))>0`;case"containsErrors":return`ISERROR(${r})`;case"notContainsErrors":return`NOT(ISERROR(${r}))`;default:return undefined}};const getTimePeriodFormula=e=>{if(e.formulae&&e.formulae[0]){return e.formulae[0]}const t=new s(e.ref);const{tl:r}=t;switch(e.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${r},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${r},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${r},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${r},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${r},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${r},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${r},1)=TODAY()-1`;case"today":return`FLOOR(${r},1)=TODAY()`;case"tomorrow":return`FLOOR(${r},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${r},1)<=6,FLOOR(${r},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${r})=MONTH(EDATE(TODAY(),0-1)),YEAR(${r})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${r})=MONTH(TODAY()),YEAR(${r})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${r})=MONTH(EDATE(TODAY(),0+1)),YEAR(${r})=YEAR(EDATE(TODAY(),0+1)))`;default:return undefined}};const opType=e=>{const{type:t,operator:r}=e;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:r}}};class CfRuleXform extends i{constructor(){super();this.map={dataBar:this.databarXform=new o,extLst:this.extLstRefXform=new c,formula:this.formulaXform=new h,colorScale:this.colorScaleXform=new p,iconSet:this.iconSetXform=new g}}get tag(){return"cfRule"}static isPrimitive(e){if(e.type==="iconSet"){if(e.custom||y[e.iconSet]){return false}}return true}render(e,t){switch(t.type){case"expression":this.renderExpression(e,t);break;case"cellIs":this.renderCellIs(e,t);break;case"top10":this.renderTop10(e,t);break;case"aboveAverage":this.renderAboveAverage(e,t);break;case"dataBar":this.renderDataBar(e,t);break;case"colorScale":this.renderColorScale(e,t);break;case"iconSet":this.renderIconSet(e,t);break;case"containsText":this.renderText(e,t);break;case"timePeriod":this.renderTimePeriod(e,t);break}}renderExpression(e,t){e.openNode(this.tag,{type:"expression",dxfId:t.dxfId,priority:t.priority});this.formulaXform.render(e,t.formulae[0]);e.closeNode()}renderCellIs(e,t){e.openNode(this.tag,{type:"cellIs",dxfId:t.dxfId,priority:t.priority,operator:t.operator});t.formulae.forEach((t=>{this.formulaXform.render(e,t)}));e.closeNode()}renderTop10(e,t){e.leafNode(this.tag,{type:"top10",dxfId:t.dxfId,priority:t.priority,percent:n.toBoolAttribute(t.percent,false),bottom:n.toBoolAttribute(t.bottom,false),rank:n.toIntValue(t.rank,10,true)})}renderAboveAverage(e,t){e.leafNode(this.tag,{type:"aboveAverage",dxfId:t.dxfId,priority:t.priority,aboveAverage:n.toBoolAttribute(t.aboveAverage,true)})}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",priority:t.priority});this.databarXform.render(e,t);this.extLstRefXform.render(e,t);e.closeNode()}renderColorScale(e,t){e.openNode(this.tag,{type:"colorScale",priority:t.priority});this.colorScaleXform.render(e,t);e.closeNode()}renderIconSet(e,t){if(!CfRuleXform.isPrimitive(t)){return}e.openNode(this.tag,{type:"iconSet",priority:t.priority});this.iconSetXform.render(e,t);e.closeNode()}renderText(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:n.toStringAttribute(t.operator,"containsText")});const r=getTextFormula(t);if(r){this.formulaXform.render(e,r)}e.closeNode()}renderTimePeriod(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});const r=getTimePeriodFormula(t);if(r){this.formulaXform.render(e,r)}e.closeNode()}createNewModel({attributes:e}){return{...opType(e),dxfId:n.toIntValue(e.dxfId),priority:n.toIntValue(e.priority),timePeriod:e.timePeriod,percent:n.toBoolValue(e.percent),bottom:n.toBoolValue(e.bottom),rank:n.toIntValue(e.rank),aboveAverage:n.toBoolValue(e.aboveAverage)}}onParserClose(e,t){switch(e){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,t.model);break;case"formula":this.model.formulae=this.model.formulae||[];this.model.formulae.push(t.model);break}}}e.exports=CfRuleXform},17942:function(e,t,r){const n=r(78975);class CfvoXform extends n{get tag(){return"cfvo"}render(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}parseOpen(e){this.model={type:e.attributes.type,value:n.toFloatValue(e.attributes.val)}}parseClose(e){return e!==this.tag}}e.exports=CfvoXform},73539:function(e,t,r){const n=r(56944);const i=r(94661);const s=r(17942);class ColorScaleXform extends n{constructor(){super();this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new i}}get tag(){return"colorScale"}render(e,t){e.openNode(this.tag);t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));t.color.forEach((t=>{this.colorXform.render(e,t)}));e.closeNode()}createNewModel(e){return{cfvo:[],color:[]}}onParserClose(e,t){this.model[e].push(t.model)}}e.exports=ColorScaleXform},85492:function(e,t,r){const n=r(56944);const i=r(53341);class ConditionalFormattingXform extends n{constructor(){super();this.map={cfRule:new i}}get tag(){return"conditionalFormatting"}render(e,t){if(!t.rules.some(i.isPrimitive)){return}e.openNode(this.tag,{sqref:t.ref});t.rules.forEach((r=>{if(i.isPrimitive(r)){r.ref=t.ref;this.map.cfRule.render(e,r)}}));e.closeNode()}createNewModel({attributes:e}){return{ref:e.sqref,rules:[]}}onParserClose(e,t){this.model.rules.push(t.model)}}e.exports=ConditionalFormattingXform},88362:function(e,t,r){const n=r(78975);const i=r(85492);class ConditionalFormattingsXform extends n{constructor(){super();this.cfXform=new i}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(e,t){let r=e.reduce(((e,t)=>Math.max(e,...t.rules.map((e=>e.priority||0)))),1);e.forEach((e=>{e.rules.forEach((e=>{if(!e.priority){e.priority=r++}if(e.style){e.dxfId=t.styles.addDxfStyle(e.style)}}))}))}render(e,t){t.forEach((t=>{this.cfXform.render(e,t)}))}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"conditionalFormatting":this.parser=this.cfXform;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.push(this.parser.model);this.parser=undefined;return false}return true}return false}reconcile(e,t){e.forEach((e=>{e.rules.forEach((e=>{if(e.dxfId!==undefined){e.style=t.styles.getDxfStyle(e.dxfId);delete e.dxfId}}))}))}}e.exports=ConditionalFormattingsXform},38742:function(e,t,r){const n=r(56944);const i=r(94661);const s=r(17942);class DatabarXform extends n{constructor(){super();this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new i}}get tag(){return"dataBar"}render(e,t){e.openNode(this.tag);t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));this.colorXform.render(e,t.color);e.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(e,t){switch(e){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model;break}}}e.exports=DatabarXform},82245:function(e,t,r){const n=r(78975);const i=r(56944);class X14IdXform extends n{get tag(){return"x14:id"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class ExtXform extends i{constructor(){super();this.map={"x14:id":this.idXform=new X14IdXform}}get tag(){return"ext"}render(e,t){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"});this.idXform.render(e,t.x14Id);e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model.x14Id=t.model}}class ExtLstRefXform extends i{constructor(){super();this.map={ext:new ExtXform}}get tag(){return"extLst"}render(e,t){e.openNode(this.tag);this.map.ext.render(e,t);e.closeNode()}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}e.exports=ExtLstRefXform},3215:function(e,t,r){const n=r(78975);class FormulaXform extends n{get tag(){return"formula"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}e.exports=FormulaXform},32349:function(e,t,r){const n=r(78975);const i=r(56944);const s=r(17942);class IconSetXform extends i{constructor(){super();this.map={cfvo:this.cfvoXform=new s}}get tag(){return"iconSet"}render(e,t){e.openNode(this.tag,{iconSet:n.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:n.toBoolAttribute(t.reverse,false),showValue:n.toBoolAttribute(t.showValue,true)});t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)}));e.closeNode()}createNewModel({attributes:e}){return{iconSet:n.toStringValue(e.iconSet,"3TrafficLights"),reverse:n.toBoolValue(e.reverse),showValue:n.toBoolValue(e.showValue),cfvo:[]}}onParserClose(e,t){this.model[e].push(t.model)}}e.exports=IconSetXform},56379:function(e,t,r){const n=r(55049);const i=r(78975);class ColXform extends i{get tag(){return"col"}prepare(e,t){const r=t.styles.addStyleModel(e.style||{});if(r){e.styleId=r}}render(e,t){e.openNode("col");e.addAttribute("min",t.min);e.addAttribute("max",t.max);if(t.width){e.addAttribute("width",t.width)}if(t.styleId){e.addAttribute("style",t.styleId)}if(t.hidden){e.addAttribute("hidden","1")}if(t.bestFit){e.addAttribute("bestFit","1")}if(t.outlineLevel){e.addAttribute("outlineLevel",t.outlineLevel)}if(t.collapsed){e.addAttribute("collapsed","1")}e.addAttribute("customWidth","1");e.closeNode()}parseOpen(e){if(e.name==="col"){const t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:e.attributes.width===undefined?undefined:parseFloat(e.attributes.width||"0")};if(e.attributes.style){t.styleId=parseInt(e.attributes.style,10)}if(n.parseBoolean(e.attributes.hidden)){t.hidden=true}if(n.parseBoolean(e.attributes.bestFit)){t.bestFit=true}if(e.attributes.outlineLevel){t.outlineLevel=parseInt(e.attributes.outlineLevel,10)}if(n.parseBoolean(e.attributes.collapsed)){t.collapsed=true}return true}return false}parseText(){}parseClose(){return false}reconcile(e,t){if(e.styleId){e.style=t.styles.getStyleModel(e.styleId)}}}e.exports=ColXform},63258:function(e,t,r){const n=r(10642);const i=r(55049);const s=r(25646);const o=r(78975);const c=r(29146);function assign(e,t,r,n){const i=t[r];if(i!==undefined){e[r]=i}else if(n!==undefined){e[r]=n}}function assignBool(e,t,r,n){const s=t[r];if(s!==undefined){e[r]=i.parseBoolean(s)}else if(n!==undefined){e[r]=n}}function optimiseDataValidations(e){const t=n.map(e,((e,t)=>({address:t,dataValidation:e,marked:false}))).sort(((e,t)=>n.strcmp(e.address,t.address)));const r=n.keyBy(t,"address");const matchCol=(t,r,i)=>{for(let o=0;o<r;o++){const r=s.encodeAddress(t.row+o,i);if(!e[r]||!n.isEqual(e[t.address],e[r])){return false}}return true};return t.map((t=>{if(!t.marked){const i=s.decodeEx(t.address);if(i.dimensions){r[i.dimensions].marked=true;return{...t.dataValidation,sqref:t.address}}let o=1;let c=s.encodeAddress(i.row+o,i.col);while(e[c]&&n.isEqual(t.dataValidation,e[c])){o++;c=s.encodeAddress(i.row+o,i.col)}let h=1;while(matchCol(i,o,i.col+h)){h++}for(let e=0;e<o;e++){for(let t=0;t<h;t++){c=s.encodeAddress(i.row+e,i.col+t);r[c].marked=true}}if(o>1||h>1){const e=i.row+(o-1);const r=i.col+(h-1);return{...t.dataValidation,sqref:`${t.address}:${s.encodeAddress(e,r)}`}}return{...t.dataValidation,sqref:t.address}}return null})).filter(Boolean)}class DataValidationsXform extends o{get tag(){return"dataValidations"}render(e,t){const r=optimiseDataValidations(t);if(r.length){e.openNode("dataValidations",{count:r.length});r.forEach((t=>{e.openNode("dataValidation");if(t.type!=="any"){e.addAttribute("type",t.type);if(t.operator&&t.type!=="list"&&t.operator!=="between"){e.addAttribute("operator",t.operator)}if(t.allowBlank){e.addAttribute("allowBlank","1")}}if(t.showInputMessage){e.addAttribute("showInputMessage","1")}if(t.promptTitle){e.addAttribute("promptTitle",t.promptTitle)}if(t.prompt){e.addAttribute("prompt",t.prompt)}if(t.showErrorMessage){e.addAttribute("showErrorMessage","1")}if(t.errorStyle){e.addAttribute("errorStyle",t.errorStyle)}if(t.errorTitle){e.addAttribute("errorTitle",t.errorTitle)}if(t.error){e.addAttribute("error",t.error)}e.addAttribute("sqref",t.sqref);(t.formulae||[]).forEach(((r,n)=>{e.openNode(`formula${n+1}`);if(t.type==="date"){e.writeText(i.dateToExcel(new Date(r)))}else{e.writeText(r)}e.closeNode()}));e.closeNode()}));e.closeNode()}}parseOpen(e){switch(e.name){case"dataValidations":this.model={};return true;case"dataValidation":{this._address=e.attributes.sqref;const t={type:e.attributes.type||"any",formulae:[]};if(e.attributes.type){assignBool(t,e.attributes,"allowBlank")}assignBool(t,e.attributes,"showInputMessage");assignBool(t,e.attributes,"showErrorMessage");switch(t.type){case"any":case"list":case"custom":break;default:assign(t,e.attributes,"operator","between");break}assign(t,e.attributes,"promptTitle");assign(t,e.attributes,"prompt");assign(t,e.attributes,"errorStyle");assign(t,e.attributes,"errorTitle");assign(t,e.attributes,"error");this._dataValidation=t;return true}case"formula1":case"formula2":this._formula=[];return true;default:return false}}parseText(e){if(this._formula){this._formula.push(e)}}parseClose(e){switch(e){case"dataValidations":return false;case"dataValidation":{if(!this._dataValidation.formulae||!this._dataValidation.formulae.length){delete this._dataValidation.formulae;delete this._dataValidation.operator}const e=this._address.split(/\s+/g)||[];e.forEach((e=>{if(e.includes(":")){const t=new c(e);t.forEachAddress((e=>{this.model[e]=this._dataValidation}))}else{this.model[e]=this._dataValidation}}));return true}case"formula1":case"formula2":{let e=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":e=parseInt(e,10);break;case"decimal":e=parseFloat(e);break;case"date":e=i.excelToDate(parseFloat(e));break;default:break}this._dataValidation.formulae.push(e);this._formula=undefined;return true}default:return true}}}e.exports=DataValidationsXform},42454:function(e,t,r){const n=r(78975);class DimensionXform extends n{get tag(){return"dimension"}render(e,t){if(t){e.leafNode("dimension",{ref:t})}}parseOpen(e){if(e.name==="dimension"){this.model=e.attributes.ref;return true}return false}parseText(){}parseClose(){return false}}e.exports=DimensionXform},158:function(e,t,r){const n=r(78975);class DrawingXform extends n{get tag(){return"drawing"}render(e,t){if(t){e.leafNode(this.tag,{"r:id":t.rId})}}parseOpen(e){switch(e.name){case this.tag:this.model={rId:e.attributes["r:id"]};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=DrawingXform},66239:function(e,t,r){const n=r(56944);const i=r(38440);class ExtXform extends n{constructor(){super();this.map={"x14:conditionalFormattings":this.conditionalFormattings=new i}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}render(e,t){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"});this.conditionalFormattings.render(e,t.conditionalFormattings);e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model[e]=t.model}}class ExtLstXform extends n{constructor(){super();this.map={ext:this.ext=new ExtXform}}get tag(){return"extLst"}prepare(e,t){this.ext.prepare(e,t)}hasContent(e){return this.ext.hasContent(e)}render(e,t){if(!this.hasContent(t)){return}e.openNode("extLst");this.ext.render(e,t);e.closeNode()}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}e.exports=ExtLstXform},50941:function(e,t,r){const n=r(78975);class HeaderFooterXform extends n{get tag(){return"headerFooter"}render(e,t){if(t){e.addRollback();let r=false;e.openNode("headerFooter");if(t.differentFirst){e.addAttribute("differentFirst","1");r=true}if(t.differentOddEven){e.addAttribute("differentOddEven","1");r=true}if(t.oddHeader&&typeof t.oddHeader==="string"){e.leafNode("oddHeader",null,t.oddHeader);r=true}if(t.oddFooter&&typeof t.oddFooter==="string"){e.leafNode("oddFooter",null,t.oddFooter);r=true}if(t.evenHeader&&typeof t.evenHeader==="string"){e.leafNode("evenHeader",null,t.evenHeader);r=true}if(t.evenFooter&&typeof t.evenFooter==="string"){e.leafNode("evenFooter",null,t.evenFooter);r=true}if(t.firstHeader&&typeof t.firstHeader==="string"){e.leafNode("firstHeader",null,t.firstHeader);r=true}if(t.firstFooter&&typeof t.firstFooter==="string"){e.leafNode("firstFooter",null,t.firstFooter);r=true}if(r){e.closeNode();e.commit()}else{e.rollback()}}}parseOpen(e){switch(e.name){case"headerFooter":this.model={};if(e.attributes.differentFirst){this.model.differentFirst=parseInt(e.attributes.differentFirst,0)===1}if(e.attributes.differentOddEven){this.model.differentOddEven=parseInt(e.attributes.differentOddEven,0)===1}return true;case"oddHeader":this.currentNode="oddHeader";return true;case"oddFooter":this.currentNode="oddFooter";return true;case"evenHeader":this.currentNode="evenHeader";return true;case"evenFooter":this.currentNode="evenFooter";return true;case"firstHeader":this.currentNode="firstHeader";return true;case"firstFooter":this.currentNode="firstFooter";return true;default:return false}}parseText(e){switch(this.currentNode){case"oddHeader":this.model.oddHeader=e;break;case"oddFooter":this.model.oddFooter=e;break;case"evenHeader":this.model.evenHeader=e;break;case"evenFooter":this.model.evenFooter=e;break;case"firstHeader":this.model.firstHeader=e;break;case"firstFooter":this.model.firstFooter=e;break;default:break}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":this.currentNode=undefined;return true;default:return false}}}e.exports=HeaderFooterXform},20699:function(e,t,r){const n=r(78975);class HyperlinkXform extends n{get tag(){return"hyperlink"}render(e,t){if(this.isInternalLink(t)){e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target})}else{e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}}parseOpen(e){if(e.name==="hyperlink"){this.model={address:e.attributes.ref,rId:e.attributes["r:id"],tooltip:e.attributes.tooltip};if(e.attributes.location){this.model.target=e.attributes.location}return true}return false}parseText(){}parseClose(){return false}isInternalLink(e){return e.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(e.target)}}e.exports=HyperlinkXform},62327:function(e,t,r){const n=r(78975);class MergeCellXform extends n{get tag(){return"mergeCell"}render(e,t){e.leafNode("mergeCell",{ref:t})}parseOpen(e){if(e.name==="mergeCell"){this.model=e.attributes.ref;return true}return false}parseText(){}parseClose(){return false}}e.exports=MergeCellXform},46717:function(e,t,r){const n=r(10642);const i=r(29146);const s=r(25646);const o=r(34244);class Merges{constructor(){this.merges={}}add(e){if(this.merges[e.master]){this.merges[e.master].expandToAddress(e.address)}else{const t=`${e.master}:${e.address}`;this.merges[e.master]=new i(t)}}get mergeCells(){return n.map(this.merges,(e=>e.range))}reconcile(e,t){n.each(e,(e=>{const r=s.decode(e);for(let e=r.top;e<=r.bottom;e++){const n=t[e-1];for(let t=r.left;t<=r.right;t++){const i=n.cells[t-1];if(!i){n.cells[t]={type:o.ValueType.Null,address:s.encodeAddress(e,t)}}else if(i.type===o.ValueType.Merge){i.master=r.tl}}}}))}getMasterAddress(e){const t=this.hash[e];return t&&t.tl}}e.exports=Merges},62728:function(e,t,r){const n=r(78975);const isDefined=e=>typeof e!=="undefined";class OutlinePropertiesXform extends n{get tag(){return"outlinePr"}render(e,t){if(t&&(isDefined(t.summaryBelow)||isDefined(t.summaryRight))){e.leafNode(this.tag,{summaryBelow:isDefined(t.summaryBelow)?Number(t.summaryBelow):undefined,summaryRight:isDefined(t.summaryRight)?Number(t.summaryRight):undefined});return true}return false}parseOpen(e){if(e.name===this.tag){this.model={summaryBelow:isDefined(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):undefined,summaryRight:isDefined(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):undefined};return true}return false}parseText(){}parseClose(){return false}}e.exports=OutlinePropertiesXform},82997:function(e,t,r){const n=r(78975);class PageBreaksXform extends n{get tag(){return"brk"}render(e,t){e.leafNode("brk",t)}parseOpen(e){if(e.name==="brk"){this.model=e.attributes.ref;return true}return false}parseText(){}parseClose(){return false}}e.exports=PageBreaksXform},36649:function(e,t,r){const n=r(10642);const i=r(78975);class PageMarginsXform extends i{get tag(){return"pageMargins"}render(e,t){if(t){const r={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};if(n.some(r,(e=>e!==undefined))){e.leafNode(this.tag,r)}}}parseOpen(e){switch(e.name){case this.tag:this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=PageMarginsXform},57387:function(e,t,r){const n=r(78975);class PageSetupPropertiesXform extends n{get tag(){return"pageSetUpPr"}render(e,t){if(t&&t.fitToPage){e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":undefined});return true}return false}parseOpen(e){if(e.name===this.tag){this.model={fitToPage:e.attributes.fitToPage==="1"};return true}return false}parseText(){}parseClose(){return false}}e.exports=PageSetupPropertiesXform},2229:function(e,t,r){const n=r(10642);const i=r(78975);function booleanToXml(e){return e?"1":undefined}function pageOrderToXml(e){switch(e){case"overThenDown":return e;default:return undefined}}function cellCommentsToXml(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return undefined}}function errorsToXml(e){switch(e){case"dash":case"blank":case"NA":return e;default:return undefined}}function pageSizeToModel(e){return e!==undefined?parseInt(e,10):undefined}class PageSetupXform extends i{get tag(){return"pageSetup"}render(e,t){if(t){const r={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:pageOrderToXml(t.pageOrder),blackAndWhite:booleanToXml(t.blackAndWhite),draft:booleanToXml(t.draft),cellComments:cellCommentsToXml(t.cellComments),errors:errorsToXml(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:booleanToXml(t.firstPageNumber),usePrinterDefaults:booleanToXml(t.usePrinterDefaults),copies:t.copies};if(n.some(r,(e=>e!==undefined))){e.leafNode(this.tag,r)}}}parseOpen(e){switch(e.name){case this.tag:this.model={paperSize:pageSizeToModel(e.attributes.paperSize),orientation:e.attributes.orientation||"portrait",horizontalDpi:parseInt(e.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(e.attributes.verticalDpi||"4294967295",10),pageOrder:e.attributes.pageOrder||"downThenOver",blackAndWhite:e.attributes.blackAndWhite==="1",draft:e.attributes.draft==="1",cellComments:e.attributes.cellComments||"None",errors:e.attributes.errors||"displayed",scale:parseInt(e.attributes.scale||"100",10),fitToWidth:parseInt(e.attributes.fitToWidth||"1",10),fitToHeight:parseInt(e.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(e.attributes.firstPageNumber||"1",10),useFirstPageNumber:e.attributes.useFirstPageNumber==="1",usePrinterDefaults:e.attributes.usePrinterDefaults==="1",copies:parseInt(e.attributes.copies||"1",10)};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=PageSetupXform},60843:function(e,t,r){const n=r(78975);class PictureXform extends n{get tag(){return"picture"}render(e,t){if(t){e.leafNode(this.tag,{"r:id":t.rId})}}parseOpen(e){switch(e.name){case this.tag:this.model={rId:e.attributes["r:id"]};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=PictureXform},91488:function(e,t,r){const n=r(10642);const i=r(78975);function booleanToXml(e){return e?"1":undefined}class PrintOptionsXform extends i{get tag(){return"printOptions"}render(e,t){if(t){const r={headings:booleanToXml(t.showRowColHeaders),gridLines:booleanToXml(t.showGridLines),horizontalCentered:booleanToXml(t.horizontalCentered),verticalCentered:booleanToXml(t.verticalCentered)};if(n.some(r,(e=>e!==undefined))){e.leafNode(this.tag,r)}}}parseOpen(e){switch(e.name){case this.tag:this.model={showRowColHeaders:e.attributes.headings==="1",showGridLines:e.attributes.gridLines==="1",horizontalCentered:e.attributes.horizontalCentered==="1",verticalCentered:e.attributes.verticalCentered==="1"};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=PrintOptionsXform},40691:function(e,t,r){"use strict";const n=r(82997);const i=r(49526);class RowBreaksXform extends i{constructor(){const e={tag:"rowBreaks",count:true,childXform:new n};super(e)}render(e,t){if(t&&t.length){e.openNode(this.tag,this.$);if(this.count){e.addAttribute(this.$count,t.length);e.addAttribute("manualBreakCount",t.length)}const{childXform:r}=this;t.forEach((t=>{r.render(e,t)}));e.closeNode()}else if(this.empty){e.leafNode(this.tag)}}}e.exports=RowBreaksXform},39818:function(e,t,r){const n=r(78975);const i=r(55049);const s=r(97170);class RowXform extends n{constructor(e){super();this.maxItems=e&&e.maxItems;this.map={c:new s}}get tag(){return"row"}prepare(e,t){const r=t.styles.addStyleModel(e.style);if(r){e.styleId=r}const n=this.map.c;e.cells.forEach((e=>{n.prepare(e,t)}))}render(e,t,r){e.openNode("row");e.addAttribute("r",t.number);if(t.height){e.addAttribute("ht",t.height);e.addAttribute("customHeight","1")}if(t.hidden){e.addAttribute("hidden","1")}if(t.min>0&&t.max>0&&t.min<=t.max){e.addAttribute("spans",`${t.min}:${t.max}`)}if(t.styleId){e.addAttribute("s",t.styleId);e.addAttribute("customFormat","1")}e.addAttribute("x14ac:dyDescent","0.25");if(t.outlineLevel){e.addAttribute("outlineLevel",t.outlineLevel)}if(t.collapsed){e.addAttribute("collapsed","1")}const n=this.map.c;t.cells.forEach((t=>{n.render(e,t,r)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}if(e.name==="row"){this.numRowsSeen+=1;const t=e.attributes.spans?e.attributes.spans.split(":").map((e=>parseInt(e,10))):[undefined,undefined];const r=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};if(e.attributes.s){r.styleId=parseInt(e.attributes.s,10)}if(i.parseBoolean(e.attributes.hidden)){r.hidden=true}if(i.parseBoolean(e.attributes.bestFit)){r.bestFit=true}if(e.attributes.ht){r.height=parseFloat(e.attributes.ht)}if(e.attributes.outlineLevel){r.outlineLevel=parseInt(e.attributes.outlineLevel,10)}if(i.parseBoolean(e.attributes.collapsed)){r.collapsed=true}return true}this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.cells.push(this.parser.model);if(this.maxItems&&this.model.cells.length>this.maxItems){throw new Error(`Max column count (${this.maxItems}) exceeded`)}this.parser=undefined}return true}return false}reconcile(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{};if(e.styleId!==undefined){e.styleId=undefined}const r=this.map.c;e.cells.forEach((e=>{r.reconcile(e,t)}))}}e.exports=RowXform},32601:function(e,t,r){const n=r(10642);const i=r(78975);class SheetFormatPropertiesXform extends i{get tag(){return"sheetFormatPr"}render(e,t){if(t){const r={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};if(t.defaultColWidth){r.defaultColWidth=t.defaultColWidth}if(!t.defaultRowHeight||t.defaultRowHeight!==15){r.customHeight="1"}if(n.some(r,(e=>e!==undefined))){e.leafNode("sheetFormatPr",r)}}}parseOpen(e){if(e.name==="sheetFormatPr"){this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(e.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||"0",10)};if(e.attributes.defaultColWidth){this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)}return true}return false}parseText(){}parseClose(){return false}}e.exports=SheetFormatPropertiesXform},95740:function(e,t,r){const n=r(78975);const i=r(94661);const s=r(57387);const o=r(62728);class SheetPropertiesXform extends n{constructor(){super();this.map={tabColor:new i("tabColor"),pageSetUpPr:new s,outlinePr:new o}}get tag(){return"sheetPr"}render(e,t){if(t){e.addRollback();e.openNode("sheetPr");let r=false;r=this.map.tabColor.render(e,t.tabColor)||r;r=this.map.pageSetUpPr.render(e,t.pageSetup)||r;r=this.map.outlinePr.render(e,t.outlineProperties)||r;if(r){e.closeNode();e.commit()}else{e.rollback()}}}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}if(e.name===this.tag){this.reset();return true}if(this.map[e.name]){this.parser=this.map[e.name];this.parser.parseOpen(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e);return true}return false}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}if(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model){this.model={};if(this.map.tabColor.model){this.model.tabColor=this.map.tabColor.model}if(this.map.pageSetUpPr.model){this.model.pageSetup=this.map.pageSetUpPr.model}if(this.map.outlinePr.model){this.model.outlineProperties=this.map.outlinePr.model}}else{this.model=null}return false}}e.exports=SheetPropertiesXform},57715:function(e,t,r){const n=r(10642);const i=r(78975);function booleanToXml(e,t){return e?t:undefined}function xmlToBoolean(e,t){return e===t?true:undefined}class SheetProtectionXform extends i{get tag(){return"sheetProtection"}render(e,t){if(t){const r={sheet:booleanToXml(t.sheet,"1"),selectLockedCells:t.selectLockedCells===false?"1":undefined,selectUnlockedCells:t.selectUnlockedCells===false?"1":undefined,formatCells:booleanToXml(t.formatCells,"0"),formatColumns:booleanToXml(t.formatColumns,"0"),formatRows:booleanToXml(t.formatRows,"0"),insertColumns:booleanToXml(t.insertColumns,"0"),insertRows:booleanToXml(t.insertRows,"0"),insertHyperlinks:booleanToXml(t.insertHyperlinks,"0"),deleteColumns:booleanToXml(t.deleteColumns,"0"),deleteRows:booleanToXml(t.deleteRows,"0"),sort:booleanToXml(t.sort,"0"),autoFilter:booleanToXml(t.autoFilter,"0"),pivotTables:booleanToXml(t.pivotTables,"0")};if(t.sheet){r.algorithmName=t.algorithmName;r.hashValue=t.hashValue;r.saltValue=t.saltValue;r.spinCount=t.spinCount;r.objects=booleanToXml(t.objects===false,"1");r.scenarios=booleanToXml(t.scenarios===false,"1")}if(n.some(r,(e=>e!==undefined))){e.leafNode(this.tag,r)}}}parseOpen(e){switch(e.name){case this.tag:this.model={sheet:xmlToBoolean(e.attributes.sheet,"1"),objects:e.attributes.objects==="1"?false:undefined,scenarios:e.attributes.scenarios==="1"?false:undefined,selectLockedCells:e.attributes.selectLockedCells==="1"?false:undefined,selectUnlockedCells:e.attributes.selectUnlockedCells==="1"?false:undefined,formatCells:xmlToBoolean(e.attributes.formatCells,"0"),formatColumns:xmlToBoolean(e.attributes.formatColumns,"0"),formatRows:xmlToBoolean(e.attributes.formatRows,"0"),insertColumns:xmlToBoolean(e.attributes.insertColumns,"0"),insertRows:xmlToBoolean(e.attributes.insertRows,"0"),insertHyperlinks:xmlToBoolean(e.attributes.insertHyperlinks,"0"),deleteColumns:xmlToBoolean(e.attributes.deleteColumns,"0"),deleteRows:xmlToBoolean(e.attributes.deleteRows,"0"),sort:xmlToBoolean(e.attributes.sort,"0"),autoFilter:xmlToBoolean(e.attributes.autoFilter,"0"),pivotTables:xmlToBoolean(e.attributes.pivotTables,"0")};if(e.attributes.algorithmName){this.model.algorithmName=e.attributes.algorithmName;this.model.hashValue=e.attributes.hashValue;this.model.saltValue=e.attributes.saltValue;this.model.spinCount=parseInt(e.attributes.spinCount,10)}return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=SheetProtectionXform},48830:function(e,t,r){const n=r(25646);const i=r(78975);const s={frozen:"frozen",frozenSplit:"frozen",split:"split"};class SheetViewXform extends i{get tag(){return"sheetView"}prepare(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal";break}}render(e,t){e.openNode("sheetView",{workbookViewId:t.workbookViewId||0});const add=function(t,r,n){if(n){e.addAttribute(t,r)}};add("rightToLeft","1",t.rightToLeft===true);add("tabSelected","1",t.tabSelected);add("showRuler","0",t.showRuler===false);add("showRowColHeaders","0",t.showRowColHeaders===false);add("showGridLines","0",t.showGridLines===false);add("zoomScale",t.zoomScale,t.zoomScale);add("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal);add("view",t.style,t.style);let r;let i;let s;let o;switch(t.state){case"frozen":i=t.xSplit||0;s=t.ySplit||0;r=t.topLeftCell||n.getAddress(s+1,i+1).address;o=t.xSplit&&t.ySplit&&"bottomRight"||t.xSplit&&"topRight"||"bottomLeft";e.leafNode("pane",{xSplit:t.xSplit||undefined,ySplit:t.ySplit||undefined,topLeftCell:r,activePane:o,state:"frozen"});e.leafNode("selection",{pane:o,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":if(t.activePane==="topLeft"){t.activePane=undefined}e.leafNode("pane",{xSplit:t.xSplit||undefined,ySplit:t.ySplit||undefined,topLeftCell:t.topLeftCell,activePane:t.activePane});e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":if(t.activeCell){e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}break;default:break}e.closeNode()}parseOpen(e){switch(e.name){case"sheetView":this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:e.attributes.rightToLeft==="1",tabSelected:e.attributes.tabSelected==="1",showRuler:!(e.attributes.showRuler==="0"),showRowColHeaders:!(e.attributes.showRowColHeaders==="0"),showGridLines:!(e.attributes.showGridLines==="0"),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view};this.pane=undefined;this.selections={};return true;case"pane":this.pane={xSplit:parseInt(e.attributes.xSplit||"0",10),ySplit:parseInt(e.attributes.ySplit||"0",10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||"topLeft",state:e.attributes.state};return true;case"selection":{const t=e.attributes.pane||"topLeft";this.selections[t]={pane:t,activeCell:e.attributes.activeCell};return true}default:return false}}parseText(){}parseClose(e){let t;let r;switch(e){case"sheetView":if(this.sheetView&&this.pane){t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:s[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal};if(this.model.state==="split"){t.activePane=this.pane.activePane}r=this.selections[this.pane.activePane];if(r&&r.activeCell){t.activeCell=r.activeCell}if(this.sheetView.style){t.style=this.sheetView.style}}else{t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal};r=this.selections.topLeft;if(r&&r.activeCell){t.activeCell=r.activeCell}if(this.sheetView.style){t.style=this.sheetView.style}}return false;default:return true}}reconcile(){}}e.exports=SheetViewXform},72003:function(e,t,r){const n=r(78975);class TablePartXform extends n{get tag(){return"tablePart"}render(e,t){if(t){e.leafNode(this.tag,{"r:id":t.rId})}}parseOpen(e){switch(e.name){case this.tag:this.model={rId:e.attributes["r:id"]};return true;default:return false}}parseText(){}parseClose(){return false}}e.exports=TablePartXform},37854:function(e,t,r){const n=r(10642);const i=r(25646);const s=r(15643);const o=r(4076);const c=r(46717);const h=r(78975);const p=r(49526);const g=r(39818);const y=r(56379);const b=r(42454);const v=r(20699);const _=r(62327);const w=r(63258);const S=r(95740);const k=r(32601);const x=r(48830);const E=r(57715);const R=r(36649);const C=r(2229);const O=r(91488);const P=r(78066);const A=r(60843);const I=r(158);const N=r(72003);const M=r(40691);const D=r(50941);const L=r(88362);const j=r(66239);const mergeRule=(e,t)=>{Object.keys(t).forEach((r=>{const n=e[r];const i=t[r];if(n===undefined&&i!==undefined){e[r]=i}}))};const mergeConditionalFormattings=(e,t)=>{if(!t||!t.length){return e}if(!e||!e.length){return t}const r={};const n={};e.forEach((e=>{r[e.ref]=e;e.rules.forEach((e=>{const{x14Id:t}=e;if(t){n[t]=e}}))}));t.forEach((t=>{t.rules.forEach((i=>{const s=n[i.x14Id];if(s){mergeRule(s,i)}else if(r[t.ref]){r[t.ref].rules.push(i)}else{e.push({ref:t.ref,rules:[i]})}}))}));return e};class WorkSheetXform extends h{constructor(e){super();const{maxRows:t,maxCols:r,ignoreNodes:n}=e||{};this.ignoreNodes=n||[];this.map={sheetPr:new S,dimension:new b,sheetViews:new p({tag:"sheetViews",count:false,childXform:new x}),sheetFormatPr:new k,cols:new p({tag:"cols",count:false,childXform:new y}),sheetData:new p({tag:"sheetData",count:false,empty:true,childXform:new g({maxItems:r}),maxItems:t}),autoFilter:new P,mergeCells:new p({tag:"mergeCells",count:true,childXform:new _}),rowBreaks:new M,hyperlinks:new p({tag:"hyperlinks",count:false,childXform:new v}),pageMargins:new R,dataValidations:new w,pageSetup:new C,headerFooter:new D,printOptions:new O,picture:new A,drawing:new I,sheetProtection:new E,tableParts:new p({tag:"tableParts",count:true,childXform:new N}),conditionalFormatting:new L,extLst:new j}}prepare(e,t){t.merges=new c;e.hyperlinks=t.hyperlinks=[];e.comments=t.comments=[];t.formulae={};t.siFormulae=0;this.map.cols.prepare(e.cols,t);this.map.sheetData.prepare(e.rows,t);this.map.conditionalFormatting.prepare(e.conditionalFormattings,t);e.mergeCells=t.merges.mergeCells;const r=e.rels=[];function nextRid(e){return`rId${e.length+1}`}e.hyperlinks.forEach((e=>{const t=nextRid(r);e.rId=t;r.push({Id:t,Type:o.Hyperlink,Target:e.target,TargetMode:"External"})}));if(e.comments.length>0){const n={Id:nextRid(r),Type:o.Comments,Target:`../comments${e.id}.xml`};r.push(n);const s={Id:nextRid(r),Type:o.VmlDrawing,Target:`../drawings/vmlDrawing${e.id}.vml`};r.push(s);e.comments.forEach((e=>{e.refAddress=i.decodeAddress(e.ref)}));t.commentRefs.push({commentName:`comments${e.id}`,vmlDrawing:`vmlDrawing${e.id}`})}const n=[];let s;e.media.forEach((i=>{if(i.type==="background"){const n=nextRid(r);s=t.media[i.imageId];r.push({Id:n,Type:o.Image,Target:`../media/${s.name}.${s.extension}`});e.background={rId:n};e.image=t.media[i.imageId]}else if(i.type==="image"){let{drawing:c}=e;s=t.media[i.imageId];if(!c){c=e.drawing={rId:nextRid(r),name:`drawing${++t.drawingsCount}`,anchors:[],rels:[]};t.drawings.push(c);r.push({Id:c.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${c.name}.xml`})}let h=this.preImageId===i.imageId?n[i.imageId]:n[c.rels.length];if(!h){h=nextRid(c.rels);n[c.rels.length]=h;c.rels.push({Id:h,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${s.name}.${s.extension}`})}const p={picture:{rId:h},range:i.range};if(i.hyperlinks&&i.hyperlinks.hyperlink){const e=nextRid(c.rels);n[c.rels.length]=e;p.picture.hyperlinks={tooltip:i.hyperlinks.tooltip,rId:e};c.rels.push({Id:e,Type:o.Hyperlink,Target:i.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=i.imageId;c.anchors.push(p)}}));e.tables.forEach((e=>{const n=nextRid(r);e.rId=n;r.push({Id:n,Type:o.Table,Target:`../tables/${e.target}`});e.columns.forEach((e=>{const{style:r}=e;if(r){e.dxfId=t.styles.addDxfStyle(r)}}))}));this.map.extLst.prepare(e,t)}render(e,t){e.openXml(s.StdDocAttributes);e.openNode("worksheet",WorkSheetXform.WORKSHEET_ATTRIBUTES);const r=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:undefined;if(t.properties&&t.properties.defaultColWidth){r.defaultColWidth=t.properties.defaultColWidth}const n={outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:undefined};const i=t.pageSetup&&t.pageSetup.margins;const c={showRowColHeaders:t.pageSetup&&t.pageSetup.showRowColHeaders,showGridLines:t.pageSetup&&t.pageSetup.showGridLines,horizontalCentered:t.pageSetup&&t.pageSetup.horizontalCentered,verticalCentered:t.pageSetup&&t.pageSetup.verticalCentered};const h=t.sheetProtection;this.map.sheetPr.render(e,n);this.map.dimension.render(e,t.dimensions);this.map.sheetViews.render(e,t.views);this.map.sheetFormatPr.render(e,r);this.map.cols.render(e,t.cols);this.map.sheetData.render(e,t.rows);this.map.sheetProtection.render(e,h);this.map.autoFilter.render(e,t.autoFilter);this.map.mergeCells.render(e,t.mergeCells);this.map.conditionalFormatting.render(e,t.conditionalFormattings);this.map.dataValidations.render(e,t.dataValidations);this.map.hyperlinks.render(e,t.hyperlinks);this.map.printOptions.render(e,c);this.map.pageMargins.render(e,i);this.map.pageSetup.render(e,t.pageSetup);this.map.headerFooter.render(e,t.headerFooter);this.map.rowBreaks.render(e,t.rowBreaks);this.map.drawing.render(e,t.drawing);this.map.picture.render(e,t.background);this.map.tableParts.render(e,t.tables);this.map.extLst.render(e,t);if(t.rels){t.rels.forEach((t=>{if(t.Type===o.VmlDrawing){e.leafNode("legacyDrawing",{"r:id":t.Id})}}))}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}if(e.name==="worksheet"){n.each(this.map,(e=>{e.reset()}));return true}if(this.map[e.name]&&!this.ignoreNodes.includes(e.name)){this.parser=this.map[e.name];this.parser.parseOpen(e)}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"worksheet":{const e=this.map.sheetFormatPr.model||{};if(this.map.sheetPr.model&&this.map.sheetPr.model.tabColor){e.tabColor=this.map.sheetPr.model.tabColor}if(this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties){e.outlineProperties=this.map.sheetPr.model.outlineProperties}const t={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||false,margins:this.map.pageMargins.model};const r=Object.assign(t,this.map.pageSetup.model,this.map.printOptions.model);const n=mergeConditionalFormattings(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:e,views:this.map.sheetViews.model,pageSetup:r,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:n};if(this.map.autoFilter.model){this.model.autoFilter=this.map.autoFilter.model}if(this.map.sheetProtection.model){this.model.sheetProtection=this.map.sheetProtection.model}return false}default:return true}}reconcile(e,t){const r=(e.relationships||[]).reduce(((r,n)=>{r[n.Id]=n;if(n.Type===o.Comments){e.comments=t.comments[n.Target].comments}if(n.Type===o.VmlDrawing&&e.comments&&e.comments.length){const r=t.vmlDrawings[n.Target].comments;e.comments.forEach(((e,t)=>{e.note=Object.assign({},e.note,r[t])}))}return r}),{});t.commentsMap=(e.comments||[]).reduce(((e,t)=>{if(t.ref){e[t.ref]=t}return e}),{});t.hyperlinkMap=(e.hyperlinks||[]).reduce(((e,t)=>{if(t.rId){e[t.address]=r[t.rId].Target}return e}),{});t.formulae={};e.rows=e.rows&&e.rows.filter(Boolean)||[];e.rows.forEach((e=>{e.cells=e.cells&&e.cells.filter(Boolean)||[]}));this.map.cols.reconcile(e.cols,t);this.map.sheetData.reconcile(e.rows,t);this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t);e.media=[];if(e.drawing){const n=r[e.drawing.rId];const i=n.Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(i){const r=i[1];const n=t.drawings[r];n.anchors.forEach((t=>{if(t.medium){const r={type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(r)}}))}}const n=e.background&&r[e.background.rId];if(n){const r=n.Target.split("/media/")[1];const i=t.mediaIndex&&t.mediaIndex[r];if(i!==undefined){e.media.push({type:"background",imageId:i})}}e.tables=(e.tables||[]).map((e=>{const n=r[e.rId];return t.tables[n.Target]}));delete e.relationships;delete e.hyperlinks;delete e.comments}}WorkSheetXform.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"};e.exports=WorkSheetXform},42339:function(e,t,r){const n=r(78975);class BooleanXform extends n{constructor(e){super();this.tag=e.tag;this.attr=e.attr}render(e,t){if(t){e.openNode(this.tag);e.closeNode()}}parseOpen(e){if(e.name===this.tag){this.model=true}}parseText(){}parseClose(){return false}}e.exports=BooleanXform},42731:function(e,t,r){const n=r(78975);class DateXform extends n{constructor(e){super();this.tag=e.tag;this.attr=e.attr;this.attrs=e.attrs;this._format=e.format||function(e){try{if(Number.isNaN(e.getTime()))return"";return e.toISOString()}catch(e){return""}};this._parse=e.parse||function(e){return new Date(e)}}render(e,t){if(t){e.openNode(this.tag);if(this.attrs){e.addAttributes(this.attrs)}if(this.attr){e.addAttribute(this.attr,this._format(t))}else{e.writeText(this._format(t))}e.closeNode()}}parseOpen(e){if(e.name===this.tag){if(this.attr){this.model=this._parse(e.attributes[this.attr])}else{this.text=[]}}}parseText(e){if(!this.attr){this.text.push(e)}}parseClose(){if(!this.attr){this.model=this._parse(this.text.join(""))}return false}}e.exports=DateXform},2036:function(e,t,r){const n=r(78975);class IntegerXform extends n{constructor(e){super();this.tag=e.tag;this.attr=e.attr;this.attrs=e.attrs;this.zero=e.zero}render(e,t){if(t||this.zero){e.openNode(this.tag);if(this.attrs){e.addAttributes(this.attrs)}if(this.attr){e.addAttribute(this.attr,t)}else{e.writeText(t)}e.closeNode()}}parseOpen(e){if(e.name===this.tag){if(this.attr){this.model=parseInt(e.attributes[this.attr],10)}else{this.text=[]}return true}return false}parseText(e){if(!this.attr){this.text.push(e)}}parseClose(){if(!this.attr){this.model=parseInt(this.text.join("")||0,10)}return false}}e.exports=IntegerXform},63663:function(e,t,r){const n=r(78975);class StringXform extends n{constructor(e){super();this.tag=e.tag;this.attr=e.attr;this.attrs=e.attrs}render(e,t){if(t!==undefined){e.openNode(this.tag);if(this.attrs){e.addAttributes(this.attrs)}if(this.attr){e.addAttribute(this.attr,t)}else{e.writeText(t)}e.closeNode()}}parseOpen(e){if(e.name===this.tag){if(this.attr){this.model=e.attributes[this.attr]}else{this.text=[]}}}parseText(e){if(!this.attr){this.text.push(e)}}parseClose(){if(!this.attr){this.model=this.text.join("")}return false}}e.exports=StringXform},21058:function(e,t,r){const n=r(78975);const i=r(15643);function build(e,t){e.openNode(t.tag,t.$);if(t.c){t.c.forEach((t=>{build(e,t)}))}if(t.t){e.writeText(t.t)}e.closeNode()}class StaticXform extends n{constructor(e){super();this._model=e}render(e){if(!this._xml){const e=new i;build(e,this._model);this._xml=e.xml}e.writeXml(this._xml)}parseOpen(){return true}parseText(){}parseClose(e){switch(e){case this._model.tag:return false;default:return true}}}e.exports=StaticXform},884:function(e,t,r){const n=r(59724);const i=r(80188);const s=r(78975);class PhoneticTextXform extends s{constructor(){super();this.map={r:new i,t:new n}}get tag(){return"rPh"}render(e,t){e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0});if(t&&t.hasOwnProperty("richText")&&t.richText){const{r:r}=this.map;t.richText.forEach((t=>{r.render(e,t)}))}else if(t){this.map.t.render(e,t.text)}e.closeNode()}parseOpen(e){const{name:t}=e;if(this.parser){this.parser.parseOpen(e);return true}if(t===this.tag){this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)};return true}this.parser=this.map[t];if(this.parser){this.parser.parseOpen(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;if(!e){e=this.model.richText=[]}e.push(this.parser.model);break}case"t":this.model.text=this.parser.model;break;default:break}this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}}e.exports=PhoneticTextXform},80188:function(e,t,r){const n=r(59724);const i=r(95896);const s=r(78975);class RichTextXform extends s{constructor(e){super();this.model=e}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new n)}get fontXform(){return this._fontXform||(this._fontXform=new i(RichTextXform.FONT_OPTIONS))}render(e,t){t=t||this.model;e.openNode("r");if(t.font){this.fontXform.render(e,t.font)}this.textXform.render(e,t.text);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"r":this.model={};return true;case"t":this.parser=this.textXform;this.parser.parseOpen(e);return true;case"rPr":this.parser=this.fontXform;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){switch(e){case"r":return false;case"t":this.model.text=this.parser.model;this.parser=undefined;return true;case"rPr":this.model.font=this.parser.model;this.parser=undefined;return true;default:if(this.parser){this.parser.parseClose(e)}return true}}}RichTextXform.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"};e.exports=RichTextXform},93577:function(e,t,r){const n=r(59724);const i=r(80188);const s=r(884);const o=r(78975);class SharedStringXform extends o{constructor(e){super();this.model=e;this.map={r:new i,t:new n,rPh:new s}}get tag(){return"si"}render(e,t){e.openNode(this.tag);if(t&&t.hasOwnProperty("richText")&&t.richText){if(t.richText.length){t.richText.forEach((t=>{this.map.r.render(e,t)}))}else{this.map.t.render(e,"")}}else if(t!==undefined&&t!==null){this.map.t.render(e,t)}e.closeNode()}parseOpen(e){const{name:t}=e;if(this.parser){this.parser.parseOpen(e);return true}if(t===this.tag){this.model={};return true}this.parser=this.map[t];if(this.parser){this.parser.parseOpen(e);return true}return false}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;if(!e){e=this.model.richText=[]}e.push(this.parser.model);break}case"t":this.model=this.parser.model;break;default:break}this.parser=undefined}return true}switch(e){case this.tag:return false;default:return true}}}e.exports=SharedStringXform},20397:function(e,t,r){const n=r(15643);const i=r(78975);const s=r(93577);class SharedStringsXform extends i{constructor(e){super();this.model=e||{values:[],count:0};this.hash=Object.create(null);this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new s)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(e){return this.model.values[e]}add(e){return e.richText?this.addRichText(e):this.addText(e)}addText(e){let t=this.hash[e];if(t===undefined){t=this.hash[e]=this.model.values.length;this.model.values.push(e)}this.model.count++;return t}addRichText(e){const t=this.sharedStringXform.toXml(e);let r=this.rich[t];if(r===undefined){r=this.rich[t]=this.model.values.length;this.model.values.push(e)}this.model.count++;return r}render(e,t){t=t||this._values;e.openXml(n.StdDocAttributes);e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const r=this.sharedStringXform;t.values.forEach((t=>{r.render(e,t)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"sst":return true;case"si":this.parser=this.sharedStringXform;this.parser.parseOpen(e);return true;default:throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.values.push(this.parser.model);this.model.count++;this.parser=undefined}return true}switch(e){case"sst":return false;default:throw new Error(`Unexpected xml node in parseClose: ${e}`)}}}e.exports=SharedStringsXform},59724:function(e,t,r){const n=r(78975);class TextXform extends n{get tag(){return"t"}render(e,t){e.openNode("t");if(/^\s|\n|\s$/.test(t)){e.addAttribute("xml:space","preserve")}e.writeText(t);e.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,((e,t)=>String.fromCharCode(parseInt(t,16))))}parseOpen(e){switch(e.name){case"t":this._text=[];return true;default:return false}}parseText(e){this._text.push(e)}parseClose(){return false}}e.exports=TextXform},66946:function(e,t,r){const n=r(34244);const i=r(55049);const s=r(78975);const o={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce(((e,t)=>{e[t]=true;return e}),{}),horizontal(e){return this.horizontalValues[e]?e:undefined},verticalValues:["top","middle","bottom","distributed","justify"].reduce(((e,t)=>{e[t]=true;return e}),{}),vertical(e){if(e==="middle")return"center";return this.verticalValues[e]?e:undefined},wrapText(e){return e?true:undefined},shrinkToFit(e){return e?true:undefined},textRotation(e){switch(e){case"vertical":return e;default:e=i.validInt(e);return e>=-90&&e<=90?e:undefined}},indent(e){e=i.validInt(e);return Math.max(0,e)},readingOrder(e){switch(e){case"ltr":return n.ReadingOrder.LeftToRight;case"rtl":return n.ReadingOrder.RightToLeft;default:return undefined}}};const c={toXml(e){e=o.textRotation(e);if(e){if(e==="vertical"){return 255}const t=Math.round(e);if(t>=0&&t<=90){return t}if(t<0&&t>=-90){return 90-t}}return undefined},toModel(e){const t=i.validInt(e);if(t!==undefined){if(t===255){return"vertical"}if(t>=0&&t<=90){return t}if(t>90&&t<=180){return 90-t}}return undefined}};class AlignmentXform extends s{get tag(){return"alignment"}render(e,t){e.addRollback();e.openNode("alignment");let r=false;function add(t,n){if(n){e.addAttribute(t,n);r=true}}add("horizontal",o.horizontal(t.horizontal));add("vertical",o.vertical(t.vertical));add("wrapText",o.wrapText(t.wrapText)?"1":false);add("shrinkToFit",o.shrinkToFit(t.shrinkToFit)?"1":false);add("indent",o.indent(t.indent));add("textRotation",c.toXml(t.textRotation));add("readingOrder",o.readingOrder(t.readingOrder));e.closeNode();if(r){e.commit()}else{e.rollback()}}parseOpen(e){const t={};let r=false;function add(e,n,i){if(e){t[n]=i;r=true}}add(e.attributes.horizontal,"horizontal",e.attributes.horizontal);add(e.attributes.vertical,"vertical",e.attributes.vertical==="center"?"middle":e.attributes.vertical);add(e.attributes.wrapText,"wrapText",i.parseBoolean(e.attributes.wrapText));add(e.attributes.shrinkToFit,"shrinkToFit",i.parseBoolean(e.attributes.shrinkToFit));add(e.attributes.indent,"indent",parseInt(e.attributes.indent,10));add(e.attributes.textRotation,"textRotation",c.toModel(e.attributes.textRotation));add(e.attributes.readingOrder,"readingOrder",e.attributes.readingOrder==="2"?"rtl":"ltr");this.model=r?t:null}parseText(){}parseClose(){return false}}e.exports=AlignmentXform},99623:function(e,t,r){const n=r(78975);const i=r(55049);const s=r(94661);class EdgeXform extends n{constructor(e){super();this.name=e;this.map={color:new s}}get tag(){return this.name}render(e,t,r){const n=t&&t.color||r||this.defaultColor;e.openNode(this.name);if(t&&t.style){e.addAttribute("style",t.style);if(n){this.map.color.render(e,n)}}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.name:{const{style:t}=e.attributes;if(t){this.model={style:t}}else{this.model=undefined}return true}case"color":this.parser=this.map.color;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}if(e===this.name){if(this.map.color.model){if(!this.model){this.model={}}this.model.color=this.map.color.model}}return false}validStyle(e){return EdgeXform.validStyleValues[e]}}EdgeXform.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce(((e,t)=>{e[t]=true;return e}),{});class BorderXform extends n{constructor(){super();this.map={top:new EdgeXform("top"),left:new EdgeXform("left"),bottom:new EdgeXform("bottom"),right:new EdgeXform("right"),diagonal:new EdgeXform("diagonal")}}render(e,t){const{color:r}=t;e.openNode("border");if(t.diagonal&&t.diagonal.style){if(t.diagonal.up){e.addAttribute("diagonalUp","1")}if(t.diagonal.down){e.addAttribute("diagonalDown","1")}}function add(n,i){if(n&&!n.color&&t.color){n={...n,color:t.color}}i.render(e,n,r)}add(t.left,this.map.left);add(t.right,this.map.right);add(t.top,this.map.top);add(t.bottom,this.map.bottom);add(t.diagonal,this.map.diagonal);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"border":this.reset();this.diagonalUp=i.parseBoolean(e.attributes.diagonalUp);this.diagonalDown=i.parseBoolean(e.attributes.diagonalDown);return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}if(e==="border"){const e=this.model={};const add=function(t,r,n){if(r){if(n){Object.assign(r,n)}e[t]=r}};add("left",this.map.left.model);add("right",this.map.right.model);add("top",this.map.top.model);add("bottom",this.map.bottom.model);add("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return false}}e.exports=BorderXform},94661:function(e,t,r){const n=r(78975);class ColorXform extends n{constructor(e){super();this.name=e||"color"}get tag(){return this.name}render(e,t){if(t){e.openNode(this.name);if(t.argb){e.addAttribute("rgb",t.argb)}else if(t.theme!==undefined){e.addAttribute("theme",t.theme);if(t.tint!==undefined){e.addAttribute("tint",t.tint)}}else if(t.indexed!==undefined){e.addAttribute("indexed",t.indexed)}else{e.addAttribute("auto","1")}e.closeNode();return true}return false}parseOpen(e){if(e.name===this.name){if(e.attributes.rgb){this.model={argb:e.attributes.rgb}}else if(e.attributes.theme){this.model={theme:parseInt(e.attributes.theme,10)};if(e.attributes.tint){this.model.tint=parseFloat(e.attributes.tint)}}else if(e.attributes.indexed){this.model={indexed:parseInt(e.attributes.indexed,10)}}else{this.model=undefined}return true}return false}parseText(){}parseClose(){return false}}e.exports=ColorXform},35349:function(e,t,r){const n=r(78975);const i=r(66946);const s=r(99623);const o=r(85903);const c=r(95896);const h=r(61131);const p=r(53027);class DxfXform extends n{constructor(){super();this.map={alignment:new i,border:new s,fill:new o,font:new c,numFmt:new h,protection:new p}}get tag(){return"dxf"}render(e,t){e.openNode(this.tag);if(t.font){this.map.font.render(e,t.font)}if(t.numFmt&&t.numFmtId){const r={id:t.numFmtId,formatCode:t.numFmt};this.map.numFmt.render(e,r)}if(t.fill){this.map.fill.render(e,t.fill)}if(t.alignment){this.map.alignment.render(e,t.alignment)}if(t.border){this.map.border.render(e,t.border)}if(t.protection){this.map.protection.render(e,t.protection)}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.reset();return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}return true}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}if(e===this.tag){this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model};return false}return true}}e.exports=DxfXform},85903:function(e,t,r){const n=r(78975);const i=r(94661);class StopXform extends n{constructor(){super();this.map={color:new i}}get tag(){return"stop"}render(e,t){e.openNode("stop");e.addAttribute("position",t.position);this.map.color.render(e,t.color);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"stop":this.model={position:parseFloat(e.attributes.position)};return true;case"color":this.parser=this.map.color;this.parser.parseOpen(e);return true;default:return false}}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.color=this.parser.model;this.parser=undefined}return true}return false}}class PatternFillXform extends n{constructor(){super();this.map={fgColor:new i("fgColor"),bgColor:new i("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(e,t){e.openNode("patternFill");e.addAttribute("patternType",t.pattern);if(t.fgColor){this.map.fgColor.render(e,t.fgColor)}if(t.bgColor){this.map.bgColor.render(e,t.bgColor)}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"patternFill":this.model={type:"pattern",pattern:e.attributes.patternType};return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.parser.model){this.model[e]=this.parser.model}this.parser=undefined}return true}return false}}class GradientFillXform extends n{constructor(){super();this.map={stop:new StopXform}}get name(){return"gradient"}get tag(){return"gradientFill"}render(e,t){e.openNode("gradientFill");switch(t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path");if(t.center.left){e.addAttribute("left",t.center.left);if(t.center.right===undefined){e.addAttribute("right",t.center.left)}}if(t.center.right){e.addAttribute("right",t.center.right)}if(t.center.top){e.addAttribute("top",t.center.top);if(t.center.bottom===undefined){e.addAttribute("bottom",t.center.top)}}if(t.center.bottom){e.addAttribute("bottom",t.center.bottom)}break;default:break}const r=this.map.stop;t.stops.forEach((t=>{r.render(e,t)}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"gradientFill":{const t=this.model={stops:[]};if(e.attributes.degree){t.gradient="angle";t.degree=parseInt(e.attributes.degree,10)}else if(e.attributes.type==="path"){t.gradient="path";t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0};if(e.attributes.right!==e.attributes.left){t.center.right=e.attributes.right?parseFloat(e.attributes.right):0}if(e.attributes.bottom!==e.attributes.top){t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0}}return true}case"stop":this.parser=this.map.stop;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.stops.push(this.parser.model);this.parser=undefined}return true}return false}}class FillXform extends n{constructor(){super();this.map={patternFill:new PatternFillXform,gradientFill:new GradientFillXform}}get tag(){return"fill"}render(e,t){e.addRollback();e.openNode("fill");switch(t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:e.rollback();return}e.closeNode();e.commit()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"fill":this.model={};return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e);return true}return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model=this.parser.model;this.model.type=this.parser.name;this.parser=undefined}return true}return false}validStyle(e){return FillXform.validPatternValues[e]}}FillXform.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce(((e,t)=>{e[t]=true;return e}),{});FillXform.StopXform=StopXform;FillXform.PatternFillXform=PatternFillXform;FillXform.GradientFillXform=GradientFillXform;e.exports=FillXform},95896:function(e,t,r){"use strict";const n=r(94661);const i=r(42339);const s=r(2036);const o=r(63663);const c=r(37371);const h=r(10642);const p=r(78975);class FontXform extends p{constructor(e){super();this.options=e||FontXform.OPTIONS;this.map={b:{prop:"bold",xform:new i({tag:"b",attr:"val"})},i:{prop:"italic",xform:new i({tag:"i",attr:"val"})},u:{prop:"underline",xform:new c},charset:{prop:"charset",xform:new s({tag:"charset",attr:"val"})},color:{prop:"color",xform:new n},condense:{prop:"condense",xform:new i({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new i({tag:"extend",attr:"val"})},family:{prop:"family",xform:new s({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new i({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new o({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new o({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new i({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new i({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new s({tag:"sz",attr:"val"})}};this.map[this.options.fontNameTag]={prop:"name",xform:new o({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(e,t){const{map:r}=this;e.openNode(this.options.tagName);h.each(this.map,((n,i)=>{r[i].xform.render(e,t[n.prop])}));e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}if(this.map[e.name]){this.parser=this.map[e.name].xform;return this.parser.parseOpen(e)}switch(e.name){case this.options.tagName:this.model={};return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser&&!this.parser.parseClose(e)){const t=this.map[e];if(this.parser.model){this.model[t.prop]=this.parser.model}this.parser=undefined;return true}switch(e){case this.options.tagName:return false;default:return true}}}FontXform.OPTIONS={tagName:"font",fontNameTag:"name"};e.exports=FontXform},61131:function(e,t,r){const n=r(10642);const i=r(59277);const s=r(78975);function hashDefaultFormats(){const e={};n.each(i,((t,r)=>{if(t.f){e[t.f]=parseInt(r,10)}}));return e}const o=hashDefaultFormats();class NumFmtXform extends s{constructor(e,t){super();this.id=e;this.formatCode=t}get tag(){return"numFmt"}render(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})}parseOpen(e){switch(e.name){case"numFmt":this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")};return true;default:return false}}parseText(){}parseClose(){return false}}NumFmtXform.getDefaultFmtId=function getDefaultFmtId(e){return o[e]};NumFmtXform.getDefaultFmtCode=function getDefaultFmtCode(e){return i[e]&&i[e].f};e.exports=NumFmtXform},53027:function(e,t,r){const n=r(78975);const i={boolean(e,t){if(e===undefined){return t}return e}};class ProtectionXform extends n{get tag(){return"protection"}render(e,t){e.addRollback();e.openNode("protection");let r=false;function add(t,n){if(n!==undefined){e.addAttribute(t,n);r=true}}add("locked",i.boolean(t.locked,true)?undefined:"0");add("hidden",i.boolean(t.hidden,false)?"1":undefined);e.closeNode();if(r){e.commit()}else{e.rollback()}}parseOpen(e){const t={locked:!(e.attributes.locked==="0"),hidden:e.attributes.hidden==="1"};const r=!t.locked||t.hidden;this.model=r?t:null}parseText(){}parseClose(){return false}}e.exports=ProtectionXform},60060:function(e,t,r){const n=r(78975);const i=r(66946);const s=r(53027);class StyleXform extends n{constructor(e){super();this.xfId=!!(e&&e.xfId);this.map={alignment:new i,protection:new s}}get tag(){return"xf"}render(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0});if(this.xfId){e.addAttribute("xfId",t.xfId||0)}if(t.numFmtId){e.addAttribute("applyNumberFormat","1")}if(t.fontId){e.addAttribute("applyFont","1")}if(t.fillId){e.addAttribute("applyFill","1")}if(t.borderId){e.addAttribute("applyBorder","1")}if(t.alignment){e.addAttribute("applyAlignment","1")}if(t.protection){e.addAttribute("applyProtection","1")}if(t.alignment){this.map.alignment.render(e,t.alignment)}if(t.protection){this.map.protection.render(e,t.protection)}e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"xf":this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)};if(this.xfId){this.model.xfId=parseInt(e.attributes.xfId,10)}return true;case"alignment":this.parser=this.map.alignment;this.parser.parseOpen(e);return true;case"protection":this.parser=this.map.protection;this.parser.parseOpen(e);return true;default:return false}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.map.protection===this.parser){this.model.protection=this.parser.model}else{this.model.alignment=this.parser.model}this.parser=undefined}return true}return e!=="xf"}}e.exports=StyleXform},35064:function(e,t,r){const n=r(34244);const i=r(15643);const s=r(78975);const o=r(21058);const c=r(49526);const h=r(95896);const p=r(85903);const g=r(99623);const y=r(61131);const b=r(60060);const v=r(35349);const _=164;class StylesXform extends s{constructor(e){super();this.map={numFmts:new c({tag:"numFmts",count:true,childXform:new y}),fonts:new c({tag:"fonts",count:true,childXform:new h,$:{"x14ac:knownFonts":1}}),fills:new c({tag:"fills",count:true,childXform:new p}),borders:new c({tag:"borders",count:true,childXform:new g}),cellStyleXfs:new c({tag:"cellStyleXfs",count:true,childXform:new b}),cellXfs:new c({tag:"cellXfs",count:true,childXform:new b({xfId:true})}),dxfs:new c({tag:"dxfs",always:true,count:true,childXform:new v}),numFmt:new y,font:new h,fill:new p,border:new g,style:new b({xfId:true}),cellStyles:StylesXform.STATIC_XFORMS.cellStyles,tableStyles:StylesXform.STATIC_XFORMS.tableStyles,extLst:StylesXform.STATIC_XFORMS.extLst};if(e){this.init()}}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]};this.initIndex();this._addBorder({});this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0});this._addFill({type:"pattern",pattern:"none"});this._addFill({type:"pattern",pattern:"gray125"});this.weakMap=new WeakMap}render(e,t){t=t||this.model;e.openXml(i.StdDocAttributes);e.openNode("styleSheet",StylesXform.STYLESHEET_ATTRIBUTES);if(this.index){if(t.numFmts&&t.numFmts.length){e.openNode("numFmts",{count:t.numFmts.length});t.numFmts.forEach((t=>{e.writeXml(t)}));e.closeNode()}if(!t.fonts.length){this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})}e.openNode("fonts",{count:t.fonts.length,"x14ac:knownFonts":1});t.fonts.forEach((t=>{e.writeXml(t)}));e.closeNode();e.openNode("fills",{count:t.fills.length});t.fills.forEach((t=>{e.writeXml(t)}));e.closeNode();e.openNode("borders",{count:t.borders.length});t.borders.forEach((t=>{e.writeXml(t)}));e.closeNode();this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]);e.openNode("cellXfs",{count:t.styles.length});t.styles.forEach((t=>{e.writeXml(t)}));e.closeNode()}else{this.map.numFmts.render(e,t.numFmts);this.map.fonts.render(e,t.fonts);this.map.fills.render(e,t.fills);this.map.borders.render(e,t.borders);this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]);this.map.cellXfs.render(e,t.styles)}StylesXform.STATIC_XFORMS.cellStyles.render(e);this.map.dxfs.render(e,t.dxfs);StylesXform.STATIC_XFORMS.tableStyles.render(e);StylesXform.STATIC_XFORMS.extLst.render(e);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case"styleSheet":this.initIndex();return true;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}return true}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case"styleSheet":{this.model={};const add=(e,t)=>{if(t.model&&t.model.length){this.model[e]=t.model}};add("numFmts",this.map.numFmts);add("fonts",this.map.fonts);add("fills",this.map.fills);add("borders",this.map.borders);add("styles",this.map.cellXfs);add("dxfs",this.map.dxfs);this.index={model:[],numFmt:[]};if(this.model.numFmts){const e=this.index.numFmt;this.model.numFmts.forEach((t=>{e[t.id]=t.formatCode}))}return false}default:return true}}addStyleModel(e,t){if(!e){return 0}if(!this.model.fonts.length){this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})}if(this.weakMap&&this.weakMap.has(e)){return this.weakMap.get(e)}const r={};t=t||n.ValueType.Number;if(e.numFmt){r.numFmtId=this._addNumFmtStr(e.numFmt)}else{switch(t){case n.ValueType.Number:r.numFmtId=this._addNumFmtStr("General");break;case n.ValueType.Date:r.numFmtId=this._addNumFmtStr("mm-dd-yy");break;default:break}}if(e.font){r.fontId=this._addFont(e.font)}if(e.border){r.borderId=this._addBorder(e.border)}if(e.fill){r.fillId=this._addFill(e.fill)}if(e.alignment){r.alignment=e.alignment}if(e.protection){r.protection=e.protection}const i=this._addStyle(r);if(this.weakMap){this.weakMap.set(e,i)}return i}getStyleModel(e){const t=this.model.styles[e];if(!t)return null;let r=this.index.model[e];if(r)return r;r=this.index.model[e]={};if(t.numFmtId){const e=this.index.numFmt[t.numFmtId]||y.getDefaultFmtCode(t.numFmtId);if(e){r.numFmt=e}}function addStyle(e,t,n){if(n||n===0){const i=t[n];if(i){r[e]=i}}}addStyle("font",this.model.fonts,t.fontId);addStyle("border",this.model.borders,t.borderId);addStyle("fill",this.model.fills,t.fillId);if(t.alignment){r.alignment=t.alignment}if(t.protection){r.protection=t.protection}return r}addDxfStyle(e){if(e.numFmt){e.numFmtId=this._addNumFmtStr(e.numFmt)}this.model.dxfs.push(e);return this.model.dxfs.length-1}getDxfStyle(e){return this.model.dxfs[e]}_addStyle(e){const t=this.map.style.toXml(e);let r=this.index.style[t];if(r===undefined){r=this.index.style[t]=this.model.styles.length;this.model.styles.push(t)}return r}_addNumFmtStr(e){let t=y.getDefaultFmtId(e);if(t!==undefined)return t;t=this.index.numFmt[e];if(t!==undefined)return t;t=this.index.numFmt[e]=_+this.model.numFmts.length;const r=this.map.numFmt.toXml({id:t,formatCode:e});this.model.numFmts.push(r);return t}_addFont(e){const t=this.map.font.toXml(e);let r=this.index.font[t];if(r===undefined){r=this.index.font[t]=this.model.fonts.length;this.model.fonts.push(t)}return r}_addBorder(e){const t=this.map.border.toXml(e);let r=this.index.border[t];if(r===undefined){r=this.index.border[t]=this.model.borders.length;this.model.borders.push(t)}return r}_addFill(e){const t=this.map.fill.toXml(e);let r=this.index.fill[t];if(r===undefined){r=this.index.fill[t]=this.model.fills.length;this.model.fills.push(t)}return r}}StylesXform.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"};StylesXform.STATIC_XFORMS={cellStyles:new o({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new o({tag:"dxfs",$:{count:0}}),tableStyles:new o({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new o({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})};class StylesXformMock extends StylesXform{constructor(){super();this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(e){e.autodrain();return Promise.resolve()}addStyleModel(e,t){switch(t){case n.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const e={numFmtId:y.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length;this.model.styles.push(e)}return this._dateStyleId}getStyleModel(){return{}}}StylesXform.Mock=StylesXformMock;e.exports=StylesXform},37371:function(e,t,r){const n=r(78975);class UnderlineXform extends n{constructor(e){super();this.model=e}get tag(){return"u"}render(e,t){t=t||this.model;if(t===true){e.leafNode("u")}else{const r=UnderlineXform.Attributes[t];if(r){e.leafNode("u",r)}}}parseOpen(e){if(e.name==="u"){this.model=e.attributes.val||true}}parseText(){}parseClose(){return false}}UnderlineXform.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}};e.exports=UnderlineXform},74947:function(e,t,r){const n=r(78975);const i=r(62513);class AutoFilterXform extends n{constructor(){super();this.map={filterColumn:new i}}get tag(){return"autoFilter"}prepare(e){e.columns.forEach(((e,t)=>{this.map.filterColumn.prepare(e,{index:t})}))}render(e,t){e.openNode(this.tag,{ref:t.autoFilterRef});t.columns.forEach((t=>{this.map.filterColumn.render(e,t)}));e.closeNode();return true}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}switch(e.name){case this.tag:this.model={autoFilterRef:e.attributes.ref,columns:[]};return true;default:this.parser=this.map[e.name];if(this.parser){this.parseOpen(e);return true}throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.model.columns.push(this.parser.model);this.parser=undefined}return true}switch(e){case this.tag:return false;default:throw new Error(`Unexpected xml node in parseClose: ${e}`)}}}e.exports=AutoFilterXform},96013:function(e,t,r){const n=r(78975);class CustomFilterXform extends n{get tag(){return"customFilter"}render(e,t){e.leafNode(this.tag,{val:t.val,operator:t.operator})}parseOpen(e){if(e.name===this.tag){this.model={val:e.attributes.val,operator:e.attributes.operator};return true}return false}parseText(){}parseClose(){return false}}e.exports=CustomFilterXform},62513:function(e,t,r){const n=r(78975);const i=r(49526);const s=r(96013);const o=r(15343);class FilterColumnXform extends n{constructor(){super();this.map={customFilters:new i({tag:"customFilters",count:false,empty:true,childXform:new s}),filters:new i({tag:"filters",count:false,empty:true,childXform:new o})}}get tag(){return"filterColumn"}prepare(e,t){e.colId=t.index.toString()}render(e,t){if(t.customFilters){e.openNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"});this.map.customFilters.render(e,t.customFilters);e.closeNode();return true}e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"});return true}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}const{attributes:t}=e;switch(e.name){case this.tag:this.model={filterButton:t.hiddenButton==="0"};return true;default:this.parser=this.map[e.name];if(this.parser){this.parseOpen(e);return true}throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(){}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.customFilters=this.map.customFilters.model;return false;default:return true}}}e.exports=FilterColumnXform},15343:function(e,t,r){const n=r(78975);class FilterXform extends n{get tag(){return"filter"}render(e,t){e.leafNode(this.tag,{val:t.val})}parseOpen(e){if(e.name===this.tag){this.model={val:e.attributes.val};return true}return false}parseText(){}parseClose(){return false}}e.exports=FilterXform},91683:function(e,t,r){const n=r(78975);class TableColumnXform extends n{get tag(){return"tableColumn"}prepare(e,t){e.id=t.index+1}render(e,t){e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId});return true}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId};return true}return false}parseText(){}parseClose(){return false}}e.exports=TableColumnXform},39611:function(e,t,r){const n=r(78975);class TableStyleInfoXform extends n{get tag(){return"tableStyleInfo"}render(e,t){e.leafNode(this.tag,{name:t.theme?t.theme:undefined,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"});return true}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;this.model={theme:t.name?t.name:null,showFirstColumn:t.showFirstColumn==="1",showLastColumn:t.showLastColumn==="1",showRowStripes:t.showRowStripes==="1",showColumnStripes:t.showColumnStripes==="1"};return true}return false}parseText(){}parseClose(){return false}}e.exports=TableStyleInfoXform},43491:function(e,t,r){const n=r(15643);const i=r(78975);const s=r(49526);const o=r(74947);const c=r(91683);const h=r(39611);class TableXform extends i{constructor(){super();this.map={autoFilter:new o,tableColumns:new s({tag:"tableColumns",count:true,empty:true,childXform:new c}),tableStyleInfo:new h}}prepare(e,t){this.map.autoFilter.prepare(e);this.map.tableColumns.prepare(e.columns,t)}get tag(){return"table"}render(e,t){e.openXml(n.StdDocAttributes);e.openNode(this.tag,{...TableXform.TABLE_ATTRIBUTES,id:t.id,name:t.name,displayName:t.displayName||t.name,ref:t.tableRef,totalsRowCount:t.totalsRow?"1":undefined,totalsRowShown:t.totalsRow?undefined:"1",headerRowCount:t.headerRow?"1":"0"});this.map.autoFilter.render(e,t);this.map.tableColumns.render(e,t.columns);this.map.tableStyleInfo.render(e,t.style);e.closeNode()}parseOpen(e){if(this.parser){this.parser.parseOpen(e);return true}const{name:t,attributes:r}=e;switch(t){case this.tag:this.reset();this.model={name:r.name,displayName:r.displayName||r.name,tableRef:r.ref,totalsRow:r.totalsRowCount==="1",headerRow:r.headerRowCount==="1"};break;default:this.parser=this.map[e.name];if(this.parser){this.parser.parseOpen(e)}break}return true}parseText(e){if(this.parser){this.parser.parseText(e)}}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){this.parser=undefined}return true}switch(e){case this.tag:this.model.columns=this.map.tableColumns.model;if(this.map.autoFilter.model){this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef;this.map.autoFilter.model.columns.forEach(((e,t)=>{this.model.columns[t].filterButton=e.filterButton}))}this.model.style=this.map.tableStyleInfo.model;return false;default:return true}}reconcile(e,t){e.columns.forEach((e=>{if(e.dxfId!==undefined){e.style=t.styles.getDxfStyle(e.dxfId)}}))}}TableXform.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"};e.exports=TableXform},76247:function(e,t,r){const n=r(57147);const i=r(83592);const{PassThrough:s}=r(96377);const o=r(58562);const c=r(42653);const h=r(55049);const p=r(15643);const{bufferToString:g}=r(94578);const y=r(35064);const b=r(86225);const v=r(20397);const _=r(43905);const w=r(61871);const S=r(79001);const k=r(49112);const x=r(37854);const E=r(87736);const R=r(43491);const C=r(4766);const O=r(85464);const P=r(67895);function fsReadFileAsync(e,t){return new Promise(((r,i)=>{n.readFile(e,t,((e,t)=>{if(e){i(e)}else{r(t)}}))}))}class XLSX{constructor(e){this.workbook=e}async readFile(e,t){if(!await h.fs.exists(e)){throw new Error(`File not found: ${e}`)}const r=n.createReadStream(e);try{const e=await this.read(r,t);r.close();return e}catch(e){r.close();throw e}}parseRels(e){const t=new _;return t.parseStream(e)}parseWorkbook(e){const t=new k;return t.parseStream(e)}parseSharedStrings(e){const t=new v;return t.parseStream(e)}reconcile(e,t){const r=new k;const n=new x(t);const i=new E;const s=new R;r.reconcile(e);const o={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach((t=>{const r=e.drawings[t];const n=e.drawingRels[t];if(n){o.rels=n.reduce(((e,t)=>{e[t.Id]=t;return e}),{});(r.anchors||[]).forEach((e=>{const t=e.picture&&e.picture.hyperlinks;if(t&&o.rels[t.rId]){t.hyperlink=o.rels[t.rId].Target;delete t.rId}}));i.reconcile(r,o)}}));const c={styles:e.styles};Object.values(e.tables).forEach((e=>{s.reconcile(e,c)}));const h={styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings,comments:e.comments,tables:e.tables,vmlDrawings:e.vmlDrawings};e.worksheets.forEach((t=>{t.relationships=e.worksheetRels[t.sheetNo];n.reconcile(t,h)}));delete e.worksheetHash;delete e.worksheetRels;delete e.globalRels;delete e.sharedStrings;delete e.workbookRels;delete e.sheetDefs;delete e.styles;delete e.mediaIndex;delete e.drawings;delete e.drawingRels;delete e.vmlDrawings}async _processWorksheetEntry(e,t,r,n,i){const s=new x(n);const o=await s.parseStream(e);o.sheetNo=r;t.worksheetHash[i]=o;t.worksheets.push(o)}async _processCommentEntry(e,t,r){const n=new C;const i=await n.parseStream(e);t.comments[`../${r}.xml`]=i}async _processTableEntry(e,t,r){const n=new R;const i=await n.parseStream(e);t.tables[`../tables/${r}.xml`]=i}async _processWorksheetRelsEntry(e,t,r){const n=new _;const i=await n.parseStream(e);t.worksheetRels[r]=i}async _processMediaEntry(e,t,r){const n=r.lastIndexOf(".");if(n>=1){const i=r.substr(n+1);const s=r.substr(0,n);await new Promise(((n,o)=>{const h=new c;h.on("finish",(()=>{t.mediaIndex[r]=t.media.length;t.mediaIndex[s]=t.media.length;const e={type:"image",name:s,extension:i,buffer:h.toBuffer()};t.media.push(e);n()}));e.on("error",(e=>{o(e)}));e.pipe(h)}))}}async _processDrawingEntry(e,t,r){const n=new E;const i=await n.parseStream(e);t.drawings[r]=i}async _processDrawingRelsEntry(e,t,r){const n=new _;const i=await n.parseStream(e);t.drawingRels[r]=i}async _processVmlDrawingEntry(e,t,r){const n=new O;const i=await n.parseStream(e);t.vmlDrawings[`../drawings/${r}.vml`]=i}async _processThemeEntry(e,t,r){await new Promise(((n,i)=>{const s=new c;e.on("error",i);s.on("error",i);s.on("finish",(()=>{t.themes[r]=s.read().toString();n()}));e.pipe(s)}))}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(e,t){if(!e[Symbol.asyncIterator]&&e.pipe){e=e.pipe(new s)}const r=[];for await(const t of e){r.push(t)}return this.load(Buffer.concat(r),t)}async load(e,t){let r;if(t&&t.base64){r=Buffer.from(e.toString(),"base64")}else{r=e}const n={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}};const o=await i.loadAsync(r);for(const e of Object.values(o.files)){if(!e.dir){let r=e.name;if(r[0]==="/"){r=r.substr(1)}let i;if(r.match(/xl\/media\//)||r.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/)){i=new s;i.write(await e.async("nodebuffer"))}else{i=new s({writableObjectMode:true,readableObjectMode:true});let t;if(process.browser){t=g(await e.async("nodebuffer"))}else{t=await e.async("string")}const r=16*1024;for(let e=0;e<t.length;e+=r){i.write(t.substring(e,e+r))}}i.end();switch(r){case"_rels/.rels":n.globalRels=await this.parseRels(i);break;case"xl/workbook.xml":{const e=await this.parseWorkbook(i);n.sheets=e.sheets;n.definedNames=e.definedNames;n.views=e.views;n.properties=e.properties;n.calcProperties=e.calcProperties;break}case"xl/_rels/workbook.xml.rels":n.workbookRels=await this.parseRels(i);break;case"xl/sharedStrings.xml":n.sharedStrings=new v;await n.sharedStrings.parseStream(i);break;case"xl/styles.xml":n.styles=new y;await n.styles.parseStream(i);break;case"docProps/app.xml":{const e=new S;const t=await e.parseStream(i);n.company=t.company;n.manager=t.manager;break}case"docProps/core.xml":{const e=new b;const t=await e.parseStream(i);Object.assign(n,t);break}default:{let e=r.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(e){await this._processWorksheetEntry(i,n,e[1],t,r);break}e=r.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/);if(e){await this._processWorksheetRelsEntry(i,n,e[1]);break}e=r.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/);if(e){await this._processThemeEntry(i,n,e[1]);break}e=r.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/);if(e){await this._processMediaEntry(i,n,e[1]);break}e=r.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/);if(e){await this._processDrawingEntry(i,n,e[1]);break}e=r.match(/xl\/(comments\d+)[.]xml/);if(e){await this._processCommentEntry(i,n,e[1]);break}e=r.match(/xl\/tables\/(table\d+)[.]xml/);if(e){await this._processTableEntry(i,n,e[1]);break}e=r.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/);if(e){await this._processDrawingRelsEntry(i,n,e[1]);break}e=r.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/);if(e){await this._processVmlDrawingEntry(i,n,e[1]);break}}}}}this.reconcile(n,t);this.workbook.model=n;return this.workbook}async addMedia(e,t){await Promise.all(t.media.map((async t=>{if(t.type==="image"){const r=`xl/media/${t.name}.${t.extension}`;if(t.filename){const n=await fsReadFileAsync(t.filename);return e.append(n,{name:r})}if(t.buffer){return e.append(t.buffer,{name:r})}if(t.base64){const n=t.base64;const i=n.substring(n.indexOf(",")+1);return e.append(i,{name:r,base64:true})}}throw new Error("Unsupported media")})))}addDrawings(e,t){const r=new E;const n=new _;t.worksheets.forEach((t=>{const{drawing:i}=t;if(i){r.prepare(i,{});let t=r.toXml(i);e.append(t,{name:`xl/drawings/${i.name}.xml`});t=n.toXml(i.rels);e.append(t,{name:`xl/drawings/_rels/${i.name}.xml.rels`})}}))}addTables(e,t){const r=new R;t.worksheets.forEach((t=>{const{tables:n}=t;n.forEach((t=>{r.prepare(t,{});const n=r.toXml(t);e.append(n,{name:`xl/tables/${t.target}`})}))}))}async addContentTypes(e,t){const r=new w;const n=r.toXml(t);e.append(n,{name:"[Content_Types].xml"})}async addApp(e,t){const r=new S;const n=r.toXml(t);e.append(n,{name:"docProps/app.xml"})}async addCore(e,t){const r=new b;e.append(r.toXml(t),{name:"docProps/core.xml"})}async addThemes(e,t){const r=t.themes||{theme1:P};Object.keys(r).forEach((t=>{const n=r[t];const i=`xl/theme/${t}.xml`;e.append(n,{name:i})}))}async addOfficeRels(e){const t=new _;const r=t.toXml([{Id:"rId1",Type:XLSX.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:XLSX.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:XLSX.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);e.append(r,{name:"_rels/.rels"})}async addWorkbookRels(e,t){let r=1;const n=[{Id:`rId${r++}`,Type:XLSX.RelType.Styles,Target:"styles.xml"},{Id:`rId${r++}`,Type:XLSX.RelType.Theme,Target:"theme/theme1.xml"}];if(t.sharedStrings.count){n.push({Id:`rId${r++}`,Type:XLSX.RelType.SharedStrings,Target:"sharedStrings.xml"})}t.worksheets.forEach((e=>{e.rId=`rId${r++}`;n.push({Id:e.rId,Type:XLSX.RelType.Worksheet,Target:`worksheets/sheet${e.id}.xml`})}));const i=new _;const s=i.toXml(n);e.append(s,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(e,t){if(t.sharedStrings&&t.sharedStrings.count){e.append(t.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}}async addStyles(e,t){const{xml:r}=t.styles;if(r){e.append(r,{name:"xl/styles.xml"})}}async addWorkbook(e,t){const r=new k;e.append(r.toXml(t),{name:"xl/workbook.xml"})}async addWorksheets(e,t){const r=new x;const n=new _;const i=new C;const s=new O;t.worksheets.forEach((t=>{let o=new p;r.render(o,t);e.append(o.xml,{name:`xl/worksheets/sheet${t.id}.xml`});if(t.rels&&t.rels.length){o=new p;n.render(o,t.rels);e.append(o.xml,{name:`xl/worksheets/_rels/sheet${t.id}.xml.rels`})}if(t.comments.length>0){o=new p;i.render(o,t);e.append(o.xml,{name:`xl/comments${t.id}.xml`});o=new p;s.render(o,t);e.append(o.xml,{name:`xl/drawings/vmlDrawing${t.id}.vml`})}}))}_finalize(e){return new Promise(((t,r)=>{e.on("finish",(()=>{t(this)}));e.on("error",r);e.finalize()}))}prepareModel(e,t){e.creator=e.creator||"ExcelJS";e.lastModifiedBy=e.lastModifiedBy||"ExcelJS";e.created=e.created||new Date;e.modified=e.modified||new Date;e.useSharedStrings=t.useSharedStrings!==undefined?t.useSharedStrings:true;e.useStyles=t.useStyles!==undefined?t.useStyles:true;e.sharedStrings=new v;e.styles=e.useStyles?new y(true):new y.Mock;const r=new k;const n=new x;r.prepare(e);const i={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};i.drawings=e.drawings=[];i.commentRefs=e.commentRefs=[];let s=0;e.tables=[];e.worksheets.forEach((t=>{t.tables.forEach((t=>{s++;t.target=`table${s}.xml`;t.id=s;e.tables.push(t)}));n.prepare(t,i)}))}async write(e,t){t=t||{};const{model:r}=this.workbook;const n=new o.ZipWriter(t.zip);n.pipe(e);this.prepareModel(r,t);await this.addContentTypes(n,r);await this.addOfficeRels(n,r);await this.addWorkbookRels(n,r);await this.addWorksheets(n,r);await this.addSharedStrings(n,r);await this.addDrawings(n,r);await this.addTables(n,r);await Promise.all([this.addThemes(n,r),this.addStyles(n,r)]);await this.addMedia(n,r);await Promise.all([this.addApp(n,r),this.addCore(n,r)]);await this.addWorkbook(n,r);return this._finalize(n)}writeFile(e,t){const r=n.createWriteStream(e);return new Promise(((e,n)=>{r.on("finish",(()=>{e()}));r.on("error",(e=>{n(e)}));this.write(r,t).then((()=>{r.end()})).catch((e=>{n(e)}))}))}async writeBuffer(e){const t=new c;await this.write(t,e);return t.read()}}XLSX.RelType=r(4076);e.exports=XLSX},67895:function(e){e.exports='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>'},45286:function(e){!function(t,r){true?e.exports=r():0}(this,(function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,o={},a=function(e){return(e=+e)+(e>68?1900:2e3)};var f=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),r=60*t[1]+(+t[2]||0);return 0===r?0:"+"===t[0]?-r:r}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var r,n=o.meridiem;if(n){for(var i=1;i<=24;i+=1)if(e.indexOf(n(i,0,t))>-1){r=i>12;break}}else r=e===(t?"pm":"PM");return r},h={A:[s,function(e){this.afternoon=d(e,!1)}],a:[s,function(e){this.afternoon=d(e,!0)}],Q:[r,function(e){this.month=3*(e-1)+1}],S:[r,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,f("seconds")],ss:[i,f("seconds")],m:[i,f("minutes")],mm:[i,f("minutes")],H:[i,f("hours")],h:[i,f("hours")],HH:[i,f("hours")],hh:[i,f("hours")],D:[i,f("day")],DD:[n,f("day")],Do:[s,function(e){var t=o.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],w:[i,f("week")],ww:[n,f("week")],M:[i,f("month")],MM:[n,f("month")],MMM:[s,function(e){var t=u("months"),r=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[s,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,f("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function l(r){var n,i;n=r,i=o&&o.formats;for(var s=(r=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,n){var s=n&&n.toUpperCase();return r||i[n]||e[n]||i[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}))).match(t),c=s.length,p=0;p<c;p+=1){var g=s[p],y=h[g],b=y&&y[0],v=y&&y[1];s[p]=v?{regex:b,parser:v}:g.replace(/^\[|\]$/g,"")}return function(e){for(var t={},r=0,n=0;r<c;r+=1){var i=s[r];if("string"==typeof i)n+=i.length;else{var o=i.regex,h=i.parser,p=e.slice(n),g=o.exec(p)[0];h.call(t,g),e=e.replace(g,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var r=e.hours;t?r<12&&(e.hours+=12):12===r&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,r){r.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var n=t.prototype,i=n.parse;n.parse=function(e){var t=e.date,n=e.utc,s=e.args;this.$u=n;var c=s[1];if("string"==typeof c){var h=!0===s[2],p=!0===s[3],g=h||p,y=s[2];p&&(y=s[2]),o=this.$locale(),!h&&y&&(o=r.Ls[y]),this.$d=function(e,t,r,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=l(t)(e),s=i.year,o=i.month,c=i.day,h=i.hours,p=i.minutes,g=i.seconds,y=i.milliseconds,b=i.zone,v=i.week,_=new Date,w=c||(s||o?1:_.getDate()),S=s||_.getFullYear(),k=0;s&&!o||(k=o>0?o-1:_.getMonth());var x,E=h||0,R=p||0,C=g||0,O=y||0;return b?new Date(Date.UTC(S,k,w,E,R,C,O+60*b.offset*1e3)):r?new Date(Date.UTC(S,k,w,E,R,C,O)):(x=new Date(S,k,w,E,R,C,O),v&&(x=n(x).week(v).toDate()),x)}catch(e){return new Date("")}}(t,c,n,r),this.init(),y&&!0!==y&&(this.$L=this.locale(y).$L),g&&t!=this.format(c)&&(this.$d=new Date("")),o={}}else if(c instanceof Array)for(var b=c.length,v=1;v<=b;v+=1){s[1]=c[v-1];var _=r.apply(this,s);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}v===b&&(this.$d=new Date(""))}else i.call(this,e)}}}))},63110:function(e){!function(t,r){true?e.exports=r():0}(this,(function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,i,s){var o=i.prototype;s.utc=function(e){var t={date:e,utc:!0,args:arguments};return new i(t)},o.utc=function(t){var r=s(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},o.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),c.call(this,e)};var h=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else h.call(this)};var p=o.utcOffset;o.utcOffset=function(n,i){var s=this.$utils().u;if(s(n))return this.$u?0:s(this.$offset)?p.call(this):this.$offset;if("string"==typeof n&&(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var i=(""+n[0]).match(r)||["-",0,0],s=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===s?o:-o}(n),null===n))return this;var o=Math.abs(n)<=16?60*n:n,c=this;if(i)return c.$offset=o,c.$u=0===n,c;if(0!==n){var h=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(c=this.local().add(o+h,e)).$offset=o,c.$x.$localOffset=h}else c=this.utc();return c};var g=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var y=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var b=o.diff;o.diff=function(e,t,r){if(e&&this.$u===e.$u)return b.call(this,e,t,r);var n=this.local(),i=s(e).local();return b.call(n,i,t,r)}}}))},36931: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.q=t},83715: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(87049);var s=r(72713);r(44124)(Duplex,i);{var o=n(s.prototype);for(var c=0;c<o.length;c++){var h=o[c];if(!Duplex.prototype[h])Duplex.prototype[h]=s.prototype[h]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);i.call(this,e);s.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}})},52537:function(e,t,r){"use strict";e.exports=PassThrough;var n=r(72078);r(44124)(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)}},87049:function(e,t,r){"use strict";e.exports=Readable;var n;Readable.ReadableState=ReadableState;var i=r(82361).EventEmitter;var s=function EElistenerCount(e,t){return e.listeners(t).length};var o=r(91465);var c=r(14300).Buffer;var h=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return c.from(e)}function _isUint8Array(e){return c.isBuffer(e)||e instanceof h}var p=r(73837);var g;if(p&&p.debuglog){g=p.debuglog("stream")}else{g=function debug(){}}var y=r(19964);var b=r(12556);var v=r(70331),_=v.getHighWaterMark;var w=r(36931).q,S=w.ERR_INVALID_ARG_TYPE,k=w.ERR_STREAM_PUSH_AFTER_EOF,x=w.ERR_METHOD_NOT_IMPLEMENTED,E=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var R;var C;var O;r(44124)(Readable,o);var P=b.errorOrDestroy;var A=["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(83715);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=_(this,e,"readableHighWaterMark",i);this.buffer=new y;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(!R)R=r(94841).s;this.decoder=new R(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||r(83715);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}o.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=b.destroy;Readable.prototype._undestroy=b.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=c.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){g("readableAddChunk",t);var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var o;if(!i)o=chunkInvalid(s,t);if(o){P(e,o)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==c.prototype){t=_uint8ArrayToBuffer(t)}if(n){if(s.endEmitted)P(e,new E);else addChunk(e,s,t,true)}else if(s.ended){P(e,new k)}else if(s.destroyed){return false}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(!n){s.reading=false;maybeReadMore(e,s)}}return!s.ended&&(s.length<s.highWaterMark||s.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 S("chunk",["string","Buffer","Uint8Array"],t)}return r}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!R)R=r(94841).s;var t=new R(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 I=1073741824;function computeNewHighWaterMark(e){if(e>=I){e=I}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){g("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)){g("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;g("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;g("length less than watermark",n)}if(t.ended||t.reading){n=false;g("reading or ended",n)}else if(n){g("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){g("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;g("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){g("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;g("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;g("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}Readable.prototype._read=function(e){P(this,new x("_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;g("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var o=i?onend:unpipe;if(n.endEmitted)process.nextTick(o);else r.once("end",o);e.on("unpipe",onunpipe);function onunpipe(e,t){g("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){g("onend");e.end()}var c=pipeOnDrain(r);e.on("drain",c);var h=false;function cleanup(){g("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",c);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);h=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))c()}r.on("data",ondata);function ondata(t){g("ondata");var i=e.write(t);g("dest.write",i);if(i===false){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!h){g("false write response, pause",n.awaitDrain);n.awaitDrain++}r.pause()}}function onerror(t){g("onerror",t);unpipe();e.removeListener("error",onerror);if(s(e,"error")===0)P(e,t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){g("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){g("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){g("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;g("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&s(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 s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:false});return this}var o=indexOf(t.pipes,e);if(o===-1)return this;t.pipes.splice(o,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);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;g("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=o.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return r};Readable.prototype.removeAllListeners=function(e){var t=o.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){g("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){g("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){g("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(){g("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){g("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;g("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(){g("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){g("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 s=t.push(i);if(!s){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 s=0;s<A.length;s++){e.on(A[s],this.emit.bind(this,A[s]))}this._read=function(t){g("wrapped _read",t);if(n){n=false;e.resume()}};return this};if(typeof Symbol==="function"){Readable.prototype[Symbol.asyncIterator]=function(){if(C===undefined){C=r(57330)}return C(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;g("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){g("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(O===undefined){O=r(89105)}return O(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}},72078:function(e,t,r){"use strict";e.exports=Transform;var n=r(36931).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0;var h=r(83715);r(44124)(Transform,h);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(n===null){return this.emit("error",new s)}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);h.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 h.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){h.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 c;if(e._transformState.transforming)throw new o;return e.push(null)}},72713: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(65278)};var s=r(91465);var o=r(14300).Buffer;var c=(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 c}var h=r(12556);var p=r(70331),g=p.getHighWaterMark;var y=r(36931).q,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_MULTIPLE_CALLBACK,w=y.ERR_STREAM_CANNOT_PIPE,S=y.ERR_STREAM_DESTROYED,k=y.ERR_STREAM_NULL_VALUES,x=y.ERR_STREAM_WRITE_AFTER_END,E=y.ERR_UNKNOWN_ENCODING;var R=h.errorOrDestroy;r(44124)(Writable,s);function nop(){}function WritableState(e,t,i){n=n||r(83715);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=g(this,e,"writableHighWaterMark",i);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var s=e.decodeStrings===false;this.decodeStrings=!s;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 C;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){C=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(C.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{C=function realHasInstance(e){return e instanceof this}}function Writable(e){n=n||r(83715);var t=this instanceof n;if(!t&&!C.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}s.call(this)}Writable.prototype.pipe=function(){R(this,new w)};function writeAfterEnd(e,t){var r=new x;R(e,r);process.nextTick(t,r)}function validChunk(e,t,r,n){var i;if(r===null){i=new k}else if(typeof r!=="string"&&!t.objectMode){i=new b("chunk",["string","Buffer"],r)}if(i){R(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 s=!n.objectMode&&_isUint8Array(e);if(s&&!o.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(s)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=nop;if(n.ending)writeAfterEnd(this,r);else if(s||validChunk(this,n,e,r)){n.pendingcb++;i=writeOrBuffer(this,n,s,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 E(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=o.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,s){if(!r){var o=decodeChunk(t,n,i);if(n!==o){r=true;i="buffer";n=o}}var c=t.objectMode?1:n.length;t.length+=c;var h=t.length<t.highWaterMark;if(!h)t.needDrain=true;if(t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null};if(p){p.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,c,n,i,s)}return h}function doWrite(e,t,r,n,i,s,o){t.writelen=n;t.writecb=o;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new S("write"));else if(r)e._writev(i,t.onwrite);else e._write(i,s,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;R(e,n)}else{i(n);e._writableState.errorEmitted=true;R(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 _;onwriteStateUpdate(r);if(t)onwriteError(e,r,n,t,i);else{var s=needFinish(r)||e.destroyed;if(!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(n){process.nextTick(afterWrite,e,r,s,i)}else{afterWrite(e,r,s,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 s=t.corkedRequestsFree;s.entry=r;var o=0;var c=true;while(r){i[o]=r;if(!r.isBuf)c=false;r=r.next;o+=1}i.allBuffers=c;doWrite(e,t,true,t.length,i,"",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 h=r.chunk;var p=r.encoding;var g=r.callback;var y=t.objectMode?1:h.length;doWrite(e,t,false,y,h,p,g);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 v("_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){R(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=h.destroy;Writable.prototype._undestroy=h.undestroy;Writable.prototype._destroy=function(e,t){t(e)}},57330: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(28098);var s=Symbol("lastResolve");var o=Symbol("lastReject");var c=Symbol("error");var h=Symbol("ended");var p=Symbol("lastPromise");var g=Symbol("handlePromise");var y=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[s];if(t!==null){var r=e[y].read();if(r!==null){e[p]=null;e[s]=null;e[o]=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[h]){r(createIterResult(undefined,true));return}t[g](r,n)}),n)}}var b=Object.getPrototypeOf((function(){}));var v=Object.setPrototypeOf((n={get stream(){return this[y]},next:function next(){var e=this;var t=this[c];if(t!==null){return Promise.reject(t)}if(this[h]){return Promise.resolve(createIterResult(undefined,true))}if(this[y].destroyed){return new Promise((function(t,r){process.nextTick((function(){if(e[c]){r(e[c])}else{t(createIterResult(undefined,true))}}))}))}var r=this[p];var n;if(r){n=new Promise(wrapForNext(r,this))}else{var i=this[y].read();if(i!==null){return Promise.resolve(createIterResult(i,false))}n=new Promise(this[g])}this[p]=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[y].destroy(null,(function(e){if(e){r(e);return}t(createIterResult(undefined,true))}))}))})),n),b);var _=function createReadableStreamAsyncIterator(e){var t;var r=Object.create(v,(t={},_defineProperty(t,y,{value:e,writable:true}),_defineProperty(t,s,{value:null,writable:true}),_defineProperty(t,o,{value:null,writable:true}),_defineProperty(t,c,{value:null,writable:true}),_defineProperty(t,h,{value:e._readableState.endEmitted,writable:true}),_defineProperty(t,g,{value:function value(e,t){var n=r[y].read();if(n){r[p]=null;r[s]=null;r[o]=null;e(createIterResult(n,false))}else{r[s]=e;r[o]=t}},writable:true}),t));r[p]=null;i(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=r[o];if(t!==null){r[p]=null;r[s]=null;r[o]=null;t(e)}r[c]=e;return}var n=r[s];if(n!==null){r[p]=null;r[s]=null;r[o]=null;n(createIterResult(undefined,true))}r[h]=true}));e.on("readable",onReadable.bind(null,r));return r};e.exports=_},19964: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(14300),i=n.Buffer;var s=r(73837),o=s.inspect;var c=o&&o.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 s=e>i.length?i.length:e;if(s===i.length)n+=i;else n+=i.slice(0,e);e-=s;if(e===0){if(s===i.length){++r;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=i.slice(s)}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 s=r.data;var o=e>s.length?s.length:e;s.copy(t,t.length-e,0,o);e-=o;if(e===0){if(o===s.length){++n;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=s.slice(o)}break}++n}this.length-=n;return t}},{key:c,value:function value(e,t){return o(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:false}))}}]);return BufferList}()},12556: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}},28098:function(e,t,r){"use strict";var n=r(36931).q.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 s=t.writable||t.writable!==false&&e.writable;var o=function onlegacyfinish(){if(!e.writable)h()};var c=e._writableState&&e._writableState.finished;var h=function onfinish(){s=false;c=true;if(!i)r.call(e)};var p=e._readableState&&e._readableState.endEmitted;var g=function onend(){i=false;p=true;if(!s)r.call(e)};var y=function onerror(t){r.call(e,t)};var b=function onclose(){var t;if(i&&!p){if(!e._readableState||!e._readableState.ended)t=new n;return r.call(e,t)}if(s&&!c){if(!e._writableState||!e._writableState.ended)t=new n;return r.call(e,t)}};var v=function onrequest(){e.req.on("finish",h)};if(isRequest(e)){e.on("complete",h);e.on("abort",b);if(e.req)v();else e.on("request",v)}else if(s&&!e._writableState){e.on("end",o);e.on("close",o)}e.on("end",g);e.on("finish",h);if(t.error!==false)e.on("error",y);e.on("close",b);return function(){e.removeListener("complete",h);e.removeListener("abort",b);e.removeListener("request",v);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",o);e.removeListener("close",o);e.removeListener("finish",h);e.removeListener("end",g);e.removeListener("error",y);e.removeListener("close",b)}}e.exports=eos},89105:function(e,t,r){"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var c=e[s](o);var h=c.value}catch(e){r(e);return}if(c.done){t(h)}else{Promise.resolve(h).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,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(36931).q.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 s=new e(_objectSpread({objectMode:true},r));var o=false;s._read=function(){if(!o){o=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){s.push(null)}else if(s.push(yield t)){next()}else{o=false}}catch(e){s.destroy(e)}}));return _next2.apply(this,arguments)}return s}e.exports=from},22316: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(36931).q,s=i.ERR_MISSING_ARGS,o=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,s){s=once(s);var c=false;e.on("close",(function(){c=true}));if(n===undefined)n=r(28098);n(e,{readable:t,writable:i},(function(e){if(e)return s(e);c=true;s()}));var h=false;return function(t){if(c)return;if(h)return;h=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();s(t||new o("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 s("streams")}var i;var o=t.map((function(e,r){var s=r<t.length-1;var c=r>0;return destroyer(e,s,c,(function(e){if(!i)i=e;if(e)o.forEach(call);if(s)return;o.forEach(call);n(i)}))}));return t.reduce(pipe)}e.exports=pipeline},70331:function(e,t,r){"use strict";var n=r(36931).q.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 s=highWaterMarkFrom(t,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var o=i?r:"highWaterMark";throw new n(o,s)}return Math.floor(s)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},91465:function(e,t,r){e.exports=r(12781)},96377:function(e,t,r){var n=r(12781);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(87049);t.Stream=n||t;t.Readable=t;t.Writable=r(72713);t.Duplex=r(83715);t.Transform=r(72078);t.PassThrough=r(52537);t.finished=r(28098);t.pipeline=r(22316)}},81941:function(e,t,r){
52
52
  /*!