@serverless-devs/s 2.0.93-beta.7 → 2.0.95-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/docs/zh/package_dev.md +2 -2
  2. package/docs/zh/yaml.md +1 -1
  3. package/lib/clean/index.js +2 -2
  4. package/lib/cli/index.js +2 -2
  5. package/lib/component/index.js +80 -80
  6. package/lib/config/add/index.js +2 -2
  7. package/lib/config/delete/index.js +2 -2
  8. package/lib/config/get/index.js +2 -2
  9. package/lib/config/index.js +2 -2
  10. package/lib/error/index.js +10 -3
  11. package/lib/index.js +120 -100
  12. package/lib/init/index.js +97 -82
  13. package/lib/set/analysis/index.js +2 -2
  14. package/lib/set/index.js +2 -2
  15. package/lib/set/locale/index.js +2 -2
  16. package/lib/set/registry/index.js +22 -22
  17. package/lib/set/workspace/index.js +5 -5
  18. package/lib/update-notifier/index.js +20 -20
  19. package/package.json +2 -2
  20. package/spec/zh/0.0.1/readme.md +1 -1
  21. package/spec/zh/0.0.1/{serverless_pacakge_model → serverless_package_model}/1.purpose_and_goals.md +0 -0
  22. package/spec/zh/0.0.1/{serverless_pacakge_model → serverless_package_model}/2.overview_and_terminology.md +0 -0
  23. package/spec/zh/0.0.1/{serverless_pacakge_model → serverless_package_model}/3.package_model.md +0 -0
  24. package/spec/zh/0.0.1/{serverless_pacakge_model → serverless_package_model}/4.application_scopes.md +0 -0
  25. package/spec/zh/0.0.1/{serverless_pacakge_model → serverless_package_model}/5.design_principles.md +0 -0
  26. package/spec/zh/0.0.1/{serverless_pacakge_model → serverless_package_model}/readme.md +0 -0
  27. package/spec/zh/0.0.1/serverless_registry_model/2.overview_and_terminology.md +1 -1
  28. package/spec/zh/0.0.1/serverless_registry_model/3.registry_model.md +2 -2
  29. package/spec/zh/0.0.1/serverless_registry_model/5.design_principles.md +1 -1
  30. package/test/ci.sh +33 -0
  31. package/test/start-fc-http-nodejs12/code/index.js +47 -0
  32. package/test/start-fc-http-nodejs12/s.yaml +38 -0
@@ -89,7 +89,7 @@ $ find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
89
89
 
