@serverless-devs/s 2.0.100-beta.4 → 2.0.100-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clean/index.js +1 -1
- package/lib/cli/index.js +1 -1
- package/lib/component/index.js +1 -1
- package/lib/config/add/index.js +1 -1
- package/lib/config/delete/index.js +1 -1
- package/lib/config/get/index.js +1 -1
- package/lib/config/index.js +1 -1
- package/lib/help/index.js +20 -13
- package/lib/index.js +13 -13
- package/lib/init/index.js +1 -1
- package/lib/set/analysis/index.js +1 -1
- package/lib/set/index.js +1 -1
- package/lib/set/locale/index.js +1 -1
- package/lib/set/registry/index.js +1 -1
- package/lib/set/workspace/index.js +1 -1
- package/lib/update-notifier/index.js +1 -1
- package/package.json +1 -1
package/lib/config/add/index.js
CHANGED
|
@@ -31,7 +31,7 @@ __p += '`),z&&(O+=`' +
|
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+O+`return __p
|
|
34
|
-
}`;var B=hl(function(){return Y(h,N+"return "+O).apply(i,g)});if(B.source=O,Vs(B))throw B;return B}function sm(e){return Z(e).toLowerCase()}function um(e){return Z(e).toUpperCase()}function om(e,t,n){if(e=Z(e),e&&(n||t===i))return wo(e);if(!e||!(t=Ne(t)))return e;var u=rt(e),l=rt(t),h=Ao(u,l),g=xo(u,l)+1;return Wt(u,h,g).join("")}function am(e,t,n){if(e=Z(e),e&&(n||t===i))return e.slice(0,bo(e)+1);if(!e||!(t=Ne(t)))return e;var u=rt(e),l=xo(u,rt(t))+1;return Wt(u,0,l).join("")}function lm(e,t,n){if(e=Z(e),e&&(n||t===i))return e.replace(Vi,"");if(!e||!(t=Ne(t)))return e;var u=rt(e),l=Ao(u,rt(t));return Wt(u,l).join("")}function cm(e,t){var n=rh,u=ih;if(ie(t)){var l="separator"in t?t.separator:l;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=rt(e);h=g.length}if(n>=h)return e;var _=n-dn(u);if(_<1)return u;var m=g?Wt(g,0,_).join(""):e.slice(0,_);if(l===i)return m+u;if(g&&(_+=m.length-_),Ys(l)){if(e.slice(_).search(l)){var S,b=m;for(l.global||(l=hs(l.source,Z(Uu.exec(l))+"g")),l.lastIndex=0;S=l.exec(b);)var O=S.index;m=m.slice(0,O===i?_:O)}}else if(e.indexOf(Ne(l),_)!=_){var C=m.lastIndexOf(l);C>-1&&(m=m.slice(0,C))}return m+u}function fm(e){return e=Z(e),e&&Ah.test(e)?e.replace(Hu,Wp):e}var hm=wn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Qs=pa("toUpperCase");function fl(e,t,n){return e=Z(e),t=n?i:t,t===i?Np(e)?Bp(e):Op(e):e.match(t)||[]}var hl=j(function(e,t){try{return $e(e,i,t)}catch(n){return Vs(n)?n:new W(n)}}),pm=At(function(e,t){return Ue(t,function(n){n=ft(n),Et(e,n,Xs(e[n],e))}),e});function gm(e){var t=e==null?0:e.length,n=F();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new Be(c);return[n(u[0]),u[1]]}):[],j(function(u){for(var l=-1;++l<t;){var h=e[l];if($e(h[0],this,u))return $e(h[1],this,u)}})}function dm(e){return Wg(je(e,p))}function eu(e){return function(){return e}}function _m(e,t){return e==null||e!==e?t:e}var vm=da(),mm=da(!0);function Le(e){return e}function tu(e){return jo(typeof e=="function"?e:je(e,p))}function ym(e){return Xo(je(e,p))}function Em(e,t){return zo(e,je(t,p))}var wm=j(function(e,t){return function(n){return tr(n,e,t)}}),Am=j(function(e,t){return function(n){return tr(e,n,t)}});function nu(e,t,n){var u=pe(t),l=ei(t,u);n==null&&!(ie(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=ei(t,pe(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=St(e);return Ue(l,function(_){var m=t[_];e[_]=m,g&&(e.prototype[_]=function(){var S=this.__chain__;if(h||S){var b=e(this.__wrapped__),O=b.__actions__=Ie(this.__actions__);return O.push({func:m,args:arguments,thisArg:e}),b.__chain__=S,b}return m.apply(e,$t([this.value()],arguments))})}),e}function xm(){return he._===this&&(he._=Vp),this}function ru(){}function Sm(e){return e=U(e),j(function(t){return Vo(t,e)})}var bm=Ps(re),Om=Ps(_o),Im=Ps(ss);function pl(e){return Gs(e)?us(ft(e)):rd(e)}function Cm(e){return function(t){return e==null?i:Yt(e,t)}}var Rm=va(),Lm=va(!0);function iu(){return[]}function su(){return!1}function Tm(){return{}}function Dm(){return""}function $m(){return!0}function Pm(e,t){if(e=U(e),e<1||e>Tt)return[];var n=at,u=ye(e,at);t=F(t),e-=at;for(var l=ls(u,t);++n<e;)t(n);return l}function Nm(e){return G(e)?re(e,ft):qe(e)?[e]:Ie($a(Z(e)))}function qm(e){var t=++Xp;return Z(e)+t}var Fm=ui(function(e,t){return e+t},0),Mm=Ns("ceil"),Hm=ui(function(e,t){return e/t},1),Wm=Ns("floor");function Gm(e){return e&&e.length?Qr(e,Le,Es):i}function Um(e,t){return e&&e.length?Qr(e,F(t,2),Es):i}function Bm(e){return yo(e,Le)}function Km(e,t){return yo(e,F(t,2))}function jm(e){return e&&e.length?Qr(e,Le,Ss):i}function km(e,t){return e&&e.length?Qr(e,F(t,2),Ss):i}var Xm=ui(function(e,t){return e*t},1),zm=Ns("round"),Vm=ui(function(e,t){return e-t},0);function Ym(e){return e&&e.length?as(e,Le):0}function Zm(e,t){return e&&e.length?as(e,F(t,2)):0}return f.after=yv,f.ary=Ka,f.assign=u0,f.assignIn=il,f.assignInWith=yi,f.assignWith=o0,f.at=a0,f.before=ja,f.bind=Xs,f.bindAll=pm,f.bindKey=ka,f.castArray=Tv,f.chain=Ga,f.chunk=Wd,f.compact=Gd,f.concat=Ud,f.cond=gm,f.conforms=dm,f.constant=eu,f.countBy=Y_,f.create=l0,f.curry=Xa,f.curryRight=za,f.debounce=Va,f.defaults=c0,f.defaultsDeep=f0,f.defer=Ev,f.delay=wv,f.difference=Bd,f.differenceBy=Kd,f.differenceWith=jd,f.drop=kd,f.dropRight=Xd,f.dropRightWhile=zd,f.dropWhile=Vd,f.fill=Yd,f.filter=J_,f.flatMap=tv,f.flatMapDeep=nv,f.flatMapDepth=rv,f.flatten=Fa,f.flattenDeep=Zd,f.flattenDepth=Jd,f.flip=Av,f.flow=vm,f.flowRight=mm,f.fromPairs=Qd,f.functions=m0,f.functionsIn=y0,f.groupBy=iv,f.initial=t_,f.intersection=n_,f.intersectionBy=r_,f.intersectionWith=i_,f.invert=w0,f.invertBy=A0,f.invokeMap=uv,f.iteratee=tu,f.keyBy=ov,f.keys=pe,f.keysIn=Re,f.map=pi,f.mapKeys=S0,f.mapValues=b0,f.matches=ym,f.matchesProperty=Em,f.memoize=di,f.merge=O0,f.mergeWith=sl,f.method=wm,f.methodOf=Am,f.mixin=nu,f.negate=_i,f.nthArg=Sm,f.omit=I0,f.omitBy=C0,f.once=xv,f.orderBy=av,f.over=bm,f.overArgs=Sv,f.overEvery=Om,f.overSome=Im,f.partial=zs,f.partialRight=Ya,f.partition=lv,f.pick=R0,f.pickBy=ul,f.property=pl,f.propertyOf=Cm,f.pull=a_,f.pullAll=Ha,f.pullAllBy=l_,f.pullAllWith=c_,f.pullAt=f_,f.range=Rm,f.rangeRight=Lm,f.rearg=bv,f.reject=hv,f.remove=h_,f.rest=Ov,f.reverse=js,f.sampleSize=gv,f.set=T0,f.setWith=D0,f.shuffle=dv,f.slice=p_,f.sortBy=mv,f.sortedUniq=E_,f.sortedUniqBy=w_,f.split=tm,f.spread=Iv,f.tail=A_,f.take=x_,f.takeRight=S_,f.takeRightWhile=b_,f.takeWhile=O_,f.tap=G_,f.throttle=Cv,f.thru=hi,f.toArray=tl,f.toPairs=ol,f.toPairsIn=al,f.toPath=Nm,f.toPlainObject=rl,f.transform=$0,f.unary=Rv,f.union=I_,f.unionBy=C_,f.unionWith=R_,f.uniq=L_,f.uniqBy=T_,f.uniqWith=D_,f.unset=P0,f.unzip=ks,f.unzipWith=Wa,f.update=N0,f.updateWith=q0,f.values=Sn,f.valuesIn=F0,f.without=$_,f.words=fl,f.wrap=Lv,f.xor=P_,f.xorBy=N_,f.xorWith=q_,f.zip=F_,f.zipObject=M_,f.zipObjectDeep=H_,f.zipWith=W_,f.entries=ol,f.entriesIn=al,f.extend=il,f.extendWith=yi,nu(f,f),f.add=Fm,f.attempt=hl,f.camelCase=G0,f.capitalize=ll,f.ceil=Mm,f.clamp=M0,f.clone=Dv,f.cloneDeep=Pv,f.cloneDeepWith=Nv,f.cloneWith=$v,f.conformsTo=qv,f.deburr=cl,f.defaultTo=_m,f.divide=Hm,f.endsWith=U0,f.eq=st,f.escape=B0,f.escapeRegExp=K0,f.every=Z_,f.find=Q_,f.findIndex=Na,f.findKey=h0,f.findLast=ev,f.findLastIndex=qa,f.findLastKey=p0,f.floor=Wm,f.forEach=Ua,f.forEachRight=Ba,f.forIn=g0,f.forInRight=d0,f.forOwn=_0,f.forOwnRight=v0,f.get=Zs,f.gt=Fv,f.gte=Mv,f.has=E0,f.hasIn=Js,f.head=Ma,f.identity=Le,f.includes=sv,f.indexOf=e_,f.inRange=H0,f.invoke=x0,f.isArguments=Qt,f.isArray=G,f.isArrayBuffer=Hv,f.isArrayLike=Ce,f.isArrayLikeObject=ue,f.isBoolean=Wv,f.isBuffer=Gt,f.isDate=Gv,f.isElement=Uv,f.isEmpty=Bv,f.isEqual=Kv,f.isEqualWith=jv,f.isError=Vs,f.isFinite=kv,f.isFunction=St,f.isInteger=Za,f.isLength=vi,f.isMap=Ja,f.isMatch=Xv,f.isMatchWith=zv,f.isNaN=Vv,f.isNative=Yv,f.isNil=Jv,f.isNull=Zv,f.isNumber=Qa,f.isObject=ie,f.isObjectLike=se,f.isPlainObject=or,f.isRegExp=Ys,f.isSafeInteger=Qv,f.isSet=el,f.isString=mi,f.isSymbol=qe,f.isTypedArray=xn,f.isUndefined=e0,f.isWeakMap=t0,f.isWeakSet=n0,f.join=s_,f.kebabCase=j0,f.last=Xe,f.lastIndexOf=u_,f.lowerCase=k0,f.lowerFirst=X0,f.lt=r0,f.lte=i0,f.max=Gm,f.maxBy=Um,f.mean=Bm,f.meanBy=Km,f.min=jm,f.minBy=km,f.stubArray=iu,f.stubFalse=su,f.stubObject=Tm,f.stubString=Dm,f.stubTrue=$m,f.multiply=Xm,f.nth=o_,f.noConflict=xm,f.noop=ru,f.now=gi,f.pad=z0,f.padEnd=V0,f.padStart=Y0,f.parseInt=Z0,f.random=W0,f.reduce=cv,f.reduceRight=fv,f.repeat=J0,f.replace=Q0,f.result=L0,f.round=zm,f.runInContext=v,f.sample=pv,f.size=_v,f.snakeCase=em,f.some=vv,f.sortedIndex=g_,f.sortedIndexBy=d_,f.sortedIndexOf=__,f.sortedLastIndex=v_,f.sortedLastIndexBy=m_,f.sortedLastIndexOf=y_,f.startCase=nm,f.startsWith=rm,f.subtract=Vm,f.sum=Ym,f.sumBy=Zm,f.template=im,f.times=Pm,f.toFinite=bt,f.toInteger=U,f.toLength=nl,f.toLower=sm,f.toNumber=ze,f.toSafeInteger=s0,f.toString=Z,f.toUpper=um,f.trim=om,f.trimEnd=am,f.trimStart=lm,f.truncate=cm,f.unescape=fm,f.uniqueId=qm,f.upperCase=hm,f.upperFirst=Qs,f.each=Ua,f.eachRight=Ba,f.first=Ma,nu(f,function(){var e={};return lt(f,function(t,n){J.call(f.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),f.VERSION=r,Ue(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){f[e].placeholder=f}),Ue(["drop","take"],function(e,t){X.prototype[e]=function(n){n=n===i?1:fe(U(n),0);var u=this.__filtered__&&!t?new X(this):this.clone();return u.__filtered__?u.__takeCount__=ye(n,u.__takeCount__):u.__views__.push({size:ye(n,at),type:e+(u.__dir__<0?"Right":"")}),u},X.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Ue(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==qu||n==ah;X.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:F(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),Ue(["head","last"],function(e,t){var n="take"+(t?"Right":"");X.prototype[e]=function(){return this[n](1).value()[0]}}),Ue(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[n](1)}}),X.prototype.compact=function(){return this.filter(Le)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=j(function(e,t){return typeof e=="function"?new X(this):this.map(function(n){return tr(n,e,t)})}),X.prototype.reject=function(e){return this.filter(_i(F(e)))},X.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new X(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)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(at)},lt(X.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=f[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(f.prototype[t]=function(){var g=this.__wrapped__,_=u?[1]:arguments,m=g instanceof X,S=_[0],b=m||G(g),O=function(k){var z=l.apply(f,$t([k],_));return u&&C?z[0]:z};b&&n&&typeof S=="function"&&S.length!=1&&(m=b=!1);var C=this.__chain__,N=!!this.__actions__.length,M=h&&!C,B=m&&!N;if(!h&&b){g=B?g:new X(this);var H=e.apply(g,_);return H.__actions__.push({func:hi,args:[O],thisArg:i}),new Ke(H,C)}return M&&B?e.apply(this,_):(H=this.thru(O),M?u?H.value()[0]:H.value():H)})}),Ue(["pop","push","shift","sort","splice","unshift"],function(e){var t=Mr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],l)}return this[n](function(g){return t.apply(G(g)?g:[],l)})}}),lt(X.prototype,function(e,t){var n=f[t];if(n){var u=n.name+"";J.call(mn,u)||(mn[u]=[]),mn[u].push({name:t,func:n})}}),mn[si(i,et).name]=[{name:"wrapper",func:i}],X.prototype.clone=fg,X.prototype.reverse=hg,X.prototype.value=pg,f.prototype.at=U_,f.prototype.chain=B_,f.prototype.commit=K_,f.prototype.next=j_,f.prototype.plant=X_,f.prototype.reverse=z_,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=V_,f.prototype.first=f.prototype.head,zn&&(f.prototype[zn]=k_),f},Nt=Kp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(he._=Nt,define(function(){return Nt})):jt?((jt.exports=Nt)._=Nt,ts._=Nt):he._=Nt}).call(Cn)});var Iu=T(Te=>{"use strict";var _E=Te&&Te.__awaiter||function(i,r,s,o){function c(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function y(A){try{p(o.next(A))}catch(I){d(I)}}function E(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):c(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},vE=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,c,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,c&&(a=p[0]&2?c.return:p[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,p[1])).done)return a;switch(c=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++,c=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(A){p=[6,A],c=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},If=Te&&Te.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Te,"__esModule",{value:!0});Te.handlerProfileFile=Te.getConfig=Te.setConfig=void 0;var Cf=If(require("path")),bu=If(ht()),pt=bu.default.fse,Pi=bu.default.jsyaml,Ou=bu.default.getRootHome;function mE(i){var r=Lf();pt.writeFileSync(r,Pi.dump(i))}function Rf(){var i=Lf();if(!pt.existsSync(i))return{};try{var r=Pi.load(pt.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Lf(){var i=Cf.default.join(Ou(),"set-config.yml");return pt.existsSync(i)||pt.createFileSync(i),i}function yE(i,r){var s=Rf();s[i]=r,mE(s)}Te.setConfig=yE;function EE(i,r){var s=Rf();return s[i]||r}Te.getConfig=EE;function wE(i){return _E(this,void 0,void 0,function(){var r,s,o,c,a,d,y;return vE(this,function(E){switch(E.label){case 0:if(r=i.filePath||"set-config.yml",s=Cf.default.join(Ou(),r),o=pt.existsSync(s),c={},o)return[3,5];a=Ou(),E.label=1;case 1:return E.trys.push([1,2,,4]),pt.statSync(a),[3,4];case 2:return d=E.sent(),[4,pt.mkdirSync(a)];case 3:return E.sent(),[3,4];case 4:return[3,6];case 5:try{c=Pi.load(pt.readFileSync(s,"utf8"))||{}}catch(p){throw p}E.label=6;case 6:return i.read?[2,c]:(y=i.configKey||"",c[y]=i.data,[4,pt.writeFileSync(s,Pi.dump(c))]);case 7:return E.sent(),[2,c]}})})}Te.handlerProfileFile=wE});var Tf=T((ex,AE)=>{AE.exports={name:"@serverless-devs/s",version:"2.0.100-beta.4",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/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.4.7","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.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var qi=T(q=>{"use strict";var xE=q&&q.__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]}),SE=q&&q.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),bE=q&&q.__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)&&xE(r,i,s);return SE(r,i),r},Rn=q&&q.__awaiter||function(i,r,s,o){function c(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function y(A){try{p(o.next(A))}catch(I){d(I)}}function E(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):c(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},Ln=q&&q.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,c,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,c&&(a=p[0]&2?c.return:p[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,p[1])).done)return a;switch(c=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++,c=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(A){p=[6,A],c=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Cu=q&&q.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(q,"__esModule",{value:!0});q.emoji=q.mark=q.replaceTemplate=q.getTemplatekey=q.replaceFun=q.getLang=q.printn=q.getFolderSize=q.getVersion=q.getPid=q.aiRequest=q.getCredentialWithAll=q.getCredentialWithExisted=q.getCredentialAliasList=q.getProcessArgv=q.bgRed=q.yellow=q.red=void 0;var Df=Cu(require("path")),Sr=Cu(require("fs")),Je=Of(),OE=Cu(require("os")),Qe=bE(ht()),IE=Iu(),$f=Tf(),Ni=Qe.default.colors,CE=Qe.default.got,RE=Qe.default.getMAC,LE=Qe.default.isDocker,TE=Qe.default.isCiCdEnv,DE=Qe.default.getGlobalArgs,$E=Qe.default.getYamlContent,PE=Qe.default.getRootHome,Pf=Qe.default.getCredential,NE=Qe.default.getCredentialFromEnv;q.red=Ni.hex("#fd5750");q.yellow=Ni.hex("#F3F99D");q.bgRed=Ni.hex("#000").bgHex("#fd5750");var qE=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=DE(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Je.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Je.filter)(s._argsObj,function(o){return!(0,Je.includes)(["-h","--help"],o)}))})}catch{return{}}};q.getProcessArgv=qE;var FE=function(){return Rn(void 0,void 0,void 0,function(){var i,r,s;return Ln(this,function(o){switch(o.label){case 0:return i=[],[4,$E(Df.default.join(PE(),"access.yaml"))];case 1:return r=o.sent(),r&&(i=(0,Je.keys)(r)),[4,NE()];case 2:return s=o.sent(),s&&(i=(0,Je.filter)(i,function(c){return c!==s.Alias}),i.push(s.Alias)),[2,i]}})})};q.getCredentialAliasList=FE;var ME=function(i){return Rn(void 0,void 0,void 0,function(){var r,s;return Ln(this,function(o){switch(o.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:return r=o.sent(),(0,Je.includes)(r,i)?[4,Pf(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Je.omit)(s,"Alias")];case 3:return[2]}})})};q.getCredentialWithExisted=ME;var HE=function(){return Rn(void 0,void 0,void 0,function(){var i,r,s,o,c,a;return Ln(this,function(d){switch(d.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:if(i=d.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,d.label=2;case 2:return s<o.length?(c=o[s],[4,Pf(c)]):[3,5];case 3:a=d.sent(),r[a.Alias]=(0,Je.omit)(a,"Alias"),d.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};q.getCredentialWithAll=HE;var WE=function(i,r){return r===void 0&&(r="unknow"),Rn(void 0,void 0,void 0,function(){var s,o,c,a;return Ln(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),s=(0,IE.getConfig)("analysis"),s!=="enable"?[2]:LE()||TE()?[2]:[4,CE("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=d.sent(),c=(0,Je.get)(o.body,"shorturl"),c&&console.log(`AI Tips:
|
|
34
|
+
}`;var B=hl(function(){return Y(h,N+"return "+O).apply(i,g)});if(B.source=O,Vs(B))throw B;return B}function sm(e){return Z(e).toLowerCase()}function um(e){return Z(e).toUpperCase()}function om(e,t,n){if(e=Z(e),e&&(n||t===i))return wo(e);if(!e||!(t=Ne(t)))return e;var u=rt(e),l=rt(t),h=Ao(u,l),g=xo(u,l)+1;return Wt(u,h,g).join("")}function am(e,t,n){if(e=Z(e),e&&(n||t===i))return e.slice(0,bo(e)+1);if(!e||!(t=Ne(t)))return e;var u=rt(e),l=xo(u,rt(t))+1;return Wt(u,0,l).join("")}function lm(e,t,n){if(e=Z(e),e&&(n||t===i))return e.replace(Vi,"");if(!e||!(t=Ne(t)))return e;var u=rt(e),l=Ao(u,rt(t));return Wt(u,l).join("")}function cm(e,t){var n=rh,u=ih;if(ie(t)){var l="separator"in t?t.separator:l;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=rt(e);h=g.length}if(n>=h)return e;var _=n-dn(u);if(_<1)return u;var m=g?Wt(g,0,_).join(""):e.slice(0,_);if(l===i)return m+u;if(g&&(_+=m.length-_),Ys(l)){if(e.slice(_).search(l)){var S,b=m;for(l.global||(l=hs(l.source,Z(Uu.exec(l))+"g")),l.lastIndex=0;S=l.exec(b);)var O=S.index;m=m.slice(0,O===i?_:O)}}else if(e.indexOf(Ne(l),_)!=_){var C=m.lastIndexOf(l);C>-1&&(m=m.slice(0,C))}return m+u}function fm(e){return e=Z(e),e&&Ah.test(e)?e.replace(Hu,Wp):e}var hm=wn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Qs=pa("toUpperCase");function fl(e,t,n){return e=Z(e),t=n?i:t,t===i?Np(e)?Bp(e):Op(e):e.match(t)||[]}var hl=j(function(e,t){try{return $e(e,i,t)}catch(n){return Vs(n)?n:new W(n)}}),pm=At(function(e,t){return Ue(t,function(n){n=ft(n),Et(e,n,Xs(e[n],e))}),e});function gm(e){var t=e==null?0:e.length,n=F();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new Be(c);return[n(u[0]),u[1]]}):[],j(function(u){for(var l=-1;++l<t;){var h=e[l];if($e(h[0],this,u))return $e(h[1],this,u)}})}function dm(e){return Wg(je(e,p))}function eu(e){return function(){return e}}function _m(e,t){return e==null||e!==e?t:e}var vm=da(),mm=da(!0);function Le(e){return e}function tu(e){return jo(typeof e=="function"?e:je(e,p))}function ym(e){return Xo(je(e,p))}function Em(e,t){return zo(e,je(t,p))}var wm=j(function(e,t){return function(n){return tr(n,e,t)}}),Am=j(function(e,t){return function(n){return tr(e,n,t)}});function nu(e,t,n){var u=pe(t),l=ei(t,u);n==null&&!(ie(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=ei(t,pe(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=St(e);return Ue(l,function(_){var m=t[_];e[_]=m,g&&(e.prototype[_]=function(){var S=this.__chain__;if(h||S){var b=e(this.__wrapped__),O=b.__actions__=Ie(this.__actions__);return O.push({func:m,args:arguments,thisArg:e}),b.__chain__=S,b}return m.apply(e,$t([this.value()],arguments))})}),e}function xm(){return he._===this&&(he._=Vp),this}function ru(){}function Sm(e){return e=U(e),j(function(t){return Vo(t,e)})}var bm=Ps(re),Om=Ps(_o),Im=Ps(ss);function pl(e){return Gs(e)?us(ft(e)):rd(e)}function Cm(e){return function(t){return e==null?i:Yt(e,t)}}var Rm=va(),Lm=va(!0);function iu(){return[]}function su(){return!1}function Tm(){return{}}function Dm(){return""}function $m(){return!0}function Pm(e,t){if(e=U(e),e<1||e>Tt)return[];var n=at,u=ye(e,at);t=F(t),e-=at;for(var l=ls(u,t);++n<e;)t(n);return l}function Nm(e){return G(e)?re(e,ft):qe(e)?[e]:Ie($a(Z(e)))}function qm(e){var t=++Xp;return Z(e)+t}var Fm=ui(function(e,t){return e+t},0),Mm=Ns("ceil"),Hm=ui(function(e,t){return e/t},1),Wm=Ns("floor");function Gm(e){return e&&e.length?Qr(e,Le,Es):i}function Um(e,t){return e&&e.length?Qr(e,F(t,2),Es):i}function Bm(e){return yo(e,Le)}function Km(e,t){return yo(e,F(t,2))}function jm(e){return e&&e.length?Qr(e,Le,Ss):i}function km(e,t){return e&&e.length?Qr(e,F(t,2),Ss):i}var Xm=ui(function(e,t){return e*t},1),zm=Ns("round"),Vm=ui(function(e,t){return e-t},0);function Ym(e){return e&&e.length?as(e,Le):0}function Zm(e,t){return e&&e.length?as(e,F(t,2)):0}return f.after=yv,f.ary=Ka,f.assign=u0,f.assignIn=il,f.assignInWith=yi,f.assignWith=o0,f.at=a0,f.before=ja,f.bind=Xs,f.bindAll=pm,f.bindKey=ka,f.castArray=Tv,f.chain=Ga,f.chunk=Wd,f.compact=Gd,f.concat=Ud,f.cond=gm,f.conforms=dm,f.constant=eu,f.countBy=Y_,f.create=l0,f.curry=Xa,f.curryRight=za,f.debounce=Va,f.defaults=c0,f.defaultsDeep=f0,f.defer=Ev,f.delay=wv,f.difference=Bd,f.differenceBy=Kd,f.differenceWith=jd,f.drop=kd,f.dropRight=Xd,f.dropRightWhile=zd,f.dropWhile=Vd,f.fill=Yd,f.filter=J_,f.flatMap=tv,f.flatMapDeep=nv,f.flatMapDepth=rv,f.flatten=Fa,f.flattenDeep=Zd,f.flattenDepth=Jd,f.flip=Av,f.flow=vm,f.flowRight=mm,f.fromPairs=Qd,f.functions=m0,f.functionsIn=y0,f.groupBy=iv,f.initial=t_,f.intersection=n_,f.intersectionBy=r_,f.intersectionWith=i_,f.invert=w0,f.invertBy=A0,f.invokeMap=uv,f.iteratee=tu,f.keyBy=ov,f.keys=pe,f.keysIn=Re,f.map=pi,f.mapKeys=S0,f.mapValues=b0,f.matches=ym,f.matchesProperty=Em,f.memoize=di,f.merge=O0,f.mergeWith=sl,f.method=wm,f.methodOf=Am,f.mixin=nu,f.negate=_i,f.nthArg=Sm,f.omit=I0,f.omitBy=C0,f.once=xv,f.orderBy=av,f.over=bm,f.overArgs=Sv,f.overEvery=Om,f.overSome=Im,f.partial=zs,f.partialRight=Ya,f.partition=lv,f.pick=R0,f.pickBy=ul,f.property=pl,f.propertyOf=Cm,f.pull=a_,f.pullAll=Ha,f.pullAllBy=l_,f.pullAllWith=c_,f.pullAt=f_,f.range=Rm,f.rangeRight=Lm,f.rearg=bv,f.reject=hv,f.remove=h_,f.rest=Ov,f.reverse=js,f.sampleSize=gv,f.set=T0,f.setWith=D0,f.shuffle=dv,f.slice=p_,f.sortBy=mv,f.sortedUniq=E_,f.sortedUniqBy=w_,f.split=tm,f.spread=Iv,f.tail=A_,f.take=x_,f.takeRight=S_,f.takeRightWhile=b_,f.takeWhile=O_,f.tap=G_,f.throttle=Cv,f.thru=hi,f.toArray=tl,f.toPairs=ol,f.toPairsIn=al,f.toPath=Nm,f.toPlainObject=rl,f.transform=$0,f.unary=Rv,f.union=I_,f.unionBy=C_,f.unionWith=R_,f.uniq=L_,f.uniqBy=T_,f.uniqWith=D_,f.unset=P0,f.unzip=ks,f.unzipWith=Wa,f.update=N0,f.updateWith=q0,f.values=Sn,f.valuesIn=F0,f.without=$_,f.words=fl,f.wrap=Lv,f.xor=P_,f.xorBy=N_,f.xorWith=q_,f.zip=F_,f.zipObject=M_,f.zipObjectDeep=H_,f.zipWith=W_,f.entries=ol,f.entriesIn=al,f.extend=il,f.extendWith=yi,nu(f,f),f.add=Fm,f.attempt=hl,f.camelCase=G0,f.capitalize=ll,f.ceil=Mm,f.clamp=M0,f.clone=Dv,f.cloneDeep=Pv,f.cloneDeepWith=Nv,f.cloneWith=$v,f.conformsTo=qv,f.deburr=cl,f.defaultTo=_m,f.divide=Hm,f.endsWith=U0,f.eq=st,f.escape=B0,f.escapeRegExp=K0,f.every=Z_,f.find=Q_,f.findIndex=Na,f.findKey=h0,f.findLast=ev,f.findLastIndex=qa,f.findLastKey=p0,f.floor=Wm,f.forEach=Ua,f.forEachRight=Ba,f.forIn=g0,f.forInRight=d0,f.forOwn=_0,f.forOwnRight=v0,f.get=Zs,f.gt=Fv,f.gte=Mv,f.has=E0,f.hasIn=Js,f.head=Ma,f.identity=Le,f.includes=sv,f.indexOf=e_,f.inRange=H0,f.invoke=x0,f.isArguments=Qt,f.isArray=G,f.isArrayBuffer=Hv,f.isArrayLike=Ce,f.isArrayLikeObject=ue,f.isBoolean=Wv,f.isBuffer=Gt,f.isDate=Gv,f.isElement=Uv,f.isEmpty=Bv,f.isEqual=Kv,f.isEqualWith=jv,f.isError=Vs,f.isFinite=kv,f.isFunction=St,f.isInteger=Za,f.isLength=vi,f.isMap=Ja,f.isMatch=Xv,f.isMatchWith=zv,f.isNaN=Vv,f.isNative=Yv,f.isNil=Jv,f.isNull=Zv,f.isNumber=Qa,f.isObject=ie,f.isObjectLike=se,f.isPlainObject=or,f.isRegExp=Ys,f.isSafeInteger=Qv,f.isSet=el,f.isString=mi,f.isSymbol=qe,f.isTypedArray=xn,f.isUndefined=e0,f.isWeakMap=t0,f.isWeakSet=n0,f.join=s_,f.kebabCase=j0,f.last=Xe,f.lastIndexOf=u_,f.lowerCase=k0,f.lowerFirst=X0,f.lt=r0,f.lte=i0,f.max=Gm,f.maxBy=Um,f.mean=Bm,f.meanBy=Km,f.min=jm,f.minBy=km,f.stubArray=iu,f.stubFalse=su,f.stubObject=Tm,f.stubString=Dm,f.stubTrue=$m,f.multiply=Xm,f.nth=o_,f.noConflict=xm,f.noop=ru,f.now=gi,f.pad=z0,f.padEnd=V0,f.padStart=Y0,f.parseInt=Z0,f.random=W0,f.reduce=cv,f.reduceRight=fv,f.repeat=J0,f.replace=Q0,f.result=L0,f.round=zm,f.runInContext=v,f.sample=pv,f.size=_v,f.snakeCase=em,f.some=vv,f.sortedIndex=g_,f.sortedIndexBy=d_,f.sortedIndexOf=__,f.sortedLastIndex=v_,f.sortedLastIndexBy=m_,f.sortedLastIndexOf=y_,f.startCase=nm,f.startsWith=rm,f.subtract=Vm,f.sum=Ym,f.sumBy=Zm,f.template=im,f.times=Pm,f.toFinite=bt,f.toInteger=U,f.toLength=nl,f.toLower=sm,f.toNumber=ze,f.toSafeInteger=s0,f.toString=Z,f.toUpper=um,f.trim=om,f.trimEnd=am,f.trimStart=lm,f.truncate=cm,f.unescape=fm,f.uniqueId=qm,f.upperCase=hm,f.upperFirst=Qs,f.each=Ua,f.eachRight=Ba,f.first=Ma,nu(f,function(){var e={};return lt(f,function(t,n){J.call(f.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),f.VERSION=r,Ue(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){f[e].placeholder=f}),Ue(["drop","take"],function(e,t){X.prototype[e]=function(n){n=n===i?1:fe(U(n),0);var u=this.__filtered__&&!t?new X(this):this.clone();return u.__filtered__?u.__takeCount__=ye(n,u.__takeCount__):u.__views__.push({size:ye(n,at),type:e+(u.__dir__<0?"Right":"")}),u},X.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Ue(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==qu||n==ah;X.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:F(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),Ue(["head","last"],function(e,t){var n="take"+(t?"Right":"");X.prototype[e]=function(){return this[n](1).value()[0]}}),Ue(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[n](1)}}),X.prototype.compact=function(){return this.filter(Le)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=j(function(e,t){return typeof e=="function"?new X(this):this.map(function(n){return tr(n,e,t)})}),X.prototype.reject=function(e){return this.filter(_i(F(e)))},X.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new X(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)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(at)},lt(X.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=f[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(f.prototype[t]=function(){var g=this.__wrapped__,_=u?[1]:arguments,m=g instanceof X,S=_[0],b=m||G(g),O=function(k){var z=l.apply(f,$t([k],_));return u&&C?z[0]:z};b&&n&&typeof S=="function"&&S.length!=1&&(m=b=!1);var C=this.__chain__,N=!!this.__actions__.length,M=h&&!C,B=m&&!N;if(!h&&b){g=B?g:new X(this);var H=e.apply(g,_);return H.__actions__.push({func:hi,args:[O],thisArg:i}),new Ke(H,C)}return M&&B?e.apply(this,_):(H=this.thru(O),M?u?H.value()[0]:H.value():H)})}),Ue(["pop","push","shift","sort","splice","unshift"],function(e){var t=Mr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],l)}return this[n](function(g){return t.apply(G(g)?g:[],l)})}}),lt(X.prototype,function(e,t){var n=f[t];if(n){var u=n.name+"";J.call(mn,u)||(mn[u]=[]),mn[u].push({name:t,func:n})}}),mn[si(i,et).name]=[{name:"wrapper",func:i}],X.prototype.clone=fg,X.prototype.reverse=hg,X.prototype.value=pg,f.prototype.at=U_,f.prototype.chain=B_,f.prototype.commit=K_,f.prototype.next=j_,f.prototype.plant=X_,f.prototype.reverse=z_,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=V_,f.prototype.first=f.prototype.head,zn&&(f.prototype[zn]=k_),f},Nt=Kp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(he._=Nt,define(function(){return Nt})):jt?((jt.exports=Nt)._=Nt,ts._=Nt):he._=Nt}).call(Cn)});var Iu=T(Te=>{"use strict";var _E=Te&&Te.__awaiter||function(i,r,s,o){function c(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function y(A){try{p(o.next(A))}catch(I){d(I)}}function E(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):c(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},vE=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,c,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,c&&(a=p[0]&2?c.return:p[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,p[1])).done)return a;switch(c=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++,c=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(A){p=[6,A],c=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},If=Te&&Te.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Te,"__esModule",{value:!0});Te.handlerProfileFile=Te.getConfig=Te.setConfig=void 0;var Cf=If(require("path")),bu=If(ht()),pt=bu.default.fse,Pi=bu.default.jsyaml,Ou=bu.default.getRootHome;function mE(i){var r=Lf();pt.writeFileSync(r,Pi.dump(i))}function Rf(){var i=Lf();if(!pt.existsSync(i))return{};try{var r=Pi.load(pt.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Lf(){var i=Cf.default.join(Ou(),"set-config.yml");return pt.existsSync(i)||pt.createFileSync(i),i}function yE(i,r){var s=Rf();s[i]=r,mE(s)}Te.setConfig=yE;function EE(i,r){var s=Rf();return s[i]||r}Te.getConfig=EE;function wE(i){return _E(this,void 0,void 0,function(){var r,s,o,c,a,d,y;return vE(this,function(E){switch(E.label){case 0:if(r=i.filePath||"set-config.yml",s=Cf.default.join(Ou(),r),o=pt.existsSync(s),c={},o)return[3,5];a=Ou(),E.label=1;case 1:return E.trys.push([1,2,,4]),pt.statSync(a),[3,4];case 2:return d=E.sent(),[4,pt.mkdirSync(a)];case 3:return E.sent(),[3,4];case 4:return[3,6];case 5:try{c=Pi.load(pt.readFileSync(s,"utf8"))||{}}catch(p){throw p}E.label=6;case 6:return i.read?[2,c]:(y=i.configKey||"",c[y]=i.data,[4,pt.writeFileSync(s,Pi.dump(c))]);case 7:return E.sent(),[2,c]}})})}Te.handlerProfileFile=wE});var Tf=T((ex,AE)=>{AE.exports={name:"@serverless-devs/s",version:"2.0.100-beta.5",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/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.4.7","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.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var qi=T(q=>{"use strict";var xE=q&&q.__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]}),SE=q&&q.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),bE=q&&q.__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)&&xE(r,i,s);return SE(r,i),r},Rn=q&&q.__awaiter||function(i,r,s,o){function c(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function y(A){try{p(o.next(A))}catch(I){d(I)}}function E(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):c(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},Ln=q&&q.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,c,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,c&&(a=p[0]&2?c.return:p[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,p[1])).done)return a;switch(c=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++,c=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(A){p=[6,A],c=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Cu=q&&q.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(q,"__esModule",{value:!0});q.emoji=q.mark=q.replaceTemplate=q.getTemplatekey=q.replaceFun=q.getLang=q.printn=q.getFolderSize=q.getVersion=q.getPid=q.aiRequest=q.getCredentialWithAll=q.getCredentialWithExisted=q.getCredentialAliasList=q.getProcessArgv=q.bgRed=q.yellow=q.red=void 0;var Df=Cu(require("path")),Sr=Cu(require("fs")),Je=Of(),OE=Cu(require("os")),Qe=bE(ht()),IE=Iu(),$f=Tf(),Ni=Qe.default.colors,CE=Qe.default.got,RE=Qe.default.getMAC,LE=Qe.default.isDocker,TE=Qe.default.isCiCdEnv,DE=Qe.default.getGlobalArgs,$E=Qe.default.getYamlContent,PE=Qe.default.getRootHome,Pf=Qe.default.getCredential,NE=Qe.default.getCredentialFromEnv;q.red=Ni.hex("#fd5750");q.yellow=Ni.hex("#F3F99D");q.bgRed=Ni.hex("#000").bgHex("#fd5750");var qE=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=DE(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Je.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Je.filter)(s._argsObj,function(o){return!(0,Je.includes)(["-h","--help"],o)}))})}catch{return{}}};q.getProcessArgv=qE;var FE=function(){return Rn(void 0,void 0,void 0,function(){var i,r,s;return Ln(this,function(o){switch(o.label){case 0:return i=[],[4,$E(Df.default.join(PE(),"access.yaml"))];case 1:return r=o.sent(),r&&(i=(0,Je.keys)(r)),[4,NE()];case 2:return s=o.sent(),s&&(i=(0,Je.filter)(i,function(c){return c!==s.Alias}),i.push(s.Alias)),[2,i]}})})};q.getCredentialAliasList=FE;var ME=function(i){return Rn(void 0,void 0,void 0,function(){var r,s;return Ln(this,function(o){switch(o.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:return r=o.sent(),(0,Je.includes)(r,i)?[4,Pf(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Je.omit)(s,"Alias")];case 3:return[2]}})})};q.getCredentialWithExisted=ME;var HE=function(){return Rn(void 0,void 0,void 0,function(){var i,r,s,o,c,a;return Ln(this,function(d){switch(d.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:if(i=d.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,d.label=2;case 2:return s<o.length?(c=o[s],[4,Pf(c)]):[3,5];case 3:a=d.sent(),r[a.Alias]=(0,Je.omit)(a,"Alias"),d.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};q.getCredentialWithAll=HE;var WE=function(i,r){return r===void 0&&(r="unknow"),Rn(void 0,void 0,void 0,function(){var s,o,c,a;return Ln(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),s=(0,IE.getConfig)("analysis"),s!=="enable"?[2]:LE()||TE()?[2]:[4,CE("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=d.sent(),c=(0,Je.get)(o.body,"shorturl"),c&&console.log(`AI Tips:
|
|
35
35
|
You can try to solve the problem through: `.concat(Ni.underline(c),`
|
|
36
36
|
`)),[3,3];case 2:return a=d.sent(),[3,3];case 3:return[2]}})})};q.aiRequest=WE;var GE=function(){try{return RE().replace(/:/g,"")}catch{return"unknown"}};q.getPid=GE;function UE(){var i=(0,Qe.getCoreVersion)(),r="".concat(process.platform,"-").concat(process.arch),s="node-".concat(process.version),o="core: ".concat(i),c="s-home: ".concat(Qe.default.getRootHome()),a="".concat($f.name,": ").concat($f.version);return i?"".concat(a,", ").concat(o,", ").concat(c,", ").concat(r,", ").concat(s):"".concat(a,", ").concat(c,", ").concat(r,", ").concat(s)}q.getVersion=UE;function BE(i){return Rn(this,void 0,void 0,function(){function r(c){return Rn(this,void 0,void 0,function(){var a,d;return Ln(this,function(y){switch(y.label){case 0:return a=Sr.default.lstatSync(c),typeof a!="object"?[2]:(s.set(a.ino,a.size),a.isDirectory()?(d=Sr.default.readdirSync(c),typeof d!="object"?[2]:[4,Promise.all(d.map(function(E){return r(Df.default.join(c,E))}))]):[3,2]);case 1:y.sent(),y.label=2;case 2:return[2]}})})}var s,o;return Ln(this,function(c){switch(c.label){case 0:return s=new Map,[4,r(i)];case 1:return c.sent(),o=Array.from(s.values()).reduce(function(a,d){return a+d},0),[2,o]}})})}q.getFolderSize=BE;function KE(i,r){r===void 0&&(r=" ");for(var s="",o=0;o<i;o++)s=s+r;return s}q.printn=KE;function jE(){return"en"}q.getLang=jE;function Nf(i,r){var s=/\{\{(.*?)\}\}/g,o=i.match(s);if(o)for(var c=0;c<o.length;c++){var a=o[c].replace(/{{|}}/g,""),d=(0,Je.trim)(a.split("|")[0]);r[d]&&(i=i.replace(o[c],r[d]))}return i}q.replaceFun=Nf;function kE(i){var r=/\{\{(.*?)\}\}/g,s=i.match(r);return s?s.filter(function(o){return o}).map(function(o){var c=o.replace(/{{|}}/g,""),a=c.split("|");return{name:(0,Je.trim)(a[0]),desc:(0,Je.trim)(a[1])}}):[]}q.getTemplatekey=kE;function XE(i,r){i.forEach(function(s){if(Sr.default.existsSync(s)){var o=Sr.default.readFileSync(s,"utf-8"),c=Nf(o,r);Sr.default.writeFileSync(s,c,"utf-8")}})}q.replaceTemplate=XE;function zE(i){if(!i)return i;var r=i.slice(-4);return"***********".concat(r)}q.mark=zE;function VE(i,r){return OE.default.platform()==="win32"?r||"\u25C6":"".concat(i," ")}q.emoji=VE});var qf=T(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var Ff=T(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var Hf=T(br=>{"use strict";var Mf=br&&br.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(br,"__esModule",{value:!0});var YE=qi(),ZE=Mf(qf()),JE=Mf(Ff()),Tu={en:JE.default,zh:ZE.default},QE=function(i){var r=(0,YE.getLang)(),s=Tu[r]?Tu[r][i]:Tu.en[i];return s||i};br.default=QE});var Du=T(de=>{"use strict";var ew=de&&de.__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]}),Wf=de&&de.__exportStar||function(i,r){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&ew(r,i,s)},Or=de&&de.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(de,"__esModule",{value:!0});de.registerCommandChecker=de.getYamlPath=de.i18n=de.logger=void 0;var Gf=Or(require("path")),tw=Or(Su()),nw=Or(ht()),Uf=nw.default.fse;Wf(qi(),de);Wf(Iu(),de);var rw=Su();Object.defineProperty(de,"logger",{enumerable:!0,get:function(){return Or(rw).default}});var iw=Hf();Object.defineProperty(de,"i18n",{enumerable:!0,get:function(){return Or(iw).default}});var sw=function(i,r){var s=Gf.default.join(i,"".concat(r,".yaml")),o=Gf.default.join(i,"".concat(r,".yml")),c=Uf.existsSync(s)?s:Uf.existsSync(o)?o:void 0;return c};de.getYamlPath=sw;function uw(i){i.on("command:*",function(r){var s=i.commands.map(function(o){return o.name()});s.includes(r[0])||(tw.default.error(" error: unknown command ".concat(r[0])),i.help())})}de.registerCommandChecker=uw});var an=T(Tn=>{"use strict";var ow=Tn&&Tn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.ServerlessError=void 0;var aw=ow(ht()),lw=aw.default.Logger,cw=new lw("S-CLI-ERROR"),fw=function(){function i(r,s,o){cw.error(r+": "+s,o),process.exit(1)}return i}();Tn.ServerlessError=fw});var Bf=T(Dn=>{"use strict";var hw=Dn&&Dn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(o[a]=c[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.CommandError=void 0;var pw=an(),gw=function(i){hw(r,i);function r(s,o){return i.call(this,"Error",s,o)||this}return r}(pw.ServerlessError);Dn.CommandError=gw});var Kf=T($n=>{"use strict";var dw=$n&&$n.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(o[a]=c[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty($n,"__esModule",{value:!0});$n.ConfigDeleteError=void 0;var _w=an(),vw=function(i){dw(r,i);function r(s,o){return i.call(this,"Deletion failed",s,o)||this}return r}(_w.ServerlessError);$n.ConfigDeleteError=vw});var jf=T(Pn=>{"use strict";var mw=Pn&&Pn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(o[a]=c[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Pn,"__esModule",{value:!0});Pn.ConfigError=void 0;var yw=an(),Ew=function(i){mw(r,i);function r(s,o){return i.call(this,"Config failed",s,o)||this}return r}(yw.ServerlessError);Pn.ConfigError=Ew});var kf=T(Nn=>{"use strict";var ww=Nn&&Nn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(o[a]=c[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Nn,"__esModule",{value:!0});Nn.ConfigGetError=void 0;var Aw=an(),xw=function(i){ww(r,i);function r(s,o){return i.call(this,"Get failed",s,o)||this}return r}(Aw.ServerlessError);Nn.ConfigGetError=xw});var Xf=T(qn=>{"use strict";var Sw=qn&&qn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(o[a]=c[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(qn,"__esModule",{value:!0});qn.InitError=void 0;var bw=an(),Ow=function(i){Sw(r,i);function r(s,o){return i.call(this,"Initialization failed",s,o)||this}return r}(bw.ServerlessError);qn.InitError=Ow});var Vf=T(gt=>{"use strict";var Iw=gt&>.__awaiter||function(i,r,s,o){function c(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function y(A){try{p(o.next(A))}catch(I){d(I)}}function E(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):c(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},Cw=gt&>.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,c,a,d;return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,c&&(a=p[0]&2?c.return:p[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,p[1])).done)return a;switch(c=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++,c=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(A){p=[6,A],c=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Rw=gt&>.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(gt,"__esModule",{value:!0});gt.HumanError=void 0;var zf=Rw(ht()),Lw=qi(),Tw=zf.default.colors,Dw=function(){function i(r){var s=r.errorMessage,o=r.tips;this.errorMessage=s,console.log(`
|
|
37
37
|
`.concat((0,Lw.bgRed)("ERROR:"))),console.log("TypeError: ".concat(s,`
|
|
@@ -31,7 +31,7 @@ __p += '`),V&&(S+=`' +
|
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+S+`return __p
|
|
34
|
-
}`;var B=cl(function(){return Z(h,P+"return "+S).apply(i,g)});if(B.source=S,Ks(B))throw B;return B}function om(e){return k(e).toLowerCase()}function am(e){return k(e).toUpperCase()}function lm(e,t,n){if(e=k(e),e&&(n||t===i))return yo(e);if(!e||!(t=De(t)))return e;var u=Qe(e),l=Qe(t),h=wo(u,l),g=xo(u,l)+1;return qt(u,h,g).join("")}function fm(e,t,n){if(e=k(e),e&&(n||t===i))return e.slice(0,Oo(e)+1);if(!e||!(t=De(t)))return e;var u=Qe(e),l=xo(u,Qe(t))+1;return qt(u,0,l).join("")}function cm(e,t,n){if(e=k(e),e&&(n||t===i))return e.replace(Ki,"");if(!e||!(t=De(t)))return e;var u=Qe(e),l=wo(u,Qe(t));return qt(u,l).join("")}function hm(e,t){var n=sh,u=uh;if(ie(t)){var l="separator"in t?t.separator:l;n="length"in t?U(t.length):n,u="omission"in t?De(t.omission):u}e=k(e);var h=e.length;if(hn(e)){var g=Qe(e);h=g.length}if(n>=h)return e;var _=n-pn(u);if(_<1)return u;var m=g?qt(g,0,_).join(""):e.slice(0,_);if(l===i)return m+u;if(g&&(_+=m.length-_),Zs(l)){if(e.slice(_).search(l)){var O,b=m;for(l.global||(l=hs(l.source,k(Gu.exec(l))+"g")),l.lastIndex=0;O=l.exec(b);)var S=O.index;m=m.slice(0,S===i?_:S)}}else if(e.indexOf(De(l),_)!=_){var R=m.lastIndexOf(l);R>-1&&(m=m.slice(0,R))}return m+u}function pm(e){return e=k(e),e&&Oh.test(e)?e.replace(Mu,Up):e}var gm=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Qs=ha("toUpperCase");function fl(e,t,n){return e=k(e),t=n?i:t,t===i?Fp(e)?Xp(e):Ip(e):e.match(t)||[]}var cl=X(function(e,t){try{return Te(e,i,t)}catch(n){return Ks(n)?n:new W(n)}}),dm=yt(function(e,t){return He(t,function(n){n=lt(n),mt(e,n,Ys(e[n],e))}),e});function _m(e){var t=e==null?0:e.length,n=F();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new We(f);return[n(u[0]),u[1]]}):[],X(function(u){for(var l=-1;++l<t;){var h=e[l];if(Te(h[0],this,u))return Te(h[1],this,u)}})}function vm(e){return Ug(Ue(e,p))}function eu(e){return function(){return e}}function mm(e,t){return e==null||e!==e?t:e}var Em=ga(),ym=ga(!0);function Ce(e){return e}function tu(e){return jo(typeof e=="function"?e:Ue(e,p))}function wm(e){return zo(Ue(e,p))}function xm(e,t){return Yo(e,Ue(t,p))}var Am=X(function(e,t){return function(n){return Jn(n,e,t)}}),Om=X(function(e,t){return function(n){return Jn(e,n,t)}});function nu(e,t,n){var u=he(t),l=kr(t,u);n==null&&!(ie(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=kr(t,he(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=xt(e);return He(l,function(_){var m=t[_];e[_]=m,g&&(e.prototype[_]=function(){var O=this.__chain__;if(h||O){var b=e(this.__wrapped__),S=b.__actions__=Se(this.__actions__);return S.push({func:m,args:arguments,thisArg:e}),b.__chain__=O,b}return m.apply(e,Ct([this.value()],arguments))})}),e}function bm(){return ce._===this&&(ce._=kp),this}function ru(){}function Sm(e){return e=U(e),X(function(t){return Vo(t,e)})}var Rm=Ps(re),Im=Ps(go),Cm=Ps(ss);function hl(e){return Gs(e)?us(lt(e)):sd(e)}function Lm(e){return function(t){return e==null?i:Yt(e,t)}}var Tm=_a(),$m=_a(!0);function iu(){return[]}function su(){return!1}function Dm(){return{}}function Pm(){return""}function Nm(){return!0}function qm(e,t){if(e=U(e),e<1||e>Rt)return[];var n=ut,u=ve(e,ut);t=F(t),e-=ut;for(var l=ls(u,t);++n<e;)t(n);return l}function Fm(e){return G(e)?re(e,lt):Pe(e)?[e]:Se($a(k(e)))}function Mm(e){var t=++Kp;return k(e)+t}var Hm=ri(function(e,t){return e+t},0),Wm=Ns("ceil"),Gm=ri(function(e,t){return e/t},1),Um=Ns("floor");function Bm(e){return e&&e.length?Zr(e,Ce,ys):i}function jm(e,t){return e&&e.length?Zr(e,F(t,2),ys):i}function Xm(e){return mo(e,Ce)}function zm(e,t){return mo(e,F(t,2))}function Ym(e){return e&&e.length?Zr(e,Ce,Os):i}function Vm(e,t){return e&&e.length?Zr(e,F(t,2),Os):i}var Km=ri(function(e,t){return e*t},1),Zm=Ns("round"),km=ri(function(e,t){return e-t},0);function Jm(e){return e&&e.length?as(e,Ce):0}function Qm(e,t){return e&&e.length?as(e,F(t,2)):0}return c.after=w0,c.ary=Ba,c.assign=av,c.assignIn=rl,c.assignInWith=_i,c.assignWith=lv,c.at=fv,c.before=ja,c.bind=Ys,c.bindAll=dm,c.bindKey=Xa,c.castArray=D0,c.chain=Wa,c.chunk=Ud,c.compact=Bd,c.concat=jd,c.cond=_m,c.conforms=vm,c.constant=eu,c.countBy=J_,c.create=cv,c.curry=za,c.curryRight=Ya,c.debounce=Va,c.defaults=hv,c.defaultsDeep=pv,c.defer=x0,c.delay=A0,c.difference=Xd,c.differenceBy=zd,c.differenceWith=Yd,c.drop=Vd,c.dropRight=Kd,c.dropRightWhile=Zd,c.dropWhile=kd,c.fill=Jd,c.filter=e0,c.flatMap=r0,c.flatMapDeep=i0,c.flatMapDepth=s0,c.flatten=qa,c.flattenDeep=Qd,c.flattenDepth=e_,c.flip=O0,c.flow=Em,c.flowRight=ym,c.fromPairs=t_,c.functions=yv,c.functionsIn=wv,c.groupBy=u0,c.initial=r_,c.intersection=i_,c.intersectionBy=s_,c.intersectionWith=u_,c.invert=Av,c.invertBy=Ov,c.invokeMap=a0,c.iteratee=tu,c.keyBy=l0,c.keys=he,c.keysIn=Ie,c.map=fi,c.mapKeys=Sv,c.mapValues=Rv,c.matches=wm,c.matchesProperty=xm,c.memoize=hi,c.merge=Iv,c.mergeWith=il,c.method=Am,c.methodOf=Om,c.mixin=nu,c.negate=pi,c.nthArg=Sm,c.omit=Cv,c.omitBy=Lv,c.once=b0,c.orderBy=f0,c.over=Rm,c.overArgs=S0,c.overEvery=Im,c.overSome=Cm,c.partial=Vs,c.partialRight=Ka,c.partition=c0,c.pick=Tv,c.pickBy=sl,c.property=hl,c.propertyOf=Lm,c.pull=f_,c.pullAll=Ma,c.pullAllBy=c_,c.pullAllWith=h_,c.pullAt=p_,c.range=Tm,c.rangeRight=$m,c.rearg=R0,c.reject=g0,c.remove=g_,c.rest=I0,c.reverse=Xs,c.sampleSize=_0,c.set=Dv,c.setWith=Pv,c.shuffle=v0,c.slice=d_,c.sortBy=y0,c.sortedUniq=x_,c.sortedUniqBy=A_,c.split=rm,c.spread=C0,c.tail=O_,c.take=b_,c.takeRight=S_,c.takeRightWhile=R_,c.takeWhile=I_,c.tap=B_,c.throttle=L0,c.thru=li,c.toArray=el,c.toPairs=ul,c.toPairsIn=ol,c.toPath=Fm,c.toPlainObject=nl,c.transform=Nv,c.unary=T0,c.union=C_,c.unionBy=L_,c.unionWith=T_,c.uniq=$_,c.uniqBy=D_,c.uniqWith=P_,c.unset=qv,c.unzip=zs,c.unzipWith=Ha,c.update=Fv,c.updateWith=Mv,c.values=xn,c.valuesIn=Hv,c.without=N_,c.words=fl,c.wrap=$0,c.xor=q_,c.xorBy=F_,c.xorWith=M_,c.zip=H_,c.zipObject=W_,c.zipObjectDeep=G_,c.zipWith=U_,c.entries=ul,c.entriesIn=ol,c.extend=rl,c.extendWith=_i,nu(c,c),c.add=Hm,c.attempt=cl,c.camelCase=Bv,c.capitalize=al,c.ceil=Wm,c.clamp=Wv,c.clone=P0,c.cloneDeep=q0,c.cloneDeepWith=F0,c.cloneWith=N0,c.conformsTo=M0,c.deburr=ll,c.defaultTo=mm,c.divide=Gm,c.endsWith=jv,c.eq=tt,c.escape=Xv,c.escapeRegExp=zv,c.every=Q_,c.find=t0,c.findIndex=Pa,c.findKey=gv,c.findLast=n0,c.findLastIndex=Na,c.findLastKey=dv,c.floor=Um,c.forEach=Ga,c.forEachRight=Ua,c.forIn=_v,c.forInRight=vv,c.forOwn=mv,c.forOwnRight=Ev,c.get=ks,c.gt=H0,c.gte=W0,c.has=xv,c.hasIn=Js,c.head=Fa,c.identity=Ce,c.includes=o0,c.indexOf=n_,c.inRange=Gv,c.invoke=bv,c.isArguments=Zt,c.isArray=G,c.isArrayBuffer=G0,c.isArrayLike=Re,c.isArrayLikeObject=ue,c.isBoolean=U0,c.isBuffer=Ft,c.isDate=B0,c.isElement=j0,c.isEmpty=X0,c.isEqual=z0,c.isEqualWith=Y0,c.isError=Ks,c.isFinite=V0,c.isFunction=xt,c.isInteger=Za,c.isLength=gi,c.isMap=ka,c.isMatch=K0,c.isMatchWith=Z0,c.isNaN=k0,c.isNative=J0,c.isNil=ev,c.isNull=Q0,c.isNumber=Ja,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=ir,c.isRegExp=Zs,c.isSafeInteger=tv,c.isSet=Qa,c.isString=di,c.isSymbol=Pe,c.isTypedArray=wn,c.isUndefined=nv,c.isWeakMap=rv,c.isWeakSet=iv,c.join=o_,c.kebabCase=Yv,c.last=je,c.lastIndexOf=a_,c.lowerCase=Vv,c.lowerFirst=Kv,c.lt=sv,c.lte=uv,c.max=Bm,c.maxBy=jm,c.mean=Xm,c.meanBy=zm,c.min=Ym,c.minBy=Vm,c.stubArray=iu,c.stubFalse=su,c.stubObject=Dm,c.stubString=Pm,c.stubTrue=Nm,c.multiply=Km,c.nth=l_,c.noConflict=bm,c.noop=ru,c.now=ci,c.pad=Zv,c.padEnd=kv,c.padStart=Jv,c.parseInt=Qv,c.random=Uv,c.reduce=h0,c.reduceRight=p0,c.repeat=em,c.replace=tm,c.result=$v,c.round=Zm,c.runInContext=v,c.sample=d0,c.size=m0,c.snakeCase=nm,c.some=E0,c.sortedIndex=__,c.sortedIndexBy=v_,c.sortedIndexOf=m_,c.sortedLastIndex=E_,c.sortedLastIndexBy=y_,c.sortedLastIndexOf=w_,c.startCase=im,c.startsWith=sm,c.subtract=km,c.sum=Jm,c.sumBy=Qm,c.template=um,c.times=qm,c.toFinite=At,c.toInteger=U,c.toLength=tl,c.toLower=om,c.toNumber=Xe,c.toSafeInteger=ov,c.toString=k,c.toUpper=am,c.trim=lm,c.trimEnd=fm,c.trimStart=cm,c.truncate=hm,c.unescape=pm,c.uniqueId=Mm,c.upperCase=gm,c.upperFirst=Qs,c.each=Ga,c.eachRight=Ua,c.first=Fa,nu(c,function(){var e={};return ot(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){Y.prototype[e]=function(n){n=n===i?1:fe(U(n),0);var u=this.__filtered__&&!t?new Y(this):this.clone();return u.__filtered__?u.__takeCount__=ve(n,u.__takeCount__):u.__views__.push({size:ve(n,ut),type:e+(u.__dir__<0?"Right":"")}),u},Y.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),He(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Nu||n==fh;Y.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:F(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),He(["head","last"],function(e,t){var n="take"+(t?"Right":"");Y.prototype[e]=function(){return this[n](1).value()[0]}}),He(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[n](1)}}),Y.prototype.compact=function(){return this.filter(Ce)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new Y(this):this.map(function(n){return Jn(n,e,t)})}),Y.prototype.reject=function(e){return this.filter(pi(F(e)))},Y.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Y(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)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(ut)},ot(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(c.prototype[t]=function(){var g=this.__wrapped__,_=u?[1]:arguments,m=g instanceof Y,O=_[0],b=m||G(g),S=function(z){var V=l.apply(c,Ct([z],_));return u&&R?V[0]:V};b&&n&&typeof O=="function"&&O.length!=1&&(m=b=!1);var R=this.__chain__,P=!!this.__actions__.length,M=h&&!R,B=m&&!P;if(!h&&b){g=B?g:new Y(this);var H=e.apply(g,_);return H.__actions__.push({func:li,args:[S],thisArg:i}),new Ge(H,R)}return M&&B?e.apply(this,_):(H=this.thru(S),M?u?H.value()[0]:H.value():H)})}),He(["pop","push","shift","sort","splice","unshift"],function(e){var t=Nr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],l)}return this[n](function(g){return t.apply(G(g)?g:[],l)})}}),ot(Y.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";J.call(_n,u)||(_n[u]=[]),_n[u].push({name:t,func:n})}}),_n[ni(i,Wt).name]=[{name:"wrapper",func:i}],Y.prototype.clone=pg,Y.prototype.reverse=gg,Y.prototype.value=dg,c.prototype.at=j_,c.prototype.chain=X_,c.prototype.commit=z_,c.prototype.next=Y_,c.prototype.plant=K_,c.prototype.reverse=Z_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=k_,c.prototype.first=c.prototype.head,Xn&&(c.prototype[Xn]=V_),c},Tt=zp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ce._=Tt,define(function(){return Tt})):Ut?((Ut.exports=Tt)._=Tt,ts._=Tt):ce._=Tt}).call(Sn)});var Ru=L(Le=>{"use strict";var my=Le&&Le.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Ey=Le&&Le.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=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++,f=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(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Sc=Le&&Le.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Le,"__esModule",{value:!0});Le.handlerProfileFile=Le.getConfig=Le.setConfig=void 0;var Rc=Sc(require("path")),bu=Sc(ft()),ct=bu.default.fse,Ti=bu.default.jsyaml,Su=bu.default.getRootHome;function yy(i){var r=Cc();ct.writeFileSync(r,Ti.dump(i))}function Ic(){var i=Cc();if(!ct.existsSync(i))return{};try{var r=Ti.load(ct.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Cc(){var i=Rc.default.join(Su(),"set-config.yml");return ct.existsSync(i)||ct.createFileSync(i),i}function wy(i,r){var s=Ic();s[i]=r,yy(s)}Le.setConfig=wy;function xy(i,r){var s=Ic();return s[i]||r}Le.getConfig=xy;function Ay(i){return my(this,void 0,void 0,function(){var r,s,o,f,a,d,E;return Ey(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=Rc.default.join(Su(),r),o=ct.existsSync(s),f={},o)return[3,5];a=Su(),y.label=1;case 1:return y.trys.push([1,2,,4]),ct.statSync(a),[3,4];case 2:return d=y.sent(),[4,ct.mkdirSync(a)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{f=Ti.load(ct.readFileSync(s,"utf8"))||{}}catch(p){throw p}y.label=6;case 6:return i.read?[2,f]:(E=i.configKey||"",f[E]=i.data,[4,ct.writeFileSync(s,Ti.dump(f))]);case 7:return y.sent(),[2,f]}})})}Le.handlerProfileFile=Ay});var Lc=L((tA,Oy)=>{Oy.exports={name:"@serverless-devs/s",version:"2.0.100-beta.4",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/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.4.7","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.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var Di=L(q=>{"use strict";var by=q&&q.__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]}),Sy=q&&q.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Ry=q&&q.__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)&&by(r,i,s);return Sy(r,i),r},Rn=q&&q.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},In=q&&q.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=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++,f=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(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Iu=q&&q.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(q,"__esModule",{value:!0});q.emoji=q.mark=q.replaceTemplate=q.getTemplatekey=q.replaceFun=q.getLang=q.printn=q.getFolderSize=q.getVersion=q.getPid=q.aiRequest=q.getCredentialWithAll=q.getCredentialWithExisted=q.getCredentialAliasList=q.getProcessArgv=q.bgRed=q.yellow=q.red=void 0;var Tc=Iu(require("path")),wr=Iu(require("fs")),Ke=bc(),Iy=Iu(require("os")),Ze=Ry(ft()),Cy=Ru(),$c=Lc(),$i=Ze.default.colors,Ly=Ze.default.got,Ty=Ze.default.getMAC,$y=Ze.default.isDocker,Dy=Ze.default.isCiCdEnv,Py=Ze.default.getGlobalArgs,Ny=Ze.default.getYamlContent,qy=Ze.default.getRootHome,Dc=Ze.default.getCredential,Fy=Ze.default.getCredentialFromEnv;q.red=$i.hex("#fd5750");q.yellow=$i.hex("#F3F99D");q.bgRed=$i.hex("#000").bgHex("#fd5750");var My=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=Py(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Ke.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Ke.filter)(s._argsObj,function(o){return!(0,Ke.includes)(["-h","--help"],o)}))})}catch{return{}}};q.getProcessArgv=My;var Hy=function(){return Rn(void 0,void 0,void 0,function(){var i,r,s;return In(this,function(o){switch(o.label){case 0:return i=[],[4,Ny(Tc.default.join(qy(),"access.yaml"))];case 1:return r=o.sent(),r&&(i=(0,Ke.keys)(r)),[4,Fy()];case 2:return s=o.sent(),s&&(i=(0,Ke.filter)(i,function(f){return f!==s.Alias}),i.push(s.Alias)),[2,i]}})})};q.getCredentialAliasList=Hy;var Wy=function(i){return Rn(void 0,void 0,void 0,function(){var r,s;return In(this,function(o){switch(o.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:return r=o.sent(),(0,Ke.includes)(r,i)?[4,Dc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Ke.omit)(s,"Alias")];case 3:return[2]}})})};q.getCredentialWithExisted=Wy;var Gy=function(){return Rn(void 0,void 0,void 0,function(){var i,r,s,o,f,a;return In(this,function(d){switch(d.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:if(i=d.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,d.label=2;case 2:return s<o.length?(f=o[s],[4,Dc(f)]):[3,5];case 3:a=d.sent(),r[a.Alias]=(0,Ke.omit)(a,"Alias"),d.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};q.getCredentialWithAll=Gy;var Uy=function(i,r){return r===void 0&&(r="unknow"),Rn(void 0,void 0,void 0,function(){var s,o,f,a;return In(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),s=(0,Cy.getConfig)("analysis"),s!=="enable"?[2]:$y()||Dy()?[2]:[4,Ly("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=d.sent(),f=(0,Ke.get)(o.body,"shorturl"),f&&console.log(`AI Tips:
|
|
34
|
+
}`;var B=cl(function(){return Z(h,P+"return "+S).apply(i,g)});if(B.source=S,Ks(B))throw B;return B}function om(e){return k(e).toLowerCase()}function am(e){return k(e).toUpperCase()}function lm(e,t,n){if(e=k(e),e&&(n||t===i))return yo(e);if(!e||!(t=De(t)))return e;var u=Qe(e),l=Qe(t),h=wo(u,l),g=xo(u,l)+1;return qt(u,h,g).join("")}function fm(e,t,n){if(e=k(e),e&&(n||t===i))return e.slice(0,Oo(e)+1);if(!e||!(t=De(t)))return e;var u=Qe(e),l=xo(u,Qe(t))+1;return qt(u,0,l).join("")}function cm(e,t,n){if(e=k(e),e&&(n||t===i))return e.replace(Ki,"");if(!e||!(t=De(t)))return e;var u=Qe(e),l=wo(u,Qe(t));return qt(u,l).join("")}function hm(e,t){var n=sh,u=uh;if(ie(t)){var l="separator"in t?t.separator:l;n="length"in t?U(t.length):n,u="omission"in t?De(t.omission):u}e=k(e);var h=e.length;if(hn(e)){var g=Qe(e);h=g.length}if(n>=h)return e;var _=n-pn(u);if(_<1)return u;var m=g?qt(g,0,_).join(""):e.slice(0,_);if(l===i)return m+u;if(g&&(_+=m.length-_),Zs(l)){if(e.slice(_).search(l)){var O,b=m;for(l.global||(l=hs(l.source,k(Gu.exec(l))+"g")),l.lastIndex=0;O=l.exec(b);)var S=O.index;m=m.slice(0,S===i?_:S)}}else if(e.indexOf(De(l),_)!=_){var R=m.lastIndexOf(l);R>-1&&(m=m.slice(0,R))}return m+u}function pm(e){return e=k(e),e&&Oh.test(e)?e.replace(Mu,Up):e}var gm=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Qs=ha("toUpperCase");function fl(e,t,n){return e=k(e),t=n?i:t,t===i?Fp(e)?Xp(e):Ip(e):e.match(t)||[]}var cl=X(function(e,t){try{return Te(e,i,t)}catch(n){return Ks(n)?n:new W(n)}}),dm=yt(function(e,t){return He(t,function(n){n=lt(n),mt(e,n,Ys(e[n],e))}),e});function _m(e){var t=e==null?0:e.length,n=F();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new We(f);return[n(u[0]),u[1]]}):[],X(function(u){for(var l=-1;++l<t;){var h=e[l];if(Te(h[0],this,u))return Te(h[1],this,u)}})}function vm(e){return Ug(Ue(e,p))}function eu(e){return function(){return e}}function mm(e,t){return e==null||e!==e?t:e}var Em=ga(),ym=ga(!0);function Ce(e){return e}function tu(e){return jo(typeof e=="function"?e:Ue(e,p))}function wm(e){return zo(Ue(e,p))}function xm(e,t){return Yo(e,Ue(t,p))}var Am=X(function(e,t){return function(n){return Jn(n,e,t)}}),Om=X(function(e,t){return function(n){return Jn(e,n,t)}});function nu(e,t,n){var u=he(t),l=kr(t,u);n==null&&!(ie(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=kr(t,he(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=xt(e);return He(l,function(_){var m=t[_];e[_]=m,g&&(e.prototype[_]=function(){var O=this.__chain__;if(h||O){var b=e(this.__wrapped__),S=b.__actions__=Se(this.__actions__);return S.push({func:m,args:arguments,thisArg:e}),b.__chain__=O,b}return m.apply(e,Ct([this.value()],arguments))})}),e}function bm(){return ce._===this&&(ce._=kp),this}function ru(){}function Sm(e){return e=U(e),X(function(t){return Vo(t,e)})}var Rm=Ps(re),Im=Ps(go),Cm=Ps(ss);function hl(e){return Gs(e)?us(lt(e)):sd(e)}function Lm(e){return function(t){return e==null?i:Yt(e,t)}}var Tm=_a(),$m=_a(!0);function iu(){return[]}function su(){return!1}function Dm(){return{}}function Pm(){return""}function Nm(){return!0}function qm(e,t){if(e=U(e),e<1||e>Rt)return[];var n=ut,u=ve(e,ut);t=F(t),e-=ut;for(var l=ls(u,t);++n<e;)t(n);return l}function Fm(e){return G(e)?re(e,lt):Pe(e)?[e]:Se($a(k(e)))}function Mm(e){var t=++Kp;return k(e)+t}var Hm=ri(function(e,t){return e+t},0),Wm=Ns("ceil"),Gm=ri(function(e,t){return e/t},1),Um=Ns("floor");function Bm(e){return e&&e.length?Zr(e,Ce,ys):i}function jm(e,t){return e&&e.length?Zr(e,F(t,2),ys):i}function Xm(e){return mo(e,Ce)}function zm(e,t){return mo(e,F(t,2))}function Ym(e){return e&&e.length?Zr(e,Ce,Os):i}function Vm(e,t){return e&&e.length?Zr(e,F(t,2),Os):i}var Km=ri(function(e,t){return e*t},1),Zm=Ns("round"),km=ri(function(e,t){return e-t},0);function Jm(e){return e&&e.length?as(e,Ce):0}function Qm(e,t){return e&&e.length?as(e,F(t,2)):0}return c.after=w0,c.ary=Ba,c.assign=av,c.assignIn=rl,c.assignInWith=_i,c.assignWith=lv,c.at=fv,c.before=ja,c.bind=Ys,c.bindAll=dm,c.bindKey=Xa,c.castArray=D0,c.chain=Wa,c.chunk=Ud,c.compact=Bd,c.concat=jd,c.cond=_m,c.conforms=vm,c.constant=eu,c.countBy=J_,c.create=cv,c.curry=za,c.curryRight=Ya,c.debounce=Va,c.defaults=hv,c.defaultsDeep=pv,c.defer=x0,c.delay=A0,c.difference=Xd,c.differenceBy=zd,c.differenceWith=Yd,c.drop=Vd,c.dropRight=Kd,c.dropRightWhile=Zd,c.dropWhile=kd,c.fill=Jd,c.filter=e0,c.flatMap=r0,c.flatMapDeep=i0,c.flatMapDepth=s0,c.flatten=qa,c.flattenDeep=Qd,c.flattenDepth=e_,c.flip=O0,c.flow=Em,c.flowRight=ym,c.fromPairs=t_,c.functions=yv,c.functionsIn=wv,c.groupBy=u0,c.initial=r_,c.intersection=i_,c.intersectionBy=s_,c.intersectionWith=u_,c.invert=Av,c.invertBy=Ov,c.invokeMap=a0,c.iteratee=tu,c.keyBy=l0,c.keys=he,c.keysIn=Ie,c.map=fi,c.mapKeys=Sv,c.mapValues=Rv,c.matches=wm,c.matchesProperty=xm,c.memoize=hi,c.merge=Iv,c.mergeWith=il,c.method=Am,c.methodOf=Om,c.mixin=nu,c.negate=pi,c.nthArg=Sm,c.omit=Cv,c.omitBy=Lv,c.once=b0,c.orderBy=f0,c.over=Rm,c.overArgs=S0,c.overEvery=Im,c.overSome=Cm,c.partial=Vs,c.partialRight=Ka,c.partition=c0,c.pick=Tv,c.pickBy=sl,c.property=hl,c.propertyOf=Lm,c.pull=f_,c.pullAll=Ma,c.pullAllBy=c_,c.pullAllWith=h_,c.pullAt=p_,c.range=Tm,c.rangeRight=$m,c.rearg=R0,c.reject=g0,c.remove=g_,c.rest=I0,c.reverse=Xs,c.sampleSize=_0,c.set=Dv,c.setWith=Pv,c.shuffle=v0,c.slice=d_,c.sortBy=y0,c.sortedUniq=x_,c.sortedUniqBy=A_,c.split=rm,c.spread=C0,c.tail=O_,c.take=b_,c.takeRight=S_,c.takeRightWhile=R_,c.takeWhile=I_,c.tap=B_,c.throttle=L0,c.thru=li,c.toArray=el,c.toPairs=ul,c.toPairsIn=ol,c.toPath=Fm,c.toPlainObject=nl,c.transform=Nv,c.unary=T0,c.union=C_,c.unionBy=L_,c.unionWith=T_,c.uniq=$_,c.uniqBy=D_,c.uniqWith=P_,c.unset=qv,c.unzip=zs,c.unzipWith=Ha,c.update=Fv,c.updateWith=Mv,c.values=xn,c.valuesIn=Hv,c.without=N_,c.words=fl,c.wrap=$0,c.xor=q_,c.xorBy=F_,c.xorWith=M_,c.zip=H_,c.zipObject=W_,c.zipObjectDeep=G_,c.zipWith=U_,c.entries=ul,c.entriesIn=ol,c.extend=rl,c.extendWith=_i,nu(c,c),c.add=Hm,c.attempt=cl,c.camelCase=Bv,c.capitalize=al,c.ceil=Wm,c.clamp=Wv,c.clone=P0,c.cloneDeep=q0,c.cloneDeepWith=F0,c.cloneWith=N0,c.conformsTo=M0,c.deburr=ll,c.defaultTo=mm,c.divide=Gm,c.endsWith=jv,c.eq=tt,c.escape=Xv,c.escapeRegExp=zv,c.every=Q_,c.find=t0,c.findIndex=Pa,c.findKey=gv,c.findLast=n0,c.findLastIndex=Na,c.findLastKey=dv,c.floor=Um,c.forEach=Ga,c.forEachRight=Ua,c.forIn=_v,c.forInRight=vv,c.forOwn=mv,c.forOwnRight=Ev,c.get=ks,c.gt=H0,c.gte=W0,c.has=xv,c.hasIn=Js,c.head=Fa,c.identity=Ce,c.includes=o0,c.indexOf=n_,c.inRange=Gv,c.invoke=bv,c.isArguments=Zt,c.isArray=G,c.isArrayBuffer=G0,c.isArrayLike=Re,c.isArrayLikeObject=ue,c.isBoolean=U0,c.isBuffer=Ft,c.isDate=B0,c.isElement=j0,c.isEmpty=X0,c.isEqual=z0,c.isEqualWith=Y0,c.isError=Ks,c.isFinite=V0,c.isFunction=xt,c.isInteger=Za,c.isLength=gi,c.isMap=ka,c.isMatch=K0,c.isMatchWith=Z0,c.isNaN=k0,c.isNative=J0,c.isNil=ev,c.isNull=Q0,c.isNumber=Ja,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=ir,c.isRegExp=Zs,c.isSafeInteger=tv,c.isSet=Qa,c.isString=di,c.isSymbol=Pe,c.isTypedArray=wn,c.isUndefined=nv,c.isWeakMap=rv,c.isWeakSet=iv,c.join=o_,c.kebabCase=Yv,c.last=je,c.lastIndexOf=a_,c.lowerCase=Vv,c.lowerFirst=Kv,c.lt=sv,c.lte=uv,c.max=Bm,c.maxBy=jm,c.mean=Xm,c.meanBy=zm,c.min=Ym,c.minBy=Vm,c.stubArray=iu,c.stubFalse=su,c.stubObject=Dm,c.stubString=Pm,c.stubTrue=Nm,c.multiply=Km,c.nth=l_,c.noConflict=bm,c.noop=ru,c.now=ci,c.pad=Zv,c.padEnd=kv,c.padStart=Jv,c.parseInt=Qv,c.random=Uv,c.reduce=h0,c.reduceRight=p0,c.repeat=em,c.replace=tm,c.result=$v,c.round=Zm,c.runInContext=v,c.sample=d0,c.size=m0,c.snakeCase=nm,c.some=E0,c.sortedIndex=__,c.sortedIndexBy=v_,c.sortedIndexOf=m_,c.sortedLastIndex=E_,c.sortedLastIndexBy=y_,c.sortedLastIndexOf=w_,c.startCase=im,c.startsWith=sm,c.subtract=km,c.sum=Jm,c.sumBy=Qm,c.template=um,c.times=qm,c.toFinite=At,c.toInteger=U,c.toLength=tl,c.toLower=om,c.toNumber=Xe,c.toSafeInteger=ov,c.toString=k,c.toUpper=am,c.trim=lm,c.trimEnd=fm,c.trimStart=cm,c.truncate=hm,c.unescape=pm,c.uniqueId=Mm,c.upperCase=gm,c.upperFirst=Qs,c.each=Ga,c.eachRight=Ua,c.first=Fa,nu(c,function(){var e={};return ot(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){Y.prototype[e]=function(n){n=n===i?1:fe(U(n),0);var u=this.__filtered__&&!t?new Y(this):this.clone();return u.__filtered__?u.__takeCount__=ve(n,u.__takeCount__):u.__views__.push({size:ve(n,ut),type:e+(u.__dir__<0?"Right":"")}),u},Y.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),He(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Nu||n==fh;Y.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:F(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),He(["head","last"],function(e,t){var n="take"+(t?"Right":"");Y.prototype[e]=function(){return this[n](1).value()[0]}}),He(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[n](1)}}),Y.prototype.compact=function(){return this.filter(Ce)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new Y(this):this.map(function(n){return Jn(n,e,t)})}),Y.prototype.reject=function(e){return this.filter(pi(F(e)))},Y.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Y(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)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(ut)},ot(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(c.prototype[t]=function(){var g=this.__wrapped__,_=u?[1]:arguments,m=g instanceof Y,O=_[0],b=m||G(g),S=function(z){var V=l.apply(c,Ct([z],_));return u&&R?V[0]:V};b&&n&&typeof O=="function"&&O.length!=1&&(m=b=!1);var R=this.__chain__,P=!!this.__actions__.length,M=h&&!R,B=m&&!P;if(!h&&b){g=B?g:new Y(this);var H=e.apply(g,_);return H.__actions__.push({func:li,args:[S],thisArg:i}),new Ge(H,R)}return M&&B?e.apply(this,_):(H=this.thru(S),M?u?H.value()[0]:H.value():H)})}),He(["pop","push","shift","sort","splice","unshift"],function(e){var t=Nr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],l)}return this[n](function(g){return t.apply(G(g)?g:[],l)})}}),ot(Y.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";J.call(_n,u)||(_n[u]=[]),_n[u].push({name:t,func:n})}}),_n[ni(i,Wt).name]=[{name:"wrapper",func:i}],Y.prototype.clone=pg,Y.prototype.reverse=gg,Y.prototype.value=dg,c.prototype.at=j_,c.prototype.chain=X_,c.prototype.commit=z_,c.prototype.next=Y_,c.prototype.plant=K_,c.prototype.reverse=Z_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=k_,c.prototype.first=c.prototype.head,Xn&&(c.prototype[Xn]=V_),c},Tt=zp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ce._=Tt,define(function(){return Tt})):Ut?((Ut.exports=Tt)._=Tt,ts._=Tt):ce._=Tt}).call(Sn)});var Ru=L(Le=>{"use strict";var my=Le&&Le.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Ey=Le&&Le.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=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++,f=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(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Sc=Le&&Le.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Le,"__esModule",{value:!0});Le.handlerProfileFile=Le.getConfig=Le.setConfig=void 0;var Rc=Sc(require("path")),bu=Sc(ft()),ct=bu.default.fse,Ti=bu.default.jsyaml,Su=bu.default.getRootHome;function yy(i){var r=Cc();ct.writeFileSync(r,Ti.dump(i))}function Ic(){var i=Cc();if(!ct.existsSync(i))return{};try{var r=Ti.load(ct.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Cc(){var i=Rc.default.join(Su(),"set-config.yml");return ct.existsSync(i)||ct.createFileSync(i),i}function wy(i,r){var s=Ic();s[i]=r,yy(s)}Le.setConfig=wy;function xy(i,r){var s=Ic();return s[i]||r}Le.getConfig=xy;function Ay(i){return my(this,void 0,void 0,function(){var r,s,o,f,a,d,E;return Ey(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=Rc.default.join(Su(),r),o=ct.existsSync(s),f={},o)return[3,5];a=Su(),y.label=1;case 1:return y.trys.push([1,2,,4]),ct.statSync(a),[3,4];case 2:return d=y.sent(),[4,ct.mkdirSync(a)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{f=Ti.load(ct.readFileSync(s,"utf8"))||{}}catch(p){throw p}y.label=6;case 6:return i.read?[2,f]:(E=i.configKey||"",f[E]=i.data,[4,ct.writeFileSync(s,Ti.dump(f))]);case 7:return y.sent(),[2,f]}})})}Le.handlerProfileFile=Ay});var Lc=L((tA,Oy)=>{Oy.exports={name:"@serverless-devs/s",version:"2.0.100-beta.5",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/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.4.7","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.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var Di=L(q=>{"use strict";var by=q&&q.__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]}),Sy=q&&q.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Ry=q&&q.__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)&&by(r,i,s);return Sy(r,i),r},Rn=q&&q.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},In=q&&q.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=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++,f=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(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Iu=q&&q.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(q,"__esModule",{value:!0});q.emoji=q.mark=q.replaceTemplate=q.getTemplatekey=q.replaceFun=q.getLang=q.printn=q.getFolderSize=q.getVersion=q.getPid=q.aiRequest=q.getCredentialWithAll=q.getCredentialWithExisted=q.getCredentialAliasList=q.getProcessArgv=q.bgRed=q.yellow=q.red=void 0;var Tc=Iu(require("path")),wr=Iu(require("fs")),Ke=bc(),Iy=Iu(require("os")),Ze=Ry(ft()),Cy=Ru(),$c=Lc(),$i=Ze.default.colors,Ly=Ze.default.got,Ty=Ze.default.getMAC,$y=Ze.default.isDocker,Dy=Ze.default.isCiCdEnv,Py=Ze.default.getGlobalArgs,Ny=Ze.default.getYamlContent,qy=Ze.default.getRootHome,Dc=Ze.default.getCredential,Fy=Ze.default.getCredentialFromEnv;q.red=$i.hex("#fd5750");q.yellow=$i.hex("#F3F99D");q.bgRed=$i.hex("#000").bgHex("#fd5750");var My=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=Py(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Ke.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Ke.filter)(s._argsObj,function(o){return!(0,Ke.includes)(["-h","--help"],o)}))})}catch{return{}}};q.getProcessArgv=My;var Hy=function(){return Rn(void 0,void 0,void 0,function(){var i,r,s;return In(this,function(o){switch(o.label){case 0:return i=[],[4,Ny(Tc.default.join(qy(),"access.yaml"))];case 1:return r=o.sent(),r&&(i=(0,Ke.keys)(r)),[4,Fy()];case 2:return s=o.sent(),s&&(i=(0,Ke.filter)(i,function(f){return f!==s.Alias}),i.push(s.Alias)),[2,i]}})})};q.getCredentialAliasList=Hy;var Wy=function(i){return Rn(void 0,void 0,void 0,function(){var r,s;return In(this,function(o){switch(o.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:return r=o.sent(),(0,Ke.includes)(r,i)?[4,Dc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Ke.omit)(s,"Alias")];case 3:return[2]}})})};q.getCredentialWithExisted=Wy;var Gy=function(){return Rn(void 0,void 0,void 0,function(){var i,r,s,o,f,a;return In(this,function(d){switch(d.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:if(i=d.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,d.label=2;case 2:return s<o.length?(f=o[s],[4,Dc(f)]):[3,5];case 3:a=d.sent(),r[a.Alias]=(0,Ke.omit)(a,"Alias"),d.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};q.getCredentialWithAll=Gy;var Uy=function(i,r){return r===void 0&&(r="unknow"),Rn(void 0,void 0,void 0,function(){var s,o,f,a;return In(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),s=(0,Cy.getConfig)("analysis"),s!=="enable"?[2]:$y()||Dy()?[2]:[4,Ly("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=d.sent(),f=(0,Ke.get)(o.body,"shorturl"),f&&console.log(`AI Tips:
|
|
35
35
|
You can try to solve the problem through: `.concat($i.underline(f),`
|
|
36
36
|
`)),[3,3];case 2:return a=d.sent(),[3,3];case 3:return[2]}})})};q.aiRequest=Uy;var By=function(){try{return Ty().replace(/:/g,"")}catch{return"unknown"}};q.getPid=By;function jy(){var i=(0,Ze.getCoreVersion)(),r="".concat(process.platform,"-").concat(process.arch),s="node-".concat(process.version),o="core: ".concat(i),f="s-home: ".concat(Ze.default.getRootHome()),a="".concat($c.name,": ").concat($c.version);return i?"".concat(a,", ").concat(o,", ").concat(f,", ").concat(r,", ").concat(s):"".concat(a,", ").concat(f,", ").concat(r,", ").concat(s)}q.getVersion=jy;function Xy(i){return Rn(this,void 0,void 0,function(){function r(f){return Rn(this,void 0,void 0,function(){var a,d;return In(this,function(E){switch(E.label){case 0:return a=wr.default.lstatSync(f),typeof a!="object"?[2]:(s.set(a.ino,a.size),a.isDirectory()?(d=wr.default.readdirSync(f),typeof d!="object"?[2]:[4,Promise.all(d.map(function(y){return r(Tc.default.join(f,y))}))]):[3,2]);case 1:E.sent(),E.label=2;case 2:return[2]}})})}var s,o;return In(this,function(f){switch(f.label){case 0:return s=new Map,[4,r(i)];case 1:return f.sent(),o=Array.from(s.values()).reduce(function(a,d){return a+d},0),[2,o]}})})}q.getFolderSize=Xy;function zy(i,r){r===void 0&&(r=" ");for(var s="",o=0;o<i;o++)s=s+r;return s}q.printn=zy;function Yy(){return"en"}q.getLang=Yy;function Pc(i,r){var s=/\{\{(.*?)\}\}/g,o=i.match(s);if(o)for(var f=0;f<o.length;f++){var a=o[f].replace(/{{|}}/g,""),d=(0,Ke.trim)(a.split("|")[0]);r[d]&&(i=i.replace(o[f],r[d]))}return i}q.replaceFun=Pc;function Vy(i){var r=/\{\{(.*?)\}\}/g,s=i.match(r);return s?s.filter(function(o){return o}).map(function(o){var f=o.replace(/{{|}}/g,""),a=f.split("|");return{name:(0,Ke.trim)(a[0]),desc:(0,Ke.trim)(a[1])}}):[]}q.getTemplatekey=Vy;function Ky(i,r){i.forEach(function(s){if(wr.default.existsSync(s)){var o=wr.default.readFileSync(s,"utf-8"),f=Pc(o,r);wr.default.writeFileSync(s,f,"utf-8")}})}q.replaceTemplate=Ky;function Zy(i){if(!i)return i;var r=i.slice(-4);return"***********".concat(r)}q.mark=Zy;function ky(i,r){return Iy.default.platform()==="win32"?r||"\u25C6":"".concat(i," ")}q.emoji=ky});var Nc=L(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var qc=L(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var Mc=L(xr=>{"use strict";var Fc=xr&&xr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(xr,"__esModule",{value:!0});var Jy=Di(),Qy=Fc(Nc()),ew=Fc(qc()),Tu={en:ew.default,zh:Qy.default},tw=function(i){var r=(0,Jy.getLang)(),s=Tu[r]?Tu[r][i]:Tu.en[i];return s||i};xr.default=tw});var Pi=L(ge=>{"use strict";var nw=ge&&ge.__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]}),Hc=ge&&ge.__exportStar||function(i,r){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&nw(r,i,s)},Ar=ge&&ge.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ge,"__esModule",{value:!0});ge.registerCommandChecker=ge.getYamlPath=ge.i18n=ge.logger=void 0;var Wc=Ar(require("path")),rw=Ar(Ou()),iw=Ar(ft()),Gc=iw.default.fse;Hc(Di(),ge);Hc(Ru(),ge);var sw=Ou();Object.defineProperty(ge,"logger",{enumerable:!0,get:function(){return Ar(sw).default}});var uw=Mc();Object.defineProperty(ge,"i18n",{enumerable:!0,get:function(){return Ar(uw).default}});var ow=function(i,r){var s=Wc.default.join(i,"".concat(r,".yaml")),o=Wc.default.join(i,"".concat(r,".yml")),f=Gc.existsSync(s)?s:Gc.existsSync(o)?o:void 0;return f};ge.getYamlPath=ow;function aw(i){i.on("command:*",function(r){var s=i.commands.map(function(o){return o.name()});s.includes(r[0])||(rw.default.error(" error: unknown command ".concat(r[0])),i.help())})}ge.registerCommandChecker=aw});var sn=L(Cn=>{"use strict";var lw=Cn&&Cn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ServerlessError=void 0;var fw=lw(ft()),cw=fw.default.Logger,hw=new cw("S-CLI-ERROR"),pw=function(){function i(r,s,o){hw.error(r+": "+s,o),process.exit(1)}return i}();Cn.ServerlessError=pw});var Uc=L(Ln=>{"use strict";var gw=Ln&&Ln.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.CommandError=void 0;var dw=sn(),_w=function(i){gw(r,i);function r(s,o){return i.call(this,"Error",s,o)||this}return r}(dw.ServerlessError);Ln.CommandError=_w});var Bc=L(Tn=>{"use strict";var vw=Tn&&Tn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.ConfigDeleteError=void 0;var mw=sn(),Ew=function(i){vw(r,i);function r(s,o){return i.call(this,"Deletion failed",s,o)||this}return r}(mw.ServerlessError);Tn.ConfigDeleteError=Ew});var jc=L($n=>{"use strict";var yw=$n&&$n.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty($n,"__esModule",{value:!0});$n.ConfigError=void 0;var ww=sn(),xw=function(i){yw(r,i);function r(s,o){return i.call(this,"Config failed",s,o)||this}return r}(ww.ServerlessError);$n.ConfigError=xw});var Xc=L(Dn=>{"use strict";var Aw=Dn&&Dn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.ConfigGetError=void 0;var Ow=sn(),bw=function(i){Aw(r,i);function r(s,o){return i.call(this,"Get failed",s,o)||this}return r}(Ow.ServerlessError);Dn.ConfigGetError=bw});var zc=L(Pn=>{"use strict";var Sw=Pn&&Pn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Pn,"__esModule",{value:!0});Pn.InitError=void 0;var Rw=sn(),Iw=function(i){Sw(r,i);function r(s,o){return i.call(this,"Initialization failed",s,o)||this}return r}(Rw.ServerlessError);Pn.InitError=Iw});var Vc=L(ht=>{"use strict";var Cw=ht&&ht.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Lw=ht&&ht.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=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++,f=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(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Tw=ht&&ht.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ht,"__esModule",{value:!0});ht.HumanError=void 0;var Yc=Tw(ft()),$w=Di(),Dw=Yc.default.colors,Pw=function(){function i(r){var s=r.errorMessage,o=r.tips;this.errorMessage=s,console.log(`
|
|
37
37
|
`.concat((0,$w.bgRed)("ERROR:"))),console.log("TypeError: ".concat(s,`
|
package/lib/config/get/index.js
CHANGED
|
@@ -31,7 +31,7 @@ __p += '`),V&&(S+=`' +
|
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+S+`return __p
|
|
34
|
-
}`;var B=pl(function(){return Z(h,P+"return "+S).apply(i,g)});if(B.source=S,Ys(B))throw B;return B}function sm(e){return k(e).toLowerCase()}function um(e){return k(e).toUpperCase()}function om(e,t,n){if(e=k(e),e&&(n||t===i))return xo(e);if(!e||!(t=Pe(t)))return e;var u=et(e),l=et(t),h=Ao(u,l),g=Oo(u,l)+1;return Ft(u,h,g).join("")}function am(e,t,n){if(e=k(e),e&&(n||t===i))return e.slice(0,So(e)+1);if(!e||!(t=Pe(t)))return e;var u=et(e),l=Oo(u,et(t))+1;return Ft(u,0,l).join("")}function lm(e,t,n){if(e=k(e),e&&(n||t===i))return e.replace(Yi,"");if(!e||!(t=Pe(t)))return e;var u=et(e),l=Ao(u,et(t));return Ft(u,l).join("")}function fm(e,t){var n=rh,u=ih;if(ie(t)){var l="separator"in t?t.separator:l;n="length"in t?U(t.length):n,u="omission"in t?Pe(t.omission):u}e=k(e);var h=e.length;if(pn(e)){var g=et(e);h=g.length}if(n>=h)return e;var _=n-gn(u);if(_<1)return u;var m=g?Ft(g,0,_).join(""):e.slice(0,_);if(l===i)return m+u;if(g&&(_+=m.length-_),Vs(l)){if(e.slice(_).search(l)){var O,b=m;for(l.global||(l=fs(l.source,k(Bu.exec(l))+"g")),l.lastIndex=0;O=l.exec(b);)var S=O.index;m=m.slice(0,S===i?_:S)}}else if(e.indexOf(Pe(l),_)!=_){var R=m.lastIndexOf(l);R>-1&&(m=m.slice(0,R))}return m+u}function cm(e){return e=k(e),e&&xh.test(e)?e.replace(Wu,Wp):e}var hm=yn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ks=ga("toUpperCase");function hl(e,t,n){return e=k(e),t=n?i:t,t===i?Np(e)?Bp(e):Sp(e):e.match(t)||[]}var pl=X(function(e,t){try{return $e(e,i,t)}catch(n){return Ys(n)?n:new W(n)}}),pm=wt(function(e,t){return We(t,function(n){n=ft(n),Et(e,n,Xs(e[n],e))}),e});function gm(e){var t=e==null?0:e.length,n=F();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new Ge(f);return[n(u[0]),u[1]]}):[],X(function(u){for(var l=-1;++l<t;){var h=e[l];if($e(h[0],this,u))return $e(h[1],this,u)}})}function dm(e){return Wg(Be(e,p))}function Js(e){return function(){return e}}function _m(e,t){return e==null||e!==e?t:e}var vm=_a(),mm=_a(!0);function Ce(e){return e}function Qs(e){return zo(typeof e=="function"?e:Be(e,p))}function Em(e){return Vo(Be(e,p))}function ym(e,t){return Ko(e,Be(t,p))}var wm=X(function(e,t){return function(n){return Qn(n,e,t)}}),xm=X(function(e,t){return function(n){return Qn(e,n,t)}});function eu(e,t,n){var u=he(t),l=Jr(t,u);n==null&&!(ie(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=Jr(t,he(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=At(e);return We(l,function(_){var m=t[_];e[_]=m,g&&(e.prototype[_]=function(){var O=this.__chain__;if(h||O){var b=e(this.__wrapped__),S=b.__actions__=Se(this.__actions__);return S.push({func:m,args:arguments,thisArg:e}),b.__chain__=O,b}return m.apply(e,Lt([this.value()],arguments))})}),e}function Am(){return ce._===this&&(ce._=Kp),this}function tu(){}function Om(e){return e=U(e),X(function(t){return Zo(t,e)})}var bm=$s(re),Sm=$s(vo),Rm=$s(rs);function gl(e){return Hs(e)?is(ft(e)):rd(e)}function Im(e){return function(t){return e==null?i:Vt(e,t)}}var Cm=ma(),Lm=ma(!0);function nu(){return[]}function ru(){return!1}function Tm(){return{}}function $m(){return""}function Dm(){return!0}function Pm(e,t){if(e=U(e),e<1||e>It)return[];var n=ot,u=ve(e,ot);t=F(t),e-=ot;for(var l=os(u,t);++n<e;)t(n);return l}function Nm(e){return G(e)?re(e,ft):Ne(e)?[e]:Se(Pa(k(e)))}function qm(e){var t=++Yp;return k(e)+t}var Fm=ii(function(e,t){return e+t},0),Mm=Ds("ceil"),Hm=ii(function(e,t){return e/t},1),Wm=Ds("floor");function Gm(e){return e&&e.length?kr(e,Ce,ms):i}function Um(e,t){return e&&e.length?kr(e,F(t,2),ms):i}function Bm(e){return yo(e,Ce)}function jm(e,t){return yo(e,F(t,2))}function Xm(e){return e&&e.length?kr(e,Ce,xs):i}function zm(e,t){return e&&e.length?kr(e,F(t,2),xs):i}var Ym=ii(function(e,t){return e*t},1),Vm=Ds("round"),Km=ii(function(e,t){return e-t},0);function Zm(e){return e&&e.length?us(e,Ce):0}function km(e,t){return e&&e.length?us(e,F(t,2)):0}return c.after=E0,c.ary=Xa,c.assign=uv,c.assignIn=sl,c.assignInWith=vi,c.assignWith=ov,c.at=av,c.before=za,c.bind=Xs,c.bindAll=pm,c.bindKey=Ya,c.castArray=T0,c.chain=Ua,c.chunk=Wd,c.compact=Gd,c.concat=Ud,c.cond=gm,c.conforms=dm,c.constant=Js,c.countBy=Z_,c.create=lv,c.curry=Va,c.curryRight=Ka,c.debounce=Za,c.defaults=fv,c.defaultsDeep=cv,c.defer=y0,c.delay=w0,c.difference=Bd,c.differenceBy=jd,c.differenceWith=Xd,c.drop=zd,c.dropRight=Yd,c.dropRightWhile=Vd,c.dropWhile=Kd,c.fill=Zd,c.filter=J_,c.flatMap=t0,c.flatMapDeep=n0,c.flatMapDepth=r0,c.flatten=Ma,c.flattenDeep=kd,c.flattenDepth=Jd,c.flip=x0,c.flow=vm,c.flowRight=mm,c.fromPairs=Qd,c.functions=mv,c.functionsIn=Ev,c.groupBy=i0,c.initial=t_,c.intersection=n_,c.intersectionBy=r_,c.intersectionWith=i_,c.invert=wv,c.invertBy=xv,c.invokeMap=u0,c.iteratee=Qs,c.keyBy=o0,c.keys=he,c.keysIn=Ie,c.map=ci,c.mapKeys=Ov,c.mapValues=bv,c.matches=Em,c.matchesProperty=ym,c.memoize=pi,c.merge=Sv,c.mergeWith=ul,c.method=wm,c.methodOf=xm,c.mixin=eu,c.negate=gi,c.nthArg=Om,c.omit=Rv,c.omitBy=Iv,c.once=A0,c.orderBy=a0,c.over=bm,c.overArgs=O0,c.overEvery=Sm,c.overSome=Rm,c.partial=zs,c.partialRight=ka,c.partition=l0,c.pick=Cv,c.pickBy=ol,c.property=gl,c.propertyOf=Im,c.pull=a_,c.pullAll=Wa,c.pullAllBy=l_,c.pullAllWith=f_,c.pullAt=c_,c.range=Cm,c.rangeRight=Lm,c.rearg=b0,c.reject=h0,c.remove=h_,c.rest=S0,c.reverse=Bs,c.sampleSize=g0,c.set=Tv,c.setWith=$v,c.shuffle=d0,c.slice=p_,c.sortBy=m0,c.sortedUniq=y_,c.sortedUniqBy=w_,c.split=tm,c.spread=R0,c.tail=x_,c.take=A_,c.takeRight=O_,c.takeRightWhile=b_,c.takeWhile=S_,c.tap=G_,c.throttle=I0,c.thru=fi,c.toArray=nl,c.toPairs=al,c.toPairsIn=ll,c.toPath=Nm,c.toPlainObject=il,c.transform=Dv,c.unary=C0,c.union=R_,c.unionBy=I_,c.unionWith=C_,c.uniq=L_,c.uniqBy=T_,c.uniqWith=$_,c.unset=Pv,c.unzip=js,c.unzipWith=Ga,c.update=Nv,c.updateWith=qv,c.values=An,c.valuesIn=Fv,c.without=D_,c.words=hl,c.wrap=L0,c.xor=P_,c.xorBy=N_,c.xorWith=q_,c.zip=F_,c.zipObject=M_,c.zipObjectDeep=H_,c.zipWith=W_,c.entries=al,c.entriesIn=ll,c.extend=sl,c.extendWith=vi,eu(c,c),c.add=Fm,c.attempt=pl,c.camelCase=Gv,c.capitalize=fl,c.ceil=Mm,c.clamp=Mv,c.clone=$0,c.cloneDeep=P0,c.cloneDeepWith=N0,c.cloneWith=D0,c.conformsTo=q0,c.deburr=cl,c.defaultTo=_m,c.divide=Hm,c.endsWith=Uv,c.eq=nt,c.escape=Bv,c.escapeRegExp=jv,c.every=k_,c.find=Q_,c.findIndex=qa,c.findKey=hv,c.findLast=e0,c.findLastIndex=Fa,c.findLastKey=pv,c.floor=Wm,c.forEach=Ba,c.forEachRight=ja,c.forIn=gv,c.forInRight=dv,c.forOwn=_v,c.forOwnRight=vv,c.get=Ks,c.gt=F0,c.gte=M0,c.has=yv,c.hasIn=Zs,c.head=Ha,c.identity=Ce,c.includes=s0,c.indexOf=e_,c.inRange=Hv,c.invoke=Av,c.isArguments=kt,c.isArray=G,c.isArrayBuffer=H0,c.isArrayLike=Re,c.isArrayLikeObject=ue,c.isBoolean=W0,c.isBuffer=Mt,c.isDate=G0,c.isElement=U0,c.isEmpty=B0,c.isEqual=j0,c.isEqualWith=X0,c.isError=Ys,c.isFinite=z0,c.isFunction=At,c.isInteger=Ja,c.isLength=di,c.isMap=Qa,c.isMatch=Y0,c.isMatchWith=V0,c.isNaN=K0,c.isNative=Z0,c.isNil=J0,c.isNull=k0,c.isNumber=el,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=sr,c.isRegExp=Vs,c.isSafeInteger=Q0,c.isSet=tl,c.isString=_i,c.isSymbol=Ne,c.isTypedArray=xn,c.isUndefined=ev,c.isWeakMap=tv,c.isWeakSet=nv,c.join=s_,c.kebabCase=Xv,c.last=Xe,c.lastIndexOf=u_,c.lowerCase=zv,c.lowerFirst=Yv,c.lt=rv,c.lte=iv,c.max=Gm,c.maxBy=Um,c.mean=Bm,c.meanBy=jm,c.min=Xm,c.minBy=zm,c.stubArray=nu,c.stubFalse=ru,c.stubObject=Tm,c.stubString=$m,c.stubTrue=Dm,c.multiply=Ym,c.nth=o_,c.noConflict=Am,c.noop=tu,c.now=hi,c.pad=Vv,c.padEnd=Kv,c.padStart=Zv,c.parseInt=kv,c.random=Wv,c.reduce=f0,c.reduceRight=c0,c.repeat=Jv,c.replace=Qv,c.result=Lv,c.round=Vm,c.runInContext=v,c.sample=p0,c.size=_0,c.snakeCase=em,c.some=v0,c.sortedIndex=g_,c.sortedIndexBy=d_,c.sortedIndexOf=__,c.sortedLastIndex=v_,c.sortedLastIndexBy=m_,c.sortedLastIndexOf=E_,c.startCase=nm,c.startsWith=rm,c.subtract=Km,c.sum=Zm,c.sumBy=km,c.template=im,c.times=Pm,c.toFinite=Ot,c.toInteger=U,c.toLength=rl,c.toLower=sm,c.toNumber=ze,c.toSafeInteger=sv,c.toString=k,c.toUpper=um,c.trim=om,c.trimEnd=am,c.trimStart=lm,c.truncate=fm,c.unescape=cm,c.uniqueId=qm,c.upperCase=hm,c.upperFirst=ks,c.each=Ba,c.eachRight=ja,c.first=Ha,eu(c,function(){var e={};return at(c,function(t,n){J.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,We(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),We(["drop","take"],function(e,t){Y.prototype[e]=function(n){n=n===i?1:fe(U(n),0);var u=this.__filtered__&&!t?new Y(this):this.clone();return u.__filtered__?u.__takeCount__=ve(n,u.__takeCount__):u.__views__.push({size:ve(n,ot),type:e+(u.__dir__<0?"Right":"")}),u},Y.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),We(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Fu||n==ah;Y.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:F(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),We(["head","last"],function(e,t){var n="take"+(t?"Right":"");Y.prototype[e]=function(){return this[n](1).value()[0]}}),We(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[n](1)}}),Y.prototype.compact=function(){return this.filter(Ce)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new Y(this):this.map(function(n){return Qn(n,e,t)})}),Y.prototype.reject=function(e){return this.filter(gi(F(e)))},Y.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Y(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)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(ot)},at(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(c.prototype[t]=function(){var g=this.__wrapped__,_=u?[1]:arguments,m=g instanceof Y,O=_[0],b=m||G(g),S=function(z){var V=l.apply(c,Lt([z],_));return u&&R?V[0]:V};b&&n&&typeof O=="function"&&O.length!=1&&(m=b=!1);var R=this.__chain__,P=!!this.__actions__.length,M=h&&!R,B=m&&!P;if(!h&&b){g=B?g:new Y(this);var H=e.apply(g,_);return H.__actions__.push({func:fi,args:[S],thisArg:i}),new Ue(H,R)}return M&&B?e.apply(this,_):(H=this.thru(S),M?u?H.value()[0]:H.value():H)})}),We(["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 l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],l)}return this[n](function(g){return t.apply(G(g)?g:[],l)})}}),at(Y.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";J.call(vn,u)||(vn[u]=[]),vn[u].push({name:t,func:n})}}),vn[ri(i,Gt).name]=[{name:"wrapper",func:i}],Y.prototype.clone=cg,Y.prototype.reverse=hg,Y.prototype.value=pg,c.prototype.at=U_,c.prototype.chain=B_,c.prototype.commit=j_,c.prototype.next=X_,c.prototype.plant=Y_,c.prototype.reverse=V_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=K_,c.prototype.first=c.prototype.head,zn&&(c.prototype[zn]=z_),c},$t=jp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ce._=$t,define(function(){return $t})):Bt?((Bt.exports=$t)._=$t,Qi._=$t):ce._=$t}).call(Rn)});var Su=L(Le=>{"use strict";var _y=Le&&Le.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},vy=Le&&Le.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=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++,f=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(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Rc=Le&&Le.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Le,"__esModule",{value:!0});Le.handlerProfileFile=Le.getConfig=Le.setConfig=void 0;var Ic=Rc(require("path")),Ou=Rc(ct()),ht=Ou.default.fse,$i=Ou.default.jsyaml,bu=Ou.default.getRootHome;function my(i){var r=Lc();ht.writeFileSync(r,$i.dump(i))}function Cc(){var i=Lc();if(!ht.existsSync(i))return{};try{var r=$i.load(ht.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Lc(){var i=Ic.default.join(bu(),"set-config.yml");return ht.existsSync(i)||ht.createFileSync(i),i}function Ey(i,r){var s=Cc();s[i]=r,my(s)}Le.setConfig=Ey;function yy(i,r){var s=Cc();return s[i]||r}Le.getConfig=yy;function wy(i){return _y(this,void 0,void 0,function(){var r,s,o,f,a,d,E;return vy(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=Ic.default.join(bu(),r),o=ht.existsSync(s),f={},o)return[3,5];a=bu(),y.label=1;case 1:return y.trys.push([1,2,,4]),ht.statSync(a),[3,4];case 2:return d=y.sent(),[4,ht.mkdirSync(a)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{f=$i.load(ht.readFileSync(s,"utf8"))||{}}catch(p){throw p}y.label=6;case 6:return i.read?[2,f]:(E=i.configKey||"",f[E]=i.data,[4,ht.writeFileSync(s,$i.dump(f))]);case 7:return y.sent(),[2,f]}})})}Le.handlerProfileFile=wy});var Tc=L((kx,xy)=>{xy.exports={name:"@serverless-devs/s",version:"2.0.100-beta.4",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/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.4.7","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.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var Pi=L(q=>{"use strict";var Ay=q&&q.__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]}),Oy=q&&q.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),by=q&&q.__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)&&Ay(r,i,s);return Oy(r,i),r},In=q&&q.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Cn=q&&q.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=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++,f=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(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ru=q&&q.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(q,"__esModule",{value:!0});q.emoji=q.mark=q.replaceTemplate=q.getTemplatekey=q.replaceFun=q.getLang=q.printn=q.getFolderSize=q.getVersion=q.getPid=q.aiRequest=q.getCredentialWithAll=q.getCredentialWithExisted=q.getCredentialAliasList=q.getProcessArgv=q.bgRed=q.yellow=q.red=void 0;var $c=Ru(require("path")),xr=Ru(require("fs")),Ze=Au(),Sy=Ru(require("os")),ke=by(ct()),Ry=Su(),Dc=Tc(),Di=ke.default.colors,Iy=ke.default.got,Cy=ke.default.getMAC,Ly=ke.default.isDocker,Ty=ke.default.isCiCdEnv,$y=ke.default.getGlobalArgs,Dy=ke.default.getYamlContent,Py=ke.default.getRootHome,Pc=ke.default.getCredential,Ny=ke.default.getCredentialFromEnv;q.red=Di.hex("#fd5750");q.yellow=Di.hex("#F3F99D");q.bgRed=Di.hex("#000").bgHex("#fd5750");var qy=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=$y(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Ze.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Ze.filter)(s._argsObj,function(o){return!(0,Ze.includes)(["-h","--help"],o)}))})}catch{return{}}};q.getProcessArgv=qy;var Fy=function(){return In(void 0,void 0,void 0,function(){var i,r,s;return Cn(this,function(o){switch(o.label){case 0:return i=[],[4,Dy($c.default.join(Py(),"access.yaml"))];case 1:return r=o.sent(),r&&(i=(0,Ze.keys)(r)),[4,Ny()];case 2:return s=o.sent(),s&&(i=(0,Ze.filter)(i,function(f){return f!==s.Alias}),i.push(s.Alias)),[2,i]}})})};q.getCredentialAliasList=Fy;var My=function(i){return In(void 0,void 0,void 0,function(){var r,s;return Cn(this,function(o){switch(o.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:return r=o.sent(),(0,Ze.includes)(r,i)?[4,Pc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Ze.omit)(s,"Alias")];case 3:return[2]}})})};q.getCredentialWithExisted=My;var Hy=function(){return In(void 0,void 0,void 0,function(){var i,r,s,o,f,a;return Cn(this,function(d){switch(d.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:if(i=d.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,d.label=2;case 2:return s<o.length?(f=o[s],[4,Pc(f)]):[3,5];case 3:a=d.sent(),r[a.Alias]=(0,Ze.omit)(a,"Alias"),d.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};q.getCredentialWithAll=Hy;var Wy=function(i,r){return r===void 0&&(r="unknow"),In(void 0,void 0,void 0,function(){var s,o,f,a;return Cn(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),s=(0,Ry.getConfig)("analysis"),s!=="enable"?[2]:Ly()||Ty()?[2]:[4,Iy("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=d.sent(),f=(0,Ze.get)(o.body,"shorturl"),f&&console.log(`AI Tips:
|
|
34
|
+
}`;var B=pl(function(){return Z(h,P+"return "+S).apply(i,g)});if(B.source=S,Ys(B))throw B;return B}function sm(e){return k(e).toLowerCase()}function um(e){return k(e).toUpperCase()}function om(e,t,n){if(e=k(e),e&&(n||t===i))return xo(e);if(!e||!(t=Pe(t)))return e;var u=et(e),l=et(t),h=Ao(u,l),g=Oo(u,l)+1;return Ft(u,h,g).join("")}function am(e,t,n){if(e=k(e),e&&(n||t===i))return e.slice(0,So(e)+1);if(!e||!(t=Pe(t)))return e;var u=et(e),l=Oo(u,et(t))+1;return Ft(u,0,l).join("")}function lm(e,t,n){if(e=k(e),e&&(n||t===i))return e.replace(Yi,"");if(!e||!(t=Pe(t)))return e;var u=et(e),l=Ao(u,et(t));return Ft(u,l).join("")}function fm(e,t){var n=rh,u=ih;if(ie(t)){var l="separator"in t?t.separator:l;n="length"in t?U(t.length):n,u="omission"in t?Pe(t.omission):u}e=k(e);var h=e.length;if(pn(e)){var g=et(e);h=g.length}if(n>=h)return e;var _=n-gn(u);if(_<1)return u;var m=g?Ft(g,0,_).join(""):e.slice(0,_);if(l===i)return m+u;if(g&&(_+=m.length-_),Vs(l)){if(e.slice(_).search(l)){var O,b=m;for(l.global||(l=fs(l.source,k(Bu.exec(l))+"g")),l.lastIndex=0;O=l.exec(b);)var S=O.index;m=m.slice(0,S===i?_:S)}}else if(e.indexOf(Pe(l),_)!=_){var R=m.lastIndexOf(l);R>-1&&(m=m.slice(0,R))}return m+u}function cm(e){return e=k(e),e&&xh.test(e)?e.replace(Wu,Wp):e}var hm=yn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ks=ga("toUpperCase");function hl(e,t,n){return e=k(e),t=n?i:t,t===i?Np(e)?Bp(e):Sp(e):e.match(t)||[]}var pl=X(function(e,t){try{return $e(e,i,t)}catch(n){return Ys(n)?n:new W(n)}}),pm=wt(function(e,t){return We(t,function(n){n=ft(n),Et(e,n,Xs(e[n],e))}),e});function gm(e){var t=e==null?0:e.length,n=F();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new Ge(f);return[n(u[0]),u[1]]}):[],X(function(u){for(var l=-1;++l<t;){var h=e[l];if($e(h[0],this,u))return $e(h[1],this,u)}})}function dm(e){return Wg(Be(e,p))}function Js(e){return function(){return e}}function _m(e,t){return e==null||e!==e?t:e}var vm=_a(),mm=_a(!0);function Ce(e){return e}function Qs(e){return zo(typeof e=="function"?e:Be(e,p))}function Em(e){return Vo(Be(e,p))}function ym(e,t){return Ko(e,Be(t,p))}var wm=X(function(e,t){return function(n){return Qn(n,e,t)}}),xm=X(function(e,t){return function(n){return Qn(e,n,t)}});function eu(e,t,n){var u=he(t),l=Jr(t,u);n==null&&!(ie(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=Jr(t,he(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=At(e);return We(l,function(_){var m=t[_];e[_]=m,g&&(e.prototype[_]=function(){var O=this.__chain__;if(h||O){var b=e(this.__wrapped__),S=b.__actions__=Se(this.__actions__);return S.push({func:m,args:arguments,thisArg:e}),b.__chain__=O,b}return m.apply(e,Lt([this.value()],arguments))})}),e}function Am(){return ce._===this&&(ce._=Kp),this}function tu(){}function Om(e){return e=U(e),X(function(t){return Zo(t,e)})}var bm=$s(re),Sm=$s(vo),Rm=$s(rs);function gl(e){return Hs(e)?is(ft(e)):rd(e)}function Im(e){return function(t){return e==null?i:Vt(e,t)}}var Cm=ma(),Lm=ma(!0);function nu(){return[]}function ru(){return!1}function Tm(){return{}}function $m(){return""}function Dm(){return!0}function Pm(e,t){if(e=U(e),e<1||e>It)return[];var n=ot,u=ve(e,ot);t=F(t),e-=ot;for(var l=os(u,t);++n<e;)t(n);return l}function Nm(e){return G(e)?re(e,ft):Ne(e)?[e]:Se(Pa(k(e)))}function qm(e){var t=++Yp;return k(e)+t}var Fm=ii(function(e,t){return e+t},0),Mm=Ds("ceil"),Hm=ii(function(e,t){return e/t},1),Wm=Ds("floor");function Gm(e){return e&&e.length?kr(e,Ce,ms):i}function Um(e,t){return e&&e.length?kr(e,F(t,2),ms):i}function Bm(e){return yo(e,Ce)}function jm(e,t){return yo(e,F(t,2))}function Xm(e){return e&&e.length?kr(e,Ce,xs):i}function zm(e,t){return e&&e.length?kr(e,F(t,2),xs):i}var Ym=ii(function(e,t){return e*t},1),Vm=Ds("round"),Km=ii(function(e,t){return e-t},0);function Zm(e){return e&&e.length?us(e,Ce):0}function km(e,t){return e&&e.length?us(e,F(t,2)):0}return c.after=E0,c.ary=Xa,c.assign=uv,c.assignIn=sl,c.assignInWith=vi,c.assignWith=ov,c.at=av,c.before=za,c.bind=Xs,c.bindAll=pm,c.bindKey=Ya,c.castArray=T0,c.chain=Ua,c.chunk=Wd,c.compact=Gd,c.concat=Ud,c.cond=gm,c.conforms=dm,c.constant=Js,c.countBy=Z_,c.create=lv,c.curry=Va,c.curryRight=Ka,c.debounce=Za,c.defaults=fv,c.defaultsDeep=cv,c.defer=y0,c.delay=w0,c.difference=Bd,c.differenceBy=jd,c.differenceWith=Xd,c.drop=zd,c.dropRight=Yd,c.dropRightWhile=Vd,c.dropWhile=Kd,c.fill=Zd,c.filter=J_,c.flatMap=t0,c.flatMapDeep=n0,c.flatMapDepth=r0,c.flatten=Ma,c.flattenDeep=kd,c.flattenDepth=Jd,c.flip=x0,c.flow=vm,c.flowRight=mm,c.fromPairs=Qd,c.functions=mv,c.functionsIn=Ev,c.groupBy=i0,c.initial=t_,c.intersection=n_,c.intersectionBy=r_,c.intersectionWith=i_,c.invert=wv,c.invertBy=xv,c.invokeMap=u0,c.iteratee=Qs,c.keyBy=o0,c.keys=he,c.keysIn=Ie,c.map=ci,c.mapKeys=Ov,c.mapValues=bv,c.matches=Em,c.matchesProperty=ym,c.memoize=pi,c.merge=Sv,c.mergeWith=ul,c.method=wm,c.methodOf=xm,c.mixin=eu,c.negate=gi,c.nthArg=Om,c.omit=Rv,c.omitBy=Iv,c.once=A0,c.orderBy=a0,c.over=bm,c.overArgs=O0,c.overEvery=Sm,c.overSome=Rm,c.partial=zs,c.partialRight=ka,c.partition=l0,c.pick=Cv,c.pickBy=ol,c.property=gl,c.propertyOf=Im,c.pull=a_,c.pullAll=Wa,c.pullAllBy=l_,c.pullAllWith=f_,c.pullAt=c_,c.range=Cm,c.rangeRight=Lm,c.rearg=b0,c.reject=h0,c.remove=h_,c.rest=S0,c.reverse=Bs,c.sampleSize=g0,c.set=Tv,c.setWith=$v,c.shuffle=d0,c.slice=p_,c.sortBy=m0,c.sortedUniq=y_,c.sortedUniqBy=w_,c.split=tm,c.spread=R0,c.tail=x_,c.take=A_,c.takeRight=O_,c.takeRightWhile=b_,c.takeWhile=S_,c.tap=G_,c.throttle=I0,c.thru=fi,c.toArray=nl,c.toPairs=al,c.toPairsIn=ll,c.toPath=Nm,c.toPlainObject=il,c.transform=Dv,c.unary=C0,c.union=R_,c.unionBy=I_,c.unionWith=C_,c.uniq=L_,c.uniqBy=T_,c.uniqWith=$_,c.unset=Pv,c.unzip=js,c.unzipWith=Ga,c.update=Nv,c.updateWith=qv,c.values=An,c.valuesIn=Fv,c.without=D_,c.words=hl,c.wrap=L0,c.xor=P_,c.xorBy=N_,c.xorWith=q_,c.zip=F_,c.zipObject=M_,c.zipObjectDeep=H_,c.zipWith=W_,c.entries=al,c.entriesIn=ll,c.extend=sl,c.extendWith=vi,eu(c,c),c.add=Fm,c.attempt=pl,c.camelCase=Gv,c.capitalize=fl,c.ceil=Mm,c.clamp=Mv,c.clone=$0,c.cloneDeep=P0,c.cloneDeepWith=N0,c.cloneWith=D0,c.conformsTo=q0,c.deburr=cl,c.defaultTo=_m,c.divide=Hm,c.endsWith=Uv,c.eq=nt,c.escape=Bv,c.escapeRegExp=jv,c.every=k_,c.find=Q_,c.findIndex=qa,c.findKey=hv,c.findLast=e0,c.findLastIndex=Fa,c.findLastKey=pv,c.floor=Wm,c.forEach=Ba,c.forEachRight=ja,c.forIn=gv,c.forInRight=dv,c.forOwn=_v,c.forOwnRight=vv,c.get=Ks,c.gt=F0,c.gte=M0,c.has=yv,c.hasIn=Zs,c.head=Ha,c.identity=Ce,c.includes=s0,c.indexOf=e_,c.inRange=Hv,c.invoke=Av,c.isArguments=kt,c.isArray=G,c.isArrayBuffer=H0,c.isArrayLike=Re,c.isArrayLikeObject=ue,c.isBoolean=W0,c.isBuffer=Mt,c.isDate=G0,c.isElement=U0,c.isEmpty=B0,c.isEqual=j0,c.isEqualWith=X0,c.isError=Ys,c.isFinite=z0,c.isFunction=At,c.isInteger=Ja,c.isLength=di,c.isMap=Qa,c.isMatch=Y0,c.isMatchWith=V0,c.isNaN=K0,c.isNative=Z0,c.isNil=J0,c.isNull=k0,c.isNumber=el,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=sr,c.isRegExp=Vs,c.isSafeInteger=Q0,c.isSet=tl,c.isString=_i,c.isSymbol=Ne,c.isTypedArray=xn,c.isUndefined=ev,c.isWeakMap=tv,c.isWeakSet=nv,c.join=s_,c.kebabCase=Xv,c.last=Xe,c.lastIndexOf=u_,c.lowerCase=zv,c.lowerFirst=Yv,c.lt=rv,c.lte=iv,c.max=Gm,c.maxBy=Um,c.mean=Bm,c.meanBy=jm,c.min=Xm,c.minBy=zm,c.stubArray=nu,c.stubFalse=ru,c.stubObject=Tm,c.stubString=$m,c.stubTrue=Dm,c.multiply=Ym,c.nth=o_,c.noConflict=Am,c.noop=tu,c.now=hi,c.pad=Vv,c.padEnd=Kv,c.padStart=Zv,c.parseInt=kv,c.random=Wv,c.reduce=f0,c.reduceRight=c0,c.repeat=Jv,c.replace=Qv,c.result=Lv,c.round=Vm,c.runInContext=v,c.sample=p0,c.size=_0,c.snakeCase=em,c.some=v0,c.sortedIndex=g_,c.sortedIndexBy=d_,c.sortedIndexOf=__,c.sortedLastIndex=v_,c.sortedLastIndexBy=m_,c.sortedLastIndexOf=E_,c.startCase=nm,c.startsWith=rm,c.subtract=Km,c.sum=Zm,c.sumBy=km,c.template=im,c.times=Pm,c.toFinite=Ot,c.toInteger=U,c.toLength=rl,c.toLower=sm,c.toNumber=ze,c.toSafeInteger=sv,c.toString=k,c.toUpper=um,c.trim=om,c.trimEnd=am,c.trimStart=lm,c.truncate=fm,c.unescape=cm,c.uniqueId=qm,c.upperCase=hm,c.upperFirst=ks,c.each=Ba,c.eachRight=ja,c.first=Ha,eu(c,function(){var e={};return at(c,function(t,n){J.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,We(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),We(["drop","take"],function(e,t){Y.prototype[e]=function(n){n=n===i?1:fe(U(n),0);var u=this.__filtered__&&!t?new Y(this):this.clone();return u.__filtered__?u.__takeCount__=ve(n,u.__takeCount__):u.__views__.push({size:ve(n,ot),type:e+(u.__dir__<0?"Right":"")}),u},Y.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),We(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Fu||n==ah;Y.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:F(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),We(["head","last"],function(e,t){var n="take"+(t?"Right":"");Y.prototype[e]=function(){return this[n](1).value()[0]}}),We(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[n](1)}}),Y.prototype.compact=function(){return this.filter(Ce)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new Y(this):this.map(function(n){return Qn(n,e,t)})}),Y.prototype.reject=function(e){return this.filter(gi(F(e)))},Y.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Y(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)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(ot)},at(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(c.prototype[t]=function(){var g=this.__wrapped__,_=u?[1]:arguments,m=g instanceof Y,O=_[0],b=m||G(g),S=function(z){var V=l.apply(c,Lt([z],_));return u&&R?V[0]:V};b&&n&&typeof O=="function"&&O.length!=1&&(m=b=!1);var R=this.__chain__,P=!!this.__actions__.length,M=h&&!R,B=m&&!P;if(!h&&b){g=B?g:new Y(this);var H=e.apply(g,_);return H.__actions__.push({func:fi,args:[S],thisArg:i}),new Ue(H,R)}return M&&B?e.apply(this,_):(H=this.thru(S),M?u?H.value()[0]:H.value():H)})}),We(["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 l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],l)}return this[n](function(g){return t.apply(G(g)?g:[],l)})}}),at(Y.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";J.call(vn,u)||(vn[u]=[]),vn[u].push({name:t,func:n})}}),vn[ri(i,Gt).name]=[{name:"wrapper",func:i}],Y.prototype.clone=cg,Y.prototype.reverse=hg,Y.prototype.value=pg,c.prototype.at=U_,c.prototype.chain=B_,c.prototype.commit=j_,c.prototype.next=X_,c.prototype.plant=Y_,c.prototype.reverse=V_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=K_,c.prototype.first=c.prototype.head,zn&&(c.prototype[zn]=z_),c},$t=jp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ce._=$t,define(function(){return $t})):Bt?((Bt.exports=$t)._=$t,Qi._=$t):ce._=$t}).call(Rn)});var Su=L(Le=>{"use strict";var _y=Le&&Le.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},vy=Le&&Le.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=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++,f=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(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Rc=Le&&Le.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Le,"__esModule",{value:!0});Le.handlerProfileFile=Le.getConfig=Le.setConfig=void 0;var Ic=Rc(require("path")),Ou=Rc(ct()),ht=Ou.default.fse,$i=Ou.default.jsyaml,bu=Ou.default.getRootHome;function my(i){var r=Lc();ht.writeFileSync(r,$i.dump(i))}function Cc(){var i=Lc();if(!ht.existsSync(i))return{};try{var r=$i.load(ht.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Lc(){var i=Ic.default.join(bu(),"set-config.yml");return ht.existsSync(i)||ht.createFileSync(i),i}function Ey(i,r){var s=Cc();s[i]=r,my(s)}Le.setConfig=Ey;function yy(i,r){var s=Cc();return s[i]||r}Le.getConfig=yy;function wy(i){return _y(this,void 0,void 0,function(){var r,s,o,f,a,d,E;return vy(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=Ic.default.join(bu(),r),o=ht.existsSync(s),f={},o)return[3,5];a=bu(),y.label=1;case 1:return y.trys.push([1,2,,4]),ht.statSync(a),[3,4];case 2:return d=y.sent(),[4,ht.mkdirSync(a)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{f=$i.load(ht.readFileSync(s,"utf8"))||{}}catch(p){throw p}y.label=6;case 6:return i.read?[2,f]:(E=i.configKey||"",f[E]=i.data,[4,ht.writeFileSync(s,$i.dump(f))]);case 7:return y.sent(),[2,f]}})})}Le.handlerProfileFile=wy});var Tc=L((kx,xy)=>{xy.exports={name:"@serverless-devs/s",version:"2.0.100-beta.5",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/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.4.7","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.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var Pi=L(q=>{"use strict";var Ay=q&&q.__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]}),Oy=q&&q.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),by=q&&q.__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)&&Ay(r,i,s);return Oy(r,i),r},In=q&&q.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Cn=q&&q.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=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++,f=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(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ru=q&&q.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(q,"__esModule",{value:!0});q.emoji=q.mark=q.replaceTemplate=q.getTemplatekey=q.replaceFun=q.getLang=q.printn=q.getFolderSize=q.getVersion=q.getPid=q.aiRequest=q.getCredentialWithAll=q.getCredentialWithExisted=q.getCredentialAliasList=q.getProcessArgv=q.bgRed=q.yellow=q.red=void 0;var $c=Ru(require("path")),xr=Ru(require("fs")),Ze=Au(),Sy=Ru(require("os")),ke=by(ct()),Ry=Su(),Dc=Tc(),Di=ke.default.colors,Iy=ke.default.got,Cy=ke.default.getMAC,Ly=ke.default.isDocker,Ty=ke.default.isCiCdEnv,$y=ke.default.getGlobalArgs,Dy=ke.default.getYamlContent,Py=ke.default.getRootHome,Pc=ke.default.getCredential,Ny=ke.default.getCredentialFromEnv;q.red=Di.hex("#fd5750");q.yellow=Di.hex("#F3F99D");q.bgRed=Di.hex("#000").bgHex("#fd5750");var qy=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=$y(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Ze.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Ze.filter)(s._argsObj,function(o){return!(0,Ze.includes)(["-h","--help"],o)}))})}catch{return{}}};q.getProcessArgv=qy;var Fy=function(){return In(void 0,void 0,void 0,function(){var i,r,s;return Cn(this,function(o){switch(o.label){case 0:return i=[],[4,Dy($c.default.join(Py(),"access.yaml"))];case 1:return r=o.sent(),r&&(i=(0,Ze.keys)(r)),[4,Ny()];case 2:return s=o.sent(),s&&(i=(0,Ze.filter)(i,function(f){return f!==s.Alias}),i.push(s.Alias)),[2,i]}})})};q.getCredentialAliasList=Fy;var My=function(i){return In(void 0,void 0,void 0,function(){var r,s;return Cn(this,function(o){switch(o.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:return r=o.sent(),(0,Ze.includes)(r,i)?[4,Pc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Ze.omit)(s,"Alias")];case 3:return[2]}})})};q.getCredentialWithExisted=My;var Hy=function(){return In(void 0,void 0,void 0,function(){var i,r,s,o,f,a;return Cn(this,function(d){switch(d.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:if(i=d.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,d.label=2;case 2:return s<o.length?(f=o[s],[4,Pc(f)]):[3,5];case 3:a=d.sent(),r[a.Alias]=(0,Ze.omit)(a,"Alias"),d.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};q.getCredentialWithAll=Hy;var Wy=function(i,r){return r===void 0&&(r="unknow"),In(void 0,void 0,void 0,function(){var s,o,f,a;return Cn(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),s=(0,Ry.getConfig)("analysis"),s!=="enable"?[2]:Ly()||Ty()?[2]:[4,Iy("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=d.sent(),f=(0,Ze.get)(o.body,"shorturl"),f&&console.log(`AI Tips:
|
|
35
35
|
You can try to solve the problem through: `.concat(Di.underline(f),`
|
|
36
36
|
`)),[3,3];case 2:return a=d.sent(),[3,3];case 3:return[2]}})})};q.aiRequest=Wy;var Gy=function(){try{return Cy().replace(/:/g,"")}catch{return"unknown"}};q.getPid=Gy;function Uy(){var i=(0,ke.getCoreVersion)(),r="".concat(process.platform,"-").concat(process.arch),s="node-".concat(process.version),o="core: ".concat(i),f="s-home: ".concat(ke.default.getRootHome()),a="".concat(Dc.name,": ").concat(Dc.version);return i?"".concat(a,", ").concat(o,", ").concat(f,", ").concat(r,", ").concat(s):"".concat(a,", ").concat(f,", ").concat(r,", ").concat(s)}q.getVersion=Uy;function By(i){return In(this,void 0,void 0,function(){function r(f){return In(this,void 0,void 0,function(){var a,d;return Cn(this,function(E){switch(E.label){case 0:return a=xr.default.lstatSync(f),typeof a!="object"?[2]:(s.set(a.ino,a.size),a.isDirectory()?(d=xr.default.readdirSync(f),typeof d!="object"?[2]:[4,Promise.all(d.map(function(y){return r($c.default.join(f,y))}))]):[3,2]);case 1:E.sent(),E.label=2;case 2:return[2]}})})}var s,o;return Cn(this,function(f){switch(f.label){case 0:return s=new Map,[4,r(i)];case 1:return f.sent(),o=Array.from(s.values()).reduce(function(a,d){return a+d},0),[2,o]}})})}q.getFolderSize=By;function jy(i,r){r===void 0&&(r=" ");for(var s="",o=0;o<i;o++)s=s+r;return s}q.printn=jy;function Xy(){return"en"}q.getLang=Xy;function Nc(i,r){var s=/\{\{(.*?)\}\}/g,o=i.match(s);if(o)for(var f=0;f<o.length;f++){var a=o[f].replace(/{{|}}/g,""),d=(0,Ze.trim)(a.split("|")[0]);r[d]&&(i=i.replace(o[f],r[d]))}return i}q.replaceFun=Nc;function zy(i){var r=/\{\{(.*?)\}\}/g,s=i.match(r);return s?s.filter(function(o){return o}).map(function(o){var f=o.replace(/{{|}}/g,""),a=f.split("|");return{name:(0,Ze.trim)(a[0]),desc:(0,Ze.trim)(a[1])}}):[]}q.getTemplatekey=zy;function Yy(i,r){i.forEach(function(s){if(xr.default.existsSync(s)){var o=xr.default.readFileSync(s,"utf-8"),f=Nc(o,r);xr.default.writeFileSync(s,f,"utf-8")}})}q.replaceTemplate=Yy;function Vy(i){if(!i)return i;var r=i.slice(-4);return"***********".concat(r)}q.mark=Vy;function Ky(i,r){return Sy.default.platform()==="win32"?r||"\u25C6":"".concat(i," ")}q.emoji=Ky});var qc=L(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var Fc=L(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var Hc=L(Ar=>{"use strict";var Mc=Ar&&Ar.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ar,"__esModule",{value:!0});var Zy=Pi(),ky=Mc(qc()),Jy=Mc(Fc()),Lu={en:Jy.default,zh:ky.default},Qy=function(i){var r=(0,Zy.getLang)(),s=Lu[r]?Lu[r][i]:Lu.en[i];return s||i};Ar.default=Qy});var Tu=L(ge=>{"use strict";var ew=ge&&ge.__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]}),Wc=ge&&ge.__exportStar||function(i,r){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&ew(r,i,s)},Or=ge&&ge.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ge,"__esModule",{value:!0});ge.registerCommandChecker=ge.getYamlPath=ge.i18n=ge.logger=void 0;var Gc=Or(require("path")),tw=Or(xu()),nw=Or(ct()),Uc=nw.default.fse;Wc(Pi(),ge);Wc(Su(),ge);var rw=xu();Object.defineProperty(ge,"logger",{enumerable:!0,get:function(){return Or(rw).default}});var iw=Hc();Object.defineProperty(ge,"i18n",{enumerable:!0,get:function(){return Or(iw).default}});var sw=function(i,r){var s=Gc.default.join(i,"".concat(r,".yaml")),o=Gc.default.join(i,"".concat(r,".yml")),f=Uc.existsSync(s)?s:Uc.existsSync(o)?o:void 0;return f};ge.getYamlPath=sw;function uw(i){i.on("command:*",function(r){var s=i.commands.map(function(o){return o.name()});s.includes(r[0])||(tw.default.error(" error: unknown command ".concat(r[0])),i.help())})}ge.registerCommandChecker=uw});var un=L(Ln=>{"use strict";var ow=Ln&&Ln.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ln,"__esModule",{value:!0});Ln.ServerlessError=void 0;var aw=ow(ct()),lw=aw.default.Logger,fw=new lw("S-CLI-ERROR"),cw=function(){function i(r,s,o){fw.error(r+": "+s,o),process.exit(1)}return i}();Ln.ServerlessError=cw});var Bc=L(Tn=>{"use strict";var hw=Tn&&Tn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.CommandError=void 0;var pw=un(),gw=function(i){hw(r,i);function r(s,o){return i.call(this,"Error",s,o)||this}return r}(pw.ServerlessError);Tn.CommandError=gw});var jc=L($n=>{"use strict";var dw=$n&&$n.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty($n,"__esModule",{value:!0});$n.ConfigDeleteError=void 0;var _w=un(),vw=function(i){dw(r,i);function r(s,o){return i.call(this,"Deletion failed",s,o)||this}return r}(_w.ServerlessError);$n.ConfigDeleteError=vw});var Xc=L(Dn=>{"use strict";var mw=Dn&&Dn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.ConfigError=void 0;var Ew=un(),yw=function(i){mw(r,i);function r(s,o){return i.call(this,"Config failed",s,o)||this}return r}(Ew.ServerlessError);Dn.ConfigError=yw});var zc=L(Pn=>{"use strict";var ww=Pn&&Pn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Pn,"__esModule",{value:!0});Pn.ConfigGetError=void 0;var xw=un(),Aw=function(i){ww(r,i);function r(s,o){return i.call(this,"Get failed",s,o)||this}return r}(xw.ServerlessError);Pn.ConfigGetError=Aw});var Yc=L(Nn=>{"use strict";var Ow=Nn&&Nn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Nn,"__esModule",{value:!0});Nn.InitError=void 0;var bw=un(),Sw=function(i){Ow(r,i);function r(s,o){return i.call(this,"Initialization failed",s,o)||this}return r}(bw.ServerlessError);Nn.InitError=Sw});var Kc=L(pt=>{"use strict";var Rw=pt&&pt.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Iw=pt&&pt.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=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++,f=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(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Cw=pt&&pt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(pt,"__esModule",{value:!0});pt.HumanError=void 0;var Vc=Cw(ct()),Lw=Pi(),Tw=Vc.default.colors,$w=function(){function i(r){var s=r.errorMessage,o=r.tips;this.errorMessage=s,console.log(`
|
|
37
37
|
`.concat((0,Lw.bgRed)("ERROR:"))),console.log("TypeError: ".concat(s,`
|