create-next-app 13.4.5-canary.8 → 13.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +10 -10
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  (()=>{var e={42706:e=>{"use strict";e.exports=asyncForEach;function asyncForEach(e,t,r){if(e.length===0){r();return}let n=e.length;e.forEach((e=>{t(e,(()=>{if(--n===0){r()}}))}))}},19583:(e,t,r)=>{"use strict";e.exports=readdirAsync;const n=r(34009);const s=r(43851);let i={fs:r(57147),forEach:r(42706),async:true};function readdirAsync(e,t,r,o){if(typeof t==="function"){r=t;t=undefined}return n(r,new Promise(((r,n)=>{let a=[];o.facade=i;let c=new s(e,t,o);let u=c.stream;u.on("error",(e=>{n(e);u.pause()}));u.on("data",(e=>{a.push(e)}));u.on("end",(()=>{r(a)}))})))}},81369:e=>{"use strict";let t=e.exports={safe:safeCall,once:callOnce};function safeCall(e,r){r=Array.prototype.slice.call(arguments,1);let n=t.once(r.pop());r.push(n);try{e.apply(null,r)}catch(e){n(e)}}function callOnce(e){let t=false;return function onceWrapper(r){if(!t){t=true;return e.apply(this,arguments)}else if(r){throw r}}}},43851:(e,t,r)=>{"use strict";const n=r(12781).Readable;const s=r(82361).EventEmitter;const i=r(71017);const o=r(90409);const a=r(32166);const c=r(81369);class DirectoryReader{constructor(e,t,r){this.options=t=o(t,r);this.shouldRead=true;this.queue=[{path:e,basePath:t.basePath,posixBasePath:t.posixBasePath,depth:0}];this.pending=0;this.buffer=[];this.stream=new n({objectMode:true});this.stream._read=()=>{this.shouldRead=true;if(this.buffer.length>0){this.pushFromBuffer()}if(this.queue.length>0){if(this.options.facade.sync){while(this.queue.length>0){this.readNextDirectory()}}else{this.readNextDirectory()}}this.checkForEOF()}}readNextDirectory(){let e=this.options.facade;let t=this.queue.shift();this.pending++;c.safe(e.fs.readdir,t.path,((r,n)=>{if(r){this.emit("error",r);return this.finishedReadingDirectory()}try{e.forEach(n,this.processItem.bind(this,t),this.finishedReadingDirectory.bind(this,t))}catch(e){this.emit("error",e);this.finishedReadingDirectory()}}))}finishedReadingDirectory(){this.pending--;if(this.shouldRead){if(this.queue.length>0&&this.options.facade.async){this.readNextDirectory()}this.checkForEOF()}}checkForEOF(){if(this.buffer.length===0&&this.pending===0&&this.queue.length===0){this.stream.push(null)}}processItem(e,t,r){let n=this.stream;let o=this.options;let c=e.basePath+t;let u=e.posixBasePath+t;let l=i.join(e.path,t);let h=e.depth>=o.recurseDepth;let p=!h||o.stats||o.recurseFn||o.filterFn||s.listenerCount(n,"file")||s.listenerCount(n,"directory")||s.listenerCount(n,"symlink");if(!p){if(this.filter(c,u)){this.pushOrBuffer({data:c})}return r()}a(o.facade.fs,l,((t,n)=>{if(t){this.emit("error",t);return r()}try{n.path=c;n.depth=e.depth;if(this.shouldRecurse(n,u,h)){this.queue.push({path:l,basePath:c+o.sep,posixBasePath:u+"/",depth:e.depth+1})}if(this.filter(n,u)){this.pushOrBuffer({data:o.stats?n:c,file:n.isFile(),directory:n.isDirectory(),symlink:n.isSymbolicLink()})}r()}catch(e){this.emit("error",e);r()}}))}pushOrBuffer(e){this.buffer.push(e);if(this.shouldRead){this.pushFromBuffer()}}pushFromBuffer(){let e=this.stream;let t=this.buffer.shift();try{this.shouldRead=e.push(t.data)}catch(e){this.emit("error",e)}t.file&&this.emit("file",t.data);t.symlink&&this.emit("symlink",t.data);t.directory&&this.emit("directory",t.data)}shouldRecurse(e,t,r){let n=this.options;if(r){return false}else if(!e.isDirectory()){return false}else if(n.recurseGlob){return n.recurseGlob.test(t)}else if(n.recurseRegExp){return n.recurseRegExp.test(e.path)}else if(n.recurseFn){try{return n.recurseFn.call(null,e)}catch(e){this.emit("error",e)}}else{return true}}filter(e,t){let r=this.options;if(r.filterGlob){return r.filterGlob.test(t)}else if(r.filterRegExp){return r.filterRegExp.test(e.path||e)}else if(r.filterFn){try{return r.filterFn.call(null,e)}catch(e){this.emit("error",e)}}else{return true}}emit(e,t){let r=this.stream;try{r.emit(e,t)}catch(t){if(e==="error"){throw t}else{r.emit("error",t)}}}}e.exports=DirectoryReader},63091:(e,t,r)=>{"use strict";const n=r(95407);const s=r(19583);const i=r(21232);e.exports=t=readdirAsyncPath;t.readdir=t.readdirAsync=t.async=readdirAsyncPath;t.readdirAsyncStat=t.async.stat=readdirAsyncStat;t.readdirStream=t.stream=readdirStreamPath;t.readdirStreamStat=t.stream.stat=readdirStreamStat;t.readdirSync=t.sync=readdirSyncPath;t.readdirSyncStat=t.sync.stat=readdirSyncStat;function readdirSyncPath(e,t){return n(e,t,{})}function readdirSyncStat(e,t){return n(e,t,{stats:true})}function readdirAsyncPath(e,t,r){return s(e,t,r,{})}function readdirAsyncStat(e,t,r){return s(e,t,r,{stats:true})}function readdirStreamPath(e,t){return i(e,t,{})}function readdirStreamStat(e,t){return i(e,t,{stats:true})}},90409:(e,t,r)=>{"use strict";const n=r(71017);const s=r(777);e.exports=normalizeOptions;let i=/^win/.test(process.platform);function normalizeOptions(e,t){if(e===null||e===undefined){e={}}else if(typeof e!=="object"){throw new TypeError("options must be an object")}let r,o,a,c,u=e.deep;if(u===null||u===undefined){r=0}else if(typeof u==="boolean"){r=u?Infinity:0}else if(typeof u==="number"){if(u<0||isNaN(u)){throw new Error("options.deep must be a positive number")}else if(Math.floor(u)!==u){throw new Error("options.deep must be an integer")}else{r=u}}else if(typeof u==="function"){r=Infinity;o=u}else if(u instanceof RegExp){r=Infinity;a=u}else if(typeof u==="string"&&u.length>0){r=Infinity;c=s(u,{extended:true,globstar:true})}else{throw new TypeError("options.deep must be a boolean, number, function, regular expression, or glob pattern")}let l,h,p,d=e.filter;if(d!==null&&d!==undefined){if(typeof d==="function"){l=d}else if(d instanceof RegExp){h=d}else if(typeof d==="string"&&d.length>0){p=s(d,{extended:true,globstar:true})}else{throw new TypeError("options.filter must be a function, regular expression, or glob pattern")}}let y=e.sep;if(y===null||y===undefined){y=n.sep}else if(typeof y!=="string"){throw new TypeError("options.sep must be a string")}let g=e.basePath;if(g===null||g===undefined){g=""}else if(typeof g==="string"){if(g&&g.substr(-1)!==y){g+=y}}else{throw new TypeError("options.basePath must be a string")}let v=g;if(v&&y!=="/"){v=v.replace(new RegExp("\\"+y,"g"),"/");if(i){v=v.replace(/^([a-zA-Z]\:\/|\/\/)/,"/")}}let b;if(e.fs===null||e.fs===undefined){b=t.facade}else if(typeof e.fs==="object"){b=Object.assign({},t.facade);b.fs=Object.assign({},t.facade.fs,e.fs)}else{throw new TypeError("options.fs must be an object")}return{recurseDepth:r,recurseFn:o,recurseRegExp:a,recurseGlob:c,filterFn:l,filterRegExp:h,filterGlob:p,sep:y,basePath:g,posixBasePath:v,facade:b,emit:!!t.emit,stats:!!t.stats}}},32166:(e,t,r)=>{"use strict";const n=r(81369);e.exports=stat;function stat(e,t,r){let s=false;n.safe(e.lstat,t,((n,i)=>{if(n){return r(n)}try{s=i.isSymbolicLink()}catch(e){return r(e)}if(s){symlinkStat(e,t,i,r)}else{r(null,i)}}))}function symlinkStat(e,t,r,s){n.safe(e.stat,t,((e,t)=>{if(e){return s(null,r)}try{t.isSymbolicLink=()=>true}catch(e){return s(e)}s(null,t)}))}},21232:(e,t,r)=>{"use strict";e.exports=readdirStream;const n=r(43851);let s={fs:r(57147),forEach:r(42706),async:true};function readdirStream(e,t,r){r.facade=s;let i=new n(e,t,r);return i.stream}},19580:e=>{"use strict";e.exports=syncForEach;function syncForEach(e,t,r){e.forEach((e=>{t(e,(()=>{}))}));r()}},84752:(e,t,r)=>{"use strict";const n=r(57147);const s=r(81369);t.readdir=function(e,t){t=s.once(t);try{let r=n.readdirSync(e);t(null,r)}catch(e){t(e)}};t.stat=function(e,t){t=s.once(t);try{let r=n.statSync(e);t(null,r)}catch(e){t(e)}};t.lstat=function(e,t){t=s.once(t);try{let r=n.lstatSync(e);t(null,r)}catch(e){t(e)}}},95407:(e,t,r)=>{"use strict";e.exports=readdirSync;const n=r(43851);let s={fs:r(84752),forEach:r(19580),sync:true};function readdirSync(e,t,r){r.facade=s;let i=new n(e,t,r);let o=i.stream;let a=[];let c=o.read();while(c!==null){a.push(c);c=o.read()}return a}},98677:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(57147);t.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync};function getFileSystemAdapter(e){if(!e){return t.FILE_SYSTEM_ADAPTER}return Object.assign({},t.FILE_SYSTEM_ADAPTER,e)}t.getFileSystemAdapter=getFileSystemAdapter},36948:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(54803);const s=r(57993);function stat(e,t){return new Promise(((r,i)=>{s.async(e,n.prepare(t),((e,t)=>e?i(e):r(t)))}))}t.stat=stat;function statCallback(e,t,r){if(typeof t==="function"){r=t;t=undefined}if(typeof r==="undefined"){throw new TypeError('The "callback" argument must be of type Function.')}s.async(e,n.prepare(t),r)}t.statCallback=statCallback;function statSync(e,t){return s.sync(e,n.prepare(t))}t.statSync=statSync},54803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(98677);function prepare(e){const t=Object.assign({fs:n.getFileSystemAdapter(e?e.fs:undefined),throwErrorOnBrokenSymlinks:true,followSymlinks:true},e);return t}t.prepare=prepare},57993:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function sync(e,t){const r=t.fs.lstatSync(e);if(!isFollowedSymlink(r,t)){return r}try{const r=t.fs.statSync(e);r.isSymbolicLink=()=>true;return r}catch(e){if(!t.throwErrorOnBrokenSymlinks){return r}throw e}}t.sync=sync;function async(e,t,r){t.fs.lstat(e,((n,s)=>{if(n){return r(n,undefined)}if(!isFollowedSymlink(s,t)){return r(null,s)}t.fs.stat(e,((e,n)=>{if(e){return t.throwErrorOnBrokenSymlinks?r(e):r(null,s)}n.isSymbolicLink=()=>true;r(null,n)}))}))}t.async=async;function isFollowedSymlink(e,t){return e.isSymbolicLink()&&t.followSymlinks}t.isFollowedSymlink=isFollowedSymlink},25773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const{toString:r}=Object.prototype;const isOfType=e=>t=>typeof t===e;const getObjectType=e=>{const t=r.call(e).slice(8,-1);if(t){return t}return undefined};const isObjectOfType=e=>t=>getObjectType(t)===e;function is(e){switch(e){case null:return"null";case true:case false:return"boolean";default:}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(is.function_(e)){return"Function"}if(is.observable(e)){return"Observable"}if(is.array(e)){return"Array"}if(is.buffer(e)){return"Buffer"}const t=getObjectType(e);if(t){return t}if(e instanceof String||e instanceof Boolean||e instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}is.undefined=isOfType("undefined");is.string=isOfType("string");const n=isOfType("number");is.number=e=>n(e)&&!is.nan(e);is.bigint=isOfType("bigint");is.function_=isOfType("function");is.null_=e=>e===null;is.class_=e=>is.function_(e)&&e.toString().startsWith("class ");is.boolean=e=>e===true||e===false;is.symbol=isOfType("symbol");is.numericString=e=>is.string(e)&&e.length>0&&!Number.isNaN(Number(e));is.array=Array.isArray;is.buffer=e=>!is.nullOrUndefined(e)&&!is.nullOrUndefined(e.constructor)&&is.function_(e.constructor.isBuffer)&&e.constructor.isBuffer(e);is.nullOrUndefined=e=>is.null_(e)||is.undefined(e);is.object=e=>!is.null_(e)&&(typeof e==="object"||is.function_(e));is.iterable=e=>!is.nullOrUndefined(e)&&is.function_(e[Symbol.iterator]);is.asyncIterable=e=>!is.nullOrUndefined(e)&&is.function_(e[Symbol.asyncIterator]);is.generator=e=>is.iterable(e)&&is.function_(e.next)&&is.function_(e.throw);is.asyncGenerator=e=>is.asyncIterable(e)&&is.function_(e.next)&&is.function_(e.throw);is.nativePromise=e=>isObjectOfType("Promise")(e);const hasPromiseAPI=e=>is.object(e)&&is.function_(e.then)&&is.function_(e.catch);is.promise=e=>is.nativePromise(e)||hasPromiseAPI(e);is.generatorFunction=isObjectOfType("GeneratorFunction");is.asyncGeneratorFunction=e=>getObjectType(e)==="AsyncGeneratorFunction";is.asyncFunction=e=>getObjectType(e)==="AsyncFunction";is.boundFunction=e=>is.function_(e)&&!e.hasOwnProperty("prototype");is.regExp=isObjectOfType("RegExp");is.date=isObjectOfType("Date");is.error=isObjectOfType("Error");is.map=e=>isObjectOfType("Map")(e);is.set=e=>isObjectOfType("Set")(e);is.weakMap=e=>isObjectOfType("WeakMap")(e);is.weakSet=e=>isObjectOfType("WeakSet")(e);is.int8Array=isObjectOfType("Int8Array");is.uint8Array=isObjectOfType("Uint8Array");is.uint8ClampedArray=isObjectOfType("Uint8ClampedArray");is.int16Array=isObjectOfType("Int16Array");is.uint16Array=isObjectOfType("Uint16Array");is.int32Array=isObjectOfType("Int32Array");is.uint32Array=isObjectOfType("Uint32Array");is.float32Array=isObjectOfType("Float32Array");is.float64Array=isObjectOfType("Float64Array");is.bigInt64Array=isObjectOfType("BigInt64Array");is.bigUint64Array=isObjectOfType("BigUint64Array");is.arrayBuffer=isObjectOfType("ArrayBuffer");is.sharedArrayBuffer=isObjectOfType("SharedArrayBuffer");is.dataView=isObjectOfType("DataView");is.directInstanceOf=(e,t)=>Object.getPrototypeOf(e)===t.prototype;is.urlInstance=e=>isObjectOfType("URL")(e);is.urlString=e=>{if(!is.string(e)){return false}try{new URL(e);return true}catch(e){return false}};is.truthy=e=>Boolean(e);is.falsy=e=>!e;is.nan=e=>Number.isNaN(e);const s=new Set(["undefined","string","number","bigint","boolean","symbol"]);is.primitive=e=>is.null_(e)||s.has(typeof e);is.integer=e=>Number.isInteger(e);is.safeInteger=e=>Number.isSafeInteger(e);is.plainObject=e=>{if(getObjectType(e)!=="Object"){return false}const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};const i=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"]);is.typedArray=e=>{const t=getObjectType(e);if(t===undefined){return false}return i.has(t)};const isValidLength=e=>is.safeInteger(e)&&e>=0;is.arrayLike=e=>!is.nullOrUndefined(e)&&!is.function_(e)&&isValidLength(e.length);is.inRange=(e,t)=>{if(is.number(t)){return e>=Math.min(0,t)&&e<=Math.max(t,0)}if(is.array(t)&&t.length===2){return e>=Math.min(...t)&&e<=Math.max(...t)}throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)};const o=1;const a=["innerHTML","ownerDocument","style","attributes","nodeValue"];is.domElement=e=>is.object(e)&&e.nodeType===o&&is.string(e.nodeName)&&!is.plainObject(e)&&a.every((t=>t in e));is.observable=e=>{if(!e){return false}if(e[Symbol.observable]&&e===e[Symbol.observable]()){return true}if(e["@@observable"]&&e===e["@@observable"]()){return true}return false};is.nodeStream=e=>is.object(e)&&is.function_(e.pipe)&&!is.observable(e);is.infinite=e=>e===Infinity||e===-Infinity;const isAbsoluteMod2=e=>t=>is.integer(t)&&Math.abs(t%2)===e;is.evenInteger=isAbsoluteMod2(0);is.oddInteger=isAbsoluteMod2(1);is.emptyArray=e=>is.array(e)&&e.length===0;is.nonEmptyArray=e=>is.array(e)&&e.length>0;is.emptyString=e=>is.string(e)&&e.length===0;is.nonEmptyString=e=>is.string(e)&&e.length>0;const isWhiteSpaceString=e=>is.string(e)&&/\S/.test(e)===false;is.emptyStringOrWhitespace=e=>is.emptyString(e)||isWhiteSpaceString(e);is.emptyObject=e=>is.object(e)&&!is.map(e)&&!is.set(e)&&Object.keys(e).length===0;is.nonEmptyObject=e=>is.object(e)&&!is.map(e)&&!is.set(e)&&Object.keys(e).length>0;is.emptySet=e=>is.set(e)&&e.size===0;is.nonEmptySet=e=>is.set(e)&&e.size>0;is.emptyMap=e=>is.map(e)&&e.size===0;is.nonEmptyMap=e=>is.map(e)&&e.size>0;const predicateOnArray=(e,t,r)=>{if(is.function_(t)===false){throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`)}if(r.length===0){throw new TypeError("Invalid number of values")}return e.call(r,t)};is.any=(e,...t)=>{const r=is.array(e)?e:[e];return r.some((e=>predicateOnArray(Array.prototype.some,e,t)))};is.all=(e,...t)=>predicateOnArray(Array.prototype.every,e,t);const assertType=(e,t,r)=>{if(!e){throw new TypeError(`Expected value which is \`${t}\`, received value of type \`${is(r)}\`.`)}};t.assert={undefined:e=>assertType(is.undefined(e),"undefined",e),string:e=>assertType(is.string(e),"string",e),number:e=>assertType(is.number(e),"number",e),bigint:e=>assertType(is.bigint(e),"bigint",e),function_:e=>assertType(is.function_(e),"Function",e),null_:e=>assertType(is.null_(e),"null",e),class_:e=>assertType(is.class_(e),"Class",e),boolean:e=>assertType(is.boolean(e),"boolean",e),symbol:e=>assertType(is.symbol(e),"symbol",e),numericString:e=>assertType(is.numericString(e),"string with a number",e),array:e=>assertType(is.array(e),"Array",e),buffer:e=>assertType(is.buffer(e),"Buffer",e),nullOrUndefined:e=>assertType(is.nullOrUndefined(e),"null or undefined",e),object:e=>assertType(is.object(e),"Object",e),iterable:e=>assertType(is.iterable(e),"Iterable",e),asyncIterable:e=>assertType(is.asyncIterable(e),"AsyncIterable",e),generator:e=>assertType(is.generator(e),"Generator",e),asyncGenerator:e=>assertType(is.asyncGenerator(e),"AsyncGenerator",e),nativePromise:e=>assertType(is.nativePromise(e),"native Promise",e),promise:e=>assertType(is.promise(e),"Promise",e),generatorFunction:e=>assertType(is.generatorFunction(e),"GeneratorFunction",e),asyncGeneratorFunction:e=>assertType(is.asyncGeneratorFunction(e),"AsyncGeneratorFunction",e),asyncFunction:e=>assertType(is.asyncFunction(e),"AsyncFunction",e),boundFunction:e=>assertType(is.boundFunction(e),"Function",e),regExp:e=>assertType(is.regExp(e),"RegExp",e),date:e=>assertType(is.date(e),"Date",e),error:e=>assertType(is.error(e),"Error",e),map:e=>assertType(is.map(e),"Map",e),set:e=>assertType(is.set(e),"Set",e),weakMap:e=>assertType(is.weakMap(e),"WeakMap",e),weakSet:e=>assertType(is.weakSet(e),"WeakSet",e),int8Array:e=>assertType(is.int8Array(e),"Int8Array",e),uint8Array:e=>assertType(is.uint8Array(e),"Uint8Array",e),uint8ClampedArray:e=>assertType(is.uint8ClampedArray(e),"Uint8ClampedArray",e),int16Array:e=>assertType(is.int16Array(e),"Int16Array",e),uint16Array:e=>assertType(is.uint16Array(e),"Uint16Array",e),int32Array:e=>assertType(is.int32Array(e),"Int32Array",e),uint32Array:e=>assertType(is.uint32Array(e),"Uint32Array",e),float32Array:e=>assertType(is.float32Array(e),"Float32Array",e),float64Array:e=>assertType(is.float64Array(e),"Float64Array",e),bigInt64Array:e=>assertType(is.bigInt64Array(e),"BigInt64Array",e),bigUint64Array:e=>assertType(is.bigUint64Array(e),"BigUint64Array",e),arrayBuffer:e=>assertType(is.arrayBuffer(e),"ArrayBuffer",e),sharedArrayBuffer:e=>assertType(is.sharedArrayBuffer(e),"SharedArrayBuffer",e),dataView:e=>assertType(is.dataView(e),"DataView",e),urlInstance:e=>assertType(is.urlInstance(e),"URL",e),urlString:e=>assertType(is.urlString(e),"string with a URL",e),truthy:e=>assertType(is.truthy(e),"truthy",e),falsy:e=>assertType(is.falsy(e),"falsy",e),nan:e=>assertType(is.nan(e),"NaN",e),primitive:e=>assertType(is.primitive(e),"primitive",e),integer:e=>assertType(is.integer(e),"integer",e),safeInteger:e=>assertType(is.safeInteger(e),"integer",e),plainObject:e=>assertType(is.plainObject(e),"plain object",e),typedArray:e=>assertType(is.typedArray(e),"TypedArray",e),arrayLike:e=>assertType(is.arrayLike(e),"array-like",e),domElement:e=>assertType(is.domElement(e),"Element",e),observable:e=>assertType(is.observable(e),"Observable",e),nodeStream:e=>assertType(is.nodeStream(e),"Node.js Stream",e),infinite:e=>assertType(is.infinite(e),"infinite number",e),emptyArray:e=>assertType(is.emptyArray(e),"empty array",e),nonEmptyArray:e=>assertType(is.nonEmptyArray(e),"non-empty array",e),emptyString:e=>assertType(is.emptyString(e),"empty string",e),nonEmptyString:e=>assertType(is.nonEmptyString(e),"non-empty string",e),emptyStringOrWhitespace:e=>assertType(is.emptyStringOrWhitespace(e),"empty string or whitespace",e),emptyObject:e=>assertType(is.emptyObject(e),"empty object",e),nonEmptyObject:e=>assertType(is.nonEmptyObject(e),"non-empty object",e),emptySet:e=>assertType(is.emptySet(e),"empty set",e),nonEmptySet:e=>assertType(is.nonEmptySet(e),"non-empty set",e),emptyMap:e=>assertType(is.emptyMap(e),"empty map",e),nonEmptyMap:e=>assertType(is.nonEmptyMap(e),"non-empty map",e),evenInteger:e=>assertType(is.evenInteger(e),"even integer",e),oddInteger:e=>assertType(is.oddInteger(e),"odd integer",e),directInstanceOf:(e,t)=>assertType(is.directInstanceOf(e,t),"T",e),inRange:(e,t)=>assertType(is.inRange(e,t),"in range",e),any:(e,...t)=>assertType(is.any(e,...t),"predicate returns truthy for any value",t),all:(e,...t)=>assertType(is.all(e,...t),"predicate returns truthy for all values",t)};Object.defineProperties(is,{class:{value:is.class_},function:{value:is.function_},null:{value:is.null_}});Object.defineProperties(t.assert,{class:{value:t.assert.class_},function:{value:t.assert.function_},null:{value:t.assert.null_}});t["default"]=is;e.exports=is;e.exports["default"]=is;e.exports.assert=t.assert},75201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(47164);const s=Number(process.versions.node.split(".")[0]);const timer=e=>{const t={start:Date.now(),socket:undefined,lookup:undefined,connect:undefined,secureConnect:undefined,upload:undefined,response:undefined,end:undefined,error:undefined,abort:undefined,phases:{wait:undefined,dns:undefined,tcp:undefined,tls:undefined,request:undefined,firstByte:undefined,download:undefined,total:undefined}};e.timings=t;const handleError=e=>{const r=e.emit.bind(e);e.emit=(n,...s)=>{if(n==="error"){t.error=Date.now();t.phases.total=t.error-t.start;e.emit=r}return r(n,...s)}};handleError(e);e.prependOnceListener("abort",(()=>{t.abort=Date.now();if(!t.response||s>=13){t.phases.total=Date.now()-t.start}}));const onSocket=e=>{t.socket=Date.now();t.phases.wait=t.socket-t.start;const lookupListener=()=>{t.lookup=Date.now();t.phases.dns=t.lookup-t.socket};e.prependOnceListener("lookup",lookupListener);n.default(e,{connect:()=>{t.connect=Date.now();if(t.lookup===undefined){e.removeListener("lookup",lookupListener);t.lookup=t.connect;t.phases.dns=t.lookup-t.socket}t.phases.tcp=t.connect-t.lookup},secureConnect:()=>{t.secureConnect=Date.now();t.phases.tls=t.secureConnect-t.connect}})};if(e.socket){onSocket(e.socket)}else{e.prependOnceListener("socket",onSocket)}const onUpload=()=>{var e;t.upload=Date.now();t.phases.request=t.upload-(e=t.secureConnect,e!==null&&e!==void 0?e:t.connect)};const writableFinished=()=>{if(typeof e.writableFinished==="boolean"){return e.writableFinished}return e.finished&&e.outputSize===0&&(!e.socket||e.socket.writableLength===0)};if(writableFinished()){onUpload()}else{e.prependOnceListener("finish",onUpload)}e.prependOnceListener("response",(e=>{t.response=Date.now();t.phases.firstByte=t.response-t.upload;e.timings=t;handleError(e);e.prependOnceListener("end",(()=>{t.end=Date.now();t.phases.download=t.end-t.response;t.phases.total=t.end-t.start}))}));return t};t["default"]=timer;e.exports=timer;e.exports["default"]=timer},83607:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formatNames=t.fastFormats=t.fullFormats=void 0;function fmtDef(e,t){return{validate:e,compare:t}}t.fullFormats={date:fmtDef(date,compareDate),time:fmtDef(time,compareTime),"date-time":fmtDef(date_time,compareDateTime),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:uri,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:regex,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:byte,int32:{type:"number",validate:validateInt32},int64:{type:"number",validate:validateInt64},float:{type:"number",validate:validateNumber},double:{type:"number",validate:validateNumber},password:true,binary:true};t.fastFormats={...t.fullFormats,date:fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,compareDate),time:fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareTime),"date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareDateTime),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};t.formatNames=Object.keys(t.fullFormats);function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;const n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function date(e){const t=r.exec(e);if(!t)return false;const s=+t[1];const i=+t[2];const o=+t[3];return i>=1&&i<=12&&o>=1&&o<=(i===2&&isLeapYear(s)?29:n[i])}function compareDate(e,t){if(!(e&&t))return undefined;if(e>t)return 1;if(e<t)return-1;return 0}const s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function time(e,t){const r=s.exec(e);if(!r)return false;const n=+r[1];const i=+r[2];const o=+r[3];const a=r[5];return(n<=23&&i<=59&&o<=59||n===23&&i===59&&o===60)&&(!t||a!=="")}function compareTime(e,t){if(!(e&&t))return undefined;const r=s.exec(e);const n=s.exec(t);if(!(r&&n))return undefined;e=r[1]+r[2]+r[3]+(r[4]||"");t=n[1]+n[2]+n[3]+(n[4]||"");if(e>t)return 1;if(e<t)return-1;return 0}const i=/t|\s/i;function date_time(e){const t=e.split(i);return t.length===2&&date(t[0])&&time(t[1],true)}function compareDateTime(e,t){if(!(e&&t))return undefined;const[r,n]=e.split(i);const[s,o]=t.split(i);const a=compareDate(r,s);if(a===undefined)return undefined;return a||compareTime(n,o)}const o=/\/|:/;const a=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function uri(e){return o.test(e)&&a.test(e)}const c=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function byte(e){c.lastIndex=0;return c.test(e)}const u=-(2**31);const l=2**31-1;function validateInt32(e){return Number.isInteger(e)&&e<=l&&e>=u}function validateInt64(e){return Number.isInteger(e)}function validateNumber(){return true}const h=/[^\\]\\Z/;function regex(e){if(h.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},94525:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(83607);const s=r(87176);const i=r(84598);const o=new i.Name("fullFormats");const a=new i.Name("fastFormats");const formatsPlugin=(e,t={keywords:true})=>{if(Array.isArray(t)){addFormats(e,t,n.fullFormats,o);return e}const[r,i]=t.mode==="fast"?[n.fastFormats,a]:[n.fullFormats,o];const c=t.formats||n.formatNames;addFormats(e,c,r,i);if(t.keywords)s.default(e);return e};formatsPlugin.get=(e,t="full")=>{const r=t==="fast"?n.fastFormats:n.fullFormats;const s=r[e];if(!s)throw new Error(`Unknown format "${e}"`);return s};function addFormats(e,t,r,n){var s;var o;(s=(o=e.opts.code).formats)!==null&&s!==void 0?s:o.formats=i._`require("ajv-formats/dist/formats").${n}`;for(const n of t)e.addFormat(n,r[n])}e.exports=t=formatsPlugin;Object.defineProperty(t,"__esModule",{value:true});t["default"]=formatsPlugin},87176:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formatLimitDefinition=void 0;const n=r(67265);const s=r(84598);const i=s.operators;const o={formatMaximum:{okStr:"<=",ok:i.LTE,fail:i.GT},formatMinimum:{okStr:">=",ok:i.GTE,fail:i.LT},formatExclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},formatExclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}};const a={message:({keyword:e,schemaCode:t})=>s.str`should be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>s._`{comparison: ${o[e].okStr}, limit: ${t}}`};t.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:true,error:a,code(e){const{gen:t,data:r,schemaCode:i,keyword:a,it:c}=e;const{opts:u,self:l}=c;if(!u.validateFormats)return;const h=new n.KeywordCxt(c,l.RULES.all.format.definition,"format");if(h.$data)validate$DataFormat();else validateFormat();function validate$DataFormat(){const r=t.scopeValue("formats",{ref:l.formats,code:u.code.formats});const n=t.const("fmt",s._`${r}[${h.schemaCode}]`);e.fail$data(s.or(s._`typeof ${n} != "object"`,s._`${n} instanceof RegExp`,s._`typeof ${n}.compare != "function"`,compareCode(n)))}function validateFormat(){const r=h.schema;const n=l.formats[r];if(!n||n===true)return;if(typeof n!="object"||n instanceof RegExp||typeof n.compare!="function"){throw new Error(`"${a}": format "${r}" does not define "compare" function`)}const i=t.scopeValue("formats",{key:r,ref:n,code:u.code.formats?s._`${u.code.formats}${s.getProperty(r)}`:undefined});e.fail$data(compareCode(i))}function compareCode(e){return s._`${e}.compare(${r}, ${i}) ${o[a].fail} 0`}},dependencies:["format"]};const formatLimitPlugin=e=>{e.addKeyword(t.formatLimitDefinition);return e};t["default"]=formatLimitPlugin},67265:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=r(5054);const s=r(41002);const i=r(70263);const o=r(39520);const a=["/properties"];const c="http://json-schema.org/draft-07/schema";class Ajv extends n.default{_addVocabularies(){super._addVocabularies();s.default.forEach((e=>this.addVocabulary(e)));if(this.opts.discriminator)this.addKeyword(i.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();if(!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(o,a):o;this.addMetaSchema(e,c,false);this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:undefined)}}e.exports=t=Ajv;Object.defineProperty(t,"__esModule",{value:true});t["default"]=Ajv;var u=r(76316);Object.defineProperty(t,"KeywordCxt",{enumerable:true,get:function(){return u.KeywordCxt}});var l=r(84598);Object.defineProperty(t,"_",{enumerable:true,get:function(){return l._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return l.str}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return l.stringify}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return l.nil}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return l.Name}});Object.defineProperty(t,"CodeGen",{enumerable:true,get:function(){return l.CodeGen}})},67577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class _CodeOrName{}t._CodeOrName=_CodeOrName;t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Name extends _CodeOrName{constructor(e){super();if(!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}}t.Name=Name;class _Code extends _CodeOrName{constructor(e){super();this._items=typeof e==="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce(((e,t)=>{if(t instanceof Name)e[t.str]=(e[t.str]||0)+1;return e}),{})}}t._Code=_Code;t.nil=new _Code("");function _(e,...t){const r=[e[0]];let n=0;while(n<t.length){addCodeArg(r,t[n]);r.push(e[++n])}return new _Code(r)}t._=_;const r=new _Code("+");function str(e,...t){const n=[safeStringify(e[0])];let s=0;while(s<t.length){n.push(r);addCodeArg(n,t[s]);n.push(r,safeStringify(e[++s]))}optimize(n);return new _Code(n)}t.str=str;function addCodeArg(e,t){if(t instanceof _Code)e.push(...t._items);else if(t instanceof Name)e.push(t);else e.push(interpolate(t))}t.addCodeArg=addCodeArg;function optimize(e){let t=1;while(t<e.length-1){if(e[t]===r){const r=mergeExprItems(e[t-1],e[t+1]);if(r!==undefined){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function mergeExprItems(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string"){if(t instanceof Name||e[e.length-1]!=='"')return;if(typeof t!="string")return`${e.slice(0,-1)}${t}"`;if(t[0]==='"')return e.slice(0,-1)+t.slice(1);return}if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Name))return`"${e}${t.slice(1)}`;return}function strConcat(e,t){return t.emptyStr()?e:e.emptyStr()?t:str`${e}${t}`}t.strConcat=strConcat;function interpolate(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:safeStringify(Array.isArray(e)?e.join(","):e)}function stringify(e){return new _Code(safeStringify(e))}t.stringify=stringify;function safeStringify(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=safeStringify;function getProperty(e){return typeof e=="string"&&t.IDENTIFIER.test(e)?new _Code(`.${e}`):_`[${e}]`}t.getProperty=getProperty;function getEsmExportName(e){if(typeof e=="string"&&t.IDENTIFIER.test(e)){return new _Code(`${e}`)}throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}t.getEsmExportName=getEsmExportName;function regexpCode(e){return new _Code(e.toString())}t.regexpCode=regexpCode},84598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=r(67577);const s=r(27759);var i=r(67577);Object.defineProperty(t,"_",{enumerable:true,get:function(){return i._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return i.str}});Object.defineProperty(t,"strConcat",{enumerable:true,get:function(){return i.strConcat}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return i.nil}});Object.defineProperty(t,"getProperty",{enumerable:true,get:function(){return i.getProperty}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return i.stringify}});Object.defineProperty(t,"regexpCode",{enumerable:true,get:function(){return i.regexpCode}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return i.Name}});var o=r(27759);Object.defineProperty(t,"Scope",{enumerable:true,get:function(){return o.Scope}});Object.defineProperty(t,"ValueScope",{enumerable:true,get:function(){return o.ValueScope}});Object.defineProperty(t,"ValueScopeName",{enumerable:true,get:function(){return o.ValueScopeName}});Object.defineProperty(t,"varKinds",{enumerable:true,get:function(){return o.varKinds}});t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class Node{optimizeNodes(){return this}optimizeNames(e,t){return this}}class Def extends Node{constructor(e,t,r){super();this.varKind=e;this.name=t;this.rhs=r}render({es5:e,_n:t}){const r=e?s.varKinds.var:this.varKind;const n=this.rhs===undefined?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(!e[this.name.str])return;if(this.rhs)this.rhs=optimizeExpr(this.rhs,e,t);return this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class Assign extends Node{constructor(e,t,r){super();this.lhs=e;this.rhs=t;this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(this.lhs instanceof n.Name&&!e[this.lhs.str]&&!this.sideEffects)return;this.rhs=optimizeExpr(this.rhs,e,t);return this}get names(){const e=this.lhs instanceof n.Name?{}:{...this.lhs.names};return addExprNames(e,this.rhs)}}class AssignOp extends Assign{constructor(e,t,r,n){super(e,r,n);this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class Label extends Node{constructor(e){super();this.label=e;this.names={}}render({_n:e}){return`${this.label}:`+e}}class Break extends Node{constructor(e){super();this.label=e;this.names={}}render({_n:e}){const t=this.label?` ${this.label}`:"";return`break${t};`+e}}class Throw extends Node{constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class AnyCode extends Node{constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:undefined}optimizeNames(e,t){this.code=optimizeExpr(this.code,e,t);return this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class ParentNode extends Node{constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;while(t--){const r=e[t].optimizeNodes();if(Array.isArray(r))e.splice(t,1,...r);else if(r)e[t]=r;else e.splice(t,1)}return e.length>0?this:undefined}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;while(n--){const s=r[n];if(s.optimizeNames(e,t))continue;subtractNames(e,s.names);r.splice(n,1)}return r.length>0?this:undefined}get names(){return this.nodes.reduce(((e,t)=>addNames(e,t.names)),{})}}class BlockNode extends ParentNode{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class Root extends ParentNode{}class Else extends BlockNode{}Else.kind="else";class If extends BlockNode{constructor(e,t){super(t);this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);if(this.else)t+="else "+this.else.render(e);return t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(e===true)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new Else(e):e}if(t){if(e===false)return t instanceof If?t:t.nodes;if(this.nodes.length)return this;return new If(not(e),t instanceof If?[t]:t.nodes)}if(e===false||!this.nodes.length)return undefined;return this}optimizeNames(e,t){var r;this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(e,t);if(!(super.optimizeNames(e,t)||this.else))return;this.condition=optimizeExpr(this.condition,e,t);return this}get names(){const e=super.names;addExprNames(e,this.condition);if(this.else)addNames(e,this.else.names);return e}}If.kind="if";class For extends BlockNode{}For.kind="for";class ForLoop extends For{constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;this.iteration=optimizeExpr(this.iteration,e,t);return this}get names(){return addNames(super.names,this.iteration.names)}}class ForRange extends For{constructor(e,t,r,n){super();this.varKind=e;this.name=t;this.from=r;this.to=n}render(e){const t=e.es5?s.varKinds.var:this.varKind;const{name:r,from:n,to:i}=this;return`for(${t} ${r}=${n}; ${r}<${i}; ${r}++)`+super.render(e)}get names(){const e=addExprNames(super.names,this.from);return addExprNames(e,this.to)}}class ForIter extends For{constructor(e,t,r,n){super();this.loop=e;this.varKind=t;this.name=r;this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;this.iterable=optimizeExpr(this.iterable,e,t);return this}get names(){return addNames(super.names,this.iterable.names)}}class Func extends BlockNode{constructor(e,t,r){super();this.name=e;this.args=t;this.async=r}render(e){const t=this.async?"async ":"";return`${t}function ${this.name}(${this.args})`+super.render(e)}}Func.kind="func";class Return extends ParentNode{render(e){return"return "+super.render(e)}}Return.kind="return";class Try extends BlockNode{render(e){let t="try"+super.render(e);if(this.catch)t+=this.catch.render(e);if(this.finally)t+=this.finally.render(e);return t}optimizeNodes(){var e,t;super.optimizeNodes();(e=this.catch)===null||e===void 0?void 0:e.optimizeNodes();(t=this.finally)===null||t===void 0?void 0:t.optimizeNodes();return this}optimizeNames(e,t){var r,n;super.optimizeNames(e,t);(r=this.catch)===null||r===void 0?void 0:r.optimizeNames(e,t);(n=this.finally)===null||n===void 0?void 0:n.optimizeNames(e,t);return this}get names(){const e=super.names;if(this.catch)addNames(e,this.catch.names);if(this.finally)addNames(e,this.finally.names);return e}}class Catch extends BlockNode{constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}Catch.kind="catch";class Finally extends BlockNode{render(e){return"finally"+super.render(e)}}Finally.kind="finally";class CodeGen{constructor(e,t={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...t,_n:t.lines?"\n":""};this._extScope=e;this._scope=new s.Scope({parent:e});this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);const n=this._values[r.prefix]||(this._values[r.prefix]=new Set);n.add(r);return r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const s=this._scope.toName(t);if(r!==undefined&&n)this._constants[s.str]=r;this._leafNode(new Def(e,s,r));return s}const(e,t,r){return this._def(s.varKinds.const,e,t,r)}let(e,t,r){return this._def(s.varKinds.let,e,t,r)}var(e,t,r){return this._def(s.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new Assign(e,t,r))}add(e,r){return this._leafNode(new AssignOp(e,t.operators.ADD,r))}code(e){if(typeof e=="function")e();else if(e!==n.nil)this._leafNode(new AnyCode(e));return this}object(...e){const t=["{"];for(const[r,s]of e){if(t.length>1)t.push(",");t.push(r);if(r!==s||this.opts.es5){t.push(":");(0,n.addCodeArg)(t,s)}}t.push("}");return new n._Code(t)}if(e,t,r){this._blockNode(new If(e));if(t&&r){this.code(t).else().code(r).endIf()}else if(t){this.code(t).endIf()}else if(r){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(e){return this._elseNode(new If(e))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(If,Else)}_for(e,t){this._blockNode(e);if(t)this.code(t).endFor();return this}for(e,t){return this._for(new ForLoop(e),t)}forRange(e,t,r,n,i=(this.opts.es5?s.varKinds.var:s.varKinds.let)){const o=this._scope.toName(e);return this._for(new ForRange(i,o,t,r),(()=>n(o)))}forOf(e,t,r,i=s.varKinds.const){const o=this._scope.toName(e);if(this.opts.es5){const e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,n._)`${e}.length`,(t=>{this.var(o,(0,n._)`${e}[${t}]`);r(o)}))}return this._for(new ForIter("of",i,o,t),(()=>r(o)))}forIn(e,t,r,i=(this.opts.es5?s.varKinds.var:s.varKinds.const)){if(this.opts.ownProperties){return this.forOf(e,(0,n._)`Object.keys(${t})`,r)}const o=this._scope.toName(e);return this._for(new ForIter("in",i,o,t),(()=>r(o)))}endFor(){return this._endBlockNode(For)}label(e){return this._leafNode(new Label(e))}break(e){return this._leafNode(new Break(e))}return(e){const t=new Return;this._blockNode(t);this.code(e);if(t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Return)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new Try;this._blockNode(n);this.code(e);if(t){const e=this.name("e");this._currNode=n.catch=new Catch(e);t(e)}if(r){this._currNode=n.finally=new Finally;this.code(r)}return this._endBlockNode(Catch,Finally)}throw(e){return this._leafNode(new Throw(e))}block(e,t){this._blockStarts.push(this._nodes.length);if(e)this.code(e).endBlock(t);return this}endBlock(e){const t=this._blockStarts.pop();if(t===undefined)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||e!==undefined&&r!==e){throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`)}this._nodes.length=t;return this}func(e,t=n.nil,r,s){this._blockNode(new Func(e,t,r));if(s)this.code(s).endFunc();return this}endFunc(){return this._endBlockNode(Func)}optimize(e=1){while(e-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(e){this._currNode.nodes.push(e);return this}_blockNode(e){this._currNode.nodes.push(e);this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof If)){throw new Error('CodeGen: "else" without "if"')}this._currNode=t.else=e;return this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}}t.CodeGen=CodeGen;function addNames(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function addExprNames(e,t){return t instanceof n._CodeOrName?addNames(e,t.names):e}function optimizeExpr(e,t,r){if(e instanceof n.Name)return replaceName(e);if(!canOptimize(e))return e;return new n._Code(e._items.reduce(((e,t)=>{if(t instanceof n.Name)t=replaceName(t);if(t instanceof n._Code)e.push(...t._items);else e.push(t);return e}),[]));function replaceName(e){const n=r[e.str];if(n===undefined||t[e.str]!==1)return e;delete t[e.str];return n}function canOptimize(e){return e instanceof n._Code&&e._items.some((e=>e instanceof n.Name&&t[e.str]===1&&r[e.str]!==undefined))}}function subtractNames(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function not(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,n._)`!${par(e)}`}t.not=not;const a=mappend(t.operators.AND);function and(...e){return e.reduce(a)}t.and=and;const c=mappend(t.operators.OR);function or(...e){return e.reduce(c)}t.or=or;function mappend(e){return(t,r)=>t===n.nil?r:r===n.nil?t:(0,n._)`${par(t)} ${e} ${par(r)}`}function par(e){return e instanceof n.Name?e:(0,n._)`(${e})`}},27759:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=r(67577);class ValueError extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}}var s;(function(e){e[e["Started"]=0]="Started";e[e["Completed"]=1]="Completed"})(s=t.UsedValueState||(t.UsedValueState={}));t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class Scope{constructor({prefixes:e,parent:t}={}){this._names={};this._prefixes=e;this._parent=t}toName(e){return e instanceof n.Name?e:this.name(e)}name(e){return new n.Name(this._newName(e))}_newName(e){const t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,r;if(((r=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||r===void 0?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e)){throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`)}return this._names[e]={prefix:e,index:0}}}t.Scope=Scope;class ValueScopeName extends n.Name{constructor(e,t){super(t);this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e;this.scopePath=(0,n._)`.${new n.Name(t)}[${r}]`}}t.ValueScopeName=ValueScopeName;const i=(0,n._)`\n`;class ValueScope extends Scope{constructor(e){super(e);this._values={};this._scope=e.scope;this.opts={...e,_n:e.lines?i:n.nil}}get(){return this._scope}name(e){return new ValueScopeName(e,this._newName(e))}value(e,t){var r;if(t.ref===undefined)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e);const{prefix:s}=n;const i=(r=t.key)!==null&&r!==void 0?r:t.ref;let o=this._values[s];if(o){const e=o.get(i);if(e)return e}else{o=this._values[s]=new Map}o.set(i,n);const a=this._scope[s]||(this._scope[s]=[]);const c=a.length;a[c]=t.ref;n.setValue(t,{property:s,itemIndex:c});return n}getValue(e,t){const r=this._values[e];if(!r)return;return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(t.scopePath===undefined)throw new Error(`CodeGen: name "${t}" has no value`);return(0,n._)`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(e.value===undefined)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,i={},o){let a=n.nil;for(const c in e){const u=e[c];if(!u)continue;const l=i[c]=i[c]||new Map;u.forEach((e=>{if(l.has(e))return;l.set(e,s.Started);let i=r(e);if(i){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;a=(0,n._)`${a}${r} ${e} = ${i};${this.opts._n}`}else if(i=o===null||o===void 0?void 0:o(e)){a=(0,n._)`${a}${i}${this.opts._n}`}else{throw new ValueError(e)}l.set(e,s.Completed)}))}return a}}t.ValueScope=ValueScope},57757:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const n=r(84598);const s=r(69068);const i=r(21080);t.keywordError={message:({keyword:e})=>(0,n.str)`must pass "${e}" keyword validation`};t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,n.str)`"${e}" keyword must be ${t} ($data)`:(0,n.str)`"${e}" keyword is invalid ($data)`};function reportError(e,r=t.keywordError,s,i){const{it:o}=e;const{gen:a,compositeRule:c,allErrors:u}=o;const l=errorObjectCode(e,r,s);if(i!==null&&i!==void 0?i:c||u){addError(a,l)}else{returnErrors(o,(0,n._)`[${l}]`)}}t.reportError=reportError;function reportExtraError(e,r=t.keywordError,n){const{it:s}=e;const{gen:o,compositeRule:a,allErrors:c}=s;const u=errorObjectCode(e,r,n);addError(o,u);if(!(a||c)){returnErrors(s,i.default.vErrors)}}t.reportExtraError=reportExtraError;function resetErrorsCount(e,t){e.assign(i.default.errors,t);e.if((0,n._)`${i.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign((0,n._)`${i.default.vErrors}.length`,t)),(()=>e.assign(i.default.vErrors,null)))))}t.resetErrorsCount=resetErrorsCount;function extendErrors({gen:e,keyword:t,schemaValue:r,data:s,errsCount:o,it:a}){if(o===undefined)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",o,i.default.errors,(o=>{e.const(c,(0,n._)`${i.default.vErrors}[${o}]`);e.if((0,n._)`${c}.instancePath === undefined`,(()=>e.assign((0,n._)`${c}.instancePath`,(0,n.strConcat)(i.default.instancePath,a.errorPath))));e.assign((0,n._)`${c}.schemaPath`,(0,n.str)`${a.errSchemaPath}/${t}`);if(a.opts.verbose){e.assign((0,n._)`${c}.schema`,r);e.assign((0,n._)`${c}.data`,s)}}))}t.extendErrors=extendErrors;function addError(e,t){const r=e.const("err",t);e.if((0,n._)`${i.default.vErrors} === null`,(()=>e.assign(i.default.vErrors,(0,n._)`[${r}]`)),(0,n._)`${i.default.vErrors}.push(${r})`);e.code((0,n._)`${i.default.errors}++`)}function returnErrors(e,t){const{gen:r,validateName:s,schemaEnv:i}=e;if(i.$async){r.throw((0,n._)`new ${e.ValidationError}(${t})`)}else{r.assign((0,n._)`${s}.errors`,t);r.return(false)}}const o={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function errorObjectCode(e,t,r){const{createErrors:s}=e.it;if(s===false)return(0,n._)`{}`;return errorObject(e,t,r)}function errorObject(e,t,r={}){const{gen:n,it:s}=e;const i=[errorInstancePath(s,r),errorSchemaPath(e,r)];extraErrorProps(e,t,i);return n.object(...i)}function errorInstancePath({errorPath:e},{instancePath:t}){const r=t?(0,n.str)`${e}${(0,s.getErrorPath)(t,s.Type.Str)}`:e;return[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,r)]}function errorSchemaPath({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:i}){let a=i?t:(0,n.str)`${t}/${e}`;if(r){a=(0,n.str)`${a}${(0,s.getErrorPath)(r,s.Type.Str)}`}return[o.schemaPath,a]}function extraErrorProps(e,{params:t,message:r},s){const{keyword:a,data:c,schemaValue:u,it:l}=e;const{opts:h,propertyName:p,topSchemaRef:d,schemaPath:y}=l;s.push([o.keyword,a],[o.params,typeof t=="function"?t(e):t||(0,n._)`{}`]);if(h.messages){s.push([o.message,typeof r=="function"?r(e):r])}if(h.verbose){s.push([o.schema,u],[o.parentSchema,(0,n._)`${d}${y}`],[i.default.data,c])}if(p)s.push([o.propertyName,p])}},35444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=r(84598);const s=r(57091);const i=r(21080);const o=r(64146);const a=r(69068);const c=r(76316);class SchemaEnv{constructor(e){var t;this.refs={};this.dynamicAnchors={};let r;if(typeof e.schema=="object")r=e.schema;this.schema=e.schema;this.schemaId=e.schemaId;this.root=e.root||this;this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,o.normalizeId)(r===null||r===void 0?void 0:r[e.schemaId||"$id"]);this.schemaPath=e.schemaPath;this.localRefs=e.localRefs;this.meta=e.meta;this.$async=r===null||r===void 0?void 0:r.$async;this.refs={}}}t.SchemaEnv=SchemaEnv;function compileSchema(e){const t=getCompilingSchema.call(this,e);if(t)return t;const r=(0,o.getFullPath)(this.opts.uriResolver,e.root.baseId);const{es5:a,lines:u}=this.opts.code;const{ownProperties:l}=this.opts;const h=new n.CodeGen(this.scope,{es5:a,lines:u,ownProperties:l});let p;if(e.$async){p=h.scopeValue("Error",{ref:s.default,code:(0,n._)`require("ajv/dist/runtime/validation_error").default`})}const d=h.scopeName("validate");e.validateName=d;const y={gen:h,allErrors:this.opts.allErrors,data:i.default.data,parentData:i.default.parentData,parentDataProperty:i.default.parentDataProperty,dataNames:[i.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:h.scopeValue("schema",this.opts.code.source===true?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:d,ValidationError:p,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,n._)`""`,opts:this.opts,self:this};let g;try{this._compilations.add(e);(0,c.validateFunctionCode)(y);h.optimize(this.opts.code.optimize);const t=h.toString();g=`${h.scopeRefs(i.default.scope)}return ${t}`;if(this.opts.code.process)g=this.opts.code.process(g,e);const r=new Function(`${i.default.self}`,`${i.default.scope}`,g);const s=r(this,this.scope.get());this.scope.value(d,{ref:s});s.errors=null;s.schema=e.schema;s.schemaEnv=e;if(e.$async)s.$async=true;if(this.opts.code.source===true){s.source={validateName:d,validateCode:t,scopeValues:h._values}}if(this.opts.unevaluated){const{props:e,items:t}=y;s.evaluated={props:e instanceof n.Name?undefined:e,items:t instanceof n.Name?undefined:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name};if(s.source)s.source.evaluated=(0,n.stringify)(s.evaluated)}e.validate=s;return e}catch(t){delete e.validate;delete e.validateName;if(g)this.logger.error("Error compiling schema, function code:",g);throw t}finally{this._compilations.delete(e)}}t.compileSchema=compileSchema;function resolveRef(e,t,r){var n;r=(0,o.resolveUrl)(this.opts.uriResolver,t,r);const s=e.refs[r];if(s)return s;let i=resolve.call(this,e,r);if(i===undefined){const s=(n=e.localRefs)===null||n===void 0?void 0:n[r];const{schemaId:o}=this.opts;if(s)i=new SchemaEnv({schema:s,schemaId:o,root:e,baseId:t})}if(i===undefined)return;return e.refs[r]=inlineOrCompile.call(this,i)}t.resolveRef=resolveRef;function inlineOrCompile(e){if((0,o.inlineRef)(e.schema,this.opts.inlineRefs))return e.schema;return e.validate?e:compileSchema.call(this,e)}function getCompilingSchema(e){for(const t of this._compilations){if(sameSchemaEnv(t,e))return t}}t.getCompilingSchema=getCompilingSchema;function sameSchemaEnv(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function resolve(e,t){let r;while(typeof(r=this.refs[t])=="string")t=r;return r||this.schemas[t]||resolveSchema.call(this,e,t)}function resolveSchema(e,t){const r=this.opts.uriResolver.parse(t);const n=(0,o._getFullPath)(this.opts.uriResolver,r);let s=(0,o.getFullPath)(this.opts.uriResolver,e.baseId,undefined);if(Object.keys(e.schema).length>0&&n===s){return getJsonPointer.call(this,r,e)}const i=(0,o.normalizeId)(n);const a=this.refs[i]||this.schemas[i];if(typeof a=="string"){const t=resolveSchema.call(this,e,a);if(typeof(t===null||t===void 0?void 0:t.schema)!=="object")return;return getJsonPointer.call(this,r,t)}if(typeof(a===null||a===void 0?void 0:a.schema)!=="object")return;if(!a.validate)compileSchema.call(this,a);if(i===(0,o.normalizeId)(t)){const{schema:t}=a;const{schemaId:r}=this.opts;const n=t[r];if(n)s=(0,o.resolveUrl)(this.opts.uriResolver,s,n);return new SchemaEnv({schema:t,schemaId:r,root:e,baseId:s})}return getJsonPointer.call(this,r,a)}t.resolveSchema=resolveSchema;const u=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,{baseId:t,schema:r,root:n}){var s;if(((s=e.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(const n of e.fragment.slice(1).split("/")){if(typeof r==="boolean")return;const e=r[(0,a.unescapeFragment)(n)];if(e===undefined)return;r=e;const s=typeof r==="object"&&r[this.opts.schemaId];if(!u.has(n)&&s){t=(0,o.resolveUrl)(this.opts.uriResolver,t,s)}}let i;if(typeof r!="boolean"&&r.$ref&&!(0,a.schemaHasRulesButRef)(r,this.RULES)){const e=(0,o.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=resolveSchema.call(this,n,e)}const{schemaId:c}=this.opts;i=i||new SchemaEnv({schema:r,schemaId:c,root:n,baseId:t});if(i.schema!==i.root.schema)return i;return undefined}},21080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t["default"]=s},63796:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(64146);class MissingRefError extends Error{constructor(e,t,r,s){super(s||`can't resolve reference ${r} from id ${t}`);this.missingRef=(0,n.resolveUrl)(e,t,r);this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t["default"]=MissingRefError},64146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=r(69068);const s=r(51230);const i=r(49122);const o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function inlineRef(e,t=true){if(typeof e=="boolean")return true;if(t===true)return!hasRef(e);if(!t)return false;return countKeys(e)<=t}t.inlineRef=inlineRef;const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(e){for(const t in e){if(a.has(t))return true;const r=e[t];if(Array.isArray(r)&&r.some(hasRef))return true;if(typeof r=="object"&&hasRef(r))return true}return false}function countKeys(e){let t=0;for(const r in e){if(r==="$ref")return Infinity;t++;if(o.has(r))continue;if(typeof e[r]=="object"){(0,n.eachItem)(e[r],(e=>t+=countKeys(e)))}if(t===Infinity)return Infinity}return t}function getFullPath(e,t="",r){if(r!==false)t=normalizeId(t);const n=e.parse(t);return _getFullPath(e,n)}t.getFullPath=getFullPath;function _getFullPath(e,t){const r=e.serialize(t);return r.split("#")[0]+"#"}t._getFullPath=_getFullPath;const c=/#\/?$/;function normalizeId(e){return e?e.replace(c,""):""}t.normalizeId=normalizeId;function resolveUrl(e,t,r){r=normalizeId(r);return e.resolve(t,r)}t.resolveUrl=resolveUrl;const u=/^[a-z_][-a-z0-9._]*$/i;function getSchemaRefs(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts;const o=normalizeId(e[r]||t);const a={"":o};const c=getFullPath(n,o,false);const l={};const h=new Set;i(e,{allKeys:true},((e,t,n,s)=>{if(s===undefined)return;const i=c+t;let o=a[s];if(typeof e[r]=="string")o=addRef.call(this,e[r]);addAnchor.call(this,e.$anchor);addAnchor.call(this,e.$dynamicAnchor);a[t]=o;function addRef(t){const r=this.opts.uriResolver.resolve;t=normalizeId(o?r(o,t):t);if(h.has(t))throw ambiguos(t);h.add(t);let n=this.refs[t];if(typeof n=="string")n=this.refs[n];if(typeof n=="object"){checkAmbiguosRef(e,n.schema,t)}else if(t!==normalizeId(i)){if(t[0]==="#"){checkAmbiguosRef(e,l[t],t);l[t]=e}else{this.refs[t]=i}}return t}function addAnchor(e){if(typeof e=="string"){if(!u.test(e))throw new Error(`invalid anchor "${e}"`);addRef.call(this,`#${e}`)}}}));return l;function checkAmbiguosRef(e,t,r){if(t!==undefined&&!s(e,t))throw ambiguos(r)}function ambiguos(e){return new Error(`reference "${e}" resolves to more than one schema`)}}t.getSchemaRefs=getSchemaRefs},54445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRules=t.isJSONType=void 0;const r=["string","number","integer","boolean","null","object","array"];const n=new Set(r);function isJSONType(e){return typeof e=="string"&&n.has(e)}t.isJSONType=isJSONType;function getRules(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:true,boolean:true,null:true},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}t.getRules=getRules},69068:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=r(84598);const s=r(67577);function toHash(e){const t={};for(const r of e)t[r]=true;return t}t.toHash=toHash;function alwaysValidSchema(e,t){if(typeof t=="boolean")return t;if(Object.keys(t).length===0)return true;checkUnknownRules(e,t);return!schemaHasRules(t,e.self.RULES.all)}t.alwaysValidSchema=alwaysValidSchema;function checkUnknownRules(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if(typeof t==="boolean")return;const s=n.RULES.keywords;for(const r in t){if(!s[r])checkStrictMode(e,`unknown keyword: "${r}"`)}}t.checkUnknownRules=checkUnknownRules;function schemaHasRules(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(t[r])return true;return false}t.schemaHasRules=schemaHasRules;function schemaHasRulesButRef(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(r!=="$ref"&&t.all[r])return true;return false}t.schemaHasRulesButRef=schemaHasRulesButRef;function schemaRefOrVal({topSchemaRef:e,schemaPath:t},r,s,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,n._)`${r}`}return(0,n._)`${e}${t}${(0,n.getProperty)(s)}`}t.schemaRefOrVal=schemaRefOrVal;function unescapeFragment(e){return unescapeJsonPointer(decodeURIComponent(e))}t.unescapeFragment=unescapeFragment;function escapeFragment(e){return encodeURIComponent(escapeJsonPointer(e))}t.escapeFragment=escapeFragment;function escapeJsonPointer(e){if(typeof e=="number")return`${e}`;return e.replace(/~/g,"~0").replace(/\//g,"~1")}t.escapeJsonPointer=escapeJsonPointer;function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}t.unescapeJsonPointer=unescapeJsonPointer;function eachItem(e,t){if(Array.isArray(e)){for(const r of e)t(r)}else{t(e)}}t.eachItem=eachItem;function makeMergeEvaluated({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:s}){return(i,o,a,c)=>{const u=a===undefined?o:a instanceof n.Name?(o instanceof n.Name?e(i,o,a):t(i,o,a),a):o instanceof n.Name?(t(i,a,o),o):r(o,a);return c===n.Name&&!(u instanceof n.Name)?s(i,u):u}}t.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(e,t,r)=>e.if((0,n._)`${r} !== true && ${t} !== undefined`,(()=>{e.if((0,n._)`${t} === true`,(()=>e.assign(r,true)),(()=>e.assign(r,(0,n._)`${r} || {}`).code((0,n._)`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if((0,n._)`${r} !== true`,(()=>{if(t===true){e.assign(r,true)}else{e.assign(r,(0,n._)`${r} || {}`);setEvaluated(e,r,t)}})),mergeValues:(e,t)=>e===true?true:{...e,...t},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(e,t,r)=>e.if((0,n._)`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,(0,n._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if((0,n._)`${r} !== true`,(()=>e.assign(r,t===true?true:(0,n._)`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>e===true?true:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function evaluatedPropsToName(e,t){if(t===true)return e.var("props",true);const r=e.var("props",(0,n._)`{}`);if(t!==undefined)setEvaluated(e,r,t);return r}t.evaluatedPropsToName=evaluatedPropsToName;function setEvaluated(e,t,r){Object.keys(r).forEach((r=>e.assign((0,n._)`${t}${(0,n.getProperty)(r)}`,true)))}t.setEvaluated=setEvaluated;const i={};function useFunc(e,t){return e.scopeValue("func",{ref:t,code:i[t.code]||(i[t.code]=new s._Code(t.code))})}t.useFunc=useFunc;var o;(function(e){e[e["Num"]=0]="Num";e[e["Str"]=1]="Str"})(o=t.Type||(t.Type={}));function getErrorPath(e,t,r){if(e instanceof n.Name){const s=t===o.Num;return r?s?(0,n._)`"[" + ${e} + "]"`:(0,n._)`"['" + ${e} + "']"`:s?(0,n._)`"/" + ${e}`:(0,n._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,n.getProperty)(e).toString():"/"+escapeJsonPointer(e)}t.getErrorPath=getErrorPath;function checkStrictMode(e,t,r=e.opts.strictSchema){if(!r)return;t=`strict mode: ${t}`;if(r===true)throw new Error(t);e.self.logger.warn(t)}t.checkStrictMode=checkStrictMode},83501:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0;function schemaHasRulesForType({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==true&&shouldUseGroup(e,n)}t.schemaHasRulesForType=schemaHasRulesForType;function shouldUseGroup(e,t){return t.rules.some((t=>shouldUseRule(e,t)))}t.shouldUseGroup=shouldUseGroup;function shouldUseRule(e,t){var r;return e[t.keyword]!==undefined||((r=t.definition.implements)===null||r===void 0?void 0:r.some((t=>e[t]!==undefined)))}t.shouldUseRule=shouldUseRule},34046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=r(57757);const s=r(84598);const i=r(21080);const o={message:"boolean schema is false"};function topBoolOrEmptySchema(e){const{gen:t,schema:r,validateName:n}=e;if(r===false){falseSchemaError(e,false)}else if(typeof r=="object"&&r.$async===true){t.return(i.default.data)}else{t.assign((0,s._)`${n}.errors`,null);t.return(true)}}t.topBoolOrEmptySchema=topBoolOrEmptySchema;function boolOrEmptySchema(e,t){const{gen:r,schema:n}=e;if(n===false){r.var(t,false);falseSchemaError(e)}else{r.var(t,true)}}t.boolOrEmptySchema=boolOrEmptySchema;function falseSchemaError(e,t){const{gen:r,data:s}=e;const i={gen:r,keyword:"false schema",data:s,schema:false,schemaCode:false,schemaValue:false,params:{},it:e};(0,n.reportError)(i,o,undefined,t)}},47853:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=r(54445);const s=r(83501);const i=r(57757);const o=r(84598);const a=r(69068);var c;(function(e){e[e["Correct"]=0]="Correct";e[e["Wrong"]=1]="Wrong"})(c=t.DataType||(t.DataType={}));function getSchemaTypes(e){const t=getJSONTypes(e.type);const r=t.includes("null");if(r){if(e.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==undefined){throw new Error('"nullable" cannot be used without "type"')}if(e.nullable===true)t.push("null")}return t}t.getSchemaTypes=getSchemaTypes;function getJSONTypes(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(n.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}t.getJSONTypes=getJSONTypes;function coerceAndCheckDataType(e,t){const{gen:r,data:n,opts:i}=e;const o=coerceToTypes(t,i.coerceTypes);const a=t.length>0&&!(o.length===0&&t.length===1&&(0,s.schemaHasRulesForType)(e,t[0]));if(a){const s=checkDataTypes(t,n,i.strictNumbers,c.Wrong);r.if(s,(()=>{if(o.length)coerceData(e,t,o);else reportTypeError(e)}))}return a}t.coerceAndCheckDataType=coerceAndCheckDataType;const u=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(e,t){return t?e.filter((e=>u.has(e)||t==="array"&&e==="array")):[]}function coerceData(e,t,r){const{gen:n,data:s,opts:i}=e;const a=n.let("dataType",(0,o._)`typeof ${s}`);const c=n.let("coerced",(0,o._)`undefined`);if(i.coerceTypes==="array"){n.if((0,o._)`${a} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,(()=>n.assign(s,(0,o._)`${s}[0]`).assign(a,(0,o._)`typeof ${s}`).if(checkDataTypes(t,s,i.strictNumbers),(()=>n.assign(c,s)))))}n.if((0,o._)`${c} !== undefined`);for(const e of r){if(u.has(e)||e==="array"&&i.coerceTypes==="array"){coerceSpecificType(e)}}n.else();reportTypeError(e);n.endIf();n.if((0,o._)`${c} !== undefined`,(()=>{n.assign(s,c);assignParentData(e,c)}));function coerceSpecificType(e){switch(e){case"string":n.elseIf((0,o._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,o._)`"" + ${s}`).elseIf((0,o._)`${s} === null`).assign(c,(0,o._)`""`);return;case"number":n.elseIf((0,o._)`${a} == "boolean" || ${s} === null
3
3
  || (${a} == "string" && ${s} && ${s} == +${s})`).assign(c,(0,o._)`+${s}`);return;case"integer":n.elseIf((0,o._)`${a} === "boolean" || ${s} === null
4
4
  || (${a} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(c,(0,o._)`+${s}`);return;case"boolean":n.elseIf((0,o._)`${s} === "false" || ${s} === 0 || ${s} === null`).assign(c,false).elseIf((0,o._)`${s} === "true" || ${s} === 1`).assign(c,true);return;case"null":n.elseIf((0,o._)`${s} === "" || ${s} === 0 || ${s} === false`);n.assign(c,null);return;case"array":n.elseIf((0,o._)`${a} === "string" || ${a} === "number"
5
- || ${a} === "boolean" || ${s} === null`).assign(c,(0,o._)`[${s}]`)}}}function assignParentData({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,o._)`${t} !== undefined`,(()=>e.assign((0,o._)`${t}[${r}]`,n)))}function checkDataType(e,t,r,n=c.Correct){const s=n===c.Correct?o.operators.EQ:o.operators.NEQ;let i;switch(e){case"null":return(0,o._)`${t} ${s} null`;case"array":i=(0,o._)`Array.isArray(${t})`;break;case"object":i=(0,o._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=numCond((0,o._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=numCond();break;default:return(0,o._)`typeof ${t} ${s} ${e}`}return n===c.Correct?i:(0,o.not)(i);function numCond(e=o.nil){return(0,o.and)((0,o._)`typeof ${t} == "number"`,e,r?(0,o._)`isFinite(${t})`:o.nil)}}t.checkDataType=checkDataType;function checkDataTypes(e,t,r,n){if(e.length===1){return checkDataType(e[0],t,r,n)}let s;const i=(0,a.toHash)(e);if(i.array&&i.object){const e=(0,o._)`typeof ${t} != "object"`;s=i.null?e:(0,o._)`!${t} || ${e}`;delete i.null;delete i.array;delete i.object}else{s=o.nil}if(i.number)delete i.integer;for(const e in i)s=(0,o.and)(s,checkDataType(e,t,r,n));return s}t.checkDataTypes=checkDataTypes;const l={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,o._)`{type: ${e}}`:(0,o._)`{type: ${t}}`};function reportTypeError(e){const t=getTypeErrorContext(e);(0,i.reportError)(t,l)}t.reportTypeError=reportTypeError;function getTypeErrorContext(e){const{gen:t,data:r,schema:n}=e;const s=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:e}}},28795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assignDefaults=void 0;const n=r(84598);const s=r(69068);function assignDefaults(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r){for(const t in r){assignDefault(e,t,r[t].default)}}else if(t==="array"&&Array.isArray(n)){n.forEach(((t,r)=>assignDefault(e,r,t.default)))}}t.assignDefaults=assignDefaults;function assignDefault(e,t,r){const{gen:i,compositeRule:o,data:a,opts:c}=e;if(r===undefined)return;const u=(0,n._)`${a}${(0,n.getProperty)(t)}`;if(o){(0,s.checkStrictMode)(e,`default is ignored for: ${u}`);return}let l=(0,n._)`${u} === undefined`;if(c.useDefaults==="empty"){l=(0,n._)`${l} || ${u} === null || ${u} === ""`}i.if(l,(0,n._)`${u} = ${(0,n.stringify)(r)}`)}},76316:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=r(34046);const s=r(47853);const i=r(83501);const o=r(47853);const a=r(28795);const c=r(95223);const u=r(46391);const l=r(84598);const h=r(21080);const p=r(64146);const d=r(69068);const y=r(57757);function validateFunctionCode(e){if(isSchemaObj(e)){checkKeywords(e);if(schemaCxtHasRules(e)){topSchemaObjCode(e);return}}validateFunction(e,(()=>(0,n.topBoolOrEmptySchema)(e)))}t.validateFunctionCode=validateFunctionCode;function validateFunction({gen:e,validateName:t,schema:r,schemaEnv:n,opts:s},i){if(s.code.es5){e.func(t,(0,l._)`${h.default.data}, ${h.default.valCxt}`,n.$async,(()=>{e.code((0,l._)`"use strict"; ${funcSourceUrl(r,s)}`);destructureValCxtES5(e,s);e.code(i)}))}else{e.func(t,(0,l._)`${h.default.data}, ${destructureValCxt(s)}`,n.$async,(()=>e.code(funcSourceUrl(r,s)).code(i)))}}function destructureValCxt(e){return(0,l._)`{${h.default.instancePath}="", ${h.default.parentData}, ${h.default.parentDataProperty}, ${h.default.rootData}=${h.default.data}${e.dynamicRef?(0,l._)`, ${h.default.dynamicAnchors}={}`:l.nil}}={}`}function destructureValCxtES5(e,t){e.if(h.default.valCxt,(()=>{e.var(h.default.instancePath,(0,l._)`${h.default.valCxt}.${h.default.instancePath}`);e.var(h.default.parentData,(0,l._)`${h.default.valCxt}.${h.default.parentData}`);e.var(h.default.parentDataProperty,(0,l._)`${h.default.valCxt}.${h.default.parentDataProperty}`);e.var(h.default.rootData,(0,l._)`${h.default.valCxt}.${h.default.rootData}`);if(t.dynamicRef)e.var(h.default.dynamicAnchors,(0,l._)`${h.default.valCxt}.${h.default.dynamicAnchors}`)}),(()=>{e.var(h.default.instancePath,(0,l._)`""`);e.var(h.default.parentData,(0,l._)`undefined`);e.var(h.default.parentDataProperty,(0,l._)`undefined`);e.var(h.default.rootData,h.default.data);if(t.dynamicRef)e.var(h.default.dynamicAnchors,(0,l._)`{}`)}))}function topSchemaObjCode(e){const{schema:t,opts:r,gen:n}=e;validateFunction(e,(()=>{if(r.$comment&&t.$comment)commentKeyword(e);checkNoDefault(e);n.let(h.default.vErrors,null);n.let(h.default.errors,0);if(r.unevaluated)resetEvaluated(e);typeAndKeywords(e);returnResults(e)}));return}function resetEvaluated(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,l._)`${r}.evaluated`);t.if((0,l._)`${e.evaluated}.dynamicProps`,(()=>t.assign((0,l._)`${e.evaluated}.props`,(0,l._)`undefined`)));t.if((0,l._)`${e.evaluated}.dynamicItems`,(()=>t.assign((0,l._)`${e.evaluated}.items`,(0,l._)`undefined`)))}function funcSourceUrl(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,l._)`/*# sourceURL=${r} */`:l.nil}function subschemaCode(e,t){if(isSchemaObj(e)){checkKeywords(e);if(schemaCxtHasRules(e)){subSchemaObjCode(e,t);return}}(0,n.boolOrEmptySchema)(e,t)}function schemaCxtHasRules({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return true;return false}function isSchemaObj(e){return typeof e.schema!="boolean"}function subSchemaObjCode(e,t){const{schema:r,gen:n,opts:s}=e;if(s.$comment&&r.$comment)commentKeyword(e);updateContext(e);checkAsyncSchema(e);const i=n.const("_errs",h.default.errors);typeAndKeywords(e,i);n.var(t,(0,l._)`${i} === ${h.default.errors}`)}function checkKeywords(e){(0,d.checkUnknownRules)(e);checkRefsAndKeywords(e)}function typeAndKeywords(e,t){if(e.opts.jtd)return schemaKeywords(e,[],false,t);const r=(0,s.getSchemaTypes)(e.schema);const n=(0,s.coerceAndCheckDataType)(e,r);schemaKeywords(e,r,!n,t)}function checkRefsAndKeywords(e){const{schema:t,errSchemaPath:r,opts:n,self:s}=e;if(t.$ref&&n.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(t,s.RULES)){s.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}}function checkNoDefault(e){const{schema:t,opts:r}=e;if(t.default!==undefined&&r.useDefaults&&r.strictSchema){(0,d.checkStrictMode)(e,"default is ignored in the schema root")}}function updateContext(e){const t=e.schema[e.opts.schemaId];if(t)e.baseId=(0,p.resolveUrl)(e.opts.uriResolver,e.baseId,t)}function checkAsyncSchema(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:s}){const i=r.$comment;if(s.$comment===true){e.code((0,l._)`${h.default.self}.logger.log(${i})`)}else if(typeof s.$comment=="function"){const r=(0,l.str)`${n}/$comment`;const s=e.scopeValue("root",{ref:t.root});e.code((0,l._)`${h.default.self}.opts.$comment(${i}, ${r}, ${s}.schema)`)}}function returnResults(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:s,opts:i}=e;if(r.$async){t.if((0,l._)`${h.default.errors} === 0`,(()=>t.return(h.default.data)),(()=>t.throw((0,l._)`new ${s}(${h.default.vErrors})`)))}else{t.assign((0,l._)`${n}.errors`,h.default.vErrors);if(i.unevaluated)assignEvaluated(e);t.return((0,l._)`${h.default.errors} === 0`)}}function assignEvaluated({gen:e,evaluated:t,props:r,items:n}){if(r instanceof l.Name)e.assign((0,l._)`${t}.props`,r);if(n instanceof l.Name)e.assign((0,l._)`${t}.items`,n)}function schemaKeywords(e,t,r,n){const{gen:s,schema:a,data:c,allErrors:u,opts:p,self:y}=e;const{RULES:g}=y;if(a.$ref&&(p.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(a,g))){s.block((()=>keywordCode(e,"$ref",g.all.$ref.definition)));return}if(!p.jtd)checkStrictTypes(e,t);s.block((()=>{for(const e of g.rules)groupKeywords(e);groupKeywords(g.post)}));function groupKeywords(d){if(!(0,i.shouldUseGroup)(a,d))return;if(d.type){s.if((0,o.checkDataType)(d.type,c,p.strictNumbers));iterateKeywords(e,d);if(t.length===1&&t[0]===d.type&&r){s.else();(0,o.reportTypeError)(e)}s.endIf()}else{iterateKeywords(e,d)}if(!u)s.if((0,l._)`${h.default.errors} === ${n||0}`)}}function iterateKeywords(e,t){const{gen:r,schema:n,opts:{useDefaults:s}}=e;if(s)(0,a.assignDefaults)(e,t.type);r.block((()=>{for(const r of t.rules){if((0,i.shouldUseRule)(n,r)){keywordCode(e,r.keyword,r.definition,t.type)}}}))}function checkStrictTypes(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;checkContextTypes(e,t);if(!e.opts.allowUnionTypes)checkMultipleTypes(e,t);checkKeywordTypes(e,e.dataTypes)}function checkContextTypes(e,t){if(!t.length)return;if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach((t=>{if(!includesType(e.dataTypes,t)){strictTypesError(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}}));e.dataTypes=e.dataTypes.filter((e=>includesType(t,e)))}function checkMultipleTypes(e,t){if(t.length>1&&!(t.length===2&&t.includes("null"))){strictTypesError(e,"use allowUnionTypes to allow union type keyword")}}function checkKeywordTypes(e,t){const r=e.self.RULES.all;for(const n in r){const s=r[n];if(typeof s=="object"&&(0,i.shouldUseRule)(e.schema,s)){const{type:r}=s.definition;if(r.length&&!r.some((e=>hasApplicableType(t,e)))){strictTypesError(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}}function hasApplicableType(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function includesType(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function strictTypesError(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`;(0,d.checkStrictMode)(e,t,e.opts.strictTypes)}class KeywordCxt{constructor(e,t,r){(0,c.validateKeywordUsage)(e,t,r);this.gen=e.gen;this.allErrors=e.allErrors;this.keyword=r;this.data=e.data;this.schema=e.schema[r];this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,d.schemaRefOrVal)(e,this.schema,r,this.$data);this.schemaType=t.schemaType;this.parentSchema=e.schema;this.params={};this.it=e;this.def=t;if(this.$data){this.schemaCode=e.gen.const("vSchema",getData(this.$data,e))}else{this.schemaCode=this.schemaValue;if(!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined)){throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`)}}if("code"in t?t.trackErrors:t.errors!==false){this.errsCount=e.gen.const("_errs",h.default.errors)}}result(e,t,r){this.failResult((0,l.not)(e),t,r)}failResult(e,t,r){this.gen.if(e);if(r)r();else this.error();if(t){this.gen.else();t();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(e,t){this.failResult((0,l.not)(e),undefined,t)}fail(e){if(e===undefined){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(e);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,l._)`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t){this.setParams(t);this._error(e,r);this.setParams({});return}this._error(e,r)}_error(e,t){(e?y.reportExtraError:y.reportError)(this,this.def.error,t)}$dataError(){(0,y.reportError)(this,this.def.$dataError||y.keyword$DataError)}reset(){if(this.errsCount===undefined)throw new Error('add "trackErrors" to keyword definition');(0,y.resetErrorsCount)(this.gen,this.errsCount)}ok(e){if(!this.allErrors)this.gen.if(e)}setParams(e,t){if(t)Object.assign(this.params,e);else this.params=e}block$data(e,t,r=l.nil){this.gen.block((()=>{this.check$data(e,r);t()}))}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:s,def:i}=this;r.if((0,l.or)((0,l._)`${n} === undefined`,t));if(e!==l.nil)r.assign(e,true);if(s.length||i.validateSchema){r.elseIf(this.invalid$data());this.$dataError();if(e!==l.nil)r.assign(e,false)}r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:s}=this;return(0,l.or)(wrong$DataType(),invalid$DataSchema());function wrong$DataType(){if(r.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return(0,l._)`${(0,o.checkDataTypes)(e,t,s.opts.strictNumbers,o.DataType.Wrong)}`}return l.nil}function invalid$DataSchema(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,l._)`!${r}(${t})`}return l.nil}}subschema(e,t){const r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e);(0,u.extendSubschemaMode)(r,e);const n={...this.it,...r,items:undefined,props:undefined};subschemaCode(n,t);return n}mergeEvaluated(e,t){const{it:r,gen:n}=this;if(!r.opts.unevaluated)return;if(r.props!==true&&e.props!==undefined){r.props=d.mergeEvaluated.props(n,e.props,r.props,t)}if(r.items!==true&&e.items!==undefined){r.items=d.mergeEvaluated.items(n,e.items,r.items,t)}}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(r.props!==true||r.items!==true)){n.if(t,(()=>this.mergeEvaluated(e,l.Name)));return true}}}t.KeywordCxt=KeywordCxt;function keywordCode(e,t,r,n){const s=new KeywordCxt(e,r,t);if("code"in r){r.code(s,n)}else if(s.$data&&r.validate){(0,c.funcKeywordCode)(s,r)}else if("macro"in r){(0,c.macroKeywordCode)(s,r)}else if(r.compile||r.validate){(0,c.funcKeywordCode)(s,r)}}const g=/^\/(?:[^~]|~0|~1)*$/;const v=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let s;let i;if(e==="")return h.default.rootData;if(e[0]==="/"){if(!g.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);s=e;i=h.default.rootData}else{const o=v.exec(e);if(!o)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+o[1];s=o[2];if(s==="#"){if(a>=t)throw new Error(errorMsg("property/index",a));return n[t-a]}if(a>t)throw new Error(errorMsg("data",a));i=r[t-a];if(!s)return i}let o=i;const a=s.split("/");for(const e of a){if(e){i=(0,l._)`${i}${(0,l.getProperty)((0,d.unescapeJsonPointer)(e))}`;o=(0,l._)`${o} && ${i}`}}return o;function errorMsg(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=getData},95223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=r(84598);const s=r(21080);const i=r(18572);const o=r(57757);function macroKeywordCode(e,t){const{gen:r,keyword:s,schema:i,parentSchema:o,it:a}=e;const c=t.macro.call(a.self,i,o,a);const u=useKeyword(r,s,c);if(a.opts.validateSchema!==false)a.self.validateSchema(c,true);const l=r.name("valid");e.subschema({schema:c,schemaPath:n.nil,errSchemaPath:`${a.errSchemaPath}/${s}`,topSchemaRef:u,compositeRule:true},l);e.pass(l,(()=>e.error(true)))}t.macroKeywordCode=macroKeywordCode;function funcKeywordCode(e,t){var r;const{gen:o,keyword:a,schema:c,parentSchema:u,$data:l,it:h}=e;checkAsyncKeyword(h,t);const p=!l&&t.compile?t.compile.call(h.self,c,u,h):t.validate;const d=useKeyword(o,a,p);const y=o.let("valid");e.block$data(y,validateKeyword);e.ok((r=t.valid)!==null&&r!==void 0?r:y);function validateKeyword(){if(t.errors===false){assignValid();if(t.modifying)modifyData(e);reportErrs((()=>e.error()))}else{const r=t.async?validateAsync():validateSync();if(t.modifying)modifyData(e);reportErrs((()=>addErrs(e,r)))}}function validateAsync(){const e=o.let("ruleErrs",null);o.try((()=>assignValid((0,n._)`await `)),(t=>o.assign(y,false).if((0,n._)`${t} instanceof ${h.ValidationError}`,(()=>o.assign(e,(0,n._)`${t}.errors`)),(()=>o.throw(t)))));return e}function validateSync(){const e=(0,n._)`${d}.errors`;o.assign(e,null);assignValid(n.nil);return e}function assignValid(r=(t.async?(0,n._)`await `:n.nil)){const a=h.opts.passContext?s.default.this:s.default.self;const c=!("compile"in t&&!l||t.schema===false);o.assign(y,(0,n._)`${r}${(0,i.callValidateCode)(e,d,a,c)}`,t.modifying)}function reportErrs(e){var r;o.if((0,n.not)((r=t.valid)!==null&&r!==void 0?r:y),e)}}t.funcKeywordCode=funcKeywordCode;function modifyData(e){const{gen:t,data:r,it:s}=e;t.if(s.parentData,(()=>t.assign(r,(0,n._)`${s.parentData}[${s.parentDataProperty}]`)))}function addErrs(e,t){const{gen:r}=e;r.if((0,n._)`Array.isArray(${t})`,(()=>{r.assign(s.default.vErrors,(0,n._)`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`).assign(s.default.errors,(0,n._)`${s.default.vErrors}.length`);(0,o.extendErrors)(e)}),(()=>e.error()))}function checkAsyncKeyword({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function useKeyword(e,t,r){if(r===undefined)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}function validSchemaType(e,t,r=false){return!t.length||t.some((t=>t==="array"?Array.isArray(e):t==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==t||r&&typeof e=="undefined"))}t.validSchemaType=validSchemaType;function validateKeywordUsage({schema:e,opts:t,self:r,errSchemaPath:n},s,i){if(Array.isArray(s.keyword)?!s.keyword.includes(i):s.keyword!==i){throw new Error("ajv implementation error")}const o=s.dependencies;if(o===null||o===void 0?void 0:o.some((t=>!Object.prototype.hasOwnProperty.call(e,t)))){throw new Error(`parent schema must have dependencies of ${i}: ${o.join(",")}`)}if(s.validateSchema){const o=s.validateSchema(e[i]);if(!o){const e=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(s.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(e);else throw new Error(e)}}}t.validateKeywordUsage=validateKeywordUsage},46391:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=r(84598);const s=r(69068);function getSubschema(e,{keyword:t,schemaProp:r,schema:i,schemaPath:o,errSchemaPath:a,topSchemaRef:c}){if(t!==undefined&&i!==undefined){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(t!==undefined){const i=e.schema[t];return r===undefined?{schema:i,schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:i[r],schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,s.escapeFragment)(r)}`}}if(i!==undefined){if(o===undefined||a===undefined||c===undefined){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema:i,schemaPath:o,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}t.getSubschema=getSubschema;function extendSubschemaData(e,t,{dataProp:r,dataPropType:i,data:o,dataTypes:a,propertyName:c}){if(o!==undefined&&r!==undefined){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen:u}=t;if(r!==undefined){const{errorPath:o,dataPathArr:a,opts:c}=t;const l=u.let("data",(0,n._)`${t.data}${(0,n.getProperty)(r)}`,true);dataContextProps(l);e.errorPath=(0,n.str)`${o}${(0,s.getErrorPath)(r,i,c.jsPropertySyntax)}`;e.parentDataProperty=(0,n._)`${r}`;e.dataPathArr=[...a,e.parentDataProperty]}if(o!==undefined){const t=o instanceof n.Name?o:u.let("data",o,true);dataContextProps(t);if(c!==undefined)e.propertyName=c}if(a)e.dataTypes=a;function dataContextProps(r){e.data=r;e.dataLevel=t.dataLevel+1;e.dataTypes=[];t.definedProperties=new Set;e.parentData=t.data;e.dataNames=[...t.dataNames,r]}}t.extendSubschemaData=extendSubschemaData;function extendSubschemaMode(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:s,allErrors:i}){if(n!==undefined)e.compositeRule=n;if(s!==undefined)e.createErrors=s;if(i!==undefined)e.allErrors=i;e.jtdDiscriminator=t;e.jtdMetadata=r}t.extendSubschemaMode=extendSubschemaMode},5054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(76316);Object.defineProperty(t,"KeywordCxt",{enumerable:true,get:function(){return n.KeywordCxt}});var s=r(84598);Object.defineProperty(t,"_",{enumerable:true,get:function(){return s._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return s.str}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return s.stringify}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return s.nil}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return s.Name}});Object.defineProperty(t,"CodeGen",{enumerable:true,get:function(){return s.CodeGen}});const i=r(57091);const o=r(63796);const a=r(54445);const c=r(35444);const u=r(84598);const l=r(64146);const h=r(47853);const p=r(69068);const d=r(97918);const y=r(53678);const defaultRegExp=(e,t)=>new RegExp(e,t);defaultRegExp.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"];const v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);const b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};const w={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};const S=200;function requiredOptions(e){var t,r,n,s,i,o,a,c,u,l,h,p,d,g,v,b,w,x,O,R,k,A,C,P,$;const T=e.strict;const j=(t=e.code)===null||t===void 0?void 0:t.optimize;const I=j===true||j===undefined?1:j||0;const N=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:defaultRegExp;const M=(s=e.uriResolver)!==null&&s!==void 0?s:y.default;return{strictSchema:(o=(i=e.strictSchema)!==null&&i!==void 0?i:T)!==null&&o!==void 0?o:true,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:T)!==null&&c!==void 0?c:true,strictTypes:(l=(u=e.strictTypes)!==null&&u!==void 0?u:T)!==null&&l!==void 0?l:"log",strictTuples:(p=(h=e.strictTuples)!==null&&h!==void 0?h:T)!==null&&p!==void 0?p:"log",strictRequired:(g=(d=e.strictRequired)!==null&&d!==void 0?d:T)!==null&&g!==void 0?g:false,code:e.code?{...e.code,optimize:I,regExp:N}:{optimize:I,regExp:N},loopRequired:(v=e.loopRequired)!==null&&v!==void 0?v:S,loopEnum:(b=e.loopEnum)!==null&&b!==void 0?b:S,meta:(w=e.meta)!==null&&w!==void 0?w:true,messages:(x=e.messages)!==null&&x!==void 0?x:true,inlineRefs:(O=e.inlineRefs)!==null&&O!==void 0?O:true,schemaId:(R=e.schemaId)!==null&&R!==void 0?R:"$id",addUsedSchema:(k=e.addUsedSchema)!==null&&k!==void 0?k:true,validateSchema:(A=e.validateSchema)!==null&&A!==void 0?A:true,validateFormats:(C=e.validateFormats)!==null&&C!==void 0?C:true,unicodeRegExp:(P=e.unicodeRegExp)!==null&&P!==void 0?P:true,int32range:($=e.int32range)!==null&&$!==void 0?$:true,uriResolver:M}}class Ajv{constructor(e={}){this.schemas={};this.refs={};this.formats={};this._compilations=new Set;this._loading={};this._cache=new Map;e=this.opts={...e,...requiredOptions(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:v,es5:t,lines:r});this.logger=getLogger(e.logger);const n=e.validateFormats;e.validateFormats=false;this.RULES=(0,a.getRules)();checkOptions.call(this,b,e,"NOT SUPPORTED");checkOptions.call(this,w,e,"DEPRECATED","warn");this._metaOpts=getMetaSchemaOptions.call(this);if(e.formats)addInitialFormats.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(e.keywords)addInitialKeywords.call(this,e.keywords);if(typeof e.meta=="object")this.addMetaSchema(e.meta);addInitialSchemas.call(this);e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;if(r==="id"){n={...d};n.id=n.$id;delete n.$id}if(t&&e)this.addMetaSchema(n,n[r],false)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[t]||e:undefined}validate(e,t){let r;if(typeof e=="string"){r=this.getSchema(e);if(!r)throw new Error(`no schema with key or ref "${e}"`)}else{r=this.compile(e)}const n=r(t);if(!("$async"in r))this.errors=r.errors;return n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema:r}=this.opts;return runCompileAsync.call(this,e,t);async function runCompileAsync(e,t){await loadMetaSchema.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||_compileAsync.call(this,r)}async function loadMetaSchema(e){if(e&&!this.getSchema(e)){await runCompileAsync.call(this,{$ref:e},true)}}async function _compileAsync(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;checkLoaded.call(this,t);await loadMissingSchema.call(this,t.missingSchema);return _compileAsync.call(this,e)}}function checkLoaded({missingSchema:e,missingRef:t}){if(this.refs[e]){throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}}async function loadMissingSchema(e){const r=await _loadSchema.call(this,e);if(!this.refs[e])await loadMetaSchema.call(this,r.$schema);if(!this.refs[e])this.addSchema(r,e,t)}async function _loadSchema(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,undefined,r,n);return this}let s;if(typeof e==="object"){const{schemaId:t}=this.opts;s=e[t];if(s!==undefined&&typeof s!="string"){throw new Error(`schema ${t} must be string`)}}t=(0,l.normalizeId)(t||s);this._checkUnique(t);this.schemas[t]=this._addSchema(e,r,t,n,true);return this}addMetaSchema(e,t,r=this.opts.validateSchema){this.addSchema(e,t,true,r);return this}validateSchema(e,t){if(typeof e=="boolean")return true;let r;r=e.$schema;if(r!==undefined&&typeof r!="string"){throw new Error("$schema must be a string")}r=r||this.opts.defaultMeta||this.defaultMeta();if(!r){this.logger.warn("meta-schema not available");this.errors=null;return true}const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(e);else throw new Error(e)}return n}getSchema(e){let t;while(typeof(t=getSchEnv.call(this,e))=="string")e=t;if(t===undefined){const{schemaId:r}=this.opts;const n=new c.SchemaEnv({schema:{},schemaId:r});t=c.resolveSchema.call(this,n,e);if(!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp){this._removeAllSchemas(this.schemas,e);this._removeAllSchemas(this.refs,e);return this}switch(typeof e){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const t=getSchEnv.call(this,e);if(typeof t=="object")this._cache.delete(t.schema);delete this.schemas[e];delete this.refs[e];return this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];if(r){r=(0,l.normalizeId)(r);delete this.schemas[r];delete this.refs[r]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if(typeof e=="string"){r=e;if(typeof t=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");t.keyword=r}}else if(typeof e=="object"&&t===undefined){t=e;r=t.keyword;if(Array.isArray(r)&&!r.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}checkKeyword.call(this,r,t);if(!t){(0,p.eachItem)(r,(e=>addRule.call(this,e)));return this}keywordMetaschema.call(this,t);const n={...t,type:(0,h.getJSONTypes)(t.type),schemaType:(0,h.getJSONTypes)(t.schemaType)};(0,p.eachItem)(r,n.type.length===0?e=>addRule.call(this,e,n):e=>n.type.forEach((t=>addRule.call(this,e,n,t))));return this}getKeyword(e){const t=this.RULES.all[e];return typeof t=="object"?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e];delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));if(t>=0)r.rules.splice(t,1)}return this}addFormat(e,t){if(typeof t=="string")t=new RegExp(t);this.formats[e]=t;return this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){if(!e||e.length===0)return"No errors";return e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r))}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let s=e;for(const e of t)s=s[e];for(const e in r){const t=r[e];if(typeof t!="object")continue;const{$data:n}=t.definition;const i=s[e];if(n&&i)s[e]=schemaOrData(i)}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];if(!t||t.test(r)){if(typeof n=="string"){delete e[r]}else if(n&&!n.meta){this._cache.delete(n.schema);delete e[r]}}}}_addSchema(e,t,r,n=this.opts.validateSchema,s=this.opts.addUsedSchema){let i;const{schemaId:o}=this.opts;if(typeof e=="object"){i=e[o]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(a!==undefined)return a;r=(0,l.normalizeId)(i||r);const u=l.getSchemaRefs.call(this,e,r);a=new c.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:r,localRefs:u});this._cache.set(a.schema,a);if(s&&!r.startsWith("#")){if(r)this._checkUnique(r);this.refs[r]=a}if(n)this.validateSchema(e,true);return a}_checkUnique(e){if(this.schemas[e]||this.refs[e]){throw new Error(`schema with key or id "${e}" already exists`)}}_compileSchemaEnv(e){if(e.meta)this._compileMetaSchema(e);else c.compileSchema.call(this,e);if(!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}t["default"]=Ajv;Ajv.ValidationError=i.default;Ajv.MissingRefError=o.default;function checkOptions(e,t,r,n="error"){for(const s in e){const i=s;if(i in t)this.logger[n](`${r}: option ${s}. ${e[i]}`)}}function getSchEnv(e){e=(0,l.normalizeId)(e);return this.schemas[e]||this.refs[e]}function addInitialSchemas(){const e=this.opts.schemas;if(!e)return;if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function addInitialFormats(){for(const e in this.opts.formats){const t=this.opts.formats[e];if(t)this.addFormat(e,t)}}function addInitialKeywords(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];if(!r.keyword)r.keyword=t;this.addKeyword(r)}}function getMetaSchemaOptions(){const e={...this.opts};for(const t of g)delete e[t];return e}const x={log(){},warn(){},error(){}};function getLogger(e){if(e===false)return x;if(e===undefined)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}const O=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(e,t){const{RULES:r}=this;(0,p.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.test(e))throw new Error(`Keyword ${e} has invalid name`)}));if(!t)return;if(t.$data&&!("code"in t||"validate"in t)){throw new Error('$data keyword must have "code" or "validate" function')}}function addRule(e,t,r){var n;const s=t===null||t===void 0?void 0:t.post;if(r&&s)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:i}=this;let o=s?i.post:i.rules.find((({type:e})=>e===r));if(!o){o={type:r,rules:[]};i.rules.push(o)}i.keywords[e]=true;if(!t)return;const a={keyword:e,definition:{...t,type:(0,h.getJSONTypes)(t.type),schemaType:(0,h.getJSONTypes)(t.schemaType)}};if(t.before)addBeforeRule.call(this,o,a,t.before);else o.rules.push(a);i.all[e]=a;(n=t.implements)===null||n===void 0?void 0:n.forEach((e=>this.addKeyword(e)))}function addBeforeRule(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));if(n>=0){e.rules.splice(n,0,t)}else{e.rules.push(t);this.logger.warn(`rule ${r} is not defined`)}}function keywordMetaschema(e){let{metaSchema:t}=e;if(t===undefined)return;if(e.$data&&this.opts.$data)t=schemaOrData(t);e.validateSchema=this.compile(t,true)}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function schemaOrData(e){return{anyOf:[e,R]}}},4461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(51230);n.code='require("ajv/dist/runtime/equal").default';t["default"]=n},17382:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function ucs2length(e){const t=e.length;let r=0;let n=0;let s;while(n<t){r++;s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<t){s=e.charCodeAt(n);if((s&64512)===56320)n++}}return r}t["default"]=ucs2length;ucs2length.code='require("ajv/dist/runtime/ucs2length").default'},53678:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(14618);n.code='require("ajv/dist/runtime/uri").default';t["default"]=n},57091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class ValidationError extends Error{constructor(e){super("validation failed");this.errors=e;this.ajv=this.validation=true}}t["default"]=ValidationError},81208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateAdditionalItems=void 0;const n=r(84598);const s=r(69068);const i={message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`};const o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:i,code(e){const{parentSchema:t,it:r}=e;const{items:n}=t;if(!Array.isArray(n)){(0,s.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}validateAdditionalItems(e,n)}};function validateAdditionalItems(e,t){const{gen:r,schema:i,data:o,keyword:a,it:c}=e;c.items=true;const u=r.const("len",(0,n._)`${o}.length`);if(i===false){e.setParams({len:t.length});e.pass((0,n._)`${u} <= ${t.length}`)}else if(typeof i=="object"&&!(0,s.alwaysValidSchema)(c,i)){const s=r.var("valid",(0,n._)`${u} <= ${t.length}`);r.if((0,n.not)(s),(()=>validateItems(s)));e.ok(s)}function validateItems(i){r.forRange("i",t.length,u,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:s.Type.Num},i);if(!c.allErrors)r.if((0,n.not)(i),(()=>r.break()))}))}}t.validateAdditionalItems=validateAdditionalItems;t["default"]=o},93849:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(18572);const s=r(84598);const i=r(21080);const o=r(69068);const a={message:"must NOT have additional properties",params:({params:e})=>(0,s._)`{additionalProperty: ${e.additionalProperty}}`};const c={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:true,trackErrors:true,error:a,code(e){const{gen:t,schema:r,parentSchema:a,data:c,errsCount:u,it:l}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:h,opts:p}=l;l.props=true;if(p.removeAdditional!=="all"&&(0,o.alwaysValidSchema)(l,r))return;const d=(0,n.allSchemaProperties)(a.properties);const y=(0,n.allSchemaProperties)(a.patternProperties);checkAdditionalProperties();e.ok((0,s._)`${u} === ${i.default.errors}`);function checkAdditionalProperties(){t.forIn("key",c,(e=>{if(!d.length&&!y.length)additionalPropertyCode(e);else t.if(isAdditional(e),(()=>additionalPropertyCode(e)))}))}function isAdditional(r){let i;if(d.length>8){const e=(0,o.schemaRefOrVal)(l,a.properties,"properties");i=(0,n.isOwnProperty)(t,e,r)}else if(d.length){i=(0,s.or)(...d.map((e=>(0,s._)`${r} === ${e}`)))}else{i=s.nil}if(y.length){i=(0,s.or)(i,...y.map((t=>(0,s._)`${(0,n.usePattern)(e,t)}.test(${r})`)))}return(0,s.not)(i)}function deleteAdditional(e){t.code((0,s._)`delete ${c}[${e}]`)}function additionalPropertyCode(n){if(p.removeAdditional==="all"||p.removeAdditional&&r===false){deleteAdditional(n);return}if(r===false){e.setParams({additionalProperty:n});e.error();if(!h)t.break();return}if(typeof r=="object"&&!(0,o.alwaysValidSchema)(l,r)){const r=t.name("valid");if(p.removeAdditional==="failing"){applyAdditionalSchema(n,r,false);t.if((0,s.not)(r),(()=>{e.reset();deleteAdditional(n)}))}else{applyAdditionalSchema(n,r);if(!h)t.if((0,s.not)(r),(()=>t.break()))}}}function applyAdditionalSchema(t,r,n){const s={keyword:"additionalProperties",dataProp:t,dataPropType:o.Type.Str};if(n===false){Object.assign(s,{compositeRule:true,createErrors:false,allErrors:false})}e.subschema(s,r)}}};t["default"]=c},82799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(69068);const s={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(s,t))return;const o=e.subschema({keyword:"allOf",schemaProp:r},i);e.ok(i);e.mergeEvaluated(o)}))}};t["default"]=s},10048:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(18572);const s={keyword:"anyOf",schemaType:"array",trackErrors:true,code:n.validateUnion,error:{message:"must match a schema in anyOf"}};t["default"]=s},19152:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s=r(69068);const i={message:({params:{min:e,max:t}})=>t===undefined?(0,n.str)`must contain at least ${e} valid item(s)`:(0,n.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===undefined?(0,n._)`{minContains: ${e}}`:(0,n._)`{minContains: ${e}, maxContains: ${t}}`};const o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:i,code(e){const{gen:t,schema:r,parentSchema:i,data:o,it:a}=e;let c;let u;const{minContains:l,maxContains:h}=i;if(a.opts.next){c=l===undefined?1:l;u=h}else{c=1}const p=t.const("len",(0,n._)`${o}.length`);e.setParams({min:c,max:u});if(u===undefined&&c===0){(0,s.checkStrictMode)(a,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(u!==undefined&&c>u){(0,s.checkStrictMode)(a,`"minContains" > "maxContains" is always invalid`);e.fail();return}if((0,s.alwaysValidSchema)(a,r)){let t=(0,n._)`${p} >= ${c}`;if(u!==undefined)t=(0,n._)`${t} && ${p} <= ${u}`;e.pass(t);return}a.items=true;const d=t.name("valid");if(u===undefined&&c===1){validateItems(d,(()=>t.if(d,(()=>t.break()))))}else if(c===0){t.let(d,true);if(u!==undefined)t.if((0,n._)`${o}.length > 0`,validateItemsWithCount)}else{t.let(d,false);validateItemsWithCount()}e.result(d,(()=>e.reset()));function validateItemsWithCount(){const e=t.name("_valid");const r=t.let("count",0);validateItems(e,(()=>t.if(e,(()=>checkLimits(r)))))}function validateItems(r,n){t.forRange("i",0,p,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:s.Type.Num,compositeRule:true},r);n()}))}function checkLimits(e){t.code((0,n._)`${e}++`);if(u===undefined){t.if((0,n._)`${e} >= ${c}`,(()=>t.assign(d,true).break()))}else{t.if((0,n._)`${e} > ${u}`,(()=>t.assign(d,false).break()));if(c===1)t.assign(d,true);else t.if((0,n._)`${e} >= ${c}`,(()=>t.assign(d,true)))}}}};t["default"]=o},6569:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=r(84598);const s=r(69068);const i=r(18572);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const s=t===1?"property":"properties";return(0,n.str)`must have ${s} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:s}})=>(0,n._)`{property: ${e},
5
+ || ${a} === "boolean" || ${s} === null`).assign(c,(0,o._)`[${s}]`)}}}function assignParentData({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,o._)`${t} !== undefined`,(()=>e.assign((0,o._)`${t}[${r}]`,n)))}function checkDataType(e,t,r,n=c.Correct){const s=n===c.Correct?o.operators.EQ:o.operators.NEQ;let i;switch(e){case"null":return(0,o._)`${t} ${s} null`;case"array":i=(0,o._)`Array.isArray(${t})`;break;case"object":i=(0,o._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=numCond((0,o._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=numCond();break;default:return(0,o._)`typeof ${t} ${s} ${e}`}return n===c.Correct?i:(0,o.not)(i);function numCond(e=o.nil){return(0,o.and)((0,o._)`typeof ${t} == "number"`,e,r?(0,o._)`isFinite(${t})`:o.nil)}}t.checkDataType=checkDataType;function checkDataTypes(e,t,r,n){if(e.length===1){return checkDataType(e[0],t,r,n)}let s;const i=(0,a.toHash)(e);if(i.array&&i.object){const e=(0,o._)`typeof ${t} != "object"`;s=i.null?e:(0,o._)`!${t} || ${e}`;delete i.null;delete i.array;delete i.object}else{s=o.nil}if(i.number)delete i.integer;for(const e in i)s=(0,o.and)(s,checkDataType(e,t,r,n));return s}t.checkDataTypes=checkDataTypes;const l={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,o._)`{type: ${e}}`:(0,o._)`{type: ${t}}`};function reportTypeError(e){const t=getTypeErrorContext(e);(0,i.reportError)(t,l)}t.reportTypeError=reportTypeError;function getTypeErrorContext(e){const{gen:t,data:r,schema:n}=e;const s=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:e}}},28795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assignDefaults=void 0;const n=r(84598);const s=r(69068);function assignDefaults(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r){for(const t in r){assignDefault(e,t,r[t].default)}}else if(t==="array"&&Array.isArray(n)){n.forEach(((t,r)=>assignDefault(e,r,t.default)))}}t.assignDefaults=assignDefaults;function assignDefault(e,t,r){const{gen:i,compositeRule:o,data:a,opts:c}=e;if(r===undefined)return;const u=(0,n._)`${a}${(0,n.getProperty)(t)}`;if(o){(0,s.checkStrictMode)(e,`default is ignored for: ${u}`);return}let l=(0,n._)`${u} === undefined`;if(c.useDefaults==="empty"){l=(0,n._)`${l} || ${u} === null || ${u} === ""`}i.if(l,(0,n._)`${u} = ${(0,n.stringify)(r)}`)}},76316:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=r(34046);const s=r(47853);const i=r(83501);const o=r(47853);const a=r(28795);const c=r(95223);const u=r(46391);const l=r(84598);const h=r(21080);const p=r(64146);const d=r(69068);const y=r(57757);function validateFunctionCode(e){if(isSchemaObj(e)){checkKeywords(e);if(schemaCxtHasRules(e)){topSchemaObjCode(e);return}}validateFunction(e,(()=>(0,n.topBoolOrEmptySchema)(e)))}t.validateFunctionCode=validateFunctionCode;function validateFunction({gen:e,validateName:t,schema:r,schemaEnv:n,opts:s},i){if(s.code.es5){e.func(t,(0,l._)`${h.default.data}, ${h.default.valCxt}`,n.$async,(()=>{e.code((0,l._)`"use strict"; ${funcSourceUrl(r,s)}`);destructureValCxtES5(e,s);e.code(i)}))}else{e.func(t,(0,l._)`${h.default.data}, ${destructureValCxt(s)}`,n.$async,(()=>e.code(funcSourceUrl(r,s)).code(i)))}}function destructureValCxt(e){return(0,l._)`{${h.default.instancePath}="", ${h.default.parentData}, ${h.default.parentDataProperty}, ${h.default.rootData}=${h.default.data}${e.dynamicRef?(0,l._)`, ${h.default.dynamicAnchors}={}`:l.nil}}={}`}function destructureValCxtES5(e,t){e.if(h.default.valCxt,(()=>{e.var(h.default.instancePath,(0,l._)`${h.default.valCxt}.${h.default.instancePath}`);e.var(h.default.parentData,(0,l._)`${h.default.valCxt}.${h.default.parentData}`);e.var(h.default.parentDataProperty,(0,l._)`${h.default.valCxt}.${h.default.parentDataProperty}`);e.var(h.default.rootData,(0,l._)`${h.default.valCxt}.${h.default.rootData}`);if(t.dynamicRef)e.var(h.default.dynamicAnchors,(0,l._)`${h.default.valCxt}.${h.default.dynamicAnchors}`)}),(()=>{e.var(h.default.instancePath,(0,l._)`""`);e.var(h.default.parentData,(0,l._)`undefined`);e.var(h.default.parentDataProperty,(0,l._)`undefined`);e.var(h.default.rootData,h.default.data);if(t.dynamicRef)e.var(h.default.dynamicAnchors,(0,l._)`{}`)}))}function topSchemaObjCode(e){const{schema:t,opts:r,gen:n}=e;validateFunction(e,(()=>{if(r.$comment&&t.$comment)commentKeyword(e);checkNoDefault(e);n.let(h.default.vErrors,null);n.let(h.default.errors,0);if(r.unevaluated)resetEvaluated(e);typeAndKeywords(e);returnResults(e)}));return}function resetEvaluated(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,l._)`${r}.evaluated`);t.if((0,l._)`${e.evaluated}.dynamicProps`,(()=>t.assign((0,l._)`${e.evaluated}.props`,(0,l._)`undefined`)));t.if((0,l._)`${e.evaluated}.dynamicItems`,(()=>t.assign((0,l._)`${e.evaluated}.items`,(0,l._)`undefined`)))}function funcSourceUrl(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,l._)`/*# sourceURL=${r} */`:l.nil}function subschemaCode(e,t){if(isSchemaObj(e)){checkKeywords(e);if(schemaCxtHasRules(e)){subSchemaObjCode(e,t);return}}(0,n.boolOrEmptySchema)(e,t)}function schemaCxtHasRules({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return true;return false}function isSchemaObj(e){return typeof e.schema!="boolean"}function subSchemaObjCode(e,t){const{schema:r,gen:n,opts:s}=e;if(s.$comment&&r.$comment)commentKeyword(e);updateContext(e);checkAsyncSchema(e);const i=n.const("_errs",h.default.errors);typeAndKeywords(e,i);n.var(t,(0,l._)`${i} === ${h.default.errors}`)}function checkKeywords(e){(0,d.checkUnknownRules)(e);checkRefsAndKeywords(e)}function typeAndKeywords(e,t){if(e.opts.jtd)return schemaKeywords(e,[],false,t);const r=(0,s.getSchemaTypes)(e.schema);const n=(0,s.coerceAndCheckDataType)(e,r);schemaKeywords(e,r,!n,t)}function checkRefsAndKeywords(e){const{schema:t,errSchemaPath:r,opts:n,self:s}=e;if(t.$ref&&n.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(t,s.RULES)){s.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}}function checkNoDefault(e){const{schema:t,opts:r}=e;if(t.default!==undefined&&r.useDefaults&&r.strictSchema){(0,d.checkStrictMode)(e,"default is ignored in the schema root")}}function updateContext(e){const t=e.schema[e.opts.schemaId];if(t)e.baseId=(0,p.resolveUrl)(e.opts.uriResolver,e.baseId,t)}function checkAsyncSchema(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:s}){const i=r.$comment;if(s.$comment===true){e.code((0,l._)`${h.default.self}.logger.log(${i})`)}else if(typeof s.$comment=="function"){const r=(0,l.str)`${n}/$comment`;const s=e.scopeValue("root",{ref:t.root});e.code((0,l._)`${h.default.self}.opts.$comment(${i}, ${r}, ${s}.schema)`)}}function returnResults(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:s,opts:i}=e;if(r.$async){t.if((0,l._)`${h.default.errors} === 0`,(()=>t.return(h.default.data)),(()=>t.throw((0,l._)`new ${s}(${h.default.vErrors})`)))}else{t.assign((0,l._)`${n}.errors`,h.default.vErrors);if(i.unevaluated)assignEvaluated(e);t.return((0,l._)`${h.default.errors} === 0`)}}function assignEvaluated({gen:e,evaluated:t,props:r,items:n}){if(r instanceof l.Name)e.assign((0,l._)`${t}.props`,r);if(n instanceof l.Name)e.assign((0,l._)`${t}.items`,n)}function schemaKeywords(e,t,r,n){const{gen:s,schema:a,data:c,allErrors:u,opts:p,self:y}=e;const{RULES:g}=y;if(a.$ref&&(p.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(a,g))){s.block((()=>keywordCode(e,"$ref",g.all.$ref.definition)));return}if(!p.jtd)checkStrictTypes(e,t);s.block((()=>{for(const e of g.rules)groupKeywords(e);groupKeywords(g.post)}));function groupKeywords(d){if(!(0,i.shouldUseGroup)(a,d))return;if(d.type){s.if((0,o.checkDataType)(d.type,c,p.strictNumbers));iterateKeywords(e,d);if(t.length===1&&t[0]===d.type&&r){s.else();(0,o.reportTypeError)(e)}s.endIf()}else{iterateKeywords(e,d)}if(!u)s.if((0,l._)`${h.default.errors} === ${n||0}`)}}function iterateKeywords(e,t){const{gen:r,schema:n,opts:{useDefaults:s}}=e;if(s)(0,a.assignDefaults)(e,t.type);r.block((()=>{for(const r of t.rules){if((0,i.shouldUseRule)(n,r)){keywordCode(e,r.keyword,r.definition,t.type)}}}))}function checkStrictTypes(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;checkContextTypes(e,t);if(!e.opts.allowUnionTypes)checkMultipleTypes(e,t);checkKeywordTypes(e,e.dataTypes)}function checkContextTypes(e,t){if(!t.length)return;if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach((t=>{if(!includesType(e.dataTypes,t)){strictTypesError(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}}));e.dataTypes=e.dataTypes.filter((e=>includesType(t,e)))}function checkMultipleTypes(e,t){if(t.length>1&&!(t.length===2&&t.includes("null"))){strictTypesError(e,"use allowUnionTypes to allow union type keyword")}}function checkKeywordTypes(e,t){const r=e.self.RULES.all;for(const n in r){const s=r[n];if(typeof s=="object"&&(0,i.shouldUseRule)(e.schema,s)){const{type:r}=s.definition;if(r.length&&!r.some((e=>hasApplicableType(t,e)))){strictTypesError(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}}function hasApplicableType(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function includesType(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function strictTypesError(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`;(0,d.checkStrictMode)(e,t,e.opts.strictTypes)}class KeywordCxt{constructor(e,t,r){(0,c.validateKeywordUsage)(e,t,r);this.gen=e.gen;this.allErrors=e.allErrors;this.keyword=r;this.data=e.data;this.schema=e.schema[r];this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,d.schemaRefOrVal)(e,this.schema,r,this.$data);this.schemaType=t.schemaType;this.parentSchema=e.schema;this.params={};this.it=e;this.def=t;if(this.$data){this.schemaCode=e.gen.const("vSchema",getData(this.$data,e))}else{this.schemaCode=this.schemaValue;if(!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined)){throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`)}}if("code"in t?t.trackErrors:t.errors!==false){this.errsCount=e.gen.const("_errs",h.default.errors)}}result(e,t,r){this.failResult((0,l.not)(e),t,r)}failResult(e,t,r){this.gen.if(e);if(r)r();else this.error();if(t){this.gen.else();t();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(e,t){this.failResult((0,l.not)(e),undefined,t)}fail(e){if(e===undefined){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(e);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,l._)`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t){this.setParams(t);this._error(e,r);this.setParams({});return}this._error(e,r)}_error(e,t){(e?y.reportExtraError:y.reportError)(this,this.def.error,t)}$dataError(){(0,y.reportError)(this,this.def.$dataError||y.keyword$DataError)}reset(){if(this.errsCount===undefined)throw new Error('add "trackErrors" to keyword definition');(0,y.resetErrorsCount)(this.gen,this.errsCount)}ok(e){if(!this.allErrors)this.gen.if(e)}setParams(e,t){if(t)Object.assign(this.params,e);else this.params=e}block$data(e,t,r=l.nil){this.gen.block((()=>{this.check$data(e,r);t()}))}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:s,def:i}=this;r.if((0,l.or)((0,l._)`${n} === undefined`,t));if(e!==l.nil)r.assign(e,true);if(s.length||i.validateSchema){r.elseIf(this.invalid$data());this.$dataError();if(e!==l.nil)r.assign(e,false)}r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:s}=this;return(0,l.or)(wrong$DataType(),invalid$DataSchema());function wrong$DataType(){if(r.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return(0,l._)`${(0,o.checkDataTypes)(e,t,s.opts.strictNumbers,o.DataType.Wrong)}`}return l.nil}function invalid$DataSchema(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,l._)`!${r}(${t})`}return l.nil}}subschema(e,t){const r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e);(0,u.extendSubschemaMode)(r,e);const n={...this.it,...r,items:undefined,props:undefined};subschemaCode(n,t);return n}mergeEvaluated(e,t){const{it:r,gen:n}=this;if(!r.opts.unevaluated)return;if(r.props!==true&&e.props!==undefined){r.props=d.mergeEvaluated.props(n,e.props,r.props,t)}if(r.items!==true&&e.items!==undefined){r.items=d.mergeEvaluated.items(n,e.items,r.items,t)}}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(r.props!==true||r.items!==true)){n.if(t,(()=>this.mergeEvaluated(e,l.Name)));return true}}}t.KeywordCxt=KeywordCxt;function keywordCode(e,t,r,n){const s=new KeywordCxt(e,r,t);if("code"in r){r.code(s,n)}else if(s.$data&&r.validate){(0,c.funcKeywordCode)(s,r)}else if("macro"in r){(0,c.macroKeywordCode)(s,r)}else if(r.compile||r.validate){(0,c.funcKeywordCode)(s,r)}}const g=/^\/(?:[^~]|~0|~1)*$/;const v=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let s;let i;if(e==="")return h.default.rootData;if(e[0]==="/"){if(!g.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);s=e;i=h.default.rootData}else{const o=v.exec(e);if(!o)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+o[1];s=o[2];if(s==="#"){if(a>=t)throw new Error(errorMsg("property/index",a));return n[t-a]}if(a>t)throw new Error(errorMsg("data",a));i=r[t-a];if(!s)return i}let o=i;const a=s.split("/");for(const e of a){if(e){i=(0,l._)`${i}${(0,l.getProperty)((0,d.unescapeJsonPointer)(e))}`;o=(0,l._)`${o} && ${i}`}}return o;function errorMsg(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=getData},95223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=r(84598);const s=r(21080);const i=r(18572);const o=r(57757);function macroKeywordCode(e,t){const{gen:r,keyword:s,schema:i,parentSchema:o,it:a}=e;const c=t.macro.call(a.self,i,o,a);const u=useKeyword(r,s,c);if(a.opts.validateSchema!==false)a.self.validateSchema(c,true);const l=r.name("valid");e.subschema({schema:c,schemaPath:n.nil,errSchemaPath:`${a.errSchemaPath}/${s}`,topSchemaRef:u,compositeRule:true},l);e.pass(l,(()=>e.error(true)))}t.macroKeywordCode=macroKeywordCode;function funcKeywordCode(e,t){var r;const{gen:o,keyword:a,schema:c,parentSchema:u,$data:l,it:h}=e;checkAsyncKeyword(h,t);const p=!l&&t.compile?t.compile.call(h.self,c,u,h):t.validate;const d=useKeyword(o,a,p);const y=o.let("valid");e.block$data(y,validateKeyword);e.ok((r=t.valid)!==null&&r!==void 0?r:y);function validateKeyword(){if(t.errors===false){assignValid();if(t.modifying)modifyData(e);reportErrs((()=>e.error()))}else{const r=t.async?validateAsync():validateSync();if(t.modifying)modifyData(e);reportErrs((()=>addErrs(e,r)))}}function validateAsync(){const e=o.let("ruleErrs",null);o.try((()=>assignValid((0,n._)`await `)),(t=>o.assign(y,false).if((0,n._)`${t} instanceof ${h.ValidationError}`,(()=>o.assign(e,(0,n._)`${t}.errors`)),(()=>o.throw(t)))));return e}function validateSync(){const e=(0,n._)`${d}.errors`;o.assign(e,null);assignValid(n.nil);return e}function assignValid(r=(t.async?(0,n._)`await `:n.nil)){const a=h.opts.passContext?s.default.this:s.default.self;const c=!("compile"in t&&!l||t.schema===false);o.assign(y,(0,n._)`${r}${(0,i.callValidateCode)(e,d,a,c)}`,t.modifying)}function reportErrs(e){var r;o.if((0,n.not)((r=t.valid)!==null&&r!==void 0?r:y),e)}}t.funcKeywordCode=funcKeywordCode;function modifyData(e){const{gen:t,data:r,it:s}=e;t.if(s.parentData,(()=>t.assign(r,(0,n._)`${s.parentData}[${s.parentDataProperty}]`)))}function addErrs(e,t){const{gen:r}=e;r.if((0,n._)`Array.isArray(${t})`,(()=>{r.assign(s.default.vErrors,(0,n._)`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`).assign(s.default.errors,(0,n._)`${s.default.vErrors}.length`);(0,o.extendErrors)(e)}),(()=>e.error()))}function checkAsyncKeyword({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function useKeyword(e,t,r){if(r===undefined)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}function validSchemaType(e,t,r=false){return!t.length||t.some((t=>t==="array"?Array.isArray(e):t==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==t||r&&typeof e=="undefined"))}t.validSchemaType=validSchemaType;function validateKeywordUsage({schema:e,opts:t,self:r,errSchemaPath:n},s,i){if(Array.isArray(s.keyword)?!s.keyword.includes(i):s.keyword!==i){throw new Error("ajv implementation error")}const o=s.dependencies;if(o===null||o===void 0?void 0:o.some((t=>!Object.prototype.hasOwnProperty.call(e,t)))){throw new Error(`parent schema must have dependencies of ${i}: ${o.join(",")}`)}if(s.validateSchema){const o=s.validateSchema(e[i]);if(!o){const e=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(s.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(e);else throw new Error(e)}}}t.validateKeywordUsage=validateKeywordUsage},46391:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=r(84598);const s=r(69068);function getSubschema(e,{keyword:t,schemaProp:r,schema:i,schemaPath:o,errSchemaPath:a,topSchemaRef:c}){if(t!==undefined&&i!==undefined){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(t!==undefined){const i=e.schema[t];return r===undefined?{schema:i,schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:i[r],schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,s.escapeFragment)(r)}`}}if(i!==undefined){if(o===undefined||a===undefined||c===undefined){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema:i,schemaPath:o,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}t.getSubschema=getSubschema;function extendSubschemaData(e,t,{dataProp:r,dataPropType:i,data:o,dataTypes:a,propertyName:c}){if(o!==undefined&&r!==undefined){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen:u}=t;if(r!==undefined){const{errorPath:o,dataPathArr:a,opts:c}=t;const l=u.let("data",(0,n._)`${t.data}${(0,n.getProperty)(r)}`,true);dataContextProps(l);e.errorPath=(0,n.str)`${o}${(0,s.getErrorPath)(r,i,c.jsPropertySyntax)}`;e.parentDataProperty=(0,n._)`${r}`;e.dataPathArr=[...a,e.parentDataProperty]}if(o!==undefined){const t=o instanceof n.Name?o:u.let("data",o,true);dataContextProps(t);if(c!==undefined)e.propertyName=c}if(a)e.dataTypes=a;function dataContextProps(r){e.data=r;e.dataLevel=t.dataLevel+1;e.dataTypes=[];t.definedProperties=new Set;e.parentData=t.data;e.dataNames=[...t.dataNames,r]}}t.extendSubschemaData=extendSubschemaData;function extendSubschemaMode(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:s,allErrors:i}){if(n!==undefined)e.compositeRule=n;if(s!==undefined)e.createErrors=s;if(i!==undefined)e.allErrors=i;e.jtdDiscriminator=t;e.jtdMetadata=r}t.extendSubschemaMode=extendSubschemaMode},5054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(76316);Object.defineProperty(t,"KeywordCxt",{enumerable:true,get:function(){return n.KeywordCxt}});var s=r(84598);Object.defineProperty(t,"_",{enumerable:true,get:function(){return s._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return s.str}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return s.stringify}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return s.nil}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return s.Name}});Object.defineProperty(t,"CodeGen",{enumerable:true,get:function(){return s.CodeGen}});const i=r(57091);const o=r(63796);const a=r(54445);const c=r(35444);const u=r(84598);const l=r(64146);const h=r(47853);const p=r(69068);const d=r(97918);const y=r(53678);const defaultRegExp=(e,t)=>new RegExp(e,t);defaultRegExp.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"];const v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);const b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};const w={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};const S=200;function requiredOptions(e){var t,r,n,s,i,o,a,c,u,l,h,p,d,g,v,b,w,x,O,R,k,A,P,C,$;const T=e.strict;const j=(t=e.code)===null||t===void 0?void 0:t.optimize;const I=j===true||j===undefined?1:j||0;const N=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:defaultRegExp;const M=(s=e.uriResolver)!==null&&s!==void 0?s:y.default;return{strictSchema:(o=(i=e.strictSchema)!==null&&i!==void 0?i:T)!==null&&o!==void 0?o:true,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:T)!==null&&c!==void 0?c:true,strictTypes:(l=(u=e.strictTypes)!==null&&u!==void 0?u:T)!==null&&l!==void 0?l:"log",strictTuples:(p=(h=e.strictTuples)!==null&&h!==void 0?h:T)!==null&&p!==void 0?p:"log",strictRequired:(g=(d=e.strictRequired)!==null&&d!==void 0?d:T)!==null&&g!==void 0?g:false,code:e.code?{...e.code,optimize:I,regExp:N}:{optimize:I,regExp:N},loopRequired:(v=e.loopRequired)!==null&&v!==void 0?v:S,loopEnum:(b=e.loopEnum)!==null&&b!==void 0?b:S,meta:(w=e.meta)!==null&&w!==void 0?w:true,messages:(x=e.messages)!==null&&x!==void 0?x:true,inlineRefs:(O=e.inlineRefs)!==null&&O!==void 0?O:true,schemaId:(R=e.schemaId)!==null&&R!==void 0?R:"$id",addUsedSchema:(k=e.addUsedSchema)!==null&&k!==void 0?k:true,validateSchema:(A=e.validateSchema)!==null&&A!==void 0?A:true,validateFormats:(P=e.validateFormats)!==null&&P!==void 0?P:true,unicodeRegExp:(C=e.unicodeRegExp)!==null&&C!==void 0?C:true,int32range:($=e.int32range)!==null&&$!==void 0?$:true,uriResolver:M}}class Ajv{constructor(e={}){this.schemas={};this.refs={};this.formats={};this._compilations=new Set;this._loading={};this._cache=new Map;e=this.opts={...e,...requiredOptions(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:v,es5:t,lines:r});this.logger=getLogger(e.logger);const n=e.validateFormats;e.validateFormats=false;this.RULES=(0,a.getRules)();checkOptions.call(this,b,e,"NOT SUPPORTED");checkOptions.call(this,w,e,"DEPRECATED","warn");this._metaOpts=getMetaSchemaOptions.call(this);if(e.formats)addInitialFormats.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(e.keywords)addInitialKeywords.call(this,e.keywords);if(typeof e.meta=="object")this.addMetaSchema(e.meta);addInitialSchemas.call(this);e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;if(r==="id"){n={...d};n.id=n.$id;delete n.$id}if(t&&e)this.addMetaSchema(n,n[r],false)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[t]||e:undefined}validate(e,t){let r;if(typeof e=="string"){r=this.getSchema(e);if(!r)throw new Error(`no schema with key or ref "${e}"`)}else{r=this.compile(e)}const n=r(t);if(!("$async"in r))this.errors=r.errors;return n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema:r}=this.opts;return runCompileAsync.call(this,e,t);async function runCompileAsync(e,t){await loadMetaSchema.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||_compileAsync.call(this,r)}async function loadMetaSchema(e){if(e&&!this.getSchema(e)){await runCompileAsync.call(this,{$ref:e},true)}}async function _compileAsync(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;checkLoaded.call(this,t);await loadMissingSchema.call(this,t.missingSchema);return _compileAsync.call(this,e)}}function checkLoaded({missingSchema:e,missingRef:t}){if(this.refs[e]){throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}}async function loadMissingSchema(e){const r=await _loadSchema.call(this,e);if(!this.refs[e])await loadMetaSchema.call(this,r.$schema);if(!this.refs[e])this.addSchema(r,e,t)}async function _loadSchema(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,undefined,r,n);return this}let s;if(typeof e==="object"){const{schemaId:t}=this.opts;s=e[t];if(s!==undefined&&typeof s!="string"){throw new Error(`schema ${t} must be string`)}}t=(0,l.normalizeId)(t||s);this._checkUnique(t);this.schemas[t]=this._addSchema(e,r,t,n,true);return this}addMetaSchema(e,t,r=this.opts.validateSchema){this.addSchema(e,t,true,r);return this}validateSchema(e,t){if(typeof e=="boolean")return true;let r;r=e.$schema;if(r!==undefined&&typeof r!="string"){throw new Error("$schema must be a string")}r=r||this.opts.defaultMeta||this.defaultMeta();if(!r){this.logger.warn("meta-schema not available");this.errors=null;return true}const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(e);else throw new Error(e)}return n}getSchema(e){let t;while(typeof(t=getSchEnv.call(this,e))=="string")e=t;if(t===undefined){const{schemaId:r}=this.opts;const n=new c.SchemaEnv({schema:{},schemaId:r});t=c.resolveSchema.call(this,n,e);if(!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp){this._removeAllSchemas(this.schemas,e);this._removeAllSchemas(this.refs,e);return this}switch(typeof e){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const t=getSchEnv.call(this,e);if(typeof t=="object")this._cache.delete(t.schema);delete this.schemas[e];delete this.refs[e];return this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];if(r){r=(0,l.normalizeId)(r);delete this.schemas[r];delete this.refs[r]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if(typeof e=="string"){r=e;if(typeof t=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");t.keyword=r}}else if(typeof e=="object"&&t===undefined){t=e;r=t.keyword;if(Array.isArray(r)&&!r.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}checkKeyword.call(this,r,t);if(!t){(0,p.eachItem)(r,(e=>addRule.call(this,e)));return this}keywordMetaschema.call(this,t);const n={...t,type:(0,h.getJSONTypes)(t.type),schemaType:(0,h.getJSONTypes)(t.schemaType)};(0,p.eachItem)(r,n.type.length===0?e=>addRule.call(this,e,n):e=>n.type.forEach((t=>addRule.call(this,e,n,t))));return this}getKeyword(e){const t=this.RULES.all[e];return typeof t=="object"?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e];delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));if(t>=0)r.rules.splice(t,1)}return this}addFormat(e,t){if(typeof t=="string")t=new RegExp(t);this.formats[e]=t;return this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){if(!e||e.length===0)return"No errors";return e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r))}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let s=e;for(const e of t)s=s[e];for(const e in r){const t=r[e];if(typeof t!="object")continue;const{$data:n}=t.definition;const i=s[e];if(n&&i)s[e]=schemaOrData(i)}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];if(!t||t.test(r)){if(typeof n=="string"){delete e[r]}else if(n&&!n.meta){this._cache.delete(n.schema);delete e[r]}}}}_addSchema(e,t,r,n=this.opts.validateSchema,s=this.opts.addUsedSchema){let i;const{schemaId:o}=this.opts;if(typeof e=="object"){i=e[o]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(a!==undefined)return a;r=(0,l.normalizeId)(i||r);const u=l.getSchemaRefs.call(this,e,r);a=new c.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:r,localRefs:u});this._cache.set(a.schema,a);if(s&&!r.startsWith("#")){if(r)this._checkUnique(r);this.refs[r]=a}if(n)this.validateSchema(e,true);return a}_checkUnique(e){if(this.schemas[e]||this.refs[e]){throw new Error(`schema with key or id "${e}" already exists`)}}_compileSchemaEnv(e){if(e.meta)this._compileMetaSchema(e);else c.compileSchema.call(this,e);if(!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}t["default"]=Ajv;Ajv.ValidationError=i.default;Ajv.MissingRefError=o.default;function checkOptions(e,t,r,n="error"){for(const s in e){const i=s;if(i in t)this.logger[n](`${r}: option ${s}. ${e[i]}`)}}function getSchEnv(e){e=(0,l.normalizeId)(e);return this.schemas[e]||this.refs[e]}function addInitialSchemas(){const e=this.opts.schemas;if(!e)return;if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function addInitialFormats(){for(const e in this.opts.formats){const t=this.opts.formats[e];if(t)this.addFormat(e,t)}}function addInitialKeywords(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];if(!r.keyword)r.keyword=t;this.addKeyword(r)}}function getMetaSchemaOptions(){const e={...this.opts};for(const t of g)delete e[t];return e}const x={log(){},warn(){},error(){}};function getLogger(e){if(e===false)return x;if(e===undefined)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}const O=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(e,t){const{RULES:r}=this;(0,p.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.test(e))throw new Error(`Keyword ${e} has invalid name`)}));if(!t)return;if(t.$data&&!("code"in t||"validate"in t)){throw new Error('$data keyword must have "code" or "validate" function')}}function addRule(e,t,r){var n;const s=t===null||t===void 0?void 0:t.post;if(r&&s)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:i}=this;let o=s?i.post:i.rules.find((({type:e})=>e===r));if(!o){o={type:r,rules:[]};i.rules.push(o)}i.keywords[e]=true;if(!t)return;const a={keyword:e,definition:{...t,type:(0,h.getJSONTypes)(t.type),schemaType:(0,h.getJSONTypes)(t.schemaType)}};if(t.before)addBeforeRule.call(this,o,a,t.before);else o.rules.push(a);i.all[e]=a;(n=t.implements)===null||n===void 0?void 0:n.forEach((e=>this.addKeyword(e)))}function addBeforeRule(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));if(n>=0){e.rules.splice(n,0,t)}else{e.rules.push(t);this.logger.warn(`rule ${r} is not defined`)}}function keywordMetaschema(e){let{metaSchema:t}=e;if(t===undefined)return;if(e.$data&&this.opts.$data)t=schemaOrData(t);e.validateSchema=this.compile(t,true)}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function schemaOrData(e){return{anyOf:[e,R]}}},4461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(51230);n.code='require("ajv/dist/runtime/equal").default';t["default"]=n},17382:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function ucs2length(e){const t=e.length;let r=0;let n=0;let s;while(n<t){r++;s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<t){s=e.charCodeAt(n);if((s&64512)===56320)n++}}return r}t["default"]=ucs2length;ucs2length.code='require("ajv/dist/runtime/ucs2length").default'},53678:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(14618);n.code='require("ajv/dist/runtime/uri").default';t["default"]=n},57091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class ValidationError extends Error{constructor(e){super("validation failed");this.errors=e;this.ajv=this.validation=true}}t["default"]=ValidationError},81208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateAdditionalItems=void 0;const n=r(84598);const s=r(69068);const i={message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`};const o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:i,code(e){const{parentSchema:t,it:r}=e;const{items:n}=t;if(!Array.isArray(n)){(0,s.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}validateAdditionalItems(e,n)}};function validateAdditionalItems(e,t){const{gen:r,schema:i,data:o,keyword:a,it:c}=e;c.items=true;const u=r.const("len",(0,n._)`${o}.length`);if(i===false){e.setParams({len:t.length});e.pass((0,n._)`${u} <= ${t.length}`)}else if(typeof i=="object"&&!(0,s.alwaysValidSchema)(c,i)){const s=r.var("valid",(0,n._)`${u} <= ${t.length}`);r.if((0,n.not)(s),(()=>validateItems(s)));e.ok(s)}function validateItems(i){r.forRange("i",t.length,u,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:s.Type.Num},i);if(!c.allErrors)r.if((0,n.not)(i),(()=>r.break()))}))}}t.validateAdditionalItems=validateAdditionalItems;t["default"]=o},93849:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(18572);const s=r(84598);const i=r(21080);const o=r(69068);const a={message:"must NOT have additional properties",params:({params:e})=>(0,s._)`{additionalProperty: ${e.additionalProperty}}`};const c={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:true,trackErrors:true,error:a,code(e){const{gen:t,schema:r,parentSchema:a,data:c,errsCount:u,it:l}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:h,opts:p}=l;l.props=true;if(p.removeAdditional!=="all"&&(0,o.alwaysValidSchema)(l,r))return;const d=(0,n.allSchemaProperties)(a.properties);const y=(0,n.allSchemaProperties)(a.patternProperties);checkAdditionalProperties();e.ok((0,s._)`${u} === ${i.default.errors}`);function checkAdditionalProperties(){t.forIn("key",c,(e=>{if(!d.length&&!y.length)additionalPropertyCode(e);else t.if(isAdditional(e),(()=>additionalPropertyCode(e)))}))}function isAdditional(r){let i;if(d.length>8){const e=(0,o.schemaRefOrVal)(l,a.properties,"properties");i=(0,n.isOwnProperty)(t,e,r)}else if(d.length){i=(0,s.or)(...d.map((e=>(0,s._)`${r} === ${e}`)))}else{i=s.nil}if(y.length){i=(0,s.or)(i,...y.map((t=>(0,s._)`${(0,n.usePattern)(e,t)}.test(${r})`)))}return(0,s.not)(i)}function deleteAdditional(e){t.code((0,s._)`delete ${c}[${e}]`)}function additionalPropertyCode(n){if(p.removeAdditional==="all"||p.removeAdditional&&r===false){deleteAdditional(n);return}if(r===false){e.setParams({additionalProperty:n});e.error();if(!h)t.break();return}if(typeof r=="object"&&!(0,o.alwaysValidSchema)(l,r)){const r=t.name("valid");if(p.removeAdditional==="failing"){applyAdditionalSchema(n,r,false);t.if((0,s.not)(r),(()=>{e.reset();deleteAdditional(n)}))}else{applyAdditionalSchema(n,r);if(!h)t.if((0,s.not)(r),(()=>t.break()))}}}function applyAdditionalSchema(t,r,n){const s={keyword:"additionalProperties",dataProp:t,dataPropType:o.Type.Str};if(n===false){Object.assign(s,{compositeRule:true,createErrors:false,allErrors:false})}e.subschema(s,r)}}};t["default"]=c},82799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(69068);const s={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(s,t))return;const o=e.subschema({keyword:"allOf",schemaProp:r},i);e.ok(i);e.mergeEvaluated(o)}))}};t["default"]=s},10048:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(18572);const s={keyword:"anyOf",schemaType:"array",trackErrors:true,code:n.validateUnion,error:{message:"must match a schema in anyOf"}};t["default"]=s},19152:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s=r(69068);const i={message:({params:{min:e,max:t}})=>t===undefined?(0,n.str)`must contain at least ${e} valid item(s)`:(0,n.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===undefined?(0,n._)`{minContains: ${e}}`:(0,n._)`{minContains: ${e}, maxContains: ${t}}`};const o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:i,code(e){const{gen:t,schema:r,parentSchema:i,data:o,it:a}=e;let c;let u;const{minContains:l,maxContains:h}=i;if(a.opts.next){c=l===undefined?1:l;u=h}else{c=1}const p=t.const("len",(0,n._)`${o}.length`);e.setParams({min:c,max:u});if(u===undefined&&c===0){(0,s.checkStrictMode)(a,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(u!==undefined&&c>u){(0,s.checkStrictMode)(a,`"minContains" > "maxContains" is always invalid`);e.fail();return}if((0,s.alwaysValidSchema)(a,r)){let t=(0,n._)`${p} >= ${c}`;if(u!==undefined)t=(0,n._)`${t} && ${p} <= ${u}`;e.pass(t);return}a.items=true;const d=t.name("valid");if(u===undefined&&c===1){validateItems(d,(()=>t.if(d,(()=>t.break()))))}else if(c===0){t.let(d,true);if(u!==undefined)t.if((0,n._)`${o}.length > 0`,validateItemsWithCount)}else{t.let(d,false);validateItemsWithCount()}e.result(d,(()=>e.reset()));function validateItemsWithCount(){const e=t.name("_valid");const r=t.let("count",0);validateItems(e,(()=>t.if(e,(()=>checkLimits(r)))))}function validateItems(r,n){t.forRange("i",0,p,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:s.Type.Num,compositeRule:true},r);n()}))}function checkLimits(e){t.code((0,n._)`${e}++`);if(u===undefined){t.if((0,n._)`${e} >= ${c}`,(()=>t.assign(d,true).break()))}else{t.if((0,n._)`${e} > ${u}`,(()=>t.assign(d,false).break()));if(c===1)t.assign(d,true);else t.if((0,n._)`${e} >= ${c}`,(()=>t.assign(d,true)))}}}};t["default"]=o},6569:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=r(84598);const s=r(69068);const i=r(18572);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const s=t===1?"property":"properties";return(0,n.str)`must have ${s} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:s}})=>(0,n._)`{property: ${e},
6
6
  missingProperty: ${s},
7
7
  depsCount: ${t},
8
8
  deps: ${r}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=splitDependencies(e);validatePropertyDeps(e,t);validateSchemaDeps(e,r)}};function splitDependencies({schema:e}){const t={};const r={};for(const n in e){if(n==="__proto__")continue;const s=Array.isArray(e[n])?t:r;s[n]=e[n]}return[t,r]}function validatePropertyDeps(e,t=e.schema){const{gen:r,data:s,it:o}=e;if(Object.keys(t).length===0)return;const a=r.let("missing");for(const c in t){const u=t[c];if(u.length===0)continue;const l=(0,i.propertyInData)(r,s,c,o.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")});if(o.allErrors){r.if(l,(()=>{for(const t of u){(0,i.checkReportMissingProp)(e,t)}}))}else{r.if((0,n._)`${l} && (${(0,i.checkMissingProp)(e,u,a)})`);(0,i.reportMissingProp)(e,a);r.else()}}}t.validatePropertyDeps=validatePropertyDeps;function validateSchemaDeps(e,t=e.schema){const{gen:r,data:n,keyword:o,it:a}=e;const c=r.name("valid");for(const u in t){if((0,s.alwaysValidSchema)(a,t[u]))continue;r.if((0,i.propertyInData)(r,n,u,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:o,schemaProp:u},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,true)));e.ok(c)}}t.validateSchemaDeps=validateSchemaDeps;t["default"]=o},94083:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s=r(69068);const i={message:({params:e})=>(0,n.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,n._)`{failingKeyword: ${e.ifClause}}`};const o={keyword:"if",schemaType:["object","boolean"],trackErrors:true,error:i,code(e){const{gen:t,parentSchema:r,it:i}=e;if(r.then===undefined&&r.else===undefined){(0,s.checkStrictMode)(i,'"if" without "then" and "else" is ignored')}const o=hasSchema(i,"then");const a=hasSchema(i,"else");if(!o&&!a)return;const c=t.let("valid",true);const u=t.name("_valid");validateIf();e.reset();if(o&&a){const r=t.let("ifClause");e.setParams({ifClause:r});t.if(u,validateClause("then",r),validateClause("else",r))}else if(o){t.if(u,validateClause("then"))}else{t.if((0,n.not)(u),validateClause("else"))}e.pass(c,(()=>e.error(true)));function validateIf(){const t=e.subschema({keyword:"if",compositeRule:true,createErrors:false,allErrors:false},u);e.mergeEvaluated(t)}function validateClause(r,s){return()=>{const i=e.subschema({keyword:r},u);t.assign(c,u);e.mergeValidEvaluated(i,c);if(s)t.assign(s,(0,n._)`${r}`);else e.setParams({ifClause:r})}}}};function hasSchema(e,t){const r=e.schema[t];return r!==undefined&&!(0,s.alwaysValidSchema)(e,r)}t["default"]=o},96500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(81208);const s=r(77335);const i=r(46052);const o=r(83416);const a=r(19152);const c=r(6569);const u=r(17759);const l=r(93849);const h=r(78554);const p=r(75364);const d=r(76930);const y=r(10048);const g=r(8067);const v=r(82799);const b=r(94083);const w=r(9405);function getApplicator(e=false){const t=[d.default,y.default,g.default,v.default,b.default,w.default,u.default,l.default,c.default,h.default,p.default];if(e)t.push(s.default,o.default);else t.push(n.default,i.default);t.push(a.default);return t}t["default"]=getApplicator},46052:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateTuple=void 0;const n=r(84598);const s=r(69068);const i=r(18572);const o={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return validateTuple(e,"additionalItems",t);r.items=true;if((0,s.alwaysValidSchema)(r,t))return;e.ok((0,i.validateArray)(e))}};function validateTuple(e,t,r=e.schema){const{gen:i,parentSchema:o,data:a,keyword:c,it:u}=e;checkStrictTuple(o);if(u.opts.unevaluated&&r.length&&u.items!==true){u.items=s.mergeEvaluated.items(i,r.length,u.items)}const l=i.name("valid");const h=i.const("len",(0,n._)`${a}.length`);r.forEach(((t,r)=>{if((0,s.alwaysValidSchema)(u,t))return;i.if((0,n._)`${h} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},l)));e.ok(l)}));function checkStrictTuple(e){const{opts:n,errSchemaPath:i}=u;const o=r.length;const a=o===e.minItems&&(o===e.maxItems||e[t]===false);if(n.strictTuples&&!a){const e=`"${c}" is ${o}-tuple, but minItems or maxItems/${t} are not specified or different at path "${i}"`;(0,s.checkStrictMode)(u,e,n.strictTuples)}}}t.validateTuple=validateTuple;t["default"]=o},83416:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s=r(69068);const i=r(18572);const o=r(81208);const a={message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`};const c={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:a,code(e){const{schema:t,parentSchema:r,it:n}=e;const{prefixItems:a}=r;n.items=true;if((0,s.alwaysValidSchema)(n,t))return;if(a)(0,o.validateAdditionalItems)(e,a);else e.ok((0,i.validateArray)(e))}};t["default"]=c},76930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(69068);const s={keyword:"not",schemaType:["object","boolean"],trackErrors:true,code(e){const{gen:t,schema:r,it:s}=e;if((0,n.alwaysValidSchema)(s,r)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:true,createErrors:false,allErrors:false},i);e.failResult(i,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t["default"]=s},8067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s=r(69068);const i={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,n._)`{passingSchemas: ${e.passing}}`};const o={keyword:"oneOf",schemaType:"array",trackErrors:true,error:i,code(e){const{gen:t,schema:r,parentSchema:i,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&i.discriminator)return;const a=r;const c=t.let("valid",false);const u=t.let("passing",null);const l=t.name("_valid");e.setParams({passing:u});t.block(validateOneOf);e.result(c,(()=>e.reset()),(()=>e.error(true)));function validateOneOf(){a.forEach(((r,i)=>{let a;if((0,s.alwaysValidSchema)(o,r)){t.var(l,true)}else{a=e.subschema({keyword:"oneOf",schemaProp:i,compositeRule:true},l)}if(i>0){t.if((0,n._)`${l} && ${c}`).assign(c,false).assign(u,(0,n._)`[${u}, ${i}]`).else()}t.if(l,(()=>{t.assign(c,true);t.assign(u,i);if(a)e.mergeEvaluated(a,n.Name)}))}))}}};t["default"]=o},75364:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(18572);const s=r(84598);const i=r(69068);const o=r(69068);const a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:a,parentSchema:c,it:u}=e;const{opts:l}=u;const h=(0,n.allSchemaProperties)(r);const p=h.filter((e=>(0,i.alwaysValidSchema)(u,r[e])));if(h.length===0||p.length===h.length&&(!u.opts.unevaluated||u.props===true)){return}const d=l.strictSchema&&!l.allowMatchingProperties&&c.properties;const y=t.name("valid");if(u.props!==true&&!(u.props instanceof s.Name)){u.props=(0,o.evaluatedPropsToName)(t,u.props)}const{props:g}=u;validatePatternProperties();function validatePatternProperties(){for(const e of h){if(d)checkMatchingProperties(e);if(u.allErrors){validateProperties(e)}else{t.var(y,true);validateProperties(e);t.if(y)}}}function checkMatchingProperties(e){for(const t in d){if(new RegExp(e).test(t)){(0,i.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}}}function validateProperties(r){t.forIn("key",a,(i=>{t.if((0,s._)`${(0,n.usePattern)(e,r)}.test(${i})`,(()=>{const n=p.includes(r);if(!n){e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:i,dataPropType:o.Type.Str},y)}if(u.opts.unevaluated&&g!==true){t.assign((0,s._)`${g}[${i}]`,true)}else if(!n&&!u.allErrors){t.if((0,s.not)(y),(()=>t.break()))}}))}))}}};t["default"]=a},77335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(46052);const s={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t["default"]=s},78554:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(76316);const s=r(18572);const i=r(69068);const o=r(93849);const a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:a,data:c,it:u}=e;if(u.opts.removeAdditional==="all"&&a.additionalProperties===undefined){o.default.code(new n.KeywordCxt(u,o.default,"additionalProperties"))}const l=(0,s.allSchemaProperties)(r);for(const e of l){u.definedProperties.add(e)}if(u.opts.unevaluated&&l.length&&u.props!==true){u.props=i.mergeEvaluated.props(t,(0,i.toHash)(l),u.props)}const h=l.filter((e=>!(0,i.alwaysValidSchema)(u,r[e])));if(h.length===0)return;const p=t.name("valid");for(const r of h){if(hasDefault(r)){applyPropertySchema(r)}else{t.if((0,s.propertyInData)(t,c,r,u.opts.ownProperties));applyPropertySchema(r);if(!u.allErrors)t.else().var(p,true);t.endIf()}e.it.definedProperties.add(r);e.ok(p)}function hasDefault(e){return u.opts.useDefaults&&!u.compositeRule&&r[e].default!==undefined}function applyPropertySchema(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},p)}}};t["default"]=a},17759:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s=r(69068);const i={message:"property name must be valid",params:({params:e})=>(0,n._)`{propertyName: ${e.propertyName}}`};const o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:i,code(e){const{gen:t,schema:r,data:i,it:o}=e;if((0,s.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",i,(r=>{e.setParams({propertyName:r});e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:true},a);t.if((0,n.not)(a),(()=>{e.error(true);if(!o.allErrors)t.break()}))}));e.ok(a)}};t["default"]=o},9405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(69068);const s={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){if(t.if===undefined)(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t["default"]=s},18572:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const n=r(84598);const s=r(69068);const i=r(21080);const o=r(69068);function checkReportMissingProp(e,t){const{gen:r,data:s,it:i}=e;r.if(noPropertyInData(r,s,t,i.opts.ownProperties),(()=>{e.setParams({missingProperty:(0,n._)`${t}`},true);e.error()}))}t.checkReportMissingProp=checkReportMissingProp;function checkMissingProp({gen:e,data:t,it:{opts:r}},s,i){return(0,n.or)(...s.map((s=>(0,n.and)(noPropertyInData(e,t,s,r.ownProperties),(0,n._)`${i} = ${s}`))))}t.checkMissingProp=checkMissingProp;function reportMissingProp(e,t){e.setParams({missingProperty:t},true);e.error()}t.reportMissingProp=reportMissingProp;function hasPropFunc(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,n._)`Object.prototype.hasOwnProperty`})}t.hasPropFunc=hasPropFunc;function isOwnProperty(e,t,r){return(0,n._)`${hasPropFunc(e)}.call(${t}, ${r})`}t.isOwnProperty=isOwnProperty;function propertyInData(e,t,r,s){const i=(0,n._)`${t}${(0,n.getProperty)(r)} !== undefined`;return s?(0,n._)`${i} && ${isOwnProperty(e,t,r)}`:i}t.propertyInData=propertyInData;function noPropertyInData(e,t,r,s){const i=(0,n._)`${t}${(0,n.getProperty)(r)} === undefined`;return s?(0,n.or)(i,(0,n.not)(isOwnProperty(e,t,r))):i}t.noPropertyInData=noPropertyInData;function allSchemaProperties(e){return e?Object.keys(e).filter((e=>e!=="__proto__")):[]}t.allSchemaProperties=allSchemaProperties;function schemaProperties(e,t){return allSchemaProperties(t).filter((r=>!(0,s.alwaysValidSchema)(e,t[r])))}t.schemaProperties=schemaProperties;function callValidateCode({schemaCode:e,data:t,it:{gen:r,topSchemaRef:s,schemaPath:o,errorPath:a},it:c},u,l,h){const p=h?(0,n._)`${e}, ${t}, ${s}${o}`:t;const d=[[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,a)],[i.default.parentData,c.parentData],[i.default.parentDataProperty,c.parentDataProperty],[i.default.rootData,i.default.rootData]];if(c.opts.dynamicRef)d.push([i.default.dynamicAnchors,i.default.dynamicAnchors]);const y=(0,n._)`${p}, ${r.object(...d)}`;return l!==n.nil?(0,n._)`${u}.call(${l}, ${y})`:(0,n._)`${u}(${y})`}t.callValidateCode=callValidateCode;const a=(0,n._)`new RegExp`;function usePattern({gen:e,it:{opts:t}},r){const s=t.unicodeRegExp?"u":"";const{regExp:i}=t.code;const c=i(r,s);return e.scopeValue("pattern",{key:c.toString(),ref:c,code:(0,n._)`${i.code==="new RegExp"?a:(0,o.useFunc)(e,i)}(${r}, ${s})`})}t.usePattern=usePattern;function validateArray(e){const{gen:t,data:r,keyword:i,it:o}=e;const a=t.name("valid");if(o.allErrors){const e=t.let("valid",true);validateItems((()=>t.assign(e,false)));return e}t.var(a,true);validateItems((()=>t.break()));return a;function validateItems(o){const c=t.const("len",(0,n._)`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:i,dataProp:r,dataPropType:s.Type.Num},a);t.if((0,n.not)(a),o)}))}}t.validateArray=validateArray;function validateUnion(e){const{gen:t,schema:r,keyword:i,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=r.some((e=>(0,s.alwaysValidSchema)(o,e)));if(a&&!o.opts.unevaluated)return;const c=t.let("valid",false);const u=t.name("_valid");t.block((()=>r.forEach(((r,s)=>{const o=e.subschema({keyword:i,schemaProp:s,compositeRule:true},u);t.assign(c,(0,n._)`${c} || ${u}`);const a=e.mergeValidEvaluated(o,u);if(!a)t.if((0,n.not)(c))}))));e.result(c,(()=>e.reset()),(()=>e.error(true)))}t.validateUnion=validateUnion},14629:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t["default"]=r},63488:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(14629);const s=r(67133);const i=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,s.default];t["default"]=i},67133:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.callRef=t.getValidate=void 0;const n=r(63796);const s=r(18572);const i=r(84598);const o=r(21080);const a=r(35444);const c=r(69068);const u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:s}=e;const{baseId:o,schemaEnv:c,validateName:u,opts:l,self:h}=s;const{root:p}=c;if((r==="#"||r==="#/")&&o===p.baseId)return callRootRef();const d=a.resolveRef.call(h,p,o,r);if(d===undefined)throw new n.default(s.opts.uriResolver,o,r);if(d instanceof a.SchemaEnv)return callValidate(d);return inlineRefSchema(d);function callRootRef(){if(c===p)return callRef(e,u,c,c.$async);const r=t.scopeValue("root",{ref:p});return callRef(e,(0,i._)`${r}.validate`,p,p.$async)}function callValidate(t){const r=getValidate(e,t);callRef(e,r,t,t.$async)}function inlineRefSchema(n){const s=t.scopeValue("schema",l.code.source===true?{ref:n,code:(0,i.stringify)(n)}:{ref:n});const o=t.name("valid");const a=e.subschema({schema:n,dataTypes:[],schemaPath:i.nil,topSchemaRef:s,errSchemaPath:r},o);e.mergeEvaluated(a);e.ok(o)}}};function getValidate(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,i._)`${r.scopeValue("wrapper",{ref:t})}.validate`}t.getValidate=getValidate;function callRef(e,t,r,n){const{gen:a,it:u}=e;const{allErrors:l,schemaEnv:h,opts:p}=u;const d=p.passContext?o.default.this:i.nil;if(n)callAsyncRef();else callSyncRef();function callAsyncRef(){if(!h.$async)throw new Error("async schema referenced by sync schema");const r=a.let("valid");a.try((()=>{a.code((0,i._)`await ${(0,s.callValidateCode)(e,t,d)}`);addEvaluatedFrom(t);if(!l)a.assign(r,true)}),(e=>{a.if((0,i._)`!(${e} instanceof ${u.ValidationError})`,(()=>a.throw(e)));addErrorsFrom(e);if(!l)a.assign(r,false)}));e.ok(r)}function callSyncRef(){e.result((0,s.callValidateCode)(e,t,d),(()=>addEvaluatedFrom(t)),(()=>addErrorsFrom(t)))}function addErrorsFrom(e){const t=(0,i._)`${e}.errors`;a.assign(o.default.vErrors,(0,i._)`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`);a.assign(o.default.errors,(0,i._)`${o.default.vErrors}.length`)}function addEvaluatedFrom(e){var t;if(!u.opts.unevaluated)return;const n=(t=r===null||r===void 0?void 0:r.validate)===null||t===void 0?void 0:t.evaluated;if(u.props!==true){if(n&&!n.dynamicProps){if(n.props!==undefined){u.props=c.mergeEvaluated.props(a,n.props,u.props)}}else{const t=a.var("props",(0,i._)`${e}.evaluated.props`);u.props=c.mergeEvaluated.props(a,t,u.props,i.Name)}}if(u.items!==true){if(n&&!n.dynamicItems){if(n.items!==undefined){u.items=c.mergeEvaluated.items(a,n.items,u.items)}}else{const t=a.var("items",(0,i._)`${e}.evaluated.items`);u.items=c.mergeEvaluated.items(a,t,u.items,i.Name)}}}}t.callRef=callRef;t["default"]=u},70263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s=r(94415);const i=r(35444);const o=r(69068);const a={message:({params:{discrError:e,tagName:t}})=>e===s.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,n._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};const c={keyword:"discriminator",type:"object",schemaType:"object",error:a,code(e){const{gen:t,data:r,schema:a,parentSchema:c,it:u}=e;const{oneOf:l}=c;if(!u.opts.discriminator){throw new Error("discriminator: requires discriminator option")}const h=a.propertyName;if(typeof h!="string")throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const p=t.let("valid",false);const d=t.const("tag",(0,n._)`${r}${(0,n.getProperty)(h)}`);t.if((0,n._)`typeof ${d} == "string"`,(()=>validateMapping()),(()=>e.error(false,{discrError:s.DiscrError.Tag,tag:d,tagName:h})));e.ok(p);function validateMapping(){const r=getMapping();t.if(false);for(const e in r){t.elseIf((0,n._)`${d} === ${e}`);t.assign(p,applyTagSchema(r[e]))}t.else();e.error(false,{discrError:s.DiscrError.Mapping,tag:d,tagName:h});t.endIf()}function applyTagSchema(r){const s=t.name("valid");const i=e.subschema({keyword:"oneOf",schemaProp:r},s);e.mergeEvaluated(i,n.Name);return s}function getMapping(){var e;const t={};const r=hasRequired(c);let n=true;for(let t=0;t<l.length;t++){let s=l[t];if((s===null||s===void 0?void 0:s.$ref)&&!(0,o.schemaHasRulesButRef)(s,u.self.RULES)){s=i.resolveRef.call(u.self,u.schemaEnv.root,u.baseId,s===null||s===void 0?void 0:s.$ref);if(s instanceof i.SchemaEnv)s=s.schema}const a=(e=s===null||s===void 0?void 0:s.properties)===null||e===void 0?void 0:e[h];if(typeof a!="object"){throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${h}"`)}n=n&&(r||hasRequired(s));addMappings(a,t)}if(!n)throw new Error(`discriminator: "${h}" must be required`);return t;function hasRequired({required:e}){return Array.isArray(e)&&e.includes(h)}function addMappings(e,t){if(e.const){addMapping(e.const,t)}else if(e.enum){for(const r of e.enum){addMapping(r,t)}}else{throw new Error(`discriminator: "properties/${h}" must have "const" or "enum"`)}}function addMapping(e,r){if(typeof e!="string"||e in t){throw new Error(`discriminator: "${h}" values must be unique strings`)}t[e]=r}}}};t["default"]=c},94415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiscrError=void 0;var r;(function(e){e["Tag"]="tag";e["Mapping"]="mapping"})(r=t.DiscrError||(t.DiscrError={}))},41002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(63488);const s=r(61076);const i=r(96500);const o=r(20655);const a=r(54424);const c=[n.default,s.default,(0,i.default)(),o.default,a.metadataVocabulary,a.contentVocabulary];t["default"]=c},60170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s={message:({schemaCode:e})=>(0,n.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,n._)`{format: ${e}}`};const i={keyword:"format",type:["number","string"],schemaType:"string",$data:true,error:s,code(e,t){const{gen:r,data:s,$data:i,schema:o,schemaCode:a,it:c}=e;const{opts:u,errSchemaPath:l,schemaEnv:h,self:p}=c;if(!u.validateFormats)return;if(i)validate$DataFormat();else validateFormat();function validate$DataFormat(){const i=r.scopeValue("formats",{ref:p.formats,code:u.code.formats});const o=r.const("fDef",(0,n._)`${i}[${a}]`);const c=r.let("fType");const l=r.let("format");r.if((0,n._)`typeof ${o} == "object" && !(${o} instanceof RegExp)`,(()=>r.assign(c,(0,n._)`${o}.type || "string"`).assign(l,(0,n._)`${o}.validate`)),(()=>r.assign(c,(0,n._)`"string"`).assign(l,o)));e.fail$data((0,n.or)(unknownFmt(),invalidFmt()));function unknownFmt(){if(u.strictSchema===false)return n.nil;return(0,n._)`${a} && !${l}`}function invalidFmt(){const e=h.$async?(0,n._)`(${o}.async ? await ${l}(${s}) : ${l}(${s}))`:(0,n._)`${l}(${s})`;const r=(0,n._)`(typeof ${l} == "function" ? ${e} : ${l}.test(${s}))`;return(0,n._)`${l} && ${l} !== true && ${c} === ${t} && !${r}`}}function validateFormat(){const i=p.formats[o];if(!i){unknownFormat();return}if(i===true)return;const[a,c,d]=getFormat(i);if(a===t)e.pass(validCondition());function unknownFormat(){if(u.strictSchema===false){p.logger.warn(unknownMsg());return}throw new Error(unknownMsg());function unknownMsg(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function getFormat(e){const t=e instanceof RegExp?(0,n.regexpCode)(e):u.code.formats?(0,n._)`${u.code.formats}${(0,n.getProperty)(o)}`:undefined;const s=r.scopeValue("formats",{key:o,ref:e,code:t});if(typeof e=="object"&&!(e instanceof RegExp)){return[e.type||"string",e.validate,(0,n._)`${s}.validate`]}return["string",e,s]}function validCondition(){if(typeof i=="object"&&!(i instanceof RegExp)&&i.async){if(!h.$async)throw new Error("async format in sync schema");return(0,n._)`await ${d}(${s})`}return typeof c=="function"?(0,n._)`${d}(${s})`:(0,n._)`${d}.test(${s})`}}}};t["default"]=i},20655:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(60170);const s=[n.default];t["default"]=s},54424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.contentVocabulary=t.metadataVocabulary=void 0;t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},7964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s=r(69068);const i=r(4461);const o={message:"must be equal to constant",params:({schemaCode:e})=>(0,n._)`{allowedValue: ${e}}`};const a={keyword:"const",$data:true,error:o,code(e){const{gen:t,data:r,$data:o,schemaCode:a,schema:c}=e;if(o||c&&typeof c=="object"){e.fail$data((0,n._)`!${(0,s.useFunc)(t,i.default)}(${r}, ${a})`)}else{e.fail((0,n._)`${c} !== ${r}`)}}};t["default"]=a},43575:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s=r(69068);const i=r(4461);const o={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,n._)`{allowedValues: ${e}}`};const a={keyword:"enum",schemaType:"array",$data:true,error:o,code(e){const{gen:t,data:r,$data:o,schema:a,schemaCode:c,it:u}=e;if(!o&&a.length===0)throw new Error("enum must have non-empty array");const l=a.length>=u.opts.loopEnum;let h;const getEql=()=>h!==null&&h!==void 0?h:h=(0,s.useFunc)(t,i.default);let p;if(l||o){p=t.let("valid");e.block$data(p,loopEnum)}else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);p=(0,n.or)(...a.map(((t,r)=>equalCode(e,r))))}e.pass(p);function loopEnum(){t.assign(p,false);t.forOf("v",c,(e=>t.if((0,n._)`${getEql()}(${r}, ${e})`,(()=>t.assign(p,true).break()))))}function equalCode(e,t){const s=a[t];return typeof s==="object"&&s!==null?(0,n._)`${getEql()}(${r}, ${e}[${t}])`:(0,n._)`${r} === ${s}`}}};t["default"]=a},61076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(35646);const s=r(86325);const i=r(66976);const o=r(9258);const a=r(4160);const c=r(87177);const u=r(21612);const l=r(27659);const h=r(7964);const p=r(43575);const d=[n.default,s.default,i.default,o.default,a.default,c.default,u.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},h.default,p.default];t["default"]=d},21612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,n.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`};const i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:true,error:s,code(e){const{keyword:t,data:r,schemaCode:s}=e;const i=t==="maxItems"?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`${r}.length ${i} ${s}`)}};t["default"]=i},66976:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s=r(69068);const i=r(17382);const o={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,n.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`};const a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:true,error:o,code(e){const{keyword:t,data:r,schemaCode:o,it:a}=e;const c=t==="maxLength"?n.operators.GT:n.operators.LT;const u=a.opts.unicode===false?(0,n._)`${r}.length`:(0,n._)`${(0,s.useFunc)(e.gen,i.default)}(${r})`;e.fail$data((0,n._)`${u} ${c} ${o}`)}};t["default"]=a},35646:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s=n.operators;const i={maximum:{okStr:"<=",ok:s.LTE,fail:s.GT},minimum:{okStr:">=",ok:s.GTE,fail:s.LT},exclusiveMaximum:{okStr:"<",ok:s.LT,fail:s.GTE},exclusiveMinimum:{okStr:">",ok:s.GT,fail:s.LTE}};const o={message:({keyword:e,schemaCode:t})=>(0,n.str)`must be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,n._)`{comparison: ${i[e].okStr}, limit: ${t}}`};const a={keyword:Object.keys(i),type:"number",schemaType:"number",$data:true,error:o,code(e){const{keyword:t,data:r,schemaCode:s}=e;e.fail$data((0,n._)`${r} ${i[t].fail} ${s} || isNaN(${r})`)}};t["default"]=a},4160:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,n.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`};const i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:true,error:s,code(e){const{keyword:t,data:r,schemaCode:s}=e;const i=t==="maxProperties"?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`Object.keys(${r}).length ${i} ${s}`)}};t["default"]=i},86325:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(84598);const s={message:({schemaCode:e})=>(0,n.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,n._)`{multipleOf: ${e}}`};const i={keyword:"multipleOf",type:"number",schemaType:"number",$data:true,error:s,code(e){const{gen:t,data:r,schemaCode:s,it:i}=e;const o=i.opts.multipleOfPrecision;const a=t.let("res");const c=o?(0,n._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,n._)`${a} !== parseInt(${a})`;e.fail$data((0,n._)`(${s} === 0 || (${a} = ${r}/${s}, ${c}))`)}};t["default"]=i},9258:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(18572);const s=r(84598);const i={message:({schemaCode:e})=>(0,s.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,s._)`{pattern: ${e}}`};const o={keyword:"pattern",type:"string",schemaType:"string",$data:true,error:i,code(e){const{data:t,$data:r,schema:i,schemaCode:o,it:a}=e;const c=a.opts.unicodeRegExp?"u":"";const u=r?(0,s._)`(new RegExp(${o}, ${c}))`:(0,n.usePattern)(e,i);e.fail$data((0,s._)`!${u}.test(${t})`)}};t["default"]=o},87177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(18572);const s=r(84598);const i=r(69068);const o={message:({params:{missingProperty:e}})=>(0,s.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,s._)`{missingProperty: ${e}}`};const a={keyword:"required",type:"object",schemaType:"array",$data:true,error:o,code(e){const{gen:t,schema:r,schemaCode:o,data:a,$data:c,it:u}=e;const{opts:l}=u;if(!c&&r.length===0)return;const h=r.length>=l.loopRequired;if(u.allErrors)allErrorsMode();else exitOnErrorMode();if(l.strictRequired){const t=e.parentSchema.properties;const{definedProperties:n}=e.it;for(const e of r){if((t===null||t===void 0?void 0:t[e])===undefined&&!n.has(e)){const t=u.schemaEnv.baseId+u.errSchemaPath;const r=`required property "${e}" is not defined at "${t}" (strictRequired)`;(0,i.checkStrictMode)(u,r,u.opts.strictRequired)}}}function allErrorsMode(){if(h||c){e.block$data(s.nil,loopAllRequired)}else{for(const t of r){(0,n.checkReportMissingProp)(e,t)}}}function exitOnErrorMode(){const s=t.let("missing");if(h||c){const r=t.let("valid",true);e.block$data(r,(()=>loopUntilMissing(s,r)));e.ok(r)}else{t.if((0,n.checkMissingProp)(e,r,s));(0,n.reportMissingProp)(e,s);t.else()}}function loopAllRequired(){t.forOf("prop",o,(r=>{e.setParams({missingProperty:r});t.if((0,n.noPropertyInData)(t,a,r,l.ownProperties),(()=>e.error()))}))}function loopUntilMissing(r,i){e.setParams({missingProperty:r});t.forOf(r,o,(()=>{t.assign(i,(0,n.propertyInData)(t,a,r,l.ownProperties));t.if((0,s.not)(i),(()=>{e.error();t.break()}))}),s.nil)}}};t["default"]=a},27659:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(47853);const s=r(84598);const i=r(69068);const o=r(4461);const a={message:({params:{i:e,j:t}})=>(0,s.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,s._)`{i: ${e}, j: ${t}}`};const c={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:true,error:a,code(e){const{gen:t,data:r,$data:a,schema:c,parentSchema:u,schemaCode:l,it:h}=e;if(!a&&!c)return;const p=t.let("valid");const d=u.items?(0,n.getSchemaTypes)(u.items):[];e.block$data(p,validateUniqueItems,(0,s._)`${l} === false`);e.ok(p);function validateUniqueItems(){const n=t.let("i",(0,s._)`${r}.length`);const i=t.let("j");e.setParams({i:n,j:i});t.assign(p,true);t.if((0,s._)`${n} > 1`,(()=>(canOptimize()?loopN:loopN2)(n,i)))}function canOptimize(){return d.length>0&&!d.some((e=>e==="object"||e==="array"))}function loopN(i,o){const a=t.name("item");const c=(0,n.checkDataTypes)(d,a,h.opts.strictNumbers,n.DataType.Wrong);const u=t.const("indices",(0,s._)`{}`);t.for((0,s._)`;${i}--;`,(()=>{t.let(a,(0,s._)`${r}[${i}]`);t.if(c,(0,s._)`continue`);if(d.length>1)t.if((0,s._)`typeof ${a} == "string"`,(0,s._)`${a} += "_"`);t.if((0,s._)`typeof ${u}[${a}] == "number"`,(()=>{t.assign(o,(0,s._)`${u}[${a}]`);e.error();t.assign(p,false).break()})).code((0,s._)`${u}[${a}] = ${i}`)}))}function loopN2(n,a){const c=(0,i.useFunc)(t,o.default);const u=t.name("outer");t.label(u).for((0,s._)`;${n}--;`,(()=>t.for((0,s._)`${a} = ${n}; ${a}--;`,(()=>t.if((0,s._)`${c}(${r}[${n}], ${r}[${a}])`,(()=>{e.error();t.assign(p,false).break(u)}))))))}}};t["default"]=c},28535:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(79054);const wrapAnsi16=(e,t)=>function(){const r=e.apply(n,arguments);return`[${r+t}m`};const wrapAnsi256=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const s=n[r];t[r]={open:`[${s[0]}m`,close:`[${s[1]}m`};n[r]=t[r];e.set(s[0],s[1])}Object.defineProperty(t,r,{value:n,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};t.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};t.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};t.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};t.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};t.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let e of Object.keys(n)){if(typeof n[e]!=="object"){continue}const r=n[e];if(e==="ansi16"){e="ansi"}if("ansi16"in r){t.color.ansi[e]=wrapAnsi16(r.ansi16,0);t.bgColor.ansi[e]=wrapAnsi16(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=wrapAnsi256(r.ansi256,0);t.bgColor.ansi256[e]=wrapAnsi256(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=wrapAnsi16m(r.rgb,0);t.bgColor.ansi16m[e]=wrapAnsi16m(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},44130:e=>{"use strict";
@@ -29,13 +29,13 @@
29
29
  *
30
30
  * Copyright (c) 2015, Jon Schlinkert.
31
31
  * Licensed under the MIT License.
32
- */e.exports=function(e,t){if(e===null||typeof e==="undefined"){throw new TypeError("expected first argument to be an object.")}if(typeof t==="undefined"||typeof Symbol==="undefined"){return e}if(typeof Object.getOwnPropertySymbols!=="function"){return e}var r=Object.prototype.propertyIsEnumerable;var n=Object(e);var s=arguments.length,i=0;while(++i<s){var o=Object(arguments[i]);var a=Object.getOwnPropertySymbols(o);for(var c=0;c<a.length;c++){var u=a[c];if(r.call(o,u)){n[u]=o[u]}}}return n}},89239:(e,t,r)=>{var n=r(36862);function retry(e,t){function run(r,s){var i=t||{};if(!("randomize"in i)){i.randomize=true}var o=n.operation(i);function bail(e){s(e||new Error("Aborted"))}function onError(e,t){if(e.bail){bail(e);return}if(!o.retry(e)){s(o.mainError())}else if(i.onRetry){i.onRetry(e,t)}}function runAttempt(t){var n;try{n=e(bail,t)}catch(e){onError(e,t);return}Promise.resolve(n).then(r).catch((function catchIt(e){onError(e,t)}))}o.attempt(runAttempt)}return new Promise(run)}e.exports=retry},58383:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(82361));function arrayMove(e,t,r,n,s){for(let i=0;i<s;++i){r[i+n]=e[i+t];e[i+t]=void 0}}function pow2AtLeast(e){e=e>>>0;e=e-1;e=e|e>>1;e=e|e>>2;e=e|e>>4;e=e|e>>8;e=e|e>>16;return e+1}function getCapacity(e){return pow2AtLeast(Math.min(Math.max(16,e),1073741824))}class Deque{constructor(e){this._capacity=getCapacity(e);this._length=0;this._front=0;this.arr=[]}push(e){const t=this._length;this.checkCapacity(t+1);const r=this._front+t&this._capacity-1;this.arr[r]=e;this._length=t+1;return t+1}pop(){const e=this._length;if(e===0){return void 0}const t=this._front+e-1&this._capacity-1;const r=this.arr[t];this.arr[t]=void 0;this._length=e-1;return r}shift(){const e=this._length;if(e===0){return void 0}const t=this._front;const r=this.arr[t];this.arr[t]=void 0;this._front=t+1&this._capacity-1;this._length=e-1;return r}get length(){return this._length}checkCapacity(e){if(this._capacity<e){this.resizeTo(getCapacity(this._capacity*1.5+16))}}resizeTo(e){const t=this._capacity;this._capacity=e;const r=this._front;const n=this._length;if(r+n>t){const e=r+n&t-1;arrayMove(this.arr,0,this.arr,t,e)}}}class ReleaseEmitter extends s.default{}function isFn(e){return typeof e==="function"}function defaultInit(){return"1"}class Sema{constructor(e,{initFn:t=defaultInit,pauseFn:r,resumeFn:n,capacity:s=10}={}){if(isFn(r)!==isFn(n)){throw new Error("pauseFn and resumeFn must be both set for pausing")}this.nrTokens=e;this.free=new Deque(e);this.waiting=new Deque(s);this.releaseEmitter=new ReleaseEmitter;this.noTokens=t===defaultInit;this.pauseFn=r;this.resumeFn=n;this.paused=false;this.releaseEmitter.on("release",(e=>{const t=this.waiting.shift();if(t){t.resolve(e)}else{if(this.resumeFn&&this.paused){this.paused=false;this.resumeFn()}this.free.push(e)}}));for(let r=0;r<e;r++){this.free.push(t())}}async acquire(){let e=this.free.pop();if(e!==void 0){return e}return new Promise(((e,t)=>{if(this.pauseFn&&!this.paused){this.paused=true;this.pauseFn()}this.waiting.push({resolve:e,reject:t})}))}release(e){this.releaseEmitter.emit("release",this.noTokens?"1":e)}drain(){const e=new Array(this.nrTokens);for(let t=0;t<this.nrTokens;t++){e[t]=this.acquire()}return Promise.all(e)}nrWaiting(){return this.waiting.length}}t.Sema=Sema;function RateLimit(e,{timeUnit:t=1e3,uniformDistribution:r=false}={}){const n=new Sema(r?1:e);const s=r?t/e:t;return async function rl(){await n.acquire();setTimeout((()=>n.release()),s)}}t.RateLimit=RateLimit},44909:e=>{"use strict";function atob(e){return Buffer.from(e,"base64").toString("binary")}e.exports=atob.atob=atob},83005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NOOP=t.LIMIT_FILES_DESCRIPTORS=t.LIMIT_BASENAME_LENGTH=t.IS_USER_ROOT=t.IS_POSIX=t.DEFAULT_TIMEOUT_SYNC=t.DEFAULT_TIMEOUT_ASYNC=t.DEFAULT_WRITE_OPTIONS=t.DEFAULT_READ_OPTIONS=t.DEFAULT_FOLDER_MODE=t.DEFAULT_FILE_MODE=t.DEFAULT_ENCODING=void 0;const r="utf8";t.DEFAULT_ENCODING=r;const n=438;t.DEFAULT_FILE_MODE=n;const s=511;t.DEFAULT_FOLDER_MODE=s;const i={};t.DEFAULT_READ_OPTIONS=i;const o={};t.DEFAULT_WRITE_OPTIONS=o;const a=5e3;t.DEFAULT_TIMEOUT_ASYNC=a;const c=100;t.DEFAULT_TIMEOUT_SYNC=c;const u=!!process.getuid;t.IS_POSIX=u;const l=process.getuid?!process.getuid():false;t.IS_USER_ROOT=l;const h=128;t.LIMIT_BASENAME_LENGTH=h;const p=1e4;t.LIMIT_FILES_DESCRIPTORS=p;const NOOP=()=>{};t.NOOP=NOOP},33809:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeFileSync=t.writeFile=t.readFileSync=t.readFile=void 0;const n=r(71017);const s=r(83005);const i=r(79142);const o=r(73716);const a=r(99063);const c=r(17281);function readFile(e,t=s.DEFAULT_READ_OPTIONS){var r;if(o.default.isString(t))return readFile(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:s.DEFAULT_TIMEOUT_ASYNC);return i.default.readFileRetry(n)(e,t)}t.readFile=readFile;function readFileSync(e,t=s.DEFAULT_READ_OPTIONS){var r;if(o.default.isString(t))return readFileSync(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:s.DEFAULT_TIMEOUT_SYNC);return i.default.readFileSyncRetry(n)(e,t)}t.readFileSync=readFileSync;const writeFile=(e,t,r,n)=>{if(o.default.isFunction(r))return writeFile(e,t,s.DEFAULT_WRITE_OPTIONS,r);const i=writeFileAsync(e,t,r);if(n)i.then(n,n);return i};t.writeFile=writeFile;const writeFileAsync=async(e,t,r=s.DEFAULT_WRITE_OPTIONS)=>{var u;if(o.default.isString(r))return writeFileAsync(e,t,{encoding:r});const l=Date.now()+((u=r.timeout)!==null&&u!==void 0?u:s.DEFAULT_TIMEOUT_ASYNC);let h=null,p=null,d=null,y=null,g=null;try{if(r.schedule)h=await r.schedule(e);p=await a.default.schedule(e);e=await i.default.realpathAttempt(e)||e;[y,d]=c.default.get(e,r.tmpCreate||c.default.create,!(r.tmpPurge===false));const u=s.IS_POSIX&&o.default.isUndefined(r.chown),v=o.default.isUndefined(r.mode);if(u||v){const t=await i.default.statAttempt(e);if(t){r={...r};if(u)r.chown={uid:t.uid,gid:t.gid};if(v)r.mode=t.mode}}const b=n.dirname(e);await i.default.mkdirAttempt(b,{mode:s.DEFAULT_FOLDER_MODE,recursive:true});g=await i.default.openRetry(l)(y,"w",r.mode||s.DEFAULT_FILE_MODE);if(r.tmpCreated)r.tmpCreated(y);if(o.default.isString(t)){await i.default.writeRetry(l)(g,t,0,r.encoding||s.DEFAULT_ENCODING)}else if(!o.default.isUndefined(t)){await i.default.writeRetry(l)(g,t,0,t.length,0)}if(r.fsync!==false){if(r.fsyncWait!==false){await i.default.fsyncRetry(l)(g)}else{i.default.fsyncAttempt(g)}}await i.default.closeRetry(l)(g);g=null;if(r.chown)await i.default.chownAttempt(y,r.chown.uid,r.chown.gid);if(r.mode)await i.default.chmodAttempt(y,r.mode);try{await i.default.renameRetry(l)(y,e)}catch(t){if(t.code!=="ENAMETOOLONG")throw t;await i.default.renameRetry(l)(y,c.default.truncate(e))}d();y=null}finally{if(g)await i.default.closeAttempt(g);if(y)c.default.purge(y);if(h)h();if(p)p()}};const writeFileSync=(e,t,r=s.DEFAULT_WRITE_OPTIONS)=>{var a;if(o.default.isString(r))return writeFileSync(e,t,{encoding:r});const u=Date.now()+((a=r.timeout)!==null&&a!==void 0?a:s.DEFAULT_TIMEOUT_SYNC);let l=null,h=null,p=null;try{e=i.default.realpathSyncAttempt(e)||e;[h,l]=c.default.get(e,r.tmpCreate||c.default.create,!(r.tmpPurge===false));const a=s.IS_POSIX&&o.default.isUndefined(r.chown),d=o.default.isUndefined(r.mode);if(a||d){const t=i.default.statSyncAttempt(e);if(t){r={...r};if(a)r.chown={uid:t.uid,gid:t.gid};if(d)r.mode=t.mode}}const y=n.dirname(e);i.default.mkdirSyncAttempt(y,{mode:s.DEFAULT_FOLDER_MODE,recursive:true});p=i.default.openSyncRetry(u)(h,"w",r.mode||s.DEFAULT_FILE_MODE);if(r.tmpCreated)r.tmpCreated(h);if(o.default.isString(t)){i.default.writeSyncRetry(u)(p,t,0,r.encoding||s.DEFAULT_ENCODING)}else if(!o.default.isUndefined(t)){i.default.writeSyncRetry(u)(p,t,0,t.length,0)}if(r.fsync!==false){if(r.fsyncWait!==false){i.default.fsyncSyncRetry(u)(p)}else{i.default.fsyncAttempt(p)}}i.default.closeSyncRetry(u)(p);p=null;if(r.chown)i.default.chownSyncAttempt(h,r.chown.uid,r.chown.gid);if(r.mode)i.default.chmodSyncAttempt(h,r.mode);try{i.default.renameSyncRetry(u)(h,e)}catch(t){if(t.code!=="ENAMETOOLONG")throw t;i.default.renameSyncRetry(u)(h,c.default.truncate(e))}l();h=null}finally{if(p)i.default.closeSyncAttempt(p);if(h)c.default.purge(h)}};t.writeFileSync=writeFileSync},5352:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.attemptifySync=t.attemptifyAsync=void 0;const n=r(83005);const attemptifyAsync=(e,t=n.NOOP)=>function(){return e.apply(undefined,arguments).catch(t)};t.attemptifyAsync=attemptifyAsync;const attemptifySync=(e,t=n.NOOP)=>function(){try{return e.apply(undefined,arguments)}catch(e){return t(e)}};t.attemptifySync=attemptifySync},79142:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(57147);const s=r(73837);const i=r(5352);const o=r(65386);const a=r(15855);const c={chmodAttempt:i.attemptifyAsync(s.promisify(n.chmod),o.default.onChangeError),chownAttempt:i.attemptifyAsync(s.promisify(n.chown),o.default.onChangeError),closeAttempt:i.attemptifyAsync(s.promisify(n.close)),fsyncAttempt:i.attemptifyAsync(s.promisify(n.fsync)),mkdirAttempt:i.attemptifyAsync(s.promisify(n.mkdir)),realpathAttempt:i.attemptifyAsync(s.promisify(n.realpath)),statAttempt:i.attemptifyAsync(s.promisify(n.stat)),unlinkAttempt:i.attemptifyAsync(s.promisify(n.unlink)),closeRetry:a.retryifyAsync(s.promisify(n.close),o.default.isRetriableError),fsyncRetry:a.retryifyAsync(s.promisify(n.fsync),o.default.isRetriableError),openRetry:a.retryifyAsync(s.promisify(n.open),o.default.isRetriableError),readFileRetry:a.retryifyAsync(s.promisify(n.readFile),o.default.isRetriableError),renameRetry:a.retryifyAsync(s.promisify(n.rename),o.default.isRetriableError),statRetry:a.retryifyAsync(s.promisify(n.stat),o.default.isRetriableError),writeRetry:a.retryifyAsync(s.promisify(n.write),o.default.isRetriableError),chmodSyncAttempt:i.attemptifySync(n.chmodSync,o.default.onChangeError),chownSyncAttempt:i.attemptifySync(n.chownSync,o.default.onChangeError),closeSyncAttempt:i.attemptifySync(n.closeSync),mkdirSyncAttempt:i.attemptifySync(n.mkdirSync),realpathSyncAttempt:i.attemptifySync(n.realpathSync),statSyncAttempt:i.attemptifySync(n.statSync),unlinkSyncAttempt:i.attemptifySync(n.unlinkSync),closeSyncRetry:a.retryifySync(n.closeSync,o.default.isRetriableError),fsyncSyncRetry:a.retryifySync(n.fsyncSync,o.default.isRetriableError),openSyncRetry:a.retryifySync(n.openSync,o.default.isRetriableError),readFileSyncRetry:a.retryifySync(n.readFileSync,o.default.isRetriableError),renameSyncRetry:a.retryifySync(n.renameSync,o.default.isRetriableError),statSyncRetry:a.retryifySync(n.statSync,o.default.isRetriableError),writeSyncRetry:a.retryifySync(n.writeSync,o.default.isRetriableError)};t["default"]=c},65386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(83005);const s={isChangeErrorOk:e=>{const{code:t}=e;if(t==="ENOSYS")return true;if(!n.IS_USER_ROOT&&(t==="EINVAL"||t==="EPERM"))return true;return false},isRetriableError:e=>{const{code:t}=e;if(t==="EMFILE"||t==="ENFILE"||t==="EAGAIN"||t==="EBUSY"||t==="EACCESS"||t==="EACCS"||t==="EPERM")return true;return false},onChangeError:e=>{if(s.isChangeErrorOk(e))return;throw e}};t["default"]=s},73716:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={isFunction:e=>typeof e==="function",isString:e=>typeof e==="string",isUndefined:e=>typeof e==="undefined"};t["default"]=r},15855:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retryifySync=t.retryifyAsync=void 0;const n=r(370);const retryifyAsync=(e,t)=>function(r){return function attempt(){return n.default.schedule().then((n=>e.apply(undefined,arguments).then((e=>{n();return e}),(e=>{n();if(Date.now()>=r)throw e;if(t(e)){const e=Math.round(100+400*Math.random()),t=new Promise((t=>setTimeout(t,e)));return t.then((()=>attempt.apply(undefined,arguments)))}throw e}))))}};t.retryifyAsync=retryifyAsync;const retryifySync=(e,t)=>function(r){return function attempt(){try{return e.apply(undefined,arguments)}catch(e){if(Date.now()>r)throw e;if(t(e))return attempt.apply(undefined,arguments);throw e}}};t.retryifySync=retryifySync},370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(83005);const s={interval:25,intervalId:undefined,limit:n.LIMIT_FILES_DESCRIPTORS,queueActive:new Set,queueWaiting:new Set,init:()=>{if(s.intervalId)return;s.intervalId=setInterval(s.tick,s.interval)},reset:()=>{if(!s.intervalId)return;clearInterval(s.intervalId);delete s.intervalId},add:e=>{s.queueWaiting.add(e);if(s.queueActive.size<s.limit/2){s.tick()}else{s.init()}},remove:e=>{s.queueWaiting.delete(e);s.queueActive.delete(e)},schedule:()=>new Promise((e=>{const cleanup=()=>s.remove(resolver);const resolver=()=>e(cleanup);s.add(resolver)})),tick:()=>{if(s.queueActive.size>=s.limit)return;if(!s.queueWaiting.size)return s.reset();for(const e of s.queueWaiting){if(s.queueActive.size>=s.limit)break;s.queueWaiting.delete(e);s.queueActive.add(e);e()}}};t["default"]=s},99063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={};const n={next:e=>{const t=r[e];if(!t)return;t.shift();const s=t[0];if(s){s((()=>n.next(e)))}else{delete r[e]}},schedule:e=>new Promise((t=>{let s=r[e];if(!s)s=r[e]=[];s.push(t);if(s.length>1)return;t((()=>n.next(e)))}))};t["default"]=n},17281:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(71017);const s=r(83005);const i=r(79142);const o={store:{},create:e=>{const t=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),r=Date.now().toString().slice(-10),n="tmp-",s=`.${n}${r}${t}`,i=`${e}${s}`;return i},get:(e,t,r=true)=>{const n=o.truncate(t(e));if(n in o.store)return o.get(e,t,r);o.store[n]=r;const disposer=()=>delete o.store[n];return[n,disposer]},purge:e=>{if(!o.store[e])return;delete o.store[e];i.default.unlinkAttempt(e)},purgeSync:e=>{if(!o.store[e])return;delete o.store[e];i.default.unlinkSyncAttempt(e)},purgeSyncAll:()=>{for(const e in o.store){o.purgeSync(e)}},truncate:e=>{const t=n.basename(e);if(t.length<=s.LIMIT_BASENAME_LENGTH)return e;const r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!r)return e;const i=t.length-s.LIMIT_BASENAME_LENGTH;return`${e.slice(0,-t.length)}${r[1]}${r[2].slice(0,-i)}${r[3]}`}};process.on("exit",o.purgeSyncAll);t["default"]=o},84442: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,s,i,o,a;var c=r.indexOf(e);var u=r.indexOf(t,c+1);var l=c;if(c>=0&&u>0){n=[];i=r.length;while(l>=0&&!a){if(l==c){n.push(l);c=r.indexOf(e,l+1)}else if(n.length==1){a=[n.pop(),u]}else{s=n.pop();if(s<i){i=s;o=u}u=r.indexOf(t,l+1)}l=c<u&&c>=0?c:u}if(n.length){a=[i,o]}}return a}},53536:(e,t,r)=>{"use strict";var n=r(73837);var s=r(88431);var i=r(58628);var o=r(21921);var a=r(13836);var c=r(34987);var u=r(29617);var l=r(5851);function namespace(e){var t=e?i.namespace(e):i;var r=[];function Base(e,r){if(!(this instanceof Base)){return new Base(e,r)}t.call(this,e);this.is("base");this.initBase(e,r)}n.inherits(Base,t);o(Base);Base.prototype.initBase=function(t,n){this.options=c({},this.options,n);this.cache=this.cache||{};this.define("registered",{});if(e)this[e]={};this.define("_callbacks",this._callbacks);if(a(t)){this.visit("set",t)}Base.run(this,"use",r)};Base.prototype.is=function(e){if(typeof e!=="string"){throw new TypeError("expected name to be a string")}this.define("is"+u(e),true);this.define("_name",e);this.define("_appname",e);return this};Base.prototype.isRegistered=function(e,t){if(this.registered.hasOwnProperty(e)){return true}if(t!==false){this.registered[e]=true;this.emit("plugin",e)}return false};Base.prototype.use=function(e){e.call(this,this);return this};Base.prototype.define=function(e,t){if(a(e)){return this.visit("define",e)}s(this,e,t);return this};Base.prototype.mixin=function(e,t){Base.prototype[e]=t;return this};Base.prototype.mixins=Base.prototype.mixins||[];Object.defineProperty(Base.prototype,"base",{configurable:true,get:function(){return this.parent?this.parent.base:this}});s(Base,"use",(function(e){r.push(e);return Base}));s(Base,"run",(function(e,t,r){var n=r.length,s=0;while(n--){e[t](r[s++])}return Base}));s(Base,"extend",l.extend(Base,(function(e,t){e.prototype.mixins=e.prototype.mixins||[];s(e,"mixin",(function(t){var r=t(e.prototype,e);if(typeof r==="function"){e.prototype.mixins.push(r)}return e}));s(e,"mixins",(function(t){Base.run(t,"mixin",e.prototype.mixins);return e}));e.prototype.mixin=function(t,r){e.prototype[t]=r;return this};return Base})));s(Base,"mixin",(function(e){var t=e(Base.prototype,Base);if(typeof t==="function"){Base.prototype.mixins.push(t)}return Base}));s(Base,"mixins",(function(e){Base.run(e,"mixin",Base.prototype.mixins);return Base}));s(Base,"inherit",l.inherit);s(Base,"bubble",l.bubble);return Base}e.exports=namespace();e.exports.namespace=namespace},54800:(e,t,r)=>{var n=r(47381);var s=r(84442);e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function unescapeBraces(e){return e.split(i).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=s("{","}",e);if(!r)return e.split(",");var n=r.pre;var i=r.body;var o=r.post;var a=n.split(",");a[a.length-1]+="{"+i+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var i=s("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var u=o||c;var l=i.body.indexOf(",")>=0;if(!u&&!l){if(i.post.match(/,.*\}/)){e=i.pre+"{"+i.body+a+i.post;return expand(e)}return[e]}var h;if(u){h=i.body.split(/\.\./)}else{h=parseCommaParts(i.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var p=i.post.length?expand(i.post,false):[""];return p.map((function(e){return i.pre+h[0]+e}))}}}var d=i.pre;var p=i.post.length?expand(i.post,false):[""];var y;if(u){var g=numeric(h[0]);var v=numeric(h[1]);var b=Math.max(h[0].length,h[1].length);var w=h.length==3?Math.abs(numeric(h[2])):1;var S=lte;var x=v<g;if(x){w*=-1;S=gte}var O=h.some(isPadded);y=[];for(var R=g;S(R,v);R+=w){var k;if(c){k=String.fromCharCode(R);if(k==="\\")k=""}else{k=String(R);if(O){var A=b-k.length;if(A>0){var C=new Array(A+1).join("0");if(R<0)k="-"+C+k.slice(1);else k=C+k}}}y.push(k)}}else{y=n(h,(function(e){return expand(e,false)}))}for(var P=0;P<y.length;P++){for(var $=0;$<p.length;$++){var T=d+y[P]+p[$];if(!t||u||T)r.push(T)}}return r}},97847:(e,t,r)=>{var n=r(84442);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var i="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var a="\0COMMA"+Math.random()+"\0";var c="\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(s).split("\\{").join(i).split("\\}").join(o).split("\\,").join(a).split("\\.").join(c)}function unescapeBraces(e){return e.split(s).join("\\").split(i).join("{").split(o).join("}").split(a).join(",").split(c).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=n("{","}",e);if(!r)return e.split(",");var s=r.pre;var i=r.body;var o=r.post;var a=s.split(",");a[a.length-1]+="{"+i+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}t.push.apply(t,a);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 s=n("{","}",e);if(!s)return[e];var i=s.pre;var a=s.post.length?expand(s.post,false):[""];if(/\$$/.test(s.pre)){for(var c=0;c<a.length;c++){var u=i+"{"+s.body+"}"+a[c];r.push(u)}}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var p=l||h;var d=s.body.indexOf(",")>=0;if(!p&&!d){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+o+s.post;return expand(e)}return[e]}var y;if(p){y=s.body.split(/\.\./)}else{y=parseCommaParts(s.body);if(y.length===1){y=expand(y[0],false).map(embrace);if(y.length===1){return a.map((function(e){return s.pre+y[0]+e}))}}}var g;if(p){var v=numeric(y[0]);var b=numeric(y[1]);var w=Math.max(y[0].length,y[1].length);var S=y.length==3?Math.abs(numeric(y[2])):1;var x=lte;var O=b<v;if(O){S*=-1;x=gte}var R=y.some(isPadded);g=[];for(var k=v;x(k,b);k+=S){var A;if(h){A=String.fromCharCode(k);if(A==="\\")A=""}else{A=String(k);if(R){var C=w-A.length;if(C>0){var P=new Array(C+1).join("0");if(k<0)A="-"+P+A.slice(1);else A=P+A}}}g.push(A)}}else{g=[];for(var $=0;$<y.length;$++){g.push.apply(g,expand(y[$],false))}}for(var $=0;$<g.length;$++){for(var c=0;c<a.length;c++){var u=i+g[$]+a[c];if(!t||p||u)r.push(u)}}}return r}},3876:(e,t,r)=>{"use strict";var n=r(15912);var s=r(89424);var i=r(50960);var o=r(2618);var a=r(57805);var c=r(53954);var u=r(73628);var l=1024*64;var h={};function braces(e,t){var r=u.createKey(String(e),t);var n=[];var i=t&&t.cache===false;if(!i&&h.hasOwnProperty(r)){return h[r]}if(Array.isArray(e)){for(var o=0;o<e.length;o++){n.push.apply(n,braces.create(e[o],t))}}else{n=braces.create(e,t)}if(t&&t.nodupes===true){n=s(n)}if(!i){h[r]=n}return n}braces.expand=function(e,t){return braces.create(e,i({},t,{expand:true}))};braces.optimize=function(e,t){return braces.create(e,t)};braces.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=t&&t.maxLength||l;if(e.length>=r){throw new Error("expected pattern to be less than "+r+" characters")}function create(){if(e===""||e.length<3){return[e]}if(u.isEmptySets(e)){return[]}if(u.isQuotedString(e)){return[e.slice(1,-1)]}var r=new c(t);var n=!t||t.expand!==true?r.optimize(e,t):r.expand(e,t);var i=n.output;if(t&&t.noempty===true){i=i.filter(Boolean)}if(t&&t.nodupes===true){i=s(i)}Object.defineProperty(i,"result",{enumerable:false,value:n});return i}return memoize("create",e,t,create)};braces.makeRe=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=t&&t.maxLength||l;if(e.length>=r){throw new Error("expected pattern to be less than "+r+" characters")}function makeRe(){var r=braces(e,t);var s=i({strictErrors:false},t);return n(r,s)}return memoize("makeRe",e,t,makeRe)};braces.parse=function(e,t){var r=new c(t);return r.parse(e,t)};braces.compile=function(e,t){var r=new c(t);return r.compile(e,t)};braces.clearCache=function(){h=braces.cache={}};function memoize(e,t,r,n){var s=u.createKey(e+":"+t,r);var i=r&&r.cache===false;if(i){braces.clearCache();return n(t,r)}if(h.hasOwnProperty(s)){return h[s]}var o=n(t,r);h[s]=o;return o}braces.Braces=c;braces.compilers=o;braces.parsers=a;braces.cache=h;e.exports=braces},53954:(e,t,r)=>{"use strict";var n=r(50960);var s=r(30267);var i=r(2618);var o=r(57805);var a=r(73628);function Braces(e){this.options=n({},e)}Braces.prototype.init=function(e){if(this.isInitialized)return;this.isInitialized=true;var t=a.createOptions({},this.options,e);this.snapdragon=this.options.snapdragon||new s(t);this.compiler=this.snapdragon.compiler;this.parser=this.snapdragon.parser;i(this.snapdragon,t);o(this.snapdragon,t);a.define(this.snapdragon,"parse",(function(e,t){var r=s.prototype.parse.apply(this,arguments);this.parser.ast.input=e;var n=this.parser.stack;while(n.length){addParent({type:"brace.close",val:""},n.pop())}function addParent(e,t){a.define(e,"parent",t);t.nodes.push(e)}a.define(r,"parser",this.parser);return r}))};Braces.prototype.parse=function(e,t){if(e&&typeof e==="object"&&e.nodes)return e;this.init(t);return this.snapdragon.parse(e,t)};Braces.prototype.compile=function(e,t){if(typeof e==="string"){e=this.parse(e,t)}else{this.init(t)}return this.snapdragon.compile(e,t)};Braces.prototype.expand=function(e){var t=this.parse(e,{expand:true});return this.compile(t,{expand:true})};Braces.prototype.optimize=function(e){var t=this.parse(e,{optimize:true});return this.compile(t,{optimize:true})};e.exports=Braces},2618:(e,t,r)=>{"use strict";var n=r(73628);e.exports=function(e,t){e.compiler.set("bos",(function(){if(this.output)return;this.ast.queue=isEscaped(this.ast)?[this.ast.val]:[];this.ast.count=1})).set("bracket",(function(e){var t=e.close;var r=!e.escaped?"[":"\\[";var s=e.negated;var i=e.inner;i=i.replace(/\\(?=[\\\w]|$)/g,"\\\\");if(i==="]-"){i="\\]\\-"}if(s&&i.indexOf(".")===-1){i+="."}if(s&&i.indexOf("/")===-1){i+="/"}var o=r+s+i+t;var a=e.parent.queue;var c=n.arrayify(a.pop());a.push(n.join(c,o));a.push.apply(a,[])})).set("brace",(function(e){e.queue=isEscaped(e)?[e.val]:[];e.count=1;return this.mapVisit(e.nodes)})).set("brace.open",(function(e){e.parent.open=e.val})).set("text",(function(e){var r=e.parent.queue;var s=e.escaped;var i=[e.val];if(e.optimize===false){t=n.extend({},t,{optimize:false})}if(e.multiplier>1){e.parent.count*=e.multiplier}if(t.quantifiers===true&&n.isQuantifier(e.val)){s=true}else if(e.val.length>1){if(isType(e.parent,"brace")&&!isEscaped(e)){var o=n.expand(e.val,t);i=o.segs;if(o.isOptimized){e.parent.isOptimized=true}if(!i.length){var a=o.val||e.val;if(t.unescape!==false){a=a.replace(/\\([,.])/g,"$1");a=a.replace(/["'`]/g,"")}i=[a];s=true}}}else if(e.val===","){if(t.expand){e.parent.queue.push([""]);i=[""]}else{i=["|"]}}else{s=true}if(s&&isType(e.parent,"brace")){if(e.parent.nodes.length<=4&&e.parent.count===1){e.parent.escaped=true}else if(e.parent.length<=3){e.parent.escaped=true}}if(!hasQueue(e.parent)){e.parent.queue=i;return}var c=n.arrayify(r.pop());if(e.parent.count>1&&t.expand){c=multiply(c,e.parent.count);e.parent.count=1}r.push(n.join(n.flatten(c),i.shift()));r.push.apply(r,i)})).set("brace.close",(function(e){var r=e.parent.queue;var s=e.parent.parent;var i=s.queue.pop();var o=e.parent.open;var a=e.val;if(o&&a&&isOptimized(e,t)){o="(";a=")"}var c=n.last(r);if(e.parent.count>1&&t.expand){c=multiply(r.pop(),e.parent.count);e.parent.count=1;r.push(c)}if(a&&typeof c==="string"&&c.length===1){o="";a=""}if((isLiteralBrace(e,t)||noInner(e))&&!e.parent.hasEmpty){r.push(n.join(o,r.pop()||""));r=n.flatten(n.join(r,a))}if(typeof i==="undefined"){s.queue=[r]}else{s.queue.push(n.flatten(n.join(i,r)))}})).set("eos",(function(e){if(this.input)return;if(t.optimize!==false){this.output=n.last(n.flatten(this.ast.queue))}else if(Array.isArray(n.last(this.ast.queue))){this.output=n.flatten(this.ast.queue.pop())}else{this.output=n.flatten(this.ast.queue)}if(e.parent.count>1&&t.expand){this.output=multiply(this.output,e.parent.count)}this.output=n.arrayify(this.output);this.ast.queue=[]}))};function multiply(e,t,r){return n.flatten(n.repeat(n.arrayify(e),t))}function isEscaped(e){return e.escaped===true}function isOptimized(e,t){if(e.parent.isOptimized)return true;return isType(e.parent,"brace")&&!isEscaped(e.parent)&&t.expand!==true}function isLiteralBrace(e,t){return isEscaped(e.parent)||t.optimize!==false}function noInner(e,t){if(e.parent.queue.length===1){return true}var r=e.parent.nodes;return r.length===3&&isType(r[0],"brace.open")&&!isType(r[1],"text")&&isType(r[2],"brace.close")}function isType(e,t){return typeof e!=="undefined"&&e.type===t}function hasQueue(e){return Array.isArray(e.queue)&&e.queue.length}},57805:(e,t,r)=>{"use strict";var n=r(21541);var s=r(73628);e.exports=function(e,t){e.parser.set("bos",(function(){if(!this.parsed){this.ast=this.nodes[0]=new n(this.ast)}})).set("escape",(function(){var e=this.position();var r=this.match(/^(?:\\(.)|\$\{)/);if(!r)return;var i=this.prev();var o=s.last(i.nodes);var a=e(new n({type:"text",multiplier:1,val:r[0]}));if(a.val==="\\\\"){return a}if(a.val==="${"){var c=this.input;var u=-1;var l;while(l=c[++u]){this.consume(1);a.val+=l;if(l==="\\"){a.val+=c[++u];continue}if(l==="}"){break}}}if(this.options.unescape!==false){a.val=a.val.replace(/\\([{}])/g,"$1")}if(o.val==='"'&&this.input.charAt(0)==='"'){o.val=a.val;this.consume(1);return}return concatNodes.call(this,e,a,i,t)})).set("bracket",(function(){var e=this.isInside("brace");var t=this.position();var r=this.match(/^(?:\[([!^]?)([^\]]{2,}|\]-)(\]|[^*+?]+)|\[)/);if(!r)return;var s=this.prev();var i=r[0];var o=r[1]?"^":"";var a=r[2]||"";var c=r[3]||"";if(e&&s.type==="brace"){s.text=s.text||"";s.text+=i}var u=this.input.slice(0,2);if(a===""&&u==="\\]"){a+=u;this.consume(2);var l=this.input;var h=-1;var p;while(p=l[++h]){this.consume(1);if(p==="]"){c=p;break}a+=p}}return t(new n({type:"bracket",val:i,escaped:c!=="]",negated:o,inner:a,close:c}))})).set("multiplier",(function(){var e=this.isInside("brace");var r=this.position();var s=this.match(/^\{((?:,|\{,+\})+)\}/);if(!s)return;this.multiplier=true;var i=this.prev();var o=s[0];if(e&&i.type==="brace"){i.text=i.text||"";i.text+=o}var a=r(new n({type:"text",multiplier:1,match:s,val:o}));return concatNodes.call(this,r,a,i,t)})).set("brace.open",(function(){var e=this.position();var t=this.match(/^\{(?!(?:[^\\}]?|,+)\})/);if(!t)return;var r=this.prev();var i=s.last(r.nodes);if(i&&i.val&&isExtglobChar(i.val.slice(-1))){i.optimize=false}var o=e(new n({type:"brace.open",val:t[0]}));var a=e(new n({type:"brace",nodes:[]}));a.push(o);r.push(a);this.push("brace",a)})).set("brace.close",(function(){var e=this.position();var t=this.match(/^\}/);if(!t||!t[0])return;var r=this.pop("brace");var i=e(new n({type:"brace.close",val:t[0]}));if(!this.isType(r,"brace")){if(this.options.strict){throw new Error('missing opening "{"')}i.type="text";i.multiplier=0;i.escaped=true;return i}var o=this.prev();var a=s.last(o.nodes);if(a.text){var c=s.last(a.nodes);if(c.val===")"&&/[!@*?+]\(/.test(a.text)){var u=a.nodes[0];var l=a.nodes[1];if(u.type==="brace.open"&&l&&l.type==="text"){l.optimize=false}}}if(r.nodes.length>2){var h=r.nodes[1];if(h.type==="text"&&h.val===","){r.nodes.splice(1,1);r.nodes.push(h)}}r.push(i)})).set("boundary",(function(){var e=this.position();var t=this.match(/^[$^](?!\{)/);if(!t)return;return e(new n({type:"text",val:t[0]}))})).set("nobrace",(function(){var e=this.isInside("brace");var t=this.position();var r=this.match(/^\{[^,]?\}/);if(!r)return;var s=this.prev();var i=r[0];if(e&&s.type==="brace"){s.text=s.text||"";s.text+=i}return t(new n({type:"text",multiplier:0,val:i}))})).set("text",(function(){var e=this.isInside("brace");var r=this.position();var s=this.match(/^((?!\\)[^${}[\]])+/);if(!s)return;var i=this.prev();var o=s[0];if(e&&i.type==="brace"){i.text=i.text||"";i.text+=o}var a=r(new n({type:"text",multiplier:1,val:o}));return concatNodes.call(this,r,a,i,t)}))};function isExtglobChar(e){return e==="!"||e==="@"||e==="*"||e==="?"||e==="+"}function concatNodes(e,t,r,n){t.orig=t.val;var i=this.prev();var o=s.last(i.nodes);var a=false;if(t.val.length>1){var c=t.val.charAt(0);var u=t.val.slice(-1);a=c==='"'&&u==='"'||c==="'"&&u==="'"||c==="`"&&u==="`"}if(a&&n.unescape!==false){t.val=t.val.slice(1,t.val.length-1);t.escaped=true}if(t.match){var l=t.match[1];if(!l||l.indexOf("}")===-1){l=t.match[0]}var h=l.replace(/\{/g,",").replace(/\}/g,"");t.multiplier*=h.length;t.val=""}var p=o.type==="text"&&o.multiplier===1&&t.multiplier===1&&t.val;if(p){o.val+=t.val;return}i.push(t)}},73628:(e,t,r)=>{"use strict";var n=r(63165);var s=e.exports;s.extend=r(50960);s.flatten=r(10906);s.isObject=r(13836);s.fillRange=r(47303);s.repeat=r(52224);s.unique=r(89424);s.define=function(e,t,r){Object.defineProperty(e,t,{writable:true,configurable:true,enumerable:false,value:r})};s.isEmptySets=function(e){return/^(?:\{,\})+$/.test(e)};s.isQuotedString=function(e){var t=e.charAt(0);if(t==="'"||t==='"'||t==="`"){return e.slice(-1)===t}return false};s.createKey=function(e,t){var r=e;if(typeof t==="undefined"){return r}var n=Object.keys(t);for(var s=0;s<n.length;s++){var i=n[s];r+=";"+i+"="+String(t[i])}return r};s.createOptions=function(e){var t=s.extend.apply(null,arguments);if(typeof t.expand==="boolean"){t.optimize=!t.expand}if(typeof t.optimize==="boolean"){t.expand=!t.optimize}if(t.optimize===true){t.makeRe=true}return t};s.join=function(e,t,r){r=r||{};e=s.arrayify(e);t=s.arrayify(t);if(!e.length)return t;if(!t.length)return e;var n=e.length;var i=-1;var o=[];while(++i<n){var a=e[i];if(Array.isArray(a)){for(var c=0;c<a.length;c++){a[c]=s.join(a[c],t,r)}o.push(a);continue}for(var u=0;u<t.length;u++){var l=t[u];if(Array.isArray(l)){o.push(s.join(a,l,r))}else{o.push(a+l)}}}return o};s.split=function(e,t){var r=s.extend({sep:","},t);if(typeof r.keepQuotes!=="boolean"){r.keepQuotes=true}if(r.unescape===false){r.keepEscaping=true}return n(e,r,s.escapeBrackets(r))};s.expand=function(e,t){var r=s.extend({rangeLimit:1e4},t);var n=s.split(e,r);var i={segs:n};if(s.isQuotedString(e)){return i}if(r.rangeLimit===true){r.rangeLimit=1e4}if(n.length>1){if(r.optimize===false){i.val=n[0];return i}i.segs=s.stringifyArray(i.segs)}else if(n.length===1){var o=e.split("..");if(o.length===1){i.val=i.segs[i.segs.length-1]||i.val||e;i.segs=[];return i}if(o.length===2&&o[0]===o[1]){i.escaped=true;i.val=o[0];i.segs=[];return i}if(o.length>1){if(r.optimize!==false){r.optimize=true;delete r.expand}if(r.optimize!==true){var a=Math.min(o[0],o[1]);var c=Math.max(o[0],o[1]);var u=o[2]||1;if(r.rangeLimit!==false&&(c-a)/u>=r.rangeLimit){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}}o.push(r);i.segs=s.fillRange.apply(null,o);if(!i.segs.length){i.escaped=true;i.val=e;return i}if(r.optimize===true){i.segs=s.stringifyArray(i.segs)}if(i.segs===""){i.val=e}else{i.val=i.segs[0]}return i}}else{i.val=e}return i};s.escapeBrackets=function(e){return function(t){if(t.escaped&&t.val==="b"){t.val="\\b";return}if(t.val!=="("&&t.val!=="[")return;var r=s.extend({},e);var n=[];var i=[];var o=[];var a=t.val;var c=t.str;var u=t.idx-1;while(++u<c.length){var l=c[u];if(l==="\\"){a+=(r.keepEscaping===false?"":l)+c[++u];continue}if(l==="("){i.push(l);o.push(l)}if(l==="["){n.push(l);o.push(l)}if(l===")"){i.pop();o.pop();if(!o.length){a+=l;break}}if(l==="]"){n.pop();o.pop();if(!o.length){a+=l;break}}a+=l}t.split=false;t.val=a.slice(1);t.idx=u}};s.isQuantifier=function(e){return/^(?:[0-9]?,[0-9]|[0-9],)$/.test(e)};s.stringifyArray=function(e){return[s.arrayify(e).join("|")]};s.arrayify=function(e){if(typeof e==="undefined"){return[]}if(typeof e==="string"){return[e]}return e};s.isString=function(e){return e!=null&&typeof e==="string"};s.last=function(e,t){return e[e.length-(t||1)]};s.escapeRegex=function(e){return e.replace(/\\?([!^*?()[\]{}+?/])/g,"\\$1")}},58628:(e,t,r)=>{"use strict";var n=r(13836);var s=r(21921);var i=r(84506);var o=r(54017);var a=r(54737);var c=r(16676);var u=r(50997);var l=r(81131);var h=r(50173);function namespace(e){function Cache(t){if(e){this[e]={}}if(t){this.set(t)}}s(Cache.prototype);Cache.prototype.set=function(t,r){if(Array.isArray(t)&&arguments.length===2){t=o(t)}if(n(t)||Array.isArray(t)){this.visit("set",t)}else{h(e?this[e]:this,t,r);this.emit("set",t,r)}return this};Cache.prototype.union=function(t,r){if(Array.isArray(t)&&arguments.length===2){t=o(t)}var n=e?this[e]:this;a(n,t,arrayify(r));this.emit("union",r);return this};Cache.prototype.get=function(t){t=o(arguments);var r=e?this[e]:this;var n=u(r,t);this.emit("get",t,n);return n};Cache.prototype.has=function(t){t=o(arguments);var r=e?this[e]:this;var n=u(r,t);var s=typeof n!=="undefined";this.emit("has",t,s);return s};Cache.prototype.del=function(t){if(Array.isArray(t)){this.visit("del",t)}else{c(e?this[e]:this,t);this.emit("del",t)}return this};Cache.prototype.clear=function(){if(e){this[e]={}}};Cache.prototype.visit=function(e,t){i(this,e,t);return this};return Cache}function arrayify(e){return e?Array.isArray(e)?e:[e]:[]}e.exports=namespace();e.exports.namespace=namespace},92468:(e,t,r)=>{"use strict";const{Resolver:n,V4MAPPED:s,ADDRCONFIG:i}=r(9523);const{promisify:o}=r(73837);const a=r(22037);const c=r(10055);const u=Symbol("cacheableLookupData");const l=Symbol("cacheableLookupInstance");const verifyAgent=e=>{if(!(e&&typeof e.createConnection==="function")){throw new Error("Expected an Agent instance as the first argument")}};const map4to6=e=>{for(const t of e){t.address=`::ffff:${t.address}`;t.family=6}};const getIfaceInfo=()=>{let e=false;let t=false;for(const r of Object.values(a.networkInterfaces())){for(const n of r){if(n.internal){continue}if(n.family==="IPv6"){t=true}else{e=true}if(e&&t){break}}}return{has4:e,has6:t}};class CacheableLookup{constructor({cacheAdapter:e,maxTtl:t=Infinity,resolver:r}={}){this.cache=new c({uri:typeof e==="string"&&e,store:typeof e!=="string"&&e,namespace:"cached-lookup"});this.maxTtl=t;this._resolver=r||new n;this._resolve4=o(this._resolver.resolve4.bind(this._resolver));this._resolve6=o(this._resolver.resolve6.bind(this._resolver));this._iface=getIfaceInfo();this.lookup=this.lookup.bind(this);this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,t,r){if(typeof t==="function"){r=t;t={}}this.lookupAsync(e,{...t,throwNotFound:true}).then((e=>{if(t.all){r(null,e)}else{r(null,e.address,e.family,e.expires,e.ttl)}})).catch(r)}async lookupAsync(e,t={}){let r;if(!t.family&&t.all){const[t,n]=await Promise.all([this.lookupAsync(e,{all:true,family:4}),this.lookupAsync(e,{all:true,family:6})]);r=[...t,...n]}else{r=await this.query(e,t.family||4);if(r.length===0&&t.family===6&&t.hints&s){r=await this.query(e,4);map4to6(r)}}if(t.hints&i){const{_iface:e}=this;r=r.filter((t=>t.family===6?e.has6:e.has4))}if(r.length===0&&t.throwNotFound){const t=new Error(`ENOTFOUND ${e}`);t.code="ENOTFOUND";t.hostname=e;throw t}const n=Date.now();r=r.filter((e=>e.ttl===0||n<e.expires));if(t.all){return r}if(r.length===1){return r[0]}if(r.length===0){return undefined}return this._getEntry(r)}async query(e,t){let r=await this.cache.get(`${e}:${t}`);if(!r){r=await this.queryAndCache(e,t)}return r}async queryAndCache(e,t){const r=t===4?this._resolve4:this._resolve6;const n=await r(e,{ttl:true});if(n===undefined){return[]}const s=Date.now();let i=0;for(const e of n){i=Math.max(i,e.ttl);e.family=t;e.expires=s+e.ttl*1e3}i=Math.min(this.maxTtl,i)*1e3;if(this.maxTtl!==0&&i!==0){await this.cache.set(`${e}:${t}`,n,i)}return n}_getEntry(e){return e[Math.floor(Math.random()*e.length)]}install(e){verifyAgent(e);if(u in e){throw new Error("CacheableLookup has been already installed")}e[u]=e.createConnection;e[l]=this;e.createConnection=(t,r)=>{if(!("lookup"in t)){t.lookup=this.lookup}return e[u](t,r)}}uninstall(e){verifyAgent(e);if(e[u]){if(e[l]!==this){throw new Error("The agent is not owned by this CacheableLookup instance")}e.createConnection=e[u];delete e[u];delete e[l]}}updateInterfaceInfo(){this._iface=getIfaceInfo()}}e.exports=CacheableLookup;e.exports["default"]=CacheableLookup},20190:(e,t,r)=>{"use strict";const n=r(82361);const s=r(57310);const i=r(89718);const o=r(61401);const a=r(91454);const c=r(85810);const u=r(14162);const l=r(62806);const h=r(10055);class CacheableRequest{constructor(e,t){if(typeof e!=="function"){throw new TypeError("Parameter `request` must be a function")}this.cache=new h({uri:typeof t==="string"&&t,store:typeof t!=="string"&&t,namespace:"cacheable-request"});return this.createCacheableRequest(e)}createCacheableRequest(e){return(t,r)=>{let h;if(typeof t==="string"){h=normalizeUrlObject(s.parse(t));t={}}else if(t instanceof s.URL){h=normalizeUrlObject(s.parse(t.toString()));t={}}else{const[e,...r]=(t.path||"").split("?");const n=r.length>0?`?${r.join("?")}`:"";h=normalizeUrlObject({...t,pathname:e,search:n})}t={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...t,...urlObjectToRequestOptions(h)};t.headers=u(t.headers);const p=new n;const d=i(s.format(h),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});const y=`${t.method}:${d}`;let g=false;let v=false;const makeRequest=t=>{v=true;let n=false;let s;const i=new Promise((e=>{s=()=>{if(!n){n=true;e()}}}));const handler=e=>{if(g&&!t.forceRefresh){e.status=e.statusCode;const r=a.fromObject(g.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();e=new c(g.statusCode,t,g.body,g.url);e.cachePolicy=r.policy;e.fromCache=true}}if(!e.fromCache){e.cachePolicy=new a(t,e,t);e.fromCache=false}let s;if(t.cache&&e.cachePolicy.storable()){s=l(e);(async()=>{try{const r=o.buffer(e);await Promise.race([i,new Promise((t=>e.once("end",t)))]);if(n){return}const s=await r;const a={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?g.statusCode:e.statusCode,body:s};let c=t.strictTtl?e.cachePolicy.timeToLive():undefined;if(t.maxTtl){c=c?Math.min(c,t.maxTtl):t.maxTtl}await this.cache.set(y,a,c)}catch(e){p.emit("error",new CacheableRequest.CacheError(e))}})()}else if(t.cache&&g){(async()=>{try{await this.cache.delete(y)}catch(e){p.emit("error",new CacheableRequest.CacheError(e))}})()}p.emit("response",s||e);if(typeof r==="function"){r(s||e)}};try{const r=e(t,handler);r.once("error",s);r.once("abort",s);p.emit("request",r)}catch(e){p.emit("error",new CacheableRequest.RequestError(e))}};(async()=>{const get=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(y):undefined;if(typeof t==="undefined"){return makeRequest(e)}const n=a.fromObject(t.cachePolicy);if(n.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=n.responseHeaders();const s=new c(t.statusCode,e,t.body,t.url);s.cachePolicy=n;s.fromCache=true;p.emit("response",s);if(typeof r==="function"){r(s)}}else{g=t;e.headers=n.revalidationHeaders(e);makeRequest(e)}};const errorHandler=e=>p.emit("error",new CacheableRequest.CacheError(e));this.cache.once("error",errorHandler);p.on("response",(()=>this.cache.removeListener("error",errorHandler)));try{await get(t)}catch(e){if(t.automaticFailover&&!v){makeRequest(t)}p.emit("error",new CacheableRequest.CacheError(e))}})();return p}}}function urlObjectToRequestOptions(e){const t={...e};t.path=`${e.pathname||"/"}${e.search||""}`;delete t.pathname;delete t.search;return t}function normalizeUrlObject(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}CacheableRequest.RequestError=class extends Error{constructor(e){super(e.message);this.name="RequestError";Object.assign(this,e)}};CacheableRequest.CacheError=class extends Error{constructor(e){super(e.message);this.name="CacheError";Object.assign(this,e)}};e.exports=CacheableRequest},34009:e=>{"use strict";var t=global.process&&process.nextTick||global.setImmediate||function(e){setTimeout(e,0)};e.exports=function maybe(e,r){if(e){r.then((function(r){t((function(){e(null,r)}))}),(function(r){t((function(){e(r)}))}));return undefined}else{return r}}},96148:(e,t,r)=>{"use strict";const n=r(37379);const s=r(28535);const i=r(67220).stdout;const o=r(85299);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const c=["ansi","ansi","ansi256","ansi16m"];const u=new Set(["gray"]);const l=Object.create(null);function applyOptions(e,t){t=t||{};const r=i?i.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){s.blue.open=""}for(const e of Object.keys(s)){s[e].closeRe=new RegExp(n(s[e].close),"g");l[e]={get(){const t=s[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}l.visible={get(){return build.call(this,this._styles||[],true,"visible")}};s.color.closeRe=new RegExp(n(s.color.close),"g");for(const e of Object.keys(s.color.ansi)){if(u.has(e)){continue}l[e]={get(){const t=this.level;return function(){const r=s.color[c[t]][e].apply(null,arguments);const n={open:r,close:s.color.close,closeRe:s.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(const e of Object.keys(s.bgColor.ansi)){if(u.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const t=this.level;return function(){const r=s.bgColor[c[t]][e].apply(null,arguments);const n={open:r,close:s.bgColor.close,closeRe:s.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const h=Object.defineProperties((()=>{}),l);function build(e,t,r){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e;builder._empty=t;const n=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return n.level},set(e){n.level=e}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return n.enabled},set(e){n.enabled=e}});builder.hasGrey=this.hasGrey||r==="gray"||r==="grey";builder.__proto__=h;return builder}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let n=1;n<t;n++){r+=" "+e[n]}}if(!this.enabled||this.level<=0||!r){return this._empty?"":r}const n=s.dim.open;if(a&&this.hasGrey){s.dim.open=""}for(const e of this._styles.slice().reverse()){r=e.open+r.replace(e.closeRe,e.open)+e.close;r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`)}s.dim.open=n;return r}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const r=[].slice.call(arguments,2);const n=[t.raw[0]];for(let e=1;e<t.length;e++){n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"));n.push(String(t.raw[e]))}return o(e,n.join(""))}Object.defineProperties(Chalk.prototype,l);e.exports=Chalk();e.exports.supportsColor=i;e.exports["default"]=e.exports},85299:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const s=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return i.get(e)||e}function parseArguments(e,t){const r=[];const i=t.trim().split(/\s*,\s*/g);let o;for(const t of i){if(!isNaN(t)){r.push(Number(t))}else if(o=t.match(n)){r.push(o[2].replace(s,((e,t,r)=>t?unescape(t):r)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const e of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){n=n[e].apply(n,r[e])}else{n=n[e]}}}return n}e.exports=(e,r)=>{const n=[];const s=[];let i=[];r.replace(t,((t,r,o,a,c,u)=>{if(r){i.push(unescape(r))}else if(a){const t=i.join("");i=[];s.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:o,styles:parseStyle(a)})}else if(c){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}s.push(buildStyle(e,n)(i.join("")));i=[];n.pop()}else{i.push(u)}}));s.push(i.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return s.join("")}},1216:(e,t,r)=>{"use strict";const n=r(57147);const s=r(71017);const i=n.lchown?"lchown":"chown";const o=n.lchownSync?"lchownSync":"chownSync";const a=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const c=a?(e,t,r,s)=>i=>{if(!i||i.code!=="EISDIR")s(i);else n.chown(e,t,r,s)}:(e,t,r,n)=>n;const u=a?(e,t,r)=>{try{return n[o](e,t,r)}catch(s){if(s.code!=="EISDIR")throw s;n.chownSync(e,t,r)}}:(e,t,r)=>n[o](e,t,r);const l=process.version;let readdir=(e,t,r)=>n.readdir(e,t,r);let readdirSync=(e,t)=>n.readdirSync(e,t);if(/^v4\./.test(l))readdir=(e,t,r)=>n.readdir(e,r);const chownrKid=(e,t,r,o,a)=>{if(typeof t==="string")return n.lstat(s.resolve(e,t),((n,s)=>{if(n)return a(n);s.name=t;chownrKid(e,s,r,o,a)}));if(t.isDirectory()){chownr(s.resolve(e,t.name),r,o,(u=>{if(u)return a(u);const l=s.resolve(e,t.name);n[i](l,r,o,c(l,r,o,a))}))}else{const u=s.resolve(e,t.name);n[i](u,r,o,c(u,r,o,a))}};const chownr=(e,t,r,s)=>{readdir(e,{withFileTypes:true},((o,a)=>{if(o&&o.code!=="ENOTDIR"&&o.code!=="ENOTSUP")return s(o);if(o||!a.length)return n[i](e,t,r,c(e,t,r,s));let u=a.length;let l=null;const then=o=>{if(l)return;if(o)return s(l=o);if(--u===0)return n[i](e,t,r,c(e,t,r,s))};a.forEach((n=>chownrKid(e,n,t,r,then)))}))};const chownrKidSync=(e,t,r,i)=>{if(typeof t==="string"){const r=n.lstatSync(s.resolve(e,t));r.name=t;t=r}if(t.isDirectory())chownrSync(s.resolve(e,t.name),r,i);u(s.resolve(e,t.name),r,i)};const chownrSync=(e,t,r)=>{let n;try{n=readdirSync(e,{withFileTypes:true})}catch(n){if(n&&n.code==="ENOTDIR"&&n.code!=="ENOTSUP")return u(e,t,r);throw n}if(n.length)n.forEach((n=>chownrKidSync(e,n,t,r)));return u(e,t,r)};e.exports=chownr;chownr.sync=chownrSync},5851:(e,t,r)=>{"use strict";var n=r(73837);var s=r(91918);var i=r(80922);var o=r(9779);var a=r(13836);var c=e.exports;c.isObject=function isObject(e){return a(e)||typeof e==="function"};c.has=function has(e,t){t=c.arrayify(t);var r=t.length;if(c.isObject(e)){for(var n in e){if(t.indexOf(n)>-1){return true}}var s=c.nativeKeys(e);return c.has(s,t)}if(Array.isArray(e)){var i=e;while(r--){if(i.indexOf(t[r])>-1){return true}}return false}throw new TypeError("expected an array or object.")};c.hasAll=function hasAll(e,t){t=c.arrayify(t);var r=t.length;while(r--){if(!c.has(e,t[r])){return false}}return true};c.arrayify=function arrayify(e){return e?Array.isArray(e)?e:[e]:[]};c.noop=function noop(){return};c.identity=function identity(e){return e};c.hasConstructor=function hasConstructor(e){return c.isObject(e)&&typeof e.constructor!=="undefined"};c.nativeKeys=function nativeKeys(e){if(!c.hasConstructor(e))return[];var t=Object.getOwnPropertyNames(e);if("caller"in e)t.push("caller");return t};c.getDescriptor=function getDescriptor(e,t){if(!c.isObject(e)){throw new TypeError("expected an object.")}if(typeof t!=="string"){throw new TypeError("expected key to be a string.")}return Object.getOwnPropertyDescriptor(e,t)};c.copyDescriptor=function copyDescriptor(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}if(typeof r!=="string"){throw new TypeError("expected name to be a string.")}var n=c.getDescriptor(t,r);if(n)Object.defineProperty(e,r,n)};c.copy=function copy(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=Object.getOwnPropertyNames(t);var s=Object.keys(t);var o=n.length,a;r=c.arrayify(r);while(o--){a=n[o];if(c.has(s,a)){i(e,a,t[a])}else if(!(a in e)&&!c.has(r,a)){c.copyDescriptor(e,t,a)}}};c.inherit=function inherit(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=[];for(var s in t){n.push(s);e[s]=t[s]}n=n.concat(c.arrayify(r));var i=t.prototype||t;var o=e.prototype||e;c.copy(o,i,n)};c.extend=function(){return o.apply(null,arguments)};c.bubble=function(e,t){t=t||[];e.bubble=function(r,n){if(Array.isArray(n)){t=s([],t,n)}var i=t.length;var o=-1;while(++o<i){var a=t[o];e.on(a,r.emit.bind(r,a))}c.bubble(r,t)}}},62806:(e,t,r)=>{"use strict";const n=r(12781).PassThrough;const s=r(94240);const cloneResponse=e=>{if(!(e&&e.pipe)){throw new TypeError("Parameter `response` must be a response stream.")}const t=new n;s(e,t);return e.pipe(t)};e.exports=cloneResponse},84506:(e,t,r)=>{"use strict";
32
+ */e.exports=function(e,t){if(e===null||typeof e==="undefined"){throw new TypeError("expected first argument to be an object.")}if(typeof t==="undefined"||typeof Symbol==="undefined"){return e}if(typeof Object.getOwnPropertySymbols!=="function"){return e}var r=Object.prototype.propertyIsEnumerable;var n=Object(e);var s=arguments.length,i=0;while(++i<s){var o=Object(arguments[i]);var a=Object.getOwnPropertySymbols(o);for(var c=0;c<a.length;c++){var u=a[c];if(r.call(o,u)){n[u]=o[u]}}}return n}},89239:(e,t,r)=>{var n=r(36862);function retry(e,t){function run(r,s){var i=t||{};if(!("randomize"in i)){i.randomize=true}var o=n.operation(i);function bail(e){s(e||new Error("Aborted"))}function onError(e,t){if(e.bail){bail(e);return}if(!o.retry(e)){s(o.mainError())}else if(i.onRetry){i.onRetry(e,t)}}function runAttempt(t){var n;try{n=e(bail,t)}catch(e){onError(e,t);return}Promise.resolve(n).then(r).catch((function catchIt(e){onError(e,t)}))}o.attempt(runAttempt)}return new Promise(run)}e.exports=retry},58383:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(82361));function arrayMove(e,t,r,n,s){for(let i=0;i<s;++i){r[i+n]=e[i+t];e[i+t]=void 0}}function pow2AtLeast(e){e=e>>>0;e=e-1;e=e|e>>1;e=e|e>>2;e=e|e>>4;e=e|e>>8;e=e|e>>16;return e+1}function getCapacity(e){return pow2AtLeast(Math.min(Math.max(16,e),1073741824))}class Deque{constructor(e){this._capacity=getCapacity(e);this._length=0;this._front=0;this.arr=[]}push(e){const t=this._length;this.checkCapacity(t+1);const r=this._front+t&this._capacity-1;this.arr[r]=e;this._length=t+1;return t+1}pop(){const e=this._length;if(e===0){return void 0}const t=this._front+e-1&this._capacity-1;const r=this.arr[t];this.arr[t]=void 0;this._length=e-1;return r}shift(){const e=this._length;if(e===0){return void 0}const t=this._front;const r=this.arr[t];this.arr[t]=void 0;this._front=t+1&this._capacity-1;this._length=e-1;return r}get length(){return this._length}checkCapacity(e){if(this._capacity<e){this.resizeTo(getCapacity(this._capacity*1.5+16))}}resizeTo(e){const t=this._capacity;this._capacity=e;const r=this._front;const n=this._length;if(r+n>t){const e=r+n&t-1;arrayMove(this.arr,0,this.arr,t,e)}}}class ReleaseEmitter extends s.default{}function isFn(e){return typeof e==="function"}function defaultInit(){return"1"}class Sema{constructor(e,{initFn:t=defaultInit,pauseFn:r,resumeFn:n,capacity:s=10}={}){if(isFn(r)!==isFn(n)){throw new Error("pauseFn and resumeFn must be both set for pausing")}this.nrTokens=e;this.free=new Deque(e);this.waiting=new Deque(s);this.releaseEmitter=new ReleaseEmitter;this.noTokens=t===defaultInit;this.pauseFn=r;this.resumeFn=n;this.paused=false;this.releaseEmitter.on("release",(e=>{const t=this.waiting.shift();if(t){t.resolve(e)}else{if(this.resumeFn&&this.paused){this.paused=false;this.resumeFn()}this.free.push(e)}}));for(let r=0;r<e;r++){this.free.push(t())}}async acquire(){let e=this.free.pop();if(e!==void 0){return e}return new Promise(((e,t)=>{if(this.pauseFn&&!this.paused){this.paused=true;this.pauseFn()}this.waiting.push({resolve:e,reject:t})}))}release(e){this.releaseEmitter.emit("release",this.noTokens?"1":e)}drain(){const e=new Array(this.nrTokens);for(let t=0;t<this.nrTokens;t++){e[t]=this.acquire()}return Promise.all(e)}nrWaiting(){return this.waiting.length}}t.Sema=Sema;function RateLimit(e,{timeUnit:t=1e3,uniformDistribution:r=false}={}){const n=new Sema(r?1:e);const s=r?t/e:t;return async function rl(){await n.acquire();setTimeout((()=>n.release()),s)}}t.RateLimit=RateLimit},44909:e=>{"use strict";function atob(e){return Buffer.from(e,"base64").toString("binary")}e.exports=atob.atob=atob},83005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NOOP=t.LIMIT_FILES_DESCRIPTORS=t.LIMIT_BASENAME_LENGTH=t.IS_USER_ROOT=t.IS_POSIX=t.DEFAULT_TIMEOUT_SYNC=t.DEFAULT_TIMEOUT_ASYNC=t.DEFAULT_WRITE_OPTIONS=t.DEFAULT_READ_OPTIONS=t.DEFAULT_FOLDER_MODE=t.DEFAULT_FILE_MODE=t.DEFAULT_ENCODING=void 0;const r="utf8";t.DEFAULT_ENCODING=r;const n=438;t.DEFAULT_FILE_MODE=n;const s=511;t.DEFAULT_FOLDER_MODE=s;const i={};t.DEFAULT_READ_OPTIONS=i;const o={};t.DEFAULT_WRITE_OPTIONS=o;const a=5e3;t.DEFAULT_TIMEOUT_ASYNC=a;const c=100;t.DEFAULT_TIMEOUT_SYNC=c;const u=!!process.getuid;t.IS_POSIX=u;const l=process.getuid?!process.getuid():false;t.IS_USER_ROOT=l;const h=128;t.LIMIT_BASENAME_LENGTH=h;const p=1e4;t.LIMIT_FILES_DESCRIPTORS=p;const NOOP=()=>{};t.NOOP=NOOP},33809:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeFileSync=t.writeFile=t.readFileSync=t.readFile=void 0;const n=r(71017);const s=r(83005);const i=r(79142);const o=r(73716);const a=r(99063);const c=r(17281);function readFile(e,t=s.DEFAULT_READ_OPTIONS){var r;if(o.default.isString(t))return readFile(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:s.DEFAULT_TIMEOUT_ASYNC);return i.default.readFileRetry(n)(e,t)}t.readFile=readFile;function readFileSync(e,t=s.DEFAULT_READ_OPTIONS){var r;if(o.default.isString(t))return readFileSync(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:s.DEFAULT_TIMEOUT_SYNC);return i.default.readFileSyncRetry(n)(e,t)}t.readFileSync=readFileSync;const writeFile=(e,t,r,n)=>{if(o.default.isFunction(r))return writeFile(e,t,s.DEFAULT_WRITE_OPTIONS,r);const i=writeFileAsync(e,t,r);if(n)i.then(n,n);return i};t.writeFile=writeFile;const writeFileAsync=async(e,t,r=s.DEFAULT_WRITE_OPTIONS)=>{var u;if(o.default.isString(r))return writeFileAsync(e,t,{encoding:r});const l=Date.now()+((u=r.timeout)!==null&&u!==void 0?u:s.DEFAULT_TIMEOUT_ASYNC);let h=null,p=null,d=null,y=null,g=null;try{if(r.schedule)h=await r.schedule(e);p=await a.default.schedule(e);e=await i.default.realpathAttempt(e)||e;[y,d]=c.default.get(e,r.tmpCreate||c.default.create,!(r.tmpPurge===false));const u=s.IS_POSIX&&o.default.isUndefined(r.chown),v=o.default.isUndefined(r.mode);if(u||v){const t=await i.default.statAttempt(e);if(t){r={...r};if(u)r.chown={uid:t.uid,gid:t.gid};if(v)r.mode=t.mode}}const b=n.dirname(e);await i.default.mkdirAttempt(b,{mode:s.DEFAULT_FOLDER_MODE,recursive:true});g=await i.default.openRetry(l)(y,"w",r.mode||s.DEFAULT_FILE_MODE);if(r.tmpCreated)r.tmpCreated(y);if(o.default.isString(t)){await i.default.writeRetry(l)(g,t,0,r.encoding||s.DEFAULT_ENCODING)}else if(!o.default.isUndefined(t)){await i.default.writeRetry(l)(g,t,0,t.length,0)}if(r.fsync!==false){if(r.fsyncWait!==false){await i.default.fsyncRetry(l)(g)}else{i.default.fsyncAttempt(g)}}await i.default.closeRetry(l)(g);g=null;if(r.chown)await i.default.chownAttempt(y,r.chown.uid,r.chown.gid);if(r.mode)await i.default.chmodAttempt(y,r.mode);try{await i.default.renameRetry(l)(y,e)}catch(t){if(t.code!=="ENAMETOOLONG")throw t;await i.default.renameRetry(l)(y,c.default.truncate(e))}d();y=null}finally{if(g)await i.default.closeAttempt(g);if(y)c.default.purge(y);if(h)h();if(p)p()}};const writeFileSync=(e,t,r=s.DEFAULT_WRITE_OPTIONS)=>{var a;if(o.default.isString(r))return writeFileSync(e,t,{encoding:r});const u=Date.now()+((a=r.timeout)!==null&&a!==void 0?a:s.DEFAULT_TIMEOUT_SYNC);let l=null,h=null,p=null;try{e=i.default.realpathSyncAttempt(e)||e;[h,l]=c.default.get(e,r.tmpCreate||c.default.create,!(r.tmpPurge===false));const a=s.IS_POSIX&&o.default.isUndefined(r.chown),d=o.default.isUndefined(r.mode);if(a||d){const t=i.default.statSyncAttempt(e);if(t){r={...r};if(a)r.chown={uid:t.uid,gid:t.gid};if(d)r.mode=t.mode}}const y=n.dirname(e);i.default.mkdirSyncAttempt(y,{mode:s.DEFAULT_FOLDER_MODE,recursive:true});p=i.default.openSyncRetry(u)(h,"w",r.mode||s.DEFAULT_FILE_MODE);if(r.tmpCreated)r.tmpCreated(h);if(o.default.isString(t)){i.default.writeSyncRetry(u)(p,t,0,r.encoding||s.DEFAULT_ENCODING)}else if(!o.default.isUndefined(t)){i.default.writeSyncRetry(u)(p,t,0,t.length,0)}if(r.fsync!==false){if(r.fsyncWait!==false){i.default.fsyncSyncRetry(u)(p)}else{i.default.fsyncAttempt(p)}}i.default.closeSyncRetry(u)(p);p=null;if(r.chown)i.default.chownSyncAttempt(h,r.chown.uid,r.chown.gid);if(r.mode)i.default.chmodSyncAttempt(h,r.mode);try{i.default.renameSyncRetry(u)(h,e)}catch(t){if(t.code!=="ENAMETOOLONG")throw t;i.default.renameSyncRetry(u)(h,c.default.truncate(e))}l();h=null}finally{if(p)i.default.closeSyncAttempt(p);if(h)c.default.purge(h)}};t.writeFileSync=writeFileSync},5352:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.attemptifySync=t.attemptifyAsync=void 0;const n=r(83005);const attemptifyAsync=(e,t=n.NOOP)=>function(){return e.apply(undefined,arguments).catch(t)};t.attemptifyAsync=attemptifyAsync;const attemptifySync=(e,t=n.NOOP)=>function(){try{return e.apply(undefined,arguments)}catch(e){return t(e)}};t.attemptifySync=attemptifySync},79142:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(57147);const s=r(73837);const i=r(5352);const o=r(65386);const a=r(15855);const c={chmodAttempt:i.attemptifyAsync(s.promisify(n.chmod),o.default.onChangeError),chownAttempt:i.attemptifyAsync(s.promisify(n.chown),o.default.onChangeError),closeAttempt:i.attemptifyAsync(s.promisify(n.close)),fsyncAttempt:i.attemptifyAsync(s.promisify(n.fsync)),mkdirAttempt:i.attemptifyAsync(s.promisify(n.mkdir)),realpathAttempt:i.attemptifyAsync(s.promisify(n.realpath)),statAttempt:i.attemptifyAsync(s.promisify(n.stat)),unlinkAttempt:i.attemptifyAsync(s.promisify(n.unlink)),closeRetry:a.retryifyAsync(s.promisify(n.close),o.default.isRetriableError),fsyncRetry:a.retryifyAsync(s.promisify(n.fsync),o.default.isRetriableError),openRetry:a.retryifyAsync(s.promisify(n.open),o.default.isRetriableError),readFileRetry:a.retryifyAsync(s.promisify(n.readFile),o.default.isRetriableError),renameRetry:a.retryifyAsync(s.promisify(n.rename),o.default.isRetriableError),statRetry:a.retryifyAsync(s.promisify(n.stat),o.default.isRetriableError),writeRetry:a.retryifyAsync(s.promisify(n.write),o.default.isRetriableError),chmodSyncAttempt:i.attemptifySync(n.chmodSync,o.default.onChangeError),chownSyncAttempt:i.attemptifySync(n.chownSync,o.default.onChangeError),closeSyncAttempt:i.attemptifySync(n.closeSync),mkdirSyncAttempt:i.attemptifySync(n.mkdirSync),realpathSyncAttempt:i.attemptifySync(n.realpathSync),statSyncAttempt:i.attemptifySync(n.statSync),unlinkSyncAttempt:i.attemptifySync(n.unlinkSync),closeSyncRetry:a.retryifySync(n.closeSync,o.default.isRetriableError),fsyncSyncRetry:a.retryifySync(n.fsyncSync,o.default.isRetriableError),openSyncRetry:a.retryifySync(n.openSync,o.default.isRetriableError),readFileSyncRetry:a.retryifySync(n.readFileSync,o.default.isRetriableError),renameSyncRetry:a.retryifySync(n.renameSync,o.default.isRetriableError),statSyncRetry:a.retryifySync(n.statSync,o.default.isRetriableError),writeSyncRetry:a.retryifySync(n.writeSync,o.default.isRetriableError)};t["default"]=c},65386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(83005);const s={isChangeErrorOk:e=>{const{code:t}=e;if(t==="ENOSYS")return true;if(!n.IS_USER_ROOT&&(t==="EINVAL"||t==="EPERM"))return true;return false},isRetriableError:e=>{const{code:t}=e;if(t==="EMFILE"||t==="ENFILE"||t==="EAGAIN"||t==="EBUSY"||t==="EACCESS"||t==="EACCS"||t==="EPERM")return true;return false},onChangeError:e=>{if(s.isChangeErrorOk(e))return;throw e}};t["default"]=s},73716:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={isFunction:e=>typeof e==="function",isString:e=>typeof e==="string",isUndefined:e=>typeof e==="undefined"};t["default"]=r},15855:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retryifySync=t.retryifyAsync=void 0;const n=r(370);const retryifyAsync=(e,t)=>function(r){return function attempt(){return n.default.schedule().then((n=>e.apply(undefined,arguments).then((e=>{n();return e}),(e=>{n();if(Date.now()>=r)throw e;if(t(e)){const e=Math.round(100+400*Math.random()),t=new Promise((t=>setTimeout(t,e)));return t.then((()=>attempt.apply(undefined,arguments)))}throw e}))))}};t.retryifyAsync=retryifyAsync;const retryifySync=(e,t)=>function(r){return function attempt(){try{return e.apply(undefined,arguments)}catch(e){if(Date.now()>r)throw e;if(t(e))return attempt.apply(undefined,arguments);throw e}}};t.retryifySync=retryifySync},370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(83005);const s={interval:25,intervalId:undefined,limit:n.LIMIT_FILES_DESCRIPTORS,queueActive:new Set,queueWaiting:new Set,init:()=>{if(s.intervalId)return;s.intervalId=setInterval(s.tick,s.interval)},reset:()=>{if(!s.intervalId)return;clearInterval(s.intervalId);delete s.intervalId},add:e=>{s.queueWaiting.add(e);if(s.queueActive.size<s.limit/2){s.tick()}else{s.init()}},remove:e=>{s.queueWaiting.delete(e);s.queueActive.delete(e)},schedule:()=>new Promise((e=>{const cleanup=()=>s.remove(resolver);const resolver=()=>e(cleanup);s.add(resolver)})),tick:()=>{if(s.queueActive.size>=s.limit)return;if(!s.queueWaiting.size)return s.reset();for(const e of s.queueWaiting){if(s.queueActive.size>=s.limit)break;s.queueWaiting.delete(e);s.queueActive.add(e);e()}}};t["default"]=s},99063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={};const n={next:e=>{const t=r[e];if(!t)return;t.shift();const s=t[0];if(s){s((()=>n.next(e)))}else{delete r[e]}},schedule:e=>new Promise((t=>{let s=r[e];if(!s)s=r[e]=[];s.push(t);if(s.length>1)return;t((()=>n.next(e)))}))};t["default"]=n},17281:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(71017);const s=r(83005);const i=r(79142);const o={store:{},create:e=>{const t=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),r=Date.now().toString().slice(-10),n="tmp-",s=`.${n}${r}${t}`,i=`${e}${s}`;return i},get:(e,t,r=true)=>{const n=o.truncate(t(e));if(n in o.store)return o.get(e,t,r);o.store[n]=r;const disposer=()=>delete o.store[n];return[n,disposer]},purge:e=>{if(!o.store[e])return;delete o.store[e];i.default.unlinkAttempt(e)},purgeSync:e=>{if(!o.store[e])return;delete o.store[e];i.default.unlinkSyncAttempt(e)},purgeSyncAll:()=>{for(const e in o.store){o.purgeSync(e)}},truncate:e=>{const t=n.basename(e);if(t.length<=s.LIMIT_BASENAME_LENGTH)return e;const r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!r)return e;const i=t.length-s.LIMIT_BASENAME_LENGTH;return`${e.slice(0,-t.length)}${r[1]}${r[2].slice(0,-i)}${r[3]}`}};process.on("exit",o.purgeSyncAll);t["default"]=o},84442: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,s,i,o,a;var c=r.indexOf(e);var u=r.indexOf(t,c+1);var l=c;if(c>=0&&u>0){n=[];i=r.length;while(l>=0&&!a){if(l==c){n.push(l);c=r.indexOf(e,l+1)}else if(n.length==1){a=[n.pop(),u]}else{s=n.pop();if(s<i){i=s;o=u}u=r.indexOf(t,l+1)}l=c<u&&c>=0?c:u}if(n.length){a=[i,o]}}return a}},53536:(e,t,r)=>{"use strict";var n=r(73837);var s=r(88431);var i=r(58628);var o=r(21921);var a=r(13836);var c=r(34987);var u=r(29617);var l=r(5851);function namespace(e){var t=e?i.namespace(e):i;var r=[];function Base(e,r){if(!(this instanceof Base)){return new Base(e,r)}t.call(this,e);this.is("base");this.initBase(e,r)}n.inherits(Base,t);o(Base);Base.prototype.initBase=function(t,n){this.options=c({},this.options,n);this.cache=this.cache||{};this.define("registered",{});if(e)this[e]={};this.define("_callbacks",this._callbacks);if(a(t)){this.visit("set",t)}Base.run(this,"use",r)};Base.prototype.is=function(e){if(typeof e!=="string"){throw new TypeError("expected name to be a string")}this.define("is"+u(e),true);this.define("_name",e);this.define("_appname",e);return this};Base.prototype.isRegistered=function(e,t){if(this.registered.hasOwnProperty(e)){return true}if(t!==false){this.registered[e]=true;this.emit("plugin",e)}return false};Base.prototype.use=function(e){e.call(this,this);return this};Base.prototype.define=function(e,t){if(a(e)){return this.visit("define",e)}s(this,e,t);return this};Base.prototype.mixin=function(e,t){Base.prototype[e]=t;return this};Base.prototype.mixins=Base.prototype.mixins||[];Object.defineProperty(Base.prototype,"base",{configurable:true,get:function(){return this.parent?this.parent.base:this}});s(Base,"use",(function(e){r.push(e);return Base}));s(Base,"run",(function(e,t,r){var n=r.length,s=0;while(n--){e[t](r[s++])}return Base}));s(Base,"extend",l.extend(Base,(function(e,t){e.prototype.mixins=e.prototype.mixins||[];s(e,"mixin",(function(t){var r=t(e.prototype,e);if(typeof r==="function"){e.prototype.mixins.push(r)}return e}));s(e,"mixins",(function(t){Base.run(t,"mixin",e.prototype.mixins);return e}));e.prototype.mixin=function(t,r){e.prototype[t]=r;return this};return Base})));s(Base,"mixin",(function(e){var t=e(Base.prototype,Base);if(typeof t==="function"){Base.prototype.mixins.push(t)}return Base}));s(Base,"mixins",(function(e){Base.run(e,"mixin",Base.prototype.mixins);return Base}));s(Base,"inherit",l.inherit);s(Base,"bubble",l.bubble);return Base}e.exports=namespace();e.exports.namespace=namespace},54800:(e,t,r)=>{var n=r(47381);var s=r(84442);e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function unescapeBraces(e){return e.split(i).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=s("{","}",e);if(!r)return e.split(",");var n=r.pre;var i=r.body;var o=r.post;var a=n.split(",");a[a.length-1]+="{"+i+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var i=s("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var u=o||c;var l=i.body.indexOf(",")>=0;if(!u&&!l){if(i.post.match(/,.*\}/)){e=i.pre+"{"+i.body+a+i.post;return expand(e)}return[e]}var h;if(u){h=i.body.split(/\.\./)}else{h=parseCommaParts(i.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var p=i.post.length?expand(i.post,false):[""];return p.map((function(e){return i.pre+h[0]+e}))}}}var d=i.pre;var p=i.post.length?expand(i.post,false):[""];var y;if(u){var g=numeric(h[0]);var v=numeric(h[1]);var b=Math.max(h[0].length,h[1].length);var w=h.length==3?Math.abs(numeric(h[2])):1;var S=lte;var x=v<g;if(x){w*=-1;S=gte}var O=h.some(isPadded);y=[];for(var R=g;S(R,v);R+=w){var k;if(c){k=String.fromCharCode(R);if(k==="\\")k=""}else{k=String(R);if(O){var A=b-k.length;if(A>0){var P=new Array(A+1).join("0");if(R<0)k="-"+P+k.slice(1);else k=P+k}}}y.push(k)}}else{y=n(h,(function(e){return expand(e,false)}))}for(var C=0;C<y.length;C++){for(var $=0;$<p.length;$++){var T=d+y[C]+p[$];if(!t||u||T)r.push(T)}}return r}},97847:(e,t,r)=>{var n=r(84442);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var i="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var a="\0COMMA"+Math.random()+"\0";var c="\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(s).split("\\{").join(i).split("\\}").join(o).split("\\,").join(a).split("\\.").join(c)}function unescapeBraces(e){return e.split(s).join("\\").split(i).join("{").split(o).join("}").split(a).join(",").split(c).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=n("{","}",e);if(!r)return e.split(",");var s=r.pre;var i=r.body;var o=r.post;var a=s.split(",");a[a.length-1]+="{"+i+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}t.push.apply(t,a);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 s=n("{","}",e);if(!s)return[e];var i=s.pre;var a=s.post.length?expand(s.post,false):[""];if(/\$$/.test(s.pre)){for(var c=0;c<a.length;c++){var u=i+"{"+s.body+"}"+a[c];r.push(u)}}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var p=l||h;var d=s.body.indexOf(",")>=0;if(!p&&!d){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+o+s.post;return expand(e)}return[e]}var y;if(p){y=s.body.split(/\.\./)}else{y=parseCommaParts(s.body);if(y.length===1){y=expand(y[0],false).map(embrace);if(y.length===1){return a.map((function(e){return s.pre+y[0]+e}))}}}var g;if(p){var v=numeric(y[0]);var b=numeric(y[1]);var w=Math.max(y[0].length,y[1].length);var S=y.length==3?Math.abs(numeric(y[2])):1;var x=lte;var O=b<v;if(O){S*=-1;x=gte}var R=y.some(isPadded);g=[];for(var k=v;x(k,b);k+=S){var A;if(h){A=String.fromCharCode(k);if(A==="\\")A=""}else{A=String(k);if(R){var P=w-A.length;if(P>0){var C=new Array(P+1).join("0");if(k<0)A="-"+C+A.slice(1);else A=C+A}}}g.push(A)}}else{g=[];for(var $=0;$<y.length;$++){g.push.apply(g,expand(y[$],false))}}for(var $=0;$<g.length;$++){for(var c=0;c<a.length;c++){var u=i+g[$]+a[c];if(!t||p||u)r.push(u)}}}return r}},3876:(e,t,r)=>{"use strict";var n=r(15912);var s=r(89424);var i=r(50960);var o=r(2618);var a=r(57805);var c=r(53954);var u=r(73628);var l=1024*64;var h={};function braces(e,t){var r=u.createKey(String(e),t);var n=[];var i=t&&t.cache===false;if(!i&&h.hasOwnProperty(r)){return h[r]}if(Array.isArray(e)){for(var o=0;o<e.length;o++){n.push.apply(n,braces.create(e[o],t))}}else{n=braces.create(e,t)}if(t&&t.nodupes===true){n=s(n)}if(!i){h[r]=n}return n}braces.expand=function(e,t){return braces.create(e,i({},t,{expand:true}))};braces.optimize=function(e,t){return braces.create(e,t)};braces.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=t&&t.maxLength||l;if(e.length>=r){throw new Error("expected pattern to be less than "+r+" characters")}function create(){if(e===""||e.length<3){return[e]}if(u.isEmptySets(e)){return[]}if(u.isQuotedString(e)){return[e.slice(1,-1)]}var r=new c(t);var n=!t||t.expand!==true?r.optimize(e,t):r.expand(e,t);var i=n.output;if(t&&t.noempty===true){i=i.filter(Boolean)}if(t&&t.nodupes===true){i=s(i)}Object.defineProperty(i,"result",{enumerable:false,value:n});return i}return memoize("create",e,t,create)};braces.makeRe=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=t&&t.maxLength||l;if(e.length>=r){throw new Error("expected pattern to be less than "+r+" characters")}function makeRe(){var r=braces(e,t);var s=i({strictErrors:false},t);return n(r,s)}return memoize("makeRe",e,t,makeRe)};braces.parse=function(e,t){var r=new c(t);return r.parse(e,t)};braces.compile=function(e,t){var r=new c(t);return r.compile(e,t)};braces.clearCache=function(){h=braces.cache={}};function memoize(e,t,r,n){var s=u.createKey(e+":"+t,r);var i=r&&r.cache===false;if(i){braces.clearCache();return n(t,r)}if(h.hasOwnProperty(s)){return h[s]}var o=n(t,r);h[s]=o;return o}braces.Braces=c;braces.compilers=o;braces.parsers=a;braces.cache=h;e.exports=braces},53954:(e,t,r)=>{"use strict";var n=r(50960);var s=r(30267);var i=r(2618);var o=r(57805);var a=r(73628);function Braces(e){this.options=n({},e)}Braces.prototype.init=function(e){if(this.isInitialized)return;this.isInitialized=true;var t=a.createOptions({},this.options,e);this.snapdragon=this.options.snapdragon||new s(t);this.compiler=this.snapdragon.compiler;this.parser=this.snapdragon.parser;i(this.snapdragon,t);o(this.snapdragon,t);a.define(this.snapdragon,"parse",(function(e,t){var r=s.prototype.parse.apply(this,arguments);this.parser.ast.input=e;var n=this.parser.stack;while(n.length){addParent({type:"brace.close",val:""},n.pop())}function addParent(e,t){a.define(e,"parent",t);t.nodes.push(e)}a.define(r,"parser",this.parser);return r}))};Braces.prototype.parse=function(e,t){if(e&&typeof e==="object"&&e.nodes)return e;this.init(t);return this.snapdragon.parse(e,t)};Braces.prototype.compile=function(e,t){if(typeof e==="string"){e=this.parse(e,t)}else{this.init(t)}return this.snapdragon.compile(e,t)};Braces.prototype.expand=function(e){var t=this.parse(e,{expand:true});return this.compile(t,{expand:true})};Braces.prototype.optimize=function(e){var t=this.parse(e,{optimize:true});return this.compile(t,{optimize:true})};e.exports=Braces},2618:(e,t,r)=>{"use strict";var n=r(73628);e.exports=function(e,t){e.compiler.set("bos",(function(){if(this.output)return;this.ast.queue=isEscaped(this.ast)?[this.ast.val]:[];this.ast.count=1})).set("bracket",(function(e){var t=e.close;var r=!e.escaped?"[":"\\[";var s=e.negated;var i=e.inner;i=i.replace(/\\(?=[\\\w]|$)/g,"\\\\");if(i==="]-"){i="\\]\\-"}if(s&&i.indexOf(".")===-1){i+="."}if(s&&i.indexOf("/")===-1){i+="/"}var o=r+s+i+t;var a=e.parent.queue;var c=n.arrayify(a.pop());a.push(n.join(c,o));a.push.apply(a,[])})).set("brace",(function(e){e.queue=isEscaped(e)?[e.val]:[];e.count=1;return this.mapVisit(e.nodes)})).set("brace.open",(function(e){e.parent.open=e.val})).set("text",(function(e){var r=e.parent.queue;var s=e.escaped;var i=[e.val];if(e.optimize===false){t=n.extend({},t,{optimize:false})}if(e.multiplier>1){e.parent.count*=e.multiplier}if(t.quantifiers===true&&n.isQuantifier(e.val)){s=true}else if(e.val.length>1){if(isType(e.parent,"brace")&&!isEscaped(e)){var o=n.expand(e.val,t);i=o.segs;if(o.isOptimized){e.parent.isOptimized=true}if(!i.length){var a=o.val||e.val;if(t.unescape!==false){a=a.replace(/\\([,.])/g,"$1");a=a.replace(/["'`]/g,"")}i=[a];s=true}}}else if(e.val===","){if(t.expand){e.parent.queue.push([""]);i=[""]}else{i=["|"]}}else{s=true}if(s&&isType(e.parent,"brace")){if(e.parent.nodes.length<=4&&e.parent.count===1){e.parent.escaped=true}else if(e.parent.length<=3){e.parent.escaped=true}}if(!hasQueue(e.parent)){e.parent.queue=i;return}var c=n.arrayify(r.pop());if(e.parent.count>1&&t.expand){c=multiply(c,e.parent.count);e.parent.count=1}r.push(n.join(n.flatten(c),i.shift()));r.push.apply(r,i)})).set("brace.close",(function(e){var r=e.parent.queue;var s=e.parent.parent;var i=s.queue.pop();var o=e.parent.open;var a=e.val;if(o&&a&&isOptimized(e,t)){o="(";a=")"}var c=n.last(r);if(e.parent.count>1&&t.expand){c=multiply(r.pop(),e.parent.count);e.parent.count=1;r.push(c)}if(a&&typeof c==="string"&&c.length===1){o="";a=""}if((isLiteralBrace(e,t)||noInner(e))&&!e.parent.hasEmpty){r.push(n.join(o,r.pop()||""));r=n.flatten(n.join(r,a))}if(typeof i==="undefined"){s.queue=[r]}else{s.queue.push(n.flatten(n.join(i,r)))}})).set("eos",(function(e){if(this.input)return;if(t.optimize!==false){this.output=n.last(n.flatten(this.ast.queue))}else if(Array.isArray(n.last(this.ast.queue))){this.output=n.flatten(this.ast.queue.pop())}else{this.output=n.flatten(this.ast.queue)}if(e.parent.count>1&&t.expand){this.output=multiply(this.output,e.parent.count)}this.output=n.arrayify(this.output);this.ast.queue=[]}))};function multiply(e,t,r){return n.flatten(n.repeat(n.arrayify(e),t))}function isEscaped(e){return e.escaped===true}function isOptimized(e,t){if(e.parent.isOptimized)return true;return isType(e.parent,"brace")&&!isEscaped(e.parent)&&t.expand!==true}function isLiteralBrace(e,t){return isEscaped(e.parent)||t.optimize!==false}function noInner(e,t){if(e.parent.queue.length===1){return true}var r=e.parent.nodes;return r.length===3&&isType(r[0],"brace.open")&&!isType(r[1],"text")&&isType(r[2],"brace.close")}function isType(e,t){return typeof e!=="undefined"&&e.type===t}function hasQueue(e){return Array.isArray(e.queue)&&e.queue.length}},57805:(e,t,r)=>{"use strict";var n=r(21541);var s=r(73628);e.exports=function(e,t){e.parser.set("bos",(function(){if(!this.parsed){this.ast=this.nodes[0]=new n(this.ast)}})).set("escape",(function(){var e=this.position();var r=this.match(/^(?:\\(.)|\$\{)/);if(!r)return;var i=this.prev();var o=s.last(i.nodes);var a=e(new n({type:"text",multiplier:1,val:r[0]}));if(a.val==="\\\\"){return a}if(a.val==="${"){var c=this.input;var u=-1;var l;while(l=c[++u]){this.consume(1);a.val+=l;if(l==="\\"){a.val+=c[++u];continue}if(l==="}"){break}}}if(this.options.unescape!==false){a.val=a.val.replace(/\\([{}])/g,"$1")}if(o.val==='"'&&this.input.charAt(0)==='"'){o.val=a.val;this.consume(1);return}return concatNodes.call(this,e,a,i,t)})).set("bracket",(function(){var e=this.isInside("brace");var t=this.position();var r=this.match(/^(?:\[([!^]?)([^\]]{2,}|\]-)(\]|[^*+?]+)|\[)/);if(!r)return;var s=this.prev();var i=r[0];var o=r[1]?"^":"";var a=r[2]||"";var c=r[3]||"";if(e&&s.type==="brace"){s.text=s.text||"";s.text+=i}var u=this.input.slice(0,2);if(a===""&&u==="\\]"){a+=u;this.consume(2);var l=this.input;var h=-1;var p;while(p=l[++h]){this.consume(1);if(p==="]"){c=p;break}a+=p}}return t(new n({type:"bracket",val:i,escaped:c!=="]",negated:o,inner:a,close:c}))})).set("multiplier",(function(){var e=this.isInside("brace");var r=this.position();var s=this.match(/^\{((?:,|\{,+\})+)\}/);if(!s)return;this.multiplier=true;var i=this.prev();var o=s[0];if(e&&i.type==="brace"){i.text=i.text||"";i.text+=o}var a=r(new n({type:"text",multiplier:1,match:s,val:o}));return concatNodes.call(this,r,a,i,t)})).set("brace.open",(function(){var e=this.position();var t=this.match(/^\{(?!(?:[^\\}]?|,+)\})/);if(!t)return;var r=this.prev();var i=s.last(r.nodes);if(i&&i.val&&isExtglobChar(i.val.slice(-1))){i.optimize=false}var o=e(new n({type:"brace.open",val:t[0]}));var a=e(new n({type:"brace",nodes:[]}));a.push(o);r.push(a);this.push("brace",a)})).set("brace.close",(function(){var e=this.position();var t=this.match(/^\}/);if(!t||!t[0])return;var r=this.pop("brace");var i=e(new n({type:"brace.close",val:t[0]}));if(!this.isType(r,"brace")){if(this.options.strict){throw new Error('missing opening "{"')}i.type="text";i.multiplier=0;i.escaped=true;return i}var o=this.prev();var a=s.last(o.nodes);if(a.text){var c=s.last(a.nodes);if(c.val===")"&&/[!@*?+]\(/.test(a.text)){var u=a.nodes[0];var l=a.nodes[1];if(u.type==="brace.open"&&l&&l.type==="text"){l.optimize=false}}}if(r.nodes.length>2){var h=r.nodes[1];if(h.type==="text"&&h.val===","){r.nodes.splice(1,1);r.nodes.push(h)}}r.push(i)})).set("boundary",(function(){var e=this.position();var t=this.match(/^[$^](?!\{)/);if(!t)return;return e(new n({type:"text",val:t[0]}))})).set("nobrace",(function(){var e=this.isInside("brace");var t=this.position();var r=this.match(/^\{[^,]?\}/);if(!r)return;var s=this.prev();var i=r[0];if(e&&s.type==="brace"){s.text=s.text||"";s.text+=i}return t(new n({type:"text",multiplier:0,val:i}))})).set("text",(function(){var e=this.isInside("brace");var r=this.position();var s=this.match(/^((?!\\)[^${}[\]])+/);if(!s)return;var i=this.prev();var o=s[0];if(e&&i.type==="brace"){i.text=i.text||"";i.text+=o}var a=r(new n({type:"text",multiplier:1,val:o}));return concatNodes.call(this,r,a,i,t)}))};function isExtglobChar(e){return e==="!"||e==="@"||e==="*"||e==="?"||e==="+"}function concatNodes(e,t,r,n){t.orig=t.val;var i=this.prev();var o=s.last(i.nodes);var a=false;if(t.val.length>1){var c=t.val.charAt(0);var u=t.val.slice(-1);a=c==='"'&&u==='"'||c==="'"&&u==="'"||c==="`"&&u==="`"}if(a&&n.unescape!==false){t.val=t.val.slice(1,t.val.length-1);t.escaped=true}if(t.match){var l=t.match[1];if(!l||l.indexOf("}")===-1){l=t.match[0]}var h=l.replace(/\{/g,",").replace(/\}/g,"");t.multiplier*=h.length;t.val=""}var p=o.type==="text"&&o.multiplier===1&&t.multiplier===1&&t.val;if(p){o.val+=t.val;return}i.push(t)}},73628:(e,t,r)=>{"use strict";var n=r(63165);var s=e.exports;s.extend=r(50960);s.flatten=r(10906);s.isObject=r(13836);s.fillRange=r(47303);s.repeat=r(52224);s.unique=r(89424);s.define=function(e,t,r){Object.defineProperty(e,t,{writable:true,configurable:true,enumerable:false,value:r})};s.isEmptySets=function(e){return/^(?:\{,\})+$/.test(e)};s.isQuotedString=function(e){var t=e.charAt(0);if(t==="'"||t==='"'||t==="`"){return e.slice(-1)===t}return false};s.createKey=function(e,t){var r=e;if(typeof t==="undefined"){return r}var n=Object.keys(t);for(var s=0;s<n.length;s++){var i=n[s];r+=";"+i+"="+String(t[i])}return r};s.createOptions=function(e){var t=s.extend.apply(null,arguments);if(typeof t.expand==="boolean"){t.optimize=!t.expand}if(typeof t.optimize==="boolean"){t.expand=!t.optimize}if(t.optimize===true){t.makeRe=true}return t};s.join=function(e,t,r){r=r||{};e=s.arrayify(e);t=s.arrayify(t);if(!e.length)return t;if(!t.length)return e;var n=e.length;var i=-1;var o=[];while(++i<n){var a=e[i];if(Array.isArray(a)){for(var c=0;c<a.length;c++){a[c]=s.join(a[c],t,r)}o.push(a);continue}for(var u=0;u<t.length;u++){var l=t[u];if(Array.isArray(l)){o.push(s.join(a,l,r))}else{o.push(a+l)}}}return o};s.split=function(e,t){var r=s.extend({sep:","},t);if(typeof r.keepQuotes!=="boolean"){r.keepQuotes=true}if(r.unescape===false){r.keepEscaping=true}return n(e,r,s.escapeBrackets(r))};s.expand=function(e,t){var r=s.extend({rangeLimit:1e4},t);var n=s.split(e,r);var i={segs:n};if(s.isQuotedString(e)){return i}if(r.rangeLimit===true){r.rangeLimit=1e4}if(n.length>1){if(r.optimize===false){i.val=n[0];return i}i.segs=s.stringifyArray(i.segs)}else if(n.length===1){var o=e.split("..");if(o.length===1){i.val=i.segs[i.segs.length-1]||i.val||e;i.segs=[];return i}if(o.length===2&&o[0]===o[1]){i.escaped=true;i.val=o[0];i.segs=[];return i}if(o.length>1){if(r.optimize!==false){r.optimize=true;delete r.expand}if(r.optimize!==true){var a=Math.min(o[0],o[1]);var c=Math.max(o[0],o[1]);var u=o[2]||1;if(r.rangeLimit!==false&&(c-a)/u>=r.rangeLimit){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}}o.push(r);i.segs=s.fillRange.apply(null,o);if(!i.segs.length){i.escaped=true;i.val=e;return i}if(r.optimize===true){i.segs=s.stringifyArray(i.segs)}if(i.segs===""){i.val=e}else{i.val=i.segs[0]}return i}}else{i.val=e}return i};s.escapeBrackets=function(e){return function(t){if(t.escaped&&t.val==="b"){t.val="\\b";return}if(t.val!=="("&&t.val!=="[")return;var r=s.extend({},e);var n=[];var i=[];var o=[];var a=t.val;var c=t.str;var u=t.idx-1;while(++u<c.length){var l=c[u];if(l==="\\"){a+=(r.keepEscaping===false?"":l)+c[++u];continue}if(l==="("){i.push(l);o.push(l)}if(l==="["){n.push(l);o.push(l)}if(l===")"){i.pop();o.pop();if(!o.length){a+=l;break}}if(l==="]"){n.pop();o.pop();if(!o.length){a+=l;break}}a+=l}t.split=false;t.val=a.slice(1);t.idx=u}};s.isQuantifier=function(e){return/^(?:[0-9]?,[0-9]|[0-9],)$/.test(e)};s.stringifyArray=function(e){return[s.arrayify(e).join("|")]};s.arrayify=function(e){if(typeof e==="undefined"){return[]}if(typeof e==="string"){return[e]}return e};s.isString=function(e){return e!=null&&typeof e==="string"};s.last=function(e,t){return e[e.length-(t||1)]};s.escapeRegex=function(e){return e.replace(/\\?([!^*?()[\]{}+?/])/g,"\\$1")}},58628:(e,t,r)=>{"use strict";var n=r(13836);var s=r(21921);var i=r(84506);var o=r(54017);var a=r(54737);var c=r(16676);var u=r(50997);var l=r(81131);var h=r(50173);function namespace(e){function Cache(t){if(e){this[e]={}}if(t){this.set(t)}}s(Cache.prototype);Cache.prototype.set=function(t,r){if(Array.isArray(t)&&arguments.length===2){t=o(t)}if(n(t)||Array.isArray(t)){this.visit("set",t)}else{h(e?this[e]:this,t,r);this.emit("set",t,r)}return this};Cache.prototype.union=function(t,r){if(Array.isArray(t)&&arguments.length===2){t=o(t)}var n=e?this[e]:this;a(n,t,arrayify(r));this.emit("union",r);return this};Cache.prototype.get=function(t){t=o(arguments);var r=e?this[e]:this;var n=u(r,t);this.emit("get",t,n);return n};Cache.prototype.has=function(t){t=o(arguments);var r=e?this[e]:this;var n=u(r,t);var s=typeof n!=="undefined";this.emit("has",t,s);return s};Cache.prototype.del=function(t){if(Array.isArray(t)){this.visit("del",t)}else{c(e?this[e]:this,t);this.emit("del",t)}return this};Cache.prototype.clear=function(){if(e){this[e]={}}};Cache.prototype.visit=function(e,t){i(this,e,t);return this};return Cache}function arrayify(e){return e?Array.isArray(e)?e:[e]:[]}e.exports=namespace();e.exports.namespace=namespace},92468:(e,t,r)=>{"use strict";const{Resolver:n,V4MAPPED:s,ADDRCONFIG:i}=r(9523);const{promisify:o}=r(73837);const a=r(22037);const c=r(10055);const u=Symbol("cacheableLookupData");const l=Symbol("cacheableLookupInstance");const verifyAgent=e=>{if(!(e&&typeof e.createConnection==="function")){throw new Error("Expected an Agent instance as the first argument")}};const map4to6=e=>{for(const t of e){t.address=`::ffff:${t.address}`;t.family=6}};const getIfaceInfo=()=>{let e=false;let t=false;for(const r of Object.values(a.networkInterfaces())){for(const n of r){if(n.internal){continue}if(n.family==="IPv6"){t=true}else{e=true}if(e&&t){break}}}return{has4:e,has6:t}};class CacheableLookup{constructor({cacheAdapter:e,maxTtl:t=Infinity,resolver:r}={}){this.cache=new c({uri:typeof e==="string"&&e,store:typeof e!=="string"&&e,namespace:"cached-lookup"});this.maxTtl=t;this._resolver=r||new n;this._resolve4=o(this._resolver.resolve4.bind(this._resolver));this._resolve6=o(this._resolver.resolve6.bind(this._resolver));this._iface=getIfaceInfo();this.lookup=this.lookup.bind(this);this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,t,r){if(typeof t==="function"){r=t;t={}}this.lookupAsync(e,{...t,throwNotFound:true}).then((e=>{if(t.all){r(null,e)}else{r(null,e.address,e.family,e.expires,e.ttl)}})).catch(r)}async lookupAsync(e,t={}){let r;if(!t.family&&t.all){const[t,n]=await Promise.all([this.lookupAsync(e,{all:true,family:4}),this.lookupAsync(e,{all:true,family:6})]);r=[...t,...n]}else{r=await this.query(e,t.family||4);if(r.length===0&&t.family===6&&t.hints&s){r=await this.query(e,4);map4to6(r)}}if(t.hints&i){const{_iface:e}=this;r=r.filter((t=>t.family===6?e.has6:e.has4))}if(r.length===0&&t.throwNotFound){const t=new Error(`ENOTFOUND ${e}`);t.code="ENOTFOUND";t.hostname=e;throw t}const n=Date.now();r=r.filter((e=>e.ttl===0||n<e.expires));if(t.all){return r}if(r.length===1){return r[0]}if(r.length===0){return undefined}return this._getEntry(r)}async query(e,t){let r=await this.cache.get(`${e}:${t}`);if(!r){r=await this.queryAndCache(e,t)}return r}async queryAndCache(e,t){const r=t===4?this._resolve4:this._resolve6;const n=await r(e,{ttl:true});if(n===undefined){return[]}const s=Date.now();let i=0;for(const e of n){i=Math.max(i,e.ttl);e.family=t;e.expires=s+e.ttl*1e3}i=Math.min(this.maxTtl,i)*1e3;if(this.maxTtl!==0&&i!==0){await this.cache.set(`${e}:${t}`,n,i)}return n}_getEntry(e){return e[Math.floor(Math.random()*e.length)]}install(e){verifyAgent(e);if(u in e){throw new Error("CacheableLookup has been already installed")}e[u]=e.createConnection;e[l]=this;e.createConnection=(t,r)=>{if(!("lookup"in t)){t.lookup=this.lookup}return e[u](t,r)}}uninstall(e){verifyAgent(e);if(e[u]){if(e[l]!==this){throw new Error("The agent is not owned by this CacheableLookup instance")}e.createConnection=e[u];delete e[u];delete e[l]}}updateInterfaceInfo(){this._iface=getIfaceInfo()}}e.exports=CacheableLookup;e.exports["default"]=CacheableLookup},20190:(e,t,r)=>{"use strict";const n=r(82361);const s=r(57310);const i=r(89718);const o=r(61401);const a=r(91454);const c=r(85810);const u=r(14162);const l=r(62806);const h=r(10055);class CacheableRequest{constructor(e,t){if(typeof e!=="function"){throw new TypeError("Parameter `request` must be a function")}this.cache=new h({uri:typeof t==="string"&&t,store:typeof t!=="string"&&t,namespace:"cacheable-request"});return this.createCacheableRequest(e)}createCacheableRequest(e){return(t,r)=>{let h;if(typeof t==="string"){h=normalizeUrlObject(s.parse(t));t={}}else if(t instanceof s.URL){h=normalizeUrlObject(s.parse(t.toString()));t={}}else{const[e,...r]=(t.path||"").split("?");const n=r.length>0?`?${r.join("?")}`:"";h=normalizeUrlObject({...t,pathname:e,search:n})}t={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...t,...urlObjectToRequestOptions(h)};t.headers=u(t.headers);const p=new n;const d=i(s.format(h),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});const y=`${t.method}:${d}`;let g=false;let v=false;const makeRequest=t=>{v=true;let n=false;let s;const i=new Promise((e=>{s=()=>{if(!n){n=true;e()}}}));const handler=e=>{if(g&&!t.forceRefresh){e.status=e.statusCode;const r=a.fromObject(g.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();e=new c(g.statusCode,t,g.body,g.url);e.cachePolicy=r.policy;e.fromCache=true}}if(!e.fromCache){e.cachePolicy=new a(t,e,t);e.fromCache=false}let s;if(t.cache&&e.cachePolicy.storable()){s=l(e);(async()=>{try{const r=o.buffer(e);await Promise.race([i,new Promise((t=>e.once("end",t)))]);if(n){return}const s=await r;const a={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?g.statusCode:e.statusCode,body:s};let c=t.strictTtl?e.cachePolicy.timeToLive():undefined;if(t.maxTtl){c=c?Math.min(c,t.maxTtl):t.maxTtl}await this.cache.set(y,a,c)}catch(e){p.emit("error",new CacheableRequest.CacheError(e))}})()}else if(t.cache&&g){(async()=>{try{await this.cache.delete(y)}catch(e){p.emit("error",new CacheableRequest.CacheError(e))}})()}p.emit("response",s||e);if(typeof r==="function"){r(s||e)}};try{const r=e(t,handler);r.once("error",s);r.once("abort",s);p.emit("request",r)}catch(e){p.emit("error",new CacheableRequest.RequestError(e))}};(async()=>{const get=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(y):undefined;if(typeof t==="undefined"){return makeRequest(e)}const n=a.fromObject(t.cachePolicy);if(n.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=n.responseHeaders();const s=new c(t.statusCode,e,t.body,t.url);s.cachePolicy=n;s.fromCache=true;p.emit("response",s);if(typeof r==="function"){r(s)}}else{g=t;e.headers=n.revalidationHeaders(e);makeRequest(e)}};const errorHandler=e=>p.emit("error",new CacheableRequest.CacheError(e));this.cache.once("error",errorHandler);p.on("response",(()=>this.cache.removeListener("error",errorHandler)));try{await get(t)}catch(e){if(t.automaticFailover&&!v){makeRequest(t)}p.emit("error",new CacheableRequest.CacheError(e))}})();return p}}}function urlObjectToRequestOptions(e){const t={...e};t.path=`${e.pathname||"/"}${e.search||""}`;delete t.pathname;delete t.search;return t}function normalizeUrlObject(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}CacheableRequest.RequestError=class extends Error{constructor(e){super(e.message);this.name="RequestError";Object.assign(this,e)}};CacheableRequest.CacheError=class extends Error{constructor(e){super(e.message);this.name="CacheError";Object.assign(this,e)}};e.exports=CacheableRequest},34009:e=>{"use strict";var t=global.process&&process.nextTick||global.setImmediate||function(e){setTimeout(e,0)};e.exports=function maybe(e,r){if(e){r.then((function(r){t((function(){e(null,r)}))}),(function(r){t((function(){e(r)}))}));return undefined}else{return r}}},96148:(e,t,r)=>{"use strict";const n=r(37379);const s=r(28535);const i=r(67220).stdout;const o=r(85299);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const c=["ansi","ansi","ansi256","ansi16m"];const u=new Set(["gray"]);const l=Object.create(null);function applyOptions(e,t){t=t||{};const r=i?i.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){s.blue.open=""}for(const e of Object.keys(s)){s[e].closeRe=new RegExp(n(s[e].close),"g");l[e]={get(){const t=s[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}l.visible={get(){return build.call(this,this._styles||[],true,"visible")}};s.color.closeRe=new RegExp(n(s.color.close),"g");for(const e of Object.keys(s.color.ansi)){if(u.has(e)){continue}l[e]={get(){const t=this.level;return function(){const r=s.color[c[t]][e].apply(null,arguments);const n={open:r,close:s.color.close,closeRe:s.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(const e of Object.keys(s.bgColor.ansi)){if(u.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const t=this.level;return function(){const r=s.bgColor[c[t]][e].apply(null,arguments);const n={open:r,close:s.bgColor.close,closeRe:s.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const h=Object.defineProperties((()=>{}),l);function build(e,t,r){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e;builder._empty=t;const n=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return n.level},set(e){n.level=e}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return n.enabled},set(e){n.enabled=e}});builder.hasGrey=this.hasGrey||r==="gray"||r==="grey";builder.__proto__=h;return builder}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let n=1;n<t;n++){r+=" "+e[n]}}if(!this.enabled||this.level<=0||!r){return this._empty?"":r}const n=s.dim.open;if(a&&this.hasGrey){s.dim.open=""}for(const e of this._styles.slice().reverse()){r=e.open+r.replace(e.closeRe,e.open)+e.close;r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`)}s.dim.open=n;return r}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const r=[].slice.call(arguments,2);const n=[t.raw[0]];for(let e=1;e<t.length;e++){n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"));n.push(String(t.raw[e]))}return o(e,n.join(""))}Object.defineProperties(Chalk.prototype,l);e.exports=Chalk();e.exports.supportsColor=i;e.exports["default"]=e.exports},85299:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const s=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return i.get(e)||e}function parseArguments(e,t){const r=[];const i=t.trim().split(/\s*,\s*/g);let o;for(const t of i){if(!isNaN(t)){r.push(Number(t))}else if(o=t.match(n)){r.push(o[2].replace(s,((e,t,r)=>t?unescape(t):r)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const e of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){n=n[e].apply(n,r[e])}else{n=n[e]}}}return n}e.exports=(e,r)=>{const n=[];const s=[];let i=[];r.replace(t,((t,r,o,a,c,u)=>{if(r){i.push(unescape(r))}else if(a){const t=i.join("");i=[];s.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:o,styles:parseStyle(a)})}else if(c){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}s.push(buildStyle(e,n)(i.join("")));i=[];n.pop()}else{i.push(u)}}));s.push(i.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return s.join("")}},82975:(e,t,r)=>{"use strict";const n=r(57147);const s=r(71017);const i=n.lchown?"lchown":"chown";const o=n.lchownSync?"lchownSync":"chownSync";const a=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const lchownSync=(e,t,r)=>{try{return n[o](e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const chownSync=(e,t,r)=>{try{return n.chownSync(e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const c=a?(e,t,r,s)=>i=>{if(!i||i.code!=="EISDIR")s(i);else n.chown(e,t,r,s)}:(e,t,r,n)=>n;const u=a?(e,t,r)=>{try{return lchownSync(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;chownSync(e,t,r)}}:(e,t,r)=>lchownSync(e,t,r);const l=process.version;let readdir=(e,t,r)=>n.readdir(e,t,r);let readdirSync=(e,t)=>n.readdirSync(e,t);if(/^v4\./.test(l))readdir=(e,t,r)=>n.readdir(e,r);const chown=(e,t,r,s)=>{n[i](e,t,r,c(e,t,r,(e=>{s(e&&e.code!=="ENOENT"?e:null)})))};const chownrKid=(e,t,r,i,o)=>{if(typeof t==="string")return n.lstat(s.resolve(e,t),((n,s)=>{if(n)return o(n.code!=="ENOENT"?n:null);s.name=t;chownrKid(e,s,r,i,o)}));if(t.isDirectory()){chownr(s.resolve(e,t.name),r,i,(n=>{if(n)return o(n);const a=s.resolve(e,t.name);chown(a,r,i,o)}))}else{const n=s.resolve(e,t.name);chown(n,r,i,o)}};const chownr=(e,t,r,n)=>{readdir(e,{withFileTypes:true},((s,i)=>{if(s){if(s.code==="ENOENT")return n();else if(s.code!=="ENOTDIR"&&s.code!=="ENOTSUP")return n(s)}if(s||!i.length)return chown(e,t,r,n);let o=i.length;let a=null;const then=s=>{if(a)return;if(s)return n(a=s);if(--o===0)return chown(e,t,r,n)};i.forEach((n=>chownrKid(e,n,t,r,then)))}))};const chownrKidSync=(e,t,r,i)=>{if(typeof t==="string"){try{const r=n.lstatSync(s.resolve(e,t));r.name=t;t=r}catch(e){if(e.code==="ENOENT")return;else throw e}}if(t.isDirectory())chownrSync(s.resolve(e,t.name),r,i);u(s.resolve(e,t.name),r,i)};const chownrSync=(e,t,r)=>{let n;try{n=readdirSync(e,{withFileTypes:true})}catch(n){if(n.code==="ENOENT")return;else if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return u(e,t,r);else throw n}if(n&&n.length)n.forEach((n=>chownrKidSync(e,n,t,r)));return u(e,t,r)};e.exports=chownr;chownr.sync=chownrSync},5851:(e,t,r)=>{"use strict";var n=r(73837);var s=r(91918);var i=r(80922);var o=r(9779);var a=r(13836);var c=e.exports;c.isObject=function isObject(e){return a(e)||typeof e==="function"};c.has=function has(e,t){t=c.arrayify(t);var r=t.length;if(c.isObject(e)){for(var n in e){if(t.indexOf(n)>-1){return true}}var s=c.nativeKeys(e);return c.has(s,t)}if(Array.isArray(e)){var i=e;while(r--){if(i.indexOf(t[r])>-1){return true}}return false}throw new TypeError("expected an array or object.")};c.hasAll=function hasAll(e,t){t=c.arrayify(t);var r=t.length;while(r--){if(!c.has(e,t[r])){return false}}return true};c.arrayify=function arrayify(e){return e?Array.isArray(e)?e:[e]:[]};c.noop=function noop(){return};c.identity=function identity(e){return e};c.hasConstructor=function hasConstructor(e){return c.isObject(e)&&typeof e.constructor!=="undefined"};c.nativeKeys=function nativeKeys(e){if(!c.hasConstructor(e))return[];var t=Object.getOwnPropertyNames(e);if("caller"in e)t.push("caller");return t};c.getDescriptor=function getDescriptor(e,t){if(!c.isObject(e)){throw new TypeError("expected an object.")}if(typeof t!=="string"){throw new TypeError("expected key to be a string.")}return Object.getOwnPropertyDescriptor(e,t)};c.copyDescriptor=function copyDescriptor(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}if(typeof r!=="string"){throw new TypeError("expected name to be a string.")}var n=c.getDescriptor(t,r);if(n)Object.defineProperty(e,r,n)};c.copy=function copy(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=Object.getOwnPropertyNames(t);var s=Object.keys(t);var o=n.length,a;r=c.arrayify(r);while(o--){a=n[o];if(c.has(s,a)){i(e,a,t[a])}else if(!(a in e)&&!c.has(r,a)){c.copyDescriptor(e,t,a)}}};c.inherit=function inherit(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=[];for(var s in t){n.push(s);e[s]=t[s]}n=n.concat(c.arrayify(r));var i=t.prototype||t;var o=e.prototype||e;c.copy(o,i,n)};c.extend=function(){return o.apply(null,arguments)};c.bubble=function(e,t){t=t||[];e.bubble=function(r,n){if(Array.isArray(n)){t=s([],t,n)}var i=t.length;var o=-1;while(++o<i){var a=t[o];e.on(a,r.emit.bind(r,a))}c.bubble(r,t)}}},62806:(e,t,r)=>{"use strict";const n=r(12781).PassThrough;const s=r(94240);const cloneResponse=e=>{if(!(e&&e.pipe)){throw new TypeError("Parameter `response` must be a response stream.")}const t=new n;s(e,t);return e.pipe(t)};e.exports=cloneResponse},84506:(e,t,r)=>{"use strict";
33
33
  /*!
34
34
  * collection-visit <https://github.com/jonschlinkert/collection-visit>
35
35
  *
36
36
  * Copyright (c) 2015, 2017, Jon Schlinkert.
37
37
  * Released under the MIT License.
38
- */var n=r(95291);var s=r(18642);e.exports=function(e,t,r){var i;if(typeof r==="string"&&t in e){var o=[].slice.call(arguments,2);i=e[t].apply(e,o)}else if(Array.isArray(r)){i=s.apply(null,arguments)}else{i=n.apply(null,arguments)}if(typeof i!=="undefined"){return i}return e}},84117:(e,t,r)=>{var n=r(62251);var s={};for(var i in n){if(n.hasOwnProperty(i)){s[n[i]]=i}}var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in o){if(o.hasOwnProperty(a)){if(!("channels"in o[a])){throw new Error("missing channels property: "+a)}if(!("labels"in o[a])){throw new Error("missing channel labels property: "+a)}if(o[a].labels.length!==o[a].channels){throw new Error("channel and label counts mismatch: "+a)}var c=o[a].channels;var u=o[a].labels;delete o[a].channels;delete o[a].labels;Object.defineProperty(o[a],"channels",{value:c});Object.defineProperty(o[a],"labels",{value:u})}}o.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s=Math.min(t,r,n);var i=Math.max(t,r,n);var o=i-s;var a;var c;var u;if(i===s){a=0}else if(t===i){a=(r-n)/o}else if(r===i){a=2+(n-t)/o}else if(n===i){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}u=(s+i)/2;if(i===s){c=0}else if(u<=.5){c=o/(i+s)}else{c=o/(2-i-s)}return[a,c*100,u*100]};o.rgb.hsv=function(e){var t;var r;var n;var s;var i;var o=e[0]/255;var a=e[1]/255;var c=e[2]/255;var u=Math.max(o,a,c);var l=u-Math.min(o,a,c);var diffc=function(e){return(u-e)/6/l+1/2};if(l===0){s=i=0}else{i=l/u;t=diffc(o);r=diffc(a);n=diffc(c);if(o===u){s=n-r}else if(a===u){s=1/3+t-n}else if(c===u){s=2/3+r-t}if(s<0){s+=1}else if(s>1){s-=1}}return[s*360,i*100,u*100]};o.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var s=o.rgb.hsl(e)[0];var i=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[s,i*100,n*100]};o.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s;var i;var o;var a;a=Math.min(1-t,1-r,1-n);s=(1-t-a)/(1-a)||0;i=(1-r-a)/(1-a)||0;o=(1-n-a)/(1-a)||0;return[s*100,i*100,o*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}o.rgb.keyword=function(e){var t=s[e];if(t){return t}var r=Infinity;var i;for(var o in n){if(n.hasOwnProperty(o)){var a=n[o];var c=comparativeDistance(e,a);if(c<r){r=c;i=o}}}return i};o.keyword.rgb=function(e){return n[e]};o.rgb.xyz=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var s=t*.4124+r*.3576+n*.1805;var i=t*.2126+r*.7152+n*.0722;var o=t*.0193+r*.1192+n*.9505;return[s*100,i*100,o*100]};o.rgb.lab=function(e){var t=o.rgb.xyz(e);var r=t[0];var n=t[1];var s=t[2];var i;var a;var c;r/=95.047;n/=100;s/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;s=s>.008856?Math.pow(s,1/3):7.787*s+16/116;i=116*n-16;a=500*(r-n);c=200*(n-s);return[i,a,c]};o.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var s;var i;var o;var a;var c;if(r===0){c=n*255;return[c,c,c]}if(n<.5){i=n*(1+r)}else{i=n+r-n*r}s=2*n-i;a=[0,0,0];for(var u=0;u<3;u++){o=t+1/3*-(u-1);if(o<0){o++}if(o>1){o--}if(6*o<1){c=s+(i-s)*6*o}else if(2*o<1){c=i}else if(3*o<2){c=s+(i-s)*(2/3-o)*6}else{c=s}a[u]=c*255}return a};o.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var s=r;var i=Math.max(n,.01);var o;var a;n*=2;r*=n<=1?n:2-n;s*=i<=1?i:2-i;a=(n+r)/2;o=n===0?2*s/(i+s):2*r/(n+r);return[t,o*100,a*100]};o.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var s=Math.floor(t)%6;var i=t-Math.floor(t);var o=255*n*(1-r);var a=255*n*(1-r*i);var c=255*n*(1-r*(1-i));n*=255;switch(s){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};o.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var s=Math.max(n,.01);var i;var o;var a;a=(2-r)*n;i=(2-r)*s;o=r*s;o/=i<=1?i:2-i;o=o||0;a/=2;return[t,o*100,a*100]};o.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var s=r+n;var i;var o;var a;var c;if(s>1){r/=s;n/=s}i=Math.floor(6*t);o=1-n;a=6*t-i;if((i&1)!==0){a=1-a}c=r+a*(o-r);var u;var l;var h;switch(i){default:case 6:case 0:u=o;l=c;h=r;break;case 1:u=c;l=o;h=r;break;case 2:u=r;l=o;h=c;break;case 3:u=r;l=c;h=o;break;case 4:u=c;l=r;h=o;break;case 5:u=o;l=r;h=c;break}return[u*255,l*255,h*255]};o.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var s=e[3]/100;var i;var o;var a;i=1-Math.min(1,t*(1-s)+s);o=1-Math.min(1,r*(1-s)+s);a=1-Math.min(1,n*(1-s)+s);return[i*255,o*255,a*255]};o.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var s;var i;var o;s=t*3.2406+r*-1.5372+n*-.4986;i=t*-.9689+r*1.8758+n*.0415;o=t*.0557+r*-.204+n*1.057;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;s=Math.min(Math.max(0,s),1);i=Math.min(Math.max(0,i),1);o=Math.min(Math.max(0,o),1);return[s*255,i*255,o*255]};o.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var i;var o;t/=95.047;r/=100;n/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;s=116*r-16;i=500*(t-r);o=200*(r-n);return[s,i,o]};o.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var i;var o;i=(t+16)/116;s=r/500+i;o=i-n/200;var a=Math.pow(i,3);var c=Math.pow(s,3);var u=Math.pow(o,3);i=a>.008856?a:(i-16/116)/7.787;s=c>.008856?c:(s-16/116)/7.787;o=u>.008856?u:(o-16/116)/7.787;s*=95.047;i*=100;o*=108.883;return[s,i,o]};o.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var i;var o;s=Math.atan2(n,r);i=s*360/2/Math.PI;if(i<0){i+=360}o=Math.sqrt(r*r+n*n);return[t,o,i]};o.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var i;var o;o=n/360*2*Math.PI;s=r*Math.cos(o);i=r*Math.sin(o);return[t,s,i]};o.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var s=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];s=Math.round(s/50);if(s===0){return 30}var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(s===2){i+=60}return i};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var t=e[0];var r=e[1];var n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return s};o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var n=(t&1)*r*255;var s=(t>>1&1)*r*255;var i=(t>>2&1)*r*255;return[n,s,i]};o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var n=Math.floor(e/36)/5*255;var s=Math.floor((r=e%36)/6)/5*255;var i=r%6/5*255;return[n,s,i]};o.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var r=t[0];if(t[0].length===3){r=r.split("").map((function(e){return e+e})).join("")}var n=parseInt(r,16);var s=n>>16&255;var i=n>>8&255;var o=n&255;return[s,i,o]};o.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s=Math.max(Math.max(t,r),n);var i=Math.min(Math.min(t,r),n);var o=s-i;var a;var c;if(o<1){a=i/(1-o)}else{a=0}if(o<=0){c=0}else if(s===t){c=(r-n)/o%6}else if(s===r){c=2+(n-t)/o}else{c=4+(t-r)/o+4}c/=6;c%=1;return[c*360,o*100,a*100]};o.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var s=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){s=(r-.5*n)/(1-n)}return[e[0],n*100,s*100]};o.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var s=0;if(n<1){s=(r-n)/(1-n)}return[e[0],n*100,s*100]};o.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}var s=[0,0,0];var i=t%1*6;var o=i%1;var a=1-o;var c=0;switch(Math.floor(i)){case 0:s[0]=1;s[1]=o;s[2]=0;break;case 1:s[0]=a;s[1]=1;s[2]=0;break;case 2:s[0]=0;s[1]=1;s[2]=o;break;case 3:s[0]=0;s[1]=a;s[2]=1;break;case 4:s[0]=o;s[1]=0;s[2]=1;break;default:s[0]=1;s[1]=0;s[2]=a}c=(1-r)*n;return[(r*s[0]+c)*255,(r*s[1]+c)*255,(r*s[2]+c)*255]};o.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var s=0;if(n>0){s=t/n}return[e[0],s*100,n*100]};o.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var s=0;if(n>0&&n<.5){s=t/(2*n)}else if(n>=.5&&n<1){s=t/(2*(1-n))}return[e[0],s*100,n*100]};o.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};o.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var s=n-t;var i=0;if(s<1){i=(n-s)/(1-s)}return[e[0],s*100,i*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},79054:(e,t,r)=>{var n=r(84117);var s=r(96528);var i={};var o=Object.keys(n);function wrapRaw(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var n=r.length,s=0;s<n;s++){r[s]=Math.round(r[s])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}o.forEach((function(e){i[e]={};Object.defineProperty(i[e],"channels",{value:n[e].channels});Object.defineProperty(i[e],"labels",{value:n[e].labels});var t=s(e);var r=Object.keys(t);r.forEach((function(r){var n=t[r];i[e][r]=wrapRounded(n);i[e][r].raw=wrapRaw(n)}))}));e.exports=i},96528:(e,t,r)=>{var n=r(84117);function buildGraph(){var e={};var t=Object.keys(n);for(var r=t.length,s=0;s<r;s++){e[t[s]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var r=[e];t[e].distance=0;while(r.length){var s=r.pop();var i=Object.keys(n[s]);for(var o=i.length,a=0;a<o;a++){var c=i[a];var u=t[c];if(u.distance===-1){u.distance=t[s].distance+1;u.parent=s;r.unshift(c)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){var r=[t[e].parent,e];var s=n[t[e].parent][e];var i=t[e].parent;while(t[i].parent){r.unshift(t[i].parent);s=link(n[t[i].parent][i],s);i=t[i].parent}s.conversion=r;return s}e.exports=function(e){var t=deriveBFS(e);var r={};var n=Object.keys(t);for(var s=n.length,i=0;i<s;i++){var o=n[i];var a=t[o];if(a.parent===null){continue}r[o]=wrapConversion(o,t)}return r}},62251:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},44101:(e,t,r)=>{var n=r(82361).EventEmitter;var s=r(32081).spawn;var i=r(71017);var o=i.dirname;var a=i.basename;var c=r(57147);r(73837).inherits(Command,n);t=e.exports=new Command;t.Command=Command;t.Option=Option;function Option(e,t){this.flags=e;this.required=e.indexOf("<")>=0;this.optional=e.indexOf("[")>=0;this.bool=e.indexOf("-no-")===-1;e=e.split(/[ ,|]+/);if(e.length>1&&!/^[[<]/.test(e[1]))this.short=e.shift();this.long=e.shift();this.description=t||""}Option.prototype.name=function(){return this.long.replace("--","").replace("no-","")};Option.prototype.attributeName=function(){return camelcase(this.name())};Option.prototype.is=function(e){return this.short===e||this.long===e};function Command(e){this.commands=[];this.options=[];this._execs={};this._allowUnknownOption=false;this._args=[];this._name=e||""}Command.prototype.command=function(e,t,r){if(typeof t==="object"&&t!==null){r=t;t=null}r=r||{};var n=e.split(/ +/);var s=new Command(n.shift());if(t){s.description(t);this.executables=true;this._execs[s._name]=true;if(r.isDefault)this.defaultExecutable=s._name}s._noHelp=!!r.noHelp;this.commands.push(s);s.parseExpectedArgs(n);s.parent=this;if(t)return this;return s};Command.prototype.arguments=function(e){return this.parseExpectedArgs(e.split(/ +/))};Command.prototype.addImplicitHelpCommand=function(){this.command("help [cmd]","display help for [cmd]")};Command.prototype.parseExpectedArgs=function(e){if(!e.length)return;var t=this;e.forEach((function(e){var r={required:false,name:"",variadic:false};switch(e[0]){case"<":r.required=true;r.name=e.slice(1,-1);break;case"[":r.name=e.slice(1,-1);break}if(r.name.length>3&&r.name.slice(-3)==="..."){r.variadic=true;r.name=r.name.slice(0,-3)}if(r.name){t._args.push(r)}}));return this};Command.prototype.action=function(e){var t=this;var listener=function(r,n){r=r||[];n=n||[];var s=t.parseOptions(n);outputHelpIfNecessary(t,s.unknown);if(s.unknown.length>0){t.unknownOption(s.unknown[0])}if(s.args.length)r=s.args.concat(r);t._args.forEach((function(e,n){if(e.required&&r[n]==null){t.missingArgument(e.name)}else if(e.variadic){if(n!==t._args.length-1){t.variadicArgNotLast(e.name)}r[n]=r.splice(n)}}));if(t._args.length){r[t._args.length]=t}else{r.push(t)}e.apply(t,r)};var r=this.parent||this;var n=r===this?"*":this._name;r.on("command:"+n,listener);if(this._alias)r.on("command:"+this._alias,listener);return this};Command.prototype.option=function(e,t,r,n){var s=this,i=new Option(e,t),o=i.name(),a=i.attributeName();if(typeof r!=="function"){if(r instanceof RegExp){var c=r;r=function(e,t){var r=c.exec(e);return r?r[0]:t}}else{n=r;r=null}}if(!i.bool||i.optional||i.required){if(!i.bool)n=true;if(n!==undefined){s[a]=n;i.defaultValue=n}}this.options.push(i);this.on("option:"+o,(function(e){if(e!==null&&r){e=r(e,s[a]===undefined?n:s[a])}if(typeof s[a]==="boolean"||typeof s[a]==="undefined"){if(e==null){s[a]=i.bool?n||true:false}else{s[a]=e}}else if(e!==null){s[a]=e}}));return this};Command.prototype.allowUnknownOption=function(e){this._allowUnknownOption=arguments.length===0||e;return this};Command.prototype.parse=function(e){if(this.executables)this.addImplicitHelpCommand();this.rawArgs=e;this._name=this._name||a(e[1],".js");if(this.executables&&e.length<3&&!this.defaultExecutable){e.push("--help")}var t=this.parseOptions(this.normalize(e.slice(2)));var r=this.args=t.args;var n=this.parseArgs(this.args,t.unknown);var s=n.args[0];var i=null;if(s){i=this.commands.filter((function(e){return e.alias()===s}))[0]}if(this._execs[s]&&typeof this._execs[s]!=="function"){return this.executeSubCommand(e,r,t.unknown)}else if(i){r[0]=i._name;return this.executeSubCommand(e,r,t.unknown)}else if(this.defaultExecutable){r.unshift(this.defaultExecutable);return this.executeSubCommand(e,r,t.unknown)}return n};Command.prototype.executeSubCommand=function(e,t,r){t=t.concat(r);if(!t.length)this.help();if(t[0]==="help"&&t.length===1)this.help();if(t[0]==="help"){t[0]=t[1];t[1]="--help"}var n=e[1];var u=a(n,i.extname(n))+"-"+t[0];var l;var h=c.realpathSync(n);l=o(h);var p=i.join(l,u);var d=false;if(exists(p+".js")){u=p+".js";d=true}else if(exists(p+".ts")){u=p+".ts";d=true}else if(exists(p)){u=p}t=t.slice(1);var y;if(process.platform!=="win32"){if(d){t.unshift(u);t=(process.execArgv||[]).concat(t);y=s(process.argv[0],t,{stdio:"inherit",customFds:[0,1,2]})}else{y=s(u,t,{stdio:"inherit",customFds:[0,1,2]})}}else{t.unshift(u);y=s(process.execPath,t,{stdio:"inherit"})}var g=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];g.forEach((function(e){process.on(e,(function(){if(y.killed===false&&y.exitCode===null){y.kill(e)}}))}));y.on("close",process.exit.bind(process));y.on("error",(function(e){if(e.code==="ENOENT"){console.error("error: %s(1) does not exist, try --help",u)}else if(e.code==="EACCES"){console.error("error: %s(1) not executable. try chmod or run with root",u)}process.exit(1)}));this.runningCommand=y};Command.prototype.normalize=function(e){var t=[],r,n,s;for(var i=0,o=e.length;i<o;++i){r=e[i];if(i>0){n=this.optionFor(e[i-1])}if(r==="--"){t=t.concat(e.slice(i));break}else if(n&&n.required){t.push(r)}else if(r.length>1&&r[0]==="-"&&r[1]!=="-"){r.slice(1).split("").forEach((function(e){t.push("-"+e)}))}else if(/^--/.test(r)&&~(s=r.indexOf("="))){t.push(r.slice(0,s),r.slice(s+1))}else{t.push(r)}}return t};Command.prototype.parseArgs=function(e,t){var r;if(e.length){r=e[0];if(this.listeners("command:"+r).length){this.emit("command:"+e.shift(),e,t)}else{this.emit("command:*",e)}}else{outputHelpIfNecessary(this,t);if(t.length>0){this.unknownOption(t[0])}if(this.commands.length===0&&this._args.filter((function(e){return e.required})).length===0){this.emit("command:*")}}return this};Command.prototype.optionFor=function(e){for(var t=0,r=this.options.length;t<r;++t){if(this.options[t].is(e)){return this.options[t]}}};Command.prototype.parseOptions=function(e){var t=[],r=e.length,n,s,i;var o=[];for(var a=0;a<r;++a){i=e[a];if(n){t.push(i);continue}if(i==="--"){n=true;continue}s=this.optionFor(i);if(s){if(s.required){i=e[++a];if(i==null)return this.optionMissingArgument(s);this.emit("option:"+s.name(),i)}else if(s.optional){i=e[a+1];if(i==null||i[0]==="-"&&i!=="-"){i=null}else{++a}this.emit("option:"+s.name(),i)}else{this.emit("option:"+s.name())}continue}if(i.length>1&&i[0]==="-"){o.push(i);if(a+1<e.length&&e[a+1][0]!=="-"){o.push(e[++a])}continue}t.push(i)}return{args:t,unknown:o}};Command.prototype.opts=function(){var e={},t=this.options.length;for(var r=0;r<t;r++){var n=this.options[r].attributeName();e[n]=n===this._versionOptionName?this._version:this[n]}return e};Command.prototype.missingArgument=function(e){console.error("error: missing required argument `%s'",e);process.exit(1)};Command.prototype.optionMissingArgument=function(e,t){if(t){console.error("error: option `%s' argument missing, got `%s'",e.flags,t)}else{console.error("error: option `%s' argument missing",e.flags)}process.exit(1)};Command.prototype.unknownOption=function(e){if(this._allowUnknownOption)return;console.error("error: unknown option `%s'",e);process.exit(1)};Command.prototype.variadicArgNotLast=function(e){console.error("error: variadic arguments must be last `%s'",e);process.exit(1)};Command.prototype.version=function(e,t){if(arguments.length===0)return this._version;this._version=e;t=t||"-V, --version";var r=new Option(t,"output the version number");this._versionOptionName=r.long.substr(2)||"version";this.options.push(r);this.on("option:"+this._versionOptionName,(function(){process.stdout.write(e+"\n");process.exit(0)}));return this};Command.prototype.description=function(e,t){if(arguments.length===0)return this._description;this._description=e;this._argsDescription=t;return this};Command.prototype.alias=function(e){var t=this;if(this.commands.length!==0){t=this.commands[this.commands.length-1]}if(arguments.length===0)return t._alias;if(e===t._name)throw new Error("Command alias can't be the same as its name");t._alias=e;return this};Command.prototype.usage=function(e){var t=this._args.map((function(e){return humanReadableArgName(e)}));var r="[options]"+(this.commands.length?" [command]":"")+(this._args.length?" "+t.join(" "):"");if(arguments.length===0)return this._usage||r;this._usage=e;return this};Command.prototype.name=function(e){if(arguments.length===0)return this._name;this._name=e;return this};Command.prototype.prepareCommands=function(){return this.commands.filter((function(e){return!e._noHelp})).map((function(e){var t=e._args.map((function(e){return humanReadableArgName(e)})).join(" ");return[e._name+(e._alias?"|"+e._alias:"")+(e.options.length?" [options]":"")+(t?" "+t:""),e._description]}))};Command.prototype.largestCommandLength=function(){var e=this.prepareCommands();return e.reduce((function(e,t){return Math.max(e,t[0].length)}),0)};Command.prototype.largestOptionLength=function(){var e=[].slice.call(this.options);e.push({flags:"-h, --help"});return e.reduce((function(e,t){return Math.max(e,t.flags.length)}),0)};Command.prototype.largestArgLength=function(){return this._args.reduce((function(e,t){return Math.max(e,t.name.length)}),0)};Command.prototype.padWidth=function(){var e=this.largestOptionLength();if(this._argsDescription&&this._args.length){if(this.largestArgLength()>e){e=this.largestArgLength()}}if(this.commands&&this.commands.length){if(this.largestCommandLength()>e){e=this.largestCommandLength()}}return e};Command.prototype.optionHelp=function(){var e=this.padWidth();return this.options.map((function(t){return pad(t.flags,e)+" "+t.description+(t.bool&&t.defaultValue!==undefined?" (default: "+JSON.stringify(t.defaultValue)+")":"")})).concat([pad("-h, --help",e)+" "+"output usage information"]).join("\n")};Command.prototype.commandHelp=function(){if(!this.commands.length)return"";var e=this.prepareCommands();var t=this.padWidth();return["Commands:",e.map((function(e){var r=e[1]?" "+e[1]:"";return(r?pad(e[0],t):e[0])+r})).join("\n").replace(/^/gm," "),""].join("\n")};Command.prototype.helpInformation=function(){var e=[];if(this._description){e=[this._description,""];var t=this._argsDescription;if(t&&this._args.length){var r=this.padWidth();e.push("Arguments:");e.push("");this._args.forEach((function(n){e.push(" "+pad(n.name,r)+" "+t[n.name])}));e.push("")}}var n=this._name;if(this._alias){n=n+"|"+this._alias}var s=["Usage: "+n+" "+this.usage(),""];var i=[];var o=this.commandHelp();if(o)i=[o];var a=["Options:",""+this.optionHelp().replace(/^/gm," "),""];return s.concat(e).concat(a).concat(i).join("\n")};Command.prototype.outputHelp=function(e){if(!e){e=function(e){return e}}process.stdout.write(e(this.helpInformation()));this.emit("--help")};Command.prototype.help=function(e){this.outputHelp(e);process.exit()};function camelcase(e){return e.split("-").reduce((function(e,t){return e+t[0].toUpperCase()+t.slice(1)}))}function pad(e,t){var r=Math.max(0,t-e.length);return e+Array(r+1).join(" ")}function outputHelpIfNecessary(e,t){t=t||[];for(var r=0;r<t.length;r++){if(t[r]==="--help"||t[r]==="-h"){e.outputHelp();process.exit(0)}}}function humanReadableArgName(e){var t=e.name+(e.variadic===true?"...":"");return e.required?"<"+t+">":"["+t+"]"}function exists(e){try{if(c.statSync(e).isFile()){return true}}catch(e){return false}}},21921:e=>{if(true){e.exports=Emitter}function Emitter(e){if(e)return mixin(e)}function mixin(e){for(var t in Emitter.prototype){e[t]=Emitter.prototype[t]}return e}Emitter.prototype.on=Emitter.prototype.addEventListener=function(e,t){this._callbacks=this._callbacks||{};(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t);return this};Emitter.prototype.once=function(e,t){function on(){this.off(e,on);t.apply(this,arguments)}on.fn=t;this.on(e,on);return this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(e,t){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length){delete this._callbacks["$"+e];return this}var n;for(var s=0;s<r.length;s++){n=r[s];if(n===t||n.fn===t){r.splice(s,1);break}}if(r.length===0){delete this._callbacks["$"+e]}return this};Emitter.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=new Array(arguments.length-1),r=this._callbacks["$"+e];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(r){r=r.slice(0);for(var n=0,s=r.length;n<s;++n){r[n].apply(this,t)}}return this};Emitter.prototype.listeners=function(e){this._callbacks=this._callbacks||{};return this._callbacks["$"+e]||[]};Emitter.prototype.hasListeners=function(e){return!!this.listeners(e).length}},47381:e=>{e.exports=function(e,r){var n=[];for(var s=0;s<e.length;s++){var i=r(e[s],s);if(t(i))n.push.apply(n,i);else n.push(i)}return n};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},87136:function(e,t,r){"use strict";e=r.nmd(e);var n=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var s=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var i,o;var a,c,u,l;Object.defineProperty(t,"__esModule",{value:true});const h=r(73837);const p=r(57147);const d=r(71017);const y=r(6113);const g=r(39491);const v=r(82361);const b=r(16006);const w=r(20990);const S=r(94263);const x=r(33809);const O=r(67265);const R=r(94525);const k=r(45399);const A=r(21452);const C=r(53430);const P="aes-256-cbc";const createPlainObject=()=>Object.create(null);const isExist=e=>e!==undefined&&e!==null;let $="";try{delete require.cache[__filename];$=d.dirname((o=(i=e.parent)===null||i===void 0?void 0:i.filename)!==null&&o!==void 0?o:".")}catch(e){}const checkValueType=(e,t)=>{const r=new Set(["undefined","symbol","function"]);const n=typeof t;if(r.has(n)){throw new TypeError(`Setting a value of type \`${n}\` for key \`${e}\` is not allowed as it's not supported by JSON`)}};const T="__internal__";const j=`${T}.migrations.version`;class Conf{constructor(e={}){var t;a.set(this,void 0);c.set(this,void 0);u.set(this,void 0);l.set(this,{});this._deserialize=e=>JSON.parse(e);this._serialize=e=>JSON.stringify(e,undefined,"\t");const r={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:false,accessPropertiesByDotNotation:true,configFileMode:438,...e};const i=C((()=>{const e=w.sync({cwd:$});const t=e&&JSON.parse(p.readFileSync(e,"utf8"));return t!==null&&t!==void 0?t:{}}));if(!r.cwd){if(!r.projectName){r.projectName=i().name}if(!r.projectName){throw new Error("Project name could not be inferred. Please specify the `projectName` option.")}r.cwd=S(r.projectName,{suffix:r.projectSuffix}).config}n(this,u,r,"f");if(r.schema){if(typeof r.schema!=="object"){throw new TypeError("The `schema` option must be an object.")}const e=new O.default({allErrors:true,useDefaults:true});(0,R.default)(e);const t={type:"object",properties:r.schema};n(this,a,e.compile(t),"f");for(const[e,t]of Object.entries(r.schema)){if(t===null||t===void 0?void 0:t.default){s(this,l,"f")[e]=t.default}}}if(r.defaults){n(this,l,{...s(this,l,"f"),...r.defaults},"f")}if(r.serialize){this._serialize=r.serialize}if(r.deserialize){this._deserialize=r.deserialize}this.events=new v.EventEmitter;n(this,c,r.encryptionKey,"f");const o=r.fileExtension?`.${r.fileExtension}`:"";this.path=d.resolve(r.cwd,`${(t=r.configName)!==null&&t!==void 0?t:"config"}${o}`);const h=this.store;const y=Object.assign(createPlainObject(),r.defaults,h);this._validate(y);try{g.deepEqual(h,y)}catch(e){this.store=y}if(r.watch){this._watch()}if(r.migrations){if(!r.projectVersion){r.projectVersion=i().version}if(!r.projectVersion){throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.")}this._migrate(r.migrations,r.projectVersion,r.beforeEachMigration)}}get(e,t){if(s(this,u,"f").accessPropertiesByDotNotation){return this._get(e,t)}const{store:r}=this;return e in r?r[e]:t}set(e,t){if(typeof e!=="string"&&typeof e!=="object"){throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof e}`)}if(typeof e!=="object"&&t===undefined){throw new TypeError("Use `delete()` to clear values")}if(this._containsReservedKey(e)){throw new TypeError(`Please don't use the ${T} key, as it's used to manage this module internal operations.`)}const{store:r}=this;const set=(e,t)=>{checkValueType(e,t);if(s(this,u,"f").accessPropertiesByDotNotation){b.set(r,e,t)}else{r[e]=t}};if(typeof e==="object"){const t=e;for(const[e,r]of Object.entries(t)){set(e,r)}}else{set(e,t)}this.store=r}has(e){if(s(this,u,"f").accessPropertiesByDotNotation){return b.has(this.store,e)}return e in this.store}reset(...e){for(const t of e){if(isExist(s(this,l,"f")[t])){this.set(t,s(this,l,"f")[t])}}}delete(e){const{store:t}=this;if(s(this,u,"f").accessPropertiesByDotNotation){b.delete(t,e)}else{delete t[e]}this.store=t}clear(){this.store=createPlainObject();for(const e of Object.keys(s(this,l,"f"))){this.reset(e)}}onDidChange(e,t){if(typeof e!=="string"){throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof e}`)}if(typeof t!=="function"){throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof t}`)}return this._handleChange((()=>this.get(e)),t)}onDidAnyChange(e){if(typeof e!=="function"){throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof e}`)}return this._handleChange((()=>this.store),e)}get size(){return Object.keys(this.store).length}get store(){try{const e=p.readFileSync(this.path,s(this,c,"f")?null:"utf8");const t=this._encryptData(e);const r=this._deserialize(t);this._validate(r);return Object.assign(createPlainObject(),r)}catch(e){if((e===null||e===void 0?void 0:e.code)==="ENOENT"){this._ensureDirectory();return createPlainObject()}if(s(this,u,"f").clearInvalidConfig&&e.name==="SyntaxError"){return createPlainObject()}throw e}}set store(e){this._ensureDirectory();this._validate(e);this._write(e);this.events.emit("change")}*[(a=new WeakMap,c=new WeakMap,u=new WeakMap,l=new WeakMap,Symbol.iterator)](){for(const[e,t]of Object.entries(this.store)){yield[e,t]}}_encryptData(e){if(!s(this,c,"f")){return e.toString()}try{if(s(this,c,"f")){try{if(e.slice(16,17).toString()===":"){const t=e.slice(0,16);const r=y.pbkdf2Sync(s(this,c,"f"),t.toString(),1e4,32,"sha512");const n=y.createDecipheriv(P,r,t);e=Buffer.concat([n.update(Buffer.from(e.slice(17))),n.final()]).toString("utf8")}else{const t=y.createDecipher(P,s(this,c,"f"));e=Buffer.concat([t.update(Buffer.from(e)),t.final()]).toString("utf8")}}catch(e){}}}catch(e){}return e.toString()}_handleChange(e,t){let r=e();const onChange=()=>{const n=r;const s=e();if((0,h.isDeepStrictEqual)(s,n)){return}r=s;t.call(this,s,n)};this.events.on("change",onChange);return()=>this.events.removeListener("change",onChange)}_validate(e){if(!s(this,a,"f")){return}const t=s(this,a,"f").call(this,e);if(t||!s(this,a,"f").errors){return}const r=s(this,a,"f").errors.map((({instancePath:e,message:t=""})=>`\`${e.slice(1)}\` ${t}`));throw new Error("Config schema violation: "+r.join("; "))}_ensureDirectory(){p.mkdirSync(d.dirname(this.path),{recursive:true})}_write(e){let t=this._serialize(e);if(s(this,c,"f")){const e=y.randomBytes(16);const r=y.pbkdf2Sync(s(this,c,"f"),e.toString(),1e4,32,"sha512");const n=y.createCipheriv(P,r,e);t=Buffer.concat([e,Buffer.from(":"),n.update(Buffer.from(t)),n.final()])}if(process.env.SNAP){p.writeFileSync(this.path,t,{mode:s(this,u,"f").configFileMode})}else{try{x.writeFileSync(this.path,t,{mode:s(this,u,"f").configFileMode})}catch(e){if((e===null||e===void 0?void 0:e.code)==="EXDEV"){p.writeFileSync(this.path,t,{mode:s(this,u,"f").configFileMode});return}throw e}}}_watch(){this._ensureDirectory();if(!p.existsSync(this.path)){this._write(createPlainObject())}if(process.platform==="win32"){p.watch(this.path,{persistent:false},k((()=>{this.events.emit("change")}),{wait:100}))}else{p.watchFile(this.path,{persistent:false},k((()=>{this.events.emit("change")}),{wait:5e3}))}}_migrate(e,t,r){let n=this._get(j,"0.0.0");const s=Object.keys(e).filter((e=>this._shouldPerformMigration(e,n,t)));let i={...this.store};for(const o of s){try{if(r){r(this,{fromVersion:n,toVersion:o,finalVersion:t,versions:s})}const a=e[o];a(this);this._set(j,o);n=o;i={...this.store}}catch(e){this.store=i;throw new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${e}`)}}if(this._isVersionInRangeFormat(n)||!A.eq(n,t)){this._set(j,t)}}_containsReservedKey(e){if(typeof e==="object"){const t=Object.keys(e)[0];if(t===T){return true}}if(typeof e!=="string"){return false}if(s(this,u,"f").accessPropertiesByDotNotation){if(e.startsWith(`${T}.`)){return true}return false}return false}_isVersionInRangeFormat(e){return A.clean(e)===null}_shouldPerformMigration(e,t,r){if(this._isVersionInRangeFormat(e)){if(t!=="0.0.0"&&A.satisfies(t,e)){return false}return A.satisfies(r,e)}if(A.lte(e,t)){return false}if(A.gt(e,r)){return false}return true}_get(e,t){return b.get(this.store,e,t)}_set(e,t){const{store:r}=this;b.set(r,e,t);this.store=r}}t["default"]=Conf;e.exports=Conf;e.exports["default"]=Conf},9440:e=>{"use strict";
38
+ */var n=r(95291);var s=r(18642);e.exports=function(e,t,r){var i;if(typeof r==="string"&&t in e){var o=[].slice.call(arguments,2);i=e[t].apply(e,o)}else if(Array.isArray(r)){i=s.apply(null,arguments)}else{i=n.apply(null,arguments)}if(typeof i!=="undefined"){return i}return e}},84117:(e,t,r)=>{var n=r(62251);var s={};for(var i in n){if(n.hasOwnProperty(i)){s[n[i]]=i}}var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in o){if(o.hasOwnProperty(a)){if(!("channels"in o[a])){throw new Error("missing channels property: "+a)}if(!("labels"in o[a])){throw new Error("missing channel labels property: "+a)}if(o[a].labels.length!==o[a].channels){throw new Error("channel and label counts mismatch: "+a)}var c=o[a].channels;var u=o[a].labels;delete o[a].channels;delete o[a].labels;Object.defineProperty(o[a],"channels",{value:c});Object.defineProperty(o[a],"labels",{value:u})}}o.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s=Math.min(t,r,n);var i=Math.max(t,r,n);var o=i-s;var a;var c;var u;if(i===s){a=0}else if(t===i){a=(r-n)/o}else if(r===i){a=2+(n-t)/o}else if(n===i){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}u=(s+i)/2;if(i===s){c=0}else if(u<=.5){c=o/(i+s)}else{c=o/(2-i-s)}return[a,c*100,u*100]};o.rgb.hsv=function(e){var t;var r;var n;var s;var i;var o=e[0]/255;var a=e[1]/255;var c=e[2]/255;var u=Math.max(o,a,c);var l=u-Math.min(o,a,c);var diffc=function(e){return(u-e)/6/l+1/2};if(l===0){s=i=0}else{i=l/u;t=diffc(o);r=diffc(a);n=diffc(c);if(o===u){s=n-r}else if(a===u){s=1/3+t-n}else if(c===u){s=2/3+r-t}if(s<0){s+=1}else if(s>1){s-=1}}return[s*360,i*100,u*100]};o.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var s=o.rgb.hsl(e)[0];var i=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[s,i*100,n*100]};o.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s;var i;var o;var a;a=Math.min(1-t,1-r,1-n);s=(1-t-a)/(1-a)||0;i=(1-r-a)/(1-a)||0;o=(1-n-a)/(1-a)||0;return[s*100,i*100,o*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}o.rgb.keyword=function(e){var t=s[e];if(t){return t}var r=Infinity;var i;for(var o in n){if(n.hasOwnProperty(o)){var a=n[o];var c=comparativeDistance(e,a);if(c<r){r=c;i=o}}}return i};o.keyword.rgb=function(e){return n[e]};o.rgb.xyz=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var s=t*.4124+r*.3576+n*.1805;var i=t*.2126+r*.7152+n*.0722;var o=t*.0193+r*.1192+n*.9505;return[s*100,i*100,o*100]};o.rgb.lab=function(e){var t=o.rgb.xyz(e);var r=t[0];var n=t[1];var s=t[2];var i;var a;var c;r/=95.047;n/=100;s/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;s=s>.008856?Math.pow(s,1/3):7.787*s+16/116;i=116*n-16;a=500*(r-n);c=200*(n-s);return[i,a,c]};o.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var s;var i;var o;var a;var c;if(r===0){c=n*255;return[c,c,c]}if(n<.5){i=n*(1+r)}else{i=n+r-n*r}s=2*n-i;a=[0,0,0];for(var u=0;u<3;u++){o=t+1/3*-(u-1);if(o<0){o++}if(o>1){o--}if(6*o<1){c=s+(i-s)*6*o}else if(2*o<1){c=i}else if(3*o<2){c=s+(i-s)*(2/3-o)*6}else{c=s}a[u]=c*255}return a};o.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var s=r;var i=Math.max(n,.01);var o;var a;n*=2;r*=n<=1?n:2-n;s*=i<=1?i:2-i;a=(n+r)/2;o=n===0?2*s/(i+s):2*r/(n+r);return[t,o*100,a*100]};o.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var s=Math.floor(t)%6;var i=t-Math.floor(t);var o=255*n*(1-r);var a=255*n*(1-r*i);var c=255*n*(1-r*(1-i));n*=255;switch(s){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};o.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var s=Math.max(n,.01);var i;var o;var a;a=(2-r)*n;i=(2-r)*s;o=r*s;o/=i<=1?i:2-i;o=o||0;a/=2;return[t,o*100,a*100]};o.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var s=r+n;var i;var o;var a;var c;if(s>1){r/=s;n/=s}i=Math.floor(6*t);o=1-n;a=6*t-i;if((i&1)!==0){a=1-a}c=r+a*(o-r);var u;var l;var h;switch(i){default:case 6:case 0:u=o;l=c;h=r;break;case 1:u=c;l=o;h=r;break;case 2:u=r;l=o;h=c;break;case 3:u=r;l=c;h=o;break;case 4:u=c;l=r;h=o;break;case 5:u=o;l=r;h=c;break}return[u*255,l*255,h*255]};o.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var s=e[3]/100;var i;var o;var a;i=1-Math.min(1,t*(1-s)+s);o=1-Math.min(1,r*(1-s)+s);a=1-Math.min(1,n*(1-s)+s);return[i*255,o*255,a*255]};o.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var s;var i;var o;s=t*3.2406+r*-1.5372+n*-.4986;i=t*-.9689+r*1.8758+n*.0415;o=t*.0557+r*-.204+n*1.057;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;s=Math.min(Math.max(0,s),1);i=Math.min(Math.max(0,i),1);o=Math.min(Math.max(0,o),1);return[s*255,i*255,o*255]};o.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var i;var o;t/=95.047;r/=100;n/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;s=116*r-16;i=500*(t-r);o=200*(r-n);return[s,i,o]};o.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var i;var o;i=(t+16)/116;s=r/500+i;o=i-n/200;var a=Math.pow(i,3);var c=Math.pow(s,3);var u=Math.pow(o,3);i=a>.008856?a:(i-16/116)/7.787;s=c>.008856?c:(s-16/116)/7.787;o=u>.008856?u:(o-16/116)/7.787;s*=95.047;i*=100;o*=108.883;return[s,i,o]};o.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var i;var o;s=Math.atan2(n,r);i=s*360/2/Math.PI;if(i<0){i+=360}o=Math.sqrt(r*r+n*n);return[t,o,i]};o.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var i;var o;o=n/360*2*Math.PI;s=r*Math.cos(o);i=r*Math.sin(o);return[t,s,i]};o.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var s=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];s=Math.round(s/50);if(s===0){return 30}var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(s===2){i+=60}return i};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var t=e[0];var r=e[1];var n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return s};o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var n=(t&1)*r*255;var s=(t>>1&1)*r*255;var i=(t>>2&1)*r*255;return[n,s,i]};o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var n=Math.floor(e/36)/5*255;var s=Math.floor((r=e%36)/6)/5*255;var i=r%6/5*255;return[n,s,i]};o.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var r=t[0];if(t[0].length===3){r=r.split("").map((function(e){return e+e})).join("")}var n=parseInt(r,16);var s=n>>16&255;var i=n>>8&255;var o=n&255;return[s,i,o]};o.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s=Math.max(Math.max(t,r),n);var i=Math.min(Math.min(t,r),n);var o=s-i;var a;var c;if(o<1){a=i/(1-o)}else{a=0}if(o<=0){c=0}else if(s===t){c=(r-n)/o%6}else if(s===r){c=2+(n-t)/o}else{c=4+(t-r)/o+4}c/=6;c%=1;return[c*360,o*100,a*100]};o.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var s=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){s=(r-.5*n)/(1-n)}return[e[0],n*100,s*100]};o.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var s=0;if(n<1){s=(r-n)/(1-n)}return[e[0],n*100,s*100]};o.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}var s=[0,0,0];var i=t%1*6;var o=i%1;var a=1-o;var c=0;switch(Math.floor(i)){case 0:s[0]=1;s[1]=o;s[2]=0;break;case 1:s[0]=a;s[1]=1;s[2]=0;break;case 2:s[0]=0;s[1]=1;s[2]=o;break;case 3:s[0]=0;s[1]=a;s[2]=1;break;case 4:s[0]=o;s[1]=0;s[2]=1;break;default:s[0]=1;s[1]=0;s[2]=a}c=(1-r)*n;return[(r*s[0]+c)*255,(r*s[1]+c)*255,(r*s[2]+c)*255]};o.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var s=0;if(n>0){s=t/n}return[e[0],s*100,n*100]};o.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var s=0;if(n>0&&n<.5){s=t/(2*n)}else if(n>=.5&&n<1){s=t/(2*(1-n))}return[e[0],s*100,n*100]};o.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};o.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var s=n-t;var i=0;if(s<1){i=(n-s)/(1-s)}return[e[0],s*100,i*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},79054:(e,t,r)=>{var n=r(84117);var s=r(96528);var i={};var o=Object.keys(n);function wrapRaw(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var n=r.length,s=0;s<n;s++){r[s]=Math.round(r[s])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}o.forEach((function(e){i[e]={};Object.defineProperty(i[e],"channels",{value:n[e].channels});Object.defineProperty(i[e],"labels",{value:n[e].labels});var t=s(e);var r=Object.keys(t);r.forEach((function(r){var n=t[r];i[e][r]=wrapRounded(n);i[e][r].raw=wrapRaw(n)}))}));e.exports=i},96528:(e,t,r)=>{var n=r(84117);function buildGraph(){var e={};var t=Object.keys(n);for(var r=t.length,s=0;s<r;s++){e[t[s]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var r=[e];t[e].distance=0;while(r.length){var s=r.pop();var i=Object.keys(n[s]);for(var o=i.length,a=0;a<o;a++){var c=i[a];var u=t[c];if(u.distance===-1){u.distance=t[s].distance+1;u.parent=s;r.unshift(c)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){var r=[t[e].parent,e];var s=n[t[e].parent][e];var i=t[e].parent;while(t[i].parent){r.unshift(t[i].parent);s=link(n[t[i].parent][i],s);i=t[i].parent}s.conversion=r;return s}e.exports=function(e){var t=deriveBFS(e);var r={};var n=Object.keys(t);for(var s=n.length,i=0;i<s;i++){var o=n[i];var a=t[o];if(a.parent===null){continue}r[o]=wrapConversion(o,t)}return r}},62251:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},44101:(e,t,r)=>{var n=r(82361).EventEmitter;var s=r(32081).spawn;var i=r(71017);var o=i.dirname;var a=i.basename;var c=r(57147);r(73837).inherits(Command,n);t=e.exports=new Command;t.Command=Command;t.Option=Option;function Option(e,t){this.flags=e;this.required=e.indexOf("<")>=0;this.optional=e.indexOf("[")>=0;this.bool=e.indexOf("-no-")===-1;e=e.split(/[ ,|]+/);if(e.length>1&&!/^[[<]/.test(e[1]))this.short=e.shift();this.long=e.shift();this.description=t||""}Option.prototype.name=function(){return this.long.replace("--","").replace("no-","")};Option.prototype.attributeName=function(){return camelcase(this.name())};Option.prototype.is=function(e){return this.short===e||this.long===e};function Command(e){this.commands=[];this.options=[];this._execs={};this._allowUnknownOption=false;this._args=[];this._name=e||""}Command.prototype.command=function(e,t,r){if(typeof t==="object"&&t!==null){r=t;t=null}r=r||{};var n=e.split(/ +/);var s=new Command(n.shift());if(t){s.description(t);this.executables=true;this._execs[s._name]=true;if(r.isDefault)this.defaultExecutable=s._name}s._noHelp=!!r.noHelp;this.commands.push(s);s.parseExpectedArgs(n);s.parent=this;if(t)return this;return s};Command.prototype.arguments=function(e){return this.parseExpectedArgs(e.split(/ +/))};Command.prototype.addImplicitHelpCommand=function(){this.command("help [cmd]","display help for [cmd]")};Command.prototype.parseExpectedArgs=function(e){if(!e.length)return;var t=this;e.forEach((function(e){var r={required:false,name:"",variadic:false};switch(e[0]){case"<":r.required=true;r.name=e.slice(1,-1);break;case"[":r.name=e.slice(1,-1);break}if(r.name.length>3&&r.name.slice(-3)==="..."){r.variadic=true;r.name=r.name.slice(0,-3)}if(r.name){t._args.push(r)}}));return this};Command.prototype.action=function(e){var t=this;var listener=function(r,n){r=r||[];n=n||[];var s=t.parseOptions(n);outputHelpIfNecessary(t,s.unknown);if(s.unknown.length>0){t.unknownOption(s.unknown[0])}if(s.args.length)r=s.args.concat(r);t._args.forEach((function(e,n){if(e.required&&r[n]==null){t.missingArgument(e.name)}else if(e.variadic){if(n!==t._args.length-1){t.variadicArgNotLast(e.name)}r[n]=r.splice(n)}}));if(t._args.length){r[t._args.length]=t}else{r.push(t)}e.apply(t,r)};var r=this.parent||this;var n=r===this?"*":this._name;r.on("command:"+n,listener);if(this._alias)r.on("command:"+this._alias,listener);return this};Command.prototype.option=function(e,t,r,n){var s=this,i=new Option(e,t),o=i.name(),a=i.attributeName();if(typeof r!=="function"){if(r instanceof RegExp){var c=r;r=function(e,t){var r=c.exec(e);return r?r[0]:t}}else{n=r;r=null}}if(!i.bool||i.optional||i.required){if(!i.bool)n=true;if(n!==undefined){s[a]=n;i.defaultValue=n}}this.options.push(i);this.on("option:"+o,(function(e){if(e!==null&&r){e=r(e,s[a]===undefined?n:s[a])}if(typeof s[a]==="boolean"||typeof s[a]==="undefined"){if(e==null){s[a]=i.bool?n||true:false}else{s[a]=e}}else if(e!==null){s[a]=e}}));return this};Command.prototype.allowUnknownOption=function(e){this._allowUnknownOption=arguments.length===0||e;return this};Command.prototype.parse=function(e){if(this.executables)this.addImplicitHelpCommand();this.rawArgs=e;this._name=this._name||a(e[1],".js");if(this.executables&&e.length<3&&!this.defaultExecutable){e.push("--help")}var t=this.parseOptions(this.normalize(e.slice(2)));var r=this.args=t.args;var n=this.parseArgs(this.args,t.unknown);var s=n.args[0];var i=null;if(s){i=this.commands.filter((function(e){return e.alias()===s}))[0]}if(this._execs[s]&&typeof this._execs[s]!=="function"){return this.executeSubCommand(e,r,t.unknown)}else if(i){r[0]=i._name;return this.executeSubCommand(e,r,t.unknown)}else if(this.defaultExecutable){r.unshift(this.defaultExecutable);return this.executeSubCommand(e,r,t.unknown)}return n};Command.prototype.executeSubCommand=function(e,t,r){t=t.concat(r);if(!t.length)this.help();if(t[0]==="help"&&t.length===1)this.help();if(t[0]==="help"){t[0]=t[1];t[1]="--help"}var n=e[1];var u=a(n,i.extname(n))+"-"+t[0];var l;var h=c.realpathSync(n);l=o(h);var p=i.join(l,u);var d=false;if(exists(p+".js")){u=p+".js";d=true}else if(exists(p+".ts")){u=p+".ts";d=true}else if(exists(p)){u=p}t=t.slice(1);var y;if(process.platform!=="win32"){if(d){t.unshift(u);t=(process.execArgv||[]).concat(t);y=s(process.argv[0],t,{stdio:"inherit",customFds:[0,1,2]})}else{y=s(u,t,{stdio:"inherit",customFds:[0,1,2]})}}else{t.unshift(u);y=s(process.execPath,t,{stdio:"inherit"})}var g=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];g.forEach((function(e){process.on(e,(function(){if(y.killed===false&&y.exitCode===null){y.kill(e)}}))}));y.on("close",process.exit.bind(process));y.on("error",(function(e){if(e.code==="ENOENT"){console.error("error: %s(1) does not exist, try --help",u)}else if(e.code==="EACCES"){console.error("error: %s(1) not executable. try chmod or run with root",u)}process.exit(1)}));this.runningCommand=y};Command.prototype.normalize=function(e){var t=[],r,n,s;for(var i=0,o=e.length;i<o;++i){r=e[i];if(i>0){n=this.optionFor(e[i-1])}if(r==="--"){t=t.concat(e.slice(i));break}else if(n&&n.required){t.push(r)}else if(r.length>1&&r[0]==="-"&&r[1]!=="-"){r.slice(1).split("").forEach((function(e){t.push("-"+e)}))}else if(/^--/.test(r)&&~(s=r.indexOf("="))){t.push(r.slice(0,s),r.slice(s+1))}else{t.push(r)}}return t};Command.prototype.parseArgs=function(e,t){var r;if(e.length){r=e[0];if(this.listeners("command:"+r).length){this.emit("command:"+e.shift(),e,t)}else{this.emit("command:*",e)}}else{outputHelpIfNecessary(this,t);if(t.length>0){this.unknownOption(t[0])}if(this.commands.length===0&&this._args.filter((function(e){return e.required})).length===0){this.emit("command:*")}}return this};Command.prototype.optionFor=function(e){for(var t=0,r=this.options.length;t<r;++t){if(this.options[t].is(e)){return this.options[t]}}};Command.prototype.parseOptions=function(e){var t=[],r=e.length,n,s,i;var o=[];for(var a=0;a<r;++a){i=e[a];if(n){t.push(i);continue}if(i==="--"){n=true;continue}s=this.optionFor(i);if(s){if(s.required){i=e[++a];if(i==null)return this.optionMissingArgument(s);this.emit("option:"+s.name(),i)}else if(s.optional){i=e[a+1];if(i==null||i[0]==="-"&&i!=="-"){i=null}else{++a}this.emit("option:"+s.name(),i)}else{this.emit("option:"+s.name())}continue}if(i.length>1&&i[0]==="-"){o.push(i);if(a+1<e.length&&e[a+1][0]!=="-"){o.push(e[++a])}continue}t.push(i)}return{args:t,unknown:o}};Command.prototype.opts=function(){var e={},t=this.options.length;for(var r=0;r<t;r++){var n=this.options[r].attributeName();e[n]=n===this._versionOptionName?this._version:this[n]}return e};Command.prototype.missingArgument=function(e){console.error("error: missing required argument `%s'",e);process.exit(1)};Command.prototype.optionMissingArgument=function(e,t){if(t){console.error("error: option `%s' argument missing, got `%s'",e.flags,t)}else{console.error("error: option `%s' argument missing",e.flags)}process.exit(1)};Command.prototype.unknownOption=function(e){if(this._allowUnknownOption)return;console.error("error: unknown option `%s'",e);process.exit(1)};Command.prototype.variadicArgNotLast=function(e){console.error("error: variadic arguments must be last `%s'",e);process.exit(1)};Command.prototype.version=function(e,t){if(arguments.length===0)return this._version;this._version=e;t=t||"-V, --version";var r=new Option(t,"output the version number");this._versionOptionName=r.long.substr(2)||"version";this.options.push(r);this.on("option:"+this._versionOptionName,(function(){process.stdout.write(e+"\n");process.exit(0)}));return this};Command.prototype.description=function(e,t){if(arguments.length===0)return this._description;this._description=e;this._argsDescription=t;return this};Command.prototype.alias=function(e){var t=this;if(this.commands.length!==0){t=this.commands[this.commands.length-1]}if(arguments.length===0)return t._alias;if(e===t._name)throw new Error("Command alias can't be the same as its name");t._alias=e;return this};Command.prototype.usage=function(e){var t=this._args.map((function(e){return humanReadableArgName(e)}));var r="[options]"+(this.commands.length?" [command]":"")+(this._args.length?" "+t.join(" "):"");if(arguments.length===0)return this._usage||r;this._usage=e;return this};Command.prototype.name=function(e){if(arguments.length===0)return this._name;this._name=e;return this};Command.prototype.prepareCommands=function(){return this.commands.filter((function(e){return!e._noHelp})).map((function(e){var t=e._args.map((function(e){return humanReadableArgName(e)})).join(" ");return[e._name+(e._alias?"|"+e._alias:"")+(e.options.length?" [options]":"")+(t?" "+t:""),e._description]}))};Command.prototype.largestCommandLength=function(){var e=this.prepareCommands();return e.reduce((function(e,t){return Math.max(e,t[0].length)}),0)};Command.prototype.largestOptionLength=function(){var e=[].slice.call(this.options);e.push({flags:"-h, --help"});return e.reduce((function(e,t){return Math.max(e,t.flags.length)}),0)};Command.prototype.largestArgLength=function(){return this._args.reduce((function(e,t){return Math.max(e,t.name.length)}),0)};Command.prototype.padWidth=function(){var e=this.largestOptionLength();if(this._argsDescription&&this._args.length){if(this.largestArgLength()>e){e=this.largestArgLength()}}if(this.commands&&this.commands.length){if(this.largestCommandLength()>e){e=this.largestCommandLength()}}return e};Command.prototype.optionHelp=function(){var e=this.padWidth();return this.options.map((function(t){return pad(t.flags,e)+" "+t.description+(t.bool&&t.defaultValue!==undefined?" (default: "+JSON.stringify(t.defaultValue)+")":"")})).concat([pad("-h, --help",e)+" "+"output usage information"]).join("\n")};Command.prototype.commandHelp=function(){if(!this.commands.length)return"";var e=this.prepareCommands();var t=this.padWidth();return["Commands:",e.map((function(e){var r=e[1]?" "+e[1]:"";return(r?pad(e[0],t):e[0])+r})).join("\n").replace(/^/gm," "),""].join("\n")};Command.prototype.helpInformation=function(){var e=[];if(this._description){e=[this._description,""];var t=this._argsDescription;if(t&&this._args.length){var r=this.padWidth();e.push("Arguments:");e.push("");this._args.forEach((function(n){e.push(" "+pad(n.name,r)+" "+t[n.name])}));e.push("")}}var n=this._name;if(this._alias){n=n+"|"+this._alias}var s=["Usage: "+n+" "+this.usage(),""];var i=[];var o=this.commandHelp();if(o)i=[o];var a=["Options:",""+this.optionHelp().replace(/^/gm," "),""];return s.concat(e).concat(a).concat(i).join("\n")};Command.prototype.outputHelp=function(e){if(!e){e=function(e){return e}}process.stdout.write(e(this.helpInformation()));this.emit("--help")};Command.prototype.help=function(e){this.outputHelp(e);process.exit()};function camelcase(e){return e.split("-").reduce((function(e,t){return e+t[0].toUpperCase()+t.slice(1)}))}function pad(e,t){var r=Math.max(0,t-e.length);return e+Array(r+1).join(" ")}function outputHelpIfNecessary(e,t){t=t||[];for(var r=0;r<t.length;r++){if(t[r]==="--help"||t[r]==="-h"){e.outputHelp();process.exit(0)}}}function humanReadableArgName(e){var t=e.name+(e.variadic===true?"...":"");return e.required?"<"+t+">":"["+t+"]"}function exists(e){try{if(c.statSync(e).isFile()){return true}}catch(e){return false}}},21921:e=>{if(true){e.exports=Emitter}function Emitter(e){if(e)return mixin(e)}function mixin(e){for(var t in Emitter.prototype){e[t]=Emitter.prototype[t]}return e}Emitter.prototype.on=Emitter.prototype.addEventListener=function(e,t){this._callbacks=this._callbacks||{};(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t);return this};Emitter.prototype.once=function(e,t){function on(){this.off(e,on);t.apply(this,arguments)}on.fn=t;this.on(e,on);return this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(e,t){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length){delete this._callbacks["$"+e];return this}var n;for(var s=0;s<r.length;s++){n=r[s];if(n===t||n.fn===t){r.splice(s,1);break}}if(r.length===0){delete this._callbacks["$"+e]}return this};Emitter.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=new Array(arguments.length-1),r=this._callbacks["$"+e];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(r){r=r.slice(0);for(var n=0,s=r.length;n<s;++n){r[n].apply(this,t)}}return this};Emitter.prototype.listeners=function(e){this._callbacks=this._callbacks||{};return this._callbacks["$"+e]||[]};Emitter.prototype.hasListeners=function(e){return!!this.listeners(e).length}},47381:e=>{e.exports=function(e,r){var n=[];for(var s=0;s<e.length;s++){var i=r(e[s],s);if(t(i))n.push.apply(n,i);else n.push(i)}return n};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},87136:function(e,t,r){"use strict";e=r.nmd(e);var n=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var s=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var i,o;var a,c,u,l;Object.defineProperty(t,"__esModule",{value:true});const h=r(73837);const p=r(57147);const d=r(71017);const y=r(6113);const g=r(39491);const v=r(82361);const b=r(16006);const w=r(20990);const S=r(94263);const x=r(33809);const O=r(67265);const R=r(94525);const k=r(45399);const A=r(21452);const P=r(53430);const C="aes-256-cbc";const createPlainObject=()=>Object.create(null);const isExist=e=>e!==undefined&&e!==null;let $="";try{delete require.cache[__filename];$=d.dirname((o=(i=e.parent)===null||i===void 0?void 0:i.filename)!==null&&o!==void 0?o:".")}catch(e){}const checkValueType=(e,t)=>{const r=new Set(["undefined","symbol","function"]);const n=typeof t;if(r.has(n)){throw new TypeError(`Setting a value of type \`${n}\` for key \`${e}\` is not allowed as it's not supported by JSON`)}};const T="__internal__";const j=`${T}.migrations.version`;class Conf{constructor(e={}){var t;a.set(this,void 0);c.set(this,void 0);u.set(this,void 0);l.set(this,{});this._deserialize=e=>JSON.parse(e);this._serialize=e=>JSON.stringify(e,undefined,"\t");const r={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:false,accessPropertiesByDotNotation:true,configFileMode:438,...e};const i=P((()=>{const e=w.sync({cwd:$});const t=e&&JSON.parse(p.readFileSync(e,"utf8"));return t!==null&&t!==void 0?t:{}}));if(!r.cwd){if(!r.projectName){r.projectName=i().name}if(!r.projectName){throw new Error("Project name could not be inferred. Please specify the `projectName` option.")}r.cwd=S(r.projectName,{suffix:r.projectSuffix}).config}n(this,u,r,"f");if(r.schema){if(typeof r.schema!=="object"){throw new TypeError("The `schema` option must be an object.")}const e=new O.default({allErrors:true,useDefaults:true});(0,R.default)(e);const t={type:"object",properties:r.schema};n(this,a,e.compile(t),"f");for(const[e,t]of Object.entries(r.schema)){if(t===null||t===void 0?void 0:t.default){s(this,l,"f")[e]=t.default}}}if(r.defaults){n(this,l,{...s(this,l,"f"),...r.defaults},"f")}if(r.serialize){this._serialize=r.serialize}if(r.deserialize){this._deserialize=r.deserialize}this.events=new v.EventEmitter;n(this,c,r.encryptionKey,"f");const o=r.fileExtension?`.${r.fileExtension}`:"";this.path=d.resolve(r.cwd,`${(t=r.configName)!==null&&t!==void 0?t:"config"}${o}`);const h=this.store;const y=Object.assign(createPlainObject(),r.defaults,h);this._validate(y);try{g.deepEqual(h,y)}catch(e){this.store=y}if(r.watch){this._watch()}if(r.migrations){if(!r.projectVersion){r.projectVersion=i().version}if(!r.projectVersion){throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.")}this._migrate(r.migrations,r.projectVersion,r.beforeEachMigration)}}get(e,t){if(s(this,u,"f").accessPropertiesByDotNotation){return this._get(e,t)}const{store:r}=this;return e in r?r[e]:t}set(e,t){if(typeof e!=="string"&&typeof e!=="object"){throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof e}`)}if(typeof e!=="object"&&t===undefined){throw new TypeError("Use `delete()` to clear values")}if(this._containsReservedKey(e)){throw new TypeError(`Please don't use the ${T} key, as it's used to manage this module internal operations.`)}const{store:r}=this;const set=(e,t)=>{checkValueType(e,t);if(s(this,u,"f").accessPropertiesByDotNotation){b.set(r,e,t)}else{r[e]=t}};if(typeof e==="object"){const t=e;for(const[e,r]of Object.entries(t)){set(e,r)}}else{set(e,t)}this.store=r}has(e){if(s(this,u,"f").accessPropertiesByDotNotation){return b.has(this.store,e)}return e in this.store}reset(...e){for(const t of e){if(isExist(s(this,l,"f")[t])){this.set(t,s(this,l,"f")[t])}}}delete(e){const{store:t}=this;if(s(this,u,"f").accessPropertiesByDotNotation){b.delete(t,e)}else{delete t[e]}this.store=t}clear(){this.store=createPlainObject();for(const e of Object.keys(s(this,l,"f"))){this.reset(e)}}onDidChange(e,t){if(typeof e!=="string"){throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof e}`)}if(typeof t!=="function"){throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof t}`)}return this._handleChange((()=>this.get(e)),t)}onDidAnyChange(e){if(typeof e!=="function"){throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof e}`)}return this._handleChange((()=>this.store),e)}get size(){return Object.keys(this.store).length}get store(){try{const e=p.readFileSync(this.path,s(this,c,"f")?null:"utf8");const t=this._encryptData(e);const r=this._deserialize(t);this._validate(r);return Object.assign(createPlainObject(),r)}catch(e){if((e===null||e===void 0?void 0:e.code)==="ENOENT"){this._ensureDirectory();return createPlainObject()}if(s(this,u,"f").clearInvalidConfig&&e.name==="SyntaxError"){return createPlainObject()}throw e}}set store(e){this._ensureDirectory();this._validate(e);this._write(e);this.events.emit("change")}*[(a=new WeakMap,c=new WeakMap,u=new WeakMap,l=new WeakMap,Symbol.iterator)](){for(const[e,t]of Object.entries(this.store)){yield[e,t]}}_encryptData(e){if(!s(this,c,"f")){return e.toString()}try{if(s(this,c,"f")){try{if(e.slice(16,17).toString()===":"){const t=e.slice(0,16);const r=y.pbkdf2Sync(s(this,c,"f"),t.toString(),1e4,32,"sha512");const n=y.createDecipheriv(C,r,t);e=Buffer.concat([n.update(Buffer.from(e.slice(17))),n.final()]).toString("utf8")}else{const t=y.createDecipher(C,s(this,c,"f"));e=Buffer.concat([t.update(Buffer.from(e)),t.final()]).toString("utf8")}}catch(e){}}}catch(e){}return e.toString()}_handleChange(e,t){let r=e();const onChange=()=>{const n=r;const s=e();if((0,h.isDeepStrictEqual)(s,n)){return}r=s;t.call(this,s,n)};this.events.on("change",onChange);return()=>this.events.removeListener("change",onChange)}_validate(e){if(!s(this,a,"f")){return}const t=s(this,a,"f").call(this,e);if(t||!s(this,a,"f").errors){return}const r=s(this,a,"f").errors.map((({instancePath:e,message:t=""})=>`\`${e.slice(1)}\` ${t}`));throw new Error("Config schema violation: "+r.join("; "))}_ensureDirectory(){p.mkdirSync(d.dirname(this.path),{recursive:true})}_write(e){let t=this._serialize(e);if(s(this,c,"f")){const e=y.randomBytes(16);const r=y.pbkdf2Sync(s(this,c,"f"),e.toString(),1e4,32,"sha512");const n=y.createCipheriv(C,r,e);t=Buffer.concat([e,Buffer.from(":"),n.update(Buffer.from(t)),n.final()])}if(process.env.SNAP){p.writeFileSync(this.path,t,{mode:s(this,u,"f").configFileMode})}else{try{x.writeFileSync(this.path,t,{mode:s(this,u,"f").configFileMode})}catch(e){if((e===null||e===void 0?void 0:e.code)==="EXDEV"){p.writeFileSync(this.path,t,{mode:s(this,u,"f").configFileMode});return}throw e}}}_watch(){this._ensureDirectory();if(!p.existsSync(this.path)){this._write(createPlainObject())}if(process.platform==="win32"){p.watch(this.path,{persistent:false},k((()=>{this.events.emit("change")}),{wait:100}))}else{p.watchFile(this.path,{persistent:false},k((()=>{this.events.emit("change")}),{wait:5e3}))}}_migrate(e,t,r){let n=this._get(j,"0.0.0");const s=Object.keys(e).filter((e=>this._shouldPerformMigration(e,n,t)));let i={...this.store};for(const o of s){try{if(r){r(this,{fromVersion:n,toVersion:o,finalVersion:t,versions:s})}const a=e[o];a(this);this._set(j,o);n=o;i={...this.store}}catch(e){this.store=i;throw new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${e}`)}}if(this._isVersionInRangeFormat(n)||!A.eq(n,t)){this._set(j,t)}}_containsReservedKey(e){if(typeof e==="object"){const t=Object.keys(e)[0];if(t===T){return true}}if(typeof e!=="string"){return false}if(s(this,u,"f").accessPropertiesByDotNotation){if(e.startsWith(`${T}.`)){return true}return false}return false}_isVersionInRangeFormat(e){return A.clean(e)===null}_shouldPerformMigration(e,t,r){if(this._isVersionInRangeFormat(e)){if(t!=="0.0.0"&&A.satisfies(t,e)){return false}return A.satisfies(r,e)}if(A.lte(e,t)){return false}if(A.gt(e,r)){return false}return true}_get(e,t){return b.get(this.store,e,t)}_set(e,t){const{store:r}=this;b.set(r,e,t);this.store=r}}t["default"]=Conf;e.exports=Conf;e.exports["default"]=Conf},9440:e=>{"use strict";
39
39
  /*!
40
40
  * copy-descriptor <https://github.com/jonschlinkert/copy-descriptor>
41
41
  *
@@ -103,7 +103,7 @@
103
103
  *
104
104
  * Copyright (c) 2016-2017, Jon Schlinkert.
105
105
  * Released under the MIT License.
106
- */var n=r(12294);function FragmentCache(e){this.caches=e||{}}FragmentCache.prototype={cache:function(e){return this.caches[e]||(this.caches[e]=new n)},set:function(e,t,r){var n=this.cache(e);n.set(t,r);return n},has:function(e,t){return typeof this.get(e,t)!=="undefined"},get:function(e,t){var r=this.cache(e);if(typeof t==="string"){return r.get(t)}return r}};t=e.exports=FragmentCache},90036:(e,t,r)=>{"use strict";const n=r(67097);const s=r(82361).EventEmitter;const i=r(57147);const o=process.binding("fs");const a=o.writeBuffers;const c=o.FSReqWrap||o.FSReqCallback;const u=Symbol("_autoClose");const l=Symbol("_close");const h=Symbol("_ended");const p=Symbol("_fd");const d=Symbol("_finished");const y=Symbol("_flags");const g=Symbol("_flush");const v=Symbol("_handleChunk");const b=Symbol("_makeBuf");const w=Symbol("_mode");const S=Symbol("_needDrain");const x=Symbol("_onerror");const O=Symbol("_onopen");const R=Symbol("_onread");const k=Symbol("_onwrite");const A=Symbol("_open");const C=Symbol("_path");const P=Symbol("_pos");const $=Symbol("_queue");const T=Symbol("_read");const j=Symbol("_readSize");const I=Symbol("_reading");const N=Symbol("_remain");const M=Symbol("_size");const D=Symbol("_write");const L=Symbol("_writing");const B=Symbol("_defaultFlag");class ReadStream extends n{constructor(e,t){t=t||{};super(t);this.writable=false;if(typeof e!=="string")throw new TypeError("path must be a string");this[p]=typeof t.fd==="number"?t.fd:null;this[C]=e;this[j]=t.readSize||16*1024*1024;this[I]=false;this[M]=typeof t.size==="number"?t.size:Infinity;this[N]=this[M];this[u]=typeof t.autoClose==="boolean"?t.autoClose:true;if(typeof this[p]==="number")this[T]();else this[A]()}get fd(){return this[p]}get path(){return this[C]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[A](){i.open(this[C],"r",((e,t)=>this[O](e,t)))}[O](e,t){if(e)this[x](e);else{this[p]=t;this.emit("open",t);this[T]()}}[b](){return Buffer.allocUnsafe(Math.min(this[j],this[N]))}[T](){if(!this[I]){this[I]=true;const e=this[b]();if(e.length===0)return process.nextTick((()=>this[R](null,0,e)));i.read(this[p],e,0,e.length,null,((e,t,r)=>this[R](e,t,r)))}}[R](e,t,r){this[I]=false;if(e)this[x](e);else if(this[v](t,r))this[T]()}[l](){if(this[u]&&typeof this[p]==="number"){i.close(this[p],(e=>this.emit("close")));this[p]=null}}[x](e){this[I]=true;this[l]();this.emit("error",e)}[v](e,t){let r=false;this[N]-=e;if(e>0)r=super.write(e<t.length?t.slice(0,e):t);if(e===0||this[N]<=0){r=false;this[l]();super.end()}return r}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":if(typeof this[p]==="number")this[T]();break;default:return super.emit(e,t)}}}class ReadStreamSync extends ReadStream{[A](){let e=true;try{this[O](null,i.openSync(this[C],"r"));e=false}finally{if(e)this[l]()}}[T](){let e=true;try{if(!this[I]){this[I]=true;do{const e=this[b]();const t=e.length===0?0:i.readSync(this[p],e,0,e.length,null);if(!this[v](t,e))break}while(true);this[I]=false}e=false}finally{if(e)this[l]()}}[l](){if(this[u]&&typeof this[p]==="number"){try{i.closeSync(this[p])}catch(e){}this[p]=null;this.emit("close")}}}class WriteStream extends s{constructor(e,t){t=t||{};super(t);this.readable=false;this[L]=false;this[h]=false;this[S]=false;this[$]=[];this[C]=e;this[p]=typeof t.fd==="number"?t.fd:null;this[w]=t.mode===undefined?438:t.mode;this[P]=typeof t.start==="number"?t.start:null;this[u]=typeof t.autoClose==="boolean"?t.autoClose:true;const r=this[P]!==null?"r+":"w";this[B]=t.flags===undefined;this[y]=this[B]?r:t.flags;if(this[p]===null)this[A]()}get fd(){return this[p]}get path(){return this[C]}[x](e){this[l]();this[L]=true;this.emit("error",e)}[A](){i.open(this[C],this[y],this[w],((e,t)=>this[O](e,t)))}[O](e,t){if(this[B]&&this[y]==="r+"&&e&&e.code==="ENOENT"){this[y]="w";this[A]()}else if(e)this[x](e);else{this[p]=t;this.emit("open",t);this[g]()}}end(e,t){if(e)this.write(e,t);this[h]=true;if(!this[L]&&!this[$].length&&typeof this[p]==="number")this[k](null,0)}write(e,t){if(typeof e==="string")e=new Buffer(e,t);if(this[h]){this.emit("error",new Error("write() after end()"));return false}if(this[p]===null||this[L]||this[$].length){this[$].push(e);this[S]=true;return false}this[L]=true;this[D](e);return true}[D](e){i.write(this[p],e,0,e.length,this[P],((e,t)=>this[k](e,t)))}[k](e,t){if(e)this[x](e);else{if(this[P]!==null)this[P]+=t;if(this[$].length)this[g]();else{this[L]=false;if(this[h]&&!this[d]){this[d]=true;this[l]();this.emit("finish")}else if(this[S]){this[S]=false;this.emit("drain")}}}}[g](){if(this[$].length===0){if(this[h])this[k](null,0)}else if(this[$].length===1)this[D](this[$].pop());else{const e=this[$];this[$]=[];writev(this[p],e,this[P],((e,t)=>this[k](e,t)))}}[l](){if(this[u]&&typeof this[p]==="number"){i.close(this[p],(e=>this.emit("close")));this[p]=null}}}class WriteStreamSync extends WriteStream{[A](){let e;try{e=i.openSync(this[C],this[y],this[w])}catch(e){if(this[B]&&this[y]==="r+"&&e&&e.code==="ENOENT"){this[y]="w";return this[A]()}else throw e}this[O](null,e)}[l](){if(this[u]&&typeof this[p]==="number"){try{i.closeSync(this[p])}catch(e){}this[p]=null;this.emit("close")}}[D](e){try{this[k](null,i.writeSync(this[p],e,0,e.length,this[P]))}catch(e){this[k](e,0)}}}const writev=(e,t,r,n)=>{const done=(e,r)=>n(e,r,t);const s=new c;s.oncomplete=done;o.writeBuffers(e,t,r,s)};t.ReadStream=ReadStream;t.ReadStreamSync=ReadStreamSync;t.WriteStream=WriteStream;t.WriteStreamSync=WriteStreamSync},33981:(e,t,r)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=r(57147);var s=n.realpath;var i=n.realpathSync;var o=process.version;var a=/^v[0-5]\./.test(o);var c=r(43623);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(a){return s(e,t,r)}if(typeof t==="function"){r=t;t=null}s(e,t,(function(n,s){if(newError(n)){c.realpath(e,t,r)}else{r(n,s)}}))}function realpathSync(e,t){if(a){return i(e,t)}try{return i(e,t)}catch(r){if(newError(r)){return c.realpathSync(e,t)}else{throw r}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=s;n.realpathSync=i}},43623:(e,t,r)=>{var n=r(71017);var s=process.platform==="win32";var i=r(57147);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(o){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var a=n.normalize;if(s){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(s){var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var u=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,o={},a={};var l;var h;var p;var d;start();function start(){var t=u.exec(e);l=t[0].length;h=t[0];p=t[0];d="";if(s&&!a[p]){i.lstatSync(p);a[p]=true}}while(l<e.length){c.lastIndex=l;var y=c.exec(e);d=h;h+=y[0];p=d+y[1];l=c.lastIndex;if(a[p]||t&&t[p]===p){continue}var g;if(t&&Object.prototype.hasOwnProperty.call(t,p)){g=t[p]}else{var v=i.lstatSync(p);if(!v.isSymbolicLink()){a[p]=true;if(t)t[p]=p;continue}var b=null;if(!s){var w=v.dev.toString(32)+":"+v.ino.toString(32);if(o.hasOwnProperty(w)){b=o[w]}}if(b===null){i.statSync(p);b=i.readlinkSync(p)}g=n.resolve(d,b);if(t)t[p]=g;if(!s)o[w]=b}e=n.resolve(g,e.slice(l));start()}if(t)t[r]=e;return e};t.realpath=function realpath(e,t,r){if(typeof r!=="function"){r=maybeCallback(t);t=null}e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(r.bind(null,null,t[e]))}var o=e,a={},l={};var h;var p;var d;var y;start();function start(){var t=u.exec(e);h=t[0].length;p=t[0];d=t[0];y="";if(s&&!l[d]){i.lstat(d,(function(e){if(e)return r(e);l[d]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(h>=e.length){if(t)t[o]=e;return r(null,e)}c.lastIndex=h;var n=c.exec(e);y=p;p+=n[0];d=y+n[1];h=c.lastIndex;if(l[d]||t&&t[d]===d){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,d)){return gotResolvedLink(t[d])}return i.lstat(d,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){l[d]=true;if(t)t[d]=d;return process.nextTick(LOOP)}if(!s){var o=n.dev.toString(32)+":"+n.ino.toString(32);if(a.hasOwnProperty(o)){return gotTarget(null,a[o],d)}}i.stat(d,(function(e){if(e)return r(e);i.readlink(d,(function(e,t){if(!s)a[o]=t;gotTarget(e,t)}))}))}function gotTarget(e,s,i){if(e)return r(e);var o=n.resolve(y,s);if(t)t[i]=o;gotResolvedLink(o)}function gotResolvedLink(t){e=n.resolve(t,e.slice(h));start()}}},71760:(e,t,r)=>{"use strict";const{PassThrough:n}=r(12781);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const s=r==="buffer";let i=false;if(t){i=!(r||s)}else{r=r||"utf8"}if(s){r=null}const o=new n({objectMode:i});if(r){o.setEncoding(r)}let a=0;const c=[];o.on("data",(e=>{c.push(e);if(i){a=c.length}else{a+=e.length}}));o.getBufferedValue=()=>{if(t){return c}return s?Buffer.concat(c,a):c.join("")};o.getBufferedLength=()=>a;return o}},61401:(e,t,r)=>{"use strict";const n=r(51619);const s=r(71760);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t={maxBuffer:Infinity,...t};const{maxBuffer:r}=t;let i;await new Promise(((o,a)=>{const rejectPromise=e=>{if(e){e.bufferedData=i.getBufferedValue()}a(e)};i=n(e,s(t),(e=>{if(e){rejectPromise(e);return}o()}));i.on("data",(()=>{if(i.getBufferedLength()>r){rejectPromise(new MaxBufferError)}}))}));return i.getBufferedValue()}e.exports=getStream;e.exports["default"]=getStream;e.exports.buffer=(e,t)=>getStream(e,{...t,encoding:"buffer"});e.exports.array=(e,t)=>getStream(e,{...t,array:true});e.exports.MaxBufferError=MaxBufferError},50997:e=>{
106
+ */var n=r(12294);function FragmentCache(e){this.caches=e||{}}FragmentCache.prototype={cache:function(e){return this.caches[e]||(this.caches[e]=new n)},set:function(e,t,r){var n=this.cache(e);n.set(t,r);return n},has:function(e,t){return typeof this.get(e,t)!=="undefined"},get:function(e,t){var r=this.cache(e);if(typeof t==="string"){return r.get(t)}return r}};t=e.exports=FragmentCache},30644:(e,t,r)=>{"use strict";const n=r(97413);const s=r(82361).EventEmitter;const i=r(57147);let o=i.writev;if(!o){const e=process.binding("fs");const t=e.FSReqWrap||e.FSReqCallback;o=(r,n,s,i)=>{const done=(e,t)=>i(e,t,n);const o=new t;o.oncomplete=done;e.writeBuffers(r,n,s,o)}}const a=Symbol("_autoClose");const c=Symbol("_close");const u=Symbol("_ended");const l=Symbol("_fd");const h=Symbol("_finished");const p=Symbol("_flags");const d=Symbol("_flush");const y=Symbol("_handleChunk");const g=Symbol("_makeBuf");const v=Symbol("_mode");const b=Symbol("_needDrain");const w=Symbol("_onerror");const S=Symbol("_onopen");const x=Symbol("_onread");const O=Symbol("_onwrite");const R=Symbol("_open");const k=Symbol("_path");const A=Symbol("_pos");const P=Symbol("_queue");const C=Symbol("_read");const $=Symbol("_readSize");const T=Symbol("_reading");const j=Symbol("_remain");const I=Symbol("_size");const N=Symbol("_write");const M=Symbol("_writing");const D=Symbol("_defaultFlag");const L=Symbol("_errored");class ReadStream extends n{constructor(e,t){t=t||{};super(t);this.readable=true;this.writable=false;if(typeof e!=="string")throw new TypeError("path must be a string");this[L]=false;this[l]=typeof t.fd==="number"?t.fd:null;this[k]=e;this[$]=t.readSize||16*1024*1024;this[T]=false;this[I]=typeof t.size==="number"?t.size:Infinity;this[j]=this[I];this[a]=typeof t.autoClose==="boolean"?t.autoClose:true;if(typeof this[l]==="number")this[C]();else this[R]()}get fd(){return this[l]}get path(){return this[k]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[R](){i.open(this[k],"r",((e,t)=>this[S](e,t)))}[S](e,t){if(e)this[w](e);else{this[l]=t;this.emit("open",t);this[C]()}}[g](){return Buffer.allocUnsafe(Math.min(this[$],this[j]))}[C](){if(!this[T]){this[T]=true;const e=this[g]();if(e.length===0)return process.nextTick((()=>this[x](null,0,e)));i.read(this[l],e,0,e.length,null,((e,t,r)=>this[x](e,t,r)))}}[x](e,t,r){this[T]=false;if(e)this[w](e);else if(this[y](t,r))this[C]()}[c](){if(this[a]&&typeof this[l]==="number"){const e=this[l];this[l]=null;i.close(e,(e=>e?this.emit("error",e):this.emit("close")))}}[w](e){this[T]=true;this[c]();this.emit("error",e)}[y](e,t){let r=false;this[j]-=e;if(e>0)r=super.write(e<t.length?t.slice(0,e):t);if(e===0||this[j]<=0){r=false;this[c]();super.end()}return r}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":if(typeof this[l]==="number")this[C]();break;case"error":if(this[L])return;this[L]=true;return super.emit(e,t);default:return super.emit(e,t)}}}class ReadStreamSync extends ReadStream{[R](){let e=true;try{this[S](null,i.openSync(this[k],"r"));e=false}finally{if(e)this[c]()}}[C](){let e=true;try{if(!this[T]){this[T]=true;do{const e=this[g]();const t=e.length===0?0:i.readSync(this[l],e,0,e.length,null);if(!this[y](t,e))break}while(true);this[T]=false}e=false}finally{if(e)this[c]()}}[c](){if(this[a]&&typeof this[l]==="number"){const e=this[l];this[l]=null;i.closeSync(e);this.emit("close")}}}class WriteStream extends s{constructor(e,t){t=t||{};super(t);this.readable=false;this.writable=true;this[L]=false;this[M]=false;this[u]=false;this[b]=false;this[P]=[];this[k]=e;this[l]=typeof t.fd==="number"?t.fd:null;this[v]=t.mode===undefined?438:t.mode;this[A]=typeof t.start==="number"?t.start:null;this[a]=typeof t.autoClose==="boolean"?t.autoClose:true;const r=this[A]!==null?"r+":"w";this[D]=t.flags===undefined;this[p]=this[D]?r:t.flags;if(this[l]===null)this[R]()}emit(e,t){if(e==="error"){if(this[L])return;this[L]=true}return super.emit(e,t)}get fd(){return this[l]}get path(){return this[k]}[w](e){this[c]();this[M]=true;this.emit("error",e)}[R](){i.open(this[k],this[p],this[v],((e,t)=>this[S](e,t)))}[S](e,t){if(this[D]&&this[p]==="r+"&&e&&e.code==="ENOENT"){this[p]="w";this[R]()}else if(e)this[w](e);else{this[l]=t;this.emit("open",t);this[d]()}}end(e,t){if(e)this.write(e,t);this[u]=true;if(!this[M]&&!this[P].length&&typeof this[l]==="number")this[O](null,0);return this}write(e,t){if(typeof e==="string")e=Buffer.from(e,t);if(this[u]){this.emit("error",new Error("write() after end()"));return false}if(this[l]===null||this[M]||this[P].length){this[P].push(e);this[b]=true;return false}this[M]=true;this[N](e);return true}[N](e){i.write(this[l],e,0,e.length,this[A],((e,t)=>this[O](e,t)))}[O](e,t){if(e)this[w](e);else{if(this[A]!==null)this[A]+=t;if(this[P].length)this[d]();else{this[M]=false;if(this[u]&&!this[h]){this[h]=true;this[c]();this.emit("finish")}else if(this[b]){this[b]=false;this.emit("drain")}}}}[d](){if(this[P].length===0){if(this[u])this[O](null,0)}else if(this[P].length===1)this[N](this[P].pop());else{const e=this[P];this[P]=[];o(this[l],e,this[A],((e,t)=>this[O](e,t)))}}[c](){if(this[a]&&typeof this[l]==="number"){const e=this[l];this[l]=null;i.close(e,(e=>e?this.emit("error",e):this.emit("close")))}}}class WriteStreamSync extends WriteStream{[R](){let e;if(this[D]&&this[p]==="r+"){try{e=i.openSync(this[k],this[p],this[v])}catch(e){if(e.code==="ENOENT"){this[p]="w";return this[R]()}else throw e}}else e=i.openSync(this[k],this[p],this[v]);this[S](null,e)}[c](){if(this[a]&&typeof this[l]==="number"){const e=this[l];this[l]=null;i.closeSync(e);this.emit("close")}}[N](e){let t=true;try{this[O](null,i.writeSync(this[l],e,0,e.length,this[A]));t=false}finally{if(t)try{this[c]()}catch(e){}}}}t.ReadStream=ReadStream;t.ReadStreamSync=ReadStreamSync;t.WriteStream=WriteStream;t.WriteStreamSync=WriteStreamSync},33981:(e,t,r)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=r(57147);var s=n.realpath;var i=n.realpathSync;var o=process.version;var a=/^v[0-5]\./.test(o);var c=r(43623);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(a){return s(e,t,r)}if(typeof t==="function"){r=t;t=null}s(e,t,(function(n,s){if(newError(n)){c.realpath(e,t,r)}else{r(n,s)}}))}function realpathSync(e,t){if(a){return i(e,t)}try{return i(e,t)}catch(r){if(newError(r)){return c.realpathSync(e,t)}else{throw r}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=s;n.realpathSync=i}},43623:(e,t,r)=>{var n=r(71017);var s=process.platform==="win32";var i=r(57147);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(o){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var a=n.normalize;if(s){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(s){var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var u=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,o={},a={};var l;var h;var p;var d;start();function start(){var t=u.exec(e);l=t[0].length;h=t[0];p=t[0];d="";if(s&&!a[p]){i.lstatSync(p);a[p]=true}}while(l<e.length){c.lastIndex=l;var y=c.exec(e);d=h;h+=y[0];p=d+y[1];l=c.lastIndex;if(a[p]||t&&t[p]===p){continue}var g;if(t&&Object.prototype.hasOwnProperty.call(t,p)){g=t[p]}else{var v=i.lstatSync(p);if(!v.isSymbolicLink()){a[p]=true;if(t)t[p]=p;continue}var b=null;if(!s){var w=v.dev.toString(32)+":"+v.ino.toString(32);if(o.hasOwnProperty(w)){b=o[w]}}if(b===null){i.statSync(p);b=i.readlinkSync(p)}g=n.resolve(d,b);if(t)t[p]=g;if(!s)o[w]=b}e=n.resolve(g,e.slice(l));start()}if(t)t[r]=e;return e};t.realpath=function realpath(e,t,r){if(typeof r!=="function"){r=maybeCallback(t);t=null}e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(r.bind(null,null,t[e]))}var o=e,a={},l={};var h;var p;var d;var y;start();function start(){var t=u.exec(e);h=t[0].length;p=t[0];d=t[0];y="";if(s&&!l[d]){i.lstat(d,(function(e){if(e)return r(e);l[d]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(h>=e.length){if(t)t[o]=e;return r(null,e)}c.lastIndex=h;var n=c.exec(e);y=p;p+=n[0];d=y+n[1];h=c.lastIndex;if(l[d]||t&&t[d]===d){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,d)){return gotResolvedLink(t[d])}return i.lstat(d,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){l[d]=true;if(t)t[d]=d;return process.nextTick(LOOP)}if(!s){var o=n.dev.toString(32)+":"+n.ino.toString(32);if(a.hasOwnProperty(o)){return gotTarget(null,a[o],d)}}i.stat(d,(function(e){if(e)return r(e);i.readlink(d,(function(e,t){if(!s)a[o]=t;gotTarget(e,t)}))}))}function gotTarget(e,s,i){if(e)return r(e);var o=n.resolve(y,s);if(t)t[i]=o;gotResolvedLink(o)}function gotResolvedLink(t){e=n.resolve(t,e.slice(h));start()}}},71760:(e,t,r)=>{"use strict";const{PassThrough:n}=r(12781);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const s=r==="buffer";let i=false;if(t){i=!(r||s)}else{r=r||"utf8"}if(s){r=null}const o=new n({objectMode:i});if(r){o.setEncoding(r)}let a=0;const c=[];o.on("data",(e=>{c.push(e);if(i){a=c.length}else{a+=e.length}}));o.getBufferedValue=()=>{if(t){return c}return s?Buffer.concat(c,a):c.join("")};o.getBufferedLength=()=>a;return o}},61401:(e,t,r)=>{"use strict";const n=r(51619);const s=r(71760);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t={maxBuffer:Infinity,...t};const{maxBuffer:r}=t;let i;await new Promise(((o,a)=>{const rejectPromise=e=>{if(e){e.bufferedData=i.getBufferedValue()}a(e)};i=n(e,s(t),(e=>{if(e){rejectPromise(e);return}o()}));i.on("data",(()=>{if(i.getBufferedLength()>r){rejectPromise(new MaxBufferError)}}))}));return i.getBufferedValue()}e.exports=getStream;e.exports["default"]=getStream;e.exports.buffer=(e,t)=>getStream(e,{...t,encoding:"buffer"});e.exports.array=(e,t)=>getStream(e,{...t,array:true});e.exports.MaxBufferError=MaxBufferError},50997:e=>{
107
107
  /*!
108
108
  * get-value <https://github.com/jonschlinkert/get-value>
109
109
  *
@@ -247,7 +247,7 @@ var n=r(19999);var s={"{":"}","(":")","[":"]"};var strictCheck=function(e){if(e[
247
247
  *
248
248
  * Copyright (c) 2015, Jon Schlinkert.
249
249
  * Licensed under the MIT License.
250
- */var t=Object.prototype.hasOwnProperty;e.exports=MapCache;function MapCache(e){this.__data__=e||{}}MapCache.prototype.set=function mapSet(e,t){if(e!=="__proto__"){this.__data__[e]=t}return this};MapCache.prototype.get=function mapGet(e){return e==="__proto__"?undefined:this.__data__[e]};MapCache.prototype.has=function mapHas(e){return e!=="__proto__"&&t.call(this.__data__,e)};MapCache.prototype.del=function mapDelete(e){return this.has(e)&&delete this.__data__[e]}},18642:(e,t,r)=>{"use strict";var n=r(73837);var s=r(95291);e.exports=function mapVisit(e,t,r){if(isObject(r)){return s.apply(null,arguments)}if(!Array.isArray(r)){throw new TypeError("expected an array: "+n.inspect(r))}var i=[].slice.call(arguments,3);for(var o=0;o<r.length;o++){var a=r[o];if(isObject(a)){s.apply(null,[e,t,a].concat(i))}else{e[t].apply(e,[a].concat(i))}}};function isObject(e){return e&&(typeof e==="function"||!Array.isArray(e)&&typeof e==="object")}},29117:(e,t,r)=>{"use strict";const n=r(12781);const s=n.PassThrough;const i=Array.prototype.slice;e.exports=merge2;function merge2(){const e=[];const t=i.call(arguments);let r=false;let n=t[t.length-1];if(n&&!Array.isArray(n)&&n.pipe==null){t.pop()}else{n={}}const o=n.end!==false;const a=n.pipeError===true;if(n.objectMode==null){n.objectMode=true}if(n.highWaterMark==null){n.highWaterMark=64*1024}const c=s(n);function addStream(){for(let t=0,r=arguments.length;t<r;t++){e.push(pauseStreams(arguments[t],n))}mergeStream();return this}function mergeStream(){if(r){return}r=true;let t=e.shift();if(!t){process.nextTick(endStream);return}if(!Array.isArray(t)){t=[t]}let n=t.length+1;function next(){if(--n>0){return}r=false;mergeStream()}function pipe(e){function onend(){e.removeListener("merge2UnpipeEnd",onend);e.removeListener("end",onend);if(a){e.removeListener("error",onerror)}next()}function onerror(e){c.emit("error",e)}if(e._readableState.endEmitted){return next()}e.on("merge2UnpipeEnd",onend);e.on("end",onend);if(a){e.on("error",onerror)}e.pipe(c,{end:false});e.resume()}for(let e=0;e<t.length;e++){pipe(t[e])}next()}function endStream(){r=false;c.emit("queueDrain");if(o){c.end()}}c.setMaxListeners(0);c.add=addStream;c.on("unpipe",(function(e){e.emit("merge2UnpipeEnd")}));if(t.length){addStream.apply(null,t)}return c}function pauseStreams(e,t){if(!Array.isArray(e)){if(!e._readableState&&e.pipe){e=e.pipe(s(t))}if(!e._readableState||!e.pause||!e.pipe){throw new Error("Only readable stream can be merged.")}e.pause()}else{for(let r=0,n=e.length;r<n;r++){e[r]=pauseStreams(e[r],t)}}return e}},81848:(e,t,r)=>{"use strict";var n=r(73837);var s=r(3876);var i=r(15912);var o=r(86735);var a=r(67085);var c=r(161);var u=r(7991);var l=r(5503);var h=1024*64;function micromatch(e,t,r){t=l.arrayify(t);e=l.arrayify(e);var n=t.length;if(e.length===0||n===0){return[]}if(n===1){return micromatch.match(e,t[0],r)}var s=[];var i=[];var o=-1;while(++o<n){var a=t[o];if(typeof a==="string"&&a.charCodeAt(0)===33){s.push.apply(s,micromatch.match(e,a.slice(1),r))}else{i.push.apply(i,micromatch.match(e,a,r))}}var c=l.diff(i,s);if(!r||r.nodupes!==false){return l.unique(c)}return c}micromatch.match=function(e,t,r){if(Array.isArray(t)){throw new TypeError("expected pattern to be a string")}var n=l.unixify(r);var s=memoize("match",t,r,micromatch.matcher);var i=[];e=l.arrayify(e);var o=e.length;var a=-1;while(++a<o){var c=e[a];if(c===t||s(c)){i.push(l.value(c,n,r))}}if(typeof r==="undefined"){return l.unique(i)}if(i.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[r.unescape?l.unescape(t):t]}}if(r.ignore){i=micromatch.not(i,r.ignore,r)}return r.nodupes!==false?l.unique(i):i};micromatch.isMatch=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(isEmptyString(e)||isEmptyString(t)){return false}var s=l.equalsPattern(r);if(s(e)){return true}var i=memoize("isMatch",t,r,micromatch.matcher);return i(e)};micromatch.some=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(micromatch(e[n],t,r).length===1){return true}}return false};micromatch.every=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(micromatch(e[n],t,r).length!==1){return false}}return true};micromatch.any=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(isEmptyString(e)||isEmptyString(t)){return false}if(typeof t==="string"){t=[t]}for(var s=0;s<t.length;s++){if(micromatch.isMatch(e,t[s],r)){return true}}return false};micromatch.all=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){t=[t]}for(var s=0;s<t.length;s++){if(!micromatch.isMatch(e,t[s],r)){return false}}return true};micromatch.not=function(e,t,r){var n=o({},r);var s=n.ignore;delete n.ignore;var i=l.unixify(n);e=l.arrayify(e).map(i);var a=l.diff(e,micromatch(e,t,n));if(s){a=l.diff(a,micromatch(e,s))}return n.nodupes!==false?l.unique(a):a};micromatch.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}var s=l.equalsPattern(t,r);if(s(e)){return true}var i=l.containsPattern(t,r);if(i(e)){return true}}var a=o({},r,{contains:true});return micromatch.any(e,t,a)};micromatch.matchBase=function(e,t){if(e&&e.indexOf("/")!==-1||!t)return false;return t.basename===true||t.matchBase===true};micromatch.matchKeys=function(e,t,r){if(!l.isObject(e)){throw new TypeError("expected the first argument to be an object")}var n=micromatch(Object.keys(e),t,r);return l.pick(e,n)};micromatch.matcher=function matcher(e,t){if(Array.isArray(e)){return compose(e,t,matcher)}if(e instanceof RegExp){return test(e)}if(!l.isString(e)){throw new TypeError("expected pattern to be an array, string or regex")}if(!l.hasSpecialChars(e)){if(t&&t.nocase===true){e=e.toLowerCase()}return l.matchPath(e,t)}var r=micromatch.makeRe(e,t);if(micromatch.matchBase(e,t)){return l.matchBasename(r,t)}function test(e){var r=l.equalsPattern(t);var n=l.unixify(t);return function(t){if(r(t)){return true}if(e.test(n(t))){return true}return false}}var n=test(r);Object.defineProperty(n,"result",{configurable:true,enumerable:false,value:r.result});return n};micromatch.capture=function(e,t,r){var n=micromatch.makeRe(e,o({capture:true},r));var s=l.unixify(r);function match(){return function(e){var t=n.exec(s(e));if(!t){return null}return t.slice(1)}}var i=memoize("capture",e,r,match);return i(t)};micromatch.makeRe=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>h){throw new Error("expected pattern to be less than "+h+" characters")}function makeRe(){var r=micromatch.create(e,t);var n=[];var s=r.map((function(e){e.ast.state=e.state;n.push(e.ast);return e.output}));var o=i(s.join("|"),t);Object.defineProperty(o,"result",{configurable:true,enumerable:false,value:n});return o}return memoize("makeRe",e,t,makeRe)};micromatch.braces=function(e,t){if(typeof e!=="string"&&!Array.isArray(e)){throw new TypeError("expected pattern to be an array or string")}function expand(){if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return l.arrayify(e)}return s(e,t)}return memoize("braces",e,t,expand)};micromatch.braceExpand=function(e,t){var r=o({},t,{expand:true});return micromatch.braces(e,r)};micromatch.create=function(e,t){return memoize("create",e,t,(function(){function create(e,t){return micromatch.compile(micromatch.parse(e,t),t)}e=micromatch.braces(e,t);var r=e.length;var n=-1;var s=[];while(++n<r){s.push(create(e[n],t))}return s}))};micromatch.parse=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function parse(){var r=l.instantiate(null,t);c(r,t);var n=r.parse(e,t);l.define(n,"snapdragon",r);n.input=e;return n}return memoize("parse",e,t,parse)};micromatch.compile=function(e,t){if(typeof e==="string"){e=micromatch.parse(e,t)}return memoize("compile",e.input,t,(function(){var r=l.instantiate(e,t);a(r,t);return r.compile(e,t)}))};micromatch.clearCache=function(){micromatch.cache.caches={}};function isEmptyString(e){return String(e)===""||String(e)==="./"}function compose(e,t,r){var n;return memoize("compose",String(e),t,(function(){return function(s){if(!n){n=[];for(var i=0;i<e.length;i++){n.push(r(e[i],t))}}var o=n.length;while(o--){if(n[o](s)===true){return true}}return false}}))}function memoize(e,t,r,n){var s=l.createKey(e+"="+t,r);if(r&&r.cache===false){return n(t,r)}if(u.has(e,s)){return u.get(e,s)}var i=n(t,r);u.set(e,s,i);return i}micromatch.compilers=a;micromatch.parsers=c;micromatch.caches=u.caches;e.exports=micromatch},7991:(e,t,r)=>{e.exports=new(r(32172))},67085:(e,t,r)=>{"use strict";var n=r(69657);var s=r(74255);e.exports=function(e){var t=e.compiler.compilers;var r=e.options;e.use(n.compilers);var i=t.escape;var o=t.qmark;var a=t.slash;var c=t.star;var u=t.text;var l=t.plus;var h=t.dot;if(r.extglob===false||r.noext===true){e.compiler.use(escapeExtglobs)}else{e.use(s.compilers)}e.use((function(){this.options.star=this.options.star||function(){return"[^\\\\/]*?"}}));e.compiler.set("dot",h).set("escape",i).set("plus",l).set("slash",a).set("qmark",o).set("star",c).set("text",u)};function escapeExtglobs(e){e.set("paren",(function(e){var t="";visit(e,(function(e){if(e.val)t+=(/^\W/.test(e.val)?"\\":"")+e.val}));return this.emit(t,e)}));function visit(e,t){return e.nodes?mapVisit(e.nodes,t):t(e)}function mapVisit(e,t){var r=e.length;var n=-1;while(++n<r){visit(e[n],t)}}}},161:(e,t,r)=>{"use strict";var n=r(74255);var s=r(69657);var i=r(19157);var o=r(15912);var a;var c="([!@*?+]?\\(|\\)|\\[:?(?=.*?:?\\])|:?\\]|[*+?!^$.\\\\/])+";var createNotRegex=function(e){return a||(a=textRegex(c))};e.exports=function(e){var t=e.parser.parsers;e.use(s.parsers);var r=t.escape;var i=t.slash;var o=t.qmark;var a=t.plus;var c=t.star;var u=t.dot;e.use(n.parsers);e.parser.use((function(){this.notRegex=/^\!+(?!\()/})).capture("escape",r).capture("slash",i).capture("qmark",o).capture("star",c).capture("plus",a).capture("dot",u).capture("text",(function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(createNotRegex(this.options));if(!t||!t[0])return;var r=t[0].replace(/([[\]^$])/g,"\\$1");return e({type:"text",val:r})}))};function textRegex(e){var t=i.create(e,{contains:true,strictClose:false});var r="(?:[\\^]|\\\\|";return o(r+t+")",{strictClose:false})}},5503:(e,t,r)=>{"use strict";var n=e.exports;var s=r(71017);var i=r(30267);n.define=r(11945);n.diff=r(44130);n.extend=r(86735);n.pick=r(56058);n.typeOf=r(44824);n.unique=r(89424);n.isWindows=function(){return s.sep==="\\"||process.platform==="win32"};n.instantiate=function(e,t){var r;if(n.typeOf(e)==="object"&&e.snapdragon){r=e.snapdragon}else if(n.typeOf(t)==="object"&&t.snapdragon){r=t.snapdragon}else{r=new i(t)}n.define(r,"parse",(function(e,t){var r=i.prototype.parse.apply(this,arguments);r.input=e;var s=this.parser.stack.pop();if(s&&this.options.strictErrors!==true){var o=s.nodes[0];var a=s.nodes[1];if(s.type==="bracket"){if(a.val.charAt(0)==="["){a.val="\\"+a.val}}else{o.val="\\"+o.val;var c=o.parent.nodes[1];if(c.type==="star"){c.loose=true}}}n.define(r,"parser",this.parser);return r}));return r};n.createKey=function(e,t){if(n.typeOf(t)!=="object"){return e}var r=e;var s=Object.keys(t);for(var i=0;i<s.length;i++){var o=s[i];r+=";"+o+"="+String(t[o])}return r};n.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};n.isString=function(e){return typeof e==="string"};n.isObject=function(e){return n.typeOf(e)==="object"};n.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|\[\]{}]|[+@]\()/.test(e)};n.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\\/\s]/g,"\\$&")};n.toPosixPath=function(e){return e.replace(/\\+/g,"/")};n.unescape=function(e){return n.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))};n.stripPrefix=function(e){if(e.charAt(0)!=="."){return e}var t=e.charAt(1);if(n.isSlash(t)){return e.slice(2)}return e};n.isSlash=function(e){return e==="/"||e==="\\/"||e==="\\"||e==="\\\\"};n.matchPath=function(e,t){return t&&t.contains?n.containsPattern(e,t):n.equalsPattern(e,t)};n._equals=function(e,t,r){return r===e||r===t};n._contains=function(e,t,r){return e.indexOf(r)!==-1||t.indexOf(r)!==-1};n.equalsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function fn(s){var i=n._equals(s,r(s),e);if(i===true||t.nocase!==true){return i}var o=s.toLowerCase();return n._equals(o,r(o),e)}};n.containsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function(s){var i=n._contains(s,r(s),e);if(i===true||t.nocase!==true){return i}var o=s.toLowerCase();return n._contains(o,r(o),e)}};n.matchBasename=function(e){return function(t){return e.test(s.basename(t))}};n.value=function(e,t,r){if(r&&r.unixify===false){return e}return t(e)};n.unixify=function(e){e=e||{};return function(t){if(n.isWindows()||e.unixify===true){t=n.toPosixPath(t)}if(e.stripPrefix!==false){t=n.stripPrefix(t)}if(e.unescape===true){t=n.unescape(t)}return t}}},95469:e=>{"use strict";const mimicFn=(e,t)=>{for(const r of Reflect.ownKeys(t)){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}return e};e.exports=mimicFn;e.exports["default"]=mimicFn},11867:e=>{"use strict";const copyProperty=(e,t,r,n)=>{if(r==="length"||r==="prototype"){return}if(r==="arguments"||r==="caller"){return}const s=Object.getOwnPropertyDescriptor(e,r);const i=Object.getOwnPropertyDescriptor(t,r);if(!canCopyProperty(s,i)&&n){return}Object.defineProperty(e,r,i)};const canCopyProperty=function(e,t){return e===undefined||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)};const changePrototype=(e,t)=>{const r=Object.getPrototypeOf(t);if(r===Object.getPrototypeOf(e)){return}Object.setPrototypeOf(e,r)};const wrappedToString=(e,t)=>`/* Wrapped ${e}*/\n${t}`;const t=Object.getOwnPropertyDescriptor(Function.prototype,"toString");const r=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");const changeToString=(e,n,s)=>{const i=s===""?"":`with ${s.trim()}() `;const o=wrappedToString.bind(null,i,n.toString());Object.defineProperty(o,"name",r);Object.defineProperty(e,"toString",{...t,value:o})};const mimicFn=(e,t,{ignoreNonConfigurable:r=false}={})=>{const{name:n}=e;for(const n of Reflect.ownKeys(t)){copyProperty(e,t,n,r)}changePrototype(e,t);changeToString(e,t,n);return e};e.exports=mimicFn},94240:e=>{"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=(e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}}},15479:e=>{"use strict";const t=["aborted","complete","destroy","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];e.exports=(e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}return r}},88923:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var n=function(){try{return r(71017)}catch(e){}}()||{sep:"/"};minimatch.sep=n.sep;var s=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var i=r(54800);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var h=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var p=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,n,s){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,n,s){return t(r,n,ext(e,s))};r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,n){return t.filter(r,ext(e,n))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,n){return t.makeRe(r,ext(e,n))};r.braceExpand=function braceExpand(r,n){return t.braceExpand(r,ext(e,n))};r.match=function(r,n,s){return t.match(r,n,ext(e,s))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(p)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var n=0;if(r.nonegate)return;for(var s=0,i=e.length;s<i&&e.charAt(s)==="!";s++){t=!t;n++}if(n)this.pattern=e.substr(n);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return i(e)}var d=1024*64;var assertValidPattern=function(e){if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>d){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var y={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return s;else e="*"}if(e==="")return"";var n="";var i=!!r.nocase;var u=false;var l=[];var p=[];var d;var g=false;var v=-1;var b=-1;var w=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var S=this;function clearStateChar(){if(d){switch(d){case"*":n+=c;i=true;break;case"?":n+=a;i=true;break;default:n+="\\"+d;break}S.debug("clearStateChar %j %j",d,n);d=false}}for(var x=0,O=e.length,R;x<O&&(R=e.charAt(x));x++){this.debug("%s\t%s %s %j",e,x,n,R);if(u&&h[R]){n+="\\"+R;u=false;continue}switch(R){case"/":{return false}case"\\":clearStateChar();u=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,x,n,R);if(g){this.debug(" in class");if(R==="!"&&x===b+1)R="^";n+=R;continue}S.debug("call clearStateChar %j",d);clearStateChar();d=R;if(r.noext)clearStateChar();continue;case"(":if(g){n+="(";continue}if(!d){n+="\\(";continue}l.push({type:d,start:x-1,reStart:n.length,open:o[d].open,close:o[d].close});n+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,n);d=false;continue;case")":if(g||!l.length){n+="\\)";continue}clearStateChar();i=true;var k=l.pop();n+=k.close;if(k.type==="!"){p.push(k)}k.reEnd=n.length;continue;case"|":if(g||!l.length||u){n+="\\|";u=false;continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(g){n+="\\"+R;continue}g=true;b=x;v=n.length;n+=R;continue;case"]":if(x===b+1||!g){n+="\\"+R;u=false;continue}var A=e.substring(b+1,x);try{RegExp("["+A+"]")}catch(e){var C=this.parse(A,y);n=n.substr(0,v)+"\\["+C[0]+"\\]";i=i||C[1];g=false;continue}i=true;g=false;n+=R;continue;default:clearStateChar();if(u){u=false}else if(h[R]&&!(R==="^"&&g)){n+="\\"}n+=R}}if(g){A=e.substr(b+1);C=this.parse(A,y);n=n.substr(0,v)+"\\["+C[0];i=i||C[1]}for(k=l.pop();k;k=l.pop()){var P=n.slice(k.reStart+k.open.length);this.debug("setting tail",n,k);P=P.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",P,P,k,n);var $=k.type==="*"?c:k.type==="?"?a:"\\"+k.type;i=true;n=n.slice(0,k.reStart)+$+"\\("+P}clearStateChar();if(u){n+="\\\\"}var T=false;switch(n.charAt(0)){case"[":case".":case"(":T=true}for(var j=p.length-1;j>-1;j--){var I=p[j];var N=n.slice(0,I.reStart);var M=n.slice(I.reStart,I.reEnd-8);var D=n.slice(I.reEnd-8,I.reEnd);var L=n.slice(I.reEnd);D+=L;var B=N.split("(").length-1;var U=L;for(x=0;x<B;x++){U=U.replace(/\)[+*?]?/,"")}L=U;var G="";if(L===""&&t!==y){G="$"}var z=N+M+L+G+D;n=z}if(n!==""&&i){n="(?=.)"+n}if(T){n=w+n}if(t===y){return[n,i]}if(!i){return globUnescape(e)}var q=r.nocase?"i":"";try{var V=new RegExp("^"+n+"$",q)}catch(e){return new RegExp("$.")}V._glob=e;V._src=n;return V}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?c:t.dot?u:l;var n=t.nocase?"i":"";var i=e.map((function(e){return e.map((function(e){return e===s?r:typeof e==="string"?regExpEscape(e):e._src})).join("\\/")})).join("|");i="^(?:"+i+")$";if(this.negate)i="^(?!"+i+").*$";try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var n=new Minimatch(t,r);e=e.filter((function(e){return n.match(e)}));if(n.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=function match(e,t){if(typeof t==="undefined")t=this.partial;this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(p);this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i;var o;for(o=e.length-1;o>=0;o--){i=e[o];if(i)break}for(o=0;o<s.length;o++){var a=s[o];var c=e;if(r.matchBase&&a.length===1){c=[i]}var u=this.matchOne(c,a,t);if(u){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var i=0,o=0,a=e.length,c=t.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var u=t[o];var l=e[i];this.debug(t,u,l);if(u===false)return false;if(u===s){this.debug("GLOBSTAR",[t,u,l]);var h=i;var p=o+1;if(p===c){this.debug("** at the end");for(;i<a;i++){if(e[i]==="."||e[i]===".."||!n.dot&&e[i].charAt(0)===".")return false}return true}while(h<a){var d=e[h];this.debug("\nglobstar while",e,h,t,p,d);if(this.matchOne(e.slice(h),t.slice(p),r)){this.debug("globstar found match!",h,a,d);return true}else{if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,h,t,p);break}this.debug("globstar swallow a segment, and continue");h++}}if(r){this.debug("\n>>> no match, partial?",e,h,t,p);if(h===a)return true}return false}var y;if(typeof u==="string"){y=l===u;this.debug("string match",u,l,y)}else{y=l.match(u);this.debug("pattern match",u,l,y)}if(!y)return false}if(i===a&&o===c){return true}else if(i===a){return r}else if(o===c){return i===a-1&&e[i]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},81445:e=>{const t=typeof process==="object"&&process&&process.platform==="win32";e.exports=t?{sep:"\\"}:{sep:"/"}},53373:(e,t,r)=>{const n=e.exports=(e,t,r={})=>{assertValidPattern(t);if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)};e.exports=n;const s=r(81445);n.sep=s.sep;const i=Symbol("globstar **");n.GLOBSTAR=i;const o=r(97847);const a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const c="[^/]";const u=c+"*?";const l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const h="(?:(?!(?:\\/|^)\\.).)*?";const charSet=e=>e.split("").reduce(((e,t)=>{e[t]=true;return e}),{});const p=charSet("().*{}+?[]^$\\!");const d=charSet("[.(");const y=/\/+/;n.filter=(e,t={})=>(r,s,i)=>n(r,e,t);const ext=(e,t={})=>{const r={};Object.keys(e).forEach((t=>r[t]=e[t]));Object.keys(t).forEach((e=>r[e]=t[e]));return r};n.defaults=e=>{if(!e||typeof e!=="object"||!Object.keys(e).length){return n}const t=n;const m=(r,n,s)=>t(r,n,ext(e,s));m.Minimatch=class Minimatch extends t.Minimatch{constructor(t,r){super(t,ext(e,r))}};m.Minimatch.defaults=r=>t.defaults(ext(e,r)).Minimatch;m.filter=(r,n)=>t.filter(r,ext(e,n));m.defaults=r=>t.defaults(ext(e,r));m.makeRe=(r,n)=>t.makeRe(r,ext(e,n));m.braceExpand=(r,n)=>t.braceExpand(r,ext(e,n));m.match=(r,n,s)=>t.match(r,n,ext(e,s));return m};n.braceExpand=(e,t)=>braceExpand(e,t);const braceExpand=(e,t={})=>{assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return o(e)};const g=1024*64;const assertValidPattern=e=>{if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>g){throw new TypeError("pattern is too long")}};const v=Symbol("subparse");n.makeRe=(e,t)=>new Minimatch(e,t||{}).makeRe();n.match=(e,t,r={})=>{const n=new Minimatch(t,r);e=e.filter((e=>n.match(e)));if(n.options.nonull&&!e.length){e.push(t)}return e};const globUnescape=e=>e.replace(/\\(.)/g,"$1");const regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Minimatch{constructor(e,t){assertValidPattern(e);if(!t)t={};this.options=t;this.set=[];this.pattern=e;this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}debug(){}make(){const e=this.pattern;const t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();let r=this.globSet=this.braceExpand();if(t.debug)this.debug=(...e)=>console.error(...e);this.debug(this.pattern,r);r=this.globParts=r.map((e=>e.split(y)));this.debug(this.pattern,r);r=r.map(((e,t,r)=>e.map(this.parse,this)));this.debug(this.pattern,r);r=r.filter((e=>e.indexOf(false)===-1));this.debug(this.pattern,r);this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=false;let r=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++){t=!t;r++}if(r)this.pattern=e.substr(r);this.negate=t}matchOne(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var s=0,o=0,a=e.length,c=t.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var u=t[o];var l=e[s];this.debug(t,u,l);if(u===false)return false;if(u===i){this.debug("GLOBSTAR",[t,u,l]);var h=s;var p=o+1;if(p===c){this.debug("** at the end");for(;s<a;s++){if(e[s]==="."||e[s]===".."||!n.dot&&e[s].charAt(0)===".")return false}return true}while(h<a){var d=e[h];this.debug("\nglobstar while",e,h,t,p,d);if(this.matchOne(e.slice(h),t.slice(p),r)){this.debug("globstar found match!",h,a,d);return true}else{if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,h,t,p);break}this.debug("globstar swallow a segment, and continue");h++}}if(r){this.debug("\n>>> no match, partial?",e,h,t,p);if(h===a)return true}return false}var y;if(typeof u==="string"){y=l===u;this.debug("string match",u,l,y)}else{y=l.match(u);this.debug("pattern match",u,l,y)}if(!y)return false}if(s===a&&o===c){return true}else if(s===a){return r}else if(o===c){return s===a-1&&e[s]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(e,t){assertValidPattern(e);const r=this.options;if(e==="**"){if(!r.noglobstar)return i;else e="*"}if(e==="")return"";let n="";let s=!!r.nocase;let o=false;const l=[];const h=[];let y;let g=false;let b=-1;let w=-1;let S;let x;let O;const R=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(y){switch(y){case"*":n+=u;s=true;break;case"?":n+=c;s=true;break;default:n+="\\"+y;break}this.debug("clearStateChar %j %j",y,n);y=false}};for(let t=0,i;t<e.length&&(i=e.charAt(t));t++){this.debug("%s\t%s %s %j",e,t,n,i);if(o){if(i==="/"){return false}if(p[i]){n+="\\"}n+=i;o=false;continue}switch(i){case"/":{return false}case"\\":clearStateChar();o=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,t,n,i);if(g){this.debug(" in class");if(i==="!"&&t===w+1)i="^";n+=i;continue}this.debug("call clearStateChar %j",y);clearStateChar();y=i;if(r.noext)clearStateChar();continue;case"(":if(g){n+="(";continue}if(!y){n+="\\(";continue}l.push({type:y,start:t-1,reStart:n.length,open:a[y].open,close:a[y].close});n+=y==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",y,n);y=false;continue;case")":if(g||!l.length){n+="\\)";continue}clearStateChar();s=true;x=l.pop();n+=x.close;if(x.type==="!"){h.push(x)}x.reEnd=n.length;continue;case"|":if(g||!l.length){n+="\\|";continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(g){n+="\\"+i;continue}g=true;w=t;b=n.length;n+=i;continue;case"]":if(t===w+1||!g){n+="\\"+i;continue}S=e.substring(w+1,t);try{RegExp("["+S+"]")}catch(e){O=this.parse(S,v);n=n.substr(0,b)+"\\["+O[0]+"\\]";s=s||O[1];g=false;continue}s=true;g=false;n+=i;continue;default:clearStateChar();if(p[i]&&!(i==="^"&&g)){n+="\\"}n+=i;break}}if(g){S=e.substr(w+1);O=this.parse(S,v);n=n.substr(0,b)+"\\["+O[0];s=s||O[1]}for(x=l.pop();x;x=l.pop()){let e;e=n.slice(x.reStart+x.open.length);this.debug("setting tail",n,x);e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>{if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",e,e,x,n);const t=x.type==="*"?u:x.type==="?"?c:"\\"+x.type;s=true;n=n.slice(0,x.reStart)+t+"\\("+e}clearStateChar();if(o){n+="\\\\"}const k=d[n.charAt(0)];for(let e=h.length-1;e>-1;e--){const r=h[e];const s=n.slice(0,r.reStart);const i=n.slice(r.reStart,r.reEnd-8);let o=n.slice(r.reEnd);const a=n.slice(r.reEnd-8,r.reEnd)+o;const c=s.split("(").length-1;let u=o;for(let e=0;e<c;e++){u=u.replace(/\)[+*?]?/,"")}o=u;const l=o===""&&t!==v?"$":"";n=s+i+o+l+a}if(n!==""&&s){n="(?=.)"+n}if(k){n=R+n}if(t===v){return[n,s]}if(!s){return globUnescape(e)}const A=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",A),{_glob:e,_src:n})}catch(e){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const e=this.set;if(!e.length){this.regexp=false;return this.regexp}const t=this.options;const r=t.noglobstar?u:t.dot?l:h;const n=t.nocase?"i":"";let s=e.map((e=>{e=e.map((e=>typeof e==="string"?regExpEscape(e):e===i?i:e._src)).reduce(((e,t)=>{if(!(e[e.length-1]===i&&t===i)){e.push(t)}return e}),[]);e.forEach(((t,n)=>{if(t!==i||e[n-1]===i){return}if(n===0){if(e.length>1){e[n+1]="(?:\\/|"+r+"\\/)?"+e[n+1]}else{e[n]=r}}else if(n===e.length-1){e[n-1]+="(?:\\/|"+r+")?"}else{e[n-1]+="(?:\\/|\\/"+r+"\\/)"+e[n+1];e[n+1]=i}}));return e.filter((e=>e!==i)).join("/")})).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,n)}catch(e){this.regexp=false}return this.regexp}match(e,t=this.partial){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;const r=this.options;if(s.sep!=="/"){e=e.split(s.sep).join("/")}e=e.split(y);this.debug(this.pattern,"split",e);const n=this.set;this.debug(this.pattern,"set",n);let i;for(let t=e.length-1;t>=0;t--){i=e[t];if(i)break}for(let s=0;s<n.length;s++){const o=n[s];let a=e;if(r.matchBase&&o.length===1){a=[i]}const c=this.matchOne(a,o,t);if(c){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}static defaults(e){return n.defaults(e).Minimatch}}n.Minimatch=Minimatch},21254:e=>{e.exports=function(e,t){if(!t)t={};var r={bools:{},strings:{},unknownFn:null};if(typeof t["unknown"]==="function"){r.unknownFn=t["unknown"]}if(typeof t["boolean"]==="boolean"&&t["boolean"]){r.allBools=true}else{[].concat(t["boolean"]).filter(Boolean).forEach((function(e){r.bools[e]=true}))}var n={};Object.keys(t.alias||{}).forEach((function(e){n[e]=[].concat(t.alias[e]);n[e].forEach((function(t){n[t]=[e].concat(n[e].filter((function(e){return t!==e})))}))}));[].concat(t.string).filter(Boolean).forEach((function(e){r.strings[e]=true;if(n[e]){r.strings[n[e]]=true}}));var s=t["default"]||{};var i={_:[]};Object.keys(r.bools).forEach((function(e){setArg(e,s[e]===undefined?false:s[e])}));var o=[];if(e.indexOf("--")!==-1){o=e.slice(e.indexOf("--")+1);e=e.slice(0,e.indexOf("--"))}function argDefined(e,t){return r.allBools&&/^--[^=]+$/.test(t)||r.strings[e]||r.bools[e]||n[e]}function setArg(e,t,s){if(s&&r.unknownFn&&!argDefined(e,s)){if(r.unknownFn(s)===false)return}var o=!r.strings[e]&&isNumber(t)?Number(t):t;setKey(i,e.split("."),o);(n[e]||[]).forEach((function(e){setKey(i,e.split("."),o)}))}function setKey(e,t,n){var s=e;for(var i=0;i<t.length-1;i++){var o=t[i];if(isConstructorOrProto(s,o))return;if(s[o]===undefined)s[o]={};if(s[o]===Object.prototype||s[o]===Number.prototype||s[o]===String.prototype)s[o]={};if(s[o]===Array.prototype)s[o]=[];s=s[o]}var o=t[t.length-1];if(isConstructorOrProto(s,o))return;if(s===Object.prototype||s===Number.prototype||s===String.prototype)s={};if(s===Array.prototype)s=[];if(s[o]===undefined||r.bools[o]||typeof s[o]==="boolean"){s[o]=n}else if(Array.isArray(s[o])){s[o].push(n)}else{s[o]=[s[o],n]}}function aliasIsBoolean(e){return n[e].some((function(e){return r.bools[e]}))}for(var a=0;a<e.length;a++){var c=e[a];if(/^--.+=/.test(c)){var u=c.match(/^--([^=]+)=([\s\S]*)$/);var l=u[1];var h=u[2];if(r.bools[l]){h=h!=="false"}setArg(l,h,c)}else if(/^--no-.+/.test(c)){var l=c.match(/^--no-(.+)/)[1];setArg(l,false,c)}else if(/^--.+/.test(c)){var l=c.match(/^--(.+)/)[1];var p=e[a+1];if(p!==undefined&&!/^-/.test(p)&&!r.bools[l]&&!r.allBools&&(n[l]?!aliasIsBoolean(l):true)){setArg(l,p,c);a++}else if(/^(true|false)$/.test(p)){setArg(l,p==="true",c);a++}else{setArg(l,r.strings[l]?"":true,c)}}else if(/^-[^-]+/.test(c)){var d=c.slice(1,-1).split("");var y=false;for(var g=0;g<d.length;g++){var p=c.slice(g+2);if(p==="-"){setArg(d[g],p,c);continue}if(/[A-Za-z]/.test(d[g])&&/=/.test(p)){setArg(d[g],p.split("=")[1],c);y=true;break}if(/[A-Za-z]/.test(d[g])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(p)){setArg(d[g],p,c);y=true;break}if(d[g+1]&&d[g+1].match(/\W/)){setArg(d[g],c.slice(g+2),c);y=true;break}else{setArg(d[g],r.strings[d[g]]?"":true,c)}}var l=c.slice(-1)[0];if(!y&&l!=="-"){if(e[a+1]&&!/^(-|--)[^-]/.test(e[a+1])&&!r.bools[l]&&(n[l]?!aliasIsBoolean(l):true)){setArg(l,e[a+1],c);a++}else if(e[a+1]&&/^(true|false)$/.test(e[a+1])){setArg(l,e[a+1]==="true",c);a++}else{setArg(l,r.strings[l]?"":true,c)}}}else{if(!r.unknownFn||r.unknownFn(c)!==false){i._.push(r.strings["_"]||!isNumber(c)?c:Number(c))}if(t.stopEarly){i._.push.apply(i._,e.slice(a+1));break}}}Object.keys(s).forEach((function(e){if(!hasKey(i,e.split("."))){setKey(i,e.split("."),s[e]);(n[e]||[]).forEach((function(t){setKey(i,t.split("."),s[e])}))}}));if(t["--"]){i["--"]=new Array;o.forEach((function(e){i["--"].push(e)}))}else{o.forEach((function(e){i._.push(e)}))}return i};function hasKey(e,t){var r=e;t.slice(0,-1).forEach((function(e){r=r[e]||{}}));var n=t[t.length-1];return n in r}function isNumber(e){if(typeof e==="number")return true;if(/^0x[0-9a-f]+$/i.test(e))return true;return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function isConstructorOrProto(e,t){return t==="constructor"&&typeof e[t]==="function"||t==="__proto__"}},67097:(e,t,r)=>{"use strict";const n=r(82361);const s=r(11190);const i=r(71576).StringDecoder;const o=Symbol("EOF");const a=Symbol("maybeEmitEnd");const c=Symbol("emittedEnd");const u=Symbol("emittingEnd");const l=Symbol("closed");const h=Symbol("read");const p=Symbol("flush");const d=Symbol("flushChunk");const y=Symbol("encoding");const g=Symbol("decoder");const v=Symbol("flowing");const b=Symbol("paused");const w=Symbol("resume");const S=Symbol("bufferLength");const x=Symbol("bufferPush");const O=Symbol("bufferShift");const R=Symbol("objectMode");const k=Symbol("destroyed");const A=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const C=A&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const P=A&&Symbol.iterator||Symbol("iterator not implemented");const $=Buffer.alloc?Buffer:r(65055).Buffer;const isEndish=e=>e==="end"||e==="finish"||e==="prefinish";const isArrayBuffer=e=>e instanceof ArrayBuffer||typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const isArrayBufferView=e=>!$.isBuffer(e)&&ArrayBuffer.isView(e);e.exports=class Minipass extends n{constructor(e){super();this[v]=false;this[b]=false;this.pipes=new s;this.buffer=new s;this[R]=e&&e.objectMode||false;if(this[R])this[y]=null;else this[y]=e&&e.encoding||null;if(this[y]==="buffer")this[y]=null;this[g]=this[y]?new i(this[y]):null;this[o]=false;this[c]=false;this[u]=false;this[l]=false;this.writable=true;this.readable=true;this[S]=0;this[k]=false}get bufferLength(){return this[S]}get encoding(){return this[y]}set encoding(e){if(this[R])throw new Error("cannot set encoding in objectMode");if(this[y]&&e!==this[y]&&(this[g]&&this[g].lastNeed||this[S]))throw new Error("cannot change encoding");if(this[y]!==e){this[g]=e?new i(e):null;if(this.buffer.length)this.buffer=this.buffer.map((e=>this[g].write(e)))}this[y]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[R]}set objectMode(e){this[R]=this[R]||!!e}write(e,t,r){if(this[o])throw new Error("write after end");if(this[k]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function")r=t,t="utf8";if(!t)t="utf8";if(!this[R]&&!$.isBuffer(e)){if(isArrayBufferView(e))e=$.from(e.buffer,e.byteOffset,e.byteLength);else if(isArrayBuffer(e))e=$.from(e);else if(typeof e!=="string")this.objectMode=true}if(!this.objectMode&&!e.length){const e=this.flowing;if(this[S]!==0)this.emit("readable");if(r)r();return e}if(typeof e==="string"&&!this[R]&&!(t===this[y]&&!this[g].lastNeed)){e=$.from(e,t)}if($.isBuffer(e)&&this[y])e=this[g].write(e);try{return this.flowing?(this.emit("data",e),this.flowing):(this[x](e),false)}finally{if(this[S]!==0)this.emit("readable");if(r)r()}}read(e){if(this[k])return null;try{if(this[S]===0||e===0||e>this[S])return null;if(this[R])e=null;if(this.buffer.length>1&&!this[R]){if(this.encoding)this.buffer=new s([Array.from(this.buffer).join("")]);else this.buffer=new s([$.concat(Array.from(this.buffer),this[S])])}return this[h](e||null,this.buffer.head.value)}finally{this[a]()}}[h](e,t){if(e===t.length||e===null)this[O]();else{this.buffer.head.value=t.slice(e);t=t.slice(0,e);this[S]-=e}this.emit("data",t);if(!this.buffer.length&&!this[o])this.emit("drain");return t}end(e,t,r){if(typeof e==="function")r=e,e=null;if(typeof t==="function")r=t,t="utf8";if(e)this.write(e,t);if(r)this.once("end",r);this[o]=true;this.writable=false;if(this.flowing||!this[b])this[a]();return this}[w](){if(this[k])return;this[b]=false;this[v]=true;this.emit("resume");if(this.buffer.length)this[p]();else if(this[o])this[a]();else this.emit("drain")}resume(){return this[w]()}pause(){this[v]=false;this[b]=true}get destroyed(){return this[k]}get flowing(){return this[v]}get paused(){return this[b]}[x](e){if(this[R])this[S]+=1;else this[S]+=e.length;return this.buffer.push(e)}[O](){if(this.buffer.length){if(this[R])this[S]-=1;else this[S]-=this.buffer.head.value.length}return this.buffer.shift()}[p](){do{}while(this[d](this[O]()));if(!this.buffer.length&&!this[o])this.emit("drain")}[d](e){return e?(this.emit("data",e),this.flowing):false}pipe(e,t){if(this[k])return;const r=this[c];t=t||{};if(e===process.stdout||e===process.stderr)t.end=false;else t.end=t.end!==false;const n={dest:e,opts:t,ondrain:e=>this[w]()};this.pipes.push(n);e.on("drain",n.ondrain);this[w]();if(r&&n.opts.end)n.dest.end();return e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{if(e==="data"&&!this.pipes.length&&!this.flowing)this[w]();else if(isEndish(e)&&this[c]){super.emit(e);this.removeAllListeners(e)}}}get emittedEnd(){return this[c]}[a](){if(!this[u]&&!this[c]&&!this[k]&&this.buffer.length===0&&this[o]){this[u]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[l])this.emit("close");this[u]=false}}emit(e,t){if(e!=="error"&&e!=="close"&&e!==k&&this[k])return;else if(e==="data"){if(!t)return;if(this.pipes.length)this.pipes.forEach((e=>e.dest.write(t)===false&&this.pause()))}else if(e==="end"){if(this[c]===true)return;this[c]=true;this.readable=false;if(this[g]){t=this[g].end();if(t){this.pipes.forEach((e=>e.dest.write(t)));super.emit("data",t)}}this.pipes.forEach((e=>{e.dest.removeListener("drain",e.ondrain);if(e.opts.end)e.dest.end()}))}else if(e==="close"){this[l]=true;if(!this[c]&&!this[k])return}const r=new Array(arguments.length);r[0]=e;r[1]=t;if(arguments.length>2){for(let e=2;e<arguments.length;e++){r[e]=arguments[e]}}try{return super.emit.apply(this,r)}finally{if(!isEndish(e))this[a]();else this.removeAllListeners(e)}}collect(){const e=[];e.dataLength=0;this.on("data",(t=>{e.push(t);e.dataLength+=t.length}));return this.promise().then((()=>e))}concat(){return this[R]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((e=>this[R]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?e.join(""):$.concat(e,e.dataLength)))}promise(){return new Promise(((e,t)=>{this.on(k,(()=>t(new Error("stream destroyed"))));this.on("end",(()=>e()));this.on("error",(e=>t(e)))}))}[C](){const next=()=>{const e=this.read();if(e!==null)return Promise.resolve({done:false,value:e});if(this[o])return Promise.resolve({done:true});let t=null;let r=null;const onerr=e=>{this.removeListener("data",ondata);this.removeListener("end",onend);r(e)};const ondata=e=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.pause();t({value:e,done:!!this[o]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);t({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((e,n)=>{r=n;t=e;this.once(k,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next}}[P](){const next=()=>{const e=this.read();const t=e===null;return{value:e,done:t}};return{next:next}}destroy(e){if(this[k]){if(e)this.emit("error",e);else this.emit(k);return this}this[k]=true;this.buffer=new s;this[S]=0;if(typeof this.close==="function"&&!this[l])this.close();if(e)this.emit("error",e);else this.emit(k);return this}static isStream(e){return!!e&&(e instanceof Minipass||e instanceof n&&(typeof e.pipe==="function"||typeof e.write==="function"&&typeof e.end==="function"))}}},71532:(e,t,r)=>{const n=r(59796).constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},n))},77082:(e,t,r)=>{"use strict";const n=r(39491);const s=r(14300).Buffer;const i=r(59796);const o=t.constants=r(71532);const a=r(67097);const c=s.concat;class ZlibError extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code;this.errno=e.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+e.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const u=Symbol("opts");const l=Symbol("flushFlag");const h=Symbol("finishFlushFlag");const p=Symbol("fullFlushFlag");const d=Symbol("handle");const y=Symbol("onError");const g=Symbol("sawError");const v=Symbol("level");const b=Symbol("strategy");const w=Symbol("ended");const S=Symbol("_defaultFullFlush");class ZlibBase extends a{constructor(e,t){if(!e||typeof e!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[w]=false;this[u]=e;this[l]=e.flush;this[h]=e.finishFlush;try{this[d]=new i[t](e)}catch(e){throw new ZlibError(e)}this[y]=e=>{this[g]=true;this.close();this.emit("error",e)};this[d].on("error",(e=>this[y](new ZlibError(e))));this.once("end",(()=>this.close))}close(){if(this[d]){this[d].close();this[d]=null;this.emit("close")}}reset(){if(!this[g]){n(this[d],"zlib binding closed");return this[d].reset()}}flush(e){if(this.ended)return;if(typeof e!=="number")e=this[p];this.write(Object.assign(s.alloc(0),{[l]:e}))}end(e,t,r){if(e)this.write(e,t);this.flush(this[h]);this[w]=true;return super.end(null,null,r)}get ended(){return this[w]}write(e,t,r){if(typeof t==="function")r=t,t="utf8";if(typeof e==="string")e=s.from(e,t);if(this[g])return;n(this[d],"zlib binding closed");const i=this[d]._handle;const o=i.close;i.close=()=>{};const a=this[d].close;this[d].close=()=>{};s.concat=e=>e;let u;try{const t=typeof e[l]==="number"?e[l]:this[l];u=this[d]._processChunk(e,t);s.concat=c}catch(e){s.concat=c;this[y](new ZlibError(e))}finally{if(this[d]){this[d]._handle=i;i.close=o;this[d].close=a;this[d].removeAllListeners("error")}}let h;if(u){if(Array.isArray(u)&&u.length>0){h=super.write(s.from(u[0]));for(let e=1;e<u.length;e++){h=super.write(u[e])}}else{h=super.write(s.from(u))}}if(r)r();return h}}class Zlib extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.Z_NO_FLUSH;e.finishFlush=e.finishFlush||o.Z_FINISH;super(e,t);this[p]=o.Z_FULL_FLUSH;this[v]=e.level;this[b]=e.strategy}params(e,t){if(this[g])return;if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[v]!==e||this[b]!==t){this.flush(o.Z_SYNC_FLUSH);n(this[d],"zlib binding closed");const r=this[d].flush;this[d].flush=(e,t)=>{this.flush(e);t()};try{this[d].params(e,t)}finally{this[d].flush=r}if(this[d]){this[v]=e;this[b]=t}}}}class Deflate extends Zlib{constructor(e){super(e,"Deflate")}}class Inflate extends Zlib{constructor(e){super(e,"Inflate")}}class Gzip extends Zlib{constructor(e){super(e,"Gzip")}}class Gunzip extends Zlib{constructor(e){super(e,"Gunzip")}}class DeflateRaw extends Zlib{constructor(e){super(e,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(e){super(e,"InflateRaw")}}class Unzip extends Zlib{constructor(e){super(e,"Unzip")}}class Brotli extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.BROTLI_OPERATION_PROCESS;e.finishFlush=e.finishFlush||o.BROTLI_OPERATION_FINISH;super(e,t);this[p]=o.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(e){super(e,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(e){super(e,"BrotliDecompress")}}t.Deflate=Deflate;t.Inflate=Inflate;t.Gzip=Gzip;t.Gunzip=Gunzip;t.DeflateRaw=DeflateRaw;t.InflateRaw=InflateRaw;t.Unzip=Unzip;if(typeof i.BrotliCompress==="function"){t.BrotliCompress=BrotliCompress;t.BrotliDecompress=BrotliDecompress}else{t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},34987:(e,t,r)=>{"use strict";var n=r(61346);var s=r(39248);function mixinDeep(e,t){var r=arguments.length,n=0;while(++n<r){var i=arguments[n];if(isObject(i)){s(i,copy,e)}}return e}function copy(e,t){if(!isValidKey(t)){return}var r=this[t];if(isObject(e)&&isObject(r)){mixinDeep(r,e)}else{this[t]=e}}function isObject(e){return n(e)&&!Array.isArray(e)}function isValidKey(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}e.exports=mixinDeep},57695:(e,t,r)=>{var n=r(71017);var s=r(57147);var i=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,t,r,o){if(typeof t==="function"){r=t;t={}}else if(!t||typeof t!=="object"){t={mode:t}}var a=t.mode;var c=t.fs||s;if(a===undefined){a=i}if(!o)o=null;var u=r||function(){};e=n.resolve(e);c.mkdir(e,a,(function(r){if(!r){o=o||e;return u(null,o)}switch(r.code){case"ENOENT":if(n.dirname(e)===e)return u(r);mkdirP(n.dirname(e),t,(function(r,n){if(r)u(r,n);else mkdirP(e,t,u,n)}));break;default:c.stat(e,(function(e,t){if(e||!t.isDirectory())u(r,o);else u(null,o)}));break}}))}mkdirP.sync=function sync(e,t,r){if(!t||typeof t!=="object"){t={mode:t}}var o=t.mode;var a=t.fs||s;if(o===undefined){o=i}if(!r)r=null;e=n.resolve(e);try{a.mkdirSync(e,o);r=r||e}catch(s){switch(s.code){case"ENOENT":r=sync(n.dirname(e),t,r);sync(e,t,r);break;default:var c;try{c=a.statSync(e)}catch(e){throw s}if(!c.isDirectory())throw s;break}}return r}},13111:e=>{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o){return}var a=parseFloat(o[1]);var c=(o[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*i;case"days":case"day":case"d":return a*s;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return undefined}}function fmtShort(e){if(e>=s){return Math.round(e/s)+"d"}if(e>=n){return Math.round(e/n)+"h"}if(e>=r){return Math.round(e/r)+"m"}if(e>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){return plural(e,s,"day")||plural(e,n,"hour")||plural(e,r,"minute")||plural(e,t,"second")||e+" ms"}function plural(e,t,r){if(e<t){return}if(e<t*1.5){return Math.floor(e/t)+" "+r}return Math.ceil(e/t)+" "+r+"s"}},69657:(e,t,r)=>{"use strict";var n=r(73837);var s=r(15912);var i=r(86735);var o=r(6676);var a=r(1957);var c=r(97666);var u=r(44955);var l=1024*64;function nanomatch(e,t,r){t=u.arrayify(t);e=u.arrayify(e);var n=t.length;if(e.length===0||n===0){return[]}if(n===1){return nanomatch.match(e,t[0],r)}var s=false;var i=[];var o=[];var a=-1;while(++a<n){var c=t[a];if(typeof c==="string"&&c.charCodeAt(0)===33){i.push.apply(i,nanomatch.match(e,c.slice(1),r));s=true}else{o.push.apply(o,nanomatch.match(e,c,r))}}if(s&&o.length===0){if(r&&r.unixify===false){o=e.slice()}else{var l=u.unixify(r);for(var h=0;h<e.length;h++){o.push(l(e[h]))}}}var p=u.diff(o,i);if(!r||r.nodupes!==false){return u.unique(p)}return p}nanomatch.match=function(e,t,r){if(Array.isArray(t)){throw new TypeError("expected pattern to be a string")}var n=u.unixify(r);var s=memoize("match",t,r,nanomatch.matcher);var i=[];e=u.arrayify(e);var o=e.length;var a=-1;while(++a<o){var c=e[a];if(c===t||s(c)){i.push(u.value(c,n,r))}}if(typeof r==="undefined"){return u.unique(i)}if(i.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[r.unescape?u.unescape(t):t]}}if(r.ignore){i=nanomatch.not(i,r.ignore,r)}return r.nodupes!==false?u.unique(i):i};nanomatch.isMatch=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(u.isEmptyString(e)||u.isEmptyString(t)){return false}var s=u.equalsPattern(r);if(s(e)){return true}var i=memoize("isMatch",t,r,nanomatch.matcher);return i(e)};nanomatch.some=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(nanomatch(e[n],t,r).length===1){return true}}return false};nanomatch.every=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(nanomatch(e[n],t,r).length!==1){return false}}return true};nanomatch.any=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(u.isEmptyString(e)||u.isEmptyString(t)){return false}if(typeof t==="string"){t=[t]}for(var s=0;s<t.length;s++){if(nanomatch.isMatch(e,t[s],r)){return true}}return false};nanomatch.all=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){t=[t]}for(var s=0;s<t.length;s++){if(!nanomatch.isMatch(e,t[s],r)){return false}}return true};nanomatch.not=function(e,t,r){var n=i({},r);var s=n.ignore;delete n.ignore;e=u.arrayify(e);var o=u.diff(e,nanomatch(e,t,n));if(s){o=u.diff(o,nanomatch(e,s))}return n.nodupes!==false?u.unique(o):o};nanomatch.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){if(u.isEmptyString(e)||u.isEmptyString(t)){return false}var s=u.equalsPattern(t,r);if(s(e)){return true}var o=u.containsPattern(t,r);if(o(e)){return true}}var a=i({},r,{contains:true});return nanomatch.any(e,t,a)};nanomatch.matchBase=function(e,t){if(e&&e.indexOf("/")!==-1||!t)return false;return t.basename===true||t.matchBase===true};nanomatch.matchKeys=function(e,t,r){if(!u.isObject(e)){throw new TypeError("expected the first argument to be an object")}var n=nanomatch(Object.keys(e),t,r);return u.pick(e,n)};nanomatch.matcher=function matcher(e,t){if(u.isEmptyString(e)){return function(){return false}}if(Array.isArray(e)){return compose(e,t,matcher)}if(e instanceof RegExp){return test(e)}if(!u.isString(e)){throw new TypeError("expected pattern to be an array, string or regex")}if(!u.hasSpecialChars(e)){if(t&&t.nocase===true){e=e.toLowerCase()}return u.matchPath(e,t)}var r=nanomatch.makeRe(e,t);if(nanomatch.matchBase(e,t)){return u.matchBasename(r,t)}function test(e){var r=u.equalsPattern(t);var n=u.unixify(t);return function(t){if(r(t)){return true}if(e.test(n(t))){return true}return false}}var n=test(r);u.define(n,"result",r.result);return n};nanomatch.capture=function(e,t,r){var n=nanomatch.makeRe(e,i({capture:true},r));var s=u.unixify(r);function match(){return function(e){var t=n.exec(s(e));if(!t){return null}return t.slice(1)}}var o=memoize("capture",e,r,match);return o(t)};nanomatch.makeRe=function(e,t){if(e instanceof RegExp){return e}if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>l){throw new Error("expected pattern to be less than "+l+" characters")}function makeRe(){var r=u.extend({wrap:false},t);var n=nanomatch.create(e,r);var i=s(n.output,r);u.define(i,"result",n);return i}return memoize("makeRe",e,t,makeRe)};nanomatch.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function create(){return nanomatch.compile(nanomatch.parse(e,t),t)}return memoize("create",e,t,create)};nanomatch.parse=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function parse(){var r=u.instantiate(null,t);a(r,t);var n=r.parse(e,t);u.define(n,"snapdragon",r);n.input=e;return n}return memoize("parse",e,t,parse)};nanomatch.compile=function(e,t){if(typeof e==="string"){e=nanomatch.parse(e,t)}function compile(){var r=u.instantiate(e,t);o(r,t);return r.compile(e,t)}return memoize("compile",e.input,t,compile)};nanomatch.clearCache=function(){nanomatch.cache.__data__={}};function compose(e,t,r){var n;return memoize("compose",String(e),t,(function(){return function(s){if(!n){n=[];for(var i=0;i<e.length;i++){n.push(r(e[i],t))}}var o=n.length;while(o--){if(n[o](s)===true){return true}}return false}}))}function memoize(e,t,r,n){var s=u.createKey(e+"="+t,r);if(r&&r.cache===false){return n(t,r)}if(c.has(e,s)){return c.get(e,s)}var i=n(t,r);c.set(e,s,i);return i}nanomatch.compilers=o;nanomatch.parsers=a;nanomatch.cache=c;e.exports=nanomatch},97666:(e,t,r)=>{e.exports=new(r(32172))},6676:e=>{"use strict";e.exports=function(e,t){function slash(){if(t&&typeof t.slash==="string"){return t.slash}if(t&&typeof t.slash==="function"){return t.slash.call(e)}return"\\\\/"}function star(){if(t&&typeof t.star==="string"){return t.star}if(t&&typeof t.star==="function"){return t.star.call(e)}return"[^"+slash()+"]*?"}var r=e.ast=e.parser.ast;r.state=e.parser.state;e.compiler.state=r.state;e.compiler.set("not",(function(e){var t=this.prev();if(this.options.nonegate===true||t.type!=="bos"){return this.emit("\\"+e.val,e)}return this.emit(e.val,e)})).set("escape",(function(e){if(this.options.unescape&&/^[-\w_.]/.test(e.val)){return this.emit(e.val,e)}return this.emit("\\"+e.val,e)})).set("quoted",(function(e){return this.emit(e.val,e)})).set("dollar",(function(e){if(e.parent.type==="bracket"){return this.emit(e.val,e)}return this.emit("\\"+e.val,e)})).set("dot",(function(e){if(e.dotfiles===true)this.dotfiles=true;return this.emit("\\"+e.val,e)})).set("backslash",(function(e){return this.emit(e.val,e)})).set("slash",(function(e,t,r){var n="["+slash()+"]";var s=e.parent;var i=this.prev();while(s.type==="paren"&&!s.hasSlash){s.hasSlash=true;s=s.parent}if(i.addQmark){n+="?"}if(e.rest.slice(0,2)==="\\b"){return this.emit(n,e)}if(e.parsed==="**"||e.parsed==="./**"){this.output="(?:"+this.output;return this.emit(n+")?",e)}if(e.parsed==="!**"&&this.options.nonegate!==true){return this.emit(n+"?\\b",e)}return this.emit(n,e)})).set("bracket",(function(e){var t=e.close;var r=!e.escaped?"[":"\\[";var n=e.negated;var s=e.inner;var i=e.val;if(e.escaped===true){s=s.replace(/\\?(\W)/g,"\\$1");n=""}if(s==="]-"){s="\\]\\-"}if(n&&s.indexOf(".")===-1){s+="."}if(n&&s.indexOf("/")===-1){s+="/"}i=r+n+s+t;return this.emit(i,e)})).set("square",(function(e){var t=(/^\W/.test(e.val)?"\\":"")+e.val;return this.emit(t,e)})).set("qmark",(function(e){var t=this.prev();var r="[^.\\\\/]";if(this.options.dot||t.type!=="bos"&&t.type!=="slash"){r="[^\\\\/]"}if(e.parsed.slice(-1)==="("){var n=e.rest.charAt(0);if(n==="!"||n==="="||n===":"){return this.emit(e.val,e)}}if(e.val.length>1){r+="{"+e.val.length+"}"}return this.emit(r,e)})).set("plus",(function(e){var t=e.parsed.slice(-1);if(t==="]"||t===")"){return this.emit(e.val,e)}if(!this.output||/[?*+]/.test(r)&&e.parent.type!=="bracket"){return this.emit("\\+",e)}var r=this.output.slice(-1);if(/\w/.test(r)&&!e.inside){return this.emit("+\\+?",e)}return this.emit("+",e)})).set("globstar",(function(e,t,r){if(!this.output){this.state.leadingGlobstar=true}var n=this.prev();var s=this.prev(2);var i=this.next();var o=this.next(2);var a=n.type;var c=e.val;if(n.type==="slash"&&i.type==="slash"){if(s.type==="text"){this.output+="?";if(o.type!=="text"){this.output+="\\b"}}}var u=e.parsed;if(u.charAt(0)==="!"){u=u.slice(1)}var l=e.isInside.paren||e.isInside.brace;if(u&&a!=="slash"&&a!=="bos"&&!l){c=star()}else{c=this.options.dot!==true?"(?:(?!(?:["+slash()+"]|^)\\.).)*?":"(?:(?!(?:["+slash()+"]|^)(?:\\.{1,2})($|["+slash()+"]))(?!\\.{2}).)*?"}if((a==="slash"||a==="bos")&&this.options.dot!==true){c="(?!\\.)"+c}if(n.type==="slash"&&i.type==="slash"&&s.type!=="text"){if(o.type==="text"||o.type==="star"){e.addQmark=true}}if(this.options.capture){c="("+c+")"}return this.emit(c,e)})).set("star",(function(e,t,r){var n=t[r-2]||{};var s=this.prev();var i=this.next();var o=s.type;function isStart(e){return e.type==="bos"||e.type==="slash"}if(this.output===""&&this.options.contains!==true){this.output="(?!["+slash()+"])"}if(o==="bracket"&&this.options.bash===false){var a=i&&i.type==="bracket"?star():"*?";if(!s.nodes||s.nodes[1].type!=="posix"){return this.emit(a,e)}}var c=!this.dotfiles&&o!=="text"&&o!=="escape"?this.options.dot?"(?!(?:^|["+slash()+"])\\.{1,2}(?:$|["+slash()+"]))":"(?!\\.)":"";if(isStart(s)||isStart(n)&&o==="not"){if(c!=="(?!\\.)"){c+="(?!(\\.{2}|\\.["+slash()+"]))(?=.)"}else{c+="(?=.)"}}else if(c==="(?!\\.)"){c=""}if(s.type==="not"&&n.type==="bos"&&this.options.dot===true){this.output="(?!\\.)"+this.output}var u=c+star();if(this.options.capture){u="("+u+")"}return this.emit(u,e)})).set("text",(function(e){return this.emit(e.val,e)})).set("eos",(function(e){var t=this.prev();var r=e.val;this.output="(?:\\.["+slash()+"](?=.))?"+this.output;if(this.state.metachar&&t.type!=="qmark"&&t.type!=="slash"){r+=this.options.contains?"["+slash()+"]?":"(?:["+slash()+"]|$)"}return this.emit(r,e)}));if(t&&typeof t.compilers==="function"){t.compilers(e.compiler)}}},1957:(e,t,r)=>{"use strict";var n=r(19157);var s=r(15912);var i;var o="[\\[!*+?$^\"'.\\\\/]+";var a=createTextRegex(o);e.exports=function(e,t){var r=e.parser;var n=r.options;r.state={slashes:0,paths:[]};r.ast.state=r.state;r.capture("prefix",(function(){if(this.parsed)return;var e=this.match(/^\.[\\/]/);if(!e)return;this.state.strictOpen=!!this.options.strictOpen;this.state.addPrefix=true})).capture("escape",(function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(/^(?:\\(.)|([$^]))/);if(!t)return;return e({type:"escape",val:t[2]||t[1]})})).capture("quoted",(function(){var e=this.position();var t=this.match(/^["']/);if(!t)return;var r=t[0];if(this.input.indexOf(r)===-1){return e({type:"escape",val:r})}var n=advanceTo(this.input,r);this.consume(n.len);return e({type:"quoted",val:n.esc})})).capture("not",(function(){var e=this.parsed;var t=this.position();var r=this.match(this.notRegex||/^!+/);if(!r)return;var n=r[0];var s=n.length%2===1;if(e===""&&!s){n=""}if(e===""&&s&&this.options.nonegate!==true){this.bos.val="(?!^(?:";this.append=")$).*";n=""}return t({type:"not",val:n})})).capture("dot",(function(){var e=this.parsed;var t=this.position();var r=this.match(/^\.+/);if(!r)return;var n=r[0];this.state.dot=n==="."&&(e===""||e.slice(-1)==="/");return t({type:"dot",dotfiles:this.state.dot,val:n})})).capture("plus",/^\+(?!\()/).capture("qmark",(function(){var e=this.parsed;var t=this.position();var r=this.match(/^\?+(?!\()/);if(!r)return;this.state.metachar=true;this.state.qmark=true;return t({type:"qmark",parsed:e,val:r[0]})})).capture("globstar",(function(){var e=this.parsed;var t=this.position();var r=this.match(/^\*{2}(?![*(])(?=[,)/]|$)/);if(!r)return;var s=n.noglobstar!==true?"globstar":"star";var i=t({type:s,parsed:e});this.state.metachar=true;while(this.input.slice(0,4)==="/**/"){this.input=this.input.slice(3)}i.isInside={brace:this.isInside("brace"),paren:this.isInside("paren")};if(s==="globstar"){this.state.globstar=true;i.val="**"}else{this.state.star=true;i.val="*"}return i})).capture("star",(function(){var e=this.position();var t=/^(?:\*(?![*(])|[*]{3,}(?!\()|[*]{2}(?![(/]|$)|\*(?=\*\())/;var r=this.match(t);if(!r)return;this.state.metachar=true;this.state.star=true;return e({type:"star",val:r[0]})})).capture("slash",(function(){var e=this.position();var t=this.match(/^\//);if(!t)return;this.state.slashes++;return e({type:"slash",val:t[0]})})).capture("backslash",(function(){var e=this.position();var t=this.match(/^\\(?![*+?(){}[\]'"])/);if(!t)return;var r=t[0];if(this.isInside("bracket")){r="\\"}else if(r.length>1){r="\\\\"}return e({type:"backslash",val:r})})).capture("square",(function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(/^\[([^!^\\])\]/);if(!t)return;return e({type:"square",val:t[1]})})).capture("bracket",(function(){var e=this.position();var t=this.match(/^(?:\[([!^]?)([^\]]+|\]-)(\]|[^*+?]+)|\[)/);if(!t)return;var r=t[0];var n=t[1]?"^":"";var s=(t[2]||"").replace(/\\\\+/,"\\\\");var i=t[3]||"";if(t[2]&&s.length<t[2].length){r=r.replace(/\\\\+/,"\\\\")}var o=this.input.slice(0,2);if(s===""&&o==="\\]"){s+=o;this.consume(2);var a=this.input;var c=-1;var u;while(u=a[++c]){this.consume(1);if(u==="]"){i=u;break}s+=u}}return e({type:"bracket",val:r,escaped:i!=="]",negated:n,inner:s,close:i})})).capture("text",(function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(a);if(!t||!t[0])return;return e({type:"text",val:t[0]})}));if(t&&typeof t.parsers==="function"){t.parsers(e.parser)}};function advanceTo(e,t){var r=e.charAt(0);var n={len:1,val:"",esc:""};var s=0;function advance(){if(r!=="\\"){n.esc+="\\"+r;n.val+=r}r=e.charAt(++s);n.len++;if(r==="\\"){advance();advance()}}while(r&&r!==t){advance()}return n}function createTextRegex(e){if(i)return i;var t={contains:true,strictClose:false};var r=n.create(e,t);var o=s("^(?:[*]\\((?=.)|"+r+")",t);return i=o}e.exports.not=o},44955:(e,t,r)=>{"use strict";var n=e.exports;var s=r(71017);var i=r(60314)();var o=r(30267);n.define=r(11945);n.diff=r(44130);n.extend=r(86735);n.pick=r(56058);n.typeOf=r(44824);n.unique=r(89424);n.isEmptyString=function(e){return String(e)===""||String(e)==="./"};n.isWindows=function(){return s.sep==="\\"||i===true};n.last=function(e,t){return e[e.length-(t||1)]};n.instantiate=function(e,t){var r;if(n.typeOf(e)==="object"&&e.snapdragon){r=e.snapdragon}else if(n.typeOf(t)==="object"&&t.snapdragon){r=t.snapdragon}else{r=new o(t)}n.define(r,"parse",(function(e,t){var r=o.prototype.parse.call(this,e,t);r.input=e;var s=this.parser.stack.pop();if(s&&this.options.strictErrors!==true){var i=s.nodes[0];var a=s.nodes[1];if(s.type==="bracket"){if(a.val.charAt(0)==="["){a.val="\\"+a.val}}else{i.val="\\"+i.val;var c=i.parent.nodes[1];if(c.type==="star"){c.loose=true}}}n.define(r,"parser",this.parser);return r}));return r};n.createKey=function(e,t){if(typeof t==="undefined"){return e}var r=e;for(var n in t){if(t.hasOwnProperty(n)){r+=";"+n+"="+String(t[n])}}return r};n.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};n.isString=function(e){return typeof e==="string"};n.isRegex=function(e){return n.typeOf(e)==="regexp"};n.isObject=function(e){return n.typeOf(e)==="object"};n.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\/\s]/g,"\\$&")};n.combineDupes=function(e,t){t=n.arrayify(t).join("|").split("|");t=t.map((function(e){return e.replace(/\\?([+*\\/])/g,"\\$1")}));var r=t.join("|");var s=new RegExp("("+r+")(?=\\1)","g");return e.replace(s,"")};n.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|[\]{}]|[+@]\()/.test(e)};n.toPosixPath=function(e){return e.replace(/\\+/g,"/")};n.unescape=function(e){return n.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))};n.stripDrive=function(e){return n.isWindows()?e.replace(/^[a-z]:[\\/]+?/i,"/"):e};n.stripPrefix=function(e){if(e.charAt(0)==="."&&(e.charAt(1)==="/"||e.charAt(1)==="\\")){return e.slice(2)}return e};n.isSimpleChar=function(e){return e.trim()===""||e==="."};n.isSlash=function(e){return e==="/"||e==="\\/"||e==="\\"||e==="\\\\"};n.matchPath=function(e,t){return t&&t.contains?n.containsPattern(e,t):n.equalsPattern(e,t)};n._equals=function(e,t,r){return r===e||r===t};n._contains=function(e,t,r){return e.indexOf(r)!==-1||t.indexOf(r)!==-1};n.equalsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function fn(s){var i=n._equals(s,r(s),e);if(i===true||t.nocase!==true){return i}var o=s.toLowerCase();return n._equals(o,r(o),e)}};n.containsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function(s){var i=n._contains(s,r(s),e);if(i===true||t.nocase!==true){return i}var o=s.toLowerCase();return n._contains(o,r(o),e)}};n.matchBasename=function(e){return function(t){return e.test(t)||e.test(s.basename(t))}};n.identity=function(e){return e};n.value=function(e,t,r){if(r&&r.unixify===false){return e}if(r&&typeof r.unixify==="function"){return r.unixify(e)}return t(e)};n.unixify=function(e){var t=e||{};return function(e){if(t.stripPrefix!==false){e=n.stripPrefix(e)}if(t.unescape===true){e=n.unescape(e)}if(t.unixify===true||n.isWindows()){e=n.toPosixPath(e)}return e}}},93134:(e,t,r)=>{var n=r(73837).inherits;var NestedError=function(e,t){this.nested=t;if(e instanceof Error){t=e}else if(typeof e!=="undefined"){Object.defineProperty(this,"message",{value:e,writable:true,enumerable:false,configurable:true})}Error.captureStackTrace(this,this.constructor);var r=Object.getOwnPropertyDescriptor(this,"stack");var n=buildStackDescriptor(r,t);Object.defineProperty(this,"stack",n)};function buildStackDescriptor(e,t){if(e.get){return{get:function(){var t=e.get.call(this);return buildCombinedStacks(t,this.nested)}}}else{var r=e.value;return{value:buildCombinedStacks(r,t)}}}function buildCombinedStacks(e,t){if(t){e+="\nCaused By: "+t.stack}return e}n(NestedError,Error);NestedError.prototype.name="NestedError";e.exports=NestedError},16726:e=>{"use strict";e.exports=function(e){try{return e()}catch(e){}}},89718:(e,t,r)=>{"use strict";const n=typeof URL==="undefined"?r(57310).URL:URL;const s="text/plain";const i="us-ascii";const testParameter=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e));const normalizeDataURL=(e,{stripHash:t})=>{const r=e.match(/^data:(.*?),(.*?)(?:#(.*))?$/);if(!r){throw new Error(`Invalid URL: ${e}`)}const n=r[1].split(";");const o=r[2];const a=t?"":r[3];let c=false;if(n[n.length-1]==="base64"){n.pop();c=true}const u=(n.shift()||"").toLowerCase();const l=n.map((e=>{let[t,r=""]=e.split("=").map((e=>e.trim()));if(t==="charset"){r=r.toLowerCase();if(r===i){return""}}return`${t}${r?`=${r}`:""}`})).filter(Boolean);const h=[...l];if(c){h.push("base64")}if(h.length!==0||u&&u!==s){h.unshift(u)}return`data:${h.join(";")},${c?o.trim():o}${a?`#${a}`:""}`};const normalizeUrl=(e,t)=>{t={defaultProtocol:"http:",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeDirectoryIndex:false,sortQueryParameters:true,...t};if(Reflect.has(t,"normalizeHttps")){throw new Error("options.normalizeHttps is renamed to options.forceHttp")}if(Reflect.has(t,"normalizeHttp")){throw new Error("options.normalizeHttp is renamed to options.forceHttps")}if(Reflect.has(t,"stripFragment")){throw new Error("options.stripFragment is renamed to options.stripHash")}e=e.trim();if(/^data:/i.test(e)){return normalizeDataURL(e,t)}const r=e.startsWith("//");const s=!r&&/^\.*\//.test(e);if(!s){e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol)}const i=new n(e);if(t.forceHttp&&t.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(t.forceHttp&&i.protocol==="https:"){i.protocol="http:"}if(t.forceHttps&&i.protocol==="http:"){i.protocol="https:"}if(t.stripAuthentication){i.username="";i.password=""}if(t.stripHash){i.hash=""}if(i.pathname){i.pathname=i.pathname.replace(/((?!:).|^)\/{2,}/g,((e,t)=>{if(/^(?!\/)/g.test(t)){return`${t}/`}return"/"}))}if(i.pathname){i.pathname=decodeURI(i.pathname)}if(t.removeDirectoryIndex===true){t.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=i.pathname.split("/");const r=e[e.length-1];if(testParameter(r,t.removeDirectoryIndex)){e=e.slice(0,e.length-1);i.pathname=e.slice(1).join("/")+"/"}}if(i.hostname){i.hostname=i.hostname.replace(/\.$/,"");if(t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(i.hostname)){i.hostname=i.hostname.replace(/^www\./,"")}}if(Array.isArray(t.removeQueryParameters)){for(const e of[...i.searchParams.keys()]){if(testParameter(e,t.removeQueryParameters)){i.searchParams.delete(e)}}}if(t.sortQueryParameters){i.searchParams.sort()}if(t.removeTrailingSlash){i.pathname=i.pathname.replace(/\/$/,"")}e=i.toString();if((t.removeTrailingSlash||i.pathname==="/")&&i.hash===""){e=e.replace(/\/$/,"")}if(r&&!t.normalizeProtocol){e=e.replace(/^http:\/\//,"//")}if(t.stripProtocol){e=e.replace(/^(?:https?:)?\/\//,"")}return e};e.exports=normalizeUrl;e.exports["default"]=normalizeUrl},69438:(e,t,r)=>{"use strict";var n=r(91);var s=r(9440);var i=r(80922);function copy(e,t,r){if(!isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=nativeKeys(t);var o=Object.keys(t);var a=n.length;r=arrayify(r);while(a--){var c=n[a];if(has(o,c)){i(e,c,t[c])}else if(!(c in e)&&!has(r,c)){s(e,t,c)}}}function isObject(e){return n(e)==="object"||typeof e==="function"}function has(e,t){t=arrayify(t);var r=t.length;if(isObject(e)){for(var n in e){if(t.indexOf(n)>-1){return true}}var s=nativeKeys(e);return has(s,t)}if(Array.isArray(e)){var i=e;while(r--){if(i.indexOf(t[r])>-1){return true}}return false}throw new TypeError("expected an array or object.")}function arrayify(e){return e?Array.isArray(e)?e:[e]:[]}function hasConstructor(e){return isObject(e)&&typeof e.constructor!=="undefined"}function nativeKeys(e){if(!hasConstructor(e))return[];return Object.getOwnPropertyNames(e)}e.exports=copy;e.exports.has=has},95291:(e,t,r)=>{"use strict";
250
+ */var t=Object.prototype.hasOwnProperty;e.exports=MapCache;function MapCache(e){this.__data__=e||{}}MapCache.prototype.set=function mapSet(e,t){if(e!=="__proto__"){this.__data__[e]=t}return this};MapCache.prototype.get=function mapGet(e){return e==="__proto__"?undefined:this.__data__[e]};MapCache.prototype.has=function mapHas(e){return e!=="__proto__"&&t.call(this.__data__,e)};MapCache.prototype.del=function mapDelete(e){return this.has(e)&&delete this.__data__[e]}},18642:(e,t,r)=>{"use strict";var n=r(73837);var s=r(95291);e.exports=function mapVisit(e,t,r){if(isObject(r)){return s.apply(null,arguments)}if(!Array.isArray(r)){throw new TypeError("expected an array: "+n.inspect(r))}var i=[].slice.call(arguments,3);for(var o=0;o<r.length;o++){var a=r[o];if(isObject(a)){s.apply(null,[e,t,a].concat(i))}else{e[t].apply(e,[a].concat(i))}}};function isObject(e){return e&&(typeof e==="function"||!Array.isArray(e)&&typeof e==="object")}},29117:(e,t,r)=>{"use strict";const n=r(12781);const s=n.PassThrough;const i=Array.prototype.slice;e.exports=merge2;function merge2(){const e=[];const t=i.call(arguments);let r=false;let n=t[t.length-1];if(n&&!Array.isArray(n)&&n.pipe==null){t.pop()}else{n={}}const o=n.end!==false;const a=n.pipeError===true;if(n.objectMode==null){n.objectMode=true}if(n.highWaterMark==null){n.highWaterMark=64*1024}const c=s(n);function addStream(){for(let t=0,r=arguments.length;t<r;t++){e.push(pauseStreams(arguments[t],n))}mergeStream();return this}function mergeStream(){if(r){return}r=true;let t=e.shift();if(!t){process.nextTick(endStream);return}if(!Array.isArray(t)){t=[t]}let n=t.length+1;function next(){if(--n>0){return}r=false;mergeStream()}function pipe(e){function onend(){e.removeListener("merge2UnpipeEnd",onend);e.removeListener("end",onend);if(a){e.removeListener("error",onerror)}next()}function onerror(e){c.emit("error",e)}if(e._readableState.endEmitted){return next()}e.on("merge2UnpipeEnd",onend);e.on("end",onend);if(a){e.on("error",onerror)}e.pipe(c,{end:false});e.resume()}for(let e=0;e<t.length;e++){pipe(t[e])}next()}function endStream(){r=false;c.emit("queueDrain");if(o){c.end()}}c.setMaxListeners(0);c.add=addStream;c.on("unpipe",(function(e){e.emit("merge2UnpipeEnd")}));if(t.length){addStream.apply(null,t)}return c}function pauseStreams(e,t){if(!Array.isArray(e)){if(!e._readableState&&e.pipe){e=e.pipe(s(t))}if(!e._readableState||!e.pause||!e.pipe){throw new Error("Only readable stream can be merged.")}e.pause()}else{for(let r=0,n=e.length;r<n;r++){e[r]=pauseStreams(e[r],t)}}return e}},81848:(e,t,r)=>{"use strict";var n=r(73837);var s=r(3876);var i=r(15912);var o=r(86735);var a=r(67085);var c=r(161);var u=r(7991);var l=r(5503);var h=1024*64;function micromatch(e,t,r){t=l.arrayify(t);e=l.arrayify(e);var n=t.length;if(e.length===0||n===0){return[]}if(n===1){return micromatch.match(e,t[0],r)}var s=[];var i=[];var o=-1;while(++o<n){var a=t[o];if(typeof a==="string"&&a.charCodeAt(0)===33){s.push.apply(s,micromatch.match(e,a.slice(1),r))}else{i.push.apply(i,micromatch.match(e,a,r))}}var c=l.diff(i,s);if(!r||r.nodupes!==false){return l.unique(c)}return c}micromatch.match=function(e,t,r){if(Array.isArray(t)){throw new TypeError("expected pattern to be a string")}var n=l.unixify(r);var s=memoize("match",t,r,micromatch.matcher);var i=[];e=l.arrayify(e);var o=e.length;var a=-1;while(++a<o){var c=e[a];if(c===t||s(c)){i.push(l.value(c,n,r))}}if(typeof r==="undefined"){return l.unique(i)}if(i.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[r.unescape?l.unescape(t):t]}}if(r.ignore){i=micromatch.not(i,r.ignore,r)}return r.nodupes!==false?l.unique(i):i};micromatch.isMatch=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(isEmptyString(e)||isEmptyString(t)){return false}var s=l.equalsPattern(r);if(s(e)){return true}var i=memoize("isMatch",t,r,micromatch.matcher);return i(e)};micromatch.some=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(micromatch(e[n],t,r).length===1){return true}}return false};micromatch.every=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(micromatch(e[n],t,r).length!==1){return false}}return true};micromatch.any=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(isEmptyString(e)||isEmptyString(t)){return false}if(typeof t==="string"){t=[t]}for(var s=0;s<t.length;s++){if(micromatch.isMatch(e,t[s],r)){return true}}return false};micromatch.all=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){t=[t]}for(var s=0;s<t.length;s++){if(!micromatch.isMatch(e,t[s],r)){return false}}return true};micromatch.not=function(e,t,r){var n=o({},r);var s=n.ignore;delete n.ignore;var i=l.unixify(n);e=l.arrayify(e).map(i);var a=l.diff(e,micromatch(e,t,n));if(s){a=l.diff(a,micromatch(e,s))}return n.nodupes!==false?l.unique(a):a};micromatch.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}var s=l.equalsPattern(t,r);if(s(e)){return true}var i=l.containsPattern(t,r);if(i(e)){return true}}var a=o({},r,{contains:true});return micromatch.any(e,t,a)};micromatch.matchBase=function(e,t){if(e&&e.indexOf("/")!==-1||!t)return false;return t.basename===true||t.matchBase===true};micromatch.matchKeys=function(e,t,r){if(!l.isObject(e)){throw new TypeError("expected the first argument to be an object")}var n=micromatch(Object.keys(e),t,r);return l.pick(e,n)};micromatch.matcher=function matcher(e,t){if(Array.isArray(e)){return compose(e,t,matcher)}if(e instanceof RegExp){return test(e)}if(!l.isString(e)){throw new TypeError("expected pattern to be an array, string or regex")}if(!l.hasSpecialChars(e)){if(t&&t.nocase===true){e=e.toLowerCase()}return l.matchPath(e,t)}var r=micromatch.makeRe(e,t);if(micromatch.matchBase(e,t)){return l.matchBasename(r,t)}function test(e){var r=l.equalsPattern(t);var n=l.unixify(t);return function(t){if(r(t)){return true}if(e.test(n(t))){return true}return false}}var n=test(r);Object.defineProperty(n,"result",{configurable:true,enumerable:false,value:r.result});return n};micromatch.capture=function(e,t,r){var n=micromatch.makeRe(e,o({capture:true},r));var s=l.unixify(r);function match(){return function(e){var t=n.exec(s(e));if(!t){return null}return t.slice(1)}}var i=memoize("capture",e,r,match);return i(t)};micromatch.makeRe=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>h){throw new Error("expected pattern to be less than "+h+" characters")}function makeRe(){var r=micromatch.create(e,t);var n=[];var s=r.map((function(e){e.ast.state=e.state;n.push(e.ast);return e.output}));var o=i(s.join("|"),t);Object.defineProperty(o,"result",{configurable:true,enumerable:false,value:n});return o}return memoize("makeRe",e,t,makeRe)};micromatch.braces=function(e,t){if(typeof e!=="string"&&!Array.isArray(e)){throw new TypeError("expected pattern to be an array or string")}function expand(){if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return l.arrayify(e)}return s(e,t)}return memoize("braces",e,t,expand)};micromatch.braceExpand=function(e,t){var r=o({},t,{expand:true});return micromatch.braces(e,r)};micromatch.create=function(e,t){return memoize("create",e,t,(function(){function create(e,t){return micromatch.compile(micromatch.parse(e,t),t)}e=micromatch.braces(e,t);var r=e.length;var n=-1;var s=[];while(++n<r){s.push(create(e[n],t))}return s}))};micromatch.parse=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function parse(){var r=l.instantiate(null,t);c(r,t);var n=r.parse(e,t);l.define(n,"snapdragon",r);n.input=e;return n}return memoize("parse",e,t,parse)};micromatch.compile=function(e,t){if(typeof e==="string"){e=micromatch.parse(e,t)}return memoize("compile",e.input,t,(function(){var r=l.instantiate(e,t);a(r,t);return r.compile(e,t)}))};micromatch.clearCache=function(){micromatch.cache.caches={}};function isEmptyString(e){return String(e)===""||String(e)==="./"}function compose(e,t,r){var n;return memoize("compose",String(e),t,(function(){return function(s){if(!n){n=[];for(var i=0;i<e.length;i++){n.push(r(e[i],t))}}var o=n.length;while(o--){if(n[o](s)===true){return true}}return false}}))}function memoize(e,t,r,n){var s=l.createKey(e+"="+t,r);if(r&&r.cache===false){return n(t,r)}if(u.has(e,s)){return u.get(e,s)}var i=n(t,r);u.set(e,s,i);return i}micromatch.compilers=a;micromatch.parsers=c;micromatch.caches=u.caches;e.exports=micromatch},7991:(e,t,r)=>{e.exports=new(r(32172))},67085:(e,t,r)=>{"use strict";var n=r(69657);var s=r(74255);e.exports=function(e){var t=e.compiler.compilers;var r=e.options;e.use(n.compilers);var i=t.escape;var o=t.qmark;var a=t.slash;var c=t.star;var u=t.text;var l=t.plus;var h=t.dot;if(r.extglob===false||r.noext===true){e.compiler.use(escapeExtglobs)}else{e.use(s.compilers)}e.use((function(){this.options.star=this.options.star||function(){return"[^\\\\/]*?"}}));e.compiler.set("dot",h).set("escape",i).set("plus",l).set("slash",a).set("qmark",o).set("star",c).set("text",u)};function escapeExtglobs(e){e.set("paren",(function(e){var t="";visit(e,(function(e){if(e.val)t+=(/^\W/.test(e.val)?"\\":"")+e.val}));return this.emit(t,e)}));function visit(e,t){return e.nodes?mapVisit(e.nodes,t):t(e)}function mapVisit(e,t){var r=e.length;var n=-1;while(++n<r){visit(e[n],t)}}}},161:(e,t,r)=>{"use strict";var n=r(74255);var s=r(69657);var i=r(19157);var o=r(15912);var a;var c="([!@*?+]?\\(|\\)|\\[:?(?=.*?:?\\])|:?\\]|[*+?!^$.\\\\/])+";var createNotRegex=function(e){return a||(a=textRegex(c))};e.exports=function(e){var t=e.parser.parsers;e.use(s.parsers);var r=t.escape;var i=t.slash;var o=t.qmark;var a=t.plus;var c=t.star;var u=t.dot;e.use(n.parsers);e.parser.use((function(){this.notRegex=/^\!+(?!\()/})).capture("escape",r).capture("slash",i).capture("qmark",o).capture("star",c).capture("plus",a).capture("dot",u).capture("text",(function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(createNotRegex(this.options));if(!t||!t[0])return;var r=t[0].replace(/([[\]^$])/g,"\\$1");return e({type:"text",val:r})}))};function textRegex(e){var t=i.create(e,{contains:true,strictClose:false});var r="(?:[\\^]|\\\\|";return o(r+t+")",{strictClose:false})}},5503:(e,t,r)=>{"use strict";var n=e.exports;var s=r(71017);var i=r(30267);n.define=r(11945);n.diff=r(44130);n.extend=r(86735);n.pick=r(56058);n.typeOf=r(44824);n.unique=r(89424);n.isWindows=function(){return s.sep==="\\"||process.platform==="win32"};n.instantiate=function(e,t){var r;if(n.typeOf(e)==="object"&&e.snapdragon){r=e.snapdragon}else if(n.typeOf(t)==="object"&&t.snapdragon){r=t.snapdragon}else{r=new i(t)}n.define(r,"parse",(function(e,t){var r=i.prototype.parse.apply(this,arguments);r.input=e;var s=this.parser.stack.pop();if(s&&this.options.strictErrors!==true){var o=s.nodes[0];var a=s.nodes[1];if(s.type==="bracket"){if(a.val.charAt(0)==="["){a.val="\\"+a.val}}else{o.val="\\"+o.val;var c=o.parent.nodes[1];if(c.type==="star"){c.loose=true}}}n.define(r,"parser",this.parser);return r}));return r};n.createKey=function(e,t){if(n.typeOf(t)!=="object"){return e}var r=e;var s=Object.keys(t);for(var i=0;i<s.length;i++){var o=s[i];r+=";"+o+"="+String(t[o])}return r};n.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};n.isString=function(e){return typeof e==="string"};n.isObject=function(e){return n.typeOf(e)==="object"};n.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|\[\]{}]|[+@]\()/.test(e)};n.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\\/\s]/g,"\\$&")};n.toPosixPath=function(e){return e.replace(/\\+/g,"/")};n.unescape=function(e){return n.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))};n.stripPrefix=function(e){if(e.charAt(0)!=="."){return e}var t=e.charAt(1);if(n.isSlash(t)){return e.slice(2)}return e};n.isSlash=function(e){return e==="/"||e==="\\/"||e==="\\"||e==="\\\\"};n.matchPath=function(e,t){return t&&t.contains?n.containsPattern(e,t):n.equalsPattern(e,t)};n._equals=function(e,t,r){return r===e||r===t};n._contains=function(e,t,r){return e.indexOf(r)!==-1||t.indexOf(r)!==-1};n.equalsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function fn(s){var i=n._equals(s,r(s),e);if(i===true||t.nocase!==true){return i}var o=s.toLowerCase();return n._equals(o,r(o),e)}};n.containsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function(s){var i=n._contains(s,r(s),e);if(i===true||t.nocase!==true){return i}var o=s.toLowerCase();return n._contains(o,r(o),e)}};n.matchBasename=function(e){return function(t){return e.test(s.basename(t))}};n.value=function(e,t,r){if(r&&r.unixify===false){return e}return t(e)};n.unixify=function(e){e=e||{};return function(t){if(n.isWindows()||e.unixify===true){t=n.toPosixPath(t)}if(e.stripPrefix!==false){t=n.stripPrefix(t)}if(e.unescape===true){t=n.unescape(t)}return t}}},95469:e=>{"use strict";const mimicFn=(e,t)=>{for(const r of Reflect.ownKeys(t)){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}return e};e.exports=mimicFn;e.exports["default"]=mimicFn},11867:e=>{"use strict";const copyProperty=(e,t,r,n)=>{if(r==="length"||r==="prototype"){return}if(r==="arguments"||r==="caller"){return}const s=Object.getOwnPropertyDescriptor(e,r);const i=Object.getOwnPropertyDescriptor(t,r);if(!canCopyProperty(s,i)&&n){return}Object.defineProperty(e,r,i)};const canCopyProperty=function(e,t){return e===undefined||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)};const changePrototype=(e,t)=>{const r=Object.getPrototypeOf(t);if(r===Object.getPrototypeOf(e)){return}Object.setPrototypeOf(e,r)};const wrappedToString=(e,t)=>`/* Wrapped ${e}*/\n${t}`;const t=Object.getOwnPropertyDescriptor(Function.prototype,"toString");const r=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");const changeToString=(e,n,s)=>{const i=s===""?"":`with ${s.trim()}() `;const o=wrappedToString.bind(null,i,n.toString());Object.defineProperty(o,"name",r);Object.defineProperty(e,"toString",{...t,value:o})};const mimicFn=(e,t,{ignoreNonConfigurable:r=false}={})=>{const{name:n}=e;for(const n of Reflect.ownKeys(t)){copyProperty(e,t,n,r)}changePrototype(e,t);changeToString(e,t,n);return e};e.exports=mimicFn},94240:e=>{"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=(e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}}},15479:e=>{"use strict";const t=["aborted","complete","destroy","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];e.exports=(e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}return r}},88923:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var n=function(){try{return r(71017)}catch(e){}}()||{sep:"/"};minimatch.sep=n.sep;var s=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var i=r(54800);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var h=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var p=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,n,s){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,n,s){return t(r,n,ext(e,s))};r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,n){return t.filter(r,ext(e,n))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,n){return t.makeRe(r,ext(e,n))};r.braceExpand=function braceExpand(r,n){return t.braceExpand(r,ext(e,n))};r.match=function(r,n,s){return t.match(r,n,ext(e,s))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(p)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var n=0;if(r.nonegate)return;for(var s=0,i=e.length;s<i&&e.charAt(s)==="!";s++){t=!t;n++}if(n)this.pattern=e.substr(n);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return i(e)}var d=1024*64;var assertValidPattern=function(e){if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>d){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var y={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return s;else e="*"}if(e==="")return"";var n="";var i=!!r.nocase;var u=false;var l=[];var p=[];var d;var g=false;var v=-1;var b=-1;var w=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var S=this;function clearStateChar(){if(d){switch(d){case"*":n+=c;i=true;break;case"?":n+=a;i=true;break;default:n+="\\"+d;break}S.debug("clearStateChar %j %j",d,n);d=false}}for(var x=0,O=e.length,R;x<O&&(R=e.charAt(x));x++){this.debug("%s\t%s %s %j",e,x,n,R);if(u&&h[R]){n+="\\"+R;u=false;continue}switch(R){case"/":{return false}case"\\":clearStateChar();u=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,x,n,R);if(g){this.debug(" in class");if(R==="!"&&x===b+1)R="^";n+=R;continue}S.debug("call clearStateChar %j",d);clearStateChar();d=R;if(r.noext)clearStateChar();continue;case"(":if(g){n+="(";continue}if(!d){n+="\\(";continue}l.push({type:d,start:x-1,reStart:n.length,open:o[d].open,close:o[d].close});n+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,n);d=false;continue;case")":if(g||!l.length){n+="\\)";continue}clearStateChar();i=true;var k=l.pop();n+=k.close;if(k.type==="!"){p.push(k)}k.reEnd=n.length;continue;case"|":if(g||!l.length||u){n+="\\|";u=false;continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(g){n+="\\"+R;continue}g=true;b=x;v=n.length;n+=R;continue;case"]":if(x===b+1||!g){n+="\\"+R;u=false;continue}var A=e.substring(b+1,x);try{RegExp("["+A+"]")}catch(e){var P=this.parse(A,y);n=n.substr(0,v)+"\\["+P[0]+"\\]";i=i||P[1];g=false;continue}i=true;g=false;n+=R;continue;default:clearStateChar();if(u){u=false}else if(h[R]&&!(R==="^"&&g)){n+="\\"}n+=R}}if(g){A=e.substr(b+1);P=this.parse(A,y);n=n.substr(0,v)+"\\["+P[0];i=i||P[1]}for(k=l.pop();k;k=l.pop()){var C=n.slice(k.reStart+k.open.length);this.debug("setting tail",n,k);C=C.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",C,C,k,n);var $=k.type==="*"?c:k.type==="?"?a:"\\"+k.type;i=true;n=n.slice(0,k.reStart)+$+"\\("+C}clearStateChar();if(u){n+="\\\\"}var T=false;switch(n.charAt(0)){case"[":case".":case"(":T=true}for(var j=p.length-1;j>-1;j--){var I=p[j];var N=n.slice(0,I.reStart);var M=n.slice(I.reStart,I.reEnd-8);var D=n.slice(I.reEnd-8,I.reEnd);var L=n.slice(I.reEnd);D+=L;var B=N.split("(").length-1;var U=L;for(x=0;x<B;x++){U=U.replace(/\)[+*?]?/,"")}L=U;var G="";if(L===""&&t!==y){G="$"}var z=N+M+L+G+D;n=z}if(n!==""&&i){n="(?=.)"+n}if(T){n=w+n}if(t===y){return[n,i]}if(!i){return globUnescape(e)}var V=r.nocase?"i":"";try{var q=new RegExp("^"+n+"$",V)}catch(e){return new RegExp("$.")}q._glob=e;q._src=n;return q}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?c:t.dot?u:l;var n=t.nocase?"i":"";var i=e.map((function(e){return e.map((function(e){return e===s?r:typeof e==="string"?regExpEscape(e):e._src})).join("\\/")})).join("|");i="^(?:"+i+")$";if(this.negate)i="^(?!"+i+").*$";try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var n=new Minimatch(t,r);e=e.filter((function(e){return n.match(e)}));if(n.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=function match(e,t){if(typeof t==="undefined")t=this.partial;this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(p);this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i;var o;for(o=e.length-1;o>=0;o--){i=e[o];if(i)break}for(o=0;o<s.length;o++){var a=s[o];var c=e;if(r.matchBase&&a.length===1){c=[i]}var u=this.matchOne(c,a,t);if(u){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var i=0,o=0,a=e.length,c=t.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var u=t[o];var l=e[i];this.debug(t,u,l);if(u===false)return false;if(u===s){this.debug("GLOBSTAR",[t,u,l]);var h=i;var p=o+1;if(p===c){this.debug("** at the end");for(;i<a;i++){if(e[i]==="."||e[i]===".."||!n.dot&&e[i].charAt(0)===".")return false}return true}while(h<a){var d=e[h];this.debug("\nglobstar while",e,h,t,p,d);if(this.matchOne(e.slice(h),t.slice(p),r)){this.debug("globstar found match!",h,a,d);return true}else{if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,h,t,p);break}this.debug("globstar swallow a segment, and continue");h++}}if(r){this.debug("\n>>> no match, partial?",e,h,t,p);if(h===a)return true}return false}var y;if(typeof u==="string"){y=l===u;this.debug("string match",u,l,y)}else{y=l.match(u);this.debug("pattern match",u,l,y)}if(!y)return false}if(i===a&&o===c){return true}else if(i===a){return r}else if(o===c){return i===a-1&&e[i]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},81445:e=>{const t=typeof process==="object"&&process&&process.platform==="win32";e.exports=t?{sep:"\\"}:{sep:"/"}},53373:(e,t,r)=>{const n=e.exports=(e,t,r={})=>{assertValidPattern(t);if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)};e.exports=n;const s=r(81445);n.sep=s.sep;const i=Symbol("globstar **");n.GLOBSTAR=i;const o=r(97847);const a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const c="[^/]";const u=c+"*?";const l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const h="(?:(?!(?:\\/|^)\\.).)*?";const charSet=e=>e.split("").reduce(((e,t)=>{e[t]=true;return e}),{});const p=charSet("().*{}+?[]^$\\!");const d=charSet("[.(");const y=/\/+/;n.filter=(e,t={})=>(r,s,i)=>n(r,e,t);const ext=(e,t={})=>{const r={};Object.keys(e).forEach((t=>r[t]=e[t]));Object.keys(t).forEach((e=>r[e]=t[e]));return r};n.defaults=e=>{if(!e||typeof e!=="object"||!Object.keys(e).length){return n}const t=n;const m=(r,n,s)=>t(r,n,ext(e,s));m.Minimatch=class Minimatch extends t.Minimatch{constructor(t,r){super(t,ext(e,r))}};m.Minimatch.defaults=r=>t.defaults(ext(e,r)).Minimatch;m.filter=(r,n)=>t.filter(r,ext(e,n));m.defaults=r=>t.defaults(ext(e,r));m.makeRe=(r,n)=>t.makeRe(r,ext(e,n));m.braceExpand=(r,n)=>t.braceExpand(r,ext(e,n));m.match=(r,n,s)=>t.match(r,n,ext(e,s));return m};n.braceExpand=(e,t)=>braceExpand(e,t);const braceExpand=(e,t={})=>{assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return o(e)};const g=1024*64;const assertValidPattern=e=>{if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>g){throw new TypeError("pattern is too long")}};const v=Symbol("subparse");n.makeRe=(e,t)=>new Minimatch(e,t||{}).makeRe();n.match=(e,t,r={})=>{const n=new Minimatch(t,r);e=e.filter((e=>n.match(e)));if(n.options.nonull&&!e.length){e.push(t)}return e};const globUnescape=e=>e.replace(/\\(.)/g,"$1");const regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Minimatch{constructor(e,t){assertValidPattern(e);if(!t)t={};this.options=t;this.set=[];this.pattern=e;this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}debug(){}make(){const e=this.pattern;const t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();let r=this.globSet=this.braceExpand();if(t.debug)this.debug=(...e)=>console.error(...e);this.debug(this.pattern,r);r=this.globParts=r.map((e=>e.split(y)));this.debug(this.pattern,r);r=r.map(((e,t,r)=>e.map(this.parse,this)));this.debug(this.pattern,r);r=r.filter((e=>e.indexOf(false)===-1));this.debug(this.pattern,r);this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=false;let r=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++){t=!t;r++}if(r)this.pattern=e.substr(r);this.negate=t}matchOne(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var s=0,o=0,a=e.length,c=t.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var u=t[o];var l=e[s];this.debug(t,u,l);if(u===false)return false;if(u===i){this.debug("GLOBSTAR",[t,u,l]);var h=s;var p=o+1;if(p===c){this.debug("** at the end");for(;s<a;s++){if(e[s]==="."||e[s]===".."||!n.dot&&e[s].charAt(0)===".")return false}return true}while(h<a){var d=e[h];this.debug("\nglobstar while",e,h,t,p,d);if(this.matchOne(e.slice(h),t.slice(p),r)){this.debug("globstar found match!",h,a,d);return true}else{if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,h,t,p);break}this.debug("globstar swallow a segment, and continue");h++}}if(r){this.debug("\n>>> no match, partial?",e,h,t,p);if(h===a)return true}return false}var y;if(typeof u==="string"){y=l===u;this.debug("string match",u,l,y)}else{y=l.match(u);this.debug("pattern match",u,l,y)}if(!y)return false}if(s===a&&o===c){return true}else if(s===a){return r}else if(o===c){return s===a-1&&e[s]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(e,t){assertValidPattern(e);const r=this.options;if(e==="**"){if(!r.noglobstar)return i;else e="*"}if(e==="")return"";let n="";let s=!!r.nocase;let o=false;const l=[];const h=[];let y;let g=false;let b=-1;let w=-1;let S;let x;let O;const R=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(y){switch(y){case"*":n+=u;s=true;break;case"?":n+=c;s=true;break;default:n+="\\"+y;break}this.debug("clearStateChar %j %j",y,n);y=false}};for(let t=0,i;t<e.length&&(i=e.charAt(t));t++){this.debug("%s\t%s %s %j",e,t,n,i);if(o){if(i==="/"){return false}if(p[i]){n+="\\"}n+=i;o=false;continue}switch(i){case"/":{return false}case"\\":clearStateChar();o=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,t,n,i);if(g){this.debug(" in class");if(i==="!"&&t===w+1)i="^";n+=i;continue}this.debug("call clearStateChar %j",y);clearStateChar();y=i;if(r.noext)clearStateChar();continue;case"(":if(g){n+="(";continue}if(!y){n+="\\(";continue}l.push({type:y,start:t-1,reStart:n.length,open:a[y].open,close:a[y].close});n+=y==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",y,n);y=false;continue;case")":if(g||!l.length){n+="\\)";continue}clearStateChar();s=true;x=l.pop();n+=x.close;if(x.type==="!"){h.push(x)}x.reEnd=n.length;continue;case"|":if(g||!l.length){n+="\\|";continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(g){n+="\\"+i;continue}g=true;w=t;b=n.length;n+=i;continue;case"]":if(t===w+1||!g){n+="\\"+i;continue}S=e.substring(w+1,t);try{RegExp("["+S+"]")}catch(e){O=this.parse(S,v);n=n.substr(0,b)+"\\["+O[0]+"\\]";s=s||O[1];g=false;continue}s=true;g=false;n+=i;continue;default:clearStateChar();if(p[i]&&!(i==="^"&&g)){n+="\\"}n+=i;break}}if(g){S=e.substr(w+1);O=this.parse(S,v);n=n.substr(0,b)+"\\["+O[0];s=s||O[1]}for(x=l.pop();x;x=l.pop()){let e;e=n.slice(x.reStart+x.open.length);this.debug("setting tail",n,x);e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>{if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",e,e,x,n);const t=x.type==="*"?u:x.type==="?"?c:"\\"+x.type;s=true;n=n.slice(0,x.reStart)+t+"\\("+e}clearStateChar();if(o){n+="\\\\"}const k=d[n.charAt(0)];for(let e=h.length-1;e>-1;e--){const r=h[e];const s=n.slice(0,r.reStart);const i=n.slice(r.reStart,r.reEnd-8);let o=n.slice(r.reEnd);const a=n.slice(r.reEnd-8,r.reEnd)+o;const c=s.split("(").length-1;let u=o;for(let e=0;e<c;e++){u=u.replace(/\)[+*?]?/,"")}o=u;const l=o===""&&t!==v?"$":"";n=s+i+o+l+a}if(n!==""&&s){n="(?=.)"+n}if(k){n=R+n}if(t===v){return[n,s]}if(!s){return globUnescape(e)}const A=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",A),{_glob:e,_src:n})}catch(e){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const e=this.set;if(!e.length){this.regexp=false;return this.regexp}const t=this.options;const r=t.noglobstar?u:t.dot?l:h;const n=t.nocase?"i":"";let s=e.map((e=>{e=e.map((e=>typeof e==="string"?regExpEscape(e):e===i?i:e._src)).reduce(((e,t)=>{if(!(e[e.length-1]===i&&t===i)){e.push(t)}return e}),[]);e.forEach(((t,n)=>{if(t!==i||e[n-1]===i){return}if(n===0){if(e.length>1){e[n+1]="(?:\\/|"+r+"\\/)?"+e[n+1]}else{e[n]=r}}else if(n===e.length-1){e[n-1]+="(?:\\/|"+r+")?"}else{e[n-1]+="(?:\\/|\\/"+r+"\\/)"+e[n+1];e[n+1]=i}}));return e.filter((e=>e!==i)).join("/")})).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,n)}catch(e){this.regexp=false}return this.regexp}match(e,t=this.partial){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;const r=this.options;if(s.sep!=="/"){e=e.split(s.sep).join("/")}e=e.split(y);this.debug(this.pattern,"split",e);const n=this.set;this.debug(this.pattern,"set",n);let i;for(let t=e.length-1;t>=0;t--){i=e[t];if(i)break}for(let s=0;s<n.length;s++){const o=n[s];let a=e;if(r.matchBase&&o.length===1){a=[i]}const c=this.matchOne(a,o,t);if(c){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}static defaults(e){return n.defaults(e).Minimatch}}n.Minimatch=Minimatch},21254:e=>{e.exports=function(e,t){if(!t)t={};var r={bools:{},strings:{},unknownFn:null};if(typeof t["unknown"]==="function"){r.unknownFn=t["unknown"]}if(typeof t["boolean"]==="boolean"&&t["boolean"]){r.allBools=true}else{[].concat(t["boolean"]).filter(Boolean).forEach((function(e){r.bools[e]=true}))}var n={};Object.keys(t.alias||{}).forEach((function(e){n[e]=[].concat(t.alias[e]);n[e].forEach((function(t){n[t]=[e].concat(n[e].filter((function(e){return t!==e})))}))}));[].concat(t.string).filter(Boolean).forEach((function(e){r.strings[e]=true;if(n[e]){r.strings[n[e]]=true}}));var s=t["default"]||{};var i={_:[]};Object.keys(r.bools).forEach((function(e){setArg(e,s[e]===undefined?false:s[e])}));var o=[];if(e.indexOf("--")!==-1){o=e.slice(e.indexOf("--")+1);e=e.slice(0,e.indexOf("--"))}function argDefined(e,t){return r.allBools&&/^--[^=]+$/.test(t)||r.strings[e]||r.bools[e]||n[e]}function setArg(e,t,s){if(s&&r.unknownFn&&!argDefined(e,s)){if(r.unknownFn(s)===false)return}var o=!r.strings[e]&&isNumber(t)?Number(t):t;setKey(i,e.split("."),o);(n[e]||[]).forEach((function(e){setKey(i,e.split("."),o)}))}function setKey(e,t,n){var s=e;for(var i=0;i<t.length-1;i++){var o=t[i];if(isConstructorOrProto(s,o))return;if(s[o]===undefined)s[o]={};if(s[o]===Object.prototype||s[o]===Number.prototype||s[o]===String.prototype)s[o]={};if(s[o]===Array.prototype)s[o]=[];s=s[o]}var o=t[t.length-1];if(isConstructorOrProto(s,o))return;if(s===Object.prototype||s===Number.prototype||s===String.prototype)s={};if(s===Array.prototype)s=[];if(s[o]===undefined||r.bools[o]||typeof s[o]==="boolean"){s[o]=n}else if(Array.isArray(s[o])){s[o].push(n)}else{s[o]=[s[o],n]}}function aliasIsBoolean(e){return n[e].some((function(e){return r.bools[e]}))}for(var a=0;a<e.length;a++){var c=e[a];if(/^--.+=/.test(c)){var u=c.match(/^--([^=]+)=([\s\S]*)$/);var l=u[1];var h=u[2];if(r.bools[l]){h=h!=="false"}setArg(l,h,c)}else if(/^--no-.+/.test(c)){var l=c.match(/^--no-(.+)/)[1];setArg(l,false,c)}else if(/^--.+/.test(c)){var l=c.match(/^--(.+)/)[1];var p=e[a+1];if(p!==undefined&&!/^-/.test(p)&&!r.bools[l]&&!r.allBools&&(n[l]?!aliasIsBoolean(l):true)){setArg(l,p,c);a++}else if(/^(true|false)$/.test(p)){setArg(l,p==="true",c);a++}else{setArg(l,r.strings[l]?"":true,c)}}else if(/^-[^-]+/.test(c)){var d=c.slice(1,-1).split("");var y=false;for(var g=0;g<d.length;g++){var p=c.slice(g+2);if(p==="-"){setArg(d[g],p,c);continue}if(/[A-Za-z]/.test(d[g])&&/=/.test(p)){setArg(d[g],p.split("=")[1],c);y=true;break}if(/[A-Za-z]/.test(d[g])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(p)){setArg(d[g],p,c);y=true;break}if(d[g+1]&&d[g+1].match(/\W/)){setArg(d[g],c.slice(g+2),c);y=true;break}else{setArg(d[g],r.strings[d[g]]?"":true,c)}}var l=c.slice(-1)[0];if(!y&&l!=="-"){if(e[a+1]&&!/^(-|--)[^-]/.test(e[a+1])&&!r.bools[l]&&(n[l]?!aliasIsBoolean(l):true)){setArg(l,e[a+1],c);a++}else if(e[a+1]&&/^(true|false)$/.test(e[a+1])){setArg(l,e[a+1]==="true",c);a++}else{setArg(l,r.strings[l]?"":true,c)}}}else{if(!r.unknownFn||r.unknownFn(c)!==false){i._.push(r.strings["_"]||!isNumber(c)?c:Number(c))}if(t.stopEarly){i._.push.apply(i._,e.slice(a+1));break}}}Object.keys(s).forEach((function(e){if(!hasKey(i,e.split("."))){setKey(i,e.split("."),s[e]);(n[e]||[]).forEach((function(t){setKey(i,t.split("."),s[e])}))}}));if(t["--"]){i["--"]=new Array;o.forEach((function(e){i["--"].push(e)}))}else{o.forEach((function(e){i._.push(e)}))}return i};function hasKey(e,t){var r=e;t.slice(0,-1).forEach((function(e){r=r[e]||{}}));var n=t[t.length-1];return n in r}function isNumber(e){if(typeof e==="number")return true;if(/^0x[0-9a-f]+$/i.test(e))return true;return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function isConstructorOrProto(e,t){return t==="constructor"&&typeof e[t]==="function"||t==="__proto__"}},97413:(e,t,r)=>{"use strict";const n=r(82361);const s=r(12781);const i=r(13401);const o=r(71576).StringDecoder;const a=Symbol("EOF");const c=Symbol("maybeEmitEnd");const u=Symbol("emittedEnd");const l=Symbol("emittingEnd");const h=Symbol("closed");const p=Symbol("read");const d=Symbol("flush");const y=Symbol("flushChunk");const g=Symbol("encoding");const v=Symbol("decoder");const b=Symbol("flowing");const w=Symbol("paused");const S=Symbol("resume");const x=Symbol("bufferLength");const O=Symbol("bufferPush");const R=Symbol("bufferShift");const k=Symbol("objectMode");const A=Symbol("destroyed");const P=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const C=P&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const $=P&&Symbol.iterator||Symbol("iterator not implemented");const isEndish=e=>e==="end"||e==="finish"||e==="prefinish";const isArrayBuffer=e=>e instanceof ArrayBuffer||typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const isArrayBufferView=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e);e.exports=class Minipass extends s{constructor(e){super();this[b]=false;this[w]=false;this.pipes=new i;this.buffer=new i;this[k]=e&&e.objectMode||false;if(this[k])this[g]=null;else this[g]=e&&e.encoding||null;if(this[g]==="buffer")this[g]=null;this[v]=this[g]?new o(this[g]):null;this[a]=false;this[u]=false;this[l]=false;this[h]=false;this.writable=true;this.readable=true;this[x]=0;this[A]=false}get bufferLength(){return this[x]}get encoding(){return this[g]}set encoding(e){if(this[k])throw new Error("cannot set encoding in objectMode");if(this[g]&&e!==this[g]&&(this[v]&&this[v].lastNeed||this[x]))throw new Error("cannot change encoding");if(this[g]!==e){this[v]=e?new o(e):null;if(this.buffer.length)this.buffer=this.buffer.map((e=>this[v].write(e)))}this[g]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[k]}set objectMode(e){this[k]=this[k]||!!e}write(e,t,r){if(this[a])throw new Error("write after end");if(this[A]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function")r=t,t="utf8";if(!t)t="utf8";if(!this[k]&&!Buffer.isBuffer(e)){if(isArrayBufferView(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(isArrayBuffer(e))e=Buffer.from(e);else if(typeof e!=="string")this.objectMode=true}if(!this.objectMode&&!e.length){if(this[x]!==0)this.emit("readable");if(r)r();return this.flowing}if(typeof e==="string"&&!this[k]&&!(t===this[g]&&!this[v].lastNeed)){e=Buffer.from(e,t)}if(Buffer.isBuffer(e)&&this[g])e=this[v].write(e);if(this.flowing){if(this[x]!==0)this[d](true);this.emit("data",e)}else this[O](e);if(this[x]!==0)this.emit("readable");if(r)r();return this.flowing}read(e){if(this[A])return null;try{if(this[x]===0||e===0||e>this[x])return null;if(this[k])e=null;if(this.buffer.length>1&&!this[k]){if(this.encoding)this.buffer=new i([Array.from(this.buffer).join("")]);else this.buffer=new i([Buffer.concat(Array.from(this.buffer),this[x])])}return this[p](e||null,this.buffer.head.value)}finally{this[c]()}}[p](e,t){if(e===t.length||e===null)this[R]();else{this.buffer.head.value=t.slice(e);t=t.slice(0,e);this[x]-=e}this.emit("data",t);if(!this.buffer.length&&!this[a])this.emit("drain");return t}end(e,t,r){if(typeof e==="function")r=e,e=null;if(typeof t==="function")r=t,t="utf8";if(e)this.write(e,t);if(r)this.once("end",r);this[a]=true;this.writable=false;if(this.flowing||!this[w])this[c]();return this}[S](){if(this[A])return;this[w]=false;this[b]=true;this.emit("resume");if(this.buffer.length)this[d]();else if(this[a])this[c]();else this.emit("drain")}resume(){return this[S]()}pause(){this[b]=false;this[w]=true}get destroyed(){return this[A]}get flowing(){return this[b]}get paused(){return this[w]}[O](e){if(this[k])this[x]+=1;else this[x]+=e.length;return this.buffer.push(e)}[R](){if(this.buffer.length){if(this[k])this[x]-=1;else this[x]-=this.buffer.head.value.length}return this.buffer.shift()}[d](e){do{}while(this[y](this[R]()));if(!e&&!this.buffer.length&&!this[a])this.emit("drain")}[y](e){return e?(this.emit("data",e),this.flowing):false}pipe(e,t){if(this[A])return;const r=this[u];t=t||{};if(e===process.stdout||e===process.stderr)t.end=false;else t.end=t.end!==false;const n={dest:e,opts:t,ondrain:e=>this[S]()};this.pipes.push(n);e.on("drain",n.ondrain);this[S]();if(r&&n.opts.end)n.dest.end();return e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{if(e==="data"&&!this.pipes.length&&!this.flowing)this[S]();else if(isEndish(e)&&this[u]){super.emit(e);this.removeAllListeners(e)}}}get emittedEnd(){return this[u]}[c](){if(!this[l]&&!this[u]&&!this[A]&&this.buffer.length===0&&this[a]){this[l]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[h])this.emit("close");this[l]=false}}emit(e,t){if(e!=="error"&&e!=="close"&&e!==A&&this[A])return;else if(e==="data"){if(!t)return;if(this.pipes.length)this.pipes.forEach((e=>e.dest.write(t)===false&&this.pause()))}else if(e==="end"){if(this[u]===true)return;this[u]=true;this.readable=false;if(this[v]){t=this[v].end();if(t){this.pipes.forEach((e=>e.dest.write(t)));super.emit("data",t)}}this.pipes.forEach((e=>{e.dest.removeListener("drain",e.ondrain);if(e.opts.end)e.dest.end()}))}else if(e==="close"){this[h]=true;if(!this[u]&&!this[A])return}const r=new Array(arguments.length);r[0]=e;r[1]=t;if(arguments.length>2){for(let e=2;e<arguments.length;e++){r[e]=arguments[e]}}try{return super.emit.apply(this,r)}finally{if(!isEndish(e))this[c]();else this.removeAllListeners(e)}}collect(){const e=[];if(!this[k])e.dataLength=0;const t=this.promise();this.on("data",(t=>{e.push(t);if(!this[k])e.dataLength+=t.length}));return t.then((()=>e))}concat(){return this[k]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((e=>this[k]?Promise.reject(new Error("cannot concat in objectMode")):this[g]?e.join(""):Buffer.concat(e,e.dataLength)))}promise(){return new Promise(((e,t)=>{this.on(A,(()=>t(new Error("stream destroyed"))));this.on("end",(()=>e()));this.on("error",(e=>t(e)))}))}[C](){const next=()=>{const e=this.read();if(e!==null)return Promise.resolve({done:false,value:e});if(this[a])return Promise.resolve({done:true});let t=null;let r=null;const onerr=e=>{this.removeListener("data",ondata);this.removeListener("end",onend);r(e)};const ondata=e=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.pause();t({value:e,done:!!this[a]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);t({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((e,n)=>{r=n;t=e;this.once(A,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next}}[$](){const next=()=>{const e=this.read();const t=e===null;return{value:e,done:t}};return{next:next}}destroy(e){if(this[A]){if(e)this.emit("error",e);else this.emit(A);return this}this[A]=true;this.buffer=new i;this[x]=0;if(typeof this.close==="function"&&!this[h])this.close();if(e)this.emit("error",e);else this.emit(A);return this}static isStream(e){return!!e&&(e instanceof Minipass||e instanceof s||e instanceof n&&(typeof e.pipe==="function"||typeof e.write==="function"&&typeof e.end==="function"))}}},85540:(e,t,r)=>{"use strict";const n=typeof process==="object"&&process?process:{stdout:null,stderr:null};const s=r(82361);const i=r(12781);const o=r(71576);const a=o.StringDecoder;const c=Symbol("EOF");const u=Symbol("maybeEmitEnd");const l=Symbol("emittedEnd");const h=Symbol("emittingEnd");const p=Symbol("emittedError");const d=Symbol("closed");const y=Symbol("read");const g=Symbol("flush");const v=Symbol("flushChunk");const b=Symbol("encoding");const w=Symbol("decoder");const S=Symbol("flowing");const x=Symbol("paused");const O=Symbol("resume");const R=Symbol("buffer");const k=Symbol("pipes");const A=Symbol("bufferLength");const P=Symbol("bufferPush");const C=Symbol("bufferShift");const $=Symbol("objectMode");const T=Symbol("destroyed");const j=Symbol("error");const I=Symbol("emitData");const N=Symbol("emitEnd");const M=Symbol("emitEnd2");const D=Symbol("async");const L=Symbol("abort");const B=Symbol("aborted");const U=Symbol("signal");const defer=e=>Promise.resolve().then(e);const G=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const z=G&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const V=G&&Symbol.iterator||Symbol("iterator not implemented");const isEndish=e=>e==="end"||e==="finish"||e==="prefinish";const isArrayBuffer=e=>e instanceof ArrayBuffer||typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const isArrayBufferView=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e);class Pipe{constructor(e,t,r){this.src=e;this.dest=t;this.opts=r;this.ondrain=()=>e[O]();t.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(e,t,r){super(e,t,r);this.proxyErrors=e=>t.emit("error",e);e.on("error",this.proxyErrors)}}class Minipass extends i{constructor(e){super();this[S]=false;this[x]=false;this[k]=[];this[R]=[];this[$]=e&&e.objectMode||false;if(this[$])this[b]=null;else this[b]=e&&e.encoding||null;if(this[b]==="buffer")this[b]=null;this[D]=e&&!!e.async||false;this[w]=this[b]?new a(this[b]):null;this[c]=false;this[l]=false;this[h]=false;this[d]=false;this[p]=null;this.writable=true;this.readable=true;this[A]=0;this[T]=false;if(e&&e.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[R]})}if(e&&e.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[k]})}this[U]=e&&e.signal;this[B]=false;if(this[U]){this[U].addEventListener("abort",(()=>this[L]()));if(this[U].aborted){this[L]()}}}get bufferLength(){return this[A]}get encoding(){return this[b]}set encoding(e){if(this[$])throw new Error("cannot set encoding in objectMode");if(this[b]&&e!==this[b]&&(this[w]&&this[w].lastNeed||this[A]))throw new Error("cannot change encoding");if(this[b]!==e){this[w]=e?new a(e):null;if(this[R].length)this[R]=this[R].map((e=>this[w].write(e)))}this[b]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[$]}set objectMode(e){this[$]=this[$]||!!e}get["async"](){return this[D]}set["async"](e){this[D]=this[D]||!!e}[L](){this[B]=true;this.emit("abort",this[U].reason);this.destroy(this[U].reason)}get aborted(){return this[B]}set aborted(e){}write(e,t,r){if(this[B])return false;if(this[c])throw new Error("write after end");if(this[T]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function")r=t,t="utf8";if(!t)t="utf8";const n=this[D]?defer:e=>e();if(!this[$]&&!Buffer.isBuffer(e)){if(isArrayBufferView(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(isArrayBuffer(e))e=Buffer.from(e);else if(typeof e!=="string")this.objectMode=true}if(this[$]){if(this.flowing&&this[A]!==0)this[g](true);if(this.flowing)this.emit("data",e);else this[P](e);if(this[A]!==0)this.emit("readable");if(r)n(r);return this.flowing}if(!e.length){if(this[A]!==0)this.emit("readable");if(r)n(r);return this.flowing}if(typeof e==="string"&&!(t===this[b]&&!this[w].lastNeed)){e=Buffer.from(e,t)}if(Buffer.isBuffer(e)&&this[b])e=this[w].write(e);if(this.flowing&&this[A]!==0)this[g](true);if(this.flowing)this.emit("data",e);else this[P](e);if(this[A]!==0)this.emit("readable");if(r)n(r);return this.flowing}read(e){if(this[T])return null;if(this[A]===0||e===0||e>this[A]){this[u]();return null}if(this[$])e=null;if(this[R].length>1&&!this[$]){if(this.encoding)this[R]=[this[R].join("")];else this[R]=[Buffer.concat(this[R],this[A])]}const t=this[y](e||null,this[R][0]);this[u]();return t}[y](e,t){if(e===t.length||e===null)this[C]();else{this[R][0]=t.slice(e);t=t.slice(0,e);this[A]-=e}this.emit("data",t);if(!this[R].length&&!this[c])this.emit("drain");return t}end(e,t,r){if(typeof e==="function")r=e,e=null;if(typeof t==="function")r=t,t="utf8";if(e)this.write(e,t);if(r)this.once("end",r);this[c]=true;this.writable=false;if(this.flowing||!this[x])this[u]();return this}[O](){if(this[T])return;this[x]=false;this[S]=true;this.emit("resume");if(this[R].length)this[g]();else if(this[c])this[u]();else this.emit("drain")}resume(){return this[O]()}pause(){this[S]=false;this[x]=true}get destroyed(){return this[T]}get flowing(){return this[S]}get paused(){return this[x]}[P](e){if(this[$])this[A]+=1;else this[A]+=e.length;this[R].push(e)}[C](){if(this[$])this[A]-=1;else this[A]-=this[R][0].length;return this[R].shift()}[g](e){do{}while(this[v](this[C]())&&this[R].length);if(!e&&!this[R].length&&!this[c])this.emit("drain")}[v](e){this.emit("data",e);return this.flowing}pipe(e,t){if(this[T])return;const r=this[l];t=t||{};if(e===n.stdout||e===n.stderr)t.end=false;else t.end=t.end!==false;t.proxyErrors=!!t.proxyErrors;if(r){if(t.end)e.end()}else{this[k].push(!t.proxyErrors?new Pipe(this,e,t):new PipeProxyErrors(this,e,t));if(this[D])defer((()=>this[O]()));else this[O]()}return e}unpipe(e){const t=this[k].find((t=>t.dest===e));if(t){this[k].splice(this[k].indexOf(t),1);t.unpipe()}}addListener(e,t){return this.on(e,t)}on(e,t){const r=super.on(e,t);if(e==="data"&&!this[k].length&&!this.flowing)this[O]();else if(e==="readable"&&this[A]!==0)super.emit("readable");else if(isEndish(e)&&this[l]){super.emit(e);this.removeAllListeners(e)}else if(e==="error"&&this[p]){if(this[D])defer((()=>t.call(this,this[p])));else t.call(this,this[p])}return r}get emittedEnd(){return this[l]}[u](){if(!this[h]&&!this[l]&&!this[T]&&this[R].length===0&&this[c]){this[h]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[d])this.emit("close");this[h]=false}}emit(e,t,...r){if(e!=="error"&&e!=="close"&&e!==T&&this[T])return;else if(e==="data"){return!this[$]&&!t?false:this[D]?defer((()=>this[I](t))):this[I](t)}else if(e==="end"){return this[N]()}else if(e==="close"){this[d]=true;if(!this[l]&&!this[T])return;const e=super.emit("close");this.removeAllListeners("close");return e}else if(e==="error"){this[p]=t;super.emit(j,t);const e=!this[U]||this.listeners("error").length?super.emit("error",t):false;this[u]();return e}else if(e==="resume"){const e=super.emit("resume");this[u]();return e}else if(e==="finish"||e==="prefinish"){const t=super.emit(e);this.removeAllListeners(e);return t}const n=super.emit(e,t,...r);this[u]();return n}[I](e){for(const t of this[k]){if(t.dest.write(e)===false)this.pause()}const t=super.emit("data",e);this[u]();return t}[N](){if(this[l])return;this[l]=true;this.readable=false;if(this[D])defer((()=>this[M]()));else this[M]()}[M](){if(this[w]){const e=this[w].end();if(e){for(const t of this[k]){t.dest.write(e)}super.emit("data",e)}}for(const e of this[k]){e.end()}const e=super.emit("end");this.removeAllListeners("end");return e}collect(){const e=[];if(!this[$])e.dataLength=0;const t=this.promise();this.on("data",(t=>{e.push(t);if(!this[$])e.dataLength+=t.length}));return t.then((()=>e))}concat(){return this[$]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((e=>this[$]?Promise.reject(new Error("cannot concat in objectMode")):this[b]?e.join(""):Buffer.concat(e,e.dataLength)))}promise(){return new Promise(((e,t)=>{this.on(T,(()=>t(new Error("stream destroyed"))));this.on("error",(e=>t(e)));this.on("end",(()=>e()))}))}[z](){let e=false;const stop=()=>{this.pause();e=true;return Promise.resolve({done:true})};const next=()=>{if(e)return stop();const t=this.read();if(t!==null)return Promise.resolve({done:false,value:t});if(this[c])return stop();let r=null;let n=null;const onerr=e=>{this.removeListener("data",ondata);this.removeListener("end",onend);this.removeListener(T,ondestroy);stop();n(e)};const ondata=e=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.removeListener(T,ondestroy);this.pause();r({value:e,done:!!this[c]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);this.removeListener(T,ondestroy);stop();r({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((e,t)=>{n=t;r=e;this.once(T,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[z](){return this}}}[V](){let e=false;const stop=()=>{this.pause();this.removeListener(j,stop);this.removeListener(T,stop);this.removeListener("end",stop);e=true;return{done:true}};const next=()=>{if(e)return stop();const t=this.read();return t===null?stop():{value:t}};this.once("end",stop);this.once(j,stop);this.once(T,stop);return{next:next,throw:stop,return:stop,[V](){return this}}}destroy(e){if(this[T]){if(e)this.emit("error",e);else this.emit(T);return this}this[T]=true;this[R].length=0;this[A]=0;if(typeof this.close==="function"&&!this[d])this.close();if(e)this.emit("error",e);else this.emit(T);return this}static isStream(e){return!!e&&(e instanceof Minipass||e instanceof i||e instanceof s&&(typeof e.pipe==="function"||typeof e.write==="function"&&typeof e.end==="function"))}}t.Minipass=Minipass},35154:(e,t,r)=>{const n=r(59796).constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},n))},67750:(e,t,r)=>{"use strict";const n=r(39491);const s=r(14300).Buffer;const i=r(59796);const o=t.constants=r(35154);const a=r(97413);const c=s.concat;const u=Symbol("_superWrite");class ZlibError extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code;this.errno=e.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+e.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const l=Symbol("opts");const h=Symbol("flushFlag");const p=Symbol("finishFlushFlag");const d=Symbol("fullFlushFlag");const y=Symbol("handle");const g=Symbol("onError");const v=Symbol("sawError");const b=Symbol("level");const w=Symbol("strategy");const S=Symbol("ended");const x=Symbol("_defaultFullFlush");class ZlibBase extends a{constructor(e,t){if(!e||typeof e!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[v]=false;this[S]=false;this[l]=e;this[h]=e.flush;this[p]=e.finishFlush;try{this[y]=new i[t](e)}catch(e){throw new ZlibError(e)}this[g]=e=>{if(this[v])return;this[v]=true;this.close();this.emit("error",e)};this[y].on("error",(e=>this[g](new ZlibError(e))));this.once("end",(()=>this.close))}close(){if(this[y]){this[y].close();this[y]=null;this.emit("close")}}reset(){if(!this[v]){n(this[y],"zlib binding closed");return this[y].reset()}}flush(e){if(this.ended)return;if(typeof e!=="number")e=this[d];this.write(Object.assign(s.alloc(0),{[h]:e}))}end(e,t,r){if(e)this.write(e,t);this.flush(this[p]);this[S]=true;return super.end(null,null,r)}get ended(){return this[S]}write(e,t,r){if(typeof t==="function")r=t,t="utf8";if(typeof e==="string")e=s.from(e,t);if(this[v])return;n(this[y],"zlib binding closed");const i=this[y]._handle;const o=i.close;i.close=()=>{};const a=this[y].close;this[y].close=()=>{};s.concat=e=>e;let l;try{const t=typeof e[h]==="number"?e[h]:this[h];l=this[y]._processChunk(e,t);s.concat=c}catch(e){s.concat=c;this[g](new ZlibError(e))}finally{if(this[y]){this[y]._handle=i;i.close=o;this[y].close=a;this[y].removeAllListeners("error")}}if(this[y])this[y].on("error",(e=>this[g](new ZlibError(e))));let p;if(l){if(Array.isArray(l)&&l.length>0){p=this[u](s.from(l[0]));for(let e=1;e<l.length;e++){p=this[u](l[e])}}else{p=this[u](s.from(l))}}if(r)r();return p}[u](e){return super.write(e)}}class Zlib extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.Z_NO_FLUSH;e.finishFlush=e.finishFlush||o.Z_FINISH;super(e,t);this[d]=o.Z_FULL_FLUSH;this[b]=e.level;this[w]=e.strategy}params(e,t){if(this[v])return;if(!this[y])throw new Error("cannot switch params when binding is closed");if(!this[y].params)throw new Error("not supported in this implementation");if(this[b]!==e||this[w]!==t){this.flush(o.Z_SYNC_FLUSH);n(this[y],"zlib binding closed");const r=this[y].flush;this[y].flush=(e,t)=>{this.flush(e);t()};try{this[y].params(e,t)}finally{this[y].flush=r}if(this[y]){this[b]=e;this[w]=t}}}}class Deflate extends Zlib{constructor(e){super(e,"Deflate")}}class Inflate extends Zlib{constructor(e){super(e,"Inflate")}}const O=Symbol("_portable");class Gzip extends Zlib{constructor(e){super(e,"Gzip");this[O]=e&&!!e.portable}[u](e){if(!this[O])return super[u](e);this[O]=false;e[9]=255;return super[u](e)}}class Gunzip extends Zlib{constructor(e){super(e,"Gunzip")}}class DeflateRaw extends Zlib{constructor(e){super(e,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(e){super(e,"InflateRaw")}}class Unzip extends Zlib{constructor(e){super(e,"Unzip")}}class Brotli extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.BROTLI_OPERATION_PROCESS;e.finishFlush=e.finishFlush||o.BROTLI_OPERATION_FINISH;super(e,t);this[d]=o.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(e){super(e,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(e){super(e,"BrotliDecompress")}}t.Deflate=Deflate;t.Inflate=Inflate;t.Gzip=Gzip;t.Gunzip=Gunzip;t.DeflateRaw=DeflateRaw;t.InflateRaw=InflateRaw;t.Unzip=Unzip;if(typeof i.BrotliCompress==="function"){t.BrotliCompress=BrotliCompress;t.BrotliDecompress=BrotliDecompress}else{t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},34987:(e,t,r)=>{"use strict";var n=r(61346);var s=r(39248);function mixinDeep(e,t){var r=arguments.length,n=0;while(++n<r){var i=arguments[n];if(isObject(i)){s(i,copy,e)}}return e}function copy(e,t){if(!isValidKey(t)){return}var r=this[t];if(isObject(e)&&isObject(r)){mixinDeep(r,e)}else{this[t]=e}}function isObject(e){return n(e)&&!Array.isArray(e)}function isValidKey(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}e.exports=mixinDeep},29806:(e,t,r)=>{const n=r(2288);const s=r(27637);const{mkdirpNative:i,mkdirpNativeSync:o}=r(43713);const{mkdirpManual:a,mkdirpManualSync:c}=r(62561);const{useNative:u,useNativeSync:l}=r(37449);const mkdirp=(e,t)=>{e=s(e);t=n(t);return u(t)?i(e,t):a(e,t)};const mkdirpSync=(e,t)=>{e=s(e);t=n(t);return l(t)?o(e,t):c(e,t)};mkdirp.sync=mkdirpSync;mkdirp.native=(e,t)=>i(s(e),n(t));mkdirp.manual=(e,t)=>a(s(e),n(t));mkdirp.nativeSync=(e,t)=>o(s(e),n(t));mkdirp.manualSync=(e,t)=>c(s(e),n(t));e.exports=mkdirp},45509:(e,t,r)=>{const{dirname:n}=r(71017);const findMade=(e,t,r=undefined)=>{if(r===t)return Promise.resolve();return e.statAsync(t).then((e=>e.isDirectory()?r:undefined),(r=>r.code==="ENOENT"?findMade(e,n(t),t):undefined))};const findMadeSync=(e,t,r=undefined)=>{if(r===t)return undefined;try{return e.statSync(t).isDirectory()?r:undefined}catch(r){return r.code==="ENOENT"?findMadeSync(e,n(t),t):undefined}};e.exports={findMade:findMade,findMadeSync:findMadeSync}},62561:(e,t,r)=>{const{dirname:n}=r(71017);const mkdirpManual=(e,t,r)=>{t.recursive=false;const s=n(e);if(s===e){return t.mkdirAsync(e,t).catch((e=>{if(e.code!=="EISDIR")throw e}))}return t.mkdirAsync(e,t).then((()=>r||e),(n=>{if(n.code==="ENOENT")return mkdirpManual(s,t).then((r=>mkdirpManual(e,t,r)));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return t.statAsync(e).then((e=>{if(e.isDirectory())return r;else throw n}),(()=>{throw n}))}))};const mkdirpManualSync=(e,t,r)=>{const s=n(e);t.recursive=false;if(s===e){try{return t.mkdirSync(e,t)}catch(e){if(e.code!=="EISDIR")throw e;else return}}try{t.mkdirSync(e,t);return r||e}catch(n){if(n.code==="ENOENT")return mkdirpManualSync(e,t,mkdirpManualSync(s,t,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!t.statSync(e).isDirectory())throw n}catch(e){throw n}}};e.exports={mkdirpManual:mkdirpManual,mkdirpManualSync:mkdirpManualSync}},43713:(e,t,r)=>{const{dirname:n}=r(71017);const{findMade:s,findMadeSync:i}=r(45509);const{mkdirpManual:o,mkdirpManualSync:a}=r(62561);const mkdirpNative=(e,t)=>{t.recursive=true;const r=n(e);if(r===e)return t.mkdirAsync(e,t);return s(t,e).then((r=>t.mkdirAsync(e,t).then((()=>r)).catch((r=>{if(r.code==="ENOENT")return o(e,t);else throw r}))))};const mkdirpNativeSync=(e,t)=>{t.recursive=true;const r=n(e);if(r===e)return t.mkdirSync(e,t);const s=i(t,e);try{t.mkdirSync(e,t);return s}catch(r){if(r.code==="ENOENT")return a(e,t);else throw r}};e.exports={mkdirpNative:mkdirpNative,mkdirpNativeSync:mkdirpNativeSync}},2288:(e,t,r)=>{const{promisify:n}=r(73837);const s=r(57147);const optsArg=e=>{if(!e)e={mode:511,fs:s};else if(typeof e==="object")e={mode:511,fs:s,...e};else if(typeof e==="number")e={mode:e,fs:s};else if(typeof e==="string")e={mode:parseInt(e,8),fs:s};else throw new TypeError("invalid options argument");e.mkdir=e.mkdir||e.fs.mkdir||s.mkdir;e.mkdirAsync=n(e.mkdir);e.stat=e.stat||e.fs.stat||s.stat;e.statAsync=n(e.stat);e.statSync=e.statSync||e.fs.statSync||s.statSync;e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||s.mkdirSync;return e};e.exports=optsArg},27637:(e,t,r)=>{const n=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:s,parse:i}=r(71017);const pathArg=e=>{if(/\0/.test(e)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"})}e=s(e);if(n==="win32"){const t=/[*|"<>?:]/;const{root:r}=i(e);if(t.test(e.substr(r.length))){throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}}return e};e.exports=pathArg},37449:(e,t,r)=>{const n=r(57147);const s=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const i=s.replace(/^v/,"").split(".");const o=+i[0]>10||+i[0]===10&&+i[1]>=12;const a=!o?()=>false:e=>e.mkdir===n.mkdir;const c=!o?()=>false:e=>e.mkdirSync===n.mkdirSync;e.exports={useNative:a,useNativeSync:c}},13111:e=>{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o){return}var a=parseFloat(o[1]);var c=(o[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*i;case"days":case"day":case"d":return a*s;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return undefined}}function fmtShort(e){if(e>=s){return Math.round(e/s)+"d"}if(e>=n){return Math.round(e/n)+"h"}if(e>=r){return Math.round(e/r)+"m"}if(e>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){return plural(e,s,"day")||plural(e,n,"hour")||plural(e,r,"minute")||plural(e,t,"second")||e+" ms"}function plural(e,t,r){if(e<t){return}if(e<t*1.5){return Math.floor(e/t)+" "+r}return Math.ceil(e/t)+" "+r+"s"}},69657:(e,t,r)=>{"use strict";var n=r(73837);var s=r(15912);var i=r(86735);var o=r(6676);var a=r(1957);var c=r(97666);var u=r(44955);var l=1024*64;function nanomatch(e,t,r){t=u.arrayify(t);e=u.arrayify(e);var n=t.length;if(e.length===0||n===0){return[]}if(n===1){return nanomatch.match(e,t[0],r)}var s=false;var i=[];var o=[];var a=-1;while(++a<n){var c=t[a];if(typeof c==="string"&&c.charCodeAt(0)===33){i.push.apply(i,nanomatch.match(e,c.slice(1),r));s=true}else{o.push.apply(o,nanomatch.match(e,c,r))}}if(s&&o.length===0){if(r&&r.unixify===false){o=e.slice()}else{var l=u.unixify(r);for(var h=0;h<e.length;h++){o.push(l(e[h]))}}}var p=u.diff(o,i);if(!r||r.nodupes!==false){return u.unique(p)}return p}nanomatch.match=function(e,t,r){if(Array.isArray(t)){throw new TypeError("expected pattern to be a string")}var n=u.unixify(r);var s=memoize("match",t,r,nanomatch.matcher);var i=[];e=u.arrayify(e);var o=e.length;var a=-1;while(++a<o){var c=e[a];if(c===t||s(c)){i.push(u.value(c,n,r))}}if(typeof r==="undefined"){return u.unique(i)}if(i.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[r.unescape?u.unescape(t):t]}}if(r.ignore){i=nanomatch.not(i,r.ignore,r)}return r.nodupes!==false?u.unique(i):i};nanomatch.isMatch=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(u.isEmptyString(e)||u.isEmptyString(t)){return false}var s=u.equalsPattern(r);if(s(e)){return true}var i=memoize("isMatch",t,r,nanomatch.matcher);return i(e)};nanomatch.some=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(nanomatch(e[n],t,r).length===1){return true}}return false};nanomatch.every=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(nanomatch(e[n],t,r).length!==1){return false}}return true};nanomatch.any=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(u.isEmptyString(e)||u.isEmptyString(t)){return false}if(typeof t==="string"){t=[t]}for(var s=0;s<t.length;s++){if(nanomatch.isMatch(e,t[s],r)){return true}}return false};nanomatch.all=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){t=[t]}for(var s=0;s<t.length;s++){if(!nanomatch.isMatch(e,t[s],r)){return false}}return true};nanomatch.not=function(e,t,r){var n=i({},r);var s=n.ignore;delete n.ignore;e=u.arrayify(e);var o=u.diff(e,nanomatch(e,t,n));if(s){o=u.diff(o,nanomatch(e,s))}return n.nodupes!==false?u.unique(o):o};nanomatch.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){if(u.isEmptyString(e)||u.isEmptyString(t)){return false}var s=u.equalsPattern(t,r);if(s(e)){return true}var o=u.containsPattern(t,r);if(o(e)){return true}}var a=i({},r,{contains:true});return nanomatch.any(e,t,a)};nanomatch.matchBase=function(e,t){if(e&&e.indexOf("/")!==-1||!t)return false;return t.basename===true||t.matchBase===true};nanomatch.matchKeys=function(e,t,r){if(!u.isObject(e)){throw new TypeError("expected the first argument to be an object")}var n=nanomatch(Object.keys(e),t,r);return u.pick(e,n)};nanomatch.matcher=function matcher(e,t){if(u.isEmptyString(e)){return function(){return false}}if(Array.isArray(e)){return compose(e,t,matcher)}if(e instanceof RegExp){return test(e)}if(!u.isString(e)){throw new TypeError("expected pattern to be an array, string or regex")}if(!u.hasSpecialChars(e)){if(t&&t.nocase===true){e=e.toLowerCase()}return u.matchPath(e,t)}var r=nanomatch.makeRe(e,t);if(nanomatch.matchBase(e,t)){return u.matchBasename(r,t)}function test(e){var r=u.equalsPattern(t);var n=u.unixify(t);return function(t){if(r(t)){return true}if(e.test(n(t))){return true}return false}}var n=test(r);u.define(n,"result",r.result);return n};nanomatch.capture=function(e,t,r){var n=nanomatch.makeRe(e,i({capture:true},r));var s=u.unixify(r);function match(){return function(e){var t=n.exec(s(e));if(!t){return null}return t.slice(1)}}var o=memoize("capture",e,r,match);return o(t)};nanomatch.makeRe=function(e,t){if(e instanceof RegExp){return e}if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>l){throw new Error("expected pattern to be less than "+l+" characters")}function makeRe(){var r=u.extend({wrap:false},t);var n=nanomatch.create(e,r);var i=s(n.output,r);u.define(i,"result",n);return i}return memoize("makeRe",e,t,makeRe)};nanomatch.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function create(){return nanomatch.compile(nanomatch.parse(e,t),t)}return memoize("create",e,t,create)};nanomatch.parse=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function parse(){var r=u.instantiate(null,t);a(r,t);var n=r.parse(e,t);u.define(n,"snapdragon",r);n.input=e;return n}return memoize("parse",e,t,parse)};nanomatch.compile=function(e,t){if(typeof e==="string"){e=nanomatch.parse(e,t)}function compile(){var r=u.instantiate(e,t);o(r,t);return r.compile(e,t)}return memoize("compile",e.input,t,compile)};nanomatch.clearCache=function(){nanomatch.cache.__data__={}};function compose(e,t,r){var n;return memoize("compose",String(e),t,(function(){return function(s){if(!n){n=[];for(var i=0;i<e.length;i++){n.push(r(e[i],t))}}var o=n.length;while(o--){if(n[o](s)===true){return true}}return false}}))}function memoize(e,t,r,n){var s=u.createKey(e+"="+t,r);if(r&&r.cache===false){return n(t,r)}if(c.has(e,s)){return c.get(e,s)}var i=n(t,r);c.set(e,s,i);return i}nanomatch.compilers=o;nanomatch.parsers=a;nanomatch.cache=c;e.exports=nanomatch},97666:(e,t,r)=>{e.exports=new(r(32172))},6676:e=>{"use strict";e.exports=function(e,t){function slash(){if(t&&typeof t.slash==="string"){return t.slash}if(t&&typeof t.slash==="function"){return t.slash.call(e)}return"\\\\/"}function star(){if(t&&typeof t.star==="string"){return t.star}if(t&&typeof t.star==="function"){return t.star.call(e)}return"[^"+slash()+"]*?"}var r=e.ast=e.parser.ast;r.state=e.parser.state;e.compiler.state=r.state;e.compiler.set("not",(function(e){var t=this.prev();if(this.options.nonegate===true||t.type!=="bos"){return this.emit("\\"+e.val,e)}return this.emit(e.val,e)})).set("escape",(function(e){if(this.options.unescape&&/^[-\w_.]/.test(e.val)){return this.emit(e.val,e)}return this.emit("\\"+e.val,e)})).set("quoted",(function(e){return this.emit(e.val,e)})).set("dollar",(function(e){if(e.parent.type==="bracket"){return this.emit(e.val,e)}return this.emit("\\"+e.val,e)})).set("dot",(function(e){if(e.dotfiles===true)this.dotfiles=true;return this.emit("\\"+e.val,e)})).set("backslash",(function(e){return this.emit(e.val,e)})).set("slash",(function(e,t,r){var n="["+slash()+"]";var s=e.parent;var i=this.prev();while(s.type==="paren"&&!s.hasSlash){s.hasSlash=true;s=s.parent}if(i.addQmark){n+="?"}if(e.rest.slice(0,2)==="\\b"){return this.emit(n,e)}if(e.parsed==="**"||e.parsed==="./**"){this.output="(?:"+this.output;return this.emit(n+")?",e)}if(e.parsed==="!**"&&this.options.nonegate!==true){return this.emit(n+"?\\b",e)}return this.emit(n,e)})).set("bracket",(function(e){var t=e.close;var r=!e.escaped?"[":"\\[";var n=e.negated;var s=e.inner;var i=e.val;if(e.escaped===true){s=s.replace(/\\?(\W)/g,"\\$1");n=""}if(s==="]-"){s="\\]\\-"}if(n&&s.indexOf(".")===-1){s+="."}if(n&&s.indexOf("/")===-1){s+="/"}i=r+n+s+t;return this.emit(i,e)})).set("square",(function(e){var t=(/^\W/.test(e.val)?"\\":"")+e.val;return this.emit(t,e)})).set("qmark",(function(e){var t=this.prev();var r="[^.\\\\/]";if(this.options.dot||t.type!=="bos"&&t.type!=="slash"){r="[^\\\\/]"}if(e.parsed.slice(-1)==="("){var n=e.rest.charAt(0);if(n==="!"||n==="="||n===":"){return this.emit(e.val,e)}}if(e.val.length>1){r+="{"+e.val.length+"}"}return this.emit(r,e)})).set("plus",(function(e){var t=e.parsed.slice(-1);if(t==="]"||t===")"){return this.emit(e.val,e)}if(!this.output||/[?*+]/.test(r)&&e.parent.type!=="bracket"){return this.emit("\\+",e)}var r=this.output.slice(-1);if(/\w/.test(r)&&!e.inside){return this.emit("+\\+?",e)}return this.emit("+",e)})).set("globstar",(function(e,t,r){if(!this.output){this.state.leadingGlobstar=true}var n=this.prev();var s=this.prev(2);var i=this.next();var o=this.next(2);var a=n.type;var c=e.val;if(n.type==="slash"&&i.type==="slash"){if(s.type==="text"){this.output+="?";if(o.type!=="text"){this.output+="\\b"}}}var u=e.parsed;if(u.charAt(0)==="!"){u=u.slice(1)}var l=e.isInside.paren||e.isInside.brace;if(u&&a!=="slash"&&a!=="bos"&&!l){c=star()}else{c=this.options.dot!==true?"(?:(?!(?:["+slash()+"]|^)\\.).)*?":"(?:(?!(?:["+slash()+"]|^)(?:\\.{1,2})($|["+slash()+"]))(?!\\.{2}).)*?"}if((a==="slash"||a==="bos")&&this.options.dot!==true){c="(?!\\.)"+c}if(n.type==="slash"&&i.type==="slash"&&s.type!=="text"){if(o.type==="text"||o.type==="star"){e.addQmark=true}}if(this.options.capture){c="("+c+")"}return this.emit(c,e)})).set("star",(function(e,t,r){var n=t[r-2]||{};var s=this.prev();var i=this.next();var o=s.type;function isStart(e){return e.type==="bos"||e.type==="slash"}if(this.output===""&&this.options.contains!==true){this.output="(?!["+slash()+"])"}if(o==="bracket"&&this.options.bash===false){var a=i&&i.type==="bracket"?star():"*?";if(!s.nodes||s.nodes[1].type!=="posix"){return this.emit(a,e)}}var c=!this.dotfiles&&o!=="text"&&o!=="escape"?this.options.dot?"(?!(?:^|["+slash()+"])\\.{1,2}(?:$|["+slash()+"]))":"(?!\\.)":"";if(isStart(s)||isStart(n)&&o==="not"){if(c!=="(?!\\.)"){c+="(?!(\\.{2}|\\.["+slash()+"]))(?=.)"}else{c+="(?=.)"}}else if(c==="(?!\\.)"){c=""}if(s.type==="not"&&n.type==="bos"&&this.options.dot===true){this.output="(?!\\.)"+this.output}var u=c+star();if(this.options.capture){u="("+u+")"}return this.emit(u,e)})).set("text",(function(e){return this.emit(e.val,e)})).set("eos",(function(e){var t=this.prev();var r=e.val;this.output="(?:\\.["+slash()+"](?=.))?"+this.output;if(this.state.metachar&&t.type!=="qmark"&&t.type!=="slash"){r+=this.options.contains?"["+slash()+"]?":"(?:["+slash()+"]|$)"}return this.emit(r,e)}));if(t&&typeof t.compilers==="function"){t.compilers(e.compiler)}}},1957:(e,t,r)=>{"use strict";var n=r(19157);var s=r(15912);var i;var o="[\\[!*+?$^\"'.\\\\/]+";var a=createTextRegex(o);e.exports=function(e,t){var r=e.parser;var n=r.options;r.state={slashes:0,paths:[]};r.ast.state=r.state;r.capture("prefix",(function(){if(this.parsed)return;var e=this.match(/^\.[\\/]/);if(!e)return;this.state.strictOpen=!!this.options.strictOpen;this.state.addPrefix=true})).capture("escape",(function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(/^(?:\\(.)|([$^]))/);if(!t)return;return e({type:"escape",val:t[2]||t[1]})})).capture("quoted",(function(){var e=this.position();var t=this.match(/^["']/);if(!t)return;var r=t[0];if(this.input.indexOf(r)===-1){return e({type:"escape",val:r})}var n=advanceTo(this.input,r);this.consume(n.len);return e({type:"quoted",val:n.esc})})).capture("not",(function(){var e=this.parsed;var t=this.position();var r=this.match(this.notRegex||/^!+/);if(!r)return;var n=r[0];var s=n.length%2===1;if(e===""&&!s){n=""}if(e===""&&s&&this.options.nonegate!==true){this.bos.val="(?!^(?:";this.append=")$).*";n=""}return t({type:"not",val:n})})).capture("dot",(function(){var e=this.parsed;var t=this.position();var r=this.match(/^\.+/);if(!r)return;var n=r[0];this.state.dot=n==="."&&(e===""||e.slice(-1)==="/");return t({type:"dot",dotfiles:this.state.dot,val:n})})).capture("plus",/^\+(?!\()/).capture("qmark",(function(){var e=this.parsed;var t=this.position();var r=this.match(/^\?+(?!\()/);if(!r)return;this.state.metachar=true;this.state.qmark=true;return t({type:"qmark",parsed:e,val:r[0]})})).capture("globstar",(function(){var e=this.parsed;var t=this.position();var r=this.match(/^\*{2}(?![*(])(?=[,)/]|$)/);if(!r)return;var s=n.noglobstar!==true?"globstar":"star";var i=t({type:s,parsed:e});this.state.metachar=true;while(this.input.slice(0,4)==="/**/"){this.input=this.input.slice(3)}i.isInside={brace:this.isInside("brace"),paren:this.isInside("paren")};if(s==="globstar"){this.state.globstar=true;i.val="**"}else{this.state.star=true;i.val="*"}return i})).capture("star",(function(){var e=this.position();var t=/^(?:\*(?![*(])|[*]{3,}(?!\()|[*]{2}(?![(/]|$)|\*(?=\*\())/;var r=this.match(t);if(!r)return;this.state.metachar=true;this.state.star=true;return e({type:"star",val:r[0]})})).capture("slash",(function(){var e=this.position();var t=this.match(/^\//);if(!t)return;this.state.slashes++;return e({type:"slash",val:t[0]})})).capture("backslash",(function(){var e=this.position();var t=this.match(/^\\(?![*+?(){}[\]'"])/);if(!t)return;var r=t[0];if(this.isInside("bracket")){r="\\"}else if(r.length>1){r="\\\\"}return e({type:"backslash",val:r})})).capture("square",(function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(/^\[([^!^\\])\]/);if(!t)return;return e({type:"square",val:t[1]})})).capture("bracket",(function(){var e=this.position();var t=this.match(/^(?:\[([!^]?)([^\]]+|\]-)(\]|[^*+?]+)|\[)/);if(!t)return;var r=t[0];var n=t[1]?"^":"";var s=(t[2]||"").replace(/\\\\+/,"\\\\");var i=t[3]||"";if(t[2]&&s.length<t[2].length){r=r.replace(/\\\\+/,"\\\\")}var o=this.input.slice(0,2);if(s===""&&o==="\\]"){s+=o;this.consume(2);var a=this.input;var c=-1;var u;while(u=a[++c]){this.consume(1);if(u==="]"){i=u;break}s+=u}}return e({type:"bracket",val:r,escaped:i!=="]",negated:n,inner:s,close:i})})).capture("text",(function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(a);if(!t||!t[0])return;return e({type:"text",val:t[0]})}));if(t&&typeof t.parsers==="function"){t.parsers(e.parser)}};function advanceTo(e,t){var r=e.charAt(0);var n={len:1,val:"",esc:""};var s=0;function advance(){if(r!=="\\"){n.esc+="\\"+r;n.val+=r}r=e.charAt(++s);n.len++;if(r==="\\"){advance();advance()}}while(r&&r!==t){advance()}return n}function createTextRegex(e){if(i)return i;var t={contains:true,strictClose:false};var r=n.create(e,t);var o=s("^(?:[*]\\((?=.)|"+r+")",t);return i=o}e.exports.not=o},44955:(e,t,r)=>{"use strict";var n=e.exports;var s=r(71017);var i=r(60314)();var o=r(30267);n.define=r(11945);n.diff=r(44130);n.extend=r(86735);n.pick=r(56058);n.typeOf=r(44824);n.unique=r(89424);n.isEmptyString=function(e){return String(e)===""||String(e)==="./"};n.isWindows=function(){return s.sep==="\\"||i===true};n.last=function(e,t){return e[e.length-(t||1)]};n.instantiate=function(e,t){var r;if(n.typeOf(e)==="object"&&e.snapdragon){r=e.snapdragon}else if(n.typeOf(t)==="object"&&t.snapdragon){r=t.snapdragon}else{r=new o(t)}n.define(r,"parse",(function(e,t){var r=o.prototype.parse.call(this,e,t);r.input=e;var s=this.parser.stack.pop();if(s&&this.options.strictErrors!==true){var i=s.nodes[0];var a=s.nodes[1];if(s.type==="bracket"){if(a.val.charAt(0)==="["){a.val="\\"+a.val}}else{i.val="\\"+i.val;var c=i.parent.nodes[1];if(c.type==="star"){c.loose=true}}}n.define(r,"parser",this.parser);return r}));return r};n.createKey=function(e,t){if(typeof t==="undefined"){return e}var r=e;for(var n in t){if(t.hasOwnProperty(n)){r+=";"+n+"="+String(t[n])}}return r};n.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};n.isString=function(e){return typeof e==="string"};n.isRegex=function(e){return n.typeOf(e)==="regexp"};n.isObject=function(e){return n.typeOf(e)==="object"};n.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\/\s]/g,"\\$&")};n.combineDupes=function(e,t){t=n.arrayify(t).join("|").split("|");t=t.map((function(e){return e.replace(/\\?([+*\\/])/g,"\\$1")}));var r=t.join("|");var s=new RegExp("("+r+")(?=\\1)","g");return e.replace(s,"")};n.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|[\]{}]|[+@]\()/.test(e)};n.toPosixPath=function(e){return e.replace(/\\+/g,"/")};n.unescape=function(e){return n.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))};n.stripDrive=function(e){return n.isWindows()?e.replace(/^[a-z]:[\\/]+?/i,"/"):e};n.stripPrefix=function(e){if(e.charAt(0)==="."&&(e.charAt(1)==="/"||e.charAt(1)==="\\")){return e.slice(2)}return e};n.isSimpleChar=function(e){return e.trim()===""||e==="."};n.isSlash=function(e){return e==="/"||e==="\\/"||e==="\\"||e==="\\\\"};n.matchPath=function(e,t){return t&&t.contains?n.containsPattern(e,t):n.equalsPattern(e,t)};n._equals=function(e,t,r){return r===e||r===t};n._contains=function(e,t,r){return e.indexOf(r)!==-1||t.indexOf(r)!==-1};n.equalsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function fn(s){var i=n._equals(s,r(s),e);if(i===true||t.nocase!==true){return i}var o=s.toLowerCase();return n._equals(o,r(o),e)}};n.containsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function(s){var i=n._contains(s,r(s),e);if(i===true||t.nocase!==true){return i}var o=s.toLowerCase();return n._contains(o,r(o),e)}};n.matchBasename=function(e){return function(t){return e.test(t)||e.test(s.basename(t))}};n.identity=function(e){return e};n.value=function(e,t,r){if(r&&r.unixify===false){return e}if(r&&typeof r.unixify==="function"){return r.unixify(e)}return t(e)};n.unixify=function(e){var t=e||{};return function(e){if(t.stripPrefix!==false){e=n.stripPrefix(e)}if(t.unescape===true){e=n.unescape(e)}if(t.unixify===true||n.isWindows()){e=n.toPosixPath(e)}return e}}},93134:(e,t,r)=>{var n=r(73837).inherits;var NestedError=function(e,t){this.nested=t;if(e instanceof Error){t=e}else if(typeof e!=="undefined"){Object.defineProperty(this,"message",{value:e,writable:true,enumerable:false,configurable:true})}Error.captureStackTrace(this,this.constructor);var r=Object.getOwnPropertyDescriptor(this,"stack");var n=buildStackDescriptor(r,t);Object.defineProperty(this,"stack",n)};function buildStackDescriptor(e,t){if(e.get){return{get:function(){var t=e.get.call(this);return buildCombinedStacks(t,this.nested)}}}else{var r=e.value;return{value:buildCombinedStacks(r,t)}}}function buildCombinedStacks(e,t){if(t){e+="\nCaused By: "+t.stack}return e}n(NestedError,Error);NestedError.prototype.name="NestedError";e.exports=NestedError},16726:e=>{"use strict";e.exports=function(e){try{return e()}catch(e){}}},89718:(e,t,r)=>{"use strict";const n=typeof URL==="undefined"?r(57310).URL:URL;const s="text/plain";const i="us-ascii";const testParameter=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e));const normalizeDataURL=(e,{stripHash:t})=>{const r=e.match(/^data:(.*?),(.*?)(?:#(.*))?$/);if(!r){throw new Error(`Invalid URL: ${e}`)}const n=r[1].split(";");const o=r[2];const a=t?"":r[3];let c=false;if(n[n.length-1]==="base64"){n.pop();c=true}const u=(n.shift()||"").toLowerCase();const l=n.map((e=>{let[t,r=""]=e.split("=").map((e=>e.trim()));if(t==="charset"){r=r.toLowerCase();if(r===i){return""}}return`${t}${r?`=${r}`:""}`})).filter(Boolean);const h=[...l];if(c){h.push("base64")}if(h.length!==0||u&&u!==s){h.unshift(u)}return`data:${h.join(";")},${c?o.trim():o}${a?`#${a}`:""}`};const normalizeUrl=(e,t)=>{t={defaultProtocol:"http:",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeDirectoryIndex:false,sortQueryParameters:true,...t};if(Reflect.has(t,"normalizeHttps")){throw new Error("options.normalizeHttps is renamed to options.forceHttp")}if(Reflect.has(t,"normalizeHttp")){throw new Error("options.normalizeHttp is renamed to options.forceHttps")}if(Reflect.has(t,"stripFragment")){throw new Error("options.stripFragment is renamed to options.stripHash")}e=e.trim();if(/^data:/i.test(e)){return normalizeDataURL(e,t)}const r=e.startsWith("//");const s=!r&&/^\.*\//.test(e);if(!s){e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol)}const i=new n(e);if(t.forceHttp&&t.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(t.forceHttp&&i.protocol==="https:"){i.protocol="http:"}if(t.forceHttps&&i.protocol==="http:"){i.protocol="https:"}if(t.stripAuthentication){i.username="";i.password=""}if(t.stripHash){i.hash=""}if(i.pathname){i.pathname=i.pathname.replace(/((?!:).|^)\/{2,}/g,((e,t)=>{if(/^(?!\/)/g.test(t)){return`${t}/`}return"/"}))}if(i.pathname){i.pathname=decodeURI(i.pathname)}if(t.removeDirectoryIndex===true){t.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=i.pathname.split("/");const r=e[e.length-1];if(testParameter(r,t.removeDirectoryIndex)){e=e.slice(0,e.length-1);i.pathname=e.slice(1).join("/")+"/"}}if(i.hostname){i.hostname=i.hostname.replace(/\.$/,"");if(t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(i.hostname)){i.hostname=i.hostname.replace(/^www\./,"")}}if(Array.isArray(t.removeQueryParameters)){for(const e of[...i.searchParams.keys()]){if(testParameter(e,t.removeQueryParameters)){i.searchParams.delete(e)}}}if(t.sortQueryParameters){i.searchParams.sort()}if(t.removeTrailingSlash){i.pathname=i.pathname.replace(/\/$/,"")}e=i.toString();if((t.removeTrailingSlash||i.pathname==="/")&&i.hash===""){e=e.replace(/\/$/,"")}if(r&&!t.normalizeProtocol){e=e.replace(/^http:\/\//,"//")}if(t.stripProtocol){e=e.replace(/^(?:https?:)?\/\//,"")}return e};e.exports=normalizeUrl;e.exports["default"]=normalizeUrl},69438:(e,t,r)=>{"use strict";var n=r(91);var s=r(9440);var i=r(80922);function copy(e,t,r){if(!isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=nativeKeys(t);var o=Object.keys(t);var a=n.length;r=arrayify(r);while(a--){var c=n[a];if(has(o,c)){i(e,c,t[c])}else if(!(c in e)&&!has(r,c)){s(e,t,c)}}}function isObject(e){return n(e)==="object"||typeof e==="function"}function has(e,t){t=arrayify(t);var r=t.length;if(isObject(e)){for(var n in e){if(t.indexOf(n)>-1){return true}}var s=nativeKeys(e);return has(s,t)}if(Array.isArray(e)){var i=e;while(r--){if(i.indexOf(t[r])>-1){return true}}return false}throw new TypeError("expected an array or object.")}function arrayify(e){return e?Array.isArray(e)?e:[e]:[]}function hasConstructor(e){return isObject(e)&&typeof e.constructor!=="undefined"}function nativeKeys(e){if(!hasConstructor(e))return[];return Object.getOwnPropertyNames(e)}e.exports=copy;e.exports.has=has},95291:(e,t,r)=>{"use strict";
251
251
  /*!
252
252
  * object-visit <https://github.com/jonschlinkert/object-visit>
253
253
  *
@@ -266,7 +266,7 @@ var n=r(19999);var s={"{":"}","(":")","[":"]"};var strictCheck=function(e){if(e[
266
266
  * Copyright (c) 2015, Jon Schlinkert.
267
267
  * Licensed under the MIT License.
268
268
  */
269
- function pascalcase(e){if(typeof e!=="string"){throw new TypeError("expected a string.")}e=e.replace(/([A-Z])/g," $1");if(e.length===1){return e.toUpperCase()}e=e.replace(/^[\W_]+|[\W_]+$/g,"").toLowerCase();e=e.charAt(0).toUpperCase()+e.slice(1);return e.replace(/[\W_]+(\w|$)/g,(function(e,t){return t.toUpperCase()}))}e.exports=pascalcase},81555:(e,t,r)=>{"use strict";var n=r(71017);var s=r(73837).inspect;function assertPath(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+s(e))}}function posix(e){assertPath(e);if(e.length===0)return".";var t=e.charCodeAt(0);var r=t===47;var n=-1;var s=true;for(var i=e.length-1;i>=1;--i){t=e.charCodeAt(i);if(t===47){if(!s){n=i;break}}else{s=false}}if(n===-1)return r?"/":".";if(r&&n===1)return"//";return e.slice(0,n)}function win32(e){assertPath(e);var t=e.length;if(t===0)return".";var r=-1;var n=-1;var s=true;var i=0;var o=e.charCodeAt(0);if(t>1){if(o===47||o===92){r=i=1;o=e.charCodeAt(1);if(o===47||o===92){var a=2;var c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o===47||o===92)break}if(a<t&&a!==c){c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o!==47&&o!==92)break}if(a<t&&a!==c){c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o===47||o===92)break}if(a===t){return e}if(a!==c){r=i=a+1}}}}}else if(o>=65&&o<=90||o>=97&&o<=122){o=e.charCodeAt(1);if(e.charCodeAt(1)===58){r=i=2;if(t>2){o=e.charCodeAt(2);if(o===47||o===92)r=i=3}}}}else if(o===47||o===92){return e[0]}for(var u=t-1;u>=i;--u){o=e.charCodeAt(u);if(o===47||o===92){if(!s){n=u;break}}else{s=false}}if(n===-1){if(r===-1)return".";else n=r}return e.slice(0,n)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},43883:(e,t,r)=>{"use strict";const n=r(57147);e.exports=e=>new Promise((t=>{n.access(e,(e=>{t(!e)}))}));e.exports.sync=e=>{try{n.accessSync(e);return true}catch(e){return false}}},26230:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var s=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||s)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},4838:e=>{"use strict";e.exports=e=>{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find((e=>e.toUpperCase()==="PATH"))||"Path"}},28435:(e,t,r)=>{"use strict";const n=r(57147);const s=r(76024);function type(e,t,r){if(typeof r!=="string"){return Promise.reject(new TypeError(`Expected a string, got ${typeof r}`))}return s(n[e])(r).then((e=>e[t]())).catch((e=>{if(e.code==="ENOENT"){return false}throw e}))}function typeSync(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{return n[e](r)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.file=type.bind(null,"stat","isFile");t.dir=type.bind(null,"stat","isDirectory");t.symlink=type.bind(null,"lstat","isSymbolicLink");t.fileSync=typeSync.bind(null,"statSync","isFile");t.dirSync=typeSync.bind(null,"statSync","isDirectory");t.symlinkSync=typeSync.bind(null,"lstatSync","isSymbolicLink")},76024:e=>{"use strict";const processFn=(e,t)=>function(){const r=t.promiseModule;const n=new Array(arguments.length);for(let e=0;e<arguments.length;e++){n[e]=arguments[e]}return new r(((r,s)=>{if(t.errorFirst){n.push((function(e,n){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e<arguments.length;e++){t[e-1]=arguments[e]}if(e){t.unshift(e);s(t)}else{r(t)}}else if(e){s(e)}else{r(n)}}))}else{n.push((function(e){if(t.multiArgs){const e=new Array(arguments.length-1);for(let t=0;t<arguments.length;t++){e[t]=arguments[t]}r(e)}else{r(e)}}))}e.apply(this,n)}))};e.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let r;if(typeof e==="function"){r=function(){if(t.excludeMain){return e.apply(this,arguments)}return processFn(e,t).apply(this,arguments)}}else{r=Object.create(Object.getPrototypeOf(e))}for(const n in e){const s=e[n];r[n]=typeof s==="function"&&filter(n)?processFn(s,t):s}return r}},43530:e=>{"use strict";const processFn=(e,t)=>function(...r){const n=t.promiseModule;return new n(((n,s)=>{if(t.multiArgs){r.push(((...e)=>{if(t.errorFirst){if(e[0]){s(e)}else{e.shift();n(e)}}else{n(e)}}))}else if(t.errorFirst){r.push(((e,t)=>{if(e){s(e)}else{n(t)}}))}else{r.push(n)}e.apply(this,r)}))};e.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const r=typeof e;if(!(e!==null&&(r==="object"||r==="function"))){throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":r}\``)}const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let n;if(r==="function"){n=function(...r){return t.excludeMain?e(...r):processFn(e,t).apply(this,r)}}else{n=Object.create(Object.getPrototypeOf(e))}for(const r in e){const s=e[r];n[r]=typeof s==="function"&&filter(r)?processFn(s,t):s}return n}},20990:(e,t,r)=>{"use strict";const n=r(17517);e.exports=async({cwd:e}={})=>n("package.json",{cwd:e});e.exports.sync=({cwd:e}={})=>n.sync("package.json",{cwd:e})},93713:e=>{"use strict";e.exports={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"}},58272:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:n}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((t,r)=>r>e&&t instanceof DatePart))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find(((e,r)=>r>t&&e instanceof DatePart))}toString(){return String(this.date)}}e.exports=DatePart},45236:(e,t,r)=>{"use strict";const n=r(58272);const pos=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+pos(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},68507:(e,t,r)=>{"use strict";const n=r(58272);class Hours extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},81442:(e,t,r)=>{"use strict";e.exports={DatePart:r(58272),Meridiem:r(23402),Day:r(45236),Hours:r(68507),Milliseconds:r(24055),Minutes:r(72859),Month:r(17436),Seconds:r(95847),Year:r(92751)}},23402:(e,t,r)=>{"use strict";const n=r(58272);class Meridiem extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}e.exports=Meridiem},24055:(e,t,r)=>{"use strict";const n=r(58272);class Milliseconds extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}e.exports=Milliseconds},72859:(e,t,r)=>{"use strict";const n=r(58272);class Minutes extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Minutes},17436:(e,t,r)=>{"use strict";const n=r(58272);class Month extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1;this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},95847:(e,t,r)=>{"use strict";const n=r(58272);class Seconds extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Seconds},92751:(e,t,r)=>{"use strict";const n=r(58272);class Year extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}}e.exports=Year},93475:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,s,i,o){try{var a=e[i](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,s)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(77836);const s=r(94632);const i=r(74577),o=i.cursor;const a=r(70669),c=a.style,u=a.clear,l=a.figures,h=a.strip;const getVal=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const getTitle=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const getIndex=(e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:undefined};class AutocompletePrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:getIndex(e.choices,e.initial);this.select=this.initial||e.cursor||0;this.fallback=e.fallback||(e.initial!==undefined?`${l.pointerSmall} ${getTitle(this.choices,this.initial)}`:`${l.pointerSmall} ${e.noMatches||"no matches found"}`);this.suggestions=[[]];this.page=0;this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=c.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=u("");this.complete(this.render);this.render()}moveSelect(e){this.select=e;if(this.suggestions[this.page].length>0){this.value=getVal(this.suggestions[this.page],e)}else{this.value=this.initial!==undefined?getVal(this.choices,this.initial):null}this.fire()}complete(e){var t=this;return _asyncToGenerator((function*(){const r=t.completing=t.suggest(t.input,t.choices);const n=yield r;if(t.completing!==r)return;t.suggestions=n.map(((e,t,r)=>({title:getTitle(r,t),value:getVal(r,t)}))).reduce(((e,r)=>{if(e[e.length-1].length<t.limit)e[e.length-1].push(r);else e.push([r]);return e}),[[]]);t.isFallback=false;t.completing=false;if(!t.suggestions[t.page])t.page=0;if(!t.suggestions.length&&t.fallback){const e=getIndex(t.choices,t.fallback);t.suggestions=[[]];if(e!==undefined)t.suggestions[0].push({title:getTitle(t.choices,e),value:getVal(t.choices,e)});t.isFallback=true}const s=Math.max(n.length-1,0);t.moveSelect(Math.min(s,t.select));e&&e()}))()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){let r=this.input.slice(0,this.cursor);let n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`;this.cursor=r.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions[this.page].length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions[this.page].length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions[this.page].length-1){this.page=(this.page+1)%this.suggestions.length;this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){if(this.page>=this.suggestions.length-1)return this.bell();this.page++;this.moveSelect(0);this.render()}prevPage(){if(this.page<=0)return this.bell();this.page--;this.moveSelect(0);this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}render(){if(this.closed)return;super.render();if(this.lineCount)this.out.write(o.down(this.lineCount));let e=n.bold(`${c.symbol(this.done,this.aborted)} ${this.msg} `)+`${c.delimiter(this.completing)} `;let t=h(e).length;if(this.done&&this.suggestions[this.page][this.select]){e+=`${this.suggestions[this.page][this.select].title}`}else{this.rendered=`${this.transform.render(this.input)}`;t+=this.rendered.length;e+=this.rendered}if(!this.done){this.lineCount=this.suggestions[this.page].length;let t=this.suggestions[this.page].reduce(((e,t,r)=>e+`\n${r===this.select?n.cyan(t.title):t.title}`),"");if(t&&!this.isFallback){e+=t;if(this.suggestions.length>1){this.lineCount++;e+=n.blue(`\nPage ${this.page+1}/${this.suggestions.length}`)}}else{const t=getIndex(this.choices,this.fallback);const r=t!==undefined?getTitle(this.choices,t):this.fallback;e+=`\n${n.gray(r)}`;this.lineCount++}}this.out.write(this.clear+e);this.clear=u(e);if(this.lineCount&&!this.done){let e=o.up(this.lineCount);e+=o.left+o.to(t);e+=o.move(-this.rendered.length+this.cursor*this.scale);this.out.write(e)}}}e.exports=AutocompletePrompt},68819:(e,t,r)=>{"use strict";const n=r(77836);const s=r(74577),i=s.cursor;const o=r(98056);const a=r(70669),c=a.clear,u=a.style,l=a.figures;class AutocompleteMultiselectPrompt extends o{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=c("");this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){return`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n `}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let s;if(t.disabled)s=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else s=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(l.radioOn):l.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=c(e)}}e.exports=AutocompleteMultiselectPrompt},95376:(e,t,r)=>{"use strict";const n=r(77836);const s=r(94632);const i=r(70669),o=i.style;const a=r(74577),c=a.erase,u=a.cursor;class ConfirmPrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.value=e.initial;this.initialValue=!!e.initial;this.yesMsg=e.yes||"yes";this.yesOption=e.yesOption||"(Y/n)";this.noMsg=e.no||"no";this.noOption=e.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();this.out.write(c.line+u.to(0)+[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "))}}e.exports=ConfirmPrompt},41300:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,s,i,o){try{var a=e[i](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,s)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(77836);const s=r(94632);const i=r(70669),o=i.style,a=i.clear,c=i.figures,u=i.strip;const l=r(74577),h=l.erase,p=l.cursor;const d=r(81442),y=d.DatePart,g=d.Meridiem,v=d.Day,b=d.Hours,w=d.Milliseconds,S=d.Minutes,x=d.Month,O=d.Seconds,R=d.Year;const k=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const A={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new v(e),3:e=>new x(e),4:e=>new R(e),5:e=>new g(e),6:e=>new b(e),7:e=>new S(e),8:e=>new O(e),9:e=>new w(e)};const C={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(C,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=a("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=k.exec(e)){let e=t.shift();let r=t.findIndex((e=>e!=null));this.parts.push(r in A?A[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e}),[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof y)));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t==="string"){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){yield e.validate();if(e.error){e.color="red";e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()}))()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof y)));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(p.hide);else this.out.write(h.lines(1));super.render();let e=h.line+(this.lines?h.down(this.lines):"")+p.to(0);this.lines=0;let t="";if(this.error){let e=this.errorMsg.split("\n");t=e.reduce(((e,t,r)=>e+`\n${r?` `:c.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(false),this.parts.reduce(((e,t,r)=>e.concat(r===this.cursor&&!this.done?n.cyan().underline(t.toString()):t)),[]).join("")].join(" ");let s="";if(this.lines){s+=p.up(this.lines);s+=p.left+p.to(u(r).length)}this.out.write(e+r+t+s)}}e.exports=DatePrompt},75960:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(94665),SelectPrompt:r(48744),TogglePrompt:r(43666),DatePrompt:r(41300),NumberPrompt:r(26544),MultiselectPrompt:r(98056),AutocompletePrompt:r(93475),AutocompleteMultiselectPrompt:r(68819),ConfirmPrompt:r(95376)}},98056:(e,t,r)=>{"use strict";const n=r(77836);const s=r(74577),i=s.cursor;const o=r(94632);const a=r(70669),c=a.clear,u=a.figures,l=a.style;class MultiselectPrompt extends o{constructor(e={}){super(e);this.msg=e.message;this.cursor=e.cursor||0;this.scrollIndex=e.cursor||0;this.hint=e.hint||"";this.warn=e.warn||"- This option is disabled -";this.minSelected=e.min;this.showMinError=false;this.maxChoices=e.max;this.value=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.clear=c("");if(!e.overrideRender){this.render()}}reset(){this.value.map((e=>!e.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((e=>e.selected))}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter((e=>e.selected));if(this.minSelected&&e.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}_(e,t){if(e===" "){this.handleSpaceToggle()}else{return this.bell()}}renderInstructions(){return`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n enter/return: Complete answer\n `}renderOption(e,t,r){let s;if(t.disabled)s=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else s=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(u.radioOn):u.radioOff)+" "+s}paginateOptions(e){const t=this.cursor;let r=e.map(((e,r)=>this.renderOption(t,e,r)));const s=10;let i=r;let o="";if(r.length===0){return n.red("No matches for this query.")}else if(r.length>s){let a=t-s/2;let c=t+s/2;if(a<0){a=0;c=s}else if(c>e.length){c=e.length;a=c-s}i=r.slice(a,c);o=n.dim("(Move up and down to reveal more choices)")}return"\n"+i.join("\n")+"\n"+o}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=c(e)}}e.exports=MultiselectPrompt},26544:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,s,i,o){try{var a=e[i](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,s)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(77836);const s=r(94632);const i=r(74577),o=i.cursor,a=i.erase;const c=r(70669),u=c.style,l=c.clear,h=c.figures,p=c.strip;const d=/[0-9]/;const isDef=e=>e!==undefined;const round=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends s{constructor(e={}){super(e);this.transform=u.render(e.style);this.msg=e.message;this.initial=isDef(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=isDef(e.min)?e.min:-Infinity;this.max=isDef(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=n.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(e,this.round)}`);this._value=round(e,this.round)}this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e===`-`||e===`.`&&this.float||d.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){yield e.validate();if(e.error){e.color=`red`;e.fire();e.render();return}let t=e.value;e.value=t!==``?t:e.initial;e.done=true;e.aborted=false;e.error=false;e.fire();e.render();e.out.write(`\n`);e.close()}))()}up(){this.typed=``;if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||``;this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;super.render();let e=a.line+(this.lines?a.down(this.lines):``)+o.to(0);this.lines=0;let t=``;if(this.error){let e=this.errorMsg.split(`\n`);t+=e.reduce(((e,t,r)=>e+`\n${r?` `:h.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=!this.done||!this.done&&!this.placeholder;let s=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(this.done),r?n[this.color]().underline(this.rendered):this.rendered].join(` `);let i=``;if(this.lines){i+=o.up(this.lines);i+=o.left+o.to(p(s).length)}this.out.write(e+s+t+i)}}e.exports=NumberPrompt},94632:(e,t,r)=>{"use strict";const n=r(14521);const s=r(70669),i=s.action;const o=r(82361);const a=r(74577),c=a.beep,u=a.cursor;const l=r(77836);class Prompt extends o{constructor(e={}){super();this.firstRender=true;this.in=e.in||process.stdin;this.out=e.out||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=n.createInterface(this.in);n.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const keypress=(e,t)=>{let r=i(t);if(r===false){this._&&this._(e,t)}else if(typeof this[r]==="function"){this[r](t)}else{this.bell()}};this.close=()=>{this.out.write(u.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(c)}render(){this.onRender(l);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},48744:(e,t,r)=>{"use strict";const n=r(77836);const s=r(94632);const i=r(70669),o=i.style,a=i.clear,c=i.figures;const u=r(74577),l=u.erase,h=u.cursor;class SelectPrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.hint=e.hint||"- Use arrow-keys. Return to submit.";this.warn=e.warn||"- This option is disabled";this.cursor=e.initial||0;this.choices=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.value=(this.choices[this.cursor]||{}).value;this.clear=a("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(l.lines(this.choices.length+1));super.render();this.out.write([o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(false),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "));if(!this.done){this.out.write("\n"+this.choices.map(((e,t)=>{let r,s;if(e.disabled){r=this.cursor===t?n.gray().underline(e.title):n.strikethrough().gray(e.title);s=this.cursor===t?n.bold().gray(c.pointer)+" ":" "}else{r=this.cursor===t?n.cyan().underline(e.title):e.title;s=this.cursor===t?n.cyan(c.pointer)+" ":" "}return`${s} ${r}`})).join("\n"))}}}e.exports=SelectPrompt},94665:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,s,i,o){try{var a=e[i](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,s)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(77836);const s=r(94632);const i=r(74577),o=i.cursor;const a=r(70669),c=a.style,u=a.clear,l=a.strip,h=a.figures;class TextPrompt extends s{constructor(e={}){super(e);this.transform=c.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=u(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=n.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(e)}this._value=e;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.fire();this.render()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){e.value=e.value||e.initial;yield e.validate();if(e.error){e.red=true;e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}render(){if(this.closed)return;super.render();let e=(this.lines?o.down(this.lines):``)+this.clear;this.lines=0;let t=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(` `);let r=``;if(this.error){let e=this.errorMsg.split(`\n`);r+=e.reduce(((e,t,r)=>e+=`\n${r?" ":h.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let s=``;if(this.lines){s+=o.up(this.lines);s+=o.left+o.to(l(t).length)}s+=o.move(this.placeholder?-this.initial.length*this.scale:-this.rendered.length+this.cursor*this.scale);this.out.write(e+t+r+s);this.clear=u(t+r)}}e.exports=TextPrompt},43666:(e,t,r)=>{"use strict";const n=r(77836);const s=r(94632);const i=r(70669),o=i.style,a=i.clear;const c=r(74577),u=c.cursor,l=c.erase;class TogglePrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.value=!!e.initial;this.active=e.active||"on";this.inactive=e.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(e,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();this.out.write(l.lines(this.first?1:this.msg.split(/\n/g).length)+u.to(0)+[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "))}}e.exports=TogglePrompt},42102:(e,t,r)=>{"use strict";function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){_defineProperty(e,t,r[t])}))}return e}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function asyncGeneratorStep(e,t,r,n,s,i,o){try{var a=e[i](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,s)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(98469);const s=["suggest","format","onState","validate","onRender"];const noop=()=>{};function prompt(){return _prompt.apply(this,arguments)}function _prompt(){_prompt=_asyncToGenerator((function*(e=[],{onSubmit:t=noop,onCancel:r=noop}={}){const i={};const o=prompt._override||{};e=[].concat(e);let a,c,u,l,h;const p=function(){var e=_asyncToGenerator((function*(e,t,r=false){if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?yield e.format(t,i):t}));return function getFormattedAnswer(t,r){return e.apply(this,arguments)}}();var d=true;var y=false;var g=undefined;try{for(var v=e[Symbol.iterator](),b;!(d=(b=v.next()).done);d=true){c=b.value;var w=c;l=w.name;h=w.type;for(let e in c){if(s.includes(e))continue;let t=c[e];c[e]=typeof t==="function"?yield t(a,_objectSpread({},i),c):t}if(typeof c.message!=="string"){throw new Error("prompt message is required")}var S=c;l=S.name;h=S.type;if(!h)continue;if(n[h]===void 0){throw new Error(`prompt type (${h}) is not defined`)}if(o[c.name]!==undefined){a=yield p(c,o[c.name]);if(a!==undefined){i[l]=a;continue}}try{a=prompt._injected?getInjectedAnswer(prompt._injected):yield n[h](c);i[l]=a=yield p(c,a,true);u=yield t(c,a,i)}catch(e){u=!(yield r(c,i))}if(u)return i}}catch(e){y=true;g=e}finally{try{if(!d&&v.return!=null){v.return()}}finally{if(y){throw g}}}return i}));return _prompt.apply(this,arguments)}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:n,inject:inject,override:override})},98469:(e,t,r)=>{"use strict";const n=t;const s=r(75960);const noop=e=>e;function toPrompt(e,t,r={}){return new Promise(((n,i)=>{const o=new s[e](t);const a=r.onAbort||noop;const c=r.onSubmit||noop;o.on("state",t.onState||noop);o.on("submit",(e=>n(c(e))));o.on("abort",(e=>i(a(e))))}))}n.text=e=>toPrompt("TextPrompt",e);n.password=e=>{e.style="password";return n.text(e)};n.invisible=e=>{e.style="invisible";return n.text(e)};n.number=e=>toPrompt("NumberPrompt",e);n.date=e=>toPrompt("DatePrompt",e);n.confirm=e=>toPrompt("ConfirmPrompt",e);n.list=e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})};n.toggle=e=>toPrompt("TogglePrompt",e);n.select=e=>toPrompt("SelectPrompt",e);n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("MultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>{e.suggest=e.suggest||byTitle;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)}},5829:e=>{"use strict";e.exports=e=>{if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false}},1155:(e,t,r)=>{"use strict";const n=r(71144);const s=r(74577),i=s.erase,o=s.cursor;const width=e=>[...n(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return i.line+o.to(0);let r=0;const n=e.split(/\r?\n/);var s=true;var a=false;var c=undefined;try{for(var u=n[Symbol.iterator](),l;!(s=(l=u.next()).done);s=true){let e=l.value;r+=1+Math.floor(Math.max(width(e)-1,0)/t)}}catch(e){a=true;c=e}finally{try{if(!s&&u.return!=null){u.return()}}finally{if(a){throw c}}}return(i.line+o.prevLine()).repeat(r-1)+i.line+o.to(0)}},61920:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const n=process.platform==="win32"?r:t;e.exports=n},70669:(e,t,r)=>{"use strict";e.exports={action:r(5829),clear:r(1155),style:r(72057),strip:r(71144),figures:r(61920)}},71144:e=>{"use strict";e.exports=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e}},72057:(e,t,r)=>{"use strict";const n=r(77836);const s=r(61920);const i=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const render=e=>i[e]||i.default;const o=Object.freeze({aborted:n.red(s.cross),done:n.green(s.tick),default:n.cyan("?")});const symbol=(e,t)=>t?o.aborted:e?o.done:o.default;const delimiter=e=>n.gray(e?s.ellipsis:s.pointerSmall);const item=(e,t)=>n.gray(e?t?s.pointerSmall:"+":s.line);e.exports={styles:i,render:render,symbols:o,symbol:symbol,delimiter:delimiter,item:item}},89966:(e,t,r)=>{function isNodeLT(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let t=0,r=process.versions.node.split(".").map(Number);for(;t<e.length;t++){if(r[t]>e[t])return false;if(e[t]>r[t])return true}return false}e.exports=isNodeLT("8.6.0")?r(42102):r(86515)},58089:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:n}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((t,r)=>r>e&&t instanceof DatePart))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find(((e,r)=>r>t&&e instanceof DatePart))}toString(){return String(this.date)}}e.exports=DatePart},87164:(e,t,r)=>{"use strict";const n=r(58089);const pos=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+pos(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},91825:(e,t,r)=>{"use strict";const n=r(58089);class Hours extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},70902:(e,t,r)=>{"use strict";e.exports={DatePart:r(58089),Meridiem:r(99857),Day:r(87164),Hours:r(91825),Milliseconds:r(78569),Minutes:r(93409),Month:r(94082),Seconds:r(49521),Year:r(50128)}},99857:(e,t,r)=>{"use strict";const n=r(58089);class Meridiem extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}e.exports=Meridiem},78569:(e,t,r)=>{"use strict";const n=r(58089);class Milliseconds extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}e.exports=Milliseconds},93409:(e,t,r)=>{"use strict";const n=r(58089);class Minutes extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Minutes},94082:(e,t,r)=>{"use strict";const n=r(58089);class Month extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1;this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},49521:(e,t,r)=>{"use strict";const n=r(58089);class Seconds extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Seconds},50128:(e,t,r)=>{"use strict";const n=r(58089);class Year extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}}e.exports=Year},93226:(e,t,r)=>{"use strict";const n=r(77836);const s=r(47982);const{cursor:i}=r(74577);const{style:o,clear:a,figures:c,strip:u}=r(57588);const getVal=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const getTitle=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const getIndex=(e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:undefined};class AutocompletePrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:getIndex(e.choices,e.initial);this.select=this.initial||e.cursor||0;this.fallback=e.fallback||(e.initial!==undefined?`${c.pointerSmall} ${getTitle(this.choices,this.initial)}`:`${c.pointerSmall} ${e.noMatches||"no matches found"}`);this.suggestions=[[]];this.page=0;this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=o.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=a("");this.complete(this.render);this.render()}moveSelect(e){this.select=e;if(this.suggestions[this.page].length>0){this.value=getVal(this.suggestions[this.page],e)}else{this.value=this.initial!==undefined?getVal(this.choices,this.initial):null}this.fire()}async complete(e){const t=this.completing=this.suggest(this.input,this.choices);const r=await t;if(this.completing!==t)return;this.suggestions=r.map(((e,t,r)=>({title:getTitle(r,t),value:getVal(r,t)}))).reduce(((e,t)=>{if(e[e.length-1].length<this.limit)e[e.length-1].push(t);else e.push([t]);return e}),[[]]);this.isFallback=false;this.completing=false;if(!this.suggestions[this.page])this.page=0;if(!this.suggestions.length&&this.fallback){const e=getIndex(this.choices,this.fallback);this.suggestions=[[]];if(e!==undefined)this.suggestions[0].push({title:getTitle(this.choices,e),value:getVal(this.choices,e)});this.isFallback=true}const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select));e&&e()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){let r=this.input.slice(0,this.cursor);let n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`;this.cursor=r.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions[this.page].length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions[this.page].length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions[this.page].length-1){this.page=(this.page+1)%this.suggestions.length;this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){if(this.page>=this.suggestions.length-1)return this.bell();this.page++;this.moveSelect(0);this.render()}prevPage(){if(this.page<=0)return this.bell();this.page--;this.moveSelect(0);this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}render(){if(this.closed)return;super.render();if(this.lineCount)this.out.write(i.down(this.lineCount));let e=n.bold(`${o.symbol(this.done,this.aborted)} ${this.msg} `)+`${o.delimiter(this.completing)} `;let t=u(e).length;if(this.done&&this.suggestions[this.page][this.select]){e+=`${this.suggestions[this.page][this.select].title}`}else{this.rendered=`${this.transform.render(this.input)}`;t+=this.rendered.length;e+=this.rendered}if(!this.done){this.lineCount=this.suggestions[this.page].length;let t=this.suggestions[this.page].reduce(((e,t,r)=>e+`\n${r===this.select?n.cyan(t.title):t.title}`),"");if(t&&!this.isFallback){e+=t;if(this.suggestions.length>1){this.lineCount++;e+=n.blue(`\nPage ${this.page+1}/${this.suggestions.length}`)}}else{const t=getIndex(this.choices,this.fallback);const r=t!==undefined?getTitle(this.choices,t):this.fallback;e+=`\n${n.gray(r)}`;this.lineCount++}}this.out.write(this.clear+e);this.clear=a(e);if(this.lineCount&&!this.done){let e=i.up(this.lineCount);e+=i.left+i.to(t);e+=i.move(-this.rendered.length+this.cursor*this.scale);this.out.write(e)}}}e.exports=AutocompletePrompt},89677:(e,t,r)=>{"use strict";const n=r(77836);const{cursor:s}=r(74577);const i=r(97954);const{clear:o,style:a,figures:c}=r(57588);class AutocompleteMultiselectPrompt extends i{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=o("");this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){return`\nInstructions:\n ${c.arrowUp}/${c.arrowDown}: Highlight option\n ${c.arrowLeft}/${c.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n `}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let s;if(t.disabled)s=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else s=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(c.radioOn):c.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(s.hide);super.render();let e=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=AutocompleteMultiselectPrompt},45729:(e,t,r)=>{const n=r(77836);const s=r(47982);const{style:i}=r(57588);const{erase:o,cursor:a}=r(74577);class ConfirmPrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.value=e.initial;this.initialValue=!!e.initial;this.yesMsg=e.yes||"yes";this.yesOption=e.yesOption||"(Y/n)";this.noMsg=e.no||"no";this.noOption=e.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();this.out.write(o.line+a.to(0)+[i.symbol(this.done,this.aborted),n.bold(this.msg),i.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "))}}e.exports=ConfirmPrompt},15969:(e,t,r)=>{"use strict";const n=r(77836);const s=r(47982);const{style:i,clear:o,figures:a,strip:c}=r(57588);const{erase:u,cursor:l}=r(74577);const{DatePart:h,Meridiem:p,Day:d,Hours:y,Milliseconds:g,Minutes:v,Month:b,Seconds:w,Year:S}=r(70902);const x=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const O={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new d(e),3:e=>new b(e),4:e=>new S(e),5:e=>new p(e),6:e=>new y(e),7:e=>new v(e),8:e=>new w(e),9:e=>new g(e)};const R={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(R,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=o("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=x.exec(e)){let e=t.shift();let r=t.findIndex((e=>e!=null));this.parts.push(r in O?O[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e}),[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof h)));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let e=await this.validator(this.value);if(typeof e==="string"){this.errorMsg=e;e=false}this.error=!e}async submit(){await this.validate();if(this.error){this.color="red";this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof h)));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(u.lines(1));super.render();let e=u.line+(this.lines?u.down(this.lines):"")+l.to(0);this.lines=0;let t="";if(this.error){let e=this.errorMsg.split("\n");t=e.reduce(((e,t,r)=>e+`\n${r?` `:a.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=[i.symbol(this.done,this.aborted),n.bold(this.msg),i.delimiter(false),this.parts.reduce(((e,t,r)=>e.concat(r===this.cursor&&!this.done?n.cyan().underline(t.toString()):t)),[]).join("")].join(" ");let s="";if(this.lines){s+=l.up(this.lines);s+=l.left+l.to(c(r).length)}this.out.write(e+r+t+s)}}e.exports=DatePrompt},72392:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(13195),SelectPrompt:r(60539),TogglePrompt:r(72401),DatePrompt:r(15969),NumberPrompt:r(50429),MultiselectPrompt:r(97954),AutocompletePrompt:r(93226),AutocompleteMultiselectPrompt:r(89677),ConfirmPrompt:r(45729)}},97954:(e,t,r)=>{"use strict";const n=r(77836);const{cursor:s}=r(74577);const i=r(47982);const{clear:o,figures:a,style:c}=r(57588);class MultiselectPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.cursor=e.cursor||0;this.scrollIndex=e.cursor||0;this.hint=e.hint||"";this.warn=e.warn||"- This option is disabled -";this.minSelected=e.min;this.showMinError=false;this.maxChoices=e.max;this.value=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.clear=o("");if(!e.overrideRender){this.render()}}reset(){this.value.map((e=>!e.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((e=>e.selected))}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter((e=>e.selected));if(this.minSelected&&e.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}_(e,t){if(e===" "){this.handleSpaceToggle()}else{return this.bell()}}renderInstructions(){return`\nInstructions:\n ${a.arrowUp}/${a.arrowDown}: Highlight option\n ${a.arrowLeft}/${a.arrowRight}/[space]: Toggle selection\n enter/return: Complete answer\n `}renderOption(e,t,r){let s;if(t.disabled)s=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else s=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(a.radioOn):a.radioOff)+" "+s}paginateOptions(e){const t=this.cursor;let r=e.map(((e,r)=>this.renderOption(t,e,r)));const s=10;let i=r;let o="";if(r.length===0){return n.red("No matches for this query.")}else if(r.length>s){let a=t-s/2;let c=t+s/2;if(a<0){a=0;c=s}else if(c>e.length){c=e.length;a=c-s}i=r.slice(a,c);o=n.dim("(Move up and down to reveal more choices)")}return"\n"+i.join("\n")+"\n"+o}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(s.hide);super.render();let e=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=MultiselectPrompt},50429:(e,t,r)=>{const n=r(77836);const s=r(47982);const{cursor:i,erase:o}=r(74577);const{style:a,clear:c,figures:u,strip:l}=r(57588);const h=/[0-9]/;const isDef=e=>e!==undefined;const round=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends s{constructor(e={}){super(e);this.transform=a.render(e.style);this.msg=e.message;this.initial=isDef(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=isDef(e.min)?e.min:-Infinity;this.max=isDef(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=n.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(e,this.round)}`);this._value=round(e,this.round)}this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e===`-`||e===`.`&&this.float||h.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}async validate(){let e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){await this.validate();if(this.error){this.color=`red`;this.fire();this.render();return}let e=this.value;this.value=e!==``?e:this.initial;this.done=true;this.aborted=false;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}up(){this.typed=``;if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||``;this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;super.render();let e=o.line+(this.lines?o.down(this.lines):``)+i.to(0);this.lines=0;let t=``;if(this.error){let e=this.errorMsg.split(`\n`);t+=e.reduce(((e,t,r)=>e+`\n${r?` `:u.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=!this.done||!this.done&&!this.placeholder;let s=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),r?n[this.color]().underline(this.rendered):this.rendered].join(` `);let c=``;if(this.lines){c+=i.up(this.lines);c+=i.left+i.to(l(s).length)}this.out.write(e+s+t+c)}}e.exports=NumberPrompt},47982:(e,t,r)=>{"use strict";const n=r(14521);const{action:s}=r(57588);const i=r(82361);const{beep:o,cursor:a}=r(74577);const c=r(77836);class Prompt extends i{constructor(e={}){super();this.firstRender=true;this.in=e.in||process.stdin;this.out=e.out||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=n.createInterface(this.in);n.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const keypress=(e,t)=>{let r=s(t);if(r===false){this._&&this._(e,t)}else if(typeof this[r]==="function"){this[r](t)}else{this.bell()}};this.close=()=>{this.out.write(a.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(o)}render(){this.onRender(c);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},60539:(e,t,r)=>{"use strict";const n=r(77836);const s=r(47982);const{style:i,clear:o,figures:a}=r(57588);const{erase:c,cursor:u}=r(74577);class SelectPrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.hint=e.hint||"- Use arrow-keys. Return to submit.";this.warn=e.warn||"- This option is disabled";this.cursor=e.initial||0;this.choices=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.value=(this.choices[this.cursor]||{}).value;this.clear=o("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);else this.out.write(c.lines(this.choices.length+1));super.render();this.out.write([i.symbol(this.done,this.aborted),n.bold(this.msg),i.delimiter(false),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "));if(!this.done){this.out.write("\n"+this.choices.map(((e,t)=>{let r,s;if(e.disabled){r=this.cursor===t?n.gray().underline(e.title):n.strikethrough().gray(e.title);s=this.cursor===t?n.bold().gray(a.pointer)+" ":" "}else{r=this.cursor===t?n.cyan().underline(e.title):e.title;s=this.cursor===t?n.cyan(a.pointer)+" ":" "}return`${s} ${r}`})).join("\n"))}}}e.exports=SelectPrompt},13195:(e,t,r)=>{const n=r(77836);const s=r(47982);const{cursor:i}=r(74577);const{style:o,clear:a,strip:c,figures:u}=r(57588);class TextPrompt extends s{constructor(e={}){super(e);this.transform=o.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=a(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=n.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(e)}this._value=e;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.fire();this.render()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){this.value=this.value||this.initial;await this.validate();if(this.error){this.red=true;this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}render(){if(this.closed)return;super.render();let e=(this.lines?i.down(this.lines):``)+this.clear;this.lines=0;let t=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(` `);let r=``;if(this.error){let e=this.errorMsg.split(`\n`);r+=e.reduce(((e,t,r)=>e+=`\n${r?" ":u.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let s=``;if(this.lines){s+=i.up(this.lines);s+=i.left+i.to(c(t).length)}s+=i.move(this.placeholder?-this.initial.length*this.scale:-this.rendered.length+this.cursor*this.scale);this.out.write(e+t+r+s);this.clear=a(t+r)}}e.exports=TextPrompt},72401:(e,t,r)=>{const n=r(77836);const s=r(47982);const{style:i,clear:o}=r(57588);const{cursor:a,erase:c}=r(74577);class TogglePrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.value=!!e.initial;this.active=e.active||"on";this.inactive=e.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(e,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();this.out.write(c.lines(this.first?1:this.msg.split(/\n/g).length)+a.to(0)+[i.symbol(this.done,this.aborted),n.bold(this.msg),i.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "))}}e.exports=TogglePrompt},86515:(e,t,r)=>{"use strict";const n=r(2526);const s=["suggest","format","onState","validate","onRender"];const noop=()=>{};async function prompt(e=[],{onSubmit:t=noop,onCancel:r=noop}={}){const i={};const o=prompt._override||{};e=[].concat(e);let a,c,u,l,h;const getFormattedAnswer=async(e,t,r=false)=>{if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?await e.format(t,i):t};for(c of e){({name:l,type:h}=c);for(let e in c){if(s.includes(e))continue;let t=c[e];c[e]=typeof t==="function"?await t(a,{...i},c):t}if(typeof c.message!=="string"){throw new Error("prompt message is required")}({name:l,type:h}=c);if(!h)continue;if(n[h]===void 0){throw new Error(`prompt type (${h}) is not defined`)}if(o[c.name]!==undefined){a=await getFormattedAnswer(c,o[c.name]);if(a!==undefined){i[l]=a;continue}}try{a=prompt._injected?getInjectedAnswer(prompt._injected):await n[h](c);i[l]=a=await getFormattedAnswer(c,a,true);u=await t(c,a,i)}catch(e){u=!await r(c,i)}if(u)return i}return i}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:n,inject:inject,override:override})},2526:(e,t,r)=>{"use strict";const n=t;const s=r(72392);const noop=e=>e;function toPrompt(e,t,r={}){return new Promise(((n,i)=>{const o=new s[e](t);const a=r.onAbort||noop;const c=r.onSubmit||noop;o.on("state",t.onState||noop);o.on("submit",(e=>n(c(e))));o.on("abort",(e=>i(a(e))))}))}n.text=e=>toPrompt("TextPrompt",e);n.password=e=>{e.style="password";return n.text(e)};n.invisible=e=>{e.style="invisible";return n.text(e)};n.number=e=>toPrompt("NumberPrompt",e);n.date=e=>toPrompt("DatePrompt",e);n.confirm=e=>toPrompt("ConfirmPrompt",e);n.list=e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})};n.toggle=e=>toPrompt("TogglePrompt",e);n.select=e=>toPrompt("SelectPrompt",e);n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("MultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>{e.suggest=e.suggest||byTitle;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)}},1608:e=>{"use strict";e.exports=e=>{if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false}},1129:(e,t,r)=>{"use strict";const n=r(47398);const{erase:s,cursor:i}=r(74577);const width=e=>[...n(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return s.line+i.to(0);let r=0;const n=e.split(/\r?\n/);for(let e of n){r+=1+Math.floor(Math.max(width(e)-1,0)/t)}return(s.line+i.prevLine()).repeat(r-1)+s.line+i.to(0)}},82536:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const n=process.platform==="win32"?r:t;e.exports=n},57588:(e,t,r)=>{"use strict";e.exports={action:r(1608),clear:r(1129),style:r(90033),strip:r(47398),figures:r(82536)}},47398:e=>{"use strict";e.exports=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e}},90033:(e,t,r)=>{"use strict";const n=r(77836);const s=r(82536);const i=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const render=e=>i[e]||i.default;const o=Object.freeze({aborted:n.red(s.cross),done:n.green(s.tick),default:n.cyan("?")});const symbol=(e,t)=>t?o.aborted:e?o.done:o.default;const delimiter=e=>n.gray(e?s.ellipsis:s.pointerSmall);const item=(e,t)=>n.gray(e?t?s.pointerSmall:"+":s.line);e.exports={styles:i,render:render,symbols:o,symbol:symbol,delimiter:delimiter,item:item}},51619:(e,t,r)=>{var n=r(29852);var s=r(91014);var i=r(57147);var noop=function(){};var o=/^v?\.0/.test(process.version);var isFn=function(e){return typeof e==="function"};var isFS=function(e){if(!o)return false;if(!i)return false;return(e instanceof(i.ReadStream||noop)||e instanceof(i.WriteStream||noop))&&isFn(e.close)};var isRequest=function(e){return e.setHeader&&isFn(e.abort)};var destroyer=function(e,t,r,i){i=n(i);var o=false;e.on("close",(function(){o=true}));s(e,{readable:t,writable:r},(function(e){if(e)return i(e);o=true;i()}));var a=false;return function(t){if(o)return;if(a)return;a=true;if(isFS(e))return e.close(noop);if(isRequest(e))return e.abort();if(isFn(e.destroy))return e.destroy();i(t||new Error("stream was destroyed"))}};var call=function(e){e()};var pipe=function(e,t){return e.pipe(t)};var pump=function(){var e=Array.prototype.slice.call(arguments);var t=isFn(e[e.length-1]||noop)&&e.pop()||noop;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var n=e.map((function(s,i){var o=i<e.length-1;var a=i>0;return destroyer(s,o,a,(function(e){if(!r)r=e;if(e)n.forEach(call);if(o)return;n.forEach(call);t(r)}))}));return e.reduce(pipe)};e.exports=pump},34446:(e,t,r)=>{var n=r(53574);var s=r(71017).join;var i=r(67360);var o="/etc";var a=process.platform==="win32";var c=a?process.env.USERPROFILE:process.env.HOME;e.exports=function(e,t,u,l){if("string"!==typeof e)throw new Error("rc(name): name *must* be string");if(!u)u=r(21254)(process.argv.slice(2));t=("string"===typeof t?n.json(t):t)||{};l=l||n.parse;var h=n.env(e+"_");var p=[t];var d=[];function addConfigFile(e){if(d.indexOf(e)>=0)return;var t=n.file(e);if(t){p.push(l(t));d.push(e)}}if(!a)[s(o,e,"config"),s(o,e+"rc")].forEach(addConfigFile);if(c)[s(c,".config",e,"config"),s(c,".config",e),s(c,"."+e,"config"),s(c,"."+e+"rc")].forEach(addConfigFile);addConfigFile(n.find("."+e+"rc"));if(h.config)addConfigFile(h.config);if(u.config)addConfigFile(u.config);return i.apply(null,p.concat([h,u,d.length?{configs:d,config:d[d.length-1]}:undefined]))}},53574:(e,t,r)=>{"use strict";var n=r(57147);var s=r(27036);var i=r(71017);var o=r(12251);var a=t.parse=function(e){if(/^\s*{/.test(e))return JSON.parse(o(e));return s.parse(e)};var c=t.file=function(){var e=[].slice.call(arguments).filter((function(e){return e!=null}));for(var t in e)if("string"!==typeof e[t])return;var r=i.join.apply(null,e);var s;try{return n.readFileSync(r,"utf-8")}catch(e){return}};var u=t.json=function(){var e=c.apply(null,arguments);return e?a(e):null};var l=t.env=function(e,t){t=t||process.env;var r={};var n=e.length;for(var s in t){if(s.toLowerCase().indexOf(e.toLowerCase())===0){var i=s.substring(n).split("__");var o;while((o=i.indexOf(""))>-1){i.splice(o,1)}var a=r;i.forEach((function _buildSubObj(e,r){if(!e||typeof a!=="object")return;if(r===i.length-1)a[e]=t[s];if(a[e]===undefined)a[e]={};a=a[e]}))}}return r};var h=t.find=function(){var e=i.join.apply(null,[].slice.call(arguments));function find(e,t){var r=i.join(e,t);try{n.statSync(r);return r}catch(r){if(i.dirname(e)!==e)return find(i.dirname(e),t)}}return find(process.cwd(),e)}},19157:(e,t,r)=>{"use strict";var n=r(86735);var s=r(86849);function toRegex(e,t){return new RegExp(toRegex.create(e,t))}toRegex.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=n({},t);if(r.contains===true){r.strictNegate=false}var i=r.strictOpen!==false?"^":"";var o=r.strictClose!==false?"$":"";var a=r.endChar?r.endChar:"+";var c=e;if(r.strictNegate===false){c="(?:(?!(?:"+e+")).)"+a}else{c="(?:(?!^(?:"+e+")$).)"+a}var u=i+c+o;if(r.safe===true&&s(u)===false){throw new Error("potentially unsafe regular expression: "+u)}return u};e.exports=toRegex},1913:(e,t,r)=>{const n=r(65055).Buffer;function decodeBase64(e){return n.from(e,"base64").toString("utf8")}function encodeBase64(e){return n.from(e,"utf8").toString("base64")}e.exports={decodeBase64:decodeBase64,encodeBase64:encodeBase64}},31281:(e,t,r)=>{var n=r(57310);var s=r(1913);var i=s.decodeBase64;var o=s.encodeBase64;var a=":_authToken";var c=":username";var u=":_password";e.exports=function(){var e;var t;if(arguments.length>=2){e=arguments[0];t=arguments[1]}else if(typeof arguments[0]==="string"){e=arguments[0]}else{t=arguments[0]}t=t||{};t.npmrc=t.npmrc||r(34446)("npm",{registry:"https://registry.npmjs.org/"});e=e||t.npmrc.registry;return getRegistryAuthInfo(e,t)||getLegacyAuthInfo(t.npmrc)};function getRegistryAuthInfo(e,t){var r=n.parse(e,false,true);var s;while(s!=="/"&&r.pathname!==s){s=r.pathname||"/";var i="//"+r.host+s.replace(/\/$/,"");var o=getAuthInfoForUrl(i,t.npmrc);if(o){return o}if(!t.recursive){return/\/$/.test(e)?undefined:getRegistryAuthInfo(n.resolve(e,"."),t)}r.pathname=n.resolve(normalizePath(s),"..")||"/"}return undefined}function getLegacyAuthInfo(e){if(e._auth){return{token:e._auth,type:"Basic"}}return undefined}function normalizePath(e){return e[e.length-1]==="/"?e:e+"/"}function getAuthInfoForUrl(e,t){var r=getBearerToken(t[e+a]||t[e+"/"+a]);if(r){return r}var n=t[e+c]||t[e+"/"+c];var s=t[e+u]||t[e+"/"+u];var i=getTokenForUsernameAndPassword(n,s);if(i){return i}return undefined}function getBearerToken(e){if(!e){return undefined}var t=e.replace(/^\$\{?([^}]*)\}?$/,(function(e,t){return process.env[t]}));return{token:t,type:"Bearer"}}function getTokenForUsernameAndPassword(e,t){if(!e||!t){return undefined}var r=i(t.replace(/^\$\{?([^}]*)\}?$/,(function(e,t){return process.env[t]})));var n=o(e+":"+r);return{token:n,type:"Basic",password:r,username:e}}},69074:(e,t,r)=>{"use strict";e.exports=function(e){var t=r(34446)("npm",{registry:"https://registry.npmjs.org/"});var n=t[e+":registry"]||t.registry;return n.slice(-1)==="/"?n:n+"/"}},52224:e=>{"use strict";
269
+ function pascalcase(e){if(typeof e!=="string"){throw new TypeError("expected a string.")}e=e.replace(/([A-Z])/g," $1");if(e.length===1){return e.toUpperCase()}e=e.replace(/^[\W_]+|[\W_]+$/g,"").toLowerCase();e=e.charAt(0).toUpperCase()+e.slice(1);return e.replace(/[\W_]+(\w|$)/g,(function(e,t){return t.toUpperCase()}))}e.exports=pascalcase},81555:(e,t,r)=>{"use strict";var n=r(71017);var s=r(73837).inspect;function assertPath(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+s(e))}}function posix(e){assertPath(e);if(e.length===0)return".";var t=e.charCodeAt(0);var r=t===47;var n=-1;var s=true;for(var i=e.length-1;i>=1;--i){t=e.charCodeAt(i);if(t===47){if(!s){n=i;break}}else{s=false}}if(n===-1)return r?"/":".";if(r&&n===1)return"//";return e.slice(0,n)}function win32(e){assertPath(e);var t=e.length;if(t===0)return".";var r=-1;var n=-1;var s=true;var i=0;var o=e.charCodeAt(0);if(t>1){if(o===47||o===92){r=i=1;o=e.charCodeAt(1);if(o===47||o===92){var a=2;var c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o===47||o===92)break}if(a<t&&a!==c){c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o!==47&&o!==92)break}if(a<t&&a!==c){c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o===47||o===92)break}if(a===t){return e}if(a!==c){r=i=a+1}}}}}else if(o>=65&&o<=90||o>=97&&o<=122){o=e.charCodeAt(1);if(e.charCodeAt(1)===58){r=i=2;if(t>2){o=e.charCodeAt(2);if(o===47||o===92)r=i=3}}}}else if(o===47||o===92){return e[0]}for(var u=t-1;u>=i;--u){o=e.charCodeAt(u);if(o===47||o===92){if(!s){n=u;break}}else{s=false}}if(n===-1){if(r===-1)return".";else n=r}return e.slice(0,n)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},43883:(e,t,r)=>{"use strict";const n=r(57147);e.exports=e=>new Promise((t=>{n.access(e,(e=>{t(!e)}))}));e.exports.sync=e=>{try{n.accessSync(e);return true}catch(e){return false}}},26230:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var s=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||s)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},4838:e=>{"use strict";e.exports=e=>{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find((e=>e.toUpperCase()==="PATH"))||"Path"}},28435:(e,t,r)=>{"use strict";const n=r(57147);const s=r(76024);function type(e,t,r){if(typeof r!=="string"){return Promise.reject(new TypeError(`Expected a string, got ${typeof r}`))}return s(n[e])(r).then((e=>e[t]())).catch((e=>{if(e.code==="ENOENT"){return false}throw e}))}function typeSync(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{return n[e](r)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.file=type.bind(null,"stat","isFile");t.dir=type.bind(null,"stat","isDirectory");t.symlink=type.bind(null,"lstat","isSymbolicLink");t.fileSync=typeSync.bind(null,"statSync","isFile");t.dirSync=typeSync.bind(null,"statSync","isDirectory");t.symlinkSync=typeSync.bind(null,"lstatSync","isSymbolicLink")},76024:e=>{"use strict";const processFn=(e,t)=>function(){const r=t.promiseModule;const n=new Array(arguments.length);for(let e=0;e<arguments.length;e++){n[e]=arguments[e]}return new r(((r,s)=>{if(t.errorFirst){n.push((function(e,n){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e<arguments.length;e++){t[e-1]=arguments[e]}if(e){t.unshift(e);s(t)}else{r(t)}}else if(e){s(e)}else{r(n)}}))}else{n.push((function(e){if(t.multiArgs){const e=new Array(arguments.length-1);for(let t=0;t<arguments.length;t++){e[t]=arguments[t]}r(e)}else{r(e)}}))}e.apply(this,n)}))};e.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let r;if(typeof e==="function"){r=function(){if(t.excludeMain){return e.apply(this,arguments)}return processFn(e,t).apply(this,arguments)}}else{r=Object.create(Object.getPrototypeOf(e))}for(const n in e){const s=e[n];r[n]=typeof s==="function"&&filter(n)?processFn(s,t):s}return r}},43530:e=>{"use strict";const processFn=(e,t)=>function(...r){const n=t.promiseModule;return new n(((n,s)=>{if(t.multiArgs){r.push(((...e)=>{if(t.errorFirst){if(e[0]){s(e)}else{e.shift();n(e)}}else{n(e)}}))}else if(t.errorFirst){r.push(((e,t)=>{if(e){s(e)}else{n(t)}}))}else{r.push(n)}e.apply(this,r)}))};e.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const r=typeof e;if(!(e!==null&&(r==="object"||r==="function"))){throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":r}\``)}const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let n;if(r==="function"){n=function(...r){return t.excludeMain?e(...r):processFn(e,t).apply(this,r)}}else{n=Object.create(Object.getPrototypeOf(e))}for(const r in e){const s=e[r];n[r]=typeof s==="function"&&filter(r)?processFn(s,t):s}return n}},20990:(e,t,r)=>{"use strict";const n=r(17517);e.exports=async({cwd:e}={})=>n("package.json",{cwd:e});e.exports.sync=({cwd:e}={})=>n.sync("package.json",{cwd:e})},93713:e=>{"use strict";e.exports={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"}},58272:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:n}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((t,r)=>r>e&&t instanceof DatePart))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find(((e,r)=>r>t&&e instanceof DatePart))}toString(){return String(this.date)}}e.exports=DatePart},45236:(e,t,r)=>{"use strict";const n=r(58272);const pos=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+pos(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},68507:(e,t,r)=>{"use strict";const n=r(58272);class Hours extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},81442:(e,t,r)=>{"use strict";e.exports={DatePart:r(58272),Meridiem:r(23402),Day:r(45236),Hours:r(68507),Milliseconds:r(24055),Minutes:r(72859),Month:r(17436),Seconds:r(95847),Year:r(92751)}},23402:(e,t,r)=>{"use strict";const n=r(58272);class Meridiem extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}e.exports=Meridiem},24055:(e,t,r)=>{"use strict";const n=r(58272);class Milliseconds extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}e.exports=Milliseconds},72859:(e,t,r)=>{"use strict";const n=r(58272);class Minutes extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Minutes},17436:(e,t,r)=>{"use strict";const n=r(58272);class Month extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1;this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},95847:(e,t,r)=>{"use strict";const n=r(58272);class Seconds extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Seconds},92751:(e,t,r)=>{"use strict";const n=r(58272);class Year extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}}e.exports=Year},93475:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,s,i,o){try{var a=e[i](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,s)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(77836);const s=r(94632);const i=r(74577),o=i.cursor;const a=r(70669),c=a.style,u=a.clear,l=a.figures,h=a.strip;const getVal=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const getTitle=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const getIndex=(e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:undefined};class AutocompletePrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:getIndex(e.choices,e.initial);this.select=this.initial||e.cursor||0;this.fallback=e.fallback||(e.initial!==undefined?`${l.pointerSmall} ${getTitle(this.choices,this.initial)}`:`${l.pointerSmall} ${e.noMatches||"no matches found"}`);this.suggestions=[[]];this.page=0;this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=c.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=u("");this.complete(this.render);this.render()}moveSelect(e){this.select=e;if(this.suggestions[this.page].length>0){this.value=getVal(this.suggestions[this.page],e)}else{this.value=this.initial!==undefined?getVal(this.choices,this.initial):null}this.fire()}complete(e){var t=this;return _asyncToGenerator((function*(){const r=t.completing=t.suggest(t.input,t.choices);const n=yield r;if(t.completing!==r)return;t.suggestions=n.map(((e,t,r)=>({title:getTitle(r,t),value:getVal(r,t)}))).reduce(((e,r)=>{if(e[e.length-1].length<t.limit)e[e.length-1].push(r);else e.push([r]);return e}),[[]]);t.isFallback=false;t.completing=false;if(!t.suggestions[t.page])t.page=0;if(!t.suggestions.length&&t.fallback){const e=getIndex(t.choices,t.fallback);t.suggestions=[[]];if(e!==undefined)t.suggestions[0].push({title:getTitle(t.choices,e),value:getVal(t.choices,e)});t.isFallback=true}const s=Math.max(n.length-1,0);t.moveSelect(Math.min(s,t.select));e&&e()}))()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){let r=this.input.slice(0,this.cursor);let n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`;this.cursor=r.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions[this.page].length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions[this.page].length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions[this.page].length-1){this.page=(this.page+1)%this.suggestions.length;this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){if(this.page>=this.suggestions.length-1)return this.bell();this.page++;this.moveSelect(0);this.render()}prevPage(){if(this.page<=0)return this.bell();this.page--;this.moveSelect(0);this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}render(){if(this.closed)return;super.render();if(this.lineCount)this.out.write(o.down(this.lineCount));let e=n.bold(`${c.symbol(this.done,this.aborted)} ${this.msg} `)+`${c.delimiter(this.completing)} `;let t=h(e).length;if(this.done&&this.suggestions[this.page][this.select]){e+=`${this.suggestions[this.page][this.select].title}`}else{this.rendered=`${this.transform.render(this.input)}`;t+=this.rendered.length;e+=this.rendered}if(!this.done){this.lineCount=this.suggestions[this.page].length;let t=this.suggestions[this.page].reduce(((e,t,r)=>e+`\n${r===this.select?n.cyan(t.title):t.title}`),"");if(t&&!this.isFallback){e+=t;if(this.suggestions.length>1){this.lineCount++;e+=n.blue(`\nPage ${this.page+1}/${this.suggestions.length}`)}}else{const t=getIndex(this.choices,this.fallback);const r=t!==undefined?getTitle(this.choices,t):this.fallback;e+=`\n${n.gray(r)}`;this.lineCount++}}this.out.write(this.clear+e);this.clear=u(e);if(this.lineCount&&!this.done){let e=o.up(this.lineCount);e+=o.left+o.to(t);e+=o.move(-this.rendered.length+this.cursor*this.scale);this.out.write(e)}}}e.exports=AutocompletePrompt},68819:(e,t,r)=>{"use strict";const n=r(77836);const s=r(74577),i=s.cursor;const o=r(98056);const a=r(70669),c=a.clear,u=a.style,l=a.figures;class AutocompleteMultiselectPrompt extends o{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=c("");this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){return`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n `}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let s;if(t.disabled)s=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else s=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(l.radioOn):l.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=c(e)}}e.exports=AutocompleteMultiselectPrompt},95376:(e,t,r)=>{"use strict";const n=r(77836);const s=r(94632);const i=r(70669),o=i.style;const a=r(74577),c=a.erase,u=a.cursor;class ConfirmPrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.value=e.initial;this.initialValue=!!e.initial;this.yesMsg=e.yes||"yes";this.yesOption=e.yesOption||"(Y/n)";this.noMsg=e.no||"no";this.noOption=e.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();this.out.write(c.line+u.to(0)+[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "))}}e.exports=ConfirmPrompt},41300:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,s,i,o){try{var a=e[i](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,s)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(77836);const s=r(94632);const i=r(70669),o=i.style,a=i.clear,c=i.figures,u=i.strip;const l=r(74577),h=l.erase,p=l.cursor;const d=r(81442),y=d.DatePart,g=d.Meridiem,v=d.Day,b=d.Hours,w=d.Milliseconds,S=d.Minutes,x=d.Month,O=d.Seconds,R=d.Year;const k=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const A={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new v(e),3:e=>new x(e),4:e=>new R(e),5:e=>new g(e),6:e=>new b(e),7:e=>new S(e),8:e=>new O(e),9:e=>new w(e)};const P={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(P,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=a("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=k.exec(e)){let e=t.shift();let r=t.findIndex((e=>e!=null));this.parts.push(r in A?A[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e}),[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof y)));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t==="string"){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){yield e.validate();if(e.error){e.color="red";e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()}))()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof y)));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(p.hide);else this.out.write(h.lines(1));super.render();let e=h.line+(this.lines?h.down(this.lines):"")+p.to(0);this.lines=0;let t="";if(this.error){let e=this.errorMsg.split("\n");t=e.reduce(((e,t,r)=>e+`\n${r?` `:c.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(false),this.parts.reduce(((e,t,r)=>e.concat(r===this.cursor&&!this.done?n.cyan().underline(t.toString()):t)),[]).join("")].join(" ");let s="";if(this.lines){s+=p.up(this.lines);s+=p.left+p.to(u(r).length)}this.out.write(e+r+t+s)}}e.exports=DatePrompt},75960:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(94665),SelectPrompt:r(48744),TogglePrompt:r(43666),DatePrompt:r(41300),NumberPrompt:r(26544),MultiselectPrompt:r(98056),AutocompletePrompt:r(93475),AutocompleteMultiselectPrompt:r(68819),ConfirmPrompt:r(95376)}},98056:(e,t,r)=>{"use strict";const n=r(77836);const s=r(74577),i=s.cursor;const o=r(94632);const a=r(70669),c=a.clear,u=a.figures,l=a.style;class MultiselectPrompt extends o{constructor(e={}){super(e);this.msg=e.message;this.cursor=e.cursor||0;this.scrollIndex=e.cursor||0;this.hint=e.hint||"";this.warn=e.warn||"- This option is disabled -";this.minSelected=e.min;this.showMinError=false;this.maxChoices=e.max;this.value=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.clear=c("");if(!e.overrideRender){this.render()}}reset(){this.value.map((e=>!e.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((e=>e.selected))}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter((e=>e.selected));if(this.minSelected&&e.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}_(e,t){if(e===" "){this.handleSpaceToggle()}else{return this.bell()}}renderInstructions(){return`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n enter/return: Complete answer\n `}renderOption(e,t,r){let s;if(t.disabled)s=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else s=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(u.radioOn):u.radioOff)+" "+s}paginateOptions(e){const t=this.cursor;let r=e.map(((e,r)=>this.renderOption(t,e,r)));const s=10;let i=r;let o="";if(r.length===0){return n.red("No matches for this query.")}else if(r.length>s){let a=t-s/2;let c=t+s/2;if(a<0){a=0;c=s}else if(c>e.length){c=e.length;a=c-s}i=r.slice(a,c);o=n.dim("(Move up and down to reveal more choices)")}return"\n"+i.join("\n")+"\n"+o}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=c(e)}}e.exports=MultiselectPrompt},26544:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,s,i,o){try{var a=e[i](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,s)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(77836);const s=r(94632);const i=r(74577),o=i.cursor,a=i.erase;const c=r(70669),u=c.style,l=c.clear,h=c.figures,p=c.strip;const d=/[0-9]/;const isDef=e=>e!==undefined;const round=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends s{constructor(e={}){super(e);this.transform=u.render(e.style);this.msg=e.message;this.initial=isDef(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=isDef(e.min)?e.min:-Infinity;this.max=isDef(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=n.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(e,this.round)}`);this._value=round(e,this.round)}this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e===`-`||e===`.`&&this.float||d.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){yield e.validate();if(e.error){e.color=`red`;e.fire();e.render();return}let t=e.value;e.value=t!==``?t:e.initial;e.done=true;e.aborted=false;e.error=false;e.fire();e.render();e.out.write(`\n`);e.close()}))()}up(){this.typed=``;if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||``;this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;super.render();let e=a.line+(this.lines?a.down(this.lines):``)+o.to(0);this.lines=0;let t=``;if(this.error){let e=this.errorMsg.split(`\n`);t+=e.reduce(((e,t,r)=>e+`\n${r?` `:h.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=!this.done||!this.done&&!this.placeholder;let s=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(this.done),r?n[this.color]().underline(this.rendered):this.rendered].join(` `);let i=``;if(this.lines){i+=o.up(this.lines);i+=o.left+o.to(p(s).length)}this.out.write(e+s+t+i)}}e.exports=NumberPrompt},94632:(e,t,r)=>{"use strict";const n=r(14521);const s=r(70669),i=s.action;const o=r(82361);const a=r(74577),c=a.beep,u=a.cursor;const l=r(77836);class Prompt extends o{constructor(e={}){super();this.firstRender=true;this.in=e.in||process.stdin;this.out=e.out||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=n.createInterface(this.in);n.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const keypress=(e,t)=>{let r=i(t);if(r===false){this._&&this._(e,t)}else if(typeof this[r]==="function"){this[r](t)}else{this.bell()}};this.close=()=>{this.out.write(u.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(c)}render(){this.onRender(l);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},48744:(e,t,r)=>{"use strict";const n=r(77836);const s=r(94632);const i=r(70669),o=i.style,a=i.clear,c=i.figures;const u=r(74577),l=u.erase,h=u.cursor;class SelectPrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.hint=e.hint||"- Use arrow-keys. Return to submit.";this.warn=e.warn||"- This option is disabled";this.cursor=e.initial||0;this.choices=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.value=(this.choices[this.cursor]||{}).value;this.clear=a("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(l.lines(this.choices.length+1));super.render();this.out.write([o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(false),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "));if(!this.done){this.out.write("\n"+this.choices.map(((e,t)=>{let r,s;if(e.disabled){r=this.cursor===t?n.gray().underline(e.title):n.strikethrough().gray(e.title);s=this.cursor===t?n.bold().gray(c.pointer)+" ":" "}else{r=this.cursor===t?n.cyan().underline(e.title):e.title;s=this.cursor===t?n.cyan(c.pointer)+" ":" "}return`${s} ${r}`})).join("\n"))}}}e.exports=SelectPrompt},94665:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,s,i,o){try{var a=e[i](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,s)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(77836);const s=r(94632);const i=r(74577),o=i.cursor;const a=r(70669),c=a.style,u=a.clear,l=a.strip,h=a.figures;class TextPrompt extends s{constructor(e={}){super(e);this.transform=c.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=u(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=n.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(e)}this._value=e;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.fire();this.render()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){e.value=e.value||e.initial;yield e.validate();if(e.error){e.red=true;e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}render(){if(this.closed)return;super.render();let e=(this.lines?o.down(this.lines):``)+this.clear;this.lines=0;let t=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(` `);let r=``;if(this.error){let e=this.errorMsg.split(`\n`);r+=e.reduce(((e,t,r)=>e+=`\n${r?" ":h.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let s=``;if(this.lines){s+=o.up(this.lines);s+=o.left+o.to(l(t).length)}s+=o.move(this.placeholder?-this.initial.length*this.scale:-this.rendered.length+this.cursor*this.scale);this.out.write(e+t+r+s);this.clear=u(t+r)}}e.exports=TextPrompt},43666:(e,t,r)=>{"use strict";const n=r(77836);const s=r(94632);const i=r(70669),o=i.style,a=i.clear;const c=r(74577),u=c.cursor,l=c.erase;class TogglePrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.value=!!e.initial;this.active=e.active||"on";this.inactive=e.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(e,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();this.out.write(l.lines(this.first?1:this.msg.split(/\n/g).length)+u.to(0)+[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "))}}e.exports=TogglePrompt},42102:(e,t,r)=>{"use strict";function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){_defineProperty(e,t,r[t])}))}return e}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function asyncGeneratorStep(e,t,r,n,s,i,o){try{var a=e[i](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,s)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(98469);const s=["suggest","format","onState","validate","onRender"];const noop=()=>{};function prompt(){return _prompt.apply(this,arguments)}function _prompt(){_prompt=_asyncToGenerator((function*(e=[],{onSubmit:t=noop,onCancel:r=noop}={}){const i={};const o=prompt._override||{};e=[].concat(e);let a,c,u,l,h;const p=function(){var e=_asyncToGenerator((function*(e,t,r=false){if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?yield e.format(t,i):t}));return function getFormattedAnswer(t,r){return e.apply(this,arguments)}}();var d=true;var y=false;var g=undefined;try{for(var v=e[Symbol.iterator](),b;!(d=(b=v.next()).done);d=true){c=b.value;var w=c;l=w.name;h=w.type;for(let e in c){if(s.includes(e))continue;let t=c[e];c[e]=typeof t==="function"?yield t(a,_objectSpread({},i),c):t}if(typeof c.message!=="string"){throw new Error("prompt message is required")}var S=c;l=S.name;h=S.type;if(!h)continue;if(n[h]===void 0){throw new Error(`prompt type (${h}) is not defined`)}if(o[c.name]!==undefined){a=yield p(c,o[c.name]);if(a!==undefined){i[l]=a;continue}}try{a=prompt._injected?getInjectedAnswer(prompt._injected):yield n[h](c);i[l]=a=yield p(c,a,true);u=yield t(c,a,i)}catch(e){u=!(yield r(c,i))}if(u)return i}}catch(e){y=true;g=e}finally{try{if(!d&&v.return!=null){v.return()}}finally{if(y){throw g}}}return i}));return _prompt.apply(this,arguments)}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:n,inject:inject,override:override})},98469:(e,t,r)=>{"use strict";const n=t;const s=r(75960);const noop=e=>e;function toPrompt(e,t,r={}){return new Promise(((n,i)=>{const o=new s[e](t);const a=r.onAbort||noop;const c=r.onSubmit||noop;o.on("state",t.onState||noop);o.on("submit",(e=>n(c(e))));o.on("abort",(e=>i(a(e))))}))}n.text=e=>toPrompt("TextPrompt",e);n.password=e=>{e.style="password";return n.text(e)};n.invisible=e=>{e.style="invisible";return n.text(e)};n.number=e=>toPrompt("NumberPrompt",e);n.date=e=>toPrompt("DatePrompt",e);n.confirm=e=>toPrompt("ConfirmPrompt",e);n.list=e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})};n.toggle=e=>toPrompt("TogglePrompt",e);n.select=e=>toPrompt("SelectPrompt",e);n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("MultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>{e.suggest=e.suggest||byTitle;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)}},5829:e=>{"use strict";e.exports=e=>{if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false}},1155:(e,t,r)=>{"use strict";const n=r(71144);const s=r(74577),i=s.erase,o=s.cursor;const width=e=>[...n(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return i.line+o.to(0);let r=0;const n=e.split(/\r?\n/);var s=true;var a=false;var c=undefined;try{for(var u=n[Symbol.iterator](),l;!(s=(l=u.next()).done);s=true){let e=l.value;r+=1+Math.floor(Math.max(width(e)-1,0)/t)}}catch(e){a=true;c=e}finally{try{if(!s&&u.return!=null){u.return()}}finally{if(a){throw c}}}return(i.line+o.prevLine()).repeat(r-1)+i.line+o.to(0)}},61920:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const n=process.platform==="win32"?r:t;e.exports=n},70669:(e,t,r)=>{"use strict";e.exports={action:r(5829),clear:r(1155),style:r(72057),strip:r(71144),figures:r(61920)}},71144:e=>{"use strict";e.exports=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e}},72057:(e,t,r)=>{"use strict";const n=r(77836);const s=r(61920);const i=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const render=e=>i[e]||i.default;const o=Object.freeze({aborted:n.red(s.cross),done:n.green(s.tick),default:n.cyan("?")});const symbol=(e,t)=>t?o.aborted:e?o.done:o.default;const delimiter=e=>n.gray(e?s.ellipsis:s.pointerSmall);const item=(e,t)=>n.gray(e?t?s.pointerSmall:"+":s.line);e.exports={styles:i,render:render,symbols:o,symbol:symbol,delimiter:delimiter,item:item}},89966:(e,t,r)=>{function isNodeLT(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let t=0,r=process.versions.node.split(".").map(Number);for(;t<e.length;t++){if(r[t]>e[t])return false;if(e[t]>r[t])return true}return false}e.exports=isNodeLT("8.6.0")?r(42102):r(86515)},58089:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:n}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((t,r)=>r>e&&t instanceof DatePart))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find(((e,r)=>r>t&&e instanceof DatePart))}toString(){return String(this.date)}}e.exports=DatePart},87164:(e,t,r)=>{"use strict";const n=r(58089);const pos=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+pos(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},91825:(e,t,r)=>{"use strict";const n=r(58089);class Hours extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},70902:(e,t,r)=>{"use strict";e.exports={DatePart:r(58089),Meridiem:r(99857),Day:r(87164),Hours:r(91825),Milliseconds:r(78569),Minutes:r(93409),Month:r(94082),Seconds:r(49521),Year:r(50128)}},99857:(e,t,r)=>{"use strict";const n=r(58089);class Meridiem extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}e.exports=Meridiem},78569:(e,t,r)=>{"use strict";const n=r(58089);class Milliseconds extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}e.exports=Milliseconds},93409:(e,t,r)=>{"use strict";const n=r(58089);class Minutes extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Minutes},94082:(e,t,r)=>{"use strict";const n=r(58089);class Month extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1;this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},49521:(e,t,r)=>{"use strict";const n=r(58089);class Seconds extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Seconds},50128:(e,t,r)=>{"use strict";const n=r(58089);class Year extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}}e.exports=Year},93226:(e,t,r)=>{"use strict";const n=r(77836);const s=r(47982);const{cursor:i}=r(74577);const{style:o,clear:a,figures:c,strip:u}=r(57588);const getVal=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const getTitle=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const getIndex=(e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:undefined};class AutocompletePrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:getIndex(e.choices,e.initial);this.select=this.initial||e.cursor||0;this.fallback=e.fallback||(e.initial!==undefined?`${c.pointerSmall} ${getTitle(this.choices,this.initial)}`:`${c.pointerSmall} ${e.noMatches||"no matches found"}`);this.suggestions=[[]];this.page=0;this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=o.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=a("");this.complete(this.render);this.render()}moveSelect(e){this.select=e;if(this.suggestions[this.page].length>0){this.value=getVal(this.suggestions[this.page],e)}else{this.value=this.initial!==undefined?getVal(this.choices,this.initial):null}this.fire()}async complete(e){const t=this.completing=this.suggest(this.input,this.choices);const r=await t;if(this.completing!==t)return;this.suggestions=r.map(((e,t,r)=>({title:getTitle(r,t),value:getVal(r,t)}))).reduce(((e,t)=>{if(e[e.length-1].length<this.limit)e[e.length-1].push(t);else e.push([t]);return e}),[[]]);this.isFallback=false;this.completing=false;if(!this.suggestions[this.page])this.page=0;if(!this.suggestions.length&&this.fallback){const e=getIndex(this.choices,this.fallback);this.suggestions=[[]];if(e!==undefined)this.suggestions[0].push({title:getTitle(this.choices,e),value:getVal(this.choices,e)});this.isFallback=true}const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select));e&&e()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){let r=this.input.slice(0,this.cursor);let n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`;this.cursor=r.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions[this.page].length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions[this.page].length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions[this.page].length-1){this.page=(this.page+1)%this.suggestions.length;this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){if(this.page>=this.suggestions.length-1)return this.bell();this.page++;this.moveSelect(0);this.render()}prevPage(){if(this.page<=0)return this.bell();this.page--;this.moveSelect(0);this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}render(){if(this.closed)return;super.render();if(this.lineCount)this.out.write(i.down(this.lineCount));let e=n.bold(`${o.symbol(this.done,this.aborted)} ${this.msg} `)+`${o.delimiter(this.completing)} `;let t=u(e).length;if(this.done&&this.suggestions[this.page][this.select]){e+=`${this.suggestions[this.page][this.select].title}`}else{this.rendered=`${this.transform.render(this.input)}`;t+=this.rendered.length;e+=this.rendered}if(!this.done){this.lineCount=this.suggestions[this.page].length;let t=this.suggestions[this.page].reduce(((e,t,r)=>e+`\n${r===this.select?n.cyan(t.title):t.title}`),"");if(t&&!this.isFallback){e+=t;if(this.suggestions.length>1){this.lineCount++;e+=n.blue(`\nPage ${this.page+1}/${this.suggestions.length}`)}}else{const t=getIndex(this.choices,this.fallback);const r=t!==undefined?getTitle(this.choices,t):this.fallback;e+=`\n${n.gray(r)}`;this.lineCount++}}this.out.write(this.clear+e);this.clear=a(e);if(this.lineCount&&!this.done){let e=i.up(this.lineCount);e+=i.left+i.to(t);e+=i.move(-this.rendered.length+this.cursor*this.scale);this.out.write(e)}}}e.exports=AutocompletePrompt},89677:(e,t,r)=>{"use strict";const n=r(77836);const{cursor:s}=r(74577);const i=r(97954);const{clear:o,style:a,figures:c}=r(57588);class AutocompleteMultiselectPrompt extends i{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=o("");this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){return`\nInstructions:\n ${c.arrowUp}/${c.arrowDown}: Highlight option\n ${c.arrowLeft}/${c.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n `}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let s;if(t.disabled)s=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else s=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(c.radioOn):c.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(s.hide);super.render();let e=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=AutocompleteMultiselectPrompt},45729:(e,t,r)=>{const n=r(77836);const s=r(47982);const{style:i}=r(57588);const{erase:o,cursor:a}=r(74577);class ConfirmPrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.value=e.initial;this.initialValue=!!e.initial;this.yesMsg=e.yes||"yes";this.yesOption=e.yesOption||"(Y/n)";this.noMsg=e.no||"no";this.noOption=e.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();this.out.write(o.line+a.to(0)+[i.symbol(this.done,this.aborted),n.bold(this.msg),i.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "))}}e.exports=ConfirmPrompt},15969:(e,t,r)=>{"use strict";const n=r(77836);const s=r(47982);const{style:i,clear:o,figures:a,strip:c}=r(57588);const{erase:u,cursor:l}=r(74577);const{DatePart:h,Meridiem:p,Day:d,Hours:y,Milliseconds:g,Minutes:v,Month:b,Seconds:w,Year:S}=r(70902);const x=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const O={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new d(e),3:e=>new b(e),4:e=>new S(e),5:e=>new p(e),6:e=>new y(e),7:e=>new v(e),8:e=>new w(e),9:e=>new g(e)};const R={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(R,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=o("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=x.exec(e)){let e=t.shift();let r=t.findIndex((e=>e!=null));this.parts.push(r in O?O[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e}),[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof h)));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let e=await this.validator(this.value);if(typeof e==="string"){this.errorMsg=e;e=false}this.error=!e}async submit(){await this.validate();if(this.error){this.color="red";this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof h)));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(u.lines(1));super.render();let e=u.line+(this.lines?u.down(this.lines):"")+l.to(0);this.lines=0;let t="";if(this.error){let e=this.errorMsg.split("\n");t=e.reduce(((e,t,r)=>e+`\n${r?` `:a.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=[i.symbol(this.done,this.aborted),n.bold(this.msg),i.delimiter(false),this.parts.reduce(((e,t,r)=>e.concat(r===this.cursor&&!this.done?n.cyan().underline(t.toString()):t)),[]).join("")].join(" ");let s="";if(this.lines){s+=l.up(this.lines);s+=l.left+l.to(c(r).length)}this.out.write(e+r+t+s)}}e.exports=DatePrompt},72392:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(13195),SelectPrompt:r(60539),TogglePrompt:r(72401),DatePrompt:r(15969),NumberPrompt:r(50429),MultiselectPrompt:r(97954),AutocompletePrompt:r(93226),AutocompleteMultiselectPrompt:r(89677),ConfirmPrompt:r(45729)}},97954:(e,t,r)=>{"use strict";const n=r(77836);const{cursor:s}=r(74577);const i=r(47982);const{clear:o,figures:a,style:c}=r(57588);class MultiselectPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.cursor=e.cursor||0;this.scrollIndex=e.cursor||0;this.hint=e.hint||"";this.warn=e.warn||"- This option is disabled -";this.minSelected=e.min;this.showMinError=false;this.maxChoices=e.max;this.value=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.clear=o("");if(!e.overrideRender){this.render()}}reset(){this.value.map((e=>!e.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((e=>e.selected))}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter((e=>e.selected));if(this.minSelected&&e.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}_(e,t){if(e===" "){this.handleSpaceToggle()}else{return this.bell()}}renderInstructions(){return`\nInstructions:\n ${a.arrowUp}/${a.arrowDown}: Highlight option\n ${a.arrowLeft}/${a.arrowRight}/[space]: Toggle selection\n enter/return: Complete answer\n `}renderOption(e,t,r){let s;if(t.disabled)s=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else s=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(a.radioOn):a.radioOff)+" "+s}paginateOptions(e){const t=this.cursor;let r=e.map(((e,r)=>this.renderOption(t,e,r)));const s=10;let i=r;let o="";if(r.length===0){return n.red("No matches for this query.")}else if(r.length>s){let a=t-s/2;let c=t+s/2;if(a<0){a=0;c=s}else if(c>e.length){c=e.length;a=c-s}i=r.slice(a,c);o=n.dim("(Move up and down to reveal more choices)")}return"\n"+i.join("\n")+"\n"+o}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(s.hide);super.render();let e=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=MultiselectPrompt},50429:(e,t,r)=>{const n=r(77836);const s=r(47982);const{cursor:i,erase:o}=r(74577);const{style:a,clear:c,figures:u,strip:l}=r(57588);const h=/[0-9]/;const isDef=e=>e!==undefined;const round=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends s{constructor(e={}){super(e);this.transform=a.render(e.style);this.msg=e.message;this.initial=isDef(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=isDef(e.min)?e.min:-Infinity;this.max=isDef(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=n.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(e,this.round)}`);this._value=round(e,this.round)}this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e===`-`||e===`.`&&this.float||h.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}async validate(){let e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){await this.validate();if(this.error){this.color=`red`;this.fire();this.render();return}let e=this.value;this.value=e!==``?e:this.initial;this.done=true;this.aborted=false;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}up(){this.typed=``;if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||``;this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;super.render();let e=o.line+(this.lines?o.down(this.lines):``)+i.to(0);this.lines=0;let t=``;if(this.error){let e=this.errorMsg.split(`\n`);t+=e.reduce(((e,t,r)=>e+`\n${r?` `:u.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=!this.done||!this.done&&!this.placeholder;let s=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),r?n[this.color]().underline(this.rendered):this.rendered].join(` `);let c=``;if(this.lines){c+=i.up(this.lines);c+=i.left+i.to(l(s).length)}this.out.write(e+s+t+c)}}e.exports=NumberPrompt},47982:(e,t,r)=>{"use strict";const n=r(14521);const{action:s}=r(57588);const i=r(82361);const{beep:o,cursor:a}=r(74577);const c=r(77836);class Prompt extends i{constructor(e={}){super();this.firstRender=true;this.in=e.in||process.stdin;this.out=e.out||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=n.createInterface(this.in);n.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const keypress=(e,t)=>{let r=s(t);if(r===false){this._&&this._(e,t)}else if(typeof this[r]==="function"){this[r](t)}else{this.bell()}};this.close=()=>{this.out.write(a.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(o)}render(){this.onRender(c);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},60539:(e,t,r)=>{"use strict";const n=r(77836);const s=r(47982);const{style:i,clear:o,figures:a}=r(57588);const{erase:c,cursor:u}=r(74577);class SelectPrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.hint=e.hint||"- Use arrow-keys. Return to submit.";this.warn=e.warn||"- This option is disabled";this.cursor=e.initial||0;this.choices=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.value=(this.choices[this.cursor]||{}).value;this.clear=o("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);else this.out.write(c.lines(this.choices.length+1));super.render();this.out.write([i.symbol(this.done,this.aborted),n.bold(this.msg),i.delimiter(false),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "));if(!this.done){this.out.write("\n"+this.choices.map(((e,t)=>{let r,s;if(e.disabled){r=this.cursor===t?n.gray().underline(e.title):n.strikethrough().gray(e.title);s=this.cursor===t?n.bold().gray(a.pointer)+" ":" "}else{r=this.cursor===t?n.cyan().underline(e.title):e.title;s=this.cursor===t?n.cyan(a.pointer)+" ":" "}return`${s} ${r}`})).join("\n"))}}}e.exports=SelectPrompt},13195:(e,t,r)=>{const n=r(77836);const s=r(47982);const{cursor:i}=r(74577);const{style:o,clear:a,strip:c,figures:u}=r(57588);class TextPrompt extends s{constructor(e={}){super(e);this.transform=o.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=a(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=n.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(e)}this._value=e;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.fire();this.render()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){this.value=this.value||this.initial;await this.validate();if(this.error){this.red=true;this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}render(){if(this.closed)return;super.render();let e=(this.lines?i.down(this.lines):``)+this.clear;this.lines=0;let t=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(` `);let r=``;if(this.error){let e=this.errorMsg.split(`\n`);r+=e.reduce(((e,t,r)=>e+=`\n${r?" ":u.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let s=``;if(this.lines){s+=i.up(this.lines);s+=i.left+i.to(c(t).length)}s+=i.move(this.placeholder?-this.initial.length*this.scale:-this.rendered.length+this.cursor*this.scale);this.out.write(e+t+r+s);this.clear=a(t+r)}}e.exports=TextPrompt},72401:(e,t,r)=>{const n=r(77836);const s=r(47982);const{style:i,clear:o}=r(57588);const{cursor:a,erase:c}=r(74577);class TogglePrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.value=!!e.initial;this.active=e.active||"on";this.inactive=e.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(e,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();this.out.write(c.lines(this.first?1:this.msg.split(/\n/g).length)+a.to(0)+[i.symbol(this.done,this.aborted),n.bold(this.msg),i.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "))}}e.exports=TogglePrompt},86515:(e,t,r)=>{"use strict";const n=r(2526);const s=["suggest","format","onState","validate","onRender"];const noop=()=>{};async function prompt(e=[],{onSubmit:t=noop,onCancel:r=noop}={}){const i={};const o=prompt._override||{};e=[].concat(e);let a,c,u,l,h;const getFormattedAnswer=async(e,t,r=false)=>{if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?await e.format(t,i):t};for(c of e){({name:l,type:h}=c);for(let e in c){if(s.includes(e))continue;let t=c[e];c[e]=typeof t==="function"?await t(a,{...i},c):t}if(typeof c.message!=="string"){throw new Error("prompt message is required")}({name:l,type:h}=c);if(!h)continue;if(n[h]===void 0){throw new Error(`prompt type (${h}) is not defined`)}if(o[c.name]!==undefined){a=await getFormattedAnswer(c,o[c.name]);if(a!==undefined){i[l]=a;continue}}try{a=prompt._injected?getInjectedAnswer(prompt._injected):await n[h](c);i[l]=a=await getFormattedAnswer(c,a,true);u=await t(c,a,i)}catch(e){u=!await r(c,i)}if(u)return i}return i}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:n,inject:inject,override:override})},2526:(e,t,r)=>{"use strict";const n=t;const s=r(72392);const noop=e=>e;function toPrompt(e,t,r={}){return new Promise(((n,i)=>{const o=new s[e](t);const a=r.onAbort||noop;const c=r.onSubmit||noop;o.on("state",t.onState||noop);o.on("submit",(e=>n(c(e))));o.on("abort",(e=>i(a(e))))}))}n.text=e=>toPrompt("TextPrompt",e);n.password=e=>{e.style="password";return n.text(e)};n.invisible=e=>{e.style="invisible";return n.text(e)};n.number=e=>toPrompt("NumberPrompt",e);n.date=e=>toPrompt("DatePrompt",e);n.confirm=e=>toPrompt("ConfirmPrompt",e);n.list=e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})};n.toggle=e=>toPrompt("TogglePrompt",e);n.select=e=>toPrompt("SelectPrompt",e);n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("MultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>{e.suggest=e.suggest||byTitle;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)}},1608:e=>{"use strict";e.exports=e=>{if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false}},1129:(e,t,r)=>{"use strict";const n=r(47398);const{erase:s,cursor:i}=r(74577);const width=e=>[...n(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return s.line+i.to(0);let r=0;const n=e.split(/\r?\n/);for(let e of n){r+=1+Math.floor(Math.max(width(e)-1,0)/t)}return(s.line+i.prevLine()).repeat(r-1)+s.line+i.to(0)}},82536:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const n=process.platform==="win32"?r:t;e.exports=n},57588:(e,t,r)=>{"use strict";e.exports={action:r(1608),clear:r(1129),style:r(90033),strip:r(47398),figures:r(82536)}},47398:e=>{"use strict";e.exports=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e}},90033:(e,t,r)=>{"use strict";const n=r(77836);const s=r(82536);const i=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const render=e=>i[e]||i.default;const o=Object.freeze({aborted:n.red(s.cross),done:n.green(s.tick),default:n.cyan("?")});const symbol=(e,t)=>t?o.aborted:e?o.done:o.default;const delimiter=e=>n.gray(e?s.ellipsis:s.pointerSmall);const item=(e,t)=>n.gray(e?t?s.pointerSmall:"+":s.line);e.exports={styles:i,render:render,symbols:o,symbol:symbol,delimiter:delimiter,item:item}},51619:(e,t,r)=>{var n=r(29852);var s=r(91014);var i=r(57147);var noop=function(){};var o=/^v?\.0/.test(process.version);var isFn=function(e){return typeof e==="function"};var isFS=function(e){if(!o)return false;if(!i)return false;return(e instanceof(i.ReadStream||noop)||e instanceof(i.WriteStream||noop))&&isFn(e.close)};var isRequest=function(e){return e.setHeader&&isFn(e.abort)};var destroyer=function(e,t,r,i){i=n(i);var o=false;e.on("close",(function(){o=true}));s(e,{readable:t,writable:r},(function(e){if(e)return i(e);o=true;i()}));var a=false;return function(t){if(o)return;if(a)return;a=true;if(isFS(e))return e.close(noop);if(isRequest(e))return e.abort();if(isFn(e.destroy))return e.destroy();i(t||new Error("stream was destroyed"))}};var call=function(e){e()};var pipe=function(e,t){return e.pipe(t)};var pump=function(){var e=Array.prototype.slice.call(arguments);var t=isFn(e[e.length-1]||noop)&&e.pop()||noop;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var n=e.map((function(s,i){var o=i<e.length-1;var a=i>0;return destroyer(s,o,a,(function(e){if(!r)r=e;if(e)n.forEach(call);if(o)return;n.forEach(call);t(r)}))}));return e.reduce(pipe)};e.exports=pump},34446:(e,t,r)=>{var n=r(53574);var s=r(71017).join;var i=r(67360);var o="/etc";var a=process.platform==="win32";var c=a?process.env.USERPROFILE:process.env.HOME;e.exports=function(e,t,u,l){if("string"!==typeof e)throw new Error("rc(name): name *must* be string");if(!u)u=r(21254)(process.argv.slice(2));t=("string"===typeof t?n.json(t):t)||{};l=l||n.parse;var h=n.env(e+"_");var p=[t];var d=[];function addConfigFile(e){if(d.indexOf(e)>=0)return;var t=n.file(e);if(t){p.push(l(t));d.push(e)}}if(!a)[s(o,e,"config"),s(o,e+"rc")].forEach(addConfigFile);if(c)[s(c,".config",e,"config"),s(c,".config",e),s(c,"."+e,"config"),s(c,"."+e+"rc")].forEach(addConfigFile);addConfigFile(n.find("."+e+"rc"));if(h.config)addConfigFile(h.config);if(u.config)addConfigFile(u.config);return i.apply(null,p.concat([h,u,d.length?{configs:d,config:d[d.length-1]}:undefined]))}},53574:(e,t,r)=>{"use strict";var n=r(57147);var s=r(27036);var i=r(71017);var o=r(12251);var a=t.parse=function(e){if(/^\s*{/.test(e))return JSON.parse(o(e));return s.parse(e)};var c=t.file=function(){var e=[].slice.call(arguments).filter((function(e){return e!=null}));for(var t in e)if("string"!==typeof e[t])return;var r=i.join.apply(null,e);var s;try{return n.readFileSync(r,"utf-8")}catch(e){return}};var u=t.json=function(){var e=c.apply(null,arguments);return e?a(e):null};var l=t.env=function(e,t){t=t||process.env;var r={};var n=e.length;for(var s in t){if(s.toLowerCase().indexOf(e.toLowerCase())===0){var i=s.substring(n).split("__");var o;while((o=i.indexOf(""))>-1){i.splice(o,1)}var a=r;i.forEach((function _buildSubObj(e,r){if(!e||typeof a!=="object")return;if(r===i.length-1)a[e]=t[s];if(a[e]===undefined)a[e]={};a=a[e]}))}}return r};var h=t.find=function(){var e=i.join.apply(null,[].slice.call(arguments));function find(e,t){var r=i.join(e,t);try{n.statSync(r);return r}catch(r){if(i.dirname(e)!==e)return find(i.dirname(e),t)}}return find(process.cwd(),e)}},19157:(e,t,r)=>{"use strict";var n=r(86735);var s=r(86849);function toRegex(e,t){return new RegExp(toRegex.create(e,t))}toRegex.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=n({},t);if(r.contains===true){r.strictNegate=false}var i=r.strictOpen!==false?"^":"";var o=r.strictClose!==false?"$":"";var a=r.endChar?r.endChar:"+";var c=e;if(r.strictNegate===false){c="(?:(?!(?:"+e+")).)"+a}else{c="(?:(?!^(?:"+e+")$).)"+a}var u=i+c+o;if(r.safe===true&&s(u)===false){throw new Error("potentially unsafe regular expression: "+u)}return u};e.exports=toRegex},1913:(e,t,r)=>{const n=r(65055).Buffer;function decodeBase64(e){return n.from(e,"base64").toString("utf8")}function encodeBase64(e){return n.from(e,"utf8").toString("base64")}e.exports={decodeBase64:decodeBase64,encodeBase64:encodeBase64}},31281:(e,t,r)=>{var n=r(57310);var s=r(1913);var i=s.decodeBase64;var o=s.encodeBase64;var a=":_authToken";var c=":username";var u=":_password";e.exports=function(){var e;var t;if(arguments.length>=2){e=arguments[0];t=arguments[1]}else if(typeof arguments[0]==="string"){e=arguments[0]}else{t=arguments[0]}t=t||{};t.npmrc=t.npmrc||r(34446)("npm",{registry:"https://registry.npmjs.org/"});e=e||t.npmrc.registry;return getRegistryAuthInfo(e,t)||getLegacyAuthInfo(t.npmrc)};function getRegistryAuthInfo(e,t){var r=n.parse(e,false,true);var s;while(s!=="/"&&r.pathname!==s){s=r.pathname||"/";var i="//"+r.host+s.replace(/\/$/,"");var o=getAuthInfoForUrl(i,t.npmrc);if(o){return o}if(!t.recursive){return/\/$/.test(e)?undefined:getRegistryAuthInfo(n.resolve(e,"."),t)}r.pathname=n.resolve(normalizePath(s),"..")||"/"}return undefined}function getLegacyAuthInfo(e){if(e._auth){return{token:e._auth,type:"Basic"}}return undefined}function normalizePath(e){return e[e.length-1]==="/"?e:e+"/"}function getAuthInfoForUrl(e,t){var r=getBearerToken(t[e+a]||t[e+"/"+a]);if(r){return r}var n=t[e+c]||t[e+"/"+c];var s=t[e+u]||t[e+"/"+u];var i=getTokenForUsernameAndPassword(n,s);if(i){return i}return undefined}function getBearerToken(e){if(!e){return undefined}var t=e.replace(/^\$\{?([^}]*)\}?$/,(function(e,t){return process.env[t]}));return{token:t,type:"Bearer"}}function getTokenForUsernameAndPassword(e,t){if(!e||!t){return undefined}var r=i(t.replace(/^\$\{?([^}]*)\}?$/,(function(e,t){return process.env[t]})));var n=o(e+":"+r);return{token:n,type:"Basic",password:r,username:e}}},69074:(e,t,r)=>{"use strict";e.exports=function(e){var t=r(34446)("npm",{registry:"https://registry.npmjs.org/"});var n=t[e+":registry"]||t.registry;return n.slice(-1)==="/"?n:n+"/"}},52224:e=>{"use strict";
270
270
  /*!
271
271
  * repeat-element <https://github.com/jonschlinkert/repeat-element>
272
272
  *
@@ -278,7 +278,7 @@ function pascalcase(e){if(typeof e!=="string"){throw new TypeError("expected a s
278
278
  *
279
279
  * Copyright (c) 2014-2015, Jon Schlinkert.
280
280
  * Licensed under the MIT License.
281
- */var t="";var r;e.exports=repeat;function repeat(e,n){if(typeof e!=="string"){throw new TypeError("expected a string")}if(n===1)return e;if(n===2)return e+e;var s=e.length*n;if(r!==e||typeof r==="undefined"){r=e;t=""}else if(t.length>=s){return t.substr(0,s)}while(s>t.length&&n>1){if(n&1){t+=e}n>>=1;e+=e}t+=e;t=t.substr(0,s);return t}},85810:(e,t,r)=>{"use strict";const n=r(12781).Readable;const s=r(14162);class Response extends n{constructor(e,t,r,n){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(r instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof n!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=s(t);this.body=r;this.url=n}_read(){this.push(this.body);this.push(null)}}e.exports=Response},55040:(e,t,r)=>{var n=r(22820);var s=r(74309);var i=r(55984);var o=r(94976);e.exports=function(e){var t=0,r,a,c={type:s.ROOT,stack:[]},u=c,l=c.stack,h=[];var repeatErr=function(t){n.error(e,"Nothing to repeat at column "+(t-1))};var p=n.strToChars(e);r=p.length;while(t<r){a=p[t++];switch(a){case"\\":a=p[t++];switch(a){case"b":l.push(o.wordBoundary());break;case"B":l.push(o.nonWordBoundary());break;case"w":l.push(i.words());break;case"W":l.push(i.notWords());break;case"d":l.push(i.ints());break;case"D":l.push(i.notInts());break;case"s":l.push(i.whitespace());break;case"S":l.push(i.notWhitespace());break;default:if(/\d/.test(a)){l.push({type:s.REFERENCE,value:parseInt(a,10)})}else{l.push({type:s.CHAR,value:a.charCodeAt(0)})}}break;case"^":l.push(o.begin());break;case"$":l.push(o.end());break;case"[":var d;if(p[t]==="^"){d=true;t++}else{d=false}var y=n.tokenizeClass(p.slice(t),e);t+=y[1];l.push({type:s.SET,set:y[0],not:d});break;case".":l.push(i.anyChar());break;case"(":var g={type:s.GROUP,stack:[],remember:true};a=p[t];if(a==="?"){a=p[t+1];t+=2;if(a==="="){g.followedBy=true}else if(a==="!"){g.notFollowedBy=true}else if(a!==":"){n.error(e,"Invalid group, character '"+a+"' after '?' at column "+(t-1))}g.remember=false}l.push(g);h.push(u);u=g;l=g.stack;break;case")":if(h.length===0){n.error(e,"Unmatched ) at column "+(t-1))}u=h.pop();l=u.options?u.options[u.options.length-1]:u.stack;break;case"|":if(!u.options){u.options=[u.stack];delete u.stack}var v=[];u.options.push(v);l=v;break;case"{":var b=/^(\d+)(,(\d+)?)?\}/.exec(p.slice(t)),w,S;if(b!==null){if(l.length===0){repeatErr(t)}w=parseInt(b[1],10);S=b[2]?b[3]?parseInt(b[3],10):Infinity:w;t+=b[0].length;l.push({type:s.REPETITION,min:w,max:S,value:l.pop()})}else{l.push({type:s.CHAR,value:123})}break;case"?":if(l.length===0){repeatErr(t)}l.push({type:s.REPETITION,min:0,max:1,value:l.pop()});break;case"+":if(l.length===0){repeatErr(t)}l.push({type:s.REPETITION,min:1,max:Infinity,value:l.pop()});break;case"*":if(l.length===0){repeatErr(t)}l.push({type:s.REPETITION,min:0,max:Infinity,value:l.pop()});break;default:l.push({type:s.CHAR,value:a.charCodeAt(0)})}}if(h.length!==0){n.error(e,"Unterminated group")}return c};e.exports.types=s},94976:(e,t,r)=>{var n=r(74309);t.wordBoundary=function(){return{type:n.POSITION,value:"b"}};t.nonWordBoundary=function(){return{type:n.POSITION,value:"B"}};t.begin=function(){return{type:n.POSITION,value:"^"}};t.end=function(){return{type:n.POSITION,value:"$"}}},55984:(e,t,r)=>{var n=r(74309);var INTS=function(){return[{type:n.RANGE,from:48,to:57}]};var WORDS=function(){return[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(INTS())};var WHITESPACE=function(){return[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.CHAR,value:6158},{type:n.CHAR,value:8192},{type:n.CHAR,value:8193},{type:n.CHAR,value:8194},{type:n.CHAR,value:8195},{type:n.CHAR,value:8196},{type:n.CHAR,value:8197},{type:n.CHAR,value:8198},{type:n.CHAR,value:8199},{type:n.CHAR,value:8200},{type:n.CHAR,value:8201},{type:n.CHAR,value:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}]};var NOTANYCHAR=function(){return[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}]};t.words=function(){return{type:n.SET,set:WORDS(),not:false}};t.notWords=function(){return{type:n.SET,set:WORDS(),not:true}};t.ints=function(){return{type:n.SET,set:INTS(),not:false}};t.notInts=function(){return{type:n.SET,set:INTS(),not:true}};t.whitespace=function(){return{type:n.SET,set:WHITESPACE(),not:false}};t.notWhitespace=function(){return{type:n.SET,set:WHITESPACE(),not:true}};t.anyChar=function(){return{type:n.SET,set:NOTANYCHAR(),not:true}}},74309:e=>{e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},22820:(e,t,r)=>{var n=r(74309);var s=r(55984);var i="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?";var o={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){var t=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z\[\\\]\^?])|([0tnvfr]))/g;e=e.replace(t,(function(e,t,r,n,s,a,c,u){if(r){return e}var l=t?8:n?parseInt(n,16):s?parseInt(s,16):a?parseInt(a,8):c?i.indexOf(c):o[u];var h=String.fromCharCode(l);if(/[\[\]{}\^$.|?*+()]/.test(h)){h="\\"+h}return h}));return e};t.tokenizeClass=function(e,r){var i=[];var o=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?(.)/g;var a,c;while((a=o.exec(e))!=null){if(a[1]){i.push(s.words())}else if(a[2]){i.push(s.ints())}else if(a[3]){i.push(s.whitespace())}else if(a[4]){i.push(s.notWords())}else if(a[5]){i.push(s.notInts())}else if(a[6]){i.push(s.notWhitespace())}else if(a[7]){i.push({type:n.RANGE,from:(a[8]||a[9]).charCodeAt(0),to:a[10].charCodeAt(0)})}else if(c=a[12]){i.push({type:n.CHAR,value:c.charCodeAt(0)})}else{return[i,o.lastIndex]}}t.error(r,"Unterminated character class")};t.error=function(e,t){throw new SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},36862:(e,t,r)=>{e.exports=r(96097)},96097:(e,t,r)=>{var n=r(56848);t.operation=function(e){var r=t.timeouts(e);return new n(r,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};t.timeouts=function(e){if(e instanceof Array){return[].concat(e)}var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false};for(var r in e){t[r]=e[r]}if(t.minTimeout>t.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var n=[];for(var s=0;s<t.retries;s++){n.push(this.createTimeout(s,t))}if(e&&e.forever&&!n.length){n.push(this.createTimeout(s,t))}n.sort((function(e,t){return e-t}));return n};t.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1;var n=Math.round(r*t.minTimeout*Math.pow(t.factor,e));n=Math.min(n,t.maxTimeout);return n};t.wrap=function(e,r,n){if(r instanceof Array){n=r;r=null}if(!n){n=[];for(var s in e){if(typeof e[s]==="function"){n.push(s)}}}for(var i=0;i<n.length;i++){var o=n[i];var a=e[o];e[o]=function retryWrapper(n){var s=t.operation(r);var i=Array.prototype.slice.call(arguments,1);var o=i.pop();i.push((function(e){if(s.retry(e)){return}if(e){arguments[0]=s.mainError()}o.apply(this,arguments)}));s.attempt((function(){n.apply(e,i)}))}.bind(e,a);e[o].options=r}}},56848:e=>{function RetryOperation(e,t){if(typeof t==="boolean"){t={forever:t}}this._originalTimeouts=JSON.parse(JSON.stringify(e));this._timeouts=e;this._options=t||{};this._maxRetryTime=t&&t.maxRetryTime||Infinity;this._fn=null;this._errors=[];this._attempts=1;this._operationTimeout=null;this._operationTimeoutCb=null;this._timeout=null;this._operationStart=null;if(this._options.forever){this._cachedTimeouts=this._timeouts.slice(0)}}e.exports=RetryOperation;RetryOperation.prototype.reset=function(){this._attempts=1;this._timeouts=this._originalTimeouts};RetryOperation.prototype.stop=function(){if(this._timeout){clearTimeout(this._timeout)}this._timeouts=[];this._cachedTimeouts=null};RetryOperation.prototype.retry=function(e){if(this._timeout){clearTimeout(this._timeout)}if(!e){return false}var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime){this._errors.unshift(new Error("RetryOperation timeout occurred"));return false}this._errors.push(e);var r=this._timeouts.shift();if(r===undefined){if(this._cachedTimeouts){this._errors.splice(this._errors.length-1,this._errors.length);this._timeouts=this._cachedTimeouts.slice(0);r=this._timeouts.shift()}else{return false}}var n=this;var s=setTimeout((function(){n._attempts++;if(n._operationTimeoutCb){n._timeout=setTimeout((function(){n._operationTimeoutCb(n._attempts)}),n._operationTimeout);if(n._options.unref){n._timeout.unref()}}n._fn(n._attempts)}),r);if(this._options.unref){s.unref()}return true};RetryOperation.prototype.attempt=function(e,t){this._fn=e;if(t){if(t.timeout){this._operationTimeout=t.timeout}if(t.cb){this._operationTimeoutCb=t.cb}}var r=this;if(this._operationTimeoutCb){this._timeout=setTimeout((function(){r._operationTimeoutCb()}),r._operationTimeout)}this._operationStart=(new Date).getTime();this._fn(this._attempts)};RetryOperation.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated");this.attempt(e)};RetryOperation.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated");this.attempt(e)};RetryOperation.prototype.start=RetryOperation.prototype.try;RetryOperation.prototype.errors=function(){return this._errors};RetryOperation.prototype.attempts=function(){return this._attempts};RetryOperation.prototype.mainError=function(){if(this._errors.length===0){return null}var e={};var t=null;var r=0;for(var n=0;n<this._errors.length;n++){var s=this._errors[n];var i=s.message;var o=(e[i]||0)+1;e[i]=o;if(o>=r){t=s;r=o}}return t}},65055:(e,t,r)=>{var n=r(14300);var s=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return s(e,t,r)}SafeBuffer.prototype=Object.create(s.prototype);copyProps(s,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return s(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=s(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return s(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},86849:(e,t,r)=>{var n=r(55040);var s=n.types;e.exports=function(e,t){if(!t)t={};var r=t.limit===undefined?25:t.limit;if(isRegExp(e))e=e.source;else if(typeof e!=="string")e=String(e);try{e=n(e)}catch(e){return false}var i=0;return function walk(e,t){if(e.type===s.REPETITION){t++;i++;if(t>1)return false;if(i>r)return false}if(e.options){for(var n=0,o=e.options.length;n<o;n++){var a=walk({stack:e.options[n]},t);if(!a)return false}}var c=e.stack||e.value&&e.value.stack;if(!c)return true;for(var n=0;n<c.length;n++){var a=walk(c[n],t);if(!a)return false}return true}(e,0)};function isRegExp(e){return{}.toString.call(e)==="[object RegExp]"}},49319:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var s=Number.MAX_SAFE_INTEGER||9007199254740991;var i=16;var o=t.re=[];var a=t.src=[];var c=0;var u=c++;a[u]="0|[1-9]\\d*";var l=c++;a[l]="[0-9]+";var h=c++;a[h]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=c++;a[p]="("+a[u]+")\\."+"("+a[u]+")\\."+"("+a[u]+")";var d=c++;a[d]="("+a[l]+")\\."+"("+a[l]+")\\."+"("+a[l]+")";var y=c++;a[y]="(?:"+a[u]+"|"+a[h]+")";var g=c++;a[g]="(?:"+a[l]+"|"+a[h]+")";var v=c++;a[v]="(?:-("+a[y]+"(?:\\."+a[y]+")*))";var b=c++;a[b]="(?:-?("+a[g]+"(?:\\."+a[g]+")*))";var w=c++;a[w]="[0-9A-Za-z-]+";var S=c++;a[S]="(?:\\+("+a[w]+"(?:\\."+a[w]+")*))";var x=c++;var O="v?"+a[p]+a[v]+"?"+a[S]+"?";a[x]="^"+O+"$";var R="[v=\\s]*"+a[d]+a[b]+"?"+a[S]+"?";var k=c++;a[k]="^"+R+"$";var A=c++;a[A]="((?:<|>)?=?)";var C=c++;a[C]=a[l]+"|x|X|\\*";var P=c++;a[P]=a[u]+"|x|X|\\*";var $=c++;a[$]="[v=\\s]*("+a[P]+")"+"(?:\\.("+a[P]+")"+"(?:\\.("+a[P]+")"+"(?:"+a[v]+")?"+a[S]+"?"+")?)?";var T=c++;a[T]="[v=\\s]*("+a[C]+")"+"(?:\\.("+a[C]+")"+"(?:\\.("+a[C]+")"+"(?:"+a[b]+")?"+a[S]+"?"+")?)?";var j=c++;a[j]="^"+a[A]+"\\s*"+a[$]+"$";var I=c++;a[I]="^"+a[A]+"\\s*"+a[T]+"$";var N=c++;a[N]="(?:^|[^\\d])"+"(\\d{1,"+i+"})"+"(?:\\.(\\d{1,"+i+"}))?"+"(?:\\.(\\d{1,"+i+"}))?"+"(?:$|[^\\d])";var M=c++;a[M]="(?:~>?)";var D=c++;a[D]="(\\s*)"+a[M]+"\\s+";o[D]=new RegExp(a[D],"g");var L="$1~";var B=c++;a[B]="^"+a[M]+a[$]+"$";var U=c++;a[U]="^"+a[M]+a[T]+"$";var G=c++;a[G]="(?:\\^)";var z=c++;a[z]="(\\s*)"+a[G]+"\\s+";o[z]=new RegExp(a[z],"g");var q="$1^";var V=c++;a[V]="^"+a[G]+a[$]+"$";var H=c++;a[H]="^"+a[G]+a[T]+"$";var W=c++;a[W]="^"+a[A]+"\\s*("+R+")$|^$";var Y=c++;a[Y]="^"+a[A]+"\\s*("+O+")$|^$";var K=c++;a[K]="(\\s*)"+a[A]+"\\s*("+R+"|"+a[$]+")";o[K]=new RegExp(a[K],"g");var J="$1$2$3";var Z=c++;a[Z]="^\\s*("+a[$]+")"+"\\s+-\\s+"+"("+a[$]+")"+"\\s*$";var X=c++;a[X]="^\\s*("+a[T]+")"+"\\s+-\\s+"+"("+a[T]+")"+"\\s*$";var Q=c++;a[Q]="(<|>)?=?\\s*\\*";for(var ee=0;ee<c;ee++){r(ee,a[ee]);if(!o[ee]){o[ee]=new RegExp(a[ee])}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}var r=t.loose?o[k]:o[x];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var i=e.trim().match(t.loose?o[k]:o[x]);if(!i){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>s||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>s||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>s||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<s){return t}}return e}))}this.build=i[5]?i[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(e){r("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var n=this.prerelease[t];var s=e.prerelease[t];r("prerelease compare",t,n,s);if(n===undefined&&s===undefined){return 0}else if(s===undefined){return 1}else if(n===undefined){return-1}else if(n===s){continue}else{return compareIdentifiers(n,s)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var s="";if(r.prerelease.length||n.prerelease.length){s="pre";var i="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return s+o}}}return i}}t.compareIdentifiers=compareIdentifiers;var te=/^[0-9]+$/;function compareIdentifiers(e,t){var r=te.test(e);var n=te.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.rcompare=rcompare;function rcompare(e,t,r){return compare(t,e,r)}t.sort=sort;function sort(e,r){return e.sort((function(e,n){return t.compare(e,n,r)}))}t.rsort=rsort;function rsort(e,r){return e.sort((function(e,n){return t.rcompare(e,n,r)}))}t.gt=gt;function gt(e,t,r){return compare(e,t,r)>0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===re){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var re={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[W]:o[Y];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=re}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===re){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var i=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||s||i&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[X]:o[Z];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[K],J);r("comparator trim",e,o[K]);e=e.replace(o[D],L);e=e.replace(o[z],q);e=e.split(/\s+/).join(" ");var s=t?o[W]:o[Y];var i=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){i=i.filter((function(e){return!!e.match(s)}))}i=i.map((function(e){return new Comparator(e,this.options)}),this);return i};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(r){return r.every((function(r){return e.set.some((function(e){return e.every((function(e){return r.intersects(e,t)}))}))}))}))};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var n=t.loose?o[U]:o[B];return e.replace(n,(function(t,n,s,i,o){r("tilde",e,t,n,s,i,o);var a;if(isX(n)){a=""}else if(isX(s)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(i)){a=">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+s+"."+i+"-"+o+" <"+n+"."+(+s+1)+".0"}else{a=">="+n+"."+s+"."+i+" <"+n+"."+(+s+1)+".0"}r("tilde return",a);return a}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[H]:o[V];return e.replace(n,(function(t,n,s,i,o){r("caret",e,t,n,s,i,o);var a;if(isX(n)){a=""}else if(isX(s)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(i)){if(n==="0"){a=">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0"}else{a=">="+n+"."+s+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(s==="0"){a=">="+n+"."+s+"."+i+"-"+o+" <"+n+"."+s+"."+(+i+1)}else{a=">="+n+"."+s+"."+i+"-"+o+" <"+n+"."+(+s+1)+".0"}}else{a=">="+n+"."+s+"."+i+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(s==="0"){a=">="+n+"."+s+"."+i+" <"+n+"."+s+"."+(+i+1)}else{a=">="+n+"."+s+"."+i+" <"+n+"."+(+s+1)+".0"}}else{a=">="+n+"."+s+"."+i+" <"+(+n+1)+".0.0"}}r("caret return",a);return a}))}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[I]:o[j];return e.replace(n,(function(t,n,s,i,o,a){r("xRange",e,t,n,s,i,o,a);var c=isX(s);var u=c||isX(i);var l=u||isX(o);var h=l;if(n==="="&&h){n=""}if(c){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&h){if(u){i=0}o=0;if(n===">"){n=">=";if(u){s=+s+1;i=0;o=0}else{i=+i+1;o=0}}else if(n==="<="){n="<";if(u){s=+s+1}else{i=+i+1}}t=n+s+"."+i+"."+o}else if(u){t=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(l){t=">="+s+"."+i+".0 <"+s+"."+(+i+1)+".0"}r("xRange return",t);return t}))}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[Q],"")}function hyphenReplace(e,t,r,n,s,i,o,a,c,u,l,h,p){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(s)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(h){a="<="+c+"."+u+"."+l+"-"+h}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,n){for(var s=0;s<e.length;s++){if(!e[s].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(s=0;s<e.length;s++){r(e[s].semver);if(e[s].semver===re){continue}if(e[s].semver.prerelease.length>0){var i=e[s].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var s=null;try{var i=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(i.test(e)){if(!n||s.compare(e)===-1){n=e;s=new SemVer(n,r)}}}));return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var s=null;try{var i=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(i.test(e)){if(!n||s.compare(e)===1){n=e;s=new SemVer(n,r)}}}));return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n<e.set.length;++n){var s=e.set[n];s.forEach((function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var s,i,o,a,c;switch(r){case">":s=gt;i=lte;o=lt;a=">";c=">=";break;case"<":s=lt;i=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u<t.set.length;++u){var l=t.set[u];var h=null;var p=null;l.forEach((function(e){if(e.semver===re){e=new Comparator(">=0.0.0")}h=h||e;p=p||e;if(s(e.semver,h.semver,n)){h=e}else if(o(e.semver,p.semver,n)){p=e}}));if(h.operator===a||h.operator===c){return false}if((!p.operator||p.operator===a)&&i(e,p.semver)){return false}else if(p.operator===c&&o(e,p.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(o[N]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},12485:(e,t,r)=>{const n=Symbol("SemVer ANY");class Comparator{static get ANY(){return n}constructor(e,t){t=s(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}c("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===n){this.value=""}else{this.value=this.operator+this.semver.version}c("comp",this)}parse(e){const t=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=n}else{this.semver=new u(r[2],this.options.loose)}}toString(){return this.value}test(e){c("Comparator.test",e,this.options.loose);if(this.semver===n||e===n){return true}if(typeof e==="string"){try{e=new u(e,this.options)}catch(e){return false}}return a(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new l(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new l(this.value,t).test(e.semver)}const r=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const n=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const s=this.semver.version===e.semver.version;const i=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const o=a(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const c=a(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return r||n||s&&i||o||c}}e.exports=Comparator;const s=r(13789);const{re:i,t:o}=r(34351);const a=r(32674);const c=r(55747);const u=r(97825);const l=r(87058)},87058:(e,t,r)=>{class Range{constructor(e,t){t=i(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof o){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=Object.keys(this.options).join(",");const r=`parseRange:${t}:${e}`;const n=s.get(r);if(n){return n}const i=this.options.loose;const c=i?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(c,hyphenReplace(this.options.includePrerelease));a("hyphen replace",e);e=e.replace(u[l.COMPARATORTRIM],h);a("comparator trim",e);e=e.replace(u[l.TILDETRIM],p);e=e.replace(u[l.CARETTRIM],d);e=e.split(/\s+/).join(" ");let y=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(i){y=y.filter((e=>{a("loose invalid filter",e,this.options);return!!e.match(u[l.COMPARATORLOOSE])}))}a("range list",y);const g=new Map;const v=y.map((e=>new o(e,this.options)));for(const e of v){if(isNullSet(e)){return[e]}g.set(e.value,e)}if(g.size>1&&g.has("")){g.delete("")}const b=[...g.values()];s.set(r,b);return b}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((r=>isSatisfiable(r,t)&&e.set.some((e=>isSatisfiable(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new c(e,this.options)}catch(e){return false}}for(let t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false}}e.exports=Range;const n=r(98443);const s=new n({max:1e3});const i=r(13789);const o=r(12485);const a=r(55747);const c=r(97825);const{re:u,t:l,comparatorTrimReplace:h,tildeTrimReplace:p,caretTrimReplace:d}=r(34351);const isNullSet=e=>e.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let r=true;const n=e.slice();let s=n.pop();while(r&&n.length){r=n.every((e=>s.intersects(e,t)));s=n.pop()}return r};const parseComparator=(e,t)=>{a("comp",e,t);e=replaceCarets(e,t);a("caret",e);e=replaceTildes(e,t);a("tildes",e);e=replaceXRanges(e,t);a("xrange",e);e=replaceStars(e,t);a("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const r=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(r,((t,r,n,s,i)=>{a("tilde",e,t,r,n,s,i);let o;if(isX(r)){o=""}else if(isX(n)){o=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(s)){o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`}else if(i){a("replaceTilde pr",i);o=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`}else{o=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`}a("tilde return",o);return o}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{a("caret",e,t);const r=t.loose?u[l.CARETLOOSE]:u[l.CARET];const n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,o)=>{a("caret",e,t,r,s,i,o);let c;if(isX(r)){c=""}else if(isX(s)){c=`>=${r}.0.0${n} <${+r+1}.0.0-0`}else if(isX(i)){if(r==="0"){c=`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`}else{c=`>=${r}.${s}.0${n} <${+r+1}.0.0-0`}}else if(o){a("replaceCaret pr",o);if(r==="0"){if(s==="0"){c=`>=${r}.${s}.${i}-${o} <${r}.${s}.${+i+1}-0`}else{c=`>=${r}.${s}.${i}-${o} <${r}.${+s+1}.0-0`}}else{c=`>=${r}.${s}.${i}-${o} <${+r+1}.0.0-0`}}else{a("no pr");if(r==="0"){if(s==="0"){c=`>=${r}.${s}.${i}${n} <${r}.${s}.${+i+1}-0`}else{c=`>=${r}.${s}.${i}${n} <${r}.${+s+1}.0-0`}}else{c=`>=${r}.${s}.${i} <${+r+1}.0.0-0`}}a("caret return",c);return c}))};const replaceXRanges=(e,t)=>{a("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(r,((r,n,s,i,o,c)=>{a("xRange",e,r,n,s,i,o,c);const u=isX(s);const l=u||isX(i);const h=l||isX(o);const p=h;if(n==="="&&p){n=""}c=t.includePrerelease?"-0":"";if(u){if(n===">"||n==="<"){r="<0.0.0-0"}else{r="*"}}else if(n&&p){if(l){i=0}o=0;if(n===">"){n=">=";if(l){s=+s+1;i=0;o=0}else{i=+i+1;o=0}}else if(n==="<="){n="<";if(l){s=+s+1}else{i=+i+1}}if(n==="<"){c="-0"}r=`${n+s}.${i}.${o}${c}`}else if(l){r=`>=${s}.0.0${c} <${+s+1}.0.0-0`}else if(h){r=`>=${s}.${i}.0${c} <${s}.${+i+1}.0-0`}a("xRange return",r);return r}))};const replaceStars=(e,t)=>{a("replaceStars",e,t);return e.trim().replace(u[l.STAR],"")};const replaceGTE0=(e,t)=>{a("replaceGTE0",e,t);return e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")};const hyphenReplace=e=>(t,r,n,s,i,o,a,c,u,l,h,p,d)=>{if(isX(n)){r=""}else if(isX(s)){r=`>=${n}.0.0${e?"-0":""}`}else if(isX(i)){r=`>=${n}.${s}.0${e?"-0":""}`}else if(o){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(u)){c=""}else if(isX(l)){c=`<${+u+1}.0.0-0`}else if(isX(h)){c=`<${u}.${+l+1}.0-0`}else if(p){c=`<=${u}.${l}.${h}-${p}`}else if(e){c=`<${u}.${l}.${+h+1}-0`}else{c=`<=${c}`}return`${r} ${c}`.trim()};const testSet=(e,t,r)=>{for(let r=0;r<e.length;r++){if(!e[r].test(t)){return false}}if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++){a(e[r].semver);if(e[r].semver===o.ANY){continue}if(e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}},97825:(e,t,r)=>{const n=r(55747);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:i}=r(58147);const{re:o,t:a}=r(34351);const c=r(13789);const{compareIdentifiers:u}=r(48307);class SemVer{constructor(e,t){t=c(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid Version: ${e}`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i){return t}}return e}))}this.build=r[5]?r[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(e){n("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){if(typeof e==="string"&&e===this.version){return 0}e=new SemVer(e,this.options)}if(e.version===this.version){return 0}return this.compareMain(e)||this.comparePre(e)}compareMain(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let t=0;do{const r=this.prerelease[t];const s=e.prerelease[t];n("prerelease compare",t,r,s);if(r===undefined&&s===undefined){return 0}else if(s===undefined){return 1}else if(r===undefined){return-1}else if(r===s){continue}else{return u(r,s)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const r=this.build[t];const s=e.build[t];n("prerelease compare",t,r,s);if(r===undefined&&s===undefined){return 0}else if(s===undefined){return 1}else if(r===undefined){return-1}else if(r===s){continue}else{return u(r,s)}}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{let e=this.prerelease.length;while(--e>=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(t){if(u(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},6869:(e,t,r)=>{const n=r(94770);const clean=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},32674:(e,t,r)=>{const n=r(80112);const s=r(14182);const i=r(72062);const o=r(76503);const a=r(51004);const c=r(63285);const cmp=(e,t,r,u)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return s(e,r,u);case">":return i(e,r,u);case">=":return o(e,r,u);case"<":return a(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},49608:(e,t,r)=>{const n=r(97825);const s=r(94770);const{re:i,t:o}=r(34351);const coerce=(e,t)=>{if(e instanceof n){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(i[o.COERCE])}else{let t;while((t=i[o.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||t.index+t[0].length!==r.index+r[0].length){r=t}i[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}i[o.COERCERTL].lastIndex=-1}if(r===null){return null}return s(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};e.exports=coerce},89874:(e,t,r)=>{const n=r(97825);const compareBuild=(e,t,r)=>{const s=new n(e,r);const i=new n(t,r);return s.compare(i)||s.compareBuild(i)};e.exports=compareBuild},98325:(e,t,r)=>{const n=r(71878);const compareLoose=(e,t)=>n(e,t,true);e.exports=compareLoose},71878:(e,t,r)=>{const n=r(97825);const compare=(e,t,r)=>new n(e,r).compare(new n(t,r));e.exports=compare},82464:(e,t,r)=>{const n=r(94770);const s=r(80112);const diff=(e,t)=>{if(s(e,t)){return null}else{const r=n(e);const s=n(t);const i=r.prerelease.length||s.prerelease.length;const o=i?"pre":"";const a=i?"prerelease":"";for(const e in r){if(e==="major"||e==="minor"||e==="patch"){if(r[e]!==s[e]){return o+e}}}return a}};e.exports=diff},80112:(e,t,r)=>{const n=r(71878);const eq=(e,t,r)=>n(e,t,r)===0;e.exports=eq},72062:(e,t,r)=>{const n=r(71878);const gt=(e,t,r)=>n(e,t,r)>0;e.exports=gt},76503:(e,t,r)=>{const n=r(71878);const gte=(e,t,r)=>n(e,t,r)>=0;e.exports=gte},76223:(e,t,r)=>{const n=r(97825);const inc=(e,t,r,s)=>{if(typeof r==="string"){s=r;r=undefined}try{return new n(e instanceof n?e.version:e,r).inc(t,s).version}catch(e){return null}};e.exports=inc},51004:(e,t,r)=>{const n=r(71878);const lt=(e,t,r)=>n(e,t,r)<0;e.exports=lt},63285:(e,t,r)=>{const n=r(71878);const lte=(e,t,r)=>n(e,t,r)<=0;e.exports=lte},86851:(e,t,r)=>{const n=r(97825);const major=(e,t)=>new n(e,t).major;e.exports=major},47443:(e,t,r)=>{const n=r(97825);const minor=(e,t)=>new n(e,t).minor;e.exports=minor},14182:(e,t,r)=>{const n=r(71878);const neq=(e,t,r)=>n(e,t,r)!==0;e.exports=neq},94770:(e,t,r)=>{const{MAX_LENGTH:n}=r(58147);const{re:s,t:i}=r(34351);const o=r(97825);const a=r(13789);const parse=(e,t)=>{t=a(t);if(e instanceof o){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}const r=t.loose?s[i.LOOSE]:s[i.FULL];if(!r.test(e)){return null}try{return new o(e,t)}catch(e){return null}};e.exports=parse},31550:(e,t,r)=>{const n=r(97825);const patch=(e,t)=>new n(e,t).patch;e.exports=patch},93340:(e,t,r)=>{const n=r(94770);const prerelease=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},63119:(e,t,r)=>{const n=r(71878);const rcompare=(e,t,r)=>n(t,e,r);e.exports=rcompare},93379:(e,t,r)=>{const n=r(89874);const rsort=(e,t)=>e.sort(((e,r)=>n(r,e,t)));e.exports=rsort},34140:(e,t,r)=>{const n=r(87058);const satisfies=(e,t,r)=>{try{t=new n(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},87408:(e,t,r)=>{const n=r(89874);const sort=(e,t)=>e.sort(((e,r)=>n(e,r,t)));e.exports=sort},8994:(e,t,r)=>{const n=r(94770);const valid=(e,t)=>{const r=n(e,t);return r?r.version:null};e.exports=valid},21452:(e,t,r)=>{const n=r(34351);const s=r(58147);const i=r(97825);const o=r(48307);const a=r(94770);const c=r(8994);const u=r(6869);const l=r(76223);const h=r(82464);const p=r(86851);const d=r(47443);const y=r(31550);const g=r(93340);const v=r(71878);const b=r(63119);const w=r(98325);const S=r(89874);const x=r(87408);const O=r(93379);const R=r(72062);const k=r(51004);const A=r(80112);const C=r(14182);const P=r(76503);const $=r(63285);const T=r(32674);const j=r(49608);const I=r(12485);const N=r(87058);const M=r(34140);const D=r(58478);const L=r(14430);const B=r(4510);const U=r(82582);const G=r(14499);const z=r(73766);const q=r(93773);const V=r(48626);const H=r(54298);const W=r(66023);const Y=r(45701);e.exports={parse:a,valid:c,clean:u,inc:l,diff:h,major:p,minor:d,patch:y,prerelease:g,compare:v,rcompare:b,compareLoose:w,compareBuild:S,sort:x,rsort:O,gt:R,lt:k,eq:A,neq:C,gte:P,lte:$,cmp:T,coerce:j,Comparator:I,Range:N,satisfies:M,toComparators:D,maxSatisfying:L,minSatisfying:B,minVersion:U,validRange:G,outside:z,gtr:q,ltr:V,intersects:H,simplifyRange:W,subset:Y,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},58147:e=>{const t="2.0.0";const r=256;const n=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;e.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:r,MAX_SAFE_INTEGER:n,MAX_SAFE_COMPONENT_LENGTH:s}},55747:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},48307:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,r)=>{const n=t.test(e);const s=t.test(r);if(n&&s){e=+e;r=+r}return e===r?0:n&&!s?-1:s&&!n?1:e<r?-1:1};const rcompareIdentifiers=(e,t)=>compareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},13789:e=>{const t=["includePrerelease","loose","rtl"];const parseOptions=e=>!e?{}:typeof e!=="object"?{loose:true}:t.filter((t=>e[t])).reduce(((e,t)=>{e[t]=true;return e}),{});e.exports=parseOptions},34351:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(58147);const s=r(55747);t=e.exports={};const i=t.re=[];const o=t.src=[];const a=t.t={};let c=0;const createToken=(e,t,r)=>{const n=c++;s(e,n,t);a[e]=n;o[n]=t;i[n]=new RegExp(t,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.`+`(${o[a.NUMERICIDENTIFIER]})\\.`+`(${o[a.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[a.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${o[a.NUMERICIDENTIFIER]}|${o[a.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NUMERICIDENTIFIERLOOSE]}|${o[a.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`);createToken("FULL",`^${o[a.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`);createToken("LOOSE",`^${o[a.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${o[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${o[a.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})`+`(?:\\.(${o[a.XRANGEIDENTIFIER]})`+`(?:\\.(${o[a.XRANGEIDENTIFIER]})`+`(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})`+`(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${n}})`+`(?:\\.(\\d{1,${n}}))?`+`(?:\\.(\\d{1,${n}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",o[a.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${o[a.LONECARET]}${o[a.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${o[a.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${o[a.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},93773:(e,t,r)=>{const n=r(73766);const gtr=(e,t,r)=>n(e,t,">",r);e.exports=gtr},54298:(e,t,r)=>{const n=r(87058);const intersects=(e,t,r)=>{e=new n(e,r);t=new n(t,r);return e.intersects(t)};e.exports=intersects},48626:(e,t,r)=>{const n=r(73766);const ltr=(e,t,r)=>n(e,t,"<",r);e.exports=ltr},14430:(e,t,r)=>{const n=r(97825);const s=r(87058);const maxSatisfying=(e,t,r)=>{let i=null;let o=null;let a=null;try{a=new s(t,r)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!i||o.compare(e)===-1){i=e;o=new n(i,r)}}}));return i};e.exports=maxSatisfying},4510:(e,t,r)=>{const n=r(97825);const s=r(87058);const minSatisfying=(e,t,r)=>{let i=null;let o=null;let a=null;try{a=new s(t,r)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!i||o.compare(e)===1){i=e;o=new n(i,r)}}}));return i};e.exports=minSatisfying},82582:(e,t,r)=>{const n=r(97825);const s=r(87058);const i=r(72062);const minVersion=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r)){return r}r=new n("0.0.0-0");if(e.test(r)){return r}r=null;for(let t=0;t<e.set.length;++t){const s=e.set[t];let o=null;s.forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!o||i(t,o)){o=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(o&&(!r||i(r,o))){r=o}}if(r&&e.test(r)){return r}return null};e.exports=minVersion},73766:(e,t,r)=>{const n=r(97825);const s=r(12485);const{ANY:i}=s;const o=r(87058);const a=r(34140);const c=r(72062);const u=r(51004);const l=r(63285);const h=r(76503);const outside=(e,t,r,p)=>{e=new n(e,p);t=new o(t,p);let d,y,g,v,b;switch(r){case">":d=c;y=l;g=u;v=">";b=">=";break;case"<":d=u;y=h;g=c;v="<";b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p)){return false}for(let r=0;r<t.set.length;++r){const n=t.set[r];let o=null;let a=null;n.forEach((e=>{if(e.semver===i){e=new s(">=0.0.0")}o=o||e;a=a||e;if(d(e.semver,o.semver,p)){o=e}else if(g(e.semver,a.semver,p)){a=e}}));if(o.operator===v||o.operator===b){return false}if((!a.operator||a.operator===v)&&y(e,a.semver)){return false}else if(a.operator===b&&g(e,a.semver)){return false}}return true};e.exports=outside},66023:(e,t,r)=>{const n=r(34140);const s=r(71878);e.exports=(e,t,r)=>{const i=[];let o=null;let a=null;const c=e.sort(((e,t)=>s(e,t,r)));for(const e of c){const s=n(e,t,r);if(s){a=e;if(!o){o=e}}else{if(a){i.push([o,a])}a=null;o=null}}if(o){i.push([o,null])}const u=[];for(const[e,t]of i){if(e===t){u.push(e)}else if(!t&&e===c[0]){u.push("*")}else if(!t){u.push(`>=${e}`)}else if(e===c[0]){u.push(`<=${t}`)}else{u.push(`${e} - ${t}`)}}const l=u.join(" || ");const h=typeof t.raw==="string"?t.raw:String(t);return l.length<h.length?l:t}},45701:(e,t,r)=>{const n=r(87058);const s=r(12485);const{ANY:i}=s;const o=r(34140);const a=r(71878);const subset=(e,t,r={})=>{if(e===t){return true}e=new n(e,r);t=new n(t,r);let s=false;e:for(const n of e.set){for(const e of t.set){const t=simpleSubset(n,e,r);s=s||t!==null;if(t){continue e}}if(s){return false}}return true};const simpleSubset=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i){return true}else if(r.includePrerelease){e=[new s(">=0.0.0-0")]}else{e=[new s(">=0.0.0")]}}if(t.length===1&&t[0].semver===i){if(r.includePrerelease){return true}else{t=[new s(">=0.0.0")]}}const n=new Set;let c,u;for(const t of e){if(t.operator===">"||t.operator===">="){c=higherGT(c,t,r)}else if(t.operator==="<"||t.operator==="<="){u=lowerLT(u,t,r)}else{n.add(t.semver)}}if(n.size>1){return null}let l;if(c&&u){l=a(c.semver,u.semver,r);if(l>0){return null}else if(l===0&&(c.operator!==">="||u.operator!=="<=")){return null}}for(const e of n){if(c&&!o(e,String(c),r)){return null}if(u&&!o(e,String(u),r)){return null}for(const n of t){if(!o(e,String(n),r)){return false}}return true}let h,p;let d,y;let g=u&&!r.includePrerelease&&u.semver.prerelease.length?u.semver:false;let v=c&&!r.includePrerelease&&c.semver.prerelease.length?c.semver:false;if(g&&g.prerelease.length===1&&u.operator==="<"&&g.prerelease[0]===0){g=false}for(const e of t){y=y||e.operator===">"||e.operator===">=";d=d||e.operator==="<"||e.operator==="<=";if(c){if(v){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch){v=false}}if(e.operator===">"||e.operator===">="){h=higherGT(c,e,r);if(h===e&&h!==c){return false}}else if(c.operator===">="&&!o(c.semver,String(e),r)){return false}}if(u){if(g){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch){g=false}}if(e.operator==="<"||e.operator==="<="){p=lowerLT(u,e,r);if(p===e&&p!==u){return false}}else if(u.operator==="<="&&!o(u.semver,String(e),r)){return false}}if(!e.operator&&(u||c)&&l!==0){return false}}if(c&&d&&!u&&l!==0){return false}if(u&&y&&!c&&l!==0){return false}if(v||g){return false}return true};const higherGT=(e,t,r)=>{if(!e){return t}const n=a(e.semver,t.semver,r);return n>0?e:n<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,r)=>{if(!e){return t}const n=a(e.semver,t.semver,r);return n<0?e:n>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},58478:(e,t,r)=>{const n=r(87058);const toComparators=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},14499:(e,t,r)=>{const n=r(87058);const validRange=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}};e.exports=validRange},50173:(e,t,r)=>{"use strict";
281
+ */var t="";var r;e.exports=repeat;function repeat(e,n){if(typeof e!=="string"){throw new TypeError("expected a string")}if(n===1)return e;if(n===2)return e+e;var s=e.length*n;if(r!==e||typeof r==="undefined"){r=e;t=""}else if(t.length>=s){return t.substr(0,s)}while(s>t.length&&n>1){if(n&1){t+=e}n>>=1;e+=e}t+=e;t=t.substr(0,s);return t}},85810:(e,t,r)=>{"use strict";const n=r(12781).Readable;const s=r(14162);class Response extends n{constructor(e,t,r,n){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(r instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof n!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=s(t);this.body=r;this.url=n}_read(){this.push(this.body);this.push(null)}}e.exports=Response},55040:(e,t,r)=>{var n=r(22820);var s=r(74309);var i=r(55984);var o=r(94976);e.exports=function(e){var t=0,r,a,c={type:s.ROOT,stack:[]},u=c,l=c.stack,h=[];var repeatErr=function(t){n.error(e,"Nothing to repeat at column "+(t-1))};var p=n.strToChars(e);r=p.length;while(t<r){a=p[t++];switch(a){case"\\":a=p[t++];switch(a){case"b":l.push(o.wordBoundary());break;case"B":l.push(o.nonWordBoundary());break;case"w":l.push(i.words());break;case"W":l.push(i.notWords());break;case"d":l.push(i.ints());break;case"D":l.push(i.notInts());break;case"s":l.push(i.whitespace());break;case"S":l.push(i.notWhitespace());break;default:if(/\d/.test(a)){l.push({type:s.REFERENCE,value:parseInt(a,10)})}else{l.push({type:s.CHAR,value:a.charCodeAt(0)})}}break;case"^":l.push(o.begin());break;case"$":l.push(o.end());break;case"[":var d;if(p[t]==="^"){d=true;t++}else{d=false}var y=n.tokenizeClass(p.slice(t),e);t+=y[1];l.push({type:s.SET,set:y[0],not:d});break;case".":l.push(i.anyChar());break;case"(":var g={type:s.GROUP,stack:[],remember:true};a=p[t];if(a==="?"){a=p[t+1];t+=2;if(a==="="){g.followedBy=true}else if(a==="!"){g.notFollowedBy=true}else if(a!==":"){n.error(e,"Invalid group, character '"+a+"' after '?' at column "+(t-1))}g.remember=false}l.push(g);h.push(u);u=g;l=g.stack;break;case")":if(h.length===0){n.error(e,"Unmatched ) at column "+(t-1))}u=h.pop();l=u.options?u.options[u.options.length-1]:u.stack;break;case"|":if(!u.options){u.options=[u.stack];delete u.stack}var v=[];u.options.push(v);l=v;break;case"{":var b=/^(\d+)(,(\d+)?)?\}/.exec(p.slice(t)),w,S;if(b!==null){if(l.length===0){repeatErr(t)}w=parseInt(b[1],10);S=b[2]?b[3]?parseInt(b[3],10):Infinity:w;t+=b[0].length;l.push({type:s.REPETITION,min:w,max:S,value:l.pop()})}else{l.push({type:s.CHAR,value:123})}break;case"?":if(l.length===0){repeatErr(t)}l.push({type:s.REPETITION,min:0,max:1,value:l.pop()});break;case"+":if(l.length===0){repeatErr(t)}l.push({type:s.REPETITION,min:1,max:Infinity,value:l.pop()});break;case"*":if(l.length===0){repeatErr(t)}l.push({type:s.REPETITION,min:0,max:Infinity,value:l.pop()});break;default:l.push({type:s.CHAR,value:a.charCodeAt(0)})}}if(h.length!==0){n.error(e,"Unterminated group")}return c};e.exports.types=s},94976:(e,t,r)=>{var n=r(74309);t.wordBoundary=function(){return{type:n.POSITION,value:"b"}};t.nonWordBoundary=function(){return{type:n.POSITION,value:"B"}};t.begin=function(){return{type:n.POSITION,value:"^"}};t.end=function(){return{type:n.POSITION,value:"$"}}},55984:(e,t,r)=>{var n=r(74309);var INTS=function(){return[{type:n.RANGE,from:48,to:57}]};var WORDS=function(){return[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(INTS())};var WHITESPACE=function(){return[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.CHAR,value:6158},{type:n.CHAR,value:8192},{type:n.CHAR,value:8193},{type:n.CHAR,value:8194},{type:n.CHAR,value:8195},{type:n.CHAR,value:8196},{type:n.CHAR,value:8197},{type:n.CHAR,value:8198},{type:n.CHAR,value:8199},{type:n.CHAR,value:8200},{type:n.CHAR,value:8201},{type:n.CHAR,value:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}]};var NOTANYCHAR=function(){return[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}]};t.words=function(){return{type:n.SET,set:WORDS(),not:false}};t.notWords=function(){return{type:n.SET,set:WORDS(),not:true}};t.ints=function(){return{type:n.SET,set:INTS(),not:false}};t.notInts=function(){return{type:n.SET,set:INTS(),not:true}};t.whitespace=function(){return{type:n.SET,set:WHITESPACE(),not:false}};t.notWhitespace=function(){return{type:n.SET,set:WHITESPACE(),not:true}};t.anyChar=function(){return{type:n.SET,set:NOTANYCHAR(),not:true}}},74309:e=>{e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},22820:(e,t,r)=>{var n=r(74309);var s=r(55984);var i="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?";var o={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){var t=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z\[\\\]\^?])|([0tnvfr]))/g;e=e.replace(t,(function(e,t,r,n,s,a,c,u){if(r){return e}var l=t?8:n?parseInt(n,16):s?parseInt(s,16):a?parseInt(a,8):c?i.indexOf(c):o[u];var h=String.fromCharCode(l);if(/[\[\]{}\^$.|?*+()]/.test(h)){h="\\"+h}return h}));return e};t.tokenizeClass=function(e,r){var i=[];var o=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?(.)/g;var a,c;while((a=o.exec(e))!=null){if(a[1]){i.push(s.words())}else if(a[2]){i.push(s.ints())}else if(a[3]){i.push(s.whitespace())}else if(a[4]){i.push(s.notWords())}else if(a[5]){i.push(s.notInts())}else if(a[6]){i.push(s.notWhitespace())}else if(a[7]){i.push({type:n.RANGE,from:(a[8]||a[9]).charCodeAt(0),to:a[10].charCodeAt(0)})}else if(c=a[12]){i.push({type:n.CHAR,value:c.charCodeAt(0)})}else{return[i,o.lastIndex]}}t.error(r,"Unterminated character class")};t.error=function(e,t){throw new SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},36862:(e,t,r)=>{e.exports=r(96097)},96097:(e,t,r)=>{var n=r(56848);t.operation=function(e){var r=t.timeouts(e);return new n(r,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};t.timeouts=function(e){if(e instanceof Array){return[].concat(e)}var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false};for(var r in e){t[r]=e[r]}if(t.minTimeout>t.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var n=[];for(var s=0;s<t.retries;s++){n.push(this.createTimeout(s,t))}if(e&&e.forever&&!n.length){n.push(this.createTimeout(s,t))}n.sort((function(e,t){return e-t}));return n};t.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1;var n=Math.round(r*t.minTimeout*Math.pow(t.factor,e));n=Math.min(n,t.maxTimeout);return n};t.wrap=function(e,r,n){if(r instanceof Array){n=r;r=null}if(!n){n=[];for(var s in e){if(typeof e[s]==="function"){n.push(s)}}}for(var i=0;i<n.length;i++){var o=n[i];var a=e[o];e[o]=function retryWrapper(n){var s=t.operation(r);var i=Array.prototype.slice.call(arguments,1);var o=i.pop();i.push((function(e){if(s.retry(e)){return}if(e){arguments[0]=s.mainError()}o.apply(this,arguments)}));s.attempt((function(){n.apply(e,i)}))}.bind(e,a);e[o].options=r}}},56848:e=>{function RetryOperation(e,t){if(typeof t==="boolean"){t={forever:t}}this._originalTimeouts=JSON.parse(JSON.stringify(e));this._timeouts=e;this._options=t||{};this._maxRetryTime=t&&t.maxRetryTime||Infinity;this._fn=null;this._errors=[];this._attempts=1;this._operationTimeout=null;this._operationTimeoutCb=null;this._timeout=null;this._operationStart=null;if(this._options.forever){this._cachedTimeouts=this._timeouts.slice(0)}}e.exports=RetryOperation;RetryOperation.prototype.reset=function(){this._attempts=1;this._timeouts=this._originalTimeouts};RetryOperation.prototype.stop=function(){if(this._timeout){clearTimeout(this._timeout)}this._timeouts=[];this._cachedTimeouts=null};RetryOperation.prototype.retry=function(e){if(this._timeout){clearTimeout(this._timeout)}if(!e){return false}var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime){this._errors.unshift(new Error("RetryOperation timeout occurred"));return false}this._errors.push(e);var r=this._timeouts.shift();if(r===undefined){if(this._cachedTimeouts){this._errors.splice(this._errors.length-1,this._errors.length);this._timeouts=this._cachedTimeouts.slice(0);r=this._timeouts.shift()}else{return false}}var n=this;var s=setTimeout((function(){n._attempts++;if(n._operationTimeoutCb){n._timeout=setTimeout((function(){n._operationTimeoutCb(n._attempts)}),n._operationTimeout);if(n._options.unref){n._timeout.unref()}}n._fn(n._attempts)}),r);if(this._options.unref){s.unref()}return true};RetryOperation.prototype.attempt=function(e,t){this._fn=e;if(t){if(t.timeout){this._operationTimeout=t.timeout}if(t.cb){this._operationTimeoutCb=t.cb}}var r=this;if(this._operationTimeoutCb){this._timeout=setTimeout((function(){r._operationTimeoutCb()}),r._operationTimeout)}this._operationStart=(new Date).getTime();this._fn(this._attempts)};RetryOperation.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated");this.attempt(e)};RetryOperation.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated");this.attempt(e)};RetryOperation.prototype.start=RetryOperation.prototype.try;RetryOperation.prototype.errors=function(){return this._errors};RetryOperation.prototype.attempts=function(){return this._attempts};RetryOperation.prototype.mainError=function(){if(this._errors.length===0){return null}var e={};var t=null;var r=0;for(var n=0;n<this._errors.length;n++){var s=this._errors[n];var i=s.message;var o=(e[i]||0)+1;e[i]=o;if(o>=r){t=s;r=o}}return t}},65055:(e,t,r)=>{var n=r(14300);var s=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return s(e,t,r)}SafeBuffer.prototype=Object.create(s.prototype);copyProps(s,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return s(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=s(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return s(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},86849:(e,t,r)=>{var n=r(55040);var s=n.types;e.exports=function(e,t){if(!t)t={};var r=t.limit===undefined?25:t.limit;if(isRegExp(e))e=e.source;else if(typeof e!=="string")e=String(e);try{e=n(e)}catch(e){return false}var i=0;return function walk(e,t){if(e.type===s.REPETITION){t++;i++;if(t>1)return false;if(i>r)return false}if(e.options){for(var n=0,o=e.options.length;n<o;n++){var a=walk({stack:e.options[n]},t);if(!a)return false}}var c=e.stack||e.value&&e.value.stack;if(!c)return true;for(var n=0;n<c.length;n++){var a=walk(c[n],t);if(!a)return false}return true}(e,0)};function isRegExp(e){return{}.toString.call(e)==="[object RegExp]"}},49319:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var s=Number.MAX_SAFE_INTEGER||9007199254740991;var i=16;var o=t.re=[];var a=t.src=[];var c=0;var u=c++;a[u]="0|[1-9]\\d*";var l=c++;a[l]="[0-9]+";var h=c++;a[h]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=c++;a[p]="("+a[u]+")\\."+"("+a[u]+")\\."+"("+a[u]+")";var d=c++;a[d]="("+a[l]+")\\."+"("+a[l]+")\\."+"("+a[l]+")";var y=c++;a[y]="(?:"+a[u]+"|"+a[h]+")";var g=c++;a[g]="(?:"+a[l]+"|"+a[h]+")";var v=c++;a[v]="(?:-("+a[y]+"(?:\\."+a[y]+")*))";var b=c++;a[b]="(?:-?("+a[g]+"(?:\\."+a[g]+")*))";var w=c++;a[w]="[0-9A-Za-z-]+";var S=c++;a[S]="(?:\\+("+a[w]+"(?:\\."+a[w]+")*))";var x=c++;var O="v?"+a[p]+a[v]+"?"+a[S]+"?";a[x]="^"+O+"$";var R="[v=\\s]*"+a[d]+a[b]+"?"+a[S]+"?";var k=c++;a[k]="^"+R+"$";var A=c++;a[A]="((?:<|>)?=?)";var P=c++;a[P]=a[l]+"|x|X|\\*";var C=c++;a[C]=a[u]+"|x|X|\\*";var $=c++;a[$]="[v=\\s]*("+a[C]+")"+"(?:\\.("+a[C]+")"+"(?:\\.("+a[C]+")"+"(?:"+a[v]+")?"+a[S]+"?"+")?)?";var T=c++;a[T]="[v=\\s]*("+a[P]+")"+"(?:\\.("+a[P]+")"+"(?:\\.("+a[P]+")"+"(?:"+a[b]+")?"+a[S]+"?"+")?)?";var j=c++;a[j]="^"+a[A]+"\\s*"+a[$]+"$";var I=c++;a[I]="^"+a[A]+"\\s*"+a[T]+"$";var N=c++;a[N]="(?:^|[^\\d])"+"(\\d{1,"+i+"})"+"(?:\\.(\\d{1,"+i+"}))?"+"(?:\\.(\\d{1,"+i+"}))?"+"(?:$|[^\\d])";var M=c++;a[M]="(?:~>?)";var D=c++;a[D]="(\\s*)"+a[M]+"\\s+";o[D]=new RegExp(a[D],"g");var L="$1~";var B=c++;a[B]="^"+a[M]+a[$]+"$";var U=c++;a[U]="^"+a[M]+a[T]+"$";var G=c++;a[G]="(?:\\^)";var z=c++;a[z]="(\\s*)"+a[G]+"\\s+";o[z]=new RegExp(a[z],"g");var V="$1^";var q=c++;a[q]="^"+a[G]+a[$]+"$";var H=c++;a[H]="^"+a[G]+a[T]+"$";var W=c++;a[W]="^"+a[A]+"\\s*("+R+")$|^$";var K=c++;a[K]="^"+a[A]+"\\s*("+O+")$|^$";var Y=c++;a[Y]="(\\s*)"+a[A]+"\\s*("+R+"|"+a[$]+")";o[Y]=new RegExp(a[Y],"g");var J="$1$2$3";var Z=c++;a[Z]="^\\s*("+a[$]+")"+"\\s+-\\s+"+"("+a[$]+")"+"\\s*$";var X=c++;a[X]="^\\s*("+a[T]+")"+"\\s+-\\s+"+"("+a[T]+")"+"\\s*$";var Q=c++;a[Q]="(<|>)?=?\\s*\\*";for(var ee=0;ee<c;ee++){r(ee,a[ee]);if(!o[ee]){o[ee]=new RegExp(a[ee])}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}var r=t.loose?o[k]:o[x];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var i=e.trim().match(t.loose?o[k]:o[x]);if(!i){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>s||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>s||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>s||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<s){return t}}return e}))}this.build=i[5]?i[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(e){r("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var n=this.prerelease[t];var s=e.prerelease[t];r("prerelease compare",t,n,s);if(n===undefined&&s===undefined){return 0}else if(s===undefined){return 1}else if(n===undefined){return-1}else if(n===s){continue}else{return compareIdentifiers(n,s)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var s="";if(r.prerelease.length||n.prerelease.length){s="pre";var i="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return s+o}}}return i}}t.compareIdentifiers=compareIdentifiers;var te=/^[0-9]+$/;function compareIdentifiers(e,t){var r=te.test(e);var n=te.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.rcompare=rcompare;function rcompare(e,t,r){return compare(t,e,r)}t.sort=sort;function sort(e,r){return e.sort((function(e,n){return t.compare(e,n,r)}))}t.rsort=rsort;function rsort(e,r){return e.sort((function(e,n){return t.rcompare(e,n,r)}))}t.gt=gt;function gt(e,t,r){return compare(e,t,r)>0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===re){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var re={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[W]:o[K];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=re}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===re){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var i=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||s||i&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[X]:o[Z];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[Y],J);r("comparator trim",e,o[Y]);e=e.replace(o[D],L);e=e.replace(o[z],V);e=e.split(/\s+/).join(" ");var s=t?o[W]:o[K];var i=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){i=i.filter((function(e){return!!e.match(s)}))}i=i.map((function(e){return new Comparator(e,this.options)}),this);return i};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(r){return r.every((function(r){return e.set.some((function(e){return e.every((function(e){return r.intersects(e,t)}))}))}))}))};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var n=t.loose?o[U]:o[B];return e.replace(n,(function(t,n,s,i,o){r("tilde",e,t,n,s,i,o);var a;if(isX(n)){a=""}else if(isX(s)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(i)){a=">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+s+"."+i+"-"+o+" <"+n+"."+(+s+1)+".0"}else{a=">="+n+"."+s+"."+i+" <"+n+"."+(+s+1)+".0"}r("tilde return",a);return a}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[H]:o[q];return e.replace(n,(function(t,n,s,i,o){r("caret",e,t,n,s,i,o);var a;if(isX(n)){a=""}else if(isX(s)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(i)){if(n==="0"){a=">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0"}else{a=">="+n+"."+s+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(s==="0"){a=">="+n+"."+s+"."+i+"-"+o+" <"+n+"."+s+"."+(+i+1)}else{a=">="+n+"."+s+"."+i+"-"+o+" <"+n+"."+(+s+1)+".0"}}else{a=">="+n+"."+s+"."+i+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(s==="0"){a=">="+n+"."+s+"."+i+" <"+n+"."+s+"."+(+i+1)}else{a=">="+n+"."+s+"."+i+" <"+n+"."+(+s+1)+".0"}}else{a=">="+n+"."+s+"."+i+" <"+(+n+1)+".0.0"}}r("caret return",a);return a}))}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[I]:o[j];return e.replace(n,(function(t,n,s,i,o,a){r("xRange",e,t,n,s,i,o,a);var c=isX(s);var u=c||isX(i);var l=u||isX(o);var h=l;if(n==="="&&h){n=""}if(c){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&h){if(u){i=0}o=0;if(n===">"){n=">=";if(u){s=+s+1;i=0;o=0}else{i=+i+1;o=0}}else if(n==="<="){n="<";if(u){s=+s+1}else{i=+i+1}}t=n+s+"."+i+"."+o}else if(u){t=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(l){t=">="+s+"."+i+".0 <"+s+"."+(+i+1)+".0"}r("xRange return",t);return t}))}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[Q],"")}function hyphenReplace(e,t,r,n,s,i,o,a,c,u,l,h,p){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(s)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(h){a="<="+c+"."+u+"."+l+"-"+h}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,n){for(var s=0;s<e.length;s++){if(!e[s].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(s=0;s<e.length;s++){r(e[s].semver);if(e[s].semver===re){continue}if(e[s].semver.prerelease.length>0){var i=e[s].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var s=null;try{var i=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(i.test(e)){if(!n||s.compare(e)===-1){n=e;s=new SemVer(n,r)}}}));return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var s=null;try{var i=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(i.test(e)){if(!n||s.compare(e)===1){n=e;s=new SemVer(n,r)}}}));return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n<e.set.length;++n){var s=e.set[n];s.forEach((function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var s,i,o,a,c;switch(r){case">":s=gt;i=lte;o=lt;a=">";c=">=";break;case"<":s=lt;i=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u<t.set.length;++u){var l=t.set[u];var h=null;var p=null;l.forEach((function(e){if(e.semver===re){e=new Comparator(">=0.0.0")}h=h||e;p=p||e;if(s(e.semver,h.semver,n)){h=e}else if(o(e.semver,p.semver,n)){p=e}}));if(h.operator===a||h.operator===c){return false}if((!p.operator||p.operator===a)&&i(e,p.semver)){return false}else if(p.operator===c&&o(e,p.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(o[N]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},12485:(e,t,r)=>{const n=Symbol("SemVer ANY");class Comparator{static get ANY(){return n}constructor(e,t){t=s(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}c("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===n){this.value=""}else{this.value=this.operator+this.semver.version}c("comp",this)}parse(e){const t=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=n}else{this.semver=new u(r[2],this.options.loose)}}toString(){return this.value}test(e){c("Comparator.test",e,this.options.loose);if(this.semver===n||e===n){return true}if(typeof e==="string"){try{e=new u(e,this.options)}catch(e){return false}}return a(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new l(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new l(this.value,t).test(e.semver)}const r=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const n=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const s=this.semver.version===e.semver.version;const i=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const o=a(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const c=a(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return r||n||s&&i||o||c}}e.exports=Comparator;const s=r(13789);const{re:i,t:o}=r(34351);const a=r(32674);const c=r(55747);const u=r(97825);const l=r(87058)},87058:(e,t,r)=>{class Range{constructor(e,t){t=i(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof o){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=Object.keys(this.options).join(",");const r=`parseRange:${t}:${e}`;const n=s.get(r);if(n){return n}const i=this.options.loose;const c=i?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(c,hyphenReplace(this.options.includePrerelease));a("hyphen replace",e);e=e.replace(u[l.COMPARATORTRIM],h);a("comparator trim",e);e=e.replace(u[l.TILDETRIM],p);e=e.replace(u[l.CARETTRIM],d);e=e.split(/\s+/).join(" ");let y=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(i){y=y.filter((e=>{a("loose invalid filter",e,this.options);return!!e.match(u[l.COMPARATORLOOSE])}))}a("range list",y);const g=new Map;const v=y.map((e=>new o(e,this.options)));for(const e of v){if(isNullSet(e)){return[e]}g.set(e.value,e)}if(g.size>1&&g.has("")){g.delete("")}const b=[...g.values()];s.set(r,b);return b}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((r=>isSatisfiable(r,t)&&e.set.some((e=>isSatisfiable(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new c(e,this.options)}catch(e){return false}}for(let t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false}}e.exports=Range;const n=r(98443);const s=new n({max:1e3});const i=r(13789);const o=r(12485);const a=r(55747);const c=r(97825);const{re:u,t:l,comparatorTrimReplace:h,tildeTrimReplace:p,caretTrimReplace:d}=r(34351);const isNullSet=e=>e.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let r=true;const n=e.slice();let s=n.pop();while(r&&n.length){r=n.every((e=>s.intersects(e,t)));s=n.pop()}return r};const parseComparator=(e,t)=>{a("comp",e,t);e=replaceCarets(e,t);a("caret",e);e=replaceTildes(e,t);a("tildes",e);e=replaceXRanges(e,t);a("xrange",e);e=replaceStars(e,t);a("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const r=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(r,((t,r,n,s,i)=>{a("tilde",e,t,r,n,s,i);let o;if(isX(r)){o=""}else if(isX(n)){o=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(s)){o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`}else if(i){a("replaceTilde pr",i);o=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`}else{o=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`}a("tilde return",o);return o}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{a("caret",e,t);const r=t.loose?u[l.CARETLOOSE]:u[l.CARET];const n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,o)=>{a("caret",e,t,r,s,i,o);let c;if(isX(r)){c=""}else if(isX(s)){c=`>=${r}.0.0${n} <${+r+1}.0.0-0`}else if(isX(i)){if(r==="0"){c=`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`}else{c=`>=${r}.${s}.0${n} <${+r+1}.0.0-0`}}else if(o){a("replaceCaret pr",o);if(r==="0"){if(s==="0"){c=`>=${r}.${s}.${i}-${o} <${r}.${s}.${+i+1}-0`}else{c=`>=${r}.${s}.${i}-${o} <${r}.${+s+1}.0-0`}}else{c=`>=${r}.${s}.${i}-${o} <${+r+1}.0.0-0`}}else{a("no pr");if(r==="0"){if(s==="0"){c=`>=${r}.${s}.${i}${n} <${r}.${s}.${+i+1}-0`}else{c=`>=${r}.${s}.${i}${n} <${r}.${+s+1}.0-0`}}else{c=`>=${r}.${s}.${i} <${+r+1}.0.0-0`}}a("caret return",c);return c}))};const replaceXRanges=(e,t)=>{a("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(r,((r,n,s,i,o,c)=>{a("xRange",e,r,n,s,i,o,c);const u=isX(s);const l=u||isX(i);const h=l||isX(o);const p=h;if(n==="="&&p){n=""}c=t.includePrerelease?"-0":"";if(u){if(n===">"||n==="<"){r="<0.0.0-0"}else{r="*"}}else if(n&&p){if(l){i=0}o=0;if(n===">"){n=">=";if(l){s=+s+1;i=0;o=0}else{i=+i+1;o=0}}else if(n==="<="){n="<";if(l){s=+s+1}else{i=+i+1}}if(n==="<"){c="-0"}r=`${n+s}.${i}.${o}${c}`}else if(l){r=`>=${s}.0.0${c} <${+s+1}.0.0-0`}else if(h){r=`>=${s}.${i}.0${c} <${s}.${+i+1}.0-0`}a("xRange return",r);return r}))};const replaceStars=(e,t)=>{a("replaceStars",e,t);return e.trim().replace(u[l.STAR],"")};const replaceGTE0=(e,t)=>{a("replaceGTE0",e,t);return e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")};const hyphenReplace=e=>(t,r,n,s,i,o,a,c,u,l,h,p,d)=>{if(isX(n)){r=""}else if(isX(s)){r=`>=${n}.0.0${e?"-0":""}`}else if(isX(i)){r=`>=${n}.${s}.0${e?"-0":""}`}else if(o){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(u)){c=""}else if(isX(l)){c=`<${+u+1}.0.0-0`}else if(isX(h)){c=`<${u}.${+l+1}.0-0`}else if(p){c=`<=${u}.${l}.${h}-${p}`}else if(e){c=`<${u}.${l}.${+h+1}-0`}else{c=`<=${c}`}return`${r} ${c}`.trim()};const testSet=(e,t,r)=>{for(let r=0;r<e.length;r++){if(!e[r].test(t)){return false}}if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++){a(e[r].semver);if(e[r].semver===o.ANY){continue}if(e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}},97825:(e,t,r)=>{const n=r(55747);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:i}=r(58147);const{re:o,t:a}=r(34351);const c=r(13789);const{compareIdentifiers:u}=r(48307);class SemVer{constructor(e,t){t=c(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid Version: ${e}`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i){return t}}return e}))}this.build=r[5]?r[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(e){n("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){if(typeof e==="string"&&e===this.version){return 0}e=new SemVer(e,this.options)}if(e.version===this.version){return 0}return this.compareMain(e)||this.comparePre(e)}compareMain(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let t=0;do{const r=this.prerelease[t];const s=e.prerelease[t];n("prerelease compare",t,r,s);if(r===undefined&&s===undefined){return 0}else if(s===undefined){return 1}else if(r===undefined){return-1}else if(r===s){continue}else{return u(r,s)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const r=this.build[t];const s=e.build[t];n("prerelease compare",t,r,s);if(r===undefined&&s===undefined){return 0}else if(s===undefined){return 1}else if(r===undefined){return-1}else if(r===s){continue}else{return u(r,s)}}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{let e=this.prerelease.length;while(--e>=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(t){if(u(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},6869:(e,t,r)=>{const n=r(94770);const clean=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},32674:(e,t,r)=>{const n=r(80112);const s=r(14182);const i=r(72062);const o=r(76503);const a=r(51004);const c=r(63285);const cmp=(e,t,r,u)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return s(e,r,u);case">":return i(e,r,u);case">=":return o(e,r,u);case"<":return a(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},49608:(e,t,r)=>{const n=r(97825);const s=r(94770);const{re:i,t:o}=r(34351);const coerce=(e,t)=>{if(e instanceof n){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(i[o.COERCE])}else{let t;while((t=i[o.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||t.index+t[0].length!==r.index+r[0].length){r=t}i[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}i[o.COERCERTL].lastIndex=-1}if(r===null){return null}return s(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};e.exports=coerce},89874:(e,t,r)=>{const n=r(97825);const compareBuild=(e,t,r)=>{const s=new n(e,r);const i=new n(t,r);return s.compare(i)||s.compareBuild(i)};e.exports=compareBuild},98325:(e,t,r)=>{const n=r(71878);const compareLoose=(e,t)=>n(e,t,true);e.exports=compareLoose},71878:(e,t,r)=>{const n=r(97825);const compare=(e,t,r)=>new n(e,r).compare(new n(t,r));e.exports=compare},82464:(e,t,r)=>{const n=r(94770);const s=r(80112);const diff=(e,t)=>{if(s(e,t)){return null}else{const r=n(e);const s=n(t);const i=r.prerelease.length||s.prerelease.length;const o=i?"pre":"";const a=i?"prerelease":"";for(const e in r){if(e==="major"||e==="minor"||e==="patch"){if(r[e]!==s[e]){return o+e}}}return a}};e.exports=diff},80112:(e,t,r)=>{const n=r(71878);const eq=(e,t,r)=>n(e,t,r)===0;e.exports=eq},72062:(e,t,r)=>{const n=r(71878);const gt=(e,t,r)=>n(e,t,r)>0;e.exports=gt},76503:(e,t,r)=>{const n=r(71878);const gte=(e,t,r)=>n(e,t,r)>=0;e.exports=gte},76223:(e,t,r)=>{const n=r(97825);const inc=(e,t,r,s)=>{if(typeof r==="string"){s=r;r=undefined}try{return new n(e instanceof n?e.version:e,r).inc(t,s).version}catch(e){return null}};e.exports=inc},51004:(e,t,r)=>{const n=r(71878);const lt=(e,t,r)=>n(e,t,r)<0;e.exports=lt},63285:(e,t,r)=>{const n=r(71878);const lte=(e,t,r)=>n(e,t,r)<=0;e.exports=lte},86851:(e,t,r)=>{const n=r(97825);const major=(e,t)=>new n(e,t).major;e.exports=major},47443:(e,t,r)=>{const n=r(97825);const minor=(e,t)=>new n(e,t).minor;e.exports=minor},14182:(e,t,r)=>{const n=r(71878);const neq=(e,t,r)=>n(e,t,r)!==0;e.exports=neq},94770:(e,t,r)=>{const{MAX_LENGTH:n}=r(58147);const{re:s,t:i}=r(34351);const o=r(97825);const a=r(13789);const parse=(e,t)=>{t=a(t);if(e instanceof o){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}const r=t.loose?s[i.LOOSE]:s[i.FULL];if(!r.test(e)){return null}try{return new o(e,t)}catch(e){return null}};e.exports=parse},31550:(e,t,r)=>{const n=r(97825);const patch=(e,t)=>new n(e,t).patch;e.exports=patch},93340:(e,t,r)=>{const n=r(94770);const prerelease=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},63119:(e,t,r)=>{const n=r(71878);const rcompare=(e,t,r)=>n(t,e,r);e.exports=rcompare},93379:(e,t,r)=>{const n=r(89874);const rsort=(e,t)=>e.sort(((e,r)=>n(r,e,t)));e.exports=rsort},34140:(e,t,r)=>{const n=r(87058);const satisfies=(e,t,r)=>{try{t=new n(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},87408:(e,t,r)=>{const n=r(89874);const sort=(e,t)=>e.sort(((e,r)=>n(e,r,t)));e.exports=sort},8994:(e,t,r)=>{const n=r(94770);const valid=(e,t)=>{const r=n(e,t);return r?r.version:null};e.exports=valid},21452:(e,t,r)=>{const n=r(34351);const s=r(58147);const i=r(97825);const o=r(48307);const a=r(94770);const c=r(8994);const u=r(6869);const l=r(76223);const h=r(82464);const p=r(86851);const d=r(47443);const y=r(31550);const g=r(93340);const v=r(71878);const b=r(63119);const w=r(98325);const S=r(89874);const x=r(87408);const O=r(93379);const R=r(72062);const k=r(51004);const A=r(80112);const P=r(14182);const C=r(76503);const $=r(63285);const T=r(32674);const j=r(49608);const I=r(12485);const N=r(87058);const M=r(34140);const D=r(58478);const L=r(14430);const B=r(4510);const U=r(82582);const G=r(14499);const z=r(73766);const V=r(93773);const q=r(48626);const H=r(54298);const W=r(66023);const K=r(45701);e.exports={parse:a,valid:c,clean:u,inc:l,diff:h,major:p,minor:d,patch:y,prerelease:g,compare:v,rcompare:b,compareLoose:w,compareBuild:S,sort:x,rsort:O,gt:R,lt:k,eq:A,neq:P,gte:C,lte:$,cmp:T,coerce:j,Comparator:I,Range:N,satisfies:M,toComparators:D,maxSatisfying:L,minSatisfying:B,minVersion:U,validRange:G,outside:z,gtr:V,ltr:q,intersects:H,simplifyRange:W,subset:K,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},58147:e=>{const t="2.0.0";const r=256;const n=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;e.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:r,MAX_SAFE_INTEGER:n,MAX_SAFE_COMPONENT_LENGTH:s}},55747:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},48307:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,r)=>{const n=t.test(e);const s=t.test(r);if(n&&s){e=+e;r=+r}return e===r?0:n&&!s?-1:s&&!n?1:e<r?-1:1};const rcompareIdentifiers=(e,t)=>compareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},13789:e=>{const t=["includePrerelease","loose","rtl"];const parseOptions=e=>!e?{}:typeof e!=="object"?{loose:true}:t.filter((t=>e[t])).reduce(((e,t)=>{e[t]=true;return e}),{});e.exports=parseOptions},34351:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(58147);const s=r(55747);t=e.exports={};const i=t.re=[];const o=t.src=[];const a=t.t={};let c=0;const createToken=(e,t,r)=>{const n=c++;s(e,n,t);a[e]=n;o[n]=t;i[n]=new RegExp(t,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.`+`(${o[a.NUMERICIDENTIFIER]})\\.`+`(${o[a.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[a.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${o[a.NUMERICIDENTIFIER]}|${o[a.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NUMERICIDENTIFIERLOOSE]}|${o[a.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`);createToken("FULL",`^${o[a.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`);createToken("LOOSE",`^${o[a.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${o[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${o[a.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})`+`(?:\\.(${o[a.XRANGEIDENTIFIER]})`+`(?:\\.(${o[a.XRANGEIDENTIFIER]})`+`(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})`+`(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${n}})`+`(?:\\.(\\d{1,${n}}))?`+`(?:\\.(\\d{1,${n}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",o[a.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${o[a.LONECARET]}${o[a.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${o[a.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${o[a.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},93773:(e,t,r)=>{const n=r(73766);const gtr=(e,t,r)=>n(e,t,">",r);e.exports=gtr},54298:(e,t,r)=>{const n=r(87058);const intersects=(e,t,r)=>{e=new n(e,r);t=new n(t,r);return e.intersects(t)};e.exports=intersects},48626:(e,t,r)=>{const n=r(73766);const ltr=(e,t,r)=>n(e,t,"<",r);e.exports=ltr},14430:(e,t,r)=>{const n=r(97825);const s=r(87058);const maxSatisfying=(e,t,r)=>{let i=null;let o=null;let a=null;try{a=new s(t,r)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!i||o.compare(e)===-1){i=e;o=new n(i,r)}}}));return i};e.exports=maxSatisfying},4510:(e,t,r)=>{const n=r(97825);const s=r(87058);const minSatisfying=(e,t,r)=>{let i=null;let o=null;let a=null;try{a=new s(t,r)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!i||o.compare(e)===1){i=e;o=new n(i,r)}}}));return i};e.exports=minSatisfying},82582:(e,t,r)=>{const n=r(97825);const s=r(87058);const i=r(72062);const minVersion=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r)){return r}r=new n("0.0.0-0");if(e.test(r)){return r}r=null;for(let t=0;t<e.set.length;++t){const s=e.set[t];let o=null;s.forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!o||i(t,o)){o=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(o&&(!r||i(r,o))){r=o}}if(r&&e.test(r)){return r}return null};e.exports=minVersion},73766:(e,t,r)=>{const n=r(97825);const s=r(12485);const{ANY:i}=s;const o=r(87058);const a=r(34140);const c=r(72062);const u=r(51004);const l=r(63285);const h=r(76503);const outside=(e,t,r,p)=>{e=new n(e,p);t=new o(t,p);let d,y,g,v,b;switch(r){case">":d=c;y=l;g=u;v=">";b=">=";break;case"<":d=u;y=h;g=c;v="<";b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p)){return false}for(let r=0;r<t.set.length;++r){const n=t.set[r];let o=null;let a=null;n.forEach((e=>{if(e.semver===i){e=new s(">=0.0.0")}o=o||e;a=a||e;if(d(e.semver,o.semver,p)){o=e}else if(g(e.semver,a.semver,p)){a=e}}));if(o.operator===v||o.operator===b){return false}if((!a.operator||a.operator===v)&&y(e,a.semver)){return false}else if(a.operator===b&&g(e,a.semver)){return false}}return true};e.exports=outside},66023:(e,t,r)=>{const n=r(34140);const s=r(71878);e.exports=(e,t,r)=>{const i=[];let o=null;let a=null;const c=e.sort(((e,t)=>s(e,t,r)));for(const e of c){const s=n(e,t,r);if(s){a=e;if(!o){o=e}}else{if(a){i.push([o,a])}a=null;o=null}}if(o){i.push([o,null])}const u=[];for(const[e,t]of i){if(e===t){u.push(e)}else if(!t&&e===c[0]){u.push("*")}else if(!t){u.push(`>=${e}`)}else if(e===c[0]){u.push(`<=${t}`)}else{u.push(`${e} - ${t}`)}}const l=u.join(" || ");const h=typeof t.raw==="string"?t.raw:String(t);return l.length<h.length?l:t}},45701:(e,t,r)=>{const n=r(87058);const s=r(12485);const{ANY:i}=s;const o=r(34140);const a=r(71878);const subset=(e,t,r={})=>{if(e===t){return true}e=new n(e,r);t=new n(t,r);let s=false;e:for(const n of e.set){for(const e of t.set){const t=simpleSubset(n,e,r);s=s||t!==null;if(t){continue e}}if(s){return false}}return true};const simpleSubset=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i){return true}else if(r.includePrerelease){e=[new s(">=0.0.0-0")]}else{e=[new s(">=0.0.0")]}}if(t.length===1&&t[0].semver===i){if(r.includePrerelease){return true}else{t=[new s(">=0.0.0")]}}const n=new Set;let c,u;for(const t of e){if(t.operator===">"||t.operator===">="){c=higherGT(c,t,r)}else if(t.operator==="<"||t.operator==="<="){u=lowerLT(u,t,r)}else{n.add(t.semver)}}if(n.size>1){return null}let l;if(c&&u){l=a(c.semver,u.semver,r);if(l>0){return null}else if(l===0&&(c.operator!==">="||u.operator!=="<=")){return null}}for(const e of n){if(c&&!o(e,String(c),r)){return null}if(u&&!o(e,String(u),r)){return null}for(const n of t){if(!o(e,String(n),r)){return false}}return true}let h,p;let d,y;let g=u&&!r.includePrerelease&&u.semver.prerelease.length?u.semver:false;let v=c&&!r.includePrerelease&&c.semver.prerelease.length?c.semver:false;if(g&&g.prerelease.length===1&&u.operator==="<"&&g.prerelease[0]===0){g=false}for(const e of t){y=y||e.operator===">"||e.operator===">=";d=d||e.operator==="<"||e.operator==="<=";if(c){if(v){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch){v=false}}if(e.operator===">"||e.operator===">="){h=higherGT(c,e,r);if(h===e&&h!==c){return false}}else if(c.operator===">="&&!o(c.semver,String(e),r)){return false}}if(u){if(g){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch){g=false}}if(e.operator==="<"||e.operator==="<="){p=lowerLT(u,e,r);if(p===e&&p!==u){return false}}else if(u.operator==="<="&&!o(u.semver,String(e),r)){return false}}if(!e.operator&&(u||c)&&l!==0){return false}}if(c&&d&&!u&&l!==0){return false}if(u&&y&&!c&&l!==0){return false}if(v||g){return false}return true};const higherGT=(e,t,r)=>{if(!e){return t}const n=a(e.semver,t.semver,r);return n>0?e:n<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,r)=>{if(!e){return t}const n=a(e.semver,t.semver,r);return n<0?e:n>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},58478:(e,t,r)=>{const n=r(87058);const toComparators=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},14499:(e,t,r)=>{const n=r(87058);const validRange=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}};e.exports=validRange},50173:(e,t,r)=>{"use strict";
282
282
  /*!
283
283
  * set-value <https://github.com/jonschlinkert/set-value>
284
284
  *
@@ -296,7 +296,7 @@ function pascalcase(e){if(typeof e!=="string"){throw new TypeError("expected a s
296
296
  *
297
297
  * Copyright (c) 2016, Jon Schlinkert.
298
298
  * Licensed under the MIT License.
299
- */var n=r(69438);var s=r(80922);var i=r(73837);function extend(e,t){if(typeof e!=="function"){throw new TypeError("expected Parent to be a function.")}return function(r,o){if(typeof r!=="function"){throw new TypeError("expected Ctor to be a function.")}i.inherits(r,e);n(r,e);if(typeof o==="object"){var a=Object.create(o);for(var c in a){r.prototype[c]=a[c]}}s(r.prototype,"_parent_",{configurable:true,set:function(){},get:function(){return e.prototype}});if(typeof t==="function"){t(r,e)}r.extend=extend(r,t)}}e.exports=extend},12251:e=>{"use strict";var t=1;var r=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(e,t,r){return e.slice(t,r).replace(/\S/g," ")}e.exports=function(e,n){n=n||{};var s;var i;var o=false;var a=false;var c=0;var u="";var l=n.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var h=0;h<e.length;h++){s=e[h];i=e[h+1];if(!a&&s==='"'){var p=e[h-1]==="\\"&&e[h-2]!=="\\";if(!p){o=!o}}if(o){continue}if(!a&&s+i==="//"){u+=e.slice(c,h);c=h;a=t;h++}else if(a===t&&s+i==="\r\n"){h++;a=false;u+=l(e,c,h);c=h;continue}else if(a===t&&s==="\n"){a=false;u+=l(e,c,h);c=h}else if(!a&&s+i==="/*"){u+=e.slice(c,h);c=h;a=r;h++;continue}else if(a===r&&s+i==="*/"){h++;a=false;u+=l(e,c,h+1);c=h+1;continue}}return u+(a?l(e.substr(c)):e.substr(c))}},67220:(e,t,r)=>{"use strict";const n=r(22037);const s=r(15343);const i=process.env;let o;if(s("no-color")||s("no-colors")||s("color=false")){o=false}else if(s("color")||s("colors")||s("color=true")||s("color=always")){o=true}if("FORCE_COLOR"in i){o=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}if(i.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},7697:(e,t,r)=>{"use strict";t.c=t.create=r(11535);t.r=t.replace=r(95283);t.t=t.list=r(14369);t.u=t.update=r(27459);t.x=t.extract=r(40238);t.Pack=r(30734);t.Unpack=r(4668);t.Parse=r(64377);t.ReadEntry=r(32449);t.WriteEntry=r(51122);t.Header=r(44714);t.Pax=r(97584);t.types=r(20795)},72588:(e,t,r)=>{"use strict";let n=Buffer;if(!n.alloc){n=r(65055).Buffer}e.exports=n},11535:(e,t,r)=>{"use strict";const n=r(22039);const s=r(30734);const i=r(57147);const o=r(90036);const a=r(14369);const c=r(71017);const u=e.exports=(e,t,r)=>{if(typeof t==="function")r=t;if(Array.isArray(e))t=e,e={};if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);const s=n(e);if(s.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!s.file&&typeof r==="function")throw new TypeError("callback only supported with file option");return s.file&&s.sync?createFileSync(s,t):s.file?createFile(s,t,r):s.sync?createSync(s,t):create(s,t)};const createFileSync=(e,t)=>{const r=new s.Sync(e);const n=new o.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n);addFilesSync(r,t)};const createFile=(e,t,r)=>{const n=new s(e);const i=new o.WriteStream(e.file,{mode:e.mode||438});n.pipe(i);const a=new Promise(((e,t)=>{i.on("error",t);i.on("close",e);n.on("error",t)}));addFilesAsync(n,t);return r?a.then(r,r):a};const addFilesSync=(e,t)=>{t.forEach((t=>{if(t.charAt(0)==="@")a({file:c.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)}));e.end()};const addFilesAsync=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return a({file:c.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then((r=>addFilesAsync(e,t)));else e.add(r)}e.end()};const createSync=(e,t)=>{const r=new s.Sync(e);addFilesSync(r,t);return r};const create=(e,t)=>{const r=new s(e);addFilesAsync(r,t);return r}},40238:(e,t,r)=>{"use strict";const n=r(22039);const s=r(4668);const i=r(57147);const o=r(90036);const a=r(71017);const c=e.exports=(e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const s=n(e);if(s.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!s.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)filesFilter(s,t);return s.file&&s.sync?extractFileSync(s):s.file?extractFile(s,r):s.sync?extractSync(s):extract(s)};const filesFilter=(e,t)=>{const r=new Map(t.map((e=>[e.replace(/\/+$/,""),true])));const n=e.filter;const mapHas=(e,t)=>{const n=t||a.parse(e).root||".";const s=e===n?false:r.has(e)?r.get(e):mapHas(a.dirname(e),n);r.set(e,s);return s};e.filter=n?(e,t)=>n(e,t)&&mapHas(e.replace(/\/+$/,"")):e=>mapHas(e.replace(/\/+$/,""))};const extractFileSync=e=>{const t=new s.Sync(e);const r=e.file;let n=true;let a;const c=i.statSync(r);const u=e.maxReadSize||16*1024*1024;const l=new o.ReadStreamSync(r,{readSize:u,size:c.size});l.pipe(t)};const extractFile=(e,t)=>{const r=new s(e);const n=e.maxReadSize||16*1024*1024;const a=e.file;const c=new Promise(((e,t)=>{r.on("error",t);r.on("close",e);i.stat(a,((e,s)=>{if(e)t(e);else{const e=new o.ReadStream(a,{readSize:n,size:s.size});e.on("error",t);e.pipe(r)}}))}));return t?c.then(t,t):c};const extractSync=e=>new s.Sync(e);const extract=e=>new s(e)},44714:(e,t,r)=>{"use strict";const n=r(72588);const s=r(20795);const i=r(71017).posix;const o=r(59258);const a=Symbol("slurp");const c=Symbol("type");class Header{constructor(e,t,r,s){this.cksumValid=false;this.needPax=false;this.nullBlock=false;this.block=null;this.path=null;this.mode=null;this.uid=null;this.gid=null;this.size=null;this.mtime=null;this.cksum=null;this[c]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(n.isBuffer(e))this.decode(e,t||0,r,s);else if(e)this.set(e)}decode(e,t,r,n){if(!t)t=0;if(!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");this.path=decString(e,t,100);this.mode=decNumber(e,t+100,8);this.uid=decNumber(e,t+108,8);this.gid=decNumber(e,t+116,8);this.size=decNumber(e,t+124,12);this.mtime=decDate(e,t+136,12);this.cksum=decNumber(e,t+148,12);this[a](r);this[a](n,true);this[c]=decString(e,t+156,1);if(this[c]==="")this[c]="0";if(this[c]==="0"&&this.path.substr(-1)==="/")this[c]="5";if(this[c]==="5")this.size=0;this.linkpath=decString(e,t+157,100);if(e.slice(t+257,t+265).toString()==="ustar\x0000"){this.uname=decString(e,t+265,32);this.gname=decString(e,t+297,32);this.devmaj=decNumber(e,t+329,8);this.devmin=decNumber(e,t+337,8);if(e[t+475]!==0){const r=decString(e,t+345,155);this.path=r+"/"+this.path}else{const r=decString(e,t+345,130);if(r)this.path=r+"/"+this.path;this.atime=decDate(e,t+476,12);this.ctime=decDate(e,t+488,12)}}let s=8*32;for(let r=t;r<t+148;r++){s+=e[r]}for(let r=t+156;r<t+512;r++){s+=e[r]}this.cksumValid=s===this.cksum;if(this.cksum===null&&s===8*32)this.nullBlock=true}[a](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}encode(e,t){if(!e){e=this.block=n.alloc(512);t=0}if(!t)t=0;if(!(e.length>=t+512))throw new Error("need 512 bytes for header");const r=this.ctime||this.atime?130:155;const s=splitPrefix(this.path||"",r);const i=s[0];const o=s[1];this.needPax=s[2];this.needPax=encString(e,t,100,i)||this.needPax;this.needPax=encNumber(e,t+100,8,this.mode)||this.needPax;this.needPax=encNumber(e,t+108,8,this.uid)||this.needPax;this.needPax=encNumber(e,t+116,8,this.gid)||this.needPax;this.needPax=encNumber(e,t+124,12,this.size)||this.needPax;this.needPax=encDate(e,t+136,12,this.mtime)||this.needPax;e[t+156]=this[c].charCodeAt(0);this.needPax=encString(e,t+157,100,this.linkpath)||this.needPax;e.write("ustar\x0000",t+257,8);this.needPax=encString(e,t+265,32,this.uname)||this.needPax;this.needPax=encString(e,t+297,32,this.gname)||this.needPax;this.needPax=encNumber(e,t+329,8,this.devmaj)||this.needPax;this.needPax=encNumber(e,t+337,8,this.devmin)||this.needPax;this.needPax=encString(e,t+345,r,o)||this.needPax;if(e[t+475]!==0)this.needPax=encString(e,t+345,155,o)||this.needPax;else{this.needPax=encString(e,t+345,130,o)||this.needPax;this.needPax=encDate(e,t+476,12,this.atime)||this.needPax;this.needPax=encDate(e,t+488,12,this.ctime)||this.needPax}let a=8*32;for(let r=t;r<t+148;r++){a+=e[r]}for(let r=t+156;r<t+512;r++){a+=e[r]}this.cksum=a;encNumber(e,t+148,8,this.cksum);this.cksumValid=true;return this.needPax}set(e){for(let t in e){if(e[t]!==null&&e[t]!==undefined)this[t]=e[t]}}get type(){return s.name.get(this[c])||this[c]}get typeKey(){return this[c]}set type(e){if(s.code.has(e))this[c]=s.code.get(e);else this[c]=e}}const splitPrefix=(e,t)=>{const r=100;let s=e;let o="";let a;const c=i.parse(e).root||".";if(n.byteLength(s)<r)a=[s,o,false];else{o=i.dirname(s);s=i.basename(s);do{if(n.byteLength(s)<=r&&n.byteLength(o)<=t)a=[s,o,false];else if(n.byteLength(s)>r&&n.byteLength(o)<=t)a=[s.substr(0,r-1),o,true];else{s=i.join(i.basename(o),s);o=i.dirname(o)}}while(o!==c&&!a);if(!a)a=[e.substr(0,r-1),"",true]}return a};const decString=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,"");const decDate=(e,t,r)=>numToDate(decNumber(e,t,r));const numToDate=e=>e===null?null:new Date(e*1e3);const decNumber=(e,t,r)=>e[t]&128?o.parse(e.slice(t,t+r)):decSmallNumber(e,t,r);const nanNull=e=>isNaN(e)?null:e;const decSmallNumber=(e,t,r)=>nanNull(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8));const u={12:8589934591,8:2097151};const encNumber=(e,t,r,n)=>n===null?false:n>u[r]||n<0?(o.encode(n,e.slice(t,t+r)),true):(encSmallNumber(e,t,r,n),false);const encSmallNumber=(e,t,r,n)=>e.write(octalString(n,r),t,r,"ascii");const octalString=(e,t)=>padOctal(Math.floor(e).toString(8),t);const padOctal=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0";const encDate=(e,t,r,n)=>n===null?false:encNumber(e,t,r,n.getTime()/1e3);const l=new Array(156).join("\0");const encString=(e,t,r,s)=>s===null?false:(e.write(s+l,t,r,"utf8"),s.length!==n.byteLength(s)||s.length>r);e.exports=Header},22039:e=>{"use strict";const t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);const r=e.exports=e=>e?Object.keys(e).map((r=>[t.has(r)?t.get(r):r,e[r]])).reduce(((e,t)=>(e[t[0]]=t[1],e)),Object.create(null)):{}},59258:(e,t)=>{"use strict";const r=t.encode=(e,t)=>{if(!Number.isSafeInteger(e))throw TypeError("cannot encode number outside of javascript safe integer range");else if(e<0)encodeNegative(e,t);else encodePositive(e,t);return t};const encodePositive=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--){t[r-1]=e&255;e=Math.floor(e/256)}};const encodeNegative=(e,t)=>{t[0]=255;var r=false;e=e*-1;for(var n=t.length;n>1;n--){var s=e&255;e=Math.floor(e/256);if(r)t[n-1]=onesComp(s);else if(s===0)t[n-1]=0;else{r=true;t[n-1]=twosComp(s)}}};const n=t.parse=e=>{var t=e[e.length-1];var r=e[0];var n;if(r===128)n=pos(e.slice(1,e.length));else if(r===255)n=twos(e);else throw TypeError("invalid base256 encoding");if(!Number.isSafeInteger(n))throw TypeError("parsed number outside of javascript safe integer range");return n};const twos=e=>{var t=e.length;var r=0;var n=false;for(var s=t-1;s>-1;s--){var i=e[s];var o;if(n)o=onesComp(i);else if(i===0)o=i;else{n=true;o=twosComp(i)}if(o!==0)r-=o*Math.pow(256,t-s-1)}return r};const pos=e=>{var t=e.length;var r=0;for(var n=t-1;n>-1;n--){var s=e[n];if(s!==0)r+=s*Math.pow(256,t-n-1)}return r};const onesComp=e=>(255^e)&255;const twosComp=e=>(255^e)+1&255},14369:(e,t,r)=>{"use strict";const n=r(72588);const s=r(22039);const i=r(64377);const o=r(57147);const a=r(90036);const c=r(71017);const u=e.exports=(e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const n=s(e);if(n.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)filesFilter(n,t);if(!n.noResume)onentryFunction(n);return n.file&&n.sync?listFileSync(n):n.file?listFile(n,r):list(n)};const onentryFunction=e=>{const t=e.onentry;e.onentry=t?e=>{t(e);e.resume()}:e=>e.resume()};const filesFilter=(e,t)=>{const r=new Map(t.map((e=>[e.replace(/\/+$/,""),true])));const n=e.filter;const mapHas=(e,t)=>{const n=t||c.parse(e).root||".";const s=e===n?false:r.has(e)?r.get(e):mapHas(c.dirname(e),n);r.set(e,s);return s};e.filter=n?(e,t)=>n(e,t)&&mapHas(e.replace(/\/+$/,"")):e=>mapHas(e.replace(/\/+$/,""))};const listFileSync=e=>{const t=list(e);const r=e.file;let s=true;let i;try{const a=o.statSync(r);const c=e.maxReadSize||16*1024*1024;if(a.size<c){t.end(o.readFileSync(r))}else{let e=0;const s=n.allocUnsafe(c);i=o.openSync(r,"r");while(e<a.size){let r=o.readSync(i,s,0,c,e);e+=r;t.write(s.slice(0,r))}t.end()}s=false}finally{if(s&&i)try{o.closeSync(i)}catch(e){}}};const listFile=(e,t)=>{const r=new i(e);const n=e.maxReadSize||16*1024*1024;const s=e.file;const c=new Promise(((e,t)=>{r.on("error",t);r.on("end",e);o.stat(s,((e,i)=>{if(e)t(e);else{const e=new a.ReadStream(s,{readSize:n,size:i.size});e.on("error",t);e.pipe(r)}}))}));return t?c.then(t,t):c};const list=e=>new i(e)},21484:(e,t,r)=>{"use strict";const n=r(57695);const s=r(57147);const i=r(71017);const o=r(1216);class SymlinkError extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t;this.symlink=e}get name(){return"SylinkError"}}class CwdError extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e;this.code=t}get name(){return"CwdError"}}const a=e.exports=(e,t,r)=>{const a=t.umask;const c=t.mode|448;const u=(c&a)!==0;const l=t.uid;const h=t.gid;const p=typeof l==="number"&&typeof h==="number"&&(l!==t.processUid||h!==t.processGid);const d=t.preserve;const y=t.unlink;const g=t.cache;const v=t.cwd;const done=(t,n)=>{if(t)r(t);else{g.set(e,true);if(n&&p)o(n,l,h,(e=>done(e)));else if(u)s.chmod(e,c,r);else r()}};if(g&&g.get(e)===true)return done();if(e===v)return s.stat(e,((t,r)=>{if(t||!r.isDirectory())t=new CwdError(e,t&&t.code||"ENOTDIR");done(t)}));if(d)return n(e,c,done);const b=i.relative(v,e);const w=b.split(/\/|\\/);mkdir_(v,w,c,g,y,v,null,done)};const mkdir_=(e,t,r,n,i,o,a,c)=>{if(!t.length)return c(null,a);const u=t.shift();const l=e+"/"+u;if(n.get(l))return mkdir_(l,t,r,n,i,o,a,c);s.mkdir(l,r,onmkdir(l,t,r,n,i,o,a,c))};const onmkdir=(e,t,r,n,o,a,c,u)=>l=>{if(l){if(l.path&&i.dirname(l.path)===a&&(l.code==="ENOTDIR"||l.code==="ENOENT"))return u(new CwdError(a,l.code));s.lstat(e,((i,h)=>{if(i)u(i);else if(h.isDirectory())mkdir_(e,t,r,n,o,a,c,u);else if(o)s.unlink(e,(i=>{if(i)return u(i);s.mkdir(e,r,onmkdir(e,t,r,n,o,a,c,u))}));else if(h.isSymbolicLink())return u(new SymlinkError(e,e+"/"+t.join("/")));else u(l)}))}else{c=c||e;mkdir_(e,t,r,n,o,a,c,u)}};const c=e.exports.sync=(e,t)=>{const r=t.umask;const a=t.mode|448;const c=(a&r)!==0;const u=t.uid;const l=t.gid;const h=typeof u==="number"&&typeof l==="number"&&(u!==t.processUid||l!==t.processGid);const p=t.preserve;const d=t.unlink;const y=t.cache;const g=t.cwd;const done=t=>{y.set(e,true);if(t&&h)o.sync(t,u,l);if(c)s.chmodSync(e,a)};if(y&&y.get(e)===true)return done();if(e===g){let t=false;let r="ENOTDIR";try{t=s.statSync(e).isDirectory()}catch(e){r=e.code}finally{if(!t)throw new CwdError(e,r)}done();return}if(p)return done(n.sync(e,a));const v=i.relative(g,e);const b=v.split(/\/|\\/);let w=null;for(let e=b.shift(),t=g;e&&(t+="/"+e);e=b.shift()){if(y.get(t))continue;try{s.mkdirSync(t,a);w=w||t;y.set(t,true)}catch(e){if(e.path&&i.dirname(e.path)===g&&(e.code==="ENOTDIR"||e.code==="ENOENT"))return new CwdError(g,e.code);const r=s.lstatSync(t);if(r.isDirectory()){y.set(t,true);continue}else if(d){s.unlinkSync(t);s.mkdirSync(t,a);w=w||t;y.set(t,true);continue}else if(r.isSymbolicLink())return new SymlinkError(t,t+"/"+b.join("/"))}}return done(w)}},24666:e=>{"use strict";e.exports=(e,t)=>{e&=4095;if(t){if(e&256)e|=64;if(e&32)e|=8;if(e&4)e|=1}return e}},30734:(e,t,r)=>{"use strict";const n=r(72588);class PackJob{constructor(e,t){this.path=e||"./";this.absolute=t;this.entry=null;this.stat=null;this.readdir=null;this.pending=false;this.ignore=false;this.piped=false}}const s=r(67097);const i=r(77082);const o=r(32449);const a=r(51122);const c=a.Sync;const u=a.Tar;const l=r(11190);const h=n.alloc(1024);const p=Symbol("onStat");const d=Symbol("ended");const y=Symbol("queue");const g=Symbol("current");const v=Symbol("process");const b=Symbol("processing");const w=Symbol("processJob");const S=Symbol("jobs");const x=Symbol("jobDone");const O=Symbol("addFSEntry");const R=Symbol("addTarEntry");const k=Symbol("stat");const A=Symbol("readdir");const C=Symbol("onreaddir");const P=Symbol("pipe");const $=Symbol("entry");const T=Symbol("entryOpt");const j=Symbol("writeEntryClass");const I=Symbol("write");const N=Symbol("ondrain");const M=r(57147);const D=r(71017);const L=r(77970);const B=L(class Pack extends s{constructor(e){super(e);e=e||Object.create(null);this.opt=e;this.cwd=e.cwd||process.cwd();this.maxReadSize=e.maxReadSize;this.preservePaths=!!e.preservePaths;this.strict=!!e.strict;this.noPax=!!e.noPax;this.prefix=(e.prefix||"").replace(/(\\|\/)+$/,"");this.linkCache=e.linkCache||new Map;this.statCache=e.statCache||new Map;this.readdirCache=e.readdirCache||new Map;this[j]=a;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);this.zip=null;if(e.gzip){if(typeof e.gzip!=="object")e.gzip={};this.zip=new i.Gzip(e.gzip);this.zip.on("data",(e=>super.write(e)));this.zip.on("end",(e=>super.end()));this.zip.on("drain",(e=>this[N]()));this.on("resume",(e=>this.zip.resume()))}else this.on("drain",this[N]);this.portable=!!e.portable;this.noDirRecurse=!!e.noDirRecurse;this.follow=!!e.follow;this.noMtime=!!e.noMtime;this.mtime=e.mtime||null;this.filter=typeof e.filter==="function"?e.filter:e=>true;this[y]=new l;this[S]=0;this.jobs=+e.jobs||4;this[b]=false;this[d]=false}[I](e){return super.write(e)}add(e){this.write(e);return this}end(e){if(e)this.write(e);this[d]=true;this[v]();return this}write(e){if(this[d])throw new Error("write after end");if(e instanceof o)this[R](e);else this[O](e);return this.flowing}[R](e){const t=D.resolve(this.cwd,e.path);if(this.prefix)e.path=this.prefix+"/"+e.path.replace(/^\.(\/+|$)/,"");if(!this.filter(e.path,e))e.resume();else{const r=new PackJob(e.path,t,false);r.entry=new u(e,this[T](r));r.entry.on("end",(e=>this[x](r)));this[S]+=1;this[y].push(r)}this[v]()}[O](e){const t=D.resolve(this.cwd,e);if(this.prefix)e=this.prefix+"/"+e.replace(/^\.(\/+|$)/,"");this[y].push(new PackJob(e,t));this[v]()}[k](e){e.pending=true;this[S]+=1;const t=this.follow?"stat":"lstat";M[t](e.absolute,((t,r)=>{e.pending=false;this[S]-=1;if(t)this.emit("error",t);else this[p](e,r)}))}[p](e,t){this.statCache.set(e.absolute,t);e.stat=t;if(!this.filter(e.path,t))e.ignore=true;this[v]()}[A](e){e.pending=true;this[S]+=1;M.readdir(e.absolute,((t,r)=>{e.pending=false;this[S]-=1;if(t)return this.emit("error",t);this[C](e,r)}))}[C](e,t){this.readdirCache.set(e.absolute,t);e.readdir=t;this[v]()}[v](){if(this[b])return;this[b]=true;for(let e=this[y].head;e!==null&&this[S]<this.jobs;e=e.next){this[w](e.value);if(e.value.ignore){const t=e.next;this[y].removeNode(e);e.next=t}}this[b]=false;if(this[d]&&!this[y].length&&this[S]===0){if(this.zip)this.zip.end(h);else{super.write(h);super.end()}}}get[g](){return this[y]&&this[y].head&&this[y].head.value}[x](e){this[y].shift();this[S]-=1;this[v]()}[w](e){if(e.pending)return;if(e.entry){if(e===this[g]&&!e.piped)this[P](e);return}if(!e.stat){if(this.statCache.has(e.absolute))this[p](e,this.statCache.get(e.absolute));else this[k](e)}if(!e.stat)return;if(e.ignore)return;if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){if(this.readdirCache.has(e.absolute))this[C](e,this.readdirCache.get(e.absolute));else this[A](e);if(!e.readdir)return}e.entry=this[$](e);if(!e.entry){e.ignore=true;return}if(e===this[g]&&!e.piped)this[P](e)}[T](e){return{onwarn:(e,t)=>{this.warn(e,t)},noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime}}[$](e){this[S]+=1;try{return new this[j](e.path,this[T](e)).on("end",(()=>this[x](e))).on("error",(e=>this.emit("error",e)))}catch(e){this.emit("error",e)}}[N](){if(this[g]&&this[g].entry)this[g].entry.resume()}[P](e){e.piped=true;if(e.readdir)e.readdir.forEach((t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[O](n+t)}));const t=e.entry;const r=this.zip;if(r)t.on("data",(e=>{if(!r.write(e))t.pause()}));else t.on("data",(e=>{if(!super.write(e))t.pause()}))}pause(){if(this.zip)this.zip.pause();return super.pause()}});class PackSync extends B{constructor(e){super(e);this[j]=c}pause(){}resume(){}[k](e){const t=this.follow?"statSync":"lstatSync";this[p](e,M[t](e.absolute))}[A](e,t){this[C](e,M.readdirSync(e.absolute))}[P](e){const t=e.entry;const r=this.zip;if(e.readdir)e.readdir.forEach((t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[O](n+t)}));if(r)t.on("data",(e=>{r.write(e)}));else t.on("data",(e=>{super[I](e)}))}}B.Sync=PackSync;e.exports=B},64377:(e,t,r)=>{"use strict";const n=r(77970);const s=r(71017);const i=r(44714);const o=r(82361);const a=r(11190);const c=1024*1024;const u=r(32449);const l=r(97584);const h=r(77082);const p=r(72588);const d=p.from([31,139]);const y=Symbol("state");const g=Symbol("writeEntry");const v=Symbol("readEntry");const b=Symbol("nextEntry");const w=Symbol("processEntry");const S=Symbol("extendedHeader");const x=Symbol("globalExtendedHeader");const O=Symbol("meta");const R=Symbol("emitMeta");const k=Symbol("buffer");const A=Symbol("queue");const C=Symbol("ended");const P=Symbol("emittedEnd");const $=Symbol("emit");const T=Symbol("unzip");const j=Symbol("consumeChunk");const I=Symbol("consumeChunkSub");const N=Symbol("consumeBody");const M=Symbol("consumeMeta");const D=Symbol("consumeHeader");const L=Symbol("consuming");const B=Symbol("bufferConcat");const U=Symbol("maybeEnd");const G=Symbol("writing");const z=Symbol("aborted");const q=Symbol("onDone");const noop=e=>true;e.exports=n(class Parser extends o{constructor(e){e=e||{};super(e);if(e.ondone)this.on(q,e.ondone);else this.on(q,(e=>{this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}));this.strict=!!e.strict;this.maxMetaEntrySize=e.maxMetaEntrySize||c;this.filter=typeof e.filter==="function"?e.filter:noop;this.writable=true;this.readable=false;this[A]=new a;this[k]=null;this[v]=null;this[g]=null;this[y]="begin";this[O]="";this[S]=null;this[x]=null;this[C]=false;this[T]=null;this[z]=false;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);if(typeof e.onentry==="function")this.on("entry",e.onentry)}[D](e,t){const r=new i(e,t,this[S],this[x]);if(r.nullBlock)this[$]("nullBlock");else if(!r.cksumValid)this.warn("invalid entry",r);else if(!r.path)this.warn("invalid: path is required",r);else{const e=r.type;if(/^(Symbolic)?Link$/.test(e)&&!r.linkpath)this.warn("invalid: linkpath required",r);else if(!/^(Symbolic)?Link$/.test(e)&&r.linkpath)this.warn("invalid: linkpath forbidden",r);else{const e=this[g]=new u(r,this[S],this[x]);if(e.meta){if(e.size>this.maxMetaEntrySize){e.ignore=true;this[$]("ignoredEntry",e);this[y]="ignore"}else if(e.size>0){this[O]="";e.on("data",(e=>this[O]+=e));this[y]="meta"}}else{this[S]=null;e.ignore=e.ignore||!this.filter(e.path,e);if(e.ignore){this[$]("ignoredEntry",e);this[y]=e.remain?"ignore":"begin"}else{if(e.remain)this[y]="body";else{this[y]="begin";e.end()}if(!this[v]){this[A].push(e);this[b]()}else this[A].push(e)}}}}}[w](e){let t=true;if(!e){this[v]=null;t=false}else if(Array.isArray(e))this.emit.apply(this,e);else{this[v]=e;this.emit("entry",e);if(!e.emittedEnd){e.on("end",(e=>this[b]()));t=false}}return t}[b](){do{}while(this[w](this[A].shift()));if(!this[A].length){const e=this[v];const t=!e||e.flowing||e.size===e.remain;if(t){if(!this[G])this.emit("drain")}else e.once("drain",(e=>this.emit("drain")))}}[N](e,t){const r=this[g];const n=r.blockRemain;const s=n>=e.length&&t===0?e:e.slice(t,t+n);r.write(s);if(!r.blockRemain){this[y]="begin";this[g]=null;r.end()}return s.length}[M](e,t){const r=this[g];const n=this[N](e,t);if(!this[g])this[R](r);return n}[$](e,t,r){if(!this[A].length&&!this[v])this.emit(e,t,r);else this[A].push([e,t,r])}[R](e){this[$]("meta",this[O]);switch(e.type){case"ExtendedHeader":case"OldExtendedHeader":this[S]=l.parse(this[O],this[S],false);break;case"GlobalExtendedHeader":this[x]=l.parse(this[O],this[x],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[S]=this[S]||Object.create(null);this[S].path=this[O].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[S]=this[S]||Object.create(null);this[S].linkpath=this[O].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e,t){this[z]=true;this.warn(e,t);this.emit("abort",t);this.emit("error",t)}write(e){if(this[z])return;if(this[T]===null&&e){if(this[k]){e=p.concat([this[k],e]);this[k]=null}if(e.length<d.length){this[k]=e;return true}for(let t=0;this[T]===null&&t<d.length;t++){if(e[t]!==d[t])this[T]=false}if(this[T]===null){const t=this[C];this[C]=false;this[T]=new h.Unzip;this[T].on("data",(e=>this[j](e)));this[T].on("error",(e=>this.abort(e.message,e)));this[T].on("end",(e=>{this[C]=true;this[j]()}));this[G]=true;const r=this[T][t?"end":"write"](e);this[G]=false;return r}}this[G]=true;if(this[T])this[T].write(e);else this[j](e);this[G]=false;const t=this[A].length?false:this[v]?this[v].flowing:true;if(!t&&!this[A].length)this[v].once("drain",(e=>this.emit("drain")));return t}[B](e){if(e&&!this[z])this[k]=this[k]?p.concat([this[k],e]):e}[U](){if(this[C]&&!this[P]&&!this[z]&&!this[L]){this[P]=true;const e=this[g];if(e&&e.blockRemain){const t=this[k]?this[k].length:0;this.warn("Truncated input (needed "+e.blockRemain+" more bytes, only "+t+" available)",e);if(this[k])e.write(this[k]);e.end()}this[$](q)}}[j](e){if(this[L]){this[B](e)}else if(!e&&!this[k]){this[U]()}else{this[L]=true;if(this[k]){this[B](e);const t=this[k];this[k]=null;this[I](t)}else{this[I](e)}while(this[k]&&this[k].length>=512&&!this[z]){const e=this[k];this[k]=null;this[I](e)}this[L]=false}if(!this[k]||this[C])this[U]()}[I](e){let t=0;let r=e.length;while(t+512<=r&&!this[z]){switch(this[y]){case"begin":this[D](e,t);t+=512;break;case"ignore":case"body":t+=this[N](e,t);break;case"meta":t+=this[M](e,t);break;default:throw new Error("invalid state: "+this[y])}}if(t<r){if(this[k])this[k]=p.concat([e.slice(t),this[k]]);else this[k]=e.slice(t)}}end(e){if(!this[z]){if(this[T])this[T].end(e);else{this[C]=true;this.write(e)}}}})},97584:(e,t,r)=>{"use strict";const n=r(72588);const s=r(44714);const i=r(71017);class Pax{constructor(e,t){this.atime=e.atime||null;this.charset=e.charset||null;this.comment=e.comment||null;this.ctime=e.ctime||null;this.gid=e.gid||null;this.gname=e.gname||null;this.linkpath=e.linkpath||null;this.mtime=e.mtime||null;this.path=e.path||null;this.size=e.size||null;this.uid=e.uid||null;this.uname=e.uname||null;this.dev=e.dev||null;this.ino=e.ino||null;this.nlink=e.nlink||null;this.global=t||false}encode(){const e=this.encodeBody();if(e==="")return null;const t=n.byteLength(e);const r=512*Math.ceil(1+t/512);const o=n.allocUnsafe(r);for(let e=0;e<512;e++){o[e]=0}new s({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(o);o.write(e,512,t,"utf8");for(let e=t+512;e<o.length;e++){o[e]=0}return o}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===undefined)return"";const t=this[e]instanceof Date?this[e].getTime()/1e3:this[e];const r=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+t+"\n";const s=n.byteLength(r);let i=Math.floor(Math.log(s)/Math.log(10))+1;if(s+i>=Math.pow(10,i))i+=1;const o=i+s;return o+r}}Pax.parse=(e,t,r)=>new Pax(merge(parseKV(e),t),r);const merge=(e,t)=>t?Object.keys(e).reduce(((t,r)=>(t[r]=e[r],t)),t):e;const parseKV=e=>e.replace(/\n$/,"").split("\n").reduce(parseKVLine,Object.create(null));const parseKVLine=(e,t)=>{const r=parseInt(t,10);if(r!==n.byteLength(t)+1)return e;t=t.substr((r+" ").length);const s=t.split("=");const i=s.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return e;const o=s.join("=");e[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(o*1e3):/^[0-9]+$/.test(o)?+o:o;return e};e.exports=Pax},32449:(e,t,r)=>{"use strict";const n=r(20795);const s=r(67097);const i=Symbol("slurp");e.exports=class ReadEntry extends s{constructor(e,t,r){super();this.extended=t;this.globalExtended=r;this.header=e;this.startBlockSize=512*Math.ceil(e.size/512);this.blockRemain=this.startBlockSize;this.remain=e.size;this.type=e.type;this.meta=false;this.ignore=false;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}this.path=e.path;this.mode=e.mode;if(this.mode)this.mode=this.mode&4095;this.uid=e.uid;this.gid=e.gid;this.uname=e.uname;this.gname=e.gname;this.size=e.size;this.mtime=e.mtime;this.atime=e.atime;this.ctime=e.ctime;this.linkpath=e.linkpath;this.uname=e.uname;this.gname=e.gname;if(t)this[i](t);if(r)this[i](r,true)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");const r=this.remain;const n=this.blockRemain;this.remain=Math.max(0,r-t);this.blockRemain=Math.max(0,n-t);if(this.ignore)return true;if(r>=t)return super.write(e);return super.write(e.slice(0,r))}[i](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}}},95283:(e,t,r)=>{"use strict";const n=r(72588);const s=r(22039);const i=r(30734);const o=r(64377);const a=r(57147);const c=r(90036);const u=r(14369);const l=r(71017);const h=r(44714);const p=e.exports=(e,t,r)=>{const n=s(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);return n.sync?replaceSync(n,t):replace(n,t,r)};const replaceSync=(e,t)=>{const r=new i.Sync(e);let s=true;let o;let c;try{try{o=a.openSync(e.file,"r+")}catch(t){if(t.code==="ENOENT")o=a.openSync(e.file,"w+");else throw t}const i=a.fstatSync(o);const u=n.alloc(512);e:for(c=0;c<i.size;c+=512){for(let e=0,t=0;e<512;e+=t){t=a.readSync(o,u,e,u.length-e,c+e);if(c===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!t)break e}let t=new h(u);if(!t.cksumValid)break;let r=512*Math.ceil(t.size/512);if(c+r+512>i.size)break;c+=r;if(e.mtimeCache)e.mtimeCache.set(t.path,t.mtime)}s=false;streamSync(e,r,c,o,t)}finally{if(s)try{a.closeSync(o)}catch(e){}}};const streamSync=(e,t,r,n,s)=>{const i=new c.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(i);addFilesSync(t,s)};const replace=(e,t,r)=>{t=Array.from(t);const s=new i(e);const getPos=(t,r,s)=>{const cb=(e,r)=>{if(e)a.close(t,(t=>s(e)));else s(null,r)};let i=0;if(r===0)return cb(null,0);let o=0;const c=n.alloc(512);const onread=(n,s)=>{if(n)return cb(n);o+=s;if(o<512&&s)return a.read(t,c,o,c.length-o,i+o,onread);if(i===0&&c[0]===31&&c[1]===139)return cb(new Error("cannot append to compressed archives"));if(o<512)return cb(null,i);const u=new h(c);if(!u.cksumValid)return cb(null,i);const l=512*Math.ceil(u.size/512);if(i+l+512>r)return cb(null,i);i+=l+512;if(i>=r)return cb(null,i);if(e.mtimeCache)e.mtimeCache.set(u.path,u.mtime);o=0;a.read(t,c,0,512,i,onread)};a.read(t,c,0,512,i,onread)};const o=new Promise(((r,n)=>{s.on("error",n);let i="r+";const onopen=(o,u)=>{if(o&&o.code==="ENOENT"&&i==="r+"){i="w+";return a.open(e.file,i,onopen)}if(o)return n(o);a.fstat(u,((i,o)=>{if(i)return n(i);getPos(u,o.size,((i,o)=>{if(i)return n(i);const a=new c.WriteStream(e.file,{fd:u,start:o});s.pipe(a);a.on("error",n);a.on("close",r);addFilesAsync(s,t)}))}))};a.open(e.file,i,onopen)}));return r?o.then(r,r):o};const addFilesSync=(e,t)=>{t.forEach((t=>{if(t.charAt(0)==="@")u({file:l.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)}));e.end()};const addFilesAsync=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return u({file:l.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then((r=>addFilesAsync(e,t)));else e.add(r)}e.end()}},20795:(e,t)=>{"use strict";t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);t.code=new Map(Array.from(t.name).map((e=>[e[1],e[0]])))},4668:(e,t,r)=>{"use strict";const n=r(39491);const s=r(82361).EventEmitter;const i=r(64377);const o=r(57147);const a=r(90036);const c=r(71017);const u=r(21484);const l=u.sync;const h=r(14773);const p=Symbol("onEntry");const d=Symbol("checkFs");const y=Symbol("isReusable");const g=Symbol("makeFs");const v=Symbol("file");const b=Symbol("directory");const w=Symbol("link");const S=Symbol("symlink");const x=Symbol("hardlink");const O=Symbol("unsupported");const R=Symbol("unknown");const k=Symbol("checkPath");const A=Symbol("mkdir");const C=Symbol("onError");const P=Symbol("pending");const $=Symbol("pend");const T=Symbol("unpend");const j=Symbol("ended");const I=Symbol("maybeClose");const N=Symbol("skip");const M=Symbol("doChown");const D=Symbol("uid");const L=Symbol("gid");const B=r(6113);const unlinkFile=(e,t)=>{if(process.platform!=="win32")return o.unlink(e,t);const r=e+".DELETE."+B.randomBytes(16).toString("hex");o.rename(e,r,(e=>{if(e)return t(e);o.unlink(r,t)}))};const unlinkFileSync=e=>{if(process.platform!=="win32")return o.unlinkSync(e);const t=e+".DELETE."+B.randomBytes(16).toString("hex");o.renameSync(e,t);o.unlinkSync(t)};const uint32=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r;class Unpack extends i{constructor(e){if(!e)e={};e.ondone=e=>{this[j]=true;this[I]()};super(e);this.transform=typeof e.transform==="function"?e.transform:null;this.writable=true;this.readable=false;this[P]=0;this[j]=false;this.dirCache=e.dirCache||new Map;if(typeof e.uid==="number"||typeof e.gid==="number"){if(typeof e.uid!=="number"||typeof e.gid!=="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid;this.gid=e.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(e.preserveOwner===undefined&&typeof e.uid!=="number")this.preserveOwner=process.getuid&&process.getuid()===0;else this.preserveOwner=!!e.preserveOwner;this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null;this.forceChown=e.forceChown===true;this.win32=!!e.win32||process.platform==="win32";this.newer=!!e.newer;this.keep=!!e.keep;this.noMtime=!!e.noMtime;this.preservePaths=!!e.preservePaths;this.unlink=!!e.unlink;this.cwd=c.resolve(e.cwd||process.cwd());this.strip=+e.strip||0;this.processUmask=process.umask();this.umask=typeof e.umask==="number"?e.umask:this.processUmask;this.dmode=e.dmode||511&~this.umask;this.fmode=e.fmode||438&~this.umask;this.on("entry",(e=>this[p](e)))}[I](){if(this[j]&&this[P]===0){this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}}[k](e){if(this.strip){const t=e.path.split(/\/|\\/);if(t.length<this.strip)return false;e.path=t.slice(this.strip).join("/");if(e.type==="Link"){const t=e.linkpath.split(/\/|\\/);if(t.length>=this.strip)e.linkpath=t.slice(this.strip).join("/")}}if(!this.preservePaths){const t=e.path;if(t.match(/(^|\/|\\)\.\.(\\|\/|$)/)){this.warn("path contains '..'",t);return false}if(c.win32.isAbsolute(t)){const r=c.win32.parse(t);this.warn("stripping "+r.root+" from absolute path",t);e.path=t.substr(r.root.length)}}if(this.win32){const t=c.win32.parse(e.path);e.path=t.root===""?h.encode(e.path):t.root+h.encode(e.path.substr(t.root.length))}if(c.isAbsolute(e.path))e.absolute=e.path;else e.absolute=c.resolve(this.cwd,e.path);return true}[p](e){if(!this[k](e))return e.resume();n.equal(typeof e.absolute,"string");switch(e.type){case"Directory":case"GNUDumpDir":if(e.mode)e.mode=e.mode|448;case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[d](e);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[O](e)}}[C](e,t){if(e.name==="CwdError")this.emit("error",e);else{this.warn(e.message,e);this[T]();t.resume()}}[A](e,t,r){u(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t},r)}[M](e){return this.forceChown||this.preserveOwner&&(typeof e.uid==="number"&&e.uid!==this.processUid||typeof e.gid==="number"&&e.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[D](e){return uint32(this.uid,e.uid,this.processUid)}[L](e){return uint32(this.gid,e.gid,this.processGid)}[v](e){const t=e.mode&4095||this.fmode;const r=new a.WriteStream(e.absolute,{mode:t,autoClose:false});r.on("error",(t=>this[C](t,e)));let n=1;const done=t=>{if(t)return this[C](t,e);if(--n===0)o.close(r.fd,(e=>this[T]()))};r.on("finish",(t=>{const s=e.absolute;const i=r.fd;if(e.mtime&&!this.noMtime){n++;const t=e.atime||new Date;const r=e.mtime;o.futimes(i,t,r,(e=>e?o.utimes(s,t,r,(t=>done(t&&e))):done()))}if(this[M](e)){n++;const t=this[D](e);const r=this[L](e);o.fchown(i,t,r,(e=>e?o.chown(s,t,r,(t=>done(t&&e))):done()))}done()}));const s=this.transform?this.transform(e)||e:e;if(s!==e){s.on("error",(t=>this[C](t,e)));e.pipe(s)}s.pipe(r)}[b](e){const t=e.mode&4095||this.dmode;this[A](e.absolute,t,(t=>{if(t)return this[C](t,e);let r=1;const done=t=>{if(--r===0){this[T]();e.resume()}};if(e.mtime&&!this.noMtime){r++;o.utimes(e.absolute,e.atime||new Date,e.mtime,done)}if(this[M](e)){r++;o.chown(e.absolute,this[D](e),this[L](e),done)}done()}))}[O](e){this.warn("unsupported entry type: "+e.type,e);e.resume()}[S](e){this[w](e,e.linkpath,"symlink")}[x](e){this[w](e,c.resolve(this.cwd,e.linkpath),"link")}[$](){this[P]++}[T](){this[P]--;this[I]()}[N](e){this[T]();e.resume()}[y](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&process.platform!=="win32"}[d](e){this[$]();this[A](c.dirname(e.absolute),this.dmode,(t=>{if(t)return this[C](t,e);o.lstat(e.absolute,((t,r)=>{if(r&&(this.keep||this.newer&&r.mtime>e.mtime))this[N](e);else if(t||this[y](e,r))this[g](null,e);else if(r.isDirectory()){if(e.type==="Directory"){if(!e.mode||(r.mode&4095)===e.mode)this[g](null,e);else o.chmod(e.absolute,e.mode,(t=>this[g](t,e)))}else o.rmdir(e.absolute,(t=>this[g](t,e)))}else unlinkFile(e.absolute,(t=>this[g](t,e)))}))}))}[g](e,t){if(e)return this[C](e,t);switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[v](t);case"Link":return this[x](t);case"SymbolicLink":return this[S](t);case"Directory":case"GNUDumpDir":return this[b](t)}}[w](e,t,r){o[r](t,e.absolute,(t=>{if(t)return this[C](t,e);this[T]();e.resume()}))}}class UnpackSync extends Unpack{constructor(e){super(e)}[d](e){const t=this[A](c.dirname(e.absolute),this.dmode);if(t)return this[C](t,e);try{const r=o.lstatSync(e.absolute);if(this.keep||this.newer&&r.mtime>e.mtime)return this[N](e);else if(this[y](e,r))return this[g](null,e);else{try{if(r.isDirectory()){if(e.type==="Directory"){if(e.mode&&(r.mode&4095)!==e.mode)o.chmodSync(e.absolute,e.mode)}else o.rmdirSync(e.absolute)}else unlinkFileSync(e.absolute);return this[g](null,e)}catch(t){return this[C](t,e)}}}catch(t){return this[g](null,e)}}[v](e){const t=e.mode&4095||this.fmode;const oner=t=>{try{o.closeSync(n)}catch(e){}if(t)this[C](t,e)};let r;let n;try{n=o.openSync(e.absolute,"w",t)}catch(e){return oner(e)}const s=this.transform?this.transform(e)||e:e;if(s!==e){s.on("error",(t=>this[C](t,e)));e.pipe(s)}s.on("data",(e=>{try{o.writeSync(n,e,0,e.length)}catch(e){oner(e)}}));s.on("end",(t=>{let r=null;if(e.mtime&&!this.noMtime){const t=e.atime||new Date;const s=e.mtime;try{o.futimesSync(n,t,s)}catch(n){try{o.utimesSync(e.absolute,t,s)}catch(e){r=n}}}if(this[M](e)){const t=this[D](e);const s=this[L](e);try{o.fchownSync(n,t,s)}catch(n){try{o.chownSync(e.absolute,t,s)}catch(e){r=r||n}}}oner(r)}))}[b](e){const t=e.mode&4095||this.dmode;const r=this[A](e.absolute,t);if(r)return this[C](r,e);if(e.mtime&&!this.noMtime){try{o.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch(r){}}if(this[M](e)){try{o.chownSync(e.absolute,this[D](e),this[L](e))}catch(r){}}e.resume()}[A](e,t){try{return u.sync(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(e){return e}}[w](e,t,r){try{o[r+"Sync"](t,e.absolute);e.resume()}catch(t){return this[C](t,e)}}}Unpack.Sync=UnpackSync;e.exports=Unpack},27459:(e,t,r)=>{"use strict";const n=r(22039);const s=r(95283);const i=e.exports=(e,t,r)=>{const i=n(e);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);mtimeFilter(i);return s(i,t,r)};const mtimeFilter=e=>{const t=e.filter;if(!e.mtimeCache)e.mtimeCache=new Map;e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(t,r)=>!(e.mtimeCache.get(t)>r.mtime)}},77970:e=>{"use strict";e.exports=e=>class extends e{warn(e,t){if(!this.strict)this.emit("warn",e,t);else if(t instanceof Error)this.emit("error",t);else{const r=new Error(e);r.data=t;this.emit("error",r)}}}},14773:e=>{"use strict";const t=["|","<",">","?",":"];const r=t.map((e=>String.fromCharCode(61440+e.charCodeAt(0))));const n=new Map(t.map(((e,t)=>[e,r[t]])));const s=new Map(r.map(((e,r)=>[e,t[r]])));e.exports={encode:e=>t.reduce(((e,t)=>e.split(t).join(n.get(t))),e),decode:e=>r.reduce(((e,t)=>e.split(t).join(s.get(t))),e)}},51122:(e,t,r)=>{"use strict";const n=r(72588);const s=r(67097);const i=r(97584);const o=r(44714);const a=r(32449);const c=r(57147);const u=r(71017);const l=r(20795);const h=16*1024*1024;const p=Symbol("process");const d=Symbol("file");const y=Symbol("directory");const g=Symbol("symlink");const v=Symbol("hardlink");const b=Symbol("header");const w=Symbol("read");const S=Symbol("lstat");const x=Symbol("onlstat");const O=Symbol("onread");const R=Symbol("onreadlink");const k=Symbol("openfile");const A=Symbol("onopenfile");const C=Symbol("close");const P=Symbol("mode");const $=r(77970);const T=r(14773);const j=r(24666);const I=$(class WriteEntry extends s{constructor(e,t){t=t||{};super(t);if(typeof e!=="string")throw new TypeError("path is required");this.path=e;this.portable=!!t.portable;this.myuid=process.getuid&&process.getuid();this.myuser=process.env.USER||"";this.maxReadSize=t.maxReadSize||h;this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.preservePaths=!!t.preservePaths;this.cwd=t.cwd||process.cwd();this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);if(!this.preservePaths&&u.win32.isAbsolute(e)){const t=u.win32.parse(e);this.warn("stripping "+t.root+" from absolute path",e);this.path=e.substr(t.root.length)}this.win32=!!t.win32||process.platform==="win32";if(this.win32){this.path=T.decode(this.path.replace(/\\/g,"/"));e=e.replace(/\\/g,"/")}this.absolute=t.absolute||u.resolve(this.cwd,e);if(this.path==="")this.path="./";if(this.statCache.has(this.absolute))this[x](this.statCache.get(this.absolute));else this[S]()}[S](){c.lstat(this.absolute,((e,t)=>{if(e)return this.emit("error",e);this[x](t)}))}[x](e){this.statCache.set(this.absolute,e);this.stat=e;if(!e.isFile())e.size=0;this.type=getType(e);this.emit("stat",e);this[p]()}[p](){switch(this.type){case"File":return this[d]();case"Directory":return this[y]();case"SymbolicLink":return this[g]();default:return this.end()}}[P](e){return j(e,this.type==="Directory")}[b](){if(this.type==="Directory"&&this.portable)this.noMtime=true;this.header=new o({path:this.path,linkpath:this.linkpath,mode:this[P](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime});if(this.header.encode()&&!this.noPax)this.write(new i({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this.path,linkpath:this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode());this.write(this.header.block)}[y](){if(this.path.substr(-1)!=="/")this.path+="/";this.stat.size=0;this[b]();this.end()}[g](){c.readlink(this.absolute,((e,t)=>{if(e)return this.emit("error",e);this[R](t)}))}[R](e){this.linkpath=e;this[b]();this.end()}[v](e){this.type="Link";this.linkpath=u.relative(this.cwd,e);this.stat.size=0;this[b]();this.end()}[d](){if(this.stat.nlink>1){const e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){const t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[v](t)}this.linkCache.set(e,this.absolute)}this[b]();if(this.stat.size===0)return this.end();this[k]()}[k](){c.open(this.absolute,"r",((e,t)=>{if(e)return this.emit("error",e);this[A](t)}))}[A](e){const t=512*Math.ceil(this.stat.size/512);const r=Math.min(t,this.maxReadSize);const s=n.allocUnsafe(r);this[w](e,s,0,s.length,0,this.stat.size,t)}[w](e,t,r,n,s,i,o){c.read(e,t,r,n,s,((a,c)=>{if(a)return this[C](e,(e=>this.emit("error",a)));this[O](e,t,r,n,s,i,o,c)}))}[C](e,t){c.close(e,t)}[O](e,t,r,s,i,o,a,c){if(c<=0&&o>0){const t=new Error("encountered unexpected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";this[C](e);return this.emit("error",t)}if(c>o){const t=new Error("did not encounter expected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";this[C](e);return this.emit("error",t)}if(c===o){for(let e=c;e<s&&c<a;e++){t[e+r]=0;c++;o++}}const u=r===0&&c===t.length?t:t.slice(r,r+c);o-=c;a-=c;i+=c;r+=c;this.write(u);if(!o){if(a)this.write(n.alloc(a));this.end();this[C](e,(e=>e));return}if(r>=s){t=n.allocUnsafe(s);r=0}s=t.length-r;this[w](e,t,r,s,i,o,a)}});class WriteEntrySync extends I{constructor(e,t){super(e,t)}[S](){this[x](c.lstatSync(this.absolute))}[g](){this[R](c.readlinkSync(this.absolute))}[k](){this[A](c.openSync(this.absolute,"r"))}[w](e,t,r,n,s,i,o){let a=true;try{const u=c.readSync(e,t,r,n,s);this[O](e,t,r,n,s,i,o,u);a=false}finally{if(a)try{this[C](e)}catch(e){}}}[C](e){c.closeSync(e)}}const N=$(class WriteEntryTar extends s{constructor(e,t){t=t||{};super(t);this.preservePaths=!!t.preservePaths;this.portable=!!t.portable;this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.readEntry=e;this.type=e.type;if(this.type==="Directory"&&this.portable)this.noMtime=true;this.path=e.path;this.mode=this[P](e.mode);this.uid=this.portable?null:e.uid;this.gid=this.portable?null:e.gid;this.uname=this.portable?null:e.uname;this.gname=this.portable?null:e.gname;this.size=e.size;this.mtime=this.noMtime?null:t.mtime||e.mtime;this.atime=this.portable?null:e.atime;this.ctime=this.portable?null:e.ctime;this.linkpath=e.linkpath;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);if(u.isAbsolute(this.path)&&!this.preservePaths){const e=u.parse(this.path);this.warn("stripping "+e.root+" from absolute path",this.path);this.path=this.path.substr(e.root.length)}this.remain=e.size;this.blockRemain=e.startBlockSize;this.header=new o({path:this.path,linkpath:this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime});if(this.header.encode()&&!this.noPax)super.write(new i({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this.path,linkpath:this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode());super.write(this.header.block);e.pipe(this)}[P](e){return j(e,this.type==="Directory")}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");this.blockRemain-=t;return super.write(e)}end(){if(this.blockRemain)this.write(n.alloc(this.blockRemain));return super.end()}});I.Sync=WriteEntrySync;I.Tar=N;const getType=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=I},54017:(e,t,r)=>{"use strict";
299
+ */var n=r(69438);var s=r(80922);var i=r(73837);function extend(e,t){if(typeof e!=="function"){throw new TypeError("expected Parent to be a function.")}return function(r,o){if(typeof r!=="function"){throw new TypeError("expected Ctor to be a function.")}i.inherits(r,e);n(r,e);if(typeof o==="object"){var a=Object.create(o);for(var c in a){r.prototype[c]=a[c]}}s(r.prototype,"_parent_",{configurable:true,set:function(){},get:function(){return e.prototype}});if(typeof t==="function"){t(r,e)}r.extend=extend(r,t)}}e.exports=extend},12251:e=>{"use strict";var t=1;var r=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(e,t,r){return e.slice(t,r).replace(/\S/g," ")}e.exports=function(e,n){n=n||{};var s;var i;var o=false;var a=false;var c=0;var u="";var l=n.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var h=0;h<e.length;h++){s=e[h];i=e[h+1];if(!a&&s==='"'){var p=e[h-1]==="\\"&&e[h-2]!=="\\";if(!p){o=!o}}if(o){continue}if(!a&&s+i==="//"){u+=e.slice(c,h);c=h;a=t;h++}else if(a===t&&s+i==="\r\n"){h++;a=false;u+=l(e,c,h);c=h;continue}else if(a===t&&s==="\n"){a=false;u+=l(e,c,h);c=h}else if(!a&&s+i==="/*"){u+=e.slice(c,h);c=h;a=r;h++;continue}else if(a===r&&s+i==="*/"){h++;a=false;u+=l(e,c,h+1);c=h+1;continue}}return u+(a?l(e.substr(c)):e.substr(c))}},67220:(e,t,r)=>{"use strict";const n=r(22037);const s=r(15343);const i=process.env;let o;if(s("no-color")||s("no-colors")||s("color=false")){o=false}else if(s("color")||s("colors")||s("color=true")||s("color=always")){o=true}if("FORCE_COLOR"in i){o=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}if(i.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},55255:(e,t,r)=>{"use strict";t.c=t.create=r(87585);t.r=t.replace=r(11138);t.t=t.list=r(4975);t.u=t.update=r(79472);t.x=t.extract=r(19985);t.Pack=r(77301);t.Unpack=r(55951);t.Parse=r(55222);t.ReadEntry=r(15917);t.WriteEntry=r(91944);t.Header=r(71703);t.Pax=r(9037);t.types=r(71046)},87585:(e,t,r)=>{"use strict";const n=r(63831);const s=r(77301);const i=r(30644);const o=r(4975);const a=r(71017);e.exports=(e,t,r)=>{if(typeof t==="function"){r=t}if(Array.isArray(e)){t=e,e={}}if(!t||!Array.isArray(t)||!t.length){throw new TypeError("no files or directories specified")}t=Array.from(t);const s=n(e);if(s.sync&&typeof r==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!s.file&&typeof r==="function"){throw new TypeError("callback only supported with file option")}return s.file&&s.sync?createFileSync(s,t):s.file?createFile(s,t,r):s.sync?createSync(s,t):create(s,t)};const createFileSync=(e,t)=>{const r=new s.Sync(e);const n=new i.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n);addFilesSync(r,t)};const createFile=(e,t,r)=>{const n=new s(e);const o=new i.WriteStream(e.file,{mode:e.mode||438});n.pipe(o);const a=new Promise(((e,t)=>{o.on("error",t);o.on("close",e);n.on("error",t)}));addFilesAsync(n,t);return r?a.then(r,r):a};const addFilesSync=(e,t)=>{t.forEach((t=>{if(t.charAt(0)==="@"){o({file:a.resolve(e.cwd,t.slice(1)),sync:true,noResume:true,onentry:t=>e.add(t)})}else{e.add(t)}}));e.end()};const addFilesAsync=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@"){return o({file:a.resolve(e.cwd,r.slice(1)),noResume:true,onentry:t=>e.add(t)}).then((r=>addFilesAsync(e,t)))}else{e.add(r)}}e.end()};const createSync=(e,t)=>{const r=new s.Sync(e);addFilesSync(r,t);return r};const create=(e,t)=>{const r=new s(e);addFilesAsync(r,t);return r}},19985:(e,t,r)=>{"use strict";const n=r(63831);const s=r(55951);const i=r(57147);const o=r(30644);const a=r(71017);const c=r(32517);e.exports=(e,t,r)=>{if(typeof e==="function"){r=e,t=null,e={}}else if(Array.isArray(e)){t=e,e={}}if(typeof t==="function"){r=t,t=null}if(!t){t=[]}else{t=Array.from(t)}const s=n(e);if(s.sync&&typeof r==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!s.file&&typeof r==="function"){throw new TypeError("callback only supported with file option")}if(t.length){filesFilter(s,t)}return s.file&&s.sync?extractFileSync(s):s.file?extractFile(s,r):s.sync?extractSync(s):extract(s)};const filesFilter=(e,t)=>{const r=new Map(t.map((e=>[c(e),true])));const n=e.filter;const mapHas=(e,t)=>{const n=t||a.parse(e).root||".";const s=e===n?false:r.has(e)?r.get(e):mapHas(a.dirname(e),n);r.set(e,s);return s};e.filter=n?(e,t)=>n(e,t)&&mapHas(c(e)):e=>mapHas(c(e))};const extractFileSync=e=>{const t=new s.Sync(e);const r=e.file;const n=i.statSync(r);const a=e.maxReadSize||16*1024*1024;const c=new o.ReadStreamSync(r,{readSize:a,size:n.size});c.pipe(t)};const extractFile=(e,t)=>{const r=new s(e);const n=e.maxReadSize||16*1024*1024;const a=e.file;const c=new Promise(((e,t)=>{r.on("error",t);r.on("close",e);i.stat(a,((e,s)=>{if(e){t(e)}else{const e=new o.ReadStream(a,{readSize:n,size:s.size});e.on("error",t);e.pipe(r)}}))}));return t?c.then(t,t):c};const extractSync=e=>new s.Sync(e);const extract=e=>new s(e)},69262:(e,t,r)=>{const n=process.env.__FAKE_PLATFORM__||process.platform;const s=n==="win32";const i=global.__FAKE_TESTING_FS__||r(57147);const{O_CREAT:o,O_TRUNC:a,O_WRONLY:c,UV_FS_O_FILEMAP:u=0}=i.constants;const l=s&&!!u;const h=512*1024;const p=u|a|o|c;e.exports=!l?()=>"w":e=>e<h?p:"w"},71703:(e,t,r)=>{"use strict";const n=r(71046);const s=r(71017).posix;const i=r(2933);const o=Symbol("slurp");const a=Symbol("type");class Header{constructor(e,t,r,n){this.cksumValid=false;this.needPax=false;this.nullBlock=false;this.block=null;this.path=null;this.mode=null;this.uid=null;this.gid=null;this.size=null;this.mtime=null;this.cksum=null;this[a]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(Buffer.isBuffer(e)){this.decode(e,t||0,r,n)}else if(e){this.set(e)}}decode(e,t,r,n){if(!t){t=0}if(!e||!(e.length>=t+512)){throw new Error("need 512 bytes for header")}this.path=decString(e,t,100);this.mode=decNumber(e,t+100,8);this.uid=decNumber(e,t+108,8);this.gid=decNumber(e,t+116,8);this.size=decNumber(e,t+124,12);this.mtime=decDate(e,t+136,12);this.cksum=decNumber(e,t+148,12);this[o](r);this[o](n,true);this[a]=decString(e,t+156,1);if(this[a]===""){this[a]="0"}if(this[a]==="0"&&this.path.slice(-1)==="/"){this[a]="5"}if(this[a]==="5"){this.size=0}this.linkpath=decString(e,t+157,100);if(e.slice(t+257,t+265).toString()==="ustar\x0000"){this.uname=decString(e,t+265,32);this.gname=decString(e,t+297,32);this.devmaj=decNumber(e,t+329,8);this.devmin=decNumber(e,t+337,8);if(e[t+475]!==0){const r=decString(e,t+345,155);this.path=r+"/"+this.path}else{const r=decString(e,t+345,130);if(r){this.path=r+"/"+this.path}this.atime=decDate(e,t+476,12);this.ctime=decDate(e,t+488,12)}}let s=8*32;for(let r=t;r<t+148;r++){s+=e[r]}for(let r=t+156;r<t+512;r++){s+=e[r]}this.cksumValid=s===this.cksum;if(this.cksum===null&&s===8*32){this.nullBlock=true}}[o](e,t){for(const r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path")){this[r]=e[r]}}}encode(e,t){if(!e){e=this.block=Buffer.alloc(512);t=0}if(!t){t=0}if(!(e.length>=t+512)){throw new Error("need 512 bytes for header")}const r=this.ctime||this.atime?130:155;const n=splitPrefix(this.path||"",r);const s=n[0];const i=n[1];this.needPax=n[2];this.needPax=encString(e,t,100,s)||this.needPax;this.needPax=encNumber(e,t+100,8,this.mode)||this.needPax;this.needPax=encNumber(e,t+108,8,this.uid)||this.needPax;this.needPax=encNumber(e,t+116,8,this.gid)||this.needPax;this.needPax=encNumber(e,t+124,12,this.size)||this.needPax;this.needPax=encDate(e,t+136,12,this.mtime)||this.needPax;e[t+156]=this[a].charCodeAt(0);this.needPax=encString(e,t+157,100,this.linkpath)||this.needPax;e.write("ustar\x0000",t+257,8);this.needPax=encString(e,t+265,32,this.uname)||this.needPax;this.needPax=encString(e,t+297,32,this.gname)||this.needPax;this.needPax=encNumber(e,t+329,8,this.devmaj)||this.needPax;this.needPax=encNumber(e,t+337,8,this.devmin)||this.needPax;this.needPax=encString(e,t+345,r,i)||this.needPax;if(e[t+475]!==0){this.needPax=encString(e,t+345,155,i)||this.needPax}else{this.needPax=encString(e,t+345,130,i)||this.needPax;this.needPax=encDate(e,t+476,12,this.atime)||this.needPax;this.needPax=encDate(e,t+488,12,this.ctime)||this.needPax}let o=8*32;for(let r=t;r<t+148;r++){o+=e[r]}for(let r=t+156;r<t+512;r++){o+=e[r]}this.cksum=o;encNumber(e,t+148,8,this.cksum);this.cksumValid=true;return this.needPax}set(e){for(const t in e){if(e[t]!==null&&e[t]!==undefined){this[t]=e[t]}}}get type(){return n.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(e){if(n.code.has(e)){this[a]=n.code.get(e)}else{this[a]=e}}}const splitPrefix=(e,t)=>{const r=100;let n=e;let i="";let o;const a=s.parse(e).root||".";if(Buffer.byteLength(n)<r){o=[n,i,false]}else{i=s.dirname(n);n=s.basename(n);do{if(Buffer.byteLength(n)<=r&&Buffer.byteLength(i)<=t){o=[n,i,false]}else if(Buffer.byteLength(n)>r&&Buffer.byteLength(i)<=t){o=[n.slice(0,r-1),i,true]}else{n=s.join(s.basename(i),n);i=s.dirname(i)}}while(i!==a&&!o);if(!o){o=[e.slice(0,r-1),"",true]}}return o};const decString=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,"");const decDate=(e,t,r)=>numToDate(decNumber(e,t,r));const numToDate=e=>e===null?null:new Date(e*1e3);const decNumber=(e,t,r)=>e[t]&128?i.parse(e.slice(t,t+r)):decSmallNumber(e,t,r);const nanNull=e=>isNaN(e)?null:e;const decSmallNumber=(e,t,r)=>nanNull(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8));const c={12:8589934591,8:2097151};const encNumber=(e,t,r,n)=>n===null?false:n>c[r]||n<0?(i.encode(n,e.slice(t,t+r)),true):(encSmallNumber(e,t,r,n),false);const encSmallNumber=(e,t,r,n)=>e.write(octalString(n,r),t,r,"ascii");const octalString=(e,t)=>padOctal(Math.floor(e).toString(8),t);const padOctal=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0";const encDate=(e,t,r,n)=>n===null?false:encNumber(e,t,r,n.getTime()/1e3);const u=new Array(156).join("\0");const encString=(e,t,r,n)=>n===null?false:(e.write(n+u,t,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);e.exports=Header},63831:e=>{"use strict";const t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);e.exports=e=>e?Object.keys(e).map((r=>[t.has(r)?t.get(r):r,e[r]])).reduce(((e,t)=>(e[t[0]]=t[1],e)),Object.create(null)):{}},2933:e=>{"use strict";const encode=(e,t)=>{if(!Number.isSafeInteger(e)){throw Error("cannot encode number outside of javascript safe integer range")}else if(e<0){encodeNegative(e,t)}else{encodePositive(e,t)}return t};const encodePositive=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--){t[r-1]=e&255;e=Math.floor(e/256)}};const encodeNegative=(e,t)=>{t[0]=255;var r=false;e=e*-1;for(var n=t.length;n>1;n--){var s=e&255;e=Math.floor(e/256);if(r){t[n-1]=onesComp(s)}else if(s===0){t[n-1]=0}else{r=true;t[n-1]=twosComp(s)}}};const parse=e=>{const t=e[0];const r=t===128?pos(e.slice(1,e.length)):t===255?twos(e):null;if(r===null){throw Error("invalid base256 encoding")}if(!Number.isSafeInteger(r)){throw Error("parsed number outside of javascript safe integer range")}return r};const twos=e=>{var t=e.length;var r=0;var n=false;for(var s=t-1;s>-1;s--){var i=e[s];var o;if(n){o=onesComp(i)}else if(i===0){o=i}else{n=true;o=twosComp(i)}if(o!==0){r-=o*Math.pow(256,t-s-1)}}return r};const pos=e=>{var t=e.length;var r=0;for(var n=t-1;n>-1;n--){var s=e[n];if(s!==0){r+=s*Math.pow(256,t-n-1)}}return r};const onesComp=e=>(255^e)&255;const twosComp=e=>(255^e)+1&255;e.exports={encode:encode,parse:parse}},4975:(e,t,r)=>{"use strict";const n=r(63831);const s=r(55222);const i=r(57147);const o=r(30644);const a=r(71017);const c=r(32517);e.exports=(e,t,r)=>{if(typeof e==="function"){r=e,t=null,e={}}else if(Array.isArray(e)){t=e,e={}}if(typeof t==="function"){r=t,t=null}if(!t){t=[]}else{t=Array.from(t)}const s=n(e);if(s.sync&&typeof r==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!s.file&&typeof r==="function"){throw new TypeError("callback only supported with file option")}if(t.length){filesFilter(s,t)}if(!s.noResume){onentryFunction(s)}return s.file&&s.sync?listFileSync(s):s.file?listFile(s,r):list(s)};const onentryFunction=e=>{const t=e.onentry;e.onentry=t?e=>{t(e);e.resume()}:e=>e.resume()};const filesFilter=(e,t)=>{const r=new Map(t.map((e=>[c(e),true])));const n=e.filter;const mapHas=(e,t)=>{const n=t||a.parse(e).root||".";const s=e===n?false:r.has(e)?r.get(e):mapHas(a.dirname(e),n);r.set(e,s);return s};e.filter=n?(e,t)=>n(e,t)&&mapHas(c(e)):e=>mapHas(c(e))};const listFileSync=e=>{const t=list(e);const r=e.file;let n=true;let s;try{const o=i.statSync(r);const a=e.maxReadSize||16*1024*1024;if(o.size<a){t.end(i.readFileSync(r))}else{let e=0;const n=Buffer.allocUnsafe(a);s=i.openSync(r,"r");while(e<o.size){const r=i.readSync(s,n,0,a,e);e+=r;t.write(n.slice(0,r))}t.end()}n=false}finally{if(n&&s){try{i.closeSync(s)}catch(e){}}}};const listFile=(e,t)=>{const r=new s(e);const n=e.maxReadSize||16*1024*1024;const a=e.file;const c=new Promise(((e,t)=>{r.on("error",t);r.on("end",e);i.stat(a,((e,s)=>{if(e){t(e)}else{const e=new o.ReadStream(a,{readSize:n,size:s.size});e.on("error",t);e.pipe(r)}}))}));return t?c.then(t,t):c};const list=e=>new s(e)},66209:(e,t,r)=>{"use strict";const n=r(29806);const s=r(57147);const i=r(71017);const o=r(82975);const a=r(9740);class SymlinkError extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t;this.symlink=e}get name(){return"SylinkError"}}class CwdError extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e;this.code=t}get name(){return"CwdError"}}const cGet=(e,t)=>e.get(a(t));const cSet=(e,t,r)=>e.set(a(t),r);const checkCwd=(e,t)=>{s.stat(e,((r,n)=>{if(r||!n.isDirectory()){r=new CwdError(e,r&&r.code||"ENOTDIR")}t(r)}))};e.exports=(e,t,r)=>{e=a(e);const c=t.umask;const u=t.mode|448;const l=(u&c)!==0;const h=t.uid;const p=t.gid;const d=typeof h==="number"&&typeof p==="number"&&(h!==t.processUid||p!==t.processGid);const y=t.preserve;const g=t.unlink;const v=t.cache;const b=a(t.cwd);const done=(t,n)=>{if(t){r(t)}else{cSet(v,e,true);if(n&&d){o(n,h,p,(e=>done(e)))}else if(l){s.chmod(e,u,r)}else{r()}}};if(v&&cGet(v,e)===true){return done()}if(e===b){return checkCwd(e,done)}if(y){return n(e,{mode:u}).then((e=>done(null,e)),done)}const w=a(i.relative(b,e));const S=w.split("/");mkdir_(b,S,u,v,g,b,null,done)};const mkdir_=(e,t,r,n,o,c,u,l)=>{if(!t.length){return l(null,u)}const h=t.shift();const p=a(i.resolve(e+"/"+h));if(cGet(n,p)){return mkdir_(p,t,r,n,o,c,u,l)}s.mkdir(p,r,onmkdir(p,t,r,n,o,c,u,l))};const onmkdir=(e,t,r,n,i,o,c,u)=>l=>{if(l){s.lstat(e,((h,p)=>{if(h){h.path=h.path&&a(h.path);u(h)}else if(p.isDirectory()){mkdir_(e,t,r,n,i,o,c,u)}else if(i){s.unlink(e,(a=>{if(a){return u(a)}s.mkdir(e,r,onmkdir(e,t,r,n,i,o,c,u))}))}else if(p.isSymbolicLink()){return u(new SymlinkError(e,e+"/"+t.join("/")))}else{u(l)}}))}else{c=c||e;mkdir_(e,t,r,n,i,o,c,u)}};const checkCwdSync=e=>{let t=false;let r="ENOTDIR";try{t=s.statSync(e).isDirectory()}catch(e){r=e.code}finally{if(!t){throw new CwdError(e,r)}}};e.exports.sync=(e,t)=>{e=a(e);const r=t.umask;const c=t.mode|448;const u=(c&r)!==0;const l=t.uid;const h=t.gid;const p=typeof l==="number"&&typeof h==="number"&&(l!==t.processUid||h!==t.processGid);const d=t.preserve;const y=t.unlink;const g=t.cache;const v=a(t.cwd);const done=t=>{cSet(g,e,true);if(t&&p){o.sync(t,l,h)}if(u){s.chmodSync(e,c)}};if(g&&cGet(g,e)===true){return done()}if(e===v){checkCwdSync(v);return done()}if(d){return done(n.sync(e,c))}const b=a(i.relative(v,e));const w=b.split("/");let S=null;for(let e=w.shift(),t=v;e&&(t+="/"+e);e=w.shift()){t=a(i.resolve(t));if(cGet(g,t)){continue}try{s.mkdirSync(t,c);S=S||t;cSet(g,t,true)}catch(e){const r=s.lstatSync(t);if(r.isDirectory()){cSet(g,t,true);continue}else if(y){s.unlinkSync(t);s.mkdirSync(t,c);S=S||t;cSet(g,t,true);continue}else if(r.isSymbolicLink()){return new SymlinkError(t,t+"/"+w.join("/"))}}}return done(S)}},6601:e=>{"use strict";e.exports=(e,t,r)=>{e&=4095;if(r){e=(e|384)&~18}if(t){if(e&256){e|=64}if(e&32){e|=8}if(e&4){e|=1}}return e}},94711:e=>{const t=Object.create(null);const{hasOwnProperty:r}=Object.prototype;e.exports=e=>{if(!r.call(t,e)){t[e]=e.normalize("NFD")}return t[e]}},9740:e=>{const t=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=t!=="win32"?e=>e:e=>e&&e.replace(/\\/g,"/")},77301:(e,t,r)=>{"use strict";class PackJob{constructor(e,t){this.path=e||"./";this.absolute=t;this.entry=null;this.stat=null;this.readdir=null;this.pending=false;this.ignore=false;this.piped=false}}const{Minipass:n}=r(85540);const s=r(67750);const i=r(15917);const o=r(91944);const a=o.Sync;const c=o.Tar;const u=r(13401);const l=Buffer.alloc(1024);const h=Symbol("onStat");const p=Symbol("ended");const d=Symbol("queue");const y=Symbol("current");const g=Symbol("process");const v=Symbol("processing");const b=Symbol("processJob");const w=Symbol("jobs");const S=Symbol("jobDone");const x=Symbol("addFSEntry");const O=Symbol("addTarEntry");const R=Symbol("stat");const k=Symbol("readdir");const A=Symbol("onreaddir");const P=Symbol("pipe");const C=Symbol("entry");const $=Symbol("entryOpt");const T=Symbol("writeEntryClass");const j=Symbol("write");const I=Symbol("ondrain");const N=r(57147);const M=r(71017);const D=r(58920);const L=r(9740);const B=D(class Pack extends n{constructor(e){super(e);e=e||Object.create(null);this.opt=e;this.file=e.file||"";this.cwd=e.cwd||process.cwd();this.maxReadSize=e.maxReadSize;this.preservePaths=!!e.preservePaths;this.strict=!!e.strict;this.noPax=!!e.noPax;this.prefix=L(e.prefix||"");this.linkCache=e.linkCache||new Map;this.statCache=e.statCache||new Map;this.readdirCache=e.readdirCache||new Map;this[T]=o;if(typeof e.onwarn==="function"){this.on("warn",e.onwarn)}this.portable=!!e.portable;this.zip=null;if(e.gzip){if(typeof e.gzip!=="object"){e.gzip={}}if(this.portable){e.gzip.portable=true}this.zip=new s.Gzip(e.gzip);this.zip.on("data",(e=>super.write(e)));this.zip.on("end",(e=>super.end()));this.zip.on("drain",(e=>this[I]()));this.on("resume",(e=>this.zip.resume()))}else{this.on("drain",this[I])}this.noDirRecurse=!!e.noDirRecurse;this.follow=!!e.follow;this.noMtime=!!e.noMtime;this.mtime=e.mtime||null;this.filter=typeof e.filter==="function"?e.filter:e=>true;this[d]=new u;this[w]=0;this.jobs=+e.jobs||4;this[v]=false;this[p]=false}[j](e){return super.write(e)}add(e){this.write(e);return this}end(e){if(e){this.write(e)}this[p]=true;this[g]();return this}write(e){if(this[p]){throw new Error("write after end")}if(e instanceof i){this[O](e)}else{this[x](e)}return this.flowing}[O](e){const t=L(M.resolve(this.cwd,e.path));if(!this.filter(e.path,e)){e.resume()}else{const r=new PackJob(e.path,t,false);r.entry=new c(e,this[$](r));r.entry.on("end",(e=>this[S](r)));this[w]+=1;this[d].push(r)}this[g]()}[x](e){const t=L(M.resolve(this.cwd,e));this[d].push(new PackJob(e,t));this[g]()}[R](e){e.pending=true;this[w]+=1;const t=this.follow?"stat":"lstat";N[t](e.absolute,((t,r)=>{e.pending=false;this[w]-=1;if(t){this.emit("error",t)}else{this[h](e,r)}}))}[h](e,t){this.statCache.set(e.absolute,t);e.stat=t;if(!this.filter(e.path,t)){e.ignore=true}this[g]()}[k](e){e.pending=true;this[w]+=1;N.readdir(e.absolute,((t,r)=>{e.pending=false;this[w]-=1;if(t){return this.emit("error",t)}this[A](e,r)}))}[A](e,t){this.readdirCache.set(e.absolute,t);e.readdir=t;this[g]()}[g](){if(this[v]){return}this[v]=true;for(let e=this[d].head;e!==null&&this[w]<this.jobs;e=e.next){this[b](e.value);if(e.value.ignore){const t=e.next;this[d].removeNode(e);e.next=t}}this[v]=false;if(this[p]&&!this[d].length&&this[w]===0){if(this.zip){this.zip.end(l)}else{super.write(l);super.end()}}}get[y](){return this[d]&&this[d].head&&this[d].head.value}[S](e){this[d].shift();this[w]-=1;this[g]()}[b](e){if(e.pending){return}if(e.entry){if(e===this[y]&&!e.piped){this[P](e)}return}if(!e.stat){if(this.statCache.has(e.absolute)){this[h](e,this.statCache.get(e.absolute))}else{this[R](e)}}if(!e.stat){return}if(e.ignore){return}if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){if(this.readdirCache.has(e.absolute)){this[A](e,this.readdirCache.get(e.absolute))}else{this[k](e)}if(!e.readdir){return}}e.entry=this[C](e);if(!e.entry){e.ignore=true;return}if(e===this[y]&&!e.piped){this[P](e)}}[$](e){return{onwarn:(e,t,r)=>this.warn(e,t,r),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[C](e){this[w]+=1;try{return new this[T](e.path,this[$](e)).on("end",(()=>this[S](e))).on("error",(e=>this.emit("error",e)))}catch(e){this.emit("error",e)}}[I](){if(this[y]&&this[y].entry){this[y].entry.resume()}}[P](e){e.piped=true;if(e.readdir){e.readdir.forEach((t=>{const r=e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[x](n+t)}))}const t=e.entry;const r=this.zip;if(r){t.on("data",(e=>{if(!r.write(e)){t.pause()}}))}else{t.on("data",(e=>{if(!super.write(e)){t.pause()}}))}}pause(){if(this.zip){this.zip.pause()}return super.pause()}});class PackSync extends B{constructor(e){super(e);this[T]=a}pause(){}resume(){}[R](e){const t=this.follow?"statSync":"lstatSync";this[h](e,N[t](e.absolute))}[k](e,t){this[A](e,N.readdirSync(e.absolute))}[P](e){const t=e.entry;const r=this.zip;if(e.readdir){e.readdir.forEach((t=>{const r=e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[x](n+t)}))}if(r){t.on("data",(e=>{r.write(e)}))}else{t.on("data",(e=>{super[j](e)}))}}}B.Sync=PackSync;e.exports=B},55222:(e,t,r)=>{"use strict";const n=r(58920);const s=r(71703);const i=r(82361);const o=r(13401);const a=1024*1024;const c=r(15917);const u=r(9037);const l=r(67750);const{nextTick:h}=r(77282);const p=Buffer.from([31,139]);const d=Symbol("state");const y=Symbol("writeEntry");const g=Symbol("readEntry");const v=Symbol("nextEntry");const b=Symbol("processEntry");const w=Symbol("extendedHeader");const S=Symbol("globalExtendedHeader");const x=Symbol("meta");const O=Symbol("emitMeta");const R=Symbol("buffer");const k=Symbol("queue");const A=Symbol("ended");const P=Symbol("emittedEnd");const C=Symbol("emit");const $=Symbol("unzip");const T=Symbol("consumeChunk");const j=Symbol("consumeChunkSub");const I=Symbol("consumeBody");const N=Symbol("consumeMeta");const M=Symbol("consumeHeader");const D=Symbol("consuming");const L=Symbol("bufferConcat");const B=Symbol("maybeEnd");const U=Symbol("writing");const G=Symbol("aborted");const z=Symbol("onDone");const V=Symbol("sawValidEntry");const q=Symbol("sawNullBlock");const H=Symbol("sawEOF");const W=Symbol("closeStream");const noop=e=>true;e.exports=n(class Parser extends i{constructor(e){e=e||{};super(e);this.file=e.file||"";this[V]=null;this.on(z,(e=>{if(this[d]==="begin"||this[V]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}}));if(e.ondone){this.on(z,e.ondone)}else{this.on(z,(e=>{this.emit("prefinish");this.emit("finish");this.emit("end")}))}this.strict=!!e.strict;this.maxMetaEntrySize=e.maxMetaEntrySize||a;this.filter=typeof e.filter==="function"?e.filter:noop;this.writable=true;this.readable=false;this[k]=new o;this[R]=null;this[g]=null;this[y]=null;this[d]="begin";this[x]="";this[w]=null;this[S]=null;this[A]=false;this[$]=null;this[G]=false;this[q]=false;this[H]=false;this.on("end",(()=>this[W]()));if(typeof e.onwarn==="function"){this.on("warn",e.onwarn)}if(typeof e.onentry==="function"){this.on("entry",e.onentry)}}[M](e,t){if(this[V]===null){this[V]=false}let r;try{r=new s(e,t,this[w],this[S])}catch(e){return this.warn("TAR_ENTRY_INVALID",e)}if(r.nullBlock){if(this[q]){this[H]=true;if(this[d]==="begin"){this[d]="header"}this[C]("eof")}else{this[q]=true;this[C]("nullBlock")}}else{this[q]=false;if(!r.cksumValid){this.warn("TAR_ENTRY_INVALID","checksum failure",{header:r})}else if(!r.path){this.warn("TAR_ENTRY_INVALID","path is required",{header:r})}else{const e=r.type;if(/^(Symbolic)?Link$/.test(e)&&!r.linkpath){this.warn("TAR_ENTRY_INVALID","linkpath required",{header:r})}else if(!/^(Symbolic)?Link$/.test(e)&&r.linkpath){this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:r})}else{const e=this[y]=new c(r,this[w],this[S]);if(!this[V]){if(e.remain){const onend=()=>{if(!e.invalid){this[V]=true}};e.on("end",onend)}else{this[V]=true}}if(e.meta){if(e.size>this.maxMetaEntrySize){e.ignore=true;this[C]("ignoredEntry",e);this[d]="ignore";e.resume()}else if(e.size>0){this[x]="";e.on("data",(e=>this[x]+=e));this[d]="meta"}}else{this[w]=null;e.ignore=e.ignore||!this.filter(e.path,e);if(e.ignore){this[C]("ignoredEntry",e);this[d]=e.remain?"ignore":"header";e.resume()}else{if(e.remain){this[d]="body"}else{this[d]="header";e.end()}if(!this[g]){this[k].push(e);this[v]()}else{this[k].push(e)}}}}}}}[W](){h((()=>this.emit("close")))}[b](e){let t=true;if(!e){this[g]=null;t=false}else if(Array.isArray(e)){this.emit.apply(this,e)}else{this[g]=e;this.emit("entry",e);if(!e.emittedEnd){e.on("end",(e=>this[v]()));t=false}}return t}[v](){do{}while(this[b](this[k].shift()));if(!this[k].length){const e=this[g];const t=!e||e.flowing||e.size===e.remain;if(t){if(!this[U]){this.emit("drain")}}else{e.once("drain",(e=>this.emit("drain")))}}}[I](e,t){const r=this[y];const n=r.blockRemain;const s=n>=e.length&&t===0?e:e.slice(t,t+n);r.write(s);if(!r.blockRemain){this[d]="header";this[y]=null;r.end()}return s.length}[N](e,t){const r=this[y];const n=this[I](e,t);if(!this[y]){this[O](r)}return n}[C](e,t,r){if(!this[k].length&&!this[g]){this.emit(e,t,r)}else{this[k].push([e,t,r])}}[O](e){this[C]("meta",this[x]);switch(e.type){case"ExtendedHeader":case"OldExtendedHeader":this[w]=u.parse(this[x],this[w],false);break;case"GlobalExtendedHeader":this[S]=u.parse(this[x],this[S],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[w]=this[w]||Object.create(null);this[w].path=this[x].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[w]=this[w]||Object.create(null);this[w].linkpath=this[x].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[G]=true;this.emit("abort",e);this.warn("TAR_ABORT",e,{recoverable:false})}write(e){if(this[G]){return}if(this[$]===null&&e){if(this[R]){e=Buffer.concat([this[R],e]);this[R]=null}if(e.length<p.length){this[R]=e;return true}for(let t=0;this[$]===null&&t<p.length;t++){if(e[t]!==p[t]){this[$]=false}}if(this[$]===null){const t=this[A];this[A]=false;this[$]=new l.Unzip;this[$].on("data",(e=>this[T](e)));this[$].on("error",(e=>this.abort(e)));this[$].on("end",(e=>{this[A]=true;this[T]()}));this[U]=true;const r=this[$][t?"end":"write"](e);this[U]=false;return r}}this[U]=true;if(this[$]){this[$].write(e)}else{this[T](e)}this[U]=false;const t=this[k].length?false:this[g]?this[g].flowing:true;if(!t&&!this[k].length){this[g].once("drain",(e=>this.emit("drain")))}return t}[L](e){if(e&&!this[G]){this[R]=this[R]?Buffer.concat([this[R],e]):e}}[B](){if(this[A]&&!this[P]&&!this[G]&&!this[D]){this[P]=true;const e=this[y];if(e&&e.blockRemain){const t=this[R]?this[R].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e});if(this[R]){e.write(this[R])}e.end()}this[C](z)}}[T](e){if(this[D]){this[L](e)}else if(!e&&!this[R]){this[B]()}else{this[D]=true;if(this[R]){this[L](e);const t=this[R];this[R]=null;this[j](t)}else{this[j](e)}while(this[R]&&this[R].length>=512&&!this[G]&&!this[H]){const e=this[R];this[R]=null;this[j](e)}this[D]=false}if(!this[R]||this[A]){this[B]()}}[j](e){let t=0;const r=e.length;while(t+512<=r&&!this[G]&&!this[H]){switch(this[d]){case"begin":case"header":this[M](e,t);t+=512;break;case"ignore":case"body":t+=this[I](e,t);break;case"meta":t+=this[N](e,t);break;default:throw new Error("invalid state: "+this[d])}}if(t<r){if(this[R]){this[R]=Buffer.concat([e.slice(t),this[R]])}else{this[R]=e.slice(t)}}}end(e){if(!this[G]){if(this[$]){this[$].end(e)}else{this[A]=true;this.write(e)}}}})},78067:(e,t,r)=>{const n=r(39491);const s=r(94711);const i=r(32517);const{join:o}=r(71017);const a=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const c=a==="win32";e.exports=()=>{const e=new Map;const t=new Map;const getDirs=e=>{const t=e.split("/").slice(0,-1).reduce(((e,t)=>{if(e.length){t=o(e[e.length-1],t)}e.push(t||"/");return e}),[]);return t};const r=new Set;const getQueues=r=>{const n=t.get(r);if(!n){throw new Error("function does not have any path reservations")}return{paths:n.paths.map((t=>e.get(t))),dirs:[...n.dirs].map((t=>e.get(t)))}};const check=e=>{const{paths:t,dirs:r}=getQueues(e);return t.every((t=>t[0]===e))&&r.every((t=>t[0]instanceof Set&&t[0].has(e)))};const run=e=>{if(r.has(e)||!check(e)){return false}r.add(e);e((()=>clear(e)));return true};const clear=s=>{if(!r.has(s)){return false}const{paths:i,dirs:o}=t.get(s);const a=new Set;i.forEach((t=>{const r=e.get(t);n.equal(r[0],s);if(r.length===1){e.delete(t)}else{r.shift();if(typeof r[0]==="function"){a.add(r[0])}else{r[0].forEach((e=>a.add(e)))}}}));o.forEach((t=>{const r=e.get(t);n(r[0]instanceof Set);if(r[0].size===1&&r.length===1){e.delete(t)}else if(r[0].size===1){r.shift();a.add(r[0])}else{r[0].delete(s)}}));r.delete(s);a.forEach((e=>run(e)));return true};const reserve=(r,n)=>{r=c?["win32 parallelization disabled"]:r.map((e=>i(o(s(e))).toLowerCase()));const a=new Set(r.map((e=>getDirs(e))).reduce(((e,t)=>e.concat(t))));t.set(n,{dirs:a,paths:r});r.forEach((t=>{const r=e.get(t);if(!r){e.set(t,[n])}else{r.push(n)}}));a.forEach((t=>{const r=e.get(t);if(!r){e.set(t,[new Set([n])])}else if(r[r.length-1]instanceof Set){r[r.length-1].add(n)}else{r.push(new Set([n]))}}));return run(n)};return{check:check,reserve:reserve}}},9037:(e,t,r)=>{"use strict";const n=r(71703);const s=r(71017);class Pax{constructor(e,t){this.atime=e.atime||null;this.charset=e.charset||null;this.comment=e.comment||null;this.ctime=e.ctime||null;this.gid=e.gid||null;this.gname=e.gname||null;this.linkpath=e.linkpath||null;this.mtime=e.mtime||null;this.path=e.path||null;this.size=e.size||null;this.uid=e.uid||null;this.uname=e.uname||null;this.dev=e.dev||null;this.ino=e.ino||null;this.nlink=e.nlink||null;this.global=t||false}encode(){const e=this.encodeBody();if(e===""){return null}const t=Buffer.byteLength(e);const r=512*Math.ceil(1+t/512);const i=Buffer.allocUnsafe(r);for(let e=0;e<512;e++){i[e]=0}new n({path:("PaxHeader/"+s.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(i);i.write(e,512,t,"utf8");for(let e=t+512;e<i.length;e++){i[e]=0}return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===undefined){return""}const t=this[e]instanceof Date?this[e].getTime()/1e3:this[e];const r=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+t+"\n";const n=Buffer.byteLength(r);let s=Math.floor(Math.log(n)/Math.log(10))+1;if(n+s>=Math.pow(10,s)){s+=1}const i=s+n;return i+r}}Pax.parse=(e,t,r)=>new Pax(merge(parseKV(e),t),r);const merge=(e,t)=>t?Object.keys(e).reduce(((t,r)=>(t[r]=e[r],t)),t):e;const parseKV=e=>e.replace(/\n$/,"").split("\n").reduce(parseKVLine,Object.create(null));const parseKVLine=(e,t)=>{const r=parseInt(t,10);if(r!==Buffer.byteLength(t)+1){return e}t=t.slice((r+" ").length);const n=t.split("=");const s=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!s){return e}const i=n.join("=");e[s]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(s)?new Date(i*1e3):/^[0-9]+$/.test(i)?+i:i;return e};e.exports=Pax},15917:(e,t,r)=>{"use strict";const{Minipass:n}=r(85540);const s=r(9740);const i=Symbol("slurp");e.exports=class ReadEntry extends n{constructor(e,t,r){super();this.pause();this.extended=t;this.globalExtended=r;this.header=e;this.startBlockSize=512*Math.ceil(e.size/512);this.blockRemain=this.startBlockSize;this.remain=e.size;this.type=e.type;this.meta=false;this.ignore=false;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}this.path=s(e.path);this.mode=e.mode;if(this.mode){this.mode=this.mode&4095}this.uid=e.uid;this.gid=e.gid;this.uname=e.uname;this.gname=e.gname;this.size=e.size;this.mtime=e.mtime;this.atime=e.atime;this.ctime=e.ctime;this.linkpath=s(e.linkpath);this.uname=e.uname;this.gname=e.gname;if(t){this[i](t)}if(r){this[i](r,true)}}write(e){const t=e.length;if(t>this.blockRemain){throw new Error("writing more to entry than is appropriate")}const r=this.remain;const n=this.blockRemain;this.remain=Math.max(0,r-t);this.blockRemain=Math.max(0,n-t);if(this.ignore){return true}if(r>=t){return super.write(e)}return super.write(e.slice(0,r))}[i](e,t){for(const r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path")){this[r]=r==="path"||r==="linkpath"?s(e[r]):e[r]}}}}},11138:(e,t,r)=>{"use strict";const n=r(63831);const s=r(77301);const i=r(57147);const o=r(30644);const a=r(4975);const c=r(71017);const u=r(71703);e.exports=(e,t,r)=>{const s=n(e);if(!s.file){throw new TypeError("file is required")}if(s.gzip){throw new TypeError("cannot append to compressed archives")}if(!t||!Array.isArray(t)||!t.length){throw new TypeError("no files or directories specified")}t=Array.from(t);return s.sync?replaceSync(s,t):replace(s,t,r)};const replaceSync=(e,t)=>{const r=new s.Sync(e);let n=true;let o;let a;try{try{o=i.openSync(e.file,"r+")}catch(t){if(t.code==="ENOENT"){o=i.openSync(e.file,"w+")}else{throw t}}const s=i.fstatSync(o);const c=Buffer.alloc(512);e:for(a=0;a<s.size;a+=512){for(let e=0,t=0;e<512;e+=t){t=i.readSync(o,c,e,c.length-e,a+e);if(a===0&&c[0]===31&&c[1]===139){throw new Error("cannot append to compressed archives")}if(!t){break e}}const t=new u(c);if(!t.cksumValid){break}const r=512*Math.ceil(t.size/512);if(a+r+512>s.size){break}a+=r;if(e.mtimeCache){e.mtimeCache.set(t.path,t.mtime)}}n=false;streamSync(e,r,a,o,t)}finally{if(n){try{i.closeSync(o)}catch(e){}}}};const streamSync=(e,t,r,n,s)=>{const i=new o.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(i);addFilesSync(t,s)};const replace=(e,t,r)=>{t=Array.from(t);const n=new s(e);const getPos=(t,r,n)=>{const cb=(e,r)=>{if(e){i.close(t,(t=>n(e)))}else{n(null,r)}};let s=0;if(r===0){return cb(null,0)}let o=0;const a=Buffer.alloc(512);const onread=(n,c)=>{if(n){return cb(n)}o+=c;if(o<512&&c){return i.read(t,a,o,a.length-o,s+o,onread)}if(s===0&&a[0]===31&&a[1]===139){return cb(new Error("cannot append to compressed archives"))}if(o<512){return cb(null,s)}const l=new u(a);if(!l.cksumValid){return cb(null,s)}const h=512*Math.ceil(l.size/512);if(s+h+512>r){return cb(null,s)}s+=h+512;if(s>=r){return cb(null,s)}if(e.mtimeCache){e.mtimeCache.set(l.path,l.mtime)}o=0;i.read(t,a,0,512,s,onread)};i.read(t,a,0,512,s,onread)};const a=new Promise(((r,s)=>{n.on("error",s);let a="r+";const onopen=(c,u)=>{if(c&&c.code==="ENOENT"&&a==="r+"){a="w+";return i.open(e.file,a,onopen)}if(c){return s(c)}i.fstat(u,((a,c)=>{if(a){return i.close(u,(()=>s(a)))}getPos(u,c.size,((i,a)=>{if(i){return s(i)}const c=new o.WriteStream(e.file,{fd:u,start:a});n.pipe(c);c.on("error",s);c.on("close",r);addFilesAsync(n,t)}))}))};i.open(e.file,a,onopen)}));return r?a.then(r,r):a};const addFilesSync=(e,t)=>{t.forEach((t=>{if(t.charAt(0)==="@"){a({file:c.resolve(e.cwd,t.slice(1)),sync:true,noResume:true,onentry:t=>e.add(t)})}else{e.add(t)}}));e.end()};const addFilesAsync=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@"){return a({file:c.resolve(e.cwd,r.slice(1)),noResume:true,onentry:t=>e.add(t)}).then((r=>addFilesAsync(e,t)))}else{e.add(r)}}e.end()}},80332:(e,t,r)=>{const{isAbsolute:n,parse:s}=r(71017).win32;e.exports=e=>{let t="";let r=s(e);while(n(e)||r.root){const n=e.charAt(0)==="/"&&e.slice(0,4)!=="//?/"?"/":r.root;e=e.slice(n.length);t+=n;r=s(e)}return[t,e]}},32517:e=>{e.exports=e=>{let t=e.length-1;let r=-1;while(t>-1&&e.charAt(t)==="/"){r=t;t--}return r===-1?e:e.slice(0,r)}},71046:(e,t)=>{"use strict";t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);t.code=new Map(Array.from(t.name).map((e=>[e[1],e[0]])))},55951:(e,t,r)=>{"use strict";const n=r(39491);const s=r(55222);const i=r(57147);const o=r(30644);const a=r(71017);const c=r(66209);const u=r(24099);const l=r(78067);const h=r(80332);const p=r(9740);const d=r(32517);const y=r(94711);const g=Symbol("onEntry");const v=Symbol("checkFs");const b=Symbol("checkFs2");const w=Symbol("pruneCache");const S=Symbol("isReusable");const x=Symbol("makeFs");const O=Symbol("file");const R=Symbol("directory");const k=Symbol("link");const A=Symbol("symlink");const P=Symbol("hardlink");const C=Symbol("unsupported");const $=Symbol("checkPath");const T=Symbol("mkdir");const j=Symbol("onError");const I=Symbol("pending");const N=Symbol("pend");const M=Symbol("unpend");const D=Symbol("ended");const L=Symbol("maybeClose");const B=Symbol("skip");const U=Symbol("doChown");const G=Symbol("uid");const z=Symbol("gid");const V=Symbol("checkedCwd");const q=r(6113);const H=r(69262);const W=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const K=W==="win32";const unlinkFile=(e,t)=>{if(!K){return i.unlink(e,t)}const r=e+".DELETE."+q.randomBytes(16).toString("hex");i.rename(e,r,(e=>{if(e){return t(e)}i.unlink(r,t)}))};const unlinkFileSync=e=>{if(!K){return i.unlinkSync(e)}const t=e+".DELETE."+q.randomBytes(16).toString("hex");i.renameSync(e,t);i.unlinkSync(t)};const uint32=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r;const cacheKeyNormalize=e=>d(p(y(e))).toLowerCase();const pruneCache=(e,t)=>{t=cacheKeyNormalize(t);for(const r of e.keys()){const n=cacheKeyNormalize(r);if(n===t||n.indexOf(t+"/")===0){e.delete(r)}}};const dropCache=e=>{for(const t of e.keys()){e.delete(t)}};class Unpack extends s{constructor(e){if(!e){e={}}e.ondone=e=>{this[D]=true;this[L]()};super(e);this[V]=false;this.reservations=l();this.transform=typeof e.transform==="function"?e.transform:null;this.writable=true;this.readable=false;this[I]=0;this[D]=false;this.dirCache=e.dirCache||new Map;if(typeof e.uid==="number"||typeof e.gid==="number"){if(typeof e.uid!=="number"||typeof e.gid!=="number"){throw new TypeError("cannot set owner without number uid and gid")}if(e.preserveOwner){throw new TypeError("cannot preserve owner in archive and also set owner explicitly")}this.uid=e.uid;this.gid=e.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(e.preserveOwner===undefined&&typeof e.uid!=="number"){this.preserveOwner=process.getuid&&process.getuid()===0}else{this.preserveOwner=!!e.preserveOwner}this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null;this.forceChown=e.forceChown===true;this.win32=!!e.win32||K;this.newer=!!e.newer;this.keep=!!e.keep;this.noMtime=!!e.noMtime;this.preservePaths=!!e.preservePaths;this.unlink=!!e.unlink;this.cwd=p(a.resolve(e.cwd||process.cwd()));this.strip=+e.strip||0;this.processUmask=e.noChmod?0:process.umask();this.umask=typeof e.umask==="number"?e.umask:this.processUmask;this.dmode=e.dmode||511&~this.umask;this.fmode=e.fmode||438&~this.umask;this.on("entry",(e=>this[g](e)))}warn(e,t,r={}){if(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT"){r.recoverable=false}return super.warn(e,t,r)}[L](){if(this[D]&&this[I]===0){this.emit("prefinish");this.emit("finish");this.emit("end")}}[$](e){if(this.strip){const t=p(e.path).split("/");if(t.length<this.strip){return false}e.path=t.slice(this.strip).join("/");if(e.type==="Link"){const t=p(e.linkpath).split("/");if(t.length>=this.strip){e.linkpath=t.slice(this.strip).join("/")}else{return false}}}if(!this.preservePaths){const t=p(e.path);const r=t.split("/");if(r.includes("..")||K&&/^[a-z]:\.\.$/i.test(r[0])){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:e,path:t});return false}const[n,s]=h(t);if(n){e.path=s;this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:t})}}if(a.isAbsolute(e.path)){e.absolute=p(a.resolve(e.path))}else{e.absolute=p(a.resolve(this.cwd,e.path))}if(!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd){this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:p(e.path),resolvedPath:e.absolute,cwd:this.cwd});return false}if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir"){return false}if(this.win32){const{root:t}=a.win32.parse(e.absolute);e.absolute=t+u.encode(e.absolute.slice(t.length));const{root:r}=a.win32.parse(e.path);e.path=r+u.encode(e.path.slice(r.length))}return true}[g](e){if(!this[$](e)){return e.resume()}n.equal(typeof e.absolute,"string");switch(e.type){case"Directory":case"GNUDumpDir":if(e.mode){e.mode=e.mode|448}case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[v](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[C](e)}}[j](e,t){if(e.name==="CwdError"){this.emit("error",e)}else{this.warn("TAR_ENTRY_ERROR",e,{entry:t});this[M]();t.resume()}}[T](e,t,r){c(p(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t,noChmod:this.noChmod},r)}[U](e){return this.forceChown||this.preserveOwner&&(typeof e.uid==="number"&&e.uid!==this.processUid||typeof e.gid==="number"&&e.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[G](e){return uint32(this.uid,e.uid,this.processUid)}[z](e){return uint32(this.gid,e.gid,this.processGid)}[O](e,t){const r=e.mode&4095||this.fmode;const n=new o.WriteStream(e.absolute,{flags:H(e.size),mode:r,autoClose:false});n.on("error",(r=>{if(n.fd){i.close(n.fd,(()=>{}))}n.write=()=>true;this[j](r,e);t()}));let s=1;const done=r=>{if(r){if(n.fd){i.close(n.fd,(()=>{}))}this[j](r,e);t();return}if(--s===0){i.close(n.fd,(r=>{if(r){this[j](r,e)}else{this[M]()}t()}))}};n.on("finish",(t=>{const r=e.absolute;const o=n.fd;if(e.mtime&&!this.noMtime){s++;const t=e.atime||new Date;const n=e.mtime;i.futimes(o,t,n,(e=>e?i.utimes(r,t,n,(t=>done(t&&e))):done()))}if(this[U](e)){s++;const t=this[G](e);const n=this[z](e);i.fchown(o,t,n,(e=>e?i.chown(r,t,n,(t=>done(t&&e))):done()))}done()}));const a=this.transform?this.transform(e)||e:e;if(a!==e){a.on("error",(r=>{this[j](r,e);t()}));e.pipe(a)}a.pipe(n)}[R](e,t){const r=e.mode&4095||this.dmode;this[T](e.absolute,r,(r=>{if(r){this[j](r,e);t();return}let n=1;const done=r=>{if(--n===0){t();this[M]();e.resume()}};if(e.mtime&&!this.noMtime){n++;i.utimes(e.absolute,e.atime||new Date,e.mtime,done)}if(this[U](e)){n++;i.chown(e.absolute,this[G](e),this[z](e),done)}done()}))}[C](e){e.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e});e.resume()}[A](e,t){this[k](e,e.linkpath,"symlink",t)}[P](e,t){const r=p(a.resolve(this.cwd,e.linkpath));this[k](e,r,"link",t)}[N](){this[I]++}[M](){this[I]--;this[L]()}[B](e){this[M]();e.resume()}[S](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&!K}[v](e){this[N]();const t=[e.path];if(e.linkpath){t.push(e.linkpath)}this.reservations.reserve(t,(t=>this[b](e,t)))}[w](e){if(e.type==="SymbolicLink"){dropCache(this.dirCache)}else if(e.type!=="Directory"){pruneCache(this.dirCache,e.absolute)}}[b](e,t){this[w](e);const done=r=>{this[w](e);t(r)};const checkCwd=()=>{this[T](this.cwd,this.dmode,(t=>{if(t){this[j](t,e);done();return}this[V]=true;start()}))};const start=()=>{if(e.absolute!==this.cwd){const t=p(a.dirname(e.absolute));if(t!==this.cwd){return this[T](t,this.dmode,(t=>{if(t){this[j](t,e);done();return}afterMakeParent()}))}}afterMakeParent()};const afterMakeParent=()=>{i.lstat(e.absolute,((t,r)=>{if(r&&(this.keep||this.newer&&r.mtime>e.mtime)){this[B](e);done();return}if(t||this[S](e,r)){return this[x](null,e,done)}if(r.isDirectory()){if(e.type==="Directory"){const t=!this.noChmod&&e.mode&&(r.mode&4095)!==e.mode;const afterChmod=t=>this[x](t,e,done);if(!t){return afterChmod()}return i.chmod(e.absolute,e.mode,afterChmod)}if(e.absolute!==this.cwd){return i.rmdir(e.absolute,(t=>this[x](t,e,done)))}}if(e.absolute===this.cwd){return this[x](null,e,done)}unlinkFile(e.absolute,(t=>this[x](t,e,done)))}))};if(this[V]){start()}else{checkCwd()}}[x](e,t,r){if(e){this[j](e,t);r();return}switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[O](t,r);case"Link":return this[P](t,r);case"SymbolicLink":return this[A](t,r);case"Directory":case"GNUDumpDir":return this[R](t,r)}}[k](e,t,r,n){i[r](t,e.absolute,(t=>{if(t){this[j](t,e)}else{this[M]();e.resume()}n()}))}}const callSync=e=>{try{return[null,e()]}catch(e){return[e,null]}};class UnpackSync extends Unpack{[x](e,t){return super[x](e,t,(()=>{}))}[v](e){this[w](e);if(!this[V]){const t=this[T](this.cwd,this.dmode);if(t){return this[j](t,e)}this[V]=true}if(e.absolute!==this.cwd){const t=p(a.dirname(e.absolute));if(t!==this.cwd){const r=this[T](t,this.dmode);if(r){return this[j](r,e)}}}const[t,r]=callSync((()=>i.lstatSync(e.absolute)));if(r&&(this.keep||this.newer&&r.mtime>e.mtime)){return this[B](e)}if(t||this[S](e,r)){return this[x](null,e)}if(r.isDirectory()){if(e.type==="Directory"){const t=!this.noChmod&&e.mode&&(r.mode&4095)!==e.mode;const[n]=t?callSync((()=>{i.chmodSync(e.absolute,e.mode)})):[];return this[x](n,e)}const[t]=callSync((()=>i.rmdirSync(e.absolute)));this[x](t,e)}const[n]=e.absolute===this.cwd?[]:callSync((()=>unlinkFileSync(e.absolute)));this[x](n,e)}[O](e,t){const r=e.mode&4095||this.fmode;const oner=r=>{let s;try{i.closeSync(n)}catch(e){s=e}if(r||s){this[j](r||s,e)}t()};let n;try{n=i.openSync(e.absolute,H(e.size),r)}catch(e){return oner(e)}const s=this.transform?this.transform(e)||e:e;if(s!==e){s.on("error",(t=>this[j](t,e)));e.pipe(s)}s.on("data",(e=>{try{i.writeSync(n,e,0,e.length)}catch(e){oner(e)}}));s.on("end",(t=>{let r=null;if(e.mtime&&!this.noMtime){const t=e.atime||new Date;const s=e.mtime;try{i.futimesSync(n,t,s)}catch(n){try{i.utimesSync(e.absolute,t,s)}catch(e){r=n}}}if(this[U](e)){const t=this[G](e);const s=this[z](e);try{i.fchownSync(n,t,s)}catch(n){try{i.chownSync(e.absolute,t,s)}catch(e){r=r||n}}}oner(r)}))}[R](e,t){const r=e.mode&4095||this.dmode;const n=this[T](e.absolute,r);if(n){this[j](n,e);t();return}if(e.mtime&&!this.noMtime){try{i.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch(n){}}if(this[U](e)){try{i.chownSync(e.absolute,this[G](e),this[z](e))}catch(n){}}t();e.resume()}[T](e,t){try{return c.sync(p(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(e){return e}}[k](e,t,r,n){try{i[r+"Sync"](t,e.absolute);n();e.resume()}catch(t){return this[j](t,e)}}}Unpack.Sync=UnpackSync;e.exports=Unpack},79472:(e,t,r)=>{"use strict";const n=r(63831);const s=r(11138);e.exports=(e,t,r)=>{const i=n(e);if(!i.file){throw new TypeError("file is required")}if(i.gzip){throw new TypeError("cannot append to compressed archives")}if(!t||!Array.isArray(t)||!t.length){throw new TypeError("no files or directories specified")}t=Array.from(t);mtimeFilter(i);return s(i,t,r)};const mtimeFilter=e=>{const t=e.filter;if(!e.mtimeCache){e.mtimeCache=new Map}e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(t,r)=>!(e.mtimeCache.get(t)>r.mtime)}},58920:e=>{"use strict";e.exports=e=>class extends e{warn(e,t,r={}){if(this.file){r.file=this.file}if(this.cwd){r.cwd=this.cwd}r.code=t instanceof Error&&t.code||e;r.tarCode=e;if(!this.strict&&r.recoverable!==false){if(t instanceof Error){r=Object.assign(t,r);t=t.message}this.emit("warn",r.tarCode,t,r)}else if(t instanceof Error){this.emit("error",Object.assign(t,r))}else{this.emit("error",Object.assign(new Error(`${e}: ${t}`),r))}}}},24099:e=>{"use strict";const t=["|","<",">","?",":"];const r=t.map((e=>String.fromCharCode(61440+e.charCodeAt(0))));const n=new Map(t.map(((e,t)=>[e,r[t]])));const s=new Map(r.map(((e,r)=>[e,t[r]])));e.exports={encode:e=>t.reduce(((e,t)=>e.split(t).join(n.get(t))),e),decode:e=>r.reduce(((e,t)=>e.split(t).join(s.get(t))),e)}},91944:(e,t,r)=>{"use strict";const{Minipass:n}=r(85540);const s=r(9037);const i=r(71703);const o=r(57147);const a=r(71017);const c=r(9740);const u=r(32517);const prefixPath=(e,t)=>{if(!t){return c(e)}e=c(e).replace(/^\.(\/|$)/,"");return u(t)+"/"+e};const l=16*1024*1024;const h=Symbol("process");const p=Symbol("file");const d=Symbol("directory");const y=Symbol("symlink");const g=Symbol("hardlink");const v=Symbol("header");const b=Symbol("read");const w=Symbol("lstat");const S=Symbol("onlstat");const x=Symbol("onread");const O=Symbol("onreadlink");const R=Symbol("openfile");const k=Symbol("onopenfile");const A=Symbol("close");const P=Symbol("mode");const C=Symbol("awaitDrain");const $=Symbol("ondrain");const T=Symbol("prefix");const j=Symbol("hadError");const I=r(58920);const N=r(24099);const M=r(80332);const D=r(6601);const L=I(class WriteEntry extends n{constructor(e,t){t=t||{};super(t);if(typeof e!=="string"){throw new TypeError("path is required")}this.path=c(e);this.portable=!!t.portable;this.myuid=process.getuid&&process.getuid()||0;this.myuser=process.env.USER||"";this.maxReadSize=t.maxReadSize||l;this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.preservePaths=!!t.preservePaths;this.cwd=c(t.cwd||process.cwd());this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;this.prefix=t.prefix?c(t.prefix):null;this.fd=null;this.blockLen=null;this.blockRemain=null;this.buf=null;this.offset=null;this.length=null;this.pos=null;this.remain=null;if(typeof t.onwarn==="function"){this.on("warn",t.onwarn)}let r=false;if(!this.preservePaths){const[e,t]=M(this.path);if(e){this.path=t;r=e}}this.win32=!!t.win32||process.platform==="win32";if(this.win32){this.path=N.decode(this.path.replace(/\\/g,"/"));e=e.replace(/\\/g,"/")}this.absolute=c(t.absolute||a.resolve(this.cwd,e));if(this.path===""){this.path="./"}if(r){this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path})}if(this.statCache.has(this.absolute)){this[S](this.statCache.get(this.absolute))}else{this[w]()}}emit(e,...t){if(e==="error"){this[j]=true}return super.emit(e,...t)}[w](){o.lstat(this.absolute,((e,t)=>{if(e){return this.emit("error",e)}this[S](t)}))}[S](e){this.statCache.set(this.absolute,e);this.stat=e;if(!e.isFile()){e.size=0}this.type=getType(e);this.emit("stat",e);this[h]()}[h](){switch(this.type){case"File":return this[p]();case"Directory":return this[d]();case"SymbolicLink":return this[y]();default:return this.end()}}[P](e){return D(e,this.type==="Directory",this.portable)}[T](e){return prefixPath(e,this.prefix)}[v](){if(this.type==="Directory"&&this.portable){this.noMtime=true}this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this[P](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime});if(this.header.encode()&&!this.noPax){super.write(new s({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode())}super.write(this.header.block)}[d](){if(this.path.slice(-1)!=="/"){this.path+="/"}this.stat.size=0;this[v]();this.end()}[y](){o.readlink(this.absolute,((e,t)=>{if(e){return this.emit("error",e)}this[O](t)}))}[O](e){this.linkpath=c(e);this[v]();this.end()}[g](e){this.type="Link";this.linkpath=c(a.relative(this.cwd,e));this.stat.size=0;this[v]();this.end()}[p](){if(this.stat.nlink>1){const e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){const t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0){return this[g](t)}}this.linkCache.set(e,this.absolute)}this[v]();if(this.stat.size===0){return this.end()}this[R]()}[R](){o.open(this.absolute,"r",((e,t)=>{if(e){return this.emit("error",e)}this[k](t)}))}[k](e){this.fd=e;if(this[j]){return this[A]()}this.blockLen=512*Math.ceil(this.stat.size/512);this.blockRemain=this.blockLen;const t=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(t);this.offset=0;this.pos=0;this.remain=this.stat.size;this.length=this.buf.length;this[b]()}[b](){const{fd:e,buf:t,offset:r,length:n,pos:s}=this;o.read(e,t,r,n,s,((e,t)=>{if(e){return this[A]((()=>this.emit("error",e)))}this[x](t)}))}[A](e){o.close(this.fd,e)}[x](e){if(e<=0&&this.remain>0){const e=new Error("encountered unexpected EOF");e.path=this.absolute;e.syscall="read";e.code="EOF";return this[A]((()=>this.emit("error",e)))}if(e>this.remain){const e=new Error("did not encounter expected EOF");e.path=this.absolute;e.syscall="read";e.code="EOF";return this[A]((()=>this.emit("error",e)))}if(e===this.remain){for(let t=e;t<this.length&&e<this.blockRemain;t++){this.buf[t+this.offset]=0;e++;this.remain++}}const t=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);const r=this.write(t);if(!r){this[C]((()=>this[$]()))}else{this[$]()}}[C](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){const e=new Error("writing more data than expected");e.path=this.absolute;return this.emit("error",e)}this.remain-=e.length;this.blockRemain-=e.length;this.pos+=e.length;this.offset+=e.length;return super.write(e)}[$](){if(!this.remain){if(this.blockRemain){super.write(Buffer.alloc(this.blockRemain))}return this[A]((e=>e?this.emit("error",e):this.end()))}if(this.offset>=this.length){this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length));this.offset=0}this.length=this.buf.length-this.offset;this[b]()}});class WriteEntrySync extends L{[w](){this[S](o.lstatSync(this.absolute))}[y](){this[O](o.readlinkSync(this.absolute))}[R](){this[k](o.openSync(this.absolute,"r"))}[b](){let e=true;try{const{fd:t,buf:r,offset:n,length:s,pos:i}=this;const a=o.readSync(t,r,n,s,i);this[x](a);e=false}finally{if(e){try{this[A]((()=>{}))}catch(e){}}}}[C](e){e()}[A](e){o.closeSync(this.fd);e()}}const B=I(class WriteEntryTar extends n{constructor(e,t){t=t||{};super(t);this.preservePaths=!!t.preservePaths;this.portable=!!t.portable;this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.readEntry=e;this.type=e.type;if(this.type==="Directory"&&this.portable){this.noMtime=true}this.prefix=t.prefix||null;this.path=c(e.path);this.mode=this[P](e.mode);this.uid=this.portable?null:e.uid;this.gid=this.portable?null:e.gid;this.uname=this.portable?null:e.uname;this.gname=this.portable?null:e.gname;this.size=e.size;this.mtime=this.noMtime?null:t.mtime||e.mtime;this.atime=this.portable?null:e.atime;this.ctime=this.portable?null:e.ctime;this.linkpath=c(e.linkpath);if(typeof t.onwarn==="function"){this.on("warn",t.onwarn)}let r=false;if(!this.preservePaths){const[e,t]=M(this.path);if(e){this.path=t;r=e}}this.remain=e.size;this.blockRemain=e.startBlockSize;this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime});if(r){this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path})}if(this.header.encode()&&!this.noPax){super.write(new s({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode())}super.write(this.header.block);e.pipe(this)}[T](e){return prefixPath(e,this.prefix)}[P](e){return D(e,this.type==="Directory",this.portable)}write(e){const t=e.length;if(t>this.blockRemain){throw new Error("writing more to entry than is appropriate")}this.blockRemain-=t;return super.write(e)}end(){if(this.blockRemain){super.write(Buffer.alloc(this.blockRemain))}return super.end()}});L.Sync=WriteEntrySync;L.Tar=B;const getType=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=L},54017:(e,t,r)=>{"use strict";
300
300
  /*!
301
301
  * to-object-path <https://github.com/jonschlinkert/to-object-path>
302
302
  *
@@ -316,10 +316,10 @@ function pascalcase(e){if(typeof e!=="string"){throw new TypeError("expected a s
316
316
  * Released under the MIT License.
317
317
  */var n=r(13836);var s=r(52419);e.exports=function unset(e,t){if(!n(e)){throw new TypeError("expected an object.")}if(e.hasOwnProperty(t)){delete e[t];return true}if(s(e,t)){var r=t.split(".");var i=r.pop();while(r.length&&r[r.length-1].slice(-1)==="\\"){i=r.pop().slice(0,-1)+"."+i}while(r.length)e=e[t=r.shift()];return delete e[i]}return true}},65656:(e,t,r)=>{const{URL:n}=r(57310);const{join:s}=r(71017);const i=r(57147);const{promisify:o}=r(73837);const{tmpdir:a}=r(22037);const c=r(69074);const u=o(i.writeFile);const l=o(i.mkdir);const h=o(i.readFile);const compareVersions=(e,t)=>e.localeCompare(t,"en-US",{numeric:true});const encode=e=>encodeURIComponent(e).replace(/^%40/,"@");const getFile=async(e,t)=>{const r=a();const n=s(r,"update-check");if(!i.existsSync(n)){await l(n)}let o=`${e.name}-${t}.json`;if(e.scope){o=`${e.scope}-${o}`}return s(n,o)};const evaluateCache=async(e,t,r)=>{if(i.existsSync(e)){const n=await h(e,"utf8");const{lastUpdate:s,latest:i}=JSON.parse(n);const o=s+r;if(o>t){return{shouldCheck:false,latest:i}}}return{shouldCheck:true,latest:null}};const updateCache=async(e,t,r)=>{const n=JSON.stringify({latest:t,lastUpdate:r});await u(e,n,"utf8")};const loadPackage=(e,t)=>new Promise(((n,s)=>{const i={host:e.hostname,path:e.pathname,port:e.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(t){i.headers.authorization=`${t.type} ${t.token}`}const{get:o}=r(e.protocol==="https:"?95687:13685);o(i,(e=>{const{statusCode:t}=e;if(t!==200){const r=new Error(`Request failed with code ${t}`);r.code=t;s(r);e.resume();return}let r="";e.setEncoding("utf8");e.on("data",(e=>{r+=e}));e.on("end",(()=>{try{const e=JSON.parse(r);n(e)}catch(e){s(e)}}))})).on("error",s).on("timeout",s)}));const getMostRecent=async({full:e,scope:t},s)=>{const i=c(t);const o=new n(e,i);let a=null;try{a=await loadPackage(o)}catch(e){if(e.code&&String(e.code).startsWith(4)){const e=r(31281);const t=e(i,{recursive:true});a=await loadPackage(o,t)}else{throw e}}const u=a["dist-tags"][s];if(!u){throw new Error(`Distribution tag ${s} is not available`)}return u};const p={interval:36e5,distTag:"latest"};const getDetails=e=>{const t={full:encode(e)};if(e.includes("/")){const r=e.split("/");t.scope=r[0];t.name=r[1]}else{t.scope=null;t.name=e}return t};e.exports=async(e,t)=>{if(typeof e!=="object"){throw new Error("The first parameter should be your package.json file content")}const r=getDetails(e.name);const n=Date.now();const{distTag:s,interval:i}=Object.assign({},p,t);const o=await getFile(r,s);let a=null;let c=true;({shouldCheck:c,latest:a}=await evaluateCache(o,n,i));if(c){a=await getMostRecent(r,s);await updateCache(o,a,n)}const u=compareVersions(e.version,a);if(u===-1){return{latest:a,fromCache:!c}}return null}},14618:function(e,t){
318
318
  /** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
319
- (function(e,r){true?r(t):0})(this,(function(e){"use strict";function merge(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}if(t.length>1){t[0]=t[0].slice(0,-1);var n=t.length-1;for(var s=1;s<n;++s){t[s]=t[s].slice(1,-1)}t[n]=t[n].slice(1);return t.join("")}else{return t[0]}}function subexp(e){return"(?:"+e+")"}function typeOf(e){return e===undefined?"undefined":e===null?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function toUpperCase(e){return e.toUpperCase()}function toArray(e){return e!==undefined&&e!==null?e instanceof Array?e:typeof e.length!=="number"||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function assign(e,t){var r=e;if(t){for(var n in t){r[n]=t[n]}}return r}function buildExps(e){var t="[A-Za-z]",r="[\\x0D]",n="[0-9]",s="[\\x22]",i=merge(n,"[A-Fa-f]"),o="[\\x0A]",a="[\\x20]",c=subexp(subexp("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+subexp("%[89A-Fa-f]"+i+"%"+i+i)+"|"+subexp("%"+i+i)),u="[\\:\\/\\?\\#\\[\\]\\@]",l="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",h=merge(u,l),p=e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",d=e?"[\\uE000-\\uF8FF]":"[]",y=merge(t,n,"[\\-\\.\\_\\~]",p),g=subexp(t+merge(t,n,"[\\+\\-\\.]")+"*"),v=subexp(subexp(c+"|"+merge(y,l,"[\\:]"))+"*"),b=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+n)+"|"+subexp("1"+n+n)+"|"+subexp("[1-9]"+n)+"|"+n),w=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+n)+"|"+subexp("1"+n+n)+"|"+subexp("0?[1-9]"+n)+"|0?0?"+n),S=subexp(w+"\\."+w+"\\."+w+"\\."+w),x=subexp(i+"{1,4}"),O=subexp(subexp(x+"\\:"+x)+"|"+S),R=subexp(subexp(x+"\\:")+"{6}"+O),k=subexp("\\:\\:"+subexp(x+"\\:")+"{5}"+O),A=subexp(subexp(x)+"?\\:\\:"+subexp(x+"\\:")+"{4}"+O),C=subexp(subexp(subexp(x+"\\:")+"{0,1}"+x)+"?\\:\\:"+subexp(x+"\\:")+"{3}"+O),P=subexp(subexp(subexp(x+"\\:")+"{0,2}"+x)+"?\\:\\:"+subexp(x+"\\:")+"{2}"+O),$=subexp(subexp(subexp(x+"\\:")+"{0,3}"+x)+"?\\:\\:"+x+"\\:"+O),T=subexp(subexp(subexp(x+"\\:")+"{0,4}"+x)+"?\\:\\:"+O),j=subexp(subexp(subexp(x+"\\:")+"{0,5}"+x)+"?\\:\\:"+x),I=subexp(subexp(subexp(x+"\\:")+"{0,6}"+x)+"?\\:\\:"),N=subexp([R,k,A,C,P,$,T,j,I].join("|")),M=subexp(subexp(y+"|"+c)+"+"),D=subexp(N+"\\%25"+M),L=subexp(N+subexp("\\%25|\\%(?!"+i+"{2})")+M),B=subexp("[vV]"+i+"+\\."+merge(y,l,"[\\:]")+"+"),U=subexp("\\["+subexp(L+"|"+N+"|"+B)+"\\]"),G=subexp(subexp(c+"|"+merge(y,l))+"*"),z=subexp(U+"|"+S+"(?!"+G+")"+"|"+G),q=subexp(n+"*"),V=subexp(subexp(v+"@")+"?"+z+subexp("\\:"+q)+"?"),H=subexp(c+"|"+merge(y,l,"[\\:\\@]")),W=subexp(H+"*"),Y=subexp(H+"+"),K=subexp(subexp(c+"|"+merge(y,l,"[\\@]"))+"+"),J=subexp(subexp("\\/"+W)+"*"),Z=subexp("\\/"+subexp(Y+J)+"?"),X=subexp(K+J),Q=subexp(Y+J),ee="(?!"+H+")",te=subexp(J+"|"+Z+"|"+X+"|"+Q+"|"+ee),re=subexp(subexp(H+"|"+merge("[\\/\\?]",d))+"*"),ne=subexp(subexp(H+"|[\\/\\?]")+"*"),se=subexp(subexp("\\/\\/"+V+J)+"|"+Z+"|"+Q+"|"+ee),ie=subexp(g+"\\:"+se+subexp("\\?"+re)+"?"+subexp("\\#"+ne)+"?"),oe=subexp(subexp("\\/\\/"+V+J)+"|"+Z+"|"+X+"|"+ee),ae=subexp(oe+subexp("\\?"+re)+"?"+subexp("\\#"+ne)+"?"),ce=subexp(ie+"|"+ae),ue=subexp(g+"\\:"+se+subexp("\\?"+re)+"?"),le="^("+g+")\\:"+subexp(subexp("\\/\\/("+subexp("("+v+")@")+"?("+z+")"+subexp("\\:("+q+")")+"?)")+"?("+J+"|"+Z+"|"+Q+"|"+ee+")")+subexp("\\?("+re+")")+"?"+subexp("\\#("+ne+")")+"?$",fe="^(){0}"+subexp(subexp("\\/\\/("+subexp("("+v+")@")+"?("+z+")"+subexp("\\:("+q+")")+"?)")+"?("+J+"|"+Z+"|"+X+"|"+ee+")")+subexp("\\?("+re+")")+"?"+subexp("\\#("+ne+")")+"?$",he="^("+g+")\\:"+subexp(subexp("\\/\\/("+subexp("("+v+")@")+"?("+z+")"+subexp("\\:("+q+")")+"?)")+"?("+J+"|"+Z+"|"+Q+"|"+ee+")")+subexp("\\?("+re+")")+"?$",pe="^"+subexp("\\#("+ne+")")+"?$",de="^"+subexp("("+v+")@")+"?("+z+")"+subexp("\\:("+q+")")+"?$";return{NOT_SCHEME:new RegExp(merge("[^]",t,n,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(merge("[^\\%\\:]",y,l),"g"),NOT_HOST:new RegExp(merge("[^\\%\\[\\]\\:]",y,l),"g"),NOT_PATH:new RegExp(merge("[^\\%\\/\\:\\@]",y,l),"g"),NOT_PATH_NOSCHEME:new RegExp(merge("[^\\%\\/\\@]",y,l),"g"),NOT_QUERY:new RegExp(merge("[^\\%]",y,l,"[\\:\\@\\/\\?]",d),"g"),NOT_FRAGMENT:new RegExp(merge("[^\\%]",y,l,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(merge("[^]",y,l),"g"),UNRESERVED:new RegExp(y,"g"),OTHER_CHARS:new RegExp(merge("[^\\%]",y,h),"g"),PCT_ENCODED:new RegExp(c,"g"),IPV4ADDRESS:new RegExp("^("+S+")$"),IPV6ADDRESS:new RegExp("^\\[?("+N+")"+subexp(subexp("\\%25|\\%(?!"+i+"{2})")+"("+M+")")+"?\\]?$")}}var t=buildExps(false);var r=buildExps(true);var n=function(){function sliceIterator(e,t){var r=[];var n=true;var s=false;var i=undefined;try{for(var o=e[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){r.push(a.value);if(t&&r.length===t)break}}catch(e){s=true;i=e}finally{try{if(!n&&o["return"])o["return"]()}finally{if(s)throw i}}return r}return function(e,t){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,t)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var toConsumableArray=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else{return Array.from(e)}};var s=2147483647;var i=36;var o=1;var a=26;var c=38;var u=700;var l=72;var h=128;var p="-";var d=/^xn--/;var y=/[^\0-\x7E]/;var g=/[\x2E\u3002\uFF0E\uFF61]/g;var v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var b=i-o;var w=Math.floor;var S=String.fromCharCode;function error$1(e){throw new RangeError(v[e])}function map(e,t){var r=[];var n=e.length;while(n--){r[n]=t(e[n])}return r}function mapDomain(e,t){var r=e.split("@");var n="";if(r.length>1){n=r[0]+"@";e=r[1]}e=e.replace(g,".");var s=e.split(".");var i=map(s,t).join(".");return n+i}function ucs2decode(e){var t=[];var r=0;var n=e.length;while(r<n){var s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<n){var i=e.charCodeAt(r++);if((i&64512)==56320){t.push(((s&1023)<<10)+(i&1023)+65536)}else{t.push(s);r--}}else{t.push(s)}}return t}var x=function ucs2encode(e){return String.fromCodePoint.apply(String,toConsumableArray(e))};var O=function basicToDigit(e){if(e-48<10){return e-22}if(e-65<26){return e-65}if(e-97<26){return e-97}return i};var R=function digitToBasic(e,t){return e+22+75*(e<26)-((t!=0)<<5)};var k=function adapt(e,t,r){var n=0;e=r?w(e/u):e>>1;e+=w(e/t);for(;e>b*a>>1;n+=i){e=w(e/b)}return w(n+(b+1)*e/(e+c))};var A=function decode(e){var t=[];var r=e.length;var n=0;var c=h;var u=l;var d=e.lastIndexOf(p);if(d<0){d=0}for(var y=0;y<d;++y){if(e.charCodeAt(y)>=128){error$1("not-basic")}t.push(e.charCodeAt(y))}for(var g=d>0?d+1:0;g<r;){var v=n;for(var b=1,S=i;;S+=i){if(g>=r){error$1("invalid-input")}var x=O(e.charCodeAt(g++));if(x>=i||x>w((s-n)/b)){error$1("overflow")}n+=x*b;var R=S<=u?o:S>=u+a?a:S-u;if(x<R){break}var A=i-R;if(b>w(s/A)){error$1("overflow")}b*=A}var C=t.length+1;u=k(n-v,C,v==0);if(w(n/C)>s-c){error$1("overflow")}c+=w(n/C);n%=C;t.splice(n++,0,c)}return String.fromCodePoint.apply(String,t)};var C=function encode(e){var t=[];e=ucs2decode(e);var r=e.length;var n=h;var c=0;var u=l;var d=true;var y=false;var g=undefined;try{for(var v=e[Symbol.iterator](),b;!(d=(b=v.next()).done);d=true){var x=b.value;if(x<128){t.push(S(x))}}}catch(e){y=true;g=e}finally{try{if(!d&&v.return){v.return()}}finally{if(y){throw g}}}var O=t.length;var A=O;if(O){t.push(p)}while(A<r){var C=s;var P=true;var $=false;var T=undefined;try{for(var j=e[Symbol.iterator](),I;!(P=(I=j.next()).done);P=true){var N=I.value;if(N>=n&&N<C){C=N}}}catch(e){$=true;T=e}finally{try{if(!P&&j.return){j.return()}}finally{if($){throw T}}}var M=A+1;if(C-n>w((s-c)/M)){error$1("overflow")}c+=(C-n)*M;n=C;var D=true;var L=false;var B=undefined;try{for(var U=e[Symbol.iterator](),G;!(D=(G=U.next()).done);D=true){var z=G.value;if(z<n&&++c>s){error$1("overflow")}if(z==n){var q=c;for(var V=i;;V+=i){var H=V<=u?o:V>=u+a?a:V-u;if(q<H){break}var W=q-H;var Y=i-H;t.push(S(R(H+W%Y,0)));q=w(W/Y)}t.push(S(R(q,0)));u=k(c,M,A==O);c=0;++A}}}catch(e){L=true;B=e}finally{try{if(!D&&U.return){U.return()}}finally{if(L){throw B}}}++c;++n}return t.join("")};var P=function toUnicode(e){return mapDomain(e,(function(e){return d.test(e)?A(e.slice(4).toLowerCase()):e}))};var $=function toASCII(e){return mapDomain(e,(function(e){return y.test(e)?"xn--"+C(e):e}))};var T={version:"2.1.0",ucs2:{decode:ucs2decode,encode:x},decode:A,encode:C,toASCII:$,toUnicode:P};var j={};function pctEncChar(e){var t=e.charCodeAt(0);var r=void 0;if(t<16)r="%0"+t.toString(16).toUpperCase();else if(t<128)r="%"+t.toString(16).toUpperCase();else if(t<2048)r="%"+(t>>6|192).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();else r="%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();return r}function pctDecChars(e){var t="";var r=0;var n=e.length;while(r<n){var s=parseInt(e.substr(r+1,2),16);if(s<128){t+=String.fromCharCode(s);r+=3}else if(s>=194&&s<224){if(n-r>=6){var i=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((s&31)<<6|i&63)}else{t+=e.substr(r,6)}r+=6}else if(s>=224){if(n-r>=9){var o=parseInt(e.substr(r+4,2),16);var a=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((s&15)<<12|(o&63)<<6|a&63)}else{t+=e.substr(r,9)}r+=9}else{t+=e.substr(r,3);r+=3}}return t}function _normalizeComponentEncoding(e,t){function decodeUnreserved(e){var r=pctDecChars(e);return!r.match(t.UNRESERVED)?e:r}if(e.scheme)e.scheme=String(e.scheme).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_USERINFO,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_HOST,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(t.PCT_ENCODED,decodeUnreserved).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_QUERY,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_FRAGMENT,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,t){var r=e.match(t.IPV4ADDRESS)||[];var s=n(r,2),i=s[1];if(i){return i.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,t){var r=e.match(t.IPV6ADDRESS)||[];var s=n(r,3),i=s[1],o=s[2];if(i){var a=i.toLowerCase().split("::").reverse(),c=n(a,2),u=c[0],l=c[1];var h=l?l.split(":").map(_stripLeadingZeros):[];var p=u.split(":").map(_stripLeadingZeros);var d=t.IPV4ADDRESS.test(p[p.length-1]);var y=d?7:8;var g=p.length-y;var v=Array(y);for(var b=0;b<y;++b){v[b]=h[b]||p[g+b]||""}if(d){v[y-1]=_normalizeIPv4(v[y-1],t)}var w=v.reduce((function(e,t,r){if(!t||t==="0"){var n=e[e.length-1];if(n&&n.index+n.length===r){n.length++}else{e.push({index:r,length:1})}}return e}),[]);var S=w.sort((function(e,t){return t.length-e.length}))[0];var x=void 0;if(S&&S.length>1){var O=v.slice(0,S.index);var R=v.slice(S.index+S.length);x=O.join(":")+"::"+R.join(":")}else{x=v.join(":")}if(o){x+="%"+o}return x}else{return e}}var I=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var N="".match(/(){0}/)[1]===undefined;function parse(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var s={};var i=n.iri!==false?r:t;if(n.reference==="suffix")e=(n.scheme?n.scheme+":":"")+"//"+e;var o=e.match(I);if(o){if(N){s.scheme=o[1];s.userinfo=o[3];s.host=o[4];s.port=parseInt(o[5],10);s.path=o[6]||"";s.query=o[7];s.fragment=o[8];if(isNaN(s.port)){s.port=o[5]}}else{s.scheme=o[1]||undefined;s.userinfo=e.indexOf("@")!==-1?o[3]:undefined;s.host=e.indexOf("//")!==-1?o[4]:undefined;s.port=parseInt(o[5],10);s.path=o[6]||"";s.query=e.indexOf("?")!==-1?o[7]:undefined;s.fragment=e.indexOf("#")!==-1?o[8]:undefined;if(isNaN(s.port)){s.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:undefined}}if(s.host){s.host=_normalizeIPv6(_normalizeIPv4(s.host,i),i)}if(s.scheme===undefined&&s.userinfo===undefined&&s.host===undefined&&s.port===undefined&&!s.path&&s.query===undefined){s.reference="same-document"}else if(s.scheme===undefined){s.reference="relative"}else if(s.fragment===undefined){s.reference="absolute"}else{s.reference="uri"}if(n.reference&&n.reference!=="suffix"&&n.reference!==s.reference){s.error=s.error||"URI is not a "+n.reference+" reference."}var a=j[(n.scheme||s.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!a||!a.unicodeSupport)){if(s.host&&(n.domainHost||a&&a.domainHost)){try{s.host=T.toASCII(s.host.replace(i.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){s.error=s.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(s,t)}else{_normalizeComponentEncoding(s,i)}if(a&&a.parse){a.parse(s,n)}}else{s.error=s.error||"URI can not be parsed."}return s}function _recomposeAuthority(e,n){var s=n.iri!==false?r:t;var i=[];if(e.userinfo!==undefined){i.push(e.userinfo);i.push("@")}if(e.host!==undefined){i.push(_normalizeIPv6(_normalizeIPv4(String(e.host),s),s).replace(s.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"})))}if(typeof e.port==="number"){i.push(":");i.push(e.port.toString(10))}return i.length?i.join(""):undefined}var M=/^\.\.?\//;var D=/^\/\.(\/|$)/;var L=/^\/\.\.(\/|$)/;var B=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var t=[];while(e.length){if(e.match(M)){e=e.replace(M,"")}else if(e.match(D)){e=e.replace(D,"/")}else if(e.match(L)){e=e.replace(L,"/");t.pop()}else if(e==="."||e===".."){e=""}else{var r=e.match(B);if(r){var n=r[0];e=e.slice(n.length);t.push(n)}else{throw new Error("Unexpected dot segment condition")}}}return t.join("")}function serialize(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var s=n.iri?r:t;var i=[];var o=j[(n.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize)o.serialize(e,n);if(e.host){if(s.IPV6ADDRESS.test(e.host)){}else if(n.domainHost||o&&o.domainHost){try{e.host=!n.iri?T.toASCII(e.host.replace(s.PCT_ENCODED,pctDecChars).toLowerCase()):T.toUnicode(e.host)}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(!n.iri?"ASCII":"Unicode")+" via punycode: "+t}}}_normalizeComponentEncoding(e,s);if(n.reference!=="suffix"&&e.scheme){i.push(e.scheme);i.push(":")}var a=_recomposeAuthority(e,n);if(a!==undefined){if(n.reference!=="suffix"){i.push("//")}i.push(a);if(e.path&&e.path.charAt(0)!=="/"){i.push("/")}}if(e.path!==undefined){var c=e.path;if(!n.absolutePath&&(!o||!o.absolutePath)){c=removeDotSegments(c)}if(a===undefined){c=c.replace(/^\/\//,"/%2F")}i.push(c)}if(e.query!==undefined){i.push("?");i.push(e.query)}if(e.fragment!==undefined){i.push("#");i.push(e.fragment)}return i.join("")}function resolveComponents(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments[3];var s={};if(!n){e=parse(serialize(e,r),r);t=parse(serialize(t,r),r)}r=r||{};if(!r.tolerant&&t.scheme){s.scheme=t.scheme;s.userinfo=t.userinfo;s.host=t.host;s.port=t.port;s.path=removeDotSegments(t.path||"");s.query=t.query}else{if(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined){s.userinfo=t.userinfo;s.host=t.host;s.port=t.port;s.path=removeDotSegments(t.path||"");s.query=t.query}else{if(!t.path){s.path=e.path;if(t.query!==undefined){s.query=t.query}else{s.query=e.query}}else{if(t.path.charAt(0)==="/"){s.path=removeDotSegments(t.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){s.path="/"+t.path}else if(!e.path){s.path=t.path}else{s.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path}s.path=removeDotSegments(s.path)}s.query=t.query}s.userinfo=e.userinfo;s.host=e.host;s.port=e.port}s.scheme=e.scheme}s.fragment=t.fragment;return s}function resolve(e,t,r){var n=assign({scheme:"null"},r);return serialize(resolveComponents(parse(e,n),parse(t,n),n,true),n)}function normalize(e,t){if(typeof e==="string"){e=serialize(parse(e,t),t)}else if(typeOf(e)==="object"){e=parse(serialize(e,t),t)}return e}function equal(e,t,r){if(typeof e==="string"){e=serialize(parse(e,r),r)}else if(typeOf(e)==="object"){e=serialize(e,r)}if(typeof t==="string"){t=serialize(parse(t,r),r)}else if(typeOf(t)==="object"){t=serialize(t,r)}return e===t}function escapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.ESCAPE:r.ESCAPE,pctEncChar)}function unescapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.PCT_ENCODED:r.PCT_ENCODED,pctDecChars)}var U={scheme:"http",domainHost:true,parse:function parse(e,t){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,t){if(e.port===(String(e.scheme).toLowerCase()!=="https"?80:443)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var G={scheme:"https",domainHost:U.domainHost,parse:U.parse,serialize:U.serialize};var z={};var q=true;var V="[A-Za-z0-9\\-\\.\\_\\~"+(q?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var H="[0-9A-Fa-f]";var W=subexp(subexp("%[EFef]"+H+"%"+H+H+"%"+H+H)+"|"+subexp("%[89A-Fa-f]"+H+"%"+H+H)+"|"+subexp("%"+H+H));var Y="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var K="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var J=merge(K,'[\\"\\\\]');var Z="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var X=new RegExp(V,"g");var Q=new RegExp(W,"g");var ee=new RegExp(merge("[^]",Y,"[\\.]",'[\\"]',J),"g");var te=new RegExp(merge("[^]",V,Z),"g");var re=te;function decodeUnreserved(e){var t=pctDecChars(e);return!t.match(X)?e:t}var ne={scheme:"mailto",parse:function parse$$1(e,t){var r=e;var n=r.to=r.path?r.path.split(","):[];r.path=undefined;if(r.query){var s=false;var i={};var o=r.query.split("&");for(var a=0,c=o.length;a<c;++a){var u=o[a].split("=");switch(u[0]){case"to":var l=u[1].split(",");for(var h=0,p=l.length;h<p;++h){n.push(l[h])}break;case"subject":r.subject=unescapeComponent(u[1],t);break;case"body":r.body=unescapeComponent(u[1],t);break;default:s=true;i[unescapeComponent(u[0],t)]=unescapeComponent(u[1],t);break}}if(s)r.headers=i}r.query=undefined;for(var d=0,y=n.length;d<y;++d){var g=n[d].split("@");g[0]=unescapeComponent(g[0]);if(!t.unicodeSupport){try{g[1]=T.toASCII(unescapeComponent(g[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}}else{g[1]=unescapeComponent(g[1],t).toLowerCase()}n[d]=g.join("@")}return r},serialize:function serialize$$1(e,t){var r=e;var n=toArray(e.to);if(n){for(var s=0,i=n.length;s<i;++s){var o=String(n[s]);var a=o.lastIndexOf("@");var c=o.slice(0,a).replace(Q,decodeUnreserved).replace(Q,toUpperCase).replace(ee,pctEncChar);var u=o.slice(a+1);try{u=!t.iri?T.toASCII(unescapeComponent(u,t).toLowerCase()):T.toUnicode(u)}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(!t.iri?"ASCII":"Unicode")+" via punycode: "+e}n[s]=c+"@"+u}r.path=n.join(",")}var l=e.headers=e.headers||{};if(e.subject)l["subject"]=e.subject;if(e.body)l["body"]=e.body;var h=[];for(var p in l){if(l[p]!==z[p]){h.push(p.replace(Q,decodeUnreserved).replace(Q,toUpperCase).replace(te,pctEncChar)+"="+l[p].replace(Q,decodeUnreserved).replace(Q,toUpperCase).replace(re,pctEncChar))}}if(h.length){r.query=h.join("&")}return r}};var se=/^([^\:]+)\:(.*)/;var ie={scheme:"urn",parse:function parse$$1(e,t){var r=e.path&&e.path.match(se);var n=e;if(r){var s=t.scheme||n.scheme||"urn";var i=r[1].toLowerCase();var o=r[2];var a=s+":"+(t.nid||i);var c=j[a];n.nid=i;n.nss=o;n.path=undefined;if(c){n=c.parse(n,t)}}else{n.error=n.error||"URN can not be parsed."}return n},serialize:function serialize$$1(e,t){var r=t.scheme||e.scheme||"urn";var n=e.nid;var s=r+":"+(t.nid||n);var i=j[s];if(i){e=i.serialize(e,t)}var o=e;var a=e.nss;o.path=(n||t.nid)+":"+a;return o}};var oe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;var ae={scheme:"urn:uuid",parse:function parse(e,t){var r=e;r.uuid=r.nss;r.nss=undefined;if(!t.tolerant&&(!r.uuid||!r.uuid.match(oe))){r.error=r.error||"UUID is not valid."}return r},serialize:function serialize(e,t){var r=e;r.nss=(e.uuid||"").toLowerCase();return r}};j[U.scheme]=U;j[G.scheme]=G;j[ne.scheme]=ne;j[ie.scheme]=ie;j[ae.scheme]=ae;e.SCHEMES=j;e.pctEncChar=pctEncChar;e.pctDecChars=pctDecChars;e.parse=parse;e.removeDotSegments=removeDotSegments;e.serialize=serialize;e.resolveComponents=resolveComponents;e.resolve=resolve;e.normalize=normalize;e.equal=equal;e.escapeComponent=escapeComponent;e.unescapeComponent=unescapeComponent;Object.defineProperty(e,"__esModule",{value:true})}))},3125:(e,t,r)=>{var n=r(71017);"use strict";function urix(e){if(n.sep==="\\"){return e.replace(/\\/g,"/").replace(/^[a-z]:\/?/i,"/")}return e}e.exports=urix},30688:e=>{"use strict";
319
+ (function(e,r){true?r(t):0})(this,(function(e){"use strict";function merge(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}if(t.length>1){t[0]=t[0].slice(0,-1);var n=t.length-1;for(var s=1;s<n;++s){t[s]=t[s].slice(1,-1)}t[n]=t[n].slice(1);return t.join("")}else{return t[0]}}function subexp(e){return"(?:"+e+")"}function typeOf(e){return e===undefined?"undefined":e===null?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function toUpperCase(e){return e.toUpperCase()}function toArray(e){return e!==undefined&&e!==null?e instanceof Array?e:typeof e.length!=="number"||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function assign(e,t){var r=e;if(t){for(var n in t){r[n]=t[n]}}return r}function buildExps(e){var t="[A-Za-z]",r="[\\x0D]",n="[0-9]",s="[\\x22]",i=merge(n,"[A-Fa-f]"),o="[\\x0A]",a="[\\x20]",c=subexp(subexp("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+subexp("%[89A-Fa-f]"+i+"%"+i+i)+"|"+subexp("%"+i+i)),u="[\\:\\/\\?\\#\\[\\]\\@]",l="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",h=merge(u,l),p=e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",d=e?"[\\uE000-\\uF8FF]":"[]",y=merge(t,n,"[\\-\\.\\_\\~]",p),g=subexp(t+merge(t,n,"[\\+\\-\\.]")+"*"),v=subexp(subexp(c+"|"+merge(y,l,"[\\:]"))+"*"),b=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+n)+"|"+subexp("1"+n+n)+"|"+subexp("[1-9]"+n)+"|"+n),w=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+n)+"|"+subexp("1"+n+n)+"|"+subexp("0?[1-9]"+n)+"|0?0?"+n),S=subexp(w+"\\."+w+"\\."+w+"\\."+w),x=subexp(i+"{1,4}"),O=subexp(subexp(x+"\\:"+x)+"|"+S),R=subexp(subexp(x+"\\:")+"{6}"+O),k=subexp("\\:\\:"+subexp(x+"\\:")+"{5}"+O),A=subexp(subexp(x)+"?\\:\\:"+subexp(x+"\\:")+"{4}"+O),P=subexp(subexp(subexp(x+"\\:")+"{0,1}"+x)+"?\\:\\:"+subexp(x+"\\:")+"{3}"+O),C=subexp(subexp(subexp(x+"\\:")+"{0,2}"+x)+"?\\:\\:"+subexp(x+"\\:")+"{2}"+O),$=subexp(subexp(subexp(x+"\\:")+"{0,3}"+x)+"?\\:\\:"+x+"\\:"+O),T=subexp(subexp(subexp(x+"\\:")+"{0,4}"+x)+"?\\:\\:"+O),j=subexp(subexp(subexp(x+"\\:")+"{0,5}"+x)+"?\\:\\:"+x),I=subexp(subexp(subexp(x+"\\:")+"{0,6}"+x)+"?\\:\\:"),N=subexp([R,k,A,P,C,$,T,j,I].join("|")),M=subexp(subexp(y+"|"+c)+"+"),D=subexp(N+"\\%25"+M),L=subexp(N+subexp("\\%25|\\%(?!"+i+"{2})")+M),B=subexp("[vV]"+i+"+\\."+merge(y,l,"[\\:]")+"+"),U=subexp("\\["+subexp(L+"|"+N+"|"+B)+"\\]"),G=subexp(subexp(c+"|"+merge(y,l))+"*"),z=subexp(U+"|"+S+"(?!"+G+")"+"|"+G),V=subexp(n+"*"),q=subexp(subexp(v+"@")+"?"+z+subexp("\\:"+V)+"?"),H=subexp(c+"|"+merge(y,l,"[\\:\\@]")),W=subexp(H+"*"),K=subexp(H+"+"),Y=subexp(subexp(c+"|"+merge(y,l,"[\\@]"))+"+"),J=subexp(subexp("\\/"+W)+"*"),Z=subexp("\\/"+subexp(K+J)+"?"),X=subexp(Y+J),Q=subexp(K+J),ee="(?!"+H+")",te=subexp(J+"|"+Z+"|"+X+"|"+Q+"|"+ee),re=subexp(subexp(H+"|"+merge("[\\/\\?]",d))+"*"),ne=subexp(subexp(H+"|[\\/\\?]")+"*"),se=subexp(subexp("\\/\\/"+q+J)+"|"+Z+"|"+Q+"|"+ee),ie=subexp(g+"\\:"+se+subexp("\\?"+re)+"?"+subexp("\\#"+ne)+"?"),oe=subexp(subexp("\\/\\/"+q+J)+"|"+Z+"|"+X+"|"+ee),ae=subexp(oe+subexp("\\?"+re)+"?"+subexp("\\#"+ne)+"?"),ce=subexp(ie+"|"+ae),ue=subexp(g+"\\:"+se+subexp("\\?"+re)+"?"),le="^("+g+")\\:"+subexp(subexp("\\/\\/("+subexp("("+v+")@")+"?("+z+")"+subexp("\\:("+V+")")+"?)")+"?("+J+"|"+Z+"|"+Q+"|"+ee+")")+subexp("\\?("+re+")")+"?"+subexp("\\#("+ne+")")+"?$",fe="^(){0}"+subexp(subexp("\\/\\/("+subexp("("+v+")@")+"?("+z+")"+subexp("\\:("+V+")")+"?)")+"?("+J+"|"+Z+"|"+X+"|"+ee+")")+subexp("\\?("+re+")")+"?"+subexp("\\#("+ne+")")+"?$",he="^("+g+")\\:"+subexp(subexp("\\/\\/("+subexp("("+v+")@")+"?("+z+")"+subexp("\\:("+V+")")+"?)")+"?("+J+"|"+Z+"|"+Q+"|"+ee+")")+subexp("\\?("+re+")")+"?$",pe="^"+subexp("\\#("+ne+")")+"?$",de="^"+subexp("("+v+")@")+"?("+z+")"+subexp("\\:("+V+")")+"?$";return{NOT_SCHEME:new RegExp(merge("[^]",t,n,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(merge("[^\\%\\:]",y,l),"g"),NOT_HOST:new RegExp(merge("[^\\%\\[\\]\\:]",y,l),"g"),NOT_PATH:new RegExp(merge("[^\\%\\/\\:\\@]",y,l),"g"),NOT_PATH_NOSCHEME:new RegExp(merge("[^\\%\\/\\@]",y,l),"g"),NOT_QUERY:new RegExp(merge("[^\\%]",y,l,"[\\:\\@\\/\\?]",d),"g"),NOT_FRAGMENT:new RegExp(merge("[^\\%]",y,l,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(merge("[^]",y,l),"g"),UNRESERVED:new RegExp(y,"g"),OTHER_CHARS:new RegExp(merge("[^\\%]",y,h),"g"),PCT_ENCODED:new RegExp(c,"g"),IPV4ADDRESS:new RegExp("^("+S+")$"),IPV6ADDRESS:new RegExp("^\\[?("+N+")"+subexp(subexp("\\%25|\\%(?!"+i+"{2})")+"("+M+")")+"?\\]?$")}}var t=buildExps(false);var r=buildExps(true);var n=function(){function sliceIterator(e,t){var r=[];var n=true;var s=false;var i=undefined;try{for(var o=e[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){r.push(a.value);if(t&&r.length===t)break}}catch(e){s=true;i=e}finally{try{if(!n&&o["return"])o["return"]()}finally{if(s)throw i}}return r}return function(e,t){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,t)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var toConsumableArray=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else{return Array.from(e)}};var s=2147483647;var i=36;var o=1;var a=26;var c=38;var u=700;var l=72;var h=128;var p="-";var d=/^xn--/;var y=/[^\0-\x7E]/;var g=/[\x2E\u3002\uFF0E\uFF61]/g;var v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var b=i-o;var w=Math.floor;var S=String.fromCharCode;function error$1(e){throw new RangeError(v[e])}function map(e,t){var r=[];var n=e.length;while(n--){r[n]=t(e[n])}return r}function mapDomain(e,t){var r=e.split("@");var n="";if(r.length>1){n=r[0]+"@";e=r[1]}e=e.replace(g,".");var s=e.split(".");var i=map(s,t).join(".");return n+i}function ucs2decode(e){var t=[];var r=0;var n=e.length;while(r<n){var s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<n){var i=e.charCodeAt(r++);if((i&64512)==56320){t.push(((s&1023)<<10)+(i&1023)+65536)}else{t.push(s);r--}}else{t.push(s)}}return t}var x=function ucs2encode(e){return String.fromCodePoint.apply(String,toConsumableArray(e))};var O=function basicToDigit(e){if(e-48<10){return e-22}if(e-65<26){return e-65}if(e-97<26){return e-97}return i};var R=function digitToBasic(e,t){return e+22+75*(e<26)-((t!=0)<<5)};var k=function adapt(e,t,r){var n=0;e=r?w(e/u):e>>1;e+=w(e/t);for(;e>b*a>>1;n+=i){e=w(e/b)}return w(n+(b+1)*e/(e+c))};var A=function decode(e){var t=[];var r=e.length;var n=0;var c=h;var u=l;var d=e.lastIndexOf(p);if(d<0){d=0}for(var y=0;y<d;++y){if(e.charCodeAt(y)>=128){error$1("not-basic")}t.push(e.charCodeAt(y))}for(var g=d>0?d+1:0;g<r;){var v=n;for(var b=1,S=i;;S+=i){if(g>=r){error$1("invalid-input")}var x=O(e.charCodeAt(g++));if(x>=i||x>w((s-n)/b)){error$1("overflow")}n+=x*b;var R=S<=u?o:S>=u+a?a:S-u;if(x<R){break}var A=i-R;if(b>w(s/A)){error$1("overflow")}b*=A}var P=t.length+1;u=k(n-v,P,v==0);if(w(n/P)>s-c){error$1("overflow")}c+=w(n/P);n%=P;t.splice(n++,0,c)}return String.fromCodePoint.apply(String,t)};var P=function encode(e){var t=[];e=ucs2decode(e);var r=e.length;var n=h;var c=0;var u=l;var d=true;var y=false;var g=undefined;try{for(var v=e[Symbol.iterator](),b;!(d=(b=v.next()).done);d=true){var x=b.value;if(x<128){t.push(S(x))}}}catch(e){y=true;g=e}finally{try{if(!d&&v.return){v.return()}}finally{if(y){throw g}}}var O=t.length;var A=O;if(O){t.push(p)}while(A<r){var P=s;var C=true;var $=false;var T=undefined;try{for(var j=e[Symbol.iterator](),I;!(C=(I=j.next()).done);C=true){var N=I.value;if(N>=n&&N<P){P=N}}}catch(e){$=true;T=e}finally{try{if(!C&&j.return){j.return()}}finally{if($){throw T}}}var M=A+1;if(P-n>w((s-c)/M)){error$1("overflow")}c+=(P-n)*M;n=P;var D=true;var L=false;var B=undefined;try{for(var U=e[Symbol.iterator](),G;!(D=(G=U.next()).done);D=true){var z=G.value;if(z<n&&++c>s){error$1("overflow")}if(z==n){var V=c;for(var q=i;;q+=i){var H=q<=u?o:q>=u+a?a:q-u;if(V<H){break}var W=V-H;var K=i-H;t.push(S(R(H+W%K,0)));V=w(W/K)}t.push(S(R(V,0)));u=k(c,M,A==O);c=0;++A}}}catch(e){L=true;B=e}finally{try{if(!D&&U.return){U.return()}}finally{if(L){throw B}}}++c;++n}return t.join("")};var C=function toUnicode(e){return mapDomain(e,(function(e){return d.test(e)?A(e.slice(4).toLowerCase()):e}))};var $=function toASCII(e){return mapDomain(e,(function(e){return y.test(e)?"xn--"+P(e):e}))};var T={version:"2.1.0",ucs2:{decode:ucs2decode,encode:x},decode:A,encode:P,toASCII:$,toUnicode:C};var j={};function pctEncChar(e){var t=e.charCodeAt(0);var r=void 0;if(t<16)r="%0"+t.toString(16).toUpperCase();else if(t<128)r="%"+t.toString(16).toUpperCase();else if(t<2048)r="%"+(t>>6|192).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();else r="%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();return r}function pctDecChars(e){var t="";var r=0;var n=e.length;while(r<n){var s=parseInt(e.substr(r+1,2),16);if(s<128){t+=String.fromCharCode(s);r+=3}else if(s>=194&&s<224){if(n-r>=6){var i=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((s&31)<<6|i&63)}else{t+=e.substr(r,6)}r+=6}else if(s>=224){if(n-r>=9){var o=parseInt(e.substr(r+4,2),16);var a=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((s&15)<<12|(o&63)<<6|a&63)}else{t+=e.substr(r,9)}r+=9}else{t+=e.substr(r,3);r+=3}}return t}function _normalizeComponentEncoding(e,t){function decodeUnreserved(e){var r=pctDecChars(e);return!r.match(t.UNRESERVED)?e:r}if(e.scheme)e.scheme=String(e.scheme).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_USERINFO,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_HOST,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(t.PCT_ENCODED,decodeUnreserved).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_QUERY,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_FRAGMENT,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,t){var r=e.match(t.IPV4ADDRESS)||[];var s=n(r,2),i=s[1];if(i){return i.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,t){var r=e.match(t.IPV6ADDRESS)||[];var s=n(r,3),i=s[1],o=s[2];if(i){var a=i.toLowerCase().split("::").reverse(),c=n(a,2),u=c[0],l=c[1];var h=l?l.split(":").map(_stripLeadingZeros):[];var p=u.split(":").map(_stripLeadingZeros);var d=t.IPV4ADDRESS.test(p[p.length-1]);var y=d?7:8;var g=p.length-y;var v=Array(y);for(var b=0;b<y;++b){v[b]=h[b]||p[g+b]||""}if(d){v[y-1]=_normalizeIPv4(v[y-1],t)}var w=v.reduce((function(e,t,r){if(!t||t==="0"){var n=e[e.length-1];if(n&&n.index+n.length===r){n.length++}else{e.push({index:r,length:1})}}return e}),[]);var S=w.sort((function(e,t){return t.length-e.length}))[0];var x=void 0;if(S&&S.length>1){var O=v.slice(0,S.index);var R=v.slice(S.index+S.length);x=O.join(":")+"::"+R.join(":")}else{x=v.join(":")}if(o){x+="%"+o}return x}else{return e}}var I=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var N="".match(/(){0}/)[1]===undefined;function parse(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var s={};var i=n.iri!==false?r:t;if(n.reference==="suffix")e=(n.scheme?n.scheme+":":"")+"//"+e;var o=e.match(I);if(o){if(N){s.scheme=o[1];s.userinfo=o[3];s.host=o[4];s.port=parseInt(o[5],10);s.path=o[6]||"";s.query=o[7];s.fragment=o[8];if(isNaN(s.port)){s.port=o[5]}}else{s.scheme=o[1]||undefined;s.userinfo=e.indexOf("@")!==-1?o[3]:undefined;s.host=e.indexOf("//")!==-1?o[4]:undefined;s.port=parseInt(o[5],10);s.path=o[6]||"";s.query=e.indexOf("?")!==-1?o[7]:undefined;s.fragment=e.indexOf("#")!==-1?o[8]:undefined;if(isNaN(s.port)){s.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:undefined}}if(s.host){s.host=_normalizeIPv6(_normalizeIPv4(s.host,i),i)}if(s.scheme===undefined&&s.userinfo===undefined&&s.host===undefined&&s.port===undefined&&!s.path&&s.query===undefined){s.reference="same-document"}else if(s.scheme===undefined){s.reference="relative"}else if(s.fragment===undefined){s.reference="absolute"}else{s.reference="uri"}if(n.reference&&n.reference!=="suffix"&&n.reference!==s.reference){s.error=s.error||"URI is not a "+n.reference+" reference."}var a=j[(n.scheme||s.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!a||!a.unicodeSupport)){if(s.host&&(n.domainHost||a&&a.domainHost)){try{s.host=T.toASCII(s.host.replace(i.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){s.error=s.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(s,t)}else{_normalizeComponentEncoding(s,i)}if(a&&a.parse){a.parse(s,n)}}else{s.error=s.error||"URI can not be parsed."}return s}function _recomposeAuthority(e,n){var s=n.iri!==false?r:t;var i=[];if(e.userinfo!==undefined){i.push(e.userinfo);i.push("@")}if(e.host!==undefined){i.push(_normalizeIPv6(_normalizeIPv4(String(e.host),s),s).replace(s.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"})))}if(typeof e.port==="number"){i.push(":");i.push(e.port.toString(10))}return i.length?i.join(""):undefined}var M=/^\.\.?\//;var D=/^\/\.(\/|$)/;var L=/^\/\.\.(\/|$)/;var B=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var t=[];while(e.length){if(e.match(M)){e=e.replace(M,"")}else if(e.match(D)){e=e.replace(D,"/")}else if(e.match(L)){e=e.replace(L,"/");t.pop()}else if(e==="."||e===".."){e=""}else{var r=e.match(B);if(r){var n=r[0];e=e.slice(n.length);t.push(n)}else{throw new Error("Unexpected dot segment condition")}}}return t.join("")}function serialize(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var s=n.iri?r:t;var i=[];var o=j[(n.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize)o.serialize(e,n);if(e.host){if(s.IPV6ADDRESS.test(e.host)){}else if(n.domainHost||o&&o.domainHost){try{e.host=!n.iri?T.toASCII(e.host.replace(s.PCT_ENCODED,pctDecChars).toLowerCase()):T.toUnicode(e.host)}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(!n.iri?"ASCII":"Unicode")+" via punycode: "+t}}}_normalizeComponentEncoding(e,s);if(n.reference!=="suffix"&&e.scheme){i.push(e.scheme);i.push(":")}var a=_recomposeAuthority(e,n);if(a!==undefined){if(n.reference!=="suffix"){i.push("//")}i.push(a);if(e.path&&e.path.charAt(0)!=="/"){i.push("/")}}if(e.path!==undefined){var c=e.path;if(!n.absolutePath&&(!o||!o.absolutePath)){c=removeDotSegments(c)}if(a===undefined){c=c.replace(/^\/\//,"/%2F")}i.push(c)}if(e.query!==undefined){i.push("?");i.push(e.query)}if(e.fragment!==undefined){i.push("#");i.push(e.fragment)}return i.join("")}function resolveComponents(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments[3];var s={};if(!n){e=parse(serialize(e,r),r);t=parse(serialize(t,r),r)}r=r||{};if(!r.tolerant&&t.scheme){s.scheme=t.scheme;s.userinfo=t.userinfo;s.host=t.host;s.port=t.port;s.path=removeDotSegments(t.path||"");s.query=t.query}else{if(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined){s.userinfo=t.userinfo;s.host=t.host;s.port=t.port;s.path=removeDotSegments(t.path||"");s.query=t.query}else{if(!t.path){s.path=e.path;if(t.query!==undefined){s.query=t.query}else{s.query=e.query}}else{if(t.path.charAt(0)==="/"){s.path=removeDotSegments(t.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){s.path="/"+t.path}else if(!e.path){s.path=t.path}else{s.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path}s.path=removeDotSegments(s.path)}s.query=t.query}s.userinfo=e.userinfo;s.host=e.host;s.port=e.port}s.scheme=e.scheme}s.fragment=t.fragment;return s}function resolve(e,t,r){var n=assign({scheme:"null"},r);return serialize(resolveComponents(parse(e,n),parse(t,n),n,true),n)}function normalize(e,t){if(typeof e==="string"){e=serialize(parse(e,t),t)}else if(typeOf(e)==="object"){e=parse(serialize(e,t),t)}return e}function equal(e,t,r){if(typeof e==="string"){e=serialize(parse(e,r),r)}else if(typeOf(e)==="object"){e=serialize(e,r)}if(typeof t==="string"){t=serialize(parse(t,r),r)}else if(typeOf(t)==="object"){t=serialize(t,r)}return e===t}function escapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.ESCAPE:r.ESCAPE,pctEncChar)}function unescapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.PCT_ENCODED:r.PCT_ENCODED,pctDecChars)}var U={scheme:"http",domainHost:true,parse:function parse(e,t){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,t){if(e.port===(String(e.scheme).toLowerCase()!=="https"?80:443)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var G={scheme:"https",domainHost:U.domainHost,parse:U.parse,serialize:U.serialize};var z={};var V=true;var q="[A-Za-z0-9\\-\\.\\_\\~"+(V?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var H="[0-9A-Fa-f]";var W=subexp(subexp("%[EFef]"+H+"%"+H+H+"%"+H+H)+"|"+subexp("%[89A-Fa-f]"+H+"%"+H+H)+"|"+subexp("%"+H+H));var K="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var Y="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var J=merge(Y,'[\\"\\\\]');var Z="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var X=new RegExp(q,"g");var Q=new RegExp(W,"g");var ee=new RegExp(merge("[^]",K,"[\\.]",'[\\"]',J),"g");var te=new RegExp(merge("[^]",q,Z),"g");var re=te;function decodeUnreserved(e){var t=pctDecChars(e);return!t.match(X)?e:t}var ne={scheme:"mailto",parse:function parse$$1(e,t){var r=e;var n=r.to=r.path?r.path.split(","):[];r.path=undefined;if(r.query){var s=false;var i={};var o=r.query.split("&");for(var a=0,c=o.length;a<c;++a){var u=o[a].split("=");switch(u[0]){case"to":var l=u[1].split(",");for(var h=0,p=l.length;h<p;++h){n.push(l[h])}break;case"subject":r.subject=unescapeComponent(u[1],t);break;case"body":r.body=unescapeComponent(u[1],t);break;default:s=true;i[unescapeComponent(u[0],t)]=unescapeComponent(u[1],t);break}}if(s)r.headers=i}r.query=undefined;for(var d=0,y=n.length;d<y;++d){var g=n[d].split("@");g[0]=unescapeComponent(g[0]);if(!t.unicodeSupport){try{g[1]=T.toASCII(unescapeComponent(g[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}}else{g[1]=unescapeComponent(g[1],t).toLowerCase()}n[d]=g.join("@")}return r},serialize:function serialize$$1(e,t){var r=e;var n=toArray(e.to);if(n){for(var s=0,i=n.length;s<i;++s){var o=String(n[s]);var a=o.lastIndexOf("@");var c=o.slice(0,a).replace(Q,decodeUnreserved).replace(Q,toUpperCase).replace(ee,pctEncChar);var u=o.slice(a+1);try{u=!t.iri?T.toASCII(unescapeComponent(u,t).toLowerCase()):T.toUnicode(u)}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(!t.iri?"ASCII":"Unicode")+" via punycode: "+e}n[s]=c+"@"+u}r.path=n.join(",")}var l=e.headers=e.headers||{};if(e.subject)l["subject"]=e.subject;if(e.body)l["body"]=e.body;var h=[];for(var p in l){if(l[p]!==z[p]){h.push(p.replace(Q,decodeUnreserved).replace(Q,toUpperCase).replace(te,pctEncChar)+"="+l[p].replace(Q,decodeUnreserved).replace(Q,toUpperCase).replace(re,pctEncChar))}}if(h.length){r.query=h.join("&")}return r}};var se=/^([^\:]+)\:(.*)/;var ie={scheme:"urn",parse:function parse$$1(e,t){var r=e.path&&e.path.match(se);var n=e;if(r){var s=t.scheme||n.scheme||"urn";var i=r[1].toLowerCase();var o=r[2];var a=s+":"+(t.nid||i);var c=j[a];n.nid=i;n.nss=o;n.path=undefined;if(c){n=c.parse(n,t)}}else{n.error=n.error||"URN can not be parsed."}return n},serialize:function serialize$$1(e,t){var r=t.scheme||e.scheme||"urn";var n=e.nid;var s=r+":"+(t.nid||n);var i=j[s];if(i){e=i.serialize(e,t)}var o=e;var a=e.nss;o.path=(n||t.nid)+":"+a;return o}};var oe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;var ae={scheme:"urn:uuid",parse:function parse(e,t){var r=e;r.uuid=r.nss;r.nss=undefined;if(!t.tolerant&&(!r.uuid||!r.uuid.match(oe))){r.error=r.error||"UUID is not valid."}return r},serialize:function serialize(e,t){var r=e;r.nss=(e.uuid||"").toLowerCase();return r}};j[U.scheme]=U;j[G.scheme]=G;j[ne.scheme]=ne;j[ie.scheme]=ie;j[ae.scheme]=ae;e.SCHEMES=j;e.pctEncChar=pctEncChar;e.pctDecChars=pctDecChars;e.parse=parse;e.removeDotSegments=removeDotSegments;e.serialize=serialize;e.resolveComponents=resolveComponents;e.resolve=resolve;e.normalize=normalize;e.equal=equal;e.escapeComponent=escapeComponent;e.unescapeComponent=unescapeComponent;Object.defineProperty(e,"__esModule",{value:true})}))},3125:(e,t,r)=>{var n=r(71017);"use strict";function urix(e){if(n.sep==="\\"){return e.replace(/\\/g,"/").replace(/^[a-z]:\/?/i,"/")}return e}e.exports=urix},30688:e=>{"use strict";
320
320
  /*!
321
321
  * use <https://github.com/jonschlinkert/use>
322
322
  *
323
323
  * Copyright (c) 2015-2017, Jon Schlinkert.
324
324
  * Released under the MIT License.
325
- */e.exports=function base(e,t){if(!isObject(e)&&typeof e!=="function"){throw new TypeError("expected an object or function")}var r=isObject(t)?t:{};var n=typeof r.prop==="string"?r.prop:"fns";if(!Array.isArray(e[n])){define(e,n,[])}define(e,"use",use);define(e,"run",(function(t){if(!isObject(t))return;if(!t.use||!t.run){define(t,n,t[n]||[]);define(t,"use",use)}if(!t[n]||t[n].indexOf(base)===-1){t.use(base)}var r=this||e;var s=r[n];var i=s.length;var o=-1;while(++o<i){t.use(s[o])}return t}));function use(t,s,i){var o=1;if(typeof t==="string"||Array.isArray(t)){s=wrap(t,s);o++}else{i=s;s=t}if(typeof s!=="function"){throw new TypeError("expected a function")}var a=this||e;var c=a[n];var u=[].slice.call(arguments,o);u.unshift(a);if(typeof r.hook==="function"){r.hook.apply(a,u)}var l=s.apply(a,u);if(typeof l==="function"&&c.indexOf(l)===-1){c.push(l)}return a}function wrap(e,t){return function plugin(){return this.type===e?t.apply(this,arguments):plugin}}return e};function isObject(e){return e&&typeof e==="object"&&!Array.isArray(e)}function define(e,t,r){Object.defineProperty(e,t,{configurable:true,writable:true,value:r})}},42338:(e,t,r)=>{"use strict";var n=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var s=r(33113);var i=["node_modules","favicon.ico"];var o=e.exports=function(e){var t=[];var r=[];if(e===null){r.push("name cannot be null");return done(t,r)}if(e===undefined){r.push("name cannot be undefined");return done(t,r)}if(typeof e!=="string"){r.push("name must be a string");return done(t,r)}if(!e.length){r.push("name length must be greater than zero")}if(e.match(/^\./)){r.push("name cannot start with a period")}if(e.match(/^_/)){r.push("name cannot start with an underscore")}if(e.trim()!==e){r.push("name cannot contain leading or trailing spaces")}i.forEach((function(t){if(e.toLowerCase()===t){r.push(t+" is a blacklisted name")}}));s.forEach((function(r){if(e.toLowerCase()===r){t.push(r+" is a core module name")}}));if(e.length>214){t.push("name can no longer contain more than 214 characters")}if(e.toLowerCase()!==e){t.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(e.split("/").slice(-1)[0])){t.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(e)!==e){var o=e.match(n);if(o){var a=o[1];var c=o[2];if(encodeURIComponent(a)===a&&encodeURIComponent(c)===c){return done(t,r)}}r.push("name can only contain URL-friendly characters")}return done(t,r)};o.scopedPackagePattern=n;var done=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};if(!r.warnings.length)delete r.warnings;if(!r.errors.length)delete r.errors;return r}},69423:(e,t,r)=>{e.exports=which;which.sync=whichSync;var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var s=r(71017);var i=n?";":":";var o=r(17745);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||i;var s=t.path||process.env.PATH||"";var o=[""];s=s.split(r);var a="";if(n){s.unshift(process.cwd());a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";o=a.split(r);if(e.indexOf(".")!==-1&&o[0]!=="")o.unshift("")}if(e.match(/\//)||n&&e.match(/\\/))s=[""];return{env:s,ext:o,extExe:a}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var n=getPathInfo(e,t);var i=n.env;var a=n.ext;var c=n.extExe;var u=[];(function F(n,l){if(n===l){if(t.all&&u.length)return r(null,u);else return r(getNotFoundError(e))}var h=i[n];if(h.charAt(0)==='"'&&h.slice(-1)==='"')h=h.slice(1,-1);var p=s.join(h,e);if(!h&&/^\.[\\\/]/.test(e)){p=e.slice(0,2)+p}(function E(e,s){if(e===s)return F(n+1,l);var i=a[e];o(p+i,{pathExt:c},(function(n,o){if(!n&&o){if(t.all)u.push(p+i);else return r(null,p+i)}return E(e+1,s)}))})(0,a.length)})(0,i.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var n=r.env;var i=r.ext;var a=r.extExe;var c=[];for(var u=0,l=n.length;u<l;u++){var h=n[u];if(h.charAt(0)==='"'&&h.slice(-1)==='"')h=h.slice(1,-1);var p=s.join(h,e);if(!h&&/^\.[\\\/]/.test(e)){p=e.slice(0,2)+p}for(var d=0,y=i.length;d<y;d++){var g=p+i[d];var v;try{v=o.sync(g,{pathExt:a});if(v){if(t.all)c.push(g);else return g}}catch(e){}}}if(t.all&&c.length)return c;if(t.nothrow)return null;throw getNotFoundError(e)}},83270:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var n=e.apply(this,t);var s=t[t.length-1];if(typeof n==="function"&&n!==s){Object.keys(s).forEach((function(e){n[e]=s[e]}))}return n}}},18076:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},11190:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,n=arguments.length;r<n;r++){t.push(arguments[r])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var r=e.prev;if(t){t.prev=r}if(r){r.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=r}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++){e.call(t,r.value,n,this);r=r.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--){e.call(t,r.value,n,this);r=r.prev}};Yallist.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++){r=r.next}if(t===e&&r!==null){return r.value}};Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++){r=r.prev}if(t===e&&r!==null){return r.value}};Yallist.prototype.map=function(e,t){t=t||this;var r=new Yallist;for(var n=this.head;n!==null;){r.push(e.call(t,n.value,this));n=n.next}return r};Yallist.prototype.mapReverse=function(e,t){t=t||this;var r=new Yallist;for(var n=this.tail;n!==null;){r.push(e.call(t,n.value,this));n=n.prev}return r};Yallist.prototype.reduce=function(e,t){var r;var n=this.head;if(arguments.length>1){r=t}else if(this.head){n=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=0;n!==null;s++){r=e(r,n.value,s);n=n.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var n=this.tail;if(arguments.length>1){r=t}else if(this.tail){n=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=this.length-1;n!==null;s--){r=e(r,n.value,s);n=n.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=0,s=this.head;s!==null&&n<e;n++){s=s.next}for(;s!==null&&n<t;n++,s=s.next){r.push(s.value)}return r};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=this.length,s=this.tail;s!==null&&n>t;n--){s=s.prev}for(;s!==null&&n>e;n--,s=s.prev){r.push(s.value)}return r};Yallist.prototype.splice=function(e,t){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var r=0,n=this.head;n!==null&&r<e;r++){n=n.next}var s=[];for(var r=0;n&&r<t;r++){s.push(n.value);n=this.removeNode(n)}if(n===null){n=this.tail}if(n!==this.head&&n!==this.tail){n=n.prev}for(var r=2;r<arguments.length;r++){n=insert(this,n,arguments[r])}return s};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next;r.next=n}this.head=t;this.tail=e;return this};function insert(e,t,r){var n=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);if(n.next===null){e.tail=n}if(n.prev===null){e.head=n}e.length++;return n}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,r,n){if(!(this instanceof Node)){return new Node(e,t,r,n)}this.list=n;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(r){r.prev=this;this.next=r}else{this.next=null}}try{r(18076)(Yallist)}catch(e){}},49414:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},13401:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,n=arguments.length;r<n;r++){t.push(arguments[r])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var r=e.prev;if(t){t.prev=r}if(r){r.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=r}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++){e.call(t,r.value,n,this);r=r.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--){e.call(t,r.value,n,this);r=r.prev}};Yallist.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++){r=r.next}if(t===e&&r!==null){return r.value}};Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++){r=r.prev}if(t===e&&r!==null){return r.value}};Yallist.prototype.map=function(e,t){t=t||this;var r=new Yallist;for(var n=this.head;n!==null;){r.push(e.call(t,n.value,this));n=n.next}return r};Yallist.prototype.mapReverse=function(e,t){t=t||this;var r=new Yallist;for(var n=this.tail;n!==null;){r.push(e.call(t,n.value,this));n=n.prev}return r};Yallist.prototype.reduce=function(e,t){var r;var n=this.head;if(arguments.length>1){r=t}else if(this.head){n=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=0;n!==null;s++){r=e(r,n.value,s);n=n.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var n=this.tail;if(arguments.length>1){r=t}else if(this.tail){n=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=this.length-1;n!==null;s--){r=e(r,n.value,s);n=n.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=0,s=this.head;s!==null&&n<e;n++){s=s.next}for(;s!==null&&n<t;n++,s=s.next){r.push(s.value)}return r};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=this.length,s=this.tail;s!==null&&n>t;n--){s=s.prev}for(;s!==null&&n>e;n--,s=s.prev){r.push(s.value)}return r};Yallist.prototype.splice=function(e,t,...r){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var n=0,s=this.head;s!==null&&n<e;n++){s=s.next}var i=[];for(var n=0;s&&n<t;n++){i.push(s.value);s=this.removeNode(s)}if(s===null){s=this.tail}if(s!==this.head&&s!==this.tail){s=s.prev}for(var n=0;n<r.length;n++){s=insert(this,s,r[n])}return i};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next;r.next=n}this.head=t;this.tail=e;return this};function insert(e,t,r){var n=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);if(n.next===null){e.tail=n}if(n.prev===null){e.head=n}e.length++;return n}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,r,n){if(!(this instanceof Node)){return new Node(e,t,r,n)}this.list=n;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(r){r.prev=this;this.next=r}else{this.next=null}}try{r(49414)(Yallist)}catch(e){}},68994:(e,t,r)=>{"use strict";r.r(t);var n=r(96148);var s=r.n(n);var i=r(44101);var o=r.n(i);var a=r(87136);var c=r.n(a);var u=r(71017);var l=r.n(u);var h=r(89966);var p=r.n(h);var d=r(65656);var y=r.n(d);var g=r(89239);var v=r.n(g);var b=r(57147);var w=r.n(b);var S=r(99312);var x=r.n(S);var O=r(7697);var R=r(12781);var k=r(73837);var A=r.n(k);var C=r(22037);var P=r.n(C);const $=(0,k.promisify)(R.Stream.pipeline);async function isUrlOk(e){const t=await x().head(e).catch((e=>e));return t.statusCode===200}async function getRepoInfo(e,t){const[,r,n,s,i,...o]=e.pathname.split("/");const a=t?t.replace(/^\//,""):o.join("/");if(s===undefined||s===""&&i===undefined){const e=await x()(`https://api.github.com/repos/${r}/${n}`).catch((e=>e));if(e.statusCode!==200){return}const t=JSON.parse(e.body);return{username:r,name:n,branch:t["default_branch"],filePath:a}}const c=t?`${i}/${o.join("/")}`.replace(new RegExp(`/${a}|/$`),""):i;if(r&&n&&c&&s==="tree"){return{username:r,name:n,branch:c,filePath:a}}}function hasRepo({username:e,name:t,branch:r,filePath:n}){const s=`https://api.github.com/repos/${e}/${t}/contents`;const i=`${n?`/${n}`:""}/package.json`;return isUrlOk(s+i+`?ref=${r}`)}function existsInRepo(e){try{const t=new URL(e);return isUrlOk(t.href)}catch{return isUrlOk(`https://api.github.com/repos/vercel/next.js/contents/examples/${encodeURIComponent(e)}`)}}async function downloadTar(e){const t=(0,u.join)((0,C.tmpdir)(),`next.js-cna-example.temp-${Date.now()}`);await $(x().stream(e),(0,b.createWriteStream)(t));return t}async function downloadAndExtractRepo(e,{username:t,name:r,branch:n,filePath:s}){const i=await downloadTar(`https://codeload.github.com/${t}/${r}/tar.gz/${n}`);await O.x({file:i,cwd:e,strip:s?s.split("/").length+1:1,filter:e=>e.startsWith(`${r}-${n.replace(/\//g,"-")}${s?`/${s}/`:"/"}`)});await b.promises.unlink(i)}async function downloadAndExtractExample(e,t){if(t==="__internal-testing-retry"){throw new Error("This is an internal example for testing the CLI.")}const r=await downloadTar("https://codeload.github.com/vercel/next.js/tar.gz/canary");await O.x({file:r,cwd:e,strip:2+t.split("/").length,filter:e=>e.includes(`next.js-canary/examples/${t}/`)});await b.promises.unlink(r)}function makeDir(e,t={recursive:true}){return w().promises.mkdir(e,t)}var T=r(32081);function isInGitRepository(){try{(0,T.execSync)("git rev-parse --is-inside-work-tree",{stdio:"ignore"});return true}catch(e){}return false}function isInMercurialRepository(){try{(0,T.execSync)("hg --cwd . root",{stdio:"ignore"});return true}catch(e){}return false}function isDefaultBranchSet(){try{(0,T.execSync)("git config init.defaultBranch",{stdio:"ignore"});return true}catch(e){}return false}function tryGitInit(e){let t=false;try{(0,T.execSync)("git --version",{stdio:"ignore"});if(isInGitRepository()||isInMercurialRepository()){return false}(0,T.execSync)("git init",{stdio:"ignore"});t=true;if(!isDefaultBranchSet()){(0,T.execSync)("git checkout -b main",{stdio:"ignore"})}(0,T.execSync)("git add -A",{stdio:"ignore"});(0,T.execSync)('git commit -m "Initial commit from Create Next App"',{stdio:"ignore"});return true}catch(r){if(t){try{w().rmSync(l().join(e,".git"),{recursive:true,force:true})}catch(e){}}return false}}var j=r(9321);var I=r.n(j);function install(e,t,{packageManager:r,isOnline:n,devDependencies:i}){const o=[];const a=[];return new Promise(((c,u)=>{let l;let h=r;const p=r==="yarn";if(t&&t.length){if(p){l=["add","--exact"];if(!n)l.push("--offline");l.push("--cwd",e);if(i)l.push("--dev");l.push(...t)}else{l=["install","--save-exact"];l.push(i?"--save-dev":"--save");l.push(...t)}}else{l=["install"];if(!n){console.log(s().yellow("You appear to be offline."));if(p){console.log(s().yellow("Falling back to the local Yarn cache."));console.log();l.push("--offline")}else{console.log()}}}if(p){l.push(...a)}else{l.push(...o)}const d=I()(h,l,{stdio:"inherit",env:{...process.env,ADBLOCK:"1",NODE_ENV:"development",DISABLE_OPENCOLLECTIVE:"1"}});d.on("close",(e=>{if(e!==0){u({command:`${h} ${l.join(" ")}`});return}c()}))}))}function isFolderEmpty(e,t){const r=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log","yarnrc.yml",".yarn"];const n=w().readdirSync(e).filter((e=>!r.includes(e))).filter((e=>!/\.iml$/.test(e)));if(n.length>0){console.log(`The directory ${s().green(t)} contains files that could conflict:`);console.log();for(const t of n){try{const r=w().lstatSync(l().join(e,t));if(r.isDirectory()){console.log(` ${s().blue(t)}/`)}else{console.log(` ${t}`)}}catch{console.log(` ${t}`)}}console.log();console.log("Either try using a new directory name, or remove the files listed above.");console.log();return false}return true}var N=r(9523);var M=r.n(N);var D=r(57310);var L=r.n(D);function getProxy(){if(process.env.https_proxy){return process.env.https_proxy}try{const e=(0,T.execSync)("npm config get https-proxy").toString().trim();return e!=="null"?e:undefined}catch(e){return}}function getOnline(){return new Promise((e=>{M().lookup("registry.yarnpkg.com",(t=>{if(!t){return e(true)}const r=getProxy();if(!r){return e(false)}const{hostname:n}=L().parse(r);if(!n){return e(false)}M().lookup(n,(t=>{e(t==null)}))}))}))}async function isWriteable(e){try{await w().promises.access(e,(w().constants||w()).W_OK);return true}catch(e){return false}}var B=r(55165);var U=r.n(B);var G=r(84529);var z=r.n(G);var q=r(58383);const V=A().promisify(z());const getTemplateFile=({template:e,mode:t,file:n})=>r.ab+"templates/"+e+"/"+t+"/"+n;const H=["app","pages","styles"];const installTemplate=async({appName:e,root:t,packageManager:n,isOnline:i,template:o,mode:a,tailwind:c,eslint:u,srcDir:h,importAlias:p})=>{console.log(s().bold(`Using ${n}.`));console.log("\nInitializing project with template:",o,"\n");const d=r.ab+"templates/"+o+"/"+a;const y=["**"];if(!u)y.push("!eslintrc.json");if(!c)y.push("!tailwind.config.js","!postcss.config.js");await U()(y,t,{parents:true,cwd:d,rename:e=>{switch(e){case"gitignore":case"eslintrc.json":{return".".concat(e)}case"README-template.md":{return"README.md"}default:{return e}}}});const g=l().join(t,a==="js"?"jsconfig.json":"tsconfig.json");await w().promises.writeFile(g,(await w().promises.readFile(g,"utf8")).replace(`"@/*": ["./*"]`,h?`"@/*": ["./src/*"]`:`"@/*": ["./*"]`).replace(`"@/*":`,`"${p}":`));if(p!=="@/*"){const e=await V("**/*",{cwd:t,dot:true});const r=new q.Sema(8,{capacity:e.length});await Promise.all(e.map((async e=>{if(e==="tsconfig.json"||e==="jsconfig.json")return;await r.acquire();const n=l().join(t,e);if((await w().promises.stat(n)).isFile()){await w().promises.writeFile(n,(await w().promises.readFile(n,"utf8")).replace(`@/`,`${p.replace(/\*/g,"")}`))}await r.release()})))}if(h){await makeDir(l().join(t,"src"));await Promise.all(H.map((async e=>{await w().promises.rename(l().join(t,e),l().join(t,"src",e)).catch((e=>{if(e.code!=="ENOENT"){throw e}}))})));const e=o.startsWith("app");const r=l().join("src",e?"app":"pages",`${e?"page":"index"}.${a==="ts"?"tsx":"js"}`);await w().promises.writeFile(r,(await w().promises.readFile(r,"utf8")).replace(e?"app/page":"pages/index",e?"src/app/page":"src/pages/index"));if(c){const e=l().join(t,"tailwind.config.js");await w().promises.writeFile(e,(await w().promises.readFile(e,"utf8")).replace(/\.\/(\w+)\/\*\*\/\*\.\{js,ts,jsx,tsx,mdx\}/g,"./src/$1/**/*.{js,ts,jsx,tsx,mdx}"))}}const v={name:e,version:"0.1.0",private:true,scripts:{dev:"next dev",build:"next build",start:"next start",lint:"next lint"}};w().writeFileSync(l().join(t,"package.json"),JSON.stringify(v,null,2)+P().EOL);const b={packageManager:n,isOnline:i};const S=["react","react-dom",`next${process.env.NEXT_PRIVATE_TEST_VERSION?`@${process.env.NEXT_PRIVATE_TEST_VERSION}`:""}`];if(a==="ts"){S.push("typescript","@types/react","@types/node","@types/react-dom")}if(c){S.push("tailwindcss","postcss","autoprefixer")}if(u){S.push("eslint","eslint-config-next")}if(S.length){console.log();console.log("Installing dependencies:");for(const e of S){console.log(`- ${s().cyan(e)}`)}console.log();await install(t,S,b)}};class DownloadError extends Error{}async function createApp({appPath:e,packageManager:t,example:r,examplePath:n,typescript:i,tailwind:o,eslint:a,appRouter:c,srcDir:u,importAlias:h}){let p;const d=i?"ts":"js";const y=c?o?"app-tw":"app":o?"default-tw":"default";if(r){let e;try{e=new URL(r)}catch(e){if(e.code!=="ERR_INVALID_URL"){console.error(e);process.exit(1)}}if(e){if(e.origin!=="https://github.com"){console.error(`Invalid URL: ${s().red(`"${r}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`);process.exit(1)}p=await getRepoInfo(e,n);if(!p){console.error(`Found invalid GitHub URL: ${s().red(`"${r}"`)}. Please fix the URL and try again.`);process.exit(1)}const t=await hasRepo(p);if(!t){console.error(`Could not locate the repository for ${s().red(`"${r}"`)}. Please check that the repository exists and try again.`);process.exit(1)}}else if(r!=="__internal-testing-retry"){const e=await existsInRepo(r);if(!e){console.error(`Could not locate an example named ${s().red(`"${r}"`)}. It could be due to the following:\n`,`1. Your spelling of example ${s().red(`"${r}"`)} might be incorrect.\n`,`2. You might not be connected to the internet or you are behind a proxy.`);process.exit(1)}}}const g=l().resolve(e);if(!await isWriteable(l().dirname(g))){console.error("The application path is not writable, please check folder permissions and try again.");console.error("It is likely you do not have write permissions for this folder.");process.exit(1)}const b=l().basename(g);await makeDir(g);if(!isFolderEmpty(g,b)){process.exit(1)}const S=t==="yarn";const x=!S||await getOnline();const O=process.cwd();console.log(`Creating a new Next.js app in ${s().green(g)}.`);console.log();process.chdir(g);const R=l().join(g,"package.json");let k=false;if(r){try{if(p){const e=p;console.log(`Downloading files from repo ${s().cyan(r)}. This might take a moment.`);console.log();await v()((()=>downloadAndExtractRepo(g,e)),{retries:3})}else{console.log(`Downloading files for example ${s().cyan(r)}. This might take a moment.`);console.log();await v()((()=>downloadAndExtractExample(g,r)),{retries:3})}}catch(e){function isErrorLike(e){return typeof e==="object"&&e!==null&&typeof e.message==="string"}throw new DownloadError(isErrorLike(e)?e.message:e+"")}const e=l().join(g,".gitignore");if(!w().existsSync(e)){w().copyFileSync(getTemplateFile({template:y,mode:d,file:"gitignore"}),e)}const n=l().join(g,"tsconfig.json");if(w().existsSync(n)){w().copyFileSync(getTemplateFile({template:y,mode:"ts",file:"next-env.d.ts"}),l().join(g,"next-env.d.ts"))}k=w().existsSync(R);if(k){console.log("Installing packages. This might take a couple of minutes.");console.log();await install(g,null,{packageManager:t,isOnline:x});console.log()}}else{await installTemplate({appName:b,root:g,template:y,mode:d,packageManager:t,isOnline:x,tailwind:o,eslint:a,srcDir:u,importAlias:h})}if(tryGitInit(g)){console.log("Initialized a git repository.");console.log()}let A;if(l().join(O,b)===e){A=b}else{A=e}console.log(`${s().green("Success!")} Created ${b} at ${e}`);if(k){console.log("Inside that directory, you can run several commands:");console.log();console.log(s().cyan(` ${t} ${S?"":"run "}dev`));console.log(" Starts the development server.");console.log();console.log(s().cyan(` ${t} ${S?"":"run "}build`));console.log(" Builds the app for production.");console.log();console.log(s().cyan(` ${t} start`));console.log(" Runs the built app in production mode.");console.log();console.log("We suggest that you begin by typing:");console.log();console.log(s().cyan(" cd"),A);console.log(` ${s().cyan(`${t} ${S?"":"run "}dev`)}`)}console.log()}function getPkgManager(){const e=process.env.npm_config_user_agent||"";if(e.startsWith("yarn")){return"yarn"}if(e.startsWith("pnpm")){return"pnpm"}return"npm"}var W=r(42338);var Y=r.n(W);function validateNpmName(e){const t=Y()(e);if(t.validForNewPackages){return{valid:true}}return{valid:false,problems:[...t.errors||[],...t.warnings||[]]}}const K=JSON.parse('{"name":"create-next-app","version":"13.4.5-canary.8","keywords":["react","next","next.js"],"description":"Create Next.js-powered React apps with one command","repository":{"type":"git","url":"https://github.com/vercel/next.js","directory":"packages/create-next-app"},"author":"Next.js Team <support@vercel.com>","license":"MIT","bin":{"create-next-app":"./dist/index.js"},"files":["dist"],"scripts":{"dev":"ncc build ./index.ts -w -o dist/","prerelease":"node ../../scripts/rm.mjs dist","release":"ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register","prepublishOnly":"cd ../../ && turbo run build","build":"pnpm release","lint-fix":"pnpm prettier -w --plugin prettier-plugin-tailwindcss \'templates/*-tw/{ts,js}/{app,pages}/**/*.{js,ts,tsx}\'"},"devDependencies":{"@types/async-retry":"1.4.2","@types/ci-info":"2.0.0","@types/cross-spawn":"6.0.0","@types/glob":"7.1.1","@types/node":"^16.8.0","@types/prompts":"2.0.1","@types/tar":"4.0.3","@types/validate-npm-package-name":"3.0.0","@vercel/ncc":"0.34.0","async-retry":"1.3.1","chalk":"2.4.2","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","commander":"2.20.0","conf":"10.2.0","cpy":"7.3.0","cross-spawn":"6.0.5","glob":"8.0.3","got":"10.7.0","prettier-plugin-tailwindcss":"0.2.4","prompts":"2.1.0","tar":"4.4.10","update-check":"1.5.4","validate-npm-package-name":"3.0.0"},"engines":{"node":">=16.8.0"}}');var J=r(27741);var Z=r.n(J);let X="";const handleSigTerm=()=>process.exit(0);process.on("SIGINT",handleSigTerm);process.on("SIGTERM",handleSigTerm);const onPromptState=e=>{if(e.aborted){process.stdout.write("[?25h");process.stdout.write("\n");process.exit(1)}};const Q=new(o().Command)(K.name).version(K.version).arguments("<project-directory>").usage(`${s().green("<project-directory>")} [options]`).action((e=>{X=e})).option("--ts, --typescript",`\n\n Initialize as a TypeScript project. (default)\n`).option("--js, --javascript",`\n\n Initialize as a JavaScript project.\n`).option("--tailwind",`\n\n Initialize with Tailwind CSS config. (default)\n`).option("--eslint",`\n\n Initialize with eslint config.\n`).option("--app",`\n\n Initialize as an App Router project.\n`).option("--src-dir",`\n\n Initialize inside a \`src/\` directory.\n`).option("--import-alias <alias-to-configure>",`\n\n Specify import alias to use (default "@/*").\n`).option("--use-npm",`\n\n Explicitly tell the CLI to bootstrap the application using npm\n`).option("--use-pnpm",`\n\n Explicitly tell the CLI to bootstrap the application using pnpm\n`).option("--use-yarn",`\n\n Explicitly tell the CLI to bootstrap the application using Yarn\n`).option("-e, --example [name]|[github-url]",`\n\n An example to bootstrap the app with. You can use an example name\n from the official Next.js repo or a GitHub URL. The URL can use\n any branch and/or subdirectory\n`).option("--example-path <path-to-example>",`\n\n In a rare case, your GitHub URL might contain a branch name with\n a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).\n In this case, you must specify the path to the example separately:\n --example-path foo/bar\n`).option("--reset-preferences",`\n\n Explicitly tell the CLI to reset any stored preferences\n`).allowUnknownOption().parse(process.argv);const ee=!!Q.useNpm?"npm":!!Q.usePnpm?"pnpm":!!Q.useYarn?"yarn":getPkgManager();async function run(){const e=new(c())({projectName:"create-next-app"});if(Q.resetPreferences){e.clear();console.log(`Preferences reset successfully`);return}if(typeof X==="string"){X=X.trim()}if(!X){const e=await p()({onState:onPromptState,type:"text",name:"path",message:"What is your project named?",initial:"my-app",validate:e=>{const t=validateNpmName(l().basename(l().resolve(e)));if(t.valid){return true}return"Invalid project name: "+t.problems[0]}});if(typeof e.path==="string"){X=e.path.trim()}}if(!X){console.log("\nPlease specify the project directory:\n"+` ${s().cyan(Q.name())} ${s().green("<project-directory>")}\n`+"For example:\n"+` ${s().cyan(Q.name())} ${s().green("my-next-app")}\n\n`+`Run ${s().cyan(`${Q.name()} --help`)} to see all options.`);process.exit(1)}const t=l().resolve(X);const r=l().basename(t);const{valid:n,problems:i}=validateNpmName(r);if(!n){console.error(`Could not create a project called ${s().red(`"${r}"`)} because of npm naming restrictions:`);i.forEach((e=>console.error(` ${s().red.bold("*")} ${e}`)));process.exit(1)}if(Q.example===true){console.error("Please provide an example name or url, otherwise remove the example option.");process.exit(1)}const o=l().resolve(t);const a=l().basename(o);const u=w().existsSync(o);if(u&&!isFolderEmpty(o,a)){process.exit(1)}const h=typeof Q.example==="string"&&Q.example.trim();const d=e.get("preferences")||{};if(!h){const e={typescript:true,eslint:true,tailwind:true,srcDir:false,importAlias:"@/*",customizeImportAlias:false};const getPrefOrDefault=t=>{var r;return(r=d[t])!==null&&r!==void 0?r:e[t]};if(!Q.typescript&&!Q.javascript){if(Z().isCI){Q.typescript=false;Q.javascript=true}else{const e=s().hex("#007acc")("TypeScript");const{typescript:t}=await p()({type:"toggle",name:"typescript",message:`Would you like to use ${e} with this project?`,initial:getPrefOrDefault("typescript"),active:"Yes",inactive:"No"},{onCancel:()=>{console.error("Exiting.");process.exit(1)}});Q.typescript=Boolean(t);Q.javascript=!Boolean(t);d.typescript=Boolean(t)}}if(!process.argv.includes("--eslint")&&!process.argv.includes("--no-eslint")){if(Z().isCI){Q.eslint=true}else{const e=s().hex("#007acc")("ESLint");const{eslint:t}=await p()({onState:onPromptState,type:"toggle",name:"eslint",message:`Would you like to use ${e} with this project?`,initial:getPrefOrDefault("eslint"),active:"Yes",inactive:"No"});Q.eslint=Boolean(t);d.eslint=Boolean(t)}}if(!process.argv.includes("--tailwind")&&!process.argv.includes("--no-tailwind")){if(Z().isCI){Q.tailwind=false}else{const e=s().hex("#007acc")("Tailwind CSS");const{tailwind:t}=await p()({onState:onPromptState,type:"toggle",name:"tailwind",message:`Would you like to use ${e} with this project?`,initial:getPrefOrDefault("tailwind"),active:"Yes",inactive:"No"});Q.tailwind=Boolean(t);d.tailwind=Boolean(t)}}if(!process.argv.includes("--src-dir")&&!process.argv.includes("--no-src-dir")){if(Z().isCI){Q.srcDir=false}else{const e=s().hex("#007acc")("`src/` directory");const{srcDir:t}=await p()({onState:onPromptState,type:"toggle",name:"srcDir",message:`Would you like to use ${e} with this project?`,initial:getPrefOrDefault("srcDir"),active:"Yes",inactive:"No"});Q.srcDir=Boolean(t);d.srcDir=Boolean(t)}}if(!process.argv.includes("--app")&&!process.argv.includes("--no-app")){if(Z().isCI){Q.app=true}else{const e=s().hex("#007acc")("App Router");const{appRouter:t}=await p()({onState:onPromptState,type:"toggle",name:"appRouter",message:`Use ${e} (recommended)?`,initial:true,active:"Yes",inactive:"No"});Q.app=Boolean(t)}}if(typeof Q.importAlias!=="string"||!Q.importAlias.length){if(Z().isCI){Q.importAlias="@/*"}else{const e=s().hex("#007acc")("import alias");const{customizeImportAlias:t}=await p()({onState:onPromptState,type:"toggle",name:"customizeImportAlias",message:`Would you like to customize the default ${e}?`,initial:getPrefOrDefault("customizeImportAlias"),active:"Yes",inactive:"No"});if(!t){Q.importAlias="@/*"}else{const{importAlias:t}=await p()({onState:onPromptState,type:"text",name:"importAlias",message:`What ${e} would you like configured?`,initial:getPrefOrDefault("importAlias"),validate:e=>/.+\/\*/.test(e)?true:"Import alias must follow the pattern <prefix>/*"});Q.importAlias=t;d.importAlias=t}}}}try{await createApp({appPath:t,packageManager:ee,example:h&&h!=="default"?h:undefined,examplePath:Q.examplePath,typescript:Q.typescript,tailwind:Q.tailwind,eslint:Q.eslint,appRouter:Q.app,srcDir:Q.srcDir,importAlias:Q.importAlias})}catch(e){if(!(e instanceof DownloadError)){throw e}const r=await p()({onState:onPromptState,type:"confirm",name:"builtin",message:`Could not download "${h}" because of a connectivity issue between your machine and GitHub.\n`+`Do you want to use the default template instead?`,initial:true});if(!r.builtin){throw e}await createApp({appPath:t,packageManager:ee,typescript:Q.typescript,eslint:Q.eslint,tailwind:Q.tailwind,appRouter:Q.app,srcDir:Q.srcDir,importAlias:Q.importAlias})}e.set("preferences",d)}const te=y()(K).catch((()=>null));async function notifyUpdate(){try{const e=await te;if(e===null||e===void 0?void 0:e.latest){const e=ee==="yarn"?"yarn global add create-next-app":ee==="pnpm"?"pnpm add -g create-next-app":"npm i -g create-next-app";console.log(s().yellow.bold("A new version of `create-next-app` is available!")+"\n"+"You can update by running: "+s().cyan(e)+"\n")}process.exit()}catch{}}run().then(notifyUpdate).catch((async e=>{console.log();console.log("Aborting installation.");if(e.command){console.log(` ${s().cyan(e.command)} has failed.`)}else{console.log(s().red("Unexpected error. Please report it as a bug:")+"\n",e)}console.log();await notifyUpdate();process.exit(1)}))},39491:e=>{"use strict";e.exports=require("assert")},14300:e=>{"use strict";e.exports=require("buffer")},32081:e=>{"use strict";e.exports=require("child_process")},22057:e=>{"use strict";e.exports=require("constants")},6113:e=>{"use strict";e.exports=require("crypto")},9523:e=>{"use strict";e.exports=require("dns")},82361:e=>{"use strict";e.exports=require("events")},57147:e=>{"use strict";e.exports=require("fs")},13685:e=>{"use strict";e.exports=require("http")},95687:e=>{"use strict";e.exports=require("https")},41808:e=>{"use strict";e.exports=require("net")},22037:e=>{"use strict";e.exports=require("os")},71017:e=>{"use strict";e.exports=require("path")},14521:e=>{"use strict";e.exports=require("readline")},12781:e=>{"use strict";e.exports=require("stream")},71576:e=>{"use strict";e.exports=require("string_decoder")},24404:e=>{"use strict";e.exports=require("tls")},76224:e=>{"use strict";e.exports=require("tty")},57310:e=>{"use strict";e.exports=require("url")},73837:e=>{"use strict";e.exports=require("util")},59796:e=>{"use strict";e.exports=require("zlib")},97918:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},39520:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},33113:e=>{"use strict";e.exports=JSON.parse('["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"]')},86107:e=>{"use strict";e.exports=JSON.parse('[{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","pr":"SYSTEM_PULLREQUEST_PULLREQUESTID"},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"ZEIT Now","constant":"ZEIT_NOW","env":"NOW_BUILDER"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Shippable","constant":"SHIPPABLE","env":"SHIPPABLE","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Solano CI","constant":"SOLANO","env":"TDDIUM","pr":"TDDIUM_PR_ID"},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}}]')}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var s=t[r]={id:r,loaded:false,exports:{}};var i=true;try{e[r].call(s.exports,s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}s.loaded=true;return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(68994);module.exports=r})();
325
+ */e.exports=function base(e,t){if(!isObject(e)&&typeof e!=="function"){throw new TypeError("expected an object or function")}var r=isObject(t)?t:{};var n=typeof r.prop==="string"?r.prop:"fns";if(!Array.isArray(e[n])){define(e,n,[])}define(e,"use",use);define(e,"run",(function(t){if(!isObject(t))return;if(!t.use||!t.run){define(t,n,t[n]||[]);define(t,"use",use)}if(!t[n]||t[n].indexOf(base)===-1){t.use(base)}var r=this||e;var s=r[n];var i=s.length;var o=-1;while(++o<i){t.use(s[o])}return t}));function use(t,s,i){var o=1;if(typeof t==="string"||Array.isArray(t)){s=wrap(t,s);o++}else{i=s;s=t}if(typeof s!=="function"){throw new TypeError("expected a function")}var a=this||e;var c=a[n];var u=[].slice.call(arguments,o);u.unshift(a);if(typeof r.hook==="function"){r.hook.apply(a,u)}var l=s.apply(a,u);if(typeof l==="function"&&c.indexOf(l)===-1){c.push(l)}return a}function wrap(e,t){return function plugin(){return this.type===e?t.apply(this,arguments):plugin}}return e};function isObject(e){return e&&typeof e==="object"&&!Array.isArray(e)}function define(e,t,r){Object.defineProperty(e,t,{configurable:true,writable:true,value:r})}},42338:(e,t,r)=>{"use strict";var n=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var s=r(33113);var i=["node_modules","favicon.ico"];var o=e.exports=function(e){var t=[];var r=[];if(e===null){r.push("name cannot be null");return done(t,r)}if(e===undefined){r.push("name cannot be undefined");return done(t,r)}if(typeof e!=="string"){r.push("name must be a string");return done(t,r)}if(!e.length){r.push("name length must be greater than zero")}if(e.match(/^\./)){r.push("name cannot start with a period")}if(e.match(/^_/)){r.push("name cannot start with an underscore")}if(e.trim()!==e){r.push("name cannot contain leading or trailing spaces")}i.forEach((function(t){if(e.toLowerCase()===t){r.push(t+" is a blacklisted name")}}));s.forEach((function(r){if(e.toLowerCase()===r){t.push(r+" is a core module name")}}));if(e.length>214){t.push("name can no longer contain more than 214 characters")}if(e.toLowerCase()!==e){t.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(e.split("/").slice(-1)[0])){t.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(e)!==e){var o=e.match(n);if(o){var a=o[1];var c=o[2];if(encodeURIComponent(a)===a&&encodeURIComponent(c)===c){return done(t,r)}}r.push("name can only contain URL-friendly characters")}return done(t,r)};o.scopedPackagePattern=n;var done=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};if(!r.warnings.length)delete r.warnings;if(!r.errors.length)delete r.errors;return r}},69423:(e,t,r)=>{e.exports=which;which.sync=whichSync;var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var s=r(71017);var i=n?";":":";var o=r(17745);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||i;var s=t.path||process.env.PATH||"";var o=[""];s=s.split(r);var a="";if(n){s.unshift(process.cwd());a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";o=a.split(r);if(e.indexOf(".")!==-1&&o[0]!=="")o.unshift("")}if(e.match(/\//)||n&&e.match(/\\/))s=[""];return{env:s,ext:o,extExe:a}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var n=getPathInfo(e,t);var i=n.env;var a=n.ext;var c=n.extExe;var u=[];(function F(n,l){if(n===l){if(t.all&&u.length)return r(null,u);else return r(getNotFoundError(e))}var h=i[n];if(h.charAt(0)==='"'&&h.slice(-1)==='"')h=h.slice(1,-1);var p=s.join(h,e);if(!h&&/^\.[\\\/]/.test(e)){p=e.slice(0,2)+p}(function E(e,s){if(e===s)return F(n+1,l);var i=a[e];o(p+i,{pathExt:c},(function(n,o){if(!n&&o){if(t.all)u.push(p+i);else return r(null,p+i)}return E(e+1,s)}))})(0,a.length)})(0,i.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var n=r.env;var i=r.ext;var a=r.extExe;var c=[];for(var u=0,l=n.length;u<l;u++){var h=n[u];if(h.charAt(0)==='"'&&h.slice(-1)==='"')h=h.slice(1,-1);var p=s.join(h,e);if(!h&&/^\.[\\\/]/.test(e)){p=e.slice(0,2)+p}for(var d=0,y=i.length;d<y;d++){var g=p+i[d];var v;try{v=o.sync(g,{pathExt:a});if(v){if(t.all)c.push(g);else return g}}catch(e){}}}if(t.all&&c.length)return c;if(t.nothrow)return null;throw getNotFoundError(e)}},83270:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var n=e.apply(this,t);var s=t[t.length-1];if(typeof n==="function"&&n!==s){Object.keys(s).forEach((function(e){n[e]=s[e]}))}return n}}},49414:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},13401:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,n=arguments.length;r<n;r++){t.push(arguments[r])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var r=e.prev;if(t){t.prev=r}if(r){r.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=r}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++){e.call(t,r.value,n,this);r=r.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--){e.call(t,r.value,n,this);r=r.prev}};Yallist.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++){r=r.next}if(t===e&&r!==null){return r.value}};Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++){r=r.prev}if(t===e&&r!==null){return r.value}};Yallist.prototype.map=function(e,t){t=t||this;var r=new Yallist;for(var n=this.head;n!==null;){r.push(e.call(t,n.value,this));n=n.next}return r};Yallist.prototype.mapReverse=function(e,t){t=t||this;var r=new Yallist;for(var n=this.tail;n!==null;){r.push(e.call(t,n.value,this));n=n.prev}return r};Yallist.prototype.reduce=function(e,t){var r;var n=this.head;if(arguments.length>1){r=t}else if(this.head){n=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=0;n!==null;s++){r=e(r,n.value,s);n=n.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var n=this.tail;if(arguments.length>1){r=t}else if(this.tail){n=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=this.length-1;n!==null;s--){r=e(r,n.value,s);n=n.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=0,s=this.head;s!==null&&n<e;n++){s=s.next}for(;s!==null&&n<t;n++,s=s.next){r.push(s.value)}return r};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=this.length,s=this.tail;s!==null&&n>t;n--){s=s.prev}for(;s!==null&&n>e;n--,s=s.prev){r.push(s.value)}return r};Yallist.prototype.splice=function(e,t,...r){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var n=0,s=this.head;s!==null&&n<e;n++){s=s.next}var i=[];for(var n=0;s&&n<t;n++){i.push(s.value);s=this.removeNode(s)}if(s===null){s=this.tail}if(s!==this.head&&s!==this.tail){s=s.prev}for(var n=0;n<r.length;n++){s=insert(this,s,r[n])}return i};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next;r.next=n}this.head=t;this.tail=e;return this};function insert(e,t,r){var n=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);if(n.next===null){e.tail=n}if(n.prev===null){e.head=n}e.length++;return n}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,r,n){if(!(this instanceof Node)){return new Node(e,t,r,n)}this.list=n;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(r){r.prev=this;this.next=r}else{this.next=null}}try{r(49414)(Yallist)}catch(e){}},68994:(e,t,r)=>{"use strict";r.r(t);var n=r(96148);var s=r.n(n);var i=r(44101);var o=r.n(i);var a=r(87136);var c=r.n(a);var u=r(71017);var l=r.n(u);var h=r(89966);var p=r.n(h);var d=r(65656);var y=r.n(d);var g=r(89239);var v=r.n(g);var b=r(57147);var w=r.n(b);var S=r(99312);var x=r.n(S);var O=r(55255);var R=r(12781);var k=r(73837);var A=r.n(k);var P=r(22037);var C=r.n(P);const $=(0,k.promisify)(R.Stream.pipeline);async function isUrlOk(e){const t=await x().head(e).catch((e=>e));return t.statusCode===200}async function getRepoInfo(e,t){const[,r,n,s,i,...o]=e.pathname.split("/");const a=t?t.replace(/^\//,""):o.join("/");if(s===undefined||s===""&&i===undefined){const e=await x()(`https://api.github.com/repos/${r}/${n}`).catch((e=>e));if(e.statusCode!==200){return}const t=JSON.parse(e.body);return{username:r,name:n,branch:t["default_branch"],filePath:a}}const c=t?`${i}/${o.join("/")}`.replace(new RegExp(`/${a}|/$`),""):i;if(r&&n&&c&&s==="tree"){return{username:r,name:n,branch:c,filePath:a}}}function hasRepo({username:e,name:t,branch:r,filePath:n}){const s=`https://api.github.com/repos/${e}/${t}/contents`;const i=`${n?`/${n}`:""}/package.json`;return isUrlOk(s+i+`?ref=${r}`)}function existsInRepo(e){try{const t=new URL(e);return isUrlOk(t.href)}catch{return isUrlOk(`https://api.github.com/repos/vercel/next.js/contents/examples/${encodeURIComponent(e)}`)}}async function downloadTar(e){const t=(0,u.join)((0,P.tmpdir)(),`next.js-cna-example.temp-${Date.now()}`);await $(x().stream(e),(0,b.createWriteStream)(t));return t}async function downloadAndExtractRepo(e,{username:t,name:r,branch:n,filePath:s}){const i=await downloadTar(`https://codeload.github.com/${t}/${r}/tar.gz/${n}`);await O.x({file:i,cwd:e,strip:s?s.split("/").length+1:1,filter:e=>e.startsWith(`${r}-${n.replace(/\//g,"-")}${s?`/${s}/`:"/"}`)});await b.promises.unlink(i)}async function downloadAndExtractExample(e,t){if(t==="__internal-testing-retry"){throw new Error("This is an internal example for testing the CLI.")}const r=await downloadTar("https://codeload.github.com/vercel/next.js/tar.gz/canary");await O.x({file:r,cwd:e,strip:2+t.split("/").length,filter:e=>e.includes(`next.js-canary/examples/${t}/`)});await b.promises.unlink(r)}function makeDir(e,t={recursive:true}){return w().promises.mkdir(e,t)}var T=r(32081);function isInGitRepository(){try{(0,T.execSync)("git rev-parse --is-inside-work-tree",{stdio:"ignore"});return true}catch(e){}return false}function isInMercurialRepository(){try{(0,T.execSync)("hg --cwd . root",{stdio:"ignore"});return true}catch(e){}return false}function isDefaultBranchSet(){try{(0,T.execSync)("git config init.defaultBranch",{stdio:"ignore"});return true}catch(e){}return false}function tryGitInit(e){let t=false;try{(0,T.execSync)("git --version",{stdio:"ignore"});if(isInGitRepository()||isInMercurialRepository()){return false}(0,T.execSync)("git init",{stdio:"ignore"});t=true;if(!isDefaultBranchSet()){(0,T.execSync)("git checkout -b main",{stdio:"ignore"})}(0,T.execSync)("git add -A",{stdio:"ignore"});(0,T.execSync)('git commit -m "Initial commit from Create Next App"',{stdio:"ignore"});return true}catch(r){if(t){try{w().rmSync(l().join(e,".git"),{recursive:true,force:true})}catch(e){}}return false}}var j=r(9321);var I=r.n(j);function install(e,t,{packageManager:r,isOnline:n,devDependencies:i}){const o=[];const a=[];return new Promise(((c,u)=>{let l;let h=r;const p=r==="yarn";if(t&&t.length){if(p){l=["add","--exact"];if(!n)l.push("--offline");l.push("--cwd",e);if(i)l.push("--dev");l.push(...t)}else{l=["install","--save-exact"];l.push(i?"--save-dev":"--save");l.push(...t)}}else{l=["install"];if(!n){console.log(s().yellow("You appear to be offline."));if(p){console.log(s().yellow("Falling back to the local Yarn cache."));console.log();l.push("--offline")}else{console.log()}}}if(p){l.push(...a)}else{l.push(...o)}const d=I()(h,l,{stdio:"inherit",env:{...process.env,ADBLOCK:"1",NODE_ENV:"development",DISABLE_OPENCOLLECTIVE:"1"}});d.on("close",(e=>{if(e!==0){u({command:`${h} ${l.join(" ")}`});return}c()}))}))}function isFolderEmpty(e,t){const r=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log","yarnrc.yml",".yarn"];const n=w().readdirSync(e).filter((e=>!r.includes(e))).filter((e=>!/\.iml$/.test(e)));if(n.length>0){console.log(`The directory ${s().green(t)} contains files that could conflict:`);console.log();for(const t of n){try{const r=w().lstatSync(l().join(e,t));if(r.isDirectory()){console.log(` ${s().blue(t)}/`)}else{console.log(` ${t}`)}}catch{console.log(` ${t}`)}}console.log();console.log("Either try using a new directory name, or remove the files listed above.");console.log();return false}return true}var N=r(9523);var M=r.n(N);var D=r(57310);var L=r.n(D);function getProxy(){if(process.env.https_proxy){return process.env.https_proxy}try{const e=(0,T.execSync)("npm config get https-proxy").toString().trim();return e!=="null"?e:undefined}catch(e){return}}function getOnline(){return new Promise((e=>{M().lookup("registry.yarnpkg.com",(t=>{if(!t){return e(true)}const r=getProxy();if(!r){return e(false)}const{hostname:n}=L().parse(r);if(!n){return e(false)}M().lookup(n,(t=>{e(t==null)}))}))}))}async function isWriteable(e){try{await w().promises.access(e,(w().constants||w()).W_OK);return true}catch(e){return false}}var B=r(55165);var U=r.n(B);var G=r(84529);var z=r.n(G);var V=r(58383);const q=A().promisify(z());const getTemplateFile=({template:e,mode:t,file:n})=>r.ab+"templates/"+e+"/"+t+"/"+n;const H=["app","pages","styles"];const installTemplate=async({appName:e,root:t,packageManager:n,isOnline:i,template:o,mode:a,tailwind:c,eslint:u,srcDir:h,importAlias:p})=>{console.log(s().bold(`Using ${n}.`));console.log("\nInitializing project with template:",o,"\n");const d=r.ab+"templates/"+o+"/"+a;const y=["**"];if(!u)y.push("!eslintrc.json");if(!c)y.push("!tailwind.config.js","!postcss.config.js");await U()(y,t,{parents:true,cwd:d,rename:e=>{switch(e){case"gitignore":case"eslintrc.json":{return".".concat(e)}case"README-template.md":{return"README.md"}default:{return e}}}});const g=l().join(t,a==="js"?"jsconfig.json":"tsconfig.json");await w().promises.writeFile(g,(await w().promises.readFile(g,"utf8")).replace(`"@/*": ["./*"]`,h?`"@/*": ["./src/*"]`:`"@/*": ["./*"]`).replace(`"@/*":`,`"${p}":`));if(p!=="@/*"){const e=await q("**/*",{cwd:t,dot:true});const r=new V.Sema(8,{capacity:e.length});await Promise.all(e.map((async e=>{if(e==="tsconfig.json"||e==="jsconfig.json")return;await r.acquire();const n=l().join(t,e);if((await w().promises.stat(n)).isFile()){await w().promises.writeFile(n,(await w().promises.readFile(n,"utf8")).replace(`@/`,`${p.replace(/\*/g,"")}`))}await r.release()})))}if(h){await makeDir(l().join(t,"src"));await Promise.all(H.map((async e=>{await w().promises.rename(l().join(t,e),l().join(t,"src",e)).catch((e=>{if(e.code!=="ENOENT"){throw e}}))})));const e=o.startsWith("app");const r=l().join("src",e?"app":"pages",`${e?"page":"index"}.${a==="ts"?"tsx":"js"}`);await w().promises.writeFile(r,(await w().promises.readFile(r,"utf8")).replace(e?"app/page":"pages/index",e?"src/app/page":"src/pages/index"));if(c){const e=l().join(t,"tailwind.config.js");await w().promises.writeFile(e,(await w().promises.readFile(e,"utf8")).replace(/\.\/(\w+)\/\*\*\/\*\.\{js,ts,jsx,tsx,mdx\}/g,"./src/$1/**/*.{js,ts,jsx,tsx,mdx}"))}}const v={name:e,version:"0.1.0",private:true,scripts:{dev:"next dev",build:"next build",start:"next start",lint:"next lint"}};w().writeFileSync(l().join(t,"package.json"),JSON.stringify(v,null,2)+C().EOL);const b={packageManager:n,isOnline:i};const S=["react","react-dom",`next${process.env.NEXT_PRIVATE_TEST_VERSION?`@${process.env.NEXT_PRIVATE_TEST_VERSION}`:""}`];if(a==="ts"){S.push("typescript","@types/react","@types/node","@types/react-dom")}if(c){S.push("tailwindcss","postcss","autoprefixer")}if(u){S.push("eslint","eslint-config-next")}if(S.length){console.log();console.log("Installing dependencies:");for(const e of S){console.log(`- ${s().cyan(e)}`)}console.log();await install(t,S,b)}};class DownloadError extends Error{}async function createApp({appPath:e,packageManager:t,example:r,examplePath:n,typescript:i,tailwind:o,eslint:a,appRouter:c,srcDir:u,importAlias:h}){let p;const d=i?"ts":"js";const y=c?o?"app-tw":"app":o?"default-tw":"default";if(r){let e;try{e=new URL(r)}catch(e){if(e.code!=="ERR_INVALID_URL"){console.error(e);process.exit(1)}}if(e){if(e.origin!=="https://github.com"){console.error(`Invalid URL: ${s().red(`"${r}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`);process.exit(1)}p=await getRepoInfo(e,n);if(!p){console.error(`Found invalid GitHub URL: ${s().red(`"${r}"`)}. Please fix the URL and try again.`);process.exit(1)}const t=await hasRepo(p);if(!t){console.error(`Could not locate the repository for ${s().red(`"${r}"`)}. Please check that the repository exists and try again.`);process.exit(1)}}else if(r!=="__internal-testing-retry"){const e=await existsInRepo(r);if(!e){console.error(`Could not locate an example named ${s().red(`"${r}"`)}. It could be due to the following:\n`,`1. Your spelling of example ${s().red(`"${r}"`)} might be incorrect.\n`,`2. You might not be connected to the internet or you are behind a proxy.`);process.exit(1)}}}const g=l().resolve(e);if(!await isWriteable(l().dirname(g))){console.error("The application path is not writable, please check folder permissions and try again.");console.error("It is likely you do not have write permissions for this folder.");process.exit(1)}const b=l().basename(g);await makeDir(g);if(!isFolderEmpty(g,b)){process.exit(1)}const S=t==="yarn";const x=!S||await getOnline();const O=process.cwd();console.log(`Creating a new Next.js app in ${s().green(g)}.`);console.log();process.chdir(g);const R=l().join(g,"package.json");let k=false;if(r){try{if(p){const e=p;console.log(`Downloading files from repo ${s().cyan(r)}. This might take a moment.`);console.log();await v()((()=>downloadAndExtractRepo(g,e)),{retries:3})}else{console.log(`Downloading files for example ${s().cyan(r)}. This might take a moment.`);console.log();await v()((()=>downloadAndExtractExample(g,r)),{retries:3})}}catch(e){function isErrorLike(e){return typeof e==="object"&&e!==null&&typeof e.message==="string"}throw new DownloadError(isErrorLike(e)?e.message:e+"")}const e=l().join(g,".gitignore");if(!w().existsSync(e)){w().copyFileSync(getTemplateFile({template:y,mode:d,file:"gitignore"}),e)}const n=l().join(g,"tsconfig.json");if(w().existsSync(n)){w().copyFileSync(getTemplateFile({template:y,mode:"ts",file:"next-env.d.ts"}),l().join(g,"next-env.d.ts"))}k=w().existsSync(R);if(k){console.log("Installing packages. This might take a couple of minutes.");console.log();await install(g,null,{packageManager:t,isOnline:x});console.log()}}else{await installTemplate({appName:b,root:g,template:y,mode:d,packageManager:t,isOnline:x,tailwind:o,eslint:a,srcDir:u,importAlias:h})}if(tryGitInit(g)){console.log("Initialized a git repository.");console.log()}let A;if(l().join(O,b)===e){A=b}else{A=e}console.log(`${s().green("Success!")} Created ${b} at ${e}`);if(k){console.log("Inside that directory, you can run several commands:");console.log();console.log(s().cyan(` ${t} ${S?"":"run "}dev`));console.log(" Starts the development server.");console.log();console.log(s().cyan(` ${t} ${S?"":"run "}build`));console.log(" Builds the app for production.");console.log();console.log(s().cyan(` ${t} start`));console.log(" Runs the built app in production mode.");console.log();console.log("We suggest that you begin by typing:");console.log();console.log(s().cyan(" cd"),A);console.log(` ${s().cyan(`${t} ${S?"":"run "}dev`)}`)}console.log()}function getPkgManager(){const e=process.env.npm_config_user_agent||"";if(e.startsWith("yarn")){return"yarn"}if(e.startsWith("pnpm")){return"pnpm"}return"npm"}var W=r(42338);var K=r.n(W);function validateNpmName(e){const t=K()(e);if(t.validForNewPackages){return{valid:true}}return{valid:false,problems:[...t.errors||[],...t.warnings||[]]}}const Y=JSON.parse('{"name":"create-next-app","version":"13.4.5","keywords":["react","next","next.js"],"description":"Create Next.js-powered React apps with one command","repository":{"type":"git","url":"https://github.com/vercel/next.js","directory":"packages/create-next-app"},"author":"Next.js Team <support@vercel.com>","license":"MIT","bin":{"create-next-app":"./dist/index.js"},"files":["dist"],"scripts":{"dev":"ncc build ./index.ts -w -o dist/","prerelease":"node ../../scripts/rm.mjs dist","release":"ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register","prepublishOnly":"cd ../../ && turbo run build","build":"pnpm release","lint-fix":"pnpm prettier -w --plugin prettier-plugin-tailwindcss \'templates/*-tw/{ts,js}/{app,pages}/**/*.{js,ts,tsx}\'"},"devDependencies":{"@types/async-retry":"1.4.2","@types/ci-info":"2.0.0","@types/cross-spawn":"6.0.0","@types/glob":"7.1.1","@types/node":"^20.2.5","@types/prompts":"2.0.1","@types/tar":"6.1.5","@types/validate-npm-package-name":"3.0.0","@vercel/ncc":"0.34.0","async-retry":"1.3.1","chalk":"2.4.2","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","commander":"2.20.0","conf":"10.2.0","cpy":"7.3.0","cross-spawn":"6.0.5","glob":"8.0.3","got":"10.7.0","prettier-plugin-tailwindcss":"0.3.0","prompts":"2.1.0","tar":"6.1.15","update-check":"1.5.4","validate-npm-package-name":"3.0.0"},"engines":{"node":">=16.8.0"}}');var J=r(27741);var Z=r.n(J);let X="";const handleSigTerm=()=>process.exit(0);process.on("SIGINT",handleSigTerm);process.on("SIGTERM",handleSigTerm);const onPromptState=e=>{if(e.aborted){process.stdout.write("[?25h");process.stdout.write("\n");process.exit(1)}};const Q=new(o().Command)(Y.name).version(Y.version).arguments("<project-directory>").usage(`${s().green("<project-directory>")} [options]`).action((e=>{X=e})).option("--ts, --typescript",`\n\n Initialize as a TypeScript project. (default)\n`).option("--js, --javascript",`\n\n Initialize as a JavaScript project.\n`).option("--tailwind",`\n\n Initialize with Tailwind CSS config. (default)\n`).option("--eslint",`\n\n Initialize with eslint config.\n`).option("--app",`\n\n Initialize as an App Router project.\n`).option("--src-dir",`\n\n Initialize inside a \`src/\` directory.\n`).option("--import-alias <alias-to-configure>",`\n\n Specify import alias to use (default "@/*").\n`).option("--use-npm",`\n\n Explicitly tell the CLI to bootstrap the application using npm\n`).option("--use-pnpm",`\n\n Explicitly tell the CLI to bootstrap the application using pnpm\n`).option("--use-yarn",`\n\n Explicitly tell the CLI to bootstrap the application using Yarn\n`).option("-e, --example [name]|[github-url]",`\n\n An example to bootstrap the app with. You can use an example name\n from the official Next.js repo or a GitHub URL. The URL can use\n any branch and/or subdirectory\n`).option("--example-path <path-to-example>",`\n\n In a rare case, your GitHub URL might contain a branch name with\n a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).\n In this case, you must specify the path to the example separately:\n --example-path foo/bar\n`).option("--reset-preferences",`\n\n Explicitly tell the CLI to reset any stored preferences\n`).allowUnknownOption().parse(process.argv);const ee=!!Q.useNpm?"npm":!!Q.usePnpm?"pnpm":!!Q.useYarn?"yarn":getPkgManager();async function run(){const e=new(c())({projectName:"create-next-app"});if(Q.resetPreferences){e.clear();console.log(`Preferences reset successfully`);return}if(typeof X==="string"){X=X.trim()}if(!X){const e=await p()({onState:onPromptState,type:"text",name:"path",message:"What is your project named?",initial:"my-app",validate:e=>{const t=validateNpmName(l().basename(l().resolve(e)));if(t.valid){return true}return"Invalid project name: "+t.problems[0]}});if(typeof e.path==="string"){X=e.path.trim()}}if(!X){console.log("\nPlease specify the project directory:\n"+` ${s().cyan(Q.name())} ${s().green("<project-directory>")}\n`+"For example:\n"+` ${s().cyan(Q.name())} ${s().green("my-next-app")}\n\n`+`Run ${s().cyan(`${Q.name()} --help`)} to see all options.`);process.exit(1)}const t=l().resolve(X);const r=l().basename(t);const{valid:n,problems:i}=validateNpmName(r);if(!n){console.error(`Could not create a project called ${s().red(`"${r}"`)} because of npm naming restrictions:`);i.forEach((e=>console.error(` ${s().red.bold("*")} ${e}`)));process.exit(1)}if(Q.example===true){console.error("Please provide an example name or url, otherwise remove the example option.");process.exit(1)}const o=l().resolve(t);const a=l().basename(o);const u=w().existsSync(o);if(u&&!isFolderEmpty(o,a)){process.exit(1)}const h=typeof Q.example==="string"&&Q.example.trim();const d=e.get("preferences")||{};if(!h){const e={typescript:true,eslint:true,tailwind:true,srcDir:false,importAlias:"@/*",customizeImportAlias:false};const getPrefOrDefault=t=>{var r;return(r=d[t])!==null&&r!==void 0?r:e[t]};if(!Q.typescript&&!Q.javascript){if(Z().isCI){Q.typescript=false;Q.javascript=true}else{const e=s().hex("#007acc")("TypeScript");const{typescript:t}=await p()({type:"toggle",name:"typescript",message:`Would you like to use ${e} with this project?`,initial:getPrefOrDefault("typescript"),active:"Yes",inactive:"No"},{onCancel:()=>{console.error("Exiting.");process.exit(1)}});Q.typescript=Boolean(t);Q.javascript=!Boolean(t);d.typescript=Boolean(t)}}if(!process.argv.includes("--eslint")&&!process.argv.includes("--no-eslint")){if(Z().isCI){Q.eslint=true}else{const e=s().hex("#007acc")("ESLint");const{eslint:t}=await p()({onState:onPromptState,type:"toggle",name:"eslint",message:`Would you like to use ${e} with this project?`,initial:getPrefOrDefault("eslint"),active:"Yes",inactive:"No"});Q.eslint=Boolean(t);d.eslint=Boolean(t)}}if(!process.argv.includes("--tailwind")&&!process.argv.includes("--no-tailwind")){if(Z().isCI){Q.tailwind=false}else{const e=s().hex("#007acc")("Tailwind CSS");const{tailwind:t}=await p()({onState:onPromptState,type:"toggle",name:"tailwind",message:`Would you like to use ${e} with this project?`,initial:getPrefOrDefault("tailwind"),active:"Yes",inactive:"No"});Q.tailwind=Boolean(t);d.tailwind=Boolean(t)}}if(!process.argv.includes("--src-dir")&&!process.argv.includes("--no-src-dir")){if(Z().isCI){Q.srcDir=false}else{const e=s().hex("#007acc")("`src/` directory");const{srcDir:t}=await p()({onState:onPromptState,type:"toggle",name:"srcDir",message:`Would you like to use ${e} with this project?`,initial:getPrefOrDefault("srcDir"),active:"Yes",inactive:"No"});Q.srcDir=Boolean(t);d.srcDir=Boolean(t)}}if(!process.argv.includes("--app")&&!process.argv.includes("--no-app")){if(Z().isCI){Q.app=true}else{const e=s().hex("#007acc")("App Router");const{appRouter:t}=await p()({onState:onPromptState,type:"toggle",name:"appRouter",message:`Use ${e} (recommended)?`,initial:true,active:"Yes",inactive:"No"});Q.app=Boolean(t)}}if(typeof Q.importAlias!=="string"||!Q.importAlias.length){if(Z().isCI){Q.importAlias="@/*"}else{const e=s().hex("#007acc")("import alias");const{customizeImportAlias:t}=await p()({onState:onPromptState,type:"toggle",name:"customizeImportAlias",message:`Would you like to customize the default ${e}?`,initial:getPrefOrDefault("customizeImportAlias"),active:"Yes",inactive:"No"});if(!t){Q.importAlias="@/*"}else{const{importAlias:t}=await p()({onState:onPromptState,type:"text",name:"importAlias",message:`What ${e} would you like configured?`,initial:getPrefOrDefault("importAlias"),validate:e=>/.+\/\*/.test(e)?true:"Import alias must follow the pattern <prefix>/*"});Q.importAlias=t;d.importAlias=t}}}}try{await createApp({appPath:t,packageManager:ee,example:h&&h!=="default"?h:undefined,examplePath:Q.examplePath,typescript:Q.typescript,tailwind:Q.tailwind,eslint:Q.eslint,appRouter:Q.app,srcDir:Q.srcDir,importAlias:Q.importAlias})}catch(e){if(!(e instanceof DownloadError)){throw e}const r=await p()({onState:onPromptState,type:"confirm",name:"builtin",message:`Could not download "${h}" because of a connectivity issue between your machine and GitHub.\n`+`Do you want to use the default template instead?`,initial:true});if(!r.builtin){throw e}await createApp({appPath:t,packageManager:ee,typescript:Q.typescript,eslint:Q.eslint,tailwind:Q.tailwind,appRouter:Q.app,srcDir:Q.srcDir,importAlias:Q.importAlias})}e.set("preferences",d)}const te=y()(Y).catch((()=>null));async function notifyUpdate(){try{const e=await te;if(e===null||e===void 0?void 0:e.latest){const e=ee==="yarn"?"yarn global add create-next-app":ee==="pnpm"?"pnpm add -g create-next-app":"npm i -g create-next-app";console.log(s().yellow.bold("A new version of `create-next-app` is available!")+"\n"+"You can update by running: "+s().cyan(e)+"\n")}process.exit()}catch{}}run().then(notifyUpdate).catch((async e=>{console.log();console.log("Aborting installation.");if(e.command){console.log(` ${s().cyan(e.command)} has failed.`)}else{console.log(s().red("Unexpected error. Please report it as a bug:")+"\n",e)}console.log();await notifyUpdate();process.exit(1)}))},39491:e=>{"use strict";e.exports=require("assert")},14300:e=>{"use strict";e.exports=require("buffer")},32081:e=>{"use strict";e.exports=require("child_process")},22057:e=>{"use strict";e.exports=require("constants")},6113:e=>{"use strict";e.exports=require("crypto")},9523:e=>{"use strict";e.exports=require("dns")},82361:e=>{"use strict";e.exports=require("events")},57147:e=>{"use strict";e.exports=require("fs")},13685:e=>{"use strict";e.exports=require("http")},95687:e=>{"use strict";e.exports=require("https")},41808:e=>{"use strict";e.exports=require("net")},22037:e=>{"use strict";e.exports=require("os")},71017:e=>{"use strict";e.exports=require("path")},77282:e=>{"use strict";e.exports=require("process")},14521:e=>{"use strict";e.exports=require("readline")},12781:e=>{"use strict";e.exports=require("stream")},71576:e=>{"use strict";e.exports=require("string_decoder")},24404:e=>{"use strict";e.exports=require("tls")},76224:e=>{"use strict";e.exports=require("tty")},57310:e=>{"use strict";e.exports=require("url")},73837:e=>{"use strict";e.exports=require("util")},59796:e=>{"use strict";e.exports=require("zlib")},97918:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},39520:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},33113:e=>{"use strict";e.exports=JSON.parse('["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"]')},86107:e=>{"use strict";e.exports=JSON.parse('[{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","pr":"SYSTEM_PULLREQUEST_PULLREQUESTID"},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"ZEIT Now","constant":"ZEIT_NOW","env":"NOW_BUILDER"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Shippable","constant":"SHIPPABLE","env":"SHIPPABLE","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Solano CI","constant":"SOLANO","env":"TDDIUM","pr":"TDDIUM_PR_ID"},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}}]')}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var s=t[r]={id:r,loaded:false,exports:{}};var i=true;try{e[r].call(s.exports,s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}s.loaded=true;return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(68994);module.exports=r})();