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