@serverless-devs/s 2.0.98-beta.1 → 2.0.99
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 +3 -3
- package/lib/cli/index.js +4 -4
- package/lib/component/index.js +3 -3
- package/lib/config/add/index.js +4 -4
- package/lib/config/delete/index.js +3 -3
- package/lib/config/get/index.js +3 -3
- package/lib/config/index.js +3 -3
- package/lib/error/index.js +2 -2
- package/lib/index.js +90 -90
- package/lib/init/index.js +61 -61
- package/lib/init/init-manager.js +95 -59
- package/lib/set/analysis/index.js +4 -4
- package/lib/set/index.js +3 -3
- package/lib/set/locale/index.js +3 -3
- package/lib/set/registry/index.js +3 -3
- package/lib/set/workspace/index.js +4 -4
- package/lib/update-notifier/index.js +4 -4
- package/lib/utils/common.js +2 -2
- package/package.json +2 -2
package/lib/set/index.js
CHANGED
|
@@ -38,10 +38,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
38
38
|
`.concat(Oc.hex("#000").bgYellow("WARNING:"))),console.log("".concat(s,`
|
|
39
39
|
`)),o&&console.log("".concat(Oc.gray(o),`
|
|
40
40
|
`))}return i}();Pn.HumanWarning=Ny});var Ic=L(te=>{"use strict";var Py=te&&te.__awaiter||function(i,r,s,o){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function E(S){try{g(o.next(S))}catch(C){_(C)}}function y(S){try{g(o.throw(S))}catch(C){_(C)}}function g(S){S.done?f(S.value):l(S.value).then(E,y)}g((o=o.apply(i,r||[])).next())})},Dy=te&&te.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,l,f,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(g){return function(S){return y([g,S])}}function y(g){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(f=g[0]&2?l.return:g[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,g[1])).done)return f;switch(l=0,f&&(g=[g[0]&2,f.value]),g[0]){case 0:case 1:f=g;break;case 4:return s.label++,{value:g[1],done:!1};case 5:s.label++,l=g[1],g=[0];continue;case 7:g=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(g[0]===6||g[0]===2)){s=0;continue}if(g[0]===3&&(!f||g[1]>f[0]&&g[1]<f[3])){s.label=g[1];break}if(g[0]===6&&s.label<f[1]){s.label=f[1],f=g;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(g);break}f[2]&&s.ops.pop(),s.trys.pop();continue}g=r.call(i,s)}catch(S){g=[6,S],l=0}finally{o=f=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},qy=te&&te.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(te,"__esModule",{value:!0});te.HandleError=te.HumanWarning=te.HumanError=te.ServerlessError=te.InitError=te.ConfigGetError=te.ConfigError=te.ConfigDeleteError=te.CommandError=void 0;var Fy=yr(),Rc=qy(St()),My=yr(),Dn=Rc.default.colors,Hy=Rc.default.report,Wy=vc();Object.defineProperty(te,"CommandError",{enumerable:!0,get:function(){return Wy.CommandError}});var Uy=mc();Object.defineProperty(te,"ConfigDeleteError",{enumerable:!0,get:function(){return Uy.ConfigDeleteError}});var Gy=Ec();Object.defineProperty(te,"ConfigError",{enumerable:!0,get:function(){return Gy.ConfigError}});var By=yc();Object.defineProperty(te,"ConfigGetError",{enumerable:!0,get:function(){return By.ConfigGetError}});var Xy=wc();Object.defineProperty(te,"InitError",{enumerable:!0,get:function(){return Xy.InitError}});var zy=sn();Object.defineProperty(te,"ServerlessError",{enumerable:!0,get:function(){return zy.ServerlessError}});var jy=Ac();Object.defineProperty(te,"HumanError",{enumerable:!0,get:function(){return jy.HumanError}});var Vy=Sc();Object.defineProperty(te,"HumanWarning",{enumerable:!0,get:function(){return Vy.HumanWarning}});function vu(i,r){return"".concat(Dn.gray(i)).concat(Dn.gray.underline(r))}var Yy=function(i){return Py(void 0,void 0,void 0,function(){var r,s,o,l,f,_;return Dy(this,function(E){switch(E.label){case 0:return r=i.error,s=i.prefix,o=s===void 0?"Message:":s,[4,(0,My.getErrorMessage)(r,o)];case 1:return l=E.sent(),f=l.traceId,_=l.catchableError,_||(f&&console.log(Dn.gray("TraceId: ".concat(f))),console.log(Dn.gray("Environment: ".concat((0,Fy.getVersion)()))),console.log(vu("Documents: ","https://www.serverless-devs.com")),console.log(vu("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(vu("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
|
|
41
|
-
`)),f&&console.log(Dn.gray("Please copy traceId: ".concat(f," and join Dingding group: 33947367 for consultation.")))),console.log(Dn.gray("You can run 's clean --all' to clean Serverless devs.")),f
|
|
41
|
+
`)),f&&console.log(Dn.gray("Please copy traceId: ".concat(f," and join Dingding group: 33947367 for consultation.")))),console.log(Dn.gray("You can run 's clean --all' to clean Serverless devs.")),f&&!_?[4,Hy({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:f})]:[3,3];case 2:E.sent(),E.label=3;case 3:return[2]}})})};te.HandleError=Yy});var Cc=L((Cx,Ky)=>{Ky.exports={name:"@serverless-devs/s",version:"2.0.99",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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 $c=L(Rt=>{"use strict";var bc=Rt&&Rt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.getHistoryFile=Rt.getHomeDir=void 0;var Zy=bc(require("path")),Tc=bc(St()),bi=Tc.default.fse,Jy=Tc.default.getRootHome;function mu(){var i=Jy();return bi.existsSync(i)||bi.mkdirSync(i),i}Rt.getHomeDir=mu;function Lc(){var i=Zy.default.join(mu(),"history");return bi.existsSync(i)||bi.createFileSync(i),i}Rt.getHistoryFile=Lc;Rt.default={getHomeDir:mu,getHistoryFile:Lc}});var Wc=L(Re=>{"use strict";var ky=Re&&Re.__awaiter||function(i,r,s,o){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function E(S){try{g(o.next(S))}catch(C){_(C)}}function y(S){try{g(o.throw(S))}catch(C){_(C)}}function g(S){S.done?f(S.value):l(S.value).then(E,y)}g((o=o.apply(i,r||[])).next())})},Qy=Re&&Re.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,l,f,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(g){return function(S){return y([g,S])}}function y(g){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(f=g[0]&2?l.return:g[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,g[1])).done)return f;switch(l=0,f&&(g=[g[0]&2,f.value]),g[0]){case 0:case 1:f=g;break;case 4:return s.label++,{value:g[1],done:!1};case 5:s.label++,l=g[1],g=[0];continue;case 7:g=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(g[0]===6||g[0]===2)){s=0;continue}if(g[0]===3&&(!f||g[1]>f[0]&&g[1]<f[3])){s.label=g[1];break}if(g[0]===6&&s.label<f[1]){s.label=f[1],f=g;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(g);break}f[2]&&s.ops.pop(),s.trys.pop();continue}g=r.call(i,s)}catch(S){g=[6,S],l=0}finally{o=f=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},Eu=Re&&Re.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Re,"__esModule",{value:!0});Re.handlerProfileFile=Re.getConfig=Re.setConfig=void 0;var Nc=Eu(require("path")),ew=Eu($c()),yu=Eu(St()),ft=yu.default.fse,Ti=yu.default.jsyaml,Pc=yu.default.getRootHome;function tw(i){var r=qc();ft.writeFileSync(r,Ti.dump(i))}function Dc(){var i=qc();if(!ft.existsSync(i))return{};try{var r=Ti.load(ft.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function qc(){var i=Nc.default.join(ew.default.getHomeDir(),"set-config.yml");return ft.existsSync(i)||ft.createFileSync(i),i}function Fc(i,r){var s=Dc();s[i]=r,tw(s)}Re.setConfig=Fc;function Mc(i,r){var s=Dc();return s[i]||r}Re.getConfig=Mc;function Hc(i){return ky(this,void 0,void 0,function(){var r,s,o,l,f,_,E;return Qy(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=Nc.default.join(Pc(),r),o=ft.existsSync(s),l={},o)return[3,5];f=Pc(),y.label=1;case 1:return y.trys.push([1,2,,4]),ft.statSync(f),[3,4];case 2:return _=y.sent(),[4,ft.mkdirSync(f)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{l=Ti.load(ft.readFileSync(s,"utf8"))||{}}catch(g){throw g}y.label=6;case 6:return i.read?[2,l]:(E=i.configKey||"",l[E]=i.data,[4,ft.writeFileSync(s,Ti.dump(l))]);case 7:return y.sent(),[2,l]}})})}Re.handlerProfileFile=Hc;Re.default={setConfig:Fc,getConfig:Mc,handlerProfileFile:Hc}});var yr=L(H=>{"use strict";var nw=H&&H.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),rw=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),iw=H&&H.__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)&&nw(r,i,s);return rw(r,i),r},wu=H&&H.__awaiter||function(i,r,s,o){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function E(S){try{g(o.next(S))}catch(C){_(C)}}function y(S){try{g(o.throw(S))}catch(C){_(C)}}function g(S){S.done?f(S.value):l(S.value).then(E,y)}g((o=o.apply(i,r||[])).next())})},xu=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,l,f,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(g){return function(S){return y([g,S])}}function y(g){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(f=g[0]&2?l.return:g[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,g[1])).done)return f;switch(l=0,f&&(g=[g[0]&2,f.value]),g[0]){case 0:case 1:f=g;break;case 4:return s.label++,{value:g[1],done:!1};case 5:s.label++,l=g[1],g=[0];continue;case 7:g=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(g[0]===6||g[0]===2)){s=0;continue}if(g[0]===3&&(!f||g[1]>f[0]&&g[1]<f[3])){s.label=g[1];break}if(g[0]===6&&s.label<f[1]){s.label=f[1],f=g;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(g);break}f[2]&&s.ops.pop(),s.trys.pop();continue}g=r.call(i,s)}catch(S){g=[6,S],l=0}finally{o=f=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},Li=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var de=Li(require("path")),Fe=Li(require("fs")),Ht=Li(pl()),sw=Li(require("os")),uw=Ic(),Ke=iw(St()),un=Ke.default.colors,ow=Ke.default.jsyaml,aw=Ke.default.makeUnderLine,lw=Ke.default.got,fw=Ke.default.Logger,Uc=Ke.default.isDebugMode,cw=Ke.default.getMAC,hw=Ke.default.getYamlContent,pw=Ke.default.isDocker,gw=Ke.default.isCiCdEnv,Gc=Cc(),dw=Wc();H.red=un.hex("#fd5750");H.yellow=un.hex("#F3F99D");H.bgRed=un.hex("#000").bgHex("#fd5750");var _w=function(i,r){if(!(pw()||gw()))return lw("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(i,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0}).then(function(s){var o=Ht.default.get(s.body,"shorturl");o&&console.log(`AI Tips:
|
|
42
42
|
You can try to solve the problem through: `.concat(un.underline(o),`
|
|
43
|
-
`))}).catch(function(){})},vw=function(i,r){return wu(void 0,void 0,void 0,function(){var s,o,l,f,_,E,y,g,S,C,T,D;return xu(this,function(ue){switch(ue.label){case 0:if(s={traceId:"",catchableError:!1},o=function(){try{return cw().replace(/:/g,"")}catch{return"unknown"}},l=(0,dw.getConfig)("analysis"),l!=="disable"&&(s.traceId="".concat(o()).concat(Date.now())),f=Uc?Uc():void 0,f)return console.log(i),[2,s];_=i.message?i.message:"";try{E=JSON.parse(_)}catch{}return E&&E.tips?(y="Message: ".concat(E.message,`
|
|
44
|
-
`)
|
|
43
|
+
`))}).catch(function(){})},vw=function(i,r){return wu(void 0,void 0,void 0,function(){var s,o,l,f,_,E,y,g,S,C,T,D;return xu(this,function(ue){switch(ue.label){case 0:if(s={traceId:"",catchableError:!1},o=function(){try{return cw().replace(/:/g,"")}catch{return"unknown"}},l=(0,dw.getConfig)("analysis"),l!=="disable"&&(s.traceId="".concat(o()).concat(Date.now())),f=Uc?Uc():void 0,f)return console.log(i),[2,s];_=i.message?i.message:"";try{E=JSON.parse(_)}catch{}return E&&E.tips?(y=E.message?"Message: ".concat(E.message,`
|
|
44
|
+
`):"",g=E.tips?"* ".concat(aw(E.tips.replace(/\n/,`
|
|
45
45
|
* `))):"",fw.log(`
|
|
46
46
|
`.concat(un.hex("#000").bgYellow("WARNING:"),`
|
|
47
47
|
======================
|
package/lib/set/locale/index.js
CHANGED
|
@@ -38,10 +38,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
38
38
|
`.concat(Mh.hex("#000").bgYellow("WARNING:"))),console.log("".concat(i,`
|
|
39
39
|
`)),o&&console.log("".concat(Mh.gray(o),`
|
|
40
40
|
`))}return r}();rr.HumanWarning=zb});var sr=T(ie=>{"use strict";var Xb=ie&&ie.__awaiter||function(r,n,i,o){function a(u){return u instanceof i?u:new i(function(p){p(u)})}return new(i||(i=Promise))(function(u,p){function g(_){try{c(o.next(_))}catch(C){p(C)}}function m(_){try{c(o.throw(_))}catch(C){p(C)}}function c(_){_.done?u(_.value):a(_.value).then(g,m)}c((o=o.apply(r,n||[])).next())})},Yb=ie&&ie.__generator||function(r,n){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,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 m([c,_])}}function m(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=c[0]&2?a.return:c[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,c[1])).done)return u;switch(a=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,a=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(r,i)}catch(_){c=[6,_],a=0}finally{o=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Kb=ie&&ie.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ie,"__esModule",{value:!0});ie.HandleError=ie.HumanWarning=ie.HumanError=ie.ServerlessError=ie.InitError=ie.ConfigGetError=ie.ConfigError=ie.ConfigDeleteError=ie.CommandError=void 0;var Zb=Wt(),Hh=Kb(Ie()),Jb=Wt(),ir=Hh.default.colors,Qb=Hh.default.report,eC=Ph();Object.defineProperty(ie,"CommandError",{enumerable:!0,get:function(){return eC.CommandError}});var tC=Lh();Object.defineProperty(ie,"ConfigDeleteError",{enumerable:!0,get:function(){return tC.ConfigDeleteError}});var nC=Dh();Object.defineProperty(ie,"ConfigError",{enumerable:!0,get:function(){return nC.ConfigError}});var rC=Nh();Object.defineProperty(ie,"ConfigGetError",{enumerable:!0,get:function(){return rC.ConfigGetError}});var iC=qh();Object.defineProperty(ie,"InitError",{enumerable:!0,get:function(){return iC.InitError}});var sC=An();Object.defineProperty(ie,"ServerlessError",{enumerable:!0,get:function(){return sC.ServerlessError}});var oC=Fh();Object.defineProperty(ie,"HumanError",{enumerable:!0,get:function(){return oC.HumanError}});var uC=jh();Object.defineProperty(ie,"HumanWarning",{enumerable:!0,get:function(){return uC.HumanWarning}});function au(r,n){return"".concat(ir.gray(r)).concat(ir.gray.underline(n))}var aC=function(r){return Xb(void 0,void 0,void 0,function(){var n,i,o,a,u,p;return Yb(this,function(g){switch(g.label){case 0:return n=r.error,i=r.prefix,o=i===void 0?"Message:":i,[4,(0,Jb.getErrorMessage)(n,o)];case 1:return a=g.sent(),u=a.traceId,p=a.catchableError,p||(u&&console.log(ir.gray("TraceId: ".concat(u))),console.log(ir.gray("Environment: ".concat((0,Zb.getVersion)()))),console.log(au("Documents: ","https://www.serverless-devs.com")),console.log(au("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(au("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
|
|
41
|
-
`)),u&&console.log(ir.gray("Please copy traceId: ".concat(u," and join Dingding group: 33947367 for consultation.")))),console.log(ir.gray("You can run 's clean --all' to clean Serverless devs.")),u
|
|
41
|
+
`)),u&&console.log(ir.gray("Please copy traceId: ".concat(u," and join Dingding group: 33947367 for consultation.")))),console.log(ir.gray("You can run 's clean --all' to clean Serverless devs.")),u&&!p?[4,Qb({type:"jsError",content:"".concat(n.message,"||").concat(n.stack),traceId:u})]:[3,3];case 2:g.sent(),g.label=3;case 3:return[2]}})})};ie.HandleError=aC});var Uh=T((vx,lC)=>{lC.exports={name:"@serverless-devs/s",version:"2.0.99",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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 fs=T(Bt=>{"use strict";var Gh=Bt&&Bt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getHistoryFile=Bt.getHomeDir=void 0;var cC=Gh(require("path")),Wh=Gh(Ie()),cs=Wh.default.fse,fC=Wh.default.getRootHome;function lu(){var r=fC();return cs.existsSync(r)||cs.mkdirSync(r),r}Bt.getHomeDir=lu;function Bh(){var r=cC.default.join(lu(),"history");return cs.existsSync(r)||cs.createFileSync(r),r}Bt.getHistoryFile=Bh;Bt.default={getHomeDir:lu,getHistoryFile:Bh}});var ps=T(Ne=>{"use strict";var hC=Ne&&Ne.__awaiter||function(r,n,i,o){function a(u){return u instanceof i?u:new i(function(p){p(u)})}return new(i||(i=Promise))(function(u,p){function g(_){try{c(o.next(_))}catch(C){p(C)}}function m(_){try{c(o.throw(_))}catch(C){p(C)}}function c(_){_.done?u(_.value):a(_.value).then(g,m)}c((o=o.apply(r,n||[])).next())})},pC=Ne&&Ne.__generator||function(r,n){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,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 m([c,_])}}function m(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=c[0]&2?a.return:c[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,c[1])).done)return u;switch(a=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,a=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(r,i)}catch(_){c=[6,_],a=0}finally{o=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},cu=Ne&&Ne.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.handlerProfileFile=Ne.getConfig=Ne.setConfig=void 0;var kh=cu(require("path")),dC=cu(fs()),fu=cu(Ie()),St=fu.default.fse,hs=fu.default.jsyaml,Vh=fu.default.getRootHome;function gC(r){var n=Xh();St.writeFileSync(n,hs.dump(r))}function zh(){var r=Xh();if(!St.existsSync(r))return{};try{var n=hs.load(St.readFileSync(r,"utf8"))||{};return n}catch(i){throw i}}function Xh(){var r=kh.default.join(dC.default.getHomeDir(),"set-config.yml");return St.existsSync(r)||St.createFileSync(r),r}function Yh(r,n){var i=zh();i[r]=n,gC(i)}Ne.setConfig=Yh;function Kh(r,n){var i=zh();return i[r]||n}Ne.getConfig=Kh;function Zh(r){return hC(this,void 0,void 0,function(){var n,i,o,a,u,p,g;return pC(this,function(m){switch(m.label){case 0:if(n=r.filePath||"set-config.yml",i=kh.default.join(Vh(),n),o=St.existsSync(i),a={},o)return[3,5];u=Vh(),m.label=1;case 1:return m.trys.push([1,2,,4]),St.statSync(u),[3,4];case 2:return p=m.sent(),[4,St.mkdirSync(u)];case 3:return m.sent(),[3,4];case 4:return[3,6];case 5:try{a=hs.load(St.readFileSync(i,"utf8"))||{}}catch(c){throw c}m.label=6;case 6:return r.read?[2,a]:(g=r.configKey||"",a[g]=r.data,[4,St.writeFileSync(i,hs.dump(a))]);case 7:return m.sent(),[2,a]}})})}Ne.handlerProfileFile=Zh;Ne.default={setConfig:Yh,getConfig:Kh,handlerProfileFile:Zh}});var Wt=T(j=>{"use strict";var vC=j&&j.__createBinding||(Object.create?function(r,n,i,o){o===void 0&&(o=i),Object.defineProperty(r,o,{enumerable:!0,get:function(){return n[i]}})}:function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]}),mC=j&&j.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),_C=j&&j.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&vC(n,r,i);return mC(n,r),n},hu=j&&j.__awaiter||function(r,n,i,o){function a(u){return u instanceof i?u:new i(function(p){p(u)})}return new(i||(i=Promise))(function(u,p){function g(_){try{c(o.next(_))}catch(C){p(C)}}function m(_){try{c(o.throw(_))}catch(C){p(C)}}function c(_){_.done?u(_.value):a(_.value).then(g,m)}c((o=o.apply(r,n||[])).next())})},pu=j&&j.__generator||function(r,n){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,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 m([c,_])}}function m(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=c[0]&2?a.return:c[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,c[1])).done)return u;switch(a=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,a=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(r,i)}catch(_){c=[6,_],a=0}finally{o=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ds=j&&j.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(j,"__esModule",{value:!0});j.emoji=j.mark=j.replaceTemplate=j.getTemplatekey=j.replaceFun=j.getLang=j.printn=j.checkTemplateFile=j.checkAndReturnTemplateFile=j.yamlLoad=j.getFolderSize=j.getVersion=j.getErrorMessage=j.bgRed=j.yellow=j.red=void 0;var Ee=ds(require("path")),Ke=ds(require("fs")),sn=ds(Kn()),yC=ds(require("os")),EC=sr(),ft=_C(Ie()),In=ft.default.colors,wC=ft.default.jsyaml,bC=ft.default.makeUnderLine,CC=ft.default.got,SC=ft.default.Logger,Jh=ft.default.isDebugMode,OC=ft.default.getMAC,xC=ft.default.getYamlContent,AC=ft.default.isDocker,IC=ft.default.isCiCdEnv,Qh=Uh(),RC=ps();j.red=In.hex("#fd5750");j.yellow=In.hex("#F3F99D");j.bgRed=In.hex("#000").bgHex("#fd5750");var TC=function(r,n){if(!(AC()||IC()))return CC("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(n),{timeout:2e3,json:!0}).then(function(i){var o=sn.default.get(i.body,"shorturl");o&&console.log(`AI Tips:
|
|
42
42
|
You can try to solve the problem through: `.concat(In.underline(o),`
|
|
43
|
-
`))}).catch(function(){})},PC=function(r,n){return hu(void 0,void 0,void 0,function(){var i,o,a,u,p,g,m,c,_,C,I,R;return pu(this,function(k){switch(k.label){case 0:if(i={traceId:"",catchableError:!1},o=function(){try{return OC().replace(/:/g,"")}catch{return"unknown"}},a=(0,RC.getConfig)("analysis"),a!=="disable"&&(i.traceId="".concat(o()).concat(Date.now())),u=Jh?Jh():void 0,u)return console.log(r),[2,i];p=r.message?r.message:"";try{g=JSON.parse(p)}catch{}return g&&g.tips?(m="Message: ".concat(g.message,`
|
|
44
|
-
`)
|
|
43
|
+
`))}).catch(function(){})},PC=function(r,n){return hu(void 0,void 0,void 0,function(){var i,o,a,u,p,g,m,c,_,C,I,R;return pu(this,function(k){switch(k.label){case 0:if(i={traceId:"",catchableError:!1},o=function(){try{return OC().replace(/:/g,"")}catch{return"unknown"}},a=(0,RC.getConfig)("analysis"),a!=="disable"&&(i.traceId="".concat(o()).concat(Date.now())),u=Jh?Jh():void 0,u)return console.log(r),[2,i];p=r.message?r.message:"";try{g=JSON.parse(p)}catch{}return g&&g.tips?(m=g.message?"Message: ".concat(g.message,`
|
|
44
|
+
`):"",c=g.tips?"* ".concat(bC(g.tips.replace(/\n/,`
|
|
45
45
|
* `))):"",SC.log(`
|
|
46
46
|
`.concat(In.hex("#000").bgYellow("WARNING:"),`
|
|
47
47
|
======================
|
|
@@ -38,10 +38,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
38
38
|
`.concat(Mh.hex("#000").bgYellow("WARNING:"))),console.log("".concat(i,`
|
|
39
39
|
`)),o&&console.log("".concat(Mh.gray(o),`
|
|
40
40
|
`))}return n}();rn.HumanWarning=Kb});var sn=T(ie=>{"use strict";var Zb=ie&&ie.__awaiter||function(n,r,i,o){function a(u){return u instanceof i?u:new i(function(p){p(u)})}return new(i||(i=Promise))(function(u,p){function g(_){try{c(o.next(_))}catch(C){p(C)}}function m(_){try{c(o.throw(_))}catch(C){p(C)}}function c(_){_.done?u(_.value):a(_.value).then(g,m)}c((o=o.apply(n,r||[])).next())})},Jb=ie&&ie.__generator||function(n,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,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 m([c,_])}}function m(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=c[0]&2?a.return:c[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,c[1])).done)return u;switch(a=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,a=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(n,i)}catch(_){c=[6,_],a=0}finally{o=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Qb=ie&&ie.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(ie,"__esModule",{value:!0});ie.HandleError=ie.HumanWarning=ie.HumanError=ie.ServerlessError=ie.InitError=ie.ConfigGetError=ie.ConfigError=ie.ConfigDeleteError=ie.CommandError=void 0;var eC=Wt(),Hh=Qb(Ie()),tC=Wt(),nn=Hh.default.colors,rC=Hh.default.report,nC=Ph();Object.defineProperty(ie,"CommandError",{enumerable:!0,get:function(){return nC.CommandError}});var iC=Lh();Object.defineProperty(ie,"ConfigDeleteError",{enumerable:!0,get:function(){return iC.ConfigDeleteError}});var sC=Dh();Object.defineProperty(ie,"ConfigError",{enumerable:!0,get:function(){return sC.ConfigError}});var oC=Nh();Object.defineProperty(ie,"ConfigGetError",{enumerable:!0,get:function(){return oC.ConfigGetError}});var uC=qh();Object.defineProperty(ie,"InitError",{enumerable:!0,get:function(){return uC.InitError}});var aC=xr();Object.defineProperty(ie,"ServerlessError",{enumerable:!0,get:function(){return aC.ServerlessError}});var lC=Fh();Object.defineProperty(ie,"HumanError",{enumerable:!0,get:function(){return lC.HumanError}});var cC=jh();Object.defineProperty(ie,"HumanWarning",{enumerable:!0,get:function(){return cC.HumanWarning}});function uu(n,r){return"".concat(nn.gray(n)).concat(nn.gray.underline(r))}var fC=function(n){return Zb(void 0,void 0,void 0,function(){var r,i,o,a,u,p;return Jb(this,function(g){switch(g.label){case 0:return r=n.error,i=n.prefix,o=i===void 0?"Message:":i,[4,(0,tC.getErrorMessage)(r,o)];case 1:return a=g.sent(),u=a.traceId,p=a.catchableError,p||(u&&console.log(nn.gray("TraceId: ".concat(u))),console.log(nn.gray("Environment: ".concat((0,eC.getVersion)()))),console.log(uu("Documents: ","https://www.serverless-devs.com")),console.log(uu("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(uu("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
|
|
41
|
-
`)),u&&console.log(nn.gray("Please copy traceId: ".concat(u," and join Dingding group: 33947367 for consultation.")))),console.log(nn.gray("You can run 's clean --all' to clean Serverless devs.")),u
|
|
41
|
+
`)),u&&console.log(nn.gray("Please copy traceId: ".concat(u," and join Dingding group: 33947367 for consultation.")))),console.log(nn.gray("You can run 's clean --all' to clean Serverless devs.")),u&&!p?[4,rC({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:u})]:[3,3];case 2:g.sent(),g.label=3;case 3:return[2]}})})};ie.HandleError=fC});var Uh=T((vx,hC)=>{hC.exports={name:"@serverless-devs/s",version:"2.0.99",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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 cs=T(Bt=>{"use strict";var Gh=Bt&&Bt.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getHistoryFile=Bt.getHomeDir=void 0;var pC=Gh(require("path")),Wh=Gh(Ie()),ls=Wh.default.fse,dC=Wh.default.getRootHome;function au(){var n=dC();return ls.existsSync(n)||ls.mkdirSync(n),n}Bt.getHomeDir=au;function Bh(){var n=pC.default.join(au(),"history");return ls.existsSync(n)||ls.createFileSync(n),n}Bt.getHistoryFile=Bh;Bt.default={getHomeDir:au,getHistoryFile:Bh}});var hs=T(Ne=>{"use strict";var gC=Ne&&Ne.__awaiter||function(n,r,i,o){function a(u){return u instanceof i?u:new i(function(p){p(u)})}return new(i||(i=Promise))(function(u,p){function g(_){try{c(o.next(_))}catch(C){p(C)}}function m(_){try{c(o.throw(_))}catch(C){p(C)}}function c(_){_.done?u(_.value):a(_.value).then(g,m)}c((o=o.apply(n,r||[])).next())})},vC=Ne&&Ne.__generator||function(n,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,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 m([c,_])}}function m(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=c[0]&2?a.return:c[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,c[1])).done)return u;switch(a=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,a=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(n,i)}catch(_){c=[6,_],a=0}finally{o=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},lu=Ne&&Ne.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.handlerProfileFile=Ne.getConfig=Ne.setConfig=void 0;var kh=lu(require("path")),mC=lu(cs()),cu=lu(Ie()),St=cu.default.fse,fs=cu.default.jsyaml,Vh=cu.default.getRootHome;function _C(n){var r=Xh();St.writeFileSync(r,fs.dump(n))}function zh(){var n=Xh();if(!St.existsSync(n))return{};try{var r=fs.load(St.readFileSync(n,"utf8"))||{};return r}catch(i){throw i}}function Xh(){var n=kh.default.join(mC.default.getHomeDir(),"set-config.yml");return St.existsSync(n)||St.createFileSync(n),n}function Yh(n,r){var i=zh();i[n]=r,_C(i)}Ne.setConfig=Yh;function Kh(n,r){var i=zh();return i[n]||r}Ne.getConfig=Kh;function Zh(n){return gC(this,void 0,void 0,function(){var r,i,o,a,u,p,g;return vC(this,function(m){switch(m.label){case 0:if(r=n.filePath||"set-config.yml",i=kh.default.join(Vh(),r),o=St.existsSync(i),a={},o)return[3,5];u=Vh(),m.label=1;case 1:return m.trys.push([1,2,,4]),St.statSync(u),[3,4];case 2:return p=m.sent(),[4,St.mkdirSync(u)];case 3:return m.sent(),[3,4];case 4:return[3,6];case 5:try{a=fs.load(St.readFileSync(i,"utf8"))||{}}catch(c){throw c}m.label=6;case 6:return n.read?[2,a]:(g=n.configKey||"",a[g]=n.data,[4,St.writeFileSync(i,fs.dump(a))]);case 7:return m.sent(),[2,a]}})})}Ne.handlerProfileFile=Zh;Ne.default={setConfig:Yh,getConfig:Kh,handlerProfileFile:Zh}});var Wt=T(j=>{"use strict";var yC=j&&j.__createBinding||(Object.create?function(n,r,i,o){o===void 0&&(o=i),Object.defineProperty(n,o,{enumerable:!0,get:function(){return r[i]}})}:function(n,r,i,o){o===void 0&&(o=i),n[o]=r[i]}),EC=j&&j.__setModuleDefault||(Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r}),wC=j&&j.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&yC(r,n,i);return EC(r,n),r},fu=j&&j.__awaiter||function(n,r,i,o){function a(u){return u instanceof i?u:new i(function(p){p(u)})}return new(i||(i=Promise))(function(u,p){function g(_){try{c(o.next(_))}catch(C){p(C)}}function m(_){try{c(o.throw(_))}catch(C){p(C)}}function c(_){_.done?u(_.value):a(_.value).then(g,m)}c((o=o.apply(n,r||[])).next())})},hu=j&&j.__generator||function(n,r){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,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 m([c,_])}}function m(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=c[0]&2?a.return:c[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,c[1])).done)return u;switch(a=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,a=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(n,i)}catch(_){c=[6,_],a=0}finally{o=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ps=j&&j.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(j,"__esModule",{value:!0});j.emoji=j.mark=j.replaceTemplate=j.getTemplatekey=j.replaceFun=j.getLang=j.printn=j.checkTemplateFile=j.checkAndReturnTemplateFile=j.yamlLoad=j.getFolderSize=j.getVersion=j.getErrorMessage=j.bgRed=j.yellow=j.red=void 0;var Ee=ps(require("path")),Ke=ps(require("fs")),ir=ps(Yr()),bC=ps(require("os")),CC=sn(),ft=wC(Ie()),Ar=ft.default.colors,SC=ft.default.jsyaml,OC=ft.default.makeUnderLine,xC=ft.default.got,AC=ft.default.Logger,Jh=ft.default.isDebugMode,IC=ft.default.getMAC,RC=ft.default.getYamlContent,TC=ft.default.isDocker,PC=ft.default.isCiCdEnv,Qh=Uh(),LC=hs();j.red=Ar.hex("#fd5750");j.yellow=Ar.hex("#F3F99D");j.bgRed=Ar.hex("#000").bgHex("#fd5750");var DC=function(n,r){if(!(TC()||PC()))return xC("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(n,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0}).then(function(i){var o=ir.default.get(i.body,"shorturl");o&&console.log(`AI Tips:
|
|
42
42
|
You can try to solve the problem through: `.concat(Ar.underline(o),`
|
|
43
|
-
`))}).catch(function(){})},NC=function(n,r){return fu(void 0,void 0,void 0,function(){var i,o,a,u,p,g,m,c,_,C,I,R;return hu(this,function(k){switch(k.label){case 0:if(i={traceId:"",catchableError:!1},o=function(){try{return IC().replace(/:/g,"")}catch{return"unknown"}},a=(0,LC.getConfig)("analysis"),a!=="disable"&&(i.traceId="".concat(o()).concat(Date.now())),u=Jh?Jh():void 0,u)return console.log(n),[2,i];p=n.message?n.message:"";try{g=JSON.parse(p)}catch{}return g&&g.tips?(m="Message: ".concat(g.message,`
|
|
44
|
-
`)
|
|
43
|
+
`))}).catch(function(){})},NC=function(n,r){return fu(void 0,void 0,void 0,function(){var i,o,a,u,p,g,m,c,_,C,I,R;return hu(this,function(k){switch(k.label){case 0:if(i={traceId:"",catchableError:!1},o=function(){try{return IC().replace(/:/g,"")}catch{return"unknown"}},a=(0,LC.getConfig)("analysis"),a!=="disable"&&(i.traceId="".concat(o()).concat(Date.now())),u=Jh?Jh():void 0,u)return console.log(n),[2,i];p=n.message?n.message:"";try{g=JSON.parse(p)}catch{}return g&&g.tips?(m=g.message?"Message: ".concat(g.message,`
|
|
44
|
+
`):"",c=g.tips?"* ".concat(OC(g.tips.replace(/\n/,`
|
|
45
45
|
* `))):"",AC.log(`
|
|
46
46
|
`.concat(Ar.hex("#000").bgYellow("WARNING:"),`
|
|
47
47
|
======================
|
|
@@ -31,10 +31,10 @@ __p += '`),Y&&(R+=`' +
|
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+R+`return __p
|
|
34
|
-
}`;var B=ol(function(){return k(h,P+"return "+R).apply(i,g)});if(B.source=R,Ys(B))throw B;return B}function lm(e){return Z(e).toLowerCase()}function fm(e){return Z(e).toUpperCase()}function cm(e,t,n){if(e=Z(e),e&&(n||t===i))return _o(e);if(!e||!(t=Ne(t)))return e;var u=Je(e),f=Je(t),h=vo(u,f),g=mo(u,f)+1;return qt(u,h,g).join("")}function hm(e,t,n){if(e=Z(e),e&&(n||t===i))return e.slice(0,yo(e)+1);if(!e||!(t=Ne(t)))return e;var u=Je(e),f=mo(u,Je(t))+1;return qt(u,0,f).join("")}function pm(e,t,n){if(e=Z(e),e&&(n||t===i))return e.replace(Yi,"");if(!e||!(t=Ne(t)))return e;var u=Je(e),f=vo(u,Je(t));return qt(u,f).join("")}function gm(e,t){var n=oh,u=ah;if(ie(t)){var f="separator"in t?t.separator:f;n="length"in t?U(t.length):n,u="omission"in t?Ne(t.omission):u}e=Z(e);var h=e.length;if(gn(e)){var g=Je(e);h=g.length}if(n>=h)return e;var d=n-dn(u);if(d<1)return u;var m=g?qt(g,0,d).join(""):e.slice(0,d);if(f===i)return m+u;if(g&&(d+=m.length-d),Ks(f)){if(e.slice(d).search(f)){var O,S=m;for(f.global||(f=cs(f.source,Z(Fu.exec(f))+"g")),f.lastIndex=0;O=f.exec(S);)var R=O.index;m=m.slice(0,R===i?d:R)}}else if(e.indexOf(Ne(f),d)!=d){var b=m.lastIndexOf(f);b>-1&&(m=m.slice(0,b))}return m+u}function dm(e){return e=Z(e),e&&Rh.test(e)?e.replace(Pu,Xp):e}var _m=wn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Js=aa("toUpperCase");function ul(e,t,n){return e=Z(e),t=n?i:t,t===i?Hp(e)?jp(e):Tp(e):e.match(t)||[]}var ol=z(function(e,t){try{return Le(e,i,t)}catch(n){return Ys(n)?n:new W(n)}}),vm=Et(function(e,t){return He(t,function(n){n=at(n),vt(e,n,Vs(e[n],e))}),e});function mm(e){var t=e==null?0:e.length,n=q();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new We(l);return[n(u[0]),u[1]]}):[],z(function(u){for(var f=-1;++f<t;){var h=e[f];if(Le(h[0],this,u))return Le(h[1],this,u)}})}function Em(e){return Xg(Ue(e,p))}function Qs(e){return function(){return e}}function ym(e,t){return e==null||e!==e?t:e}var wm=fa(),xm=fa(!0);function Te(e){return e}function eu(e){return Wo(typeof e=="function"?e:Ue(e,p))}function Am(e){return Uo(Ue(e,p))}function Om(e,t){return Bo(e,Ue(t,p))}var Sm=z(function(e,t){return function(n){return Qn(n,e,t)}}),Rm=z(function(e,t){return function(n){return Qn(e,n,t)}});function tu(e,t,n){var u=pe(t),f=Jr(t,u);n==null&&!(ie(t)&&(f.length||!u.length))&&(n=t,t=e,e=this,f=Jr(t,pe(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=wt(e);return He(f,function(d){var m=t[d];e[d]=m,g&&(e.prototype[d]=function(){var O=this.__chain__;if(h||O){var S=e(this.__wrapped__),R=S.__actions__=Ie(this.__actions__);return R.push({func:m,args:arguments,thisArg:e}),S.__chain__=O,S}return m.apply(e,Ct([this.value()],arguments))})}),e}function Im(){return he._===this&&(he._=Qp),this}function nu(){}function bm(e){return e=U(e),z(function(t){return Xo(t,e)})}var Cm=Ns(re),Tm=Ns(fo),Lm=Ns(is);function al(e){return Ws(e)?ss(at(e)):od(e)}function $m(e){return function(t){return e==null?i:Vt(e,t)}}var Nm=ha(),Pm=ha(!0);function ru(){return[]}function iu(){return!1}function Dm(){return{}}function qm(){return""}function Fm(){return!0}function Mm(e,t){if(e=U(e),e<1||e>It)return[];var n=st,u=me(e,st);t=q(t),e-=st;for(var f=as(u,t);++n<e;)t(n);return f}function Hm(e){return G(e)?re(e,at):Pe(e)?[e]:Ie(ba(Z(e)))}function Wm(e){var t=++Zp;return Z(e)+t}var Gm=ii(function(e,t){return e+t},0),Um=Ps("ceil"),Bm=ii(function(e,t){return e/t},1),Xm=Ps("floor");function zm(e){return e&&e.length?Zr(e,Te,Es):i}function Vm(e,t){return e&&e.length?Zr(e,q(t,2),Es):i}function jm(e){return po(e,Te)}function Ym(e,t){return po(e,q(t,2))}function Km(e){return e&&e.length?Zr(e,Te,As):i}function km(e,t){return e&&e.length?Zr(e,q(t,2),As):i}var Zm=ii(function(e,t){return e*t},1),Jm=Ps("round"),Qm=ii(function(e,t){return e-t},0);function e1(e){return e&&e.length?os(e,Te):0}function t1(e,t){return e&&e.length?os(e,q(t,2)):0}return c.after=Av,c.ary=Ha,c.assign=f0,c.assignIn=Qa,c.assignInWith=vi,c.assignWith=c0,c.at=h0,c.before=Wa,c.bind=Vs,c.bindAll=vm,c.bindKey=Ga,c.castArray=Dv,c.chain=qa,c.chunk=Xd,c.compact=zd,c.concat=Vd,c.cond=mm,c.conforms=Em,c.constant=Qs,c.countBy=ev,c.create=p0,c.curry=Ua,c.curryRight=Ba,c.debounce=Xa,c.defaults=g0,c.defaultsDeep=d0,c.defer=Ov,c.delay=Sv,c.difference=jd,c.differenceBy=Yd,c.differenceWith=Kd,c.drop=kd,c.dropRight=Zd,c.dropRightWhile=Jd,c.dropWhile=Qd,c.fill=e_,c.filter=nv,c.flatMap=sv,c.flatMapDeep=uv,c.flatMapDepth=ov,c.flatten=$a,c.flattenDeep=t_,c.flattenDepth=n_,c.flip=Rv,c.flow=wm,c.flowRight=xm,c.fromPairs=r_,c.functions=x0,c.functionsIn=A0,c.groupBy=av,c.initial=s_,c.intersection=u_,c.intersectionBy=o_,c.intersectionWith=a_,c.invert=S0,c.invertBy=R0,c.invokeMap=fv,c.iteratee=eu,c.keyBy=cv,c.keys=pe,c.keysIn=Ce,c.map=ci,c.mapKeys=b0,c.mapValues=C0,c.matches=Am,c.matchesProperty=Om,c.memoize=pi,c.merge=T0,c.mergeWith=el,c.method=Sm,c.methodOf=Rm,c.mixin=tu,c.negate=gi,c.nthArg=bm,c.omit=L0,c.omitBy=$0,c.once=Iv,c.orderBy=hv,c.over=Cm,c.overArgs=bv,c.overEvery=Tm,c.overSome=Lm,c.partial=js,c.partialRight=za,c.partition=pv,c.pick=N0,c.pickBy=tl,c.property=al,c.propertyOf=$m,c.pull=h_,c.pullAll=Pa,c.pullAllBy=p_,c.pullAllWith=g_,c.pullAt=d_,c.range=Nm,c.rangeRight=Pm,c.rearg=Cv,c.reject=_v,c.remove=__,c.rest=Tv,c.reverse=Xs,c.sampleSize=mv,c.set=D0,c.setWith=q0,c.shuffle=Ev,c.slice=v_,c.sortBy=xv,c.sortedUniq=O_,c.sortedUniqBy=S_,c.split=sm,c.spread=Lv,c.tail=R_,c.take=I_,c.takeRight=b_,c.takeRightWhile=C_,c.takeWhile=T_,c.tap=z_,c.throttle=$v,c.thru=fi,c.toArray=ka,c.toPairs=nl,c.toPairsIn=rl,c.toPath=Hm,c.toPlainObject=Ja,c.transform=F0,c.unary=Nv,c.union=L_,c.unionBy=$_,c.unionWith=N_,c.uniq=P_,c.uniqBy=D_,c.uniqWith=q_,c.unset=M0,c.unzip=zs,c.unzipWith=Da,c.update=H0,c.updateWith=W0,c.values=On,c.valuesIn=G0,c.without=F_,c.words=ul,c.wrap=Pv,c.xor=M_,c.xorBy=H_,c.xorWith=W_,c.zip=G_,c.zipObject=U_,c.zipObjectDeep=B_,c.zipWith=X_,c.entries=nl,c.entriesIn=rl,c.extend=Qa,c.extendWith=vi,tu(c,c),c.add=Gm,c.attempt=ol,c.camelCase=z0,c.capitalize=il,c.ceil=Um,c.clamp=U0,c.clone=qv,c.cloneDeep=Mv,c.cloneDeepWith=Hv,c.cloneWith=Fv,c.conformsTo=Wv,c.deburr=sl,c.defaultTo=ym,c.divide=Bm,c.endsWith=V0,c.eq=et,c.escape=j0,c.escapeRegExp=Y0,c.every=tv,c.find=rv,c.findIndex=Ta,c.findKey=_0,c.findLast=iv,c.findLastIndex=La,c.findLastKey=v0,c.floor=Xm,c.forEach=Fa,c.forEachRight=Ma,c.forIn=m0,c.forInRight=E0,c.forOwn=y0,c.forOwnRight=w0,c.get=ks,c.gt=Gv,c.gte=Uv,c.has=O0,c.hasIn=Zs,c.head=Na,c.identity=Te,c.includes=lv,c.indexOf=i_,c.inRange=B0,c.invoke=I0,c.isArguments=Kt,c.isArray=G,c.isArrayBuffer=Bv,c.isArrayLike=be,c.isArrayLikeObject=oe,c.isBoolean=Xv,c.isBuffer=Ft,c.isDate=zv,c.isElement=Vv,c.isEmpty=jv,c.isEqual=Yv,c.isEqualWith=Kv,c.isError=Ys,c.isFinite=kv,c.isFunction=wt,c.isInteger=Va,c.isLength=di,c.isMap=ja,c.isMatch=Zv,c.isMatchWith=Jv,c.isNaN=Qv,c.isNative=e0,c.isNil=n0,c.isNull=t0,c.isNumber=Ya,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=sr,c.isRegExp=Ks,c.isSafeInteger=r0,c.isSet=Ka,c.isString=_i,c.isSymbol=Pe,c.isTypedArray=An,c.isUndefined=i0,c.isWeakMap=s0,c.isWeakSet=u0,c.join=l_,c.kebabCase=K0,c.last=Xe,c.lastIndexOf=f_,c.lowerCase=k0,c.lowerFirst=Z0,c.lt=o0,c.lte=a0,c.max=zm,c.maxBy=Vm,c.mean=jm,c.meanBy=Ym,c.min=Km,c.minBy=km,c.stubArray=ru,c.stubFalse=iu,c.stubObject=Dm,c.stubString=qm,c.stubTrue=Fm,c.multiply=Zm,c.nth=c_,c.noConflict=Im,c.noop=nu,c.now=hi,c.pad=J0,c.padEnd=Q0,c.padStart=em,c.parseInt=tm,c.random=X0,c.reduce=gv,c.reduceRight=dv,c.repeat=nm,c.replace=rm,c.result=P0,c.round=Jm,c.runInContext=v,c.sample=vv,c.size=yv,c.snakeCase=im,c.some=wv,c.sortedIndex=m_,c.sortedIndexBy=E_,c.sortedIndexOf=y_,c.sortedLastIndex=w_,c.sortedLastIndexBy=x_,c.sortedLastIndexOf=A_,c.startCase=um,c.startsWith=om,c.subtract=Qm,c.sum=e1,c.sumBy=t1,c.template=am,c.times=Mm,c.toFinite=xt,c.toInteger=U,c.toLength=Za,c.toLower=lm,c.toNumber=ze,c.toSafeInteger=l0,c.toString=Z,c.toUpper=fm,c.trim=cm,c.trimEnd=hm,c.trimStart=pm,c.truncate=gm,c.unescape=dm,c.uniqueId=Wm,c.upperCase=_m,c.upperFirst=Js,c.each=Fa,c.eachRight=Ma,c.first=Na,tu(c,function(){var e={};return ut(c,function(t,n){J.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,He(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),He(["drop","take"],function(e,t){j.prototype[e]=function(n){n=n===i?1:ce(U(n),0);var u=this.__filtered__&&!t?new j(this):this.clone();return u.__filtered__?u.__takeCount__=me(n,u.__takeCount__):u.__views__.push({size:me(n,st),type:e+(u.__dir__<0?"Right":"")}),u},j.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),He(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Lu||n==hh;j.prototype[e]=function(f){var h=this.clone();return h.__iteratees__.push({iteratee:q(f,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),He(["head","last"],function(e,t){var n="take"+(t?"Right":"");j.prototype[e]=function(){return this[n](1).value()[0]}}),He(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");j.prototype[e]=function(){return this.__filtered__?new j(this):this[n](1)}}),j.prototype.compact=function(){return this.filter(Te)},j.prototype.find=function(e){return this.filter(e).head()},j.prototype.findLast=function(e){return this.reverse().find(e)},j.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new j(this):this.map(function(n){return Qn(n,e,t)})}),j.prototype.reject=function(e){return this.filter(gi(q(e)))},j.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new j(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=U(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},j.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},j.prototype.toArray=function(){return this.take(st)},ut(j.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),f=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!f||(c.prototype[t]=function(){var g=this.__wrapped__,d=u?[1]:arguments,m=g instanceof j,O=d[0],S=m||G(g),R=function(V){var Y=f.apply(c,Ct([V],d));return u&&b?Y[0]:Y};S&&n&&typeof O=="function"&&O.length!=1&&(m=S=!1);var b=this.__chain__,P=!!this.__actions__.length,F=h&&!b,B=m&&!P;if(!h&&S){g=B?g:new j(this);var M=e.apply(g,d);return M.__actions__.push({func:fi,args:[R],thisArg:i}),new Ge(M,b)}return F&&B?e.apply(this,d):(M=this.thru(R),F?u?M.value()[0]:M.value():M)})}),He(["pop","push","shift","sort","splice","unshift"],function(e){var t=qr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var f=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],f)}return this[n](function(g){return t.apply(G(g)?g:[],f)})}}),ut(j.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";J.call(mn,u)||(mn[u]=[]),mn[u].push({name:t,func:n})}}),mn[ri(i,ht).name]=[{name:"wrapper",func:i}],j.prototype.clone=dg,j.prototype.reverse=_g,j.prototype.value=vg,c.prototype.at=V_,c.prototype.chain=j_,c.prototype.commit=Y_,c.prototype.next=K_,c.prototype.plant=Z_,c.prototype.reverse=J_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=Q_,c.prototype.first=c.prototype.head,Vn&&(c.prototype[Vn]=k_),c},Lt=Yp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(he._=Lt,define(function(){return Lt})):Gt?((Gt.exports=Lt)._=Lt,es._=Lt):he._=Lt}).call(Sn)});var lr=L((Xw,El)=>{var i1="2.0.0",s1=256,u1=Number.MAX_SAFE_INTEGER||9007199254740991,o1=16;El.exports={SEMVER_SPEC_VERSION:i1,MAX_LENGTH:s1,MAX_SAFE_INTEGER:u1,MAX_SAFE_COMPONENT_LENGTH:o1}});var fr=L((zw,yl)=>{var a1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};yl.exports=a1});var Jt=L((Mt,wl)=>{var{MAX_SAFE_COMPONENT_LENGTH:au}=lr(),l1=fr();Mt=wl.exports={};var f1=Mt.re=[],$=Mt.src=[],N=Mt.t={},c1=0,X=(i,r,s)=>{let o=c1++;l1(o,r),N[i]=o,$[o]=r,f1[o]=new RegExp(r,s?"g":void 0)};X("NUMERICIDENTIFIER","0|[1-9]\\d*");X("NUMERICIDENTIFIERLOOSE","[0-9]+");X("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");X("MAINVERSION",`(${$[N.NUMERICIDENTIFIER]})\\.(${$[N.NUMERICIDENTIFIER]})\\.(${$[N.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${$[N.NUMERICIDENTIFIERLOOSE]})\\.(${$[N.NUMERICIDENTIFIERLOOSE]})\\.(${$[N.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${$[N.NUMERICIDENTIFIER]}|${$[N.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${$[N.NUMERICIDENTIFIERLOOSE]}|${$[N.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${$[N.PRERELEASEIDENTIFIER]}(?:\\.${$[N.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${$[N.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${$[N.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER","[0-9A-Za-z-]+");X("BUILD",`(?:\\+(${$[N.BUILDIDENTIFIER]}(?:\\.${$[N.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${$[N.MAINVERSION]}${$[N.PRERELEASE]}?${$[N.BUILD]}?`);X("FULL",`^${$[N.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${$[N.MAINVERSIONLOOSE]}${$[N.PRERELEASELOOSE]}?${$[N.BUILD]}?`);X("LOOSE",`^${$[N.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${$[N.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${$[N.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${$[N.XRANGEIDENTIFIER]})(?:\\.(${$[N.XRANGEIDENTIFIER]})(?:\\.(${$[N.XRANGEIDENTIFIER]})(?:${$[N.PRERELEASE]})?${$[N.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${$[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[N.XRANGEIDENTIFIERLOOSE]})(?:${$[N.PRERELEASELOOSE]})?${$[N.BUILD]}?)?)?`);X("XRANGE",`^${$[N.GTLT]}\\s*${$[N.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${$[N.GTLT]}\\s*${$[N.XRANGEPLAINLOOSE]}$`);X("COERCE",`(^|[^\\d])(\\d{1,${au}})(?:\\.(\\d{1,${au}}))?(?:\\.(\\d{1,${au}}))?(?:$|[^\\d])`);X("COERCERTL",$[N.COERCE],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${$[N.LONETILDE]}\\s+`,!0);Mt.tildeTrimReplace="$1~";X("TILDE",`^${$[N.LONETILDE]}${$[N.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${$[N.LONETILDE]}${$[N.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${$[N.LONECARET]}\\s+`,!0);Mt.caretTrimReplace="$1^";X("CARET",`^${$[N.LONECARET]}${$[N.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${$[N.LONECARET]}${$[N.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${$[N.GTLT]}\\s*(${$[N.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${$[N.GTLT]}\\s*(${$[N.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${$[N.GTLT]}\\s*(${$[N.LOOSEPLAIN]}|${$[N.XRANGEPLAIN]})`,!0);Mt.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${$[N.XRANGEPLAIN]})\\s+-\\s+(${$[N.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${$[N.XRANGEPLAINLOOSE]})\\s+-\\s+(${$[N.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0.0.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var cr=L((Vw,xl)=>{var h1=["includePrerelease","loose","rtl"],p1=i=>i?typeof i!="object"?{loose:!0}:h1.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};xl.exports=p1});var Ei=L((jw,Sl)=>{var Al=/^[0-9]+$/,Ol=(i,r)=>{let s=Al.test(i),o=Al.test(r);return s&&o&&(i=+i,r=+r),i===r?0:s&&!o?-1:o&&!s?1:i<r?-1:1},g1=(i,r)=>Ol(r,i);Sl.exports={compareIdentifiers:Ol,rcompareIdentifiers:g1}});var ye=L((Yw,Cl)=>{var yi=fr(),{MAX_LENGTH:Rl,MAX_SAFE_INTEGER:wi}=lr(),{re:Il,t:bl}=Jt(),d1=cr(),{compareIdentifiers:hr}=Ei(),Ve=class{constructor(r,s){if(s=d1(s),r instanceof Ve){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>Rl)throw new TypeError(`version is longer than ${Rl} characters`);yi("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let o=r.trim().match(s.loose?Il[bl.LOOSE]:Il[bl.FULL]);if(!o)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>wi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>wi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>wi||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(l=>{if(/^[0-9]+$/.test(l)){let a=+l;if(a>=0&&a<wi)return a}return l}):this.prerelease=[],this.build=o[5]?o[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(yi("SemVer.compare",this.version,this.options,r),!(r instanceof Ve)){if(typeof r=="string"&&r===this.version)return 0;r=new Ve(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Ve||(r=new Ve(r,this.options)),hr(this.major,r.major)||hr(this.minor,r.minor)||hr(this.patch,r.patch)}comparePre(r){if(r instanceof Ve||(r=new Ve(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 s=0;do{let o=this.prerelease[s],l=r.prerelease[s];if(yi("prerelease compare",s,o,l),o===void 0&&l===void 0)return 0;if(l===void 0)return 1;if(o===void 0)return-1;if(o===l)continue;return hr(o,l)}while(++s)}compareBuild(r){r instanceof Ve||(r=new Ve(r,this.options));let s=0;do{let o=this.build[s],l=r.build[s];if(yi("prerelease compare",s,o,l),o===void 0&&l===void 0)return 0;if(l===void 0)return 1;if(o===void 0)return-1;if(o===l)continue;return hr(o,l)}while(++s)}inc(r,s){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s),this.inc("pre",s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s),this.inc("pre",s);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 o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);o===-1&&this.prerelease.push(0)}s&&(this.prerelease[0]===s?isNaN(this.prerelease[1])&&(this.prerelease=[s,0]):this.prerelease=[s,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}};Cl.exports=Ve});var Qt=L((Kw,Nl)=>{var{MAX_LENGTH:_1}=lr(),{re:Tl,t:Ll}=Jt(),$l=ye(),v1=cr(),m1=(i,r)=>{if(r=v1(r),i instanceof $l)return i;if(typeof i!="string"||i.length>_1||!(r.loose?Tl[Ll.LOOSE]:Tl[Ll.FULL]).test(i))return null;try{return new $l(i,r)}catch{return null}};Nl.exports=m1});var Dl=L((kw,Pl)=>{var E1=Qt(),y1=(i,r)=>{let s=E1(i,r);return s?s.version:null};Pl.exports=y1});var Fl=L((Zw,ql)=>{var w1=Qt(),x1=(i,r)=>{let s=w1(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};ql.exports=x1});var Hl=L((Jw,Ml)=>{var A1=ye(),O1=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new A1(i,s).inc(r,o).version}catch{return null}};Ml.exports=O1});var je=L((Qw,Gl)=>{var Wl=ye(),S1=(i,r,s)=>new Wl(i,s).compare(new Wl(r,s));Gl.exports=S1});var xi=L((ex,Ul)=>{var R1=je(),I1=(i,r,s)=>R1(i,r,s)===0;Ul.exports=I1});var zl=L((tx,Xl)=>{var Bl=Qt(),b1=xi(),C1=(i,r)=>{if(b1(i,r))return null;{let s=Bl(i),o=Bl(r),l=s.prerelease.length||o.prerelease.length,a=l?"pre":"",_=l?"prerelease":"";for(let E in s)if((E==="major"||E==="minor"||E==="patch")&&s[E]!==o[E])return a+E;return _}};Xl.exports=C1});var jl=L((nx,Vl)=>{var T1=ye(),L1=(i,r)=>new T1(i,r).major;Vl.exports=L1});var Kl=L((rx,Yl)=>{var $1=ye(),N1=(i,r)=>new $1(i,r).minor;Yl.exports=N1});var Zl=L((ix,kl)=>{var P1=ye(),D1=(i,r)=>new P1(i,r).patch;kl.exports=D1});var Ql=L((sx,Jl)=>{var q1=Qt(),F1=(i,r)=>{let s=q1(i,r);return s&&s.prerelease.length?s.prerelease:null};Jl.exports=F1});var tf=L((ux,ef)=>{var M1=je(),H1=(i,r,s)=>M1(r,i,s);ef.exports=H1});var rf=L((ox,nf)=>{var W1=je(),G1=(i,r)=>W1(i,r,!0);nf.exports=G1});var Ai=L((ax,uf)=>{var sf=ye(),U1=(i,r,s)=>{let o=new sf(i,s),l=new sf(r,s);return o.compare(l)||o.compareBuild(l)};uf.exports=U1});var af=L((lx,of)=>{var B1=Ai(),X1=(i,r)=>i.sort((s,o)=>B1(s,o,r));of.exports=X1});var ff=L((fx,lf)=>{var z1=Ai(),V1=(i,r)=>i.sort((s,o)=>z1(o,s,r));lf.exports=V1});var pr=L((cx,cf)=>{var j1=je(),Y1=(i,r,s)=>j1(i,r,s)>0;cf.exports=Y1});var Oi=L((hx,hf)=>{var K1=je(),k1=(i,r,s)=>K1(i,r,s)<0;hf.exports=k1});var lu=L((px,pf)=>{var Z1=je(),J1=(i,r,s)=>Z1(i,r,s)!==0;pf.exports=J1});var Si=L((gx,gf)=>{var Q1=je(),eE=(i,r,s)=>Q1(i,r,s)>=0;gf.exports=eE});var Ri=L((dx,df)=>{var tE=je(),nE=(i,r,s)=>tE(i,r,s)<=0;df.exports=nE});var fu=L((_x,_f)=>{var rE=xi(),iE=lu(),sE=pr(),uE=Si(),oE=Oi(),aE=Ri(),lE=(i,r,s,o)=>{switch(r){case"===":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i===s;case"!==":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i!==s;case"":case"=":case"==":return rE(i,s,o);case"!=":return iE(i,s,o);case">":return sE(i,s,o);case">=":return uE(i,s,o);case"<":return oE(i,s,o);case"<=":return aE(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};_f.exports=lE});var mf=L((vx,vf)=>{var fE=ye(),cE=Qt(),{re:Ii,t:bi}=Jt(),hE=(i,r)=>{if(i instanceof fE)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;r=r||{};let s=null;if(!r.rtl)s=i.match(Ii[bi.COERCE]);else{let o;for(;(o=Ii[bi.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),Ii[bi.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;Ii[bi.COERCERTL].lastIndex=-1}return s===null?null:cE(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};vf.exports=hE});var yf=L((mx,Ef)=>{"use strict";Ef.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var xf=L((Ex,wf)=>{"use strict";wf.exports=K;K.Node=en;K.create=K;function K(i){var r=this;if(r instanceof K||(r=new K),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(l){r.push(l)});else if(arguments.length>0)for(var s=0,o=arguments.length;s<o;s++)r.push(arguments[s]);return r}K.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var r=i.next,s=i.prev;return r&&(r.prev=s),s&&(s.next=r),i===this.head&&(this.head=r),i===this.tail&&(this.tail=s),i.list.length--,i.next=null,i.prev=null,i.list=null,r};K.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++}};K.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++}};K.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)gE(this,arguments[i]);return this.length};K.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)dE(this,arguments[i]);return this.length};K.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}};K.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}};K.prototype.forEach=function(i,r){r=r||this;for(var s=this.head,o=0;s!==null;o++)i.call(r,s.value,o,this),s=s.next};K.prototype.forEachReverse=function(i,r){r=r||this;for(var s=this.tail,o=this.length-1;s!==null;o--)i.call(r,s.value,o,this),s=s.prev};K.prototype.get=function(i){for(var r=0,s=this.head;s!==null&&r<i;r++)s=s.next;if(r===i&&s!==null)return s.value};K.prototype.getReverse=function(i){for(var r=0,s=this.tail;s!==null&&r<i;r++)s=s.prev;if(r===i&&s!==null)return s.value};K.prototype.map=function(i,r){r=r||this;for(var s=new K,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};K.prototype.mapReverse=function(i,r){r=r||this;for(var s=new K,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};K.prototype.reduce=function(i,r){var s,o=this.head;if(arguments.length>1)s=r;else if(this.head)o=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=0;o!==null;l++)s=i(s,o.value,l),o=o.next;return s};K.prototype.reduceReverse=function(i,r){var s,o=this.tail;if(arguments.length>1)s=r;else if(this.tail)o=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=this.length-1;o!==null;l--)s=i(s,o.value,l),o=o.prev;return s};K.prototype.toArray=function(){for(var i=new Array(this.length),r=0,s=this.head;s!==null;r++)i[r]=s.value,s=s.next;return i};K.prototype.toArrayReverse=function(){for(var i=new Array(this.length),r=0,s=this.tail;s!==null;r++)i[r]=s.value,s=s.prev;return i};K.prototype.slice=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new K;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,l=this.head;l!==null&&o<i;o++)l=l.next;for(;l!==null&&o<r;o++,l=l.next)s.push(l.value);return s};K.prototype.sliceReverse=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new K;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,l=this.tail;l!==null&&o>r;o--)l=l.prev;for(;l!==null&&o>i;o--,l=l.prev)s.push(l.value);return s};K.prototype.splice=function(i,r,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var o=0,l=this.head;l!==null&&o<i;o++)l=l.next;for(var a=[],o=0;l&&o<r;o++)a.push(l.value),l=this.removeNode(l);l===null&&(l=this.tail),l!==this.head&&l!==this.tail&&(l=l.prev);for(var o=0;o<s.length;o++)l=pE(this,l,s[o]);return a};K.prototype.reverse=function(){for(var i=this.head,r=this.tail,s=i;s!==null;s=s.prev){var o=s.prev;s.prev=s.next,s.next=o}return this.head=r,this.tail=i,this};function pE(i,r,s){var o=r===i.head?new en(s,null,r,i):new en(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function gE(i,r){i.tail=new en(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function dE(i,r){i.head=new en(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function en(i,r,s,o){if(!(this instanceof en))return new en(i,r,s,o);this.list=o,this.value=i,r?(r.next=this,this.prev=r):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{yf()(K)}catch{}});var Cf=L((yx,bf)=>{"use strict";var _E=xf(),tn=Symbol("max"),Ot=Symbol("length"),Rn=Symbol("lengthCalculator"),gr=Symbol("allowStale"),nn=Symbol("maxAge"),St=Symbol("dispose"),Af=Symbol("noDisposeOnSet"),ge=Symbol("lruList"),nt=Symbol("cache"),Of=Symbol("updateAgeOnGet"),cu=()=>1,Sf=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 s=this[tn]=r.max||1/0,o=r.length||cu;if(this[Rn]=typeof o!="function"?cu:o,this[gr]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[nn]=r.maxAge||0,this[St]=r.dispose,this[Af]=r.noDisposeOnSet||!1,this[Of]=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[tn]=r||1/0,dr(this)}get max(){return this[tn]}set allowStale(r){this[gr]=!!r}get allowStale(){return this[gr]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[nn]=r,dr(this)}get maxAge(){return this[nn]}set lengthCalculator(r){typeof r!="function"&&(r=cu),r!==this[Rn]&&(this[Rn]=r,this[Ot]=0,this[ge].forEach(s=>{s.length=this[Rn](s.value,s.key),this[Ot]+=s.length})),dr(this)}get lengthCalculator(){return this[Rn]}get length(){return this[Ot]}get itemCount(){return this[ge].length}rforEach(r,s){s=s||this;for(let o=this[ge].tail;o!==null;){let l=o.prev;If(this,r,o,s),o=l}}forEach(r,s){s=s||this;for(let o=this[ge].head;o!==null;){let l=o.next;If(this,r,o,s),o=l}}keys(){return this[ge].toArray().map(r=>r.key)}values(){return this[ge].toArray().map(r=>r.value)}reset(){this[St]&&this[ge]&&this[ge].length&&this[ge].forEach(r=>this[St](r.key,r.value)),this[nt]=new Map,this[ge]=new _E,this[Ot]=0}dump(){return this[ge].map(r=>Ci(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[ge]}set(r,s,o){if(o=o||this[nn],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let l=o?Date.now():0,a=this[Rn](s,r);if(this[nt].has(r)){if(a>this[tn])return In(this,this[nt].get(r)),!1;let y=this[nt].get(r).value;return this[St]&&(this[Af]||this[St](r,y.value)),y.now=l,y.maxAge=o,y.value=s,this[Ot]+=a-y.length,y.length=a,this.get(r),dr(this),!0}let _=new Rf(r,s,a,l,o);return _.length>this[tn]?(this[St]&&this[St](r,s),!1):(this[Ot]+=_.length,this[ge].unshift(_),this[nt].set(r,this[ge].head),dr(this),!0)}has(r){if(!this[nt].has(r))return!1;let s=this[nt].get(r).value;return!Ci(this,s)}get(r){return hu(this,r,!0)}peek(r){return hu(this,r,!1)}pop(){let r=this[ge].tail;return r?(In(this,r),r.value):null}del(r){In(this,this[nt].get(r))}load(r){this.reset();let s=Date.now();for(let o=r.length-1;o>=0;o--){let l=r[o],a=l.e||0;if(a===0)this.set(l.k,l.v);else{let _=a-s;_>0&&this.set(l.k,l.v,_)}}}prune(){this[nt].forEach((r,s)=>hu(this,s,!1))}},hu=(i,r,s)=>{let o=i[nt].get(r);if(o){let l=o.value;if(Ci(i,l)){if(In(i,o),!i[gr])return}else s&&(i[Of]&&(o.value.now=Date.now()),i[ge].unshiftNode(o));return l.value}},Ci=(i,r)=>{if(!r||!r.maxAge&&!i[nn])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[nn]&&s>i[nn]},dr=i=>{if(i[Ot]>i[tn])for(let r=i[ge].tail;i[Ot]>i[tn]&&r!==null;){let s=r.prev;In(i,r),r=s}},In=(i,r)=>{if(r){let s=r.value;i[St]&&i[St](s.key,s.value),i[Ot]-=s.length,i[nt].delete(s.key),i[ge].removeNode(r)}},Rf=class{constructor(r,s,o,l,a){this.key=r,this.value=s,this.length=o,this.now=l,this.maxAge=a||0}},If=(i,r,s,o)=>{let l=s.value;Ci(i,l)&&(In(i,s),i[gr]||(l=void 0)),l&&r.call(o,l.value,l.key,i)};bf.exports=Sf});var Ye=L((wx,Nf)=>{var bn=class{constructor(r,s){if(s=mE(s),r instanceof bn)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new bn(r.raw,s);if(r instanceof pu)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(o=>this.parseRange(o.trim())).filter(o=>o.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let o=this.set[0];if(this.set=this.set.filter(l=>!Lf(l[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let l of this.set)if(l.length===1&&AE(l[0])){this.set=[l];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 o=`parseRange:${Object.keys(this.options).join(",")}:${r}`,l=Tf.get(o);if(l)return l;let a=this.options.loose,_=a?we[ve.HYPHENRANGELOOSE]:we[ve.HYPHENRANGE];r=r.replace(_,NE(this.options.includePrerelease)),le("hyphen replace",r),r=r.replace(we[ve.COMPARATORTRIM],yE),le("comparator trim",r,we[ve.COMPARATORTRIM]),r=r.replace(we[ve.TILDETRIM],wE),r=r.replace(we[ve.CARETTRIM],xE),r=r.split(/\s+/).join(" ");let E=a?we[ve.COMPARATORLOOSE]:we[ve.COMPARATOR],y=r.split(" ").map(T=>OE(T,this.options)).join(" ").split(/\s+/).map(T=>$E(T,this.options)).filter(this.options.loose?T=>!!T.match(E):()=>!0).map(T=>new pu(T,this.options)),p=y.length,x=new Map;for(let T of y){if(Lf(T))return[T];x.set(T.value,T)}x.size>1&&x.has("")&&x.delete("");let I=[...x.values()];return Tf.set(o,I),I}intersects(r,s){if(!(r instanceof bn))throw new TypeError("a Range is required");return this.set.some(o=>$f(o,s)&&r.set.some(l=>$f(l,s)&&o.every(a=>l.every(_=>a.intersects(_,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new EE(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(PE(this.set[s],r,this.options))return!0;return!1}};Nf.exports=bn;var vE=Cf(),Tf=new vE({max:1e3}),mE=cr(),pu=_r(),le=fr(),EE=ye(),{re:we,t:ve,comparatorTrimReplace:yE,tildeTrimReplace:wE,caretTrimReplace:xE}=Jt(),Lf=i=>i.value==="<0.0.0-0",AE=i=>i.value==="",$f=(i,r)=>{let s=!0,o=i.slice(),l=o.pop();for(;s&&o.length;)s=o.every(a=>l.intersects(a,r)),l=o.pop();return s},OE=(i,r)=>(le("comp",i,r),i=IE(i,r),le("caret",i),i=SE(i,r),le("tildes",i),i=CE(i,r),le("xrange",i),i=LE(i,r),le("stars",i),i),Se=i=>!i||i.toLowerCase()==="x"||i==="*",SE=(i,r)=>i.trim().split(/\s+/).map(s=>RE(s,r)).join(" "),RE=(i,r)=>{let s=r.loose?we[ve.TILDELOOSE]:we[ve.TILDE];return i.replace(s,(o,l,a,_,E)=>{le("tilde",i,o,l,a,_,E);let y;return Se(l)?y="":Se(a)?y=`>=${l}.0.0 <${+l+1}.0.0-0`:Se(_)?y=`>=${l}.${a}.0 <${l}.${+a+1}.0-0`:E?(le("replaceTilde pr",E),y=`>=${l}.${a}.${_}-${E} <${l}.${+a+1}.0-0`):y=`>=${l}.${a}.${_} <${l}.${+a+1}.0-0`,le("tilde return",y),y})},IE=(i,r)=>i.trim().split(/\s+/).map(s=>bE(s,r)).join(" "),bE=(i,r)=>{le("caret",i,r);let s=r.loose?we[ve.CARETLOOSE]:we[ve.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(l,a,_,E,y)=>{le("caret",i,l,a,_,E,y);let p;return Se(a)?p="":Se(_)?p=`>=${a}.0.0${o} <${+a+1}.0.0-0`:Se(E)?a==="0"?p=`>=${a}.${_}.0${o} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.0${o} <${+a+1}.0.0-0`:y?(le("replaceCaret pr",y),a==="0"?_==="0"?p=`>=${a}.${_}.${E}-${y} <${a}.${_}.${+E+1}-0`:p=`>=${a}.${_}.${E}-${y} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.${E}-${y} <${+a+1}.0.0-0`):(le("no pr"),a==="0"?_==="0"?p=`>=${a}.${_}.${E}${o} <${a}.${_}.${+E+1}-0`:p=`>=${a}.${_}.${E}${o} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.${E} <${+a+1}.0.0-0`),le("caret return",p),p})},CE=(i,r)=>(le("replaceXRanges",i,r),i.split(/\s+/).map(s=>TE(s,r)).join(" ")),TE=(i,r)=>{i=i.trim();let s=r.loose?we[ve.XRANGELOOSE]:we[ve.XRANGE];return i.replace(s,(o,l,a,_,E,y)=>{le("xRange",i,o,l,a,_,E,y);let p=Se(a),x=p||Se(_),I=x||Se(E),T=I;return l==="="&&T&&(l=""),y=r.includePrerelease?"-0":"",p?l===">"||l==="<"?o="<0.0.0-0":o="*":l&&T?(x&&(_=0),E=0,l===">"?(l=">=",x?(a=+a+1,_=0,E=0):(_=+_+1,E=0)):l==="<="&&(l="<",x?a=+a+1:_=+_+1),l==="<"&&(y="-0"),o=`${l+a}.${_}.${E}${y}`):x?o=`>=${a}.0.0${y} <${+a+1}.0.0-0`:I&&(o=`>=${a}.${_}.0${y} <${a}.${+_+1}.0-0`),le("xRange return",o),o})},LE=(i,r)=>(le("replaceStars",i,r),i.trim().replace(we[ve.STAR],"")),$E=(i,r)=>(le("replaceGTE0",i,r),i.trim().replace(we[r.includePrerelease?ve.GTE0PRE:ve.GTE0],"")),NE=i=>(r,s,o,l,a,_,E,y,p,x,I,T,D)=>(Se(o)?s="":Se(l)?s=`>=${o}.0.0${i?"-0":""}`:Se(a)?s=`>=${o}.${l}.0${i?"-0":""}`:_?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,Se(p)?y="":Se(x)?y=`<${+p+1}.0.0-0`:Se(I)?y=`<${p}.${+x+1}.0-0`:T?y=`<=${p}.${x}.${I}-${T}`:i?y=`<${p}.${x}.${+I+1}-0`:y=`<=${y}`,`${s} ${y}`.trim()),PE=(i,r,s)=>{for(let o=0;o<i.length;o++)if(!i[o].test(r))return!1;if(r.prerelease.length&&!s.includePrerelease){for(let o=0;o<i.length;o++)if(le(i[o].semver),i[o].semver!==pu.ANY&&i[o].semver.prerelease.length>0){let l=i[o].semver;if(l.major===r.major&&l.minor===r.minor&&l.patch===r.patch)return!0}return!1}return!0}});var _r=L((xx,Mf)=>{var vr=Symbol("SemVer ANY"),mr=class{static get ANY(){return vr}constructor(r,s){if(s=DE(s),r instanceof mr){if(r.loose===!!s.loose)return r;r=r.value}du("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===vr?this.value="":this.value=this.operator+this.semver.version,du("comp",this)}parse(r){let s=this.options.loose?Pf[Df.COMPARATORLOOSE]:Pf[Df.COMPARATOR],o=r.match(s);if(!o)throw new TypeError(`Invalid comparator: ${r}`);this.operator=o[1]!==void 0?o[1]:"",this.operator==="="&&(this.operator=""),o[2]?this.semver=new qf(o[2],this.options.loose):this.semver=vr}toString(){return this.value}test(r){if(du("Comparator.test",r,this.options.loose),this.semver===vr||r===vr)return!0;if(typeof r=="string")try{r=new qf(r,this.options)}catch{return!1}return gu(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof mr))throw new TypeError("a Comparator is required");if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Ff(r.value,s).test(this.value);if(r.operator==="")return r.value===""?!0:new Ff(this.value,s).test(r.semver);let o=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),l=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),a=this.semver.version===r.semver.version,_=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),E=gu(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),y=gu(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||l||a&&_||E||y}};Mf.exports=mr;var DE=cr(),{re:Pf,t:Df}=Jt(),gu=fu(),du=fr(),qf=ye(),Ff=Ye()});var Er=L((Ax,Hf)=>{var qE=Ye(),FE=(i,r,s)=>{try{r=new qE(r,s)}catch{return!1}return r.test(i)};Hf.exports=FE});var Gf=L((Ox,Wf)=>{var ME=Ye(),HE=(i,r)=>new ME(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));Wf.exports=HE});var Bf=L((Sx,Uf)=>{var WE=ye(),GE=Ye(),UE=(i,r,s)=>{let o=null,l=null,a=null;try{a=new GE(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||l.compare(_)===-1)&&(o=_,l=new WE(o,s))}),o};Uf.exports=UE});var zf=L((Rx,Xf)=>{var BE=ye(),XE=Ye(),zE=(i,r,s)=>{let o=null,l=null,a=null;try{a=new XE(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||l.compare(_)===1)&&(o=_,l=new BE(o,s))}),o};Xf.exports=zE});var Yf=L((Ix,jf)=>{var _u=ye(),VE=Ye(),Vf=pr(),jE=(i,r)=>{i=new VE(i,r);let s=new _u("0.0.0");if(i.test(s)||(s=new _u("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){let l=i.set[o],a=null;l.forEach(_=>{let E=new _u(_.semver.version);switch(_.operator){case">":E.prerelease.length===0?E.patch++:E.prerelease.push(0),E.raw=E.format();case"":case">=":(!a||Vf(E,a))&&(a=E);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${_.operator}`)}}),a&&(!s||Vf(s,a))&&(s=a)}return s&&i.test(s)?s:null};jf.exports=jE});var kf=L((bx,Kf)=>{var YE=Ye(),KE=(i,r)=>{try{return new YE(i,r).range||"*"}catch{return null}};Kf.exports=KE});var Ti=L((Cx,ec)=>{var kE=ye(),Zf=_r(),{ANY:ZE}=Zf,JE=Ye(),QE=Er(),Jf=pr(),Qf=Oi(),ey=Ri(),ty=Si(),ny=(i,r,s,o)=>{i=new kE(i,o),r=new JE(r,o);let l,a,_,E,y;switch(s){case">":l=Jf,a=ey,_=Qf,E=">",y=">=";break;case"<":l=Qf,a=ty,_=Jf,E="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(QE(i,r,o))return!1;for(let p=0;p<r.set.length;++p){let x=r.set[p],I=null,T=null;if(x.forEach(D=>{D.semver===ZE&&(D=new Zf(">=0.0.0")),I=I||D,T=T||D,l(D.semver,I.semver,o)?I=D:_(D.semver,T.semver,o)&&(T=D)}),I.operator===E||I.operator===y||(!T.operator||T.operator===E)&&a(i,T.semver))return!1;if(T.operator===y&&_(i,T.semver))return!1}return!0};ec.exports=ny});var nc=L((Tx,tc)=>{var ry=Ti(),iy=(i,r,s)=>ry(i,r,">",s);tc.exports=iy});var ic=L((Lx,rc)=>{var sy=Ti(),uy=(i,r,s)=>sy(i,r,"<",s);rc.exports=uy});var oc=L(($x,uc)=>{var sc=Ye(),oy=(i,r,s)=>(i=new sc(i,s),r=new sc(r,s),i.intersects(r));uc.exports=oy});var lc=L((Nx,ac)=>{var ay=Er(),ly=je();ac.exports=(i,r,s)=>{let o=[],l=null,a=null,_=i.sort((x,I)=>ly(x,I,s));for(let x of _)ay(x,r,s)?(a=x,l||(l=x)):(a&&o.push([l,a]),a=null,l=null);l&&o.push([l,null]);let E=[];for(let[x,I]of o)x===I?E.push(x):!I&&x===_[0]?E.push("*"):I?x===_[0]?E.push(`<=${I}`):E.push(`${x} - ${I}`):E.push(`>=${x}`);let y=E.join(" || "),p=typeof r.raw=="string"?r.raw:String(r);return y.length<p.length?y:r}});var gc=L((Px,pc)=>{var fc=Ye(),Li=_r(),{ANY:vu}=Li,yr=Er(),mu=je(),fy=(i,r,s={})=>{if(i===r)return!0;i=new fc(i,s),r=new fc(r,s);let o=!1;e:for(let l of i.set){for(let a of r.set){let _=cy(l,a,s);if(o=o||_!==null,_)continue e}if(o)return!1}return!0},cy=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===vu){if(r.length===1&&r[0].semver===vu)return!0;s.includePrerelease?i=[new Li(">=0.0.0-0")]:i=[new Li(">=0.0.0")]}if(r.length===1&&r[0].semver===vu){if(s.includePrerelease)return!0;r=[new Li(">=0.0.0")]}let o=new Set,l,a;for(let D of i)D.operator===">"||D.operator===">="?l=cc(l,D,s):D.operator==="<"||D.operator==="<="?a=hc(a,D,s):o.add(D.semver);if(o.size>1)return null;let _;if(l&&a){if(_=mu(l.semver,a.semver,s),_>0)return null;if(_===0&&(l.operator!==">="||a.operator!=="<="))return null}for(let D of o){if(l&&!yr(D,String(l),s)||a&&!yr(D,String(a),s))return null;for(let ue of r)if(!yr(D,String(ue),s))return!1;return!0}let E,y,p,x,I=a&&!s.includePrerelease&&a.semver.prerelease.length?a.semver:!1,T=l&&!s.includePrerelease&&l.semver.prerelease.length?l.semver:!1;I&&I.prerelease.length===1&&a.operator==="<"&&I.prerelease[0]===0&&(I=!1);for(let D of r){if(x=x||D.operator===">"||D.operator===">=",p=p||D.operator==="<"||D.operator==="<=",l){if(T&&D.semver.prerelease&&D.semver.prerelease.length&&D.semver.major===T.major&&D.semver.minor===T.minor&&D.semver.patch===T.patch&&(T=!1),D.operator===">"||D.operator===">="){if(E=cc(l,D,s),E===D&&E!==l)return!1}else if(l.operator===">="&&!yr(l.semver,String(D),s))return!1}if(a){if(I&&D.semver.prerelease&&D.semver.prerelease.length&&D.semver.major===I.major&&D.semver.minor===I.minor&&D.semver.patch===I.patch&&(I=!1),D.operator==="<"||D.operator==="<="){if(y=hc(a,D,s),y===D&&y!==a)return!1}else if(a.operator==="<="&&!yr(a.semver,String(D),s))return!1}if(!D.operator&&(a||l)&&_!==0)return!1}return!(l&&p&&!a&&_!==0||a&&x&&!l&&_!==0||T||I)},cc=(i,r,s)=>{if(!i)return r;let o=mu(i.semver,r.semver,s);return o>0?i:o<0||r.operator===">"&&i.operator===">="?r:i},hc=(i,r,s)=>{if(!i)return r;let o=mu(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};pc.exports=fy});var _c=L((Dx,dc)=>{var Eu=Jt();dc.exports={re:Eu.re,src:Eu.src,tokens:Eu.t,SEMVER_SPEC_VERSION:lr().SEMVER_SPEC_VERSION,SemVer:ye(),compareIdentifiers:Ei().compareIdentifiers,rcompareIdentifiers:Ei().rcompareIdentifiers,parse:Qt(),valid:Dl(),clean:Fl(),inc:Hl(),diff:zl(),major:jl(),minor:Kl(),patch:Zl(),prerelease:Ql(),compare:je(),rcompare:tf(),compareLoose:rf(),compareBuild:Ai(),sort:af(),rsort:ff(),gt:pr(),lt:Oi(),eq:xi(),neq:lu(),gte:Si(),lte:Ri(),cmp:fu(),coerce:mf(),Comparator:_r(),Range:Ye(),satisfies:Er(),toComparators:Gf(),maxSatisfying:Bf(),minSatisfying:zf(),minVersion:Yf(),validRange:kf(),outside:Ti(),gtr:nc(),ltr:ic(),intersects:oc(),simplifyRange:lc(),subset:gc()}});var lt=L(rn=>{"use strict";var vc=rn&&rn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(rn,"__esModule",{value:!0});rn.getCoreVersion=void 0;var mc=vc(require("path")),Ec=vc(require("fs")),hy=_c(),py=require("@serverless-devs/core"),yc=mc.default.join(py.getRootHome(),"cache","core"),yu=mc.default.join(yc,"package.json");function gy(){if(Ec.default.existsSync(yu)){var i=require("@serverless-devs/core/package.json").version,r=wc();return hy.gt(r,i)?require(yc):require("@serverless-devs/core")}return require("@serverless-devs/core")}function wc(){return Ec.default.existsSync(yu)?require(yu).version:void 0}rn.getCoreVersion=wc;rn.default=gy()});var xc=L((Fx,dy)=>{dy.exports={name:"@serverless-devs/s",version:"2.0.98-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:{start:"npm run watch",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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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 Rc=L(Rt=>{"use strict";var Ac=Rt&&Rt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.getHistoryFile=Rt.getHomeDir=void 0;var _y=Ac(require("path")),Oc=Ac(lt()),$i=Oc.default.fse,vy=Oc.default.getRootHome;function wu(){var i=vy();return $i.existsSync(i)||$i.mkdirSync(i),i}Rt.getHomeDir=wu;function Sc(){var i=_y.default.join(wu(),"history");return $i.existsSync(i)||$i.createFileSync(i),i}Rt.getHistoryFile=Sc;Rt.default={getHomeDir:wu,getHistoryFile:Sc}});var Pc=L(Re=>{"use strict";var my=Re&&Re.__awaiter||function(i,r,s,o){function l(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function E(x){try{p(o.next(x))}catch(I){_(I)}}function y(x){try{p(o.throw(x))}catch(I){_(I)}}function p(x){x.done?a(x.value):l(x.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Ey=Re&&Re.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(p){return function(x){return y([p,x])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,l=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(x){p=[6,x],l=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},xu=Re&&Re.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Re,"__esModule",{value:!0});Re.handlerProfileFile=Re.getConfig=Re.setConfig=void 0;var Ic=xu(require("path")),yy=xu(Rc()),Au=xu(lt()),ft=Au.default.fse,Ni=Au.default.jsyaml,bc=Au.default.getRootHome;function wy(i){var r=Tc();ft.writeFileSync(r,Ni.dump(i))}function Cc(){var i=Tc();if(!ft.existsSync(i))return{};try{var r=Ni.load(ft.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Tc(){var i=Ic.default.join(yy.default.getHomeDir(),"set-config.yml");return ft.existsSync(i)||ft.createFileSync(i),i}function Lc(i,r){var s=Cc();s[i]=r,wy(s)}Re.setConfig=Lc;function $c(i,r){var s=Cc();return s[i]||r}Re.getConfig=$c;function Nc(i){return my(this,void 0,void 0,function(){var r,s,o,l,a,_,E;return Ey(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=Ic.default.join(bc(),r),o=ft.existsSync(s),l={},o)return[3,5];a=bc(),y.label=1;case 1:return y.trys.push([1,2,,4]),ft.statSync(a),[3,4];case 2:return _=y.sent(),[4,ft.mkdirSync(a)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{l=Ni.load(ft.readFileSync(s,"utf8"))||{}}catch(p){throw p}y.label=6;case 6:return i.read?[2,l]:(E=i.configKey||"",l[E]=i.data,[4,ft.writeFileSync(s,Ni.dump(l))]);case 7:return y.sent(),[2,l]}})})}Re.handlerProfileFile=Nc;Re.default={setConfig:Lc,getConfig:$c,handlerProfileFile:Nc}});var xr=L(H=>{"use strict";var xy=H&&H.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),Ay=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Oy=H&&H.__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)&&xy(r,i,s);return Ay(r,i),r},Ou=H&&H.__awaiter||function(i,r,s,o){function l(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function E(x){try{p(o.next(x))}catch(I){_(I)}}function y(x){try{p(o.throw(x))}catch(I){_(I)}}function p(x){x.done?a(x.value):l(x.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Su=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(p){return function(x){return y([p,x])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,l=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(x){p=[6,x],l=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Pi=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var de=Pi(require("path")),Fe=Pi(require("fs")),Ht=Pi(ml()),Sy=Pi(require("os")),Ry=bu(),Ke=Oy(lt()),sn=Ke.default.colors,Iy=Ke.default.jsyaml,by=Ke.default.makeUnderLine,Cy=Ke.default.got,Ty=Ke.default.Logger,Dc=Ke.default.isDebugMode,Ly=Ke.default.getMAC,$y=Ke.default.getYamlContent,Ny=Ke.default.isDocker,Py=Ke.default.isCiCdEnv,qc=xc(),Dy=Pc();H.red=sn.hex("#fd5750");H.yellow=sn.hex("#F3F99D");H.bgRed=sn.hex("#000").bgHex("#fd5750");var qy=function(i,r){if(!(Ny()||Py()))return Cy("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(i,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0}).then(function(s){var o=Ht.default.get(s.body,"shorturl");o&&console.log(`AI Tips:
|
|
34
|
+
}`;var B=ol(function(){return k(h,P+"return "+R).apply(i,g)});if(B.source=R,Ys(B))throw B;return B}function lm(e){return Z(e).toLowerCase()}function fm(e){return Z(e).toUpperCase()}function cm(e,t,n){if(e=Z(e),e&&(n||t===i))return _o(e);if(!e||!(t=Ne(t)))return e;var u=Je(e),f=Je(t),h=vo(u,f),g=mo(u,f)+1;return qt(u,h,g).join("")}function hm(e,t,n){if(e=Z(e),e&&(n||t===i))return e.slice(0,yo(e)+1);if(!e||!(t=Ne(t)))return e;var u=Je(e),f=mo(u,Je(t))+1;return qt(u,0,f).join("")}function pm(e,t,n){if(e=Z(e),e&&(n||t===i))return e.replace(Yi,"");if(!e||!(t=Ne(t)))return e;var u=Je(e),f=vo(u,Je(t));return qt(u,f).join("")}function gm(e,t){var n=oh,u=ah;if(ie(t)){var f="separator"in t?t.separator:f;n="length"in t?U(t.length):n,u="omission"in t?Ne(t.omission):u}e=Z(e);var h=e.length;if(gn(e)){var g=Je(e);h=g.length}if(n>=h)return e;var d=n-dn(u);if(d<1)return u;var m=g?qt(g,0,d).join(""):e.slice(0,d);if(f===i)return m+u;if(g&&(d+=m.length-d),Ks(f)){if(e.slice(d).search(f)){var O,S=m;for(f.global||(f=cs(f.source,Z(Fu.exec(f))+"g")),f.lastIndex=0;O=f.exec(S);)var R=O.index;m=m.slice(0,R===i?d:R)}}else if(e.indexOf(Ne(f),d)!=d){var b=m.lastIndexOf(f);b>-1&&(m=m.slice(0,b))}return m+u}function dm(e){return e=Z(e),e&&Rh.test(e)?e.replace(Pu,Xp):e}var _m=wn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Js=aa("toUpperCase");function ul(e,t,n){return e=Z(e),t=n?i:t,t===i?Hp(e)?jp(e):Tp(e):e.match(t)||[]}var ol=z(function(e,t){try{return Le(e,i,t)}catch(n){return Ys(n)?n:new W(n)}}),vm=Et(function(e,t){return He(t,function(n){n=at(n),vt(e,n,Vs(e[n],e))}),e});function mm(e){var t=e==null?0:e.length,n=q();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new We(l);return[n(u[0]),u[1]]}):[],z(function(u){for(var f=-1;++f<t;){var h=e[f];if(Le(h[0],this,u))return Le(h[1],this,u)}})}function Em(e){return Xg(Ue(e,p))}function Qs(e){return function(){return e}}function ym(e,t){return e==null||e!==e?t:e}var wm=fa(),xm=fa(!0);function Te(e){return e}function eu(e){return Wo(typeof e=="function"?e:Ue(e,p))}function Am(e){return Uo(Ue(e,p))}function Om(e,t){return Bo(e,Ue(t,p))}var Sm=z(function(e,t){return function(n){return Qn(n,e,t)}}),Rm=z(function(e,t){return function(n){return Qn(e,n,t)}});function tu(e,t,n){var u=pe(t),f=Jr(t,u);n==null&&!(ie(t)&&(f.length||!u.length))&&(n=t,t=e,e=this,f=Jr(t,pe(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=wt(e);return He(f,function(d){var m=t[d];e[d]=m,g&&(e.prototype[d]=function(){var O=this.__chain__;if(h||O){var S=e(this.__wrapped__),R=S.__actions__=Ie(this.__actions__);return R.push({func:m,args:arguments,thisArg:e}),S.__chain__=O,S}return m.apply(e,Ct([this.value()],arguments))})}),e}function Im(){return he._===this&&(he._=Qp),this}function nu(){}function bm(e){return e=U(e),z(function(t){return Xo(t,e)})}var Cm=Ns(re),Tm=Ns(fo),Lm=Ns(is);function al(e){return Ws(e)?ss(at(e)):od(e)}function $m(e){return function(t){return e==null?i:Vt(e,t)}}var Nm=ha(),Pm=ha(!0);function ru(){return[]}function iu(){return!1}function Dm(){return{}}function qm(){return""}function Fm(){return!0}function Mm(e,t){if(e=U(e),e<1||e>It)return[];var n=st,u=me(e,st);t=q(t),e-=st;for(var f=as(u,t);++n<e;)t(n);return f}function Hm(e){return G(e)?re(e,at):Pe(e)?[e]:Ie(ba(Z(e)))}function Wm(e){var t=++Zp;return Z(e)+t}var Gm=ii(function(e,t){return e+t},0),Um=Ps("ceil"),Bm=ii(function(e,t){return e/t},1),Xm=Ps("floor");function zm(e){return e&&e.length?Zr(e,Te,Es):i}function Vm(e,t){return e&&e.length?Zr(e,q(t,2),Es):i}function jm(e){return po(e,Te)}function Ym(e,t){return po(e,q(t,2))}function Km(e){return e&&e.length?Zr(e,Te,As):i}function km(e,t){return e&&e.length?Zr(e,q(t,2),As):i}var Zm=ii(function(e,t){return e*t},1),Jm=Ps("round"),Qm=ii(function(e,t){return e-t},0);function e1(e){return e&&e.length?os(e,Te):0}function t1(e,t){return e&&e.length?os(e,q(t,2)):0}return c.after=Av,c.ary=Ha,c.assign=f0,c.assignIn=Qa,c.assignInWith=vi,c.assignWith=c0,c.at=h0,c.before=Wa,c.bind=Vs,c.bindAll=vm,c.bindKey=Ga,c.castArray=Dv,c.chain=qa,c.chunk=Xd,c.compact=zd,c.concat=Vd,c.cond=mm,c.conforms=Em,c.constant=Qs,c.countBy=ev,c.create=p0,c.curry=Ua,c.curryRight=Ba,c.debounce=Xa,c.defaults=g0,c.defaultsDeep=d0,c.defer=Ov,c.delay=Sv,c.difference=jd,c.differenceBy=Yd,c.differenceWith=Kd,c.drop=kd,c.dropRight=Zd,c.dropRightWhile=Jd,c.dropWhile=Qd,c.fill=e_,c.filter=nv,c.flatMap=sv,c.flatMapDeep=uv,c.flatMapDepth=ov,c.flatten=$a,c.flattenDeep=t_,c.flattenDepth=n_,c.flip=Rv,c.flow=wm,c.flowRight=xm,c.fromPairs=r_,c.functions=x0,c.functionsIn=A0,c.groupBy=av,c.initial=s_,c.intersection=u_,c.intersectionBy=o_,c.intersectionWith=a_,c.invert=S0,c.invertBy=R0,c.invokeMap=fv,c.iteratee=eu,c.keyBy=cv,c.keys=pe,c.keysIn=Ce,c.map=ci,c.mapKeys=b0,c.mapValues=C0,c.matches=Am,c.matchesProperty=Om,c.memoize=pi,c.merge=T0,c.mergeWith=el,c.method=Sm,c.methodOf=Rm,c.mixin=tu,c.negate=gi,c.nthArg=bm,c.omit=L0,c.omitBy=$0,c.once=Iv,c.orderBy=hv,c.over=Cm,c.overArgs=bv,c.overEvery=Tm,c.overSome=Lm,c.partial=js,c.partialRight=za,c.partition=pv,c.pick=N0,c.pickBy=tl,c.property=al,c.propertyOf=$m,c.pull=h_,c.pullAll=Pa,c.pullAllBy=p_,c.pullAllWith=g_,c.pullAt=d_,c.range=Nm,c.rangeRight=Pm,c.rearg=Cv,c.reject=_v,c.remove=__,c.rest=Tv,c.reverse=Xs,c.sampleSize=mv,c.set=D0,c.setWith=q0,c.shuffle=Ev,c.slice=v_,c.sortBy=xv,c.sortedUniq=O_,c.sortedUniqBy=S_,c.split=sm,c.spread=Lv,c.tail=R_,c.take=I_,c.takeRight=b_,c.takeRightWhile=C_,c.takeWhile=T_,c.tap=z_,c.throttle=$v,c.thru=fi,c.toArray=ka,c.toPairs=nl,c.toPairsIn=rl,c.toPath=Hm,c.toPlainObject=Ja,c.transform=F0,c.unary=Nv,c.union=L_,c.unionBy=$_,c.unionWith=N_,c.uniq=P_,c.uniqBy=D_,c.uniqWith=q_,c.unset=M0,c.unzip=zs,c.unzipWith=Da,c.update=H0,c.updateWith=W0,c.values=On,c.valuesIn=G0,c.without=F_,c.words=ul,c.wrap=Pv,c.xor=M_,c.xorBy=H_,c.xorWith=W_,c.zip=G_,c.zipObject=U_,c.zipObjectDeep=B_,c.zipWith=X_,c.entries=nl,c.entriesIn=rl,c.extend=Qa,c.extendWith=vi,tu(c,c),c.add=Gm,c.attempt=ol,c.camelCase=z0,c.capitalize=il,c.ceil=Um,c.clamp=U0,c.clone=qv,c.cloneDeep=Mv,c.cloneDeepWith=Hv,c.cloneWith=Fv,c.conformsTo=Wv,c.deburr=sl,c.defaultTo=ym,c.divide=Bm,c.endsWith=V0,c.eq=et,c.escape=j0,c.escapeRegExp=Y0,c.every=tv,c.find=rv,c.findIndex=Ta,c.findKey=_0,c.findLast=iv,c.findLastIndex=La,c.findLastKey=v0,c.floor=Xm,c.forEach=Fa,c.forEachRight=Ma,c.forIn=m0,c.forInRight=E0,c.forOwn=y0,c.forOwnRight=w0,c.get=ks,c.gt=Gv,c.gte=Uv,c.has=O0,c.hasIn=Zs,c.head=Na,c.identity=Te,c.includes=lv,c.indexOf=i_,c.inRange=B0,c.invoke=I0,c.isArguments=Kt,c.isArray=G,c.isArrayBuffer=Bv,c.isArrayLike=be,c.isArrayLikeObject=oe,c.isBoolean=Xv,c.isBuffer=Ft,c.isDate=zv,c.isElement=Vv,c.isEmpty=jv,c.isEqual=Yv,c.isEqualWith=Kv,c.isError=Ys,c.isFinite=kv,c.isFunction=wt,c.isInteger=Va,c.isLength=di,c.isMap=ja,c.isMatch=Zv,c.isMatchWith=Jv,c.isNaN=Qv,c.isNative=e0,c.isNil=n0,c.isNull=t0,c.isNumber=Ya,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=sr,c.isRegExp=Ks,c.isSafeInteger=r0,c.isSet=Ka,c.isString=_i,c.isSymbol=Pe,c.isTypedArray=An,c.isUndefined=i0,c.isWeakMap=s0,c.isWeakSet=u0,c.join=l_,c.kebabCase=K0,c.last=Xe,c.lastIndexOf=f_,c.lowerCase=k0,c.lowerFirst=Z0,c.lt=o0,c.lte=a0,c.max=zm,c.maxBy=Vm,c.mean=jm,c.meanBy=Ym,c.min=Km,c.minBy=km,c.stubArray=ru,c.stubFalse=iu,c.stubObject=Dm,c.stubString=qm,c.stubTrue=Fm,c.multiply=Zm,c.nth=c_,c.noConflict=Im,c.noop=nu,c.now=hi,c.pad=J0,c.padEnd=Q0,c.padStart=em,c.parseInt=tm,c.random=X0,c.reduce=gv,c.reduceRight=dv,c.repeat=nm,c.replace=rm,c.result=P0,c.round=Jm,c.runInContext=v,c.sample=vv,c.size=yv,c.snakeCase=im,c.some=wv,c.sortedIndex=m_,c.sortedIndexBy=E_,c.sortedIndexOf=y_,c.sortedLastIndex=w_,c.sortedLastIndexBy=x_,c.sortedLastIndexOf=A_,c.startCase=um,c.startsWith=om,c.subtract=Qm,c.sum=e1,c.sumBy=t1,c.template=am,c.times=Mm,c.toFinite=xt,c.toInteger=U,c.toLength=Za,c.toLower=lm,c.toNumber=ze,c.toSafeInteger=l0,c.toString=Z,c.toUpper=fm,c.trim=cm,c.trimEnd=hm,c.trimStart=pm,c.truncate=gm,c.unescape=dm,c.uniqueId=Wm,c.upperCase=_m,c.upperFirst=Js,c.each=Fa,c.eachRight=Ma,c.first=Na,tu(c,function(){var e={};return ut(c,function(t,n){J.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,He(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),He(["drop","take"],function(e,t){j.prototype[e]=function(n){n=n===i?1:ce(U(n),0);var u=this.__filtered__&&!t?new j(this):this.clone();return u.__filtered__?u.__takeCount__=me(n,u.__takeCount__):u.__views__.push({size:me(n,st),type:e+(u.__dir__<0?"Right":"")}),u},j.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),He(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Lu||n==hh;j.prototype[e]=function(f){var h=this.clone();return h.__iteratees__.push({iteratee:q(f,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),He(["head","last"],function(e,t){var n="take"+(t?"Right":"");j.prototype[e]=function(){return this[n](1).value()[0]}}),He(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");j.prototype[e]=function(){return this.__filtered__?new j(this):this[n](1)}}),j.prototype.compact=function(){return this.filter(Te)},j.prototype.find=function(e){return this.filter(e).head()},j.prototype.findLast=function(e){return this.reverse().find(e)},j.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new j(this):this.map(function(n){return Qn(n,e,t)})}),j.prototype.reject=function(e){return this.filter(gi(q(e)))},j.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new j(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=U(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},j.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},j.prototype.toArray=function(){return this.take(st)},ut(j.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),f=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!f||(c.prototype[t]=function(){var g=this.__wrapped__,d=u?[1]:arguments,m=g instanceof j,O=d[0],S=m||G(g),R=function(V){var Y=f.apply(c,Ct([V],d));return u&&b?Y[0]:Y};S&&n&&typeof O=="function"&&O.length!=1&&(m=S=!1);var b=this.__chain__,P=!!this.__actions__.length,F=h&&!b,B=m&&!P;if(!h&&S){g=B?g:new j(this);var M=e.apply(g,d);return M.__actions__.push({func:fi,args:[R],thisArg:i}),new Ge(M,b)}return F&&B?e.apply(this,d):(M=this.thru(R),F?u?M.value()[0]:M.value():M)})}),He(["pop","push","shift","sort","splice","unshift"],function(e){var t=qr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var f=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],f)}return this[n](function(g){return t.apply(G(g)?g:[],f)})}}),ut(j.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";J.call(mn,u)||(mn[u]=[]),mn[u].push({name:t,func:n})}}),mn[ri(i,ht).name]=[{name:"wrapper",func:i}],j.prototype.clone=dg,j.prototype.reverse=_g,j.prototype.value=vg,c.prototype.at=V_,c.prototype.chain=j_,c.prototype.commit=Y_,c.prototype.next=K_,c.prototype.plant=Z_,c.prototype.reverse=J_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=Q_,c.prototype.first=c.prototype.head,Vn&&(c.prototype[Vn]=k_),c},Lt=Yp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(he._=Lt,define(function(){return Lt})):Gt?((Gt.exports=Lt)._=Lt,es._=Lt):he._=Lt}).call(Sn)});var lr=L((Xw,El)=>{var i1="2.0.0",s1=256,u1=Number.MAX_SAFE_INTEGER||9007199254740991,o1=16;El.exports={SEMVER_SPEC_VERSION:i1,MAX_LENGTH:s1,MAX_SAFE_INTEGER:u1,MAX_SAFE_COMPONENT_LENGTH:o1}});var fr=L((zw,yl)=>{var a1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};yl.exports=a1});var Jt=L((Mt,wl)=>{var{MAX_SAFE_COMPONENT_LENGTH:au}=lr(),l1=fr();Mt=wl.exports={};var f1=Mt.re=[],$=Mt.src=[],N=Mt.t={},c1=0,X=(i,r,s)=>{let o=c1++;l1(o,r),N[i]=o,$[o]=r,f1[o]=new RegExp(r,s?"g":void 0)};X("NUMERICIDENTIFIER","0|[1-9]\\d*");X("NUMERICIDENTIFIERLOOSE","[0-9]+");X("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");X("MAINVERSION",`(${$[N.NUMERICIDENTIFIER]})\\.(${$[N.NUMERICIDENTIFIER]})\\.(${$[N.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${$[N.NUMERICIDENTIFIERLOOSE]})\\.(${$[N.NUMERICIDENTIFIERLOOSE]})\\.(${$[N.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${$[N.NUMERICIDENTIFIER]}|${$[N.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${$[N.NUMERICIDENTIFIERLOOSE]}|${$[N.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${$[N.PRERELEASEIDENTIFIER]}(?:\\.${$[N.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${$[N.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${$[N.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER","[0-9A-Za-z-]+");X("BUILD",`(?:\\+(${$[N.BUILDIDENTIFIER]}(?:\\.${$[N.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${$[N.MAINVERSION]}${$[N.PRERELEASE]}?${$[N.BUILD]}?`);X("FULL",`^${$[N.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${$[N.MAINVERSIONLOOSE]}${$[N.PRERELEASELOOSE]}?${$[N.BUILD]}?`);X("LOOSE",`^${$[N.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${$[N.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${$[N.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${$[N.XRANGEIDENTIFIER]})(?:\\.(${$[N.XRANGEIDENTIFIER]})(?:\\.(${$[N.XRANGEIDENTIFIER]})(?:${$[N.PRERELEASE]})?${$[N.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${$[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[N.XRANGEIDENTIFIERLOOSE]})(?:${$[N.PRERELEASELOOSE]})?${$[N.BUILD]}?)?)?`);X("XRANGE",`^${$[N.GTLT]}\\s*${$[N.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${$[N.GTLT]}\\s*${$[N.XRANGEPLAINLOOSE]}$`);X("COERCE",`(^|[^\\d])(\\d{1,${au}})(?:\\.(\\d{1,${au}}))?(?:\\.(\\d{1,${au}}))?(?:$|[^\\d])`);X("COERCERTL",$[N.COERCE],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${$[N.LONETILDE]}\\s+`,!0);Mt.tildeTrimReplace="$1~";X("TILDE",`^${$[N.LONETILDE]}${$[N.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${$[N.LONETILDE]}${$[N.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${$[N.LONECARET]}\\s+`,!0);Mt.caretTrimReplace="$1^";X("CARET",`^${$[N.LONECARET]}${$[N.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${$[N.LONECARET]}${$[N.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${$[N.GTLT]}\\s*(${$[N.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${$[N.GTLT]}\\s*(${$[N.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${$[N.GTLT]}\\s*(${$[N.LOOSEPLAIN]}|${$[N.XRANGEPLAIN]})`,!0);Mt.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${$[N.XRANGEPLAIN]})\\s+-\\s+(${$[N.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${$[N.XRANGEPLAINLOOSE]})\\s+-\\s+(${$[N.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0.0.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var cr=L((Vw,xl)=>{var h1=["includePrerelease","loose","rtl"],p1=i=>i?typeof i!="object"?{loose:!0}:h1.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};xl.exports=p1});var Ei=L((jw,Sl)=>{var Al=/^[0-9]+$/,Ol=(i,r)=>{let s=Al.test(i),o=Al.test(r);return s&&o&&(i=+i,r=+r),i===r?0:s&&!o?-1:o&&!s?1:i<r?-1:1},g1=(i,r)=>Ol(r,i);Sl.exports={compareIdentifiers:Ol,rcompareIdentifiers:g1}});var ye=L((Yw,Cl)=>{var yi=fr(),{MAX_LENGTH:Rl,MAX_SAFE_INTEGER:wi}=lr(),{re:Il,t:bl}=Jt(),d1=cr(),{compareIdentifiers:hr}=Ei(),Ve=class{constructor(r,s){if(s=d1(s),r instanceof Ve){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>Rl)throw new TypeError(`version is longer than ${Rl} characters`);yi("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let o=r.trim().match(s.loose?Il[bl.LOOSE]:Il[bl.FULL]);if(!o)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>wi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>wi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>wi||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(l=>{if(/^[0-9]+$/.test(l)){let a=+l;if(a>=0&&a<wi)return a}return l}):this.prerelease=[],this.build=o[5]?o[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(yi("SemVer.compare",this.version,this.options,r),!(r instanceof Ve)){if(typeof r=="string"&&r===this.version)return 0;r=new Ve(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Ve||(r=new Ve(r,this.options)),hr(this.major,r.major)||hr(this.minor,r.minor)||hr(this.patch,r.patch)}comparePre(r){if(r instanceof Ve||(r=new Ve(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 s=0;do{let o=this.prerelease[s],l=r.prerelease[s];if(yi("prerelease compare",s,o,l),o===void 0&&l===void 0)return 0;if(l===void 0)return 1;if(o===void 0)return-1;if(o===l)continue;return hr(o,l)}while(++s)}compareBuild(r){r instanceof Ve||(r=new Ve(r,this.options));let s=0;do{let o=this.build[s],l=r.build[s];if(yi("prerelease compare",s,o,l),o===void 0&&l===void 0)return 0;if(l===void 0)return 1;if(o===void 0)return-1;if(o===l)continue;return hr(o,l)}while(++s)}inc(r,s){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s),this.inc("pre",s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s),this.inc("pre",s);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 o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);o===-1&&this.prerelease.push(0)}s&&(this.prerelease[0]===s?isNaN(this.prerelease[1])&&(this.prerelease=[s,0]):this.prerelease=[s,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}};Cl.exports=Ve});var Qt=L((Kw,Nl)=>{var{MAX_LENGTH:_1}=lr(),{re:Tl,t:Ll}=Jt(),$l=ye(),v1=cr(),m1=(i,r)=>{if(r=v1(r),i instanceof $l)return i;if(typeof i!="string"||i.length>_1||!(r.loose?Tl[Ll.LOOSE]:Tl[Ll.FULL]).test(i))return null;try{return new $l(i,r)}catch{return null}};Nl.exports=m1});var Dl=L((kw,Pl)=>{var E1=Qt(),y1=(i,r)=>{let s=E1(i,r);return s?s.version:null};Pl.exports=y1});var Fl=L((Zw,ql)=>{var w1=Qt(),x1=(i,r)=>{let s=w1(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};ql.exports=x1});var Hl=L((Jw,Ml)=>{var A1=ye(),O1=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new A1(i,s).inc(r,o).version}catch{return null}};Ml.exports=O1});var je=L((Qw,Gl)=>{var Wl=ye(),S1=(i,r,s)=>new Wl(i,s).compare(new Wl(r,s));Gl.exports=S1});var xi=L((ex,Ul)=>{var R1=je(),I1=(i,r,s)=>R1(i,r,s)===0;Ul.exports=I1});var zl=L((tx,Xl)=>{var Bl=Qt(),b1=xi(),C1=(i,r)=>{if(b1(i,r))return null;{let s=Bl(i),o=Bl(r),l=s.prerelease.length||o.prerelease.length,a=l?"pre":"",_=l?"prerelease":"";for(let E in s)if((E==="major"||E==="minor"||E==="patch")&&s[E]!==o[E])return a+E;return _}};Xl.exports=C1});var jl=L((nx,Vl)=>{var T1=ye(),L1=(i,r)=>new T1(i,r).major;Vl.exports=L1});var Kl=L((rx,Yl)=>{var $1=ye(),N1=(i,r)=>new $1(i,r).minor;Yl.exports=N1});var Zl=L((ix,kl)=>{var P1=ye(),D1=(i,r)=>new P1(i,r).patch;kl.exports=D1});var Ql=L((sx,Jl)=>{var q1=Qt(),F1=(i,r)=>{let s=q1(i,r);return s&&s.prerelease.length?s.prerelease:null};Jl.exports=F1});var tf=L((ux,ef)=>{var M1=je(),H1=(i,r,s)=>M1(r,i,s);ef.exports=H1});var rf=L((ox,nf)=>{var W1=je(),G1=(i,r)=>W1(i,r,!0);nf.exports=G1});var Ai=L((ax,uf)=>{var sf=ye(),U1=(i,r,s)=>{let o=new sf(i,s),l=new sf(r,s);return o.compare(l)||o.compareBuild(l)};uf.exports=U1});var af=L((lx,of)=>{var B1=Ai(),X1=(i,r)=>i.sort((s,o)=>B1(s,o,r));of.exports=X1});var ff=L((fx,lf)=>{var z1=Ai(),V1=(i,r)=>i.sort((s,o)=>z1(o,s,r));lf.exports=V1});var pr=L((cx,cf)=>{var j1=je(),Y1=(i,r,s)=>j1(i,r,s)>0;cf.exports=Y1});var Oi=L((hx,hf)=>{var K1=je(),k1=(i,r,s)=>K1(i,r,s)<0;hf.exports=k1});var lu=L((px,pf)=>{var Z1=je(),J1=(i,r,s)=>Z1(i,r,s)!==0;pf.exports=J1});var Si=L((gx,gf)=>{var Q1=je(),eE=(i,r,s)=>Q1(i,r,s)>=0;gf.exports=eE});var Ri=L((dx,df)=>{var tE=je(),nE=(i,r,s)=>tE(i,r,s)<=0;df.exports=nE});var fu=L((_x,_f)=>{var rE=xi(),iE=lu(),sE=pr(),uE=Si(),oE=Oi(),aE=Ri(),lE=(i,r,s,o)=>{switch(r){case"===":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i===s;case"!==":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i!==s;case"":case"=":case"==":return rE(i,s,o);case"!=":return iE(i,s,o);case">":return sE(i,s,o);case">=":return uE(i,s,o);case"<":return oE(i,s,o);case"<=":return aE(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};_f.exports=lE});var mf=L((vx,vf)=>{var fE=ye(),cE=Qt(),{re:Ii,t:bi}=Jt(),hE=(i,r)=>{if(i instanceof fE)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;r=r||{};let s=null;if(!r.rtl)s=i.match(Ii[bi.COERCE]);else{let o;for(;(o=Ii[bi.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),Ii[bi.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;Ii[bi.COERCERTL].lastIndex=-1}return s===null?null:cE(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};vf.exports=hE});var yf=L((mx,Ef)=>{"use strict";Ef.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var xf=L((Ex,wf)=>{"use strict";wf.exports=K;K.Node=en;K.create=K;function K(i){var r=this;if(r instanceof K||(r=new K),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(l){r.push(l)});else if(arguments.length>0)for(var s=0,o=arguments.length;s<o;s++)r.push(arguments[s]);return r}K.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var r=i.next,s=i.prev;return r&&(r.prev=s),s&&(s.next=r),i===this.head&&(this.head=r),i===this.tail&&(this.tail=s),i.list.length--,i.next=null,i.prev=null,i.list=null,r};K.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++}};K.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++}};K.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)gE(this,arguments[i]);return this.length};K.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)dE(this,arguments[i]);return this.length};K.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}};K.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}};K.prototype.forEach=function(i,r){r=r||this;for(var s=this.head,o=0;s!==null;o++)i.call(r,s.value,o,this),s=s.next};K.prototype.forEachReverse=function(i,r){r=r||this;for(var s=this.tail,o=this.length-1;s!==null;o--)i.call(r,s.value,o,this),s=s.prev};K.prototype.get=function(i){for(var r=0,s=this.head;s!==null&&r<i;r++)s=s.next;if(r===i&&s!==null)return s.value};K.prototype.getReverse=function(i){for(var r=0,s=this.tail;s!==null&&r<i;r++)s=s.prev;if(r===i&&s!==null)return s.value};K.prototype.map=function(i,r){r=r||this;for(var s=new K,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};K.prototype.mapReverse=function(i,r){r=r||this;for(var s=new K,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};K.prototype.reduce=function(i,r){var s,o=this.head;if(arguments.length>1)s=r;else if(this.head)o=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=0;o!==null;l++)s=i(s,o.value,l),o=o.next;return s};K.prototype.reduceReverse=function(i,r){var s,o=this.tail;if(arguments.length>1)s=r;else if(this.tail)o=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=this.length-1;o!==null;l--)s=i(s,o.value,l),o=o.prev;return s};K.prototype.toArray=function(){for(var i=new Array(this.length),r=0,s=this.head;s!==null;r++)i[r]=s.value,s=s.next;return i};K.prototype.toArrayReverse=function(){for(var i=new Array(this.length),r=0,s=this.tail;s!==null;r++)i[r]=s.value,s=s.prev;return i};K.prototype.slice=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new K;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,l=this.head;l!==null&&o<i;o++)l=l.next;for(;l!==null&&o<r;o++,l=l.next)s.push(l.value);return s};K.prototype.sliceReverse=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new K;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,l=this.tail;l!==null&&o>r;o--)l=l.prev;for(;l!==null&&o>i;o--,l=l.prev)s.push(l.value);return s};K.prototype.splice=function(i,r,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var o=0,l=this.head;l!==null&&o<i;o++)l=l.next;for(var a=[],o=0;l&&o<r;o++)a.push(l.value),l=this.removeNode(l);l===null&&(l=this.tail),l!==this.head&&l!==this.tail&&(l=l.prev);for(var o=0;o<s.length;o++)l=pE(this,l,s[o]);return a};K.prototype.reverse=function(){for(var i=this.head,r=this.tail,s=i;s!==null;s=s.prev){var o=s.prev;s.prev=s.next,s.next=o}return this.head=r,this.tail=i,this};function pE(i,r,s){var o=r===i.head?new en(s,null,r,i):new en(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function gE(i,r){i.tail=new en(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function dE(i,r){i.head=new en(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function en(i,r,s,o){if(!(this instanceof en))return new en(i,r,s,o);this.list=o,this.value=i,r?(r.next=this,this.prev=r):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{yf()(K)}catch{}});var Cf=L((yx,bf)=>{"use strict";var _E=xf(),tn=Symbol("max"),Ot=Symbol("length"),Rn=Symbol("lengthCalculator"),gr=Symbol("allowStale"),nn=Symbol("maxAge"),St=Symbol("dispose"),Af=Symbol("noDisposeOnSet"),ge=Symbol("lruList"),nt=Symbol("cache"),Of=Symbol("updateAgeOnGet"),cu=()=>1,Sf=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 s=this[tn]=r.max||1/0,o=r.length||cu;if(this[Rn]=typeof o!="function"?cu:o,this[gr]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[nn]=r.maxAge||0,this[St]=r.dispose,this[Af]=r.noDisposeOnSet||!1,this[Of]=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[tn]=r||1/0,dr(this)}get max(){return this[tn]}set allowStale(r){this[gr]=!!r}get allowStale(){return this[gr]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[nn]=r,dr(this)}get maxAge(){return this[nn]}set lengthCalculator(r){typeof r!="function"&&(r=cu),r!==this[Rn]&&(this[Rn]=r,this[Ot]=0,this[ge].forEach(s=>{s.length=this[Rn](s.value,s.key),this[Ot]+=s.length})),dr(this)}get lengthCalculator(){return this[Rn]}get length(){return this[Ot]}get itemCount(){return this[ge].length}rforEach(r,s){s=s||this;for(let o=this[ge].tail;o!==null;){let l=o.prev;If(this,r,o,s),o=l}}forEach(r,s){s=s||this;for(let o=this[ge].head;o!==null;){let l=o.next;If(this,r,o,s),o=l}}keys(){return this[ge].toArray().map(r=>r.key)}values(){return this[ge].toArray().map(r=>r.value)}reset(){this[St]&&this[ge]&&this[ge].length&&this[ge].forEach(r=>this[St](r.key,r.value)),this[nt]=new Map,this[ge]=new _E,this[Ot]=0}dump(){return this[ge].map(r=>Ci(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[ge]}set(r,s,o){if(o=o||this[nn],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let l=o?Date.now():0,a=this[Rn](s,r);if(this[nt].has(r)){if(a>this[tn])return In(this,this[nt].get(r)),!1;let y=this[nt].get(r).value;return this[St]&&(this[Af]||this[St](r,y.value)),y.now=l,y.maxAge=o,y.value=s,this[Ot]+=a-y.length,y.length=a,this.get(r),dr(this),!0}let _=new Rf(r,s,a,l,o);return _.length>this[tn]?(this[St]&&this[St](r,s),!1):(this[Ot]+=_.length,this[ge].unshift(_),this[nt].set(r,this[ge].head),dr(this),!0)}has(r){if(!this[nt].has(r))return!1;let s=this[nt].get(r).value;return!Ci(this,s)}get(r){return hu(this,r,!0)}peek(r){return hu(this,r,!1)}pop(){let r=this[ge].tail;return r?(In(this,r),r.value):null}del(r){In(this,this[nt].get(r))}load(r){this.reset();let s=Date.now();for(let o=r.length-1;o>=0;o--){let l=r[o],a=l.e||0;if(a===0)this.set(l.k,l.v);else{let _=a-s;_>0&&this.set(l.k,l.v,_)}}}prune(){this[nt].forEach((r,s)=>hu(this,s,!1))}},hu=(i,r,s)=>{let o=i[nt].get(r);if(o){let l=o.value;if(Ci(i,l)){if(In(i,o),!i[gr])return}else s&&(i[Of]&&(o.value.now=Date.now()),i[ge].unshiftNode(o));return l.value}},Ci=(i,r)=>{if(!r||!r.maxAge&&!i[nn])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[nn]&&s>i[nn]},dr=i=>{if(i[Ot]>i[tn])for(let r=i[ge].tail;i[Ot]>i[tn]&&r!==null;){let s=r.prev;In(i,r),r=s}},In=(i,r)=>{if(r){let s=r.value;i[St]&&i[St](s.key,s.value),i[Ot]-=s.length,i[nt].delete(s.key),i[ge].removeNode(r)}},Rf=class{constructor(r,s,o,l,a){this.key=r,this.value=s,this.length=o,this.now=l,this.maxAge=a||0}},If=(i,r,s,o)=>{let l=s.value;Ci(i,l)&&(In(i,s),i[gr]||(l=void 0)),l&&r.call(o,l.value,l.key,i)};bf.exports=Sf});var Ye=L((wx,Nf)=>{var bn=class{constructor(r,s){if(s=mE(s),r instanceof bn)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new bn(r.raw,s);if(r instanceof pu)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(o=>this.parseRange(o.trim())).filter(o=>o.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let o=this.set[0];if(this.set=this.set.filter(l=>!Lf(l[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let l of this.set)if(l.length===1&&AE(l[0])){this.set=[l];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 o=`parseRange:${Object.keys(this.options).join(",")}:${r}`,l=Tf.get(o);if(l)return l;let a=this.options.loose,_=a?we[ve.HYPHENRANGELOOSE]:we[ve.HYPHENRANGE];r=r.replace(_,NE(this.options.includePrerelease)),le("hyphen replace",r),r=r.replace(we[ve.COMPARATORTRIM],yE),le("comparator trim",r,we[ve.COMPARATORTRIM]),r=r.replace(we[ve.TILDETRIM],wE),r=r.replace(we[ve.CARETTRIM],xE),r=r.split(/\s+/).join(" ");let E=a?we[ve.COMPARATORLOOSE]:we[ve.COMPARATOR],y=r.split(" ").map(T=>OE(T,this.options)).join(" ").split(/\s+/).map(T=>$E(T,this.options)).filter(this.options.loose?T=>!!T.match(E):()=>!0).map(T=>new pu(T,this.options)),p=y.length,x=new Map;for(let T of y){if(Lf(T))return[T];x.set(T.value,T)}x.size>1&&x.has("")&&x.delete("");let I=[...x.values()];return Tf.set(o,I),I}intersects(r,s){if(!(r instanceof bn))throw new TypeError("a Range is required");return this.set.some(o=>$f(o,s)&&r.set.some(l=>$f(l,s)&&o.every(a=>l.every(_=>a.intersects(_,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new EE(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(PE(this.set[s],r,this.options))return!0;return!1}};Nf.exports=bn;var vE=Cf(),Tf=new vE({max:1e3}),mE=cr(),pu=_r(),le=fr(),EE=ye(),{re:we,t:ve,comparatorTrimReplace:yE,tildeTrimReplace:wE,caretTrimReplace:xE}=Jt(),Lf=i=>i.value==="<0.0.0-0",AE=i=>i.value==="",$f=(i,r)=>{let s=!0,o=i.slice(),l=o.pop();for(;s&&o.length;)s=o.every(a=>l.intersects(a,r)),l=o.pop();return s},OE=(i,r)=>(le("comp",i,r),i=IE(i,r),le("caret",i),i=SE(i,r),le("tildes",i),i=CE(i,r),le("xrange",i),i=LE(i,r),le("stars",i),i),Se=i=>!i||i.toLowerCase()==="x"||i==="*",SE=(i,r)=>i.trim().split(/\s+/).map(s=>RE(s,r)).join(" "),RE=(i,r)=>{let s=r.loose?we[ve.TILDELOOSE]:we[ve.TILDE];return i.replace(s,(o,l,a,_,E)=>{le("tilde",i,o,l,a,_,E);let y;return Se(l)?y="":Se(a)?y=`>=${l}.0.0 <${+l+1}.0.0-0`:Se(_)?y=`>=${l}.${a}.0 <${l}.${+a+1}.0-0`:E?(le("replaceTilde pr",E),y=`>=${l}.${a}.${_}-${E} <${l}.${+a+1}.0-0`):y=`>=${l}.${a}.${_} <${l}.${+a+1}.0-0`,le("tilde return",y),y})},IE=(i,r)=>i.trim().split(/\s+/).map(s=>bE(s,r)).join(" "),bE=(i,r)=>{le("caret",i,r);let s=r.loose?we[ve.CARETLOOSE]:we[ve.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(l,a,_,E,y)=>{le("caret",i,l,a,_,E,y);let p;return Se(a)?p="":Se(_)?p=`>=${a}.0.0${o} <${+a+1}.0.0-0`:Se(E)?a==="0"?p=`>=${a}.${_}.0${o} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.0${o} <${+a+1}.0.0-0`:y?(le("replaceCaret pr",y),a==="0"?_==="0"?p=`>=${a}.${_}.${E}-${y} <${a}.${_}.${+E+1}-0`:p=`>=${a}.${_}.${E}-${y} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.${E}-${y} <${+a+1}.0.0-0`):(le("no pr"),a==="0"?_==="0"?p=`>=${a}.${_}.${E}${o} <${a}.${_}.${+E+1}-0`:p=`>=${a}.${_}.${E}${o} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.${E} <${+a+1}.0.0-0`),le("caret return",p),p})},CE=(i,r)=>(le("replaceXRanges",i,r),i.split(/\s+/).map(s=>TE(s,r)).join(" ")),TE=(i,r)=>{i=i.trim();let s=r.loose?we[ve.XRANGELOOSE]:we[ve.XRANGE];return i.replace(s,(o,l,a,_,E,y)=>{le("xRange",i,o,l,a,_,E,y);let p=Se(a),x=p||Se(_),I=x||Se(E),T=I;return l==="="&&T&&(l=""),y=r.includePrerelease?"-0":"",p?l===">"||l==="<"?o="<0.0.0-0":o="*":l&&T?(x&&(_=0),E=0,l===">"?(l=">=",x?(a=+a+1,_=0,E=0):(_=+_+1,E=0)):l==="<="&&(l="<",x?a=+a+1:_=+_+1),l==="<"&&(y="-0"),o=`${l+a}.${_}.${E}${y}`):x?o=`>=${a}.0.0${y} <${+a+1}.0.0-0`:I&&(o=`>=${a}.${_}.0${y} <${a}.${+_+1}.0-0`),le("xRange return",o),o})},LE=(i,r)=>(le("replaceStars",i,r),i.trim().replace(we[ve.STAR],"")),$E=(i,r)=>(le("replaceGTE0",i,r),i.trim().replace(we[r.includePrerelease?ve.GTE0PRE:ve.GTE0],"")),NE=i=>(r,s,o,l,a,_,E,y,p,x,I,T,D)=>(Se(o)?s="":Se(l)?s=`>=${o}.0.0${i?"-0":""}`:Se(a)?s=`>=${o}.${l}.0${i?"-0":""}`:_?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,Se(p)?y="":Se(x)?y=`<${+p+1}.0.0-0`:Se(I)?y=`<${p}.${+x+1}.0-0`:T?y=`<=${p}.${x}.${I}-${T}`:i?y=`<${p}.${x}.${+I+1}-0`:y=`<=${y}`,`${s} ${y}`.trim()),PE=(i,r,s)=>{for(let o=0;o<i.length;o++)if(!i[o].test(r))return!1;if(r.prerelease.length&&!s.includePrerelease){for(let o=0;o<i.length;o++)if(le(i[o].semver),i[o].semver!==pu.ANY&&i[o].semver.prerelease.length>0){let l=i[o].semver;if(l.major===r.major&&l.minor===r.minor&&l.patch===r.patch)return!0}return!1}return!0}});var _r=L((xx,Mf)=>{var vr=Symbol("SemVer ANY"),mr=class{static get ANY(){return vr}constructor(r,s){if(s=DE(s),r instanceof mr){if(r.loose===!!s.loose)return r;r=r.value}du("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===vr?this.value="":this.value=this.operator+this.semver.version,du("comp",this)}parse(r){let s=this.options.loose?Pf[Df.COMPARATORLOOSE]:Pf[Df.COMPARATOR],o=r.match(s);if(!o)throw new TypeError(`Invalid comparator: ${r}`);this.operator=o[1]!==void 0?o[1]:"",this.operator==="="&&(this.operator=""),o[2]?this.semver=new qf(o[2],this.options.loose):this.semver=vr}toString(){return this.value}test(r){if(du("Comparator.test",r,this.options.loose),this.semver===vr||r===vr)return!0;if(typeof r=="string")try{r=new qf(r,this.options)}catch{return!1}return gu(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof mr))throw new TypeError("a Comparator is required");if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Ff(r.value,s).test(this.value);if(r.operator==="")return r.value===""?!0:new Ff(this.value,s).test(r.semver);let o=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),l=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),a=this.semver.version===r.semver.version,_=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),E=gu(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),y=gu(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||l||a&&_||E||y}};Mf.exports=mr;var DE=cr(),{re:Pf,t:Df}=Jt(),gu=fu(),du=fr(),qf=ye(),Ff=Ye()});var Er=L((Ax,Hf)=>{var qE=Ye(),FE=(i,r,s)=>{try{r=new qE(r,s)}catch{return!1}return r.test(i)};Hf.exports=FE});var Gf=L((Ox,Wf)=>{var ME=Ye(),HE=(i,r)=>new ME(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));Wf.exports=HE});var Bf=L((Sx,Uf)=>{var WE=ye(),GE=Ye(),UE=(i,r,s)=>{let o=null,l=null,a=null;try{a=new GE(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||l.compare(_)===-1)&&(o=_,l=new WE(o,s))}),o};Uf.exports=UE});var zf=L((Rx,Xf)=>{var BE=ye(),XE=Ye(),zE=(i,r,s)=>{let o=null,l=null,a=null;try{a=new XE(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||l.compare(_)===1)&&(o=_,l=new BE(o,s))}),o};Xf.exports=zE});var Yf=L((Ix,jf)=>{var _u=ye(),VE=Ye(),Vf=pr(),jE=(i,r)=>{i=new VE(i,r);let s=new _u("0.0.0");if(i.test(s)||(s=new _u("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){let l=i.set[o],a=null;l.forEach(_=>{let E=new _u(_.semver.version);switch(_.operator){case">":E.prerelease.length===0?E.patch++:E.prerelease.push(0),E.raw=E.format();case"":case">=":(!a||Vf(E,a))&&(a=E);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${_.operator}`)}}),a&&(!s||Vf(s,a))&&(s=a)}return s&&i.test(s)?s:null};jf.exports=jE});var kf=L((bx,Kf)=>{var YE=Ye(),KE=(i,r)=>{try{return new YE(i,r).range||"*"}catch{return null}};Kf.exports=KE});var Ti=L((Cx,ec)=>{var kE=ye(),Zf=_r(),{ANY:ZE}=Zf,JE=Ye(),QE=Er(),Jf=pr(),Qf=Oi(),ey=Ri(),ty=Si(),ny=(i,r,s,o)=>{i=new kE(i,o),r=new JE(r,o);let l,a,_,E,y;switch(s){case">":l=Jf,a=ey,_=Qf,E=">",y=">=";break;case"<":l=Qf,a=ty,_=Jf,E="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(QE(i,r,o))return!1;for(let p=0;p<r.set.length;++p){let x=r.set[p],I=null,T=null;if(x.forEach(D=>{D.semver===ZE&&(D=new Zf(">=0.0.0")),I=I||D,T=T||D,l(D.semver,I.semver,o)?I=D:_(D.semver,T.semver,o)&&(T=D)}),I.operator===E||I.operator===y||(!T.operator||T.operator===E)&&a(i,T.semver))return!1;if(T.operator===y&&_(i,T.semver))return!1}return!0};ec.exports=ny});var nc=L((Tx,tc)=>{var ry=Ti(),iy=(i,r,s)=>ry(i,r,">",s);tc.exports=iy});var ic=L((Lx,rc)=>{var sy=Ti(),uy=(i,r,s)=>sy(i,r,"<",s);rc.exports=uy});var oc=L(($x,uc)=>{var sc=Ye(),oy=(i,r,s)=>(i=new sc(i,s),r=new sc(r,s),i.intersects(r));uc.exports=oy});var lc=L((Nx,ac)=>{var ay=Er(),ly=je();ac.exports=(i,r,s)=>{let o=[],l=null,a=null,_=i.sort((x,I)=>ly(x,I,s));for(let x of _)ay(x,r,s)?(a=x,l||(l=x)):(a&&o.push([l,a]),a=null,l=null);l&&o.push([l,null]);let E=[];for(let[x,I]of o)x===I?E.push(x):!I&&x===_[0]?E.push("*"):I?x===_[0]?E.push(`<=${I}`):E.push(`${x} - ${I}`):E.push(`>=${x}`);let y=E.join(" || "),p=typeof r.raw=="string"?r.raw:String(r);return y.length<p.length?y:r}});var gc=L((Px,pc)=>{var fc=Ye(),Li=_r(),{ANY:vu}=Li,yr=Er(),mu=je(),fy=(i,r,s={})=>{if(i===r)return!0;i=new fc(i,s),r=new fc(r,s);let o=!1;e:for(let l of i.set){for(let a of r.set){let _=cy(l,a,s);if(o=o||_!==null,_)continue e}if(o)return!1}return!0},cy=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===vu){if(r.length===1&&r[0].semver===vu)return!0;s.includePrerelease?i=[new Li(">=0.0.0-0")]:i=[new Li(">=0.0.0")]}if(r.length===1&&r[0].semver===vu){if(s.includePrerelease)return!0;r=[new Li(">=0.0.0")]}let o=new Set,l,a;for(let D of i)D.operator===">"||D.operator===">="?l=cc(l,D,s):D.operator==="<"||D.operator==="<="?a=hc(a,D,s):o.add(D.semver);if(o.size>1)return null;let _;if(l&&a){if(_=mu(l.semver,a.semver,s),_>0)return null;if(_===0&&(l.operator!==">="||a.operator!=="<="))return null}for(let D of o){if(l&&!yr(D,String(l),s)||a&&!yr(D,String(a),s))return null;for(let ue of r)if(!yr(D,String(ue),s))return!1;return!0}let E,y,p,x,I=a&&!s.includePrerelease&&a.semver.prerelease.length?a.semver:!1,T=l&&!s.includePrerelease&&l.semver.prerelease.length?l.semver:!1;I&&I.prerelease.length===1&&a.operator==="<"&&I.prerelease[0]===0&&(I=!1);for(let D of r){if(x=x||D.operator===">"||D.operator===">=",p=p||D.operator==="<"||D.operator==="<=",l){if(T&&D.semver.prerelease&&D.semver.prerelease.length&&D.semver.major===T.major&&D.semver.minor===T.minor&&D.semver.patch===T.patch&&(T=!1),D.operator===">"||D.operator===">="){if(E=cc(l,D,s),E===D&&E!==l)return!1}else if(l.operator===">="&&!yr(l.semver,String(D),s))return!1}if(a){if(I&&D.semver.prerelease&&D.semver.prerelease.length&&D.semver.major===I.major&&D.semver.minor===I.minor&&D.semver.patch===I.patch&&(I=!1),D.operator==="<"||D.operator==="<="){if(y=hc(a,D,s),y===D&&y!==a)return!1}else if(a.operator==="<="&&!yr(a.semver,String(D),s))return!1}if(!D.operator&&(a||l)&&_!==0)return!1}return!(l&&p&&!a&&_!==0||a&&x&&!l&&_!==0||T||I)},cc=(i,r,s)=>{if(!i)return r;let o=mu(i.semver,r.semver,s);return o>0?i:o<0||r.operator===">"&&i.operator===">="?r:i},hc=(i,r,s)=>{if(!i)return r;let o=mu(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};pc.exports=fy});var _c=L((Dx,dc)=>{var Eu=Jt();dc.exports={re:Eu.re,src:Eu.src,tokens:Eu.t,SEMVER_SPEC_VERSION:lr().SEMVER_SPEC_VERSION,SemVer:ye(),compareIdentifiers:Ei().compareIdentifiers,rcompareIdentifiers:Ei().rcompareIdentifiers,parse:Qt(),valid:Dl(),clean:Fl(),inc:Hl(),diff:zl(),major:jl(),minor:Kl(),patch:Zl(),prerelease:Ql(),compare:je(),rcompare:tf(),compareLoose:rf(),compareBuild:Ai(),sort:af(),rsort:ff(),gt:pr(),lt:Oi(),eq:xi(),neq:lu(),gte:Si(),lte:Ri(),cmp:fu(),coerce:mf(),Comparator:_r(),Range:Ye(),satisfies:Er(),toComparators:Gf(),maxSatisfying:Bf(),minSatisfying:zf(),minVersion:Yf(),validRange:kf(),outside:Ti(),gtr:nc(),ltr:ic(),intersects:oc(),simplifyRange:lc(),subset:gc()}});var lt=L(rn=>{"use strict";var vc=rn&&rn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(rn,"__esModule",{value:!0});rn.getCoreVersion=void 0;var mc=vc(require("path")),Ec=vc(require("fs")),hy=_c(),py=require("@serverless-devs/core"),yc=mc.default.join(py.getRootHome(),"cache","core"),yu=mc.default.join(yc,"package.json");function gy(){if(Ec.default.existsSync(yu)){var i=require("@serverless-devs/core/package.json").version,r=wc();return hy.gt(r,i)?require(yc):require("@serverless-devs/core")}return require("@serverless-devs/core")}function wc(){return Ec.default.existsSync(yu)?require(yu).version:void 0}rn.getCoreVersion=wc;rn.default=gy()});var xc=L((Fx,dy)=>{dy.exports={name:"@serverless-devs/s",version:"2.0.99",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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 Rc=L(Rt=>{"use strict";var Ac=Rt&&Rt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.getHistoryFile=Rt.getHomeDir=void 0;var _y=Ac(require("path")),Oc=Ac(lt()),$i=Oc.default.fse,vy=Oc.default.getRootHome;function wu(){var i=vy();return $i.existsSync(i)||$i.mkdirSync(i),i}Rt.getHomeDir=wu;function Sc(){var i=_y.default.join(wu(),"history");return $i.existsSync(i)||$i.createFileSync(i),i}Rt.getHistoryFile=Sc;Rt.default={getHomeDir:wu,getHistoryFile:Sc}});var Pc=L(Re=>{"use strict";var my=Re&&Re.__awaiter||function(i,r,s,o){function l(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function E(x){try{p(o.next(x))}catch(I){_(I)}}function y(x){try{p(o.throw(x))}catch(I){_(I)}}function p(x){x.done?a(x.value):l(x.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Ey=Re&&Re.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(p){return function(x){return y([p,x])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,l=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(x){p=[6,x],l=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},xu=Re&&Re.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Re,"__esModule",{value:!0});Re.handlerProfileFile=Re.getConfig=Re.setConfig=void 0;var Ic=xu(require("path")),yy=xu(Rc()),Au=xu(lt()),ft=Au.default.fse,Ni=Au.default.jsyaml,bc=Au.default.getRootHome;function wy(i){var r=Tc();ft.writeFileSync(r,Ni.dump(i))}function Cc(){var i=Tc();if(!ft.existsSync(i))return{};try{var r=Ni.load(ft.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Tc(){var i=Ic.default.join(yy.default.getHomeDir(),"set-config.yml");return ft.existsSync(i)||ft.createFileSync(i),i}function Lc(i,r){var s=Cc();s[i]=r,wy(s)}Re.setConfig=Lc;function $c(i,r){var s=Cc();return s[i]||r}Re.getConfig=$c;function Nc(i){return my(this,void 0,void 0,function(){var r,s,o,l,a,_,E;return Ey(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=Ic.default.join(bc(),r),o=ft.existsSync(s),l={},o)return[3,5];a=bc(),y.label=1;case 1:return y.trys.push([1,2,,4]),ft.statSync(a),[3,4];case 2:return _=y.sent(),[4,ft.mkdirSync(a)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{l=Ni.load(ft.readFileSync(s,"utf8"))||{}}catch(p){throw p}y.label=6;case 6:return i.read?[2,l]:(E=i.configKey||"",l[E]=i.data,[4,ft.writeFileSync(s,Ni.dump(l))]);case 7:return y.sent(),[2,l]}})})}Re.handlerProfileFile=Nc;Re.default={setConfig:Lc,getConfig:$c,handlerProfileFile:Nc}});var xr=L(H=>{"use strict";var xy=H&&H.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),Ay=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Oy=H&&H.__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)&&xy(r,i,s);return Ay(r,i),r},Ou=H&&H.__awaiter||function(i,r,s,o){function l(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function E(x){try{p(o.next(x))}catch(I){_(I)}}function y(x){try{p(o.throw(x))}catch(I){_(I)}}function p(x){x.done?a(x.value):l(x.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Su=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(p){return function(x){return y([p,x])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,l=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(x){p=[6,x],l=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Pi=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var de=Pi(require("path")),Fe=Pi(require("fs")),Ht=Pi(ml()),Sy=Pi(require("os")),Ry=bu(),Ke=Oy(lt()),sn=Ke.default.colors,Iy=Ke.default.jsyaml,by=Ke.default.makeUnderLine,Cy=Ke.default.got,Ty=Ke.default.Logger,Dc=Ke.default.isDebugMode,Ly=Ke.default.getMAC,$y=Ke.default.getYamlContent,Ny=Ke.default.isDocker,Py=Ke.default.isCiCdEnv,qc=xc(),Dy=Pc();H.red=sn.hex("#fd5750");H.yellow=sn.hex("#F3F99D");H.bgRed=sn.hex("#000").bgHex("#fd5750");var qy=function(i,r){if(!(Ny()||Py()))return Cy("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(i,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0}).then(function(s){var o=Ht.default.get(s.body,"shorturl");o&&console.log(`AI Tips:
|
|
35
35
|
You can try to solve the problem through: `.concat(sn.underline(o),`
|
|
36
|
-
`))}).catch(function(){})},Fy=function(i,r){return Ou(void 0,void 0,void 0,function(){var s,o,l,a,_,E,y,p,x,I,T,D;return Su(this,function(ue){switch(ue.label){case 0:if(s={traceId:"",catchableError:!1},o=function(){try{return Ly().replace(/:/g,"")}catch{return"unknown"}},l=(0,Dy.getConfig)("analysis"),l!=="disable"&&(s.traceId="".concat(o()).concat(Date.now())),a=Dc?Dc():void 0,a)return console.log(i),[2,s];_=i.message?i.message:"";try{E=JSON.parse(_)}catch{}return E&&E.tips?(y="Message: ".concat(E.message,`
|
|
37
|
-
`)
|
|
36
|
+
`))}).catch(function(){})},Fy=function(i,r){return Ou(void 0,void 0,void 0,function(){var s,o,l,a,_,E,y,p,x,I,T,D;return Su(this,function(ue){switch(ue.label){case 0:if(s={traceId:"",catchableError:!1},o=function(){try{return Ly().replace(/:/g,"")}catch{return"unknown"}},l=(0,Dy.getConfig)("analysis"),l!=="disable"&&(s.traceId="".concat(o()).concat(Date.now())),a=Dc?Dc():void 0,a)return console.log(i),[2,s];_=i.message?i.message:"";try{E=JSON.parse(_)}catch{}return E&&E.tips?(y=E.message?"Message: ".concat(E.message,`
|
|
37
|
+
`):"",p=E.tips?"* ".concat(by(E.tips.replace(/\n/,`
|
|
38
38
|
* `))):"",Ty.log(`
|
|
39
39
|
`.concat(sn.hex("#000").bgYellow("WARNING:"),`
|
|
40
40
|
======================
|
|
@@ -49,7 +49,7 @@ You can try to solve the problem through: `.concat(sn.underline(o),`
|
|
|
49
49
|
`.concat(Zc.hex("#000").bgYellow("WARNING:"))),console.log("".concat(s,`
|
|
50
50
|
`)),o&&console.log("".concat(Zc.gray(o),`
|
|
51
51
|
`))}return i}();Dn.HumanWarning=dw});var bu=L(te=>{"use strict";var _w=te&&te.__awaiter||function(i,r,s,o){function l(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function E(x){try{p(o.next(x))}catch(I){_(I)}}function y(x){try{p(o.throw(x))}catch(I){_(I)}}function p(x){x.done?a(x.value):l(x.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},vw=te&&te.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(p){return function(x){return y([p,x])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,l=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(x){p=[6,x],l=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},mw=te&&te.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(te,"__esModule",{value:!0});te.HandleError=te.HumanWarning=te.HumanError=te.ServerlessError=te.InitError=te.ConfigGetError=te.ConfigError=te.ConfigDeleteError=te.CommandError=void 0;var Ew=xr(),Qc=mw(lt()),yw=xr(),qn=Qc.default.colors,ww=Qc.default.report,xw=Xc();Object.defineProperty(te,"CommandError",{enumerable:!0,get:function(){return xw.CommandError}});var Aw=zc();Object.defineProperty(te,"ConfigDeleteError",{enumerable:!0,get:function(){return Aw.ConfigDeleteError}});var Ow=Vc();Object.defineProperty(te,"ConfigError",{enumerable:!0,get:function(){return Ow.ConfigError}});var Sw=jc();Object.defineProperty(te,"ConfigGetError",{enumerable:!0,get:function(){return Sw.ConfigGetError}});var Rw=Yc();Object.defineProperty(te,"InitError",{enumerable:!0,get:function(){return Rw.InitError}});var Iw=un();Object.defineProperty(te,"ServerlessError",{enumerable:!0,get:function(){return Iw.ServerlessError}});var bw=kc();Object.defineProperty(te,"HumanError",{enumerable:!0,get:function(){return bw.HumanError}});var Cw=Jc();Object.defineProperty(te,"HumanWarning",{enumerable:!0,get:function(){return Cw.HumanWarning}});function Cu(i,r){return"".concat(qn.gray(i)).concat(qn.gray.underline(r))}var Tw=function(i){return _w(void 0,void 0,void 0,function(){var r,s,o,l,a,_;return vw(this,function(E){switch(E.label){case 0:return r=i.error,s=i.prefix,o=s===void 0?"Message:":s,[4,(0,yw.getErrorMessage)(r,o)];case 1:return l=E.sent(),a=l.traceId,_=l.catchableError,_||(a&&console.log(qn.gray("TraceId: ".concat(a))),console.log(qn.gray("Environment: ".concat((0,Ew.getVersion)()))),console.log(Cu("Documents: ","https://www.serverless-devs.com")),console.log(Cu("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(Cu("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
|
|
52
|
-
`)),a&&console.log(qn.gray("Please copy traceId: ".concat(a," and join Dingding group: 33947367 for consultation.")))),console.log(qn.gray("You can run 's clean --all' to clean Serverless devs.")),a
|
|
52
|
+
`)),a&&console.log(qn.gray("Please copy traceId: ".concat(a," and join Dingding group: 33947367 for consultation.")))),console.log(qn.gray("You can run 's clean --all' to clean Serverless devs.")),a&&!_?[4,ww({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:a})]:[3,3];case 2:E.sent(),E.label=3;case 3:return[2]}})})};te.HandleError=Tw});var th=L(Ar=>{"use strict";var Lw=Ar&&Ar.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ar,"__esModule",{value:!0});var eh=Lw(lt()),$w=eh.default.Logger,Nw=eh.default.spinner,on=new $w("S-CLI"),Pw=function(){function i(){}return i.log=function(r){on.log(r)},i.info=function(r){on.info(r)},i.debug=function(r){on.debug(r)},i.error=function(r){on.error(r)},i.warning=function(r){on.warn(r)},i.success=function(r){on.log(r,"green")},i.spinner=function(r){return Nw(r)},i.output=function(r){return on.output(r)},i}();Ar.default=Pw});var Dw=exports&&exports.__awaiter||function(i,r,s,o){function l(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function E(x){try{p(o.next(x))}catch(I){_(I)}}function y(x){try{p(o.throw(x))}catch(I){_(I)}}function p(x){x.done?a(x.value):l(x.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},qw=exports&&exports.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(p){return function(x){return y([p,x])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,l=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(x){p=[6,x],l=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Di=exports&&exports.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(exports,"__esModule",{value:!0});var qi=Di(vl()),nh=bu(),rh=Di(th()),Or=Di(lt()),ih=xr(),Fw=Or.default.inquirer,Mw=Or.default.getRootHome,Hw=Or.default.colors,sh=Or.default.setConfig,Ww=Or.default.formatWorkspacePath,uh=Di(require("path")),Gw=`Set workspace path. Switching workspaces may make previously cached components and configured key information unavailable.
|
|
53
53
|
|
|
54
54
|
Example:
|
|
55
55
|
$ s set workspace
|