(()=>{var__webpack_modules__={5841:(e,t,r)=>{"use strict";e.exports=t;t.mockS3Http=r(9361).get_mockS3Http();t.mockS3Http("on");consta=t.mockS3Http("get");consts=r(7147);consto=r(1017);constu=r(1758);constc=r(9544);c.disableProgress();constf=r(5977);constd=r(2361).EventEmitter;constp=r(3837).inherits;consth=["clean","install","reinstall","build","rebuild","package","testpackage","publish","unpublish","info","testbinary","reveal","configure"];constv={};c.heading="node-pre-gyp";if(a){c.warn(`mocking s3 to ${process.env.node_pre_gyp_mock_s3}`)}Object.defineProperty(t,"find",{get:function(){returnr(5921).find},enumerable:true});functionRun({package_json_path:e="./package.json",argv:t}){this.package_json_path=e;this.commands={};constr=this;h.forEach((e=>{r.commands[e]=function(t,a){c.verbose("command",e,t);returnrequire("./"+e)(r,t,a)}}));this.parseArgv(t);this.binaryHostSet=false}p(Run,d);t.Run=Run;constg=Run.prototype;g.package=r(7399);g.configDefs={help:Boolean,arch:String,debug:Boolean,directory:String,proxy:String,loglevel:String};g.shorthands={release:"--no-debug",C:"--directory",debug:"--debug",j:"--jobs",silent:"--loglevel=silent",silly:"--loglevel=silly",verbose:"--loglevel=verbose"};g.aliases=v;g.parseArgv=functionparseOpts(e){this.opts=u(this.configDefs,this.shorthands,e);this.argv=this.opts.argv.remain.slice();constt=this.todo=[];e=this.argv.map((e=>{if(einthis.aliases){e=this.aliases[e]}returne}));e.slice().forEach((r=>{if(rinthis.commands){consta=e.splice(0,e.indexOf(r));e.shift();if(t.length>0){t[t.length-1].args=a}t.push({name:r,args:[]})}}));if(t.length>0){t[t.length-1].args=e.splice(0)}letr=this.package_json_path;if(this.opts.directory){r=o.join(this.opts.directory,r)}this.package_json=JSON.parse(s.readFileSync(r));this.todo=f.expand_commands(this.package_json,this.opts,t);consta="npm_config_";Object.keys(process.env).forEach((e=>{if(e.indexOf(a)!==0)return;constt=process.env[e];if(e===a+"loglevel"){c.level=t}else{e=e.substring(a.length);if(e==="argv"){if(this.opts.argv&&this.opts.argv.remain&&this.opts.argv.remain.length){}else{this.opts[e]=t}}else{this.opts[e]=t}}}));if(this.opts.loglevel){c.level=this.opts.loglevel}c.resume()};g.setBinaryHostProperty=function(e){if(this.binaryHostSet){returnthis.package_json.binary.host}constt=this.package_json;if(!t||!t.binary||t.binary.host){return""}if(!t.binary.staging_host||!t.binary.production_host){return""}letr="production_host";if(e==="publish"){r="staging_host"}consta=process.env.node_pre_gyp_s3_host;if(a==="staging"||a==="production"){r=`${a}_host`}elseif(this.opts["s3_host"]==="staging"||this.opts["s3_host"]==="production"){r=`${this.opts["s3_host"]}_host`}elseif(this.opts["s3_host"]||a){thrownewError(`invalid s3_host ${this.opts["s3_host"]||a}`)}t.binary.host=t.binary[r];this.binaryHostSet=true;returnt.binary.host};g.usage=functionusage(){conste=[""," Usage: node-pre-gyp <command> [options]",""," where <command> is one of:",h.map((e=>" - "+e+" - "+require("./"+e).usage)).join("\n"),"","node-pre-gyp@"+this.version+" "+o.resolve(__dirname,".."),"node@"+process.versions.node].join("\n");returne};Object.defineProperty(g,"version",{get:function(){returnthis.package.version},enumerable:true})},5921:(e,t,r)=>{"use strict";consta=r(5841);consts=r(2821);consto=r(5977);constu=r(7147).existsSync||r(1017).existsSync;constc=r(1017);e.exports=t;t.usage="Finds the require path for the node-pre-gyp installed module";t.validate=function(e,t){s.validate_config(e,t)};t.find=function(e,t){if(!u(e)){thrownewError(e+"does not exist")}constr=newa.Run({package_json_path:e,argv:process.argv});r.setBinaryHostProperty();constf=r.package_json;s.validate_config(f,t);letd;if(o.get_napi_build_versions(f,t)){d=o.get_best_napi_build_version(f,t)}t=t||{};if(!t.module_root)t.module_root=c.dirname(e);constp=s.evaluate(f,t,d);returnp.module}},5977:(e,t,r)=>{"use strict";consta=r(7147);e.exports=t;consts=process.version.substr(1).replace(/-.*$/,"").split(".").map((e=>+e));consto=["build","clean","configure","package","publish","reveal"