@serverless-devs/s 2.0.102-beta.4 → 2.0.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cli/index.js CHANGED
@@ -1,31 +1,31 @@
1
- "use strict";var f=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Ft=f((X,Pt)=>{var _i=require("events").EventEmitter,Je=require("child_process").spawn,U=require("path"),Qe=require("fs"),qe=class{constructor(e,t){this.flags=e,this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=Tt(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.description=t||"",this.defaultValue=void 0}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return Ei(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}},de=class extends Error{constructor(e,t,n){super(n);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},me=class extends _i{constructor(e){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._args=[],this.rawArgs=null,this._scriptPath=null,this._name=e||"",this._optionValues={},this._storeOptionsAsProperties=!0,this._storeOptionsAsPropertiesCalled=!1,this._passCommandToAction=!0,this._actionResults=[],this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._hasImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command"}command(e,t,n){let s=t,i=n;typeof s=="object"&&s!==null&&(i=s,s=null),i=i||{};let a=e.split(/ +/),l=this.createCommand(a.shift());return s&&(l.description(s),l._executableHandler=!0),i.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(i.noHelp||i.hidden),l._hasHelpOption=this._hasHelpOption,l._helpFlags=this._helpFlags,l._helpDescription=this._helpDescription,l._helpShortFlag=this._helpShortFlag,l._helpLongFlag=this._helpLongFlag,l._helpCommandName=this._helpCommandName,l._helpCommandnameAndArgs=this._helpCommandnameAndArgs,l._helpCommandDescription=this._helpCommandDescription,l._exitCallback=this._exitCallback,l._storeOptionsAsProperties=this._storeOptionsAsProperties,l._passCommandToAction=this._passCommandToAction,l._combineFlagAndOptionalValue=this._combineFlagAndOptionalValue,l._executableFile=i.executableFile||null,this.commands.push(l),l._parseExpectedArgs(a),l.parent=this,s?this:l}createCommand(e){return new me(e)}addCommand(e,t){if(!e._name)throw new Error("Command passed to .addCommand() must have a name");function n(s){s.forEach(i=>{if(i._executableHandler&&!i._executableFile)throw new Error(`Must specify executableFile for deeply nested executable: ${i.name()}`);n(i.commands)})}return n(e.commands),t=t||{},t.isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}arguments(e){return this._parseExpectedArgs(e.split(/ +/))}addHelpCommand(e,t){return e===!1?this._hasImplicitHelpCommand=!1:(this._hasImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=t||this._helpCommandDescription),this}_lazyHasImplicitHelpCommand(){return this._hasImplicitHelpCommand===void 0&&(this._hasImplicitHelpCommand=this.commands.length&&!this._actionHandler&&!this._findCommand("help")),this._hasImplicitHelpCommand}_parseExpectedArgs(e){if(!!e.length)return e.forEach(t=>{let n={required:!1,name:"",variadic:!1};switch(t[0]){case"<":n.required=!0,n.name=t.slice(1,-1);break;case"[":n.name=t.slice(1,-1);break}n.name.length>3&&n.name.slice(-3)==="..."&&(n.variadic=!0,n.name=n.name.slice(0,-3)),n.name&&this._args.push(n)}),this._args.forEach((t,n)=>{if(t.variadic&&n<this._args.length-1)throw new Error(`only the last argument can be variadic '${t.name}'`)}),this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=t=>{if(t.code!=="commander.executeSubCommandAsync")throw t},this}_exit(e,t,n){this._exitCallback&&this._exitCallback(new de(e,t,n)),process.exit(e)}action(e){let t=n=>{let s=this._args.length,i=n.slice(0,s);this._passCommandToAction?i[s]=this:i[s]=this.opts(),n.length>s&&i.push(n.slice(s));let a=e.apply(this,i),l=this;for(;l.parent;)l=l.parent;l._actionResults.push(a)};return this._actionHandler=t,this}_checkForOptionNameClash(e){if(!this._storeOptionsAsProperties||this._storeOptionsAsPropertiesCalled||e.name()==="help"||this._getOptionValue(e.attributeName())===void 0)return;let n=!0;if(e.negate){let s=e.long.replace(/^--no-/,"--");n=!this._findOption(s)}else if(e.long){let s=e.long.replace(/^--/,"--no-");n=!this._findOption(s)}if(n)throw new Error(`option '${e.name()}' clashes with existing property '${e.attributeName()}' on Command
1
+ "use strict";var f=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var kt=f((X,Vt)=>{var Ei=require("events").EventEmitter,Je=require("child_process").spawn,U=require("path"),Qe=require("fs"),Ne=class{constructor(e,t){this.flags=e,this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=Gt(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.description=t||"",this.defaultValue=void 0}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return yi(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}},de=class extends Error{constructor(e,t,n){super(n);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},me=class extends Ei{constructor(e){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._args=[],this.rawArgs=null,this._scriptPath=null,this._name=e||"",this._optionValues={},this._storeOptionsAsProperties=!0,this._storeOptionsAsPropertiesCalled=!1,this._passCommandToAction=!0,this._actionResults=[],this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._hasImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command"}command(e,t,n){let s=t,i=n;typeof s=="object"&&s!==null&&(i=s,s=null),i=i||{};let a=e.split(/ +/),l=this.createCommand(a.shift());return s&&(l.description(s),l._executableHandler=!0),i.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(i.noHelp||i.hidden),l._hasHelpOption=this._hasHelpOption,l._helpFlags=this._helpFlags,l._helpDescription=this._helpDescription,l._helpShortFlag=this._helpShortFlag,l._helpLongFlag=this._helpLongFlag,l._helpCommandName=this._helpCommandName,l._helpCommandnameAndArgs=this._helpCommandnameAndArgs,l._helpCommandDescription=this._helpCommandDescription,l._exitCallback=this._exitCallback,l._storeOptionsAsProperties=this._storeOptionsAsProperties,l._passCommandToAction=this._passCommandToAction,l._combineFlagAndOptionalValue=this._combineFlagAndOptionalValue,l._executableFile=i.executableFile||null,this.commands.push(l),l._parseExpectedArgs(a),l.parent=this,s?this:l}createCommand(e){return new me(e)}addCommand(e,t){if(!e._name)throw new Error("Command passed to .addCommand() must have a name");function n(s){s.forEach(i=>{if(i._executableHandler&&!i._executableFile)throw new Error(`Must specify executableFile for deeply nested executable: ${i.name()}`);n(i.commands)})}return n(e.commands),t=t||{},t.isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}arguments(e){return this._parseExpectedArgs(e.split(/ +/))}addHelpCommand(e,t){return e===!1?this._hasImplicitHelpCommand=!1:(this._hasImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=t||this._helpCommandDescription),this}_lazyHasImplicitHelpCommand(){return this._hasImplicitHelpCommand===void 0&&(this._hasImplicitHelpCommand=this.commands.length&&!this._actionHandler&&!this._findCommand("help")),this._hasImplicitHelpCommand}_parseExpectedArgs(e){if(!!e.length)return e.forEach(t=>{let n={required:!1,name:"",variadic:!1};switch(t[0]){case"<":n.required=!0,n.name=t.slice(1,-1);break;case"[":n.name=t.slice(1,-1);break}n.name.length>3&&n.name.slice(-3)==="..."&&(n.variadic=!0,n.name=n.name.slice(0,-3)),n.name&&this._args.push(n)}),this._args.forEach((t,n)=>{if(t.variadic&&n<this._args.length-1)throw new Error(`only the last argument can be variadic '${t.name}'`)}),this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=t=>{if(t.code!=="commander.executeSubCommandAsync")throw t},this}_exit(e,t,n){this._exitCallback&&this._exitCallback(new de(e,t,n)),process.exit(e)}action(e){let t=n=>{let s=this._args.length,i=n.slice(0,s);this._passCommandToAction?i[s]=this:i[s]=this.opts(),n.length>s&&i.push(n.slice(s));let a=e.apply(this,i),l=this;for(;l.parent;)l=l.parent;l._actionResults.push(a)};return this._actionHandler=t,this}_checkForOptionNameClash(e){if(!this._storeOptionsAsProperties||this._storeOptionsAsPropertiesCalled||e.name()==="help"||this._getOptionValue(e.attributeName())===void 0)return;let n=!0;if(e.negate){let s=e.long.replace(/^--no-/,"--");n=!this._findOption(s)}else if(e.long){let s=e.long.replace(/^--/,"--no-");n=!this._findOption(s)}if(n)throw new Error(`option '${e.name()}' clashes with existing property '${e.attributeName()}' on Command
2
2
  - call storeOptionsAsProperties(false) to store option values safely,
3
3
  - or call storeOptionsAsProperties(true) to suppress this check,
4
4
  - or change option name
5
5
 
6
- Read more on https://git.io/JJc0W`)}_optionEx(e,t,n,s,i){let a=new qe(t,n),l=a.name(),c=a.attributeName();if(a.mandatory=!!e.mandatory,this._checkForOptionNameClash(a),typeof s!="function")if(s instanceof RegExp){let o=s;s=(u,h)=>{let p=o.exec(u);return p?p[0]:h}}else i=s,s=null;if(a.negate||a.optional||a.required||typeof i=="boolean"){if(a.negate){let o=a.long.replace(/^--no-/,"--");i=this._findOption(o)?this._getOptionValue(c):!0}i!==void 0&&(this._setOptionValue(c,i),a.defaultValue=i)}return this.options.push(a),this.on("option:"+l,o=>{let u=this._getOptionValue(c);o!==null&&s?o=s(o,u===void 0?i:u):o!==null&&a.variadic&&(u===i||!Array.isArray(u)?o=[o]:o=u.concat(o)),typeof u=="boolean"||typeof u>"u"?o==null?this._setOptionValue(c,a.negate?!1:i||!0):this._setOptionValue(c,o):o!==null&&this._setOptionValue(c,a.negate?!1:o)}),this}option(e,t,n,s){return this._optionEx({},e,t,n,s)}requiredOption(e,t,n,s){return this._optionEx({mandatory:!0},e,t,n,s)}combineFlagAndOptionalValue(e){return this._combineFlagAndOptionalValue=e===void 0||e,this}allowUnknownOption(e){return this._allowUnknownOption=e===void 0||e,this}storeOptionsAsProperties(e){if(this._storeOptionsAsPropertiesCalled=!0,this._storeOptionsAsProperties=e===void 0||e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}passCommandToAction(e){return this._passCommandToAction=e===void 0||e,this}_setOptionValue(e,t){this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t}_getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}parse(e,t){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");t=t||{},e===void 0&&(e=process.argv,process.versions&&process.versions.electron&&(t.from="electron")),this.rawArgs=e.slice();let n;switch(t.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":process.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}return!this._scriptPath&&process.mainModule&&(this._scriptPath=process.mainModule.filename),this._name=this._name||this._scriptPath&&U.basename(this._scriptPath,U.extname(this._scriptPath)),this._parseCommand([],n),this}parseAsync(e,t){return this.parse(e,t),Promise.all(this._actionResults).then(()=>this)}_executeSubCommand(e,t){t=t.slice();let n=!1,s=[".js",".ts",".tsx",".mjs"];this._checkForMissingMandatoryOptions();let i=this._scriptPath;!i&&process.mainModule&&(i=process.mainModule.filename);let a;try{let p=Qe.realpathSync(i);a=U.dirname(p)}catch{a="."}let l=U.basename(i,U.extname(i))+"-"+e._name;e._executableFile&&(l=e._executableFile);let c=U.join(a,l);Qe.existsSync(c)?l=c:s.forEach(p=>{Qe.existsSync(`${c}${p}`)&&(l=`${c}${p}`)}),n=s.includes(U.extname(l));let o;process.platform!=="win32"?n?(t.unshift(l),t=Dt(process.execArgv).concat(t),o=Je(process.argv[0],t,{stdio:"inherit"})):o=Je(l,t,{stdio:"inherit"}):(t.unshift(l),t=Dt(process.execArgv).concat(t),o=Je(process.execPath,t,{stdio:"inherit"})),["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(p=>{process.on(p,()=>{o.killed===!1&&o.exitCode===null&&o.kill(p)})});let h=this._exitCallback;h?o.on("close",()=>{h(new de(process.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):o.on("close",process.exit.bind(process)),o.on("error",p=>{if(p.code==="ENOENT"){let g=`'${l}' does not exist
6
+ Read more on https://git.io/JJc0W`)}_optionEx(e,t,n,s,i){let a=new Ne(t,n),l=a.name(),c=a.attributeName();if(a.mandatory=!!e.mandatory,this._checkForOptionNameClash(a),typeof s!="function")if(s instanceof RegExp){let o=s;s=(u,h)=>{let p=o.exec(u);return p?p[0]:h}}else i=s,s=null;if(a.negate||a.optional||a.required||typeof i=="boolean"){if(a.negate){let o=a.long.replace(/^--no-/,"--");i=this._findOption(o)?this._getOptionValue(c):!0}i!==void 0&&(this._setOptionValue(c,i),a.defaultValue=i)}return this.options.push(a),this.on("option:"+l,o=>{let u=this._getOptionValue(c);o!==null&&s?o=s(o,u===void 0?i:u):o!==null&&a.variadic&&(u===i||!Array.isArray(u)?o=[o]:o=u.concat(o)),typeof u=="boolean"||typeof u>"u"?o==null?this._setOptionValue(c,a.negate?!1:i||!0):this._setOptionValue(c,o):o!==null&&this._setOptionValue(c,a.negate?!1:o)}),this}option(e,t,n,s){return this._optionEx({},e,t,n,s)}requiredOption(e,t,n,s){return this._optionEx({mandatory:!0},e,t,n,s)}combineFlagAndOptionalValue(e){return this._combineFlagAndOptionalValue=e===void 0||e,this}allowUnknownOption(e){return this._allowUnknownOption=e===void 0||e,this}storeOptionsAsProperties(e){if(this._storeOptionsAsPropertiesCalled=!0,this._storeOptionsAsProperties=e===void 0||e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}passCommandToAction(e){return this._passCommandToAction=e===void 0||e,this}_setOptionValue(e,t){this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t}_getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}parse(e,t){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");t=t||{},e===void 0&&(e=process.argv,process.versions&&process.versions.electron&&(t.from="electron")),this.rawArgs=e.slice();let n;switch(t.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":process.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}return!this._scriptPath&&process.mainModule&&(this._scriptPath=process.mainModule.filename),this._name=this._name||this._scriptPath&&U.basename(this._scriptPath,U.extname(this._scriptPath)),this._parseCommand([],n),this}parseAsync(e,t){return this.parse(e,t),Promise.all(this._actionResults).then(()=>this)}_executeSubCommand(e,t){t=t.slice();let n=!1,s=[".js",".ts",".tsx",".mjs"];this._checkForMissingMandatoryOptions();let i=this._scriptPath;!i&&process.mainModule&&(i=process.mainModule.filename);let a;try{let p=Qe.realpathSync(i);a=U.dirname(p)}catch{a="."}let l=U.basename(i,U.extname(i))+"-"+e._name;e._executableFile&&(l=e._executableFile);let c=U.join(a,l);Qe.existsSync(c)?l=c:s.forEach(p=>{Qe.existsSync(`${c}${p}`)&&(l=`${c}${p}`)}),n=s.includes(U.extname(l));let o;process.platform!=="win32"?n?(t.unshift(l),t=Ht(process.execArgv).concat(t),o=Je(process.argv[0],t,{stdio:"inherit"})):o=Je(l,t,{stdio:"inherit"}):(t.unshift(l),t=Ht(process.execArgv).concat(t),o=Je(process.execPath,t,{stdio:"inherit"})),["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(p=>{process.on(p,()=>{o.killed===!1&&o.exitCode===null&&o.kill(p)})});let h=this._exitCallback;h?o.on("close",()=>{h(new de(process.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):o.on("close",process.exit.bind(process)),o.on("error",p=>{if(p.code==="ENOENT"){let g=`'${l}' does not exist
7
7
  - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
8
- - if the default executable name is not suitable, use the executableFile option to supply a custom name`;throw new Error(g)}else if(p.code==="EACCES")throw new Error(`'${l}' not executable`);if(!h)process.exit(1);else{let g=new de(1,"commander.executeSubCommandAsync","(error)");g.nestedError=p,h(g)}}),this.runningCommand=o}_dispatchSubcommand(e,t,n){let s=this._findCommand(e);s||this._helpAndError(),s._executableHandler?this._executeSubCommand(s,t.concat(n)):s._parseCommand(t,n)}_parseCommand(e,t){let n=this.parseOptions(t);if(e=e.concat(n.operands),t=n.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))this._dispatchSubcommand(e[0],e.slice(1),t);else if(this._lazyHasImplicitHelpCommand()&&e[0]===this._helpCommandName)e.length===1?this.help():this._dispatchSubcommand(e[1],[],[this._helpLongFlag]);else if(this._defaultCommandName)Nt(this,t),this._dispatchSubcommand(this._defaultCommandName,e,t);else if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this._helpAndError(),Nt(this,n.unknown),this._checkForMissingMandatoryOptions(),n.unknown.length>0&&this.unknownOption(n.unknown[0]),this._actionHandler){let s=this.args.slice();this._args.forEach((i,a)=>{i.required&&s[a]==null?this.missingArgument(i.name):i.variadic&&(s[a]=s.splice(a))}),this._actionHandler(s),this.emit("command:"+this.name(),e,t)}else e.length?this._findCommand("*")?this._dispatchSubcommand("*",e,t):this.listenerCount("command:*")?this.emit("command:*",e,t):this.commands.length&&this.unknownCommand():this.commands.length&&this._helpAndError()}_findCommand(e){if(!!e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){for(let e=this;e;e=e.parent)e.options.forEach(t=>{t.mandatory&&e._getOptionValue(t.attributeName())===void 0&&e.missingMandatoryOptionValue(t)})}parseOptions(e){let t=[],n=[],s=t,i=e.slice();function a(c){return c.length>1&&c[0]==="-"}let l=null;for(;i.length;){let c=i.shift();if(c==="--"){s===n&&s.push(c),s.push(...i);break}if(l&&!a(c)){this.emit(`option:${l.name()}`,c);continue}if(l=null,a(c)){let o=this._findOption(c);if(o){if(o.required){let u=i.shift();u===void 0&&this.optionMissingArgument(o),this.emit(`option:${o.name()}`,u)}else if(o.optional){let u=null;i.length>0&&!a(i[0])&&(u=i.shift()),this.emit(`option:${o.name()}`,u)}else this.emit(`option:${o.name()}`);l=o.variadic?o:null;continue}}if(c.length>2&&c[0]==="-"&&c[1]!=="-"){let o=this._findOption(`-${c[1]}`);if(o){o.required||o.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${o.name()}`,c.slice(2)):(this.emit(`option:${o.name()}`),i.unshift(`-${c.slice(2)}`));continue}}if(/^--[^=]+=/.test(c)){let o=c.indexOf("="),u=this._findOption(c.slice(0,o));if(u&&(u.required||u.optional)){this.emit(`option:${u.name()}`,c.slice(o+1));continue}}c.length>1&&c[0]==="-"&&(s=n),s.push(c)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},t=this.options.length;for(let n=0;n<t;n++){let s=this.options[n].attributeName();e[s]=s===this._versionOptionName?this._version:this[s]}return e}return this._optionValues}missingArgument(e){let t=`error: missing required argument '${e}'`;console.error(t),this._exit(1,"commander.missingArgument",t)}optionMissingArgument(e,t){let n;t?n=`error: option '${e.flags}' argument missing, got '${t}'`:n=`error: option '${e.flags}' argument missing`,console.error(n),this._exit(1,"commander.optionMissingArgument",n)}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;console.error(t),this._exit(1,"commander.missingMandatoryOptionValue",t)}unknownOption(e){if(this._allowUnknownOption)return;let t=`error: unknown option '${e}'`;console.error(t),this._exit(1,"commander.unknownOption",t)}unknownCommand(){let e=[this.name()];for(let s=this.parent;s;s=s.parent)e.unshift(s.name());let t=e.join(" "),n=`error: unknown command '${this.args[0]}'.`+(this._hasHelpOption?` See '${t} ${this._helpLongFlag}'.`:"");console.error(n),this._exit(1,"commander.unknownCommand",n)}version(e,t,n){if(e===void 0)return this._version;this._version=e,t=t||"-V, --version",n=n||"output the version number";let s=new qe(t,n);return this._versionOptionName=s.attributeName(),this.options.push(s),this.on("option:"+s.name(),()=>{process.stdout.write(e+`
9
- `),this._exit(0,"commander.version",e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,this._argsDescription=t,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(t=>this.alias(t)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let t=this._args.map(n=>jt(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?t:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}prepareCommands(){let e=this.commands.filter(t=>!t._hidden).map(t=>{let n=t._args.map(s=>jt(s)).join(" ");return[t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(n?" "+n:""),t._description]});return this._lazyHasImplicitHelpCommand()&&e.push([this._helpCommandnameAndArgs,this._helpCommandDescription]),e}largestCommandLength(){return this.prepareCommands().reduce((t,n)=>Math.max(t,n[0].length),0)}largestOptionLength(){let e=[].slice.call(this.options);return e.push({flags:this._helpFlags}),e.reduce((t,n)=>Math.max(t,n.flags.length),0)}largestArgLength(){return this._args.reduce((e,t)=>Math.max(e,t.name.length),0)}padWidth(){let e=this.largestOptionLength();return this._argsDescription&&this._args.length&&this.largestArgLength()>e&&(e=this.largestArgLength()),this.commands&&this.commands.length&&this.largestCommandLength()>e&&(e=this.largestCommandLength()),e}optionHelp(){let e=this.padWidth(),n=(process.stdout.columns||80)-e-4;function s(c,o){return Ke(c,e)+" "+qt(o,n,e+2)}let i=this.options.map(c=>{let o=c.description+(!c.negate&&c.defaultValue!==void 0?" (default: "+JSON.stringify(c.defaultValue)+")":"");return s(c.flags,o)}),a=this._hasHelpOption&&this._helpShortFlag&&!this._findOption(this._helpShortFlag),l=this._hasHelpOption&&!this._findOption(this._helpLongFlag);if(a||l){let c=this._helpFlags;a?l||(c=this._helpShortFlag):c=this._helpLongFlag,i.push(s(c,this._helpDescription))}return i.join(`
10
- `)}commandHelp(){if(!this.commands.length&&!this._lazyHasImplicitHelpCommand())return"";let e=this.prepareCommands(),t=this.padWidth(),s=(process.stdout.columns||80)-t-4;return["Commands:",e.map(i=>{let a=i[1]?" "+i[1]:"";return(a?Ke(i[0],t):i[0])+qt(a,s,t+2)}).join(`
8
+ - if the default executable name is not suitable, use the executableFile option to supply a custom name`;throw new Error(g)}else if(p.code==="EACCES")throw new Error(`'${l}' not executable`);if(!h)process.exit(1);else{let g=new de(1,"commander.executeSubCommandAsync","(error)");g.nestedError=p,h(g)}}),this.runningCommand=o}_dispatchSubcommand(e,t,n){let s=this._findCommand(e);s||this._helpAndError(),s._executableHandler?this._executeSubCommand(s,t.concat(n)):s._parseCommand(t,n)}_parseCommand(e,t){let n=this.parseOptions(t);if(e=e.concat(n.operands),t=n.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))this._dispatchSubcommand(e[0],e.slice(1),t);else if(this._lazyHasImplicitHelpCommand()&&e[0]===this._helpCommandName)e.length===1?this.help():this._dispatchSubcommand(e[1],[],[this._helpLongFlag]);else if(this._defaultCommandName)Pt(this,t),this._dispatchSubcommand(this._defaultCommandName,e,t);else if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this._helpAndError(),Pt(this,n.unknown),this._checkForMissingMandatoryOptions(),n.unknown.length>0&&this.unknownOption(n.unknown[0]),this._actionHandler){let s=this.args.slice();this._args.forEach((i,a)=>{i.required&&s[a]==null?this.missingArgument(i.name):i.variadic&&(s[a]=s.splice(a))}),this._actionHandler(s),this.emit("command:"+this.name(),e,t)}else e.length?this._findCommand("*")?this._dispatchSubcommand("*",e,t):this.listenerCount("command:*")?this.emit("command:*",e,t):this.commands.length&&this.unknownCommand():this.commands.length&&this._helpAndError()}_findCommand(e){if(!!e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){for(let e=this;e;e=e.parent)e.options.forEach(t=>{t.mandatory&&e._getOptionValue(t.attributeName())===void 0&&e.missingMandatoryOptionValue(t)})}parseOptions(e){let t=[],n=[],s=t,i=e.slice();function a(c){return c.length>1&&c[0]==="-"}let l=null;for(;i.length;){let c=i.shift();if(c==="--"){s===n&&s.push(c),s.push(...i);break}if(l&&!a(c)){this.emit(`option:${l.name()}`,c);continue}if(l=null,a(c)){let o=this._findOption(c);if(o){if(o.required){let u=i.shift();u===void 0&&this.optionMissingArgument(o),this.emit(`option:${o.name()}`,u)}else if(o.optional){let u=null;i.length>0&&!a(i[0])&&(u=i.shift()),this.emit(`option:${o.name()}`,u)}else this.emit(`option:${o.name()}`);l=o.variadic?o:null;continue}}if(c.length>2&&c[0]==="-"&&c[1]!=="-"){let o=this._findOption(`-${c[1]}`);if(o){o.required||o.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${o.name()}`,c.slice(2)):(this.emit(`option:${o.name()}`),i.unshift(`-${c.slice(2)}`));continue}}if(/^--[^=]+=/.test(c)){let o=c.indexOf("="),u=this._findOption(c.slice(0,o));if(u&&(u.required||u.optional)){this.emit(`option:${u.name()}`,c.slice(o+1));continue}}c.length>1&&c[0]==="-"&&(s=n),s.push(c)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},t=this.options.length;for(let n=0;n<t;n++){let s=this.options[n].attributeName();e[s]=s===this._versionOptionName?this._version:this[s]}return e}return this._optionValues}missingArgument(e){let t=`error: missing required argument '${e}'`;console.error(t),this._exit(1,"commander.missingArgument",t)}optionMissingArgument(e,t){let n;t?n=`error: option '${e.flags}' argument missing, got '${t}'`:n=`error: option '${e.flags}' argument missing`,console.error(n),this._exit(1,"commander.optionMissingArgument",n)}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;console.error(t),this._exit(1,"commander.missingMandatoryOptionValue",t)}unknownOption(e){if(this._allowUnknownOption)return;let t=`error: unknown option '${e}'`;console.error(t),this._exit(1,"commander.unknownOption",t)}unknownCommand(){let e=[this.name()];for(let s=this.parent;s;s=s.parent)e.unshift(s.name());let t=e.join(" "),n=`error: unknown command '${this.args[0]}'.`+(this._hasHelpOption?` See '${t} ${this._helpLongFlag}'.`:"");console.error(n),this._exit(1,"commander.unknownCommand",n)}version(e,t,n){if(e===void 0)return this._version;this._version=e,t=t||"-V, --version",n=n||"output the version number";let s=new Ne(t,n);return this._versionOptionName=s.attributeName(),this.options.push(s),this.on("option:"+s.name(),()=>{process.stdout.write(e+`
9
+ `),this._exit(0,"commander.version",e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,this._argsDescription=t,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(t=>this.alias(t)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let t=this._args.map(n=>Ft(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?t:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}prepareCommands(){let e=this.commands.filter(t=>!t._hidden).map(t=>{let n=t._args.map(s=>Ft(s)).join(" ");return[t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(n?" "+n:""),t._description]});return this._lazyHasImplicitHelpCommand()&&e.push([this._helpCommandnameAndArgs,this._helpCommandDescription]),e}largestCommandLength(){return this.prepareCommands().reduce((t,n)=>Math.max(t,n[0].length),0)}largestOptionLength(){let e=[].slice.call(this.options);return e.push({flags:this._helpFlags}),e.reduce((t,n)=>Math.max(t,n.flags.length),0)}largestArgLength(){return this._args.reduce((e,t)=>Math.max(e,t.name.length),0)}padWidth(){let e=this.largestOptionLength();return this._argsDescription&&this._args.length&&this.largestArgLength()>e&&(e=this.largestArgLength()),this.commands&&this.commands.length&&this.largestCommandLength()>e&&(e=this.largestCommandLength()),e}optionHelp(){let e=this.padWidth(),n=(process.stdout.columns||80)-e-4;function s(c,o){return Ke(c,e)+" "+Tt(o,n,e+2)}let i=this.options.map(c=>{let o=c.description+(!c.negate&&c.defaultValue!==void 0?" (default: "+JSON.stringify(c.defaultValue)+")":"");return s(c.flags,o)}),a=this._hasHelpOption&&this._helpShortFlag&&!this._findOption(this._helpShortFlag),l=this._hasHelpOption&&!this._findOption(this._helpLongFlag);if(a||l){let c=this._helpFlags;a?l||(c=this._helpShortFlag):c=this._helpLongFlag,i.push(s(c,this._helpDescription))}return i.join(`
10
+ `)}commandHelp(){if(!this.commands.length&&!this._lazyHasImplicitHelpCommand())return"";let e=this.prepareCommands(),t=this.padWidth(),s=(process.stdout.columns||80)-t-4;return["Commands:",e.map(i=>{let a=i[1]?" "+i[1]:"";return(a?Ke(i[0],t):i[0])+Tt(a,s,t+2)}).join(`
11
11
  `).replace(/^/gm," "),""].join(`
12
- `)}helpInformation(){if(this._name==="s")return"";let e=[];if(this._description){e=[this._description,""];let c=this._argsDescription;if(c&&this._args.length){let o=this.padWidth(),h=(process.stdout.columns||80)-o-5;e.push("Arguments:"),this._args.forEach(p=>{e.push(" "+Ke(p.name,o)+" "+Lt(c[p.name]||"",h,o+4))}),e.push("")}}let t=this._name;this._aliases[0]&&(t=t+"|"+this._aliases[0]);let n="";for(let c=this.parent;c;c=c.parent)n=c.name()+" "+n;let s=["Usage: "+n+t+" "+this.usage(),""],i=[],a=this.commandHelp();a&&(i=[a]);let l=[];return(this._hasHelpOption||this.options.length>0)&&(l=["Options:",""+this.optionHelp().replace(/^/gm," "),""]),s.concat(e).concat(l).concat(i).join(`
13
- `)}outputHelp(e){e||(e=n=>n);let t=e(this.helpInformation());if(typeof t!="string"&&!Buffer.isBuffer(t))throw new Error("outputHelp callback must return a string or a Buffer");process.stdout.write(t),this.emit(this._helpLongFlag)}helpOption(e,t){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=t||this._helpDescription;let n=Tt(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e),this._exit(process.exitCode||0,"commander.help","(outputHelp)")}_helpAndError(){this.outputHelp(),this._exit(1,"commander.help","(outputHelp)")}};X=Pt.exports=new me;X.program=X;X.Command=me;X.Option=qe;X.CommanderError=de;function Ei(r){return r.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function Ke(r,e){let t=Math.max(0,e-r.length);return r+Array(t+1).join(" ")}function Lt(r,e,t){let n=new RegExp(".{1,"+(e-1)+"}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)","g");return(r.match(n)||[]).map((i,a)=>(i.slice(-1)===`
12
+ `)}helpInformation(){if(this._name==="s")return"";let e=[];if(this._description){e=[this._description,""];let c=this._argsDescription;if(c&&this._args.length){let o=this.padWidth(),h=(process.stdout.columns||80)-o-5;e.push("Arguments:"),this._args.forEach(p=>{e.push(" "+Ke(p.name,o)+" "+Mt(c[p.name]||"",h,o+4))}),e.push("")}}let t=this._name;this._aliases[0]&&(t=t+"|"+this._aliases[0]);let n="";for(let c=this.parent;c;c=c.parent)n=c.name()+" "+n;let s=["Usage: "+n+t+" "+this.usage(),""],i=[],a=this.commandHelp();a&&(i=[a]);let l=[];return(this._hasHelpOption||this.options.length>0)&&(l=["Options:",""+this.optionHelp().replace(/^/gm," "),""]),s.concat(e).concat(l).concat(i).join(`
13
+ `)}outputHelp(e){e||(e=n=>n);let t=e(this.helpInformation());if(typeof t!="string"&&!Buffer.isBuffer(t))throw new Error("outputHelp callback must return a string or a Buffer");process.stdout.write(t),this.emit(this._helpLongFlag)}helpOption(e,t){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=t||this._helpDescription;let n=Gt(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e),this._exit(process.exitCode||0,"commander.help","(outputHelp)")}_helpAndError(){this.outputHelp(),this._exit(1,"commander.help","(outputHelp)")}};X=Vt.exports=new me;X.program=X;X.Command=me;X.Option=Ne;X.CommanderError=de;function yi(r){return r.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function Ke(r,e){let t=Math.max(0,e-r.length);return r+Array(t+1).join(" ")}function Mt(r,e,t){let n=new RegExp(".{1,"+(e-1)+"}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)","g");return(r.match(n)||[]).map((i,a)=>(i.slice(-1)===`
14
14
  `&&(i=i.slice(0,i.length-1)),(a>0&&t?Array(t+1).join(" "):"")+i.trimRight())).join(`
15
- `)}function qt(r,e,t){return r.match(/[\n]\s+/)||e<40?r:Lt(r,e,t)}function Nt(r,e){r._hasHelpOption&&e.find(n=>n===r._helpLongFlag||n===r._helpShortFlag)&&(r.outputHelp(),r._exit(0,"commander.helpDisplayed","(outputHelp)"))}function jt(r){let e=r.name+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}function Tt(r){let e,t,n=r.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),t=n.shift(),!e&&/^-[^-]$/.test(t)&&(e=t,t=void 0),{shortFlag:e,longFlag:t}}function Dt(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let t,n="127.0.0.1",s="9229",i;return(i=e.match(/^(--inspect(-brk)?)$/))!==null?t=i[1]:(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=i[1],/^\d+$/.test(i[3])?s=i[3]:n=i[3]):(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=i[1],n=i[3],s=i[4]),t&&s!=="0"?`${t}=${n}:${parseInt(s)+1}`:e})}});var ge=f(($l,Ht)=>{var yi="2.0.0",bi=Number.MAX_SAFE_INTEGER||9007199254740991,wi=16;Ht.exports={SEMVER_SPEC_VERSION:yi,MAX_LENGTH:256,MAX_SAFE_INTEGER:bi,MAX_SAFE_COMPONENT_LENGTH:wi}});var ve=f((Al,Mt)=>{var Oi=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Mt.exports=Oi});var B=f((G,Gt)=>{var{MAX_SAFE_COMPONENT_LENGTH:et}=ge(),Si=ve();G=Gt.exports={};var Ci=G.re=[],d=G.src=[],m=G.t={},Ri=0,_=(r,e,t)=>{let n=Ri++;Si(n,e),m[r]=n,d[n]=e,Ci[n]=new RegExp(e,t?"g":void 0)};_("NUMERICIDENTIFIER","0|[1-9]\\d*");_("NUMERICIDENTIFIERLOOSE","[0-9]+");_("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");_("MAINVERSION",`(${d[m.NUMERICIDENTIFIER]})\\.(${d[m.NUMERICIDENTIFIER]})\\.(${d[m.NUMERICIDENTIFIER]})`);_("MAINVERSIONLOOSE",`(${d[m.NUMERICIDENTIFIERLOOSE]})\\.(${d[m.NUMERICIDENTIFIERLOOSE]})\\.(${d[m.NUMERICIDENTIFIERLOOSE]})`);_("PRERELEASEIDENTIFIER",`(?:${d[m.NUMERICIDENTIFIER]}|${d[m.NONNUMERICIDENTIFIER]})`);_("PRERELEASEIDENTIFIERLOOSE",`(?:${d[m.NUMERICIDENTIFIERLOOSE]}|${d[m.NONNUMERICIDENTIFIER]})`);_("PRERELEASE",`(?:-(${d[m.PRERELEASEIDENTIFIER]}(?:\\.${d[m.PRERELEASEIDENTIFIER]})*))`);_("PRERELEASELOOSE",`(?:-?(${d[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[m.PRERELEASEIDENTIFIERLOOSE]})*))`);_("BUILDIDENTIFIER","[0-9A-Za-z-]+");_("BUILD",`(?:\\+(${d[m.BUILDIDENTIFIER]}(?:\\.${d[m.BUILDIDENTIFIER]})*))`);_("FULLPLAIN",`v?${d[m.MAINVERSION]}${d[m.PRERELEASE]}?${d[m.BUILD]}?`);_("FULL",`^${d[m.FULLPLAIN]}$`);_("LOOSEPLAIN",`[v=\\s]*${d[m.MAINVERSIONLOOSE]}${d[m.PRERELEASELOOSE]}?${d[m.BUILD]}?`);_("LOOSE",`^${d[m.LOOSEPLAIN]}$`);_("GTLT","((?:<|>)?=?)");_("XRANGEIDENTIFIERLOOSE",`${d[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);_("XRANGEIDENTIFIER",`${d[m.NUMERICIDENTIFIER]}|x|X|\\*`);_("XRANGEPLAIN",`[v=\\s]*(${d[m.XRANGEIDENTIFIER]})(?:\\.(${d[m.XRANGEIDENTIFIER]})(?:\\.(${d[m.XRANGEIDENTIFIER]})(?:${d[m.PRERELEASE]})?${d[m.BUILD]}?)?)?`);_("XRANGEPLAINLOOSE",`[v=\\s]*(${d[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[m.XRANGEIDENTIFIERLOOSE]})(?:${d[m.PRERELEASELOOSE]})?${d[m.BUILD]}?)?)?`);_("XRANGE",`^${d[m.GTLT]}\\s*${d[m.XRANGEPLAIN]}$`);_("XRANGELOOSE",`^${d[m.GTLT]}\\s*${d[m.XRANGEPLAINLOOSE]}$`);_("COERCE",`(^|[^\\d])(\\d{1,${et}})(?:\\.(\\d{1,${et}}))?(?:\\.(\\d{1,${et}}))?(?:$|[^\\d])`);_("COERCERTL",d[m.COERCE],!0);_("LONETILDE","(?:~>?)");_("TILDETRIM",`(\\s*)${d[m.LONETILDE]}\\s+`,!0);G.tildeTrimReplace="$1~";_("TILDE",`^${d[m.LONETILDE]}${d[m.XRANGEPLAIN]}$`);_("TILDELOOSE",`^${d[m.LONETILDE]}${d[m.XRANGEPLAINLOOSE]}$`);_("LONECARET","(?:\\^)");_("CARETTRIM",`(\\s*)${d[m.LONECARET]}\\s+`,!0);G.caretTrimReplace="$1^";_("CARET",`^${d[m.LONECARET]}${d[m.XRANGEPLAIN]}$`);_("CARETLOOSE",`^${d[m.LONECARET]}${d[m.XRANGEPLAINLOOSE]}$`);_("COMPARATORLOOSE",`^${d[m.GTLT]}\\s*(${d[m.LOOSEPLAIN]})$|^$`);_("COMPARATOR",`^${d[m.GTLT]}\\s*(${d[m.FULLPLAIN]})$|^$`);_("COMPARATORTRIM",`(\\s*)${d[m.GTLT]}\\s*(${d[m.LOOSEPLAIN]}|${d[m.XRANGEPLAIN]})`,!0);G.comparatorTrimReplace="$1$2$3";_("HYPHENRANGE",`^\\s*(${d[m.XRANGEPLAIN]})\\s+-\\s+(${d[m.XRANGEPLAIN]})\\s*$`);_("HYPHENRANGELOOSE",`^\\s*(${d[m.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[m.XRANGEPLAINLOOSE]})\\s*$`);_("STAR","(<|>)?=?\\s*\\*");_("GTE0","^\\s*>=\\s*0.0.0\\s*$");_("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var _e=f((Il,Vt)=>{var $i=["includePrerelease","loose","rtl"],Ai=r=>r?typeof r!="object"?{loose:!0}:$i.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};Vt.exports=Ai});var Ne=f((xl,Xt)=>{var kt=/^[0-9]+$/,Ut=(r,e)=>{let t=kt.test(r),n=kt.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},Ii=(r,e)=>Ut(e,r);Xt.exports={compareIdentifiers:Ut,rcompareIdentifiers:Ii}});var S=f((ql,Yt)=>{var je=ve(),{MAX_LENGTH:Bt,MAX_SAFE_INTEGER:De}=ge(),{re:Wt,t:zt}=B(),xi=_e(),{compareIdentifiers:Ee}=Ne(),q=class{constructor(e,t){if(t=xi(t),e instanceof q){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>Bt)throw new TypeError(`version is longer than ${Bt} characters`);je("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Wt[zt.LOOSE]:Wt[zt.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>De||this.major<0)throw new TypeError("Invalid major version");if(this.minor>De||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>De||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<De)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(je("SemVer.compare",this.version,this.options,e),!(e instanceof q)){if(typeof e=="string"&&e===this.version)return 0;e=new q(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof q||(e=new q(e,this.options)),Ee(this.major,e.major)||Ee(this.minor,e.minor)||Ee(this.patch,e.patch)}comparePre(e){if(e instanceof q||(e=new q(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(je("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Ee(n,s)}while(++t)}compareBuild(e){e instanceof q||(e=new q(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(je("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Ee(n,s)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};Yt.exports=q});var W=f((Nl,Kt)=>{var{MAX_LENGTH:qi}=ge(),{re:Zt,t:Jt}=B(),Qt=S(),Ni=_e(),ji=(r,e)=>{if(e=Ni(e),r instanceof Qt)return r;if(typeof r!="string"||r.length>qi||!(e.loose?Zt[Jt.LOOSE]:Zt[Jt.FULL]).test(r))return null;try{return new Qt(r,e)}catch{return null}};Kt.exports=ji});var tr=f((jl,er)=>{var Di=W(),Li=(r,e)=>{let t=Di(r,e);return t?t.version:null};er.exports=Li});var nr=f((Dl,rr)=>{var Ti=W(),Pi=(r,e)=>{let t=Ti(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};rr.exports=Pi});var sr=f((Ll,ir)=>{var Fi=S(),Hi=(r,e,t,n)=>{typeof t=="string"&&(n=t,t=void 0);try{return new Fi(r,t).inc(e,n).version}catch{return null}};ir.exports=Hi});var N=f((Tl,ar)=>{var or=S(),Mi=(r,e,t)=>new or(r,t).compare(new or(e,t));ar.exports=Mi});var Le=f((Pl,lr)=>{var Gi=N(),Vi=(r,e,t)=>Gi(r,e,t)===0;lr.exports=Vi});var hr=f((Fl,ur)=>{var cr=W(),ki=Le(),Ui=(r,e)=>{if(ki(r,e))return null;{let t=cr(r),n=cr(e),s=t.prerelease.length||n.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(let l in t)if((l==="major"||l==="minor"||l==="patch")&&t[l]!==n[l])return i+l;return a}};ur.exports=Ui});var pr=f((Hl,fr)=>{var Xi=S(),Bi=(r,e)=>new Xi(r,e).major;fr.exports=Bi});var mr=f((Ml,dr)=>{var Wi=S(),zi=(r,e)=>new Wi(r,e).minor;dr.exports=zi});var vr=f((Gl,gr)=>{var Yi=S(),Zi=(r,e)=>new Yi(r,e).patch;gr.exports=Zi});var Er=f((Vl,_r)=>{var Ji=W(),Qi=(r,e)=>{let t=Ji(r,e);return t&&t.prerelease.length?t.prerelease:null};_r.exports=Qi});var br=f((kl,yr)=>{var Ki=N(),es=(r,e,t)=>Ki(e,r,t);yr.exports=es});var Or=f((Ul,wr)=>{var ts=N(),rs=(r,e)=>ts(r,e,!0);wr.exports=rs});var Te=f((Xl,Cr)=>{var Sr=S(),ns=(r,e,t)=>{let n=new Sr(r,t),s=new Sr(e,t);return n.compare(s)||n.compareBuild(s)};Cr.exports=ns});var $r=f((Bl,Rr)=>{var is=Te(),ss=(r,e)=>r.sort((t,n)=>is(t,n,e));Rr.exports=ss});var Ir=f((Wl,Ar)=>{var os=Te(),as=(r,e)=>r.sort((t,n)=>os(n,t,e));Ar.exports=as});var ye=f((zl,xr)=>{var ls=N(),cs=(r,e,t)=>ls(r,e,t)>0;xr.exports=cs});var Pe=f((Yl,qr)=>{var us=N(),hs=(r,e,t)=>us(r,e,t)<0;qr.exports=hs});var tt=f((Zl,Nr)=>{var fs=N(),ps=(r,e,t)=>fs(r,e,t)!==0;Nr.exports=ps});var Fe=f((Jl,jr)=>{var ds=N(),ms=(r,e,t)=>ds(r,e,t)>=0;jr.exports=ms});var He=f((Ql,Dr)=>{var gs=N(),vs=(r,e,t)=>gs(r,e,t)<=0;Dr.exports=vs});var rt=f((Kl,Lr)=>{var _s=Le(),Es=tt(),ys=ye(),bs=Fe(),ws=Pe(),Os=He(),Ss=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return _s(r,t,n);case"!=":return Es(r,t,n);case">":return ys(r,t,n);case">=":return bs(r,t,n);case"<":return ws(r,t,n);case"<=":return Os(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Lr.exports=Ss});var Pr=f((ec,Tr)=>{var Cs=S(),Rs=W(),{re:Me,t:Ge}=B(),$s=(r,e)=>{if(r instanceof Cs)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(Me[Ge.COERCE]);else{let n;for(;(n=Me[Ge.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),Me[Ge.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Me[Ge.COERCERTL].lastIndex=-1}return t===null?null:Rs(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};Tr.exports=$s});var Hr=f((tc,Fr)=>{"use strict";Fr.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Gr=f((rc,Mr)=>{"use strict";Mr.exports=E;E.Node=z;E.create=E;function E(r){var e=this;if(e instanceof E||(e=new E),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var t=0,n=arguments.length;t<n;t++)e.push(arguments[t]);return e}E.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,t=r.prev;return e&&(e.prev=t),t&&(t.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=t),r.list.length--,r.next=null,r.prev=null,r.list=null,e};E.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};E.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}};E.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)Is(this,arguments[r]);return this.length};E.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)xs(this,arguments[r]);return this.length};E.prototype.pop=function(){if(!!this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};E.prototype.shift=function(){if(!!this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};E.prototype.forEach=function(r,e){e=e||this;for(var t=this.head,n=0;t!==null;n++)r.call(e,t.value,n,this),t=t.next};E.prototype.forEachReverse=function(r,e){e=e||this;for(var t=this.tail,n=this.length-1;t!==null;n--)r.call(e,t.value,n,this),t=t.prev};E.prototype.get=function(r){for(var e=0,t=this.head;t!==null&&e<r;e++)t=t.next;if(e===r&&t!==null)return t.value};E.prototype.getReverse=function(r){for(var e=0,t=this.tail;t!==null&&e<r;e++)t=t.prev;if(e===r&&t!==null)return t.value};E.prototype.map=function(r,e){e=e||this;for(var t=new E,n=this.head;n!==null;)t.push(r.call(e,n.value,this)),n=n.next;return t};E.prototype.mapReverse=function(r,e){e=e||this;for(var t=new E,n=this.tail;n!==null;)t.push(r.call(e,n.value,this)),n=n.prev;return t};E.prototype.reduce=function(r,e){var t,n=this.head;if(arguments.length>1)t=e;else if(this.head)n=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;n!==null;s++)t=r(t,n.value,s),n=n.next;return t};E.prototype.reduceReverse=function(r,e){var t,n=this.tail;if(arguments.length>1)t=e;else if(this.tail)n=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;n!==null;s--)t=r(t,n.value,s),n=n.prev;return t};E.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};E.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};E.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new E;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=0,s=this.head;s!==null&&n<r;n++)s=s.next;for(;s!==null&&n<e;n++,s=s.next)t.push(s.value);return t};E.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new E;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=this.length,s=this.tail;s!==null&&n>e;n--)s=s.prev;for(;s!==null&&n>r;n--,s=s.prev)t.push(s.value);return t};E.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var n=0,s=this.head;s!==null&&n<r;n++)s=s.next;for(var i=[],n=0;s&&n<e;n++)i.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var n=0;n<t.length;n++)s=As(this,s,t[n]);return i};E.prototype.reverse=function(){for(var r=this.head,e=this.tail,t=r;t!==null;t=t.prev){var n=t.prev;t.prev=t.next,t.next=n}return this.head=e,this.tail=r,this};function As(r,e,t){var n=e===r.head?new z(t,null,e,r):new z(t,e,e.next,r);return n.next===null&&(r.tail=n),n.prev===null&&(r.head=n),r.length++,n}function Is(r,e){r.tail=new z(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function xs(r,e){r.head=new z(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function z(r,e,t,n){if(!(this instanceof z))return new z(r,e,t,n);this.list=n,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{Hr()(E)}catch{}});var zr=f((nc,Wr)=>{"use strict";var qs=Gr(),Y=Symbol("max"),H=Symbol("length"),K=Symbol("lengthCalculator"),we=Symbol("allowStale"),Z=Symbol("maxAge"),F=Symbol("dispose"),Vr=Symbol("noDisposeOnSet"),w=Symbol("lruList"),D=Symbol("cache"),Ur=Symbol("updateAgeOnGet"),nt=()=>1,Xr=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[Y]=e.max||1/0,n=e.length||nt;if(this[K]=typeof n!="function"?nt:n,this[we]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Z]=e.maxAge||0,this[F]=e.dispose,this[Vr]=e.noDisposeOnSet||!1,this[Ur]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Y]=e||1/0,be(this)}get max(){return this[Y]}set allowStale(e){this[we]=!!e}get allowStale(){return this[we]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Z]=e,be(this)}get maxAge(){return this[Z]}set lengthCalculator(e){typeof e!="function"&&(e=nt),e!==this[K]&&(this[K]=e,this[H]=0,this[w].forEach(t=>{t.length=this[K](t.value,t.key),this[H]+=t.length})),be(this)}get lengthCalculator(){return this[K]}get length(){return this[H]}get itemCount(){return this[w].length}rforEach(e,t){t=t||this;for(let n=this[w].tail;n!==null;){let s=n.prev;kr(this,e,n,t),n=s}}forEach(e,t){t=t||this;for(let n=this[w].head;n!==null;){let s=n.next;kr(this,e,n,t),n=s}}keys(){return this[w].toArray().map(e=>e.key)}values(){return this[w].toArray().map(e=>e.value)}reset(){this[F]&&this[w]&&this[w].length&&this[w].forEach(e=>this[F](e.key,e.value)),this[D]=new Map,this[w]=new qs,this[H]=0}dump(){return this[w].map(e=>Ve(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[w]}set(e,t,n){if(n=n||this[Z],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let s=n?Date.now():0,i=this[K](t,e);if(this[D].has(e)){if(i>this[Y])return ee(this,this[D].get(e)),!1;let c=this[D].get(e).value;return this[F]&&(this[Vr]||this[F](e,c.value)),c.now=s,c.maxAge=n,c.value=t,this[H]+=i-c.length,c.length=i,this.get(e),be(this),!0}let a=new Br(e,t,i,s,n);return a.length>this[Y]?(this[F]&&this[F](e,t),!1):(this[H]+=a.length,this[w].unshift(a),this[D].set(e,this[w].head),be(this),!0)}has(e){if(!this[D].has(e))return!1;let t=this[D].get(e).value;return!Ve(this,t)}get(e){return it(this,e,!0)}peek(e){return it(this,e,!1)}pop(){let e=this[w].tail;return e?(ee(this,e),e.value):null}del(e){ee(this,this[D].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let s=e[n],i=s.e||0;if(i===0)this.set(s.k,s.v);else{let a=i-t;a>0&&this.set(s.k,s.v,a)}}}prune(){this[D].forEach((e,t)=>it(this,t,!1))}},it=(r,e,t)=>{let n=r[D].get(e);if(n){let s=n.value;if(Ve(r,s)){if(ee(r,n),!r[we])return}else t&&(r[Ur]&&(n.value.now=Date.now()),r[w].unshiftNode(n));return s.value}},Ve=(r,e)=>{if(!e||!e.maxAge&&!r[Z])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[Z]&&t>r[Z]},be=r=>{if(r[H]>r[Y])for(let e=r[w].tail;r[H]>r[Y]&&e!==null;){let t=e.prev;ee(r,e),e=t}},ee=(r,e)=>{if(e){let t=e.value;r[F]&&r[F](t.key,t.value),r[H]-=t.length,r[D].delete(t.key),r[w].removeNode(e)}},Br=class{constructor(e,t,n,s,i){this.key=e,this.value=t,this.length=n,this.now=s,this.maxAge=i||0}},kr=(r,e,t,n)=>{let s=t.value;Ve(r,s)&&(ee(r,t),r[we]||(s=void 0)),s&&e.call(n,s.value,s.key,r)};Wr.exports=Xr});var j=f((ic,Qr)=>{var te=class{constructor(e,t){if(t=js(t),e instanceof te)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new te(e.raw,t);if(e instanceof st)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!Zr(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Fs(s[0])){this.set=[s];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let n=`parseRange:${Object.keys(this.options).join(",")}:${e}`,s=Yr.get(n);if(s)return s;let i=this.options.loose,a=i?C[O.HYPHENRANGELOOSE]:C[O.HYPHENRANGE];e=e.replace(a,zs(this.options.includePrerelease)),b("hyphen replace",e),e=e.replace(C[O.COMPARATORTRIM],Ls),b("comparator trim",e,C[O.COMPARATORTRIM]),e=e.replace(C[O.TILDETRIM],Ts),e=e.replace(C[O.CARETTRIM],Ps),e=e.split(/\s+/).join(" ");let l=i?C[O.COMPARATORLOOSE]:C[O.COMPARATOR],c=e.split(" ").map(p=>Hs(p,this.options)).join(" ").split(/\s+/).map(p=>Ws(p,this.options)).filter(this.options.loose?p=>!!p.match(l):()=>!0).map(p=>new st(p,this.options)),o=c.length,u=new Map;for(let p of c){if(Zr(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let h=[...u.values()];return Yr.set(n,h),h}intersects(e,t){if(!(e instanceof te))throw new TypeError("a Range is required");return this.set.some(n=>Jr(n,t)&&e.set.some(s=>Jr(s,t)&&n.every(i=>s.every(a=>i.intersects(a,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Ds(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Ys(this.set[t],e,this.options))return!0;return!1}};Qr.exports=te;var Ns=zr(),Yr=new Ns({max:1e3}),js=_e(),st=Oe(),b=ve(),Ds=S(),{re:C,t:O,comparatorTrimReplace:Ls,tildeTrimReplace:Ts,caretTrimReplace:Ps}=B(),Zr=r=>r.value==="<0.0.0-0",Fs=r=>r.value==="",Jr=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},Hs=(r,e)=>(b("comp",r,e),r=Vs(r,e),b("caret",r),r=Ms(r,e),b("tildes",r),r=Us(r,e),b("xrange",r),r=Bs(r,e),b("stars",r),r),A=r=>!r||r.toLowerCase()==="x"||r==="*",Ms=(r,e)=>r.trim().split(/\s+/).map(t=>Gs(t,e)).join(" "),Gs=(r,e)=>{let t=e.loose?C[O.TILDELOOSE]:C[O.TILDE];return r.replace(t,(n,s,i,a,l)=>{b("tilde",r,n,s,i,a,l);let c;return A(s)?c="":A(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:A(a)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:l?(b("replaceTilde pr",l),c=`>=${s}.${i}.${a}-${l} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${a} <${s}.${+i+1}.0-0`,b("tilde return",c),c})},Vs=(r,e)=>r.trim().split(/\s+/).map(t=>ks(t,e)).join(" "),ks=(r,e)=>{b("caret",r,e);let t=e.loose?C[O.CARETLOOSE]:C[O.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,a,l,c)=>{b("caret",r,s,i,a,l,c);let o;return A(i)?o="":A(a)?o=`>=${i}.0.0${n} <${+i+1}.0.0-0`:A(l)?i==="0"?o=`>=${i}.${a}.0${n} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.0${n} <${+i+1}.0.0-0`:c?(b("replaceCaret pr",c),i==="0"?a==="0"?o=`>=${i}.${a}.${l}-${c} <${i}.${a}.${+l+1}-0`:o=`>=${i}.${a}.${l}-${c} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.${l}-${c} <${+i+1}.0.0-0`):(b("no pr"),i==="0"?a==="0"?o=`>=${i}.${a}.${l}${n} <${i}.${a}.${+l+1}-0`:o=`>=${i}.${a}.${l}${n} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.${l} <${+i+1}.0.0-0`),b("caret return",o),o})},Us=(r,e)=>(b("replaceXRanges",r,e),r.split(/\s+/).map(t=>Xs(t,e)).join(" ")),Xs=(r,e)=>{r=r.trim();let t=e.loose?C[O.XRANGELOOSE]:C[O.XRANGE];return r.replace(t,(n,s,i,a,l,c)=>{b("xRange",r,n,s,i,a,l,c);let o=A(i),u=o||A(a),h=u||A(l),p=h;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",o?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&p?(u&&(a=0),l=0,s===">"?(s=">=",u?(i=+i+1,a=0,l=0):(a=+a+1,l=0)):s==="<="&&(s="<",u?i=+i+1:a=+a+1),s==="<"&&(c="-0"),n=`${s+i}.${a}.${l}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:h&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),b("xRange return",n),n})},Bs=(r,e)=>(b("replaceStars",r,e),r.trim().replace(C[O.STAR],"")),Ws=(r,e)=>(b("replaceGTE0",r,e),r.trim().replace(C[e.includePrerelease?O.GTE0PRE:O.GTE0],"")),zs=r=>(e,t,n,s,i,a,l,c,o,u,h,p,g)=>(A(n)?t="":A(s)?t=`>=${n}.0.0${r?"-0":""}`:A(i)?t=`>=${n}.${s}.0${r?"-0":""}`:a?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,A(o)?c="":A(u)?c=`<${+o+1}.0.0-0`:A(h)?c=`<${o}.${+u+1}.0-0`:p?c=`<=${o}.${u}.${h}-${p}`:r?c=`<${o}.${u}.${+h+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),Ys=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(b(r[n].semver),r[n].semver!==st.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Oe=f((sc,nn)=>{var Se=Symbol("SemVer ANY"),Ce=class{static get ANY(){return Se}constructor(e,t){if(t=Zs(t),e instanceof Ce){if(e.loose===!!t.loose)return e;e=e.value}at("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Se?this.value="":this.value=this.operator+this.semver.version,at("comp",this)}parse(e){let t=this.options.loose?Kr[en.COMPARATORLOOSE]:Kr[en.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new tn(n[2],this.options.loose):this.semver=Se}toString(){return this.value}test(e){if(at("Comparator.test",e,this.options.loose),this.semver===Se||e===Se)return!0;if(typeof e=="string")try{e=new tn(e,this.options)}catch{return!1}return ot(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Ce))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new rn(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new rn(this.value,t).test(e.semver);let n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),i=this.semver.version===e.semver.version,a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),l=ot(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=ot(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||s||i&&a||l||c}};nn.exports=Ce;var Zs=_e(),{re:Kr,t:en}=B(),ot=rt(),at=ve(),tn=S(),rn=j()});var Re=f((oc,sn)=>{var Js=j(),Qs=(r,e,t)=>{try{e=new Js(e,t)}catch{return!1}return e.test(r)};sn.exports=Qs});var an=f((ac,on)=>{var Ks=j(),eo=(r,e)=>new Ks(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));on.exports=eo});var cn=f((lc,ln)=>{var to=S(),ro=j(),no=(r,e,t)=>{let n=null,s=null,i=null;try{i=new ro(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new to(n,t))}),n};ln.exports=no});var hn=f((cc,un)=>{var io=S(),so=j(),oo=(r,e,t)=>{let n=null,s=null,i=null;try{i=new so(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new io(n,t))}),n};un.exports=oo});var dn=f((uc,pn)=>{var lt=S(),ao=j(),fn=ye(),lo=(r,e)=>{r=new ao(r,e);let t=new lt("0.0.0");if(r.test(t)||(t=new lt("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let s=r.set[n],i=null;s.forEach(a=>{let l=new lt(a.semver.version);switch(a.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!i||fn(l,i))&&(i=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!t||fn(t,i))&&(t=i)}return t&&r.test(t)?t:null};pn.exports=lo});var gn=f((hc,mn)=>{var co=j(),uo=(r,e)=>{try{return new co(r,e).range||"*"}catch{return null}};mn.exports=uo});var ke=f((fc,yn)=>{var ho=S(),En=Oe(),{ANY:fo}=En,po=j(),mo=Re(),vn=ye(),_n=Pe(),go=He(),vo=Fe(),_o=(r,e,t,n)=>{r=new ho(r,n),e=new po(e,n);let s,i,a,l,c;switch(t){case">":s=vn,i=go,a=_n,l=">",c=">=";break;case"<":s=_n,i=vo,a=vn,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(mo(r,e,n))return!1;for(let o=0;o<e.set.length;++o){let u=e.set[o],h=null,p=null;if(u.forEach(g=>{g.semver===fo&&(g=new En(">=0.0.0")),h=h||g,p=p||g,s(g.semver,h.semver,n)?h=g:a(g.semver,p.semver,n)&&(p=g)}),h.operator===l||h.operator===c||(!p.operator||p.operator===l)&&i(r,p.semver))return!1;if(p.operator===c&&a(r,p.semver))return!1}return!0};yn.exports=_o});var wn=f((pc,bn)=>{var Eo=ke(),yo=(r,e,t)=>Eo(r,e,">",t);bn.exports=yo});var Sn=f((dc,On)=>{var bo=ke(),wo=(r,e,t)=>bo(r,e,"<",t);On.exports=wo});var $n=f((mc,Rn)=>{var Cn=j(),Oo=(r,e,t)=>(r=new Cn(r,t),e=new Cn(e,t),r.intersects(e));Rn.exports=Oo});var In=f((gc,An)=>{var So=Re(),Co=N();An.exports=(r,e,t)=>{let n=[],s=null,i=null,a=r.sort((u,h)=>Co(u,h,t));for(let u of a)So(u,e,t)?(i=u,s||(s=u)):(i&&n.push([s,i]),i=null,s=null);s&&n.push([s,null]);let l=[];for(let[u,h]of n)u===h?l.push(u):!h&&u===a[0]?l.push("*"):h?u===a[0]?l.push(`<=${h}`):l.push(`${u} - ${h}`):l.push(`>=${u}`);let c=l.join(" || "),o=typeof e.raw=="string"?e.raw:String(e);return c.length<o.length?c:e}});var Dn=f((vc,jn)=>{var xn=j(),Ue=Oe(),{ANY:ct}=Ue,$e=Re(),ut=N(),Ro=(r,e,t={})=>{if(r===e)return!0;r=new xn(r,t),e=new xn(e,t);let n=!1;e:for(let s of r.set){for(let i of e.set){let a=$o(s,i,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},$o=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===ct){if(e.length===1&&e[0].semver===ct)return!0;t.includePrerelease?r=[new Ue(">=0.0.0-0")]:r=[new Ue(">=0.0.0")]}if(e.length===1&&e[0].semver===ct){if(t.includePrerelease)return!0;e=[new Ue(">=0.0.0")]}let n=new Set,s,i;for(let g of r)g.operator===">"||g.operator===">="?s=qn(s,g,t):g.operator==="<"||g.operator==="<="?i=Nn(i,g,t):n.add(g.semver);if(n.size>1)return null;let a;if(s&&i){if(a=ut(s.semver,i.semver,t),a>0)return null;if(a===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let g of n){if(s&&!$e(g,String(s),t)||i&&!$e(g,String(i),t))return null;for(let fe of e)if(!$e(g,String(fe),t))return!1;return!0}let l,c,o,u,h=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,p=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;h&&h.prerelease.length===1&&i.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let g of e){if(u=u||g.operator===">"||g.operator===">=",o=o||g.operator==="<"||g.operator==="<=",s){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator===">"||g.operator===">="){if(l=qn(s,g,t),l===g&&l!==s)return!1}else if(s.operator===">="&&!$e(s.semver,String(g),t))return!1}if(i){if(h&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===h.major&&g.semver.minor===h.minor&&g.semver.patch===h.patch&&(h=!1),g.operator==="<"||g.operator==="<="){if(c=Nn(i,g,t),c===g&&c!==i)return!1}else if(i.operator==="<="&&!$e(i.semver,String(g),t))return!1}if(!g.operator&&(i||s)&&a!==0)return!1}return!(s&&o&&!i&&a!==0||i&&u&&!s&&a!==0||p||h)},qn=(r,e,t)=>{if(!r)return e;let n=ut(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},Nn=(r,e,t)=>{if(!r)return e;let n=ut(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};jn.exports=Ro});var Tn=f((_c,Ln)=>{var ht=B();Ln.exports={re:ht.re,src:ht.src,tokens:ht.t,SEMVER_SPEC_VERSION:ge().SEMVER_SPEC_VERSION,SemVer:S(),compareIdentifiers:Ne().compareIdentifiers,rcompareIdentifiers:Ne().rcompareIdentifiers,parse:W(),valid:tr(),clean:nr(),inc:sr(),diff:hr(),major:pr(),minor:mr(),patch:vr(),prerelease:Er(),compare:N(),rcompare:br(),compareLoose:Or(),compareBuild:Te(),sort:$r(),rsort:Ir(),gt:ye(),lt:Pe(),eq:Le(),neq:tt(),gte:Fe(),lte:He(),cmp:rt(),coerce:Pr(),Comparator:Oe(),Range:j(),satisfies:Re(),toComparators:an(),maxSatisfying:cn(),minSatisfying:hn(),minVersion:dn(),validRange:gn(),outside:ke(),gtr:wn(),ltr:Sn(),intersects:$n(),simplifyRange:In(),subset:Dn()}});var M=f(x=>{"use strict";var Ao=x&&x.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Io=x&&x.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),xo=x&&x.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Ao(e,r,t);return Io(e,r),e},Pn=x&&x.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(x,"__esModule",{value:!0});x.getCoreVersion=void 0;var Fn=Pn(require("path")),Hn=Pn(require("fs")),ft=xo(require("@serverless-devs/core")),qo=Tn(),Mn=Fn.default.join(ft.getRootHome(),"cache","core"),pt=Fn.default.join(Mn,"package.json");function No(){if(Hn.default.existsSync(pt)){var r=require("@serverless-devs/core/package.json").version,e=Gn();return qo.gt(e,r)?require(Mn):ft}return ft}function Gn(){return Hn.default.existsSync(pt)?require(pt).version:void 0}x.getCoreVersion=Gn;x.default=No()});var mt=f(Ae=>{"use strict";var jo=Ae&&Ae.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ae,"__esModule",{value:!0});var Do=jo(M()),Lo=Do.default.Logger,dt=new Lo("S-CLI");dt.success=function(r){return dt.log(r,"green")};Ae.default=dt});var _t=f(I=>{"use strict";var To=I&&I.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},Po=I&&I.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Vn=I&&I.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(I,"__esModule",{value:!0});I.handlerProfileFile=I.getConfig=I.setConfig=void 0;var kn=Vn(require("path")),vt=Vn(M()),L=vt.default.fse,Xe=vt.default.jsyaml,gt=vt.default.getRootHome;function Fo(r){var e=Xn();L.writeFileSync(e,Xe.dump(r))}function Un(){var r=Xn();if(!L.existsSync(r))return{};try{var e=Xe.load(L.readFileSync(r,"utf8"))||{};return e}catch(t){throw t}}function Xn(){var r=kn.default.join(gt(),"set-config.yml");return L.existsSync(r)||L.createFileSync(r),r}function Ho(r,e){var t=Un();t[r]=e,Fo(t)}I.setConfig=Ho;function Mo(r,e){var t=Un();return t[r]||e}I.getConfig=Mo;function Go(r){return To(this,void 0,void 0,function(){var e,t,n,s,i,a,l;return Po(this,function(c){switch(c.label){case 0:if(e=r.filePath||"set-config.yml",t=kn.default.join(gt(),e),n=L.existsSync(t),s={},n)return[3,5];i=gt(),c.label=1;case 1:return c.trys.push([1,2,,4]),L.statSync(i),[3,4];case 2:return a=c.sent(),[4,L.mkdirSync(i)];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:try{s=Xe.load(L.readFileSync(t,"utf8"))||{}}catch(o){throw o}c.label=6;case 6:return r.read?[2,s]:(l=r.configKey||"",s[l]=r.data,[4,L.writeFileSync(t,Xe.dump(s))]);case 7:return c.sent(),[2,s]}})})}I.handlerProfileFile=Go});var Bn=f((wc,Vo)=>{Vo.exports={name:"@serverless-devs/s",version:"2.0.102-beta.4",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1",ajv:"^8.10.0","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var Be=f(v=>{"use strict";var ko=v&&v.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Uo=v&&v.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Xo=v&&v.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&ko(e,r,t);return Uo(e,r),e},re=v&&v.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},ne=v&&v.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},yt=v&&v.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(v,"__esModule",{value:!0});v.specifyServiceHelp=v.getTempCommandStr=v.emoji=v.mark=v.replaceTemplate=v.replaceFun=v.getLang=v.printn=v.getFolderSize=v.getVersion=v.getPid=v.aiRequest=v.getCredentialWithAll=v.getCredentialWithExisted=v.getProcessArgv=v.bgRed=v.yellow=v.red=void 0;var Bo=yt(require("path")),Ie=yt(require("fs")),Wo=yt(require("os")),R=Xo(M()),zo=_t(),Wn=Bn(),ie=R.default.colors,Yo=R.default.got,Zo=R.default.getMAC,Jo=R.default.isDocker,Qo=R.default.isCiCdEnv,V=R.default.lodash,zn=R.default.publishHelp,Ko=V.get,ea=V.trim,ta=V.assign,ra=V.filter,Yn=V.includes,Zn=V.omit,na=V.isPlainObject,ia=V.isEmpty,sa=ie.underline,oa=ie.bold;v.red=ie.hex("#fd5750");v.yellow=ie.hex("#F3F99D");v.bgRed=ie.hex("#000").bgHex("#fd5750");var aa=function(){var r=process.env.serverless_devs_temp_argv;try{var e=JSON.parse(r),t=R.default.getGlobalArgs(e);return process.argv=process.argv.slice(0,2).concat(t._argsObj),ta({},t,{noHelpArgv:process.argv.slice(0,2).concat(ra(t._argsObj,function(n){return!Yn(["-h","--help"],n)}))})}catch{return{}}};v.getProcessArgv=aa;var la=function(r){return re(void 0,void 0,void 0,function(){var e,t;return ne(this,function(n){switch(n.label){case 0:return[4,R.default.getCredentialAliasList()];case 1:return e=n.sent(),Yn(e,r)?[4,R.default.getCredential(r)]:[3,3];case 2:return t=n.sent(),[2,Zn(t,"Alias")];case 3:return[2]}})})};v.getCredentialWithExisted=la;var ca=function(){return re(void 0,void 0,void 0,function(){var r,e,t,n,s,i;return ne(this,function(a){switch(a.label){case 0:return[4,R.default.getCredentialAliasList()];case 1:if(r=a.sent(),!(r.length>0))return[3,6];e={},t=0,n=r,a.label=2;case 2:return t<n.length?(s=n[t],[4,R.default.getCredential(s)]):[3,5];case 3:i=a.sent(),e[i.Alias]=Zn(i,"Alias"),a.label=4;case 4:return t++,[3,2];case 5:return[2,e];case 6:return[2]}})})};v.getCredentialWithAll=ca;var ua=function(r,e){return e===void 0&&(e="unknow"),re(void 0,void 0,void 0,function(){var t,n,s,i;return ne(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t=(0,zo.getConfig)("analysis"),t!=="enable"?[2]:Jo()||Qo()?[2]:[4,Yo("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(e,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0})];case 1:return n=a.sent(),s=Ko(n.body,"shorturl"),s&&console.log(`AI Tips:
15
+ `)}function Tt(r,e,t){return r.match(/[\n]\s+/)||e<40?r:Mt(r,e,t)}function Pt(r,e){r._hasHelpOption&&e.find(n=>n===r._helpLongFlag||n===r._helpShortFlag)&&(r.outputHelp(),r._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Ft(r){let e=r.name+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}function Gt(r){let e,t,n=r.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),t=n.shift(),!e&&/^-[^-]$/.test(t)&&(e=t,t=void 0),{shortFlag:e,longFlag:t}}function Ht(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let t,n="127.0.0.1",s="9229",i;return(i=e.match(/^(--inspect(-brk)?)$/))!==null?t=i[1]:(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=i[1],/^\d+$/.test(i[3])?s=i[3]:n=i[3]):(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=i[1],n=i[3],s=i[4]),t&&s!=="0"?`${t}=${n}:${parseInt(s)+1}`:e})}});var ge=f((Al,Ut)=>{var bi="2.0.0",wi=Number.MAX_SAFE_INTEGER||9007199254740991,Oi=16;Ut.exports={SEMVER_SPEC_VERSION:bi,MAX_LENGTH:256,MAX_SAFE_INTEGER:wi,MAX_SAFE_COMPONENT_LENGTH:Oi}});var ve=f((xl,Xt)=>{var Si=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Xt.exports=Si});var B=f((G,Bt)=>{var{MAX_SAFE_COMPONENT_LENGTH:et}=ge(),Ci=ve();G=Bt.exports={};var Ri=G.re=[],d=G.src=[],m=G.t={},$i=0,_=(r,e,t)=>{let n=$i++;Ci(n,e),m[r]=n,d[n]=e,Ri[n]=new RegExp(e,t?"g":void 0)};_("NUMERICIDENTIFIER","0|[1-9]\\d*");_("NUMERICIDENTIFIERLOOSE","[0-9]+");_("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");_("MAINVERSION",`(${d[m.NUMERICIDENTIFIER]})\\.(${d[m.NUMERICIDENTIFIER]})\\.(${d[m.NUMERICIDENTIFIER]})`);_("MAINVERSIONLOOSE",`(${d[m.NUMERICIDENTIFIERLOOSE]})\\.(${d[m.NUMERICIDENTIFIERLOOSE]})\\.(${d[m.NUMERICIDENTIFIERLOOSE]})`);_("PRERELEASEIDENTIFIER",`(?:${d[m.NUMERICIDENTIFIER]}|${d[m.NONNUMERICIDENTIFIER]})`);_("PRERELEASEIDENTIFIERLOOSE",`(?:${d[m.NUMERICIDENTIFIERLOOSE]}|${d[m.NONNUMERICIDENTIFIER]})`);_("PRERELEASE",`(?:-(${d[m.PRERELEASEIDENTIFIER]}(?:\\.${d[m.PRERELEASEIDENTIFIER]})*))`);_("PRERELEASELOOSE",`(?:-?(${d[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[m.PRERELEASEIDENTIFIERLOOSE]})*))`);_("BUILDIDENTIFIER","[0-9A-Za-z-]+");_("BUILD",`(?:\\+(${d[m.BUILDIDENTIFIER]}(?:\\.${d[m.BUILDIDENTIFIER]})*))`);_("FULLPLAIN",`v?${d[m.MAINVERSION]}${d[m.PRERELEASE]}?${d[m.BUILD]}?`);_("FULL",`^${d[m.FULLPLAIN]}$`);_("LOOSEPLAIN",`[v=\\s]*${d[m.MAINVERSIONLOOSE]}${d[m.PRERELEASELOOSE]}?${d[m.BUILD]}?`);_("LOOSE",`^${d[m.LOOSEPLAIN]}$`);_("GTLT","((?:<|>)?=?)");_("XRANGEIDENTIFIERLOOSE",`${d[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);_("XRANGEIDENTIFIER",`${d[m.NUMERICIDENTIFIER]}|x|X|\\*`);_("XRANGEPLAIN",`[v=\\s]*(${d[m.XRANGEIDENTIFIER]})(?:\\.(${d[m.XRANGEIDENTIFIER]})(?:\\.(${d[m.XRANGEIDENTIFIER]})(?:${d[m.PRERELEASE]})?${d[m.BUILD]}?)?)?`);_("XRANGEPLAINLOOSE",`[v=\\s]*(${d[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[m.XRANGEIDENTIFIERLOOSE]})(?:${d[m.PRERELEASELOOSE]})?${d[m.BUILD]}?)?)?`);_("XRANGE",`^${d[m.GTLT]}\\s*${d[m.XRANGEPLAIN]}$`);_("XRANGELOOSE",`^${d[m.GTLT]}\\s*${d[m.XRANGEPLAINLOOSE]}$`);_("COERCE",`(^|[^\\d])(\\d{1,${et}})(?:\\.(\\d{1,${et}}))?(?:\\.(\\d{1,${et}}))?(?:$|[^\\d])`);_("COERCERTL",d[m.COERCE],!0);_("LONETILDE","(?:~>?)");_("TILDETRIM",`(\\s*)${d[m.LONETILDE]}\\s+`,!0);G.tildeTrimReplace="$1~";_("TILDE",`^${d[m.LONETILDE]}${d[m.XRANGEPLAIN]}$`);_("TILDELOOSE",`^${d[m.LONETILDE]}${d[m.XRANGEPLAINLOOSE]}$`);_("LONECARET","(?:\\^)");_("CARETTRIM",`(\\s*)${d[m.LONECARET]}\\s+`,!0);G.caretTrimReplace="$1^";_("CARET",`^${d[m.LONECARET]}${d[m.XRANGEPLAIN]}$`);_("CARETLOOSE",`^${d[m.LONECARET]}${d[m.XRANGEPLAINLOOSE]}$`);_("COMPARATORLOOSE",`^${d[m.GTLT]}\\s*(${d[m.LOOSEPLAIN]})$|^$`);_("COMPARATOR",`^${d[m.GTLT]}\\s*(${d[m.FULLPLAIN]})$|^$`);_("COMPARATORTRIM",`(\\s*)${d[m.GTLT]}\\s*(${d[m.LOOSEPLAIN]}|${d[m.XRANGEPLAIN]})`,!0);G.comparatorTrimReplace="$1$2$3";_("HYPHENRANGE",`^\\s*(${d[m.XRANGEPLAIN]})\\s+-\\s+(${d[m.XRANGEPLAIN]})\\s*$`);_("HYPHENRANGELOOSE",`^\\s*(${d[m.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[m.XRANGEPLAINLOOSE]})\\s*$`);_("STAR","(<|>)?=?\\s*\\*");_("GTE0","^\\s*>=\\s*0.0.0\\s*$");_("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var _e=f((ql,Wt)=>{var Ii=["includePrerelease","loose","rtl"],Ai=r=>r?typeof r!="object"?{loose:!0}:Ii.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};Wt.exports=Ai});var je=f((Nl,Zt)=>{var zt=/^[0-9]+$/,Yt=(r,e)=>{let t=zt.test(r),n=zt.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},xi=(r,e)=>Yt(e,r);Zt.exports={compareIdentifiers:Yt,rcompareIdentifiers:xi}});var S=f((jl,er)=>{var De=ve(),{MAX_LENGTH:Jt,MAX_SAFE_INTEGER:Le}=ge(),{re:Qt,t:Kt}=B(),qi=_e(),{compareIdentifiers:Ee}=je(),q=class{constructor(e,t){if(t=qi(t),e instanceof q){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>Jt)throw new TypeError(`version is longer than ${Jt} characters`);De("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Qt[Kt.LOOSE]:Qt[Kt.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Le||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Le||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Le||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Le)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(De("SemVer.compare",this.version,this.options,e),!(e instanceof q)){if(typeof e=="string"&&e===this.version)return 0;e=new q(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof q||(e=new q(e,this.options)),Ee(this.major,e.major)||Ee(this.minor,e.minor)||Ee(this.patch,e.patch)}comparePre(e){if(e instanceof q||(e=new q(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(De("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Ee(n,s)}while(++t)}compareBuild(e){e instanceof q||(e=new q(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(De("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Ee(n,s)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};er.exports=q});var W=f((Dl,ir)=>{var{MAX_LENGTH:Ni}=ge(),{re:tr,t:rr}=B(),nr=S(),ji=_e(),Di=(r,e)=>{if(e=ji(e),r instanceof nr)return r;if(typeof r!="string"||r.length>Ni||!(e.loose?tr[rr.LOOSE]:tr[rr.FULL]).test(r))return null;try{return new nr(r,e)}catch{return null}};ir.exports=Di});var or=f((Ll,sr)=>{var Li=W(),Ti=(r,e)=>{let t=Li(r,e);return t?t.version:null};sr.exports=Ti});var lr=f((Tl,ar)=>{var Pi=W(),Fi=(r,e)=>{let t=Pi(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};ar.exports=Fi});var ur=f((Pl,cr)=>{var Hi=S(),Mi=(r,e,t,n)=>{typeof t=="string"&&(n=t,t=void 0);try{return new Hi(r,t).inc(e,n).version}catch{return null}};cr.exports=Mi});var N=f((Fl,fr)=>{var hr=S(),Gi=(r,e,t)=>new hr(r,t).compare(new hr(e,t));fr.exports=Gi});var Te=f((Hl,pr)=>{var Vi=N(),ki=(r,e,t)=>Vi(r,e,t)===0;pr.exports=ki});var gr=f((Ml,mr)=>{var dr=W(),Ui=Te(),Xi=(r,e)=>{if(Ui(r,e))return null;{let t=dr(r),n=dr(e),s=t.prerelease.length||n.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(let l in t)if((l==="major"||l==="minor"||l==="patch")&&t[l]!==n[l])return i+l;return a}};mr.exports=Xi});var _r=f((Gl,vr)=>{var Bi=S(),Wi=(r,e)=>new Bi(r,e).major;vr.exports=Wi});var yr=f((Vl,Er)=>{var zi=S(),Yi=(r,e)=>new zi(r,e).minor;Er.exports=Yi});var wr=f((kl,br)=>{var Zi=S(),Ji=(r,e)=>new Zi(r,e).patch;br.exports=Ji});var Sr=f((Ul,Or)=>{var Qi=W(),Ki=(r,e)=>{let t=Qi(r,e);return t&&t.prerelease.length?t.prerelease:null};Or.exports=Ki});var Rr=f((Xl,Cr)=>{var es=N(),ts=(r,e,t)=>es(e,r,t);Cr.exports=ts});var Ir=f((Bl,$r)=>{var rs=N(),ns=(r,e)=>rs(r,e,!0);$r.exports=ns});var Pe=f((Wl,xr)=>{var Ar=S(),is=(r,e,t)=>{let n=new Ar(r,t),s=new Ar(e,t);return n.compare(s)||n.compareBuild(s)};xr.exports=is});var Nr=f((zl,qr)=>{var ss=Pe(),os=(r,e)=>r.sort((t,n)=>ss(t,n,e));qr.exports=os});var Dr=f((Yl,jr)=>{var as=Pe(),ls=(r,e)=>r.sort((t,n)=>as(n,t,e));jr.exports=ls});var ye=f((Zl,Lr)=>{var cs=N(),us=(r,e,t)=>cs(r,e,t)>0;Lr.exports=us});var Fe=f((Jl,Tr)=>{var hs=N(),fs=(r,e,t)=>hs(r,e,t)<0;Tr.exports=fs});var tt=f((Ql,Pr)=>{var ps=N(),ds=(r,e,t)=>ps(r,e,t)!==0;Pr.exports=ds});var He=f((Kl,Fr)=>{var ms=N(),gs=(r,e,t)=>ms(r,e,t)>=0;Fr.exports=gs});var Me=f((ec,Hr)=>{var vs=N(),_s=(r,e,t)=>vs(r,e,t)<=0;Hr.exports=_s});var rt=f((tc,Mr)=>{var Es=Te(),ys=tt(),bs=ye(),ws=He(),Os=Fe(),Ss=Me(),Cs=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Es(r,t,n);case"!=":return ys(r,t,n);case">":return bs(r,t,n);case">=":return ws(r,t,n);case"<":return Os(r,t,n);case"<=":return Ss(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Mr.exports=Cs});var Vr=f((rc,Gr)=>{var Rs=S(),$s=W(),{re:Ge,t:Ve}=B(),Is=(r,e)=>{if(r instanceof Rs)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(Ge[Ve.COERCE]);else{let n;for(;(n=Ge[Ve.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),Ge[Ve.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Ge[Ve.COERCERTL].lastIndex=-1}return t===null?null:$s(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};Gr.exports=Is});var Ur=f((nc,kr)=>{"use strict";kr.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Br=f((ic,Xr)=>{"use strict";Xr.exports=E;E.Node=z;E.create=E;function E(r){var e=this;if(e instanceof E||(e=new E),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var t=0,n=arguments.length;t<n;t++)e.push(arguments[t]);return e}E.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,t=r.prev;return e&&(e.prev=t),t&&(t.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=t),r.list.length--,r.next=null,r.prev=null,r.list=null,e};E.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};E.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}};E.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)xs(this,arguments[r]);return this.length};E.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)qs(this,arguments[r]);return this.length};E.prototype.pop=function(){if(!!this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};E.prototype.shift=function(){if(!!this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};E.prototype.forEach=function(r,e){e=e||this;for(var t=this.head,n=0;t!==null;n++)r.call(e,t.value,n,this),t=t.next};E.prototype.forEachReverse=function(r,e){e=e||this;for(var t=this.tail,n=this.length-1;t!==null;n--)r.call(e,t.value,n,this),t=t.prev};E.prototype.get=function(r){for(var e=0,t=this.head;t!==null&&e<r;e++)t=t.next;if(e===r&&t!==null)return t.value};E.prototype.getReverse=function(r){for(var e=0,t=this.tail;t!==null&&e<r;e++)t=t.prev;if(e===r&&t!==null)return t.value};E.prototype.map=function(r,e){e=e||this;for(var t=new E,n=this.head;n!==null;)t.push(r.call(e,n.value,this)),n=n.next;return t};E.prototype.mapReverse=function(r,e){e=e||this;for(var t=new E,n=this.tail;n!==null;)t.push(r.call(e,n.value,this)),n=n.prev;return t};E.prototype.reduce=function(r,e){var t,n=this.head;if(arguments.length>1)t=e;else if(this.head)n=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;n!==null;s++)t=r(t,n.value,s),n=n.next;return t};E.prototype.reduceReverse=function(r,e){var t,n=this.tail;if(arguments.length>1)t=e;else if(this.tail)n=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;n!==null;s--)t=r(t,n.value,s),n=n.prev;return t};E.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};E.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};E.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new E;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=0,s=this.head;s!==null&&n<r;n++)s=s.next;for(;s!==null&&n<e;n++,s=s.next)t.push(s.value);return t};E.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new E;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=this.length,s=this.tail;s!==null&&n>e;n--)s=s.prev;for(;s!==null&&n>r;n--,s=s.prev)t.push(s.value);return t};E.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var n=0,s=this.head;s!==null&&n<r;n++)s=s.next;for(var i=[],n=0;s&&n<e;n++)i.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var n=0;n<t.length;n++)s=As(this,s,t[n]);return i};E.prototype.reverse=function(){for(var r=this.head,e=this.tail,t=r;t!==null;t=t.prev){var n=t.prev;t.prev=t.next,t.next=n}return this.head=e,this.tail=r,this};function As(r,e,t){var n=e===r.head?new z(t,null,e,r):new z(t,e,e.next,r);return n.next===null&&(r.tail=n),n.prev===null&&(r.head=n),r.length++,n}function xs(r,e){r.tail=new z(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function qs(r,e){r.head=new z(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function z(r,e,t,n){if(!(this instanceof z))return new z(r,e,t,n);this.list=n,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{Ur()(E)}catch{}});var Kr=f((sc,Qr)=>{"use strict";var Ns=Br(),Y=Symbol("max"),H=Symbol("length"),K=Symbol("lengthCalculator"),we=Symbol("allowStale"),Z=Symbol("maxAge"),F=Symbol("dispose"),Wr=Symbol("noDisposeOnSet"),w=Symbol("lruList"),D=Symbol("cache"),Yr=Symbol("updateAgeOnGet"),nt=()=>1,Zr=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[Y]=e.max||1/0,n=e.length||nt;if(this[K]=typeof n!="function"?nt:n,this[we]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Z]=e.maxAge||0,this[F]=e.dispose,this[Wr]=e.noDisposeOnSet||!1,this[Yr]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Y]=e||1/0,be(this)}get max(){return this[Y]}set allowStale(e){this[we]=!!e}get allowStale(){return this[we]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Z]=e,be(this)}get maxAge(){return this[Z]}set lengthCalculator(e){typeof e!="function"&&(e=nt),e!==this[K]&&(this[K]=e,this[H]=0,this[w].forEach(t=>{t.length=this[K](t.value,t.key),this[H]+=t.length})),be(this)}get lengthCalculator(){return this[K]}get length(){return this[H]}get itemCount(){return this[w].length}rforEach(e,t){t=t||this;for(let n=this[w].tail;n!==null;){let s=n.prev;zr(this,e,n,t),n=s}}forEach(e,t){t=t||this;for(let n=this[w].head;n!==null;){let s=n.next;zr(this,e,n,t),n=s}}keys(){return this[w].toArray().map(e=>e.key)}values(){return this[w].toArray().map(e=>e.value)}reset(){this[F]&&this[w]&&this[w].length&&this[w].forEach(e=>this[F](e.key,e.value)),this[D]=new Map,this[w]=new Ns,this[H]=0}dump(){return this[w].map(e=>ke(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[w]}set(e,t,n){if(n=n||this[Z],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let s=n?Date.now():0,i=this[K](t,e);if(this[D].has(e)){if(i>this[Y])return ee(this,this[D].get(e)),!1;let c=this[D].get(e).value;return this[F]&&(this[Wr]||this[F](e,c.value)),c.now=s,c.maxAge=n,c.value=t,this[H]+=i-c.length,c.length=i,this.get(e),be(this),!0}let a=new Jr(e,t,i,s,n);return a.length>this[Y]?(this[F]&&this[F](e,t),!1):(this[H]+=a.length,this[w].unshift(a),this[D].set(e,this[w].head),be(this),!0)}has(e){if(!this[D].has(e))return!1;let t=this[D].get(e).value;return!ke(this,t)}get(e){return it(this,e,!0)}peek(e){return it(this,e,!1)}pop(){let e=this[w].tail;return e?(ee(this,e),e.value):null}del(e){ee(this,this[D].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let s=e[n],i=s.e||0;if(i===0)this.set(s.k,s.v);else{let a=i-t;a>0&&this.set(s.k,s.v,a)}}}prune(){this[D].forEach((e,t)=>it(this,t,!1))}},it=(r,e,t)=>{let n=r[D].get(e);if(n){let s=n.value;if(ke(r,s)){if(ee(r,n),!r[we])return}else t&&(r[Yr]&&(n.value.now=Date.now()),r[w].unshiftNode(n));return s.value}},ke=(r,e)=>{if(!e||!e.maxAge&&!r[Z])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[Z]&&t>r[Z]},be=r=>{if(r[H]>r[Y])for(let e=r[w].tail;r[H]>r[Y]&&e!==null;){let t=e.prev;ee(r,e),e=t}},ee=(r,e)=>{if(e){let t=e.value;r[F]&&r[F](t.key,t.value),r[H]-=t.length,r[D].delete(t.key),r[w].removeNode(e)}},Jr=class{constructor(e,t,n,s,i){this.key=e,this.value=t,this.length=n,this.now=s,this.maxAge=i||0}},zr=(r,e,t,n)=>{let s=t.value;ke(r,s)&&(ee(r,t),r[we]||(s=void 0)),s&&e.call(n,s.value,s.key,r)};Qr.exports=Zr});var j=f((oc,nn)=>{var te=class{constructor(e,t){if(t=Ds(t),e instanceof te)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new te(e.raw,t);if(e instanceof st)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!tn(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Hs(s[0])){this.set=[s];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let n=`parseRange:${Object.keys(this.options).join(",")}:${e}`,s=en.get(n);if(s)return s;let i=this.options.loose,a=i?C[O.HYPHENRANGELOOSE]:C[O.HYPHENRANGE];e=e.replace(a,Ys(this.options.includePrerelease)),b("hyphen replace",e),e=e.replace(C[O.COMPARATORTRIM],Ts),b("comparator trim",e,C[O.COMPARATORTRIM]),e=e.replace(C[O.TILDETRIM],Ps),e=e.replace(C[O.CARETTRIM],Fs),e=e.split(/\s+/).join(" ");let l=i?C[O.COMPARATORLOOSE]:C[O.COMPARATOR],c=e.split(" ").map(p=>Ms(p,this.options)).join(" ").split(/\s+/).map(p=>zs(p,this.options)).filter(this.options.loose?p=>!!p.match(l):()=>!0).map(p=>new st(p,this.options)),o=c.length,u=new Map;for(let p of c){if(tn(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let h=[...u.values()];return en.set(n,h),h}intersects(e,t){if(!(e instanceof te))throw new TypeError("a Range is required");return this.set.some(n=>rn(n,t)&&e.set.some(s=>rn(s,t)&&n.every(i=>s.every(a=>i.intersects(a,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Ls(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Zs(this.set[t],e,this.options))return!0;return!1}};nn.exports=te;var js=Kr(),en=new js({max:1e3}),Ds=_e(),st=Oe(),b=ve(),Ls=S(),{re:C,t:O,comparatorTrimReplace:Ts,tildeTrimReplace:Ps,caretTrimReplace:Fs}=B(),tn=r=>r.value==="<0.0.0-0",Hs=r=>r.value==="",rn=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},Ms=(r,e)=>(b("comp",r,e),r=ks(r,e),b("caret",r),r=Gs(r,e),b("tildes",r),r=Xs(r,e),b("xrange",r),r=Ws(r,e),b("stars",r),r),I=r=>!r||r.toLowerCase()==="x"||r==="*",Gs=(r,e)=>r.trim().split(/\s+/).map(t=>Vs(t,e)).join(" "),Vs=(r,e)=>{let t=e.loose?C[O.TILDELOOSE]:C[O.TILDE];return r.replace(t,(n,s,i,a,l)=>{b("tilde",r,n,s,i,a,l);let c;return I(s)?c="":I(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:I(a)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:l?(b("replaceTilde pr",l),c=`>=${s}.${i}.${a}-${l} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${a} <${s}.${+i+1}.0-0`,b("tilde return",c),c})},ks=(r,e)=>r.trim().split(/\s+/).map(t=>Us(t,e)).join(" "),Us=(r,e)=>{b("caret",r,e);let t=e.loose?C[O.CARETLOOSE]:C[O.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,a,l,c)=>{b("caret",r,s,i,a,l,c);let o;return I(i)?o="":I(a)?o=`>=${i}.0.0${n} <${+i+1}.0.0-0`:I(l)?i==="0"?o=`>=${i}.${a}.0${n} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.0${n} <${+i+1}.0.0-0`:c?(b("replaceCaret pr",c),i==="0"?a==="0"?o=`>=${i}.${a}.${l}-${c} <${i}.${a}.${+l+1}-0`:o=`>=${i}.${a}.${l}-${c} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.${l}-${c} <${+i+1}.0.0-0`):(b("no pr"),i==="0"?a==="0"?o=`>=${i}.${a}.${l}${n} <${i}.${a}.${+l+1}-0`:o=`>=${i}.${a}.${l}${n} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.${l} <${+i+1}.0.0-0`),b("caret return",o),o})},Xs=(r,e)=>(b("replaceXRanges",r,e),r.split(/\s+/).map(t=>Bs(t,e)).join(" ")),Bs=(r,e)=>{r=r.trim();let t=e.loose?C[O.XRANGELOOSE]:C[O.XRANGE];return r.replace(t,(n,s,i,a,l,c)=>{b("xRange",r,n,s,i,a,l,c);let o=I(i),u=o||I(a),h=u||I(l),p=h;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",o?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&p?(u&&(a=0),l=0,s===">"?(s=">=",u?(i=+i+1,a=0,l=0):(a=+a+1,l=0)):s==="<="&&(s="<",u?i=+i+1:a=+a+1),s==="<"&&(c="-0"),n=`${s+i}.${a}.${l}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:h&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),b("xRange return",n),n})},Ws=(r,e)=>(b("replaceStars",r,e),r.trim().replace(C[O.STAR],"")),zs=(r,e)=>(b("replaceGTE0",r,e),r.trim().replace(C[e.includePrerelease?O.GTE0PRE:O.GTE0],"")),Ys=r=>(e,t,n,s,i,a,l,c,o,u,h,p,g)=>(I(n)?t="":I(s)?t=`>=${n}.0.0${r?"-0":""}`:I(i)?t=`>=${n}.${s}.0${r?"-0":""}`:a?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,I(o)?c="":I(u)?c=`<${+o+1}.0.0-0`:I(h)?c=`<${o}.${+u+1}.0-0`:p?c=`<=${o}.${u}.${h}-${p}`:r?c=`<${o}.${u}.${+h+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),Zs=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(b(r[n].semver),r[n].semver!==st.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Oe=f((ac,cn)=>{var Se=Symbol("SemVer ANY"),Ce=class{static get ANY(){return Se}constructor(e,t){if(t=Js(t),e instanceof Ce){if(e.loose===!!t.loose)return e;e=e.value}at("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Se?this.value="":this.value=this.operator+this.semver.version,at("comp",this)}parse(e){let t=this.options.loose?sn[on.COMPARATORLOOSE]:sn[on.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new an(n[2],this.options.loose):this.semver=Se}toString(){return this.value}test(e){if(at("Comparator.test",e,this.options.loose),this.semver===Se||e===Se)return!0;if(typeof e=="string")try{e=new an(e,this.options)}catch{return!1}return ot(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Ce))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new ln(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new ln(this.value,t).test(e.semver);let n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),i=this.semver.version===e.semver.version,a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),l=ot(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=ot(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||s||i&&a||l||c}};cn.exports=Ce;var Js=_e(),{re:sn,t:on}=B(),ot=rt(),at=ve(),an=S(),ln=j()});var Re=f((lc,un)=>{var Qs=j(),Ks=(r,e,t)=>{try{e=new Qs(e,t)}catch{return!1}return e.test(r)};un.exports=Ks});var fn=f((cc,hn)=>{var eo=j(),to=(r,e)=>new eo(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));hn.exports=to});var dn=f((uc,pn)=>{var ro=S(),no=j(),io=(r,e,t)=>{let n=null,s=null,i=null;try{i=new no(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new ro(n,t))}),n};pn.exports=io});var gn=f((hc,mn)=>{var so=S(),oo=j(),ao=(r,e,t)=>{let n=null,s=null,i=null;try{i=new oo(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new so(n,t))}),n};mn.exports=ao});var En=f((fc,_n)=>{var lt=S(),lo=j(),vn=ye(),co=(r,e)=>{r=new lo(r,e);let t=new lt("0.0.0");if(r.test(t)||(t=new lt("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let s=r.set[n],i=null;s.forEach(a=>{let l=new lt(a.semver.version);switch(a.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!i||vn(l,i))&&(i=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!t||vn(t,i))&&(t=i)}return t&&r.test(t)?t:null};_n.exports=co});var bn=f((pc,yn)=>{var uo=j(),ho=(r,e)=>{try{return new uo(r,e).range||"*"}catch{return null}};yn.exports=ho});var Ue=f((dc,Cn)=>{var fo=S(),Sn=Oe(),{ANY:po}=Sn,mo=j(),go=Re(),wn=ye(),On=Fe(),vo=Me(),_o=He(),Eo=(r,e,t,n)=>{r=new fo(r,n),e=new mo(e,n);let s,i,a,l,c;switch(t){case">":s=wn,i=vo,a=On,l=">",c=">=";break;case"<":s=On,i=_o,a=wn,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(go(r,e,n))return!1;for(let o=0;o<e.set.length;++o){let u=e.set[o],h=null,p=null;if(u.forEach(g=>{g.semver===po&&(g=new Sn(">=0.0.0")),h=h||g,p=p||g,s(g.semver,h.semver,n)?h=g:a(g.semver,p.semver,n)&&(p=g)}),h.operator===l||h.operator===c||(!p.operator||p.operator===l)&&i(r,p.semver))return!1;if(p.operator===c&&a(r,p.semver))return!1}return!0};Cn.exports=Eo});var $n=f((mc,Rn)=>{var yo=Ue(),bo=(r,e,t)=>yo(r,e,">",t);Rn.exports=bo});var An=f((gc,In)=>{var wo=Ue(),Oo=(r,e,t)=>wo(r,e,"<",t);In.exports=Oo});var Nn=f((vc,qn)=>{var xn=j(),So=(r,e,t)=>(r=new xn(r,t),e=new xn(e,t),r.intersects(e));qn.exports=So});var Dn=f((_c,jn)=>{var Co=Re(),Ro=N();jn.exports=(r,e,t)=>{let n=[],s=null,i=null,a=r.sort((u,h)=>Ro(u,h,t));for(let u of a)Co(u,e,t)?(i=u,s||(s=u)):(i&&n.push([s,i]),i=null,s=null);s&&n.push([s,null]);let l=[];for(let[u,h]of n)u===h?l.push(u):!h&&u===a[0]?l.push("*"):h?u===a[0]?l.push(`<=${h}`):l.push(`${u} - ${h}`):l.push(`>=${u}`);let c=l.join(" || "),o=typeof e.raw=="string"?e.raw:String(e);return c.length<o.length?c:e}});var Hn=f((Ec,Fn)=>{var Ln=j(),Xe=Oe(),{ANY:ct}=Xe,$e=Re(),ut=N(),$o=(r,e,t={})=>{if(r===e)return!0;r=new Ln(r,t),e=new Ln(e,t);let n=!1;e:for(let s of r.set){for(let i of e.set){let a=Io(s,i,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},Io=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===ct){if(e.length===1&&e[0].semver===ct)return!0;t.includePrerelease?r=[new Xe(">=0.0.0-0")]:r=[new Xe(">=0.0.0")]}if(e.length===1&&e[0].semver===ct){if(t.includePrerelease)return!0;e=[new Xe(">=0.0.0")]}let n=new Set,s,i;for(let g of r)g.operator===">"||g.operator===">="?s=Tn(s,g,t):g.operator==="<"||g.operator==="<="?i=Pn(i,g,t):n.add(g.semver);if(n.size>1)return null;let a;if(s&&i){if(a=ut(s.semver,i.semver,t),a>0)return null;if(a===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let g of n){if(s&&!$e(g,String(s),t)||i&&!$e(g,String(i),t))return null;for(let fe of e)if(!$e(g,String(fe),t))return!1;return!0}let l,c,o,u,h=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,p=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;h&&h.prerelease.length===1&&i.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let g of e){if(u=u||g.operator===">"||g.operator===">=",o=o||g.operator==="<"||g.operator==="<=",s){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator===">"||g.operator===">="){if(l=Tn(s,g,t),l===g&&l!==s)return!1}else if(s.operator===">="&&!$e(s.semver,String(g),t))return!1}if(i){if(h&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===h.major&&g.semver.minor===h.minor&&g.semver.patch===h.patch&&(h=!1),g.operator==="<"||g.operator==="<="){if(c=Pn(i,g,t),c===g&&c!==i)return!1}else if(i.operator==="<="&&!$e(i.semver,String(g),t))return!1}if(!g.operator&&(i||s)&&a!==0)return!1}return!(s&&o&&!i&&a!==0||i&&u&&!s&&a!==0||p||h)},Tn=(r,e,t)=>{if(!r)return e;let n=ut(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},Pn=(r,e,t)=>{if(!r)return e;let n=ut(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};Fn.exports=$o});var Gn=f((yc,Mn)=>{var ht=B();Mn.exports={re:ht.re,src:ht.src,tokens:ht.t,SEMVER_SPEC_VERSION:ge().SEMVER_SPEC_VERSION,SemVer:S(),compareIdentifiers:je().compareIdentifiers,rcompareIdentifiers:je().rcompareIdentifiers,parse:W(),valid:or(),clean:lr(),inc:ur(),diff:gr(),major:_r(),minor:yr(),patch:wr(),prerelease:Sr(),compare:N(),rcompare:Rr(),compareLoose:Ir(),compareBuild:Pe(),sort:Nr(),rsort:Dr(),gt:ye(),lt:Fe(),eq:Te(),neq:tt(),gte:He(),lte:Me(),cmp:rt(),coerce:Vr(),Comparator:Oe(),Range:j(),satisfies:Re(),toComparators:fn(),maxSatisfying:dn(),minSatisfying:gn(),minVersion:En(),validRange:bn(),outside:Ue(),gtr:$n(),ltr:An(),intersects:Nn(),simplifyRange:Dn(),subset:Hn()}});var M=f(x=>{"use strict";var Ao=x&&x.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),xo=x&&x.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),qo=x&&x.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Ao(e,r,t);return xo(e,r),e},Vn=x&&x.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(x,"__esModule",{value:!0});x.getCoreVersion=void 0;var kn=Vn(require("path")),Un=Vn(require("fs")),ft=qo(require("@serverless-devs/core")),No=Gn(),Xn=kn.default.join(ft.getRootHome(),"cache","core"),pt=kn.default.join(Xn,"package.json");function jo(){if(Un.default.existsSync(pt)){var r=require("@serverless-devs/core/package.json").version,e=Bn();return No.gt(e,r)?require(Xn):ft}return ft}function Bn(){return Un.default.existsSync(pt)?require(pt).version:void 0}x.getCoreVersion=Bn;x.default=jo()});var mt=f(Ie=>{"use strict";var Do=Ie&&Ie.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ie,"__esModule",{value:!0});var Lo=Do(M()),To=Lo.default.Logger,dt=new To("S-CLI");dt.success=function(r){return dt.log(r,"green")};Ie.default=dt});var _t=f(A=>{"use strict";var Po=A&&A.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},Fo=A&&A.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Wn=A&&A.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(A,"__esModule",{value:!0});A.handlerProfileFile=A.getConfig=A.setConfig=void 0;var zn=Wn(require("path")),vt=Wn(M()),L=vt.default.fse,Be=vt.default.jsyaml,gt=vt.default.getRootHome;function Ho(r){var e=Zn();L.writeFileSync(e,Be.dump(r))}function Yn(){var r=Zn();if(!L.existsSync(r))return{};try{var e=Be.load(L.readFileSync(r,"utf8"))||{};return e}catch(t){throw t}}function Zn(){var r=zn.default.join(gt(),"set-config.yml");return L.existsSync(r)||L.createFileSync(r),r}function Mo(r,e){var t=Yn();t[r]=e,Ho(t)}A.setConfig=Mo;function Go(r,e){var t=Yn();return t[r]||e}A.getConfig=Go;function Vo(r){return Po(this,void 0,void 0,function(){var e,t,n,s,i,a,l;return Fo(this,function(c){switch(c.label){case 0:if(e=r.filePath||"set-config.yml",t=zn.default.join(gt(),e),n=L.existsSync(t),s={},n)return[3,5];i=gt(),c.label=1;case 1:return c.trys.push([1,2,,4]),L.statSync(i),[3,4];case 2:return a=c.sent(),[4,L.mkdirSync(i)];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:try{s=Be.load(L.readFileSync(t,"utf8"))||{}}catch(o){throw o}c.label=6;case 6:return r.read?[2,s]:(l=r.configKey||"",s[l]=r.data,[4,L.writeFileSync(t,Be.dump(s))]);case 7:return c.sent(),[2,s]}})})}A.handlerProfileFile=Vo});var Jn=f((Sc,ko)=>{ko.exports={name:"@serverless-devs/s",version:"2.0.103",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1",ajv:"^8.10.0","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"latest"}}});var We=f(v=>{"use strict";var Uo=v&&v.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Xo=v&&v.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Bo=v&&v.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Uo(e,r,t);return Xo(e,r),e},re=v&&v.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},ne=v&&v.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},yt=v&&v.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(v,"__esModule",{value:!0});v.specifyServiceHelp=v.getTempCommandStr=v.emoji=v.mark=v.replaceTemplate=v.replaceFun=v.getLang=v.printn=v.getFolderSize=v.getVersion=v.getPid=v.aiRequest=v.getCredentialWithAll=v.getCredentialWithExisted=v.getProcessArgv=v.bgRed=v.yellow=v.red=void 0;var Wo=yt(require("path")),Ae=yt(require("fs")),zo=yt(require("os")),R=Bo(M()),Yo=_t(),Qn=Jn(),ie=R.default.colors,Zo=R.default.got,Jo=R.default.getMAC,Qo=R.default.isDocker,Ko=R.default.isCiCdEnv,V=R.default.lodash,Kn=R.default.publishHelp,ea=V.get,ta=V.trim,ra=V.assign,na=V.filter,ei=V.includes,ia=V.omit,sa=V.isPlainObject,oa=V.isEmpty,aa=ie.underline,la=ie.bold;v.red=ie.hex("#fd5750");v.yellow=ie.hex("#F3F99D");v.bgRed=ie.hex("#000").bgHex("#fd5750");var ca=function(){var r=process.env.serverless_devs_temp_argv;try{var e=JSON.parse(r),t=R.default.getGlobalArgs(e);return process.argv=process.argv.slice(0,2).concat(t._argsObj),ra({},t,{noHelpArgv:process.argv.slice(0,2).concat(na(t._argsObj,function(n){return!ei(["-h","--help"],n)}))})}catch{return{}}};v.getProcessArgv=ca;var ua=function(r){return re(void 0,void 0,void 0,function(){var e,t;return ne(this,function(n){switch(n.label){case 0:return[4,R.default.getCredentialAliasList()];case 1:return e=n.sent(),ei(e,r)?[4,R.default.getCredential(r)]:[3,3];case 2:return t=n.sent(),[2,t];case 3:return[2]}})})};v.getCredentialWithExisted=ua;var ha=function(){return re(void 0,void 0,void 0,function(){var r,e,t,n,s,i;return ne(this,function(a){switch(a.label){case 0:return[4,R.default.getCredentialAliasList()];case 1:if(r=a.sent(),!(r.length>0))return[3,6];e={},t=0,n=r,a.label=2;case 2:return t<n.length?(s=n[t],[4,R.default.getCredential(s)]):[3,5];case 3:i=a.sent(),e[i.Alias]=ia(i,"Alias"),a.label=4;case 4:return t++,[3,2];case 5:return[2,e];case 6:return[2]}})})};v.getCredentialWithAll=ha;var fa=function(r,e){return e===void 0&&(e="unknow"),re(void 0,void 0,void 0,function(){var t,n,s,i;return ne(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t=(0,Yo.getConfig)("analysis"),t!=="enable"?[2]:Qo()||Ko()?[2]:[4,Zo("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(e,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0})];case 1:return n=a.sent(),s=ea(n.body,"shorturl"),s&&console.log(`AI Tips:
16
16
  You can try to solve the problem through: `.concat(ie.underline(s),`
17
- `)),[3,3];case 2:return i=a.sent(),[3,3];case 3:return[2]}})})};v.aiRequest=ua;var ha=function(){try{return Zo().replace(/:/g,"")}catch{return"unknown"}};v.getPid=ha;function fa(){var r=(0,R.getCoreVersion)(),e=["".concat(Wn.name,": ").concat(Wn.version),r?"core: ".concat(r):void 0,"s-home: ".concat(R.default.getRootHome()),"".concat(process.platform,"-").concat(process.arch),"node-".concat(process.version)];return e.filter(function(t){return t}).join(", ")}v.getVersion=fa;function pa(r){return re(this,void 0,void 0,function(){function e(s){return re(this,void 0,void 0,function(){var i,a;return ne(this,function(l){switch(l.label){case 0:return i=Ie.default.lstatSync(s),typeof i!="object"?[2]:(t.set(i.ino,i.size),i.isDirectory()?(a=Ie.default.readdirSync(s),typeof a!="object"?[2]:[4,Promise.all(a.map(function(c){return e(Bo.default.join(s,c))}))]):[3,2]);case 1:l.sent(),l.label=2;case 2:return[2]}})})}var t,n;return ne(this,function(s){switch(s.label){case 0:return t=new Map,[4,e(r)];case 1:return s.sent(),n=Array.from(t.values()).reduce(function(i,a){return i+a},0),[2,n]}})})}v.getFolderSize=pa;function da(r,e){e===void 0&&(e=" ");for(var t="",n=0;n<r;n++)t=t+e;return t}v.printn=da;function ma(){return"en"}v.getLang=ma;function Jn(r,e){var t=/\{\{(.*?)\}\}/g,n=r.match(t);if(n)for(var s=0;s<n.length;s++){var i=n[s].replace(/{{|}}/g,""),a=ea(i.split("|")[0]);e[a]&&(r=r.replace(n[s],e[a]))}return r}v.replaceFun=Jn;function ga(r,e){r.forEach(function(t){if(Ie.default.existsSync(t)){var n=Ie.default.readFileSync(t,"utf-8"),s=Jn(n,e);Ie.default.writeFileSync(t,s,"utf-8")}})}v.replaceTemplate=ga;function va(r){if(!r)return r;var e=r.slice(-4);return"***********".concat(e)}v.mark=va;function Et(r,e){return Wo.default.platform()==="win32"?e||"\u25C6":"".concat(r," ")}v.emoji=Et;function Qn(r,e){var t=r.length,n=new Array(e-t).fill(" ");return"".concat(r).concat(n.join("")," : ")}v.getTempCommandStr=Qn;function _a(r){return re(this,void 0,void 0,function(){var e,t,n,s,i,l,a,l;return ne(this,function(c){switch(c.label){case 0:return[4,R.default.getYamlContent(r)];case 1:if(e=c.sent(),console.log(`
17
+ `)),[3,3];case 2:return i=a.sent(),[3,3];case 3:return[2]}})})};v.aiRequest=fa;var pa=function(){try{return Jo().replace(/:/g,"")}catch{return"unknown"}};v.getPid=pa;function da(){var r=(0,R.getCoreVersion)(),e=["".concat(Qn.name,": ").concat(Qn.version),r?"core: ".concat(r):void 0,"s-home: ".concat(R.default.getRootHome()),"".concat(process.platform,"-").concat(process.arch),"node-".concat(process.version)];return e.filter(function(t){return t}).join(", ")}v.getVersion=da;function ma(r){return re(this,void 0,void 0,function(){function e(s){return re(this,void 0,void 0,function(){var i,a;return ne(this,function(l){switch(l.label){case 0:return i=Ae.default.lstatSync(s),typeof i!="object"?[2]:(t.set(i.ino,i.size),i.isDirectory()?(a=Ae.default.readdirSync(s),typeof a!="object"?[2]:[4,Promise.all(a.map(function(c){return e(Wo.default.join(s,c))}))]):[3,2]);case 1:l.sent(),l.label=2;case 2:return[2]}})})}var t,n;return ne(this,function(s){switch(s.label){case 0:return t=new Map,[4,e(r)];case 1:return s.sent(),n=Array.from(t.values()).reduce(function(i,a){return i+a},0),[2,n]}})})}v.getFolderSize=ma;function ga(r,e){e===void 0&&(e=" ");for(var t="",n=0;n<r;n++)t=t+e;return t}v.printn=ga;function va(){return"en"}v.getLang=va;function ti(r,e){var t=/\{\{(.*?)\}\}/g,n=r.match(t);if(n)for(var s=0;s<n.length;s++){var i=n[s].replace(/{{|}}/g,""),a=ta(i.split("|")[0]);e[a]&&(r=r.replace(n[s],e[a]))}return r}v.replaceFun=ti;function _a(r,e){r.forEach(function(t){if(Ae.default.existsSync(t)){var n=Ae.default.readFileSync(t,"utf-8"),s=ti(n,e);Ae.default.writeFileSync(t,s,"utf-8")}})}v.replaceTemplate=_a;function Ea(r){if(!r)return r;var e=r.slice(-4);return"***********".concat(e)}v.mark=Ea;function Et(r,e){return zo.default.platform()==="win32"?e||"\u25C6":"".concat(r," ")}v.emoji=Et;function ri(r,e){var t=r.length,n=new Array(e-t).fill(" ");return"".concat(r).concat(n.join("")," : ")}v.getTempCommandStr=ri;function ya(r){return re(this,void 0,void 0,function(){var e,t,n,s,i,l,a,l;return ne(this,function(c){switch(c.label){case 0:return[4,R.default.getYamlContent(r)];case 1:if(e=c.sent(),console.log(`
18
18
  `.concat(Et("\u{1F680}")," ").concat(e.Name,"@").concat(e.Version,": ").concat(e.Description,`
19
- `)),t=e.Commands,t){n=zn.maxLen(t),s=[],i={};for(l in t)a=t[l],na(a)?s.push(zn.helpInfo(a,sa(oa(l)),n,4)):i[l]=a;if(s.length>0&&console.log(s.join(`
20
- `)),!ia(i)){for(l in i)console.log(" ".concat(Qn(l,n)," ").concat(i[l]));console.log("")}console.log(e.HomePage?" ".concat(Et("\u{1F9ED}")," ").concat(R.default.makeUnderLine("More information: "+e.HomePage)," ")+`
21
- `:"")}return[2]}})})}v.specifyServiceHelp=_a});var Kn=f(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var ei=f(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var ri=f(xe=>{"use strict";var ti=xe&&xe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(xe,"__esModule",{value:!0});var Ea=Be(),ya=ti(Kn()),ba=ti(ei()),Ot={en:ba.default,zh:ya.default},wa=function(r){var e=(0,Ea.getLang)(),t=Ot[e]?Ot[e][r]:Ot.en[r];return t||r};xe.default=wa});var Ct=f($=>{"use strict";var Oa=$&&$.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),ni=$&&$.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Oa(e,r,t)},St=$&&$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($,"__esModule",{value:!0});$.registerCommandChecker=$.i18n=$.logger=void 0;var Sa=St(mt());ni(Be(),$);ni(_t(),$);var Ca=mt();Object.defineProperty($,"logger",{enumerable:!0,get:function(){return St(Ca).default}});var Ra=ri();Object.defineProperty($,"i18n",{enumerable:!0,get:function(){return St(Ra).default}});function $a(r){r.on("command:*",function(e){var t=r.commands.map(function(n){return n.name()});t.includes(e[0])||(Sa.default.error(" error: unknown command ".concat(e[0])),r.help())})}$.registerCommandChecker=$a});var J=f(se=>{"use strict";var Aa=se&&se.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(se,"__esModule",{value:!0});se.ServerlessError=void 0;var Ia=Aa(M()),xa=Ia.default.Logger,qa=new xa("S-CLI-ERROR"),Na=function(){function r(e,t,n){qa.error(e+": "+t,n),process.exit(1)}return r}();se.ServerlessError=Na});var ii=f(oe=>{"use strict";var ja=oe&&oe.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(oe,"__esModule",{value:!0});oe.CommandError=void 0;var Da=J(),La=function(r){ja(e,r);function e(t,n){return r.call(this,"Error",t,n)||this}return e}(Da.ServerlessError);oe.CommandError=La});var si=f(ae=>{"use strict";var Ta=ae&&ae.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ae,"__esModule",{value:!0});ae.ConfigDeleteError=void 0;var Pa=J(),Fa=function(r){Ta(e,r);function e(t,n){return r.call(this,"Deletion failed",t,n)||this}return e}(Pa.ServerlessError);ae.ConfigDeleteError=Fa});var oi=f(le=>{"use strict";var Ha=le&&le.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(le,"__esModule",{value:!0});le.ConfigError=void 0;var Ma=J(),Ga=function(r){Ha(e,r);function e(t,n){return r.call(this,"Config failed",t,n)||this}return e}(Ma.ServerlessError);le.ConfigError=Ga});var ai=f(ce=>{"use strict";var Va=ce&&ce.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ce,"__esModule",{value:!0});ce.ConfigGetError=void 0;var ka=J(),Ua=function(r){Va(e,r);function e(t,n){return r.call(this,"Get failed",t,n)||this}return e}(ka.ServerlessError);ce.ConfigGetError=Ua});var li=f(ue=>{"use strict";var Xa=ue&&ue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ue,"__esModule",{value:!0});ue.InitError=void 0;var Ba=J(),Wa=function(r){Xa(e,r);function e(t,n){return r.call(this,"Initialization failed",t,n)||this}return e}(Ba.ServerlessError);ue.InitError=Wa});var ui=f(T=>{"use strict";var za=T&&T.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},Ya=T&&T.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Za=T&&T.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(T,"__esModule",{value:!0});T.HumanError=void 0;var ci=Za(M()),Ja=Be(),Qa=ci.default.colors,Ka=function(){function r(e){var t=e.errorMessage,n=e.tips;this.errorMessage=t,console.log(`
22
- `.concat((0,Ja.bgRed)("ERROR:"))),console.log("TypeError: ".concat(t,`
23
- `)),n&&console.log("".concat(Qa.gray(n),`
24
- `))}return r.prototype.report=function(e){return za(this,void 0,void 0,function(){var t;return Ya(this,function(n){switch(n.label){case 0:return t=e.error,[4,ci.default.report({type:"jsError",content:"".concat(this.errorMessage,"||").concat(t.stack)})];case 1:return n.sent(),[2]}})})},r}();T.HumanError=Ka});var fi=f(he=>{"use strict";var el=he&&he.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(he,"__esModule",{value:!0});he.HumanWarning=void 0;var tl=el(M()),hi=tl.default.colors,rl=function(){function r(e){var t=e.warningMessage,n=e.tips;console.log(`
25
- `.concat(hi.hex("#000").bgYellow("WARNING:"))),console.log("".concat(t,`
26
- `)),n&&console.log("".concat(hi.gray(n),`
27
- `))}return r}();he.HumanWarning=rl});var pi=f(y=>{"use strict";var nl=y&&y.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},il=y&&y.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},sl=y&&y.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(y,"__esModule",{value:!0});y.HandleError=y.HumanWarning=y.HumanError=y.ServerlessError=y.InitError=y.ConfigGetError=y.ConfigError=y.ConfigDeleteError=y.CommandError=void 0;var P=Ct(),We=sl(M()),k=We.default.colors,ol=We.default.report,Rt=We.default.isDebugMode,al=We.default.makeUnderLine,ll=ii();Object.defineProperty(y,"CommandError",{enumerable:!0,get:function(){return ll.CommandError}});var cl=si();Object.defineProperty(y,"ConfigDeleteError",{enumerable:!0,get:function(){return cl.ConfigDeleteError}});var ul=oi();Object.defineProperty(y,"ConfigError",{enumerable:!0,get:function(){return ul.ConfigError}});var hl=ai();Object.defineProperty(y,"ConfigGetError",{enumerable:!0,get:function(){return hl.ConfigGetError}});var fl=li();Object.defineProperty(y,"InitError",{enumerable:!0,get:function(){return fl.InitError}});var pl=J();Object.defineProperty(y,"ServerlessError",{enumerable:!0,get:function(){return pl.ServerlessError}});var dl=ui();Object.defineProperty(y,"HumanError",{enumerable:!0,get:function(){return dl.HumanError}});var ml=fi();Object.defineProperty(y,"HumanWarning",{enumerable:!0,get:function(){return ml.HumanWarning}});function $t(r,e){return"".concat(k.gray(r)).concat(k.gray.underline(e))}var gl=function(r){return nl(void 0,void 0,void 0,function(){var e,t,n,s,i,a,l,c;return il(this,function(o){switch(o.label){case 0:e="Message:",t={traceId:"",catchableError:!1},n=r,s=(0,P.getConfig)("analysis"),s!=="disable"&&(t.traceId="".concat((0,P.getPid)()).concat(Date.now())),i=r.message?r.message:"";try{a=JSON.parse(i)}catch{}return a&&a.tips?(l=a.message?"Message: ".concat(a.message,`
28
- `):"",c=a.tips?"* ".concat(al(a.tips.replace(/\n/,`
19
+ `)),t=e.Commands,t){n=Kn.maxLen(t),s=[],i={};for(l in t)a=t[l],sa(a)?s.push(Kn.helpInfo(a,aa(la(l)),n,4)):i[l]=a;if(s.length>0&&console.log(s.join(`
20
+ `)),!oa(i)){for(l in i)console.log(" ".concat(ri(l,n)," ").concat(i[l]));console.log("")}console.log(e.HomePage?" ".concat(Et("\u{1F9ED}")," ").concat(R.default.makeUnderLine("More information: "+e.HomePage)," ")+`
21
+ `:"")}return[2]}})})}v.specifyServiceHelp=ya});var ni=f(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var ii=f(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var oi=f(xe=>{"use strict";var si=xe&&xe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(xe,"__esModule",{value:!0});var ba=We(),wa=si(ni()),Oa=si(ii()),Ot={en:Oa.default,zh:wa.default},Sa=function(r){var e=(0,ba.getLang)(),t=Ot[e]?Ot[e][r]:Ot.en[r];return t||r};xe.default=Sa});var Ct=f($=>{"use strict";var Ca=$&&$.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),ai=$&&$.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Ca(e,r,t)},St=$&&$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($,"__esModule",{value:!0});$.registerCommandChecker=$.i18n=$.logger=void 0;var Ra=St(mt());ai(We(),$);ai(_t(),$);var $a=mt();Object.defineProperty($,"logger",{enumerable:!0,get:function(){return St($a).default}});var Ia=oi();Object.defineProperty($,"i18n",{enumerable:!0,get:function(){return St(Ia).default}});function Aa(r){r.on("command:*",function(e){var t=r.commands.map(function(n){return n.name()});t.includes(e[0])||(Ra.default.error(" error: unknown command ".concat(e[0])),r.help())})}$.registerCommandChecker=Aa});var J=f(se=>{"use strict";var xa=se&&se.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(se,"__esModule",{value:!0});se.ServerlessError=void 0;var qa=xa(M()),Na=qa.default.Logger,ja=new Na("S-CLI-ERROR"),Da=function(){function r(e,t,n){ja.error(e+": "+t,n),process.exit(1)}return r}();se.ServerlessError=Da});var li=f(oe=>{"use strict";var La=oe&&oe.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(oe,"__esModule",{value:!0});oe.CommandError=void 0;var Ta=J(),Pa=function(r){La(e,r);function e(t,n){return r.call(this,"Error",t,n)||this}return e}(Ta.ServerlessError);oe.CommandError=Pa});var ci=f(ae=>{"use strict";var Fa=ae&&ae.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ae,"__esModule",{value:!0});ae.ConfigDeleteError=void 0;var Ha=J(),Ma=function(r){Fa(e,r);function e(t,n){return r.call(this,"Deletion failed",t,n)||this}return e}(Ha.ServerlessError);ae.ConfigDeleteError=Ma});var ui=f(le=>{"use strict";var Ga=le&&le.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(le,"__esModule",{value:!0});le.ConfigError=void 0;var Va=J(),ka=function(r){Ga(e,r);function e(t,n){return r.call(this,"Config failed",t,n)||this}return e}(Va.ServerlessError);le.ConfigError=ka});var hi=f(ce=>{"use strict";var Ua=ce&&ce.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ce,"__esModule",{value:!0});ce.ConfigGetError=void 0;var Xa=J(),Ba=function(r){Ua(e,r);function e(t,n){return r.call(this,"Get failed",t,n)||this}return e}(Xa.ServerlessError);ce.ConfigGetError=Ba});var fi=f(ue=>{"use strict";var Wa=ue&&ue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ue,"__esModule",{value:!0});ue.InitError=void 0;var za=J(),Ya=function(r){Wa(e,r);function e(t,n){return r.call(this,"Initialization failed",t,n)||this}return e}(za.ServerlessError);ue.InitError=Ya});var di=f(T=>{"use strict";var Za=T&&T.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},Ja=T&&T.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Qa=T&&T.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(T,"__esModule",{value:!0});T.HumanError=void 0;var pi=Qa(M()),Ka=We(),el=pi.default.colors,tl=function(){function r(e){var t=e.errorMessage,n=e.tips;this.errorMessage=t,console.log(`
22
+ `.concat((0,Ka.bgRed)("ERROR:"))),console.log("TypeError: ".concat(t,`
23
+ `)),n&&console.log("".concat(el.gray(n),`
24
+ `))}return r.prototype.report=function(e){return Za(this,void 0,void 0,function(){var t;return Ja(this,function(n){switch(n.label){case 0:return t=e.error,[4,pi.default.report({type:"jsError",content:"".concat(this.errorMessage,"||").concat(t.stack)})];case 1:return n.sent(),[2]}})})},r}();T.HumanError=tl});var gi=f(he=>{"use strict";var rl=he&&he.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(he,"__esModule",{value:!0});he.HumanWarning=void 0;var nl=rl(M()),mi=nl.default.colors,il=function(){function r(e){var t=e.warningMessage,n=e.tips;console.log(`
25
+ `.concat(mi.hex("#000").bgYellow("WARNING:"))),console.log("".concat(t,`
26
+ `)),n&&console.log("".concat(mi.gray(n),`
27
+ `))}return r}();he.HumanWarning=il});var vi=f(y=>{"use strict";var sl=y&&y.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},ol=y&&y.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},al=y&&y.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(y,"__esModule",{value:!0});y.HandleError=y.HumanWarning=y.HumanError=y.ServerlessError=y.InitError=y.ConfigGetError=y.ConfigError=y.ConfigDeleteError=y.CommandError=void 0;var P=Ct(),qe=al(M()),k=qe.default.colors,ll=qe.default.report,Rt=qe.default.isDebugMode,cl=qe.default.makeUnderLine,$t=qe.default.isDocker,ul=li();Object.defineProperty(y,"CommandError",{enumerable:!0,get:function(){return ul.CommandError}});var hl=ci();Object.defineProperty(y,"ConfigDeleteError",{enumerable:!0,get:function(){return hl.ConfigDeleteError}});var fl=ui();Object.defineProperty(y,"ConfigError",{enumerable:!0,get:function(){return fl.ConfigError}});var pl=hi();Object.defineProperty(y,"ConfigGetError",{enumerable:!0,get:function(){return pl.ConfigGetError}});var dl=fi();Object.defineProperty(y,"InitError",{enumerable:!0,get:function(){return dl.InitError}});var ml=J();Object.defineProperty(y,"ServerlessError",{enumerable:!0,get:function(){return ml.ServerlessError}});var gl=di();Object.defineProperty(y,"HumanError",{enumerable:!0,get:function(){return gl.HumanError}});var vl=gi();Object.defineProperty(y,"HumanWarning",{enumerable:!0,get:function(){return vl.HumanWarning}});function It(r,e){return"".concat(k.gray(r)).concat(k.gray.underline(e))}var _l=function(r){return sl(void 0,void 0,void 0,function(){var e,t,n,s,i,a,l,c;return ol(this,function(o){switch(o.label){case 0:e="Message:",t={traceId:"",catchableError:!1},n=r,s=(0,P.getConfig)("analysis"),s!=="disable"&&(t.traceId="".concat((0,P.getPid)()).concat(Date.now())),i=r.message?r.message:"";try{a=JSON.parse(i)}catch{}return a&&a.tips?(l=a.message?"Message: ".concat(a.message,`
28
+ `):"",c=a.tips?"* ".concat(cl(a.tips.replace(/\n/,`
29
29
  * `))):"",P.logger.log(`
30
30
  `.concat(k.hex("#000").bgYellow("WARNING:"),`
31
31
  ======================
@@ -36,13 +36,13 @@ You can try to solve the problem through: `.concat(ie.underline(s),`
36
36
  `)):console.log("".concat(a.message,`
37
37
  `)),[4,(0,P.aiRequest)(a.message)]):[3,3];case 2:return o.sent(),n=a,[3,5];case 3:return console.log((0,P.red)("\u2716 ".concat(e,`
38
38
  `))),console.log("".concat((0,P.bgRed)("ERROR:"),`
39
- `)),console.log(Rt()?r.stack:"".concat(i,`
40
- `)),[4,(0,P.aiRequest)(i)];case 4:o.sent(),o.label=5;case 5:return t.catchableError||(t.traceId&&console.log(k.gray("TraceId: ".concat(t.traceId))),console.log(k.gray("Environment: ".concat((0,P.getVersion)()))),console.log($t("Documents: ","https://www.serverless-devs.com")),console.log($t("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log($t("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
41
- `)),t.traceId&&console.log(k.gray("Please copy traceId: ".concat(t.traceId," and join Dingding group: 33947367 for consultation.")))),console.log(k.gray("You can run 's clean --all' to clean Serverless devs.")),t.traceId&&!t.catchableError?[4,ol({type:"jsError",content:"".concat(n.message,"||").concat(n.stack),traceId:t.traceId})]:[3,7];case 6:o.sent(),o.label=7;case 7:return process.exit(n.code||1),[2]}})})};y.HandleError=gl});var di=exports&&exports.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},mi=exports&&exports.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},At=exports&&exports.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});var gi=At(Ft()),It=At(M()),vl=At(require("path")),_l=pi(),Q=Ct(),El=It.default.chalk,yl=It.default.loadComponent,vi=It.default.lodash,bl=El.underline,wl=vi.isEmpty,Ol=vi.isString,Sl=`Directly use serverless devs to use components, develop and manage applications without yaml configuration.
39
+ `)),console.log(Rt()||$t()?r.stack:"".concat(i,`
40
+ `)),[4,(0,P.aiRequest)(i)];case 4:o.sent(),o.label=5;case 5:return t.catchableError||(t.traceId&&console.log(k.gray("TraceId: ".concat(t.traceId))),$t()||(console.log(k.gray("Environment: ".concat((0,P.getVersion)()))),console.log(It("Documents: ","https://www.serverless-devs.com")),console.log(It("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(It("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
41
+ `)),t.traceId&&console.log(k.gray("Please copy traceId: ".concat(t.traceId," and join Dingding group: 33947367 for consultation."))))),!$t()&&console.log(k.gray("You can run 's clean --all' to clean Serverless devs.")),t.traceId&&!t.catchableError?[4,ll({type:"jsError",content:"".concat(n.message,"||").concat(n.stack),traceId:t.traceId})]:[3,7];case 6:o.sent(),o.label=7;case 7:return process.exit(n.code||1),[2]}})})};y.HandleError=_l});var At=exports&&exports.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},xt=exports&&exports.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},qt=exports&&exports.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});var _i=qt(kt()),Nt=qt(M()),El=qt(require("path")),yl=vi(),Q=Ct(),bl=Nt.default.chalk,wl=Nt.default.loadComponent,jt=Nt.default.lodash,Ol=bl.underline,Sl=jt.isEmpty,Cl=jt.isString,Rl=jt.includes,$l=`Directly use serverless devs to use components, develop and manage applications without yaml configuration.
42
42
 
43
43
  Example:
44
44
  $ s cli fc-api listServices
45
45
  $ s cli fc-api listFunctions --service-name my-service
46
46
  $ s cli fc-api deploy -p "{/"function/": /"function-name/"}"
47
47
 
48
- `.concat((0,Q.emoji)("\u{1F4D6}")," Document: ").concat(bl("https://github.com/Serverless-Devs/Serverless-Devs/tree/master/docs/zh/command/cli.md"));(function(){return di(void 0,void 0,void 0,function(){function r(p){return di(this,void 0,void 0,function(){var g,fe,ze,Ye,xt,pe;return mi(this,function(Ze){switch(Ze.label){case 0:return[4,(0,Q.getCredentialWithExisted)(i)];case 1:g=Ze.sent(),g&&(g.Alias=i),fe={};try{ze=e.props||e.p,fe=ze?JSON.parse(ze):{}}catch{throw new Error("-p/--props parameter format error")}return Ye=t.slice(3).concat(e._argsObj),xt={props:fe,credentials:g||{},appName:"default",project:{component:l,access:i,projectName:"default",provider:void 0},command:p,args:Ye.join(" "),argsObj:Ye,path:{configPath:void 0}},[4,o[p](xt)];case 2:return pe=Ze.sent(),wl(pe)?[2,Q.logger.success("End of method: ".concat(p))]:(Ol(pe)?Q.logger.success(pe):Q.logger.output(pe),[2])}})})}var e,t,n,s,i,a,l,c,o,u,h;return mi(this,function(p){switch(p.label){case 0:return e=(0,Q.getProcessArgv)(),t=e._,n=e.noHelpArgv,s=e.access,i=s===void 0?"default":s,gi.default.name("s cli").usage("[component] [method] [options]").option("-a, --access <aliasName>","Specify the access alias name.").option("-p, --props <jsonString>","The json string of props").helpOption("-h, --help","Display help for command").allowUnknownOption().description(Sl).addHelpCommand(!1).parse(n),t.length===1?[2,gi.default.help()]:(a=t.slice(1),l=a[0],c=a[1],[4,yl(l)]);case 1:return o=p.sent(),t.length!==2?[3,5]:o.index?[4,r("index")]:[3,3];case 2:return[2,p.sent()];case 3:return o.__doc&&o.__doc().length>1685?(u=o.__doc(),[2,console.log(u)]):(h=vl.default.join(o.__path,"publish.yml"),[4,(0,Q.specifyServiceHelp)(h)]);case 4:p.sent(),p.label=5;case 5:return t.length>=3?[4,r(c)]:[3,7];case 6:return[2,p.sent()];case 7:return[2]}})})})().catch(function(r){throw new _l.CommandError(r.message)});
48
+ `.concat((0,Q.emoji)("\u{1F4D6}")," Document: ").concat(Ol("https://github.com/Serverless-Devs/Serverless-Devs/tree/master/docs/zh/command/cli.md"));(function(){return At(void 0,void 0,void 0,function(){function r(p){return At(this,void 0,void 0,function(){var g,fe,ze,Ye,Dt,pe;return xt(this,function(Ze){switch(Ze.label){case 0:return[4,(0,Q.getCredentialWithExisted)(i)];case 1:g=Ze.sent(),fe={};try{ze=e.props||e.p,fe=ze?JSON.parse(ze):{}}catch{throw new Error("-p/--props parameter format error")}return Ye=t.slice(3).filter(function(Lt){return!Rl(e._argsObj,Lt)}).concat(e._argsObj),Dt={props:fe,credentials:g||{},appName:"default",project:{component:l,access:i,projectName:"default",provider:void 0},command:p,args:Ye.join(" "),argsObj:Ye,path:{configPath:void 0}},[4,o[p](Dt)];case 2:return pe=Ze.sent(),Sl(pe)?[2,Q.logger.success("End of method: ".concat(p))]:(Cl(pe)?Q.logger.success(pe):Q.logger.output(pe),[2])}})})}var e,t,n,s,i,a,l,c,o,u,h;return xt(this,function(p){switch(p.label){case 0:return e=(0,Q.getProcessArgv)(),t=e._,n=e.noHelpArgv,s=e.access,i=s===void 0?"default":s,_i.default.name("s cli").usage("[component] [method] [options]").option("-a, --access <aliasName>","Specify the access alias name.").option("-p, --props <jsonString>","The json string of props").helpOption("-h, --help","Display help for command").allowUnknownOption().description($l).addHelpCommand(!1).parse(n),t.length===1?[2,_i.default.help()]:(a=t.slice(1),l=a[0],c=a[1],[4,wl(l)]);case 1:return o=p.sent(),t.length!==2?[3,5]:o.index?[4,r("index")]:[3,3];case 2:return[2,p.sent()];case 3:return o.__doc&&o.__doc().length>1685?(u=o.__doc(),[2,console.log(u)]):(h=El.default.join(o.__path,"publish.yml"),[4,(0,Q.specifyServiceHelp)(h)]);case 4:p.sent(),p.label=5;case 5:return t.length>=3?o[c]?[4,r(c)]:[3,7]:[3,8];case 6:return[2,p.sent()];case 7:throw new Error(JSON.stringify({message:"The specified command cannot be found.",tips:"Please refer to the help document of [-h/--help] command."}));case 8:return[2]}})})})().catch(function(r){return At(void 0,void 0,void 0,function(){return xt(this,function(e){switch(e.label){case 0:return[4,(0,yl.HandleError)(r)];case 1:return e.sent(),[2]}})})});