@serverless-devs/s 2.0.96 → 2.0.97-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.
- package/lib/clean/index.js +1 -1
- package/lib/cli/index.js +1 -1
- package/lib/component/index.js +1 -1
- package/lib/config/add/index.js +1 -1
- package/lib/config/delete/index.js +1 -1
- package/lib/config/get/index.js +1 -1
- package/lib/config/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/init/index.js +1 -1
- package/lib/set/analysis/index.js +1 -1
- package/lib/set/index.js +1 -1
- package/lib/set/locale/index.js +1 -1
- package/lib/set/registry/index.js +1 -1
- package/lib/set/workspace/index.js +1 -1
- package/lib/update-notifier/index.js +1 -1
- package/package.json +2 -2
- package/CODE_OF_CONDUCT.md +0 -5
- package/CONTRIBUTING.md +0 -189
- package/CONTRIBUTORS.md +0 -148
- package/docs/readme.md +0 -100
- package/docs/zh/awesome.md +0 -20
- package/docs/zh/cicd.md +0 -231
- package/docs/zh/cli_design.md +0 -100
- package/docs/zh/command/clean.md +0 -63
- package/docs/zh/command/cli.md +0 -92
- package/docs/zh/command/component.md +0 -75
- package/docs/zh/command/config.md +0 -274
- package/docs/zh/command/custom.md +0 -73
- package/docs/zh/command/init.md +0 -149
- package/docs/zh/command/readme.md +0 -76
- package/docs/zh/command/set.md +0 -195
- package/docs/zh/default_provider_config/alibabacloud.md +0 -82
- package/docs/zh/default_provider_config/aws.md +0 -12
- package/docs/zh/default_provider_config/azure.md +0 -9
- package/docs/zh/default_provider_config/baiducloud.md +0 -8
- package/docs/zh/default_provider_config/gcp.md +0 -21
- package/docs/zh/default_provider_config/huaweicloud.md +0 -52
- package/docs/zh/default_provider_config/readme.md +0 -9
- package/docs/zh/default_provider_config/tencentcloud.md +0 -41
- package/docs/zh/install.md +0 -52
- package/docs/zh/package_dev.md +0 -142
- package/docs/zh/quick_start.md +0 -297
- package/docs/zh/readme.md +0 -92
- package/docs/zh/tool.md +0 -101
- package/docs/zh/yaml.md +0 -207
- package/docs/zh/yaml_and_cli.md +0 -67
- package/jest.setup.ts +0 -37
- package/spec/readme.md +0 -59
- package/spec/zh/0.0.1/readme.md +0 -47
- package/spec/zh/0.0.1/serverless_package_model/1.purpose_and_goals.md +0 -3
- package/spec/zh/0.0.1/serverless_package_model/2.overview_and_terminology.md +0 -14
- package/spec/zh/0.0.1/serverless_package_model/3.package_model.md +0 -434
- package/spec/zh/0.0.1/serverless_package_model/4.application_scopes.md +0 -3
- package/spec/zh/0.0.1/serverless_package_model/5.design_principles.md +0 -3
- package/spec/zh/0.0.1/serverless_package_model/readme.md +0 -12
- package/spec/zh/0.0.1/serverless_registry_model/1.purpose_and_goals.md +0 -18
- package/spec/zh/0.0.1/serverless_registry_model/2.overview_and_terminology.md +0 -18
- package/spec/zh/0.0.1/serverless_registry_model/3.registry_model.md +0 -61
- package/spec/zh/0.0.1/serverless_registry_model/4.application_scopes.md +0 -6
- package/spec/zh/0.0.1/serverless_registry_model/5.design_principles.md +0 -3
- package/spec/zh/0.0.1/serverless_registry_model/readme.md +0 -12
- package/spec/zh/0.0.1/serverless_user_model/1.purpose_and_goals.md +0 -3
- package/spec/zh/0.0.1/serverless_user_model/2.overview_and_terminology.md +0 -16
- package/spec/zh/0.0.1/serverless_user_model/3.user_model.md +0 -218
- package/spec/zh/0.0.1/serverless_user_model/4.application_scopes.md +0 -4
- package/spec/zh/0.0.1/serverless_user_model/5.design_principles.md +0 -3
- package/spec/zh/0.0.1/serverless_user_model/readme.md +0 -12
- package/test/ci.sh +0 -33
- package/test/cli/cli-manager.test.ts +0 -64
- package/test/config/get.test.ts +0 -12
- package/test/helloworld.test.ts +0 -7
- package/test/start-fc-http-nodejs12/code/index.js +0 -47
- package/test/start-fc-http-nodejs12/s.yaml +0 -38
- package/test/utils/index.test.ts +0 -8
- package/test/utils/storage.test.ts +0 -19
- package/tsconfig.json +0 -37
package/lib/clean/index.js
CHANGED
|
@@ -42,7 +42,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
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.96",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":"latest"}}});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.97-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":"beta"}}});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,7 +31,7 @@ __p += '`),J&&(A+=`' +
|
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+A+`return __p
|
|
34
|
-
}`;var B=xc(function(){return Q(d,q+"return "+A).apply(i,m)});if(B.source=A,$o(B))throw B;return B}function yy(e){return te(e).toLowerCase()}function Ey(e){return te(e).toUpperCase()}function wy(e,t,s){if(e=te(e),e&&(s||t===i))return qa(e);if(!e||!(t=ze(t)))return e;var l=ht(e),f=ht(t),d=$a(l,f),m=Fa(l,f)+1;return tr(l,d,m).join("")}function by(e,t,s){if(e=te(e),e&&(s||t===i))return e.slice(0,Ma(e)+1);if(!e||!(t=ze(t)))return e;var l=ht(e),f=Fa(l,ht(t))+1;return tr(l,0,f).join("")}function Sy(e,t,s){if(e=te(e),e&&(s||t===i))return e.replace(qs,"");if(!e||!(t=ze(t)))return e;var l=ht(e),f=$a(l,ht(t));return tr(l,f).join("")}function Cy(e,t){var s=Rt,l=_d;if(fe(t)){var f="separator"in t?t.separator:f;s="length"in t?W(t.length):s,l="omission"in t?ze(t.omission):l}e=te(e);var d=e.length;if(qr(e)){var m=ht(e);d=m.length}if(s>=d)return e;var y=s-$r(l);if(y<1)return l;var w=m?tr(m,0,y).join(""):e.slice(0,y);if(f===i)return w+l;if(m&&(y+=w.length-y),Fo(f)){if(e.slice(y).search(f)){var O,x=w;for(f.global||(f=Zs(f.source,te(na.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var A=O.index;w=w.slice(0,A===i?y:A)}}else if(e.indexOf(ze(f),y)!=y){var T=w.lastIndexOf(f);T>-1&&(w=w.slice(0,T))}return w+l}function Oy(e){return e=te(e),e&&$d.test(e)?e.replace(ea,em):e}var xy=Gr(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Ho=Al("toUpperCase");function Oc(e,t,s){return e=te(e),t=s?i:t,t===i?Yg(e)?nm(e):Hg(e):e.match(t)||[]}var xc=V(function(e,t){try{return ke(e,i,t)}catch(s){return $o(s)?s:new M(s)}}),Ay=qt(function(e,t){return et(t,function(s){s=Et(s),Nt(e,s,Do(e[s],e))}),e});function Iy(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 Ry(e){return ev(nt(e,c))}function Uo(e){return function(){return e}}function Py(e,t){return e==null||e!==e?t:e}var Ty=Rl(),Ly=Rl(!0);function We(e){return e}function Go(e){return sl(typeof e=="function"?e:nt(e,c))}function Ny(e){return ul(nt(e,c))}function Dy(e,t){return al(e,nt(t,c))}var qy=V(function(e,t){return function(s){return Cn(s,e,t)}}),$y=V(function(e,t){return function(s){return Cn(e,s,t)}});function Wo(e,t,s){var l=be(t),f=Ri(t,l);s==null&&!(fe(t)&&(f.length||!l.length))&&(s=t,t=e,e=this,f=Ri(t,be(t)));var d=!(fe(s)&&"chain"in s)||!!s.chain,m=Ft(e);return et(f,function(y){var w=t[y];e[y]=w,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:w,args:arguments,thisArg:e}),x.__chain__=O,x}return w.apply(e,Xt([this.value()],arguments))})}),e}function Fy(){return we._===this&&(we._=lm),this}function Bo(){}function jy(e){return e=W(e),V(function(t){return ll(t,e)})}var My=wo(ce),Hy=wo(Pa),Uy=wo(ks);function Ac(e){return Io(e)?Vs(Et(e)):vv(e)}function Gy(e){return function(t){return e==null?i:pr(e,t)}}var Wy=Tl(),By=Tl(!0);function ko(){return[]}function Vo(){return!1}function ky(){return{}}function Vy(){return""}function zy(){return!0}function Xy(e,t){if(e=W(e),e<1||e>Vt)return[];var s=vt,l=Re(e,vt);t=$(t),e-=vt;for(var f=Ys(l,t);++s<e;)t(s);return f}function Yy(e){return U(e)?ce(e,Et):Xe(e)?[e]:He(zl(te(e)))}function Ky(e){var t=++um;return te(e)+t}var Jy=qi(function(e,t){return e+t},0),Zy=bo("ceil"),Qy=qi(function(e,t){return e/t},1),eE=bo("floor");function tE(e){return e&&e.length?Ii(e,We,oo):i}function rE(e,t){return e&&e.length?Ii(e,$(t,2),oo):i}function nE(e){return Na(e,We)}function iE(e,t){return Na(e,$(t,2))}function sE(e){return e&&e.length?Ii(e,We,co):i}function oE(e,t){return e&&e.length?Ii(e,$(t,2),co):i}var uE=qi(function(e,t){return e*t},1),aE=bo("round"),lE=qi(function(e,t){return e-t},0);function cE(e){return e&&e.length?Xs(e,We):0}function fE(e,t){return e&&e.length?Xs(e,$(t,2)):0}return h.after=N0,h.ary=ic,h.assign=E1,h.assignIn=_c,h.assignInWith=Xi,h.assignWith=w1,h.at=b1,h.before=sc,h.bind=Do,h.bindAll=Ay,h.bindKey=oc,h.castArray=k0,h.chain=tc,h.chunk=e_,h.compact=t_,h.concat=r_,h.cond=Iy,h.conforms=Ry,h.constant=Uo,h.countBy=c0,h.create=S1,h.curry=uc,h.curryRight=ac,h.debounce=lc,h.defaults=C1,h.defaultsDeep=O1,h.defer=D0,h.delay=q0,h.difference=n_,h.differenceBy=i_,h.differenceWith=s_,h.drop=o_,h.dropRight=u_,h.dropRightWhile=a_,h.dropWhile=l_,h.fill=c_,h.filter=h0,h.flatMap=g0,h.flatMapDeep=m0,h.flatMapDepth=v0,h.flatten=Jl,h.flattenDeep=f_,h.flattenDepth=h_,h.flip=$0,h.flow=Ty,h.flowRight=Ly,h.fromPairs=p_,h.functions=L1,h.functionsIn=N1,h.groupBy=_0,h.initial=g_,h.intersection=m_,h.intersectionBy=v_,h.intersectionWith=__,h.invert=q1,h.invertBy=$1,h.invokeMap=E0,h.iteratee=Go,h.keyBy=w0,h.keys=be,h.keysIn=Ge,h.map=Gi,h.mapKeys=j1,h.mapValues=M1,h.matches=Ny,h.matchesProperty=Dy,h.memoize=Bi,h.merge=H1,h.mergeWith=yc,h.method=qy,h.methodOf=$y,h.mixin=Wo,h.negate=ki,h.nthArg=jy,h.omit=U1,h.omitBy=G1,h.once=F0,h.orderBy=b0,h.over=My,h.overArgs=j0,h.overEvery=Hy,h.overSome=Uy,h.partial=qo,h.partialRight=cc,h.partition=S0,h.pick=W1,h.pickBy=Ec,h.property=Ac,h.propertyOf=Gy,h.pull=b_,h.pullAll=Ql,h.pullAllBy=S_,h.pullAllWith=C_,h.pullAt=O_,h.range=Wy,h.rangeRight=By,h.rearg=M0,h.reject=x0,h.remove=x_,h.rest=H0,h.reverse=Lo,h.sampleSize=I0,h.set=k1,h.setWith=V1,h.shuffle=R0,h.slice=A_,h.sortBy=L0,h.sortedUniq=D_,h.sortedUniqBy=q_,h.split=gy,h.spread=U0,h.tail=$_,h.take=F_,h.takeRight=j_,h.takeRightWhile=M_,h.takeWhile=H_,h.tap=t0,h.throttle=G0,h.thru=Ui,h.toArray=gc,h.toPairs=wc,h.toPairsIn=bc,h.toPath=Yy,h.toPlainObject=vc,h.transform=z1,h.unary=W0,h.union=U_,h.unionBy=G_,h.unionWith=W_,h.uniq=B_,h.uniqBy=k_,h.uniqWith=V_,h.unset=X1,h.unzip=No,h.unzipWith=ec,h.update=Y1,h.updateWith=K1,h.values=kr,h.valuesIn=J1,h.without=z_,h.words=Oc,h.wrap=B0,h.xor=X_,h.xorBy=Y_,h.xorWith=K_,h.zip=J_,h.zipObject=Z_,h.zipObjectDeep=Q_,h.zipWith=e0,h.entries=wc,h.entriesIn=bc,h.extend=_c,h.extendWith=Xi,Wo(h,h),h.add=Jy,h.attempt=xc,h.camelCase=ty,h.capitalize=Sc,h.ceil=Zy,h.clamp=Z1,h.clone=V0,h.cloneDeep=X0,h.cloneDeepWith=Y0,h.cloneWith=z0,h.conformsTo=K0,h.deburr=Cc,h.defaultTo=Py,h.divide=Qy,h.endsWith=ry,h.eq=dt,h.escape=ny,h.escapeRegExp=iy,h.every=f0,h.find=p0,h.findIndex=Yl,h.findKey=x1,h.findLast=d0,h.findLastIndex=Kl,h.findLastKey=A1,h.floor=eE,h.forEach=rc,h.forEachRight=nc,h.forIn=I1,h.forInRight=R1,h.forOwn=P1,h.forOwnRight=T1,h.get=jo,h.gt=J0,h.gte=Z0,h.has=D1,h.hasIn=Mo,h.head=Zl,h.identity=We,h.includes=y0,h.indexOf=d_,h.inRange=Q1,h.invoke=F1,h.isArguments=mr,h.isArray=U,h.isArrayBuffer=Q0,h.isArrayLike=Ue,h.isArrayLikeObject=de,h.isBoolean=e1,h.isBuffer=rr,h.isDate=t1,h.isElement=r1,h.isEmpty=n1,h.isEqual=i1,h.isEqualWith=s1,h.isError=$o,h.isFinite=o1,h.isFunction=Ft,h.isInteger=fc,h.isLength=Vi,h.isMap=hc,h.isMatch=u1,h.isMatchWith=a1,h.isNaN=l1,h.isNative=c1,h.isNil=h1,h.isNull=f1,h.isNumber=pc,h.isObject=fe,h.isObjectLike=he,h.isPlainObject=Pn,h.isRegExp=Fo,h.isSafeInteger=p1,h.isSet=dc,h.isString=zi,h.isSymbol=Xe,h.isTypedArray=Br,h.isUndefined=d1,h.isWeakMap=g1,h.isWeakSet=m1,h.join=y_,h.kebabCase=sy,h.last=st,h.lastIndexOf=E_,h.lowerCase=oy,h.lowerFirst=uy,h.lt=v1,h.lte=_1,h.max=tE,h.maxBy=rE,h.mean=nE,h.meanBy=iE,h.min=sE,h.minBy=oE,h.stubArray=ko,h.stubFalse=Vo,h.stubObject=ky,h.stubString=Vy,h.stubTrue=zy,h.multiply=uE,h.nth=w_,h.noConflict=Fy,h.noop=Bo,h.now=Wi,h.pad=ay,h.padEnd=ly,h.padStart=cy,h.parseInt=fy,h.random=ey,h.reduce=C0,h.reduceRight=O0,h.repeat=hy,h.replace=py,h.result=B1,h.round=aE,h.runInContext=E,h.sample=A0,h.size=P0,h.snakeCase=dy,h.some=T0,h.sortedIndex=I_,h.sortedIndexBy=R_,h.sortedIndexOf=P_,h.sortedLastIndex=T_,h.sortedLastIndexBy=L_,h.sortedLastIndexOf=N_,h.startCase=my,h.startsWith=vy,h.subtract=lE,h.sum=cE,h.sumBy=fE,h.template=_y,h.times=Xy,h.toFinite=jt,h.toInteger=W,h.toLength=mc,h.toLower=yy,h.toNumber=ot,h.toSafeInteger=y1,h.toString=te,h.toUpper=Ey,h.trim=wy,h.trimEnd=by,h.trimStart=Sy,h.truncate=Cy,h.unescape=Oy,h.uniqueId=Ky,h.upperCase=xy,h.upperFirst=Ho,h.each=rc,h.eachRight=nc,h.first=Zl,Wo(h,function(){var e={};return _t(h,function(t,s){ne.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){Y.prototype[e]=function(s){s=s===i?1:Ee(W(s),0);var l=this.__filtered__&&!t?new Y(this):this.clone();return l.__filtered__?l.__takeCount__=Re(s,l.__takeCount__):l.__views__.push({size:Re(s,vt),type:e+(l.__dir__<0?"Right":"")}),l},Y.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),et(["filter","map","takeWhile"],function(e,t){var s=t+1,l=s==Ju||s==bd;Y.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":"");Y.prototype[e]=function(){return this[s](1).value()[0]}}),et(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[s](1)}}),Y.prototype.compact=function(){return this.filter(We)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=V(function(e,t){return typeof e=="function"?new Y(this):this.map(function(s){return Cn(s,e,t)})}),Y.prototype.reject=function(e){return this.filter(ki($(e)))},Y.prototype.slice=function(e,t){e=W(e);var s=this;return s.__filtered__&&(e>0||t<0)?new Y(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=W(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(vt)},_t(Y.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,w=m instanceof Y,O=y[0],x=w||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&&(w=x=!1);var T=this.__chain__,q=!!this.__actions__.length,F=d&&!T,B=w&&!q;if(!d&&x){m=B?m:new Y(this);var j=e.apply(m,y);return j.__actions__.push({func:Ui,args:[A],thisArg:i}),new rt(j,T)}return F&&B?e.apply(this,y):(j=this.thru(A),F?l?j.value()[0]:j.value():j)})}),et(["pop","push","shift","sort","splice","unshift"],function(e){var t=pi[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(Y.prototype,function(e,t){var s=h[t];if(s){var l=s.name+"";ne.call(Mr,l)||(Mr[l]=[]),Mr[l].push({name:t,func:s})}}),Mr[Di(i,re).name]=[{name:"wrapper",func:i}],Y.prototype.clone=Om,Y.prototype.reverse=xm,Y.prototype.value=Am,h.prototype.at=r0,h.prototype.chain=n0,h.prototype.commit=i0,h.prototype.next=s0,h.prototype.plant=u0,h.prototype.reverse=a0,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=l0,h.prototype.first=h.prototype.head,vn&&(h.prototype[vn]=o0),h},Kt=im();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(we._=Kt,define(function(){return Kt})):ar?((ar.exports=Kt)._=Kt,Us._=Kt):we._=Kt}).call(Vr)});var Dn=R((bO,$c)=>{var dE="2.0.0",gE=256,mE=Number.MAX_SAFE_INTEGER||9007199254740991,vE=16;$c.exports={SEMVER_SPEC_VERSION:dE,MAX_LENGTH:gE,MAX_SAFE_INTEGER:mE,MAX_SAFE_COMPONENT_LENGTH:vE}});var qn=R((SO,Fc)=>{var _E=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Fc.exports=_E});var yr=R((nr,jc)=>{var{MAX_SAFE_COMPONENT_LENGTH:Jo}=Dn(),yE=qn();nr=jc.exports={};var EE=nr.re=[],N=nr.src=[],D=nr.t={},wE=0,k=(i,r,n)=>{let u=wE++;yE(u,r),D[i]=u,N[u]=r,EE[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,${Jo}})(?:\\.(\\d{1,${Jo}}))?(?:\\.(\\d{1,${Jo}}))?(?:$|[^\\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 $n=R((CO,Mc)=>{var bE=["includePrerelease","loose","rtl"],SE=i=>i?typeof i!="object"?{loose:!0}:bE.filter(r=>i[r]).reduce((r,n)=>(r[n]=!0,r),{}):{};Mc.exports=SE});var Ki=R((OO,Gc)=>{var Hc=/^[0-9]+$/,Uc=(i,r)=>{let n=Hc.test(i),u=Hc.test(r);return n&&u&&(i=+i,r=+r),i===r?0:n&&!u?-1:u&&!n?1:i<r?-1:1},CE=(i,r)=>Uc(r,i);Gc.exports={compareIdentifiers:Uc,rcompareIdentifiers:CE}});var Te=R((xO,Vc)=>{var Ji=qn(),{MAX_LENGTH:Wc,MAX_SAFE_INTEGER:Zi}=Dn(),{re:Bc,t:kc}=yr(),OE=$n(),{compareIdentifiers:Fn}=Ki(),ut=class{constructor(r,n){if(n=OE(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>Wc)throw new TypeError(`version is longer than ${Wc} characters`);Ji("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let u=r.trim().match(n.loose?Bc[kc.LOOSE]:Bc[kc.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>Zi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Zi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Zi||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<Zi)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(Ji("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)),Fn(this.major,r.major)||Fn(this.minor,r.minor)||Fn(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(Ji("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 Fn(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(Ji("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 Fn(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}};Vc.exports=ut});var Er=R((AO,Kc)=>{var{MAX_LENGTH:xE}=Dn(),{re:zc,t:Xc}=yr(),Yc=Te(),AE=$n(),IE=(i,r)=>{if(r=AE(r),i instanceof Yc)return i;if(typeof i!="string"||i.length>xE||!(r.loose?zc[Xc.LOOSE]:zc[Xc.FULL]).test(i))return null;try{return new Yc(i,r)}catch{return null}};Kc.exports=IE});var Zc=R((IO,Jc)=>{var RE=Er(),PE=(i,r)=>{let n=RE(i,r);return n?n.version:null};Jc.exports=PE});var ef=R((RO,Qc)=>{var TE=Er(),LE=(i,r)=>{let n=TE(i.trim().replace(/^[=v]+/,""),r);return n?n.version:null};Qc.exports=LE});var rf=R((PO,tf)=>{var NE=Te(),DE=(i,r,n,u)=>{typeof n=="string"&&(u=n,n=void 0);try{return new NE(i,n).inc(r,u).version}catch{return null}};tf.exports=DE});var at=R((TO,sf)=>{var nf=Te(),qE=(i,r,n)=>new nf(i,n).compare(new nf(r,n));sf.exports=qE});var Qi=R((LO,of)=>{var $E=at(),FE=(i,r,n)=>$E(i,r,n)===0;of.exports=FE});var lf=R((NO,af)=>{var uf=Er(),jE=Qi(),ME=(i,r)=>{if(jE(i,r))return null;{let n=uf(i),u=uf(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}};af.exports=ME});var ff=R((DO,cf)=>{var HE=Te(),UE=(i,r)=>new HE(i,r).major;cf.exports=UE});var pf=R((qO,hf)=>{var GE=Te(),WE=(i,r)=>new GE(i,r).minor;hf.exports=WE});var gf=R(($O,df)=>{var BE=Te(),kE=(i,r)=>new BE(i,r).patch;df.exports=kE});var vf=R((FO,mf)=>{var VE=Er(),zE=(i,r)=>{let n=VE(i,r);return n&&n.prerelease.length?n.prerelease:null};mf.exports=zE});var yf=R((jO,_f)=>{var XE=at(),YE=(i,r,n)=>XE(r,i,n);_f.exports=YE});var wf=R((MO,Ef)=>{var KE=at(),JE=(i,r)=>KE(i,r,!0);Ef.exports=JE});var es=R((HO,Sf)=>{var bf=Te(),ZE=(i,r,n)=>{let u=new bf(i,n),a=new bf(r,n);return u.compare(a)||u.compareBuild(a)};Sf.exports=ZE});var Of=R((UO,Cf)=>{var QE=es(),ew=(i,r)=>i.sort((n,u)=>QE(n,u,r));Cf.exports=ew});var Af=R((GO,xf)=>{var tw=es(),rw=(i,r)=>i.sort((n,u)=>tw(u,n,r));xf.exports=rw});var jn=R((WO,If)=>{var nw=at(),iw=(i,r,n)=>nw(i,r,n)>0;If.exports=iw});var ts=R((BO,Rf)=>{var sw=at(),ow=(i,r,n)=>sw(i,r,n)<0;Rf.exports=ow});var Zo=R((kO,Pf)=>{var uw=at(),aw=(i,r,n)=>uw(i,r,n)!==0;Pf.exports=aw});var rs=R((VO,Tf)=>{var lw=at(),cw=(i,r,n)=>lw(i,r,n)>=0;Tf.exports=cw});var ns=R((zO,Lf)=>{var fw=at(),hw=(i,r,n)=>fw(i,r,n)<=0;Lf.exports=hw});var Qo=R((XO,Nf)=>{var pw=Qi(),dw=Zo(),gw=jn(),mw=rs(),vw=ts(),_w=ns(),yw=(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 pw(i,n,u);case"!=":return dw(i,n,u);case">":return gw(i,n,u);case">=":return mw(i,n,u);case"<":return vw(i,n,u);case"<=":return _w(i,n,u);default:throw new TypeError(`Invalid operator: ${r}`)}};Nf.exports=yw});var qf=R((YO,Df)=>{var Ew=Te(),ww=Er(),{re:is,t:ss}=yr(),bw=(i,r)=>{if(i instanceof Ew)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(is[ss.COERCE]);else{let u;for(;(u=is[ss.COERCERTL].exec(i))&&(!n||n.index+n[0].length!==i.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),is[ss.COERCERTL].lastIndex=u.index+u[1].length+u[2].length;is[ss.COERCERTL].lastIndex=-1}return n===null?null:ww(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,r)};Df.exports=bw});var Ff=R((KO,$f)=>{"use strict";$f.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var Mf=R((JO,jf)=>{"use strict";jf.exports=Z;Z.Node=wr;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++)Cw(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)Ow(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=Sw(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 Sw(i,r,n){var u=r===i.head?new wr(n,null,r,i):new wr(n,r,r.next,i);return u.next===null&&(i.tail=u),u.prev===null&&(i.head=u),i.length++,u}function Cw(i,r){i.tail=new wr(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function Ow(i,r){i.head=new wr(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function wr(i,r,n,u){if(!(this instanceof wr))return new wr(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{Ff()(Z)}catch{}});var Vf=R((ZO,kf)=>{"use strict";var xw=Mf(),br=Symbol("max"),Ht=Symbol("length"),Xr=Symbol("lengthCalculator"),Mn=Symbol("allowStale"),Sr=Symbol("maxAge"),Ut=Symbol("dispose"),Hf=Symbol("noDisposeOnSet"),Se=Symbol("lruList"),mt=Symbol("cache"),Uf=Symbol("updateAgeOnGet"),eu=()=>1,Gf=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[br]=r.max||1/0,u=r.length||eu;if(this[Xr]=typeof u!="function"?eu:u,this[Mn]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Sr]=r.maxAge||0,this[Ut]=r.dispose,this[Hf]=r.noDisposeOnSet||!1,this[Uf]=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[br]=r||1/0,Hn(this)}get max(){return this[br]}set allowStale(r){this[Mn]=!!r}get allowStale(){return this[Mn]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Sr]=r,Hn(this)}get maxAge(){return this[Sr]}set lengthCalculator(r){typeof r!="function"&&(r=eu),r!==this[Xr]&&(this[Xr]=r,this[Ht]=0,this[Se].forEach(n=>{n.length=this[Xr](n.value,n.key),this[Ht]+=n.length})),Hn(this)}get lengthCalculator(){return this[Xr]}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;Bf(this,r,u,n),u=a}}forEach(r,n){n=n||this;for(let u=this[Se].head;u!==null;){let a=u.next;Bf(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 xw,this[Ht]=0}dump(){return this[Se].map(r=>os(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[Sr],u&&typeof u!="number")throw new TypeError("maxAge must be a number");let a=u?Date.now():0,o=this[Xr](n,r);if(this[mt].has(r)){if(o>this[br])return Yr(this,this[mt].get(r)),!1;let v=this[mt].get(r).value;return this[Ut]&&(this[Hf]||this[Ut](r,v.value)),v.now=a,v.maxAge=u,v.value=n,this[Ht]+=o-v.length,v.length=o,this.get(r),Hn(this),!0}let p=new Wf(r,n,o,a,u);return p.length>this[br]?(this[Ut]&&this[Ut](r,n),!1):(this[Ht]+=p.length,this[Se].unshift(p),this[mt].set(r,this[Se].head),Hn(this),!0)}has(r){if(!this[mt].has(r))return!1;let n=this[mt].get(r).value;return!os(this,n)}get(r){return tu(this,r,!0)}peek(r){return tu(this,r,!1)}pop(){let r=this[Se].tail;return r?(Yr(this,r),r.value):null}del(r){Yr(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)=>tu(this,n,!1))}},tu=(i,r,n)=>{let u=i[mt].get(r);if(u){let a=u.value;if(os(i,a)){if(Yr(i,u),!i[Mn])return}else n&&(i[Uf]&&(u.value.now=Date.now()),i[Se].unshiftNode(u));return a.value}},os=(i,r)=>{if(!r||!r.maxAge&&!i[Sr])return!1;let n=Date.now()-r.now;return r.maxAge?n>r.maxAge:i[Sr]&&n>i[Sr]},Hn=i=>{if(i[Ht]>i[br])for(let r=i[Se].tail;i[Ht]>i[br]&&r!==null;){let n=r.prev;Yr(i,r),r=n}},Yr=(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)}},Wf=class{constructor(r,n,u,a,o){this.key=r,this.value=n,this.length=u,this.now=a,this.maxAge=o||0}},Bf=(i,r,n,u)=>{let a=n.value;os(i,a)&&(Yr(i,n),i[Mn]||(a=void 0)),a&&r.call(u,a.value,a.key,i)};kf.exports=Gf});var lt=R((QO,Kf)=>{var Kr=class{constructor(r,n){if(n=Iw(n),r instanceof Kr)return r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease?r:new Kr(r.raw,n);if(r instanceof ru)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=>!Xf(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&&Nw(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=zf.get(u);if(a)return a;let o=this.options.loose,p=o?Le[xe.HYPHENRANGELOOSE]:Le[xe.HYPHENRANGE];r=r.replace(p,Ww(this.options.includePrerelease)),me("hyphen replace",r),r=r.replace(Le[xe.COMPARATORTRIM],Pw),me("comparator trim",r,Le[xe.COMPARATORTRIM]),r=r.replace(Le[xe.TILDETRIM],Tw),r=r.replace(Le[xe.CARETTRIM],Lw),r=r.split(/\s+/).join(" ");let g=o?Le[xe.COMPARATORLOOSE]:Le[xe.COMPARATOR],v=r.split(" ").map(I=>Dw(I,this.options)).join(" ").split(/\s+/).map(I=>Gw(I,this.options)).filter(this.options.loose?I=>!!I.match(g):()=>!0).map(I=>new ru(I,this.options)),c=v.length,_=new Map;for(let I of v){if(Xf(I))return[I];_.set(I.value,I)}_.size>1&&_.has("")&&_.delete("");let b=[..._.values()];return zf.set(u,b),b}intersects(r,n){if(!(r instanceof Kr))throw new TypeError("a Range is required");return this.set.some(u=>Yf(u,n)&&r.set.some(a=>Yf(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 Rw(r,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(Bw(this.set[n],r,this.options))return!0;return!1}};Kf.exports=Kr;var Aw=Vf(),zf=new Aw({max:1e3}),Iw=$n(),ru=Un(),me=qn(),Rw=Te(),{re:Le,t:xe,comparatorTrimReplace:Pw,tildeTrimReplace:Tw,caretTrimReplace:Lw}=yr(),Xf=i=>i.value==="<0.0.0-0",Nw=i=>i.value==="",Yf=(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},Dw=(i,r)=>(me("comp",i,r),i=Fw(i,r),me("caret",i),i=qw(i,r),me("tildes",i),i=Mw(i,r),me("xrange",i),i=Uw(i,r),me("stars",i),i),Fe=i=>!i||i.toLowerCase()==="x"||i==="*",qw=(i,r)=>i.trim().split(/\s+/).map(n=>$w(n,r)).join(" "),$w=(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 v;return Fe(a)?v="":Fe(o)?v=`>=${a}.0.0 <${+a+1}.0.0-0`:Fe(p)?v=`>=${a}.${o}.0 <${a}.${+o+1}.0-0`:g?(me("replaceTilde pr",g),v=`>=${a}.${o}.${p}-${g} <${a}.${+o+1}.0-0`):v=`>=${a}.${o}.${p} <${a}.${+o+1}.0-0`,me("tilde return",v),v})},Fw=(i,r)=>i.trim().split(/\s+/).map(n=>jw(n,r)).join(" "),jw=(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,v)=>{me("caret",i,a,o,p,g,v);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`:v?(me("replaceCaret pr",v),o==="0"?p==="0"?c=`>=${o}.${p}.${g}-${v} <${o}.${p}.${+g+1}-0`:c=`>=${o}.${p}.${g}-${v} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.${g}-${v} <${+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})},Mw=(i,r)=>(me("replaceXRanges",i,r),i.split(/\s+/).map(n=>Hw(n,r)).join(" ")),Hw=(i,r)=>{i=i.trim();let n=r.loose?Le[xe.XRANGELOOSE]:Le[xe.XRANGE];return i.replace(n,(u,a,o,p,g,v)=>{me("xRange",i,u,a,o,p,g,v);let c=Fe(o),_=c||Fe(p),b=_||Fe(g),I=b;return a==="="&&I&&(a=""),v=r.includePrerelease?"-0":"",c?a===">"||a==="<"?u="<0.0.0-0":u="*":a&&I?(_&&(p=0),g=0,a===">"?(a=">=",_?(o=+o+1,p=0,g=0):(p=+p+1,g=0)):a==="<="&&(a="<",_?o=+o+1:p=+p+1),a==="<"&&(v="-0"),u=`${a+o}.${p}.${g}${v}`):_?u=`>=${o}.0.0${v} <${+o+1}.0.0-0`:b&&(u=`>=${o}.${p}.0${v} <${o}.${+p+1}.0-0`),me("xRange return",u),u})},Uw=(i,r)=>(me("replaceStars",i,r),i.trim().replace(Le[xe.STAR],"")),Gw=(i,r)=>(me("replaceGTE0",i,r),i.trim().replace(Le[r.includePrerelease?xe.GTE0PRE:xe.GTE0],"")),Ww=i=>(r,n,u,a,o,p,g,v,c,_,b,I,P)=>(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)?v="":Fe(_)?v=`<${+c+1}.0.0-0`:Fe(b)?v=`<${c}.${+_+1}.0-0`:I?v=`<=${c}.${_}.${b}-${I}`:i?v=`<${c}.${_}.${+b+1}-0`:v=`<=${v}`,`${n} ${v}`.trim()),Bw=(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!==ru.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 Un=R((ex,th)=>{var Gn=Symbol("SemVer ANY"),Wn=class{static get ANY(){return Gn}constructor(r,n){if(n=kw(n),r instanceof Wn){if(r.loose===!!n.loose)return r;r=r.value}iu("comparator",r,n),this.options=n,this.loose=!!n.loose,this.parse(r),this.semver===Gn?this.value="":this.value=this.operator+this.semver.version,iu("comp",this)}parse(r){let n=this.options.loose?Jf[Zf.COMPARATORLOOSE]:Jf[Zf.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 Qf(u[2],this.options.loose):this.semver=Gn}toString(){return this.value}test(r){if(iu("Comparator.test",r,this.options.loose),this.semver===Gn||r===Gn)return!0;if(typeof r=="string")try{r=new Qf(r,this.options)}catch{return!1}return nu(r,this.operator,this.semver,this.options)}intersects(r,n){if(!(r instanceof Wn))throw new TypeError("a Comparator is required");if((!n||typeof n!="object")&&(n={loose:!!n,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new eh(r.value,n).test(this.value);if(r.operator==="")return r.value===""?!0:new eh(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=nu(this.semver,"<",r.semver,n)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),v=nu(this.semver,">",r.semver,n)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return u||a||o&&p||g||v}};th.exports=Wn;var kw=$n(),{re:Jf,t:Zf}=yr(),nu=Qo(),iu=qn(),Qf=Te(),eh=lt()});var Bn=R((tx,rh)=>{var Vw=lt(),zw=(i,r,n)=>{try{r=new Vw(r,n)}catch{return!1}return r.test(i)};rh.exports=zw});var ih=R((rx,nh)=>{var Xw=lt(),Yw=(i,r)=>new Xw(i,r).set.map(n=>n.map(u=>u.value).join(" ").trim().split(" "));nh.exports=Yw});var oh=R((nx,sh)=>{var Kw=Te(),Jw=lt(),Zw=(i,r,n)=>{let u=null,a=null,o=null;try{o=new Jw(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===-1)&&(u=p,a=new Kw(u,n))}),u};sh.exports=Zw});var ah=R((ix,uh)=>{var Qw=Te(),eb=lt(),tb=(i,r,n)=>{let u=null,a=null,o=null;try{o=new eb(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===1)&&(u=p,a=new Qw(u,n))}),u};uh.exports=tb});var fh=R((sx,ch)=>{var su=Te(),rb=lt(),lh=jn(),nb=(i,r)=>{i=new rb(i,r);let n=new su("0.0.0");if(i.test(n)||(n=new su("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 su(p.semver.version);switch(p.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!o||lh(g,o))&&(o=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${p.operator}`)}}),o&&(!n||lh(n,o))&&(n=o)}return n&&i.test(n)?n:null};ch.exports=nb});var ph=R((ox,hh)=>{var ib=lt(),sb=(i,r)=>{try{return new ib(i,r).range||"*"}catch{return null}};hh.exports=sb});var us=R((ux,vh)=>{var ob=Te(),dh=Un(),{ANY:ub}=dh,ab=lt(),lb=Bn(),gh=jn(),mh=ts(),cb=ns(),fb=rs(),hb=(i,r,n,u)=>{i=new ob(i,u),r=new ab(r,u);let a,o,p,g,v;switch(n){case">":a=gh,o=cb,p=mh,g=">",v=">=";break;case"<":a=mh,o=fb,p=gh,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lb(i,r,u))return!1;for(let c=0;c<r.set.length;++c){let _=r.set[c],b=null,I=null;if(_.forEach(P=>{P.semver===ub&&(P=new dh(">=0.0.0")),b=b||P,I=I||P,a(P.semver,b.semver,u)?b=P:p(P.semver,I.semver,u)&&(I=P)}),b.operator===g||b.operator===v||(!I.operator||I.operator===g)&&o(i,I.semver))return!1;if(I.operator===v&&p(i,I.semver))return!1}return!0};vh.exports=hb});var yh=R((ax,_h)=>{var pb=us(),db=(i,r,n)=>pb(i,r,">",n);_h.exports=db});var wh=R((lx,Eh)=>{var gb=us(),mb=(i,r,n)=>gb(i,r,"<",n);Eh.exports=mb});var Ch=R((cx,Sh)=>{var bh=lt(),vb=(i,r,n)=>(i=new bh(i,n),r=new bh(r,n),i.intersects(r));Sh.exports=vb});var xh=R((fx,Oh)=>{var _b=Bn(),yb=at();Oh.exports=(i,r,n)=>{let u=[],a=null,o=null,p=i.sort((_,b)=>yb(_,b,n));for(let _ of p)_b(_,r,n)?(o=_,a||(a=_)):(o&&u.push([a,o]),o=null,a=null);a&&u.push([a,null]);let g=[];for(let[_,b]of u)_===b?g.push(_):!b&&_===p[0]?g.push("*"):b?_===p[0]?g.push(`<=${b}`):g.push(`${_} - ${b}`):g.push(`>=${_}`);let v=g.join(" || "),c=typeof r.raw=="string"?r.raw:String(r);return v.length<c.length?v:r}});var Th=R((hx,Ph)=>{var Ah=lt(),as=Un(),{ANY:ou}=as,kn=Bn(),uu=at(),Eb=(i,r,n={})=>{if(i===r)return!0;i=new Ah(i,n),r=new Ah(r,n);let u=!1;e:for(let a of i.set){for(let o of r.set){let p=wb(a,o,n);if(u=u||p!==null,p)continue e}if(u)return!1}return!0},wb=(i,r,n)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===ou){if(r.length===1&&r[0].semver===ou)return!0;n.includePrerelease?i=[new as(">=0.0.0-0")]:i=[new as(">=0.0.0")]}if(r.length===1&&r[0].semver===ou){if(n.includePrerelease)return!0;r=[new as(">=0.0.0")]}let u=new Set,a,o;for(let P of i)P.operator===">"||P.operator===">="?a=Ih(a,P,n):P.operator==="<"||P.operator==="<="?o=Rh(o,P,n):u.add(P.semver);if(u.size>1)return null;let p;if(a&&o){if(p=uu(a.semver,o.semver,n),p>0)return null;if(p===0&&(a.operator!==">="||o.operator!=="<="))return null}for(let P of u){if(a&&!kn(P,String(a),n)||o&&!kn(P,String(o),n))return null;for(let H of r)if(!kn(P,String(H),n))return!1;return!0}let g,v,c,_,b=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,I=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 P of r){if(_=_||P.operator===">"||P.operator===">=",c=c||P.operator==="<"||P.operator==="<=",a){if(I&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===I.major&&P.semver.minor===I.minor&&P.semver.patch===I.patch&&(I=!1),P.operator===">"||P.operator===">="){if(g=Ih(a,P,n),g===P&&g!==a)return!1}else if(a.operator===">="&&!kn(a.semver,String(P),n))return!1}if(o){if(b&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===b.major&&P.semver.minor===b.minor&&P.semver.patch===b.patch&&(b=!1),P.operator==="<"||P.operator==="<="){if(v=Rh(o,P,n),v===P&&v!==o)return!1}else if(o.operator==="<="&&!kn(o.semver,String(P),n))return!1}if(!P.operator&&(o||a)&&p!==0)return!1}return!(a&&c&&!o&&p!==0||o&&_&&!a&&p!==0||I||b)},Ih=(i,r,n)=>{if(!i)return r;let u=uu(i.semver,r.semver,n);return u>0?i:u<0||r.operator===">"&&i.operator===">="?r:i},Rh=(i,r,n)=>{if(!i)return r;let u=uu(i.semver,r.semver,n);return u<0?i:u>0||r.operator==="<"&&i.operator==="<="?r:i};Ph.exports=Eb});var Nh=R((px,Lh)=>{var au=yr();Lh.exports={re:au.re,src:au.src,tokens:au.t,SEMVER_SPEC_VERSION:Dn().SEMVER_SPEC_VERSION,SemVer:Te(),compareIdentifiers:Ki().compareIdentifiers,rcompareIdentifiers:Ki().rcompareIdentifiers,parse:Er(),valid:Zc(),clean:ef(),inc:rf(),diff:lf(),major:ff(),minor:pf(),patch:gf(),prerelease:vf(),compare:at(),rcompare:yf(),compareLoose:wf(),compareBuild:es(),sort:Of(),rsort:Af(),gt:jn(),lt:ts(),eq:Qi(),neq:Zo(),gte:rs(),lte:ns(),cmp:Qo(),coerce:qf(),Comparator:Un(),Range:lt(),satisfies:Bn(),toComparators:ih(),maxSatisfying:oh(),minSatisfying:ah(),minVersion:fh(),validRange:ph(),outside:us(),gtr:yh(),ltr:wh(),intersects:Ch(),simplifyRange:xh(),subset:Th()}});var Ae=R(Cr=>{"use strict";var Dh=Cr&&Cr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Cr,"__esModule",{value:!0});Cr.getCoreVersion=void 0;var qh=Dh(require("path")),$h=Dh(require("fs")),bb=Nh(),Sb=require("@serverless-devs/core"),lu=qh.default.join(Sb.getRootHome(),"cache","core"),Fh=qh.default.join(lu,"package.json");function Cb(){if($h.default.existsSync(Fh)){var i=require("@serverless-devs/core/package.json").version,r=jh();return bb.gt(r,i)?require(lu):require("@serverless-devs/core")}return require("@serverless-devs/core")}function jh(){return $h.default.existsSync(lu)?require(Fh).version:void 0}Cr.getCoreVersion=jh;Cr.default=Cb()});var Mh=R((gx,Ob)=>{Ob.exports={name:"@serverless-devs/s",version:"2.0.96",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":"latest"}}});var Gt=R(G=>{"use strict";var xb=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]}),Ab=G&&G.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Ib=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)&&xb(r,i,n);return Ab(r,i),r},Hh=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(_){try{c(u.next(_))}catch(b){p(b)}}function v(_){try{c(u.throw(_))}catch(b){p(b)}}function c(_){_.done?o(_.value):a(_.value).then(g,v)}c((u=u.apply(i,r||[])).next())})},Uh=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(_){return v([c,_])}}function v(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(_){c=[6,_],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ls=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=ls(require("path")),Je=ls(require("fs")),cu=ls(zr()),Rb=ls(require("os")),Pb=Or(),cs=Ib(Ae()),fu=cs.default.colors,Tb=cs.default.jsyaml,fs=Mh();G.red=fu.hex("#fd5750");G.bgRed=fu.hex("#000").bgHex("#fd5750");function Lb(){return(0,cs.getCoreVersion)()?fs.name+": "+fs.version+", @serverless-devs/core: "+(0,cs.getCoreVersion)()+", "+process.platform+"-"+process.arch+", node-"+process.version:fs.name+": "+fs.version+", "+process.platform+"-"+process.arch+", node-"+process.version}G.getVersion=Lb;function Nb(i){return Hh(this,void 0,void 0,function(){function r(a){return Hh(this,void 0,void 0,function(){var o,p;return Uh(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(v){return r(Ce.default.join(a,v))}))]):[3,2]);case 1:g.sent(),g.label=2;case 2:return[2]}})})}var n,u;return Uh(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=Nb;function Gh(i){var r=Je.default.readFileSync(i,"utf8");try{return Tb.load(r)}catch{if(["-h","--help"].includes(process.argv[2]))return;var n=Ce.default.basename(i);new Pb.HumanError({errorMessage:n+" format is incorrect",tips:"Please check the configuration of "+n+", Serverless Devs' Yaml specification document can refer to\uFF1A"+fu.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/yaml.md")}),process.exit(1)}}G.yamlLoad=Gh;function Vn(i,r){r===void 0&&(r=!1);var n=Je.default.readFileSync(i,"utf8"),u=r?JSON.parse(n):Gh(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 Wh(){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))&&Vn(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)&&Vn(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"))&&Vn(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"))&&Vn(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"))&&Vn(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=Wh;function Bh(i){return Je.default.existsSync(i)?i:null}G.checkTemplateFile=Bh;function kh(i,r){r===void 0&&(r=" ");for(var n="",u=0;u<i;u++)n=n+r;return n}G.printn=kh;function Vh(){return"en"}G.getLang=Vh;function hu(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=cu.default.trim(o.split("|")[0]);r[p]&&(i=i.replace(u[a],r[p]))}return i}G.replaceFun=hu;function zh(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:cu.default.trim(o[0]),desc:cu.default.trim(o[1])}}):[]}G.getTemplatekey=zh;function Xh(i,r){i.forEach(function(n){if(Je.default.existsSync(n)){var u=Je.default.readFileSync(n,"utf-8"),a=hu(u,r);Je.default.writeFileSync(n,a,"utf-8")}})}G.replaceTemplate=Xh;function Yh(i){if(!i)return i;var r=i.slice(-4);return"***********"+r}G.mark=Yh;function Db(i){return Rb.default.platform()==="win32"?"":i}G.emoji=Db;G.default={checkAndReturnTemplateFile:Wh,checkTemplateFile:Bh,printn:kh,mark:Yh,getLang:Vh,replaceTemplate:Xh,replaceFun:hu,getTemplatekey:zh}});var ps=R(Wt=>{"use strict";var Kh=Wt&&Wt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getHistoryFile=Wt.getHomeDir=void 0;var qb=Kh(require("path")),Jh=Kh(Ae()),hs=Jh.default.fse,$b=Jh.default.getRootHome;function pu(){var i=$b();return hs.existsSync(i)||hs.mkdirSync(i),i}Wt.getHomeDir=pu;function Zh(){var i=qb.default.join(pu(),"history");return hs.existsSync(i)||hs.createFileSync(i),i}Wt.getHistoryFile=Zh;Wt.default={getHomeDir:pu,getHistoryFile:Zh}});var mu=R(je=>{"use strict";var Fb=je&&je.__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(_){try{c(u.next(_))}catch(b){p(b)}}function v(_){try{c(u.throw(_))}catch(b){p(b)}}function c(_){_.done?o(_.value):a(_.value).then(g,v)}c((u=u.apply(i,r||[])).next())})},jb=je&&je.__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(_){return v([c,_])}}function v(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(_){c=[6,_],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},du=je&&je.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(je,"__esModule",{value:!0});je.handlerProfileFile=je.getConfig=je.setConfig=void 0;var Qh=du(require("path")),Mb=du(ps()),gu=du(Ae()),wt=gu.default.fse,ds=gu.default.jsyaml,ep=gu.default.getRootHome;function Hb(i){var r=rp();wt.writeFileSync(r,ds.dump(i))}function tp(){var i=rp();if(!wt.existsSync(i))return{};try{var r=ds.load(wt.readFileSync(i,"utf8"))||{};return r}catch(n){throw n}}function rp(){var i=Qh.default.join(Mb.default.getHomeDir(),"set-config.yml");return wt.existsSync(i)||wt.createFileSync(i),i}function np(i,r){var n=tp();n[i]=r,Hb(n)}je.setConfig=np;function ip(i,r){var n=tp();return n[i]||r}je.getConfig=ip;function sp(i){return Fb(this,void 0,void 0,function(){var r,n,u,a,o,p,g;return jb(this,function(v){switch(v.label){case 0:if(r=i.filePath||"set-config.yml",n=Qh.default.join(ep(),r),u=wt.existsSync(n),a={},u)return[3,5];o=ep(),v.label=1;case 1:return v.trys.push([1,2,,4]),wt.statSync(o),[3,4];case 2:return p=v.sent(),[4,wt.mkdirSync(o)];case 3:return v.sent(),[3,4];case 4:return[3,6];case 5:try{a=ds.load(wt.readFileSync(n,"utf8"))||{}}catch(c){throw c}v.label=6;case 6:return i.read?[2,a]:(g=i.configKey||"",a[g]=i.data,[4,wt.writeFileSync(n,ds.dump(a))]);case 7:return v.sent(),[2,a]}})})}je.handlerProfileFile=sp;je.default={setConfig:np,getConfig:ip,handlerProfileFile:sp}});var xr=R(Jr=>{"use strict";var Ub=Jr&&Jr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.ServerlessError=void 0;var Gb=Ub(Ae()),Wb=Gb.default.Logger,Bb=new Wb("S-CLI-ERROR"),kb=function(){function i(r,n,u){Bb.error(r+": "+n,u),process.exit(1)}return i}();Jr.ServerlessError=kb});var op=R(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.CommandError=void 0;var zb=xr(),Xb=function(i){Vb(r,i);function r(n,u){return i.call(this,"Error",n,u)||this}return r}(zb.ServerlessError);Zr.CommandError=Xb});var up=R(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.ConfigDeleteError=void 0;var Kb=xr(),Jb=function(i){Yb(r,i);function r(n,u){return i.call(this,"Deletion failed",n,u)||this}return r}(Kb.ServerlessError);Qr.ConfigDeleteError=Jb});var ap=R(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.ConfigError=void 0;var Qb=xr(),eS=function(i){Zb(r,i);function r(n,u){return i.call(this,"Config failed",n,u)||this}return r}(Qb.ServerlessError);en.ConfigError=eS});var lp=R(tn=>{"use strict";var tS=tn&&tn.__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(tn,"__esModule",{value:!0});tn.ConfigGetError=void 0;var rS=xr(),nS=function(i){tS(r,i);function r(n,u){return i.call(this,"Get failed",n,u)||this}return r}(rS.ServerlessError);tn.ConfigGetError=nS});var cp=R(rn=>{"use strict";var iS=rn&&rn.__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(rn,"__esModule",{value:!0});rn.InitError=void 0;var sS=xr(),oS=function(i){iS(r,i);function r(n,u){return i.call(this,"Initialization failed",n,u)||this}return r}(sS.ServerlessError);rn.InitError=oS});var hp=R(bt=>{"use strict";var uS=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(_){try{c(u.next(_))}catch(b){p(b)}}function v(_){try{c(u.throw(_))}catch(b){p(b)}}function c(_){_.done?o(_.value):a(_.value).then(g,v)}c((u=u.apply(i,r||[])).next())})},aS=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(_){return v([c,_])}}function v(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(_){c=[6,_],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},lS=bt&&bt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(bt,"__esModule",{value:!0});bt.HumanError=void 0;var fp=lS(Ae()),cS=Gt(),fS=fp.default.colors,hS=function(){function i(r){var n=r.errorMessage,u=r.tips;this.errorMessage=n,console.log(`
|
|
34
|
+
}`;var B=xc(function(){return Q(d,q+"return "+A).apply(i,m)});if(B.source=A,$o(B))throw B;return B}function yy(e){return te(e).toLowerCase()}function Ey(e){return te(e).toUpperCase()}function wy(e,t,s){if(e=te(e),e&&(s||t===i))return qa(e);if(!e||!(t=ze(t)))return e;var l=ht(e),f=ht(t),d=$a(l,f),m=Fa(l,f)+1;return tr(l,d,m).join("")}function by(e,t,s){if(e=te(e),e&&(s||t===i))return e.slice(0,Ma(e)+1);if(!e||!(t=ze(t)))return e;var l=ht(e),f=Fa(l,ht(t))+1;return tr(l,0,f).join("")}function Sy(e,t,s){if(e=te(e),e&&(s||t===i))return e.replace(qs,"");if(!e||!(t=ze(t)))return e;var l=ht(e),f=$a(l,ht(t));return tr(l,f).join("")}function Cy(e,t){var s=Rt,l=_d;if(fe(t)){var f="separator"in t?t.separator:f;s="length"in t?W(t.length):s,l="omission"in t?ze(t.omission):l}e=te(e);var d=e.length;if(qr(e)){var m=ht(e);d=m.length}if(s>=d)return e;var y=s-$r(l);if(y<1)return l;var w=m?tr(m,0,y).join(""):e.slice(0,y);if(f===i)return w+l;if(m&&(y+=w.length-y),Fo(f)){if(e.slice(y).search(f)){var O,x=w;for(f.global||(f=Zs(f.source,te(na.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var A=O.index;w=w.slice(0,A===i?y:A)}}else if(e.indexOf(ze(f),y)!=y){var T=w.lastIndexOf(f);T>-1&&(w=w.slice(0,T))}return w+l}function Oy(e){return e=te(e),e&&$d.test(e)?e.replace(ea,em):e}var xy=Gr(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Ho=Al("toUpperCase");function Oc(e,t,s){return e=te(e),t=s?i:t,t===i?Yg(e)?nm(e):Hg(e):e.match(t)||[]}var xc=V(function(e,t){try{return ke(e,i,t)}catch(s){return $o(s)?s:new M(s)}}),Ay=qt(function(e,t){return et(t,function(s){s=Et(s),Nt(e,s,Do(e[s],e))}),e});function Iy(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 Ry(e){return ev(nt(e,c))}function Uo(e){return function(){return e}}function Py(e,t){return e==null||e!==e?t:e}var Ty=Rl(),Ly=Rl(!0);function We(e){return e}function Go(e){return sl(typeof e=="function"?e:nt(e,c))}function Ny(e){return ul(nt(e,c))}function Dy(e,t){return al(e,nt(t,c))}var qy=V(function(e,t){return function(s){return Cn(s,e,t)}}),$y=V(function(e,t){return function(s){return Cn(e,s,t)}});function Wo(e,t,s){var l=be(t),f=Ri(t,l);s==null&&!(fe(t)&&(f.length||!l.length))&&(s=t,t=e,e=this,f=Ri(t,be(t)));var d=!(fe(s)&&"chain"in s)||!!s.chain,m=Ft(e);return et(f,function(y){var w=t[y];e[y]=w,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:w,args:arguments,thisArg:e}),x.__chain__=O,x}return w.apply(e,Xt([this.value()],arguments))})}),e}function Fy(){return we._===this&&(we._=lm),this}function Bo(){}function jy(e){return e=W(e),V(function(t){return ll(t,e)})}var My=wo(ce),Hy=wo(Pa),Uy=wo(ks);function Ac(e){return Io(e)?Vs(Et(e)):vv(e)}function Gy(e){return function(t){return e==null?i:pr(e,t)}}var Wy=Tl(),By=Tl(!0);function ko(){return[]}function Vo(){return!1}function ky(){return{}}function Vy(){return""}function zy(){return!0}function Xy(e,t){if(e=W(e),e<1||e>Vt)return[];var s=vt,l=Re(e,vt);t=$(t),e-=vt;for(var f=Ys(l,t);++s<e;)t(s);return f}function Yy(e){return U(e)?ce(e,Et):Xe(e)?[e]:He(zl(te(e)))}function Ky(e){var t=++um;return te(e)+t}var Jy=qi(function(e,t){return e+t},0),Zy=bo("ceil"),Qy=qi(function(e,t){return e/t},1),eE=bo("floor");function tE(e){return e&&e.length?Ii(e,We,oo):i}function rE(e,t){return e&&e.length?Ii(e,$(t,2),oo):i}function nE(e){return Na(e,We)}function iE(e,t){return Na(e,$(t,2))}function sE(e){return e&&e.length?Ii(e,We,co):i}function oE(e,t){return e&&e.length?Ii(e,$(t,2),co):i}var uE=qi(function(e,t){return e*t},1),aE=bo("round"),lE=qi(function(e,t){return e-t},0);function cE(e){return e&&e.length?Xs(e,We):0}function fE(e,t){return e&&e.length?Xs(e,$(t,2)):0}return h.after=N0,h.ary=ic,h.assign=E1,h.assignIn=_c,h.assignInWith=Xi,h.assignWith=w1,h.at=b1,h.before=sc,h.bind=Do,h.bindAll=Ay,h.bindKey=oc,h.castArray=k0,h.chain=tc,h.chunk=e_,h.compact=t_,h.concat=r_,h.cond=Iy,h.conforms=Ry,h.constant=Uo,h.countBy=c0,h.create=S1,h.curry=uc,h.curryRight=ac,h.debounce=lc,h.defaults=C1,h.defaultsDeep=O1,h.defer=D0,h.delay=q0,h.difference=n_,h.differenceBy=i_,h.differenceWith=s_,h.drop=o_,h.dropRight=u_,h.dropRightWhile=a_,h.dropWhile=l_,h.fill=c_,h.filter=h0,h.flatMap=g0,h.flatMapDeep=m0,h.flatMapDepth=v0,h.flatten=Jl,h.flattenDeep=f_,h.flattenDepth=h_,h.flip=$0,h.flow=Ty,h.flowRight=Ly,h.fromPairs=p_,h.functions=L1,h.functionsIn=N1,h.groupBy=_0,h.initial=g_,h.intersection=m_,h.intersectionBy=v_,h.intersectionWith=__,h.invert=q1,h.invertBy=$1,h.invokeMap=E0,h.iteratee=Go,h.keyBy=w0,h.keys=be,h.keysIn=Ge,h.map=Gi,h.mapKeys=j1,h.mapValues=M1,h.matches=Ny,h.matchesProperty=Dy,h.memoize=Bi,h.merge=H1,h.mergeWith=yc,h.method=qy,h.methodOf=$y,h.mixin=Wo,h.negate=ki,h.nthArg=jy,h.omit=U1,h.omitBy=G1,h.once=F0,h.orderBy=b0,h.over=My,h.overArgs=j0,h.overEvery=Hy,h.overSome=Uy,h.partial=qo,h.partialRight=cc,h.partition=S0,h.pick=W1,h.pickBy=Ec,h.property=Ac,h.propertyOf=Gy,h.pull=b_,h.pullAll=Ql,h.pullAllBy=S_,h.pullAllWith=C_,h.pullAt=O_,h.range=Wy,h.rangeRight=By,h.rearg=M0,h.reject=x0,h.remove=x_,h.rest=H0,h.reverse=Lo,h.sampleSize=I0,h.set=k1,h.setWith=V1,h.shuffle=R0,h.slice=A_,h.sortBy=L0,h.sortedUniq=D_,h.sortedUniqBy=q_,h.split=gy,h.spread=U0,h.tail=$_,h.take=F_,h.takeRight=j_,h.takeRightWhile=M_,h.takeWhile=H_,h.tap=t0,h.throttle=G0,h.thru=Ui,h.toArray=gc,h.toPairs=wc,h.toPairsIn=bc,h.toPath=Yy,h.toPlainObject=vc,h.transform=z1,h.unary=W0,h.union=U_,h.unionBy=G_,h.unionWith=W_,h.uniq=B_,h.uniqBy=k_,h.uniqWith=V_,h.unset=X1,h.unzip=No,h.unzipWith=ec,h.update=Y1,h.updateWith=K1,h.values=kr,h.valuesIn=J1,h.without=z_,h.words=Oc,h.wrap=B0,h.xor=X_,h.xorBy=Y_,h.xorWith=K_,h.zip=J_,h.zipObject=Z_,h.zipObjectDeep=Q_,h.zipWith=e0,h.entries=wc,h.entriesIn=bc,h.extend=_c,h.extendWith=Xi,Wo(h,h),h.add=Jy,h.attempt=xc,h.camelCase=ty,h.capitalize=Sc,h.ceil=Zy,h.clamp=Z1,h.clone=V0,h.cloneDeep=X0,h.cloneDeepWith=Y0,h.cloneWith=z0,h.conformsTo=K0,h.deburr=Cc,h.defaultTo=Py,h.divide=Qy,h.endsWith=ry,h.eq=dt,h.escape=ny,h.escapeRegExp=iy,h.every=f0,h.find=p0,h.findIndex=Yl,h.findKey=x1,h.findLast=d0,h.findLastIndex=Kl,h.findLastKey=A1,h.floor=eE,h.forEach=rc,h.forEachRight=nc,h.forIn=I1,h.forInRight=R1,h.forOwn=P1,h.forOwnRight=T1,h.get=jo,h.gt=J0,h.gte=Z0,h.has=D1,h.hasIn=Mo,h.head=Zl,h.identity=We,h.includes=y0,h.indexOf=d_,h.inRange=Q1,h.invoke=F1,h.isArguments=mr,h.isArray=U,h.isArrayBuffer=Q0,h.isArrayLike=Ue,h.isArrayLikeObject=de,h.isBoolean=e1,h.isBuffer=rr,h.isDate=t1,h.isElement=r1,h.isEmpty=n1,h.isEqual=i1,h.isEqualWith=s1,h.isError=$o,h.isFinite=o1,h.isFunction=Ft,h.isInteger=fc,h.isLength=Vi,h.isMap=hc,h.isMatch=u1,h.isMatchWith=a1,h.isNaN=l1,h.isNative=c1,h.isNil=h1,h.isNull=f1,h.isNumber=pc,h.isObject=fe,h.isObjectLike=he,h.isPlainObject=Pn,h.isRegExp=Fo,h.isSafeInteger=p1,h.isSet=dc,h.isString=zi,h.isSymbol=Xe,h.isTypedArray=Br,h.isUndefined=d1,h.isWeakMap=g1,h.isWeakSet=m1,h.join=y_,h.kebabCase=sy,h.last=st,h.lastIndexOf=E_,h.lowerCase=oy,h.lowerFirst=uy,h.lt=v1,h.lte=_1,h.max=tE,h.maxBy=rE,h.mean=nE,h.meanBy=iE,h.min=sE,h.minBy=oE,h.stubArray=ko,h.stubFalse=Vo,h.stubObject=ky,h.stubString=Vy,h.stubTrue=zy,h.multiply=uE,h.nth=w_,h.noConflict=Fy,h.noop=Bo,h.now=Wi,h.pad=ay,h.padEnd=ly,h.padStart=cy,h.parseInt=fy,h.random=ey,h.reduce=C0,h.reduceRight=O0,h.repeat=hy,h.replace=py,h.result=B1,h.round=aE,h.runInContext=E,h.sample=A0,h.size=P0,h.snakeCase=dy,h.some=T0,h.sortedIndex=I_,h.sortedIndexBy=R_,h.sortedIndexOf=P_,h.sortedLastIndex=T_,h.sortedLastIndexBy=L_,h.sortedLastIndexOf=N_,h.startCase=my,h.startsWith=vy,h.subtract=lE,h.sum=cE,h.sumBy=fE,h.template=_y,h.times=Xy,h.toFinite=jt,h.toInteger=W,h.toLength=mc,h.toLower=yy,h.toNumber=ot,h.toSafeInteger=y1,h.toString=te,h.toUpper=Ey,h.trim=wy,h.trimEnd=by,h.trimStart=Sy,h.truncate=Cy,h.unescape=Oy,h.uniqueId=Ky,h.upperCase=xy,h.upperFirst=Ho,h.each=rc,h.eachRight=nc,h.first=Zl,Wo(h,function(){var e={};return _t(h,function(t,s){ne.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){Y.prototype[e]=function(s){s=s===i?1:Ee(W(s),0);var l=this.__filtered__&&!t?new Y(this):this.clone();return l.__filtered__?l.__takeCount__=Re(s,l.__takeCount__):l.__views__.push({size:Re(s,vt),type:e+(l.__dir__<0?"Right":"")}),l},Y.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),et(["filter","map","takeWhile"],function(e,t){var s=t+1,l=s==Ju||s==bd;Y.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":"");Y.prototype[e]=function(){return this[s](1).value()[0]}}),et(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[s](1)}}),Y.prototype.compact=function(){return this.filter(We)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=V(function(e,t){return typeof e=="function"?new Y(this):this.map(function(s){return Cn(s,e,t)})}),Y.prototype.reject=function(e){return this.filter(ki($(e)))},Y.prototype.slice=function(e,t){e=W(e);var s=this;return s.__filtered__&&(e>0||t<0)?new Y(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=W(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(vt)},_t(Y.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,w=m instanceof Y,O=y[0],x=w||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&&(w=x=!1);var T=this.__chain__,q=!!this.__actions__.length,F=d&&!T,B=w&&!q;if(!d&&x){m=B?m:new Y(this);var j=e.apply(m,y);return j.__actions__.push({func:Ui,args:[A],thisArg:i}),new rt(j,T)}return F&&B?e.apply(this,y):(j=this.thru(A),F?l?j.value()[0]:j.value():j)})}),et(["pop","push","shift","sort","splice","unshift"],function(e){var t=pi[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(Y.prototype,function(e,t){var s=h[t];if(s){var l=s.name+"";ne.call(Mr,l)||(Mr[l]=[]),Mr[l].push({name:t,func:s})}}),Mr[Di(i,re).name]=[{name:"wrapper",func:i}],Y.prototype.clone=Om,Y.prototype.reverse=xm,Y.prototype.value=Am,h.prototype.at=r0,h.prototype.chain=n0,h.prototype.commit=i0,h.prototype.next=s0,h.prototype.plant=u0,h.prototype.reverse=a0,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=l0,h.prototype.first=h.prototype.head,vn&&(h.prototype[vn]=o0),h},Kt=im();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(we._=Kt,define(function(){return Kt})):ar?((ar.exports=Kt)._=Kt,Us._=Kt):we._=Kt}).call(Vr)});var Dn=R((bO,$c)=>{var dE="2.0.0",gE=256,mE=Number.MAX_SAFE_INTEGER||9007199254740991,vE=16;$c.exports={SEMVER_SPEC_VERSION:dE,MAX_LENGTH:gE,MAX_SAFE_INTEGER:mE,MAX_SAFE_COMPONENT_LENGTH:vE}});var qn=R((SO,Fc)=>{var _E=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Fc.exports=_E});var yr=R((nr,jc)=>{var{MAX_SAFE_COMPONENT_LENGTH:Jo}=Dn(),yE=qn();nr=jc.exports={};var EE=nr.re=[],N=nr.src=[],D=nr.t={},wE=0,k=(i,r,n)=>{let u=wE++;yE(u,r),D[i]=u,N[u]=r,EE[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,${Jo}})(?:\\.(\\d{1,${Jo}}))?(?:\\.(\\d{1,${Jo}}))?(?:$|[^\\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 $n=R((CO,Mc)=>{var bE=["includePrerelease","loose","rtl"],SE=i=>i?typeof i!="object"?{loose:!0}:bE.filter(r=>i[r]).reduce((r,n)=>(r[n]=!0,r),{}):{};Mc.exports=SE});var Ki=R((OO,Gc)=>{var Hc=/^[0-9]+$/,Uc=(i,r)=>{let n=Hc.test(i),u=Hc.test(r);return n&&u&&(i=+i,r=+r),i===r?0:n&&!u?-1:u&&!n?1:i<r?-1:1},CE=(i,r)=>Uc(r,i);Gc.exports={compareIdentifiers:Uc,rcompareIdentifiers:CE}});var Te=R((xO,Vc)=>{var Ji=qn(),{MAX_LENGTH:Wc,MAX_SAFE_INTEGER:Zi}=Dn(),{re:Bc,t:kc}=yr(),OE=$n(),{compareIdentifiers:Fn}=Ki(),ut=class{constructor(r,n){if(n=OE(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>Wc)throw new TypeError(`version is longer than ${Wc} characters`);Ji("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let u=r.trim().match(n.loose?Bc[kc.LOOSE]:Bc[kc.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>Zi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Zi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Zi||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<Zi)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(Ji("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)),Fn(this.major,r.major)||Fn(this.minor,r.minor)||Fn(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(Ji("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 Fn(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(Ji("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 Fn(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}};Vc.exports=ut});var Er=R((AO,Kc)=>{var{MAX_LENGTH:xE}=Dn(),{re:zc,t:Xc}=yr(),Yc=Te(),AE=$n(),IE=(i,r)=>{if(r=AE(r),i instanceof Yc)return i;if(typeof i!="string"||i.length>xE||!(r.loose?zc[Xc.LOOSE]:zc[Xc.FULL]).test(i))return null;try{return new Yc(i,r)}catch{return null}};Kc.exports=IE});var Zc=R((IO,Jc)=>{var RE=Er(),PE=(i,r)=>{let n=RE(i,r);return n?n.version:null};Jc.exports=PE});var ef=R((RO,Qc)=>{var TE=Er(),LE=(i,r)=>{let n=TE(i.trim().replace(/^[=v]+/,""),r);return n?n.version:null};Qc.exports=LE});var rf=R((PO,tf)=>{var NE=Te(),DE=(i,r,n,u)=>{typeof n=="string"&&(u=n,n=void 0);try{return new NE(i,n).inc(r,u).version}catch{return null}};tf.exports=DE});var at=R((TO,sf)=>{var nf=Te(),qE=(i,r,n)=>new nf(i,n).compare(new nf(r,n));sf.exports=qE});var Qi=R((LO,of)=>{var $E=at(),FE=(i,r,n)=>$E(i,r,n)===0;of.exports=FE});var lf=R((NO,af)=>{var uf=Er(),jE=Qi(),ME=(i,r)=>{if(jE(i,r))return null;{let n=uf(i),u=uf(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}};af.exports=ME});var ff=R((DO,cf)=>{var HE=Te(),UE=(i,r)=>new HE(i,r).major;cf.exports=UE});var pf=R((qO,hf)=>{var GE=Te(),WE=(i,r)=>new GE(i,r).minor;hf.exports=WE});var gf=R(($O,df)=>{var BE=Te(),kE=(i,r)=>new BE(i,r).patch;df.exports=kE});var vf=R((FO,mf)=>{var VE=Er(),zE=(i,r)=>{let n=VE(i,r);return n&&n.prerelease.length?n.prerelease:null};mf.exports=zE});var yf=R((jO,_f)=>{var XE=at(),YE=(i,r,n)=>XE(r,i,n);_f.exports=YE});var wf=R((MO,Ef)=>{var KE=at(),JE=(i,r)=>KE(i,r,!0);Ef.exports=JE});var es=R((HO,Sf)=>{var bf=Te(),ZE=(i,r,n)=>{let u=new bf(i,n),a=new bf(r,n);return u.compare(a)||u.compareBuild(a)};Sf.exports=ZE});var Of=R((UO,Cf)=>{var QE=es(),ew=(i,r)=>i.sort((n,u)=>QE(n,u,r));Cf.exports=ew});var Af=R((GO,xf)=>{var tw=es(),rw=(i,r)=>i.sort((n,u)=>tw(u,n,r));xf.exports=rw});var jn=R((WO,If)=>{var nw=at(),iw=(i,r,n)=>nw(i,r,n)>0;If.exports=iw});var ts=R((BO,Rf)=>{var sw=at(),ow=(i,r,n)=>sw(i,r,n)<0;Rf.exports=ow});var Zo=R((kO,Pf)=>{var uw=at(),aw=(i,r,n)=>uw(i,r,n)!==0;Pf.exports=aw});var rs=R((VO,Tf)=>{var lw=at(),cw=(i,r,n)=>lw(i,r,n)>=0;Tf.exports=cw});var ns=R((zO,Lf)=>{var fw=at(),hw=(i,r,n)=>fw(i,r,n)<=0;Lf.exports=hw});var Qo=R((XO,Nf)=>{var pw=Qi(),dw=Zo(),gw=jn(),mw=rs(),vw=ts(),_w=ns(),yw=(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 pw(i,n,u);case"!=":return dw(i,n,u);case">":return gw(i,n,u);case">=":return mw(i,n,u);case"<":return vw(i,n,u);case"<=":return _w(i,n,u);default:throw new TypeError(`Invalid operator: ${r}`)}};Nf.exports=yw});var qf=R((YO,Df)=>{var Ew=Te(),ww=Er(),{re:is,t:ss}=yr(),bw=(i,r)=>{if(i instanceof Ew)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(is[ss.COERCE]);else{let u;for(;(u=is[ss.COERCERTL].exec(i))&&(!n||n.index+n[0].length!==i.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),is[ss.COERCERTL].lastIndex=u.index+u[1].length+u[2].length;is[ss.COERCERTL].lastIndex=-1}return n===null?null:ww(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,r)};Df.exports=bw});var Ff=R((KO,$f)=>{"use strict";$f.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var Mf=R((JO,jf)=>{"use strict";jf.exports=Z;Z.Node=wr;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++)Cw(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)Ow(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=Sw(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 Sw(i,r,n){var u=r===i.head?new wr(n,null,r,i):new wr(n,r,r.next,i);return u.next===null&&(i.tail=u),u.prev===null&&(i.head=u),i.length++,u}function Cw(i,r){i.tail=new wr(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function Ow(i,r){i.head=new wr(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function wr(i,r,n,u){if(!(this instanceof wr))return new wr(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{Ff()(Z)}catch{}});var Vf=R((ZO,kf)=>{"use strict";var xw=Mf(),br=Symbol("max"),Ht=Symbol("length"),Xr=Symbol("lengthCalculator"),Mn=Symbol("allowStale"),Sr=Symbol("maxAge"),Ut=Symbol("dispose"),Hf=Symbol("noDisposeOnSet"),Se=Symbol("lruList"),mt=Symbol("cache"),Uf=Symbol("updateAgeOnGet"),eu=()=>1,Gf=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[br]=r.max||1/0,u=r.length||eu;if(this[Xr]=typeof u!="function"?eu:u,this[Mn]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Sr]=r.maxAge||0,this[Ut]=r.dispose,this[Hf]=r.noDisposeOnSet||!1,this[Uf]=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[br]=r||1/0,Hn(this)}get max(){return this[br]}set allowStale(r){this[Mn]=!!r}get allowStale(){return this[Mn]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Sr]=r,Hn(this)}get maxAge(){return this[Sr]}set lengthCalculator(r){typeof r!="function"&&(r=eu),r!==this[Xr]&&(this[Xr]=r,this[Ht]=0,this[Se].forEach(n=>{n.length=this[Xr](n.value,n.key),this[Ht]+=n.length})),Hn(this)}get lengthCalculator(){return this[Xr]}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;Bf(this,r,u,n),u=a}}forEach(r,n){n=n||this;for(let u=this[Se].head;u!==null;){let a=u.next;Bf(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 xw,this[Ht]=0}dump(){return this[Se].map(r=>os(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[Sr],u&&typeof u!="number")throw new TypeError("maxAge must be a number");let a=u?Date.now():0,o=this[Xr](n,r);if(this[mt].has(r)){if(o>this[br])return Yr(this,this[mt].get(r)),!1;let v=this[mt].get(r).value;return this[Ut]&&(this[Hf]||this[Ut](r,v.value)),v.now=a,v.maxAge=u,v.value=n,this[Ht]+=o-v.length,v.length=o,this.get(r),Hn(this),!0}let p=new Wf(r,n,o,a,u);return p.length>this[br]?(this[Ut]&&this[Ut](r,n),!1):(this[Ht]+=p.length,this[Se].unshift(p),this[mt].set(r,this[Se].head),Hn(this),!0)}has(r){if(!this[mt].has(r))return!1;let n=this[mt].get(r).value;return!os(this,n)}get(r){return tu(this,r,!0)}peek(r){return tu(this,r,!1)}pop(){let r=this[Se].tail;return r?(Yr(this,r),r.value):null}del(r){Yr(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)=>tu(this,n,!1))}},tu=(i,r,n)=>{let u=i[mt].get(r);if(u){let a=u.value;if(os(i,a)){if(Yr(i,u),!i[Mn])return}else n&&(i[Uf]&&(u.value.now=Date.now()),i[Se].unshiftNode(u));return a.value}},os=(i,r)=>{if(!r||!r.maxAge&&!i[Sr])return!1;let n=Date.now()-r.now;return r.maxAge?n>r.maxAge:i[Sr]&&n>i[Sr]},Hn=i=>{if(i[Ht]>i[br])for(let r=i[Se].tail;i[Ht]>i[br]&&r!==null;){let n=r.prev;Yr(i,r),r=n}},Yr=(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)}},Wf=class{constructor(r,n,u,a,o){this.key=r,this.value=n,this.length=u,this.now=a,this.maxAge=o||0}},Bf=(i,r,n,u)=>{let a=n.value;os(i,a)&&(Yr(i,n),i[Mn]||(a=void 0)),a&&r.call(u,a.value,a.key,i)};kf.exports=Gf});var lt=R((QO,Kf)=>{var Kr=class{constructor(r,n){if(n=Iw(n),r instanceof Kr)return r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease?r:new Kr(r.raw,n);if(r instanceof ru)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=>!Xf(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&&Nw(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=zf.get(u);if(a)return a;let o=this.options.loose,p=o?Le[xe.HYPHENRANGELOOSE]:Le[xe.HYPHENRANGE];r=r.replace(p,Ww(this.options.includePrerelease)),me("hyphen replace",r),r=r.replace(Le[xe.COMPARATORTRIM],Pw),me("comparator trim",r,Le[xe.COMPARATORTRIM]),r=r.replace(Le[xe.TILDETRIM],Tw),r=r.replace(Le[xe.CARETTRIM],Lw),r=r.split(/\s+/).join(" ");let g=o?Le[xe.COMPARATORLOOSE]:Le[xe.COMPARATOR],v=r.split(" ").map(I=>Dw(I,this.options)).join(" ").split(/\s+/).map(I=>Gw(I,this.options)).filter(this.options.loose?I=>!!I.match(g):()=>!0).map(I=>new ru(I,this.options)),c=v.length,_=new Map;for(let I of v){if(Xf(I))return[I];_.set(I.value,I)}_.size>1&&_.has("")&&_.delete("");let b=[..._.values()];return zf.set(u,b),b}intersects(r,n){if(!(r instanceof Kr))throw new TypeError("a Range is required");return this.set.some(u=>Yf(u,n)&&r.set.some(a=>Yf(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 Rw(r,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(Bw(this.set[n],r,this.options))return!0;return!1}};Kf.exports=Kr;var Aw=Vf(),zf=new Aw({max:1e3}),Iw=$n(),ru=Un(),me=qn(),Rw=Te(),{re:Le,t:xe,comparatorTrimReplace:Pw,tildeTrimReplace:Tw,caretTrimReplace:Lw}=yr(),Xf=i=>i.value==="<0.0.0-0",Nw=i=>i.value==="",Yf=(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},Dw=(i,r)=>(me("comp",i,r),i=Fw(i,r),me("caret",i),i=qw(i,r),me("tildes",i),i=Mw(i,r),me("xrange",i),i=Uw(i,r),me("stars",i),i),Fe=i=>!i||i.toLowerCase()==="x"||i==="*",qw=(i,r)=>i.trim().split(/\s+/).map(n=>$w(n,r)).join(" "),$w=(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 v;return Fe(a)?v="":Fe(o)?v=`>=${a}.0.0 <${+a+1}.0.0-0`:Fe(p)?v=`>=${a}.${o}.0 <${a}.${+o+1}.0-0`:g?(me("replaceTilde pr",g),v=`>=${a}.${o}.${p}-${g} <${a}.${+o+1}.0-0`):v=`>=${a}.${o}.${p} <${a}.${+o+1}.0-0`,me("tilde return",v),v})},Fw=(i,r)=>i.trim().split(/\s+/).map(n=>jw(n,r)).join(" "),jw=(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,v)=>{me("caret",i,a,o,p,g,v);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`:v?(me("replaceCaret pr",v),o==="0"?p==="0"?c=`>=${o}.${p}.${g}-${v} <${o}.${p}.${+g+1}-0`:c=`>=${o}.${p}.${g}-${v} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.${g}-${v} <${+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})},Mw=(i,r)=>(me("replaceXRanges",i,r),i.split(/\s+/).map(n=>Hw(n,r)).join(" ")),Hw=(i,r)=>{i=i.trim();let n=r.loose?Le[xe.XRANGELOOSE]:Le[xe.XRANGE];return i.replace(n,(u,a,o,p,g,v)=>{me("xRange",i,u,a,o,p,g,v);let c=Fe(o),_=c||Fe(p),b=_||Fe(g),I=b;return a==="="&&I&&(a=""),v=r.includePrerelease?"-0":"",c?a===">"||a==="<"?u="<0.0.0-0":u="*":a&&I?(_&&(p=0),g=0,a===">"?(a=">=",_?(o=+o+1,p=0,g=0):(p=+p+1,g=0)):a==="<="&&(a="<",_?o=+o+1:p=+p+1),a==="<"&&(v="-0"),u=`${a+o}.${p}.${g}${v}`):_?u=`>=${o}.0.0${v} <${+o+1}.0.0-0`:b&&(u=`>=${o}.${p}.0${v} <${o}.${+p+1}.0-0`),me("xRange return",u),u})},Uw=(i,r)=>(me("replaceStars",i,r),i.trim().replace(Le[xe.STAR],"")),Gw=(i,r)=>(me("replaceGTE0",i,r),i.trim().replace(Le[r.includePrerelease?xe.GTE0PRE:xe.GTE0],"")),Ww=i=>(r,n,u,a,o,p,g,v,c,_,b,I,P)=>(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)?v="":Fe(_)?v=`<${+c+1}.0.0-0`:Fe(b)?v=`<${c}.${+_+1}.0-0`:I?v=`<=${c}.${_}.${b}-${I}`:i?v=`<${c}.${_}.${+b+1}-0`:v=`<=${v}`,`${n} ${v}`.trim()),Bw=(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!==ru.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 Un=R((ex,th)=>{var Gn=Symbol("SemVer ANY"),Wn=class{static get ANY(){return Gn}constructor(r,n){if(n=kw(n),r instanceof Wn){if(r.loose===!!n.loose)return r;r=r.value}iu("comparator",r,n),this.options=n,this.loose=!!n.loose,this.parse(r),this.semver===Gn?this.value="":this.value=this.operator+this.semver.version,iu("comp",this)}parse(r){let n=this.options.loose?Jf[Zf.COMPARATORLOOSE]:Jf[Zf.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 Qf(u[2],this.options.loose):this.semver=Gn}toString(){return this.value}test(r){if(iu("Comparator.test",r,this.options.loose),this.semver===Gn||r===Gn)return!0;if(typeof r=="string")try{r=new Qf(r,this.options)}catch{return!1}return nu(r,this.operator,this.semver,this.options)}intersects(r,n){if(!(r instanceof Wn))throw new TypeError("a Comparator is required");if((!n||typeof n!="object")&&(n={loose:!!n,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new eh(r.value,n).test(this.value);if(r.operator==="")return r.value===""?!0:new eh(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=nu(this.semver,"<",r.semver,n)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),v=nu(this.semver,">",r.semver,n)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return u||a||o&&p||g||v}};th.exports=Wn;var kw=$n(),{re:Jf,t:Zf}=yr(),nu=Qo(),iu=qn(),Qf=Te(),eh=lt()});var Bn=R((tx,rh)=>{var Vw=lt(),zw=(i,r,n)=>{try{r=new Vw(r,n)}catch{return!1}return r.test(i)};rh.exports=zw});var ih=R((rx,nh)=>{var Xw=lt(),Yw=(i,r)=>new Xw(i,r).set.map(n=>n.map(u=>u.value).join(" ").trim().split(" "));nh.exports=Yw});var oh=R((nx,sh)=>{var Kw=Te(),Jw=lt(),Zw=(i,r,n)=>{let u=null,a=null,o=null;try{o=new Jw(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===-1)&&(u=p,a=new Kw(u,n))}),u};sh.exports=Zw});var ah=R((ix,uh)=>{var Qw=Te(),eb=lt(),tb=(i,r,n)=>{let u=null,a=null,o=null;try{o=new eb(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===1)&&(u=p,a=new Qw(u,n))}),u};uh.exports=tb});var fh=R((sx,ch)=>{var su=Te(),rb=lt(),lh=jn(),nb=(i,r)=>{i=new rb(i,r);let n=new su("0.0.0");if(i.test(n)||(n=new su("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 su(p.semver.version);switch(p.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!o||lh(g,o))&&(o=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${p.operator}`)}}),o&&(!n||lh(n,o))&&(n=o)}return n&&i.test(n)?n:null};ch.exports=nb});var ph=R((ox,hh)=>{var ib=lt(),sb=(i,r)=>{try{return new ib(i,r).range||"*"}catch{return null}};hh.exports=sb});var us=R((ux,vh)=>{var ob=Te(),dh=Un(),{ANY:ub}=dh,ab=lt(),lb=Bn(),gh=jn(),mh=ts(),cb=ns(),fb=rs(),hb=(i,r,n,u)=>{i=new ob(i,u),r=new ab(r,u);let a,o,p,g,v;switch(n){case">":a=gh,o=cb,p=mh,g=">",v=">=";break;case"<":a=mh,o=fb,p=gh,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lb(i,r,u))return!1;for(let c=0;c<r.set.length;++c){let _=r.set[c],b=null,I=null;if(_.forEach(P=>{P.semver===ub&&(P=new dh(">=0.0.0")),b=b||P,I=I||P,a(P.semver,b.semver,u)?b=P:p(P.semver,I.semver,u)&&(I=P)}),b.operator===g||b.operator===v||(!I.operator||I.operator===g)&&o(i,I.semver))return!1;if(I.operator===v&&p(i,I.semver))return!1}return!0};vh.exports=hb});var yh=R((ax,_h)=>{var pb=us(),db=(i,r,n)=>pb(i,r,">",n);_h.exports=db});var wh=R((lx,Eh)=>{var gb=us(),mb=(i,r,n)=>gb(i,r,"<",n);Eh.exports=mb});var Ch=R((cx,Sh)=>{var bh=lt(),vb=(i,r,n)=>(i=new bh(i,n),r=new bh(r,n),i.intersects(r));Sh.exports=vb});var xh=R((fx,Oh)=>{var _b=Bn(),yb=at();Oh.exports=(i,r,n)=>{let u=[],a=null,o=null,p=i.sort((_,b)=>yb(_,b,n));for(let _ of p)_b(_,r,n)?(o=_,a||(a=_)):(o&&u.push([a,o]),o=null,a=null);a&&u.push([a,null]);let g=[];for(let[_,b]of u)_===b?g.push(_):!b&&_===p[0]?g.push("*"):b?_===p[0]?g.push(`<=${b}`):g.push(`${_} - ${b}`):g.push(`>=${_}`);let v=g.join(" || "),c=typeof r.raw=="string"?r.raw:String(r);return v.length<c.length?v:r}});var Th=R((hx,Ph)=>{var Ah=lt(),as=Un(),{ANY:ou}=as,kn=Bn(),uu=at(),Eb=(i,r,n={})=>{if(i===r)return!0;i=new Ah(i,n),r=new Ah(r,n);let u=!1;e:for(let a of i.set){for(let o of r.set){let p=wb(a,o,n);if(u=u||p!==null,p)continue e}if(u)return!1}return!0},wb=(i,r,n)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===ou){if(r.length===1&&r[0].semver===ou)return!0;n.includePrerelease?i=[new as(">=0.0.0-0")]:i=[new as(">=0.0.0")]}if(r.length===1&&r[0].semver===ou){if(n.includePrerelease)return!0;r=[new as(">=0.0.0")]}let u=new Set,a,o;for(let P of i)P.operator===">"||P.operator===">="?a=Ih(a,P,n):P.operator==="<"||P.operator==="<="?o=Rh(o,P,n):u.add(P.semver);if(u.size>1)return null;let p;if(a&&o){if(p=uu(a.semver,o.semver,n),p>0)return null;if(p===0&&(a.operator!==">="||o.operator!=="<="))return null}for(let P of u){if(a&&!kn(P,String(a),n)||o&&!kn(P,String(o),n))return null;for(let H of r)if(!kn(P,String(H),n))return!1;return!0}let g,v,c,_,b=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,I=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 P of r){if(_=_||P.operator===">"||P.operator===">=",c=c||P.operator==="<"||P.operator==="<=",a){if(I&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===I.major&&P.semver.minor===I.minor&&P.semver.patch===I.patch&&(I=!1),P.operator===">"||P.operator===">="){if(g=Ih(a,P,n),g===P&&g!==a)return!1}else if(a.operator===">="&&!kn(a.semver,String(P),n))return!1}if(o){if(b&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===b.major&&P.semver.minor===b.minor&&P.semver.patch===b.patch&&(b=!1),P.operator==="<"||P.operator==="<="){if(v=Rh(o,P,n),v===P&&v!==o)return!1}else if(o.operator==="<="&&!kn(o.semver,String(P),n))return!1}if(!P.operator&&(o||a)&&p!==0)return!1}return!(a&&c&&!o&&p!==0||o&&_&&!a&&p!==0||I||b)},Ih=(i,r,n)=>{if(!i)return r;let u=uu(i.semver,r.semver,n);return u>0?i:u<0||r.operator===">"&&i.operator===">="?r:i},Rh=(i,r,n)=>{if(!i)return r;let u=uu(i.semver,r.semver,n);return u<0?i:u>0||r.operator==="<"&&i.operator==="<="?r:i};Ph.exports=Eb});var Nh=R((px,Lh)=>{var au=yr();Lh.exports={re:au.re,src:au.src,tokens:au.t,SEMVER_SPEC_VERSION:Dn().SEMVER_SPEC_VERSION,SemVer:Te(),compareIdentifiers:Ki().compareIdentifiers,rcompareIdentifiers:Ki().rcompareIdentifiers,parse:Er(),valid:Zc(),clean:ef(),inc:rf(),diff:lf(),major:ff(),minor:pf(),patch:gf(),prerelease:vf(),compare:at(),rcompare:yf(),compareLoose:wf(),compareBuild:es(),sort:Of(),rsort:Af(),gt:jn(),lt:ts(),eq:Qi(),neq:Zo(),gte:rs(),lte:ns(),cmp:Qo(),coerce:qf(),Comparator:Un(),Range:lt(),satisfies:Bn(),toComparators:ih(),maxSatisfying:oh(),minSatisfying:ah(),minVersion:fh(),validRange:ph(),outside:us(),gtr:yh(),ltr:wh(),intersects:Ch(),simplifyRange:xh(),subset:Th()}});var Ae=R(Cr=>{"use strict";var Dh=Cr&&Cr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Cr,"__esModule",{value:!0});Cr.getCoreVersion=void 0;var qh=Dh(require("path")),$h=Dh(require("fs")),bb=Nh(),Sb=require("@serverless-devs/core"),lu=qh.default.join(Sb.getRootHome(),"cache","core"),Fh=qh.default.join(lu,"package.json");function Cb(){if($h.default.existsSync(Fh)){var i=require("@serverless-devs/core/package.json").version,r=jh();return bb.gt(r,i)?require(lu):require("@serverless-devs/core")}return require("@serverless-devs/core")}function jh(){return $h.default.existsSync(lu)?require(Fh).version:void 0}Cr.getCoreVersion=jh;Cr.default=Cb()});var Mh=R((gx,Ob)=>{Ob.exports={name:"@serverless-devs/s",version:"2.0.97-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":"beta"}}});var Gt=R(G=>{"use strict";var xb=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]}),Ab=G&&G.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Ib=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)&&xb(r,i,n);return Ab(r,i),r},Hh=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(_){try{c(u.next(_))}catch(b){p(b)}}function v(_){try{c(u.throw(_))}catch(b){p(b)}}function c(_){_.done?o(_.value):a(_.value).then(g,v)}c((u=u.apply(i,r||[])).next())})},Uh=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(_){return v([c,_])}}function v(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(_){c=[6,_],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ls=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=ls(require("path")),Je=ls(require("fs")),cu=ls(zr()),Rb=ls(require("os")),Pb=Or(),cs=Ib(Ae()),fu=cs.default.colors,Tb=cs.default.jsyaml,fs=Mh();G.red=fu.hex("#fd5750");G.bgRed=fu.hex("#000").bgHex("#fd5750");function Lb(){return(0,cs.getCoreVersion)()?fs.name+": "+fs.version+", @serverless-devs/core: "+(0,cs.getCoreVersion)()+", "+process.platform+"-"+process.arch+", node-"+process.version:fs.name+": "+fs.version+", "+process.platform+"-"+process.arch+", node-"+process.version}G.getVersion=Lb;function Nb(i){return Hh(this,void 0,void 0,function(){function r(a){return Hh(this,void 0,void 0,function(){var o,p;return Uh(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(v){return r(Ce.default.join(a,v))}))]):[3,2]);case 1:g.sent(),g.label=2;case 2:return[2]}})})}var n,u;return Uh(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=Nb;function Gh(i){var r=Je.default.readFileSync(i,"utf8");try{return Tb.load(r)}catch{if(["-h","--help"].includes(process.argv[2]))return;var n=Ce.default.basename(i);new Pb.HumanError({errorMessage:n+" format is incorrect",tips:"Please check the configuration of "+n+", Serverless Devs' Yaml specification document can refer to\uFF1A"+fu.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/yaml.md")}),process.exit(1)}}G.yamlLoad=Gh;function Vn(i,r){r===void 0&&(r=!1);var n=Je.default.readFileSync(i,"utf8"),u=r?JSON.parse(n):Gh(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 Wh(){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))&&Vn(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)&&Vn(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"))&&Vn(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"))&&Vn(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"))&&Vn(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=Wh;function Bh(i){return Je.default.existsSync(i)?i:null}G.checkTemplateFile=Bh;function kh(i,r){r===void 0&&(r=" ");for(var n="",u=0;u<i;u++)n=n+r;return n}G.printn=kh;function Vh(){return"en"}G.getLang=Vh;function hu(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=cu.default.trim(o.split("|")[0]);r[p]&&(i=i.replace(u[a],r[p]))}return i}G.replaceFun=hu;function zh(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:cu.default.trim(o[0]),desc:cu.default.trim(o[1])}}):[]}G.getTemplatekey=zh;function Xh(i,r){i.forEach(function(n){if(Je.default.existsSync(n)){var u=Je.default.readFileSync(n,"utf-8"),a=hu(u,r);Je.default.writeFileSync(n,a,"utf-8")}})}G.replaceTemplate=Xh;function Yh(i){if(!i)return i;var r=i.slice(-4);return"***********"+r}G.mark=Yh;function Db(i){return Rb.default.platform()==="win32"?"":i}G.emoji=Db;G.default={checkAndReturnTemplateFile:Wh,checkTemplateFile:Bh,printn:kh,mark:Yh,getLang:Vh,replaceTemplate:Xh,replaceFun:hu,getTemplatekey:zh}});var ps=R(Wt=>{"use strict";var Kh=Wt&&Wt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getHistoryFile=Wt.getHomeDir=void 0;var qb=Kh(require("path")),Jh=Kh(Ae()),hs=Jh.default.fse,$b=Jh.default.getRootHome;function pu(){var i=$b();return hs.existsSync(i)||hs.mkdirSync(i),i}Wt.getHomeDir=pu;function Zh(){var i=qb.default.join(pu(),"history");return hs.existsSync(i)||hs.createFileSync(i),i}Wt.getHistoryFile=Zh;Wt.default={getHomeDir:pu,getHistoryFile:Zh}});var mu=R(je=>{"use strict";var Fb=je&&je.__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(_){try{c(u.next(_))}catch(b){p(b)}}function v(_){try{c(u.throw(_))}catch(b){p(b)}}function c(_){_.done?o(_.value):a(_.value).then(g,v)}c((u=u.apply(i,r||[])).next())})},jb=je&&je.__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(_){return v([c,_])}}function v(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(_){c=[6,_],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},du=je&&je.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(je,"__esModule",{value:!0});je.handlerProfileFile=je.getConfig=je.setConfig=void 0;var Qh=du(require("path")),Mb=du(ps()),gu=du(Ae()),wt=gu.default.fse,ds=gu.default.jsyaml,ep=gu.default.getRootHome;function Hb(i){var r=rp();wt.writeFileSync(r,ds.dump(i))}function tp(){var i=rp();if(!wt.existsSync(i))return{};try{var r=ds.load(wt.readFileSync(i,"utf8"))||{};return r}catch(n){throw n}}function rp(){var i=Qh.default.join(Mb.default.getHomeDir(),"set-config.yml");return wt.existsSync(i)||wt.createFileSync(i),i}function np(i,r){var n=tp();n[i]=r,Hb(n)}je.setConfig=np;function ip(i,r){var n=tp();return n[i]||r}je.getConfig=ip;function sp(i){return Fb(this,void 0,void 0,function(){var r,n,u,a,o,p,g;return jb(this,function(v){switch(v.label){case 0:if(r=i.filePath||"set-config.yml",n=Qh.default.join(ep(),r),u=wt.existsSync(n),a={},u)return[3,5];o=ep(),v.label=1;case 1:return v.trys.push([1,2,,4]),wt.statSync(o),[3,4];case 2:return p=v.sent(),[4,wt.mkdirSync(o)];case 3:return v.sent(),[3,4];case 4:return[3,6];case 5:try{a=ds.load(wt.readFileSync(n,"utf8"))||{}}catch(c){throw c}v.label=6;case 6:return i.read?[2,a]:(g=i.configKey||"",a[g]=i.data,[4,wt.writeFileSync(n,ds.dump(a))]);case 7:return v.sent(),[2,a]}})})}je.handlerProfileFile=sp;je.default={setConfig:np,getConfig:ip,handlerProfileFile:sp}});var xr=R(Jr=>{"use strict";var Ub=Jr&&Jr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.ServerlessError=void 0;var Gb=Ub(Ae()),Wb=Gb.default.Logger,Bb=new Wb("S-CLI-ERROR"),kb=function(){function i(r,n,u){Bb.error(r+": "+n,u),process.exit(1)}return i}();Jr.ServerlessError=kb});var op=R(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.CommandError=void 0;var zb=xr(),Xb=function(i){Vb(r,i);function r(n,u){return i.call(this,"Error",n,u)||this}return r}(zb.ServerlessError);Zr.CommandError=Xb});var up=R(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.ConfigDeleteError=void 0;var Kb=xr(),Jb=function(i){Yb(r,i);function r(n,u){return i.call(this,"Deletion failed",n,u)||this}return r}(Kb.ServerlessError);Qr.ConfigDeleteError=Jb});var ap=R(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.ConfigError=void 0;var Qb=xr(),eS=function(i){Zb(r,i);function r(n,u){return i.call(this,"Config failed",n,u)||this}return r}(Qb.ServerlessError);en.ConfigError=eS});var lp=R(tn=>{"use strict";var tS=tn&&tn.__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(tn,"__esModule",{value:!0});tn.ConfigGetError=void 0;var rS=xr(),nS=function(i){tS(r,i);function r(n,u){return i.call(this,"Get failed",n,u)||this}return r}(rS.ServerlessError);tn.ConfigGetError=nS});var cp=R(rn=>{"use strict";var iS=rn&&rn.__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(rn,"__esModule",{value:!0});rn.InitError=void 0;var sS=xr(),oS=function(i){iS(r,i);function r(n,u){return i.call(this,"Initialization failed",n,u)||this}return r}(sS.ServerlessError);rn.InitError=oS});var hp=R(bt=>{"use strict";var uS=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(_){try{c(u.next(_))}catch(b){p(b)}}function v(_){try{c(u.throw(_))}catch(b){p(b)}}function c(_){_.done?o(_.value):a(_.value).then(g,v)}c((u=u.apply(i,r||[])).next())})},aS=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(_){return v([c,_])}}function v(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(_){c=[6,_],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},lS=bt&&bt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(bt,"__esModule",{value:!0});bt.HumanError=void 0;var fp=lS(Ae()),cS=Gt(),fS=fp.default.colors,hS=function(){function i(r){var n=r.errorMessage,u=r.tips;this.errorMessage=n,console.log(`
|
|
35
35
|
`+(0,cS.bgRed)("ERROR:")),console.log("TypeError: "+n+`
|
|
36
36
|
`),console.log(fS.gray(u)+`
|
|
37
37
|
`)}return i.prototype.report=function(r){return uS(this,void 0,void 0,function(){var n;return aS(this,function(u){switch(u.label){case 0:return n=r.error,[4,fp.default.report({type:"jsError",content:this.errorMessage+"||"+n.stack})];case 1:return u.sent(),[2]}})})},i}();bt.HumanError=hS});var dp=R(nn=>{"use strict";var pS=nn&&nn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(nn,"__esModule",{value:!0});nn.HumanWarning=void 0;var dS=pS(Ae()),pp=dS.default.colors,gS=function(){function i(r){var n=r.warningMessage,u=r.tips;console.log(`
|