@serverless-devs/s 2.0.102-beta.2 → 2.0.102
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/clean/index.js +7 -7
- package/lib/cli/index.js +27 -27
- package/lib/component/index.js +25 -25
- package/lib/config/add/index.js +21 -21
- package/lib/config/delete/index.js +21 -21
- package/lib/config/get/index.js +25 -25
- package/lib/config/index.js +7 -7
- package/lib/error/index.js +12 -10
- package/lib/index.js +62 -62
- package/lib/init/index.js +42 -42
- package/lib/set/analysis/index.js +23 -23
- package/lib/set/index.js +6 -6
- package/lib/set/locale/index.js +23 -23
- package/lib/set/registry/index.js +23 -23
- package/lib/set/workspace/index.js +23 -23
- package/lib/special-commad/index.js +2 -2
- package/lib/update-notifier/index.js +17 -17
- package/lib/utils/common.js +2 -2
- package/lib/verify/index.js +25 -25
- package/package.json +2 -2
- package/readme.md +1 -0
package/lib/set/locale/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
"use strict";var h=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var
|
|
1
|
+
"use strict";var h=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Dt=h((X,Nt)=>{var hi=require("events").EventEmitter,ze=require("child_process").spawn,U=require("path"),Ye=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=qt(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 fi(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}},fe=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}},pe=class extends hi{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 pe(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 fe(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
|
|
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,f)=>{let m=o.exec(u);return m?m[0]:f}}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 m=Ye.realpathSync(i);a=U.dirname(m)}catch{a="."}let l=U.basename(i,U.extname(i))+"-"+e._name;e._executableFile&&(l=e._executableFile);let c=U.join(a,l);Ye.existsSync(c)?l=c:s.forEach(m=>{Ye.existsSync(`${c}${m}`)&&(l=`${c}${m}`)}),n=s.includes(U.extname(l));let o;process.platform!=="win32"?n?(t.unshift(l),t=At(process.execArgv).concat(t),o=ze(process.argv[0],t,{stdio:"inherit"})):o=ze(l,t,{stdio:"inherit"}):(t.unshift(l),t=At(process.execArgv).concat(t),o=ze(process.execPath,t,{stdio:"inherit"})),["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(m=>{process.on(m,()=>{o.killed===!1&&o.exitCode===null&&o.kill(m)})});let f=this._exitCallback;f?o.on("close",()=>{f(new fe(process.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):o.on("close",process.exit.bind(process)),o.on("error",m=>{if(m.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(m.code==="EACCES")throw new Error(`'${l}' not executable`);if(!f)process.exit(1);else{let g=new fe(1,"commander.executeSubCommandAsync","(error)");g.nestedError=m,f(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)
|
|
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
|
|
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?Ze(i[0],t):i[0])+
|
|
8
|
+
- if the default executable name is not suitable, use the executableFile option to supply a custom name`;throw new Error(g)}else if(m.code==="EACCES")throw new Error(`'${l}' not executable`);if(!f)process.exit(1);else{let g=new fe(1,"commander.executeSubCommandAsync","(error)");g.nestedError=m,f(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)$t(this,t),this._dispatchSubcommand(this._defaultCommandName,e,t);else if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this._helpAndError(),$t(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=>It(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=>It(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 Ze(c,e)+" "+Rt(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?Ze(i[0],t):i[0])+Rt(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(),f=(process.stdout.columns||80)-o-5;e.push("Arguments:"),this._args.forEach(m=>{e.push(" "+Ze(m.name,o)+" "+
|
|
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=
|
|
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(),f=(process.stdout.columns||80)-o-5;e.push("Arguments:"),this._args.forEach(m=>{e.push(" "+Ze(m.name,o)+" "+xt(c[m.name]||"",f,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=qt(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=Nt.exports=new pe;X.program=X;X.Command=pe;X.Option=qe;X.CommanderError=fe;function fi(r){return r.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function Ze(r,e){let t=Math.max(0,e-r.length);return r+Array(t+1).join(" ")}function xt(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 Ct(r,e,t){return r.match(/[\n]\s+/)||e<40?r:At(r,e,t)}function Rt(r,e){r._hasHelpOption&&e.find(n=>n===r._helpLongFlag||n===r._helpShortFlag)&&(r.outputHelp(),r._exit(0,"commander.helpDisplayed","(outputHelp)"))}function $t(r){let e=r.name+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}function xt(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 It(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 de=h((El,Dt)=>{var pi="2.0.0",di=Number.MAX_SAFE_INTEGER||9007199254740991,mi=16;Dt.exports={SEMVER_SPEC_VERSION:pi,MAX_LENGTH:256,MAX_SAFE_INTEGER:di,MAX_SAFE_COMPONENT_LENGTH:mi}});var me=h((yl,Lt)=>{var gi=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Lt.exports=gi});var B=h((G,jt)=>{var{MAX_SAFE_COMPONENT_LENGTH:Je}=de(),_i=me();G=jt.exports={};var vi=G.re=[],p=G.src=[],d=G.t={},Ei=0,v=(r,e,t)=>{let n=Ei++;_i(n,e),d[r]=n,p[n]=e,vi[n]=new RegExp(e,t?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*");v("NUMERICIDENTIFIERLOOSE","[0-9]+");v("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");v("MAINVERSION",`(${p[d.NUMERICIDENTIFIER]})\\.(${p[d.NUMERICIDENTIFIER]})\\.(${p[d.NUMERICIDENTIFIER]})`);v("MAINVERSIONLOOSE",`(${p[d.NUMERICIDENTIFIERLOOSE]})\\.(${p[d.NUMERICIDENTIFIERLOOSE]})\\.(${p[d.NUMERICIDENTIFIERLOOSE]})`);v("PRERELEASEIDENTIFIER",`(?:${p[d.NUMERICIDENTIFIER]}|${p[d.NONNUMERICIDENTIFIER]})`);v("PRERELEASEIDENTIFIERLOOSE",`(?:${p[d.NUMERICIDENTIFIERLOOSE]}|${p[d.NONNUMERICIDENTIFIER]})`);v("PRERELEASE",`(?:-(${p[d.PRERELEASEIDENTIFIER]}(?:\\.${p[d.PRERELEASEIDENTIFIER]})*))`);v("PRERELEASELOOSE",`(?:-?(${p[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[d.PRERELEASEIDENTIFIERLOOSE]})*))`);v("BUILDIDENTIFIER","[0-9A-Za-z-]+");v("BUILD",`(?:\\+(${p[d.BUILDIDENTIFIER]}(?:\\.${p[d.BUILDIDENTIFIER]})*))`);v("FULLPLAIN",`v?${p[d.MAINVERSION]}${p[d.PRERELEASE]}?${p[d.BUILD]}?`);v("FULL",`^${p[d.FULLPLAIN]}$`);v("LOOSEPLAIN",`[v=\\s]*${p[d.MAINVERSIONLOOSE]}${p[d.PRERELEASELOOSE]}?${p[d.BUILD]}?`);v("LOOSE",`^${p[d.LOOSEPLAIN]}$`);v("GTLT","((?:<|>)?=?)");v("XRANGEIDENTIFIERLOOSE",`${p[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);v("XRANGEIDENTIFIER",`${p[d.NUMERICIDENTIFIER]}|x|X|\\*`);v("XRANGEPLAIN",`[v=\\s]*(${p[d.XRANGEIDENTIFIER]})(?:\\.(${p[d.XRANGEIDENTIFIER]})(?:\\.(${p[d.XRANGEIDENTIFIER]})(?:${p[d.PRERELEASE]})?${p[d.BUILD]}?)?)?`);v("XRANGEPLAINLOOSE",`[v=\\s]*(${p[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[d.XRANGEIDENTIFIERLOOSE]})(?:${p[d.PRERELEASELOOSE]})?${p[d.BUILD]}?)?)?`);v("XRANGE",`^${p[d.GTLT]}\\s*${p[d.XRANGEPLAIN]}$`);v("XRANGELOOSE",`^${p[d.GTLT]}\\s*${p[d.XRANGEPLAINLOOSE]}$`);v("COERCE",`(^|[^\\d])(\\d{1,${Je}})(?:\\.(\\d{1,${Je}}))?(?:\\.(\\d{1,${Je}}))?(?:$|[^\\d])`);v("COERCERTL",p[d.COERCE],!0);v("LONETILDE","(?:~>?)");v("TILDETRIM",`(\\s*)${p[d.LONETILDE]}\\s+`,!0);G.tildeTrimReplace="$1~";v("TILDE",`^${p[d.LONETILDE]}${p[d.XRANGEPLAIN]}$`);v("TILDELOOSE",`^${p[d.LONETILDE]}${p[d.XRANGEPLAINLOOSE]}$`);v("LONECARET","(?:\\^)");v("CARETTRIM",`(\\s*)${p[d.LONECARET]}\\s+`,!0);G.caretTrimReplace="$1^";v("CARET",`^${p[d.LONECARET]}${p[d.XRANGEPLAIN]}$`);v("CARETLOOSE",`^${p[d.LONECARET]}${p[d.XRANGEPLAINLOOSE]}$`);v("COMPARATORLOOSE",`^${p[d.GTLT]}\\s*(${p[d.LOOSEPLAIN]})$|^$`);v("COMPARATOR",`^${p[d.GTLT]}\\s*(${p[d.FULLPLAIN]})$|^$`);v("COMPARATORTRIM",`(\\s*)${p[d.GTLT]}\\s*(${p[d.LOOSEPLAIN]}|${p[d.XRANGEPLAIN]})`,!0);G.comparatorTrimReplace="$1$2$3";v("HYPHENRANGE",`^\\s*(${p[d.XRANGEPLAIN]})\\s+-\\s+(${p[d.XRANGEPLAIN]})\\s*$`);v("HYPHENRANGELOOSE",`^\\s*(${p[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[d.XRANGEPLAINLOOSE]})\\s*$`);v("STAR","(<|>)?=?\\s*\\*");v("GTE0","^\\s*>=\\s*0.0.0\\s*$");v("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var ge=h((bl,Tt)=>{var yi=["includePrerelease","loose","rtl"],bi=r=>r?typeof r!="object"?{loose:!0}:yi.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};Tt.exports=bi});var qe=h((wl,Ht)=>{var Pt=/^[0-9]+$/,Ft=(r,e)=>{let t=Pt.test(r),n=Pt.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},wi=(r,e)=>Ft(e,r);Ht.exports={compareIdentifiers:Ft,rcompareIdentifiers:wi}});var S=h((Ol,kt)=>{var Ne=me(),{MAX_LENGTH:Mt,MAX_SAFE_INTEGER:De}=de(),{re:Gt,t:Vt}=B(),Oi=ge(),{compareIdentifiers:_e}=qe(),q=class{constructor(e,t){if(t=Oi(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>Mt)throw new TypeError(`version is longer than ${Mt} characters`);Ne("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Gt[Vt.LOOSE]:Gt[Vt.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(Ne("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)),_e(this.major,e.major)||_e(this.minor,e.minor)||_e(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(Ne("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 _e(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(Ne("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 _e(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}};kt.exports=q});var W=h((Sl,Wt)=>{var{MAX_LENGTH:Si}=de(),{re:Ut,t:Xt}=B(),Bt=S(),Ci=ge(),Ri=(r,e)=>{if(e=Ci(e),r instanceof Bt)return r;if(typeof r!="string"||r.length>Si||!(e.loose?Ut[Xt.LOOSE]:Ut[Xt.FULL]).test(r))return null;try{return new Bt(r,e)}catch{return null}};Wt.exports=Ri});var Yt=h((Cl,zt)=>{var $i=W(),Ii=(r,e)=>{let t=$i(r,e);return t?t.version:null};zt.exports=Ii});var Jt=h((Rl,Zt)=>{var Ai=W(),xi=(r,e)=>{let t=Ai(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};Zt.exports=xi});var Kt=h(($l,Qt)=>{var qi=S(),Ni=(r,e,t,n)=>{typeof t=="string"&&(n=t,t=void 0);try{return new qi(r,t).inc(e,n).version}catch{return null}};Qt.exports=Ni});var N=h((Il,tr)=>{var er=S(),Di=(r,e,t)=>new er(r,t).compare(new er(e,t));tr.exports=Di});var Le=h((Al,rr)=>{var Li=N(),ji=(r,e,t)=>Li(r,e,t)===0;rr.exports=ji});var sr=h((xl,ir)=>{var nr=W(),Ti=Le(),Pi=(r,e)=>{if(Ti(r,e))return null;{let t=nr(r),n=nr(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}};ir.exports=Pi});var ar=h((ql,or)=>{var Fi=S(),Hi=(r,e)=>new Fi(r,e).major;or.exports=Hi});var cr=h((Nl,lr)=>{var Mi=S(),Gi=(r,e)=>new Mi(r,e).minor;lr.exports=Gi});var hr=h((Dl,ur)=>{var Vi=S(),ki=(r,e)=>new Vi(r,e).patch;ur.exports=ki});var pr=h((Ll,fr)=>{var Ui=W(),Xi=(r,e)=>{let t=Ui(r,e);return t&&t.prerelease.length?t.prerelease:null};fr.exports=Xi});var mr=h((jl,dr)=>{var Bi=N(),Wi=(r,e,t)=>Bi(e,r,t);dr.exports=Wi});var _r=h((Tl,gr)=>{var zi=N(),Yi=(r,e)=>zi(r,e,!0);gr.exports=Yi});var je=h((Pl,Er)=>{var vr=S(),Zi=(r,e,t)=>{let n=new vr(r,t),s=new vr(e,t);return n.compare(s)||n.compareBuild(s)};Er.exports=Zi});var br=h((Fl,yr)=>{var Ji=je(),Qi=(r,e)=>r.sort((t,n)=>Ji(t,n,e));yr.exports=Qi});var Or=h((Hl,wr)=>{var Ki=je(),es=(r,e)=>r.sort((t,n)=>Ki(n,t,e));wr.exports=es});var ve=h((Ml,Sr)=>{var ts=N(),rs=(r,e,t)=>ts(r,e,t)>0;Sr.exports=rs});var Te=h((Gl,Cr)=>{var ns=N(),is=(r,e,t)=>ns(r,e,t)<0;Cr.exports=is});var Qe=h((Vl,Rr)=>{var ss=N(),os=(r,e,t)=>ss(r,e,t)!==0;Rr.exports=os});var Pe=h((kl,$r)=>{var as=N(),ls=(r,e,t)=>as(r,e,t)>=0;$r.exports=ls});var Fe=h((Ul,Ir)=>{var cs=N(),us=(r,e,t)=>cs(r,e,t)<=0;Ir.exports=us});var Ke=h((Xl,Ar)=>{var hs=Le(),fs=Qe(),ps=ve(),ds=Pe(),ms=Te(),gs=Fe(),_s=(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 hs(r,t,n);case"!=":return fs(r,t,n);case">":return ps(r,t,n);case">=":return ds(r,t,n);case"<":return ms(r,t,n);case"<=":return gs(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Ar.exports=_s});var qr=h((Bl,xr)=>{var vs=S(),Es=W(),{re:He,t:Me}=B(),ys=(r,e)=>{if(r instanceof vs)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(He[Me.COERCE]);else{let n;for(;(n=He[Me.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),He[Me.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;He[Me.COERCERTL].lastIndex=-1}return t===null?null:Es(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};xr.exports=ys});var Dr=h((Wl,Nr)=>{"use strict";Nr.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var jr=h((zl,Lr)=>{"use strict";Lr.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++)ws(this,arguments[r]);return this.length};E.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)Os(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=bs(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 bs(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 ws(r,e){r.tail=new z(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function Os(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{Dr()(E)}catch{}});var Vr=h((Yl,Gr)=>{"use strict";var Ss=jr(),Y=Symbol("max"),H=Symbol("length"),Q=Symbol("lengthCalculator"),ye=Symbol("allowStale"),Z=Symbol("maxAge"),F=Symbol("dispose"),Tr=Symbol("noDisposeOnSet"),w=Symbol("lruList"),L=Symbol("cache"),Fr=Symbol("updateAgeOnGet"),et=()=>1,Hr=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||et;if(this[Q]=typeof n!="function"?et:n,this[ye]=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[Tr]=e.noDisposeOnSet||!1,this[Fr]=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,Ee(this)}get max(){return this[Y]}set allowStale(e){this[ye]=!!e}get allowStale(){return this[ye]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Z]=e,Ee(this)}get maxAge(){return this[Z]}set lengthCalculator(e){typeof e!="function"&&(e=et),e!==this[Q]&&(this[Q]=e,this[H]=0,this[w].forEach(t=>{t.length=this[Q](t.value,t.key),this[H]+=t.length})),Ee(this)}get lengthCalculator(){return this[Q]}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;Pr(this,e,n,t),n=s}}forEach(e,t){t=t||this;for(let n=this[w].head;n!==null;){let s=n.next;Pr(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[L]=new Map,this[w]=new Ss,this[H]=0}dump(){return this[w].map(e=>Ge(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[Q](t,e);if(this[L].has(e)){if(i>this[Y])return K(this,this[L].get(e)),!1;let c=this[L].get(e).value;return this[F]&&(this[Tr]||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),Ee(this),!0}let a=new Mr(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[L].set(e,this[w].head),Ee(this),!0)}has(e){if(!this[L].has(e))return!1;let t=this[L].get(e).value;return!Ge(this,t)}get(e){return tt(this,e,!0)}peek(e){return tt(this,e,!1)}pop(){let e=this[w].tail;return e?(K(this,e),e.value):null}del(e){K(this,this[L].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[L].forEach((e,t)=>tt(this,t,!1))}},tt=(r,e,t)=>{let n=r[L].get(e);if(n){let s=n.value;if(Ge(r,s)){if(K(r,n),!r[ye])return}else t&&(r[Fr]&&(n.value.now=Date.now()),r[w].unshiftNode(n));return s.value}},Ge=(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]},Ee=r=>{if(r[H]>r[Y])for(let e=r[w].tail;r[H]>r[Y]&&e!==null;){let t=e.prev;K(r,e),e=t}},K=(r,e)=>{if(e){let t=e.value;r[F]&&r[F](t.key,t.value),r[H]-=t.length,r[L].delete(t.key),r[w].removeNode(e)}},Mr=class{constructor(e,t,n,s,i){this.key=e,this.value=t,this.length=n,this.now=s,this.maxAge=i||0}},Pr=(r,e,t,n)=>{let s=t.value;Ge(r,s)&&(K(r,t),r[ye]||(s=void 0)),s&&e.call(n,s.value,s.key,r)};Gr.exports=Hr});var D=h((Zl,Br)=>{var ee=class{constructor(e,t){if(t=Rs(t),e instanceof ee)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ee(e.raw,t);if(e instanceof rt)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=>!Ur(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&&qs(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=kr.get(n);if(s)return s;let i=this.options.loose,a=i?C[O.HYPHENRANGELOOSE]:C[O.HYPHENRANGE];e=e.replace(a,Gs(this.options.includePrerelease)),b("hyphen replace",e),e=e.replace(C[O.COMPARATORTRIM],Is),b("comparator trim",e,C[O.COMPARATORTRIM]),e=e.replace(C[O.TILDETRIM],As),e=e.replace(C[O.CARETTRIM],xs),e=e.split(/\s+/).join(" ");let l=i?C[O.COMPARATORLOOSE]:C[O.COMPARATOR],c=e.split(" ").map(m=>Ns(m,this.options)).join(" ").split(/\s+/).map(m=>Ms(m,this.options)).filter(this.options.loose?m=>!!m.match(l):()=>!0).map(m=>new rt(m,this.options)),o=c.length,u=new Map;for(let m of c){if(Ur(m))return[m];u.set(m.value,m)}u.size>1&&u.has("")&&u.delete("");let f=[...u.values()];return kr.set(n,f),f}intersects(e,t){if(!(e instanceof ee))throw new TypeError("a Range is required");return this.set.some(n=>Xr(n,t)&&e.set.some(s=>Xr(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 $s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Vs(this.set[t],e,this.options))return!0;return!1}};Br.exports=ee;var Cs=Vr(),kr=new Cs({max:1e3}),Rs=ge(),rt=be(),b=me(),$s=S(),{re:C,t:O,comparatorTrimReplace:Is,tildeTrimReplace:As,caretTrimReplace:xs}=B(),Ur=r=>r.value==="<0.0.0-0",qs=r=>r.value==="",Xr=(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},Ns=(r,e)=>(b("comp",r,e),r=js(r,e),b("caret",r),r=Ds(r,e),b("tildes",r),r=Ps(r,e),b("xrange",r),r=Hs(r,e),b("stars",r),r),I=r=>!r||r.toLowerCase()==="x"||r==="*",Ds=(r,e)=>r.trim().split(/\s+/).map(t=>Ls(t,e)).join(" "),Ls=(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})},js=(r,e)=>r.trim().split(/\s+/).map(t=>Ts(t,e)).join(" "),Ts=(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})},Ps=(r,e)=>(b("replaceXRanges",r,e),r.split(/\s+/).map(t=>Fs(t,e)).join(" ")),Fs=(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),f=u||I(l),m=f;return s==="="&&m&&(s=""),c=e.includePrerelease?"-0":"",o?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(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`:f&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),b("xRange return",n),n})},Hs=(r,e)=>(b("replaceStars",r,e),r.trim().replace(C[O.STAR],"")),Ms=(r,e)=>(b("replaceGTE0",r,e),r.trim().replace(C[e.includePrerelease?O.GTE0PRE:O.GTE0],"")),Gs=r=>(e,t,n,s,i,a,l,c,o,u,f,m,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(f)?c=`<${o}.${+u+1}.0-0`:m?c=`<=${o}.${u}.${f}-${m}`:r?c=`<${o}.${u}.${+f+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),Vs=(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!==rt.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 be=h((Jl,Jr)=>{var we=Symbol("SemVer ANY"),Oe=class{static get ANY(){return we}constructor(e,t){if(t=ks(t),e instanceof Oe){if(e.loose===!!t.loose)return e;e=e.value}it("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===we?this.value="":this.value=this.operator+this.semver.version,it("comp",this)}parse(e){let t=this.options.loose?Wr[zr.COMPARATORLOOSE]:Wr[zr.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 Yr(n[2],this.options.loose):this.semver=we}toString(){return this.value}test(e){if(it("Comparator.test",e,this.options.loose),this.semver===we||e===we)return!0;if(typeof e=="string")try{e=new Yr(e,this.options)}catch{return!1}return nt(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Oe))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Zr(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new Zr(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=nt(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=nt(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||s||i&&a||l||c}};Jr.exports=Oe;var ks=ge(),{re:Wr,t:zr}=B(),nt=Ke(),it=me(),Yr=S(),Zr=D()});var Se=h((Ql,Qr)=>{var Us=D(),Xs=(r,e,t)=>{try{e=new Us(e,t)}catch{return!1}return e.test(r)};Qr.exports=Xs});var en=h((Kl,Kr)=>{var Bs=D(),Ws=(r,e)=>new Bs(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));Kr.exports=Ws});var rn=h((ec,tn)=>{var zs=S(),Ys=D(),Zs=(r,e,t)=>{let n=null,s=null,i=null;try{i=new Ys(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new zs(n,t))}),n};tn.exports=Zs});var sn=h((tc,nn)=>{var Js=S(),Qs=D(),Ks=(r,e,t)=>{let n=null,s=null,i=null;try{i=new Qs(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new Js(n,t))}),n};nn.exports=Ks});var ln=h((rc,an)=>{var st=S(),eo=D(),on=ve(),to=(r,e)=>{r=new eo(r,e);let t=new st("0.0.0");if(r.test(t)||(t=new st("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 st(a.semver.version);switch(a.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!i||on(l,i))&&(i=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!t||on(t,i))&&(t=i)}return t&&r.test(t)?t:null};an.exports=to});var un=h((nc,cn)=>{var ro=D(),no=(r,e)=>{try{return new ro(r,e).range||"*"}catch{return null}};cn.exports=no});var Ve=h((ic,dn)=>{var io=S(),pn=be(),{ANY:so}=pn,oo=D(),ao=Se(),hn=ve(),fn=Te(),lo=Fe(),co=Pe(),uo=(r,e,t,n)=>{r=new io(r,n),e=new oo(e,n);let s,i,a,l,c;switch(t){case">":s=hn,i=lo,a=fn,l=">",c=">=";break;case"<":s=fn,i=co,a=hn,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ao(r,e,n))return!1;for(let o=0;o<e.set.length;++o){let u=e.set[o],f=null,m=null;if(u.forEach(g=>{g.semver===so&&(g=new pn(">=0.0.0")),f=f||g,m=m||g,s(g.semver,f.semver,n)?f=g:a(g.semver,m.semver,n)&&(m=g)}),f.operator===l||f.operator===c||(!m.operator||m.operator===l)&&i(r,m.semver))return!1;if(m.operator===c&&a(r,m.semver))return!1}return!0};dn.exports=uo});var gn=h((sc,mn)=>{var ho=Ve(),fo=(r,e,t)=>ho(r,e,">",t);mn.exports=fo});var vn=h((oc,_n)=>{var po=Ve(),mo=(r,e,t)=>po(r,e,"<",t);_n.exports=mo});var bn=h((ac,yn)=>{var En=D(),go=(r,e,t)=>(r=new En(r,t),e=new En(e,t),r.intersects(e));yn.exports=go});var On=h((lc,wn)=>{var _o=Se(),vo=N();wn.exports=(r,e,t)=>{let n=[],s=null,i=null,a=r.sort((u,f)=>vo(u,f,t));for(let u of a)_o(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,f]of n)u===f?l.push(u):!f&&u===a[0]?l.push("*"):f?u===a[0]?l.push(`<=${f}`):l.push(`${u} - ${f}`):l.push(`>=${u}`);let c=l.join(" || "),o=typeof e.raw=="string"?e.raw:String(e);return c.length<o.length?c:e}});var In=h((cc,$n)=>{var Sn=D(),ke=be(),{ANY:ot}=ke,Ce=Se(),at=N(),Eo=(r,e,t={})=>{if(r===e)return!0;r=new Sn(r,t),e=new Sn(e,t);let n=!1;e:for(let s of r.set){for(let i of e.set){let a=yo(s,i,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},yo=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===ot){if(e.length===1&&e[0].semver===ot)return!0;t.includePrerelease?r=[new ke(">=0.0.0-0")]:r=[new ke(">=0.0.0")]}if(e.length===1&&e[0].semver===ot){if(t.includePrerelease)return!0;e=[new ke(">=0.0.0")]}let n=new Set,s,i;for(let g of r)g.operator===">"||g.operator===">="?s=Cn(s,g,t):g.operator==="<"||g.operator==="<="?i=Rn(i,g,t):n.add(g.semver);if(n.size>1)return null;let a;if(s&&i){if(a=at(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&&!Ce(g,String(s),t)||i&&!Ce(g,String(i),t))return null;for(let ui of e)if(!Ce(g,String(ui),t))return!1;return!0}let l,c,o,u,f=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,m=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;f&&f.prerelease.length===1&&i.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let g of e){if(u=u||g.operator===">"||g.operator===">=",o=o||g.operator==="<"||g.operator==="<=",s){if(m&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===m.major&&g.semver.minor===m.minor&&g.semver.patch===m.patch&&(m=!1),g.operator===">"||g.operator===">="){if(l=Cn(s,g,t),l===g&&l!==s)return!1}else if(s.operator===">="&&!Ce(s.semver,String(g),t))return!1}if(i){if(f&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===f.major&&g.semver.minor===f.minor&&g.semver.patch===f.patch&&(f=!1),g.operator==="<"||g.operator==="<="){if(c=Rn(i,g,t),c===g&&c!==i)return!1}else if(i.operator==="<="&&!Ce(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||m||f)},Cn=(r,e,t)=>{if(!r)return e;let n=at(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},Rn=(r,e,t)=>{if(!r)return e;let n=at(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};$n.exports=Eo});var xn=h((uc,An)=>{var lt=B();An.exports={re:lt.re,src:lt.src,tokens:lt.t,SEMVER_SPEC_VERSION:de().SEMVER_SPEC_VERSION,SemVer:S(),compareIdentifiers:qe().compareIdentifiers,rcompareIdentifiers:qe().rcompareIdentifiers,parse:W(),valid:Yt(),clean:Jt(),inc:Kt(),diff:sr(),major:ar(),minor:cr(),patch:hr(),prerelease:pr(),compare:N(),rcompare:mr(),compareLoose:_r(),compareBuild:je(),sort:br(),rsort:Or(),gt:ve(),lt:Te(),eq:Le(),neq:Qe(),gte:Pe(),lte:Fe(),cmp:Ke(),coerce:qr(),Comparator:be(),Range:D(),satisfies:Se(),toComparators:en(),maxSatisfying:rn(),minSatisfying:sn(),minVersion:ln(),validRange:un(),outside:Ve(),gtr:gn(),ltr:vn(),intersects:bn(),simplifyRange:On(),subset:In()}});var M=h(x=>{"use strict";var bo=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]}),wo=x&&x.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Oo=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)&&bo(e,r,t);return wo(e,r),e},qn=x&&x.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(x,"__esModule",{value:!0});x.getCoreVersion=void 0;var Nn=qn(require("path")),Dn=qn(require("fs")),ct=Oo(require("@serverless-devs/core")),So=xn(),Ln=Nn.default.join(ct.getRootHome(),"cache","core"),ut=Nn.default.join(Ln,"package.json");function Co(){if(Dn.default.existsSync(ut)){var r=require("@serverless-devs/core/package.json").version,e=jn();return So.gt(e,r)?require(Ln):ct}return ct}function jn(){return Dn.default.existsSync(ut)?require(ut).version:void 0}x.getCoreVersion=jn;x.default=Co()});var ft=h(Re=>{"use strict";var Ro=Re&&Re.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Re,"__esModule",{value:!0});var $o=Ro(M()),Io=$o.default.Logger,ht=new Io("S-CLI");ht.success=function(r){return ht.log(r,"green")};Re.default=ht});var Xe=h(A=>{"use strict";var Ao=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(f){a(f)}}function c(u){try{o(n.throw(u))}catch(f){a(f)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},xo=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}}},Tn=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 Pn=Tn(require("path")),dt=Tn(M()),j=dt.default.fse,Ue=dt.default.jsyaml,pt=dt.default.getRootHome;function qo(r){var e=Hn();j.writeFileSync(e,Ue.dump(r))}function Fn(){var r=Hn();if(!j.existsSync(r))return{};try{var e=Ue.load(j.readFileSync(r,"utf8"))||{};return e}catch(t){throw t}}function Hn(){var r=Pn.default.join(pt(),"set-config.yml");return j.existsSync(r)||j.createFileSync(r),r}function No(r,e){var t=Fn();t[r]=e,qo(t)}A.setConfig=No;function Do(r,e){var t=Fn();return t[r]||e}A.getConfig=Do;function Lo(r){return Ao(this,void 0,void 0,function(){var e,t,n,s,i,a,l;return xo(this,function(c){switch(c.label){case 0:if(e=r.filePath||"set-config.yml",t=Pn.default.join(pt(),e),n=j.existsSync(t),s={},n)return[3,5];i=pt(),c.label=1;case 1:return c.trys.push([1,2,,4]),j.statSync(i),[3,4];case 2:return a=c.sent(),[4,j.mkdirSync(i)];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:try{s=Ue.load(j.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,j.writeFileSync(t,Ue.dump(s))]);case 7:return c.sent(),[2,s]}})})}A.handlerProfileFile=Lo});var Mn=h((dc,jo)=>{jo.exports={name:"@serverless-devs/s",version:"2.0.102-beta.2",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 Ie=h(_=>{"use strict";var To=_&&_.__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]}),Po=_&&_.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Fo=_&&_.__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)&&To(e,r,t);return Po(e,r),e},te=_&&_.__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(f){a(f)}}function c(u){try{o(n.throw(u))}catch(f){a(f)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},re=_&&_.__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}}},gt=_&&_.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_,"__esModule",{value:!0});_.specifyServiceHelp=_.getTempCommandStr=_.emoji=_.mark=_.replaceTemplate=_.replaceFun=_.getLang=_.printn=_.getFolderSize=_.getVersion=_.getPid=_.aiRequest=_.getCredentialWithAll=_.getCredentialWithExisted=_.getProcessArgv=_.bgRed=_.yellow=_.red=void 0;var Ho=gt(require("path")),$e=gt(require("fs")),Mo=gt(require("os")),R=Fo(M()),Go=Xe(),Gn=Mn(),ne=R.default.colors,Vo=R.default.got,ko=R.default.getMAC,Uo=R.default.isDocker,Xo=R.default.isCiCdEnv,V=R.default.lodash,Vn=R.default.publishHelp,Bo=V.get,Wo=V.trim,zo=V.assign,Yo=V.filter,kn=V.includes,Un=V.omit,Zo=V.isPlainObject,Jo=V.isEmpty,Qo=ne.underline,Ko=ne.bold;_.red=ne.hex("#fd5750");_.yellow=ne.hex("#F3F99D");_.bgRed=ne.hex("#000").bgHex("#fd5750");var ea=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),zo({},t,{noHelpArgv:process.argv.slice(0,2).concat(Yo(t._argsObj,function(n){return!kn(["-h","--help"],n)}))})}catch{return{}}};_.getProcessArgv=ea;var ta=function(r){return te(void 0,void 0,void 0,function(){var e,t;return re(this,function(n){switch(n.label){case 0:return[4,R.default.getCredentialAliasList()];case 1:return e=n.sent(),kn(e,r)?[4,R.default.getCredential(r)]:[3,3];case 2:return t=n.sent(),[2,Un(t,"Alias")];case 3:return[2]}})})};_.getCredentialWithExisted=ta;var ra=function(){return te(void 0,void 0,void 0,function(){var r,e,t,n,s,i;return re(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]=Un(i,"Alias"),a.label=4;case 4:return t++,[3,2];case 5:return[2,e];case 6:return[2]}})})};_.getCredentialWithAll=ra;var na=function(r,e){return e===void 0&&(e="unknow"),te(void 0,void 0,void 0,function(){var t,n,s,i;return re(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t=(0,Go.getConfig)("analysis"),t!=="enable"?[2]:Uo()||Xo()?[2]:[4,Vo("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=Bo(n.body,"shorturl"),s&&console.log(`AI Tips:
|
|
15
|
+
`)}function Rt(r,e,t){return r.match(/[\n]\s+/)||e<40?r:xt(r,e,t)}function $t(r,e){r._hasHelpOption&&e.find(n=>n===r._helpLongFlag||n===r._helpShortFlag)&&(r.outputHelp(),r._exit(0,"commander.helpDisplayed","(outputHelp)"))}function It(r){let e=r.name+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}function qt(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 At(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 de=h((yl,Lt)=>{var pi="2.0.0",di=Number.MAX_SAFE_INTEGER||9007199254740991,mi=16;Lt.exports={SEMVER_SPEC_VERSION:pi,MAX_LENGTH:256,MAX_SAFE_INTEGER:di,MAX_SAFE_COMPONENT_LENGTH:mi}});var me=h((bl,jt)=>{var gi=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};jt.exports=gi});var B=h((G,Tt)=>{var{MAX_SAFE_COMPONENT_LENGTH:Je}=de(),_i=me();G=Tt.exports={};var vi=G.re=[],p=G.src=[],d=G.t={},Ei=0,v=(r,e,t)=>{let n=Ei++;_i(n,e),d[r]=n,p[n]=e,vi[n]=new RegExp(e,t?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*");v("NUMERICIDENTIFIERLOOSE","[0-9]+");v("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");v("MAINVERSION",`(${p[d.NUMERICIDENTIFIER]})\\.(${p[d.NUMERICIDENTIFIER]})\\.(${p[d.NUMERICIDENTIFIER]})`);v("MAINVERSIONLOOSE",`(${p[d.NUMERICIDENTIFIERLOOSE]})\\.(${p[d.NUMERICIDENTIFIERLOOSE]})\\.(${p[d.NUMERICIDENTIFIERLOOSE]})`);v("PRERELEASEIDENTIFIER",`(?:${p[d.NUMERICIDENTIFIER]}|${p[d.NONNUMERICIDENTIFIER]})`);v("PRERELEASEIDENTIFIERLOOSE",`(?:${p[d.NUMERICIDENTIFIERLOOSE]}|${p[d.NONNUMERICIDENTIFIER]})`);v("PRERELEASE",`(?:-(${p[d.PRERELEASEIDENTIFIER]}(?:\\.${p[d.PRERELEASEIDENTIFIER]})*))`);v("PRERELEASELOOSE",`(?:-?(${p[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[d.PRERELEASEIDENTIFIERLOOSE]})*))`);v("BUILDIDENTIFIER","[0-9A-Za-z-]+");v("BUILD",`(?:\\+(${p[d.BUILDIDENTIFIER]}(?:\\.${p[d.BUILDIDENTIFIER]})*))`);v("FULLPLAIN",`v?${p[d.MAINVERSION]}${p[d.PRERELEASE]}?${p[d.BUILD]}?`);v("FULL",`^${p[d.FULLPLAIN]}$`);v("LOOSEPLAIN",`[v=\\s]*${p[d.MAINVERSIONLOOSE]}${p[d.PRERELEASELOOSE]}?${p[d.BUILD]}?`);v("LOOSE",`^${p[d.LOOSEPLAIN]}$`);v("GTLT","((?:<|>)?=?)");v("XRANGEIDENTIFIERLOOSE",`${p[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);v("XRANGEIDENTIFIER",`${p[d.NUMERICIDENTIFIER]}|x|X|\\*`);v("XRANGEPLAIN",`[v=\\s]*(${p[d.XRANGEIDENTIFIER]})(?:\\.(${p[d.XRANGEIDENTIFIER]})(?:\\.(${p[d.XRANGEIDENTIFIER]})(?:${p[d.PRERELEASE]})?${p[d.BUILD]}?)?)?`);v("XRANGEPLAINLOOSE",`[v=\\s]*(${p[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[d.XRANGEIDENTIFIERLOOSE]})(?:${p[d.PRERELEASELOOSE]})?${p[d.BUILD]}?)?)?`);v("XRANGE",`^${p[d.GTLT]}\\s*${p[d.XRANGEPLAIN]}$`);v("XRANGELOOSE",`^${p[d.GTLT]}\\s*${p[d.XRANGEPLAINLOOSE]}$`);v("COERCE",`(^|[^\\d])(\\d{1,${Je}})(?:\\.(\\d{1,${Je}}))?(?:\\.(\\d{1,${Je}}))?(?:$|[^\\d])`);v("COERCERTL",p[d.COERCE],!0);v("LONETILDE","(?:~>?)");v("TILDETRIM",`(\\s*)${p[d.LONETILDE]}\\s+`,!0);G.tildeTrimReplace="$1~";v("TILDE",`^${p[d.LONETILDE]}${p[d.XRANGEPLAIN]}$`);v("TILDELOOSE",`^${p[d.LONETILDE]}${p[d.XRANGEPLAINLOOSE]}$`);v("LONECARET","(?:\\^)");v("CARETTRIM",`(\\s*)${p[d.LONECARET]}\\s+`,!0);G.caretTrimReplace="$1^";v("CARET",`^${p[d.LONECARET]}${p[d.XRANGEPLAIN]}$`);v("CARETLOOSE",`^${p[d.LONECARET]}${p[d.XRANGEPLAINLOOSE]}$`);v("COMPARATORLOOSE",`^${p[d.GTLT]}\\s*(${p[d.LOOSEPLAIN]})$|^$`);v("COMPARATOR",`^${p[d.GTLT]}\\s*(${p[d.FULLPLAIN]})$|^$`);v("COMPARATORTRIM",`(\\s*)${p[d.GTLT]}\\s*(${p[d.LOOSEPLAIN]}|${p[d.XRANGEPLAIN]})`,!0);G.comparatorTrimReplace="$1$2$3";v("HYPHENRANGE",`^\\s*(${p[d.XRANGEPLAIN]})\\s+-\\s+(${p[d.XRANGEPLAIN]})\\s*$`);v("HYPHENRANGELOOSE",`^\\s*(${p[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[d.XRANGEPLAINLOOSE]})\\s*$`);v("STAR","(<|>)?=?\\s*\\*");v("GTE0","^\\s*>=\\s*0.0.0\\s*$");v("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var ge=h((wl,Pt)=>{var yi=["includePrerelease","loose","rtl"],bi=r=>r?typeof r!="object"?{loose:!0}:yi.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};Pt.exports=bi});var Ne=h((Ol,Mt)=>{var Ft=/^[0-9]+$/,Ht=(r,e)=>{let t=Ft.test(r),n=Ft.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},wi=(r,e)=>Ht(e,r);Mt.exports={compareIdentifiers:Ht,rcompareIdentifiers:wi}});var S=h((Sl,Ut)=>{var De=me(),{MAX_LENGTH:Gt,MAX_SAFE_INTEGER:Le}=de(),{re:Vt,t:kt}=B(),Oi=ge(),{compareIdentifiers:_e}=Ne(),q=class{constructor(e,t){if(t=Oi(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>Gt)throw new TypeError(`version is longer than ${Gt} characters`);De("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Vt[kt.LOOSE]:Vt[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)),_e(this.major,e.major)||_e(this.minor,e.minor)||_e(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 _e(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 _e(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}};Ut.exports=q});var W=h((Cl,zt)=>{var{MAX_LENGTH:Si}=de(),{re:Xt,t:Bt}=B(),Wt=S(),Ci=ge(),Ri=(r,e)=>{if(e=Ci(e),r instanceof Wt)return r;if(typeof r!="string"||r.length>Si||!(e.loose?Xt[Bt.LOOSE]:Xt[Bt.FULL]).test(r))return null;try{return new Wt(r,e)}catch{return null}};zt.exports=Ri});var Zt=h((Rl,Yt)=>{var $i=W(),Ii=(r,e)=>{let t=$i(r,e);return t?t.version:null};Yt.exports=Ii});var Qt=h(($l,Jt)=>{var Ai=W(),xi=(r,e)=>{let t=Ai(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};Jt.exports=xi});var er=h((Il,Kt)=>{var qi=S(),Ni=(r,e,t,n)=>{typeof t=="string"&&(n=t,t=void 0);try{return new qi(r,t).inc(e,n).version}catch{return null}};Kt.exports=Ni});var N=h((Al,rr)=>{var tr=S(),Di=(r,e,t)=>new tr(r,t).compare(new tr(e,t));rr.exports=Di});var je=h((xl,nr)=>{var Li=N(),ji=(r,e,t)=>Li(r,e,t)===0;nr.exports=ji});var or=h((ql,sr)=>{var ir=W(),Ti=je(),Pi=(r,e)=>{if(Ti(r,e))return null;{let t=ir(r),n=ir(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}};sr.exports=Pi});var lr=h((Nl,ar)=>{var Fi=S(),Hi=(r,e)=>new Fi(r,e).major;ar.exports=Hi});var ur=h((Dl,cr)=>{var Mi=S(),Gi=(r,e)=>new Mi(r,e).minor;cr.exports=Gi});var fr=h((Ll,hr)=>{var Vi=S(),ki=(r,e)=>new Vi(r,e).patch;hr.exports=ki});var dr=h((jl,pr)=>{var Ui=W(),Xi=(r,e)=>{let t=Ui(r,e);return t&&t.prerelease.length?t.prerelease:null};pr.exports=Xi});var gr=h((Tl,mr)=>{var Bi=N(),Wi=(r,e,t)=>Bi(e,r,t);mr.exports=Wi});var vr=h((Pl,_r)=>{var zi=N(),Yi=(r,e)=>zi(r,e,!0);_r.exports=Yi});var Te=h((Fl,yr)=>{var Er=S(),Zi=(r,e,t)=>{let n=new Er(r,t),s=new Er(e,t);return n.compare(s)||n.compareBuild(s)};yr.exports=Zi});var wr=h((Hl,br)=>{var Ji=Te(),Qi=(r,e)=>r.sort((t,n)=>Ji(t,n,e));br.exports=Qi});var Sr=h((Ml,Or)=>{var Ki=Te(),es=(r,e)=>r.sort((t,n)=>Ki(n,t,e));Or.exports=es});var ve=h((Gl,Cr)=>{var ts=N(),rs=(r,e,t)=>ts(r,e,t)>0;Cr.exports=rs});var Pe=h((Vl,Rr)=>{var ns=N(),is=(r,e,t)=>ns(r,e,t)<0;Rr.exports=is});var Qe=h((kl,$r)=>{var ss=N(),os=(r,e,t)=>ss(r,e,t)!==0;$r.exports=os});var Fe=h((Ul,Ir)=>{var as=N(),ls=(r,e,t)=>as(r,e,t)>=0;Ir.exports=ls});var He=h((Xl,Ar)=>{var cs=N(),us=(r,e,t)=>cs(r,e,t)<=0;Ar.exports=us});var Ke=h((Bl,xr)=>{var hs=je(),fs=Qe(),ps=ve(),ds=Fe(),ms=Pe(),gs=He(),_s=(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 hs(r,t,n);case"!=":return fs(r,t,n);case">":return ps(r,t,n);case">=":return ds(r,t,n);case"<":return ms(r,t,n);case"<=":return gs(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};xr.exports=_s});var Nr=h((Wl,qr)=>{var vs=S(),Es=W(),{re:Me,t:Ge}=B(),ys=(r,e)=>{if(r instanceof vs)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:Es(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};qr.exports=ys});var Lr=h((zl,Dr)=>{"use strict";Dr.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Tr=h((Yl,jr)=>{"use strict";jr.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++)ws(this,arguments[r]);return this.length};E.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)Os(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=bs(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 bs(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 ws(r,e){r.tail=new z(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function Os(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{Lr()(E)}catch{}});var kr=h((Zl,Vr)=>{"use strict";var Ss=Tr(),Y=Symbol("max"),H=Symbol("length"),Q=Symbol("lengthCalculator"),ye=Symbol("allowStale"),Z=Symbol("maxAge"),F=Symbol("dispose"),Pr=Symbol("noDisposeOnSet"),w=Symbol("lruList"),L=Symbol("cache"),Hr=Symbol("updateAgeOnGet"),et=()=>1,Mr=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||et;if(this[Q]=typeof n!="function"?et:n,this[ye]=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[Pr]=e.noDisposeOnSet||!1,this[Hr]=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,Ee(this)}get max(){return this[Y]}set allowStale(e){this[ye]=!!e}get allowStale(){return this[ye]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Z]=e,Ee(this)}get maxAge(){return this[Z]}set lengthCalculator(e){typeof e!="function"&&(e=et),e!==this[Q]&&(this[Q]=e,this[H]=0,this[w].forEach(t=>{t.length=this[Q](t.value,t.key),this[H]+=t.length})),Ee(this)}get lengthCalculator(){return this[Q]}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;Fr(this,e,n,t),n=s}}forEach(e,t){t=t||this;for(let n=this[w].head;n!==null;){let s=n.next;Fr(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[L]=new Map,this[w]=new Ss,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[Q](t,e);if(this[L].has(e)){if(i>this[Y])return K(this,this[L].get(e)),!1;let c=this[L].get(e).value;return this[F]&&(this[Pr]||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),Ee(this),!0}let a=new Gr(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[L].set(e,this[w].head),Ee(this),!0)}has(e){if(!this[L].has(e))return!1;let t=this[L].get(e).value;return!Ve(this,t)}get(e){return tt(this,e,!0)}peek(e){return tt(this,e,!1)}pop(){let e=this[w].tail;return e?(K(this,e),e.value):null}del(e){K(this,this[L].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[L].forEach((e,t)=>tt(this,t,!1))}},tt=(r,e,t)=>{let n=r[L].get(e);if(n){let s=n.value;if(Ve(r,s)){if(K(r,n),!r[ye])return}else t&&(r[Hr]&&(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]},Ee=r=>{if(r[H]>r[Y])for(let e=r[w].tail;r[H]>r[Y]&&e!==null;){let t=e.prev;K(r,e),e=t}},K=(r,e)=>{if(e){let t=e.value;r[F]&&r[F](t.key,t.value),r[H]-=t.length,r[L].delete(t.key),r[w].removeNode(e)}},Gr=class{constructor(e,t,n,s,i){this.key=e,this.value=t,this.length=n,this.now=s,this.maxAge=i||0}},Fr=(r,e,t,n)=>{let s=t.value;Ve(r,s)&&(K(r,t),r[ye]||(s=void 0)),s&&e.call(n,s.value,s.key,r)};Vr.exports=Mr});var D=h((Jl,Wr)=>{var ee=class{constructor(e,t){if(t=Rs(t),e instanceof ee)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ee(e.raw,t);if(e instanceof rt)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=>!Xr(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&&qs(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=Ur.get(n);if(s)return s;let i=this.options.loose,a=i?C[O.HYPHENRANGELOOSE]:C[O.HYPHENRANGE];e=e.replace(a,Gs(this.options.includePrerelease)),b("hyphen replace",e),e=e.replace(C[O.COMPARATORTRIM],Is),b("comparator trim",e,C[O.COMPARATORTRIM]),e=e.replace(C[O.TILDETRIM],As),e=e.replace(C[O.CARETTRIM],xs),e=e.split(/\s+/).join(" ");let l=i?C[O.COMPARATORLOOSE]:C[O.COMPARATOR],c=e.split(" ").map(m=>Ns(m,this.options)).join(" ").split(/\s+/).map(m=>Ms(m,this.options)).filter(this.options.loose?m=>!!m.match(l):()=>!0).map(m=>new rt(m,this.options)),o=c.length,u=new Map;for(let m of c){if(Xr(m))return[m];u.set(m.value,m)}u.size>1&&u.has("")&&u.delete("");let f=[...u.values()];return Ur.set(n,f),f}intersects(e,t){if(!(e instanceof ee))throw new TypeError("a Range is required");return this.set.some(n=>Br(n,t)&&e.set.some(s=>Br(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 $s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Vs(this.set[t],e,this.options))return!0;return!1}};Wr.exports=ee;var Cs=kr(),Ur=new Cs({max:1e3}),Rs=ge(),rt=be(),b=me(),$s=S(),{re:C,t:O,comparatorTrimReplace:Is,tildeTrimReplace:As,caretTrimReplace:xs}=B(),Xr=r=>r.value==="<0.0.0-0",qs=r=>r.value==="",Br=(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},Ns=(r,e)=>(b("comp",r,e),r=js(r,e),b("caret",r),r=Ds(r,e),b("tildes",r),r=Ps(r,e),b("xrange",r),r=Hs(r,e),b("stars",r),r),I=r=>!r||r.toLowerCase()==="x"||r==="*",Ds=(r,e)=>r.trim().split(/\s+/).map(t=>Ls(t,e)).join(" "),Ls=(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})},js=(r,e)=>r.trim().split(/\s+/).map(t=>Ts(t,e)).join(" "),Ts=(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})},Ps=(r,e)=>(b("replaceXRanges",r,e),r.split(/\s+/).map(t=>Fs(t,e)).join(" ")),Fs=(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),f=u||I(l),m=f;return s==="="&&m&&(s=""),c=e.includePrerelease?"-0":"",o?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(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`:f&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),b("xRange return",n),n})},Hs=(r,e)=>(b("replaceStars",r,e),r.trim().replace(C[O.STAR],"")),Ms=(r,e)=>(b("replaceGTE0",r,e),r.trim().replace(C[e.includePrerelease?O.GTE0PRE:O.GTE0],"")),Gs=r=>(e,t,n,s,i,a,l,c,o,u,f,m,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(f)?c=`<${o}.${+u+1}.0-0`:m?c=`<=${o}.${u}.${f}-${m}`:r?c=`<${o}.${u}.${+f+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),Vs=(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!==rt.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 be=h((Ql,Qr)=>{var we=Symbol("SemVer ANY"),Oe=class{static get ANY(){return we}constructor(e,t){if(t=ks(t),e instanceof Oe){if(e.loose===!!t.loose)return e;e=e.value}it("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===we?this.value="":this.value=this.operator+this.semver.version,it("comp",this)}parse(e){let t=this.options.loose?zr[Yr.COMPARATORLOOSE]:zr[Yr.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 Zr(n[2],this.options.loose):this.semver=we}toString(){return this.value}test(e){if(it("Comparator.test",e,this.options.loose),this.semver===we||e===we)return!0;if(typeof e=="string")try{e=new Zr(e,this.options)}catch{return!1}return nt(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Oe))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Jr(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new Jr(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=nt(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=nt(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||s||i&&a||l||c}};Qr.exports=Oe;var ks=ge(),{re:zr,t:Yr}=B(),nt=Ke(),it=me(),Zr=S(),Jr=D()});var Se=h((Kl,Kr)=>{var Us=D(),Xs=(r,e,t)=>{try{e=new Us(e,t)}catch{return!1}return e.test(r)};Kr.exports=Xs});var tn=h((ec,en)=>{var Bs=D(),Ws=(r,e)=>new Bs(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));en.exports=Ws});var nn=h((tc,rn)=>{var zs=S(),Ys=D(),Zs=(r,e,t)=>{let n=null,s=null,i=null;try{i=new Ys(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new zs(n,t))}),n};rn.exports=Zs});var on=h((rc,sn)=>{var Js=S(),Qs=D(),Ks=(r,e,t)=>{let n=null,s=null,i=null;try{i=new Qs(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new Js(n,t))}),n};sn.exports=Ks});var cn=h((nc,ln)=>{var st=S(),eo=D(),an=ve(),to=(r,e)=>{r=new eo(r,e);let t=new st("0.0.0");if(r.test(t)||(t=new st("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 st(a.semver.version);switch(a.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!i||an(l,i))&&(i=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!t||an(t,i))&&(t=i)}return t&&r.test(t)?t:null};ln.exports=to});var hn=h((ic,un)=>{var ro=D(),no=(r,e)=>{try{return new ro(r,e).range||"*"}catch{return null}};un.exports=no});var ke=h((sc,mn)=>{var io=S(),dn=be(),{ANY:so}=dn,oo=D(),ao=Se(),fn=ve(),pn=Pe(),lo=He(),co=Fe(),uo=(r,e,t,n)=>{r=new io(r,n),e=new oo(e,n);let s,i,a,l,c;switch(t){case">":s=fn,i=lo,a=pn,l=">",c=">=";break;case"<":s=pn,i=co,a=fn,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ao(r,e,n))return!1;for(let o=0;o<e.set.length;++o){let u=e.set[o],f=null,m=null;if(u.forEach(g=>{g.semver===so&&(g=new dn(">=0.0.0")),f=f||g,m=m||g,s(g.semver,f.semver,n)?f=g:a(g.semver,m.semver,n)&&(m=g)}),f.operator===l||f.operator===c||(!m.operator||m.operator===l)&&i(r,m.semver))return!1;if(m.operator===c&&a(r,m.semver))return!1}return!0};mn.exports=uo});var _n=h((oc,gn)=>{var ho=ke(),fo=(r,e,t)=>ho(r,e,">",t);gn.exports=fo});var En=h((ac,vn)=>{var po=ke(),mo=(r,e,t)=>po(r,e,"<",t);vn.exports=mo});var wn=h((lc,bn)=>{var yn=D(),go=(r,e,t)=>(r=new yn(r,t),e=new yn(e,t),r.intersects(e));bn.exports=go});var Sn=h((cc,On)=>{var _o=Se(),vo=N();On.exports=(r,e,t)=>{let n=[],s=null,i=null,a=r.sort((u,f)=>vo(u,f,t));for(let u of a)_o(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,f]of n)u===f?l.push(u):!f&&u===a[0]?l.push("*"):f?u===a[0]?l.push(`<=${f}`):l.push(`${u} - ${f}`):l.push(`>=${u}`);let c=l.join(" || "),o=typeof e.raw=="string"?e.raw:String(e);return c.length<o.length?c:e}});var An=h((uc,In)=>{var Cn=D(),Ue=be(),{ANY:ot}=Ue,Ce=Se(),at=N(),Eo=(r,e,t={})=>{if(r===e)return!0;r=new Cn(r,t),e=new Cn(e,t);let n=!1;e:for(let s of r.set){for(let i of e.set){let a=yo(s,i,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},yo=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===ot){if(e.length===1&&e[0].semver===ot)return!0;t.includePrerelease?r=[new Ue(">=0.0.0-0")]:r=[new Ue(">=0.0.0")]}if(e.length===1&&e[0].semver===ot){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=Rn(s,g,t):g.operator==="<"||g.operator==="<="?i=$n(i,g,t):n.add(g.semver);if(n.size>1)return null;let a;if(s&&i){if(a=at(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&&!Ce(g,String(s),t)||i&&!Ce(g,String(i),t))return null;for(let ui of e)if(!Ce(g,String(ui),t))return!1;return!0}let l,c,o,u,f=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,m=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;f&&f.prerelease.length===1&&i.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let g of e){if(u=u||g.operator===">"||g.operator===">=",o=o||g.operator==="<"||g.operator==="<=",s){if(m&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===m.major&&g.semver.minor===m.minor&&g.semver.patch===m.patch&&(m=!1),g.operator===">"||g.operator===">="){if(l=Rn(s,g,t),l===g&&l!==s)return!1}else if(s.operator===">="&&!Ce(s.semver,String(g),t))return!1}if(i){if(f&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===f.major&&g.semver.minor===f.minor&&g.semver.patch===f.patch&&(f=!1),g.operator==="<"||g.operator==="<="){if(c=$n(i,g,t),c===g&&c!==i)return!1}else if(i.operator==="<="&&!Ce(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||m||f)},Rn=(r,e,t)=>{if(!r)return e;let n=at(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},$n=(r,e,t)=>{if(!r)return e;let n=at(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};In.exports=Eo});var qn=h((hc,xn)=>{var lt=B();xn.exports={re:lt.re,src:lt.src,tokens:lt.t,SEMVER_SPEC_VERSION:de().SEMVER_SPEC_VERSION,SemVer:S(),compareIdentifiers:Ne().compareIdentifiers,rcompareIdentifiers:Ne().rcompareIdentifiers,parse:W(),valid:Zt(),clean:Qt(),inc:er(),diff:or(),major:lr(),minor:ur(),patch:fr(),prerelease:dr(),compare:N(),rcompare:gr(),compareLoose:vr(),compareBuild:Te(),sort:wr(),rsort:Sr(),gt:ve(),lt:Pe(),eq:je(),neq:Qe(),gte:Fe(),lte:He(),cmp:Ke(),coerce:Nr(),Comparator:be(),Range:D(),satisfies:Se(),toComparators:tn(),maxSatisfying:nn(),minSatisfying:on(),minVersion:cn(),validRange:hn(),outside:ke(),gtr:_n(),ltr:En(),intersects:wn(),simplifyRange:Sn(),subset:An()}});var M=h(x=>{"use strict";var bo=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]}),wo=x&&x.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Oo=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)&&bo(e,r,t);return wo(e,r),e},Nn=x&&x.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(x,"__esModule",{value:!0});x.getCoreVersion=void 0;var Dn=Nn(require("path")),Ln=Nn(require("fs")),ct=Oo(require("@serverless-devs/core")),So=qn(),jn=Dn.default.join(ct.getRootHome(),"cache","core"),ut=Dn.default.join(jn,"package.json");function Co(){if(Ln.default.existsSync(ut)){var r=require("@serverless-devs/core/package.json").version,e=Tn();return So.gt(e,r)?require(jn):ct}return ct}function Tn(){return Ln.default.existsSync(ut)?require(ut).version:void 0}x.getCoreVersion=Tn;x.default=Co()});var ft=h(Re=>{"use strict";var Ro=Re&&Re.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Re,"__esModule",{value:!0});var $o=Ro(M()),Io=$o.default.Logger,ht=new Io("S-CLI");ht.success=function(r){return ht.log(r,"green")};Re.default=ht});var Be=h(A=>{"use strict";var Ao=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(f){a(f)}}function c(u){try{o(n.throw(u))}catch(f){a(f)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},xo=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}}},Pn=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 Fn=Pn(require("path")),dt=Pn(M()),j=dt.default.fse,Xe=dt.default.jsyaml,pt=dt.default.getRootHome;function qo(r){var e=Mn();j.writeFileSync(e,Xe.dump(r))}function Hn(){var r=Mn();if(!j.existsSync(r))return{};try{var e=Xe.load(j.readFileSync(r,"utf8"))||{};return e}catch(t){throw t}}function Mn(){var r=Fn.default.join(pt(),"set-config.yml");return j.existsSync(r)||j.createFileSync(r),r}function No(r,e){var t=Hn();t[r]=e,qo(t)}A.setConfig=No;function Do(r,e){var t=Hn();return t[r]||e}A.getConfig=Do;function Lo(r){return Ao(this,void 0,void 0,function(){var e,t,n,s,i,a,l;return xo(this,function(c){switch(c.label){case 0:if(e=r.filePath||"set-config.yml",t=Fn.default.join(pt(),e),n=j.existsSync(t),s={},n)return[3,5];i=pt(),c.label=1;case 1:return c.trys.push([1,2,,4]),j.statSync(i),[3,4];case 2:return a=c.sent(),[4,j.mkdirSync(i)];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:try{s=Xe.load(j.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,j.writeFileSync(t,Xe.dump(s))]);case 7:return c.sent(),[2,s]}})})}A.handlerProfileFile=Lo});var Gn=h((mc,jo)=>{jo.exports={name:"@serverless-devs/s",version:"2.0.102",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 Ie=h(_=>{"use strict";var To=_&&_.__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]}),Po=_&&_.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Fo=_&&_.__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)&&To(e,r,t);return Po(e,r),e},te=_&&_.__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(f){a(f)}}function c(u){try{o(n.throw(u))}catch(f){a(f)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},re=_&&_.__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}}},gt=_&&_.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_,"__esModule",{value:!0});_.specifyServiceHelp=_.getTempCommandStr=_.emoji=_.mark=_.replaceTemplate=_.replaceFun=_.getLang=_.printn=_.getFolderSize=_.getVersion=_.getPid=_.aiRequest=_.getCredentialWithAll=_.getCredentialWithExisted=_.getProcessArgv=_.bgRed=_.yellow=_.red=void 0;var Ho=gt(require("path")),$e=gt(require("fs")),Mo=gt(require("os")),R=Fo(M()),Go=Be(),Vn=Gn(),ne=R.default.colors,Vo=R.default.got,ko=R.default.getMAC,Uo=R.default.isDocker,Xo=R.default.isCiCdEnv,V=R.default.lodash,kn=R.default.publishHelp,Bo=V.get,Wo=V.trim,zo=V.assign,Yo=V.filter,Un=V.includes,Zo=V.omit,Jo=V.isPlainObject,Qo=V.isEmpty,Ko=ne.underline,ea=ne.bold;_.red=ne.hex("#fd5750");_.yellow=ne.hex("#F3F99D");_.bgRed=ne.hex("#000").bgHex("#fd5750");var ta=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),zo({},t,{noHelpArgv:process.argv.slice(0,2).concat(Yo(t._argsObj,function(n){return!Un(["-h","--help"],n)}))})}catch{return{}}};_.getProcessArgv=ta;var ra=function(r){return te(void 0,void 0,void 0,function(){var e,t;return re(this,function(n){switch(n.label){case 0:return[4,R.default.getCredentialAliasList()];case 1:return e=n.sent(),Un(e,r)?[4,R.default.getCredential(r)]:[3,3];case 2:return t=n.sent(),[2,t];case 3:return[2]}})})};_.getCredentialWithExisted=ra;var na=function(){return te(void 0,void 0,void 0,function(){var r,e,t,n,s,i;return re(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]=Zo(i,"Alias"),a.label=4;case 4:return t++,[3,2];case 5:return[2,e];case 6:return[2]}})})};_.getCredentialWithAll=na;var ia=function(r,e){return e===void 0&&(e="unknow"),te(void 0,void 0,void 0,function(){var t,n,s,i;return re(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t=(0,Go.getConfig)("analysis"),t!=="enable"?[2]:Uo()||Xo()?[2]:[4,Vo("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=Bo(n.body,"shorturl"),s&&console.log(`AI Tips:
|
|
16
16
|
You can try to solve the problem through: `.concat(ne.underline(s),`
|
|
17
|
-
`)),[3,3];case 2:return i=a.sent(),[3,3];case 3:return[2]}})})};_.aiRequest=
|
|
17
|
+
`)),[3,3];case 2:return i=a.sent(),[3,3];case 3:return[2]}})})};_.aiRequest=ia;var sa=function(){try{return ko().replace(/:/g,"")}catch{return"unknown"}};_.getPid=sa;function oa(){var r=(0,R.getCoreVersion)(),e=["".concat(Vn.name,": ").concat(Vn.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(", ")}_.getVersion=oa;function aa(r){return te(this,void 0,void 0,function(){function e(s){return te(this,void 0,void 0,function(){var i,a;return re(this,function(l){switch(l.label){case 0:return i=$e.default.lstatSync(s),typeof i!="object"?[2]:(t.set(i.ino,i.size),i.isDirectory()?(a=$e.default.readdirSync(s),typeof a!="object"?[2]:[4,Promise.all(a.map(function(c){return e(Ho.default.join(s,c))}))]):[3,2]);case 1:l.sent(),l.label=2;case 2:return[2]}})})}var t,n;return re(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]}})})}_.getFolderSize=aa;function la(r,e){e===void 0&&(e=" ");for(var t="",n=0;n<r;n++)t=t+e;return t}_.printn=la;function ca(){return"en"}_.getLang=ca;function Xn(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=Wo(i.split("|")[0]);e[a]&&(r=r.replace(n[s],e[a]))}return r}_.replaceFun=Xn;function ua(r,e){r.forEach(function(t){if($e.default.existsSync(t)){var n=$e.default.readFileSync(t,"utf-8"),s=Xn(n,e);$e.default.writeFileSync(t,s,"utf-8")}})}_.replaceTemplate=ua;function ha(r){if(!r)return r;var e=r.slice(-4);return"***********".concat(e)}_.mark=ha;function mt(r,e){return Mo.default.platform()==="win32"?e||"\u25C6":"".concat(r," ")}_.emoji=mt;function Bn(r,e){var t=r.length,n=new Array(e-t).fill(" ");return"".concat(r).concat(n.join("")," : ")}_.getTempCommandStr=Bn;function fa(r){return te(this,void 0,void 0,function(){var e,t,n,s,i,l,a,l;return re(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(mt("\u{1F680}")," ").concat(e.Name,"@").concat(e.Version,": ").concat(e.Description,`
|
|
19
|
-
`)),t=e.Commands,t){n=
|
|
20
|
-
`)),!
|
|
21
|
-
`:"")}return[2]}})})}_.specifyServiceHelp=ha});var Wn=h(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.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 zn=h(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.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 Zn=h(Ae=>{"use strict";var Yn=Ae&&Ae.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ae,"__esModule",{value:!0});var fa=Ie(),pa=Yn(Wn()),da=Yn(zn()),Et={en:da.default,zh:pa.default},ma=function(r){var e=(0,fa.getLang)(),t=Et[e]?Et[e][r]:Et.en[r];return t||r};Ae.default=ma});var bt=h($=>{"use strict";var ga=$&&$.__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]}),Jn=$&&$.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&ga(e,r,t)},yt=$&&$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($,"__esModule",{value:!0});$.registerCommandChecker=$.i18n=$.logger=void 0;var _a=yt(ft());Jn(Ie(),$);Jn(Xe(),$);var va=ft();Object.defineProperty($,"logger",{enumerable:!0,get:function(){return yt(va).default}});var Ea=Zn();Object.defineProperty($,"i18n",{enumerable:!0,get:function(){return yt(Ea).default}});function ya(r){r.on("command:*",function(e){var t=r.commands.map(function(n){return n.name()});t.includes(e[0])||(_a.default.error(" error: unknown command ".concat(e[0])),r.help())})}$.registerCommandChecker=ya});var J=h(ie=>{"use strict";var ba=ie&&ie.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ie,"__esModule",{value:!0});ie.ServerlessError=void 0;var wa=ba(M()),Oa=wa.default.Logger,Sa=new Oa("S-CLI-ERROR"),Ca=function(){function r(e,t,n){Sa.error(e+": "+t,n),process.exit(1)}return r}();ie.ServerlessError=Ca});var Qn=h(se=>{"use strict";var Ra=se&&se.__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(se,"__esModule",{value:!0});se.CommandError=void 0;var $a=J(),Ia=function(r){Ra(e,r);function e(t,n){return r.call(this,"Error",t,n)||this}return e}($a.ServerlessError);se.CommandError=Ia});var Kn=h(oe=>{"use strict";var Aa=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.ConfigDeleteError=void 0;var xa=J(),qa=function(r){Aa(e,r);function e(t,n){return r.call(this,"Deletion failed",t,n)||this}return e}(xa.ServerlessError);oe.ConfigDeleteError=qa});var ei=h(ae=>{"use strict";var Na=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.ConfigError=void 0;var Da=J(),La=function(r){Na(e,r);function e(t,n){return r.call(this,"Config failed",t,n)||this}return e}(Da.ServerlessError);ae.ConfigError=La});var ti=h(le=>{"use strict";var ja=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.ConfigGetError=void 0;var Ta=J(),Pa=function(r){ja(e,r);function e(t,n){return r.call(this,"Get failed",t,n)||this}return e}(Ta.ServerlessError);le.ConfigGetError=Pa});var ri=h(ce=>{"use strict";var Fa=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.InitError=void 0;var Ha=J(),Ma=function(r){Fa(e,r);function e(t,n){return r.call(this,"Initialization failed",t,n)||this}return e}(Ha.ServerlessError);ce.InitError=Ma});var ii=h(T=>{"use strict";var Ga=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(f){a(f)}}function c(u){try{o(n.throw(u))}catch(f){a(f)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},Va=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}}},ka=T&&T.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(T,"__esModule",{value:!0});T.HumanError=void 0;var ni=ka(M()),Ua=Ie(),Xa=ni.default.colors,Ba=function(){function r(e){var t=e.errorMessage,n=e.tips;this.errorMessage=t,console.log(`
|
|
22
|
-
`.concat((0,
|
|
23
|
-
`)),n&&console.log("".concat(
|
|
24
|
-
`))}return r.prototype.report=function(e){return
|
|
19
|
+
`)),t=e.Commands,t){n=kn.maxLen(t),s=[],i={};for(l in t)a=t[l],Jo(a)?s.push(kn.helpInfo(a,Ko(ea(l)),n,4)):i[l]=a;if(s.length>0&&console.log(s.join(`
|
|
20
|
+
`)),!Qo(i)){for(l in i)console.log(" ".concat(Bn(l,n)," ").concat(i[l]));console.log("")}console.log(e.HomePage?" ".concat(mt("\u{1F9ED}")," ").concat(R.default.makeUnderLine("More information: "+e.HomePage)," ")+`
|
|
21
|
+
`:"")}return[2]}})})}_.specifyServiceHelp=fa});var Wn=h(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.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 zn=h(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.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 Zn=h(Ae=>{"use strict";var Yn=Ae&&Ae.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ae,"__esModule",{value:!0});var pa=Ie(),da=Yn(Wn()),ma=Yn(zn()),Et={en:ma.default,zh:da.default},ga=function(r){var e=(0,pa.getLang)(),t=Et[e]?Et[e][r]:Et.en[r];return t||r};Ae.default=ga});var bt=h($=>{"use strict";var _a=$&&$.__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]}),Jn=$&&$.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&_a(e,r,t)},yt=$&&$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($,"__esModule",{value:!0});$.registerCommandChecker=$.i18n=$.logger=void 0;var va=yt(ft());Jn(Ie(),$);Jn(Be(),$);var Ea=ft();Object.defineProperty($,"logger",{enumerable:!0,get:function(){return yt(Ea).default}});var ya=Zn();Object.defineProperty($,"i18n",{enumerable:!0,get:function(){return yt(ya).default}});function ba(r){r.on("command:*",function(e){var t=r.commands.map(function(n){return n.name()});t.includes(e[0])||(va.default.error(" error: unknown command ".concat(e[0])),r.help())})}$.registerCommandChecker=ba});var J=h(ie=>{"use strict";var wa=ie&&ie.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ie,"__esModule",{value:!0});ie.ServerlessError=void 0;var Oa=wa(M()),Sa=Oa.default.Logger,Ca=new Sa("S-CLI-ERROR"),Ra=function(){function r(e,t,n){Ca.error(e+": "+t,n),process.exit(1)}return r}();ie.ServerlessError=Ra});var Qn=h(se=>{"use strict";var $a=se&&se.__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(se,"__esModule",{value:!0});se.CommandError=void 0;var Ia=J(),Aa=function(r){$a(e,r);function e(t,n){return r.call(this,"Error",t,n)||this}return e}(Ia.ServerlessError);se.CommandError=Aa});var Kn=h(oe=>{"use strict";var xa=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.ConfigDeleteError=void 0;var qa=J(),Na=function(r){xa(e,r);function e(t,n){return r.call(this,"Deletion failed",t,n)||this}return e}(qa.ServerlessError);oe.ConfigDeleteError=Na});var ei=h(ae=>{"use strict";var Da=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.ConfigError=void 0;var La=J(),ja=function(r){Da(e,r);function e(t,n){return r.call(this,"Config failed",t,n)||this}return e}(La.ServerlessError);ae.ConfigError=ja});var ti=h(le=>{"use strict";var Ta=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.ConfigGetError=void 0;var Pa=J(),Fa=function(r){Ta(e,r);function e(t,n){return r.call(this,"Get failed",t,n)||this}return e}(Pa.ServerlessError);le.ConfigGetError=Fa});var ri=h(ce=>{"use strict";var Ha=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.InitError=void 0;var Ma=J(),Ga=function(r){Ha(e,r);function e(t,n){return r.call(this,"Initialization failed",t,n)||this}return e}(Ma.ServerlessError);ce.InitError=Ga});var ii=h(T=>{"use strict";var Va=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(f){a(f)}}function c(u){try{o(n.throw(u))}catch(f){a(f)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},ka=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}}},Ua=T&&T.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(T,"__esModule",{value:!0});T.HumanError=void 0;var ni=Ua(M()),Xa=Ie(),Ba=ni.default.colors,Wa=function(){function r(e){var t=e.errorMessage,n=e.tips;this.errorMessage=t,console.log(`
|
|
22
|
+
`.concat((0,Xa.bgRed)("ERROR:"))),console.log("TypeError: ".concat(t,`
|
|
23
|
+
`)),n&&console.log("".concat(Ba.gray(n),`
|
|
24
|
+
`))}return r.prototype.report=function(e){return Va(this,void 0,void 0,function(){var t;return ka(this,function(n){switch(n.label){case 0:return t=e.error,[4,ni.default.report({type:"jsError",content:"".concat(this.errorMessage,"||").concat(t.stack)})];case 1:return n.sent(),[2]}})})},r}();T.HumanError=Wa});var oi=h(ue=>{"use strict";var za=ue&&ue.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ue,"__esModule",{value:!0});ue.HumanWarning=void 0;var Ya=za(M()),si=Ya.default.colors,Za=function(){function r(e){var t=e.warningMessage,n=e.tips;console.log(`
|
|
25
25
|
`.concat(si.hex("#000").bgYellow("WARNING:"))),console.log("".concat(t,`
|
|
26
26
|
`)),n&&console.log("".concat(si.gray(n),`
|
|
27
|
-
`))}return r}();ue.HumanWarning=
|
|
28
|
-
`):"",c=a.tips?"* ".concat(
|
|
27
|
+
`))}return r}();ue.HumanWarning=Za});var ai=h(y=>{"use strict";var Ja=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(f){a(f)}}function c(u){try{o(n.throw(u))}catch(f){a(f)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},Qa=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}}},Ka=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=bt(),xe=Ka(M()),k=xe.default.colors,el=xe.default.report,wt=xe.default.isDebugMode,tl=xe.default.makeUnderLine,Ot=xe.default.isDocker,rl=Qn();Object.defineProperty(y,"CommandError",{enumerable:!0,get:function(){return rl.CommandError}});var nl=Kn();Object.defineProperty(y,"ConfigDeleteError",{enumerable:!0,get:function(){return nl.ConfigDeleteError}});var il=ei();Object.defineProperty(y,"ConfigError",{enumerable:!0,get:function(){return il.ConfigError}});var sl=ti();Object.defineProperty(y,"ConfigGetError",{enumerable:!0,get:function(){return sl.ConfigGetError}});var ol=ri();Object.defineProperty(y,"InitError",{enumerable:!0,get:function(){return ol.InitError}});var al=J();Object.defineProperty(y,"ServerlessError",{enumerable:!0,get:function(){return al.ServerlessError}});var ll=ii();Object.defineProperty(y,"HumanError",{enumerable:!0,get:function(){return ll.HumanError}});var cl=oi();Object.defineProperty(y,"HumanWarning",{enumerable:!0,get:function(){return cl.HumanWarning}});function St(r,e){return"".concat(k.gray(r)).concat(k.gray.underline(e))}var ul=function(r){return Ja(void 0,void 0,void 0,function(){var e,t,n,s,i,a,l,c;return Qa(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(tl(a.tips.replace(/\n/,`
|
|
29
29
|
* `))):"",P.logger.log(`
|
|
30
30
|
`.concat(k.hex("#000").bgYellow("WARNING:"),`
|
|
31
31
|
======================
|
|
@@ -36,14 +36,14 @@ You can try to solve the problem through: `.concat(ne.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(wt()?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(
|
|
41
|
-
`)),t.traceId&&console.log(k.gray("Please copy traceId: ".concat(t.traceId," and join Dingding group: 33947367 for consultation."))))
|
|
39
|
+
`)),console.log(wt()||Ot()?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))),Ot()||(console.log(k.gray("Environment: ".concat((0,P.getVersion)()))),console.log(St("Documents: ","https://www.serverless-devs.com")),console.log(St("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(St("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."))))),!Ot()&&console.log(k.gray("You can run 's clean --all' to clean Serverless devs.")),t.traceId&&!t.catchableError?[4,el({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=ul});var hl=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(f){a(f)}}function c(u){try{o(n.throw(u))}catch(f){a(f)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},fl=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}}},li=exports&&exports.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});var We=li(Dt()),he=bt(),pl=ai(),ci=li(M()),dl=ci.default.inquirer,ml=ci.default.colors,gl=Ie(),Ct=Be(),_l=`Set language information.
|
|
42
42
|
|
|
43
43
|
Example:
|
|
44
44
|
$ s set locale
|
|
45
45
|
$ s set locale zh
|
|
46
46
|
|
|
47
|
-
`.concat((0,
|
|
48
|
-
\u{1F4AC} Current language: `.concat((0,he.i18n)((0,
|
|
49
|
-
`)),[4,
|
|
47
|
+
`.concat((0,gl.emoji)("\u{1F4D6}")," Document: ").concat(ml.underline("https://github.com/Serverless-Devs/Serverless-Devs/tree/master/docs/zh/command/set.md"));We.default.name("s set locale").helpOption("-h, --help","Display help for command").addHelpCommand(!1).description(_l).parse(process.argv);var vl=[{type:"list",name:"locale",message:(0,he.i18n)("select_current_language"),choices:[{name:(0,he.i18n)("zh"),value:"zh"},{name:(0,he.i18n)("en"),value:"en"}]}];(function(){return hl(void 0,void 0,void 0,function(){var r,e;return fl(this,function(t){switch(t.label){case 0:return We.default.args.length!==0?[3,2]:(he.logger.log(`
|
|
48
|
+
\u{1F4AC} Current language: `.concat((0,he.i18n)((0,Ct.getConfig)("locale")),`
|
|
49
|
+
`)),[4,dl.prompt(vl)]);case 1:r=t.sent(),(0,Ct.setConfig)("locale",r.locale),t.label=2;case 2:return We.default.args.length>0&&(e=We.default.args[0],e&&((0,Ct.setConfig)("locale",e),he.logger.success("Setup succeeded"))),[2]}})})})().catch(function(r){throw new pl.CommandError(r.message)});
|