fix: ignore multi-segment package.json bin entries (#1021)
diff --git a/.aspect/rules/external_repository_action_cache/npm_translate_lock_LTE4Nzc1MDcwNjU= b/.aspect/rules/external_repository_action_cache/npm_translate_lock_LTE4Nzc1MDcwNjU= index 574a068..23826d2 100755 --- a/.aspect/rules/external_repository_action_cache/npm_translate_lock_LTE4Nzc1MDcwNjU= +++ b/.aspect/rules/external_repository_action_cache/npm_translate_lock_LTE4Nzc1MDcwNjU=
@@ -1,7 +1,7 @@ # Input hashes for repository rule npm_translate_lock(name = "npm", pnpm_lock = "//:pnpm-lock.yaml"). # This file should be checked into version control along with the pnpm-lock.yaml file. .npmrc=-2065072158 -pnpm-lock.yaml=1633149504 +pnpm-lock.yaml=-1687805643 examples/npm_deps/patches/meaning-of-life@1.0.0-pnpm.patch=-442666336 package.json=-1057425123 pnpm-workspace.yaml=1536402859 @@ -16,7 +16,7 @@ js/private/image/package.json=-967071841 js/private/test/image/package.json=1295393035 js/private/worker/src/package.json=-755964446 -npm/private/test/package.json=667716755 +npm/private/test/package.json=672603585 npm/private/test/vendored/lodash-4.17.21.tgz=-1206623349 npm/private/test/npm_package/package.json=-1377103079 npm/private/test/vendored/is-odd/package.json=1041695223
diff --git a/MODULE.bazel b/MODULE.bazel index 11a4741..3661fc7 100644 --- a/MODULE.bazel +++ b/MODULE.bazel
@@ -126,6 +126,12 @@ "no-remote-exec", "requires-network", ], + "puppeteer": [ + "no-sandbox", + # Workaround Engflow not honoring requires-network on build actions + "no-remote-exec", + "requires-network", + ], }, npmrc = "//:.npmrc", patch_args = {
diff --git a/WORKSPACE b/WORKSPACE index 8ffcb0f..e6aef29 100644 --- a/WORKSPACE +++ b/WORKSPACE
@@ -136,6 +136,12 @@ "no-remote-exec", "requires-network", ], + "puppeteer": [ + "no-sandbox", + # Workaround Engflow not honoring requires-network on build actions + "no-remote-exec", + "requires-network", + ], }, npmrc = "//:.npmrc", patch_args = {
diff --git a/npm/private/lifecycle/lifecycle-hooks.js b/npm/private/lifecycle/lifecycle-hooks.js index 6ea6dd6..92501be 100644 --- a/npm/private/lifecycle/lifecycle-hooks.js +++ b/npm/private/lifecycle/lifecycle-hooks.js
@@ -54,13 +54,22 @@ bin = { [_package]: bin } } for (const binName of Object.keys(bin)) { + if (binName.includes('/') || binName.includes('\\')) { + // multi-segment bin names are not supported; pnpm itself + // also does not make .bin entries in this case as of pnpm v8.3.1 + continue + } const binPath = normalizeBinPath(bin[binName]) const binBash = `#!/usr/bin/env bash\nexec node "${path.join( ...segmentsUp, packageName, binPath )}" "$@"` - const binEntryPath = path.join(nodeModulesPath, '.bin', binName) + const binEntryPath = path.join( + nodeModulesPath, + '.bin', + binName + ) await fs.promises.writeFile(binEntryPath, binBash) await fs.promises.chmod(binEntryPath, '755') // executable }
diff --git a/npm/private/lifecycle/min/index.min.js b/npm/private/lifecycle/min/index.min.js index 900fa33..9397ad7 100644 --- a/npm/private/lifecycle/min/index.min.js +++ b/npm/private/lifecycle/min/index.min.js
@@ -61,4 +61,4 @@ * * Copyright © 2015-2018, Jon Schlinkert. * Released under the MIT License. - */(function(module,exports){(function(factory){if(exports&&"object"==="object"&&"object"!=="undefined"){module.exports=factory()}else if(typeof window!=="undefined"){window.isWindows=factory()}else if(typeof commonjsGlobal!=="undefined"){commonjsGlobal.isWindows=factory()}else if(typeof self!=="undefined"){self.isWindows=factory()}else{this.isWindows=factory()}})((function(){return function isWindows(){return process&&(process.platform==="win32"||/^(msys|cygwin)$/.test(process.env.OSTYPE))}}))})(isWindows$2,isWindows$2.exports);var isWindowsExports=isWindows$2.exports;var isPlainObj=value=>{if(Object.prototype.toString.call(value)!=="[object Object]"){return false}const prototype=Object.getPrototypeOf(value);return prototype===null||prototype===Object.prototype};const isPlainObject=isPlainObj;var sortKeys=(object,options={})=>{if(!isPlainObject(object)&&!Array.isArray(object)){throw new TypeError("Expected a plain object or array")}const{deep:deep}=options;const seenInput=[];const seenOutput=[];const deepSortArray=array=>{const seenIndex=seenInput.indexOf(array);if(seenIndex!==-1){return seenOutput[seenIndex]}const result=[];seenInput.push(array);seenOutput.push(result);result.push(...array.map((item=>{if(Array.isArray(item)){return deepSortArray(item)}if(isPlainObject(item)){return sortKeys(item)}return item})));return result};const sortKeys=object=>{const seenIndex=seenInput.indexOf(object);if(seenIndex!==-1){return seenOutput[seenIndex]}const result={};const keys=Object.keys(object).sort(options.compare);seenInput.push(object);seenOutput.push(result);for(const key of keys){const value=object[key];let newValue;if(deep&&Array.isArray(value)){newValue=deepSortArray(value)}else{newValue=deep&&isPlainObject(value)?sortKeys(value):value}Object.defineProperty(result,key,{...Object.getOwnPropertyDescriptor(object,key),value:newValue})}return result};if(Array.isArray(object)){return deep?deepSortArray(object):object.slice()}return sortKeys(object)};var readFile={};var lib$5={};var __importDefault$4=commonjsGlobal&&commonjsGlobal.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(lib$5,"__esModule",{value:true});const util_1=require$$0$2;const graceful_fs_1$1=__importDefault$4(gracefulFs);lib$5.default={createReadStream:graceful_fs_1$1.default.createReadStream,readFile:(0,util_1.promisify)(graceful_fs_1$1.default.readFile),writeFile:(0,util_1.promisify)(graceful_fs_1$1.default.writeFile)};var __importDefault$3=commonjsGlobal&&commonjsGlobal.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(readFile,"__esModule",{value:true});readFile.readJsonFile=readFile.readJson5File=void 0;const graceful_fs_1=__importDefault$3(lib$5);const json5_1=__importDefault$3(require$$1);const parse_json_1=__importDefault$3(parseJson_1);const strip_bom_1=__importDefault$3(stripBom$2);async function readJson5File(filePath){const text=await readFileWithoutBom(filePath);try{return{data:json5_1.default.parse(text),text:text}}catch(err){err.message=`${err.message} in ${filePath}`;err["code"]="ERR_PNPM_JSON5_PARSE";throw err}}readFile.readJson5File=readJson5File;async function readJsonFile(filePath){const text=await readFileWithoutBom(filePath);try{return{data:(0,parse_json_1.default)(text,filePath),text:text}}catch(err){err["code"]="ERR_PNPM_JSON_PARSE";throw err}}readFile.readJsonFile=readJsonFile;async function readFileWithoutBom(path){return(0,strip_bom_1.default)(await graceful_fs_1.default.readFile(path,"utf8"))}var __importDefault$2=commonjsGlobal&&commonjsGlobal.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(lib$a,"__esModule",{value:true});lib$a.readExactProjectManifest=lib$a.tryReadProjectManifest=lib$a.readProjectManifestOnly=lib$a.readProjectManifest=lib$a.safeReadProjectManifestOnly=void 0;const fs_1$2=require$$0$1;const path_1$2=__importDefault$2(require$$0$6);const error_1=lib$n;const text_comments_parser_1=lib$9;const write_project_manifest_1=lib$8;const read_yaml_file_1=__importDefault$2(readYamlFileExports);const detect_indent_1=__importDefault$2(detectIndent_1);const fast_deep_equal_1=__importDefault$2(fastDeepEqual);const is_windows_1=__importDefault$2(isWindowsExports);const sort_keys_1=__importDefault$2(sortKeys);const readFile_1=readFile;async function safeReadProjectManifestOnly(projectDir){try{return await readProjectManifestOnly(projectDir)}catch(err){if(err.code==="ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND"){return null}throw err}}lib$a.safeReadProjectManifestOnly=safeReadProjectManifestOnly;async function readProjectManifest(projectDir){const result=await tryReadProjectManifest(projectDir);if(result.manifest!==null){return result}throw new error_1.PnpmError("NO_IMPORTER_MANIFEST_FOUND",`No package.json (or package.yaml, or package.json5) was found in "${projectDir}".`)}lib$a.readProjectManifest=readProjectManifest;async function readProjectManifestOnly(projectDir){const{manifest:manifest}=await readProjectManifest(projectDir);return manifest}lib$a.readProjectManifestOnly=readProjectManifestOnly;async function tryReadProjectManifest(projectDir){try{const manifestPath=path_1$2.default.join(projectDir,"package.json");const{data:data,text:text}=await(0,readFile_1.readJsonFile)(manifestPath);return{fileName:"package.json",manifest:data,writeProjectManifest:createManifestWriter({...detectFileFormatting(text),initialManifest:data,manifestPath:manifestPath})}}catch(err){if(err.code!=="ENOENT")throw err}try{const manifestPath=path_1$2.default.join(projectDir,"package.json5");const{data:data,text:text}=await(0,readFile_1.readJson5File)(manifestPath);return{fileName:"package.json5",manifest:data,writeProjectManifest:createManifestWriter({...detectFileFormattingAndComments(text),initialManifest:data,manifestPath:manifestPath})}}catch(err){if(err.code!=="ENOENT")throw err}try{const manifestPath=path_1$2.default.join(projectDir,"package.yaml");const manifest=await readPackageYaml(manifestPath);return{fileName:"package.yaml",manifest:manifest,writeProjectManifest:createManifestWriter({initialManifest:manifest,manifestPath:manifestPath})}}catch(err){if(err.code!=="ENOENT")throw err}if((0,is_windows_1.default)()){let s;try{s=await fs_1$2.promises.stat(projectDir)}catch(err){}if(s!=null&&!s.isDirectory()){const err=new Error(`"${projectDir}" is not a directory`);err["code"]="ENOTDIR";throw err}}const filePath=path_1$2.default.join(projectDir,"package.json");return{fileName:"package.json",manifest:null,writeProjectManifest:async manifest=>(0,write_project_manifest_1.writeProjectManifest)(filePath,manifest)}}lib$a.tryReadProjectManifest=tryReadProjectManifest;function detectFileFormattingAndComments(text){const{comments:comments,text:newText,hasFinalNewline:hasFinalNewline}=(0,text_comments_parser_1.extractComments)(text);return{comments:comments,indent:(0,detect_indent_1.default)(newText).indent,insertFinalNewline:hasFinalNewline}}function detectFileFormatting(text){return{indent:(0,detect_indent_1.default)(text).indent,insertFinalNewline:text.endsWith("\n")}}async function readExactProjectManifest(manifestPath){const base=path_1$2.default.basename(manifestPath).toLowerCase();switch(base){case"package.json":{const{data:data,text:text}=await(0,readFile_1.readJsonFile)(manifestPath);return{manifest:data,writeProjectManifest:createManifestWriter({...detectFileFormatting(text),initialManifest:data,manifestPath:manifestPath})}}case"package.json5":{const{data:data,text:text}=await(0,readFile_1.readJson5File)(manifestPath);return{manifest:data,writeProjectManifest:createManifestWriter({...detectFileFormattingAndComments(text),initialManifest:data,manifestPath:manifestPath})}}case"package.yaml":{const manifest=await readPackageYaml(manifestPath);return{manifest:manifest,writeProjectManifest:createManifestWriter({initialManifest:manifest,manifestPath:manifestPath})}}}throw new Error(`Not supported manifest name "${base}"`)}lib$a.readExactProjectManifest=readExactProjectManifest;async function readPackageYaml(filePath){try{return await(0,read_yaml_file_1.default)(filePath)}catch(err){if(err.name!=="YAMLException")throw err;err.message=`${err.message}\nin ${filePath}`;err.code="ERR_PNPM_YAML_PARSE";throw err}}function createManifestWriter(opts){let initialManifest=normalize$1(opts.initialManifest);return async(updatedManifest,force)=>{updatedManifest=normalize$1(updatedManifest);if(force===true||!(0,fast_deep_equal_1.default)(initialManifest,updatedManifest)){await(0,write_project_manifest_1.writeProjectManifest)(opts.manifestPath,updatedManifest,{comments:opts.comments,indent:opts.indent,insertFinalNewline:opts.insertFinalNewline});initialManifest=normalize$1(updatedManifest);return Promise.resolve(undefined)}return Promise.resolve(undefined)}}const dependencyKeys=new Set(["dependencies","devDependencies","optionalDependencies","peerDependencies"]);function normalize$1(manifest){manifest=JSON.parse(JSON.stringify(manifest));const result={};for(const key of Object.keys(manifest)){if(!dependencyKeys.has(key)){result[key]=manifest[key]}else if(Object.keys(manifest[key]).length!==0){result[key]=(0,sort_keys_1.default)(manifest[key])}}return result}const{join:join,basename:basename}=require$$0$6;const normalize=pkg=>!pkg.bin?removeBin(pkg):typeof pkg.bin==="string"?normalizeString(pkg):Array.isArray(pkg.bin)?normalizeArray(pkg):typeof pkg.bin==="object"?normalizeObject(pkg):removeBin(pkg);const normalizeString=pkg=>{if(!pkg.name){return removeBin(pkg)}pkg.bin={[pkg.name]:pkg.bin};return normalizeObject(pkg)};const normalizeArray=pkg=>{pkg.bin=pkg.bin.reduce(((acc,k)=>{acc[basename(k)]=k;return acc}),{});return normalizeObject(pkg)};const removeBin=pkg=>{delete pkg.bin;return pkg};const normalizeObject=pkg=>{const orig=pkg.bin;const clean={};let hasBins=false;Object.keys(orig).forEach((binKey=>{const base=join("/",basename(binKey.replace(/\\|:/g,"/"))).slice(1);if(typeof orig[binKey]!=="string"||!base){return}const binTarget=join("/",orig[binKey]).replace(/\\/g,"/").slice(1);if(!binTarget){return}clean[base]=binTarget;hasBins=true}));if(hasBins){pkg.bin=clean}else{delete pkg.bin}return pkg};var lib$4=normalize;const fs$7=require$$0$1;const path$6=require$$0$6;const EE$1=require$$2$1.EventEmitter;const normalizePackageBin$1=lib$4;let BundleWalker$1=class BundleWalker extends EE$1{constructor(opt){opt=opt||{};super(opt);this.path=path$6.resolve(opt.path||process.cwd());this.parent=opt.parent||null;if(this.parent){this.result=this.parent.result;if(!this.parent.parent){const base=path$6.basename(this.path);const scope=path$6.basename(path$6.dirname(this.path));this.result.add(/^@/.test(scope)?scope+"/"+base:base)}this.root=this.parent.root;this.packageJsonCache=this.parent.packageJsonCache}else{this.result=new Set;this.root=this.path;this.packageJsonCache=opt.packageJsonCache||new Map}this.seen=new Set;this.didDone=false;this.children=0;this.node_modules=[];this.package=null;this.bundle=null}addListener(ev,fn){return this.on(ev,fn)}on(ev,fn){const ret=super.on(ev,fn);if(ev==="done"&&this.didDone){this.emit("done",this.result)}return ret}done(){if(!this.didDone){this.didDone=true;if(!this.parent){const res=Array.from(this.result);this.result=res;this.emit("done",res)}else{this.emit("done")}}}start(){const pj=path$6.resolve(this.path,"package.json");if(this.packageJsonCache.has(pj)){this.onPackage(this.packageJsonCache.get(pj))}else{this.readPackageJson(pj)}return this}readPackageJson(pj){fs$7.readFile(pj,((er,data)=>er?this.done():this.onPackageJson(pj,data)))}onPackageJson(pj,data){try{this.package=normalizePackageBin$1(JSON.parse(data+""))}catch(er){return this.done()}this.packageJsonCache.set(pj,this.package);this.onPackage(this.package)}allDepsBundled(pkg){return Object.keys(pkg.dependencies||{}).concat(Object.keys(pkg.optionalDependencies||{}))}onPackage(pkg){const bdRaw=this.parent?this.allDepsBundled(pkg):pkg.bundleDependencies||pkg.bundledDependencies||[];const bd=Array.from(new Set(Array.isArray(bdRaw)?bdRaw:bdRaw===true?this.allDepsBundled(pkg):Object.keys(bdRaw)));if(!bd.length){return this.done()}this.bundle=bd;this.readModules()}readModules(){readdirNodeModules(this.path+"/node_modules",((er,nm)=>er?this.onReaddir([]):this.onReaddir(nm)))}onReaddir(nm){this.node_modules=nm;this.bundle.forEach((dep=>this.childDep(dep)));if(this.children===0){this.done()}}childDep(dep){if(this.node_modules.indexOf(dep)!==-1){if(!this.seen.has(dep)){this.seen.add(dep);this.child(dep)}}else if(this.parent){this.parent.childDep(dep)}}child(dep){const p=this.path+"/node_modules/"+dep;this.children+=1;const child=new BundleWalker({path:p,parent:this});child.on("done",(_=>{if(--this.children===0){this.done()}}));child.start()}};class BundleWalkerSync extends BundleWalker$1{start(){super.start();this.done();return this}readPackageJson(pj){try{this.onPackageJson(pj,fs$7.readFileSync(pj))}catch{}return this}readModules(){try{this.onReaddir(readdirNodeModulesSync(this.path+"/node_modules"))}catch{this.onReaddir([])}}child(dep){new BundleWalkerSync({path:this.path+"/node_modules/"+dep,parent:this}).start()}}const readdirNodeModules=(nm,cb)=>{fs$7.readdir(nm,((er,set)=>{if(er){cb(er)}else{const scopes=set.filter((f=>/^@/.test(f)));if(!scopes.length){cb(null,set)}else{const unscoped=set.filter((f=>!/^@/.test(f)));let count=scopes.length;scopes.forEach((scope=>{fs$7.readdir(nm+"/"+scope,((readdirEr,pkgs)=>{if(readdirEr||!pkgs.length){unscoped.push(scope)}else{unscoped.push.apply(unscoped,pkgs.map((p=>scope+"/"+p)))}if(--count===0){cb(null,unscoped)}}))}))}}}))};const readdirNodeModulesSync=nm=>{const set=fs$7.readdirSync(nm);const unscoped=set.filter((f=>!/^@/.test(f)));const scopes=set.filter((f=>/^@/.test(f))).map((scope=>{try{const pkgs=fs$7.readdirSync(nm+"/"+scope);return pkgs.length?pkgs.map((p=>scope+"/"+p)):[scope]}catch(er){return[scope]}})).reduce(((a,b)=>a.concat(b)),[]);return unscoped.concat(scopes)};const walk$2=(options,callback)=>{const p=new Promise(((resolve,reject)=>{new BundleWalker$1(options).on("done",resolve).on("error",reject).start()}));return callback?p.then((res=>callback(null,res)),callback):p};const walkSync$1=options=>new BundleWalkerSync(options).start().result;var lib$3=walk$2;walk$2.sync=walkSync$1;walk$2.BundleWalker=BundleWalker$1;walk$2.BundleWalkerSync=BundleWalkerSync;const isWindows$1=typeof process==="object"&&process&&process.platform==="win32";var path$5=isWindows$1?{sep:"\\"}:{sep:"/"};var balancedMatch=balanced$1;function balanced$1(a,b,str){if(a instanceof RegExp)a=maybeMatch(a,str);if(b instanceof RegExp)b=maybeMatch(b,str);var r=range(a,b,str);return r&&{start:r[0],end:r[1],pre:str.slice(0,r[0]),body:str.slice(r[0]+a.length,r[1]),post:str.slice(r[1]+b.length)}}function maybeMatch(reg,str){var m=str.match(reg);return m?m[0]:null}balanced$1.range=range;function range(a,b,str){var begs,beg,left,right,result;var ai=str.indexOf(a);var bi=str.indexOf(b,ai+1);var i=ai;if(ai>=0&&bi>0){if(a===b){return[ai,bi]}begs=[];left=str.length;while(i>=0&&!result){if(i==ai){begs.push(i);ai=str.indexOf(a,i+1)}else if(begs.length==1){result=[begs.pop(),bi]}else{beg=begs.pop();if(beg<left){left=beg;right=bi}bi=str.indexOf(b,i+1)}i=ai<bi&&ai>=0?ai:bi}if(begs.length){result=[left,right]}}return result}var balanced=balancedMatch;var braceExpansion=expandTop;var escSlash="\0SLASH"+Math.random()+"\0";var escOpen="\0OPEN"+Math.random()+"\0";var escClose="\0CLOSE"+Math.random()+"\0";var escComma="\0COMMA"+Math.random()+"\0";var escPeriod="\0PERIOD"+Math.random()+"\0";function numeric(str){return parseInt(str,10)==str?parseInt(str,10):str.charCodeAt(0)}function escapeBraces(str){return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod)}function unescapeBraces(str){return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".")}function parseCommaParts(str){if(!str)return[""];var parts=[];var m=balanced("{","}",str);if(!m)return str.split(",");var pre=m.pre;var body=m.body;var post=m.post;var p=pre.split(",");p[p.length-1]+="{"+body+"}";var postParts=parseCommaParts(post);if(post.length){p[p.length-1]+=postParts.shift();p.push.apply(p,postParts)}parts.push.apply(parts,p);return parts}function expandTop(str){if(!str)return[];if(str.substr(0,2)==="{}"){str="\\{\\}"+str.substr(2)}return expand$1(escapeBraces(str),true).map(unescapeBraces)}function embrace(str){return"{"+str+"}"}function isPadded(el){return/^-?0\d/.test(el)}function lte(i,y){return i<=y}function gte(i,y){return i>=y}function expand$1(str,isTop){var expansions=[];var m=balanced("{","}",str);if(!m)return[str];var pre=m.pre;var post=m.post.length?expand$1(m.post,false):[""];if(/\$$/.test(m.pre)){for(var k=0;k<post.length;k++){var expansion=pre+"{"+m.body+"}"+post[k];expansions.push(expansion)}}else{var isNumericSequence=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);var isAlphaSequence=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);var isSequence=isNumericSequence||isAlphaSequence;var isOptions=m.body.indexOf(",")>=0;if(!isSequence&&!isOptions){if(m.post.match(/,.*\}/)){str=m.pre+"{"+m.body+escClose+m.post;return expand$1(str)}return[str]}var n;if(isSequence){n=m.body.split(/\.\./)}else{n=parseCommaParts(m.body);if(n.length===1){n=expand$1(n[0],false).map(embrace);if(n.length===1){return post.map((function(p){return m.pre+n[0]+p}))}}}var N;if(isSequence){var x=numeric(n[0]);var y=numeric(n[1]);var width=Math.max(n[0].length,n[1].length);var incr=n.length==3?Math.abs(numeric(n[2])):1;var test=lte;var reverse=y<x;if(reverse){incr*=-1;test=gte}var pad=n.some(isPadded);N=[];for(var i=x;test(i,y);i+=incr){var c;if(isAlphaSequence){c=String.fromCharCode(i);if(c==="\\")c=""}else{c=String(i);if(pad){var need=width-c.length;if(need>0){var z=new Array(need+1).join("0");if(i<0)c="-"+z+c.slice(1);else c=z+c}}}N.push(c)}}else{N=[];for(var j=0;j<n.length;j++){N.push.apply(N,expand$1(n[j],false))}}for(var j=0;j<N.length;j++){for(var k=0;k<post.length;k++){var expansion=pre+N[j]+post[k];if(!isTop||isSequence||expansion)expansions.push(expansion)}}}return expansions}const minimatch$1=minimatch_1=(p,pattern,options={})=>{assertValidPattern(pattern);if(!options.nocomment&&pattern.charAt(0)==="#"){return false}return new Minimatch$2(pattern,options).match(p)};var minimatch_1=minimatch$1;const path$4=path$5;minimatch$1.sep=path$4.sep;const GLOBSTAR=Symbol("globstar **");minimatch$1.GLOBSTAR=GLOBSTAR;const expand=braceExpansion;const plTypes={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const qmark="[^/]";const star=qmark+"*?";const twoStarDot="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const twoStarNoDot="(?:(?!(?:\\/|^)\\.).)*?";const charSet=s=>s.split("").reduce(((set,c)=>{set[c]=true;return set}),{});const reSpecials=charSet("().*{}+?[]^$\\!");const addPatternStartSet=charSet("[.(");const slashSplit=/\/+/;minimatch$1.filter=(pattern,options={})=>(p,i,list)=>minimatch$1(p,pattern,options);const ext=(a,b={})=>{const t={};Object.keys(a).forEach((k=>t[k]=a[k]));Object.keys(b).forEach((k=>t[k]=b[k]));return t};minimatch$1.defaults=def=>{if(!def||typeof def!=="object"||!Object.keys(def).length){return minimatch$1}const orig=minimatch$1;const m=(p,pattern,options)=>orig(p,pattern,ext(def,options));m.Minimatch=class Minimatch extends orig.Minimatch{constructor(pattern,options){super(pattern,ext(def,options))}};m.Minimatch.defaults=options=>orig.defaults(ext(def,options)).Minimatch;m.filter=(pattern,options)=>orig.filter(pattern,ext(def,options));m.defaults=options=>orig.defaults(ext(def,options));m.makeRe=(pattern,options)=>orig.makeRe(pattern,ext(def,options));m.braceExpand=(pattern,options)=>orig.braceExpand(pattern,ext(def,options));m.match=(list,pattern,options)=>orig.match(list,pattern,ext(def,options));return m};minimatch$1.braceExpand=(pattern,options)=>braceExpand(pattern,options);const braceExpand=(pattern,options={})=>{assertValidPattern(pattern);if(options.nobrace||!/\{(?:(?!\{).)*\}/.test(pattern)){return[pattern]}return expand(pattern)};const MAX_PATTERN_LENGTH=1024*64;const assertValidPattern=pattern=>{if(typeof pattern!=="string"){throw new TypeError("invalid pattern")}if(pattern.length>MAX_PATTERN_LENGTH){throw new TypeError("pattern is too long")}};const SUBPARSE=Symbol("subparse");minimatch$1.makeRe=(pattern,options)=>new Minimatch$2(pattern,options||{}).makeRe();minimatch$1.match=(list,pattern,options={})=>{const mm=new Minimatch$2(pattern,options);list=list.filter((f=>mm.match(f)));if(mm.options.nonull&&!list.length){list.push(pattern)}return list};const globUnescape=s=>s.replace(/\\(.)/g,"$1");const charUnescape=s=>s.replace(/\\([^-\]])/g,"$1");const regExpEscape=s=>s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=s=>s.replace(/[[\]\\]/g,"\\$&");let Minimatch$2=class Minimatch{constructor(pattern,options){assertValidPattern(pattern);if(!options)options={};this.options=options;this.set=[];this.pattern=pattern;this.windowsPathsNoEscape=!!options.windowsPathsNoEscape||options.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=!!options.partial;this.make()}debug(){}make(){const pattern=this.pattern;const options=this.options;if(!options.nocomment&&pattern.charAt(0)==="#"){this.comment=true;return}if(!pattern){this.empty=true;return}this.parseNegate();let set=this.globSet=this.braceExpand();if(options.debug)this.debug=(...args)=>console.error(...args);this.debug(this.pattern,set);set=this.globParts=set.map((s=>s.split(slashSplit)));this.debug(this.pattern,set);set=set.map(((s,si,set)=>s.map(this.parse,this)));this.debug(this.pattern,set);set=set.filter((s=>s.indexOf(false)===-1));this.debug(this.pattern,set);this.set=set}parseNegate(){if(this.options.nonegate)return;const pattern=this.pattern;let negate=false;let negateOffset=0;for(let i=0;i<pattern.length&&pattern.charAt(i)==="!";i++){negate=!negate;negateOffset++}if(negateOffset)this.pattern=pattern.slice(negateOffset);this.negate=negate}matchOne(file,pattern,partial){var options=this.options;this.debug("matchOne",{this:this,file:file,pattern:pattern});this.debug("matchOne",file.length,pattern.length);for(var fi=0,pi=0,fl=file.length,pl=pattern.length;fi<fl&&pi<pl;fi++,pi++){this.debug("matchOne loop");var p=pattern[pi];var f=file[fi];this.debug(pattern,p,f);if(p===false)return false;if(p===GLOBSTAR){this.debug("GLOBSTAR",[pattern,p,f]);var fr=fi;var pr=pi+1;if(pr===pl){this.debug("** at the end");for(;fi<fl;fi++){if(file[fi]==="."||file[fi]===".."||!options.dot&&file[fi].charAt(0)===".")return false}return true}while(fr<fl){var swallowee=file[fr];this.debug("\nglobstar while",file,fr,pattern,pr,swallowee);if(this.matchOne(file.slice(fr),pattern.slice(pr),partial)){this.debug("globstar found match!",fr,fl,swallowee);return true}else{if(swallowee==="."||swallowee===".."||!options.dot&&swallowee.charAt(0)==="."){this.debug("dot detected!",file,fr,pattern,pr);break}this.debug("globstar swallow a segment, and continue");fr++}}if(partial){this.debug("\n>>> no match, partial?",file,fr,pattern,pr);if(fr===fl)return true}return false}var hit;if(typeof p==="string"){hit=f===p;this.debug("string match",p,f,hit)}else{hit=f.match(p);this.debug("pattern match",p,f,hit)}if(!hit)return false}if(fi===fl&&pi===pl){return true}else if(fi===fl){return partial}else if(pi===pl){return fi===fl-1&&file[fi]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(pattern,isSub){assertValidPattern(pattern);const options=this.options;if(pattern==="**"){if(!options.noglobstar)return GLOBSTAR;else pattern="*"}if(pattern==="")return"";let re="";let hasMagic=false;let escaping=false;const patternListStack=[];const negativeLists=[];let stateChar;let inClass=false;let reClassStart=-1;let classStart=-1;let cs;let pl;let sp;let dotTravAllowed=pattern.charAt(0)===".";let dotFileAllowed=options.dot||dotTravAllowed;const patternStart=()=>dotTravAllowed?"":dotFileAllowed?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=p=>p.charAt(0)==="."?"":options.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(stateChar){switch(stateChar){case"*":re+=star;hasMagic=true;break;case"?":re+=qmark;hasMagic=true;break;default:re+="\\"+stateChar;break}this.debug("clearStateChar %j %j",stateChar,re);stateChar=false}};for(let i=0,c;i<pattern.length&&(c=pattern.charAt(i));i++){this.debug("%s\t%s %s %j",pattern,i,re,c);if(escaping){if(c==="/"){return false}if(reSpecials[c]){re+="\\"}re+=c;escaping=false;continue}switch(c){case"/":{return false}case"\\":if(inClass&&pattern.charAt(i+1)==="-"){re+=c;continue}clearStateChar();escaping=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",pattern,i,re,c);if(inClass){this.debug(" in class");if(c==="!"&&i===classStart+1)c="^";re+=c;continue}this.debug("call clearStateChar %j",stateChar);clearStateChar();stateChar=c;if(options.noext)clearStateChar();continue;case"(":{if(inClass){re+="(";continue}if(!stateChar){re+="\\(";continue}const plEntry={type:stateChar,start:i-1,reStart:re.length,open:plTypes[stateChar].open,close:plTypes[stateChar].close};this.debug(this.pattern,"\t",plEntry);patternListStack.push(plEntry);re+=plEntry.open;if(plEntry.start===0&&plEntry.type!=="!"){dotTravAllowed=true;re+=subPatternStart(pattern.slice(i+1))}this.debug("plType %j %j",stateChar,re);stateChar=false;continue}case")":{const plEntry=patternListStack[patternListStack.length-1];if(inClass||!plEntry){re+="\\)";continue}patternListStack.pop();clearStateChar();hasMagic=true;pl=plEntry;re+=pl.close;if(pl.type==="!"){negativeLists.push(Object.assign(pl,{reEnd:re.length}))}continue}case"|":{const plEntry=patternListStack[patternListStack.length-1];if(inClass||!plEntry){re+="\\|";continue}clearStateChar();re+="|";if(plEntry.start===0&&plEntry.type!=="!"){dotTravAllowed=true;re+=subPatternStart(pattern.slice(i+1))}continue}case"[":clearStateChar();if(inClass){re+="\\"+c;continue}inClass=true;classStart=i;reClassStart=re.length;re+=c;continue;case"]":if(i===classStart+1||!inClass){re+="\\"+c;continue}cs=pattern.substring(classStart+1,i);try{RegExp("["+braExpEscape(charUnescape(cs))+"]");re+=c}catch(er){re=re.substring(0,reClassStart)+"(?:$.)"}hasMagic=true;inClass=false;continue;default:clearStateChar();if(reSpecials[c]&&!(c==="^"&&inClass)){re+="\\"}re+=c;break}}if(inClass){cs=pattern.slice(classStart+1);sp=this.parse(cs,SUBPARSE);re=re.substring(0,reClassStart)+"\\["+sp[0];hasMagic=hasMagic||sp[1]}for(pl=patternListStack.pop();pl;pl=patternListStack.pop()){let tail;tail=re.slice(pl.reStart+pl.open.length);this.debug("setting tail",re,pl);tail=tail.replace(/((?:\\{2}){0,64})(\\?)\|/g,((_,$1,$2)=>{if(!$2){$2="\\"}return $1+$1+$2+"|"}));this.debug("tail=%j\n %s",tail,tail,pl,re);const t=pl.type==="*"?star:pl.type==="?"?qmark:"\\"+pl.type;hasMagic=true;re=re.slice(0,pl.reStart)+t+"\\("+tail}clearStateChar();if(escaping){re+="\\\\"}const addPatternStart=addPatternStartSet[re.charAt(0)];for(let n=negativeLists.length-1;n>-1;n--){const nl=negativeLists[n];const nlBefore=re.slice(0,nl.reStart);const nlFirst=re.slice(nl.reStart,nl.reEnd-8);let nlAfter=re.slice(nl.reEnd);const nlLast=re.slice(nl.reEnd-8,nl.reEnd)+nlAfter;const closeParensBefore=nlBefore.split(")").length;const openParensBefore=nlBefore.split("(").length-closeParensBefore;let cleanAfter=nlAfter;for(let i=0;i<openParensBefore;i++){cleanAfter=cleanAfter.replace(/\)[+*?]?/,"")}nlAfter=cleanAfter;const dollar=nlAfter===""&&isSub!==SUBPARSE?"(?:$|\\/)":"";re=nlBefore+nlFirst+nlAfter+dollar+nlLast}if(re!==""&&hasMagic){re="(?=.)"+re}if(addPatternStart){re=patternStart()+re}if(isSub===SUBPARSE){return[re,hasMagic]}if(options.nocase&&!hasMagic){hasMagic=pattern.toUpperCase()!==pattern.toLowerCase()}if(!hasMagic){return globUnescape(pattern)}const flags=options.nocase?"i":"";try{return Object.assign(new RegExp("^"+re+"$",flags),{_glob:pattern,_src:re})}catch(er){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const set=this.set;if(!set.length){this.regexp=false;return this.regexp}const options=this.options;const twoStar=options.noglobstar?star:options.dot?twoStarDot:twoStarNoDot;const flags=options.nocase?"i":"";let re=set.map((pattern=>{pattern=pattern.map((p=>typeof p==="string"?regExpEscape(p):p===GLOBSTAR?GLOBSTAR:p._src)).reduce(((set,p)=>{if(!(set[set.length-1]===GLOBSTAR&&p===GLOBSTAR)){set.push(p)}return set}),[]);pattern.forEach(((p,i)=>{if(p!==GLOBSTAR||pattern[i-1]===GLOBSTAR){return}if(i===0){if(pattern.length>1){pattern[i+1]="(?:\\/|"+twoStar+"\\/)?"+pattern[i+1]}else{pattern[i]=twoStar}}else if(i===pattern.length-1){pattern[i-1]+="(?:\\/|"+twoStar+")?"}else{pattern[i-1]+="(?:\\/|\\/"+twoStar+"\\/)"+pattern[i+1];pattern[i+1]=GLOBSTAR}}));return pattern.filter((p=>p!==GLOBSTAR)).join("/")})).join("|");re="^(?:"+re+")$";if(this.negate)re="^(?!"+re+").*$";try{this.regexp=new RegExp(re,flags)}catch(ex){this.regexp=false}return this.regexp}match(f,partial=this.partial){this.debug("match",f,this.pattern);if(this.comment)return false;if(this.empty)return f==="";if(f==="/"&&partial)return true;const options=this.options;if(path$4.sep!=="/"){f=f.split(path$4.sep).join("/")}f=f.split(slashSplit);this.debug(this.pattern,"split",f);const set=this.set;this.debug(this.pattern,"set",set);let filename;for(let i=f.length-1;i>=0;i--){filename=f[i];if(filename)break}for(let i=0;i<set.length;i++){const pattern=set[i];let file=f;if(options.matchBase&&pattern.length===1){file=[filename]}const hit=this.matchOne(file,pattern,partial);if(hit){if(options.flipNegate)return true;return!this.negate}}if(options.flipNegate)return false;return this.negate}static defaults(def){return minimatch$1.defaults(def).Minimatch}};minimatch$1.Minimatch=Minimatch$2;const fs$6=require$$0$1;const path$3=require$$0$6;const EE=require$$2$1.EventEmitter;const Minimatch$1=minimatch_1.Minimatch;let Walker$1=class Walker extends EE{constructor(opts){opts=opts||{};super(opts);this.isSymbolicLink=opts.isSymbolicLink;this.path=opts.path||process.cwd();this.basename=path$3.basename(this.path);this.ignoreFiles=opts.ignoreFiles||[".ignore"];this.ignoreRules={};this.parent=opts.parent||null;this.includeEmpty=!!opts.includeEmpty;this.root=this.parent?this.parent.root:this.path;this.follow=!!opts.follow;this.result=this.parent?this.parent.result:new Set;this.entries=null;this.sawError=false}sort(a,b){return a.localeCompare(b,"en")}emit(ev,data){let ret=false;if(!(this.sawError&&ev==="error")){if(ev==="error"){this.sawError=true}else if(ev==="done"&&!this.parent){data=Array.from(data).map((e=>/^@/.test(e)?`./${e}`:e)).sort(this.sort);this.result=data}if(ev==="error"&&this.parent){ret=this.parent.emit("error",data)}else{ret=super.emit(ev,data)}}return ret}start(){fs$6.readdir(this.path,((er,entries)=>er?this.emit("error",er):this.onReaddir(entries)));return this}isIgnoreFile(e){return e!=="."&&e!==".."&&this.ignoreFiles.indexOf(e)!==-1}onReaddir(entries){this.entries=entries;if(entries.length===0){if(this.includeEmpty){this.result.add(this.path.slice(this.root.length+1))}this.emit("done",this.result)}else{const hasIg=this.entries.some((e=>this.isIgnoreFile(e)));if(hasIg){this.addIgnoreFiles()}else{this.filterEntries()}}}addIgnoreFiles(){const newIg=this.entries.filter((e=>this.isIgnoreFile(e)));let igCount=newIg.length;const then=_=>{if(--igCount===0){this.filterEntries()}};newIg.forEach((e=>this.addIgnoreFile(e,then)))}addIgnoreFile(file,then){const ig=path$3.resolve(this.path,file);fs$6.readFile(ig,"utf8",((er,data)=>er?this.emit("error",er):this.onReadIgnoreFile(file,data,then)))}onReadIgnoreFile(file,data,then){const mmopt={matchBase:true,dot:true,flipNegate:true,nocase:true};const rules=data.split(/\r?\n/).filter((line=>!/^#|^$/.test(line.trim()))).map((rule=>new Minimatch$1(rule.trim(),mmopt)));this.ignoreRules[file]=rules;then()}filterEntries(){const filtered=this.entries.map((entry=>{const passFile=this.filterEntry(entry);const passDir=this.filterEntry(entry,true);return passFile||passDir?[entry,passFile,passDir]:false})).filter((e=>e));let entryCount=filtered.length;if(entryCount===0){this.emit("done",this.result)}else{const then=_=>{if(--entryCount===0){this.emit("done",this.result)}};filtered.forEach((filt=>{const entry=filt[0];const file=filt[1];const dir=filt[2];this.stat({entry:entry,file:file,dir:dir},then)}))}}onstat({st:st,entry:entry,file:file,dir:dir,isSymbolicLink:isSymbolicLink},then){const abs=this.path+"/"+entry;if(!st.isDirectory()){if(file){this.result.add(abs.slice(this.root.length+1))}then()}else{if(dir){this.walker(entry,{isSymbolicLink:isSymbolicLink},then)}else{then()}}}stat({entry:entry,file:file,dir:dir},then){const abs=this.path+"/"+entry;fs$6.lstat(abs,((lstatErr,lstatResult)=>{if(lstatErr){this.emit("error",lstatErr)}else{const isSymbolicLink=lstatResult.isSymbolicLink();if(this.follow&&isSymbolicLink){fs$6.stat(abs,((statErr,statResult)=>{if(statErr){this.emit("error",statErr)}else{this.onstat({st:statResult,entry:entry,file:file,dir:dir,isSymbolicLink:isSymbolicLink},then)}}))}else{this.onstat({st:lstatResult,entry:entry,file:file,dir:dir,isSymbolicLink:isSymbolicLink},then)}}}))}walkerOpt(entry,opts){return{path:this.path+"/"+entry,parent:this,ignoreFiles:this.ignoreFiles,follow:this.follow,includeEmpty:this.includeEmpty,...opts}}walker(entry,opts,then){new Walker(this.walkerOpt(entry,opts)).on("done",then).start()}filterEntry(entry,partial){let included=true;if(this.parent&&this.parent.filterEntry){var pt=this.basename+"/"+entry;included=this.parent.filterEntry(pt,partial)}this.ignoreFiles.forEach((f=>{if(this.ignoreRules[f]){this.ignoreRules[f].forEach((rule=>{if(rule.negate!==included){const match=rule.match("/"+entry)||rule.match(entry)||!!partial&&(rule.match("/"+entry+"/")||rule.match(entry+"/"))||!!partial&&rule.negate&&(rule.match("/"+entry,true)||rule.match(entry,true));if(match){included=rule.negate}}}))}}));return included}};class WalkerSync extends Walker$1{start(){this.onReaddir(fs$6.readdirSync(this.path));return this}addIgnoreFile(file,then){const ig=path$3.resolve(this.path,file);this.onReadIgnoreFile(file,fs$6.readFileSync(ig,"utf8"),then)}stat({entry:entry,file:file,dir:dir},then){const abs=this.path+"/"+entry;let st=fs$6.lstatSync(abs);const isSymbolicLink=st.isSymbolicLink();if(this.follow&&isSymbolicLink){st=fs$6.statSync(abs)}this.onstat({st:st,entry:entry,file:file,dir:dir,isSymbolicLink:isSymbolicLink},then)}walker(entry,opts,then){new WalkerSync(this.walkerOpt(entry,opts)).start();then()}}const walk$1=(opts,callback)=>{const p=new Promise(((resolve,reject)=>{new Walker$1(opts).on("done",resolve).on("error",reject).start()}));return callback?p.then((res=>callback(null,res)),callback):p};const walkSync=opts=>new WalkerSync(opts).start().result;var lib$2=walk$1;walk$1.sync=walkSync;walk$1.Walker=Walker$1;walk$1.WalkerSync=WalkerSync;var old$1={};var pathModule=require$$0$6;var isWindows=process.platform==="win32";var fs$5=require$$0$1;var DEBUG=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var callback;if(DEBUG){var backtrace=new Error;callback=debugCallback}else callback=missingCallback;return callback;function debugCallback(err){if(err){backtrace.message=err.message;err=backtrace;missingCallback(err)}}function missingCallback(err){if(err){if(process.throwDeprecation)throw err;else if(!process.noDeprecation){var msg="fs: missing callback "+(err.stack||err.message);if(process.traceDeprecation)console.trace(msg);else console.error(msg)}}}}function maybeCallback(cb){return typeof cb==="function"?cb:rethrow()}pathModule.normalize;if(isWindows){var nextPartRe=/(.*?)(?:[\/\\]+|$)/g}else{var nextPartRe=/(.*?)(?:[\/]+|$)/g}if(isWindows){var splitRootRe=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var splitRootRe=/^[\/]*/}old$1.realpathSync=function realpathSync(p,cache){p=pathModule.resolve(p);if(cache&&Object.prototype.hasOwnProperty.call(cache,p)){return cache[p]}var original=p,seenLinks={},knownHard={};var pos;var current;var base;var previous;start();function start(){var m=splitRootRe.exec(p);pos=m[0].length;current=m[0];base=m[0];previous="";if(isWindows&&!knownHard[base]){fs$5.lstatSync(base);knownHard[base]=true}}while(pos<p.length){nextPartRe.lastIndex=pos;var result=nextPartRe.exec(p);previous=current;current+=result[0];base=previous+result[1];pos=nextPartRe.lastIndex;if(knownHard[base]||cache&&cache[base]===base){continue}var resolvedLink;if(cache&&Object.prototype.hasOwnProperty.call(cache,base)){resolvedLink=cache[base]}else{var stat=fs$5.lstatSync(base);if(!stat.isSymbolicLink()){knownHard[base]=true;if(cache)cache[base]=base;continue}var linkTarget=null;if(!isWindows){var id=stat.dev.toString(32)+":"+stat.ino.toString(32);if(seenLinks.hasOwnProperty(id)){linkTarget=seenLinks[id]}}if(linkTarget===null){fs$5.statSync(base);linkTarget=fs$5.readlinkSync(base)}resolvedLink=pathModule.resolve(previous,linkTarget);if(cache)cache[base]=resolvedLink;if(!isWindows)seenLinks[id]=linkTarget}p=pathModule.resolve(resolvedLink,p.slice(pos));start()}if(cache)cache[original]=p;return p};old$1.realpath=function realpath(p,cache,cb){if(typeof cb!=="function"){cb=maybeCallback(cache);cache=null}p=pathModule.resolve(p);if(cache&&Object.prototype.hasOwnProperty.call(cache,p)){return process.nextTick(cb.bind(null,null,cache[p]))}var original=p,seenLinks={},knownHard={};var pos;var current;var base;var previous;start();function start(){var m=splitRootRe.exec(p);pos=m[0].length;current=m[0];base=m[0];previous="";if(isWindows&&!knownHard[base]){fs$5.lstat(base,(function(err){if(err)return cb(err);knownHard[base]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(pos>=p.length){if(cache)cache[original]=p;return cb(null,p)}nextPartRe.lastIndex=pos;var result=nextPartRe.exec(p);previous=current;current+=result[0];base=previous+result[1];pos=nextPartRe.lastIndex;if(knownHard[base]||cache&&cache[base]===base){return process.nextTick(LOOP)}if(cache&&Object.prototype.hasOwnProperty.call(cache,base)){return gotResolvedLink(cache[base])}return fs$5.lstat(base,gotStat)}function gotStat(err,stat){if(err)return cb(err);if(!stat.isSymbolicLink()){knownHard[base]=true;if(cache)cache[base]=base;return process.nextTick(LOOP)}if(!isWindows){var id=stat.dev.toString(32)+":"+stat.ino.toString(32);if(seenLinks.hasOwnProperty(id)){return gotTarget(null,seenLinks[id],base)}}fs$5.stat(base,(function(err){if(err)return cb(err);fs$5.readlink(base,(function(err,target){if(!isWindows)seenLinks[id]=target;gotTarget(err,target)}))}))}function gotTarget(err,target,base){if(err)return cb(err);var resolvedLink=pathModule.resolve(previous,target);if(cache)cache[base]=resolvedLink;gotResolvedLink(resolvedLink)}function gotResolvedLink(resolvedLink){p=pathModule.resolve(resolvedLink,p.slice(pos));start()}};var fs_realpath=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var fs$4=require$$0$1;var origRealpath=fs$4.realpath;var origRealpathSync=fs$4.realpathSync;var version=process.version;var ok=/^v[0-5]\./.test(version);var old=old$1;function newError(er){return er&&er.syscall==="realpath"&&(er.code==="ELOOP"||er.code==="ENOMEM"||er.code==="ENAMETOOLONG")}function realpath(p,cache,cb){if(ok){return origRealpath(p,cache,cb)}if(typeof cache==="function"){cb=cache;cache=null}origRealpath(p,cache,(function(er,result){if(newError(er)){old.realpath(p,cache,cb)}else{cb(er,result)}}))}function realpathSync(p,cache){if(ok){return origRealpathSync(p,cache)}try{return origRealpathSync(p,cache)}catch(er){if(newError(er)){return old.realpathSync(p,cache)}else{throw er}}}function monkeypatch(){fs$4.realpath=realpath;fs$4.realpathSync=realpathSync}function unmonkeypatch(){fs$4.realpath=origRealpath;fs$4.realpathSync=origRealpathSync}var inherits={exports:{}};var inherits_browser={exports:{}};var hasRequiredInherits_browser;function requireInherits_browser(){if(hasRequiredInherits_browser)return inherits_browser.exports;hasRequiredInherits_browser=1;if(typeof Object.create==="function"){inherits_browser.exports=function inherits(ctor,superCtor){if(superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}})}}}else{inherits_browser.exports=function inherits(ctor,superCtor){if(superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}}}return inherits_browser.exports}try{var util=require("util");if(typeof util.inherits!=="function")throw"";inherits.exports=util.inherits}catch(e){inherits.exports=requireInherits_browser()}var inheritsExports=inherits.exports;var common={};common.setopts=setopts;common.ownProp=ownProp;common.makeAbs=makeAbs;common.finish=finish;common.mark=mark;common.isIgnored=isIgnored;common.childrenIgnored=childrenIgnored;function ownProp(obj,field){return Object.prototype.hasOwnProperty.call(obj,field)}var fs$3=require$$0$1;var path$2=require$$0$6;var minimatch=minimatch_1;var isAbsolute=require$$0$6.isAbsolute;var Minimatch=minimatch.Minimatch;function alphasort(a,b){return a.localeCompare(b,"en")}function setupIgnores(self,options){self.ignore=options.ignore||[];if(!Array.isArray(self.ignore))self.ignore=[self.ignore];if(self.ignore.length){self.ignore=self.ignore.map(ignoreMap)}}function ignoreMap(pattern){var gmatcher=null;if(pattern.slice(-3)==="/**"){var gpattern=pattern.replace(/(\/\*\*)+$/,"");gmatcher=new Minimatch(gpattern,{dot:true})}return{matcher:new Minimatch(pattern,{dot:true}),gmatcher:gmatcher}}function setopts(self,pattern,options){if(!options)options={};if(options.matchBase&&-1===pattern.indexOf("/")){if(options.noglobstar){throw new Error("base matching requires globstar")}pattern="**/"+pattern}self.windowsPathsNoEscape=!!options.windowsPathsNoEscape||options.allowWindowsEscape===false;if(self.windowsPathsNoEscape){pattern=pattern.replace(/\\/g,"/")}self.silent=!!options.silent;self.pattern=pattern;self.strict=options.strict!==false;self.realpath=!!options.realpath;self.realpathCache=options.realpathCache||Object.create(null);self.follow=!!options.follow;self.dot=!!options.dot;self.mark=!!options.mark;self.nodir=!!options.nodir;if(self.nodir)self.mark=true;self.sync=!!options.sync;self.nounique=!!options.nounique;self.nonull=!!options.nonull;self.nosort=!!options.nosort;self.nocase=!!options.nocase;self.stat=!!options.stat;self.noprocess=!!options.noprocess;self.absolute=!!options.absolute;self.fs=options.fs||fs$3;self.maxLength=options.maxLength||Infinity;self.cache=options.cache||Object.create(null);self.statCache=options.statCache||Object.create(null);self.symlinks=options.symlinks||Object.create(null);setupIgnores(self,options);self.changedCwd=false;var cwd=process.cwd();if(!ownProp(options,"cwd"))self.cwd=path$2.resolve(cwd);else{self.cwd=path$2.resolve(options.cwd);self.changedCwd=self.cwd!==cwd}self.root=options.root||path$2.resolve(self.cwd,"/");self.root=path$2.resolve(self.root);self.cwdAbs=isAbsolute(self.cwd)?self.cwd:makeAbs(self,self.cwd);self.nomount=!!options.nomount;if(process.platform==="win32"){self.root=self.root.replace(/\\/g,"/");self.cwd=self.cwd.replace(/\\/g,"/");self.cwdAbs=self.cwdAbs.replace(/\\/g,"/")}options.nonegate=true;options.nocomment=true;self.minimatch=new Minimatch(pattern,options);self.options=self.minimatch.options}function finish(self){var nou=self.nounique;var all=nou?[]:Object.create(null);for(var i=0,l=self.matches.length;i<l;i++){var matches=self.matches[i];if(!matches||Object.keys(matches).length===0){if(self.nonull){var literal=self.minimatch.globSet[i];if(nou)all.push(literal);else all[literal]=true}}else{var m=Object.keys(matches);if(nou)all.push.apply(all,m);else m.forEach((function(m){all[m]=true}))}}if(!nou)all=Object.keys(all);if(!self.nosort)all=all.sort(alphasort);if(self.mark){for(var i=0;i<all.length;i++){all[i]=self._mark(all[i])}if(self.nodir){all=all.filter((function(e){var notDir=!/\/$/.test(e);var c=self.cache[e]||self.cache[makeAbs(self,e)];if(notDir&&c)notDir=c!=="DIR"&&!Array.isArray(c);return notDir}))}}if(self.ignore.length)all=all.filter((function(m){return!isIgnored(self,m)}));self.found=all}function mark(self,p){var abs=makeAbs(self,p);var c=self.cache[abs];var m=p;if(c){var isDir=c==="DIR"||Array.isArray(c);var slash=p.slice(-1)==="/";if(isDir&&!slash)m+="/";else if(!isDir&&slash)m=m.slice(0,-1);if(m!==p){var mabs=makeAbs(self,m);self.statCache[mabs]=self.statCache[abs];self.cache[mabs]=self.cache[abs]}}return m}function makeAbs(self,f){var abs=f;if(f.charAt(0)==="/"){abs=path$2.join(self.root,f)}else if(isAbsolute(f)||f===""){abs=f}else if(self.changedCwd){abs=path$2.resolve(self.cwd,f)}else{abs=path$2.resolve(f)}if(process.platform==="win32")abs=abs.replace(/\\/g,"/");return abs}function isIgnored(self,path){if(!self.ignore.length)return false;return self.ignore.some((function(item){return item.matcher.match(path)||!!(item.gmatcher&&item.gmatcher.match(path))}))}function childrenIgnored(self,path){if(!self.ignore.length)return false;return self.ignore.some((function(item){return!!(item.gmatcher&&item.gmatcher.match(path))}))}var sync;var hasRequiredSync;function requireSync(){if(hasRequiredSync)return sync;hasRequiredSync=1;sync=globSync;globSync.GlobSync=GlobSync;var rp=fs_realpath;var minimatch=minimatch_1;minimatch.Minimatch;requireGlob().Glob;var path=require$$0$6;var assert=require$$5;var isAbsolute=require$$0$6.isAbsolute;var common$1=common;var setopts=common$1.setopts;var ownProp=common$1.ownProp;var childrenIgnored=common$1.childrenIgnored;var isIgnored=common$1.isIgnored;function globSync(pattern,options){if(typeof options==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(pattern,options).found}function GlobSync(pattern,options){if(!pattern)throw new Error("must provide pattern");if(typeof options==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(pattern,options);setopts(this,pattern,options);if(this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var i=0;i<n;i++){this._process(this.minimatch.set[i],i,false)}this._finish()}GlobSync.prototype._finish=function(){assert.ok(this instanceof GlobSync);if(this.realpath){var self=this;this.matches.forEach((function(matchset,index){var set=self.matches[index]=Object.create(null);for(var p in matchset){try{p=self._makeAbs(p);var real=rp.realpathSync(p,self.realpathCache);set[real]=true}catch(er){if(er.syscall==="stat")set[self._makeAbs(p)]=true;else throw er}}}))}common$1.finish(this)};GlobSync.prototype._process=function(pattern,index,inGlobStar){assert.ok(this instanceof GlobSync);var n=0;while(typeof pattern[n]==="string"){n++}var prefix;switch(n){case pattern.length:this._processSimple(pattern.join("/"),index);return;case 0:prefix=null;break;default:prefix=pattern.slice(0,n).join("/");break}var remain=pattern.slice(n);var read;if(prefix===null)read=".";else if(isAbsolute(prefix)||isAbsolute(pattern.map((function(p){return typeof p==="string"?p:"[*]"})).join("/"))){if(!prefix||!isAbsolute(prefix))prefix="/"+prefix;read=prefix}else read=prefix;var abs=this._makeAbs(read);if(childrenIgnored(this,read))return;var isGlobStar=remain[0]===minimatch.GLOBSTAR;if(isGlobStar)this._processGlobStar(prefix,read,abs,remain,index,inGlobStar);else this._processReaddir(prefix,read,abs,remain,index,inGlobStar)};GlobSync.prototype._processReaddir=function(prefix,read,abs,remain,index,inGlobStar){var entries=this._readdir(abs,inGlobStar);if(!entries)return;var pn=remain[0];var negate=!!this.minimatch.negate;var rawGlob=pn._glob;var dotOk=this.dot||rawGlob.charAt(0)===".";var matchedEntries=[];for(var i=0;i<entries.length;i++){var e=entries[i];if(e.charAt(0)!=="."||dotOk){var m;if(negate&&!prefix){m=!e.match(pn)}else{m=e.match(pn)}if(m)matchedEntries.push(e)}}var len=matchedEntries.length;if(len===0)return;if(remain.length===1&&!this.mark&&!this.stat){if(!this.matches[index])this.matches[index]=Object.create(null);for(var i=0;i<len;i++){var e=matchedEntries[i];if(prefix){if(prefix.slice(-1)!=="/")e=prefix+"/"+e;else e=prefix+e}if(e.charAt(0)==="/"&&!this.nomount){e=path.join(this.root,e)}this._emitMatch(index,e)}return}remain.shift();for(var i=0;i<len;i++){var e=matchedEntries[i];var newPattern;if(prefix)newPattern=[prefix,e];else newPattern=[e];this._process(newPattern.concat(remain),index,inGlobStar)}};GlobSync.prototype._emitMatch=function(index,e){if(isIgnored(this,e))return;var abs=this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute){e=abs}if(this.matches[index][e])return;if(this.nodir){var c=this.cache[abs];if(c==="DIR"||Array.isArray(c))return}this.matches[index][e]=true;if(this.stat)this._stat(e)};GlobSync.prototype._readdirInGlobStar=function(abs){if(this.follow)return this._readdir(abs,false);var entries;var lstat;try{lstat=this.fs.lstatSync(abs)}catch(er){if(er.code==="ENOENT"){return null}}var isSym=lstat&&lstat.isSymbolicLink();this.symlinks[abs]=isSym;if(!isSym&&lstat&&!lstat.isDirectory())this.cache[abs]="FILE";else entries=this._readdir(abs,false);return entries};GlobSync.prototype._readdir=function(abs,inGlobStar){if(inGlobStar&&!ownProp(this.symlinks,abs))return this._readdirInGlobStar(abs);if(ownProp(this.cache,abs)){var c=this.cache[abs];if(!c||c==="FILE")return null;if(Array.isArray(c))return c}try{return this._readdirEntries(abs,this.fs.readdirSync(abs))}catch(er){this._readdirError(abs,er);return null}};GlobSync.prototype._readdirEntries=function(abs,entries){if(!this.mark&&!this.stat){for(var i=0;i<entries.length;i++){var e=entries[i];if(abs==="/")e=abs+e;else e=abs+"/"+e;this.cache[e]=true}}this.cache[abs]=entries;return entries};GlobSync.prototype._readdirError=function(f,er){switch(er.code){case"ENOTSUP":case"ENOTDIR":var abs=this._makeAbs(f);this.cache[abs]="FILE";if(abs===this.cwdAbs){var error=new Error(er.code+" invalid cwd "+this.cwd);error.path=this.cwd;error.code=er.code;throw error}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(f)]=false;break;default:this.cache[this._makeAbs(f)]=false;if(this.strict)throw er;if(!this.silent)console.error("glob error",er);break}};GlobSync.prototype._processGlobStar=function(prefix,read,abs,remain,index,inGlobStar){var entries=this._readdir(abs,inGlobStar);if(!entries)return;var remainWithoutGlobStar=remain.slice(1);var gspref=prefix?[prefix]:[];var noGlobStar=gspref.concat(remainWithoutGlobStar);this._process(noGlobStar,index,false);var len=entries.length;var isSym=this.symlinks[abs];if(isSym&&inGlobStar)return;for(var i=0;i<len;i++){var e=entries[i];if(e.charAt(0)==="."&&!this.dot)continue;var instead=gspref.concat(entries[i],remainWithoutGlobStar);this._process(instead,index,true);var below=gspref.concat(entries[i],remain);this._process(below,index,true)}};GlobSync.prototype._processSimple=function(prefix,index){var exists=this._stat(prefix);if(!this.matches[index])this.matches[index]=Object.create(null);if(!exists)return;if(prefix&&isAbsolute(prefix)&&!this.nomount){var trail=/[\/\\]$/.test(prefix);if(prefix.charAt(0)==="/"){prefix=path.join(this.root,prefix)}else{prefix=path.resolve(this.root,prefix);if(trail)prefix+="/"}}if(process.platform==="win32")prefix=prefix.replace(/\\/g,"/");this._emitMatch(index,prefix)};GlobSync.prototype._stat=function(f){var abs=this._makeAbs(f);var needDir=f.slice(-1)==="/";if(f.length>this.maxLength)return false;if(!this.stat&&ownProp(this.cache,abs)){var c=this.cache[abs];if(Array.isArray(c))c="DIR";if(!needDir||c==="DIR")return c;if(needDir&&c==="FILE")return false}var stat=this.statCache[abs];if(!stat){var lstat;try{lstat=this.fs.lstatSync(abs)}catch(er){if(er&&(er.code==="ENOENT"||er.code==="ENOTDIR")){this.statCache[abs]=false;return false}}if(lstat&&lstat.isSymbolicLink()){try{stat=this.fs.statSync(abs)}catch(er){stat=lstat}}else{stat=lstat}}this.statCache[abs]=stat;var c=true;if(stat)c=stat.isDirectory()?"DIR":"FILE";this.cache[abs]=this.cache[abs]||c;if(needDir&&c==="FILE")return false;return c};GlobSync.prototype._mark=function(p){return common$1.mark(this,p)};GlobSync.prototype._makeAbs=function(f){return common$1.makeAbs(this,f)};return sync}var wrappy_1=wrappy$2;function wrappy$2(fn,cb){if(fn&&cb)return wrappy$2(fn)(cb);if(typeof fn!=="function")throw new TypeError("need wrapper function");Object.keys(fn).forEach((function(k){wrapper[k]=fn[k]}));return wrapper;function wrapper(){var args=new Array(arguments.length);for(var i=0;i<args.length;i++){args[i]=arguments[i]}var ret=fn.apply(this,args);var cb=args[args.length-1];if(typeof ret==="function"&&ret!==cb){Object.keys(cb).forEach((function(k){ret[k]=cb[k]}))}return ret}}var once$2={exports:{}};var wrappy$1=wrappy_1;once$2.exports=wrappy$1(once$1);once$2.exports.strict=wrappy$1(onceStrict);once$1.proto=once$1((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once$1(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once$1(fn){var f=function(){if(f.called)return f.value;f.called=true;return f.value=fn.apply(this,arguments)};f.called=false;return f}function onceStrict(fn){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=fn.apply(this,arguments)};var name=fn.name||"Function wrapped with `once`";f.onceError=name+" shouldn't be called more than once";f.called=false;return f}var onceExports=once$2.exports;var wrappy=wrappy_1;var reqs=Object.create(null);var once=onceExports;var inflight_1=wrappy(inflight);function inflight(key,cb){if(reqs[key]){reqs[key].push(cb);return null}else{reqs[key]=[cb];return makeres(key)}}function makeres(key){return once((function RES(){var cbs=reqs[key];var len=cbs.length;var args=slice(arguments);try{for(var i=0;i<len;i++){cbs[i].apply(null,args)}}finally{if(cbs.length>len){cbs.splice(0,len);process.nextTick((function(){RES.apply(null,args)}))}else{delete reqs[key]}}}))}function slice(args){var length=args.length;var array=[];for(var i=0;i<length;i++)array[i]=args[i];return array}var glob_1;var hasRequiredGlob;function requireGlob(){if(hasRequiredGlob)return glob_1;hasRequiredGlob=1;glob_1=glob;var rp=fs_realpath;var minimatch=minimatch_1;minimatch.Minimatch;var inherits=inheritsExports;var EE=require$$2$1.EventEmitter;var path=require$$0$6;var assert=require$$5;var isAbsolute=require$$0$6.isAbsolute;var globSync=requireSync();var common$1=common;var setopts=common$1.setopts;var ownProp=common$1.ownProp;var inflight=inflight_1;var childrenIgnored=common$1.childrenIgnored;var isIgnored=common$1.isIgnored;var once=onceExports;function glob(pattern,options,cb){if(typeof options==="function")cb=options,options={};if(!options)options={};if(options.sync){if(cb)throw new TypeError("callback provided to sync glob");return globSync(pattern,options)}return new Glob(pattern,options,cb)}glob.sync=globSync;var GlobSync=glob.GlobSync=globSync.GlobSync;glob.glob=glob;function extend(origin,add){if(add===null||typeof add!=="object"){return origin}var keys=Object.keys(add);var i=keys.length;while(i--){origin[keys[i]]=add[keys[i]]}return origin}glob.hasMagic=function(pattern,options_){var options=extend({},options_);options.noprocess=true;var g=new Glob(pattern,options);var set=g.minimatch.set;if(!pattern)return false;if(set.length>1)return true;for(var j=0;j<set[0].length;j++){if(typeof set[0][j]!=="string")return true}return false};glob.Glob=Glob;inherits(Glob,EE);function Glob(pattern,options,cb){if(typeof options==="function"){cb=options;options=null}if(options&&options.sync){if(cb)throw new TypeError("callback provided to sync glob");return new GlobSync(pattern,options)}if(!(this instanceof Glob))return new Glob(pattern,options,cb);setopts(this,pattern,options);this._didRealPath=false;var n=this.minimatch.set.length;this.matches=new Array(n);if(typeof cb==="function"){cb=once(cb);this.on("error",cb);this.on("end",(function(matches){cb(null,matches)}))}var self=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(n===0)return done();var sync=true;for(var i=0;i<n;i++){this._process(this.minimatch.set[i],i,false,done)}sync=false;function done(){--self._processing;if(self._processing<=0){if(sync){process.nextTick((function(){self._finish()}))}else{self._finish()}}}}Glob.prototype._finish=function(){assert(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();common$1.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var n=this.matches.length;if(n===0)return this._finish();var self=this;for(var i=0;i<this.matches.length;i++)this._realpathSet(i,next);function next(){if(--n===0)self._finish()}};Glob.prototype._realpathSet=function(index,cb){var matchset=this.matches[index];if(!matchset)return cb();var found=Object.keys(matchset);var self=this;var n=found.length;if(n===0)return cb();var set=this.matches[index]=Object.create(null);found.forEach((function(p,i){p=self._makeAbs(p);rp.realpath(p,self.realpathCache,(function(er,real){if(!er)set[real]=true;else if(er.syscall==="stat")set[p]=true;else self.emit("error",er);if(--n===0){self.matches[index]=set;cb()}}))}))};Glob.prototype._mark=function(p){return common$1.mark(this,p)};Glob.prototype._makeAbs=function(f){return common$1.makeAbs(this,f)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var eq=this._emitQueue.slice(0);this._emitQueue.length=0;for(var i=0;i<eq.length;i++){var e=eq[i];this._emitMatch(e[0],e[1])}}if(this._processQueue.length){var pq=this._processQueue.slice(0);this._processQueue.length=0;for(var i=0;i<pq.length;i++){var p=pq[i];this._processing--;this._process(p[0],p[1],p[2],p[3])}}}};Glob.prototype._process=function(pattern,index,inGlobStar,cb){assert(this instanceof Glob);assert(typeof cb==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([pattern,index,inGlobStar,cb]);return}var n=0;while(typeof pattern[n]==="string"){n++}var prefix;switch(n){case pattern.length:this._processSimple(pattern.join("/"),index,cb);return;case 0:prefix=null;break;default:prefix=pattern.slice(0,n).join("/");break}var remain=pattern.slice(n);var read;if(prefix===null)read=".";else if(isAbsolute(prefix)||isAbsolute(pattern.map((function(p){return typeof p==="string"?p:"[*]"})).join("/"))){if(!prefix||!isAbsolute(prefix))prefix="/"+prefix;read=prefix}else read=prefix;var abs=this._makeAbs(read);if(childrenIgnored(this,read))return cb();var isGlobStar=remain[0]===minimatch.GLOBSTAR;if(isGlobStar)this._processGlobStar(prefix,read,abs,remain,index,inGlobStar,cb);else this._processReaddir(prefix,read,abs,remain,index,inGlobStar,cb)};Glob.prototype._processReaddir=function(prefix,read,abs,remain,index,inGlobStar,cb){var self=this;this._readdir(abs,inGlobStar,(function(er,entries){return self._processReaddir2(prefix,read,abs,remain,index,inGlobStar,entries,cb)}))};Glob.prototype._processReaddir2=function(prefix,read,abs,remain,index,inGlobStar,entries,cb){if(!entries)return cb();var pn=remain[0];var negate=!!this.minimatch.negate;var rawGlob=pn._glob;var dotOk=this.dot||rawGlob.charAt(0)===".";var matchedEntries=[];for(var i=0;i<entries.length;i++){var e=entries[i];if(e.charAt(0)!=="."||dotOk){var m;if(negate&&!prefix){m=!e.match(pn)}else{m=e.match(pn)}if(m)matchedEntries.push(e)}}var len=matchedEntries.length;if(len===0)return cb();if(remain.length===1&&!this.mark&&!this.stat){if(!this.matches[index])this.matches[index]=Object.create(null);for(var i=0;i<len;i++){var e=matchedEntries[i];if(prefix){if(prefix!=="/")e=prefix+"/"+e;else e=prefix+e}if(e.charAt(0)==="/"&&!this.nomount){e=path.join(this.root,e)}this._emitMatch(index,e)}return cb()}remain.shift();for(var i=0;i<len;i++){var e=matchedEntries[i];if(prefix){if(prefix!=="/")e=prefix+"/"+e;else e=prefix+e}this._process([e].concat(remain),index,inGlobStar,cb)}cb()};Glob.prototype._emitMatch=function(index,e){if(this.aborted)return;if(isIgnored(this,e))return;if(this.paused){this._emitQueue.push([index,e]);return}var abs=isAbsolute(e)?e:this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute)e=abs;if(this.matches[index][e])return;if(this.nodir){var c=this.cache[abs];if(c==="DIR"||Array.isArray(c))return}this.matches[index][e]=true;var st=this.statCache[abs];if(st)this.emit("stat",e,st);this.emit("match",e)};Glob.prototype._readdirInGlobStar=function(abs,cb){if(this.aborted)return;if(this.follow)return this._readdir(abs,false,cb);var lstatkey="lstat\0"+abs;var self=this;var lstatcb=inflight(lstatkey,lstatcb_);if(lstatcb)self.fs.lstat(abs,lstatcb);function lstatcb_(er,lstat){if(er&&er.code==="ENOENT")return cb();var isSym=lstat&&lstat.isSymbolicLink();self.symlinks[abs]=isSym;if(!isSym&&lstat&&!lstat.isDirectory()){self.cache[abs]="FILE";cb()}else self._readdir(abs,false,cb)}};Glob.prototype._readdir=function(abs,inGlobStar,cb){if(this.aborted)return;cb=inflight("readdir\0"+abs+"\0"+inGlobStar,cb);if(!cb)return;if(inGlobStar&&!ownProp(this.symlinks,abs))return this._readdirInGlobStar(abs,cb);if(ownProp(this.cache,abs)){var c=this.cache[abs];if(!c||c==="FILE")return cb();if(Array.isArray(c))return cb(null,c)}var self=this;self.fs.readdir(abs,readdirCb(this,abs,cb))};function readdirCb(self,abs,cb){return function(er,entries){if(er)self._readdirError(abs,er,cb);else self._readdirEntries(abs,entries,cb)}}Glob.prototype._readdirEntries=function(abs,entries,cb){if(this.aborted)return;if(!this.mark&&!this.stat){for(var i=0;i<entries.length;i++){var e=entries[i];if(abs==="/")e=abs+e;else e=abs+"/"+e;this.cache[e]=true}}this.cache[abs]=entries;return cb(null,entries)};Glob.prototype._readdirError=function(f,er,cb){if(this.aborted)return;switch(er.code){case"ENOTSUP":case"ENOTDIR":var abs=this._makeAbs(f);this.cache[abs]="FILE";if(abs===this.cwdAbs){var error=new Error(er.code+" invalid cwd "+this.cwd);error.path=this.cwd;error.code=er.code;this.emit("error",error);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(f)]=false;break;default:this.cache[this._makeAbs(f)]=false;if(this.strict){this.emit("error",er);this.abort()}if(!this.silent)console.error("glob error",er);break}return cb()};Glob.prototype._processGlobStar=function(prefix,read,abs,remain,index,inGlobStar,cb){var self=this;this._readdir(abs,inGlobStar,(function(er,entries){self._processGlobStar2(prefix,read,abs,remain,index,inGlobStar,entries,cb)}))};Glob.prototype._processGlobStar2=function(prefix,read,abs,remain,index,inGlobStar,entries,cb){if(!entries)return cb();var remainWithoutGlobStar=remain.slice(1);var gspref=prefix?[prefix]:[];var noGlobStar=gspref.concat(remainWithoutGlobStar);this._process(noGlobStar,index,false,cb);var isSym=this.symlinks[abs];var len=entries.length;if(isSym&&inGlobStar)return cb();for(var i=0;i<len;i++){var e=entries[i];if(e.charAt(0)==="."&&!this.dot)continue;var instead=gspref.concat(entries[i],remainWithoutGlobStar);this._process(instead,index,true,cb);var below=gspref.concat(entries[i],remain);this._process(below,index,true,cb)}cb()};Glob.prototype._processSimple=function(prefix,index,cb){var self=this;this._stat(prefix,(function(er,exists){self._processSimple2(prefix,index,er,exists,cb)}))};Glob.prototype._processSimple2=function(prefix,index,er,exists,cb){if(!this.matches[index])this.matches[index]=Object.create(null);if(!exists)return cb();if(prefix&&isAbsolute(prefix)&&!this.nomount){var trail=/[\/\\]$/.test(prefix);if(prefix.charAt(0)==="/"){prefix=path.join(this.root,prefix)}else{prefix=path.resolve(this.root,prefix);if(trail)prefix+="/"}}if(process.platform==="win32")prefix=prefix.replace(/\\/g,"/");this._emitMatch(index,prefix);cb()};Glob.prototype._stat=function(f,cb){var abs=this._makeAbs(f);var needDir=f.slice(-1)==="/";if(f.length>this.maxLength)return cb();if(!this.stat&&ownProp(this.cache,abs)){var c=this.cache[abs];if(Array.isArray(c))c="DIR";if(!needDir||c==="DIR")return cb(null,c);if(needDir&&c==="FILE")return cb()}var stat=this.statCache[abs];if(stat!==undefined){if(stat===false)return cb(null,stat);else{var type=stat.isDirectory()?"DIR":"FILE";if(needDir&&type==="FILE")return cb();else return cb(null,type,stat)}}var self=this;var statcb=inflight("stat\0"+abs,lstatcb_);if(statcb)self.fs.lstat(abs,statcb);function lstatcb_(er,lstat){if(lstat&&lstat.isSymbolicLink()){return self.fs.stat(abs,(function(er,stat){if(er)self._stat2(f,abs,null,lstat,cb);else self._stat2(f,abs,er,stat,cb)}))}else{self._stat2(f,abs,er,lstat,cb)}}};Glob.prototype._stat2=function(f,abs,er,stat,cb){if(er&&(er.code==="ENOENT"||er.code==="ENOTDIR")){this.statCache[abs]=false;return cb()}var needDir=f.slice(-1)==="/";this.statCache[abs]=stat;if(abs.slice(-1)==="/"&&stat&&!stat.isDirectory())return cb(null,false,stat);var c=true;if(stat)c=stat.isDirectory()?"DIR":"FILE";this.cache[abs]=this.cache[abs]||c;if(needDir&&c==="FILE")return cb();return cb(null,c,stat)};return glob_1}const bundleWalk=lib$3;const BundleWalker=bundleWalk.BundleWalker;const ignoreWalk=lib$2;const IgnoreWalker=ignoreWalk.Walker;const rootBuiltinRules=Symbol("root-builtin-rules");const packageNecessaryRules=Symbol("package-necessary-rules");const path$1=require$$0$6;const normalizePackageBin=lib$4;const packageMustHaveFileNames="readme|copying|license|licence";const packageMustHaves=`@(${packageMustHaveFileNames}){,.*[^~$]}`;const packageMustHavesRE=new RegExp(`^(${packageMustHaveFileNames})(\\..*[^~$])?$`,"i");const fs$2=require$$0$1;const glob=requireGlob();const globify=pattern=>pattern.split("\\").join("/");const readOutOfTreeIgnoreFiles=(root,rel,result="")=>{for(const file of[".npmignore",".gitignore"]){try{const ignoreContent=fs$2.readFileSync(path$1.join(root,file),{encoding:"utf8"});result+=ignoreContent+"\n";break}catch(err){if(err.code!=="ENOENT"){throw err}}}if(!rel){return result}const firstRel=rel.split(path$1.sep)[0];const newRoot=path$1.join(root,firstRel);const newRel=path$1.relative(newRoot,path$1.join(root,rel));return readOutOfTreeIgnoreFiles(newRoot,newRel,result)};const pathHasPkg=input=>{if(!input.startsWith("node_modules/")){return false}const segments=input.slice("node_modules/".length).split("/",2);return segments[0].startsWith("@")?segments.length===2:true};const pkgFromPath=input=>{const segments=input.slice("node_modules/".length).split("/",2);return segments[0].startsWith("@")?segments.join("/"):segments[0]};const defaultRules=[".npmignore",".gitignore","**/.git","**/.svn","**/.hg","**/CVS","**/.git/**","**/.svn/**","**/.hg/**","**/CVS/**","/.lock-wscript","/.wafpickle-*","/build/config.gypi","npm-debug.log","**/.npmrc",".*.swp",".DS_Store","**/.DS_Store/**","._*","**/._*/**","*.orig","/package-lock.json","/yarn.lock","/pnpm-lock.yaml","/archived-packages/**"];const nameIsBadForWindows=file=>/\*/.test(file);class Walker extends IgnoreWalker{constructor(opt){opt=opt||{};opt.ignoreFiles=[rootBuiltinRules,"package.json",".npmignore",".gitignore",packageNecessaryRules];opt.includeEmpty=false;opt.path=opt.path||process.cwd();const followRe=/^(?:\/node_modules\/(?:@[^/]+\/[^/]+|[^/]+)\/)*\/node_modules(?:\/@[^/]+)?$/;const rootPath=opt.parent?opt.parent.root:opt.path;const followTestPath=opt.path.replace(/\\/g,"/").slice(rootPath.length);opt.follow=followRe.test(followTestPath);super(opt);if(this.isProject){this.bundled=opt.bundled||[];this.bundledScopes=Array.from(new Set(this.bundled.filter((f=>/^@/.test(f))).map((f=>f.split("/")[0]))));this.packageJsonCache=this.parent?this.parent.packageJsonCache:opt.packageJsonCache||new Map;let rules=defaultRules.join("\n")+"\n";if(opt.prefix&&opt.workspaces){const gPath=globify(opt.path);const gPrefix=globify(opt.prefix);const gWorkspaces=opt.workspaces.map((ws=>globify(ws)));if(gPath!==gPrefix&&gWorkspaces.includes(gPath)){const relpath=path$1.relative(opt.prefix,path$1.dirname(opt.path));rules+=readOutOfTreeIgnoreFiles(opt.prefix,relpath)}else if(gPath===gPrefix){rules+=opt.workspaces.map((ws=>globify(path$1.relative(opt.path,ws)))).join("\n")}}super.onReadIgnoreFile(rootBuiltinRules,rules,(_=>_))}else{this.bundled=[];this.bundledScopes=[];this.packageJsonCache=this.parent.packageJsonCache}}get isProject(){return!this.parent||this.parent.follow&&this.isSymbolicLink}onReaddir(entries){if(this.isProject){entries=entries.filter((e=>e!==".git"&&!(e==="node_modules"&&this.bundled.length===0)))}if(!this.isProject||!entries.includes("package.json")){return super.onReaddir(entries)}const ig=path$1.resolve(this.path,"package.json");if(this.packageJsonCache.has(ig)){const pkg=this.packageJsonCache.get(ig);if(!pkg||typeof pkg!=="object"){return this.readPackageJson(entries)}return this.getPackageFiles(entries,JSON.stringify(pkg))}this.readPackageJson(entries)}onReadPackageJson(entries,er,pkg){if(er){this.emit("error",er)}else{this.getPackageFiles(entries,pkg)}}mustHaveFilesFromPackage(pkg){const files=[];if(pkg.browser){files.push("/"+pkg.browser)}if(pkg.main){files.push("/"+pkg.main)}if(pkg.bin){for(const key in pkg.bin){files.push("/"+pkg.bin[key])}}files.push("/package.json","/npm-shrinkwrap.json","!/package-lock.json",packageMustHaves);return files}getPackageFiles(entries,pkg){try{pkg=normalizePackageBin(JSON.parse(pkg.toString()))}catch(er){return super.onReaddir(entries)}const ig=path$1.resolve(this.path,"package.json");this.packageJsonCache.set(ig,pkg);if(!Array.isArray(pkg.files)){return super.onReaddir(entries)}pkg.files.push(...this.mustHaveFilesFromPackage(pkg));if((pkg.bundleDependencies||pkg.bundledDependencies)&&entries.includes("node_modules")){pkg.files.push("node_modules")}const patterns=Array.from(new Set(pkg.files)).reduce(((set,pattern)=>{const excl=pattern.match(/^!+/);if(excl){pattern=pattern.slice(excl[0].length)}pattern=pattern.replace(/^\.?\/+/,"");const negate=excl&&excl[0].length%2===1;set.push({pattern:pattern,negate:negate});return set}),[]);let n=patterns.length;const set=new Set;const negates=new Set;const results=[];const then=(pattern,negate,er,fileList,i)=>{if(er){return this.emit("error",er)}results[i]={negate:negate,fileList:fileList};if(--n===0){processResults(results)}};const processResults=processed=>{for(const{negate:negate,fileList:fileList}of processed){if(negate){fileList.forEach((f=>{f=f.replace(/\/+$/,"");set.delete(f);negates.add(f)}))}else{fileList.forEach((f=>{f=f.replace(/\/+$/,"");set.add(f);negates.delete(f)}))}}const list=Array.from(set);pkg.files=list.concat(Array.from(negates).map((f=>"!"+f)));const rdResult=Array.from(new Set(list.map((f=>f.replace(/^\/+/,"")))));super.onReaddir(rdResult)};patterns.forEach((({pattern:pattern,negate:negate},i)=>this.globFiles(pattern,((er,res)=>then(pattern,negate,er,res,i)))))}filterEntry(entry,partial){const p=this.path.slice(this.root.length+1);const{isProject:isProject}=this;const pkg=isProject&&pathHasPkg(entry)?pkgFromPath(entry):null;const rootNM=isProject&&entry==="node_modules";const rootPJ=isProject&&entry==="package.json";return/^node_modules($|\/)/i.test(p)&&!this.isProject?this.parent.filterEntry(this.basename+"/"+entry,partial):pkg?this.bundled.indexOf(pkg)!==-1||this.bundledScopes.indexOf(pkg)!==-1:rootNM?!!this.bundled.length:rootPJ?true:packageMustHavesRE.test(entry)?true:isProject&&(entry==="npm-shrinkwrap.json"||entry==="package.json")?true:isProject&&entry==="package-lock.json"?false:super.filterEntry(entry,partial)}filterEntries(){if(this.ignoreRules[".npmignore"]){this.ignoreRules[".gitignore"]=null}this.filterEntries=super.filterEntries;super.filterEntries()}addIgnoreFile(file,then){const ig=path$1.resolve(this.path,file);if(file==="package.json"&&!this.isProject){then()}else if(this.packageJsonCache.has(ig)){this.onPackageJson(ig,this.packageJsonCache.get(ig),then)}else{super.addIgnoreFile(file,then)}}onPackageJson(ig,pkg,then){this.packageJsonCache.set(ig,pkg);if(Array.isArray(pkg.files)){super.onReadIgnoreFile("package.json",pkg.files.map((f=>"!"+f)).join("\n")+"\n",then)}else{const rules=this.mustHaveFilesFromPackage(pkg).map((f=>`!${f}`));const data=rules.join("\n")+"\n";super.onReadIgnoreFile(packageNecessaryRules,data,then)}}stat({entry:entry,file:file,dir:dir},then){if(nameIsBadForWindows(entry)){then()}else{super.stat({entry:entry,file:file,dir:dir},then)}}onstat({st:st,entry:entry,file:file,dir:dir,isSymbolicLink:isSymbolicLink},then){if(st.isSymbolicLink()){then()}else{super.onstat({st:st,entry:entry,file:file,dir:dir,isSymbolicLink:isSymbolicLink},then)}}onReadIgnoreFile(file,data,then){if(file==="package.json"){try{const ig=path$1.resolve(this.path,file);this.onPackageJson(ig,JSON.parse(data),then)}catch(er){then()}}else{super.onReadIgnoreFile(file,data,then)}}sort(a,b){const exta=path$1.extname(a).toLowerCase();const extb=path$1.extname(b).toLowerCase();const basea=path$1.basename(a).toLowerCase();const baseb=path$1.basename(b).toLowerCase();return exta.localeCompare(extb,"en")||basea.localeCompare(baseb,"en")||a.localeCompare(b,"en")}globFiles(pattern,cb){glob(globify(pattern),{dot:true,cwd:this.path,nocase:true},cb)}readPackageJson(entries){fs$2.readFile(this.path+"/package.json",((er,pkg)=>this.onReadPackageJson(entries,er,pkg)))}walker(entry,opt,then){new Walker(this.walkerOpt(entry,opt)).on("done",then).start()}}const walk=(options,callback)=>{options=options||{};const p=new Promise(((resolve,reject)=>{const bw=new BundleWalker(options);bw.on("done",(bundled=>{options.bundled=bundled;options.packageJsonCache=bw.packageJsonCache;new Walker(options).on("done",resolve).on("error",reject).start()}));bw.start()}));return callback?p.then((res=>callback(null,res)),callback):p};var lib$1=walk;walk.Walker=Walker;var __importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(lib$b,"__esModule",{value:true});lib$b.fetchFromDir=lib$b.createDirectoryFetcher=void 0;const fs_1$1=require$$0$1;const path_1$1=__importDefault$1(require$$0$6);const logger_1=lib$f;const read_project_manifest_1=lib$a;const npm_packlist_1=__importDefault$1(lib$1);const directoryFetcherLogger=(0,logger_1.logger)("directory-fetcher");function createDirectoryFetcher(opts){const readFileStat=opts?.resolveSymlinks===true?realFileStat:fileStat;const fetchFromDir=opts?.includeOnlyPackageFiles?fetchPackageFilesFromDir:fetchAllFilesFromDir.bind(null,readFileStat);const directoryFetcher=(cafs,resolution,opts)=>{const dir=path_1$1.default.join(opts.lockfileDir,resolution.directory);return fetchFromDir(dir,opts)};return{directory:directoryFetcher}}lib$b.createDirectoryFetcher=createDirectoryFetcher;async function fetchFromDir(dir,opts){if(opts.includeOnlyPackageFiles){return fetchPackageFilesFromDir(dir,opts)}const readFileStat=opts?.resolveSymlinks===true?realFileStat:fileStat;return fetchAllFilesFromDir(readFileStat,dir,opts)}lib$b.fetchFromDir=fetchFromDir;async function fetchAllFilesFromDir(readFileStat,dir,opts){const filesIndex=await _fetchAllFilesFromDir(readFileStat,dir);if(opts.manifest){const manifest=await(0,read_project_manifest_1.safeReadProjectManifestOnly)(dir)??{};opts.manifest.resolve(manifest)}return{local:true,filesIndex:filesIndex,packageImportMethod:"hardlink"}}async function _fetchAllFilesFromDir(readFileStat,dir,relativeDir=""){const filesIndex={};const files=await fs_1$1.promises.readdir(dir);await Promise.all(files.filter((file=>file!=="node_modules")).map((async file=>{const{filePath:filePath,stat:stat}=await readFileStat(path_1$1.default.join(dir,file));if(!filePath)return;const relativeSubdir=`${relativeDir}${relativeDir?"/":""}${file}`;if(stat.isDirectory()){const subFilesIndex=await _fetchAllFilesFromDir(readFileStat,filePath,relativeSubdir);Object.assign(filesIndex,subFilesIndex)}else{filesIndex[relativeSubdir]=filePath}})));return filesIndex}async function realFileStat(filePath){let stat=await fs_1$1.promises.lstat(filePath);if(!stat.isSymbolicLink()){return{filePath:filePath,stat:stat}}try{filePath=await fs_1$1.promises.realpath(filePath);stat=await fs_1$1.promises.stat(filePath);return{filePath:filePath,stat:stat}}catch(err){if(err.code==="ENOENT"){directoryFetcherLogger.debug({brokenSymlink:filePath});return{filePath:null,stat:null}}throw err}}async function fileStat(filePath){try{return{filePath:filePath,stat:await fs_1$1.promises.stat(filePath)}}catch(err){if(err.code==="ENOENT"){directoryFetcherLogger.debug({brokenSymlink:filePath});return{filePath:null,stat:null}}throw err}}async function fetchPackageFilesFromDir(dir,opts){const files=await(0,npm_packlist_1.default)({path:dir});const filesIndex=Object.fromEntries(files.map((file=>[file,path_1$1.default.join(dir,file)])));if(opts.manifest){const manifest=await(0,read_project_manifest_1.safeReadProjectManifestOnly)(dir)??{};opts.manifest.resolve(manifest)}return{local:true,filesIndex:filesIndex,packageImportMethod:"hardlink"}}var lib={};class Node{constructor(value){this.value=value;this.next=undefined}}let Queue$1=class Queue{constructor(){this.clear()}enqueue(value){const node=new Node(value);if(this._head){this._tail.next=node;this._tail=node}else{this._head=node;this._tail=node}this._size++}dequeue(){const current=this._head;if(!current){return}this._head=this._head.next;this._size--;return current.value}clear(){this._head=undefined;this._tail=undefined;this._size=0}get size(){return this._size}*[Symbol.iterator](){let current=this._head;while(current){yield current.value;current=current.next}}};var yoctoQueue=Queue$1;const Queue=yoctoQueue;const pLimit$1=concurrency=>{if(!((Number.isInteger(concurrency)||concurrency===Infinity)&&concurrency>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const queue=new Queue;let activeCount=0;const next=()=>{activeCount--;if(queue.size>0){queue.dequeue()()}};const run=async(fn,resolve,...args)=>{activeCount++;const result=(async()=>fn(...args))();resolve(result);try{await result}catch{}next()};const enqueue=(fn,resolve,...args)=>{queue.enqueue(run.bind(null,fn,resolve,...args));(async()=>{await Promise.resolve();if(activeCount<concurrency&&queue.size>0){queue.dequeue()()}})()};const generator=(fn,...args)=>new Promise((resolve=>{enqueue(fn,resolve,...args)}));Object.defineProperties(generator,{activeCount:{get:()=>activeCount},pendingCount:{get:()=>queue.size},clearQueue:{value:()=>{queue.clear()}}});return generator};var pLimit_1=pLimit$1;Object.defineProperty(lib,"__esModule",{value:true});const pLimit=pLimit_1;lib.default=async(concurrency,groups)=>{const limitRun=pLimit(concurrency);for(const tasks of groups){await Promise.all(tasks.map((task=>limitRun(task))))}};var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(runLifecycleHooksConcurrently$1,"__esModule",{value:true});runLifecycleHooksConcurrently$1.runLifecycleHooksConcurrently=void 0;const fs_1=__importDefault(require$$0$1);const path_1=__importDefault(require$$0$6);const directory_fetcher_1=lib$b;const run_groups_1=__importDefault(lib);const runLifecycleHook_1=runLifecycleHook$2;async function runLifecycleHooksConcurrently(stages,importers,childConcurrency,opts){const importersByBuildIndex=new Map;for(const importer of importers){if(!importersByBuildIndex.has(importer.buildIndex)){importersByBuildIndex.set(importer.buildIndex,[importer])}else{importersByBuildIndex.get(importer.buildIndex).push(importer)}}const sortedBuildIndexes=Array.from(importersByBuildIndex.keys()).sort();const groups=sortedBuildIndexes.map((buildIndex=>{const importers=importersByBuildIndex.get(buildIndex);return importers.map((({manifest:manifest,modulesDir:modulesDir,rootDir:rootDir,stages:importerStages,targetDirs:targetDirs})=>async()=>{const runLifecycleHookOpts={...opts,depPath:rootDir,pkgRoot:rootDir,rootModulesDir:modulesDir};let isBuilt=false;for(const stage of importerStages??stages){if(manifest.scripts==null||!manifest.scripts[stage])continue;await(0,runLifecycleHook_1.runLifecycleHook)(stage,manifest,runLifecycleHookOpts);isBuilt=true}if(targetDirs==null||targetDirs.length===0||!isBuilt)return;const filesResponse=await(0,directory_fetcher_1.fetchFromDir)(rootDir,{resolveSymlinks:opts.resolveSymlinksInInjectedDirs});await Promise.all(targetDirs.map((async targetDir=>{const targetModulesDir=path_1.default.join(targetDir,"node_modules");const nodeModulesIndex={};if(fs_1.default.existsSync(targetModulesDir)){await scanDir("node_modules",targetModulesDir,targetModulesDir,nodeModulesIndex)}return opts.storeController.importPackage(targetDir,{filesResponse:{fromStore:false,...filesResponse,filesIndex:{...filesResponse.filesIndex,...nodeModulesIndex}},force:false})})))}))}));await(0,run_groups_1.default)(childConcurrency,groups)}runLifecycleHooksConcurrently$1.runLifecycleHooksConcurrently=runLifecycleHooksConcurrently;async function scanDir(prefix,rootDir,currentDir,index){const files=await fs_1.default.promises.readdir(currentDir);await Promise.all(files.map((async file=>{const fullPath=path_1.default.join(currentDir,file);const stat=await fs_1.default.promises.stat(fullPath);if(stat.isDirectory()){return scanDir(prefix,rootDir,fullPath,index)}if(stat.isFile()){const relativePath=path_1.default.relative(rootDir,fullPath);index[path_1.default.join(prefix,relativePath)]=fullPath}})))}(function(exports){var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:true});exports.runPostinstallHooks=exports.runLifecycleHooksConcurrently=exports.runLifecycleHook=exports.makeNodeRequireOption=void 0;const path_1=__importDefault(require$$0$6);const read_package_json_1=lib$o;const path_exists_1=__importDefault(pathExistsExports);const runLifecycleHook_1=runLifecycleHook$2;Object.defineProperty(exports,"runLifecycleHook",{enumerable:true,get:function(){return runLifecycleHook_1.runLifecycleHook}});const runLifecycleHooksConcurrently_1=runLifecycleHooksConcurrently$1;Object.defineProperty(exports,"runLifecycleHooksConcurrently",{enumerable:true,get:function(){return runLifecycleHooksConcurrently_1.runLifecycleHooksConcurrently}});function makeNodeRequireOption(modulePath){let{NODE_OPTIONS:NODE_OPTIONS}=process.env;NODE_OPTIONS=`${NODE_OPTIONS??""} --require=${modulePath}`.trim();return{NODE_OPTIONS:NODE_OPTIONS}}exports.makeNodeRequireOption=makeNodeRequireOption;async function runPostinstallHooks(opts){const pkg=await(0,read_package_json_1.safeReadPackageJsonFromDir)(opts.pkgRoot);if(pkg==null)return false;if(pkg.scripts==null){pkg.scripts={}}if(!pkg.scripts.install){await checkBindingGyp(opts.pkgRoot,pkg.scripts)}if(pkg.scripts.preinstall){await(0,runLifecycleHook_1.runLifecycleHook)("preinstall",pkg,opts)}if(pkg.scripts.install){await(0,runLifecycleHook_1.runLifecycleHook)("install",pkg,opts)}if(pkg.scripts.postinstall){await(0,runLifecycleHook_1.runLifecycleHook)("postinstall",pkg,opts)}return pkg.scripts.preinstall!=null||pkg.scripts.install!=null||pkg.scripts.postinstall!=null}exports.runPostinstallHooks=runPostinstallHooks;async function checkBindingGyp(root,scripts){if(await(0,path_exists_1.default)(path_1.default.join(root,"binding.gyp"))){scripts.install="node-gyp rebuild"}}})(lib$h);const fs$1=require$$0$1;const exists=pathExistsExports;const path=require$$0$6;const{safeReadPackageJsonFromDir:safeReadPackageJsonFromDir}=lib$o;const{runLifecycleHook:runLifecycleHook}=lib$h;async function mkdirp(p){if(p&&!fs$1.existsSync(p)){await mkdirp(path.dirname(p));await fs$1.promises.mkdir(p)}}function normalizeBinPath(p){let result=p.replace(/\\/g,"/");if(result.startsWith("./")){result=result.substring(2)}return result}async function makeBins(nodeModulesPath,scope,segmentsUp){const packages=await fs$1.promises.readdir(path.join(nodeModulesPath,scope));for(const _package of packages){if(!scope&&_package.startsWith("@")){await makeBins(nodeModulesPath,_package,segmentsUp);continue}const packageName=path.join(scope,_package);const packageJsonPath=path.join(nodeModulesPath,packageName,"package.json");if(fs$1.existsSync(packageJsonPath)){let packageJsonStr=await fs$1.promises.readFile(packageJsonPath);let packageJson;try{packageJson=JSON.parse(packageJsonStr)}catch(e){throw new Error(`Error parsing ${packageName}/package.json: ${e}\n\n""""\n${packageJsonStr}\n""""`)}if(packageJson.bin){await mkdirp(path.join(nodeModulesPath,".bin"));let bin=packageJson.bin;if(typeof bin=="string"){bin={[_package]:bin}}for(const binName of Object.keys(bin)){const binPath=normalizeBinPath(bin[binName]);const binBash=`#!/usr/bin/env bash\nexec node "${path.join(...segmentsUp,packageName,binPath)}" "$@"`;const binEntryPath=path.join(nodeModulesPath,".bin",binName);await fs$1.promises.writeFile(binEntryPath,binBash);await fs$1.promises.chmod(binEntryPath,"755")}}}}}async function checkBindingGyp(root,scripts){if(await exists(path.join(root,"binding.gyp"))){scripts["install"]="node-gyp rebuild"}}async function runLifecycleHooks(opts,hooks){const pkg=await safeReadPackageJsonFromDir(opts.pkgRoot);if(pkg==null){return}if(pkg.scripts==null){pkg.scripts={}}const runInstallScripts=hooks.includes("preinstall")||hooks.includes("install")||hooks.includes("postinstall");if(runInstallScripts&&!pkg.scripts.install){await checkBindingGyp(opts.pkgRoot,pkg.scripts)}for(const hook of hooks){if(pkg.scripts[hook]){await runLifecycleHook(hook,pkg,opts)}}}async function main(args){if(args.length!==3){console.error("Usage: node lifecycle-hooks.js [packageName] [packageDir] [outputDir]");process.exit(1)}const packageName=args[0];const packageDir=args[1];const outputDir=args[2];await copyPackageContents(packageDir,outputDir);const segmentsUp=Array(packageName.split("/").length).fill("..");const nodeModulesPath=path.resolve(path.join(outputDir,...segmentsUp));await makeBins(nodeModulesPath,"",segmentsUp);const opts={pkgRoot:path.resolve(outputDir),rawConfig:{stdio:"inherit"},silent:false,stdio:"inherit",rootModulesDir:nodeModulesPath,unsafePerm:true};const rulesJsJson=JSON.parse(await fs$1.promises.readFile(path.join(packageDir,"aspect_rules_js_metadata.json")));if(rulesJsJson.lifecycle_hooks){await runLifecycleHooks(opts,rulesJsJson.lifecycle_hooks.split(","))}if(rulesJsJson.scripts?.custom_postinstall){await runLifecycleHook("custom_postinstall",rulesJsJson,opts)}}async function copyPackageContents(packageDir,destDir){const contents=await fs$1.promises.readdir(packageDir);await Promise.all(contents.map((file=>copyRecursive(path.join(packageDir,file),path.join(destDir,file)))))}async function copyRecursive(src,dest){const stats=await fs$1.promises.stat(src);if(stats.isDirectory()){await mkdirp(dest);const contents=await fs$1.promises.readdir(src);await Promise.all(contents.map((file=>copyRecursive(path.join(src,file),path.join(dest,file)))))}else{await fs$1.promises.copyFile(src,dest)}}(async()=>{try{await main(process.argv.slice(2))}catch(e){if(e.code==="ELIFECYCLE"&&!!e.pkgid&&!!e.stage&&!!e.script){console.log("===============================================================");console.log(`Failure while running lifecycle hook for package '${e.pkgid}':\n`);console.log(` Script: '${e.stage}'`);console.log(` Command: \`${e.script}\``);console.log(`\nStack trace:\n`);console.log(e.stack.replace(/^.*?\n/,""));console.log("===============================================================")}else{console.log(e)}process.exit(1)}})();module.exports=lifecycleHooks; + */(function(module,exports){(function(factory){if(exports&&"object"==="object"&&"object"!=="undefined"){module.exports=factory()}else if(typeof window!=="undefined"){window.isWindows=factory()}else if(typeof commonjsGlobal!=="undefined"){commonjsGlobal.isWindows=factory()}else if(typeof self!=="undefined"){self.isWindows=factory()}else{this.isWindows=factory()}})((function(){return function isWindows(){return process&&(process.platform==="win32"||/^(msys|cygwin)$/.test(process.env.OSTYPE))}}))})(isWindows$2,isWindows$2.exports);var isWindowsExports=isWindows$2.exports;var isPlainObj=value=>{if(Object.prototype.toString.call(value)!=="[object Object]"){return false}const prototype=Object.getPrototypeOf(value);return prototype===null||prototype===Object.prototype};const isPlainObject=isPlainObj;var sortKeys=(object,options={})=>{if(!isPlainObject(object)&&!Array.isArray(object)){throw new TypeError("Expected a plain object or array")}const{deep:deep}=options;const seenInput=[];const seenOutput=[];const deepSortArray=array=>{const seenIndex=seenInput.indexOf(array);if(seenIndex!==-1){return seenOutput[seenIndex]}const result=[];seenInput.push(array);seenOutput.push(result);result.push(...array.map((item=>{if(Array.isArray(item)){return deepSortArray(item)}if(isPlainObject(item)){return sortKeys(item)}return item})));return result};const sortKeys=object=>{const seenIndex=seenInput.indexOf(object);if(seenIndex!==-1){return seenOutput[seenIndex]}const result={};const keys=Object.keys(object).sort(options.compare);seenInput.push(object);seenOutput.push(result);for(const key of keys){const value=object[key];let newValue;if(deep&&Array.isArray(value)){newValue=deepSortArray(value)}else{newValue=deep&&isPlainObject(value)?sortKeys(value):value}Object.defineProperty(result,key,{...Object.getOwnPropertyDescriptor(object,key),value:newValue})}return result};if(Array.isArray(object)){return deep?deepSortArray(object):object.slice()}return sortKeys(object)};var readFile={};var lib$5={};var __importDefault$4=commonjsGlobal&&commonjsGlobal.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(lib$5,"__esModule",{value:true});const util_1=require$$0$2;const graceful_fs_1$1=__importDefault$4(gracefulFs);lib$5.default={createReadStream:graceful_fs_1$1.default.createReadStream,readFile:(0,util_1.promisify)(graceful_fs_1$1.default.readFile),writeFile:(0,util_1.promisify)(graceful_fs_1$1.default.writeFile)};var __importDefault$3=commonjsGlobal&&commonjsGlobal.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(readFile,"__esModule",{value:true});readFile.readJsonFile=readFile.readJson5File=void 0;const graceful_fs_1=__importDefault$3(lib$5);const json5_1=__importDefault$3(require$$1);const parse_json_1=__importDefault$3(parseJson_1);const strip_bom_1=__importDefault$3(stripBom$2);async function readJson5File(filePath){const text=await readFileWithoutBom(filePath);try{return{data:json5_1.default.parse(text),text:text}}catch(err){err.message=`${err.message} in ${filePath}`;err["code"]="ERR_PNPM_JSON5_PARSE";throw err}}readFile.readJson5File=readJson5File;async function readJsonFile(filePath){const text=await readFileWithoutBom(filePath);try{return{data:(0,parse_json_1.default)(text,filePath),text:text}}catch(err){err["code"]="ERR_PNPM_JSON_PARSE";throw err}}readFile.readJsonFile=readJsonFile;async function readFileWithoutBom(path){return(0,strip_bom_1.default)(await graceful_fs_1.default.readFile(path,"utf8"))}var __importDefault$2=commonjsGlobal&&commonjsGlobal.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(lib$a,"__esModule",{value:true});lib$a.readExactProjectManifest=lib$a.tryReadProjectManifest=lib$a.readProjectManifestOnly=lib$a.readProjectManifest=lib$a.safeReadProjectManifestOnly=void 0;const fs_1$2=require$$0$1;const path_1$2=__importDefault$2(require$$0$6);const error_1=lib$n;const text_comments_parser_1=lib$9;const write_project_manifest_1=lib$8;const read_yaml_file_1=__importDefault$2(readYamlFileExports);const detect_indent_1=__importDefault$2(detectIndent_1);const fast_deep_equal_1=__importDefault$2(fastDeepEqual);const is_windows_1=__importDefault$2(isWindowsExports);const sort_keys_1=__importDefault$2(sortKeys);const readFile_1=readFile;async function safeReadProjectManifestOnly(projectDir){try{return await readProjectManifestOnly(projectDir)}catch(err){if(err.code==="ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND"){return null}throw err}}lib$a.safeReadProjectManifestOnly=safeReadProjectManifestOnly;async function readProjectManifest(projectDir){const result=await tryReadProjectManifest(projectDir);if(result.manifest!==null){return result}throw new error_1.PnpmError("NO_IMPORTER_MANIFEST_FOUND",`No package.json (or package.yaml, or package.json5) was found in "${projectDir}".`)}lib$a.readProjectManifest=readProjectManifest;async function readProjectManifestOnly(projectDir){const{manifest:manifest}=await readProjectManifest(projectDir);return manifest}lib$a.readProjectManifestOnly=readProjectManifestOnly;async function tryReadProjectManifest(projectDir){try{const manifestPath=path_1$2.default.join(projectDir,"package.json");const{data:data,text:text}=await(0,readFile_1.readJsonFile)(manifestPath);return{fileName:"package.json",manifest:data,writeProjectManifest:createManifestWriter({...detectFileFormatting(text),initialManifest:data,manifestPath:manifestPath})}}catch(err){if(err.code!=="ENOENT")throw err}try{const manifestPath=path_1$2.default.join(projectDir,"package.json5");const{data:data,text:text}=await(0,readFile_1.readJson5File)(manifestPath);return{fileName:"package.json5",manifest:data,writeProjectManifest:createManifestWriter({...detectFileFormattingAndComments(text),initialManifest:data,manifestPath:manifestPath})}}catch(err){if(err.code!=="ENOENT")throw err}try{const manifestPath=path_1$2.default.join(projectDir,"package.yaml");const manifest=await readPackageYaml(manifestPath);return{fileName:"package.yaml",manifest:manifest,writeProjectManifest:createManifestWriter({initialManifest:manifest,manifestPath:manifestPath})}}catch(err){if(err.code!=="ENOENT")throw err}if((0,is_windows_1.default)()){let s;try{s=await fs_1$2.promises.stat(projectDir)}catch(err){}if(s!=null&&!s.isDirectory()){const err=new Error(`"${projectDir}" is not a directory`);err["code"]="ENOTDIR";throw err}}const filePath=path_1$2.default.join(projectDir,"package.json");return{fileName:"package.json",manifest:null,writeProjectManifest:async manifest=>(0,write_project_manifest_1.writeProjectManifest)(filePath,manifest)}}lib$a.tryReadProjectManifest=tryReadProjectManifest;function detectFileFormattingAndComments(text){const{comments:comments,text:newText,hasFinalNewline:hasFinalNewline}=(0,text_comments_parser_1.extractComments)(text);return{comments:comments,indent:(0,detect_indent_1.default)(newText).indent,insertFinalNewline:hasFinalNewline}}function detectFileFormatting(text){return{indent:(0,detect_indent_1.default)(text).indent,insertFinalNewline:text.endsWith("\n")}}async function readExactProjectManifest(manifestPath){const base=path_1$2.default.basename(manifestPath).toLowerCase();switch(base){case"package.json":{const{data:data,text:text}=await(0,readFile_1.readJsonFile)(manifestPath);return{manifest:data,writeProjectManifest:createManifestWriter({...detectFileFormatting(text),initialManifest:data,manifestPath:manifestPath})}}case"package.json5":{const{data:data,text:text}=await(0,readFile_1.readJson5File)(manifestPath);return{manifest:data,writeProjectManifest:createManifestWriter({...detectFileFormattingAndComments(text),initialManifest:data,manifestPath:manifestPath})}}case"package.yaml":{const manifest=await readPackageYaml(manifestPath);return{manifest:manifest,writeProjectManifest:createManifestWriter({initialManifest:manifest,manifestPath:manifestPath})}}}throw new Error(`Not supported manifest name "${base}"`)}lib$a.readExactProjectManifest=readExactProjectManifest;async function readPackageYaml(filePath){try{return await(0,read_yaml_file_1.default)(filePath)}catch(err){if(err.name!=="YAMLException")throw err;err.message=`${err.message}\nin ${filePath}`;err.code="ERR_PNPM_YAML_PARSE";throw err}}function createManifestWriter(opts){let initialManifest=normalize$1(opts.initialManifest);return async(updatedManifest,force)=>{updatedManifest=normalize$1(updatedManifest);if(force===true||!(0,fast_deep_equal_1.default)(initialManifest,updatedManifest)){await(0,write_project_manifest_1.writeProjectManifest)(opts.manifestPath,updatedManifest,{comments:opts.comments,indent:opts.indent,insertFinalNewline:opts.insertFinalNewline});initialManifest=normalize$1(updatedManifest);return Promise.resolve(undefined)}return Promise.resolve(undefined)}}const dependencyKeys=new Set(["dependencies","devDependencies","optionalDependencies","peerDependencies"]);function normalize$1(manifest){manifest=JSON.parse(JSON.stringify(manifest));const result={};for(const key of Object.keys(manifest)){if(!dependencyKeys.has(key)){result[key]=manifest[key]}else if(Object.keys(manifest[key]).length!==0){result[key]=(0,sort_keys_1.default)(manifest[key])}}return result}const{join:join,basename:basename}=require$$0$6;const normalize=pkg=>!pkg.bin?removeBin(pkg):typeof pkg.bin==="string"?normalizeString(pkg):Array.isArray(pkg.bin)?normalizeArray(pkg):typeof pkg.bin==="object"?normalizeObject(pkg):removeBin(pkg);const normalizeString=pkg=>{if(!pkg.name){return removeBin(pkg)}pkg.bin={[pkg.name]:pkg.bin};return normalizeObject(pkg)};const normalizeArray=pkg=>{pkg.bin=pkg.bin.reduce(((acc,k)=>{acc[basename(k)]=k;return acc}),{});return normalizeObject(pkg)};const removeBin=pkg=>{delete pkg.bin;return pkg};const normalizeObject=pkg=>{const orig=pkg.bin;const clean={};let hasBins=false;Object.keys(orig).forEach((binKey=>{const base=join("/",basename(binKey.replace(/\\|:/g,"/"))).slice(1);if(typeof orig[binKey]!=="string"||!base){return}const binTarget=join("/",orig[binKey]).replace(/\\/g,"/").slice(1);if(!binTarget){return}clean[base]=binTarget;hasBins=true}));if(hasBins){pkg.bin=clean}else{delete pkg.bin}return pkg};var lib$4=normalize;const fs$7=require$$0$1;const path$6=require$$0$6;const EE$1=require$$2$1.EventEmitter;const normalizePackageBin$1=lib$4;let BundleWalker$1=class BundleWalker extends EE$1{constructor(opt){opt=opt||{};super(opt);this.path=path$6.resolve(opt.path||process.cwd());this.parent=opt.parent||null;if(this.parent){this.result=this.parent.result;if(!this.parent.parent){const base=path$6.basename(this.path);const scope=path$6.basename(path$6.dirname(this.path));this.result.add(/^@/.test(scope)?scope+"/"+base:base)}this.root=this.parent.root;this.packageJsonCache=this.parent.packageJsonCache}else{this.result=new Set;this.root=this.path;this.packageJsonCache=opt.packageJsonCache||new Map}this.seen=new Set;this.didDone=false;this.children=0;this.node_modules=[];this.package=null;this.bundle=null}addListener(ev,fn){return this.on(ev,fn)}on(ev,fn){const ret=super.on(ev,fn);if(ev==="done"&&this.didDone){this.emit("done",this.result)}return ret}done(){if(!this.didDone){this.didDone=true;if(!this.parent){const res=Array.from(this.result);this.result=res;this.emit("done",res)}else{this.emit("done")}}}start(){const pj=path$6.resolve(this.path,"package.json");if(this.packageJsonCache.has(pj)){this.onPackage(this.packageJsonCache.get(pj))}else{this.readPackageJson(pj)}return this}readPackageJson(pj){fs$7.readFile(pj,((er,data)=>er?this.done():this.onPackageJson(pj,data)))}onPackageJson(pj,data){try{this.package=normalizePackageBin$1(JSON.parse(data+""))}catch(er){return this.done()}this.packageJsonCache.set(pj,this.package);this.onPackage(this.package)}allDepsBundled(pkg){return Object.keys(pkg.dependencies||{}).concat(Object.keys(pkg.optionalDependencies||{}))}onPackage(pkg){const bdRaw=this.parent?this.allDepsBundled(pkg):pkg.bundleDependencies||pkg.bundledDependencies||[];const bd=Array.from(new Set(Array.isArray(bdRaw)?bdRaw:bdRaw===true?this.allDepsBundled(pkg):Object.keys(bdRaw)));if(!bd.length){return this.done()}this.bundle=bd;this.readModules()}readModules(){readdirNodeModules(this.path+"/node_modules",((er,nm)=>er?this.onReaddir([]):this.onReaddir(nm)))}onReaddir(nm){this.node_modules=nm;this.bundle.forEach((dep=>this.childDep(dep)));if(this.children===0){this.done()}}childDep(dep){if(this.node_modules.indexOf(dep)!==-1){if(!this.seen.has(dep)){this.seen.add(dep);this.child(dep)}}else if(this.parent){this.parent.childDep(dep)}}child(dep){const p=this.path+"/node_modules/"+dep;this.children+=1;const child=new BundleWalker({path:p,parent:this});child.on("done",(_=>{if(--this.children===0){this.done()}}));child.start()}};class BundleWalkerSync extends BundleWalker$1{start(){super.start();this.done();return this}readPackageJson(pj){try{this.onPackageJson(pj,fs$7.readFileSync(pj))}catch{}return this}readModules(){try{this.onReaddir(readdirNodeModulesSync(this.path+"/node_modules"))}catch{this.onReaddir([])}}child(dep){new BundleWalkerSync({path:this.path+"/node_modules/"+dep,parent:this}).start()}}const readdirNodeModules=(nm,cb)=>{fs$7.readdir(nm,((er,set)=>{if(er){cb(er)}else{const scopes=set.filter((f=>/^@/.test(f)));if(!scopes.length){cb(null,set)}else{const unscoped=set.filter((f=>!/^@/.test(f)));let count=scopes.length;scopes.forEach((scope=>{fs$7.readdir(nm+"/"+scope,((readdirEr,pkgs)=>{if(readdirEr||!pkgs.length){unscoped.push(scope)}else{unscoped.push.apply(unscoped,pkgs.map((p=>scope+"/"+p)))}if(--count===0){cb(null,unscoped)}}))}))}}}))};const readdirNodeModulesSync=nm=>{const set=fs$7.readdirSync(nm);const unscoped=set.filter((f=>!/^@/.test(f)));const scopes=set.filter((f=>/^@/.test(f))).map((scope=>{try{const pkgs=fs$7.readdirSync(nm+"/"+scope);return pkgs.length?pkgs.map((p=>scope+"/"+p)):[scope]}catch(er){return[scope]}})).reduce(((a,b)=>a.concat(b)),[]);return unscoped.concat(scopes)};const walk$2=(options,callback)=>{const p=new Promise(((resolve,reject)=>{new BundleWalker$1(options).on("done",resolve).on("error",reject).start()}));return callback?p.then((res=>callback(null,res)),callback):p};const walkSync$1=options=>new BundleWalkerSync(options).start().result;var lib$3=walk$2;walk$2.sync=walkSync$1;walk$2.BundleWalker=BundleWalker$1;walk$2.BundleWalkerSync=BundleWalkerSync;const isWindows$1=typeof process==="object"&&process&&process.platform==="win32";var path$5=isWindows$1?{sep:"\\"}:{sep:"/"};var balancedMatch=balanced$1;function balanced$1(a,b,str){if(a instanceof RegExp)a=maybeMatch(a,str);if(b instanceof RegExp)b=maybeMatch(b,str);var r=range(a,b,str);return r&&{start:r[0],end:r[1],pre:str.slice(0,r[0]),body:str.slice(r[0]+a.length,r[1]),post:str.slice(r[1]+b.length)}}function maybeMatch(reg,str){var m=str.match(reg);return m?m[0]:null}balanced$1.range=range;function range(a,b,str){var begs,beg,left,right,result;var ai=str.indexOf(a);var bi=str.indexOf(b,ai+1);var i=ai;if(ai>=0&&bi>0){if(a===b){return[ai,bi]}begs=[];left=str.length;while(i>=0&&!result){if(i==ai){begs.push(i);ai=str.indexOf(a,i+1)}else if(begs.length==1){result=[begs.pop(),bi]}else{beg=begs.pop();if(beg<left){left=beg;right=bi}bi=str.indexOf(b,i+1)}i=ai<bi&&ai>=0?ai:bi}if(begs.length){result=[left,right]}}return result}var balanced=balancedMatch;var braceExpansion=expandTop;var escSlash="\0SLASH"+Math.random()+"\0";var escOpen="\0OPEN"+Math.random()+"\0";var escClose="\0CLOSE"+Math.random()+"\0";var escComma="\0COMMA"+Math.random()+"\0";var escPeriod="\0PERIOD"+Math.random()+"\0";function numeric(str){return parseInt(str,10)==str?parseInt(str,10):str.charCodeAt(0)}function escapeBraces(str){return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod)}function unescapeBraces(str){return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".")}function parseCommaParts(str){if(!str)return[""];var parts=[];var m=balanced("{","}",str);if(!m)return str.split(",");var pre=m.pre;var body=m.body;var post=m.post;var p=pre.split(",");p[p.length-1]+="{"+body+"}";var postParts=parseCommaParts(post);if(post.length){p[p.length-1]+=postParts.shift();p.push.apply(p,postParts)}parts.push.apply(parts,p);return parts}function expandTop(str){if(!str)return[];if(str.substr(0,2)==="{}"){str="\\{\\}"+str.substr(2)}return expand$1(escapeBraces(str),true).map(unescapeBraces)}function embrace(str){return"{"+str+"}"}function isPadded(el){return/^-?0\d/.test(el)}function lte(i,y){return i<=y}function gte(i,y){return i>=y}function expand$1(str,isTop){var expansions=[];var m=balanced("{","}",str);if(!m)return[str];var pre=m.pre;var post=m.post.length?expand$1(m.post,false):[""];if(/\$$/.test(m.pre)){for(var k=0;k<post.length;k++){var expansion=pre+"{"+m.body+"}"+post[k];expansions.push(expansion)}}else{var isNumericSequence=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);var isAlphaSequence=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);var isSequence=isNumericSequence||isAlphaSequence;var isOptions=m.body.indexOf(",")>=0;if(!isSequence&&!isOptions){if(m.post.match(/,.*\}/)){str=m.pre+"{"+m.body+escClose+m.post;return expand$1(str)}return[str]}var n;if(isSequence){n=m.body.split(/\.\./)}else{n=parseCommaParts(m.body);if(n.length===1){n=expand$1(n[0],false).map(embrace);if(n.length===1){return post.map((function(p){return m.pre+n[0]+p}))}}}var N;if(isSequence){var x=numeric(n[0]);var y=numeric(n[1]);var width=Math.max(n[0].length,n[1].length);var incr=n.length==3?Math.abs(numeric(n[2])):1;var test=lte;var reverse=y<x;if(reverse){incr*=-1;test=gte}var pad=n.some(isPadded);N=[];for(var i=x;test(i,y);i+=incr){var c;if(isAlphaSequence){c=String.fromCharCode(i);if(c==="\\")c=""}else{c=String(i);if(pad){var need=width-c.length;if(need>0){var z=new Array(need+1).join("0");if(i<0)c="-"+z+c.slice(1);else c=z+c}}}N.push(c)}}else{N=[];for(var j=0;j<n.length;j++){N.push.apply(N,expand$1(n[j],false))}}for(var j=0;j<N.length;j++){for(var k=0;k<post.length;k++){var expansion=pre+N[j]+post[k];if(!isTop||isSequence||expansion)expansions.push(expansion)}}}return expansions}const minimatch$1=minimatch_1=(p,pattern,options={})=>{assertValidPattern(pattern);if(!options.nocomment&&pattern.charAt(0)==="#"){return false}return new Minimatch$2(pattern,options).match(p)};var minimatch_1=minimatch$1;const path$4=path$5;minimatch$1.sep=path$4.sep;const GLOBSTAR=Symbol("globstar **");minimatch$1.GLOBSTAR=GLOBSTAR;const expand=braceExpansion;const plTypes={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const qmark="[^/]";const star=qmark+"*?";const twoStarDot="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const twoStarNoDot="(?:(?!(?:\\/|^)\\.).)*?";const charSet=s=>s.split("").reduce(((set,c)=>{set[c]=true;return set}),{});const reSpecials=charSet("().*{}+?[]^$\\!");const addPatternStartSet=charSet("[.(");const slashSplit=/\/+/;minimatch$1.filter=(pattern,options={})=>(p,i,list)=>minimatch$1(p,pattern,options);const ext=(a,b={})=>{const t={};Object.keys(a).forEach((k=>t[k]=a[k]));Object.keys(b).forEach((k=>t[k]=b[k]));return t};minimatch$1.defaults=def=>{if(!def||typeof def!=="object"||!Object.keys(def).length){return minimatch$1}const orig=minimatch$1;const m=(p,pattern,options)=>orig(p,pattern,ext(def,options));m.Minimatch=class Minimatch extends orig.Minimatch{constructor(pattern,options){super(pattern,ext(def,options))}};m.Minimatch.defaults=options=>orig.defaults(ext(def,options)).Minimatch;m.filter=(pattern,options)=>orig.filter(pattern,ext(def,options));m.defaults=options=>orig.defaults(ext(def,options));m.makeRe=(pattern,options)=>orig.makeRe(pattern,ext(def,options));m.braceExpand=(pattern,options)=>orig.braceExpand(pattern,ext(def,options));m.match=(list,pattern,options)=>orig.match(list,pattern,ext(def,options));return m};minimatch$1.braceExpand=(pattern,options)=>braceExpand(pattern,options);const braceExpand=(pattern,options={})=>{assertValidPattern(pattern);if(options.nobrace||!/\{(?:(?!\{).)*\}/.test(pattern)){return[pattern]}return expand(pattern)};const MAX_PATTERN_LENGTH=1024*64;const assertValidPattern=pattern=>{if(typeof pattern!=="string"){throw new TypeError("invalid pattern")}if(pattern.length>MAX_PATTERN_LENGTH){throw new TypeError("pattern is too long")}};const SUBPARSE=Symbol("subparse");minimatch$1.makeRe=(pattern,options)=>new Minimatch$2(pattern,options||{}).makeRe();minimatch$1.match=(list,pattern,options={})=>{const mm=new Minimatch$2(pattern,options);list=list.filter((f=>mm.match(f)));if(mm.options.nonull&&!list.length){list.push(pattern)}return list};const globUnescape=s=>s.replace(/\\(.)/g,"$1");const charUnescape=s=>s.replace(/\\([^-\]])/g,"$1");const regExpEscape=s=>s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=s=>s.replace(/[[\]\\]/g,"\\$&");let Minimatch$2=class Minimatch{constructor(pattern,options){assertValidPattern(pattern);if(!options)options={};this.options=options;this.set=[];this.pattern=pattern;this.windowsPathsNoEscape=!!options.windowsPathsNoEscape||options.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=!!options.partial;this.make()}debug(){}make(){const pattern=this.pattern;const options=this.options;if(!options.nocomment&&pattern.charAt(0)==="#"){this.comment=true;return}if(!pattern){this.empty=true;return}this.parseNegate();let set=this.globSet=this.braceExpand();if(options.debug)this.debug=(...args)=>console.error(...args);this.debug(this.pattern,set);set=this.globParts=set.map((s=>s.split(slashSplit)));this.debug(this.pattern,set);set=set.map(((s,si,set)=>s.map(this.parse,this)));this.debug(this.pattern,set);set=set.filter((s=>s.indexOf(false)===-1));this.debug(this.pattern,set);this.set=set}parseNegate(){if(this.options.nonegate)return;const pattern=this.pattern;let negate=false;let negateOffset=0;for(let i=0;i<pattern.length&&pattern.charAt(i)==="!";i++){negate=!negate;negateOffset++}if(negateOffset)this.pattern=pattern.slice(negateOffset);this.negate=negate}matchOne(file,pattern,partial){var options=this.options;this.debug("matchOne",{this:this,file:file,pattern:pattern});this.debug("matchOne",file.length,pattern.length);for(var fi=0,pi=0,fl=file.length,pl=pattern.length;fi<fl&&pi<pl;fi++,pi++){this.debug("matchOne loop");var p=pattern[pi];var f=file[fi];this.debug(pattern,p,f);if(p===false)return false;if(p===GLOBSTAR){this.debug("GLOBSTAR",[pattern,p,f]);var fr=fi;var pr=pi+1;if(pr===pl){this.debug("** at the end");for(;fi<fl;fi++){if(file[fi]==="."||file[fi]===".."||!options.dot&&file[fi].charAt(0)===".")return false}return true}while(fr<fl){var swallowee=file[fr];this.debug("\nglobstar while",file,fr,pattern,pr,swallowee);if(this.matchOne(file.slice(fr),pattern.slice(pr),partial)){this.debug("globstar found match!",fr,fl,swallowee);return true}else{if(swallowee==="."||swallowee===".."||!options.dot&&swallowee.charAt(0)==="."){this.debug("dot detected!",file,fr,pattern,pr);break}this.debug("globstar swallow a segment, and continue");fr++}}if(partial){this.debug("\n>>> no match, partial?",file,fr,pattern,pr);if(fr===fl)return true}return false}var hit;if(typeof p==="string"){hit=f===p;this.debug("string match",p,f,hit)}else{hit=f.match(p);this.debug("pattern match",p,f,hit)}if(!hit)return false}if(fi===fl&&pi===pl){return true}else if(fi===fl){return partial}else if(pi===pl){return fi===fl-1&&file[fi]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(pattern,isSub){assertValidPattern(pattern);const options=this.options;if(pattern==="**"){if(!options.noglobstar)return GLOBSTAR;else pattern="*"}if(pattern==="")return"";let re="";let hasMagic=false;let escaping=false;const patternListStack=[];const negativeLists=[];let stateChar;let inClass=false;let reClassStart=-1;let classStart=-1;let cs;let pl;let sp;let dotTravAllowed=pattern.charAt(0)===".";let dotFileAllowed=options.dot||dotTravAllowed;const patternStart=()=>dotTravAllowed?"":dotFileAllowed?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=p=>p.charAt(0)==="."?"":options.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(stateChar){switch(stateChar){case"*":re+=star;hasMagic=true;break;case"?":re+=qmark;hasMagic=true;break;default:re+="\\"+stateChar;break}this.debug("clearStateChar %j %j",stateChar,re);stateChar=false}};for(let i=0,c;i<pattern.length&&(c=pattern.charAt(i));i++){this.debug("%s\t%s %s %j",pattern,i,re,c);if(escaping){if(c==="/"){return false}if(reSpecials[c]){re+="\\"}re+=c;escaping=false;continue}switch(c){case"/":{return false}case"\\":if(inClass&&pattern.charAt(i+1)==="-"){re+=c;continue}clearStateChar();escaping=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",pattern,i,re,c);if(inClass){this.debug(" in class");if(c==="!"&&i===classStart+1)c="^";re+=c;continue}this.debug("call clearStateChar %j",stateChar);clearStateChar();stateChar=c;if(options.noext)clearStateChar();continue;case"(":{if(inClass){re+="(";continue}if(!stateChar){re+="\\(";continue}const plEntry={type:stateChar,start:i-1,reStart:re.length,open:plTypes[stateChar].open,close:plTypes[stateChar].close};this.debug(this.pattern,"\t",plEntry);patternListStack.push(plEntry);re+=plEntry.open;if(plEntry.start===0&&plEntry.type!=="!"){dotTravAllowed=true;re+=subPatternStart(pattern.slice(i+1))}this.debug("plType %j %j",stateChar,re);stateChar=false;continue}case")":{const plEntry=patternListStack[patternListStack.length-1];if(inClass||!plEntry){re+="\\)";continue}patternListStack.pop();clearStateChar();hasMagic=true;pl=plEntry;re+=pl.close;if(pl.type==="!"){negativeLists.push(Object.assign(pl,{reEnd:re.length}))}continue}case"|":{const plEntry=patternListStack[patternListStack.length-1];if(inClass||!plEntry){re+="\\|";continue}clearStateChar();re+="|";if(plEntry.start===0&&plEntry.type!=="!"){dotTravAllowed=true;re+=subPatternStart(pattern.slice(i+1))}continue}case"[":clearStateChar();if(inClass){re+="\\"+c;continue}inClass=true;classStart=i;reClassStart=re.length;re+=c;continue;case"]":if(i===classStart+1||!inClass){re+="\\"+c;continue}cs=pattern.substring(classStart+1,i);try{RegExp("["+braExpEscape(charUnescape(cs))+"]");re+=c}catch(er){re=re.substring(0,reClassStart)+"(?:$.)"}hasMagic=true;inClass=false;continue;default:clearStateChar();if(reSpecials[c]&&!(c==="^"&&inClass)){re+="\\"}re+=c;break}}if(inClass){cs=pattern.slice(classStart+1);sp=this.parse(cs,SUBPARSE);re=re.substring(0,reClassStart)+"\\["+sp[0];hasMagic=hasMagic||sp[1]}for(pl=patternListStack.pop();pl;pl=patternListStack.pop()){let tail;tail=re.slice(pl.reStart+pl.open.length);this.debug("setting tail",re,pl);tail=tail.replace(/((?:\\{2}){0,64})(\\?)\|/g,((_,$1,$2)=>{if(!$2){$2="\\"}return $1+$1+$2+"|"}));this.debug("tail=%j\n %s",tail,tail,pl,re);const t=pl.type==="*"?star:pl.type==="?"?qmark:"\\"+pl.type;hasMagic=true;re=re.slice(0,pl.reStart)+t+"\\("+tail}clearStateChar();if(escaping){re+="\\\\"}const addPatternStart=addPatternStartSet[re.charAt(0)];for(let n=negativeLists.length-1;n>-1;n--){const nl=negativeLists[n];const nlBefore=re.slice(0,nl.reStart);const nlFirst=re.slice(nl.reStart,nl.reEnd-8);let nlAfter=re.slice(nl.reEnd);const nlLast=re.slice(nl.reEnd-8,nl.reEnd)+nlAfter;const closeParensBefore=nlBefore.split(")").length;const openParensBefore=nlBefore.split("(").length-closeParensBefore;let cleanAfter=nlAfter;for(let i=0;i<openParensBefore;i++){cleanAfter=cleanAfter.replace(/\)[+*?]?/,"")}nlAfter=cleanAfter;const dollar=nlAfter===""&&isSub!==SUBPARSE?"(?:$|\\/)":"";re=nlBefore+nlFirst+nlAfter+dollar+nlLast}if(re!==""&&hasMagic){re="(?=.)"+re}if(addPatternStart){re=patternStart()+re}if(isSub===SUBPARSE){return[re,hasMagic]}if(options.nocase&&!hasMagic){hasMagic=pattern.toUpperCase()!==pattern.toLowerCase()}if(!hasMagic){return globUnescape(pattern)}const flags=options.nocase?"i":"";try{return Object.assign(new RegExp("^"+re+"$",flags),{_glob:pattern,_src:re})}catch(er){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const set=this.set;if(!set.length){this.regexp=false;return this.regexp}const options=this.options;const twoStar=options.noglobstar?star:options.dot?twoStarDot:twoStarNoDot;const flags=options.nocase?"i":"";let re=set.map((pattern=>{pattern=pattern.map((p=>typeof p==="string"?regExpEscape(p):p===GLOBSTAR?GLOBSTAR:p._src)).reduce(((set,p)=>{if(!(set[set.length-1]===GLOBSTAR&&p===GLOBSTAR)){set.push(p)}return set}),[]);pattern.forEach(((p,i)=>{if(p!==GLOBSTAR||pattern[i-1]===GLOBSTAR){return}if(i===0){if(pattern.length>1){pattern[i+1]="(?:\\/|"+twoStar+"\\/)?"+pattern[i+1]}else{pattern[i]=twoStar}}else if(i===pattern.length-1){pattern[i-1]+="(?:\\/|"+twoStar+")?"}else{pattern[i-1]+="(?:\\/|\\/"+twoStar+"\\/)"+pattern[i+1];pattern[i+1]=GLOBSTAR}}));return pattern.filter((p=>p!==GLOBSTAR)).join("/")})).join("|");re="^(?:"+re+")$";if(this.negate)re="^(?!"+re+").*$";try{this.regexp=new RegExp(re,flags)}catch(ex){this.regexp=false}return this.regexp}match(f,partial=this.partial){this.debug("match",f,this.pattern);if(this.comment)return false;if(this.empty)return f==="";if(f==="/"&&partial)return true;const options=this.options;if(path$4.sep!=="/"){f=f.split(path$4.sep).join("/")}f=f.split(slashSplit);this.debug(this.pattern,"split",f);const set=this.set;this.debug(this.pattern,"set",set);let filename;for(let i=f.length-1;i>=0;i--){filename=f[i];if(filename)break}for(let i=0;i<set.length;i++){const pattern=set[i];let file=f;if(options.matchBase&&pattern.length===1){file=[filename]}const hit=this.matchOne(file,pattern,partial);if(hit){if(options.flipNegate)return true;return!this.negate}}if(options.flipNegate)return false;return this.negate}static defaults(def){return minimatch$1.defaults(def).Minimatch}};minimatch$1.Minimatch=Minimatch$2;const fs$6=require$$0$1;const path$3=require$$0$6;const EE=require$$2$1.EventEmitter;const Minimatch$1=minimatch_1.Minimatch;let Walker$1=class Walker extends EE{constructor(opts){opts=opts||{};super(opts);this.isSymbolicLink=opts.isSymbolicLink;this.path=opts.path||process.cwd();this.basename=path$3.basename(this.path);this.ignoreFiles=opts.ignoreFiles||[".ignore"];this.ignoreRules={};this.parent=opts.parent||null;this.includeEmpty=!!opts.includeEmpty;this.root=this.parent?this.parent.root:this.path;this.follow=!!opts.follow;this.result=this.parent?this.parent.result:new Set;this.entries=null;this.sawError=false}sort(a,b){return a.localeCompare(b,"en")}emit(ev,data){let ret=false;if(!(this.sawError&&ev==="error")){if(ev==="error"){this.sawError=true}else if(ev==="done"&&!this.parent){data=Array.from(data).map((e=>/^@/.test(e)?`./${e}`:e)).sort(this.sort);this.result=data}if(ev==="error"&&this.parent){ret=this.parent.emit("error",data)}else{ret=super.emit(ev,data)}}return ret}start(){fs$6.readdir(this.path,((er,entries)=>er?this.emit("error",er):this.onReaddir(entries)));return this}isIgnoreFile(e){return e!=="."&&e!==".."&&this.ignoreFiles.indexOf(e)!==-1}onReaddir(entries){this.entries=entries;if(entries.length===0){if(this.includeEmpty){this.result.add(this.path.slice(this.root.length+1))}this.emit("done",this.result)}else{const hasIg=this.entries.some((e=>this.isIgnoreFile(e)));if(hasIg){this.addIgnoreFiles()}else{this.filterEntries()}}}addIgnoreFiles(){const newIg=this.entries.filter((e=>this.isIgnoreFile(e)));let igCount=newIg.length;const then=_=>{if(--igCount===0){this.filterEntries()}};newIg.forEach((e=>this.addIgnoreFile(e,then)))}addIgnoreFile(file,then){const ig=path$3.resolve(this.path,file);fs$6.readFile(ig,"utf8",((er,data)=>er?this.emit("error",er):this.onReadIgnoreFile(file,data,then)))}onReadIgnoreFile(file,data,then){const mmopt={matchBase:true,dot:true,flipNegate:true,nocase:true};const rules=data.split(/\r?\n/).filter((line=>!/^#|^$/.test(line.trim()))).map((rule=>new Minimatch$1(rule.trim(),mmopt)));this.ignoreRules[file]=rules;then()}filterEntries(){const filtered=this.entries.map((entry=>{const passFile=this.filterEntry(entry);const passDir=this.filterEntry(entry,true);return passFile||passDir?[entry,passFile,passDir]:false})).filter((e=>e));let entryCount=filtered.length;if(entryCount===0){this.emit("done",this.result)}else{const then=_=>{if(--entryCount===0){this.emit("done",this.result)}};filtered.forEach((filt=>{const entry=filt[0];const file=filt[1];const dir=filt[2];this.stat({entry:entry,file:file,dir:dir},then)}))}}onstat({st:st,entry:entry,file:file,dir:dir,isSymbolicLink:isSymbolicLink},then){const abs=this.path+"/"+entry;if(!st.isDirectory()){if(file){this.result.add(abs.slice(this.root.length+1))}then()}else{if(dir){this.walker(entry,{isSymbolicLink:isSymbolicLink},then)}else{then()}}}stat({entry:entry,file:file,dir:dir},then){const abs=this.path+"/"+entry;fs$6.lstat(abs,((lstatErr,lstatResult)=>{if(lstatErr){this.emit("error",lstatErr)}else{const isSymbolicLink=lstatResult.isSymbolicLink();if(this.follow&&isSymbolicLink){fs$6.stat(abs,((statErr,statResult)=>{if(statErr){this.emit("error",statErr)}else{this.onstat({st:statResult,entry:entry,file:file,dir:dir,isSymbolicLink:isSymbolicLink},then)}}))}else{this.onstat({st:lstatResult,entry:entry,file:file,dir:dir,isSymbolicLink:isSymbolicLink},then)}}}))}walkerOpt(entry,opts){return{path:this.path+"/"+entry,parent:this,ignoreFiles:this.ignoreFiles,follow:this.follow,includeEmpty:this.includeEmpty,...opts}}walker(entry,opts,then){new Walker(this.walkerOpt(entry,opts)).on("done",then).start()}filterEntry(entry,partial){let included=true;if(this.parent&&this.parent.filterEntry){var pt=this.basename+"/"+entry;included=this.parent.filterEntry(pt,partial)}this.ignoreFiles.forEach((f=>{if(this.ignoreRules[f]){this.ignoreRules[f].forEach((rule=>{if(rule.negate!==included){const match=rule.match("/"+entry)||rule.match(entry)||!!partial&&(rule.match("/"+entry+"/")||rule.match(entry+"/"))||!!partial&&rule.negate&&(rule.match("/"+entry,true)||rule.match(entry,true));if(match){included=rule.negate}}}))}}));return included}};class WalkerSync extends Walker$1{start(){this.onReaddir(fs$6.readdirSync(this.path));return this}addIgnoreFile(file,then){const ig=path$3.resolve(this.path,file);this.onReadIgnoreFile(file,fs$6.readFileSync(ig,"utf8"),then)}stat({entry:entry,file:file,dir:dir},then){const abs=this.path+"/"+entry;let st=fs$6.lstatSync(abs);const isSymbolicLink=st.isSymbolicLink();if(this.follow&&isSymbolicLink){st=fs$6.statSync(abs)}this.onstat({st:st,entry:entry,file:file,dir:dir,isSymbolicLink:isSymbolicLink},then)}walker(entry,opts,then){new WalkerSync(this.walkerOpt(entry,opts)).start();then()}}const walk$1=(opts,callback)=>{const p=new Promise(((resolve,reject)=>{new Walker$1(opts).on("done",resolve).on("error",reject).start()}));return callback?p.then((res=>callback(null,res)),callback):p};const walkSync=opts=>new WalkerSync(opts).start().result;var lib$2=walk$1;walk$1.sync=walkSync;walk$1.Walker=Walker$1;walk$1.WalkerSync=WalkerSync;var old$1={};var pathModule=require$$0$6;var isWindows=process.platform==="win32";var fs$5=require$$0$1;var DEBUG=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var callback;if(DEBUG){var backtrace=new Error;callback=debugCallback}else callback=missingCallback;return callback;function debugCallback(err){if(err){backtrace.message=err.message;err=backtrace;missingCallback(err)}}function missingCallback(err){if(err){if(process.throwDeprecation)throw err;else if(!process.noDeprecation){var msg="fs: missing callback "+(err.stack||err.message);if(process.traceDeprecation)console.trace(msg);else console.error(msg)}}}}function maybeCallback(cb){return typeof cb==="function"?cb:rethrow()}pathModule.normalize;if(isWindows){var nextPartRe=/(.*?)(?:[\/\\]+|$)/g}else{var nextPartRe=/(.*?)(?:[\/]+|$)/g}if(isWindows){var splitRootRe=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var splitRootRe=/^[\/]*/}old$1.realpathSync=function realpathSync(p,cache){p=pathModule.resolve(p);if(cache&&Object.prototype.hasOwnProperty.call(cache,p)){return cache[p]}var original=p,seenLinks={},knownHard={};var pos;var current;var base;var previous;start();function start(){var m=splitRootRe.exec(p);pos=m[0].length;current=m[0];base=m[0];previous="";if(isWindows&&!knownHard[base]){fs$5.lstatSync(base);knownHard[base]=true}}while(pos<p.length){nextPartRe.lastIndex=pos;var result=nextPartRe.exec(p);previous=current;current+=result[0];base=previous+result[1];pos=nextPartRe.lastIndex;if(knownHard[base]||cache&&cache[base]===base){continue}var resolvedLink;if(cache&&Object.prototype.hasOwnProperty.call(cache,base)){resolvedLink=cache[base]}else{var stat=fs$5.lstatSync(base);if(!stat.isSymbolicLink()){knownHard[base]=true;if(cache)cache[base]=base;continue}var linkTarget=null;if(!isWindows){var id=stat.dev.toString(32)+":"+stat.ino.toString(32);if(seenLinks.hasOwnProperty(id)){linkTarget=seenLinks[id]}}if(linkTarget===null){fs$5.statSync(base);linkTarget=fs$5.readlinkSync(base)}resolvedLink=pathModule.resolve(previous,linkTarget);if(cache)cache[base]=resolvedLink;if(!isWindows)seenLinks[id]=linkTarget}p=pathModule.resolve(resolvedLink,p.slice(pos));start()}if(cache)cache[original]=p;return p};old$1.realpath=function realpath(p,cache,cb){if(typeof cb!=="function"){cb=maybeCallback(cache);cache=null}p=pathModule.resolve(p);if(cache&&Object.prototype.hasOwnProperty.call(cache,p)){return process.nextTick(cb.bind(null,null,cache[p]))}var original=p,seenLinks={},knownHard={};var pos;var current;var base;var previous;start();function start(){var m=splitRootRe.exec(p);pos=m[0].length;current=m[0];base=m[0];previous="";if(isWindows&&!knownHard[base]){fs$5.lstat(base,(function(err){if(err)return cb(err);knownHard[base]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(pos>=p.length){if(cache)cache[original]=p;return cb(null,p)}nextPartRe.lastIndex=pos;var result=nextPartRe.exec(p);previous=current;current+=result[0];base=previous+result[1];pos=nextPartRe.lastIndex;if(knownHard[base]||cache&&cache[base]===base){return process.nextTick(LOOP)}if(cache&&Object.prototype.hasOwnProperty.call(cache,base)){return gotResolvedLink(cache[base])}return fs$5.lstat(base,gotStat)}function gotStat(err,stat){if(err)return cb(err);if(!stat.isSymbolicLink()){knownHard[base]=true;if(cache)cache[base]=base;return process.nextTick(LOOP)}if(!isWindows){var id=stat.dev.toString(32)+":"+stat.ino.toString(32);if(seenLinks.hasOwnProperty(id)){return gotTarget(null,seenLinks[id],base)}}fs$5.stat(base,(function(err){if(err)return cb(err);fs$5.readlink(base,(function(err,target){if(!isWindows)seenLinks[id]=target;gotTarget(err,target)}))}))}function gotTarget(err,target,base){if(err)return cb(err);var resolvedLink=pathModule.resolve(previous,target);if(cache)cache[base]=resolvedLink;gotResolvedLink(resolvedLink)}function gotResolvedLink(resolvedLink){p=pathModule.resolve(resolvedLink,p.slice(pos));start()}};var fs_realpath=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var fs$4=require$$0$1;var origRealpath=fs$4.realpath;var origRealpathSync=fs$4.realpathSync;var version=process.version;var ok=/^v[0-5]\./.test(version);var old=old$1;function newError(er){return er&&er.syscall==="realpath"&&(er.code==="ELOOP"||er.code==="ENOMEM"||er.code==="ENAMETOOLONG")}function realpath(p,cache,cb){if(ok){return origRealpath(p,cache,cb)}if(typeof cache==="function"){cb=cache;cache=null}origRealpath(p,cache,(function(er,result){if(newError(er)){old.realpath(p,cache,cb)}else{cb(er,result)}}))}function realpathSync(p,cache){if(ok){return origRealpathSync(p,cache)}try{return origRealpathSync(p,cache)}catch(er){if(newError(er)){return old.realpathSync(p,cache)}else{throw er}}}function monkeypatch(){fs$4.realpath=realpath;fs$4.realpathSync=realpathSync}function unmonkeypatch(){fs$4.realpath=origRealpath;fs$4.realpathSync=origRealpathSync}var inherits={exports:{}};var inherits_browser={exports:{}};var hasRequiredInherits_browser;function requireInherits_browser(){if(hasRequiredInherits_browser)return inherits_browser.exports;hasRequiredInherits_browser=1;if(typeof Object.create==="function"){inherits_browser.exports=function inherits(ctor,superCtor){if(superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}})}}}else{inherits_browser.exports=function inherits(ctor,superCtor){if(superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}}}return inherits_browser.exports}try{var util=require("util");if(typeof util.inherits!=="function")throw"";inherits.exports=util.inherits}catch(e){inherits.exports=requireInherits_browser()}var inheritsExports=inherits.exports;var common={};common.setopts=setopts;common.ownProp=ownProp;common.makeAbs=makeAbs;common.finish=finish;common.mark=mark;common.isIgnored=isIgnored;common.childrenIgnored=childrenIgnored;function ownProp(obj,field){return Object.prototype.hasOwnProperty.call(obj,field)}var fs$3=require$$0$1;var path$2=require$$0$6;var minimatch=minimatch_1;var isAbsolute=require$$0$6.isAbsolute;var Minimatch=minimatch.Minimatch;function alphasort(a,b){return a.localeCompare(b,"en")}function setupIgnores(self,options){self.ignore=options.ignore||[];if(!Array.isArray(self.ignore))self.ignore=[self.ignore];if(self.ignore.length){self.ignore=self.ignore.map(ignoreMap)}}function ignoreMap(pattern){var gmatcher=null;if(pattern.slice(-3)==="/**"){var gpattern=pattern.replace(/(\/\*\*)+$/,"");gmatcher=new Minimatch(gpattern,{dot:true})}return{matcher:new Minimatch(pattern,{dot:true}),gmatcher:gmatcher}}function setopts(self,pattern,options){if(!options)options={};if(options.matchBase&&-1===pattern.indexOf("/")){if(options.noglobstar){throw new Error("base matching requires globstar")}pattern="**/"+pattern}self.windowsPathsNoEscape=!!options.windowsPathsNoEscape||options.allowWindowsEscape===false;if(self.windowsPathsNoEscape){pattern=pattern.replace(/\\/g,"/")}self.silent=!!options.silent;self.pattern=pattern;self.strict=options.strict!==false;self.realpath=!!options.realpath;self.realpathCache=options.realpathCache||Object.create(null);self.follow=!!options.follow;self.dot=!!options.dot;self.mark=!!options.mark;self.nodir=!!options.nodir;if(self.nodir)self.mark=true;self.sync=!!options.sync;self.nounique=!!options.nounique;self.nonull=!!options.nonull;self.nosort=!!options.nosort;self.nocase=!!options.nocase;self.stat=!!options.stat;self.noprocess=!!options.noprocess;self.absolute=!!options.absolute;self.fs=options.fs||fs$3;self.maxLength=options.maxLength||Infinity;self.cache=options.cache||Object.create(null);self.statCache=options.statCache||Object.create(null);self.symlinks=options.symlinks||Object.create(null);setupIgnores(self,options);self.changedCwd=false;var cwd=process.cwd();if(!ownProp(options,"cwd"))self.cwd=path$2.resolve(cwd);else{self.cwd=path$2.resolve(options.cwd);self.changedCwd=self.cwd!==cwd}self.root=options.root||path$2.resolve(self.cwd,"/");self.root=path$2.resolve(self.root);self.cwdAbs=isAbsolute(self.cwd)?self.cwd:makeAbs(self,self.cwd);self.nomount=!!options.nomount;if(process.platform==="win32"){self.root=self.root.replace(/\\/g,"/");self.cwd=self.cwd.replace(/\\/g,"/");self.cwdAbs=self.cwdAbs.replace(/\\/g,"/")}options.nonegate=true;options.nocomment=true;self.minimatch=new Minimatch(pattern,options);self.options=self.minimatch.options}function finish(self){var nou=self.nounique;var all=nou?[]:Object.create(null);for(var i=0,l=self.matches.length;i<l;i++){var matches=self.matches[i];if(!matches||Object.keys(matches).length===0){if(self.nonull){var literal=self.minimatch.globSet[i];if(nou)all.push(literal);else all[literal]=true}}else{var m=Object.keys(matches);if(nou)all.push.apply(all,m);else m.forEach((function(m){all[m]=true}))}}if(!nou)all=Object.keys(all);if(!self.nosort)all=all.sort(alphasort);if(self.mark){for(var i=0;i<all.length;i++){all[i]=self._mark(all[i])}if(self.nodir){all=all.filter((function(e){var notDir=!/\/$/.test(e);var c=self.cache[e]||self.cache[makeAbs(self,e)];if(notDir&&c)notDir=c!=="DIR"&&!Array.isArray(c);return notDir}))}}if(self.ignore.length)all=all.filter((function(m){return!isIgnored(self,m)}));self.found=all}function mark(self,p){var abs=makeAbs(self,p);var c=self.cache[abs];var m=p;if(c){var isDir=c==="DIR"||Array.isArray(c);var slash=p.slice(-1)==="/";if(isDir&&!slash)m+="/";else if(!isDir&&slash)m=m.slice(0,-1);if(m!==p){var mabs=makeAbs(self,m);self.statCache[mabs]=self.statCache[abs];self.cache[mabs]=self.cache[abs]}}return m}function makeAbs(self,f){var abs=f;if(f.charAt(0)==="/"){abs=path$2.join(self.root,f)}else if(isAbsolute(f)||f===""){abs=f}else if(self.changedCwd){abs=path$2.resolve(self.cwd,f)}else{abs=path$2.resolve(f)}if(process.platform==="win32")abs=abs.replace(/\\/g,"/");return abs}function isIgnored(self,path){if(!self.ignore.length)return false;return self.ignore.some((function(item){return item.matcher.match(path)||!!(item.gmatcher&&item.gmatcher.match(path))}))}function childrenIgnored(self,path){if(!self.ignore.length)return false;return self.ignore.some((function(item){return!!(item.gmatcher&&item.gmatcher.match(path))}))}var sync;var hasRequiredSync;function requireSync(){if(hasRequiredSync)return sync;hasRequiredSync=1;sync=globSync;globSync.GlobSync=GlobSync;var rp=fs_realpath;var minimatch=minimatch_1;minimatch.Minimatch;requireGlob().Glob;var path=require$$0$6;var assert=require$$5;var isAbsolute=require$$0$6.isAbsolute;var common$1=common;var setopts=common$1.setopts;var ownProp=common$1.ownProp;var childrenIgnored=common$1.childrenIgnored;var isIgnored=common$1.isIgnored;function globSync(pattern,options){if(typeof options==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(pattern,options).found}function GlobSync(pattern,options){if(!pattern)throw new Error("must provide pattern");if(typeof options==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(pattern,options);setopts(this,pattern,options);if(this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var i=0;i<n;i++){this._process(this.minimatch.set[i],i,false)}this._finish()}GlobSync.prototype._finish=function(){assert.ok(this instanceof GlobSync);if(this.realpath){var self=this;this.matches.forEach((function(matchset,index){var set=self.matches[index]=Object.create(null);for(var p in matchset){try{p=self._makeAbs(p);var real=rp.realpathSync(p,self.realpathCache);set[real]=true}catch(er){if(er.syscall==="stat")set[self._makeAbs(p)]=true;else throw er}}}))}common$1.finish(this)};GlobSync.prototype._process=function(pattern,index,inGlobStar){assert.ok(this instanceof GlobSync);var n=0;while(typeof pattern[n]==="string"){n++}var prefix;switch(n){case pattern.length:this._processSimple(pattern.join("/"),index);return;case 0:prefix=null;break;default:prefix=pattern.slice(0,n).join("/");break}var remain=pattern.slice(n);var read;if(prefix===null)read=".";else if(isAbsolute(prefix)||isAbsolute(pattern.map((function(p){return typeof p==="string"?p:"[*]"})).join("/"))){if(!prefix||!isAbsolute(prefix))prefix="/"+prefix;read=prefix}else read=prefix;var abs=this._makeAbs(read);if(childrenIgnored(this,read))return;var isGlobStar=remain[0]===minimatch.GLOBSTAR;if(isGlobStar)this._processGlobStar(prefix,read,abs,remain,index,inGlobStar);else this._processReaddir(prefix,read,abs,remain,index,inGlobStar)};GlobSync.prototype._processReaddir=function(prefix,read,abs,remain,index,inGlobStar){var entries=this._readdir(abs,inGlobStar);if(!entries)return;var pn=remain[0];var negate=!!this.minimatch.negate;var rawGlob=pn._glob;var dotOk=this.dot||rawGlob.charAt(0)===".";var matchedEntries=[];for(var i=0;i<entries.length;i++){var e=entries[i];if(e.charAt(0)!=="."||dotOk){var m;if(negate&&!prefix){m=!e.match(pn)}else{m=e.match(pn)}if(m)matchedEntries.push(e)}}var len=matchedEntries.length;if(len===0)return;if(remain.length===1&&!this.mark&&!this.stat){if(!this.matches[index])this.matches[index]=Object.create(null);for(var i=0;i<len;i++){var e=matchedEntries[i];if(prefix){if(prefix.slice(-1)!=="/")e=prefix+"/"+e;else e=prefix+e}if(e.charAt(0)==="/"&&!this.nomount){e=path.join(this.root,e)}this._emitMatch(index,e)}return}remain.shift();for(var i=0;i<len;i++){var e=matchedEntries[i];var newPattern;if(prefix)newPattern=[prefix,e];else newPattern=[e];this._process(newPattern.concat(remain),index,inGlobStar)}};GlobSync.prototype._emitMatch=function(index,e){if(isIgnored(this,e))return;var abs=this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute){e=abs}if(this.matches[index][e])return;if(this.nodir){var c=this.cache[abs];if(c==="DIR"||Array.isArray(c))return}this.matches[index][e]=true;if(this.stat)this._stat(e)};GlobSync.prototype._readdirInGlobStar=function(abs){if(this.follow)return this._readdir(abs,false);var entries;var lstat;try{lstat=this.fs.lstatSync(abs)}catch(er){if(er.code==="ENOENT"){return null}}var isSym=lstat&&lstat.isSymbolicLink();this.symlinks[abs]=isSym;if(!isSym&&lstat&&!lstat.isDirectory())this.cache[abs]="FILE";else entries=this._readdir(abs,false);return entries};GlobSync.prototype._readdir=function(abs,inGlobStar){if(inGlobStar&&!ownProp(this.symlinks,abs))return this._readdirInGlobStar(abs);if(ownProp(this.cache,abs)){var c=this.cache[abs];if(!c||c==="FILE")return null;if(Array.isArray(c))return c}try{return this._readdirEntries(abs,this.fs.readdirSync(abs))}catch(er){this._readdirError(abs,er);return null}};GlobSync.prototype._readdirEntries=function(abs,entries){if(!this.mark&&!this.stat){for(var i=0;i<entries.length;i++){var e=entries[i];if(abs==="/")e=abs+e;else e=abs+"/"+e;this.cache[e]=true}}this.cache[abs]=entries;return entries};GlobSync.prototype._readdirError=function(f,er){switch(er.code){case"ENOTSUP":case"ENOTDIR":var abs=this._makeAbs(f);this.cache[abs]="FILE";if(abs===this.cwdAbs){var error=new Error(er.code+" invalid cwd "+this.cwd);error.path=this.cwd;error.code=er.code;throw error}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(f)]=false;break;default:this.cache[this._makeAbs(f)]=false;if(this.strict)throw er;if(!this.silent)console.error("glob error",er);break}};GlobSync.prototype._processGlobStar=function(prefix,read,abs,remain,index,inGlobStar){var entries=this._readdir(abs,inGlobStar);if(!entries)return;var remainWithoutGlobStar=remain.slice(1);var gspref=prefix?[prefix]:[];var noGlobStar=gspref.concat(remainWithoutGlobStar);this._process(noGlobStar,index,false);var len=entries.length;var isSym=this.symlinks[abs];if(isSym&&inGlobStar)return;for(var i=0;i<len;i++){var e=entries[i];if(e.charAt(0)==="."&&!this.dot)continue;var instead=gspref.concat(entries[i],remainWithoutGlobStar);this._process(instead,index,true);var below=gspref.concat(entries[i],remain);this._process(below,index,true)}};GlobSync.prototype._processSimple=function(prefix,index){var exists=this._stat(prefix);if(!this.matches[index])this.matches[index]=Object.create(null);if(!exists)return;if(prefix&&isAbsolute(prefix)&&!this.nomount){var trail=/[\/\\]$/.test(prefix);if(prefix.charAt(0)==="/"){prefix=path.join(this.root,prefix)}else{prefix=path.resolve(this.root,prefix);if(trail)prefix+="/"}}if(process.platform==="win32")prefix=prefix.replace(/\\/g,"/");this._emitMatch(index,prefix)};GlobSync.prototype._stat=function(f){var abs=this._makeAbs(f);var needDir=f.slice(-1)==="/";if(f.length>this.maxLength)return false;if(!this.stat&&ownProp(this.cache,abs)){var c=this.cache[abs];if(Array.isArray(c))c="DIR";if(!needDir||c==="DIR")return c;if(needDir&&c==="FILE")return false}var stat=this.statCache[abs];if(!stat){var lstat;try{lstat=this.fs.lstatSync(abs)}catch(er){if(er&&(er.code==="ENOENT"||er.code==="ENOTDIR")){this.statCache[abs]=false;return false}}if(lstat&&lstat.isSymbolicLink()){try{stat=this.fs.statSync(abs)}catch(er){stat=lstat}}else{stat=lstat}}this.statCache[abs]=stat;var c=true;if(stat)c=stat.isDirectory()?"DIR":"FILE";this.cache[abs]=this.cache[abs]||c;if(needDir&&c==="FILE")return false;return c};GlobSync.prototype._mark=function(p){return common$1.mark(this,p)};GlobSync.prototype._makeAbs=function(f){return common$1.makeAbs(this,f)};return sync}var wrappy_1=wrappy$2;function wrappy$2(fn,cb){if(fn&&cb)return wrappy$2(fn)(cb);if(typeof fn!=="function")throw new TypeError("need wrapper function");Object.keys(fn).forEach((function(k){wrapper[k]=fn[k]}));return wrapper;function wrapper(){var args=new Array(arguments.length);for(var i=0;i<args.length;i++){args[i]=arguments[i]}var ret=fn.apply(this,args);var cb=args[args.length-1];if(typeof ret==="function"&&ret!==cb){Object.keys(cb).forEach((function(k){ret[k]=cb[k]}))}return ret}}var once$2={exports:{}};var wrappy$1=wrappy_1;once$2.exports=wrappy$1(once$1);once$2.exports.strict=wrappy$1(onceStrict);once$1.proto=once$1((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once$1(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once$1(fn){var f=function(){if(f.called)return f.value;f.called=true;return f.value=fn.apply(this,arguments)};f.called=false;return f}function onceStrict(fn){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=fn.apply(this,arguments)};var name=fn.name||"Function wrapped with `once`";f.onceError=name+" shouldn't be called more than once";f.called=false;return f}var onceExports=once$2.exports;var wrappy=wrappy_1;var reqs=Object.create(null);var once=onceExports;var inflight_1=wrappy(inflight);function inflight(key,cb){if(reqs[key]){reqs[key].push(cb);return null}else{reqs[key]=[cb];return makeres(key)}}function makeres(key){return once((function RES(){var cbs=reqs[key];var len=cbs.length;var args=slice(arguments);try{for(var i=0;i<len;i++){cbs[i].apply(null,args)}}finally{if(cbs.length>len){cbs.splice(0,len);process.nextTick((function(){RES.apply(null,args)}))}else{delete reqs[key]}}}))}function slice(args){var length=args.length;var array=[];for(var i=0;i<length;i++)array[i]=args[i];return array}var glob_1;var hasRequiredGlob;function requireGlob(){if(hasRequiredGlob)return glob_1;hasRequiredGlob=1;glob_1=glob;var rp=fs_realpath;var minimatch=minimatch_1;minimatch.Minimatch;var inherits=inheritsExports;var EE=require$$2$1.EventEmitter;var path=require$$0$6;var assert=require$$5;var isAbsolute=require$$0$6.isAbsolute;var globSync=requireSync();var common$1=common;var setopts=common$1.setopts;var ownProp=common$1.ownProp;var inflight=inflight_1;var childrenIgnored=common$1.childrenIgnored;var isIgnored=common$1.isIgnored;var once=onceExports;function glob(pattern,options,cb){if(typeof options==="function")cb=options,options={};if(!options)options={};if(options.sync){if(cb)throw new TypeError("callback provided to sync glob");return globSync(pattern,options)}return new Glob(pattern,options,cb)}glob.sync=globSync;var GlobSync=glob.GlobSync=globSync.GlobSync;glob.glob=glob;function extend(origin,add){if(add===null||typeof add!=="object"){return origin}var keys=Object.keys(add);var i=keys.length;while(i--){origin[keys[i]]=add[keys[i]]}return origin}glob.hasMagic=function(pattern,options_){var options=extend({},options_);options.noprocess=true;var g=new Glob(pattern,options);var set=g.minimatch.set;if(!pattern)return false;if(set.length>1)return true;for(var j=0;j<set[0].length;j++){if(typeof set[0][j]!=="string")return true}return false};glob.Glob=Glob;inherits(Glob,EE);function Glob(pattern,options,cb){if(typeof options==="function"){cb=options;options=null}if(options&&options.sync){if(cb)throw new TypeError("callback provided to sync glob");return new GlobSync(pattern,options)}if(!(this instanceof Glob))return new Glob(pattern,options,cb);setopts(this,pattern,options);this._didRealPath=false;var n=this.minimatch.set.length;this.matches=new Array(n);if(typeof cb==="function"){cb=once(cb);this.on("error",cb);this.on("end",(function(matches){cb(null,matches)}))}var self=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(n===0)return done();var sync=true;for(var i=0;i<n;i++){this._process(this.minimatch.set[i],i,false,done)}sync=false;function done(){--self._processing;if(self._processing<=0){if(sync){process.nextTick((function(){self._finish()}))}else{self._finish()}}}}Glob.prototype._finish=function(){assert(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();common$1.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var n=this.matches.length;if(n===0)return this._finish();var self=this;for(var i=0;i<this.matches.length;i++)this._realpathSet(i,next);function next(){if(--n===0)self._finish()}};Glob.prototype._realpathSet=function(index,cb){var matchset=this.matches[index];if(!matchset)return cb();var found=Object.keys(matchset);var self=this;var n=found.length;if(n===0)return cb();var set=this.matches[index]=Object.create(null);found.forEach((function(p,i){p=self._makeAbs(p);rp.realpath(p,self.realpathCache,(function(er,real){if(!er)set[real]=true;else if(er.syscall==="stat")set[p]=true;else self.emit("error",er);if(--n===0){self.matches[index]=set;cb()}}))}))};Glob.prototype._mark=function(p){return common$1.mark(this,p)};Glob.prototype._makeAbs=function(f){return common$1.makeAbs(this,f)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var eq=this._emitQueue.slice(0);this._emitQueue.length=0;for(var i=0;i<eq.length;i++){var e=eq[i];this._emitMatch(e[0],e[1])}}if(this._processQueue.length){var pq=this._processQueue.slice(0);this._processQueue.length=0;for(var i=0;i<pq.length;i++){var p=pq[i];this._processing--;this._process(p[0],p[1],p[2],p[3])}}}};Glob.prototype._process=function(pattern,index,inGlobStar,cb){assert(this instanceof Glob);assert(typeof cb==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([pattern,index,inGlobStar,cb]);return}var n=0;while(typeof pattern[n]==="string"){n++}var prefix;switch(n){case pattern.length:this._processSimple(pattern.join("/"),index,cb);return;case 0:prefix=null;break;default:prefix=pattern.slice(0,n).join("/");break}var remain=pattern.slice(n);var read;if(prefix===null)read=".";else if(isAbsolute(prefix)||isAbsolute(pattern.map((function(p){return typeof p==="string"?p:"[*]"})).join("/"))){if(!prefix||!isAbsolute(prefix))prefix="/"+prefix;read=prefix}else read=prefix;var abs=this._makeAbs(read);if(childrenIgnored(this,read))return cb();var isGlobStar=remain[0]===minimatch.GLOBSTAR;if(isGlobStar)this._processGlobStar(prefix,read,abs,remain,index,inGlobStar,cb);else this._processReaddir(prefix,read,abs,remain,index,inGlobStar,cb)};Glob.prototype._processReaddir=function(prefix,read,abs,remain,index,inGlobStar,cb){var self=this;this._readdir(abs,inGlobStar,(function(er,entries){return self._processReaddir2(prefix,read,abs,remain,index,inGlobStar,entries,cb)}))};Glob.prototype._processReaddir2=function(prefix,read,abs,remain,index,inGlobStar,entries,cb){if(!entries)return cb();var pn=remain[0];var negate=!!this.minimatch.negate;var rawGlob=pn._glob;var dotOk=this.dot||rawGlob.charAt(0)===".";var matchedEntries=[];for(var i=0;i<entries.length;i++){var e=entries[i];if(e.charAt(0)!=="."||dotOk){var m;if(negate&&!prefix){m=!e.match(pn)}else{m=e.match(pn)}if(m)matchedEntries.push(e)}}var len=matchedEntries.length;if(len===0)return cb();if(remain.length===1&&!this.mark&&!this.stat){if(!this.matches[index])this.matches[index]=Object.create(null);for(var i=0;i<len;i++){var e=matchedEntries[i];if(prefix){if(prefix!=="/")e=prefix+"/"+e;else e=prefix+e}if(e.charAt(0)==="/"&&!this.nomount){e=path.join(this.root,e)}this._emitMatch(index,e)}return cb()}remain.shift();for(var i=0;i<len;i++){var e=matchedEntries[i];if(prefix){if(prefix!=="/")e=prefix+"/"+e;else e=prefix+e}this._process([e].concat(remain),index,inGlobStar,cb)}cb()};Glob.prototype._emitMatch=function(index,e){if(this.aborted)return;if(isIgnored(this,e))return;if(this.paused){this._emitQueue.push([index,e]);return}var abs=isAbsolute(e)?e:this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute)e=abs;if(this.matches[index][e])return;if(this.nodir){var c=this.cache[abs];if(c==="DIR"||Array.isArray(c))return}this.matches[index][e]=true;var st=this.statCache[abs];if(st)this.emit("stat",e,st);this.emit("match",e)};Glob.prototype._readdirInGlobStar=function(abs,cb){if(this.aborted)return;if(this.follow)return this._readdir(abs,false,cb);var lstatkey="lstat\0"+abs;var self=this;var lstatcb=inflight(lstatkey,lstatcb_);if(lstatcb)self.fs.lstat(abs,lstatcb);function lstatcb_(er,lstat){if(er&&er.code==="ENOENT")return cb();var isSym=lstat&&lstat.isSymbolicLink();self.symlinks[abs]=isSym;if(!isSym&&lstat&&!lstat.isDirectory()){self.cache[abs]="FILE";cb()}else self._readdir(abs,false,cb)}};Glob.prototype._readdir=function(abs,inGlobStar,cb){if(this.aborted)return;cb=inflight("readdir\0"+abs+"\0"+inGlobStar,cb);if(!cb)return;if(inGlobStar&&!ownProp(this.symlinks,abs))return this._readdirInGlobStar(abs,cb);if(ownProp(this.cache,abs)){var c=this.cache[abs];if(!c||c==="FILE")return cb();if(Array.isArray(c))return cb(null,c)}var self=this;self.fs.readdir(abs,readdirCb(this,abs,cb))};function readdirCb(self,abs,cb){return function(er,entries){if(er)self._readdirError(abs,er,cb);else self._readdirEntries(abs,entries,cb)}}Glob.prototype._readdirEntries=function(abs,entries,cb){if(this.aborted)return;if(!this.mark&&!this.stat){for(var i=0;i<entries.length;i++){var e=entries[i];if(abs==="/")e=abs+e;else e=abs+"/"+e;this.cache[e]=true}}this.cache[abs]=entries;return cb(null,entries)};Glob.prototype._readdirError=function(f,er,cb){if(this.aborted)return;switch(er.code){case"ENOTSUP":case"ENOTDIR":var abs=this._makeAbs(f);this.cache[abs]="FILE";if(abs===this.cwdAbs){var error=new Error(er.code+" invalid cwd "+this.cwd);error.path=this.cwd;error.code=er.code;this.emit("error",error);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(f)]=false;break;default:this.cache[this._makeAbs(f)]=false;if(this.strict){this.emit("error",er);this.abort()}if(!this.silent)console.error("glob error",er);break}return cb()};Glob.prototype._processGlobStar=function(prefix,read,abs,remain,index,inGlobStar,cb){var self=this;this._readdir(abs,inGlobStar,(function(er,entries){self._processGlobStar2(prefix,read,abs,remain,index,inGlobStar,entries,cb)}))};Glob.prototype._processGlobStar2=function(prefix,read,abs,remain,index,inGlobStar,entries,cb){if(!entries)return cb();var remainWithoutGlobStar=remain.slice(1);var gspref=prefix?[prefix]:[];var noGlobStar=gspref.concat(remainWithoutGlobStar);this._process(noGlobStar,index,false,cb);var isSym=this.symlinks[abs];var len=entries.length;if(isSym&&inGlobStar)return cb();for(var i=0;i<len;i++){var e=entries[i];if(e.charAt(0)==="."&&!this.dot)continue;var instead=gspref.concat(entries[i],remainWithoutGlobStar);this._process(instead,index,true,cb);var below=gspref.concat(entries[i],remain);this._process(below,index,true,cb)}cb()};Glob.prototype._processSimple=function(prefix,index,cb){var self=this;this._stat(prefix,(function(er,exists){self._processSimple2(prefix,index,er,exists,cb)}))};Glob.prototype._processSimple2=function(prefix,index,er,exists,cb){if(!this.matches[index])this.matches[index]=Object.create(null);if(!exists)return cb();if(prefix&&isAbsolute(prefix)&&!this.nomount){var trail=/[\/\\]$/.test(prefix);if(prefix.charAt(0)==="/"){prefix=path.join(this.root,prefix)}else{prefix=path.resolve(this.root,prefix);if(trail)prefix+="/"}}if(process.platform==="win32")prefix=prefix.replace(/\\/g,"/");this._emitMatch(index,prefix);cb()};Glob.prototype._stat=function(f,cb){var abs=this._makeAbs(f);var needDir=f.slice(-1)==="/";if(f.length>this.maxLength)return cb();if(!this.stat&&ownProp(this.cache,abs)){var c=this.cache[abs];if(Array.isArray(c))c="DIR";if(!needDir||c==="DIR")return cb(null,c);if(needDir&&c==="FILE")return cb()}var stat=this.statCache[abs];if(stat!==undefined){if(stat===false)return cb(null,stat);else{var type=stat.isDirectory()?"DIR":"FILE";if(needDir&&type==="FILE")return cb();else return cb(null,type,stat)}}var self=this;var statcb=inflight("stat\0"+abs,lstatcb_);if(statcb)self.fs.lstat(abs,statcb);function lstatcb_(er,lstat){if(lstat&&lstat.isSymbolicLink()){return self.fs.stat(abs,(function(er,stat){if(er)self._stat2(f,abs,null,lstat,cb);else self._stat2(f,abs,er,stat,cb)}))}else{self._stat2(f,abs,er,lstat,cb)}}};Glob.prototype._stat2=function(f,abs,er,stat,cb){if(er&&(er.code==="ENOENT"||er.code==="ENOTDIR")){this.statCache[abs]=false;return cb()}var needDir=f.slice(-1)==="/";this.statCache[abs]=stat;if(abs.slice(-1)==="/"&&stat&&!stat.isDirectory())return cb(null,false,stat);var c=true;if(stat)c=stat.isDirectory()?"DIR":"FILE";this.cache[abs]=this.cache[abs]||c;if(needDir&&c==="FILE")return cb();return cb(null,c,stat)};return glob_1}const bundleWalk=lib$3;const BundleWalker=bundleWalk.BundleWalker;const ignoreWalk=lib$2;const IgnoreWalker=ignoreWalk.Walker;const rootBuiltinRules=Symbol("root-builtin-rules");const packageNecessaryRules=Symbol("package-necessary-rules");const path$1=require$$0$6;const normalizePackageBin=lib$4;const packageMustHaveFileNames="readme|copying|license|licence";const packageMustHaves=`@(${packageMustHaveFileNames}){,.*[^~$]}`;const packageMustHavesRE=new RegExp(`^(${packageMustHaveFileNames})(\\..*[^~$])?$`,"i");const fs$2=require$$0$1;const glob=requireGlob();const globify=pattern=>pattern.split("\\").join("/");const readOutOfTreeIgnoreFiles=(root,rel,result="")=>{for(const file of[".npmignore",".gitignore"]){try{const ignoreContent=fs$2.readFileSync(path$1.join(root,file),{encoding:"utf8"});result+=ignoreContent+"\n";break}catch(err){if(err.code!=="ENOENT"){throw err}}}if(!rel){return result}const firstRel=rel.split(path$1.sep)[0];const newRoot=path$1.join(root,firstRel);const newRel=path$1.relative(newRoot,path$1.join(root,rel));return readOutOfTreeIgnoreFiles(newRoot,newRel,result)};const pathHasPkg=input=>{if(!input.startsWith("node_modules/")){return false}const segments=input.slice("node_modules/".length).split("/",2);return segments[0].startsWith("@")?segments.length===2:true};const pkgFromPath=input=>{const segments=input.slice("node_modules/".length).split("/",2);return segments[0].startsWith("@")?segments.join("/"):segments[0]};const defaultRules=[".npmignore",".gitignore","**/.git","**/.svn","**/.hg","**/CVS","**/.git/**","**/.svn/**","**/.hg/**","**/CVS/**","/.lock-wscript","/.wafpickle-*","/build/config.gypi","npm-debug.log","**/.npmrc",".*.swp",".DS_Store","**/.DS_Store/**","._*","**/._*/**","*.orig","/package-lock.json","/yarn.lock","/pnpm-lock.yaml","/archived-packages/**"];const nameIsBadForWindows=file=>/\*/.test(file);class Walker extends IgnoreWalker{constructor(opt){opt=opt||{};opt.ignoreFiles=[rootBuiltinRules,"package.json",".npmignore",".gitignore",packageNecessaryRules];opt.includeEmpty=false;opt.path=opt.path||process.cwd();const followRe=/^(?:\/node_modules\/(?:@[^/]+\/[^/]+|[^/]+)\/)*\/node_modules(?:\/@[^/]+)?$/;const rootPath=opt.parent?opt.parent.root:opt.path;const followTestPath=opt.path.replace(/\\/g,"/").slice(rootPath.length);opt.follow=followRe.test(followTestPath);super(opt);if(this.isProject){this.bundled=opt.bundled||[];this.bundledScopes=Array.from(new Set(this.bundled.filter((f=>/^@/.test(f))).map((f=>f.split("/")[0]))));this.packageJsonCache=this.parent?this.parent.packageJsonCache:opt.packageJsonCache||new Map;let rules=defaultRules.join("\n")+"\n";if(opt.prefix&&opt.workspaces){const gPath=globify(opt.path);const gPrefix=globify(opt.prefix);const gWorkspaces=opt.workspaces.map((ws=>globify(ws)));if(gPath!==gPrefix&&gWorkspaces.includes(gPath)){const relpath=path$1.relative(opt.prefix,path$1.dirname(opt.path));rules+=readOutOfTreeIgnoreFiles(opt.prefix,relpath)}else if(gPath===gPrefix){rules+=opt.workspaces.map((ws=>globify(path$1.relative(opt.path,ws)))).join("\n")}}super.onReadIgnoreFile(rootBuiltinRules,rules,(_=>_))}else{this.bundled=[];this.bundledScopes=[];this.packageJsonCache=this.parent.packageJsonCache}}get isProject(){return!this.parent||this.parent.follow&&this.isSymbolicLink}onReaddir(entries){if(this.isProject){entries=entries.filter((e=>e!==".git"&&!(e==="node_modules"&&this.bundled.length===0)))}if(!this.isProject||!entries.includes("package.json")){return super.onReaddir(entries)}const ig=path$1.resolve(this.path,"package.json");if(this.packageJsonCache.has(ig)){const pkg=this.packageJsonCache.get(ig);if(!pkg||typeof pkg!=="object"){return this.readPackageJson(entries)}return this.getPackageFiles(entries,JSON.stringify(pkg))}this.readPackageJson(entries)}onReadPackageJson(entries,er,pkg){if(er){this.emit("error",er)}else{this.getPackageFiles(entries,pkg)}}mustHaveFilesFromPackage(pkg){const files=[];if(pkg.browser){files.push("/"+pkg.browser)}if(pkg.main){files.push("/"+pkg.main)}if(pkg.bin){for(const key in pkg.bin){files.push("/"+pkg.bin[key])}}files.push("/package.json","/npm-shrinkwrap.json","!/package-lock.json",packageMustHaves);return files}getPackageFiles(entries,pkg){try{pkg=normalizePackageBin(JSON.parse(pkg.toString()))}catch(er){return super.onReaddir(entries)}const ig=path$1.resolve(this.path,"package.json");this.packageJsonCache.set(ig,pkg);if(!Array.isArray(pkg.files)){return super.onReaddir(entries)}pkg.files.push(...this.mustHaveFilesFromPackage(pkg));if((pkg.bundleDependencies||pkg.bundledDependencies)&&entries.includes("node_modules")){pkg.files.push("node_modules")}const patterns=Array.from(new Set(pkg.files)).reduce(((set,pattern)=>{const excl=pattern.match(/^!+/);if(excl){pattern=pattern.slice(excl[0].length)}pattern=pattern.replace(/^\.?\/+/,"");const negate=excl&&excl[0].length%2===1;set.push({pattern:pattern,negate:negate});return set}),[]);let n=patterns.length;const set=new Set;const negates=new Set;const results=[];const then=(pattern,negate,er,fileList,i)=>{if(er){return this.emit("error",er)}results[i]={negate:negate,fileList:fileList};if(--n===0){processResults(results)}};const processResults=processed=>{for(const{negate:negate,fileList:fileList}of processed){if(negate){fileList.forEach((f=>{f=f.replace(/\/+$/,"");set.delete(f);negates.add(f)}))}else{fileList.forEach((f=>{f=f.replace(/\/+$/,"");set.add(f);negates.delete(f)}))}}const list=Array.from(set);pkg.files=list.concat(Array.from(negates).map((f=>"!"+f)));const rdResult=Array.from(new Set(list.map((f=>f.replace(/^\/+/,"")))));super.onReaddir(rdResult)};patterns.forEach((({pattern:pattern,negate:negate},i)=>this.globFiles(pattern,((er,res)=>then(pattern,negate,er,res,i)))))}filterEntry(entry,partial){const p=this.path.slice(this.root.length+1);const{isProject:isProject}=this;const pkg=isProject&&pathHasPkg(entry)?pkgFromPath(entry):null;const rootNM=isProject&&entry==="node_modules";const rootPJ=isProject&&entry==="package.json";return/^node_modules($|\/)/i.test(p)&&!this.isProject?this.parent.filterEntry(this.basename+"/"+entry,partial):pkg?this.bundled.indexOf(pkg)!==-1||this.bundledScopes.indexOf(pkg)!==-1:rootNM?!!this.bundled.length:rootPJ?true:packageMustHavesRE.test(entry)?true:isProject&&(entry==="npm-shrinkwrap.json"||entry==="package.json")?true:isProject&&entry==="package-lock.json"?false:super.filterEntry(entry,partial)}filterEntries(){if(this.ignoreRules[".npmignore"]){this.ignoreRules[".gitignore"]=null}this.filterEntries=super.filterEntries;super.filterEntries()}addIgnoreFile(file,then){const ig=path$1.resolve(this.path,file);if(file==="package.json"&&!this.isProject){then()}else if(this.packageJsonCache.has(ig)){this.onPackageJson(ig,this.packageJsonCache.get(ig),then)}else{super.addIgnoreFile(file,then)}}onPackageJson(ig,pkg,then){this.packageJsonCache.set(ig,pkg);if(Array.isArray(pkg.files)){super.onReadIgnoreFile("package.json",pkg.files.map((f=>"!"+f)).join("\n")+"\n",then)}else{const rules=this.mustHaveFilesFromPackage(pkg).map((f=>`!${f}`));const data=rules.join("\n")+"\n";super.onReadIgnoreFile(packageNecessaryRules,data,then)}}stat({entry:entry,file:file,dir:dir},then){if(nameIsBadForWindows(entry)){then()}else{super.stat({entry:entry,file:file,dir:dir},then)}}onstat({st:st,entry:entry,file:file,dir:dir,isSymbolicLink:isSymbolicLink},then){if(st.isSymbolicLink()){then()}else{super.onstat({st:st,entry:entry,file:file,dir:dir,isSymbolicLink:isSymbolicLink},then)}}onReadIgnoreFile(file,data,then){if(file==="package.json"){try{const ig=path$1.resolve(this.path,file);this.onPackageJson(ig,JSON.parse(data),then)}catch(er){then()}}else{super.onReadIgnoreFile(file,data,then)}}sort(a,b){const exta=path$1.extname(a).toLowerCase();const extb=path$1.extname(b).toLowerCase();const basea=path$1.basename(a).toLowerCase();const baseb=path$1.basename(b).toLowerCase();return exta.localeCompare(extb,"en")||basea.localeCompare(baseb,"en")||a.localeCompare(b,"en")}globFiles(pattern,cb){glob(globify(pattern),{dot:true,cwd:this.path,nocase:true},cb)}readPackageJson(entries){fs$2.readFile(this.path+"/package.json",((er,pkg)=>this.onReadPackageJson(entries,er,pkg)))}walker(entry,opt,then){new Walker(this.walkerOpt(entry,opt)).on("done",then).start()}}const walk=(options,callback)=>{options=options||{};const p=new Promise(((resolve,reject)=>{const bw=new BundleWalker(options);bw.on("done",(bundled=>{options.bundled=bundled;options.packageJsonCache=bw.packageJsonCache;new Walker(options).on("done",resolve).on("error",reject).start()}));bw.start()}));return callback?p.then((res=>callback(null,res)),callback):p};var lib$1=walk;walk.Walker=Walker;var __importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(lib$b,"__esModule",{value:true});lib$b.fetchFromDir=lib$b.createDirectoryFetcher=void 0;const fs_1$1=require$$0$1;const path_1$1=__importDefault$1(require$$0$6);const logger_1=lib$f;const read_project_manifest_1=lib$a;const npm_packlist_1=__importDefault$1(lib$1);const directoryFetcherLogger=(0,logger_1.logger)("directory-fetcher");function createDirectoryFetcher(opts){const readFileStat=opts?.resolveSymlinks===true?realFileStat:fileStat;const fetchFromDir=opts?.includeOnlyPackageFiles?fetchPackageFilesFromDir:fetchAllFilesFromDir.bind(null,readFileStat);const directoryFetcher=(cafs,resolution,opts)=>{const dir=path_1$1.default.join(opts.lockfileDir,resolution.directory);return fetchFromDir(dir,opts)};return{directory:directoryFetcher}}lib$b.createDirectoryFetcher=createDirectoryFetcher;async function fetchFromDir(dir,opts){if(opts.includeOnlyPackageFiles){return fetchPackageFilesFromDir(dir,opts)}const readFileStat=opts?.resolveSymlinks===true?realFileStat:fileStat;return fetchAllFilesFromDir(readFileStat,dir,opts)}lib$b.fetchFromDir=fetchFromDir;async function fetchAllFilesFromDir(readFileStat,dir,opts){const filesIndex=await _fetchAllFilesFromDir(readFileStat,dir);if(opts.manifest){const manifest=await(0,read_project_manifest_1.safeReadProjectManifestOnly)(dir)??{};opts.manifest.resolve(manifest)}return{local:true,filesIndex:filesIndex,packageImportMethod:"hardlink"}}async function _fetchAllFilesFromDir(readFileStat,dir,relativeDir=""){const filesIndex={};const files=await fs_1$1.promises.readdir(dir);await Promise.all(files.filter((file=>file!=="node_modules")).map((async file=>{const{filePath:filePath,stat:stat}=await readFileStat(path_1$1.default.join(dir,file));if(!filePath)return;const relativeSubdir=`${relativeDir}${relativeDir?"/":""}${file}`;if(stat.isDirectory()){const subFilesIndex=await _fetchAllFilesFromDir(readFileStat,filePath,relativeSubdir);Object.assign(filesIndex,subFilesIndex)}else{filesIndex[relativeSubdir]=filePath}})));return filesIndex}async function realFileStat(filePath){let stat=await fs_1$1.promises.lstat(filePath);if(!stat.isSymbolicLink()){return{filePath:filePath,stat:stat}}try{filePath=await fs_1$1.promises.realpath(filePath);stat=await fs_1$1.promises.stat(filePath);return{filePath:filePath,stat:stat}}catch(err){if(err.code==="ENOENT"){directoryFetcherLogger.debug({brokenSymlink:filePath});return{filePath:null,stat:null}}throw err}}async function fileStat(filePath){try{return{filePath:filePath,stat:await fs_1$1.promises.stat(filePath)}}catch(err){if(err.code==="ENOENT"){directoryFetcherLogger.debug({brokenSymlink:filePath});return{filePath:null,stat:null}}throw err}}async function fetchPackageFilesFromDir(dir,opts){const files=await(0,npm_packlist_1.default)({path:dir});const filesIndex=Object.fromEntries(files.map((file=>[file,path_1$1.default.join(dir,file)])));if(opts.manifest){const manifest=await(0,read_project_manifest_1.safeReadProjectManifestOnly)(dir)??{};opts.manifest.resolve(manifest)}return{local:true,filesIndex:filesIndex,packageImportMethod:"hardlink"}}var lib={};class Node{constructor(value){this.value=value;this.next=undefined}}let Queue$1=class Queue{constructor(){this.clear()}enqueue(value){const node=new Node(value);if(this._head){this._tail.next=node;this._tail=node}else{this._head=node;this._tail=node}this._size++}dequeue(){const current=this._head;if(!current){return}this._head=this._head.next;this._size--;return current.value}clear(){this._head=undefined;this._tail=undefined;this._size=0}get size(){return this._size}*[Symbol.iterator](){let current=this._head;while(current){yield current.value;current=current.next}}};var yoctoQueue=Queue$1;const Queue=yoctoQueue;const pLimit$1=concurrency=>{if(!((Number.isInteger(concurrency)||concurrency===Infinity)&&concurrency>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const queue=new Queue;let activeCount=0;const next=()=>{activeCount--;if(queue.size>0){queue.dequeue()()}};const run=async(fn,resolve,...args)=>{activeCount++;const result=(async()=>fn(...args))();resolve(result);try{await result}catch{}next()};const enqueue=(fn,resolve,...args)=>{queue.enqueue(run.bind(null,fn,resolve,...args));(async()=>{await Promise.resolve();if(activeCount<concurrency&&queue.size>0){queue.dequeue()()}})()};const generator=(fn,...args)=>new Promise((resolve=>{enqueue(fn,resolve,...args)}));Object.defineProperties(generator,{activeCount:{get:()=>activeCount},pendingCount:{get:()=>queue.size},clearQueue:{value:()=>{queue.clear()}}});return generator};var pLimit_1=pLimit$1;Object.defineProperty(lib,"__esModule",{value:true});const pLimit=pLimit_1;lib.default=async(concurrency,groups)=>{const limitRun=pLimit(concurrency);for(const tasks of groups){await Promise.all(tasks.map((task=>limitRun(task))))}};var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(runLifecycleHooksConcurrently$1,"__esModule",{value:true});runLifecycleHooksConcurrently$1.runLifecycleHooksConcurrently=void 0;const fs_1=__importDefault(require$$0$1);const path_1=__importDefault(require$$0$6);const directory_fetcher_1=lib$b;const run_groups_1=__importDefault(lib);const runLifecycleHook_1=runLifecycleHook$2;async function runLifecycleHooksConcurrently(stages,importers,childConcurrency,opts){const importersByBuildIndex=new Map;for(const importer of importers){if(!importersByBuildIndex.has(importer.buildIndex)){importersByBuildIndex.set(importer.buildIndex,[importer])}else{importersByBuildIndex.get(importer.buildIndex).push(importer)}}const sortedBuildIndexes=Array.from(importersByBuildIndex.keys()).sort();const groups=sortedBuildIndexes.map((buildIndex=>{const importers=importersByBuildIndex.get(buildIndex);return importers.map((({manifest:manifest,modulesDir:modulesDir,rootDir:rootDir,stages:importerStages,targetDirs:targetDirs})=>async()=>{const runLifecycleHookOpts={...opts,depPath:rootDir,pkgRoot:rootDir,rootModulesDir:modulesDir};let isBuilt=false;for(const stage of importerStages??stages){if(manifest.scripts==null||!manifest.scripts[stage])continue;await(0,runLifecycleHook_1.runLifecycleHook)(stage,manifest,runLifecycleHookOpts);isBuilt=true}if(targetDirs==null||targetDirs.length===0||!isBuilt)return;const filesResponse=await(0,directory_fetcher_1.fetchFromDir)(rootDir,{resolveSymlinks:opts.resolveSymlinksInInjectedDirs});await Promise.all(targetDirs.map((async targetDir=>{const targetModulesDir=path_1.default.join(targetDir,"node_modules");const nodeModulesIndex={};if(fs_1.default.existsSync(targetModulesDir)){await scanDir("node_modules",targetModulesDir,targetModulesDir,nodeModulesIndex)}return opts.storeController.importPackage(targetDir,{filesResponse:{fromStore:false,...filesResponse,filesIndex:{...filesResponse.filesIndex,...nodeModulesIndex}},force:false})})))}))}));await(0,run_groups_1.default)(childConcurrency,groups)}runLifecycleHooksConcurrently$1.runLifecycleHooksConcurrently=runLifecycleHooksConcurrently;async function scanDir(prefix,rootDir,currentDir,index){const files=await fs_1.default.promises.readdir(currentDir);await Promise.all(files.map((async file=>{const fullPath=path_1.default.join(currentDir,file);const stat=await fs_1.default.promises.stat(fullPath);if(stat.isDirectory()){return scanDir(prefix,rootDir,fullPath,index)}if(stat.isFile()){const relativePath=path_1.default.relative(rootDir,fullPath);index[path_1.default.join(prefix,relativePath)]=fullPath}})))}(function(exports){var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:true});exports.runPostinstallHooks=exports.runLifecycleHooksConcurrently=exports.runLifecycleHook=exports.makeNodeRequireOption=void 0;const path_1=__importDefault(require$$0$6);const read_package_json_1=lib$o;const path_exists_1=__importDefault(pathExistsExports);const runLifecycleHook_1=runLifecycleHook$2;Object.defineProperty(exports,"runLifecycleHook",{enumerable:true,get:function(){return runLifecycleHook_1.runLifecycleHook}});const runLifecycleHooksConcurrently_1=runLifecycleHooksConcurrently$1;Object.defineProperty(exports,"runLifecycleHooksConcurrently",{enumerable:true,get:function(){return runLifecycleHooksConcurrently_1.runLifecycleHooksConcurrently}});function makeNodeRequireOption(modulePath){let{NODE_OPTIONS:NODE_OPTIONS}=process.env;NODE_OPTIONS=`${NODE_OPTIONS??""} --require=${modulePath}`.trim();return{NODE_OPTIONS:NODE_OPTIONS}}exports.makeNodeRequireOption=makeNodeRequireOption;async function runPostinstallHooks(opts){const pkg=await(0,read_package_json_1.safeReadPackageJsonFromDir)(opts.pkgRoot);if(pkg==null)return false;if(pkg.scripts==null){pkg.scripts={}}if(!pkg.scripts.install){await checkBindingGyp(opts.pkgRoot,pkg.scripts)}if(pkg.scripts.preinstall){await(0,runLifecycleHook_1.runLifecycleHook)("preinstall",pkg,opts)}if(pkg.scripts.install){await(0,runLifecycleHook_1.runLifecycleHook)("install",pkg,opts)}if(pkg.scripts.postinstall){await(0,runLifecycleHook_1.runLifecycleHook)("postinstall",pkg,opts)}return pkg.scripts.preinstall!=null||pkg.scripts.install!=null||pkg.scripts.postinstall!=null}exports.runPostinstallHooks=runPostinstallHooks;async function checkBindingGyp(root,scripts){if(await(0,path_exists_1.default)(path_1.default.join(root,"binding.gyp"))){scripts.install="node-gyp rebuild"}}})(lib$h);const fs$1=require$$0$1;const exists=pathExistsExports;const path=require$$0$6;const{safeReadPackageJsonFromDir:safeReadPackageJsonFromDir}=lib$o;const{runLifecycleHook:runLifecycleHook}=lib$h;async function mkdirp(p){if(p&&!fs$1.existsSync(p)){await mkdirp(path.dirname(p));await fs$1.promises.mkdir(p)}}function normalizeBinPath(p){let result=p.replace(/\\/g,"/");if(result.startsWith("./")){result=result.substring(2)}return result}async function makeBins(nodeModulesPath,scope,segmentsUp){const packages=await fs$1.promises.readdir(path.join(nodeModulesPath,scope));for(const _package of packages){if(!scope&&_package.startsWith("@")){await makeBins(nodeModulesPath,_package,segmentsUp);continue}const packageName=path.join(scope,_package);const packageJsonPath=path.join(nodeModulesPath,packageName,"package.json");if(fs$1.existsSync(packageJsonPath)){let packageJsonStr=await fs$1.promises.readFile(packageJsonPath);let packageJson;try{packageJson=JSON.parse(packageJsonStr)}catch(e){throw new Error(`Error parsing ${packageName}/package.json: ${e}\n\n""""\n${packageJsonStr}\n""""`)}if(packageJson.bin){await mkdirp(path.join(nodeModulesPath,".bin"));let bin=packageJson.bin;if(typeof bin=="string"){bin={[_package]:bin}}for(const binName of Object.keys(bin)){if(binName.includes("/")||binName.includes("\\")){continue}const binPath=normalizeBinPath(bin[binName]);const binBash=`#!/usr/bin/env bash\nexec node "${path.join(...segmentsUp,packageName,binPath)}" "$@"`;const binEntryPath=path.join(nodeModulesPath,".bin",binName);await fs$1.promises.writeFile(binEntryPath,binBash);await fs$1.promises.chmod(binEntryPath,"755")}}}}}async function checkBindingGyp(root,scripts){if(await exists(path.join(root,"binding.gyp"))){scripts["install"]="node-gyp rebuild"}}async function runLifecycleHooks(opts,hooks){const pkg=await safeReadPackageJsonFromDir(opts.pkgRoot);if(pkg==null){return}if(pkg.scripts==null){pkg.scripts={}}const runInstallScripts=hooks.includes("preinstall")||hooks.includes("install")||hooks.includes("postinstall");if(runInstallScripts&&!pkg.scripts.install){await checkBindingGyp(opts.pkgRoot,pkg.scripts)}for(const hook of hooks){if(pkg.scripts[hook]){await runLifecycleHook(hook,pkg,opts)}}}async function main(args){if(args.length!==3){console.error("Usage: node lifecycle-hooks.js [packageName] [packageDir] [outputDir]");process.exit(1)}const packageName=args[0];const packageDir=args[1];const outputDir=args[2];await copyPackageContents(packageDir,outputDir);const segmentsUp=Array(packageName.split("/").length).fill("..");const nodeModulesPath=path.resolve(path.join(outputDir,...segmentsUp));await makeBins(nodeModulesPath,"",segmentsUp);const opts={pkgRoot:path.resolve(outputDir),rawConfig:{stdio:"inherit"},silent:false,stdio:"inherit",rootModulesDir:nodeModulesPath,unsafePerm:true};const rulesJsJson=JSON.parse(await fs$1.promises.readFile(path.join(packageDir,"aspect_rules_js_metadata.json")));if(rulesJsJson.lifecycle_hooks){await runLifecycleHooks(opts,rulesJsJson.lifecycle_hooks.split(","))}if(rulesJsJson.scripts?.custom_postinstall){await runLifecycleHook("custom_postinstall",rulesJsJson,opts)}}async function copyPackageContents(packageDir,destDir){const contents=await fs$1.promises.readdir(packageDir);await Promise.all(contents.map((file=>copyRecursive(path.join(packageDir,file),path.join(destDir,file)))))}async function copyRecursive(src,dest){const stats=await fs$1.promises.stat(src);if(stats.isDirectory()){await mkdirp(dest);const contents=await fs$1.promises.readdir(src);await Promise.all(contents.map((file=>copyRecursive(path.join(src,file),path.join(dest,file)))))}else{await fs$1.promises.copyFile(src,dest)}}(async()=>{try{await main(process.argv.slice(2))}catch(e){if(e.code==="ELIFECYCLE"&&!!e.pkgid&&!!e.stage&&!!e.script){console.log("===============================================================");console.log(`Failure while running lifecycle hook for package '${e.pkgid}':\n`);console.log(` Script: '${e.stage}'`);console.log(` Command: \`${e.script}\``);console.log(`\nStack trace:\n`);console.log(e.stack.replace(/^.*?\n/,""));console.log("===============================================================")}else{console.log(e)}process.exit(1)}})();module.exports=lifecycleHooks;
diff --git a/npm/private/test/BUILD.bazel b/npm/private/test/BUILD.bazel index d49b7cb..ccf7ed2 100644 --- a/npm/private/test/BUILD.bazel +++ b/npm/private/test/BUILD.bazel
@@ -52,8 +52,7 @@ targets = [ ":node_modules/@blockprotocol/type-system-web", ":node_modules/@figma/nodegit", - # @kubernetes/client-node has a "prepare" lifecycle hook that runs tsc - ":node_modules/@kubernetes/client-node", + ":node_modules/@kubernetes/client-node", # @kubernetes/client-node has a "prepare" lifecycle hook that runs tsc ":node_modules/@plotly/regl", ":node_modules/bufferutil", ":node_modules/debug", @@ -61,18 +60,17 @@ ":node_modules/handlebars-helpers/helper-date", ":node_modules/inline-fixtures", ":node_modules/json-stable-stringify", - # a vendored .tgz file - ":node_modules/lodash", + ":node_modules/lodash", # lodash is brought in as a vendored .tgz file: vendored/lodash-4.17.21.tgz ":node_modules/node-gyp", ":node_modules/plotly.js", ":node_modules/protoc-gen-grpc", ":node_modules/regl", - # segfault-handler has a node-gyp install step - ":node_modules/segfault-handler", + ":node_modules/puppeteer", # has a bin entry in the transitive closure with two segments: @puppeteer/browsers in https://unpkg.com/@puppeteer/browsers@0.5.0/package.json + ":node_modules/segfault-handler", # segfault-handler has a node-gyp install step ":node_modules/semver-first-satisfied", ":node_modules/typescript", - # intentionally don't include node_modules/unused ":node_modules/webpack-bundle-analyzer", + # intentionally don't include :node_modules/unused ], )
diff --git a/npm/private/test/package.json b/npm/private/test/package.json index 3653bf3..0a6765a 100644 --- a/npm/private/test/package.json +++ b/npm/private/test/package.json
@@ -16,6 +16,7 @@ "node-gyp": "9.3.0", "plotly.js": "2.12.1", "protoc-gen-grpc": "git+ssh://git@github.com:gregmagolan-codaio/protoc-gen-grpc-ts#be5580b06348d3eb9b4610a4a94065154a0df41f", + "puppeteer": "19.11.0", "regl": "npm:@plotly/regl@2.1.2", "segfault-handler": "1.3.0", "semver-first-satisfied": "1.1.0",
diff --git a/npm/private/test/repositories_checked.bzl b/npm/private/test/repositories_checked.bzl index 2c85c3a..b3323cf 100644 --- a/npm/private/test/repositories_checked.bzl +++ b/npm/private/test/repositories_checked.bzl
@@ -2356,6 +2356,85 @@ ) npm_import( + name = "npm__at_puppeteer_browsers__0.5.0__typescript_4.9.5", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "@puppeteer/browsers", + version = "0.5.0_typescript_4.9.5", + url = "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-0.5.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-Uw6oB7VvmPRLE4iKsjuOh8zgDabhNX67dzo8U/BB0f9527qx+4eeUs+korU98OhG5C4ubg7ufBgVi63XYwS6TQ==", + deps = { + "debug": "4.3.4", + "extract-zip": "2.0.1", + "https-proxy-agent": "5.0.1", + "progress": "2.0.3", + "proxy-from-env": "1.1.0", + "tar-fs": "2.1.1", + "typescript": "4.9.5", + "unbzip2-stream": "1.4.3", + "yargs": "17.7.1", + }, + transitive_closure = { + "@puppeteer/browsers": ["0.5.0_typescript_4.9.5"], + "debug": ["4.3.4"], + "extract-zip": ["2.0.1"], + "https-proxy-agent": ["5.0.1"], + "progress": ["2.0.3"], + "proxy-from-env": ["1.1.0"], + "tar-fs": ["2.1.1"], + "typescript": ["4.9.5"], + "unbzip2-stream": ["1.4.3"], + "yargs": ["17.7.1"], + "cliui": ["8.0.1"], + "escalade": ["3.1.1"], + "get-caller-file": ["2.0.5"], + "require-directory": ["2.1.1"], + "string-width": ["4.2.3"], + "y18n": ["5.0.8"], + "yargs-parser": ["21.1.1"], + "emoji-regex": ["8.0.0"], + "is-fullwidth-code-point": ["3.0.0"], + "strip-ansi": ["6.0.1"], + "ansi-regex": ["5.0.1"], + "wrap-ansi": ["7.0.0"], + "ansi-styles": ["4.3.0"], + "color-convert": ["2.0.1"], + "color-name": ["1.1.4"], + "buffer": ["5.7.1"], + "through": ["2.3.8"], + "base64-js": ["1.5.1"], + "ieee754": ["1.2.1"], + "chownr": ["1.1.4"], + "mkdirp-classic": ["0.5.3"], + "pump": ["3.0.0"], + "tar-stream": ["2.2.0"], + "bl": ["4.1.0"], + "end-of-stream": ["1.4.4"], + "fs-constants": ["1.0.0"], + "inherits": ["2.0.4"], + "readable-stream": ["3.6.1"], + "string_decoder": ["1.3.0"], + "util-deprecate": ["1.0.2"], + "safe-buffer": ["5.2.1"], + "once": ["1.4.0"], + "wrappy": ["1.0.2"], + "agent-base": ["6.0.2"], + "get-stream": ["5.2.0"], + "yauzl": ["2.10.0"], + "@types/yauzl": ["registry.npmjs.org/@types/yauzl@2.10.0"], + "@types/node": ["registry.npmjs.org/@types/node@18.11.18"], + "buffer-crc32": ["0.2.13"], + "fd-slicer": ["1.1.0"], + "pend": ["1.2.0"], + "ms": ["2.1.2"], + }, + ) + + npm_import( name = "npm__at_rollup_plugin-commonjs__21.1.0__rollup_2.70.2", root_package = "", link_workspace = "", @@ -5468,6 +5547,36 @@ ) npm_import( + name = "npm__bl__4.1.0", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "bl", + version = "4.1.0", + url = "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + deps = { + "buffer": "5.7.1", + "inherits": "2.0.4", + "readable-stream": "3.6.1", + }, + transitive_closure = { + "bl": ["4.1.0"], + "buffer": ["5.7.1"], + "inherits": ["2.0.4"], + "readable-stream": ["3.6.1"], + "string_decoder": ["1.3.0"], + "util-deprecate": ["1.0.2"], + "safe-buffer": ["5.2.1"], + "base64-js": ["1.5.1"], + "ieee754": ["1.2.1"], + }, + ) + + npm_import( name = "npm__bl__6.0.0", root_package = "", link_workspace = "", @@ -5649,6 +5758,23 @@ ) npm_import( + name = "npm__buffer-crc32__0.2.13", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "buffer-crc32", + version = "0.2.13", + url = "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + transitive_closure = { + "buffer-crc32": ["0.2.13"], + }, + ) + + npm_import( name = "npm__buffer-fill__1.0.0", root_package = "", link_workspace = "", @@ -5682,6 +5808,29 @@ ) npm_import( + name = "npm__buffer__5.7.1", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "buffer", + version = "5.7.1", + url = "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + deps = { + "base64-js": "1.5.1", + "ieee754": "1.2.1", + }, + transitive_closure = { + "buffer": ["5.7.1"], + "base64-js": ["1.5.1"], + "ieee754": ["1.2.1"], + }, + ) + + npm_import( name = "npm__buffer__6.0.3", root_package = "", link_workspace = "", @@ -5992,6 +6141,23 @@ ) npm_import( + name = "npm__callsites__3.1.0", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "callsites", + version = "3.1.0", + url = "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + transitive_closure = { + "callsites": ["3.1.0"], + }, + ) + + npm_import( name = "npm__camelcase__6.3.0", root_package = "", link_workspace = "", @@ -6242,6 +6408,29 @@ ) npm_import( + name = "npm__chromium-bidi__0.4.7__devtools-protocol_0.0.1107588", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "chromium-bidi", + version = "0.4.7_devtools-protocol_0.0.1107588", + url = "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.7.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-6+mJuFXwTMU6I3vYLs6IL8A1DyQTPjCfIL971X0aMPVGRbGnNfl6i6Cl0NMbxi2bRYLGESt9T2ZIMRM5PAEcIQ==", + deps = { + "devtools-protocol": "0.0.1107588", + "mitt": "3.0.0", + }, + transitive_closure = { + "chromium-bidi": ["0.4.7_devtools-protocol_0.0.1107588"], + "devtools-protocol": ["0.0.1107588"], + "mitt": ["3.0.0"], + }, + ) + + npm_import( name = "npm__clamp__1.0.1", root_package = "", link_workspace = "", @@ -6306,6 +6495,37 @@ ) npm_import( + name = "npm__cliui__8.0.1", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "cliui", + version = "8.0.1", + url = "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + deps = { + "string-width": "4.2.3", + "strip-ansi": "6.0.1", + "wrap-ansi": "7.0.0", + }, + transitive_closure = { + "cliui": ["8.0.1"], + "string-width": ["4.2.3"], + "strip-ansi": ["6.0.1"], + "wrap-ansi": ["7.0.0"], + "ansi-styles": ["4.3.0"], + "color-convert": ["2.0.1"], + "color-name": ["1.1.4"], + "ansi-regex": ["5.0.1"], + "emoji-regex": ["8.0.0"], + "is-fullwidth-code-point": ["3.0.0"], + }, + ) + + npm_import( name = "npm__clone-deep__4.0.1", root_package = "", link_workspace = "", @@ -6932,6 +7152,52 @@ ) npm_import( + name = "npm__cosmiconfig__8.1.3", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "cosmiconfig", + version = "8.1.3", + url = "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.1.3.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-/UkO2JKI18b5jVMJUp0lvKFMpa/Gye+ZgZjKD+DGEN9y7NRcf/nK1A0sp67ONmKtnDCNMS44E6jrk0Yc3bDuUw==", + deps = { + "import-fresh": "3.3.0", + "js-yaml": "4.1.0", + "parse-json": "5.2.0", + "path-type": "4.0.0", + }, + transitive_closure = { + "cosmiconfig": ["8.1.3"], + "import-fresh": ["3.3.0"], + "js-yaml": ["4.1.0"], + "parse-json": ["5.2.0"], + "path-type": ["4.0.0"], + "@babel/code-frame": ["7.18.6"], + "error-ex": ["1.3.2"], + "json-parse-even-better-errors": ["2.3.1"], + "lines-and-columns": ["1.2.4"], + "is-arrayish": ["0.2.1"], + "@babel/highlight": ["7.18.6"], + "@babel/helper-validator-identifier": ["7.19.1"], + "chalk": ["2.4.2"], + "js-tokens": ["4.0.0"], + "ansi-styles": ["3.2.1"], + "escape-string-regexp": ["1.0.5"], + "supports-color": ["5.5.0"], + "has-flag": ["3.0.0"], + "color-convert": ["1.9.3"], + "color-name": ["1.1.3"], + "argparse": ["2.0.1"], + "parent-module": ["1.0.1"], + "resolve-from": ["4.0.0"], + "callsites": ["3.1.0"], + }, + ) + + npm_import( name = "npm__country-regex__1.1.0", root_package = "", link_workspace = "", @@ -6949,6 +7215,30 @@ ) npm_import( + name = "npm__cross-fetch__3.1.5", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "cross-fetch", + version = "3.1.5", + url = "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", + deps = { + "node-fetch": "2.6.7", + }, + transitive_closure = { + "cross-fetch": ["3.1.5"], + "node-fetch": ["2.6.7"], + "whatwg-url": ["5.0.0"], + "tr46": ["0.0.3"], + "webidl-conversions": ["3.0.1"], + }, + ) + + npm_import( name = "npm__cross-spawn__7.0.3", root_package = "", link_workspace = "", @@ -8122,6 +8412,23 @@ ) npm_import( + name = "npm__devtools-protocol__0.0.1107588", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "devtools-protocol", + version = "0.0.1107588", + url = "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1107588.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-yIR+pG9x65Xko7bErCUSQaDLrO/P1p3JUzEk7JCU4DowPcGHkTGUGQapcfcLc4qj0UaALwZ+cr0riFgiqpixcg==", + transitive_closure = { + "devtools-protocol": ["0.0.1107588"], + }, + ) + + npm_import( name = "npm__diff__5.0.0", root_package = "", link_workspace = "", @@ -8527,6 +8834,27 @@ ) npm_import( + name = "npm__error-ex__1.3.2", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "error-ex", + version = "1.3.2", + url = "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + deps = { + "is-arrayish": "0.2.1", + }, + transitive_closure = { + "error-ex": ["1.3.2"], + "is-arrayish": ["0.2.1"], + }, + ) + + npm_import( name = "npm__es-module-lexer__0.9.3", root_package = "", link_workspace = "", @@ -9517,6 +9845,42 @@ ) npm_import( + name = "npm__extract-zip__2.0.1", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "extract-zip", + version = "2.0.1", + url = "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", + deps = { + "@types/yauzl": "registry.npmjs.org/@types/yauzl@2.10.0", + "debug": "4.3.4", + "get-stream": "5.2.0", + "yauzl": "2.10.0", + }, + transitive_closure = { + "extract-zip": ["2.0.1"], + "debug": ["4.3.4"], + "get-stream": ["5.2.0"], + "yauzl": ["2.10.0"], + "@types/yauzl": ["registry.npmjs.org/@types/yauzl@2.10.0"], + "@types/node": ["registry.npmjs.org/@types/node@18.11.18"], + "buffer-crc32": ["0.2.13"], + "fd-slicer": ["1.1.0"], + "pend": ["1.2.0"], + "pump": ["3.0.0"], + "end-of-stream": ["1.4.4"], + "once": ["1.4.0"], + "wrappy": ["1.0.2"], + "ms": ["2.1.2"], + }, + ) + + npm_import( name = "npm__extsprintf__1.3.0", root_package = "", link_workspace = "", @@ -9659,6 +10023,27 @@ ) npm_import( + name = "npm__fd-slicer__1.1.0", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "fd-slicer", + version = "1.1.0", + url = "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + deps = { + "pend": "1.2.0", + }, + transitive_closure = { + "fd-slicer": ["1.1.0"], + "pend": ["1.2.0"], + }, + ) + + npm_import( name = "npm__file-uri-to-path__1.0.0", root_package = "", link_workspace = "", @@ -11814,6 +12199,30 @@ ) npm_import( + name = "npm__import-fresh__3.3.0", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "import-fresh", + version = "3.3.0", + url = "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + deps = { + "parent-module": "1.0.1", + "resolve-from": "4.0.0", + }, + transitive_closure = { + "import-fresh": ["3.3.0"], + "parent-module": ["1.0.1"], + "resolve-from": ["4.0.0"], + "callsites": ["3.1.0"], + }, + ) + + npm_import( name = "npm__import-local__3.1.0", root_package = "", link_workspace = "", @@ -12010,6 +12419,23 @@ ) npm_import( + name = "npm__is-arrayish__0.2.1", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "is-arrayish", + version = "0.2.1", + url = "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + transitive_closure = { + "is-arrayish": ["0.2.1"], + }, + ) + + npm_import( name = "npm__is-base64__0.1.0", root_package = "", link_workspace = "", @@ -12629,23 +13055,23 @@ ) npm_import( - name = "npm__isomorphic-ws__5.0.0__ws_8.12.1", + name = "npm__isomorphic-ws__5.0.0__ws_8.13.0", root_package = "", link_workspace = "", link_packages = {}, package = "isomorphic-ws", - version = "5.0.0_ws_8.12.1", + version = "5.0.0_ws_8.13.0", url = "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", npm_translate_lock_repo = "npm", dev = True, generate_bzl_library_targets = True, integrity = "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==", deps = { - "ws": "8.12.1_bufferutil_4.0.7", + "ws": "8.13.0_bufferutil_4.0.7", }, transitive_closure = { - "isomorphic-ws": ["5.0.0_ws_8.12.1"], - "ws": ["8.12.1_bufferutil_4.0.7"], + "isomorphic-ws": ["5.0.0_ws_8.13.0"], + "ws": ["8.13.0_bufferutil_4.0.7"], "bufferutil": ["4.0.7"], "node-gyp-build": ["4.6.0"], }, @@ -13225,6 +13651,23 @@ ) npm_import( + name = "npm__lines-and-columns__1.2.4", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "lines-and-columns", + version = "1.2.4", + url = "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + transitive_closure = { + "lines-and-columns": ["1.2.4"], + }, + ) + + npm_import( name = "npm__loader-runner__4.3.0", root_package = "", link_workspace = "", @@ -14415,6 +14858,40 @@ ) npm_import( + name = "npm__mitt__3.0.0", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "mitt", + version = "3.0.0", + url = "https://registry.npmjs.org/mitt/-/mitt-3.0.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-7dX2/10ITVyqh4aOSVI9gdape+t9l2/8QxHrFmUXu4EEUpdlxl6RudZUPZoc+zuY2hk1j7XxVroIVIan/pD/SQ==", + transitive_closure = { + "mitt": ["3.0.0"], + }, + ) + + npm_import( + name = "npm__mkdirp-classic__0.5.3", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "mkdirp-classic", + version = "0.5.3", + url = "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", + transitive_closure = { + "mkdirp-classic": ["0.5.3"], + }, + ) + + npm_import( name = "npm__mkdirp__0.5.6", root_package = "", link_workspace = "", @@ -15318,6 +15795,29 @@ ) npm_import( + name = "npm__node-fetch__2.6.7", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "node-fetch", + version = "2.6.7", + url = "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + deps = { + "whatwg-url": "5.0.0", + }, + transitive_closure = { + "node-fetch": ["2.6.7"], + "whatwg-url": ["5.0.0"], + "tr46": ["0.0.3"], + "webidl-conversions": ["3.0.1"], + }, + ) + + npm_import( name = "npm__node-fetch__2.6.9", root_package = "", link_workspace = "", @@ -16592,6 +17092,27 @@ ) npm_import( + name = "npm__parent-module__1.0.1", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "parent-module", + version = "1.0.1", + url = "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + deps = { + "callsites": "3.1.0", + }, + transitive_closure = { + "parent-module": ["1.0.1"], + "callsites": ["3.1.0"], + }, + ) + + npm_import( name = "npm__parenthesis__3.1.8", root_package = "", link_workspace = "", @@ -16609,6 +17130,44 @@ ) npm_import( + name = "npm__parse-json__5.2.0", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "parse-json", + version = "5.2.0", + url = "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + deps = { + "@babel/code-frame": "7.18.6", + "error-ex": "1.3.2", + "json-parse-even-better-errors": "2.3.1", + "lines-and-columns": "1.2.4", + }, + transitive_closure = { + "parse-json": ["5.2.0"], + "@babel/code-frame": ["7.18.6"], + "error-ex": ["1.3.2"], + "json-parse-even-better-errors": ["2.3.1"], + "lines-and-columns": ["1.2.4"], + "is-arrayish": ["0.2.1"], + "@babel/highlight": ["7.18.6"], + "@babel/helper-validator-identifier": ["7.19.1"], + "chalk": ["2.4.2"], + "js-tokens": ["4.0.0"], + "ansi-styles": ["3.2.1"], + "escape-string-regexp": ["1.0.5"], + "supports-color": ["5.5.0"], + "has-flag": ["3.0.0"], + "color-convert": ["1.9.3"], + "color-name": ["1.1.3"], + }, + ) + + npm_import( name = "npm__parse-rect__1.2.0", root_package = "", link_workspace = "", @@ -16728,6 +17287,23 @@ ) npm_import( + name = "npm__path-type__4.0.0", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "path-type", + version = "4.0.0", + url = "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + transitive_closure = { + "path-type": ["4.0.0"], + }, + ) + + npm_import( name = "npm__pathe__1.1.0", root_package = "", link_workspace = "", @@ -16769,6 +17345,23 @@ ) npm_import( + name = "npm__pend__1.2.0", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "pend", + version = "1.2.0", + url = "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + transitive_closure = { + "pend": ["1.2.0"], + }, + ) + + npm_import( name = "npm__performance-now__2.1.0", root_package = "", link_workspace = "", @@ -17521,6 +18114,23 @@ ) npm_import( + name = "npm__progress__2.0.3", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "progress", + version = "2.0.3", + url = "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + transitive_closure = { + "progress": ["2.0.3"], + }, + ) + + npm_import( name = "npm__promise-inflight__1.0.1", root_package = "", link_workspace = "", @@ -17578,6 +18188,23 @@ ) npm_import( + name = "npm__proxy-from-env__1.1.0", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "proxy-from-env", + version = "1.1.0", + url = "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + transitive_closure = { + "proxy-from-env": ["1.1.0"], + }, + ) + + npm_import( name = "npm__psl__1.9.0", root_package = "", link_workspace = "", @@ -17659,6 +18286,214 @@ ) npm_import( + name = "npm__puppeteer-core__19.11.0__-369149898", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "puppeteer-core", + version = "19.11.0_-369149898", + url = "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-19.11.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-UBlwpyTEKcaOt7bIWWhlhIXDlFbR1wVBcxpMibBhImwagkwDB8ld8ehT5dOdfKIcCHjxXzVEaMtgDKzfwcf7Rg==", + deps = { + "@puppeteer/browsers": "0.5.0_typescript_4.9.5", + "chromium-bidi": "0.4.7_devtools-protocol_0.0.1107588", + "cross-fetch": "3.1.5", + "debug": "4.3.4", + "devtools-protocol": "0.0.1107588", + "extract-zip": "2.0.1", + "https-proxy-agent": "5.0.1", + "proxy-from-env": "1.1.0", + "tar-fs": "2.1.1", + "typescript": "4.9.5", + "unbzip2-stream": "1.4.3", + "ws": "8.13.0_bufferutil_4.0.7", + }, + transitive_closure = { + "puppeteer-core": ["19.11.0_-369149898"], + "@puppeteer/browsers": ["0.5.0_typescript_4.9.5"], + "chromium-bidi": ["0.4.7_devtools-protocol_0.0.1107588"], + "cross-fetch": ["3.1.5"], + "debug": ["4.3.4"], + "devtools-protocol": ["0.0.1107588"], + "extract-zip": ["2.0.1"], + "https-proxy-agent": ["5.0.1"], + "proxy-from-env": ["1.1.0"], + "tar-fs": ["2.1.1"], + "typescript": ["4.9.5"], + "unbzip2-stream": ["1.4.3"], + "ws": ["8.13.0_bufferutil_4.0.7"], + "bufferutil": ["4.0.7"], + "node-gyp-build": ["4.6.0"], + "buffer": ["5.7.1"], + "through": ["2.3.8"], + "base64-js": ["1.5.1"], + "ieee754": ["1.2.1"], + "chownr": ["1.1.4"], + "mkdirp-classic": ["0.5.3"], + "pump": ["3.0.0"], + "tar-stream": ["2.2.0"], + "bl": ["4.1.0"], + "end-of-stream": ["1.4.4"], + "fs-constants": ["1.0.0"], + "inherits": ["2.0.4"], + "readable-stream": ["3.6.1"], + "string_decoder": ["1.3.0"], + "util-deprecate": ["1.0.2"], + "safe-buffer": ["5.2.1"], + "once": ["1.4.0"], + "wrappy": ["1.0.2"], + "agent-base": ["6.0.2"], + "get-stream": ["5.2.0"], + "yauzl": ["2.10.0"], + "@types/yauzl": ["registry.npmjs.org/@types/yauzl@2.10.0"], + "@types/node": ["registry.npmjs.org/@types/node@18.11.18"], + "buffer-crc32": ["0.2.13"], + "fd-slicer": ["1.1.0"], + "pend": ["1.2.0"], + "ms": ["2.1.2"], + "node-fetch": ["2.6.7"], + "whatwg-url": ["5.0.0"], + "tr46": ["0.0.3"], + "webidl-conversions": ["3.0.1"], + "mitt": ["3.0.0"], + "progress": ["2.0.3"], + "yargs": ["17.7.1"], + "cliui": ["8.0.1"], + "escalade": ["3.1.1"], + "get-caller-file": ["2.0.5"], + "require-directory": ["2.1.1"], + "string-width": ["4.2.3"], + "y18n": ["5.0.8"], + "yargs-parser": ["21.1.1"], + "emoji-regex": ["8.0.0"], + "is-fullwidth-code-point": ["3.0.0"], + "strip-ansi": ["6.0.1"], + "ansi-regex": ["5.0.1"], + "wrap-ansi": ["7.0.0"], + "ansi-styles": ["4.3.0"], + "color-convert": ["2.0.1"], + "color-name": ["1.1.4"], + }, + ) + + npm_import( + name = "npm__puppeteer__19.11.0__-369149898", + root_package = "", + link_workspace = "", + link_packages = { + "npm/private/test": ["puppeteer"], + }, + package = "puppeteer", + version = "19.11.0_-369149898", + url = "https://registry.npmjs.org/puppeteer/-/puppeteer-19.11.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-xE0BTOFIR/fEXEHQNfGGMWGr3IQBB2AY760K+pE11kjBKe5P0jivzWG1LHr0TA1/xiHxu9nAhQzv5zh2Dy0YEQ==", + deps = { + "@puppeteer/browsers": "0.5.0_typescript_4.9.5", + "cosmiconfig": "8.1.3", + "https-proxy-agent": "5.0.1", + "progress": "2.0.3", + "proxy-from-env": "1.1.0", + "puppeteer-core": "19.11.0_-369149898", + }, + transitive_closure = { + "puppeteer": ["19.11.0_-369149898"], + "@puppeteer/browsers": ["0.5.0_typescript_4.9.5"], + "cosmiconfig": ["8.1.3"], + "https-proxy-agent": ["5.0.1"], + "progress": ["2.0.3"], + "proxy-from-env": ["1.1.0"], + "puppeteer-core": ["19.11.0_-369149898"], + "chromium-bidi": ["0.4.7_devtools-protocol_0.0.1107588"], + "cross-fetch": ["3.1.5"], + "debug": ["4.3.4"], + "devtools-protocol": ["0.0.1107588"], + "extract-zip": ["2.0.1"], + "tar-fs": ["2.1.1"], + "typescript": ["4.9.5"], + "unbzip2-stream": ["1.4.3"], + "ws": ["8.13.0_bufferutil_4.0.7"], + "bufferutil": ["4.0.7"], + "node-gyp-build": ["4.6.0"], + "buffer": ["5.7.1"], + "through": ["2.3.8"], + "base64-js": ["1.5.1"], + "ieee754": ["1.2.1"], + "chownr": ["1.1.4"], + "mkdirp-classic": ["0.5.3"], + "pump": ["3.0.0"], + "tar-stream": ["2.2.0"], + "bl": ["4.1.0"], + "end-of-stream": ["1.4.4"], + "fs-constants": ["1.0.0"], + "inherits": ["2.0.4"], + "readable-stream": ["3.6.1"], + "string_decoder": ["1.3.0"], + "util-deprecate": ["1.0.2"], + "safe-buffer": ["5.2.1"], + "once": ["1.4.0"], + "wrappy": ["1.0.2"], + "get-stream": ["5.2.0"], + "yauzl": ["2.10.0"], + "@types/yauzl": ["registry.npmjs.org/@types/yauzl@2.10.0"], + "@types/node": ["registry.npmjs.org/@types/node@18.11.18"], + "buffer-crc32": ["0.2.13"], + "fd-slicer": ["1.1.0"], + "pend": ["1.2.0"], + "ms": ["2.1.2"], + "node-fetch": ["2.6.7"], + "whatwg-url": ["5.0.0"], + "tr46": ["0.0.3"], + "webidl-conversions": ["3.0.1"], + "mitt": ["3.0.0"], + "agent-base": ["6.0.2"], + "import-fresh": ["3.3.0"], + "js-yaml": ["4.1.0"], + "parse-json": ["5.2.0"], + "path-type": ["4.0.0"], + "@babel/code-frame": ["7.18.6"], + "error-ex": ["1.3.2"], + "json-parse-even-better-errors": ["2.3.1"], + "lines-and-columns": ["1.2.4"], + "is-arrayish": ["0.2.1"], + "@babel/highlight": ["7.18.6"], + "@babel/helper-validator-identifier": ["7.19.1"], + "chalk": ["2.4.2"], + "js-tokens": ["4.0.0"], + "ansi-styles": ["4.3.0", "3.2.1"], + "escape-string-regexp": ["1.0.5"], + "supports-color": ["5.5.0"], + "has-flag": ["3.0.0"], + "color-convert": ["2.0.1", "1.9.3"], + "color-name": ["1.1.4", "1.1.3"], + "argparse": ["2.0.1"], + "parent-module": ["1.0.1"], + "resolve-from": ["4.0.0"], + "callsites": ["3.1.0"], + "yargs": ["17.7.1"], + "cliui": ["8.0.1"], + "escalade": ["3.1.1"], + "get-caller-file": ["2.0.5"], + "require-directory": ["2.1.1"], + "string-width": ["4.2.3"], + "y18n": ["5.0.8"], + "yargs-parser": ["21.1.1"], + "emoji-regex": ["8.0.0"], + "is-fullwidth-code-point": ["3.0.0"], + "strip-ansi": ["6.0.1"], + "ansi-regex": ["5.0.1"], + "wrap-ansi": ["7.0.0"], + }, + lifecycle_hooks = ["preinstall", "install", "postinstall"], + lifecycle_hooks_execution_requirements = ["no-sandbox", "no-remote-exec", "requires-network"], + ) + + npm_import( name = "npm__pxls__2.3.2", root_package = "", link_workspace = "", @@ -18755,6 +19590,23 @@ ) npm_import( + name = "npm__resolve-from__4.0.0", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "resolve-from", + version = "4.0.0", + url = "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + transitive_closure = { + "resolve-from": ["4.0.0"], + }, + ) + + npm_import( name = "npm__resolve-from__5.0.0", root_package = "", link_workspace = "", @@ -20454,6 +21306,46 @@ ) npm_import( + name = "npm__tar-fs__2.1.1", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "tar-fs", + version = "2.1.1", + url = "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", + deps = { + "chownr": "1.1.4", + "mkdirp-classic": "0.5.3", + "pump": "3.0.0", + "tar-stream": "2.2.0", + }, + transitive_closure = { + "tar-fs": ["2.1.1"], + "chownr": ["1.1.4"], + "mkdirp-classic": ["0.5.3"], + "pump": ["3.0.0"], + "tar-stream": ["2.2.0"], + "bl": ["4.1.0"], + "end-of-stream": ["1.4.4"], + "fs-constants": ["1.0.0"], + "inherits": ["2.0.4"], + "readable-stream": ["3.6.1"], + "string_decoder": ["1.3.0"], + "util-deprecate": ["1.0.2"], + "safe-buffer": ["5.2.1"], + "once": ["1.4.0"], + "wrappy": ["1.0.2"], + "buffer": ["5.7.1"], + "base64-js": ["1.5.1"], + "ieee754": ["1.2.1"], + }, + ) + + npm_import( name = "npm__tar-stream__1.6.2", root_package = "", link_workspace = "", @@ -20498,6 +21390,43 @@ ) npm_import( + name = "npm__tar-stream__2.2.0", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "tar-stream", + version = "2.2.0", + url = "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + deps = { + "bl": "4.1.0", + "end-of-stream": "1.4.4", + "fs-constants": "1.0.0", + "inherits": "2.0.4", + "readable-stream": "3.6.1", + }, + transitive_closure = { + "tar-stream": ["2.2.0"], + "bl": ["4.1.0"], + "end-of-stream": ["1.4.4"], + "fs-constants": ["1.0.0"], + "inherits": ["2.0.4"], + "readable-stream": ["3.6.1"], + "string_decoder": ["1.3.0"], + "util-deprecate": ["1.0.2"], + "safe-buffer": ["5.2.1"], + "once": ["1.4.0"], + "wrappy": ["1.0.2"], + "buffer": ["5.7.1"], + "base64-js": ["1.5.1"], + "ieee754": ["1.2.1"], + }, + ) + + npm_import( name = "npm__tar-stream__3.0.0", root_package = "", link_workspace = "", @@ -20863,6 +21792,23 @@ ) npm_import( + name = "npm__through__2.3.8", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "through", + version = "2.3.8", + url = "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + transitive_closure = { + "through": ["2.3.8"], + }, + ) + + npm_import( name = "npm__tiny-emitter__2.1.0", root_package = "", link_workspace = "", @@ -21517,6 +22463,31 @@ ) npm_import( + name = "npm__unbzip2-stream__1.4.3", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "unbzip2-stream", + version = "1.4.3", + url = "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", + deps = { + "buffer": "5.7.1", + "through": "2.3.8", + }, + transitive_closure = { + "unbzip2-stream": ["1.4.3"], + "buffer": ["5.7.1"], + "through": ["2.3.8"], + "base64-js": ["1.5.1"], + "ieee754": ["1.2.1"], + }, + ) + + npm_import( name = "npm__underscore__1.13.6", root_package = "", link_workspace = "", @@ -22922,22 +23893,22 @@ ) npm_import( - name = "npm__ws__8.12.1__bufferutil_4.0.7", + name = "npm__ws__8.13.0__bufferutil_4.0.7", root_package = "", link_workspace = "", link_packages = {}, package = "ws", - version = "8.12.1_bufferutil_4.0.7", - url = "https://registry.npmjs.org/ws/-/ws-8.12.1.tgz", + version = "8.13.0_bufferutil_4.0.7", + url = "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", npm_translate_lock_repo = "npm", dev = True, generate_bzl_library_targets = True, - integrity = "sha512-1qo+M9Ba+xNhPB+YTWUlK6M17brTut5EXbcBaMRN5pH5dFrXz7lzz1ChFSUq3bOUl8yEvSenhHmYUNJxFzdJew==", + integrity = "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", deps = { "bufferutil": "4.0.7", }, transitive_closure = { - "ws": ["8.12.1_bufferutil_4.0.7"], + "ws": ["8.13.0_bufferutil_4.0.7"], "bufferutil": ["4.0.7"], "node-gyp-build": ["4.6.0"], }, @@ -23077,6 +24048,23 @@ ) npm_import( + name = "npm__yargs-parser__21.1.1", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "yargs-parser", + version = "21.1.1", + url = "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + transitive_closure = { + "yargs-parser": ["21.1.1"], + }, + ) + + npm_import( name = "npm__yargs-unparser__2.0.0", root_package = "", link_workspace = "", @@ -23144,6 +24132,71 @@ ) npm_import( + name = "npm__yargs__17.7.1", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "yargs", + version = "17.7.1", + url = "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", + deps = { + "cliui": "8.0.1", + "escalade": "3.1.1", + "get-caller-file": "2.0.5", + "require-directory": "2.1.1", + "string-width": "4.2.3", + "y18n": "5.0.8", + "yargs-parser": "21.1.1", + }, + transitive_closure = { + "yargs": ["17.7.1"], + "cliui": ["8.0.1"], + "escalade": ["3.1.1"], + "get-caller-file": ["2.0.5"], + "require-directory": ["2.1.1"], + "string-width": ["4.2.3"], + "y18n": ["5.0.8"], + "yargs-parser": ["21.1.1"], + "emoji-regex": ["8.0.0"], + "is-fullwidth-code-point": ["3.0.0"], + "strip-ansi": ["6.0.1"], + "ansi-regex": ["5.0.1"], + "wrap-ansi": ["7.0.0"], + "ansi-styles": ["4.3.0"], + "color-convert": ["2.0.1"], + "color-name": ["1.1.4"], + }, + ) + + npm_import( + name = "npm__yauzl__2.10.0", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "yauzl", + version = "2.10.0", + url = "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + deps = { + "buffer-crc32": "0.2.13", + "fd-slicer": "1.1.0", + }, + transitive_closure = { + "yauzl": ["2.10.0"], + "buffer-crc32": ["0.2.13"], + "fd-slicer": ["1.1.0"], + "pend": ["1.2.0"], + }, + ) + + npm_import( name = "npm__yocto-queue__0.1.0", root_package = "", link_workspace = "", @@ -23351,7 +24404,7 @@ "@types/underscore": "registry.npmjs.org/@types/underscore@1.11.4", "@types/ws": "registry.npmjs.org/@types/ws@8.5.4", "byline": "5.0.0", - "isomorphic-ws": "5.0.0_ws_8.12.1", + "isomorphic-ws": "5.0.0_ws_8.13.0", "js-yaml": "4.1.0", "jsonpath-plus": "7.2.0", "request": "2.88.2", @@ -23362,7 +24415,7 @@ "tslib": "2.5.0", "typescript": "4.9.5", "underscore": "1.13.6", - "ws": "8.12.1_bufferutil_4.0.7", + "ws": "8.13.0_bufferutil_4.0.7", }, transitive_closure = { "@kubernetes/client-node": ["github.com/kubernetes-client/javascript/fc681991e61c6808dd26012a2331f83671a11218_bufferutil_4.0.7"], @@ -23372,7 +24425,7 @@ "@types/underscore": ["registry.npmjs.org/@types/underscore@1.11.4"], "@types/ws": ["registry.npmjs.org/@types/ws@8.5.4"], "byline": ["5.0.0"], - "isomorphic-ws": ["5.0.0_ws_8.12.1"], + "isomorphic-ws": ["5.0.0_ws_8.13.0"], "js-yaml": ["4.1.0"], "jsonpath-plus": ["7.2.0"], "request": ["2.88.2"], @@ -23383,7 +24436,7 @@ "tslib": ["2.5.0"], "typescript": ["4.9.5"], "underscore": ["1.13.6"], - "ws": ["8.12.1_bufferutil_4.0.7"], + "ws": ["8.13.0_bufferutil_4.0.7"], "openid-client": ["5.4.0"], "jose": ["4.12.0"], "lru-cache": ["6.0.0"], @@ -23998,3 +25051,26 @@ "@types/node": ["registry.npmjs.org/@types/node@18.11.18"], }, ) + + npm_import( + name = "npm__at_types_yauzl__registry.npmjs.org_at_types_yauzl_2.10.0", + root_package = "", + link_workspace = "", + link_packages = {}, + package = "@types/yauzl", + version = "registry.npmjs.org/@types/yauzl@2.10.0", + url = "https://registry.yarnpkg.com/@types/yauzl/-/yauzl-2.10.0.tgz", + npm_translate_lock_repo = "npm", + dev = True, + generate_bzl_library_targets = True, + integrity = "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==", + deps = { + "@types/node": "registry.npmjs.org/@types/node@18.11.18", + }, + transitive_closure = { + "@types/yauzl": ["registry.npmjs.org/@types/yauzl@2.10.0"], + "@types/node": ["registry.npmjs.org/@types/node@18.11.18"], + }, + lifecycle_hooks = ["preinstall", "install", "postinstall"], + lifecycle_hooks_execution_requirements = ["no-sandbox"], + )
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 00352ff..accdbdb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml
@@ -284,6 +284,9 @@ protoc-gen-grpc: specifier: git+ssh://git@github.com:gregmagolan-codaio/protoc-gen-grpc-ts#be5580b06348d3eb9b4610a4a94065154a0df41f version: github.com/gregmagolan-codaio/protoc-gen-grpc-ts/be5580b06348d3eb9b4610a4a94065154a0df41f + puppeteer: + specifier: 19.11.0 + version: 19.11.0(bufferutil@4.0.7)(typescript@4.9.5) regl: specifier: npm:@plotly/regl@2.1.2 version: /@plotly/regl@2.1.2 @@ -987,6 +990,29 @@ resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==} dev: true + /@puppeteer/browsers@0.5.0(typescript@4.9.5): + resolution: {integrity: sha512-Uw6oB7VvmPRLE4iKsjuOh8zgDabhNX67dzo8U/BB0f9527qx+4eeUs+korU98OhG5C4ubg7ufBgVi63XYwS6TQ==} + engines: {node: '>=14.1.0'} + hasBin: true + peerDependencies: + typescript: '>= 4.7.4' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + debug: 4.3.4 + extract-zip: 2.0.1 + https-proxy-agent: 5.0.1 + progress: 2.0.3 + proxy-from-env: 1.1.0 + tar-fs: 2.1.1 + typescript: 4.9.5 + unbzip2-stream: 1.4.3 + yargs: 17.7.1 + transitivePeerDependencies: + - supports-color + dev: true + /@rollup/plugin-commonjs@21.1.0(rollup@2.70.2): resolution: {integrity: sha512-6ZtHx3VHIp2ReNNDxHjuUml6ur+WcQ28N1yHgCQwsbNkQg2suhxGMDQGJOn/KuDxKtd1xuZP5xSTwBA4GQ8hbA==} engines: {node: '>= 8.0.0'} @@ -1699,7 +1725,6 @@ /base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - dev: false /bcrypt-pbkdf@1.0.2: resolution: {integrity: sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==} @@ -1748,6 +1773,14 @@ safe-buffer: 5.2.1 dev: true + /bl@4.1.0: + resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} + dependencies: + buffer: 5.7.1 + inherits: 2.0.4 + readable-stream: 3.6.1 + dev: true + /bl@6.0.0: resolution: {integrity: sha512-Ik9BVIMdcWzSOCpzDv2XpQ4rJ4oZBuk3ck6MgiOv0EopdgtohN2uSCrrLlkH1Jf0KnpZZMBA3D0bUMbCdj/jgA==} dependencies: @@ -1800,6 +1833,10 @@ buffer-fill: 1.0.0 dev: true + /buffer-crc32@0.2.13: + resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} + dev: true + /buffer-fill@1.0.0: resolution: {integrity: sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==} dev: true @@ -1807,6 +1844,13 @@ /buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + /buffer@5.7.1: + resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + dev: true + /buffer@6.0.3: resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} dependencies: @@ -1898,6 +1942,11 @@ responselike: 2.0.1 dev: true + /callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + dev: true + /camelcase@6.3.0: resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} engines: {node: '>=10'} @@ -1968,6 +2017,15 @@ resolution: {integrity: sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==} engines: {node: '>=6.0'} + /chromium-bidi@0.4.7(devtools-protocol@0.0.1107588): + resolution: {integrity: sha512-6+mJuFXwTMU6I3vYLs6IL8A1DyQTPjCfIL971X0aMPVGRbGnNfl6i6Cl0NMbxi2bRYLGESt9T2ZIMRM5PAEcIQ==} + peerDependencies: + devtools-protocol: '*' + dependencies: + devtools-protocol: 0.0.1107588 + mitt: 3.0.0 + dev: true + /clamp@1.0.1: resolution: {integrity: sha512-kgMuFyE78OC6Dyu3Dy7vcx4uy97EIbVxJB/B0eJ3bUNAkwdNcxYzgKltnyADiYwsR7SEqkkUPsEUT//OVS6XMA==} dev: true @@ -1984,6 +2042,15 @@ strip-ansi: 6.0.1 wrap-ansi: 7.0.0 + /cliui@8.0.1: + resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} + engines: {node: '>=12'} + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + dev: true + /clone-deep@4.0.1: resolution: {integrity: sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==} engines: {node: '>=6'} @@ -2146,10 +2213,28 @@ resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} dev: true + /cosmiconfig@8.1.3: + resolution: {integrity: sha512-/UkO2JKI18b5jVMJUp0lvKFMpa/Gye+ZgZjKD+DGEN9y7NRcf/nK1A0sp67ONmKtnDCNMS44E6jrk0Yc3bDuUw==} + engines: {node: '>=14'} + dependencies: + import-fresh: 3.3.0 + js-yaml: 4.1.0 + parse-json: 5.2.0 + path-type: 4.0.0 + dev: true + /country-regex@1.1.0: resolution: {integrity: sha512-iSPlClZP8vX7MC3/u6s3lrDuoQyhQukh5LyABJ3hvfzbQ3Yyayd4fp04zjLnfi267B/B2FkumcWWgrbban7sSA==} dev: true + /cross-fetch@3.1.5: + resolution: {integrity: sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==} + dependencies: + node-fetch: 2.6.7 + transitivePeerDependencies: + - encoding + dev: true + /cross-spawn@7.0.3: resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} engines: {node: '>= 8'} @@ -2471,6 +2556,10 @@ engines: {node: '>=8'} dev: true + /devtools-protocol@0.0.1107588: + resolution: {integrity: sha512-yIR+pG9x65Xko7bErCUSQaDLrO/P1p3JUzEk7JCU4DowPcGHkTGUGQapcfcLc4qj0UaALwZ+cr0riFgiqpixcg==} + dev: true + /diff@5.0.0: resolution: {integrity: sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==} engines: {node: '>=0.3.1'} @@ -2581,6 +2670,12 @@ resolution: {integrity: sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==} dev: true + /error-ex@1.3.2: + resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} + dependencies: + is-arrayish: 0.2.1 + dev: true + /es-module-lexer@0.9.3: resolution: {integrity: sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==} @@ -2959,6 +3054,20 @@ resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} dev: true + /extract-zip@2.0.1: + resolution: {integrity: sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==} + engines: {node: '>= 10.17.0'} + hasBin: true + dependencies: + debug: 4.3.4 + get-stream: 5.2.0 + yauzl: 2.10.0 + optionalDependencies: + '@types/yauzl': registry.npmjs.org/@types/yauzl@2.10.0 + transitivePeerDependencies: + - supports-color + dev: true + /extsprintf@1.3.0: resolution: {integrity: sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==} engines: {'0': node >=0.6.0} @@ -2996,6 +3105,12 @@ resolution: {integrity: sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==} engines: {node: '>= 4.9.1'} + /fd-slicer@1.1.0: + resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==} + dependencies: + pend: 1.2.0 + dev: true + /file-uri-to-path@1.0.0: resolution: {integrity: sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==} dev: true @@ -3594,6 +3709,14 @@ quantize: 1.0.2 dev: true + /import-fresh@3.3.0: + resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} + engines: {node: '>=6'} + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + dev: true + /import-local@3.1.0: resolution: {integrity: sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==} engines: {node: '>=8'} @@ -3645,6 +3768,10 @@ resolution: {integrity: sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==} dev: true + /is-arrayish@0.2.1: + resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} + dev: true + /is-base64@0.1.0: resolution: {integrity: sha512-WRRyllsGXJM7ZN7gPTCCQ/6wNPTRDwiWdPK66l5sJzcU/oOzcIcRRf0Rux8bkpox/1yjt0F6VJRsQOIG2qz5sg==} dev: true @@ -3813,12 +3940,12 @@ resolution: {integrity: sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==} engines: {node: '>=0.10.0'} - /isomorphic-ws@5.0.0(ws@8.12.1): + /isomorphic-ws@5.0.0(ws@8.13.0): resolution: {integrity: sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==} peerDependencies: ws: '*' dependencies: - ws: 8.12.1(bufferutil@4.0.7) + ws: 8.13.0(bufferutil@4.0.7) dev: true /isstream@0.1.2: @@ -3982,6 +4109,10 @@ type-check: 0.3.2 dev: true + /lines-and-columns@1.2.4: + resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + dev: true + /loader-runner@4.3.0: resolution: {integrity: sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==} engines: {node: '>=6.11.5'} @@ -4307,6 +4438,14 @@ minipass: 3.3.6 yallist: 4.0.0 + /mitt@3.0.0: + resolution: {integrity: sha512-7dX2/10ITVyqh4aOSVI9gdape+t9l2/8QxHrFmUXu4EEUpdlxl6RudZUPZoc+zuY2hk1j7XxVroIVIan/pD/SQ==} + dev: true + + /mkdirp-classic@0.5.3: + resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==} + dev: true + /mkdirp@0.5.6: resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} hasBin: true @@ -4545,6 +4684,18 @@ resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==} dev: true + /node-fetch@2.6.7: + resolution: {integrity: sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + dependencies: + whatwg-url: 5.0.0 + dev: true + /node-fetch@2.6.9: resolution: {integrity: sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==} engines: {node: 4.x || >=6.0.0} @@ -4874,10 +5025,27 @@ resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} + /parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + dependencies: + callsites: 3.1.0 + dev: true + /parenthesis@3.1.8: resolution: {integrity: sha512-KF/U8tk54BgQewkJPvB4s/US3VQY68BRDpH638+7O/n58TpnwiwnOtGIOsT2/i+M78s61BBpeC83STB88d8sqw==} dev: true + /parse-json@5.2.0: + resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} + engines: {node: '>=8'} + dependencies: + '@babel/code-frame': 7.18.6 + error-ex: 1.3.2 + json-parse-even-better-errors: 2.3.1 + lines-and-columns: 1.2.4 + dev: true + /parse-rect@1.2.0: resolution: {integrity: sha512-4QZ6KYbnE6RTwg9E0HpLchUM9EZt6DnDxajFZZDSV4p/12ZJEvPO702DZpGvRYEPo00yKDys7jASi+/w7aO8LA==} dependencies: @@ -4907,6 +5075,11 @@ /path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + /path-type@4.0.0: + resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} + engines: {node: '>=8'} + dev: true + /pathe@1.1.0: resolution: {integrity: sha512-ODbEPR0KKHqECXW1GoxdDb+AZvULmXjVPy4rt+pGo2+TnjJTIPJQSVS6N63n8T2Ip+syHhbn52OewKicV0373w==} dev: true @@ -4919,6 +5092,10 @@ resolve-protobuf-schema: 2.1.0 dev: true + /pend@1.2.0: + resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==} + dev: true + /performance-now@2.1.0: resolution: {integrity: sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==} dev: true @@ -5103,6 +5280,11 @@ engines: {node: '>= 0.6.0'} dev: false + /progress@2.0.3: + resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} + engines: {node: '>=0.4.0'} + dev: true + /promise-inflight@1.0.1: resolution: {integrity: sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==} peerDependencies: @@ -5124,6 +5306,10 @@ resolution: {integrity: sha512-TdDRD+/QNdrCGCE7v8340QyuXd4kIWIgapsE2+n/SaGiSSbomYl4TjHlvIoCWRpE7wFt02EpB35VVA2ImcBVqw==} dev: true + /proxy-from-env@1.1.0: + resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} + dev: true + /psl@1.9.0: resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==} dev: true @@ -5146,6 +5332,52 @@ resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==} engines: {node: '>=6'} + /puppeteer-core@19.11.0(bufferutil@4.0.7)(typescript@4.9.5): + resolution: {integrity: sha512-UBlwpyTEKcaOt7bIWWhlhIXDlFbR1wVBcxpMibBhImwagkwDB8ld8ehT5dOdfKIcCHjxXzVEaMtgDKzfwcf7Rg==} + engines: {node: '>=14.14.0'} + peerDependencies: + typescript: '>= 4.7.4' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@puppeteer/browsers': 0.5.0(typescript@4.9.5) + chromium-bidi: 0.4.7(devtools-protocol@0.0.1107588) + cross-fetch: 3.1.5 + debug: 4.3.4 + devtools-protocol: 0.0.1107588 + extract-zip: 2.0.1 + https-proxy-agent: 5.0.1 + proxy-from-env: 1.1.0 + tar-fs: 2.1.1 + typescript: 4.9.5 + unbzip2-stream: 1.4.3 + ws: 8.13.0(bufferutil@4.0.7) + transitivePeerDependencies: + - bufferutil + - encoding + - supports-color + - utf-8-validate + dev: true + + /puppeteer@19.11.0(bufferutil@4.0.7)(typescript@4.9.5): + resolution: {integrity: sha512-xE0BTOFIR/fEXEHQNfGGMWGr3IQBB2AY760K+pE11kjBKe5P0jivzWG1LHr0TA1/xiHxu9nAhQzv5zh2Dy0YEQ==} + requiresBuild: true + dependencies: + '@puppeteer/browsers': 0.5.0(typescript@4.9.5) + cosmiconfig: 8.1.3 + https-proxy-agent: 5.0.1 + progress: 2.0.3 + proxy-from-env: 1.1.0 + puppeteer-core: 19.11.0(bufferutil@4.0.7)(typescript@4.9.5) + transitivePeerDependencies: + - bufferutil + - encoding + - supports-color + - typescript + - utf-8-validate + dev: true + /pxls@2.3.2: resolution: {integrity: sha512-pQkwgbLqWPcuES5iEmGa10OlCf5xG0blkIF3dg7PpRZShbTYcvAdfFfGL03SMrkaSUaa/V0UpN9HWg40O2AIIw==} dependencies: @@ -5381,6 +5613,11 @@ dependencies: resolve-from: 5.0.0 + /resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + dev: true + /resolve-from@5.0.0: resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} engines: {node: '>=8'} @@ -5841,6 +6078,15 @@ tar-stream: 1.6.2 dev: true + /tar-fs@2.1.1: + resolution: {integrity: sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==} + dependencies: + chownr: 1.1.4 + mkdirp-classic: 0.5.3 + pump: 3.0.0 + tar-stream: 2.2.0 + dev: true + /tar-stream@1.6.2: resolution: {integrity: sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==} engines: {node: '>= 0.8.0'} @@ -5854,6 +6100,17 @@ xtend: 4.0.2 dev: true + /tar-stream@2.2.0: + resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} + engines: {node: '>=6'} + dependencies: + bl: 4.1.0 + end-of-stream: 1.4.4 + fs-constants: 1.0.0 + inherits: 2.0.4 + readable-stream: 3.6.1 + dev: true + /tar-stream@3.0.0: resolution: {integrity: sha512-O6OfUKBbQOqAhh6owTWmA730J/yZCYcpmZ1DBj2YX51ZQrt7d7NgzrR+CnO9wP6nt/viWZW2XeXLavX3/ZEbEg==} dependencies: @@ -5942,6 +6199,10 @@ xtend: 4.0.2 dev: true + /through@2.3.8: + resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} + dev: true + /tiny-emitter@2.1.0: resolution: {integrity: sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==} dev: false @@ -6118,6 +6379,13 @@ resolution: {integrity: sha512-LQc2s/ZDMaCN3QLpa+uzHUOQ7SdV0qgv3VBXOolQGXTaaZpIur6PwUclF5nN2hNkiTRcUugXd1zFOW3FLJ135Q==} dev: true + /unbzip2-stream@1.4.3: + resolution: {integrity: sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==} + dependencies: + buffer: 5.7.1 + through: 2.3.8 + dev: true + /underscore@1.13.6: resolution: {integrity: sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==} dev: true @@ -6510,8 +6778,8 @@ bufferutil: 4.0.7 dev: true - /ws@8.12.1(bufferutil@4.0.7): - resolution: {integrity: sha512-1qo+M9Ba+xNhPB+YTWUlK6M17brTut5EXbcBaMRN5pH5dFrXz7lzz1ChFSUq3bOUl8yEvSenhHmYUNJxFzdJew==} + /ws@8.13.0(bufferutil@4.0.7): + resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==} engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 @@ -6559,6 +6827,11 @@ resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} engines: {node: '>=10'} + /yargs-parser@21.1.1: + resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} + engines: {node: '>=12'} + dev: true + /yargs-unparser@2.0.0: resolution: {integrity: sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==} engines: {node: '>=10'} @@ -6581,6 +6854,26 @@ y18n: 5.0.8 yargs-parser: 20.2.9 + /yargs@17.7.1: + resolution: {integrity: sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==} + engines: {node: '>=12'} + dependencies: + cliui: 8.0.1 + escalade: 3.1.1 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 21.1.1 + dev: true + + /yauzl@2.10.0: + resolution: {integrity: sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==} + dependencies: + buffer-crc32: 0.2.13 + fd-slicer: 1.1.0 + dev: true + /yocto-queue@0.1.0: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} @@ -6675,7 +6968,7 @@ '@types/underscore': registry.npmjs.org/@types/underscore@1.11.4 '@types/ws': registry.npmjs.org/@types/ws@8.5.4 byline: 5.0.0 - isomorphic-ws: 5.0.0(ws@8.12.1) + isomorphic-ws: 5.0.0(ws@8.13.0) js-yaml: 4.1.0 jsonpath-plus: 7.2.0 request: 2.88.2 @@ -6686,7 +6979,7 @@ tslib: 2.5.0 typescript: 4.9.5 underscore: 1.13.6 - ws: 8.12.1(bufferutil@4.0.7) + ws: 8.13.0(bufferutil@4.0.7) optionalDependencies: openid-client: 5.4.0 transitivePeerDependencies: @@ -6885,3 +7178,13 @@ dependencies: '@types/node': registry.npmjs.org/@types/node@18.11.18 dev: true + + registry.npmjs.org/@types/yauzl@2.10.0: + resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz} + name: '@types/yauzl' + version: 2.10.0 + requiresBuild: true + dependencies: + '@types/node': registry.npmjs.org/@types/node@18.11.18 + dev: true + optional: true