90
90
  > Serverless Devs 应用开发需要严格遵守 [Serverless Package Model](../../spec/zh/0.0.1/serverless_registry_model/readme.md) 中的 [应用模型规范](../../spec/zh/0.0.1/serverless_registry_model/3.registry_model.md#应用模型规范)。在[应用模型规范](../../spec/zh/0.0.1/serverless_registry_model/3.registry_model.md#应用模型规范)中有关于[应用模型元数据](../../spec/zh/0.0.1/serverless_registry_model/3.registry_model.md#应用模型元数据)的说明。
91
91
 
92
- Serverless Devs的组件开发案例已经被集成到Serverless Devs命令行工具中,通过对Serverless Devs的命令行工具,可以进行空白组件项目的初始化,开发者只需要执行`s init`即可看到:
92
+ Serverless Devs的组件开发案例已经被集成到Serverless Devs命令行工具中,通过对Serverless Devs的命令行工具,可以进行空白应用项目的初始化,开发者只需要执行`s init`即可看到:
93
93
 
94
94
  ```shell script
95
95
 
@@ -116,7 +116,7 @@ $ s init
116
116
  Component Scaffolding
117
117
  ```
118
118
 
119
- 此时,选择`Component Scaffolding`,并按回车,即可完成一个完整的Serverless Devs的Component项目的初始化,可以通过命令查看文件树:
119
+ 此时,选择`Application Scaffolding`,并按回车,即可完成一个完整的Serverless Devs的Application项目的初始化,可以通过命令查看文件树:
120
120
 
121
121
  ```shell script
122
122
  $ find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
package/docs/zh/yaml.md CHANGED
@@ -200,4 +200,4 @@ services:
200
200
 
201
201
  -----------
202
202
 
203
- > 在一个应用下,如果一键部署整个应用?又或者如何只部署应用中的某个Service?可以参考[自定义命令使用指南](./command/custom.md)
203
+ > 在一个应用下,如何一键部署整个应用?又或者如何只部署应用中的某个Service?可以参考[自定义命令使用指南](./command/custom.md)
@@ -37,12 +37,12 @@ function print() { __p += __j.call(arguments, '') }
37
37
  `)}return i.prototype.report=function(r){return iw(this,void 0,void 0,function(){var s;return sw(this,function(u){switch(u.label){case 0:return s=r.error,[4,Qc.default.report({type:"jsError",content:this.errorMessage+"||"+s.stack})];case 1:return u.sent(),[2]}})})},i}();ct.HumanError=lw});var nh=T(Pn=>{"use strict";var fw=Pn&&Pn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.HumanWarning=void 0;var cw=fw(lt()),th=cw.default.colors,hw=function(){function i(r){var s=r.warningMessage,u=r.tips;console.log(`
38
38
  `+th.hex("#000").bgYellow("WARNING:")),console.log(s+`
39
39
  `),u&&console.log(th.gray(u)+`
40
- `)}return i}();Pn.HumanWarning=hw});var rh=T(te=>{"use strict";var pw=te&&te.__awaiter||function(i,r,s,u){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function y(S){try{d(u.next(S))}catch(b){_(b)}}function w(S){try{d(u.throw(S))}catch(b){_(b)}}function d(S){S.done?f(S.value):l(S.value).then(y,w)}d((u=u.apply(i,r||[])).next())})},dw=te&&te.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},u,l,f,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(d){return function(S){return w([d,S])}}function w(d){if(u)throw new TypeError("Generator is already executing.");for(;s;)try{if(u=1,l&&(f=d[0]&2?l.return:d[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,d[1])).done)return f;switch(l=0,f&&(d=[d[0]&2,f.value]),d[0]){case 0:case 1:f=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,l=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!f||d[1]>f[0]&&d[1]<f[3])){s.label=d[1];break}if(d[0]===6&&s.label<f[1]){s.label=f[1],f=d;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(d);break}f[2]&&s.ops.pop(),s.trys.pop();continue}d=r.call(i,s)}catch(S){d=[6,S],l=0}finally{u=f=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},gw=te&&te.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(te,"__esModule",{value:!0});te.HandleError=te.HumanWarning=te.HumanError=te.ServerlessError=te.InitError=te.ConfigGetError=te.ConfigError=te.ConfigDeleteError=te.CommandError=void 0;var No=Ar(),_w=Do(),qo=gw(lt()),on=qo.default.colors,mw=qo.default.report,vw=qo.default.getMAC,yw=Yc();Object.defineProperty(te,"CommandError",{enumerable:!0,get:function(){return yw.CommandError}});var Ew=Kc();Object.defineProperty(te,"ConfigDeleteError",{enumerable:!0,get:function(){return Ew.ConfigDeleteError}});var ww=Zc();Object.defineProperty(te,"ConfigError",{enumerable:!0,get:function(){return ww.ConfigError}});var xw=kc();Object.defineProperty(te,"ConfigGetError",{enumerable:!0,get:function(){return xw.ConfigGetError}});var Aw=Jc();Object.defineProperty(te,"InitError",{enumerable:!0,get:function(){return Aw.InitError}});var Ow=sn();Object.defineProperty(te,"ServerlessError",{enumerable:!0,get:function(){return Ow.ServerlessError}});var Sw=eh();Object.defineProperty(te,"HumanError",{enumerable:!0,get:function(){return Sw.HumanError}});var Rw=nh();Object.defineProperty(te,"HumanWarning",{enumerable:!0,get:function(){return Rw.HumanWarning}});var Iw=vw().replace(/:/g,"");function Po(i,r){return""+on.gray(i)+on.gray.underline(r)}var bw=function(){function i(r){var s=r.error,u=r.prefix,l=u===void 0?"Message:":u;this.traceId=""+Iw+Date.now(),console.log((0,No.red)("\u2716 "+l+`
40
+ `)}return i}();Pn.HumanWarning=hw});var rh=T(te=>{"use strict";var pw=te&&te.__awaiter||function(i,r,s,u){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function y(S){try{d(u.next(S))}catch(b){_(b)}}function w(S){try{d(u.throw(S))}catch(b){_(b)}}function d(S){S.done?f(S.value):l(S.value).then(y,w)}d((u=u.apply(i,r||[])).next())})},dw=te&&te.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},u,l,f,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(d){return function(S){return w([d,S])}}function w(d){if(u)throw new TypeError("Generator is already executing.");for(;s;)try{if(u=1,l&&(f=d[0]&2?l.return:d[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,d[1])).done)return f;switch(l=0,f&&(d=[d[0]&2,f.value]),d[0]){case 0:case 1:f=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,l=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!f||d[1]>f[0]&&d[1]<f[3])){s.label=d[1];break}if(d[0]===6&&s.label<f[1]){s.label=f[1],f=d;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(d);break}f[2]&&s.ops.pop(),s.trys.pop();continue}d=r.call(i,s)}catch(S){d=[6,S],l=0}finally{u=f=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},gw=te&&te.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(te,"__esModule",{value:!0});te.HandleError=te.HumanWarning=te.HumanError=te.ServerlessError=te.InitError=te.ConfigGetError=te.ConfigError=te.ConfigDeleteError=te.CommandError=void 0;var No=Ar(),_w=Do(),qo=gw(lt()),on=qo.default.colors,mw=qo.default.report,vw=qo.default.getMAC,yw=Yc();Object.defineProperty(te,"CommandError",{enumerable:!0,get:function(){return yw.CommandError}});var Ew=Kc();Object.defineProperty(te,"ConfigDeleteError",{enumerable:!0,get:function(){return Ew.ConfigDeleteError}});var ww=Zc();Object.defineProperty(te,"ConfigError",{enumerable:!0,get:function(){return ww.ConfigError}});var xw=kc();Object.defineProperty(te,"ConfigGetError",{enumerable:!0,get:function(){return xw.ConfigGetError}});var Aw=Jc();Object.defineProperty(te,"InitError",{enumerable:!0,get:function(){return Aw.InitError}});var Ow=sn();Object.defineProperty(te,"ServerlessError",{enumerable:!0,get:function(){return Ow.ServerlessError}});var Sw=eh();Object.defineProperty(te,"HumanError",{enumerable:!0,get:function(){return Sw.HumanError}});var Rw=nh();Object.defineProperty(te,"HumanWarning",{enumerable:!0,get:function(){return Rw.HumanWarning}});function Iw(){try{return vw().replace(/:/g,"")}catch{return"unknown"}}function Po(i,r){return""+on.gray(i)+on.gray.underline(r)}var bw=function(){function i(r){var s=r.error,u=r.prefix,l=u===void 0?"Message:":u;this.traceId=""+Iw()+Date.now(),console.log((0,No.red)("\u2716 "+l+`
41
41
  `));var f=(0,_w.getConfig)("analysis");f!=="disable"&&console.log(on.gray("TraceId: "+this.traceId)),console.log(on.gray("Environment: "+(0,No.getVersion)())),console.log(Po("Documents: ","https://www.serverless-devs.com")),console.log(Po("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(Po("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
42
42
  `)),console.log((0,No.bgRed)("ERROR:")+`
43
43
  `+s+`
44
44
  `),f!=="disable"&&console.log(on.gray("Please copy traceId: "+this.traceId+" and join Dingding group: 33947367 for consultation.")),console.log(on.gray("You can run 's clean --cache' to prune Serverless devs.")),console.log(on.gray(`And run again with the '--debug' option or 's -h' to get more logs.
45
- `))}return i.prototype.report=function(r){return pw(this,void 0,void 0,function(){return dw(this,function(s){return mw({type:"jsError",content:r.message+"||"+r.stack,traceId:this.traceId}),[2]})})},i}();te.HandleError=bw});var ih=T((oA,Cw)=>{Cw.exports={name:"@serverless-devs/s",version:"2.0.93-beta.7",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:{prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",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:{"@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",commander:"^6.0.0",dotenv:"^10.0.0",esbuild:"^0.13.6",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.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"^0.1.13-beta.6"}}});var Ar=T(G=>{"use strict";var Tw=G&&G.__createBinding||(Object.create?function(i,r,s,u){u===void 0&&(u=s),Object.defineProperty(i,u,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,u){u===void 0&&(u=s),i[u]=r[s]}),Lw=G&&G.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),$w=G&&G.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&Tw(r,i,s);return Lw(r,i),r},sh=G&&G.__awaiter||function(i,r,s,u){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function y(S){try{d(u.next(S))}catch(b){_(b)}}function w(S){try{d(u.throw(S))}catch(b){_(b)}}function d(S){S.done?f(S.value):l(S.value).then(y,w)}d((u=u.apply(i,r||[])).next())})},oh=G&&G.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},u,l,f,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(d){return function(S){return w([d,S])}}function w(d){if(u)throw new TypeError("Generator is already executing.");for(;s;)try{if(u=1,l&&(f=d[0]&2?l.return:d[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,d[1])).done)return f;switch(l=0,f&&(d=[d[0]&2,f.value]),d[0]){case 0:case 1:f=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,l=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!f||d[1]>f[0]&&d[1]<f[3])){s.label=d[1];break}if(d[0]===6&&s.label<f[1]){s.label=f[1],f=d;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(d);break}f[2]&&s.ops.pop(),s.trys.pop();continue}d=r.call(i,s)}catch(S){d=[6,S],l=0}finally{u=f=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Hi=G&&G.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(G,"__esModule",{value:!0});G.emoji=G.mark=G.replaceTemplate=G.getTemplatekey=G.replaceFun=G.getLang=G.printn=G.checkTemplateFile=G.checkAndReturnTemplateFile=G.yamlLoad=G.getFolderSize=G.getVersion=G.bgRed=G.red=void 0;var de=Hi(require("path")),Me=Hi(require("fs")),Fo=Hi(Pc()),Dw=Hi(require("os")),Nw=rh(),Wi=$w(lt()),Mo=Wi.default.colors,qw=Wi.default.jsyaml,Gi=ih();G.red=Mo.hex("#fd5750");G.bgRed=Mo.hex("#000").bgHex("#fd5750");function Pw(){return(0,Wi.getCoreVersion)()?Gi.name+": "+Gi.version+", @serverless-devs/core: "+(0,Wi.getCoreVersion)()+", "+process.platform+"-"+process.arch+", node-"+process.version:Gi.name+": "+Gi.version+", "+process.platform+"-"+process.arch+", node-"+process.version}G.getVersion=Pw;function Fw(i){return sh(this,void 0,void 0,function(){function r(l){return sh(this,void 0,void 0,function(){var f,_;return oh(this,function(y){switch(y.label){case 0:return f=Me.default.lstatSync(l),typeof f!="object"?[2]:(s.set(f.ino,f.size),f.isDirectory()?(_=Me.default.readdirSync(l),typeof _!="object"?[2]:[4,Promise.all(_.map(function(w){return r(de.default.join(l,w))}))]):[3,2]);case 1:y.sent(),y.label=2;case 2:return[2]}})})}var s,u;return oh(this,function(l){switch(l.label){case 0:return s=new Map,[4,r(i)];case 1:return l.sent(),u=Array.from(s.values()).reduce(function(f,_){return f+_},0),[2,u]}})})}G.getFolderSize=Fw;function uh(i){var r=Me.default.readFileSync(i,"utf8");try{return qw.load(r)}catch{if(["-h","--help"].includes(process.argv[2]))return;var s=de.default.basename(i);new Nw.HumanError({errorMessage:s+" format is incorrect",tips:"Please check the configuration of "+s+", Serverless Devs' Yaml specification document can refer to\uFF1A"+Mo.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/yaml.md")}),process.exit(1)}}G.yamlLoad=uh;function Or(i,r){r===void 0&&(r=!1);var s=Me.default.readFileSync(i,"utf8"),u=r?JSON.parse(s):uh(i);if(!u)return!1;for(var l in u)if(u[l].Component&&u[l].Provider&&u[l].Properties)return!0;return u.hasOwnProperty("edition")}function ah(){if(process.env.serverless_devs_temp_template)return process.env.serverless_devs_temp_template;var i=process.cwd(),r=process.argv.includes("-t")?"-t":process.argv.includes("--template")?"--template":null,s=r?process.argv.indexOf(r):-1;if(s!==-1){var u=s+1,l=process.argv[u];if(l&&(l.endsWith(".yaml")||l.endsWith(".yml")||l.endsWith(".json"))){var f=!!l.endsWith(".json");if(Me.default.existsSync(de.default.join(i,l))&&Or(de.default.join(i,l),f)){process.argv.splice(s,2);var _=JSON.parse(process.env.serverless_devs_temp_argv);return _.splice(_.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(_),process.env.serverless_devs_temp_template=de.default.join(i,l),de.default.join(i,l)}else if(Me.default.existsSync(l)&&Or(l,f)){process.argv.splice(s,2);var _=JSON.parse(process.env.serverless_devs_temp_argv);return _.splice(_.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(_),process.env.serverless_devs_temp_template=l,l}}}return Me.default.existsSync(de.default.join(i,"s.yaml"))&&Or(de.default.join(i,"s.yaml"))?(process.env.serverless_devs_temp_template=de.default.join(i,"s.yaml"),de.default.join(i,"s.yaml")):Me.default.existsSync(de.default.join(i,"s.yml"))&&Or(de.default.join(i,"s.yml"))?(process.env.serverless_devs_temp_template=de.default.join(i,"s.yml"),de.default.join(i,"s.yml")):Me.default.existsSync(de.default.join(i,"s.json"))&&Or(de.default.join(i,"s.json"),!0)?(process.env.serverless_devs_temp_template=de.default.join(i,"s.json"),de.default.join(i,"s.json")):null}G.checkAndReturnTemplateFile=ah;function lh(i){return Me.default.existsSync(i)?i:null}G.checkTemplateFile=lh;function fh(i,r){r===void 0&&(r=" ");for(var s="",u=0;u<i;u++)s=s+r;return s}G.printn=fh;function ch(){return"en"}G.getLang=ch;function Ho(i,r){var s=/\{\{(.*?)\}\}/g,u=i.match(s);if(u)for(var l=0;l<u.length;l++){var f=u[l].replace(/{{|}}/g,""),_=Fo.default.trim(f.split("|")[0]);r[_]&&(i=i.replace(u[l],r[_]))}return i}G.replaceFun=Ho;function hh(i){var r=/\{\{(.*?)\}\}/g,s=i.match(r);return s?s.filter(function(u){return u}).map(function(u){var l=u.replace(/{{|}}/g,""),f=l.split("|");return{name:Fo.default.trim(f[0]),desc:Fo.default.trim(f[1])}}):[]}G.getTemplatekey=hh;function ph(i,r){i.forEach(function(s){if(Me.default.existsSync(s)){var u=Me.default.readFileSync(s,"utf-8"),l=Ho(u,r);Me.default.writeFileSync(s,l,"utf-8")}})}G.replaceTemplate=ph;function dh(i){if(!i)return i;var r=i.slice(-4);return"***********"+r}G.mark=dh;function Mw(i){return Dw.default.platform()==="win32"?"":i}G.emoji=Mw;G.default={checkAndReturnTemplateFile:ah,checkTemplateFile:lh,printn:fh,mark:dh,getLang:ch,replaceTemplate:ph,replaceFun:Ho,getTemplatekey:hh}});var gh=T(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.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 _h=T(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.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 vh=T(Sr=>{"use strict";var mh=Sr&&Sr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Sr,"__esModule",{value:!0});var Hw=Ar(),Ww=mh(gh()),Gw=mh(_h()),Uo={en:Gw.default,zh:Ww.default},Uw=function(i){var r=(0,Hw.getLang)(),s=Uo[r]?Uo[r][i]:Uo.en[i];return s||i};Sr.default=Uw});var Eh=T(Rr=>{"use strict";var Bw=Rr&&Rr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Rr,"__esModule",{value:!0});var yh=Bw(lt()),jw=yh.default.Logger,Xw=yh.default.spinner,un=new jw("S-CLI"),zw=function(){function i(){}return i.log=function(r){un.log(r)},i.info=function(r){un.info(r)},i.debug=function(r){un.debug(r)},i.error=function(r){un.error(r)},i.warning=function(r){un.warn(r)},i.success=function(r){un.log(r,"green")},i.spinner=function(r){return Xw(r)},i.output=function(r){return un.output(r)},i}();Rr.default=zw});"use strict";var Ir=exports&&exports.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(exports,"__esModule",{value:!0});var Vw=Ir($l()),br=Ir(lt()),Ui=Ir(vh()),ht=Ir(require("path")),Fn=Ir(Eh()),Yw=Do(),Kw=Ar(),Mn=br.default.rimraf,Zw=br.default.minimist,Bo=br.default.fse,kw=br.default.colors,Jw=br.default.getRootHome,Qw=`Clean up the cache related functions of serverless devs. You can clean up the environment, unused dependent packages and related cache contents through this command.
45
+ `))}return i.prototype.report=function(r){return pw(this,void 0,void 0,function(){return dw(this,function(s){return mw({type:"jsError",content:r.message+"||"+r.stack,traceId:this.traceId}),[2]})})},i}();te.HandleError=bw});var ih=T((oA,Cw)=>{Cw.exports={name:"@serverless-devs/s",version:"2.0.95-beta.1",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:{prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",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:{"@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",commander:"^6.0.0",dotenv:"^10.0.0",esbuild:"^0.13.6",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.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"^0.1.15-beta.2"}}});var Ar=T(G=>{"use strict";var Tw=G&&G.__createBinding||(Object.create?function(i,r,s,u){u===void 0&&(u=s),Object.defineProperty(i,u,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,u){u===void 0&&(u=s),i[u]=r[s]}),Lw=G&&G.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),$w=G&&G.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&Tw(r,i,s);return Lw(r,i),r},sh=G&&G.__awaiter||function(i,r,s,u){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function y(S){try{d(u.next(S))}catch(b){_(b)}}function w(S){try{d(u.throw(S))}catch(b){_(b)}}function d(S){S.done?f(S.value):l(S.value).then(y,w)}d((u=u.apply(i,r||[])).next())})},oh=G&&G.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},u,l,f,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(d){return function(S){return w([d,S])}}function w(d){if(u)throw new TypeError("Generator is already executing.");for(;s;)try{if(u=1,l&&(f=d[0]&2?l.return:d[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,d[1])).done)return f;switch(l=0,f&&(d=[d[0]&2,f.value]),d[0]){case 0:case 1:f=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,l=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!f||d[1]>f[0]&&d[1]<f[3])){s.label=d[1];break}if(d[0]===6&&s.label<f[1]){s.label=f[1],f=d;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(d);break}f[2]&&s.ops.pop(),s.trys.pop();continue}d=r.call(i,s)}catch(S){d=[6,S],l=0}finally{u=f=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Hi=G&&G.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(G,"__esModule",{value:!0});G.emoji=G.mark=G.replaceTemplate=G.getTemplatekey=G.replaceFun=G.getLang=G.printn=G.checkTemplateFile=G.checkAndReturnTemplateFile=G.yamlLoad=G.getFolderSize=G.getVersion=G.bgRed=G.red=void 0;var de=Hi(require("path")),Me=Hi(require("fs")),Fo=Hi(Pc()),Dw=Hi(require("os")),Nw=rh(),Wi=$w(lt()),Mo=Wi.default.colors,qw=Wi.default.jsyaml,Gi=ih();G.red=Mo.hex("#fd5750");G.bgRed=Mo.hex("#000").bgHex("#fd5750");function Pw(){return(0,Wi.getCoreVersion)()?Gi.name+": "+Gi.version+", @serverless-devs/core: "+(0,Wi.getCoreVersion)()+", "+process.platform+"-"+process.arch+", node-"+process.version:Gi.name+": "+Gi.version+", "+process.platform+"-"+process.arch+", node-"+process.version}G.getVersion=Pw;function Fw(i){return sh(this,void 0,void 0,function(){function r(l){return sh(this,void 0,void 0,function(){var f,_;return oh(this,function(y){switch(y.label){case 0:return f=Me.default.lstatSync(l),typeof f!="object"?[2]:(s.set(f.ino,f.size),f.isDirectory()?(_=Me.default.readdirSync(l),typeof _!="object"?[2]:[4,Promise.all(_.map(function(w){return r(de.default.join(l,w))}))]):[3,2]);case 1:y.sent(),y.label=2;case 2:return[2]}})})}var s,u;return oh(this,function(l){switch(l.label){case 0:return s=new Map,[4,r(i)];case 1:return l.sent(),u=Array.from(s.values()).reduce(function(f,_){return f+_},0),[2,u]}})})}G.getFolderSize=Fw;function uh(i){var r=Me.default.readFileSync(i,"utf8");try{return qw.load(r)}catch{if(["-h","--help"].includes(process.argv[2]))return;var s=de.default.basename(i);new Nw.HumanError({errorMessage:s+" format is incorrect",tips:"Please check the configuration of "+s+", Serverless Devs' Yaml specification document can refer to\uFF1A"+Mo.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/yaml.md")}),process.exit(1)}}G.yamlLoad=uh;function Or(i,r){r===void 0&&(r=!1);var s=Me.default.readFileSync(i,"utf8"),u=r?JSON.parse(s):uh(i);if(!u)return!1;for(var l in u)if(u[l].Component&&u[l].Provider&&u[l].Properties)return!0;return u.hasOwnProperty("edition")}function ah(){if(process.env.serverless_devs_temp_template)return process.env.serverless_devs_temp_template;var i=process.cwd(),r=process.argv.includes("-t")?"-t":process.argv.includes("--template")?"--template":null,s=r?process.argv.indexOf(r):-1;if(s!==-1){var u=s+1,l=process.argv[u];if(l&&(l.endsWith(".yaml")||l.endsWith(".yml")||l.endsWith(".json"))){var f=!!l.endsWith(".json");if(Me.default.existsSync(de.default.join(i,l))&&Or(de.default.join(i,l),f)){process.argv.splice(s,2);var _=JSON.parse(process.env.serverless_devs_temp_argv);return _.splice(_.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(_),process.env.serverless_devs_temp_template=de.default.join(i,l),de.default.join(i,l)}else if(Me.default.existsSync(l)&&Or(l,f)){process.argv.splice(s,2);var _=JSON.parse(process.env.serverless_devs_temp_argv);return _.splice(_.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(_),process.env.serverless_devs_temp_template=l,l}}}return Me.default.existsSync(de.default.join(i,"s.yaml"))&&Or(de.default.join(i,"s.yaml"))?(process.env.serverless_devs_temp_template=de.default.join(i,"s.yaml"),de.default.join(i,"s.yaml")):Me.default.existsSync(de.default.join(i,"s.yml"))&&Or(de.default.join(i,"s.yml"))?(process.env.serverless_devs_temp_template=de.default.join(i,"s.yml"),de.default.join(i,"s.yml")):Me.default.existsSync(de.default.join(i,"s.json"))&&Or(de.default.join(i,"s.json"),!0)?(process.env.serverless_devs_temp_template=de.default.join(i,"s.json"),de.default.join(i,"s.json")):null}G.checkAndReturnTemplateFile=ah;function lh(i){return Me.default.existsSync(i)?i:null}G.checkTemplateFile=lh;function fh(i,r){r===void 0&&(r=" ");for(var s="",u=0;u<i;u++)s=s+r;return s}G.printn=fh;function ch(){return"en"}G.getLang=ch;function Ho(i,r){var s=/\{\{(.*?)\}\}/g,u=i.match(s);if(u)for(var l=0;l<u.length;l++){var f=u[l].replace(/{{|}}/g,""),_=Fo.default.trim(f.split("|")[0]);r[_]&&(i=i.replace(u[l],r[_]))}return i}G.replaceFun=Ho;function hh(i){var r=/\{\{(.*?)\}\}/g,s=i.match(r);return s?s.filter(function(u){return u}).map(function(u){var l=u.replace(/{{|}}/g,""),f=l.split("|");return{name:Fo.default.trim(f[0]),desc:Fo.default.trim(f[1])}}):[]}G.getTemplatekey=hh;function ph(i,r){i.forEach(function(s){if(Me.default.existsSync(s)){var u=Me.default.readFileSync(s,"utf-8"),l=Ho(u,r);Me.default.writeFileSync(s,l,"utf-8")}})}G.replaceTemplate=ph;function dh(i){if(!i)return i;var r=i.slice(-4);return"***********"+r}G.mark=dh;function Mw(i){return Dw.default.platform()==="win32"?"":i}G.emoji=Mw;G.default={checkAndReturnTemplateFile:ah,checkTemplateFile:lh,printn:fh,mark:dh,getLang:ch,replaceTemplate:ph,replaceFun:Ho,getTemplatekey:hh}});var gh=T(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.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 _h=T(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.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 vh=T(Sr=>{"use strict";var mh=Sr&&Sr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Sr,"__esModule",{value:!0});var Hw=Ar(),Ww=mh(gh()),Gw=mh(_h()),Uo={en:Gw.default,zh:Ww.default},Uw=function(i){var r=(0,Hw.getLang)(),s=Uo[r]?Uo[r][i]:Uo.en[i];return s||i};Sr.default=Uw});var Eh=T(Rr=>{"use strict";var Bw=Rr&&Rr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Rr,"__esModule",{value:!0});var yh=Bw(lt()),jw=yh.default.Logger,Xw=yh.default.spinner,un=new jw("S-CLI"),zw=function(){function i(){}return i.log=function(r){un.log(r)},i.info=function(r){un.info(r)},i.debug=function(r){un.debug(r)},i.error=function(r){un.error(r)},i.warning=function(r){un.warn(r)},i.success=function(r){un.log(r,"green")},i.spinner=function(r){return Xw(r)},i.output=function(r){return un.output(r)},i}();Rr.default=zw});"use strict";var Ir=exports&&exports.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(exports,"__esModule",{value:!0});var Vw=Ir($l()),br=Ir(lt()),Ui=Ir(vh()),ht=Ir(require("path")),Fn=Ir(Eh()),Yw=Do(),Kw=Ar(),Mn=br.default.rimraf,Zw=br.default.minimist,Bo=br.default.fse,kw=br.default.colors,Jw=br.default.getRootHome,Qw=`Clean up the cache related functions of serverless devs. You can clean up the environment, unused dependent packages and related cache contents through this command.
46
46
 
47
47
  Example:
48
48
  $ s clean --component fc-api
package/lib/cli/index.js CHANGED
@@ -31,13 +31,13 @@ __p += '`),J&&(A+=`' +
31
31
  function print() { __p += __j.call(arguments, '') }
32
32
  `:`;
33
33
  `)+A+`return __p
34
- }`;var W=wc(function(){return Q(d,q+"return "+A).apply(i,m)});if(W.source=A,Do(W))throw W;return W}function py(e){return ee(e).toLowerCase()}function dy(e){return ee(e).toUpperCase()}function gy(e,t,s){if(e=ee(e),e&&(s||t===i))return Ia(e);if(!e||!(t=ze(t)))return e;var l=ht(e),f=ht(t),d=Pa(l,f),m=Ta(l,f)+1;return tr(l,d,m).join("")}function my(e,t,s){if(e=ee(e),e&&(s||t===i))return e.slice(0,Na(e)+1);if(!e||!(t=ze(t)))return e;var l=ht(e),f=Ta(l,ht(t))+1;return tr(l,0,f).join("")}function vy(e,t,s){if(e=ee(e),e&&(s||t===i))return e.replace(Ns,"");if(!e||!(t=ze(t)))return e;var l=ht(e),f=Pa(l,ht(t));return tr(l,f).join("")}function _y(e,t){var s=It,l=hd;if(fe(t)){var f="separator"in t?t.separator:f;s="length"in t?B(t.length):s,l="omission"in t?ze(t.omission):l}e=ee(e);var d=e.length;if(Dr(e)){var m=ht(e);d=m.length}if(s>=d)return e;var y=s-qr(l);if(y<1)return l;var E=m?tr(m,0,y).join(""):e.slice(0,y);if(f===i)return E+l;if(m&&(y+=E.length-y),qo(f)){if(e.slice(y).search(f)){var O,x=E;for(f.global||(f=Ks(f.source,ee(Ju.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var A=O.index;E=E.slice(0,A===i?y:A)}}else if(e.indexOf(ze(f),y)!=y){var T=E.lastIndexOf(f);T>-1&&(E=E.slice(0,T))}return E+l}function yy(e){return e=ee(e),e&&Pd.test(e)?e.replace(Xu,Xg):e}var wy=Ur(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Mo=El("toUpperCase");function yc(e,t,s){return e=ee(e),t=s?i:t,t===i?Bg(e)?Jg(e):Dg(e):e.match(t)||[]}var wc=V(function(e,t){try{return ke(e,i,t)}catch(s){return Do(s)?s:new j(s)}}),Ey=qt(function(e,t){return et(t,function(s){s=wt(s),Nt(e,s,Lo(e[s],e))}),e});function by(e){var t=e==null?0:e.length,s=$();return e=t?ce(e,function(l){if(typeof l[1]!="function")throw new tt(a);return[s(l[0]),l[1]]}):[],V(function(l){for(var f=-1;++f<t;){var d=e[f];if(ke(d[0],this,l))return ke(d[1],this,l)}})}function Sy(e){return Xm(nt(e,c))}function jo(e){return function(){return e}}function Cy(e,t){return e==null||e!==e?t:e}var Oy=Sl(),xy=Sl(!0);function Be(e){return e}function Ho(e){return Qa(typeof e=="function"?e:nt(e,c))}function Ay(e){return tl(nt(e,c))}function Ry(e,t){return rl(e,nt(t,c))}var Iy=V(function(e,t){return function(s){return En(s,e,t)}}),Py=V(function(e,t){return function(s){return En(e,s,t)}});function Uo(e,t,s){var l=be(t),f=Ai(t,l);s==null&&!(fe(t)&&(f.length||!l.length))&&(s=t,t=e,e=this,f=Ai(t,be(t)));var d=!(fe(s)&&"chain"in s)||!!s.chain,m=Ft(e);return et(f,function(y){var E=t[y];e[y]=E,m&&(e.prototype[y]=function(){var O=this.__chain__;if(d||O){var x=e(this.__wrapped__),A=x.__actions__=He(this.__actions__);return A.push({func:E,args:arguments,thisArg:e}),x.__chain__=O,x}return E.apply(e,Xt([this.value()],arguments))})}),e}function Ty(){return Ee._===this&&(Ee._=nm),this}function Go(){}function Ly(e){return e=B(e),V(function(t){return nl(t,e)})}var Ny=yo(ce),Dy=yo(Ca),qy=yo(Bs);function Ec(e){return xo(e)?Ws(wt(e)):fv(e)}function $y(e){return function(t){return e==null?i:fr(e,t)}}var Fy=Ol(),My=Ol(!0);function Bo(){return[]}function Wo(){return!1}function jy(){return{}}function Hy(){return""}function Uy(){return!0}function Gy(e,t){if(e=B(e),e<1||e>Vt)return[];var s=vt,l=Ie(e,vt);t=$(t),e-=vt;for(var f=zs(l,t);++s<e;)t(s);return f}function By(e){return U(e)?ce(e,wt):Xe(e)?[e]:He(Ul(ee(e)))}function Wy(e){var t=++tm;return ee(e)+t}var ky=Ni(function(e,t){return e+t},0),Vy=wo("ceil"),zy=Ni(function(e,t){return e/t},1),Xy=wo("floor");function Yy(e){return e&&e.length?xi(e,Be,io):i}function Ky(e,t){return e&&e.length?xi(e,$(t,2),io):i}function Jy(e){return Aa(e,Be)}function Zy(e,t){return Aa(e,$(t,2))}function Qy(e){return e&&e.length?xi(e,Be,ao):i}function ew(e,t){return e&&e.length?xi(e,$(t,2),ao):i}var tw=Ni(function(e,t){return e*t},1),rw=wo("round"),nw=Ni(function(e,t){return e-t},0);function iw(e){return e&&e.length?Vs(e,Be):0}function sw(e,t){return e&&e.length?Vs(e,$(t,2)):0}return h.after=A0,h.ary=Zl,h.assign=d1,h.assignIn=hc,h.assignInWith=Vi,h.assignWith=g1,h.at=m1,h.before=Ql,h.bind=Lo,h.bindAll=Ey,h.bindKey=ec,h.castArray=j0,h.chain=Yl,h.chunk=Xv,h.compact=Yv,h.concat=Kv,h.cond=by,h.conforms=Sy,h.constant=jo,h.countBy=i0,h.create=v1,h.curry=tc,h.curryRight=rc,h.debounce=nc,h.defaults=_1,h.defaultsDeep=y1,h.defer=R0,h.delay=I0,h.difference=Jv,h.differenceBy=Zv,h.differenceWith=Qv,h.drop=e_,h.dropRight=t_,h.dropRightWhile=r_,h.dropWhile=n_,h.fill=i_,h.filter=o0,h.flatMap=l0,h.flatMapDeep=c0,h.flatMapDepth=f0,h.flatten=kl,h.flattenDeep=s_,h.flattenDepth=o_,h.flip=P0,h.flow=Oy,h.flowRight=xy,h.fromPairs=u_,h.functions=x1,h.functionsIn=A1,h.groupBy=h0,h.initial=l_,h.intersection=c_,h.intersectionBy=f_,h.intersectionWith=h_,h.invert=I1,h.invertBy=P1,h.invokeMap=d0,h.iteratee=Ho,h.keyBy=g0,h.keys=be,h.keysIn=Ge,h.map=Hi,h.mapKeys=L1,h.mapValues=N1,h.matches=Ay,h.matchesProperty=Ry,h.memoize=Gi,h.merge=D1,h.mergeWith=pc,h.method=Iy,h.methodOf=Py,h.mixin=Uo,h.negate=Bi,h.nthArg=Ly,h.omit=q1,h.omitBy=$1,h.once=T0,h.orderBy=m0,h.over=Ny,h.overArgs=L0,h.overEvery=Dy,h.overSome=qy,h.partial=No,h.partialRight=ic,h.partition=v0,h.pick=F1,h.pickBy=dc,h.property=Ec,h.propertyOf=$y,h.pull=m_,h.pullAll=zl,h.pullAllBy=v_,h.pullAllWith=__,h.pullAt=y_,h.range=Fy,h.rangeRight=My,h.rearg=N0,h.reject=w0,h.remove=w_,h.rest=D0,h.reverse=Po,h.sampleSize=b0,h.set=j1,h.setWith=H1,h.shuffle=S0,h.slice=E_,h.sortBy=x0,h.sortedUniq=R_,h.sortedUniqBy=I_,h.split=ly,h.spread=q0,h.tail=P_,h.take=T_,h.takeRight=L_,h.takeRightWhile=N_,h.takeWhile=D_,h.tap=Y_,h.throttle=$0,h.thru=ji,h.toArray=lc,h.toPairs=gc,h.toPairsIn=mc,h.toPath=By,h.toPlainObject=fc,h.transform=U1,h.unary=F0,h.union=q_,h.unionBy=$_,h.unionWith=F_,h.uniq=M_,h.uniqBy=j_,h.uniqWith=H_,h.unset=G1,h.unzip=To,h.unzipWith=Xl,h.update=B1,h.updateWith=W1,h.values=Wr,h.valuesIn=k1,h.without=U_,h.words=yc,h.wrap=M0,h.xor=G_,h.xorBy=B_,h.xorWith=W_,h.zip=k_,h.zipObject=V_,h.zipObjectDeep=z_,h.zipWith=X_,h.entries=gc,h.entriesIn=mc,h.extend=hc,h.extendWith=Vi,Uo(h,h),h.add=ky,h.attempt=wc,h.camelCase=Y1,h.capitalize=vc,h.ceil=Vy,h.clamp=V1,h.clone=H0,h.cloneDeep=G0,h.cloneDeepWith=B0,h.cloneWith=U0,h.conformsTo=W0,h.deburr=_c,h.defaultTo=Cy,h.divide=zy,h.endsWith=K1,h.eq=dt,h.escape=J1,h.escapeRegExp=Z1,h.every=s0,h.find=u0,h.findIndex=Bl,h.findKey=w1,h.findLast=a0,h.findLastIndex=Wl,h.findLastKey=E1,h.floor=Xy,h.forEach=Kl,h.forEachRight=Jl,h.forIn=b1,h.forInRight=S1,h.forOwn=C1,h.forOwnRight=O1,h.get=$o,h.gt=k0,h.gte=V0,h.has=R1,h.hasIn=Fo,h.head=Vl,h.identity=Be,h.includes=p0,h.indexOf=a_,h.inRange=z1,h.invoke=T1,h.isArguments=dr,h.isArray=U,h.isArrayBuffer=z0,h.isArrayLike=Ue,h.isArrayLikeObject=de,h.isBoolean=X0,h.isBuffer=rr,h.isDate=Y0,h.isElement=K0,h.isEmpty=J0,h.isEqual=Z0,h.isEqualWith=Q0,h.isError=Do,h.isFinite=e1,h.isFunction=Ft,h.isInteger=sc,h.isLength=Wi,h.isMap=oc,h.isMatch=t1,h.isMatchWith=r1,h.isNaN=n1,h.isNative=i1,h.isNil=o1,h.isNull=s1,h.isNumber=uc,h.isObject=fe,h.isObjectLike=he,h.isPlainObject=An,h.isRegExp=qo,h.isSafeInteger=u1,h.isSet=ac,h.isString=ki,h.isSymbol=Xe,h.isTypedArray=Br,h.isUndefined=a1,h.isWeakMap=l1,h.isWeakSet=c1,h.join=p_,h.kebabCase=Q1,h.last=st,h.lastIndexOf=d_,h.lowerCase=ey,h.lowerFirst=ty,h.lt=f1,h.lte=h1,h.max=Yy,h.maxBy=Ky,h.mean=Jy,h.meanBy=Zy,h.min=Qy,h.minBy=ew,h.stubArray=Bo,h.stubFalse=Wo,h.stubObject=jy,h.stubString=Hy,h.stubTrue=Uy,h.multiply=tw,h.nth=g_,h.noConflict=Ty,h.noop=Go,h.now=Ui,h.pad=ry,h.padEnd=ny,h.padStart=iy,h.parseInt=sy,h.random=X1,h.reduce=_0,h.reduceRight=y0,h.repeat=oy,h.replace=uy,h.result=M1,h.round=rw,h.runInContext=w,h.sample=E0,h.size=C0,h.snakeCase=ay,h.some=O0,h.sortedIndex=b_,h.sortedIndexBy=S_,h.sortedIndexOf=C_,h.sortedLastIndex=O_,h.sortedLastIndexBy=x_,h.sortedLastIndexOf=A_,h.startCase=cy,h.startsWith=fy,h.subtract=nw,h.sum=iw,h.sumBy=sw,h.template=hy,h.times=Gy,h.toFinite=Mt,h.toInteger=B,h.toLength=cc,h.toLower=py,h.toNumber=ot,h.toSafeInteger=p1,h.toString=ee,h.toUpper=dy,h.trim=gy,h.trimEnd=my,h.trimStart=vy,h.truncate=_y,h.unescape=yy,h.uniqueId=Wy,h.upperCase=wy,h.upperFirst=Mo,h.each=Kl,h.eachRight=Jl,h.first=Vl,Uo(h,function(){var e={};return _t(h,function(t,s){re.call(h.prototype,s)||(e[s]=t)}),e}(),{chain:!1}),h.VERSION=r,et(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),et(["drop","take"],function(e,t){X.prototype[e]=function(s){s=s===i?1:we(B(s),0);var l=this.__filtered__&&!t?new X(this):this.clone();return l.__filtered__?l.__takeCount__=Ie(s,l.__takeCount__):l.__views__.push({size:Ie(s,vt),type:e+(l.__dir__<0?"Right":"")}),l},X.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),et(["filter","map","takeWhile"],function(e,t){var s=t+1,l=s==ku||s==md;X.prototype[e]=function(f){var d=this.clone();return d.__iteratees__.push({iteratee:$(f,3),type:s}),d.__filtered__=d.__filtered__||l,d}}),et(["head","last"],function(e,t){var s="take"+(t?"Right":"");X.prototype[e]=function(){return this[s](1).value()[0]}}),et(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[s](1)}}),X.prototype.compact=function(){return this.filter(Be)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=V(function(e,t){return typeof e=="function"?new X(this):this.map(function(s){return En(s,e,t)})}),X.prototype.reject=function(e){return this.filter(Bi($(e)))},X.prototype.slice=function(e,t){e=B(e);var s=this;return s.__filtered__&&(e>0||t<0)?new X(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=B(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(vt)},_t(X.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),l=/^(?:head|last)$/.test(t),f=h[l?"take"+(t=="last"?"Right":""):t],d=l||/^find/.test(t);!f||(h.prototype[t]=function(){var m=this.__wrapped__,y=l?[1]:arguments,E=m instanceof X,O=y[0],x=E||U(m),A=function(z){var J=f.apply(h,Xt([z],y));return l&&T?J[0]:J};x&&s&&typeof O=="function"&&O.length!=1&&(E=x=!1);var T=this.__chain__,q=!!this.__actions__.length,F=d&&!T,W=E&&!q;if(!d&&x){m=W?m:new X(this);var M=e.apply(m,y);return M.__actions__.push({func:ji,args:[A],thisArg:i}),new rt(M,T)}return F&&W?e.apply(this,y):(M=this.thru(A),F?l?M.value()[0]:M.value():M)})}),et(["pop","push","shift","sort","splice","unshift"],function(e){var t=fi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",l=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var f=arguments;if(l&&!this.__chain__){var d=this.value();return t.apply(U(d)?d:[],f)}return this[s](function(m){return t.apply(U(m)?m:[],f)})}}),_t(X.prototype,function(e,t){var s=h[t];if(s){var l=s.name+"";re.call(Mr,l)||(Mr[l]=[]),Mr[l].push({name:t,func:s})}}),Mr[Li(i,te).name]=[{name:"wrapper",func:i}],X.prototype.clone=ym,X.prototype.reverse=wm,X.prototype.value=Em,h.prototype.at=K_,h.prototype.chain=J_,h.prototype.commit=Z_,h.prototype.next=Q_,h.prototype.plant=t0,h.prototype.reverse=r0,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=n0,h.prototype.first=h.prototype.head,dn&&(h.prototype[dn]=e0),h},Kt=Zg();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Ee._=Kt,define(function(){return Kt})):or?((or.exports=Kt)._=Kt,js._=Kt):Ee._=Kt}).call(kr)});var Tn=P((sO,Pc)=>{var aw="2.0.0",lw=256,cw=Number.MAX_SAFE_INTEGER||9007199254740991,fw=16;Pc.exports={SEMVER_SPEC_VERSION:aw,MAX_LENGTH:lw,MAX_SAFE_INTEGER:cw,MAX_SAFE_COMPONENT_LENGTH:fw}});var Ln=P((oO,Tc)=>{var hw=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Tc.exports=hw});var vr=P((nr,Lc)=>{var{MAX_SAFE_COMPONENT_LENGTH:Yo}=Tn(),pw=Ln();nr=Lc.exports={};var dw=nr.re=[],N=nr.src=[],D=nr.t={},gw=0,k=(i,r,n)=>{let u=gw++;pw(u,r),D[i]=u,N[u]=r,dw[u]=new RegExp(r,n?"g":void 0)};k("NUMERICIDENTIFIER","0|[1-9]\\d*");k("NUMERICIDENTIFIERLOOSE","[0-9]+");k("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");k("MAINVERSION",`(${N[D.NUMERICIDENTIFIER]})\\.(${N[D.NUMERICIDENTIFIER]})\\.(${N[D.NUMERICIDENTIFIER]})`);k("MAINVERSIONLOOSE",`(${N[D.NUMERICIDENTIFIERLOOSE]})\\.(${N[D.NUMERICIDENTIFIERLOOSE]})\\.(${N[D.NUMERICIDENTIFIERLOOSE]})`);k("PRERELEASEIDENTIFIER",`(?:${N[D.NUMERICIDENTIFIER]}|${N[D.NONNUMERICIDENTIFIER]})`);k("PRERELEASEIDENTIFIERLOOSE",`(?:${N[D.NUMERICIDENTIFIERLOOSE]}|${N[D.NONNUMERICIDENTIFIER]})`);k("PRERELEASE",`(?:-(${N[D.PRERELEASEIDENTIFIER]}(?:\\.${N[D.PRERELEASEIDENTIFIER]})*))`);k("PRERELEASELOOSE",`(?:-?(${N[D.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${N[D.PRERELEASEIDENTIFIERLOOSE]})*))`);k("BUILDIDENTIFIER","[0-9A-Za-z-]+");k("BUILD",`(?:\\+(${N[D.BUILDIDENTIFIER]}(?:\\.${N[D.BUILDIDENTIFIER]})*))`);k("FULLPLAIN",`v?${N[D.MAINVERSION]}${N[D.PRERELEASE]}?${N[D.BUILD]}?`);k("FULL",`^${N[D.FULLPLAIN]}$`);k("LOOSEPLAIN",`[v=\\s]*${N[D.MAINVERSIONLOOSE]}${N[D.PRERELEASELOOSE]}?${N[D.BUILD]}?`);k("LOOSE",`^${N[D.LOOSEPLAIN]}$`);k("GTLT","((?:<|>)?=?)");k("XRANGEIDENTIFIERLOOSE",`${N[D.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);k("XRANGEIDENTIFIER",`${N[D.NUMERICIDENTIFIER]}|x|X|\\*`);k("XRANGEPLAIN",`[v=\\s]*(${N[D.XRANGEIDENTIFIER]})(?:\\.(${N[D.XRANGEIDENTIFIER]})(?:\\.(${N[D.XRANGEIDENTIFIER]})(?:${N[D.PRERELEASE]})?${N[D.BUILD]}?)?)?`);k("XRANGEPLAINLOOSE",`[v=\\s]*(${N[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${N[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${N[D.XRANGEIDENTIFIERLOOSE]})(?:${N[D.PRERELEASELOOSE]})?${N[D.BUILD]}?)?)?`);k("XRANGE",`^${N[D.GTLT]}\\s*${N[D.XRANGEPLAIN]}$`);k("XRANGELOOSE",`^${N[D.GTLT]}\\s*${N[D.XRANGEPLAINLOOSE]}$`);k("COERCE",`(^|[^\\d])(\\d{1,${Yo}})(?:\\.(\\d{1,${Yo}}))?(?:\\.(\\d{1,${Yo}}))?(?:$|[^\\d])`);k("COERCERTL",N[D.COERCE],!0);k("LONETILDE","(?:~>?)");k("TILDETRIM",`(\\s*)${N[D.LONETILDE]}\\s+`,!0);nr.tildeTrimReplace="$1~";k("TILDE",`^${N[D.LONETILDE]}${N[D.XRANGEPLAIN]}$`);k("TILDELOOSE",`^${N[D.LONETILDE]}${N[D.XRANGEPLAINLOOSE]}$`);k("LONECARET","(?:\\^)");k("CARETTRIM",`(\\s*)${N[D.LONECARET]}\\s+`,!0);nr.caretTrimReplace="$1^";k("CARET",`^${N[D.LONECARET]}${N[D.XRANGEPLAIN]}$`);k("CARETLOOSE",`^${N[D.LONECARET]}${N[D.XRANGEPLAINLOOSE]}$`);k("COMPARATORLOOSE",`^${N[D.GTLT]}\\s*(${N[D.LOOSEPLAIN]})$|^$`);k("COMPARATOR",`^${N[D.GTLT]}\\s*(${N[D.FULLPLAIN]})$|^$`);k("COMPARATORTRIM",`(\\s*)${N[D.GTLT]}\\s*(${N[D.LOOSEPLAIN]}|${N[D.XRANGEPLAIN]})`,!0);nr.comparatorTrimReplace="$1$2$3";k("HYPHENRANGE",`^\\s*(${N[D.XRANGEPLAIN]})\\s+-\\s+(${N[D.XRANGEPLAIN]})\\s*$`);k("HYPHENRANGELOOSE",`^\\s*(${N[D.XRANGEPLAINLOOSE]})\\s+-\\s+(${N[D.XRANGEPLAINLOOSE]})\\s*$`);k("STAR","(<|>)?=?\\s*\\*");k("GTE0","^\\s*>=\\s*0.0.0\\s*$");k("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Nn=P((uO,Nc)=>{var mw=["includePrerelease","loose","rtl"],vw=i=>i?typeof i!="object"?{loose:!0}:mw.filter(r=>i[r]).reduce((r,n)=>(r[n]=!0,r),{}):{};Nc.exports=vw});var Yi=P((aO,$c)=>{var Dc=/^[0-9]+$/,qc=(i,r)=>{let n=Dc.test(i),u=Dc.test(r);return n&&u&&(i=+i,r=+r),i===r?0:n&&!u?-1:u&&!n?1:i<r?-1:1},_w=(i,r)=>qc(r,i);$c.exports={compareIdentifiers:qc,rcompareIdentifiers:_w}});var Te=P((lO,Hc)=>{var Ki=Ln(),{MAX_LENGTH:Fc,MAX_SAFE_INTEGER:Ji}=Tn(),{re:Mc,t:jc}=vr(),yw=Nn(),{compareIdentifiers:Dn}=Yi(),ut=class{constructor(r,n){if(n=yw(n),r instanceof ut){if(r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>Fc)throw new TypeError(`version is longer than ${Fc} characters`);Ki("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let u=r.trim().match(n.loose?Mc[jc.LOOSE]:Mc[jc.FULL]);if(!u)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>Ji||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ji||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ji||this.patch<0)throw new TypeError("Invalid patch version");u[4]?this.prerelease=u[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let o=+a;if(o>=0&&o<Ji)return o}return a}):this.prerelease=[],this.build=u[5]?u[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(r){if(Ki("SemVer.compare",this.version,this.options,r),!(r instanceof ut)){if(typeof r=="string"&&r===this.version)return 0;r=new ut(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof ut||(r=new ut(r,this.options)),Dn(this.major,r.major)||Dn(this.minor,r.minor)||Dn(this.patch,r.patch)}comparePre(r){if(r instanceof ut||(r=new ut(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let n=0;do{let u=this.prerelease[n],a=r.prerelease[n];if(Ki("prerelease compare",n,u,a),u===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(u===void 0)return-1;if(u===a)continue;return Dn(u,a)}while(++n)}compareBuild(r){r instanceof ut||(r=new ut(r,this.options));let n=0;do{let u=this.build[n],a=r.build[n];if(Ki("prerelease compare",n,u,a),u===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(u===void 0)return-1;if(u===a)continue;return Dn(u,a)}while(++n)}inc(r,n){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n),this.inc("pre",n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n),this.inc("pre",n);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 u=this.prerelease.length;for(;--u>=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);u===-1&&this.prerelease.push(0)}n&&(this.prerelease[0]===n?isNaN(this.prerelease[1])&&(this.prerelease=[n,0]):this.prerelease=[n,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}};Hc.exports=ut});var _r=P((cO,Wc)=>{var{MAX_LENGTH:ww}=Tn(),{re:Uc,t:Gc}=vr(),Bc=Te(),Ew=Nn(),bw=(i,r)=>{if(r=Ew(r),i instanceof Bc)return i;if(typeof i!="string"||i.length>ww||!(r.loose?Uc[Gc.LOOSE]:Uc[Gc.FULL]).test(i))return null;try{return new Bc(i,r)}catch{return null}};Wc.exports=bw});var Vc=P((fO,kc)=>{var Sw=_r(),Cw=(i,r)=>{let n=Sw(i,r);return n?n.version:null};kc.exports=Cw});var Xc=P((hO,zc)=>{var Ow=_r(),xw=(i,r)=>{let n=Ow(i.trim().replace(/^[=v]+/,""),r);return n?n.version:null};zc.exports=xw});var Kc=P((pO,Yc)=>{var Aw=Te(),Rw=(i,r,n,u)=>{typeof n=="string"&&(u=n,n=void 0);try{return new Aw(i,n).inc(r,u).version}catch{return null}};Yc.exports=Rw});var at=P((dO,Zc)=>{var Jc=Te(),Iw=(i,r,n)=>new Jc(i,n).compare(new Jc(r,n));Zc.exports=Iw});var Zi=P((gO,Qc)=>{var Pw=at(),Tw=(i,r,n)=>Pw(i,r,n)===0;Qc.exports=Tw});var rf=P((mO,tf)=>{var ef=_r(),Lw=Zi(),Nw=(i,r)=>{if(Lw(i,r))return null;{let n=ef(i),u=ef(r),a=n.prerelease.length||u.prerelease.length,o=a?"pre":"",p=a?"prerelease":"";for(let g in n)if((g==="major"||g==="minor"||g==="patch")&&n[g]!==u[g])return o+g;return p}};tf.exports=Nw});var sf=P((vO,nf)=>{var Dw=Te(),qw=(i,r)=>new Dw(i,r).major;nf.exports=qw});var uf=P((_O,of)=>{var $w=Te(),Fw=(i,r)=>new $w(i,r).minor;of.exports=Fw});var lf=P((yO,af)=>{var Mw=Te(),jw=(i,r)=>new Mw(i,r).patch;af.exports=jw});var ff=P((wO,cf)=>{var Hw=_r(),Uw=(i,r)=>{let n=Hw(i,r);return n&&n.prerelease.length?n.prerelease:null};cf.exports=Uw});var pf=P((EO,hf)=>{var Gw=at(),Bw=(i,r,n)=>Gw(r,i,n);hf.exports=Bw});var gf=P((bO,df)=>{var Ww=at(),kw=(i,r)=>Ww(i,r,!0);df.exports=kw});var Qi=P((SO,vf)=>{var mf=Te(),Vw=(i,r,n)=>{let u=new mf(i,n),a=new mf(r,n);return u.compare(a)||u.compareBuild(a)};vf.exports=Vw});var yf=P((CO,_f)=>{var zw=Qi(),Xw=(i,r)=>i.sort((n,u)=>zw(n,u,r));_f.exports=Xw});var Ef=P((OO,wf)=>{var Yw=Qi(),Kw=(i,r)=>i.sort((n,u)=>Yw(u,n,r));wf.exports=Kw});var qn=P((xO,bf)=>{var Jw=at(),Zw=(i,r,n)=>Jw(i,r,n)>0;bf.exports=Zw});var es=P((AO,Sf)=>{var Qw=at(),eE=(i,r,n)=>Qw(i,r,n)<0;Sf.exports=eE});var Ko=P((RO,Cf)=>{var tE=at(),rE=(i,r,n)=>tE(i,r,n)!==0;Cf.exports=rE});var ts=P((IO,Of)=>{var nE=at(),iE=(i,r,n)=>nE(i,r,n)>=0;Of.exports=iE});var rs=P((PO,xf)=>{var sE=at(),oE=(i,r,n)=>sE(i,r,n)<=0;xf.exports=oE});var Jo=P((TO,Af)=>{var uE=Zi(),aE=Ko(),lE=qn(),cE=ts(),fE=es(),hE=rs(),pE=(i,r,n,u)=>{switch(r){case"===":return typeof i=="object"&&(i=i.version),typeof n=="object"&&(n=n.version),i===n;case"!==":return typeof i=="object"&&(i=i.version),typeof n=="object"&&(n=n.version),i!==n;case"":case"=":case"==":return uE(i,n,u);case"!=":return aE(i,n,u);case">":return lE(i,n,u);case">=":return cE(i,n,u);case"<":return fE(i,n,u);case"<=":return hE(i,n,u);default:throw new TypeError(`Invalid operator: ${r}`)}};Af.exports=pE});var If=P((LO,Rf)=>{var dE=Te(),gE=_r(),{re:ns,t:is}=vr(),mE=(i,r)=>{if(i instanceof dE)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;r=r||{};let n=null;if(!r.rtl)n=i.match(ns[is.COERCE]);else{let u;for(;(u=ns[is.COERCERTL].exec(i))&&(!n||n.index+n[0].length!==i.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),ns[is.COERCERTL].lastIndex=u.index+u[1].length+u[2].length;ns[is.COERCERTL].lastIndex=-1}return n===null?null:gE(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,r)};Rf.exports=mE});var Tf=P((NO,Pf)=>{"use strict";Pf.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var Nf=P((DO,Lf)=>{"use strict";Lf.exports=Z;Z.Node=yr;Z.create=Z;function Z(i){var r=this;if(r instanceof Z||(r=new Z),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(a){r.push(a)});else if(arguments.length>0)for(var n=0,u=arguments.length;n<u;n++)r.push(arguments[n]);return r}Z.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var r=i.next,n=i.prev;return r&&(r.prev=n),n&&(n.next=r),i===this.head&&(this.head=r),i===this.tail&&(this.tail=n),i.list.length--,i.next=null,i.prev=null,i.list=null,r};Z.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var r=this.head;i.list=this,i.next=r,r&&(r.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};Z.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var r=this.tail;i.list=this,i.prev=r,r&&(r.next=i),this.tail=i,this.head||(this.head=i),this.length++}};Z.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)_E(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)yE(this,arguments[i]);return this.length};Z.prototype.pop=function(){if(!!this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};Z.prototype.shift=function(){if(!!this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};Z.prototype.forEach=function(i,r){r=r||this;for(var n=this.head,u=0;n!==null;u++)i.call(r,n.value,u,this),n=n.next};Z.prototype.forEachReverse=function(i,r){r=r||this;for(var n=this.tail,u=this.length-1;n!==null;u--)i.call(r,n.value,u,this),n=n.prev};Z.prototype.get=function(i){for(var r=0,n=this.head;n!==null&&r<i;r++)n=n.next;if(r===i&&n!==null)return n.value};Z.prototype.getReverse=function(i){for(var r=0,n=this.tail;n!==null&&r<i;r++)n=n.prev;if(r===i&&n!==null)return n.value};Z.prototype.map=function(i,r){r=r||this;for(var n=new Z,u=this.head;u!==null;)n.push(i.call(r,u.value,this)),u=u.next;return n};Z.prototype.mapReverse=function(i,r){r=r||this;for(var n=new Z,u=this.tail;u!==null;)n.push(i.call(r,u.value,this)),u=u.prev;return n};Z.prototype.reduce=function(i,r){var n,u=this.head;if(arguments.length>1)n=r;else if(this.head)u=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;u!==null;a++)n=i(n,u.value,a),u=u.next;return n};Z.prototype.reduceReverse=function(i,r){var n,u=this.tail;if(arguments.length>1)n=r;else if(this.tail)u=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;u!==null;a--)n=i(n,u.value,a),u=u.prev;return n};Z.prototype.toArray=function(){for(var i=new Array(this.length),r=0,n=this.head;n!==null;r++)i[r]=n.value,n=n.next;return i};Z.prototype.toArrayReverse=function(){for(var i=new Array(this.length),r=0,n=this.tail;n!==null;r++)i[r]=n.value,n=n.prev;return i};Z.prototype.slice=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var n=new Z;if(r<i||r<0)return n;i<0&&(i=0),r>this.length&&(r=this.length);for(var u=0,a=this.head;a!==null&&u<i;u++)a=a.next;for(;a!==null&&u<r;u++,a=a.next)n.push(a.value);return n};Z.prototype.sliceReverse=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var n=new Z;if(r<i||r<0)return n;i<0&&(i=0),r>this.length&&(r=this.length);for(var u=this.length,a=this.tail;a!==null&&u>r;u--)a=a.prev;for(;a!==null&&u>i;u--,a=a.prev)n.push(a.value);return n};Z.prototype.splice=function(i,r,...n){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var u=0,a=this.head;a!==null&&u<i;u++)a=a.next;for(var o=[],u=0;a&&u<r;u++)o.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var u=0;u<n.length;u++)a=vE(this,a,n[u]);return o};Z.prototype.reverse=function(){for(var i=this.head,r=this.tail,n=i;n!==null;n=n.prev){var u=n.prev;n.prev=n.next,n.next=u}return this.head=r,this.tail=i,this};function vE(i,r,n){var u=r===i.head?new yr(n,null,r,i):new yr(n,r,r.next,i);return u.next===null&&(i.tail=u),u.prev===null&&(i.head=u),i.length++,u}function _E(i,r){i.tail=new yr(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function yE(i,r){i.head=new yr(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function yr(i,r,n,u){if(!(this instanceof yr))return new yr(i,r,n,u);this.list=u,this.value=i,r?(r.next=this,this.prev=r):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{Tf()(Z)}catch{}});var Hf=P((qO,jf)=>{"use strict";var wE=Nf(),wr=Symbol("max"),Ht=Symbol("length"),Vr=Symbol("lengthCalculator"),$n=Symbol("allowStale"),Er=Symbol("maxAge"),Ut=Symbol("dispose"),Df=Symbol("noDisposeOnSet"),Se=Symbol("lruList"),mt=Symbol("cache"),qf=Symbol("updateAgeOnGet"),Zo=()=>1,$f=class{constructor(r){if(typeof r=="number"&&(r={max:r}),r||(r={}),r.max&&(typeof r.max!="number"||r.max<0))throw new TypeError("max must be a non-negative number");let n=this[wr]=r.max||1/0,u=r.length||Zo;if(this[Vr]=typeof u!="function"?Zo:u,this[$n]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Er]=r.maxAge||0,this[Ut]=r.dispose,this[Df]=r.noDisposeOnSet||!1,this[qf]=r.updateAgeOnGet||!1,this.reset()}set max(r){if(typeof r!="number"||r<0)throw new TypeError("max must be a non-negative number");this[wr]=r||1/0,Fn(this)}get max(){return this[wr]}set allowStale(r){this[$n]=!!r}get allowStale(){return this[$n]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Er]=r,Fn(this)}get maxAge(){return this[Er]}set lengthCalculator(r){typeof r!="function"&&(r=Zo),r!==this[Vr]&&(this[Vr]=r,this[Ht]=0,this[Se].forEach(n=>{n.length=this[Vr](n.value,n.key),this[Ht]+=n.length})),Fn(this)}get lengthCalculator(){return this[Vr]}get length(){return this[Ht]}get itemCount(){return this[Se].length}rforEach(r,n){n=n||this;for(let u=this[Se].tail;u!==null;){let a=u.prev;Mf(this,r,u,n),u=a}}forEach(r,n){n=n||this;for(let u=this[Se].head;u!==null;){let a=u.next;Mf(this,r,u,n),u=a}}keys(){return this[Se].toArray().map(r=>r.key)}values(){return this[Se].toArray().map(r=>r.value)}reset(){this[Ut]&&this[Se]&&this[Se].length&&this[Se].forEach(r=>this[Ut](r.key,r.value)),this[mt]=new Map,this[Se]=new wE,this[Ht]=0}dump(){return this[Se].map(r=>ss(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[Se]}set(r,n,u){if(u=u||this[Er],u&&typeof u!="number")throw new TypeError("maxAge must be a number");let a=u?Date.now():0,o=this[Vr](n,r);if(this[mt].has(r)){if(o>this[wr])return zr(this,this[mt].get(r)),!1;let _=this[mt].get(r).value;return this[Ut]&&(this[Df]||this[Ut](r,_.value)),_.now=a,_.maxAge=u,_.value=n,this[Ht]+=o-_.length,_.length=o,this.get(r),Fn(this),!0}let p=new Ff(r,n,o,a,u);return p.length>this[wr]?(this[Ut]&&this[Ut](r,n),!1):(this[Ht]+=p.length,this[Se].unshift(p),this[mt].set(r,this[Se].head),Fn(this),!0)}has(r){if(!this[mt].has(r))return!1;let n=this[mt].get(r).value;return!ss(this,n)}get(r){return Qo(this,r,!0)}peek(r){return Qo(this,r,!1)}pop(){let r=this[Se].tail;return r?(zr(this,r),r.value):null}del(r){zr(this,this[mt].get(r))}load(r){this.reset();let n=Date.now();for(let u=r.length-1;u>=0;u--){let a=r[u],o=a.e||0;if(o===0)this.set(a.k,a.v);else{let p=o-n;p>0&&this.set(a.k,a.v,p)}}}prune(){this[mt].forEach((r,n)=>Qo(this,n,!1))}},Qo=(i,r,n)=>{let u=i[mt].get(r);if(u){let a=u.value;if(ss(i,a)){if(zr(i,u),!i[$n])return}else n&&(i[qf]&&(u.value.now=Date.now()),i[Se].unshiftNode(u));return a.value}},ss=(i,r)=>{if(!r||!r.maxAge&&!i[Er])return!1;let n=Date.now()-r.now;return r.maxAge?n>r.maxAge:i[Er]&&n>i[Er]},Fn=i=>{if(i[Ht]>i[wr])for(let r=i[Se].tail;i[Ht]>i[wr]&&r!==null;){let n=r.prev;zr(i,r),r=n}},zr=(i,r)=>{if(r){let n=r.value;i[Ut]&&i[Ut](n.key,n.value),i[Ht]-=n.length,i[mt].delete(n.key),i[Se].removeNode(r)}},Ff=class{constructor(r,n,u,a,o){this.key=r,this.value=n,this.length=u,this.now=a,this.maxAge=o||0}},Mf=(i,r,n,u)=>{let a=n.value;ss(i,a)&&(zr(i,n),i[$n]||(a=void 0)),a&&r.call(u,a.value,a.key,i)};jf.exports=$f});var lt=P(($O,Wf)=>{var Xr=class{constructor(r,n){if(n=bE(n),r instanceof Xr)return r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease?r:new Xr(r.raw,n);if(r instanceof eu)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(u=>this.parseRange(u.trim())).filter(u=>u.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let u=this.set[0];if(this.set=this.set.filter(a=>!Gf(a[0])),this.set.length===0)this.set=[u];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&AE(a[0])){this.set=[a];break}}}this.format()}format(){return this.range=this.set.map(r=>r.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(r){r=r.trim();let u=`parseRange:${Object.keys(this.options).join(",")}:${r}`,a=Uf.get(u);if(a)return a;let o=this.options.loose,p=o?Le[xe.HYPHENRANGELOOSE]:Le[xe.HYPHENRANGE];r=r.replace(p,FE(this.options.includePrerelease)),me("hyphen replace",r),r=r.replace(Le[xe.COMPARATORTRIM],CE),me("comparator trim",r,Le[xe.COMPARATORTRIM]),r=r.replace(Le[xe.TILDETRIM],OE),r=r.replace(Le[xe.CARETTRIM],xE),r=r.split(/\s+/).join(" ");let g=o?Le[xe.COMPARATORLOOSE]:Le[xe.COMPARATOR],_=r.split(" ").map(R=>RE(R,this.options)).join(" ").split(/\s+/).map(R=>$E(R,this.options)).filter(this.options.loose?R=>!!R.match(g):()=>!0).map(R=>new eu(R,this.options)),c=_.length,v=new Map;for(let R of _){if(Gf(R))return[R];v.set(R.value,R)}v.size>1&&v.has("")&&v.delete("");let b=[...v.values()];return Uf.set(u,b),b}intersects(r,n){if(!(r instanceof Xr))throw new TypeError("a Range is required");return this.set.some(u=>Bf(u,n)&&r.set.some(a=>Bf(a,n)&&u.every(o=>a.every(p=>o.intersects(p,n)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new SE(r,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(ME(this.set[n],r,this.options))return!0;return!1}};Wf.exports=Xr;var EE=Hf(),Uf=new EE({max:1e3}),bE=Nn(),eu=Mn(),me=Ln(),SE=Te(),{re:Le,t:xe,comparatorTrimReplace:CE,tildeTrimReplace:OE,caretTrimReplace:xE}=vr(),Gf=i=>i.value==="<0.0.0-0",AE=i=>i.value==="",Bf=(i,r)=>{let n=!0,u=i.slice(),a=u.pop();for(;n&&u.length;)n=u.every(o=>a.intersects(o,r)),a=u.pop();return n},RE=(i,r)=>(me("comp",i,r),i=TE(i,r),me("caret",i),i=IE(i,r),me("tildes",i),i=NE(i,r),me("xrange",i),i=qE(i,r),me("stars",i),i),Fe=i=>!i||i.toLowerCase()==="x"||i==="*",IE=(i,r)=>i.trim().split(/\s+/).map(n=>PE(n,r)).join(" "),PE=(i,r)=>{let n=r.loose?Le[xe.TILDELOOSE]:Le[xe.TILDE];return i.replace(n,(u,a,o,p,g)=>{me("tilde",i,u,a,o,p,g);let _;return Fe(a)?_="":Fe(o)?_=`>=${a}.0.0 <${+a+1}.0.0-0`:Fe(p)?_=`>=${a}.${o}.0 <${a}.${+o+1}.0-0`:g?(me("replaceTilde pr",g),_=`>=${a}.${o}.${p}-${g} <${a}.${+o+1}.0-0`):_=`>=${a}.${o}.${p} <${a}.${+o+1}.0-0`,me("tilde return",_),_})},TE=(i,r)=>i.trim().split(/\s+/).map(n=>LE(n,r)).join(" "),LE=(i,r)=>{me("caret",i,r);let n=r.loose?Le[xe.CARETLOOSE]:Le[xe.CARET],u=r.includePrerelease?"-0":"";return i.replace(n,(a,o,p,g,_)=>{me("caret",i,a,o,p,g,_);let c;return Fe(o)?c="":Fe(p)?c=`>=${o}.0.0${u} <${+o+1}.0.0-0`:Fe(g)?o==="0"?c=`>=${o}.${p}.0${u} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.0${u} <${+o+1}.0.0-0`:_?(me("replaceCaret pr",_),o==="0"?p==="0"?c=`>=${o}.${p}.${g}-${_} <${o}.${p}.${+g+1}-0`:c=`>=${o}.${p}.${g}-${_} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.${g}-${_} <${+o+1}.0.0-0`):(me("no pr"),o==="0"?p==="0"?c=`>=${o}.${p}.${g}${u} <${o}.${p}.${+g+1}-0`:c=`>=${o}.${p}.${g}${u} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.${g} <${+o+1}.0.0-0`),me("caret return",c),c})},NE=(i,r)=>(me("replaceXRanges",i,r),i.split(/\s+/).map(n=>DE(n,r)).join(" ")),DE=(i,r)=>{i=i.trim();let n=r.loose?Le[xe.XRANGELOOSE]:Le[xe.XRANGE];return i.replace(n,(u,a,o,p,g,_)=>{me("xRange",i,u,a,o,p,g,_);let c=Fe(o),v=c||Fe(p),b=v||Fe(g),R=b;return a==="="&&R&&(a=""),_=r.includePrerelease?"-0":"",c?a===">"||a==="<"?u="<0.0.0-0":u="*":a&&R?(v&&(p=0),g=0,a===">"?(a=">=",v?(o=+o+1,p=0,g=0):(p=+p+1,g=0)):a==="<="&&(a="<",v?o=+o+1:p=+p+1),a==="<"&&(_="-0"),u=`${a+o}.${p}.${g}${_}`):v?u=`>=${o}.0.0${_} <${+o+1}.0.0-0`:b&&(u=`>=${o}.${p}.0${_} <${o}.${+p+1}.0-0`),me("xRange return",u),u})},qE=(i,r)=>(me("replaceStars",i,r),i.trim().replace(Le[xe.STAR],"")),$E=(i,r)=>(me("replaceGTE0",i,r),i.trim().replace(Le[r.includePrerelease?xe.GTE0PRE:xe.GTE0],"")),FE=i=>(r,n,u,a,o,p,g,_,c,v,b,R,I)=>(Fe(u)?n="":Fe(a)?n=`>=${u}.0.0${i?"-0":""}`:Fe(o)?n=`>=${u}.${a}.0${i?"-0":""}`:p?n=`>=${n}`:n=`>=${n}${i?"-0":""}`,Fe(c)?_="":Fe(v)?_=`<${+c+1}.0.0-0`:Fe(b)?_=`<${c}.${+v+1}.0-0`:R?_=`<=${c}.${v}.${b}-${R}`:i?_=`<${c}.${v}.${+b+1}-0`:_=`<=${_}`,`${n} ${_}`.trim()),ME=(i,r,n)=>{for(let u=0;u<i.length;u++)if(!i[u].test(r))return!1;if(r.prerelease.length&&!n.includePrerelease){for(let u=0;u<i.length;u++)if(me(i[u].semver),i[u].semver!==eu.ANY&&i[u].semver.prerelease.length>0){let a=i[u].semver;if(a.major===r.major&&a.minor===r.minor&&a.patch===r.patch)return!0}return!1}return!0}});var Mn=P((FO,Yf)=>{var jn=Symbol("SemVer ANY"),Hn=class{static get ANY(){return jn}constructor(r,n){if(n=jE(n),r instanceof Hn){if(r.loose===!!n.loose)return r;r=r.value}ru("comparator",r,n),this.options=n,this.loose=!!n.loose,this.parse(r),this.semver===jn?this.value="":this.value=this.operator+this.semver.version,ru("comp",this)}parse(r){let n=this.options.loose?kf[Vf.COMPARATORLOOSE]:kf[Vf.COMPARATOR],u=r.match(n);if(!u)throw new TypeError(`Invalid comparator: ${r}`);this.operator=u[1]!==void 0?u[1]:"",this.operator==="="&&(this.operator=""),u[2]?this.semver=new zf(u[2],this.options.loose):this.semver=jn}toString(){return this.value}test(r){if(ru("Comparator.test",r,this.options.loose),this.semver===jn||r===jn)return!0;if(typeof r=="string")try{r=new zf(r,this.options)}catch{return!1}return tu(r,this.operator,this.semver,this.options)}intersects(r,n){if(!(r instanceof Hn))throw new TypeError("a Comparator is required");if((!n||typeof n!="object")&&(n={loose:!!n,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Xf(r.value,n).test(this.value);if(r.operator==="")return r.value===""?!0:new Xf(this.value,n).test(r.semver);let u=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),a=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),o=this.semver.version===r.semver.version,p=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),g=tu(this.semver,"<",r.semver,n)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),_=tu(this.semver,">",r.semver,n)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return u||a||o&&p||g||_}};Yf.exports=Hn;var jE=Nn(),{re:kf,t:Vf}=vr(),tu=Jo(),ru=Ln(),zf=Te(),Xf=lt()});var Un=P((MO,Kf)=>{var HE=lt(),UE=(i,r,n)=>{try{r=new HE(r,n)}catch{return!1}return r.test(i)};Kf.exports=UE});var Zf=P((jO,Jf)=>{var GE=lt(),BE=(i,r)=>new GE(i,r).set.map(n=>n.map(u=>u.value).join(" ").trim().split(" "));Jf.exports=BE});var eh=P((HO,Qf)=>{var WE=Te(),kE=lt(),VE=(i,r,n)=>{let u=null,a=null,o=null;try{o=new kE(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===-1)&&(u=p,a=new WE(u,n))}),u};Qf.exports=VE});var rh=P((UO,th)=>{var zE=Te(),XE=lt(),YE=(i,r,n)=>{let u=null,a=null,o=null;try{o=new XE(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===1)&&(u=p,a=new zE(u,n))}),u};th.exports=YE});var sh=P((GO,ih)=>{var nu=Te(),KE=lt(),nh=qn(),JE=(i,r)=>{i=new KE(i,r);let n=new nu("0.0.0");if(i.test(n)||(n=new nu("0.0.0-0"),i.test(n)))return n;n=null;for(let u=0;u<i.set.length;++u){let a=i.set[u],o=null;a.forEach(p=>{let g=new nu(p.semver.version);switch(p.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!o||nh(g,o))&&(o=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${p.operator}`)}}),o&&(!n||nh(n,o))&&(n=o)}return n&&i.test(n)?n:null};ih.exports=JE});var uh=P((BO,oh)=>{var ZE=lt(),QE=(i,r)=>{try{return new ZE(i,r).range||"*"}catch{return null}};oh.exports=QE});var os=P((WO,fh)=>{var eb=Te(),ah=Mn(),{ANY:tb}=ah,rb=lt(),nb=Un(),lh=qn(),ch=es(),ib=rs(),sb=ts(),ob=(i,r,n,u)=>{i=new eb(i,u),r=new rb(r,u);let a,o,p,g,_;switch(n){case">":a=lh,o=ib,p=ch,g=">",_=">=";break;case"<":a=ch,o=sb,p=lh,g="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(nb(i,r,u))return!1;for(let c=0;c<r.set.length;++c){let v=r.set[c],b=null,R=null;if(v.forEach(I=>{I.semver===tb&&(I=new ah(">=0.0.0")),b=b||I,R=R||I,a(I.semver,b.semver,u)?b=I:p(I.semver,R.semver,u)&&(R=I)}),b.operator===g||b.operator===_||(!R.operator||R.operator===g)&&o(i,R.semver))return!1;if(R.operator===_&&p(i,R.semver))return!1}return!0};fh.exports=ob});var ph=P((kO,hh)=>{var ub=os(),ab=(i,r,n)=>ub(i,r,">",n);hh.exports=ab});var gh=P((VO,dh)=>{var lb=os(),cb=(i,r,n)=>lb(i,r,"<",n);dh.exports=cb});var _h=P((zO,vh)=>{var mh=lt(),fb=(i,r,n)=>(i=new mh(i,n),r=new mh(r,n),i.intersects(r));vh.exports=fb});var wh=P((XO,yh)=>{var hb=Un(),pb=at();yh.exports=(i,r,n)=>{let u=[],a=null,o=null,p=i.sort((v,b)=>pb(v,b,n));for(let v of p)hb(v,r,n)?(o=v,a||(a=v)):(o&&u.push([a,o]),o=null,a=null);a&&u.push([a,null]);let g=[];for(let[v,b]of u)v===b?g.push(v):!b&&v===p[0]?g.push("*"):b?v===p[0]?g.push(`<=${b}`):g.push(`${v} - ${b}`):g.push(`>=${v}`);let _=g.join(" || "),c=typeof r.raw=="string"?r.raw:String(r);return _.length<c.length?_:r}});var Oh=P((YO,Ch)=>{var Eh=lt(),us=Mn(),{ANY:iu}=us,Gn=Un(),su=at(),db=(i,r,n={})=>{if(i===r)return!0;i=new Eh(i,n),r=new Eh(r,n);let u=!1;e:for(let a of i.set){for(let o of r.set){let p=gb(a,o,n);if(u=u||p!==null,p)continue e}if(u)return!1}return!0},gb=(i,r,n)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===iu){if(r.length===1&&r[0].semver===iu)return!0;n.includePrerelease?i=[new us(">=0.0.0-0")]:i=[new us(">=0.0.0")]}if(r.length===1&&r[0].semver===iu){if(n.includePrerelease)return!0;r=[new us(">=0.0.0")]}let u=new Set,a,o;for(let I of i)I.operator===">"||I.operator===">="?a=bh(a,I,n):I.operator==="<"||I.operator==="<="?o=Sh(o,I,n):u.add(I.semver);if(u.size>1)return null;let p;if(a&&o){if(p=su(a.semver,o.semver,n),p>0)return null;if(p===0&&(a.operator!==">="||o.operator!=="<="))return null}for(let I of u){if(a&&!Gn(I,String(a),n)||o&&!Gn(I,String(o),n))return null;for(let H of r)if(!Gn(I,String(H),n))return!1;return!0}let g,_,c,v,b=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,R=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;b&&b.prerelease.length===1&&o.operator==="<"&&b.prerelease[0]===0&&(b=!1);for(let I of r){if(v=v||I.operator===">"||I.operator===">=",c=c||I.operator==="<"||I.operator==="<=",a){if(R&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===R.major&&I.semver.minor===R.minor&&I.semver.patch===R.patch&&(R=!1),I.operator===">"||I.operator===">="){if(g=bh(a,I,n),g===I&&g!==a)return!1}else if(a.operator===">="&&!Gn(a.semver,String(I),n))return!1}if(o){if(b&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===b.major&&I.semver.minor===b.minor&&I.semver.patch===b.patch&&(b=!1),I.operator==="<"||I.operator==="<="){if(_=Sh(o,I,n),_===I&&_!==o)return!1}else if(o.operator==="<="&&!Gn(o.semver,String(I),n))return!1}if(!I.operator&&(o||a)&&p!==0)return!1}return!(a&&c&&!o&&p!==0||o&&v&&!a&&p!==0||R||b)},bh=(i,r,n)=>{if(!i)return r;let u=su(i.semver,r.semver,n);return u>0?i:u<0||r.operator===">"&&i.operator===">="?r:i},Sh=(i,r,n)=>{if(!i)return r;let u=su(i.semver,r.semver,n);return u<0?i:u>0||r.operator==="<"&&i.operator==="<="?r:i};Ch.exports=db});var Ah=P((KO,xh)=>{var ou=vr();xh.exports={re:ou.re,src:ou.src,tokens:ou.t,SEMVER_SPEC_VERSION:Tn().SEMVER_SPEC_VERSION,SemVer:Te(),compareIdentifiers:Yi().compareIdentifiers,rcompareIdentifiers:Yi().rcompareIdentifiers,parse:_r(),valid:Vc(),clean:Xc(),inc:Kc(),diff:rf(),major:sf(),minor:uf(),patch:lf(),prerelease:ff(),compare:at(),rcompare:pf(),compareLoose:gf(),compareBuild:Qi(),sort:yf(),rsort:Ef(),gt:qn(),lt:es(),eq:Zi(),neq:Ko(),gte:ts(),lte:rs(),cmp:Jo(),coerce:If(),Comparator:Mn(),Range:lt(),satisfies:Un(),toComparators:Zf(),maxSatisfying:eh(),minSatisfying:rh(),minVersion:sh(),validRange:uh(),outside:os(),gtr:ph(),ltr:gh(),intersects:_h(),simplifyRange:wh(),subset:Oh()}});var Ae=P(br=>{"use strict";var Rh=br&&br.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(br,"__esModule",{value:!0});br.getCoreVersion=void 0;var Ih=Rh(require("path")),Ph=Rh(require("fs")),mb=Ah(),vb=require("@serverless-devs/core"),uu=Ih.default.join(vb.getRootHome(),"cache","core"),Th=Ih.default.join(uu,"package.json");function _b(){if(Ph.default.existsSync(Th)){var i=require("@serverless-devs/core/package.json").version,r=Lh();return mb.gt(r,i)?require(uu):require("@serverless-devs/core")}return require("@serverless-devs/core")}function Lh(){return Ph.default.existsSync(uu)?require(Th).version:void 0}br.getCoreVersion=Lh;br.default=_b()});var Nh=P((ZO,yb)=>{yb.exports={name:"@serverless-devs/s",version:"2.0.93-beta.7",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:{prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",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:{"@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",commander:"^6.0.0",dotenv:"^10.0.0",esbuild:"^0.13.6",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.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"^0.1.13-beta.6"}}});var Gt=P(G=>{"use strict";var wb=G&&G.__createBinding||(Object.create?function(i,r,n,u){u===void 0&&(u=n),Object.defineProperty(i,u,{enumerable:!0,get:function(){return r[n]}})}:function(i,r,n,u){u===void 0&&(u=n),i[u]=r[n]}),Eb=G&&G.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),bb=G&&G.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var n in i)n!=="default"&&Object.prototype.hasOwnProperty.call(i,n)&&wb(r,i,n);return Eb(r,i),r},Dh=G&&G.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},qh=G&&G.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},as=G&&G.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(G,"__esModule",{value:!0});G.emoji=G.mark=G.replaceTemplate=G.getTemplatekey=G.replaceFun=G.getLang=G.printn=G.checkTemplateFile=G.checkAndReturnTemplateFile=G.yamlLoad=G.getFolderSize=G.getVersion=G.bgRed=G.red=void 0;var Ce=as(require("path")),Je=as(require("fs")),au=as(Xi()),Sb=as(require("os")),Cb=Sr(),ls=bb(Ae()),lu=ls.default.colors,Ob=ls.default.jsyaml,cs=Nh();G.red=lu.hex("#fd5750");G.bgRed=lu.hex("#000").bgHex("#fd5750");function xb(){return(0,ls.getCoreVersion)()?cs.name+": "+cs.version+", @serverless-devs/core: "+(0,ls.getCoreVersion)()+", "+process.platform+"-"+process.arch+", node-"+process.version:cs.name+": "+cs.version+", "+process.platform+"-"+process.arch+", node-"+process.version}G.getVersion=xb;function Ab(i){return Dh(this,void 0,void 0,function(){function r(a){return Dh(this,void 0,void 0,function(){var o,p;return qh(this,function(g){switch(g.label){case 0:return o=Je.default.lstatSync(a),typeof o!="object"?[2]:(n.set(o.ino,o.size),o.isDirectory()?(p=Je.default.readdirSync(a),typeof p!="object"?[2]:[4,Promise.all(p.map(function(_){return r(Ce.default.join(a,_))}))]):[3,2]);case 1:g.sent(),g.label=2;case 2:return[2]}})})}var n,u;return qh(this,function(a){switch(a.label){case 0:return n=new Map,[4,r(i)];case 1:return a.sent(),u=Array.from(n.values()).reduce(function(o,p){return o+p},0),[2,u]}})})}G.getFolderSize=Ab;function $h(i){var r=Je.default.readFileSync(i,"utf8");try{return Ob.load(r)}catch{if(["-h","--help"].includes(process.argv[2]))return;var n=Ce.default.basename(i);new Cb.HumanError({errorMessage:n+" format is incorrect",tips:"Please check the configuration of "+n+", Serverless Devs' Yaml specification document can refer to\uFF1A"+lu.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/yaml.md")}),process.exit(1)}}G.yamlLoad=$h;function Bn(i,r){r===void 0&&(r=!1);var n=Je.default.readFileSync(i,"utf8"),u=r?JSON.parse(n):$h(i);if(!u)return!1;for(var a in u)if(u[a].Component&&u[a].Provider&&u[a].Properties)return!0;return u.hasOwnProperty("edition")}function Fh(){if(process.env.serverless_devs_temp_template)return process.env.serverless_devs_temp_template;var i=process.cwd(),r=process.argv.includes("-t")?"-t":process.argv.includes("--template")?"--template":null,n=r?process.argv.indexOf(r):-1;if(n!==-1){var u=n+1,a=process.argv[u];if(a&&(a.endsWith(".yaml")||a.endsWith(".yml")||a.endsWith(".json"))){var o=!!a.endsWith(".json");if(Je.default.existsSync(Ce.default.join(i,a))&&Bn(Ce.default.join(i,a),o)){process.argv.splice(n,2);var p=JSON.parse(process.env.serverless_devs_temp_argv);return p.splice(p.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(p),process.env.serverless_devs_temp_template=Ce.default.join(i,a),Ce.default.join(i,a)}else if(Je.default.existsSync(a)&&Bn(a,o)){process.argv.splice(n,2);var p=JSON.parse(process.env.serverless_devs_temp_argv);return p.splice(p.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(p),process.env.serverless_devs_temp_template=a,a}}}return Je.default.existsSync(Ce.default.join(i,"s.yaml"))&&Bn(Ce.default.join(i,"s.yaml"))?(process.env.serverless_devs_temp_template=Ce.default.join(i,"s.yaml"),Ce.default.join(i,"s.yaml")):Je.default.existsSync(Ce.default.join(i,"s.yml"))&&Bn(Ce.default.join(i,"s.yml"))?(process.env.serverless_devs_temp_template=Ce.default.join(i,"s.yml"),Ce.default.join(i,"s.yml")):Je.default.existsSync(Ce.default.join(i,"s.json"))&&Bn(Ce.default.join(i,"s.json"),!0)?(process.env.serverless_devs_temp_template=Ce.default.join(i,"s.json"),Ce.default.join(i,"s.json")):null}G.checkAndReturnTemplateFile=Fh;function Mh(i){return Je.default.existsSync(i)?i:null}G.checkTemplateFile=Mh;function jh(i,r){r===void 0&&(r=" ");for(var n="",u=0;u<i;u++)n=n+r;return n}G.printn=jh;function Hh(){return"en"}G.getLang=Hh;function cu(i,r){var n=/\{\{(.*?)\}\}/g,u=i.match(n);if(u)for(var a=0;a<u.length;a++){var o=u[a].replace(/{{|}}/g,""),p=au.default.trim(o.split("|")[0]);r[p]&&(i=i.replace(u[a],r[p]))}return i}G.replaceFun=cu;function Uh(i){var r=/\{\{(.*?)\}\}/g,n=i.match(r);return n?n.filter(function(u){return u}).map(function(u){var a=u.replace(/{{|}}/g,""),o=a.split("|");return{name:au.default.trim(o[0]),desc:au.default.trim(o[1])}}):[]}G.getTemplatekey=Uh;function Gh(i,r){i.forEach(function(n){if(Je.default.existsSync(n)){var u=Je.default.readFileSync(n,"utf-8"),a=cu(u,r);Je.default.writeFileSync(n,a,"utf-8")}})}G.replaceTemplate=Gh;function Bh(i){if(!i)return i;var r=i.slice(-4);return"***********"+r}G.mark=Bh;function Rb(i){return Sb.default.platform()==="win32"?"":i}G.emoji=Rb;G.default={checkAndReturnTemplateFile:Fh,checkTemplateFile:Mh,printn:jh,mark:Bh,getLang:Hh,replaceTemplate:Gh,replaceFun:cu,getTemplatekey:Uh}});var hs=P(Bt=>{"use strict";var Wh=Bt&&Bt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getHistoryFile=Bt.getHomeDir=void 0;var Ib=Wh(require("path")),kh=Wh(Ae()),fs=kh.default.fse,Pb=kh.default.getRootHome;function fu(){var i=Pb();return fs.existsSync(i)||fs.mkdirSync(i),i}Bt.getHomeDir=fu;function Vh(){var i=Ib.default.join(fu(),"history");return fs.existsSync(i)||fs.createFileSync(i),i}Bt.getHistoryFile=Vh;Bt.default={getHomeDir:fu,getHistoryFile:Vh}});var du=P(Me=>{"use strict";var Tb=Me&&Me.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},Lb=Me&&Me.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},hu=Me&&Me.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Me,"__esModule",{value:!0});Me.handlerProfileFile=Me.getConfig=Me.setConfig=void 0;var zh=hu(require("path")),Nb=hu(hs()),pu=hu(Ae()),Et=pu.default.fse,ps=pu.default.jsyaml,Xh=pu.default.getRootHome;function Db(i){var r=Kh();Et.writeFileSync(r,ps.dump(i))}function Yh(){var i=Kh();if(!Et.existsSync(i))return{};try{var r=ps.load(Et.readFileSync(i,"utf8"))||{};return r}catch(n){throw n}}function Kh(){var i=zh.default.join(Nb.default.getHomeDir(),"set-config.yml");return Et.existsSync(i)||Et.createFileSync(i),i}function Jh(i,r){var n=Yh();n[i]=r,Db(n)}Me.setConfig=Jh;function Zh(i,r){var n=Yh();return n[i]||r}Me.getConfig=Zh;function Qh(i){return Tb(this,void 0,void 0,function(){var r,n,u,a,o,p,g;return Lb(this,function(_){switch(_.label){case 0:if(r=i.filePath||"set-config.yml",n=zh.default.join(Xh(),r),u=Et.existsSync(n),a={},u)return[3,5];o=Xh(),_.label=1;case 1:return _.trys.push([1,2,,4]),Et.statSync(o),[3,4];case 2:return p=_.sent(),[4,Et.mkdirSync(o)];case 3:return _.sent(),[3,4];case 4:return[3,6];case 5:try{a=ps.load(Et.readFileSync(n,"utf8"))||{}}catch(c){throw c}_.label=6;case 6:return i.read?[2,a]:(g=i.configKey||"",a[g]=i.data,[4,Et.writeFileSync(n,ps.dump(a))]);case 7:return _.sent(),[2,a]}})})}Me.handlerProfileFile=Qh;Me.default={setConfig:Jh,getConfig:Zh,handlerProfileFile:Qh}});var Cr=P(Yr=>{"use strict";var qb=Yr&&Yr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.ServerlessError=void 0;var $b=qb(Ae()),Fb=$b.default.Logger,Mb=new Fb("S-CLI-ERROR"),jb=function(){function i(r,n,u){Mb.error(r+": "+n,u),process.exit(1)}return i}();Yr.ServerlessError=jb});var ep=P(Kr=>{"use strict";var Hb=Kr&&Kr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Kr,"__esModule",{value:!0});Kr.CommandError=void 0;var Ub=Cr(),Gb=function(i){Hb(r,i);function r(n,u){return i.call(this,"Error",n,u)||this}return r}(Ub.ServerlessError);Kr.CommandError=Gb});var tp=P(Jr=>{"use strict";var Bb=Jr&&Jr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Jr,"__esModule",{value:!0});Jr.ConfigDeleteError=void 0;var Wb=Cr(),kb=function(i){Bb(r,i);function r(n,u){return i.call(this,"Deletion failed",n,u)||this}return r}(Wb.ServerlessError);Jr.ConfigDeleteError=kb});var rp=P(Zr=>{"use strict";var Vb=Zr&&Zr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Zr,"__esModule",{value:!0});Zr.ConfigError=void 0;var zb=Cr(),Xb=function(i){Vb(r,i);function r(n,u){return i.call(this,"Config failed",n,u)||this}return r}(zb.ServerlessError);Zr.ConfigError=Xb});var np=P(Qr=>{"use strict";var Yb=Qr&&Qr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Qr,"__esModule",{value:!0});Qr.ConfigGetError=void 0;var Kb=Cr(),Jb=function(i){Yb(r,i);function r(n,u){return i.call(this,"Get failed",n,u)||this}return r}(Kb.ServerlessError);Qr.ConfigGetError=Jb});var ip=P(en=>{"use strict";var Zb=en&&en.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(en,"__esModule",{value:!0});en.InitError=void 0;var Qb=Cr(),eS=function(i){Zb(r,i);function r(n,u){return i.call(this,"Initialization failed",n,u)||this}return r}(Qb.ServerlessError);en.InitError=eS});var op=P(bt=>{"use strict";var tS=bt&&bt.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},rS=bt&&bt.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},nS=bt&&bt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(bt,"__esModule",{value:!0});bt.HumanError=void 0;var sp=nS(Ae()),iS=Gt(),sS=sp.default.colors,oS=function(){function i(r){var n=r.errorMessage,u=r.tips;this.errorMessage=n,console.log(`
34
+ }`;var W=wc(function(){return Q(d,q+"return "+A).apply(i,m)});if(W.source=A,Do(W))throw W;return W}function py(e){return ee(e).toLowerCase()}function dy(e){return ee(e).toUpperCase()}function gy(e,t,s){if(e=ee(e),e&&(s||t===i))return Ia(e);if(!e||!(t=ze(t)))return e;var l=ht(e),f=ht(t),d=Pa(l,f),m=Ta(l,f)+1;return tr(l,d,m).join("")}function my(e,t,s){if(e=ee(e),e&&(s||t===i))return e.slice(0,Na(e)+1);if(!e||!(t=ze(t)))return e;var l=ht(e),f=Ta(l,ht(t))+1;return tr(l,0,f).join("")}function vy(e,t,s){if(e=ee(e),e&&(s||t===i))return e.replace(Ns,"");if(!e||!(t=ze(t)))return e;var l=ht(e),f=Pa(l,ht(t));return tr(l,f).join("")}function _y(e,t){var s=It,l=hd;if(fe(t)){var f="separator"in t?t.separator:f;s="length"in t?B(t.length):s,l="omission"in t?ze(t.omission):l}e=ee(e);var d=e.length;if(Dr(e)){var m=ht(e);d=m.length}if(s>=d)return e;var y=s-qr(l);if(y<1)return l;var E=m?tr(m,0,y).join(""):e.slice(0,y);if(f===i)return E+l;if(m&&(y+=E.length-y),qo(f)){if(e.slice(y).search(f)){var O,x=E;for(f.global||(f=Ks(f.source,ee(Ju.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var A=O.index;E=E.slice(0,A===i?y:A)}}else if(e.indexOf(ze(f),y)!=y){var T=E.lastIndexOf(f);T>-1&&(E=E.slice(0,T))}return E+l}function yy(e){return e=ee(e),e&&Pd.test(e)?e.replace(Xu,Xg):e}var wy=Ur(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Mo=El("toUpperCase");function yc(e,t,s){return e=ee(e),t=s?i:t,t===i?Bg(e)?Jg(e):Dg(e):e.match(t)||[]}var wc=V(function(e,t){try{return ke(e,i,t)}catch(s){return Do(s)?s:new j(s)}}),Ey=qt(function(e,t){return et(t,function(s){s=wt(s),Nt(e,s,Lo(e[s],e))}),e});function by(e){var t=e==null?0:e.length,s=$();return e=t?ce(e,function(l){if(typeof l[1]!="function")throw new tt(a);return[s(l[0]),l[1]]}):[],V(function(l){for(var f=-1;++f<t;){var d=e[f];if(ke(d[0],this,l))return ke(d[1],this,l)}})}function Sy(e){return Xm(nt(e,c))}function jo(e){return function(){return e}}function Cy(e,t){return e==null||e!==e?t:e}var Oy=Sl(),xy=Sl(!0);function Be(e){return e}function Ho(e){return Qa(typeof e=="function"?e:nt(e,c))}function Ay(e){return tl(nt(e,c))}function Ry(e,t){return rl(e,nt(t,c))}var Iy=V(function(e,t){return function(s){return En(s,e,t)}}),Py=V(function(e,t){return function(s){return En(e,s,t)}});function Uo(e,t,s){var l=be(t),f=Ai(t,l);s==null&&!(fe(t)&&(f.length||!l.length))&&(s=t,t=e,e=this,f=Ai(t,be(t)));var d=!(fe(s)&&"chain"in s)||!!s.chain,m=Ft(e);return et(f,function(y){var E=t[y];e[y]=E,m&&(e.prototype[y]=function(){var O=this.__chain__;if(d||O){var x=e(this.__wrapped__),A=x.__actions__=He(this.__actions__);return A.push({func:E,args:arguments,thisArg:e}),x.__chain__=O,x}return E.apply(e,Xt([this.value()],arguments))})}),e}function Ty(){return Ee._===this&&(Ee._=nm),this}function Go(){}function Ly(e){return e=B(e),V(function(t){return nl(t,e)})}var Ny=yo(ce),Dy=yo(Ca),qy=yo(Bs);function Ec(e){return xo(e)?Ws(wt(e)):fv(e)}function $y(e){return function(t){return e==null?i:fr(e,t)}}var Fy=Ol(),My=Ol(!0);function Bo(){return[]}function Wo(){return!1}function jy(){return{}}function Hy(){return""}function Uy(){return!0}function Gy(e,t){if(e=B(e),e<1||e>Vt)return[];var s=vt,l=Ie(e,vt);t=$(t),e-=vt;for(var f=zs(l,t);++s<e;)t(s);return f}function By(e){return U(e)?ce(e,wt):Xe(e)?[e]:He(Ul(ee(e)))}function Wy(e){var t=++tm;return ee(e)+t}var ky=Ni(function(e,t){return e+t},0),Vy=wo("ceil"),zy=Ni(function(e,t){return e/t},1),Xy=wo("floor");function Yy(e){return e&&e.length?xi(e,Be,io):i}function Ky(e,t){return e&&e.length?xi(e,$(t,2),io):i}function Jy(e){return Aa(e,Be)}function Zy(e,t){return Aa(e,$(t,2))}function Qy(e){return e&&e.length?xi(e,Be,ao):i}function ew(e,t){return e&&e.length?xi(e,$(t,2),ao):i}var tw=Ni(function(e,t){return e*t},1),rw=wo("round"),nw=Ni(function(e,t){return e-t},0);function iw(e){return e&&e.length?Vs(e,Be):0}function sw(e,t){return e&&e.length?Vs(e,$(t,2)):0}return h.after=A0,h.ary=Zl,h.assign=d1,h.assignIn=hc,h.assignInWith=Vi,h.assignWith=g1,h.at=m1,h.before=Ql,h.bind=Lo,h.bindAll=Ey,h.bindKey=ec,h.castArray=j0,h.chain=Yl,h.chunk=Xv,h.compact=Yv,h.concat=Kv,h.cond=by,h.conforms=Sy,h.constant=jo,h.countBy=i0,h.create=v1,h.curry=tc,h.curryRight=rc,h.debounce=nc,h.defaults=_1,h.defaultsDeep=y1,h.defer=R0,h.delay=I0,h.difference=Jv,h.differenceBy=Zv,h.differenceWith=Qv,h.drop=e_,h.dropRight=t_,h.dropRightWhile=r_,h.dropWhile=n_,h.fill=i_,h.filter=o0,h.flatMap=l0,h.flatMapDeep=c0,h.flatMapDepth=f0,h.flatten=kl,h.flattenDeep=s_,h.flattenDepth=o_,h.flip=P0,h.flow=Oy,h.flowRight=xy,h.fromPairs=u_,h.functions=x1,h.functionsIn=A1,h.groupBy=h0,h.initial=l_,h.intersection=c_,h.intersectionBy=f_,h.intersectionWith=h_,h.invert=I1,h.invertBy=P1,h.invokeMap=d0,h.iteratee=Ho,h.keyBy=g0,h.keys=be,h.keysIn=Ge,h.map=Hi,h.mapKeys=L1,h.mapValues=N1,h.matches=Ay,h.matchesProperty=Ry,h.memoize=Gi,h.merge=D1,h.mergeWith=pc,h.method=Iy,h.methodOf=Py,h.mixin=Uo,h.negate=Bi,h.nthArg=Ly,h.omit=q1,h.omitBy=$1,h.once=T0,h.orderBy=m0,h.over=Ny,h.overArgs=L0,h.overEvery=Dy,h.overSome=qy,h.partial=No,h.partialRight=ic,h.partition=v0,h.pick=F1,h.pickBy=dc,h.property=Ec,h.propertyOf=$y,h.pull=m_,h.pullAll=zl,h.pullAllBy=v_,h.pullAllWith=__,h.pullAt=y_,h.range=Fy,h.rangeRight=My,h.rearg=N0,h.reject=w0,h.remove=w_,h.rest=D0,h.reverse=Po,h.sampleSize=b0,h.set=j1,h.setWith=H1,h.shuffle=S0,h.slice=E_,h.sortBy=x0,h.sortedUniq=R_,h.sortedUniqBy=I_,h.split=ly,h.spread=q0,h.tail=P_,h.take=T_,h.takeRight=L_,h.takeRightWhile=N_,h.takeWhile=D_,h.tap=Y_,h.throttle=$0,h.thru=ji,h.toArray=lc,h.toPairs=gc,h.toPairsIn=mc,h.toPath=By,h.toPlainObject=fc,h.transform=U1,h.unary=F0,h.union=q_,h.unionBy=$_,h.unionWith=F_,h.uniq=M_,h.uniqBy=j_,h.uniqWith=H_,h.unset=G1,h.unzip=To,h.unzipWith=Xl,h.update=B1,h.updateWith=W1,h.values=Wr,h.valuesIn=k1,h.without=U_,h.words=yc,h.wrap=M0,h.xor=G_,h.xorBy=B_,h.xorWith=W_,h.zip=k_,h.zipObject=V_,h.zipObjectDeep=z_,h.zipWith=X_,h.entries=gc,h.entriesIn=mc,h.extend=hc,h.extendWith=Vi,Uo(h,h),h.add=ky,h.attempt=wc,h.camelCase=Y1,h.capitalize=vc,h.ceil=Vy,h.clamp=V1,h.clone=H0,h.cloneDeep=G0,h.cloneDeepWith=B0,h.cloneWith=U0,h.conformsTo=W0,h.deburr=_c,h.defaultTo=Cy,h.divide=zy,h.endsWith=K1,h.eq=dt,h.escape=J1,h.escapeRegExp=Z1,h.every=s0,h.find=u0,h.findIndex=Bl,h.findKey=w1,h.findLast=a0,h.findLastIndex=Wl,h.findLastKey=E1,h.floor=Xy,h.forEach=Kl,h.forEachRight=Jl,h.forIn=b1,h.forInRight=S1,h.forOwn=C1,h.forOwnRight=O1,h.get=$o,h.gt=k0,h.gte=V0,h.has=R1,h.hasIn=Fo,h.head=Vl,h.identity=Be,h.includes=p0,h.indexOf=a_,h.inRange=z1,h.invoke=T1,h.isArguments=dr,h.isArray=U,h.isArrayBuffer=z0,h.isArrayLike=Ue,h.isArrayLikeObject=de,h.isBoolean=X0,h.isBuffer=rr,h.isDate=Y0,h.isElement=K0,h.isEmpty=J0,h.isEqual=Z0,h.isEqualWith=Q0,h.isError=Do,h.isFinite=e1,h.isFunction=Ft,h.isInteger=sc,h.isLength=Wi,h.isMap=oc,h.isMatch=t1,h.isMatchWith=r1,h.isNaN=n1,h.isNative=i1,h.isNil=o1,h.isNull=s1,h.isNumber=uc,h.isObject=fe,h.isObjectLike=he,h.isPlainObject=An,h.isRegExp=qo,h.isSafeInteger=u1,h.isSet=ac,h.isString=ki,h.isSymbol=Xe,h.isTypedArray=Br,h.isUndefined=a1,h.isWeakMap=l1,h.isWeakSet=c1,h.join=p_,h.kebabCase=Q1,h.last=st,h.lastIndexOf=d_,h.lowerCase=ey,h.lowerFirst=ty,h.lt=f1,h.lte=h1,h.max=Yy,h.maxBy=Ky,h.mean=Jy,h.meanBy=Zy,h.min=Qy,h.minBy=ew,h.stubArray=Bo,h.stubFalse=Wo,h.stubObject=jy,h.stubString=Hy,h.stubTrue=Uy,h.multiply=tw,h.nth=g_,h.noConflict=Ty,h.noop=Go,h.now=Ui,h.pad=ry,h.padEnd=ny,h.padStart=iy,h.parseInt=sy,h.random=X1,h.reduce=_0,h.reduceRight=y0,h.repeat=oy,h.replace=uy,h.result=M1,h.round=rw,h.runInContext=w,h.sample=E0,h.size=C0,h.snakeCase=ay,h.some=O0,h.sortedIndex=b_,h.sortedIndexBy=S_,h.sortedIndexOf=C_,h.sortedLastIndex=O_,h.sortedLastIndexBy=x_,h.sortedLastIndexOf=A_,h.startCase=cy,h.startsWith=fy,h.subtract=nw,h.sum=iw,h.sumBy=sw,h.template=hy,h.times=Gy,h.toFinite=Mt,h.toInteger=B,h.toLength=cc,h.toLower=py,h.toNumber=ot,h.toSafeInteger=p1,h.toString=ee,h.toUpper=dy,h.trim=gy,h.trimEnd=my,h.trimStart=vy,h.truncate=_y,h.unescape=yy,h.uniqueId=Wy,h.upperCase=wy,h.upperFirst=Mo,h.each=Kl,h.eachRight=Jl,h.first=Vl,Uo(h,function(){var e={};return _t(h,function(t,s){re.call(h.prototype,s)||(e[s]=t)}),e}(),{chain:!1}),h.VERSION=r,et(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),et(["drop","take"],function(e,t){X.prototype[e]=function(s){s=s===i?1:we(B(s),0);var l=this.__filtered__&&!t?new X(this):this.clone();return l.__filtered__?l.__takeCount__=Ie(s,l.__takeCount__):l.__views__.push({size:Ie(s,vt),type:e+(l.__dir__<0?"Right":"")}),l},X.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),et(["filter","map","takeWhile"],function(e,t){var s=t+1,l=s==ku||s==md;X.prototype[e]=function(f){var d=this.clone();return d.__iteratees__.push({iteratee:$(f,3),type:s}),d.__filtered__=d.__filtered__||l,d}}),et(["head","last"],function(e,t){var s="take"+(t?"Right":"");X.prototype[e]=function(){return this[s](1).value()[0]}}),et(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[s](1)}}),X.prototype.compact=function(){return this.filter(Be)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=V(function(e,t){return typeof e=="function"?new X(this):this.map(function(s){return En(s,e,t)})}),X.prototype.reject=function(e){return this.filter(Bi($(e)))},X.prototype.slice=function(e,t){e=B(e);var s=this;return s.__filtered__&&(e>0||t<0)?new X(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=B(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(vt)},_t(X.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),l=/^(?:head|last)$/.test(t),f=h[l?"take"+(t=="last"?"Right":""):t],d=l||/^find/.test(t);!f||(h.prototype[t]=function(){var m=this.__wrapped__,y=l?[1]:arguments,E=m instanceof X,O=y[0],x=E||U(m),A=function(z){var J=f.apply(h,Xt([z],y));return l&&T?J[0]:J};x&&s&&typeof O=="function"&&O.length!=1&&(E=x=!1);var T=this.__chain__,q=!!this.__actions__.length,F=d&&!T,W=E&&!q;if(!d&&x){m=W?m:new X(this);var M=e.apply(m,y);return M.__actions__.push({func:ji,args:[A],thisArg:i}),new rt(M,T)}return F&&W?e.apply(this,y):(M=this.thru(A),F?l?M.value()[0]:M.value():M)})}),et(["pop","push","shift","sort","splice","unshift"],function(e){var t=fi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",l=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var f=arguments;if(l&&!this.__chain__){var d=this.value();return t.apply(U(d)?d:[],f)}return this[s](function(m){return t.apply(U(m)?m:[],f)})}}),_t(X.prototype,function(e,t){var s=h[t];if(s){var l=s.name+"";re.call(Mr,l)||(Mr[l]=[]),Mr[l].push({name:t,func:s})}}),Mr[Li(i,te).name]=[{name:"wrapper",func:i}],X.prototype.clone=ym,X.prototype.reverse=wm,X.prototype.value=Em,h.prototype.at=K_,h.prototype.chain=J_,h.prototype.commit=Z_,h.prototype.next=Q_,h.prototype.plant=t0,h.prototype.reverse=r0,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=n0,h.prototype.first=h.prototype.head,dn&&(h.prototype[dn]=e0),h},Kt=Zg();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Ee._=Kt,define(function(){return Kt})):or?((or.exports=Kt)._=Kt,js._=Kt):Ee._=Kt}).call(kr)});var Tn=P((sO,Pc)=>{var aw="2.0.0",lw=256,cw=Number.MAX_SAFE_INTEGER||9007199254740991,fw=16;Pc.exports={SEMVER_SPEC_VERSION:aw,MAX_LENGTH:lw,MAX_SAFE_INTEGER:cw,MAX_SAFE_COMPONENT_LENGTH:fw}});var Ln=P((oO,Tc)=>{var hw=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Tc.exports=hw});var vr=P((nr,Lc)=>{var{MAX_SAFE_COMPONENT_LENGTH:Yo}=Tn(),pw=Ln();nr=Lc.exports={};var dw=nr.re=[],N=nr.src=[],D=nr.t={},gw=0,k=(i,r,n)=>{let u=gw++;pw(u,r),D[i]=u,N[u]=r,dw[u]=new RegExp(r,n?"g":void 0)};k("NUMERICIDENTIFIER","0|[1-9]\\d*");k("NUMERICIDENTIFIERLOOSE","[0-9]+");k("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");k("MAINVERSION",`(${N[D.NUMERICIDENTIFIER]})\\.(${N[D.NUMERICIDENTIFIER]})\\.(${N[D.NUMERICIDENTIFIER]})`);k("MAINVERSIONLOOSE",`(${N[D.NUMERICIDENTIFIERLOOSE]})\\.(${N[D.NUMERICIDENTIFIERLOOSE]})\\.(${N[D.NUMERICIDENTIFIERLOOSE]})`);k("PRERELEASEIDENTIFIER",`(?:${N[D.NUMERICIDENTIFIER]}|${N[D.NONNUMERICIDENTIFIER]})`);k("PRERELEASEIDENTIFIERLOOSE",`(?:${N[D.NUMERICIDENTIFIERLOOSE]}|${N[D.NONNUMERICIDENTIFIER]})`);k("PRERELEASE",`(?:-(${N[D.PRERELEASEIDENTIFIER]}(?:\\.${N[D.PRERELEASEIDENTIFIER]})*))`);k("PRERELEASELOOSE",`(?:-?(${N[D.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${N[D.PRERELEASEIDENTIFIERLOOSE]})*))`);k("BUILDIDENTIFIER","[0-9A-Za-z-]+");k("BUILD",`(?:\\+(${N[D.BUILDIDENTIFIER]}(?:\\.${N[D.BUILDIDENTIFIER]})*))`);k("FULLPLAIN",`v?${N[D.MAINVERSION]}${N[D.PRERELEASE]}?${N[D.BUILD]}?`);k("FULL",`^${N[D.FULLPLAIN]}$`);k("LOOSEPLAIN",`[v=\\s]*${N[D.MAINVERSIONLOOSE]}${N[D.PRERELEASELOOSE]}?${N[D.BUILD]}?`);k("LOOSE",`^${N[D.LOOSEPLAIN]}$`);k("GTLT","((?:<|>)?=?)");k("XRANGEIDENTIFIERLOOSE",`${N[D.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);k("XRANGEIDENTIFIER",`${N[D.NUMERICIDENTIFIER]}|x|X|\\*`);k("XRANGEPLAIN",`[v=\\s]*(${N[D.XRANGEIDENTIFIER]})(?:\\.(${N[D.XRANGEIDENTIFIER]})(?:\\.(${N[D.XRANGEIDENTIFIER]})(?:${N[D.PRERELEASE]})?${N[D.BUILD]}?)?)?`);k("XRANGEPLAINLOOSE",`[v=\\s]*(${N[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${N[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${N[D.XRANGEIDENTIFIERLOOSE]})(?:${N[D.PRERELEASELOOSE]})?${N[D.BUILD]}?)?)?`);k("XRANGE",`^${N[D.GTLT]}\\s*${N[D.XRANGEPLAIN]}$`);k("XRANGELOOSE",`^${N[D.GTLT]}\\s*${N[D.XRANGEPLAINLOOSE]}$`);k("COERCE",`(^|[^\\d])(\\d{1,${Yo}})(?:\\.(\\d{1,${Yo}}))?(?:\\.(\\d{1,${Yo}}))?(?:$|[^\\d])`);k("COERCERTL",N[D.COERCE],!0);k("LONETILDE","(?:~>?)");k("TILDETRIM",`(\\s*)${N[D.LONETILDE]}\\s+`,!0);nr.tildeTrimReplace="$1~";k("TILDE",`^${N[D.LONETILDE]}${N[D.XRANGEPLAIN]}$`);k("TILDELOOSE",`^${N[D.LONETILDE]}${N[D.XRANGEPLAINLOOSE]}$`);k("LONECARET","(?:\\^)");k("CARETTRIM",`(\\s*)${N[D.LONECARET]}\\s+`,!0);nr.caretTrimReplace="$1^";k("CARET",`^${N[D.LONECARET]}${N[D.XRANGEPLAIN]}$`);k("CARETLOOSE",`^${N[D.LONECARET]}${N[D.XRANGEPLAINLOOSE]}$`);k("COMPARATORLOOSE",`^${N[D.GTLT]}\\s*(${N[D.LOOSEPLAIN]})$|^$`);k("COMPARATOR",`^${N[D.GTLT]}\\s*(${N[D.FULLPLAIN]})$|^$`);k("COMPARATORTRIM",`(\\s*)${N[D.GTLT]}\\s*(${N[D.LOOSEPLAIN]}|${N[D.XRANGEPLAIN]})`,!0);nr.comparatorTrimReplace="$1$2$3";k("HYPHENRANGE",`^\\s*(${N[D.XRANGEPLAIN]})\\s+-\\s+(${N[D.XRANGEPLAIN]})\\s*$`);k("HYPHENRANGELOOSE",`^\\s*(${N[D.XRANGEPLAINLOOSE]})\\s+-\\s+(${N[D.XRANGEPLAINLOOSE]})\\s*$`);k("STAR","(<|>)?=?\\s*\\*");k("GTE0","^\\s*>=\\s*0.0.0\\s*$");k("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Nn=P((uO,Nc)=>{var mw=["includePrerelease","loose","rtl"],vw=i=>i?typeof i!="object"?{loose:!0}:mw.filter(r=>i[r]).reduce((r,n)=>(r[n]=!0,r),{}):{};Nc.exports=vw});var Yi=P((aO,$c)=>{var Dc=/^[0-9]+$/,qc=(i,r)=>{let n=Dc.test(i),u=Dc.test(r);return n&&u&&(i=+i,r=+r),i===r?0:n&&!u?-1:u&&!n?1:i<r?-1:1},_w=(i,r)=>qc(r,i);$c.exports={compareIdentifiers:qc,rcompareIdentifiers:_w}});var Te=P((lO,Hc)=>{var Ki=Ln(),{MAX_LENGTH:Fc,MAX_SAFE_INTEGER:Ji}=Tn(),{re:Mc,t:jc}=vr(),yw=Nn(),{compareIdentifiers:Dn}=Yi(),ut=class{constructor(r,n){if(n=yw(n),r instanceof ut){if(r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>Fc)throw new TypeError(`version is longer than ${Fc} characters`);Ki("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let u=r.trim().match(n.loose?Mc[jc.LOOSE]:Mc[jc.FULL]);if(!u)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>Ji||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ji||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ji||this.patch<0)throw new TypeError("Invalid patch version");u[4]?this.prerelease=u[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let o=+a;if(o>=0&&o<Ji)return o}return a}):this.prerelease=[],this.build=u[5]?u[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(r){if(Ki("SemVer.compare",this.version,this.options,r),!(r instanceof ut)){if(typeof r=="string"&&r===this.version)return 0;r=new ut(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof ut||(r=new ut(r,this.options)),Dn(this.major,r.major)||Dn(this.minor,r.minor)||Dn(this.patch,r.patch)}comparePre(r){if(r instanceof ut||(r=new ut(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let n=0;do{let u=this.prerelease[n],a=r.prerelease[n];if(Ki("prerelease compare",n,u,a),u===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(u===void 0)return-1;if(u===a)continue;return Dn(u,a)}while(++n)}compareBuild(r){r instanceof ut||(r=new ut(r,this.options));let n=0;do{let u=this.build[n],a=r.build[n];if(Ki("prerelease compare",n,u,a),u===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(u===void 0)return-1;if(u===a)continue;return Dn(u,a)}while(++n)}inc(r,n){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n),this.inc("pre",n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n),this.inc("pre",n);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 u=this.prerelease.length;for(;--u>=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);u===-1&&this.prerelease.push(0)}n&&(this.prerelease[0]===n?isNaN(this.prerelease[1])&&(this.prerelease=[n,0]):this.prerelease=[n,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}};Hc.exports=ut});var _r=P((cO,Wc)=>{var{MAX_LENGTH:ww}=Tn(),{re:Uc,t:Gc}=vr(),Bc=Te(),Ew=Nn(),bw=(i,r)=>{if(r=Ew(r),i instanceof Bc)return i;if(typeof i!="string"||i.length>ww||!(r.loose?Uc[Gc.LOOSE]:Uc[Gc.FULL]).test(i))return null;try{return new Bc(i,r)}catch{return null}};Wc.exports=bw});var Vc=P((fO,kc)=>{var Sw=_r(),Cw=(i,r)=>{let n=Sw(i,r);return n?n.version:null};kc.exports=Cw});var Xc=P((hO,zc)=>{var Ow=_r(),xw=(i,r)=>{let n=Ow(i.trim().replace(/^[=v]+/,""),r);return n?n.version:null};zc.exports=xw});var Kc=P((pO,Yc)=>{var Aw=Te(),Rw=(i,r,n,u)=>{typeof n=="string"&&(u=n,n=void 0);try{return new Aw(i,n).inc(r,u).version}catch{return null}};Yc.exports=Rw});var at=P((dO,Zc)=>{var Jc=Te(),Iw=(i,r,n)=>new Jc(i,n).compare(new Jc(r,n));Zc.exports=Iw});var Zi=P((gO,Qc)=>{var Pw=at(),Tw=(i,r,n)=>Pw(i,r,n)===0;Qc.exports=Tw});var rf=P((mO,tf)=>{var ef=_r(),Lw=Zi(),Nw=(i,r)=>{if(Lw(i,r))return null;{let n=ef(i),u=ef(r),a=n.prerelease.length||u.prerelease.length,o=a?"pre":"",p=a?"prerelease":"";for(let g in n)if((g==="major"||g==="minor"||g==="patch")&&n[g]!==u[g])return o+g;return p}};tf.exports=Nw});var sf=P((vO,nf)=>{var Dw=Te(),qw=(i,r)=>new Dw(i,r).major;nf.exports=qw});var uf=P((_O,of)=>{var $w=Te(),Fw=(i,r)=>new $w(i,r).minor;of.exports=Fw});var lf=P((yO,af)=>{var Mw=Te(),jw=(i,r)=>new Mw(i,r).patch;af.exports=jw});var ff=P((wO,cf)=>{var Hw=_r(),Uw=(i,r)=>{let n=Hw(i,r);return n&&n.prerelease.length?n.prerelease:null};cf.exports=Uw});var pf=P((EO,hf)=>{var Gw=at(),Bw=(i,r,n)=>Gw(r,i,n);hf.exports=Bw});var gf=P((bO,df)=>{var Ww=at(),kw=(i,r)=>Ww(i,r,!0);df.exports=kw});var Qi=P((SO,vf)=>{var mf=Te(),Vw=(i,r,n)=>{let u=new mf(i,n),a=new mf(r,n);return u.compare(a)||u.compareBuild(a)};vf.exports=Vw});var yf=P((CO,_f)=>{var zw=Qi(),Xw=(i,r)=>i.sort((n,u)=>zw(n,u,r));_f.exports=Xw});var Ef=P((OO,wf)=>{var Yw=Qi(),Kw=(i,r)=>i.sort((n,u)=>Yw(u,n,r));wf.exports=Kw});var qn=P((xO,bf)=>{var Jw=at(),Zw=(i,r,n)=>Jw(i,r,n)>0;bf.exports=Zw});var es=P((AO,Sf)=>{var Qw=at(),eE=(i,r,n)=>Qw(i,r,n)<0;Sf.exports=eE});var Ko=P((RO,Cf)=>{var tE=at(),rE=(i,r,n)=>tE(i,r,n)!==0;Cf.exports=rE});var ts=P((IO,Of)=>{var nE=at(),iE=(i,r,n)=>nE(i,r,n)>=0;Of.exports=iE});var rs=P((PO,xf)=>{var sE=at(),oE=(i,r,n)=>sE(i,r,n)<=0;xf.exports=oE});var Jo=P((TO,Af)=>{var uE=Zi(),aE=Ko(),lE=qn(),cE=ts(),fE=es(),hE=rs(),pE=(i,r,n,u)=>{switch(r){case"===":return typeof i=="object"&&(i=i.version),typeof n=="object"&&(n=n.version),i===n;case"!==":return typeof i=="object"&&(i=i.version),typeof n=="object"&&(n=n.version),i!==n;case"":case"=":case"==":return uE(i,n,u);case"!=":return aE(i,n,u);case">":return lE(i,n,u);case">=":return cE(i,n,u);case"<":return fE(i,n,u);case"<=":return hE(i,n,u);default:throw new TypeError(`Invalid operator: ${r}`)}};Af.exports=pE});var If=P((LO,Rf)=>{var dE=Te(),gE=_r(),{re:ns,t:is}=vr(),mE=(i,r)=>{if(i instanceof dE)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;r=r||{};let n=null;if(!r.rtl)n=i.match(ns[is.COERCE]);else{let u;for(;(u=ns[is.COERCERTL].exec(i))&&(!n||n.index+n[0].length!==i.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),ns[is.COERCERTL].lastIndex=u.index+u[1].length+u[2].length;ns[is.COERCERTL].lastIndex=-1}return n===null?null:gE(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,r)};Rf.exports=mE});var Tf=P((NO,Pf)=>{"use strict";Pf.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var Nf=P((DO,Lf)=>{"use strict";Lf.exports=Z;Z.Node=yr;Z.create=Z;function Z(i){var r=this;if(r instanceof Z||(r=new Z),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(a){r.push(a)});else if(arguments.length>0)for(var n=0,u=arguments.length;n<u;n++)r.push(arguments[n]);return r}Z.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var r=i.next,n=i.prev;return r&&(r.prev=n),n&&(n.next=r),i===this.head&&(this.head=r),i===this.tail&&(this.tail=n),i.list.length--,i.next=null,i.prev=null,i.list=null,r};Z.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var r=this.head;i.list=this,i.next=r,r&&(r.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};Z.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var r=this.tail;i.list=this,i.prev=r,r&&(r.next=i),this.tail=i,this.head||(this.head=i),this.length++}};Z.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)_E(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)yE(this,arguments[i]);return this.length};Z.prototype.pop=function(){if(!!this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};Z.prototype.shift=function(){if(!!this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};Z.prototype.forEach=function(i,r){r=r||this;for(var n=this.head,u=0;n!==null;u++)i.call(r,n.value,u,this),n=n.next};Z.prototype.forEachReverse=function(i,r){r=r||this;for(var n=this.tail,u=this.length-1;n!==null;u--)i.call(r,n.value,u,this),n=n.prev};Z.prototype.get=function(i){for(var r=0,n=this.head;n!==null&&r<i;r++)n=n.next;if(r===i&&n!==null)return n.value};Z.prototype.getReverse=function(i){for(var r=0,n=this.tail;n!==null&&r<i;r++)n=n.prev;if(r===i&&n!==null)return n.value};Z.prototype.map=function(i,r){r=r||this;for(var n=new Z,u=this.head;u!==null;)n.push(i.call(r,u.value,this)),u=u.next;return n};Z.prototype.mapReverse=function(i,r){r=r||this;for(var n=new Z,u=this.tail;u!==null;)n.push(i.call(r,u.value,this)),u=u.prev;return n};Z.prototype.reduce=function(i,r){var n,u=this.head;if(arguments.length>1)n=r;else if(this.head)u=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;u!==null;a++)n=i(n,u.value,a),u=u.next;return n};Z.prototype.reduceReverse=function(i,r){var n,u=this.tail;if(arguments.length>1)n=r;else if(this.tail)u=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;u!==null;a--)n=i(n,u.value,a),u=u.prev;return n};Z.prototype.toArray=function(){for(var i=new Array(this.length),r=0,n=this.head;n!==null;r++)i[r]=n.value,n=n.next;return i};Z.prototype.toArrayReverse=function(){for(var i=new Array(this.length),r=0,n=this.tail;n!==null;r++)i[r]=n.value,n=n.prev;return i};Z.prototype.slice=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var n=new Z;if(r<i||r<0)return n;i<0&&(i=0),r>this.length&&(r=this.length);for(var u=0,a=this.head;a!==null&&u<i;u++)a=a.next;for(;a!==null&&u<r;u++,a=a.next)n.push(a.value);return n};Z.prototype.sliceReverse=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var n=new Z;if(r<i||r<0)return n;i<0&&(i=0),r>this.length&&(r=this.length);for(var u=this.length,a=this.tail;a!==null&&u>r;u--)a=a.prev;for(;a!==null&&u>i;u--,a=a.prev)n.push(a.value);return n};Z.prototype.splice=function(i,r,...n){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var u=0,a=this.head;a!==null&&u<i;u++)a=a.next;for(var o=[],u=0;a&&u<r;u++)o.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var u=0;u<n.length;u++)a=vE(this,a,n[u]);return o};Z.prototype.reverse=function(){for(var i=this.head,r=this.tail,n=i;n!==null;n=n.prev){var u=n.prev;n.prev=n.next,n.next=u}return this.head=r,this.tail=i,this};function vE(i,r,n){var u=r===i.head?new yr(n,null,r,i):new yr(n,r,r.next,i);return u.next===null&&(i.tail=u),u.prev===null&&(i.head=u),i.length++,u}function _E(i,r){i.tail=new yr(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function yE(i,r){i.head=new yr(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function yr(i,r,n,u){if(!(this instanceof yr))return new yr(i,r,n,u);this.list=u,this.value=i,r?(r.next=this,this.prev=r):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{Tf()(Z)}catch{}});var Hf=P((qO,jf)=>{"use strict";var wE=Nf(),wr=Symbol("max"),Ht=Symbol("length"),Vr=Symbol("lengthCalculator"),$n=Symbol("allowStale"),Er=Symbol("maxAge"),Ut=Symbol("dispose"),Df=Symbol("noDisposeOnSet"),Se=Symbol("lruList"),mt=Symbol("cache"),qf=Symbol("updateAgeOnGet"),Zo=()=>1,$f=class{constructor(r){if(typeof r=="number"&&(r={max:r}),r||(r={}),r.max&&(typeof r.max!="number"||r.max<0))throw new TypeError("max must be a non-negative number");let n=this[wr]=r.max||1/0,u=r.length||Zo;if(this[Vr]=typeof u!="function"?Zo:u,this[$n]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Er]=r.maxAge||0,this[Ut]=r.dispose,this[Df]=r.noDisposeOnSet||!1,this[qf]=r.updateAgeOnGet||!1,this.reset()}set max(r){if(typeof r!="number"||r<0)throw new TypeError("max must be a non-negative number");this[wr]=r||1/0,Fn(this)}get max(){return this[wr]}set allowStale(r){this[$n]=!!r}get allowStale(){return this[$n]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Er]=r,Fn(this)}get maxAge(){return this[Er]}set lengthCalculator(r){typeof r!="function"&&(r=Zo),r!==this[Vr]&&(this[Vr]=r,this[Ht]=0,this[Se].forEach(n=>{n.length=this[Vr](n.value,n.key),this[Ht]+=n.length})),Fn(this)}get lengthCalculator(){return this[Vr]}get length(){return this[Ht]}get itemCount(){return this[Se].length}rforEach(r,n){n=n||this;for(let u=this[Se].tail;u!==null;){let a=u.prev;Mf(this,r,u,n),u=a}}forEach(r,n){n=n||this;for(let u=this[Se].head;u!==null;){let a=u.next;Mf(this,r,u,n),u=a}}keys(){return this[Se].toArray().map(r=>r.key)}values(){return this[Se].toArray().map(r=>r.value)}reset(){this[Ut]&&this[Se]&&this[Se].length&&this[Se].forEach(r=>this[Ut](r.key,r.value)),this[mt]=new Map,this[Se]=new wE,this[Ht]=0}dump(){return this[Se].map(r=>ss(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[Se]}set(r,n,u){if(u=u||this[Er],u&&typeof u!="number")throw new TypeError("maxAge must be a number");let a=u?Date.now():0,o=this[Vr](n,r);if(this[mt].has(r)){if(o>this[wr])return zr(this,this[mt].get(r)),!1;let _=this[mt].get(r).value;return this[Ut]&&(this[Df]||this[Ut](r,_.value)),_.now=a,_.maxAge=u,_.value=n,this[Ht]+=o-_.length,_.length=o,this.get(r),Fn(this),!0}let p=new Ff(r,n,o,a,u);return p.length>this[wr]?(this[Ut]&&this[Ut](r,n),!1):(this[Ht]+=p.length,this[Se].unshift(p),this[mt].set(r,this[Se].head),Fn(this),!0)}has(r){if(!this[mt].has(r))return!1;let n=this[mt].get(r).value;return!ss(this,n)}get(r){return Qo(this,r,!0)}peek(r){return Qo(this,r,!1)}pop(){let r=this[Se].tail;return r?(zr(this,r),r.value):null}del(r){zr(this,this[mt].get(r))}load(r){this.reset();let n=Date.now();for(let u=r.length-1;u>=0;u--){let a=r[u],o=a.e||0;if(o===0)this.set(a.k,a.v);else{let p=o-n;p>0&&this.set(a.k,a.v,p)}}}prune(){this[mt].forEach((r,n)=>Qo(this,n,!1))}},Qo=(i,r,n)=>{let u=i[mt].get(r);if(u){let a=u.value;if(ss(i,a)){if(zr(i,u),!i[$n])return}else n&&(i[qf]&&(u.value.now=Date.now()),i[Se].unshiftNode(u));return a.value}},ss=(i,r)=>{if(!r||!r.maxAge&&!i[Er])return!1;let n=Date.now()-r.now;return r.maxAge?n>r.maxAge:i[Er]&&n>i[Er]},Fn=i=>{if(i[Ht]>i[wr])for(let r=i[Se].tail;i[Ht]>i[wr]&&r!==null;){let n=r.prev;zr(i,r),r=n}},zr=(i,r)=>{if(r){let n=r.value;i[Ut]&&i[Ut](n.key,n.value),i[Ht]-=n.length,i[mt].delete(n.key),i[Se].removeNode(r)}},Ff=class{constructor(r,n,u,a,o){this.key=r,this.value=n,this.length=u,this.now=a,this.maxAge=o||0}},Mf=(i,r,n,u)=>{let a=n.value;ss(i,a)&&(zr(i,n),i[$n]||(a=void 0)),a&&r.call(u,a.value,a.key,i)};jf.exports=$f});var lt=P(($O,Wf)=>{var Xr=class{constructor(r,n){if(n=bE(n),r instanceof Xr)return r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease?r:new Xr(r.raw,n);if(r instanceof eu)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(u=>this.parseRange(u.trim())).filter(u=>u.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let u=this.set[0];if(this.set=this.set.filter(a=>!Gf(a[0])),this.set.length===0)this.set=[u];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&AE(a[0])){this.set=[a];break}}}this.format()}format(){return this.range=this.set.map(r=>r.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(r){r=r.trim();let u=`parseRange:${Object.keys(this.options).join(",")}:${r}`,a=Uf.get(u);if(a)return a;let o=this.options.loose,p=o?Le[xe.HYPHENRANGELOOSE]:Le[xe.HYPHENRANGE];r=r.replace(p,FE(this.options.includePrerelease)),me("hyphen replace",r),r=r.replace(Le[xe.COMPARATORTRIM],CE),me("comparator trim",r,Le[xe.COMPARATORTRIM]),r=r.replace(Le[xe.TILDETRIM],OE),r=r.replace(Le[xe.CARETTRIM],xE),r=r.split(/\s+/).join(" ");let g=o?Le[xe.COMPARATORLOOSE]:Le[xe.COMPARATOR],_=r.split(" ").map(R=>RE(R,this.options)).join(" ").split(/\s+/).map(R=>$E(R,this.options)).filter(this.options.loose?R=>!!R.match(g):()=>!0).map(R=>new eu(R,this.options)),c=_.length,v=new Map;for(let R of _){if(Gf(R))return[R];v.set(R.value,R)}v.size>1&&v.has("")&&v.delete("");let b=[...v.values()];return Uf.set(u,b),b}intersects(r,n){if(!(r instanceof Xr))throw new TypeError("a Range is required");return this.set.some(u=>Bf(u,n)&&r.set.some(a=>Bf(a,n)&&u.every(o=>a.every(p=>o.intersects(p,n)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new SE(r,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(ME(this.set[n],r,this.options))return!0;return!1}};Wf.exports=Xr;var EE=Hf(),Uf=new EE({max:1e3}),bE=Nn(),eu=Mn(),me=Ln(),SE=Te(),{re:Le,t:xe,comparatorTrimReplace:CE,tildeTrimReplace:OE,caretTrimReplace:xE}=vr(),Gf=i=>i.value==="<0.0.0-0",AE=i=>i.value==="",Bf=(i,r)=>{let n=!0,u=i.slice(),a=u.pop();for(;n&&u.length;)n=u.every(o=>a.intersects(o,r)),a=u.pop();return n},RE=(i,r)=>(me("comp",i,r),i=TE(i,r),me("caret",i),i=IE(i,r),me("tildes",i),i=NE(i,r),me("xrange",i),i=qE(i,r),me("stars",i),i),Fe=i=>!i||i.toLowerCase()==="x"||i==="*",IE=(i,r)=>i.trim().split(/\s+/).map(n=>PE(n,r)).join(" "),PE=(i,r)=>{let n=r.loose?Le[xe.TILDELOOSE]:Le[xe.TILDE];return i.replace(n,(u,a,o,p,g)=>{me("tilde",i,u,a,o,p,g);let _;return Fe(a)?_="":Fe(o)?_=`>=${a}.0.0 <${+a+1}.0.0-0`:Fe(p)?_=`>=${a}.${o}.0 <${a}.${+o+1}.0-0`:g?(me("replaceTilde pr",g),_=`>=${a}.${o}.${p}-${g} <${a}.${+o+1}.0-0`):_=`>=${a}.${o}.${p} <${a}.${+o+1}.0-0`,me("tilde return",_),_})},TE=(i,r)=>i.trim().split(/\s+/).map(n=>LE(n,r)).join(" "),LE=(i,r)=>{me("caret",i,r);let n=r.loose?Le[xe.CARETLOOSE]:Le[xe.CARET],u=r.includePrerelease?"-0":"";return i.replace(n,(a,o,p,g,_)=>{me("caret",i,a,o,p,g,_);let c;return Fe(o)?c="":Fe(p)?c=`>=${o}.0.0${u} <${+o+1}.0.0-0`:Fe(g)?o==="0"?c=`>=${o}.${p}.0${u} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.0${u} <${+o+1}.0.0-0`:_?(me("replaceCaret pr",_),o==="0"?p==="0"?c=`>=${o}.${p}.${g}-${_} <${o}.${p}.${+g+1}-0`:c=`>=${o}.${p}.${g}-${_} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.${g}-${_} <${+o+1}.0.0-0`):(me("no pr"),o==="0"?p==="0"?c=`>=${o}.${p}.${g}${u} <${o}.${p}.${+g+1}-0`:c=`>=${o}.${p}.${g}${u} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.${g} <${+o+1}.0.0-0`),me("caret return",c),c})},NE=(i,r)=>(me("replaceXRanges",i,r),i.split(/\s+/).map(n=>DE(n,r)).join(" ")),DE=(i,r)=>{i=i.trim();let n=r.loose?Le[xe.XRANGELOOSE]:Le[xe.XRANGE];return i.replace(n,(u,a,o,p,g,_)=>{me("xRange",i,u,a,o,p,g,_);let c=Fe(o),v=c||Fe(p),b=v||Fe(g),R=b;return a==="="&&R&&(a=""),_=r.includePrerelease?"-0":"",c?a===">"||a==="<"?u="<0.0.0-0":u="*":a&&R?(v&&(p=0),g=0,a===">"?(a=">=",v?(o=+o+1,p=0,g=0):(p=+p+1,g=0)):a==="<="&&(a="<",v?o=+o+1:p=+p+1),a==="<"&&(_="-0"),u=`${a+o}.${p}.${g}${_}`):v?u=`>=${o}.0.0${_} <${+o+1}.0.0-0`:b&&(u=`>=${o}.${p}.0${_} <${o}.${+p+1}.0-0`),me("xRange return",u),u})},qE=(i,r)=>(me("replaceStars",i,r),i.trim().replace(Le[xe.STAR],"")),$E=(i,r)=>(me("replaceGTE0",i,r),i.trim().replace(Le[r.includePrerelease?xe.GTE0PRE:xe.GTE0],"")),FE=i=>(r,n,u,a,o,p,g,_,c,v,b,R,I)=>(Fe(u)?n="":Fe(a)?n=`>=${u}.0.0${i?"-0":""}`:Fe(o)?n=`>=${u}.${a}.0${i?"-0":""}`:p?n=`>=${n}`:n=`>=${n}${i?"-0":""}`,Fe(c)?_="":Fe(v)?_=`<${+c+1}.0.0-0`:Fe(b)?_=`<${c}.${+v+1}.0-0`:R?_=`<=${c}.${v}.${b}-${R}`:i?_=`<${c}.${v}.${+b+1}-0`:_=`<=${_}`,`${n} ${_}`.trim()),ME=(i,r,n)=>{for(let u=0;u<i.length;u++)if(!i[u].test(r))return!1;if(r.prerelease.length&&!n.includePrerelease){for(let u=0;u<i.length;u++)if(me(i[u].semver),i[u].semver!==eu.ANY&&i[u].semver.prerelease.length>0){let a=i[u].semver;if(a.major===r.major&&a.minor===r.minor&&a.patch===r.patch)return!0}return!1}return!0}});var Mn=P((FO,Yf)=>{var jn=Symbol("SemVer ANY"),Hn=class{static get ANY(){return jn}constructor(r,n){if(n=jE(n),r instanceof Hn){if(r.loose===!!n.loose)return r;r=r.value}ru("comparator",r,n),this.options=n,this.loose=!!n.loose,this.parse(r),this.semver===jn?this.value="":this.value=this.operator+this.semver.version,ru("comp",this)}parse(r){let n=this.options.loose?kf[Vf.COMPARATORLOOSE]:kf[Vf.COMPARATOR],u=r.match(n);if(!u)throw new TypeError(`Invalid comparator: ${r}`);this.operator=u[1]!==void 0?u[1]:"",this.operator==="="&&(this.operator=""),u[2]?this.semver=new zf(u[2],this.options.loose):this.semver=jn}toString(){return this.value}test(r){if(ru("Comparator.test",r,this.options.loose),this.semver===jn||r===jn)return!0;if(typeof r=="string")try{r=new zf(r,this.options)}catch{return!1}return tu(r,this.operator,this.semver,this.options)}intersects(r,n){if(!(r instanceof Hn))throw new TypeError("a Comparator is required");if((!n||typeof n!="object")&&(n={loose:!!n,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Xf(r.value,n).test(this.value);if(r.operator==="")return r.value===""?!0:new Xf(this.value,n).test(r.semver);let u=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),a=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),o=this.semver.version===r.semver.version,p=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),g=tu(this.semver,"<",r.semver,n)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),_=tu(this.semver,">",r.semver,n)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return u||a||o&&p||g||_}};Yf.exports=Hn;var jE=Nn(),{re:kf,t:Vf}=vr(),tu=Jo(),ru=Ln(),zf=Te(),Xf=lt()});var Un=P((MO,Kf)=>{var HE=lt(),UE=(i,r,n)=>{try{r=new HE(r,n)}catch{return!1}return r.test(i)};Kf.exports=UE});var Zf=P((jO,Jf)=>{var GE=lt(),BE=(i,r)=>new GE(i,r).set.map(n=>n.map(u=>u.value).join(" ").trim().split(" "));Jf.exports=BE});var eh=P((HO,Qf)=>{var WE=Te(),kE=lt(),VE=(i,r,n)=>{let u=null,a=null,o=null;try{o=new kE(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===-1)&&(u=p,a=new WE(u,n))}),u};Qf.exports=VE});var rh=P((UO,th)=>{var zE=Te(),XE=lt(),YE=(i,r,n)=>{let u=null,a=null,o=null;try{o=new XE(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===1)&&(u=p,a=new zE(u,n))}),u};th.exports=YE});var sh=P((GO,ih)=>{var nu=Te(),KE=lt(),nh=qn(),JE=(i,r)=>{i=new KE(i,r);let n=new nu("0.0.0");if(i.test(n)||(n=new nu("0.0.0-0"),i.test(n)))return n;n=null;for(let u=0;u<i.set.length;++u){let a=i.set[u],o=null;a.forEach(p=>{let g=new nu(p.semver.version);switch(p.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!o||nh(g,o))&&(o=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${p.operator}`)}}),o&&(!n||nh(n,o))&&(n=o)}return n&&i.test(n)?n:null};ih.exports=JE});var uh=P((BO,oh)=>{var ZE=lt(),QE=(i,r)=>{try{return new ZE(i,r).range||"*"}catch{return null}};oh.exports=QE});var os=P((WO,fh)=>{var eb=Te(),ah=Mn(),{ANY:tb}=ah,rb=lt(),nb=Un(),lh=qn(),ch=es(),ib=rs(),sb=ts(),ob=(i,r,n,u)=>{i=new eb(i,u),r=new rb(r,u);let a,o,p,g,_;switch(n){case">":a=lh,o=ib,p=ch,g=">",_=">=";break;case"<":a=ch,o=sb,p=lh,g="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(nb(i,r,u))return!1;for(let c=0;c<r.set.length;++c){let v=r.set[c],b=null,R=null;if(v.forEach(I=>{I.semver===tb&&(I=new ah(">=0.0.0")),b=b||I,R=R||I,a(I.semver,b.semver,u)?b=I:p(I.semver,R.semver,u)&&(R=I)}),b.operator===g||b.operator===_||(!R.operator||R.operator===g)&&o(i,R.semver))return!1;if(R.operator===_&&p(i,R.semver))return!1}return!0};fh.exports=ob});var ph=P((kO,hh)=>{var ub=os(),ab=(i,r,n)=>ub(i,r,">",n);hh.exports=ab});var gh=P((VO,dh)=>{var lb=os(),cb=(i,r,n)=>lb(i,r,"<",n);dh.exports=cb});var _h=P((zO,vh)=>{var mh=lt(),fb=(i,r,n)=>(i=new mh(i,n),r=new mh(r,n),i.intersects(r));vh.exports=fb});var wh=P((XO,yh)=>{var hb=Un(),pb=at();yh.exports=(i,r,n)=>{let u=[],a=null,o=null,p=i.sort((v,b)=>pb(v,b,n));for(let v of p)hb(v,r,n)?(o=v,a||(a=v)):(o&&u.push([a,o]),o=null,a=null);a&&u.push([a,null]);let g=[];for(let[v,b]of u)v===b?g.push(v):!b&&v===p[0]?g.push("*"):b?v===p[0]?g.push(`<=${b}`):g.push(`${v} - ${b}`):g.push(`>=${v}`);let _=g.join(" || "),c=typeof r.raw=="string"?r.raw:String(r);return _.length<c.length?_:r}});var Oh=P((YO,Ch)=>{var Eh=lt(),us=Mn(),{ANY:iu}=us,Gn=Un(),su=at(),db=(i,r,n={})=>{if(i===r)return!0;i=new Eh(i,n),r=new Eh(r,n);let u=!1;e:for(let a of i.set){for(let o of r.set){let p=gb(a,o,n);if(u=u||p!==null,p)continue e}if(u)return!1}return!0},gb=(i,r,n)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===iu){if(r.length===1&&r[0].semver===iu)return!0;n.includePrerelease?i=[new us(">=0.0.0-0")]:i=[new us(">=0.0.0")]}if(r.length===1&&r[0].semver===iu){if(n.includePrerelease)return!0;r=[new us(">=0.0.0")]}let u=new Set,a,o;for(let I of i)I.operator===">"||I.operator===">="?a=bh(a,I,n):I.operator==="<"||I.operator==="<="?o=Sh(o,I,n):u.add(I.semver);if(u.size>1)return null;let p;if(a&&o){if(p=su(a.semver,o.semver,n),p>0)return null;if(p===0&&(a.operator!==">="||o.operator!=="<="))return null}for(let I of u){if(a&&!Gn(I,String(a),n)||o&&!Gn(I,String(o),n))return null;for(let H of r)if(!Gn(I,String(H),n))return!1;return!0}let g,_,c,v,b=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,R=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;b&&b.prerelease.length===1&&o.operator==="<"&&b.prerelease[0]===0&&(b=!1);for(let I of r){if(v=v||I.operator===">"||I.operator===">=",c=c||I.operator==="<"||I.operator==="<=",a){if(R&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===R.major&&I.semver.minor===R.minor&&I.semver.patch===R.patch&&(R=!1),I.operator===">"||I.operator===">="){if(g=bh(a,I,n),g===I&&g!==a)return!1}else if(a.operator===">="&&!Gn(a.semver,String(I),n))return!1}if(o){if(b&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===b.major&&I.semver.minor===b.minor&&I.semver.patch===b.patch&&(b=!1),I.operator==="<"||I.operator==="<="){if(_=Sh(o,I,n),_===I&&_!==o)return!1}else if(o.operator==="<="&&!Gn(o.semver,String(I),n))return!1}if(!I.operator&&(o||a)&&p!==0)return!1}return!(a&&c&&!o&&p!==0||o&&v&&!a&&p!==0||R||b)},bh=(i,r,n)=>{if(!i)return r;let u=su(i.semver,r.semver,n);return u>0?i:u<0||r.operator===">"&&i.operator===">="?r:i},Sh=(i,r,n)=>{if(!i)return r;let u=su(i.semver,r.semver,n);return u<0?i:u>0||r.operator==="<"&&i.operator==="<="?r:i};Ch.exports=db});var Ah=P((KO,xh)=>{var ou=vr();xh.exports={re:ou.re,src:ou.src,tokens:ou.t,SEMVER_SPEC_VERSION:Tn().SEMVER_SPEC_VERSION,SemVer:Te(),compareIdentifiers:Yi().compareIdentifiers,rcompareIdentifiers:Yi().rcompareIdentifiers,parse:_r(),valid:Vc(),clean:Xc(),inc:Kc(),diff:rf(),major:sf(),minor:uf(),patch:lf(),prerelease:ff(),compare:at(),rcompare:pf(),compareLoose:gf(),compareBuild:Qi(),sort:yf(),rsort:Ef(),gt:qn(),lt:es(),eq:Zi(),neq:Ko(),gte:ts(),lte:rs(),cmp:Jo(),coerce:If(),Comparator:Mn(),Range:lt(),satisfies:Un(),toComparators:Zf(),maxSatisfying:eh(),minSatisfying:rh(),minVersion:sh(),validRange:uh(),outside:os(),gtr:ph(),ltr:gh(),intersects:_h(),simplifyRange:wh(),subset:Oh()}});var Ae=P(br=>{"use strict";var Rh=br&&br.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(br,"__esModule",{value:!0});br.getCoreVersion=void 0;var Ih=Rh(require("path")),Ph=Rh(require("fs")),mb=Ah(),vb=require("@serverless-devs/core"),uu=Ih.default.join(vb.getRootHome(),"cache","core"),Th=Ih.default.join(uu,"package.json");function _b(){if(Ph.default.existsSync(Th)){var i=require("@serverless-devs/core/package.json").version,r=Lh();return mb.gt(r,i)?require(uu):require("@serverless-devs/core")}return require("@serverless-devs/core")}function Lh(){return Ph.default.existsSync(uu)?require(Th).version:void 0}br.getCoreVersion=Lh;br.default=_b()});var Nh=P((ZO,yb)=>{yb.exports={name:"@serverless-devs/s",version:"2.0.95-beta.1",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:{prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",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:{"@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",commander:"^6.0.0",dotenv:"^10.0.0",esbuild:"^0.13.6",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.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"^0.1.15-beta.2"}}});var Gt=P(G=>{"use strict";var wb=G&&G.__createBinding||(Object.create?function(i,r,n,u){u===void 0&&(u=n),Object.defineProperty(i,u,{enumerable:!0,get:function(){return r[n]}})}:function(i,r,n,u){u===void 0&&(u=n),i[u]=r[n]}),Eb=G&&G.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),bb=G&&G.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var n in i)n!=="default"&&Object.prototype.hasOwnProperty.call(i,n)&&wb(r,i,n);return Eb(r,i),r},Dh=G&&G.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},qh=G&&G.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},as=G&&G.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(G,"__esModule",{value:!0});G.emoji=G.mark=G.replaceTemplate=G.getTemplatekey=G.replaceFun=G.getLang=G.printn=G.checkTemplateFile=G.checkAndReturnTemplateFile=G.yamlLoad=G.getFolderSize=G.getVersion=G.bgRed=G.red=void 0;var Ce=as(require("path")),Je=as(require("fs")),au=as(Xi()),Sb=as(require("os")),Cb=Sr(),ls=bb(Ae()),lu=ls.default.colors,Ob=ls.default.jsyaml,cs=Nh();G.red=lu.hex("#fd5750");G.bgRed=lu.hex("#000").bgHex("#fd5750");function xb(){return(0,ls.getCoreVersion)()?cs.name+": "+cs.version+", @serverless-devs/core: "+(0,ls.getCoreVersion)()+", "+process.platform+"-"+process.arch+", node-"+process.version:cs.name+": "+cs.version+", "+process.platform+"-"+process.arch+", node-"+process.version}G.getVersion=xb;function Ab(i){return Dh(this,void 0,void 0,function(){function r(a){return Dh(this,void 0,void 0,function(){var o,p;return qh(this,function(g){switch(g.label){case 0:return o=Je.default.lstatSync(a),typeof o!="object"?[2]:(n.set(o.ino,o.size),o.isDirectory()?(p=Je.default.readdirSync(a),typeof p!="object"?[2]:[4,Promise.all(p.map(function(_){return r(Ce.default.join(a,_))}))]):[3,2]);case 1:g.sent(),g.label=2;case 2:return[2]}})})}var n,u;return qh(this,function(a){switch(a.label){case 0:return n=new Map,[4,r(i)];case 1:return a.sent(),u=Array.from(n.values()).reduce(function(o,p){return o+p},0),[2,u]}})})}G.getFolderSize=Ab;function $h(i){var r=Je.default.readFileSync(i,"utf8");try{return Ob.load(r)}catch{if(["-h","--help"].includes(process.argv[2]))return;var n=Ce.default.basename(i);new Cb.HumanError({errorMessage:n+" format is incorrect",tips:"Please check the configuration of "+n+", Serverless Devs' Yaml specification document can refer to\uFF1A"+lu.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/yaml.md")}),process.exit(1)}}G.yamlLoad=$h;function Bn(i,r){r===void 0&&(r=!1);var n=Je.default.readFileSync(i,"utf8"),u=r?JSON.parse(n):$h(i);if(!u)return!1;for(var a in u)if(u[a].Component&&u[a].Provider&&u[a].Properties)return!0;return u.hasOwnProperty("edition")}function Fh(){if(process.env.serverless_devs_temp_template)return process.env.serverless_devs_temp_template;var i=process.cwd(),r=process.argv.includes("-t")?"-t":process.argv.includes("--template")?"--template":null,n=r?process.argv.indexOf(r):-1;if(n!==-1){var u=n+1,a=process.argv[u];if(a&&(a.endsWith(".yaml")||a.endsWith(".yml")||a.endsWith(".json"))){var o=!!a.endsWith(".json");if(Je.default.existsSync(Ce.default.join(i,a))&&Bn(Ce.default.join(i,a),o)){process.argv.splice(n,2);var p=JSON.parse(process.env.serverless_devs_temp_argv);return p.splice(p.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(p),process.env.serverless_devs_temp_template=Ce.default.join(i,a),Ce.default.join(i,a)}else if(Je.default.existsSync(a)&&Bn(a,o)){process.argv.splice(n,2);var p=JSON.parse(process.env.serverless_devs_temp_argv);return p.splice(p.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(p),process.env.serverless_devs_temp_template=a,a}}}return Je.default.existsSync(Ce.default.join(i,"s.yaml"))&&Bn(Ce.default.join(i,"s.yaml"))?(process.env.serverless_devs_temp_template=Ce.default.join(i,"s.yaml"),Ce.default.join(i,"s.yaml")):Je.default.existsSync(Ce.default.join(i,"s.yml"))&&Bn(Ce.default.join(i,"s.yml"))?(process.env.serverless_devs_temp_template=Ce.default.join(i,"s.yml"),Ce.default.join(i,"s.yml")):Je.default.existsSync(Ce.default.join(i,"s.json"))&&Bn(Ce.default.join(i,"s.json"),!0)?(process.env.serverless_devs_temp_template=Ce.default.join(i,"s.json"),Ce.default.join(i,"s.json")):null}G.checkAndReturnTemplateFile=Fh;function Mh(i){return Je.default.existsSync(i)?i:null}G.checkTemplateFile=Mh;function jh(i,r){r===void 0&&(r=" ");for(var n="",u=0;u<i;u++)n=n+r;return n}G.printn=jh;function Hh(){return"en"}G.getLang=Hh;function cu(i,r){var n=/\{\{(.*?)\}\}/g,u=i.match(n);if(u)for(var a=0;a<u.length;a++){var o=u[a].replace(/{{|}}/g,""),p=au.default.trim(o.split("|")[0]);r[p]&&(i=i.replace(u[a],r[p]))}return i}G.replaceFun=cu;function Uh(i){var r=/\{\{(.*?)\}\}/g,n=i.match(r);return n?n.filter(function(u){return u}).map(function(u){var a=u.replace(/{{|}}/g,""),o=a.split("|");return{name:au.default.trim(o[0]),desc:au.default.trim(o[1])}}):[]}G.getTemplatekey=Uh;function Gh(i,r){i.forEach(function(n){if(Je.default.existsSync(n)){var u=Je.default.readFileSync(n,"utf-8"),a=cu(u,r);Je.default.writeFileSync(n,a,"utf-8")}})}G.replaceTemplate=Gh;function Bh(i){if(!i)return i;var r=i.slice(-4);return"***********"+r}G.mark=Bh;function Rb(i){return Sb.default.platform()==="win32"?"":i}G.emoji=Rb;G.default={checkAndReturnTemplateFile:Fh,checkTemplateFile:Mh,printn:jh,mark:Bh,getLang:Hh,replaceTemplate:Gh,replaceFun:cu,getTemplatekey:Uh}});var hs=P(Bt=>{"use strict";var Wh=Bt&&Bt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getHistoryFile=Bt.getHomeDir=void 0;var Ib=Wh(require("path")),kh=Wh(Ae()),fs=kh.default.fse,Pb=kh.default.getRootHome;function fu(){var i=Pb();return fs.existsSync(i)||fs.mkdirSync(i),i}Bt.getHomeDir=fu;function Vh(){var i=Ib.default.join(fu(),"history");return fs.existsSync(i)||fs.createFileSync(i),i}Bt.getHistoryFile=Vh;Bt.default={getHomeDir:fu,getHistoryFile:Vh}});var du=P(Me=>{"use strict";var Tb=Me&&Me.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},Lb=Me&&Me.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},hu=Me&&Me.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Me,"__esModule",{value:!0});Me.handlerProfileFile=Me.getConfig=Me.setConfig=void 0;var zh=hu(require("path")),Nb=hu(hs()),pu=hu(Ae()),Et=pu.default.fse,ps=pu.default.jsyaml,Xh=pu.default.getRootHome;function Db(i){var r=Kh();Et.writeFileSync(r,ps.dump(i))}function Yh(){var i=Kh();if(!Et.existsSync(i))return{};try{var r=ps.load(Et.readFileSync(i,"utf8"))||{};return r}catch(n){throw n}}function Kh(){var i=zh.default.join(Nb.default.getHomeDir(),"set-config.yml");return Et.existsSync(i)||Et.createFileSync(i),i}function Jh(i,r){var n=Yh();n[i]=r,Db(n)}Me.setConfig=Jh;function Zh(i,r){var n=Yh();return n[i]||r}Me.getConfig=Zh;function Qh(i){return Tb(this,void 0,void 0,function(){var r,n,u,a,o,p,g;return Lb(this,function(_){switch(_.label){case 0:if(r=i.filePath||"set-config.yml",n=zh.default.join(Xh(),r),u=Et.existsSync(n),a={},u)return[3,5];o=Xh(),_.label=1;case 1:return _.trys.push([1,2,,4]),Et.statSync(o),[3,4];case 2:return p=_.sent(),[4,Et.mkdirSync(o)];case 3:return _.sent(),[3,4];case 4:return[3,6];case 5:try{a=ps.load(Et.readFileSync(n,"utf8"))||{}}catch(c){throw c}_.label=6;case 6:return i.read?[2,a]:(g=i.configKey||"",a[g]=i.data,[4,Et.writeFileSync(n,ps.dump(a))]);case 7:return _.sent(),[2,a]}})})}Me.handlerProfileFile=Qh;Me.default={setConfig:Jh,getConfig:Zh,handlerProfileFile:Qh}});var Cr=P(Yr=>{"use strict";var qb=Yr&&Yr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.ServerlessError=void 0;var $b=qb(Ae()),Fb=$b.default.Logger,Mb=new Fb("S-CLI-ERROR"),jb=function(){function i(r,n,u){Mb.error(r+": "+n,u),process.exit(1)}return i}();Yr.ServerlessError=jb});var ep=P(Kr=>{"use strict";var Hb=Kr&&Kr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Kr,"__esModule",{value:!0});Kr.CommandError=void 0;var Ub=Cr(),Gb=function(i){Hb(r,i);function r(n,u){return i.call(this,"Error",n,u)||this}return r}(Ub.ServerlessError);Kr.CommandError=Gb});var tp=P(Jr=>{"use strict";var Bb=Jr&&Jr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Jr,"__esModule",{value:!0});Jr.ConfigDeleteError=void 0;var Wb=Cr(),kb=function(i){Bb(r,i);function r(n,u){return i.call(this,"Deletion failed",n,u)||this}return r}(Wb.ServerlessError);Jr.ConfigDeleteError=kb});var rp=P(Zr=>{"use strict";var Vb=Zr&&Zr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Zr,"__esModule",{value:!0});Zr.ConfigError=void 0;var zb=Cr(),Xb=function(i){Vb(r,i);function r(n,u){return i.call(this,"Config failed",n,u)||this}return r}(zb.ServerlessError);Zr.ConfigError=Xb});var np=P(Qr=>{"use strict";var Yb=Qr&&Qr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Qr,"__esModule",{value:!0});Qr.ConfigGetError=void 0;var Kb=Cr(),Jb=function(i){Yb(r,i);function r(n,u){return i.call(this,"Get failed",n,u)||this}return r}(Kb.ServerlessError);Qr.ConfigGetError=Jb});var ip=P(en=>{"use strict";var Zb=en&&en.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(en,"__esModule",{value:!0});en.InitError=void 0;var Qb=Cr(),eS=function(i){Zb(r,i);function r(n,u){return i.call(this,"Initialization failed",n,u)||this}return r}(Qb.ServerlessError);en.InitError=eS});var op=P(bt=>{"use strict";var tS=bt&&bt.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},rS=bt&&bt.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},nS=bt&&bt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(bt,"__esModule",{value:!0});bt.HumanError=void 0;var sp=nS(Ae()),iS=Gt(),sS=sp.default.colors,oS=function(){function i(r){var n=r.errorMessage,u=r.tips;this.errorMessage=n,console.log(`
35
35
  `+(0,iS.bgRed)("ERROR:")),console.log("TypeError: "+n+`
36
36
  `),console.log(sS.gray(u)+`
37
37
  `)}return i.prototype.report=function(r){return tS(this,void 0,void 0,function(){var n;return rS(this,function(u){switch(u.label){case 0:return n=r.error,[4,sp.default.report({type:"jsError",content:this.errorMessage+"||"+n.stack})];case 1:return u.sent(),[2]}})})},i}();bt.HumanError=oS});var ap=P(tn=>{"use strict";var uS=tn&&tn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(tn,"__esModule",{value:!0});tn.HumanWarning=void 0;var aS=uS(Ae()),up=aS.default.colors,lS=function(){function i(r){var n=r.warningMessage,u=r.tips;console.log(`
38
38
  `+up.hex("#000").bgYellow("WARNING:")),console.log(n+`
39
39
  `),u&&console.log(up.gray(u)+`
40
- `)}return i}();tn.HumanWarning=lS});var Sr=P(oe=>{"use strict";var cS=oe&&oe.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},fS=oe&&oe.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},hS=oe&&oe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(oe,"__esModule",{value:!0});oe.HandleError=oe.HumanWarning=oe.HumanError=oe.ServerlessError=oe.InitError=oe.ConfigGetError=oe.ConfigError=oe.ConfigDeleteError=oe.CommandError=void 0;var gu=Gt(),pS=du(),mu=hS(Ae()),Or=mu.default.colors,dS=mu.default.report,gS=mu.default.getMAC,mS=ep();Object.defineProperty(oe,"CommandError",{enumerable:!0,get:function(){return mS.CommandError}});var vS=tp();Object.defineProperty(oe,"ConfigDeleteError",{enumerable:!0,get:function(){return vS.ConfigDeleteError}});var _S=rp();Object.defineProperty(oe,"ConfigError",{enumerable:!0,get:function(){return _S.ConfigError}});var yS=np();Object.defineProperty(oe,"ConfigGetError",{enumerable:!0,get:function(){return yS.ConfigGetError}});var wS=ip();Object.defineProperty(oe,"InitError",{enumerable:!0,get:function(){return wS.InitError}});var ES=Cr();Object.defineProperty(oe,"ServerlessError",{enumerable:!0,get:function(){return ES.ServerlessError}});var bS=op();Object.defineProperty(oe,"HumanError",{enumerable:!0,get:function(){return bS.HumanError}});var SS=ap();Object.defineProperty(oe,"HumanWarning",{enumerable:!0,get:function(){return SS.HumanWarning}});var CS=gS().replace(/:/g,"");function vu(i,r){return""+Or.gray(i)+Or.gray.underline(r)}var OS=function(){function i(r){var n=r.error,u=r.prefix,a=u===void 0?"Message:":u;this.traceId=""+CS+Date.now(),console.log((0,gu.red)("\u2716 "+a+`
40
+ `)}return i}();tn.HumanWarning=lS});var Sr=P(oe=>{"use strict";var cS=oe&&oe.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},fS=oe&&oe.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},hS=oe&&oe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(oe,"__esModule",{value:!0});oe.HandleError=oe.HumanWarning=oe.HumanError=oe.ServerlessError=oe.InitError=oe.ConfigGetError=oe.ConfigError=oe.ConfigDeleteError=oe.CommandError=void 0;var gu=Gt(),pS=du(),mu=hS(Ae()),Or=mu.default.colors,dS=mu.default.report,gS=mu.default.getMAC,mS=ep();Object.defineProperty(oe,"CommandError",{enumerable:!0,get:function(){return mS.CommandError}});var vS=tp();Object.defineProperty(oe,"ConfigDeleteError",{enumerable:!0,get:function(){return vS.ConfigDeleteError}});var _S=rp();Object.defineProperty(oe,"ConfigError",{enumerable:!0,get:function(){return _S.ConfigError}});var yS=np();Object.defineProperty(oe,"ConfigGetError",{enumerable:!0,get:function(){return yS.ConfigGetError}});var wS=ip();Object.defineProperty(oe,"InitError",{enumerable:!0,get:function(){return wS.InitError}});var ES=Cr();Object.defineProperty(oe,"ServerlessError",{enumerable:!0,get:function(){return ES.ServerlessError}});var bS=op();Object.defineProperty(oe,"HumanError",{enumerable:!0,get:function(){return bS.HumanError}});var SS=ap();Object.defineProperty(oe,"HumanWarning",{enumerable:!0,get:function(){return SS.HumanWarning}});function CS(){try{return gS().replace(/:/g,"")}catch{return"unknown"}}function vu(i,r){return""+Or.gray(i)+Or.gray.underline(r)}var OS=function(){function i(r){var n=r.error,u=r.prefix,a=u===void 0?"Message:":u;this.traceId=""+CS()+Date.now(),console.log((0,gu.red)("\u2716 "+a+`
41
41
  `));var o=(0,pS.getConfig)("analysis");o!=="disable"&&console.log(Or.gray("TraceId: "+this.traceId)),console.log(Or.gray("Environment: "+(0,gu.getVersion)())),console.log(vu("Documents: ","https://www.serverless-devs.com")),console.log(vu("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(vu("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
42
42
  `)),console.log((0,gu.bgRed)("ERROR:")+`
43
43
  `+n+`